@factorialco/f0-react 6.62.0 → 6.63.0

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.
@@ -16,7 +16,7 @@ function wp(C, l, f) {
16
16
  const U = gS(C, l) / jx;
17
17
  return Lx(f?.roundingMethod)(U);
18
18
  }
19
- const MZ = ["sm", "md", "lg"], VZ = [
19
+ const EZ = ["sm", "md", "lg"], TZ = [
20
20
  "categorical-1",
21
21
  "categorical-2",
22
22
  "categorical-3",
@@ -929,8 +929,8 @@ const Zm = Zt.create(Ig), Nm = {
929
929
  )
930
930
  ] })
931
931
  ] });
932
- }, Dp = qI(null), PZ = Dp.Provider;
933
- function GZ() {
932
+ }, Dp = qI(null), kZ = Dp.Provider;
933
+ function ZZ() {
934
934
  return Ji(Dp);
935
935
  }
936
936
  function US(C, l) {
@@ -955,7 +955,7 @@ function US(C, l) {
955
955
  f
956
956
  ]);
957
957
  }
958
- function EZ({
958
+ function NZ({
959
959
  module: C,
960
960
  statusTag: l = void 0,
961
961
  breadcrumbs: f = [],
@@ -1123,7 +1123,7 @@ function QS({ action: C }) {
1123
1123
  }
1124
1124
  );
1125
1125
  }
1126
- const TZ = c1, r0 = process.env.NODE_ENV !== "production", A0 = (C) => {
1126
+ const KZ = c1, r0 = process.env.NODE_ENV !== "production", A0 = (C) => {
1127
1127
  r0 && console.warn(`[f0] ${C}`);
1128
1128
  }, yS = (C) => {
1129
1129
  r0 && !sd.hasProvider() && console.warn(
@@ -1167,7 +1167,7 @@ const TZ = c1, r0 = process.env.NODE_ENV !== "production", A0 = (C) => {
1167
1167
  sd.removeItem(C);
1168
1168
  }, _S = () => {
1169
1169
  sd.clear();
1170
- }, kZ = {
1170
+ }, WZ = {
1171
1171
  /**
1172
1172
  * Show a coachmark, or queue it behind the one already on screen.
1173
1173
  * @param options One coachmark, or a sequence of `steps`
@@ -1536,7 +1536,7 @@ const TZ = c1, r0 = process.env.NODE_ENV !== "production", A0 = (C) => {
1536
1536
  );
1537
1537
  };
1538
1538
  a0.displayName = "F0EmojiPicker";
1539
- const ZZ = ["sm", "md", "lg"], NZ = VI(
1539
+ const YZ = ["sm", "md", "lg"], zZ = VI(
1540
1540
  jg("F0EmojiPicker", a0)
1541
1541
  ), l0 = Ar({
1542
1542
  base: "flex w-full flex-col rounded-lg p-[1px]",
@@ -1668,7 +1668,7 @@ const ZZ = ["sm", "md", "lg"], NZ = VI(
1668
1668
  (C, l) => /* @__PURE__ */ p(WS, { ref: l, ...C })
1669
1669
  ), zS = ({ compact: C, variant: l }) => /* @__PURE__ */ p(YS, { compact: C, variant: l });
1670
1670
  c0.displayName = "F0Callout";
1671
- const KZ = XI(
1671
+ const JZ = XI(
1672
1672
  VI(c0),
1673
1673
  zS
1674
1674
  ), d0 = 10, u0 = 3, Ym = (C, l) => {
@@ -1998,18 +1998,18 @@ const sv = ({ compact: C = !1 }) => /* @__PURE__ */ p(
1998
1998
  ] })
1999
1999
  ] })
2000
2000
  }
2001
- ), WZ = VI(
2001
+ ), HZ = VI(
2002
2002
  jg(
2003
2003
  "F0MeetingCard",
2004
2004
  XI(h0, sv)
2005
2005
  )
2006
- ), YZ = [
2006
+ ), OZ = [
2007
2007
  "scheduled",
2008
2008
  "inProgress",
2009
2009
  "summarizing",
2010
2010
  "finished",
2011
2011
  "cancelled"
2012
- ], zZ = ["auto", "avatars", "count"], av = "Previous", zm = "bg-f1-background", lv = ({
2012
+ ], jZ = ["auto", "avatars", "count"], av = "Previous", zm = "bg-f1-background", lv = ({
2013
2013
  items: C,
2014
2014
  currentId: l,
2015
2015
  onNavigate: f,
@@ -2117,7 +2117,7 @@ const sv = ({ compact: C = !1 }) => /* @__PURE__ */ p(
2117
2117
  children: Te.content
2118
2118
  }
2119
2119
  );
2120
- }, JZ = VI(
2120
+ }, LZ = VI(
2121
2121
  jg("F0CarouselDialog", lv)
2122
2122
  );
2123
2123
  var Sc = { exports: {} };
@@ -27445,7 +27445,7 @@ const _0 = (C, l) => (!pa && typeof document < "u" && (pa = document.createEleme
27445
27445
  C.off("zoom", b);
27446
27446
  };
27447
27447
  }, [C, l]), f;
27448
- }, HZ = [
27448
+ }, XZ = [
27449
27449
  "default",
27450
27450
  "workplace",
27451
27451
  "employee",
@@ -28265,7 +28265,7 @@ const uR = ({
28265
28265
  ) });
28266
28266
  });
28267
28267
  G0.displayName = "F0Map";
28268
- const OZ = G0, E0 = bg(
28268
+ const qZ = G0, E0 = bg(
28269
28269
  ({ value: C, max: l, color: f = "categorical-1", label: U }, b) => {
28270
28270
  const S = Vt(), y = Number.isFinite(l) ? Math.max(0, Math.floor(l)) : 0, o = Number.isFinite(C) ? Math.max(0, Math.min(Math.floor(C), y)) : 0, V = Array.from({ length: y }, (T, K) => K < o), E = Q1(f);
28271
28271
  return /* @__PURE__ */ p(
@@ -28298,7 +28298,7 @@ const OZ = G0, E0 = bg(
28298
28298
  }
28299
28299
  );
28300
28300
  E0.displayName = "F0SegmentedBar";
28301
- const jZ = VI(
28301
+ const $Z = VI(
28302
28302
  jg("F0SegmentedBar", E0)
28303
28303
  );
28304
28304
  function pR({
@@ -28425,7 +28425,7 @@ function fR({
28425
28425
  }
28426
28426
  );
28427
28427
  }
28428
- const LZ = VI(
28428
+ const eN = VI(
28429
28429
  jg("F0VersionHistory", fR)
28430
28430
  ), T0 = bg(
28431
28431
  ({ height: C, itemCount: l, itemSize: f, className: U, renderer: b }, S) => {
@@ -29538,7 +29538,7 @@ const CF = ({
29538
29538
  )
29539
29539
  }
29540
29540
  );
29541
- }, XZ = (C) => {
29541
+ }, tN = (C) => {
29542
29542
  const [l, f] = We(
29543
29543
  (C.alwaysOpen || C.defaultOpen) ?? !1
29544
29544
  ), U = (H) => {
@@ -30066,7 +30066,7 @@ const vR = ({
30066
30066
  }
30067
30067
  )
30068
30068
  ] });
30069
- }, qZ = jg(
30069
+ }, gN = jg(
30070
30070
  "ActivityItemList",
30071
30071
  XI(TR, kR)
30072
30072
  ), ZR = {
@@ -30272,7 +30272,7 @@ const YR = ({
30272
30272
  ] }) }) })
30273
30273
  ]
30274
30274
  }
30275
- ), $Z = XI(YR, zR), eN = ({
30275
+ ), IN = XI(YR, zR), iN = ({
30276
30276
  title: C,
30277
30277
  subtitle: l,
30278
30278
  buttonLabel: f,
@@ -30882,7 +30882,7 @@ const OR = () => /* @__PURE__ */ ee("div", { className: "flex flex-col justify-a
30882
30882
  /* @__PURE__ */ p(lt, { className: "h-2.5 w-14 rounded-2xs" })
30883
30883
  ] })
30884
30884
  ] })
30885
- ] }), tN = XI(
30885
+ ] }), nN = XI(
30886
30886
  $R,
30887
30887
  e2
30888
30888
  ), z0 = "aspect-[2/1]", uF = "after:absolute after:inset-0 after:z-[1] after:rounded-xl after:content-['']", t2 = ({ post: C }) => {
@@ -31005,7 +31005,7 @@ const OR = () => /* @__PURE__ */ ee("div", { className: "flex flex-col justify-a
31005
31005
  /* @__PURE__ */ p(lt, { className: "h-3 w-32 rounded-2xs" })
31006
31006
  ] })
31007
31007
  ] })
31008
- ] }), I2 = (C) => C.length === 0 || C.some((l) => l.imageUrl), gN = ({
31008
+ ] }), I2 = (C) => C.length === 0 || C.some((l) => l.imageUrl), CN = ({
31009
31009
  posts: C,
31010
31010
  labels: l,
31011
31011
  loading: f = !1,
@@ -31138,7 +31138,7 @@ const OR = () => /* @__PURE__ */ ee("div", { className: "flex flex-col justify-a
31138
31138
  ] })
31139
31139
  ] });
31140
31140
  J0.displayName = "OnePersonListItem";
31141
- const IN = VI(
31141
+ const oN = VI(
31142
31142
  jg(
31143
31143
  "OnePersonListItem",
31144
31144
  XI(J0, i2)
@@ -31215,7 +31215,7 @@ function r2({
31215
31215
  }
31216
31216
  ) });
31217
31217
  }
