@flamingo-stack/openframe-frontend-core 0.0.434-snapshot.20260716100758 → 0.0.434

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 (89) hide show
  1. package/dist/{chunk-32V2VHPE.cjs → chunk-473VV632.cjs} +26 -26
  2. package/dist/{chunk-32V2VHPE.cjs.map → chunk-473VV632.cjs.map} +1 -1
  3. package/dist/{chunk-FSOKLOXF.js → chunk-6CFMFNIB.js} +2 -2
  4. package/dist/{chunk-ZH2OEMQJ.js → chunk-6PTETC3Z.js} +157 -134
  5. package/dist/{chunk-ZH2OEMQJ.js.map → chunk-6PTETC3Z.js.map} +1 -1
  6. package/dist/{chunk-32BSKGEI.js → chunk-7E2DFRIK.js} +2 -2
  7. package/dist/{chunk-3V5UQ5TU.cjs → chunk-7R3PASHE.cjs} +541 -518
  8. package/dist/chunk-7R3PASHE.cjs.map +1 -0
  9. package/dist/{chunk-MWIYAVFT.js → chunk-A6KQMTJV.js} +4 -4
  10. package/dist/{chunk-2WXQFYNC.js → chunk-AHXDYVAE.js} +2 -2
  11. package/dist/{chunk-2QJNX32P.cjs → chunk-AOWQU2KB.cjs} +5 -5
  12. package/dist/{chunk-2QJNX32P.cjs.map → chunk-AOWQU2KB.cjs.map} +1 -1
  13. package/dist/{chunk-PXTDEKAY.cjs → chunk-B77THL7Y.cjs} +7 -7
  14. package/dist/{chunk-PXTDEKAY.cjs.map → chunk-B77THL7Y.cjs.map} +1 -1
  15. package/dist/{chunk-E6NRV33G.cjs → chunk-BSTVI23E.cjs} +11 -11
  16. package/dist/{chunk-E6NRV33G.cjs.map → chunk-BSTVI23E.cjs.map} +1 -1
  17. package/dist/{chunk-AUSUEKXY.cjs → chunk-C476N6PJ.cjs} +31 -31
  18. package/dist/{chunk-AUSUEKXY.cjs.map → chunk-C476N6PJ.cjs.map} +1 -1
  19. package/dist/{chunk-WXNE2BF4.cjs → chunk-CV3JHPLQ.cjs} +37 -37
  20. package/dist/{chunk-WXNE2BF4.cjs.map → chunk-CV3JHPLQ.cjs.map} +1 -1
  21. package/dist/{chunk-IWYRSGJU.cjs → chunk-F2VLV4PD.cjs} +9 -9
  22. package/dist/{chunk-IWYRSGJU.cjs.map → chunk-F2VLV4PD.cjs.map} +1 -1
  23. package/dist/{chunk-KVXB3FOB.cjs → chunk-FEOHPHJ5.cjs} +62 -62
  24. package/dist/{chunk-KVXB3FOB.cjs.map → chunk-FEOHPHJ5.cjs.map} +1 -1
  25. package/dist/{chunk-DVYA3BDU.js → chunk-KFXA4ZG3.js} +4 -4
  26. package/dist/{chunk-BMEA5NPX.js → chunk-NBWZW22E.js} +4 -4
  27. package/dist/{chunk-NGBO5Z5O.cjs → chunk-P6VXTG5N.cjs} +15 -15
  28. package/dist/{chunk-NGBO5Z5O.cjs.map → chunk-P6VXTG5N.cjs.map} +1 -1
  29. package/dist/{chunk-GQHXJ37C.js → chunk-PAOY2AIG.js} +2 -2
  30. package/dist/{chunk-NFU37EP6.js → chunk-RZRQI55M.js} +2 -2
  31. package/dist/{chunk-NRIJNBRG.cjs → chunk-SXVO2PXE.cjs} +26 -26
  32. package/dist/{chunk-NRIJNBRG.cjs.map → chunk-SXVO2PXE.cjs.map} +1 -1
  33. package/dist/{chunk-P5EN67AU.cjs → chunk-WPMUNLCC.cjs} +59 -59
  34. package/dist/{chunk-P5EN67AU.cjs.map → chunk-WPMUNLCC.cjs.map} +1 -1
  35. package/dist/{chunk-LYK6D7GU.js → chunk-XWEECWZD.js} +2 -2
  36. package/dist/{chunk-3OPSNUPJ.js → chunk-ZAJPJ2JD.js} +2 -2
  37. package/dist/{chunk-E77Z2P3K.js → chunk-ZB57GGZX.js} +4 -4
  38. package/dist/components/case-studies/index.cjs +8 -8
  39. package/dist/components/case-studies/index.js +2 -2
  40. package/dist/components/chat/index.cjs +2 -2
  41. package/dist/components/chat/index.js +1 -1
  42. package/dist/components/contact/index.cjs +3 -3
  43. package/dist/components/contact/index.js +2 -2
  44. package/dist/components/docs/index.cjs +5 -5
  45. package/dist/components/docs/index.js +4 -4
  46. package/dist/components/embeds/index.cjs +3 -3
  47. package/dist/components/embeds/index.js +2 -2
  48. package/dist/components/faq/index.cjs +3 -3
  49. package/dist/components/faq/index.js +2 -2
  50. package/dist/components/features/auth/create-organization-form.d.ts +4 -8
  51. package/dist/components/features/auth/create-organization-form.d.ts.map +1 -1
  52. package/dist/components/features/auth/login-form.d.ts +14 -18
  53. package/dist/components/features/auth/login-form.d.ts.map +1 -1
  54. package/dist/components/features/auth/sso-providers.d.ts +1 -7
  55. package/dist/components/features/auth/sso-providers.d.ts.map +1 -1
  56. package/dist/components/features/index.cjs +2 -2
  57. package/dist/components/features/index.js +1 -1
  58. package/dist/components/help-center-pages/index.cjs +20 -20
  59. package/dist/components/help-center-pages/index.js +11 -11
  60. package/dist/components/index.cjs +128 -128
  61. package/dist/components/index.js +9 -9
  62. package/dist/components/navigation/index.cjs +2 -2
  63. package/dist/components/navigation/index.js +1 -1
  64. package/dist/components/onboarding-guides/index.cjs +5 -5
  65. package/dist/components/onboarding-guides/index.js +4 -4
  66. package/dist/components/related-content/index.cjs +3 -3
  67. package/dist/components/related-content/index.js +2 -2
  68. package/dist/components/tickets/index.cjs +5 -5
  69. package/dist/components/tickets/index.js +4 -4
  70. package/dist/components/ui/index.cjs +2 -2
  71. package/dist/components/ui/index.js +1 -1
  72. package/dist/index.cjs +2 -2
  73. package/dist/index.js +1 -1
  74. package/package.json +1 -1
  75. package/src/components/features/auth/create-organization-form.tsx +28 -37
  76. package/src/components/features/auth/login-form.tsx +60 -29
  77. package/src/components/features/auth/sso-providers.tsx +1 -8
  78. package/dist/chunk-3V5UQ5TU.cjs.map +0 -1
  79. /package/dist/{chunk-FSOKLOXF.js.map → chunk-6CFMFNIB.js.map} +0 -0
  80. /package/dist/{chunk-32BSKGEI.js.map → chunk-7E2DFRIK.js.map} +0 -0
  81. /package/dist/{chunk-MWIYAVFT.js.map → chunk-A6KQMTJV.js.map} +0 -0
  82. /package/dist/{chunk-2WXQFYNC.js.map → chunk-AHXDYVAE.js.map} +0 -0
  83. /package/dist/{chunk-DVYA3BDU.js.map → chunk-KFXA4ZG3.js.map} +0 -0
  84. /package/dist/{chunk-BMEA5NPX.js.map → chunk-NBWZW22E.js.map} +0 -0
  85. /package/dist/{chunk-GQHXJ37C.js.map → chunk-PAOY2AIG.js.map} +0 -0
  86. /package/dist/{chunk-NFU37EP6.js.map → chunk-RZRQI55M.js.map} +0 -0
  87. /package/dist/{chunk-LYK6D7GU.js.map → chunk-XWEECWZD.js.map} +0 -0
  88. /package/dist/{chunk-3OPSNUPJ.js.map → chunk-ZAJPJ2JD.js.map} +0 -0
  89. /package/dist/{chunk-E77Z2P3K.js.map → chunk-ZB57GGZX.js.map} +0 -0
@@ -26014,8 +26014,7 @@ function SsoProviderButtons({
26014
26014
  providers,
26015
26015
  onSsoClick,
26016
26016
  actionLabel = "Continue with",
26017
- disabled = false,
26018
- enabledProviders
26017
+ disabled = false
26019
26018
  }) {
26020
26019
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-l)]", children: providers.map((provider) => {
26021
26020
  const meta = PROVIDER_META[provider];
@@ -26026,7 +26025,7 @@ function SsoProviderButtons({
26026
26025
  type: "button",
26027
26026
  variant: "outline",
26028
26027
  fullWidth: true,
26029
- disabled: disabled || (enabledProviders ? !enabledProviders.includes(provider) : false),
26028
+ disabled,
26030
26029
  className: "disabled:bg-ods-bg",
26031
26030
  leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon2, { className: "h-5 w-5" }),
26032
26031
  onClick: () => _optionalChain([onSsoClick, 'optionalCall', _517 => _517(provider)]),
@@ -26253,13 +26252,11 @@ function CreateOrganizationForm({
26253
26252
  domainSlot,
26254
26253
  ssoProviders,
26255
26254
  onSsoClick,
26256
- ssoDisabled = false,
26257
26255
  ssoActionLabel = "Continue with",
26258
- dividerLabel = "or continue with",
26259
26256
  className
26260
26257
  }) {
26261
- const hasSso = !!ssoProviders && ssoProviders.length > 0;
26262
- const fieldsDisabled = disabled || loading;
26258
+ const isSsoMode = !!ssoProviders && ssoProviders.length > 0;
26259
+ const fieldsDisabled = disabled || loading || isSsoMode;
26263
26260
  const emailErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _522 => _522.email]), email);
26264
26261
  const orgNameErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _523 => _523.organizationName]), organizationName);
26265
26262
  const domainErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _524 => _524.domain]), domain);
@@ -26338,31 +26335,27 @@ function CreateOrganizationForm({
26338
26335
  onCheckedChange: onAgreedToTermsChange
26339
26336
  }
26340
26337
  ),
26341
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
26342
- _chunkIMK6RUECcjs.Button,
26338
+ isSsoMode ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
26339
+ SsoProviderButtons,
26343
26340
  {
26344
- type: "button",
26345
- variant: "accent",
26346
- fullWidth: true,
26347
- loading,
26348
- disabled: disabled || submitDisabled,
26349
- onClick: onSubmit,
26350
- children: submitLabel
26341
+ providers: ssoProviders,
26342
+ onSsoClick,
26343
+ actionLabel: ssoActionLabel,
26344
+ disabled: disabled || loading
26351
26345
  }
26352
- ),
26353
- hasSso && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
26354
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-s)]", children: [
26355
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-px flex-1 bg-ods-border" }),
26356
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h6 text-ods-text-secondary", children: dividerLabel }),
26357
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-px flex-1 bg-ods-border" })
26358
- ] }),
26346
+ ) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-l)]", children: [
26347
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
26359
26348
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
26360
- SsoProviderButtons,
26349
+ _chunkIMK6RUECcjs.Button,
26361
26350
  {
26362
- providers: ssoProviders,
26363
- onSsoClick,
26364
- actionLabel: ssoActionLabel,
26365
- disabled: disabled || loading || ssoDisabled
26351
+ type: "button",
26352
+ variant: "accent",
26353
+ fullWidth: true,
26354
+ className: "md:flex-1",
26355
+ loading,
26356
+ disabled: disabled || submitDisabled,
26357
+ onClick: onSubmit,
26358
+ children: submitLabel
26366
26359
  }
26367
26360
  )
26368
26361
  ] })
@@ -26398,28 +26391,31 @@ function InviteLinkInvalidModal({
26398
26391
 
26399
26392
  // src/components/features/auth/login-form.tsx
26400
26393
  _chunkFIG2RKZFcjs.init_cn.call(void 0, );
26394
+ _chunkIMK6RUECcjs.init_button2.call(void 0, );
26401
26395
 
26402
26396
  function LoginForm({
26403
26397
  email,
26404
26398
  onEmailChange,
26405
26399
  onSubmit,
26400
+ onForgotPassword,
26406
26401
  emailPlaceholder = "username@mail.com",
26402
+ submitLabel = "Continue",
26403
+ forgotPasswordLabel = "Forgot Password?",
26404
+ submitDisabled = false,
26407
26405
  loading = false,
26408
26406
  disabled = false,
26409
26407
  errors,
26410
- emailStatus,
26411
26408
  ssoProviders,
26412
26409
  onSsoClick,
26413
- ssoDisabled = false,
26414
- ssoEnabledProviders,
26415
26410
  ssoActionLabel = "Continue with",
26416
26411
  className
26417
26412
  }) {
26418
- const fieldDisabled = disabled || loading;
26413
+ const isSsoMode = !!ssoProviders && ssoProviders.length > 0;
26414
+ const fieldDisabled = disabled || loading || isSsoMode;
26419
26415
  const emailErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _530 => _530.email]), email);
26420
26416
  const handleKeyDown = (event) => {
26421
26417
  if (event.key === "Enter" && !fieldDisabled) {
26422
- _optionalChain([onSubmit, 'optionalCall', _531 => _531()]);
26418
+ onSubmit();
26423
26419
  }
26424
26420
  };
26425
26421
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -26441,24 +26437,51 @@ function LoginForm({
26441
26437
  label: "Email",
26442
26438
  placeholder: emailPlaceholder,
26443
26439
  value: email,
26444
- error: _nullishCoalesce(emailErr.error, () => ( _optionalChain([emailStatus, 'optionalAccess', _532 => _532.message]))),
26445
- errorVariant: emailErr.error ? "error" : _optionalChain([emailStatus, 'optionalAccess', _533 => _533.variant]),
26440
+ error: emailErr.error,
26446
26441
  disabled: fieldDisabled,
26447
26442
  onBlur: emailErr.onBlur,
26448
26443
  onChange: (event) => onEmailChange(event.target.value),
26449
26444
  onKeyDown: handleKeyDown
26450
26445
  }
26451
26446
  ),
26452
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
26447
+ isSsoMode ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
26453
26448
  SsoProviderButtons,
26454
26449
  {
26455
26450
  providers: ssoProviders,
26456
26451
  onSsoClick,
26457
26452
  actionLabel: ssoActionLabel,
26458
- disabled: disabled || loading || ssoDisabled,
26459
- enabledProviders: ssoEnabledProviders
26453
+ disabled: disabled || loading
26460
26454
  }
26461
- )
26455
+ ) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-l)]", children: [
26456
+ onForgotPassword ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
26457
+ _chunkIMK6RUECcjs.Button,
26458
+ {
26459
+ type: "button",
26460
+ variant: "transparent",
26461
+ fullWidth: true,
26462
+ className: "flex-1",
26463
+ disabled: disabled || loading,
26464
+ onClick: onForgotPassword,
26465
+ children: forgotPasswordLabel
26466
+ }
26467
+ ) : (
26468
+ // Spacer keeps the button on the right half, matching the design
26469
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" })
26470
+ ),
26471
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
26472
+ _chunkIMK6RUECcjs.Button,
26473
+ {
26474
+ type: "button",
26475
+ variant: "accent",
26476
+ fullWidth: true,
26477
+ className: onForgotPassword ? "flex-1" : "md:flex-1",
26478
+ loading,
26479
+ disabled: disabled || submitDisabled,
26480
+ onClick: onSubmit,
26481
+ children: submitLabel
26482
+ }
26483
+ )
26484
+ ] })
26462
26485
  ]
26463
26486
  }
26464
26487
  );
