test-stpr-ui-kit 0.5.34 → 0.5.35
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/test-stpr-ui-kit.js +566 -564
- package/dist/test-stpr-ui-kit.umd.cjs +6 -6
- package/package.json +3 -3
package/dist/test-stpr-ui-kit.js
CHANGED
|
@@ -2,7 +2,7 @@ import './test-stpr-ui-kit.css';var Ns = Object.defineProperty;
|
|
|
2
2
|
var Ts = (n, a, t) => a in n ? Ns(n, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[a] = t;
|
|
3
3
|
var re = (n, a, t) => Ts(n, typeof a != "symbol" ? a + "" : a, t);
|
|
4
4
|
import { jsxs as ue, jsx as M, Fragment as Mn } from "react/jsx-runtime";
|
|
5
|
-
import * as
|
|
5
|
+
import * as O from "react";
|
|
6
6
|
import T, { useState as Me, useEffect as Re, useRef as Ae, useCallback as Ge, useLayoutEffect as Ma, cloneElement as mi, createRef as Wt, Component as He, createElement as Ps, forwardRef as hi, createContext as vi, useContext as Is, useMemo as tn, useReducer as Os, useImperativeHandle as Rs, Fragment as Ls } from "react";
|
|
7
7
|
import * as Fs from "react-dom";
|
|
8
8
|
import gr from "react-dom";
|
|
@@ -19,7 +19,7 @@ function E() {
|
|
|
19
19
|
for (var n, a, t = 0, e = "", r = arguments.length; t < r; t++) (n = arguments[t]) && (a = _i(n)) && (e && (e += " "), e += a);
|
|
20
20
|
return e;
|
|
21
21
|
}
|
|
22
|
-
const As = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M10.4058 21.6H5.6058C4.28031 21.6 3.2058 20.5254 3.20581 19.2L3.2059 4.80001C3.20591 3.47453 4.28043 2.40002 5.6059 2.40002H16.4062C17.7317 2.40002 18.8062 3.47454 18.8062 4.80002V11.4M17.3999 21.1882V17.7941M17.3999 17.7941V14.4M17.3999 17.7941L14.0058 17.7941M17.3999 17.7941L20.794 17.7941M7.40619 7.20002H14.6062M7.40619 10.8H14.6062M7.40619 14.4H11.0062", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Ws = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M12.5 15.5H8C6.60444 15.5 5.90665 15.5 5.33886 15.6722C4.06045 16.06 3.06004 17.0605 2.67224 18.3389C2.5 18.9067 2.5 19.6044 2.5 21M19.5 21V15M16.5 18H22.5M15 7.5C15 9.98528 12.9853 12 10.5 12C8.01472 12 6 9.98528 6 7.5C6 5.01472 8.01472 3 10.5 3C12.9853 3 15 5.01472 15 7.5Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Bs = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M20 8L12 16L4 8", stroke: "currentColor", strokeWidth: 2 })), gi = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 18 20", ...n }, /* @__PURE__ */ I.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M1 7h16M1 7v8.8c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874c.427.218.987.218 2.105.218h9.606c1.118 0 1.677 0 2.104-.218.377-.192.683-.498.875-.874.218-.428.218-.986.218-2.104V7M1 7v-.8c0-1.12 0-1.68.218-2.108.192-.377.497-.682.874-.874C2.52 3 3.08 3 4.2 3H5m12 4v-.803c0-1.118 0-1.678-.218-2.105a2 2 0 0 0-.875-.874C15.48 3 14.92 3 13.8 3H13m0-2v2m0 0H5m0-2v2" })), Ys = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M20 7L9 18L4 13", stroke: "currentColor", strokeWidth: 2 })), js = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 26 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M25 6L13 18L1 6", stroke: "currentColor", strokeWidth: 2 })), Hs = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 21 22", fill: "none", ...n }, /* @__PURE__ */ I.createElement("line", { y1: -1, x2: 20.464, y2: -1, transform: "matrix(0.680234 -0.732995 -0.680234 -0.732995 3 18)", stroke: "currentColor", strokeWidth: 2 }), /* @__PURE__ */ I.createElement("line", { y1: -1, x2: 20.464, y2: -1, transform: "matrix(-0.680234 -0.732995 0.680234 -0.732995 18 18)", stroke: "currentColor", strokeWidth: 2 })), zs = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M20 9H11C9.89543 9 9 9.89543 9 11V20C9 21.1046 9.89543 22 11 22H20C21.1046 22 22 21.1046 22 20V11C22 9.89543 21.1046 9 20 9Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M5 15H4C3.46957 15 2.96086 14.7893 2.58579 14.4142C2.21071 14.0391 2 13.5304 2 13V4C2 3.46957 2.21071 2.96086 2.58579 2.58579C2.96086 2.21071 3.46957 2 4 2H13C13.5304 2 14.0391 2.21071 14.4142 2.58579C14.7893 2.96086 15 3.46957 15 4V5", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), qs = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 18 4", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ I.createElement("circle", { cx: 2, cy: 2, r: 2, fill: "currentColor" }), /* @__PURE__ */ I.createElement("circle", { cx: 9, cy: 2, r: 2, fill: "currentColor" }), /* @__PURE__ */ I.createElement("circle", { cx: 16, cy: 2, r: 2, fill: "currentColor" })), Vs = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M19.5 14V17.3333C19.5 17.7754 19.3244 18.1993 19.0118 18.5118C18.6993 18.8244 18.2754 19 17.8333 19H6.16667C5.72464 19 5.30072 18.8244 4.98816 18.5118C4.67559 18.1993 4.5 17.7754 4.5 17.3333V14", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M7.83325 9.83333L11.9999 14L16.1666 9.83333", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M12 14V3.99995", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Us = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M13.9487 6.9516L17.5487 10.5516M4.94873 19.5516L9.31472 18.6719C9.54649 18.6252 9.75931 18.511 9.92645 18.3438L19.7001 8.56478C20.1687 8.09593 20.1684 7.33594 19.6994 6.86748L17.629 4.7994C17.1602 4.33113 16.4006 4.33145 15.9322 4.80011L6.15749 14.5802C5.99068 14.7471 5.87678 14.9595 5.83003 15.1908L4.94873 19.5516Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), $s = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 26 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M14.125 0V11.2002C14.1251 11.4762 14.3489 11.7002 14.625 11.7002H26V28.7998C26 29.6485 25.6573 30.4624 25.0479 31.0625C24.4384 31.6626 23.612 32 22.75 32H3.25C2.38805 32 1.56164 31.6626 0.952148 31.0625C0.342655 30.4624 0 29.6485 0 28.7998V3.2002C0 2.3515 0.342655 1.53762 0.952148 0.9375C1.56164 0.337386 2.38805 0 3.25 0H14.125ZM25.4922 10.7002H15.125V0.492188L25.4922 10.7002Z", fill: "currentColor" })), Qs = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M8 4.61111V8.5H11.8889M8 15.5C4.13401 15.5 1 12.366 1 8.5C1 4.63401 4.13401 1.5 8 1.5C11.866 1.5 15 4.63401 15 8.5C15 12.366 11.866 15.5 8 15.5Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), Gs = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M12 8V12", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M12 16H12.01", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Ks = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M16 0.5C24.5604 0.5 31.5 7.43959 31.5 16C31.5 24.5604 24.5604 31.5 16 31.5C7.43959 31.5 0.5 24.5604 0.5 16C0.5 7.43959 7.43959 0.5 16 0.5Z", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M16 22.4V16", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M16 9.59961H16.016", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })), Xs = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M12 15L15 12M15 12L12 9M15 12H4M9 7.24859V7.2002C9 6.08009 9 5.51962 9.21799 5.0918C9.40973 4.71547 9.71547 4.40973 10.0918 4.21799C10.5196 4 11.0801 4 12.2002 4H16.8002C17.9203 4 18.4796 4 18.9074 4.21799C19.2837 4.40973 19.5905 4.71547 19.7822 5.0918C20 5.5192 20 6.07899 20 7.19691V16.8036C20 17.9215 20 18.4805 19.7822 18.9079C19.5905 19.2842 19.2837 19.5905 18.9074 19.7822C18.48 20 17.921 20 16.8031 20H12.1969C11.079 20 10.5192 20 10.0918 19.7822C9.71547 19.5905 9.40973 19.2839 9.21799 18.9076C9 18.4798 9 17.9201 9 16.8V16.75", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Zs = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M5 12H19", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Js = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M12 5V19", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M5 12H19", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), el = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 16 16", fill: "none", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M8 14.4C4.472 14.4 1.6 11.528 1.6 8C1.6 4.472 4.472 1.6 8 1.6C11.528 1.6 14.4 4.472 14.4 8C14.4 11.528 11.528 14.4 8 14.4ZM8 0C6.94943 0 5.90914 0.206926 4.93853 0.608964C3.96793 1.011 3.08601 1.60028 2.34315 2.34315C0.842855 3.84344 0 5.87827 0 8C0 10.1217 0.842855 12.1566 2.34315 13.6569C3.08601 14.3997 3.96793 14.989 4.93853 15.391C5.90914 15.7931 6.94943 16 8 16C10.1217 16 12.1566 15.1571 13.6569 13.6569C15.1571 12.1566 16 10.1217 16 8C16 6.94943 15.7931 5.90914 15.391 4.93853C14.989 3.96793 14.3997 3.08601 13.6569 2.34315C12.914 1.60028 12.0321 1.011 11.0615 0.608964C10.0909 0.206926 9.05058 0 8 0ZM8.8 4H7.2V7.2H4V8.8H7.2V12H8.8V8.8H12V7.2H8.8V4Z", fill: "currentColor" })), tl = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M12 8V16", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M8 12H16", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), nl = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M4.5 10.2222C4.5 10.2222 6.18841 7.79397 7.56007 6.34511C8.93174 4.89624 10.8272 4 12.9211 4C17.1068 4 20.5 7.58172 20.5 12C20.5 16.4183 17.1068 20 12.9211 20C9.46582 20 6.55062 17.5594 5.63833 14.2222M4.5 10.2222V4.88889M4.5 10.2222H9.55263", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), rl = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M16.4444 20L7.55556 19.9998M16.4444 20L17.1583 19.9998C18.152 19.9998 18.6489 19.9998 19.0288 19.8063C19.3633 19.6358 19.636 19.3637 19.8064 19.0292C20 18.6493 20 18.1519 20 17.1582V9.52843C20 9.12948 20 8.92902 19.9575 8.73866C19.9195 8.56884 19.8571 8.40575 19.7717 8.25413C19.677 8.08595 19.544 7.93822 19.2826 7.64777L16.8335 4.92658C16.5306 4.58998 16.377 4.41938 16.1927 4.29687C16.0269 4.18667 15.8438 4.10541 15.6509 4.05588C15.4333 4 15.1998 4 14.7334 4H6.84462C5.84897 4 5.35077 4 4.97049 4.19376C4.63598 4.3642 4.36421 4.63597 4.19377 4.97048C4 5.35076 4 5.84895 4 6.84459V17.1556C4 18.1512 4 18.6484 4.19377 19.0286C4.36421 19.3631 4.63598 19.6358 4.97049 19.8063C5.3504 19.9998 5.84799 19.9998 6.8417 19.9998H7.55556M16.4444 20V16.6193C16.4444 15.6256 16.4444 15.1281 16.2509 14.7481C16.0804 14.4136 15.8077 14.1419 15.4732 13.9714C15.093 13.7777 14.5958 13.7777 13.6002 13.7777H10.4002C9.40452 13.7777 8.90633 13.7777 8.52604 13.9714C8.19153 14.1419 7.91976 14.4136 7.74932 14.7481C7.55556 15.1284 7.55556 15.6266 7.55556 16.6223V19.9998M14.6667 7.55552H9.33333", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), al = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M12 15.275L6 9.275L7.275 8L12 12.725L16.725 8L18 9.275L12 15.275Z", fill: "currentColor" })), ol = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 17 17", fill: "none", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M4.88889 10.6667L7.05556 8.5L4.88889 6.33333M9.22222 10.6667H12.1111M5.46667 15H11.5333C12.7468 15 13.3535 15 13.817 14.7638C14.2247 14.5561 14.5561 14.2247 14.7638 13.817C15 13.3535 15 12.7468 15 11.5333V5.46667C15 4.25322 15 3.6465 14.7638 3.18302C14.5561 2.77534 14.2247 2.44388 13.817 2.23615C13.3535 2 12.7468 2 11.5333 2H5.46667C4.25322 2 3.6465 2 3.18302 2.23615C2.77534 2.44388 2.44388 2.77534 2.23615 3.18302C2 3.6465 2 4.25322 2 5.46667V11.5333C2 12.7468 2 13.3535 2.23615 13.817C2.44388 14.2247 2.77534 14.5561 3.18302 14.7638C3.6465 15 4.25322 15 5.46667 15Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), il = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M3 6H5H21", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M10 11V17", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M14 11V17", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), sl = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "-2 -2 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M2 10V17C2 17.5304 2.21071 18.0391 2.58579 18.4142C2.96086 18.7893 3.46957 19 4 19H16C16.5304 19 17.0391 18.7893 17.4142 18.4142C17.7893 18.0391 18 17.5304 18 17V10", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M14 5L10 1L6 5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M10 2V13", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })), ll = (n) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 26 26", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ I.createElement("path", { d: "M12.971 2.24023L25.8228 24.5002H0.119141L12.971 2.24023Z", fill: "#002A64" }), /* @__PURE__ */ I.createElement("path", { d: "M13.0835 4.20023L25.2079 25.2002H0.959141L13.0835 4.20023Z", fill: "#036BFD" }), /* @__PURE__ */ I.createElement("path", { d: "M14.3991 21.0002H11.8791V23.5202H14.3991V21.0002Z", fill: "#F5F5F7" }), /* @__PURE__ */ I.createElement("path", { d: "M14.3991 10.6402H11.8791V19.8802H14.3991V10.6402Z", fill: "#F5F5F7" }));
|
|
22
|
+
const As = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M10.4058 21.6H5.6058C4.28031 21.6 3.2058 20.5254 3.20581 19.2L3.2059 4.80001C3.20591 3.47453 4.28043 2.40002 5.6059 2.40002H16.4062C17.7317 2.40002 18.8062 3.47454 18.8062 4.80002V11.4M17.3999 21.1882V17.7941M17.3999 17.7941V14.4M17.3999 17.7941L14.0058 17.7941M17.3999 17.7941L20.794 17.7941M7.40619 7.20002H14.6062M7.40619 10.8H14.6062M7.40619 14.4H11.0062", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Ws = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M12.5 15.5H8C6.60444 15.5 5.90665 15.5 5.33886 15.6722C4.06045 16.06 3.06004 17.0605 2.67224 18.3389C2.5 18.9067 2.5 19.6044 2.5 21M19.5 21V15M16.5 18H22.5M15 7.5C15 9.98528 12.9853 12 10.5 12C8.01472 12 6 9.98528 6 7.5C6 5.01472 8.01472 3 10.5 3C12.9853 3 15 5.01472 15 7.5Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Bs = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M20 8L12 16L4 8", stroke: "currentColor", strokeWidth: 2 })), gi = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 18 20", ...n }, /* @__PURE__ */ O.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M1 7h16M1 7v8.8c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874c.427.218.987.218 2.105.218h9.606c1.118 0 1.677 0 2.104-.218.377-.192.683-.498.875-.874.218-.428.218-.986.218-2.104V7M1 7v-.8c0-1.12 0-1.68.218-2.108.192-.377.497-.682.874-.874C2.52 3 3.08 3 4.2 3H5m12 4v-.803c0-1.118 0-1.678-.218-2.105a2 2 0 0 0-.875-.874C15.48 3 14.92 3 13.8 3H13m0-2v2m0 0H5m0-2v2" })), Ys = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M20 7L9 18L4 13", stroke: "currentColor", strokeWidth: 2 })), js = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 26 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M25 6L13 18L1 6", stroke: "currentColor", strokeWidth: 2 })), Hs = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 21 22", fill: "none", ...n }, /* @__PURE__ */ O.createElement("line", { y1: -1, x2: 20.464, y2: -1, transform: "matrix(0.680234 -0.732995 -0.680234 -0.732995 3 18)", stroke: "currentColor", strokeWidth: 2 }), /* @__PURE__ */ O.createElement("line", { y1: -1, x2: 20.464, y2: -1, transform: "matrix(-0.680234 -0.732995 0.680234 -0.732995 18 18)", stroke: "currentColor", strokeWidth: 2 })), zs = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M20 9H11C9.89543 9 9 9.89543 9 11V20C9 21.1046 9.89543 22 11 22H20C21.1046 22 22 21.1046 22 20V11C22 9.89543 21.1046 9 20 9Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ O.createElement("path", { d: "M5 15H4C3.46957 15 2.96086 14.7893 2.58579 14.4142C2.21071 14.0391 2 13.5304 2 13V4C2 3.46957 2.21071 2.96086 2.58579 2.58579C2.96086 2.21071 3.46957 2 4 2H13C13.5304 2 14.0391 2.21071 14.4142 2.58579C14.7893 2.96086 15 3.46957 15 4V5", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), qs = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 18 4", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ O.createElement("circle", { cx: 2, cy: 2, r: 2, fill: "currentColor" }), /* @__PURE__ */ O.createElement("circle", { cx: 9, cy: 2, r: 2, fill: "currentColor" }), /* @__PURE__ */ O.createElement("circle", { cx: 16, cy: 2, r: 2, fill: "currentColor" })), Vs = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M19.5 14V17.3333C19.5 17.7754 19.3244 18.1993 19.0118 18.5118C18.6993 18.8244 18.2754 19 17.8333 19H6.16667C5.72464 19 5.30072 18.8244 4.98816 18.5118C4.67559 18.1993 4.5 17.7754 4.5 17.3333V14", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ O.createElement("path", { d: "M7.83325 9.83333L11.9999 14L16.1666 9.83333", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ O.createElement("path", { d: "M12 14V3.99995", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Us = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M13.9487 6.9516L17.5487 10.5516M4.94873 19.5516L9.31472 18.6719C9.54649 18.6252 9.75931 18.511 9.92645 18.3438L19.7001 8.56478C20.1687 8.09593 20.1684 7.33594 19.6994 6.86748L17.629 4.7994C17.1602 4.33113 16.4006 4.33145 15.9322 4.80011L6.15749 14.5802C5.99068 14.7471 5.87678 14.9595 5.83003 15.1908L4.94873 19.5516Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), $s = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 26 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M14.125 0V11.2002C14.1251 11.4762 14.3489 11.7002 14.625 11.7002H26V28.7998C26 29.6485 25.6573 30.4624 25.0479 31.0625C24.4384 31.6626 23.612 32 22.75 32H3.25C2.38805 32 1.56164 31.6626 0.952148 31.0625C0.342655 30.4624 0 29.6485 0 28.7998V3.2002C0 2.3515 0.342655 1.53762 0.952148 0.9375C1.56164 0.337386 2.38805 0 3.25 0H14.125ZM25.4922 10.7002H15.125V0.492188L25.4922 10.7002Z", fill: "currentColor" })), Qs = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M8 4.61111V8.5H11.8889M8 15.5C4.13401 15.5 1 12.366 1 8.5C1 4.63401 4.13401 1.5 8 1.5C11.866 1.5 15 4.63401 15 8.5C15 12.366 11.866 15.5 8 15.5Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), Gs = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ O.createElement("path", { d: "M12 8V12", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ O.createElement("path", { d: "M12 16H12.01", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Ks = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M16 0.5C24.5604 0.5 31.5 7.43959 31.5 16C31.5 24.5604 24.5604 31.5 16 31.5C7.43959 31.5 0.5 24.5604 0.5 16C0.5 7.43959 7.43959 0.5 16 0.5Z", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ O.createElement("path", { d: "M16 22.4V16", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ O.createElement("path", { d: "M16 9.59961H16.016", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })), Xs = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M12 15L15 12M15 12L12 9M15 12H4M9 7.24859V7.2002C9 6.08009 9 5.51962 9.21799 5.0918C9.40973 4.71547 9.71547 4.40973 10.0918 4.21799C10.5196 4 11.0801 4 12.2002 4H16.8002C17.9203 4 18.4796 4 18.9074 4.21799C19.2837 4.40973 19.5905 4.71547 19.7822 5.0918C20 5.5192 20 6.07899 20 7.19691V16.8036C20 17.9215 20 18.4805 19.7822 18.9079C19.5905 19.2842 19.2837 19.5905 18.9074 19.7822C18.48 20 17.921 20 16.8031 20H12.1969C11.079 20 10.5192 20 10.0918 19.7822C9.71547 19.5905 9.40973 19.2839 9.21799 18.9076C9 18.4798 9 17.9201 9 16.8V16.75", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Zs = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M5 12H19", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Js = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M12 5V19", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ O.createElement("path", { d: "M5 12H19", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), el = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 16 16", fill: "none", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M8 14.4C4.472 14.4 1.6 11.528 1.6 8C1.6 4.472 4.472 1.6 8 1.6C11.528 1.6 14.4 4.472 14.4 8C14.4 11.528 11.528 14.4 8 14.4ZM8 0C6.94943 0 5.90914 0.206926 4.93853 0.608964C3.96793 1.011 3.08601 1.60028 2.34315 2.34315C0.842855 3.84344 0 5.87827 0 8C0 10.1217 0.842855 12.1566 2.34315 13.6569C3.08601 14.3997 3.96793 14.989 4.93853 15.391C5.90914 15.7931 6.94943 16 8 16C10.1217 16 12.1566 15.1571 13.6569 13.6569C15.1571 12.1566 16 10.1217 16 8C16 6.94943 15.7931 5.90914 15.391 4.93853C14.989 3.96793 14.3997 3.08601 13.6569 2.34315C12.914 1.60028 12.0321 1.011 11.0615 0.608964C10.0909 0.206926 9.05058 0 8 0ZM8.8 4H7.2V7.2H4V8.8H7.2V12H8.8V8.8H12V7.2H8.8V4Z", fill: "currentColor" })), tl = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ O.createElement("path", { d: "M12 8V16", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ O.createElement("path", { d: "M8 12H16", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), nl = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M4.5 10.2222C4.5 10.2222 6.18841 7.79397 7.56007 6.34511C8.93174 4.89624 10.8272 4 12.9211 4C17.1068 4 20.5 7.58172 20.5 12C20.5 16.4183 17.1068 20 12.9211 20C9.46582 20 6.55062 17.5594 5.63833 14.2222M4.5 10.2222V4.88889M4.5 10.2222H9.55263", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), rl = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M16.4444 20L7.55556 19.9998M16.4444 20L17.1583 19.9998C18.152 19.9998 18.6489 19.9998 19.0288 19.8063C19.3633 19.6358 19.636 19.3637 19.8064 19.0292C20 18.6493 20 18.1519 20 17.1582V9.52843C20 9.12948 20 8.92902 19.9575 8.73866C19.9195 8.56884 19.8571 8.40575 19.7717 8.25413C19.677 8.08595 19.544 7.93822 19.2826 7.64777L16.8335 4.92658C16.5306 4.58998 16.377 4.41938 16.1927 4.29687C16.0269 4.18667 15.8438 4.10541 15.6509 4.05588C15.4333 4 15.1998 4 14.7334 4H6.84462C5.84897 4 5.35077 4 4.97049 4.19376C4.63598 4.3642 4.36421 4.63597 4.19377 4.97048C4 5.35076 4 5.84895 4 6.84459V17.1556C4 18.1512 4 18.6484 4.19377 19.0286C4.36421 19.3631 4.63598 19.6358 4.97049 19.8063C5.3504 19.9998 5.84799 19.9998 6.8417 19.9998H7.55556M16.4444 20V16.6193C16.4444 15.6256 16.4444 15.1281 16.2509 14.7481C16.0804 14.4136 15.8077 14.1419 15.4732 13.9714C15.093 13.7777 14.5958 13.7777 13.6002 13.7777H10.4002C9.40452 13.7777 8.90633 13.7777 8.52604 13.9714C8.19153 14.1419 7.91976 14.4136 7.74932 14.7481C7.55556 15.1284 7.55556 15.6266 7.55556 16.6223V19.9998M14.6667 7.55552H9.33333", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), al = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M12 15.275L6 9.275L7.275 8L12 12.725L16.725 8L18 9.275L12 15.275Z", fill: "currentColor" })), ol = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 17 17", fill: "none", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M4.88889 10.6667L7.05556 8.5L4.88889 6.33333M9.22222 10.6667H12.1111M5.46667 15H11.5333C12.7468 15 13.3535 15 13.817 14.7638C14.2247 14.5561 14.5561 14.2247 14.7638 13.817C15 13.3535 15 12.7468 15 11.5333V5.46667C15 4.25322 15 3.6465 14.7638 3.18302C14.5561 2.77534 14.2247 2.44388 13.817 2.23615C13.3535 2 12.7468 2 11.5333 2H5.46667C4.25322 2 3.6465 2 3.18302 2.23615C2.77534 2.44388 2.44388 2.77534 2.23615 3.18302C2 3.6465 2 4.25322 2 5.46667V11.5333C2 12.7468 2 13.3535 2.23615 13.817C2.44388 14.2247 2.77534 14.5561 3.18302 14.7638C3.6465 15 4.25322 15 5.46667 15Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), il = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M3 6H5H21", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ O.createElement("path", { d: "M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ O.createElement("path", { d: "M10 11V17", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ O.createElement("path", { d: "M14 11V17", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), sl = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "-2 -2 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M2 10V17C2 17.5304 2.21071 18.0391 2.58579 18.4142C2.96086 18.7893 3.46957 19 4 19H16C16.5304 19 17.0391 18.7893 17.4142 18.4142C17.7893 18.0391 18 17.5304 18 17V10", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ O.createElement("path", { d: "M14 5L10 1L6 5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ O.createElement("path", { d: "M10 2V13", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })), ll = (n) => /* @__PURE__ */ O.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 26 26", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ O.createElement("path", { d: "M12.971 2.24023L25.8228 24.5002H0.119141L12.971 2.24023Z", fill: "#002A64" }), /* @__PURE__ */ O.createElement("path", { d: "M13.0835 4.20023L25.2079 25.2002H0.959141L13.0835 4.20023Z", fill: "#036BFD" }), /* @__PURE__ */ O.createElement("path", { d: "M14.3991 21.0002H11.8791V23.5202H14.3991V21.0002Z", fill: "#F5F5F7" }), /* @__PURE__ */ O.createElement("path", { d: "M14.3991 10.6402H11.8791V19.8802H14.3991V10.6402Z", fill: "#F5F5F7" }));
|
|
23
23
|
var pe = /* @__PURE__ */ ((n) => (n.ChevronDown = "chevronDown", n.Info = "info", n.Plus = "plus", n.SelectChevronDown = "selectChevronDown", n.Upload = "upload", n.Trash = "trash", n.Check = "check", n.Copy = "copy", n.Close = "close", n.PlusSquare = "plusSquare", n.PlusCircle = "plusCircle", n.WarningColor = "warningColor", n.Dots = "dots", n.HistoryClock = "historyClock", n.Minus = "minus", n.TerminalSquare = "terminalSquare", n.File = "file", n.InfoError = "infoError", n.Save = "save", n.Refresh = "refresh", n.Logout = "logout", n.Edit = "edit", n.Download = "download", n.AddUser = "addUser", n.AddFile = "addFile", n.Calendar = "calendar", n.ArrowBottom = "arrowBottom", n))(pe || {});
|
|
24
24
|
const We = (n) => {
|
|
25
25
|
const { name: a, rotate: t, ...e } = n, r = {
|
|
@@ -492,7 +492,7 @@ const $l = "_modalWrapper_1qyrz_43", Ql = "_modalWrapper__modal_1qyrz_76", Gl =
|
|
|
492
492
|
submitBtnClassName: R,
|
|
493
493
|
cancelBtnClassName: K,
|
|
494
494
|
classNameHeaderRoot: le,
|
|
495
|
-
classNameFooterRoot:
|
|
495
|
+
classNameFooterRoot: ne
|
|
496
496
|
} = n;
|
|
497
497
|
return /* @__PURE__ */ M(
|
|
498
498
|
ec,
|
|
@@ -509,7 +509,7 @@ const $l = "_modalWrapper_1qyrz_43", Ql = "_modalWrapper__modal_1qyrz_76", Gl =
|
|
|
509
509
|
classNameRoot: x,
|
|
510
510
|
classNameLayerRoot: F,
|
|
511
511
|
classNameHeaderRoot: le,
|
|
512
|
-
classNameFooterRoot:
|
|
512
|
+
classNameFooterRoot: ne,
|
|
513
513
|
footer: r || i || s || l ? /* @__PURE__ */ M(
|
|
514
514
|
jl,
|
|
515
515
|
{
|
|
@@ -660,58 +660,58 @@ const wr = (n) => {
|
|
|
660
660
|
b
|
|
661
661
|
);
|
|
662
662
|
const x = (A) => {
|
|
663
|
-
e && A.stopPropagation(), !a && (b ? s && s() : i && i(), y((
|
|
663
|
+
e && A.stopPropagation(), !a && (b ? s && s() : i && i(), y((z) => t ? !z : !0));
|
|
664
664
|
}, [F, H] = Me({
|
|
665
665
|
visibility: "hidden",
|
|
666
666
|
opacity: 0,
|
|
667
667
|
left: "-9999px"
|
|
668
668
|
}), [P, R] = Me(!1), K = Ge(() => {
|
|
669
669
|
if (!D.current || !N.current) return;
|
|
670
|
-
const A = D.current.getBoundingClientRect(),
|
|
671
|
-
let
|
|
670
|
+
const A = D.current.getBoundingClientRect(), z = N.current.getBoundingClientRect();
|
|
671
|
+
let U = 0, X = 0;
|
|
672
672
|
switch (p) {
|
|
673
673
|
case je.Right:
|
|
674
|
-
|
|
674
|
+
U = A.top + window.scrollY - (z.height - A.height) / 2, X = A.right + window.scrollX;
|
|
675
675
|
break;
|
|
676
676
|
case je.RightTop:
|
|
677
|
-
|
|
677
|
+
U = A.top + window.scrollY, X = A.right + window.scrollX;
|
|
678
678
|
break;
|
|
679
679
|
case je.RightBottom:
|
|
680
|
-
|
|
680
|
+
U = A.bottom + window.scrollY - z.height, X = A.right + window.scrollX;
|
|
681
681
|
break;
|
|
682
682
|
case je.Left:
|
|
683
|
-
|
|
683
|
+
U = A.top + window.scrollY - (z.height - A.height) / 2, X = A.left + window.scrollX - z.width;
|
|
684
684
|
break;
|
|
685
685
|
case je.LeftTop:
|
|
686
|
-
|
|
686
|
+
U = A.top + window.scrollY, X = A.left + window.scrollX - z.width;
|
|
687
687
|
break;
|
|
688
688
|
case je.LeftBottom:
|
|
689
|
-
|
|
689
|
+
U = A.bottom + window.scrollY - z.height, X = A.left + window.scrollX - z.width;
|
|
690
690
|
break;
|
|
691
691
|
case je.Bottom:
|
|
692
|
-
|
|
692
|
+
U = A.bottom + window.scrollY, X = A.left + window.scrollX - (z.width - A.width) / 2;
|
|
693
693
|
break;
|
|
694
694
|
case je.BottomLeft:
|
|
695
|
-
|
|
695
|
+
U = A.bottom + window.scrollY, X = A.left + window.scrollX;
|
|
696
696
|
break;
|
|
697
697
|
case je.BottomRight:
|
|
698
|
-
|
|
698
|
+
U = A.bottom + window.scrollY, X = A.right + window.scrollX - z.width;
|
|
699
699
|
break;
|
|
700
700
|
case je.Top:
|
|
701
|
-
|
|
701
|
+
U = A.top + window.scrollY - z.height, X = A.left + window.scrollX - (z.width - A.width) / 2;
|
|
702
702
|
break;
|
|
703
703
|
case je.TopLeft:
|
|
704
|
-
|
|
704
|
+
U = A.top + window.scrollY - z.height, X = A.left + window.scrollX;
|
|
705
705
|
break;
|
|
706
706
|
case je.TopRight:
|
|
707
|
-
|
|
707
|
+
U = A.top + window.scrollY - z.height, X = A.right + window.scrollX - z.width;
|
|
708
708
|
break;
|
|
709
709
|
default:
|
|
710
|
-
|
|
710
|
+
U = A.bottom + window.scrollY, X = A.left + window.scrollX;
|
|
711
711
|
}
|
|
712
|
-
|
|
712
|
+
U + z.height > window.innerHeight + window.scrollY && p.includes("bottom") ? U = A.top + window.scrollY - z.height : U < window.scrollY && p.includes("top") && (U = A.bottom + window.scrollY), X + z.width > window.innerWidth + window.scrollX && p.includes("left") ? X = A.left + window.scrollX - z.width + A.width : X < window.scrollX && p.includes("right") && (X = A.right + window.scrollX - A.width), H((h) => ({
|
|
713
713
|
...h,
|
|
714
|
-
top: `${
|
|
714
|
+
top: `${U}px`,
|
|
715
715
|
left: `${X}px`,
|
|
716
716
|
visibility: b || P ? "visible" : "hidden",
|
|
717
717
|
opacity: b || P ? 1 : 0
|
|
@@ -728,12 +728,12 @@ const wr = (n) => {
|
|
|
728
728
|
}, [S, K]);
|
|
729
729
|
const le = E({
|
|
730
730
|
...m && { [m]: !0 }
|
|
731
|
-
}),
|
|
731
|
+
}), ne = E({
|
|
732
732
|
...v && { [v]: !0 }
|
|
733
733
|
}), G = E({
|
|
734
734
|
[xi.spTooltip]: !0,
|
|
735
735
|
...l && { [l]: !0 }
|
|
736
|
-
}),
|
|
736
|
+
}), ee = document.body;
|
|
737
737
|
return /* @__PURE__ */ ue(
|
|
738
738
|
"div",
|
|
739
739
|
{
|
|
@@ -745,7 +745,7 @@ const wr = (n) => {
|
|
|
745
745
|
style: w,
|
|
746
746
|
children: [
|
|
747
747
|
o,
|
|
748
|
-
r && /* @__PURE__ */ M(wi, { node:
|
|
748
|
+
r && /* @__PURE__ */ M(wi, { node: ee, children: /* @__PURE__ */ M(
|
|
749
749
|
yi,
|
|
750
750
|
{
|
|
751
751
|
style: F,
|
|
@@ -753,7 +753,7 @@ const wr = (n) => {
|
|
|
753
753
|
noPadding: d,
|
|
754
754
|
text: u,
|
|
755
755
|
classNameRoot: le,
|
|
756
|
-
classNameContentRoot:
|
|
756
|
+
classNameContentRoot: ne
|
|
757
757
|
}
|
|
758
758
|
) })
|
|
759
759
|
]
|
|
@@ -4310,7 +4310,7 @@ function ld(n, a, t, e) {
|
|
|
4310
4310
|
const { incompatibleTokens: le } = K;
|
|
4311
4311
|
if (Array.isArray(le)) {
|
|
4312
4312
|
const G = m.find(
|
|
4313
|
-
(
|
|
4313
|
+
(ee) => le.includes(ee.token) || ee.token === R
|
|
4314
4314
|
);
|
|
4315
4315
|
if (G)
|
|
4316
4316
|
throw new RangeError(
|
|
@@ -4321,15 +4321,15 @@ function ld(n, a, t, e) {
|
|
|
4321
4321
|
`The format string mustn't contain \`${P}\` and any other token at the same time`
|
|
4322
4322
|
);
|
|
4323
4323
|
m.push({ token: R, fullToken: P });
|
|
4324
|
-
const
|
|
4324
|
+
const ne = K.run(
|
|
4325
4325
|
n,
|
|
4326
4326
|
P,
|
|
4327
4327
|
i.match,
|
|
4328
4328
|
p
|
|
4329
4329
|
);
|
|
4330
|
-
if (!
|
|
4330
|
+
if (!ne)
|
|
4331
4331
|
return r();
|
|
4332
|
-
u.push(
|
|
4332
|
+
u.push(ne.setter), n = ne.rest;
|
|
4333
4333
|
} else {
|
|
4334
4334
|
if (R.match(sd))
|
|
4335
4335
|
throw new RangeError(
|
|
@@ -4770,16 +4770,16 @@ function ur(n) {
|
|
|
4770
4770
|
var Xd = typeof document < "u", Zd = function() {
|
|
4771
4771
|
}, dr = Xd ? Ma : Zd;
|
|
4772
4772
|
const Jd = {
|
|
4773
|
-
...
|
|
4773
|
+
...O
|
|
4774
4774
|
}, ef = Jd.useInsertionEffect, tf = ef || ((n) => n());
|
|
4775
4775
|
function nf(n) {
|
|
4776
|
-
const a =
|
|
4776
|
+
const a = O.useRef(() => {
|
|
4777
4777
|
if (process.env.NODE_ENV !== "production")
|
|
4778
4778
|
throw new Error("Cannot call an event handler while rendering.");
|
|
4779
4779
|
});
|
|
4780
4780
|
return tf(() => {
|
|
4781
4781
|
a.current = n;
|
|
4782
|
-
}),
|
|
4782
|
+
}), O.useCallback(function() {
|
|
4783
4783
|
for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
|
|
4784
4784
|
e[r] = arguments[r];
|
|
4785
4785
|
return a.current == null ? void 0 : a.current(...e);
|
|
@@ -4963,17 +4963,17 @@ const of = (n) => ({
|
|
|
4963
4963
|
}, v = Ba(r), w = Wa(v), b = await i.getDimensions(p), y = v === "y", D = y ? "top" : "left", N = y ? "bottom" : "right", S = y ? "clientHeight" : "clientWidth", C = o.reference[w] + o.reference[v] - m[v] - o.floating[w], x = m[v] - o.reference[v], F = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(p));
|
|
4964
4964
|
let H = F ? F[S] : 0;
|
|
4965
4965
|
(!H || !await (i.isElement == null ? void 0 : i.isElement(F))) && (H = s.floating[S] || o.floating[w]);
|
|
4966
|
-
const P = C / 2 - x / 2, R = H / 2 - b[w] / 2 - 1, K = fn(d[D], R), le = fn(d[N], R),
|
|
4966
|
+
const P = C / 2 - x / 2, R = H / 2 - b[w] / 2 - 1, K = fn(d[D], R), le = fn(d[N], R), ne = K, G = H - b[w] - le, ee = H / 2 - b[w] / 2 + P, A = jd(ne, ee, G), z = !l.arrow && On(r) != null && ee !== A && o.reference[w] / 2 - (ee < ne ? K : le) - b[w] / 2 < 0, U = z ? ee < ne ? ee - ne : ee - G : 0;
|
|
4967
4967
|
return {
|
|
4968
|
-
[v]: m[v] +
|
|
4968
|
+
[v]: m[v] + U,
|
|
4969
4969
|
data: {
|
|
4970
4970
|
[v]: A,
|
|
4971
|
-
centerOffset:
|
|
4972
|
-
...
|
|
4973
|
-
alignmentOffset:
|
|
4971
|
+
centerOffset: ee - A - U,
|
|
4972
|
+
...z && {
|
|
4973
|
+
alignmentOffset: U
|
|
4974
4974
|
}
|
|
4975
4975
|
},
|
|
4976
|
-
reset:
|
|
4976
|
+
reset: z
|
|
4977
4977
|
};
|
|
4978
4978
|
}
|
|
4979
4979
|
}), sf = function(n) {
|
|
@@ -5005,33 +5005,33 @@ const of = (n) => ({
|
|
|
5005
5005
|
const H = [s, ...x], P = await af(a, y), R = [];
|
|
5006
5006
|
let K = ((e = o.flip) == null ? void 0 : e.overflows) || [];
|
|
5007
5007
|
if (u && R.push(P[D]), d) {
|
|
5008
|
-
const
|
|
5009
|
-
R.push(P[
|
|
5008
|
+
const ee = qd(r, i, C);
|
|
5009
|
+
R.push(P[ee[0]], P[ee[1]]);
|
|
5010
5010
|
}
|
|
5011
5011
|
if (K = [...K, {
|
|
5012
5012
|
placement: r,
|
|
5013
5013
|
overflows: R
|
|
5014
|
-
}], !R.every((
|
|
5015
|
-
var le,
|
|
5016
|
-
const
|
|
5014
|
+
}], !R.every((ee) => ee <= 0)) {
|
|
5015
|
+
var le, ne;
|
|
5016
|
+
const ee = (((le = o.flip) == null ? void 0 : le.index) || 0) + 1, A = H[ee];
|
|
5017
5017
|
if (A && (!(d === "alignment" ? N !== Vt(A) : !1) || // We leave the current main axis only if every placement on that axis
|
|
5018
5018
|
// overflows the main axis.
|
|
5019
5019
|
K.every((X) => Vt(X.placement) === N ? X.overflows[0] > 0 : !0)))
|
|
5020
5020
|
return {
|
|
5021
5021
|
data: {
|
|
5022
|
-
index:
|
|
5022
|
+
index: ee,
|
|
5023
5023
|
overflows: K
|
|
5024
5024
|
},
|
|
5025
5025
|
reset: {
|
|
5026
5026
|
placement: A
|
|
5027
5027
|
}
|
|
5028
5028
|
};
|
|
5029
|
-
let
|
|
5030
|
-
if (!
|
|
5029
|
+
let z = (ne = K.filter((U) => U.overflows[0] <= 0).sort((U, X) => U.overflows[1] - X.overflows[1])[0]) == null ? void 0 : ne.placement;
|
|
5030
|
+
if (!z)
|
|
5031
5031
|
switch (v) {
|
|
5032
5032
|
case "bestFit": {
|
|
5033
5033
|
var G;
|
|
5034
|
-
const
|
|
5034
|
+
const U = (G = K.filter((X) => {
|
|
5035
5035
|
if (F) {
|
|
5036
5036
|
const h = Vt(X.placement);
|
|
5037
5037
|
return h === N || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -5040,17 +5040,17 @@ const of = (n) => ({
|
|
|
5040
5040
|
}
|
|
5041
5041
|
return !0;
|
|
5042
5042
|
}).map((X) => [X.placement, X.overflows.filter((h) => h > 0).reduce((h, f) => h + f, 0)]).sort((X, h) => X[1] - h[1])[0]) == null ? void 0 : G[0];
|
|
5043
|
-
|
|
5043
|
+
U && (z = U);
|
|
5044
5044
|
break;
|
|
5045
5045
|
}
|
|
5046
5046
|
case "initialPlacement":
|
|
5047
|
-
|
|
5047
|
+
z = s;
|
|
5048
5048
|
break;
|
|
5049
5049
|
}
|
|
5050
|
-
if (r !==
|
|
5050
|
+
if (r !== z)
|
|
5051
5051
|
return {
|
|
5052
5052
|
reset: {
|
|
5053
|
-
placement:
|
|
5053
|
+
placement: z
|
|
5054
5054
|
}
|
|
5055
5055
|
};
|
|
5056
5056
|
}
|
|
@@ -5534,7 +5534,7 @@ function go(n, a) {
|
|
|
5534
5534
|
return Math.round(a * t) / t;
|
|
5535
5535
|
}
|
|
5536
5536
|
function zr(n) {
|
|
5537
|
-
const a =
|
|
5537
|
+
const a = O.useRef(n);
|
|
5538
5538
|
return Zn(() => {
|
|
5539
5539
|
a.current = n;
|
|
5540
5540
|
}), a;
|
|
@@ -5553,20 +5553,20 @@ function Of(n) {
|
|
|
5553
5553
|
transform: s = !0,
|
|
5554
5554
|
whileElementsMounted: l,
|
|
5555
5555
|
open: p
|
|
5556
|
-
} = n, [u, d] =
|
|
5556
|
+
} = n, [u, d] = O.useState({
|
|
5557
5557
|
x: 0,
|
|
5558
5558
|
y: 0,
|
|
5559
5559
|
strategy: t,
|
|
5560
5560
|
placement: a,
|
|
5561
5561
|
middlewareData: {},
|
|
5562
5562
|
isPositioned: !1
|
|
5563
|
-
}), [m, v] =
|
|
5563
|
+
}), [m, v] = O.useState(e);
|
|
5564
5564
|
fr(m, e) || v(e);
|
|
5565
|
-
const [w, b] =
|
|
5565
|
+
const [w, b] = O.useState(null), [y, D] = O.useState(null), N = O.useCallback((X) => {
|
|
5566
5566
|
X !== F.current && (F.current = X, b(X));
|
|
5567
|
-
}, []), S =
|
|
5567
|
+
}, []), S = O.useCallback((X) => {
|
|
5568
5568
|
X !== H.current && (H.current = X, D(X));
|
|
5569
|
-
}, []), C = o || w, x = i || y, F =
|
|
5569
|
+
}, []), C = o || w, x = i || y, F = O.useRef(null), H = O.useRef(null), P = O.useRef(u), R = l != null, K = zr(l), le = zr(r), ne = zr(p), G = O.useCallback(() => {
|
|
5570
5570
|
if (!F.current || !H.current)
|
|
5571
5571
|
return;
|
|
5572
5572
|
const X = {
|
|
@@ -5581,22 +5581,22 @@ function Of(n) {
|
|
|
5581
5581
|
// but still mounted (such as when transitioning out). To ensure
|
|
5582
5582
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
5583
5583
|
// setting it to `true` when `open === false` (must be specified).
|
|
5584
|
-
isPositioned:
|
|
5584
|
+
isPositioned: ne.current !== !1
|
|
5585
5585
|
};
|
|
5586
|
-
|
|
5586
|
+
ee.current && !fr(P.current, f) && (P.current = f, Fs.flushSync(() => {
|
|
5587
5587
|
d(f);
|
|
5588
5588
|
}));
|
|
5589
5589
|
});
|
|
5590
|
-
}, [m, a, t, le,
|
|
5590
|
+
}, [m, a, t, le, ne]);
|
|
5591
5591
|
Zn(() => {
|
|
5592
5592
|
p === !1 && P.current.isPositioned && (P.current.isPositioned = !1, d((X) => ({
|
|
5593
5593
|
...X,
|
|
5594
5594
|
isPositioned: !1
|
|
5595
5595
|
})));
|
|
5596
5596
|
}, [p]);
|
|
5597
|
-
const
|
|
5598
|
-
Zn(() => (
|
|
5599
|
-
|
|
5597
|
+
const ee = O.useRef(!1);
|
|
5598
|
+
Zn(() => (ee.current = !0, () => {
|
|
5599
|
+
ee.current = !1;
|
|
5600
5600
|
}), []), Zn(() => {
|
|
5601
5601
|
if (C && (F.current = C), x && (H.current = x), C && x) {
|
|
5602
5602
|
if (K.current)
|
|
@@ -5604,27 +5604,27 @@ function Of(n) {
|
|
|
5604
5604
|
G();
|
|
5605
5605
|
}
|
|
5606
5606
|
}, [C, x, G, K, R]);
|
|
5607
|
-
const A =
|
|
5607
|
+
const A = O.useMemo(() => ({
|
|
5608
5608
|
reference: F,
|
|
5609
5609
|
floating: H,
|
|
5610
5610
|
setReference: N,
|
|
5611
5611
|
setFloating: S
|
|
5612
|
-
}), [N, S]),
|
|
5612
|
+
}), [N, S]), z = O.useMemo(() => ({
|
|
5613
5613
|
reference: C,
|
|
5614
5614
|
floating: x
|
|
5615
|
-
}), [C, x]),
|
|
5615
|
+
}), [C, x]), U = O.useMemo(() => {
|
|
5616
5616
|
const X = {
|
|
5617
5617
|
position: t,
|
|
5618
5618
|
left: 0,
|
|
5619
5619
|
top: 0
|
|
5620
5620
|
};
|
|
5621
|
-
if (!
|
|
5621
|
+
if (!z.floating)
|
|
5622
5622
|
return X;
|
|
5623
|
-
const h = go(
|
|
5623
|
+
const h = go(z.floating, u.x), f = go(z.floating, u.y);
|
|
5624
5624
|
return s ? {
|
|
5625
5625
|
...X,
|
|
5626
5626
|
transform: "translate(" + h + "px, " + f + "px)",
|
|
5627
|
-
...Gi(
|
|
5627
|
+
...Gi(z.floating) >= 1.5 && {
|
|
5628
5628
|
willChange: "transform"
|
|
5629
5629
|
}
|
|
5630
5630
|
} : {
|
|
@@ -5632,14 +5632,14 @@ function Of(n) {
|
|
|
5632
5632
|
left: h,
|
|
5633
5633
|
top: f
|
|
5634
5634
|
};
|
|
5635
|
-
}, [t, s,
|
|
5636
|
-
return
|
|
5635
|
+
}, [t, s, z.floating, u.x, u.y]);
|
|
5636
|
+
return O.useMemo(() => ({
|
|
5637
5637
|
...u,
|
|
5638
5638
|
update: G,
|
|
5639
5639
|
refs: A,
|
|
5640
|
-
elements:
|
|
5641
|
-
floatingStyles:
|
|
5642
|
-
}), [u, G, A,
|
|
5640
|
+
elements: z,
|
|
5641
|
+
floatingStyles: U
|
|
5642
|
+
}), [u, G, A, z, U]);
|
|
5643
5643
|
}
|
|
5644
5644
|
const Rf = (n) => {
|
|
5645
5645
|
function a(t) {
|
|
@@ -5672,7 +5672,7 @@ const Rf = (n) => {
|
|
|
5672
5672
|
...Rf(n),
|
|
5673
5673
|
options: [n, a]
|
|
5674
5674
|
}), Wf = {
|
|
5675
|
-
...
|
|
5675
|
+
...O
|
|
5676
5676
|
};
|
|
5677
5677
|
let wo = !1, Bf = 0;
|
|
5678
5678
|
const bo = () => (
|
|
@@ -5681,10 +5681,10 @@ const bo = () => (
|
|
|
5681
5681
|
"floating-ui-" + Math.random().toString(36).slice(2, 6) + Bf++
|
|
5682
5682
|
);
|
|
5683
5683
|
function Yf() {
|
|
5684
|
-
const [n, a] =
|
|
5684
|
+
const [n, a] = O.useState(() => wo ? bo() : void 0);
|
|
5685
5685
|
return dr(() => {
|
|
5686
5686
|
n == null && a(bo());
|
|
5687
|
-
}, []),
|
|
5687
|
+
}, []), O.useEffect(() => {
|
|
5688
5688
|
wo = !0;
|
|
5689
5689
|
}, []), n;
|
|
5690
5690
|
}
|
|
@@ -5709,7 +5709,7 @@ function zf() {
|
|
|
5709
5709
|
(o = Tn) == null || o.add(r), console.error(r);
|
|
5710
5710
|
}
|
|
5711
5711
|
}
|
|
5712
|
-
const qf = /* @__PURE__ */
|
|
5712
|
+
const qf = /* @__PURE__ */ O.forwardRef(function(a, t) {
|
|
5713
5713
|
const {
|
|
5714
5714
|
context: {
|
|
5715
5715
|
placement: e,
|
|
@@ -5735,7 +5735,7 @@ const qf = /* @__PURE__ */ I.forwardRef(function(a, t) {
|
|
|
5735
5735
|
...y
|
|
5736
5736
|
} = a;
|
|
5737
5737
|
process.env.NODE_ENV !== "production" && (t || Hf("The `ref` prop is required for `FloatingArrow`."));
|
|
5738
|
-
const D = Ki(), [N, S] =
|
|
5738
|
+
const D = Ki(), [N, S] = O.useState(!1);
|
|
5739
5739
|
if (dr(() => {
|
|
5740
5740
|
if (!r) return;
|
|
5741
5741
|
st(r).direction === "rtl" && S(!0);
|
|
@@ -5744,28 +5744,28 @@ const qf = /* @__PURE__ */ I.forwardRef(function(a, t) {
|
|
|
5744
5744
|
const [C, x] = e.split("-"), F = C === "top" || C === "bottom";
|
|
5745
5745
|
let H = d;
|
|
5746
5746
|
(F && i != null && i.x || !F && i != null && i.y) && (H = null);
|
|
5747
|
-
const P = u * 2, R = P / 2, K = s / 2 * (p / -8 + 1), le = l / 2 * p / 4,
|
|
5748
|
-
let
|
|
5749
|
-
H && N && (
|
|
5750
|
-
const A = (o == null ? void 0 : o.x) != null ? H || o.x : "",
|
|
5751
|
-
top:
|
|
5752
|
-
left:
|
|
5753
|
-
bottom:
|
|
5754
|
-
right:
|
|
5747
|
+
const P = u * 2, R = P / 2, K = s / 2 * (p / -8 + 1), le = l / 2 * p / 4, ne = !!v, G = H && x === "end" ? "bottom" : "top";
|
|
5748
|
+
let ee = H && x === "end" ? "right" : "left";
|
|
5749
|
+
H && N && (ee = x === "end" ? "left" : "right");
|
|
5750
|
+
const A = (o == null ? void 0 : o.x) != null ? H || o.x : "", z = (o == null ? void 0 : o.y) != null ? H || o.y : "", U = v || "M0,0" + (" H" + s) + (" L" + (s - K) + "," + (l - le)) + (" Q" + s / 2 + "," + l + " " + K + "," + (l - le)) + " Z", X = {
|
|
5751
|
+
top: ne ? "rotate(180deg)" : "",
|
|
5752
|
+
left: ne ? "rotate(90deg)" : "rotate(-90deg)",
|
|
5753
|
+
bottom: ne ? "" : "rotate(180deg)",
|
|
5754
|
+
right: ne ? "rotate(-90deg)" : "rotate(90deg)"
|
|
5755
5755
|
}[C];
|
|
5756
5756
|
return /* @__PURE__ */ ue("svg", {
|
|
5757
5757
|
...y,
|
|
5758
5758
|
"aria-hidden": !0,
|
|
5759
5759
|
ref: t,
|
|
5760
|
-
width:
|
|
5760
|
+
width: ne ? s : s + P,
|
|
5761
5761
|
height: s,
|
|
5762
5762
|
viewBox: "0 0 " + s + " " + (l > s ? l : s),
|
|
5763
5763
|
style: {
|
|
5764
5764
|
position: "absolute",
|
|
5765
5765
|
pointerEvents: "none",
|
|
5766
|
-
[
|
|
5767
|
-
[G]:
|
|
5768
|
-
[C]: F ||
|
|
5766
|
+
[ee]: A,
|
|
5767
|
+
[G]: z,
|
|
5768
|
+
[C]: F || ne ? "100%" : "calc(100% - " + P / 2 + "px)",
|
|
5769
5769
|
transform: [X, w].filter((h) => !!h).join(" "),
|
|
5770
5770
|
...b
|
|
5771
5771
|
},
|
|
@@ -5774,15 +5774,15 @@ const qf = /* @__PURE__ */ I.forwardRef(function(a, t) {
|
|
|
5774
5774
|
fill: "none",
|
|
5775
5775
|
stroke: m,
|
|
5776
5776
|
strokeWidth: P + (v ? 0 : 1),
|
|
5777
|
-
d:
|
|
5777
|
+
d: U
|
|
5778
5778
|
}), /* @__PURE__ */ M("path", {
|
|
5779
5779
|
stroke: P && !v ? y.fill : "none",
|
|
5780
|
-
d:
|
|
5780
|
+
d: U
|
|
5781
5781
|
}), /* @__PURE__ */ M("clipPath", {
|
|
5782
5782
|
id: D,
|
|
5783
5783
|
children: /* @__PURE__ */ M("rect", {
|
|
5784
5784
|
x: -R,
|
|
5785
|
-
y: R * (
|
|
5785
|
+
y: R * (ne ? -1 : 1),
|
|
5786
5786
|
width: s + P,
|
|
5787
5787
|
height: s
|
|
5788
5788
|
})
|
|
@@ -5805,35 +5805,35 @@ function Vf() {
|
|
|
5805
5805
|
}
|
|
5806
5806
|
};
|
|
5807
5807
|
}
|
|
5808
|
-
const Uf = /* @__PURE__ */
|
|
5808
|
+
const Uf = /* @__PURE__ */ O.createContext(null), $f = /* @__PURE__ */ O.createContext(null), Qf = () => {
|
|
5809
5809
|
var n;
|
|
5810
|
-
return ((n =
|
|
5811
|
-
}, Gf = () =>
|
|
5810
|
+
return ((n = O.useContext(Uf)) == null ? void 0 : n.id) || null;
|
|
5811
|
+
}, Gf = () => O.useContext($f);
|
|
5812
5812
|
function Kf(n) {
|
|
5813
5813
|
const {
|
|
5814
5814
|
open: a = !1,
|
|
5815
5815
|
onOpenChange: t,
|
|
5816
5816
|
elements: e
|
|
5817
|
-
} = n, r = Ki(), o =
|
|
5817
|
+
} = n, r = Ki(), o = O.useRef({}), [i] = O.useState(() => Vf()), s = Qf() != null;
|
|
5818
5818
|
if (process.env.NODE_ENV !== "production") {
|
|
5819
5819
|
const v = e.reference;
|
|
5820
5820
|
v && !$e(v) && zf("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
5821
5821
|
}
|
|
5822
|
-
const [l, p] =
|
|
5822
|
+
const [l, p] = O.useState(e.reference), u = nf((v, w, b) => {
|
|
5823
5823
|
o.current.openEvent = v ? w : void 0, i.emit("openchange", {
|
|
5824
5824
|
open: v,
|
|
5825
5825
|
event: w,
|
|
5826
5826
|
reason: b,
|
|
5827
5827
|
nested: s
|
|
5828
5828
|
}), t == null || t(v, w, b);
|
|
5829
|
-
}), d =
|
|
5829
|
+
}), d = O.useMemo(() => ({
|
|
5830
5830
|
setPositionReference: p
|
|
5831
|
-
}), []), m =
|
|
5831
|
+
}), []), m = O.useMemo(() => ({
|
|
5832
5832
|
reference: l || e.reference || null,
|
|
5833
5833
|
floating: e.floating || null,
|
|
5834
5834
|
domReference: e.reference
|
|
5835
5835
|
}), [l, e.reference, e.floating]);
|
|
5836
|
-
return
|
|
5836
|
+
return O.useMemo(() => ({
|
|
5837
5837
|
dataRef: o,
|
|
5838
5838
|
open: a,
|
|
5839
5839
|
onOpenChange: u,
|
|
@@ -5854,7 +5854,7 @@ function Xf(n) {
|
|
|
5854
5854
|
floating: null,
|
|
5855
5855
|
...n.elements
|
|
5856
5856
|
}
|
|
5857
|
-
}), e = n.rootContext || t, r = e.elements, [o, i] =
|
|
5857
|
+
}), e = n.rootContext || t, r = e.elements, [o, i] = O.useState(null), [s, l] = O.useState(null), u = (r == null ? void 0 : r.domReference) || o, d = O.useRef(null), m = Gf();
|
|
5858
5858
|
dr(() => {
|
|
5859
5859
|
u && (d.current = u);
|
|
5860
5860
|
}, [u]);
|
|
@@ -5866,27 +5866,27 @@ function Xf(n) {
|
|
|
5866
5866
|
reference: s
|
|
5867
5867
|
}
|
|
5868
5868
|
}
|
|
5869
|
-
}), w =
|
|
5869
|
+
}), w = O.useCallback((S) => {
|
|
5870
5870
|
const C = $e(S) ? {
|
|
5871
5871
|
getBoundingClientRect: () => S.getBoundingClientRect(),
|
|
5872
5872
|
getClientRects: () => S.getClientRects(),
|
|
5873
5873
|
contextElement: S
|
|
5874
5874
|
} : S;
|
|
5875
5875
|
l(C), v.refs.setReference(C);
|
|
5876
|
-
}, [v.refs]), b =
|
|
5876
|
+
}, [v.refs]), b = O.useCallback((S) => {
|
|
5877
5877
|
($e(S) || S === null) && (d.current = S, i(S)), ($e(v.refs.reference.current) || v.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
5878
5878
|
// `null` to support `positionReference` + an unstable `reference`
|
|
5879
5879
|
// callback ref.
|
|
5880
5880
|
S !== null && !$e(S)) && v.refs.setReference(S);
|
|
5881
|
-
}, [v.refs]), y =
|
|
5881
|
+
}, [v.refs]), y = O.useMemo(() => ({
|
|
5882
5882
|
...v.refs,
|
|
5883
5883
|
setReference: b,
|
|
5884
5884
|
setPositionReference: w,
|
|
5885
5885
|
domReference: d
|
|
5886
|
-
}), [v.refs, b, w]), D =
|
|
5886
|
+
}), [v.refs, b, w]), D = O.useMemo(() => ({
|
|
5887
5887
|
...v.elements,
|
|
5888
5888
|
domReference: u
|
|
5889
|
-
}), [v.elements, u]), N =
|
|
5889
|
+
}), [v.elements, u]), N = O.useMemo(() => ({
|
|
5890
5890
|
...v,
|
|
5891
5891
|
...e,
|
|
5892
5892
|
refs: y,
|
|
@@ -5897,7 +5897,7 @@ function Xf(n) {
|
|
|
5897
5897
|
e.dataRef.current.floatingContext = N;
|
|
5898
5898
|
const S = m == null ? void 0 : m.nodesRef.current.find((C) => C.id === a);
|
|
5899
5899
|
S && (S.context = N);
|
|
5900
|
-
}),
|
|
5900
|
+
}), O.useMemo(() => ({
|
|
5901
5901
|
...v,
|
|
5902
5902
|
context: N,
|
|
5903
5903
|
refs: y,
|
|
@@ -6857,46 +6857,46 @@ var Cm = (
|
|
|
6857
6857
|
var i, s = t.props, l = s.selected, p = s.preSelection, u = s.setPreSelection, d = s.minDate, m = s.maxDate, v = s.showFourColumnMonthYearPicker, w = s.showTwoColumnMonthYearPicker;
|
|
6858
6858
|
if (p) {
|
|
6859
6859
|
var b = Lo(v, w), y = t.getVerticalOffset(b), D = (i = $r[b]) === null || i === void 0 ? void 0 : i.grid, N = function(H, P, R) {
|
|
6860
|
-
var K, le,
|
|
6860
|
+
var K, le, ne = P, G = R;
|
|
6861
6861
|
switch (H) {
|
|
6862
6862
|
case J.ArrowRight:
|
|
6863
|
-
|
|
6863
|
+
ne = ft(P, qn), G = R === 11 ? 0 : R + qn;
|
|
6864
6864
|
break;
|
|
6865
6865
|
case J.ArrowLeft:
|
|
6866
|
-
|
|
6866
|
+
ne = Qt(P, qn), G = R === 0 ? 11 : R - qn;
|
|
6867
6867
|
break;
|
|
6868
6868
|
case J.ArrowUp:
|
|
6869
|
-
|
|
6869
|
+
ne = Qt(P, y), G = !((K = D == null ? void 0 : D[0]) === null || K === void 0) && K.includes(R) ? R + 12 - y : R - y;
|
|
6870
6870
|
break;
|
|
6871
6871
|
case J.ArrowDown:
|
|
6872
|
-
|
|
6872
|
+
ne = ft(P, y), G = !((le = D == null ? void 0 : D[D.length - 1]) === null || le === void 0) && le.includes(R) ? R - 12 + y : R + y;
|
|
6873
6873
|
break;
|
|
6874
6874
|
}
|
|
6875
|
-
return { newCalculatedDate:
|
|
6875
|
+
return { newCalculatedDate: ne, newCalculatedMonth: G };
|
|
6876
6876
|
}, S = function(H, P, R) {
|
|
6877
|
-
for (var K = 40, le = H,
|
|
6877
|
+
for (var K = 40, le = H, ne = !1, G = 0, ee = N(le, P, R), A = ee.newCalculatedDate, z = ee.newCalculatedMonth; !ne; ) {
|
|
6878
6878
|
if (G >= K) {
|
|
6879
|
-
A = P,
|
|
6879
|
+
A = P, z = R;
|
|
6880
6880
|
break;
|
|
6881
6881
|
}
|
|
6882
6882
|
if (d && A < d) {
|
|
6883
6883
|
le = J.ArrowRight;
|
|
6884
|
-
var
|
|
6885
|
-
A =
|
|
6884
|
+
var U = N(le, A, z);
|
|
6885
|
+
A = U.newCalculatedDate, z = U.newCalculatedMonth;
|
|
6886
6886
|
}
|
|
6887
6887
|
if (m && A > m) {
|
|
6888
6888
|
le = J.ArrowLeft;
|
|
6889
|
-
var
|
|
6890
|
-
A =
|
|
6889
|
+
var U = N(le, A, z);
|
|
6890
|
+
A = U.newCalculatedDate, z = U.newCalculatedMonth;
|
|
6891
6891
|
}
|
|
6892
6892
|
if (pm(A, t.props)) {
|
|
6893
|
-
var
|
|
6894
|
-
A =
|
|
6893
|
+
var U = N(le, A, z);
|
|
6894
|
+
A = U.newCalculatedDate, z = U.newCalculatedMonth;
|
|
6895
6895
|
} else
|
|
6896
|
-
|
|
6896
|
+
ne = !0;
|
|
6897
6897
|
G++;
|
|
6898
6898
|
}
|
|
6899
|
-
return { newCalculatedDate: A, newCalculatedMonth:
|
|
6899
|
+
return { newCalculatedDate: A, newCalculatedMonth: z };
|
|
6900
6900
|
};
|
|
6901
6901
|
if (r === J.Enter) {
|
|
6902
6902
|
t.isMonthDisabled(o) || (t.onMonthClick(e, o), u == null || u(l));
|
|
@@ -8274,8 +8274,8 @@ var Qr = "Date input not valid.", Um = (
|
|
|
8274
8274
|
return;
|
|
8275
8275
|
(s = (i = e.props).onChange) === null || s === void 0 || s.call(i, [P, R], d);
|
|
8276
8276
|
} else {
|
|
8277
|
-
var
|
|
8278
|
-
(
|
|
8277
|
+
var ne = qr(N, y, e.props.locale, D, (l = e.props.selected) !== null && l !== void 0 ? l : void 0);
|
|
8278
|
+
(ne || !N) && e.setSelected(ne, d, !0);
|
|
8279
8279
|
}
|
|
8280
8280
|
}
|
|
8281
8281
|
}, e.handleSelect = function(r, o, i) {
|
|
@@ -8392,39 +8392,39 @@ var Qr = "Date input not valid.", Um = (
|
|
|
8392
8392
|
}, e.onDayKeyDown = function(r) {
|
|
8393
8393
|
var o, i, s, l, p, u, d = e.props, m = d.minDate, v = d.maxDate, w = d.disabledKeyboardNavigation, b = d.showWeekPicker, y = d.shouldCloseOnSelect, D = d.locale, N = d.calendarStartDay, S = d.adjustDateOnChange, C = d.inline;
|
|
8394
8394
|
if ((i = (o = e.props).onKeyDown) === null || i === void 0 || i.call(o, r), !w) {
|
|
8395
|
-
var x = r.key, F = r.shiftKey, H = xe(e.state.preSelection), P = function(A,
|
|
8396
|
-
var
|
|
8395
|
+
var x = r.key, F = r.shiftKey, H = xe(e.state.preSelection), P = function(A, z) {
|
|
8396
|
+
var U = z;
|
|
8397
8397
|
switch (A) {
|
|
8398
8398
|
case J.ArrowRight:
|
|
8399
|
-
|
|
8399
|
+
U = b ? rr(z, 1) : ut(z, 1);
|
|
8400
8400
|
break;
|
|
8401
8401
|
case J.ArrowLeft:
|
|
8402
|
-
|
|
8402
|
+
U = b ? lo(z) : fd(z);
|
|
8403
8403
|
break;
|
|
8404
8404
|
case J.ArrowUp:
|
|
8405
|
-
|
|
8405
|
+
U = lo(z);
|
|
8406
8406
|
break;
|
|
8407
8407
|
case J.ArrowDown:
|
|
8408
|
-
|
|
8408
|
+
U = rr(z, 1);
|
|
8409
8409
|
break;
|
|
8410
8410
|
case J.PageUp:
|
|
8411
|
-
|
|
8411
|
+
U = F ? un(z, 1) : Qt(z, 1);
|
|
8412
8412
|
break;
|
|
8413
8413
|
case J.PageDown:
|
|
8414
|
-
|
|
8414
|
+
U = F ? Nt(z, 1) : ft(z, 1);
|
|
8415
8415
|
break;
|
|
8416
8416
|
case J.Home:
|
|
8417
|
-
|
|
8417
|
+
U = At(z, D, N);
|
|
8418
8418
|
break;
|
|
8419
8419
|
case J.End:
|
|
8420
|
-
|
|
8420
|
+
U = am(z);
|
|
8421
8421
|
break;
|
|
8422
8422
|
}
|
|
8423
|
-
return
|
|
8424
|
-
}, R = function(A,
|
|
8425
|
-
for (var
|
|
8426
|
-
if (f >=
|
|
8427
|
-
g =
|
|
8423
|
+
return U;
|
|
8424
|
+
}, R = function(A, z) {
|
|
8425
|
+
for (var U = 40, X = A, h = !1, f = 0, g = P(A, z); !h; ) {
|
|
8426
|
+
if (f >= U) {
|
|
8427
|
+
g = z;
|
|
8428
8428
|
break;
|
|
8429
8429
|
}
|
|
8430
8430
|
m && g < m && (X = J.ArrowRight, g = it(m, e.props) ? P(X, g) : m), v && g > v && (X = J.ArrowLeft, g = it(v, e.props) ? P(X, g) : v), it(g, e.props) ? ((X === J.PageUp || X === J.Home) && (X = J.ArrowRight), (X === J.PageDown || X === J.End) && (X = J.ArrowLeft), g = P(X, g)) : h = !0, f++;
|
|
@@ -8456,8 +8456,8 @@ var Qr = "Date input not valid.", Um = (
|
|
|
8456
8456
|
return;
|
|
8457
8457
|
}
|
|
8458
8458
|
if (r.preventDefault(), e.setState({ lastPreSelectChange: Gr }), S && e.setSelected(K), e.setPreSelection(K), C) {
|
|
8459
|
-
var le = Ue(H),
|
|
8460
|
-
le !==
|
|
8459
|
+
var le = Ue(H), ne = Ue(K), G = fe(H), ee = fe(K);
|
|
8460
|
+
le !== ne || G !== ee ? e.setState({ shouldFocusDayInline: !0 }) : e.setState({ shouldFocusDayInline: !1 });
|
|
8461
8461
|
}
|
|
8462
8462
|
}
|
|
8463
8463
|
}, e.onPopperKeyDown = function(r) {
|
|
@@ -8636,17 +8636,17 @@ function Qm() {
|
|
|
8636
8636
|
if (h === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8637
8637
|
return h;
|
|
8638
8638
|
}
|
|
8639
|
-
var l = function(h, f, g, _, c, k, W,
|
|
8639
|
+
var l = function(h, f, g, _, c, k, W, V) {
|
|
8640
8640
|
if (!h) {
|
|
8641
|
-
var
|
|
8642
|
-
if (f === void 0)
|
|
8641
|
+
var I;
|
|
8642
|
+
if (f === void 0) I = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
|
|
8643
8643
|
else {
|
|
8644
|
-
var
|
|
8645
|
-
(
|
|
8646
|
-
return
|
|
8644
|
+
var B = [g, _, c, k, W, V], q = 0;
|
|
8645
|
+
(I = new Error(f.replace(/%s/g, function() {
|
|
8646
|
+
return B[q++];
|
|
8647
8647
|
}))).name = "Invariant Violation";
|
|
8648
8648
|
}
|
|
8649
|
-
throw
|
|
8649
|
+
throw I.framesToPop = 1, I;
|
|
8650
8650
|
}
|
|
8651
8651
|
}, p = l;
|
|
8652
8652
|
function u(h, f, g) {
|
|
@@ -8669,9 +8669,9 @@ function Qm() {
|
|
|
8669
8669
|
function w(h, f, g) {
|
|
8670
8670
|
var _ = "", c = "", k = null, W = [];
|
|
8671
8671
|
if (f === void 0 && (f = v), g == null && (g = m), !h || typeof h != "string") return { maskChar: f, formatChars: g, mask: null, prefix: null, lastEditablePosition: null, permanents: [] };
|
|
8672
|
-
var
|
|
8673
|
-
return h.split("").forEach(function(
|
|
8674
|
-
|
|
8672
|
+
var V = !1;
|
|
8673
|
+
return h.split("").forEach(function(I) {
|
|
8674
|
+
V = !V && I === "\\" || (V || !g[I] ? (W.push(_.length), _.length === W.length - 1 && (c += I)) : k = _.length + 1, _ += I, !1);
|
|
8675
8675
|
}), { maskChar: f, formatChars: g, prefix: c, mask: _, lastEditablePosition: k, permanents: W };
|
|
8676
8676
|
}
|
|
8677
8677
|
function b(h, f) {
|
|
@@ -8718,31 +8718,31 @@ function Qm() {
|
|
|
8718
8718
|
return f;
|
|
8719
8719
|
}
|
|
8720
8720
|
function x(h, f, g, _) {
|
|
8721
|
-
var c = g + _, k = h.maskChar, W = h.mask,
|
|
8722
|
-
if (k) return
|
|
8723
|
-
return j < g || c <= j ?
|
|
8721
|
+
var c = g + _, k = h.maskChar, W = h.mask, V = h.prefix, I = f.split("");
|
|
8722
|
+
if (k) return I.map(function(q, j) {
|
|
8723
|
+
return j < g || c <= j ? q : b(h, j) ? W[j] : k;
|
|
8724
8724
|
}).join("");
|
|
8725
|
-
for (var
|
|
8726
|
-
return g = Math.max(
|
|
8725
|
+
for (var B = c; B < I.length; B++) b(h, B) && (I[B] = "");
|
|
8726
|
+
return g = Math.max(V.length, g), I.splice(g, c - g), f = I.join(""), C(h, f);
|
|
8727
8727
|
}
|
|
8728
8728
|
function F(h, f, g, _) {
|
|
8729
|
-
var c = h.mask, k = h.maskChar, W = h.prefix,
|
|
8730
|
-
return !k && _ > f.length && (f += c.slice(f.length, _)),
|
|
8731
|
-
for (; L =
|
|
8732
|
-
if (_ >= f.length && (f += c[_]),
|
|
8729
|
+
var c = h.mask, k = h.maskChar, W = h.prefix, V = g.split(""), I = S(h, f);
|
|
8730
|
+
return !k && _ > f.length && (f += c.slice(f.length, _)), V.every(function(B) {
|
|
8731
|
+
for (; L = B, b(h, $ = _) && L !== c[$]; ) {
|
|
8732
|
+
if (_ >= f.length && (f += c[_]), q = B, j = _, k && b(h, j) && q === k) return !0;
|
|
8733
8733
|
if (++_ >= c.length) return !1;
|
|
8734
8734
|
}
|
|
8735
|
-
var
|
|
8736
|
-
return !y(h, _,
|
|
8735
|
+
var q, j, $, L;
|
|
8736
|
+
return !y(h, _, B) && B !== k || (_ < f.length ? f = k || I || _ < W.length ? f.slice(0, _) + B + f.slice(_ + 1) : (f = f.slice(0, _) + B + f.slice(_), C(h, f)) : k || (f += B), ++_ < c.length);
|
|
8737
8737
|
}), f;
|
|
8738
8738
|
}
|
|
8739
8739
|
function H(h, f, g, _) {
|
|
8740
|
-
var c = h.mask, k = h.maskChar, W = g.split(""),
|
|
8741
|
-
return W.every(function(
|
|
8742
|
-
for (;
|
|
8743
|
-
var
|
|
8744
|
-
return (y(h, _,
|
|
8745
|
-
}), _ -
|
|
8740
|
+
var c = h.mask, k = h.maskChar, W = g.split(""), V = _;
|
|
8741
|
+
return W.every(function(I) {
|
|
8742
|
+
for (; q = I, b(h, B = _) && q !== c[B]; ) if (++_ >= c.length) return !1;
|
|
8743
|
+
var B, q;
|
|
8744
|
+
return (y(h, _, I) || I === k) && _++, _ < c.length;
|
|
8745
|
+
}), _ - V;
|
|
8746
8746
|
}
|
|
8747
8747
|
function P(h, f) {
|
|
8748
8748
|
for (var g = f; 0 <= g; --g) if (!b(h, g)) return g;
|
|
@@ -8756,60 +8756,60 @@ function Qm() {
|
|
|
8756
8756
|
return h || h === 0 ? h + "" : "";
|
|
8757
8757
|
}
|
|
8758
8758
|
function le(h, f, g, _, c) {
|
|
8759
|
-
var k = h.mask, W = h.prefix,
|
|
8760
|
-
return g.end > c.start ? j = (
|
|
8759
|
+
var k = h.mask, W = h.prefix, V = h.lastEditablePosition, I = f, B = "", q = 0, j = 0, $ = Math.min(c.start, g.start);
|
|
8760
|
+
return g.end > c.start ? j = (q = H(h, _, B = I.slice(c.start, g.end), $)) ? c.length : 0 : I.length < _.length && (j = _.length - I.length), I = _, j && (j === 1 && !c.length && ($ = c.start === g.start ? R(h, g.start) : P(h, g.start)), I = x(h, I, $, j)), I = F(h, I, B, $), ($ += q) >= k.length ? $ = k.length : $ < W.length && !q ? $ = W.length : $ >= W.length && $ < V && q && ($ = R(h, $)), B || (B = null), { value: I = C(h, I), enteredString: B, selection: { start: $, end: $ } };
|
|
8761
8761
|
}
|
|
8762
|
-
function
|
|
8762
|
+
function ne() {
|
|
8763
8763
|
var h = new RegExp("windows", "i"), f = new RegExp("phone", "i"), g = navigator.userAgent;
|
|
8764
8764
|
return h.test(g) && f.test(g);
|
|
8765
8765
|
}
|
|
8766
8766
|
function G(h) {
|
|
8767
8767
|
return typeof h == "function";
|
|
8768
8768
|
}
|
|
8769
|
-
function
|
|
8769
|
+
function ee() {
|
|
8770
8770
|
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame;
|
|
8771
8771
|
}
|
|
8772
8772
|
function A() {
|
|
8773
8773
|
return window.cancelAnimationFrame || window.webkitCancelRequestAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame;
|
|
8774
8774
|
}
|
|
8775
|
-
function
|
|
8776
|
-
return (A() ?
|
|
8775
|
+
function z(h) {
|
|
8776
|
+
return (A() ? ee() : function() {
|
|
8777
8777
|
return setTimeout(h, 1e3 / 60);
|
|
8778
8778
|
})(h);
|
|
8779
8779
|
}
|
|
8780
|
-
function
|
|
8780
|
+
function U(h) {
|
|
8781
8781
|
(A() || clearTimeout)(h);
|
|
8782
8782
|
}
|
|
8783
8783
|
var X = function(h) {
|
|
8784
8784
|
function f(_) {
|
|
8785
8785
|
var c = h.call(this, _) || this;
|
|
8786
8786
|
c.focused = !1, c.mounted = !1, c.previousSelection = null, c.selectionDeferId = null, c.saveSelectionLoopDeferId = null, c.saveSelectionLoop = function() {
|
|
8787
|
-
c.previousSelection = c.getSelection(), c.saveSelectionLoopDeferId =
|
|
8787
|
+
c.previousSelection = c.getSelection(), c.saveSelectionLoopDeferId = z(c.saveSelectionLoop);
|
|
8788
8788
|
}, c.runSaveSelectionLoop = function() {
|
|
8789
8789
|
c.saveSelectionLoopDeferId === null && c.saveSelectionLoop();
|
|
8790
8790
|
}, c.stopSaveSelectionLoop = function() {
|
|
8791
|
-
c.saveSelectionLoopDeferId !== null && (
|
|
8791
|
+
c.saveSelectionLoopDeferId !== null && (U(c.saveSelectionLoopDeferId), c.saveSelectionLoopDeferId = null, c.previousSelection = null);
|
|
8792
8792
|
}, c.getInputDOMNode = function() {
|
|
8793
8793
|
if (!c.mounted) return null;
|
|
8794
|
-
var Q = t.findDOMNode(s(s(c))),
|
|
8795
|
-
if (Q && !
|
|
8794
|
+
var Q = t.findDOMNode(s(s(c))), Y = typeof window < "u" && Q instanceof window.Element;
|
|
8795
|
+
if (Q && !Y) return null;
|
|
8796
8796
|
if (Q.nodeName !== "INPUT" && (Q = Q.querySelector("input")), !Q) throw new Error("react-input-mask: inputComponent doesn't contain input node");
|
|
8797
8797
|
return Q;
|
|
8798
8798
|
}, c.getInputValue = function() {
|
|
8799
8799
|
var Q = c.getInputDOMNode();
|
|
8800
8800
|
return Q ? Q.value : null;
|
|
8801
8801
|
}, c.setInputValue = function(Q) {
|
|
8802
|
-
var
|
|
8803
|
-
|
|
8802
|
+
var Y = c.getInputDOMNode();
|
|
8803
|
+
Y && (c.value = Q, Y.value = Q);
|
|
8804
8804
|
}, c.setCursorToEnd = function() {
|
|
8805
|
-
var Q = N(c.maskOptions, c.value),
|
|
8806
|
-
|
|
8807
|
-
}, c.setSelection = function(Q,
|
|
8808
|
-
|
|
8805
|
+
var Q = N(c.maskOptions, c.value), Y = R(c.maskOptions, Q);
|
|
8806
|
+
Y !== null && c.setCursorPosition(Y);
|
|
8807
|
+
}, c.setSelection = function(Q, Y, te) {
|
|
8808
|
+
te === void 0 && (te = {});
|
|
8809
8809
|
var ce = c.getInputDOMNode(), oe = c.isFocused();
|
|
8810
|
-
ce && oe && (
|
|
8811
|
-
c.selectionDeferId = null, u(ce, Q,
|
|
8812
|
-
}), c.previousSelection = { start: Q, end:
|
|
8810
|
+
ce && oe && (te.deferred || u(ce, Q, Y), c.selectionDeferId !== null && U(c.selectionDeferId), c.selectionDeferId = z(function() {
|
|
8811
|
+
c.selectionDeferId = null, u(ce, Q, Y);
|
|
8812
|
+
}), c.previousSelection = { start: Q, end: Y, length: Math.abs(Y - Q) });
|
|
8813
8813
|
}, c.getSelection = function() {
|
|
8814
8814
|
return d(c.getInputDOMNode());
|
|
8815
8815
|
}, c.getCursorPosition = function() {
|
|
@@ -8819,32 +8819,32 @@ function Qm() {
|
|
|
8819
8819
|
}, c.isFocused = function() {
|
|
8820
8820
|
return c.focused;
|
|
8821
8821
|
}, c.getBeforeMaskedValueChangeConfig = function() {
|
|
8822
|
-
var Q = c.maskOptions,
|
|
8823
|
-
return { mask:
|
|
8824
|
-
}, c.isInputAutofilled = function(Q,
|
|
8822
|
+
var Q = c.maskOptions, Y = Q.mask, te = Q.maskChar, ce = Q.permanents, oe = Q.formatChars;
|
|
8823
|
+
return { mask: Y, maskChar: te, permanents: ce, alwaysShowMask: !!c.props.alwaysShowMask, formatChars: oe };
|
|
8824
|
+
}, c.isInputAutofilled = function(Q, Y, te, ce) {
|
|
8825
8825
|
var oe = c.getInputDOMNode();
|
|
8826
8826
|
try {
|
|
8827
8827
|
if (oe.matches(":-webkit-autofill")) return !0;
|
|
8828
8828
|
} catch {
|
|
8829
8829
|
}
|
|
8830
|
-
return !c.focused || ce.end <
|
|
8830
|
+
return !c.focused || ce.end < te.length && Y.end === Q.length;
|
|
8831
8831
|
}, c.onChange = function(Q) {
|
|
8832
|
-
var
|
|
8833
|
-
c.isInputAutofilled(oe, me, de,
|
|
8834
|
-
var _e = le(c.maskOptions, oe, me, de,
|
|
8832
|
+
var Y = s(s(c)).beforePasteState, te = s(s(c)).previousSelection, ce = c.props.beforeMaskedValueChange, oe = c.getInputValue(), de = c.value, me = c.getSelection();
|
|
8833
|
+
c.isInputAutofilled(oe, me, de, te) && (de = C(c.maskOptions, ""), te = { start: 0, end: 0, length: 0 }), Y && (te = Y.selection, de = Y.value, me = { start: te.start + oe.length, end: te.start + oe.length, length: 0 }, oe = de.slice(0, te.start) + oe + de.slice(te.end), c.beforePasteState = null);
|
|
8834
|
+
var _e = le(c.maskOptions, oe, me, de, te), Fe = _e.enteredString, Le = _e.selection, Be = _e.value;
|
|
8835
8835
|
if (G(ce)) {
|
|
8836
|
-
var Z = ce({ value: Be, selection: Le }, { value: de, selection:
|
|
8836
|
+
var Z = ce({ value: Be, selection: Le }, { value: de, selection: te }, Fe, c.getBeforeMaskedValueChangeConfig());
|
|
8837
8837
|
Be = Z.value, Le = Z.selection;
|
|
8838
8838
|
}
|
|
8839
8839
|
c.setInputValue(Be), G(c.props.onChange) && c.props.onChange(Q), c.isWindowsPhoneBrowser ? c.setSelection(Le.start, Le.end, { deferred: !0 }) : c.setSelection(Le.start, Le.end);
|
|
8840
8840
|
}, c.onFocus = function(Q) {
|
|
8841
|
-
var
|
|
8841
|
+
var Y = c.props.beforeMaskedValueChange, te = c.maskOptions, ce = te.mask, oe = te.prefix;
|
|
8842
8842
|
if (c.focused = !0, c.mounted = !0, ce) {
|
|
8843
8843
|
if (c.value) N(c.maskOptions, c.value) < c.maskOptions.mask.length && c.setCursorToEnd();
|
|
8844
8844
|
else {
|
|
8845
8845
|
var de = C(c.maskOptions, oe), me = C(c.maskOptions, de), _e = N(c.maskOptions, me), Fe = R(c.maskOptions, _e), Le = { start: Fe, end: Fe };
|
|
8846
|
-
if (G(
|
|
8847
|
-
var Be =
|
|
8846
|
+
if (G(Y)) {
|
|
8847
|
+
var Be = Y({ value: me, selection: Le }, { value: c.value, selection: null }, null, c.getBeforeMaskedValueChangeConfig());
|
|
8848
8848
|
me = Be.value, Le = Be.selection;
|
|
8849
8849
|
}
|
|
8850
8850
|
var Z = me !== c.getInputValue();
|
|
@@ -8854,10 +8854,10 @@ function Qm() {
|
|
|
8854
8854
|
}
|
|
8855
8855
|
G(c.props.onFocus) && c.props.onFocus(Q);
|
|
8856
8856
|
}, c.onBlur = function(Q) {
|
|
8857
|
-
var
|
|
8858
|
-
if (c.stopSaveSelectionLoop(), c.focused = !1,
|
|
8857
|
+
var Y = c.props.beforeMaskedValueChange, te = c.maskOptions.mask;
|
|
8858
|
+
if (c.stopSaveSelectionLoop(), c.focused = !1, te && !c.props.alwaysShowMask && D(c.maskOptions, c.value)) {
|
|
8859
8859
|
var ce = "";
|
|
8860
|
-
G(
|
|
8860
|
+
G(Y) && (ce = Y({ value: ce, selection: null }, { value: c.value, selection: c.previousSelection }, null, c.getBeforeMaskedValueChangeConfig()).value);
|
|
8861
8861
|
var oe = ce !== c.getInputValue();
|
|
8862
8862
|
oe && c.setInputValue(ce), oe && G(c.props.onChange) && c.props.onChange(Q);
|
|
8863
8863
|
}
|
|
@@ -8865,13 +8865,13 @@ function Qm() {
|
|
|
8865
8865
|
}, c.onMouseDown = function(Q) {
|
|
8866
8866
|
if (!c.focused && document.addEventListener) {
|
|
8867
8867
|
c.mouseDownX = Q.clientX, c.mouseDownY = Q.clientY, c.mouseDownTime = (/* @__PURE__ */ new Date()).getTime();
|
|
8868
|
-
var
|
|
8869
|
-
if (document.removeEventListener("mouseup",
|
|
8868
|
+
var Y = function te(ce) {
|
|
8869
|
+
if (document.removeEventListener("mouseup", te), c.focused) {
|
|
8870
8870
|
var oe = Math.abs(ce.clientX - c.mouseDownX), de = Math.abs(ce.clientY - c.mouseDownY), me = Math.max(oe, de), _e = (/* @__PURE__ */ new Date()).getTime() - c.mouseDownTime;
|
|
8871
8871
|
(me <= 10 && _e <= 200 || me <= 5 && _e <= 300) && c.setCursorToEnd();
|
|
8872
8872
|
}
|
|
8873
8873
|
};
|
|
8874
|
-
document.addEventListener("mouseup",
|
|
8874
|
+
document.addEventListener("mouseup", Y);
|
|
8875
8875
|
}
|
|
8876
8876
|
G(c.props.onMouseDown) && c.props.onMouseDown(Q);
|
|
8877
8877
|
}, c.onPaste = function(Q) {
|
|
@@ -8879,29 +8879,29 @@ function Qm() {
|
|
|
8879
8879
|
}, c.handleRef = function(Q) {
|
|
8880
8880
|
c.props.children == null && G(c.props.inputRef) && c.props.inputRef(Q);
|
|
8881
8881
|
};
|
|
8882
|
-
var k = _.mask, W = _.maskChar,
|
|
8883
|
-
c.maskOptions = w(k, W,
|
|
8884
|
-
var
|
|
8885
|
-
if (c.maskOptions.mask && (
|
|
8882
|
+
var k = _.mask, W = _.maskChar, V = _.formatChars, I = _.alwaysShowMask, B = _.beforeMaskedValueChange, q = _.defaultValue, j = _.value;
|
|
8883
|
+
c.maskOptions = w(k, W, V), q == null && (q = ""), j == null && (j = q);
|
|
8884
|
+
var $ = K(j);
|
|
8885
|
+
if (c.maskOptions.mask && (I || $) && ($ = C(c.maskOptions, $), G(B))) {
|
|
8886
8886
|
var L = _.value;
|
|
8887
|
-
_.value == null && (L =
|
|
8887
|
+
_.value == null && (L = q), $ = B({ value: $, selection: null }, { value: L = K(L), selection: null }, null, c.getBeforeMaskedValueChangeConfig()).value;
|
|
8888
8888
|
}
|
|
8889
|
-
return c.value =
|
|
8889
|
+
return c.value = $, c;
|
|
8890
8890
|
}
|
|
8891
8891
|
o(f, h);
|
|
8892
8892
|
var g = f.prototype;
|
|
8893
8893
|
return g.componentDidMount = function() {
|
|
8894
|
-
this.mounted = !0, this.getInputDOMNode() && (this.isWindowsPhoneBrowser =
|
|
8894
|
+
this.mounted = !0, this.getInputDOMNode() && (this.isWindowsPhoneBrowser = ne(), this.maskOptions.mask && this.getInputValue() !== this.value && this.setInputValue(this.value));
|
|
8895
8895
|
}, g.componentDidUpdate = function() {
|
|
8896
|
-
var _ = this.previousSelection, c = this.props, k = c.beforeMaskedValueChange, W = c.alwaysShowMask,
|
|
8897
|
-
if (this.maskOptions = w(
|
|
8898
|
-
!
|
|
8899
|
-
var
|
|
8900
|
-
if (
|
|
8901
|
-
var
|
|
8902
|
-
(Q === null ||
|
|
8896
|
+
var _ = this.previousSelection, c = this.props, k = c.beforeMaskedValueChange, W = c.alwaysShowMask, V = c.mask, I = c.maskChar, B = c.formatChars, q = this.maskOptions, j = W || this.isFocused(), $ = this.props.value != null, L = $ ? K(this.props.value) : this.value, Q = _ ? _.start : null;
|
|
8897
|
+
if (this.maskOptions = w(V, I, B), this.maskOptions.mask) {
|
|
8898
|
+
!q.mask && this.isFocused() && this.runSaveSelectionLoop();
|
|
8899
|
+
var Y = this.maskOptions.mask && this.maskOptions.mask !== q.mask;
|
|
8900
|
+
if (q.mask || $ || (L = this.getInputValue()), (Y || this.maskOptions.mask && (L || j)) && (L = C(this.maskOptions, L)), Y) {
|
|
8901
|
+
var te = N(this.maskOptions, L);
|
|
8902
|
+
(Q === null || te < Q) && (Q = S(this.maskOptions, L) ? te : R(this.maskOptions, te));
|
|
8903
8903
|
}
|
|
8904
|
-
!this.maskOptions.mask || !D(this.maskOptions, L) || j ||
|
|
8904
|
+
!this.maskOptions.mask || !D(this.maskOptions, L) || j || $ && this.props.value || (L = "");
|
|
8905
8905
|
var ce = { start: Q, end: Q };
|
|
8906
8906
|
if (G(k)) {
|
|
8907
8907
|
var oe = k({ value: L, selection: ce }, { value: this.value, selection: this.previousSelection }, null, this.getBeforeMaskedValueChangeConfig());
|
|
@@ -8909,25 +8909,25 @@ function Qm() {
|
|
|
8909
8909
|
}
|
|
8910
8910
|
this.value = L;
|
|
8911
8911
|
var de = this.getInputValue() !== this.value;
|
|
8912
|
-
de ? (this.setInputValue(this.value), this.forceUpdate()) :
|
|
8912
|
+
de ? (this.setInputValue(this.value), this.forceUpdate()) : Y && this.forceUpdate();
|
|
8913
8913
|
var me = !1;
|
|
8914
8914
|
ce.start != null && ce.end != null && (me = !_ || _.start !== ce.start || _.end !== ce.end), (me || de) && this.setSelection(ce.start, ce.end);
|
|
8915
|
-
} else
|
|
8915
|
+
} else q.mask && (this.stopSaveSelectionLoop(), this.forceUpdate());
|
|
8916
8916
|
}, g.componentWillUnmount = function() {
|
|
8917
|
-
this.mounted = !1, this.selectionDeferId !== null &&
|
|
8917
|
+
this.mounted = !1, this.selectionDeferId !== null && U(this.selectionDeferId), this.stopSaveSelectionLoop();
|
|
8918
8918
|
}, g.render = function() {
|
|
8919
8919
|
var _, c = this.props, k = (c.mask, c.alwaysShowMask, c.maskChar, c.formatChars, c.inputRef, c.beforeMaskedValueChange, c.children), W = i(c, ["mask", "alwaysShowMask", "maskChar", "formatChars", "inputRef", "beforeMaskedValueChange", "children"]);
|
|
8920
8920
|
if (k) {
|
|
8921
8921
|
G(k) || p(!1);
|
|
8922
|
-
var
|
|
8923
|
-
|
|
8924
|
-
return delete
|
|
8925
|
-
}), _ = k(
|
|
8926
|
-
return _.props[
|
|
8922
|
+
var V = ["onChange", "onPaste", "onMouseDown", "onFocus", "onBlur", "value", "disabled", "readOnly"], I = r({}, W);
|
|
8923
|
+
V.forEach(function(q) {
|
|
8924
|
+
return delete I[q];
|
|
8925
|
+
}), _ = k(I), V.filter(function(q) {
|
|
8926
|
+
return _.props[q] != null && _.props[q] !== W[q];
|
|
8927
8927
|
}).length && p(!1);
|
|
8928
8928
|
} else _ = a.createElement("input", r({ ref: this.handleRef }, W));
|
|
8929
|
-
var
|
|
8930
|
-
return this.maskOptions.mask && (W.disabled || W.readOnly || (
|
|
8929
|
+
var B = { onFocus: this.onFocus, onBlur: this.onBlur };
|
|
8930
|
+
return this.maskOptions.mask && (W.disabled || W.readOnly || (B.onChange = this.onChange, B.onPaste = this.onPaste, B.onMouseDown = this.onMouseDown), W.value != null && (B.value = this.value)), _ = a.cloneElement(_, B);
|
|
8931
8931
|
}, f;
|
|
8932
8932
|
}(a.Component);
|
|
8933
8933
|
return Kr = X, Kr;
|
|
@@ -9071,9 +9071,9 @@ function Xm() {
|
|
|
9071
9071
|
lastEditablePosition: null,
|
|
9072
9072
|
permanents: []
|
|
9073
9073
|
};
|
|
9074
|
-
var
|
|
9075
|
-
return h.split("").forEach(function(
|
|
9076
|
-
!
|
|
9074
|
+
var V = !1;
|
|
9075
|
+
return h.split("").forEach(function(I) {
|
|
9076
|
+
!V && I === "\\" ? V = !0 : (V || !g[I] ? (W.push(_.length), _.length === W.length - 1 && (c += I)) : k = _.length + 1, _ += I, V = !1);
|
|
9077
9077
|
}), {
|
|
9078
9078
|
maskChar: f,
|
|
9079
9079
|
formatChars: g,
|
|
@@ -9108,8 +9108,8 @@ function Xm() {
|
|
|
9108
9108
|
return f.length;
|
|
9109
9109
|
}
|
|
9110
9110
|
for (var c = _.length, k = f.length; k >= _.length; k--) {
|
|
9111
|
-
var W = f[k],
|
|
9112
|
-
if (
|
|
9111
|
+
var W = f[k], V = !b(h, k) && y(h, k, W);
|
|
9112
|
+
if (V) {
|
|
9113
9113
|
c = k + 1;
|
|
9114
9114
|
break;
|
|
9115
9115
|
}
|
|
@@ -9135,44 +9135,44 @@ function Xm() {
|
|
|
9135
9135
|
return f;
|
|
9136
9136
|
}
|
|
9137
9137
|
function x(h, f, g, _) {
|
|
9138
|
-
var c = g + _, k = h.maskChar, W = h.mask,
|
|
9138
|
+
var c = g + _, k = h.maskChar, W = h.mask, V = h.prefix, I = f.split("");
|
|
9139
9139
|
if (!k) {
|
|
9140
|
-
for (var
|
|
9141
|
-
b(h,
|
|
9142
|
-
return g = Math.max(
|
|
9140
|
+
for (var B = c; B < I.length; B++)
|
|
9141
|
+
b(h, B) && (I[B] = "");
|
|
9142
|
+
return g = Math.max(V.length, g), I.splice(g, c - g), f = I.join(""), C(h, f);
|
|
9143
9143
|
}
|
|
9144
|
-
return
|
|
9145
|
-
return j < g || j >= c ?
|
|
9144
|
+
return I.map(function(q, j) {
|
|
9145
|
+
return j < g || j >= c ? q : b(h, j) ? W[j] : k;
|
|
9146
9146
|
}).join("");
|
|
9147
9147
|
}
|
|
9148
9148
|
function F(h, f, g, _) {
|
|
9149
|
-
var c = h.mask, k = h.maskChar, W = h.prefix,
|
|
9150
|
-
return !b(h,
|
|
9151
|
-
},
|
|
9152
|
-
return !k || !b(h, L) ||
|
|
9149
|
+
var c = h.mask, k = h.maskChar, W = h.prefix, V = g.split(""), I = S(h, f), B = function($, L) {
|
|
9150
|
+
return !b(h, $) || L === c[$];
|
|
9151
|
+
}, q = function($, L) {
|
|
9152
|
+
return !k || !b(h, L) || $ !== k;
|
|
9153
9153
|
};
|
|
9154
|
-
return !k && _ > f.length && (f += c.slice(f.length, _)),
|
|
9155
|
-
for (; !
|
|
9156
|
-
if (_ >= f.length && (f += c[_]), !
|
|
9154
|
+
return !k && _ > f.length && (f += c.slice(f.length, _)), V.every(function(j) {
|
|
9155
|
+
for (; !B(_, j); ) {
|
|
9156
|
+
if (_ >= f.length && (f += c[_]), !q(j, _))
|
|
9157
9157
|
return !0;
|
|
9158
9158
|
if (_++, _ >= c.length)
|
|
9159
9159
|
return !1;
|
|
9160
9160
|
}
|
|
9161
|
-
var
|
|
9162
|
-
return
|
|
9161
|
+
var $ = y(h, _, j) || j === k;
|
|
9162
|
+
return $ ? (_ < f.length ? k || I || _ < W.length ? f = f.slice(0, _) + j + f.slice(_ + 1) : (f = f.slice(0, _) + j + f.slice(_), f = C(h, f)) : k || (f += j), _++, _ < c.length) : !0;
|
|
9163
9163
|
}), f;
|
|
9164
9164
|
}
|
|
9165
9165
|
function H(h, f, g, _) {
|
|
9166
|
-
var c = h.mask, k = h.maskChar, W = g.split(""),
|
|
9167
|
-
return !b(h,
|
|
9166
|
+
var c = h.mask, k = h.maskChar, W = g.split(""), V = _, I = function(q, j) {
|
|
9167
|
+
return !b(h, q) || j === c[q];
|
|
9168
9168
|
};
|
|
9169
|
-
return W.every(function(
|
|
9170
|
-
for (; !
|
|
9169
|
+
return W.every(function(B) {
|
|
9170
|
+
for (; !I(_, B); )
|
|
9171
9171
|
if (_++, _ >= c.length)
|
|
9172
9172
|
return !1;
|
|
9173
|
-
var
|
|
9174
|
-
return
|
|
9175
|
-
}), _ -
|
|
9173
|
+
var q = y(h, _, B) || B === k;
|
|
9174
|
+
return q && _++, _ < c.length;
|
|
9175
|
+
}), _ - V;
|
|
9176
9176
|
}
|
|
9177
9177
|
function P(h, f) {
|
|
9178
9178
|
for (var g = f; g >= 0; --g)
|
|
@@ -9190,43 +9190,43 @@ function Xm() {
|
|
|
9190
9190
|
return !h && h !== 0 ? "" : h + "";
|
|
9191
9191
|
}
|
|
9192
9192
|
function le(h, f, g, _, c) {
|
|
9193
|
-
var k = h.mask, W = h.prefix,
|
|
9194
|
-
if (g.end > c.start ? (
|
|
9193
|
+
var k = h.mask, W = h.prefix, V = h.lastEditablePosition, I = f, B = "", q = 0, j = 0, $ = Math.min(c.start, g.start);
|
|
9194
|
+
if (g.end > c.start ? (B = I.slice(c.start, g.end), q = H(h, _, B, $), q ? j = c.length : j = 0) : I.length < _.length && (j = _.length - I.length), I = _, j) {
|
|
9195
9195
|
if (j === 1 && !c.length) {
|
|
9196
9196
|
var L = c.start === g.start;
|
|
9197
|
-
|
|
9197
|
+
$ = L ? R(h, g.start) : P(h, g.start);
|
|
9198
9198
|
}
|
|
9199
|
-
|
|
9199
|
+
I = x(h, I, $, j);
|
|
9200
9200
|
}
|
|
9201
|
-
return
|
|
9202
|
-
value:
|
|
9203
|
-
enteredString:
|
|
9201
|
+
return I = F(h, I, B, $), $ = $ + q, $ >= k.length ? $ = k.length : $ < W.length && !q ? $ = W.length : $ >= W.length && $ < V && q && ($ = R(h, $)), I = C(h, I), B || (B = null), {
|
|
9202
|
+
value: I,
|
|
9203
|
+
enteredString: B,
|
|
9204
9204
|
selection: {
|
|
9205
|
-
start:
|
|
9206
|
-
end:
|
|
9205
|
+
start: $,
|
|
9206
|
+
end: $
|
|
9207
9207
|
}
|
|
9208
9208
|
};
|
|
9209
9209
|
}
|
|
9210
|
-
function
|
|
9210
|
+
function ne() {
|
|
9211
9211
|
var h = new RegExp("windows", "i"), f = new RegExp("phone", "i"), g = navigator.userAgent;
|
|
9212
9212
|
return h.test(g) && f.test(g);
|
|
9213
9213
|
}
|
|
9214
9214
|
function G(h) {
|
|
9215
9215
|
return typeof h == "function";
|
|
9216
9216
|
}
|
|
9217
|
-
function
|
|
9217
|
+
function ee() {
|
|
9218
9218
|
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame;
|
|
9219
9219
|
}
|
|
9220
9220
|
function A() {
|
|
9221
9221
|
return window.cancelAnimationFrame || window.webkitCancelRequestAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame;
|
|
9222
9222
|
}
|
|
9223
|
-
function
|
|
9223
|
+
function z(h) {
|
|
9224
9224
|
var f = !!A(), g;
|
|
9225
|
-
return f ? g =
|
|
9225
|
+
return f ? g = ee() : g = function() {
|
|
9226
9226
|
return setTimeout(h, 1e3 / 60);
|
|
9227
9227
|
}, g(h);
|
|
9228
9228
|
}
|
|
9229
|
-
function
|
|
9229
|
+
function U(h) {
|
|
9230
9230
|
var f = A() || clearTimeout;
|
|
9231
9231
|
f(h);
|
|
9232
9232
|
}
|
|
@@ -9235,70 +9235,70 @@ function Xm() {
|
|
|
9235
9235
|
function f(_) {
|
|
9236
9236
|
var c;
|
|
9237
9237
|
c = h.call(this, _) || this, c.focused = !1, c.mounted = !1, c.previousSelection = null, c.selectionDeferId = null, c.saveSelectionLoopDeferId = null, c.saveSelectionLoop = function() {
|
|
9238
|
-
c.previousSelection = c.getSelection(), c.saveSelectionLoopDeferId =
|
|
9238
|
+
c.previousSelection = c.getSelection(), c.saveSelectionLoopDeferId = z(c.saveSelectionLoop);
|
|
9239
9239
|
}, c.runSaveSelectionLoop = function() {
|
|
9240
9240
|
c.saveSelectionLoopDeferId === null && c.saveSelectionLoop();
|
|
9241
9241
|
}, c.stopSaveSelectionLoop = function() {
|
|
9242
|
-
c.saveSelectionLoopDeferId !== null && (
|
|
9242
|
+
c.saveSelectionLoopDeferId !== null && (U(c.saveSelectionLoopDeferId), c.saveSelectionLoopDeferId = null, c.previousSelection = null);
|
|
9243
9243
|
}, c.getInputDOMNode = function() {
|
|
9244
9244
|
if (!c.mounted)
|
|
9245
9245
|
return null;
|
|
9246
|
-
var
|
|
9247
|
-
if (
|
|
9246
|
+
var Y = t.findDOMNode(p(p(c))), te = typeof window < "u" && Y instanceof window.Element;
|
|
9247
|
+
if (Y && !te)
|
|
9248
9248
|
return null;
|
|
9249
|
-
if (
|
|
9249
|
+
if (Y.nodeName !== "INPUT" && (Y = Y.querySelector("input")), !Y)
|
|
9250
9250
|
throw new Error("react-input-mask: inputComponent doesn't contain input node");
|
|
9251
|
-
return
|
|
9251
|
+
return Y;
|
|
9252
9252
|
}, c.getInputValue = function() {
|
|
9253
|
-
var
|
|
9254
|
-
return
|
|
9255
|
-
}, c.setInputValue = function(
|
|
9256
|
-
var
|
|
9257
|
-
|
|
9253
|
+
var Y = c.getInputDOMNode();
|
|
9254
|
+
return Y ? Y.value : null;
|
|
9255
|
+
}, c.setInputValue = function(Y) {
|
|
9256
|
+
var te = c.getInputDOMNode();
|
|
9257
|
+
te && (c.value = Y, te.value = Y);
|
|
9258
9258
|
}, c.setCursorToEnd = function() {
|
|
9259
|
-
var
|
|
9260
|
-
|
|
9261
|
-
}, c.setSelection = function(
|
|
9259
|
+
var Y = N(c.maskOptions, c.value), te = R(c.maskOptions, Y);
|
|
9260
|
+
te !== null && c.setCursorPosition(te);
|
|
9261
|
+
}, c.setSelection = function(Y, te, ce) {
|
|
9262
9262
|
ce === void 0 && (ce = {});
|
|
9263
9263
|
var oe = c.getInputDOMNode(), de = c.isFocused();
|
|
9264
9264
|
if (!(!oe || !de)) {
|
|
9265
9265
|
var me = ce, _e = me.deferred;
|
|
9266
|
-
_e || u(oe,
|
|
9267
|
-
c.selectionDeferId = null, u(oe,
|
|
9266
|
+
_e || u(oe, Y, te), c.selectionDeferId !== null && U(c.selectionDeferId), c.selectionDeferId = z(function() {
|
|
9267
|
+
c.selectionDeferId = null, u(oe, Y, te);
|
|
9268
9268
|
}), c.previousSelection = {
|
|
9269
|
-
start:
|
|
9270
|
-
end:
|
|
9271
|
-
length: Math.abs(
|
|
9269
|
+
start: Y,
|
|
9270
|
+
end: te,
|
|
9271
|
+
length: Math.abs(te - Y)
|
|
9272
9272
|
};
|
|
9273
9273
|
}
|
|
9274
9274
|
}, c.getSelection = function() {
|
|
9275
|
-
var
|
|
9276
|
-
return d(
|
|
9275
|
+
var Y = c.getInputDOMNode();
|
|
9276
|
+
return d(Y);
|
|
9277
9277
|
}, c.getCursorPosition = function() {
|
|
9278
9278
|
return c.getSelection().start;
|
|
9279
|
-
}, c.setCursorPosition = function(
|
|
9280
|
-
c.setSelection(
|
|
9279
|
+
}, c.setCursorPosition = function(Y) {
|
|
9280
|
+
c.setSelection(Y, Y);
|
|
9281
9281
|
}, c.isFocused = function() {
|
|
9282
9282
|
return c.focused;
|
|
9283
9283
|
}, c.getBeforeMaskedValueChangeConfig = function() {
|
|
9284
|
-
var
|
|
9284
|
+
var Y = c.maskOptions, te = Y.mask, ce = Y.maskChar, oe = Y.permanents, de = Y.formatChars, me = c.props.alwaysShowMask;
|
|
9285
9285
|
return {
|
|
9286
|
-
mask:
|
|
9286
|
+
mask: te,
|
|
9287
9287
|
maskChar: ce,
|
|
9288
9288
|
permanents: oe,
|
|
9289
9289
|
alwaysShowMask: !!me,
|
|
9290
9290
|
formatChars: de
|
|
9291
9291
|
};
|
|
9292
|
-
}, c.isInputAutofilled = function(
|
|
9292
|
+
}, c.isInputAutofilled = function(Y, te, ce, oe) {
|
|
9293
9293
|
var de = c.getInputDOMNode();
|
|
9294
9294
|
try {
|
|
9295
9295
|
if (de.matches(":-webkit-autofill"))
|
|
9296
9296
|
return !0;
|
|
9297
9297
|
} catch {
|
|
9298
9298
|
}
|
|
9299
|
-
return c.focused ? oe.end < ce.length &&
|
|
9300
|
-
}, c.onChange = function(
|
|
9301
|
-
var
|
|
9299
|
+
return c.focused ? oe.end < ce.length && te.end === Y.length : !0;
|
|
9300
|
+
}, c.onChange = function(Y) {
|
|
9301
|
+
var te = p(p(c)), ce = te.beforePasteState, oe = p(p(c)), de = oe.previousSelection, me = c.props.beforeMaskedValueChange, _e = c.getInputValue(), Fe = c.value, Le = c.getSelection();
|
|
9302
9302
|
c.isInputAutofilled(_e, Le, Fe, de) && (Fe = C(c.maskOptions, ""), de = {
|
|
9303
9303
|
start: 0,
|
|
9304
9304
|
end: 0,
|
|
@@ -9319,11 +9319,11 @@ function Xm() {
|
|
|
9319
9319
|
}, Z, c.getBeforeMaskedValueChangeConfig());
|
|
9320
9320
|
Se = Pe.value, ie = Pe.selection;
|
|
9321
9321
|
}
|
|
9322
|
-
c.setInputValue(Se), G(c.props.onChange) && c.props.onChange(
|
|
9322
|
+
c.setInputValue(Se), G(c.props.onChange) && c.props.onChange(Y), c.isWindowsPhoneBrowser ? c.setSelection(ie.start, ie.end, {
|
|
9323
9323
|
deferred: !0
|
|
9324
9324
|
}) : c.setSelection(ie.start, ie.end);
|
|
9325
|
-
}, c.onFocus = function(
|
|
9326
|
-
var
|
|
9325
|
+
}, c.onFocus = function(Y) {
|
|
9326
|
+
var te = c.props.beforeMaskedValueChange, ce = c.maskOptions, oe = ce.mask, de = ce.prefix;
|
|
9327
9327
|
if (c.focused = !0, c.mounted = !0, oe) {
|
|
9328
9328
|
if (c.value)
|
|
9329
9329
|
N(c.maskOptions, c.value) < c.maskOptions.mask.length && c.setCursorToEnd();
|
|
@@ -9332,8 +9332,8 @@ function Xm() {
|
|
|
9332
9332
|
start: Le,
|
|
9333
9333
|
end: Le
|
|
9334
9334
|
};
|
|
9335
|
-
if (G(
|
|
9336
|
-
var Z =
|
|
9335
|
+
if (G(te)) {
|
|
9336
|
+
var Z = te({
|
|
9337
9337
|
value: _e,
|
|
9338
9338
|
selection: Be
|
|
9339
9339
|
}, {
|
|
@@ -9343,17 +9343,17 @@ function Xm() {
|
|
|
9343
9343
|
_e = Z.value, Be = Z.selection;
|
|
9344
9344
|
}
|
|
9345
9345
|
var ie = _e !== c.getInputValue();
|
|
9346
|
-
ie && c.setInputValue(_e), ie && G(c.props.onChange) && c.props.onChange(
|
|
9346
|
+
ie && c.setInputValue(_e), ie && G(c.props.onChange) && c.props.onChange(Y), c.setSelection(Be.start, Be.end);
|
|
9347
9347
|
}
|
|
9348
9348
|
c.runSaveSelectionLoop();
|
|
9349
9349
|
}
|
|
9350
|
-
G(c.props.onFocus) && c.props.onFocus(
|
|
9351
|
-
}, c.onBlur = function(
|
|
9352
|
-
var
|
|
9350
|
+
G(c.props.onFocus) && c.props.onFocus(Y);
|
|
9351
|
+
}, c.onBlur = function(Y) {
|
|
9352
|
+
var te = c.props.beforeMaskedValueChange, ce = c.maskOptions.mask;
|
|
9353
9353
|
if (c.stopSaveSelectionLoop(), c.focused = !1, ce && !c.props.alwaysShowMask && D(c.maskOptions, c.value)) {
|
|
9354
9354
|
var oe = "";
|
|
9355
|
-
if (G(
|
|
9356
|
-
var de =
|
|
9355
|
+
if (G(te)) {
|
|
9356
|
+
var de = te({
|
|
9357
9357
|
value: oe,
|
|
9358
9358
|
selection: null
|
|
9359
9359
|
}, {
|
|
@@ -9363,66 +9363,66 @@ function Xm() {
|
|
|
9363
9363
|
oe = de.value;
|
|
9364
9364
|
}
|
|
9365
9365
|
var me = oe !== c.getInputValue();
|
|
9366
|
-
me && c.setInputValue(oe), me && G(c.props.onChange) && c.props.onChange(
|
|
9366
|
+
me && c.setInputValue(oe), me && G(c.props.onChange) && c.props.onChange(Y);
|
|
9367
9367
|
}
|
|
9368
|
-
G(c.props.onBlur) && c.props.onBlur(
|
|
9369
|
-
}, c.onMouseDown = function(
|
|
9368
|
+
G(c.props.onBlur) && c.props.onBlur(Y);
|
|
9369
|
+
}, c.onMouseDown = function(Y) {
|
|
9370
9370
|
if (!c.focused && document.addEventListener) {
|
|
9371
|
-
c.mouseDownX =
|
|
9372
|
-
var
|
|
9371
|
+
c.mouseDownX = Y.clientX, c.mouseDownY = Y.clientY, c.mouseDownTime = (/* @__PURE__ */ new Date()).getTime();
|
|
9372
|
+
var te = function ce(oe) {
|
|
9373
9373
|
if (document.removeEventListener("mouseup", ce), !!c.focused) {
|
|
9374
9374
|
var de = Math.abs(oe.clientX - c.mouseDownX), me = Math.abs(oe.clientY - c.mouseDownY), _e = Math.max(de, me), Fe = (/* @__PURE__ */ new Date()).getTime() - c.mouseDownTime;
|
|
9375
9375
|
(_e <= 10 && Fe <= 200 || _e <= 5 && Fe <= 300) && c.setCursorToEnd();
|
|
9376
9376
|
}
|
|
9377
9377
|
};
|
|
9378
|
-
document.addEventListener("mouseup",
|
|
9378
|
+
document.addEventListener("mouseup", te);
|
|
9379
9379
|
}
|
|
9380
|
-
G(c.props.onMouseDown) && c.props.onMouseDown(
|
|
9381
|
-
}, c.onPaste = function(
|
|
9382
|
-
G(c.props.onPaste) && c.props.onPaste(
|
|
9380
|
+
G(c.props.onMouseDown) && c.props.onMouseDown(Y);
|
|
9381
|
+
}, c.onPaste = function(Y) {
|
|
9382
|
+
G(c.props.onPaste) && c.props.onPaste(Y), Y.defaultPrevented || (c.beforePasteState = {
|
|
9383
9383
|
value: c.getInputValue(),
|
|
9384
9384
|
selection: c.getSelection()
|
|
9385
9385
|
}, c.setInputValue(""));
|
|
9386
|
-
}, c.handleRef = function(
|
|
9387
|
-
c.props.children == null && G(c.props.inputRef) && c.props.inputRef(
|
|
9386
|
+
}, c.handleRef = function(Y) {
|
|
9387
|
+
c.props.children == null && G(c.props.inputRef) && c.props.inputRef(Y);
|
|
9388
9388
|
};
|
|
9389
|
-
var k = _.mask, W = _.maskChar,
|
|
9390
|
-
c.maskOptions = w(k, W,
|
|
9391
|
-
var
|
|
9392
|
-
if (c.maskOptions.mask && (
|
|
9389
|
+
var k = _.mask, W = _.maskChar, V = _.formatChars, I = _.alwaysShowMask, B = _.beforeMaskedValueChange, q = _.defaultValue, j = _.value;
|
|
9390
|
+
c.maskOptions = w(k, W, V), q == null && (q = ""), j == null && (j = q);
|
|
9391
|
+
var $ = K(j);
|
|
9392
|
+
if (c.maskOptions.mask && (I || $) && ($ = C(c.maskOptions, $), G(B))) {
|
|
9393
9393
|
var L = _.value;
|
|
9394
|
-
_.value == null && (L =
|
|
9395
|
-
var Q =
|
|
9396
|
-
value:
|
|
9394
|
+
_.value == null && (L = q), L = K(L);
|
|
9395
|
+
var Q = B({
|
|
9396
|
+
value: $,
|
|
9397
9397
|
selection: null
|
|
9398
9398
|
}, {
|
|
9399
9399
|
value: L,
|
|
9400
9400
|
selection: null
|
|
9401
9401
|
}, null, c.getBeforeMaskedValueChangeConfig());
|
|
9402
|
-
|
|
9402
|
+
$ = Q.value;
|
|
9403
9403
|
}
|
|
9404
|
-
return c.value =
|
|
9404
|
+
return c.value = $, c;
|
|
9405
9405
|
}
|
|
9406
9406
|
var g = f.prototype;
|
|
9407
9407
|
return g.componentDidMount = function() {
|
|
9408
|
-
this.mounted = !0, this.getInputDOMNode() && (this.isWindowsPhoneBrowser =
|
|
9408
|
+
this.mounted = !0, this.getInputDOMNode() && (this.isWindowsPhoneBrowser = ne(), this.maskOptions.mask && this.getInputValue() !== this.value && this.setInputValue(this.value));
|
|
9409
9409
|
}, g.componentDidUpdate = function() {
|
|
9410
|
-
var c = this.previousSelection, k = this.props, W = k.beforeMaskedValueChange,
|
|
9411
|
-
if (this.maskOptions = w(
|
|
9410
|
+
var c = this.previousSelection, k = this.props, W = k.beforeMaskedValueChange, V = k.alwaysShowMask, I = k.mask, B = k.maskChar, q = k.formatChars, j = this.maskOptions, $ = V || this.isFocused(), L = this.props.value != null, Q = L ? K(this.props.value) : this.value, Y = c ? c.start : null;
|
|
9411
|
+
if (this.maskOptions = w(I, B, q), this.maskOptions.mask)
|
|
9412
9412
|
!j.mask && this.isFocused() && this.runSaveSelectionLoop();
|
|
9413
9413
|
else {
|
|
9414
9414
|
j.mask && (this.stopSaveSelectionLoop(), this.forceUpdate());
|
|
9415
9415
|
return;
|
|
9416
9416
|
}
|
|
9417
|
-
var
|
|
9418
|
-
if (!j.mask && !L && (Q = this.getInputValue()), (
|
|
9417
|
+
var te = this.maskOptions.mask && this.maskOptions.mask !== j.mask;
|
|
9418
|
+
if (!j.mask && !L && (Q = this.getInputValue()), (te || this.maskOptions.mask && (Q || $)) && (Q = C(this.maskOptions, Q)), te) {
|
|
9419
9419
|
var ce = N(this.maskOptions, Q);
|
|
9420
|
-
(
|
|
9420
|
+
(Y === null || ce < Y) && (S(this.maskOptions, Q) ? Y = ce : Y = R(this.maskOptions, ce));
|
|
9421
9421
|
}
|
|
9422
|
-
this.maskOptions.mask && D(this.maskOptions, Q) &&
|
|
9422
|
+
this.maskOptions.mask && D(this.maskOptions, Q) && !$ && (!L || !this.props.value) && (Q = "");
|
|
9423
9423
|
var oe = {
|
|
9424
|
-
start:
|
|
9425
|
-
end:
|
|
9424
|
+
start: Y,
|
|
9425
|
+
end: Y
|
|
9426
9426
|
};
|
|
9427
9427
|
if (G(W)) {
|
|
9428
9428
|
var de = W({
|
|
@@ -9436,41 +9436,41 @@ function Xm() {
|
|
|
9436
9436
|
}
|
|
9437
9437
|
this.value = Q;
|
|
9438
9438
|
var me = this.getInputValue() !== this.value;
|
|
9439
|
-
me ? (this.setInputValue(this.value), this.forceUpdate()) :
|
|
9439
|
+
me ? (this.setInputValue(this.value), this.forceUpdate()) : te && this.forceUpdate();
|
|
9440
9440
|
var _e = !1;
|
|
9441
9441
|
oe.start != null && oe.end != null && (_e = !c || c.start !== oe.start || c.end !== oe.end), (_e || me) && this.setSelection(oe.start, oe.end);
|
|
9442
9442
|
}, g.componentWillUnmount = function() {
|
|
9443
|
-
this.mounted = !1, this.selectionDeferId !== null &&
|
|
9443
|
+
this.mounted = !1, this.selectionDeferId !== null && U(this.selectionDeferId), this.stopSaveSelectionLoop();
|
|
9444
9444
|
}, g.render = function() {
|
|
9445
9445
|
var c = this.props, k = c.mask;
|
|
9446
9446
|
c.alwaysShowMask;
|
|
9447
|
-
var W = c.maskChar,
|
|
9447
|
+
var W = c.maskChar, V = c.formatChars, I = c.inputRef;
|
|
9448
9448
|
c.beforeMaskedValueChange;
|
|
9449
|
-
var
|
|
9449
|
+
var B = c.children, q = l(c, ["mask", "alwaysShowMask", "maskChar", "formatChars", "inputRef", "beforeMaskedValueChange", "children"]), j;
|
|
9450
9450
|
if (process.env.NODE_ENV !== "production" && r(
|
|
9451
9451
|
// parse mask to test against actual mask prop as this.maskOptions
|
|
9452
9452
|
// will be updated later in componentDidUpdate
|
|
9453
|
-
!
|
|
9453
|
+
!q.maxLength || !w(k, W, V).mask,
|
|
9454
9454
|
"react-input-mask: maxLength property shouldn't be passed to the masked input. It breaks masking and unnecessary because length is limited by the mask length."
|
|
9455
|
-
),
|
|
9456
|
-
G(
|
|
9457
|
-
var
|
|
9458
|
-
|
|
9459
|
-
return delete L[
|
|
9460
|
-
}), j =
|
|
9461
|
-
var Q =
|
|
9462
|
-
return j.props[
|
|
9455
|
+
), B) {
|
|
9456
|
+
G(B) || (process.env.NODE_ENV !== "production" ? e(!1, "react-input-mask: children must be a function") : e(!1));
|
|
9457
|
+
var $ = ["onChange", "onPaste", "onMouseDown", "onFocus", "onBlur", "value", "disabled", "readOnly"], L = i({}, q);
|
|
9458
|
+
$.forEach(function(te) {
|
|
9459
|
+
return delete L[te];
|
|
9460
|
+
}), j = B(L);
|
|
9461
|
+
var Q = $.filter(function(te) {
|
|
9462
|
+
return j.props[te] != null && j.props[te] !== q[te];
|
|
9463
9463
|
});
|
|
9464
|
-
Q.length && (process.env.NODE_ENV !== "production" ? e(!1, "react-input-mask: the following props should be passed to the react-input-mask's component and should not be altered in children's function: " + Q.join(", ")) : e(!1)), process.env.NODE_ENV !== "production" && r(!
|
|
9464
|
+
Q.length && (process.env.NODE_ENV !== "production" ? e(!1, "react-input-mask: the following props should be passed to the react-input-mask's component and should not be altered in children's function: " + Q.join(", ")) : e(!1)), process.env.NODE_ENV !== "production" && r(!I, "react-input-mask: inputRef is ignored when children is passed, attach ref to the children instead");
|
|
9465
9465
|
} else
|
|
9466
9466
|
j = a.createElement("input", i({
|
|
9467
9467
|
ref: this.handleRef
|
|
9468
|
-
},
|
|
9469
|
-
var
|
|
9468
|
+
}, q));
|
|
9469
|
+
var Y = {
|
|
9470
9470
|
onFocus: this.onFocus,
|
|
9471
9471
|
onBlur: this.onBlur
|
|
9472
9472
|
};
|
|
9473
|
-
return this.maskOptions.mask && (!
|
|
9473
|
+
return this.maskOptions.mask && (!q.disabled && !q.readOnly && (Y.onChange = this.onChange, Y.onPaste = this.onPaste, Y.onMouseDown = this.onMouseDown), q.value != null && (Y.value = this.value)), j = a.cloneElement(j, Y), j;
|
|
9474
9474
|
}, f;
|
|
9475
9475
|
}(a.Component);
|
|
9476
9476
|
return Jr = X, Jr;
|
|
@@ -9519,13 +9519,13 @@ const Jm = /* @__PURE__ */ qa(Zm), eh = "_datepickerInput_e80nk_43", th = "_date
|
|
|
9519
9519
|
Re(() => {
|
|
9520
9520
|
b || S(!1);
|
|
9521
9521
|
}, [b]);
|
|
9522
|
-
const F = (
|
|
9523
|
-
S(!0), v && v(
|
|
9522
|
+
const F = (ne) => {
|
|
9523
|
+
S(!0), v && v(ne);
|
|
9524
9524
|
}, H = () => {
|
|
9525
9525
|
S(!1);
|
|
9526
|
-
}, P = (
|
|
9527
|
-
const { target: G } =
|
|
9528
|
-
r && r(
|
|
9526
|
+
}, P = (ne) => {
|
|
9527
|
+
const { target: G } = ne, { value: ee, name: A } = G;
|
|
9528
|
+
r && r(ne, { value: ee ? new Date(ee) : null, name: A });
|
|
9529
9529
|
}, R = E({
|
|
9530
9530
|
[nt.datepickerInput]: !0,
|
|
9531
9531
|
[nt[`datepickerInput_${i}`]]: i,
|
|
@@ -9559,17 +9559,17 @@ const Jm = /* @__PURE__ */ qa(Zm), eh = "_datepickerInput_e80nk_43", th = "_date
|
|
|
9559
9559
|
disabled: l,
|
|
9560
9560
|
mask: o,
|
|
9561
9561
|
onBlur: m,
|
|
9562
|
-
onMouseDown: (
|
|
9563
|
-
w &&
|
|
9562
|
+
onMouseDown: (ne) => {
|
|
9563
|
+
w && ne.preventDefault();
|
|
9564
9564
|
},
|
|
9565
9565
|
onChange: P,
|
|
9566
9566
|
name: e,
|
|
9567
9567
|
value: t,
|
|
9568
9568
|
placeholder: u,
|
|
9569
|
-
children: (
|
|
9569
|
+
children: (ne) => /* @__PURE__ */ M(
|
|
9570
9570
|
"input",
|
|
9571
9571
|
{
|
|
9572
|
-
...
|
|
9572
|
+
...ne,
|
|
9573
9573
|
ref: a,
|
|
9574
9574
|
autoComplete: "off",
|
|
9575
9575
|
placeholder: u,
|
|
@@ -9661,53 +9661,54 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
9661
9661
|
isRelative: P = !0,
|
|
9662
9662
|
minDate: R,
|
|
9663
9663
|
maxDate: K,
|
|
9664
|
-
|
|
9665
|
-
|
|
9666
|
-
|
|
9667
|
-
|
|
9668
|
-
|
|
9669
|
-
|
|
9670
|
-
|
|
9671
|
-
|
|
9672
|
-
|
|
9664
|
+
variant: le = "outlined",
|
|
9665
|
+
classNameRoot: ne,
|
|
9666
|
+
classNameDatePickerInputRoot: G,
|
|
9667
|
+
classNameLabel: ee,
|
|
9668
|
+
classNameBaseTooltipRoot: A
|
|
9669
|
+
} = n, [z, U] = Me(!1), X = () => {
|
|
9670
|
+
m && m(), N && N(), U(!0);
|
|
9671
|
+
}, h = () => {
|
|
9672
|
+
v && v(), D && D(), U(!1);
|
|
9673
|
+
}, f = (I, B) => {
|
|
9673
9674
|
if (y) {
|
|
9674
|
-
const
|
|
9675
|
+
const q = {
|
|
9675
9676
|
target: {
|
|
9676
9677
|
name: S || "",
|
|
9677
|
-
value:
|
|
9678
|
+
value: I ? I.toISOString() : null
|
|
9678
9679
|
}
|
|
9679
9680
|
// Можно добавить другие необходимые поля event'а если нужно
|
|
9680
9681
|
};
|
|
9681
|
-
S && y(
|
|
9682
|
+
S && y(q, { name: S, value: I });
|
|
9682
9683
|
}
|
|
9683
|
-
},
|
|
9684
|
+
}, g = E({
|
|
9684
9685
|
[Ye.datePicker]: !0,
|
|
9685
9686
|
[Ye.datePicker_size]: r,
|
|
9686
9687
|
[Ye.datePicker_active]: !!u,
|
|
9687
9688
|
[Ye.datePicker_error]: !!s,
|
|
9688
9689
|
[Ye.datePicker_relative]: P,
|
|
9689
|
-
...
|
|
9690
|
-
}), g = E({
|
|
9691
|
-
[Ye.datePicker__customInput]: !0,
|
|
9692
|
-
...te && { [te]: !0 }
|
|
9690
|
+
...ne && { [ne]: !0 }
|
|
9693
9691
|
}), _ = E({
|
|
9694
|
-
[Ye.
|
|
9692
|
+
[Ye.datePicker__customInput]: !0,
|
|
9695
9693
|
...G && { [G]: !0 }
|
|
9696
9694
|
}), c = E({
|
|
9695
|
+
[Ye.datePicker__label]: !0,
|
|
9696
|
+
...ee && { [ee]: !0 }
|
|
9697
|
+
}), k = E({
|
|
9697
9698
|
[Ye.datePicker__error]: !0
|
|
9698
|
-
}),
|
|
9699
|
-
|
|
9699
|
+
}), W = (I) => {
|
|
9700
|
+
f(null);
|
|
9700
9701
|
};
|
|
9701
|
-
return /* @__PURE__ */ ue("div", { onMouseEnter: x, className:
|
|
9702
|
+
return /* @__PURE__ */ ue("div", { onMouseEnter: x, className: g, children: [
|
|
9702
9703
|
l && /* @__PURE__ */ M(
|
|
9703
9704
|
Pr,
|
|
9704
9705
|
{
|
|
9705
|
-
classNameRoot:
|
|
9706
|
+
classNameRoot: c,
|
|
9706
9707
|
tooltipPosition: H,
|
|
9707
9708
|
required: i,
|
|
9708
9709
|
label: l,
|
|
9709
9710
|
infoTooltipText: F,
|
|
9710
|
-
classNameBaseTooltipRoot:
|
|
9711
|
+
classNameBaseTooltipRoot: A
|
|
9711
9712
|
}
|
|
9712
9713
|
),
|
|
9713
9714
|
/* @__PURE__ */ M(
|
|
@@ -9721,28 +9722,28 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
9721
9722
|
onFocus: N,
|
|
9722
9723
|
required: i,
|
|
9723
9724
|
name: S,
|
|
9724
|
-
onChange:
|
|
9725
|
-
onCalendarClose:
|
|
9726
|
-
onCalendarOpen:
|
|
9725
|
+
onChange: f,
|
|
9726
|
+
onCalendarClose: h,
|
|
9727
|
+
onCalendarOpen: X,
|
|
9727
9728
|
selected: d,
|
|
9728
9729
|
value: u,
|
|
9729
9730
|
disabled: o,
|
|
9730
9731
|
renderCustomHeader: ({
|
|
9731
|
-
monthDate:
|
|
9732
|
-
decreaseMonth:
|
|
9733
|
-
increaseMonth:
|
|
9732
|
+
monthDate: I,
|
|
9733
|
+
decreaseMonth: B,
|
|
9734
|
+
increaseMonth: q
|
|
9734
9735
|
}) => {
|
|
9735
|
-
const
|
|
9736
|
+
const j = I.toLocaleString("ru-RU", {
|
|
9736
9737
|
month: "short"
|
|
9737
|
-
}),
|
|
9738
|
+
}), $ = I.getFullYear(), L = j.charAt(0).toUpperCase() + j.slice(1) + " " + $;
|
|
9738
9739
|
return /* @__PURE__ */ ue("div", { className: Ye.datePicker__customHeader, children: [
|
|
9739
|
-
/* @__PURE__ */ M(pt, { children:
|
|
9740
|
+
/* @__PURE__ */ M(pt, { children: L.replace(".", "") }),
|
|
9740
9741
|
/* @__PURE__ */ ue("div", { className: Ye.datePicker__navigationWrapper, children: [
|
|
9741
9742
|
/* @__PURE__ */ M(
|
|
9742
9743
|
We,
|
|
9743
9744
|
{
|
|
9744
9745
|
name: pe.ArrowBottom,
|
|
9745
|
-
onClick:
|
|
9746
|
+
onClick: B,
|
|
9746
9747
|
className: E(
|
|
9747
9748
|
Ye.datePicker__navigation,
|
|
9748
9749
|
Ye.datePicker__navigation_previous
|
|
@@ -9753,15 +9754,15 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
9753
9754
|
We,
|
|
9754
9755
|
{
|
|
9755
9756
|
name: pe.ArrowBottom,
|
|
9756
|
-
onClick:
|
|
9757
|
+
onClick: q,
|
|
9757
9758
|
className: E(Ye.datePicker__navigation)
|
|
9758
9759
|
}
|
|
9759
9760
|
)
|
|
9760
9761
|
] })
|
|
9761
9762
|
] });
|
|
9762
9763
|
},
|
|
9763
|
-
calendarContainer: ({ className:
|
|
9764
|
-
|
|
9764
|
+
calendarContainer: ({ className: I, children: B }) => /* @__PURE__ */ ue("div", { className: E(Ye.datePicker__customContainer, I), children: [
|
|
9765
|
+
B,
|
|
9765
9766
|
b && /* @__PURE__ */ M("div", { className: Ye.datePicker__footer, children: /* @__PURE__ */ M(
|
|
9766
9767
|
pt,
|
|
9767
9768
|
{
|
|
@@ -9769,7 +9770,7 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
9769
9770
|
Ye.datePicker__footerActions,
|
|
9770
9771
|
Ye.datePicker__footerActions_clear
|
|
9771
9772
|
),
|
|
9772
|
-
onClick:
|
|
9773
|
+
onClick: W,
|
|
9773
9774
|
children: "Очистить"
|
|
9774
9775
|
}
|
|
9775
9776
|
) })
|
|
@@ -9777,13 +9778,14 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
9777
9778
|
customInput: /* @__PURE__ */ M(
|
|
9778
9779
|
ss,
|
|
9779
9780
|
{
|
|
9781
|
+
variant: le,
|
|
9780
9782
|
placeholderText: a,
|
|
9781
9783
|
dateFormatMask: t,
|
|
9782
9784
|
changed: C,
|
|
9783
|
-
classNameRoot:
|
|
9785
|
+
classNameRoot: _,
|
|
9784
9786
|
size: r,
|
|
9785
9787
|
error: s,
|
|
9786
|
-
focused:
|
|
9788
|
+
focused: z,
|
|
9787
9789
|
onMouseDownInput: w,
|
|
9788
9790
|
readOnlyInput: p,
|
|
9789
9791
|
disabled: o
|
|
@@ -9791,7 +9793,7 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
9791
9793
|
)
|
|
9792
9794
|
}
|
|
9793
9795
|
),
|
|
9794
|
-
s && /* @__PURE__ */ M("div", { className:
|
|
9796
|
+
s && /* @__PURE__ */ M("div", { className: k, children: s })
|
|
9795
9797
|
] });
|
|
9796
9798
|
}, Ch = (n) => {
|
|
9797
9799
|
const { getRootProps: a, children: t, disabled: e, name: r, getInputProps: o } = n;
|
|
@@ -10013,19 +10015,19 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
10013
10015
|
[ct.spInput__error]: !0,
|
|
10014
10016
|
[ct.spInput__error_absolutePosition]: s,
|
|
10015
10017
|
...S && { [S]: !0 }
|
|
10016
|
-
}),
|
|
10018
|
+
}), ne = E({
|
|
10017
10019
|
...C && { [C]: !0 }
|
|
10018
|
-
}), G = (
|
|
10019
|
-
e(
|
|
10020
|
-
},
|
|
10021
|
-
const { value:
|
|
10022
|
-
m &&
|
|
10020
|
+
}), G = (z) => {
|
|
10021
|
+
e(z, { name: u, value: "" });
|
|
10022
|
+
}, ee = (z) => {
|
|
10023
|
+
const { value: U, name: X } = z.target;
|
|
10024
|
+
m && U && !new RegExp(m).test(U) || e(z, { value: U, name: X });
|
|
10023
10025
|
};
|
|
10024
10026
|
return /* @__PURE__ */ ue("div", { className: H, children: [
|
|
10025
10027
|
r && /* @__PURE__ */ M(
|
|
10026
10028
|
Pr,
|
|
10027
10029
|
{
|
|
10028
|
-
classNameRoot:
|
|
10030
|
+
classNameRoot: ne,
|
|
10029
10031
|
tooltipPosition: b,
|
|
10030
10032
|
required: p,
|
|
10031
10033
|
label: r,
|
|
@@ -10040,7 +10042,7 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
10040
10042
|
...F,
|
|
10041
10043
|
placeholder: D,
|
|
10042
10044
|
disabled: i,
|
|
10043
|
-
onChange:
|
|
10045
|
+
onChange: ee,
|
|
10044
10046
|
title: y ? t : void 0,
|
|
10045
10047
|
value: t,
|
|
10046
10048
|
name: u,
|
|
@@ -10306,24 +10308,24 @@ function vv() {
|
|
|
10306
10308
|
var Q = L.$$typeof;
|
|
10307
10309
|
switch (Q) {
|
|
10308
10310
|
case a:
|
|
10309
|
-
var
|
|
10310
|
-
switch (
|
|
10311
|
+
var Y = L.type;
|
|
10312
|
+
switch (Y) {
|
|
10311
10313
|
case l:
|
|
10312
10314
|
case p:
|
|
10313
10315
|
case e:
|
|
10314
10316
|
case o:
|
|
10315
10317
|
case r:
|
|
10316
10318
|
case d:
|
|
10317
|
-
return
|
|
10319
|
+
return Y;
|
|
10318
10320
|
default:
|
|
10319
|
-
var
|
|
10320
|
-
switch (
|
|
10321
|
+
var te = Y && Y.$$typeof;
|
|
10322
|
+
switch (te) {
|
|
10321
10323
|
case s:
|
|
10322
10324
|
case u:
|
|
10323
10325
|
case w:
|
|
10324
10326
|
case v:
|
|
10325
10327
|
case i:
|
|
10326
|
-
return
|
|
10328
|
+
return te;
|
|
10327
10329
|
default:
|
|
10328
10330
|
return Q;
|
|
10329
10331
|
}
|
|
@@ -10333,7 +10335,7 @@ function vv() {
|
|
|
10333
10335
|
}
|
|
10334
10336
|
}
|
|
10335
10337
|
}
|
|
10336
|
-
var x = l, F = p, H = s, P = i, R = a, K = u, le = e,
|
|
10338
|
+
var x = l, F = p, H = s, P = i, R = a, K = u, le = e, ne = w, G = v, ee = t, A = o, z = r, U = d, X = !1;
|
|
10337
10339
|
function h(L) {
|
|
10338
10340
|
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.")), f(L) || C(L) === l;
|
|
10339
10341
|
}
|
|
@@ -10355,25 +10357,25 @@ function vv() {
|
|
|
10355
10357
|
function W(L) {
|
|
10356
10358
|
return C(L) === e;
|
|
10357
10359
|
}
|
|
10358
|
-
function
|
|
10360
|
+
function V(L) {
|
|
10359
10361
|
return C(L) === w;
|
|
10360
10362
|
}
|
|
10361
|
-
function
|
|
10363
|
+
function I(L) {
|
|
10362
10364
|
return C(L) === v;
|
|
10363
10365
|
}
|
|
10364
|
-
function
|
|
10366
|
+
function B(L) {
|
|
10365
10367
|
return C(L) === t;
|
|
10366
10368
|
}
|
|
10367
|
-
function
|
|
10369
|
+
function q(L) {
|
|
10368
10370
|
return C(L) === o;
|
|
10369
10371
|
}
|
|
10370
10372
|
function j(L) {
|
|
10371
10373
|
return C(L) === r;
|
|
10372
10374
|
}
|
|
10373
|
-
function
|
|
10375
|
+
function $(L) {
|
|
10374
10376
|
return C(L) === d;
|
|
10375
10377
|
}
|
|
10376
|
-
ye.AsyncMode = x, ye.ConcurrentMode = F, ye.ContextConsumer = H, ye.ContextProvider = P, ye.Element = R, ye.ForwardRef = K, ye.Fragment = le, ye.Lazy =
|
|
10378
|
+
ye.AsyncMode = x, ye.ConcurrentMode = F, ye.ContextConsumer = H, ye.ContextProvider = P, ye.Element = R, ye.ForwardRef = K, ye.Fragment = le, ye.Lazy = ne, ye.Memo = G, ye.Portal = ee, ye.Profiler = A, ye.StrictMode = z, ye.Suspense = U, ye.isAsyncMode = h, ye.isConcurrentMode = f, ye.isContextConsumer = g, ye.isContextProvider = _, ye.isElement = c, ye.isForwardRef = k, ye.isFragment = W, ye.isLazy = V, ye.isMemo = I, ye.isPortal = B, ye.isProfiler = q, ye.isStrictMode = j, ye.isSuspense = $, ye.isValidElementType = S, ye.typeOf = C;
|
|
10377
10379
|
}()), ye;
|
|
10378
10380
|
}
|
|
10379
10381
|
var Qo;
|
|
@@ -10533,7 +10535,7 @@ function wv() {
|
|
|
10533
10535
|
objectOf: P,
|
|
10534
10536
|
oneOf: H,
|
|
10535
10537
|
oneOfType: R,
|
|
10536
|
-
shape:
|
|
10538
|
+
shape: ne,
|
|
10537
10539
|
exact: G
|
|
10538
10540
|
};
|
|
10539
10541
|
function w(f, g) {
|
|
@@ -10546,33 +10548,33 @@ function wv() {
|
|
|
10546
10548
|
function y(f) {
|
|
10547
10549
|
if (process.env.NODE_ENV !== "production")
|
|
10548
10550
|
var g = {}, _ = 0;
|
|
10549
|
-
function c(W,
|
|
10550
|
-
if (
|
|
10551
|
+
function c(W, V, I, B, q, j, $) {
|
|
10552
|
+
if (B = B || m, j = j || I, $ !== t) {
|
|
10551
10553
|
if (l) {
|
|
10552
10554
|
var L = new Error(
|
|
10553
10555
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
10554
10556
|
);
|
|
10555
10557
|
throw L.name = "Invariant Violation", L;
|
|
10556
10558
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
10557
|
-
var Q =
|
|
10559
|
+
var Q = B + ":" + I;
|
|
10558
10560
|
!g[Q] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
10559
10561
|
_ < 3 && (o(
|
|
10560
|
-
"You are manually calling a React.PropTypes validation function for the `" + j + "` prop on `" +
|
|
10562
|
+
"You are manually calling a React.PropTypes validation function for the `" + j + "` prop on `" + B + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
10561
10563
|
), g[Q] = !0, _++);
|
|
10562
10564
|
}
|
|
10563
10565
|
}
|
|
10564
|
-
return
|
|
10566
|
+
return V[I] == null ? W ? V[I] === null ? new b("The " + q + " `" + j + "` is marked as required " + ("in `" + B + "`, but its value is `null`.")) : new b("The " + q + " `" + j + "` is marked as required in " + ("`" + B + "`, but its value is `undefined`.")) : null : f(V, I, B, q, j);
|
|
10565
10567
|
}
|
|
10566
10568
|
var k = c.bind(null, !1);
|
|
10567
10569
|
return k.isRequired = c.bind(null, !0), k;
|
|
10568
10570
|
}
|
|
10569
10571
|
function D(f) {
|
|
10570
|
-
function g(_, c, k, W,
|
|
10571
|
-
var
|
|
10572
|
-
if (
|
|
10573
|
-
var j =
|
|
10572
|
+
function g(_, c, k, W, V, I) {
|
|
10573
|
+
var B = _[c], q = z(B);
|
|
10574
|
+
if (q !== f) {
|
|
10575
|
+
var j = U(B);
|
|
10574
10576
|
return new b(
|
|
10575
|
-
"Invalid " + W + " `" +
|
|
10577
|
+
"Invalid " + W + " `" + V + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected ") + ("`" + f + "`."),
|
|
10576
10578
|
{ expectedType: f }
|
|
10577
10579
|
);
|
|
10578
10580
|
}
|
|
@@ -10584,16 +10586,16 @@ function wv() {
|
|
|
10584
10586
|
return y(i);
|
|
10585
10587
|
}
|
|
10586
10588
|
function S(f) {
|
|
10587
|
-
function g(_, c, k, W,
|
|
10589
|
+
function g(_, c, k, W, V) {
|
|
10588
10590
|
if (typeof f != "function")
|
|
10589
|
-
return new b("Property `" +
|
|
10590
|
-
var
|
|
10591
|
-
if (!Array.isArray(
|
|
10592
|
-
var
|
|
10593
|
-
return new b("Invalid " + W + " `" +
|
|
10591
|
+
return new b("Property `" + V + "` of component `" + k + "` has invalid PropType notation inside arrayOf.");
|
|
10592
|
+
var I = _[c];
|
|
10593
|
+
if (!Array.isArray(I)) {
|
|
10594
|
+
var B = z(I);
|
|
10595
|
+
return new b("Invalid " + W + " `" + V + "` of type " + ("`" + B + "` supplied to `" + k + "`, expected an array."));
|
|
10594
10596
|
}
|
|
10595
|
-
for (var
|
|
10596
|
-
var j = f(
|
|
10597
|
+
for (var q = 0; q < I.length; q++) {
|
|
10598
|
+
var j = f(I, q, k, W, V + "[" + q + "]", t);
|
|
10597
10599
|
if (j instanceof Error)
|
|
10598
10600
|
return j;
|
|
10599
10601
|
}
|
|
@@ -10603,10 +10605,10 @@ function wv() {
|
|
|
10603
10605
|
}
|
|
10604
10606
|
function C() {
|
|
10605
10607
|
function f(g, _, c, k, W) {
|
|
10606
|
-
var
|
|
10607
|
-
if (!s(
|
|
10608
|
-
var
|
|
10609
|
-
return new b("Invalid " + k + " `" + W + "` of type " + ("`" +
|
|
10608
|
+
var V = g[_];
|
|
10609
|
+
if (!s(V)) {
|
|
10610
|
+
var I = z(V);
|
|
10611
|
+
return new b("Invalid " + k + " `" + W + "` of type " + ("`" + I + "` supplied to `" + c + "`, expected a single ReactElement."));
|
|
10610
10612
|
}
|
|
10611
10613
|
return null;
|
|
10612
10614
|
}
|
|
@@ -10614,20 +10616,20 @@ function wv() {
|
|
|
10614
10616
|
}
|
|
10615
10617
|
function x() {
|
|
10616
10618
|
function f(g, _, c, k, W) {
|
|
10617
|
-
var
|
|
10618
|
-
if (!n.isValidElementType(
|
|
10619
|
-
var
|
|
10620
|
-
return new b("Invalid " + k + " `" + W + "` of type " + ("`" +
|
|
10619
|
+
var V = g[_];
|
|
10620
|
+
if (!n.isValidElementType(V)) {
|
|
10621
|
+
var I = z(V);
|
|
10622
|
+
return new b("Invalid " + k + " `" + W + "` of type " + ("`" + I + "` supplied to `" + c + "`, expected a single ReactElement type."));
|
|
10621
10623
|
}
|
|
10622
10624
|
return null;
|
|
10623
10625
|
}
|
|
10624
10626
|
return y(f);
|
|
10625
10627
|
}
|
|
10626
10628
|
function F(f) {
|
|
10627
|
-
function g(_, c, k, W,
|
|
10629
|
+
function g(_, c, k, W, V) {
|
|
10628
10630
|
if (!(_[c] instanceof f)) {
|
|
10629
|
-
var
|
|
10630
|
-
return new b("Invalid " + W + " `" +
|
|
10631
|
+
var I = f.name || m, B = h(_[c]);
|
|
10632
|
+
return new b("Invalid " + W + " `" + V + "` of type " + ("`" + B + "` supplied to `" + k + "`, expected ") + ("instance of `" + I + "`."));
|
|
10631
10633
|
}
|
|
10632
10634
|
return null;
|
|
10633
10635
|
}
|
|
@@ -10638,28 +10640,28 @@ function wv() {
|
|
|
10638
10640
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
10639
10641
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
10640
10642
|
) : o("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
10641
|
-
function g(_, c, k, W,
|
|
10642
|
-
for (var
|
|
10643
|
-
if (w(
|
|
10643
|
+
function g(_, c, k, W, V) {
|
|
10644
|
+
for (var I = _[c], B = 0; B < f.length; B++)
|
|
10645
|
+
if (w(I, f[B]))
|
|
10644
10646
|
return null;
|
|
10645
|
-
var
|
|
10646
|
-
var Q =
|
|
10647
|
+
var q = JSON.stringify(f, function($, L) {
|
|
10648
|
+
var Q = U(L);
|
|
10647
10649
|
return Q === "symbol" ? String(L) : L;
|
|
10648
10650
|
});
|
|
10649
|
-
return new b("Invalid " + W + " `" +
|
|
10651
|
+
return new b("Invalid " + W + " `" + V + "` of value `" + String(I) + "` " + ("supplied to `" + k + "`, expected one of " + q + "."));
|
|
10650
10652
|
}
|
|
10651
10653
|
return y(g);
|
|
10652
10654
|
}
|
|
10653
10655
|
function P(f) {
|
|
10654
|
-
function g(_, c, k, W,
|
|
10656
|
+
function g(_, c, k, W, V) {
|
|
10655
10657
|
if (typeof f != "function")
|
|
10656
|
-
return new b("Property `" +
|
|
10657
|
-
var
|
|
10658
|
-
if (
|
|
10659
|
-
return new b("Invalid " + W + " `" +
|
|
10660
|
-
for (var
|
|
10661
|
-
if (e(
|
|
10662
|
-
var j = f(
|
|
10658
|
+
return new b("Property `" + V + "` of component `" + k + "` has invalid PropType notation inside objectOf.");
|
|
10659
|
+
var I = _[c], B = z(I);
|
|
10660
|
+
if (B !== "object")
|
|
10661
|
+
return new b("Invalid " + W + " `" + V + "` of type " + ("`" + B + "` supplied to `" + k + "`, expected an object."));
|
|
10662
|
+
for (var q in I)
|
|
10663
|
+
if (e(I, q)) {
|
|
10664
|
+
var j = f(I, q, k, W, V + "." + q, t);
|
|
10663
10665
|
if (j instanceof Error)
|
|
10664
10666
|
return j;
|
|
10665
10667
|
}
|
|
@@ -10677,21 +10679,21 @@ function wv() {
|
|
|
10677
10679
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + X(_) + " at index " + g + "."
|
|
10678
10680
|
), i;
|
|
10679
10681
|
}
|
|
10680
|
-
function c(k, W,
|
|
10681
|
-
for (var
|
|
10682
|
-
var
|
|
10682
|
+
function c(k, W, V, I, B) {
|
|
10683
|
+
for (var q = [], j = 0; j < f.length; j++) {
|
|
10684
|
+
var $ = f[j], L = $(k, W, V, I, B, t);
|
|
10683
10685
|
if (L == null)
|
|
10684
10686
|
return null;
|
|
10685
|
-
L.data && e(L.data, "expectedType") &&
|
|
10687
|
+
L.data && e(L.data, "expectedType") && q.push(L.data.expectedType);
|
|
10686
10688
|
}
|
|
10687
|
-
var Q =
|
|
10688
|
-
return new b("Invalid " +
|
|
10689
|
+
var Q = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
|
|
10690
|
+
return new b("Invalid " + I + " `" + B + "` supplied to " + ("`" + V + "`" + Q + "."));
|
|
10689
10691
|
}
|
|
10690
10692
|
return y(c);
|
|
10691
10693
|
}
|
|
10692
10694
|
function K() {
|
|
10693
10695
|
function f(g, _, c, k, W) {
|
|
10694
|
-
return
|
|
10696
|
+
return ee(g[_]) ? null : new b("Invalid " + k + " `" + W + "` supplied to " + ("`" + c + "`, expected a ReactNode."));
|
|
10695
10697
|
}
|
|
10696
10698
|
return y(f);
|
|
10697
10699
|
}
|
|
@@ -10700,39 +10702,39 @@ function wv() {
|
|
|
10700
10702
|
(f || "React class") + ": " + g + " type `" + _ + "." + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + k + "`."
|
|
10701
10703
|
);
|
|
10702
10704
|
}
|
|
10703
|
-
function
|
|
10704
|
-
function g(_, c, k, W,
|
|
10705
|
-
var
|
|
10706
|
-
if (
|
|
10707
|
-
return new b("Invalid " + W + " `" +
|
|
10708
|
-
for (var
|
|
10709
|
-
var j = f[
|
|
10705
|
+
function ne(f) {
|
|
10706
|
+
function g(_, c, k, W, V) {
|
|
10707
|
+
var I = _[c], B = z(I);
|
|
10708
|
+
if (B !== "object")
|
|
10709
|
+
return new b("Invalid " + W + " `" + V + "` of type `" + B + "` " + ("supplied to `" + k + "`, expected `object`."));
|
|
10710
|
+
for (var q in f) {
|
|
10711
|
+
var j = f[q];
|
|
10710
10712
|
if (typeof j != "function")
|
|
10711
|
-
return le(k, W,
|
|
10712
|
-
var
|
|
10713
|
-
if (
|
|
10714
|
-
return
|
|
10713
|
+
return le(k, W, V, q, U(j));
|
|
10714
|
+
var $ = j(I, q, k, W, V + "." + q, t);
|
|
10715
|
+
if ($)
|
|
10716
|
+
return $;
|
|
10715
10717
|
}
|
|
10716
10718
|
return null;
|
|
10717
10719
|
}
|
|
10718
10720
|
return y(g);
|
|
10719
10721
|
}
|
|
10720
10722
|
function G(f) {
|
|
10721
|
-
function g(_, c, k, W,
|
|
10722
|
-
var
|
|
10723
|
-
if (
|
|
10724
|
-
return new b("Invalid " + W + " `" +
|
|
10725
|
-
var
|
|
10726
|
-
for (var j in
|
|
10727
|
-
var
|
|
10728
|
-
if (e(f, j) && typeof
|
|
10729
|
-
return le(k, W,
|
|
10730
|
-
if (
|
|
10723
|
+
function g(_, c, k, W, V) {
|
|
10724
|
+
var I = _[c], B = z(I);
|
|
10725
|
+
if (B !== "object")
|
|
10726
|
+
return new b("Invalid " + W + " `" + V + "` of type `" + B + "` " + ("supplied to `" + k + "`, expected `object`."));
|
|
10727
|
+
var q = a({}, _[c], f);
|
|
10728
|
+
for (var j in q) {
|
|
10729
|
+
var $ = f[j];
|
|
10730
|
+
if (e(f, j) && typeof $ != "function")
|
|
10731
|
+
return le(k, W, V, j, U($));
|
|
10732
|
+
if (!$)
|
|
10731
10733
|
return new b(
|
|
10732
|
-
"Invalid " + W + " `" +
|
|
10734
|
+
"Invalid " + W + " `" + V + "` key `" + j + "` supplied to `" + k + "`.\nBad object: " + JSON.stringify(_[c], null, " ") + `
|
|
10733
10735
|
Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
10734
10736
|
);
|
|
10735
|
-
var L =
|
|
10737
|
+
var L = $(I, j, k, W, V + "." + j, t);
|
|
10736
10738
|
if (L)
|
|
10737
10739
|
return L;
|
|
10738
10740
|
}
|
|
@@ -10740,7 +10742,7 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
10740
10742
|
}
|
|
10741
10743
|
return y(g);
|
|
10742
10744
|
}
|
|
10743
|
-
function
|
|
10745
|
+
function ee(f) {
|
|
10744
10746
|
switch (typeof f) {
|
|
10745
10747
|
case "number":
|
|
10746
10748
|
case "string":
|
|
@@ -10750,7 +10752,7 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
10750
10752
|
return !f;
|
|
10751
10753
|
case "object":
|
|
10752
10754
|
if (Array.isArray(f))
|
|
10753
|
-
return f.every(
|
|
10755
|
+
return f.every(ee);
|
|
10754
10756
|
if (f === null || s(f))
|
|
10755
10757
|
return !0;
|
|
10756
10758
|
var g = d(f);
|
|
@@ -10758,12 +10760,12 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
10758
10760
|
var _ = g.call(f), c;
|
|
10759
10761
|
if (g !== f.entries) {
|
|
10760
10762
|
for (; !(c = _.next()).done; )
|
|
10761
|
-
if (!
|
|
10763
|
+
if (!ee(c.value))
|
|
10762
10764
|
return !1;
|
|
10763
10765
|
} else
|
|
10764
10766
|
for (; !(c = _.next()).done; ) {
|
|
10765
10767
|
var k = c.value;
|
|
10766
|
-
if (k && !
|
|
10768
|
+
if (k && !ee(k[1]))
|
|
10767
10769
|
return !1;
|
|
10768
10770
|
}
|
|
10769
10771
|
} else
|
|
@@ -10776,14 +10778,14 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
10776
10778
|
function A(f, g) {
|
|
10777
10779
|
return f === "symbol" ? !0 : g ? g["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && g instanceof Symbol : !1;
|
|
10778
10780
|
}
|
|
10779
|
-
function
|
|
10781
|
+
function z(f) {
|
|
10780
10782
|
var g = typeof f;
|
|
10781
10783
|
return Array.isArray(f) ? "array" : f instanceof RegExp ? "object" : A(g, f) ? "symbol" : g;
|
|
10782
10784
|
}
|
|
10783
|
-
function
|
|
10785
|
+
function U(f) {
|
|
10784
10786
|
if (typeof f > "u" || f === null)
|
|
10785
10787
|
return "" + f;
|
|
10786
|
-
var g =
|
|
10788
|
+
var g = z(f);
|
|
10787
10789
|
if (g === "object") {
|
|
10788
10790
|
if (f instanceof Date)
|
|
10789
10791
|
return "date";
|
|
@@ -10793,7 +10795,7 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
10793
10795
|
return g;
|
|
10794
10796
|
}
|
|
10795
10797
|
function X(f) {
|
|
10796
|
-
var g =
|
|
10798
|
+
var g = U(f);
|
|
10797
10799
|
switch (g) {
|
|
10798
10800
|
case "array":
|
|
10799
10801
|
case "object":
|
|
@@ -11127,23 +11129,23 @@ const Nv = (n) => `not ${n}`, Tv = (n, a) => {
|
|
|
11127
11129
|
i(_, { value: c, name: r }), H(!1);
|
|
11128
11130
|
}, le = () => {
|
|
11129
11131
|
m || H(!F);
|
|
11130
|
-
},
|
|
11132
|
+
}, ne = E({
|
|
11131
11133
|
[Ve.spSelect]: !0,
|
|
11132
11134
|
[Ve.spSelect_error]: !!l,
|
|
11133
11135
|
[Ve.spSelect_absolutePositionError]: D,
|
|
11134
11136
|
...N && { [N]: !0 }
|
|
11135
11137
|
}), G = E({
|
|
11136
11138
|
[Ve.spSelect__container]: !0
|
|
11137
|
-
}),
|
|
11139
|
+
}), ee = E({
|
|
11138
11140
|
[Ve.spSelect__control]: !0,
|
|
11139
11141
|
[Ve[`spSelect__control_${o}`]]: o,
|
|
11140
11142
|
[Ve.spSelect__control_disabled]: m
|
|
11141
11143
|
}), A = E({
|
|
11142
11144
|
[Ve.spSelect__value]: !0,
|
|
11143
11145
|
[Ve.spSelect__value_empty]: !R
|
|
11144
|
-
}),
|
|
11146
|
+
}), z = E({
|
|
11145
11147
|
[Ve.spSelect__icon]: !0
|
|
11146
|
-
}),
|
|
11148
|
+
}), U = E({
|
|
11147
11149
|
[Ve.spSelect__list]: !0,
|
|
11148
11150
|
[Ve.spSelect__list_scrollable]: y
|
|
11149
11151
|
}), X = E({
|
|
@@ -11157,7 +11159,7 @@ const Nv = (n) => `not ${n}`, Tv = (n, a) => {
|
|
|
11157
11159
|
{
|
|
11158
11160
|
tabIndex: m ? -1 : 0,
|
|
11159
11161
|
title: b ? e : void 0,
|
|
11160
|
-
className:
|
|
11162
|
+
className: ee,
|
|
11161
11163
|
onClick: le,
|
|
11162
11164
|
children: [
|
|
11163
11165
|
/* @__PURE__ */ M("div", { className: A, children: (R == null ? void 0 : R.label) || t }),
|
|
@@ -11166,7 +11168,7 @@ const Nv = (n) => `not ${n}`, Tv = (n, a) => {
|
|
|
11166
11168
|
{
|
|
11167
11169
|
name: pe.SelectChevronDown,
|
|
11168
11170
|
rotate: F ? 180 : void 0,
|
|
11169
|
-
className:
|
|
11171
|
+
className: z
|
|
11170
11172
|
}
|
|
11171
11173
|
)
|
|
11172
11174
|
]
|
|
@@ -11174,7 +11176,7 @@ const Nv = (n) => `not ${n}`, Tv = (n, a) => {
|
|
|
11174
11176
|
), g = () => /* @__PURE__ */ M(
|
|
11175
11177
|
"div",
|
|
11176
11178
|
{
|
|
11177
|
-
className:
|
|
11179
|
+
className: U,
|
|
11178
11180
|
style: y ? { maxHeight: `${w}px` } : {},
|
|
11179
11181
|
children: a.length > 0 ? a.map((_) => {
|
|
11180
11182
|
const c = _.value === e;
|
|
@@ -11187,7 +11189,7 @@ const Nv = (n) => `not ${n}`, Tv = (n, a) => {
|
|
|
11187
11189
|
onClick: (k) => K(k, _.value),
|
|
11188
11190
|
children: [
|
|
11189
11191
|
_.label,
|
|
11190
|
-
c && /* @__PURE__ */ M(We, { name: pe.Check, className:
|
|
11192
|
+
c && /* @__PURE__ */ M(We, { name: pe.Check, className: z })
|
|
11191
11193
|
]
|
|
11192
11194
|
},
|
|
11193
11195
|
_.value
|
|
@@ -11203,7 +11205,7 @@ const Nv = (n) => `not ${n}`, Tv = (n, a) => {
|
|
|
11203
11205
|
)
|
|
11204
11206
|
}
|
|
11205
11207
|
);
|
|
11206
|
-
return /* @__PURE__ */ ue("div", { className:
|
|
11208
|
+
return /* @__PURE__ */ ue("div", { className: ne, ref: P, children: [
|
|
11207
11209
|
p && /* @__PURE__ */ M(
|
|
11208
11210
|
Pr,
|
|
11209
11211
|
{
|
|
@@ -13409,11 +13411,11 @@ function Ms() {
|
|
|
13409
13411
|
return lg(t);
|
|
13410
13412
|
}, [t]), le = tn(function() {
|
|
13411
13413
|
return sg(t);
|
|
13412
|
-
}, [t]),
|
|
13414
|
+
}, [t]), ne = tn(function() {
|
|
13413
13415
|
return typeof y == "function" ? y : fi;
|
|
13414
13416
|
}, [y]), G = tn(function() {
|
|
13415
13417
|
return typeof b == "function" ? b : fi;
|
|
13416
|
-
}, [b]),
|
|
13418
|
+
}, [b]), ee = Ae(null), A = Ae(null), z = Os(kg, Sa), U = ua(z, 2), X = U[0], h = U[1], f = X.isFocused, g = X.isFileDialogActive, _ = Ae(typeof window < "u" && window.isSecureContext && D && ig()), c = function() {
|
|
13417
13419
|
!_.current && g && setTimeout(function() {
|
|
13418
13420
|
if (A.current) {
|
|
13419
13421
|
var ie = A.current.files;
|
|
@@ -13429,19 +13431,19 @@ function Ms() {
|
|
|
13429
13431
|
};
|
|
13430
13432
|
}, [A, g, G, _]);
|
|
13431
13433
|
var k = Ae([]), W = function(ie) {
|
|
13432
|
-
|
|
13434
|
+
ee.current && ee.current.contains(ie.target) || (ie.preventDefault(), k.current = []);
|
|
13433
13435
|
};
|
|
13434
13436
|
Re(function() {
|
|
13435
13437
|
return S && (document.addEventListener("dragover", ui, !1), document.addEventListener("drop", W, !1)), function() {
|
|
13436
13438
|
S && (document.removeEventListener("dragover", ui), document.removeEventListener("drop", W));
|
|
13437
13439
|
};
|
|
13438
|
-
}, [
|
|
13439
|
-
return !e && N &&
|
|
13440
|
+
}, [ee, S]), Re(function() {
|
|
13441
|
+
return !e && N && ee.current && ee.current.focus(), function() {
|
|
13440
13442
|
};
|
|
13441
|
-
}, [
|
|
13442
|
-
var
|
|
13443
|
+
}, [ee, N, e]);
|
|
13444
|
+
var V = Ge(function(Z) {
|
|
13443
13445
|
P ? P(Z) : console.error(Z);
|
|
13444
|
-
}, [P]),
|
|
13446
|
+
}, [P]), I = Ge(function(Z) {
|
|
13445
13447
|
Z.preventDefault(), Z.persist(), _e(Z), k.current = [].concat(hg(k.current), [Z.target]), Qn(Z) && Promise.resolve(r(Z)).then(function(ie) {
|
|
13446
13448
|
if (!(vr(Z) && !H)) {
|
|
13447
13449
|
var Se = ie.length, Pe = Se > 0 && ng({
|
|
@@ -13461,9 +13463,9 @@ function Ms() {
|
|
|
13461
13463
|
}), p && p(Z);
|
|
13462
13464
|
}
|
|
13463
13465
|
}).catch(function(ie) {
|
|
13464
|
-
return
|
|
13466
|
+
return V(ie);
|
|
13465
13467
|
});
|
|
13466
|
-
}, [r, p,
|
|
13468
|
+
}, [r, p, V, H, K, i, o, s, l, R]), B = Ge(function(Z) {
|
|
13467
13469
|
Z.preventDefault(), Z.persist(), _e(Z);
|
|
13468
13470
|
var ie = Qn(Z);
|
|
13469
13471
|
if (ie && Z.dataTransfer)
|
|
@@ -13472,10 +13474,10 @@ function Ms() {
|
|
|
13472
13474
|
} catch {
|
|
13473
13475
|
}
|
|
13474
13476
|
return ie && d && d(Z), !1;
|
|
13475
|
-
}, [d, H]),
|
|
13477
|
+
}, [d, H]), q = Ge(function(Z) {
|
|
13476
13478
|
Z.preventDefault(), Z.persist(), _e(Z);
|
|
13477
13479
|
var ie = k.current.filter(function(Pe) {
|
|
13478
|
-
return
|
|
13480
|
+
return ee.current && ee.current.contains(Pe);
|
|
13479
13481
|
}), Se = ie.indexOf(Z.target);
|
|
13480
13482
|
Se !== -1 && ie.splice(Se, 1), k.current = ie, !(ie.length > 0) && (h({
|
|
13481
13483
|
type: "setDraggedFiles",
|
|
@@ -13483,7 +13485,7 @@ function Ms() {
|
|
|
13483
13485
|
isDragAccept: !1,
|
|
13484
13486
|
isDragReject: !1
|
|
13485
13487
|
}), Qn(Z) && u && u(Z));
|
|
13486
|
-
}, [
|
|
13488
|
+
}, [ee, u, H]), j = Ge(function(Z, ie) {
|
|
13487
13489
|
var Se = [], Pe = [];
|
|
13488
13490
|
Z.forEach(function(Je) {
|
|
13489
13491
|
var gn = ys(Je, K), en = ua(gn, 2), Ir = en[0], Or = en[1], Rr = xs(Je, i, o), Fn = ua(Rr, 2), Lr = Fn[0], Fr = Fn[1], Ar = R ? R(Je) : null;
|
|
@@ -13509,19 +13511,19 @@ function Ms() {
|
|
|
13509
13511
|
isDragReject: Pe.length > 0,
|
|
13510
13512
|
type: "setFiles"
|
|
13511
13513
|
}), m && m(Se, Pe, ie), Pe.length > 0 && w && w(Pe, ie), Se.length > 0 && v && v(Se, ie);
|
|
13512
|
-
}, [h, s, K, i, o, l, m, v, w, R]),
|
|
13514
|
+
}, [h, s, K, i, o, l, m, v, w, R]), $ = Ge(function(Z) {
|
|
13513
13515
|
Z.preventDefault(), Z.persist(), _e(Z), k.current = [], Qn(Z) && Promise.resolve(r(Z)).then(function(ie) {
|
|
13514
13516
|
vr(Z) && !H || j(ie, Z);
|
|
13515
13517
|
}).catch(function(ie) {
|
|
13516
|
-
return
|
|
13518
|
+
return V(ie);
|
|
13517
13519
|
}), h({
|
|
13518
13520
|
type: "reset"
|
|
13519
13521
|
});
|
|
13520
|
-
}, [r, j,
|
|
13522
|
+
}, [r, j, V, H]), L = Ge(function() {
|
|
13521
13523
|
if (_.current) {
|
|
13522
13524
|
h({
|
|
13523
13525
|
type: "openDialog"
|
|
13524
|
-
}),
|
|
13526
|
+
}), ne();
|
|
13525
13527
|
var Z = {
|
|
13526
13528
|
multiple: s,
|
|
13527
13529
|
types: le
|
|
@@ -13535,20 +13537,20 @@ function Ms() {
|
|
|
13535
13537
|
}).catch(function(ie) {
|
|
13536
13538
|
cg(ie) ? (G(ie), h({
|
|
13537
13539
|
type: "closeDialog"
|
|
13538
|
-
})) : pg(ie) ? (_.current = !1, A.current ? (A.current.value = null, A.current.click()) :
|
|
13540
|
+
})) : pg(ie) ? (_.current = !1, A.current ? (A.current.value = null, A.current.click()) : V(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : V(ie);
|
|
13539
13541
|
});
|
|
13540
13542
|
return;
|
|
13541
13543
|
}
|
|
13542
13544
|
A.current && (h({
|
|
13543
13545
|
type: "openDialog"
|
|
13544
|
-
}),
|
|
13545
|
-
}, [h,
|
|
13546
|
-
!
|
|
13547
|
-
}, [
|
|
13546
|
+
}), ne(), A.current.value = null, A.current.click());
|
|
13547
|
+
}, [h, ne, G, D, j, V, le, s]), Q = Ge(function(Z) {
|
|
13548
|
+
!ee.current || !ee.current.isEqualNode(Z.target) || (Z.key === " " || Z.key === "Enter" || Z.keyCode === 32 || Z.keyCode === 13) && (Z.preventDefault(), L());
|
|
13549
|
+
}, [ee, L]), Y = Ge(function() {
|
|
13548
13550
|
h({
|
|
13549
13551
|
type: "focus"
|
|
13550
13552
|
});
|
|
13551
|
-
}, []),
|
|
13553
|
+
}, []), te = Ge(function() {
|
|
13552
13554
|
h({
|
|
13553
13555
|
type: "blur"
|
|
13554
13556
|
});
|
|
@@ -13567,19 +13569,19 @@ function Ms() {
|
|
|
13567
13569
|
var Z = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, ie = Z.refKey, Se = ie === void 0 ? "ref" : ie, Pe = Z.role, Je = Z.onKeyDown, gn = Z.onFocus, en = Z.onBlur, Ir = Z.onClick, Or = Z.onDragEnter, Rr = Z.onDragOver, Fn = Z.onDragLeave, Lr = Z.onDrop, Fr = _r(Z, fg);
|
|
13568
13570
|
return Ee(Ee(Ca({
|
|
13569
13571
|
onKeyDown: de(mt(Je, Q)),
|
|
13570
|
-
onFocus: de(mt(gn,
|
|
13571
|
-
onBlur: de(mt(en,
|
|
13572
|
+
onFocus: de(mt(gn, Y)),
|
|
13573
|
+
onBlur: de(mt(en, te)),
|
|
13572
13574
|
onClick: oe(mt(Ir, ce)),
|
|
13573
|
-
onDragEnter: me(mt(Or,
|
|
13574
|
-
onDragOver: me(mt(Rr,
|
|
13575
|
-
onDragLeave: me(mt(Fn,
|
|
13576
|
-
onDrop: me(mt(Lr,
|
|
13575
|
+
onDragEnter: me(mt(Or, I)),
|
|
13576
|
+
onDragOver: me(mt(Rr, B)),
|
|
13577
|
+
onDragLeave: me(mt(Fn, q)),
|
|
13578
|
+
onDrop: me(mt(Lr, $)),
|
|
13577
13579
|
role: typeof Pe == "string" && Pe !== "" ? Pe : "presentation"
|
|
13578
|
-
}, Se,
|
|
13580
|
+
}, Se, ee), !e && !x ? {
|
|
13579
13581
|
tabIndex: 0
|
|
13580
13582
|
} : {}), Fr);
|
|
13581
13583
|
};
|
|
13582
|
-
}, [
|
|
13584
|
+
}, [ee, Q, Y, te, ce, I, B, q, $, x, F, e]), Le = Ge(function(Z) {
|
|
13583
13585
|
Z.stopPropagation();
|
|
13584
13586
|
}, []), Be = tn(function() {
|
|
13585
13587
|
return function() {
|
|
@@ -13599,18 +13601,18 @@ function Ms() {
|
|
|
13599
13601
|
width: "1px",
|
|
13600
13602
|
whiteSpace: "nowrap"
|
|
13601
13603
|
},
|
|
13602
|
-
onChange: oe(mt(Pe,
|
|
13604
|
+
onChange: oe(mt(Pe, $)),
|
|
13603
13605
|
onClick: oe(mt(Je, Le)),
|
|
13604
13606
|
tabIndex: -1
|
|
13605
13607
|
}, Se, A);
|
|
13606
13608
|
return Ee(Ee({}, en), gn);
|
|
13607
13609
|
};
|
|
13608
|
-
}, [A, t, s,
|
|
13610
|
+
}, [A, t, s, $, e]);
|
|
13609
13611
|
return Ee(Ee({}, X), {}, {
|
|
13610
13612
|
isFocused: f && !e,
|
|
13611
13613
|
getRootProps: Fe,
|
|
13612
13614
|
getInputProps: Be,
|
|
13613
|
-
rootRef:
|
|
13615
|
+
rootRef: ee,
|
|
13614
13616
|
inputRef: A,
|
|
13615
13617
|
open: oe(L)
|
|
13616
13618
|
});
|
|
@@ -13752,11 +13754,11 @@ const Dg = (n) => Ms(n), Cg = "_spUploadFiles_qdbwu_43", Sg = "_spUploadFiles_er
|
|
|
13752
13754
|
}), le = E({
|
|
13753
13755
|
[ge.spUploadFiles__delete]: !0,
|
|
13754
13756
|
[ge.spUploadFiles__delete_loading]: m
|
|
13755
|
-
}),
|
|
13757
|
+
}), ne = (f, g) => {
|
|
13756
13758
|
if (m)
|
|
13757
13759
|
return;
|
|
13758
13760
|
if (g) {
|
|
13759
|
-
const k = [...w], W = k.findIndex((
|
|
13761
|
+
const k = [...w], W = k.findIndex((V) => V.file.name === f);
|
|
13760
13762
|
k.splice(W, 1), b(k);
|
|
13761
13763
|
return;
|
|
13762
13764
|
}
|
|
@@ -13764,9 +13766,9 @@ const Dg = (n) => Ms(n), Cg = "_spUploadFiles_qdbwu_43", Sg = "_spUploadFiles_er
|
|
|
13764
13766
|
_.splice(c, 1), r(_, e);
|
|
13765
13767
|
}, G = (f) => {
|
|
13766
13768
|
f.stopPropagation(), r([], e), b([]);
|
|
13767
|
-
},
|
|
13769
|
+
}, ee = (f) => Object.values(f).flatMap((g) => g.map((_) => _.toUpperCase())).join(", "), A = () => {
|
|
13768
13770
|
if (S) {
|
|
13769
|
-
const f =
|
|
13771
|
+
const f = ee(o);
|
|
13770
13772
|
return /* @__PURE__ */ M(
|
|
13771
13773
|
kn,
|
|
13772
13774
|
{
|
|
@@ -13787,7 +13789,7 @@ const Dg = (n) => Ms(n), Cg = "_spUploadFiles_qdbwu_43", Sg = "_spUploadFiles_er
|
|
|
13787
13789
|
classNameRoot: E(ge.spUploadFiles__fileName)
|
|
13788
13790
|
}
|
|
13789
13791
|
);
|
|
13790
|
-
},
|
|
13792
|
+
}, z = () => /* @__PURE__ */ M("ul", { className: K, children: C.map(({ file: f, errors: g }, _) => {
|
|
13791
13793
|
const c = g ? (g == null ? void 0 : g.length) > 0 : void 0, k = () => g ? g == null ? void 0 : g.map(nw).join(", ") : "";
|
|
13792
13794
|
return /* @__PURE__ */ ue(
|
|
13793
13795
|
"li",
|
|
@@ -13839,7 +13841,7 @@ const Dg = (n) => Ms(n), Cg = "_spUploadFiles_qdbwu_43", Sg = "_spUploadFiles_er
|
|
|
13839
13841
|
{
|
|
13840
13842
|
className: E(ge.spUploadFiles__fileNamesListItemDelete),
|
|
13841
13843
|
onClick: (W) => {
|
|
13842
|
-
W.stopPropagation(),
|
|
13844
|
+
W.stopPropagation(), ne(f.name, c);
|
|
13843
13845
|
},
|
|
13844
13846
|
children: /* @__PURE__ */ M(We, { name: pe.Close })
|
|
13845
13847
|
}
|
|
@@ -13848,7 +13850,7 @@ const Dg = (n) => Ms(n), Cg = "_spUploadFiles_qdbwu_43", Sg = "_spUploadFiles_er
|
|
|
13848
13850
|
},
|
|
13849
13851
|
_
|
|
13850
13852
|
);
|
|
13851
|
-
}) }),
|
|
13853
|
+
}) }), U = () => s ? z() : A(), X = () => /* @__PURE__ */ M(
|
|
13852
13854
|
kn,
|
|
13853
13855
|
{
|
|
13854
13856
|
classNameRoot: ge.spUploadFiles__placeholder,
|
|
@@ -13859,7 +13861,7 @@ const Dg = (n) => Ms(n), Cg = "_spUploadFiles_qdbwu_43", Sg = "_spUploadFiles_er
|
|
|
13859
13861
|
text: a
|
|
13860
13862
|
}
|
|
13861
13863
|
), h = () => /* @__PURE__ */ ue(Mn, { children: [
|
|
13862
|
-
x ?
|
|
13864
|
+
x ? U() : X(),
|
|
13863
13865
|
x && F ? /* @__PURE__ */ M("div", { className: le, onClick: G, children: /* @__PURE__ */ M(We, { name: pe.Close }) }) : F && p && /* @__PURE__ */ M(
|
|
13864
13866
|
br,
|
|
13865
13867
|
{
|