@contact_incruiter/fcc 1.0.7 → 1.0.8
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 +202 -190
- 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) => V(e, ft, ye), p = (e) => st.test(e), H = (e) => V(e, pt, yr), Pe = (e) => V(e, Pr, N), Sr = (e) => V(e, ut, at), zr = (e) => V(e, gt, ye), Le = (e) => V(e, ct, ye), Ir = (e) => V(e, dt, vr), te = (e) => V(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), V = (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,15 +333,15 @@ 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
|
-
}, 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()],
|
|
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()], U = () => [$, "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]
|
|
340
340
|
}], Se = () => ["no-repeat", {
|
|
341
341
|
repeat: ["", "x", "y", "space", "round"]
|
|
342
342
|
}], ze = () => ["auto", "cover", "contain", Ar, Cr, {
|
|
343
343
|
size: [g, p]
|
|
344
|
-
}], de = () => [pe, Q,
|
|
344
|
+
}], de = () => [pe, Q, H], P = () => [
|
|
345
345
|
// Deprecated since Tailwind CSS v4.0.0
|
|
346
346
|
"",
|
|
347
347
|
"none",
|
|
@@ -349,11 +349,11 @@ const Vt = (e, o) => {
|
|
|
349
349
|
c,
|
|
350
350
|
g,
|
|
351
351
|
p
|
|
352
|
-
], L = () => ["", N, Q,
|
|
352
|
+
], L = () => ["", N, Q, H], J = () => ["solid", "dashed", "dotted", "double"], Ie = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], R = () => [N, pe, je, Le], Te = () => [
|
|
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
|
|
@@ -1046,7 +1046,7 @@ const Vt = (e, o) => {
|
|
|
1046
1046
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1047
1047
|
*/
|
|
1048
1048
|
size: [{
|
|
1049
|
-
size:
|
|
1049
|
+
size: U()
|
|
1050
1050
|
}],
|
|
1051
1051
|
/**
|
|
1052
1052
|
* Inline Size
|
|
@@ -1095,7 +1095,7 @@ const Vt = (e, o) => {
|
|
|
1095
1095
|
* @see https://tailwindcss.com/docs/width
|
|
1096
1096
|
*/
|
|
1097
1097
|
w: [{
|
|
1098
|
-
w: [f, "screen", ...
|
|
1098
|
+
w: [f, "screen", ...U()]
|
|
1099
1099
|
}],
|
|
1100
1100
|
/**
|
|
1101
1101
|
* Min-Width
|
|
@@ -1107,7 +1107,7 @@ const Vt = (e, o) => {
|
|
|
1107
1107
|
"screen",
|
|
1108
1108
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1109
1109
|
"none",
|
|
1110
|
-
...
|
|
1110
|
+
...U()
|
|
1111
1111
|
]
|
|
1112
1112
|
}],
|
|
1113
1113
|
/**
|
|
@@ -1125,7 +1125,7 @@ const Vt = (e, o) => {
|
|
|
1125
1125
|
{
|
|
1126
1126
|
screen: [a]
|
|
1127
1127
|
},
|
|
1128
|
-
...
|
|
1128
|
+
...U()
|
|
1129
1129
|
]
|
|
1130
1130
|
}],
|
|
1131
1131
|
/**
|
|
@@ -1133,21 +1133,21 @@ const Vt = (e, o) => {
|
|
|
1133
1133
|
* @see https://tailwindcss.com/docs/height
|
|
1134
1134
|
*/
|
|
1135
1135
|
h: [{
|
|
1136
|
-
h: ["screen", "lh", ...
|
|
1136
|
+
h: ["screen", "lh", ...U()]
|
|
1137
1137
|
}],
|
|
1138
1138
|
/**
|
|
1139
1139
|
* Min-Height
|
|
1140
1140
|
* @see https://tailwindcss.com/docs/min-height
|
|
1141
1141
|
*/
|
|
1142
1142
|
"min-h": [{
|
|
1143
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1143
|
+
"min-h": ["screen", "lh", "none", ...U()]
|
|
1144
1144
|
}],
|
|
1145
1145
|
/**
|
|
1146
1146
|
* Max-Height
|
|
1147
1147
|
* @see https://tailwindcss.com/docs/max-height
|
|
1148
1148
|
*/
|
|
1149
1149
|
"max-h": [{
|
|
1150
|
-
"max-h": ["screen", "lh", ...
|
|
1150
|
+
"max-h": ["screen", "lh", ...U()]
|
|
1151
1151
|
}],
|
|
1152
1152
|
// ------------------
|
|
1153
1153
|
// --- Typography ---
|
|
@@ -1157,7 +1157,7 @@ const Vt = (e, o) => {
|
|
|
1157
1157
|
* @see https://tailwindcss.com/docs/font-size
|
|
1158
1158
|
*/
|
|
1159
1159
|
"font-size": [{
|
|
1160
|
-
text: ["base", n, Q,
|
|
1160
|
+
text: ["base", n, Q, H]
|
|
1161
1161
|
}],
|
|
1162
1162
|
/**
|
|
1163
1163
|
* Font Smoothing
|
|
@@ -1312,7 +1312,7 @@ const Vt = (e, o) => {
|
|
|
1312
1312
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1313
1313
|
*/
|
|
1314
1314
|
"text-decoration-thickness": [{
|
|
1315
|
-
decoration: [N, "from-font", "auto", g,
|
|
1315
|
+
decoration: [N, "from-font", "auto", g, H]
|
|
1316
1316
|
}],
|
|
1317
1317
|
/**
|
|
1318
1318
|
* Text Decoration Color
|
|
@@ -1834,7 +1834,7 @@ const Vt = (e, o) => {
|
|
|
1834
1834
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1835
1835
|
*/
|
|
1836
1836
|
"outline-w": [{
|
|
1837
|
-
outline: ["", N, Q,
|
|
1837
|
+
outline: ["", N, Q, H]
|
|
1838
1838
|
}],
|
|
1839
1839
|
/**
|
|
1840
1840
|
* Outline Color
|
|
@@ -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
|
]
|
|
@@ -1909,7 +1909,7 @@ const Vt = (e, o) => {
|
|
|
1909
1909
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1910
1910
|
*/
|
|
1911
1911
|
"ring-offset-w": [{
|
|
1912
|
-
"ring-offset": [N,
|
|
1912
|
+
"ring-offset": [N, H]
|
|
1913
1913
|
}],
|
|
1914
1914
|
/**
|
|
1915
1915
|
* Ring Offset Color
|
|
@@ -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
|
|
@@ -2922,7 +2922,7 @@ const Vt = (e, o) => {
|
|
|
2922
2922
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2923
2923
|
*/
|
|
2924
2924
|
"stroke-w": [{
|
|
2925
|
-
stroke: [N, Q,
|
|
2925
|
+
stroke: [N, Q, H, Pe]
|
|
2926
2926
|
}],
|
|
2927
2927
|
/**
|
|
2928
2928
|
* Stroke
|
|
@@ -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,28 +4718,28 @@ 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
|
}
|
|
4728
4728
|
)
|
|
4729
4729
|
] });
|
|
4730
4730
|
}
|
|
4731
|
-
const
|
|
4731
|
+
const _ = "#12b6bc", Zr = "#f5fbf8", eo = "rgba(0,0,0,0.03)", ie = "rgba(0,0,0,0.07)", to = [
|
|
4732
4732
|
{ label: "My Profile", Icon: qe },
|
|
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: {
|
|
@@ -4754,7 +4754,7 @@ function ge({ item: e, active: o, collapsed: n, expanded: r, onNavigate: s, onTo
|
|
|
4754
4754
|
paddingBottom: 10,
|
|
4755
4755
|
justifyContent: n ? "center" : void 0,
|
|
4756
4756
|
background: o || r ? Zr : "transparent",
|
|
4757
|
-
borderLeft: o || r ? `2px solid ${
|
|
4757
|
+
borderLeft: o || r ? `2px solid ${_}` : "2px solid transparent",
|
|
4758
4758
|
borderTop: "none",
|
|
4759
4759
|
borderRight: "none",
|
|
4760
4760
|
borderBottom: "none",
|
|
@@ -4763,18 +4763,18 @@ 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(
|
|
4774
4774
|
c,
|
|
4775
4775
|
{
|
|
4776
4776
|
size: 22,
|
|
4777
|
-
style: { flexShrink: 0, color: o || r ?
|
|
4777
|
+
style: { flexShrink: 0, color: o || r ? _ : "#9ca3af", display: "block" }
|
|
4778
4778
|
}
|
|
4779
4779
|
),
|
|
4780
4780
|
!n && /* @__PURE__ */ i(B, { children: [
|
|
@@ -4788,7 +4788,7 @@ function ge({ item: e, active: o, collapsed: n, expanded: r, onNavigate: s, onTo
|
|
|
4788
4788
|
fontSize: 13,
|
|
4789
4789
|
lineHeight: "24px",
|
|
4790
4790
|
fontWeight: o || r ? 700 : 500,
|
|
4791
|
-
color: o || r ?
|
|
4791
|
+
color: o || r ? _ : "#000",
|
|
4792
4792
|
whiteSpace: "nowrap",
|
|
4793
4793
|
overflow: "hidden",
|
|
4794
4794
|
textOverflow: "ellipsis"
|
|
@@ -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: {
|
|
@@ -4808,12 +4808,12 @@ function ge({ item: e, active: o, collapsed: n, expanded: r, onNavigate: s, onTo
|
|
|
4808
4808
|
paddingInline: 4,
|
|
4809
4809
|
borderRadius: 10,
|
|
4810
4810
|
background: "rgba(18,182,188,0.14)",
|
|
4811
|
-
color:
|
|
4811
|
+
color: _,
|
|
4812
4812
|
fontSize: 10,
|
|
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(
|
|
@@ -4852,13 +4852,25 @@ function ge({ item: e, active: o, collapsed: n, expanded: r, onNavigate: s, onTo
|
|
|
4852
4852
|
{
|
|
4853
4853
|
style: {
|
|
4854
4854
|
background: "rgba(18,182,188,0.02)",
|
|
4855
|
-
borderLeft: `2px solid ${
|
|
4855
|
+
borderLeft: `2px solid ${_}`,
|
|
4856
4856
|
overflow: "hidden",
|
|
4857
4857
|
maxHeight: 320,
|
|
4858
4858
|
overflowY: "auto"
|
|
4859
4859
|
},
|
|
4860
4860
|
children: h
|
|
4861
4861
|
}
|
|
4862
|
+
),
|
|
4863
|
+
n && r && C && /* @__PURE__ */ t(
|
|
4864
|
+
"div",
|
|
4865
|
+
{
|
|
4866
|
+
style: {
|
|
4867
|
+
borderLeft: `2px solid ${_}`,
|
|
4868
|
+
overflow: "hidden",
|
|
4869
|
+
maxHeight: 320,
|
|
4870
|
+
overflowY: "auto"
|
|
4871
|
+
},
|
|
4872
|
+
children: C
|
|
4873
|
+
}
|
|
4862
4874
|
)
|
|
4863
4875
|
] });
|
|
4864
4876
|
}
|
|
@@ -4876,7 +4888,7 @@ function xo({ name: e, icon: o, active: n, onClick: r }) {
|
|
|
4876
4888
|
textAlign: "left",
|
|
4877
4889
|
fontSize: 13,
|
|
4878
4890
|
fontWeight: n ? 700 : 400,
|
|
4879
|
-
color: n ?
|
|
4891
|
+
color: n ? _ : "#374151",
|
|
4880
4892
|
background: n ? "rgba(18,182,188,0.08)" : "transparent",
|
|
4881
4893
|
border: "none",
|
|
4882
4894
|
cursor: "pointer",
|
|
@@ -4911,7 +4923,7 @@ function xo({ name: e, icon: o, active: n, onClick: r }) {
|
|
|
4911
4923
|
justifyContent: "center",
|
|
4912
4924
|
fontSize: 10,
|
|
4913
4925
|
fontWeight: 700,
|
|
4914
|
-
color: n ?
|
|
4926
|
+
color: n ? _ : "#9CA3AF"
|
|
4915
4927
|
},
|
|
4916
4928
|
children: e.charAt(0)
|
|
4917
4929
|
}
|
|
@@ -4932,20 +4944,20 @@ function yo({
|
|
|
4932
4944
|
collapsed: f,
|
|
4933
4945
|
onToggleCollapse: b,
|
|
4934
4946
|
defaultExpandedItem: c,
|
|
4935
|
-
children:
|
|
4947
|
+
children: w
|
|
4936
4948
|
}) {
|
|
4937
4949
|
const d = s ?? to, h = d.some(
|
|
4938
4950
|
(m) => m.href && l && (l === m.href || l.startsWith(m.href + "/"))
|
|
4939
|
-
), [C,
|
|
4940
|
-
const u = typeof m == "function" ? m(
|
|
4951
|
+
), [C, x] = j(!1), v = f !== void 0 ? f : C, S = b ? (m) => {
|
|
4952
|
+
const u = typeof m == "function" ? m(v) : m;
|
|
4941
4953
|
b(u);
|
|
4942
|
-
} : (m) =>
|
|
4954
|
+
} : (m) => x(typeof m == "function" ? m(C) : m), [A, z] = j(h), [O, I] = j(c ?? null);
|
|
4943
4955
|
ue(() => {
|
|
4944
4956
|
h && z(!0);
|
|
4945
4957
|
}, [h]), ue(() => {
|
|
4946
|
-
|
|
4947
|
-
}, [
|
|
4948
|
-
const
|
|
4958
|
+
v || I(c ?? null);
|
|
4959
|
+
}, [v, c]);
|
|
4960
|
+
const k = o.name ? o.name.split(" ").map((m) => m[0]).join("").slice(0, 2).toUpperCase() : "?", M = (m) => {
|
|
4949
4961
|
I((u) => u === m ? null : m);
|
|
4950
4962
|
};
|
|
4951
4963
|
return /* @__PURE__ */ i("div", { style: { display: "flex", height: "100%" }, children: [
|
|
@@ -4953,7 +4965,7 @@ function yo({
|
|
|
4953
4965
|
"aside",
|
|
4954
4966
|
{
|
|
4955
4967
|
style: {
|
|
4956
|
-
width:
|
|
4968
|
+
width: v ? 56 : 250,
|
|
4957
4969
|
flexShrink: 0,
|
|
4958
4970
|
display: "flex",
|
|
4959
4971
|
flexDirection: "column",
|
|
@@ -4973,12 +4985,12 @@ function yo({
|
|
|
4973
4985
|
flexShrink: 0,
|
|
4974
4986
|
display: "flex",
|
|
4975
4987
|
alignItems: "center",
|
|
4976
|
-
justifyContent:
|
|
4988
|
+
justifyContent: v ? "center" : "space-between",
|
|
4977
4989
|
padding: 10,
|
|
4978
4990
|
borderBottom: `1px solid ${ie}`
|
|
4979
4991
|
},
|
|
4980
4992
|
children: [
|
|
4981
|
-
!
|
|
4993
|
+
!v && e && /* @__PURE__ */ t(
|
|
4982
4994
|
"img",
|
|
4983
4995
|
{
|
|
4984
4996
|
src: e,
|
|
@@ -5020,7 +5032,7 @@ function yo({
|
|
|
5020
5032
|
"button",
|
|
5021
5033
|
{
|
|
5022
5034
|
onClick: () => {
|
|
5023
|
-
|
|
5035
|
+
v ? (S(!1), z(!0)) : z((m) => !m);
|
|
5024
5036
|
},
|
|
5025
5037
|
style: {
|
|
5026
5038
|
display: "flex",
|
|
@@ -5028,7 +5040,7 @@ function yo({
|
|
|
5028
5040
|
alignItems: "center",
|
|
5029
5041
|
gap: 12,
|
|
5030
5042
|
padding: 12,
|
|
5031
|
-
justifyContent:
|
|
5043
|
+
justifyContent: v ? "center" : void 0,
|
|
5032
5044
|
background: h ? "#f5fbf8" : "rgba(18,182,188,0.05)",
|
|
5033
5045
|
borderLeft: h ? "2px solid #12b6bc" : "2px solid transparent",
|
|
5034
5046
|
borderTop: "none",
|
|
@@ -5071,10 +5083,10 @@ function yo({
|
|
|
5071
5083
|
color: "#fff",
|
|
5072
5084
|
background: "linear-gradient(135deg, #3b82f6 0%, #12b6bc 100%)"
|
|
5073
5085
|
},
|
|
5074
|
-
children:
|
|
5086
|
+
children: k
|
|
5075
5087
|
}
|
|
5076
5088
|
),
|
|
5077
|
-
!
|
|
5089
|
+
!v && /* @__PURE__ */ i(B, { children: [
|
|
5078
5090
|
/* @__PURE__ */ i("div", { style: { flex: 1, minWidth: 0, textAlign: "left" }, children: [
|
|
5079
5091
|
/* @__PURE__ */ t(
|
|
5080
5092
|
"p",
|
|
@@ -5117,19 +5129,19 @@ function yo({
|
|
|
5117
5129
|
]
|
|
5118
5130
|
}
|
|
5119
5131
|
),
|
|
5120
|
-
(A ||
|
|
5132
|
+
(A || v && h) && /* @__PURE__ */ t(B, { children: d.map((m) => /* @__PURE__ */ t(
|
|
5121
5133
|
ge,
|
|
5122
5134
|
{
|
|
5123
5135
|
item: {
|
|
5124
5136
|
...m,
|
|
5125
5137
|
onClick: m.onClick ? () => {
|
|
5126
|
-
|
|
5138
|
+
v || z(!1), m.onClick?.();
|
|
5127
5139
|
} : m.link ? () => {
|
|
5128
|
-
|
|
5140
|
+
v || z(!1), window.open(m.link, "_blank", "noopener,noreferrer");
|
|
5129
5141
|
} : void 0
|
|
5130
5142
|
},
|
|
5131
5143
|
active: !!(m.href && l && (l === m.href || l.startsWith(m.href + "/"))),
|
|
5132
|
-
collapsed:
|
|
5144
|
+
collapsed: v,
|
|
5133
5145
|
onNavigate: a,
|
|
5134
5146
|
onToggle: M
|
|
5135
5147
|
},
|
|
@@ -5137,7 +5149,7 @@ function yo({
|
|
|
5137
5149
|
)) })
|
|
5138
5150
|
] }),
|
|
5139
5151
|
/* @__PURE__ */ i("nav", { style: { flex: 1, overflowY: "auto" }, children: [
|
|
5140
|
-
n.length > 0 && !
|
|
5152
|
+
n.length > 0 && !v && /* @__PURE__ */ t(
|
|
5141
5153
|
"div",
|
|
5142
5154
|
{
|
|
5143
5155
|
style: {
|
|
@@ -5160,7 +5172,7 @@ function yo({
|
|
|
5160
5172
|
item: m,
|
|
5161
5173
|
active: l === m.href,
|
|
5162
5174
|
expanded: O === m.href,
|
|
5163
|
-
collapsed:
|
|
5175
|
+
collapsed: v,
|
|
5164
5176
|
onNavigate: a,
|
|
5165
5177
|
onToggle: M
|
|
5166
5178
|
},
|
|
@@ -5168,7 +5180,7 @@ function yo({
|
|
|
5168
5180
|
))
|
|
5169
5181
|
] }),
|
|
5170
5182
|
r.length > 0 && /* @__PURE__ */ i("div", { style: { flexShrink: 0 }, children: [
|
|
5171
|
-
!
|
|
5183
|
+
!v && /* @__PURE__ */ t(
|
|
5172
5184
|
"div",
|
|
5173
5185
|
{
|
|
5174
5186
|
style: {
|
|
@@ -5186,13 +5198,13 @@ function yo({
|
|
|
5186
5198
|
children: "OTHER"
|
|
5187
5199
|
}
|
|
5188
5200
|
),
|
|
5189
|
-
|
|
5201
|
+
v && /* @__PURE__ */ t("div", { style: { height: 8, borderTop: `1px solid ${ie}` } }),
|
|
5190
5202
|
r.map((m) => /* @__PURE__ */ t(
|
|
5191
5203
|
ge,
|
|
5192
5204
|
{
|
|
5193
5205
|
item: m,
|
|
5194
5206
|
active: l === m.href,
|
|
5195
|
-
collapsed:
|
|
5207
|
+
collapsed: v,
|
|
5196
5208
|
onNavigate: a,
|
|
5197
5209
|
onToggle: M
|
|
5198
5210
|
},
|
|
@@ -5203,7 +5215,7 @@ function yo({
|
|
|
5203
5215
|
]
|
|
5204
5216
|
}
|
|
5205
5217
|
),
|
|
5206
|
-
/* @__PURE__ */ t("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column" }, children:
|
|
5218
|
+
/* @__PURE__ */ t("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column" }, children: w })
|
|
5207
5219
|
] });
|
|
5208
5220
|
}
|
|
5209
5221
|
const ro = "rgba(0,0,0,0.07)", Ve = "#12b6bc";
|
|
@@ -5265,7 +5277,7 @@ function wo({
|
|
|
5265
5277
|
},
|
|
5266
5278
|
children: [
|
|
5267
5279
|
f && /* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", paddingRight: 8 }, children: f }),
|
|
5268
|
-
a.map((c,
|
|
5280
|
+
a.map((c, w) => /* @__PURE__ */ t(
|
|
5269
5281
|
"button",
|
|
5270
5282
|
{
|
|
5271
5283
|
onClick: c.onClick,
|
|
@@ -5293,7 +5305,7 @@ function wo({
|
|
|
5293
5305
|
},
|
|
5294
5306
|
children: c.label
|
|
5295
5307
|
},
|
|
5296
|
-
|
|
5308
|
+
w
|
|
5297
5309
|
))
|
|
5298
5310
|
]
|
|
5299
5311
|
}
|