@@ -26490,8 +26513,8 @@ function OpenFrameSsoLoginForm({
26490
26513
  className
26491
26514
  }) {
26492
26515
  const fieldsDisabled = disabled || loading;
26493
- const emailErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _534 => _534.email]), email);
26494
- const passwordErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _535 => _535.password]), password);
26516
+ const emailErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _531 => _531.email]), email);
26517
+ const passwordErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _532 => _532.password]), password);
26495
26518
  const handleKeyDown = (event) => {
26496
26519
  if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
26497
26520
  onSubmit();
@@ -26598,11 +26621,11 @@ function OpenFrameSsoSignUpForm({
26598
26621
  className
26599
26622
  }) {
26600
26623
  const fieldsDisabled = disabled || loading;
26601
- const emailErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _536 => _536.email]), email);
26602
- const firstNameErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _537 => _537.firstName]), firstName);
26603
- const lastNameErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _538 => _538.lastName]), lastName);
26604
- const passwordErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _539 => _539.password]), password);
26605
- const confirmErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _540 => _540.confirmPassword]), confirmPassword);
26624
+ const emailErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _533 => _533.email]), email);
26625
+ const firstNameErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _534 => _534.firstName]), firstName);
26626
+ const lastNameErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _535 => _535.lastName]), lastName);
26627
+ const passwordErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _536 => _536.password]), password);
26628
+ const confirmErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _537 => _537.confirmPassword]), confirmPassword);
26606
26629
  const handleKeyDown = (event) => {
26607
26630
  if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
26608
26631
  onSubmit();
@@ -26745,8 +26768,8 @@ function PasswordResetForm({
26745
26768
  className
26746
26769
  }) {
26747
26770
  const fieldsDisabled = disabled || loading;
26748
- const passwordErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _541 => _541.password]), password);
26749
- const confirmErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _542 => _542.confirmPassword]), confirmPassword);
26771
+ const passwordErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _538 => _538.password]), password);
26772
+ const confirmErr = _chunkN2TJ3HAMcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _539 => _539.confirmPassword]), confirmPassword);
26750
26773
  const handleKeyDown = (event) => {
26751
26774
  if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
26752
26775
  onSubmit();
@@ -27449,10 +27472,10 @@ var getContentDimensions = (config) => {
27449
27472
  const envMobileHeight = process.env.NEXT_PUBLIC_FIGMA_MOBILE_HEIGHT ? parseInt(process.env.NEXT_PUBLIC_FIGMA_MOBILE_HEIGHT) : null;
27450
27473
  const envDesktopWidth = process.env.NEXT_PUBLIC_FIGMA_DESKTOP_WIDTH ? parseInt(process.env.NEXT_PUBLIC_FIGMA_DESKTOP_WIDTH) : null;
27451
27474
  const envDesktopHeight = process.env.NEXT_PUBLIC_FIGMA_DESKTOP_HEIGHT ? parseInt(process.env.NEXT_PUBLIC_FIGMA_DESKTOP_HEIGHT) : null;
27452
- const mobileWidth = _nullishCoalesce(_nullishCoalesce(envMobileWidth, () => ( _optionalChain([config, 'optionalAccess', _543 => _543.mobileContentDimensions, 'optionalAccess', _544 => _544.width]))), () => ( defaultMobile.width));
27453
- const mobileHeight = _nullishCoalesce(_nullishCoalesce(envMobileHeight, () => ( _optionalChain([config, 'optionalAccess', _545 => _545.mobileContentDimensions, 'optionalAccess', _546 => _546.height]))), () => ( defaultMobile.height));
27454
- const desktopWidth = _nullishCoalesce(_nullishCoalesce(envDesktopWidth, () => ( _optionalChain([config, 'optionalAccess', _547 => _547.desktopContentDimensions, 'optionalAccess', _548 => _548.width]))), () => ( defaultDesktop.width));
27455
- const desktopHeight = _nullishCoalesce(_nullishCoalesce(envDesktopHeight, () => ( _optionalChain([config, 'optionalAccess', _549 => _549.desktopContentDimensions, 'optionalAccess', _550 => _550.height]))), () => ( defaultDesktop.height));
27475
+ const mobileWidth = _nullishCoalesce(_nullishCoalesce(envMobileWidth, () => ( _optionalChain([config, 'optionalAccess', _540 => _540.mobileContentDimensions, 'optionalAccess', _541 => _541.width]))), () => ( defaultMobile.width));
27476
+ const mobileHeight = _nullishCoalesce(_nullishCoalesce(envMobileHeight, () => ( _optionalChain([config, 'optionalAccess', _542 => _542.mobileContentDimensions, 'optionalAccess', _543 => _543.height]))), () => ( defaultMobile.height));
27477
+ const desktopWidth = _nullishCoalesce(_nullishCoalesce(envDesktopWidth, () => ( _optionalChain([config, 'optionalAccess', _544 => _544.desktopContentDimensions, 'optionalAccess', _545 => _545.width]))), () => ( defaultDesktop.width));
27478
+ const desktopHeight = _nullishCoalesce(_nullishCoalesce(envDesktopHeight, () => ( _optionalChain([config, 'optionalAccess', _546 => _546.desktopContentDimensions, 'optionalAccess', _547 => _547.height]))), () => ( defaultDesktop.height));
27456
27479
  return {
27457
27480
  mobile: { width: mobileWidth, height: mobileHeight },
27458
27481
  desktop: { width: desktopWidth, height: desktopHeight }
@@ -27586,7 +27609,7 @@ function renderUnifiedUI(state, handlers, config, iframeRef) {
27586
27609
  const contentDimensions = getContentDimensions(config);
27587
27610
  const mobileHeight = contentDimensions.mobile.height;
27588
27611
  const calculatedHeight = Math.max(mobileHeight + 100, 400);
27589
- return `${Math.min(calculatedHeight, _optionalChain([window, 'optionalAccess', _551 => _551.innerHeight]) * 0.85 || 650)}px`;
27612
+ return `${Math.min(calculatedHeight, _optionalChain([window, 'optionalAccess', _548 => _548.innerHeight]) * 0.85 || 650)}px`;
27590
27613
  })(),
27591
27614
  minHeight: viewMode === "DESKTOP" ? "auto" : (() => {
27592
27615
  const contentDimensions = getContentDimensions(config);
@@ -27691,7 +27714,7 @@ var FigmaPrototypeViewer = ({
27691
27714
  const [isInitialized, setIsInitialized] = _react.useState.call(void 0, false);
27692
27715
  const [currentNodeId, setCurrentNodeId] = _react.useState.call(void 0, null);
27693
27716
  const [internalActiveSection, setInternalActiveSection] = _react.useState.call(void 0,
27694
- config.defaultSectionId || _optionalChain([config, 'access', _552 => _552.sections, 'access', _553 => _553[0], 'optionalAccess', _554 => _554.id]) || ""
27717
+ config.defaultSectionId || _optionalChain([config, 'access', _549 => _549.sections, 'access', _550 => _550[0], 'optionalAccess', _551 => _551.id]) || ""
27695
27718
  );
27696
27719
  const activeSection = externalActiveSection || internalActiveSection;
27697
27720
  const [isNavigating, setIsNavigating] = _react.useState.call(void 0, false);
@@ -27781,7 +27804,7 @@ var FigmaPrototypeViewer = ({
27781
27804
  const handleMessage = (event) => {
27782
27805
  if (event.origin !== "https://www.figma.com") return;
27783
27806
  const validEvents = ["INITIAL_LOAD", "NEW_STATE", "PRESENTED_NODE_CHANGED"];
27784
- if (_optionalChain([event, 'access', _555 => _555.data, 'optionalAccess', _556 => _556.type]) && validEvents.includes(event.data.type)) {
27807
+ if (_optionalChain([event, 'access', _552 => _552.data, 'optionalAccess', _553 => _553.type]) && validEvents.includes(event.data.type)) {
27785
27808
  const figmaEvent = event.data;
27786
27809
  console.log("[Figma Event]", figmaEvent.type, viewMode);
27787
27810
  switch (figmaEvent.type) {
@@ -27791,19 +27814,19 @@ var FigmaPrototypeViewer = ({
27791
27814
  setIframeState("READY");
27792
27815
  break;
27793
27816
  case "PRESENTED_NODE_CHANGED":
27794
- if (_optionalChain([figmaEvent, 'access', _557 => _557.data, 'optionalAccess', _558 => _558.presentedNodeId])) {
27817
+ if (_optionalChain([figmaEvent, 'access', _554 => _554.data, 'optionalAccess', _555 => _555.presentedNodeId])) {
27795
27818
  setCurrentNodeId(figmaEvent.data.presentedNodeId);
27796
27819
  if (!isNavigating) {
27797
27820
  const matchingSection = config.sections.find((s) => {
27798
- const desktopMatch = s.startingNodeId === _optionalChain([figmaEvent, 'access', _559 => _559.data, 'optionalAccess', _560 => _560.presentedNodeId]) || s.startingNodeId.replace(":", "-") === _optionalChain([figmaEvent, 'access', _561 => _561.data, 'optionalAccess', _562 => _562.presentedNodeId]);
27799
- const mobileMatch = s.mobileStartingNodeId === _optionalChain([figmaEvent, 'access', _563 => _563.data, 'optionalAccess', _564 => _564.presentedNodeId]) || _optionalChain([s, 'access', _565 => _565.mobileStartingNodeId, 'optionalAccess', _566 => _566.replace, 'call', _567 => _567(":", "-")]) === _optionalChain([figmaEvent, 'access', _568 => _568.data, 'optionalAccess', _569 => _569.presentedNodeId]);
27821
+ const desktopMatch = s.startingNodeId === _optionalChain([figmaEvent, 'access', _556 => _556.data, 'optionalAccess', _557 => _557.presentedNodeId]) || s.startingNodeId.replace(":", "-") === _optionalChain([figmaEvent, 'access', _558 => _558.data, 'optionalAccess', _559 => _559.presentedNodeId]);
27822
+ const mobileMatch = s.mobileStartingNodeId === _optionalChain([figmaEvent, 'access', _560 => _560.data, 'optionalAccess', _561 => _561.presentedNodeId]) || _optionalChain([s, 'access', _562 => _562.mobileStartingNodeId, 'optionalAccess', _563 => _563.replace, 'call', _564 => _564(":", "-")]) === _optionalChain([figmaEvent, 'access', _565 => _565.data, 'optionalAccess', _566 => _566.presentedNodeId]);
27800
27823
  return desktopMatch || mobileMatch;
27801
27824
  });
27802
27825
  if (matchingSection && matchingSection.id !== activeSection) {
27803
27826
  if (!externalActiveSection) {
27804
27827
  setInternalActiveSection(matchingSection.id);
27805
27828
  }
27806
- _optionalChain([config, 'access', _570 => _570.onSectionChange, 'optionalCall', _571 => _571(matchingSection.id)]);
27829
+ _optionalChain([config, 'access', _567 => _567.onSectionChange, 'optionalCall', _568 => _568(matchingSection.id)]);
27807
27830
  }
27808
27831
  }
27809
27832
  }
@@ -27816,7 +27839,7 @@ var FigmaPrototypeViewer = ({
27816
27839
  }, [config.sections, activeSection, isNavigating, externalActiveSection, config.onSectionChange, viewMode]);
27817
27840
  const navigateToSection = _react.useCallback.call(void 0, (sectionId) => {
27818
27841
  const section = config.sections.find((s) => s.id === sectionId);
27819
- if (!section || !_optionalChain([iframeRef, 'access', _572 => _572.current, 'optionalAccess', _573 => _573.contentWindow]) || !isInitialized) {
27842
+ if (!section || !_optionalChain([iframeRef, 'access', _569 => _569.current, 'optionalAccess', _570 => _570.contentWindow]) || !isInitialized) {
27820
27843
  return;
27821
27844
  }
27822
27845
  setIsNavigating(true);
@@ -27824,7 +27847,7 @@ var FigmaPrototypeViewer = ({
27824
27847
  if (!externalActiveSection) {
27825
27848
  setInternalActiveSection(sectionId);
27826
27849
  }
27827
- _optionalChain([config, 'access', _574 => _574.onSectionChange, 'optionalCall', _575 => _575(sectionId)]);
27850
+ _optionalChain([config, 'access', _571 => _571.onSectionChange, 'optionalCall', _572 => _572(sectionId)]);
27828
27851
  const command = {
27829
27852
  type: "NAVIGATE_TO_FRAME_AND_CLOSE_OVERLAYS",
27830
27853
  data: { nodeId }
@@ -28144,7 +28167,7 @@ var FiltersDropdown = ({
28144
28167
  defaults[section.id] = section.defaultSelected || [];
28145
28168
  });
28146
28169
  setSelectedFilters(defaults);
28147
- _optionalChain([onReset, 'optionalCall', _576 => _576()]);
28170
+ _optionalChain([onReset, 'optionalCall', _573 => _573()]);
28148
28171
  setIsOpen(false);
28149
28172
  };
28150
28173
  const handleApply = () => {
@@ -28437,7 +28460,7 @@ function MediaGalleryManager({
28437
28460
  const [deletingIndex, setDeletingIndex] = _react.useState.call(void 0, null);
28438
28461
  const [draggedIndex, setDraggedIndex] = _react.useState.call(void 0, null);
28439
28462
  const handleFileSelect = _react.useCallback.call(void 0, async (event) => {
28440
- const file = _optionalChain([event, 'access', _577 => _577.target, 'access', _578 => _578.files, 'optionalAccess', _579 => _579[0]]);
28463
+ const file = _optionalChain([event, 'access', _574 => _574.target, 'access', _575 => _575.files, 'optionalAccess', _576 => _576[0]]);
28441
28464
  if (!file) return;
28442
28465
  let mediaType;
28443
28466
  if (file.type.startsWith("image/")) {
@@ -28552,7 +28575,7 @@ function MediaGalleryManager({
28552
28575
  {
28553
28576
  type: "button",
28554
28577
  variant: "outline",
28555
- onClick: () => _optionalChain([fileInputRef, 'access', _580 => _580.current, 'optionalAccess', _581 => _581.click, 'call', _582 => _582()]),
28578
+ onClick: () => _optionalChain([fileInputRef, 'access', _577 => _577.current, 'optionalAccess', _578 => _578.click, 'call', _579 => _579()]),
28556
28579
  disabled: isUploading,
28557
28580
  leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Plus, { className: "h-4 w-4" }),
28558
28581
  className: "font-['DM_Sans'] text-[16px] font-bold",
@@ -29216,7 +29239,7 @@ function ReleaseMediaManager({
29216
29239
  const fileInputRef = _react.useRef.call(void 0, null);
29217
29240
  const [uploadingIndex, setUploadingIndex] = _react.useState.call(void 0, null);
29218
29241
  const handleFileSelect = async (event) => {
29219
- const file = _optionalChain([event, 'access', _583 => _583.target, 'access', _584 => _584.files, 'optionalAccess', _585 => _585[0]]);
29242
+ const file = _optionalChain([event, 'access', _580 => _580.target, 'access', _581 => _581.files, 'optionalAccess', _582 => _582[0]]);
29220
29243
  if (!file) return;
29221
29244
  let mediaType;
29222
29245
  if (file.type.startsWith("image/")) {
@@ -29296,7 +29319,7 @@ function ReleaseMediaManager({
29296
29319
  {
29297
29320
  type: "button",
29298
29321
  variant: "outline",
29299
- onClick: () => _optionalChain([fileInputRef, 'access', _586 => _586.current, 'optionalAccess', _587 => _587.click, 'call', _588 => _588()]),
29322
+ onClick: () => _optionalChain([fileInputRef, 'access', _583 => _583.current, 'optionalAccess', _584 => _584.click, 'call', _585 => _585()]),
29300
29323
  disabled: uploadingIndex !== null,
29301
29324
  leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Plus, { className: "h-4 w-4" }),
29302
29325
  className: "font-['DM_Sans'] text-[16px] font-bold",
@@ -29513,7 +29536,7 @@ function SEOEditorPreview({
29513
29536
  const displayImage = hasOgImage || hasFeaturedImage;
29514
29537
  const handleImageUpload = async (event) => {
29515
29538
  if (!onOgImageUpload) return;
29516
- const file = _optionalChain([event, 'access', _589 => _589.target, 'access', _590 => _590.files, 'optionalAccess', _591 => _591[0]]);
29539
+ const file = _optionalChain([event, 'access', _586 => _586.target, 'access', _587 => _587.files, 'optionalAccess', _588 => _588[0]]);
29517
29540
  if (!file) return;
29518
29541
  setIsUploading(true);
29519
29542
  try {
@@ -29673,7 +29696,7 @@ function SEOEditorPreview({
29673
29696
  type: "button",
29674
29697
  variant: "outline",
29675
29698
  size: "icon",
29676
- onClick: () => _optionalChain([fileInputRef, 'optionalAccess', _592 => _592.click, 'call', _593 => _593()]),
29699
+ onClick: () => _optionalChain([fileInputRef, 'optionalAccess', _589 => _589.click, 'call', _590 => _590()]),
29677
29700
  disabled: disabled || isUploading,
29678
29701
  className: "bg-white text-black hover:bg-gray-100 rounded-full opacity-0 group-hover:opacity-100",
29679
29702
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "h-4 w-4" })
@@ -29696,7 +29719,7 @@ function SEOEditorPreview({
29696
29719
  "div",
29697
29720
  {
29698
29721
  className: "h-full min-h-[280px] border-2 border-dashed border-ods-border rounded-lg flex flex-col items-center justify-center cursor-pointer hover:border-ods-accent transition-colors bg-ods-bg-hover",
29699
- onClick: () => onOgImageUpload && _optionalChain([fileInputRef, 'optionalAccess', _594 => _594.click, 'call', _595 => _595()]),
29722
+ onClick: () => onOgImageUpload && _optionalChain([fileInputRef, 'optionalAccess', _591 => _591.click, 'call', _592 => _592()]),
29700
29723
  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: [
29701
29724
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "h-8 w-8 text-ods-text-secondary mb-2" }),
29702
29725
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-sm text-ods-text-secondary font-['DM_Sans']", children: onOgImageUpload ? "Click to upload OG image" : "No image" })
@@ -29783,7 +29806,7 @@ function SocialLinksManager({
29783
29806
  className = ""
29784
29807
  }) {
29785
29808
  const addLink = () => {
29786
- const firstPlatform = _optionalChain([platforms, 'access', _596 => _596[0], 'optionalAccess', _597 => _597.name]) || "website";
29809
+ const firstPlatform = _optionalChain([platforms, 'access', _593 => _593[0], 'optionalAccess', _594 => _594.name]) || "website";
29787
29810
  onChange([...links, { platform: firstPlatform, url: "" }]);
29788
29811
  };
29789
29812
  const removeLink = (index) => {
@@ -29795,7 +29818,7 @@ function SocialLinksManager({
29795
29818
  onChange(updated);
29796
29819
  };
29797
29820
  const getIcon = (link, platform) => {
29798
- const iconKey = _optionalChain([platform, 'optionalAccess', _598 => _598.icon_name]) || link.platform;
29821
+ const iconKey = _optionalChain([platform, 'optionalAccess', _595 => _595.icon_name]) || link.platform;
29799
29822
  const IconComponent = iconMap[iconKey];
29800
29823
  return IconComponent ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: "w-5 h-5 text-ods-text-secondary" }) : null;
29801
29824
  };
@@ -29820,7 +29843,7 @@ function SocialLinksManager({
29820
29843
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
29821
29844
  _chunkIMK6RUECcjs.Input,
29822
29845
  {
29823
- placeholder: _optionalChain([platform, 'optionalAccess', _599 => _599.placeholder]) || "Profile URL",
29846
+ placeholder: _optionalChain([platform, 'optionalAccess', _596 => _596.placeholder]) || "Profile URL",
29824
29847
  value: link.url,
29825
29848
  onChange: (e) => updateLink(index, "url", e.target.value),
29826
29849
  onKeyDown: (e) => {
@@ -30264,7 +30287,7 @@ function VideoSourceSelector({
30264
30287
  input.accept = "video/*";
30265
30288
  input.onchange = async (e) => {
30266
30289
  const target = e.target;
30267
- const file = _optionalChain([target, 'access', _600 => _600.files, 'optionalAccess', _601 => _601[0]]);
30290
+ const file = _optionalChain([target, 'access', _597 => _597.files, 'optionalAccess', _598 => _598[0]]);
30268
30291
  if (!file) return;
30269
30292
  setIsUploading(true);
30270
30293
  setUploadProgress(0);
@@ -30613,7 +30636,7 @@ function TranscriptSummaryEditor({
30613
30636
  {
30614
30637
  id: "subtitles",
30615
30638
  value: subtitles || "",
30616
- onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall', _602 => _602(e.target.value)]),
30639
+ onChange: (e) => _optionalChain([onSubtitlesChange, 'optionalCall', _599 => _599(e.target.value)]),
30617
30640
  placeholder: subtitlesPlaceholder,
30618
30641
  disabled: disabled || !onSubtitlesChange,
30619
30642
  className: "h-full w-full resize-none border-0 bg-transparent text-ods-text-primary placeholder:text-ods-text-secondary/50 focus:ring-0 focus:outline-none p-4 font-mono text-sm",
@@ -30766,7 +30789,7 @@ var AIEnrichSection = ({
30766
30789
  }) => {
30767
30790
  const hasResults = status === "success" || status === "error";
30768
30791
  const shouldDisable = disabled || !canEnrich;
30769
- const unfilledFields = _optionalChain([requiredFields, 'optionalAccess', _603 => _603.filter, 'call', _604 => _604((f) => !f.isFilled)]) || [];
30792
+ const unfilledFields = _optionalChain([requiredFields, 'optionalAccess', _600 => _600.filter, 'call', _601 => _601((f) => !f.isFilled)]) || [];
30770
30793
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
30771
30794
  "div",
30772
30795
  {
@@ -30804,7 +30827,7 @@ var AIEnrichSection = ({
30804
30827
  {
30805
30828
  id: "ai-enrich-custom-instructions",
30806
30829
  value: _nullishCoalesce(customInstructions, () => ( "")),
30807
- onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall', _605 => _605(e.target.value)]),
30830
+ onChange: (e) => _optionalChain([onCustomInstructionsChange, 'optionalCall', _602 => _602(e.target.value)]),
30808
30831
  placeholder: customInstructionsPlaceholder,
30809
30832
  disabled: loading,
30810
30833
  maxLength: customInstructionsMaxLength,
@@ -30933,7 +30956,7 @@ function HighlightVideoSection({
30933
30956
  input.accept = "video/*";
30934
30957
  input.onchange = async (e) => {
30935
30958
  const target = e.target;
30936
- const file = _optionalChain([target, 'access', _606 => _606.files, 'optionalAccess', _607 => _607[0]]);
30959
+ const file = _optionalChain([target, 'access', _603 => _603.files, 'optionalAccess', _604 => _604[0]]);
30937
30960
  if (!file) return;
30938
30961
  setUploadError(null);
30939
30962
  try {
@@ -31428,7 +31451,7 @@ function HighlightVideoPreview({
31428
31451
  input.accept = "video/*";
31429
31452
  input.onchange = async (e) => {
31430
31453
  const target = e.target;
31431
- const file = _optionalChain([target, 'access', _608 => _608.files, 'optionalAccess', _609 => _609[0]]);
31454
+ const file = _optionalChain([target, 'access', _605 => _605.files, 'optionalAccess', _606 => _606[0]]);
31432
31455
  if (!file) return;
31433
31456
  await onUpload(file);
31434
31457
  };
@@ -31612,7 +31635,7 @@ function HighlightVideoCombinedSection({
31612
31635
  input.accept = "video/*";
31613
31636
  input.onchange = async (e) => {
31614
31637
  const target = e.target;
31615
- const file = _optionalChain([target, 'access', _610 => _610.files, 'optionalAccess', _611 => _611[0]]);
31638
+ const file = _optionalChain([target, 'access', _607 => _607.files, 'optionalAccess', _608 => _608[0]]);
31616
31639
  if (!file) return;
31617
31640
  await onUpload(file);
31618
31641
  };
@@ -31906,7 +31929,7 @@ var getApprovalLevelLabel = (level, editMode = false) => {
31906
31929
  return editMode ? "Set Global Permission" : "";
31907
31930
  }
31908
31931
  const option = approvalLevelOptions.find((opt) => opt.value === level);
31909
- return _optionalChain([option, 'optionalAccess', _612 => _612.label]) || level;
31932
+ return _optionalChain([option, 'optionalAccess', _609 => _609.label]) || level;
31910
31933
  };
31911
31934
  var PolicyRow = ({ policy, categoryId, editMode, onPermissionChange }) => {
31912
31935
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-ods-bg border-b border-ods-border flex gap-4 items-center px-4 py-3", children: [
@@ -32120,12 +32143,12 @@ function PhoneInput({
32120
32143
  const runValidation = _react.useCallback.call(void 0, (phone) => {
32121
32144
  if (!phone || digitCount(phone) === 0) {
32122
32145
  setIsInvalid(false);
32123
- _optionalChain([onValidationChange, 'optionalCall', _613 => _613(false)]);
32146
+ _optionalChain([onValidationChange, 'optionalCall', _610 => _610(false)]);
32124
32147
  return;
32125
32148
  }
32126
32149
  const invalid = !validatePhoneNumber(phone, countryCode);
32127
32150
  setIsInvalid(invalid);
32128
- _optionalChain([onValidationChange, 'optionalCall', _614 => _614(invalid)]);
32151
+ _optionalChain([onValidationChange, 'optionalCall', _611 => _611(invalid)]);
32129
32152
  }, [countryCode, digitCount, onValidationChange]);
32130
32153
  const debouncedValidation = _react.useCallback.call(void 0, (phone) => {
32131
32154
  if (debounceRef.current) clearTimeout(debounceRef.current);
@@ -32174,7 +32197,7 @@ function PhoneInput({
32174
32197
  debouncedValidation(val);
32175
32198
  } else if (digitCount(val) === 0) {
32176
32199
  setIsInvalid(false);
32177
- _optionalChain([onValidationChange, 'optionalCall', _615 => _615(false)]);
32200
+ _optionalChain([onValidationChange, 'optionalCall', _612 => _612(false)]);
32178
32201
  }
32179
32202
  }
32180
32203
  },
@@ -32515,19 +32538,19 @@ function NotificationsProvider({
32515
32538
  }, []);
32516
32539
  const markRead = React99.useCallback((id) => {
32517
32540
  dispatch({ type: "markRead", id });
32518
- void _optionalChain([actionsRef, 'access', _616 => _616.current, 'optionalAccess', _617 => _617.onMarkRead, 'optionalCall', _618 => _618(id)]);
32541
+ void _optionalChain([actionsRef, 'access', _613 => _613.current, 'optionalAccess', _614 => _614.onMarkRead, 'optionalCall', _615 => _615(id)]);
32519
32542
  }, []);
32520
32543
  const markAllRead = React99.useCallback(() => {
32521
32544
  dispatch({ type: "markAllRead" });
32522
- void _optionalChain([actionsRef, 'access', _619 => _619.current, 'optionalAccess', _620 => _620.onMarkAllRead, 'optionalCall', _621 => _621()]);
32545
+ void _optionalChain([actionsRef, 'access', _616 => _616.current, 'optionalAccess', _617 => _617.onMarkAllRead, 'optionalCall', _618 => _618()]);
32523
32546
  }, []);
32524
32547
  const markSettled = React99.useCallback((id) => {
32525
32548
  dispatch({ type: "markSettled", id });
32526
- void _optionalChain([actionsRef, 'access', _622 => _622.current, 'optionalAccess', _623 => _623.onMarkSettled, 'optionalCall', _624 => _624(id)]);
32549
+ void _optionalChain([actionsRef, 'access', _619 => _619.current, 'optionalAccess', _620 => _620.onMarkSettled, 'optionalCall', _621 => _621(id)]);
32527
32550
  }, []);
32528
32551
  const remove = React99.useCallback((id) => {
32529
32552
  dispatch({ type: "remove", id });
32530
- void _optionalChain([actionsRef, 'access', _625 => _625.current, 'optionalAccess', _626 => _626.onRemove, 'optionalCall', _627 => _627(id)]);
32553
+ void _optionalChain([actionsRef, 'access', _622 => _622.current, 'optionalAccess', _623 => _623.onRemove, 'optionalCall', _624 => _624(id)]);
32531
32554
  }, []);
32532
32555
  const clear = React99.useCallback(() => dispatch({ type: "clear" }), []);
32533
32556
  const open = React99.useCallback(() => setIsOpen(true), []);
@@ -32536,14 +32559,14 @@ function NotificationsProvider({
32536
32559
  const setShowPopups = React99.useCallback(
32537
32560
  (value2) => {
32538
32561
  setShowPopupsState(value2);
32539
- _optionalChain([onShowPopupsChange, 'optionalCall', _628 => _628(value2)]);
32562
+ _optionalChain([onShowPopupsChange, 'optionalCall', _625 => _625(value2)]);
32540
32563
  },
32541
32564
  [onShowPopupsChange]
32542
32565
  );
32543
32566
  const setShowDesktopPopups = React99.useCallback(
32544
32567
  (value2) => {
32545
32568
  setShowDesktopPopupsState(value2);
32546
- _optionalChain([onShowDesktopPopupsChange, 'optionalCall', _629 => _629(value2)]);
32569
+ _optionalChain([onShowDesktopPopupsChange, 'optionalCall', _626 => _626(value2)]);
32547
32570
  },
32548
32571
  [onShowDesktopPopupsChange]
32549
32572
  );
@@ -32655,7 +32678,7 @@ var AppLayoutDrawerRoot = ({
32655
32678
  const handleOpenChange = React100.useCallback(
32656
32679
  (next) => {
32657
32680
  if (!isControlled) setInternalOpen(next);
32658
- _optionalChain([onOpenChange, 'optionalCall', _630 => _630(next)]);
32681
+ _optionalChain([onOpenChange, 'optionalCall', _627 => _627(next)]);
32659
32682
  },
32660
32683
  [isControlled, onOpenChange]
32661
32684
  );
@@ -32673,11 +32696,11 @@ var AppLayoutDrawerRoot = ({
32673
32696
  };
32674
32697
  }
32675
32698
  React100.useEffect(() => {
32676
- if (open) _optionalChain([coordination, 'optionalAccess', _631 => _631.notifyDrawerDidOpen, 'call', _632 => _632(_nullishCoalesce(selfHandleRef.current, () => ( void 0)))]);
32699
+ if (open) _optionalChain([coordination, 'optionalAccess', _628 => _628.notifyDrawerDidOpen, 'call', _629 => _629(_nullishCoalesce(selfHandleRef.current, () => ( void 0)))]);
32677
32700
  }, [open, coordination]);
32678
32701
  React100.useEffect(() => {
32679
32702
  if (!selfHandleRef.current) return;
32680
- return _optionalChain([coordination, 'optionalAccess', _633 => _633.registerDrawer, 'call', _634 => _634(selfHandleRef.current)]);
32703
+ return _optionalChain([coordination, 'optionalAccess', _630 => _630.registerDrawer, 'call', _631 => _631(selfHandleRef.current)]);
32681
32704
  }, [coordination]);
32682
32705
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DrawerOpenContext.Provider, { value: open, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
32683
32706
  DialogPrimitive3.Root,
@@ -33057,10 +33080,10 @@ var AppLayoutDrawerContent = React100.forwardRef(
33057
33080
  ),
33058
33081
  style,
33059
33082
  onInteractOutside: (event) => {
33060
- _optionalChain([onInteractOutside, 'optionalCall', _635 => _635(event)]);
33083
+ _optionalChain([onInteractOutside, 'optionalCall', _632 => _632(event)]);
33061
33084
  if (event.defaultPrevented) return;
33062
33085
  const target = event.target;
33063
- const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess', _636 => _636.contains, 'call', _637 => _637(target)]);
33086
+ const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess', _633 => _633.contains, 'call', _634 => _634(target)]);
33064
33087
  if (!isInsideContainer) {
33065
33088
  event.preventDefault();
33066
33089
  return;
@@ -33168,7 +33191,7 @@ function NotificationTile({
33168
33191
  if (!counting) return;
33169
33192
  const remaining = Math.max(0, liveDurationMs - initialElapsed);
33170
33193
  const timer = window.setTimeout(() => {
33171
- _optionalChain([onSettle, 'optionalCall', _638 => _638(id)]);
33194
+ _optionalChain([onSettle, 'optionalCall', _635 => _635(id)]);
33172
33195
  }, remaining);
33173
33196
  return () => window.clearTimeout(timer);
33174
33197
  }, [id, counting, initialElapsed, liveDurationMs, onSettle]);
@@ -33224,7 +33247,7 @@ function NotificationTile({
33224
33247
  }
33225
33248
  ) : null,
33226
33249
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "relative size-4 shrink-0", children: [
33227
- { active: isLive, label: "Dismiss notification", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.XmarkIcon, { size: 16 }), onClick: () => _optionalChain([onSettle, 'optionalCall', _639 => _639(id)]) },
33250
+ { active: isLive, label: "Dismiss notification", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.XmarkIcon, { size: 16 }), onClick: () => _optionalChain([onSettle, 'optionalCall', _636 => _636(id)]) },
33228
33251
  { active: !isLive, label: "Mark notification complete", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.CheckCircleIcon, { size: 16 }), onClick: () => onComplete(id) }
33229
33252
  ].map(({ active, label, icon: icon2, onClick }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
33230
33253
  "button",
@@ -33400,7 +33423,7 @@ function DrawerScrollList({
33400
33423
  if (!sentinel || !root) return;
33401
33424
  const observer = new IntersectionObserver(
33402
33425
  (entries) => {
33403
- if (_optionalChain([entries, 'access', _640 => _640[0], 'optionalAccess', _641 => _641.isIntersecting])) _optionalChain([loadMoreRef, 'access', _642 => _642.current, 'optionalCall', _643 => _643()]);
33426
+ if (_optionalChain([entries, 'access', _637 => _637[0], 'optionalAccess', _638 => _638.isIntersecting])) _optionalChain([loadMoreRef, 'access', _639 => _639.current, 'optionalCall', _640 => _640()]);
33404
33427
  },
33405
33428
  { root, rootMargin: loadMoreRootMargin }
33406
33429
  );
@@ -33415,7 +33438,7 @@ function DrawerScrollList({
33415
33438
  className: "flex flex-1 flex-col gap-[var(--spacing-system-xs)] overflow-y-auto px-[var(--spacing-system-m)]",
33416
33439
  children: isEmpty && !isLoadingMore ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmptyState, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
33417
33440
  unreadNotifications.map((n) => {
33418
- const custom = _optionalChain([renderTile, 'optionalCall', _644 => _644(n, { onComplete, onSettle, liveDurationMs })]);
33441
+ const custom = _optionalChain([renderTile, 'optionalCall', _641 => _641(n, { onComplete, onSettle, liveDurationMs })]);
33419
33442
  if (custom) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: custom }, n.id);
33420
33443
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
33421
33444
  NotificationTile,
@@ -33579,7 +33602,7 @@ function NotificationPopups({
33579
33602
  className
33580
33603
  ),
33581
33604
  children: live.map((n) => {
33582
- const custom = _optionalChain([renderTile, 'optionalCall', _645 => _645(n, { onComplete: markRead, onSettle: markSettled, liveDurationMs })]);
33605
+ const custom = _optionalChain([renderTile, 'optionalCall', _642 => _642(n, { onComplete: markRead, onSettle: markSettled, liveDurationMs })]);
33583
33606
  if (custom) {
33584
33607
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-auto", children: custom }, n.id);
33585
33608
  }
@@ -33692,7 +33715,7 @@ function programItemToStripProfile(item) {
33692
33715
  const fromAuthor = toStripProfile(item.author);
33693
33716
  if (fromAuthor) return fromAuthor;
33694
33717
  const host = Array.isArray(item.hosts) ? item.hosts[0] : null;
33695
- if (!_optionalChain([host, 'optionalAccess', _646 => _646.name])) return null;
33718
+ if (!_optionalChain([host, 'optionalAccess', _643 => _643.name])) return null;
33696
33719
  return toStripProfile({ full_name: host.name, avatar_url: _nullishCoalesce(host.avatar_url, () => ( null)) });
33697
33720
  }
33698
33721
  function transformEventToProgram(event) {
@@ -33770,21 +33793,21 @@ function transformWebinarToProgram(webinar) {
33770
33793
  // src/components/features/notifications/types.ts
33771
33794
  var ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE = "ADMIN_APPROVAL_REQUEST";
33772
33795
  function isApprovalNotification(notification) {
33773
- return _optionalChain([notification, 'access', _647 => _647.meta, 'optionalAccess', _648 => _648.contextType]) === ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE;
33796
+ return _optionalChain([notification, 'access', _644 => _644.meta, 'optionalAccess', _645 => _645.contextType]) === ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE;
33774
33797
  }
33775
33798
  function getApprovalMeta(notification) {
33776
33799
  if (!isApprovalNotification(notification)) return null;
33777
33800
  const meta = notification.meta;
33778
- const approvalRequestId = _optionalChain([meta, 'optionalAccess', _649 => _649.approvalRequestId]);
33779
- const toolCalls = _optionalChain([meta, 'optionalAccess', _650 => _650.toolCalls]);
33801
+ const approvalRequestId = _optionalChain([meta, 'optionalAccess', _646 => _646.approvalRequestId]);
33802
+ const toolCalls = _optionalChain([meta, 'optionalAccess', _647 => _647.toolCalls]);
33780
33803
  if (typeof approvalRequestId !== "string" || !Array.isArray(toolCalls)) return null;
33781
33804
  return {
33782
33805
  approvalRequestId,
33783
- dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _651 => _651.dialogId]), () => ( null)),
33784
- ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _652 => _652.ticketId]), () => ( null)),
33785
- approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _653 => _653.approvalType]), () => ( null)),
33786
- resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _654 => _654.resolution]), () => ( null)),
33787
- resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _655 => _655.resolvedByName]), () => ( null)),
33806
+ dialogId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _648 => _648.dialogId]), () => ( null)),
33807
+ ticketId: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _649 => _649.ticketId]), () => ( null)),
33808
+ approvalType: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _650 => _650.approvalType]), () => ( null)),
33809
+ resolution: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _651 => _651.resolution]), () => ( null)),
33810
+ resolvedByName: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _652 => _652.resolvedByName]), () => ( null)),
33788
33811
  toolCalls
33789
33812
  };
33790
33813
  }
@@ -33834,7 +33857,7 @@ function ApprovalRequestNotificationTile({
33834
33857
  const [processing, setProcessing] = _react.useState.call(void 0, false);
33835
33858
  const [localStatus, setLocalStatus] = _react.useState.call(void 0, null);
33836
33859
  const approval = getApprovalMeta(notification);
33837
- const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _656 => _656.resolution]));
33860
+ const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _653 => _653.resolution]));
33838
33861
  const status = resolvedStatus !== "pending" ? resolvedStatus : _nullishCoalesce(localStatus, () => ( "pending"));
33839
33862
  const batchData = _react.useMemo.call(void 0, () => approval ? approvalMetaToBatchData(approval) : null, [approval]);
33840
33863
  const { innerRef, containerStyle } = useCollapsible({ expanded });
@@ -34138,7 +34161,7 @@ function TimeTrackerPanel({
34138
34161
  error: showFieldError ? "Required if no notes added" : void 0,
34139
34162
  disableClientFilter: !!onTicketSearch,
34140
34163
  onInputChange: (value, reason) => {
34141
- if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall', _657 => _657(value)]);
34164
+ if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall', _654 => _654(value)]);
34142
34165
  }
34143
34166
  }
34144
34167
  ),
@@ -34153,7 +34176,7 @@ function TimeTrackerPanel({
34153
34176
  disabled: customerLocked,
34154
34177
  disableClientFilter: !!onCustomerSearch,
34155
34178
  onInputChange: (value, reason) => {
34156
- if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall', _658 => _658(value)]);
34179
+ if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall', _655 => _655(value)]);
34157
34180
  },
34158
34181
  startAdornment: customerStartAdornment,
34159
34182
  renderOption: renderCustomerOption
@@ -34247,7 +34270,7 @@ function LastEntryRow({ entry, onClick }) {
34247
34270
  {
34248
34271
  variant: "outline",
34249
34272
  size: "icon",
34250
- onClick: () => _optionalChain([onClick, 'optionalCall', _659 => _659(entry)]),
34273
+ onClick: () => _optionalChain([onClick, 'optionalCall', _656 => _656(entry)]),
34251
34274
  disabled: !onClick,
34252
34275
  "aria-label": `Open entry: ${entry.title}`,
34253
34276
  className: "h-12 w-12 shrink-0 [&_svg]:!size-6",
@@ -34292,31 +34315,31 @@ function HeaderButton({
34292
34315
  function TimeTrackerHeaderButton({ className, disabled }) {
34293
34316
  const ctx = useOptionalTimeTracker();
34294
34317
  const elapsedLabel = useTrackerClock({
34295
- status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _660 => _660.status]), () => ( "ready")),
34296
- runningSince: _optionalChain([ctx, 'optionalAccess', _661 => _661.runningSince]),
34297
- accumulatedMs: _optionalChain([ctx, 'optionalAccess', _662 => _662.accumulatedMs])
34318
+ status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _657 => _657.status]), () => ( "ready")),
34319
+ runningSince: _optionalChain([ctx, 'optionalAccess', _658 => _658.runningSince]),
34320
+ accumulatedMs: _optionalChain([ctx, 'optionalAccess', _659 => _659.accumulatedMs])
34298
34321
  });
34299
34322
  const layoutContainer = useAppLayoutDrawerContainer();
34300
34323
  const coordination = useAppLayoutDrawerCoordination();
34301
- const isOpen = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _663 => _663.isOpen]), () => ( false));
34324
+ const isOpen = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _660 => _660.isOpen]), () => ( false));
34302
34325
  const isOpenRef = _react.useRef.call(void 0, isOpen);
34303
34326
  isOpenRef.current = isOpen;
34304
- const closeRef = _react.useRef.call(void 0, _optionalChain([ctx, 'optionalAccess', _664 => _664.close]));
34305
- closeRef.current = _optionalChain([ctx, 'optionalAccess', _665 => _665.close]);
34327
+ const closeRef = _react.useRef.call(void 0, _optionalChain([ctx, 'optionalAccess', _661 => _661.close]));
34328
+ closeRef.current = _optionalChain([ctx, 'optionalAccess', _662 => _662.close]);
34306
34329
  const selfHandleRef = _react.useRef.call(void 0, null);
34307
34330
  if (!selfHandleRef.current) {
34308
34331
  selfHandleRef.current = {
34309
34332
  close: () => {
34310
- if (isOpenRef.current) _optionalChain([closeRef, 'access', _666 => _666.current, 'optionalCall', _667 => _667()]);
34333
+ if (isOpenRef.current) _optionalChain([closeRef, 'access', _663 => _663.current, 'optionalCall', _664 => _664()]);
34311
34334
  }
34312
34335
  };
34313
34336
  }
34314
34337
  _react.useEffect.call(void 0, () => {
34315
- if (isOpen) _optionalChain([coordination, 'optionalAccess', _668 => _668.notifyDrawerDidOpen, 'call', _669 => _669(_nullishCoalesce(selfHandleRef.current, () => ( void 0)))]);
34338
+ if (isOpen) _optionalChain([coordination, 'optionalAccess', _665 => _665.notifyDrawerDidOpen, 'call', _666 => _666(_nullishCoalesce(selfHandleRef.current, () => ( void 0)))]);
34316
34339
  }, [isOpen, coordination]);
34317
34340
  _react.useEffect.call(void 0, () => {
34318
34341
  if (!selfHandleRef.current) return;
34319
- return _optionalChain([coordination, 'optionalAccess', _670 => _670.registerDrawer, 'call', _671 => _671(selfHandleRef.current)]);
34342
+ return _optionalChain([coordination, 'optionalAccess', _667 => _667.registerDrawer, 'call', _668 => _668(selfHandleRef.current)]);
34320
34343
  }, [coordination]);
34321
34344
  if (!ctx) return null;
34322
34345
  const { open, close, status } = ctx;
@@ -34589,9 +34612,9 @@ var TICKET_CARD_SHELL = "relative flex flex-col gap-[var(--spacing-system-sf)] r
34589
34612
  function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onReject }) {
34590
34613
  const showNewMessage = !!ticket.hasNewMessage && !!columnColor;
34591
34614
  const newMessageTextColor = columnColor ? getReadableTextColor(columnColor) : void 0;
34592
- const showDeviceRow = !!(_optionalChain([ticket, 'access', _672 => _672.deviceHostnames, 'optionalAccess', _673 => _673.length]) || ticket.organizationName);
34593
- const deviceText = [_optionalChain([ticket, 'access', _674 => _674.deviceHostnames, 'optionalAccess', _675 => _675.join, 'call', _676 => _676(", ")]), ticket.organizationName].filter(Boolean).join(", ");
34594
- const hasRightSection = !!(ticket.priority || _optionalChain([ticket, 'access', _677 => _677.assignees, 'optionalAccess', _678 => _678.length]) || renderAssignSlot);
34615
+ const showDeviceRow = !!(_optionalChain([ticket, 'access', _669 => _669.deviceHostnames, 'optionalAccess', _670 => _670.length]) || ticket.organizationName);
34616
+ const deviceText = [_optionalChain([ticket, 'access', _671 => _671.deviceHostnames, 'optionalAccess', _672 => _672.join, 'call', _673 => _673(", ")]), ticket.organizationName].filter(Boolean).join(", ");
34617
+ const hasRightSection = !!(ticket.priority || _optionalChain([ticket, 'access', _674 => _674.assignees, 'optionalAccess', _675 => _675.length]) || renderAssignSlot);
34595
34618
  const rightSection = hasRightSection ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "pointer-events-auto flex shrink-0 items-center gap-[var(--spacing-system-xsf)]", children: [
34596
34619
  ticket.priority && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
34597
34620
  _chunkBGD345ZVcjs.Flag02Icon,
@@ -34600,7 +34623,7 @@ function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onRe
34600
34623
  "aria-label": `Priority: ${ticket.priority}`
34601
34624
  }
34602
34625
  ),
34603
- renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access', _679 => _679.assignees, 'optionalAccess', _680 => _680.length]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex -space-x-2", children: [
34626
+ renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access', _676 => _676.assignees, 'optionalAccess', _677 => _677.length]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex -space-x-2", children: [
34604
34627
  ticket.assignees.slice(0, MAX_VISIBLE_ASSIGNEES).map((a) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
34605
34628
  SquareAvatar,
34606
34629
  {
@@ -34631,7 +34654,7 @@ function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onRe
34631
34654
  ] }),
34632
34655
  rightSection
34633
34656
  ] }),
34634
- _optionalChain([ticket, 'access', _681 => _681.tags, 'optionalAccess', _682 => _682.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketTagRow, { tags: ticket.tags }) : null,
34657
+ _optionalChain([ticket, 'access', _678 => _678.tags, 'optionalAccess', _679 => _679.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketTagRow, { tags: ticket.tags }) : null,
34635
34658
  timestampLabel && tooltipLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipProvider, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip, { children: [
34636
34659
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "pointer-events-auto text-h6 truncate text-ods-text-secondary", children: timestampLabel }) }),
34637
34660
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: tooltipLabel })
@@ -34869,7 +34892,7 @@ function ColumnBody({ column, getTicketHref, renderAssignSlot, onApprove, onReje
34869
34892
  const observer = new IntersectionObserver(
34870
34893
  (entries) => {
34871
34894
  if (entries.some((e) => e.isIntersecting)) {
34872
- _optionalChain([loadMoreRef, 'access', _683 => _683.current, 'optionalCall', _684 => _684(columnIdRef.current)]);
34895
+ _optionalChain([loadMoreRef, 'access', _680 => _680.current, 'optionalCall', _681 => _681(columnIdRef.current)]);
34873
34896
  }
34874
34897
  },
34875
34898
  { root, rootMargin: loadMoreRootMargin }
@@ -34899,7 +34922,7 @@ function ColumnBody({ column, getTicketHref, renderAssignSlot, onApprove, onReje
34899
34922
  ticket: t,
34900
34923
  columnId: column.id,
34901
34924
  columnColor: column.color,
34902
- href: _optionalChain([getTicketHref, 'optionalCall', _685 => _685(t.id)]),
34925
+ href: _optionalChain([getTicketHref, 'optionalCall', _682 => _682(t.id)]),
34903
34926
  renderAssignSlot,
34904
34927
  onApprove,
34905
34928
  onReject,
@@ -34999,17 +35022,17 @@ function Board({
34999
35022
  const pointer = _core.pointerWithin.call(void 0, args);
35000
35023
  const intersections = pointer.length > 0 ? pointer : _core.rectIntersection.call(void 0, args);
35001
35024
  const ticketHit = intersections.find(
35002
- (c) => _optionalChain([c, 'access', _686 => _686.data, 'optionalAccess', _687 => _687.droppableContainer, 'optionalAccess', _688 => _688.data, 'optionalAccess', _689 => _689.current, 'optionalAccess', _690 => _690.type]) === "ticket"
35025
+ (c) => _optionalChain([c, 'access', _683 => _683.data, 'optionalAccess', _684 => _684.droppableContainer, 'optionalAccess', _685 => _685.data, 'optionalAccess', _686 => _686.current, 'optionalAccess', _687 => _687.type]) === "ticket"
35003
35026
  );
35004
35027
  if (ticketHit) return [ticketHit];
35005
35028
  const columnHit = intersections.find(
35006
- (c) => _optionalChain([c, 'access', _691 => _691.data, 'optionalAccess', _692 => _692.droppableContainer, 'optionalAccess', _693 => _693.data, 'optionalAccess', _694 => _694.current, 'optionalAccess', _695 => _695.type]) === "column"
35029
+ (c) => _optionalChain([c, 'access', _688 => _688.data, 'optionalAccess', _689 => _689.droppableContainer, 'optionalAccess', _690 => _690.data, 'optionalAccess', _691 => _691.current, 'optionalAccess', _692 => _692.type]) === "column"
35007
35030
  );
35008
35031
  if (columnHit) {
35009
- const columnId = _optionalChain([columnHit, 'access', _696 => _696.data, 'optionalAccess', _697 => _697.droppableContainer, 'optionalAccess', _698 => _698.data, 'optionalAccess', _699 => _699.current, 'optionalAccess', _700 => _700.columnId]);
35032
+ const columnId = _optionalChain([columnHit, 'access', _693 => _693.data, 'optionalAccess', _694 => _694.droppableContainer, 'optionalAccess', _695 => _695.data, 'optionalAccess', _696 => _696.current, 'optionalAccess', _697 => _697.columnId]);
35010
35033
  const ticketsInColumn = args.droppableContainers.filter((c) => {
35011
35034
  const d = c.data.current;
35012
- return _optionalChain([d, 'optionalAccess', _701 => _701.type]) === "ticket" && d.columnId === columnId;
35035
+ return _optionalChain([d, 'optionalAccess', _698 => _698.type]) === "ticket" && d.columnId === columnId;
35013
35036
  });
35014
35037
  if (ticketsInColumn.length > 0) {
35015
35038
  const closest = _core.closestCorners.call(void 0, { ...args, droppableContainers: ticketsInColumn });
@@ -35034,20 +35057,20 @@ function Board({
35034
35057
  const overId = String(over.id);
35035
35058
  if (activeId === overId) return;
35036
35059
  const overData = over.data.current;
35037
- const fromColumnId = _optionalChain([locate, 'call', _702 => _702(items, activeId), 'optionalAccess', _703 => _703.columnId]);
35038
- const toColumnId = _optionalChain([overData, 'optionalAccess', _704 => _704.columnId]);
35060
+ const fromColumnId = _optionalChain([locate, 'call', _699 => _699(items, activeId), 'optionalAccess', _700 => _700.columnId]);
35061
+ const toColumnId = _optionalChain([overData, 'optionalAccess', _701 => _701.columnId]);
35039
35062
  if (!fromColumnId || !toColumnId || fromColumnId === toColumnId) return;
35040
35063
  const origin = dragOriginRef.current;
35041
- const isReturnToOrigin = _optionalChain([origin, 'optionalAccess', _705 => _705.fromColumnId]) === toColumnId;
35064
+ const isReturnToOrigin = _optionalChain([origin, 'optionalAccess', _702 => _702.fromColumnId]) === toColumnId;
35042
35065
  const targetCol = items.find((c) => c.id === toColumnId);
35043
- const blockedBySource = !isReturnToOrigin && !!_optionalChain([targetCol, 'optionalAccess', _706 => _706.allowedFromColumns]) && !!origin && !targetCol.allowedFromColumns.includes(origin.fromColumnId);
35044
- if (_optionalChain([targetCol, 'optionalAccess', _707 => _707.dropDisabled]) && !isReturnToOrigin || blockedBySource) return;
35066
+ const blockedBySource = !isReturnToOrigin && !!_optionalChain([targetCol, 'optionalAccess', _703 => _703.allowedFromColumns]) && !!origin && !targetCol.allowedFromColumns.includes(origin.fromColumnId);
35067
+ if (_optionalChain([targetCol, 'optionalAccess', _704 => _704.dropDisabled]) && !isReturnToOrigin || blockedBySource) return;
35045
35068
  setItems((prev) => {
35046
35069
  const fromIndex = findIndexInColumn(prev, fromColumnId, activeId);
35047
35070
  const toCol = prev.find((c) => c.id === toColumnId);
35048
35071
  if (fromIndex < 0 || !toCol) return prev;
35049
35072
  let toIndex;
35050
- if (_optionalChain([overData, 'optionalAccess', _708 => _708.type]) === "column") {
35073
+ if (_optionalChain([overData, 'optionalAccess', _705 => _705.type]) === "column") {
35051
35074
  toIndex = toCol.tickets.length;
35052
35075
  } else {
35053
35076
  const overIndex = toCol.tickets.findIndex((t) => t.id === overId);
@@ -35089,14 +35112,14 @@ function Board({
35089
35112
  const toColumnId = located.columnId;
35090
35113
  const isCrossColumn = origin.fromColumnId !== toColumnId;
35091
35114
  const targetCol = items.find((c) => c.id === toColumnId);
35092
- if (isCrossColumn && (_optionalChain([targetCol, 'optionalAccess', _709 => _709.dropDisabled]) || _optionalChain([targetCol, 'optionalAccess', _710 => _710.allowedFromColumns]) && !targetCol.allowedFromColumns.includes(origin.fromColumnId))) {
35115
+ if (isCrossColumn && (_optionalChain([targetCol, 'optionalAccess', _706 => _706.dropDisabled]) || _optionalChain([targetCol, 'optionalAccess', _707 => _707.allowedFromColumns]) && !targetCol.allowedFromColumns.includes(origin.fromColumnId))) {
35093
35116
  setItems(columns);
35094
35117
  return;
35095
35118
  }
35096
35119
  let finalIndex = located.index;
35097
- let finalColumnTickets = _nullishCoalesce(_optionalChain([items, 'access', _711 => _711.find, 'call', _712 => _712((c) => c.id === toColumnId), 'optionalAccess', _713 => _713.tickets]), () => ( []));
35120
+ let finalColumnTickets = _nullishCoalesce(_optionalChain([items, 'access', _708 => _708.find, 'call', _709 => _709((c) => c.id === toColumnId), 'optionalAccess', _710 => _710.tickets]), () => ( []));
35098
35121
  const overData = over.data.current;
35099
- if (_optionalChain([overData, 'optionalAccess', _714 => _714.type]) === "ticket") {
35122
+ if (_optionalChain([overData, 'optionalAccess', _711 => _711.type]) === "ticket") {
35100
35123
  const overIndex = findIndexInColumn(items, toColumnId, String(over.id));
35101
35124
  if (overIndex >= 0 && overIndex !== located.index) {
35102
35125
  finalColumnTickets = _sortable.arrayMove.call(void 0, finalColumnTickets, located.index, overIndex);
@@ -35116,8 +35139,8 @@ function Board({
35116
35139
  ticketId: origin.ticketId,
35117
35140
  fromColumnId: origin.fromColumnId,
35118
35141
  toColumnId,
35119
- afterTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access', _715 => _715[finalIndex - 1], 'optionalAccess', _716 => _716.id]), () => ( null)),
35120
- beforeTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access', _717 => _717[finalIndex + 1], 'optionalAccess', _718 => _718.id]), () => ( null))
35142
+ afterTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access', _712 => _712[finalIndex - 1], 'optionalAccess', _713 => _713.id]), () => ( null)),
35143
+ beforeTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access', _714 => _714[finalIndex + 1], 'optionalAccess', _715 => _715.id]), () => ( null))
35121
35144
  });
35122
35145
  };
35123
35146
  const handleDragCancel = () => {
@@ -35146,8 +35169,8 @@ function Board({
35146
35169
  children: items.map((column, i) => {
35147
35170
  const prev = items[i - 1];
35148
35171
  const next = items[i + 1];
35149
- const joinLeft = !!(column.system && _optionalChain([prev, 'optionalAccess', _719 => _719.system]));
35150
- const joinRight = !!(column.system && _optionalChain([next, 'optionalAccess', _720 => _720.system]));
35172
+ const joinLeft = !!(column.system && _optionalChain([prev, 'optionalAccess', _716 => _716.system]));
35173
+ const joinRight = !!(column.system && _optionalChain([next, 'optionalAccess', _717 => _717.system]));
35151
35174
  const showGap = i > 0 && !joinLeft;
35152
35175
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React106.Fragment, { children: [
35153
35176
  showGap && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: "w-[var(--spacing-system-mf)] shrink-0" }),
@@ -35200,7 +35223,7 @@ function Board({
35200
35223
  {
35201
35224
  ticket: activeTicket.ticket,
35202
35225
  columnId: activeTicket.columnId,
35203
- columnColor: _optionalChain([items, 'access', _721 => _721.find, 'call', _722 => _722((c) => c.id === activeTicket.columnId), 'optionalAccess', _723 => _723.color]),
35226
+ columnColor: _optionalChain([items, 'access', _718 => _718.find, 'call', _719 => _719((c) => c.id === activeTicket.columnId), 'optionalAccess', _720 => _720.color]),
35204
35227
  isOverlay: true
35205
35228
  }
35206
35229
  ) : null })
@@ -35216,7 +35239,7 @@ function locate(cols, ticketId) {
35216
35239
  return null;
35217
35240
  }
35218
35241
  function findIndexInColumn(cols, columnId, ticketId) {
35219
- return _nullishCoalesce(_optionalChain([cols, 'access', _724 => _724.find, 'call', _725 => _725((c) => c.id === columnId), 'optionalAccess', _726 => _726.tickets, 'access', _727 => _727.findIndex, 'call', _728 => _728((t) => t.id === ticketId)]), () => ( -1));
35242
+ return _nullishCoalesce(_optionalChain([cols, 'access', _721 => _721.find, 'call', _722 => _722((c) => c.id === columnId), 'optionalAccess', _723 => _723.tickets, 'access', _724 => _724.findIndex, 'call', _725 => _725((t) => t.id === ticketId)]), () => ( -1));
35220
35243
  }
35221
35244
 
35222
35245
  // src/components/features/board/types.ts
@@ -35352,7 +35375,7 @@ function MobileNavPanel({ isOpen, config }) {
35352
35375
  if (item.onClick) {
35353
35376
  item.onClick();
35354
35377
  }
35355
- _optionalChain([config, 'access', _729 => _729.onClose, 'optionalCall', _730 => _730()]);
35378
+ _optionalChain([config, 'access', _726 => _726.onClose, 'optionalCall', _727 => _727()]);
35356
35379
  };
35357
35380
  if (item.href) {
35358
35381
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -35460,7 +35483,7 @@ function MingoAiButton({ source, icon, label = "Mingo AI", className, onClick, .
35460
35483
  "aria-label": label,
35461
35484
  onClick: (e) => {
35462
35485
  window.dispatchEvent(new CustomEvent("ask-ai:open", { detail: { source: _nullishCoalesce(source, () => ( "")) } }));
35463
- _optionalChain([onClick, 'optionalCall', _731 => _731(e)]);
35486
+ _optionalChain([onClick, 'optionalCall', _728 => _728(e)]);
35464
35487
  },
35465
35488
  className: _chunkFIG2RKZFcjs.cn.call(void 0,
35466
35489
  // `--spacing-system-l` is itself responsive (16px, 24px from 800px):
@@ -35629,7 +35652,7 @@ function Header2({ config, platform }) {
35629
35652
  className: _chunkFIG2RKZFcjs.cn.call(void 0,
35630
35653
  "flex justify-start w-full",
35631
35654
  "font-bold text-[16px] leading-none tracking-[-0.32px]",
35632
- index < (_nullishCoalesce(_optionalChain([item, 'access', _732 => _732.children, 'optionalAccess', _733 => _733.length]), () => ( 0))) - 1 && "mb-1",
35655
+ index < (_nullishCoalesce(_optionalChain([item, 'access', _729 => _729.children, 'optionalAccess', _730 => _730.length]), () => ( 0))) - 1 && "mb-1",
35633
35656
  "text-ods-text-primary",
35634
35657
  // All dropdown items use primary text color
35635
35658
  child.isActive && "bg-ods-bg-hover"
@@ -35716,7 +35739,7 @@ function Header2({ config, platform }) {
35716
35739
  "w-full h-[72px] flex items-center justify-between",
35717
35740
  "border-b border-ods-border backdrop-blur-sm",
35718
35741
  "pl-6",
35719
- !_optionalChain([config, 'access', _734 => _734.mingo, 'optionalAccess', _735 => _735.enabled]) && "pr-6",
35742
+ !_optionalChain([config, 'access', _731 => _731.mingo, 'optionalAccess', _732 => _732.enabled]) && "pr-6",
35720
35743
  // Background color (configurable via backgroundColor prop)
35721
35744
  config.backgroundColor || "bg-ods-card",
35722
35745
  config.className
@@ -35724,7 +35747,7 @@ function Header2({ config, platform }) {
35724
35747
  style: config.style,
35725
35748
  children: [
35726
35749
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-start flex-shrink-0", children: [
35727
- _optionalChain([config, 'access', _736 => _736.actions, 'optionalAccess', _737 => _737.left]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center", children: config.actions.left }),
35750
+ _optionalChain([config, 'access', _733 => _733.actions, 'optionalAccess', _734 => _734.left]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center", children: config.actions.left }),
35728
35751
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWBR7H6E3cjs.next_link_default, { href: config.logo.href, className: "transition-opacity duration-200 hover:opacity-80", children: config.logo.element })
35729
35752
  ] }),
35730
35753
  config.navigation && config.navigation.items.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -35741,8 +35764,8 @@ function Header2({ config, platform }) {
35741
35764
  }
35742
35765
  ),
35743
35766
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-end gap-3 flex-shrink-0 self-stretch", children: [
35744
- _optionalChain([config, 'access', _738 => _738.actions, 'optionalAccess', _739 => _739.right]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden lg:flex items-center gap-3", children: config.actions.right }),
35745
- _optionalChain([config, 'access', _740 => _740.actions, 'optionalAccess', _741 => _741.persistent]) && config.actions.persistent.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center", children: config.actions.persistent }),
35767
+ _optionalChain([config, 'access', _735 => _735.actions, 'optionalAccess', _736 => _736.right]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden lg:flex items-center gap-3", children: config.actions.right }),
35768
+ _optionalChain([config, 'access', _737 => _737.actions, 'optionalAccess', _738 => _738.persistent]) && config.actions.persistent.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center", children: config.actions.persistent }),
35746
35769
  config.mobile && config.mobile.enabled && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
35747
35770
  _chunkIMK6RUECcjs.Button,
35748
35771
  {
@@ -35750,15 +35773,15 @@ function Header2({ config, platform }) {
35750
35773
  size: "icon",
35751
35774
  className: "flex lg:hidden",
35752
35775
  onClick: () => {
35753
- _optionalChain([config, 'access', _742 => _742.mobile, 'optionalAccess', _743 => _743.onToggle, 'optionalCall', _744 => _744()]);
35776
+ _optionalChain([config, 'access', _739 => _739.mobile, 'optionalAccess', _740 => _740.onToggle, 'optionalCall', _741 => _741()]);
35754
35777
  },
35755
- "aria-label": _optionalChain([config, 'access', _745 => _745.mobile, 'optionalAccess', _746 => _746.isOpen]) ? "Close menu" : "Open menu",
35756
- "aria-expanded": _nullishCoalesce(_optionalChain([config, 'access', _747 => _747.mobile, 'optionalAccess', _748 => _748.isOpen]), () => ( false)),
35757
- "aria-controls": _optionalChain([config, 'access', _749 => _749.mobile, 'optionalAccess', _750 => _750.isOpen]) ? MOBILE_NAV_PANEL_ID : void 0,
35758
- leftIcon: _optionalChain([config, 'access', _751 => _751.mobile, 'optionalAccess', _752 => _752.menuIcon]) || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.Menu01Icon, {})
35778
+ "aria-label": _optionalChain([config, 'access', _742 => _742.mobile, 'optionalAccess', _743 => _743.isOpen]) ? "Close menu" : "Open menu",
35779
+ "aria-expanded": _nullishCoalesce(_optionalChain([config, 'access', _744 => _744.mobile, 'optionalAccess', _745 => _745.isOpen]), () => ( false)),
35780
+ "aria-controls": _optionalChain([config, 'access', _746 => _746.mobile, 'optionalAccess', _747 => _747.isOpen]) ? MOBILE_NAV_PANEL_ID : void 0,
35781
+ leftIcon: _optionalChain([config, 'access', _748 => _748.mobile, 'optionalAccess', _749 => _749.menuIcon]) || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.Menu01Icon, {})
35759
35782
  }
35760
35783
  ),
35761
- _optionalChain([config, 'access', _753 => _753.mingo, 'optionalAccess', _754 => _754.enabled]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoAiButton, { source: config.mingo.source, icon: config.mingo.icon, label: config.mingo.label, className: config.mingo.className })
35784
+ _optionalChain([config, 'access', _750 => _750.mingo, 'optionalAccess', _751 => _751.enabled]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoAiButton, { source: config.mingo.source, icon: config.mingo.icon, label: config.mingo.label, className: config.mingo.className })
35762
35785
  ] })
35763
35786
  ]
35764
35787
  }
@@ -35773,10 +35796,10 @@ function Header2({ config, platform }) {
35773
35796
  // src/components/navigation/header-skeleton.tsx
35774
35797
 
35775
35798
  function HeaderSkeleton({ config }) {
35776
- const showNavigation = _optionalChain([config, 'optionalAccess', _755 => _755.navigation]) && config.navigation.items.length > 0;
35777
- const showActions = _optionalChain([config, 'optionalAccess', _756 => _756.actions, 'optionalAccess', _757 => _757.right]) && config.actions.right.length > 0;
35778
- const showMobileMenu = _optionalChain([config, 'optionalAccess', _758 => _758.mobile, 'optionalAccess', _759 => _759.enabled]);
35779
- const isAdminHeader = _optionalChain([config, 'optionalAccess', _760 => _760.className, 'optionalAccess', _761 => _761.includes, 'call', _762 => _762("admin")]);
35799
+ const showNavigation = _optionalChain([config, 'optionalAccess', _752 => _752.navigation]) && config.navigation.items.length > 0;
35800
+ const showActions = _optionalChain([config, 'optionalAccess', _753 => _753.actions, 'optionalAccess', _754 => _754.right]) && config.actions.right.length > 0;
35801
+ const showMobileMenu = _optionalChain([config, 'optionalAccess', _755 => _755.mobile, 'optionalAccess', _756 => _756.enabled]);
35802
+ const isAdminHeader = _optionalChain([config, 'optionalAccess', _757 => _757.className, 'optionalAccess', _758 => _758.includes, 'call', _759 => _759("admin")]);
35780
35803
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "sticky top-0 z-40 w-full", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
35781
35804
  "header",
35782
35805
  {
@@ -35785,11 +35808,11 @@ function HeaderSkeleton({ config }) {
35785
35808
  "bg-ods-card border-b border-ods-border backdrop-blur-sm",
35786
35809
  "px-6 py-3",
35787
35810
  "transition-opacity duration-300 ease-in-out",
35788
- _optionalChain([config, 'optionalAccess', _763 => _763.className])
35811
+ _optionalChain([config, 'optionalAccess', _760 => _760.className])
35789
35812
  ),
35790
35813
  children: [
35791
35814
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-start flex-shrink-0", children: [
35792
- isAdminHeader && _optionalChain([config, 'optionalAccess', _764 => _764.actions, 'optionalAccess', _765 => _765.left]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 w-10 bg-ods-border rounded animate-pulse" }) }),
35815
+ isAdminHeader && _optionalChain([config, 'optionalAccess', _761 => _761.actions, 'optionalAccess', _762 => _762.left]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 w-10 bg-ods-border rounded animate-pulse" }) }),
35793
35816
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
35794
35817
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-8 w-8 bg-ods-border rounded animate-pulse" }),
35795
35818
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-6 w-24 bg-ods-border rounded animate-pulse" })
@@ -35797,8 +35820,8 @@ function HeaderSkeleton({ config }) {
35797
35820
  ] }),
35798
35821
  showNavigation && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "nav", { className: _chunkFIG2RKZFcjs.cn.call(void 0,
35799
35822
  "hidden md:flex items-center gap-2",
35800
- _optionalChain([config, 'optionalAccess', _766 => _766.navigation, 'optionalAccess', _767 => _767.position]) === "center" && "absolute left-1/2 transform -translate-x-1/2",
35801
- _optionalChain([config, 'optionalAccess', _768 => _768.navigation, 'optionalAccess', _769 => _769.position]) === "right" && "ml-auto mr-4"
35823
+ _optionalChain([config, 'optionalAccess', _763 => _763.navigation, 'optionalAccess', _764 => _764.position]) === "center" && "absolute left-1/2 transform -translate-x-1/2",
35824
+ _optionalChain([config, 'optionalAccess', _765 => _765.navigation, 'optionalAccess', _766 => _766.position]) === "right" && "ml-auto mr-4"
35802
35825
  ), children: [
35803
35826
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 w-20 bg-ods-border rounded animate-pulse" }),
35804
35827
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 w-28 bg-ods-border rounded animate-pulse" }),
@@ -35914,7 +35937,7 @@ function SlidingSidebar({ config }) {
35914
35937
  variant: "transparent",
35915
35938
  size: "default",
35916
35939
  onClick: () => {
35917
- _optionalChain([item, 'access', _770 => _770.onClick, 'optionalCall', _771 => _771()]);
35940
+ _optionalChain([item, 'access', _767 => _767.onClick, 'optionalCall', _768 => _768()]);
35918
35941
  config.onClose();
35919
35942
  },
35920
35943
  leftIcon: item.icon,
@@ -35937,7 +35960,7 @@ function SlidingSidebar({ config }) {
35937
35960
  variant: "transparent",
35938
35961
  size: "default",
35939
35962
  onClick: () => {
35940
- _optionalChain([item, 'access', _772 => _772.onClick, 'optionalCall', _773 => _773()]);
35963
+ _optionalChain([item, 'access', _769 => _769.onClick, 'optionalCall', _770 => _770()]);
35941
35964
  config.onClose();
35942
35965
  },
35943
35966
  leftIcon: item.icon,
@@ -36069,7 +36092,7 @@ function StickySectionNav({
36069
36092
  ] });
36070
36093
  }
36071
36094
  function useSectionNavigation(sections, options) {
36072
- const [activeSection, setActiveSection] = _react.useState.call(void 0, _optionalChain([sections, 'access', _774 => _774[0], 'optionalAccess', _775 => _775.id]) || "");
36095
+ const [activeSection, setActiveSection] = _react.useState.call(void 0, _optionalChain([sections, 'access', _771 => _771[0], 'optionalAccess', _772 => _772.id]) || "");
36073
36096
  const isScrollingFromClick = _react.useRef.call(void 0, false);
36074
36097
  const { offset: offset2 = 100 } = options || {};
36075
36098
  const handleSectionClick = _react.useCallback.call(void 0, (sectionId) => {
@@ -36093,7 +36116,7 @@ function useSectionNavigation(sections, options) {
36093
36116
  const handleScroll = () => {
36094
36117
  if (isScrollingFromClick.current) return;
36095
36118
  const scrollPosition = window.scrollY + offset2 + 50;
36096
- let currentSection = _optionalChain([sections, 'access', _776 => _776[0], 'optionalAccess', _777 => _777.id]) || "";
36119
+ let currentSection = _optionalChain([sections, 'access', _773 => _773[0], 'optionalAccess', _774 => _774.id]) || "";
36097
36120
  for (let i = sections.length - 1; i >= 0; i--) {
36098
36121
  const element = document.getElementById(sections[i].id);
36099
36122
  if (element && scrollPosition >= element.offsetTop) {
@@ -36284,7 +36307,7 @@ function NavigationSidebar({ config, disabled = false }) {
36284
36307
  } else {
36285
36308
  setDesktopMinimized((prev) => !prev);
36286
36309
  }
36287
- _optionalChain([config, 'access', _778 => _778.onToggleMinimized, 'optionalCall', _779 => _779()]);
36310
+ _optionalChain([config, 'access', _775 => _775.onToggleMinimized, 'optionalCall', _776 => _776()]);
36288
36311
  }, [isTablet, setDesktopMinimized, config]);
36289
36312
  const closeOverlay = _react.useCallback.call(void 0, () => {
36290
36313
  setTabletMinimized(true);
@@ -36298,11 +36321,11 @@ function NavigationSidebar({ config, disabled = false }) {
36298
36321
  return () => document.removeEventListener("keydown", handleKeyDown);
36299
36322
  }, [isOverlayOpen, closeOverlay]);
36300
36323
  const handleItemClick = _react.useCallback.call(void 0, (item, event) => {
36301
- _optionalChain([event, 'optionalAccess', _780 => _780.stopPropagation, 'call', _781 => _781()]);
36324
+ _optionalChain([event, 'optionalAccess', _777 => _777.stopPropagation, 'call', _778 => _778()]);
36302
36325
  if (item.onClick) {
36303
36326
  item.onClick();
36304
36327
  } else if (item.path) {
36305
- _optionalChain([config, 'access', _782 => _782.onNavigate, 'optionalCall', _783 => _783(item.path)]);
36328
+ _optionalChain([config, 'access', _779 => _779.onNavigate, 'optionalCall', _780 => _780(item.path)]);
36306
36329
  }
36307
36330
  if (isTablet) setTabletMinimized(true);
36308
36331
  }, [config, isTablet]);
@@ -36427,11 +36450,11 @@ function HeaderGlobalSearch({
36427
36450
  };
36428
36451
  const handleSubmit = (e) => {
36429
36452
  e.preventDefault();
36430
- _optionalChain([onSubmit, 'optionalCall', _784 => _784(currentValue)]);
36453
+ _optionalChain([onSubmit, 'optionalCall', _781 => _781(currentValue)]);
36431
36454
  };
36432
36455
  const handleKeyDown = (e) => {
36433
36456
  if (e.key === "Enter") {
36434
- _optionalChain([onSubmit, 'optionalCall', _785 => _785(currentValue)]);
36457
+ _optionalChain([onSubmit, 'optionalCall', _782 => _782(currentValue)]);
36435
36458
  }
36436
36459
  };
36437
36460
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -36525,8 +36548,8 @@ function HeaderOrganizationFilter({
36525
36548
  className
36526
36549
  }) {
36527
36550
  const selectedOrg = organizations.find((o) => o.id === selectedOrgId);
36528
- const displayName = _optionalChain([selectedOrg, 'optionalAccess', _786 => _786.name]) || "All Organizations";
36529
- const deviceCount = _nullishCoalesce(_optionalChain([selectedOrg, 'optionalAccess', _787 => _787.deviceCount]), () => ( totalDeviceCount));
36551
+ const displayName = _optionalChain([selectedOrg, 'optionalAccess', _783 => _783.name]) || "All Organizations";
36552
+ const deviceCount = _nullishCoalesce(_optionalChain([selectedOrg, 'optionalAccess', _784 => _784.deviceCount]), () => ( totalDeviceCount));
36530
36553
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIMK6RUECcjs.DropdownMenu, { children: [
36531
36554
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIMK6RUECcjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
36532
36555
  "button",
@@ -36551,11 +36574,11 @@ function HeaderOrganizationFilter({
36551
36574
  }
36552
36575
  ) }),
36553
36576
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIMK6RUECcjs.DropdownMenuContent, { align: "end", className: "min-w-[240px]", children: [
36554
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIMK6RUECcjs.DropdownMenuItem, { onClick: () => _optionalChain([onOrgChange, 'optionalCall', _788 => _788("")]), children: "All Organizations" }),
36577
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIMK6RUECcjs.DropdownMenuItem, { onClick: () => _optionalChain([onOrgChange, 'optionalCall', _785 => _785("")]), children: "All Organizations" }),
36555
36578
  organizations.map((org) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
36556
36579
  _chunkIMK6RUECcjs.DropdownMenuItem,
36557
36580
  {
36558
- onClick: () => _optionalChain([onOrgChange, 'optionalCall', _789 => _789(org.id)]),
36581
+ onClick: () => _optionalChain([onOrgChange, 'optionalCall', _786 => _786(org.id)]),
36559
36582
  children: org.name
36560
36583
  },
36561
36584
  org.id
@@ -36745,9 +36768,9 @@ function NotificationsHeaderButton({
36745
36768
  dimmedClass
36746
36769
  }) {
36747
36770
  const ctx = useOptionalNotifications();
36748
- const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _790 => _790.unreadCount]), () => ( fallbackUnreadCount))) > 0;
36749
- const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _791 => _791.isOpen]), () => ( false));
36750
- const onClick = _optionalChain([ctx, 'optionalAccess', _792 => _792.toggle]);
36771
+ const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _787 => _787.unreadCount]), () => ( fallbackUnreadCount))) > 0;
36772
+ const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _788 => _788.isOpen]), () => ( false));
36773
+ const onClick = _optionalChain([ctx, 'optionalAccess', _789 => _789.toggle]);
36751
36774
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
36752
36775
  HeaderButton,
36753
36776
  {
@@ -36794,7 +36817,7 @@ var MobileBurgerMenu = React121.default.memo(function MobileBurgerMenu2({
36794
36817
  if (item.onClick) {
36795
36818
  item.onClick();
36796
36819
  } else if (item.path) {
36797
- _optionalChain([config, 'access', _793 => _793.onNavigate, 'optionalCall', _794 => _794(item.path)]);
36820
+ _optionalChain([config, 'access', _790 => _790.onNavigate, 'optionalCall', _791 => _791(item.path)]);
36798
36821
  }
36799
36822
  onClose();
36800
36823
  }, [config, onClose]);
@@ -37400,7 +37423,7 @@ var ShellTypeBadge = ({
37400
37423
  className,
37401
37424
  iconClassName
37402
37425
  }) => {
37403
- const normalizedType = _optionalChain([shellType, 'optionalAccess', _795 => _795.toUpperCase, 'call', _796 => _796()]);
37426
+ const normalizedType = _optionalChain([shellType, 'optionalAccess', _792 => _792.toUpperCase, 'call', _793 => _793()]);
37404
37427
  const label = getShellLabel(normalizedType);
37405
37428
  const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
37406
37429
  const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
@@ -37787,12 +37810,12 @@ function OnboardingWalkthrough({
37787
37810
  }
37788
37811
  }, [state.completedSteps, markComplete]);
37789
37812
  const handleStepSkip = (step) => {
37790
- _optionalChain([step, 'access', _797 => _797.onSkip, 'optionalCall', _798 => _798()]);
37813
+ _optionalChain([step, 'access', _794 => _794.onSkip, 'optionalCall', _795 => _795()]);
37791
37814
  markSkipped(step.id);
37792
37815
  };
37793
37816
  const handleDismiss = () => {
37794
37817
  dismissOnboarding();
37795
- _optionalChain([onDismiss, 'optionalCall', _799 => _799()]);
37818
+ _optionalChain([onDismiss, 'optionalCall', _796 => _796()]);
37796
37819
  };
37797
37820
  if (state.dismissed) {
37798
37821
  return null;
@@ -37922,7 +37945,7 @@ var LogCard = ({ log, isLast, showConnector, onClick }) => {
37922
37945
  onKeyDown: (e) => {
37923
37946
  if (e.key === "Enter" || e.key === " ") {
37924
37947
  e.preventDefault();
37925
- _optionalChain([onClick, 'optionalCall', _800 => _800()]);
37948
+ _optionalChain([onClick, 'optionalCall', _797 => _797()]);
37926
37949
  }
37927
37950
  },
37928
37951
  children: [
@@ -38023,7 +38046,7 @@ var LogsList = React118.forwardRef(({
38023
38046
  log,
38024
38047
  isLast: index === logs.length - 1,
38025
38048
  showConnector,
38026
- onClick: () => _optionalChain([onLogClick, 'optionalCall', _801 => _801(log)])
38049
+ onClick: () => _optionalChain([onLogClick, 'optionalCall', _798 => _798(log)])
38027
38050
  },
38028
38051
  log.id
38029
38052
  ))
@@ -38124,7 +38147,7 @@ var Slider = React120.forwardRef(
38124
38147
  ({ className, value = [0], onValueChange, min = 0, max = 100, step = 1, ...props }, ref) => {
38125
38148
  const handleChange = (e) => {
38126
38149
  const newValue = [Number(e.target.value)];
38127
- _optionalChain([onValueChange, 'optionalCall', _802 => _802(newValue)]);
38150
+ _optionalChain([onValueChange, 'optionalCall', _799 => _799(newValue)]);
38128
38151
  };
38129
38152
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
38130
38153
  "input",
@@ -38558,7 +38581,7 @@ function CursorPaginationSimple({
38558
38581
  {
38559
38582
  variant: "transparent",
38560
38583
  size: "icon",
38561
- onClick: () => _optionalChain([onPrevious, 'optionalCall', _803 => _803("")]),
38584
+ onClick: () => _optionalChain([onPrevious, 'optionalCall', _800 => _800("")]),
38562
38585
  disabled: !hasPreviousPage || loading,
38563
38586
  className: "h-8 w-8",
38564
38587
  leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" }),
@@ -38570,7 +38593,7 @@ function CursorPaginationSimple({
38570
38593
  {
38571
38594
  variant: "transparent",
38572
38595
  size: "icon",
38573
- onClick: () => _optionalChain([onNext, 'optionalCall', _804 => _804("")]),
38596
+ onClick: () => _optionalChain([onNext, 'optionalCall', _801 => _801("")]),
38574
38597
  disabled: !hasNextPage || loading,
38575
38598
  className: "h-8 w-8",
38576
38599
  rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" }),
@@ -38590,8 +38613,8 @@ function TableEmptyState({ message: message2, icon, action, className }) {
38590
38613
  icon: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, {}))),
38591
38614
  title: _nullishCoalesce(message2, () => ( "No results found")),
38592
38615
  description: message2 == null ? "Try adjusting your search or filters" : void 0,
38593
- buttonLabel: _optionalChain([action, 'optionalAccess', _805 => _805.label]),
38594
- onButtonClick: _optionalChain([action, 'optionalAccess', _806 => _806.onClick]),
38616
+ buttonLabel: _optionalChain([action, 'optionalAccess', _802 => _802.label]),
38617
+ onButtonClick: _optionalChain([action, 'optionalAccess', _803 => _803.onClick]),
38595
38618
  className: _chunkFIG2RKZFcjs.cn.call(void 0, "py-[var(--spacing-system-xxl)]", className)
38596
38619
  }
38597
38620
  );
@@ -38612,7 +38635,7 @@ function TableColumnFilterDropdown({
38612
38635
  placement = "bottom-start",
38613
38636
  dropdownClassName = "min-w-[240px]"
38614
38637
  }) {
38615
- const activeCount = _optionalChain([filters, 'optionalAccess', _807 => _807[columnKey], 'optionalAccess', _808 => _808.length]) || 0;
38638
+ const activeCount = _optionalChain([filters, 'optionalAccess', _804 => _804[columnKey], 'optionalAccess', _805 => _805.length]) || 0;
38616
38639
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
38617
38640
  FiltersDropdown,
38618
38641
  {
@@ -38655,7 +38678,7 @@ function TableColumnFilterDropdown({
38655
38678
  delete newFilters[columnKey];
38656
38679
  onFilterChange(newFilters);
38657
38680
  },
38658
- currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess', _809 => _809[columnKey]]) || [] },
38681
+ currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess', _806 => _806[columnKey]]) || [] },
38659
38682
  placement,
38660
38683
  dropdownClassName
38661
38684
  }
@@ -38865,7 +38888,7 @@ function TableCardSkeleton({
38865
38888
  className,
38866
38889
  rowClassName
38867
38890
  }) {
38868
- const primaryKey = _optionalChain([(_nullishCoalesce(columns.find((c) => /flex-(1|\[)/.test(c.width || "")), () => ( columns[0]))), 'optionalAccess', _810 => _810.key]);
38891
+ const primaryKey = _optionalChain([(_nullishCoalesce(columns.find((c) => /flex-(1|\[)/.test(c.width || "")), () => ( columns[0]))), 'optionalAccess', _807 => _807.key]);
38869
38892
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
38870
38893
  "div",
38871
38894
  {
@@ -38958,7 +38981,7 @@ function TableRow({
38958
38981
  const keys = column.key.split(".");
38959
38982
  let value = item;
38960
38983
  for (const key of keys) {
38961
- value = _optionalChain([value, 'optionalAccess', _811 => _811[key]]);
38984
+ value = _optionalChain([value, 'optionalAccess', _808 => _808[key]]);
38962
38985
  }
38963
38986
  if (value === null || value === void 0) {
38964
38987
  return "-";
@@ -39047,7 +39070,7 @@ function useTableMotion(enabled) {
39047
39070
  // src/components/ui/table/table.tsx
39048
39071
 
39049
39072
  function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref) {
39050
- const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess', _812 => _812.length])) || Boolean(renderRowActions);
39073
+ const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess', _809 => _809.length])) || Boolean(renderRowActions);
39051
39074
  const result = [...columns];
39052
39075
  if (hasActions) {
39053
39076
  const actionsColumn = {
@@ -39143,7 +39166,7 @@ function Table({
39143
39166
  return rowKey(item);
39144
39167
  }
39145
39168
  const key = item[rowKey];
39146
- return _optionalChain([key, 'optionalAccess', _813 => _813.toString, 'call', _814 => _814()]) || index.toString();
39169
+ return _optionalChain([key, 'optionalAccess', _810 => _810.toString, 'call', _811 => _811()]) || index.toString();
39147
39170
  };
39148
39171
  const getRowClassName = (item, index) => {
39149
39172
  if (typeof rowClassName === "function") {
@@ -39177,23 +39200,23 @@ function Table({
39177
39200
  const allSelected = selectedRows.length > 0 && selectedRows.length === data.length;
39178
39201
  const someSelected = selectedRows.length > 0 && selectedRows.length < data.length;
39179
39202
  const sentinelRef = _react.useRef.call(void 0, null);
39180
- const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess', _815 => _815.onLoadMore]));
39181
- onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess', _816 => _816.onLoadMore]);
39203
+ const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess', _812 => _812.onLoadMore]));
39204
+ onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess', _813 => _813.onLoadMore]);
39182
39205
  _react.useEffect.call(void 0, () => {
39183
- if (!_optionalChain([infiniteScroll, 'optionalAccess', _817 => _817.hasNextPage]) || infiniteScroll.isFetchingNextPage) return;
39206
+ if (!_optionalChain([infiniteScroll, 'optionalAccess', _814 => _814.hasNextPage]) || infiniteScroll.isFetchingNextPage) return;
39184
39207
  const sentinel = sentinelRef.current;
39185
39208
  if (!sentinel) return;
39186
39209
  const observer = new IntersectionObserver(
39187
39210
  (entries) => {
39188
- if (_optionalChain([entries, 'access', _818 => _818[0], 'optionalAccess', _819 => _819.isIntersecting])) {
39189
- _optionalChain([onLoadMoreRef, 'access', _820 => _820.current, 'optionalCall', _821 => _821()]);
39211
+ if (_optionalChain([entries, 'access', _815 => _815[0], 'optionalAccess', _816 => _816.isIntersecting])) {
39212
+ _optionalChain([onLoadMoreRef, 'access', _817 => _817.current, 'optionalCall', _818 => _818()]);
39190
39213
  }
39191
39214
  },
39192
39215
  { rootMargin: "200px" }
39193
39216
  );
39194
39217
  observer.observe(sentinel);
39195
39218
  return () => observer.disconnect();
39196
- }, [_optionalChain([infiniteScroll, 'optionalAccess', _822 => _822.hasNextPage]), _optionalChain([infiniteScroll, 'optionalAccess', _823 => _823.isFetchingNextPage])]);
39219
+ }, [_optionalChain([infiniteScroll, 'optionalAccess', _819 => _819.hasNextPage]), _optionalChain([infiniteScroll, 'optionalAccess', _820 => _820.isFetchingNextPage])]);
39197
39220
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "flex flex-col gap-1 w-full", containerClassName), children: [
39198
39221
  showToolbar && bulkActions && selectedRows.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between bg-ods-card border border-ods-border rounded-[6px] p-3 mb-2", children: [
39199
39222
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary text-sm", children: [
@@ -39263,14 +39286,14 @@ function Table({
39263
39286
  selected: isRowSelected(item),
39264
39287
  onSelect: handleSelectRow,
39265
39288
  animateRowReorder,
39266
- motionDiv: _optionalChain([tableMotion, 'optionalAccess', _824 => _824.motionDiv])
39289
+ motionDiv: _optionalChain([tableMotion, 'optionalAccess', _821 => _821.motionDiv])
39267
39290
  },
39268
39291
  getRowKey(item, index)
39269
39292
  ));
39270
- const LayoutGroup = _optionalChain([tableMotion, 'optionalAccess', _825 => _825.LayoutGroup]);
39293
+ const LayoutGroup = _optionalChain([tableMotion, 'optionalAccess', _822 => _822.LayoutGroup]);
39271
39294
  return animateRowReorder && LayoutGroup ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LayoutGroup, { children: rows }) : rows;
39272
39295
  })(),
39273
- _optionalChain([infiniteScroll, 'optionalAccess', _826 => _826.isFetchingNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
39296
+ _optionalChain([infiniteScroll, 'optionalAccess', _823 => _823.isFetchingNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
39274
39297
  TableCardSkeleton,
39275
39298
  {
39276
39299
  columns,
@@ -39279,7 +39302,7 @@ function Table({
39279
39302
  hasChevron: Boolean(rowHref)
39280
39303
  }
39281
39304
  ),
39282
- _optionalChain([infiniteScroll, 'optionalAccess', _827 => _827.hasNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" }),
39305
+ _optionalChain([infiniteScroll, 'optionalAccess', _824 => _824.hasNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" }),
39283
39306
  !infiniteScroll && Array.from({ length: Math.max(0, skeletonRows - data.length) }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
39284
39307
  "div",
39285
39308
  {
@@ -39637,7 +39660,7 @@ function QueryReportTable({
39637
39660
  );
39638
39661
  const handleExport = () => {
39639
39662
  exportToCSV(data, columns, exportFilename);
39640
- _optionalChain([onExport, 'optionalCall', _828 => _828()]);
39663
+ _optionalChain([onExport, 'optionalCall', _825 => _825()]);
39641
39664
  };
39642
39665
  const tableMinWidth = columns.length * (columnWidth + 16);
39643
39666
  const {
@@ -39810,7 +39833,7 @@ function DataTableColumnFilter({
39810
39833
  align = "left"
39811
39834
  }) {
39812
39835
  const currentValue = column.getFilterValue();
39813
- const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess', _829 => _829.length]), () => ( 0));
39836
+ const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess', _826 => _826.length]), () => ( 0));
39814
39837
  const sections = _react.useMemo.call(void 0,
39815
39838
  () => [
39816
39839
  {
@@ -39891,7 +39914,7 @@ function DataTableHeader({
39891
39914
  if (header.isPlaceholder) return false;
39892
39915
  if (isLgUp) return true;
39893
39916
  const meta = header.column.columnDef.meta;
39894
- return Boolean(_optionalChain([meta, 'optionalAccess', _830 => _830.filter])) || _optionalChain([meta, 'optionalAccess', _831 => _831.alwaysShowHeader]) === true;
39917
+ return Boolean(_optionalChain([meta, 'optionalAccess', _827 => _827.filter])) || _optionalChain([meta, 'optionalAccess', _828 => _828.alwaysShowHeader]) === true;
39895
39918
  });
39896
39919
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
39897
39920
  "div",
@@ -39921,21 +39944,21 @@ function HeaderCell({ header, isLgUp, sort, onSortChange }) {
39921
39944
  if (header.isPlaceholder) return null;
39922
39945
  const column = header.column;
39923
39946
  const meta = column.columnDef.meta;
39924
- const hasFilter = Boolean(_optionalChain([meta, 'optionalAccess', _832 => _832.filter]));
39925
- const keepOnTablet = hasFilter || _optionalChain([meta, 'optionalAccess', _833 => _833.alwaysShowHeader]) === true;
39926
- const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _834 => _834.align]), () => ( "left"));
39927
- const canSort = _optionalChain([meta, 'optionalAccess', _835 => _835.sortable]) === true;
39928
- const sortDir = _optionalChain([sort, 'optionalAccess', _836 => _836.id]) === column.id ? sort.desc ? "desc" : "asc" : false;
39947
+ const hasFilter = Boolean(_optionalChain([meta, 'optionalAccess', _829 => _829.filter]));
39948
+ const keepOnTablet = hasFilter || _optionalChain([meta, 'optionalAccess', _830 => _830.alwaysShowHeader]) === true;
39949
+ const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _831 => _831.align]), () => ( "left"));
39950
+ const canSort = _optionalChain([meta, 'optionalAccess', _832 => _832.sortable]) === true;
39951
+ const sortDir = _optionalChain([sort, 'optionalAccess', _833 => _833.id]) === column.id ? sort.desc ? "desc" : "asc" : false;
39929
39952
  if (!isLgUp && !keepOnTablet) return null;
39930
39953
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
39931
39954
  "div",
39932
39955
  {
39933
39956
  className: _chunkFIG2RKZFcjs.cn.call(void 0,
39934
39957
  "flex items-stretch",
39935
- isLgUp && (_optionalChain([meta, 'optionalAccess', _837 => _837.width]) || "flex-1 min-w-0"),
39936
- _optionalChain([meta, 'optionalAccess', _838 => _838.headerClassName]),
39958
+ isLgUp && (_optionalChain([meta, 'optionalAccess', _834 => _834.width]) || "flex-1 min-w-0"),
39959
+ _optionalChain([meta, 'optionalAccess', _835 => _835.headerClassName]),
39937
39960
  // Don't apply hide classes if column is filterable on tablet (keep filter accessible)
39938
- !(keepOnTablet && !isLgUp) && getHideClasses2(_optionalChain([meta, 'optionalAccess', _839 => _839.hideAt]))
39961
+ !(keepOnTablet && !isLgUp) && getHideClasses2(_optionalChain([meta, 'optionalAccess', _836 => _836.hideAt]))
39939
39962
  ),
39940
39963
  children: hasFilter ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
39941
39964
  DataTableColumnFilter,
@@ -39954,7 +39977,7 @@ function HeaderCell({ header, isLgUp, sort, onSortChange }) {
39954
39977
  isLgUp && alignJustify(align),
39955
39978
  canSort && "group cursor-pointer"
39956
39979
  ),
39957
- onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall', _840 => _840(column.id)]) : void 0,
39980
+ onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall', _837 => _837(column.id)]) : void 0,
39958
39981
  children: [
39959
39982
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
39960
39983
  canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
@@ -40019,7 +40042,7 @@ function DataTableSkeleton({
40019
40042
  }) {
40020
40043
  const table = useDataTableContext();
40021
40044
  const columns = table.getVisibleFlatColumns();
40022
- const firstColumnId = _optionalChain([columns, 'access', _841 => _841[0], 'optionalAccess', _842 => _842.id]);
40045
+ const firstColumnId = _optionalChain([columns, 'access', _838 => _838[0], 'optionalAccess', _839 => _839.id]);
40023
40046
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
40024
40047
  "div",
40025
40048
  {
@@ -40043,7 +40066,7 @@ function DataTableSkeleton({
40043
40066
  {
40044
40067
  className: _chunkFIG2RKZFcjs.cn.call(void 0,
40045
40068
  "flex flex-col justify-center shrink-0",
40046
- _optionalChain([meta, 'optionalAccess', _843 => _843.width]) || "flex-1"
40069
+ _optionalChain([meta, 'optionalAccess', _840 => _840.width]) || "flex-1"
40047
40070
  ),
40048
40071
  children: [
40049
40072
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-5 bg-ods-bg-surface rounded-sm w-3/4 mb-[var(--spacing-system-xxs)]" }),
@@ -40093,7 +40116,7 @@ function DataTableRowImpl({
40093
40116
  const handleClick = _react.useCallback.call(void 0,
40094
40117
  (e) => {
40095
40118
  const target = e.target;
40096
- if (!_optionalChain([containerRef, 'access', _844 => _844.current, 'optionalAccess', _845 => _845.contains, 'call', _846 => _846(target)])) {
40119
+ if (!_optionalChain([containerRef, 'access', _841 => _841.current, 'optionalAccess', _842 => _842.contains, 'call', _843 => _843(target)])) {
40097
40120
  if (isLinkMode) e.preventDefault();
40098
40121
  return;
40099
40122
  }
@@ -40101,7 +40124,7 @@ function DataTableRowImpl({
40101
40124
  if (isLinkMode) e.preventDefault();
40102
40125
  return;
40103
40126
  }
40104
- _optionalChain([onClick, 'optionalCall', _847 => _847(row.original)]);
40127
+ _optionalChain([onClick, 'optionalCall', _844 => _844(row.original)]);
40105
40128
  },
40106
40129
  [onClick, row.original, isLinkMode]
40107
40130
  );
@@ -40126,10 +40149,10 @@ function DataTableRowImpl({
40126
40149
  {
40127
40150
  className: _chunkFIG2RKZFcjs.cn.call(void 0,
40128
40151
  "flex flex-col overflow-hidden",
40129
- alignJustify(_optionalChain([meta, 'optionalAccess', _848 => _848.align])),
40130
- _optionalChain([meta, 'optionalAccess', _849 => _849.width]) || "flex-1 min-w-0",
40131
- _optionalChain([meta, 'optionalAccess', _850 => _850.cellClassName]),
40132
- getHideClasses2(_optionalChain([meta, 'optionalAccess', _851 => _851.hideAt]))
40152
+ alignJustify(_optionalChain([meta, 'optionalAccess', _845 => _845.align])),
40153
+ _optionalChain([meta, 'optionalAccess', _846 => _846.width]) || "flex-1 min-w-0",
40154
+ _optionalChain([meta, 'optionalAccess', _847 => _847.cellClassName]),
40155
+ getHideClasses2(_optionalChain([meta, 'optionalAccess', _848 => _848.hideAt]))
40133
40156
  ),
40134
40157
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CellContent, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) })
40135
40158
  },
@@ -40209,7 +40232,7 @@ function DataTableBody({
40209
40232
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "flex flex-col gap-[var(--spacing-system-xsf)] w-full", className), children: [
40210
40233
  rows.map((row, index) => {
40211
40234
  const item = row.original;
40212
- const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall', _852 => _852(item)]), () => ( void 0));
40235
+ const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall', _849 => _849(item)]), () => ( void 0));
40213
40236
  const cls = typeof rowClassName === "function" ? rowClassName(item, index) : rowClassName;
40214
40237
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
40215
40238
  DataTableRow,
@@ -40220,7 +40243,7 @@ function DataTableBody({
40220
40243
  compact,
40221
40244
  autoHeight,
40222
40245
  className: cls,
40223
- subRow: _optionalChain([renderSubRow, 'optionalCall', _853 => _853(item)])
40246
+ subRow: _optionalChain([renderSubRow, 'optionalCall', _850 => _850(item)])
40224
40247
  },
40225
40248
  row.id
40226
40249
  );
@@ -40275,7 +40298,7 @@ function DataTableInfiniteFooter({
40275
40298
  if (!sentinel) return;
40276
40299
  const observer = new IntersectionObserver(
40277
40300
  (entries) => {
40278
- if (_optionalChain([entries, 'access', _854 => _854[0], 'optionalAccess', _855 => _855.isIntersecting])) onLoadMoreRef.current();
40301
+ if (_optionalChain([entries, 'access', _851 => _851[0], 'optionalAccess', _852 => _852.isIntersecting])) onLoadMoreRef.current();
40279
40302
  },
40280
40303
  { rootMargin }
40281
40304
  );
@@ -40323,7 +40346,7 @@ function DataTableRowCount({
40323
40346
  const table = useDataTableContext();
40324
40347
  const count = _nullishCoalesce(totalCount, () => ( table.getRowModel().rows.length));
40325
40348
  if (hideWhenEmpty && count === 0) return null;
40326
- const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _856 => _856(count, itemName)]), () => ( (count === 1 ? itemName : `${itemName}s`)));
40349
+ const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _853 => _853(count, itemName)]), () => ( (count === 1 ? itemName : `${itemName}s`)));
40327
40350
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
40328
40351
  "span",
40329
40352
  {
@@ -40482,7 +40505,7 @@ function SearchInput({
40482
40505
  if (!showHiddenTags) return;
40483
40506
  const handleClick = (e) => {
40484
40507
  const target = e.target;
40485
- if (!_optionalChain([hiddenTagsRef, 'access', _857 => _857.current, 'optionalAccess', _858 => _858.contains, 'call', _859 => _859(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _860 => _860.current, 'optionalAccess', _861 => _861.contains, 'call', _862 => _862(target)])) {
40508
+ if (!_optionalChain([hiddenTagsRef, 'access', _854 => _854.current, 'optionalAccess', _855 => _855.contains, 'call', _856 => _856(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _857 => _857.current, 'optionalAccess', _858 => _858.contains, 'call', _859 => _859(target)])) {
40486
40509
  setShowHiddenTags(false);
40487
40510
  }
40488
40511
  };
@@ -40530,10 +40553,10 @@ function SearchInput({
40530
40553
  } else {
40531
40554
  setInternalValue("");
40532
40555
  }
40533
- _optionalChain([inputRef, 'access', _863 => _863.current, 'optionalAccess', _864 => _864.focus, 'call', _865 => _865()]);
40556
+ _optionalChain([inputRef, 'access', _860 => _860.current, 'optionalAccess', _861 => _861.focus, 'call', _862 => _862()]);
40534
40557
  };
40535
40558
  const handleResultClick = (result, e) => {
40536
- _optionalChain([onResultSelect, 'optionalCall', _866 => _866(
40559
+ _optionalChain([onResultSelect, 'optionalCall', _863 => _863(
40537
40560
  result,
40538
40561
  e ? {
40539
40562
  metaKey: e.metaKey,
@@ -40565,7 +40588,7 @@ function SearchInput({
40565
40588
  if (highlightedIndex >= 0 && flatResults[highlightedIndex]) {
40566
40589
  handleResultClick(flatResults[highlightedIndex]);
40567
40590
  } else {
40568
- _optionalChain([onSubmit, 'optionalCall', _867 => _867(currentValue)]);
40591
+ _optionalChain([onSubmit, 'optionalCall', _864 => _864(currentValue)]);
40569
40592
  }
40570
40593
  break;
40571
40594
  case "Escape":
@@ -40643,7 +40666,7 @@ function SearchInput({
40643
40666
  dropdownVisible && "!border-ods-accent"
40644
40667
  ),
40645
40668
  onClick: () => {
40646
- _optionalChain([inputRef, 'access', _868 => _868.current, 'optionalAccess', _869 => _869.focus, 'call', _870 => _870()]);
40669
+ _optionalChain([inputRef, 'access', _865 => _865.current, 'optionalAccess', _866 => _866.focus, 'call', _867 => _867()]);
40647
40670
  setIsOpen(true);
40648
40671
  },
40649
40672
  children: [
@@ -40727,10 +40750,10 @@ function SearchInput({
40727
40750
  align: "start",
40728
40751
  onOpenAutoFocus: (e) => {
40729
40752
  e.preventDefault();
40730
- _optionalChain([inputRef, 'access', _871 => _871.current, 'optionalAccess', _872 => _872.focus, 'call', _873 => _873()]);
40753
+ _optionalChain([inputRef, 'access', _868 => _868.current, 'optionalAccess', _869 => _869.focus, 'call', _870 => _870()]);
40731
40754
  },
40732
40755
  onInteractOutside: (e) => {
40733
- if (_optionalChain([containerRef, 'access', _874 => _874.current, 'optionalAccess', _875 => _875.contains, 'call', _876 => _876(e.target)])) {
40756
+ if (_optionalChain([containerRef, 'access', _871 => _871.current, 'optionalAccess', _872 => _872.contains, 'call', _873 => _873(e.target)])) {
40734
40757
  e.preventDefault();
40735
40758
  }
40736
40759
  },
@@ -40747,10 +40770,10 @@ function SearchInput({
40747
40770
  ref: hiddenTagsPopupRef,
40748
40771
  items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
40749
40772
  style: {
40750
- left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([containerRef, 'access', _877 => _877.current, 'optionalAccess', _878 => _878.getBoundingClientRect, 'call', _879 => _879(), 'access', _880 => _880.left]), () => ( 0))) : 0
40773
+ left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([containerRef, 'access', _874 => _874.current, 'optionalAccess', _875 => _875.getBoundingClientRect, 'call', _876 => _876(), 'access', _877 => _877.left]), () => ( 0))) : 0
40751
40774
  },
40752
40775
  onRemove: (value2) => {
40753
- _optionalChain([onFilterRemove, 'optionalCall', _881 => _881(value2)]);
40776
+ _optionalChain([onFilterRemove, 'optionalCall', _878 => _878(value2)]);
40754
40777
  if (hiddenCount <= 1) setShowHiddenTags(false);
40755
40778
  }
40756
40779
  }
@@ -40801,7 +40824,7 @@ function FilterListItem({
40801
40824
  }) {
40802
40825
  const handleToggle = () => {
40803
40826
  if (disabled) return;
40804
- _optionalChain([onToggle, 'optionalCall', _882 => _882(!selected)]);
40827
+ _optionalChain([onToggle, 'optionalCall', _879 => _879(!selected)]);
40805
40828
  };
40806
40829
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
40807
40830
  "div",
@@ -40848,7 +40871,7 @@ function FilterListItem({
40848
40871
  CheckboxPrimitive4.Root,
40849
40872
  {
40850
40873
  checked: selected,
40851
- onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall', _883 => _883(c === true)]),
40874
+ onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall', _880 => _880(c === true)]),
40852
40875
  onClick: (e) => e.stopPropagation(),
40853
40876
  disabled,
40854
40877
  "aria-label": title,
@@ -40947,7 +40970,7 @@ function TagSearchInput({
40947
40970
  if (!showHiddenTags) return;
40948
40971
  const handleClick = (e) => {
40949
40972
  const target = e.target;
40950
- if (!_optionalChain([hiddenTagsRef, 'access', _884 => _884.current, 'optionalAccess', _885 => _885.contains, 'call', _886 => _886(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _887 => _887.current, 'optionalAccess', _888 => _888.contains, 'call', _889 => _889(target)])) {
40973
+ if (!_optionalChain([hiddenTagsRef, 'access', _881 => _881.current, 'optionalAccess', _882 => _882.contains, 'call', _883 => _883(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _884 => _884.current, 'optionalAccess', _885 => _885.contains, 'call', _886 => _886(target)])) {
40951
40974
  setShowHiddenTags(false);
40952
40975
  }
40953
40976
  };
@@ -40963,13 +40986,13 @@ function TagSearchInput({
40963
40986
  e.preventDefault();
40964
40987
  onSubmit(searchValue);
40965
40988
  }
40966
- _optionalChain([onKeyDown, 'optionalCall', _890 => _890(e)]);
40989
+ _optionalChain([onKeyDown, 'optionalCall', _887 => _887(e)]);
40967
40990
  };
40968
40991
  const handleClearAll = (e) => {
40969
40992
  e.stopPropagation();
40970
40993
  e.preventDefault();
40971
- _optionalChain([onClearAll, 'optionalCall', _891 => _891()]);
40972
- _optionalChain([inputRef, 'access', _892 => _892.current, 'optionalAccess', _893 => _893.focus, 'call', _894 => _894()]);
40994
+ _optionalChain([onClearAll, 'optionalCall', _888 => _888()]);
40995
+ _optionalChain([inputRef, 'access', _889 => _889.current, 'optionalAccess', _890 => _890.focus, 'call', _891 => _891()]);
40973
40996
  };
40974
40997
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: wrapperRef, className: "relative", children: [
40975
40998
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -40986,7 +41009,7 @@ function TagSearchInput({
40986
41009
  className
40987
41010
  ),
40988
41011
  onClick: () => {
40989
- if (!disabled) _optionalChain([inputRef, 'access', _895 => _895.current, 'optionalAccess', _896 => _896.focus, 'call', _897 => _897()]);
41012
+ if (!disabled) _optionalChain([inputRef, 'access', _892 => _892.current, 'optionalAccess', _893 => _893.focus, 'call', _894 => _894()]);
40990
41013
  },
40991
41014
  children: [
40992
41015
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 flex items-center pl-3", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, { className: "text-ods-text-secondary size-4 md:size-6" }) }),
@@ -41058,7 +41081,7 @@ function TagSearchInput({
41058
41081
  items: hiddenTags,
41059
41082
  disabled,
41060
41083
  style: {
41061
- left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([wrapperRef, 'access', _898 => _898.current, 'optionalAccess', _899 => _899.getBoundingClientRect, 'call', _900 => _900(), 'access', _901 => _901.left]), () => ( 0))) : 0
41084
+ left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([wrapperRef, 'access', _895 => _895.current, 'optionalAccess', _896 => _896.getBoundingClientRect, 'call', _897 => _897(), 'access', _898 => _898.left]), () => ( 0))) : 0
41062
41085
  },
41063
41086
  onRemove: (value) => {
41064
41087
  onTagRemove(value);
@@ -41159,7 +41182,7 @@ function MarkdownEditor({
41159
41182
  const [defaultExtraCommands, setDefaultExtraCommands] = _react.useState.call(void 0, []);
41160
41183
  _react.useEffect.call(void 0, () => {
41161
41184
  Promise.resolve().then(() => _interopRequireWildcard(require("@uiw/react-md-editor"))).then((mod) => {
41162
- if (_optionalChain([mod, 'access', _902 => _902.commands, 'optionalAccess', _903 => _903.getExtraCommands])) {
41185
+ if (_optionalChain([mod, 'access', _899 => _899.commands, 'optionalAccess', _900 => _900.getExtraCommands])) {
41163
41186
  setDefaultExtraCommands(mod.commands.getExtraCommands());
41164
41187
  }
41165
41188
  });
@@ -41193,7 +41216,7 @@ function MarkdownEditor({
41193
41216
  const isImage = file.type.startsWith("image/");
41194
41217
  const markdown = isImage ? `![${file.name}](${url})` : `[${file.name}](${url})`;
41195
41218
  insertTextAtCursor(markdown);
41196
- _optionalChain([onFileUploaded, 'optionalCall', _904 => _904(url, file.name)]);
41219
+ _optionalChain([onFileUploaded, 'optionalCall', _901 => _901(url, file.name)]);
41197
41220
  } catch (error) {
41198
41221
  console.error("File upload failed:", error);
41199
41222
  setUploadProgress("Upload failed. Please try again.");
@@ -41206,7 +41229,7 @@ function MarkdownEditor({
41206
41229
  );
41207
41230
  const handleFileInputChange = _react.useCallback.call(void 0,
41208
41231
  (e) => {
41209
- const file = _optionalChain([e, 'access', _905 => _905.target, 'access', _906 => _906.files, 'optionalAccess', _907 => _907[0]]);
41232
+ const file = _optionalChain([e, 'access', _902 => _902.target, 'access', _903 => _903.files, 'optionalAccess', _904 => _904[0]]);
41210
41233
  if (file) {
41211
41234
  handleFileUpload(file);
41212
41235
  e.target.value = "";
@@ -41217,7 +41240,7 @@ function MarkdownEditor({
41217
41240
  const handlePaste = _react.useCallback.call(void 0,
41218
41241
  (e) => {
41219
41242
  if (!onUploadFile) return;
41220
- const items = _optionalChain([e, 'access', _908 => _908.clipboardData, 'optionalAccess', _909 => _909.items]);
41243
+ const items = _optionalChain([e, 'access', _905 => _905.clipboardData, 'optionalAccess', _906 => _906.items]);
41221
41244
  if (!items) return;
41222
41245
  for (const item of items) {
41223
41246
  if (item.type.startsWith("image/")) {
@@ -41242,7 +41265,7 @@ function MarkdownEditor({
41242
41265
  buttonProps: { "aria-label": "Upload file", title: "Upload file" },
41243
41266
  icon: isUploading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "w-3 h-3 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "w-3 h-3" }),
41244
41267
  execute: () => {
41245
- _optionalChain([fileInputRef, 'access', _910 => _910.current, 'optionalAccess', _911 => _911.click, 'call', _912 => _912()]);
41268
+ _optionalChain([fileInputRef, 'access', _907 => _907.current, 'optionalAccess', _908 => _908.click, 'call', _909 => _909()]);
41246
41269
  }
41247
41270
  } : null;
41248
41271
  const extraCommands = uploadCommand ? [...defaultExtraCommands, uploadCommand] : defaultExtraCommands;
@@ -41254,7 +41277,7 @@ function MarkdownEditor({
41254
41277
  const EDGE_ZONE = 60;
41255
41278
  const MAX_SCROLL_SPEED = 15;
41256
41279
  const findScrollParent = _react.useCallback.call(void 0, (el) => {
41257
- let node = _optionalChain([el, 'optionalAccess', _913 => _913.parentElement]);
41280
+ let node = _optionalChain([el, 'optionalAccess', _910 => _910.parentElement]);
41258
41281
  while (node && node !== document.documentElement) {
41259
41282
  const { overflowY } = window.getComputedStyle(node);
41260
41283
  if ((overflowY === "auto" || overflowY === "scroll") && node.scrollHeight > node.clientHeight) {
@@ -41397,7 +41420,7 @@ function matchesAccept(file, accept) {
41397
41420
  });
41398
41421
  }
41399
41422
  function dragHasFiles(e) {
41400
- const types = _optionalChain([e, 'access', _914 => _914.dataTransfer, 'optionalAccess', _915 => _915.types]);
41423
+ const types = _optionalChain([e, 'access', _911 => _911.dataTransfer, 'optionalAccess', _912 => _912.types]);
41401
41424
  if (!types) return false;
41402
41425
  for (let i = 0; i < types.length; i++) {
41403
41426
  if (types[i] === "Files") return true;
@@ -41493,7 +41516,7 @@ function FileUpload({
41493
41516
  e.stopPropagation();
41494
41517
  setDragActive(false);
41495
41518
  if (disabled) return;
41496
- if (_optionalChain([e, 'access', _916 => _916.dataTransfer, 'access', _917 => _917.files, 'optionalAccess', _918 => _918.length])) {
41519
+ if (_optionalChain([e, 'access', _913 => _913.dataTransfer, 'access', _914 => _914.files, 'optionalAccess', _915 => _915.length])) {
41497
41520
  handleFiles(e.dataTransfer.files);
41498
41521
  }
41499
41522
  };
@@ -41521,7 +41544,7 @@ function FileUpload({
41521
41544
  e.preventDefault();
41522
41545
  dragCounter = 0;
41523
41546
  setDragActive(false);
41524
- if (_optionalChain([e, 'access', _919 => _919.dataTransfer, 'optionalAccess', _920 => _920.files, 'optionalAccess', _921 => _921.length])) {
41547
+ if (_optionalChain([e, 'access', _916 => _916.dataTransfer, 'optionalAccess', _917 => _917.files, 'optionalAccess', _918 => _918.length])) {
41525
41548
  handleFilesRef.current(e.dataTransfer.files);
41526
41549
  }
41527
41550
  };
@@ -41543,7 +41566,7 @@ function FileUpload({
41543
41566
  };
41544
41567
  }, [acceptWindowDrops, disabled]);
41545
41568
  const handleFileSelect = (e) => {
41546
- if (_optionalChain([e, 'access', _922 => _922.target, 'access', _923 => _923.files, 'optionalAccess', _924 => _924.length])) {
41569
+ if (_optionalChain([e, 'access', _919 => _919.target, 'access', _920 => _920.files, 'optionalAccess', _921 => _921.length])) {
41547
41570
  handleFiles(e.target.files);
41548
41571
  }
41549
41572
  };
@@ -41560,7 +41583,7 @@ function FileUpload({
41560
41583
  };
41561
41584
  const openDialog = async () => {
41562
41585
  if (disabled) return;
41563
- _optionalChain([fileInputRef, 'access', _925 => _925.current, 'optionalAccess', _926 => _926.click, 'call', _927 => _927()]);
41586
+ _optionalChain([fileInputRef, 'access', _922 => _922.current, 'optionalAccess', _923 => _923.click, 'call', _924 => _924()]);
41564
41587
  };
41565
41588
  const displayError = error || validationError || void 0;
41566
41589
  const hasFiles = isManaged ? managedFiles.length > 0 : files.length > 0;
@@ -41622,7 +41645,7 @@ function FileUpload({
41622
41645
  "button",
41623
41646
  {
41624
41647
  type: "button",
41625
- onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall', _928 => _928(entry.id)]),
41648
+ onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall', _925 => _925(entry.id)]),
41626
41649
  className: "shrink-0 text-ods-error hover:opacity-80 transition-opacity",
41627
41650
  "aria-label": `Remove ${entry.fileName}`,
41628
41651
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.TrashIcon, { className: "size-6" })
@@ -41753,7 +41776,7 @@ function ImageUploader({
41753
41776
  onChange(file);
41754
41777
  };
41755
41778
  const handleFileSelect = (e) => {
41756
- validateAndEmit(_optionalChain([e, 'access', _929 => _929.target, 'access', _930 => _930.files, 'optionalAccess', _931 => _931[0]]));
41779
+ validateAndEmit(_optionalChain([e, 'access', _926 => _926.target, 'access', _927 => _927.files, 'optionalAccess', _928 => _928[0]]));
41757
41780
  if (inputRef.current) inputRef.current.value = "";
41758
41781
  };
41759
41782
  const handleDrag = (e) => {
@@ -41768,11 +41791,11 @@ function ImageUploader({
41768
41791
  e.stopPropagation();
41769
41792
  setDragActive(false);
41770
41793
  if (!interactive) return;
41771
- validateAndEmit(_optionalChain([e, 'access', _932 => _932.dataTransfer, 'access', _933 => _933.files, 'optionalAccess', _934 => _934[0]]));
41794
+ validateAndEmit(_optionalChain([e, 'access', _929 => _929.dataTransfer, 'access', _930 => _930.files, 'optionalAccess', _931 => _931[0]]));
41772
41795
  };
41773
41796
  const openDialog = () => {
41774
41797
  if (!interactive) return;
41775
- _optionalChain([inputRef, 'access', _935 => _935.current, 'optionalAccess', _936 => _936.click, 'call', _937 => _937()]);
41798
+ _optionalChain([inputRef, 'access', _932 => _932.current, 'optionalAccess', _933 => _933.click, 'call', _934 => _934()]);
41776
41799
  };
41777
41800
  const handleRootKeyDown = (e) => {
41778
41801
  if (hasImage || !interactive) return;
@@ -41963,8 +41986,8 @@ function ColorPresetSelect({
41963
41986
  }) {
41964
41987
  const selectedPreset = presets.find((p) => p.key === presetKey);
41965
41988
  const isCustom = !selectedPreset;
41966
- const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _938 => _938.label]), () => ( "Custom"));
41967
- const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _939 => _939.color]), () => ( value));
41989
+ const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _935 => _935.label]), () => ( "Custom"));
41990
+ const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _936 => _936.color]), () => ( value));
41968
41991
  const groups = [
41969
41992
  {
41970
41993
  items: [
@@ -42254,7 +42277,7 @@ function TicketStatusConfigRow({
42254
42277
  _chunkIMK6RUECcjs.Input,
42255
42278
  {
42256
42279
  value: name,
42257
- onChange: (e) => _optionalChain([onNameChange, 'optionalCall', _940 => _940(e.target.value)]),
42280
+ onChange: (e) => _optionalChain([onNameChange, 'optionalCall', _937 => _937(e.target.value)]),
42258
42281
  disabled: isSystem,
42259
42282
  readOnly: isSystem,
42260
42283
  "aria-label": "Status name",
@@ -42627,14 +42650,14 @@ function TicketInfoSection({
42627
42650
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
42628
42651
  SquareAvatar,
42629
42652
  {
42630
- src: _optionalChain([organization, 'optionalAccess', _941 => _941.imageSrc]),
42631
- alt: _optionalChain([organization, 'optionalAccess', _942 => _942.name]),
42632
- fallback: _optionalChain([organization, 'optionalAccess', _943 => _943.name]) || "Org",
42653
+ src: _optionalChain([organization, 'optionalAccess', _938 => _938.imageSrc]),
42654
+ alt: _optionalChain([organization, 'optionalAccess', _939 => _939.name]),
42655
+ fallback: _optionalChain([organization, 'optionalAccess', _940 => _940.name]) || "Org",
42633
42656
  size: "md",
42634
42657
  className: "shrink-0"
42635
42658
  }
42636
42659
  ),
42637
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess', _944 => _944.name]) || "Unassigned", label: "Organization" })
42660
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess', _941 => _941.name]) || "Unassigned", label: "Organization" })
42638
42661
  ] }),
42639
42662
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: assigned ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
42640
42663
  AssigneeDropdown,
@@ -42655,10 +42678,10 @@ function TicketInfoSection({
42655
42678
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
42656
42679
  InfoCell2,
42657
42680
  {
42658
- value: _optionalChain([device, 'optionalAccess', _945 => _945.name]) || "Unassigned",
42681
+ value: _optionalChain([device, 'optionalAccess', _942 => _942.name]) || "Unassigned",
42659
42682
  label: "Device",
42660
- icon: _optionalChain([device, 'optionalAccess', _946 => _946.icon]),
42661
- onClick: _optionalChain([device, 'optionalAccess', _947 => _947.onClick])
42683
+ icon: _optionalChain([device, 'optionalAccess', _943 => _943.icon]),
42684
+ onClick: _optionalChain([device, 'optionalAccess', _944 => _944.onClick])
42662
42685
  }
42663
42686
  ),
42664
42687
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-4 min-w-0", children: [
@@ -42988,7 +43011,7 @@ function RoadmapCard({
42988
43011
  const compactHref = safeHref(_nullishCoalesce(href, () => ( null)));
42989
43012
  const hasVotes = (_nullishCoalesce(item.upvotes, () => ( 0))) > 0 || (_nullishCoalesce(item.downvotes, () => ( 0))) > 0;
42990
43013
  const hasFigma = !!item.figmaUrl;
42991
- const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access', _948 => _948.screenshots, 'optionalAccess', _949 => _949.length]), () => ( 0))) > 0;
43014
+ const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access', _945 => _945.screenshots, 'optionalAccess', _946 => _946.length]), () => ( 0))) > 0;
42992
43015
  const typeLabel = getTaskTypeLabel(item.customItemId);
42993
43016
  const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
42994
43017
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
@@ -43007,7 +43030,7 @@ function RoadmapCard({
43007
43030
  unoptimized: true,
43008
43031
  className: "h-8 w-8 object-contain"
43009
43032
  }
43010
- ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-[10px] font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _950 => _950.title, 'optionalAccess', _951 => _951.substring, 'call', _952 => _952(0, 2)]) || "??" })
43033
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-[10px] font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _947 => _947.title, 'optionalAccess', _948 => _948.substring, 'call', _949 => _949(0, 2)]) || "??" })
43011
43034
  }
43012
43035
  ),
43013
43036
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
@@ -43082,7 +43105,7 @@ function RoadmapCard({
43082
43105
  unoptimized: true,
43083
43106
  className: "object-contain p-1"
43084
43107
  }
43085
- ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _953 => _953.title, 'optionalAccess', _954 => _954.substring, 'call', _955 => _955(0, 2)]) || "??" }) }),
43108
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _950 => _950.title, 'optionalAccess', _951 => _951.substring, 'call', _952 => _952(0, 2)]) || "??" }) }),
43086
43109
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 min-w-0 flex flex-col", children: [
43087
43110
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-[48px] flex items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-h3 text-ods-text-primary tracking-[-0.36px] flex-1 line-clamp-2", children: item.title }) }),
43088
43111
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-[20px] flex items-center", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-h5 text-ods-text-secondary uppercase tracking-[-0.28px] truncate", children: [
@@ -43592,7 +43615,7 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
43592
43615
  ] }) : null,
43593
43616
  item.preview ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-2 whitespace-pre-wrap break-words text-[13px] leading-5 text-ods-text-secondary", children: item.preview }) }) : null
43594
43617
  ] }),
43595
- _optionalChain([anchorProps, 'optionalAccess', _956 => _956.href]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex shrink-0 items-center self-start h-5 text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "w-3.5 h-3.5" }) }) : null
43618
+ _optionalChain([anchorProps, 'optionalAccess', _953 => _953.href]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex shrink-0 items-center self-start h-5 text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "w-3.5 h-3.5" }) }) : null
43596
43619
  ] });
43597
43620
  if (!anchorProps) {
43598
43621
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
@@ -43662,7 +43685,7 @@ function getDefaultOptions() {
43662
43685
  // node_modules/date-fns/startOfWeek.mjs
43663
43686
  function startOfWeek(date, options) {
43664
43687
  const defaultOptions2 = getDefaultOptions();
43665
- const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _957 => _957.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _958 => _958.locale, 'optionalAccess', _959 => _959.options, 'optionalAccess', _960 => _960.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _961 => _961.locale, 'optionalAccess', _962 => _962.options, 'optionalAccess', _963 => _963.weekStartsOn]))), () => ( 0));
43688
+ const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _954 => _954.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _955 => _955.locale, 'optionalAccess', _956 => _956.options, 'optionalAccess', _957 => _957.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _958 => _958.locale, 'optionalAccess', _959 => _959.options, 'optionalAccess', _960 => _960.weekStartsOn]))), () => ( 0));
43666
43689
  const _date = toDate2(date);
43667
43690
  const day = _date.getDay();
43668
43691
  const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
@@ -43837,7 +43860,7 @@ var formatDistance = (token, count, options) => {
43837
43860
  } else {
43838
43861
  result = tokenValue.other.replace("{{count}}", count.toString());
43839
43862
  }
43840
- if (_optionalChain([options, 'optionalAccess', _964 => _964.addSuffix])) {
43863
+ if (_optionalChain([options, 'optionalAccess', _961 => _961.addSuffix])) {
43841
43864
  if (options.comparison && options.comparison > 0) {
43842
43865
  return "in " + result;
43843
43866
  } else {
@@ -43904,15 +43927,15 @@ var formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale
43904
43927
  // node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs
43905
43928
  function buildLocalizeFn(args) {
43906
43929
  return (value, options) => {
43907
- const context = _optionalChain([options, 'optionalAccess', _965 => _965.context]) ? String(options.context) : "standalone";
43930
+ const context = _optionalChain([options, 'optionalAccess', _962 => _962.context]) ? String(options.context) : "standalone";
43908
43931
  let valuesArray;
43909
43932
  if (context === "formatting" && args.formattingValues) {
43910
43933
  const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
43911
- const width = _optionalChain([options, 'optionalAccess', _966 => _966.width]) ? String(options.width) : defaultWidth;
43934
+ const width = _optionalChain([options, 'optionalAccess', _963 => _963.width]) ? String(options.width) : defaultWidth;
43912
43935
  valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
43913
43936
  } else {
43914
43937
  const defaultWidth = args.defaultWidth;
43915
- const width = _optionalChain([options, 'optionalAccess', _967 => _967.width]) ? String(options.width) : args.defaultWidth;
43938
+ const width = _optionalChain([options, 'optionalAccess', _964 => _964.width]) ? String(options.width) : args.defaultWidth;
43916
43939
  valuesArray = args.values[width] || args.values[defaultWidth];
43917
43940
  }
43918
43941
  const index = args.argumentCallback ? args.argumentCallback(value) : value;
@@ -44292,7 +44315,7 @@ function getWeekYear(date, options) {
44292
44315
  const _date = toDate2(date);
44293
44316
  const year = _date.getFullYear();
44294
44317
  const defaultOptions2 = getDefaultOptions();
44295
- const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _968 => _968.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _969 => _969.locale, 'optionalAccess', _970 => _970.options, 'optionalAccess', _971 => _971.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _972 => _972.locale, 'optionalAccess', _973 => _973.options, 'optionalAccess', _974 => _974.firstWeekContainsDate]))), () => ( 1));
44318
+ const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _965 => _965.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _966 => _966.locale, 'optionalAccess', _967 => _967.options, 'optionalAccess', _968 => _968.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _969 => _969.locale, 'optionalAccess', _970 => _970.options, 'optionalAccess', _971 => _971.firstWeekContainsDate]))), () => ( 1));
44296
44319
  const firstWeekOfNextYear = constructFrom(date, 0);
44297
44320
  firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
44298
44321
  firstWeekOfNextYear.setHours(0, 0, 0, 0);
@@ -44313,7 +44336,7 @@ function getWeekYear(date, options) {
44313
44336
  // node_modules/date-fns/startOfWeekYear.mjs
44314
44337
  function startOfWeekYear(date, options) {
44315
44338
  const defaultOptions2 = getDefaultOptions();
44316
- const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _975 => _975.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _976 => _976.locale, 'optionalAccess', _977 => _977.options, 'optionalAccess', _978 => _978.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _979 => _979.locale, 'optionalAccess', _980 => _980.options, 'optionalAccess', _981 => _981.firstWeekContainsDate]))), () => ( 1));
44339
+ const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _972 => _972.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _973 => _973.locale, 'optionalAccess', _974 => _974.options, 'optionalAccess', _975 => _975.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _976 => _976.locale, 'optionalAccess', _977 => _977.options, 'optionalAccess', _978 => _978.firstWeekContainsDate]))), () => ( 1));
44317
44340
  const year = getWeekYear(date, options);
44318
44341
  const firstWeek = constructFrom(date, 0);
44319
44342
  firstWeek.setFullYear(year, 0, firstWeekContainsDate);
@@ -45128,9 +45151,9 @@ var doubleQuoteRegExp = /''/g;
45128
45151
  var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
45129
45152
  function format2(date, formatStr, options) {
45130
45153
  const defaultOptions2 = getDefaultOptions();
45131
- const locale = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _982 => _982.locale]), () => ( defaultOptions2.locale)), () => ( enUS));
45132
- const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _983 => _983.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _984 => _984.locale, 'optionalAccess', _985 => _985.options, 'optionalAccess', _986 => _986.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _987 => _987.locale, 'optionalAccess', _988 => _988.options, 'optionalAccess', _989 => _989.firstWeekContainsDate]))), () => ( 1));
45133
- const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _990 => _990.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _991 => _991.locale, 'optionalAccess', _992 => _992.options, 'optionalAccess', _993 => _993.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _994 => _994.locale, 'optionalAccess', _995 => _995.options, 'optionalAccess', _996 => _996.weekStartsOn]))), () => ( 0));
45154
+ const locale = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _979 => _979.locale]), () => ( defaultOptions2.locale)), () => ( enUS));
45155
+ const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _980 => _980.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _981 => _981.locale, 'optionalAccess', _982 => _982.options, 'optionalAccess', _983 => _983.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _984 => _984.locale, 'optionalAccess', _985 => _985.options, 'optionalAccess', _986 => _986.firstWeekContainsDate]))), () => ( 1));
45156
+ const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _987 => _987.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _988 => _988.locale, 'optionalAccess', _989 => _989.options, 'optionalAccess', _990 => _990.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _991 => _991.locale, 'optionalAccess', _992 => _992.options, 'optionalAccess', _993 => _993.weekStartsOn]))), () => ( 0));
45134
45157
  const originalDate = toDate2(date);
45135
45158
  if (!isValid(originalDate)) {
45136
45159
  throw new RangeError("Invalid time value");
@@ -45171,7 +45194,7 @@ function format2(date, formatStr, options) {
45171
45194
  return parts.map((part) => {
45172
45195
  if (!part.isToken) return part.value;
45173
45196
  const token = part.value;
45174
- if (!_optionalChain([options, 'optionalAccess', _997 => _997.useAdditionalWeekYearTokens]) && isProtectedWeekYearToken(token) || !_optionalChain([options, 'optionalAccess', _998 => _998.useAdditionalDayOfYearTokens]) && isProtectedDayOfYearToken(token)) {
45197
+ if (!_optionalChain([options, 'optionalAccess', _994 => _994.useAdditionalWeekYearTokens]) && isProtectedWeekYearToken(token) || !_optionalChain([options, 'optionalAccess', _995 => _995.useAdditionalDayOfYearTokens]) && isProtectedDayOfYearToken(token)) {
45175
45198
  warnOrThrowProtectedError(token, formatStr, String(date));
45176
45199
  }
45177
45200
  const formatter = formatters[token[0]];
@@ -45377,7 +45400,7 @@ function ProgramCard({
45377
45400
  const itemDate2 = compactDate;
45378
45401
  const compactCover = coverImage || placeholderUrl || null;
45379
45402
  const typeMeta = compactTypeMeta();
45380
- const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access', _999 => _999.labels, 'optionalAccess', _1000 => _1000.singular])].filter(
45403
+ const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access', _996 => _996.labels, 'optionalAccess', _997 => _997.singular])].filter(
45381
45404
  (s) => typeof s === "string" && s.length > 0
45382
45405
  );
45383
45406
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0, COMPACT_CARD_OUTER, className), children: [
@@ -45534,7 +45557,7 @@ function ProgramCard({
45534
45557
 
45535
45558
 
45536
45559
  function CampaignCardAdmin({ campaign, className, anchorProps }) {
45537
- const goalsCount = _optionalChain([campaign, 'access', _1001 => _1001.goals, 'optionalAccess', _1002 => _1002.length]) || 0;
45560
+ const goalsCount = _optionalChain([campaign, 'access', _998 => _998.goals, 'optionalAccess', _999 => _999.length]) || 0;
45538
45561
  const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
45539
45562
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
45540
45563
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
@@ -45696,7 +45719,7 @@ function resolveSourceRowCTA(row, ctx = {}) {
45696
45719
  if (row.path && shouldFallbackToPathNav(row) && !row.externalUrl) {
45697
45720
  const safePath = sanitizePath(row.path);
45698
45721
  if (safePath) {
45699
- const docTarget = row.documentType ? _optionalChain([ctx, 'access', _1003 => _1003.docPlatformTargets, 'optionalAccess', _1004 => _1004[row.documentType]]) : void 0;
45722
+ const docTarget = row.documentType ? _optionalChain([ctx, 'access', _1000 => _1000.docPlatformTargets, 'optionalAccess', _1001 => _1001[row.documentType]]) : void 0;
45700
45723
  if (docTarget) {
45701
45724
  const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
45702
45725
  const base = `${_chunkFIG2RKZFcjs.getBaseUrl.call(void 0, docTarget.platform)}${seg ? `/${seg}` : ""}/`;
@@ -45911,8 +45934,8 @@ function cardMenuGroups(href, discuss, openDetails) {
45911
45934
  if (href) {
45912
45935
  items.push({
45913
45936
  id: "open-details",
45914
- label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _1005 => _1005.label]), () => ( "Open Details")),
45915
- icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _1006 => _1006.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.EyeIcon, { size: 20 }))),
45937
+ label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _1002 => _1002.label]), () => ( "Open Details")),
45938
+ icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _1003 => _1003.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.EyeIcon, { size: 20 }))),
45916
45939
  // Main row → open the entity (same tab, soft Link nav).
45917
45940
  href,
45918
45941
  // Trailing 40px ↗ side-button → open in a new tab.
@@ -45942,8 +45965,8 @@ function HubspotTicketChatCard({
45942
45965
  isNewTab,
45943
45966
  discuss
45944
45967
  }) {
45945
- const status = typeof _optionalChain([chatRef, 'access', _1007 => _1007.metadata, 'optionalAccess', _1008 => _1008.status]) === "string" ? chatRef.metadata.status : void 0;
45946
- const statusLabel = typeof _optionalChain([chatRef, 'access', _1009 => _1009.metadata, 'optionalAccess', _1010 => _1010.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
45968
+ const status = typeof _optionalChain([chatRef, 'access', _1004 => _1004.metadata, 'optionalAccess', _1005 => _1005.status]) === "string" ? chatRef.metadata.status : void 0;
45969
+ const statusLabel = typeof _optionalChain([chatRef, 'access', _1006 => _1006.metadata, 'optionalAccess', _1007 => _1007.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
45947
45970
  const statusText = _nullishCoalesce(statusLabel, () => ( formatStatusToken(status)));
45948
45971
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
45949
45972
  MingoInfoCard,
@@ -45966,7 +45989,7 @@ function FaqChatCard({
45966
45989
  isNewTab,
45967
45990
  discuss
45968
45991
  }) {
45969
- const section = typeof _optionalChain([chatRef, 'access', _1011 => _1011.metadata, 'optionalAccess', _1012 => _1012.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
45992
+ const section = typeof _optionalChain([chatRef, 'access', _1008 => _1008.metadata, 'optionalAccess', _1009 => _1009.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
45970
45993
  const statusLabel = section && section.length > 0 ? section : "FAQ";
45971
45994
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
45972
45995
  MingoInfoCard,
@@ -45986,7 +46009,7 @@ function SlackChatCard({
45986
46009
  isNewTab,
45987
46010
  discuss
45988
46011
  }) {
45989
- const channelName = typeof _optionalChain([chatRef, 'access', _1013 => _1013.metadata, 'optionalAccess', _1014 => _1014.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
46012
+ const channelName = typeof _optionalChain([chatRef, 'access', _1010 => _1010.metadata, 'optionalAccess', _1011 => _1011.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
45990
46013
  const channelPretty = channelName ? channelName.startsWith("#") ? channelName : `#${channelName}` : void 0;
45991
46014
  const title = channelPretty ? `${chatRef.title} \xB7 ${channelPretty}` : chatRef.title;
45992
46015
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -46026,7 +46049,7 @@ function GenericFinancialChatCard({
46026
46049
  isNewTab,
46027
46050
  discuss
46028
46051
  }) {
46029
- const subtitle = typeof _optionalChain([chatRef, 'access', _1015 => _1015.metadata, 'optionalAccess', _1016 => _1016.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
46052
+ const subtitle = typeof _optionalChain([chatRef, 'access', _1012 => _1012.metadata, 'optionalAccess', _1013 => _1013.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
46030
46053
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
46031
46054
  MingoInfoCard,
46032
46055
  {
@@ -46095,12 +46118,12 @@ function ProductReleaseChatCard({
46095
46118
  discuss
46096
46119
  }) {
46097
46120
  const releaseProps = buildProps(item);
46098
- const status = _optionalChain([item, 'optionalAccess', _1017 => _1017.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
46121
+ const status = _optionalChain([item, 'optionalAccess', _1014 => _1014.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
46099
46122
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
46100
46123
  EntityMingoCard,
46101
46124
  {
46102
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1018 => _1018.title]), () => ( "")),
46103
- description: _optionalChain([item, 'optionalAccess', _1019 => _1019.summary]) || releaseProps.formattedDate || void 0,
46125
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1015 => _1015.title]), () => ( "")),
46126
+ description: _optionalChain([item, 'optionalAccess', _1016 => _1016.summary]) || releaseProps.formattedDate || void 0,
46104
46127
  cover: releaseProps.coverImage || void 0,
46105
46128
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.Rocket02Icon, { size: 24 }),
46106
46129
  status,
@@ -46117,17 +46140,17 @@ function CampaignChatCard({
46117
46140
  isNewTab,
46118
46141
  discuss
46119
46142
  }) {
46120
- const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _1020 => _1020.goals])) ? item.goals.length : 0;
46143
+ const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _1017 => _1017.goals])) ? item.goals.length : 0;
46121
46144
  const meta = [
46122
- _optionalChain([item, 'optionalAccess', _1021 => _1021.start_date]) ? formatDateShort(item.start_date) : null,
46145
+ _optionalChain([item, 'optionalAccess', _1018 => _1018.start_date]) ? formatDateShort(item.start_date) : null,
46123
46146
  goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
46124
46147
  "Marketing campaign"
46125
46148
  ].filter(Boolean).join(" \xB7 ");
46126
46149
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
46127
46150
  EntityMingoCard,
46128
46151
  {
46129
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1022 => _1022.name]), () => ( "")),
46130
- description: meta || _optionalChain([item, 'optionalAccess', _1023 => _1023.description]) || void 0,
46152
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1019 => _1019.name]), () => ( "")),
46153
+ description: meta || _optionalChain([item, 'optionalAccess', _1020 => _1020.description]) || void 0,
46131
46154
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.Megaphone01Icon, { size: 24 }),
46132
46155
  chatRef,
46133
46156
  isNewTab,
@@ -46180,14 +46203,14 @@ function BlogChatCard({
46180
46203
  hasEmbeddedVideo,
46181
46204
  discuss
46182
46205
  }) {
46183
- const category = Array.isArray(_optionalChain([item, 'optionalAccess', _1024 => _1024.categories])) ? _optionalChain([item, 'access', _1025 => _1025.categories, 'access', _1026 => _1026.find, 'call', _1027 => _1027((c) => c && c.name), 'optionalAccess', _1028 => _1028.name]) : void 0;
46206
+ const category = Array.isArray(_optionalChain([item, 'optionalAccess', _1021 => _1021.categories])) ? _optionalChain([item, 'access', _1022 => _1022.categories, 'access', _1023 => _1023.find, 'call', _1024 => _1024((c) => c && c.name), 'optionalAccess', _1025 => _1025.name]) : void 0;
46184
46207
  const status = hasEmbeddedVideo ? { label: "Video", variant: "primary" } : category ? { label: category, variant: "grey" } : void 0;
46185
46208
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
46186
46209
  EntityMingoCard,
46187
46210
  {
46188
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1029 => _1029.title]), () => ( "")),
46189
- description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1030 => _1030.summary]), () => ( void 0)),
46190
- cover: entityCover(_optionalChain([item, 'optionalAccess', _1031 => _1031.featured_image]), ogPlaceholder),
46211
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1026 => _1026.title]), () => ( "")),
46212
+ description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1027 => _1027.summary]), () => ( void 0)),
46213
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _1028 => _1028.featured_image]), ogPlaceholder),
46191
46214
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.NewspaperIcon, { size: 24 }),
46192
46215
  status,
46193
46216
  chatRef,
@@ -46204,13 +46227,13 @@ function CaseStudyChatCard({
46204
46227
  ogPlaceholder,
46205
46228
  discuss
46206
46229
  }) {
46207
- const meta = [_optionalChain([item, 'optionalAccess', _1032 => _1032.msp, 'optionalAccess', _1033 => _1033.name]), _optionalChain([item, 'optionalAccess', _1034 => _1034.user, 'optionalAccess', _1035 => _1035.full_name])].filter(Boolean).join(" \xB7 ");
46230
+ const meta = [_optionalChain([item, 'optionalAccess', _1029 => _1029.msp, 'optionalAccess', _1030 => _1030.name]), _optionalChain([item, 'optionalAccess', _1031 => _1031.user, 'optionalAccess', _1032 => _1032.full_name])].filter(Boolean).join(" \xB7 ");
46208
46231
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
46209
46232
  EntityMingoCard,
46210
46233
  {
46211
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1036 => _1036.title]), () => ( "")),
46212
- description: _optionalChain([item, 'optionalAccess', _1037 => _1037.summary]) || meta || void 0,
46213
- cover: entityCover(_optionalChain([item, 'optionalAccess', _1038 => _1038.featured_image]), ogPlaceholder),
46234
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1033 => _1033.title]), () => ( "")),
46235
+ description: _optionalChain([item, 'optionalAccess', _1034 => _1034.summary]) || meta || void 0,
46236
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _1035 => _1035.featured_image]), ogPlaceholder),
46214
46237
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.TrophyIcon, { size: 24 }),
46215
46238
  status: { label: "Case study", variant: "grey" },
46216
46239
  chatRef,
@@ -46227,13 +46250,13 @@ function CustomerInterviewChatCard({
46227
46250
  ogPlaceholder,
46228
46251
  discuss
46229
46252
  }) {
46230
- const meta = [_optionalChain([item, 'optionalAccess', _1039 => _1039.user, 'optionalAccess', _1040 => _1040.full_name]), _optionalChain([item, 'optionalAccess', _1041 => _1041.msp, 'optionalAccess', _1042 => _1042.name])].filter(Boolean).join(" \xB7 ");
46253
+ const meta = [_optionalChain([item, 'optionalAccess', _1036 => _1036.user, 'optionalAccess', _1037 => _1037.full_name]), _optionalChain([item, 'optionalAccess', _1038 => _1038.msp, 'optionalAccess', _1039 => _1039.name])].filter(Boolean).join(" \xB7 ");
46231
46254
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
46232
46255
  EntityMingoCard,
46233
46256
  {
46234
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1043 => _1043.title]), () => ( "")),
46235
- description: _optionalChain([item, 'optionalAccess', _1044 => _1044.video_summary]) || meta || void 0,
46236
- cover: entityCover(_optionalChain([item, 'optionalAccess', _1045 => _1045.featured_image]), ogPlaceholder),
46257
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1040 => _1040.title]), () => ( "")),
46258
+ description: _optionalChain([item, 'optionalAccess', _1041 => _1041.video_summary]) || meta || void 0,
46259
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _1042 => _1042.featured_image]), ogPlaceholder),
46237
46260
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.MicrophoneIcon, { size: 24 }),
46238
46261
  status: { label: "Interview", variant: "grey" },
46239
46262
  chatRef,
@@ -46250,13 +46273,13 @@ function InvestorUpdateChatCard({
46250
46273
  ogPlaceholder,
46251
46274
  discuss
46252
46275
  }) {
46253
- const title = _optionalChain([item, 'optionalAccess', _1046 => _1046.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1047 => _1047.update_number]), () => ( "?"))}`;
46276
+ const title = _optionalChain([item, 'optionalAccess', _1043 => _1043.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1044 => _1044.update_number]), () => ( "?"))}`;
46254
46277
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
46255
46278
  EntityMingoCard,
46256
46279
  {
46257
46280
  title,
46258
- description: _optionalChain([item, 'optionalAccess', _1048 => _1048.strategic_update]) || _optionalChain([item, 'optionalAccess', _1049 => _1049.content]) || formatInvestorUpdatePeriod(_optionalChain([item, 'optionalAccess', _1050 => _1050.period_start]), _optionalChain([item, 'optionalAccess', _1051 => _1051.period_end])) || void 0,
46259
- cover: entityCover(_optionalChain([item, 'optionalAccess', _1052 => _1052.featured_image]), ogPlaceholder),
46281
+ description: _optionalChain([item, 'optionalAccess', _1045 => _1045.strategic_update]) || _optionalChain([item, 'optionalAccess', _1046 => _1046.content]) || formatInvestorUpdatePeriod(_optionalChain([item, 'optionalAccess', _1047 => _1047.period_start]), _optionalChain([item, 'optionalAccess', _1048 => _1048.period_end])) || void 0,
46282
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _1049 => _1049.featured_image]), ogPlaceholder),
46260
46283
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.PresentationLineIcon, { size: 24 }),
46261
46284
  status: { label: "Investor update", variant: "grey" },
46262
46285
  chatRef,
@@ -46273,12 +46296,12 @@ function OnboardingGuideChatCard({
46273
46296
  ogPlaceholder,
46274
46297
  discuss
46275
46298
  }) {
46276
- const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _1053 => _1053.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _1054 => _1054.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _1055 => _1055.og_image_url]), ogPlaceholder)));
46299
+ const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _1050 => _1050.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _1051 => _1051.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _1052 => _1052.og_image_url]), ogPlaceholder)));
46277
46300
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
46278
46301
  EntityMingoCard,
46279
46302
  {
46280
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1056 => _1056.title]), () => ( "")),
46281
- description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1057 => _1057.summary]), () => ( _optionalChain([item, 'optionalAccess', _1058 => _1058.description]))), () => ( void 0)),
46303
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1053 => _1053.title]), () => ( "")),
46304
+ description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1054 => _1054.summary]), () => ( _optionalChain([item, 'optionalAccess', _1055 => _1055.description]))), () => ( void 0)),
46282
46305
  cover,
46283
46306
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.CompassIcon, { size: 24 }),
46284
46307
  status: { label: "Guide", variant: "grey" },
@@ -46299,25 +46322,25 @@ function ProgramChatCard({
46299
46322
  discuss
46300
46323
  }) {
46301
46324
  const icon = configKey === "webinar" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.PresentationBarIcon, { size: 24 }) : configKey === "event" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.CalendarIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.MicrophoneIcon, { size: 24 });
46302
- const isScheduled = _optionalChain([item, 'optionalAccess', _1059 => _1059.status]) === "scheduled";
46325
+ const isScheduled = _optionalChain([item, 'optionalAccess', _1056 => _1056.status]) === "scheduled";
46303
46326
  let typeMeta;
46304
- if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess', _1060 => _1060.duration_seconds]) === "number" && item.duration_seconds > 0 && !isScheduled) {
46327
+ if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess', _1057 => _1057.duration_seconds]) === "number" && item.duration_seconds > 0 && !isScheduled) {
46305
46328
  typeMeta = formatDurationCompact(item.duration_seconds);
46306
- } else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess', _1061 => _1061.location_name]) === "string" && item.location_name.trim().length > 0) {
46329
+ } else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess', _1058 => _1058.location_name]) === "string" && item.location_name.trim().length > 0) {
46307
46330
  typeMeta = item.location_name;
46308
- } else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess', _1062 => _1062.start_at])) {
46331
+ } else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess', _1059 => _1059.start_at])) {
46309
46332
  const time = formatTimeWithTimezone(item.start_at, _nullishCoalesce(item.timezone, () => ( null)));
46310
46333
  const dur = formatDurationFromRange(item.start_at, item.end_at);
46311
46334
  typeMeta = dur ? `${time} \xB7 ${dur}` : time;
46312
46335
  }
46313
- const itemDate = formatDateUTC(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1063 => _1063.date]), () => ( null)), { fallback: "", timezone: "local" });
46336
+ const itemDate = formatDateUTC(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1060 => _1060.date]), () => ( null)), { fallback: "", timezone: "local" });
46314
46337
  const meta = [itemDate, typeMeta].filter(Boolean).join(" \xB7 ");
46315
46338
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
46316
46339
  EntityMingoCard,
46317
46340
  {
46318
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1064 => _1064.title]), () => ( "")),
46319
- description: meta || _optionalChain([item, 'optionalAccess', _1065 => _1065.description]) || void 0,
46320
- cover: entityCover(_optionalChain([item, 'optionalAccess', _1066 => _1066.cover_url]), ogPlaceholder),
46341
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1061 => _1061.title]), () => ( "")),
46342
+ description: meta || _optionalChain([item, 'optionalAccess', _1062 => _1062.description]) || void 0,
46343
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _1063 => _1063.cover_url]), ogPlaceholder),
46321
46344
  fallbackIcon: icon,
46322
46345
  status: { label, variant: "grey" },
46323
46346
  chatRef,
@@ -46334,10 +46357,10 @@ function RoadmapChatCard({
46334
46357
  cardType,
46335
46358
  discuss
46336
46359
  }) {
46337
- const logoUrl = typeof _optionalChain([item, 'optionalAccess', _1067 => _1067.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
46338
- const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _1068 => _1068.customItemId]) != null;
46360
+ const logoUrl = typeof _optionalChain([item, 'optionalAccess', _1064 => _1064.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
46361
+ const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _1065 => _1065.customItemId]) != null;
46339
46362
  const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.MapIcon, { size: 24 });
46340
- const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _1069 => _1069.customItemId]), className: "size-6" }) : logoUrl ? (
46363
+ const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _1066 => _1066.customItemId]), className: "size-6" }) : logoUrl ? (
46341
46364
  // Contained (not full-bleed) so the integration logo keeps its aspect
46342
46365
  // ratio inside the bordered icon box — matches RoadmapCard.
46343
46366
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: logoUrl, alt: "", className: "size-6 object-contain" })
@@ -46345,10 +46368,10 @@ function RoadmapChatCard({
46345
46368
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
46346
46369
  EntityMingoCard,
46347
46370
  {
46348
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1070 => _1070.title]), () => ( "")),
46349
- description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1071 => _1071.description]), () => ( void 0)),
46371
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1067 => _1067.title]), () => ( "")),
46372
+ description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1068 => _1068.description]), () => ( void 0)),
46350
46373
  fallbackIcon: icon,
46351
- status: statusPill(_optionalChain([item, 'optionalAccess', _1072 => _1072.status])),
46374
+ status: statusPill(_optionalChain([item, 'optionalAccess', _1069 => _1069.status])),
46352
46375
  chatRef,
46353
46376
  isNewTab,
46354
46377
  discuss,
@@ -46434,7 +46457,7 @@ function programRegistryEntries() {
46434
46457
  discuss: opts.discuss,
46435
46458
  configKey: cfg.configKey,
46436
46459
  label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
46437
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1073 => _1073.extras, 'optionalAccess', _1074 => _1074.buildOgPlaceholderUrl, 'optionalCall', _1075 => _1075(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1076 => _1076.title]), () => ( "")))]), () => ( null))
46460
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1070 => _1070.extras, 'optionalAccess', _1071 => _1071.buildOgPlaceholderUrl, 'optionalCall', _1072 => _1072(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1073 => _1073.title]), () => ( "")))]), () => ( null))
46438
46461
  }
