@fileverse-dev/ddoc 3.0.96-zustand-47 → 3.0.96-zustand-49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.es.js +200 -181
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -4,7 +4,7 @@ var ct = (e, t, n) => wQ(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as Cn from "react";
5
5
  import xt, { createRef as DQ, memo as I1, createContext as _d, createElement as T2, useContext as Ad, version as DC, useRef as Ne, useState as Be, useDebugValue as QD, useEffect as Ae, forwardRef as sr, useLayoutEffect as Ch, useCallback as je, useMemo as wt, Fragment as kQ, useReducer as EQ, cloneElement as DI, useImperativeHandle as kI } from "react";
6
6
  import EI, { flushSync as CQ, createPortal as Ry } from "react-dom";
7
- import { Drawer as CI, DrawerContent as _Q, DrawerHeader as AQ, DrawerTitle as SQ, DrawerClose as TQ, LucideIcon as Le, useTheme as jQ, Button as Tt, TextField as Su, DynamicDropdown as Ar, Tooltip as ln, IconButton as sn, Dialog as BQ, DialogContent as NQ, cn as qe, DialogHeader as MQ, DialogTitle as OQ, DialogFooter as IQ, DialogClose as RQ, Avatar as Sd, Skeleton as xr, TextAreaFieldV2 as Qc, DynamicModal as ek, Select as ed, SelectTrigger as td, SelectValue as $p, SelectContent as nd, SelectItem as rd, DynamicDropdownV2 as Ly, Popover as k0, PopoverTrigger as E0, PopoverContent as C0, toast as tk, ButtonGroup as LQ, Divider as Hp, UltimateIcons as UQ, PopoverClose as _I, SelectGroup as AI, SelectLabel as PQ, Checkbox as zQ, DrawerTrigger as kC, AnimatedLoader as $Q, Label as HQ, DynamicDrawerV2 as WQ, BottomDrawer as qQ, Tag as j2, TagInput as SI } from "@fileverse/ui";
7
+ import { Drawer as CI, DrawerContent as _Q, DrawerHeader as AQ, DrawerTitle as SQ, DrawerClose as TQ, LucideIcon as Le, useTheme as jQ, Button as Tt, TextField as Su, DynamicDropdown as Ar, Tooltip as ln, IconButton as sn, Dialog as BQ, DialogContent as NQ, cn as We, DialogHeader as MQ, DialogTitle as OQ, DialogFooter as IQ, DialogClose as RQ, Avatar as Sd, Skeleton as xr, TextAreaFieldV2 as Qc, DynamicModal as ek, Select as ed, SelectTrigger as td, SelectValue as $p, SelectContent as nd, SelectItem as rd, DynamicDropdownV2 as Ly, Popover as k0, PopoverTrigger as E0, PopoverContent as C0, toast as tk, ButtonGroup as LQ, Divider as Hp, UltimateIcons as UQ, PopoverClose as _I, SelectGroup as AI, SelectLabel as PQ, Checkbox as zQ, DrawerTrigger as kC, AnimatedLoader as $Q, Label as HQ, DynamicDrawerV2 as WQ, BottomDrawer as qQ, Tag as j2, TagInput as SI } from "@fileverse/ui";
8
8
  import { isAddress as VQ, createPublicClient as GQ, http as KQ } from "viem";
9
9
  import { mainnet as XQ } from "viem/chains";
10
10
  import { motion as rl, AnimatePresence as _h, MotionConfig as YQ } from "framer-motion";
@@ -51598,7 +51598,7 @@ const s0 = (e) => {
51598
51598
  children: /* @__PURE__ */ F.jsxs(
51599
51599
  NQ,
51600
51600
  {
51601
- className: qe(" !max-w-[336px] border-radius-xlg ## !rounded-[16px]"),
51601
+ className: We(" !max-w-[336px] border-radius-xlg ## !rounded-[16px]"),
51602
51602
  dismissable: !1,
51603
51603
  children: [
51604
51604
  /* @__PURE__ */ F.jsx(MQ, { className: "space-md border-b-[1px]", children: /* @__PURE__ */ F.jsx(OQ, { className: "", children: /* @__PURE__ */ F.jsxs("div", { className: "flex items-center gap-4", children: [
@@ -51644,7 +51644,7 @@ const s0 = (e) => {
51644
51644
  ) : /* @__PURE__ */ F.jsxs(
51645
51645
  "div",
51646
51646
  {
51647
- className: qe(
51647
+ className: We(
51648
51648
  "absolute inset-0 z-10 flex flex-col rounded-[12px] items-center justify-center gap-[12px] bg-black/75",
51649
51649
  o
51650
51650
  ),
@@ -51812,7 +51812,7 @@ const s0 = (e) => {
51812
51812
  return /* @__PURE__ */ F.jsxs(
51813
51813
  "div",
51814
51814
  {
51815
- className: qe(
51815
+ className: We(
51816
51816
  "flex group relative flex-col gap-2 p-[4px]",
51817
51817
  l && "min-h-[100px]"
51818
51818
  ),
@@ -51923,7 +51923,7 @@ const s0 = (e) => {
51923
51923
  "div",
51924
51924
  {
51925
51925
  ref: h,
51926
- className: qe(
51926
+ className: We(
51927
51927
  "flex flex-col gap-3 px-3 group comment-card",
51928
51928
  !d && "!px-6",
51929
51929
  d && "py-3"
@@ -51942,7 +51942,7 @@ const s0 = (e) => {
51942
51942
  ref: h,
51943
51943
  "data-testid": a ? `comment-card-${a}` : "comment-card",
51944
51944
  onClick: y,
51945
- className: qe(
51945
+ className: We(
51946
51946
  "flex flex-col gap-[4px] group comment-card",
51947
51947
  o && "opacity-70",
51948
51948
  c ? "p-3 pb-0" : "px-3"
@@ -51960,7 +51960,7 @@ const s0 = (e) => {
51960
51960
  children: /* @__PURE__ */ F.jsxs(
51961
51961
  "div",
51962
51962
  {
51963
- className: qe(
51963
+ className: We(
51964
51964
  !C && "opacity-0 group-hover:opacity-100",
51965
51965
  "flex gap-[4px]"
51966
51966
  ),
@@ -52043,7 +52043,7 @@ const s0 = (e) => {
52043
52043
  variant: "ghost",
52044
52044
  disabled: !0,
52045
52045
  size: "sm",
52046
- className: qe(
52046
+ className: We(
52047
52047
  "opacity-0 group-hover:opacity-100 transition-opacity duration-300 disabled:bg-transparent"
52048
52048
  )
52049
52049
  }
@@ -52052,7 +52052,7 @@ const s0 = (e) => {
52052
52052
  /* @__PURE__ */ F.jsx(
52053
52053
  "div",
52054
52054
  {
52055
- className: qe(
52055
+ className: We(
52056
52056
  "flex flex-col gap-2 pl-[18px] custom-border py-0",
52057
52057
  (C ? B : z.length > 0) ? "border-l ml-[13px]" : "ml-[15px]"
52058
52058
  ),
@@ -52091,7 +52091,7 @@ const s0 = (e) => {
52091
52091
  "div",
52092
52092
  {
52093
52093
  onClick: v,
52094
- className: qe(
52094
+ className: We(
52095
52095
  "text-helper-text-sm color-text-secondary min-h-[28px] mb-[4px] hover:underline custom-border cursor-pointer flex items-center gap-2 pr-[8px] pl-[4px]",
52096
52096
  !M && "justify-center mt-[4px]"
52097
52097
  ),
@@ -52267,7 +52267,7 @@ const s0 = (e) => {
52267
52267
  icon: "Ellipsis",
52268
52268
  variant: "ghost",
52269
52269
  disabled: n,
52270
- className: qe({
52270
+ className: We({
52271
52271
  "!bg-transparent": n
52272
52272
  })
52273
52273
  }
@@ -52308,7 +52308,7 @@ const s0 = (e) => {
52308
52308
  icon: p != null && p.resolved ? "CircleCheck2" : "CircleCheck",
52309
52309
  variant: "ghost",
52310
52310
  disabled: n,
52311
- className: qe({
52311
+ className: We({
52312
52312
  "!bg-transparent": n
52313
52313
  }),
52314
52314
  onClick: () => p != null && p.resolved ? S(e) : C(e)
@@ -52625,7 +52625,7 @@ const s0 = (e) => {
52625
52625
  shift: !0
52626
52626
  },
52627
52627
  shouldShow: Fbe,
52628
- className: qe(
52628
+ className: We(
52629
52629
  "flex gap-2 overflow-hidden rounded-lg min-w-fit w-full p-1 border color-bg-default items-center shadow-elevation-3",
52630
52630
  S || k === Ye.LINK_POPUP || M ? "!invisible" : "!visible",
52631
52631
  x ? "!-translate-y-[120%]" : ""
@@ -52637,7 +52637,7 @@ const s0 = (e) => {
52637
52637
  children: x ? /* @__PURE__ */ F.jsx(
52638
52638
  "div",
52639
52639
  {
52640
- className: qe(
52640
+ className: We(
52641
52641
  "relative",
52642
52642
  S ? "left-1/2 translate-x-1/2" : ""
52643
52643
  ),
@@ -53086,7 +53086,7 @@ const Fb = Bt.create({
53086
53086
  return u;
53087
53087
  }, r9 = sr(
53088
53088
  ({ children: e, className: t, withShadow: n = !0, withBorder: r = !1, ...o }, i) => {
53089
- const s = qe(
53089
+ const s = We(
53090
53090
  t,
53091
53091
  "color-bg-default rounded",
53092
53092
  n ? "shadow-lg" : "",
@@ -53646,7 +53646,7 @@ ${M.getHTML()}`
53646
53646
  variant: "ghost",
53647
53647
  size: "sm",
53648
53648
  isActive: e,
53649
- className: qe(
53649
+ className: We(
53650
53650
  "color-text-default",
53651
53651
  e && "dark:text-[#363B3F]"
53652
53652
  ),
@@ -53702,7 +53702,7 @@ ${M.getHTML()}`
53702
53702
  const T = k(j.title);
53703
53703
  B(T || void 0);
53704
53704
  },
53705
- className: qe(
53705
+ className: We(
53706
53706
  "min-h-8 rounded p-2 w-full text-left flex items-center justify-between transition text-body-sm",
53707
53707
  j != null && j.disabled ? "opacity-50 cursor-not-allowed" : "hover:color-bg-default-hover"
53708
53708
  ),
@@ -55139,7 +55139,7 @@ Vo.prototype = {
55139
55139
  return o.j[e] = s, s;
55140
55140
  }
55141
55141
  };
55142
- const Vt = (e, t, n, r, o) => e.ta(t, n, r, o), Zn = (e, t, n, r, o) => e.tr(t, n, r, o), DT = (e, t, n, r, o) => e.ts(t, n, r, o), We = (e, t, n, r, o) => e.tt(t, n, r, o), Va = "WORD", Ow = "UWORD", OH = "ASCIINUMERICAL", IH = "ALPHANUMERICAL", c1 = "LOCALHOST", Iw = "TLD", Rw = "UTLD", m2 = "SCHEME", pp = "SLASH_SCHEME", s9 = "NUM", Lw = "WS", a9 = "NL", l0 = "OPENBRACE", u0 = "CLOSEBRACE", kb = "OPENBRACKET", Eb = "CLOSEBRACKET", Cb = "OPENPAREN", _b = "CLOSEPAREN", Ab = "OPENANGLEBRACKET", Sb = "CLOSEANGLEBRACKET", Tb = "FULLWIDTHLEFTPAREN", jb = "FULLWIDTHRIGHTPAREN", Bb = "LEFTCORNERBRACKET", Nb = "RIGHTCORNERBRACKET", Mb = "LEFTWHITECORNERBRACKET", Ob = "RIGHTWHITECORNERBRACKET", Ib = "FULLWIDTHLESSTHAN", Rb = "FULLWIDTHGREATERTHAN", Lb = "AMPERSAND", Ub = "APOSTROPHE", Pb = "ASTERISK", Jl = "AT", zb = "BACKSLASH", $b = "BACKTICK", Hb = "CARET", su = "COLON", l9 = "COMMA", Wb = "DOLLAR", Gs = "DOT", qb = "EQUALS", u9 = "EXCLAMATION", Ri = "HYPHEN", c0 = "PERCENT", Vb = "PIPE", Gb = "PLUS", Kb = "POUND", d0 = "QUERY", c9 = "QUOTE", RH = "FULLWIDTHMIDDLEDOT", d9 = "SEMI", Ks = "SLASH", p0 = "TILDE", Xb = "UNDERSCORE", LH = "EMOJI", Yb = "SYM";
55142
+ const Vt = (e, t, n, r, o) => e.ta(t, n, r, o), Zn = (e, t, n, r, o) => e.tr(t, n, r, o), DT = (e, t, n, r, o) => e.ts(t, n, r, o), qe = (e, t, n, r, o) => e.tt(t, n, r, o), Va = "WORD", Ow = "UWORD", OH = "ASCIINUMERICAL", IH = "ALPHANUMERICAL", c1 = "LOCALHOST", Iw = "TLD", Rw = "UTLD", m2 = "SCHEME", pp = "SLASH_SCHEME", s9 = "NUM", Lw = "WS", a9 = "NL", l0 = "OPENBRACE", u0 = "CLOSEBRACE", kb = "OPENBRACKET", Eb = "CLOSEBRACKET", Cb = "OPENPAREN", _b = "CLOSEPAREN", Ab = "OPENANGLEBRACKET", Sb = "CLOSEANGLEBRACKET", Tb = "FULLWIDTHLEFTPAREN", jb = "FULLWIDTHRIGHTPAREN", Bb = "LEFTCORNERBRACKET", Nb = "RIGHTCORNERBRACKET", Mb = "LEFTWHITECORNERBRACKET", Ob = "RIGHTWHITECORNERBRACKET", Ib = "FULLWIDTHLESSTHAN", Rb = "FULLWIDTHGREATERTHAN", Lb = "AMPERSAND", Ub = "APOSTROPHE", Pb = "ASTERISK", Jl = "AT", zb = "BACKSLASH", $b = "BACKTICK", Hb = "CARET", su = "COLON", l9 = "COMMA", Wb = "DOLLAR", Gs = "DOT", qb = "EQUALS", u9 = "EXCLAMATION", Ri = "HYPHEN", c0 = "PERCENT", Vb = "PIPE", Gb = "PLUS", Kb = "POUND", d0 = "QUERY", c9 = "QUOTE", RH = "FULLWIDTHMIDDLEDOT", d9 = "SEMI", Ks = "SLASH", p0 = "TILDE", Xb = "UNDERSCORE", LH = "EMOJI", Yb = "SYM";
55143
55143
  var UH = /* @__PURE__ */ Object.freeze({
55144
55144
  __proto__: null,
55145
55145
  ALPHANUMERICAL: IH,
@@ -55205,7 +55205,7 @@ function xye(e = []) {
55205
55205
  const t = {};
55206
55206
  Vo.groups = t;
55207
55207
  const n = new Vo();
55208
- cm == null && (cm = ET(dye)), dm == null && (dm = ET(pye)), We(n, "'", Ub), We(n, "{", l0), We(n, "}", u0), We(n, "[", kb), We(n, "]", Eb), We(n, "(", Cb), We(n, ")", _b), We(n, "<", Ab), We(n, ">", Sb), We(n, "(", Tb), We(n, ")", jb), We(n, "「", Bb), We(n, "」", Nb), We(n, "『", Mb), We(n, "』", Ob), We(n, "<", Ib), We(n, ">", Rb), We(n, "&", Lb), We(n, "*", Pb), We(n, "@", Jl), We(n, "`", $b), We(n, "^", Hb), We(n, ":", su), We(n, ",", l9), We(n, "$", Wb), We(n, ".", Gs), We(n, "=", qb), We(n, "!", u9), We(n, "-", Ri), We(n, "%", c0), We(n, "|", Vb), We(n, "+", Gb), We(n, "#", Kb), We(n, "?", d0), We(n, '"', c9), We(n, "/", Ks), We(n, ";", d9), We(n, "~", p0), We(n, "_", Xb), We(n, "\\", zb), We(n, "・", RH);
55208
+ cm == null && (cm = ET(dye)), dm == null && (dm = ET(pye)), qe(n, "'", Ub), qe(n, "{", l0), qe(n, "}", u0), qe(n, "[", kb), qe(n, "]", Eb), qe(n, "(", Cb), qe(n, ")", _b), qe(n, "<", Ab), qe(n, ">", Sb), qe(n, "(", Tb), qe(n, ")", jb), qe(n, "「", Bb), qe(n, "」", Nb), qe(n, "『", Mb), qe(n, "』", Ob), qe(n, "<", Ib), qe(n, ">", Rb), qe(n, "&", Lb), qe(n, "*", Pb), qe(n, "@", Jl), qe(n, "`", $b), qe(n, "^", Hb), qe(n, ":", su), qe(n, ",", l9), qe(n, "$", Wb), qe(n, ".", Gs), qe(n, "=", qb), qe(n, "!", u9), qe(n, "-", Ri), qe(n, "%", c0), qe(n, "|", Vb), qe(n, "+", Gb), qe(n, "#", Kb), qe(n, "?", d0), qe(n, '"', c9), qe(n, "/", Ks), qe(n, ";", d9), qe(n, "~", p0), qe(n, "_", Xb), qe(n, "\\", zb), qe(n, "・", RH);
55209
55209
  const r = Zn(n, Ua, s9, {
55210
55210
  [jw]: !0
55211
55211
  });
@@ -55222,20 +55222,20 @@ function xye(e = []) {
55222
55222
  [Nw]: !0
55223
55223
  });
55224
55224
  Zn(a, La), Zn(a, Ua, i), Zn(a, mf, a), Zn(i, Ua, i), Zn(i, La), Zn(i, mf, i);
55225
- const l = We(n, C4, a9, {
55225
+ const l = qe(n, C4, a9, {
55226
55226
  [D4]: !0
55227
- }), u = We(n, kT, Lw, {
55227
+ }), u = qe(n, kT, Lw, {
55228
55228
  [D4]: !0
55229
55229
  }), c = Zn(n, E4, Lw, {
55230
55230
  [D4]: !0
55231
55231
  });
55232
- We(n, _4, c), We(u, C4, l), We(u, _4, c), Zn(u, E4, c), We(c, kT), We(c, C4), Zn(c, E4, c), We(c, _4, c);
55232
+ qe(n, _4, c), qe(u, C4, l), qe(u, _4, c), Zn(u, E4, c), qe(c, kT), qe(c, C4), Zn(c, E4, c), qe(c, _4, c);
55233
55233
  const d = Zn(n, k4, LH, {
55234
55234
  [MH]: !0
55235
55235
  });
55236
- We(d, "#"), Zn(d, k4, d), We(d, bye, d);
55237
- const p = We(d, yye);
55238
- We(p, "#"), Zn(p, k4, d);
55236
+ qe(d, "#"), Zn(d, k4, d), qe(d, bye, d);
55237
+ const p = qe(d, yye);
55238
+ qe(p, "#"), Zn(p, k4, d);
55239
55239
  const h = [[La, s], [Ua, o]], f = [[La, null], [mf, a], [Ua, i]];
55240
55240
  for (let g = 0; g < cm.length; g++)
55241
55241
  $l(n, cm[g], Iw, Va, h);
@@ -55561,34 +55561,34 @@ const _T = Rx("email", {
55561
55561
  function wye({
55562
55562
  groups: e
55563
55563
  }) {
55564
- const t = e.domain.concat([Lb, Pb, Jl, zb, $b, Hb, Wb, qb, Ri, s9, c0, Vb, Gb, Kb, Ks, Yb, p0, Xb]), n = [Ub, su, l9, Gs, u9, c0, d0, c9, d9, Ab, Sb, l0, u0, Eb, kb, Cb, _b, Tb, jb, Bb, Nb, Mb, Ob, Ib, Rb], r = [Lb, Ub, Pb, zb, $b, Hb, Wb, qb, Ri, l0, u0, c0, Vb, Gb, Kb, d0, Ks, Yb, p0, Xb], o = Ni(), i = We(o, p0);
55564
+ const t = e.domain.concat([Lb, Pb, Jl, zb, $b, Hb, Wb, qb, Ri, s9, c0, Vb, Gb, Kb, Ks, Yb, p0, Xb]), n = [Ub, su, l9, Gs, u9, c0, d0, c9, d9, Ab, Sb, l0, u0, Eb, kb, Cb, _b, Tb, jb, Bb, Nb, Mb, Ob, Ib, Rb], r = [Lb, Ub, Pb, zb, $b, Hb, Wb, qb, Ri, l0, u0, c0, Vb, Gb, Kb, d0, Ks, Yb, p0, Xb], o = Ni(), i = qe(o, p0);
55565
55565
  Vt(i, r, i), Vt(i, e.domain, i);
55566
55566
  const s = Ni(), a = Ni(), l = Ni();
55567
55567
  Vt(o, e.domain, s), Vt(o, e.scheme, a), Vt(o, e.slashscheme, l), Vt(s, r, i), Vt(s, e.domain, s);
55568
- const u = We(s, Jl);
55569
- We(i, Jl, u), We(a, Jl, u), We(l, Jl, u);
55570
- const c = We(i, Gs);
55568
+ const u = qe(s, Jl);
55569
+ qe(i, Jl, u), qe(a, Jl, u), qe(l, Jl, u);
55570
+ const c = qe(i, Gs);
55571
55571
  Vt(c, r, i), Vt(c, e.domain, i);
55572
55572
  const d = Ni();
55573
55573
  Vt(u, e.domain, d), Vt(d, e.domain, d);
55574
- const p = We(d, Gs);
55574
+ const p = qe(d, Gs);
55575
55575
  Vt(p, e.domain, d);
55576
55576
  const h = Ni(_T);
55577
- Vt(p, e.tld, h), Vt(p, e.utld, h), We(u, c1, h);
55578
- const f = We(d, Ri);
55579
- We(f, Ri, f), Vt(f, e.domain, d), Vt(h, e.domain, d), We(h, Gs, p), We(h, Ri, f);
55580
- const g = We(h, su);
55577
+ Vt(p, e.tld, h), Vt(p, e.utld, h), qe(u, c1, h);
55578
+ const f = qe(d, Ri);
55579
+ qe(f, Ri, f), Vt(f, e.domain, d), Vt(h, e.domain, d), qe(h, Gs, p), qe(h, Ri, f);
55580
+ const g = qe(h, su);
55581
55581
  Vt(g, e.numeric, _T);
55582
- const m = We(s, Ri), b = We(s, Gs);
55583
- We(m, Ri, m), Vt(m, e.domain, s), Vt(b, r, i), Vt(b, e.domain, s);
55582
+ const m = qe(s, Ri), b = qe(s, Gs);
55583
+ qe(m, Ri, m), Vt(m, e.domain, s), Vt(b, r, i), Vt(b, e.domain, s);
55584
55584
  const y = Ni(pm);
55585
- Vt(b, e.tld, y), Vt(b, e.utld, y), Vt(y, e.domain, s), Vt(y, r, i), We(y, Gs, b), We(y, Ri, m), We(y, Jl, u);
55586
- const x = We(y, su), v = Ni(pm);
55585
+ Vt(b, e.tld, y), Vt(b, e.utld, y), Vt(y, e.domain, s), Vt(y, r, i), qe(y, Gs, b), qe(y, Ri, m), qe(y, Jl, u);
55586
+ const x = qe(y, su), v = Ni(pm);
55587
55587
  Vt(x, e.numeric, v);
55588
55588
  const D = Ni(pm), w = Ni();
55589
- Vt(D, t, D), Vt(D, n, w), Vt(w, t, D), Vt(w, n, w), We(y, Ks, D), We(v, Ks, D);
55590
- const k = We(a, su), C = We(l, su), S = We(C, Ks), B = We(S, Ks);
55591
- Vt(a, e.domain, s), We(a, Gs, b), We(a, Ri, m), Vt(l, e.domain, s), We(l, Gs, b), We(l, Ri, m), Vt(k, e.domain, D), We(k, Ks, D), We(k, d0, D), Vt(B, e.domain, D), Vt(B, t, D), We(B, Ks, D);
55589
+ Vt(D, t, D), Vt(D, n, w), Vt(w, t, D), Vt(w, n, w), qe(y, Ks, D), qe(v, Ks, D);
55590
+ const k = qe(a, su), C = qe(l, su), S = qe(C, Ks), B = qe(S, Ks);
55591
+ Vt(a, e.domain, s), qe(a, Gs, b), qe(a, Ri, m), Vt(l, e.domain, s), qe(l, Gs, b), qe(l, Ri, m), Vt(k, e.domain, D), qe(k, Ks, D), qe(k, d0, D), Vt(B, e.domain, D), Vt(B, t, D), qe(B, Ks, D);
55592
55592
  const j = [
55593
55593
  [l0, u0],
55594
55594
  // {}
@@ -55608,14 +55608,14 @@ function wye({
55608
55608
  // <>
55609
55609
  ];
55610
55610
  for (let A = 0; A < j.length; A++) {
55611
- const [M, E] = j[A], O = We(D, M);
55612
- We(w, M, O), We(O, E, D);
55611
+ const [M, E] = j[A], O = qe(D, M);
55612
+ qe(w, M, O), qe(O, E, D);
55613
55613
  const T = Ni(pm);
55614
55614
  Vt(O, t, T);
55615
55615
  const z = Ni();
55616
- Vt(O, n), Vt(T, t, T), Vt(T, n, z), Vt(z, t, T), Vt(z, n, z), We(T, E, D), We(z, E, D);
55616
+ Vt(O, n), Vt(T, t, T), Vt(T, n, z), Vt(z, t, T), Vt(z, n, z), qe(T, E, D), qe(z, E, D);
55617
55617
  }
55618
- return We(o, c1, y), We(o, a9, Fye), {
55618
+ return qe(o, c1, y), qe(o, a9, Fye), {
55619
55619
  start: o,
55620
55620
  tokens: UH
55621
55621
  };
@@ -63793,7 +63793,7 @@ const $4e = (e) => {
63793
63793
  {
63794
63794
  name: "ChevronDown",
63795
63795
  size: "sm",
63796
- className: qe(o ? "rotate-180" : "")
63796
+ className: We(o ? "rotate-180" : "")
63797
63797
  }
63798
63798
  )
63799
63799
  ]
@@ -63864,7 +63864,7 @@ const G4e = xt.memo(
63864
63864
  ({ onClick: e, className: t }) => /* @__PURE__ */ F.jsx(
63865
63865
  "div",
63866
63866
  {
63867
- className: qe(t),
63867
+ className: We(t),
63868
63868
  contentEditable: !1,
63869
63869
  onClick: e,
63870
63870
  "data-test": "copy-heading-link-button",
@@ -64363,14 +64363,14 @@ const xFe = xt.memo(
64363
64363
  return g && f ? /* @__PURE__ */ F.jsx(
64364
64364
  pl,
64365
64365
  {
64366
- className: qe(
64366
+ className: We(
64367
64367
  "flex px-4 md:px-[80px] gap-2 group w-full relative justify-center items-start",
64368
64368
  C && "pointer-events-auto"
64369
64369
  ),
64370
64370
  children: /* @__PURE__ */ F.jsxs(
64371
64371
  "div",
64372
64372
  {
64373
- className: qe("node-view-content w-full relative", {
64373
+ className: We("node-view-content w-full relative", {
64374
64374
  "is-table": C,
64375
64375
  "invalid-content": (Z = e.attrs) == null ? void 0 : Z.isCorrupted,
64376
64376
  "pointer-events-none": f
@@ -64393,7 +64393,7 @@ const xFe = xt.memo(
64393
64393
  ) : /* @__PURE__ */ F.jsxs(
64394
64394
  pl,
64395
64395
  {
64396
- className: qe(
64396
+ className: We(
64397
64397
  "flex px-4 pl-2 md:pr-8 lg:pr-[80px] lg:pl-[8px] gap-2 group w-full relative justify-center items-center",
64398
64398
  C && "pointer-events-auto",
64399
64399
  v && "!hidden"
@@ -64402,7 +64402,7 @@ const xFe = xt.memo(
64402
64402
  /* @__PURE__ */ F.jsxs(
64403
64403
  "section",
64404
64404
  {
64405
- className: qe("flex gap-[2px] min-w-5 lg:min-w-16 justify-end"),
64405
+ className: We("flex gap-[2px] min-w-5 lg:min-w-16 justify-end"),
64406
64406
  "aria-label": "left-menu",
64407
64407
  contentEditable: !1,
64408
64408
  suppressContentEditableWarning: !0,
@@ -64412,7 +64412,7 @@ const xFe = xt.memo(
64412
64412
  K4e,
64413
64413
  {
64414
64414
  onClick: E,
64415
- className: qe(
64415
+ className: We(
64416
64416
  "d-block-button opacity-0 color-text-default hover:color-bg-default-hover aspect-square min-w-5",
64417
64417
  !f && "group-hover:opacity-100"
64418
64418
  )
@@ -64427,7 +64427,7 @@ const xFe = xt.memo(
64427
64427
  G4e,
64428
64428
  {
64429
64429
  onClick: z,
64430
- className: qe(
64430
+ className: We(
64431
64431
  "d-block-button opacity-0 color-text-default hover:color-bg-default-hover aspect-square min-w-5",
64432
64432
  !f && "group-hover:opacity-100"
64433
64433
  )
@@ -64442,7 +64442,7 @@ const xFe = xt.memo(
64442
64442
  {
64443
64443
  isCollapsed: x,
64444
64444
  onToggle: D,
64445
- className: qe(
64445
+ className: We(
64446
64446
  "d-block-button opacity-0 color-text-default hover:color-bg-default-hover aspect-square min-w-5",
64447
64447
  "group-hover:opacity-100",
64448
64448
  x || s ? "opacity-100" : "opacity-0"
@@ -64455,7 +64455,7 @@ const xFe = xt.memo(
64455
64455
  /* @__PURE__ */ F.jsxs(
64456
64456
  "div",
64457
64457
  {
64458
- className: qe(
64458
+ className: We(
64459
64459
  "node-view-content w-full relative self-center",
64460
64460
  {
64461
64461
  "is-table max-w-full lg:max-w-[90%]": C,
@@ -64478,7 +64478,7 @@ const xFe = xt.memo(
64478
64478
  Y4e,
64479
64479
  {
64480
64480
  onClick: k,
64481
- className: qe(
64481
+ className: We(
64482
64482
  "d-block-button lg:opacity-0 color-text-default color-bg-default-hover aspect-square w-6 h-6",
64483
64483
  "group-hover:opacity-100"
64484
64484
  )
@@ -93886,12 +93886,12 @@ function sOe({
93886
93886
  return /* @__PURE__ */ F.jsx(pl, { className: "w-full", children: /* @__PURE__ */ F.jsxs(
93887
93887
  "pre",
93888
93888
  {
93889
- className: qe("rounded-lg border color-border-default w-full relative"),
93889
+ className: We("rounded-lg border color-border-default w-full relative"),
93890
93890
  children: [
93891
93891
  /* @__PURE__ */ F.jsxs(
93892
93892
  "div",
93893
93893
  {
93894
- className: qe(
93894
+ className: We(
93895
93895
  "flex flex-row gap-2 items-center justify-between color-bg-secondary absolute top-0 left-0 z-10 rounded-t-lg w-full border-b color-border-default px-2 py-1",
93896
93896
  l && "hidden"
93897
93897
  ),
@@ -93943,7 +93943,7 @@ function sOe({
93943
93943
  {
93944
93944
  name: i,
93945
93945
  size: "sm",
93946
- className: qe(
93946
+ className: We(
93947
93947
  "transition-all duration-300 absolute inset-0",
93948
93948
  i === "Check" ? "opacity-100 scale-100" : "opacity-0 scale-0"
93949
93949
  )
@@ -93954,7 +93954,7 @@ function sOe({
93954
93954
  {
93955
93955
  name: "Copy",
93956
93956
  size: "sm",
93957
- className: qe(
93957
+ className: We(
93958
93958
  "transition-all duration-300 absolute inset-0",
93959
93959
  i === "Check" ? "opacity-0 scale-0" : "opacity-100 scale-100"
93960
93960
  )
@@ -93970,7 +93970,7 @@ function sOe({
93970
93970
  variant: "ghost",
93971
93971
  size: "sm",
93972
93972
  onClick: () => t({ lineNumbers: !u }),
93973
- className: qe(
93973
+ className: We(
93974
93974
  "min-w-fit p-2",
93975
93975
  u && "color-bg-brand color-text-on-brand hover:bg-[hsla(var(--color-bg-brand-hover))]"
93976
93976
  ),
@@ -93984,7 +93984,7 @@ function sOe({
93984
93984
  variant: "ghost",
93985
93985
  size: "sm",
93986
93986
  onClick: () => t({ wordWrap: !c }),
93987
- className: qe(
93987
+ className: We(
93988
93988
  "min-w-fit p-2",
93989
93989
  c && "color-bg-brand color-text-on-brand hover:bg-[hsla(var(--color-bg-brand-hover))]"
93990
93990
  ),
@@ -94040,7 +94040,7 @@ function sOe({
94040
94040
  /* @__PURE__ */ F.jsx(
94041
94041
  "div",
94042
94042
  {
94043
- className: qe(
94043
+ className: We(
94044
94044
  "absolute top-3 right-3 hidden z-10 color-bg-default",
94045
94045
  l && "flex"
94046
94046
  ),
@@ -94050,7 +94050,7 @@ function sOe({
94050
94050
  {
94051
94051
  name: i,
94052
94052
  size: "sm",
94053
- className: qe(
94053
+ className: We(
94054
94054
  "transition-all duration-200 absolute inset-0",
94055
94055
  i === "Check" ? "opacity-100 scale-100" : "opacity-0 scale-50"
94056
94056
  )
@@ -94061,7 +94061,7 @@ function sOe({
94061
94061
  {
94062
94062
  name: "Copy",
94063
94063
  size: "sm",
94064
- className: qe(
94064
+ className: We(
94065
94065
  "transition-all duration-200 absolute inset-0",
94066
94066
  i === "Check" ? "opacity-0 scale-50" : "opacity-100 scale-100"
94067
94067
  )
@@ -94073,7 +94073,7 @@ function sOe({
94073
94073
  /* @__PURE__ */ F.jsx(
94074
94074
  "div",
94075
94075
  {
94076
- className: qe(
94076
+ className: We(
94077
94077
  "bg-transparent w-full p-0 font-mono select-text pointer-events-auto overflow-y-auto no-scrollbar max-w-[650px]",
94078
94078
  !l && "pt-8",
94079
94079
  g.length > 20 && "max-h-[500px]"
@@ -94081,7 +94081,7 @@ function sOe({
94081
94081
  children: /* @__PURE__ */ F.jsxs(
94082
94082
  "div",
94083
94083
  {
94084
- className: qe(
94084
+ className: We(
94085
94085
  "flex flex-row gap-3",
94086
94086
  c ? h ? "w-[330px]" : "w-[650px]" : "w-[720px]"
94087
94087
  ),
@@ -94099,7 +94099,7 @@ function sOe({
94099
94099
  {
94100
94100
  ref: o,
94101
94101
  as: "div",
94102
- className: qe(
94102
+ className: We(
94103
94103
  "leading-5 font-mono pl-4 flex-1",
94104
94104
  e.textContent.length === 0 && "min-h-[20px]"
94105
94105
  ),
@@ -167950,7 +167950,7 @@ const UIe = 200, PIe = new jt("emoji"), zIe = Bt.create({
167950
167950
  children: i.map((f, g) => /* @__PURE__ */ F.jsxs(
167951
167951
  "button",
167952
167952
  {
167953
- className: qe(
167953
+ className: We(
167954
167954
  "flex w-full items-center space-x-2 rounded-md px-2 py-1 text-left text-sm border border-transparent transition-all",
167955
167955
  g === r && "color-bg-default-hover",
167956
167956
  f.isDisabled ? "cursor-not-allowed color-text-disabled" : "hover:color-bg-default-hover cursor-pointer"
@@ -167964,7 +167964,7 @@ const UIe = 200, PIe = new jt("emoji"), zIe = Bt.create({
167964
167964
  /* @__PURE__ */ F.jsx(
167965
167965
  "p",
167966
167966
  {
167967
- className: qe(
167967
+ className: We(
167968
167968
  "text-xs",
167969
167969
  f.isDisabled && "color-text-disabled"
167970
167970
  ),
@@ -169690,7 +169690,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169690
169690
  "div",
169691
169691
  {
169692
169692
  ref: A,
169693
- className: qe(
169693
+ className: We(
169694
169694
  "color-bg-default overflow-hidden flex flex-col rounded-lg w-full",
169695
169695
  k ? "opacity-0" : g ? "animate-aiwriter-scale-out" : "animate-aiwriter-scale-in"
169696
169696
  ),
@@ -169735,7 +169735,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169735
169735
  /* @__PURE__ */ F.jsxs(
169736
169736
  "div",
169737
169737
  {
169738
- className: qe(
169738
+ className: We(
169739
169739
  "flex items-center flex-col justify-between border color-border-default rounded-lg mb-4 mx-3 flex-1 shadow-elevation-3 ",
169740
169740
  !d && "px-3 py-2"
169741
169741
  ),
@@ -169743,7 +169743,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169743
169743
  /* @__PURE__ */ F.jsxs(
169744
169744
  "div",
169745
169745
  {
169746
- className: qe(
169746
+ className: We(
169747
169747
  "flex items-start gap-2 w-full",
169748
169748
  d && "px-3 py-2"
169749
169749
  ),
@@ -169769,7 +169769,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169769
169769
  /* @__PURE__ */ F.jsxs(
169770
169770
  "div",
169771
169771
  {
169772
- className: qe(
169772
+ className: We(
169773
169773
  "flex justify-between gap-2 w-full",
169774
169774
  d && "px-3 pb-2"
169775
169775
  ),
@@ -169812,7 +169812,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169812
169812
  "label",
169813
169813
  {
169814
169814
  htmlFor: "include-context",
169815
- className: qe(
169815
+ className: We(
169816
169816
  "text-xs md:text-sm color-text-default",
169817
169817
  i && "color-text-disabled"
169818
169818
  ),
@@ -169826,7 +169826,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169826
169826
  {
169827
169827
  onClick: a ? se : oe,
169828
169828
  disabled: !u.trim() || i && !a,
169829
- className: qe("p-2 min-w-0 rounded-full w-8 h-8"),
169829
+ className: We("p-2 min-w-0 rounded-full w-8 h-8"),
169830
169830
  children: a ? /* @__PURE__ */ F.jsx(Le, { name: "Square", size: "sm" }) : /* @__PURE__ */ F.jsx(Le, { name: "ArrowUp", size: "sm" })
169831
169831
  }
169832
169832
  )
@@ -180694,7 +180694,7 @@ const bHe = async (e, t, n) => {
180694
180694
  "div",
180695
180695
  {
180696
180696
  ref: s,
180697
- className: qe(
180697
+ className: We(
180698
180698
  "color-bg-default flex gap-3 py-4 px-4 color-border-default-hover relative",
180699
180699
  l ? "flex-row overflow-x-auto border-t min-h-[12rem] order-2 w-full pt-10 xl:pt-0" : "w-[251px] h-full overflow-y-auto overflow-x-hidden flex-col py-16 border-r",
180700
180700
  a && "min-h-[20rem]"
@@ -180708,7 +180708,7 @@ const bHe = async (e, t, n) => {
180708
180708
  "div",
180709
180709
  {
180710
180710
  ref: (f) => i.current[h] = f,
180711
- className: qe(
180711
+ className: We(
180712
180712
  "flex p-2 rounded-xl w-[219px] h-[122px] transition-all",
180713
180713
  t === h ? "color-bg-brand hover:color-bg-brand-hover" : "color-bg-default hover:color-bg-default-hover"
180714
180714
  ),
@@ -180716,7 +180716,7 @@ const bHe = async (e, t, n) => {
180716
180716
  /* @__PURE__ */ F.jsx(
180717
180717
  "span",
180718
180718
  {
180719
- className: qe(
180719
+ className: We(
180720
180720
  "text-body-sm h-full w-[20px] pr-1 text-center",
180721
180721
  t === h ? "color-text-default dark:text-[#363B3F]" : "color-text-default"
180722
180722
  ),
@@ -180727,14 +180727,14 @@ const bHe = async (e, t, n) => {
180727
180727
  "div",
180728
180728
  {
180729
180729
  onClick: () => n(h),
180730
- className: qe(
180730
+ className: We(
180731
180731
  "border rounded-lg cursor-pointer transition-all transform overflow-hidden aspect-video w-[188px] h-[106px]",
180732
180732
  t === h ? "border-[#FFDF0A]" : "color-border-default"
180733
180733
  ),
180734
180734
  children: /* @__PURE__ */ F.jsx(
180735
180735
  "div",
180736
180736
  {
180737
- className: qe(
180737
+ className: We(
180738
180738
  "presentation-mode preview-slide w-[400%] h-[400%]",
180739
180739
  !u && "color-bg-default"
180740
180740
  ),
@@ -181164,7 +181164,7 @@ const THe = ({
181164
181164
  nx,
181165
181165
  {
181166
181166
  editor: t,
181167
- className: qe("presentation-mode", {
181167
+ className: We("presentation-mode", {
181168
181168
  fullscreen: i
181169
181169
  }),
181170
181170
  style: d,
@@ -181295,7 +181295,7 @@ const THe = ({
181295
181295
  ) }) }) : c.length === 0 || !z ? null : /* @__PURE__ */ F.jsxs(
181296
181296
  "div",
181297
181297
  {
181298
- className: qe(
181298
+ className: We(
181299
181299
  "fixed inset-0 color-bg-secondary flex z-50",
181300
181300
  C ? "flex-col" : "flex-col xl:flex-row",
181301
181301
  "items-center justify-center w-screen h-screen"
@@ -181314,7 +181314,7 @@ const THe = ({
181314
181314
  /* @__PURE__ */ F.jsxs(
181315
181315
  "div",
181316
181316
  {
181317
- className: qe(
181317
+ className: We(
181318
181318
  "flex-1 h-full flex flex-col items-center justify-center",
181319
181319
  {
181320
181320
  "w-full": n
@@ -181400,14 +181400,14 @@ const THe = ({
181400
181400
  /* @__PURE__ */ F.jsx(
181401
181401
  "div",
181402
181402
  {
181403
- className: qe(
181403
+ className: We(
181404
181404
  "w-full flex items-center justify-center",
181405
181405
  n ? "h-screen p-0" : "h-[75vh] p-8"
181406
181406
  ),
181407
181407
  children: /* @__PURE__ */ F.jsx(
181408
181408
  "div",
181409
181409
  {
181410
- className: qe(
181410
+ className: We(
181411
181411
  "w-full rounded-lg overflow-hidden relative",
181412
181412
  !T && "color-bg-default",
181413
181413
  n ? "h-full max-w-none flex items-start justify-center" : "px-8 md:px-0 scale-[0.35] md:scale-[0.75] xl:scale-100 min-w-[1080px] max-w-[1080px] aspect-video py-[48px]"
@@ -181434,7 +181434,7 @@ const THe = ({
181434
181434
  children: /* @__PURE__ */ F.jsx(
181435
181435
  "div",
181436
181436
  {
181437
- className: qe(
181437
+ className: We(
181438
181438
  "presentation-mode fullscreen w-full h-full"
181439
181439
  ),
181440
181440
  dangerouslySetInnerHTML: { __html: c[v] },
@@ -181500,11 +181500,11 @@ const THe = ({
181500
181500
  "div",
181501
181501
  {
181502
181502
  "data-testid": "comment-auth-modal",
181503
- className: qe("flex flex-col !color-bg-default !rounded-b-lg"),
181503
+ className: We("flex flex-col !color-bg-default !rounded-b-lg"),
181504
181504
  children: /* @__PURE__ */ F.jsxs(
181505
181505
  "div",
181506
181506
  {
181507
- className: qe(
181507
+ className: We(
181508
181508
  "w-full px-6 h-full flex flex-col justify-center items-center"
181509
181509
  ),
181510
181510
  children: [
@@ -181661,9 +181661,10 @@ const THe = ({
181661
181661
  /* @__PURE__ */ F.jsxs(
181662
181662
  "div",
181663
181663
  {
181664
- className: qe(
181664
+ className: We(
181665
181665
  "border flex px-[12px] py-[8px] gap-[8px] rounded-[4px]",
181666
- g ? "items-center justify-between " : "color-bg-default"
181666
+ g && "items-center justify-between ",
181667
+ n ? "color-bg-disabled" : "color-bg-default"
181667
181668
  ),
181668
181669
  children: [
181669
181670
  /* @__PURE__ */ F.jsx(
@@ -181699,7 +181700,7 @@ const THe = ({
181699
181700
  icon: "SendHorizontal",
181700
181701
  variant: "ghost",
181701
181702
  disabled: y || n,
181702
- className: qe(
181703
+ className: We(
181703
181704
  "!min-w-[24px] !w-[24px] !min-h-[24px] !h-[24px]",
181704
181705
  !g && "hidden"
181705
181706
  )
@@ -181711,7 +181712,7 @@ const THe = ({
181711
181712
  /* @__PURE__ */ F.jsxs(
181712
181713
  "div",
181713
181714
  {
181714
- className: g ? "hidden" : qe(
181715
+ className: g ? "hidden" : We(
181715
181716
  "items-center justify-end gap-2 pt-2",
181716
181717
  m ? "flex" : "hidden group-focus-within:flex"
181717
181718
  ),
@@ -181751,33 +181752,42 @@ const THe = ({
181751
181752
  return Ae(() => {
181752
181753
  a.current && ei(a.current, 96);
181753
181754
  }, [n]), /* @__PURE__ */ F.jsxs("div", { className: "flex flex-col gap-3 color-bg-secondary border-t color-border-default pt-[20px] rounded-b-lg", children: [
181754
- /* @__PURE__ */ F.jsxs("div", { className: "border mx-4 flex px-[12px] color-bg-default py-[8px] gap-[8px] rounded-[4px]", children: [
181755
- /* @__PURE__ */ F.jsx(
181756
- Sd,
181757
- {
181758
- src: l.isEns ? Ju : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
181759
- l.name
181760
- )}`,
181761
- className: "w-[16px] h-[16px]"
181762
- }
181763
- ),
181764
- /* @__PURE__ */ F.jsx(
181765
- Qc,
181766
- {
181767
- ref: a,
181768
- "data-testid": "comment-section-input",
181769
- value: n,
181770
- onChange: (u) => {
181771
- o(u), ei(u.currentTarget, 96);
181772
- },
181773
- onKeyDown: (u) => i(u, e),
181774
- className: "color-bg-default w-full text-body-sm color-text-default !p-0 !border-none h-[20px] max-h-[96px] overflow-y-auto no-scrollbar whitespace-pre-wrap",
181775
- disabled: t,
181776
- placeholder: t ? "Cannot add comment in collaboration mode" : "Add a comment",
181777
- onInput: (u) => ei(u.currentTarget, 96)
181778
- }
181779
- )
181780
- ] }),
181755
+ /* @__PURE__ */ F.jsxs(
181756
+ "div",
181757
+ {
181758
+ className: We(
181759
+ "border mx-4 flex px-[12px] color-bg-default py-[8px] gap-[8px] rounded-[4px]",
181760
+ t && "color-bg-disabled"
181761
+ ),
181762
+ children: [
181763
+ /* @__PURE__ */ F.jsx(
181764
+ Sd,
181765
+ {
181766
+ src: l.isEns ? Ju : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
181767
+ l.name
181768
+ )}`,
181769
+ className: "w-[16px] h-[16px]"
181770
+ }
181771
+ ),
181772
+ /* @__PURE__ */ F.jsx(
181773
+ Qc,
181774
+ {
181775
+ ref: a,
181776
+ "data-testid": "comment-section-input",
181777
+ value: n,
181778
+ onChange: (u) => {
181779
+ o(u), ei(u.currentTarget, 96);
181780
+ },
181781
+ onKeyDown: (u) => i(u, e),
181782
+ className: "color-bg-default w-full text-body-sm color-text-default !p-0 !border-none h-[20px] max-h-[96px] overflow-y-auto no-scrollbar whitespace-pre-wrap",
181783
+ disabled: t,
181784
+ placeholder: t ? "Cannot add comment in collaboration mode" : "Add a comment",
181785
+ onInput: (u) => ei(u.currentTarget, 96)
181786
+ }
181787
+ )
181788
+ ]
181789
+ }
181790
+ ),
181781
181791
  /* @__PURE__ */ F.jsx("div", { className: "flex px-4 items-center color-bg-secondary justify-end", children: /* @__PURE__ */ F.jsx(
181782
181792
  Tt,
181783
181793
  {
@@ -181819,7 +181829,7 @@ const yI = ({
181819
181829
  Z && /* @__PURE__ */ F.jsxs(
181820
181830
  "p",
181821
181831
  {
181822
- className: qe(
181832
+ className: We(
181823
181833
  "text-body-sm-bold color-text-secondary",
181824
181834
  E && "mb-[4px]"
181825
181835
  ),
@@ -181902,7 +181912,7 @@ const yI = ({
181902
181912
  "div",
181903
181913
  {
181904
181914
  "data-testid": "comment-section",
181905
- className: qe(
181915
+ className: We(
181906
181916
  (!r || !u) && "flex flex-col",
181907
181917
  !r && "h-[100dvh] sm:h-[calc(100dvh-40px)] xl:h-[calc(100dvh-310px)] color-bg-secondary !rounded-b-lg",
181908
181918
  r && !u && "h-full",
@@ -181914,7 +181924,7 @@ const yI = ({
181914
181924
  /* @__PURE__ */ F.jsx(
181915
181925
  "div",
181916
181926
  {
181917
- className: qe(
181927
+ className: We(
181918
181928
  !E && "px-4",
181919
181929
  " w-full overflow-y-auto h-full"
181920
181930
  ),
@@ -181931,7 +181941,7 @@ const yI = ({
181931
181941
  /* @__PURE__ */ F.jsx(
181932
181942
  "div",
181933
181943
  {
181934
- className: qe(
181944
+ className: We(
181935
181945
  P.length > 0 && !O && "mt-[16px]"
181936
181946
  )
181937
181947
  }
@@ -181991,7 +182001,7 @@ const yI = ({
181991
182001
  "div",
181992
182002
  {
181993
182003
  "data-comment-id": e.id,
181994
- className: qe(
182004
+ className: We(
181995
182005
  "relative flex border flex-col w-full mt-[8px] pb-[12px] box-border transition-all color-border-default rounded-[12px]",
181996
182006
  r && a !== e.id && "hidden",
181997
182007
  e.id === n && (r || !b) ? "color-bg-default" : "hover:color-bg-default-hover bg-[#00000005] ",
@@ -182046,7 +182056,7 @@ const yI = ({
182046
182056
  "div",
182047
182057
  {
182048
182058
  ref: l,
182049
- className: qe("flex flex-col gap-2", e.resolved && "hidden"),
182059
+ className: We("flex flex-col gap-2", e.resolved && "hidden"),
182050
182060
  onClick: (w) => w.stopPropagation(),
182051
182061
  children: a === e.id && /* @__PURE__ */ F.jsx(
182052
182062
  RHe,
@@ -182494,7 +182504,7 @@ const yI = ({
182494
182504
  }
182495
182505
  },
182496
182506
  editor: e,
182497
- className: qe(
182507
+ className: We(
182498
182508
  "shadow-elevation-4 rounded-lg color-bg-default border color-border-default",
182499
182509
  (n || c) && "hidden"
182500
182510
  ),
@@ -183479,7 +183489,7 @@ const PJ = (e) => e === null ? null : Math.round(e), qHe = ({
183479
183489
  {
183480
183490
  ref: i,
183481
183491
  "data-floating-comment-card": e,
183482
- className: qe(
183492
+ className: We(
183483
183493
  "absolute left-0 top-0 pb-[12px] rounded-[12px] border will-change-transform transition-[box-shadow,border-color] duration-150 ease-out",
183484
183494
  n ? "shadow-elevation-3 color-bg-default color-border-default" : "bg-[#00000005] "
183485
183495
  ),
@@ -183647,7 +183657,7 @@ const cWe = ({
183647
183657
  emptyComment: !t
183648
183658
  }
183649
183659
  ),
183650
- e.isFocused && !l && /* @__PURE__ */ F.jsx(zJ, {}),
183660
+ e.isFocused && !l && !i && /* @__PURE__ */ F.jsx(zJ, {}),
183651
183661
  /* @__PURE__ */ F.jsx(
183652
183662
  hWe,
183653
183663
  {
@@ -183704,40 +183714,49 @@ const cWe = ({
183704
183714
  !f || !t.commentId || f.commentId === t.commentId && (x(""), h());
183705
183715
  }, [h, f, t.commentId]), !!S)
183706
183716
  return /* @__PURE__ */ F.jsxs("div", { className: "group p-3 pt-0", children: [
183707
- /* @__PURE__ */ F.jsxs("div", { className: "border flex px-[12px] py-[8px] gap-[8px] rounded-[4px]", children: [
183708
- /* @__PURE__ */ F.jsx(
183709
- Sd,
183710
- {
183711
- src: `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
183712
- r || ""
183713
- )}`,
183714
- className: "w-[16px] h-[16px]"
183715
- }
183716
- ),
183717
- /* @__PURE__ */ F.jsx(
183718
- Qc,
183719
- {
183720
- ref: b,
183721
- value: y,
183722
- onChange: (B) => {
183723
- x(B.target.value), ei(B.currentTarget);
183724
- },
183725
- onFocus: () => i(!0),
183726
- onBlur: () => i(!1),
183727
- onInput: (B) => ei(B.currentTarget),
183728
- onKeyDown: (B) => {
183729
- B.key === "Enter" && (!B.shiftKey || B.metaKey) && (B.preventDefault(), D());
183730
- },
183731
- className: "color-bg-default w-full text-body-sm color-text-default !p-0 !border-none h-[20px] max-h-[296px] overflow-y-auto no-scrollbar whitespace-pre-wrap",
183732
- placeholder: n ? "Cannot send reply in collaboration mode" : s ? "Add a reply" : "Thread resolved",
183733
- disabled: !s || n
183734
- }
183735
- )
183736
- ] }),
183737
183717
  /* @__PURE__ */ F.jsxs(
183738
183718
  "div",
183739
183719
  {
183740
- className: qe(
183720
+ className: We(
183721
+ "border flex px-[12px] py-[8px] gap-[8px] rounded-[4px]",
183722
+ n ? "color-bg-disabled" : "color-bg-default"
183723
+ ),
183724
+ children: [
183725
+ /* @__PURE__ */ F.jsx(
183726
+ Sd,
183727
+ {
183728
+ src: `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
183729
+ r || ""
183730
+ )}`,
183731
+ className: "w-[16px] h-[16px]"
183732
+ }
183733
+ ),
183734
+ /* @__PURE__ */ F.jsx(
183735
+ Qc,
183736
+ {
183737
+ ref: b,
183738
+ value: y,
183739
+ onChange: (B) => {
183740
+ x(B.target.value), ei(B.currentTarget);
183741
+ },
183742
+ onFocus: () => i(!0),
183743
+ onBlur: () => i(!1),
183744
+ onInput: (B) => ei(B.currentTarget),
183745
+ onKeyDown: (B) => {
183746
+ B.key === "Enter" && (!B.shiftKey || B.metaKey) && (B.preventDefault(), D());
183747
+ },
183748
+ className: "color-bg-default w-full text-body-sm color-text-default !p-0 !border-none h-[20px] max-h-[296px] overflow-y-auto no-scrollbar whitespace-pre-wrap",
183749
+ placeholder: n ? "Cannot send reply in collaboration mode" : s ? "Add a reply" : "Thread resolved",
183750
+ disabled: !s || n
183751
+ }
183752
+ )
183753
+ ]
183754
+ }
183755
+ ),
183756
+ /* @__PURE__ */ F.jsxs(
183757
+ "div",
183758
+ {
183759
+ className: We(
183741
183760
  "items-center justify-end gap-2 pt-2",
183742
183761
  w || o ? "flex" : "hidden"
183743
183762
  ),
@@ -183789,7 +183808,7 @@ const cWe = ({
183789
183808
  "div",
183790
183809
  {
183791
183810
  ref: a,
183792
- className: qe(
183811
+ className: We(
183793
183812
  "comment-floating-comments relative shrink-0",
183794
183813
  o && "pointer-events-none"
183795
183814
  ),
@@ -183843,7 +183862,7 @@ const cWe = ({
183843
183862
  ), i = wt(() => {
183844
183863
  const a = D9(e.textContent), l = e.id.replace(/-/g, "").substring(0, 8), u = `${a}-${l}`, c = new URL(globalThis.location.href), d = c.hash.startsWith("#") ? c.hash.substring(1) : c.hash, p = new URLSearchParams(d);
183845
183864
  return p.set("heading", u), c.hash = p.toString(), c.toString();
183846
- }, [e.id, e.textContent]), s = wt(() => qe(
183865
+ }, [e.id, e.textContent]), s = wt(() => We(
183847
183866
  `flex items-center transition-all text-body-sm-bold max-[1280px]:h-[32px] max-[1280px]:px-2 max-[1280px]:py-1 h-5 max-[1280px]:max-w-full ${r === "landscape" ? "xl:!max-w-[160px] min-[1750px]:!max-w-[240px]" : "xl:!max-w-[160px] min-[1410px]:!max-w-[240px] min-[1600px]:!max-w-[320px]"} xl:border-l-2`,
183848
183867
  e.isActive ? "color-border-active color-text-default max-[1280px]:border-none max-[1280px]:bg-[#F8F9FA] max-[1280px]:rounded max-[1280px]:text-[#363B3F]" : "color-text-secondary border-transparent lg:hover:!brightness-90"
183849
183868
  ), [e.isActive, r]);
@@ -184150,7 +184169,7 @@ const vWe = [
184150
184169
  l.current = g;
184151
184170
  },
184152
184171
  variant: "ghost",
184153
- className: qe(
184172
+ className: We(
184154
184173
  "!min-w-[16px] !min-h-[16px] !w-[16px] !h-[16px] !p-0 flex items-center justify-center !hover:bg-transparent"
184155
184174
  ),
184156
184175
  onClick: (g) => {
@@ -184192,12 +184211,12 @@ const vWe = [
184192
184211
  onClick: () => {
184193
184212
  t(""), c(!1);
184194
184213
  },
184195
- className: qe(
184214
+ className: We(
184196
184215
  "space-xsm cursor-pointer min-w-[144px] gap-xsm hover:color-bg-default-hover border-radius-sm h-[30px] color-border-default flex items-center"
184197
184216
  ),
184198
184217
  children: [
184199
- /* @__PURE__ */ F.jsx(Le, { name: "X", className: qe("w-[16px] h-[16px]") }),
184200
- /* @__PURE__ */ F.jsx("p", { className: qe("text-heading-xsm"), children: "Clear emoji" })
184218
+ /* @__PURE__ */ F.jsx(Le, { name: "X", className: We("w-[16px] h-[16px]") }),
184219
+ /* @__PURE__ */ F.jsx("p", { className: We("text-heading-xsm"), children: "Clear emoji" })
184201
184220
  ]
184202
184221
  }
184203
184222
  )
@@ -184239,12 +184258,12 @@ const vWe = [
184239
184258
  ref: (g) => {
184240
184259
  a.current = g;
184241
184260
  },
184242
- className: qe("fixed z-50"),
184261
+ className: We("fixed z-50"),
184243
184262
  style: { top: d.top, left: d.left },
184244
184263
  children: /* @__PURE__ */ F.jsxs(
184245
184264
  wWe,
184246
184265
  {
184247
- className: qe(
184266
+ className: We(
184248
184267
  "color-bg-default rounded-lg border shadow-md",
184249
184268
  h ? "h-[287px]" : "h-[340px]"
184250
184269
  ),
@@ -184269,7 +184288,7 @@ function wWe({
184269
184288
  return /* @__PURE__ */ F.jsx(
184270
184289
  Sc.Root,
184271
184290
  {
184272
- className: qe(
184291
+ className: We(
184273
184292
  "bg-popover text-popover-foreground isolate flex h-full w-fit flex-col overflow-hidden rounded-md",
184274
184293
  e
184275
184294
  ),
@@ -184285,7 +184304,7 @@ function DWe({
184285
184304
  return /* @__PURE__ */ F.jsxs(
184286
184305
  "div",
184287
184306
  {
184288
- className: qe("flex h-9 items-center gap-2 border-b px-3", e),
184307
+ className: We("flex h-9 items-center gap-2 border-b px-3", e),
184289
184308
  "data-slot": "emoji-picker-search-wrapper",
184290
184309
  children: [
184291
184310
  /* @__PURE__ */ F.jsx(FWe, { className: "size-4 shrink-0 opacity-50" }),
@@ -184316,7 +184335,7 @@ function EWe({
184316
184335
  "button",
184317
184336
  {
184318
184337
  ...n,
184319
- className: qe(
184338
+ className: We(
184320
184339
  "data-[active]:bg-accent flex size-7 items-center justify-center rounded-sm text-base",
184321
184340
  t
184322
184341
  ),
@@ -184346,7 +184365,7 @@ function _We({
184346
184365
  return /* @__PURE__ */ F.jsxs(
184347
184366
  Sc.Viewport,
184348
184367
  {
184349
- className: qe("outline-hidden relative flex-1", e),
184368
+ className: We("outline-hidden relative flex-1", e),
184350
184369
  "data-slot": "emoji-picker-viewport",
184351
184370
  ...t,
184352
184371
  children: [
@@ -184389,7 +184408,7 @@ function AWe({
184389
184408
  return /* @__PURE__ */ F.jsx(
184390
184409
  "div",
184391
184410
  {
184392
- className: qe(
184411
+ className: We(
184393
184412
  "max-w-(--frimousse-viewport-width) flex w-full min-w-0 items-center gap-1 border-t p-2",
184394
184413
  e
184395
184414
  ),
@@ -184735,7 +184754,7 @@ const SWe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184735
184754
  !d && !r && e();
184736
184755
  },
184737
184756
  hasCloseIcon: a,
184738
- className: qe(
184757
+ className: We(
184739
184758
  "gap-md !z-[70]",
184740
184759
  !c && "!w-[400px] border-radius-lg"
184741
184760
  ),
@@ -185492,7 +185511,7 @@ const SWe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185492
185511
  hasCloseIcon: !0,
185493
185512
  content: /* @__PURE__ */ F.jsxs(F.Fragment, { children: [
185494
185513
  /* @__PURE__ */ F.jsx("div", { className: "flex justify-between items-center p-4", children: /* @__PURE__ */ F.jsx("h2", { className: "text-heading-sm-bold", children: "Document outline" }) }),
185495
- /* @__PURE__ */ F.jsx("div", { className: qe("table-of-contents px-4"), children: /* @__PURE__ */ F.jsx(
185514
+ /* @__PURE__ */ F.jsx("div", { className: We("table-of-contents px-4"), children: /* @__PURE__ */ F.jsx(
185496
185515
  Iy,
185497
185516
  {
185498
185517
  editor: e,
@@ -185507,7 +185526,7 @@ const SWe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185507
185526
  ) : /* @__PURE__ */ F.jsxs(
185508
185527
  "div",
185509
185528
  {
185510
- className: qe(
185529
+ className: We(
185511
185530
  "flex flex-col gap-4 items-start justify-start fixed left-4 z-20",
185512
185531
  (!t || u) && "hidden",
185513
185532
  s ? "top-[4rem]" : "top-[7.3rem]"
@@ -185533,7 +185552,7 @@ const SWe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185533
185552
  /* @__PURE__ */ F.jsx(
185534
185553
  "div",
185535
185554
  {
185536
- className: qe(
185555
+ className: We(
185537
185556
  "table-of-contents animate-in fade-in slide-in-from-left-5",
185538
185557
  o ? "block" : "hidden"
185539
185558
  ),
@@ -185641,7 +185660,7 @@ const SWe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185641
185660
  orientation: a
185642
185661
  }
185643
185662
  );
185644
- }, RWe = "h-6 bg-gradient-to-r [--from:210,_17%,_98%,_1] [--to:0,_0%,_93%,_1] dark:[--from:0,0%,16%,1] dark:[--to:0,0%,12%,1] from-[hsl(var(--from))] to-[hsl(var(--to))]", Ii = ({ className: e }) => /* @__PURE__ */ F.jsx("div", { className: qe(RWe, e) }), JJ = () => /* @__PURE__ */ F.jsx("div", { className: "flex flex-col gap-8", children: /* @__PURE__ */ F.jsxs(
185663
+ }, RWe = "h-6 bg-gradient-to-r [--from:210,_17%,_98%,_1] [--to:0,_0%,_93%,_1] dark:[--from:0,0%,16%,1] dark:[--to:0,0%,12%,1] from-[hsl(var(--from))] to-[hsl(var(--to))]", Ii = ({ className: e }) => /* @__PURE__ */ F.jsx("div", { className: We(RWe, e) }), JJ = () => /* @__PURE__ */ F.jsx("div", { className: "flex flex-col gap-8", children: /* @__PURE__ */ F.jsxs(
185645
185664
  YQ,
185646
185665
  {
185647
185666
  transition: {
@@ -186965,7 +186984,7 @@ const SWe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
186965
186984
  }
186966
186985
  ),
186967
186986
  !L || P || w ? Do(
186968
- /* @__PURE__ */ F.jsxs("div", { className: qe(`${G ? "mx-10 mt-10" : "mx-20"}`), children: [
186987
+ /* @__PURE__ */ F.jsxs("div", { className: We(`${G ? "mx-10 mt-10" : "mx-20"}`), children: [
186969
186988
  /* @__PURE__ */ F.jsx(
186970
186989
  xr,
186971
186990
  {
@@ -186985,7 +187004,7 @@ const SWe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
186985
187004
  "div",
186986
187005
  {
186987
187006
  ref: q,
186988
- className: qe("overflow-x-hidden", b),
187007
+ className: We("overflow-x-hidden", b),
186989
187008
  children: /* @__PURE__ */ F.jsxs(
186990
187009
  o9,
186991
187010
  {
@@ -187059,7 +187078,7 @@ const SWe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
187059
187078
  {
187060
187079
  editor: L,
187061
187080
  id: "editor",
187062
- className: qe("w-full h-auto py-8", D)
187081
+ className: We("w-full h-auto py-8", D)
187063
187082
  }
187064
187083
  )
187065
187084
  ]
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "3.0.96-zustand-47",
5
+ "version": "3.0.96-zustand-49",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {