@flamingo-stack/openframe-frontend-core 0.0.652 → 0.0.653-2289.6601.1

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 (114) hide show
  1. package/dist/{chunk-I3KD7T6K.cjs → chunk-2WQ5XTAZ.cjs} +36 -36
  2. package/dist/{chunk-I3KD7T6K.cjs.map → chunk-2WQ5XTAZ.cjs.map} +1 -1
  3. package/dist/{chunk-4T7E2SWL.cjs → chunk-3RJ4VI3H.cjs} +13 -13
  4. package/dist/{chunk-4T7E2SWL.cjs.map → chunk-3RJ4VI3H.cjs.map} +1 -1
  5. package/dist/{chunk-UEFHMMJX.cjs → chunk-5N2VSYMZ.cjs} +18 -18
  6. package/dist/{chunk-UEFHMMJX.cjs.map → chunk-5N2VSYMZ.cjs.map} +1 -1
  7. package/dist/{chunk-HSPLCV56.js → chunk-5P7MYYNW.js} +2 -2
  8. package/dist/{chunk-ERFHLMWM.cjs → chunk-7CVRBXLS.cjs} +352 -234
  9. package/dist/chunk-7CVRBXLS.cjs.map +1 -0
  10. package/dist/{chunk-TGHSQUTD.js → chunk-C4JQRKXH.js} +2 -2
  11. package/dist/{chunk-AGQZRNYV.js → chunk-CRT6FYWQ.js} +4 -4
  12. package/dist/{chunk-AAITIXRL.cjs → chunk-IIR3FCRM.cjs} +17 -17
  13. package/dist/{chunk-AAITIXRL.cjs.map → chunk-IIR3FCRM.cjs.map} +1 -1
  14. package/dist/{chunk-LDC37FG4.js → chunk-IJNR2VZJ.js} +2 -2
  15. package/dist/{chunk-N4RVPWPM.js → chunk-IR7ZOGRA.js} +2 -2
  16. package/dist/{chunk-ADXTLFG7.js → chunk-KNRGYPW4.js} +5 -5
  17. package/dist/{chunk-LUEURQOY.js → chunk-KQPEXCYU.js} +5 -5
  18. package/dist/{chunk-NTJUFHX2.js → chunk-LGAIEUAL.js} +2 -2
  19. package/dist/{chunk-DVT5JCLD.cjs → chunk-MVIC53FZ.cjs} +3 -3
  20. package/dist/{chunk-DVT5JCLD.cjs.map → chunk-MVIC53FZ.cjs.map} +1 -1
  21. package/dist/{chunk-QZJ4K7SG.js → chunk-NUKLU7RL.js} +2 -2
  22. package/dist/{chunk-EY2OVL3Z.cjs → chunk-NWYLN3FU.cjs} +10 -10
  23. package/dist/{chunk-EY2OVL3Z.cjs.map → chunk-NWYLN3FU.cjs.map} +1 -1
  24. package/dist/{chunk-LECSFMGM.js → chunk-OEJRLL5C.js} +367 -249
  25. package/dist/chunk-OEJRLL5C.js.map +1 -0
  26. package/dist/{chunk-JCVGQDQV.cjs → chunk-OPNV6V2Z.cjs} +33 -33
  27. package/dist/{chunk-JCVGQDQV.cjs.map → chunk-OPNV6V2Z.cjs.map} +1 -1
  28. package/dist/{chunk-2FWS52HR.js → chunk-P6YNSOFB.js} +3 -3
  29. package/dist/{chunk-HM6D2YHS.js → chunk-SE4POCS6.js} +2 -2
  30. package/dist/{chunk-FBKB4HCZ.cjs → chunk-T5QSKERQ.cjs} +3 -3
  31. package/dist/{chunk-FBKB4HCZ.cjs.map → chunk-T5QSKERQ.cjs.map} +1 -1
  32. package/dist/{chunk-ZVLOG2AV.cjs → chunk-T6W3NMA7.cjs} +4 -4
  33. package/dist/{chunk-ZVLOG2AV.cjs.map → chunk-T6W3NMA7.cjs.map} +1 -1
  34. package/dist/{chunk-74EGKPX3.js → chunk-UE7TECNE.js} +2 -2
  35. package/dist/{chunk-QUNY6URW.js → chunk-UQ2OYID7.js} +2 -2
  36. package/dist/{chunk-VIHX7ADQ.cjs → chunk-VZWLSDAU.cjs} +3 -3
  37. package/dist/{chunk-VIHX7ADQ.cjs.map → chunk-VZWLSDAU.cjs.map} +1 -1
  38. package/dist/{chunk-27OZEE3E.cjs → chunk-WRXB3XXK.cjs} +3 -3
  39. package/dist/{chunk-27OZEE3E.cjs.map → chunk-WRXB3XXK.cjs.map} +1 -1
  40. package/dist/{chunk-I5Y6ZALR.cjs → chunk-X24KJHPD.cjs} +51 -51
  41. package/dist/{chunk-I5Y6ZALR.cjs.map → chunk-X24KJHPD.cjs.map} +1 -1
  42. package/dist/{chunk-BRIJIC6E.js → chunk-XFT4FZWM.js} +4 -4
  43. package/dist/{chunk-JWY5ES3H.cjs → chunk-ZG4A6IYE.cjs} +4 -4
  44. package/dist/{chunk-JWY5ES3H.cjs.map → chunk-ZG4A6IYE.cjs.map} +1 -1
  45. package/dist/{chunk-BXE3DLIC.cjs → chunk-ZYAU5PT6.cjs} +17 -17
  46. package/dist/{chunk-BXE3DLIC.cjs.map → chunk-ZYAU5PT6.cjs.map} +1 -1
  47. package/dist/components/case-studies/index.cjs +11 -11
  48. package/dist/components/case-studies/index.js +2 -2
  49. package/dist/components/contact/index.cjs +3 -3
  50. package/dist/components/contact/index.js +2 -2
  51. package/dist/components/docs/index.cjs +6 -6
  52. package/dist/components/docs/index.js +5 -5
  53. package/dist/components/embeds/index.cjs +3 -3
  54. package/dist/components/embeds/index.js +2 -2
  55. package/dist/components/faq/index.cjs +3 -3
  56. package/dist/components/faq/index.js +2 -2
  57. package/dist/components/features/index.cjs +2 -2
  58. package/dist/components/features/index.js +1 -1
  59. package/dist/components/help-center-pages/index.cjs +22 -22
  60. package/dist/components/help-center-pages/index.js +13 -13
  61. package/dist/components/index.cjs +31 -31
  62. package/dist/components/index.js +12 -12
  63. package/dist/components/meeting-scheduler/index.cjs +21 -21
  64. package/dist/components/meeting-scheduler/index.js +1 -1
  65. package/dist/components/navigation/index.cjs +5 -5
  66. package/dist/components/navigation/index.js +4 -4
  67. package/dist/components/onboarding-guides/index.cjs +5 -5
  68. package/dist/components/onboarding-guides/index.js +4 -4
  69. package/dist/components/tickets/index.cjs +6 -6
  70. package/dist/components/tickets/index.js +5 -5
  71. package/dist/components/ui/data-table/data-table-body.d.ts +17 -8
  72. package/dist/components/ui/data-table/data-table-body.d.ts.map +1 -1
  73. package/dist/components/ui/data-table/data-table-infinite-footer.d.ts +37 -3
  74. package/dist/components/ui/data-table/data-table-infinite-footer.d.ts.map +1 -1
  75. package/dist/components/ui/data-table/data-table-load-more.d.ts +35 -0
  76. package/dist/components/ui/data-table/data-table-load-more.d.ts.map +1 -0
  77. package/dist/components/ui/data-table/data-table-row.d.ts +3 -9
  78. package/dist/components/ui/data-table/data-table-row.d.ts.map +1 -1
  79. package/dist/components/ui/data-table/data-table-skeleton.d.ts +9 -0
  80. package/dist/components/ui/data-table/data-table-skeleton.d.ts.map +1 -1
  81. package/dist/components/ui/data-table/data-table.d.ts +6 -0
  82. package/dist/components/ui/data-table/data-table.d.ts.map +1 -1
  83. package/dist/components/ui/data-table/index.d.ts +1 -1
  84. package/dist/components/ui/index.cjs +2 -2
  85. package/dist/components/ui/index.js +1 -1
  86. package/dist/index.cjs +6 -6
  87. package/dist/index.js +5 -5
  88. package/package.json +1 -1
  89. package/src/__tests__/data-table-infinite-footer.test.tsx +246 -0
  90. package/src/__tests__/data-table-row-height.test.tsx +1 -7
  91. package/src/__tests__/data-table-skeleton-row-rhythm.test.tsx +147 -0
  92. package/src/components/ui/data-table/data-table-body.tsx +53 -17
  93. package/src/components/ui/data-table/data-table-infinite-footer.tsx +138 -9
  94. package/src/components/ui/data-table/data-table-load-more.ts +87 -0
  95. package/src/components/ui/data-table/data-table-row.tsx +8 -12
  96. package/src/components/ui/data-table/data-table-skeleton.tsx +10 -0
  97. package/src/components/ui/data-table/data-table.tsx +18 -2
  98. package/src/stories/DataTable.stories.tsx +167 -0
  99. package/dist/chunk-ERFHLMWM.cjs.map +0 -1
  100. package/dist/chunk-LECSFMGM.js.map +0 -1
  101. /package/dist/{chunk-HSPLCV56.js.map → chunk-5P7MYYNW.js.map} +0 -0
  102. /package/dist/{chunk-TGHSQUTD.js.map → chunk-C4JQRKXH.js.map} +0 -0
  103. /package/dist/{chunk-AGQZRNYV.js.map → chunk-CRT6FYWQ.js.map} +0 -0
  104. /package/dist/{chunk-LDC37FG4.js.map → chunk-IJNR2VZJ.js.map} +0 -0
  105. /package/dist/{chunk-N4RVPWPM.js.map → chunk-IR7ZOGRA.js.map} +0 -0
  106. /package/dist/{chunk-ADXTLFG7.js.map → chunk-KNRGYPW4.js.map} +0 -0
  107. /package/dist/{chunk-LUEURQOY.js.map → chunk-KQPEXCYU.js.map} +0 -0
  108. /package/dist/{chunk-NTJUFHX2.js.map → chunk-LGAIEUAL.js.map} +0 -0
  109. /package/dist/{chunk-QZJ4K7SG.js.map → chunk-NUKLU7RL.js.map} +0 -0
  110. /package/dist/{chunk-2FWS52HR.js.map → chunk-P6YNSOFB.js.map} +0 -0
  111. /package/dist/{chunk-HM6D2YHS.js.map → chunk-SE4POCS6.js.map} +0 -0
  112. /package/dist/{chunk-74EGKPX3.js.map → chunk-UE7TECNE.js.map} +0 -0
  113. /package/dist/{chunk-QUNY6URW.js.map → chunk-UQ2OYID7.js.map} +0 -0
  114. /package/dist/{chunk-BRIJIC6E.js.map → chunk-XFT4FZWM.js.map} +0 -0