46439
46462
  )
46440
46463
  };
@@ -46586,8 +46609,8 @@ var CHAT_CARD_REGISTRY = {
46586
46609
  chatRef,
46587
46610
  isNewTab: opts.isNewTab,
46588
46611
  discuss: opts.discuss,
46589
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1077 => _1077.extras, 'optionalAccess', _1078 => _1078.buildOgPlaceholderUrl, 'optionalCall', _1079 => _1079(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1080 => _1080.title]), () => ( "")))]), () => ( null)),
46590
- hasEmbeddedVideo: _optionalChain([chatRef, 'access', _1081 => _1081.metadata, 'optionalAccess', _1082 => _1082.hasEmbeddedVideo]) === true
46612
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1074 => _1074.extras, 'optionalAccess', _1075 => _1075.buildOgPlaceholderUrl, 'optionalCall', _1076 => _1076(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1077 => _1077.title]), () => ( "")))]), () => ( null)),
46613
+ hasEmbeddedVideo: _optionalChain([chatRef, 'access', _1078 => _1078.metadata, 'optionalAccess', _1079 => _1079.hasEmbeddedVideo]) === true
46591
46614
  }
46592
46615
  )
46593
46616
  },
@@ -46604,7 +46627,7 @@ var CHAT_CARD_REGISTRY = {
46604
46627
  chatRef,
46605
46628
  isNewTab: opts.isNewTab,
46606
46629
  discuss: opts.discuss,
46607
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1083 => _1083.extras, 'optionalAccess', _1084 => _1084.buildOgPlaceholderUrl, 'optionalCall', _1085 => _1085(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1086 => _1086.title]), () => ( "")))]), () => ( null))
46630
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1080 => _1080.extras, 'optionalAccess', _1081 => _1081.buildOgPlaceholderUrl, 'optionalCall', _1082 => _1082(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1083 => _1083.title]), () => ( "")))]), () => ( null))
46608
46631
  }
