@contact_incruiter/fcc 1.0.7 → 1.0.9
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +179 -170
- package/dist/index.js.map +1 -1
- package/dist/shared/InCruiterSidebar.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as i, jsx as t, Fragment as B } from "react/jsx-runtime";
|
|
2
|
-
import { Shield as yt, GraduationCap as Ue, Calendar as wt, Video as
|
|
2
|
+
import { Shield as yt, GraduationCap as Ue, Calendar as wt, Video as vt, Bot as kt, Phone as Nt, Search as Ct, Menu as He, ChevronsUpDown as Ye, UserCircle as qe, CreditCard as Qe, Bell as Xe, Workflow as St, ArrowRight as Je, Pencil as zt, UserPlus as It, MoreVertical as Tt, Copy as At, Play as me, Pause as Ke, Square as Ze, FileText as he, Briefcase as Rt, Settings as Mt, Trash2 as Pt, Hand as Lt, Zap as et, GitMerge as jt, Settings2 as Wt, Plus as Bt, X as Et, User as Ot, ArrowLeft as Ft, Send as Dt, ChevronDown as Gt } from "lucide-react";
|
|
3
3
|
import { useState as j, useRef as $t, useEffect as ue } from "react";
|
|
4
4
|
function tt(e) {
|
|
5
5
|
var o, n, r = "";
|
|
@@ -61,9 +61,9 @@ const Vt = (e, o) => {
|
|
|
61
61
|
return;
|
|
62
62
|
const f = o === 0 ? e.join(se) : e.slice(o).join(se), b = a.length;
|
|
63
63
|
for (let c = 0; c < b; c++) {
|
|
64
|
-
const
|
|
65
|
-
if (
|
|
66
|
-
return
|
|
64
|
+
const w = a[c];
|
|
65
|
+
if (w.validator(f))
|
|
66
|
+
return w.classGroupId;
|
|
67
67
|
}
|
|
68
68
|
}, qt = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
69
69
|
const o = e.slice(1, -1), n = o.indexOf(":"), r = o.slice(0, n);
|
|
@@ -159,16 +159,16 @@ const Vt = (e, o) => {
|
|
|
159
159
|
let r = (s) => {
|
|
160
160
|
const l = [];
|
|
161
161
|
let a = 0, f = 0, b = 0, c;
|
|
162
|
-
const
|
|
163
|
-
for (let
|
|
164
|
-
const S = s[
|
|
162
|
+
const w = s.length;
|
|
163
|
+
for (let v = 0; v < w; v++) {
|
|
164
|
+
const S = s[v];
|
|
165
165
|
if (a === 0 && f === 0) {
|
|
166
166
|
if (S === Re) {
|
|
167
|
-
l.push(s.slice(b,
|
|
167
|
+
l.push(s.slice(b, v)), b = v + 1;
|
|
168
168
|
continue;
|
|
169
169
|
}
|
|
170
170
|
if (S === "/") {
|
|
171
|
-
c =
|
|
171
|
+
c = v;
|
|
172
172
|
continue;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
@@ -183,8 +183,8 @@ const Vt = (e, o) => {
|
|
|
183
183
|
*/
|
|
184
184
|
d.startsWith(be) && (h = d.slice(1), C = !0)
|
|
185
185
|
);
|
|
186
|
-
const
|
|
187
|
-
return Me(l, C, h,
|
|
186
|
+
const x = c && c > b ? c - b : void 0;
|
|
187
|
+
return Me(l, C, h, x);
|
|
188
188
|
};
|
|
189
189
|
if (o) {
|
|
190
190
|
const s = o + Re, l = r;
|
|
@@ -232,12 +232,12 @@ const Vt = (e, o) => {
|
|
|
232
232
|
postfixLookupClassGroupIds: a
|
|
233
233
|
} = o, f = [], b = e.trim().split(ar);
|
|
234
234
|
let c = "";
|
|
235
|
-
for (let
|
|
236
|
-
const d = b[
|
|
235
|
+
for (let w = b.length - 1; w >= 0; w -= 1) {
|
|
236
|
+
const d = b[w], {
|
|
237
237
|
isExternal: h,
|
|
238
238
|
modifiers: C,
|
|
239
|
-
hasImportantModifier:
|
|
240
|
-
baseClassName:
|
|
239
|
+
hasImportantModifier: x,
|
|
240
|
+
baseClassName: v,
|
|
241
241
|
maybePostfixModifierPosition: S
|
|
242
242
|
} = n(d);
|
|
243
243
|
if (h) {
|
|
@@ -246,27 +246,27 @@ const Vt = (e, o) => {
|
|
|
246
246
|
}
|
|
247
247
|
let A = !!S, z;
|
|
248
248
|
if (A) {
|
|
249
|
-
const m =
|
|
249
|
+
const m = v.substring(0, S);
|
|
250
250
|
z = r(m);
|
|
251
|
-
const u = z && a[z] ? r(
|
|
251
|
+
const u = z && a[z] ? r(v) : void 0;
|
|
252
252
|
u && u !== z && (z = u, A = !1);
|
|
253
253
|
} else
|
|
254
|
-
z = r(
|
|
254
|
+
z = r(v);
|
|
255
255
|
if (!z) {
|
|
256
256
|
if (!A) {
|
|
257
257
|
c = d + (c.length > 0 ? " " + c : c);
|
|
258
258
|
continue;
|
|
259
259
|
}
|
|
260
|
-
if (z = r(
|
|
260
|
+
if (z = r(v), !z) {
|
|
261
261
|
c = d + (c.length > 0 ? " " + c : c);
|
|
262
262
|
continue;
|
|
263
263
|
}
|
|
264
264
|
A = !1;
|
|
265
265
|
}
|
|
266
|
-
const O = C.length === 0 ? "" : C.length === 1 ? C[0] : l(C).join(":"), I =
|
|
267
|
-
if (f.indexOf(
|
|
266
|
+
const O = C.length === 0 ? "" : C.length === 1 ? C[0] : l(C).join(":"), I = x ? O + be : O, k = I + z;
|
|
267
|
+
if (f.indexOf(k) > -1)
|
|
268
268
|
continue;
|
|
269
|
-
f.push(
|
|
269
|
+
f.push(k);
|
|
270
270
|
const M = s(z, A);
|
|
271
271
|
for (let m = 0; m < M.length; ++m) {
|
|
272
272
|
const u = M[m];
|
|
@@ -290,14 +290,14 @@ const Vt = (e, o) => {
|
|
|
290
290
|
}, fr = (e, ...o) => {
|
|
291
291
|
let n, r, s, l;
|
|
292
292
|
const a = (b) => {
|
|
293
|
-
const c = o.reduce((
|
|
293
|
+
const c = o.reduce((w, d) => d(w), e());
|
|
294
294
|
return n = sr(c), r = n.cache.get, s = n.cache.set, l = f, f(b);
|
|
295
295
|
}, f = (b) => {
|
|
296
296
|
const c = r(b);
|
|
297
297
|
if (c)
|
|
298
298
|
return c;
|
|
299
|
-
const
|
|
300
|
-
return s(b,
|
|
299
|
+
const w = cr(b, n);
|
|
300
|
+
return s(b, w), w;
|
|
301
301
|
};
|
|
302
302
|
return l = a, (...b) => l(dr(...b));
|
|
303
303
|
}, pr = [], T = (e) => {
|
|
@@ -308,14 +308,14 @@ const Vt = (e, o) => {
|
|
|
308
308
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
309
309
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
310
310
|
br.test(e) && !mr.test(e)
|
|
311
|
-
), ye = () => !1, wr = (e) => hr.test(e),
|
|
311
|
+
), ye = () => !1, wr = (e) => hr.test(e), vr = (e) => xr.test(e), kr = (e) => !p(e) && !g(e), Nr = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Cr = (e) => _(e, ft, ye), p = (e) => st.test(e), U = (e) => _(e, pt, yr), Pe = (e) => _(e, Pr, N), Sr = (e) => _(e, ut, at), zr = (e) => _(e, gt, ye), Le = (e) => _(e, ct, ye), Ir = (e) => _(e, dt, vr), te = (e) => _(e, bt, wr), g = (e) => lt.test(e), Q = (e) => Y(e, pt), Tr = (e) => Y(e, gt), je = (e) => Y(e, ct), Ar = (e) => Y(e, ft), Rr = (e) => Y(e, dt), re = (e) => Y(e, bt, !0), Mr = (e) => Y(e, ut, !0), _ = (e, o, n) => {
|
|
312
312
|
const r = st.exec(e);
|
|
313
313
|
return r ? r[1] ? o(r[1]) : n(r[2]) : !1;
|
|
314
314
|
}, Y = (e, o, n = !1) => {
|
|
315
315
|
const r = lt.exec(e);
|
|
316
316
|
return r ? r[1] ? o(r[1]) : n : !1;
|
|
317
317
|
}, ct = (e) => e === "position" || e === "percentage", dt = (e) => e === "image" || e === "url", ft = (e) => e === "length" || e === "size" || e === "bg-size", pt = (e) => e === "length", Pr = (e) => e === "number", gt = (e) => e === "family-name", ut = (e) => e === "number" || e === "weight", bt = (e) => e === "shadow", Lr = () => {
|
|
318
|
-
const e = T("color"), o = T("font"), n = T("text"), r = T("font-weight"), s = T("tracking"), l = T("leading"), a = T("breakpoint"), f = T("container"), b = T("spacing"), c = T("radius"),
|
|
318
|
+
const e = T("color"), o = T("font"), n = T("text"), r = T("font-weight"), s = T("tracking"), l = T("leading"), a = T("breakpoint"), f = T("container"), b = T("spacing"), c = T("radius"), w = T("shadow"), d = T("inset-shadow"), h = T("text-shadow"), C = T("drop-shadow"), x = T("blur"), v = T("perspective"), S = T("aspect"), A = T("ease"), z = T("animate"), O = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [
|
|
319
319
|
"center",
|
|
320
320
|
"top",
|
|
321
321
|
"bottom",
|
|
@@ -333,7 +333,7 @@ const Vt = (e, o) => {
|
|
|
333
333
|
"bottom-left",
|
|
334
334
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
335
335
|
"left-bottom"
|
|
336
|
-
],
|
|
336
|
+
], k = () => [...I(), g, p], M = () => ["auto", "hidden", "clip", "visible", "scroll"], m = () => ["auto", "contain", "none"], u = () => [g, p, b], W = () => [$, "full", "auto", ...u()], ve = () => [D, "none", "subgrid", g, p], ke = () => ["auto", {
|
|
337
337
|
span: ["full", D, g, p]
|
|
338
338
|
}, D, g, p], X = () => [D, "auto", g, p], Ne = () => ["auto", "min", "max", "fr", g, p], le = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], F = () => ["auto", ...u()], V = () => [$, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...u()], ae = () => [$, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...u()], ce = () => [$, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...u()], y = () => [e, g, p], Ce = () => [...I(), je, Le, {
|
|
339
339
|
position: [g, p]
|
|
@@ -353,7 +353,7 @@ const Vt = (e, o) => {
|
|
|
353
353
|
// Deprecated since Tailwind CSS v4.0.0
|
|
354
354
|
"",
|
|
355
355
|
"none",
|
|
356
|
-
|
|
356
|
+
x,
|
|
357
357
|
g,
|
|
358
358
|
p
|
|
359
359
|
], K = () => ["none", N, g, p], Z = () => ["none", N, g, p], fe = () => [N, g, p], ee = () => [$, "full", ...u()];
|
|
@@ -368,7 +368,7 @@ const Vt = (e, o) => {
|
|
|
368
368
|
container: [G],
|
|
369
369
|
"drop-shadow": [G],
|
|
370
370
|
ease: ["in", "out", "in-out"],
|
|
371
|
-
font: [
|
|
371
|
+
font: [kr],
|
|
372
372
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
373
373
|
"inset-shadow": [G],
|
|
374
374
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -492,7 +492,7 @@ const Vt = (e, o) => {
|
|
|
492
492
|
* @see https://tailwindcss.com/docs/object-position
|
|
493
493
|
*/
|
|
494
494
|
"object-position": [{
|
|
495
|
-
object:
|
|
495
|
+
object: k()
|
|
496
496
|
}],
|
|
497
497
|
/**
|
|
498
498
|
* Overflow
|
|
@@ -699,14 +699,14 @@ const Vt = (e, o) => {
|
|
|
699
699
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
700
700
|
*/
|
|
701
701
|
"grid-cols": [{
|
|
702
|
-
"grid-cols":
|
|
702
|
+
"grid-cols": ve()
|
|
703
703
|
}],
|
|
704
704
|
/**
|
|
705
705
|
* Grid Column Start / End
|
|
706
706
|
* @see https://tailwindcss.com/docs/grid-column
|
|
707
707
|
*/
|
|
708
708
|
"col-start-end": [{
|
|
709
|
-
col:
|
|
709
|
+
col: ke()
|
|
710
710
|
}],
|
|
711
711
|
/**
|
|
712
712
|
* Grid Column Start
|
|
@@ -727,14 +727,14 @@ const Vt = (e, o) => {
|
|
|
727
727
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
728
728
|
*/
|
|
729
729
|
"grid-rows": [{
|
|
730
|
-
"grid-rows":
|
|
730
|
+
"grid-rows": ve()
|
|
731
731
|
}],
|
|
732
732
|
/**
|
|
733
733
|
* Grid Row Start / End
|
|
734
734
|
* @see https://tailwindcss.com/docs/grid-row
|
|
735
735
|
*/
|
|
736
736
|
"row-start-end": [{
|
|
737
|
-
row:
|
|
737
|
+
row: ke()
|
|
738
738
|
}],
|
|
739
739
|
/**
|
|
740
740
|
* Grid Row Start
|
|
@@ -1855,7 +1855,7 @@ const Vt = (e, o) => {
|
|
|
1855
1855
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1856
1856
|
"",
|
|
1857
1857
|
"none",
|
|
1858
|
-
|
|
1858
|
+
w,
|
|
1859
1859
|
re,
|
|
1860
1860
|
te
|
|
1861
1861
|
]
|
|
@@ -2439,14 +2439,14 @@ const Vt = (e, o) => {
|
|
|
2439
2439
|
* @see https://tailwindcss.com/docs/perspective
|
|
2440
2440
|
*/
|
|
2441
2441
|
perspective: [{
|
|
2442
|
-
perspective: [
|
|
2442
|
+
perspective: [v, g, p]
|
|
2443
2443
|
}],
|
|
2444
2444
|
/**
|
|
2445
2445
|
* Perspective Origin
|
|
2446
2446
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2447
2447
|
*/
|
|
2448
2448
|
"perspective-origin": [{
|
|
2449
|
-
"perspective-origin":
|
|
2449
|
+
"perspective-origin": k()
|
|
2450
2450
|
}],
|
|
2451
2451
|
/**
|
|
2452
2452
|
* Rotate
|
|
@@ -2542,7 +2542,7 @@ const Vt = (e, o) => {
|
|
|
2542
2542
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2543
2543
|
*/
|
|
2544
2544
|
"transform-origin": [{
|
|
2545
|
-
origin:
|
|
2545
|
+
origin: k()
|
|
2546
2546
|
}],
|
|
2547
2547
|
/**
|
|
2548
2548
|
* Transform Style
|
|
@@ -3056,12 +3056,12 @@ const mt = {
|
|
|
3056
3056
|
},
|
|
3057
3057
|
incbot: {
|
|
3058
3058
|
label: "IncBot",
|
|
3059
|
-
Icon:
|
|
3059
|
+
Icon: kt,
|
|
3060
3060
|
gradient: "linear-gradient(135deg, #2563eb 0%, #3b82f6 100%)"
|
|
3061
3061
|
},
|
|
3062
3062
|
incvid: {
|
|
3063
3063
|
label: "IncVid",
|
|
3064
|
-
Icon:
|
|
3064
|
+
Icon: vt,
|
|
3065
3065
|
gradient: "linear-gradient(135deg, #4f46e5 0%, #6366f1 100%)"
|
|
3066
3066
|
},
|
|
3067
3067
|
incfeed: {
|
|
@@ -3230,7 +3230,7 @@ function Fr({
|
|
|
3230
3230
|
onMyProfile: f,
|
|
3231
3231
|
onAccountsBilling: b
|
|
3232
3232
|
}) {
|
|
3233
|
-
const [c,
|
|
3233
|
+
const [c, w] = j(!1), [d, h] = j(!1), C = e.name.split(" ").map((x) => x[0]).join("").slice(0, 2).toUpperCase();
|
|
3234
3234
|
return /* @__PURE__ */ i(
|
|
3235
3235
|
"aside",
|
|
3236
3236
|
{
|
|
@@ -3253,7 +3253,7 @@ function Fr({
|
|
|
3253
3253
|
"button",
|
|
3254
3254
|
{
|
|
3255
3255
|
onClick: () => {
|
|
3256
|
-
h((
|
|
3256
|
+
h((x) => !x), w(!1);
|
|
3257
3257
|
},
|
|
3258
3258
|
className: "flex items-center justify-center rounded-md text-gray-400 hover:bg-gray-100 transition-colors",
|
|
3259
3259
|
style: { width: 28, height: 28, flexShrink: 0 },
|
|
@@ -3268,7 +3268,7 @@ function Fr({
|
|
|
3268
3268
|
/* @__PURE__ */ i(
|
|
3269
3269
|
"button",
|
|
3270
3270
|
{
|
|
3271
|
-
onClick: () => !d &&
|
|
3271
|
+
onClick: () => !d && w((x) => !x),
|
|
3272
3272
|
className: "flex w-full items-center transition-colors",
|
|
3273
3273
|
style: {
|
|
3274
3274
|
gap: 12,
|
|
@@ -3344,7 +3344,7 @@ function Fr({
|
|
|
3344
3344
|
c && /* @__PURE__ */ t(B, { children: [
|
|
3345
3345
|
{ label: "My Profile", Icon: qe, action: f },
|
|
3346
3346
|
{ label: "Accounts & Billing", Icon: Qe, action: b }
|
|
3347
|
-
].map(({ label:
|
|
3347
|
+
].map(({ label: x, Icon: v, action: S }) => /* @__PURE__ */ i(
|
|
3348
3348
|
"button",
|
|
3349
3349
|
{
|
|
3350
3350
|
onClick: S,
|
|
@@ -3366,7 +3366,7 @@ function Fr({
|
|
|
3366
3366
|
A.currentTarget.style.background = "transparent";
|
|
3367
3367
|
},
|
|
3368
3368
|
children: [
|
|
3369
|
-
/* @__PURE__ */ t(
|
|
3369
|
+
/* @__PURE__ */ t(v, { size: 22, style: { color: "#878787", flexShrink: 0 } }),
|
|
3370
3370
|
/* @__PURE__ */ t(
|
|
3371
3371
|
"span",
|
|
3372
3372
|
{
|
|
@@ -3380,12 +3380,12 @@ function Fr({
|
|
|
3380
3380
|
overflow: "hidden",
|
|
3381
3381
|
textOverflow: "ellipsis"
|
|
3382
3382
|
},
|
|
3383
|
-
children:
|
|
3383
|
+
children: x
|
|
3384
3384
|
}
|
|
3385
3385
|
)
|
|
3386
3386
|
]
|
|
3387
3387
|
},
|
|
3388
|
-
|
|
3388
|
+
x
|
|
3389
3389
|
)) })
|
|
3390
3390
|
] }),
|
|
3391
3391
|
/* @__PURE__ */ i("nav", { className: "flex-1 overflow-y-auto", children: [
|
|
@@ -3406,15 +3406,15 @@ function Fr({
|
|
|
3406
3406
|
children: "MAIN MENU"
|
|
3407
3407
|
}
|
|
3408
3408
|
),
|
|
3409
|
-
r.map((
|
|
3409
|
+
r.map((x) => /* @__PURE__ */ t(
|
|
3410
3410
|
We,
|
|
3411
3411
|
{
|
|
3412
|
-
item:
|
|
3413
|
-
active: l ===
|
|
3412
|
+
item: x,
|
|
3413
|
+
active: l === x.href,
|
|
3414
3414
|
collapsed: d,
|
|
3415
3415
|
onNavigate: a
|
|
3416
3416
|
},
|
|
3417
|
-
|
|
3417
|
+
x.href
|
|
3418
3418
|
))
|
|
3419
3419
|
] }),
|
|
3420
3420
|
s.length > 0 && /* @__PURE__ */ i("div", { className: "flex-shrink-0", children: [
|
|
@@ -3437,15 +3437,15 @@ function Fr({
|
|
|
3437
3437
|
}
|
|
3438
3438
|
),
|
|
3439
3439
|
d && /* @__PURE__ */ t("div", { style: { height: 8, borderTop: `1px solid ${ne}` } }),
|
|
3440
|
-
s.map((
|
|
3440
|
+
s.map((x) => /* @__PURE__ */ t(
|
|
3441
3441
|
We,
|
|
3442
3442
|
{
|
|
3443
|
-
item:
|
|
3444
|
-
active: l ===
|
|
3443
|
+
item: x,
|
|
3444
|
+
active: l === x.href,
|
|
3445
3445
|
collapsed: d,
|
|
3446
3446
|
onNavigate: a
|
|
3447
3447
|
},
|
|
3448
|
-
|
|
3448
|
+
x.href
|
|
3449
3449
|
)),
|
|
3450
3450
|
/* @__PURE__ */ t("div", { style: { height: 16 } })
|
|
3451
3451
|
] })
|
|
@@ -3504,12 +3504,12 @@ function co({
|
|
|
3504
3504
|
topBarBreadcrumb: f,
|
|
3505
3505
|
topBarActions: b,
|
|
3506
3506
|
notificationCount: c,
|
|
3507
|
-
onNavigate:
|
|
3507
|
+
onNavigate: w,
|
|
3508
3508
|
onMyProfile: d,
|
|
3509
3509
|
onAccountsBilling: h,
|
|
3510
3510
|
onBellClick: C,
|
|
3511
|
-
children:
|
|
3512
|
-
className:
|
|
3511
|
+
children: x,
|
|
3512
|
+
className: v
|
|
3513
3513
|
}) {
|
|
3514
3514
|
return /* @__PURE__ */ i("div", { className: "flex h-screen overflow-hidden bg-gray-50", children: [
|
|
3515
3515
|
/* @__PURE__ */ t(
|
|
@@ -3521,7 +3521,7 @@ function co({
|
|
|
3521
3521
|
navItems: r,
|
|
3522
3522
|
otherItems: s,
|
|
3523
3523
|
activeHref: l,
|
|
3524
|
-
onNavigate:
|
|
3524
|
+
onNavigate: w,
|
|
3525
3525
|
onMyProfile: d,
|
|
3526
3526
|
onAccountsBilling: h
|
|
3527
3527
|
}
|
|
@@ -3540,9 +3540,9 @@ function co({
|
|
|
3540
3540
|
/* @__PURE__ */ t(
|
|
3541
3541
|
"main",
|
|
3542
3542
|
{
|
|
3543
|
-
className: E("flex-1 overflow-y-auto",
|
|
3543
|
+
className: E("flex-1 overflow-y-auto", v),
|
|
3544
3544
|
style: { margin: 12, borderRadius: 6, border: "1px solid #E5E7EB", background: "#fff" },
|
|
3545
|
-
children:
|
|
3545
|
+
children: x
|
|
3546
3546
|
}
|
|
3547
3547
|
)
|
|
3548
3548
|
] })
|
|
@@ -3861,14 +3861,14 @@ function mo({
|
|
|
3861
3861
|
onAddCandidate: f,
|
|
3862
3862
|
onReplicate: b,
|
|
3863
3863
|
onPause: c,
|
|
3864
|
-
onResume:
|
|
3864
|
+
onResume: w,
|
|
3865
3865
|
onStop: d,
|
|
3866
3866
|
onDelete: h
|
|
3867
3867
|
}) {
|
|
3868
|
-
const [C,
|
|
3868
|
+
const [C, x] = j(!1), v = $t(null);
|
|
3869
3869
|
ue(() => {
|
|
3870
|
-
function I(
|
|
3871
|
-
|
|
3870
|
+
function I(k) {
|
|
3871
|
+
v.current && !v.current.contains(k.target) && x(!1);
|
|
3872
3872
|
}
|
|
3873
3873
|
return document.addEventListener("mousedown", I), () => document.removeEventListener("mousedown", I);
|
|
3874
3874
|
}, []);
|
|
@@ -3885,9 +3885,9 @@ function mo({
|
|
|
3885
3885
|
/* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: [
|
|
3886
3886
|
/* @__PURE__ */ t("p", { className: "truncate text-[13.5px] font-semibold text-gray-900", children: e }),
|
|
3887
3887
|
/* @__PURE__ */ i("div", { className: "mt-1 flex flex-wrap items-center gap-1.5", children: [
|
|
3888
|
-
o.map((I,
|
|
3888
|
+
o.map((I, k) => /* @__PURE__ */ i("span", { className: "flex items-center gap-1.5", children: [
|
|
3889
3889
|
/* @__PURE__ */ t("span", { className: "text-[12px] text-gray-500", children: I }),
|
|
3890
|
-
|
|
3890
|
+
k < o.length - 1 && /* @__PURE__ */ t(Je, { size: 9, className: "text-gray-300" })
|
|
3891
3891
|
] }, I)),
|
|
3892
3892
|
/* @__PURE__ */ t("span", { className: "text-gray-300 text-[12px] select-none", children: "·" }),
|
|
3893
3893
|
/* @__PURE__ */ i("span", { className: "text-[12px] text-gray-400", children: [
|
|
@@ -3939,11 +3939,11 @@ function mo({
|
|
|
3939
3939
|
]
|
|
3940
3940
|
}
|
|
3941
3941
|
),
|
|
3942
|
-
/* @__PURE__ */ i("div", { ref:
|
|
3942
|
+
/* @__PURE__ */ i("div", { ref: v, className: "relative", children: [
|
|
3943
3943
|
/* @__PURE__ */ t(
|
|
3944
3944
|
"button",
|
|
3945
3945
|
{
|
|
3946
|
-
onClick: () =>
|
|
3946
|
+
onClick: () => x((I) => !I),
|
|
3947
3947
|
className: "flex h-[28px] w-[28px] items-center justify-center rounded-lg border border-[#e5e7eb] text-gray-400 hover:bg-gray-50 transition-colors",
|
|
3948
3948
|
children: /* @__PURE__ */ t(Tt, { size: 14 })
|
|
3949
3949
|
}
|
|
@@ -3954,7 +3954,7 @@ function mo({
|
|
|
3954
3954
|
{
|
|
3955
3955
|
className: "flex w-full items-center gap-2.5 px-4 py-2.5 text-[13px] text-gray-700 hover:bg-gray-50 transition-colors",
|
|
3956
3956
|
onClick: () => {
|
|
3957
|
-
|
|
3957
|
+
x(!1), b?.();
|
|
3958
3958
|
},
|
|
3959
3959
|
children: [
|
|
3960
3960
|
/* @__PURE__ */ t(At, { size: 13, className: "text-gray-400" }),
|
|
@@ -3967,7 +3967,7 @@ function mo({
|
|
|
3967
3967
|
{
|
|
3968
3968
|
className: "flex w-full items-center gap-2.5 px-4 py-2.5 text-[13px] text-gray-700 hover:bg-gray-50 transition-colors",
|
|
3969
3969
|
onClick: () => {
|
|
3970
|
-
|
|
3970
|
+
x(!1), w?.();
|
|
3971
3971
|
},
|
|
3972
3972
|
children: [
|
|
3973
3973
|
/* @__PURE__ */ t(me, { size: 13, className: "text-gray-400" }),
|
|
@@ -3979,7 +3979,7 @@ function mo({
|
|
|
3979
3979
|
{
|
|
3980
3980
|
className: "flex w-full items-center gap-2.5 px-4 py-2.5 text-[13px] text-gray-700 hover:bg-gray-50 transition-colors",
|
|
3981
3981
|
onClick: () => {
|
|
3982
|
-
|
|
3982
|
+
x(!1), c?.();
|
|
3983
3983
|
},
|
|
3984
3984
|
children: [
|
|
3985
3985
|
/* @__PURE__ */ t(Ke, { size: 13, className: "text-gray-400" }),
|
|
@@ -3992,7 +3992,7 @@ function mo({
|
|
|
3992
3992
|
{
|
|
3993
3993
|
className: "flex w-full items-center gap-2.5 px-4 py-2.5 text-[13px] text-gray-700 hover:bg-gray-50 transition-colors",
|
|
3994
3994
|
onClick: () => {
|
|
3995
|
-
|
|
3995
|
+
x(!1), d?.();
|
|
3996
3996
|
},
|
|
3997
3997
|
children: [
|
|
3998
3998
|
/* @__PURE__ */ t(Ze, { size: 13, className: "text-gray-400" }),
|
|
@@ -4006,7 +4006,7 @@ function mo({
|
|
|
4006
4006
|
{
|
|
4007
4007
|
className: "flex w-full items-center gap-2.5 px-4 py-2.5 text-[13px] text-red-500 hover:bg-red-50 transition-colors",
|
|
4008
4008
|
onClick: () => {
|
|
4009
|
-
|
|
4009
|
+
x(!1), h?.();
|
|
4010
4010
|
},
|
|
4011
4011
|
children: [
|
|
4012
4012
|
/* @__PURE__ */ t(he, { size: 13, className: "text-red-400" }),
|
|
@@ -4069,7 +4069,7 @@ function Vr({
|
|
|
4069
4069
|
onDelete: b,
|
|
4070
4070
|
className: c
|
|
4071
4071
|
}) {
|
|
4072
|
-
const
|
|
4072
|
+
const w = e === "position", d = e === "onboarding", C = r === "Configured" || w || d ? Gr : $r, x = w ? "Position" : d ? "Onboarding" : o && Object.prototype.hasOwnProperty.call(De, o) ? De[o] : "", v = _r(e, o, r, s, l);
|
|
4073
4073
|
return /* @__PURE__ */ i(
|
|
4074
4074
|
"div",
|
|
4075
4075
|
{
|
|
@@ -4081,12 +4081,12 @@ function Vr({
|
|
|
4081
4081
|
boxShadow: C.boxShadow
|
|
4082
4082
|
},
|
|
4083
4083
|
children: [
|
|
4084
|
-
|
|
4084
|
+
w || d ? /* @__PURE__ */ t(
|
|
4085
4085
|
"div",
|
|
4086
4086
|
{
|
|
4087
4087
|
className: "flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-lg",
|
|
4088
|
-
style: { background:
|
|
4089
|
-
children: /* @__PURE__ */ t(Rt, { size: 17, style: { color:
|
|
4088
|
+
style: { background: w ? "#e0e7ff" : "#dcfce7" },
|
|
4089
|
+
children: /* @__PURE__ */ t(Rt, { size: 17, style: { color: w ? "#6366f1" : "#16a34a" } })
|
|
4090
4090
|
}
|
|
4091
4091
|
) : o ? a ? /* @__PURE__ */ t(
|
|
4092
4092
|
"img",
|
|
@@ -4099,7 +4099,7 @@ function Vr({
|
|
|
4099
4099
|
) : /* @__PURE__ */ t(we, { product: o, size: "md", className: "flex-shrink-0" }) : null,
|
|
4100
4100
|
/* @__PURE__ */ i("div", { className: "flex-1 min-w-0", children: [
|
|
4101
4101
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-2 flex-wrap", children: [
|
|
4102
|
-
/* @__PURE__ */ t("span", { className: "text-[13.5px] font-bold text-gray-900", children:
|
|
4102
|
+
/* @__PURE__ */ t("span", { className: "text-[13.5px] font-bold text-gray-900", children: x }),
|
|
4103
4103
|
n && /* @__PURE__ */ t(
|
|
4104
4104
|
"span",
|
|
4105
4105
|
{
|
|
@@ -4138,7 +4138,7 @@ function Vr({
|
|
|
4138
4138
|
}
|
|
4139
4139
|
)
|
|
4140
4140
|
] }),
|
|
4141
|
-
|
|
4141
|
+
v && /* @__PURE__ */ t("p", { className: "mt-0.5 truncate text-[12px]", style: { color: "#6b7280" }, children: v })
|
|
4142
4142
|
] }),
|
|
4143
4143
|
/* @__PURE__ */ i("div", { className: "flex flex-shrink-0 items-center gap-0.5", children: [
|
|
4144
4144
|
/* @__PURE__ */ t(
|
|
@@ -4151,7 +4151,7 @@ function Vr({
|
|
|
4151
4151
|
children: /* @__PURE__ */ t(Mt, { size: 14 })
|
|
4152
4152
|
}
|
|
4153
4153
|
),
|
|
4154
|
-
!
|
|
4154
|
+
!w && /* @__PURE__ */ t(
|
|
4155
4155
|
"button",
|
|
4156
4156
|
{
|
|
4157
4157
|
onClick: b,
|
|
@@ -4195,7 +4195,7 @@ function Hr({
|
|
|
4195
4195
|
] }) : /* @__PURE__ */ i(B, { children: [
|
|
4196
4196
|
/* @__PURE__ */ t(Wt, { size: 12 }),
|
|
4197
4197
|
"Condition Not Configured"
|
|
4198
|
-
] }),
|
|
4198
|
+
] }), w = {
|
|
4199
4199
|
display: "inline-flex",
|
|
4200
4200
|
alignItems: "center",
|
|
4201
4201
|
gap: 6,
|
|
@@ -4229,7 +4229,7 @@ function Hr({
|
|
|
4229
4229
|
{
|
|
4230
4230
|
onClick: s,
|
|
4231
4231
|
style: {
|
|
4232
|
-
...
|
|
4232
|
+
...w,
|
|
4233
4233
|
cursor: "pointer",
|
|
4234
4234
|
transition: "all 0.15s"
|
|
4235
4235
|
},
|
|
@@ -4241,7 +4241,7 @@ function Hr({
|
|
|
4241
4241
|
},
|
|
4242
4242
|
children: b
|
|
4243
4243
|
}
|
|
4244
|
-
) : /* @__PURE__ */ t("div", { style:
|
|
4244
|
+
) : /* @__PURE__ */ t("div", { style: w, children: b }),
|
|
4245
4245
|
f && o.length > 0 && /* @__PURE__ */ t("div", { className: "flex flex-wrap items-center justify-center gap-2", children: o.map((d) => /* @__PURE__ */ t(
|
|
4246
4246
|
"span",
|
|
4247
4247
|
{
|
|
@@ -4307,7 +4307,7 @@ function qr({
|
|
|
4307
4307
|
const b = new Map(
|
|
4308
4308
|
(s ?? []).filter((h) => h.subdomain).map((h) => [h.subdomain.toLowerCase(), h.icon])
|
|
4309
4309
|
), c = s && s.length > 0 ? $e.filter(({ product: h }) => b.has(h.toLowerCase())) : $e;
|
|
4310
|
-
function
|
|
4310
|
+
function w(h) {
|
|
4311
4311
|
a.includes(h) || (n?.(h), r?.({ kind: "product", product: h }), o());
|
|
4312
4312
|
}
|
|
4313
4313
|
function d() {
|
|
@@ -4320,18 +4320,18 @@ function qr({
|
|
|
4320
4320
|
] }),
|
|
4321
4321
|
/* @__PURE__ */ i("div", { className: "flex-1 overflow-y-auto bg-[#f5f6f8] p-2.5 flex flex-col gap-2", children: [
|
|
4322
4322
|
c.map(({ product: h, description: C }) => {
|
|
4323
|
-
const
|
|
4323
|
+
const x = a.includes(h);
|
|
4324
4324
|
return /* @__PURE__ */ i(
|
|
4325
4325
|
"button",
|
|
4326
4326
|
{
|
|
4327
|
-
draggable: !
|
|
4328
|
-
onDragEnd: () => !
|
|
4329
|
-
onClick: () =>
|
|
4330
|
-
disabled:
|
|
4327
|
+
draggable: !x,
|
|
4328
|
+
onDragEnd: () => !x && w(h),
|
|
4329
|
+
onClick: () => w(h),
|
|
4330
|
+
disabled: x,
|
|
4331
4331
|
className: "flex w-full items-center gap-2.5 rounded-xl border border-gray-200 bg-white px-2.5 py-2.5 text-left transition-all",
|
|
4332
4332
|
style: {
|
|
4333
|
-
opacity:
|
|
4334
|
-
cursor:
|
|
4333
|
+
opacity: x ? 0.4 : 1,
|
|
4334
|
+
cursor: x ? "not-allowed" : "grab"
|
|
4335
4335
|
},
|
|
4336
4336
|
children: [
|
|
4337
4337
|
/* @__PURE__ */ t(_e, {}),
|
|
@@ -4393,7 +4393,7 @@ function Jr({
|
|
|
4393
4393
|
onCancel: n
|
|
4394
4394
|
}) {
|
|
4395
4395
|
const [r, s] = j("Automatic"), [l, a] = j(60), [f, b] = j("Qualified"), c = e === "incscreen";
|
|
4396
|
-
function
|
|
4396
|
+
function w() {
|
|
4397
4397
|
const d = {
|
|
4398
4398
|
type: r,
|
|
4399
4399
|
...r === "Automatic" && !c && { threshold: l },
|
|
@@ -4516,7 +4516,7 @@ function Jr({
|
|
|
4516
4516
|
/* @__PURE__ */ t(
|
|
4517
4517
|
"button",
|
|
4518
4518
|
{
|
|
4519
|
-
onClick:
|
|
4519
|
+
onClick: w,
|
|
4520
4520
|
className: "rounded-lg px-5 py-2 text-[13px] font-semibold text-white transition-opacity hover:opacity-90",
|
|
4521
4521
|
style: { background: "#0f1f3d" },
|
|
4522
4522
|
children: "Save"
|
|
@@ -4546,38 +4546,38 @@ function ho({
|
|
|
4546
4546
|
onPublish: s,
|
|
4547
4547
|
onSaveDraft: l
|
|
4548
4548
|
}) {
|
|
4549
|
-
const [a, f] = j(e), [b, c] = j(n), [
|
|
4550
|
-
function S(
|
|
4551
|
-
c((M) => M.filter((m) => m.id !==
|
|
4549
|
+
const [a, f] = j(e), [b, c] = j(n), [w, d] = j("designer"), [h, C] = j(!1), [x, v] = j(null);
|
|
4550
|
+
function S(k) {
|
|
4551
|
+
c((M) => M.filter((m) => m.id !== k));
|
|
4552
4552
|
}
|
|
4553
4553
|
function A() {
|
|
4554
4554
|
C(!0);
|
|
4555
4555
|
}
|
|
4556
|
-
function z(
|
|
4557
|
-
|
|
4556
|
+
function z(k) {
|
|
4557
|
+
v(k);
|
|
4558
4558
|
}
|
|
4559
|
-
function O(
|
|
4560
|
-
if (!
|
|
4561
|
-
const M =
|
|
4562
|
-
id: `${
|
|
4559
|
+
function O(k) {
|
|
4560
|
+
if (!x) return;
|
|
4561
|
+
const M = k.type === "Automatic" ? "automatic" : "manual-review", m = {
|
|
4562
|
+
id: `${x}-${Date.now()}`,
|
|
4563
4563
|
type: "product",
|
|
4564
|
-
product:
|
|
4564
|
+
product: x,
|
|
4565
4565
|
status: "Configuration Pending",
|
|
4566
|
-
transitionCondition:
|
|
4566
|
+
transitionCondition: k,
|
|
4567
4567
|
connector: {
|
|
4568
4568
|
type: M,
|
|
4569
|
-
...
|
|
4569
|
+
...k.type === "Automatic" && k.threshold !== void 0 && {
|
|
4570
4570
|
branches: [
|
|
4571
|
-
{ label: `≥ ${
|
|
4572
|
-
{ label: `< ${
|
|
4571
|
+
{ label: `≥ ${k.threshold}%`, color: "green" },
|
|
4572
|
+
{ label: `< ${k.threshold}%`, color: "red" }
|
|
4573
4573
|
]
|
|
4574
4574
|
}
|
|
4575
4575
|
}
|
|
4576
4576
|
};
|
|
4577
|
-
c((u) => [...u, m]),
|
|
4577
|
+
c((u) => [...u, m]), v(null), C(!1);
|
|
4578
4578
|
}
|
|
4579
4579
|
function I() {
|
|
4580
|
-
|
|
4580
|
+
v(null);
|
|
4581
4581
|
}
|
|
4582
4582
|
return /* @__PURE__ */ i("div", { className: "flex h-full flex-col overflow-hidden bg-gray-50", children: [
|
|
4583
4583
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-3 border-b border-gray-200 bg-white px-5 py-3.5", children: [
|
|
@@ -4594,7 +4594,7 @@ function ho({
|
|
|
4594
4594
|
"input",
|
|
4595
4595
|
{
|
|
4596
4596
|
value: a,
|
|
4597
|
-
onChange: (
|
|
4597
|
+
onChange: (k) => f(k.target.value),
|
|
4598
4598
|
className: "rounded-md border-0 bg-transparent text-[14px] font-bold text-gray-900 focus:outline-none focus:ring-2 focus:ring-blue-400/40 px-2 py-1 max-w-xs"
|
|
4599
4599
|
}
|
|
4600
4600
|
),
|
|
@@ -4612,8 +4612,8 @@ function ho({
|
|
|
4612
4612
|
"button",
|
|
4613
4613
|
{
|
|
4614
4614
|
onClick: () => d("designer"),
|
|
4615
|
-
className: `rounded-md px-3 py-1.5 text-[12px] font-medium transition-colors ${
|
|
4616
|
-
style:
|
|
4615
|
+
className: `rounded-md px-3 py-1.5 text-[12px] font-medium transition-colors ${w === "designer" ? "text-white shadow-sm" : "text-gray-500 hover:text-gray-700"}`,
|
|
4616
|
+
style: w === "designer" ? { background: "#0f1f3d" } : {},
|
|
4617
4617
|
children: "Designer"
|
|
4618
4618
|
}
|
|
4619
4619
|
),
|
|
@@ -4621,8 +4621,8 @@ function ho({
|
|
|
4621
4621
|
"button",
|
|
4622
4622
|
{
|
|
4623
4623
|
onClick: () => d("run"),
|
|
4624
|
-
className: `flex items-center gap-1.5 rounded-md px-3 py-1.5 text-[12px] font-medium transition-colors ${
|
|
4625
|
-
style:
|
|
4624
|
+
className: `flex items-center gap-1.5 rounded-md px-3 py-1.5 text-[12px] font-medium transition-colors ${w === "run" ? "text-white shadow-sm" : "text-gray-500 hover:text-gray-700"}`,
|
|
4625
|
+
style: w === "run" ? { background: "#0f1f3d" } : {},
|
|
4626
4626
|
children: [
|
|
4627
4627
|
/* @__PURE__ */ t(me, { size: 11 }),
|
|
4628
4628
|
"Run"
|
|
@@ -4665,34 +4665,34 @@ function ho({
|
|
|
4665
4665
|
backgroundSize: "20px 20px"
|
|
4666
4666
|
},
|
|
4667
4667
|
onClick: () => {
|
|
4668
|
-
|
|
4668
|
+
x || C(!1);
|
|
4669
4669
|
},
|
|
4670
4670
|
children: /* @__PURE__ */ i("div", { className: "flex flex-col items-center gap-0 w-full max-w-lg mx-auto", children: [
|
|
4671
|
-
b.map((
|
|
4672
|
-
const m = M === b.length - 1, u =
|
|
4671
|
+
b.map((k, M) => {
|
|
4672
|
+
const m = M === b.length - 1, u = k.connector && k.connector.type !== "simple";
|
|
4673
4673
|
return /* @__PURE__ */ i("div", { className: "flex w-full flex-col items-center", children: [
|
|
4674
4674
|
/* @__PURE__ */ t(
|
|
4675
4675
|
Vr,
|
|
4676
4676
|
{
|
|
4677
|
-
type:
|
|
4678
|
-
product:
|
|
4679
|
-
productTag:
|
|
4680
|
-
status:
|
|
4681
|
-
config:
|
|
4682
|
-
details:
|
|
4683
|
-
onDelete: () => S(
|
|
4677
|
+
type: k.type,
|
|
4678
|
+
product: k.product,
|
|
4679
|
+
productTag: k.productTag,
|
|
4680
|
+
status: k.status,
|
|
4681
|
+
config: k.config,
|
|
4682
|
+
details: k.details,
|
|
4683
|
+
onDelete: () => S(k.id),
|
|
4684
4684
|
onSettings: () => C(!0)
|
|
4685
4685
|
}
|
|
4686
4686
|
),
|
|
4687
4687
|
!m && /* @__PURE__ */ i("div", { className: "flex flex-col items-center py-2", children: [
|
|
4688
4688
|
/* @__PURE__ */ t("div", { className: "h-4 w-px", style: { background: "#cbd5e1" } }),
|
|
4689
|
-
u &&
|
|
4689
|
+
u && k.connector ? /* @__PURE__ */ i(B, { children: [
|
|
4690
4690
|
/* @__PURE__ */ t(
|
|
4691
4691
|
Hr,
|
|
4692
4692
|
{
|
|
4693
|
-
type:
|
|
4694
|
-
branches:
|
|
4695
|
-
threshold:
|
|
4693
|
+
type: k.connector.type,
|
|
4694
|
+
branches: k.connector.branches,
|
|
4695
|
+
threshold: k.transitionCondition?.threshold
|
|
4696
4696
|
}
|
|
4697
4697
|
),
|
|
4698
4698
|
/* @__PURE__ */ t("div", { className: "h-4 w-px", style: { background: "#cbd5e1" } })
|
|
@@ -4700,7 +4700,7 @@ function ho({
|
|
|
4700
4700
|
/* @__PURE__ */ t(Ge, { onClick: A }),
|
|
4701
4701
|
/* @__PURE__ */ t("div", { className: "h-4 w-px", style: { background: "#cbd5e1" } })
|
|
4702
4702
|
] })
|
|
4703
|
-
] },
|
|
4703
|
+
] }, k.id);
|
|
4704
4704
|
}),
|
|
4705
4705
|
/* @__PURE__ */ i("div", { className: "flex flex-col items-center pt-2", children: [
|
|
4706
4706
|
/* @__PURE__ */ t("div", { className: "h-4 w-px", style: { background: "#cbd5e1" } }),
|
|
@@ -4718,10 +4718,10 @@ function ho({
|
|
|
4718
4718
|
}
|
|
4719
4719
|
)
|
|
4720
4720
|
] }),
|
|
4721
|
-
|
|
4721
|
+
x && /* @__PURE__ */ t(
|
|
4722
4722
|
Jr,
|
|
4723
4723
|
{
|
|
4724
|
-
product:
|
|
4724
|
+
product: x,
|
|
4725
4725
|
onSave: O,
|
|
4726
4726
|
onCancel: I
|
|
4727
4727
|
}
|
|
@@ -4733,13 +4733,13 @@ const H = "#12b6bc", Zr = "#f5fbf8", eo = "rgba(0,0,0,0.03)", ie = "rgba(0,0,0,0
|
|
|
4733
4733
|
{ label: "Accounts & Billing", Icon: Qe }
|
|
4734
4734
|
];
|
|
4735
4735
|
function ge({ item: e, active: o, collapsed: n, expanded: r, onNavigate: s, onToggle: l }) {
|
|
4736
|
-
const { label: a, href: f, link: b, Icon: c, badge:
|
|
4736
|
+
const { label: a, href: f, link: b, Icon: c, badge: w, hasChevron: d, expandedContent: h, collapsedExpandedContent: C, onClick: x } = e;
|
|
4737
4737
|
return /* @__PURE__ */ i(B, { children: [
|
|
4738
4738
|
/* @__PURE__ */ i(
|
|
4739
4739
|
"button",
|
|
4740
4740
|
{
|
|
4741
4741
|
onClick: () => {
|
|
4742
|
-
|
|
4742
|
+
x ? x() : b ? window.open(b, "_blank", "noopener,noreferrer") : d && h && f ? l?.(f) : f && s?.(f);
|
|
4743
4743
|
},
|
|
4744
4744
|
title: n ? a : void 0,
|
|
4745
4745
|
style: {
|
|
@@ -4763,11 +4763,11 @@ function ge({ item: e, active: o, collapsed: n, expanded: r, onNavigate: s, onTo
|
|
|
4763
4763
|
outline: "none",
|
|
4764
4764
|
transition: "background 0.12s"
|
|
4765
4765
|
},
|
|
4766
|
-
onMouseEnter: (
|
|
4767
|
-
!o && !r && (
|
|
4766
|
+
onMouseEnter: (S) => {
|
|
4767
|
+
!o && !r && (S.currentTarget.style.background = eo);
|
|
4768
4768
|
},
|
|
4769
|
-
onMouseLeave: (
|
|
4770
|
-
!o && !r && (
|
|
4769
|
+
onMouseLeave: (S) => {
|
|
4770
|
+
!o && !r && (S.currentTarget.style.background = "transparent");
|
|
4771
4771
|
},
|
|
4772
4772
|
children: [
|
|
4773
4773
|
/* @__PURE__ */ t(
|
|
@@ -4796,7 +4796,7 @@ function ge({ item: e, active: o, collapsed: n, expanded: r, onNavigate: s, onTo
|
|
|
4796
4796
|
children: a
|
|
4797
4797
|
}
|
|
4798
4798
|
),
|
|
4799
|
-
|
|
4799
|
+
w !== void 0 && /* @__PURE__ */ t(
|
|
4800
4800
|
"span",
|
|
4801
4801
|
{
|
|
4802
4802
|
style: {
|
|
@@ -4813,7 +4813,7 @@ function ge({ item: e, active: o, collapsed: n, expanded: r, onNavigate: s, onTo
|
|
|
4813
4813
|
fontWeight: 600,
|
|
4814
4814
|
flexShrink: 0
|
|
4815
4815
|
},
|
|
4816
|
-
children:
|
|
4816
|
+
children: w
|
|
4817
4817
|
}
|
|
4818
4818
|
),
|
|
4819
4819
|
d && h && /* @__PURE__ */ t(
|
|
@@ -4859,6 +4859,17 @@ function ge({ item: e, active: o, collapsed: n, expanded: r, onNavigate: s, onTo
|
|
|
4859
4859
|
},
|
|
4860
4860
|
children: h
|
|
4861
4861
|
}
|
|
4862
|
+
),
|
|
4863
|
+
n && r && C && /* @__PURE__ */ t(
|
|
4864
|
+
"div",
|
|
4865
|
+
{
|
|
4866
|
+
style: {
|
|
4867
|
+
overflow: "hidden",
|
|
4868
|
+
maxHeight: 320,
|
|
4869
|
+
overflowY: "auto"
|
|
4870
|
+
},
|
|
4871
|
+
children: C
|
|
4872
|
+
}
|
|
4862
4873
|
)
|
|
4863
4874
|
] });
|
|
4864
4875
|
}
|
|
@@ -4932,20 +4943,20 @@ function yo({
|
|
|
4932
4943
|
collapsed: f,
|
|
4933
4944
|
onToggleCollapse: b,
|
|
4934
4945
|
defaultExpandedItem: c,
|
|
4935
|
-
children:
|
|
4946
|
+
children: w
|
|
4936
4947
|
}) {
|
|
4937
4948
|
const d = s ?? to, h = d.some(
|
|
4938
4949
|
(m) => m.href && l && (l === m.href || l.startsWith(m.href + "/"))
|
|
4939
|
-
), [C,
|
|
4940
|
-
const u = typeof m == "function" ? m(
|
|
4950
|
+
), [C, x] = j(!1), v = f !== void 0 ? f : C, S = b ? (m) => {
|
|
4951
|
+
const u = typeof m == "function" ? m(v) : m;
|
|
4941
4952
|
b(u);
|
|
4942
|
-
} : (m) =>
|
|
4953
|
+
} : (m) => x(typeof m == "function" ? m(C) : m), [A, z] = j(h), [O, I] = j(c ?? null);
|
|
4943
4954
|
ue(() => {
|
|
4944
4955
|
h && z(!0);
|
|
4945
4956
|
}, [h]), ue(() => {
|
|
4946
|
-
|
|
4947
|
-
}, [
|
|
4948
|
-
const
|
|
4957
|
+
v || I(c ?? null);
|
|
4958
|
+
}, [v, c]);
|
|
4959
|
+
const k = o.name ? o.name.split(" ").map((m) => m[0]).join("").slice(0, 2).toUpperCase() : "?", M = (m) => {
|
|
4949
4960
|
I((u) => u === m ? null : m);
|
|
4950
4961
|
};
|
|
4951
4962
|
return /* @__PURE__ */ i("div", { style: { display: "flex", height: "100%" }, children: [
|
|
@@ -4953,7 +4964,7 @@ function yo({
|
|
|
4953
4964
|
"aside",
|
|
4954
4965
|
{
|
|
4955
4966
|
style: {
|
|
4956
|
-
width:
|
|
4967
|
+
width: v ? 56 : 250,
|
|
4957
4968
|
flexShrink: 0,
|
|
4958
4969
|
display: "flex",
|
|
4959
4970
|
flexDirection: "column",
|
|
@@ -4973,12 +4984,12 @@ function yo({
|
|
|
4973
4984
|
flexShrink: 0,
|
|
4974
4985
|
display: "flex",
|
|
4975
4986
|
alignItems: "center",
|
|
4976
|
-
justifyContent:
|
|
4987
|
+
justifyContent: v ? "center" : "space-between",
|
|
4977
4988
|
padding: 10,
|
|
4978
4989
|
borderBottom: `1px solid ${ie}`
|
|
4979
4990
|
},
|
|
4980
4991
|
children: [
|
|
4981
|
-
!
|
|
4992
|
+
!v && e && /* @__PURE__ */ t(
|
|
4982
4993
|
"img",
|
|
4983
4994
|
{
|
|
4984
4995
|
src: e,
|
|
@@ -4989,9 +5000,7 @@ function yo({
|
|
|
4989
5000
|
/* @__PURE__ */ t(
|
|
4990
5001
|
"button",
|
|
4991
5002
|
{
|
|
4992
|
-
onClick: () =>
|
|
4993
|
-
S((m) => !m), I(null);
|
|
4994
|
-
},
|
|
5003
|
+
onClick: () => S((m) => !m),
|
|
4995
5004
|
style: {
|
|
4996
5005
|
width: 28,
|
|
4997
5006
|
height: 28,
|
|
@@ -5020,7 +5029,7 @@ function yo({
|
|
|
5020
5029
|
"button",
|
|
5021
5030
|
{
|
|
5022
5031
|
onClick: () => {
|
|
5023
|
-
|
|
5032
|
+
v ? (S(!1), z(!0)) : z((m) => !m);
|
|
5024
5033
|
},
|
|
5025
5034
|
style: {
|
|
5026
5035
|
display: "flex",
|
|
@@ -5028,7 +5037,7 @@ function yo({
|
|
|
5028
5037
|
alignItems: "center",
|
|
5029
5038
|
gap: 12,
|
|
5030
5039
|
padding: 12,
|
|
5031
|
-
justifyContent:
|
|
5040
|
+
justifyContent: v ? "center" : void 0,
|
|
5032
5041
|
background: h ? "#f5fbf8" : "rgba(18,182,188,0.05)",
|
|
5033
5042
|
borderLeft: h ? "2px solid #12b6bc" : "2px solid transparent",
|
|
5034
5043
|
borderTop: "none",
|
|
@@ -5071,10 +5080,10 @@ function yo({
|
|
|
5071
5080
|
color: "#fff",
|
|
5072
5081
|
background: "linear-gradient(135deg, #3b82f6 0%, #12b6bc 100%)"
|
|
5073
5082
|
},
|
|
5074
|
-
children:
|
|
5083
|
+
children: k
|
|
5075
5084
|
}
|
|
5076
5085
|
),
|
|
5077
|
-
!
|
|
5086
|
+
!v && /* @__PURE__ */ i(B, { children: [
|
|
5078
5087
|
/* @__PURE__ */ i("div", { style: { flex: 1, minWidth: 0, textAlign: "left" }, children: [
|
|
5079
5088
|
/* @__PURE__ */ t(
|
|
5080
5089
|
"p",
|
|
@@ -5117,19 +5126,19 @@ function yo({
|
|
|
5117
5126
|
]
|
|
5118
5127
|
}
|
|
5119
5128
|
),
|
|
5120
|
-
(A ||
|
|
5129
|
+
(A || v && h) && /* @__PURE__ */ t(B, { children: d.map((m) => /* @__PURE__ */ t(
|
|
5121
5130
|
ge,
|
|
5122
5131
|
{
|
|
5123
5132
|
item: {
|
|
5124
5133
|
...m,
|
|
5125
5134
|
onClick: m.onClick ? () => {
|
|
5126
|
-
|
|
5135
|
+
v || z(!1), m.onClick?.();
|
|
5127
5136
|
} : m.link ? () => {
|
|
5128
|
-
|
|
5137
|
+
v || z(!1), window.open(m.link, "_blank", "noopener,noreferrer");
|
|
5129
5138
|
} : void 0
|
|
5130
5139
|
},
|
|
5131
5140
|
active: !!(m.href && l && (l === m.href || l.startsWith(m.href + "/"))),
|
|
5132
|
-
collapsed:
|
|
5141
|
+
collapsed: v,
|
|
5133
5142
|
onNavigate: a,
|
|
5134
5143
|
onToggle: M
|
|
5135
5144
|
},
|
|
@@ -5137,7 +5146,7 @@ function yo({
|
|
|
5137
5146
|
)) })
|
|
5138
5147
|
] }),
|
|
5139
5148
|
/* @__PURE__ */ i("nav", { style: { flex: 1, overflowY: "auto" }, children: [
|
|
5140
|
-
n.length > 0 && !
|
|
5149
|
+
n.length > 0 && !v && /* @__PURE__ */ t(
|
|
5141
5150
|
"div",
|
|
5142
5151
|
{
|
|
5143
5152
|
style: {
|
|
@@ -5160,7 +5169,7 @@ function yo({
|
|
|
5160
5169
|
item: m,
|
|
5161
5170
|
active: l === m.href,
|
|
5162
5171
|
expanded: O === m.href,
|
|
5163
|
-
collapsed:
|
|
5172
|
+
collapsed: v,
|
|
5164
5173
|
onNavigate: a,
|
|
5165
5174
|
onToggle: M
|
|
5166
5175
|
},
|
|
@@ -5168,7 +5177,7 @@ function yo({
|
|
|
5168
5177
|
))
|
|
5169
5178
|
] }),
|
|
5170
5179
|
r.length > 0 && /* @__PURE__ */ i("div", { style: { flexShrink: 0 }, children: [
|
|
5171
|
-
!
|
|
5180
|
+
!v && /* @__PURE__ */ t(
|
|
5172
5181
|
"div",
|
|
5173
5182
|
{
|
|
5174
5183
|
style: {
|
|
@@ -5186,13 +5195,13 @@ function yo({
|
|
|
5186
5195
|
children: "OTHER"
|
|
5187
5196
|
}
|
|
5188
5197
|
),
|
|
5189
|
-
|
|
5198
|
+
v && /* @__PURE__ */ t("div", { style: { height: 8, borderTop: `1px solid ${ie}` } }),
|
|
5190
5199
|
r.map((m) => /* @__PURE__ */ t(
|
|
5191
5200
|
ge,
|
|
5192
5201
|
{
|
|
5193
5202
|
item: m,
|
|
5194
5203
|
active: l === m.href,
|
|
5195
|
-
collapsed:
|
|
5204
|
+
collapsed: v,
|
|
5196
5205
|
onNavigate: a,
|
|
5197
5206
|
onToggle: M
|
|
5198
5207
|
},
|
|
@@ -5203,7 +5212,7 @@ function yo({
|
|
|
5203
5212
|
]
|
|
5204
5213
|
}
|
|
5205
5214
|
),
|
|
5206
|
-
/* @__PURE__ */ t("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column" }, children:
|
|
5215
|
+
/* @__PURE__ */ t("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column" }, children: w })
|
|
5207
5216
|
] });
|
|
5208
5217
|
}
|
|
5209
5218
|
const ro = "rgba(0,0,0,0.07)", Ve = "#12b6bc";
|
|
@@ -5265,7 +5274,7 @@ function wo({
|
|
|
5265
5274
|
},
|
|
5266
5275
|
children: [
|
|
5267
5276
|
f && /* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", paddingRight: 8 }, children: f }),
|
|
5268
|
-
a.map((c,
|
|
5277
|
+
a.map((c, w) => /* @__PURE__ */ t(
|
|
5269
5278
|
"button",
|
|
5270
5279
|
{
|
|
5271
5280
|
onClick: c.onClick,
|
|
@@ -5293,7 +5302,7 @@ function wo({
|
|
|
5293
5302
|
},
|
|
5294
5303
|
children: c.label
|
|
5295
5304
|
},
|
|
5296
|
-
|
|
5305
|
+
w
|
|
5297
5306
|
))
|
|
5298
5307
|
]
|
|
5299
5308
|
}
|