@@ -365,7 +365,7 @@ function useThemeToggle() {
365
365
 
366
366
  // src/components/features/array-entry-manager.tsx
367
367
  import { Trash2, Plus as Plus2, Save, Loader2 as Loader25 } from "lucide-react";
368
- import { useState as useState47, useEffect as useEffect25 } from "react";
368
+ import { useState as useState49, useEffect as useEffect25 } from "react";
369
369
 
370
370
  // src/components/ui/allowed-domains-input.tsx
371
371
  import { PlusCircle, X } from "lucide-react";
@@ -12954,18 +12954,72 @@ function CursorPaginationSimple({
12954
12954
  }
12955
12955
 
12956
12956
  // src/components/ui/data-table/data-table.tsx
12957
+ import { createContext as createContext5, useContext as useContext5, useState as useState30 } from "react";
12958
+
12959
+ // src/components/ui/data-table/data-table-load-more.ts
12957
12960
  import { createContext as createContext4, useContext as useContext4 } from "react";
12961
+ function createDataTableLoadMoreStore() {
12962
+ const listeners = /* @__PURE__ */ new Set();
12963
+ let skeletonRows = 0;
12964
+ let rowsBodies = 0;
12965
+ const notify = () => {
12966
+ for (const listener of listeners) listener();
12967
+ };
12968
+ return {
12969
+ subscribe: (listener) => {
12970
+ listeners.add(listener);
12971
+ return () => {
12972
+ listeners.delete(listener);
12973
+ };
12974
+ },
12975
+ getSkeletonRows: () => skeletonRows,
12976
+ setSkeletonRows: (rows) => {
12977
+ if (rows === skeletonRows) return;
12978
+ skeletonRows = rows;
12979
+ notify();
12980
+ },
12981
+ getHasRowsBody: () => rowsBodies > 0,
12982
+ registerRowsBody: () => {
12983
+ rowsBodies += 1;
12984
+ notify();
12985
+ return () => {
12986
+ rowsBodies -= 1;
12987
+ notify();
12988
+ };
12989
+ }
12990
+ };
12991
+ }
12992
+ var NO_LOAD_MORE_STORE = {
12993
+ subscribe: () => () => {
12994
+ },
12995
+ getSkeletonRows: () => 0,
12996
+ setSkeletonRows: () => {
12997
+ },
12998
+ getHasRowsBody: () => false,
12999
+ registerRowsBody: () => () => {
13000
+ }
13001
+ };
13002
+ var DataTableLoadMoreContext = createContext4(NO_LOAD_MORE_STORE);
13003
+ function useDataTableLoadMoreStore() {
13004
+ return useContext4(DataTableLoadMoreContext);
13005
+ }
13006
+
13007
+ // src/components/ui/data-table/data-table.tsx
12958
13008
  import { jsx as jsx114 } from "react/jsx-runtime";
12959
- var DataTableContext = createContext4(null);
13009
+ var DataTableContext = createContext5(null);
12960
13010
  function useDataTableContext() {
12961
- const ctx = useContext4(DataTableContext);
13011
+ const ctx = useContext5(DataTableContext);
12962
13012
  if (!ctx) {
12963
13013
  throw new Error("<DataTable.Header/Body/...> must be used inside <DataTable table={...}>");
12964
13014
  }
12965
13015
  return ctx;
12966
13016
  }
13017
+ function useOptionalDataTableContext() {
13018
+ return useContext5(DataTableContext);
13019
+ }
12967
13020
  function DataTableRoot({ table, children, className }) {
12968
- return /* @__PURE__ */ jsx114(DataTableContext.Provider, { value: table, children: /* @__PURE__ */ jsx114("div", { className: cn("flex w-full flex-col", className), children }) });
13021
+ const [loadMoreStore] = useState30(createDataTableLoadMoreStore);
13022
+ return /* @__PURE__ */ jsx114(DataTableContext.Provider, { value: table, children: /* @__PURE__ */ jsx114(DataTableLoadMoreContext.Provider, { value: loadMoreStore, children: /* @__PURE__ */ jsx114("div", { className: cn("flex w-full flex-col", className), children }) }) });
12969
13023
  }
12970
13024
 
12971
13025
  // src/components/ui/data-table/utils.ts
@@ -13022,6 +13076,7 @@ import { Fragment as Fragment15, jsx as jsx115, jsxs as jsxs89 } from "react/jsx
13022
13076
  var ROW_HEIGHT_DESKTOP = "h-[66px] md:h-[78px]";
13023
13077
  var ROW_HEIGHT_MOBILE = "h-[66px]";
13024
13078
  var ROW_SHELL_CLASSES = "items-center gap-[var(--spacing-system-mf)] px-[var(--spacing-system-mf)]";
13079
+ var ROW_STACK_CLASSES = "flex w-full flex-col gap-[var(--spacing-system-xsf)]";
13025
13080
  function DataTableSkeleton({ rows = 10, className, rowClassName, rowHeightClassName }) {
13026
13081
  const table = useDataTableContext();
13027
13082
  const columns = table.getVisibleFlatColumns();
@@ -13590,9 +13645,9 @@ function TableRow({
13590
13645
  }
13591
13646
 
13592
13647
  // src/components/ui/table/use-table-motion.ts
13593
- import { useEffect as useEffect16, useState as useState30 } from "react";
13648
+ import { useEffect as useEffect16, useState as useState31 } from "react";
13594
13649
  function useTableMotion(enabled) {
13595
- const [runtime, setRuntime] = useState30(null);
13650
+ const [runtime, setRuntime] = useState31(null);
13596
13651
  useEffect16(() => {
13597
13652
  if (!enabled || runtime) return void 0;
13598
13653
  let active = true;
@@ -13970,7 +14025,7 @@ function TableTimestampCell({
13970
14025
  import { useMemo as useMemo12 } from "react";
13971
14026
 
13972
14027
  // src/components/ui/query-report-table/query-report-table-header.tsx
13973
- import { useRef as useRef17, useState as useState31, useCallback as useCallback11 } from "react";
14028
+ import { useRef as useRef17, useState as useState32, useCallback as useCallback11 } from "react";
13974
14029
  import { jsx as jsx125, jsxs as jsxs96 } from "react/jsx-runtime";
13975
14030
  function QueryReportTableHeader({
13976
14031
  columns,
@@ -13983,7 +14038,7 @@ function QueryReportTableHeader({
13983
14038
  }
13984
14039
  function TruncatedHeaderCell({ value, width }) {
13985
14040
  const textRef = useRef17(null);
13986
- const [isTruncated, setIsTruncated] = useState31(false);
14041
+ const [isTruncated, setIsTruncated] = useState32(false);
13987
14042
  const checkTruncation = useCallback11(() => {
13988
14043
  const el = textRef.current;
13989
14044
  if (el) {
@@ -13997,7 +14052,7 @@ function TruncatedHeaderCell({ value, width }) {
13997
14052
  }
13998
14053
 
13999
14054
  // src/components/ui/query-report-table/query-report-table-row.tsx
14000
- import { useRef as useRef18, useState as useState32, useCallback as useCallback12 } from "react";
14055
+ import { useRef as useRef18, useState as useState33, useCallback as useCallback12 } from "react";
14001
14056
  import { jsx as jsx126, jsxs as jsxs97 } from "react/jsx-runtime";
14002
14057
  function QueryReportTableRow({
14003
14058
  row,
@@ -14038,7 +14093,7 @@ function QueryReportTableRow({
14038
14093
  }
14039
14094
  function TruncatedCell({ value, className }) {
14040
14095
  const textRef = useRef18(null);
14041
- const [isTruncated, setIsTruncated] = useState32(false);
14096
+ const [isTruncated, setIsTruncated] = useState33(false);
14042
14097
  const checkTruncation = useCallback12(() => {
14043
14098
  const el = textRef.current;
14044
14099
  if (el) {
@@ -14238,6 +14293,9 @@ function QueryReportTable({
14238
14293
  ] });
14239
14294
  }
14240
14295
 
14296
+ // src/components/ui/data-table/data-table-body.tsx
14297
+ import { useSyncExternalStore } from "react";
14298
+
14241
14299
  // src/components/ui/data-table/data-table-empty.tsx
14242
14300
  import { jsx as jsx129 } from "react/jsx-runtime";
14243
14301
  function DataTableEmpty({ className, ...props }) {
@@ -14262,7 +14320,6 @@ function DataTableRowImpl({
14262
14320
  onClick,
14263
14321
  href,
14264
14322
  compact,
14265
- autoHeight,
14266
14323
  rowHeightClassName,
14267
14324
  className,
14268
14325
  subRow
@@ -14288,6 +14345,11 @@ function DataTableRowImpl({
14288
14345
  );
14289
14346
  const containerClassName = cn(
14290
14347
  "overflow-hidden rounded-md border border-ods-border bg-ods-card text-inherit no-underline",
14348
+ // A row fades in when it MOUNTS — so a loaded page eases in over the
14349
+ // skeleton it replaces instead of snapping, and rows that were already on
14350
+ // screen (keyed by id) do not replay it. Opacity only: nothing that moves
14351
+ // or resizes the slot, which is the whole point of the fixed row height.
14352
+ "duration-200 animate-in fade-in-0 motion-reduce:animate-none",
14291
14353
  // A stated slot height goes HERE, on the card, with the cells flexing to
14292
14354
  // fill whatever the sub-row leaves. `border-box` sizing means the number a
14293
14355
  // caller writes is the number the row occupies, borders included.
@@ -14302,7 +14364,7 @@ function DataTableRowImpl({
14302
14364
  className: cn(
14303
14365
  "flex",
14304
14366
  ROW_SHELL_CLASSES,
14305
- rowHeightClassName ? "min-h-0 flex-1 py-0" : compact ? "py-[var(--spacing-system-xsf)]" : autoHeight ? "min-h-[66px] py-[var(--spacing-system-sf)] md:min-h-[78px]" : `py-0 ${ROW_HEIGHT_DESKTOP}`,
14367
+ rowHeightClassName ? "min-h-0 flex-1 py-0" : compact ? "py-[var(--spacing-system-xsf)]" : `py-0 ${ROW_HEIGHT_DESKTOP}`,
14306
14368
  hasSubRow && "border-b border-ods-border"
14307
14369
  ),
14308
14370
  children: row.getVisibleCells().map((cell) => {
@@ -14372,6 +14434,7 @@ function CellContent({ children }) {
14372
14434
 
14373
14435
  // src/components/ui/data-table/data-table-body.tsx
14374
14436
  import { jsx as jsx131, jsxs as jsxs101 } from "react/jsx-runtime";
14437
+ var getNoRows = () => 0;
14375
14438
  function DataTableBody({
14376
14439
  loading,
14377
14440
  emptyMessage,
@@ -14380,7 +14443,6 @@ function DataTableBody({
14380
14443
  className,
14381
14444
  rowClassName,
14382
14445
  compact,
14383
- autoHeight,
14384
14446
  rowHeightClassName,
14385
14447
  onRowClick,
14386
14448
  rowHref,
@@ -14389,10 +14451,22 @@ function DataTableBody({
14389
14451
  }) {
14390
14452
  const table = useDataTableContext();
14391
14453
  const rows = table.getRowModel().rows;
14392
- if (loading && rows.length === 0) {
14393
- return /* @__PURE__ */ jsx131("div", { className: cn("flex w-full flex-col gap-[var(--spacing-system-xsf)]", className), children: /* @__PURE__ */ jsx131(DataTableSkeleton, { rows: skeletonRows, rowHeightClassName }) });
14454
+ const hasRows = rows.length > 0;
14455
+ const loadMore = useDataTableLoadMoreStore();
14456
+ const loadMoreRows = useSyncExternalStore(loadMore.subscribe, loadMore.getSkeletonRows, getNoRows);
14457
+ useIsomorphicLayoutEffect(() => hasRows ? loadMore.registerRowsBody() : void 0, [loadMore, hasRows]);
14458
+ const skeletonRowClassName = typeof rowClassName === "string" ? rowClassName : void 0;
14459
+ if (loading && !hasRows) {
14460
+ return /* @__PURE__ */ jsx131("div", { className: cn(ROW_STACK_CLASSES, className), children: /* @__PURE__ */ jsx131(
14461
+ DataTableSkeleton,
14462
+ {
14463
+ rows: skeletonRows,
14464
+ className: skeletonRowClassName,
14465
+ rowHeightClassName
14466
+ }
14467
+ ) });
14394
14468
  }
14395
- if (rows.length === 0) {
14469
+ if (!hasRows) {
14396
14470
  const empty = emptyState ? /* @__PURE__ */ jsx131(DataTableEmpty, { ...emptyState }) : emptyMessage != null ? /* @__PURE__ */ jsx131(DataTableEmpty, { title: emptyMessage, description: void 0 }) : /* @__PURE__ */ jsx131(DataTableEmpty, {});
14397
14471
  if (minRows) {
14398
14472
  return /* @__PURE__ */ jsx131(
@@ -14405,10 +14479,10 @@ function DataTableBody({
14405
14479
  }
14406
14480
  );
14407
14481
  }
14408
- return /* @__PURE__ */ jsx131("div", { className: cn("flex w-full flex-col gap-[var(--spacing-system-xsf)]", className), children: empty });
14482
+ return /* @__PURE__ */ jsx131("div", { className: cn(ROW_STACK_CLASSES, className), children: empty });
14409
14483
  }
14410
- const padCount = minRows ? Math.max(0, minRows - rows.length) : 0;
14411
- return /* @__PURE__ */ jsxs101("div", { className: cn("flex w-full flex-col gap-[var(--spacing-system-xsf)]", className), children: [
14484
+ const padCount = minRows ? Math.max(0, minRows - rows.length - loadMoreRows) : 0;
14485
+ return /* @__PURE__ */ jsxs101("div", { className: cn(ROW_STACK_CLASSES, className), children: [
14412
14486
  rows.map((row, index) => {
14413
14487
  const item = row.original;
14414
14488
  const href = rowHref?.(item) ?? void 0;
@@ -14420,7 +14494,6 @@ function DataTableBody({
14420
14494
  onClick: onRowClick,
14421
14495
  href,
14422
14496
  compact,
14423
- autoHeight,
14424
14497
  rowHeightClassName,
14425
14498
  className: cls,
14426
14499
  subRow: renderSubRow?.(item)
@@ -14428,6 +14501,14 @@ function DataTableBody({
14428
14501
  row.id
14429
14502
  );
14430
14503
  }),
14504
+ loadMoreRows > 0 && /* @__PURE__ */ jsx131(
14505
+ DataTableSkeleton,
14506
+ {
14507
+ rows: loadMoreRows,
14508
+ className: skeletonRowClassName,
14509
+ rowHeightClassName
14510
+ }
14511
+ ),
14431
14512
  padCount > 0 && /* @__PURE__ */ jsx131(PlaceholderRows, { count: padCount, rowHeightClassName })
14432
14513
  ] });
14433
14514
  }
@@ -14743,35 +14824,72 @@ function resolveHeaderLabel(header) {
14743
14824
  }
14744
14825
 
14745
14826
  // src/components/ui/data-table/data-table-infinite-footer.tsx
14746
- import { useEffect as useEffect18, useRef as useRef20 } from "react";
14827
+ import { useEffect as useEffect18, useRef as useRef20, useState as useState34, useSyncExternalStore as useSyncExternalStore2 } from "react";
14747
14828
  import { Fragment as Fragment21, jsx as jsx135, jsxs as jsxs104 } from "react/jsx-runtime";
14829
+ var DEFAULT_ROOT_MARGIN = "0px 0px 100% 0px";
14830
+ var getNoBody = () => false;
14831
+ function findScrollParent(element) {
14832
+ const { body, documentElement } = element.ownerDocument;
14833
+ for (let node = element.parentElement; node && node !== body && node !== documentElement; node = node.parentElement) {
14834
+ const { overflowY } = getComputedStyle(node);
14835
+ if ((overflowY === "auto" || overflowY === "scroll") && node.scrollHeight > node.clientHeight) return node;
14836
+ }
14837
+ return null;
14838
+ }
14748
14839
  function DataTableInfiniteFooter({
14749
14840
  hasNextPage,
14750
14841
  isFetchingNextPage,
14751
14842
  onLoadMore,
14752
14843
  skeletonRows = 3,
14753
- rootMargin = "200px"
14844
+ rootMargin = DEFAULT_ROOT_MARGIN,
14845
+ loadedCount
14754
14846
  }) {
14755
14847
  const sentinelRef = useRef20(null);
14756
14848
  const onLoadMoreRef = useRef20(onLoadMore);
14757
14849
  useEffect18(() => {
14758
14850
  onLoadMoreRef.current = onLoadMore;
14759
14851
  });
14852
+ const loadMore = useDataTableLoadMoreStore();
14853
+ const bodyDrawsRows = useSyncExternalStore2(loadMore.subscribe, loadMore.getHasRowsBody, getNoBody);
14854
+ const requestedRows = isFetchingNextPage ? skeletonRows : 0;
14855
+ useIsomorphicLayoutEffect(() => {
14856
+ loadMore.setSkeletonRows(requestedRows);
14857
+ return () => loadMore.setSkeletonRows(0);
14858
+ }, [loadMore, requestedRows]);
14859
+ const tableRows = useOptionalDataTableContext()?.getRowModel().rows;
14860
+ const progressCount = loadedCount ?? tableRows?.length;
14861
+ const lastRowId = tableRows?.[tableRows.length - 1]?.id ?? "";
14862
+ const tail = progressCount === void 0 ? null : `${progressCount}:${lastRowId}`;
14863
+ const [wasFetching, setWasFetching] = useState34(isFetchingNextPage);
14864
+ const [tailAtFetchStart, setTailAtFetchStart] = useState34(null);
14865
+ const [stalledTail, setStalledTail] = useState34(null);
14866
+ if (wasFetching !== isFetchingNextPage) {
14867
+ setWasFetching(isFetchingNextPage);
14868
+ if (isFetchingNextPage) {
14869
+ setTailAtFetchStart(tail);
14870
+ setStalledTail(null);
14871
+ } else if (tail !== null && tail === tailAtFetchStart) {
14872
+ setStalledTail(tail);
14873
+ }
14874
+ }
14875
+ const isStalled = hasNextPage && !isFetchingNextPage && stalledTail !== null && stalledTail === tail;
14760
14876
  useEffect18(() => {
14761
- if (!hasNextPage || isFetchingNextPage) return void 0;
14877
+ if (!hasNextPage || isFetchingNextPage || isStalled) return void 0;
14762
14878
  const sentinel = sentinelRef.current;
14763
14879
  if (!sentinel) return void 0;
14764
14880
  const observer = new IntersectionObserver(
14765
14881
  (entries) => {
14766
14882
  if (entries[0]?.isIntersecting) onLoadMoreRef.current();
14767
14883
  },
14768
- { rootMargin }
14884
+ { root: findScrollParent(sentinel), rootMargin }
14769
14885
  );
14770
14886
  observer.observe(sentinel);
14771
14887
  return () => observer.disconnect();
14772
- }, [hasNextPage, isFetchingNextPage, rootMargin]);
14888
+ }, [hasNextPage, isFetchingNextPage, isStalled, rootMargin]);
14773
14889
  return /* @__PURE__ */ jsxs104(Fragment21, { children: [
14774
- isFetchingNextPage && /* @__PURE__ */ jsx135(DataTableSkeleton, { rows: skeletonRows }),
14890
+ isFetchingNextPage && !bodyDrawsRows && /* @__PURE__ */ jsx135("div", { className: ROW_STACK_CLASSES, children: /* @__PURE__ */ jsx135(DataTableSkeleton, { rows: skeletonRows }) }),
14891
+ isStalled && /* @__PURE__ */ jsx135("div", { className: "flex justify-center pt-[var(--spacing-system-mf)]", children: /* @__PURE__ */ jsx135(Button, { variant: "outline", onClick: onLoadMore, children: "Load more" }) }),
14892
+ /* @__PURE__ */ jsx135("div", { role: "status", className: "sr-only", children: isFetchingNextPage ? "Loading more results" : "" }),
14775
14893
  hasNextPage && /* @__PURE__ */ jsx135("div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" })
14776
14894
  ] });
14777
14895
  }
@@ -14852,10 +14970,10 @@ var DataTable = Object.assign(DataTableRoot, {
14852
14970
  });
14853
14971
 
14854
14972
  // src/components/ui/password-input.tsx
14855
- import { forwardRef as forwardRef27, useState as useState33 } from "react";
14973
+ import { forwardRef as forwardRef27, useState as useState35 } from "react";
14856
14974
  import { jsx as jsx136 } from "react/jsx-runtime";
14857
14975
  var PasswordInput = forwardRef27(({ disabled, className, ...props }, ref) => {
14858
- const [visible, setVisible] = useState33(false);
14976
+ const [visible, setVisible] = useState35(false);
14859
14977
  const Icon2 = visible ? EyeOffIcon : EyeIcon2;
14860
14978
  return /* @__PURE__ */ jsx136(
14861
14979
  Input,
@@ -14883,7 +15001,7 @@ var PasswordInput = forwardRef27(({ disabled, className, ...props }, ref) => {
14883
15001
  PasswordInput.displayName = "PasswordInput";
14884
15002
 
14885
15003
  // src/components/ui/phone-input.tsx
14886
- import { useCallback as useCallback15, useEffect as useEffect19, useMemo as useMemo14, useRef as useRef21, useState as useState34 } from "react";
15004
+ import { useCallback as useCallback15, useEffect as useEffect19, useMemo as useMemo14, useRef as useRef21, useState as useState36 } from "react";
14887
15005
  import { jsx as jsx137, jsxs as jsxs106 } from "react/jsx-runtime";
14888
15006
  function PhoneInput({
14889
15007
  value,
@@ -14900,7 +15018,7 @@ function PhoneInput({
14900
15018
  () => [...priority, ...others].find((c) => c.code === countryCode),
14901
15019
  [countryCode, priority, others]
14902
15020
  );
14903
- const [isInvalid, setIsInvalid] = useState34(false);
15021
+ const [isInvalid, setIsInvalid] = useState36(false);
14904
15022
  const debounceRef = useRef21(null);
14905
15023
  const digitCount = useCallback15((val) => val.replace(/[^0-9]/g, "").length, []);
14906
15024
  const runValidation = useCallback15(
@@ -14994,7 +15112,7 @@ import {
14994
15112
  useEffect as useEffect20,
14995
15113
  useMemo as useMemo15,
14996
15114
  useRef as useRef22,
14997
- useState as useState35
15115
+ useState as useState37
14998
15116
  } from "react";
14999
15117
  import { jsx as jsx138, jsxs as jsxs107 } from "react/jsx-runtime";
15000
15118
  var containerStyles = cn(
@@ -15053,11 +15171,11 @@ function SearchInput({
15053
15171
  limitTags = "auto",
15054
15172
  getLimitTagsText = (more) => `+${more}`
15055
15173
  }) {
15056
- const [internalValue, setInternalValue] = useState35(defaultValue);
15174
+ const [internalValue, setInternalValue] = useState37(defaultValue);
15057
15175
  const currentValue = onChange ? value ?? "" : internalValue;
15058
15176
  const debouncedValue = useDebounce(currentValue, debounceMs);
15059
- const [isOpen, setIsOpen] = useState35(false);
15060
- const [highlightedIndex, setHighlightedIndex] = useState35(-1);
15177
+ const [isOpen, setIsOpen] = useState37(false);
15178
+ const [highlightedIndex, setHighlightedIndex] = useState37(-1);
15061
15179
  const keyboardPadding = useKeyboardCollisionPadding();
15062
15180
  const containerRef = useRef22(null);
15063
15181
  const currentPlaceholder = filterChips.length > 0 ? "Add filter..." : placeholder;
@@ -15078,7 +15196,7 @@ function SearchInput({
15078
15196
  const visibleCount = filterChips.length > 0 ? Math.max(1, rawVisibleCount) : rawVisibleCount;
15079
15197
  const hiddenTagsRef = useRef22(null);
15080
15198
  const hiddenTagsPopupRef = useRef22(null);
15081
- const [showHiddenTags, setShowHiddenTags] = useState35(false);
15199
+ const [showHiddenTags, setShowHiddenTags] = useState37(false);
15082
15200
  useEffect20(() => {
15083
15201
  if (!showHiddenTags) return void 0;
15084
15202
  const handleClick = (e) => {
@@ -15117,7 +15235,7 @@ function SearchInput({
15117
15235
  const meetsMinQuery = debouncedValue.length >= minQueryLength;
15118
15236
  const autoShow = meetsMinQuery;
15119
15237
  const dropdownVisible = !disabled && (showDropdownProp ?? (isOpen && autoShow));
15120
- const [highlightedFor, setHighlightedFor] = useState35(flatResults.length);
15238
+ const [highlightedFor, setHighlightedFor] = useState37(flatResults.length);
15121
15239
  if (highlightedFor !== flatResults.length) {
15122
15240
  setHighlightedFor(flatResults.length);
15123
15241
  setHighlightedIndex(-1);
@@ -15498,7 +15616,7 @@ function FilterList({
15498
15616
  import {
15499
15617
  useEffect as useEffect21,
15500
15618
  useRef as useRef23,
15501
- useState as useState36
15619
+ useState as useState38
15502
15620
  } from "react";
15503
15621
  import { jsx as jsx140, jsxs as jsxs109 } from "react/jsx-runtime";
15504
15622
  function TagSearchInput({
@@ -15527,7 +15645,7 @@ function TagSearchInput({
15527
15645
  const wrapperRef = useRef23(null);
15528
15646
  const hiddenTagsRef = useRef23(null);
15529
15647
  const hiddenTagsPopupRef = useRef23(null);
15530
- const [showHiddenTags, setShowHiddenTags] = useState36(false);
15648
+ const [showHiddenTags, setShowHiddenTags] = useState38(false);
15531
15649
  useEffect21(() => {
15532
15650
  if (!showHiddenTags) return void 0;
15533
15651
  const handleClick = (e) => {
@@ -15695,7 +15813,7 @@ function TagSearchInput({
15695
15813
 
15696
15814
  // src/components/ui/markdown-editor.tsx
15697
15815
  import { Loader2 as Loader22, Upload } from "lucide-react";
15698
- import { useRef as useRef24, useCallback as useCallback16, useState as useState37, useEffect as useEffect22 } from "react";
15816
+ import { useRef as useRef24, useCallback as useCallback16, useState as useState39, useEffect as useEffect22 } from "react";
15699
15817
  import { jsx as jsx141, jsxs as jsxs110 } from "react/jsx-runtime";
15700
15818
  var MDEditor = dynamic(() => import("@uiw/react-md-editor"), { ssr: false });
15701
15819
  var MARKDOWN_EDITOR_STYLE_ID = "ods-markdown-editor-styles";
@@ -15791,9 +15909,9 @@ function MarkdownEditor({
15791
15909
  renderPreview
15792
15910
  }) {
15793
15911
  const fileInputRef = useRef24(null);
15794
- const [isUploading, setIsUploading] = useState37(false);
15795
- const [uploadProgress, setUploadProgress] = useState37("");
15796
- const [defaultExtraCommands, setDefaultExtraCommands] = useState37([]);
15912
+ const [isUploading, setIsUploading] = useState39(false);
15913
+ const [uploadProgress, setUploadProgress] = useState39("");
15914
+ const [defaultExtraCommands, setDefaultExtraCommands] = useState39([]);
15797
15915
  useEffect22(() => {
15798
15916
  let cancelled = false;
15799
15917
  void (async () => {
@@ -15899,7 +16017,7 @@ function MarkdownEditor({
15899
16017
  const scrollParentRef = useRef24(window);
15900
16018
  const EDGE_ZONE = 60;
15901
16019
  const MAX_SCROLL_SPEED = 15;
15902
- const findScrollParent = useCallback16((el) => {
16020
+ const findScrollParent2 = useCallback16((el) => {
15903
16021
  let node = el?.parentElement;
15904
16022
  while (node && node !== document.documentElement) {
15905
16023
  const { overflowY } = window.getComputedStyle(node);
@@ -15936,7 +16054,7 @@ function MarkdownEditor({
15936
16054
  if (e.target.closest(".w-md-editor-bar")) {
15937
16055
  isDraggingRef.current = true;
15938
16056
  mouseYRef.current = e.clientY;
15939
- scrollParentRef.current = findScrollParent(wrapper);
16057
+ scrollParentRef.current = findScrollParent2(wrapper);
15940
16058
  window.addEventListener("mousemove", onMouseMove);
15941
16059
  rafRef.current = requestAnimationFrame(scrollLoop);
15942
16060
  }
@@ -15956,7 +16074,7 @@ function MarkdownEditor({
15956
16074
  window.removeEventListener("mousemove", onMouseMove);
15957
16075
  cancelAnimationFrame(rafRef.current);
15958
16076
  };
15959
- }, [scrollLoop, findScrollParent]);
16077
+ }, [scrollLoop, findScrollParent2]);
15960
16078
  return /* @__PURE__ */ jsxs110("div", { ref: wrapperRef, className: cn("advanced-blog-editor", className), onPaste: handlePaste, children: [
15961
16079
  onUploadFile && /* @__PURE__ */ jsx141(
15962
16080
  "input",
@@ -16016,7 +16134,7 @@ import {
16016
16134
  useEffect as useEffect23,
16017
16135
  useMemo as useMemo16,
16018
16136
  useRef as useRef25,
16019
- useState as useState38
16137
+ useState as useState40
16020
16138
  } from "react";
16021
16139
  import { jsx as jsx142, jsxs as jsxs111 } from "react/jsx-runtime";
16022
16140
  function formatFileSize2(bytes) {
@@ -16067,8 +16185,8 @@ function FileUpload({
16067
16185
  acceptWindowDrops = false,
16068
16186
  pickFiles
16069
16187
  }) {
16070
- const [dragActive, setDragActive] = useState38(false);
16071
- const [validationError, setValidationError] = useState38(null);
16188
+ const [dragActive, setDragActive] = useState40(false);
16189
+ const [validationError, setValidationError] = useState40(null);
16072
16190
  const fileInputRef = useRef25(null);
16073
16191
  const isManaged = managedFiles !== void 0;
16074
16192
  const files = useMemo16(() => {
@@ -16347,7 +16465,7 @@ function FileUpload({
16347
16465
 
16348
16466
  // src/components/ui/image-uploader.tsx
16349
16467
  import { Loader2 as Loader24 } from "lucide-react";
16350
- import { useRef as useRef26, useState as useState39 } from "react";
16468
+ import { useRef as useRef26, useState as useState41 } from "react";
16351
16469
  import { Fragment as Fragment23, jsx as jsx143, jsxs as jsxs112 } from "react/jsx-runtime";
16352
16470
  var DEFAULT_MAX_SIZE = 25 * 1024 * 1024;
16353
16471
  function formatSize(bytes) {
@@ -16388,9 +16506,9 @@ function ImageUploader({
16388
16506
  dropzoneClassName
16389
16507
  }) {
16390
16508
  const inputRef = useRef26(null);
16391
- const [dragActive, setDragActive] = useState39(false);
16392
- const [pressed, setPressed] = useState39(false);
16393
- const [validationError, setValidationError] = useState39(null);
16509
+ const [dragActive, setDragActive] = useState41(false);
16510
+ const [pressed, setPressed] = useState41(false);
16511
+ const [validationError, setValidationError] = useState41(null);
16394
16512
  const interactive = !disabled && !loading;
16395
16513
  const resolvedValue = useAuthedImageSrc(value);
16396
16514
  const hasImage = Boolean(value);
@@ -16542,7 +16660,7 @@ function ActionIconButton({ onClick, disabled, ariaLabel, children }) {
16542
16660
  import { useId as useId5 } from "react";
16543
16661
 
16544
16662
  // src/components/ui/color-preset-select.tsx
16545
- import { useState as useState40 } from "react";
16663
+ import { useState as useState42 } from "react";
16546
16664
  import { HexColorPicker } from "react-colorful";
16547
16665
 
16548
16666
  // src/components/popover.tsx
@@ -16645,8 +16763,8 @@ var FORMATS = ["HEX", "RGB", "HSL"];
16645
16763
  var channelInputClass = "flex-1 min-w-0 [&_input]:text-center [&_input]:tabular-nums";
16646
16764
  var hexInputClass = "flex-1 min-w-0 [&_input]:uppercase";
16647
16765
  function HexInputs({ value, onChange }) {
16648
- const [draft, setDraft] = useState40(value);
16649
- const [syncedValue, setSyncedValue] = useState40(value);
16766
+ const [draft, setDraft] = useState42(value);
16767
+ const [syncedValue, setSyncedValue] = useState42(value);
16650
16768
  if (syncedValue !== value) {
16651
16769
  setSyncedValue(value);
16652
16770
  setDraft(value);
@@ -16682,8 +16800,8 @@ function ChannelInput({
16682
16800
  ariaLabel,
16683
16801
  onCommit
16684
16802
  }) {
16685
- const [draft, setDraft] = useState40(String(value));
16686
- const [syncedValue, setSyncedValue] = useState40(value);
16803
+ const [draft, setDraft] = useState42(String(value));
16804
+ const [syncedValue, setSyncedValue] = useState42(value);
16687
16805
  if (syncedValue !== value) {
16688
16806
  setSyncedValue(value);
16689
16807
  setDraft(String(value));
@@ -16747,8 +16865,8 @@ function HslInputs({ value, onChange }) {
16747
16865
  ] });
16748
16866
  }
16749
16867
  function ColorPickerInput({ value, onChange, disabled, className }) {
16750
- const [open, setOpen] = useState40(false);
16751
- const [format, setFormat] = useState40("HEX");
16868
+ const [open, setOpen] = useState42(false);
16869
+ const [format, setFormat] = useState42("HEX");
16752
16870
  const formatGroups = [
16753
16871
  {
16754
16872
  items: FORMATS.map((f) => ({
@@ -16977,7 +17095,7 @@ function TicketStatusConfigRow({
16977
17095
  }
16978
17096
 
16979
17097
  // src/components/ui/test-run.tsx
16980
- import { useMemo as useMemo17, useState as useState41, useEffect as useEffect24, useCallback as useCallback17 } from "react";
17098
+ import { useMemo as useMemo17, useState as useState43, useEffect as useEffect24, useCallback as useCallback17 } from "react";
16981
17099
  import { jsx as jsx147, jsxs as jsxs115 } from "react/jsx-runtime";
16982
17100
  function formatTestRunDuration(ms) {
16983
17101
  const totalSeconds = Math.floor(ms / 1e3);
@@ -17091,9 +17209,9 @@ function TestRunStatusStat({ status, className }) {
17091
17209
  ] });
17092
17210
  }
17093
17211
  function useTestRunState(campaign) {
17094
- const [hasRun, setHasRun] = useState41(false);
17095
- const [isStarting, setIsStarting] = useState41(false);
17096
- const [durationMs, setDurationMs] = useState41(0);
17212
+ const [hasRun, setHasRun] = useState43(false);
17213
+ const [isStarting, setIsStarting] = useState43(false);
17214
+ const [durationMs, setDurationMs] = useState43(0);
17097
17215
  useEffect24(() => {
17098
17216
  const startedAt = campaign.startedAt;
17099
17217
  if (!startedAt) return void 0;
@@ -17233,14 +17351,14 @@ function TicketDetailSection({ label, children, className }) {
17233
17351
  }
17234
17352
 
17235
17353
  // src/components/ui/ticket-notes-section.tsx
17236
- import { useState as useState43 } from "react";
17354
+ import { useState as useState45 } from "react";
17237
17355
 
17238
17356
  // src/components/ui/ticket-note-card.tsx
17239
- import { useState as useState42 } from "react";
17357
+ import { useState as useState44 } from "react";
17240
17358
  import { Fragment as Fragment26, jsx as jsx150, jsxs as jsxs118 } from "react/jsx-runtime";
17241
17359
  function TicketNoteCard({ note, onEdit, onDelete, className }) {
17242
- const [isEditing, setIsEditing] = useState42(false);
17243
- const [editText, setEditText] = useState42(note.text);
17360
+ const [isEditing, setIsEditing] = useState44(false);
17361
+ const [editText, setEditText] = useState44(note.text);
17244
17362
  const handleSave = () => {
17245
17363
  const trimmed = editText.trim();
17246
17364
  if (!trimmed || !onEdit) return;
@@ -17338,7 +17456,7 @@ function TicketNotesSection({
17338
17456
  isAddingNote,
17339
17457
  className
17340
17458
  }) {
17341
- const [noteText, setNoteText] = useState43("");
17459
+ const [noteText, setNoteText] = useState45("");
17342
17460
  const handleSend = () => {
17343
17461
  const trimmed = noteText.trim();
17344
17462
  if (!trimmed || !onAddNote || isAddingNote) return;
@@ -17526,7 +17644,7 @@ function TicketInfoSection({
17526
17644
  }
17527
17645
 
17528
17646
  // src/components/ui/take-over-ticket-modal.tsx
17529
- import { useState as useState44 } from "react";
17647
+ import { useState as useState46 } from "react";
17530
17648
  import { jsx as jsx153, jsxs as jsxs121 } from "react/jsx-runtime";
17531
17649
  function renderTicketStatusOption(option, isSelected) {
17532
17650
  const { label, color } = option;
@@ -17560,9 +17678,9 @@ function TakeOverTicketModal({
17560
17678
  isPending = false,
17561
17679
  onConfirm
17562
17680
  }) {
17563
- const [statusId, setStatusId] = useState44(initialStatusId ?? null);
17564
- const [assigneeId, setAssigneeId] = useState44(initialAssigneeId ?? null);
17565
- const [seededWith, setSeededWith] = useState44({ isOpen, initialStatusId, initialAssigneeId });
17681
+ const [statusId, setStatusId] = useState46(initialStatusId ?? null);
17682
+ const [assigneeId, setAssigneeId] = useState46(initialAssigneeId ?? null);
17683
+ const [seededWith, setSeededWith] = useState46({ isOpen, initialStatusId, initialAssigneeId });
17566
17684
  if (seededWith.isOpen !== isOpen || seededWith.initialStatusId !== initialStatusId || seededWith.initialAssigneeId !== initialAssigneeId) {
17567
17685
  setSeededWith({ isOpen, initialStatusId, initialAssigneeId });
17568
17686
  if (isOpen) {
@@ -17641,7 +17759,7 @@ function TakeOverTicketModal({
17641
17759
  }
17642
17760
 
17643
17761
  // src/components/ui/reopen-ticket-modal.tsx
17644
- import { useState as useState45 } from "react";
17762
+ import { useState as useState47 } from "react";
17645
17763
  import { jsx as jsx154, jsxs as jsxs122 } from "react/jsx-runtime";
17646
17764
  var REASON_MAX_LENGTH = 1e3;
17647
17765
  function ReopenTicketModal({
@@ -17656,10 +17774,10 @@ function ReopenTicketModal({
17656
17774
  isPending = false,
17657
17775
  onConfirm
17658
17776
  }) {
17659
- const [statusId, setStatusId] = useState45(initialStatusId ?? null);
17660
- const [assigneeId, setAssigneeId] = useState45(initialAssigneeId ?? null);
17661
- const [reason, setReason] = useState45("");
17662
- const [seededWith, setSeededWith] = useState45({ isOpen, initialStatusId, initialAssigneeId });
17777
+ const [statusId, setStatusId] = useState47(initialStatusId ?? null);
17778
+ const [assigneeId, setAssigneeId] = useState47(initialAssigneeId ?? null);
17779
+ const [reason, setReason] = useState47("");
17780
+ const [seededWith, setSeededWith] = useState47({ isOpen, initialStatusId, initialAssigneeId });
17663
17781
  if (seededWith.isOpen !== isOpen || seededWith.initialStatusId !== initialStatusId || seededWith.initialAssigneeId !== initialAssigneeId) {
17664
17782
  setSeededWith({ isOpen, initialStatusId, initialAssigneeId });
17665
17783
  if (isOpen) {
@@ -17755,7 +17873,7 @@ function ReopenTicketModal({
17755
17873
  }
17756
17874
 
17757
17875
  // src/components/ui/reopen-ticket-request-modal.tsx
17758
- import { useState as useState46 } from "react";
17876
+ import { useState as useState48 } from "react";
17759
17877
  import { jsx as jsx155, jsxs as jsxs123 } from "react/jsx-runtime";
17760
17878
  var REASON_MAX_LENGTH2 = 1e3;
17761
17879
  function ReopenTicketRequestModal({
@@ -17765,9 +17883,9 @@ function ReopenTicketRequestModal({
17765
17883
  isPending = false,
17766
17884
  onConfirm
17767
17885
  }) {
17768
- const [reason, setReason] = useState46("");
17769
- const [handoff, setHandoff] = useState46(false);
17770
- const [wasOpen, setWasOpen] = useState46(isOpen);
17886
+ const [reason, setReason] = useState48("");
17887
+ const [handoff, setHandoff] = useState48(false);
17888
+ const [wasOpen, setWasOpen] = useState48(isOpen);
17771
17889
  if (wasOpen !== isOpen) {
17772
17890
  setWasOpen(isOpen);
17773
17891
  if (isOpen) {
@@ -17922,9 +18040,9 @@ function ArrayEntryManager({
17922
18040
  titlePlaceholder,
17923
18041
  isSaving = false
17924
18042
  }) {
17925
- const [draftItems, setDraftItems] = useState47(items);
17926
- const [isDirty, setIsDirty] = useState47(false);
17927
- const [syncedFrom, setSyncedFrom] = useState47({ items, isDirty, isSaving });
18043
+ const [draftItems, setDraftItems] = useState49(items);
18044
+ const [isDirty, setIsDirty] = useState49(false);
18045
+ const [syncedFrom, setSyncedFrom] = useState49({ items, isDirty, isSaving });
17928
18046
  if (syncedFrom.items !== items || syncedFrom.isDirty !== isDirty || syncedFrom.isSaving !== isSaving) {
17929
18047
  setSyncedFrom({ items, isDirty, isSaving });
17930
18048
  if (!isDirty && !isSaving) {
@@ -19270,7 +19388,7 @@ function SsoJoinForm({
19270
19388
  }
19271
19389
 
19272
19390
  // src/components/features/provider-button.tsx
19273
- import { useState as useState48 } from "react";
19391
+ import { useState as useState50 } from "react";
19274
19392
  import { jsx as jsx181 } from "react/jsx-runtime";
19275
19393
  var PROVIDER_CONFIG = {
19276
19394
  microsoft: {
@@ -19295,7 +19413,7 @@ var PROVIDER_CONFIG = {
19295
19413
  }
19296
19414
  };
19297
19415
  function ProviderButton({ provider, onClick, disabled = false, loading = false }) {
19298
- const [internalLoading, setInternalLoading] = useState48(false);
19416
+ const [internalLoading, setInternalLoading] = useState50(false);
19299
19417
  const config = PROVIDER_CONFIG[provider];
19300
19418
  const IconComponent = config.icon;
19301
19419
  const isLoading = loading || internalLoading;
@@ -19374,7 +19492,7 @@ function AuthProvidersList({
19374
19492
 
19375
19493
  // src/components/features/changelog-manager.tsx
19376
19494
  import { Trash2 as Trash22, Plus as Plus3, ChevronDown as ChevronDown7, ChevronUp as ChevronUp3, Eye, EyeOff } from "lucide-react";
19377
- import { useState as useState49 } from "react";
19495
+ import { useState as useState51 } from "react";
19378
19496
  import { jsx as jsx183, jsxs as jsxs145 } from "react/jsx-runtime";
19379
19497
  function ChangelogManager({
19380
19498
  title,
@@ -19393,10 +19511,10 @@ function ChangelogManager({
19393
19511
  const tagLabelOf = (value) => tagOptions?.find((o) => o.value === value)?.label;
19394
19512
  const entryCount = entries.length;
19395
19513
  const allExpanded = () => new Set(Array.from({ length: entryCount }, (_, i) => i));
19396
- const [expandedIndices, setExpandedIndices] = useState49(
19514
+ const [expandedIndices, setExpandedIndices] = useState51(
19397
19515
  () => expandAll && entryCount > 0 ? allExpanded() : /* @__PURE__ */ new Set()
19398
19516
  );
19399
- const [expandSync, setExpandSync] = useState49({ expandAll, entryCount });
19517
+ const [expandSync, setExpandSync] = useState51({ expandAll, entryCount });
19400
19518
  if (expandSync.expandAll !== expandAll || expandSync.entryCount !== entryCount) {
19401
19519
  setExpandSync({ expandAll, entryCount });
19402
19520
  if (expandAll && entryCount > 0) {
@@ -19779,7 +19897,7 @@ var ErrorBoundary = class extends Component2 {
19779
19897
  };
19780
19898
 
19781
19899
  // src/components/features/figma-prototype-viewer.tsx
19782
- import { useState as useState50, useRef as useRef28, useEffect as useEffect27, useCallback as useCallback18, useMemo as useMemo18 } from "react";
19900
+ import { useState as useState52, useRef as useRef28, useEffect as useEffect27, useCallback as useCallback18, useMemo as useMemo18 } from "react";
19783
19901
 
19784
19902
  // src/components/features/section-selector.tsx
19785
19903
  import { useEffect as useEffect26, useRef as useRef27 } from "react";
@@ -20206,23 +20324,23 @@ var FigmaPrototypeViewer = ({
20206
20324
  const containerRef = useRef28(null);
20207
20325
  const navTimerRef = useRef28(null);
20208
20326
  const touchTimerRef = useRef28(null);
20209
- const [screenWidth, setScreenWidth] = useState50(
20327
+ const [screenWidth, setScreenWidth] = useState52(
20210
20328
  typeof window !== "undefined" ? window.innerWidth : DESKTOP_BREAKPOINT
20211
20329
  );
20212
- const [isTouchDevice] = useState50(() => {
20330
+ const [isTouchDevice] = useState52(() => {
20213
20331
  if (typeof window === "undefined") return false;
20214
20332
  return "ontouchstart" in window;
20215
20333
  });
20216
- const [iframeState, setIframeState] = useState50("INITIAL");
20217
- const [iframeKey, setIframeKey] = useState50(0);
20218
- const [isInitialized, setIsInitialized] = useState50(false);
20219
- const [currentNodeId, setCurrentNodeId] = useState50(null);
20220
- const [internalActiveSection, setInternalActiveSection] = useState50(
20334
+ const [iframeState, setIframeState] = useState52("INITIAL");
20335
+ const [iframeKey, setIframeKey] = useState52(0);
20336
+ const [isInitialized, setIsInitialized] = useState52(false);
20337
+ const [currentNodeId, setCurrentNodeId] = useState52(null);
20338
+ const [internalActiveSection, setInternalActiveSection] = useState52(
20221
20339
  config.defaultSectionId || config.sections[0]?.id || ""
20222
20340
  );
20223
20341
  const activeSection = externalActiveSection || internalActiveSection;
20224
- const [isNavigating, setIsNavigating] = useState50(false);
20225
- const [containerDimensions, setContainerDimensions] = useState50({ width: 1200, height: 800 });
20342
+ const [isNavigating, setIsNavigating] = useState52(false);
20343
+ const [containerDimensions, setContainerDimensions] = useState52({ width: 1200, height: 800 });
20226
20344
  const viewMode = useMemo18(() => getViewMode(screenWidth, isTouchDevice), [screenWidth, isTouchDevice]);
20227
20345
  const scaling = useMemo18(
20228
20346
  () => calculateScaling(viewMode, containerDimensions, config),
@@ -20284,7 +20402,7 @@ var FigmaPrototypeViewer = ({
20284
20402
  window.addEventListener("resize", handleResize);
20285
20403
  return () => window.removeEventListener("resize", handleResize);
20286
20404
  }, []);
20287
- const [lastViewMode, setLastViewMode] = useState50(viewMode);
20405
+ const [lastViewMode, setLastViewMode] = useState52(viewMode);
20288
20406
  if (lastViewMode !== viewMode) {
20289
20407
  setLastViewMode(viewMode);
20290
20408
  if (iframeState === "READY") {
@@ -20507,7 +20625,7 @@ var FigmaPrototypeViewer = ({
20507
20625
  };
20508
20626
 
20509
20627
  // src/components/features/filters-dropdown.tsx
20510
- import { useEffect as useEffect28, useRef as useRef29, useState as useState51 } from "react";
20628
+ import { useEffect as useEffect28, useRef as useRef29, useState as useState53 } from "react";
20511
20629
  import { jsx as jsx190, jsxs as jsxs151 } from "react/jsx-runtime";
20512
20630
  var FilterCheckbox = ({ checked, disabled = false, className }) => {
20513
20631
  return /* @__PURE__ */ jsx190(
@@ -20539,11 +20657,11 @@ var FiltersDropdown = ({
20539
20657
  placement = "bottom-start",
20540
20658
  responsive = true
20541
20659
  }) => {
20542
- const [isOpen, setIsOpen] = useState51(false);
20543
- const [shouldRender, setShouldRender] = useState51(false);
20544
- const [isVisible, setIsVisible] = useState51(false);
20545
- const [measuredMobile, setIsMobile] = useState51(false);
20546
- const [actualPlacement, setActualPlacement] = useState51(placement);
20660
+ const [isOpen, setIsOpen] = useState53(false);
20661
+ const [shouldRender, setShouldRender] = useState53(false);
20662
+ const [isVisible, setIsVisible] = useState53(false);
20663
+ const [measuredMobile, setIsMobile] = useState53(false);
20664
+ const [actualPlacement, setActualPlacement] = useState53(placement);
20547
20665
  const dropdownRef = useRef29(null);
20548
20666
  const triggerRef = useRef29(null);
20549
20667
  const containerRef = useRef29(null);
@@ -20607,7 +20725,7 @@ var FiltersDropdown = ({
20607
20725
  const trigger = triggerRef.current;
20608
20726
  dropdown.style.top = `${trigger ? trigger.getBoundingClientRect().bottom + window.scrollY + 8 : 0}px`;
20609
20727
  });
20610
- const [selectedFilters, setSelectedFilters] = useState51(() => {
20728
+ const [selectedFilters, setSelectedFilters] = useState53(() => {
20611
20729
  if (currentFilters) {
20612
20730
  return { ...currentFilters };
20613
20731
  }
@@ -20618,7 +20736,7 @@ var FiltersDropdown = ({
20618
20736
  return initial;
20619
20737
  });
20620
20738
  const currentFiltersStr = currentFilters ? JSON.stringify(currentFilters) : "";
20621
- const [syncedFiltersStr, setSyncedFiltersStr] = useState51(currentFiltersStr);
20739
+ const [syncedFiltersStr, setSyncedFiltersStr] = useState53(currentFiltersStr);
20622
20740
  if (syncedFiltersStr !== currentFiltersStr) {
20623
20741
  setSyncedFiltersStr(currentFiltersStr);
20624
20742
  if (currentFiltersStr) {
@@ -20800,7 +20918,7 @@ var FiltersDropdown = ({
20800
20918
  ] });
20801
20919
  };
20802
20920
  var useFiltersDropdown = (initialSections) => {
20803
- const [appliedFilters, setAppliedFilters] = useState51(() => {
20921
+ const [appliedFilters, setAppliedFilters] = useState53(() => {
20804
20922
  const initial = {};
20805
20923
  initialSections.forEach((section) => {
20806
20924
  if (section.defaultSelected) {
@@ -20871,13 +20989,13 @@ function KnowledgeBaseLinksManager({ links, onChange, className = "" }) {
20871
20989
  }
20872
20990
 
20873
20991
  // src/components/features/loading-provider.tsx
20874
- import { createContext as createContext5, useContext as useContext5, useState as useState52, useEffect as useEffect29 } from "react";
20992
+ import { createContext as createContext6, useContext as useContext6, useState as useState54, useEffect as useEffect29 } from "react";
20875
20993
  import { jsx as jsx193, jsxs as jsxs152 } from "react/jsx-runtime";
20876
- var LoadingContext = createContext5(void 0);
20994
+ var LoadingContext = createContext6(void 0);
20877
20995
  function LoadingProvider({ children }) {
20878
- const [isLoading, setIsLoading] = useState52(false);
20879
- const [progress, setProgress] = useState52(0);
20880
- const [progressFor, setProgressFor] = useState52(isLoading);
20996
+ const [isLoading, setIsLoading] = useState54(false);
20997
+ const [progress, setProgress] = useState54(0);
20998
+ const [progressFor, setProgressFor] = useState54(isLoading);
20881
20999
  if (progressFor !== isLoading) {
20882
21000
  setProgressFor(isLoading);
20883
21001
  setProgress(isLoading ? 10 : 100);
@@ -20913,7 +21031,7 @@ function LoadingProvider({ children }) {
20913
21031
  ] });
20914
21032
  }
20915
21033
  function useLoading() {
20916
- const context = useContext5(LoadingContext);
21034
+ const context = useContext6(LoadingContext);
20917
21035
  if (context === void 0) {
20918
21036
  throw new Error("useLoading must be used within a LoadingProvider");
20919
21037
  }
@@ -20922,7 +21040,7 @@ function useLoading() {
20922
21040
 
20923
21041
  // src/components/features/media-gallery-manager.tsx
20924
21042
  import { Upload as Upload2, Image as ImageIcon2, Video as VideoIcon, Trash2 as Trash23, Loader2 as Loader26, GripVertical, Plus as Plus4 } from "lucide-react";
20925
- import { useState as useState53, useRef as useRef30, useCallback as useCallback19 } from "react";
21043
+ import { useState as useState55, useRef as useRef30, useCallback as useCallback19 } from "react";
20926
21044
  import { jsx as jsx194, jsxs as jsxs153 } from "react/jsx-runtime";
20927
21045
  function MediaGalleryManager({
20928
21046
  media,
@@ -20932,8 +21050,8 @@ function MediaGalleryManager({
20932
21050
  className = ""
20933
21051
  }) {
20934
21052
  const fileInputRef = useRef30(null);
20935
- const [deletingIndex, setDeletingIndex] = useState53(null);
20936
- const [draggedIndex, setDraggedIndex] = useState53(null);
21053
+ const [deletingIndex, setDeletingIndex] = useState55(null);
21054
+ const [draggedIndex, setDraggedIndex] = useState55(null);
20937
21055
  const handleFileSelect = useCallback19(
20938
21056
  async (event) => {
20939
21057
  const file = event.target.files?.[0];
@@ -21137,7 +21255,7 @@ function OSTypeBadgeGroup({ osTypes, className = "", iconSize = "w-5 h-5", maxDi
21137
21255
 
21138
21256
  // src/components/features/parallax-image-showcase.tsx
21139
21257
  import { motion, useScroll, useTransform, useMotionValue, useSpring } from "framer-motion";
21140
- import { useEffect as useEffect30, useState as useState54, useRef as useRef31 } from "react";
21258
+ import { useEffect as useEffect30, useState as useState56, useRef as useRef31 } from "react";
21141
21259
  import { jsx as jsx197, jsxs as jsxs155 } from "react/jsx-runtime";
21142
21260
  var ParallaxImageShowcase = ({
21143
21261
  images,
@@ -21154,7 +21272,7 @@ var ParallaxImageShowcase = ({
21154
21272
  const springConfig = { stiffness: 100, damping: 30 };
21155
21273
  const mouseXSpring = useSpring(mouseX, springConfig);
21156
21274
  const mouseYSpring = useSpring(mouseY, springConfig);
21157
- const [componentRect, setComponentRect] = useState54(null);
21275
+ const [componentRect, setComponentRect] = useState56(null);
21158
21276
  const componentRef = useRef31(null);
21159
21277
  useEffect30(() => {
21160
21278
  const updateRect = () => {
@@ -23353,11 +23471,11 @@ function PushButtonSelector({
23353
23471
 
23354
23472
  // src/components/features/release-media-manager.tsx
23355
23473
  import { Trash2 as Trash24, Plus as Plus5, Image as ImageIcon3, Video as VideoIcon2, Upload as Upload3, Loader2 as Loader27, GripVertical as GripVertical2 } from "lucide-react";
23356
- import { useState as useState55, useRef as useRef33 } from "react";
23474
+ import { useState as useState57, useRef as useRef33 } from "react";
23357
23475
  import { jsx as jsx217, jsxs as jsxs173 } from "react/jsx-runtime";
23358
23476
  function ReleaseMediaManager({ media, onChange, onUpload, className = "" }) {
23359
23477
  const fileInputRef = useRef33(null);
23360
- const [uploadingIndex, setUploadingIndex] = useState55(null);
23478
+ const [uploadingIndex, setUploadingIndex] = useState57(null);
23361
23479
  const handleFileSelect = async (event) => {
23362
23480
  const file = event.target.files?.[0];
23363
23481
  if (!file) return;
@@ -23638,7 +23756,7 @@ SelectButton.displayName = "SelectButton";
23638
23756
 
23639
23757
  // src/components/features/seo-editor-preview.tsx
23640
23758
  import { Globe, ExternalLink as ExternalLink8, Upload as Upload4, X as X5, Loader2 as Loader28 } from "lucide-react";
23641
- import { useState as useState56 } from "react";
23759
+ import { useState as useState58 } from "react";
23642
23760
 
23643
23761
  // src/components/features/ai-enrich/ConfidenceBadge.tsx
23644
23762
  import { jsx as jsx219, jsxs as jsxs175 } from "react/jsx-runtime";
@@ -23708,9 +23826,9 @@ function SEOEditorPreview({
23708
23826
  disabled = false,
23709
23827
  className = ""
23710
23828
  }) {
23711
- const [imageError, setImageError] = useState56(false);
23712
- const [isUploading, setIsUploading] = useState56(false);
23713
- const [fileInputRef, setFileInputRef] = useState56(null);
23829
+ const [imageError, setImageError] = useState58(false);
23830
+ const [isUploading, setIsUploading] = useState58(false);
23831
+ const [fileInputRef, setFileInputRef] = useState58(null);
23714
23832
  const seoTitleLength = (seoTitle || "").length;
23715
23833
  const seoTitleTooLong = seoTitleLength > SEO_TITLE_MAX_LENGTH;
23716
23834
  const seoDescriptionLength = (seoDescription || "").length;
@@ -24283,7 +24401,7 @@ function StatusFilterComponent({
24283
24401
 
24284
24402
  // src/components/features/tags-selector.tsx
24285
24403
  import { Search, X as X6, Plus as Plus6, Loader2 as Loader29 } from "lucide-react";
24286
- import { useState as useState57 } from "react";
24404
+ import { useState as useState59 } from "react";
24287
24405
  import { jsx as jsx225, jsxs as jsxs180 } from "react/jsx-runtime";
24288
24406
  function TagsSelector({
24289
24407
  availableTags,
@@ -24296,9 +24414,9 @@ function TagsSelector({
24296
24414
  disabled = false,
24297
24415
  allowCreate = true
24298
24416
  }) {
24299
- const [searchQuery, setSearchQuery] = useState57("");
24300
- const [showDropdown, setShowDropdown] = useState57(false);
24301
- const [isCreating, setIsCreating] = useState57(false);
24417
+ const [searchQuery, setSearchQuery] = useState59("");
24418
+ const [showDropdown, setShowDropdown] = useState59(false);
24419
+ const [isCreating, setIsCreating] = useState59(false);
24302
24420
  const handleTagAdd = (tagId) => {
24303
24421
  if (!selectedTagIds.includes(tagId) && selectedTagIds.length < maxTags) {
24304
24422
  onTagsChange([...selectedTagIds, tagId]);
@@ -24494,7 +24612,7 @@ function VideoBitesDisplay({
24494
24612
 
24495
24613
  // src/components/features/walkthrough-video.tsx
24496
24614
  import * as DialogPrimitive2 from "@radix-ui/react-dialog";
24497
- import { useCallback as useCallback20, useEffect as useEffect32, useLayoutEffect as useLayoutEffect2, useMemo as useMemo19, useRef as useRef34, useState as useState58 } from "react";
24615
+ import { useCallback as useCallback20, useEffect as useEffect32, useLayoutEffect as useLayoutEffect2, useMemo as useMemo19, useRef as useRef34, useState as useState60 } from "react";
24498
24616
  import { Fragment as Fragment37, jsx as jsx228, jsxs as jsxs182 } from "react/jsx-runtime";
24499
24617
  var isAtEnd = (duration, time) => duration > 0 && duration - time < 1;
24500
24618
  function theaterSeedFromLive(live, fallbackTime, fallbackMuted) {
@@ -24532,8 +24650,8 @@ function WalkthroughVideo({
24532
24650
  const dismissEnabled = dismissal !== false;
24533
24651
  const storageKey = dismissEnabled && dismissal.storageKey || WALKTHROUGH_VIDEO_DISMISS_KEY;
24534
24652
  const dismissalId = video?.id != null ? String(video.id) : "dismissed";
24535
- const [mounted, setMounted] = useState58(false);
24536
- const [dismissed, setDismissed] = useState58(false);
24653
+ const [mounted, setMounted] = useState60(false);
24654
+ const [dismissed, setDismissed] = useState60(false);
24537
24655
  const hasVideo = video != null;
24538
24656
  const videoId = video?.id;
24539
24657
  useEffect32(() => {
@@ -24570,7 +24688,7 @@ function WalkthroughVideo({
24570
24688
  return false;
24571
24689
  }
24572
24690
  }, [hydrated]);
24573
- const [deepLinkHit] = useState58(() => {
24691
+ const [deepLinkHit] = useState60(() => {
24574
24692
  if (!deepLinkParam || typeof window === "undefined") return false;
24575
24693
  try {
24576
24694
  return new URLSearchParams(window.location.search).has(deepLinkParam);
@@ -24578,9 +24696,9 @@ function WalkthroughVideo({
24578
24696
  return false;
24579
24697
  }
24580
24698
  });
24581
- const [openState, setOpenState] = useState58(Boolean(defaultOpen) || deepLinkHit);
24699
+ const [openState, setOpenState] = useState60(Boolean(defaultOpen) || deepLinkHit);
24582
24700
  const open = openProp !== void 0 ? openProp : openState;
24583
- const [pausedOpenSession, setPausedOpenSession] = useState58(Boolean(defaultOpen && defaultOpenPaused) || deepLinkHit);
24701
+ const [pausedOpenSession, setPausedOpenSession] = useState60(Boolean(defaultOpen && defaultOpenPaused) || deepLinkHit);
24584
24702
  const previewHandleRef = useRef34(null);
24585
24703
  const theaterHandleRef = useRef34(null);
24586
24704
  const theaterForcedMuteRef = useRef34(false);
@@ -24588,15 +24706,15 @@ function WalkthroughVideo({
24588
24706
  const closeButtonRef = useRef34(null);
24589
24707
  const userMutedRef = useRef34(false);
24590
24708
  const endedLatchRef = useRef34(false);
24591
- const [hovered, setHovered] = useState58(false);
24592
- const [handoff, setHandoff] = useState58(null);
24593
- const [suspended, setSuspended] = useState58(false);
24594
- const [theaterStart, setTheaterStart] = useState58({ time: 0, muted: false });
24595
- const [footerObservation, setFooterObservation] = useState58(null);
24596
- const [cardFallback, setCardFallback] = useState58({ muted: false, blocked: false });
24597
- const [cardMuted, setCardMuted] = useState58(false);
24598
- const [cardPaused, setCardPaused] = useState58(false);
24599
- const [userMuted, setUserMuted] = useState58(false);
24709
+ const [hovered, setHovered] = useState60(false);
24710
+ const [handoff, setHandoff] = useState60(null);
24711
+ const [suspended, setSuspended] = useState60(false);
24712
+ const [theaterStart, setTheaterStart] = useState60({ time: 0, muted: false });
24713
+ const [footerObservation, setFooterObservation] = useState60(null);
24714
+ const [cardFallback, setCardFallback] = useState60({ muted: false, blocked: false });
24715
+ const [cardMuted, setCardMuted] = useState60(false);
24716
+ const [cardPaused, setCardPaused] = useState60(false);
24717
+ const [userMuted, setUserMuted] = useState60(false);
24600
24718
  const isYouTube = Boolean(video?.youtubeUrl);
24601
24719
  const resumeMode = !open && handoff !== null && !isYouTube;
24602
24720
  const previewAllowed = !previewSuppressed && !isYouTube;
@@ -24639,7 +24757,7 @@ function WalkthroughVideo({
24639
24757
  }
24640
24758
  }, [footerHidden, resumeMode, hovered]);
24641
24759
  const cardModeRef = useRef34("poster");
24642
- const [selfDrivenFor, setSelfDrivenFor] = useState58(null);
24760
+ const [selfDrivenFor, setSelfDrivenFor] = useState60(null);
24643
24761
  const justClosedRef = useRef34(false);
24644
24762
  const justClosedTimerRef = useRef34(null);
24645
24763
  const commitOpen = useCallback20(
@@ -24697,7 +24815,7 @@ function WalkthroughVideo({
24697
24815
  setSelfDrivenFor(true);
24698
24816
  commitOpen(true);
24699
24817
  }, [handoff, cardFallback.muted, commitOpen, pausePreviewNow, setHovered, setSuspended, setHandoff]);
24700
- const [prevOpen, setPrevOpen] = useState58(open);
24818
+ const [prevOpen, setPrevOpen] = useState60(open);
24701
24819
  if (open !== prevOpen) {
24702
24820
  setPrevOpen(open);
24703
24821
  if (open && pausedOpenSession) setPausedOpenSession(false);
@@ -24794,7 +24912,7 @@ function WalkthroughVideo({
24794
24912
  setCardPaused(handoffRef.current?.playing === false);
24795
24913
  }
24796
24914
  }, [resumeMode]);
24797
- const [hoverSeeded, setHoverSeeded] = useState58(hovered);
24915
+ const [hoverSeeded, setHoverSeeded] = useState60(hovered);
24798
24916
  if (hoverSeeded !== hovered) {
24799
24917
  setHoverSeeded(hovered);
24800
24918
  if (hovered) {
@@ -25183,7 +25301,7 @@ function useWalkthroughVideo(opts) {
25183
25301
 
25184
25302
  // src/components/features/video-source-selector.tsx
25185
25303
  import { Upload as Upload5, X as X7, Video as VideoIcon3 } from "lucide-react";
25186
- import { useState as useState59, useCallback as useCallback21 } from "react";
25304
+ import { useState as useState61, useCallback as useCallback21 } from "react";
25187
25305
  import { jsx as jsx229, jsxs as jsxs183 } from "react/jsx-runtime";
25188
25306
  function VideoSourceSelector({
25189
25307
  videoSourceType,
@@ -25207,10 +25325,10 @@ function VideoSourceSelector({
25207
25325
  showTitle = true,
25208
25326
  className = ""
25209
25327
  }) {
25210
- const [isUploading, setIsUploading] = useState59(false);
25211
- const [uploadProgress, setUploadProgress] = useState59(0);
25212
- const [uploadMessage, setUploadMessage] = useState59("");
25213
- const [uploadError, setUploadError] = useState59(null);
25328
+ const [isUploading, setIsUploading] = useState61(false);
25329
+ const [uploadProgress, setUploadProgress] = useState61(0);
25330
+ const [uploadMessage, setUploadMessage] = useState61("");
25331
+ const [uploadError, setUploadError] = useState61(null);
25214
25332
  const handleUploadClick = useCallback21(() => {
25215
25333
  const input = document.createElement("input");
25216
25334
  input.type = "file";
@@ -25510,7 +25628,7 @@ function TranscriptSummaryEditor({
25510
25628
 
25511
25629
  // src/components/features/highlight-video-section.tsx
25512
25630
  import { Sparkles as Sparkles2, Upload as Upload6 } from "lucide-react";
25513
- import { useState as useState60 } from "react";
25631
+ import { useState as useState62 } from "react";
25514
25632
 
25515
25633
  // src/components/features/ai-enrich/AIEnrichSection.tsx
25516
25634
  import { CheckCircle, AlertCircle, Loader2 as Loader210, X as X8 } from "lucide-react";
@@ -25769,7 +25887,7 @@ function HighlightVideoSection({
25769
25887
  disabled = false,
25770
25888
  className = ""
25771
25889
  }) {
25772
- const [uploadError, setUploadError] = useState60(null);
25890
+ const [uploadError, setUploadError] = useState62(null);
25773
25891
  const handleUploadClick = () => {
25774
25892
  const input = document.createElement("input");
25775
25893
  input.type = "file";
@@ -26537,7 +26655,7 @@ function ViewToggle({
26537
26655
 
26538
26656
  // src/components/features/policy-configuration-panel.tsx
26539
26657
  import { ChevronDown as ChevronDown8, Shield } from "lucide-react";
26540
- import { useState as useState61 } from "react";
26658
+ import { useState as useState63 } from "react";
26541
26659
  import { Fragment as Fragment38, jsx as jsx247, jsxs as jsxs197 } from "react/jsx-runtime";
26542
26660
  var approvalLevelLabels = {
26543
26661
  ALLOW: "Allow",
@@ -26705,9 +26823,9 @@ var PolicyConfigurationPanel = ({
26705
26823
  onCategoryPermissionChange,
26706
26824
  className
26707
26825
  }) => {
26708
- const [expandedIds, setExpandedIds] = useState61(/* @__PURE__ */ new Set());
26709
- const [bulkLevels, setBulkLevels] = useState61(NO_BULK_LEVELS);
26710
- const [bulkLevelsFor, setBulkLevelsFor] = useState61(editMode);
26826
+ const [expandedIds, setExpandedIds] = useState63(/* @__PURE__ */ new Set());
26827
+ const [bulkLevels, setBulkLevels] = useState63(NO_BULK_LEVELS);
26828
+ const [bulkLevelsFor, setBulkLevelsFor] = useState63(editMode);
26711
26829
  if (bulkLevelsFor !== editMode) {
26712
26830
  setBulkLevelsFor(editMode);
26713
26831
  setBulkLevels(NO_BULK_LEVELS);
@@ -26744,7 +26862,7 @@ PolicyConfigurationPanel.displayName = "PolicyConfigurationPanel";
26744
26862
 
26745
26863
  // src/components/features/waitlist-form.tsx
26746
26864
  import { getCountries as getCountries2 } from "libphonenumber-js";
26747
- import { useEffect as useEffect33, useState as useState62 } from "react";
26865
+ import { useEffect as useEffect33, useState as useState64 } from "react";
26748
26866
  import { Fragment as Fragment39, jsx as jsx248, jsxs as jsxs198 } from "react/jsx-runtime";
26749
26867
  function WaitlistForm({
26750
26868
  id = "waitlist-form",
@@ -26764,17 +26882,17 @@ function WaitlistForm({
26764
26882
  privacyPolicyUrl,
26765
26883
  consentText = "I agree to receive recurring automated text messages at the phone number provided. Msg & data rates may apply. Msg frequency varies. Reply HELP for help and STOP to cancel."
26766
26884
  }) {
26767
- const [email, setEmail] = useState62(defaultEmail);
26768
- const [phone, setPhone] = useState62(defaultPhone);
26769
- const [countryCode, setCountryCode] = useState62("US");
26885
+ const [email, setEmail] = useState64(defaultEmail);
26886
+ const [phone, setPhone] = useState64(defaultPhone);
26887
+ const [countryCode, setCountryCode] = useState64("US");
26770
26888
  const { toast } = useToast();
26771
26889
  const { honeypotInputProps, getSignals, resetSignals } = useHumanitySignals();
26772
- const [smsConsent, setSmsConsent] = useState62(false);
26890
+ const [smsConsent, setSmsConsent] = useState64(false);
26773
26891
  const isClient = useIsHydrated();
26774
- const [isPhoneInvalid, setIsPhoneInvalid] = useState62(false);
26775
- const [showConsentError, setShowConsentError] = useState62(false);
26892
+ const [isPhoneInvalid, setIsPhoneInvalid] = useState64(false);
26893
+ const [showConsentError, setShowConsentError] = useState64(false);
26776
26894
  const isMailDomainGeneric = hasGenericEmailDomain(email);
26777
- const [syncedDefaultEmail, setSyncedDefaultEmail] = useState62(defaultEmail);
26895
+ const [syncedDefaultEmail, setSyncedDefaultEmail] = useState64(defaultEmail);
26778
26896
  if (syncedDefaultEmail !== defaultEmail) {
26779
26897
  setSyncedDefaultEmail(defaultEmail);
26780
26898
  if (defaultEmail) {
@@ -26936,17 +27054,17 @@ function WaitlistForm({
26936
27054
 
26937
27055
  // src/components/features/notifications/notifications-context.tsx
26938
27056
  import {
26939
- createContext as createContext6,
27057
+ createContext as createContext7,
26940
27058
  useCallback as useCallback22,
26941
- useContext as useContext6,
27059
+ useContext as useContext7,
26942
27060
  useEffect as useEffect34,
26943
27061
  useMemo as useMemo20,
26944
27062
  useReducer,
26945
27063
  useRef as useRef35,
26946
- useState as useState63
27064
+ useState as useState65
26947
27065
  } from "react";
26948
27066
  import { jsx as jsx249 } from "react/jsx-runtime";
26949
- var NotificationsContext = createContext6(null);
27067
+ var NotificationsContext = createContext7(null);
26950
27068
  function mergeNotification(base, incoming) {
26951
27069
  const out = { ...base };
26952
27070
  for (const key of Object.keys(incoming)) {
@@ -27026,9 +27144,9 @@ function NotificationsProvider({
27026
27144
  renderTile
27027
27145
  }) {
27028
27146
  const [notifications, dispatch] = useReducer(reducer, initialNotifications);
27029
- const [isOpen, setIsOpen] = useState63(false);
27030
- const [showPopups, setShowPopupsState] = useState63(defaultShowPopups);
27031
- const [showDesktopPopups, setShowDesktopPopupsState] = useState63(defaultShowDesktopPopups);
27147
+ const [isOpen, setIsOpen] = useState65(false);
27148
+ const [showPopups, setShowPopupsState] = useState65(defaultShowPopups);
27149
+ const [showDesktopPopups, setShowDesktopPopupsState] = useState65(defaultShowDesktopPopups);
27032
27150
  const desktopPopupsConfigured = onShowDesktopPopupsChange !== void 0;
27033
27151
  const actionsRef = useRef35(actions);
27034
27152
  useEffect34(() => {
@@ -27158,44 +27276,44 @@ function NotificationsProvider({
27158
27276
  return /* @__PURE__ */ jsx249(NotificationsContext.Provider, { value, children });
27159
27277
  }
27160
27278
  function useNotifications() {
27161
- const ctx = useContext6(NotificationsContext);
27279
+ const ctx = useContext7(NotificationsContext);
27162
27280
  if (!ctx) {
27163
27281
  throw new Error("useNotifications must be used inside <NotificationsProvider>");
27164
27282
  }
27165
27283
  return ctx;
27166
27284
  }
27167
27285
  function useOptionalNotifications() {
27168
- return useContext6(NotificationsContext);
27286
+ return useContext7(NotificationsContext);
27169
27287
  }
27170
27288
 
27171
27289
  // src/components/features/notifications/notification-drawer.tsx
27172
27290
  import { useEffect as useEffect37, useRef as useRef37 } from "react";
27173
27291
 
27174
27292
  // src/components/navigation/app-layout-context.ts
27175
- import { createContext as createContext7, useContext as useContext7 } from "react";
27176
- var AppLayoutDrawerContainerContext = createContext7(null);
27293
+ import { createContext as createContext8, useContext as useContext8 } from "react";
27294
+ var AppLayoutDrawerContainerContext = createContext8(null);
27177
27295
  function useAppLayoutDrawerContainer() {
27178
- return useContext7(AppLayoutDrawerContainerContext);
27296
+ return useContext8(AppLayoutDrawerContainerContext);
27179
27297
  }
27180
- var AppLayoutDrawerCoordinationContext = createContext7(null);
27298
+ var AppLayoutDrawerCoordinationContext = createContext8(null);
27181
27299
  function useAppLayoutDrawerCoordination() {
27182
- return useContext7(AppLayoutDrawerCoordinationContext);
27300
+ return useContext8(AppLayoutDrawerCoordinationContext);
27183
27301
  }
27184
27302
 
27185
27303
  // src/components/navigation/app-layout-drawer.tsx
27186
27304
  import * as DialogPrimitive3 from "@radix-ui/react-dialog";
27187
27305
  import { cva as cva7 } from "class-variance-authority";
27188
27306
  import {
27189
- createContext as createContext8,
27307
+ createContext as createContext9,
27190
27308
  forwardRef as forwardRef30,
27191
27309
  useCallback as useCallback23,
27192
- useContext as useContext8,
27310
+ useContext as useContext9,
27193
27311
  useEffect as useEffect35,
27194
27312
  useRef as useRef36,
27195
- useState as useState64
27313
+ useState as useState66
27196
27314
  } from "react";
27197
27315
  import { jsx as jsx250, jsxs as jsxs199 } from "react/jsx-runtime";
27198
- var DrawerOpenContext = createContext8(false);
27316
+ var DrawerOpenContext = createContext9(false);
27199
27317
  var AppLayoutDrawerRoot = ({
27200
27318
  open: openProp,
27201
27319
  defaultOpen,
@@ -27204,7 +27322,7 @@ var AppLayoutDrawerRoot = ({
27204
27322
  children,
27205
27323
  ...rest
27206
27324
  }) => {
27207
- const [internalOpen, setInternalOpen] = useState64(defaultOpen ?? false);
27325
+ const [internalOpen, setInternalOpen] = useState66(defaultOpen ?? false);
27208
27326
  const isControlled = openProp !== void 0;
27209
27327
  const open = isControlled ? openProp : internalOpen;
27210
27328
  const handleOpenChange = useCallback23(
@@ -27221,7 +27339,7 @@ var AppLayoutDrawerRoot = ({
27221
27339
  openRef.current = open;
27222
27340
  handleOpenChangeRef.current = handleOpenChange;
27223
27341
  });
27224
- const [selfHandle] = useState64(() => ({
27342
+ const [selfHandle] = useState66(() => ({
27225
27343
  close: () => {
27226
27344
  if (openRef.current) handleOpenChangeRef.current(false);
27227
27345
  }
@@ -27304,7 +27422,7 @@ function useContainedResizableSize({
27304
27422
  storageKey,
27305
27423
  container
27306
27424
  }) {
27307
- const [available, setAvailable] = useState64(0);
27425
+ const [available, setAvailable] = useState66(0);
27308
27426
  useEffect35(() => {
27309
27427
  if (!enabled || !container) return void 0;
27310
27428
  const update = () => {
@@ -27336,7 +27454,7 @@ function useContainedResizableSize({
27336
27454
  return defaultSize;
27337
27455
  }
27338
27456
  }, [enabled, storageKey, defaultSize]);
27339
- const [rawSize, setSizeRaw] = useState64(readInitial);
27457
+ const [rawSize, setSizeRaw] = useState66(readInitial);
27340
27458
  const size = enabled ? clampToContainer(rawSize) : rawSize;
27341
27459
  const setSize = useCallback23((next) => setSizeRaw(clampToContainer(next)), [clampToContainer]);
27342
27460
  useEffect35(() => {
@@ -27466,8 +27584,8 @@ var AppLayoutDrawerContent = forwardRef30(
27466
27584
  }, ref) => {
27467
27585
  const contextContainer = useAppLayoutDrawerContainer();
27468
27586
  const portalContainer = container !== void 0 ? container : contextContainer;
27469
- const open = useContext8(DrawerOpenContext);
27470
- const [hasOpened, setHasOpened] = useState64(Boolean(open));
27587
+ const open = useContext9(DrawerOpenContext);
27588
+ const [hasOpened, setHasOpened] = useState66(Boolean(open));
27471
27589
  if (open && !hasOpened) setHasOpened(true);
27472
27590
  const persist = keepMounted && hasOpened;
27473
27591
  useEffect35(() => {
@@ -27521,7 +27639,7 @@ var AppLayoutDrawerContent = forwardRef30(
27521
27639
  const resolvedSide = side ?? "right";
27522
27640
  const isHorizontal = HORIZONTAL_SIDES.has(resolvedSide);
27523
27641
  const initialSize = defaultSize ?? (isHorizontal ? 560 : 480);
27524
- const [isMobile, setIsMobile] = useState64(false);
27642
+ const [isMobile, setIsMobile] = useState66(false);
27525
27643
  useEffect35(() => {
27526
27644
  if (typeof window === "undefined") return void 0;
27527
27645
  const mq = window.matchMedia(`(max-width: ${mobileBreakpoint - 1}px)`);
@@ -27633,7 +27751,7 @@ var AppLayoutDrawerBody = DrawerBody;
27633
27751
  var AppLayoutDrawerFooter = DrawerFooter;
27634
27752
 
27635
27753
  // src/components/features/notifications/notification-tile.tsx
27636
- import { useEffect as useEffect36, useState as useState65 } from "react";
27754
+ import { useEffect as useEffect36, useState as useState67 } from "react";
27637
27755
  import { jsx as jsx251, jsxs as jsxs200 } from "react/jsx-runtime";
27638
27756
  var variantBySeverity = {
27639
27757
  INFO: "info",
@@ -27674,11 +27792,11 @@ function NotificationTile({
27674
27792
  settled
27675
27793
  } = notification;
27676
27794
  const accentVariant = (severity ? variantBySeverity[severity] : void 0) ?? variant;
27677
- const [failedImageUrl, setFailedImageUrl] = useState65(null);
27795
+ const [failedImageUrl, setFailedImageUrl] = useState67(null);
27678
27796
  const image = imageUrl && imageUrl !== failedImageUrl ? imageUrl : void 0;
27679
27797
  const createdAtDate = new Date(createdAt);
27680
27798
  const createdAtIso = Number.isNaN(createdAtDate.getTime()) ? null : createdAtDate.toISOString();
27681
- const [initialElapsed] = useState65(() => Date.now() - createdAt);
27799
+ const [initialElapsed] = useState67(() => Date.now() - createdAt);
27682
27800
  const isLive = !read && !settled && initialElapsed < liveDurationMs;
27683
27801
  const counting = isLive && !paused;
27684
27802
  useEffect36(() => {
@@ -28040,7 +28158,7 @@ function NotificationsHistoryButton({ onClick, historyHref }) {
28040
28158
  }
28041
28159
 
28042
28160
  // src/components/features/notifications/notification-popups.tsx
28043
- import { useEffect as useEffect38, useState as useState66 } from "react";
28161
+ import { useEffect as useEffect38, useState as useState68 } from "react";
28044
28162
  import { jsx as jsx253 } from "react/jsx-runtime";
28045
28163
  var positionClasses = {
28046
28164
  "top-right": "top-4 right-4",
@@ -28057,7 +28175,7 @@ function NotificationPopups({
28057
28175
  renderTile: renderTileProp
28058
28176
  }) {
28059
28177
  const ctx = useOptionalNotifications();
28060
- const [now, setNow] = useState66(() => Date.now());
28178
+ const [now, setNow] = useState68(() => Date.now());
28061
28179
  const hasAgeingNotifications = Boolean(ctx?.notifications.some((n) => !n.read && !n.settled));
28062
28180
  useEffect38(() => {
28063
28181
  if (!hasAgeingNotifications) return void 0;
@@ -28135,7 +28253,7 @@ function NotificationPopups({
28135
28253
  }
28136
28254
 
28137
28255
  // src/components/features/notifications/approval-request-notification-tile.tsx
28138
- import { useMemo as useMemo21, useState as useState67 } from "react";
28256
+ import { useMemo as useMemo21, useState as useState69 } from "react";
28139
28257
 
28140
28258
  // src/components/features/notifications/types.ts
28141
28259
  var TICKET_APPROVAL_REQUEST_TYPE = "TICKET_APPROVAL_REQUEST";
@@ -28208,10 +28326,10 @@ function ApprovalRequestNotificationTile({
28208
28326
  className,
28209
28327
  titleLines
28210
28328
  }) {
28211
- const [expanded, setExpanded] = useState67(defaultExpanded);
28212
- const [pinned, setPinned] = useState67(defaultExpanded);
28213
- const [processing, setProcessing] = useState67(false);
28214
- const [localStatus, setLocalStatus] = useState67(null);
28329
+ const [expanded, setExpanded] = useState69(defaultExpanded);
28330
+ const [pinned, setPinned] = useState69(defaultExpanded);
28331
+ const [processing, setProcessing] = useState69(false);
28332
+ const [localStatus, setLocalStatus] = useState69(null);
28215
28333
  const approval = getApprovalMeta(notification);
28216
28334
  const resolvedStatus = resolutionToStatus(approval?.resolution);
28217
28335
  const status = resolvedStatus !== "pending" ? resolvedStatus : localStatus ?? "pending";
@@ -28307,16 +28425,16 @@ function ApprovalRequestNotificationTile({
28307
28425
  }
28308
28426
 
28309
28427
  // src/components/features/time-tracker/time-tracker-context.tsx
28310
- import { createContext as createContext9, useCallback as useCallback24, useContext as useContext9, useState as useState68 } from "react";
28428
+ import { createContext as createContext10, useCallback as useCallback24, useContext as useContext10, useState as useState70 } from "react";
28311
28429
  import { jsx as jsx255 } from "react/jsx-runtime";
28312
- var TimeTrackerContext = createContext9(null);
28430
+ var TimeTrackerContext = createContext10(null);
28313
28431
  function TimeTrackerProvider({
28314
28432
  children,
28315
28433
  defaultOpen = false,
28316
28434
  enabled = true,
28317
28435
  ...data
28318
28436
  }) {
28319
- const [isOpen, setIsOpen] = useState68(defaultOpen);
28437
+ const [isOpen, setIsOpen] = useState70(defaultOpen);
28320
28438
  const open = useCallback24(() => setIsOpen(true), []);
28321
28439
  const close = useCallback24(() => setIsOpen(false), []);
28322
28440
  const toggle = useCallback24(() => setIsOpen((v) => !v), []);
@@ -28324,21 +28442,21 @@ function TimeTrackerProvider({
28324
28442
  return /* @__PURE__ */ jsx255(TimeTrackerContext.Provider, { value: enabled ? value : null, children });
28325
28443
  }
28326
28444
  function useTimeTracker() {
28327
- const ctx = useContext9(TimeTrackerContext);
28445
+ const ctx = useContext10(TimeTrackerContext);
28328
28446
  if (!ctx) {
28329
28447
  throw new Error("useTimeTracker must be used inside <TimeTrackerProvider>");
28330
28448
  }
28331
28449
  return ctx;
28332
28450
  }
28333
28451
  function useOptionalTimeTracker() {
28334
- return useContext9(TimeTrackerContext);
28452
+ return useContext10(TimeTrackerContext);
28335
28453
  }
28336
28454
 
28337
28455
  // src/components/features/time-tracker/time-tracker-panel.tsx
28338
- import { useState as useState70 } from "react";
28456
+ import { useState as useState72 } from "react";
28339
28457
 
28340
28458
  // src/components/features/time-tracker/use-tracker-clock.ts
28341
- import { useEffect as useEffect39, useState as useState69 } from "react";
28459
+ import { useEffect as useEffect39, useState as useState71 } from "react";
28342
28460
  function formatElapsed(totalMs) {
28343
28461
  const totalSeconds = Math.max(0, Math.floor(totalMs / 1e3));
28344
28462
  const hours = Math.floor(totalSeconds / 3600);
@@ -28348,7 +28466,7 @@ function formatElapsed(totalMs) {
28348
28466
  return `${pad(hours)}:${pad(minutes)}:${pad(seconds)}`;
28349
28467
  }
28350
28468
  function useTrackerClock({ status, runningSince, accumulatedMs = 0 }) {
28351
- const [now, setNow] = useState69(() => Date.now());
28469
+ const [now, setNow] = useState71(() => Date.now());
28352
28470
  useEffect39(() => {
28353
28471
  if (status !== "tracking") return void 0;
28354
28472
  const tick = () => setNow(Date.now());
@@ -28405,12 +28523,12 @@ function TimeTrackerPanel({
28405
28523
  className
28406
28524
  }) {
28407
28525
  const elapsedLabel = useTrackerClock({ status, runningSince, accumulatedMs });
28408
- const [showValidationError, setShowValidationError] = useState70(false);
28526
+ const [showValidationError, setShowValidationError] = useState72(false);
28409
28527
  const isRunning = status === "tracking";
28410
28528
  const isActive = status !== "ready";
28411
28529
  const hasContent = selectedTicketId != null || notes.trim() !== "";
28412
28530
  const showFieldError = isActive && showValidationError && !hasContent;
28413
- const [wasReady, setWasReady] = useState70(!isActive);
28531
+ const [wasReady, setWasReady] = useState72(!isActive);
28414
28532
  if (wasReady !== !isActive) {
28415
28533
  setWasReady(!isActive);
28416
28534
  if (!isActive) setShowValidationError(false);
@@ -28670,7 +28788,7 @@ function LastEntryRow({ entry, onClick }) {
28670
28788
 
28671
28789
  // src/components/features/time-tracker/time-tracker-header-button.tsx
28672
28790
  import * as PopoverPrimitive7 from "@radix-ui/react-popover";
28673
- import { useEffect as useEffect40, useRef as useRef38, useState as useState71 } from "react";
28791
+ import { useEffect as useEffect40, useRef as useRef38, useState as useState73 } from "react";
28674
28792
 
28675
28793
  // src/components/navigation/unread-dot.tsx
28676
28794
  import { jsx as jsx257 } from "react/jsx-runtime";
@@ -28755,7 +28873,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
28755
28873
  isOpenRef.current = isOpen;
28756
28874
  closeRef.current = ctx?.close;
28757
28875
  });
28758
- const [selfHandle] = useState71(() => ({
28876
+ const [selfHandle] = useState73(() => ({
28759
28877
  close: () => {
28760
28878
  if (isOpenRef.current) closeRef.current?.();
28761
28879
  }
@@ -28838,7 +28956,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
28838
28956
  import { combine as combine3 } from "@atlaskit/pragmatic-drag-and-drop/combine";
28839
28957
  import { monitorForElements } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
28840
28958
  import { preventUnhandled } from "@atlaskit/pragmatic-drag-and-drop/utils/prevent-unhandled";
28841
- import { Fragment as Fragment45, useCallback as useCallback27, useEffect as useEffect44, useMemo as useMemo23, useRef as useRef43, useState as useState76 } from "react";
28959
+ import { Fragment as Fragment45, useCallback as useCallback27, useEffect as useEffect44, useMemo as useMemo23, useRef as useRef43, useState as useState78 } from "react";
28842
28960
  import { createPortal } from "react-dom";
28843
28961
 
28844
28962
  // src/utils/auto-scroll-ancestors.ts
@@ -28951,7 +29069,7 @@ function aimToChange(columns, ticketId, aim) {
28951
29069
  // src/components/features/board/board-column.tsx
28952
29070
  import { attachClosestEdge as attachClosestEdge2 } from "@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge";
28953
29071
  import { dropTargetForElements as dropTargetForElements2 } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
28954
- import { memo as memo6, useCallback as useCallback25, useEffect as useEffect42, useRef as useRef41, useState as useState74 } from "react";
29072
+ import { memo as memo6, useCallback as useCallback25, useEffect as useEffect42, useRef as useRef41, useState as useState76 } from "react";
28955
29073
 
28956
29074
  // src/components/features/board/board-column-header.tsx
28957
29075
  import { jsx as jsx260, jsxs as jsxs206 } from "react/jsx-runtime";
@@ -29047,14 +29165,14 @@ function tintOnDark(hex) {
29047
29165
  }
29048
29166
 
29049
29167
  // src/components/features/board/drop-aim.ts
29050
- import { createContext as createContext10, useContext as useContext10 } from "react";
29051
- var DropAimContext = createContext10(null);
29052
- var BoardLiftContext = createContext10(null);
29168
+ import { createContext as createContext11, useContext as useContext11 } from "react";
29169
+ var DropAimContext = createContext11(null);
29170
+ var BoardLiftContext = createContext11(null);
29053
29171
  function useBoardLift() {
29054
- return useContext10(BoardLiftContext);
29172
+ return useContext11(BoardLiftContext);
29055
29173
  }
29056
29174
  function useDropAim() {
29057
- return useContext10(DropAimContext);
29175
+ return useContext11(DropAimContext);
29058
29176
  }
29059
29177
  function isSameAim(a, b) {
29060
29178
  if (a === b) return true;
@@ -29126,7 +29244,7 @@ import {
29126
29244
  useEffect as useEffect41,
29127
29245
  useMemo as useMemo22,
29128
29246
  useRef as useRef40,
29129
- useState as useState73
29247
+ useState as useState75
29130
29248
  } from "react";
29131
29249
 
29132
29250
  // src/utils/drag-effect.ts
@@ -29140,10 +29258,10 @@ function holdMoveDragEffect(element) {
29140
29258
  }
29141
29259
 
29142
29260
  // src/components/features/board/board-ticket-approval.tsx
29143
- import { useState as useState72 } from "react";
29261
+ import { useState as useState74 } from "react";
29144
29262
  import { jsx as jsx261, jsxs as jsxs207 } from "react/jsx-runtime";
29145
29263
  function BoardTicketApproval({ pendingApproval, onApprove, onReject }) {
29146
- const [expanded, setExpanded] = useState72(false);
29264
+ const [expanded, setExpanded] = useState74(false);
29147
29265
  const { innerRef, containerStyle } = useCollapsible({ expanded });
29148
29266
  const isAdmin = pendingApproval.approvalType === "ADMIN";
29149
29267
  return /* @__PURE__ */ jsxs207("div", { className: "pointer-events-auto flex flex-col", children: [
@@ -29191,7 +29309,7 @@ function BoardTicketApproval({ pendingApproval, onApprove, onReject }) {
29191
29309
  }
29192
29310
 
29193
29311
  // src/components/features/board/pending-move.ts
29194
- import { createContext as createContext11, useContext as useContext11 } from "react";
29312
+ import { createContext as createContext12, useContext as useContext12 } from "react";
29195
29313
  function applyPendingMove(columns, move) {
29196
29314
  const ticket = columns.flatMap((column) => column.tickets).find((t) => t.id === move.ticketId);
29197
29315
  if (!ticket || !columns.some((column) => column.id === move.toColumnId)) return columns;
@@ -29209,9 +29327,9 @@ function insertAfter(tickets, ticket, afterId) {
29209
29327
  const at = after < 0 ? tickets.length : after + 1;
29210
29328
  return [...tickets.slice(0, at), ticket, ...tickets.slice(at)];
29211
29329
  }
29212
- var LandingCardContext = createContext11(null);
29330
+ var LandingCardContext = createContext12(null);
29213
29331
  function useIsLanding(ticketId) {
29214
- return useContext11(LandingCardContext) === ticketId;
29332
+ return useContext12(LandingCardContext) === ticketId;
29215
29333
  }
29216
29334
  function hasMoveSettled(columns, move) {
29217
29335
  const tickets = columns.find((c) => c.id === move.toColumnId)?.tickets;
@@ -29361,7 +29479,7 @@ var TicketCard = memo5(function TicketCardImpl({
29361
29479
  useEffect41(() => {
29362
29480
  ticketRef.current = ticket;
29363
29481
  });
29364
- const [isDragging, setIsDragging] = useState73(false);
29482
+ const [isDragging, setIsDragging] = useState75(false);
29365
29483
  const isLanding = useIsLanding(ticket.id);
29366
29484
  const aim = useDropAim();
29367
29485
  const closestEdge = aim && aim.columnId === columnId && aim.ticketId === ticket.id ? aim.edge : null;
@@ -29598,7 +29716,7 @@ var BoardColumn = memo6(function BoardColumnImpl({
29598
29716
  className
29599
29717
  }) {
29600
29718
  const laneRef = useRef41(null);
29601
- const [isOver, setIsOver] = useState74(false);
29719
+ const [isOver, setIsOver] = useState76(false);
29602
29720
  useEffect42(() => {
29603
29721
  const element = laneRef.current;
29604
29722
  if (!element || collapsed || touchMode || column.dropDisabled) return void 0;
@@ -29777,10 +29895,10 @@ function resolveBoardDrop(columns, { source, target }) {
29777
29895
  }
29778
29896
 
29779
29897
  // src/components/features/board/use-board-collapse.ts
29780
- import { useCallback as useCallback26, useEffect as useEffect43, useRef as useRef42, useState as useState75 } from "react";
29898
+ import { useCallback as useCallback26, useEffect as useEffect43, useRef as useRef42, useState as useState77 } from "react";
29781
29899
  function useBoardCollapse(storageKey) {
29782
29900
  const [persisted, setPersisted] = useLocalStorage(storageKey ?? "__board_collapse_unused__", {});
29783
- const [memory, setMemory] = useState75({});
29901
+ const [memory, setMemory] = useState77({});
29784
29902
  const collapsed = storageKey ? persisted : memory;
29785
29903
  const setMap = storageKey ? setPersisted : setMemory;
29786
29904
  const setMapRef = useRef42(setMap);
@@ -29895,20 +30013,20 @@ function DragBoard({
29895
30013
  },
29896
30014
  [scrollRef]
29897
30015
  );
29898
- const [aim, setAim] = useState76(null);
29899
- const [lifted, setLifted] = useState76(null);
29900
- const [announcement, setAnnouncement] = useState76("");
30016
+ const [aim, setAim] = useState78(null);
30017
+ const [lifted, setLifted] = useState78(null);
30018
+ const [announcement, setAnnouncement] = useState78("");
29901
30019
  const dragGeometry = useRef43(null);
29902
- const [landingPreview, setLandingPreview] = useState76(null);
30020
+ const [landingPreview, setLandingPreview] = useState78(null);
29903
30021
  const previewRef = useRef43(null);
29904
- const [reportedMove, setPendingMove] = useState76(null);
30022
+ const [reportedMove, setPendingMove] = useState78(null);
29905
30023
  const pendingMove = reportedMove && !hasMoveSettled(columns, reportedMove) ? reportedMove : null;
29906
30024
  const view = useMemo23(() => pendingMove ? applyPendingMove(columns, pendingMove) : columns, [columns, pendingMove]);
29907
30025
  useEffect44(() => {
29908
30026
  columnsRef.current = view;
29909
30027
  onChangeRef.current = onChange;
29910
30028
  });
29911
- const [landing, setLanding] = useState76(null);
30029
+ const [landing, setLanding] = useState78(null);
29912
30030
  const landingTimer = useRef43(null);
29913
30031
  const pointRef = useRef43({ x: 0, y: 0 });
29914
30032
  const laneLabel = useCallback27((columnId) => view.find((c) => c.id === columnId)?.label ?? columnId, [view]);
@@ -30292,23 +30410,23 @@ import { combine as combine4 } from "@atlaskit/pragmatic-drag-and-drop/combine";
30292
30410
  import { dropTargetForElements as dropTargetForElements3, monitorForElements as monitorForElements2 } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
30293
30411
  import { preventUnhandled as preventUnhandled2 } from "@atlaskit/pragmatic-drag-and-drop/utils/prevent-unhandled";
30294
30412
  import {
30295
- createContext as createContext12,
30413
+ createContext as createContext13,
30296
30414
  useCallback as useCallback28,
30297
- useContext as useContext12,
30415
+ useContext as useContext13,
30298
30416
  useEffect as useEffect45,
30299
30417
  useId as useId6,
30300
30418
  useMemo as useMemo24,
30301
30419
  useRef as useRef44,
30302
- useState as useState77
30420
+ useState as useState79
30303
30421
  } from "react";
30304
30422
  import { jsx as jsx267, jsxs as jsxs212 } from "react/jsx-runtime";
30305
30423
  var SORTABLE_ITEM_ATTRIBUTE = "data-sortable-item";
30306
30424
  var SHIFT_MS = 200;
30307
30425
  var DROP_MS2 = 150;
30308
30426
  var EASING = "cubic-bezier(0.2, 0, 0, 1)";
30309
- var SortableListContext = createContext12(null);
30427
+ var SortableListContext = createContext13(null);
30310
30428
  function useSortableListContext() {
30311
- const context = useContext12(SortableListContext);
30429
+ const context = useContext13(SortableListContext);
30312
30430
  if (!context) throw new Error("useSortableItem must be used inside a <SortableList>");
30313
30431
  return context;
30314
30432
  }
@@ -30316,7 +30434,7 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
30316
30434
  const listRef = useRef44(null);
30317
30435
  const dragAndDropEnabled = useDragAndDropEnabled();
30318
30436
  const dragType = useId6();
30319
- const [announcement, setAnnouncement] = useState77("");
30437
+ const [announcement, setAnnouncement] = useState79("");
30320
30438
  const onReorderRef = useRef44(onReorder);
30321
30439
  const getItemLabelRef = useRef44(getItemLabel);
30322
30440
  useEffect45(() => {
@@ -30324,7 +30442,7 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
30324
30442
  getItemLabelRef.current = getItemLabel;
30325
30443
  });
30326
30444
  const flipFrom = useRef44(null);
30327
- const [flipTick, setFlipTick] = useState77(0);
30445
+ const [flipTick, setFlipTick] = useState79(0);
30328
30446
  const flipTimer = useRef44(null);
30329
30447
  const readItems = useCallback28(
30330
30448
  () => [...listRef.current?.querySelectorAll(`[${SORTABLE_ITEM_ATTRIBUTE}]`) ?? []],
@@ -30499,13 +30617,13 @@ function SortableMoveButtons({ index, count, label, className }) {
30499
30617
  import { combine as combine5 } from "@atlaskit/pragmatic-drag-and-drop/combine";
30500
30618
  import { draggable as draggable2 } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
30501
30619
  import { disableNativeDragPreview } from "@atlaskit/pragmatic-drag-and-drop/element/disable-native-drag-preview";
30502
- import { useCallback as useCallback29, useEffect as useEffect46, useState as useState78 } from "react";
30620
+ import { useCallback as useCallback29, useEffect as useEffect46, useState as useState80 } from "react";
30503
30621
  function useSortableItem() {
30504
30622
  const { dragType, disabled, dragAndDropEnabled, reorder, readItems } = useSortableListContext();
30505
30623
  const inert = disabled || !dragAndDropEnabled;
30506
- const [item, setItem] = useState78(null);
30507
- const [handle, setHandle] = useState78(null);
30508
- const [isDragging, setIsDragging] = useState78(false);
30624
+ const [item, setItem] = useState80(null);
30625
+ const [handle, setHandle] = useState80(null);
30626
+ const [isDragging, setIsDragging] = useState80(false);
30509
30627
  const itemRef = useCallback29((node) => {
30510
30628
  node?.setAttribute(SORTABLE_ITEM_ATTRIBUTE, "");
30511
30629
  setItem(node);
@@ -31228,4 +31346,4 @@ export {
31228
31346
  LazyMount,
31229
31347
  IconTile
31230
31348
  };
31231
- //# sourceMappingURL=chunk-LECSFMGM.js.map
31349
+ //# sourceMappingURL=chunk-OEJRLL5C.js.map