46609
46632
  )
46610
46633
  },
@@ -46621,7 +46644,7 @@ var CHAT_CARD_REGISTRY = {
46621
46644
  chatRef,
46622
46645
  isNewTab: opts.isNewTab,
46623
46646
  discuss: opts.discuss,
46624
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1087 => _1087.extras, 'optionalAccess', _1088 => _1088.buildOgPlaceholderUrl, 'optionalCall', _1089 => _1089(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1090 => _1090.title]), () => ( "")))]), () => ( null))
46647
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1084 => _1084.extras, 'optionalAccess', _1085 => _1085.buildOgPlaceholderUrl, 'optionalCall', _1086 => _1086(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1087 => _1087.title]), () => ( "")))]), () => ( null))
46625
46648
  }
46626
46649
  )
46627
46650
  },
@@ -46632,7 +46655,7 @@ var CHAT_CARD_REGISTRY = {
46632
46655
  bareInline: true,
46633
46656
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ProductReleaseCardSkeleton, { size: "sm" }),
46634
46657
  render: (item, chatRef, opts) => {
46635
- const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1091 => _1091.extras, 'optionalAccess', _1092 => _1092.buildProductReleaseCardProps]), () => ( defaultBuildProductReleaseCardProps));
46658
+ const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1088 => _1088.extras, 'optionalAccess', _1089 => _1089.buildProductReleaseCardProps]), () => ( defaultBuildProductReleaseCardProps));
46636
46659
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
46637
46660
  ProductReleaseChatCard,
