@iclips/ui 1.0.40 → 1.0.42

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.js CHANGED
@@ -1,10 +1,10 @@
1
- import { jsx as l, jsxs as v, Fragment as rt } from "react/jsx-runtime";
1
+ import { jsx as l, jsxs as v, Fragment as Ze } from "react/jsx-runtime";
2
2
  import * as ya from "@radix-ui/react-accordion";
3
3
  import { ChevronDownIcon as qs, Home as P4, Folder as R4, Users as B4, Calendar as di, BarChart3 as H4, Settings as S1, Pin as I1, Plus as qn, LayoutGrid as U4, FileText as T1, Star as j1, MessageSquare as Gc, Download as _c, Sparkles as F4, ChevronRight as Xt, Zap as J4, PanelLeftClose as Ks, PanelLeft as Y4, Bell as Q4, CheckIcon as Xs, CircleIcon as Wc, ChevronRightIcon as ef, User as tf, HelpCircle as V4, LogOut as G4, ChevronDown as $a, MoreHorizontal as D1, ChevronLeft as nf, Printer as _4, Eye as E1, ArrowRight as A1, ArrowLeft as W4, Check as z1, Smile as O1, Trash2 as P1, AlertCircle as gr, Paperclip as Ma, X as xa, Type as $4, Send as Z4, Bold as R1, Italic as B1, Underline as H1, List as U1, ListOrdered as F1, Link as J1, ChevronUpIcon as q4, Clock as ri, CalendarIcon as Zo, MoreVertical as K4, CheckSquare as X4, Activity as ev, TrendingUp as tv, TrendingDown as nv, XIcon as Y1, SearchIcon as rv, Undo as iv, Redo as av, Heading1 as ov, Heading2 as sv, Heading3 as fv, Strikethrough as lv, AlignLeft as cv, AlignCenter as dv, AlignRight as uv, Quote as hv, Image as pv, PanelLeftOpen as $c, Youtube as mv, Twitter as gv, Facebook as bv, Linkedin as vv, Instagram as wv, GripVertical as yv, CheckCircle2 as Mv, Circle as Q1, Edit as Gl, MinusIcon as xv, ChevronUp as Cv, EyeOff as Lv, Euro as Nv, DollarSign as kv, Coins as Sv, MoreHorizontalIcon as Iv, ChevronLeftIcon as Tv, GripVerticalIcon as jv, PanelLeftIcon as Dv, Github as Ev, ChevronsLeft as Av, ChevronsRight as zv, Filter as V1, Search as G1, ArrowUpDown as Ov, Link2 as Pv, Pencil as Rv, RefreshCw as Bv, PlusCircle as Hv } from "lucide-react";
4
4
  import { clsx as Uv } from "clsx";
5
5
  import { twMerge as Fv } from "tailwind-merge";
6
6
  import * as T from "react";
7
- import dt, { useState as ne, useRef as ze, useDebugValue as _1, useEffect as ue, forwardRef as W1, useLayoutEffect as Zc, version as Iu, createContext as Si, useContext as qe, useImperativeHandle as Jv, createElement as O, memo as qc, createRef as cn, Fragment as Kc, useCallback as Je, useMemo as we, Suspense as Yv, Component as Qv, isValidElement as Vv, cloneElement as Tu } from "react";
7
+ import dt, { useState as ne, useRef as ze, useDebugValue as _1, useEffect as ue, forwardRef as W1, useLayoutEffect as Zc, version as Iu, createContext as Si, useContext as Ke, useImperativeHandle as Jv, createElement as O, memo as qc, createRef as cn, Fragment as Kc, useCallback as Je, useMemo as we, Suspense as Yv, Component as Qv, isValidElement as Vv, cloneElement as Tu } from "react";
8
8
  import * as on from "@radix-ui/react-alert-dialog";
9
9
  import { Slot as Sn } from "@radix-ui/react-slot";
10
10
  import { cva as sn } from "class-variance-authority";
