@biznext-ui/react 0.5.1 → 0.5.2
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.es.js +169 -162
- package/dist/index.umd.js +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as T, jsxs as me, Fragment as gn } from "react/jsx-runtime";
|
|
2
2
|
import * as R from "react";
|
|
3
|
-
import tt, { createContext as De, useContext as z, useId as Xi, useEffect as
|
|
3
|
+
import tt, { createContext as De, useContext as z, useId as Xi, useEffect as Ce, useCallback as $, Component as ws, useLayoutEffect as Fs, useRef as te, useInsertionEffect as Rs, useMemo as pe, forwardRef as Mn, Fragment as Gt, createElement as nc, Children as un, isValidElement as ic, useState as se, useReducer as rc } from "react";
|
|
4
4
|
import oc, { createPortal as it } from "react-dom";
|
|
5
5
|
const Bs = De({}), sc = (e, t) => {
|
|
6
6
|
switch (t.type) {
|
|
@@ -78,7 +78,7 @@ var Gs = { exports: {} };
|
|
|
78
78
|
})();
|
|
79
79
|
})(Gs);
|
|
80
80
|
var mc = Gs.exports;
|
|
81
|
-
const
|
|
81
|
+
const rt = /* @__PURE__ */ pc(mc);
|
|
82
82
|
var Ms = {
|
|
83
83
|
color: void 0,
|
|
84
84
|
size: void 0,
|
|
@@ -159,7 +159,7 @@ function Ds(e) {
|
|
|
159
159
|
key: n
|
|
160
160
|
}, t.attr), Ds(t.child)));
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function st(e) {
|
|
163
163
|
return (t) => /* @__PURE__ */ tt.createElement(xc, bn({
|
|
164
164
|
attr: vn({}, e.attr)
|
|
165
165
|
}, t), Ds(e.child));
|
|
@@ -188,19 +188,19 @@ function xc(e) {
|
|
|
188
188
|
return Br !== void 0 ? /* @__PURE__ */ tt.createElement(Br.Consumer, null, (n) => t(n)) : t(Ms);
|
|
189
189
|
}
|
|
190
190
|
function Ac(e) {
|
|
191
|
-
return
|
|
191
|
+
return st({ tag: "svg", attr: { role: "img", viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M12 0C5.383 0 0 5.383 0 12s5.383 12 12 12 12-5.383 12-12h-2.7c0 5.128-4.172 9.3-9.3 9.3-5.128 0-9.3-4.172-9.3-9.3 0-5.128 4.172-9.3 9.3-9.3V0Zm7.4 2.583-7.505 9.371L8.388 9.08l-2.002 2.436 4.741 3.888a1.573 1.573 0 0 0 2.231-.233l8.504-10.617L19.4 2.583Z" }, child: [] }] })(e);
|
|
192
192
|
}
|
|
193
193
|
function Sc(e) {
|
|
194
|
-
return
|
|
194
|
+
return st({ tag: "svg", attr: { viewBox: "0 0 15 15", fill: "none" }, child: [{ tag: "path", attr: { fillRule: "evenodd", clipRule: "evenodd", d: "M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z", fill: "currentColor" }, child: [] }] })(e);
|
|
195
195
|
}
|
|
196
196
|
function Tc(e) {
|
|
197
|
-
return
|
|
197
|
+
return st({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm169.8-90.7c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z" }, child: [] }] })(e);
|
|
198
198
|
}
|
|
199
199
|
function Ec(e) {
|
|
200
|
-
return
|
|
200
|
+
return st({ tag: "svg", attr: { fill: "none", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" }, child: [] }] })(e);
|
|
201
201
|
}
|
|
202
202
|
function Pc(e) {
|
|
203
|
-
return
|
|
203
|
+
return st({ tag: "svg", attr: { version: "1.1", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M15.854 12.854c-0-0-0-0-0-0l-4.854-4.854 4.854-4.854c0-0 0-0 0-0 0.052-0.052 0.090-0.113 0.114-0.178 0.066-0.178 0.028-0.386-0.114-0.529l-2.293-2.293c-0.143-0.143-0.351-0.181-0.529-0.114-0.065 0.024-0.126 0.062-0.178 0.114 0 0-0 0-0 0l-4.854 4.854-4.854-4.854c-0-0-0-0-0-0-0.052-0.052-0.113-0.090-0.178-0.114-0.178-0.066-0.386-0.029-0.529 0.114l-2.293 2.293c-0.143 0.143-0.181 0.351-0.114 0.529 0.024 0.065 0.062 0.126 0.114 0.178 0 0 0 0 0 0l4.854 4.854-4.854 4.854c-0 0-0 0-0 0-0.052 0.052-0.090 0.113-0.114 0.178-0.066 0.178-0.029 0.386 0.114 0.529l2.293 2.293c0.143 0.143 0.351 0.181 0.529 0.114 0.065-0.024 0.126-0.062 0.178-0.114 0-0 0-0 0-0l4.854-4.854 4.854 4.854c0 0 0 0 0 0 0.052 0.052 0.113 0.090 0.178 0.114 0.178 0.066 0.386 0.029 0.529-0.114l2.293-2.293c0.143-0.143 0.181-0.351 0.114-0.529-0.024-0.065-0.062-0.126-0.114-0.178z" }, child: [] }] })(e);
|
|
204
204
|
}
|
|
205
205
|
const Mr = /* @__PURE__ */ new Set();
|
|
206
206
|
function Dn(e, t, n) {
|
|
@@ -482,7 +482,7 @@ function Kc(e) {
|
|
|
482
482
|
i !== void 0 && (t.push([n, i.get()]), i.set(n.startsWith("scale") ? 1 : 0));
|
|
483
483
|
}), t;
|
|
484
484
|
}
|
|
485
|
-
const
|
|
485
|
+
const gt = {
|
|
486
486
|
// Dimensions
|
|
487
487
|
width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n),
|
|
488
488
|
height: ({ y: e }, { paddingTop: t = "0", paddingBottom: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n),
|
|
@@ -494,8 +494,8 @@ const mt = {
|
|
|
494
494
|
x: Or(4, 13),
|
|
495
495
|
y: Or(5, 14)
|
|
496
496
|
};
|
|
497
|
-
|
|
498
|
-
|
|
497
|
+
gt.translateX = gt.x;
|
|
498
|
+
gt.translateY = gt.y;
|
|
499
499
|
const $s = (e) => (t) => t.test(e), qc = {
|
|
500
500
|
test: (e) => e === "auto",
|
|
501
501
|
parse: (e) => e
|
|
@@ -604,14 +604,14 @@ const yi = {
|
|
|
604
604
|
test: /* @__PURE__ */ Qi("#"),
|
|
605
605
|
parse: rl,
|
|
606
606
|
transform: et.transform
|
|
607
|
-
},
|
|
607
|
+
}, lt = {
|
|
608
608
|
test: /* @__PURE__ */ Qi("hsl", "hue"),
|
|
609
609
|
parse: /* @__PURE__ */ ta("hue", "saturation", "lightness"),
|
|
610
610
|
transform: ({ hue: e, saturation: t, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(e) + ", " + Be.transform(Ft(t)) + ", " + Be.transform(Ft(n)) + ", " + Ft(Nt.transform(i)) + ")"
|
|
611
611
|
}, re = {
|
|
612
|
-
test: (e) => et.test(e) || yi.test(e) ||
|
|
613
|
-
parse: (e) => et.test(e) ? et.parse(e) :
|
|
614
|
-
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? et.transform(e) :
|
|
612
|
+
test: (e) => et.test(e) || yi.test(e) || lt.test(e),
|
|
613
|
+
parse: (e) => et.test(e) ? et.parse(e) : lt.test(e) ? lt.parse(e) : yi.parse(e),
|
|
614
|
+
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? et.transform(e) : lt.transform(e)
|
|
615
615
|
}, ol = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
616
616
|
function sl(e) {
|
|
617
617
|
var t, n;
|
|
@@ -814,7 +814,7 @@ class aa extends Ui {
|
|
|
814
814
|
const { element: t, unresolvedKeyframes: n, name: i } = this;
|
|
815
815
|
if (!t || !t.current)
|
|
816
816
|
return;
|
|
817
|
-
i === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin =
|
|
817
|
+
i === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = gt[i](t.measureViewportBox(), window.getComputedStyle(t.current)), n[0] = this.measuredOrigin;
|
|
818
818
|
const r = n[n.length - 1];
|
|
819
819
|
r !== void 0 && t.getValue(i, r).jump(r, !1);
|
|
820
820
|
}
|
|
@@ -826,7 +826,7 @@ class aa extends Ui {
|
|
|
826
826
|
const o = n.getValue(i);
|
|
827
827
|
o && o.jump(this.measuredOrigin, !1);
|
|
828
828
|
const s = r.length - 1, u = r[s];
|
|
829
|
-
r[s] =
|
|
829
|
+
r[s] = gt[i](n.measureViewportBox(), window.getComputedStyle(n.current)), u !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = u), !((t = this.removedTransforms) === null || t === void 0) && t.length && this.removedTransforms.forEach(([a, c]) => {
|
|
830
830
|
n.getValue(a).set(c);
|
|
831
831
|
}), this.resolveNoneKeyframes();
|
|
832
832
|
}
|
|
@@ -1100,7 +1100,7 @@ const Ml = /* @__PURE__ */ zt(0.42, 0, 1, 1), Dl = /* @__PURE__ */ zt(0, 0, 0.58
|
|
|
1100
1100
|
} else if (typeof e == "string")
|
|
1101
1101
|
return Ze(Jr[e] !== void 0, `Invalid easing type '${e}'`), Jr[e];
|
|
1102
1102
|
return e;
|
|
1103
|
-
}, Ll = (e, t) => (n) => t(e(n)), We = (...e) => e.reduce(Ll),
|
|
1103
|
+
}, Ll = (e, t) => (n) => t(e(n)), We = (...e) => e.reduce(Ll), bt = (e, t, n) => {
|
|
1104
1104
|
const i = t - e;
|
|
1105
1105
|
return i === 0 ? 1 : (n - e) / i;
|
|
1106
1106
|
}, H = (e, t, n) => e + (t - e) * n;
|
|
@@ -1129,13 +1129,13 @@ function yn(e, t) {
|
|
|
1129
1129
|
const qn = (e, t, n) => {
|
|
1130
1130
|
const i = e * e, r = n * (t * t - i) + i;
|
|
1131
1131
|
return r < 0 ? 0 : Math.sqrt(r);
|
|
1132
|
-
}, Ol = [yi, et,
|
|
1132
|
+
}, Ol = [yi, et, lt], Xl = (e) => Ol.find((t) => t.test(e));
|
|
1133
1133
|
function _r(e) {
|
|
1134
1134
|
const t = Xl(e);
|
|
1135
1135
|
if (It(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`), !t)
|
|
1136
1136
|
return !1;
|
|
1137
1137
|
let n = t.parse(e);
|
|
1138
|
-
return t ===
|
|
1138
|
+
return t === lt && (n = Wl(n)), n;
|
|
1139
1139
|
}
|
|
1140
1140
|
const Qr = (e, t) => {
|
|
1141
1141
|
const n = _r(e), i = _r(t);
|
|
@@ -1211,7 +1211,7 @@ function Jl(e, t, { clamp: n = !0, ease: i, mixer: r } = {}) {
|
|
|
1211
1211
|
if (u > 1)
|
|
1212
1212
|
for (; l < e.length - 2 && !(c < e[l + 1]); l++)
|
|
1213
1213
|
;
|
|
1214
|
-
const d =
|
|
1214
|
+
const d = bt(e[l], e[l + 1], c);
|
|
1215
1215
|
return s[l](d);
|
|
1216
1216
|
};
|
|
1217
1217
|
return n ? (c) => a(Ye(e[0], e[o - 1], c)) : a;
|
|
@@ -1219,7 +1219,7 @@ function Jl(e, t, { clamp: n = !0, ease: i, mixer: r } = {}) {
|
|
|
1219
1219
|
function Ul(e, t) {
|
|
1220
1220
|
const n = e[e.length - 1];
|
|
1221
1221
|
for (let i = 1; i <= t; i++) {
|
|
1222
|
-
const r =
|
|
1222
|
+
const r = bt(0, t, i);
|
|
1223
1223
|
e.push(H(n, 1, r));
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
@@ -1409,7 +1409,7 @@ const ma = /* @__PURE__ */ new Set([
|
|
|
1409
1409
|
let n = "";
|
|
1410
1410
|
const i = Math.max(Math.round(t / nd), 2);
|
|
1411
1411
|
for (let r = 0; r < i; r++)
|
|
1412
|
-
n += e(
|
|
1412
|
+
n += e(bt(0, i - 1, r)) + ", ";
|
|
1413
1413
|
return `linear(${n.substring(0, n.length - 2)})`;
|
|
1414
1414
|
};
|
|
1415
1415
|
function ir(e) {
|
|
@@ -2150,8 +2150,8 @@ function Rd(e) {
|
|
|
2150
2150
|
const X = Z[W], le = Y[W];
|
|
2151
2151
|
if (h.hasOwnProperty(W))
|
|
2152
2152
|
continue;
|
|
2153
|
-
let
|
|
2154
|
-
gi(X) && gi(le) ?
|
|
2153
|
+
let ae = !1;
|
|
2154
|
+
gi(X) && gi(le) ? ae = !Ns(X, le) : ae = X !== le, ae ? X != null ? ce(W) : f.add(W) : X !== void 0 && f.has(W) ? ce(W) : I.protectedKeys[W] = !0;
|
|
2155
2155
|
}
|
|
2156
2156
|
I.prevProp = v, I.prevResolvedValues = Z, I.isActive && (h = { ...h, ...Z }), i && e.blockInitialAnimation && (x = !1), x && (!(A && S) || B) && d.push(...G.map((W) => ({
|
|
2157
2157
|
animation: W,
|
|
@@ -2399,7 +2399,7 @@ function Va() {
|
|
|
2399
2399
|
const e = Pa(!0);
|
|
2400
2400
|
return e ? (e(), !1) : !0;
|
|
2401
2401
|
}
|
|
2402
|
-
function
|
|
2402
|
+
function dt(e) {
|
|
2403
2403
|
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
|
|
2404
2404
|
}
|
|
2405
2405
|
const wa = 1e-4, Zd = 1 - wa, Hd = 1 + wa, Fa = 0.01, kd = 0 - Fa, zd = 0 + Fa;
|
|
@@ -2455,7 +2455,7 @@ function _d(e, t) {
|
|
|
2455
2455
|
function Qd(e, t) {
|
|
2456
2456
|
let n = 0.5;
|
|
2457
2457
|
const i = be(e), r = be(t);
|
|
2458
|
-
return r > i ? n =
|
|
2458
|
+
return r > i ? n = bt(t.min, t.max - i, e.min) : i > r && (n = bt(e.min, e.max - r, t.min)), Ye(0, 1, n);
|
|
2459
2459
|
}
|
|
2460
2460
|
function $d(e, t) {
|
|
2461
2461
|
const n = {};
|
|
@@ -2482,7 +2482,7 @@ const po = () => ({
|
|
|
2482
2482
|
scale: 1,
|
|
2483
2483
|
origin: 0,
|
|
2484
2484
|
originPoint: 0
|
|
2485
|
-
}),
|
|
2485
|
+
}), ft = () => ({
|
|
2486
2486
|
x: po(),
|
|
2487
2487
|
y: po()
|
|
2488
2488
|
}), mo = () => ({ min: 0, max: 0 }), _ = () => ({
|
|
@@ -2550,21 +2550,21 @@ function tf(e, t, n, i = !1) {
|
|
|
2550
2550
|
for (let u = 0; u < r; u++) {
|
|
2551
2551
|
o = n[u], s = o.projectionDelta;
|
|
2552
2552
|
const { visualElement: a } = o.options;
|
|
2553
|
-
a && a.props.style && a.props.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root &&
|
|
2553
|
+
a && a.props.style && a.props.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root && pt(e, {
|
|
2554
2554
|
x: -o.scroll.offset.x,
|
|
2555
2555
|
y: -o.scroll.offset.y
|
|
2556
|
-
}), s && (t.x *= s.x.scale, t.y *= s.y.scale, Ga(e, s)), i && Ke(o.latestValues) &&
|
|
2556
|
+
}), s && (t.x *= s.x.scale, t.y *= s.y.scale, Ga(e, s)), i && Ke(o.latestValues) && pt(e, o.latestValues));
|
|
2557
2557
|
}
|
|
2558
2558
|
t.x < yo && t.x > vo && (t.x = 1), t.y < yo && t.y > vo && (t.y = 1);
|
|
2559
2559
|
}
|
|
2560
|
-
function
|
|
2560
|
+
function ht(e, t) {
|
|
2561
2561
|
e.min = e.min + t, e.max = e.max + t;
|
|
2562
2562
|
}
|
|
2563
2563
|
function Io(e, t, n, i, r = 0.5) {
|
|
2564
2564
|
const o = H(e.min, e.max, r);
|
|
2565
2565
|
Vi(e, t, n, o, i);
|
|
2566
2566
|
}
|
|
2567
|
-
function
|
|
2567
|
+
function pt(e, t) {
|
|
2568
2568
|
Io(e.x, t.x, t.scaleX, t.scale, t.originX), Io(e.y, t.y, t.scaleY, t.scale, t.originY);
|
|
2569
2569
|
}
|
|
2570
2570
|
function Ma(e, t) {
|
|
@@ -2572,7 +2572,7 @@ function Ma(e, t) {
|
|
|
2572
2572
|
}
|
|
2573
2573
|
function nf(e, t, n) {
|
|
2574
2574
|
const i = Ma(e, n), { scroll: r } = t;
|
|
2575
|
-
return r && (
|
|
2575
|
+
return r && (ht(i.x, r.offset.x), ht(i.y, r.offset.y)), i;
|
|
2576
2576
|
}
|
|
2577
2577
|
const Da = ({ current: e }) => e ? e.ownerDocument.defaultView : null, rf = /* @__PURE__ */ new WeakMap();
|
|
2578
2578
|
class of {
|
|
@@ -2656,13 +2656,13 @@ class of {
|
|
|
2656
2656
|
resolveConstraints() {
|
|
2657
2657
|
var t;
|
|
2658
2658
|
const { dragConstraints: n, dragElastic: i } = this.getProps(), r = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (t = this.visualElement.projection) === null || t === void 0 ? void 0 : t.layout, o = this.constraints;
|
|
2659
|
-
n &&
|
|
2659
|
+
n && dt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && r ? this.constraints = Ud(r.layoutBox, n) : this.constraints = !1, this.elastic = Kd(i), o !== this.constraints && r && this.constraints && !this.hasMutatedConstraints && ye((s) => {
|
|
2660
2660
|
this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] = $d(r.layoutBox[s], this.constraints[s]));
|
|
2661
2661
|
});
|
|
2662
2662
|
}
|
|
2663
2663
|
resolveRefConstraints() {
|
|
2664
2664
|
const { dragConstraints: t, onMeasureDragConstraints: n } = this.getProps();
|
|
2665
|
-
if (!t || !
|
|
2665
|
+
if (!t || !dt(t))
|
|
2666
2666
|
return !1;
|
|
2667
2667
|
const i = t.current;
|
|
2668
2668
|
Ze(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
|
|
@@ -2746,7 +2746,7 @@ class of {
|
|
|
2746
2746
|
if (!this.visualElement.current)
|
|
2747
2747
|
return;
|
|
2748
2748
|
const { drag: t, dragConstraints: n } = this.getProps(), { projection: i } = this.visualElement;
|
|
2749
|
-
if (!
|
|
2749
|
+
if (!dt(n) || !i || !this.constraints)
|
|
2750
2750
|
return;
|
|
2751
2751
|
this.stopAnimation();
|
|
2752
2752
|
const r = { x: 0, y: 0 };
|
|
@@ -2774,7 +2774,7 @@ class of {
|
|
|
2774
2774
|
c && l && this.start(a);
|
|
2775
2775
|
}), i = () => {
|
|
2776
2776
|
const { dragConstraints: a } = this.getProps();
|
|
2777
|
-
|
|
2777
|
+
dt(a) && a.current && (this.constraints = this.resolveRefConstraints());
|
|
2778
2778
|
}, { projection: r } = this.visualElement, o = r.addEventListener("measure", i);
|
|
2779
2779
|
r && !r.layout && (r.root && r.root.updateScroll(), r.updateLayout()), O.read(i);
|
|
2780
2780
|
const s = Ne(window, "resize", () => this.scalePositionWithinConstraints()), u = r.addEventListener("didUpdate", ({ delta: a, hasLayoutChanged: c }) => {
|
|
@@ -2859,7 +2859,7 @@ function cf() {
|
|
|
2859
2859
|
if (e === null)
|
|
2860
2860
|
return [!0, null];
|
|
2861
2861
|
const { isPresent: t, onExitComplete: n, register: i } = e, r = Xi();
|
|
2862
|
-
|
|
2862
|
+
Ce(() => i(r), []);
|
|
2863
2863
|
const o = $(() => n && n(r), [r, n]);
|
|
2864
2864
|
return !t && n ? [!1, o] : [!0];
|
|
2865
2865
|
}
|
|
@@ -2986,7 +2986,7 @@ function To(e, t) {
|
|
|
2986
2986
|
}
|
|
2987
2987
|
const gf = /* @__PURE__ */ Oa(0, 0.5, zs), bf = /* @__PURE__ */ Oa(0.5, 0.95, ne);
|
|
2988
2988
|
function Oa(e, t, n) {
|
|
2989
|
-
return (i) => i < e ? 0 : i > t ? 1 : n(
|
|
2989
|
+
return (i) => i < e ? 0 : i > t ? 1 : n(bt(e, t, i));
|
|
2990
2990
|
}
|
|
2991
2991
|
function Eo(e, t) {
|
|
2992
2992
|
e.min = t.min, e.max = t.max;
|
|
@@ -3337,7 +3337,7 @@ function ka({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3337
3337
|
const a = u.measureViewportBox();
|
|
3338
3338
|
if (!(((s = this.scroll) === null || s === void 0 ? void 0 : s.wasRoot) || this.path.some(Yf))) {
|
|
3339
3339
|
const { scroll: l } = this.root;
|
|
3340
|
-
l && (
|
|
3340
|
+
l && (ht(a.x, l.offset.x), ht(a.y, l.offset.y));
|
|
3341
3341
|
}
|
|
3342
3342
|
return a;
|
|
3343
3343
|
}
|
|
@@ -3348,7 +3348,7 @@ function ka({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3348
3348
|
return a;
|
|
3349
3349
|
for (let c = 0; c < this.path.length; c++) {
|
|
3350
3350
|
const l = this.path[c], { scroll: d, options: f } = l;
|
|
3351
|
-
l !== this.root && d && f.layoutScroll && (d.wasRoot && ve(a, s),
|
|
3351
|
+
l !== this.root && d && f.layoutScroll && (d.wasRoot && ve(a, s), ht(a.x, d.offset.x), ht(a.y, d.offset.y));
|
|
3352
3352
|
}
|
|
3353
3353
|
return a;
|
|
3354
3354
|
}
|
|
@@ -3357,12 +3357,12 @@ function ka({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3357
3357
|
ve(a, s);
|
|
3358
3358
|
for (let c = 0; c < this.path.length; c++) {
|
|
3359
3359
|
const l = this.path[c];
|
|
3360
|
-
!u && l.options.layoutScroll && l.scroll && l !== l.root &&
|
|
3360
|
+
!u && l.options.layoutScroll && l.scroll && l !== l.root && pt(a, {
|
|
3361
3361
|
x: -l.scroll.offset.x,
|
|
3362
3362
|
y: -l.scroll.offset.y
|
|
3363
|
-
}), Ke(l.latestValues) &&
|
|
3363
|
+
}), Ke(l.latestValues) && pt(a, l.latestValues);
|
|
3364
3364
|
}
|
|
3365
|
-
return Ke(this.latestValues) &&
|
|
3365
|
+
return Ke(this.latestValues) && pt(a, this.latestValues), a;
|
|
3366
3366
|
}
|
|
3367
3367
|
removeTransform(s) {
|
|
3368
3368
|
const u = _();
|
|
@@ -3457,10 +3457,10 @@ function ka({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3457
3457
|
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
|
|
3458
3458
|
}
|
|
3459
3459
|
createProjectionDeltas() {
|
|
3460
|
-
this.prevProjectionDelta =
|
|
3460
|
+
this.prevProjectionDelta = ft(), this.projectionDelta = ft(), this.projectionDeltaWithTransform = ft();
|
|
3461
3461
|
}
|
|
3462
3462
|
setAnimationOrigin(s, u = !1) {
|
|
3463
|
-
const a = this.snapshot, c = a ? a.latestValues : {}, l = { ...this.latestValues }, d =
|
|
3463
|
+
const a = this.snapshot, c = a ? a.latestValues : {}, l = { ...this.latestValues }, d = ft();
|
|
3464
3464
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !u;
|
|
3465
3465
|
const f = _(), h = a ? a.source : void 0, p = this.layout ? this.layout.source : void 0, g = h !== p, m = this.getStack(), b = !m || m.members.length <= 1, I = !!(g && !b && this.options.crossfade === !0 && !this.path.some(kf));
|
|
3466
3466
|
this.animationProgress = 0;
|
|
@@ -3502,7 +3502,7 @@ function ka({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
3502
3502
|
const f = be(this.layout.layoutBox.y);
|
|
3503
3503
|
a.y.min = s.target.y.min, a.y.max = a.y.min + f;
|
|
3504
3504
|
}
|
|
3505
|
-
ve(u, a),
|
|
3505
|
+
ve(u, a), pt(u, l), Rt(this.projectionDeltaWithTransform, this.layoutCorrected, u, l);
|
|
3506
3506
|
}
|
|
3507
3507
|
}
|
|
3508
3508
|
registerSharedNode(s, u) {
|
|
@@ -3617,9 +3617,9 @@ function Bf(e) {
|
|
|
3617
3617
|
const f = s ? n.measuredBox[d] : n.layoutBox[d], h = be(i[d]);
|
|
3618
3618
|
f.max = f.min + h, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[d].max = e.relativeTarget[d].min + h);
|
|
3619
3619
|
});
|
|
3620
|
-
const u =
|
|
3620
|
+
const u = ft();
|
|
3621
3621
|
Rt(u, i, n.layoutBox);
|
|
3622
|
-
const a =
|
|
3622
|
+
const a = ft();
|
|
3623
3623
|
s ? Rt(a, e.applyTransform(r, !0), n.measuredBox) : Rt(a, i, n.layoutBox);
|
|
3624
3624
|
const c = !Xa(u);
|
|
3625
3625
|
let l = !1;
|
|
@@ -3935,7 +3935,7 @@ const oh = {
|
|
|
3935
3935
|
transformPagePoint: (e) => e,
|
|
3936
3936
|
isStatic: !1,
|
|
3937
3937
|
reducedMotion: "never"
|
|
3938
|
-
}), Zn = De({}), dr = typeof window < "u", Ja = dr ? Fs :
|
|
3938
|
+
}), Zn = De({}), dr = typeof window < "u", Ja = dr ? Fs : Ce, Ua = De({ strict: !1 });
|
|
3939
3939
|
function ah(e, t, n, i, r) {
|
|
3940
3940
|
var o, s;
|
|
3941
3941
|
const { visualElement: u } = z(Zn), a = z(Ua), c = z(Xn), l = z(lr).reducedMotion, d = te();
|
|
@@ -3954,7 +3954,7 @@ function ah(e, t, n, i, r) {
|
|
|
3954
3954
|
const p = n[ya], g = te(!!p && !(!((o = window.MotionHandoffIsComplete) === null || o === void 0) && o.call(window, p)) && ((s = window.MotionHasOptimisedAnimation) === null || s === void 0 ? void 0 : s.call(window, p)));
|
|
3955
3955
|
return Ja(() => {
|
|
3956
3956
|
f && (window.MotionIsMounted = !0, f.updateFeatures(), cr.render(f.render), g.current && f.animationState && f.animationState.animateChanges());
|
|
3957
|
-
}),
|
|
3957
|
+
}), Ce(() => {
|
|
3958
3958
|
f && (!g.current && f.animationState && f.animationState.animateChanges(), g.current && (queueMicrotask(() => {
|
|
3959
3959
|
var m;
|
|
3960
3960
|
(m = window.MotionHandoffMarkAsComplete) === null || m === void 0 || m.call(window, p);
|
|
@@ -3966,7 +3966,7 @@ function uh(e, t, n, i) {
|
|
|
3966
3966
|
e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : _a(e.parent)), e.projection.setOptions({
|
|
3967
3967
|
layoutId: r,
|
|
3968
3968
|
layout: o,
|
|
3969
|
-
alwaysMeasureLayout: !!s || u &&
|
|
3969
|
+
alwaysMeasureLayout: !!s || u && dt(u),
|
|
3970
3970
|
visualElement: e,
|
|
3971
3971
|
/**
|
|
3972
3972
|
* TODO: Update options in an effect. This could be tricky as it'll be too late
|
|
@@ -3988,7 +3988,7 @@ function _a(e) {
|
|
|
3988
3988
|
function ch(e, t, n) {
|
|
3989
3989
|
return $(
|
|
3990
3990
|
(i) => {
|
|
3991
|
-
i && e.mount && e.mount(i), t && (i ? t.mount(i) : t.unmount()), n && (typeof n == "function" ? n(i) :
|
|
3991
|
+
i && e.mount && e.mount(i), t && (i ? t.mount(i) : t.unmount()), n && (typeof n == "function" ? n(i) : dt(n) && (n.current = i));
|
|
3992
3992
|
},
|
|
3993
3993
|
/**
|
|
3994
3994
|
* Only pass a new ref callback to React if we've received a visual element
|
|
@@ -4040,15 +4040,15 @@ const Yo = {
|
|
|
4040
4040
|
pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"],
|
|
4041
4041
|
inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
|
|
4042
4042
|
layout: ["layout", "layoutId"]
|
|
4043
|
-
},
|
|
4043
|
+
}, vt = {};
|
|
4044
4044
|
for (const e in Yo)
|
|
4045
|
-
|
|
4045
|
+
vt[e] = {
|
|
4046
4046
|
isEnabled: (t) => Yo[e].some((n) => !!t[n])
|
|
4047
4047
|
};
|
|
4048
4048
|
function fh(e) {
|
|
4049
4049
|
for (const t in e)
|
|
4050
|
-
|
|
4051
|
-
...
|
|
4050
|
+
vt[t] = {
|
|
4051
|
+
...vt[t],
|
|
4052
4052
|
...e[t]
|
|
4053
4053
|
};
|
|
4054
4054
|
}
|
|
@@ -4084,7 +4084,7 @@ function gh(e, t) {
|
|
|
4084
4084
|
}
|
|
4085
4085
|
}
|
|
4086
4086
|
function bh(e) {
|
|
4087
|
-
const { drag: t, layout: n } =
|
|
4087
|
+
const { drag: t, layout: n } = vt;
|
|
4088
4088
|
if (!t && !n)
|
|
4089
4089
|
return {};
|
|
4090
4090
|
const i = { ...t, ...n };
|
|
@@ -4572,8 +4572,8 @@ class zh {
|
|
|
4572
4572
|
}
|
|
4573
4573
|
updateFeatures() {
|
|
4574
4574
|
let t = "animation";
|
|
4575
|
-
for (t in
|
|
4576
|
-
const n =
|
|
4575
|
+
for (t in vt) {
|
|
4576
|
+
const n = vt[t];
|
|
4577
4577
|
if (!n)
|
|
4578
4578
|
continue;
|
|
4579
4579
|
const { isEnabled: i, Feature: r } = n;
|
|
@@ -4878,7 +4878,7 @@ function $o(e) {
|
|
|
4878
4878
|
}
|
|
4879
4879
|
const yr = ({ children: e, exitBeforeEnter: t, custom: n, initial: i = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: s = "sync" }) => {
|
|
4880
4880
|
Ze(!t, "Replace exitBeforeEnter with mode='wait'");
|
|
4881
|
-
const u = pe(() => $o(e), [e]), a = u.map(en), c = te(!0), l = te(u), d = pr(() => /* @__PURE__ */ new Map()), [f, h] =
|
|
4881
|
+
const u = pe(() => $o(e), [e]), a = u.map(en), c = te(!0), l = te(u), d = pr(() => /* @__PURE__ */ new Map()), [f, h] = se(u), [p, g] = se(u);
|
|
4882
4882
|
Ja(() => {
|
|
4883
4883
|
c.current = !1, l.current = u;
|
|
4884
4884
|
for (let I = 0; I < p.length; I++) {
|
|
@@ -4932,7 +4932,7 @@ const yr = ({ children: e, exitBeforeEnter: t, custom: n, initial: i = !0, onExi
|
|
|
4932
4932
|
const { id: t, type: n, title: i } = e, { icon: r } = ep(n), o = 4e3, s = ac(), u = $(() => {
|
|
4933
4933
|
s.removeToast(t);
|
|
4934
4934
|
}, [t, s]);
|
|
4935
|
-
return
|
|
4935
|
+
return Ce(() => {
|
|
4936
4936
|
const a = setTimeout(() => {
|
|
4937
4937
|
setTimeout(() => {
|
|
4938
4938
|
u();
|
|
@@ -4941,15 +4941,15 @@ const yr = ({ children: e, exitBeforeEnter: t, custom: n, initial: i = !0, onExi
|
|
|
4941
4941
|
return () => {
|
|
4942
4942
|
clearTimeout(a);
|
|
4943
4943
|
};
|
|
4944
|
-
}, []), /* @__PURE__ */ T(Ot.div, { layout: !0, initial: { opacity: 0, y: 50, scale: 0.3 }, animate: { opacity: 1, y: 0, scale: 1 }, exit: { opacity: 0, y: 0, scale: 0.8 }, children: /* @__PURE__ */ me("div", { className:
|
|
4944
|
+
}, []), /* @__PURE__ */ T(Ot.div, { layout: !0, initial: { opacity: 0, y: 50, scale: 0.3 }, animate: { opacity: 1, y: 0, scale: 1 }, exit: { opacity: 0, y: 0, scale: 0.8 }, children: /* @__PURE__ */ me("div", { className: rt(Ve.toast, Ve[n]), children: [
|
|
4945
4945
|
/* @__PURE__ */ T("div", { className: Ve["toast-icon"], children: r }),
|
|
4946
4946
|
/* @__PURE__ */ T("div", { className: Ve["toast-content"], children: /* @__PURE__ */ T("p", { className: Ve["toast-title"], children: i }) }),
|
|
4947
4947
|
/* @__PURE__ */ T("div", { className: Ve["toast-close"], children: /* @__PURE__ */ T("button", { type: "button", className: Ve["toast-close-btn"], onClick: u, children: /* @__PURE__ */ T("span", { className: Ve["toast-close-btn-icon"], children: /* @__PURE__ */ T(Pc, {}) }) }) })
|
|
4948
4948
|
] }) }, t);
|
|
4949
4949
|
};
|
|
4950
4950
|
function np(e) {
|
|
4951
|
-
const { children: t } = e, [n, i] =
|
|
4952
|
-
|
|
4951
|
+
const { children: t } = e, [n, i] = se(!1);
|
|
4952
|
+
Ce(() => {
|
|
4953
4953
|
i(!0);
|
|
4954
4954
|
}, []);
|
|
4955
4955
|
const r = document.getElementById("biznext-ui-toast-portal");
|
|
@@ -4957,7 +4957,7 @@ function np(e) {
|
|
|
4957
4957
|
}
|
|
4958
4958
|
const ip = (e) => {
|
|
4959
4959
|
const { toasts: t, toastPosition: n = "top-center" } = e;
|
|
4960
|
-
return /* @__PURE__ */ T(np, { children: /* @__PURE__ */ T("div", { className:
|
|
4960
|
+
return /* @__PURE__ */ T(np, { children: /* @__PURE__ */ T("div", { className: rt(Ve["toasts-container"], Ve[n]), children: /* @__PURE__ */ T(yr, { children: t.map((i) => /* @__PURE__ */ T(tp, { id: i.id, type: i.type, title: i.title }, i.id)) }) }) });
|
|
4961
4961
|
};
|
|
4962
4962
|
var K = [];
|
|
4963
4963
|
for (var ui = 0; ui < 256; ++ui)
|
|
@@ -4993,9 +4993,9 @@ function cp() {
|
|
|
4993
4993
|
);
|
|
4994
4994
|
}
|
|
4995
4995
|
function lp(e) {
|
|
4996
|
-
return
|
|
4996
|
+
return st({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M7 4V2H17V4H22V6H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V6H2V4H7ZM6 6V20H18V6H6ZM9 9H11V17H9V9ZM13 9H15V17H13V9Z" }, child: [] }] })(e);
|
|
4997
4997
|
}
|
|
4998
|
-
const dp = "biznext-ui-wec4qWkj9NU-c", fp = "biznext-ui-mcehjNn9Nl0-9", hp = "biznext-ui-pYq-UQoFMHM-a", pp = "biznext-ui-bgVORylkzc0-6",
|
|
4998
|
+
const dp = "biznext-ui-wec4qWkj9NU-c", fp = "biznext-ui-mcehjNn9Nl0-9", hp = "biznext-ui-pYq-UQoFMHM-a", pp = "biznext-ui-bgVORylkzc0-6", Se = {
|
|
4999
4999
|
"confirm-dialog": "biznext-ui-4yyscqDACxw-e",
|
|
5000
5000
|
"confirm-dialog-overlay": "biznext-ui-ylpaWxEFaTU-c",
|
|
5001
5001
|
"confirm-dialog-content": "biznext-ui-xwshXokj5ZA-c",
|
|
@@ -5011,8 +5011,8 @@ const dp = "biznext-ui-wec4qWkj9NU-c", fp = "biznext-ui-mcehjNn9Nl0-9", hp = "bi
|
|
|
5011
5011
|
success: pp
|
|
5012
5012
|
};
|
|
5013
5013
|
function mp(e) {
|
|
5014
|
-
const { children: t } = e, [n, i] =
|
|
5015
|
-
|
|
5014
|
+
const { children: t } = e, [n, i] = se(!1);
|
|
5015
|
+
Ce(() => {
|
|
5016
5016
|
i(!0);
|
|
5017
5017
|
}, []);
|
|
5018
5018
|
const r = document.getElementById("biznext-ui-confirm-dialog-portal");
|
|
@@ -5024,24 +5024,24 @@ const gp = (e) => {
|
|
|
5024
5024
|
}, d = () => {
|
|
5025
5025
|
a(), n();
|
|
5026
5026
|
};
|
|
5027
|
-
return /* @__PURE__ */ T(mp, { children: /* @__PURE__ */ T("div", { className:
|
|
5027
|
+
return /* @__PURE__ */ T(mp, { children: /* @__PURE__ */ T("div", { className: Se["confirm-dialog-wrapper"], children: /* @__PURE__ */ T(yr, { children: t && /* @__PURE__ */ T(Ot.div, { className: Se["confirm-dialog-overlay"], initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: /* @__PURE__ */ T(
|
|
5028
5028
|
Ot.div,
|
|
5029
5029
|
{
|
|
5030
|
-
className:
|
|
5030
|
+
className: rt(Se["confirm-dialog"], Se[r]),
|
|
5031
5031
|
initial: { opacity: 0, scale: 0.95 },
|
|
5032
5032
|
animate: { opacity: 1, scale: 1 },
|
|
5033
5033
|
exit: { opacity: 0, scale: 0.95 },
|
|
5034
|
-
children: /* @__PURE__ */ me("div", { className:
|
|
5035
|
-
/* @__PURE__ */ me("div", { className:
|
|
5036
|
-
/* @__PURE__ */ T("div", { className:
|
|
5034
|
+
children: /* @__PURE__ */ me("div", { className: Se["confirm-dialog-content"], children: [
|
|
5035
|
+
/* @__PURE__ */ me("div", { className: Se["confirm-dialog-body"], children: [
|
|
5036
|
+
/* @__PURE__ */ T("div", { className: Se["confirm-dialog-icon-container"], children: /* @__PURE__ */ T("div", { className: Se["confirm-dialog-icon"], children: u || /* @__PURE__ */ T(lp, {}) }) }),
|
|
5037
5037
|
/* @__PURE__ */ me("div", { children: [
|
|
5038
5038
|
/* @__PURE__ */ T("h2", { children: o }),
|
|
5039
5039
|
/* @__PURE__ */ T("p", { children: s })
|
|
5040
5040
|
] })
|
|
5041
5041
|
] }),
|
|
5042
|
-
/* @__PURE__ */ me("div", { className:
|
|
5043
|
-
/* @__PURE__ */ T("button", { type: "button", className:
|
|
5044
|
-
/* @__PURE__ */ T("button", { type: "button", className:
|
|
5042
|
+
/* @__PURE__ */ me("div", { className: Se["confirm-dialog-footer"], children: [
|
|
5043
|
+
/* @__PURE__ */ T("button", { type: "button", className: Se["confirm-dialog-footer-close-btn"], onClick: l, children: c && c.onCloseTitle ? c.onCloseTitle : "Cancel" }),
|
|
5044
|
+
/* @__PURE__ */ T("button", { type: "button", className: Se["confirm-dialog-footer-confirm-btn"], onClick: d, children: c && c.onConfirmTitle ? c.onConfirmTitle : "Confirm" })
|
|
5045
5045
|
] })
|
|
5046
5046
|
] })
|
|
5047
5047
|
}
|
|
@@ -5062,7 +5062,7 @@ const gp = (e) => {
|
|
|
5062
5062
|
o("error", v, C);
|
|
5063
5063
|
}, removeToast: (v) => {
|
|
5064
5064
|
r({ type: "DELETE_TOAST", payload: { id: v, title: "", type: "" } });
|
|
5065
|
-
} }, [f, h] =
|
|
5065
|
+
} }, [f, h] = se({}), [p, g] = se(!1), m = (v) => {
|
|
5066
5066
|
h(v), g(!0);
|
|
5067
5067
|
}, b = () => {
|
|
5068
5068
|
g(!1);
|
|
@@ -5073,10 +5073,11 @@ const gp = (e) => {
|
|
|
5073
5073
|
/* @__PURE__ */ T(gp, { isOpen: p, onClose: b, config: f }),
|
|
5074
5074
|
e
|
|
5075
5075
|
] }) });
|
|
5076
|
-
}, bp = "biznext-ui-Mao59ye15po-3", vp = "biznext-ui-5bDq6-PrHF4-e", yp = "biznext-ui-X9XXG3R3kc4-5", Ip = "biznext-ui-g7IKSnXitqg-8", Cp = "biznext-ui-T4NhvYHqFMo-4",
|
|
5076
|
+
}, bp = "biznext-ui-Mao59ye15po-3", vp = "biznext-ui-5bDq6-PrHF4-e", yp = "biznext-ui-X9XXG3R3kc4-5", Ip = "biznext-ui-g7IKSnXitqg-8", Cp = "biznext-ui-T4NhvYHqFMo-4", Ie = {
|
|
5077
5077
|
"modal-wrapper": "biznext-ui-n2Vjx4mdikE-9",
|
|
5078
5078
|
"modal-overlay": "biznext-ui-6sKjk6L11EQ-e",
|
|
5079
5079
|
modal: bp,
|
|
5080
|
+
"scale-zoom-in": "biznext-ui-a7p3n176fMY-6",
|
|
5080
5081
|
left: vp,
|
|
5081
5082
|
"left-slider": "biznext-ui-dhv7A0opLyg-7",
|
|
5082
5083
|
right: yp,
|
|
@@ -5098,27 +5099,33 @@ const gp = (e) => {
|
|
|
5098
5099
|
"modal-footer-close-btn": "biznext-ui-acScPNehEic-6"
|
|
5099
5100
|
};
|
|
5100
5101
|
function xp(e) {
|
|
5101
|
-
return
|
|
5102
|
+
return st({ tag: "svg", attr: { viewBox: "0 0 352 512" }, child: [{ tag: "path", attr: { d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" }, child: [] }] })(e);
|
|
5102
5103
|
}
|
|
5103
5104
|
function Ap(e) {
|
|
5104
|
-
const { children: t } = e, [n, i] =
|
|
5105
|
-
|
|
5105
|
+
const { children: t } = e, [n, i] = se(!1);
|
|
5106
|
+
Ce(() => {
|
|
5106
5107
|
i(!0);
|
|
5107
5108
|
}, []);
|
|
5108
5109
|
const r = document.getElementById("biznext-ui-modal-portal");
|
|
5109
5110
|
return n && r ? it(t, r) : it(t, document.body);
|
|
5110
5111
|
}
|
|
5111
5112
|
const Ir = De({ onClose: () => console.warn("Biznext-UI-Modal: Close Function not Implemented!") }), Yt = (e) => {
|
|
5112
|
-
const { type: t, index: n, height: i, width: r, sx: o, isOpen: s, onClose: u, children: a } = e, c = 9999 + (n || 0), [l, d] =
|
|
5113
|
-
|
|
5113
|
+
const { type: t, index: n, height: i, width: r, sx: o, isOpen: s, onClose: u, children: a } = e, c = 9999 + (n || 0), [l, d] = se(!1), [f, h] = se(!1);
|
|
5114
|
+
Ce(() => {
|
|
5114
5115
|
d(!0);
|
|
5115
|
-
}, [])
|
|
5116
|
+
}, []);
|
|
5117
|
+
const p = () => {
|
|
5118
|
+
h(!0), setTimeout(() => {
|
|
5119
|
+
h(!1);
|
|
5120
|
+
}, 100);
|
|
5121
|
+
};
|
|
5122
|
+
return /* @__PURE__ */ T(Ir.Provider, { value: { onClose: u }, children: l ? /* @__PURE__ */ T(Ap, { children: /* @__PURE__ */ T(yr, { children: s && /* @__PURE__ */ me("div", { className: Ie["modal-wrapper"], children: [
|
|
5116
5123
|
/* @__PURE__ */ T(
|
|
5117
5124
|
Ot.div,
|
|
5118
5125
|
{
|
|
5119
|
-
className:
|
|
5126
|
+
className: rt(Ie["modal-overlay"]),
|
|
5120
5127
|
style: { zIndex: c },
|
|
5121
|
-
onClick:
|
|
5128
|
+
onClick: p,
|
|
5122
5129
|
initial: { opacity: 0 },
|
|
5123
5130
|
animate: { opacity: 1 },
|
|
5124
5131
|
exit: { opacity: 0 }
|
|
@@ -5127,7 +5134,7 @@ const Ir = De({ onClose: () => console.warn("Biznext-UI-Modal: Close Function no
|
|
|
5127
5134
|
/* @__PURE__ */ T(
|
|
5128
5135
|
Ot.div,
|
|
5129
5136
|
{
|
|
5130
|
-
className:
|
|
5137
|
+
className: rt(Ie.modal, f && Ie["scale-zoom-in"], Ie[t]),
|
|
5131
5138
|
style: { height: i, width: r, zIndex: c, ...o },
|
|
5132
5139
|
initial: { opacity: 0, scale: 0.95 },
|
|
5133
5140
|
animate: { opacity: 1, scale: 1 },
|
|
@@ -5136,17 +5143,17 @@ const Ir = De({ onClose: () => console.warn("Biznext-UI-Modal: Close Function no
|
|
|
5136
5143
|
}
|
|
5137
5144
|
)
|
|
5138
5145
|
] }) }) }) : null });
|
|
5139
|
-
}, Sp = ({ children: e }) => /* @__PURE__ */ T("div", { className:
|
|
5146
|
+
}, Sp = ({ children: e }) => /* @__PURE__ */ T("div", { className: Ie["modal-content"], children: e }), Tp = ({ children: e }) => {
|
|
5140
5147
|
const { onClose: t } = z(Ir);
|
|
5141
|
-
return /* @__PURE__ */ me("header", { id: "handle", className:
|
|
5148
|
+
return /* @__PURE__ */ me("header", { id: "handle", className: Ie["modal-header"], children: [
|
|
5142
5149
|
e,
|
|
5143
|
-
/* @__PURE__ */ T("button", { type: "button", className:
|
|
5150
|
+
/* @__PURE__ */ T("button", { type: "button", className: Ie["module-header-close-btn"], onClick: t, children: /* @__PURE__ */ T(xp, {}) })
|
|
5144
5151
|
] });
|
|
5145
|
-
}, Ep = ({ children: e }) => /* @__PURE__ */ T("h2", { className:
|
|
5152
|
+
}, Ep = ({ children: e }) => /* @__PURE__ */ T("h2", { className: Ie["modal-title"], children: e }), Pp = ({ children: e }) => /* @__PURE__ */ T("div", { className: Ie["modal-body"], children: e }), Vp = (e) => {
|
|
5146
5153
|
const { children: t, closeTitle: n } = e, { onClose: i } = z(Ir);
|
|
5147
|
-
return /* @__PURE__ */ me("footer", { className:
|
|
5154
|
+
return /* @__PURE__ */ me("footer", { className: Ie["modal-footer"], children: [
|
|
5148
5155
|
t,
|
|
5149
|
-
/* @__PURE__ */ T("button", { type: "button", className:
|
|
5156
|
+
/* @__PURE__ */ T("button", { type: "button", className: Ie["modal-footer-close-btn"], onClick: i, children: n || "Cancel" })
|
|
5150
5157
|
] });
|
|
5151
5158
|
};
|
|
5152
5159
|
Yt.Content = Sp;
|
|
@@ -5166,27 +5173,27 @@ const Xb = () => z(cu), wp = "biznext-ui-WgISRe1bJDU-5", Fp = "biznext-ui-S1AWtF
|
|
|
5166
5173
|
"form-select-control": "biznext-ui-TyZSBF2HLh0-4",
|
|
5167
5174
|
"form-input-group-error-text": "biznext-ui-npOI3UC2M38-9"
|
|
5168
5175
|
};
|
|
5169
|
-
function
|
|
5176
|
+
function ot(e) {
|
|
5170
5177
|
"@babel/helpers - typeof";
|
|
5171
|
-
return
|
|
5178
|
+
return ot = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
5172
5179
|
return typeof t;
|
|
5173
5180
|
} : function(t) {
|
|
5174
5181
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
5175
|
-
},
|
|
5182
|
+
}, ot(e);
|
|
5176
5183
|
}
|
|
5177
5184
|
function Rp(e, t) {
|
|
5178
|
-
if (
|
|
5185
|
+
if (ot(e) != "object" || !e) return e;
|
|
5179
5186
|
var n = e[Symbol.toPrimitive];
|
|
5180
5187
|
if (n !== void 0) {
|
|
5181
5188
|
var i = n.call(e, t || "default");
|
|
5182
|
-
if (
|
|
5189
|
+
if (ot(i) != "object") return i;
|
|
5183
5190
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
5184
5191
|
}
|
|
5185
5192
|
return (t === "string" ? String : Number)(e);
|
|
5186
5193
|
}
|
|
5187
5194
|
function lu(e) {
|
|
5188
5195
|
var t = Rp(e, "string");
|
|
5189
|
-
return
|
|
5196
|
+
return ot(t) == "symbol" ? t : t + "";
|
|
5190
5197
|
}
|
|
5191
5198
|
function wt(e, t, n) {
|
|
5192
5199
|
return (t = lu(t)) in e ? Object.defineProperty(e, t, {
|
|
@@ -5280,11 +5287,11 @@ function ke(e, t) {
|
|
|
5280
5287
|
}
|
|
5281
5288
|
var Np = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
5282
5289
|
function Lp(e) {
|
|
5283
|
-
var t = e.defaultInputValue, n = t === void 0 ? "" : t, i = e.defaultMenuIsOpen, r = i === void 0 ? !1 : i, o = e.defaultValue, s = o === void 0 ? null : o, u = e.inputValue, a = e.menuIsOpen, c = e.onChange, l = e.onInputChange, d = e.onMenuClose, f = e.onMenuOpen, h = e.value, p = ke(e, Np), g =
|
|
5290
|
+
var t = e.defaultInputValue, n = t === void 0 ? "" : t, i = e.defaultMenuIsOpen, r = i === void 0 ? !1 : i, o = e.defaultValue, s = o === void 0 ? null : o, u = e.inputValue, a = e.menuIsOpen, c = e.onChange, l = e.onInputChange, d = e.onMenuClose, f = e.onMenuOpen, h = e.value, p = ke(e, Np), g = se(u !== void 0 ? u : n), m = Xe(g, 2), b = m[0], I = m[1], v = se(a !== void 0 ? a : r), C = Xe(v, 2), y = C[0], A = C[1], S = se(h !== void 0 ? h : s), x = Xe(S, 2), B = x[0], G = x[1], Z = $(function(X, le) {
|
|
5284
5291
|
typeof c == "function" && c(X, le), G(X);
|
|
5285
5292
|
}, [c]), Y = $(function(X, le) {
|
|
5286
|
-
var
|
|
5287
|
-
typeof l == "function" && (
|
|
5293
|
+
var ae;
|
|
5294
|
+
typeof l == "function" && (ae = l(X, le)), I(ae !== void 0 ? ae : X);
|
|
5288
5295
|
}, [l]), fe = $(function() {
|
|
5289
5296
|
typeof f == "function" && f(), A(!0);
|
|
5290
5297
|
}, [f]), ce = $(function() {
|
|
@@ -5360,7 +5367,7 @@ function Zp(e) {
|
|
|
5360
5367
|
return e;
|
|
5361
5368
|
}
|
|
5362
5369
|
function Hp(e, t) {
|
|
5363
|
-
if (t && (
|
|
5370
|
+
if (t && (ot(t) == "object" || typeof t == "function")) return t;
|
|
5364
5371
|
if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
5365
5372
|
return Zp(e);
|
|
5366
5373
|
}
|
|
@@ -5463,9 +5470,9 @@ function nn(e, t) {
|
|
|
5463
5470
|
function im(e, t) {
|
|
5464
5471
|
return e.map(t).join("");
|
|
5465
5472
|
}
|
|
5466
|
-
var zn = 1,
|
|
5473
|
+
var zn = 1, yt = 1, gu = 0, de = 0, Q = 0, xt = "";
|
|
5467
5474
|
function jn(e, t, n, i, r, o, s) {
|
|
5468
|
-
return { value: e, root: t, parent: n, type: i, props: r, children: o, line: zn, column:
|
|
5475
|
+
return { value: e, root: t, parent: n, type: i, props: r, children: o, line: zn, column: yt, length: s, return: "" };
|
|
5469
5476
|
}
|
|
5470
5477
|
function Tt(e, t) {
|
|
5471
5478
|
return em(jn("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
@@ -5474,10 +5481,10 @@ function rm() {
|
|
|
5474
5481
|
return Q;
|
|
5475
5482
|
}
|
|
5476
5483
|
function om() {
|
|
5477
|
-
return Q = de > 0 ? ee(xt, --de) : 0,
|
|
5484
|
+
return Q = de > 0 ? ee(xt, --de) : 0, yt--, Q === 10 && (yt = 1, zn--), Q;
|
|
5478
5485
|
}
|
|
5479
5486
|
function ge() {
|
|
5480
|
-
return Q = de < gu ? ee(xt, de++) : 0,
|
|
5487
|
+
return Q = de < gu ? ee(xt, de++) : 0, yt++, Q === 10 && (yt = 1, zn++), Q;
|
|
5481
5488
|
}
|
|
5482
5489
|
function Me() {
|
|
5483
5490
|
return ee(xt, de);
|
|
@@ -5521,7 +5528,7 @@ function Zt(e) {
|
|
|
5521
5528
|
return 0;
|
|
5522
5529
|
}
|
|
5523
5530
|
function bu(e) {
|
|
5524
|
-
return zn =
|
|
5531
|
+
return zn = yt = 1, gu = we(xt = e), de = 0, [];
|
|
5525
5532
|
}
|
|
5526
5533
|
function vu(e) {
|
|
5527
5534
|
return xt = "", e;
|
|
@@ -5672,7 +5679,7 @@ function dm(e, t, n) {
|
|
|
5672
5679
|
function ns(e, t, n, i) {
|
|
5673
5680
|
return jn(e, t, n, Ar, Xt(e, 0, i), Xt(e, i + 1, -1), i);
|
|
5674
5681
|
}
|
|
5675
|
-
function
|
|
5682
|
+
function mt(e, t) {
|
|
5676
5683
|
for (var n = "", i = Sr(e), r = 0; r < i; r++)
|
|
5677
5684
|
n += t(e[r], r, e, t) || "";
|
|
5678
5685
|
return n;
|
|
@@ -5687,11 +5694,11 @@ function fm(e, t, n, i) {
|
|
|
5687
5694
|
case hu:
|
|
5688
5695
|
return "";
|
|
5689
5696
|
case pu:
|
|
5690
|
-
return e.return = e.value + "{" +
|
|
5697
|
+
return e.return = e.value + "{" + mt(e.children, i) + "}";
|
|
5691
5698
|
case xr:
|
|
5692
5699
|
e.value = e.props.join(",");
|
|
5693
5700
|
}
|
|
5694
|
-
return we(n =
|
|
5701
|
+
return we(n = mt(e.children, i)) ? e.return = e.value + "{" + n + "}" : "";
|
|
5695
5702
|
}
|
|
5696
5703
|
function hm(e) {
|
|
5697
5704
|
var t = Sr(e);
|
|
@@ -5876,7 +5883,7 @@ var Cm = function(t, n, i, r) {
|
|
|
5876
5883
|
t.return = yu(t.value, t.length);
|
|
5877
5884
|
break;
|
|
5878
5885
|
case pu:
|
|
5879
|
-
return
|
|
5886
|
+
return mt([Tt(t, {
|
|
5880
5887
|
value: D(t.value, "@", "@" + M)
|
|
5881
5888
|
})], r);
|
|
5882
5889
|
case xr:
|
|
@@ -5884,11 +5891,11 @@ var Cm = function(t, n, i, r) {
|
|
|
5884
5891
|
switch (nm(o, /(::plac\w+|:read-\w+)/)) {
|
|
5885
5892
|
case ":read-only":
|
|
5886
5893
|
case ":read-write":
|
|
5887
|
-
return
|
|
5894
|
+
return mt([Tt(t, {
|
|
5888
5895
|
props: [D(o, /:(read-\w+)/, ":" + Pn + "$1")]
|
|
5889
5896
|
})], r);
|
|
5890
5897
|
case "::placeholder":
|
|
5891
|
-
return
|
|
5898
|
+
return mt([Tt(t, {
|
|
5892
5899
|
props: [D(o, /:(plac\w+)/, ":" + M + "input-$1")]
|
|
5893
5900
|
}), Tt(t, {
|
|
5894
5901
|
props: [D(o, /:(plac\w+)/, ":" + Pn + "$1")]
|
|
@@ -5924,7 +5931,7 @@ var Cm = function(t, n, i, r) {
|
|
|
5924
5931
|
var l, d = [fm, pm(function(g) {
|
|
5925
5932
|
l.insert(g);
|
|
5926
5933
|
})], f = hm(c.concat(r, d)), h = function(m) {
|
|
5927
|
-
return
|
|
5934
|
+
return mt(lm(m), f);
|
|
5928
5935
|
};
|
|
5929
5936
|
a = function(m, b, I, v) {
|
|
5930
5937
|
l = I, h(m ? m + "{" + b.styles + "}" : b.styles), v && (p.inserted[b.name] = !0);
|
|
@@ -6072,21 +6079,21 @@ function Tm() {
|
|
|
6072
6079
|
}
|
|
6073
6080
|
var y = a, A = c, S = u, x = s, B = t, G = l, Z = i, Y = p, fe = h, ce = n, J = o, k = r, W = d, X = !1;
|
|
6074
6081
|
function le(E) {
|
|
6075
|
-
return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
6082
|
+
return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ae(E) || C(E) === a;
|
|
6076
6083
|
}
|
|
6077
|
-
function
|
|
6084
|
+
function ae(E) {
|
|
6078
6085
|
return C(E) === c;
|
|
6079
6086
|
}
|
|
6080
|
-
function
|
|
6087
|
+
function at(E) {
|
|
6081
6088
|
return C(E) === u;
|
|
6082
6089
|
}
|
|
6083
6090
|
function U(E) {
|
|
6084
6091
|
return C(E) === s;
|
|
6085
6092
|
}
|
|
6086
|
-
function
|
|
6093
|
+
function ue(E) {
|
|
6087
6094
|
return typeof E == "object" && E !== null && E.$$typeof === t;
|
|
6088
6095
|
}
|
|
6089
|
-
function
|
|
6096
|
+
function xe(E) {
|
|
6090
6097
|
return C(E) === l;
|
|
6091
6098
|
}
|
|
6092
6099
|
function Ee(E) {
|
|
@@ -6098,10 +6105,10 @@ function Tm() {
|
|
|
6098
6105
|
function Pe(E) {
|
|
6099
6106
|
return C(E) === h;
|
|
6100
6107
|
}
|
|
6101
|
-
function
|
|
6108
|
+
function Ae(E) {
|
|
6102
6109
|
return C(E) === n;
|
|
6103
6110
|
}
|
|
6104
|
-
function
|
|
6111
|
+
function ut(E) {
|
|
6105
6112
|
return C(E) === o;
|
|
6106
6113
|
}
|
|
6107
6114
|
function Un(E) {
|
|
@@ -6110,7 +6117,7 @@ function Tm() {
|
|
|
6110
6117
|
function _t(E) {
|
|
6111
6118
|
return C(E) === d;
|
|
6112
6119
|
}
|
|
6113
|
-
L.AsyncMode = y, L.ConcurrentMode = A, L.ContextConsumer = S, L.ContextProvider = x, L.Element = B, L.ForwardRef = G, L.Fragment = Z, L.Lazy = Y, L.Memo = fe, L.Portal = ce, L.Profiler = J, L.StrictMode = k, L.Suspense = W, L.isAsyncMode = le, L.isConcurrentMode =
|
|
6120
|
+
L.AsyncMode = y, L.ConcurrentMode = A, L.ContextConsumer = S, L.ContextProvider = x, L.Element = B, L.ForwardRef = G, L.Fragment = Z, L.Lazy = Y, L.Memo = fe, L.Portal = ce, L.Profiler = J, L.StrictMode = k, L.Suspense = W, L.isAsyncMode = le, L.isConcurrentMode = ae, L.isContextConsumer = at, L.isContextProvider = U, L.isElement = ue, L.isForwardRef = xe, L.isFragment = Ee, L.isLazy = he, L.isMemo = Pe, L.isPortal = Ae, L.isProfiler = ut, L.isStrictMode = Un, L.isSuspense = _t, L.isValidElementType = v, L.typeOf = C;
|
|
6114
6121
|
}()), L;
|
|
6115
6122
|
}
|
|
6116
6123
|
process.env.NODE_ENV === "production" ? Di.exports = Sm() : Di.exports = Tm();
|
|
@@ -6689,7 +6696,7 @@ function fg(e, t) {
|
|
|
6689
6696
|
}).join(" ");
|
|
6690
6697
|
}
|
|
6691
6698
|
var fs = function(t) {
|
|
6692
|
-
return Cg(t) ? t.filter(Boolean) :
|
|
6699
|
+
return Cg(t) ? t.filter(Boolean) : ot(t) === "object" && t !== null ? [t] : [];
|
|
6693
6700
|
}, Ru = function(t) {
|
|
6694
6701
|
t.className, t.clearValue, t.cx, t.getStyles, t.getClassNames, t.getValue, t.hasValue, t.isMulti, t.isRtl, t.options, t.selectOption, t.selectProps, t.setValue, t.theme;
|
|
6695
6702
|
var n = ke(t, lg);
|
|
@@ -6883,7 +6890,7 @@ var Mu = function(t) {
|
|
|
6883
6890
|
marginTop: u.menuGutter
|
|
6884
6891
|
});
|
|
6885
6892
|
}, Du = /* @__PURE__ */ De(null), Vg = function(t) {
|
|
6886
|
-
var n = t.children, i = t.minMenuHeight, r = t.maxMenuHeight, o = t.menuPlacement, s = t.menuPosition, u = t.menuShouldScrollIntoView, a = t.theme, c = z(Du) || {}, l = c.setPortalPlacement, d = te(null), f =
|
|
6893
|
+
var n = t.children, i = t.minMenuHeight, r = t.maxMenuHeight, o = t.menuPlacement, s = t.menuPosition, u = t.menuShouldScrollIntoView, a = t.theme, c = z(Du) || {}, l = c.setPortalPlacement, d = te(null), f = se(r), h = Xe(f, 2), p = h[0], g = h[1], m = se(null), b = Xe(m, 2), I = b[0], v = b[1], C = a.spacing.controlHeight;
|
|
6887
6894
|
return Wi(function() {
|
|
6888
6895
|
var y = d.current;
|
|
6889
6896
|
if (y) {
|
|
@@ -6968,11 +6975,11 @@ var Mu = function(t) {
|
|
|
6968
6975
|
zIndex: 1
|
|
6969
6976
|
};
|
|
6970
6977
|
}, Wg = function(t) {
|
|
6971
|
-
var n = t.appendTo, i = t.children, r = t.controlElement, o = t.innerProps, s = t.menuPlacement, u = t.menuPosition, a = te(null), c = te(null), l =
|
|
6978
|
+
var n = t.appendTo, i = t.children, r = t.controlElement, o = t.innerProps, s = t.menuPlacement, u = t.menuPosition, a = te(null), c = te(null), l = se(Mu(s)), d = Xe(l, 2), f = d[0], h = d[1], p = pe(function() {
|
|
6972
6979
|
return {
|
|
6973
6980
|
setPortalPlacement: h
|
|
6974
6981
|
};
|
|
6975
|
-
}, []), g =
|
|
6982
|
+
}, []), g = se(null), m = Xe(g, 2), b = m[0], I = m[1], v = $(function() {
|
|
6976
6983
|
if (r) {
|
|
6977
6984
|
var S = gg(r), x = u === "fixed" ? 0 : window.pageYOffset, B = S[f] + x;
|
|
6978
6985
|
(B !== (b == null ? void 0 : b.offset) || S.left !== (b == null ? void 0 : b.rect.left) || S.width !== (b == null ? void 0 : b.rect.width)) && I({
|
|
@@ -7579,13 +7586,13 @@ var H0 = process.env.NODE_ENV === "production" ? {
|
|
|
7579
7586
|
}, [d]), B = pe(function() {
|
|
7580
7587
|
var J = "";
|
|
7581
7588
|
if (n && x.onChange) {
|
|
7582
|
-
var k = n.option, W = n.options, X = n.removedValue, le = n.removedValues,
|
|
7583
|
-
return Array.isArray(
|
|
7584
|
-
}, U = X || k ||
|
|
7589
|
+
var k = n.option, W = n.options, X = n.removedValue, le = n.removedValues, ae = n.value, at = function(Ae) {
|
|
7590
|
+
return Array.isArray(Ae) ? null : Ae;
|
|
7591
|
+
}, U = X || k || at(ae), ue = U ? f(U) : "", xe = W || le || void 0, Ee = xe ? xe.map(f) : [], he = V({
|
|
7585
7592
|
// multiSelected items are usually items that have already been selected
|
|
7586
7593
|
// or set by the user as a default value so we assume they are not disabled
|
|
7587
7594
|
isDisabled: U && g(U, u),
|
|
7588
|
-
label:
|
|
7595
|
+
label: ue,
|
|
7589
7596
|
labels: Ee
|
|
7590
7597
|
}, n);
|
|
7591
7598
|
J = x.onChange(he);
|
|
@@ -7984,7 +7991,7 @@ function eb(e) {
|
|
|
7984
7991
|
}, [h, f, d]), g = $(function(m) {
|
|
7985
7992
|
m && (m.removeEventListener("wheel", d, !1), m.removeEventListener("touchstart", f, !1), m.removeEventListener("touchmove", h, !1));
|
|
7986
7993
|
}, [h, f, d]);
|
|
7987
|
-
return
|
|
7994
|
+
return Ce(function() {
|
|
7988
7995
|
if (t) {
|
|
7989
7996
|
var m = c.current;
|
|
7990
7997
|
return p(m), function() {
|
|
@@ -8015,7 +8022,7 @@ function As() {
|
|
|
8015
8022
|
function Ss() {
|
|
8016
8023
|
return "ontouchstart" in window || navigator.maxTouchPoints;
|
|
8017
8024
|
}
|
|
8018
|
-
var Ts = !!(typeof window < "u" && window.document && window.document.createElement), Et = 0,
|
|
8025
|
+
var Ts = !!(typeof window < "u" && window.document && window.document.createElement), Et = 0, ct = {
|
|
8019
8026
|
capture: !1,
|
|
8020
8027
|
passive: !1
|
|
8021
8028
|
};
|
|
@@ -8033,7 +8040,7 @@ function tb(e) {
|
|
|
8033
8040
|
l && (l[p] = g);
|
|
8034
8041
|
}), l && (l.paddingRight = "".concat(h, "px"));
|
|
8035
8042
|
}
|
|
8036
|
-
c && Ss() && (c.addEventListener("touchmove", Cs,
|
|
8043
|
+
c && Ss() && (c.addEventListener("touchmove", Cs, ct), a && (a.addEventListener("touchstart", As, ct), a.addEventListener("touchmove", xs, ct))), Et += 1;
|
|
8037
8044
|
}
|
|
8038
8045
|
}, [i]), u = $(function(a) {
|
|
8039
8046
|
if (Ts) {
|
|
@@ -8041,10 +8048,10 @@ function tb(e) {
|
|
|
8041
8048
|
Et = Math.max(Et - 1, 0), i && Et < 1 && ys.forEach(function(d) {
|
|
8042
8049
|
var f = r.current[d];
|
|
8043
8050
|
l && (l[d] = f);
|
|
8044
|
-
}), c && Ss() && (c.removeEventListener("touchmove", Cs,
|
|
8051
|
+
}), c && Ss() && (c.removeEventListener("touchmove", Cs, ct), a && (a.removeEventListener("touchstart", As, ct), a.removeEventListener("touchmove", xs, ct)));
|
|
8045
8052
|
}
|
|
8046
8053
|
}, [i]);
|
|
8047
|
-
return
|
|
8054
|
+
return Ce(function() {
|
|
8048
8055
|
if (t) {
|
|
8049
8056
|
var a = o.current;
|
|
8050
8057
|
return s(a), function() {
|
|
@@ -9027,50 +9034,50 @@ var $u = function(t) {
|
|
|
9027
9034
|
value: function() {
|
|
9028
9035
|
var r = this, o = this.getComponents(), s = o.Group, u = o.GroupHeading, a = o.Menu, c = o.MenuList, l = o.MenuPortal, d = o.LoadingMessage, f = o.NoOptionsMessage, h = o.Option, p = this.commonProps, g = this.state.focusedOption, m = this.props, b = m.captureMenuScroll, I = m.inputValue, v = m.isLoading, C = m.loadingMessage, y = m.minMenuHeight, A = m.maxMenuHeight, S = m.menuIsOpen, x = m.menuPlacement, B = m.menuPosition, G = m.menuPortalTarget, Z = m.menuShouldBlockScroll, Y = m.menuShouldScrollIntoView, fe = m.noOptionsMessage, ce = m.onMenuScrollToTop, J = m.onMenuScrollToBottom;
|
|
9029
9036
|
if (!S) return null;
|
|
9030
|
-
var k = function(
|
|
9031
|
-
var Ee =
|
|
9037
|
+
var k = function(ue, xe) {
|
|
9038
|
+
var Ee = ue.type, he = ue.data, Pe = ue.isDisabled, Ae = ue.isSelected, ut = ue.label, Un = ue.value, _t = g === he, E = Pe ? void 0 : function() {
|
|
9032
9039
|
return r.onOptionHover(he);
|
|
9033
9040
|
}, At = Pe ? void 0 : function() {
|
|
9034
9041
|
return r.selectOption(he);
|
|
9035
|
-
}, Qe = "".concat(r.getElementId("option"), "-").concat(
|
|
9042
|
+
}, Qe = "".concat(r.getElementId("option"), "-").concat(xe), Qt = {
|
|
9036
9043
|
id: Qe,
|
|
9037
9044
|
onClick: At,
|
|
9038
9045
|
onMouseMove: E,
|
|
9039
9046
|
onMouseOver: E,
|
|
9040
9047
|
tabIndex: -1,
|
|
9041
9048
|
role: "option",
|
|
9042
|
-
"aria-selected": r.isAppleDevice ? void 0 :
|
|
9049
|
+
"aria-selected": r.isAppleDevice ? void 0 : Ae
|
|
9043
9050
|
// is not supported on Apple devices
|
|
9044
9051
|
};
|
|
9045
9052
|
return /* @__PURE__ */ R.createElement(h, F({}, p, {
|
|
9046
9053
|
innerProps: Qt,
|
|
9047
9054
|
data: he,
|
|
9048
9055
|
isDisabled: Pe,
|
|
9049
|
-
isSelected:
|
|
9056
|
+
isSelected: Ae,
|
|
9050
9057
|
key: Qe,
|
|
9051
|
-
label:
|
|
9058
|
+
label: ut,
|
|
9052
9059
|
type: Ee,
|
|
9053
9060
|
value: Un,
|
|
9054
9061
|
isFocused: _t,
|
|
9055
9062
|
innerRef: _t ? r.getFocusedOptionRef : void 0
|
|
9056
|
-
}), r.formatOptionLabel(
|
|
9063
|
+
}), r.formatOptionLabel(ue.data, "menu"));
|
|
9057
9064
|
}, W;
|
|
9058
9065
|
if (this.hasOptions())
|
|
9059
9066
|
W = this.getCategorizedOptions().map(function(U) {
|
|
9060
9067
|
if (U.type === "group") {
|
|
9061
|
-
var
|
|
9068
|
+
var ue = U.data, xe = U.options, Ee = U.index, he = "".concat(r.getElementId("group"), "-").concat(Ee), Pe = "".concat(he, "-heading");
|
|
9062
9069
|
return /* @__PURE__ */ R.createElement(s, F({}, p, {
|
|
9063
9070
|
key: he,
|
|
9064
|
-
data:
|
|
9065
|
-
options:
|
|
9071
|
+
data: ue,
|
|
9072
|
+
options: xe,
|
|
9066
9073
|
Heading: u,
|
|
9067
9074
|
headingProps: {
|
|
9068
9075
|
id: Pe,
|
|
9069
9076
|
data: U.data
|
|
9070
9077
|
},
|
|
9071
9078
|
label: r.formatGroupLabel(U.data)
|
|
9072
|
-
}), U.options.map(function(
|
|
9073
|
-
return k(
|
|
9079
|
+
}), U.options.map(function(Ae) {
|
|
9080
|
+
return k(Ae, "".concat(Ee, "-").concat(Ae.index));
|
|
9074
9081
|
}));
|
|
9075
9082
|
} else if (U.type === "option")
|
|
9076
9083
|
return k(U, "".concat(U.index));
|
|
@@ -9088,16 +9095,16 @@ var $u = function(t) {
|
|
|
9088
9095
|
if (le === null) return null;
|
|
9089
9096
|
W = /* @__PURE__ */ R.createElement(f, p, le);
|
|
9090
9097
|
}
|
|
9091
|
-
var
|
|
9098
|
+
var ae = {
|
|
9092
9099
|
minMenuHeight: y,
|
|
9093
9100
|
maxMenuHeight: A,
|
|
9094
9101
|
menuPlacement: x,
|
|
9095
9102
|
menuPosition: B,
|
|
9096
9103
|
menuShouldScrollIntoView: Y
|
|
9097
|
-
},
|
|
9098
|
-
var
|
|
9099
|
-
return /* @__PURE__ */ R.createElement(a, F({}, p,
|
|
9100
|
-
innerRef:
|
|
9104
|
+
}, at = /* @__PURE__ */ R.createElement(Vg, F({}, p, ae), function(U) {
|
|
9105
|
+
var ue = U.ref, xe = U.placerProps, Ee = xe.placement, he = xe.maxHeight;
|
|
9106
|
+
return /* @__PURE__ */ R.createElement(a, F({}, p, ae, {
|
|
9107
|
+
innerRef: ue,
|
|
9101
9108
|
innerProps: {
|
|
9102
9109
|
onMouseDown: r.onMenuMouseDown,
|
|
9103
9110
|
onMouseMove: r.onMenuMouseMove
|
|
@@ -9111,8 +9118,8 @@ var $u = function(t) {
|
|
|
9111
9118
|
lockEnabled: Z
|
|
9112
9119
|
}, function(Pe) {
|
|
9113
9120
|
return /* @__PURE__ */ R.createElement(c, F({}, p, {
|
|
9114
|
-
innerRef: function(
|
|
9115
|
-
r.getMenuListRef(
|
|
9121
|
+
innerRef: function(ut) {
|
|
9122
|
+
r.getMenuListRef(ut), Pe(ut);
|
|
9116
9123
|
},
|
|
9117
9124
|
innerProps: {
|
|
9118
9125
|
role: "listbox",
|
|
@@ -9130,7 +9137,7 @@ var $u = function(t) {
|
|
|
9130
9137
|
controlElement: this.controlRef,
|
|
9131
9138
|
menuPlacement: x,
|
|
9132
9139
|
menuPosition: B
|
|
9133
|
-
}),
|
|
9140
|
+
}), at) : at;
|
|
9134
9141
|
}
|
|
9135
9142
|
}, {
|
|
9136
9143
|
key: "renderFormField",
|
|
@@ -9321,7 +9328,7 @@ const Ut = (e) => {
|
|
|
9321
9328
|
return /* @__PURE__ */ T("div", { className: Te["form-group"], style: n, ...i, children: t });
|
|
9322
9329
|
}, Gb = (e) => {
|
|
9323
9330
|
const { children: t, sx: n, ...i } = e, r = un.toArray(t).filter((a) => a.type.displayName === "biznext-ui-input-label"), o = un.toArray(t).filter((a) => a.type.displayName === "biznext-ui-input-control"), s = un.toArray(t).filter((a) => a.type.displayName === "biznext-ui-input-error-message"), u = s[0] && s[0].props.children && s[0].props.children.length > 0;
|
|
9324
|
-
return /* @__PURE__ */ me("div", { className:
|
|
9331
|
+
return /* @__PURE__ */ me("div", { className: rt(Te["form-input-group"], u && Te["validation-error"]), style: n, ...i, children: [
|
|
9325
9332
|
r,
|
|
9326
9333
|
/* @__PURE__ */ me("div", { className: Te["form-input-control-group"], children: [
|
|
9327
9334
|
o,
|
|
@@ -9330,14 +9337,14 @@ const Ut = (e) => {
|
|
|
9330
9337
|
] });
|
|
9331
9338
|
}, qu = (e) => {
|
|
9332
9339
|
const { required: t = !1, children: n, sx: i, ...r } = e;
|
|
9333
|
-
return /* @__PURE__ */ T("label", { className:
|
|
9340
|
+
return /* @__PURE__ */ T("label", { className: rt(Te["form-input-group-label"], t && Te.required), style: i, ...r, children: n });
|
|
9334
9341
|
}, ec = Mn((e, t) => {
|
|
9335
9342
|
const { controlType: n, focus: i, onFocus: r, sx: o, placeholder: s = "", isSearchable: u = !0, isClearable: a = !0, ...c } = e;
|
|
9336
9343
|
let l = /* @__PURE__ */ T(gn, {});
|
|
9337
9344
|
const d = te(null);
|
|
9338
|
-
switch (
|
|
9345
|
+
switch (Ce(() => {
|
|
9339
9346
|
d.current && d.current.focus();
|
|
9340
|
-
}, [i]),
|
|
9347
|
+
}, [i]), Ce(() => {
|
|
9341
9348
|
d.current && d.current.focus();
|
|
9342
9349
|
}, [r]), n) {
|
|
9343
9350
|
case "input":
|