tcce-design-system 0.3.16 → 0.3.18
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.
|
@@ -179,11 +179,11 @@ const ys = {
|
|
|
179
179
|
${({ size: e = 24 }) => ys[e]}
|
|
180
180
|
margin: 0;
|
|
181
181
|
color: ${({ color: e }) => e || "var(--color-main-blue-primary)"};
|
|
182
|
-
`,
|
|
182
|
+
`, Uv = x.h2`
|
|
183
183
|
${({ size: e = 24 }) => yc[e]}
|
|
184
184
|
margin: 0;
|
|
185
185
|
color: ${({ color: e }) => e || "var(--color-main-blue-primary)"};
|
|
186
|
-
`,
|
|
186
|
+
`, it = x.span`
|
|
187
187
|
${({ size: e = 16 }) => A[e]}
|
|
188
188
|
margin: 0;
|
|
189
189
|
color: ${({ color: e }) => e || "var(--color-main-blue-primary)"};
|
|
@@ -395,7 +395,7 @@ function Fs(e, t) {
|
|
|
395
395
|
s[sn[T]].cancel(w);
|
|
396
396
|
}, state: r, steps: s };
|
|
397
397
|
}
|
|
398
|
-
const { schedule: J, cancel:
|
|
398
|
+
const { schedule: J, cancel: qe, state: de, steps: _n } = /* @__PURE__ */ Fs(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Te, !0);
|
|
399
399
|
let mn;
|
|
400
400
|
function Mc() {
|
|
401
401
|
mn = void 0;
|
|
@@ -436,7 +436,7 @@ const Fc = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
436
436
|
}, Ic = (e) => Le(0, 255, e), Nn = {
|
|
437
437
|
...Tt,
|
|
438
438
|
transform: (e) => Math.round(Ic(e))
|
|
439
|
-
},
|
|
439
|
+
}, ot = {
|
|
440
440
|
test: /* @__PURE__ */ er("rgb", "red"),
|
|
441
441
|
parse: /* @__PURE__ */ _s("red", "green", "blue"),
|
|
442
442
|
transform: ({ red: e, green: t, blue: n, alpha: o = 1 }) => "rgba(" + Nn.transform(e) + ", " + Nn.transform(t) + ", " + Nn.transform(n) + ", " + Lt(Ht.transform(o)) + ")"
|
|
@@ -453,7 +453,7 @@ function Lc(e) {
|
|
|
453
453
|
const uo = {
|
|
454
454
|
test: /* @__PURE__ */ er("#"),
|
|
455
455
|
parse: Lc,
|
|
456
|
-
transform:
|
|
456
|
+
transform: ot.transform
|
|
457
457
|
}, Xt = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
|
|
458
458
|
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
459
459
|
parse: parseFloat,
|
|
@@ -467,9 +467,9 @@ const uo = {
|
|
|
467
467
|
parse: /* @__PURE__ */ _s("hue", "saturation", "lightness"),
|
|
468
468
|
transform: ({ hue: e, saturation: t, lightness: n, alpha: o = 1 }) => "hsla(" + Math.round(e) + ", " + Ie.transform(Lt(t)) + ", " + Ie.transform(Lt(n)) + ", " + Lt(Ht.transform(o)) + ")"
|
|
469
469
|
}, re = {
|
|
470
|
-
test: (e) =>
|
|
471
|
-
parse: (e) =>
|
|
472
|
-
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ?
|
|
470
|
+
test: (e) => ot.test(e) || uo.test(e) || yt.test(e),
|
|
471
|
+
parse: (e) => ot.test(e) ? ot.parse(e) : yt.test(e) ? yt.parse(e) : uo.parse(e),
|
|
472
|
+
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? ot.transform(e) : yt.transform(e),
|
|
473
473
|
getAnimatableNone: (e) => {
|
|
474
474
|
const t = re.parse(e);
|
|
475
475
|
return t.alpha = 0, re.transform(t);
|
|
@@ -509,7 +509,7 @@ function Uc(e) {
|
|
|
509
509
|
const t = zs(e);
|
|
510
510
|
return Os(e)(t.map(Gc));
|
|
511
511
|
}
|
|
512
|
-
const
|
|
512
|
+
const Xe = {
|
|
513
513
|
test: zc,
|
|
514
514
|
parse: zs,
|
|
515
515
|
createTransformer: Os,
|
|
@@ -540,7 +540,7 @@ function wn(e, t) {
|
|
|
540
540
|
const ne = (e, t, n) => e + (t - e) * n, zn = (e, t, n) => {
|
|
541
541
|
const o = e * e, r = n * (t * t - o) + o;
|
|
542
542
|
return r < 0 ? 0 : Math.sqrt(r);
|
|
543
|
-
}, Wc = [uo,
|
|
543
|
+
}, Wc = [uo, ot, yt], Yc = (e) => Wc.find((t) => t.test(e));
|
|
544
544
|
function Kr(e) {
|
|
545
545
|
const t = Yc(e);
|
|
546
546
|
if ($t(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t)
|
|
@@ -553,7 +553,7 @@ const Wr = (e, t) => {
|
|
|
553
553
|
if (!n || !o)
|
|
554
554
|
return wn(e, t);
|
|
555
555
|
const r = { ...n };
|
|
556
|
-
return (i) => (r.red = zn(n.red, o.red, i), r.green = zn(n.green, o.green, i), r.blue = zn(n.blue, o.blue, i), r.alpha = ne(n.alpha, o.alpha, i),
|
|
556
|
+
return (i) => (r.red = zn(n.red, o.red, i), r.green = zn(n.green, o.green, i), r.blue = zn(n.blue, o.blue, i), r.alpha = ne(n.alpha, o.alpha, i), ot.transform(r));
|
|
557
557
|
}, fo = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
558
558
|
function qc(e, t) {
|
|
559
559
|
return fo.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
@@ -591,7 +591,7 @@ function Jc(e, t) {
|
|
|
591
591
|
return n;
|
|
592
592
|
}
|
|
593
593
|
const Qc = (e, t) => {
|
|
594
|
-
const n =
|
|
594
|
+
const n = Xe.createTransformer(t), o = jt(e), r = jt(t);
|
|
595
595
|
return o.indexes.var.length === r.indexes.var.length && o.indexes.color.length === r.indexes.color.length && o.indexes.number.length >= r.indexes.number.length ? fo.has(e) && !r.values.length || fo.has(t) && !o.values.length ? qc(e, t) : Yt(Hs(Jc(o, r), r.values), n) : ($t(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), wn(e, t));
|
|
596
596
|
};
|
|
597
597
|
function js(e, t, n) {
|
|
@@ -601,7 +601,7 @@ const eu = (e) => {
|
|
|
601
601
|
const t = ({ timestamp: n }) => e(n);
|
|
602
602
|
return {
|
|
603
603
|
start: (n = !0) => J.update(t, n),
|
|
604
|
-
stop: () =>
|
|
604
|
+
stop: () => qe(t),
|
|
605
605
|
/**
|
|
606
606
|
* If we're processing this frame we can use the
|
|
607
607
|
* framelocked timestamp to keep things in sync.
|
|
@@ -1047,8 +1047,8 @@ function vu(e) {
|
|
|
1047
1047
|
for (let t = 1; t < e.length; t++)
|
|
1048
1048
|
e[t] ?? (e[t] = e[t - 1]);
|
|
1049
1049
|
}
|
|
1050
|
-
const
|
|
1051
|
-
const t =
|
|
1050
|
+
const rt = (e) => e * 180 / Math.PI, po = (e) => {
|
|
1051
|
+
const t = rt(Math.atan2(e[1], e[0]));
|
|
1052
1052
|
return go(t);
|
|
1053
1053
|
}, wu = {
|
|
1054
1054
|
x: 4,
|
|
@@ -1060,8 +1060,8 @@ const it = (e) => e * 180 / Math.PI, po = (e) => {
|
|
|
1060
1060
|
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
|
|
1061
1061
|
rotate: po,
|
|
1062
1062
|
rotateZ: po,
|
|
1063
|
-
skewX: (e) =>
|
|
1064
|
-
skewY: (e) =>
|
|
1063
|
+
skewX: (e) => rt(Math.atan(e[1])),
|
|
1064
|
+
skewY: (e) => rt(Math.atan(e[2])),
|
|
1065
1065
|
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
|
|
1066
1066
|
}, go = (e) => (e = e % 360, e < 0 && (e += 360), e), qr = po, Xr = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Zr = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), bu = {
|
|
1067
1067
|
x: 12,
|
|
@@ -1073,12 +1073,12 @@ const it = (e) => e * 180 / Math.PI, po = (e) => {
|
|
|
1073
1073
|
scaleX: Xr,
|
|
1074
1074
|
scaleY: Zr,
|
|
1075
1075
|
scale: (e) => (Xr(e) + Zr(e)) / 2,
|
|
1076
|
-
rotateX: (e) => go(
|
|
1077
|
-
rotateY: (e) => go(
|
|
1076
|
+
rotateX: (e) => go(rt(Math.atan2(e[6], e[5]))),
|
|
1077
|
+
rotateY: (e) => go(rt(Math.atan2(-e[2], e[0]))),
|
|
1078
1078
|
rotateZ: qr,
|
|
1079
1079
|
rotate: qr,
|
|
1080
|
-
skewX: (e) =>
|
|
1081
|
-
skewY: (e) =>
|
|
1080
|
+
skewX: (e) => rt(Math.atan(e[4])),
|
|
1081
|
+
skewY: (e) => rt(Math.atan(e[1])),
|
|
1082
1082
|
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
|
|
1083
1083
|
};
|
|
1084
1084
|
function yo(e) {
|
|
@@ -1133,7 +1133,7 @@ function $u(e) {
|
|
|
1133
1133
|
o !== void 0 && (t.push([n, o.get()]), o.set(n.startsWith("scale") ? 1 : 0));
|
|
1134
1134
|
}), t;
|
|
1135
1135
|
}
|
|
1136
|
-
const
|
|
1136
|
+
const We = {
|
|
1137
1137
|
// Dimensions
|
|
1138
1138
|
width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n),
|
|
1139
1139
|
height: ({ y: e }, { paddingTop: t = "0", paddingBottom: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n),
|
|
@@ -1145,8 +1145,8 @@ const Ye = {
|
|
|
1145
1145
|
x: (e, { transform: t }) => vo(t, "x"),
|
|
1146
1146
|
y: (e, { transform: t }) => vo(t, "y")
|
|
1147
1147
|
};
|
|
1148
|
-
|
|
1149
|
-
|
|
1148
|
+
We.translateX = We.x;
|
|
1149
|
+
We.translateY = We.y;
|
|
1150
1150
|
const st = /* @__PURE__ */ new Set();
|
|
1151
1151
|
let wo = !1, bo = !1, xo = !1;
|
|
1152
1152
|
function Ws() {
|
|
@@ -1400,7 +1400,7 @@ class _u extends Fu {
|
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
1402
|
const ei = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
|
|
1403
|
-
(
|
|
1403
|
+
(Xe.test(e) || e === "0") && // And it contains numbers and/or colors
|
|
1404
1404
|
!e.startsWith("url("));
|
|
1405
1405
|
function Nu(e) {
|
|
1406
1406
|
const t = e[0];
|
|
@@ -1978,7 +1978,7 @@ function pd(e) {
|
|
|
1978
1978
|
return o !== n && (i *= 100), t + "(" + i + r + ")";
|
|
1979
1979
|
}
|
|
1980
1980
|
const gd = /\b([a-z-]*)\(.*?\)/gu, To = {
|
|
1981
|
-
...
|
|
1981
|
+
...Xe,
|
|
1982
1982
|
getAnimatableNone: (e) => {
|
|
1983
1983
|
const t = e.match(gd);
|
|
1984
1984
|
return t ? t.map(pd).join(" ") : e;
|
|
@@ -2091,7 +2091,7 @@ const gd = /\b([a-z-]*)\(.*?\)/gu, To = {
|
|
|
2091
2091
|
}, aa = (e) => vd[e];
|
|
2092
2092
|
function la(e, t) {
|
|
2093
2093
|
let n = aa(e);
|
|
2094
|
-
return n !== To && (n =
|
|
2094
|
+
return n !== To && (n = Xe), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
|
|
2095
2095
|
}
|
|
2096
2096
|
const wd = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
2097
2097
|
function bd(e, t, n) {
|
|
@@ -2123,7 +2123,7 @@ class xd extends sr {
|
|
|
2123
2123
|
if (this.resolveNoneKeyframes(), !ta.has(o) || t.length !== 2)
|
|
2124
2124
|
return;
|
|
2125
2125
|
const [r, i] = t, s = oi(r), a = oi(i), l = jr(r), c = jr(i);
|
|
2126
|
-
if (l !== c &&
|
|
2126
|
+
if (l !== c && We[o]) {
|
|
2127
2127
|
this.needsMeasurement = !0;
|
|
2128
2128
|
return;
|
|
2129
2129
|
}
|
|
@@ -2133,7 +2133,7 @@ class xd extends sr {
|
|
|
2133
2133
|
const u = t[d];
|
|
2134
2134
|
typeof u == "string" && (t[d] = parseFloat(u));
|
|
2135
2135
|
}
|
|
2136
|
-
else
|
|
2136
|
+
else We[o] && (this.needsMeasurement = !0);
|
|
2137
2137
|
}
|
|
2138
2138
|
resolveNoneKeyframes() {
|
|
2139
2139
|
const { unresolvedKeyframes: t, name: n } = this, o = [];
|
|
@@ -2145,7 +2145,7 @@ class xd extends sr {
|
|
|
2145
2145
|
const { element: t, unresolvedKeyframes: n, name: o } = this;
|
|
2146
2146
|
if (!t || !t.current)
|
|
2147
2147
|
return;
|
|
2148
|
-
o === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin =
|
|
2148
|
+
o === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = We[o](t.measureViewportBox(), window.getComputedStyle(t.current)), n[0] = this.measuredOrigin;
|
|
2149
2149
|
const r = n[n.length - 1];
|
|
2150
2150
|
r !== void 0 && t.getValue(o, r).jump(r, !1);
|
|
2151
2151
|
}
|
|
@@ -2156,7 +2156,7 @@ class xd extends sr {
|
|
|
2156
2156
|
const r = t.getValue(n);
|
|
2157
2157
|
r && r.jump(this.measuredOrigin, !1);
|
|
2158
2158
|
const i = o.length - 1, s = o[i];
|
|
2159
|
-
o[i] =
|
|
2159
|
+
o[i] = We[n](t.measureViewportBox(), window.getComputedStyle(t.current)), s !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = s), this.removedTransforms?.length && this.removedTransforms.forEach(([a, l]) => {
|
|
2160
2160
|
t.getValue(a).set(l);
|
|
2161
2161
|
}), this.resolveNoneKeyframes();
|
|
2162
2162
|
}
|
|
@@ -2278,7 +2278,7 @@ function pa(e) {
|
|
|
2278
2278
|
function kd(e) {
|
|
2279
2279
|
return pa(e) && e.tagName === "svg";
|
|
2280
2280
|
}
|
|
2281
|
-
const Vd = [...sa, re,
|
|
2281
|
+
const Vd = [...sa, re, Xe], Md = (e) => Vd.find(ia(e)), li = () => ({
|
|
2282
2282
|
translate: 0,
|
|
2283
2283
|
scale: 1,
|
|
2284
2284
|
origin: 0,
|
|
@@ -2386,7 +2386,7 @@ class Ld {
|
|
|
2386
2386
|
this.current = t, Ad.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, o) => this.bindToMotionValue(o, n)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (ga.current || Dd(), this.shouldReduceMotion = Po.current), process.env.NODE_ENV !== "production" && qo(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.parent?.addChild(this), this.update(this.props, this.presenceContext);
|
|
2387
2387
|
}
|
|
2388
2388
|
unmount() {
|
|
2389
|
-
this.projection && this.projection.unmount(),
|
|
2389
|
+
this.projection && this.projection.unmount(), qe(this.notifyUpdate), qe(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
|
|
2390
2390
|
for (const t in this.events)
|
|
2391
2391
|
this.events[t].clear();
|
|
2392
2392
|
for (const t in this.features) {
|
|
@@ -2523,7 +2523,7 @@ class Ld {
|
|
|
2523
2523
|
*/
|
|
2524
2524
|
readValue(t, n) {
|
|
2525
2525
|
let o = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
|
|
2526
|
-
return o != null && (typeof o == "string" && (bs(o) || Ss(o)) ? o = parseFloat(o) : !Md(o) &&
|
|
2526
|
+
return o != null && (typeof o == "string" && (bs(o) || Ss(o)) ? o = parseFloat(o) : !Md(o) && Xe.test(n) && (o = la(t, n)), this.setBaseTarget(t, me(o) ? o.get() : o)), me(o) ? o.get() : o;
|
|
2527
2527
|
}
|
|
2528
2528
|
/**
|
|
2529
2529
|
* Set the base target to later animate back to. This is currently
|
|
@@ -2558,7 +2558,7 @@ class Ld {
|
|
|
2558
2558
|
fr.render(this.render);
|
|
2559
2559
|
}
|
|
2560
2560
|
}
|
|
2561
|
-
class
|
|
2561
|
+
class Je {
|
|
2562
2562
|
constructor(t) {
|
|
2563
2563
|
this.isMounted = !1, this.node = t;
|
|
2564
2564
|
}
|
|
@@ -2613,7 +2613,7 @@ function Gn(e) {
|
|
|
2613
2613
|
function ko({ scale: e, scaleX: t, scaleY: n }) {
|
|
2614
2614
|
return !Gn(e) || !Gn(t) || !Gn(n);
|
|
2615
2615
|
}
|
|
2616
|
-
function
|
|
2616
|
+
function nt(e) {
|
|
2617
2617
|
return ko(e) || xa(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
|
|
2618
2618
|
}
|
|
2619
2619
|
function xa(e) {
|
|
@@ -2648,7 +2648,7 @@ function Bd(e, t, n, o = !1) {
|
|
|
2648
2648
|
l && l.props.style && l.props.style.display === "contents" || (o && i.options.layoutScroll && i.scroll && i !== i.root && xt(e, {
|
|
2649
2649
|
x: -i.scroll.offset.x,
|
|
2650
2650
|
y: -i.scroll.offset.y
|
|
2651
|
-
}), s && (t.x *= s.x.scale, t.y *= s.y.scale, Sa(e, s)), o &&
|
|
2651
|
+
}), s && (t.x *= s.x.scale, t.y *= s.y.scale, Sa(e, s)), o && nt(i.latestValues) && xt(e, i.latestValues));
|
|
2652
2652
|
}
|
|
2653
2653
|
t.x < mi && t.x > hi && (t.x = 1), t.y < mi && t.y > hi && (t.y = 1);
|
|
2654
2654
|
}
|
|
@@ -2741,10 +2741,10 @@ const Dt = {
|
|
|
2741
2741
|
}
|
|
2742
2742
|
}, Gd = {
|
|
2743
2743
|
correct: (e, { treeScale: t, projectionDelta: n }) => {
|
|
2744
|
-
const o = e, r =
|
|
2744
|
+
const o = e, r = Xe.parse(e);
|
|
2745
2745
|
if (r.length > 5)
|
|
2746
2746
|
return o;
|
|
2747
|
-
const i =
|
|
2747
|
+
const i = Xe.createTransformer(e), s = typeof r[0] != "number" ? 1 : 0, a = n.x.scale * t.x, l = n.y.scale * t.y;
|
|
2748
2748
|
r[0 + s] /= a, r[1 + s] /= l;
|
|
2749
2749
|
const c = ne(a, l, 0.5);
|
|
2750
2750
|
return typeof r[2 + s] == "number" && (r[2 + s] /= c), typeof r[3 + s] == "number" && (r[3 + s] /= c), i(r);
|
|
@@ -3038,7 +3038,7 @@ function of(e) {
|
|
|
3038
3038
|
function rf(e, t) {
|
|
3039
3039
|
return typeof t == "string" ? t !== e : Array.isArray(t) ? !Ea(t, e) : !1;
|
|
3040
3040
|
}
|
|
3041
|
-
function
|
|
3041
|
+
function et(e = !1) {
|
|
3042
3042
|
return {
|
|
3043
3043
|
isActive: e,
|
|
3044
3044
|
protectedKeys: {},
|
|
@@ -3048,13 +3048,13 @@ function tt(e = !1) {
|
|
|
3048
3048
|
}
|
|
3049
3049
|
function yi() {
|
|
3050
3050
|
return {
|
|
3051
|
-
animate:
|
|
3052
|
-
whileInView:
|
|
3053
|
-
whileHover:
|
|
3054
|
-
whileTap:
|
|
3055
|
-
whileDrag:
|
|
3056
|
-
whileFocus:
|
|
3057
|
-
exit:
|
|
3051
|
+
animate: et(!0),
|
|
3052
|
+
whileInView: et(),
|
|
3053
|
+
whileHover: et(),
|
|
3054
|
+
whileTap: et(),
|
|
3055
|
+
whileDrag: et(),
|
|
3056
|
+
whileFocus: et(),
|
|
3057
|
+
exit: et()
|
|
3058
3058
|
};
|
|
3059
3059
|
}
|
|
3060
3060
|
const Da = 1e-4, sf = 1 - Da, af = 1 + Da, Aa = 0.01, lf = 0 - Aa, cf = 0 + Aa;
|
|
@@ -3166,9 +3166,9 @@ function _a(e, t, n) {
|
|
|
3166
3166
|
function xf(e, t) {
|
|
3167
3167
|
const n = ge.now(), o = ({ timestamp: r }) => {
|
|
3168
3168
|
const i = r - n;
|
|
3169
|
-
i >= t && (
|
|
3169
|
+
i >= t && (qe(o), e(i - t));
|
|
3170
3170
|
};
|
|
3171
|
-
return J.setup(o, !0), () =>
|
|
3171
|
+
return J.setup(o, !0), () => qe(o);
|
|
3172
3172
|
}
|
|
3173
3173
|
function Ut(e, t, n, o = { passive: !0 }) {
|
|
3174
3174
|
return e.addEventListener(t, n, o), () => e.removeEventListener(t, n);
|
|
@@ -3342,7 +3342,7 @@ function Ba({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3342
3342
|
unmount() {
|
|
3343
3343
|
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
|
|
3344
3344
|
const s = this.getStack();
|
|
3345
|
-
s && s.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(),
|
|
3345
|
+
s && s.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), qe(this.updateProjection);
|
|
3346
3346
|
}
|
|
3347
3347
|
// only on the root
|
|
3348
3348
|
blockUpdate() {
|
|
@@ -3444,7 +3444,7 @@ function Ba({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3444
3444
|
if (!r)
|
|
3445
3445
|
return;
|
|
3446
3446
|
const s = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !Fa(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, d = c !== this.prevTransformTemplateValue;
|
|
3447
|
-
s && this.instance && (a ||
|
|
3447
|
+
s && this.instance && (a || nt(this.latestValues) || d) && (r(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
|
|
3448
3448
|
}
|
|
3449
3449
|
measure(s = !0) {
|
|
3450
3450
|
const a = this.measurePageBox();
|
|
@@ -3486,22 +3486,22 @@ function Ba({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3486
3486
|
!a && d.options.layoutScroll && d.scroll && d !== d.root && xt(l, {
|
|
3487
3487
|
x: -d.scroll.offset.x,
|
|
3488
3488
|
y: -d.scroll.offset.y
|
|
3489
|
-
}),
|
|
3489
|
+
}), nt(d.latestValues) && xt(l, d.latestValues);
|
|
3490
3490
|
}
|
|
3491
|
-
return
|
|
3491
|
+
return nt(this.latestValues) && xt(l, this.latestValues), l;
|
|
3492
3492
|
}
|
|
3493
3493
|
removeTransform(s) {
|
|
3494
3494
|
const a = se();
|
|
3495
3495
|
Ve(a, s);
|
|
3496
3496
|
for (let l = 0; l < this.path.length; l++) {
|
|
3497
3497
|
const c = this.path[l];
|
|
3498
|
-
if (!c.instance || !
|
|
3498
|
+
if (!c.instance || !nt(c.latestValues))
|
|
3499
3499
|
continue;
|
|
3500
3500
|
ko(c.latestValues) && c.updateSnapshot();
|
|
3501
3501
|
const d = se(), u = c.measurePageBox();
|
|
3502
3502
|
Ve(d, u), Ci(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, d);
|
|
3503
3503
|
}
|
|
3504
|
-
return
|
|
3504
|
+
return nt(this.latestValues) && Ci(a, this.latestValues), a;
|
|
3505
3505
|
}
|
|
3506
3506
|
setTargetDelta(s) {
|
|
3507
3507
|
this.targetDelta = s, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
@@ -3591,7 +3591,7 @@ function Ba({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3591
3591
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
3592
3592
|
}
|
|
3593
3593
|
startAnimation(s) {
|
|
3594
|
-
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (
|
|
3594
|
+
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (qe(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = J.update(() => {
|
|
3595
3595
|
yn.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = Ct(0)), this.currentAnimation = Sf(this.motionValue, [0, 1e3], {
|
|
3596
3596
|
...s,
|
|
3597
3597
|
velocity: 0,
|
|
@@ -3693,7 +3693,7 @@ function Ba({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3693
3693
|
}
|
|
3694
3694
|
const c = this.getLead();
|
|
3695
3695
|
if (!this.projectionDelta || !this.layout || !c.target) {
|
|
3696
|
-
this.options.layoutId && (s.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, s.pointerEvents = gn(a?.pointerEvents) || ""), this.hasProjected && !
|
|
3696
|
+
this.options.layoutId && (s.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, s.pointerEvents = gn(a?.pointerEvents) || ""), this.hasProjected && !nt(this.latestValues) && (s.transform = l ? l({}, "") : "none", this.hasProjected = !1);
|
|
3697
3697
|
return;
|
|
3698
3698
|
}
|
|
3699
3699
|
s.visibility = "";
|
|
@@ -4398,7 +4398,7 @@ function bh(e, t) {
|
|
|
4398
4398
|
const xh = (e, t) => t.isSVG ?? br(e) ? new Jd(t) : new Kd(t, {
|
|
4399
4399
|
allowProjection: e !== Ho
|
|
4400
4400
|
});
|
|
4401
|
-
class Sh extends
|
|
4401
|
+
class Sh extends Je {
|
|
4402
4402
|
/**
|
|
4403
4403
|
* We dynamically generate the AnimationState manager as it contains a reference
|
|
4404
4404
|
* to the underlying animation library. We only want to load that if we load this,
|
|
@@ -4426,7 +4426,7 @@ class Sh extends Qe {
|
|
|
4426
4426
|
}
|
|
4427
4427
|
}
|
|
4428
4428
|
let Ch = 0;
|
|
4429
|
-
class Rh extends
|
|
4429
|
+
class Rh extends Je {
|
|
4430
4430
|
constructor() {
|
|
4431
4431
|
super(...arguments), this.id = Ch++;
|
|
4432
4432
|
}
|
|
@@ -4553,7 +4553,7 @@ class Ja {
|
|
|
4553
4553
|
this.handlers = t;
|
|
4554
4554
|
}
|
|
4555
4555
|
end() {
|
|
4556
|
-
this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(),
|
|
4556
|
+
this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), qe(this.updatePoint);
|
|
4557
4557
|
}
|
|
4558
4558
|
}
|
|
4559
4559
|
function qn(e, t) {
|
|
@@ -4880,7 +4880,7 @@ function Nh(e, t = 10) {
|
|
|
4880
4880
|
let n = null;
|
|
4881
4881
|
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
|
|
4882
4882
|
}
|
|
4883
|
-
class Bh extends
|
|
4883
|
+
class Bh extends Je {
|
|
4884
4884
|
constructor(t) {
|
|
4885
4885
|
super(t), this.removeGroupControls = Te, this.removeListeners = Te, this.controls = new _h(t);
|
|
4886
4886
|
}
|
|
@@ -4899,7 +4899,7 @@ class Bh extends Qe {
|
|
|
4899
4899
|
const es = (e) => (t, n) => {
|
|
4900
4900
|
e && J.postRender(() => e(t, n));
|
|
4901
4901
|
};
|
|
4902
|
-
class zh extends
|
|
4902
|
+
class zh extends Je {
|
|
4903
4903
|
constructor() {
|
|
4904
4904
|
super(...arguments), this.removePointerDownListener = Te;
|
|
4905
4905
|
}
|
|
@@ -4991,7 +4991,7 @@ function ts(e, t, n) {
|
|
|
4991
4991
|
const r = "onHover" + n, i = o[r];
|
|
4992
4992
|
i && J.postRender(() => i(t, Jt(t)));
|
|
4993
4993
|
}
|
|
4994
|
-
class jh extends
|
|
4994
|
+
class jh extends Je {
|
|
4995
4995
|
mount() {
|
|
4996
4996
|
const { current: t } = this.node;
|
|
4997
4997
|
t && (this.unmount = Rd(t, (n, o) => (ts(this.node, o, "Start"), (r) => ts(this.node, r, "End"))));
|
|
@@ -4999,7 +4999,7 @@ class jh extends Qe {
|
|
|
4999
4999
|
unmount() {
|
|
5000
5000
|
}
|
|
5001
5001
|
}
|
|
5002
|
-
class Gh extends
|
|
5002
|
+
class Gh extends Je {
|
|
5003
5003
|
constructor() {
|
|
5004
5004
|
super(...arguments), this.isActive = !1;
|
|
5005
5005
|
}
|
|
@@ -5029,7 +5029,7 @@ function ns(e, t, n) {
|
|
|
5029
5029
|
const r = "onTap" + (n === "End" ? "" : n), i = o[r];
|
|
5030
5030
|
i && J.postRender(() => i(t, Jt(t)));
|
|
5031
5031
|
}
|
|
5032
|
-
class Uh extends
|
|
5032
|
+
class Uh extends Je {
|
|
5033
5033
|
mount() {
|
|
5034
5034
|
const { current: t } = this.node;
|
|
5035
5035
|
t && (this.unmount = Pd(t, (n, o) => (ns(this.node, o, "Start"), (r, { success: i }) => ns(this.node, r, i ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
|
@@ -5059,7 +5059,7 @@ const Xh = {
|
|
|
5059
5059
|
some: 0,
|
|
5060
5060
|
all: 1
|
|
5061
5061
|
};
|
|
5062
|
-
class Zh extends
|
|
5062
|
+
class Zh extends Je {
|
|
5063
5063
|
constructor() {
|
|
5064
5064
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
5065
5065
|
}
|
|
@@ -5258,7 +5258,7 @@ const Qh = {
|
|
|
5258
5258
|
color: var(--color-main-blue-primary);
|
|
5259
5259
|
margin: 0 auto;
|
|
5260
5260
|
text-align: center;
|
|
5261
|
-
`,
|
|
5261
|
+
`, Wv = ({
|
|
5262
5262
|
message: e = "Loading...",
|
|
5263
5263
|
color: t = "primary",
|
|
5264
5264
|
variant: n = "rotate"
|
|
@@ -5280,7 +5280,7 @@ const Qh = {
|
|
|
5280
5280
|
align-items: center;
|
|
5281
5281
|
justify-content: center;
|
|
5282
5282
|
padding: 3rem 1rem;
|
|
5283
|
-
`,
|
|
5283
|
+
`, Yv = ({
|
|
5284
5284
|
message: e,
|
|
5285
5285
|
color: t = "primary",
|
|
5286
5286
|
variant: n = "rotate"
|
|
@@ -5484,7 +5484,7 @@ const Qh = {
|
|
|
5484
5484
|
color: ${t || "var(--color-main-blue-primary)"};
|
|
5485
5485
|
border: 1px solid ${t || "var(--color-main-blue-primary)"};
|
|
5486
5486
|
` : ""}
|
|
5487
|
-
`,
|
|
5487
|
+
`, qv = ({
|
|
5488
5488
|
children: e,
|
|
5489
5489
|
variant: t = "neutral",
|
|
5490
5490
|
size: n = "md",
|
|
@@ -5507,7 +5507,7 @@ const Qh = {
|
|
|
5507
5507
|
width: ${n || "1px"};
|
|
5508
5508
|
height: ${t || "100%"};
|
|
5509
5509
|
`}
|
|
5510
|
-
`,
|
|
5510
|
+
`, Xv = ({
|
|
5511
5511
|
orientation: e = "horizontal",
|
|
5512
5512
|
color: t = "var(--color-dark-300)",
|
|
5513
5513
|
length: n,
|
|
@@ -5788,7 +5788,7 @@ const ve = new Em(), Dm = (e, t) => {
|
|
|
5788
5788
|
...t,
|
|
5789
5789
|
id: n
|
|
5790
5790
|
}), n;
|
|
5791
|
-
}, Am = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", Fm = Dm, Im = () => ve.toasts, Lm = () => ve.getActiveToasts(),
|
|
5791
|
+
}, Am = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", Fm = Dm, Im = () => ve.toasts, Lm = () => ve.getActiveToasts(), Zv = Object.assign(Fm, {
|
|
5792
5792
|
success: ve.success,
|
|
5793
5793
|
info: ve.info,
|
|
5794
5794
|
warning: ve.warning,
|
|
@@ -6001,21 +6001,21 @@ const Um = (e) => {
|
|
|
6001
6001
|
x: 0,
|
|
6002
6002
|
y: 0
|
|
6003
6003
|
};
|
|
6004
|
-
const Nr = (
|
|
6004
|
+
const Nr = (Qe) => 1 / (1.5 + Math.abs(Qe) / 20);
|
|
6005
6005
|
if (ie === "y") {
|
|
6006
6006
|
if (Pe.includes("top") || Pe.includes("bottom"))
|
|
6007
6007
|
if (Pe.includes("top") && ue < 0 || Pe.includes("bottom") && ue > 0)
|
|
6008
6008
|
ke.y = ue;
|
|
6009
6009
|
else {
|
|
6010
|
-
const
|
|
6011
|
-
ke.y = Math.abs(
|
|
6010
|
+
const Qe = ue * Nr(ue);
|
|
6011
|
+
ke.y = Math.abs(Qe) < Math.abs(ue) ? Qe : ue;
|
|
6012
6012
|
}
|
|
6013
6013
|
} else if (ie === "x" && (Pe.includes("left") || Pe.includes("right")))
|
|
6014
6014
|
if (Pe.includes("left") && Ce < 0 || Pe.includes("right") && Ce > 0)
|
|
6015
6015
|
ke.x = Ce;
|
|
6016
6016
|
else {
|
|
6017
|
-
const
|
|
6018
|
-
ke.x = Math.abs(
|
|
6017
|
+
const Qe = Ce * Nr(Ce);
|
|
6018
|
+
ke.x = Math.abs(Qe) < Math.abs(Ce) ? Qe : Ce;
|
|
6019
6019
|
}
|
|
6020
6020
|
(Math.abs(ke.x) > 0 || Math.abs(ke.y) > 0) && ht(!0), (fe = _e.current) == null || fe.style.setProperty("--swipe-amount-x", `${ke.x}px`), (be = _e.current) == null || be.style.setProperty("--swipe-amount-y", `${ke.y}px`);
|
|
6021
6021
|
}
|
|
@@ -6265,7 +6265,7 @@ const Wm = /* @__PURE__ */ C.forwardRef(function(t, n) {
|
|
|
6265
6265
|
});
|
|
6266
6266
|
})) : null;
|
|
6267
6267
|
}));
|
|
6268
|
-
}),
|
|
6268
|
+
}), Jv = ({ spinnerColor: e = "orange", ...t }) => /* @__PURE__ */ g(
|
|
6269
6269
|
Wm,
|
|
6270
6270
|
{
|
|
6271
6271
|
position: "bottom-center",
|
|
@@ -6368,7 +6368,7 @@ const Wm = /* @__PURE__ */ C.forwardRef(function(t, n) {
|
|
|
6368
6368
|
${({ $clickable: e }) => e && Xm}
|
|
6369
6369
|
${({ $disabled: e }) => e && Zm}
|
|
6370
6370
|
${({ $size: e }) => qm[e]}
|
|
6371
|
-
`,
|
|
6371
|
+
`, Qv = ({
|
|
6372
6372
|
variant: e = "elevated",
|
|
6373
6373
|
size: t = "md",
|
|
6374
6374
|
disabled: n = !1,
|
|
@@ -6406,16 +6406,16 @@ const Wm = /* @__PURE__ */ C.forwardRef(function(t, n) {
|
|
|
6406
6406
|
border-bottom: 1px solid var(--color-divider);
|
|
6407
6407
|
padding-bottom: 0.5rem;
|
|
6408
6408
|
`}
|
|
6409
|
-
`,
|
|
6409
|
+
`, e1 = ({ children: e, showDivider: t = !1, ...n }) => /* @__PURE__ */ g(Qm, { $showDivider: t, ...n, children: e }), ep = x.div`
|
|
6410
6410
|
flex: 1;
|
|
6411
6411
|
display: flex;
|
|
6412
6412
|
flex-direction: column;
|
|
6413
|
-
`,
|
|
6413
|
+
`, t1 = ({ children: e, showDivider: t = !1, ...n }) => /* @__PURE__ */ g(ep, { $showDivider: t, ...n, children: e }), tp = x.div`
|
|
6414
6414
|
display: flex;
|
|
6415
6415
|
align-items: center;
|
|
6416
6416
|
align-self: stretch;
|
|
6417
6417
|
gap: 0.5rem;
|
|
6418
|
-
`,
|
|
6418
|
+
`, n1 = ({ children: e, ...t }) => /* @__PURE__ */ g(tp, { ...t, children: e }), np = {
|
|
6419
6419
|
xs: b`
|
|
6420
6420
|
${A[12]}
|
|
6421
6421
|
`,
|
|
@@ -6495,7 +6495,7 @@ const Wm = /* @__PURE__ */ C.forwardRef(function(t, n) {
|
|
|
6495
6495
|
"checkbox",
|
|
6496
6496
|
"radio",
|
|
6497
6497
|
"pin"
|
|
6498
|
-
], lp = (e) => ap.includes(e),
|
|
6498
|
+
], lp = (e) => ap.includes(e), tt = (e) => e.map((t) => ({
|
|
6499
6499
|
name: t.name || "",
|
|
6500
6500
|
label: t.label || "",
|
|
6501
6501
|
type: t.type && lp(t.type) ? t.type : "text",
|
|
@@ -6513,13 +6513,13 @@ const Wm = /* @__PURE__ */ C.forwardRef(function(t, n) {
|
|
|
6513
6513
|
inputClassName: t.inputClassName,
|
|
6514
6514
|
labelClassName: t.labelClassName,
|
|
6515
6515
|
messageErrorClassName: t.messageErrorClassName
|
|
6516
|
-
})),
|
|
6516
|
+
})), o1 = (e) => e.map((t) => ({
|
|
6517
6517
|
value: t.value,
|
|
6518
6518
|
label: t.label
|
|
6519
|
-
})),
|
|
6520
|
-
text: (e, t, n) =>
|
|
6521
|
-
email: (e, t, n) =>
|
|
6522
|
-
password: (e, t, n) =>
|
|
6519
|
+
})), r1 = {
|
|
6520
|
+
text: (e, t, n) => tt([{ name: e, label: t, type: "text", ...n }])[0],
|
|
6521
|
+
email: (e, t, n) => tt([{ name: e, label: t, type: "email", required: !0, ...n }])[0],
|
|
6522
|
+
password: (e, t, n) => tt([
|
|
6523
6523
|
{
|
|
6524
6524
|
name: e,
|
|
6525
6525
|
label: t,
|
|
@@ -6535,13 +6535,13 @@ const Wm = /* @__PURE__ */ C.forwardRef(function(t, n) {
|
|
|
6535
6535
|
...n
|
|
6536
6536
|
}
|
|
6537
6537
|
])[0],
|
|
6538
|
-
select: (e, t, n, o) =>
|
|
6538
|
+
select: (e, t, n, o) => tt([
|
|
6539
6539
|
{ name: e, label: t, type: "select", options: n, required: !0, ...o }
|
|
6540
6540
|
])[0],
|
|
6541
|
-
checkbox: (e, t, n) =>
|
|
6541
|
+
checkbox: (e, t, n) => tt([
|
|
6542
6542
|
{ name: e, label: t, type: "checkbox", checkboxLabel: t, ...n }
|
|
6543
6543
|
])[0],
|
|
6544
|
-
radio: (e, t, n, o) =>
|
|
6544
|
+
radio: (e, t, n, o) => tt([
|
|
6545
6545
|
{
|
|
6546
6546
|
name: e,
|
|
6547
6547
|
label: t,
|
|
@@ -6552,7 +6552,7 @@ const Wm = /* @__PURE__ */ C.forwardRef(function(t, n) {
|
|
|
6552
6552
|
...o
|
|
6553
6553
|
}
|
|
6554
6554
|
])[0],
|
|
6555
|
-
pin: (e, t, n = 6, o) =>
|
|
6555
|
+
pin: (e, t, n = 6, o) => tt([
|
|
6556
6556
|
{
|
|
6557
6557
|
name: e,
|
|
6558
6558
|
label: t,
|
|
@@ -6569,7 +6569,7 @@ const Wm = /* @__PURE__ */ C.forwardRef(function(t, n) {
|
|
|
6569
6569
|
...o
|
|
6570
6570
|
}
|
|
6571
6571
|
])[0]
|
|
6572
|
-
},
|
|
6572
|
+
}, i1 = (e, t, n, o, r, i, s, a) => {
|
|
6573
6573
|
const { field: l, ...c } = t, d = {
|
|
6574
6574
|
...l,
|
|
6575
6575
|
...c,
|
|
@@ -7580,7 +7580,7 @@ const Gp = x.div`
|
|
|
7580
7580
|
&:hover {
|
|
7581
7581
|
background-color: var(--color-main-alternative-secondary);
|
|
7582
7582
|
}
|
|
7583
|
-
`, rg = x(
|
|
7583
|
+
`, rg = x(it)`
|
|
7584
7584
|
font-weight: 500;
|
|
7585
7585
|
overflow: hidden;
|
|
7586
7586
|
text-overflow: ellipsis;
|
|
@@ -7699,7 +7699,7 @@ const Gp = x.div`
|
|
|
7699
7699
|
children: /* @__PURE__ */ g(il, {})
|
|
7700
7700
|
}
|
|
7701
7701
|
)
|
|
7702
|
-
] }, `${o.name}-${r}`)) }),
|
|
7702
|
+
] }, `${o.name}-${r}`)) }), s1 = ({
|
|
7703
7703
|
variant: e = "default",
|
|
7704
7704
|
multiple: t = !1,
|
|
7705
7705
|
maxFileSize: n = 10,
|
|
@@ -7761,7 +7761,7 @@ const Gp = x.div`
|
|
|
7761
7761
|
/* @__PURE__ */ g("strong", { children: "Click to upload" }),
|
|
7762
7762
|
" or drag and drop"
|
|
7763
7763
|
] }),
|
|
7764
|
-
r && !j && /* @__PURE__ */ g(
|
|
7764
|
+
r && !j && /* @__PURE__ */ g(it, { size: 14, color: "var(--color-main-grey)", children: r })
|
|
7765
7765
|
]
|
|
7766
7766
|
}
|
|
7767
7767
|
),
|
|
@@ -8137,7 +8137,7 @@ const Sg = (e, t, n, o, r, i, s = "text", a, l) => {
|
|
|
8137
8137
|
r[h].current?.focus();
|
|
8138
8138
|
const m = u.join("");
|
|
8139
8139
|
u.every((p) => p !== "") && u.length >= d && l?.(m);
|
|
8140
|
-
}, $g = (e) => Array(e).fill(null).map(() => hc()),
|
|
8140
|
+
}, $g = (e) => Array(e).fill(null).map(() => hc()), a1 = (e, t, n = "text") => !(e.length !== t || n === "number" && !/^\d+$/.test(e)), Tg = x.div`
|
|
8141
8141
|
display: flex;
|
|
8142
8142
|
gap: 8px;
|
|
8143
8143
|
align-items: center;
|
|
@@ -8654,7 +8654,7 @@ const Lg = x.div`
|
|
|
8654
8654
|
}
|
|
8655
8655
|
)
|
|
8656
8656
|
] })
|
|
8657
|
-
),
|
|
8657
|
+
), l1 = ({
|
|
8658
8658
|
id: e,
|
|
8659
8659
|
name: t,
|
|
8660
8660
|
label: n,
|
|
@@ -8776,7 +8776,7 @@ const Lg = x.div`
|
|
|
8776
8776
|
duration: 0.3,
|
|
8777
8777
|
ease: "easeInOut"
|
|
8778
8778
|
}
|
|
8779
|
-
},
|
|
8779
|
+
}, c1 = {
|
|
8780
8780
|
fromBottom: {
|
|
8781
8781
|
initial: { opacity: 0, y: 20 },
|
|
8782
8782
|
animate: { opacity: 1, y: 0 },
|
|
@@ -9087,7 +9087,7 @@ const Lg = x.div`
|
|
|
9087
9087
|
...s,
|
|
9088
9088
|
children: r
|
|
9089
9089
|
}
|
|
9090
|
-
),
|
|
9090
|
+
), u1 = ({
|
|
9091
9091
|
isOpen: e,
|
|
9092
9092
|
onAccept: t,
|
|
9093
9093
|
onCancel: n,
|
|
@@ -9131,7 +9131,7 @@ const Lg = x.div`
|
|
|
9131
9131
|
children: [
|
|
9132
9132
|
/* @__PURE__ */ g(Yg, { showDivider: !0, className: p, children: /* @__PURE__ */ g(vc, { id: "tac-title", size: 20, children: o }) }),
|
|
9133
9133
|
/* @__PURE__ */ E(Xg, { padded: !0, showBottomDivider: !0, className: v, children: [
|
|
9134
|
-
r && /* @__PURE__ */ g(
|
|
9134
|
+
r && /* @__PURE__ */ g(it, { id: "tac-subtitle", size: 16, children: r }),
|
|
9135
9135
|
i,
|
|
9136
9136
|
s
|
|
9137
9137
|
] }),
|
|
@@ -9386,7 +9386,7 @@ const wl = He(void 0), a0 = ({ children: e }) => {
|
|
|
9386
9386
|
align-items: center;
|
|
9387
9387
|
gap: 0.75rem;
|
|
9388
9388
|
min-width: 0;
|
|
9389
|
-
`, f0 = x(
|
|
9389
|
+
`, f0 = x(it)`
|
|
9390
9390
|
font-weight: ${({ $level: e }) => e === 0 ? 600 : 500};
|
|
9391
9391
|
color: var(--color-main-blue-primary);
|
|
9392
9392
|
white-space: nowrap;
|
|
@@ -9832,7 +9832,7 @@ const R0 = {
|
|
|
9832
9832
|
}
|
|
9833
9833
|
);
|
|
9834
9834
|
V0.displayName = "Link";
|
|
9835
|
-
function
|
|
9835
|
+
function d1() {
|
|
9836
9836
|
return {
|
|
9837
9837
|
accessor: (e, t) => typeof e == "function" ? {
|
|
9838
9838
|
...t,
|
|
@@ -9845,14 +9845,14 @@ function u1() {
|
|
|
9845
9845
|
group: (e) => e
|
|
9846
9846
|
};
|
|
9847
9847
|
}
|
|
9848
|
-
function
|
|
9848
|
+
function Ye(e, t) {
|
|
9849
9849
|
return typeof e == "function" ? e(t) : e;
|
|
9850
9850
|
}
|
|
9851
9851
|
function xe(e, t) {
|
|
9852
9852
|
return (n) => {
|
|
9853
9853
|
t.setState((o) => ({
|
|
9854
9854
|
...o,
|
|
9855
|
-
[e]:
|
|
9855
|
+
[e]: Ye(n, o[e])
|
|
9856
9856
|
}));
|
|
9857
9857
|
};
|
|
9858
9858
|
}
|
|
@@ -10235,7 +10235,7 @@ const L0 = {
|
|
|
10235
10235
|
return (n = (o = t.getState().columnFilters) == null ? void 0 : o.findIndex((r) => r.id === e.id)) != null ? n : -1;
|
|
10236
10236
|
}, e.setFilterValue = (n) => {
|
|
10237
10237
|
t.setColumnFilters((o) => {
|
|
10238
|
-
const r = e.getFilterFn(), i = o?.find((d) => d.id === e.id), s =
|
|
10238
|
+
const r = e.getFilterFn(), i = o?.find((d) => d.id === e.id), s = Ye(n, i ? i.value : void 0);
|
|
10239
10239
|
if (ds(r, s, e)) {
|
|
10240
10240
|
var a;
|
|
10241
10241
|
return (a = o?.filter((d) => d.id !== e.id)) != null ? a : [];
|
|
@@ -10259,7 +10259,7 @@ const L0 = {
|
|
|
10259
10259
|
e.setColumnFilters = (t) => {
|
|
10260
10260
|
const n = e.getAllLeafColumns(), o = (r) => {
|
|
10261
10261
|
var i;
|
|
10262
|
-
return (i =
|
|
10262
|
+
return (i = Ye(t, r)) == null ? void 0 : i.filter((s) => {
|
|
10263
10263
|
const a = n.find((l) => l.id === s.id);
|
|
10264
10264
|
if (a) {
|
|
10265
10265
|
const l = a.getFilterFn();
|
|
@@ -10884,14 +10884,14 @@ const ey = {
|
|
|
10884
10884
|
});
|
|
10885
10885
|
}
|
|
10886
10886
|
}, e.setPagination = (o) => {
|
|
10887
|
-
const r = (i) =>
|
|
10887
|
+
const r = (i) => Ye(o, i);
|
|
10888
10888
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
|
|
10889
10889
|
}, e.resetPagination = (o) => {
|
|
10890
10890
|
var r;
|
|
10891
10891
|
e.setPagination(o ? ro() : (r = e.initialState.pagination) != null ? r : ro());
|
|
10892
10892
|
}, e.setPageIndex = (o) => {
|
|
10893
10893
|
e.setPagination((r) => {
|
|
10894
|
-
let i =
|
|
10894
|
+
let i = Ye(o, r.pageIndex);
|
|
10895
10895
|
const s = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
|
|
10896
10896
|
return i = Math.max(0, Math.min(i, s)), {
|
|
10897
10897
|
...r,
|
|
@@ -10906,7 +10906,7 @@ const ey = {
|
|
|
10906
10906
|
e.setPageSize(o ? Lo : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : Lo);
|
|
10907
10907
|
}, e.setPageSize = (o) => {
|
|
10908
10908
|
e.setPagination((r) => {
|
|
10909
|
-
const i = Math.max(1,
|
|
10909
|
+
const i = Math.max(1, Ye(o, r.pageSize)), s = r.pageSize * r.pageIndex, a = Math.floor(s / i);
|
|
10910
10910
|
return {
|
|
10911
10911
|
...r,
|
|
10912
10912
|
pageIndex: a,
|
|
@@ -10915,7 +10915,7 @@ const ey = {
|
|
|
10915
10915
|
});
|
|
10916
10916
|
}, e.setPageCount = (o) => e.setPagination((r) => {
|
|
10917
10917
|
var i;
|
|
10918
|
-
let s =
|
|
10918
|
+
let s = Ye(o, (i = e.options.pageCount) != null ? i : -1);
|
|
10919
10919
|
return typeof s == "number" && (s = Math.max(-1, s)), {
|
|
10920
10920
|
...r,
|
|
10921
10921
|
pageCount: s
|
|
@@ -11196,14 +11196,14 @@ function No(e, t, n) {
|
|
|
11196
11196
|
}
|
|
11197
11197
|
}), r ? "all" : i ? "some" : !1;
|
|
11198
11198
|
}
|
|
11199
|
-
const Bo = /([0-9]+)/gm, sy = (e, t, n) => Dl(
|
|
11199
|
+
const Bo = /([0-9]+)/gm, sy = (e, t, n) => Dl(Ze(e.getValue(n)).toLowerCase(), Ze(t.getValue(n)).toLowerCase()), ay = (e, t, n) => Dl(Ze(e.getValue(n)), Ze(t.getValue(n))), ly = (e, t, n) => Vr(Ze(e.getValue(n)).toLowerCase(), Ze(t.getValue(n)).toLowerCase()), cy = (e, t, n) => Vr(Ze(e.getValue(n)), Ze(t.getValue(n))), uy = (e, t, n) => {
|
|
11200
11200
|
const o = e.getValue(n), r = t.getValue(n);
|
|
11201
11201
|
return o > r ? 1 : o < r ? -1 : 0;
|
|
11202
11202
|
}, dy = (e, t, n) => Vr(e.getValue(n), t.getValue(n));
|
|
11203
11203
|
function Vr(e, t) {
|
|
11204
11204
|
return e === t ? 0 : e > t ? 1 : -1;
|
|
11205
11205
|
}
|
|
11206
|
-
function
|
|
11206
|
+
function Ze(e) {
|
|
11207
11207
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
11208
11208
|
}
|
|
11209
11209
|
function Dl(e, t) {
|
|
@@ -11383,7 +11383,7 @@ function my(e) {
|
|
|
11383
11383
|
r.setState(r.initialState);
|
|
11384
11384
|
},
|
|
11385
11385
|
setOptions: (f) => {
|
|
11386
|
-
const h =
|
|
11386
|
+
const h = Ye(f, r.options);
|
|
11387
11387
|
r.options = s(h);
|
|
11388
11388
|
},
|
|
11389
11389
|
getState: () => r.options.state,
|
|
@@ -11918,7 +11918,7 @@ function Fy(e, t) {
|
|
|
11918
11918
|
const n = t.toLowerCase().trim();
|
|
11919
11919
|
return e.filter((o) => o.toLowerCase().includes(n));
|
|
11920
11920
|
}
|
|
11921
|
-
function
|
|
11921
|
+
function f1(e, t, n) {
|
|
11922
11922
|
const o = {};
|
|
11923
11923
|
return e.forEach((r, i) => {
|
|
11924
11924
|
let s;
|
|
@@ -11928,7 +11928,7 @@ function d1(e, t, n) {
|
|
|
11928
11928
|
}
|
|
11929
11929
|
}), o;
|
|
11930
11930
|
}
|
|
11931
|
-
function
|
|
11931
|
+
function h1(e, t) {
|
|
11932
11932
|
const n = e.find((o) => o.id === t);
|
|
11933
11933
|
return n ? n.value?.length > 0 : !1;
|
|
11934
11934
|
}
|
|
@@ -11936,7 +11936,7 @@ function Iy(e, t) {
|
|
|
11936
11936
|
const n = e.find((o) => o.id === t);
|
|
11937
11937
|
return n ? n.value || [] : [];
|
|
11938
11938
|
}
|
|
11939
|
-
function
|
|
11939
|
+
function m1(e) {
|
|
11940
11940
|
return e.reduce((t, n) => {
|
|
11941
11941
|
const o = n.value;
|
|
11942
11942
|
return t + (o?.length || 0);
|
|
@@ -12238,17 +12238,14 @@ const Gy = (e) => {
|
|
|
12238
12238
|
${A[16]}
|
|
12239
12239
|
`
|
|
12240
12240
|
}, qy = x.td`
|
|
12241
|
-
min-width: 0;
|
|
12242
|
-
max-width: ${({ $width: e }) => e ? typeof e == "number" ? `${e}px` : e : "auto"};
|
|
12243
|
-
|
|
12244
12241
|
${({ $width: e }) => e ? b`
|
|
12245
12242
|
min-width: ${typeof e == "number" ? `${e}px` : e};
|
|
12246
|
-
max-width: ${typeof e == "number" ? `${e}px` : e};
|
|
12247
12243
|
width: ${typeof e == "number" ? `${e}px` : e};
|
|
12248
12244
|
` : b`
|
|
12249
12245
|
min-width: 0;
|
|
12250
12246
|
width: auto;
|
|
12251
12247
|
`}
|
|
12248
|
+
max-width: 100%;
|
|
12252
12249
|
|
|
12253
12250
|
vertical-align: middle;
|
|
12254
12251
|
color: var(--color-main-blue-primary);
|
|
@@ -12483,7 +12480,7 @@ const ev = Tn(Qy), tv = gs`
|
|
|
12483
12480
|
div {
|
|
12484
12481
|
right: 10%;
|
|
12485
12482
|
}
|
|
12486
|
-
`,
|
|
12483
|
+
`, p1 = ({
|
|
12487
12484
|
onPageChange: e,
|
|
12488
12485
|
onPerPageChange: t,
|
|
12489
12486
|
perPage: n = 10,
|
|
@@ -12757,7 +12754,7 @@ function mv(e) {
|
|
|
12757
12754
|
t[n.id] = n.desc ? "desc" : "asc";
|
|
12758
12755
|
return t;
|
|
12759
12756
|
}
|
|
12760
|
-
function
|
|
12757
|
+
function g1(e) {
|
|
12761
12758
|
return Object.entries(e).map(([t, n]) => ({
|
|
12762
12759
|
id: t,
|
|
12763
12760
|
desc: n === "desc"
|
|
@@ -12766,11 +12763,11 @@ function p1(e) {
|
|
|
12766
12763
|
function pv(e) {
|
|
12767
12764
|
return e.length === 0 ? "" : JSON.stringify(mv(e));
|
|
12768
12765
|
}
|
|
12769
|
-
function
|
|
12766
|
+
function y1(e) {
|
|
12770
12767
|
const t = new URLSearchParams();
|
|
12771
12768
|
return e.sorting && e.sorting.length > 0 && t.append("sorts", pv(e.sorting)), e.perPage && t.append("perPage", e.perPage.toString()), e.genericSearch && t.append("genericSearch", e.genericSearch), e.filters && Object.keys(e.filters).length > 0 && t.append("filters", JSON.stringify(e.filters)), t;
|
|
12772
12769
|
}
|
|
12773
|
-
const
|
|
12770
|
+
const v1 = ({
|
|
12774
12771
|
data: e,
|
|
12775
12772
|
columns: t,
|
|
12776
12773
|
initialPage: n = 1,
|
|
@@ -12841,21 +12838,21 @@ function gv(e) {
|
|
|
12841
12838
|
function yv(e) {
|
|
12842
12839
|
return JSON.stringify(gv(e));
|
|
12843
12840
|
}
|
|
12844
|
-
function
|
|
12841
|
+
function w1(e, t = ",") {
|
|
12845
12842
|
const n = {};
|
|
12846
12843
|
return e.forEach((o) => {
|
|
12847
12844
|
const r = o.value;
|
|
12848
12845
|
r && r.length > 0 && (n[`filter[${o.id}]`] = r.join(t));
|
|
12849
12846
|
}), n;
|
|
12850
12847
|
}
|
|
12851
|
-
function
|
|
12848
|
+
function b1(e) {
|
|
12852
12849
|
const t = {};
|
|
12853
12850
|
return e.forEach((n) => {
|
|
12854
12851
|
const o = n.value;
|
|
12855
12852
|
o && o.length > 0 && (t[`filter[${n.id}]`] = o);
|
|
12856
12853
|
}), t;
|
|
12857
12854
|
}
|
|
12858
|
-
function
|
|
12855
|
+
function x1({
|
|
12859
12856
|
filters: e,
|
|
12860
12857
|
sorts: t,
|
|
12861
12858
|
page: n,
|
|
@@ -12868,7 +12865,7 @@ function b1({
|
|
|
12868
12865
|
}
|
|
12869
12866
|
return e && e.length > 0 && (r.filters = yv(e)), r;
|
|
12870
12867
|
}
|
|
12871
|
-
function
|
|
12868
|
+
function S1(e, t = ",") {
|
|
12872
12869
|
const n = typeof e == "string" ? new URLSearchParams(e) : e, o = [];
|
|
12873
12870
|
return n.forEach((r, i) => {
|
|
12874
12871
|
const s = i.match(/^filter\[(.+)\]$/);
|
|
@@ -12878,7 +12875,7 @@ function x1(e, t = ",") {
|
|
|
12878
12875
|
}
|
|
12879
12876
|
}), o;
|
|
12880
12877
|
}
|
|
12881
|
-
function
|
|
12878
|
+
function C1(e) {
|
|
12882
12879
|
try {
|
|
12883
12880
|
const t = JSON.parse(e);
|
|
12884
12881
|
return Object.entries(t).map(([n, o]) => ({ id: n, value: o }));
|
|
@@ -12886,7 +12883,7 @@ function S1(e) {
|
|
|
12886
12883
|
return [];
|
|
12887
12884
|
}
|
|
12888
12885
|
}
|
|
12889
|
-
function
|
|
12886
|
+
function R1(...e) {
|
|
12890
12887
|
const t = /* @__PURE__ */ new Map();
|
|
12891
12888
|
return e.forEach((n) => {
|
|
12892
12889
|
n.forEach((o) => {
|
|
@@ -12920,7 +12917,19 @@ const vv = x.div`
|
|
|
12920
12917
|
@media (max-width: 640px) {
|
|
12921
12918
|
display: none;
|
|
12922
12919
|
}
|
|
12923
|
-
`, bv = x
|
|
12920
|
+
`, bv = x.div`
|
|
12921
|
+
width: 2.25rem;
|
|
12922
|
+
height: 2.25rem;
|
|
12923
|
+
border-radius: 50%;
|
|
12924
|
+
background-color: var(--color-main-blue-primary);
|
|
12925
|
+
color: var(--color-main-white);
|
|
12926
|
+
font-weight: bold;
|
|
12927
|
+
display: flex;
|
|
12928
|
+
align-items: center;
|
|
12929
|
+
justify-content: center;
|
|
12930
|
+
font-size: 1rem;
|
|
12931
|
+
user-select: none;
|
|
12932
|
+
`, xv = x(Ge.div)`
|
|
12924
12933
|
display: flex;
|
|
12925
12934
|
align-items: center;
|
|
12926
12935
|
justify-content: center;
|
|
@@ -12929,7 +12938,7 @@ const vv = x.div`
|
|
|
12929
12938
|
@media (max-width: 640px) {
|
|
12930
12939
|
display: none;
|
|
12931
12940
|
}
|
|
12932
|
-
`,
|
|
12941
|
+
`, Sv = x(Ge.div)`
|
|
12933
12942
|
position: absolute;
|
|
12934
12943
|
top: 100%;
|
|
12935
12944
|
right: 0;
|
|
@@ -12941,7 +12950,7 @@ const vv = x.div`
|
|
|
12941
12950
|
box-shadow: var(--shadow-black-card);
|
|
12942
12951
|
z-index: 100;
|
|
12943
12952
|
overflow: hidden;
|
|
12944
|
-
`,
|
|
12953
|
+
`, Cv = x.button`
|
|
12945
12954
|
width: 100%;
|
|
12946
12955
|
display: flex;
|
|
12947
12956
|
align-items: center;
|
|
@@ -13016,13 +13025,13 @@ const vv = x.div`
|
|
|
13016
13025
|
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), i(!r));
|
|
13017
13026
|
},
|
|
13018
13027
|
children: [
|
|
13019
|
-
/* @__PURE__ */ g(
|
|
13028
|
+
/* @__PURE__ */ g(bv, { className: "font-semibold!", children: a(e?.name || "") }),
|
|
13020
13029
|
/* @__PURE__ */ E(wv, { children: [
|
|
13021
|
-
/* @__PURE__ */ g(
|
|
13022
|
-
/* @__PURE__ */ g(
|
|
13030
|
+
/* @__PURE__ */ g(it, { size: 14, className: "font-semibold!", children: e?.name || "" }),
|
|
13031
|
+
/* @__PURE__ */ g(it, { size: 12, children: e?.roles?.[0]?.name || "" })
|
|
13023
13032
|
] }),
|
|
13024
13033
|
/* @__PURE__ */ g(
|
|
13025
|
-
|
|
13034
|
+
xv,
|
|
13026
13035
|
{
|
|
13027
13036
|
animate: { rotate: r ? -180 : 0 },
|
|
13028
13037
|
transition: { duration: 0.3 },
|
|
@@ -13040,14 +13049,14 @@ const vv = x.div`
|
|
|
13040
13049
|
}
|
|
13041
13050
|
),
|
|
13042
13051
|
/* @__PURE__ */ g(Zt, { children: r && /* @__PURE__ */ g(
|
|
13043
|
-
|
|
13052
|
+
Sv,
|
|
13044
13053
|
{
|
|
13045
13054
|
initial: { opacity: 0, y: -10, scale: 0.95 },
|
|
13046
13055
|
animate: { opacity: 1, y: 0, scale: 1 },
|
|
13047
13056
|
exit: { opacity: 0, y: -10, scale: 0.95 },
|
|
13048
13057
|
transition: { duration: 0.15 },
|
|
13049
13058
|
children: c.map((d) => /* @__PURE__ */ g(Ho, { children: /* @__PURE__ */ E(
|
|
13050
|
-
|
|
13059
|
+
Cv,
|
|
13051
13060
|
{
|
|
13052
13061
|
onClick: d.onClick,
|
|
13053
13062
|
className: d.variant === "danger" ? "danger" : "",
|
|
@@ -13061,7 +13070,7 @@ const vv = x.div`
|
|
|
13061
13070
|
}
|
|
13062
13071
|
),
|
|
13063
13072
|
/* @__PURE__ */ g(
|
|
13064
|
-
|
|
13073
|
+
it,
|
|
13065
13074
|
{
|
|
13066
13075
|
size: 14,
|
|
13067
13076
|
color: `${d.variant === "danger" && "var(--color-main-warning-state)"}`,
|
|
@@ -13076,7 +13085,7 @@ const vv = x.div`
|
|
|
13076
13085
|
] });
|
|
13077
13086
|
};
|
|
13078
13087
|
Hl.displayName = "UserProfile";
|
|
13079
|
-
const
|
|
13088
|
+
const Rv = ({
|
|
13080
13089
|
hasNotifications: e = !1,
|
|
13081
13090
|
notificationCount: t
|
|
13082
13091
|
}) => {
|
|
@@ -13087,7 +13096,7 @@ const Cv = ({
|
|
|
13087
13096
|
badgeLabel: r,
|
|
13088
13097
|
bellAriaLabel: i
|
|
13089
13098
|
};
|
|
13090
|
-
},
|
|
13099
|
+
}, $v = x.button`
|
|
13091
13100
|
position: relative;
|
|
13092
13101
|
background: transparent;
|
|
13093
13102
|
border: none;
|
|
@@ -13111,7 +13120,7 @@ const Cv = ({
|
|
|
13111
13120
|
&:active {
|
|
13112
13121
|
transform: scale(0.92);
|
|
13113
13122
|
}
|
|
13114
|
-
`,
|
|
13123
|
+
`, Tv = x.span`
|
|
13115
13124
|
position: absolute;
|
|
13116
13125
|
top: 0.35rem;
|
|
13117
13126
|
right: 0.35rem;
|
|
@@ -13132,12 +13141,12 @@ const Cv = ({
|
|
|
13132
13141
|
notificationCount: t,
|
|
13133
13142
|
onNotificationClick: n
|
|
13134
13143
|
}) => {
|
|
13135
|
-
const { effectiveHasNotifications: o, displayCount: r, bellAriaLabel: i } =
|
|
13144
|
+
const { effectiveHasNotifications: o, displayCount: r, bellAriaLabel: i } = Rv({
|
|
13136
13145
|
hasNotifications: e,
|
|
13137
13146
|
notificationCount: t
|
|
13138
13147
|
});
|
|
13139
13148
|
return /* @__PURE__ */ E(
|
|
13140
|
-
|
|
13149
|
+
$v,
|
|
13141
13150
|
{
|
|
13142
13151
|
onClick: n,
|
|
13143
13152
|
"aria-label": i,
|
|
@@ -13152,13 +13161,13 @@ const Cv = ({
|
|
|
13152
13161
|
color: "var(--color-main-blue-primary)"
|
|
13153
13162
|
}
|
|
13154
13163
|
),
|
|
13155
|
-
o && /* @__PURE__ */ g(
|
|
13164
|
+
o && /* @__PURE__ */ g(Tv, { $withCount: !!r, "aria-hidden": !!r, children: r && (r > 99 ? "99+" : r) })
|
|
13156
13165
|
]
|
|
13157
13166
|
}
|
|
13158
13167
|
);
|
|
13159
13168
|
};
|
|
13160
13169
|
jl.displayName = "NotificationButton";
|
|
13161
|
-
const
|
|
13170
|
+
const Pv = x.header`
|
|
13162
13171
|
position: fixed;
|
|
13163
13172
|
top: 0;
|
|
13164
13173
|
left: 0;
|
|
@@ -13174,11 +13183,11 @@ const Tv = x.header`
|
|
|
13174
13183
|
padding: 0 1rem;
|
|
13175
13184
|
transition: padding-left 0.3s ease-out;
|
|
13176
13185
|
padding-left: 5rem;
|
|
13177
|
-
`,
|
|
13186
|
+
`, kv = x.div`
|
|
13178
13187
|
display: flex;
|
|
13179
13188
|
align-items: center;
|
|
13180
13189
|
gap: 1rem;
|
|
13181
|
-
`,
|
|
13190
|
+
`, Vv = x.div`
|
|
13182
13191
|
display: flex;
|
|
13183
13192
|
align-items: center;
|
|
13184
13193
|
gap: 1rem;
|
|
@@ -13191,9 +13200,9 @@ const Tv = x.header`
|
|
|
13191
13200
|
onLogout: i,
|
|
13192
13201
|
userMenuItems: s,
|
|
13193
13202
|
children: a
|
|
13194
|
-
}) => /* @__PURE__ */ E(
|
|
13195
|
-
/* @__PURE__ */ g(
|
|
13196
|
-
/* @__PURE__ */ E(
|
|
13203
|
+
}) => /* @__PURE__ */ E(Pv, { children: [
|
|
13204
|
+
/* @__PURE__ */ g(kv, { children: a }),
|
|
13205
|
+
/* @__PURE__ */ E(Vv, { children: [
|
|
13197
13206
|
/* @__PURE__ */ g(
|
|
13198
13207
|
jl,
|
|
13199
13208
|
{
|
|
@@ -13214,7 +13223,7 @@ const Tv = x.header`
|
|
|
13214
13223
|
] })
|
|
13215
13224
|
] });
|
|
13216
13225
|
Gl.displayName = "Header";
|
|
13217
|
-
const
|
|
13226
|
+
const Mv = x.main`
|
|
13218
13227
|
flex: 1;
|
|
13219
13228
|
margin-top: 4rem;
|
|
13220
13229
|
/* Mobile-first: no lateral offset so content occupies full width */
|
|
@@ -13230,14 +13239,14 @@ const Vv = x.main`
|
|
|
13230
13239
|
@media (min-width: 1200px) {
|
|
13231
13240
|
margin-left: 5rem;
|
|
13232
13241
|
}
|
|
13233
|
-
`, Ul = ({ children: e, className: t }) => /* @__PURE__ */ g(
|
|
13242
|
+
`, Ul = ({ children: e, className: t }) => /* @__PURE__ */ g(Mv, { className: t, children: e });
|
|
13234
13243
|
Ul.displayName = "LayoutMainContent";
|
|
13235
|
-
const
|
|
13244
|
+
const Ev = x.div`
|
|
13236
13245
|
display: flex;
|
|
13237
13246
|
flex-direction: column;
|
|
13238
13247
|
height: 100vh;
|
|
13239
13248
|
overflow: hidden;
|
|
13240
|
-
`,
|
|
13249
|
+
`, Dv = ({
|
|
13241
13250
|
children: e,
|
|
13242
13251
|
navigationConfig: t,
|
|
13243
13252
|
userPermissions: n = [],
|
|
@@ -13253,7 +13262,7 @@ const Mv = x.div`
|
|
|
13253
13262
|
contentClassName: f,
|
|
13254
13263
|
logoImgCollapsed: h,
|
|
13255
13264
|
logoImgExpanded: m
|
|
13256
|
-
}) => /* @__PURE__ */ E(
|
|
13265
|
+
}) => /* @__PURE__ */ E(Ev, { children: [
|
|
13257
13266
|
/* @__PURE__ */ g(
|
|
13258
13267
|
Cl,
|
|
13259
13268
|
{
|
|
@@ -13278,8 +13287,8 @@ const Mv = x.div`
|
|
|
13278
13287
|
}
|
|
13279
13288
|
),
|
|
13280
13289
|
/* @__PURE__ */ g(Ul, { className: f, children: e })
|
|
13281
|
-
] }),
|
|
13282
|
-
function
|
|
13290
|
+
] }), $1 = (e) => /* @__PURE__ */ g(a0, { children: /* @__PURE__ */ g(Dv, { ...e }) });
|
|
13291
|
+
function T1(e, t, n) {
|
|
13283
13292
|
let o = `${e}=${encodeURIComponent(t)}; path=/; SameSite=Strict; Secure`;
|
|
13284
13293
|
if (n) {
|
|
13285
13294
|
const r = new Date(Date.now() + n * 864e5).toUTCString();
|
|
@@ -13287,19 +13296,19 @@ function $1(e, t, n) {
|
|
|
13287
13296
|
}
|
|
13288
13297
|
document.cookie = o;
|
|
13289
13298
|
}
|
|
13290
|
-
function
|
|
13299
|
+
function P1(e) {
|
|
13291
13300
|
return document.cookie.split("; ").reduce((t, n) => {
|
|
13292
13301
|
const o = n.split("=");
|
|
13293
13302
|
return o[0] === e ? decodeURIComponent(o[1]) : t;
|
|
13294
13303
|
}, "");
|
|
13295
13304
|
}
|
|
13296
|
-
function
|
|
13305
|
+
function k1(e) {
|
|
13297
13306
|
document.cookie = `${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`;
|
|
13298
13307
|
}
|
|
13299
|
-
const Kl = He(void 0),
|
|
13308
|
+
const Kl = He(void 0), Av = (e) => ({
|
|
13300
13309
|
permissions: e?.permissions?.map((t) => t.name) || []
|
|
13301
|
-
}),
|
|
13302
|
-
const [o, r] = Z(() => n ?
|
|
13310
|
+
}), V1 = ({ children: e, initialAbilities: t, user: n }) => {
|
|
13311
|
+
const [o, r] = Z(() => n ? Av(n) : t || { permissions: [] }), i = K(
|
|
13303
13312
|
(c, d = "any") => (c = Array.isArray(c) ? c : [c], d === "all" ? c.every(
|
|
13304
13313
|
(u) => o.permissions.includes(u)
|
|
13305
13314
|
) : c.some((u) => o.permissions.includes(u))),
|
|
@@ -13321,10 +13330,10 @@ const Kl = He(void 0), Dv = (e) => ({
|
|
|
13321
13330
|
if (!e)
|
|
13322
13331
|
throw new Error("useAbility must be used within an AbilityProvider");
|
|
13323
13332
|
return e;
|
|
13324
|
-
},
|
|
13333
|
+
}, M1 = (e, t = "any") => {
|
|
13325
13334
|
const { can: n } = Wl();
|
|
13326
13335
|
return n(e, t);
|
|
13327
|
-
},
|
|
13336
|
+
}, E1 = Tn(
|
|
13328
13337
|
({ requiredPermissions: e, mode: t = "any", children: n, fallback: o = null }) => {
|
|
13329
13338
|
const { can: r } = Wl();
|
|
13330
13339
|
return r(e, t) ? /* @__PURE__ */ g(Oe, { children: n }) : o ?? null;
|
|
@@ -13345,15 +13354,15 @@ const Kl = He(void 0), Dv = (e) => ({
|
|
|
13345
13354
|
fontSize: A[20],
|
|
13346
13355
|
line: "3px"
|
|
13347
13356
|
}
|
|
13348
|
-
},
|
|
13357
|
+
}, Fv = x.div`
|
|
13349
13358
|
display: flex;
|
|
13350
13359
|
width: 100%;
|
|
13351
|
-
`,
|
|
13360
|
+
`, Iv = x.div`
|
|
13352
13361
|
display: flex;
|
|
13353
13362
|
flex-direction: ${({ $orientation: e }) => e === "vertical" ? "column" : "row"};
|
|
13354
13363
|
align-items: center;
|
|
13355
13364
|
width: 100%;
|
|
13356
|
-
`,
|
|
13365
|
+
`, Lv = x.div`
|
|
13357
13366
|
display: flex;
|
|
13358
13367
|
align-items: center;
|
|
13359
13368
|
justify-content: center;
|
|
@@ -13404,7 +13413,7 @@ const Kl = He(void 0), Dv = (e) => ({
|
|
|
13404
13413
|
box-shadow: var(--shadow-hover-black-button);
|
|
13405
13414
|
}
|
|
13406
13415
|
`}
|
|
13407
|
-
`,
|
|
13416
|
+
`, _v = x.div`
|
|
13408
13417
|
background-color: ${({ $isCompleted: e }) => e ? "var(--color-main-blue-primary)" : "var(--color-dark-300)"};
|
|
13409
13418
|
transition: background-color 0.3s ease;
|
|
13410
13419
|
|
|
@@ -13416,7 +13425,7 @@ const Kl = He(void 0), Dv = (e) => ({
|
|
|
13416
13425
|
flex: 1;
|
|
13417
13426
|
min-width: 2rem;
|
|
13418
13427
|
`}
|
|
13419
|
-
`,
|
|
13428
|
+
`, Nv = x.span`
|
|
13420
13429
|
position: absolute;
|
|
13421
13430
|
${A[14]}
|
|
13422
13431
|
font-weight: 500;
|
|
@@ -13449,7 +13458,7 @@ const Kl = He(void 0), Dv = (e) => ({
|
|
|
13449
13458
|
${Yl}:hover & {
|
|
13450
13459
|
opacity: 1;
|
|
13451
13460
|
}
|
|
13452
|
-
`,
|
|
13461
|
+
`, D1 = ({
|
|
13453
13462
|
steps: e,
|
|
13454
13463
|
currentStep: t,
|
|
13455
13464
|
orientation: n = "horizontal",
|
|
@@ -13460,10 +13469,10 @@ const Kl = He(void 0), Dv = (e) => ({
|
|
|
13460
13469
|
const s = (a) => {
|
|
13461
13470
|
r?.(a);
|
|
13462
13471
|
};
|
|
13463
|
-
return /* @__PURE__ */ g(
|
|
13472
|
+
return /* @__PURE__ */ g(Fv, { $orientation: n, className: i, children: /* @__PURE__ */ g(Iv, { $orientation: n, children: e.map((a, l) => {
|
|
13464
13473
|
const c = l === t, d = l < t, u = r != null;
|
|
13465
13474
|
return /* @__PURE__ */ E(Oe, { children: [
|
|
13466
|
-
/* @__PURE__ */ g(
|
|
13475
|
+
/* @__PURE__ */ g(Lv, { $orientation: n, children: /* @__PURE__ */ E(
|
|
13467
13476
|
Yl,
|
|
13468
13477
|
{
|
|
13469
13478
|
$isActive: c,
|
|
@@ -13480,12 +13489,12 @@ const Kl = He(void 0), Dv = (e) => ({
|
|
|
13480
13489
|
},
|
|
13481
13490
|
children: [
|
|
13482
13491
|
a.content ?? l + 1,
|
|
13483
|
-
a.label && n === "vertical" && /* @__PURE__ */ g(
|
|
13492
|
+
a.label && n === "vertical" && /* @__PURE__ */ g(Nv, { children: a.label })
|
|
13484
13493
|
]
|
|
13485
13494
|
}
|
|
13486
13495
|
) }),
|
|
13487
13496
|
l < e.length - 1 && /* @__PURE__ */ g(
|
|
13488
|
-
|
|
13497
|
+
_v,
|
|
13489
13498
|
{
|
|
13490
13499
|
$isCompleted: d,
|
|
13491
13500
|
$orientation: n,
|
|
@@ -13497,17 +13506,17 @@ const Kl = He(void 0), Dv = (e) => ({
|
|
|
13497
13506
|
};
|
|
13498
13507
|
export {
|
|
13499
13508
|
ap as ALLOWED_INPUT_TYPES,
|
|
13500
|
-
|
|
13509
|
+
V1 as AbilityProvider,
|
|
13501
13510
|
v0 as Aside,
|
|
13502
|
-
|
|
13511
|
+
qv as Badge,
|
|
13503
13512
|
ol as BaseInput,
|
|
13504
13513
|
b0 as BrandLogo,
|
|
13505
13514
|
Kt as Button,
|
|
13506
|
-
|
|
13507
|
-
|
|
13508
|
-
|
|
13509
|
-
|
|
13510
|
-
|
|
13515
|
+
E1 as Can,
|
|
13516
|
+
Qv as Card,
|
|
13517
|
+
t1 as CardBody,
|
|
13518
|
+
n1 as CardFooter,
|
|
13519
|
+
e1 as CardHeader,
|
|
13511
13520
|
Dn as Checkbox,
|
|
13512
13521
|
dl as CheckboxInput,
|
|
13513
13522
|
gg as CheckboxLabel,
|
|
@@ -13518,21 +13527,21 @@ export {
|
|
|
13518
13527
|
Xg as DialogBody,
|
|
13519
13528
|
Jg as DialogFooter,
|
|
13520
13529
|
Yg as DialogHeader,
|
|
13521
|
-
|
|
13530
|
+
Xv as Divider,
|
|
13522
13531
|
nl as ErrorMessage,
|
|
13523
13532
|
cg as FileList,
|
|
13524
|
-
|
|
13533
|
+
s1 as FileUpload,
|
|
13525
13534
|
_l as FilterOption,
|
|
13526
|
-
|
|
13527
|
-
|
|
13535
|
+
l1 as FormField,
|
|
13536
|
+
Wv as FullScreenSpinner,
|
|
13528
13537
|
Gl as Header,
|
|
13529
13538
|
vc as HeadingBold,
|
|
13530
|
-
|
|
13539
|
+
Uv as HeadingRegular,
|
|
13531
13540
|
Y as Icon,
|
|
13532
13541
|
Rr as IconWrapperStyles,
|
|
13533
13542
|
Wt as InfoLabel,
|
|
13534
13543
|
Sr as Label,
|
|
13535
|
-
|
|
13544
|
+
$1 as Layout,
|
|
13536
13545
|
Ul as LayoutMainContent,
|
|
13537
13546
|
V0 as Link,
|
|
13538
13547
|
$0 as LinkDisabledStyles,
|
|
@@ -13549,83 +13558,83 @@ export {
|
|
|
13549
13558
|
ml as RadioInputDot,
|
|
13550
13559
|
pl as RadioInputLabel,
|
|
13551
13560
|
ul as SearchInput,
|
|
13552
|
-
|
|
13561
|
+
Yv as SectionSpinner,
|
|
13553
13562
|
$r as SelectInput,
|
|
13554
13563
|
Cl as Sidebar,
|
|
13555
13564
|
wl as SidebarContext,
|
|
13556
13565
|
w0 as SidebarHeader,
|
|
13557
13566
|
a0 as SidebarProvider,
|
|
13558
13567
|
xr as Spinner,
|
|
13559
|
-
|
|
13568
|
+
D1 as Stepper,
|
|
13560
13569
|
hv as Table,
|
|
13561
13570
|
ao as TableBody,
|
|
13562
13571
|
Jy as TableCell,
|
|
13563
13572
|
Wy as TableHeader,
|
|
13564
13573
|
Uy as TableHeaderCell,
|
|
13565
13574
|
Ky as TableHeaderRow,
|
|
13566
|
-
|
|
13575
|
+
p1 as TablePagination,
|
|
13567
13576
|
ev as TableRow,
|
|
13568
|
-
|
|
13569
|
-
|
|
13577
|
+
u1 as TermsAndConditions,
|
|
13578
|
+
it as Text,
|
|
13570
13579
|
cl as TextAreaInput,
|
|
13571
|
-
|
|
13580
|
+
Jv as ToastProvider,
|
|
13572
13581
|
s0 as Tooltip,
|
|
13573
13582
|
Hl as UserProfile,
|
|
13574
13583
|
Vt as baseFieldStyles,
|
|
13575
13584
|
Cr as baseInputStyles,
|
|
13576
13585
|
A as bodyTextStyles,
|
|
13577
|
-
|
|
13586
|
+
b1 as columnFiltersToArrayQueryParams,
|
|
13578
13587
|
yv as columnFiltersToJsonString,
|
|
13579
|
-
|
|
13588
|
+
w1 as columnFiltersToQueryParams,
|
|
13580
13589
|
gv as columnFiltersToRecord,
|
|
13581
|
-
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
|
|
13590
|
+
y1 as createBackendParams,
|
|
13591
|
+
x1 as createBackendParamsWithFilters,
|
|
13592
|
+
d1 as createColumnHelper,
|
|
13593
|
+
r1 as createFieldConfig,
|
|
13585
13594
|
$g as createInputRefs,
|
|
13586
|
-
|
|
13595
|
+
k1 as deleteCookie,
|
|
13587
13596
|
ct as disabledStyles,
|
|
13588
13597
|
Mt as errorStyles,
|
|
13589
13598
|
cp as flushedStyles,
|
|
13590
|
-
|
|
13599
|
+
m1 as getActiveFilterCount,
|
|
13591
13600
|
Iy as getActiveFilterValues,
|
|
13592
|
-
|
|
13593
|
-
|
|
13594
|
-
|
|
13601
|
+
f1 as getColumnValueCounts,
|
|
13602
|
+
P1 as getCookie,
|
|
13603
|
+
i1 as getPropsForInputType,
|
|
13595
13604
|
Nl as getUniqueColumnValues,
|
|
13596
13605
|
Sg as handleDigitChange,
|
|
13597
13606
|
Cg as handleKeyDown,
|
|
13598
13607
|
Rg as handlePaste,
|
|
13599
|
-
|
|
13608
|
+
h1 as hasActiveFilters,
|
|
13600
13609
|
cs as hasPermission,
|
|
13601
13610
|
ys as headingBoldStyles,
|
|
13602
13611
|
yc as headingRegularStyles,
|
|
13603
13612
|
lp as isAllowedInputType,
|
|
13604
|
-
|
|
13613
|
+
R1 as mergeFilters,
|
|
13605
13614
|
hs as multiSelectFilter,
|
|
13606
|
-
|
|
13607
|
-
|
|
13615
|
+
tt as normalizeFieldTypes,
|
|
13616
|
+
o1 as normalizeSelectOptions,
|
|
13608
13617
|
vl as overlayAnimation,
|
|
13609
|
-
|
|
13610
|
-
|
|
13618
|
+
C1 as parseJsonToFilters,
|
|
13619
|
+
S1 as parseQueryParamsToFilters,
|
|
13611
13620
|
Fy as searchInArray,
|
|
13612
|
-
|
|
13621
|
+
T1 as setCookie,
|
|
13613
13622
|
En as sizeStyles,
|
|
13614
|
-
|
|
13623
|
+
c1 as slideAnimation,
|
|
13615
13624
|
Ng as smartAnimation,
|
|
13616
|
-
|
|
13625
|
+
g1 as sortRecordToSortingState,
|
|
13617
13626
|
pv as sortingStateToJsonString,
|
|
13618
13627
|
mv as sortingStateToRecord,
|
|
13619
13628
|
Bg as submenuAnimationTopDown,
|
|
13620
|
-
|
|
13629
|
+
Zv as toast,
|
|
13621
13630
|
Wl as useAbility,
|
|
13622
|
-
|
|
13631
|
+
M1 as useCan,
|
|
13623
13632
|
Gy as useColumnFilter,
|
|
13624
|
-
|
|
13633
|
+
Rv as useNotifications,
|
|
13625
13634
|
bl as useSidebar,
|
|
13626
13635
|
Qt as useTableContext,
|
|
13627
|
-
|
|
13636
|
+
v1 as useTableData,
|
|
13628
13637
|
fv as useTableFiltering,
|
|
13629
13638
|
dv as useTableSorting,
|
|
13630
|
-
|
|
13639
|
+
a1 as validateCode
|
|
13631
13640
|
};
|