@fileverse-dev/ddoc 2.1.3-patch-32 → 2.1.3-patch-33

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.
package/dist/index.es.js CHANGED
@@ -14,7 +14,7 @@ var F2 = (t, e, n, r) => ({
14
14
  }
15
15
  });
16
16
  import * as N from "react";
17
- import xe, { createContext as Vn, useContext as Et, forwardRef as rn, useRef as Xe, useState as Re, useDebugValue as LF, useEffect as He, useLayoutEffect as nl, createElement as Ne, useCallback as kt, memo as EF, Children as Zl, isValidElement as vh, cloneElement as l2, useMemo as wn, useId as c2, Fragment as kc, useInsertionEffect as A8, useReducer as dae, createRef as Tc, Suspense as hae, Component as VC, useImperativeHandle as TF } from "react";
17
+ import xe, { createContext as Vn, useContext as Et, forwardRef as an, useRef as Xe, useState as Re, useDebugValue as LF, useEffect as He, useLayoutEffect as nl, createElement as Ne, useCallback as kt, memo as EF, Children as Zl, isValidElement as vh, cloneElement as l2, useMemo as wn, useId as c2, Fragment as kc, useInsertionEffect as A8, useReducer as dae, createRef as Tc, Suspense as hae, Component as VC, useImperativeHandle as TF } from "react";
18
18
  import * as u2 from "react-dom";
19
19
  import _C, { flushSync as qC, createPortal as NF } from "react-dom";
20
20
  var $r = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -15012,7 +15012,7 @@ class q0e extends xe.Component {
15012
15012
  );
15013
15013
  }
15014
15014
  }