46638
46661
  {
@@ -46659,7 +46682,7 @@ var CHAT_CARD_REGISTRY = {
46659
46682
  chatRef,
46660
46683
  isNewTab: opts.isNewTab,
46661
46684
  discuss: opts.discuss,
46662
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1093 => _1093.extras, 'optionalAccess', _1094 => _1094.buildOgPlaceholderUrl, 'optionalCall', _1095 => _1095(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1096 => _1096.title]), () => ( "")))]), () => ( null))
46685
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1090 => _1090.extras, 'optionalAccess', _1091 => _1091.buildOgPlaceholderUrl, 'optionalCall', _1092 => _1092(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1093 => _1093.title]), () => ( "")))]), () => ( null))
46663
46686
  }
46664
46687
  )
46665
46688
  },
@@ -46678,7 +46701,7 @@ var CHAT_CARD_REGISTRY = {
46678
46701
  chatRef,
46679
46702
  isNewTab: opts.isNewTab,
46680
46703
  discuss: opts.discuss,
46681
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1097 => _1097.extras, 'optionalAccess', _1098 => _1098.buildOgPlaceholderUrl, 'optionalCall', _1099 => _1099(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1100 => _1100.title]), () => ( "")))]), () => ( null))
46704
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1094 => _1094.extras, 'optionalAccess', _1095 => _1095.buildOgPlaceholderUrl, 'optionalCall', _1096 => _1096(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1097 => _1097.title]), () => ( "")))]), () => ( null))
46682
46705
  }
46683
46706
  )
46684
46707
  },
@@ -46690,7 +46713,7 @@ var CHAT_CARD_REGISTRY = {
46690
46713
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, {}),
46691
46714
  // No public viewer — synthesize the hub-internal admin URL post-fetch
46692
46715
  // so the wrapper + isNewTab computation see the actual destination.
46693
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _1101 => _1101.id]) ? `/admin/campaigns/${encodeURIComponent(item.id)}` : null,
46716
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _1098 => _1098.id]) ? `/admin/campaigns/${encodeURIComponent(item.id)}` : null,
46694
46717
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
46695
46718
  CampaignChatCard,
46696
46719
  {
@@ -46716,12 +46739,12 @@ function ChatCardNavWrap({
46716
46739
  const onClickCapture = (e) => {
46717
46740
  if (!href) return;
46718
46741
  const targetEl = e.target;
46719
- if (_optionalChain([targetEl, 'optionalAccess', _1102 => _1102.closest, 'optionalCall', _1103 => _1103("button")])) return;
46720
- if (!_optionalChain([targetEl, 'optionalAccess', _1104 => _1104.closest, 'optionalCall', _1105 => _1105("a")])) return;
46742
+ if (_optionalChain([targetEl, 'optionalAccess', _1099 => _1099.closest, 'optionalCall', _1100 => _1100("button")])) return;
46743
+ if (!_optionalChain([targetEl, 'optionalAccess', _1101 => _1101.closest, 'optionalCall', _1102 => _1102("a")])) return;
46721
46744
  const handled = handleChatNavClick(e, runtime, { href, path, targetPlatform }, router.push);
46722
46745
  if (!handled) return;
46723
46746
  e.stopPropagation();
46724
- if (!isNewTab && _optionalChain([panel, 'optionalAccess', _1106 => _1106.closeChat])) panel.closeChat();
46747
+ if (!isNewTab && _optionalChain([panel, 'optionalAccess', _1103 => _1103.closeChat])) panel.closeChat();
46725
46748
  };
46726
46749
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
46727
46750
  }
@@ -46743,7 +46766,7 @@ function ChatCardLoader({
46743
46766
  title: chatRef.title,
46744
46767
  externalUrl: chatRef.url,
46745
46768
  targetPlatform: chatRef.targetPlatform,
46746
- path: typeof _optionalChain([chatRef, 'access', _1107 => _1107.metadata, 'optionalAccess', _1108 => _1108.path]) === "string" ? chatRef.metadata.path : null
46769
+ path: typeof _optionalChain([chatRef, 'access', _1104 => _1104.metadata, 'optionalAccess', _1105 => _1105.path]) === "string" ? chatRef.metadata.path : null
46747
46770
  },
46748
46771
  sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform })
46749
46772
  );
@@ -46757,7 +46780,7 @@ function ChatCardLoader({
46757
46780
  const entry = CHAT_CARD_REGISTRY[resolvedChatRef.type];
46758
46781
  const fetchEntry = entry && entry.mode === "fetch" ? entry : null;
46759
46782
  const { item, isLoading } = useChatCardItem(
46760
- _nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _1109 => _1109.contentRefType]), () => ( "")),
46783
+ _nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _1106 => _1106.contentRefType]), () => ( "")),
46761
46784
  fetchEntry ? resolvedChatRef.id : ""
46762
46785
  );
46763
46786
  if (!entry) return null;
@@ -46788,7 +46811,7 @@ function ChatCardLoader({
46788
46811
  isNewTab,
46789
46812
  discuss
46790
46813
  };
46791
- const path = typeof _optionalChain([finalChatRef, 'access', _1110 => _1110.metadata, 'optionalAccess', _1111 => _1111.path]) === "string" ? finalChatRef.metadata.path : null;
46814
+ const path = typeof _optionalChain([finalChatRef, 'access', _1107 => _1107.metadata, 'optionalAccess', _1108 => _1108.path]) === "string" ? finalChatRef.metadata.path : null;
46792
46815
  const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
46793
46816
  ChatCardNavWrap,
46794
46817
  {
@@ -47068,7 +47091,7 @@ function useChunkCatchup({
47068
47091
 
47069
47092
  var EMPTY_FRAME = { messages: [], phase: "idle", typing: false, delayMs: 0 };
47070
47093
  function prefersReducedMotion() {
47071
- return typeof window !== "undefined" && _optionalChain([window, 'access', _1112 => _1112.matchMedia, 'optionalCall', _1113 => _1113("(prefers-reduced-motion: reduce)"), 'access', _1114 => _1114.matches]) === true;
47094
+ return typeof window !== "undefined" && _optionalChain([window, 'access', _1109 => _1109.matchMedia, 'optionalCall', _1110 => _1110("(prefers-reduced-motion: reduce)"), 'access', _1111 => _1111.matches]) === true;
47072
47095
  }
47073
47096
  function useScriptedStream(frames, resetKey, enabled = true) {
47074
47097
  const [index, setIndex] = _react.useState.call(void 0, 0);
@@ -47080,7 +47103,7 @@ function useScriptedStream(frames, resetKey, enabled = true) {
47080
47103
  }
47081
47104
  _react.useEffect.call(void 0, () => {
47082
47105
  setReducedMotion(prefersReducedMotion());
47083
- const mq = _optionalChain([window, 'access', _1115 => _1115.matchMedia, 'optionalCall', _1116 => _1116("(prefers-reduced-motion: reduce)")]);
47106
+ const mq = _optionalChain([window, 'access', _1112 => _1112.matchMedia, 'optionalCall', _1113 => _1113("(prefers-reduced-motion: reduce)")]);
47084
47107
  if (!mq) return;
47085
47108
  const onChange = () => setReducedMotion(mq.matches);
47086
47109
  mq.addEventListener("change", onChange);
@@ -47209,7 +47232,7 @@ function useJetStreamDialogSubscription({
47209
47232
  const lifecycle = _chunkPXXS27EEcjs.startConnectionLifecycle.call(void 0, {
47210
47233
  conn: sharedConn,
47211
47234
  wsUrl,
47212
- onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _1117 => _1117.current, 'optionalCall', _1118 => _1118()]),
47235
+ onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _1114 => _1114.current, 'optionalCall', _1115 => _1115()]),
47213
47236
  backoff: reconnectionBackoffRef.current,
47214
47237
  getFreshUrl: () => getNatsWsUrlRef.current(),
47215
47238
  // JetStream emits 'error' for protocol-level failures (e.g. -ERR Permissions
@@ -47224,7 +47247,7 @@ function useJetStreamDialogSubscription({
47224
47247
  setReconnectionCount((c) => c + 1);
47225
47248
  }
47226
47249
  hadConnectionBeforeRef.current = true;
47227
- _optionalChain([onConnectRef, 'access', _1119 => _1119.current, 'optionalCall', _1120 => _1120()]);
47250
+ _optionalChain([onConnectRef, 'access', _1116 => _1116.current, 'optionalCall', _1117 => _1117()]);
47228
47251
  }
47229
47252
  if (status === "error") {
47230
47253
  console.warn("[JetStream] NATS protocol error:", evt.data);
@@ -47234,7 +47257,7 @@ function useJetStreamDialogSubscription({
47234
47257
  setIsConnected(false);
47235
47258
  setIsSubscribed(false);
47236
47259
  tearDownSubscription();
47237
- _optionalChain([onDisconnectRef, 'access', _1121 => _1121.current, 'optionalCall', _1122 => _1122()]);
47260
+ _optionalChain([onDisconnectRef, 'access', _1118 => _1118.current, 'optionalCall', _1119 => _1119()]);
47238
47261
  }
47239
47262
  }
47240
47263
  });
@@ -47313,7 +47336,7 @@ function useJetStreamDialogSubscription({
47313
47336
  }
47314
47337
  subscriptionRef.current = handle;
47315
47338
  setIsSubscribed(true);
47316
- _optionalChain([onSubscribedRef, 'access', _1123 => _1123.current, 'optionalCall', _1124 => _1124()]);
47339
+ _optionalChain([onSubscribedRef, 'access', _1120 => _1120.current, 'optionalCall', _1121 => _1121()]);
47317
47340
  } catch (e52) {
47318
47341
  if (!cancelled) {
47319
47342
  setIsSubscribed(false);
@@ -47426,20 +47449,20 @@ function useNatsDialogSubscription({
47426
47449
  const tearDownSubscriptions = () => {
47427
47450
  subscriptionRefs.current.forEach((sub) => {
47428
47451
  try {
47429
- _optionalChain([sub, 'optionalAccess', _1125 => _1125.unsubscribe, 'call', _1126 => _1126()]);
47452
+ _optionalChain([sub, 'optionalAccess', _1122 => _1122.unsubscribe, 'call', _1123 => _1123()]);
47430
47453
  } catch (e54) {
47431
47454
  }
47432
47455
  });
47433
47456
  subscriptionRefs.current.clear();
47434
47457
  lastSubscribedDialogIdRef.current = null;
47435
- _optionalChain([abortControllerRef, 'access', _1127 => _1127.current, 'optionalAccess', _1128 => _1128.abort, 'call', _1129 => _1129()]);
47458
+ _optionalChain([abortControllerRef, 'access', _1124 => _1124.current, 'optionalAccess', _1125 => _1125.abort, 'call', _1126 => _1126()]);
47436
47459
  abortControllerRef.current = null;
47437
47460
  };
47438
47461
  const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
47439
47462
  const lifecycle = _chunkPXXS27EEcjs.startConnectionLifecycle.call(void 0, {
47440
47463
  conn: sharedConn,
47441
47464
  wsUrl,
47442
- onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _1130 => _1130.current, 'optionalCall', _1131 => _1131()]),
47465
+ onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _1127 => _1127.current, 'optionalCall', _1128 => _1128()]),
47443
47466
  backoff: reconnectionBackoffRef.current,
47444
47467
  getFreshUrl: () => getNatsWsUrlRef.current(),
47445
47468
  shouldRetryOn: isDisconnectStatus,
@@ -47450,7 +47473,7 @@ function useNatsDialogSubscription({
47450
47473
  setReconnectionCount((c) => c + 1);
47451
47474
  }
47452
47475
  hadConnectionBeforeRef.current = true;
47453
- _optionalChain([onConnectRef, 'access', _1132 => _1132.current, 'optionalCall', _1133 => _1133()]);
47476
+ _optionalChain([onConnectRef, 'access', _1129 => _1129.current, 'optionalCall', _1130 => _1130()]);
47454
47477
  }
47455
47478
  if (status === "error") {
47456
47479
  console.warn("[NATS] protocol error:", evt.data);
@@ -47460,7 +47483,7 @@ function useNatsDialogSubscription({
47460
47483
  setIsConnected(false);
47461
47484
  setIsSubscribed(false);
47462
47485
  tearDownSubscriptions();
47463
- _optionalChain([onDisconnectRef, 'access', _1134 => _1134.current, 'optionalCall', _1135 => _1135()]);
47486
+ _optionalChain([onDisconnectRef, 'access', _1131 => _1131.current, 'optionalCall', _1132 => _1132()]);
47464
47487
  }
47465
47488
  }
47466
47489
  });
@@ -47491,13 +47514,13 @@ function useNatsDialogSubscription({
47491
47514
  setIsSubscribed(false);
47492
47515
  subscriptionRefs.current.forEach((sub) => {
47493
47516
  try {
47494
- _optionalChain([sub, 'optionalAccess', _1136 => _1136.unsubscribe, 'call', _1137 => _1137()]);
47517
+ _optionalChain([sub, 'optionalAccess', _1133 => _1133.unsubscribe, 'call', _1134 => _1134()]);
47495
47518
  } catch (e55) {
47496
47519
  }
47497
47520
  });
47498
47521
  subscriptionRefs.current.clear();
47499
47522
  lastSubscribedDialogIdRef.current = null;
47500
- _optionalChain([abortControllerRef, 'access', _1138 => _1138.current, 'optionalAccess', _1139 => _1139.abort, 'call', _1140 => _1140()]);
47523
+ _optionalChain([abortControllerRef, 'access', _1135 => _1135.current, 'optionalAccess', _1136 => _1136.abort, 'call', _1137 => _1137()]);
47501
47524
  abortControllerRef.current = null;
47502
47525
  }
47503
47526
  return;
@@ -47509,12 +47532,12 @@ function useNatsDialogSubscription({
47509
47532
  if (subscriptionRefs.current.size > 0) {
47510
47533
  subscriptionRefs.current.forEach((sub) => {
47511
47534
  try {
47512
- _optionalChain([sub, 'optionalAccess', _1141 => _1141.unsubscribe, 'call', _1142 => _1142()]);
47535
+ _optionalChain([sub, 'optionalAccess', _1138 => _1138.unsubscribe, 'call', _1139 => _1139()]);
47513
47536
  } catch (e56) {
47514
47537
  }
47515
47538
  });
47516
47539
  subscriptionRefs.current.clear();
47517
- _optionalChain([abortControllerRef, 'access', _1143 => _1143.current, 'optionalAccess', _1144 => _1144.abort, 'call', _1145 => _1145()]);
47540
+ _optionalChain([abortControllerRef, 'access', _1140 => _1140.current, 'optionalAccess', _1141 => _1141.abort, 'call', _1142 => _1142()]);
47518
47541
  }
47519
47542
  abortControllerRef.current = new AbortController();
47520
47543
  const abort = abortControllerRef.current;
@@ -47546,7 +47569,7 @@ function useNatsDialogSubscription({
47546
47569
  });
47547
47570
  lastSubscribedDialogIdRef.current = dialogId;
47548
47571
  setIsSubscribed(true);
47549
- _optionalChain([onSubscribedRef, 'access', _1146 => _1146.current, 'optionalCall', _1147 => _1147()]);
47572
+ _optionalChain([onSubscribedRef, 'access', _1143 => _1143.current, 'optionalCall', _1144 => _1144()]);
47550
47573
  };
47551
47574
  if (isConnectedRef.current) {
47552
47575
  createSubscriptions();
@@ -47556,7 +47579,7 @@ function useNatsDialogSubscription({
47556
47579
  abort.abort();
47557
47580
  subscriptionRefs.current.forEach((sub) => {
47558
47581
  try {
47559
- _optionalChain([sub, 'optionalAccess', _1148 => _1148.unsubscribe, 'call', _1149 => _1149()]);
47582
+ _optionalChain([sub, 'optionalAccess', _1145 => _1145.unsubscribe, 'call', _1146 => _1146()]);
47560
47583
  } catch (e58) {
47561
47584
  }
47562
47585
  });
@@ -47597,7 +47620,7 @@ function useNatsDialogSubscription({
47597
47620
  });
47598
47621
  lastSubscribedDialogIdRef.current = dialogId2;
47599
47622
  setIsSubscribed(true);
47600
- _optionalChain([onSubscribedRef, 'access', _1150 => _1150.current, 'optionalCall', _1151 => _1151()]);
47623
+ _optionalChain([onSubscribedRef, 'access', _1147 => _1147.current, 'optionalCall', _1148 => _1148()]);
47601
47624
  } else if (subscriptionRefs.current.size > 0) {
47602
47625
  setIsSubscribed(true);
47603
47626
  }
@@ -47605,10 +47628,10 @@ function useNatsDialogSubscription({
47605
47628
  return { isConnected, isSubscribed, reconnectionCount };
47606
47629
  }
47607
47630
  function buildNatsWsUrl(apiBaseUrl, options) {
47608
- const path = _optionalChain([options, 'optionalAccess', _1152 => _1152.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
47631
+ const path = _optionalChain([options, 'optionalAccess', _1149 => _1149.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
47609
47632
  const u = new URL(path, apiBaseUrl);
47610
47633
  u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
47611
- if (_optionalChain([options, 'optionalAccess', _1153 => _1153.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _1154 => _1154.token])) {
47634
+ if (_optionalChain([options, 'optionalAccess', _1150 => _1150.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _1151 => _1151.token])) {
47612
47635
  u.searchParams.set("authorization", options.token);
47613
47636
  }
47614
47637
  return u.toString();
@@ -47744,7 +47767,7 @@ function parseChunkToAction(chunk) {
47744
47767
  // is REQUIRED on `ChatContextItem`, so fall back to the id (same as the
47745
47768
  // historical path in `process-historical-messages.ts`) — keeps both
47746
47769
  // message sources producing an identical shape.
47747
- contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _1155 => _1155.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _1156 => _1156.id]) === "string").map((it) => ({ type: it.type, id: it.id, label: it.id })) : void 0
47770
+ contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _1152 => _1152.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _1153 => _1153.id]) === "string").map((it) => ({ type: it.type, id: it.id, label: it.id })) : void 0
47748
47771
  };
47749
47772
  case MESSAGE_TYPE.TOKEN_USAGE:
47750
47773
  return {
@@ -47936,8 +47959,8 @@ var MessageSegmentAccumulator = class {
47936
47959
  type: "tool_execution",
47937
47960
  data: {
47938
47961
  ...toolData,
47939
- toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _1157 => _1157.data, 'access', _1158 => _1158.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _1159 => _1159.toolTitle]))),
47940
- parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _1160 => _1160.parameters])
47962
+ toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _1154 => _1154.data, 'access', _1155 => _1155.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _1156 => _1156.toolTitle]))),
47963
+ parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _1157 => _1157.parameters])
47941
47964
  }
47942
47965
  };
47943
47966
  if (existingIndex !== -1) {
@@ -47961,8 +47984,8 @@ var MessageSegmentAccumulator = class {
47961
47984
  if (seg.type !== "approval_batch") return seg;
47962
47985
  const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
47963
47986
  if (!hasCall) return seg;
47964
- const prev = _optionalChain([seg, 'access', _1161 => _1161.data, 'access', _1162 => _1162.executions, 'optionalAccess', _1163 => _1163[execId]]);
47965
- const next = toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prev, 'optionalAccess', _1164 => _1164.result]), success: _optionalChain([prev, 'optionalAccess', _1165 => _1165.success]) };
47987
+ const prev = _optionalChain([seg, 'access', _1158 => _1158.data, 'access', _1159 => _1159.executions, 'optionalAccess', _1160 => _1160[execId]]);
47988
+ const next = toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prev, 'optionalAccess', _1161 => _1161.result]), success: _optionalChain([prev, 'optionalAccess', _1162 => _1162.success]) };
47966
47989
  matched = true;