31218
- const iN = jg(
31218
+ const rN = jg(
31219
31219
  "ApplicationFrame",
31220
31220
  o2
31221
31221
  ), A2 = ({ contentId: C }) => {
@@ -31706,7 +31706,7 @@ function O0({
31706
31706
  );
31707
31707
  }
31708
31708
  O0.displayName = "DaytimePage";
31709
- const nN = VI(
31709
+ const AN = VI(
31710
31710
  jg("DaytimePage", O0)
31711
31711
  );
31712
31712
  function d2(C) {
@@ -31743,7 +31743,7 @@ function u2({ label: C, options: l, hasNewUpdate: f }) {
31743
31743
  }
31744
31744
  );
31745
31745
  }
31746
- const CN = VI(
31746
+ const sN = VI(
31747
31747
  jg("OmniButton", u2)
31748
31748
  );
31749
31749
  function j0({ children: C, header: l, embedded: f = !1 }) {
@@ -31769,10 +31769,10 @@ function j0({ children: C, header: l, embedded: f = !1 }) {
31769
31769
  );
31770
31770
  }
31771
31771
  j0.displayName = "Page";
31772
- const oN = VI(jg("Page", j0)), h2 = (C) => C.reduce(
31772
+ const aN = VI(jg("Page", j0)), h2 = (C) => C.reduce(
31773
31773
  (l, f) => l + f.chats.filter((U) => (U.unreadCount ?? 0) > 0).length,
31774
31774
  0
31775
- ), L0 = qI(null), X0 = qI(null), hF = (C, l, f) => C.map((U) => U.id === l ? f(U) : U), Bc = (C, l) => C.map((f) => ({ ...f, chats: l(f.chats) })), rN = ({
31775
+ ), L0 = qI(null), X0 = qI(null), hF = (C, l, f) => C.map((U) => U.id === l ? f(U) : U), Bc = (C, l) => C.map((f) => ({ ...f, chats: l(f.chats) })), lN = ({
31776
31776
  children: C,
31777
31777
  initialGroups: l = [],
31778
31778
  initialActiveChatId: f
@@ -31839,7 +31839,7 @@ const oN = VI(jg("Page", j0)), h2 = (C) => C.reduce(
31839
31839
  }, B2 = () => {
31840
31840
  const C = p2(), l = q0();
31841
31841
  return Gt(() => ({ ...C, ...l }), [C, l]);
31842
- }, AN = () => q0(), pF = (C) => C.toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}", "gu"), ""), f2 = (C, l) => {
31842
+ }, cN = () => q0(), pF = (C) => C.toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}", "gu"), ""), f2 = (C, l) => {
31843
31843
  const f = pF(C.trim());
31844
31844
  if (!f) return !0;
31845
31845
  const U = pF(l);
@@ -32522,7 +32522,7 @@ const y2 = VI(Q2), $0 = ({
32522
32522
  below: S.below,
32523
32523
  jump: j
32524
32524
  };
32525
- }, sN = ({
32525
+ }, dN = ({
32526
32526
  actions: C = [],
32527
32527
  emptyState: l,
32528
32528
  loading: f = !1
@@ -32752,7 +32752,7 @@ const V2 = ({
32752
32752
  ]
32753
32753
  }
32754
32754
  );
32755
- function aN({
32755
+ function uN({
32756
32756
  user: C,
32757
32757
  options: l,
32758
32758
  showActivityButton: f = !1,
@@ -32877,7 +32877,7 @@ function P2() {
32877
32877
  }
32878
32878
  );
32879
32879
  }
32880
- function lN({
32880
+ function hN({
32881
32881
  companies: C,
32882
32882
  selected: l,
32883
32883
  onChange: f,
@@ -33151,7 +33151,7 @@ const T2 = ({
33151
33151
  }
33152
33152
  ) : j;
33153
33153
  };
33154
- function cN({
33154
+ function pN({
33155
33155
  tree: C,
33156
33156
  onCollapse: l,
33157
33157
  onSort: f,
@@ -33338,7 +33338,7 @@ const K2 = ({
33338
33338
  tooltip: C,
33339
33339
  children: l
33340
33340
  }) => C ? /* @__PURE__ */ p(yn, { description: C, children: l }) : l;
33341
- function dN({
33341
+ function BN({
33342
33342
  onClick: C,
33343
33343
  placeholder: l,
33344
33344
  shortcut: f = ["cmd", "k"],
@@ -33460,7 +33460,7 @@ function W2({
33460
33460
  }
33461
33461
  );
33462
33462
  }
33463
- const uN = VI(W2), Y2 = () => /* @__PURE__ */ p("div", { className: "absolute -right-0.5 -top-0.5 flex h-3 w-3 items-center justify-center rounded-full", children: /* @__PURE__ */ p("span", { className: "h-2 w-2 rounded-full bg-f1-special-highlight" }) }), UF = ({
33463
+ const fN = VI(W2), Y2 = () => /* @__PURE__ */ p("div", { className: "absolute -right-0.5 -top-0.5 flex h-3 w-3 items-center justify-center rounded-full", children: /* @__PURE__ */ p("span", { className: "h-2 w-2 rounded-full bg-f1-special-highlight" }) }), UF = ({
33464
33464
  tab: C,
33465
33465
  isActive: l,
33466
33466
  showLabel: f,
@@ -33566,7 +33566,7 @@ const uN = VI(W2), Y2 = () => /* @__PURE__ */ p("div", { className: "absolute -r
33566
33566
  ]
33567
33567
  }
33568
33568
  );
33569
- }, hN = ({
33569
+ }, mN = ({
33570
33570
  tabs: C,
33571
33571
  activeTab: l,
33572
33572
  onTabChange: f,
@@ -33736,7 +33736,7 @@ const j2 = ({
33736
33736
  ] }, b.title)) })
33737
33737
  ] })
33738
33738
  ] });
33739
- }, pN = VI(
33739
+ }, FN = VI(
33740
33740
  jg("OneApprovalHistory", L2)
33741
33741
  ), ph = (C, l) => typeof l == "string" && l in C;
33742
33742
  function wF(C, l, f) {
@@ -33772,7 +33772,7 @@ function wF(C, l, f) {
33772
33772
  }
33773
33773
  return b ? U : null;
33774
33774
  }
33775
- function BN(C) {
33775
+ function UN(C) {
33776
33776
  const {
33777
33777
  source: l,
33778
33778
  collectionId: f,
@@ -34406,7 +34406,7 @@ const nQ = qI({
34406
34406
  }) => {
34407
34407
  const f = Gt(() => ({ reducedMotion: l }), [l]);
34408
34408
  return /* @__PURE__ */ p(nQ.Provider, { value: f, children: C });
34409
- }, Yn = () => Ji(nQ), fN = [
34409
+ }, Yn = () => Ji(nQ), QN = [
34410
34410
  "viridian",
34411
34411
  "malibu",
34412
34412
  "yellow",
@@ -34422,7 +34422,7 @@ const nQ = qI({
34422
34422
  "orange",
34423
34423
  "red",
34424
34424
  "grass"
34425
- ], mN = (C) => C.type === "system", Hc = (C) => C.type !== "system", dM = "latest", uM = /* @__PURE__ */ new Set(["m4v", "mov", "mp4", "ogv", "webm"]), hM = (C) => {
34425
+ ], yN = (C) => C.type === "system", Hc = (C) => C.type !== "system", dM = "latest", uM = /* @__PURE__ */ new Set(["m4v", "mov", "mp4", "ogv", "webm"]), hM = (C) => {
34426
34426
  if (C < 1024) return `${C} B`;
34427
34427
  if (C < 1024 * 1024) {
34428
34428
  const f = C / 1024;
@@ -34502,7 +34502,7 @@ const nQ = qI({
34502
34502
  }, rQ = qI(null), AQ = qI(null), FM = (C) => {
34503
34503
  const l = Ee(C), f = l.current, U = f === C || f != null && C != null && f.canSend === C.canSend && f.canReact === C.canReact && f.canUpload === C.canUpload && f.canEditMessage === C.canEditMessage && f.canDeleteMessage === C.canDeleteMessage;
34504
34504
  return U || (l.current = C), U ? f : C;
34505
- }, FN = ({
34505
+ }, wN = ({
34506
34506
  runtime: C,
34507
34507
  children: l
34508
34508
  }) => {
@@ -35089,7 +35089,7 @@ const BQ = () => io(sQ, "useChatJump"), wM = () => io(aQ, "useChatHighlightedId"
35089
35089
  ]
35090
35090
  }
35091
35091
  );
35092
- }, MQ = () => import("./LocationMap-CCsKbjT9.js"), ZM = lr(MQ), NM = 200, KM = ({ latitude: C, longitude: l }) => `https://www.google.com/maps?q=${C},${l}`, VQ = ({
35092
+ }, MQ = () => import("./LocationMap-DybKOvy-.js"), ZM = lr(MQ), NM = 200, KM = ({ latitude: C, longitude: l }) => `https://www.google.com/maps?q=${C},${l}`, VQ = ({
35093
35093
  location: C,
35094
35094
  cornerClass: l = "rounded-xl",
35095
35095
  surfaceClassName: f
@@ -42768,7 +42768,7 @@ const hG = (C) => {
42768
42768
  ]
42769
42769
  }
42770
42770
  );
42771
- }, UN = (C) => {
42771
+ }, bN = (C) => {
42772
42772
  const l = QI();
42773
42773
  return /* @__PURE__ */ p(cM, { reducedMotion: l, children: /* @__PURE__ */ p(yM, { children: /* @__PURE__ */ p(dE, { ...C }) }) });
42774
42774
  }, uE = {
@@ -42781,7 +42781,13 @@ const hG = (C) => {
42781
42781
  sm: "[&_svg]:w-4",
42782
42782
  md: "[&_svg]:w-6",
42783
42783
  lg: "[&_svg]:w-7"
42784
- }, pE = (C) => t0.includes(C), yy = ({
42784
+ }, pE = {
42785
+ superNegative: "text-f1-icon-mood-super-negative",
42786
+ negative: "text-f1-icon-mood-negative",
42787
+ neutral: "text-f1-icon-mood-neutral",
42788
+ positive: "text-f1-icon-mood-positive",
42789
+ superPositive: "text-f1-icon-mood-super-positive"
42790
+ }, BE = "text-f1-icon-secondary", fE = (C) => t0.includes(C), yy = ({
42785
42791
  value: C,
42786
42792
  onChange: l,
42787
42793
  labels: f,
@@ -42806,10 +42812,16 @@ const hG = (C) => {
42806
42812
  // only place its name is written, so a 700ms wait withholds the scale
42807
42813
  // from someone reading along it — the same call the Home rail makes.
42808
42814
  tooltip: { description: f[N], instant: !0 },
42809
- className: Qe(hE[b])
42815
+ // The colour last: it has to land after `F0ButtonToggle`'s own
42816
+ // unselected `text-f1-icon` for tailwind-merge to keep it. Never on
42817
+ // the ANSWERED face — that one's colour is the toggle's to draw.
42818
+ className: Qe(
42819
+ hE[b],
42820
+ V === void 0 ? pE[N] : N !== V && BE
42821
+ )
42810
42822
  })
42811
42823
  ),
42812
- [f, U, b]
42824
+ [f, U, b, V]
42813
42825
  );
42814
42826
  return /* @__PURE__ */ p(
42815
42827
  __,
@@ -42817,7 +42829,7 @@ const hG = (C) => {
42817
42829
  items: T,
42818
42830
  value: V ?? "",
42819
42831
  onChange: (N) => {
42820
- const j = pE(N) ? N : void 0;
42832
+ const j = fE(N) ? N : void 0;
42821
42833
  j !== V && (E(j), l?.(j));
42822
42834
  },
42823
42835
  size: b,
@@ -42828,7 +42840,7 @@ const hG = (C) => {
42828
42840
  );
42829
42841
  };
42830
42842
  yy.displayName = "F0ENPSButton";
42831
- const QN = VI(
42843
+ const xN = VI(
42832
42844
  jg("F0ENPSButton", yy)
42833
42845
  ), tB = {
42834
42846
  0: "gap-0",
@@ -42854,7 +42866,7 @@ const QN = VI(
42854
42866
  md: "gap-2",
42855
42867
  lg: "gap-3",
42856
42868
  xl: "gap-4"
42857
- }, BE = Ar({
42869
+ }, mE = Ar({
42858
42870
  base: "grid grid-cols-1",
42859
42871
  variants: {
42860
42872
  tileSize: {
@@ -42876,17 +42888,17 @@ const QN = VI(
42876
42888
  tileSize: "md",
42877
42889
  gap: "4"
42878
42890
  }
42879
- }), fE = Pt.forwardRef(function({ className: l, gap: f, children: U, tileSize: b, ...S }, y) {
42891
+ }), FE = Pt.forwardRef(function({ className: l, gap: f, children: U, tileSize: b, ...S }, y) {
42880
42892
  return /* @__PURE__ */ p("div", { className: Qe("@container", "grow"), ref: y, ...S, children: /* @__PURE__ */ p(
42881
42893
  "div",
42882
42894
  {
42883
- className: Qe(BE({ gap: f, tileSize: b }), l),
42895
+ className: Qe(mE({ gap: f, tileSize: b }), l),
42884
42896
  ref: y,
42885
42897
  ...S,
42886
42898
  children: U
42887
42899
  }
42888
42900
  ) });
42889
- }), mE = Ar({
42901
+ }), UE = Ar({
42890
42902
  base: "flex",
42891
42903
  variants: {
42892
42904
  overflow: {
@@ -42983,7 +42995,7 @@ const QN = VI(
42983
42995
  "div",
42984
42996
  {
42985
42997
  className: Qe(
42986
- mE({
42998
+ UE({
42987
42999
  paddingX: S,
42988
43000
  basis: U,
42989
43001
  paddingY: y,
@@ -43003,7 +43015,7 @@ const QN = VI(
43003
43015
  ...$
43004
43016
  }
43005
43017
  );
43006
- }), FE = Ar({
43018
+ }), QE = Ar({
43007
43019
  base: "flex-row",
43008
43020
  variants: {
43009
43021
  gap: {
@@ -43016,16 +43028,16 @@ const QN = VI(
43016
43028
  defaultVariants: {
43017
43029
  wrap: !0
43018
43030
  }
43019
- }), UE = Pt.forwardRef(function({ className: l, gap: f, wrap: U, ...b }, S) {
43031
+ }), yE = Pt.forwardRef(function({ className: l, gap: f, wrap: U, ...b }, S) {
43020
43032
  return /* @__PURE__ */ p(
43021
43033
  wy,
43022
43034
  {
43023
- className: Qe(FE({ gap: f, wrap: U }), l),
43035
+ className: Qe(QE({ gap: f, wrap: U }), l),
43024
43036
  ref: S,
43025
43037
  ...b
43026
43038
  }
43027
43039
  );
43028
- }), QE = Ar({
43040
+ }), wE = Ar({
43029
43041
  base: "flex-col",
43030
43042
  variants: {
43031
43043
  gap: {
@@ -43033,34 +43045,34 @@ const QN = VI(
43033
43045
  }
43034
43046
  },
43035
43047
  defaultVariants: {}
43036
- }), yE = bg(function({ className: l, gap: f, children: U, ...b }, S) {
43048
+ }), bE = bg(function({ className: l, gap: f, children: U, ...b }, S) {
43037
43049
  return /* @__PURE__ */ p(
43038
43050
  wy,
43039
43051
  {
43040
- className: Qe(QE({ gap: f }), l),
43052
+ className: Qe(wE({ gap: f }), l),
43041
43053
  ref: S,
43042
43054
  ...b,
43043
43055
  children: U
43044
43056
  }
43045
43057
  );
43046
- }), yN = Wn(
43058
+ }), DN = Wn(
43047
43059
  {
43048
43060
  name: "Stack",
43049
43061
  type: "layout"
43050
43062
  },
43051
- yE
43052
- ), wN = Wn(
43063
+ bE
43064
+ ), _N = Wn(
43053
43065
  {
43054
43066
  name: "Split",
43055
43067
  type: "layout"
43056
43068
  },
43057
- UE
43058
- ), bN = Wn(
43069
+ yE
43070
+ ), SN = Wn(
43059
43071
  {
43060
43072
  name: "AutoGrid",
43061
43073
  type: "layout"
43062
43074
  },
43063
- fE
43075
+ FE
43064
43076
  ), Cn = Object.assign(
43065
43077
  bg(function({ chart: l, summaries: f, ...U }, b) {
43066
43078
  return /* @__PURE__ */ p(or, { ref: b, ...U, summaries: f, children: l && /* @__PURE__ */ p("div", { className: "min-h-52 min-w-52 grow pt-2", children: l }) });
@@ -43068,7 +43080,7 @@ const QN = VI(
43068
43080
  {
43069
43081
  Skeleton: or.Skeleton
43070
43082
  }
43071
- ), wE = XI(
43083
+ ), xE = XI(
43072
43084
  bg(function({ canBeBlurred: l, ...f }, U) {
43073
43085
  const b = {
43074
43086
  ...f,
@@ -43090,10 +43102,10 @@ const QN = VI(
43090
43102
  );
43091
43103
  }),
43092
43104
  Cn.Skeleton
43093
- ), bE = jg(
43105
+ ), DE = jg(
43094
43106
  "AreaChartWidget",
43095
- wE
43096
- ), xE = bg(function(l, f) {
43107
+ xE
43108
+ ), _E = bg(function(l, f) {
43097
43109
  return /* @__PURE__ */ p(
43098
43110
  Cn,
43099
43111
  {
@@ -43102,10 +43114,10 @@ const QN = VI(
43102
43114
  chart: /* @__PURE__ */ p(v_, { yAxis: { hide: !0 }, ...l.chart })
43103
43115
  }
43104
43116
  );
43105
- }), DE = jg(
43117
+ }), SE = jg(
43106
43118
  "BarChartWidget",
43107
- XI(xE, Cn.Skeleton)
43108
- ), _E = XI(
43119
+ XI(_E, Cn.Skeleton)
43120
+ ), vE = XI(
43109
43121
  bg(
43110
43122
  function(l, f) {
43111
43123
  return /* @__PURE__ */ p(
@@ -43119,10 +43131,10 @@ const QN = VI(
43119
43131
  }
43120
43132
  ),
43121
43133
  Cn.Skeleton
43122
- ), SE = jg(
43134
+ ), RE = jg(
43123
43135
  "LineChartWidget",
43124
- _E
43125
- ), vE = XI(
43136
+ vE
43137
+ ), ME = XI(
43126
43138
  bg(
43127
43139
  function(l, f) {
43128
43140
  return /* @__PURE__ */ p(
@@ -43136,20 +43148,20 @@ const QN = VI(
43136
43148
  }
43137
43149
  ),
43138
43150
  Cn.Skeleton
43139
- ), RE = jg(
43151
+ ), VE = jg(
43140
43152
  "PieChartWidget",
43141
- vE
43142
- ), ME = XI(
43153
+ ME
43154
+ ), PE = XI(
43143
43155
  bg(
43144
43156
  function(l, f) {
43145
43157
  return /* @__PURE__ */ p(Cn, { ref: f, ...l, chart: null });
43146
43158
  }
43147
43159
  ),
43148
43160
  Cn.Skeleton
43149
- ), VE = jg(
43161
+ ), GE = jg(
43150
43162
  "SummariesWidget",
43151
- ME
43152
- ), PE = XI(
43163
+ PE
43164
+ ), EE = XI(
43153
43165
  bg(
43154
43166
  function(l, f) {
43155
43167
  return /* @__PURE__ */ p(
@@ -43163,46 +43175,46 @@ const QN = VI(
43163
43175
  }
43164
43176
  ),
43165
43177
  Cn.Skeleton
43166
- ), GE = jg(
43178
+ ), TE = jg(
43167
43179
  "VerticalBarChartWidget",
43168
- PE
43169
- ), xN = Wn(
43180
+ EE
43181
+ ), vN = Wn(
43170
43182
  {
43171
43183
  name: "AreaChartWidget",
43172
43184
  type: "info"
43173
43185
  },
43174
- bE
43175
- ), DN = Wn(
43186
+ DE
43187
+ ), RN = Wn(
43176
43188
  {
43177
43189
  name: "BarChartWidget",
43178
43190
  type: "info"
43179
43191
  },
43180
- DE
43181
- ), _N = Wn(
43192
+ SE
43193
+ ), MN = Wn(
43182
43194
  {
43183
43195
  name: "LineChartWidget",
43184
43196
  type: "info"
43185
43197
  },
43186
- SE
43187
- ), SN = Wn(
43198
+ RE
43199
+ ), VN = Wn(
43188
43200
  {
43189
43201
  name: "PieChartWidget",
43190
43202
  type: "info"
43191
43203
  },
43192
- RE
43193
- ), vN = Wn(
43204
+ VE
43205
+ ), PN = Wn(
43194
43206
  {
43195
43207
  name: "VerticalBarChartWidget",
43196
43208
  type: "info"
43197
43209
  },
43198
- GE
43199
- ), RN = Wn(
43210
+ TE
43211
+ ), GN = Wn(
43200
43212
  {
43201
43213
  name: "SummariesWidget",
43202
43214
  type: "info"
43203
43215
  },
43204
- VE
43205
- ), EE = (C, l) => /* @__PURE__ */ ee(
43216
+ GE
43217
+ ), kE = (C, l) => /* @__PURE__ */ ee(
43206
43218
  "svg",
43207
43219
  {
43208
43220
  width: "366",
@@ -43440,7 +43452,7 @@ const QN = VI(
43440
43452
  ] })
43441
43453
  ]
43442
43454
  }
43443
- ), TE = bg(EE), kE = (C, l) => /* @__PURE__ */ ee(
43455
+ ), ZE = bg(kE), NE = (C, l) => /* @__PURE__ */ ee(
43444
43456
  "svg",
43445
43457
  {
43446
43458
  width: "406",
@@ -43485,21 +43497,21 @@ const QN = VI(
43485
43497
  ) })
43486
43498
  ]
43487
43499
  }
43488
- ), ZE = bg(kE), NE = {
43500
+ ), KE = bg(NE), WE = {
43489
43501
  "line-chart": "border-f1-border",
43490
43502
  "bar-chart": "border-f1-border-promote"
43491
- }, KE = {
43503
+ }, YE = {
43492
43504
  "line-chart": "min-h-48",
43493
43505
  "bar-chart": "min-h-64"
43494
- }, WE = {
43506
+ }, zE = {
43495
43507
  "line-chart": "from-f1-background-accent",
43496
43508
  "bar-chart": "from-f1-background-promote"
43497
- }, YE = {
43509
+ }, JE = {
43498
43510
  "line-chart": "default",
43499
43511
  "bar-chart": "promote"
43500
- }, zE = bg(
43512
+ }, HE = bg(
43501
43513
  function({ title: l, content: f, buttonLabel: U, buttonIcon: b, buttonAction: S, type: y }, o) {
43502
- const V = NE[y], E = KE[y], T = WE[y], K = YE[y];
43514
+ const V = WE[y], E = YE[y], T = zE[y], K = JE[y];
43503
43515
  return /* @__PURE__ */ ee(
43504
43516
  dp,
43505
43517
  {
@@ -43519,8 +43531,8 @@ const QN = VI(
43519
43531
  T
43520
43532
  ),
43521
43533
  children: [
43522
- y === "bar-chart" && /* @__PURE__ */ p("div", { className: "absolute bottom-1 left-4 right-4", children: /* @__PURE__ */ p(TE, { className: "w-full" }) }),
43523
- y === "line-chart" && /* @__PURE__ */ p(ZE, { className: "w-full" })
43534
+ y === "bar-chart" && /* @__PURE__ */ p("div", { className: "absolute bottom-1 left-4 right-4", children: /* @__PURE__ */ p(ZE, { className: "w-full" }) }),
43535
+ y === "line-chart" && /* @__PURE__ */ p(KE, { className: "w-full" })
43524
43536
  ]
43525
43537
  }
43526
43538
  ),
@@ -43541,10 +43553,10 @@ const QN = VI(
43541
43553
  }
43542
43554
  );
43543
43555
  }
43544
- ), MN = VI(
43545
- jg("ChartWidgetEmptyState", zE)
43556
+ ), EN = VI(
43557
+ jg("ChartWidgetEmptyState", HE)
43546
43558
  );
43547
- function JE(C, l) {
43559
+ function OE(C, l) {
43548
43560
  const f = Ee(null), U = Ee(null), [b, S] = We({
43549
43561
  visibleItems: [],
43550
43562
  overflowItems: []
@@ -43612,7 +43624,7 @@ const Fd = function({
43612
43624
  minSize: S,
43613
43625
  onVisibleItemsChange: y
43614
43626
  }) {
43615
- const { containerRef: o, measurementContainerRef: V, visibleItems: E } = JE(l, b);
43627
+ const { containerRef: o, measurementContainerRef: V, visibleItems: E } = OE(l, b);
43616
43628
  return It(() => {
43617
43629
  y?.(E);
43618
43630
  }, [y, E]), /* @__PURE__ */ ee(
@@ -43657,7 +43669,7 @@ const Fd = function({
43657
43669
  );
43658
43670
  };
43659
43671
  Fd.displayName = "VerticalOverflowList";
43660
- const VN = ({
43672
+ const TN = ({
43661
43673
  events: C,
43662
43674
  showAllItems: l,
43663
43675
  gap: f = 8,
@@ -43670,7 +43682,7 @@ const VN = ({
43670
43682
  minSize: U,
43671
43683
  renderListItem: (b) => /* @__PURE__ */ p(zc, { ...b }, b.title)
43672
43684
  }
43673
- ) : null, HE = ({ onClick: C, children: l }) => {
43685
+ ) : null, jE = ({ onClick: C, children: l }) => {
43674
43686
  const f = "block rounded-lg border border-solid border-transparent p-[1px] -m-1";
43675
43687
  return C ? /* @__PURE__ */ p(
43676
43688
  "a",
@@ -43685,14 +43697,14 @@ const VN = ({
43685
43697
  }
43686
43698
  ) : /* @__PURE__ */ p("div", { className: f, tabIndex: 1, children: l });
43687
43699
  };
43688
- function PN({
43700
+ function kN({
43689
43701
  label: C,
43690
43702
  count: l,
43691
43703
  icon: f,
43692
43704
  iconClassName: U,
43693
43705
  onClick: b
43694
43706
  }) {
43695
- return /* @__PURE__ */ p(HE, { onClick: b, children: /* @__PURE__ */ ee(
43707
+ return /* @__PURE__ */ p(jE, { onClick: b, children: /* @__PURE__ */ ee(
43696
43708
  "div",
43697
43709
  {
43698
43710
  className: Qe(
@@ -43709,7 +43721,7 @@ function PN({
43709
43721
  }
43710
43722
  ) });
43711
43723
  }
43712
- const OE = bg(
43724
+ const LE = bg(
43713
43725
  function({ content: l, label: f, color: U, ...b }, S) {
43714
43726
  return /* @__PURE__ */ ee("div", { className: "flex flex-col gap-1", ref: S, children: [
43715
43727
  /* @__PURE__ */ p("p", { className: "text-3xl font-semibold", children: l }),
@@ -43727,7 +43739,7 @@ const OE = bg(
43727
43739
  ] })
43728
43740
  ] }, f);
43729
43741
  }
43730
- ), jE = bg(
43742
+ ), XE = bg(
43731
43743
  function({ items: l }, f) {
43732
43744
  return /* @__PURE__ */ p(
43733
43745
  "div",
@@ -43735,7 +43747,7 @@ const OE = bg(
43735
43747
  ref: f,
43736
43748
  className: "grid auto-cols-fr grid-flow-col items-end gap-x-3",
43737
43749
  children: l.map(({ label: U, content: b, color: S, ...y }) => /* @__PURE__ */ p(
43738
- OE,
43750
+ LE,
43739
43751
  {
43740
43752
  label: U,
43741
43753
  content: b,
@@ -43747,7 +43759,7 @@ const OE = bg(
43747
43759
  }
43748
43760
  );
43749
43761
  }
43750
- ), LE = ({
43762
+ ), qE = ({
43751
43763
  onClick: C,
43752
43764
  withEmoji: l,
43753
43765
  withPointerCursor: f,
@@ -43761,7 +43773,7 @@ const OE = bg(
43761
43773
  );
43762
43774
  return C ? /* @__PURE__ */ p("a", { className: b, onClick: C, children: U }) : /* @__PURE__ */ p("div", { className: b, children: U });
43763
43775
  };
43764
- function GN({
43776
+ function ZN({
43765
43777
  id: C,
43766
43778
  title: l,
43767
43779
  subtitle: f,
@@ -43772,7 +43784,7 @@ function GN({
43772
43784
  ...o
43773
43785
  }) {
43774
43786
  return /* @__PURE__ */ ee(
43775
- LE,
43787
+ qE,
43776
43788
  {
43777
43789
  onClick: (E) => {
43778
43790
  E.preventDefault(), y?.(C);
@@ -43799,7 +43811,7 @@ function GN({
43799
43811
  }
43800
43812
  );
43801
43813
  }
43802
- const XE = ({ onClick: C, className: l, children: f }) => C ? /* @__PURE__ */ p("a", { className: l, onClick: C, tabIndex: 0, children: f }) : /* @__PURE__ */ p("div", { className: l, tabIndex: -1, children: f });
43814
+ const $E = ({ onClick: C, className: l, children: f }) => C ? /* @__PURE__ */ p("a", { className: l, onClick: C, tabIndex: 0, children: f }) : /* @__PURE__ */ p("div", { className: l, tabIndex: -1, children: f });
43803
43815
  function CU({
43804
43816
  id: C,
43805
43817
  title: l,
@@ -43811,7 +43823,7 @@ function CU({
43811
43823
  "flex flex-row gap-2 rounded-md border border-solid border-transparent p-2 text-f1-foreground",
43812
43824
  U ? "cursor-pointer hover:bg-f1-background-tertiary focus:border-f1-background-selected-bold focus:outline-none" : void 0
43813
43825
  );
43814
- return /* @__PURE__ */ ee(XE, { onClick: (o) => {
43826
+ return /* @__PURE__ */ ee($E, { onClick: (o) => {
43815
43827
  o.preventDefault(), U?.(C);
43816
43828
  }, className: S, children: [
43817
43829
  /* @__PURE__ */ p(pp, { module: b ?? "inbox", size: "sm" }),
@@ -43821,7 +43833,7 @@ function CU({
43821
43833
  ] })
43822
43834
  ] });
43823
43835
  }
43824
- const qE = ({ onClick: C, className: l, children: f }) => C ? /* @__PURE__ */ p("a", { className: l, onClick: C, tabIndex: 0, children: f }) : /* @__PURE__ */ p("div", { className: l, tabIndex: -1, children: f });
43836
+ const eT = ({ onClick: C, className: l, children: f }) => C ? /* @__PURE__ */ p("a", { className: l, onClick: C, tabIndex: 0, children: f }) : /* @__PURE__ */ p("div", { className: l, tabIndex: -1, children: f });
43825
43837
  function Ip({
43826
43838
  id: C,
43827
43839
  title: l,
@@ -43838,7 +43850,7 @@ function Ip({
43838
43850
  "flex flex-row items-start gap-1 rounded-md border border-solid border-transparent px-2 py-1.5 text-f1-foreground",
43839
43851
  E ? "cursor-pointer hover:bg-f1-background-tertiary focus:border-f1-background-selected-bold focus:outline-none" : void 0
43840
43852
  );
43841
- return /* @__PURE__ */ ee(qE, { onClick: (N) => {
43853
+ return /* @__PURE__ */ ee(eT, { onClick: (N) => {
43842
43854
  N.preventDefault(), E?.(C);
43843
43855
  }, className: T, children: [
43844
43856
  /* @__PURE__ */ ee("div", { className: "flex flex-1 flex-row items-start gap-1", children: [
@@ -43867,7 +43879,7 @@ function Ip({
43867
43879
  ] })
43868
43880
  ] });
43869
43881
  }
43870
- function EN({
43882
+ function NN({
43871
43883
  items: C,
43872
43884
  minSize: l = 184,
43873
43885
  onClickItem: f,
@@ -43885,7 +43897,7 @@ function EN({
43885
43897
  }
43886
43898
  );
43887
43899
  }
43888
- function TN({
43900
+ function KN({
43889
43901
  items: C,
43890
43902
  gap: l,
43891
43903
  minSize: f = 184,
@@ -43902,10 +43914,10 @@ function TN({
43902
43914
  }
43903
43915
  );
43904
43916
  }
43905
- const $E = ({ title: C, info: l }) => /* @__PURE__ */ ee("div", { className: "flex items-center justify-between", children: [
43917
+ const tT = ({ title: C, info: l }) => /* @__PURE__ */ ee("div", { className: "flex items-center justify-between", children: [
43906
43918
  /* @__PURE__ */ p("p", { className: "flex text-f1-foreground-secondary", children: C }),
43907
43919
  /* @__PURE__ */ p("div", { className: "max-w-32 flex-shrink-0 overflow-hidden text-ellipsis whitespace-nowrap text-right font-medium", children: l })
43908
- ] }), kN = bg(
43920
+ ] }), WN = bg(
43909
43921
  function({ title: l, titleValue: f, titleTooltip: U, list: b }, S) {
43910
43922
  return /* @__PURE__ */ ee("div", { ref: S, className: "flex flex-col gap-2", children: [
43911
43923
  l && /* @__PURE__ */ ee("div", { className: "flex items-center justify-between gap-2 font-medium", children: [
@@ -43922,11 +43934,11 @@ const $E = ({ title: C, info: l }) => /* @__PURE__ */ ee("div", { className: "fl
43922
43934
  ] }),
43923
43935
  f && /* @__PURE__ */ p("div", { children: f })
43924
43936
  ] }),
43925
- b.map((y) => /* @__PURE__ */ p($E, { title: y.title, info: y.info }, y.title))
43937
+ b.map((y) => /* @__PURE__ */ p(tT, { title: y.title, info: y.info }, y.title))
43926
43938
  ] });
43927
43939
  }
43928
43940
  );
43929
- function ZN({
43941
+ function YN({
43930
43942
  title: C,
43931
43943
  subtitle: l,
43932
43944
  data: f,
@@ -43959,7 +43971,7 @@ function ZN({
43959
43971
  ) })
43960
43972
  ] });
43961
43973
  }
43962
- const by = (C, l) => ((l ?? 0) < -1 * (C ?? 0) ? -1 * C : l) ?? 0, eT = ({
43974
+ const by = (C, l) => ((l ?? 0) < -1 * (C ?? 0) ? -1 * C : l) ?? 0, gT = ({
43963
43975
  data: C = [],
43964
43976
  labels: l,
43965
43977
  trackedMinutes: f,
@@ -43984,7 +43996,7 @@ const by = (C, l) => ((l ?? 0) < -1 * (C ?? 0) ? -1 * C : l) ?? 0, eT = ({
43984
43996
  subtitle: V,
43985
43997
  statusColor: E
43986
43998
  };
43987
- }, _h = "--:--", tT = (C, l) => {
43999
+ }, _h = "--:--", IT = (C, l) => {
43988
44000
  if (C && C > 0)
43989
44001
  return {
43990
44002
  value: C * 60 / l,
@@ -43995,7 +44007,7 @@ const by = (C, l) => ((l ?? 0) < -1 * (C ?? 0) ? -1 * C : l) ?? 0, eT = ({
43995
44007
  value: 1,
43996
44008
  color: Cr.empty
43997
44009
  };
43998
- }, gT = ({
44010
+ }, iT = ({
43999
44011
  data: C = [],
44000
44012
  trackedMinutes: l,
44001
44013
  remainingMinutes: f = 0
@@ -44006,7 +44018,7 @@ const by = (C, l) => ((l ?? 0) < -1 * (C ?? 0) ? -1 * C : l) ?? 0, eT = ({
44006
44018
  ), S = C.reduce(
44007
44019
  (T, K) => T + (K.to.getTime() - K.from.getTime()) / 1e3,
44008
44020
  0
44009
- ) + (b ?? 0) * 60, y = U || (b ?? 0) < 0 ? void 0 : tT(
44021
+ ) + (b ?? 0) * 60, y = U || (b ?? 0) < 0 ? void 0 : IT(
44010
44022
  b ?? 0,
44011
44023
  S
44012
44024
  );
@@ -44053,18 +44065,18 @@ const by = (C, l) => ((l ?? 0) < -1 * (C ?? 0) ? -1 * C : l) ?? 0, eT = ({
44053
44065
  secondaryLabel: y,
44054
44066
  time: K
44055
44067
  };
44056
- }, IT = " • ", iT = (C) => {
44068
+ }, nT = " • ", CT = (C) => {
44057
44069
  const l = Math.floor(C / 60), f = C % 60;
44058
44070
  return l ? f ? `${l}h ${f}min` : `${l}h` : `${f}min`;
44059
- }, nT = (C) => {
44071
+ }, oT = (C) => {
44060
44072
  if (!C.from || !C.to) return;
44061
44073
  const l = Math.round(
44062
44074
  (C.to.getTime() - C.from.getTime()) / 6e4
44063
44075
  );
44064
- return [`${kc(C.from)} – ${kc(C.to)} (${iT(l)})`, C.label].filter(Boolean).join(IT);
44076
+ return [`${kc(C.from)} – ${kc(C.to)} (${CT(l)})`, C.label].filter(Boolean).join(nT);
44065
44077
  };
44066
- function CT({ segments: C }) {
44067
- const l = C.map(nT);
44078
+ function rT({ segments: C }) {
44079
+ const l = C.map(oT);
44068
44080
  return /* @__PURE__ */ p(
44069
44081
  "div",
44070
44082
  {
@@ -44138,13 +44150,13 @@ function oU({
44138
44150
  remainingMinutes: f,
44139
44151
  variant: U = "ring"
44140
44152
  }) {
44141
- const b = gT({
44153
+ const b = iT({
44142
44154
  data: C,
44143
44155
  trackedMinutes: l,
44144
44156
  remainingMinutes: f
44145
44157
  });
44146
44158
  if (U === "horizontal-bar")
44147
- return /* @__PURE__ */ p(CT, { segments: b });
44159
+ return /* @__PURE__ */ p(rT, { segments: b });
44148
44160
  const { primaryLabel: S, secondaryLabel: y, time: o } = xy({
44149
44161
  data: C,
44150
44162
  trackedMinutes: l,
@@ -44184,19 +44196,19 @@ function oU({
44184
44196
  ] })
44185
44197
  ] });
44186
44198
  }
44187
- const oT = " · ", rT = " — ", rU = 20;
44188
- function AT(C) {
44199
+ const AT = " · ", sT = " — ", rU = 20;
44200
+ function aT(C) {
44189
44201
  const l = [], f = (U, b) => {
44190
44202
  if (U.children?.length) {
44191
44203
  U.children.forEach((o) => f(o, [...b, U]));
44192
44204
  return;
44193
44205
  }
44194
- const S = b.map((o) => o.name), y = S.join(oT);
44206
+ const S = b.map((o) => o.name), y = S.join(AT);
44195
44207
  l.push({
44196
44208
  id: U.id,
44197
44209
  name: U.name,
44198
44210
  group: S.length ? y : U.name,
44199
- path: S.length ? `${U.name}${rT}${y}` : U.name,
44211
+ path: S.length ? `${U.name}${sT}${y}` : U.name,
44200
44212
  haystack: [U.name, ...S].join(" ").toLowerCase(),
44201
44213
  // The glyph that means something is usually the ROOT's (Office, Home,
44202
44214
  // Business trip) — a work area rarely has its own, so the nearest one up
@@ -44206,7 +44218,7 @@ function AT(C) {
44206
44218
  };
44207
44219
  return C.forEach((U) => f(U, [])), l;
44208
44220
  }
44209
- const sT = (C, l) => l ? Dy(C).find((f) => f.id === l) : void 0, Dy = (C) => C.flatMap((l) => [l, ...Dy(l.children ?? [])]);
44221
+ const lT = (C, l) => l ? Dy(C).find((f) => f.id === l) : void 0, Dy = (C) => C.flatMap((l) => [l, ...Dy(l.children ?? [])]);
44210
44222
  function _y({
44211
44223
  items: C,
44212
44224
  value: l,
@@ -44217,7 +44229,7 @@ function _y({
44217
44229
  required: y = !0,
44218
44230
  disabled: o
44219
44231
  }) {
44220
- const V = Gt(() => AT(C), [C]), E = Gt(
44232
+ const V = Gt(() => aT(C), [C]), E = Gt(
44221
44233
  () => C.some(($) => !!$.children?.length),
44222
44234
  [C]
44223
44235
  ), K = (l ? V.find(($) => $.id === l) : void 0)?.icon ?? S, N = Gt(
@@ -44310,7 +44322,7 @@ const gB = (C) => C.map((l) => ({
44310
44322
  icon: l.icon,
44311
44323
  children: l.sublocations?.length ? gB(l.sublocations) : void 0
44312
44324
  }));
44313
- function aT({
44325
+ function cT({
44314
44326
  locations: C,
44315
44327
  locationId: l,
44316
44328
  onChangeLocationId: f,
@@ -44339,7 +44351,7 @@ const Sy = (C) => C.map((l) => ({
44339
44351
  name: l.name,
44340
44352
  children: l.subprojects?.length ? Sy(l.subprojects) : void 0
44341
44353
  }));
44342
- function lT({
44354
+ function dT({
44343
44355
  projects: C,
44344
44356
  projectId: l,
44345
44357
  onChangeProjectId: f,
@@ -44363,7 +44375,7 @@ function lT({
44363
44375
  }
44364
44376
  );
44365
44377
  }
44366
- function cT({
44378
+ function uT({
44367
44379
  text: C,
44368
44380
  placeholder: l,
44369
44381
  icon: f,
@@ -44391,7 +44403,7 @@ function cT({
44391
44403
  }
44392
44404
  );
44393
44405
  }
44394
- function dT({
44406
+ function hT({
44395
44407
  variant: C = "default",
44396
44408
  canSeeGraph: l = !0,
44397
44409
  canShowLocation: f = !0,
@@ -44468,7 +44480,7 @@ const AU = "[&_[data-testid=input-field-wrapper]]:bg-transparent", sU = ({ color
44468
44480
  )
44469
44481
  ] });
44470
44482
  };
44471
- function NN({
44483
+ function zN({
44472
44484
  trackedMinutes: C,
44473
44485
  remainingMinutes: l,
44474
44486
  data: f = [],
@@ -44501,7 +44513,7 @@ function NN({
44501
44513
  variant: fe = "default",
44502
44514
  loading: xe = !1
44503
44515
  }) {
44504
- const { status: be, statusText: _e, subtitle: Ve, statusColor: ue } = eT({
44516
+ const { status: be, statusText: _e, subtitle: Ve, statusColor: ue } = gT({
44505
44517
  data: f,
44506
44518
  labels: U,
44507
44519
  trackedMinutes: C,
@@ -44521,7 +44533,7 @@ function NN({
44521
44533
  }
44522
44534
  }, Ft = (rg) => {
44523
44535
  N?.(rg), et(!1), T?.(rg);
44524
- }, St = Te && S.length && !o && y, Wt = Te && !re && ie, yt = sT(gB(S), b), Xe = S.map((rg) => ({
44536
+ }, St = Te && S.length && !o && y, Wt = Te && !re && ie, yt = lT(gB(S), b), Xe = S.map((rg) => ({
44525
44537
  value: rg.id,
44526
44538
  label: rg.name,
44527
44539
  icon: rg.icon
@@ -44537,7 +44549,7 @@ function NN({
44537
44549
  onOpenChange: st,
44538
44550
  disabled: o,
44539
44551
  children: /* @__PURE__ */ p("div", { "aria-label": "Select location", children: /* @__PURE__ */ p(
44540
- cT,
44552
+ uT,
44541
44553
  {
44542
44554
  text: yt?.name,
44543
44555
  placeholder: U.selectLocation,
@@ -44546,7 +44558,7 @@ function NN({
44546
44558
  ) })
44547
44559
  }
44548
44560
  ) : yt ? /* @__PURE__ */ p(WA, { text: yt.name, icon: yt.icon }) : null, it = S.length ? /* @__PURE__ */ p(
44549
- aT,
44561
+ cT,
44550
44562
  {
44551
44563
  locations: S,
44552
44564
  locationId: b,
@@ -44557,7 +44569,7 @@ function NN({
44557
44569
  disabled: !St
44558
44570
  }
44559
44571
  ) : null, Oe = Be?.length && ie ? /* @__PURE__ */ p(
44560
- lT,
44572
+ dT,
44561
44573
  {
44562
44574
  projects: Be,
44563
44575
  projectId: Ue,
@@ -44684,7 +44696,7 @@ function NN({
44684
44696
  ) : null, zt = Xt && ug, Nt = zt ? mt : null, pg = zt ? hg : hg ?? mt;
44685
44697
  if (xe)
44686
44698
  return /* @__PURE__ */ p(
44687
- dT,
44699
+ hT,
44688
44700
  {
44689
44701
  variant: fe,
44690
44702
  canSeeGraph: $,
@@ -44770,16 +44782,16 @@ function NN({
44770
44782
  /* @__PURE__ */ p("div", { className: "mt-6 flex flex-row flex-wrap items-center justify-center gap-2 @xs:justify-start", children: ig })
44771
44783
  ] }) });
44772
44784
  }
44773
- const uT = {
44785
+ const pT = {
44774
44786
  done: LD,
44775
44787
  "in-progress": jD,
44776
44788
  todo: OD
44777
- }, hT = {
44789
+ }, BT = {
44778
44790
  done: "text-f1-icon-success",
44779
44791
  "in-progress": "text-f1-icon-info",
44780
44792
  todo: "text-f1-icon"
44781
44793
  };
44782
- function pT({
44794
+ function fT({
44783
44795
  task: C,
44784
44796
  status: l,
44785
44797
  onClick: f,
@@ -44789,7 +44801,7 @@ function pT({
44789
44801
  f?.(C);
44790
44802
  }, S = Gt(() => {
44791
44803
  if (!U)
44792
- return uT[l];
44804
+ return pT[l];
44793
44805
  }, [l, U]);
44794
44806
  return /* @__PURE__ */ p(
44795
44807
  Ip,
@@ -44797,7 +44809,7 @@ function pT({
44797
44809
  id: C.id,
44798
44810
  title: C.text,
44799
44811
  icon: S,
44800
- iconClassName: hT[l],
44812
+ iconClassName: BT[l],
44801
44813
  alert: C.badge?.isPastDue ? {
44802
44814
  text: C.badge.text,
44803
44815
  level: "critical"
@@ -44811,7 +44823,7 @@ function pT({
44811
44823
  }
44812
44824
  );
44813
44825
  }
44814
- function KN({
44826
+ function JN({
44815
44827
  tasks: C,
44816
44828
  onClickTask: l,
44817
44829
  hideIcons: f = !1,
@@ -44837,7 +44849,7 @@ function KN({
44837
44849
  }))
44838
44850
  ), o = !y.length;
44839
44851
  return /* @__PURE__ */ p("div", { className: "flex flex-col gap-0", children: o ? /* @__PURE__ */ p("p", { className: "pl-2 font-medium", children: b }) : y.slice(0, U).map((V) => /* @__PURE__ */ p(
44840
- pT,
44852
+ fT,
44841
44853
  {
44842
44854
  task: V,
44843
44855
  status: V.status,
@@ -44847,11 +44859,11 @@ function KN({
44847
44859
  V.id
44848
44860
  )) });
44849
44861
  }
44850
- const IB = [0.05, 0.7, 0.1, 1], zA = { duration: 0 }, vy = 320, Ry = 10, BT = 55, My = 330, Vy = 220, Py = (C, l = 0) => (l + Math.min(C * BT, My)) / 1e3, iB = (C, l = 0, f = !1) => f ? zA : {
44862
+ const IB = [0.05, 0.7, 0.1, 1], zA = { duration: 0 }, vy = 320, Ry = 10, mT = 55, My = 330, Vy = 220, Py = (C, l = 0) => (l + Math.min(C * mT, My)) / 1e3, iB = (C, l = 0, f = !1) => f ? zA : {
44851
44863
  duration: vy / 1e3,
44852
44864
  ease: IB,
44853
44865
  delay: Py(C, l)
44854
- }, ip = "top right", Gy = 180, Ey = 140, fT = 90, mT = 0.9, FT = 10, UT = 1.18, QT = 1.3, yT = 0.94, Ty = {
44866
+ }, ip = "top right", Gy = 180, Ey = 140, FT = 90, UT = 0.9, QT = 10, yT = 1.18, wT = 1.3, bT = 0.94, Ty = {
44855
44867
  type: "spring",
44856
44868
  stiffness: 420,
44857
44869
  damping: 32,
@@ -44859,20 +44871,20 @@ const IB = [0.05, 0.7, 0.1, 1], zA = { duration: 0 }, vy = 320, Ry = 10, BT = 55
44859
44871
  }, ky = {
44860
44872
  duration: Ey / 1e3,
44861
44873
  ease: "easeIn"
44862
- }, wT = {
44874
+ }, xT = {
44863
44875
  type: "spring",
44864
44876
  stiffness: 420,
44865
44877
  damping: 26,
44866
44878
  mass: 0.7
44867
- }, bT = {
44879
+ }, DT = {
44868
44880
  type: "spring",
44869
44881
  stiffness: 520,
44870
44882
  damping: 38,
44871
44883
  mass: 0.8
44872
- }, xT = {
44884
+ }, _T = {
44873
44885
  duration: Gy / 1e3,
44874
44886
  ease: "easeIn"
44875
- }, DT = Ty, _T = {
44887
+ }, ST = Ty, vT = {
44876
44888
  duration: 0.28,
44877
44889
  ease: IB
44878
44890
  }, GA = (C, l) => l ? zA : C, aU = (C, l) => {
@@ -44889,7 +44901,7 @@ const IB = [0.05, 0.7, 0.1, 1], zA = { duration: 0 }, vy = 320, Ry = 10, BT = 55
44889
44901
  const b = setTimeout(() => U(!0), l);
44890
44902
  return () => clearTimeout(b);
44891
44903
  }, [C, l]), f;
44892
- }, ST = (C) => {
44904
+ }, RT = (C) => {
44893
44905
  const [l, f] = We(C <= 0);
44894
44906
  return It(() => {
44895
44907
  if (C <= 0) {
@@ -44899,18 +44911,18 @@ const IB = [0.05, 0.7, 0.1, 1], zA = { duration: 0 }, vy = 320, Ry = 10, BT = 55
44899
44911
  const U = setTimeout(() => f(!0), C);
44900
44912
  return () => clearTimeout(U);
44901
44913
  }, [C]), l;
44902
- }, vT = (C = 0) => C + My + vy, RT = 220, MT = 140, VT = 5, PT = {
44903
- duration: RT / 1e3,
44914
+ }, MT = (C = 0) => C + My + vy, VT = 220, PT = 140, GT = 5, ET = {
44915
+ duration: VT / 1e3,
44904
44916
  ease: IB
44905
- }, GT = {
44906
- duration: MT / 1e3,
44917
+ }, TT = {
44918
+ duration: PT / 1e3,
44907
44919
  ease: "easeIn"
44908
44920
  }, lU = {
44909
44921
  type: "spring",
44910
44922
  stiffness: 520,
44911
44923
  damping: 40,
44912
44924
  mass: 0.8
44913
- }, ET = 4, Zy = (C, l = ET) => {
44925
+ }, kT = 4, Zy = (C, l = kT) => {
44914
44926
  const f = Ee(C), U = Math.abs(C - f.current) > l;
44915
44927
  return It(() => {
44916
44928
  f.current = C;
@@ -44926,20 +44938,20 @@ const IB = [0.05, 0.7, 0.1, 1], zA = { duration: 0 }, vy = 320, Ry = 10, BT = 55
44926
44938
  {
44927
44939
  className: C,
44928
44940
  style: { overflow: "hidden" },
44929
- initial: b ? !1 : { opacity: 0, height: 0, y: VT },
44941
+ initial: b ? !1 : { opacity: 0, height: 0, y: GT },
44930
44942
  animate: { opacity: 1, height: "auto", y: 0 },
44931
44943
  exit: {
44932
44944
  opacity: 0,
44933
44945
  height: 0,
44934
44946
  transition: {
44935
- ...GA(GT, b),
44947
+ ...GA(TT, b),
44936
44948
  // The fade is quick and the closing is a spring, so the row is
44937
44949
  // already invisible while its space is still being given back.
44938
44950
  height: GA(lU, b)
44939
44951
  }
44940
44952
  },
44941
44953
  transition: {
44942
- ...GA(PT, b),
44954
+ ...GA(ET, b),
44943
44955
  height: GA(lU, b)
44944
44956
  },
44945
44957
  children: f
@@ -44964,7 +44976,7 @@ const IB = [0.05, 0.7, 0.1, 1], zA = { duration: 0 }, vy = 320, Ry = 10, BT = 55
44964
44976
  children: S
44965
44977
  }
44966
44978
  );
44967
- }, TT = Qe(
44979
+ }, ZT = Qe(
44968
44980
  "pointer-events-none absolute inset-y-0 right-0 z-10 flex items-center gap-1 rounded-r-md pl-16 pr-2",
44969
44981
  "bg-gradient-to-l from-f1-background from-60% to-transparent",
44970
44982
  // Hidden but still in the DOM and still focusable, so Tab reaches them —
@@ -44972,8 +44984,8 @@ const IB = [0.05, 0.7, 0.1, 1], zA = { duration: 0 }, vy = 320, Ry = 10, BT = 55
44972
44984
  "opacity-0 transition-opacity motion-reduce:transition-none",
44973
44985
  "group-hover:pointer-events-auto group-hover:opacity-100",
44974
44986
  "group-focus-within:pointer-events-auto group-focus-within:opacity-100"
44975
- ), kT = "pointer-events-auto opacity-100";
44976
- function ZT({
44987
+ ), NT = "pointer-events-auto opacity-100";
44988
+ function KT({
44977
44989
  avatar: C,
44978
44990
  avatarSize: l = "lg",
44979
44991
  left: f,
@@ -45033,7 +45045,7 @@ function ZT({
45033
45045
  ) : /* @__PURE__ */ p("div", { className: ie, children: L });
45034
45046
  return K ? /* @__PURE__ */ ee("div", { className: "group relative", children: [
45035
45047
  Z,
45036
- /* @__PURE__ */ p("div", { className: Qe(TT, j && kT), children: o?.map((Ce) => {
45048
+ /* @__PURE__ */ p("div", { className: Qe(ZT, j && NT), children: o?.map((Ce) => {
45037
45049
  const Be = /* @__PURE__ */ p(
45038
45050
  dg,
45039
45051
  {
@@ -45061,7 +45073,7 @@ function ZT({
45061
45073
  }) })
45062
45074
  ] }) : Z;
45063
45075
  }
45064
- const NT = (C) => C == null ? void 0 : typeof C == "function" ? { render: C } : C, WN = [
45076
+ const WT = (C) => C == null ? void 0 : typeof C == "function" ? { render: C } : C, HN = [
45065
45077
  "viridian",
45066
45078
  "malibu",
45067
45079
  "yellow",
@@ -45073,7 +45085,7 @@ const NT = (C) => C == null ? void 0 : typeof C == "function" ? { render: C } :
45073
45085
  "flubber",
45074
45086
  "indigo",
45075
45087
  "camel"
45076
- ], KT = {
45088
+ ], YT = {
45077
45089
  viridian: "bg-[hsl(theme(colors.viridian.50)_/_0.1)] text-[hsl(theme(colors.viridian.50))] dark:bg-[hsl(theme(colors.viridian.50)_/_0.24)]",
45078
45090
  malibu: "bg-[hsl(theme(colors.malibu.50)_/_0.1)] text-[hsl(theme(colors.malibu.50))] dark:bg-[hsl(theme(colors.malibu.50)_/_0.24)]",
45079
45091
  yellow: "bg-[hsl(theme(colors.yellow.50)_/_0.1)] text-[hsl(theme(colors.yellow.50))] dark:bg-[hsl(theme(colors.yellow.50)_/_0.24)]",
@@ -45085,27 +45097,27 @@ const NT = (C) => C == null ? void 0 : typeof C == "function" ? { render: C } :
45085
45097
  flubber: "bg-[hsl(theme(colors.flubber.50)_/_0.1)] text-[hsl(theme(colors.flubber.50))] dark:bg-[hsl(theme(colors.flubber.50)_/_0.24)]",
45086
45098
  indigo: "bg-[hsl(theme(colors.indigo.50)_/_0.1)] text-[hsl(theme(colors.indigo.50))] dark:bg-[hsl(theme(colors.indigo.50)_/_0.24)]",
45087
45099
  camel: "bg-[hsl(theme(colors.camel.50)_/_0.1)] text-[hsl(theme(colors.camel.50))] dark:bg-[hsl(theme(colors.camel.50)_/_0.24)]"
45088
- }, WT = (C) => {
45100
+ }, zT = (C) => {
45089
45101
  const l = C.slice(1), f = l.length === 3 ? l.split("").map((b) => b + b).join("") : l;
45090
45102
  if (!/^[0-9a-f]{6}$/i.test(f)) return;
45091
45103
  const U = parseInt(f, 16);
45092
45104
  return `${U >> 16 & 255} ${U >> 8 & 255} ${U & 255}`;
45093
- }, YT = Qe(
45105
+ }, JT = Qe(
45094
45106
  "bg-[rgb(var(--list-icon-tint)_/_0.1)] text-[rgb(var(--list-icon-tint))]",
45095
45107
  "dark:bg-[rgb(var(--list-icon-tint)_/_0.24)]"
45096
- ), zT = (C) => {
45108
+ ), HT = (C) => {
45097
45109
  if (!C.startsWith("#"))
45098
- return { className: KT[C] };
45099
- const l = WT(C);
45110
+ return { className: YT[C] };
45111
+ const l = zT(C);
45100
45112
  return l ? {
45101
- className: YT,
45113
+ className: JT,
45102
45114
  style: { "--list-icon-tint": l }
45103
45115
  } : void 0;
45104
- }, JT = {
45116
+ }, OT = {
45105
45117
  sm: "size-6 rounded-sm",
45106
45118
  md: "size-8 rounded",
45107
45119
  lg: "size-10 rounded-md"
45108
- }, HT = ({
45120
+ }, jT = ({
45109
45121
  icon: C,
45110
45122
  tint: l,
45111
45123
  size: f
@@ -45114,21 +45126,21 @@ const NT = (C) => C == null ? void 0 : typeof C == "function" ? { render: C } :
45114
45126
  {
45115
45127
  className: Qe(
45116
45128
  "flex aspect-square items-center justify-center",
45117
- JT[f],
45129
+ OT[f],
45118
45130
  l.className
45119
45131
  ),
45120
45132
  style: l.style,
45121
45133
  children: /* @__PURE__ */ p(Ig, { icon: C, size: f })
45122
45134
  }
45123
- ), OT = 6, Wy = (C, l) => !!C.compact || !C.descriptionOptional && l > OT, YN = (C, l, f) => ({ visualization: C, params: l, ...f }), zN = (C, l, f) => ({
45135
+ ), LT = 6, Wy = (C, l) => !!C.compact || !C.descriptionOptional && l > LT, ON = (C, l, f) => ({ visualization: C, params: l, ...f }), jN = (C, l, f) => ({
45124
45136
  visualization: "list",
45125
45137
  params: { schema: C, items: l },
45126
45138
  ...f
45127
- }), JN = (C, l) => (f) => l(f), Ud = (C, l = {}) => {
45139
+ }), LN = (C, l) => (f) => l(f), Ud = (C, l = {}) => {
45128
45140
  if (!C) return;
45129
45141
  const { title: f, info: U, ...b } = C, S = (y) => typeof y == "function" ? y(l) : y;
45130
45142
  return { ...b, title: S(f), info: S(U) };
45131
- }, Ec = (C) => Ud(C.header, C.params)?.title ?? C.id, HN = (C, l) => C ? C.safeParse(l ?? {}).success : !0, ON = [
45143
+ }, Ec = (C) => Ud(C.header, C.params)?.title ?? C.id, XN = (C, l) => C ? C.safeParse(l ?? {}).success : !0, qN = [
45132
45144
  "neutral",
45133
45145
  "accent",
45134
45146
  "critical",
@@ -45147,23 +45159,23 @@ const NT = (C) => C == null ? void 0 : typeof C == "function" ? { render: C } :
45147
45159
  ...l,
45148
45160
  status: "status" in C ? C.status : void 0
45149
45161
  };
45150
- }, jT = "-m-2", Qd = (C) => Qe(jT, "mt-0", !C.isLastSlot && "mb-0"), zy = "gap-2", LT = (C, l, f) => {
45162
+ }, XT = "-m-2", Qd = (C) => Qe(XT, "mt-0", !C.isLastSlot && "mb-0"), zy = "gap-2", qT = (C, l, f) => {
45151
45163
  if (C === "module" && l.module)
45152
45164
  return { left: /* @__PURE__ */ p(pp, { module: l.module, size: f }) };
45153
45165
  if (C === "alert" && l.alert)
45154
45166
  return { left: /* @__PURE__ */ p(mp, { type: l.alert, size: f }) };
45155
45167
  if (C === "icon" && l.avatar?.icon && l.avatar.color) {
45156
- const U = zT(l.avatar.color);
45168
+ const U = HT(l.avatar.color);
45157
45169
  if (U)
45158
45170
  return {
45159
- left: /* @__PURE__ */ p(HT, { icon: l.avatar.icon, tint: U, size: f })
45171
+ left: /* @__PURE__ */ p(jT, { icon: l.avatar.icon, tint: U, size: f })
45160
45172
  };
45161
45173
  }
45162
45174
  return C && l.avatar ? {
45163
45175
  avatar: { type: C, ...l.avatar },
45164
45176
  avatarSize: f
45165
45177
  } : {};
45166
- }, XT = (C, l, f) => {
45178
+ }, $T = (C, l, f) => {
45167
45179
  if (C)
45168
45180
  return C === "counter" ? l.count != null ? /* @__PURE__ */ p(gd, { value: l.count }) : void 0 : C.endsWith("-list") ? l.avatars && l.avatars.length > 0 ? /* @__PURE__ */ p(
45169
45181
  Va,
@@ -45182,19 +45194,19 @@ const NT = (C) => C == null ? void 0 : typeof C == "function" ? { render: C } :
45182
45194
  }
45183
45195
  ) : void 0;
45184
45196
  }, Jy = (C, l) => l ? C ? "lg" : "md" : C ? "md" : "sm";
45185
- function qT({ params: C, ctx: l }) {
45197
+ function ek({ params: C, ctx: l }) {
45186
45198
  const { schema: f, items: U } = C, b = U, [S, y] = We(!1), o = yp(), V = f.maxVisibleItems, E = V != null && b.length > V, T = E && !S ? b.slice(0, V) : b, K = Zy(T.length), N = Wy(f, T.length), j = (!!f.descriptionRequired || !!f.descriptionOptional) && !N, $ = Jy(j, o), X = o ? "md" : "sm";
45187
45199
  return /* @__PURE__ */ ee("div", { className: Qe(Qd(l), "flex flex-col"), children: [
45188
45200
  /* @__PURE__ */ p(Ny, { children: T.map(({ href: L, description: ie, ...Z }) => {
45189
45201
  const Ce = /* @__PURE__ */ p(
45190
- ZT,
45202
+ KT,
45191
45203
  {
45192
45204
  title: Z.title,
45193
45205
  subtitle: Z.subtitle,
45194
45206
  description: N ? void 0 : ie,
45195
45207
  unread: Z.unread,
45196
- ...LT(f.left, Z, $),
45197
- right: XT(f.right, Z, X),
45208
+ ...qT(f.left, Z, $),
45209
+ right: $T(f.right, Z, X),
45198
45210
  actions: Z.actions,
45199
45211
  href: f.clickBehavior === "link" ? L : void 0
45200
45212
  }
@@ -45216,18 +45228,18 @@ function qT({ params: C, ctx: l }) {
45216
45228
  ) }) : null
45217
45229
  ] });
45218
45230
  }
45219
- function $T({
45231
+ function tk({
45220
45232
  params: C,
45221
45233
  ctx: l
45222
45234
  }) {
45223
45235
  const { events: f } = C, U = Zy(f.length);
45224
45236
  return /* @__PURE__ */ p("div", { className: Qe(Qd(l), "flex flex-col", zy), children: /* @__PURE__ */ p(Ny, { children: f.map((b) => /* @__PURE__ */ p(Ky, { animated: !U, children: /* @__PURE__ */ p(zc, { ...b }) }, b.title)) }) });
45225
45237
  }
45226
- const ek = 3, yd = "slot-skeleton-item", dU = ["w-1/2", "w-2/3", "w-2/5", "w-3/5"], tk = {
45238
+ const gk = 3, yd = "slot-skeleton-item", dU = ["w-1/2", "w-2/3", "w-2/5", "w-3/5"], Ik = {
45227
45239
  sm: "size-6",
45228
45240
  md: "size-8",
45229
45241
  lg: "size-10"
45230
- }, nB = (C) => dU[C % dU.length], va = ({ className: C }) => /* @__PURE__ */ p("div", { className: "flex h-5 items-center", children: /* @__PURE__ */ p(lt, { className: Qe("h-3", C) }) }), gk = ({
45242
+ }, nB = (C) => dU[C % dU.length], va = ({ className: C }) => /* @__PURE__ */ p("div", { className: "flex h-5 items-center", children: /* @__PURE__ */ p(lt, { className: Qe("h-3", C) }) }), ik = ({
45231
45243
  params: C,
45232
45244
  ctx: l
45233
45245
  }) => {
@@ -45250,7 +45262,7 @@ const ek = 3, yd = "slot-skeleton-item", dU = ["w-1/2", "w-2/3", "w-2/5", "w-3/5
45250
45262
  className: Qe(
45251
45263
  "shrink-0",
45252
45264
  // The size the real glyph will be — same rule, same card.
45253
- tk[Jy(y, U)],
45265
+ Ik[Jy(y, U)],
45254
45266
  f.left === "person" ? "rounded-full" : "rounded-sm"
45255
45267
  )
45256
45268
  }
@@ -45267,7 +45279,7 @@ const ek = 3, yd = "slot-skeleton-item", dU = ["w-1/2", "w-2/3", "w-2/5", "w-3/5
45267
45279
  )),
45268
45280
  V ? /* @__PURE__ */ p("div", { className: "mt-1 self-start", children: /* @__PURE__ */ p(lt, { className: "h-6 w-24 rounded-sm" }) }) : null
45269
45281
  ] });
45270
- }, Ik = ({ ctx: C }) => /* @__PURE__ */ p("div", { className: Qe(Qd(C), "flex flex-col", zy), children: Array.from({ length: C.expectedItemsCount }, (l, f) => /* @__PURE__ */ ee(
45282
+ }, nk = ({ ctx: C }) => /* @__PURE__ */ p("div", { className: Qe(Qd(C), "flex flex-col", zy), children: Array.from({ length: C.expectedItemsCount }, (l, f) => /* @__PURE__ */ ee(
45271
45283
  "div",
45272
45284
  {
45273
45285
  "data-testid": yd,
@@ -45282,7 +45294,7 @@ const ek = 3, yd = "slot-skeleton-item", dU = ["w-1/2", "w-2/3", "w-2/5", "w-3/5
45282
45294
  ]
45283
45295
  },
45284
45296
  f
45285
- )) }), ik = ({ ctx: C }) => /* @__PURE__ */ p("div", { className: "grid auto-cols-fr grid-flow-col items-end gap-x-3", children: Array.from({ length: C.expectedItemsCount }, (l, f) => /* @__PURE__ */ ee(
45297
+ )) }), Ck = ({ ctx: C }) => /* @__PURE__ */ p("div", { className: "grid auto-cols-fr grid-flow-col items-end gap-x-3", children: Array.from({ length: C.expectedItemsCount }, (l, f) => /* @__PURE__ */ ee(
45286
45298
  "div",
45287
45299
  {
45288
45300
  "data-testid": yd,
@@ -45293,13 +45305,13 @@ const ek = 3, yd = "slot-skeleton-item", dU = ["w-1/2", "w-2/3", "w-2/5", "w-3/5
45293
45305
  ]
45294
45306
  },
45295
45307
  f
45296
- )) }), nk = (C, l) => /* @__PURE__ */ p("div", { className: "flex flex-col gap-2", children: Array.from({ length: l.expectedItemsCount }, (f, U) => /* @__PURE__ */ p("div", { "data-testid": yd, children: /* @__PURE__ */ p(lt, { className: Qe("h-6", nB(U)) }) }, U)) }), uU = {
45308
+ )) }), ok = (C, l) => /* @__PURE__ */ p("div", { className: "flex flex-col gap-2", children: Array.from({ length: l.expectedItemsCount }, (f, U) => /* @__PURE__ */ p("div", { "data-testid": yd, children: /* @__PURE__ */ p(lt, { className: Qe("h-6", nB(U)) }) }, U)) }), uU = {
45297
45309
  list: {
45298
- render: (C, l) => /* @__PURE__ */ p(qT, { params: C, ctx: l }),
45310
+ render: (C, l) => /* @__PURE__ */ p(ek, { params: C, ctx: l }),
45299
45311
  skeleton: (C, l) => (
45300
45312
  // Partial: a loading `list` carries its schema but not yet its items.
45301
45313
  /* @__PURE__ */ p(
45302
- gk,
45314
+ ik,
45303
45315
  {
45304
45316
  params: C ?? {},
45305
45317
  ctx: l
@@ -45311,15 +45323,15 @@ const ek = 3, yd = "slot-skeleton-item", dU = ["w-1/2", "w-2/3", "w-2/5", "w-3/5
45311
45323
  // because each one is wrapped for the CHURN (see `EventListSlot`), which asks
45312
45324
  // for a per-item wrapper that component has no way to put in.
45313
45325
  "event-list": {
45314
- render: (C, l) => /* @__PURE__ */ p($T, { params: C, ctx: l }),
45315
- skeleton: (C, l) => /* @__PURE__ */ p(Ik, { ctx: l })
45326
+ render: (C, l) => /* @__PURE__ */ p(tk, { params: C, ctx: l }),
45327
+ skeleton: (C, l) => /* @__PURE__ */ p(nk, { ctx: l })
45316
45328
  },
45317
45329
  indicators: {
45318
- render: (C) => /* @__PURE__ */ p(jE, { ...C }),
45319
- skeleton: (C, l) => /* @__PURE__ */ p(ik, { ctx: l })
45330
+ render: (C) => /* @__PURE__ */ p(XE, { ...C }),
45331
+ skeleton: (C, l) => /* @__PURE__ */ p(Ck, { ctx: l })
45320
45332
  }
45321
- }, Ck = "-ml-0.5 mt-2", Sh = 450, ok = "cubic-bezier(0.4, 0, 0.1, 1)", rk = 1.04;
45322
- function Ak({
45333
+ }, rk = "-ml-0.5 mt-2", Sh = 450, Ak = "cubic-bezier(0.4, 0, 0.1, 1)", sk = 1.04;
45334
+ function ak({
45323
45335
  slots: C,
45324
45336
  loading: l = !1,
45325
45337
  slotRenderers: f,
@@ -45335,7 +45347,7 @@ function Ak({
45335
45347
  className: "flex flex-col",
45336
45348
  ...l ? { "aria-busy": !0, "aria-live": "polite" } : {},
45337
45349
  children: C.map((S, y) => {
45338
- const o = NT(b[S.visualization]), V = {
45350
+ const o = WT(b[S.visualization]), V = {
45339
45351
  ...U,
45340
45352
  isLastSlot: y === C.length - 1
45341
45353
  };
@@ -45344,9 +45356,9 @@ function Ak({
45344
45356
  l ? (
45345
45357
  // A placeholder says nothing worth reading out — the stack
45346
45358
  // above already announces that the widget is busy.
45347
- /* @__PURE__ */ p("div", { "aria-hidden": "true", children: (o?.skeleton ?? nk)(S.params, {
45359
+ /* @__PURE__ */ p("div", { "aria-hidden": "true", children: (o?.skeleton ?? ok)(S.params, {
45348
45360
  ...V,
45349
- expectedItemsCount: S.expectedItemsCount ?? ek
45361
+ expectedItemsCount: S.expectedItemsCount ?? gk
45350
45362
  }) })
45351
45363
  ) : o ? o.render(S.params, V) : /* @__PURE__ */ p("div", { className: "rounded-md border border-dashed border-f1-border p-2 text-f1-foreground-secondary", children: `No renderer for slot "${S.visualization}"` })
45352
45364
  ] }, y);
@@ -45420,14 +45432,14 @@ function CB({
45420
45432
  header: _e,
45421
45433
  fullHeight: f,
45422
45434
  action: U,
45423
- footerClassName: Ck,
45435
+ footerClassName: rk,
45424
45436
  actions: j,
45425
45437
  headerControls: fe,
45426
45438
  summaries: b,
45427
45439
  ...V ? { alert: V } : { status: E },
45428
45440
  isDragging: L,
45429
45441
  children: /* @__PURE__ */ p(
45430
- Ak,
45442
+ ak,
45431
45443
  {
45432
45444
  ctx: H === void 0 ? ie : { ...ie, selection: H },
45433
45445
  loading: K,
@@ -45452,7 +45464,7 @@ function CB({
45452
45464
  className: "h-full",
45453
45465
  "data-turning": Be || void 0,
45454
45466
  style: {
45455
- transform: `scale(${Be ? rk : 1})`,
45467
+ transform: `scale(${Be ? sk : 1})`,
45456
45468
  transition: Ce ? void 0 : `transform ${Sh / 2}ms ease-out`
45457
45469
  },
45458
45470
  children: /* @__PURE__ */ ee(
@@ -45464,7 +45476,7 @@ function CB({
45464
45476
  // No transition under reduced motion: the card still turns (the back
45465
45477
  // has to become visible — `backface-visibility` hides whichever face
45466
45478
  // points away), it just gets there at once.
45467
- transition: Ce ? void 0 : `transform ${Sh}ms ${ok}`
45479
+ transition: Ce ? void 0 : `transform ${Sh}ms ${Ak}`
45468
45480
  },
45469
45481
  children: [
45470
45482
  /* @__PURE__ */ p(
@@ -45515,8 +45527,8 @@ function CB({
45515
45527
  )
45516
45528
  ) : Ve;
45517
45529
  }
45518
- const sk = 24;
45519
- function vh(C = sk) {
45530
+ const lk = 24;
45531
+ function vh(C = lk) {
45520
45532
  const [l, f] = We(null), [U, b] = We({ top: !1, bottom: !1 });
45521
45533
  It(() => {
45522
45534
  if (!l) return;
@@ -45540,8 +45552,8 @@ function vh(C = sk) {
45540
45552
  }, [U, C]);
45541
45553
  return { ref: f, style: S, element: l };
45542
45554
  }
45543
- const ak = "(min-width: 2200px) and (min-height: 900px)", Hy = () => {
45544
- const C = ZA(ak, {
45555
+ const ck = "(min-width: 2200px) and (min-height: 900px)", Hy = () => {
45556
+ const C = ZA(ck, {
45545
45557
  initializeWithValue: !0,
45546
45558
  defaultValue: !1
45547
45559
  }), l = ZA(`(max-width: ${NA.md}px)`, {
@@ -45568,7 +45580,7 @@ const ak = "(min-width: 2200px) and (min-height: 900px)", Hy = () => {
45568
45580
  asideClassName: l ? "w-full shrink-0" : "w-80 shrink-0",
45569
45581
  stacked: l
45570
45582
  };
45571
- }, lk = "animate-in fade-in zoom-in-95 duration-300 ease-out motion-reduce:animate-none";
45583
+ }, dk = "animate-in fade-in zoom-in-95 duration-300 ease-out motion-reduce:animate-none";
45572
45584
  function Oy({
45573
45585
  previewKey: C,
45574
45586
  children: l,
@@ -45579,7 +45591,7 @@ function Oy({
45579
45591
  /* @__PURE__ */ p(
45580
45592
  "div",
45581
45593
  {
45582
- className: Qe("w-full", lk),
45594
+ className: Qe("w-full", dk),
45583
45595
  style: { maxWidth: `${U}px` },
45584
45596
  children: l
45585
45597
  },
@@ -45592,8 +45604,8 @@ function Oy({
45592
45604
  ) : null
45593
45605
  ] }) });
45594
45606
  }
45595
- const ck = (C, l) => typeof C == "function" ? C(l) : C, dk = 250;
45596
- function uk({
45607
+ const uk = (C, l) => typeof C == "function" ? C(l) : C, hk = 250;
45608
+ function pk({
45597
45609
  isOpen: C,
45598
45610
  onClose: l,
45599
45611
  schema: f,
@@ -45635,7 +45647,7 @@ function uk({
45635
45647
  defaultValues: U,
45636
45648
  submitConfig: {
45637
45649
  type: "autosubmit",
45638
- delay: dk,
45650
+ delay: hk,
45639
45651
  hideActionBar: !0
45640
45652
  },
45641
45653
  styling: { noPadding: !0 },
@@ -45646,7 +45658,7 @@ function uk({
45646
45658
  Oy,
45647
45659
  {
45648
45660
  previewKey: "widget-params",
45649
- info: ck(S, Z),
45661
+ info: uk(S, Z),
45650
45662
  previewWidth: o,
45651
45663
  children: b(Z)
45652
45664
  }
@@ -45655,19 +45667,18 @@ function uk({
45655
45667
  }
45656
45668
  );
45657
45669
  }
45658
- const hk = (C) => {
45670
+ const Bk = (C) => {
45659
45671
  const l = C?.cloneNode(!0);
45660
45672
  return l instanceof HTMLElement ? (l.classList.remove("invisible"), l.style.transform = "none", l.style.transition = "none", l.removeAttribute("id"), l.querySelectorAll("[id]").forEach((f) => f.removeAttribute("id")), l.setAttribute("aria-hidden", "true"), l.setAttribute("inert", ""), l) : null;
45661
- }, pk = ({
45673
+ }, fk = ({
45662
45674
  id: C,
45663
45675
  disabled: l = !1,
45664
45676
  children: f
45665
45677
  }) => {
45666
45678
  const { listeners: U, setNodeRef: b, transform: S, transition: y, isDragging: o } = N_({ id: C, disabled: l }), V = {
45667
45679
  // VERTICAL ONLY: a column is one dimension, so the neighbours' shuffles
45668
- // ignore any horizontal component. dnd-kit reports both axes; dropping x
45669
- // here is the same thing `restrictToVerticalAxis` does, without taking on
45670
- // @dnd-kit/modifiers for it.
45680
+ // ignore any horizontal component. This is the shuffle; the card under the
45681
+ // pointer is held to the same axis by the column's `verticalOnly` modifier.
45671
45682
  transform: K_.Translate.toString(S && { ...S, x: 0 }),
45672
45683
  transition: y ?? void 0
45673
45684
  };
@@ -45688,16 +45699,16 @@ const hk = (C) => {
45688
45699
  children: f({ isDragging: o })
45689
45700
  }
45690
45701
  );
45691
- }, Bk = 12, fk = 280, mk = 2, Fk = /* @__PURE__ */ new Set(["auto", "scroll", "overlay"]), Uk = (C) => {
45702
+ }, mk = 12, Fk = 280, Uk = 2, Qk = /* @__PURE__ */ new Set(["auto", "scroll", "overlay"]), yk = (C) => {
45692
45703
  let l = C.parentElement;
45693
45704
  for (; l && l !== document.body && l !== document.documentElement; ) {
45694
- if (Fk.has(getComputedStyle(l).getPropertyValue("overflow-y")))
45705
+ if (Qk.has(getComputedStyle(l).getPropertyValue("overflow-y")))
45695
45706
  return l;
45696
45707
  l = l.parentElement;
45697
45708
  }
45698
45709
  return null;
45699
45710
  };
45700
- function Qk({
45711
+ function wk({
45701
45712
  config: C,
45702
45713
  count: l,
45703
45714
  gap: f,
@@ -45706,7 +45717,7 @@ function Qk({
45706
45717
  }) {
45707
45718
  const S = C === !1 ? null : C, [y, o] = We(null), [V, E] = We(null), T = S?.scrollElement ?? V, K = S != null && !b, N = S?.scrollElement != null;
45708
45719
  xi(() => {
45709
- !K || N || !y || E(Uk(y));
45720
+ !K || N || !y || E(yk(y));
45710
45721
  }, [K, N, y]);
45711
45722
  const [j, $] = We(0);
45712
45723
  xi(() => {
@@ -45719,7 +45730,7 @@ function Qk({
45719
45730
  const Ue = new ResizeObserver(Be);
45720
45731
  return Ue.observe(T), y.parentElement && Ue.observe(y.parentElement), () => Ue.disconnect();
45721
45732
  }, [K, y, T]);
45722
- const X = K && T != null && l >= (S?.threshold ?? Bk), L = Ee(U);
45733
+ const X = K && T != null && l >= (S?.threshold ?? mk), L = Ee(U);
45723
45734
  L.current = U;
45724
45735
  const ie = U.join(","), Z = gt(
45725
45736
  (Be) => {
@@ -45735,8 +45746,8 @@ function Qk({
45735
45746
  gap: f,
45736
45747
  scrollMargin: j,
45737
45748
  rangeExtractor: Z,
45738
- overscan: S?.overscan ?? mk,
45739
- estimateSize: () => S?.estimateHeight ?? fk,
45749
+ overscan: S?.overscan ?? Uk,
45750
+ estimateSize: () => S?.estimateHeight ?? Fk,
45740
45751
  getScrollElement: () => T
45741
45752
  });
45742
45753
  return {
@@ -45753,7 +45764,10 @@ function Qk({
45753
45764
  } : null
45754
45765
  };
45755
45766
  }
45756
- const yk = ({
45767
+ const bk = ({ transform: C }) => ({
45768
+ ...C,
45769
+ x: 0
45770
+ }), xk = ({
45757
45771
  arrival: C,
45758
45772
  stow: l,
45759
45773
  fullHeight: f,
@@ -45765,7 +45779,7 @@ const yk = ({
45765
45779
  const K = S.current;
45766
45780
  K?.offsetParent && o(E * l.pitch - K.offsetTop);
45767
45781
  }, [l?.stowed, l?.pitch, E]);
45768
- const T = b ? zA : C?.arriving ? iB(E, C.delayMs) : !l || l.instant ? zA : V ? xT : DT;
45782
+ const T = b ? zA : C?.arriving ? iB(E, C.delayMs) : !l || l.instant ? zA : V ? _T : ST;
45769
45783
  return /* @__PURE__ */ p(
45770
45784
  Zt.div,
45771
45785
  {
@@ -45782,7 +45796,7 @@ const yk = ({
45782
45796
  children: U
45783
45797
  }
45784
45798
  );
45785
- }, wk = [
45799
+ }, Dk = [
45786
45800
  "a",
45787
45801
  "button",
45788
45802
  "input",
@@ -45797,22 +45811,22 @@ const yk = ({
45797
45811
  "[role='tab']",
45798
45812
  "[contenteditable='true']"
45799
45813
  ].join(",");
45800
- class bk extends X_ {
45814
+ class _k extends X_ {
45801
45815
  static activators = [
45802
45816
  {
45803
45817
  eventName: "onPointerDown",
45804
45818
  handler: ({ nativeEvent: l }, { onActivation: f }) => {
45805
45819
  if (!l.isPrimary || l.button !== 0) return !1;
45806
45820
  const U = l.target;
45807
- return U instanceof Element && U.closest(wk) ? !1 : (f?.({ event: l }), !0);
45821
+ return U instanceof Element && U.closest(Dk) ? !1 : (f?.({ event: l }), !0);
45808
45822
  }
45809
45823
  }
45810
45824
  ];
45811
45825
  }
45812
- const xk = {
45826
+ const Sk = {
45813
45827
  duration: 450,
45814
45828
  easing: "cubic-bezier(0.4, 0, 0.1, 1)"
45815
- }, Dk = { main: 24, right: 16 }, _k = ({
45829
+ }, vk = [bk], Rk = { main: 24, right: 16 }, Mk = ({
45816
45830
  hidden: C,
45817
45831
  placement: l,
45818
45832
  measureRef: f,
@@ -45840,7 +45854,7 @@ const xk = {
45840
45854
  ),
45841
45855
  children: U
45842
45856
  }
45843
- ), Sk = ({
45857
+ ), Vk = ({
45844
45858
  onClick: C,
45845
45859
  label: l
45846
45860
  }) => /* @__PURE__ */ p(yn, { label: l, children: /* @__PURE__ */ p(
@@ -45879,17 +45893,17 @@ function hU({
45879
45893
  style: Fe
45880
45894
  }) {
45881
45895
  const re = Vt(), ce = !S, H = (He) => E !== void 0 && He.id !== E, te = ce && V != null && C.length > 1, [q, fe] = We(null), xe = W_(
45882
- Y_(bk, { activationConstraint: { distance: 4 } })
45896
+ Y_(_k, { activationConstraint: { distance: 4 } })
45883
45897
  ), [be, _e] = We(null), Ve = C.find((He) => He.id === be), [ue, Te] = We(null), Re = Ee(null), Le = Ee(null), et = (He) => {
45884
- Le.current = hk(
45898
+ Le.current = Bk(
45885
45899
  Re.current?.querySelector(`[data-widget-id="${He}"]`)
45886
45900
  );
45887
45901
  }, bt = (He) => {
45888
45902
  He && Le.current && He.replaceChildren(Le.current);
45889
- }, Ft = Qk({
45903
+ }, Ft = wk({
45890
45904
  config: K === !0 ? {} : K,
45891
45905
  count: C.length,
45892
- gap: Dk[l],
45906
+ gap: Rk[l],
45893
45907
  // The card UNDER THE POINTER stays mounted for the whole gesture whatever the
45894
45908
  // column scrolls past: dnd-kit holds the node it is dragging, and taking that
45895
45909
  // out from under it mid-drag ends the drag rather than the drop.
@@ -45987,14 +46001,14 @@ function hU({
45987
46001
  }
45988
46002
  ) }) })
45989
46003
  ] });
45990
- }, $e = T === !1 ? null : T, st = ST(vT($e?.delayMs)), pt = (He) => N && {
46004
+ }, $e = T === !1 ? null : T, st = RT(MT($e?.delayMs)), pt = (He) => N && {
45991
46005
  ...N,
45992
46006
  stowed: N.stowed && He.id !== E,
45993
46007
  instant: N.stowed
45994
46008
  }, it = (He, Ut, xt) => {
45995
46009
  const kt = xt ? pt(xt) : void 0;
45996
46010
  return !$e && !kt ? Ut : /* @__PURE__ */ p(
45997
- yk,
46011
+ xk,
45998
46012
  {
45999
46013
  arrival: $e ? {
46000
46014
  order: ($e.order ?? 0) + He,
@@ -46007,12 +46021,12 @@ function hU({
46007
46021
  }
46008
46022
  );
46009
46023
  }, Oe = (He, Ut, xt) => /* @__PURE__ */ p(
46010
- _k,
46024
+ Mk,
46011
46025
  {
46012
46026
  hidden: H(He),
46013
46027
  placement: xt,
46014
46028
  measureRef: Ft.measureRef,
46015
- children: te ? /* @__PURE__ */ p(pk, { id: He.id, disabled: He.locked, children: (kt) => it(Ut, Ze(He, kt), He) }) : it(Ut, Ze(He), He)
46029
+ children: te ? /* @__PURE__ */ p(fk, { id: He.id, disabled: He.locked, children: (kt) => it(Ut, Ze(He, kt), He) }) : it(Ut, Ze(He), He)
46016
46030
  },
46017
46031
  He.id
46018
46032
  ), ft = /* @__PURE__ */ p(
@@ -46058,6 +46072,7 @@ function hU({
46058
46072
  {
46059
46073
  sensors: xe,
46060
46074
  collisionDetection: J_,
46075
+ modifiers: vk,
46061
46076
  onDragStart: ({ active: He }) => {
46062
46077
  et(String(He.id)), fe(String(He.id));
46063
46078
  },
@@ -46076,7 +46091,7 @@ function hU({
46076
46091
  children: ft
46077
46092
  }
46078
46093
  ),
46079
- /* @__PURE__ */ p(j_, { dropAnimation: xk, children: q ? (
46094
+ /* @__PURE__ */ p(j_, { dropAnimation: Sk, children: q ? (
46080
46095
  // Solid backdrop: Card's own background is translucent, and the
46081
46096
  // copy rides over whatever the column shows beneath it.
46082
46097
  /* @__PURE__ */ p(
@@ -46093,7 +46108,7 @@ function hU({
46093
46108
  !S && o ? it(
46094
46109
  C.length,
46095
46110
  /* @__PURE__ */ p(
46096
- Sk,
46111
+ Vk,
46097
46112
  {
46098
46113
  onClick: o,
46099
46114
  label: j ?? re.widgets.addWidget
@@ -46101,7 +46116,7 @@ function hU({
46101
46116
  )
46102
46117
  ) : null,
46103
46118
  Ve?.paramsSchema && $ ? /* @__PURE__ */ p(
46104
- uk,
46119
+ pk,
46105
46120
  {
46106
46121
  isOpen: !0,
46107
46122
  onClose: () => _e(null),
@@ -46118,7 +46133,7 @@ function hU({
46118
46133
  }
46119
46134
  );
46120
46135
  }
46121
- const vk = ({
46136
+ const Pk = ({
46122
46137
  collapsed: C,
46123
46138
  open: l,
46124
46139
  glide: f,
@@ -46136,7 +46151,7 @@ const vk = ({
46136
46151
  j.jump(b);
46137
46152
  return;
46138
46153
  }
46139
- const X = t_(j, b, _T);
46154
+ const X = t_(j, b, vT);
46140
46155
  return () => X.stop();
46141
46156
  }, [U, V, b, j]), {
46142
46157
  mode: T,
@@ -46152,18 +46167,18 @@ const vk = ({
46152
46167
  ...l ? Ty : ky,
46153
46168
  // Between two glyphs the panel glides; on the way out of one it must
46154
46169
  // not travel at all.
46155
- y: f ? bT : zA
46170
+ y: f ? DT : zA
46156
46171
  },
46157
46172
  // Collapsing puts the glyphs in as the cards finish retracting — they overlap
46158
46173
  // on purpose. On the first paint there is no retract to follow, so they are
46159
46174
  // simply the right area arriving after the main one.
46160
- glyphDelayMs: y ? fT : Vy
46175
+ glyphDelayMs: y ? FT : Vy
46161
46176
  };
46162
- }, Rk = {
46177
+ }, Gk = {
46163
46178
  morning: "bg-gradient-to-bl from-[#E51943] from-20% via-[#F97316] via-35% to-transparent to-50%",
46164
46179
  afternoon: "bg-gradient-to-bl from-[#5596F6] from-20% via-[#10B881] via-35% to-transparent to-50%",
46165
46180
  evening: "bg-gradient-to-bl from-[#3739A8] from-20% via-[#CB6687] via-35% to-transparent to-50%"
46166
- }, Mk = ({
46181
+ }, Ek = ({
46167
46182
  period: C,
46168
46183
  className: l
46169
46184
  }) => /* @__PURE__ */ p(
@@ -46172,21 +46187,21 @@ const vk = ({
46172
46187
  "aria-hidden": !0,
46173
46188
  className: Qe(
46174
46189
  "pointer-events-none absolute inset-0 h-screen max-h-[1000px] opacity-[0.08]",
46175
- Rk[C],
46190
+ Gk[C],
46176
46191
  l
46177
46192
  )
46178
46193
  }
46179
- ), bc = 40, Vk = 712, Pk = 8, Gk = 1e3, jy = (C) => {
46194
+ ), bc = 40, Tk = 712, kk = 8, Zk = 1e3, jy = (C) => {
46180
46195
  const l = QI(), [f, U] = We(!0);
46181
46196
  return It(() => {
46182
46197
  if (!C || l) {
46183
46198
  U(!0);
46184
46199
  return;
46185
46200
  }
46186
- const b = setInterval(() => U((S) => !S), Gk);
46201
+ const b = setInterval(() => U((S) => !S), Zk);
46187
46202
  return () => clearInterval(b);
46188
46203
  }, [C, l]), f;
46189
- }, Ek = 0.24, Tk = ({
46204
+ }, Nk = 0.24, Kk = ({
46190
46205
  text: C,
46191
46206
  ticking: l
46192
46207
  }) => {
@@ -46196,13 +46211,13 @@ const vk = ({
46196
46211
  "span",
46197
46212
  {
46198
46213
  className: "transition-opacity duration-200",
46199
- style: { opacity: f ? 1 : Ek },
46214
+ style: { opacity: f ? 1 : Nk },
46200
46215
  children: ":"
46201
46216
  }
46202
46217
  ) : null,
46203
46218
  U
46204
46219
  ] }, b)) });
46205
- }, kk = {
46220
+ }, Wk = {
46206
46221
  neutral: {
46207
46222
  pill: "bg-f1-background-inverse text-f1-foreground-inverse",
46208
46223
  button: "bg-f1-background-accent-bold hover:bg-f1-background-accent-bold-hover",
@@ -46260,7 +46275,7 @@ const vk = ({
46260
46275
  soloIcon: "inverse",
46261
46276
  soloRing: "ring-f1-border-inverse"
46262
46277
  }
46263
- }, Zk = ({
46278
+ }, Yk = ({
46264
46279
  widget: C,
46265
46280
  order: l,
46266
46281
  open: f,
@@ -46268,16 +46283,16 @@ const vk = ({
46268
46283
  onOpen: b,
46269
46284
  onClose: S
46270
46285
  }) => {
46271
- const y = QI(), o = C.railAction, V = jy(!!o?.flashing && !f), E = o?.text && !f ? o.text : void 0, T = kk[o?.tone ?? "neutral"], K = {
46286
+ const y = QI(), o = C.railAction, V = jy(!!o?.flashing && !f), E = o?.text && !f ? o.text : void 0, T = Wk[o?.tone ?? "neutral"], K = {
46272
46287
  initial: {
46273
46288
  opacity: 0,
46274
- scale: y ? 1 : UT
46289
+ scale: y ? 1 : yT
46275
46290
  },
46276
46291
  animate: { opacity: 1, scale: 1 },
46277
- exit: { opacity: 0, scale: y ? 1 : QT },
46278
- whileTap: y ? void 0 : { scale: yT },
46292
+ exit: { opacity: 0, scale: y ? 1 : wT },
46293
+ whileTap: y ? void 0 : { scale: bT },
46279
46294
  transition: GA(
46280
- { ...wT, delay: Py(l, U) },
46295
+ { ...xT, delay: Py(l, U) },
46281
46296
  y
46282
46297
  )
46283
46298
  }, N = C.hasUpdates ? /* @__PURE__ */ p("span", { className: "pointer-events-none absolute -right-0.5 -top-0.5 h-2 w-2 rounded-full bg-f1-background-accent-bold ring-2 ring-f1-background" }) : null;
@@ -46306,7 +46321,7 @@ const vk = ({
46306
46321
  onFocus: (j) => b(C.id, j.currentTarget),
46307
46322
  ...K,
46308
46323
  children: [
46309
- E ? /* @__PURE__ */ p(Tk, { text: E, ticking: !!o.ticking }) : null,
46324
+ E ? /* @__PURE__ */ p(Kk, { text: E, ticking: !!o.ticking }) : null,
46310
46325
  /* @__PURE__ */ p(
46311
46326
  OA,
46312
46327
  {
@@ -46359,7 +46374,7 @@ const vk = ({
46359
46374
  ] })
46360
46375
  }
46361
46376
  );
46362
- }, Rh = "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden", Nk = 16, pU = 768, Kk = 150, Wk = 8, jN = bg(
46377
+ }, Rh = "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden", zk = 16, pU = 768, Jk = 150, Hk = 8, $N = bg(
46363
46378
  function({
46364
46379
  children: l,
46365
46380
  leftWidgets: f = [],
@@ -46379,7 +46394,7 @@ const vk = ({
46379
46394
  onReorderWidgets: L,
46380
46395
  period: ie = "morning",
46381
46396
  asideWidth: Z = 396,
46382
- mainWidth: Ce = Vk,
46397
+ mainWidth: Ce = Tk,
46383
46398
  bleed: Be = 24,
46384
46399
  stackedPinsAfter: Ue = 2,
46385
46400
  ctx: Fe = {},
@@ -46413,7 +46428,7 @@ const vk = ({
46413
46428
  ), ft = vh(), He = vh(), Ut = vh(), xt = (vt) => E.includes(vt) ? {
46414
46429
  ...T,
46415
46430
  scrollElement: vt === "main" ? ft.element : He.element
46416
- } : !1, kt = b != null || U.length > 0 || X != null && it("right"), ig = Te > 0 && Te < Ce + Nk + Z, Xt = kt && U.length > 0 && (ig || ($e ?? !1)), ug = Xt ? bc : Z, hg = Xt ? "Expand widgets panel" : "Collapse widgets panel", mt = kt && Xe, zt = Te > 0 && Te < pU, Nt = {
46431
+ } : !1, kt = b != null || U.length > 0 || X != null && it("right"), ig = Te > 0 && Te < Ce + zk + Z, Xt = kt && U.length > 0 && (ig || ($e ?? !1)), ug = Xt ? bc : Z, hg = Xt ? "Expand widgets panel" : "Collapse widgets panel", mt = kt && Xe, zt = Te > 0 && Te < pU, Nt = {
46417
46432
  pinned: zt ? U.filter((vt) => vt.locked) : [],
46418
46433
  rest: zt ? U.filter((vt) => !vt.locked) : []
46419
46434
  }, pg = Up.toArray(l), Fg = (zt ? [
@@ -46431,7 +46446,7 @@ const vk = ({
46431
46446
  It(() => {
46432
46447
  Xt || et(null);
46433
46448
  }, [Xt]);
46434
- const qt = vk({
46449
+ const qt = Pk({
46435
46450
  collapsed: Xt,
46436
46451
  open: Ht != null,
46437
46452
  glide: St,
@@ -46445,7 +46460,7 @@ const vk = ({
46445
46460
  // (`y`), so moving between glyphs composites instead of relaying the
46446
46461
  // panel out on every frame.
46447
46462
  top: 0,
46448
- right: bc + Wk,
46463
+ right: bc + Hk,
46449
46464
  width: Z,
46450
46465
  // The panel grows to its widget, up to what is left below its glyph,
46451
46466
  // and scrolls past that.
@@ -46493,7 +46508,7 @@ const vk = ({
46493
46508
  }, wt = () => {
46494
46509
  yt.current && clearTimeout(yt.current), yt.current = null;
46495
46510
  }, Et = () => {
46496
- wt(), yt.current = setTimeout(() => et(null), Kk);
46511
+ wt(), yt.current = setTimeout(() => et(null), Jk);
46497
46512
  }, Qg = (vt, vg) => {
46498
46513
  wt();
46499
46514
  const yI = ue.current;
@@ -46554,7 +46569,7 @@ const vk = ({
46554
46569
  "aria-hidden": !0,
46555
46570
  className: "pointer-events-none absolute -z-10 overflow-hidden bg-f1-special-page",
46556
46571
  style: { top: -Be, bottom: -Be, left: -Be, right: -Be },
46557
- children: /* @__PURE__ */ p(Mk, { period: ie })
46572
+ children: /* @__PURE__ */ p(Ek, { period: ie })
46558
46573
  }
46559
46574
  ),
46560
46575
  /* @__PURE__ */ ee(
@@ -46721,7 +46736,7 @@ const vk = ({
46721
46736
  onMouseEnter: wt,
46722
46737
  children: [
46723
46738
  U.map((vt, vg) => /* @__PURE__ */ p(
46724
- Zk,
46739
+ Yk,
46725
46740
  {
46726
46741
  widget: vt,
46727
46742
  order: vg,
@@ -46779,10 +46794,10 @@ const vk = ({
46779
46794
  initial: !1,
46780
46795
  animate: {
46781
46796
  opacity: qt.bodyOut ? 1 : 0,
46782
- scale: qt.bodyOut ? 1 : mT,
46797
+ scale: qt.bodyOut ? 1 : UT,
46783
46798
  // Toward the strip while it shrinks, so it converges on the glyph
46784
46799
  // rather than just fading where it stood.
46785
- x: qt.bodyOut ? 0 : FT,
46800
+ x: qt.bodyOut ? 0 : QT,
46786
46801
  // Only the panel is offset from its own box; in the grid it sits
46787
46802
  // where the grid put it.
46788
46803
  y: Jt ? bt : 0
@@ -46798,7 +46813,7 @@ const vk = ({
46798
46813
  visibleWidgetId: Jt ? mI : void 0,
46799
46814
  stow: {
46800
46815
  stowed: Xt,
46801
- pitch: bc + Pk,
46816
+ pitch: bc + kk,
46802
46817
  scale: bc / Z
46803
46818
  },
46804
46819
  slotRenderers: S,
@@ -46826,7 +46841,7 @@ const vk = ({
46826
46841
  ), BU = {
46827
46842
  main: 712,
46828
46843
  right: 396
46829
- }, Ly = (C) => typeof C == "object" && C !== null && !Fp(C) && Array.isArray(C.slots), Yk = ({
46844
+ }, Ly = (C) => typeof C == "object" && C !== null && !Fp(C) && Array.isArray(C.slots), Ok = ({
46830
46845
  preview: C,
46831
46846
  slotRenderers: l
46832
46847
  }) => Ly(C) ? /* @__PURE__ */ p(
@@ -46840,11 +46855,11 @@ const vk = ({
46840
46855
  loading: C.loading,
46841
46856
  slotRenderers: l
46842
46857
  }
46843
- ) : /* @__PURE__ */ p(Bg, { children: C }), zk = (C) => C.info ?? (Ly(C.preview) ? Ud(C.preview.header, C.preview.params)?.info : void 0), Jk = ({ label: C, icon: l }) => /* @__PURE__ */ ee("div", { className: "flex items-center gap-1.5 px-2 pb-1 pt-5 first:pt-1", children: [
46858
+ ) : /* @__PURE__ */ p(Bg, { children: C }), jk = (C) => C.info ?? (Ly(C.preview) ? Ud(C.preview.header, C.preview.params)?.info : void 0), Lk = ({ label: C, icon: l }) => /* @__PURE__ */ ee("div", { className: "flex items-center gap-1.5 px-2 pb-1 pt-5 first:pt-1", children: [
46844
46859
  l ? /* @__PURE__ */ p(Ig, { icon: l, size: "sm", color: "secondary" }) : null,
46845
46860
  /* @__PURE__ */ p("h6", { className: "m-0 text-xs font-medium uppercase tracking-wide text-f1-foreground-secondary", children: C })
46846
46861
  ] });
46847
- function LN({
46862
+ function eK({
46848
46863
  isOpen: C,
46849
46864
  onClose: l,
46850
46865
  widgets: f,
@@ -46901,7 +46916,7 @@ function LN({
46901
46916
  ),
46902
46917
  /* @__PURE__ */ ee("div", { className: "flex flex-col gap-1 overflow-y-auto", children: [
46903
46918
  Be.map((re) => /* @__PURE__ */ ee(bi, { children: [
46904
- re.label ? /* @__PURE__ */ p(Jk, { label: re.label, icon: re.icon }) : null,
46919
+ re.label ? /* @__PURE__ */ p(Lk, { label: re.label, icon: re.icon }) : null,
46905
46920
  re.items.map((ce) => /* @__PURE__ */ ee(
46906
46921
  "button",
46907
46922
  {
@@ -46923,10 +46938,10 @@ function LN({
46923
46938
  Oy,
46924
46939
  {
46925
46940
  previewKey: Fe?.id,
46926
- info: Fe ? zk(Fe) : void 0,
46941
+ info: Fe ? jk(Fe) : void 0,
46927
46942
  previewWidth: Ce,
46928
46943
  children: Fe ? /* @__PURE__ */ p(
46929
- Yk,
46944
+ Ok,
46930
46945
  {
46931
46946
  preview: Fe.preview,
46932
46947
  slotRenderers: o
@@ -46938,45 +46953,45 @@ function LN({
46938
46953
  }
46939
46954
  );
46940
46955
  }
46941
- var Hk = Object.defineProperty, Ok = Object.defineProperties, jk = Object.getOwnPropertyDescriptors, ed = Object.getOwnPropertySymbols, Xy = Object.prototype.hasOwnProperty, qy = Object.prototype.propertyIsEnumerable, fU = (C, l, f) => l in C ? Hk(C, l, { enumerable: !0, configurable: !0, writable: !0, value: f }) : C[l] = f, In = (C, l) => {
46956
+ var Xk = Object.defineProperty, qk = Object.defineProperties, $k = Object.getOwnPropertyDescriptors, ed = Object.getOwnPropertySymbols, Xy = Object.prototype.hasOwnProperty, qy = Object.prototype.propertyIsEnumerable, fU = (C, l, f) => l in C ? Xk(C, l, { enumerable: !0, configurable: !0, writable: !0, value: f }) : C[l] = f, In = (C, l) => {
46942
46957
  for (var f in l || (l = {})) Xy.call(l, f) && fU(C, f, l[f]);
46943
46958
  if (ed) for (var f of ed(l)) qy.call(l, f) && fU(C, f, l[f]);
46944
46959
  return C;
46945
- }, wd = (C, l) => Ok(C, jk(l)), Lk = (C, l) => {
46960
+ }, wd = (C, l) => qk(C, $k(l)), eZ = (C, l) => {
46946
46961
  var f = {};
46947
46962
  for (var U in C) Xy.call(C, U) && l.indexOf(U) < 0 && (f[U] = C[U]);
46948
46963
  if (C != null && ed) for (var U of ed(C)) l.indexOf(U) < 0 && qy.call(C, U) && (f[U] = C[U]);
46949
46964
  return f;
46950
- }, Xk = (C) => C.right - C.left < 5 || C.bottom && C.bottom - C.top < 5, qk = ({ spotsList: C, usedSpot: l }) => C.some((f) => f !== l && l.left === f.left), $k = ({ position: C, spot: l, stone: f }) => {
46965
+ }, tZ = (C) => C.right - C.left < 5 || C.bottom && C.bottom - C.top < 5, gZ = ({ spotsList: C, usedSpot: l }) => C.some((f) => f !== l && l.left === f.left), IZ = ({ position: C, spot: l, stone: f }) => {
46951
46966
  if (C.left > l.left && l.right >= C.left && C.top + f.height > l.top) {
46952
46967
  if (l.bottom && l.bottom < C.top) return l;
46953
46968
  let U = In({}, l);
46954
46969
  return U.right = C.left, U;
46955
46970
  }
46956
46971
  return null;
46957
- }, eZ = ({ position: C, stone: l, spot: f }) => {
46972
+ }, iZ = ({ position: C, stone: l, spot: f }) => {
46958
46973
  if (C.left + l.width > f.left && C.top >= f.top) {
46959
46974
  if (f.bottom && f.bottom < C.top || f.right < C.left) return f;
46960
46975
  let U = In({}, f);
46961
46976
  return U.bottom = C.top, U;
46962
46977
  }
46963
46978
  return null;
46964
- }, tZ = ({ stone: C, position: l, spotsList: f, optimalSpot: U }) => {
46979
+ }, nZ = ({ stone: C, position: l, spotsList: f, optimalSpot: U }) => {
46965
46980
  let b = In({}, U);
46966
- return b.left = l.left + C.width, Xk(b) || qk({ usedSpot: b, spotsList: f }) ? null : b;
46967
- }, gZ = ({ spots: C, position: l, optimalSpot: f, stone: U }) => C.map((b, S, y) => {
46968
- if (b === f) return tZ({ stone: U, position: l, optimalSpot: f, spotsList: y });
46969
- let o = $k({ position: l, spot: b, stone: U });
46970
- return o || eZ({ position: l, stone: U, spot: b }) || b;
46981
+ return b.left = l.left + C.width, tZ(b) || gZ({ usedSpot: b, spotsList: f }) ? null : b;
46982
+ }, CZ = ({ spots: C, position: l, optimalSpot: f, stone: U }) => C.map((b, S, y) => {
46983
+ if (b === f) return nZ({ stone: U, position: l, optimalSpot: f, spotsList: y });
46984
+ let o = IZ({ position: l, spot: b, stone: U });
46985
+ return o || iZ({ position: l, stone: U, spot: b }) || b;
46971
46986
  });
46972
- function IZ(C, l) {
46987
+ function oZ(C, l) {
46973
46988
  for (let f = 0, U = l.length; f < U; f++) {
46974
46989
  let b = l[f];
46975
46990
  if (C(b)) return b;
46976
46991
  }
46977
46992
  return null;
46978
46993
  }
46979
- var iZ = (C, l) => l.filter(C), nZ = (C, l) => [...l].sort(C), CZ = (C, l) => C.top === l.top ? C.left < l.left ? -1 : 1 : C.top < l.top ? -1 : 1, oZ = (C) => nZ(CZ, C), rZ = ({ availableSpots: C, optimalSpot: l, containerSize: f, stone: U }) => {
46994
+ var rZ = (C, l) => l.filter(C), AZ = (C, l) => [...l].sort(C), sZ = (C, l) => C.top === l.top ? C.left < l.left ? -1 : 1 : C.top < l.top ? -1 : 1, aZ = (C) => AZ(sZ, C), lZ = ({ availableSpots: C, optimalSpot: l, containerSize: f, stone: U }) => {
46980
46995
  let b = { right: f, top: l.top + U.height, left: l.left };
46981
46996
  l.bottom && (b.bottom = l.bottom);
46982
46997
  for (let S = 0, y = C.length; S < y; S += 1) {
@@ -46987,47 +47002,47 @@ var iZ = (C, l) => l.filter(C), nZ = (C, l) => [...l].sort(C), CZ = (C, l) => C.
46987
47002
  }
46988
47003
  }
46989
47004
  return b;
46990
- }, AZ = (C, l) => {
47005
+ }, cZ = (C, l) => {
46991
47006
  let f = C.right - C.left >= l.width;
46992
47007
  if (!C.bottom) return f;
46993
47008
  let U = C.bottom - C.top >= l.height;
46994
47009
  return f && U;
46995
- }, sZ = ({ availableSpots: C, stone: l }) => IZ((f) => AZ(f, l), C);
46996
- function aZ({ stone: C, availableSpots: l, containerSize: f }) {
46997
- let U = sZ({ availableSpots: l, stone: C }), b = { left: U.left, top: U.top }, S = rZ({ optimalSpot: U, availableSpots: l.filter((V) => V !== U), stone: C, containerSize: f }), y = [...l, S], o = gZ({ spots: y, position: b, optimalSpot: U, stone: C });
46998
- return y = [...iZ(Boolean, o)], y = oZ(y), { position: b, availableSpots: y };
47010
+ }, dZ = ({ availableSpots: C, stone: l }) => oZ((f) => cZ(f, l), C);
47011
+ function uZ({ stone: C, availableSpots: l, containerSize: f }) {
47012
+ let U = dZ({ availableSpots: l, stone: C }), b = { left: U.left, top: U.top }, S = lZ({ optimalSpot: U, availableSpots: l.filter((V) => V !== U), stone: C, containerSize: f }), y = [...l, S], o = CZ({ spots: y, position: b, optimalSpot: U, stone: C });
47013
+ return y = [...rZ(Boolean, o)], y = aZ(y), { position: b, availableSpots: y };
46999
47014
  }
47000
- var lZ = ({ stones: C, containerSize: l }) => {
47015
+ var hZ = ({ stones: C, containerSize: l }) => {
47001
47016
  let f = { positions: [], containerHeight: 0, availableSpots: [] };
47002
47017
  if (!C.length) return f;
47003
47018
  let U = 0, b = [], S = [{ top: 0, left: 0, right: l }];
47004
47019
  for (let y of C) {
47005
- let o = aZ({ availableSpots: S, stone: y, containerSize: l }), V = o.position.top + y.height;
47020
+ let o = uZ({ availableSpots: S, stone: y, containerSize: l }), V = o.position.top + y.height;
47006
47021
  U < V && (U = V), b.push(o.position), S = o.availableSpots;
47007
47022
  }
47008
47023
  return { availableSpots: S, positions: b, containerHeight: U };
47009
- }, cZ = (C) => C.reduce((l, f) => {
47024
+ }, pZ = (C) => C.reduce((l, f) => {
47010
47025
  if (!f) return l;
47011
47026
  let U = f.getBoundingClientRect();
47012
47027
  return l.push({ width: U.width, height: U.height }), l;
47013
- }, []), dZ = ({ boxesRefs: C, wrapperRef: l, children: f, windowWidth: U, wrapperWidth: b }) => {
47028
+ }, []), BZ = ({ boxesRefs: C, wrapperRef: l, children: f, windowWidth: U, wrapperWidth: b }) => {
47014
47029
  let [{ positions: S, containerHeight: y, stones: o, availableSpots: V }, E] = We({ positions: [], containerHeight: null, stones: [], availableSpots: [] });
47015
47030
  return It(() => {
47016
47031
  var T, K;
47017
- let N = cZ(C.current), j = (K = (T = l.current) == null ? void 0 : T.offsetWidth) != null ? K : 0;
47032
+ let N = pZ(C.current), j = (K = (T = l.current) == null ? void 0 : T.offsetWidth) != null ? K : 0;
47018
47033
  if (j === null) return;
47019
- let $ = lZ({ stones: N, containerSize: j });
47034
+ let $ = hZ({ stones: N, containerSize: j });
47020
47035
  E(wd(In({}, $), { stones: N }));
47021
47036
  }, [f, C, l, U, b]), { positions: S, containerHeight: y, stones: o, availableSpots: V };
47022
- }, uZ = (C) => ({ fade: `${C}ms opacity ease`, fadeMove: `
47037
+ }, fZ = (C) => ({ fade: `${C}ms opacity ease`, fadeMove: `
47023
47038
  ${C}ms opacity ease,
47024
47039
  ${C}ms top ease,
47025
47040
  ${C}ms left ease
47026
47041
  `, move: `
47027
47042
  ${C}ms top ease,
47028
47043
  ${C}ms left ease
47029
- ` }), hZ = ({ transition: C, transitionDuration: l }) => C ? { transition: uZ(l)[C] } : null, pZ = (C) => C ? wd(In({}, C), { opacity: 1 }) : { opacity: 0, top: 0, left: 0 }, BZ = ({ style: C, position: l, transition: f, transitionDuration: U }) => In(In(wd(In({}, C), { position: "absolute" }), pZ(l)), hZ({ transition: f, transitionDuration: U }));
47030
- function fZ(C, l, f) {
47044
+ ` }), mZ = ({ transition: C, transitionDuration: l }) => C ? { transition: fZ(l)[C] } : null, FZ = (C) => C ? wd(In({}, C), { opacity: 1 }) : { opacity: 0, top: 0, left: 0 }, UZ = ({ style: C, position: l, transition: f, transitionDuration: U }) => In(In(wd(In({}, C), { position: "absolute" }), FZ(l)), mZ({ transition: f, transitionDuration: U }));
47045
+ function QZ(C, l, f) {
47031
47046
  let U;
47032
47047
  return function(...b) {
47033
47048
  U && clearTimeout(U), U = setTimeout(function() {
@@ -47035,8 +47050,8 @@ function fZ(C, l, f) {
47035
47050
  }, l);
47036
47051
  };
47037
47052
  }
47038
- var mZ = () => {
47039
- let [C, l] = We(), f = Ee(fZ(l, 300));
47053
+ var yZ = () => {
47054
+ let [C, l] = We(), f = Ee(QZ(l, 300));
47040
47055
  return It(() => {
47041
47056
  let U = () => {
47042
47057
  f.current(window.innerWidth);
@@ -47045,7 +47060,7 @@ var mZ = () => {
47045
47060
  window.removeEventListener("resize", U);
47046
47061
  };
47047
47062
  }, []), C;
47048
- }, FZ = (C) => {
47063
+ }, wZ = (C) => {
47049
47064
  let [l, f] = We(null);
47050
47065
  return It(() => {
47051
47066
  let U = new ResizeObserver((b) => {
@@ -47055,18 +47070,18 @@ var mZ = () => {
47055
47070
  U.disconnect();
47056
47071
  };
47057
47072
  }, [C]), l;
47058
- }, UZ = (C) => {
47059
- var l = C, { children: f, style: U, transition: b = !1, transitionDuration: S = 500, transitionStep: y = 50 } = l, o = Lk(l, ["children", "style", "transition", "transitionDuration", "transitionStep"]);
47060
- let V = Ee([]), E = Ee(null), T = mZ(), K = FZ(E), { positions: N, containerHeight: j } = dZ({ boxesRefs: V, wrapperRef: E, children: f, windowWidth: T, wrapperWidth: K }), $ = In({ minHeight: j ?? 0, position: "relative" }, U);
47073
+ }, bZ = (C) => {
47074
+ var l = C, { children: f, style: U, transition: b = !1, transitionDuration: S = 500, transitionStep: y = 50 } = l, o = eZ(l, ["children", "style", "transition", "transitionDuration", "transitionStep"]);
47075
+ let V = Ee([]), E = Ee(null), T = yZ(), K = wZ(E), { positions: N, containerHeight: j } = BZ({ boxesRefs: V, wrapperRef: E, children: f, windowWidth: T, wrapperWidth: K }), $ = In({ minHeight: j ?? 0, position: "relative" }, U);
47061
47076
  return p("div", wd(In({ ref: E, style: $ }, o), { children: Up.map(f, (X, L) => {
47062
47077
  if (typeof X != "object" || !X || !("type" in X)) return X;
47063
- let ie = { style: BZ({ style: X.props.style, position: N[L], transition: b, transitionDuration: S }), ref: (Z) => V.current[L] = Z };
47078
+ let ie = { style: UZ({ style: X.props.style, position: N[L], transition: b, transitionDuration: S }), ref: (Z) => V.current[L] = Z };
47064
47079
  return LU(X, In(In({}, X.props), ie));
47065
47080
  }) }));
47066
47081
  };
47067
- const QZ = { sm: 340, md: 480, lg: 640 }, mU = bg(
47082
+ const xZ = { sm: 340, md: 480, lg: 640 }, mU = bg(
47068
47083
  function({ children: l, widgetWidth: f = "sm" }, U) {
47069
- const b = QZ[f], [S, y] = We(), o = Up.toArray(l), V = Ee(null);
47084
+ const b = xZ[f], [S, y] = We(), o = Up.toArray(l), V = Ee(null);
47070
47085
  return It(() => {
47071
47086
  const E = () => {
47072
47087
  const T = V.current?.offsetWidth;
@@ -47075,7 +47090,7 @@ const QZ = { sm: 340, md: 480, lg: 640 }, mU = bg(
47075
47090
  return E(), window.addEventListener("resize", E), () => {
47076
47091
  window.removeEventListener("resize", E);
47077
47092
  };
47078
- }, [y, b]), /* @__PURE__ */ p("div", { ref: U, className: "text-f1-foreground", children: /* @__PURE__ */ p("div", { ref: V, children: S === 1 ? /* @__PURE__ */ p("div", { className: "flex flex-col gap-4 *:shadow", children: l }) : S && S > 1 && /* @__PURE__ */ p("div", { className: "relative -mr-4", children: /* @__PURE__ */ p(UZ, { children: o.map((E, T) => /* @__PURE__ */ p(
47093
+ }, [y, b]), /* @__PURE__ */ p("div", { ref: U, className: "text-f1-foreground", children: /* @__PURE__ */ p("div", { ref: V, children: S === 1 ? /* @__PURE__ */ p("div", { className: "flex flex-col gap-4 *:shadow", children: l }) : S && S > 1 && /* @__PURE__ */ p("div", { className: "relative -mr-4", children: /* @__PURE__ */ p(bZ, { children: o.map((E, T) => /* @__PURE__ */ p(
47079
47094
  "div",
47080
47095
  {
47081
47096
  style: {
@@ -47087,7 +47102,7 @@ const QZ = { sm: 340, md: 480, lg: 640 }, mU = bg(
47087
47102
  T
47088
47103
  )) }, S) }) }) });
47089
47104
  }
47090
- ), yZ = ["sm", "lg", "md", "md", "lg", "sm", "lg", "lg", "sm", "sm", "md", "md"], XN = XI(mU, () => /* @__PURE__ */ p(jU, { children: /* @__PURE__ */ p(mU, { children: yZ.map((C, l) => /* @__PURE__ */ p(or.Skeleton, { height: C }, l)) }) })), FU = ({ children: C }) => /* @__PURE__ */ p("div", { className: "flex min-h-40 flex-row items-stretch gap-4 text-f1-foreground @container [&>div]:min-w-[calc(100vw-64px)] @2xl:[&>div]:min-w-[calc(50vw-48px)]", children: C }), qN = XI(
47105
+ ), DZ = ["sm", "lg", "md", "md", "lg", "sm", "lg", "lg", "sm", "sm", "md", "md"], tK = XI(mU, () => /* @__PURE__ */ p(jU, { children: /* @__PURE__ */ p(mU, { children: DZ.map((C, l) => /* @__PURE__ */ p(or.Skeleton, { height: C }, l)) }) })), FU = ({ children: C }) => /* @__PURE__ */ p("div", { className: "flex min-h-40 flex-row items-stretch gap-4 text-f1-foreground @container [&>div]:min-w-[calc(100vw-64px)] @2xl:[&>div]:min-w-[calc(50vw-48px)]", children: C }), gK = XI(
47091
47106
  bg(function({ children: l }, f) {
47092
47107
  return /* @__PURE__ */ p(td, { ref: f, showBar: !1, children: /* @__PURE__ */ p(FU, { children: l }) });
47093
47108
  }),
@@ -47097,7 +47112,7 @@ const QZ = { sm: 340, md: 480, lg: 640 }, mU = bg(
47097
47112
  /* @__PURE__ */ p(or.Skeleton, {})
47098
47113
  ] }) })
47099
47114
  );
47100
- function wZ({
47115
+ function _Z({
47101
47116
  title: C,
47102
47117
  description: l,
47103
47118
  emoji: f,
@@ -47117,8 +47132,8 @@ function wZ({
47117
47132
  }
47118
47133
  );
47119
47134
  }
47120
- const $N = VI(
47121
- jg("WidgetEmptyState", wZ)
47135
+ const IK = VI(
47136
+ jg("WidgetEmptyState", _Z)
47122
47137
  ), $y = bg(
47123
47138
  ({ title: C, children: l }, f) => (I_(
47124
47139
  C,
@@ -47130,9 +47145,9 @@ const $N = VI(
47130
47145
  ] }))
47131
47146
  );
47132
47147
  $y.displayName = "WidgetSection";
47133
- const eK = VI(
47148
+ const iK = VI(
47134
47149
  jg("WidgetSection", $y)
47135
- ), tK = ({
47150
+ ), nK = ({
47136
47151
  identifier: C,
47137
47152
  allowedRoutes: l,
47138
47153
  disallowedRoutes: f,
@@ -47143,7 +47158,7 @@ const eK = VI(
47143
47158
  return l && l.length > 0 && (V += ` Allowed routes: ${l.join(", ")}`), f && f.length > 0 && (V += ` Disallowed routes: ${f.join(", ")}`), V;
47144
47159
  }, [C, l, f]);
47145
47160
  return y ? U : (b && console.error(o), null);
47146
- }, gK = VI(
47161
+ }, CK = VI(
47147
47162
  Wn(
47148
47163
  {
47149
47164
  name: "ScrollArea",
@@ -47157,29 +47172,29 @@ export {
47157
47172
  GS as A,
47158
47173
  TR as B,
47159
47174
  zR as C,
47160
- tN as D,
47161
- XZ as E,
47162
- NZ as F,
47163
- gN as G,
47164
- eN as H,
47175
+ nN as D,
47176
+ tN as E,
47177
+ zZ as F,
47178
+ CN as G,
47179
+ iN as H,
47165
47180
  cr as I,
47166
- iN as J,
47167
- nN as K,
47181
+ rN as J,
47182
+ AN as K,
47168
47183
  oS as L,
47169
47184
  Dp as M,
47170
- PZ as N,
47171
- IN as O,
47172
- EZ as P,
47173
- GZ as Q,
47185
+ kZ as N,
47186
+ oN as O,
47187
+ NZ as P,
47188
+ ZZ as Q,
47174
47189
  HR as R,
47175
- gK as S,
47190
+ CK as S,
47176
47191
  US as T,
47177
- CN as U,
47178
- oN as V,
47179
- rN as W,
47192
+ sN as U,
47193
+ aN as V,
47194
+ lN as W,
47180
47195
  B2 as X,
47181
- AN as Y,
47182
- sN as Z,
47196
+ cN as Y,
47197
+ dN as Z,
47183
47198
  y2 as _,
47184
47199
  ES as a,
47185
47200
  Qd as a$,
@@ -47187,101 +47202,101 @@ export {
47187
47202
  b2 as a1,
47188
47203
  Jc as a2,
47189
47204
  M2 as a3,
47190
- aN as a4,
47191
- lN as a5,
47192
- cN as a6,
47193
- dN as a7,
47194
- uN as a8,
47205
+ uN as a4,
47206
+ hN as a5,
47207
+ pN as a6,
47208
+ BN as a7,
47209
+ fN as a8,
47195
47210
  U2 as a9,
47196
- PN as aA,
47197
- jE as aB,
47198
- GN as aC,
47211
+ kN as aA,
47212
+ XE as aB,
47213
+ ZN as aC,
47199
47214
  CU as aD,
47200
47215
  Ip as aE,
47201
- EN as aF,
47202
- TN as aG,
47203
- kN as aH,
47204
- ZN as aI,
47205
- NN as aJ,
47206
- KN as aK,
47207
- jN as aL,
47216
+ NN as aF,
47217
+ KN as aG,
47218
+ WN as aH,
47219
+ YN as aI,
47220
+ zN as aJ,
47221
+ JN as aK,
47222
+ $N as aL,
47208
47223
  Ky as aM,
47209
47224
  Ny as aN,
47210
47225
  Zy as aO,
47211
- NT as aP,
47212
- WN as aQ,
47213
- OT as aR,
47214
- YN as aS,
47215
- zN as aT,
47216
- JN as aU,
47226
+ WT as aP,
47227
+ HN as aQ,
47228
+ LT as aR,
47229
+ ON as aS,
47230
+ jN as aT,
47231
+ LN as aU,
47217
47232
  Ud as aV,
47218
47233
  Ec as aW,
47219
- HN as aX,
47220
- ON as aY,
47234
+ XN as aX,
47235
+ qN as aY,
47221
47236
  Yy as aZ,
47222
- jT as a_,
47223
- hN as aa,
47237
+ XT as a_,
47238
+ mN as aa,
47224
47239
  Nh as ab,
47225
- pN as ac,
47240
+ FN as ac,
47226
47241
  wF as ad,
47227
- BN as ae,
47228
- kZ as af,
47229
- UN as ag,
47230
- FN as ah,
47242
+ UN as ae,
47243
+ WZ as af,
47244
+ bN as ag,
47245
+ wN as ah,
47231
47246
  dr as ai,
47232
- fN as aj,
47233
- mN as ak,
47247
+ QN as aj,
47248
+ yN as ak,
47234
47249
  Hc as al,
47235
47250
  dM as am,
47236
- QN as an,
47237
- yN as ao,
47238
- wN as ap,
47239
- bN as aq,
47240
- xN as ar,
47241
- DN as as,
47242
- _N as at,
47243
- SN as au,
47244
- vN as av,
47245
- RN as aw,
47246
- MN as ax,
47251
+ xN as an,
47252
+ DN as ao,
47253
+ _N as ap,
47254
+ SN as aq,
47255
+ vN as ar,
47256
+ RN as as,
47257
+ MN as at,
47258
+ VN as au,
47259
+ PN as av,
47260
+ GN as aw,
47261
+ EN as ax,
47247
47262
  zc as ay,
47248
- VN as az,
47249
- KZ as b,
47263
+ TN as az,
47264
+ JZ as b,
47250
47265
  zy as b0,
47251
- ek as b1,
47266
+ gk as b1,
47252
47267
  yd as b2,
47253
- nk as b3,
47268
+ ok as b3,
47254
47269
  uU as b4,
47255
- Ak as b5,
47270
+ ak as b5,
47256
47271
  CB as b6,
47257
- LN as b7,
47258
- XN as b8,
47259
- qN as b9,
47260
- $N as ba,
47261
- eK as bb,
47262
- tK as bc,
47263
- WZ as c,
47264
- zZ as d,
47265
- YZ as e,
47266
- ZZ as f,
47267
- VZ as g,
47268
- MZ as h,
47269
- JZ as i,
47270
- OZ as j,
47272
+ eK as b7,
47273
+ tK as b8,
47274
+ gK as b9,
47275
+ IK as ba,
47276
+ iK as bb,
47277
+ nK as bc,
47278
+ HZ as c,
47279
+ jZ as d,
47280
+ OZ as e,
47281
+ YZ as f,
47282
+ TZ as g,
47283
+ EZ as h,
47284
+ LZ as i,
47285
+ qZ as j,
47271
47286
  uR as k,
47272
- HZ as l,
47287
+ XZ as l,
47273
47288
  EA as m,
47274
47289
  f0 as n,
47275
47290
  m0 as o,
47276
47291
  Pv as p,
47277
- jZ as q,
47278
- LZ as r,
47279
- TZ as s,
47292
+ $Z as q,
47293
+ eN as r,
47294
+ KZ as s,
47280
47295
  kR as t,
47281
47296
  ad as u,
47282
- qZ as v,
47297
+ gN as v,
47283
47298
  YR as w,
47284
- $Z as x,
47299
+ IN as x,
47285
47300
  $R as y,
47286
47301
  e2 as z
47287
47302
  };