15015
- const U0e = rn((t, e) => {
15015
+ const U0e = an((t, e) => {
15016
15016
  const n = xe.useMemo(() => Math.floor(Math.random() * 4294967295).toString(), [t.editor]);
15017
15017
  return xe.createElement(q0e, {
15018
15018
  key: n,
@@ -18715,7 +18715,7 @@ const oD = (t) => typeof t == "boolean" ? "".concat(t) : t === 0 ? "0" : t, lD =
18715
18715
  )
18716
18716
  );
18717
18717
  ry.displayName = "Avatar";
18718
- rn(
18718
+ an(
18719
18719
  ({
18720
18720
  avatars: t,
18721
18721
  size: e = "lg",
@@ -19636,7 +19636,7 @@ var W1e = {
19636
19636
  * This source code is licensed under the ISC license.
19637
19637
  * See the LICENSE file in the root directory of this source tree.
19638
19638
  */
19639
- const Z1e = rn(
19639
+ const Z1e = an(
19640
19640
  ({
19641
19641
  color: t = "currentColor",
19642
19642
  size: e = 24,
@@ -19671,7 +19671,7 @@ const Z1e = rn(
19671
19671
  * See the LICENSE file in the root directory of this source tree.
19672
19672
  */
19673
19673
  const y = (t, e) => {
19674
- const n = rn(
19674
+ const n = an(
19675
19675
  ({ className: r, ...i }, a) => Ne(Z1e, {
19676
19676
  ref: a,
19677
19677
  iconNode: e,
@@ -43391,7 +43391,7 @@ const Mst = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
43391
43391
  defaultVariants: {
43392
43392
  size: "md"
43393
43393
  }
43394
- }), Ze = rn(
43394
+ }), Ze = an(
43395
43395
  ({ name: t, className: e, size: n, strokeWidth: r, fill: i, stroke: a, ...s }, o) => {
43396
43396
  const l = aq[t];
43397
43397
  return l ? /* @__PURE__ */ A.jsx(
@@ -43430,7 +43430,7 @@ const Ast = Ls(
43430
43430
  size: "md"
43431
43431
  }
43432
43432
  }
43433
- ), an = N.forwardRef(
43433
+ ), rn = N.forwardRef(
43434
43434
  ({
43435
43435
  className: t,
43436
43436
  variant: e,
@@ -43490,11 +43490,11 @@ const Ast = Ls(
43490
43490
  }
43491
43491
  )
43492
43492
  );
43493
- an.displayName = "Button";
43493
+ rn.displayName = "Button";
43494
43494
  const NA = ({ children: t, className: e }) => {
43495
43495
  const n = Me("flex space-x-2", e);
43496
43496
  return /* @__PURE__ */ A.jsx("div", { className: n, children: t });
43497
- }, Ln = rn(
43497
+ }, Ln = an(
43498
43498
  ({
43499
43499
  icon: t,
43500
43500
  variant: e,
@@ -43506,7 +43506,7 @@ const NA = ({ children: t, className: e }) => {
43506
43506
  fill: o,
43507
43507
  ...l
43508
43508
  }, c) => /* @__PURE__ */ A.jsx(
43509
- an,
43509
+ rn,
43510
43510
  {
43511
43511
  ref: c,
43512
43512
  variant: e,
@@ -46376,7 +46376,7 @@ function _lt({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVi
46376
46376
  }
46377
46377
  return A.jsxs(J8.Provider, { value: d, children: [c && d.visualElement ? A.jsx(c, { visualElement: d.visualElement, ...u }) : null, n(i, o, zlt(h, d.visualElement, l), h, f, d.visualElement)] });
46378
46378
  }
46379
- const s = rn(a);
46379
+ const s = an(a);
46380
46380
  return s[Vlt] = i, s;
46381
46381
  }
46382
46382
  function qlt({ layoutId: t }) {
@@ -51020,7 +51020,7 @@ const xG = ({
51020
51020
  );
51021
51021
  return r ? null : /* @__PURE__ */ A.jsx("div", { ref: l, children: /* @__PURE__ */ A.jsxs(Cv, { open: s, onOpenChange: o, children: [
51022
51022
  /* @__PURE__ */ A.jsx(Av, { asChild: !0, children: /* @__PURE__ */ A.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ A.jsxs(
51023
- an,
51023
+ rn,
51024
51024
  {
51025
51025
  onClick: f,
51026
51026
  size: "md",
@@ -52340,7 +52340,7 @@ const xG = ({
52340
52340
  defaultVariants: {
52341
52341
  size: "md"
52342
52342
  }
52343
- }), pft = rn(
52343
+ }), pft = an(
52344
52344
  ({
52345
52345
  name: t,
52346
52346
  size: e = "md",
@@ -57078,7 +57078,7 @@ const lY = ({
57078
57078
  ),
57079
57079
  (s || a) && /* @__PURE__ */ A.jsxs(US, { className: "px-6 gap-2 w-full", children: [
57080
57080
  s && /* @__PURE__ */ A.jsx(vv, { asChild: !0, children: /* @__PURE__ */ A.jsx(
57081
- an,
57081
+ rn,
57082
57082
  {
57083
57083
  disabled: s == null ? void 0 : s.isLoading,
57084
57084
  isLoading: s == null ? void 0 : s.isLoading,
@@ -57089,7 +57089,7 @@ const lY = ({
57089
57089
  }
57090
57090
  ) }),
57091
57091
  a && /* @__PURE__ */ A.jsx(
57092
- an,
57092
+ rn,
57093
57093
  {
57094
57094
  disabled: a == null ? void 0 : a.isLoading,
57095
57095
  isLoading: a == null ? void 0 : a.isLoading,
@@ -57132,7 +57132,7 @@ const lY = ({
57132
57132
  ),
57133
57133
  (s || a) && /* @__PURE__ */ A.jsxs(iY, { className: "px-4 gap-2", children: [
57134
57134
  s && /* @__PURE__ */ A.jsx(eY, { asChild: !0, children: /* @__PURE__ */ A.jsx(
57135
- an,
57135
+ rn,
57136
57136
  {
57137
57137
  disabled: s == null ? void 0 : s.isLoading,
57138
57138
  isLoading: s == null ? void 0 : s.isLoading,
@@ -57143,7 +57143,7 @@ const lY = ({
57143
57143
  }
57144
57144
  ) }),
57145
57145
  a && /* @__PURE__ */ A.jsx(
57146
- an,
57146
+ rn,
57147
57147
  {
57148
57148
  disabled: a == null ? void 0 : a.isLoading,
57149
57149
  isLoading: a == null ? void 0 : a.isLoading,
@@ -57649,7 +57649,7 @@ const zpt = ({
57649
57649
  /* @__PURE__ */ A.jsx(rft, { initial: !1, children: a && r === i && /* @__PURE__ */ A.jsx(Bpt, { content: a }) })
57650
57650
  ] });
57651
57651
  };
57652
- rn(
57652
+ an(
57653
57653
  ({ items: t, className: e, size: n = "lg", content: r, selectedValue: i, setSelectedValue: a }, s) => !t || t.length === 0 ? null : /* @__PURE__ */ A.jsx(
57654
57654
  LY,
57655
57655
  {
@@ -57689,7 +57689,7 @@ const Bpt = ({ content: t }) => {
57689
57689
  }
57690
57690
  );
57691
57691
  };
57692
- rn(({ label: t, description: e, checked: n, onChange: r, size: i = "lg" }, a) => /* @__PURE__ */ A.jsxs("div", { className: "flex flex-col gap-2 w-full", ref: a, children: [
57692
+ an(({ label: t, description: e, checked: n, onChange: r, size: i = "lg" }, a) => /* @__PURE__ */ A.jsxs("div", { className: "flex flex-col gap-2 w-full", ref: a, children: [
57693
57693
  /* @__PURE__ */ A.jsxs("div", { className: "flex justify-between items-center", children: [
57694
57694
  /* @__PURE__ */ A.jsx(
57695
57695
  pf,
@@ -77912,7 +77912,7 @@ function Agt(t) {
77912
77912
  value: e
77913
77913
  }, Ne(Mgt, Object.assign({}, t))));
77914
77914
  }
77915
- rn(
77915
+ an(
77916
77916
  ({ handleEmojiClick: t, handleAvatarInput: e, onRemove: n, className: r, ...i }, a) => {
77917
77917
  const [s, o] = Re("emojiPicker"), l = Xe(null), c = () => {
77918
77918
  l.current && l.current.click();
@@ -77948,7 +77948,7 @@ rn(
77948
77948
  )
77949
77949
  ] }),
77950
77950
  /* @__PURE__ */ A.jsx(
77951
- an,
77951
+ rn,
77952
77952
  {
77953
77953
  variant: "ghost",
77954
77954
  className: "min-w-fit bg-transparent hidden lg:block color-text-default",
@@ -77970,7 +77970,7 @@ rn(
77970
77970
  }
77971
77971
  ) }) : /* @__PURE__ */ A.jsxs("div", { className: "w-full h-full mt-4 space-y-3", children: [
77972
77972
  /* @__PURE__ */ A.jsx(
77973
- an,
77973
+ rn,
77974
77974
  {
77975
77975
  size: "lg",
77976
77976
  variant: "secondary",
@@ -78038,7 +78038,7 @@ const Sgt = ({
78038
78038
  ),
78039
78039
  /* @__PURE__ */ A.jsxs(US, { className: Me("px-5 pb-5 gap-2 w-full", f), children: [
78040
78040
  s && /* @__PURE__ */ A.jsx(vv, { asChild: !0, children: /* @__PURE__ */ A.jsx(
78041
- an,
78041
+ rn,
78042
78042
  {
78043
78043
  disabled: s == null ? void 0 : s.isLoading,
78044
78044
  isLoading: s == null ? void 0 : s.isLoading,
@@ -78049,7 +78049,7 @@ const Sgt = ({
78049
78049
  }
78050
78050
  ) }),
78051
78051
  a && /* @__PURE__ */ A.jsx(
78052
- an,
78052
+ rn,
78053
78053
  {
78054
78054
  disabled: a == null ? void 0 : a.isLoading,
78055
78055
  isLoading: a == null ? void 0 : a.isLoading,
@@ -78240,7 +78240,7 @@ function _gt({ defaultProp: t, onChange: e }) {
78240
78240
  a
78241
78241
  ]), n;
78242
78242
  }
78243
- const bL = /* @__PURE__ */ rn((t, e) => {
78243
+ const bL = /* @__PURE__ */ an((t, e) => {
78244
78244
  const { children: n, ...r } = t, i = Zl.toArray(n), a = i.find(Ugt);
78245
78245
  if (a) {
78246
78246
  const s = a.props.children, o = i.map((l) => l === a ? Zl.count(s) > 1 ? Zl.only(null) : /* @__PURE__ */ vh(s) ? s.props.children : null : l);
@@ -78253,7 +78253,7 @@ const bL = /* @__PURE__ */ rn((t, e) => {
78253
78253
  }), n);
78254
78254
  });
78255
78255
  bL.displayName = "Slot";
78256
- const Tx = /* @__PURE__ */ rn((t, e) => {
78256
+ const Tx = /* @__PURE__ */ an((t, e) => {
78257
78257
  const { children: n, ...r } = t;
78258
78258
  return /* @__PURE__ */ vh(n) ? /* @__PURE__ */ l2(n, {
78259
78259
  ...Ggt(r, n.props),
@@ -78304,7 +78304,7 @@ const Wgt = [
78304
78304
  "svg",
78305
78305
  "ul"
78306
78306
  ], Ns = Wgt.reduce((t, e) => {
78307
- const n = /* @__PURE__ */ rn((r, i) => {
78307
+ const n = /* @__PURE__ */ an((r, i) => {
78308
78308
  const { asChild: a, ...s } = r, o = a ? bL : e;
78309
78309
  return He(() => {
78310
78310
  window[Symbol.for("radix-ui")] = !0;
@@ -78340,7 +78340,7 @@ const Qgt = /* @__PURE__ */ Vn({
78340
78340
  layers: /* @__PURE__ */ new Set(),
78341
78341
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
78342
78342
  branches: /* @__PURE__ */ new Set()
78343
- }), Xgt = /* @__PURE__ */ rn((t, e) => {
78343
+ }), Xgt = /* @__PURE__ */ an((t, e) => {
78344
78344
  var n;
78345
78345
  const { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: s, onInteractOutside: o, onDismiss: l, ...c } = t, u = Et(Qgt), [f, d] = Re(null), h = (n = f == null ? void 0 : f.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, p] = Re({}), m = Sy(
78346
78346
  e,
@@ -78463,7 +78463,7 @@ function $K(t, e, n, { discrete: r }) {
78463
78463
  const r9 = "focusScope.autoFocusOnMount", i9 = "focusScope.autoFocusOnUnmount", LP = {
78464
78464
  bubbles: !1,
78465
78465
  cancelable: !0
78466
- }, t3t = /* @__PURE__ */ rn((t, e) => {
78466
+ }, t3t = /* @__PURE__ */ an((t, e) => {
78467
78467
  const { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: a, ...s } = t, [o, l] = Re(null), c = Z1(i), u = Z1(a), f = Xe(null), d = Sy(
78468
78468
  e,
78469
78469
  (m) => l(m)
@@ -78630,7 +78630,7 @@ function o3t(t) {
78630
78630
  (e) => e.tagName !== "A"
78631
78631
  );
78632
78632
  }
78633
- const l3t = /* @__PURE__ */ rn((t, e) => {
78633
+ const l3t = /* @__PURE__ */ an((t, e) => {
78634
78634
  var n;
78635
78635
  const { container: r = globalThis == null || (n = globalThis.document) === null || n === void 0 ? void 0 : n.body, ...i } = t;
78636
78636
  return r ? /* @__PURE__ */ _C.createPortal(/* @__PURE__ */ Ne(Ns.div, Gi({}, i, {
@@ -78960,14 +78960,14 @@ const sJ = "Dialog", [oJ, tqt] = zgt(sJ), [C3t, bf] = oJ(sJ), A3t = (t) => {
78960
78960
  container: i
78961
78961
  }, s))
78962
78962
  ));
78963
- }, Dx = "DialogOverlay", E3t = /* @__PURE__ */ rn((t, e) => {
78963
+ }, Dx = "DialogOverlay", E3t = /* @__PURE__ */ an((t, e) => {
78964
78964
  const n = cJ(Dx, t.__scopeDialog), { forceMount: r = n.forceMount, ...i } = t, a = bf(Dx, t.__scopeDialog);
78965
78965
  return a.modal ? /* @__PURE__ */ Ne(Hv, {
78966
78966
  present: r || a.open
78967
78967
  }, /* @__PURE__ */ Ne(T3t, Gi({}, i, {
78968
78968
  ref: e
78969
78969
  }))) : null;
78970
- }), T3t = /* @__PURE__ */ rn((t, e) => {
78970
+ }), T3t = /* @__PURE__ */ an((t, e) => {
78971
78971
  const { __scopeDialog: n, ...r } = t, i = bf(Dx, n);
78972
78972
  return (
78973
78973
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
@@ -78988,7 +78988,7 @@ const sJ = "Dialog", [oJ, tqt] = zgt(sJ), [C3t, bf] = oJ(sJ), A3t = (t) => {
78988
78988
  }
78989
78989
  })))
78990
78990
  );
78991
- }), Um = "DialogContent", N3t = /* @__PURE__ */ rn((t, e) => {
78991
+ }), Um = "DialogContent", N3t = /* @__PURE__ */ an((t, e) => {
78992
78992
  const n = cJ(Um, t.__scopeDialog), { forceMount: r = n.forceMount, ...i } = t, a = bf(Um, t.__scopeDialog);
78993
78993
  return /* @__PURE__ */ Ne(Hv, {
78994
78994
  present: r || a.open
@@ -78997,7 +78997,7 @@ const sJ = "Dialog", [oJ, tqt] = zgt(sJ), [C3t, bf] = oJ(sJ), A3t = (t) => {
78997
78997
  })) : /* @__PURE__ */ Ne(D3t, Gi({}, i, {
78998
78998
  ref: e
78999
78999
  })));
79000
- }), j3t = /* @__PURE__ */ rn((t, e) => {
79000
+ }), j3t = /* @__PURE__ */ an((t, e) => {
79001
79001
  const n = bf(Um, t.__scopeDialog), r = Xe(null), i = Sy(e, n.contentRef, r);
79002
79002
  return He(() => {
79003
79003
  const a = r.current;
@@ -79019,7 +79019,7 @@ const sJ = "Dialog", [oJ, tqt] = zgt(sJ), [C3t, bf] = oJ(sJ), A3t = (t) => {
79019
79019
  (a) => a.preventDefault()
79020
79020
  )
79021
79021
  }));
79022
- }), D3t = /* @__PURE__ */ rn((t, e) => {
79022
+ }), D3t = /* @__PURE__ */ an((t, e) => {
79023
79023
  const n = bf(Um, t.__scopeDialog), r = Xe(!1), i = Xe(!1);
79024
79024
  return /* @__PURE__ */ Ne(uJ, Gi({}, t, {
79025
79025
  ref: e,
@@ -79040,7 +79040,7 @@ const sJ = "Dialog", [oJ, tqt] = zgt(sJ), [C3t, bf] = oJ(sJ), A3t = (t) => {
79040
79040
  !((o = n.triggerRef.current) === null || o === void 0) && o.contains(l) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && i.current && a.preventDefault();
79041
79041
  }
79042
79042
  }));
79043
- }), uJ = /* @__PURE__ */ rn((t, e) => {
79043
+ }), uJ = /* @__PURE__ */ an((t, e) => {
79044
79044
  const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...s } = t, o = bf(Um, n), l = Xe(null), c = Sy(e, l);
79045
79045
  return f3t(), /* @__PURE__ */ Ne(kc, null, /* @__PURE__ */ Ne(t3t, {
79046
79046
  asChild: !0,
@@ -79440,7 +79440,7 @@ const MJ = N.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ A.jsx(
79440
79440
  }
79441
79441
  ));
79442
79442
  MJ.displayName = va.Item.displayName;
79443
- rn(({ count: t = 0 }, e) => {
79443
+ an(({ count: t = 0 }, e) => {
79444
79444
  const n = t > 9;
79445
79445
  return /* @__PURE__ */ A.jsx(
79446
79446
  "div",
@@ -81785,7 +81785,7 @@ function Ty() {
81785
81785
  throw new Error("useCarousel must be used within a <Carousel />");
81786
81786
  return t;
81787
81787
  }
81788
- const JJ = rn(
81788
+ const JJ = an(
81789
81789
  ({
81790
81790
  orientation: t = "horizontal",
81791
81791
  opts: e,
@@ -81850,7 +81850,7 @@ const JJ = rn(
81850
81850
  }
81851
81851
  );
81852
81852
  JJ.displayName = "Carousel";
81853
- const QJ = rn(({ className: t, ...e }, n) => {
81853
+ const QJ = an(({ className: t, ...e }, n) => {
81854
81854
  const { carouselRef: r, orientation: i } = Ty();
81855
81855
  return /* @__PURE__ */ T.jsx("div", { ref: r, className: "overflow-hidden", children: /* @__PURE__ */ T.jsx(
81856
81856
  "div",
@@ -81866,7 +81866,7 @@ const QJ = rn(({ className: t, ...e }, n) => {
81866
81866
  ) });
81867
81867
  });
81868
81868
  QJ.displayName = "CarouselContent";
81869
- const Vx = rn(
81869
+ const Vx = an(
81870
81870
  ({ className: t, ...e }, n) => {
81871
81871
  const { orientation: r } = Ty();
81872
81872
  return /* @__PURE__ */ T.jsx(
@@ -81886,7 +81886,7 @@ const Vx = rn(
81886
81886
  }
81887
81887
  );
81888
81888
  Vx.displayName = "CarouselItem";
81889
- const XJ = rn(({ index: t, className: e, ...n }, r) => {
81889
+ const XJ = an(({ index: t, className: e, ...n }, r) => {
81890
81890
  const { api: i } = Ty(), [a, s] = Re(0), [, o] = Re([]), l = kt(
81891
81891
  (d) => {
81892
81892
  i && i.scrollTo(d);
@@ -82948,7 +82948,7 @@ const W6 = [
82948
82948
  r.color
82949
82949
  )),
82950
82950
  /* @__PURE__ */ T.jsxs(
82951
- an,
82951
+ rn,
82952
82952
  {
82953
82953
  variant: "ghost",
82954
82954
  onClick: () => {
@@ -83079,9 +83079,9 @@ const W6 = [
83079
83079
  }
83080
83080
  ),
83081
83081
  /* @__PURE__ */ T.jsxs("div", { className: "h-full flex items-center gap-2", children: [
83082
- /* @__PURE__ */ T.jsx(an, { onClick: () => l(), className: "min-w-fit h-[36px]", children: "Apply" }),
83082
+ /* @__PURE__ */ T.jsx(rn, { onClick: () => l(), className: "min-w-fit h-[36px]", children: "Apply" }),
83083
83083
  /* @__PURE__ */ T.jsx(
83084
- an,
83084
+ rn,
83085
83085
  {
83086
83086
  variant: "secondary",
83087
83087
  onClick: () => e.chain().focus().unsetLink().run(),
@@ -83162,7 +83162,7 @@ const W6 = [
83162
83162
  " ",
83163
83163
  "to send a comment"
83164
83164
  ] }),
83165
- /* @__PURE__ */ T.jsx(an, { className: "!min-w-[10px] !h-8 !px-2", onClick: d, children: /* @__PURE__ */ T.jsx(Ze, { name: "SendHorizontal", size: "md" }) })
83165
+ /* @__PURE__ */ T.jsx(rn, { className: "!min-w-[10px] !h-8 !px-2", onClick: d, children: /* @__PURE__ */ T.jsx(Ze, { name: "SendHorizontal", size: "md" }) })
83166
83166
  ] })
83167
83167
  ]
83168
83168
  }
@@ -83192,7 +83192,7 @@ const W6 = [
83192
83192
  }
83193
83193
  ];
83194
83194
  return /* @__PURE__ */ T.jsx("div", { ref: t, className: "z-50 w-48 color-bg-default rounded p-1", children: /* @__PURE__ */ T.jsx("div", { className: "flex flex-col gap-1 justify-center w-fit sm:w-full transition-all", children: n.map((r) => /* @__PURE__ */ T.jsxs(
83195
- an,
83195
+ rn,
83196
83196
  {
83197
83197
  variant: "ghost",
83198
83198
  onClick: () => {
@@ -83248,7 +83248,7 @@ const W6 = [
83248
83248
  r.color
83249
83249
  )),
83250
83250
  /* @__PURE__ */ T.jsxs(
83251
- an,
83251
+ rn,
83252
83252
  {
83253
83253
  variant: "ghost",
83254
83254
  onClick: () => {
@@ -83669,7 +83669,7 @@ const W6 = [
83669
83669
  ] })
83670
83670
  }
83671
83671
  );
83672
- }, Hr = rn(({ icon: t, isActive: e, onClick: n, tooltip: r, classNames: i, disabled: a, size: s }, o) => r ? /* @__PURE__ */ T.jsx(Xn, { text: r, children: /* @__PURE__ */ T.jsx(
83672
+ }, Hr = an(({ icon: t, isActive: e, onClick: n, tooltip: r, classNames: i, disabled: a, size: s }, o) => r ? /* @__PURE__ */ T.jsx(Xn, { text: r, children: /* @__PURE__ */ T.jsx(
83673
83673
  Ln,
83674
83674
  {
83675
83675
  ref: o,
@@ -99490,7 +99490,7 @@ const i$ = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.length
99490
99490
  }
99491
99491
  ),
99492
99492
  /* @__PURE__ */ T.jsx("div", { className: "h-full flex items-center justify-end", children: /* @__PURE__ */ T.jsx(
99493
- an,
99493
+ rn,
99494
99494
  {
99495
99495
  onClick: Y,
99496
99496
  disabled: !k,
@@ -99605,7 +99605,7 @@ const i$ = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.length
99605
99605
  }
99606
99606
  ),
99607
99607
  /* @__PURE__ */ T.jsx("div", { className: "h-full flex justify-end pt-2", children: /* @__PURE__ */ T.jsx(
99608
- an,
99608
+ rn,
99609
99609
  {
99610
99610
  onClick: se,
99611
99611
  className: "px-4 py-2 w-20 min-w-20 h-9",
@@ -100591,7 +100591,7 @@ const d5 = qt.create({
100591
100591
  for (c.tagName || (c = l.parentElement); c && !(c.getAttribute("data-type") && c.getAttribute("data-type") === e) && !c.classList.contains(e); )
100592
100592
  c = c.parentElement;
100593
100593
  return c;
100594
- }, oE = rn(
100594
+ }, oE = an(
100595
100595
  ({ children: t, className: e, withShadow: n = !0, withBorder: r = !1, ...i }, a) => {
100596
100596
  const s = Me(
100597
100597
  e,
@@ -100603,7 +100603,7 @@ const d5 = qt.create({
100603
100603
  }
100604
100604
  );
100605
100605
  oE.displayName = "Surface";
100606
- const h$ = rn(
100606
+ const h$ = an(
100607
100607
  ({
100608
100608
  shouldShowContent: t = !0,
100609
100609
  children: e,
@@ -100620,7 +100620,7 @@ const h$ = rn(
100620
100620
  }
100621
100621
  );
100622
100622
  h$.displayName = "Toolbar";
100623
- const Xwt = rn(
100623
+ const Xwt = an(
100624
100624
  ({ horizontal: t, className: e, ...n }, r) => {
100625
100625
  const i = Ot(
100626
100626
  "bg-neutral-200",
@@ -114216,7 +114216,7 @@ const rSt = xr.create({
114216
114216
  icon: "Trash2",
114217
114217
  delete: (t) => t()
114218
114218
  }
114219
- ], ySt = rn(
114219
+ ], ySt = an(
114220
114220
  ({
114221
114221
  encryptedKey: t,
114222
114222
  url: e,
@@ -116285,7 +116285,7 @@ const us = (t) => {
116285
116285
  }
116286
116286
  ], HSt = (t, e, n, r, i) => /* @__PURE__ */ T.jsxs(NA, { className: "template-buttons space-x-0 gap-2 absolute top-8 left-0 md:!left-[unset] md:-translate-y-1 md:!right-0 md:!top-0 z-40", children: [
116287
116287
  t.map((a, s) => /* @__PURE__ */ T.jsxs(
116288
- an,
116288
+ rn,
116289
116289
  {
116290
116290
  onClick: a.onClick,
116291
116291
  variant: "ghost",
@@ -116303,7 +116303,7 @@ const us = (t) => {
116303
116303
  align: "end",
116304
116304
  sideOffset: 10,
116305
116305
  anchorTrigger: /* @__PURE__ */ T.jsx(
116306
- an,
116306
+ rn,
116307
116307
  {
116308
116308
  variant: "ghost",
116309
116309
  className: "gap-2 color-bg-default-hover text-body-sm color-text-default rounded-lg hover:brightness-95 transition-all w-full min-w-0 !p-[10px]",
@@ -116312,7 +116312,7 @@ const us = (t) => {
116312
116312
  ),
116313
116313
  content: /* @__PURE__ */ T.jsxs("div", { className: "flex flex-col gap-1 p-2 w-[12rem]", children: [
116314
116314
  /* @__PURE__ */ T.jsx("div", { className: "max-h-44 overflow-auto gap-1 flex flex-col", children: e.slice(0, n).map((a, s) => /* @__PURE__ */ T.jsxs(
116315
- an,
116315
+ rn,
116316
116316
  {
116317
116317
  onClick: a.onClick,
116318
116318
  variant: "ghost",
@@ -116326,7 +116326,7 @@ const us = (t) => {
116326
116326
  )) }),
116327
116327
  /* @__PURE__ */ T.jsx(Wm, { className: "w-full !border-t-[1px]" }),
116328
116328
  /* @__PURE__ */ T.jsxs(
116329
- an,
116329
+ rn,
116330
116330
  {
116331
116331
  variant: "ghost",
116332
116332
  className: "justify-between gap-2 text-body-sm color-text-default min-w-fit px-2 rounded-lg",
@@ -116545,7 +116545,7 @@ const us = (t) => {
116545
116545
  className: "z-10 shadow-elevation-3",
116546
116546
  children: /* @__PURE__ */ T.jsxs(oE, { className: "p-2 flex flex-col min-w-[16rem]", children: [
116547
116547
  /* @__PURE__ */ T.jsx(kg, { asChild: !0, children: /* @__PURE__ */ T.jsxs(
116548
- an,
116548
+ rn,
116549
116549
  {
116550
116550
  variant: "ghost",
116551
116551
  onClick: o.resetTextFormatting,
@@ -116557,7 +116557,7 @@ const us = (t) => {
116557
116557
  }
116558
116558
  ) }),
116559
116559
  /* @__PURE__ */ T.jsx(kg, { asChild: !0, children: /* @__PURE__ */ T.jsxs(
116560
- an,
116560
+ rn,
116561
116561
  {
116562
116562
  variant: "ghost",
116563
116563
  onClick: o.copyNodeToClipboard,
@@ -116569,7 +116569,7 @@ const us = (t) => {
116569
116569
  }
116570
116570
  ) }),
116571
116571
  /* @__PURE__ */ T.jsx(kg, { asChild: !0, children: /* @__PURE__ */ T.jsxs(
116572
- an,
116572
+ rn,
116573
116573
  {
116574
116574
  variant: "ghost",
116575
116575
  onClick: o.duplicateNode,
@@ -116581,7 +116581,7 @@ const us = (t) => {
116581
116581
  }
116582
116582
  ) }),
116583
116583
  /* @__PURE__ */ T.jsx(kg, { asChild: !0, children: /* @__PURE__ */ T.jsxs(
116584
- an,
116584
+ rn,
116585
116585
  {
116586
116586
  variant: "ghost",
116587
116587
  onClick: o.deleteNode,
@@ -118552,7 +118552,7 @@ function ZLt(t) {
118552
118552
  return e;
118553
118553
  }
118554
118554
  var YLt = function(t, e) {
118555
- return /* @__PURE__ */ rn(function(r, i) {
118555
+ return /* @__PURE__ */ an(function(r, i) {
118556
118556
  var a = r.children, s = kte(r, ["children"]);
118557
118557
  return (
118558
118558
  // If I spread them separately here, Babel adds the _extends ponyfill for
@@ -118716,7 +118716,7 @@ const JLt = [
118716
118716
  className: "static z-50 top-8 right-1/2 translate-x-1/2 lg:-translate-x-full p-2 shadow-elevation-3 color-bg-default rounded-lg w-56 border color-border-default",
118717
118717
  style: c(),
118718
118718
  children: JLt.map((u) => /* @__PURE__ */ T.jsx("div", { children: /* @__PURE__ */ T.jsx(
118719
- an,
118719
+ rn,
118720
118720
  {
118721
118721
  variant: "ghost",
118722
118722
  className: "!items-center w-full !justify-start !font-[400]",
@@ -140751,7 +140751,7 @@ function eBt({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVi
140751
140751
  return T.jsxs(F7.Provider, { value: p, children: [f && p.visualElement ? T.jsx(f, { visualElement: p.visualElement, ...d }) : null, n(i, c, Jzt(m, p.visualElement, u), m, h, p.visualElement)] });
140752
140752
  }
140753
140753
  o.displayName = `motion.${typeof i == "string" ? i : `create(${(s = (a = i.displayName) !== null && a !== void 0 ? a : i.name) !== null && s !== void 0 ? s : ""})`}`;
140754
- const l = rn(o);
140754
+ const l = an(o);
140755
140755
  return l[Kzt] = i, l;
140756
140756
  }
140757
140757
  function tBt({ layoutId: t }) {
@@ -146204,7 +146204,7 @@ const MF = ({
146204
146204
  }
146205
146205
  ),
146206
146206
  /* @__PURE__ */ T.jsx(
146207
- an,
146207
+ rn,
146208
146208
  {
146209
146209
  onClick: () => i == null ? void 0 : i(t),
146210
146210
  disabled: !t || s,
@@ -146236,12 +146236,12 @@ const MF = ({
146236
146236
  )
146237
146237
  ] }),
146238
146238
  /* @__PURE__ */ T.jsx("div", { className: "text-center", children: /* @__PURE__ */ T.jsxs(
146239
- "button",
146239
+ rn,
146240
146240
  {
146241
146241
  onClick: r ? () => {
146242
146242
  } : a,
146243
146243
  disabled: s,
146244
- className: "bg-[#F0F6FF] disabled:opacity-50 disabled:cursor-not-allowed disabled:color-bg-disabled h-10 flex gap-2 items-center justify-center p-3 w-full text-[#388CFB] font-medium rounded",
146244
+ className: "custom-ens-button",
146245
146245
  children: [
146246
146246
  /* @__PURE__ */ T.jsx("img", { alt: "ens-logo", src: s7 }),
146247
146247
  " ",
@@ -146394,7 +146394,7 @@ const MF = ({
146394
146394
  re.resolved && "hidden"
146395
146395
  ),
146396
146396
  children: h !== re.id ? /* @__PURE__ */ T.jsxs(
146397
- an,
146397
+ rn,
146398
146398
  {
146399
146399
  onClick: (de) => {
146400
146400
  de.stopPropagation(), f(re.id);
@@ -146435,7 +146435,7 @@ const MF = ({
146435
146435
  ),
146436
146436
  re.id === t && /* @__PURE__ */ T.jsxs(NA, { className: "w-full justify-end", children: [
146437
146437
  /* @__PURE__ */ T.jsx(
146438
- an,
146438
+ rn,
146439
146439
  {
146440
146440
  variant: "ghost",
146441
146441
  className: "px-4 py-2 w-20 min-w-20 h-9",
@@ -146446,7 +146446,7 @@ const MF = ({
146446
146446
  }
146447
146447
  ),
146448
146448
  /* @__PURE__ */ T.jsx(
146449
- an,
146449
+ rn,
146450
146450
  {
146451
146451
  className: "px-4 py-2 w-20 min-w-20 h-9",
146452
146452
  disabled: !k.trim(),
@@ -146501,7 +146501,7 @@ const MF = ({
146501
146501
  }
146502
146502
  ),
146503
146503
  /* @__PURE__ */ T.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ T.jsx(
146504
- an,
146504
+ rn,
146505
146505
  {
146506
146506
  onClick: b,
146507
146507
  className: "px-4 py-2 w-20 min-w-20 h-9",
@@ -146841,7 +146841,7 @@ const MF = ({
146841
146841
  ]
146842
146842
  }
146843
146843
  );
146844
- }, hqt = rn(
146844
+ }, hqt = an(
146845
146845
  ({
146846
146846
  isPreviewMode: t = !1,
146847
146847
  initialContent: e,
@@ -147226,7 +147226,7 @@ const MF = ({
147226
147226
  oe
147227
147227
  )),
147228
147228
  Pt > 0 && !Ht && /* @__PURE__ */ T.jsxs(
147229
- an,
147229
+ rn,
147230
147230
  {
147231
147231
  variant: "ghost",
147232
147232
  className: "!h-6 rounded min-w-fit !px-2 color-bg-secondary text-helper-text-sm",
@@ -147283,7 +147283,7 @@ const MF = ({
147283
147283
  }
147284
147284
  ),
147285
147285
  h && !qe && /* @__PURE__ */ T.jsx(
147286
- an,
147286
+ rn,
147287
147287
  {
147288
147288
  ref: ln,
147289
147289
  onClick: () => {
@@ -147347,7 +147347,7 @@ const MF = ({
147347
147347
  }
147348
147348
  );
147349
147349
  }
147350
- ), pqt = rn(
147350
+ ), pqt = an(
147351
147351
  ({
147352
147352
  isPreviewMode: t = !1,
147353
147353
  initialContent: e,
@@ -147457,7 +147457,7 @@ const MF = ({
147457
147457
  Z
147458
147458
  )),
147459
147459
  I > 0 && !x && /* @__PURE__ */ T.jsxs(
147460
- an,
147460
+ rn,
147461
147461
  {
147462
147462
  variant: "ghost",
147463
147463
  className: "!h-6 rounded min-w-fit !px-2 color-bg-secondary text-helper-text-sm",