@grapadigital/shared-app-modules 0.0.202 → 0.0.204

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,15 +1,15 @@
1
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 $, W as j, X as q, $ as C, _ as B, Y as P, a0 as U } from "./chuncks/switch.D_38xWg-.js";
2
- import { M as K, r as W } from "./chuncks/youtube-icon.component.BiPOuPjz.js";
3
- import { s as We, J as Xe, K as Ge, z as Qe, W as Ve, a2 as Ye, X as Ze, Y as Je, G as et, Z as tt, a3 as nt, _ as at, $ as rt, a0 as st, a1 as it, H as ot, L as lt, a4 as dt, a5 as ct, aa as gt, t as ut, u as pt, w as xt, x as mt, y as bt, a6 as ht, O as ft, U as yt, Q as wt, a7 as vt, a8 as kt, a9 as Nt, ac as Ct, ab as St } from "./chuncks/youtube-icon.component.BiPOuPjz.js";
4
- import { jsxs as d, jsx as e, Fragment as A } from "react/jsx-runtime";
2
+ import { M as K, r as W } from "./chuncks/youtube-icon.component.DgmjX6Bz.js";
3
+ import { s as We, J as Xe, K as Ge, z as Qe, W as Ve, a2 as Ye, X as Ze, Y as Je, G as et, Z as tt, a3 as nt, _ as at, $ as rt, a0 as st, a1 as it, H as ot, L as lt, a4 as dt, a5 as ct, aa as gt, t as ut, u as pt, w as xt, x as mt, y as bt, a6 as ht, O as ft, U as yt, Q as wt, a7 as vt, a8 as kt, a9 as Nt, ac as Ct, ab as St } from "./chuncks/youtube-icon.component.DgmjX6Bz.js";
4
+ import { jsxs as g, jsx as e, Fragment as A } from "react/jsx-runtime";
5
5
  import S, { useState as F, useRef as D, useEffect as H, useMemo as X } from "react";
6
6
  import { B as L, m as G, T as Q, k as V, l as Y, S as k } from "./chuncks/badge.tZcF7uIJ.js";
7
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.B3x4jLx3.js";
8
+ import { u as ee, a as te } from "./chuncks/use-shared-app-modules.hook.uZhjsTQ0.js";
9
9
  import "./chuncks/shared-app-modules.provider.DRJ7n4Cj.js";
10
10
  import { useQuery as ne } from "@tanstack/react-query";
11
11
  import "axios";
