@grapadigital/shared-app-modules 0.0.216 → 0.0.217

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.
@@ -1,30 +1,30 @@
1
- import { aZ as v, c as u, B as N, a_ as z, aq as M, ar as T, as as R, w as O, F as B, W as $, X as j, $ as C, _ as q, Y as P, a0 as U } from "./chuncks/switch.D_38xWg-.js";
2
- import { M as K, s as W } from "./chuncks/youtube-icon.component.CU9RpVNh.js";
3
- import { t as We, L as Xe, O as Ge, u as Qe, H as Ve, Y as Ye, a4 as Ze, Z as Je, _ as et, J as tt, $ as nt, a5 as at, a0 as rt, a1 as st, a2 as it, a3 as ot, K as lt, Q as dt, a6 as ct, a7 as gt, ac as ut, w as pt, x as xt, y as mt, z as bt, G as ht, a8 as ft, U as yt, X as wt, W as vt, a9 as kt, aa as Nt, ab as Ct, ae as St, ad as It } from "./chuncks/youtube-icon.component.CU9RpVNh.js";
4
- import { jsxs as g, jsx as e, Fragment as A } from "react/jsx-runtime";
5
- import S, { useState as F, useRef as D, useEffect as E, useMemo as X } from "react";
6
- import { B as H, m as G, T as Q, k as V, l as Y, S as k } from "./chuncks/badge.tZcF7uIJ.js";
7
- import { parseISO as I, differenceInCalendarDays as Z, format as J } from "date-fns";
8
- import { u as ee, a as te } from "./chuncks/use-shared-app-modules.hook.uZhjsTQ0.js";
1
+ import { aZ as v, c as u, B as N, a_ as _, aq as M, ar as T, as as F, w as $, F as j, W as q, X as B, $ as C, _ as O, Y as P, a0 as U } from "./chuncks/switch.D_38xWg-.js";
2
+ import { M as W, s as X } from "./chuncks/youtube-icon.component.BSdD-jlw.js";
3
+ import { t as We, L as Xe, O as Ke, u as Ge, H as Qe, Y as Ye, a4 as Ve, Z as Ze, _ as Je, J as et, $ as tt, a5 as at, a0 as nt, a1 as rt, a2 as st, a3 as it, K as ot, Q as lt, a7 as dt, a8 as ct, ad as gt, w as ut, x as pt, y as xt, z as mt, G as bt, a9 as ht, U as ft, X as yt, W as wt, a6 as vt, aa as kt, ab as Nt, ac as Ct, af as St, ae as zt } from "./chuncks/youtube-icon.component.BSdD-jlw.js";
4
+ import { jsxs as g, jsx as e, Fragment as R } from "react/jsx-runtime";
5
+ import S, { useState as D, useRef as A, useEffect as H, useMemo as K } from "react";
6
+ import { B as L, m as G, T as Q, k as Y, l as V, S as k } from "./chuncks/badge.tZcF7uIJ.js";
7
+ import { parseISO as z, differenceInCalendarDays as Z, format as J } from "date-fns";
8
+ import { u as ee } from "./chuncks/use-debounce.hook.TyZMbuZv.js";
9
9
  import "./chuncks/shared-app-modules.provider.DRJ7n4Cj.js";
10
- import { useQuery as ne } from "@tanstack/react-query";
10
+ import { useQuery as te } from "@tanstack/react-query";
11
11
  import "axios";