@@ -1046,7 +1046,7 @@ function a8({
1046
1046
  ),
1047
1047
  children: [
1048
1048
  /* @__PURE__ */ l(x, { className: "h-4 w-4 shrink-0" }),
1049
- m && /* @__PURE__ */ v(rt, { children: [
1049
+ m && /* @__PURE__ */ v(Ze, { children: [
1050
1050
  /* @__PURE__ */ l("span", { className: "flex-1 text-left", children: w.label }),
1051
1051
  C && /* @__PURE__ */ l(
1052
1052
  $a,
@@ -1966,10 +1966,11 @@ function uy(t) {
1966
1966
  function rp({
1967
1967
  logo: t,
1968
1968
  companyName: e = "iClips",
1969
- contactInfo: n,
1970
- documentType: r,
1971
- documentNumber: i,
1972
- issueDate: a
1969
+ customHeader: n,
1970
+ contactInfo: r,
1971
+ documentType: i,
1972
+ documentNumber: a,
1973
+ issueDate: o
1973
1974
  }) {
1974
1975
  return /* @__PURE__ */ l("div", { className: "print-header border-b-2 border-primary pb-6 mb-8", children: /* @__PURE__ */ v("div", { className: "flex items-start justify-between", children: [
1975
1976
  /* @__PURE__ */ v("div", { className: "flex items-start gap-4", children: [
@@ -1981,34 +1982,34 @@ function rp({
1981
1982
  className: "w-full h-full object-contain"
1982
1983
  }
1983
1984
  ) }),
1984
- /* @__PURE__ */ v("div", { className: "space-y-1", children: [
1985
+ /* @__PURE__ */ l("div", { className: "space-y-1", children: n ? /* @__PURE__ */ l("div", { className: "text-sm text-gray-700 whitespace-pre-line", children: n }) : /* @__PURE__ */ v(Ze, { children: [
1985
1986
  /* @__PURE__ */ l("h2", { className: "text-xl font-semibold text-primary", children: e }),
1986
- n && /* @__PURE__ */ v("div", { className: "text-xs text-gray-600 space-y-0.5", children: [
1987
- n.address && /* @__PURE__ */ l("p", { children: n.address }),
1988
- n.phone && /* @__PURE__ */ v("p", { children: [
1987
+ r && /* @__PURE__ */ v("div", { className: "text-xs text-gray-600 space-y-0.5", children: [
1988
+ r.address && /* @__PURE__ */ l("p", { children: r.address }),
1989
+ r.phone && /* @__PURE__ */ v("p", { children: [
1989
1990
  "Tel: ",
1990
- n.phone
1991
+ r.phone
1991
1992
  ] }),
1992
- n.email && /* @__PURE__ */ v("p", { children: [
1993
+ r.email && /* @__PURE__ */ v("p", { children: [
1993
1994
  "Email: ",
1994
- n.email
1995
+ r.email
1995
1996
  ] }),
1996
- n.website && /* @__PURE__ */ v("p", { children: [
1997
+ r.website && /* @__PURE__ */ v("p", { children: [
1997
1998
  "Site: ",
1998
- n.website
1999
+ r.website
1999
2000
  ] })
2000
2001
  ] })
2001
- ] })
2002
+ ] }) })
2002
2003
  ] }),
2003
- (r || i || a) && /* @__PURE__ */ v("div", { className: "text-right space-y-1", children: [
2004
- r && /* @__PURE__ */ l("h3", { className: "text-lg font-semibold text-gray-900", children: r }),
2005
- i && /* @__PURE__ */ v("p", { className: "text-sm text-gray-600", children: [
2004
+ (i || a || o) && /* @__PURE__ */ v("div", { className: "text-right space-y-1", children: [
2005
+ i && /* @__PURE__ */ l("h3", { className: "text-lg font-semibold text-gray-900", children: i }),
2006
+ a && /* @__PURE__ */ v("p", { className: "text-sm text-gray-600", children: [
2006
2007
  "Nº ",
2007
- i
2008
+ a
2008
2009
  ] }),
2009
- a && /* @__PURE__ */ v("p", { className: "text-xs text-gray-500", children: [
2010
+ o && /* @__PURE__ */ v("p", { className: "text-xs text-gray-500", children: [
2010
2011
  "Emitido em: ",
2011
- a
2012
+ o
2012
2013
  ] })
2013
2014
  ] })
2014
2015
  ] }) });
@@ -2228,6 +2229,7 @@ function sp({
2228
2229
  {
2229
2230
  logo: n,
2230
2231
  companyName: t.agencia.nome,
2232
+ customHeader: t.agencia.cabecalho,
2231
2233
  contactInfo: {
2232
2234
  address: t.agencia.endereco,
2233
2235
  phone: t.agencia.telefone,
@@ -2265,10 +2267,12 @@ function sp({
2265
2267
  value: i(t.valorFee),
2266
2268
  highlight: !0
2267
2269
  },
2268
- {
2269
- label: "Total de Horas",
2270
- value: `${t.totalHoras}h/mês`
2271
- }
2270
+ ...r ? [
2271
+ {
2272
+ label: "Total de Horas",
2273
+ value: `${t.totalHoras}h/mês`
2274
+ }
2275
+ ] : []
2272
2276
  ]
2273
2277
  }
2274
2278
  ) }),
@@ -2347,10 +2351,12 @@ function sp({
2347
2351
  value: i(t.valorFee),
2348
2352
  highlight: !0
2349
2353
  },
2350
- {
2351
- label: "Total de Horas Mensais",
2352
- value: `${t.totalHoras} horas`
2353
- },
2354
+ ...r ? [
2355
+ {
2356
+ label: "Total de Horas Mensais",
2357
+ value: `${t.totalHoras} horas`
2358
+ }
2359
+ ] : [],
2354
2360
  ...t.valorHora ? [
2355
2361
  {
2356
2362
  label: "Valor da Hora Adicional",
@@ -2991,7 +2997,7 @@ function w8({
2991
2997
  "[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
2992
2998
  r === "dot" && "items-center"
2993
2999
  ),
2994
- children: c && (b == null ? void 0 : b.value) !== void 0 && b.name ? c(b.value, b.name, b, w, b.payload) : /* @__PURE__ */ v(rt, { children: [
3000
+ children: c && (b == null ? void 0 : b.value) !== void 0 && b.name ? c(b.value, b.name, b, w, b.payload) : /* @__PURE__ */ v(Ze, { children: [
2995
3001
  C != null && C.icon ? /* @__PURE__ */ l(C.icon, {}) : !a && /* @__PURE__ */ l(
2996
3002
  "div",
2997
3003
  {
@@ -3115,9 +3121,9 @@ function ct({
3115
3121
  }) {
3116
3122
  return /* @__PURE__ */ l(Gn.Root, { "data-slot": "popover", ...t });
3117
3123
  }
3118
- const tt = T.forwardRef((t, e) => /* @__PURE__ */ l(Gn.Trigger, { ref: e, "data-slot": "popover-trigger", ...t }));
3119
- tt.displayName = Gn.Trigger.displayName;
3120
- const nt = T.forwardRef(({ className: t, align: e = "center", sideOffset: n = 4, ...r }, i) => /* @__PURE__ */ l(Gn.Portal, { children: /* @__PURE__ */ l(
3124
+ const nt = T.forwardRef((t, e) => /* @__PURE__ */ l(Gn.Trigger, { ref: e, "data-slot": "popover-trigger", ...t }));
3125
+ nt.displayName = Gn.Trigger.displayName;
3126
+ const rt = T.forwardRef(({ className: t, align: e = "center", sideOffset: n = 4, ...r }, i) => /* @__PURE__ */ l(Gn.Portal, { children: /* @__PURE__ */ l(
3121
3127
  Gn.Content,
3122
3128
  {
3123
3129
  ref: i,
@@ -3131,7 +3137,7 @@ const nt = T.forwardRef(({ className: t, align: e = "center", sideOffset: n = 4,
3131
3137
  ...r
3132
3138
  }
3133
3139
  ) }));
3134
- nt.displayName = Gn.Content.displayName;
3140
+ rt.displayName = Gn.Content.displayName;
3135
3141
  const vy = T.forwardRef((t, e) => /* @__PURE__ */ l(Gn.Anchor, { ref: e, "data-slot": "popover-anchor", ...t }));
3136
3142
  vy.displayName = Gn.Anchor.displayName;
3137
3143
  function _n({ className: t, type: e, ...n }) {
@@ -3189,7 +3195,7 @@ function x8({
3189
3195
  n && /* @__PURE__ */ l(We, { children: n }),
3190
3196
  /* @__PURE__ */ v("div", { className: "flex gap-2", children: [
3191
3197
  /* @__PURE__ */ v(ct, { open: s, onOpenChange: f, children: [
3192
- /* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ l(
3198
+ /* @__PURE__ */ l(nt, { asChild: !0, children: /* @__PURE__ */ l(
3193
3199
  B,
3194
3200
  {
3195
3201
  type: "button",
@@ -3201,7 +3207,7 @@ function x8({
3201
3207
  children: /* @__PURE__ */ l("span", { className: "sr-only", children: "Selecionar cor" })
3202
3208
  }
3203
3209
  ) }),
3204
- /* @__PURE__ */ l(nt, { className: "w-64 p-3", align: "start", children: /* @__PURE__ */ v("div", { className: "space-y-3", children: [
3210
+ /* @__PURE__ */ l(rt, { className: "w-64 p-3", align: "start", children: /* @__PURE__ */ v("div", { className: "space-y-3", children: [
3205
3211
  /* @__PURE__ */ l(
3206
3212
  $v,
3207
3213
  {
@@ -6463,7 +6469,7 @@ class Ta {
6463
6469
  }
6464
6470
  }
6465
6471
  const al = /* @__PURE__ */ Object.create(null);
6466
- class Ke {
6472
+ class Xe {
6467
6473
  /**
6468
6474
  Get the step map that represents the changes made by this step,
6469
6475
  and which can be used to transform between positions in the old
@@ -6546,7 +6552,7 @@ function ad(t, e, n) {
6546
6552
  }
6547
6553
  return E.fromArray(r);
6548
6554
  }
6549
- class Hn extends Ke {
6555
+ class Hn extends Xe {
6550
6556
  /**
6551
6557
  Create a mark step.
6552
6558
  */
@@ -6584,8 +6590,8 @@ class Hn extends Ke {
6584
6590
  return new Hn(n.from, n.to, e.markFromJSON(n.mark));
6585
6591
  }
6586
6592
  }
6587
- Ke.jsonID("addMark", Hn);
6588
- class Gt extends Ke {
6593
+ Xe.jsonID("addMark", Hn);
6594
+ class Gt extends Xe {
6589
6595
  /**
6590
6596
  Create a mark-removing step.
6591
6597
  */
@@ -6623,8 +6629,8 @@ class Gt extends Ke {
6623
6629
  return new Gt(n.from, n.to, e.markFromJSON(n.mark));
6624
6630
  }
6625
6631
  }
6626
- Ke.jsonID("removeMark", Gt);
6627
- class Un extends Ke {
6632
+ Xe.jsonID("removeMark", Gt);
6633
+ class Un extends Xe {
6628
6634
  /**
6629
6635
  Create a node mark step.
6630
6636
  */
@@ -6667,8 +6673,8 @@ class Un extends Ke {
6667
6673
  return new Un(n.pos, e.markFromJSON(n.mark));
6668
6674
  }
6669
6675
  }
6670
- Ke.jsonID("addNodeMark", Un);
6671
- class kr extends Ke {
6676
+ Xe.jsonID("addNodeMark", Un);
6677
+ class kr extends Xe {
6672
6678
  /**
6673
6679
  Create a mark-removing step.
6674
6680
  */
@@ -6702,8 +6708,8 @@ class kr extends Ke {
6702
6708
  return new kr(n.pos, e.markFromJSON(n.mark));
6703
6709
  }
6704
6710
  }
6705
- Ke.jsonID("removeNodeMark", kr);
6706
- class Oe extends Ke {
6711
+ Xe.jsonID("removeNodeMark", kr);
6712
+ class Oe extends Xe {
6707
6713
  /**
6708
6714
  The given `slice` should fit the 'gap' between `from` and
6709
6715
  `to`—the depths must line up, and the surrounding nodes must be
@@ -6754,8 +6760,8 @@ class Oe extends Ke {
6754
6760
  return new Oe(n.from, n.to, U.fromJSON(e, n.slice), !!n.structure);
6755
6761
  }
6756
6762
  }
6757
- Ke.jsonID("replace", Oe);
6758
- class Re extends Ke {
6763
+ Xe.jsonID("replace", Oe);
6764
+ class Re extends Xe {
6759
6765
  /**
6760
6766
  Create a replace-around step with the given range and gap.
6761
6767
  `insert` should be the point in the slice into which the content
@@ -6812,7 +6818,7 @@ class Re extends Ke {
6812
6818
  return new Re(n.from, n.to, n.gapFrom, n.gapTo, U.fromJSON(e, n.slice), n.insert, !!n.structure);
6813
6819
  }
6814
6820
  }
6815
- Ke.jsonID("replaceAround", Re);
6821
+ Xe.jsonID("replaceAround", Re);
6816
6822
  function ec(t, e, n) {
6817
6823
  let r = t.resolve(e), i = n - e, a = r.depth;
6818
6824
  for (; i > 0 && a > 0 && r.indexAfter(a) == r.node(a).childCount; )
@@ -7399,7 +7405,7 @@ function Jp(t, e) {
7399
7405
  }
7400
7406
  return n;
7401
7407
  }
7402
- class si extends Ke {
7408
+ class si extends Xe {
7403
7409
  /**
7404
7410
  Construct an attribute step.
7405
7411
  */
@@ -7436,8 +7442,8 @@ class si extends Ke {
7436
7442
  return new si(n.pos, n.attr, n.value);
7437
7443
  }
7438
7444
  }
7439
- Ke.jsonID("attr", si);
7440
- class ja extends Ke {
7445
+ Xe.jsonID("attr", si);
7446
+ class ja extends Xe {
7441
7447
  /**
7442
7448
  Construct an attribute step.
7443
7449
  */
@@ -7470,7 +7476,7 @@ class ja extends Ke {
7470
7476
  return new ja(n.attr, n.value);
7471
7477
  }
7472
7478
  }
7473
- Ke.jsonID("docAttr", ja);
7479
+ Xe.jsonID("docAttr", ja);
7474
7480
  let hi = class extends Error {
7475
7481
  };
7476
7482
  hi = function t(e) {
@@ -9070,7 +9076,7 @@ function Y3(t, e, n) {
9070
9076
  }
9071
9077
  const nn = typeof navigator < "u" ? navigator : null, o0 = typeof document < "u" ? document : null, er = nn && nn.userAgent || "", nc = /Edge\/(\d+)/.exec(er), im = /MSIE \d/.exec(er), rc = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(er), ut = !!(im || rc || nc), Yn = im ? document.documentMode : rc ? +rc[1] : nc ? +nc[1] : 0, Ot = !ut && /gecko\/(\d+)/i.test(er);
9072
9078
  Ot && +(/Firefox\/(\d+)/.exec(er) || [0, 0])[1];
9073
- const ic = !ut && /Chrome\/(\d+)/.exec(er), Pe = !!ic, am = ic ? +ic[1] : 0, Ze = !ut && !!nn && /Apple Computer/.test(nn.vendor), gi = Ze && (/Mobile\/\w+/.test(er) || !!nn && nn.maxTouchPoints > 2), Tt = gi || (nn ? /Mac/.test(nn.platform) : !1), om = nn ? /Win/.test(nn.platform) : !1, Cn = /Android \d/.test(er), qa = !!o0 && "webkitFontSmoothing" in o0.documentElement.style, Q3 = qa ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
9079
+ const ic = !ut && /Chrome\/(\d+)/.exec(er), Pe = !!ic, am = ic ? +ic[1] : 0, qe = !ut && !!nn && /Apple Computer/.test(nn.vendor), gi = qe && (/Mobile\/\w+/.test(er) || !!nn && nn.maxTouchPoints > 2), Tt = gi || (nn ? /Mac/.test(nn.platform) : !1), om = nn ? /Win/.test(nn.platform) : !1, Cn = /Android \d/.test(er), qa = !!o0 && "webkitFontSmoothing" in o0.documentElement.style, Q3 = qa ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
9074
9080
  function V3(t) {
9075
9081
  let e = t.defaultView && t.defaultView.visualViewport;
9076
9082
  return e ? {
@@ -9258,7 +9264,7 @@ function eM(t, e) {
9258
9264
  if (!pd(e, c) || (o = cm(t.dom, e, c), !o))
9259
9265
  return null;
9260
9266
  }
9261
- if (Ze)
9267
+ if (qe)
9262
9268
  for (let c = o; r && c; c = mi(c))
9263
9269
  c.draggable && (r = void 0);
9264
9270
  if (o = q3(o, e), r) {
@@ -9666,7 +9672,7 @@ class Ka {
9666
9672
  m = b;
9667
9673
  }
9668
9674
  let s = this.domFromPos(e, e ? -1 : 1), f = n == e ? s : this.domFromPos(n, n ? -1 : 1), c = r.root.getSelection(), d = r.domSelectionRange(), u = !1;
9669
- if ((Ot || Ze) && e == n) {
9675
+ if ((Ot || qe) && e == n) {
9670
9676
  let { node: h, offset: m } = s;
9671
9677
  if (h.nodeType == 3) {
9672
9678
  if (u = !!(m && h.nodeValue[m - 1] == `
@@ -9689,7 +9695,7 @@ class Ka {
9689
9695
  let h = d.focusNode.childNodes[d.focusOffset];
9690
9696
  h && h.contentEditable == "false" && (i = !0);
9691
9697
  }
9692
- if (!(i || u && Ze) && Sr(s.node, s.offset, d.anchorNode, d.anchorOffset) && Sr(f.node, f.offset, d.focusNode, d.focusOffset))
9698
+ if (!(i || u && qe) && Sr(s.node, s.offset, d.anchorNode, d.anchorOffset) && Sr(f.node, f.offset, d.focusNode, d.focusOffset))
9693
9699
  return;
9694
9700
  let p = !1;
9695
9701
  if ((c.extend || e == n) && !(u && Ot)) {
@@ -10294,7 +10300,7 @@ class lM {
10294
10300
  for (; e instanceof Ir; )
10295
10301
  n = e, e = n.children[n.children.length - 1];
10296
10302
  (!e || // Empty textblock
10297
- !(e instanceof gf) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Ze || Pe) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
10303
+ !(e instanceof gf) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((qe || Pe) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
10298
10304
  }
10299
10305
  addHackNode(e, n) {
10300
10306
  if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(e))
@@ -10486,10 +10492,10 @@ function Nn(t, e = !1) {
10486
10492
  t.domObserver.setCurSelection(), t.domObserver.connectSelection();
10487
10493
  }
10488
10494
  }
10489
- const m0 = Ze || Pe && am < 63;
10495
+ const m0 = qe || Pe && am < 63;
10490
10496
  function g0(t, e) {
10491
10497
  let { node: n, offset: r } = t.docView.domFromPos(e, 0), i = r < n.childNodes.length ? n.childNodes[r] : null, a = r ? n.childNodes[r - 1] : null;
10492
- if (Ze && i && i.contentEditable == "false")
10498
+ if (qe && i && i.contentEditable == "false")
10493
10499
  return ul(i);
10494
10500
  if ((!i || i.contentEditable == "false") && (!a || a.contentEditable == "false")) {
10495
10501
  if (i)
@@ -10499,7 +10505,7 @@ function g0(t, e) {
10499
10505
  }
10500
10506
  }
10501
10507
  function ul(t) {
10502
- return t.contentEditable = "true", Ze && t.draggable && (t.draggable = !1, t.wasDraggable = !0), t;
10508
+ return t.contentEditable = "true", qe && t.draggable && (t.draggable = !1, t.wasDraggable = !0), t;
10503
10509
  }
10504
10510
  function b0(t) {
10505
10511
  t.contentEditable = "false", t.wasDraggable && (t.draggable = !0, t.wasDraggable = null);
@@ -10766,7 +10772,7 @@ function L0(t, e, n) {
10766
10772
  t.domObserver.stop(), e.contentEditable = n, t.domObserver.start();
10767
10773
  }
10768
10774
  function xM(t) {
10769
- if (!Ze || t.state.selection.$head.parentOffset > 0)
10775
+ if (!qe || t.state.selection.$head.parentOffset > 0)
10770
10776
  return !1;
10771
10777
  let { focusNode: e, focusOffset: n } = t.domSelectionRange();
10772
10778
  if (e && e.nodeType == 1 && n == 0 && e.firstChild && e.firstChild.contentEditable == "false") {
@@ -11006,7 +11012,7 @@ function AM(t) {
11006
11012
  OM(t, r) && !vd(t, r) && (t.editable || !(r.type in ot)) && n(t, r);
11007
11013
  }, DM[e] ? { passive: !0 } : void 0);
11008
11014
  }
11009
- Ze && t.dom.addEventListener("input", () => null), cc(t);
11015
+ qe && t.dom.addEventListener("input", () => null), cc(t);
11010
11016
  }
11011
11017
  function Fn(t, e) {
11012
11018
  t.input.lastSelectionOrigin = e, t.input.lastSelectionTime = Date.now();
@@ -11181,7 +11187,7 @@ class QM {
11181
11187
  return;
11182
11188
  let n = this.pos;
11183
11189
  this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(bf(e))), this.updateAllowDefault(e), this.allowDefault || !n ? Fn(this.view, "pointer") : UM(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
11184
- Ze && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
11190
+ qe && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
11185
11191
  // cursor, but still report that the node is selected
11186
11192
  // when asked through getSelection. You'll then get a
11187
11193
  // situation where clicking at the point where that
@@ -11205,7 +11211,7 @@ at.touchmove = (t) => {
11205
11211
  };
11206
11212
  at.contextmenu = (t) => yd(t);
11207
11213
  function Tm(t, e) {
11208
- return t.composing ? !0 : Ze && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, !0) : !1;
11214
+ return t.composing ? !0 : qe && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, !0) : !1;
11209
11215
  }
11210
11216
  const VM = Cn ? 5e3 : -1;
11211
11217
  ot.compositionstart = ot.compositionupdate = (t) => {
@@ -12070,7 +12076,7 @@ class ax {
12070
12076
  h && h.nodeName == "LI" && (!u || fx(e, u) != h) && p.remove();
12071
12077
  }
12072
12078
  }
12073
- } else if ((Pe || Ze) && f.some((d) => d.nodeName == "BR") && (e.input.lastKeyCode == 8 || e.input.lastKeyCode == 46)) {
12079
+ } else if ((Pe || qe) && f.some((d) => d.nodeName == "BR") && (e.input.lastKeyCode == 8 || e.input.lastKeyCode == 46)) {
12074
12080
  for (let d of f)
12075
12081
  if (d.nodeName == "BR" && d.parentNode) {
12076
12082
  let u = d.nextSibling;
@@ -12179,10 +12185,10 @@ function cx(t) {
12179
12185
  if (e)
12180
12186
  return e.parseRule();
12181
12187
  if (t.nodeName == "BR" && t.parentNode) {
12182
- if (Ze && /^(ul|ol)$/i.test(t.parentNode.nodeName)) {
12188
+ if (qe && /^(ul|ol)$/i.test(t.parentNode.nodeName)) {
12183
12189
  let n = document.createElement("div");
12184
12190
  return n.appendChild(document.createElement("li")), { skip: n };
12185
- } else if (t.parentNode.lastChild == t || Ze && /^(tr|table)$/i.test(t.parentNode.nodeName))
12191
+ } else if (t.parentNode.lastChild == t || qe && /^(tr|table)$/i.test(t.parentNode.nodeName))
12186
12192
  return { ignore: !0 };
12187
12193
  } else if (t.nodeName == "IMG" && t.getAttribute("mark-placeholder"))
12188
12194
  return { ignore: !0 };
@@ -12661,7 +12667,7 @@ class Bm {
12661
12667
  */
12662
12668
  domSelectionRange() {
12663
12669
  let e = this.domSelection();
12664
- return e ? Ze && this.root.nodeType === 11 && J3(this.dom.ownerDocument) == this.dom && sx(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
12670
+ return e ? qe && this.root.nodeType === 11 && J3(this.dom.ownerDocument) == this.dom && sx(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
12665
12671
  }
12666
12672
  /**
12667
12673
  @internal
@@ -16939,7 +16945,7 @@ var lL = (...t) => (e) => {
16939
16945
  t.getSnapshot,
16940
16946
  t.getServerSnapshot
16941
16947
  );
16942
- return /* @__PURE__ */ l(rt, { children: Object.values(e) });
16948
+ return /* @__PURE__ */ l(Ze, { children: Object.values(e) });
16943
16949
  };
16944
16950
  function dL() {
16945
16951
  const t = /* @__PURE__ */ new Set();
@@ -17025,7 +17031,7 @@ var uL = class extends dt.Component {
17025
17031
  }
17026
17032
  render() {
17027
17033
  const { editor: t, innerRef: e, ...n } = this.props;
17028
- return /* @__PURE__ */ v(rt, { children: [
17034
+ return /* @__PURE__ */ v(Ze, { children: [
17029
17035
  /* @__PURE__ */ l("div", { ref: lL(e, this.editorContentRef), ...n }),
17030
17036
  (t == null ? void 0 : t.contentComponent) && /* @__PURE__ */ l(cL, { contentComponent: t.contentComponent })
17031
17037
  ] });
@@ -17274,7 +17280,7 @@ var yL = Si({
17274
17280
  nodeViewContentChildren: void 0,
17275
17281
  nodeViewContentRef: () => {
17276
17282
  }
17277
- }), ML = () => qe(yL);
17283
+ }), ML = () => Ke(yL);
17278
17284
  dt.forwardRef((t, e) => {
17279
17285
  const { onDragStart: n } = ML(), r = t.as || "div";
17280
17286
  return (
@@ -22593,11 +22599,11 @@ function _9(t, e) {
22593
22599
  if (j.content) {
22594
22600
  var Y = "aria-" + j.content, W = L.id, le = ei(y.props.triggerTarget || t);
22595
22601
  le.forEach(function(oe) {
22596
- var Xe = oe.getAttribute(Y);
22602
+ var et = oe.getAttribute(Y);
22597
22603
  if (y.state.isVisible)
22598
- oe.setAttribute(Y, Xe ? Xe + " " + W : W);
22604
+ oe.setAttribute(Y, et ? et + " " + W : W);
22599
22605
  else {
22600
- var Lt = Xe && Xe.replace(W, "").trim();
22606
+ var Lt = et && et.replace(W, "").trim();
22601
22607
  Lt ? oe.setAttribute(Y, Lt) : oe.removeAttribute(Y);
22602
22608
  }
22603
22609
  });
@@ -22715,7 +22721,7 @@ function _9(t, e) {
22715
22721
  var Y = j.target, W = P().contains(Y) || L.contains(Y);
22716
22722
  if (!(j.type === "mousemove" && W)) {
22717
22723
  var le = Dn().concat(L).map(function(oe) {
22718
- var Xe, Lt = oe._tippy, Yr = (Xe = Lt.popperInstance) == null ? void 0 : Xe.state;
22724
+ var et, Lt = oe._tippy, Yr = (et = Lt.popperInstance) == null ? void 0 : et.state;
22719
22725
  return Yr ? {
22720
22726
  popperRect: oe.getBoundingClientRect(),
22721
22727
  popperState: Yr,
@@ -22743,7 +22749,7 @@ function _9(t, e) {
22743
22749
  }
22744
22750
  function co() {
22745
22751
  uo();
22746
- var j = y.props, Y = j.popperOptions, W = j.placement, le = j.offset, oe = j.getReferenceClientRect, Xe = j.moveTransition, Lt = J() ? jc(L).arrow : null, Yr = oe ? {
22752
+ var j = y.props, Y = j.popperOptions, W = j.placement, le = j.offset, oe = j.getReferenceClientRect, et = j.moveTransition, Lt = J() ? jc(L).arrow : null, Yr = oe ? {
22747
22753
  getBoundingClientRect: oe,
22748
22754
  contextElement: oe.contextElement || P()
22749
22755
  } : t, Su = {
@@ -22783,7 +22789,7 @@ function _9(t, e) {
22783
22789
  }, {
22784
22790
  name: "computeStyles",
22785
22791
  options: {
22786
- adaptive: !Xe
22792
+ adaptive: !et
22787
22793
  }
22788
22794
  }, Su];
22789
22795
  J() && Lt && or.push({
@@ -22867,7 +22873,7 @@ function _9(t, e) {
22867
22873
  var j = y.state.isVisible, Y = y.state.isDestroyed, W = !y.state.isEnabled, le = qt.isTouch && !y.props.touch, oe = jl(y.props.duration, 0, gt.duration);
22868
22874
  if (!(j || Y || W || le) && !P().hasAttribute("disabled") && (fe("onShow", [y], !1), y.props.onShow(y) !== !1)) {
22869
22875
  if (y.state.isVisible = !0, J() && (L.style.visibility = "visible"), Z(), Ce(), y.state.isMounted || (L.style.transition = "none"), J()) {
22870
- var Xe = A(), Lt = Xe.box, Yr = Xe.content;
22876
+ var et = A(), Lt = et.box, Yr = et.content;
22871
22877
  Dl([Lt, Yr], 0);
22872
22878
  }
22873
22879
  p = function() {
@@ -22889,8 +22895,8 @@ function _9(t, e) {
22889
22895
  var j = !y.state.isVisible, Y = y.state.isDestroyed, W = !y.state.isEnabled, le = jl(y.props.duration, 1, gt.duration);
22890
22896
  if (!(j || Y || W) && (fe("onHide", [y], !1), y.props.onHide(y) !== !1)) {
22891
22897
  if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, o = !1, J() && (L.style.visibility = "hidden"), he(), ft(), Z(!0), J()) {
22892
- var oe = A(), Xe = oe.box, Lt = oe.content;
22893
- y.props.animation && (Dl([Xe, Lt], le), Dh([Xe, Lt], "hidden"));
22898
+ var oe = A(), et = oe.box, Lt = oe.content;
22899
+ y.props.animation && (Dl([et, Lt], le), Dh([et, Lt], "hidden"));
22894
22900
  }
22895
22901
  Ee(), G(), y.props.animation ? J() && fn(le, y.unmount) : y.unmount();
22896
22902
  }
@@ -23531,51 +23537,51 @@ var Mt = /* @__PURE__ */ Si({
23531
23537
  }]
23532
23538
  });
23533
23539
  function ru() {
23534
- var t = qe(Mt), e = t.filterRef;
23540
+ var t = Ke(Mt), e = t.filterRef;
23535
23541
  return e;
23536
23542
  }
23537
23543
  function pS() {
23538
- var t = qe(Mt), e = t.disallowClickRef;
23544
+ var t = Ke(Mt), e = t.disallowClickRef;
23539
23545
  return e;
23540
23546
  }
23541
23547
  function iu() {
23542
- var t = qe(Mt), e = t.disallowMouseRef;
23548
+ var t = Ke(Mt), e = t.disallowMouseRef;
23543
23549
  return e;
23544
23550
  }
23545
23551
  function Br() {
23546
- var t = qe(Mt), e = t.reactionsModeState;
23552
+ var t = Ke(Mt), e = t.reactionsModeState;
23547
23553
  return e;
23548
23554
  }
23549
23555
  function Tf() {
23550
- var t = qe(Mt), e = t.searchTerm;
23556
+ var t = Ke(Mt), e = t.searchTerm;
23551
23557
  return e;
23552
23558
  }
23553
23559
  function jf() {
23554
- var t = qe(Mt), e = t.activeSkinTone;
23560
+ var t = Ke(Mt), e = t.activeSkinTone;
23555
23561
  return e;
23556
23562
  }
23557
23563
  function P2() {
23558
- var t = qe(Mt), e = t.emojisThatFailedToLoadState;
23564
+ var t = Ke(Mt), e = t.emojisThatFailedToLoadState;
23559
23565
  return e;
23560
23566
  }
23561
23567
  function Ti() {
23562
- var t = qe(Mt), e = t.emojiVariationPickerState;
23568
+ var t = Ke(Mt), e = t.emojiVariationPickerState;
23563
23569
  return e;
23564
23570
  }
23565
23571
  function ro() {
23566
- var t = qe(Mt), e = t.skinToneFanOpenState;
23572
+ var t = Ke(Mt), e = t.skinToneFanOpenState;
23567
23573
  return e;
23568
23574
  }
23569
23575
  function au() {
23570
- var t = qe(Mt), e = t.visibleCategoriesState;
23576
+ var t = Ke(Mt), e = t.visibleCategoriesState;
23571
23577
  return e;
23572
23578
  }
23573
23579
  function R2() {
23574
- var t = qe(Mt), e = t.emojiSizeState;
23580
+ var t = Ke(Mt), e = t.emojiSizeState;
23575
23581
  return e;
23576
23582
  }
23577
23583
  function B2() {
23578
- var t = qe(Mt), e = t.suggestedUpdateState, n = e[0], r = e[1];
23584
+ var t = Ke(Mt), e = t.suggestedUpdateState, n = e[0], r = e[1];
23579
23585
  return [n, function() {
23580
23586
  r(Date.now());
23581
23587
  }];
@@ -40642,7 +40648,7 @@ function _S(t) {
40642
40648
  }, [(e = t.customEmojis) == null ? void 0 : e.length, t.open, t.emojiVersion, t.reactionsDefaultOpen, t.searchPlaceHolder, t.searchPlaceholder, t.searchClearButtonLabel, t.defaultSkinTone, t.skinTonesDisabled, t.autoFocusSearch, t.emojiStyle, t.theme, t.suggestedEmojisMode, t.lazyLoadEmojis, t.className, t.height, t.width, t.searchDisabled, t.skinTonePickerLocation, t.allowExpandReactions]), r;
40643
40649
  }
40644
40650
  function xe() {
40645
- return qe($2);
40651
+ return Ke($2);
40646
40652
  }
40647
40653
  var Z2 = /* @__PURE__ */ dt.createContext({});
40648
40654
  function q2() {
@@ -40857,7 +40863,7 @@ var sb = /* @__PURE__ */ Si({
40857
40863
  ReactionsRef: /* @__PURE__ */ cn()
40858
40864
  });
40859
40865
  function Tn() {
40860
- return qe(sb);
40866
+ return Ke(sb);
40861
40867
  }
40862
40868
  function fb() {
40863
40869
  return Tn().EmojiListRef;
@@ -43479,7 +43485,7 @@ const hj = ({ role: t }) => {
43479
43485
  ] }),
43480
43486
  /* @__PURE__ */ l("div", { className: "w-px h-4 bg-border mx-1" }),
43481
43487
  /* @__PURE__ */ v(ct, { children: [
43482
- /* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ l(
43488
+ /* @__PURE__ */ l(nt, { asChild: !0, children: /* @__PURE__ */ l(
43483
43489
  B,
43484
43490
  {
43485
43491
  variant: "ghost",
@@ -43488,7 +43494,7 @@ const hj = ({ role: t }) => {
43488
43494
  children: /* @__PURE__ */ l(O1, { className: "h-4 w-4" })
43489
43495
  }
43490
43496
  ) }),
43491
- /* @__PURE__ */ l(nt, { className: "w-auto p-0 border-none", align: "start", side: "top", children: /* @__PURE__ */ l(
43497
+ /* @__PURE__ */ l(rt, { className: "w-auto p-0 border-none", align: "start", side: "top", children: /* @__PURE__ */ l(
43492
43498
  Bc,
43493
43499
  {
43494
43500
  onEmojiClick: (w) => h == null ? void 0 : h.chain().focus().insertContent(w.emoji).run(),
@@ -43584,7 +43590,7 @@ const hj = ({ role: t }) => {
43584
43590
  ] }),
43585
43591
  /* @__PURE__ */ v("div", { className: "flex items-center gap-2 opacity-0 group-hover:opacity-100 transition-opacity", children: [
43586
43592
  /* @__PURE__ */ v(ct, { children: [
43587
- /* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ l(
43593
+ /* @__PURE__ */ l(nt, { asChild: !0, children: /* @__PURE__ */ l(
43588
43594
  B,
43589
43595
  {
43590
43596
  variant: "ghost",
@@ -43593,7 +43599,7 @@ const hj = ({ role: t }) => {
43593
43599
  children: /* @__PURE__ */ l(O1, { className: "h-3.5 w-3.5" })
43594
43600
  }
43595
43601
  ) }),
43596
- /* @__PURE__ */ l(nt, { className: "w-auto p-0 border-none", align: "end", children: /* @__PURE__ */ l(
43602
+ /* @__PURE__ */ l(rt, { className: "w-auto p-0 border-none", align: "end", children: /* @__PURE__ */ l(
43597
43603
  Bc,
43598
43604
  {
43599
43605
  onEmojiClick: (o) => r == null ? void 0 : r(t.id, o.emoji),
@@ -43657,7 +43663,7 @@ const hj = ({ role: t }) => {
43657
43663
  o.emoji
43658
43664
  )),
43659
43665
  r && /* @__PURE__ */ v(ct, { children: [
43660
- /* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ l(
43666
+ /* @__PURE__ */ l(nt, { asChild: !0, children: /* @__PURE__ */ l(
43661
43667
  B,
43662
43668
  {
43663
43669
  variant: "ghost",
@@ -43666,7 +43672,7 @@ const hj = ({ role: t }) => {
43666
43672
  children: /* @__PURE__ */ l(qn, { className: "h-3.5 w-3.5" })
43667
43673
  }
43668
43674
  ) }),
43669
- /* @__PURE__ */ l(nt, { className: "w-auto p-0 border-none", align: "start", children: /* @__PURE__ */ l(
43675
+ /* @__PURE__ */ l(rt, { className: "w-auto p-0 border-none", align: "start", children: /* @__PURE__ */ l(
43670
43676
  Bc,
43671
43677
  {
43672
43678
  onEmojiClick: (o) => r(t.id, o.emoji),
@@ -44103,7 +44109,7 @@ function Mj({
44103
44109
  }
44104
44110
  }, L = T.useMemo(() => t ? se(t, x, { locale: s }) : "", [t, x, s]);
44105
44111
  return /* @__PURE__ */ v(ct, { open: b, onOpenChange: w, children: [
44106
- /* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ v(
44112
+ /* @__PURE__ */ l(nt, { asChild: !0, children: /* @__PURE__ */ v(
44107
44113
  B,
44108
44114
  {
44109
44115
  id: m,
@@ -44122,7 +44128,7 @@ function Mj({
44122
44128
  ]
44123
44129
  }
44124
44130
  ) }),
44125
- /* @__PURE__ */ v(nt, { className: "w-auto p-0", align: "start", children: [
44131
+ /* @__PURE__ */ v(rt, { className: "w-auto p-0", align: "start", children: [
44126
44132
  /* @__PURE__ */ l(
44127
44133
  id,
44128
44134
  {
@@ -44131,7 +44137,8 @@ function Mj({
44131
44137
  onSelect: y,
44132
44138
  disabled: (N) => !!(i && N < i || a && N > a),
44133
44139
  locale: s,
44134
- initialFocus: !0
44140
+ initialFocus: !0,
44141
+ defaultMonth: t || void 0
44135
44142
  }
44136
44143
  ),
44137
44144
  d && /* @__PURE__ */ l("div", { className: "border-t p-3", children: /* @__PURE__ */ l(
@@ -44256,7 +44263,7 @@ function Cj({
44256
44263
  return `${P} → ${F}`;
44257
44264
  }, [t, y, s]);
44258
44265
  return /* @__PURE__ */ v(ct, { open: x, onOpenChange: C, children: [
44259
- /* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ v(
44266
+ /* @__PURE__ */ l(nt, { asChild: !0, children: /* @__PURE__ */ v(
44260
44267
  B,
44261
44268
  {
44262
44269
  id: b,
@@ -44275,7 +44282,7 @@ function Cj({
44275
44282
  ]
44276
44283
  }
44277
44284
  ) }),
44278
- /* @__PURE__ */ l(nt, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ v("div", { className: "flex", children: [
44285
+ /* @__PURE__ */ l(rt, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ v("div", { className: "flex", children: [
44279
44286
  k.length > 0 && /* @__PURE__ */ v("div", { className: "border-r p-3 space-y-1 min-w-[140px]", children: [
44280
44287
  /* @__PURE__ */ l("p", { className: "text-xs font-medium text-muted-foreground mb-2", children: "Atalhos" }),
44281
44288
  k.map((P) => /* @__PURE__ */ l(
@@ -45239,7 +45246,7 @@ function Aj({
45239
45246
  }
45240
45247
  );
45241
45248
  }
45242
- const et = ({
45249
+ const tt = ({
45243
45250
  onClick: t,
45244
45251
  isActive: e = !1,
45245
45252
  disabled: n = !1,
@@ -45280,28 +45287,28 @@ const et = ({
45280
45287
  /* @__PURE__ */ l(B, { variant: "ghost", size: "icon", className: "h-8 w-8", onClick: () => t.chain().focus().redo().run(), disabled: !t.can().redo(), children: /* @__PURE__ */ l(av, { className: "h-4 w-4" }) })
45281
45288
  ] }),
45282
45289
  /* @__PURE__ */ l(cr, { orientation: "vertical", className: "h-6 mx-1" }),
45283
- e === "full" && /* @__PURE__ */ v(rt, { children: [
45284
- /* @__PURE__ */ l(et, { onClick: () => t.chain().focus().toggleHeading({ level: 1 }).run(), isActive: t.isActive("heading", { level: 1 }), title: "Título 1", children: /* @__PURE__ */ l(ov, { className: "h-4 w-4" }) }),
45285
- /* @__PURE__ */ l(et, { onClick: () => t.chain().focus().toggleHeading({ level: 2 }).run(), isActive: t.isActive("heading", { level: 2 }), title: "Título 2", children: /* @__PURE__ */ l(sv, { className: "h-4 w-4" }) }),
45286
- /* @__PURE__ */ l(et, { onClick: () => t.chain().focus().toggleHeading({ level: 3 }).run(), isActive: t.isActive("heading", { level: 3 }), title: "Título 3", children: /* @__PURE__ */ l(fv, { className: "h-4 w-4" }) }),
45290
+ e === "full" && /* @__PURE__ */ v(Ze, { children: [
45291
+ /* @__PURE__ */ l(tt, { onClick: () => t.chain().focus().toggleHeading({ level: 1 }).run(), isActive: t.isActive("heading", { level: 1 }), title: "Título 1", children: /* @__PURE__ */ l(ov, { className: "h-4 w-4" }) }),
45292
+ /* @__PURE__ */ l(tt, { onClick: () => t.chain().focus().toggleHeading({ level: 2 }).run(), isActive: t.isActive("heading", { level: 2 }), title: "Título 2", children: /* @__PURE__ */ l(sv, { className: "h-4 w-4" }) }),
45293
+ /* @__PURE__ */ l(tt, { onClick: () => t.chain().focus().toggleHeading({ level: 3 }).run(), isActive: t.isActive("heading", { level: 3 }), title: "Título 3", children: /* @__PURE__ */ l(fv, { className: "h-4 w-4" }) }),
45287
45294
  /* @__PURE__ */ l(cr, { orientation: "vertical", className: "h-6 mx-1" })
45288
45295
  ] }),
45289
- /* @__PURE__ */ l(et, { onClick: () => t.chain().focus().toggleBold().run(), isActive: t.isActive("bold"), title: "Negrito", children: /* @__PURE__ */ l(R1, { className: "h-4 w-4" }) }),
45290
- /* @__PURE__ */ l(et, { onClick: () => t.chain().focus().toggleItalic().run(), isActive: t.isActive("italic"), title: "Itálico", children: /* @__PURE__ */ l(B1, { className: "h-4 w-4" }) }),
45291
- /* @__PURE__ */ l(et, { onClick: () => t.chain().focus().toggleUnderline().run(), isActive: t.isActive("underline"), title: "Sublinhado", children: /* @__PURE__ */ l(H1, { className: "h-4 w-4" }) }),
45292
- e === "full" && /* @__PURE__ */ l(et, { onClick: () => t.chain().focus().toggleStrike().run(), isActive: t.isActive("strike"), title: "Tachado", children: /* @__PURE__ */ l(lv, { className: "h-4 w-4" }) }),
45296
+ /* @__PURE__ */ l(tt, { onClick: () => t.chain().focus().toggleBold().run(), isActive: t.isActive("bold"), title: "Negrito", children: /* @__PURE__ */ l(R1, { className: "h-4 w-4" }) }),
45297
+ /* @__PURE__ */ l(tt, { onClick: () => t.chain().focus().toggleItalic().run(), isActive: t.isActive("italic"), title: "Itálico", children: /* @__PURE__ */ l(B1, { className: "h-4 w-4" }) }),
45298
+ /* @__PURE__ */ l(tt, { onClick: () => t.chain().focus().toggleUnderline().run(), isActive: t.isActive("underline"), title: "Sublinhado", children: /* @__PURE__ */ l(H1, { className: "h-4 w-4" }) }),
45299
+ e === "full" && /* @__PURE__ */ l(tt, { onClick: () => t.chain().focus().toggleStrike().run(), isActive: t.isActive("strike"), title: "Tachado", children: /* @__PURE__ */ l(lv, { className: "h-4 w-4" }) }),
45293
45300
  /* @__PURE__ */ l(cr, { orientation: "vertical", className: "h-6 mx-1" }),
45294
- /* @__PURE__ */ l(et, { onClick: () => t.chain().focus().toggleBulletList().run(), isActive: t.isActive("bulletList"), title: "Lista com marcadores", children: /* @__PURE__ */ l(U1, { className: "h-4 w-4" }) }),
45295
- /* @__PURE__ */ l(et, { onClick: () => t.chain().focus().toggleOrderedList().run(), isActive: t.isActive("orderedList"), title: "Lista numerada", children: /* @__PURE__ */ l(F1, { className: "h-4 w-4" }) }),
45296
- e === "full" && /* @__PURE__ */ v(rt, { children: [
45297
- /* @__PURE__ */ l(et, { onClick: () => t.chain().focus().setTextAlign("left").run(), isActive: t.isActive({ textAlign: "left" }), title: "Alinhar à esquerda", children: /* @__PURE__ */ l(cv, { className: "h-4 w-4" }) }),
45298
- /* @__PURE__ */ l(et, { onClick: () => t.chain().focus().setTextAlign("center").run(), isActive: t.isActive({ textAlign: "center" }), title: "Centralizar", children: /* @__PURE__ */ l(dv, { className: "h-4 w-4" }) }),
45299
- /* @__PURE__ */ l(et, { onClick: () => t.chain().focus().setTextAlign("right").run(), isActive: t.isActive({ textAlign: "right" }), title: "Alinhar à direita", children: /* @__PURE__ */ l(uv, { className: "h-4 w-4" }) })
45301
+ /* @__PURE__ */ l(tt, { onClick: () => t.chain().focus().toggleBulletList().run(), isActive: t.isActive("bulletList"), title: "Lista com marcadores", children: /* @__PURE__ */ l(U1, { className: "h-4 w-4" }) }),
45302
+ /* @__PURE__ */ l(tt, { onClick: () => t.chain().focus().toggleOrderedList().run(), isActive: t.isActive("orderedList"), title: "Lista numerada", children: /* @__PURE__ */ l(F1, { className: "h-4 w-4" }) }),
45303
+ e === "full" && /* @__PURE__ */ v(Ze, { children: [
45304
+ /* @__PURE__ */ l(tt, { onClick: () => t.chain().focus().setTextAlign("left").run(), isActive: t.isActive({ textAlign: "left" }), title: "Alinhar à esquerda", children: /* @__PURE__ */ l(cv, { className: "h-4 w-4" }) }),
45305
+ /* @__PURE__ */ l(tt, { onClick: () => t.chain().focus().setTextAlign("center").run(), isActive: t.isActive({ textAlign: "center" }), title: "Centralizar", children: /* @__PURE__ */ l(dv, { className: "h-4 w-4" }) }),
45306
+ /* @__PURE__ */ l(tt, { onClick: () => t.chain().focus().setTextAlign("right").run(), isActive: t.isActive({ textAlign: "right" }), title: "Alinhar à direita", children: /* @__PURE__ */ l(uv, { className: "h-4 w-4" }) })
45300
45307
  ] }),
45301
45308
  /* @__PURE__ */ l(cr, { orientation: "vertical", className: "h-6 mx-1" }),
45302
- /* @__PURE__ */ l(et, { onClick: () => t.chain().focus().toggleBlockquote().run(), isActive: t.isActive("blockquote"), title: "Citação", children: /* @__PURE__ */ l(hv, { className: "h-4 w-4" }) }),
45303
- /* @__PURE__ */ l(et, { onClick: n, isActive: t.isActive("link"), title: "Link", children: /* @__PURE__ */ l(J1, { className: "h-4 w-4" }) }),
45304
- e === "full" && /* @__PURE__ */ l(et, { onClick: r, title: "Imagem", children: /* @__PURE__ */ l(pv, { className: "h-4 w-4" }) })
45309
+ /* @__PURE__ */ l(tt, { onClick: () => t.chain().focus().toggleBlockquote().run(), isActive: t.isActive("blockquote"), title: "Citação", children: /* @__PURE__ */ l(hv, { className: "h-4 w-4" }) }),
45310
+ /* @__PURE__ */ l(tt, { onClick: n, isActive: t.isActive("link"), title: "Link", children: /* @__PURE__ */ l(J1, { className: "h-4 w-4" }) }),
45311
+ e === "full" && /* @__PURE__ */ l(tt, { onClick: r, title: "Imagem", children: /* @__PURE__ */ l(pv, { className: "h-4 w-4" }) })
45305
45312
  ] });
45306
45313
  };
45307
45314
  function X8({
@@ -45520,11 +45527,11 @@ function Fj({
45520
45527
  [b, n]
45521
45528
  ), J = T.useCallback(() => {
45522
45529
  C(!1), w(null), r == null || r();
45523
- }, [r]), P = T.useCallback(() => p && S ? p(t, S) : S ? /* @__PURE__ */ v(rt, { children: [
45530
+ }, [r]), P = T.useCallback(() => p && S ? p(t, S) : S ? /* @__PURE__ */ v(Ze, { children: [
45524
45531
  S.icon,
45525
45532
  S.label
45526
45533
  ] }) : t, [p, t, S]), F = (S == null ? void 0 : S.variant) || a;
45527
- return i ? /* @__PURE__ */ l("div", { ref: g, className: M("inline-flex", h), ...m, children: /* @__PURE__ */ l(ve, { variant: F, children: P() }) }) : /* @__PURE__ */ v(rt, { children: [
45534
+ return i ? /* @__PURE__ */ l("div", { ref: g, className: M("inline-flex", h), ...m, children: /* @__PURE__ */ l(ve, { variant: F, children: P() }) }) : /* @__PURE__ */ v(Ze, { children: [
45528
45535
  /* @__PURE__ */ l("div", { ref: g, className: M("inline-flex", h), ...m, children: /* @__PURE__ */ v(sf, { open: y, onOpenChange: k, children: [
45529
45536
  /* @__PURE__ */ l(ff, { asChild: !0, disabled: u, children: /* @__PURE__ */ v(
45530
45537
  ve,
@@ -47201,7 +47208,7 @@ class T5 {
47201
47208
  }
47202
47209
  }
47203
47210
  function Ei() {
47204
- const { dragDropManager: t } = qe(Fb);
47211
+ const { dragDropManager: t } = Ke(Fb);
47205
47212
  return q(t != null, "Expected drag drop context"), t;
47206
47213
  }
47207
47214
  function j5(t, e) {
@@ -48972,7 +48979,7 @@ const b4 = T.memo(({
48972
48979
  ]
48973
48980
  }
48974
48981
  ) : /* @__PURE__ */ v(ct, { children: [
48975
- /* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ v(
48982
+ /* @__PURE__ */ l(nt, { asChild: !0, children: /* @__PURE__ */ v(
48976
48983
  "div",
48977
48984
  {
48978
48985
  className: "absolute group/task cursor-pointer",
@@ -49026,7 +49033,7 @@ const b4 = T.memo(({
49026
49033
  ]
49027
49034
  }
49028
49035
  ) }),
49029
- /* @__PURE__ */ l(nt, { className: "w-80", align: "start", children: /* @__PURE__ */ v("div", { className: "space-y-3", children: [
49036
+ /* @__PURE__ */ l(rt, { className: "w-80", align: "start", children: /* @__PURE__ */ v("div", { className: "space-y-3", children: [
49030
49037
  /* @__PURE__ */ v("div", { children: [
49031
49038
  /* @__PURE__ */ l("h4", { className: "font-medium mb-1", children: t.name }),
49032
49039
  t.description && /* @__PURE__ */ l("p", { className: "text-sm text-muted-foreground", children: t.description })
@@ -51584,7 +51591,7 @@ function qE({ label: t, value: e, onRemove: n, className: r }) {
51584
51591
  children: [
51585
51592
  /* @__PURE__ */ v("span", { className: "text-sm", children: [
51586
51593
  t,
51587
- e && /* @__PURE__ */ v(rt, { children: [
51594
+ e && /* @__PURE__ */ v(Ze, { children: [
51588
51595
  ": ",
51589
51596
  /* @__PURE__ */ l("span", { className: "font-semibold", children: e })
51590
51597
  ] })
@@ -51626,7 +51633,7 @@ function KE({
51626
51633
  ]
51627
51634
  }
51628
51635
  ),
51629
- a && /* @__PURE__ */ v(rt, { children: [
51636
+ a && /* @__PURE__ */ v(Ze, { children: [
51630
51637
  /* @__PURE__ */ l("div", { className: "h-4 w-px bg-border" }),
51631
51638
  t.map((o) => /* @__PURE__ */ l(
51632
51639
  qE,
@@ -51740,7 +51747,7 @@ function eA({
51740
51747
  /* @__PURE__ */ l("div", { className: "flex items-center h-9 px-2 text-sm text-muted-foreground", children: n === 0 ? "Onde" : "E" }),
51741
51748
  /* @__PURE__ */ v("div", { className: "flex-1 flex items-center gap-2 flex-wrap p-2 border rounded-lg bg-background", children: [
51742
51749
  /* @__PURE__ */ v(ct, { children: [
51743
- /* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ l(
51750
+ /* @__PURE__ */ l(nt, { asChild: !0, children: /* @__PURE__ */ l(
51744
51751
  B,
51745
51752
  {
51746
51753
  variant: "ghost",
@@ -51749,7 +51756,7 @@ function eA({
51749
51756
  children: (a == null ? void 0 : a.label) || "Selecionar campo"
51750
51757
  }
51751
51758
  ) }),
51752
- /* @__PURE__ */ l(nt, { className: "w-[200px] p-2", align: "start", children: /* @__PURE__ */ l("div", { className: "space-y-1", children: e.map((g) => /* @__PURE__ */ l(
51759
+ /* @__PURE__ */ l(rt, { className: "w-[200px] p-2", align: "start", children: /* @__PURE__ */ l("div", { className: "space-y-1", children: e.map((g) => /* @__PURE__ */ l(
51753
51760
  B,
51754
51761
  {
51755
51762
  variant: "ghost",
@@ -51768,7 +51775,7 @@ function eA({
51768
51775
  )) }) })
51769
51776
  ] }),
51770
51777
  /* @__PURE__ */ v(ct, { children: [
51771
- /* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ l(
51778
+ /* @__PURE__ */ l(nt, { asChild: !0, children: /* @__PURE__ */ l(
51772
51779
  B,
51773
51780
  {
51774
51781
  variant: "ghost",
@@ -51777,7 +51784,7 @@ function eA({
51777
51784
  children: (o == null ? void 0 : o.label) || "is"
51778
51785
  }
51779
51786
  ) }),
51780
- /* @__PURE__ */ l(nt, { className: "w-[200px] p-2", align: "start", children: /* @__PURE__ */ l("div", { className: "space-y-1", children: N1.map((g) => /* @__PURE__ */ l(
51787
+ /* @__PURE__ */ l(rt, { className: "w-[200px] p-2", align: "start", children: /* @__PURE__ */ l("div", { className: "space-y-1", children: N1.map((g) => /* @__PURE__ */ l(
51781
51788
  B,
51782
51789
  {
51783
51790
  variant: "ghost",
@@ -51795,11 +51802,11 @@ function eA({
51795
51802
  g.value
51796
51803
  )) }) })
51797
51804
  ] }),
51798
- f && /* @__PURE__ */ v(rt, { children: [
51805
+ f && /* @__PURE__ */ v(Ze, { children: [
51799
51806
  a != null && a.options ? (
51800
51807
  // Select field with options
51801
51808
  /* @__PURE__ */ v(ct, { onOpenChange: (g) => !g && d(""), children: [
51802
- /* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ l(
51809
+ /* @__PURE__ */ l(nt, { asChild: !0, children: /* @__PURE__ */ l(
51803
51810
  B,
51804
51811
  {
51805
51812
  variant: "ghost",
@@ -51814,7 +51821,7 @@ function eA({
51814
51821
  )) == null ? void 0 : m.label) || "Selecionar valor"
51815
51822
  }
51816
51823
  ) }),
51817
- /* @__PURE__ */ l(nt, { className: "w-[240px] p-3", align: "start", children: /* @__PURE__ */ v("div", { className: "space-y-2", children: [
51824
+ /* @__PURE__ */ l(rt, { className: "w-[240px] p-3", align: "start", children: /* @__PURE__ */ v("div", { className: "space-y-2", children: [
51818
51825
  /* @__PURE__ */ l(We, { className: "text-xs text-muted-foreground", children: s ? "Selecionar valores" : "Selecionar valor" }),
51819
51826
  /* @__PURE__ */ v("div", { className: "relative", children: [
51820
51827
  /* @__PURE__ */ l(G1, { className: "absolute left-2 top-2.5 h-4 w-4 text-muted-foreground" }),
@@ -51840,7 +51847,7 @@ function eA({
51840
51847
  "div",
51841
51848
  {
51842
51849
  className: "flex items-center space-x-2",
51843
- children: s ? /* @__PURE__ */ v(rt, { children: [
51850
+ children: s ? /* @__PURE__ */ v(Ze, { children: [
51844
51851
  /* @__PURE__ */ l(
51845
51852
  by,
51846
51853
  {
@@ -51880,7 +51887,7 @@ function eA({
51880
51887
  ) : (
51881
51888
  // Text/Number input
51882
51889
  /* @__PURE__ */ v(ct, { children: [
51883
- /* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ l(
51890
+ /* @__PURE__ */ l(nt, { asChild: !0, children: /* @__PURE__ */ l(
51884
51891
  B,
51885
51892
  {
51886
51893
  variant: "ghost",
@@ -51889,7 +51896,7 @@ function eA({
51889
51896
  children: t.value || "Inserir valor"
51890
51897
  }
51891
51898
  ) }),
51892
- /* @__PURE__ */ l(nt, { className: "w-[240px] p-3", align: "start", children: /* @__PURE__ */ v("div", { className: "space-y-2", children: [
51899
+ /* @__PURE__ */ l(rt, { className: "w-[240px] p-3", align: "start", children: /* @__PURE__ */ v("div", { className: "space-y-2", children: [
51893
51900
  /* @__PURE__ */ l(We, { className: "text-xs text-muted-foreground", children: "Inserir valor" }),
51894
51901
  /* @__PURE__ */ l(
51895
51902
  _n,
@@ -52056,12 +52063,12 @@ function tA({
52056
52063
  )
52057
52064
  ] }),
52058
52065
  o && a.length > 0 && /* @__PURE__ */ v(ct, { open: k, onOpenChange: L, children: [
52059
- /* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ v(B, { variant: "outline", size: "sm", className: "gap-2", children: [
52066
+ /* @__PURE__ */ l(nt, { asChild: !0, children: /* @__PURE__ */ v(B, { variant: "outline", size: "sm", className: "gap-2", children: [
52060
52067
  /* @__PURE__ */ l(V1, { className: "h-4 w-4" }),
52061
52068
  "Filtros",
52062
52069
  N.length > 0 && /* @__PURE__ */ l("span", { className: "ml-1 rounded-full bg-primary text-primary-foreground w-5 h-5 text-xs flex items-center justify-center", children: N.length })
52063
52070
  ] }) }),
52064
- /* @__PURE__ */ v(nt, { className: "w-[700px] p-0", align: "start", sideOffset: 8, children: [
52071
+ /* @__PURE__ */ v(rt, { className: "w-[700px] p-0", align: "start", sideOffset: 8, children: [
52065
52072
  /* @__PURE__ */ v("div", { className: "p-6 border-b", children: [
52066
52073
  /* @__PURE__ */ l("h3", { className: "font-semibold", children: "Filtros Avançados" }),
52067
52074
  /* @__PURE__ */ l("p", { className: "text-sm text-muted-foreground mt-1", children: "Adicione condições de filtro para refinar os resultados." })
@@ -52235,8 +52242,8 @@ function jz({
52235
52242
  ")"
52236
52243
  ] })
52237
52244
  ] }) }),
52238
- /* @__PURE__ */ l(lf, { align: "start", className: "w-[280px]", children: t.length === 0 ? /* @__PURE__ */ l("div", { className: "px-2 py-6 text-center text-sm text-muted-foreground", children: "No saved filters yet" }) : /* @__PURE__ */ v(rt, { children: [
52239
- a.length > 0 && /* @__PURE__ */ v(rt, { children: [
52245
+ /* @__PURE__ */ l(lf, { align: "start", className: "w-[280px]", children: t.length === 0 ? /* @__PURE__ */ l("div", { className: "px-2 py-6 text-center text-sm text-muted-foreground", children: "No saved filters yet" }) : /* @__PURE__ */ v(Ze, { children: [
52246
+ a.length > 0 && /* @__PURE__ */ v(Ze, { children: [
52240
52247
  /* @__PURE__ */ l("div", { className: "px-2 py-1.5 text-xs font-semibold text-muted-foreground", children: "Favorites" }),
52241
52248
  a.map((s) => /* @__PURE__ */ l(
52242
52249
  k1,
@@ -52250,7 +52257,7 @@ function jz({
52250
52257
  )),
52251
52258
  o.length > 0 && /* @__PURE__ */ l(Wl, {})
52252
52259
  ] }),
52253
- o.length > 0 && /* @__PURE__ */ v(rt, { children: [
52260
+ o.length > 0 && /* @__PURE__ */ v(Ze, { children: [
52254
52261
  a.length > 0 && /* @__PURE__ */ l("div", { className: "px-2 py-1.5 text-xs font-semibold text-muted-foreground", children: "Todos filtros" }),
52255
52262
  o.map((s) => /* @__PURE__ */ l(
52256
52263
  k1,
@@ -52386,7 +52393,7 @@ function Dz({
52386
52393
  /* @__PURE__ */ v("div", { className: "space-y-2", children: [
52387
52394
  /* @__PURE__ */ l(We, { children: "Data de Início *" }),
52388
52395
  /* @__PURE__ */ v(ct, { open: f, onOpenChange: c, children: [
52389
- /* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ v(
52396
+ /* @__PURE__ */ l(nt, { asChild: !0, children: /* @__PURE__ */ v(
52390
52397
  B,
52391
52398
  {
52392
52399
  variant: "outline",
@@ -52400,7 +52407,7 @@ function Dz({
52400
52407
  ]
52401
52408
  }
52402
52409
  ) }),
52403
- /* @__PURE__ */ l(nt, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ l(
52410
+ /* @__PURE__ */ l(rt, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ l(
52404
52411
  Calendar,
52405
52412
  {
52406
52413
  mode: "single",
@@ -52416,7 +52423,7 @@ function Dz({
52416
52423
  /* @__PURE__ */ v("div", { className: "space-y-2", children: [
52417
52424
  /* @__PURE__ */ l(We, { children: "Data de Término *" }),
52418
52425
  /* @__PURE__ */ v(ct, { open: d, onOpenChange: u, children: [
52419
- /* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ v(
52426
+ /* @__PURE__ */ l(nt, { asChild: !0, children: /* @__PURE__ */ v(
52420
52427
  B,
52421
52428
  {
52422
52429
  variant: "outline",
@@ -52430,7 +52437,7 @@ function Dz({
52430
52437
  ]
52431
52438
  }
52432
52439
  ) }),
52433
- /* @__PURE__ */ l(nt, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ l(
52440
+ /* @__PURE__ */ l(rt, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ l(
52434
52441
  Calendar,
52435
52442
  {
52436
52443
  mode: "single",
@@ -53300,8 +53307,8 @@ export {
53300
53307
  Z7 as PaginationPrevious,
53301
53308
  uE as PasswordInput,
53302
53309
  ct as Popover,
53303
- nt as PopoverContent,
53304
- tt as PopoverTrigger,
53310
+ rt as PopoverContent,
53311
+ nt as PopoverTrigger,
53305
53312
  ip as PrintFooter,
53306
53313
  rp as PrintHeader,
53307
53314
  ti as PrintInfoGrid,