@grapadigital/shared-app-modules 0.0.216 → 0.0.218
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/action.d.ts +1 -0
- package/dist/chuncks/{format.util.BUmWGiJF.js → format.util.CesJhvUo.js} +1 -1
- package/dist/chuncks/organization-users.service.B9edFs4F.js +14 -0
- package/dist/chuncks/use-debounce.hook.TyZMbuZv.js +42 -0
- package/dist/chuncks/{youtube-icon.component.CU9RpVNh.js → youtube-icon.component.BSdD-jlw.js} +1471 -1382
- package/dist/client.d.ts +1 -0
- package/dist/components.d.ts +8 -0
- package/dist/components.js +202 -203
- package/dist/configs.d.ts +2 -0
- package/dist/constants.js +1 -1
- package/dist/content.d.ts +1 -0
- package/dist/curation.d.ts +1 -0
- package/dist/dictionaries.js +4 -4
- package/dist/events.js +1 -1
- package/dist/hooks.d.ts +2 -0
- package/dist/hooks.js +24 -15
- package/dist/invoice.d.ts +1 -0
- package/dist/payment.d.ts +1 -0
- package/dist/providers.d.ts +2 -0
- package/dist/recruitment.d.ts +1 -0
- package/dist/sale.d.ts +1 -0
- package/dist/utils.js +4 -4
- package/package.json +9 -9
- package/dist/chuncks/organization-users.service.CUZsF7go.js +0 -15
- package/dist/chuncks/use-shared-app-modules.hook.uZhjsTQ0.js +0 -53
package/dist/components.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { aZ as v, c as u, B as N, a_ as
|
|
2
|
-
import { M as
|
|
3
|
-
import { t as We, L as Xe, O as
|
|
4
|
-
import { jsxs as g, jsx as e, Fragment as
|
|
5
|
-
import S, { useState as
|
|
6
|
-
import { B as
|
|
7
|
-
import { parseISO as
|
|
8
|
-
import { u as ee
|
|
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
|
|
10
|
+
import { useQuery as te } from "@tanstack/react-query";
|
|
11
11
|
import "axios";
|
|
12
|
-
import { l as ae } from "./chuncks/organization-users.service.
|
|
13
|
-
const
|
|
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
|
-
],
|
|
18
|
-
const
|
|
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
|
-
],
|
|
23
|
-
const
|
|
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
|
-
],
|
|
27
|
-
const
|
|
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
|
-
],
|
|
40
|
-
const
|
|
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
|
-
],
|
|
45
|
-
function
|
|
46
|
-
icon:
|
|
44
|
+
], ue = v("upload", ge);
|
|
45
|
+
function Fe({
|
|
46
|
+
icon: n = ue,
|
|
47
47
|
title: t = "Enviar arquivos",
|
|
48
|
-
description:
|
|
49
|
-
buttonText:
|
|
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:
|
|
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
|
-
|
|
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:
|
|
101
|
+
disabled: a
|
|
102
102
|
}
|
|
103
103
|
),
|
|
104
|
-
/* @__PURE__ */ e("div", { className: "w-fit mx-auto", children: /* @__PURE__ */ e(
|
|
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:
|
|
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:
|
|
113
|
+
disabled: a,
|
|
114
114
|
size: "sm",
|
|
115
115
|
onClick: () => m.current?.click(),
|
|
116
116
|
className: "w-fit mx-auto",
|
|
117
|
-
children:
|
|
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(
|
|
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:
|
|
132
|
-
children: /* @__PURE__ */ e(
|
|
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
|
|
142
|
-
content:
|
|
141
|
+
function Re({
|
|
142
|
+
content: n,
|
|
143
143
|
align: t,
|
|
144
|
-
asChild:
|
|
145
|
-
className:
|
|
144
|
+
asChild: s,
|
|
145
|
+
className: r,
|
|
146
146
|
openDelay: i = 0,
|
|
147
|
-
closeDelay:
|
|
147
|
+
closeDelay: a = 0,
|
|
148
148
|
children: o,
|
|
149
149
|
disabled: d = !1,
|
|
150
150
|
...x
|
|
151
151
|
}) {
|
|
152
|
-
return /* @__PURE__ */ e(
|
|
153
|
-
/* @__PURE__ */ e(T, { asChild:
|
|
154
|
-
/* @__PURE__ */ e(
|
|
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
|
|
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
|
-
},
|
|
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:
|
|
212
|
+
size: n,
|
|
213
213
|
color: t,
|
|
214
|
-
className:
|
|
215
|
-
icon:
|
|
214
|
+
className: s,
|
|
215
|
+
icon: r,
|
|
216
216
|
filled: i
|
|
217
217
|
}) {
|
|
218
|
-
const
|
|
219
|
-
return /* @__PURE__ */ e("div", { className: u("w-fit p-2 rounded-lg",
|
|
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
|
|
222
|
-
return /* @__PURE__ */ e("div", { className: u("divide-y",
|
|
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:
|
|
225
|
+
label: n,
|
|
226
226
|
value: t,
|
|
227
|
-
tooltip:
|
|
228
|
-
highlight:
|
|
227
|
+
tooltip: s,
|
|
228
|
+
highlight: r = !1,
|
|
229
229
|
negative: i = !1,
|
|
230
|
-
positive:
|
|
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 &&
|
|
242
|
-
const p =
|
|
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
|
|
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" :
|
|
252
|
+
i ? "text-red-600" : a ? "text-green-600" : ""
|
|
253
253
|
),
|
|
254
254
|
children: [
|
|
255
|
-
|
|
255
|
+
n,
|
|
256
256
|
" ",
|
|
257
|
-
/* @__PURE__ */ e(
|
|
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" :
|
|
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(
|
|
270
|
-
m && w ? /* @__PURE__ */ e(
|
|
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
|
-
|
|
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:
|
|
282
|
-
/* @__PURE__ */ e("div", { className: "font-normal opacity-80", children:
|
|
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:
|
|
289
|
+
icon: n = ce,
|
|
290
290
|
title: t,
|
|
291
|
-
description:
|
|
292
|
-
tip:
|
|
291
|
+
description: s,
|
|
292
|
+
tip: r,
|
|
293
293
|
className: i,
|
|
294
|
-
...
|
|
294
|
+
...a
|
|
295
295
|
}) {
|
|
296
|
-
return /* @__PURE__ */ e(
|
|
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
|
-
|
|
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:
|
|
306
|
-
|
|
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
|
|
310
|
-
actions:
|
|
311
|
-
icon: t =
|
|
309
|
+
function Ee({
|
|
310
|
+
actions: n,
|
|
311
|
+
icon: t = ie
|
|
312
312
|
}) {
|
|
313
|
-
const [
|
|
314
|
-
return
|
|
315
|
-
if (!
|
|
316
|
-
const
|
|
317
|
-
i.current?.contains(d.target) ||
|
|
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" &&
|
|
319
|
+
d.key === "Escape" && r(!1);
|
|
320
320
|
};
|
|
321
|
-
return document.addEventListener("mousedown",
|
|
322
|
-
document.removeEventListener("mousedown",
|
|
321
|
+
return document.addEventListener("mousedown", a), document.addEventListener("keydown", o), () => {
|
|
322
|
+
document.removeEventListener("mousedown", a), document.removeEventListener("keydown", o);
|
|
323
323
|
};
|
|
324
|
-
}, [
|
|
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:
|
|
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
|
-
|
|
335
|
+
s ? "translate-y-0 opacity-100" : "pointer-events-none translate-y-2 opacity-0"
|
|
336
336
|
),
|
|
337
|
-
style: { transitionDelay:
|
|
337
|
+
style: { transitionDelay: s ? `${o * 30}ms` : "0ms" },
|
|
338
338
|
children: /* @__PURE__ */ g(Q, { children: [
|
|
339
|
-
/* @__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:
|
|
345
|
-
"aria-disabled":
|
|
344
|
+
disabled: a.disabled,
|
|
345
|
+
"aria-disabled": a.disabled,
|
|
346
346
|
className: u(
|
|
347
347
|
"size-11 rounded-full shadow-md",
|
|
348
|
-
|
|
348
|
+
a.disabled && "opacity-50"
|
|
349
349
|
),
|
|
350
350
|
onClick: () => {
|
|
351
|
-
|
|
351
|
+
a.disabled || (a.onClick(), r(!1));
|
|
352
352
|
},
|
|
353
|
-
children: /* @__PURE__ */ e(
|
|
353
|
+
children: /* @__PURE__ */ e(a.icon, { className: "size-5" })
|
|
354
354
|
}
|
|
355
355
|
) }),
|
|
356
|
-
/* @__PURE__ */ e(
|
|
356
|
+
/* @__PURE__ */ e(V, { side: "left", children: a.label })
|
|
357
357
|
] })
|
|
358
358
|
},
|
|
359
|
-
|
|
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":
|
|
368
|
-
"aria-expanded":
|
|
369
|
-
onClick: () =>
|
|
370
|
-
children:
|
|
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
|
|
378
|
-
columns:
|
|
377
|
+
function $e({
|
|
378
|
+
columns: n = 9,
|
|
379
379
|
rows: t = 20,
|
|
380
|
-
hasActions:
|
|
381
|
-
actionsCount:
|
|
380
|
+
hasActions: s = !1,
|
|
381
|
+
actionsCount: r = 1
|
|
382
382
|
}) {
|
|
383
|
-
return /* @__PURE__ */ g(
|
|
384
|
-
/* @__PURE__ */ e(
|
|
385
|
-
const o =
|
|
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
|
-
|
|
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
|
-
|
|
397
|
+
a
|
|
398
398
|
);
|
|
399
399
|
}) }) }),
|
|
400
|
-
/* @__PURE__ */ e(P, { children: Array.from({ length: t }).map((i,
|
|
401
|
-
const x =
|
|
402
|
-
return /* @__PURE__ */ e(U, { children: x ? /* @__PURE__ */ e("div", { className: "flex gap-2", children: Array.from({ length:
|
|
403
|
-
}) },
|
|
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
|
|
407
|
-
function
|
|
408
|
-
const t = [],
|
|
409
|
-
let
|
|
410
|
-
for (; (
|
|
411
|
-
t.push({ display:
|
|
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
|
|
415
|
-
return
|
|
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
|
|
421
|
-
|
|
422
|
-
|
|
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:
|
|
426
|
-
search: t
|
|
427
|
-
environment: r.VITE_BACKEND_API_ORGANIZATION_URL ?? ""
|
|
424
|
+
organizationId: n,
|
|
425
|
+
search: t
|
|
428
426
|
}),
|
|
429
|
-
enabled:
|
|
427
|
+
enabled: n.length > 0 && t.length > 0
|
|
430
428
|
});
|
|
431
429
|
}
|
|
432
|
-
const
|
|
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
|
-
},
|
|
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
|
|
492
|
-
value:
|
|
489
|
+
function qe({
|
|
490
|
+
value: n,
|
|
493
491
|
onChange: t,
|
|
494
|
-
onBlur:
|
|
495
|
-
organizationId:
|
|
492
|
+
onBlur: s,
|
|
493
|
+
organizationId: r,
|
|
496
494
|
placeholder: i,
|
|
497
|
-
disabled:
|
|
495
|
+
disabled: a,
|
|
498
496
|
singleLine: o = !1
|
|
499
497
|
}) {
|
|
500
|
-
const [d, 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
|
|
502
|
+
return H(() => {
|
|
505
503
|
y.current?.(f);
|
|
506
504
|
}, [f]), /* @__PURE__ */ e(
|
|
507
|
-
|
|
505
|
+
W,
|
|
508
506
|
{
|
|
509
|
-
value:
|
|
507
|
+
value: n,
|
|
510
508
|
onChange: (c, p) => t(p),
|
|
511
|
-
onBlur:
|
|
509
|
+
onBlur: s,
|
|
512
510
|
placeholder: i,
|
|
513
|
-
disabled:
|
|
511
|
+
disabled: a,
|
|
514
512
|
singleLine: o,
|
|
515
513
|
allowSuggestionsAboveCursor: !0,
|
|
516
|
-
style:
|
|
514
|
+
style: fe,
|
|
517
515
|
children: /* @__PURE__ */ e(
|
|
518
|
-
|
|
516
|
+
X,
|
|
519
517
|
{
|
|
520
518
|
trigger: "@",
|
|
521
|
-
markup:
|
|
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:
|
|
525
|
+
style: ye
|
|
528
526
|
}
|
|
529
527
|
)
|
|
530
528
|
}
|
|
531
529
|
);
|
|
532
530
|
}
|
|
533
|
-
function
|
|
534
|
-
const
|
|
535
|
-
let i = 0,
|
|
536
|
-
for (; (
|
|
537
|
-
|
|
538
|
-
/* @__PURE__ */ e("span", { children:
|
|
539
|
-
),
|
|
540
|
-
/* @__PURE__ */ g(
|
|
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
|
-
|
|
540
|
+
a[1]
|
|
543
541
|
] }, o++)
|
|
544
|
-
), i =
|
|
545
|
-
return i <
|
|
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
|
|
548
|
-
size:
|
|
545
|
+
function Oe({
|
|
546
|
+
size: n = 24,
|
|
549
547
|
color: t = "currentColor",
|
|
550
|
-
...
|
|
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:
|
|
557
|
-
height:
|
|
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
|
-
...
|
|
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
|
-
|
|
570
|
+
Fe as AttachmentInput,
|
|
573
571
|
Xe as CampaignsSelectInput,
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
572
|
+
Ke as ClientSelectInput,
|
|
573
|
+
Ge as ErrorBundary,
|
|
574
|
+
Qe as ErrorCard,
|
|
577
575
|
Ye as FieldCalendar,
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
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
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
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
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
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
|
-
|
|
597
|
-
|
|
598
|
-
|
|
594
|
+
qe as MentionInput,
|
|
595
|
+
Be as MentionText,
|
|
596
|
+
gt as ModuleTags,
|
|
599
597
|
Le as NotFoundCard,
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
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
|
-
|
|
611
|
+
Oe as TwitterIcon,
|
|
613
612
|
Nt as XIcon,
|
|
614
613
|
Ct as YoutubeIcon,
|
|
615
|
-
|
|
616
|
-
|
|
614
|
+
je as getMentionedUsers,
|
|
615
|
+
be as parseMentions,
|
|
617
616
|
St as useGetTags,
|
|
618
|
-
|
|
617
|
+
zt as useModuleTags
|
|
619
618
|
};
|