12
- import { l as ae } from "./chuncks/organization-users.service.BCM_WcCz.js";
12
+ import { l as ae } from "./chuncks/organization-users.service.CUZsF7go.js";
13
13
  const re = [
14
14
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
15
15
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
@@ -44,44 +44,44 @@ const ue = [
44
44
  ], pe = v("upload", ue);
45
45
  function Ae({
46
46
  icon: a = pe,
47
- title: n = "Enviar arquivos",
47
+ title: t = "Enviar arquivos",
48
48
  description: r = "Arraste e solte os arquivos aqui ou clique para selecionar.",
49
49
  buttonText: s = "Selecionar novos arquivos",
50
50
  files: i,
51
- disabled: t,
51
+ disabled: n,
52
52
  onFilesChange: o,
53
- ...l
53
+ ...d
54
54
  }) {
55
- const [x, h] = S.useState(!1), m = S.useRef(null), w = (c) => {
56
- const y = Array.from(c.target.files ?? []);
57
- o([...i, ...y]);
58
- }, f = (c) => {
59
- const y = [...i];
60
- y.splice(c, 1), o(y);
55
+ const [x, b] = S.useState(!1), m = S.useRef(null), y = (l) => {
56
+ const h = Array.from(l.target.files ?? []);
57
+ o([...i, ...h]);
58
+ }, f = (l) => {
59
+ const h = [...i];
60
+ h.splice(l, 1), o(h);
61
61
  };
62
- function b(c) {
63
- c.preventDefault(), h(!0);
62
+ function w(l) {
63
+ l.preventDefault(), b(!0);
64
64
  }
65
- function p(c) {
66
- c.preventDefault(), h(!1);
65
+ function c(l) {
66
+ l.preventDefault(), b(!1);
67
67
  }
68
- function g(c) {
69
- c.preventDefault(), h(!1);
70
- const y = Array.from(c.dataTransfer.files);
71
- o([...i, ...y]);
68
+ function p(l) {
69
+ l.preventDefault(), b(!1);
70
+ const h = Array.from(l.dataTransfer.files);
71
+ o([...i, ...h]);
72
72
  }
73
- return /* @__PURE__ */ d(
73
+ return /* @__PURE__ */ g(
74
74
  "div",
75
75
  {
76
- onDragOver: b,
77
- onDragLeave: p,
78
- onDrop: g,
76
+ onDragOver: w,
77
+ onDragLeave: c,
78
+ onDrop: p,
79
79
  className: u(
80
80
  "w-full space-y-3",
81
- t && "pointer-events-none opacity-60 select-none"
81
+ n && "pointer-events-none opacity-60 select-none"
82
82
  ),
83
83
  children: [
84
- /* @__PURE__ */ d(
84
+ /* @__PURE__ */ g(
85
85
  "div",
86
86
  {
87
87
  className: u(
@@ -93,24 +93,24 @@ function Ae({
93
93
  "input",
94
94
  {
95
95
  multiple: !0,
96
- ...l,
96
+ ...d,
97
97
  ref: m,
98
98
  type: "file",
99
99
  className: "hidden",
100
- onChange: w,
101
- disabled: t
100
+ onChange: y,
101
+ disabled: n
102
102
  }
103
103
  ),
104
104
  /* @__PURE__ */ e("div", { className: "w-fit mx-auto", children: /* @__PURE__ */ e(a, { className: "text-muted-foreground size-8" }) }),
105
- /* @__PURE__ */ d("div", { children: [
106
- /* @__PURE__ */ e("h3", { className: "font-semibold", children: n }),
105
+ /* @__PURE__ */ g("div", { children: [
106
+ /* @__PURE__ */ e("h3", { className: "font-semibold", children: t }),
107
107
  /* @__PURE__ */ e("p", { className: "text-muted-foreground text-sm", children: r })
108
108
  ] }),
109
109
  /* @__PURE__ */ e(
110
110
  N,
111
111
  {
112
112
  type: "button",
113
- disabled: t,
113
+ disabled: n,
114
114
  size: "sm",
115
115
  onClick: () => m.current?.click(),
116
116
  className: "w-fit mx-auto",
@@ -120,38 +120,38 @@ function Ae({
120
120
  ]
121
121
  }
122
122
  ),
123
- i.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: i.map((c, y) => /* @__PURE__ */ d(L, { 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
  {
127
- onClick: () => f(y),
127
+ onClick: () => f(h),
128
128
  className: "hover:text-red-500",
129
129
  "aria-label": "Remover anexo",
130
130
  title: "Remover anexo",
131
- disabled: t,
131
+ disabled: n,
132
132
  children: /* @__PURE__ */ e(z, { className: "size-3" })
133
133
  }
134
134
  ),
135
- c.name
136
- ] }, c.name)) })
135
+ l.name
136
+ ] }, l.name)) })
137
137
  ]
138
138
  }
139
139
  );
140
140
  }
141
141
  function Fe({
142
142
  content: a,
143
- align: n,
143
+ align: t,
144
144
  asChild: r,
145
145
  className: s,
146
146
  openDelay: i = 0,
147
- closeDelay: t = 0,
147
+ closeDelay: n = 0,
148
148
  children: o,
149
- disabled: l = !1,
149
+ disabled: d = !1,
150
150
  ...x
151
151
  }) {
152
- return /* @__PURE__ */ e(A, { children: l === !0 ? o : /* @__PURE__ */ d(M, { openDelay: i, closeDelay: t, ...x, children: [
152
+ return /* @__PURE__ */ e(A, { children: d === !0 ? o : /* @__PURE__ */ g(M, { openDelay: i, closeDelay: n, ...x, children: [
153
153
  /* @__PURE__ */ e(T, { asChild: r, children: o }),
154
- /* @__PURE__ */ e(R, { align: n, className: s, children: a })
154
+ /* @__PURE__ */ e(R, { align: t, className: s, children: a })
155
155
  ] }) });
156
156
  }
157
157
  const xe = {
@@ -210,45 +210,46 @@ const xe = {
210
210
  };
211
211
  function De({
212
212
  size: a,
213
- color: n,
213
+ color: t,
214
214
  className: r,
215
215
  icon: s,
216
216
  filled: i
217
217
  }) {
218
- const t = i ? me[n] : xe[n], o = a ? _[a] : _.md;
219
- return /* @__PURE__ */ e("div", { className: u("w-fit p-2 rounded-lg", t?.bg, r), children: /* @__PURE__ */ e(s, { className: u(o, t?.text) }) });
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) }) });
220
220
  }
221
- function He({ className: a, ...n }) {
222
- return /* @__PURE__ */ e("div", { className: u("divide-y", a), ...n });
221
+ function He({ className: a, ...t }) {
222
+ return /* @__PURE__ */ e("div", { className: u("divide-y", a), ...t });
223
223
  }
224
224
  function Le({
225
225
  label: a,
226
- value: n,
226
+ value: t,
227
227
  tooltip: r,
228
228
  highlight: s = !1,
229
229
  negative: i = !1,
230
- positive: t = !1,
230
+ positive: n = !1,
231
231
  isPercentage: o = !1,
232
- isDate: l = !1,
232
+ isDate: d = !1,
233
233
  isText: x = !1,
234
- isInvoiced: h = !1,
234
+ isInvoiced: b = !1,
235
235
  hasCopyButton: m = !1,
236
- enableHoverableContent: w = !1,
237
- handleCopy: f
236
+ contrast: y = !1,
237
+ enableHoverableContent: f = !1,
238
+ handleCopy: w
238
239
  }) {
239
- let b = "";
240
- if (l && typeof n == "string" && !h && s) {
241
- const p = I(n), g = Z(p, /* @__PURE__ */ new Date());
242
- g > 15 ? b = "bg-yellow-100 font-bold" : g > 7 ? b = "bg-yellow-300 font-bold" : g >= 0 ? b = "bg-red-300 font-bold" : b = "bg-red-500 text-white font-bold";
243
- } else s && (b = "bg-[#ffe0b2] font-bold");
244
- return /* @__PURE__ */ e("div", { className: u("px-2 py-1 text-sm", b), children: /* @__PURE__ */ d(M, { openDelay: 0, closeDelay: 0, children: [
245
- /* @__PURE__ */ e(T, { children: /* @__PURE__ */ d("div", { className: "flex justify-between", children: [
246
- /* @__PURE__ */ d(
240
+ let c = "";
241
+ if (d && typeof t == "string" && t !== "" && !b && s) {
242
+ const p = I(t), l = Z(p, /* @__PURE__ */ new Date());
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");
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
+ /* @__PURE__ */ e(T, { children: /* @__PURE__ */ g("div", { className: "flex justify-between", children: [
247
+ /* @__PURE__ */ g(
247
248
  "span",
248
249
  {
249
250
  className: u(
250
251
  "flex flex-row gap-1",
251
- i ? "text-red-600" : t ? "text-green-600" : ""
252
+ i ? "text-red-600" : n ? "text-green-600" : ""
252
253
  ),
253
254
  children: [
254
255
  a,
@@ -257,16 +258,16 @@ function Le({
257
258
  ]
258
259
  }
259
260
  ),
260
- /* @__PURE__ */ d(
261
+ /* @__PURE__ */ g(
261
262
  "span",
262
263
  {
263
264
  className: u(
264
265
  "flex flex-row justify-end gap-2 text-right",
265
- i ? "text-red-600" : t ? "text-green-600" : ""
266
+ i ? "text-red-600" : n ? "text-green-600" : ""
266
267
  ),
267
268
  children: [
268
- o && typeof n == "number" ? `${n.toFixed(2)}%` : l && typeof n == "string" ? J(I(n), "dd/MM/yyyy") : x && typeof n == "string" ? n : `R$ ${n.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`,
269
- m && f && /* @__PURE__ */ e(de, { size: 15, onClick: () => f(n) })
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
270
271
  ]
271
272
  }
272
273
  )
@@ -275,8 +276,8 @@ function Le({
275
276
  R,
276
277
  {
277
278
  align: "start",
278
- className: u(!w && "pointer-events-none"),
279
- children: /* @__PURE__ */ d("div", { className: "space-y-0.5", children: [
279
+ className: u(!f && "pointer-events-none"),
280
+ children: /* @__PURE__ */ g("div", { className: "space-y-0.5", children: [
280
281
  /* @__PURE__ */ e("div", { className: "font-medium", children: a }),
281
282
  /* @__PURE__ */ e("div", { className: "font-normal opacity-80", children: r })
282
283
  ] })
@@ -286,13 +287,13 @@ function Le({
286
287
  }
287
288
  function Ee({
288
289
  icon: a = ge,
289
- title: n,
290
+ title: t,
290
291
  description: r,
291
292
  tip: s,
292
293
  className: i,
293
- ...t
294
+ ...n
294
295
  }) {
295
- return /* @__PURE__ */ e(O, { className: u(i), ...t, children: /* @__PURE__ */ d($, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
296
+ return /* @__PURE__ */ e(O, { className: u(i), ...n, children: /* @__PURE__ */ g($, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
296
297
  /* @__PURE__ */ e("div", { className: "relative mb-4", children: /* @__PURE__ */ e(
297
298
  a,
298
299
  {
@@ -300,33 +301,33 @@ function Ee({
300
301
  className: "size-16 text-muted-foreground/40"
301
302
  }
302
303
  ) }),
303
- /* @__PURE__ */ e("h3", { className: "mb-2 text-lg font-semibold text-foreground", children: n }),
304
+ /* @__PURE__ */ e("h3", { className: "mb-2 text-lg font-semibold text-foreground", children: t }),
304
305
  /* @__PURE__ */ e("p", { className: "max-w-md text-sm leading-relaxed text-muted-foreground", children: r }),
305
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 }) })
306
307
  ] }) });
307
308
  }
308
309
  function Oe({
309
310
  actions: a,
310
- icon: n = oe
311
+ icon: t = oe
311
312
  }) {
312
313
  const [r, s] = F(!1), i = D(null);
313
314
  return H(() => {
314
315
  if (!r) return;
315
- const t = (l) => {
316
- i.current?.contains(l.target) || s(!1);
317
- }, o = (l) => {
318
- l.key === "Escape" && s(!1);
316
+ const n = (d) => {
317
+ i.current?.contains(d.target) || s(!1);
318
+ }, o = (d) => {
319
+ d.key === "Escape" && s(!1);
319
320
  };
320
- return document.addEventListener("mousedown", t), document.addEventListener("keydown", o), () => {
321
- document.removeEventListener("mousedown", t), document.removeEventListener("keydown", o);
321
+ return document.addEventListener("mousedown", n), document.addEventListener("keydown", o), () => {
322
+ document.removeEventListener("mousedown", n), document.removeEventListener("keydown", o);
322
323
  };
323
- }, [r]), /* @__PURE__ */ e(G, { children: /* @__PURE__ */ d(
324
+ }, [r]), /* @__PURE__ */ e(G, { children: /* @__PURE__ */ g(
324
325
  "div",
325
326
  {
326
327
  ref: i,
327
328
  className: "fixed bottom-6 right-6 z-50 flex flex-col items-end gap-3",
328
329
  children: [
329
- /* @__PURE__ */ e("div", { className: "flex flex-col items-end gap-3", children: a.map((t, o) => /* @__PURE__ */ e(
330
+ /* @__PURE__ */ e("div", { className: "flex flex-col items-end gap-3", children: a.map((n, o) => /* @__PURE__ */ e(
330
331
  "div",
331
332
  {
332
333
  className: u(
@@ -334,28 +335,28 @@ function Oe({
334
335
  r ? "translate-y-0 opacity-100" : "pointer-events-none translate-y-2 opacity-0"
335
336
  ),
336
337
  style: { transitionDelay: r ? `${o * 30}ms` : "0ms" },
337
- children: /* @__PURE__ */ d(Q, { children: [
338
+ children: /* @__PURE__ */ g(Q, { children: [
338
339
  /* @__PURE__ */ e(V, { asChild: !0, children: /* @__PURE__ */ e(
339
340
  N,
340
341
  {
341
342
  size: "icon",
342
343
  variant: "outline",
343
- disabled: t.disabled,
344
- "aria-disabled": t.disabled,
344
+ disabled: n.disabled,
345
+ "aria-disabled": n.disabled,
345
346
  className: u(
346
347
  "size-11 rounded-full shadow-md",
347
- t.disabled && "opacity-50"
348
+ n.disabled && "opacity-50"
348
349
  ),
349
350
  onClick: () => {
350
- t.disabled || (t.onClick(), s(!1));
351
+ n.disabled || (n.onClick(), s(!1));
351
352
  },
352
- children: /* @__PURE__ */ e(t.icon, { className: "size-5" })
353
+ children: /* @__PURE__ */ e(n.icon, { className: "size-5" })
353
354
  }
354
355
  ) }),
355
- /* @__PURE__ */ e(Y, { side: "left", children: t.label })
356
+ /* @__PURE__ */ e(Y, { side: "left", children: n.label })
356
357
  ] })
357
358
  },
358
- t.label
359
+ n.label
359
360
  )) }),
360
361
  /* @__PURE__ */ e(
361
362
  N,
@@ -365,8 +366,8 @@ function Oe({
365
366
  className: "size-11 rounded-full shadow-md",
366
367
  "aria-label": r ? "Fechar menu de ajuda" : "Abrir menu de ajuda",
367
368
  "aria-expanded": r,
368
- onClick: () => s((t) => !t),
369
- children: r ? /* @__PURE__ */ e(z, { className: "size-5" }) : /* @__PURE__ */ e(n, { className: "size-5" })
369
+ onClick: () => s((n) => !n),
370
+ children: r ? /* @__PURE__ */ e(z, { className: "size-5" }) : /* @__PURE__ */ e(t, { className: "size-5" })
370
371
  }
371
372
  )
372
373
  ]
@@ -375,13 +376,13 @@ function Oe({
375
376
  }
376
377
  function $e({
377
378
  columns: a = 9,
378
- rows: n = 20,
379
+ rows: t = 20,
379
380
  hasActions: r = !1,
380
381
  actionsCount: s = 1
381
382
  }) {
382
- return /* @__PURE__ */ d(j, { children: [
383
- /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(C, { children: Array.from({ length: a }).map((i, t) => {
384
- const o = r && t === a - 1;
383
+ return /* @__PURE__ */ g(j, { children: [
384
+ /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(C, { children: Array.from({ length: a }).map((i, n) => {
385
+ const o = r && n === a - 1;
385
386
  return /* @__PURE__ */ e(
386
387
  B,
387
388
  {
@@ -393,39 +394,39 @@ function $e({
393
394
  }
394
395
  )
395
396
  },
396
- t
397
+ n
397
398
  );
398
399
  }) }) }),
399
- /* @__PURE__ */ e(P, { children: Array.from({ length: n }).map((i, t) => /* @__PURE__ */ e(C, { className: "h-[3.05rem]", children: Array.from({ length: a }).map((o, l) => {
400
- const x = r && l === a - 1;
401
- return /* @__PURE__ */ e(U, { children: x ? /* @__PURE__ */ e("div", { className: "flex gap-2", children: Array.from({ length: s }).map((h, m) => /* @__PURE__ */ e(k, { className: "ml-auto size-8" }, m)) }) : /* @__PURE__ */ e(k, { className: "h-4 w-full" }) }, l);
402
- }) }, t)) })
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)) })
403
404
  ] });
404
405
  }
405
406
  const be = "@[__display__](__id__)", E = /@\[([^\]]+)\]\(([^)]+)\)/g;
406
407
  function he(a) {
407
- const n = [], r = new RegExp(E);
408
+ const t = [], r = new RegExp(E);
408
409
  let s;
409
410
  for (; (s = r.exec(a)) !== null; )
410
- n.push({ display: s[1], id: s[2] });
411
- return n;
411
+ t.push({ display: s[1], id: s[2] });
412
+ return t;
412
413
  }
413
414
  function je(a) {
414
- return he(a).map((n) => ({
415
- userId: n.id,
416
- username: n.display
415
+ return he(a).map((t) => ({
416
+ userId: t.id,
417
+ username: t.display
417
418
  }));
418
419
  }
419
- function fe(a, n) {
420
+ function fe(a, t) {
420
421
  const { environments: r } = ee();
421
422
  return ne({
422
- queryKey: ["organization-users", a, n],
423
+ queryKey: ["organization-users", a, t],
423
424
  queryFn: () => ae({
424
425
  organizationId: a,
425
- search: n,
426
+ search: t,
426
427
  environment: r.VITE_BACKEND_API_ORGANIZATION_URL ?? ""
427
428
  }),
428
- enabled: a.length > 0 && n.length > 0
429
+ enabled: a.length > 0 && t.length > 0
429
430
  });
430
431
  }
431
432
  const ye = {
@@ -489,27 +490,27 @@ const ye = {
489
490
  };
490
491
  function qe({
491
492
  value: a,
492
- onChange: n,
493
+ onChange: t,
493
494
  onBlur: r,
494
495
  organizationId: s,
495
496
  placeholder: i,
496
- disabled: t,
497
+ disabled: n,
497
498
  singleLine: o = !1
498
499
  }) {
499
- const [l, x] = F(""), h = te(l, 200), { data: m } = fe(s, h), w = D(void 0), f = X(
500
- () => m?.map((p) => ({ id: p._id, display: p.username })) ?? [],
500
+ const [d, x] = F(""), b = te(d, 200), { data: m } = fe(s, b), y = D(void 0), f = X(
501
+ () => m?.map((c) => ({ id: c._id, display: c.username })) ?? [],
501
502
  [m]
502
503
  );
503
504
  return H(() => {
504
- w.current?.(f);
505
+ y.current?.(f);
505
506
  }, [f]), /* @__PURE__ */ e(
506
507
  K,
507
508
  {
508
509
  value: a,
509
- onChange: (p, g) => n(g),
510
+ onChange: (c, p) => t(p),
510
511
  onBlur: r,
511
512
  placeholder: i,
512
- disabled: t,
513
+ disabled: n,
513
514
  singleLine: o,
514
515
  allowSuggestionsAboveCursor: !0,
515
516
  style: ye,
@@ -518,10 +519,10 @@ function qe({
518
519
  {
519
520
  trigger: "@",
520
521
  markup: be,
521
- data: (p, g) => {
522
- w.current = g, x(p), g(f);
522
+ data: (c, p) => {
523
+ y.current = p, x(c), p(f);
523
524
  },
524
- displayTransform: (p, g) => `@${g}`,
525
+ displayTransform: (c, p) => `@${p}`,
525
526
  appendSpaceOnAdd: !0,
526
527
  style: we
527
528
  }
@@ -529,23 +530,23 @@ function qe({
529
530
  }
530
531
  );
531
532
  }
532
- function Be({ text: a, className: n }) {
533
+ function Be({ text: a, className: t }) {
533
534
  const r = new RegExp(E), s = [];
534
- let i = 0, t, o = 0;
535
- for (; (t = r.exec(a)) !== null; )
536
- t.index > i && s.push(
537
- /* @__PURE__ */ e("span", { children: a.slice(i, t.index) }, o++)
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++)
538
539
  ), s.push(
539
- /* @__PURE__ */ d(L, { variant: "secondary", className: n, children: [
540
+ /* @__PURE__ */ g(L, { variant: "secondary", className: t, children: [
540
541
  "@",
541
- t[1]
542
+ n[1]
542
543
  ] }, o++)
543
- ), i = t.index + t[0].length;
544
+ ), i = n.index + n[0].length;
544
545
  return i < a.length && s.push(/* @__PURE__ */ e("span", { children: a.slice(i) }, o++)), /* @__PURE__ */ e(A, { children: s });
545
546
  }
546
547
  function Pe({
547
548
  size: a = 24,
548
- color: n = "currentColor",
549
+ color: t = "currentColor",
549
550
  ...r
550
551
  }) {
551
552
  return /* @__PURE__ */ e(
@@ -556,7 +557,7 @@ function Pe({
556
557
  height: a,
557
558
  viewBox: "0 0 24 24",
558
559
  fill: "none",
559
- stroke: n,
560
+ stroke: t,
560
561
  "stroke-width": "2",
561
562
  "stroke-linecap": "round",
562
563
  "stroke-linejoin": "round",
@@ -3,14 +3,10 @@ import { LucideProps } from 'lucide-react';
3
3
 
4
4
  export declare const ACTION_STATUS_VALUES: {
5
5
  readonly config: "Configuração";
6
- readonly script: "Roteiro";
7
- readonly production: "Produção";
8
- readonly posting: "Postagem";
9
- readonly analytics: "Analytics";
6
+ readonly inProgress: "Em Andamento";
10
7
  readonly finished: "Concluído";
11
- readonly onHold: "Aguardando";
12
- readonly cancelled: "Cancelado";
13
8
  readonly archived: "Arquivada";
9
+ readonly cancelled: "Cancelado";
14
10
  };
15
11
 
16
12
  export declare const ACTION_TYPE_VALUES: {
package/dist/constants.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as n, A as m, B as S, C as A, D as c, E as N, F as E, I as g, N as l, a as _, d as p, P as B, R as r, c as s, e as i, S as t, T, V as I } from "./chuncks/youtube-icon.component.BiPOuPjz.js";
1
+ import { b as n, A as m, B as S, C as A, D as c, E as N, F as E, I as g, N as l, a as _, d as p, P as B, R as r, c as s, e as i, S as t, T, V as I } from "./chuncks/youtube-icon.component.DgmjX6Bz.js";
2
2
  const o = [
3
3
  {
4
4
  compe: "001",
package/dist/content.d.ts CHANGED
@@ -5,7 +5,7 @@ declare interface ActionInterface {
5
5
  title?: string;
6
6
  clientId?: string;
7
7
  cluster?: string;
8
- status?: "config" | "script" | "production" | "posting" | "analytics" | "finished" | "onHold" | "cancelled" | "inProgress" | "archived";
8
+ status?: "config" | "inProgress" | "finished" | "archived" | "cancelled";
9
9
  businessUnit?: "service" | "comercial" | "squad_a" | "squad_b";
10
10
  startDate?: string;
11
11
  endDate?: string;
@@ -1,36 +1,28 @@
1
1
  export declare const actionStatusDict: {
2
2
  data: {
3
3
  readonly config: "Configuração";
4
- readonly script: "Roteiro";
5
- readonly production: "Produção";
6
- readonly posting: "Postagem";
7
- readonly analytics: "Analytics";
4
+ readonly inProgress: "Em Andamento";
8
5
  readonly finished: "Concluído";
9
- readonly onHold: "Aguardando";
10
- readonly cancelled: "Cancelado";
11
6
  readonly archived: "Arquivada";
7
+ readonly cancelled: "Cancelado";
12
8
  };
13
- values: ("script" | "config" | "production" | "posting" | "analytics" | "finished" | "onHold" | "cancelled" | "archived")[];
14
- labels: ("Configuração" | "Roteiro" | "Produção" | "Postagem" | "Analytics" | "Concluído" | "Aguardando" | "Cancelado" | "Arquivada")[];
9
+ values: ("config" | "inProgress" | "finished" | "archived" | "cancelled")[];
10
+ labels: ("Configuração" | "Em Andamento" | "Concluído" | "Arquivada" | "Cancelado")[];
15
11
  getLabel: {
16
- <K extends "script" | "config" | "production" | "posting" | "analytics" | "finished" | "onHold" | "cancelled" | "archived">(value: K): {
12
+ <K extends "config" | "inProgress" | "finished" | "archived" | "cancelled">(value: K): {
17
13
  readonly config: "Configuração";
18
- readonly script: "Roteiro";
19
- readonly production: "Produção";
20
- readonly posting: "Postagem";
21
- readonly analytics: "Analytics";
14
+ readonly inProgress: "Em Andamento";
22
15
  readonly finished: "Concluído";
23
- readonly onHold: "Aguardando";
24
- readonly cancelled: "Cancelado";
25
16
  readonly archived: "Arquivada";
17
+ readonly cancelled: "Cancelado";
26
18
  }[K];
27
- (value?: string | number | symbol | null): "Configuração" | "Roteiro" | "Produção" | "Postagem" | "Analytics" | "Concluído" | "Aguardando" | "Cancelado" | "Arquivada" | null;
19
+ (value?: string | number | symbol | null): "Configuração" | "Em Andamento" | "Concluído" | "Arquivada" | "Cancelado" | null;
28
20
  };
29
21
  options: {
30
- value: "script" | "config" | "production" | "posting" | "analytics" | "finished" | "onHold" | "cancelled" | "archived";
31
- label: "Configuração" | "Roteiro" | "Produção" | "Postagem" | "Analytics" | "Concluído" | "Aguardando" | "Cancelado" | "Arquivada";
22
+ value: "config" | "inProgress" | "finished" | "archived" | "cancelled";
23
+ label: "Configuração" | "Em Andamento" | "Concluído" | "Arquivada" | "Cancelado";
32
24
  }[];
33
- is(value?: string | number | symbol | null): value is "script" | "config" | "production" | "posting" | "analytics" | "finished" | "onHold" | "cancelled" | "archived";
25
+ is(value?: string | number | symbol | null): value is "config" | "inProgress" | "finished" | "archived" | "cancelled";
34
26
  };
35
27
 
36
28
  export declare const actionTypeDict: {
@@ -113,7 +105,7 @@ export declare const paymentPhaseDict: {
113
105
  readonly canceled: "Cancelado";
114
106
  };
115
107
  values: ("client" | "pending" | "review" | "awaiting" | "requested" | "received" | "queued" | "paid" | "canceled")[];
116
- labels: ("Aguardando" | "Cancelado" | "Revisão Atendimento" | "Revisão Financeiro" | "NF Solicitada" | "NF Recebida" | "Na Fila para Pagamento" | "Pago" | "Pagamento via Cliente")[];
108
+ labels: ("Cancelado" | "Revisão Atendimento" | "Revisão Financeiro" | "Aguardando" | "NF Solicitada" | "NF Recebida" | "Na Fila para Pagamento" | "Pago" | "Pagamento via Cliente")[];
117
109
  getLabel: {
118
110
  <K extends "client" | "pending" | "review" | "awaiting" | "requested" | "received" | "queued" | "paid" | "canceled">(value: K): {
119
111
  readonly pending: "Revisão Atendimento";
@@ -126,11 +118,11 @@ export declare const paymentPhaseDict: {
126
118
  readonly client: "Pagamento via Cliente";
127
119
  readonly canceled: "Cancelado";
128
120
  }[K];
129
- (value?: string | number | symbol | null): "Aguardando" | "Cancelado" | "Revisão Atendimento" | "Revisão Financeiro" | "NF Solicitada" | "NF Recebida" | "Na Fila para Pagamento" | "Pago" | "Pagamento via Cliente" | null;
121
+ (value?: string | number | symbol | null): "Cancelado" | "Revisão Atendimento" | "Revisão Financeiro" | "Aguardando" | "NF Solicitada" | "NF Recebida" | "Na Fila para Pagamento" | "Pago" | "Pagamento via Cliente" | null;
130
122
  };
131
123
  options: {
132
124
  value: "client" | "pending" | "review" | "awaiting" | "requested" | "received" | "queued" | "paid" | "canceled";
133
- label: "Aguardando" | "Cancelado" | "Revisão Atendimento" | "Revisão Financeiro" | "NF Solicitada" | "NF Recebida" | "Na Fila para Pagamento" | "Pago" | "Pagamento via Cliente";
125
+ label: "Cancelado" | "Revisão Atendimento" | "Revisão Financeiro" | "Aguardando" | "NF Solicitada" | "NF Recebida" | "Na Fila para Pagamento" | "Pago" | "Pagamento via Cliente";
134
126
  }[];
135
127
  is(value?: string | number | symbol | null): value is "client" | "pending" | "review" | "awaiting" | "requested" | "received" | "queued" | "paid" | "canceled";
136
128
  };