47967
47990
  return {
47968
47991
  ...seg,
@@ -48084,10 +48107,10 @@ var MessageSegmentAccumulator = class {
48084
48107
  const segment = {
48085
48108
  type: "approval_request",
48086
48109
  data: {
48087
- command: _optionalChain([pendingApproval, 'optionalAccess', _1166 => _1166.command]) || "",
48088
- explanation: _optionalChain([pendingApproval, 'optionalAccess', _1167 => _1167.explanation]),
48110
+ command: _optionalChain([pendingApproval, 'optionalAccess', _1163 => _1163.command]) || "",
48111
+ explanation: _optionalChain([pendingApproval, 'optionalAccess', _1164 => _1164.explanation]),
48089
48112
  requestId,
48090
- approvalType: _optionalChain([pendingApproval, 'optionalAccess', _1168 => _1168.approvalType]) || approvalType
48113
+ approvalType: _optionalChain([pendingApproval, 'optionalAccess', _1165 => _1165.approvalType]) || approvalType
48091
48114
  },
48092
48115
  status,
48093
48116
  onApprove: this.callbacks.onApprove,
@@ -48279,7 +48302,7 @@ function useRealtimeChunkProcessor(options) {
48279
48302
  if (initialState.escalatedApprovals) {
48280
48303
  pendingEscalatedRef.current = new Map(initialState.escalatedApprovals);
48281
48304
  initialState.escalatedApprovals.forEach((data, requestId) => {
48282
- _optionalChain([callbacks, 'access', _1169 => _1169.onEscalatedApproval, 'optionalCall', _1170 => _1170(requestId, data)]);
48305
+ _optionalChain([callbacks, 'access', _1166 => _1166.onEscalatedApproval, 'optionalCall', _1167 => _1167(requestId, data)]);
48283
48306
  });
48284
48307
  }
48285
48308
  hasEverStreamedRef.current = true;
@@ -48301,13 +48324,13 @@ function useRealtimeChunkProcessor(options) {
48301
48324
  if (!action) return;
48302
48325
  const accumulator = accumulatorRef.current;
48303
48326
  const streamSeq = chunk && typeof chunk === "object" && typeof chunk.streamSeq === "number" ? chunk.streamSeq : void 0;
48304
- const emitSegments = (s, meta) => _optionalChain([callbacks, 'access', _1171 => _1171.onSegmentsUpdate, 'optionalCall', _1172 => _1172(s, streamSeq != null ? { ...meta, streamSeq } : meta)]);
48327
+ const emitSegments = (s, meta) => _optionalChain([callbacks, 'access', _1168 => _1168.onSegmentsUpdate, 'optionalCall', _1169 => _1169(s, streamSeq != null ? { ...meta, streamSeq } : meta)]);
48305
48328
  if (action.action === "direct_message") sawDirectMessageRef.current = true;
48306
48329
  if ((directModeFlagRef.current || sawDirectMessageRef.current) && !DIRECT_MODE_ALLOWED.has(action.action)) {
48307
48330
  if (isInStreamRef.current || !directTeardownFiredRef.current) {
48308
48331
  isInStreamRef.current = false;
48309
48332
  directTeardownFiredRef.current = true;
48310
- _optionalChain([callbacks, 'access', _1173 => _1173.onStreamEnd, 'optionalCall', _1174 => _1174()]);
48333
+ _optionalChain([callbacks, 'access', _1170 => _1170.onStreamEnd, 'optionalCall', _1171 => _1171()]);
48311
48334
  accumulator.resetSegments();
48312
48335
  }
48313
48336
  return;
@@ -48316,16 +48339,16 @@ function useRealtimeChunkProcessor(options) {
48316
48339
  case "message_start":
48317
48340
  isInStreamRef.current = true;
48318
48341
  hasEverStreamedRef.current = true;
48319
- _optionalChain([callbacks, 'access', _1175 => _1175.onStreamStart, 'optionalCall', _1176 => _1176()]);
48342
+ _optionalChain([callbacks, 'access', _1172 => _1172.onStreamStart, 'optionalCall', _1173 => _1173()]);
48320
48343
  accumulator.resetSegments();
48321
48344
  break;
48322
48345
  case "message_end":
48323
48346
  isInStreamRef.current = false;
48324
- _optionalChain([callbacks, 'access', _1177 => _1177.onStreamEnd, 'optionalCall', _1178 => _1178()]);
48347
+ _optionalChain([callbacks, 'access', _1174 => _1174.onStreamEnd, 'optionalCall', _1175 => _1175()]);
48325
48348
  accumulator.resetSegments();
48326
48349
  break;
48327
48350
  case "metadata":
48328
- _optionalChain([callbacks, 'access', _1179 => _1179.onMetadata, 'optionalCall', _1180 => _1180(action)]);
48351
+ _optionalChain([callbacks, 'access', _1176 => _1176.onMetadata, 'optionalCall', _1177 => _1177(action)]);
48329
48352
  break;
48330
48353
  case "text": {
48331
48354
  const segments = accumulator.appendText(action.text);
@@ -48347,7 +48370,7 @@ function useRealtimeChunkProcessor(options) {
48347
48370
  }
48348
48371
  case "tool_execution": {
48349
48372
  if (action.segment.data.type === "EXECUTING_TOOL") {
48350
- _optionalChain([callbacks, 'access', _1181 => _1181.onAgentBusy, 'optionalCall', _1182 => _1182()]);
48373
+ _optionalChain([callbacks, 'access', _1178 => _1178.onAgentBusy, 'optionalCall', _1179 => _1179()]);
48351
48374
  }
48352
48375
  if (!isInStreamRef.current && callbacks.onToolExecuted) {
48353
48376
  callbacks.onToolExecuted(action.segment);
@@ -48371,7 +48394,7 @@ function useRealtimeChunkProcessor(options) {
48371
48394
  emitSegments(segments);
48372
48395
  } else {
48373
48396
  pendingEscalatedRef.current.set(requestId, { command, explanation, approvalType });
48374
- _optionalChain([callbacks, 'access', _1183 => _1183.onEscalatedApproval, 'optionalCall', _1184 => _1184(requestId, { command, explanation, approvalType })]);
48397
+ _optionalChain([callbacks, 'access', _1180 => _1180.onEscalatedApproval, 'optionalCall', _1181 => _1181(requestId, { command, explanation, approvalType })]);
48375
48398
  }
48376
48399
  break;
48377
48400
  }
@@ -48383,13 +48406,13 @@ function useRealtimeChunkProcessor(options) {
48383
48406
  const summary = required ? getCommandText(required) : `Batch of ${toolCalls.length} tool calls`;
48384
48407
  pendingEscalatedRef.current.set(requestId, {
48385
48408
  command: summary,
48386
- explanation: _optionalChain([required, 'optionalAccess', _1185 => _1185.toolExplanation]),
48409
+ explanation: _optionalChain([required, 'optionalAccess', _1182 => _1182.toolExplanation]),
48387
48410
  approvalType,
48388
48411
  toolCalls
48389
48412
  });
48390
- _optionalChain([callbacks, 'access', _1186 => _1186.onEscalatedApproval, 'optionalCall', _1187 => _1187(requestId, {
48413
+ _optionalChain([callbacks, 'access', _1183 => _1183.onEscalatedApproval, 'optionalCall', _1184 => _1184(requestId, {
48391
48414
  command: summary,
48392
- explanation: _optionalChain([required, 'optionalAccess', _1188 => _1188.toolExplanation]),
48415
+ explanation: _optionalChain([required, 'optionalAccess', _1185 => _1185.toolExplanation]),
48393
48416
  approvalType
48394
48417
  })]);
48395
48418
  break;
@@ -48415,12 +48438,12 @@ function useRealtimeChunkProcessor(options) {
48415
48438
  }
48416
48439
  case "approval_result": {
48417
48440
  const { requestId, approved, approvalType, resolvedByName } = action;
48418
- if (approved) _optionalChain([callbacks, 'access', _1189 => _1189.onAgentBusy, 'optionalCall', _1190 => _1190()]);
48441
+ if (approved) _optionalChain([callbacks, 'access', _1186 => _1186.onAgentBusy, 'optionalCall', _1187 => _1187()]);
48419
48442
  const escalatedData = pendingEscalatedRef.current.get(requestId);
48420
48443
  const status = approved ? "approved" : "rejected";
48421
48444
  if (escalatedData) {
48422
48445
  pendingEscalatedRef.current.delete(requestId);
48423
- _optionalChain([callbacks, 'access', _1191 => _1191.onEscalatedApprovalResult, 'optionalCall', _1192 => _1192(requestId, approved, {
48446
+ _optionalChain([callbacks, 'access', _1188 => _1188.onEscalatedApprovalResult, 'optionalCall', _1189 => _1189(requestId, approved, {
48424
48447
  command: escalatedData.command,
48425
48448
  explanation: escalatedData.explanation,
48426
48449
  approvalType: escalatedData.approvalType
@@ -48466,29 +48489,29 @@ function useRealtimeChunkProcessor(options) {
48466
48489
  emitSegments(accumulator.getSegments());
48467
48490
  }
48468
48491
  }
48469
- _optionalChain([callbacks, 'access', _1193 => _1193.onApprovalResolved, 'optionalCall', _1194 => _1194(requestId, status, approvalType, resolvedByName)]);
48492
+ _optionalChain([callbacks, 'access', _1190 => _1190.onApprovalResolved, 'optionalCall', _1191 => _1191(requestId, status, approvalType, resolvedByName)]);
48470
48493
  break;
48471
48494
  }
48472
48495
  case "error": {
48473
48496
  let message2;
48474
- if ("details" in action && _optionalChain([action, 'optionalAccess', _1195 => _1195.details])) {
48497
+ if ("details" in action && _optionalChain([action, 'optionalAccess', _1192 => _1192.details])) {
48475
48498
  try {
48476
- message2 = _optionalChain([JSON, 'access', _1196 => _1196.parse, 'call', _1197 => _1197(action.details), 'optionalAccess', _1198 => _1198.error, 'optionalAccess', _1199 => _1199.message]);
48499
+ message2 = _optionalChain([JSON, 'access', _1193 => _1193.parse, 'call', _1194 => _1194(action.details), 'optionalAccess', _1195 => _1195.error, 'optionalAccess', _1196 => _1196.message]);
48477
48500
  } catch (e60) {
48478
48501
  message2 = action.details;
48479
48502
  }
48480
48503
  }
48481
48504
  const segments = accumulator.addError(action.error, message2);
48482
48505
  emitSegments(segments);
48483
- _optionalChain([callbacks, 'access', _1200 => _1200.onError, 'optionalCall', _1201 => _1201(action.error, message2)]);
48506
+ _optionalChain([callbacks, 'access', _1197 => _1197.onError, 'optionalCall', _1198 => _1198(action.error, message2)]);
48484
48507
  break;
48485
48508
  }
48486
48509
  case "system": {
48487
- _optionalChain([callbacks, 'access', _1202 => _1202.onSystemMessage, 'optionalCall', _1203 => _1203(action.text, { streamSeq })]);
48510
+ _optionalChain([callbacks, 'access', _1199 => _1199.onSystemMessage, 'optionalCall', _1200 => _1200(action.text, { streamSeq })]);
48488
48511
  break;
48489
48512
  }
48490
48513
  case "direct_message": {
48491
- _optionalChain([callbacks, 'access', _1204 => _1204.onDirectMessage, 'optionalCall', _1205 => _1205(action.text, {
48514
+ _optionalChain([callbacks, 'access', _1201 => _1201.onDirectMessage, 'optionalCall', _1202 => _1202(action.text, {
48492
48515
  ownerType: action.ownerType,
48493
48516
  displayName: action.displayName,
48494
48517
  userId: action.userId,
@@ -48497,7 +48520,7 @@ function useRealtimeChunkProcessor(options) {
48497
48520
  break;
48498
48521
  }
48499
48522
  case "message_request":
48500
- _optionalChain([callbacks, 'access', _1206 => _1206.onUserMessage, 'optionalCall', _1207 => _1207(action.text, {
48523
+ _optionalChain([callbacks, 'access', _1203 => _1203.onUserMessage, 'optionalCall', _1204 => _1204(action.text, {
48501
48524
  ownerType: action.ownerType,
48502
48525
  displayName: action.displayName,
48503
48526
  userId: action.userId,
@@ -48506,7 +48529,7 @@ function useRealtimeChunkProcessor(options) {
48506
48529
  })]);
48507
48530
  break;
48508
48531
  case "token_usage":
48509
- _optionalChain([callbacks, 'access', _1208 => _1208.onTokenUsage, 'optionalCall', _1209 => _1209(action.data)]);
48532
+ _optionalChain([callbacks, 'access', _1205 => _1205.onTokenUsage, 'optionalCall', _1206 => _1206(action.data)]);
48510
48533
  break;
48511
48534
  case "context_compaction_start": {
48512
48535
  const standalone = !isInStreamRef.current;
@@ -48521,7 +48544,7 @@ function useRealtimeChunkProcessor(options) {
48521
48544
  break;
48522
48545
  }
48523
48546
  case "dialog_closed":
48524
- _optionalChain([callbacks, 'access', _1210 => _1210.onDialogClosed, 'optionalCall', _1211 => _1211()]);
48547
+ _optionalChain([callbacks, 'access', _1207 => _1207.onDialogClosed, 'optionalCall', _1208 => _1208()]);
48525
48548
  break;
48526
48549
  default:
48527
48550
  break;
@@ -48569,7 +48592,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
48569
48592
  const data = await res.json();
48570
48593
  return _nullishCoalesce(data.commands, () => ( []));
48571
48594
  } catch (err) {
48572
- if (_optionalChain([err, 'optionalAccess', _1212 => _1212.name]) === "AbortError") throw err;
48595
+ if (_optionalChain([err, 'optionalAccess', _1209 => _1209.name]) === "AbortError") throw err;
48573
48596
  console.warn("[chat] slash-commands fetch failed, showing none:", err);
48574
48597
  return [];
48575
48598
  }
@@ -48590,7 +48613,7 @@ function useSlashCommands(prefix, commandsUrl) {
48590
48613
  const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
48591
48614
  if (!cancelled) setCommands(next);
48592
48615
  } catch (err) {
48593
- if (!cancelled && _optionalChain([err, 'optionalAccess', _1213 => _1213.name]) !== "AbortError") {
48616
+ if (!cancelled && _optionalChain([err, 'optionalAccess', _1210 => _1210.name]) !== "AbortError") {
48594
48617
  console.warn("[use-slash-commands] fetch failed:", err);
48595
48618
  }
48596
48619
  } finally {
@@ -48609,7 +48632,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
48609
48632
  const query = _reactquery.useQuery.call(void 0, {
48610
48633
  queryKey: ["chat-slash-commands", commandsUrl],
48611
48634
  queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
48612
- enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1214 => _1214.enabled]), () => ( true)),
48635
+ enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1211 => _1211.enabled]), () => ( true)),
48613
48636
  staleTime: Infinity,
48614
48637
  gcTime: Infinity,
48615
48638
  // The commands registry is non-critical chrome — a failure degrades to an
@@ -48648,21 +48671,21 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
48648
48671
  }
48649
48672
  const data = await res.json();
48650
48673
  return {
48651
- name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1215 => _1215.name]), () => ( null)),
48652
- icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1216 => _1216.icon]), () => ( null)),
48653
- greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1217 => _1217.greeting]), () => ( null)),
48654
- enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1218 => _1218.enabledRagTableIds]), () => ( [])),
48655
- quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1219 => _1219.quickActions]), () => ( [])),
48656
- suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1220 => _1220.suggestedQueries]), () => ( []))
48674
+ name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1212 => _1212.name]), () => ( null)),
48675
+ icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1213 => _1213.icon]), () => ( null)),
48676
+ greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1214 => _1214.greeting]), () => ( null)),
48677
+ enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1215 => _1215.enabledRagTableIds]), () => ( [])),
48678
+ quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1216 => _1216.quickActions]), () => ( [])),
48679
+ suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1217 => _1217.suggestedQueries]), () => ( []))
48657
48680
  };
48658
48681
  } catch (err) {
48659
- if (_optionalChain([err, 'optionalAccess', _1221 => _1221.name]) === "AbortError") throw err;
48682
+ if (_optionalChain([err, 'optionalAccess', _1218 => _1218.name]) === "AbortError") throw err;
48660
48683
  console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
48661
48684
  return EMPTY_STATE_FALLBACK;
48662
48685
  }
48663
48686
  }
48664
48687
  function useEmptyStateConfig(emptyStateUrl, options) {
48665
- const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1222 => _1222.enabled]), () => ( true))) && !!emptyStateUrl;
48688
+ const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1219 => _1219.enabled]), () => ( true))) && !!emptyStateUrl;
48666
48689
  const query = _reactquery.useQuery.call(void 0, {
48667
48690
  queryKey: ["chat-empty-state", emptyStateUrl],
48668
48691
  queryFn: ({ signal }) => fetchEmptyStateConfig(signal, emptyStateUrl),
@@ -48691,7 +48714,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
48691
48714
  var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
48692
48715
  function uploadWithProgress(url, file, token, onProgress, signal) {
48693
48716
  return new Promise((resolve, reject) => {
48694
- if (_optionalChain([signal, 'optionalAccess', _1223 => _1223.aborted])) {
48717
+ if (_optionalChain([signal, 'optionalAccess', _1220 => _1220.aborted])) {
48695
48718
  reject(new Error("Upload cancelled"));
48696
48719
  return;
48697
48720
  }
@@ -48705,7 +48728,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
48705
48728
  xhr.removeEventListener("error", handleError);
48706
48729
  xhr.removeEventListener("abort", handleAbort);
48707
48730
  xhr.removeEventListener("timeout", handleTimeout);
48708
- _optionalChain([signal, 'optionalAccess', _1224 => _1224.removeEventListener, 'call', _1225 => _1225("abort", handleSignalAbort)]);
48731
+ _optionalChain([signal, 'optionalAccess', _1221 => _1221.removeEventListener, 'call', _1222 => _1222("abort", handleSignalAbort)]);
48709
48732
  if (xhr.readyState !== XMLHttpRequest.DONE) xhr.abort();
48710
48733
  };
48711
48734
  const handleProgress = (event) => {
@@ -48741,7 +48764,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
48741
48764
  const handleSignalAbort = () => {
48742
48765
  xhr.abort();
48743
48766
  };
48744
- _optionalChain([signal, 'optionalAccess', _1226 => _1226.addEventListener, 'call', _1227 => _1227("abort", handleSignalAbort, { once: true })]);
48767
+ _optionalChain([signal, 'optionalAccess', _1223 => _1223.addEventListener, 'call', _1224 => _1224("abort", handleSignalAbort, { once: true })]);
48745
48768
  xhr.upload.addEventListener("progress", handleProgress);
48746
48769
  xhr.addEventListener("load", handleLoad);
48747
48770
  xhr.addEventListener("error", handleError);
@@ -48785,12 +48808,12 @@ function useChatAttachments() {
48785
48808
  try {
48786
48809
  sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
48787
48810
  } catch (err) {
48788
- if (_optionalChain([ctrl, 'optionalAccess', _1228 => _1228.signal, 'access', _1229 => _1229.aborted])) return;
48811
+ if (_optionalChain([ctrl, 'optionalAccess', _1225 => _1225.signal, 'access', _1226 => _1226.aborted])) return;
48789
48812
  throw new Error(
48790
48813
  `Could not read file content: ${err instanceof Error ? err.message : String(err)}`
48791
48814
  );
48792
48815
  }
48793
- if (_optionalChain([ctrl, 'optionalAccess', _1230 => _1230.signal, 'access', _1231 => _1231.aborted])) return;
48816
+ if (_optionalChain([ctrl, 'optionalAccess', _1227 => _1227.signal, 'access', _1228 => _1228.aborted])) return;
48794
48817
  if (!sniffed) {
48795
48818
  throw new Error("Unrecognized file format");
48796
48819
  }
@@ -48804,7 +48827,7 @@ function useChatAttachments() {
48804
48827
  const urlResp = await _chunkN2TJ3HAMcjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
48805
48828
  method: "POST",
48806
48829
  headers: { "Content-Type": "application/json" },
48807
- signal: _optionalChain([ctrl, 'optionalAccess', _1232 => _1232.signal]),
48830
+ signal: _optionalChain([ctrl, 'optionalAccess', _1229 => _1229.signal]),
48808
48831
  body: JSON.stringify({
48809
48832
  fileName: att.file.name,
48810
48833
  // Pass the SNIFFED MIME (not `file.type`, which can be a
@@ -48830,9 +48853,9 @@ function useChatAttachments() {
48830
48853
  (pct) => {
48831
48854
  updateOne(att.id, { progress: pct });
48832
48855
  },
48833
- _optionalChain([ctrl, 'optionalAccess', _1233 => _1233.signal])
48856
+ _optionalChain([ctrl, 'optionalAccess', _1230 => _1230.signal])
48834
48857
  );
48835
- if (_optionalChain([ctrl, 'optionalAccess', _1234 => _1234.signal, 'access', _1235 => _1235.aborted])) return;
48858
+ if (_optionalChain([ctrl, 'optionalAccess', _1231 => _1231.signal, 'access', _1232 => _1232.aborted])) return;
48836
48859
  updateOne(att.id, {
48837
48860
  status: "ready",
48838
48861
  progress: 100,
@@ -48840,7 +48863,7 @@ function useChatAttachments() {
48840
48863
  viewToken: mintData.viewToken
48841
48864
  });
48842
48865
  } catch (err) {
48843
- if (_optionalChain([ctrl, 'optionalAccess', _1236 => _1236.signal, 'access', _1237 => _1237.aborted])) return;
48866
+ if (_optionalChain([ctrl, 'optionalAccess', _1233 => _1233.signal, 'access', _1234 => _1234.aborted])) return;
48844
48867
  const message2 = err instanceof Error ? err.message : String(err);
48845
48868
  updateOne(att.id, { status: "error", progress: 0, errorMessage: message2 });
48846
48869
  } finally {
@@ -48991,7 +49014,7 @@ var ANON_DEFAULTS = {
48991
49014
  function useResolveChatIdentity(enabled) {
48992
49015
  const runtime = _chunk2B6773QMcjs.useRequiredChatRuntime.call(void 0, );
48993
49016
  const url = runtime.endpoints.identityUrl;
48994
- const proxyEmail = _nullishCoalesce(_optionalChain([_chunkN2TJ3HAMcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _1238 => _1238.email]), () => ( null));
49017
+ const proxyEmail = _nullishCoalesce(_optionalChain([_chunkN2TJ3HAMcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _1235 => _1235.email]), () => ( null));
48995
49018
  const [data, setData] = _react.useState.call(void 0, ANON_DEFAULTS);
48996
49019
  const [isLoading, setIsLoading] = _react.useState.call(void 0, enabled);
48997
49020
  _react.useEffect.call(void 0, () => {
@@ -49082,7 +49105,7 @@ function useSSE({ useMock = true, debugMode = false, streamFn } = {}) {
49082
49105
  yield chunk;
49083
49106
  }
49084
49107
  } catch (err) {
49085
- if (_optionalChain([err, 'optionalAccess', _1239 => _1239.name]) === "AbortError" || ctrl.signal.aborted) {
49108
+ if (_optionalChain([err, 'optionalAccess', _1236 => _1236.name]) === "AbortError" || ctrl.signal.aborted) {
49086
49109
  return;
49087
49110
  }
49088
49111
  const errorMessage = err instanceof Error ? err.message : "An error occurred";
@@ -49133,7 +49156,7 @@ function useChat({
49133
49156
  const onMessagesChangeRef = _react.useRef.call(void 0, onMessagesChange);
49134
49157
  onMessagesChangeRef.current = onMessagesChange;
49135
49158
  _react.useEffect.call(void 0, () => {
49136
- _optionalChain([onMessagesChangeRef, 'access', _1240 => _1240.current, 'optionalCall', _1241 => _1241(messages)]);
49159
+ _optionalChain([onMessagesChangeRef, 'access', _1237 => _1237.current, 'optionalCall', _1238 => _1238(messages)]);
49137
49160
  }, [messages]);
49138
49161
  const {
49139
49162
  streamMessage,
@@ -49170,7 +49193,7 @@ function useChat({
49170
49193
  name: "You",
49171
49194
  content: text,
49172
49195
  timestamp: /* @__PURE__ */ new Date(),
49173
- ..._optionalChain([options, 'optionalAccess', _1242 => _1242.hidden]) ? { hidden: true } : {}
49196
+ ..._optionalChain([options, 'optionalAccess', _1239 => _1239.hidden]) ? { hidden: true } : {}
49174
49197
  };
49175
49198
  addMessage(userMessage);
49176
49199
  setIsTyping(true);
@@ -49232,7 +49255,7 @@ function useChat({
49232
49255
  currentTextSegment = "";
49233
49256
  }
49234
49257
  const seg = segment;
49235
- const proposalId = _optionalChain([seg, 'access', _1243 => _1243.data, 'optionalAccess', _1244 => _1244.requestId]);
49258
+ const proposalId = _optionalChain([seg, 'access', _1240 => _1240.data, 'optionalAccess', _1241 => _1241.requestId]);
49236
49259
  const updateApprovalMessage = (transform) => {
49237
49260
  setMessages((prev) => {
49238
49261
  for (let i = prev.length - 1; i >= 0; i--) {
@@ -49241,7 +49264,7 @@ function useChat({
49241
49264
  if (!Array.isArray(m.content)) continue;
49242
49265
  const segments = m.content;
49243
49266
  const hasMatch = segments.some(
49244
- (s) => s.type === "approval_request" && _optionalChain([s, 'access', _1245 => _1245.data, 'optionalAccess', _1246 => _1246.requestId]) === proposalId
49267
+ (s) => s.type === "approval_request" && _optionalChain([s, 'access', _1242 => _1242.data, 'optionalAccess', _1243 => _1243.requestId]) === proposalId
49245
49268
  );
49246
49269
  if (!hasMatch) continue;
49247
49270
  const next = [...prev];
@@ -49283,11 +49306,11 @@ function useChat({
49283
49306
  if (!Array.isArray(m.content)) continue;
49284
49307
  const segments = m.content;
49285
49308
  const hasMatch = segments.some(
49286
- (s) => s.type === "approval_request" && _optionalChain([s, 'access', _1247 => _1247.data, 'optionalAccess', _1248 => _1248.requestId]) === decision.proposalId
49309
+ (s) => s.type === "approval_request" && _optionalChain([s, 'access', _1244 => _1244.data, 'optionalAccess', _1245 => _1245.requestId]) === decision.proposalId
49287
49310
  );
49288
49311
  if (!hasMatch) continue;
49289
49312
  const flipped = segments.map(
49290
- (s) => s.type === "approval_request" && _optionalChain([s, 'access', _1249 => _1249.data, 'optionalAccess', _1250 => _1250.requestId]) === decision.proposalId ? { ...s, status: decision.action } : s
49313
+ (s) => s.type === "approval_request" && _optionalChain([s, 'access', _1246 => _1246.data, 'optionalAccess', _1247 => _1247.requestId]) === decision.proposalId ? { ...s, status: decision.action } : s
49291
49314
  );
49292
49315
  const next = [...prev];
49293
49316
  next[i] = { ...m, content: flipped };
@@ -49449,8 +49472,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
49449
49472
  })),
49450
49473
  { role: "user", content: message2 }
49451
49474
  ];
49452
- const targetPath = _optionalChain([extra, 'optionalAccess', _1251 => _1251.approvalAction]) ? endpoints.approvalToolUrl : endpoints.chatStreamUrl;
49453
- const requestBody = _optionalChain([extra, 'optionalAccess', _1252 => _1252.approvalAction]) ? {
49475
+ const targetPath = _optionalChain([extra, 'optionalAccess', _1248 => _1248.approvalAction]) ? endpoints.approvalToolUrl : endpoints.chatStreamUrl;
49476
+ const requestBody = _optionalChain([extra, 'optionalAccess', _1249 => _1249.approvalAction]) ? {
49454
49477
  proposal_id: extra.approvalAction.proposalId,
49455
49478
  action: extra.approvalAction.action,
49456
49479
  messages: currentMessages.filter((m) => (m.role === "user" || m.role === "assistant") && !m.hidden).map((m) => ({
@@ -49459,8 +49482,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
49459
49482
  }))
49460
49483
  } : {
49461
49484
  messages: apiMessages,
49462
- ..._optionalChain([extra, 'optionalAccess', _1253 => _1253.commandOverride]) ? { commandOverride: extra.commandOverride } : {},
49463
- ..._optionalChain([extra, 'optionalAccess', _1254 => _1254.pendingAttachments]) && extra.pendingAttachments.length > 0 ? { pendingAttachments: extra.pendingAttachments } : {}
49485
+ ..._optionalChain([extra, 'optionalAccess', _1250 => _1250.commandOverride]) ? { commandOverride: extra.commandOverride } : {},
49486
+ ..._optionalChain([extra, 'optionalAccess', _1251 => _1251.pendingAttachments]) && extra.pendingAttachments.length > 0 ? { pendingAttachments: extra.pendingAttachments } : {}
49464
49487
  };
49465
49488
  const response = await _chunkN2TJ3HAMcjs.embedAuthedFetch.call(void 0, targetPath, {
49466
49489
  method: "POST",
@@ -49470,7 +49493,7 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
49470
49493
  if (!response.ok) {
49471
49494
  throw new Error(`Chat request failed: ${response.status}`);
49472
49495
  }
49473
- const reader = _optionalChain([response, 'access', _1255 => _1255.body, 'optionalAccess', _1256 => _1256.getReader, 'call', _1257 => _1257()]);
49496
+ const reader = _optionalChain([response, 'access', _1252 => _1252.body, 'optionalAccess', _1253 => _1253.getReader, 'call', _1254 => _1254()]);
49474
49497
  if (!reader) throw new Error("No response body");
49475
49498
  const decoder = new TextDecoder();
49476
49499
  let buffer = "";
@@ -49553,7 +49576,7 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
49553
49576
  const toolName = typeof meta.tool_name === "string" ? meta.tool_name : void 0;
49554
49577
  const result = _nullishCoalesce(meta.result, () => ( null));
49555
49578
  const card = _nullishCoalesce(meta.card, () => ( null));
49556
- if (_optionalChain([card, 'optionalAccess', _1258 => _1258.ref, 'optionalAccess', _1259 => _1259.id]) && _optionalChain([card, 'optionalAccess', _1260 => _1260.type])) {
49579
+ if (_optionalChain([card, 'optionalAccess', _1255 => _1255.ref, 'optionalAccess', _1256 => _1256.id]) && _optionalChain([card, 'optionalAccess', _1257 => _1257.type])) {
49557
49580
  const existing = _nullishCoalesce(refsMapRef.current.get(sendIdx), () => ( {}));
49558
49581
  const key = buildChatRefKey(card.type, card.ref.id);
49559
49582
  refsMapRef.current.set(sendIdx, { ...existing, [key]: card.ref });
@@ -49566,8 +49589,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
49566
49589
  willAutoContinue: meta.willAutoContinue === true,
49567
49590
  ...toolName ? { toolName } : {},
49568
49591
  ...result ? { result } : {},
49569
- ..._optionalChain([card, 'optionalAccess', _1261 => _1261.marker]) ? { marker: card.marker } : {},
49570
- ..._optionalChain([card, 'optionalAccess', _1262 => _1262.ref]) ? { cardRef: card.ref } : {},
49592
+ ..._optionalChain([card, 'optionalAccess', _1258 => _1258.marker]) ? { marker: card.marker } : {},
49593
+ ..._optionalChain([card, 'optionalAccess', _1259 => _1259.ref]) ? { cardRef: card.ref } : {},
49571
49594
  ...typeof meta.receiptText === "string" ? { receiptText: meta.receiptText } : {},
49572
49595
  proposalId: typeof meta.proposalId === "string" ? meta.proposalId : void 0
49573
49596
  };
@@ -49686,7 +49709,7 @@ var DEFAULT_CHAT_SOURCE = "embed";
49686
49709
  var chatStorageKey = (source) => {
49687
49710
  const base = `mingo-chat-${source}-v${CHAT_STORAGE_VERSION}`;
49688
49711
  const auth = _chunkN2TJ3HAMcjs.getEmbedProxyAuth.call(void 0, );
49689
- if (_optionalChain([auth, 'optionalAccess', _1263 => _1263.email])) {
49712
+ if (_optionalChain([auth, 'optionalAccess', _1260 => _1260.email])) {
49690
49713
  return `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}`;
49691
49714
  }
49692
49715
  return base;
@@ -49741,7 +49764,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
49741
49764
  const { active = true } = runtimeOptions;
49742
49765
  const runtime = _chunk2B6773QMcjs.useRequiredChatRuntime.call(void 0, );
49743
49766
  const source = runtime.source || DEFAULT_CHAT_SOURCE;
49744
- const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1264 => _1264.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
49767
+ const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1261 => _1261.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
49745
49768
  const persistedRef = _react.useRef.call(void 0, null);
49746
49769
  if (persistedRef.current === null) {
49747
49770
  pruneStaleChatStorage(source);
@@ -49846,7 +49869,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
49846
49869
  const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
49847
49870
  sources = sourcesMapRef.current.get(lookupIdx);
49848
49871
  chatRefs = _nullishCoalesce(m.chatRefs, () => ( refsMapRef.current.get(lookupIdx)));
49849
- scrollAnchor = _nullishCoalesce(_optionalChain([metaMapRef, 'access', _1265 => _1265.current, 'access', _1266 => _1266.get, 'call', _1267 => _1267(lookupIdx), 'optionalAccess', _1268 => _1268.scrollAnchor]), () => ( void 0));
49872
+ scrollAnchor = _nullishCoalesce(_optionalChain([metaMapRef, 'access', _1262 => _1262.current, 'access', _1263 => _1263.get, 'call', _1264 => _1264(lookupIdx), 'optionalAccess', _1265 => _1265.scrollAnchor]), () => ( void 0));
49850
49873
  }
49851
49874
  return {
49852
49875
  id: m.id,
@@ -49894,7 +49917,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
49894
49917
  );
49895
49918
  return;
49896
49919
  }
49897
- const refSlug = typeof _optionalChain([reference, 'access', _1269 => _1269.metadata, 'optionalAccess', _1270 => _1270.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
49920
+ const refSlug = typeof _optionalChain([reference, 'access', _1266 => _1266.metadata, 'optionalAccess', _1267 => _1267.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
49898
49921
  const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
49899
49922
  const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
49900
49923
  const text = `/${cmdId} display "${escaped}"`;
@@ -49966,18 +49989,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
49966
49989
  clearMessages,
49967
49990
  streamingPhase,
49968
49991
  /** Provider key for the lib's `<ModelDisplay>` icon. */
49969
- currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1271 => _1271.provider]), () => ( null)),
49970
- currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1272 => _1272.modelLabel]), () => ( null)),
49971
- currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1273 => _1273.contextWindowMaxTokens]), () => ( null)),
49992
+ currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1268 => _1268.provider]), () => ( null)),
49993
+ currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1269 => _1269.modelLabel]), () => ( null)),
49994
+ currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1270 => _1270.contextWindowMaxTokens]), () => ( null)),
49972
49995
  /** Input tokens (known after server's message_start frame; null until). */
49973
- currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1274 => _1274.inputTokens]), () => ( null)),
49996
+ currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1271 => _1271.inputTokens]), () => ( null)),
49974
49997
  /** Output tokens (known only after server's trailing usage frame). */
49975
- currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1275 => _1275.outputTokens]), () => ( null)),
49998
+ currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1272 => _1272.outputTokens]), () => ( null)),
49976
49999
  /** Cache hit % (read / total-input × 100). null during streaming. */
49977
- currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1276 => _1276.cacheHitRatePct]), () => ( null)),
50000
+ currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1273 => _1273.cacheHitRatePct]), () => ( null)),
49978
50001
  /** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
49979
50002
  * token counts). null until the trailing usage frame lands. */
49980
- currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1277 => _1277.breakdown]), () => ( null)),
50003
+ currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1274 => _1274.breakdown]), () => ( null)),
49981
50004
  // ─── Dialog management — stubs for v1 ────────────────────────────────
