@factorialco/f0-react 6.62.0 → 6.63.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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-BEECe4Ml.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
@@ -36133,13 +36133,20 @@ const nV = {
36133
36133
  children: K.map(
36134
36134
  (L, ie) => L.type === "mention" ? (
36135
36135
  // Same colour pattern as the bubble: you / @here amber, others
36136
- // info. No padding or weight change so the overlay stays aligned
36137
- // to the (transparent) textarea text character-for-character.
36136
+ // info. Tone and background carry the whole distinction: no
36137
+ // padding, and — load-bearing — no weight change. A `<textarea>`
36138
+ // lays its entire run out at one weight, so a heavier mention
36139
+ // here paints wider than the transparent glyphs the caret is
36140
+ // positioned from, and every character from the mention onward
36141
+ // sits off its boundary. Measured at 14px Inter, `font-medium`
36142
+ // cost ~0.1px per mention character, plateauing at 1.25px (8.9%
36143
+ // of an em) across the rest of the line — enough to park the
36144
+ // caret inside a glyph instead of between two.
36138
36145
  /* @__PURE__ */ p(
36139
36146
  "span",
36140
36147
  {
36141
36148
  className: Qe(
36142
- "rounded-xs font-medium",
36149
+ "rounded-xs",
36143
36150
  L.tone === "self" || L.tone === "everyone" ? "bg-f1-background-warning text-f1-foreground-warning" : "bg-f1-background-info text-f1-foreground-info"
36144
36151
  ),
36145
36152
  children: fh(L.text)
@@ -42768,7 +42775,7 @@ const hG = (C) => {
42768
42775
  ]
42769
42776
  }
42770
42777
  );
42771
- }, UN = (C) => {
42778
+ }, bN = (C) => {
42772
42779
  const l = QI();
42773
42780
  return /* @__PURE__ */ p(cM, { reducedMotion: l, children: /* @__PURE__ */ p(yM, { children: /* @__PURE__ */ p(dE, { ...C }) }) });
42774
42781
  }, uE = {
@@ -42781,7 +42788,13 @@ const hG = (C) => {
42781
42788
  sm: "[&_svg]:w-4",
42782
42789
  md: "[&_svg]:w-6",
42783
42790
  lg: "[&_svg]:w-7"
42784
- }, pE = (C) => t0.includes(C), yy = ({
42791
+ }, pE = {
42792
+ superNegative: "text-f1-icon-mood-super-negative",
42793
+ negative: "text-f1-icon-mood-negative",
42794
+ neutral: "text-f1-icon-mood-neutral",
42795
+ positive: "text-f1-icon-mood-positive",
42796
+ superPositive: "text-f1-icon-mood-super-positive"
42797
+ }, BE = "text-f1-icon-secondary", fE = (C) => t0.includes(C), yy = ({
42785
42798
  value: C,
42786
42799
  onChange: l,
42787
42800
  labels: f,
@@ -42806,10 +42819,16 @@ const hG = (C) => {
42806
42819
  // only place its name is written, so a 700ms wait withholds the scale
42807
42820
  // from someone reading along it — the same call the Home rail makes.
42808
42821
  tooltip: { description: f[N], instant: !0 },
42809
- className: Qe(hE[b])
42822
+ // The colour last: it has to land after `F0ButtonToggle`'s own
42823
+ // unselected `text-f1-icon` for tailwind-merge to keep it. Never on
42824
+ // the ANSWERED face — that one's colour is the toggle's to draw.
42825
+ className: Qe(
42826
+ hE[b],
42827
+ V === void 0 ? pE[N] : N !== V && BE
42828
+ )
42810
42829
  })
42811
42830
  ),
42812
- [f, U, b]
42831
+ [f, U, b, V]
42813
42832
  );
42814
42833
  return /* @__PURE__ */ p(
42815
42834
  __,
@@ -42817,7 +42836,7 @@ const hG = (C) => {
42817
42836
  items: T,
42818
42837
  value: V ?? "",
42819
42838
  onChange: (N) => {
42820
- const j = pE(N) ? N : void 0;
42839
+ const j = fE(N) ? N : void 0;
42821
42840
  j !== V && (E(j), l?.(j));
42822
42841
  },
42823
42842
  size: b,
@@ -42828,7 +42847,7 @@ const hG = (C) => {
42828
42847
  );
42829
42848
  };
42830
42849
  yy.displayName = "F0ENPSButton";
42831
- const QN = VI(
42850
+ const xN = VI(
42832
42851
  jg("F0ENPSButton", yy)
42833
42852
  ), tB = {
42834
42853
  0: "gap-0",
@@ -42854,7 +42873,7 @@ const QN = VI(
42854
42873
  md: "gap-2",
42855
42874
  lg: "gap-3",
42856
42875
  xl: "gap-4"
42857
- }, BE = Ar({
42876
+ }, mE = Ar({
42858
42877
  base: "grid grid-cols-1",
42859
42878
  variants: {
42860
42879
  tileSize: {
@@ -42876,17 +42895,17 @@ const QN = VI(
42876
42895
  tileSize: "md",
42877
42896
  gap: "4"
42878
42897
  }
42879
- }), fE = Pt.forwardRef(function({ className: l, gap: f, children: U, tileSize: b, ...S }, y) {
42898
+ }), FE = Pt.forwardRef(function({ className: l, gap: f, children: U, tileSize: b, ...S }, y) {
42880
42899
  return /* @__PURE__ */ p("div", { className: Qe("@container", "grow"), ref: y, ...S, children: /* @__PURE__ */ p(
42881
42900
  "div",
42882
42901
  {
42883
- className: Qe(BE({ gap: f, tileSize: b }), l),
42902
+ className: Qe(mE({ gap: f, tileSize: b }), l),
42884
42903
  ref: y,
42885
42904
  ...S,
42886
42905
  children: U
42887
42906
  }
42888
42907
  ) });
42889
- }), mE = Ar({
42908
+ }), UE = Ar({
42890
42909
  base: "flex",
42891
42910
  variants: {
42892
42911
  overflow: {
@@ -42983,7 +43002,7 @@ const QN = VI(
42983
43002
  "div",
42984
43003
  {
42985
43004
  className: Qe(
42986
- mE({
43005
+ UE({
42987
43006
  paddingX: S,
42988
43007
  basis: U,
42989
43008
  paddingY: y,
@@ -43003,7 +43022,7 @@ const QN = VI(
43003
43022
  ...$
43004
43023
  }
43005
43024
  );
43006
- }), FE = Ar({
43025
+ }), QE = Ar({
43007
43026
  base: "flex-row",
43008
43027
  variants: {
43009
43028
  gap: {
@@ -43016,16 +43035,16 @@ const QN = VI(
43016
43035
  defaultVariants: {
43017
43036
  wrap: !0
43018
43037
  }
43019
- }), UE = Pt.forwardRef(function({ className: l, gap: f, wrap: U, ...b }, S) {
43038
+ }), yE = Pt.forwardRef(function({ className: l, gap: f, wrap: U, ...b }, S) {
43020
43039
  return /* @__PURE__ */ p(
43021
43040
  wy,
43022
43041
  {
43023
- className: Qe(FE({ gap: f, wrap: U }), l),
43042
+ className: Qe(QE({ gap: f, wrap: U }), l),
43024
43043
  ref: S,
43025
43044
  ...b
43026
43045
  }
43027
43046
  );
43028
- }), QE = Ar({
43047
+ }), wE = Ar({
43029
43048
  base: "flex-col",
43030
43049
  variants: {
43031
43050
  gap: {
@@ -43033,34 +43052,34 @@ const QN = VI(
43033
43052
  }
43034
43053
  },
43035
43054
  defaultVariants: {}
43036
- }), yE = bg(function({ className: l, gap: f, children: U, ...b }, S) {
43055
+ }), bE = bg(function({ className: l, gap: f, children: U, ...b }, S) {
43037
43056
  return /* @__PURE__ */ p(
43038
43057
  wy,
43039
43058
  {
43040
- className: Qe(QE({ gap: f }), l),
43059
+ className: Qe(wE({ gap: f }), l),
43041
43060
  ref: S,
43042
43061
  ...b,
43043
43062
  children: U
43044
43063
  }
43045
43064
  );
43046
- }), yN = Wn(
43065
+ }), DN = Wn(
43047
43066
  {
43048
43067
  name: "Stack",
43049
43068
  type: "layout"
43050
43069
  },
43051
- yE
43052
- ), wN = Wn(
43070
+ bE
43071
+ ), _N = Wn(
43053
43072
  {
43054
43073
  name: "Split",
43055
43074
  type: "layout"
43056
43075
  },
43057
- UE
43058
- ), bN = Wn(
43076
+ yE
43077
+ ), SN = Wn(
43059
43078
  {
43060
43079
  name: "AutoGrid",
43061
43080
  type: "layout"
43062
43081
  },
43063
- fE
43082
+ FE
43064
43083
  ), Cn = Object.assign(
43065
43084
  bg(function({ chart: l, summaries: f, ...U }, b) {
43066
43085
  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 +43087,7 @@ const QN = VI(
43068
43087
  {
43069
43088
  Skeleton: or.Skeleton
43070
43089
  }
43071
- ), wE = XI(
43090
+ ), xE = XI(
43072
43091
  bg(function({ canBeBlurred: l, ...f }, U) {
43073
43092
  const b = {
43074
43093
  ...f,
@@ -43090,10 +43109,10 @@ const QN = VI(
43090
43109
  );
43091
43110
  }),
43092
43111
  Cn.Skeleton
43093
- ), bE = jg(
43112
+ ), DE = jg(
43094
43113
  "AreaChartWidget",
43095
- wE
43096
- ), xE = bg(function(l, f) {
43114
+ xE
43115
+ ), _E = bg(function(l, f) {
43097
43116
  return /* @__PURE__ */ p(
43098
43117
  Cn,
43099
43118
  {
@@ -43102,10 +43121,10 @@ const QN = VI(
43102
43121
  chart: /* @__PURE__ */ p(v_, { yAxis: { hide: !0 }, ...l.chart })
43103
43122
  }
43104
43123
  );
43105
- }), DE = jg(
43124
+ }), SE = jg(
43106
43125
  "BarChartWidget",
43107
- XI(xE, Cn.Skeleton)
43108
- ), _E = XI(
43126
+ XI(_E, Cn.Skeleton)
43127
+ ), vE = XI(
43109
43128
  bg(
43110
43129
  function(l, f) {
43111
43130
  return /* @__PURE__ */ p(
@@ -43119,10 +43138,10 @@ const QN = VI(
43119
43138
  }
43120
43139
  ),
43121
43140
  Cn.Skeleton
43122
- ), SE = jg(
43141
+ ), RE = jg(
43123
43142
  "LineChartWidget",
43124
- _E
43125
- ), vE = XI(
43143
+ vE
43144
+ ), ME = XI(
43126
43145
  bg(
43127
43146
  function(l, f) {
43128
43147
  return /* @__PURE__ */ p(
@@ -43136,20 +43155,20 @@ const QN = VI(
43136
43155
  }
43137
43156
  ),
43138
43157
  Cn.Skeleton
43139
- ), RE = jg(
43158
+ ), VE = jg(
43140
43159
  "PieChartWidget",
43141
- vE
43142
- ), ME = XI(
43160
+ ME
43161
+ ), PE = XI(
43143
43162
  bg(
43144
43163
  function(l, f) {
43145
43164
  return /* @__PURE__ */ p(Cn, { ref: f, ...l, chart: null });
43146
43165
  }
43147
43166
  ),
43148
43167
  Cn.Skeleton
43149
- ), VE = jg(
43168
+ ), GE = jg(
43150
43169
  "SummariesWidget",
43151
- ME
43152
- ), PE = XI(
43170
+ PE
43171
+ ), EE = XI(
43153
43172
  bg(
43154
43173
  function(l, f) {
43155
43174
  return /* @__PURE__ */ p(
@@ -43163,46 +43182,46 @@ const QN = VI(
43163
43182
  }
43164
43183
  ),
43165
43184
  Cn.Skeleton
43166
- ), GE = jg(
43185
+ ), TE = jg(
43167
43186
  "VerticalBarChartWidget",
43168
- PE
43169
- ), xN = Wn(
43187
+ EE
43188
+ ), vN = Wn(
43170
43189
  {
43171
43190
  name: "AreaChartWidget",
43172
43191
  type: "info"
43173
43192
  },
43174
- bE
43175
- ), DN = Wn(
43193
+ DE
43194
+ ), RN = Wn(
43176
43195
  {
43177
43196
  name: "BarChartWidget",
43178
43197
  type: "info"
43179
43198
  },
43180
- DE
43181
- ), _N = Wn(
43199
+ SE
43200
+ ), MN = Wn(
43182
43201
  {
43183
43202
  name: "LineChartWidget",
43184
43203
  type: "info"
43185
43204
  },
43186
- SE
43187
- ), SN = Wn(
43205
+ RE
43206
+ ), VN = Wn(
43188
43207
  {
43189
43208
  name: "PieChartWidget",
43190
43209
  type: "info"
43191
43210
  },
43192
- RE
43193
- ), vN = Wn(
43211
+ VE
43212
+ ), PN = Wn(
43194
43213
  {
43195
43214
  name: "VerticalBarChartWidget",
43196
43215
  type: "info"
43197
43216
  },
43198
- GE
43199
- ), RN = Wn(
43217
+ TE
43218
+ ), GN = Wn(
43200
43219
  {
43201
43220
  name: "SummariesWidget",
43202
43221
  type: "info"
43203
43222
  },
43204
- VE
43205
- ), EE = (C, l) => /* @__PURE__ */ ee(
43223
+ GE
43224
+ ), kE = (C, l) => /* @__PURE__ */ ee(
43206
43225
  "svg",
43207
43226
  {
43208
43227
  width: "366",
@@ -43440,7 +43459,7 @@ const QN = VI(
43440
43459
  ] })
43441
43460
  ]
43442
43461
  }
43443
- ), TE = bg(EE), kE = (C, l) => /* @__PURE__ */ ee(
43462
+ ), ZE = bg(kE), NE = (C, l) => /* @__PURE__ */ ee(
43444
43463
  "svg",
43445
43464
  {
43446
43465
  width: "406",
@@ -43485,21 +43504,21 @@ const QN = VI(
43485
43504
  ) })
43486
43505
  ]
43487
43506
  }
43488
- ), ZE = bg(kE), NE = {
43507
+ ), KE = bg(NE), WE = {
43489
43508
  "line-chart": "border-f1-border",
43490
43509
  "bar-chart": "border-f1-border-promote"
43491
- }, KE = {
43510
+ }, YE = {
43492
43511
  "line-chart": "min-h-48",
43493
43512
  "bar-chart": "min-h-64"
43494
- }, WE = {
43513
+ }, zE = {
43495
43514
  "line-chart": "from-f1-background-accent",
43496
43515
  "bar-chart": "from-f1-background-promote"
43497
- }, YE = {
43516
+ }, JE = {
43498
43517
  "line-chart": "default",
43499
43518
  "bar-chart": "promote"
43500
- }, zE = bg(
43519
+ }, HE = bg(
43501
43520
  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];
43521
+ const V = WE[y], E = YE[y], T = zE[y], K = JE[y];
43503
43522
  return /* @__PURE__ */ ee(
43504
43523
  dp,
43505
43524
  {
@@ -43519,8 +43538,8 @@ const QN = VI(
43519
43538
  T
43520
43539
  ),
43521
43540
  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" })
43541
+ y === "bar-chart" && /* @__PURE__ */ p("div", { className: "absolute bottom-1 left-4 right-4", children: /* @__PURE__ */ p(ZE, { className: "w-full" }) }),
43542
+ y === "line-chart" && /* @__PURE__ */ p(KE, { className: "w-full" })
43524
43543
  ]
43525
43544
  }
43526
43545
  ),
@@ -43541,10 +43560,10 @@ const QN = VI(
43541
43560
  }
43542
43561
  );
43543
43562
  }
43544
- ), MN = VI(
43545
- jg("ChartWidgetEmptyState", zE)
43563
+ ), EN = VI(
43564
+ jg("ChartWidgetEmptyState", HE)
43546
43565
  );
43547
- function JE(C, l) {
43566
+ function OE(C, l) {
43548
43567
  const f = Ee(null), U = Ee(null), [b, S] = We({
43549
43568
  visibleItems: [],
43550
43569
  overflowItems: []
@@ -43612,7 +43631,7 @@ const Fd = function({
43612
43631
  minSize: S,
43613
43632
  onVisibleItemsChange: y
43614
43633
  }) {
43615
- const { containerRef: o, measurementContainerRef: V, visibleItems: E } = JE(l, b);
43634
+ const { containerRef: o, measurementContainerRef: V, visibleItems: E } = OE(l, b);
43616
43635
  return It(() => {
43617
43636
  y?.(E);
43618
43637
  }, [y, E]), /* @__PURE__ */ ee(
@@ -43657,7 +43676,7 @@ const Fd = function({
43657
43676
  );
43658
43677
  };
43659
43678
  Fd.displayName = "VerticalOverflowList";
43660
- const VN = ({
43679
+ const TN = ({
43661
43680
  events: C,
43662
43681
  showAllItems: l,
43663
43682
  gap: f = 8,
@@ -43670,7 +43689,7 @@ const VN = ({
43670
43689
  minSize: U,
43671
43690
  renderListItem: (b) => /* @__PURE__ */ p(zc, { ...b }, b.title)
43672
43691
  }
43673
- ) : null, HE = ({ onClick: C, children: l }) => {
43692
+ ) : null, jE = ({ onClick: C, children: l }) => {
43674
43693
  const f = "block rounded-lg border border-solid border-transparent p-[1px] -m-1";
43675
43694
  return C ? /* @__PURE__ */ p(
43676
43695
  "a",
@@ -43685,14 +43704,14 @@ const VN = ({
43685
43704
  }
43686
43705
  ) : /* @__PURE__ */ p("div", { className: f, tabIndex: 1, children: l });
43687
43706
  };
43688
- function PN({
43707
+ function kN({
43689
43708
  label: C,
43690
43709
  count: l,
43691
43710
  icon: f,
43692
43711
  iconClassName: U,
43693
43712
  onClick: b
43694
43713
  }) {
43695
- return /* @__PURE__ */ p(HE, { onClick: b, children: /* @__PURE__ */ ee(
43714
+ return /* @__PURE__ */ p(jE, { onClick: b, children: /* @__PURE__ */ ee(
43696
43715
  "div",
43697
43716
  {
43698
43717
  className: Qe(
@@ -43709,7 +43728,7 @@ function PN({
43709
43728
  }
43710
43729
  ) });
43711
43730
  }
43712
- const OE = bg(
43731
+ const LE = bg(
43713
43732
  function({ content: l, label: f, color: U, ...b }, S) {
43714
43733
  return /* @__PURE__ */ ee("div", { className: "flex flex-col gap-1", ref: S, children: [
43715
43734
  /* @__PURE__ */ p("p", { className: "text-3xl font-semibold", children: l }),
@@ -43727,7 +43746,7 @@ const OE = bg(
43727
43746
  ] })
43728
43747
  ] }, f);
43729
43748
  }
43730
- ), jE = bg(
43749
+ ), XE = bg(
43731
43750
  function({ items: l }, f) {
43732
43751
  return /* @__PURE__ */ p(
43733
43752
  "div",
@@ -43735,7 +43754,7 @@ const OE = bg(
43735
43754
  ref: f,
43736
43755
  className: "grid auto-cols-fr grid-flow-col items-end gap-x-3",
43737
43756
  children: l.map(({ label: U, content: b, color: S, ...y }) => /* @__PURE__ */ p(
43738
- OE,
43757
+ LE,
43739
43758
  {
43740
43759
  label: U,
43741
43760
  content: b,
@@ -43747,7 +43766,7 @@ const OE = bg(
43747
43766
  }
43748
43767
  );
43749
43768
  }
43750
- ), LE = ({
43769
+ ), qE = ({
43751
43770
  onClick: C,
43752
43771
  withEmoji: l,
43753
43772
  withPointerCursor: f,
@@ -43761,7 +43780,7 @@ const OE = bg(
43761
43780
  );
43762
43781
  return C ? /* @__PURE__ */ p("a", { className: b, onClick: C, children: U }) : /* @__PURE__ */ p("div", { className: b, children: U });
43763
43782
  };
43764
- function GN({
43783
+ function ZN({
43765
43784
  id: C,
43766
43785
  title: l,
43767
43786
  subtitle: f,
@@ -43772,7 +43791,7 @@ function GN({
43772
43791
  ...o
43773
43792
  }) {
43774
43793
  return /* @__PURE__ */ ee(
43775
- LE,
43794
+ qE,
43776
43795
  {
43777
43796
  onClick: (E) => {
43778
43797
  E.preventDefault(), y?.(C);
@@ -43799,7 +43818,7 @@ function GN({
43799
43818
  }
43800
43819
  );
43801
43820
  }
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 });
43821
+ 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
43822
  function CU({
43804
43823
  id: C,
43805
43824
  title: l,
@@ -43811,7 +43830,7 @@ function CU({
43811
43830
  "flex flex-row gap-2 rounded-md border border-solid border-transparent p-2 text-f1-foreground",
43812
43831
  U ? "cursor-pointer hover:bg-f1-background-tertiary focus:border-f1-background-selected-bold focus:outline-none" : void 0
43813
43832
  );
43814
- return /* @__PURE__ */ ee(XE, { onClick: (o) => {
43833
+ return /* @__PURE__ */ ee($E, { onClick: (o) => {
43815
43834
  o.preventDefault(), U?.(C);
43816
43835
  }, className: S, children: [
43817
43836
  /* @__PURE__ */ p(pp, { module: b ?? "inbox", size: "sm" }),
@@ -43821,7 +43840,7 @@ function CU({
43821
43840
  ] })
43822
43841
  ] });
43823
43842
  }
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 });
43843
+ 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
43844
  function Ip({
43826
43845
  id: C,
43827
43846
  title: l,
@@ -43838,7 +43857,7 @@ function Ip({
43838
43857
  "flex flex-row items-start gap-1 rounded-md border border-solid border-transparent px-2 py-1.5 text-f1-foreground",
43839
43858
  E ? "cursor-pointer hover:bg-f1-background-tertiary focus:border-f1-background-selected-bold focus:outline-none" : void 0
43840
43859
  );
43841
- return /* @__PURE__ */ ee(qE, { onClick: (N) => {
43860
+ return /* @__PURE__ */ ee(eT, { onClick: (N) => {
43842
43861
  N.preventDefault(), E?.(C);
43843
43862
  }, className: T, children: [
43844
43863
  /* @__PURE__ */ ee("div", { className: "flex flex-1 flex-row items-start gap-1", children: [
@@ -43867,7 +43886,7 @@ function Ip({
43867
43886
  ] })
43868
43887
  ] });
43869
43888
  }
43870
- function EN({
43889
+ function NN({
43871
43890
  items: C,
43872
43891
  minSize: l = 184,
43873
43892
  onClickItem: f,
@@ -43885,7 +43904,7 @@ function EN({
43885
43904
  }
43886
43905
  );
43887
43906
  }
43888
- function TN({
43907
+ function KN({
43889
43908
  items: C,
43890
43909
  gap: l,
43891
43910
  minSize: f = 184,
@@ -43902,10 +43921,10 @@ function TN({
43902
43921
  }
43903
43922
  );
43904
43923
  }
43905
- const $E = ({ title: C, info: l }) => /* @__PURE__ */ ee("div", { className: "flex items-center justify-between", children: [
43924
+ const tT = ({ title: C, info: l }) => /* @__PURE__ */ ee("div", { className: "flex items-center justify-between", children: [
43906
43925
  /* @__PURE__ */ p("p", { className: "flex text-f1-foreground-secondary", children: C }),
43907
43926
  /* @__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(
43927
+ ] }), WN = bg(
43909
43928
  function({ title: l, titleValue: f, titleTooltip: U, list: b }, S) {
43910
43929
  return /* @__PURE__ */ ee("div", { ref: S, className: "flex flex-col gap-2", children: [
43911
43930
  l && /* @__PURE__ */ ee("div", { className: "flex items-center justify-between gap-2 font-medium", children: [
@@ -43922,11 +43941,11 @@ const $E = ({ title: C, info: l }) => /* @__PURE__ */ ee("div", { className: "fl
43922
43941
  ] }),
43923
43942
  f && /* @__PURE__ */ p("div", { children: f })
43924
43943
  ] }),
43925
- b.map((y) => /* @__PURE__ */ p($E, { title: y.title, info: y.info }, y.title))
43944
+ b.map((y) => /* @__PURE__ */ p(tT, { title: y.title, info: y.info }, y.title))
43926
43945
  ] });
43927
43946
  }
43928
43947
  );
43929
- function ZN({
43948
+ function YN({
43930
43949
  title: C,
43931
43950
  subtitle: l,
43932
43951
  data: f,
@@ -43959,7 +43978,7 @@ function ZN({
43959
43978
  ) })
43960
43979
  ] });
43961
43980
  }
43962
- const by = (C, l) => ((l ?? 0) < -1 * (C ?? 0) ? -1 * C : l) ?? 0, eT = ({
43981
+ const by = (C, l) => ((l ?? 0) < -1 * (C ?? 0) ? -1 * C : l) ?? 0, gT = ({
43963
43982
  data: C = [],
43964
43983
  labels: l,
43965
43984
  trackedMinutes: f,
@@ -43984,7 +44003,7 @@ const by = (C, l) => ((l ?? 0) < -1 * (C ?? 0) ? -1 * C : l) ?? 0, eT = ({
43984
44003
  subtitle: V,
43985
44004
  statusColor: E
43986
44005
  };
43987
- }, _h = "--:--", tT = (C, l) => {
44006
+ }, _h = "--:--", IT = (C, l) => {
43988
44007
  if (C && C > 0)
43989
44008
  return {
43990
44009
  value: C * 60 / l,
@@ -43995,7 +44014,7 @@ const by = (C, l) => ((l ?? 0) < -1 * (C ?? 0) ? -1 * C : l) ?? 0, eT = ({
43995
44014
  value: 1,
43996
44015
  color: Cr.empty
43997
44016
  };
43998
- }, gT = ({
44017
+ }, iT = ({
43999
44018
  data: C = [],
44000
44019
  trackedMinutes: l,
44001
44020
  remainingMinutes: f = 0
@@ -44006,7 +44025,7 @@ const by = (C, l) => ((l ?? 0) < -1 * (C ?? 0) ? -1 * C : l) ?? 0, eT = ({
44006
44025
  ), S = C.reduce(
44007
44026
  (T, K) => T + (K.to.getTime() - K.from.getTime()) / 1e3,
44008
44027
  0
44009
- ) + (b ?? 0) * 60, y = U || (b ?? 0) < 0 ? void 0 : tT(
44028
+ ) + (b ?? 0) * 60, y = U || (b ?? 0) < 0 ? void 0 : IT(
44010
44029
  b ?? 0,
44011
44030
  S
44012
44031
  );
@@ -44053,18 +44072,18 @@ const by = (C, l) => ((l ?? 0) < -1 * (C ?? 0) ? -1 * C : l) ?? 0, eT = ({
44053
44072
  secondaryLabel: y,
44054
44073
  time: K
44055
44074
  };
44056
- }, IT = " • ", iT = (C) => {
44075
+ }, nT = " • ", CT = (C) => {
44057
44076
  const l = Math.floor(C / 60), f = C % 60;
44058
44077
  return l ? f ? `${l}h ${f}min` : `${l}h` : `${f}min`;
44059
- }, nT = (C) => {
44078
+ }, oT = (C) => {
44060
44079
  if (!C.from || !C.to) return;
44061
44080
  const l = Math.round(
44062
44081
  (C.to.getTime() - C.from.getTime()) / 6e4
44063
44082
  );
44064
- return [`${kc(C.from)} – ${kc(C.to)} (${iT(l)})`, C.label].filter(Boolean).join(IT);
44083
+ return [`${kc(C.from)} – ${kc(C.to)} (${CT(l)})`, C.label].filter(Boolean).join(nT);
44065
44084
  };
44066
- function CT({ segments: C }) {
44067
- const l = C.map(nT);
44085
+ function rT({ segments: C }) {
44086
+ const l = C.map(oT);
44068
44087
  return /* @__PURE__ */ p(
44069
44088
  "div",
44070
44089
  {
@@ -44138,13 +44157,13 @@ function oU({
44138
44157
  remainingMinutes: f,
44139
44158
  variant: U = "ring"
44140
44159
  }) {
44141
- const b = gT({
44160
+ const b = iT({
44142
44161
  data: C,
44143
44162
  trackedMinutes: l,
44144
44163
  remainingMinutes: f
44145
44164
  });
44146
44165
  if (U === "horizontal-bar")
44147
- return /* @__PURE__ */ p(CT, { segments: b });
44166
+ return /* @__PURE__ */ p(rT, { segments: b });
44148
44167
  const { primaryLabel: S, secondaryLabel: y, time: o } = xy({
44149
44168
  data: C,
44150
44169
  trackedMinutes: l,
@@ -44184,19 +44203,19 @@ function oU({
44184
44203
  ] })
44185
44204
  ] });
44186
44205
  }
44187
- const oT = " · ", rT = " — ", rU = 20;
44188
- function AT(C) {
44206
+ const AT = " · ", sT = " — ", rU = 20;
44207
+ function aT(C) {
44189
44208
  const l = [], f = (U, b) => {
44190
44209
  if (U.children?.length) {
44191
44210
  U.children.forEach((o) => f(o, [...b, U]));
44192
44211
  return;
44193
44212
  }
44194
- const S = b.map((o) => o.name), y = S.join(oT);
44213
+ const S = b.map((o) => o.name), y = S.join(AT);
44195
44214
  l.push({
44196
44215
  id: U.id,
44197
44216
  name: U.name,
44198
44217
  group: S.length ? y : U.name,
44199
- path: S.length ? `${U.name}${rT}${y}` : U.name,
44218
+ path: S.length ? `${U.name}${sT}${y}` : U.name,
44200
44219
  haystack: [U.name, ...S].join(" ").toLowerCase(),
44201
44220
  // The glyph that means something is usually the ROOT's (Office, Home,
44202
44221
  // Business trip) — a work area rarely has its own, so the nearest one up
@@ -44206,7 +44225,7 @@ function AT(C) {
44206
44225
  };
44207
44226
  return C.forEach((U) => f(U, [])), l;
44208
44227
  }
44209
- const sT = (C, l) => l ? Dy(C).find((f) => f.id === l) : void 0, Dy = (C) => C.flatMap((l) => [l, ...Dy(l.children ?? [])]);
44228
+ const lT = (C, l) => l ? Dy(C).find((f) => f.id === l) : void 0, Dy = (C) => C.flatMap((l) => [l, ...Dy(l.children ?? [])]);
44210
44229
  function _y({
44211
44230
  items: C,
44212
44231
  value: l,
@@ -44217,7 +44236,7 @@ function _y({
44217
44236
  required: y = !0,
44218
44237
  disabled: o
44219
44238
  }) {
44220
- const V = Gt(() => AT(C), [C]), E = Gt(
44239
+ const V = Gt(() => aT(C), [C]), E = Gt(
44221
44240
  () => C.some(($) => !!$.children?.length),
44222
44241
  [C]
44223
44242
  ), K = (l ? V.find(($) => $.id === l) : void 0)?.icon ?? S, N = Gt(
@@ -44310,7 +44329,7 @@ const gB = (C) => C.map((l) => ({
44310
44329
  icon: l.icon,
44311
44330
  children: l.sublocations?.length ? gB(l.sublocations) : void 0
44312
44331
  }));
44313
- function aT({
44332
+ function cT({
44314
44333
  locations: C,
44315
44334
  locationId: l,
44316
44335
  onChangeLocationId: f,
@@ -44339,7 +44358,7 @@ const Sy = (C) => C.map((l) => ({
44339
44358
  name: l.name,
44340
44359
  children: l.subprojects?.length ? Sy(l.subprojects) : void 0
44341
44360
  }));
44342
- function lT({
44361
+ function dT({
44343
44362
  projects: C,
44344
44363
  projectId: l,
44345
44364
  onChangeProjectId: f,
@@ -44363,7 +44382,7 @@ function lT({
44363
44382
  }
44364
44383
  );
44365
44384
  }
44366
- function cT({
44385
+ function uT({
44367
44386
  text: C,
44368
44387
  placeholder: l,
44369
44388
  icon: f,
@@ -44391,7 +44410,7 @@ function cT({
44391
44410
  }
44392
44411
  );
44393
44412
  }
44394
- function dT({
44413
+ function hT({
44395
44414
  variant: C = "default",
44396
44415
  canSeeGraph: l = !0,
44397
44416
  canShowLocation: f = !0,
@@ -44468,7 +44487,7 @@ const AU = "[&_[data-testid=input-field-wrapper]]:bg-transparent", sU = ({ color
44468
44487
  )
44469
44488
  ] });
44470
44489
  };
44471
- function NN({
44490
+ function zN({
44472
44491
  trackedMinutes: C,
44473
44492
  remainingMinutes: l,
44474
44493
  data: f = [],
@@ -44501,7 +44520,7 @@ function NN({
44501
44520
  variant: fe = "default",
44502
44521
  loading: xe = !1
44503
44522
  }) {
44504
- const { status: be, statusText: _e, subtitle: Ve, statusColor: ue } = eT({
44523
+ const { status: be, statusText: _e, subtitle: Ve, statusColor: ue } = gT({
44505
44524
  data: f,
44506
44525
  labels: U,
44507
44526
  trackedMinutes: C,
@@ -44521,7 +44540,7 @@ function NN({
44521
44540
  }
44522
44541
  }, Ft = (rg) => {
44523
44542
  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) => ({
44543
+ }, St = Te && S.length && !o && y, Wt = Te && !re && ie, yt = lT(gB(S), b), Xe = S.map((rg) => ({
44525
44544
  value: rg.id,
44526
44545
  label: rg.name,
44527
44546
  icon: rg.icon
@@ -44537,7 +44556,7 @@ function NN({
44537
44556
  onOpenChange: st,
44538
44557
  disabled: o,
44539
44558
  children: /* @__PURE__ */ p("div", { "aria-label": "Select location", children: /* @__PURE__ */ p(
44540
- cT,
44559
+ uT,
44541
44560
  {
44542
44561
  text: yt?.name,
44543
44562
  placeholder: U.selectLocation,
@@ -44546,7 +44565,7 @@ function NN({
44546
44565
  ) })
44547
44566
  }
44548
44567
  ) : yt ? /* @__PURE__ */ p(WA, { text: yt.name, icon: yt.icon }) : null, it = S.length ? /* @__PURE__ */ p(
44549
- aT,
44568
+ cT,
44550
44569
  {
44551
44570
  locations: S,
44552
44571
  locationId: b,
@@ -44557,7 +44576,7 @@ function NN({
44557
44576
  disabled: !St
44558
44577
  }
44559
44578
  ) : null, Oe = Be?.length && ie ? /* @__PURE__ */ p(
44560
- lT,
44579
+ dT,
44561
44580
  {
44562
44581
  projects: Be,
44563
44582
  projectId: Ue,
@@ -44684,7 +44703,7 @@ function NN({
44684
44703
  ) : null, zt = Xt && ug, Nt = zt ? mt : null, pg = zt ? hg : hg ?? mt;
44685
44704
  if (xe)
44686
44705
  return /* @__PURE__ */ p(
44687
- dT,
44706
+ hT,
44688
44707
  {
44689
44708
  variant: fe,
44690
44709
  canSeeGraph: $,
@@ -44770,16 +44789,16 @@ function NN({
44770
44789
  /* @__PURE__ */ p("div", { className: "mt-6 flex flex-row flex-wrap items-center justify-center gap-2 @xs:justify-start", children: ig })
44771
44790
  ] }) });
44772
44791
  }
44773
- const uT = {
44792
+ const pT = {
44774
44793
  done: LD,
44775
44794
  "in-progress": jD,
44776
44795
  todo: OD
44777
- }, hT = {
44796
+ }, BT = {
44778
44797
  done: "text-f1-icon-success",
44779
44798
  "in-progress": "text-f1-icon-info",
44780
44799
  todo: "text-f1-icon"
44781
44800
  };
44782
- function pT({
44801
+ function fT({
44783
44802
  task: C,
44784
44803
  status: l,
44785
44804
  onClick: f,
@@ -44789,7 +44808,7 @@ function pT({
44789
44808
  f?.(C);
44790
44809
  }, S = Gt(() => {
44791
44810
  if (!U)
44792
- return uT[l];
44811
+ return pT[l];
44793
44812
  }, [l, U]);
44794
44813
  return /* @__PURE__ */ p(
44795
44814
  Ip,
@@ -44797,7 +44816,7 @@ function pT({
44797
44816
  id: C.id,
44798
44817
  title: C.text,
44799
44818
  icon: S,
44800
- iconClassName: hT[l],
44819
+ iconClassName: BT[l],
44801
44820
  alert: C.badge?.isPastDue ? {
44802
44821
  text: C.badge.text,
44803
44822
  level: "critical"
@@ -44811,7 +44830,7 @@ function pT({
44811
44830
  }
44812
44831
  );
44813
44832
  }
44814
- function KN({
44833
+ function JN({
44815
44834
  tasks: C,
44816
44835
  onClickTask: l,
44817
44836
  hideIcons: f = !1,
@@ -44837,7 +44856,7 @@ function KN({
44837
44856
  }))
44838
44857
  ), o = !y.length;
44839
44858
  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,
44859
+ fT,
44841
44860
  {
44842
44861
  task: V,
44843
44862
  status: V.status,
@@ -44847,11 +44866,11 @@ function KN({
44847
44866
  V.id
44848
44867
  )) });
44849
44868
  }
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 : {
44869
+ 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
44870
  duration: vy / 1e3,
44852
44871
  ease: IB,
44853
44872
  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 = {
44873
+ }, 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
44874
  type: "spring",
44856
44875
  stiffness: 420,
44857
44876
  damping: 32,
@@ -44859,20 +44878,20 @@ const IB = [0.05, 0.7, 0.1, 1], zA = { duration: 0 }, vy = 320, Ry = 10, BT = 55
44859
44878
  }, ky = {
44860
44879
  duration: Ey / 1e3,
44861
44880
  ease: "easeIn"
44862
- }, wT = {
44881
+ }, xT = {
44863
44882
  type: "spring",
44864
44883
  stiffness: 420,
44865
44884
  damping: 26,
44866
44885
  mass: 0.7
44867
- }, bT = {
44886
+ }, DT = {
44868
44887
  type: "spring",
44869
44888
  stiffness: 520,
44870
44889
  damping: 38,
44871
44890
  mass: 0.8
44872
- }, xT = {
44891
+ }, _T = {
44873
44892
  duration: Gy / 1e3,
44874
44893
  ease: "easeIn"
44875
- }, DT = Ty, _T = {
44894
+ }, ST = Ty, vT = {
44876
44895
  duration: 0.28,
44877
44896
  ease: IB
44878
44897
  }, GA = (C, l) => l ? zA : C, aU = (C, l) => {
@@ -44889,7 +44908,7 @@ const IB = [0.05, 0.7, 0.1, 1], zA = { duration: 0 }, vy = 320, Ry = 10, BT = 55
44889
44908
  const b = setTimeout(() => U(!0), l);
44890
44909
  return () => clearTimeout(b);
44891
44910
  }, [C, l]), f;
44892
- }, ST = (C) => {
44911
+ }, RT = (C) => {
44893
44912
  const [l, f] = We(C <= 0);
44894
44913
  return It(() => {
44895
44914
  if (C <= 0) {
@@ -44899,18 +44918,18 @@ const IB = [0.05, 0.7, 0.1, 1], zA = { duration: 0 }, vy = 320, Ry = 10, BT = 55
44899
44918
  const U = setTimeout(() => f(!0), C);
44900
44919
  return () => clearTimeout(U);
44901
44920
  }, [C]), l;
44902
- }, vT = (C = 0) => C + My + vy, RT = 220, MT = 140, VT = 5, PT = {
44903
- duration: RT / 1e3,
44921
+ }, MT = (C = 0) => C + My + vy, VT = 220, PT = 140, GT = 5, ET = {
44922
+ duration: VT / 1e3,
44904
44923
  ease: IB
44905
- }, GT = {
44906
- duration: MT / 1e3,
44924
+ }, TT = {
44925
+ duration: PT / 1e3,
44907
44926
  ease: "easeIn"
44908
44927
  }, lU = {
44909
44928
  type: "spring",
44910
44929
  stiffness: 520,
44911
44930
  damping: 40,
44912
44931
  mass: 0.8
44913
- }, ET = 4, Zy = (C, l = ET) => {
44932
+ }, kT = 4, Zy = (C, l = kT) => {
44914
44933
  const f = Ee(C), U = Math.abs(C - f.current) > l;
44915
44934
  return It(() => {
44916
44935
  f.current = C;
@@ -44926,20 +44945,20 @@ const IB = [0.05, 0.7, 0.1, 1], zA = { duration: 0 }, vy = 320, Ry = 10, BT = 55
44926
44945
  {
44927
44946
  className: C,
44928
44947
  style: { overflow: "hidden" },
44929
- initial: b ? !1 : { opacity: 0, height: 0, y: VT },
44948
+ initial: b ? !1 : { opacity: 0, height: 0, y: GT },
44930
44949
  animate: { opacity: 1, height: "auto", y: 0 },
44931
44950
  exit: {
44932
44951
  opacity: 0,
44933
44952
  height: 0,
44934
44953
  transition: {
44935
- ...GA(GT, b),
44954
+ ...GA(TT, b),
44936
44955
  // The fade is quick and the closing is a spring, so the row is
44937
44956
  // already invisible while its space is still being given back.
44938
44957
  height: GA(lU, b)
44939
44958
  }
44940
44959
  },
44941
44960
  transition: {
44942
- ...GA(PT, b),
44961
+ ...GA(ET, b),
44943
44962
  height: GA(lU, b)
44944
44963
  },
44945
44964
  children: f
@@ -44964,7 +44983,7 @@ const IB = [0.05, 0.7, 0.1, 1], zA = { duration: 0 }, vy = 320, Ry = 10, BT = 55
44964
44983
  children: S
44965
44984
  }
44966
44985
  );
44967
- }, TT = Qe(
44986
+ }, ZT = Qe(
44968
44987
  "pointer-events-none absolute inset-y-0 right-0 z-10 flex items-center gap-1 rounded-r-md pl-16 pr-2",
44969
44988
  "bg-gradient-to-l from-f1-background from-60% to-transparent",
44970
44989
  // Hidden but still in the DOM and still focusable, so Tab reaches them —
@@ -44972,8 +44991,8 @@ const IB = [0.05, 0.7, 0.1, 1], zA = { duration: 0 }, vy = 320, Ry = 10, BT = 55
44972
44991
  "opacity-0 transition-opacity motion-reduce:transition-none",
44973
44992
  "group-hover:pointer-events-auto group-hover:opacity-100",
44974
44993
  "group-focus-within:pointer-events-auto group-focus-within:opacity-100"
44975
- ), kT = "pointer-events-auto opacity-100";
44976
- function ZT({
44994
+ ), NT = "pointer-events-auto opacity-100";
44995
+ function KT({
44977
44996
  avatar: C,
44978
44997
  avatarSize: l = "lg",
44979
44998
  left: f,
@@ -45033,7 +45052,7 @@ function ZT({
45033
45052
  ) : /* @__PURE__ */ p("div", { className: ie, children: L });
45034
45053
  return K ? /* @__PURE__ */ ee("div", { className: "group relative", children: [
45035
45054
  Z,
45036
- /* @__PURE__ */ p("div", { className: Qe(TT, j && kT), children: o?.map((Ce) => {
45055
+ /* @__PURE__ */ p("div", { className: Qe(ZT, j && NT), children: o?.map((Ce) => {
45037
45056
  const Be = /* @__PURE__ */ p(
45038
45057
  dg,
45039
45058
  {
@@ -45061,7 +45080,7 @@ function ZT({
45061
45080
  }) })
45062
45081
  ] }) : Z;
45063
45082
  }
45064
- const NT = (C) => C == null ? void 0 : typeof C == "function" ? { render: C } : C, WN = [
45083
+ const WT = (C) => C == null ? void 0 : typeof C == "function" ? { render: C } : C, HN = [
45065
45084
  "viridian",
45066
45085
  "malibu",
45067
45086
  "yellow",
@@ -45073,7 +45092,7 @@ const NT = (C) => C == null ? void 0 : typeof C == "function" ? { render: C } :
45073
45092
  "flubber",
45074
45093
  "indigo",
45075
45094
  "camel"
45076
- ], KT = {
45095
+ ], YT = {
45077
45096
  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
45097
  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
45098
  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 +45104,27 @@ const NT = (C) => C == null ? void 0 : typeof C == "function" ? { render: C } :
45085
45104
  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
45105
  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
45106
  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) => {
45107
+ }, zT = (C) => {
45089
45108
  const l = C.slice(1), f = l.length === 3 ? l.split("").map((b) => b + b).join("") : l;
45090
45109
  if (!/^[0-9a-f]{6}$/i.test(f)) return;
45091
45110
  const U = parseInt(f, 16);
45092
45111
  return `${U >> 16 & 255} ${U >> 8 & 255} ${U & 255}`;
45093
- }, YT = Qe(
45112
+ }, JT = Qe(
45094
45113
  "bg-[rgb(var(--list-icon-tint)_/_0.1)] text-[rgb(var(--list-icon-tint))]",
45095
45114
  "dark:bg-[rgb(var(--list-icon-tint)_/_0.24)]"
45096
- ), zT = (C) => {
45115
+ ), HT = (C) => {
45097
45116
  if (!C.startsWith("#"))
45098
- return { className: KT[C] };
45099
- const l = WT(C);
45117
+ return { className: YT[C] };
45118
+ const l = zT(C);
45100
45119
  return l ? {
45101
- className: YT,
45120
+ className: JT,
45102
45121
  style: { "--list-icon-tint": l }
45103
45122
  } : void 0;
45104
- }, JT = {
45123
+ }, OT = {
45105
45124
  sm: "size-6 rounded-sm",
45106
45125
  md: "size-8 rounded",
45107
45126
  lg: "size-10 rounded-md"
45108
- }, HT = ({
45127
+ }, jT = ({
45109
45128
  icon: C,
45110
45129
  tint: l,
45111
45130
  size: f
@@ -45114,21 +45133,21 @@ const NT = (C) => C == null ? void 0 : typeof C == "function" ? { render: C } :
45114
45133
  {
45115
45134
  className: Qe(
45116
45135
  "flex aspect-square items-center justify-center",
45117
- JT[f],
45136
+ OT[f],
45118
45137
  l.className
45119
45138
  ),
45120
45139
  style: l.style,
45121
45140
  children: /* @__PURE__ */ p(Ig, { icon: C, size: f })
45122
45141
  }
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) => ({
45142
+ ), 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
45143
  visualization: "list",
45125
45144
  params: { schema: C, items: l },
45126
45145
  ...f
45127
- }), JN = (C, l) => (f) => l(f), Ud = (C, l = {}) => {
45146
+ }), LN = (C, l) => (f) => l(f), Ud = (C, l = {}) => {
45128
45147
  if (!C) return;
45129
45148
  const { title: f, info: U, ...b } = C, S = (y) => typeof y == "function" ? y(l) : y;
45130
45149
  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 = [
45150
+ }, Ec = (C) => Ud(C.header, C.params)?.title ?? C.id, XN = (C, l) => C ? C.safeParse(l ?? {}).success : !0, qN = [
45132
45151
  "neutral",
45133
45152
  "accent",
45134
45153
  "critical",
@@ -45147,23 +45166,23 @@ const NT = (C) => C == null ? void 0 : typeof C == "function" ? { render: C } :
45147
45166
  ...l,
45148
45167
  status: "status" in C ? C.status : void 0
45149
45168
  };
45150
- }, jT = "-m-2", Qd = (C) => Qe(jT, "mt-0", !C.isLastSlot && "mb-0"), zy = "gap-2", LT = (C, l, f) => {
45169
+ }, XT = "-m-2", Qd = (C) => Qe(XT, "mt-0", !C.isLastSlot && "mb-0"), zy = "gap-2", qT = (C, l, f) => {
45151
45170
  if (C === "module" && l.module)
45152
45171
  return { left: /* @__PURE__ */ p(pp, { module: l.module, size: f }) };
45153
45172
  if (C === "alert" && l.alert)
45154
45173
  return { left: /* @__PURE__ */ p(mp, { type: l.alert, size: f }) };
45155
45174
  if (C === "icon" && l.avatar?.icon && l.avatar.color) {
45156
- const U = zT(l.avatar.color);
45175
+ const U = HT(l.avatar.color);
45157
45176
  if (U)
45158
45177
  return {
45159
- left: /* @__PURE__ */ p(HT, { icon: l.avatar.icon, tint: U, size: f })
45178
+ left: /* @__PURE__ */ p(jT, { icon: l.avatar.icon, tint: U, size: f })
45160
45179
  };
45161
45180
  }
45162
45181
  return C && l.avatar ? {
45163
45182
  avatar: { type: C, ...l.avatar },
45164
45183
  avatarSize: f
45165
45184
  } : {};
45166
- }, XT = (C, l, f) => {
45185
+ }, $T = (C, l, f) => {
45167
45186
  if (C)
45168
45187
  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
45188
  Va,
@@ -45182,19 +45201,19 @@ const NT = (C) => C == null ? void 0 : typeof C == "function" ? { render: C } :
45182
45201
  }
45183
45202
  ) : void 0;
45184
45203
  }, Jy = (C, l) => l ? C ? "lg" : "md" : C ? "md" : "sm";
45185
- function qT({ params: C, ctx: l }) {
45204
+ function ek({ params: C, ctx: l }) {
45186
45205
  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
45206
  return /* @__PURE__ */ ee("div", { className: Qe(Qd(l), "flex flex-col"), children: [
45188
45207
  /* @__PURE__ */ p(Ny, { children: T.map(({ href: L, description: ie, ...Z }) => {
45189
45208
  const Ce = /* @__PURE__ */ p(
45190
- ZT,
45209
+ KT,
45191
45210
  {
45192
45211
  title: Z.title,
45193
45212
  subtitle: Z.subtitle,
45194
45213
  description: N ? void 0 : ie,
45195
45214
  unread: Z.unread,
45196
- ...LT(f.left, Z, $),
45197
- right: XT(f.right, Z, X),
45215
+ ...qT(f.left, Z, $),
45216
+ right: $T(f.right, Z, X),
45198
45217
  actions: Z.actions,
45199
45218
  href: f.clickBehavior === "link" ? L : void 0
45200
45219
  }
@@ -45216,18 +45235,18 @@ function qT({ params: C, ctx: l }) {
45216
45235
  ) }) : null
45217
45236
  ] });
45218
45237
  }
45219
- function $T({
45238
+ function tk({
45220
45239
  params: C,
45221
45240
  ctx: l
45222
45241
  }) {
45223
45242
  const { events: f } = C, U = Zy(f.length);
45224
45243
  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
45244
  }
45226
- const ek = 3, yd = "slot-skeleton-item", dU = ["w-1/2", "w-2/3", "w-2/5", "w-3/5"], tk = {
45245
+ const gk = 3, yd = "slot-skeleton-item", dU = ["w-1/2", "w-2/3", "w-2/5", "w-3/5"], Ik = {
45227
45246
  sm: "size-6",
45228
45247
  md: "size-8",
45229
45248
  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 = ({
45249
+ }, 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
45250
  params: C,
45232
45251
  ctx: l
45233
45252
  }) => {
@@ -45250,7 +45269,7 @@ const ek = 3, yd = "slot-skeleton-item", dU = ["w-1/2", "w-2/3", "w-2/5", "w-3/5
45250
45269
  className: Qe(
45251
45270
  "shrink-0",
45252
45271
  // The size the real glyph will be — same rule, same card.
45253
- tk[Jy(y, U)],
45272
+ Ik[Jy(y, U)],
45254
45273
  f.left === "person" ? "rounded-full" : "rounded-sm"
45255
45274
  )
45256
45275
  }
@@ -45267,7 +45286,7 @@ const ek = 3, yd = "slot-skeleton-item", dU = ["w-1/2", "w-2/3", "w-2/5", "w-3/5
45267
45286
  )),
45268
45287
  V ? /* @__PURE__ */ p("div", { className: "mt-1 self-start", children: /* @__PURE__ */ p(lt, { className: "h-6 w-24 rounded-sm" }) }) : null
45269
45288
  ] });
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(
45289
+ }, 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
45290
  "div",
45272
45291
  {
45273
45292
  "data-testid": yd,
@@ -45282,7 +45301,7 @@ const ek = 3, yd = "slot-skeleton-item", dU = ["w-1/2", "w-2/3", "w-2/5", "w-3/5
45282
45301
  ]
45283
45302
  },
45284
45303
  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(
45304
+ )) }), 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
45305
  "div",
45287
45306
  {
45288
45307
  "data-testid": yd,
@@ -45293,13 +45312,13 @@ const ek = 3, yd = "slot-skeleton-item", dU = ["w-1/2", "w-2/3", "w-2/5", "w-3/5
45293
45312
  ]
45294
45313
  },
45295
45314
  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 = {
45315
+ )) }), 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
45316
  list: {
45298
- render: (C, l) => /* @__PURE__ */ p(qT, { params: C, ctx: l }),
45317
+ render: (C, l) => /* @__PURE__ */ p(ek, { params: C, ctx: l }),
45299
45318
  skeleton: (C, l) => (
45300
45319
  // Partial: a loading `list` carries its schema but not yet its items.
45301
45320
  /* @__PURE__ */ p(
45302
- gk,
45321
+ ik,
45303
45322
  {
45304
45323
  params: C ?? {},
45305
45324
  ctx: l
@@ -45311,15 +45330,15 @@ const ek = 3, yd = "slot-skeleton-item", dU = ["w-1/2", "w-2/3", "w-2/5", "w-3/5
45311
45330
  // because each one is wrapped for the CHURN (see `EventListSlot`), which asks
45312
45331
  // for a per-item wrapper that component has no way to put in.
45313
45332
  "event-list": {
45314
- render: (C, l) => /* @__PURE__ */ p($T, { params: C, ctx: l }),
45315
- skeleton: (C, l) => /* @__PURE__ */ p(Ik, { ctx: l })
45333
+ render: (C, l) => /* @__PURE__ */ p(tk, { params: C, ctx: l }),
45334
+ skeleton: (C, l) => /* @__PURE__ */ p(nk, { ctx: l })
45316
45335
  },
45317
45336
  indicators: {
45318
- render: (C) => /* @__PURE__ */ p(jE, { ...C }),
45319
- skeleton: (C, l) => /* @__PURE__ */ p(ik, { ctx: l })
45337
+ render: (C) => /* @__PURE__ */ p(XE, { ...C }),
45338
+ skeleton: (C, l) => /* @__PURE__ */ p(Ck, { ctx: l })
45320
45339
  }
45321
- }, Ck = "-ml-0.5 mt-2", Sh = 450, ok = "cubic-bezier(0.4, 0, 0.1, 1)", rk = 1.04;
45322
- function Ak({
45340
+ }, rk = "-ml-0.5 mt-2", Sh = 450, Ak = "cubic-bezier(0.4, 0, 0.1, 1)", sk = 1.04;
45341
+ function ak({
45323
45342
  slots: C,
45324
45343
  loading: l = !1,
45325
45344
  slotRenderers: f,
@@ -45335,7 +45354,7 @@ function Ak({
45335
45354
  className: "flex flex-col",
45336
45355
  ...l ? { "aria-busy": !0, "aria-live": "polite" } : {},
45337
45356
  children: C.map((S, y) => {
45338
- const o = NT(b[S.visualization]), V = {
45357
+ const o = WT(b[S.visualization]), V = {
45339
45358
  ...U,
45340
45359
  isLastSlot: y === C.length - 1
45341
45360
  };
@@ -45344,9 +45363,9 @@ function Ak({
45344
45363
  l ? (
45345
45364
  // A placeholder says nothing worth reading out — the stack
45346
45365
  // above already announces that the widget is busy.
45347
- /* @__PURE__ */ p("div", { "aria-hidden": "true", children: (o?.skeleton ?? nk)(S.params, {
45366
+ /* @__PURE__ */ p("div", { "aria-hidden": "true", children: (o?.skeleton ?? ok)(S.params, {
45348
45367
  ...V,
45349
- expectedItemsCount: S.expectedItemsCount ?? ek
45368
+ expectedItemsCount: S.expectedItemsCount ?? gk
45350
45369
  }) })
45351
45370
  ) : 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
45371
  ] }, y);
@@ -45420,14 +45439,14 @@ function CB({
45420
45439
  header: _e,
45421
45440
  fullHeight: f,
45422
45441
  action: U,
45423
- footerClassName: Ck,
45442
+ footerClassName: rk,
45424
45443
  actions: j,
45425
45444
  headerControls: fe,
45426
45445
  summaries: b,
45427
45446
  ...V ? { alert: V } : { status: E },
45428
45447
  isDragging: L,
45429
45448
  children: /* @__PURE__ */ p(
45430
- Ak,
45449
+ ak,
45431
45450
  {
45432
45451
  ctx: H === void 0 ? ie : { ...ie, selection: H },
45433
45452
  loading: K,
@@ -45452,7 +45471,7 @@ function CB({
45452
45471
  className: "h-full",
45453
45472
  "data-turning": Be || void 0,
45454
45473
  style: {
45455
- transform: `scale(${Be ? rk : 1})`,
45474
+ transform: `scale(${Be ? sk : 1})`,
45456
45475
  transition: Ce ? void 0 : `transform ${Sh / 2}ms ease-out`
45457
45476
  },
45458
45477
  children: /* @__PURE__ */ ee(
@@ -45464,7 +45483,7 @@ function CB({
45464
45483
  // No transition under reduced motion: the card still turns (the back
45465
45484
  // has to become visible — `backface-visibility` hides whichever face
45466
45485
  // points away), it just gets there at once.
45467
- transition: Ce ? void 0 : `transform ${Sh}ms ${ok}`
45486
+ transition: Ce ? void 0 : `transform ${Sh}ms ${Ak}`
45468
45487
  },
45469
45488
  children: [
45470
45489
  /* @__PURE__ */ p(
@@ -45515,8 +45534,8 @@ function CB({
45515
45534
  )
45516
45535
  ) : Ve;
45517
45536
  }
45518
- const sk = 24;
45519
- function vh(C = sk) {
45537
+ const lk = 24;
45538
+ function vh(C = lk) {
45520
45539
  const [l, f] = We(null), [U, b] = We({ top: !1, bottom: !1 });
45521
45540
  It(() => {
45522
45541
  if (!l) return;
@@ -45540,8 +45559,8 @@ function vh(C = sk) {
45540
45559
  }, [U, C]);
45541
45560
  return { ref: f, style: S, element: l };
45542
45561
  }
45543
- const ak = "(min-width: 2200px) and (min-height: 900px)", Hy = () => {
45544
- const C = ZA(ak, {
45562
+ const ck = "(min-width: 2200px) and (min-height: 900px)", Hy = () => {
45563
+ const C = ZA(ck, {
45545
45564
  initializeWithValue: !0,
45546
45565
  defaultValue: !1
45547
45566
  }), l = ZA(`(max-width: ${NA.md}px)`, {
@@ -45568,7 +45587,7 @@ const ak = "(min-width: 2200px) and (min-height: 900px)", Hy = () => {
45568
45587
  asideClassName: l ? "w-full shrink-0" : "w-80 shrink-0",
45569
45588
  stacked: l
45570
45589
  };
45571
- }, lk = "animate-in fade-in zoom-in-95 duration-300 ease-out motion-reduce:animate-none";
45590
+ }, dk = "animate-in fade-in zoom-in-95 duration-300 ease-out motion-reduce:animate-none";
45572
45591
  function Oy({
45573
45592
  previewKey: C,
45574
45593
  children: l,
@@ -45579,7 +45598,7 @@ function Oy({
45579
45598
  /* @__PURE__ */ p(
45580
45599
  "div",
45581
45600
  {
45582
- className: Qe("w-full", lk),
45601
+ className: Qe("w-full", dk),
45583
45602
  style: { maxWidth: `${U}px` },
45584
45603
  children: l
45585
45604
  },
@@ -45592,8 +45611,8 @@ function Oy({
45592
45611
  ) : null
45593
45612
  ] }) });
45594
45613
  }
45595
- const ck = (C, l) => typeof C == "function" ? C(l) : C, dk = 250;
45596
- function uk({
45614
+ const uk = (C, l) => typeof C == "function" ? C(l) : C, hk = 250;
45615
+ function pk({
45597
45616
  isOpen: C,
45598
45617
  onClose: l,
45599
45618
  schema: f,
@@ -45635,7 +45654,7 @@ function uk({
45635
45654
  defaultValues: U,
45636
45655
  submitConfig: {
45637
45656
  type: "autosubmit",
45638
- delay: dk,
45657
+ delay: hk,
45639
45658
  hideActionBar: !0
45640
45659
  },
45641
45660
  styling: { noPadding: !0 },
@@ -45646,7 +45665,7 @@ function uk({
45646
45665
  Oy,
45647
45666
  {
45648
45667
  previewKey: "widget-params",
45649
- info: ck(S, Z),
45668
+ info: uk(S, Z),
45650
45669
  previewWidth: o,
45651
45670
  children: b(Z)
45652
45671
  }
@@ -45655,19 +45674,18 @@ function uk({
45655
45674
  }
45656
45675
  );
45657
45676
  }
45658
- const hk = (C) => {
45677
+ const Bk = (C) => {
45659
45678
  const l = C?.cloneNode(!0);
45660
45679
  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 = ({
45680
+ }, fk = ({
45662
45681
  id: C,
45663
45682
  disabled: l = !1,
45664
45683
  children: f
45665
45684
  }) => {
45666
45685
  const { listeners: U, setNodeRef: b, transform: S, transition: y, isDragging: o } = N_({ id: C, disabled: l }), V = {
45667
45686
  // 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.
45687
+ // ignore any horizontal component. This is the shuffle; the card under the
45688
+ // pointer is held to the same axis by the column's `verticalOnly` modifier.
45671
45689
  transform: K_.Translate.toString(S && { ...S, x: 0 }),
45672
45690
  transition: y ?? void 0
45673
45691
  };
@@ -45688,16 +45706,16 @@ const hk = (C) => {
45688
45706
  children: f({ isDragging: o })
45689
45707
  }
45690
45708
  );
45691
- }, Bk = 12, fk = 280, mk = 2, Fk = /* @__PURE__ */ new Set(["auto", "scroll", "overlay"]), Uk = (C) => {
45709
+ }, mk = 12, Fk = 280, Uk = 2, Qk = /* @__PURE__ */ new Set(["auto", "scroll", "overlay"]), yk = (C) => {
45692
45710
  let l = C.parentElement;
45693
45711
  for (; l && l !== document.body && l !== document.documentElement; ) {
45694
- if (Fk.has(getComputedStyle(l).getPropertyValue("overflow-y")))
45712
+ if (Qk.has(getComputedStyle(l).getPropertyValue("overflow-y")))
45695
45713
  return l;
45696
45714
  l = l.parentElement;
45697
45715
  }
45698
45716
  return null;
45699
45717
  };
45700
- function Qk({
45718
+ function wk({
45701
45719
  config: C,
45702
45720
  count: l,
45703
45721
  gap: f,
@@ -45706,7 +45724,7 @@ function Qk({
45706
45724
  }) {
45707
45725
  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
45726
  xi(() => {
45709
- !K || N || !y || E(Uk(y));
45727
+ !K || N || !y || E(yk(y));
45710
45728
  }, [K, N, y]);
45711
45729
  const [j, $] = We(0);
45712
45730
  xi(() => {
@@ -45719,7 +45737,7 @@ function Qk({
45719
45737
  const Ue = new ResizeObserver(Be);
45720
45738
  return Ue.observe(T), y.parentElement && Ue.observe(y.parentElement), () => Ue.disconnect();
45721
45739
  }, [K, y, T]);
45722
- const X = K && T != null && l >= (S?.threshold ?? Bk), L = Ee(U);
45740
+ const X = K && T != null && l >= (S?.threshold ?? mk), L = Ee(U);
45723
45741
  L.current = U;
45724
45742
  const ie = U.join(","), Z = gt(
45725
45743
  (Be) => {
@@ -45735,8 +45753,8 @@ function Qk({
45735
45753
  gap: f,
45736
45754
  scrollMargin: j,
45737
45755
  rangeExtractor: Z,
45738
- overscan: S?.overscan ?? mk,
45739
- estimateSize: () => S?.estimateHeight ?? fk,
45756
+ overscan: S?.overscan ?? Uk,
45757
+ estimateSize: () => S?.estimateHeight ?? Fk,
45740
45758
  getScrollElement: () => T
45741
45759
  });
45742
45760
  return {
@@ -45753,7 +45771,10 @@ function Qk({
45753
45771
  } : null
45754
45772
  };
45755
45773
  }
45756
- const yk = ({
45774
+ const bk = ({ transform: C }) => ({
45775
+ ...C,
45776
+ x: 0
45777
+ }), xk = ({
45757
45778
  arrival: C,
45758
45779
  stow: l,
45759
45780
  fullHeight: f,
@@ -45765,7 +45786,7 @@ const yk = ({
45765
45786
  const K = S.current;
45766
45787
  K?.offsetParent && o(E * l.pitch - K.offsetTop);
45767
45788
  }, [l?.stowed, l?.pitch, E]);
45768
- const T = b ? zA : C?.arriving ? iB(E, C.delayMs) : !l || l.instant ? zA : V ? xT : DT;
45789
+ const T = b ? zA : C?.arriving ? iB(E, C.delayMs) : !l || l.instant ? zA : V ? _T : ST;
45769
45790
  return /* @__PURE__ */ p(
45770
45791
  Zt.div,
45771
45792
  {
@@ -45782,7 +45803,7 @@ const yk = ({
45782
45803
  children: U
45783
45804
  }
45784
45805
  );
45785
- }, wk = [
45806
+ }, Dk = [
45786
45807
  "a",
45787
45808
  "button",
45788
45809
  "input",
@@ -45797,22 +45818,22 @@ const yk = ({
45797
45818
  "[role='tab']",
45798
45819
  "[contenteditable='true']"
45799
45820
  ].join(",");
45800
- class bk extends X_ {
45821
+ class _k extends X_ {
45801
45822
  static activators = [
45802
45823
  {
45803
45824
  eventName: "onPointerDown",
45804
45825
  handler: ({ nativeEvent: l }, { onActivation: f }) => {
45805
45826
  if (!l.isPrimary || l.button !== 0) return !1;
45806
45827
  const U = l.target;
45807
- return U instanceof Element && U.closest(wk) ? !1 : (f?.({ event: l }), !0);
45828
+ return U instanceof Element && U.closest(Dk) ? !1 : (f?.({ event: l }), !0);
45808
45829
  }
45809
45830
  }
45810
45831
  ];
45811
45832
  }
45812
- const xk = {
45833
+ const Sk = {
45813
45834
  duration: 450,
45814
45835
  easing: "cubic-bezier(0.4, 0, 0.1, 1)"
45815
- }, Dk = { main: 24, right: 16 }, _k = ({
45836
+ }, vk = [bk], Rk = { main: 24, right: 16 }, Mk = ({
45816
45837
  hidden: C,
45817
45838
  placement: l,
45818
45839
  measureRef: f,
@@ -45840,7 +45861,7 @@ const xk = {
45840
45861
  ),
45841
45862
  children: U
45842
45863
  }
45843
- ), Sk = ({
45864
+ ), Vk = ({
45844
45865
  onClick: C,
45845
45866
  label: l
45846
45867
  }) => /* @__PURE__ */ p(yn, { label: l, children: /* @__PURE__ */ p(
@@ -45879,17 +45900,17 @@ function hU({
45879
45900
  style: Fe
45880
45901
  }) {
45881
45902
  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 } })
45903
+ Y_(_k, { activationConstraint: { distance: 4 } })
45883
45904
  ), [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(
45905
+ Le.current = Bk(
45885
45906
  Re.current?.querySelector(`[data-widget-id="${He}"]`)
45886
45907
  );
45887
45908
  }, bt = (He) => {
45888
45909
  He && Le.current && He.replaceChildren(Le.current);
45889
- }, Ft = Qk({
45910
+ }, Ft = wk({
45890
45911
  config: K === !0 ? {} : K,
45891
45912
  count: C.length,
45892
- gap: Dk[l],
45913
+ gap: Rk[l],
45893
45914
  // The card UNDER THE POINTER stays mounted for the whole gesture whatever the
45894
45915
  // column scrolls past: dnd-kit holds the node it is dragging, and taking that
45895
45916
  // out from under it mid-drag ends the drag rather than the drop.
@@ -45987,14 +46008,14 @@ function hU({
45987
46008
  }
45988
46009
  ) }) })
45989
46010
  ] });
45990
- }, $e = T === !1 ? null : T, st = ST(vT($e?.delayMs)), pt = (He) => N && {
46011
+ }, $e = T === !1 ? null : T, st = RT(MT($e?.delayMs)), pt = (He) => N && {
45991
46012
  ...N,
45992
46013
  stowed: N.stowed && He.id !== E,
45993
46014
  instant: N.stowed
45994
46015
  }, it = (He, Ut, xt) => {
45995
46016
  const kt = xt ? pt(xt) : void 0;
45996
46017
  return !$e && !kt ? Ut : /* @__PURE__ */ p(
45997
- yk,
46018
+ xk,
45998
46019
  {
45999
46020
  arrival: $e ? {
46000
46021
  order: ($e.order ?? 0) + He,
@@ -46007,12 +46028,12 @@ function hU({
46007
46028
  }
46008
46029
  );
46009
46030
  }, Oe = (He, Ut, xt) => /* @__PURE__ */ p(
46010
- _k,
46031
+ Mk,
46011
46032
  {
46012
46033
  hidden: H(He),
46013
46034
  placement: xt,
46014
46035
  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)
46036
+ 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
46037
  },
46017
46038
  He.id
46018
46039
  ), ft = /* @__PURE__ */ p(
@@ -46058,6 +46079,7 @@ function hU({
46058
46079
  {
46059
46080
  sensors: xe,
46060
46081
  collisionDetection: J_,
46082
+ modifiers: vk,
46061
46083
  onDragStart: ({ active: He }) => {
46062
46084
  et(String(He.id)), fe(String(He.id));
46063
46085
  },
@@ -46076,7 +46098,7 @@ function hU({
46076
46098
  children: ft
46077
46099
  }
46078
46100
  ),
46079
- /* @__PURE__ */ p(j_, { dropAnimation: xk, children: q ? (
46101
+ /* @__PURE__ */ p(j_, { dropAnimation: Sk, children: q ? (
46080
46102
  // Solid backdrop: Card's own background is translucent, and the
46081
46103
  // copy rides over whatever the column shows beneath it.
46082
46104
  /* @__PURE__ */ p(
@@ -46093,7 +46115,7 @@ function hU({
46093
46115
  !S && o ? it(
46094
46116
  C.length,
46095
46117
  /* @__PURE__ */ p(
46096
- Sk,
46118
+ Vk,
46097
46119
  {
46098
46120
  onClick: o,
46099
46121
  label: j ?? re.widgets.addWidget
@@ -46101,7 +46123,7 @@ function hU({
46101
46123
  )
46102
46124
  ) : null,
46103
46125
  Ve?.paramsSchema && $ ? /* @__PURE__ */ p(
46104
- uk,
46126
+ pk,
46105
46127
  {
46106
46128
  isOpen: !0,
46107
46129
  onClose: () => _e(null),
@@ -46118,7 +46140,7 @@ function hU({
46118
46140
  }
46119
46141
  );
46120
46142
  }
46121
- const vk = ({
46143
+ const Pk = ({
46122
46144
  collapsed: C,
46123
46145
  open: l,
46124
46146
  glide: f,
@@ -46136,7 +46158,7 @@ const vk = ({
46136
46158
  j.jump(b);
46137
46159
  return;
46138
46160
  }
46139
- const X = t_(j, b, _T);
46161
+ const X = t_(j, b, vT);
46140
46162
  return () => X.stop();
46141
46163
  }, [U, V, b, j]), {
46142
46164
  mode: T,
@@ -46152,18 +46174,18 @@ const vk = ({
46152
46174
  ...l ? Ty : ky,
46153
46175
  // Between two glyphs the panel glides; on the way out of one it must
46154
46176
  // not travel at all.
46155
- y: f ? bT : zA
46177
+ y: f ? DT : zA
46156
46178
  },
46157
46179
  // Collapsing puts the glyphs in as the cards finish retracting — they overlap
46158
46180
  // on purpose. On the first paint there is no retract to follow, so they are
46159
46181
  // simply the right area arriving after the main one.
46160
- glyphDelayMs: y ? fT : Vy
46182
+ glyphDelayMs: y ? FT : Vy
46161
46183
  };
46162
- }, Rk = {
46184
+ }, Gk = {
46163
46185
  morning: "bg-gradient-to-bl from-[#E51943] from-20% via-[#F97316] via-35% to-transparent to-50%",
46164
46186
  afternoon: "bg-gradient-to-bl from-[#5596F6] from-20% via-[#10B881] via-35% to-transparent to-50%",
46165
46187
  evening: "bg-gradient-to-bl from-[#3739A8] from-20% via-[#CB6687] via-35% to-transparent to-50%"
46166
- }, Mk = ({
46188
+ }, Ek = ({
46167
46189
  period: C,
46168
46190
  className: l
46169
46191
  }) => /* @__PURE__ */ p(
@@ -46172,21 +46194,21 @@ const vk = ({
46172
46194
  "aria-hidden": !0,
46173
46195
  className: Qe(
46174
46196
  "pointer-events-none absolute inset-0 h-screen max-h-[1000px] opacity-[0.08]",
46175
- Rk[C],
46197
+ Gk[C],
46176
46198
  l
46177
46199
  )
46178
46200
  }
46179
- ), bc = 40, Vk = 712, Pk = 8, Gk = 1e3, jy = (C) => {
46201
+ ), bc = 40, Tk = 712, kk = 8, Zk = 1e3, jy = (C) => {
46180
46202
  const l = QI(), [f, U] = We(!0);
46181
46203
  return It(() => {
46182
46204
  if (!C || l) {
46183
46205
  U(!0);
46184
46206
  return;
46185
46207
  }
46186
- const b = setInterval(() => U((S) => !S), Gk);
46208
+ const b = setInterval(() => U((S) => !S), Zk);
46187
46209
  return () => clearInterval(b);
46188
46210
  }, [C, l]), f;
46189
- }, Ek = 0.24, Tk = ({
46211
+ }, Nk = 0.24, Kk = ({
46190
46212
  text: C,
46191
46213
  ticking: l
46192
46214
  }) => {
@@ -46196,13 +46218,13 @@ const vk = ({
46196
46218
  "span",
46197
46219
  {
46198
46220
  className: "transition-opacity duration-200",
46199
- style: { opacity: f ? 1 : Ek },
46221
+ style: { opacity: f ? 1 : Nk },
46200
46222
  children: ":"
46201
46223
  }
46202
46224
  ) : null,
46203
46225
  U
46204
46226
  ] }, b)) });
46205
- }, kk = {
46227
+ }, Wk = {
46206
46228
  neutral: {
46207
46229
  pill: "bg-f1-background-inverse text-f1-foreground-inverse",
46208
46230
  button: "bg-f1-background-accent-bold hover:bg-f1-background-accent-bold-hover",
@@ -46260,7 +46282,7 @@ const vk = ({
46260
46282
  soloIcon: "inverse",
46261
46283
  soloRing: "ring-f1-border-inverse"
46262
46284
  }
46263
- }, Zk = ({
46285
+ }, Yk = ({
46264
46286
  widget: C,
46265
46287
  order: l,
46266
46288
  open: f,
@@ -46268,16 +46290,16 @@ const vk = ({
46268
46290
  onOpen: b,
46269
46291
  onClose: S
46270
46292
  }) => {
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 = {
46293
+ 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
46294
  initial: {
46273
46295
  opacity: 0,
46274
- scale: y ? 1 : UT
46296
+ scale: y ? 1 : yT
46275
46297
  },
46276
46298
  animate: { opacity: 1, scale: 1 },
46277
- exit: { opacity: 0, scale: y ? 1 : QT },
46278
- whileTap: y ? void 0 : { scale: yT },
46299
+ exit: { opacity: 0, scale: y ? 1 : wT },
46300
+ whileTap: y ? void 0 : { scale: bT },
46279
46301
  transition: GA(
46280
- { ...wT, delay: Py(l, U) },
46302
+ { ...xT, delay: Py(l, U) },
46281
46303
  y
46282
46304
  )
46283
46305
  }, 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 +46328,7 @@ const vk = ({
46306
46328
  onFocus: (j) => b(C.id, j.currentTarget),
46307
46329
  ...K,
46308
46330
  children: [
46309
- E ? /* @__PURE__ */ p(Tk, { text: E, ticking: !!o.ticking }) : null,
46331
+ E ? /* @__PURE__ */ p(Kk, { text: E, ticking: !!o.ticking }) : null,
46310
46332
  /* @__PURE__ */ p(
46311
46333
  OA,
46312
46334
  {
@@ -46359,7 +46381,7 @@ const vk = ({
46359
46381
  ] })
46360
46382
  }
46361
46383
  );
46362
- }, Rh = "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden", Nk = 16, pU = 768, Kk = 150, Wk = 8, jN = bg(
46384
+ }, Rh = "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden", zk = 16, pU = 768, Jk = 150, Hk = 8, $N = bg(
46363
46385
  function({
46364
46386
  children: l,
46365
46387
  leftWidgets: f = [],
@@ -46379,7 +46401,7 @@ const vk = ({
46379
46401
  onReorderWidgets: L,
46380
46402
  period: ie = "morning",
46381
46403
  asideWidth: Z = 396,
46382
- mainWidth: Ce = Vk,
46404
+ mainWidth: Ce = Tk,
46383
46405
  bleed: Be = 24,
46384
46406
  stackedPinsAfter: Ue = 2,
46385
46407
  ctx: Fe = {},
@@ -46413,7 +46435,7 @@ const vk = ({
46413
46435
  ), ft = vh(), He = vh(), Ut = vh(), xt = (vt) => E.includes(vt) ? {
46414
46436
  ...T,
46415
46437
  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 = {
46438
+ } : !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
46439
  pinned: zt ? U.filter((vt) => vt.locked) : [],
46418
46440
  rest: zt ? U.filter((vt) => !vt.locked) : []
46419
46441
  }, pg = Up.toArray(l), Fg = (zt ? [
@@ -46431,7 +46453,7 @@ const vk = ({
46431
46453
  It(() => {
46432
46454
  Xt || et(null);
46433
46455
  }, [Xt]);
46434
- const qt = vk({
46456
+ const qt = Pk({
46435
46457
  collapsed: Xt,
46436
46458
  open: Ht != null,
46437
46459
  glide: St,
@@ -46445,7 +46467,7 @@ const vk = ({
46445
46467
  // (`y`), so moving between glyphs composites instead of relaying the
46446
46468
  // panel out on every frame.
46447
46469
  top: 0,
46448
- right: bc + Wk,
46470
+ right: bc + Hk,
46449
46471
  width: Z,
46450
46472
  // The panel grows to its widget, up to what is left below its glyph,
46451
46473
  // and scrolls past that.
@@ -46493,7 +46515,7 @@ const vk = ({
46493
46515
  }, wt = () => {
46494
46516
  yt.current && clearTimeout(yt.current), yt.current = null;
46495
46517
  }, Et = () => {
46496
- wt(), yt.current = setTimeout(() => et(null), Kk);
46518
+ wt(), yt.current = setTimeout(() => et(null), Jk);
46497
46519
  }, Qg = (vt, vg) => {
46498
46520
  wt();
46499
46521
  const yI = ue.current;
@@ -46554,7 +46576,7 @@ const vk = ({
46554
46576
  "aria-hidden": !0,
46555
46577
  className: "pointer-events-none absolute -z-10 overflow-hidden bg-f1-special-page",
46556
46578
  style: { top: -Be, bottom: -Be, left: -Be, right: -Be },
46557
- children: /* @__PURE__ */ p(Mk, { period: ie })
46579
+ children: /* @__PURE__ */ p(Ek, { period: ie })
46558
46580
  }
46559
46581
  ),
46560
46582
  /* @__PURE__ */ ee(
@@ -46721,7 +46743,7 @@ const vk = ({
46721
46743
  onMouseEnter: wt,
46722
46744
  children: [
46723
46745
  U.map((vt, vg) => /* @__PURE__ */ p(
46724
- Zk,
46746
+ Yk,
46725
46747
  {
46726
46748
  widget: vt,
46727
46749
  order: vg,
@@ -46779,10 +46801,10 @@ const vk = ({
46779
46801
  initial: !1,
46780
46802
  animate: {
46781
46803
  opacity: qt.bodyOut ? 1 : 0,
46782
- scale: qt.bodyOut ? 1 : mT,
46804
+ scale: qt.bodyOut ? 1 : UT,
46783
46805
  // Toward the strip while it shrinks, so it converges on the glyph
46784
46806
  // rather than just fading where it stood.
46785
- x: qt.bodyOut ? 0 : FT,
46807
+ x: qt.bodyOut ? 0 : QT,
46786
46808
  // Only the panel is offset from its own box; in the grid it sits
46787
46809
  // where the grid put it.
46788
46810
  y: Jt ? bt : 0
@@ -46798,7 +46820,7 @@ const vk = ({
46798
46820
  visibleWidgetId: Jt ? mI : void 0,
46799
46821
  stow: {
46800
46822
  stowed: Xt,
46801
- pitch: bc + Pk,
46823
+ pitch: bc + kk,
46802
46824
  scale: bc / Z
46803
46825
  },
46804
46826
  slotRenderers: S,
@@ -46826,7 +46848,7 @@ const vk = ({
46826
46848
  ), BU = {
46827
46849
  main: 712,
46828
46850
  right: 396
46829
- }, Ly = (C) => typeof C == "object" && C !== null && !Fp(C) && Array.isArray(C.slots), Yk = ({
46851
+ }, Ly = (C) => typeof C == "object" && C !== null && !Fp(C) && Array.isArray(C.slots), Ok = ({
46830
46852
  preview: C,
46831
46853
  slotRenderers: l
46832
46854
  }) => Ly(C) ? /* @__PURE__ */ p(
@@ -46840,11 +46862,11 @@ const vk = ({
46840
46862
  loading: C.loading,
46841
46863
  slotRenderers: l
46842
46864
  }
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: [
46865
+ ) : /* @__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
46866
  l ? /* @__PURE__ */ p(Ig, { icon: l, size: "sm", color: "secondary" }) : null,
46845
46867
  /* @__PURE__ */ p("h6", { className: "m-0 text-xs font-medium uppercase tracking-wide text-f1-foreground-secondary", children: C })
46846
46868
  ] });
46847
- function LN({
46869
+ function eK({
46848
46870
  isOpen: C,
46849
46871
  onClose: l,
46850
46872
  widgets: f,
@@ -46901,7 +46923,7 @@ function LN({
46901
46923
  ),
46902
46924
  /* @__PURE__ */ ee("div", { className: "flex flex-col gap-1 overflow-y-auto", children: [
46903
46925
  Be.map((re) => /* @__PURE__ */ ee(bi, { children: [
46904
- re.label ? /* @__PURE__ */ p(Jk, { label: re.label, icon: re.icon }) : null,
46926
+ re.label ? /* @__PURE__ */ p(Lk, { label: re.label, icon: re.icon }) : null,
46905
46927
  re.items.map((ce) => /* @__PURE__ */ ee(
46906
46928
  "button",
46907
46929
  {
@@ -46923,10 +46945,10 @@ function LN({
46923
46945
  Oy,
46924
46946
  {
46925
46947
  previewKey: Fe?.id,
46926
- info: Fe ? zk(Fe) : void 0,
46948
+ info: Fe ? jk(Fe) : void 0,
46927
46949
  previewWidth: Ce,
46928
46950
  children: Fe ? /* @__PURE__ */ p(
46929
- Yk,
46951
+ Ok,
46930
46952
  {
46931
46953
  preview: Fe.preview,
46932
46954
  slotRenderers: o
@@ -46938,45 +46960,45 @@ function LN({
46938
46960
  }
46939
46961
  );
46940
46962
  }
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) => {
46963
+ 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
46964
  for (var f in l || (l = {})) Xy.call(l, f) && fU(C, f, l[f]);
46943
46965
  if (ed) for (var f of ed(l)) qy.call(l, f) && fU(C, f, l[f]);
46944
46966
  return C;
46945
- }, wd = (C, l) => Ok(C, jk(l)), Lk = (C, l) => {
46967
+ }, wd = (C, l) => qk(C, $k(l)), eZ = (C, l) => {
46946
46968
  var f = {};
46947
46969
  for (var U in C) Xy.call(C, U) && l.indexOf(U) < 0 && (f[U] = C[U]);
46948
46970
  if (C != null && ed) for (var U of ed(C)) l.indexOf(U) < 0 && qy.call(C, U) && (f[U] = C[U]);
46949
46971
  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 }) => {
46972
+ }, 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
46973
  if (C.left > l.left && l.right >= C.left && C.top + f.height > l.top) {
46952
46974
  if (l.bottom && l.bottom < C.top) return l;
46953
46975
  let U = In({}, l);
46954
46976
  return U.right = C.left, U;
46955
46977
  }
46956
46978
  return null;
46957
- }, eZ = ({ position: C, stone: l, spot: f }) => {
46979
+ }, iZ = ({ position: C, stone: l, spot: f }) => {
46958
46980
  if (C.left + l.width > f.left && C.top >= f.top) {
46959
46981
  if (f.bottom && f.bottom < C.top || f.right < C.left) return f;
46960
46982
  let U = In({}, f);
46961
46983
  return U.bottom = C.top, U;
46962
46984
  }
46963
46985
  return null;
46964
- }, tZ = ({ stone: C, position: l, spotsList: f, optimalSpot: U }) => {
46986
+ }, nZ = ({ stone: C, position: l, spotsList: f, optimalSpot: U }) => {
46965
46987
  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;
46988
+ return b.left = l.left + C.width, tZ(b) || gZ({ usedSpot: b, spotsList: f }) ? null : b;
46989
+ }, CZ = ({ spots: C, position: l, optimalSpot: f, stone: U }) => C.map((b, S, y) => {
46990
+ if (b === f) return nZ({ stone: U, position: l, optimalSpot: f, spotsList: y });
46991
+ let o = IZ({ position: l, spot: b, stone: U });
46992
+ return o || iZ({ position: l, stone: U, spot: b }) || b;
46971
46993
  });
46972
- function IZ(C, l) {
46994
+ function oZ(C, l) {
46973
46995
  for (let f = 0, U = l.length; f < U; f++) {
46974
46996
  let b = l[f];
46975
46997
  if (C(b)) return b;
46976
46998
  }
46977
46999
  return null;
46978
47000
  }
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 }) => {
47001
+ 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
47002
  let b = { right: f, top: l.top + U.height, left: l.left };
46981
47003
  l.bottom && (b.bottom = l.bottom);
46982
47004
  for (let S = 0, y = C.length; S < y; S += 1) {
@@ -46987,47 +47009,47 @@ var iZ = (C, l) => l.filter(C), nZ = (C, l) => [...l].sort(C), CZ = (C, l) => C.
46987
47009
  }
46988
47010
  }
46989
47011
  return b;
46990
- }, AZ = (C, l) => {
47012
+ }, cZ = (C, l) => {
46991
47013
  let f = C.right - C.left >= l.width;
46992
47014
  if (!C.bottom) return f;
46993
47015
  let U = C.bottom - C.top >= l.height;
46994
47016
  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 };
47017
+ }, dZ = ({ availableSpots: C, stone: l }) => oZ((f) => cZ(f, l), C);
47018
+ function uZ({ stone: C, availableSpots: l, containerSize: f }) {
47019
+ 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 });
47020
+ return y = [...rZ(Boolean, o)], y = aZ(y), { position: b, availableSpots: y };
46999
47021
  }
47000
- var lZ = ({ stones: C, containerSize: l }) => {
47022
+ var hZ = ({ stones: C, containerSize: l }) => {
47001
47023
  let f = { positions: [], containerHeight: 0, availableSpots: [] };
47002
47024
  if (!C.length) return f;
47003
47025
  let U = 0, b = [], S = [{ top: 0, left: 0, right: l }];
47004
47026
  for (let y of C) {
47005
- let o = aZ({ availableSpots: S, stone: y, containerSize: l }), V = o.position.top + y.height;
47027
+ let o = uZ({ availableSpots: S, stone: y, containerSize: l }), V = o.position.top + y.height;
47006
47028
  U < V && (U = V), b.push(o.position), S = o.availableSpots;
47007
47029
  }
47008
47030
  return { availableSpots: S, positions: b, containerHeight: U };
47009
- }, cZ = (C) => C.reduce((l, f) => {
47031
+ }, pZ = (C) => C.reduce((l, f) => {
47010
47032
  if (!f) return l;
47011
47033
  let U = f.getBoundingClientRect();
47012
47034
  return l.push({ width: U.width, height: U.height }), l;
47013
- }, []), dZ = ({ boxesRefs: C, wrapperRef: l, children: f, windowWidth: U, wrapperWidth: b }) => {
47035
+ }, []), BZ = ({ boxesRefs: C, wrapperRef: l, children: f, windowWidth: U, wrapperWidth: b }) => {
47014
47036
  let [{ positions: S, containerHeight: y, stones: o, availableSpots: V }, E] = We({ positions: [], containerHeight: null, stones: [], availableSpots: [] });
47015
47037
  return It(() => {
47016
47038
  var T, K;
47017
- let N = cZ(C.current), j = (K = (T = l.current) == null ? void 0 : T.offsetWidth) != null ? K : 0;
47039
+ let N = pZ(C.current), j = (K = (T = l.current) == null ? void 0 : T.offsetWidth) != null ? K : 0;
47018
47040
  if (j === null) return;
47019
- let $ = lZ({ stones: N, containerSize: j });
47041
+ let $ = hZ({ stones: N, containerSize: j });
47020
47042
  E(wd(In({}, $), { stones: N }));
47021
47043
  }, [f, C, l, U, b]), { positions: S, containerHeight: y, stones: o, availableSpots: V };
47022
- }, uZ = (C) => ({ fade: `${C}ms opacity ease`, fadeMove: `
47044
+ }, fZ = (C) => ({ fade: `${C}ms opacity ease`, fadeMove: `
47023
47045
  ${C}ms opacity ease,
47024
47046
  ${C}ms top ease,
47025
47047
  ${C}ms left ease
47026
47048
  `, move: `
47027
47049
  ${C}ms top ease,
47028
47050
  ${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) {
47051
+ ` }), 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 }));
47052
+ function QZ(C, l, f) {
47031
47053
  let U;
47032
47054
  return function(...b) {
47033
47055
  U && clearTimeout(U), U = setTimeout(function() {
@@ -47035,8 +47057,8 @@ function fZ(C, l, f) {
47035
47057
  }, l);
47036
47058
  };
47037
47059
  }
47038
- var mZ = () => {
47039
- let [C, l] = We(), f = Ee(fZ(l, 300));
47060
+ var yZ = () => {
47061
+ let [C, l] = We(), f = Ee(QZ(l, 300));
47040
47062
  return It(() => {
47041
47063
  let U = () => {
47042
47064
  f.current(window.innerWidth);
@@ -47045,7 +47067,7 @@ var mZ = () => {
47045
47067
  window.removeEventListener("resize", U);
47046
47068
  };
47047
47069
  }, []), C;
47048
- }, FZ = (C) => {
47070
+ }, wZ = (C) => {
47049
47071
  let [l, f] = We(null);
47050
47072
  return It(() => {
47051
47073
  let U = new ResizeObserver((b) => {
@@ -47055,18 +47077,18 @@ var mZ = () => {
47055
47077
  U.disconnect();
47056
47078
  };
47057
47079
  }, [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);
47080
+ }, bZ = (C) => {
47081
+ 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"]);
47082
+ 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
47083
  return p("div", wd(In({ ref: E, style: $ }, o), { children: Up.map(f, (X, L) => {
47062
47084
  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 };
47085
+ let ie = { style: UZ({ style: X.props.style, position: N[L], transition: b, transitionDuration: S }), ref: (Z) => V.current[L] = Z };
47064
47086
  return LU(X, In(In({}, X.props), ie));
47065
47087
  }) }));
47066
47088
  };
47067
- const QZ = { sm: 340, md: 480, lg: 640 }, mU = bg(
47089
+ const xZ = { sm: 340, md: 480, lg: 640 }, mU = bg(
47068
47090
  function({ children: l, widgetWidth: f = "sm" }, U) {
47069
- const b = QZ[f], [S, y] = We(), o = Up.toArray(l), V = Ee(null);
47091
+ const b = xZ[f], [S, y] = We(), o = Up.toArray(l), V = Ee(null);
47070
47092
  return It(() => {
47071
47093
  const E = () => {
47072
47094
  const T = V.current?.offsetWidth;
@@ -47075,7 +47097,7 @@ const QZ = { sm: 340, md: 480, lg: 640 }, mU = bg(
47075
47097
  return E(), window.addEventListener("resize", E), () => {
47076
47098
  window.removeEventListener("resize", E);
47077
47099
  };
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(
47100
+ }, [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
47101
  "div",
47080
47102
  {
47081
47103
  style: {
@@ -47087,7 +47109,7 @@ const QZ = { sm: 340, md: 480, lg: 640 }, mU = bg(
47087
47109
  T
47088
47110
  )) }, S) }) }) });
47089
47111
  }
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(
47112
+ ), 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
47113
  bg(function({ children: l }, f) {
47092
47114
  return /* @__PURE__ */ p(td, { ref: f, showBar: !1, children: /* @__PURE__ */ p(FU, { children: l }) });
47093
47115
  }),
@@ -47097,7 +47119,7 @@ const QZ = { sm: 340, md: 480, lg: 640 }, mU = bg(
47097
47119
  /* @__PURE__ */ p(or.Skeleton, {})
47098
47120
  ] }) })
47099
47121
  );
47100
- function wZ({
47122
+ function _Z({
47101
47123
  title: C,
47102
47124
  description: l,
47103
47125
  emoji: f,
@@ -47117,8 +47139,8 @@ function wZ({
47117
47139
  }
47118
47140
  );
47119
47141
  }
47120
- const $N = VI(
47121
- jg("WidgetEmptyState", wZ)
47142
+ const IK = VI(
47143
+ jg("WidgetEmptyState", _Z)
47122
47144
  ), $y = bg(
47123
47145
  ({ title: C, children: l }, f) => (I_(
47124
47146
  C,
@@ -47130,9 +47152,9 @@ const $N = VI(
47130
47152
  ] }))
47131
47153
  );
47132
47154
  $y.displayName = "WidgetSection";
47133
- const eK = VI(
47155
+ const iK = VI(
47134
47156
  jg("WidgetSection", $y)
47135
- ), tK = ({
47157
+ ), nK = ({
47136
47158
  identifier: C,
47137
47159
  allowedRoutes: l,
47138
47160
  disallowedRoutes: f,
@@ -47143,7 +47165,7 @@ const eK = VI(
47143
47165
  return l && l.length > 0 && (V += ` Allowed routes: ${l.join(", ")}`), f && f.length > 0 && (V += ` Disallowed routes: ${f.join(", ")}`), V;
47144
47166
  }, [C, l, f]);
47145
47167
  return y ? U : (b && console.error(o), null);
47146
- }, gK = VI(
47168
+ }, CK = VI(
47147
47169
  Wn(
47148
47170
  {
47149
47171
  name: "ScrollArea",
@@ -47157,29 +47179,29 @@ export {
47157
47179
  GS as A,
47158
47180
  TR as B,
47159
47181
  zR as C,
47160
- tN as D,
47161
- XZ as E,
47162
- NZ as F,
47163
- gN as G,
47164
- eN as H,
47182
+ nN as D,
47183
+ tN as E,
47184
+ zZ as F,
47185
+ CN as G,
47186
+ iN as H,
47165
47187
  cr as I,
47166
- iN as J,
47167
- nN as K,
47188
+ rN as J,
47189
+ AN as K,
47168
47190
  oS as L,
47169
47191
  Dp as M,
47170
- PZ as N,
47171
- IN as O,
47172
- EZ as P,
47173
- GZ as Q,
47192
+ kZ as N,
47193
+ oN as O,
47194
+ NZ as P,
47195
+ ZZ as Q,
47174
47196
  HR as R,
47175
- gK as S,
47197
+ CK as S,
47176
47198
  US as T,
47177
- CN as U,
47178
- oN as V,
47179
- rN as W,
47199
+ sN as U,
47200
+ aN as V,
47201
+ lN as W,
47180
47202
  B2 as X,
47181
- AN as Y,
47182
- sN as Z,
47203
+ cN as Y,
47204
+ dN as Z,
47183
47205
  y2 as _,
47184
47206
  ES as a,
47185
47207
  Qd as a$,
@@ -47187,101 +47209,101 @@ export {
47187
47209
  b2 as a1,
47188
47210
  Jc as a2,
47189
47211
  M2 as a3,
47190
- aN as a4,
47191
- lN as a5,
47192
- cN as a6,
47193
- dN as a7,
47194
- uN as a8,
47212
+ uN as a4,
47213
+ hN as a5,
47214
+ pN as a6,
47215
+ BN as a7,
47216
+ fN as a8,
47195
47217
  U2 as a9,
47196
- PN as aA,
47197
- jE as aB,
47198
- GN as aC,
47218
+ kN as aA,
47219
+ XE as aB,
47220
+ ZN as aC,
47199
47221
  CU as aD,
47200
47222
  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,
47223
+ NN as aF,
47224
+ KN as aG,
47225
+ WN as aH,
47226
+ YN as aI,
47227
+ zN as aJ,
47228
+ JN as aK,
47229
+ $N as aL,
47208
47230
  Ky as aM,
47209
47231
  Ny as aN,
47210
47232
  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,
47233
+ WT as aP,
47234
+ HN as aQ,
47235
+ LT as aR,
47236
+ ON as aS,
47237
+ jN as aT,
47238
+ LN as aU,
47217
47239
  Ud as aV,
47218
47240
  Ec as aW,
47219
- HN as aX,
47220
- ON as aY,
47241
+ XN as aX,
47242
+ qN as aY,
47221
47243
  Yy as aZ,
47222
- jT as a_,
47223
- hN as aa,
47244
+ XT as a_,
47245
+ mN as aa,
47224
47246
  Nh as ab,
47225
- pN as ac,
47247
+ FN as ac,
47226
47248
  wF as ad,
47227
- BN as ae,
47228
- kZ as af,
47229
- UN as ag,
47230
- FN as ah,
47249
+ UN as ae,
47250
+ WZ as af,
47251
+ bN as ag,
47252
+ wN as ah,
47231
47253
  dr as ai,
47232
- fN as aj,
47233
- mN as ak,
47254
+ QN as aj,
47255
+ yN as ak,
47234
47256
  Hc as al,
47235
47257
  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,
47258
+ xN as an,
47259
+ DN as ao,
47260
+ _N as ap,
47261
+ SN as aq,
47262
+ vN as ar,
47263
+ RN as as,
47264
+ MN as at,
47265
+ VN as au,
47266
+ PN as av,
47267
+ GN as aw,
47268
+ EN as ax,
47247
47269
  zc as ay,
47248
- VN as az,
47249
- KZ as b,
47270
+ TN as az,
47271
+ JZ as b,
47250
47272
  zy as b0,
47251
- ek as b1,
47273
+ gk as b1,
47252
47274
  yd as b2,
47253
- nk as b3,
47275
+ ok as b3,
47254
47276
  uU as b4,
47255
- Ak as b5,
47277
+ ak as b5,
47256
47278
  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,
47279
+ eK as b7,
47280
+ tK as b8,
47281
+ gK as b9,
47282
+ IK as ba,
47283
+ iK as bb,
47284
+ nK as bc,
47285
+ HZ as c,
47286
+ jZ as d,
47287
+ OZ as e,
47288
+ YZ as f,
47289
+ TZ as g,
47290
+ EZ as h,
47291
+ LZ as i,
47292
+ qZ as j,
47271
47293
  uR as k,
47272
- HZ as l,
47294
+ XZ as l,
47273
47295
  EA as m,
47274
47296
  f0 as n,
47275
47297
  m0 as o,
47276
47298
  Pv as p,
47277
- jZ as q,
47278
- LZ as r,
47279
- TZ as s,
47299
+ $Z as q,
47300
+ eN as r,
47301
+ KZ as s,
47280
47302
  kR as t,
47281
47303
  ad as u,
47282
- qZ as v,
47304
+ gN as v,
47283
47305
  YR as w,
47284
- $Z as x,
47306
+ IN as x,
47285
47307
  $R as y,
47286
47308
  e2 as z
47287
47309
  };