12
- import { l as ae } from "./chuncks/organization-users.service.CUZsF7go.js";
13
- const re = [
12
+ import { l as ae } from "./chuncks/organization-users.service.B9edFs4F.js";
13
+ const ne = [
14
14
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
15
15
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
16
16
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
17
- ], se = v("circle-alert", re);
18
- const ie = [
17
+ ], re = v("circle-alert", ne);
18
+ const se = [
19
19
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
20
20
  ["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
21
21
  ["path", { d: "M12 17h.01", key: "p32p05" }]
22
- ], oe = v("circle-question-mark", ie);
23
- const le = [
22
+ ], ie = v("circle-question-mark", se);
23
+ const oe = [
24
24
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
25
25
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
26
- ], de = v("copy", le);
27
- const ce = [
26
+ ], le = v("copy", oe);
27
+ const de = [
28
28
  [
29
29
  "path",
30
30
  {
@@ -36,19 +36,19 @@ const ce = [
36
36
  ["path", { d: "M10 9H8", key: "b1mrlr" }],
37
37
  ["path", { d: "M16 13H8", key: "t4e002" }],
38
38
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
39
- ], ge = v("file-text", ce);
40
- const ue = [
39
+ ], ce = v("file-text", de);
40
+ const ge = [
41
41
  ["path", { d: "M12 3v12", key: "1x0j5s" }],
42
42
  ["path", { d: "m17 8-5-5-5 5", key: "7q97r8" }],
43
43
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }]
44
- ], pe = v("upload", ue);
45
- function Ae({
46
- icon: a = pe,
44
+ ], ue = v("upload", ge);
45
+ function Fe({
46
+ icon: n = ue,
47
47
  title: t = "Enviar arquivos",
48
- description: r = "Arraste e solte os arquivos aqui ou clique para selecionar.",
49
- buttonText: s = "Selecionar novos arquivos",
48
+ description: s = "Arraste e solte os arquivos aqui ou clique para selecionar.",
49
+ buttonText: r = "Selecionar novos arquivos",
50
50
  files: i,
51
- disabled: n,
51
+ disabled: a,
52
52
  onFilesChange: o,
53
53
  ...d
54
54
  }) {
@@ -78,7 +78,7 @@ function Ae({
78
78
  onDrop: p,
79
79
  className: u(
80
80
  "w-full space-y-3",
81
- n && "pointer-events-none opacity-60 select-none"
81
+ a && "pointer-events-none opacity-60 select-none"
82
82
  ),
83
83
  children: [
84
84
  /* @__PURE__ */ g(
@@ -98,29 +98,29 @@ function Ae({
98
98
  type: "file",
99
99
  className: "hidden",
100
100
  onChange: y,
101
- disabled: n
101
+ disabled: a
102
102
  }
103
103
  ),
104
- /* @__PURE__ */ e("div", { className: "w-fit mx-auto", children: /* @__PURE__ */ e(a, { className: "text-muted-foreground size-8" }) }),
104
+ /* @__PURE__ */ e("div", { className: "w-fit mx-auto", children: /* @__PURE__ */ e(n, { className: "text-muted-foreground size-8" }) }),
105
105
  /* @__PURE__ */ g("div", { children: [
106
106
  /* @__PURE__ */ e("h3", { className: "font-semibold", children: t }),
107
- /* @__PURE__ */ e("p", { className: "text-muted-foreground text-sm", children: r })
107
+ /* @__PURE__ */ e("p", { className: "text-muted-foreground text-sm", children: s })
108
108
  ] }),
109
109
  /* @__PURE__ */ e(
110
110
  N,
111
111
  {
112
112
  type: "button",
113
- disabled: n,
113
+ disabled: a,
114
114
  size: "sm",
115
115
  onClick: () => m.current?.click(),
116
116
  className: "w-fit mx-auto",
117
- children: s
117
+ children: r
118
118
  }
119
119
  )
120
120
  ]
121
121
  }
122
122
  ),
123
- i.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: i.map((l, h) => /* @__PURE__ */ g(H, { children: [
123
+ i.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: i.map((l, h) => /* @__PURE__ */ g(L, { children: [
124
124
  /* @__PURE__ */ e(
125
125
  "button",
126
126
  {
@@ -128,8 +128,8 @@ function Ae({
128
128
  className: "hover:text-red-500",
129
129
  "aria-label": "Remover anexo",
130
130
  title: "Remover anexo",
131
- disabled: n,
132
- children: /* @__PURE__ */ e(z, { className: "size-3" })
131
+ disabled: a,
132
+ children: /* @__PURE__ */ e(_, { className: "size-3" })
133
133
  }
134
134
  ),
135
135
  l.name
@@ -138,23 +138,23 @@ function Ae({
138
138
  }
139
139
  );
140
140
  }
141
- function Fe({
142
- content: a,
141
+ function Re({
142
+ content: n,
143
143
  align: t,
144
- asChild: r,
145
- className: s,
144
+ asChild: s,
145
+ className: r,
146
146
  openDelay: i = 0,
147
- closeDelay: n = 0,
147
+ closeDelay: a = 0,
148
148
  children: o,
149
149
  disabled: d = !1,
150
150
  ...x
151
151
  }) {
152
- return /* @__PURE__ */ e(A, { children: d === !0 ? o : /* @__PURE__ */ g(M, { openDelay: i, closeDelay: n, ...x, children: [
153
- /* @__PURE__ */ e(T, { asChild: r, children: o }),
154
- /* @__PURE__ */ e(R, { align: t, className: s, children: a })
152
+ return /* @__PURE__ */ e(R, { children: d === !0 ? o : /* @__PURE__ */ g(M, { openDelay: i, closeDelay: a, ...x, children: [
153
+ /* @__PURE__ */ e(T, { asChild: s, children: o }),
154
+ /* @__PURE__ */ e(F, { align: t, className: r, children: n })
155
155
  ] }) });
156
156
  }
157
- const xe = {
157
+ const pe = {
158
158
  red: { bg: "bg-red-50", text: "text-red-600" },
159
159
  orange: { bg: "bg-orange-50", text: "text-orange-600" },
160
160
  amber: { bg: "bg-amber-50", text: "text-amber-600" },
@@ -177,7 +177,7 @@ const xe = {
177
177
  zinc: { bg: "bg-zinc-200", text: "text-zinc-800" },
178
178
  neutral: { bg: "bg-neutral-200", text: "text-neutral-800" },
179
179
  stone: { bg: "bg-stone-200", text: "text-stone-800" }
180
- }, me = {
180
+ }, xe = {
181
181
  red: { bg: "bg-red-500", text: "text-white" },
182
182
  orange: { bg: "bg-orange-500", text: "text-white" },
183
183
  amber: { bg: "bg-amber-500", text: "text-white" },
@@ -201,7 +201,7 @@ const xe = {
201
201
  neutral: { bg: "bg-neutral-500", text: "text-white" },
202
202
  stone: { bg: "bg-stone-500", text: "text-white" },
203
203
  black: { bg: "bg-black", text: "text-white" }
204
- }, _ = {
204
+ }, I = {
205
205
  xs: "size-3",
206
206
  sm: "size-4",
207
207
  md: "size-5",
@@ -209,25 +209,25 @@ const xe = {
209
209
  xl: "size-7"
210
210
  };
211
211
  function De({
212
- size: a,
212
+ size: n,
213
213
  color: t,
214
- className: r,
215
- icon: s,
214
+ className: s,
215
+ icon: r,
216
216
  filled: i
217
217
  }) {
218
- const n = i ? me[t] : xe[t], o = a ? _[a] : _.md;
219
- return /* @__PURE__ */ e("div", { className: u("w-fit p-2 rounded-lg", n?.bg, r), children: /* @__PURE__ */ e(s, { className: u(o, n?.text) }) });
218
+ const a = i ? xe[t] : pe[t], o = n ? I[n] : I.md;
219
+ return /* @__PURE__ */ e("div", { className: u("w-fit p-2 rounded-lg", a?.bg, s), children: /* @__PURE__ */ e(r, { className: u(o, a?.text) }) });
220
220
  }
221
- function Ee({ className: a, ...t }) {
222
- return /* @__PURE__ */ e("div", { className: u("divide-y", a), ...t });
221
+ function Ae({ className: n, ...t }) {
222
+ return /* @__PURE__ */ e("div", { className: u("divide-y", n), ...t });
223
223
  }
224
224
  function He({
225
- label: a,
225
+ label: n,
226
226
  value: t,
227
- tooltip: r,
228
- highlight: s = !1,
227
+ tooltip: s,
228
+ highlight: r = !1,
229
229
  negative: i = !1,
230
- positive: n = !1,
230
+ positive: a = !1,
231
231
  isPercentage: o = !1,
232
232
  isDate: d = !1,
233
233
  isText: x = !1,
@@ -238,10 +238,10 @@ function He({
238
238
  handleCopy: w
239
239
  }) {
240
240
  let c = "";
241
- if (d && typeof t == "string" && t !== "" && !b && s) {
242
- const p = I(t), l = Z(p, /* @__PURE__ */ new Date());
241
+ if (d && typeof t == "string" && t !== "" && !b && r) {
242
+ const p = z(t), l = Z(p, /* @__PURE__ */ new Date());
243
243
  l > 15 ? c = "bg-yellow-100 font-bold" : l > 7 ? c = "bg-yellow-300 font-bold" : l >= 0 ? c = "bg-red-300 font-bold" : c = "bg-red-500 text-white font-bold";
244
- } else s && (c = "bg-orange-100 font-bold");
244
+ } else r && (c = "bg-orange-100 font-bold");
245
245
  return y && (c = "bg-orange-100 font-bold"), /* @__PURE__ */ e("div", { className: u("px-2 py-1 text-sm", c), children: /* @__PURE__ */ g(M, { openDelay: 0, closeDelay: 0, children: [
246
246
  /* @__PURE__ */ e(T, { children: /* @__PURE__ */ g("div", { className: "flex justify-between", children: [
247
247
  /* @__PURE__ */ g(
@@ -249,12 +249,12 @@ function He({
249
249
  {
250
250
  className: u(
251
251
  "flex flex-row gap-1",
252
- i ? "text-red-600" : n ? "text-green-600" : ""
252
+ i ? "text-red-600" : a ? "text-green-600" : ""
253
253
  ),
254
254
  children: [
255
- a,
255
+ n,
256
256
  " ",
257
- /* @__PURE__ */ e(se, { className: "size-3.5" })
257
+ /* @__PURE__ */ e(re, { className: "size-3.5" })
258
258
  ]
259
259
  }
260
260
  ),
@@ -263,100 +263,100 @@ function He({
263
263
  {
264
264
  className: u(
265
265
  "flex flex-row justify-end gap-2 text-right",
266
- i ? "text-red-600" : n ? "text-green-600" : ""
266
+ i ? "text-red-600" : a ? "text-green-600" : ""
267
267
  ),
268
268
  children: [
269
- o && typeof t == "number" ? `${t.toFixed(2)}%` : d && typeof t == "string" && t !== "" ? J(I(t), "dd/MM/yyyy") : d && t === "" ? "—" : x ? t ?? "—" : typeof t == "number" ? `R$ ${t.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` : "—",
270
- m && w ? /* @__PURE__ */ e(de, { size: 15, onClick: () => w(t) }) : null
269
+ o && typeof t == "number" ? `${t.toFixed(2)}%` : d && typeof t == "string" && t !== "" ? J(z(t), "dd/MM/yyyy") : d && t === "" ? "—" : x ? t ?? "—" : typeof t == "number" ? `R$ ${t.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` : "—",
270
+ m && w ? /* @__PURE__ */ e(le, { size: 15, onClick: () => w(t) }) : null
271
271
  ]
272
272
  }
273
273
  )
274
274
  ] }) }),
275
275
  /* @__PURE__ */ e(
276
- R,
276
+ F,
277
277
  {
278
278
  align: "start",
279
279
  className: u(!f && "pointer-events-none"),
280
280
  children: /* @__PURE__ */ g("div", { className: "space-y-0.5", children: [
281
- /* @__PURE__ */ e("div", { className: "font-medium", children: a }),
282
- /* @__PURE__ */ e("div", { className: "font-normal opacity-80", children: r })
281
+ /* @__PURE__ */ e("div", { className: "font-medium", children: n }),
282
+ /* @__PURE__ */ e("div", { className: "font-normal opacity-80", children: s })
283
283
  ] })
284
284
  }
285
285
  )
286
286
  ] }) });
287
287
  }
288
288
  function Le({
289
- icon: a = ge,
289
+ icon: n = ce,
290
290
  title: t,
291
- description: r,
292
- tip: s,
291
+ description: s,
292
+ tip: r,
293
293
  className: i,
294
- ...n
294
+ ...a
295
295
  }) {
296
- return /* @__PURE__ */ e(O, { className: u(i), ...n, children: /* @__PURE__ */ g(B, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
296
+ return /* @__PURE__ */ e($, { className: u(i), ...a, children: /* @__PURE__ */ g(j, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
297
297
  /* @__PURE__ */ e("div", { className: "relative mb-4", children: /* @__PURE__ */ e(
298
- a,
298
+ n,
299
299
  {
300
300
  "aria-hidden": "true",
301
301
  className: "size-16 text-muted-foreground/40"
302
302
  }
303
303
  ) }),
304
304
  /* @__PURE__ */ e("h3", { className: "mb-2 text-lg font-semibold text-foreground", children: t }),
305
- /* @__PURE__ */ e("p", { className: "max-w-md text-sm leading-relaxed text-muted-foreground", children: r }),
306
- s && /* @__PURE__ */ e("div", { className: "mt-6 rounded-lg border border-dashed border-muted-foreground/20 bg-muted/50 px-4 py-2", children: /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: s }) })
305
+ /* @__PURE__ */ e("p", { className: "max-w-md text-sm leading-relaxed text-muted-foreground", children: s }),
306
+ r && /* @__PURE__ */ e("div", { className: "mt-6 rounded-lg border border-dashed border-muted-foreground/20 bg-muted/50 px-4 py-2", children: /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: r }) })
307
307
  ] }) });
308
308
  }
309
- function Oe({
310
- actions: a,
311
- icon: t = oe
309
+ function Ee({
310
+ actions: n,
311
+ icon: t = ie
312
312
  }) {
313
- const [r, s] = F(!1), i = D(null);
314
- return E(() => {
315
- if (!r) return;
316
- const n = (d) => {
317
- i.current?.contains(d.target) || s(!1);
313
+ const [s, r] = D(!1), i = A(null);
314
+ return H(() => {
315
+ if (!s) return;
316
+ const a = (d) => {
317
+ i.current?.contains(d.target) || r(!1);
318
318
  }, o = (d) => {
319
- d.key === "Escape" && s(!1);
319
+ d.key === "Escape" && r(!1);
320
320
  };
321
- return document.addEventListener("mousedown", n), document.addEventListener("keydown", o), () => {
322
- document.removeEventListener("mousedown", n), document.removeEventListener("keydown", o);
321
+ return document.addEventListener("mousedown", a), document.addEventListener("keydown", o), () => {
322
+ document.removeEventListener("mousedown", a), document.removeEventListener("keydown", o);
323
323
  };
324
- }, [r]), /* @__PURE__ */ e(G, { children: /* @__PURE__ */ g(
324
+ }, [s]), /* @__PURE__ */ e(G, { children: /* @__PURE__ */ g(
325
325
  "div",
326
326
  {
327
327
  ref: i,
328
328
  className: "fixed bottom-6 right-6 z-50 flex flex-col items-end gap-3",
329
329
  children: [
330
- /* @__PURE__ */ e("div", { className: "flex flex-col items-end gap-3", children: a.map((n, o) => /* @__PURE__ */ e(
330
+ /* @__PURE__ */ e("div", { className: "flex flex-col items-end gap-3", children: n.map((a, o) => /* @__PURE__ */ e(
331
331
  "div",
332
332
  {
333
333
  className: u(
334
334
  "transition-all duration-200 ease-out",
335
- r ? "translate-y-0 opacity-100" : "pointer-events-none translate-y-2 opacity-0"
335
+ s ? "translate-y-0 opacity-100" : "pointer-events-none translate-y-2 opacity-0"
336
336
  ),
337
- style: { transitionDelay: r ? `${o * 30}ms` : "0ms" },
337
+ style: { transitionDelay: s ? `${o * 30}ms` : "0ms" },
338
338
  children: /* @__PURE__ */ g(Q, { children: [
339
- /* @__PURE__ */ e(V, { asChild: !0, children: /* @__PURE__ */ e(
339
+ /* @__PURE__ */ e(Y, { asChild: !0, children: /* @__PURE__ */ e(
340
340
  N,
341
341
  {
342
342
  size: "icon",
343
343
  variant: "outline",
344
- disabled: n.disabled,
345
- "aria-disabled": n.disabled,
344
+ disabled: a.disabled,
345
+ "aria-disabled": a.disabled,
346
346
  className: u(
347
347
  "size-11 rounded-full shadow-md",
348
- n.disabled && "opacity-50"
348
+ a.disabled && "opacity-50"
349
349
  ),
350
350
  onClick: () => {
351
- n.disabled || (n.onClick(), s(!1));
351
+ a.disabled || (a.onClick(), r(!1));
352
352
  },
353
- children: /* @__PURE__ */ e(n.icon, { className: "size-5" })
353
+ children: /* @__PURE__ */ e(a.icon, { className: "size-5" })
354
354
  }
355
355
  ) }),
356
- /* @__PURE__ */ e(Y, { side: "left", children: n.label })
356
+ /* @__PURE__ */ e(V, { side: "left", children: a.label })
357
357
  ] })
358
358
  },
359
- n.label
359
+ a.label
360
360
  )) }),
361
361
  /* @__PURE__ */ e(
362
362
  N,
@@ -364,27 +364,27 @@ function Oe({
364
364
  size: "icon",
365
365
  variant: "outline",
366
366
  className: "size-11 rounded-full shadow-md",
367
- "aria-label": r ? "Fechar menu de ajuda" : "Abrir menu de ajuda",
368
- "aria-expanded": r,
369
- onClick: () => s((n) => !n),
370
- children: r ? /* @__PURE__ */ e(z, { className: "size-5" }) : /* @__PURE__ */ e(t, { className: "size-5" })
367
+ "aria-label": s ? "Fechar menu de ajuda" : "Abrir menu de ajuda",
368
+ "aria-expanded": s,
369
+ onClick: () => r((a) => !a),
370
+ children: s ? /* @__PURE__ */ e(_, { className: "size-5" }) : /* @__PURE__ */ e(t, { className: "size-5" })
371
371
  }
372
372
  )
373
373
  ]
374
374
  }
375
375
  ) });
376
376
  }
377
- function Be({
378
- columns: a = 9,
377
+ function $e({
378
+ columns: n = 9,
379
379
  rows: t = 20,
380
- hasActions: r = !1,
381
- actionsCount: s = 1
380
+ hasActions: s = !1,
381
+ actionsCount: r = 1
382
382
  }) {
383
- return /* @__PURE__ */ g($, { children: [
384
- /* @__PURE__ */ e(j, { children: /* @__PURE__ */ e(C, { children: Array.from({ length: a }).map((i, n) => {
385
- const o = r && n === a - 1;
383
+ return /* @__PURE__ */ g(q, { children: [
384
+ /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(C, { children: Array.from({ length: n }).map((i, a) => {
385
+ const o = s && a === n - 1;
386
386
  return /* @__PURE__ */ e(
387
- q,
387
+ O,
388
388
  {
389
389
  className: o ? "w-0 text-right" : "",
390
390
  children: /* @__PURE__ */ e(
@@ -394,42 +394,40 @@ function Be({
394
394
  }
395
395
  )
396
396
  },
397
- n
397
+ a
398
398
  );
399
399
  }) }) }),
400
- /* @__PURE__ */ e(P, { children: Array.from({ length: t }).map((i, n) => /* @__PURE__ */ e(C, { className: "h-[3.05rem]", children: Array.from({ length: a }).map((o, d) => {
401
- const x = r && d === a - 1;
402
- return /* @__PURE__ */ e(U, { children: x ? /* @__PURE__ */ e("div", { className: "flex gap-2", children: Array.from({ length: s }).map((b, m) => /* @__PURE__ */ e(k, { className: "ml-auto size-8" }, m)) }) : /* @__PURE__ */ e(k, { className: "h-4 w-full" }) }, d);
403
- }) }, n)) })
400
+ /* @__PURE__ */ e(P, { children: Array.from({ length: t }).map((i, a) => /* @__PURE__ */ e(C, { className: "h-[3.05rem]", children: Array.from({ length: n }).map((o, d) => {
401
+ const x = s && d === n - 1;
402
+ return /* @__PURE__ */ e(U, { children: x ? /* @__PURE__ */ e("div", { className: "flex gap-2", children: Array.from({ length: r }).map((b, m) => /* @__PURE__ */ e(k, { className: "ml-auto size-8" }, m)) }) : /* @__PURE__ */ e(k, { className: "h-4 w-full" }) }, d);
403
+ }) }, a)) })
404
404
  ] });
405
405
  }
406
- const be = "@[__display__](__id__)", L = /@\[([^\]]+)\]\(([^)]+)\)/g;
407
- function he(a) {
408
- const t = [], r = new RegExp(L);
409
- let s;
410
- for (; (s = r.exec(a)) !== null; )
411
- t.push({ display: s[1], id: s[2] });
406
+ const me = "@[__display__](__id__)", E = /@\[([^\]]+)\]\(([^)]+)\)/g;
407
+ function be(n) {
408
+ const t = [], s = new RegExp(E);
409
+ let r;
410
+ for (; (r = s.exec(n)) !== null; )
411
+ t.push({ display: r[1], id: r[2] });
412
412
  return t;
413
413
  }
414
- function $e(a) {
415
- return he(a).map((t) => ({
414
+ function je(n) {
415
+ return be(n).map((t) => ({
416
416
  userId: t.id,
417
417
  username: t.display
418
418
  }));
419
419
  }
420
- function fe(a, t) {
421
- const { environments: r } = ee();
422
- return ne({
423
- queryKey: ["organization-users", a, t],
420
+ function he(n, t) {
421
+ return te({
422
+ queryKey: ["organization-users", n, t],
424
423
  queryFn: () => ae({
425
- organizationId: a,
426
- search: t,
427
- environment: r.VITE_BACKEND_API_ORGANIZATION_URL ?? ""
424
+ organizationId: n,
425
+ search: t
428
426
  }),
429
- enabled: a.length > 0 && t.length > 0
427
+ enabled: n.length > 0 && t.length > 0
430
428
  });
431
429
  }
432
- const ye = {
430
+ const fe = {
433
431
  control: {
434
432
  fontSize: 14,
435
433
  fontWeight: "normal"
@@ -481,80 +479,80 @@ const ye = {
481
479
  }
482
480
  }
483
481
  }
484
- }, we = {
482
+ }, ye = {
485
483
  backgroundColor: "var(--accent, #dbeafe)",
486
484
  color: "var(--accent-foreground, #1d4ed8)",
487
485
  fontWeight: 600,
488
486
  borderRadius: 4,
489
487
  padding: "1px 2px"
490
488
  };
491
- function je({
492
- value: a,
489
+ function qe({
490
+ value: n,
493
491
  onChange: t,
494
- onBlur: r,
495
- organizationId: s,
492
+ onBlur: s,
493
+ organizationId: r,
496
494
  placeholder: i,
497
- disabled: n,
495
+ disabled: a,
498
496
  singleLine: o = !1
499
497
  }) {
500
- const [d, x] = F(""), b = te(d, 200), { data: m } = fe(s, b), y = D(void 0), f = X(
498
+ const [d, x] = D(""), b = ee(d, 200), { data: m } = he(r, b), y = A(void 0), f = K(
501
499
  () => m?.map((c) => ({ id: c._id, display: c.username })) ?? [],
502
500
  [m]
503
501
  );
504
- return E(() => {
502
+ return H(() => {
505
503
  y.current?.(f);
506
504
  }, [f]), /* @__PURE__ */ e(
507
- K,
505
+ W,
508
506
  {
509
- value: a,
507
+ value: n,
510
508
  onChange: (c, p) => t(p),
511
- onBlur: r,
509
+ onBlur: s,
512
510
  placeholder: i,
513
- disabled: n,
511
+ disabled: a,
514
512
  singleLine: o,
515
513
  allowSuggestionsAboveCursor: !0,
516
- style: ye,
514
+ style: fe,
517
515
  children: /* @__PURE__ */ e(
518
- W,
516
+ X,
519
517
  {
520
518
  trigger: "@",
521
- markup: be,
519
+ markup: me,
522
520
  data: (c, p) => {
523
521
  y.current = p, x(c), p(f);
524
522
  },
525
523
  displayTransform: (c, p) => `@${p}`,
526
524
  appendSpaceOnAdd: !0,
527
- style: we
525
+ style: ye
528
526
  }
529
527
  )
530
528
  }
531
529
  );
532
530
  }
533
- function qe({ text: a, className: t }) {
534
- const r = new RegExp(L), s = [];
535
- let i = 0, n, o = 0;
536
- for (; (n = r.exec(a)) !== null; )
537
- n.index > i && s.push(
538
- /* @__PURE__ */ e("span", { children: a.slice(i, n.index) }, o++)
539
- ), s.push(
540
- /* @__PURE__ */ g(H, { variant: "secondary", className: t, children: [
531
+ function Be({ text: n, className: t }) {
532
+ const s = new RegExp(E), r = [];
533
+ let i = 0, a, o = 0;
534
+ for (; (a = s.exec(n)) !== null; )
535
+ a.index > i && r.push(
536
+ /* @__PURE__ */ e("span", { children: n.slice(i, a.index) }, o++)
537
+ ), r.push(
538
+ /* @__PURE__ */ g(L, { variant: "secondary", className: t, children: [
541
539
  "@",
542
- n[1]
540
+ a[1]
543
541
  ] }, o++)
544
- ), i = n.index + n[0].length;
545
- return i < a.length && s.push(/* @__PURE__ */ e("span", { children: a.slice(i) }, o++)), /* @__PURE__ */ e(A, { children: s });
542
+ ), i = a.index + a[0].length;
543
+ return i < n.length && r.push(/* @__PURE__ */ e("span", { children: n.slice(i) }, o++)), /* @__PURE__ */ e(R, { children: r });
546
544
  }
547
- function Pe({
548
- size: a = 24,
545
+ function Oe({
546
+ size: n = 24,
549
547
  color: t = "currentColor",
550
- ...r
548
+ ...s
551
549
  }) {
552
550
  return /* @__PURE__ */ e(
553
551
  "svg",
554
552
  {
555
553
  xmlns: "http://www.w3.org/2000/svg",
556
- width: a,
557
- height: a,
554
+ width: n,
555
+ height: n,
558
556
  viewBox: "0 0 24 24",
559
557
  fill: "none",
560
558
  stroke: t,
@@ -562,58 +560,59 @@ function Pe({
562
560
  "stroke-linecap": "round",
563
561
  "stroke-linejoin": "round",
564
562
  className: "lucide lucide-twitter-icon lucide-twitter",
565
- ...r,
563
+ ...s,
566
564
  children: /* @__PURE__ */ e("path", { d: "M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z" })
567
565
  }
568
566
  );
569
567
  }
570
568
  export {
571
569
  We as AsyncBoundary,
572
- Ae as AttachmentInput,
570
+ Fe as AttachmentInput,
573
571
  Xe as CampaignsSelectInput,
574
- Ge as ClientSelectInput,
575
- Qe as ErrorBundary,
576
- Ve as ErrorCard,
572
+ Ke as ClientSelectInput,
573
+ Ge as ErrorBundary,
574
+ Qe as ErrorCard,
577
575
  Ye as FieldCalendar,
578
- Ze as FieldCheckbox,
579
- Je as FieldClientSelectInput,
580
- et as FieldInput,
581
- tt as FieldLabelWithAsterisk,
582
- nt as FieldProfileSelectInput,
576
+ Ve as FieldCheckbox,
577
+ Ze as FieldClientSelectInput,
578
+ Je as FieldInput,
579
+ et as FieldLabelWithAsterisk,
580
+ tt as FieldProfileSelectInput,
583
581
  at as FieldResponsibleSelectInput,
584
- rt as FieldSaleSelectInput,
585
- st as FieldSelect,
586
- it as FieldSwitch,
587
- ot as FieldTextarea,
588
- Fe as HoverContent,
582
+ nt as FieldSaleSelectInput,
583
+ rt as FieldSelect,
584
+ st as FieldSwitch,
585
+ it as FieldTextarea,
586
+ Re as HoverContent,
589
587
  De as IconBadge,
590
- lt as Image,
591
- dt as InfluencerSelectInput,
592
- ct as InstagramIcon,
593
- gt as LinkedInIcon,
594
- Ee as List,
588
+ ot as Image,
589
+ lt as InfluencerSelectInput,
590
+ dt as InstagramIcon,
591
+ ct as LinkedInIcon,
592
+ Ae as List,
595
593
  He as ListRow,
596
- je as MentionInput,
597
- qe as MentionText,
598
- ut as ModuleTags,
594
+ qe as MentionInput,
595
+ Be as MentionText,
596
+ gt as ModuleTags,
599
597
  Le as NotFoundCard,
600
- pt as PageHeader,
601
- xt as PageHeaderActions,
602
- mt as PageHeaderContent,
603
- bt as PageHeaderDescription,
604
- ht as PageHeaderTitle,
605
- ft as PinterestIcon,
606
- yt as ProfileSelectInput,
607
- wt as ResponsibleSelectInput,
608
- vt as SaleSelectInput,
609
- Oe as SpeedDialButton,
610
- Be as TableSkeleton,
598
+ ut as PageHeader,
599
+ pt as PageHeaderActions,
600
+ xt as PageHeaderContent,
601
+ mt as PageHeaderDescription,
602
+ bt as PageHeaderTitle,
603
+ ht as PinterestIcon,
604
+ ft as ProfileSelectInput,
605
+ yt as ResponsibleSelectInput,
606
+ wt as SaleSelectInput,
607
+ Ee as SpeedDialButton,
608
+ vt as SuppliersSelectInput,
609
+ $e as TableSkeleton,
611
610
  kt as TikTokIcon,
612
- Pe as TwitterIcon,
611
+ Oe as TwitterIcon,
613
612
  Nt as XIcon,
614
613
  Ct as YoutubeIcon,
615
- $e as getMentionedUsers,
616
- he as parseMentions,
614
+ je as getMentionedUsers,
615
+ be as parseMentions,
617
616
  St as useGetTags,
618
- It as useModuleTags
617
+ zt as useModuleTags
619
618
  };