49982
50005
  // Guide mode currently keeps its history in `localStorage` opaquely
49983
50006
  // under the hood (`runtime.source` namespaced key). Surfacing that
@@ -50035,15 +50058,15 @@ var noopRejectRequest = async (_id, _reason) => {
50035
50058
 
50036
50059
  // src/components/chat/utils/process-historical-messages.ts
50037
50060
  function getOwnerDisplayName(owner) {
50038
- if (_optionalChain([owner, 'optionalAccess', _1278 => _1278.type]) === OWNER_TYPE.ADMIN && owner.user) {
50061
+ if (_optionalChain([owner, 'optionalAccess', _1275 => _1275.type]) === OWNER_TYPE.ADMIN && owner.user) {
50039
50062
  const { firstName, lastName } = owner.user;
50040
50063
  const name = [firstName, lastName].filter(Boolean).join(" ");
50041
50064
  if (name) return name;
50042
50065
  }
50043
- return _optionalChain([owner, 'optionalAccess', _1279 => _1279.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
50066
+ return _optionalChain([owner, 'optionalAccess', _1276 => _1276.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
50044
50067
  }
50045
50068
  function getOwnerAvatar(owner) {
50046
- return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _1280 => _1280.user, 'optionalAccess', _1281 => _1281.image, 'optionalAccess', _1282 => _1282.imageUrl]), () => ( void 0));
50069
+ return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _1277 => _1277.user, 'optionalAccess', _1278 => _1278.image, 'optionalAccess', _1279 => _1279.imageUrl]), () => ( void 0));
50047
50070
  }
50048
50071
  function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
50049
50072
  messageDataArray.forEach((data) => {
@@ -50106,14 +50129,14 @@ function processHistoricalMessages(messages, options = {}) {
50106
50129
  pushStandaloneMessages(processedMessages, msg, messageDataArray);
50107
50130
  return;
50108
50131
  }
50109
- const isUserMessage = _optionalChain([msg, 'access', _1283 => _1283.owner, 'optionalAccess', _1284 => _1284.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _1285 => _1285.owner, 'optionalAccess', _1286 => _1286.type]) === OWNER_TYPE.ADMIN;
50132
+ const isUserMessage = _optionalChain([msg, 'access', _1280 => _1280.owner, 'optionalAccess', _1281 => _1281.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _1282 => _1282.owner, 'optionalAccess', _1283 => _1283.type]) === OWNER_TYPE.ADMIN;
50110
50133
  if (isUserMessage) {
50111
50134
  flushAssistantMessage();
50112
- const userAuthorType = _optionalChain([msg, 'access', _1287 => _1287.owner, 'optionalAccess', _1288 => _1288.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
50135
+ const userAuthorType = _optionalChain([msg, 'access', _1284 => _1284.owner, 'optionalAccess', _1285 => _1285.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
50113
50136
  messageDataArray.forEach((data) => {
50114
50137
  if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
50115
50138
  const rawContext = data.contextItems;
50116
- const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _1289 => _1289.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _1290 => _1290.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
50139
+ const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _1286 => _1286.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _1287 => _1287.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
50117
50140
  processedMessages.push({
50118
50141
  id: msg.id,
50119
50142
  role: "user",
@@ -50137,7 +50160,7 @@ function processHistoricalMessages(messages, options = {}) {
50137
50160
  });
50138
50161
  const nextMsg = messages[index + 1];
50139
50162
  const isLastMessage = index === messages.length - 1;
50140
- const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _1291 => _1291.owner, 'optionalAccess', _1292 => _1292.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _1293 => _1293.owner, 'optionalAccess', _1294 => _1294.type]) === OWNER_TYPE.ADMIN);
50163
+ const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _1288 => _1288.owner, 'optionalAccess', _1289 => _1289.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _1290 => _1290.owner, 'optionalAccess', _1291 => _1291.type]) === OWNER_TYPE.ADMIN);
50141
50164
  if (isLastMessage || nextIsFromUser) {
50142
50165
  flushAssistantMessage();
50143
50166
  }
@@ -50247,7 +50270,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
50247
50270
  }
50248
50271
  }
50249
50272
  } else {
50250
- _optionalChain([escalatedApprovals, 'optionalAccess', _1295 => _1295.set, 'call', _1296 => _1296(data.approvalRequestId, {
50273
+ _optionalChain([escalatedApprovals, 'optionalAccess', _1292 => _1292.set, 'call', _1293 => _1293(data.approvalRequestId, {
50251
50274
  command: data.command || "",
50252
50275
  explanation: data.explanation,
50253
50276
  approvalType,
@@ -50261,8 +50284,8 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
50261
50284
  const existingStatus = approvalStatuses[data.approvalRequestId];
50262
50285
  const status = existingStatus || (data.approved ? "approved" : "rejected");
50263
50286
  const resolvedByName = "resolvedByName" in data ? data.resolvedByName : void 0;
50264
- const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _1297 => _1297.get, 'call', _1298 => _1298(data.approvalRequestId)]);
50265
- if (_optionalChain([escalatedData, 'optionalAccess', _1299 => _1299.toolCalls]) && escalatedData.toolCalls.length > 0) {
50287
+ const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _1294 => _1294.get, 'call', _1295 => _1295(data.approvalRequestId)]);
50288
+ if (_optionalChain([escalatedData, 'optionalAccess', _1296 => _1296.toolCalls]) && escalatedData.toolCalls.length > 0) {
50266
50289
  if (batchApprovalsEnabled) {
50267
50290
  accumulator.addApprovalBatch(
50268
50291
  data.approvalRequestId,
@@ -50284,7 +50307,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
50284
50307
  );
50285
50308
  }
50286
50309
  }
50287
- _optionalChain([escalatedApprovals, 'optionalAccess', _1300 => _1300.delete, 'call', _1301 => _1301(data.approvalRequestId)]);
50310
+ _optionalChain([escalatedApprovals, 'optionalAccess', _1297 => _1297.delete, 'call', _1298 => _1298(data.approvalRequestId)]);
50288
50311
  break;
50289
50312
  }
50290
50313
  if (escalatedData) {
@@ -50293,7 +50316,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
50293
50316
  explanation: escalatedData.explanation,
50294
50317
  approvalType: escalatedData.approvalType
50295
50318
  });
50296
- _optionalChain([escalatedApprovals, 'optionalAccess', _1302 => _1302.delete, 'call', _1303 => _1303(data.approvalRequestId)]);
50319
+ _optionalChain([escalatedApprovals, 'optionalAccess', _1299 => _1299.delete, 'call', _1300 => _1300(data.approvalRequestId)]);
50297
50320
  }
50298
50321
  const before = accumulator.getSegments();
50299
50322
  const after = accumulator.updateApprovalStatus(data.approvalRequestId, status, resolvedByName);
@@ -50309,9 +50332,9 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
50309
50332
  case MESSAGE_TYPE.ERROR:
50310
50333
  if ("error" in data) {
50311
50334
  let message2;
50312
- if ("details" in data && _optionalChain([data, 'optionalAccess', _1304 => _1304.details])) {
50335
+ if ("details" in data && _optionalChain([data, 'optionalAccess', _1301 => _1301.details])) {
50313
50336
  try {
50314
- message2 = _optionalChain([JSON, 'access', _1305 => _1305.parse, 'call', _1306 => _1306(data.details), 'optionalAccess', _1307 => _1307.error, 'optionalAccess', _1308 => _1308.message]);
50337
+ message2 = _optionalChain([JSON, 'access', _1302 => _1302.parse, 'call', _1303 => _1303(data.details), 'optionalAccess', _1304 => _1304.error, 'optionalAccess', _1305 => _1305.message]);
50315
50338
  } catch (e67) {
50316
50339
  message2 = data.details;
50317
50340
  }
@@ -50394,14 +50417,14 @@ function processHistoricalMessagesWithErrors(messages, options = {}) {
50394
50417
  pushStandaloneMessages(processedMessages, msg, messageDataArray);
50395
50418
  return;
50396
50419
  }
50397
- const isUserMessage = _optionalChain([msg, 'access', _1309 => _1309.owner, 'optionalAccess', _1310 => _1310.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _1311 => _1311.owner, 'optionalAccess', _1312 => _1312.type]) === OWNER_TYPE.ADMIN;
50420
+ const isUserMessage = _optionalChain([msg, 'access', _1306 => _1306.owner, 'optionalAccess', _1307 => _1307.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _1308 => _1308.owner, 'optionalAccess', _1309 => _1309.type]) === OWNER_TYPE.ADMIN;
50398
50421
  if (isUserMessage) {
50399
50422
  flushAssistantMessage();
50400
- const userAuthorType = _optionalChain([msg, 'access', _1313 => _1313.owner, 'optionalAccess', _1314 => _1314.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
50423
+ const userAuthorType = _optionalChain([msg, 'access', _1310 => _1310.owner, 'optionalAccess', _1311 => _1311.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
50401
50424
  messageDataArray.forEach((data) => {
50402
50425
  if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
50403
50426
  const rawContext = data.contextItems;
50404
- const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _1315 => _1315.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _1316 => _1316.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
50427
+ const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _1312 => _1312.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _1313 => _1313.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
50405
50428
  processedMessages.push({
50406
50429
  id: msg.id,
50407
50430
  role: "user",
@@ -50425,7 +50448,7 @@ function processHistoricalMessagesWithErrors(messages, options = {}) {
50425
50448
  });
50426
50449
  const nextMsg = messages[index + 1];
50427
50450
  const isLastMessage = index === messages.length - 1;
50428
- const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _1317 => _1317.owner, 'optionalAccess', _1318 => _1318.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _1319 => _1319.owner, 'optionalAccess', _1320 => _1320.type]) === OWNER_TYPE.ADMIN);
50451
+ const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _1314 => _1314.owner, 'optionalAccess', _1315 => _1315.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _1316 => _1316.owner, 'optionalAccess', _1317 => _1317.type]) === OWNER_TYPE.ADMIN);
50429
50452
  if (isLastMessage || nextIsFromUser) {
50430
50453
  flushAssistantMessage();
50431
50454
  }
@@ -50794,7 +50817,7 @@ function useNatsChatAdapter(config, options = {}) {
50794
50817
  }, [active, fetchDialogs, loadDialogsPage]);
50795
50818
  const sendMessage = _react.useCallback.call(void 0,
50796
50819
  async (text, sendOptions) => {
50797
- const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _1321 => _1321.hidden]), () => ( false));
50820
+ const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _1318 => _1318.hidden]), () => ( false));
50798
50821
  setMessages((prev) => [
50799
50822
  ...prev,
50800
50823
  {
@@ -50958,11 +50981,11 @@ function useNatsChatAdapter(config, options = {}) {
50958
50981
  // Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
50959
50982
  // contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
50960
50983
  // matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
50961
- currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1322 => _1322.provider]), () => ( modelProvider)), () => ( null)),
50962
- currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1323 => _1323.modelLabel]), () => ( modelLabel)), () => ( null)),
50963
- currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1324 => _1324.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _1325 => _1325.contextWindowMaxTokens]))), () => ( null)),
50964
- currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1326 => _1326.inputTokensSize]), () => ( null)),
50965
- currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1327 => _1327.outputTokensSize]), () => ( null)),
50984
+ currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1319 => _1319.provider]), () => ( modelProvider)), () => ( null)),
50985
+ currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1320 => _1320.modelLabel]), () => ( modelLabel)), () => ( null)),
50986
+ currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1321 => _1321.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _1322 => _1322.contextWindowMaxTokens]))), () => ( null)),
50987
+ currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1323 => _1323.inputTokensSize]), () => ( null)),
50988
+ currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1324 => _1324.outputTokensSize]), () => ( null)),
50966
50989
  currentCacheHitRatePct: null,
50967
50990
  currentUsageBreakdown: null,
50968
50991
  // Dialog management
@@ -51210,7 +51233,7 @@ function extractIncompleteMessageState(lastMessage) {
51210
51233
  break;
51211
51234
  case "approval_batch": {
51212
51235
  const allDone = !!segment.data.executions && segment.data.toolCalls.every(
51213
- (c) => _optionalChain([segment, 'access', _1328 => _1328.data, 'access', _1329 => _1329.executions, 'optionalAccess', _1330 => _1330[c.toolExecutionRequestId], 'optionalAccess', _1331 => _1331.status]) === "done"
51236
+ (c) => _optionalChain([segment, 'access', _1325 => _1325.data, 'access', _1326 => _1326.executions, 'optionalAccess', _1327 => _1327[c.toolExecutionRequestId], 'optionalAccess', _1328 => _1328.status]) === "done"
51214
51237
  );
51215
51238
  if (segment.status !== "rejected" && !allDone) {
51216
51239
  hasIncompleteState = true;
@@ -51278,20 +51301,20 @@ function mergeHistoryWithRealtime(input) {
51278
51301
  const seqCoverageKnown = realtimeSeenStreamSeq > 0 && historyMaxStreamSeq > 0;
51279
51302
  const historyCoversRealtime = seqCoverageKnown ? historyMaxStreamSeq >= realtimeSeenStreamSeq : null;
51280
51303
  const trailing = processedHistory[processedHistory.length - 1];
51281
- const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _1332 => _1332.role]) === "assistant" ? trailing : null;
51282
- const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _1333 => _1333.content, 'access', _1334 => _1334.find, 'call', _1335 => _1335((s) => s.type === "approval_batch"), 'optionalAccess', _1336 => _1336.data, 'optionalAccess', _1337 => _1337.approvalRequestId]), () => ( null)) : null;
51304
+ const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _1329 => _1329.role]) === "assistant" ? trailing : null;
51305
+ const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _1330 => _1330.content, 'access', _1331 => _1331.find, 'call', _1332 => _1332((s) => s.type === "approval_batch"), 'optionalAccess', _1333 => _1333.data, 'optionalAccess', _1334 => _1334.approvalRequestId]), () => ( null)) : null;
51283
51306
  let processedToUse = processedHistory;
51284
51307
  const pinnedSyntheticIds = /* @__PURE__ */ new Set();
51285
51308
  const droppedSyntheticIds = /* @__PURE__ */ new Set();
51286
51309
  if (historyBatchId) {
51287
51310
  const batchTwins = existingMessages.filter(
51288
51311
  (m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some(
51289
- (s) => s.type === "approval_batch" && _optionalChain([s, 'access', _1338 => _1338.data, 'optionalAccess', _1339 => _1339.approvalRequestId]) === historyBatchId
51312
+ (s) => s.type === "approval_batch" && _optionalChain([s, 'access', _1335 => _1335.data, 'optionalAccess', _1336 => _1336.approvalRequestId]) === historyBatchId
51290
51313
  )
51291
51314
  );
51292
51315
  const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
51293
51316
  if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
51294
- const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _1340 => _1340.content])) ? historyTrailingAssistant.content.length : 0;
51317
+ const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _1337 => _1337.content])) ? historyTrailingAssistant.content.length : 0;
51295
51318
  const realtimeSize = existingWithSameBatch.content.length;
51296
51319
  if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
51297
51320
  processedToUse = processedHistory.slice(0, -1);
@@ -51307,16 +51330,16 @@ function mergeHistoryWithRealtime(input) {
51307
51330
  if (pinnedSyntheticIds.has(m.id)) return true;
51308
51331
  if (droppedSyntheticIds.has(m.id)) return false;
51309
51332
  if (processedIds.has(m.id)) return false;
51310
- if (_optionalChain([rawHistoryIds, 'optionalAccess', _1341 => _1341.has, 'call', _1342 => _1342(m.id)])) return false;
51333
+ if (_optionalChain([rawHistoryIds, 'optionalAccess', _1338 => _1338.has, 'call', _1339 => _1339(m.id)])) return false;
51311
51334
  if (m.role === "user" && m.id.startsWith("optimistic-") && typeof m.content === "string") {
51312
- const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _1343 => _1343.timestamp, 'optionalAccess', _1344 => _1344.getTime, 'call', _1345 => _1345()]), () => ( 0))) <= historyFetchedAt;
51335
+ const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _1340 => _1340.timestamp, 'optionalAccess', _1341 => _1341.getTime, 'call', _1342 => _1342()]), () => ( 0))) <= historyFetchedAt;
51313
51336
  return !(canBeInSnapshot && processedToUse.some((pm) => pm.role === "user" && pm.content === m.content));
51314
51337
  }
51315
51338
  if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
51316
51339
  if (m.role === "assistant" && trailingAssistantText && assistantAnswerText(m.content) === trailingAssistantText) {
51317
51340
  return false;
51318
51341
  }
51319
- const covered = typeof m.streamSeq === "number" && historyMaxStreamSeq > 0 ? historyMaxStreamSeq >= m.streamSeq : historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _1346 => _1346.timestamp, 'optionalAccess', _1347 => _1347.getTime, 'call', _1348 => _1348()]), () => ( 0))) <= historyFetchedAt;
51342
+ const covered = typeof m.streamSeq === "number" && historyMaxStreamSeq > 0 ? historyMaxStreamSeq >= m.streamSeq : historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _1343 => _1343.timestamp, 'optionalAccess', _1344 => _1344.getTime, 'call', _1345 => _1345()]), () => ( 0))) <= historyFetchedAt;
51320
51343
  if (covered) return false;
51321
51344
  }
51322
51345
  return true;
@@ -51371,7 +51394,7 @@ function normalizeHistoricalMessageData(md) {
51371
51394
  function isHistoricalUserTurn(m) {
51372
51395
  return !!m.owner;
51373
51396
  }
51374
- var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _1349 => _1349.type]) === "TEXT" && typeof d.text === "string";
51397
+ var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _1346 => _1346.type]) === "TEXT" && typeof d.text === "string";
51375
51398
  var THINK_MS = 550;
51376
51399
  var TOKEN_MS = 55;
51377
51400
  var USER_MS = 480;
@@ -51594,7 +51617,7 @@ function useChatDialogManager({
51594
51617
  const handleConfirmRestore = _react.useCallback.call(void 0, async () => {
51595
51618
  if (restoreTarget) {
51596
51619
  try {
51597
- await _optionalChain([unarchiveDialog, 'optionalCall', _1350 => _1350(restoreTarget.id)]);
51620
+ await _optionalChain([unarchiveDialog, 'optionalCall', _1347 => _1347(restoreTarget.id)]);
51598
51621
  } catch (err) {
51599
51622
  console.error("[useChatDialogManager] unarchive failed:", err);
51600
51623
  return;
@@ -52012,7 +52035,7 @@ function EmbeddableChatInner({
52012
52035
  }),
52013
52036
  [commandsUrl]
52014
52037
  );
52015
- const userName = _optionalChain([identityUser, 'optionalAccess', _1351 => _1351.firstName, 'optionalAccess', _1352 => _1352.trim, 'call', _1353 => _1353()]) || _optionalChain([identityUser, 'optionalAccess', _1354 => _1354.name, 'optionalAccess', _1355 => _1355.split, 'call', _1356 => _1356(" "), 'access', _1357 => _1357[0], 'optionalAccess', _1358 => _1358.trim, 'call', _1359 => _1359()]) || void 0;
52038
+ const userName = _optionalChain([identityUser, 'optionalAccess', _1348 => _1348.firstName, 'optionalAccess', _1349 => _1349.trim, 'call', _1350 => _1350()]) || _optionalChain([identityUser, 'optionalAccess', _1351 => _1351.name, 'optionalAccess', _1352 => _1352.split, 'call', _1353 => _1353(" "), 'access', _1354 => _1354[0], 'optionalAccess', _1355 => _1355.trim, 'call', _1356 => _1356()]) || void 0;
52016
52039
  const effectiveModes = _react.useMemo.call(void 0, () => {
52017
52040
  if (modes) return modes;
52018
52041
  const guideOptions = tableIdForDocumentType ? { tableIdForDocumentType } : {};
@@ -52021,19 +52044,19 @@ function EmbeddableChatInner({
52021
52044
  const mingoCaps = _react.useMemo.call(void 0, () => {
52022
52045
  if (mingoState) {
52023
52046
  return {
52024
- canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1360 => _1360.canRename]), () => ( false)),
52025
- canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1361 => _1361.canArchive]), () => ( false)),
52026
- fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1362 => _1362.fetchArchivedDialogs]),
52027
- unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1363 => _1363.unarchiveDialog]),
52028
- searchQuery: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1364 => _1364.searchQuery]),
52029
- onSearchChange: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1365 => _1365.onSearchChange])
52047
+ canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1357 => _1357.canRename]), () => ( false)),
52048
+ canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1358 => _1358.canArchive]), () => ( false)),
52049
+ fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1359 => _1359.fetchArchivedDialogs]),
52050
+ unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1360 => _1360.unarchiveDialog]),
52051
+ searchQuery: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1361 => _1361.searchQuery]),
52052
+ onSearchChange: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1362 => _1362.onSearchChange])
52030
52053
  };
52031
52054
  }
52032
52055
  return {
52033
- canRename: !!_optionalChain([effectiveModes, 'access', _1366 => _1366.mingo, 'optionalAccess', _1367 => _1367.renameDialog]),
52034
- canArchive: !!_optionalChain([effectiveModes, 'access', _1368 => _1368.mingo, 'optionalAccess', _1369 => _1369.archiveDialog]),
52035
- fetchArchivedDialogs: _optionalChain([effectiveModes, 'access', _1370 => _1370.mingo, 'optionalAccess', _1371 => _1371.fetchArchivedDialogs]),
52036
- unarchiveDialog: _optionalChain([effectiveModes, 'access', _1372 => _1372.mingo, 'optionalAccess', _1373 => _1373.unarchiveDialog]),
52056
+ canRename: !!_optionalChain([effectiveModes, 'access', _1363 => _1363.mingo, 'optionalAccess', _1364 => _1364.renameDialog]),
52057
+ canArchive: !!_optionalChain([effectiveModes, 'access', _1365 => _1365.mingo, 'optionalAccess', _1366 => _1366.archiveDialog]),
52058
+ fetchArchivedDialogs: _optionalChain([effectiveModes, 'access', _1367 => _1367.mingo, 'optionalAccess', _1368 => _1368.fetchArchivedDialogs]),
52059
+ unarchiveDialog: _optionalChain([effectiveModes, 'access', _1369 => _1369.mingo, 'optionalAccess', _1370 => _1370.unarchiveDialog]),
52037
52060
  searchQuery: void 0,
52038
52061
  onSearchChange: void 0
52039
52062
  };
@@ -52047,7 +52070,7 @@ function EmbeddableChatInner({
52047
52070
  if (controlledActiveMode === void 0) {
52048
52071
  setUncontrolledActiveMode(next);
52049
52072
  }
52050
- _optionalChain([onActiveModeChange, 'optionalCall', _1374 => _1374(next)]);
52073
+ _optionalChain([onActiveModeChange, 'optionalCall', _1371 => _1371(next)]);
52051
52074
  },
52052
52075
  [controlledActiveMode, onActiveModeChange]
52053
52076
  );
@@ -52069,7 +52092,7 @@ function EmbeddableChatInner({
52069
52092
  const effectiveQuickActions = emptyStateUrl ? emptyStateConfig.quickActions : [];
52070
52093
  const effectiveAssistantName = emptyStateConfig.name;
52071
52094
  const effectiveAssistantIcon = emptyStateConfig.icon;
52072
- const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _1375 => _1375.title]) === "string" ? guideWelcome.title : null)));
52095
+ const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _1372 => _1372.title]) === "string" ? guideWelcome.title : null)));
52073
52096
  const {
52074
52097
  messages: rawMessages,
52075
52098
  isLoading: chatLoading,
@@ -52109,7 +52132,7 @@ function EmbeddableChatInner({
52109
52132
  if (activeMode !== "guide" || guidePromptSentRef.current) return;
52110
52133
  guidePromptSentRef.current = true;
52111
52134
  void sendMessage(guidePendingPrompt);
52112
- _optionalChain([onGuidePromptConsumed, 'optionalCall', _1376 => _1376()]);
52135
+ _optionalChain([onGuidePromptConsumed, 'optionalCall', _1373 => _1373()]);
52113
52136
  }, [guidePendingPrompt, activeMode, sendMessage, onGuidePromptConsumed]);
52114
52137
  const {
52115
52138
  attachments: stagedAttachments,
@@ -52120,7 +52143,7 @@ function EmbeddableChatInner({
52120
52143
  clear: clearAttachments
52121
52144
  } = useChatAttachments();
52122
52145
  const { panelRef: galleryPanelRef, modal: galleryModal } = useChatAttachmentImageGallery();
52123
- const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1377 => _1377.maxItems]), () => ( 10));
52146
+ const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1374 => _1374.maxItems]), () => ( 10));
52124
52147
  const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
52125
52148
  const [contextItems, setContextItems] = _react.useState.call(void 0, []);
52126
52149
  const [contextPickerOpen, setContextPickerOpen] = _react.useState.call(void 0, false);
@@ -52137,10 +52160,10 @@ function EmbeddableChatInner({
52137
52160
  }, [activeDialogId, activeMode]);
52138
52161
  const mentionMarkerByType = _react.useMemo.call(void 0, () => {
52139
52162
  const m = /* @__PURE__ */ new Map();
52140
- for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1378 => _1378.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
52163
+ for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1375 => _1375.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
52141
52164
  return m;
52142
- }, [_optionalChain([contextPicker, 'optionalAccess', _1379 => _1379.entityTypes])]);
52143
- const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _1380 => _1380.entityTypes]);
52165
+ }, [_optionalChain([contextPicker, 'optionalAccess', _1376 => _1376.entityTypes])]);
52166
+ const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _1377 => _1377.entityTypes]);
52144
52167
  const resolveContextIcon = _react.useMemo.call(void 0, () => {
52145
52168
  const byType = /* @__PURE__ */ new Map();
52146
52169
  for (const t of _nullishCoalesce(contextEntityTypes, () => ( []))) byType.set(t.type, t.icon);
@@ -52152,7 +52175,7 @@ function EmbeddableChatInner({
52152
52175
  if (mentionActiveRef.current) {
52153
52176
  if (contextItems.some((p) => `${p.type}:${p.id}` === key)) return;
52154
52177
  if (contextItems.length >= contextMaxItems) return;
52155
- _optionalChain([chatInputRef, 'access', _1381 => _1381.current, 'optionalAccess', _1382 => _1382.commitMention, 'call', _1383 => _1383(mentionTokenOf(key, mentionMarkerByType), {
52178
+ _optionalChain([chatInputRef, 'access', _1378 => _1378.current, 'optionalAccess', _1379 => _1379.commitMention, 'call', _1380 => _1380(mentionTokenOf(key, mentionMarkerByType), {
52156
52179
  label: item.label,
52157
52180
  icon: resolveContextIcon(item)
52158
52181
  })]);
@@ -52174,9 +52197,9 @@ function EmbeddableChatInner({
52174
52197
  setContextItems((prev) => prev.filter((p) => `${p.type}:${p.id}` !== key));
52175
52198
  if (mentionKeysRef.current.has(key)) {
52176
52199
  mentionKeysRef.current.delete(key);
52177
- const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _1384 => _1384.current, 'optionalAccess', _1385 => _1385.getValue, 'call', _1386 => _1386()]), () => ( ""));
52200
+ const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _1381 => _1381.current, 'optionalAccess', _1382 => _1382.getValue, 'call', _1383 => _1383()]), () => ( ""));
52178
52201
  const next = cur.replace(`@${mentionTokenOf(key, mentionMarkerByType)}`, "").replace(/\s{2,}/g, " ").trimStart();
52179
- _optionalChain([chatInputRef, 'access', _1387 => _1387.current, 'optionalAccess', _1388 => _1388.setValue, 'call', _1389 => _1389(next)]);
52202
+ _optionalChain([chatInputRef, 'access', _1384 => _1384.current, 'optionalAccess', _1385 => _1385.setValue, 'call', _1386 => _1386(next)]);
52180
52203
  }
52181
52204
  }, [mentionMarkerByType]);
52182
52205
  const handleContextValueChange = _react.useCallback.call(void 0, (value) => {
@@ -52193,7 +52216,7 @@ function EmbeddableChatInner({
52193
52216
  }, []);
52194
52217
  const closeContextPicker = _react.useCallback.call(void 0, () => {
52195
52218
  if (mentionActiveRef.current) {
52196
- _optionalChain([chatInputRef, 'access', _1390 => _1390.current, 'optionalAccess', _1391 => _1391.removeMentionTrigger, 'call', _1392 => _1392()]);
52219
+ _optionalChain([chatInputRef, 'access', _1387 => _1387.current, 'optionalAccess', _1388 => _1388.removeMentionTrigger, 'call', _1389 => _1389()]);
52197
52220
  }
52198
52221
  setContextPickerOpen(false);
52199
52222
  setMentionQuery(null);
@@ -52227,8 +52250,8 @@ function EmbeddableChatInner({
52227
52250
  [effectiveAssistantIcon]
52228
52251
  );
52229
52252
  const timestampCacheRef = _react.useRef.call(void 0, /* @__PURE__ */ new Map());
52230
- const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess', _1393 => _1393.firstName]), _optionalChain([identityUser, 'optionalAccess', _1394 => _1394.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([identityUser, 'optionalAccess', _1395 => _1395.name, 'optionalAccess', _1396 => _1396.trim, 'call', _1397 => _1397()]) || void 0 : void 0;
52231
- const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _1398 => _1398.avatarUrl, 'optionalAccess', _1399 => _1399.trim, 'call', _1400 => _1400()]) || void 0 : void 0;
52253
+ const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess', _1390 => _1390.firstName]), _optionalChain([identityUser, 'optionalAccess', _1391 => _1391.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([identityUser, 'optionalAccess', _1392 => _1392.name, 'optionalAccess', _1393 => _1393.trim, 'call', _1394 => _1394()]) || void 0 : void 0;
52254
+ const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _1395 => _1395.avatarUrl, 'optionalAccess', _1396 => _1396.trim, 'call', _1397 => _1397()]) || void 0 : void 0;
52232
52255
  const messages = _react.useMemo.call(void 0, () => {
52233
52256
  const cache = timestampCacheRef.current;
52234
52257
  const seenIds = /* @__PURE__ */ new Set();
@@ -52406,9 +52429,9 @@ function EmbeddableChatInner({
52406
52429
  const lastAssistantMsg = [...rawMessages].reverse().find((m) => m.role === "assistant");
52407
52430
  const lastSources = _react.useMemo.call(void 0, () => {
52408
52431
  if (chatLoading) return void 0;
52409
- const sources = _optionalChain([lastAssistantMsg, 'optionalAccess', _1401 => _1401.sources]);
52432
+ const sources = _optionalChain([lastAssistantMsg, 'optionalAccess', _1398 => _1398.sources]);
52410
52433
  if (!sources || sources.length === 0) return void 0;
52411
- const content = _optionalChain([lastAssistantMsg, 'optionalAccess', _1402 => _1402.content]) || "";
52434
+ const content = _optionalChain([lastAssistantMsg, 'optionalAccess', _1399 => _1399.content]) || "";
52412
52435
  const citationOrder = [...content.matchAll(/\[(\d+)\]/g)].map(
52413
52436
  (m) => parseInt(m[1], 10)
52414
52437
  );
@@ -52456,7 +52479,7 @@ function EmbeddableChatInner({
52456
52479
  {
52457
52480
  compact: previewMode,
52458
52481
  showBack: hasConversation || guideCanReturnToMingo,
52459
- title: hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _1403 => _1403.title]) || "New Chat" : isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "Current Chats",
52482
+ title: hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _1400 => _1400.title]) || "New Chat" : isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "Current Chats",
52460
52483
  backAriaLabel: hasConversation ? isViewingArchived ? "Back to archive" : "Back" : "Back to Mingo",
52461
52484
  isArchivedView: isViewingArchived,
52462
52485
  onBack: hasConversation ? handleBack : () => handleActiveModeChange("mingo"),
@@ -52584,9 +52607,9 @@ function EmbeddableChatInner({
52584
52607
  subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
52585
52608
  subtitleLoading: emptyStateLoading,
52586
52609
  ...guideWelcome,
52587
- title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _1404 => _1404.title]))),
52588
- icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _1405 => _1405.icon]))),
52589
- quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _1406 => _1406.quickActions]), () => ( guideSuggestedActions)),
52610
+ title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _1401 => _1401.title]))),
52611
+ icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _1402 => _1402.icon]))),
52612
+ quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _1403 => _1403.quickActions]), () => ( guideSuggestedActions)),
52590
52613
  onQuickAction: (action) => {
52591
52614
  setQuickActionPreview(null);
52592
52615
  handleSend(_nullishCoalesce(action.prompt, () => ( action.label)));
@@ -53738,4 +53761,4 @@ function EmbeddableChatInner({
53738
53761
 
53739
53762
 
53740
53763
  exports.Label = Label; exports.AllowedDomainsInput = AllowedDomainsInput; exports.HiddenTagsPopup = HiddenTagsPopup; exports.tagVariants = tagVariants; exports.Tag = Tag; exports.Autocomplete = Autocomplete; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.CardHorizontal = CardHorizontal; exports.CheckboxBlock = CheckboxBlock; exports.CheckboxWithDescription = CheckboxWithDescription; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.DatePicker = DatePicker; exports.DatePickerInput = DatePickerInput; exports.DatePickerInputSimple = DatePickerInputSimple; exports.DateFilterPanel = DateFilterPanel; exports.DateFilterMenu = DateFilterMenu; exports.DurationInput = DurationInput; exports.HoneypotField = HoneypotField; exports.ProgressBar = ProgressBar; exports.InfoCard = InfoCard; exports.InfoRow = InfoRow; exports.formatDate = formatDate; exports.formatNumber = formatNumber; exports.formatPrice = formatPrice; exports.formatBytes = formatBytes; exports.formatBytesShort = formatBytesShort; exports.formatFileSize = formatFileSize; exports.formatLargeNumber = formatLargeNumber; exports.formatAbbreviatedNumber = formatAbbreviatedNumber; exports.getFirstLastInitials = getFirstLastInitials; exports.nameInitials = nameInitials; exports.formatDurationMMSS = formatDurationMMSS; exports.formatDurationCompact = formatDurationCompact; exports.formatTimeWithTimezone = formatTimeWithTimezone; exports.formatDurationFromRange = formatDurationFromRange; exports.formatDateUTC = formatDateUTC; exports.formatEntryMonthUTC = formatEntryMonthUTC; exports.formatLegalDate = formatLegalDate; exports.formatCurrency = formatCurrency; exports.formatPercent = formatPercent; exports.formatWholeDollars = formatWholeDollars; exports.formatCompactMetric = formatCompactMetric; exports.getTrendColors = getTrendColors; exports.formatDateRange = formatDateRange; exports.formatDateTimeAt = formatDateTimeAt; exports.formatDurationFromMs = formatDurationFromMs; exports.formatDuration = formatDuration; exports.formatUnderscoreText = formatUnderscoreText; exports.stripHtml = stripHtml; exports.formatClassification = formatClassification; exports.formatPricingModel = formatPricingModel; exports.formatBioText = formatBioText; exports.SquareAvatar = SquareAvatar; exports.AssigneeDropdown = AssigneeDropdown; exports.ActionsMenu = ActionsMenu; exports.ActionsMenuDropdown = ActionsMenuDropdown; exports.ColorSwatch = ColorSwatch; exports.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.pickReadableTextColor = pickReadableTextColor; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.getPlatformAccentColor = getPlatformAccentColor; exports.getCurrentPlatform = getCurrentPlatform; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb2; exports.rgbToHex = rgbToHex; exports.deriveHoverColor = deriveHoverColor; exports.deriveActiveColor = deriveActiveColor; exports.resolveTicketStatus = resolveTicketStatus; exports.getTicketStatusConfig = getTicketStatusConfig; exports.getTicketStatusTag = getTicketStatusTag; exports.kindToCanonicalStatus = kindToCanonicalStatus; exports.usesCanonicalStatusStyle = usesCanonicalStatusStyle; exports.resolveStatusTagProps = resolveStatusTagProps; exports.TicketStatusTag = TicketStatusTag; exports.InfoSection = InfoSection; exports.InputTrigger = InputTrigger; exports.InteractiveCard = InteractiveCard; exports.MediaTypeSelector = MediaTypeSelector; exports.noDataIconClasses = noDataIconClasses; exports.noDataActionsVariants = noDataActionsVariants; exports.NoDataMessage = NoDataMessage; exports.NoDataAction = NoDataAction; exports.NoDataActions = NoDataActions; exports.NoData = NoData; exports.PageLoader = PageLoader; exports.CompactPageLoader = CompactPageLoader; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.RadioGroupBlock = RadioGroupBlock; exports.useScrollFade = useScrollFade; exports.ScrollFadeOverlay = ScrollFadeOverlay; exports.Switch = Switch; exports.TagSelectDropdown = TagSelectDropdown; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.TagsInput = TagsInput; exports.TagsManager = TagsManager; exports.Textarea = Textarea; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.AspectRatio = AspectRatio; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.ImageGalleryModal = ImageGalleryModal; exports.Modal = Modal2; exports.ModalContent = ModalContent2; exports.ModalHeader = ModalHeader2; exports.ModalTitle = ModalTitle2; exports.ModalFooter = ModalFooter2; exports.Modal2 = Modal; exports.ModalContent2 = ModalContent; exports.ModalHeader2 = ModalHeader; exports.ModalTitle2 = ModalTitle; exports.ModalFooter2 = ModalFooter; exports.Separator = Separator2; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetPortal = SheetPortal; exports.SheetOverlay = SheetOverlay; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.OVERLAY_BACKDROP_CLASS = OVERLAY_BACKDROP_CLASS; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerClose = DrawerClose; exports.DrawerPortal = DrawerPortal; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DrawerBody = DrawerBody; exports.DrawerFooter = DrawerFooter; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.MenubarMenu = MenubarMenu; exports.MenubarGroup = MenubarGroup; exports.MenubarPortal = MenubarPortal; exports.MenubarSub = MenubarSub; exports.MenubarRadioGroup = MenubarRadioGroup; exports.Menubar = Menubar; exports.MenubarTrigger = MenubarTrigger; exports.MenubarSubTrigger = MenubarSubTrigger; exports.MenubarSubContent = MenubarSubContent; exports.MenubarContent = MenubarContent; exports.MenubarItem = MenubarItem; exports.MenubarCheckboxItem = MenubarCheckboxItem; exports.MenubarRadioItem = MenubarRadioItem; exports.MenubarLabel = MenubarLabel; exports.MenubarSeparator = MenubarSeparator; exports.MenubarShortcut = MenubarShortcut; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuViewport = NavigationMenuViewport; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.CrossfadePanels = CrossfadePanels; exports.TabContent = TabContent; exports.TabNavigation = TabNavigation; exports.getTabById = getTabById; exports.getTabComponent = getTabComponent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AIGeneratedBadge = AIGeneratedBadge; exports.FadePreview = FadePreview; exports.Progress = Progress; exports.VideoPlayBadge = VideoPlayBadge; exports.VideoUnmuteGlyph = VideoUnmuteGlyph; exports.fetchPriorityProp = fetchPriorityProp; exports.extractYouTubeId = extractYouTubeId; exports.Video = Video2; exports.MediaCarousel = MediaCarousel; exports.EMBED_SIZES = EMBED_SIZES; exports.EmbedContainer = EmbedContainer; exports.YouTubeContainer = YouTubeContainer; exports.TwitterContainer = TwitterContainer; exports.RedditContainer = RedditContainer; exports.LinkPreviewContainer = LinkPreviewContainer; exports.LinkedInContainer = LinkedInContainer; exports.RichMarkdownRuntimeProvider = RichMarkdownRuntimeProvider; exports.useRichMarkdownRuntime = useRichMarkdownRuntime; exports.RedditEmbedClient = RedditEmbedClient; exports.TwitterEmbedClient = TwitterEmbedClient; exports.LinkedInEmbedClient = LinkedInEmbedClient; exports.OGLinkErrorBoundary = OGLinkErrorBoundary; exports.OGLinkPreview = OGLinkPreview; exports.toGoogleSheetsEmbedUrl = toGoogleSheetsEmbedUrl; exports.toGoogleSheetsOriginalUrl = toGoogleSheetsOriginalUrl; exports.toFigmaEmbedUrl = toFigmaEmbedUrl; exports.isFigmaSlidesUrl = isFigmaSlidesUrl; exports.toFigmaOriginalUrl = toFigmaOriginalUrl; exports.EmbedIframe = EmbedIframe; exports.FigmaEmbed = FigmaEmbed; exports.MarkdownImage = MarkdownImage; exports.RichMarkdownRenderer = RichMarkdownRenderer; exports.ReleaseChangelogSection = ReleaseChangelogSection; exports.StackedRowsPanel = StackedRowsPanel; exports.SlackChannelChip = SlackChannelChip; exports.statusBadgeVariants = statusBadgeVariants; exports.genBadgeBgOpacity = genBadgeBgOpacity; exports.generationTierFromLabel = generationTierFromLabel; exports.StatusBadge = StatusBadge; exports.StatusIndicator = StatusIndicator; exports.HoverDropdown = HoverDropdown; exports.ExpandChevron = ExpandChevron; exports.useCollapsible = useCollapsible; exports.getCommandText = getCommandText; exports.ArgRow = ArgRow; exports.ResultBlock = ResultBlock; exports.CommandBlock = CommandBlock; exports.ApprovalStatusTag = ApprovalStatusTag; exports.ApprovalBatchMessage = ApprovalBatchMessage; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.ThinkingDisplay = ThinkingDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.MspOrganizationCardSkeleton = MspOrganizationCardSkeleton; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.ChatTypingIndicator = ChatTypingIndicator; exports.MingoOnboardingCard = MingoOnboardingCard; exports.ICON_REGISTRY = ICON_REGISTRY; exports.normalizeIconKey = normalizeIconKey; exports.getIconComponent = getIconComponent; exports.getDynamicIcon = getDynamicIcon; exports.ICON_ALIASES = ICON_ALIASES; exports.resolveIcon = resolveIcon; exports.ICON_OPTIONS = ICON_OPTIONS; exports.SlashCommandSuggestions = SlashCommandSuggestions; exports.ChatInput = ChatInput; exports.formatTicketRelativeTime = formatTicketRelativeTime; exports.formatTicketFullTimestamp = formatTicketFullTimestamp; exports.formatRelativeTime = formatRelativeTime; exports.formatAbsoluteDate = formatAbsoluteDate; exports.formatDateTime = formatDateTime; exports.getDetailedTimeDifference = getDetailedTimeDifference; exports.isToday = isToday; exports.isWithinMinutes = isWithinMinutes; exports.createUTCTimestamp = createUTCTimestamp; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.BlockCard = BlockCard; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_CLASS = CONTEXT_BACK_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsSkeleton = ContextItemsSkeleton; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.ChatMessageSkeleton = ChatMessageSkeleton; exports.ChatMessageListSkeleton = ChatMessageListSkeleton; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.ChatMessageList = ChatMessageList; exports.getProxiedImageUrl = getProxiedImageUrl; exports.urlPathLooksLikeSvg = urlPathLooksLikeSvg; exports.shouldProxyImage = shouldProxyImage; exports.generateImageSizes = generateImageSizes; exports.useProxiedImageUrl = useProxiedImageUrl; exports.ChatMessageRow = ChatMessageRow; exports.ChatMessageRowSkeleton = ChatMessageRowSkeleton; exports.ChatQuickAction = ChatQuickAction; exports.FAE_AVATAR_DATA_URI = FAE_AVATAR_DATA_URI; exports.AgentMark = AgentMark; exports.EntityIcon = EntityIcon; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipSkeleton = QuickActionChipSkeleton; exports.QuickActionChipButton = QuickActionChipButton; exports.ChatQuickActionRow = ChatQuickActionRow; exports.ChatQuickActionRowSkeleton = ChatQuickActionRowSkeleton; exports.QuickActionMarquee = QuickActionMarquee; exports.ChatTicketItem = ChatTicketItem; exports.ChatTicketList = ChatTicketList; exports.MingoOnboardingCardSkeleton = MingoOnboardingCardSkeleton; exports.MingoOnboardingListSkeleton = MingoOnboardingListSkeleton; exports.MingoChatHistorySkeleton = MingoChatHistorySkeleton; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.GuideModeBanner = GuideModeBanner; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatHeaderIconButton = ChatHeaderIconButton; exports.COMPACT_HEADER_BUTTON = COMPACT_HEADER_BUTTON; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ModelDisplaySkeleton = ModelDisplaySkeleton; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.DialogListItem = DialogListItem; exports.ChatSidebar = ChatSidebar; exports.isCrossOriginUrl = isCrossOriginUrl; exports.decideNewTab = decideNewTab; exports.computeIsNewTab = computeIsNewTab; exports.newTabAnchorAttrs = newTabAnchorAttrs; exports.buildAnchorProps = buildAnchorProps; exports.NEW_TAB_FEATURES = NEW_TAB_FEATURES; exports.isModifierClick = isModifierClick; exports.stripSameOriginToPath = stripSameOriginToPath; exports.resolveExternalNavigation = resolveExternalNavigation; exports.executeNavigation = executeNavigation; exports.executeNavigationImperative = executeNavigationImperative; exports.handleChatNavClick = handleChatNavClick; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.EMPTY_AUTHOR_PLACEHOLDER = EMPTY_AUTHOR_PLACEHOLDER; exports.EntityMetadataValueCell = EntityMetadataValueCell; exports.EntityMetadataAuthorCell = EntityMetadataAuthorCell; exports.EntityAuthorCard = EntityAuthorCard; exports.BlogImagePlaceholder = BlogImagePlaceholder; exports.useCoverImageFallback = useCoverImageFallback; exports.hideOnError = hideOnError; exports.EntityPortraitCard = EntityPortraitCard; exports.FlamingoLogo = FlamingoLogo2; exports.PlatformBadge = PlatformBadge; exports.AdminContentCard = AdminContentCard; exports.getProxiedImageUrl2 = getProxiedImageUrl2; exports.WhatIShippedCard = WhatIShippedCard; exports.WhatIShippedCardSkeleton = WhatIShippedCardSkeleton; exports.MUX_STREAM_ORIGIN = MUX_STREAM_ORIGIN; exports.MUX_IMAGE_ORIGIN = MUX_IMAGE_ORIGIN; exports.useVideoOriginPreconnect = useVideoOriginPreconnect; exports.useVideoWarmup = useVideoWarmup; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_TO_CSS_ASPECT = RATIO_TO_CSS_ASPECT; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.DEFAULT_VIDEO_BITES_TITLE = DEFAULT_VIDEO_BITES_TITLE; exports.toStripProfile = toStripProfile; exports.sortBitesByCreatedAtDesc = sortBitesByCreatedAtDesc; exports.PAGE_HEADING_CLASS = PAGE_HEADING_CLASS; exports.SECTION_HEADING_CLASS = SECTION_HEADING_CLASS; exports.PageHeading = PageHeading; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.SquareAvatar2 = SquareAvatar2; exports.UserDisplay = UserDisplay; exports.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.ProductReleaseCard = ProductReleaseCard; exports.ProductReleaseCardSkeleton = ProductReleaseCardSkeleton; exports.formatReleaseDate = formatReleaseDate; exports.formatDateShort = formatDateShort; exports.formatDateSlashUTC = formatDateSlashUTC; exports.resolveReleaseCover = resolveReleaseCover; exports.releaseTypeToBadgeColor = releaseTypeToBadgeColor; exports.defaultBuildProductReleaseCardProps = defaultBuildProductReleaseCardProps; exports.buildProductReleaseCardProps = buildProductReleaseCardProps; exports.useEntityCardLink = useEntityCardLink; exports.COMPACT_CARD_OUTER = COMPACT_CARD_OUTER; exports.COMPACT_CARD_OUTER_STATIC = COMPACT_CARD_OUTER_STATIC; exports.COMPACT_CARD_SKELETON_OUTER = COMPACT_CARD_SKELETON_OUTER; exports.COMPACT_CARD_IMAGE_SLOT = COMPACT_CARD_IMAGE_SLOT; exports.COMPACT_CARD_SKELETON_IMAGE_SLOT = COMPACT_CARD_SKELETON_IMAGE_SLOT; exports.COMPACT_CARD_ICON_SLOT = COMPACT_CARD_ICON_SLOT; exports.COMPACT_CARD_TEXT_COL = COMPACT_CARD_TEXT_COL; exports.COMPACT_CARD_TITLE_ROW = COMPACT_CARD_TITLE_ROW; exports.COMPACT_CARD_META_ROW_BOX = COMPACT_CARD_META_ROW_BOX; exports.COMPACT_CARD_TITLE = COMPACT_CARD_TITLE; exports.COMPACT_CARD_SUBTITLE = COMPACT_CARD_SUBTITLE; exports.COMPACT_CARD_SUMMARY = COMPACT_CARD_SUMMARY; exports.COMPACT_CARD_META_ROW = COMPACT_CARD_META_ROW; exports.COMPACT_CARD_ROW_FILLER = COMPACT_CARD_ROW_FILLER; exports.safeHref = safeHref; exports.BlogCardSkeleton = BlogCardSkeleton; exports.BlogCard = BlogCard; exports.CaseStudyCardSkeleton = CaseStudyCardSkeleton; exports.CaseStudyCard = CaseStudyCard; exports.CustomerInterviewCardSkeleton = CustomerInterviewCardSkeleton; exports.CustomerInterviewCard = CustomerInterviewCard; exports.formatInvestorUpdatePeriod = formatInvestorUpdatePeriod; exports.InvestorUpdateCardSkeleton = InvestorUpdateCardSkeleton; exports.InvestorUpdateCard = InvestorUpdateCard; exports.OnboardingGuideCardSkeleton = OnboardingGuideCardSkeleton; exports.OnboardingGuideCard = OnboardingGuideCard; exports.RoadmapVoteButton = RoadmapVoteButton; exports.getStatusColorScheme = getStatusColorScheme; exports.CUSTOM_ITEM_ID = CUSTOM_ITEM_ID; exports.getTaskTypeLabel = getTaskTypeLabel; exports.TaskTypeIcon = TaskTypeIcon; exports.RoadmapCardSkeleton = RoadmapCardSkeleton; exports.RoadmapCard = RoadmapCard; exports.GitHubActivityCard = GitHubActivityCard; exports.GitHubActivityCardSkeleton = GitHubActivityCardSkeleton; exports.SlackMessageCard = SlackMessageCard; exports.SlackMessageCardSkeleton = SlackMessageCardSkeleton; exports.HubspotTicketCard = HubspotTicketCard; exports.HubspotTicketCardSkeleton = HubspotTicketCardSkeleton; exports.DataRoomDocCard = DataRoomDocCard; exports.DataRoomDocCardSkeleton = DataRoomDocCardSkeleton; exports.programItemToStripProfile = programItemToStripProfile; exports.transformEventToProgram = transformEventToProgram; exports.transformPodcastToProgram = transformPodcastToProgram; exports.transformWebinarToProgram = transformWebinarToProgram; exports.ProgramCardSkeleton = ProgramCardSkeleton; exports.ProgramCard = ProgramCard; exports.CampaignCardAdmin = CampaignCardAdmin; exports.CampaignCardAdminSkeleton = CampaignCardAdminSkeleton; exports.GenericEntityCard = GenericEntityCard; exports.GenericEntityCardSkeleton = GenericEntityCardSkeleton; exports.extractItems = extractItems; exports.extractItemId = extractItemId; exports.useChatCardItem = useChatCardItem; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.CHAT_TYPE = CHAT_TYPE; exports.OWNER_TYPE = OWNER_TYPE; exports.MESSAGE_ROLE = MESSAGE_ROLE; exports.ASSISTANT_TYPE = ASSISTANT_TYPE; exports.AUTHOR_TYPE = AUTHOR_TYPE; exports.APPROVAL_STATUS = APPROVAL_STATUS; exports.APPROVAL_BLOCK_VARIANT = APPROVAL_BLOCK_VARIANT; exports.CONNECTION_STATUS = CONNECTION_STATUS; exports.buildChatRefKey = buildChatRefKey; exports.isStructuredContent = isStructuredContent; exports.normalizeContent = normalizeContent2; exports.NETWORK_CONFIG = NETWORK_CONFIG; exports.useChunkCatchup = useChunkCatchup; exports.useScriptedStream = useScriptedStream; exports.useJetStreamDialogSubscription = useJetStreamDialogSubscription; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; exports.parseChunkToAction = parseChunkToAction; exports.isControlChunk = isControlChunk; exports.isErrorChunk = isErrorChunk; exports.isMetadataChunk = isMetadataChunk; exports.extractTextFromChunk = extractTextFromChunk; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.useRealtimeChunkProcessor = useRealtimeChunkProcessor; exports.fetchSlashCommands = fetchSlashCommands; exports.useSlashCommands = useSlashCommands; exports.useSlashCommandRegistry = useSlashCommandRegistry; exports.fetchEmptyStateConfig = fetchEmptyStateConfig; exports.useEmptyStateConfig = useEmptyStateConfig; exports.useChatAttachments = useChatAttachments; exports.useChatAttachmentImageGallery = useChatAttachmentImageGallery; exports.ChatIdentityProvider = ChatIdentityProvider; exports.useChatIdentity = useChatIdentity; exports.useCloseOnNavigation = useCloseOnNavigation; exports.useSSE = useSSE; exports.useChat = useChat; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.flattenAssistantContent = flattenAssistantContent; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.useSseChatAdapter = useSseChatAdapter; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.mapProcessedToUnified = mapProcessedToUnified; exports.historicalToUnified = historicalToUnified; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useUnifiedChat = useUnifiedChat; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.SYNTHETIC_REALTIME_ID_PREFIXES = SYNTHETIC_REALTIME_ID_PREFIXES; exports.flattenMessagePagesChronological = flattenMessagePagesChronological; exports.maxPersistedStreamSeq = maxPersistedStreamSeq; exports.mergeHistoryWithRealtime = mergeHistoryWithRealtime; exports.computeHistoryPrepend = computeHistoryPrepend; exports.CHIP_ACTION_BUTTON_CLASS = CHIP_ACTION_BUTTON_CLASS; exports.chatChipClass = chatChipClass; exports.clickupTaskUrl = clickupTaskUrl; exports.normalizeHistoricalMessageData = normalizeHistoricalMessageData; exports.isHistoricalUserTurn = isHistoricalUserTurn; exports.buildStreamFrames = buildStreamFrames; exports.EmbeddableChat = EmbeddableChat; exports.FilterCheckboxItem = FilterCheckboxItem; exports.TagKeyValueFilter = TagKeyValueFilter; exports.FilterModal = FilterModal; exports.PageActions = PageActions; exports.usePageActionsBottomPadding = usePageActionsBottomPadding; exports.PageContainer = PageContainer; exports.ListPageContainer = ListPageContainer; exports.DetailPageContainer = DetailPageContainer; exports.FormPageContainer = FormPageContainer; exports.ContentPageContainer = ContentPageContainer; exports.ListPageLayout = ListPageLayout; exports.EntityImage = EntityImage; exports.TITLE_BLOCK_MIN_HEIGHT = TITLE_BLOCK_MIN_HEIGHT; exports.TitleBlock = TitleBlock; exports.PageLayout = PageLayout; exports.PageShell = PageShell; exports.ArticleDetailLayout = ArticleDetailLayout; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.ToggleGroup = ToggleGroup; exports.ToggleGroupItem = ToggleGroupItem; exports.delay = delay; exports.generateRandomString = generateRandomString; exports.truncateString = truncateString; exports.serializeJsonLd = serializeJsonLd; exports.deepClone = deepClone; exports.getSlackCommunityJoinUrl = getSlackCommunityJoinUrl; exports.SEO_TITLE_MAX_LENGTH = SEO_TITLE_MAX_LENGTH; exports.SEO_DESCRIPTION_MAX_LENGTH = SEO_DESCRIPTION_MAX_LENGTH; exports.BRAND_MARK_SVGS = BRAND_MARK_SVGS; exports.brandMarkDataUri = brandMarkDataUri; exports.OS_PLATFORMS = OS_PLATFORMS; exports.DEFAULT_OS_PLATFORM = DEFAULT_OS_PLATFORM; exports.isValidEmailDomain = isValidEmailDomain; exports.validateEmailDomain = validateEmailDomain; exports.validateEmailDomainList = validateEmailDomainList; exports.cleanEmailDomain = cleanEmailDomain; exports.getConfidenceColorClass = getConfidenceColorClass; exports.getConfidenceLevel = getConfidenceLevel; exports.getConfidenceBorderClass = getConfidenceBorderClass; exports.getConfidenceTextClass = getConfidenceTextClass; exports.getConfidenceBgClass = getConfidenceBgClass; exports.getConfidenceLabel = getConfidenceLabel; exports.DEV_SECTION_PARAM_KEYS = DEV_SECTION_PARAM_KEYS; exports.devSectionAnchorId = devSectionAnchorId; exports.normalizeToolType = normalizeToolType; exports.normalizeToolTypeWithFallback = normalizeToolTypeWithFallback; exports.toToolLabel = toToolLabel; exports.isValidToolType = isValidToolType; exports.getToolTypeAliases = getToolTypeAliases; exports.getToolLabel = getToolLabel; exports.ShellTypeValues = ShellTypeValues; exports.SHELL_TYPES = SHELL_TYPES; exports.shellLabels = shellLabels; exports.getShellLabel = getShellLabel; exports.getShellIcon = getShellIcon; exports.OSTypeValues = OSTypeValues; exports.OS_TYPES = OS_TYPES; exports.osLabels = osLabels; exports.normalizeOSType = normalizeOSType; exports.getOSLabel = getOSLabel; exports.getOSIcon = getOSIcon; exports.getOSTypeDefinition = getOSTypeDefinition; exports.getOSPlatformId = getOSPlatformId; exports.isOSPlatform = isOSPlatform; exports.getCountryPhoneData = getCountryPhoneData; exports.getCountryByCode = getCountryByCode; exports.validatePhoneNumber = validatePhoneNumber; exports.formatPhoneE164 = formatPhoneE164; exports.GENERIC_EMAIL_DOMAINS = GENERIC_EMAIL_DOMAINS; exports.extractDomainFromEmail = extractDomainFromEmail; exports.normalizeDomain = normalizeDomain; exports.isGenericDomain = isGenericDomain; exports.hasGenericEmailDomain = hasGenericEmailDomain; exports.isGenericWebsiteDomain = isGenericWebsiteDomain; exports.announcementDismissCookieName = announcementDismissCookieName; exports.isDismissedCookieValue = isDismissedCookieValue; exports.dismissAnnouncement = dismissAnnouncement; exports.isAnnouncementDismissed = isAnnouncementDismissed; exports.clearAnnouncementDismissals = clearAnnouncementDismissals; exports.clearLegacyAnnouncementCache = clearLegacyAnnouncementCache; exports.readLeadingDecisionFrame = readLeadingDecisionFrame; exports.ANNOUNCEMENT_CTA_DEFAULTS = ANNOUNCEMENT_CTA_DEFAULTS; exports.AVAILABLE_SVG_ICONS = AVAILABLE_SVG_ICONS; exports.releaseTypeOptions = releaseTypeOptions; exports.releaseStatusOptions = releaseStatusOptions; exports.changelogLabels = changelogLabels; exports.SEMVER_REGEX = SEMVER_REGEX; exports.TASK_TYPE_LABELS = TASK_TYPE_LABELS; exports.TASK_TYPE_TEXT_COLORS = TASK_TYPE_TEXT_COLORS; exports.TMCG_ROLES = TMCG_ROLES; exports.TMCG_ROLE_DISPLAY_NAMES = TMCG_ROLE_DISPLAY_NAMES; exports.TMCG_SOCIAL_PLATFORMS = TMCG_SOCIAL_PLATFORMS; exports.ROADMAP_STATUS_OPTIONS = ROADMAP_STATUS_OPTIONS; exports.DELIVERY_TASK_TYPE_OPTIONS = DELIVERY_TASK_TYPE_OPTIONS; exports.TICKET_STATUS_OPTIONS = TICKET_STATUS_OPTIONS; exports.OPENFRAME_DEV_SECTIONS = OPENFRAME_DEV_SECTIONS; exports.canonicalContentRefType = canonicalContentRefType; exports.buildListUrl = buildListUrl; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.CONTENT_REF_GROUPS = CONTENT_REF_GROUPS; exports.getContentRefLabel = getContentRefLabel; exports.getContentRefLabelOrTitleCase = getContentRefLabelOrTitleCase; exports.orderContentRefTypes = orderContentRefTypes; exports.buildSuggestionUrl = buildSuggestionUrl; exports.DEFAULT_CONTENT_SUFFIXES = DEFAULT_CONTENT_SUFFIXES; exports.makeComposeContentUrl = makeComposeContentUrl; exports.buildDefaultHref = buildDefaultHref; exports.resolveContentHref = resolveContentHref; exports.DEFAULT_FOLDER_INDEX_FILE = DEFAULT_FOLDER_INDEX_FILE; exports.stripFolderIndexFromPath = stripFolderIndexFromPath; exports.findDocNodeByPath = findDocNodeByPath; exports.getDocAncestorNodeIds = getDocAncestorNodeIds; exports.resolveContentFetchPath = resolveContentFetchPath; exports.getInitialExpandedNodeIds = getInitialExpandedNodeIds; exports.getDocSourceDefaultPath = getDocSourceDefaultPath; exports.toDocSlug = toDocSlug; exports.pathToNodeId = pathToNodeId; exports.normalizeDocPath = normalizeDocPath; exports.formatDocName = formatDocName; exports.sortTreeChildren = sortTreeChildren; exports.buildDocumentTree = buildDocumentTree; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.extractSections = extractSections; exports.SECTION_HERO_ICON_CLASS = SECTION_HERO_ICON_CLASS; exports.BenefitCard = BenefitCard; exports.BenefitCardGrid = BenefitCardGrid; exports.BrandAssociationCard = BrandAssociationCard; exports.BrandAssociationGrid = BrandAssociationGrid; exports.BulletList = BulletList; exports.ChevronButton = ChevronButton; exports.CircularProgress = CircularProgress; exports.CheckIcon = CheckIcon2; exports.XIcon = XIcon2; exports.MinusIcon = MinusIcon; exports.CheckCircleIcon = CheckCircleIcon2; exports.XCircleIcon = XCircleIcon; exports.FloatingTooltip = FloatingTooltip; exports.DashboardInfoCard = DashboardInfoCard; exports.InfoCardRow = InfoCardRow; exports.OSTypeBadge = OSTypeBadge; exports.OSTypeIcon = OSTypeIcon; exports.OSTypeLabel = OSTypeLabel; exports.DeviceCard = DeviceCard; exports.DeviceCardCompact = DeviceCardCompact; exports.FeatureCardGrid = FeatureCardGrid; exports.FeatureList = FeatureList; exports.TruncateText = TruncateText; exports.HighlightCard = HighlightCard; exports.HighlightCardGrid = HighlightCardGrid; exports.IconsBlock = IconsBlock; exports.DropdownButton = DropdownButton; exports.MoreActionsMenu = MoreActionsMenu; exports.OrganizationCard = OrganizationCard; exports.ServiceCard = ServiceCard; exports.Slider = Slider; exports.TabSelector = TabSelector; exports.TitleContentBlock = TitleContentBlock; exports.ErrorState = ErrorState; exports.PageError = PageError; exports.LoadError = LoadError; exports.NotFoundError = NotFoundError; exports.ContentLoader = ContentLoader; exports.CardLoader = CardLoader; exports.FormLoader = FormLoader; exports.DetailLoader = DetailLoader; exports.ListLoader = ListLoader; exports.Pagination = Pagination; exports.PaginationContent = PaginationContent; exports.PaginationItem = PaginationItem; exports.PaginationLink = PaginationLink; exports.PaginationEllipsis = PaginationEllipsis; exports.PaginationPrevious = PaginationPrevious; exports.PaginationNext = PaginationNext; exports.init_pagination = init_pagination; exports.CursorPagination = CursorPagination; exports.CursorPaginationSimple = CursorPaginationSimple; exports.TableEmptyState = TableEmptyState; exports.DynamicThemeProvider = DynamicThemeProvider; exports.useDynamicTheme = useDynamicTheme; exports.THEME_STORAGE_KEY = THEME_STORAGE_KEY; exports.THEME_ATTRIBUTE = THEME_ATTRIBUTE; exports.DEFAULT_THEME = DEFAULT_THEME; exports.ThemeProvider = ThemeProvider; exports.useTheme = useTheme; exports.useThemeToggle = useThemeToggle; exports.ArrayEntryManager = ArrayEntryManager; exports.AuthBenefitsPanel = AuthBenefitsPanel; exports.OpenFrameWordmark = OpenFrameWordmark; exports.PoweredByFlamingo = PoweredByFlamingo; exports.AuthShell = AuthShell; exports.BackToLoginLink = BackToLoginLink; exports.PasswordInput = PasswordInput; exports.PROVIDER_META = PROVIDER_META; exports.SsoProviderButtons = SsoProviderButtons; exports.CompleteAccountForm = CompleteAccountForm; exports.TermsAgreementLabel = TermsAgreementLabel; exports.CreateOrganizationForm = CreateOrganizationForm; exports.InviteLinkInvalidModal = InviteLinkInvalidModal; exports.LoginForm = LoginForm; exports.OpenFrameSsoLoginForm = OpenFrameSsoLoginForm; exports.OpenFrameSsoSignUpForm = OpenFrameSsoSignUpForm; exports.PasswordResetForm = PasswordResetForm; exports.SsoAuthShell = SsoAuthShell; exports.ProviderButton = ProviderButton; exports.AuthProvidersList = AuthProvidersList; exports.ChangelogManager = ChangelogManager; exports.ChangelogSectionsManager = ChangelogSectionsManager; exports.ClickUpTasksManager = ClickUpTasksManager; exports.CommandBox = CommandBox; exports.TAG_BADGE_CLASS = TAG_BADGE_CLASS; exports.EntityTagBadges = EntityTagBadges; exports.ErrorBoundary = ErrorBoundary; exports.SectionSelector = SectionSelector; exports.FigmaPrototypeViewer = FigmaPrototypeViewer; exports.FiltersDropdown = FiltersDropdown; exports.useFiltersDropdown = useFiltersDropdown; exports.GitHubReleasesManager = GitHubReleasesManager; exports.KnowledgeBaseLinksManager = KnowledgeBaseLinksManager; exports.LoadingProvider = LoadingProvider; exports.useLoading = useLoading; exports.MediaGalleryManager = MediaGalleryManager; exports.MoreAboutButton = MoreAboutButton; exports.OSTypeBadgeGroup = OSTypeBadgeGroup; exports.ParallaxImageShowcase = ParallaxImageShowcase; exports.PathsDisplay = PathsDisplay; exports.OPENFRAME_PATHS = OPENFRAME_PATHS; exports.getOpenFramePaths = getOpenFramePaths; exports.OPENFRAME_DOCTOR_COMMANDS = OPENFRAME_DOCTOR_COMMANDS; exports.getOpenFrameDoctorCommand = getOpenFrameDoctorCommand; exports.PlatformFilterComponent = PlatformFilterComponent; exports.PushButtonSelector = PushButtonSelector; exports.ReleaseMediaManager = ReleaseMediaManager; exports.SelectButton = SelectButton; exports.SEOEditorPreview = SEOEditorPreview; exports.SocialLinksManager = SocialLinksManager; exports.StartWithOpenFrameButton = StartWithOpenFrameButton; exports.StatusFilterComponent = StatusFilterComponent; exports.TagsSelector = TagsSelector; exports.WarningBlock = WarningBlock; exports.VideoBitesDisplay = VideoBitesDisplay; exports.getCaptionsUrl = getCaptionsUrl; exports.VideoSourceSelector = VideoSourceSelector; exports.ConfidenceBadge = ConfidenceBadge; exports.TranscriptSummaryEditor = TranscriptSummaryEditor; exports.AIEnrichButton = AIEnrichButton; exports.AIWarningsSection = AIWarningsSection; exports.AIEnrichSection = AIEnrichSection; exports.HighlightVideoSection = HighlightVideoSection; exports.HighlightConfigSection = HighlightConfigSection; exports.EntitySummaryEditor = EntitySummaryEditor; exports.AIStatusIndicator = AIStatusIndicator; exports.AIRequiredBadge = AIRequiredBadge; exports.TranscribeSummarizeSection = TranscribeSummarizeSection; exports.VideoClipsSection = VideoClipsSection; exports.HighlightGenerationSection = HighlightGenerationSection; exports.HighlightVideoPreview = HighlightVideoPreview; exports.TranscribeAndSummarizeCombinedSection = TranscribeAndSummarizeCombinedSection; exports.HighlightVideoCombinedSection = HighlightVideoCombinedSection; exports.ViewToggle = ViewToggle; exports.PolicyConfigurationPanel = PolicyConfigurationPanel; exports.PhoneInput = PhoneInput; exports.WaitlistForm = WaitlistForm; exports.NotificationsProvider = NotificationsProvider; exports.useNotifications = useNotifications; exports.useOptionalNotifications = useOptionalNotifications; exports.useAppLayoutDrawerContainer = useAppLayoutDrawerContainer; exports.AppLayoutDrawerRoot = AppLayoutDrawerRoot; exports.AppLayoutDrawerTrigger = AppLayoutDrawerTrigger; exports.AppLayoutDrawerClose = AppLayoutDrawerClose; exports.AppLayoutDrawerContent = AppLayoutDrawerContent; exports.AppLayoutDrawerHeader = AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = AppLayoutDrawerTitle; exports.AppLayoutDrawerDescription = AppLayoutDrawerDescription; exports.AppLayoutDrawerBody = AppLayoutDrawerBody; exports.AppLayoutDrawerFooter = AppLayoutDrawerFooter; exports.NotificationTile = NotificationTile; exports.NotificationDrawer = NotificationDrawer; exports.NotificationPopups = NotificationPopups; exports.ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE = ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE; exports.isApprovalNotification = isApprovalNotification; exports.getApprovalMeta = getApprovalMeta; exports.resolutionToStatus = resolutionToStatus; exports.approvalMetaToBatchData = approvalMetaToBatchData; exports.ApprovalRequestNotificationTile = ApprovalRequestNotificationTile; exports.TimeTrackerProvider = TimeTrackerProvider; exports.useTimeTracker = useTimeTracker; exports.useOptionalTimeTracker = useOptionalTimeTracker; exports.useTrackerClock = useTrackerClock; exports.TimeTrackerPanel = TimeTrackerPanel; exports.HeaderButton = HeaderButton; exports.TimeTrackerHeaderButton = TimeTrackerHeaderButton; exports.BoardColumnHeader = BoardColumnHeader; exports.tintOnDark = tintOnDark; exports.BoardTicketApproval = BoardTicketApproval; exports.TicketCardBody = TicketCardBody; exports.TicketCardView = TicketCardView; exports.TicketCard = TicketCard; exports.TicketCardSkeleton = TicketCardSkeleton; exports.BoardColumn = BoardColumn; exports.useBoardCollapse = useBoardCollapse; exports.Board = Board; exports.columnFromTicketStatus = columnFromTicketStatus; exports.groupTicketsByStatus = groupTicketsByStatus; exports.TicketStatusConfigList = TicketStatusConfigList; exports.TableHeader = TableHeader; exports.TableCell = TableCell; exports.TableCardSkeleton = TableCardSkeleton; exports.TableRow = TableRow; exports.Table = Table; exports.TableDescriptionCell = TableDescriptionCell; exports.TableTimestampCell = TableTimestampCell; exports.QueryReportTableHeader = QueryReportTableHeader; exports.QueryReportTableRow = QueryReportTableRow; exports.QueryReportTableSkeleton = QueryReportTableSkeleton; exports.deriveColumns = deriveColumns; exports.exportToCSV = exportToCSV; exports.QueryReportTable = QueryReportTable; exports.useDataTableContext = useDataTableContext; exports.DataTableRoot = DataTableRoot; exports.getHideClasses = getHideClasses2; exports.alignJustify = alignJustify; exports.multiSelectFilterFn = multiSelectFilterFn; exports.DataTableHeader = DataTableHeader; exports.DataTableEmpty = DataTableEmpty; exports.ROW_HEIGHT_DESKTOP = ROW_HEIGHT_DESKTOP2; exports.ROW_HEIGHT_MOBILE = ROW_HEIGHT_MOBILE2; exports.DataTableSkeleton = DataTableSkeleton; exports.DataTableRow = DataTableRow; exports.DataTableBody = DataTableBody; exports.DataTableInfiniteFooter = DataTableInfiniteFooter; exports.DataTableCursorFooter = DataTableCursorFooter; exports.DataTableRowCount = DataTableRowCount; exports.useDataTable = useDataTable; exports.DataTable = DataTable; exports.flexRender = _reacttable.flexRender; exports.createColumnHelper = _reacttable.createColumnHelper; exports.getCoreRowModel = _reacttable.getCoreRowModel; exports.getExpandedRowModel = _reacttable.getExpandedRowModel; exports.getFacetedRowModel = _reacttable.getFacetedRowModel; exports.getFacetedUniqueValues = _reacttable.getFacetedUniqueValues; exports.getFilteredRowModel = _reacttable.getFilteredRowModel; exports.getGroupedRowModel = _reacttable.getGroupedRowModel; exports.getPaginationRowModel = _reacttable.getPaginationRowModel; exports.getSortedRowModel = _reacttable.getSortedRowModel; exports.SearchInput = SearchInput; exports.FilterListItem = FilterListItem; exports.FilterList = FilterList; exports.TagSearchInput = TagSearchInput; exports.MarkdownEditor = MarkdownEditor; exports.FileUpload = FileUpload; exports.ImageUploader = ImageUploader; exports.TICKET_STATUS_COLOR_PRESETS = TICKET_STATUS_COLOR_PRESETS; exports.CUSTOM_PRESET_KEY = CUSTOM_PRESET_KEY; exports.DEFAULT_CUSTOM_STATUS_COLOR = DEFAULT_CUSTOM_STATUS_COLOR; exports.ColorPresetSelect = ColorPresetSelect; exports.ColorPickerInput = ColorPickerInput; exports.TicketStatusConfigRow = TicketStatusConfigRow; exports.TicketDetailSection = TicketDetailSection; exports.TicketAttachmentsList = TicketAttachmentsList; exports.TicketNoteCard = TicketNoteCard; exports.TicketNotesSection = TicketNotesSection; exports.TicketInfoSection = TicketInfoSection; exports.FilterPillRow = FilterPillRow; exports.MOBILE_NAV_PANEL_ID = MOBILE_NAV_PANEL_ID; exports.MobileNavPanel = MobileNavPanel; exports.MingoAiButton = MingoAiButton; exports.Header = Header2; exports.HeaderSkeleton = HeaderSkeleton; exports.ClientOnlyHeader = ClientOnlyHeader; exports.SlidingSidebar = SlidingSidebar; exports.StickySectionNav = StickySectionNav; exports.useSectionNavigation = useSectionNavigation; exports.NavigationSidebar = NavigationSidebar; exports.HeaderGlobalSearch = HeaderGlobalSearch; exports.HeaderMingoButton = HeaderMingoButton; exports.HeaderOrganizationFilter = HeaderOrganizationFilter; exports.AppHeader = AppHeader; exports.MobileBurgerMenu = MobileBurgerMenu; exports.AppLayout = AppLayout; exports.MultiLevelNavigation = MultiLevelNavigation; exports.MobileNavigationDropdown = MobileNavigationDropdown; exports.SoftwareInfo = SoftwareInfo; exports.SoftwareSourceBadge = SoftwareSourceBadge; exports.CveLink = CveLink; exports.ToolBadge = ToolBadge; exports.ShellTypeBadge = ShellTypeBadge; exports.ScriptInfoSection = ScriptInfoSection; exports.ScriptArguments = ScriptArguments; exports.OnboardingStepCard = OnboardingStepCard; exports.OnboardingWalkthrough = OnboardingWalkthrough; exports.LOG_SEVERITY_COLORS = LOG_SEVERITY_COLORS; exports.LOG_SEVERITY_LABELS = LOG_SEVERITY_LABELS; exports.LogSeverityDot = LogSeverityDot; exports.LogsList = LogsList; exports.assets = assets;
53741
- //# sourceMappingURL=chunk-3V5UQ5TU.cjs.map
53764
+ //# sourceMappingURL=chunk-7R3PASHE.cjs.map