@stackone/malachite 0.49.0 → 0.50.1
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/COMPONENTS.md +2 -2
- package/dist/index.d.ts +6 -9
- package/dist/index.js +718 -762
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var k3 = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var R5 = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
5
|
var E3 = (e, t, r) => t in e ? k3(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
-
var X = (e, t, r) => E3(e, typeof t != "symbol" ? t + "" : t, r), He = (e, t, r) => t.has(e) ||
|
|
7
|
-
var he = (e, t, r) => (He(e, t, "read from private field"), r ? r.call(e) : t.get(e)), je = (e, t, r) => t.has(e) ?
|
|
8
|
-
import { jsx as l, jsxs as
|
|
6
|
+
var X = (e, t, r) => E3(e, typeof t != "symbol" ? t + "" : t, r), He = (e, t, r) => t.has(e) || R5("Cannot " + r);
|
|
7
|
+
var he = (e, t, r) => (He(e, t, "read from private field"), r ? r.call(e) : t.get(e)), je = (e, t, r) => t.has(e) ? R5("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), W5 = (e, t, r, a) => (He(e, t, "write to private field"), a ? a.call(e, r) : t.set(e, r), r), C1 = (e, t, r) => (He(e, t, "access private method"), r);
|
|
8
|
+
import { jsx as l, jsxs as v, Fragment as w1 } from "react/jsx-runtime";
|
|
9
9
|
import * as c from "react";
|
|
10
10
|
import P1, { useState as H, useEffect as u1, useRef as U, useId as d2, forwardRef as s5, createElement as h2, Fragment as k1, useMemo as W1, createContext as I1, useContext as N1, useReducer as ae, useCallback as B1, useLayoutEffect as oe } from "react";
|
|
11
11
|
import { createPortal as le } from "react-dom";
|
|
@@ -96,7 +96,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
96
96
|
...r
|
|
97
97
|
};
|
|
98
98
|
return /* @__PURE__ */ l(D3, { className: t, style: o, onClick: a });
|
|
99
|
-
}, P3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 10, height: 8, viewBox: "0 0 10 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("path", { d: "M0.47874 4.39793L3.85374 7.77293C3.95941 7.8786 4.10273 7.93797 4.25218 7.93797C4.40162 7.93797 4.54494 7.8786 4.65061 7.77293C4.75629 7.66726 4.81565 7.52393 4.81565 7.37449C4.81565 7.22505 4.75629 7.08173 4.65061 6.97605L2.23608 4.56246H9.12671C9.27589 4.56246 9.41897 4.5032 9.52446 4.39771C9.62995 4.29222 9.68921 4.14914 9.68921 3.99996C9.68921 3.85078 9.62995 3.7077 9.52446 3.60221C9.41897 3.49672 9.27589 3.43746 9.12671 3.43746H2.23608L4.64968 1.02246C4.75535 0.916788 4.81472 0.773465 4.81472 0.624022C4.81472 0.474579 4.75535 0.331257 4.64968 0.225585C4.54401 0.119913 4.40068 0.0605469 4.25124 0.0605469C4.1018 0.0605469 3.95848 0.119913 3.8528 0.225585L0.477803 3.60058C0.425354 3.65291 0.383759 3.71509 0.355407 3.78354C0.327055 3.85199 0.312506 3.92536 0.312593 3.99945C0.312679 4.07354 0.327402 4.14688 0.355915 4.21526C0.384427 4.28365 0.426168 4.34572 0.47874 4.39793Z", fill: "#7B7B7B" })),
|
|
99
|
+
}, P3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 10, height: 8, viewBox: "0 0 10 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("path", { d: "M0.47874 4.39793L3.85374 7.77293C3.95941 7.8786 4.10273 7.93797 4.25218 7.93797C4.40162 7.93797 4.54494 7.8786 4.65061 7.77293C4.75629 7.66726 4.81565 7.52393 4.81565 7.37449C4.81565 7.22505 4.75629 7.08173 4.65061 6.97605L2.23608 4.56246H9.12671C9.27589 4.56246 9.41897 4.5032 9.52446 4.39771C9.62995 4.29222 9.68921 4.14914 9.68921 3.99996C9.68921 3.85078 9.62995 3.7077 9.52446 3.60221C9.41897 3.49672 9.27589 3.43746 9.12671 3.43746H2.23608L4.64968 1.02246C4.75535 0.916788 4.81472 0.773465 4.81472 0.624022C4.81472 0.474579 4.75535 0.331257 4.64968 0.225585C4.54401 0.119913 4.40068 0.0605469 4.25124 0.0605469C4.1018 0.0605469 3.95848 0.119913 3.8528 0.225585L0.477803 3.60058C0.425354 3.65291 0.383759 3.71509 0.355407 3.78354C0.327055 3.85199 0.312506 3.92536 0.312593 3.99945C0.312679 4.07354 0.327402 4.14688 0.355915 4.21526C0.384427 4.28365 0.426168 4.34572 0.47874 4.39793Z", fill: "#7B7B7B" })), K3 = ({ size: e = 16, className: t = "", style: r = {}, onClick: a }) => {
|
|
100
100
|
const o = {
|
|
101
101
|
width: typeof e == "number" ? `${e}px` : e,
|
|
102
102
|
height: typeof e == "number" ? `${e}px` : e,
|
|
@@ -105,7 +105,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
105
105
|
...r
|
|
106
106
|
};
|
|
107
107
|
return /* @__PURE__ */ l(P3, { className: t, style: o, onClick: a });
|
|
108
|
-
},
|
|
108
|
+
}, R3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 13, height: 13, viewBox: "0 0 13 13", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("g", { transform: "translate(2.64 2.64)" }, /* @__PURE__ */ c.createElement("path", { d: "M7.72031 0.609375V5.89062C7.72031 6.05224 7.65611 6.20724 7.54183 6.32152C7.42755 6.4358 7.27256 6.5 7.11094 6.5C6.94932 6.5 6.79433 6.4358 6.68005 6.32152C6.56577 6.20724 6.50156 6.05224 6.50156 5.89062V2.08203L1.04207 7.54051C0.927594 7.65499 0.772329 7.7193 0.610432 7.7193C0.448535 7.7193 0.29327 7.65499 0.178791 7.54051C0.0643133 7.42603 0 7.27076 0 7.10887C0 6.94697 0.0643133 6.79171 0.178791 6.67723L5.63828 1.21875H1.82969C1.66807 1.21875 1.51308 1.15455 1.3988 1.04027C1.28452 0.925988 1.22031 0.770991 1.22031 0.609375C1.22031 0.447759 1.28452 0.292762 1.3988 0.178482C1.51308 0.0642017 1.66807 0 1.82969 0H7.11094C7.27256 0 7.42755 0.0642017 7.54183 0.178482C7.65611 0.292762 7.72031 0.447759 7.72031 0.609375Z", fill: "currentColor" }))), W3 = ({
|
|
109
109
|
size: e = 16,
|
|
110
110
|
className: t = "",
|
|
111
111
|
style: r = {},
|
|
@@ -117,7 +117,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
117
117
|
display: "inline-block",
|
|
118
118
|
...r
|
|
119
119
|
};
|
|
120
|
-
return /* @__PURE__ */ l(
|
|
120
|
+
return /* @__PURE__ */ l(R3, { className: t, style: o, onClick: a });
|
|
121
121
|
}, G3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17, viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("g", { id: "Frame" }, /* @__PURE__ */ c.createElement("path", { id: "Vector", d: "M5.75069 8.5C5.75076 10.152 5.33141 11.7769 4.53194 13.2225C4.48418 13.3087 4.4199 13.3846 4.34279 13.4459C4.26568 13.5073 4.17724 13.5528 4.08252 13.58C3.98781 13.6072 3.88867 13.6154 3.79077 13.6042C3.69287 13.5931 3.59812 13.5628 3.51194 13.515C3.3379 13.4185 3.2093 13.2569 3.15444 13.0656C3.12728 12.9709 3.11904 12.8717 3.1302 12.7738C3.14135 12.6759 3.17168 12.5812 3.21944 12.495C3.89601 11.2722 4.25086 9.89752 4.25069 8.5C4.25076 7.7784 4.45902 7.07214 4.8505 6.46595C5.24197 5.85977 5.80003 5.3794 6.45772 5.08249C7.11541 4.78558 7.8448 4.68473 8.55838 4.79205C9.27196 4.89936 9.93942 5.21028 10.4807 5.6875C10.5546 5.75267 10.6149 5.83175 10.6582 5.92023C10.7015 6.0087 10.7269 6.10484 10.7331 6.20316C10.7392 6.30147 10.726 6.40003 10.694 6.49322C10.6621 6.5864 10.6121 6.67238 10.5469 6.74625C10.4818 6.82012 10.4027 6.88043 10.3142 6.92374C10.2257 6.96704 10.1296 6.9925 10.0313 6.99865C9.93298 7.0048 9.83441 6.99153 9.74123 6.95959C9.64804 6.92765 9.56206 6.87767 9.48819 6.8125C9.16342 6.52633 8.76299 6.33991 8.33492 6.27561C7.90685 6.21131 7.46933 6.27186 7.07481 6.44998C6.68029 6.62811 6.34553 6.91626 6.11067 7.27987C5.87581 7.64349 5.75082 8.06713 5.75069 8.5ZM11.0107 8H11.0007C10.8039 7.99997 10.615 8.07727 10.4747 8.21523C10.3344 8.35319 10.254 8.54076 10.2507 8.7375C10.2243 10.5147 9.86388 12.2711 9.18819 13.915C9.14832 14.0065 9.1271 14.105 9.12579 14.2048C9.12447 14.3046 9.14309 14.4036 9.18054 14.4961C9.21799 14.5886 9.27353 14.6727 9.3439 14.7435C9.41427 14.8143 9.49806 14.8703 9.59035 14.9083C9.68264 14.9462 9.78158 14.9654 9.88138 14.9647C9.98117 14.9639 10.0798 14.9432 10.1715 14.9039C10.2632 14.8645 10.3462 14.8073 10.4155 14.7354C10.4848 14.6636 10.539 14.5787 10.5751 14.4856C11.3227 12.6686 11.7215 10.7271 11.7507 8.7625C11.7523 8.66375 11.7345 8.56564 11.6981 8.47381C11.6618 8.38198 11.6076 8.29824 11.5388 8.22739C11.47 8.15654 11.3878 8.09998 11.2971 8.06096C11.2064 8.02194 11.1088 8.00122 11.0101 8H11.0107ZM7.12194 13.0756C6.94335 12.9894 6.73787 12.9774 6.55046 13.0423C6.36306 13.1072 6.20898 13.2437 6.12194 13.4219C6.03632 13.5975 5.94382 13.775 5.84819 13.9481C5.80047 14.0343 5.77018 14.129 5.75907 14.2269C5.74795 14.3248 5.75623 14.4239 5.78342 14.5186C5.81061 14.6133 5.85618 14.7017 5.91754 14.7788C5.97889 14.8559 6.05483 14.9201 6.14101 14.9678C6.22719 15.0155 6.32192 15.0458 6.41981 15.0569C6.51769 15.0681 6.61681 15.0598 6.71149 15.0326C6.80618 15.0054 6.89458 14.9598 6.97166 14.8985C7.04873 14.8371 7.11297 14.7612 7.16069 14.675C7.26944 14.4788 7.37382 14.2781 7.47319 14.0781C7.51609 13.9892 7.54101 13.8927 7.54653 13.7942C7.55205 13.6956 7.53807 13.597 7.50538 13.5038C7.47269 13.4107 7.42194 13.3249 7.35603 13.2514C7.29013 13.178 7.21036 13.1182 7.12132 13.0756H7.12194ZM8.00069 7.75C7.80178 7.75 7.61102 7.82902 7.47036 7.96967C7.32971 8.11032 7.25069 8.30109 7.25069 8.5C7.25101 9.36813 7.1514 10.2334 6.95382 11.0788C6.90845 11.2724 6.94182 11.4761 7.0466 11.6451C7.15138 11.8141 7.31899 11.9345 7.51257 11.98C7.56888 11.9934 7.62657 12.0001 7.68444 12C7.85344 11.9998 8.01743 11.9426 8.14982 11.8375C8.2822 11.7325 8.37523 11.5858 8.41382 11.4213C8.6381 10.4637 8.75114 9.48347 8.75069 8.5C8.75069 8.30109 8.67168 8.11032 8.53102 7.96967C8.39037 7.82902 8.19961 7.75 8.00069 7.75ZM8.00069 1.75C7.33363 1.74948 6.67017 1.84784 6.03194 2.04188C5.93756 2.0706 5.84975 2.11764 5.77354 2.1803C5.69733 2.24296 5.63421 2.32002 5.58778 2.40707C5.54135 2.49413 5.51252 2.58948 5.50294 2.68767C5.49336 2.78587 5.50322 2.88499 5.53194 2.97938C5.58996 3.17 5.72132 3.32977 5.89714 3.42354C5.9842 3.46997 6.07954 3.4988 6.17774 3.50838C6.27593 3.51796 6.37506 3.5081 6.46944 3.47938C7.25409 3.24094 8.08366 3.18951 8.89175 3.32918C9.69984 3.46885 10.464 3.79576 11.1231 4.28373C11.7822 4.7717 12.3179 5.40719 12.6874 6.13933C13.0568 6.87147 13.2497 7.67993 13.2507 8.5C13.2513 9.78984 13.1079 11.0757 12.8232 12.3338C12.8014 12.4298 12.7987 12.5293 12.8153 12.6264C12.832 12.7235 12.8676 12.8163 12.9201 12.8997C12.9726 12.983 13.041 13.0552 13.1215 13.1121C13.2019 13.169 13.2927 13.2095 13.3888 13.2313C13.4433 13.2439 13.4991 13.2502 13.5551 13.25C13.7251 13.25 13.89 13.1922 14.0229 13.0861C14.1557 12.9801 14.2486 12.832 14.2863 12.6663C14.5954 11.2991 14.7511 9.90169 14.7507 8.5C14.7487 6.7104 14.0369 4.99466 12.7715 3.72922C11.506 2.46378 9.7903 1.75199 8.00069 1.75ZM4.28007 3.73375C4.21039 3.66383 4.1276 3.60835 4.03643 3.5705C3.94527 3.53265 3.84753 3.51316 3.74882 3.51316C3.65011 3.51316 3.55237 3.53265 3.4612 3.5705C3.37004 3.60835 3.28725 3.66383 3.21757 3.73375C2.59152 4.35919 2.09542 5.10232 1.75785 5.92033C1.42029 6.73835 1.24792 7.61508 1.25069 8.5C1.25273 9.25504 1.09043 10.0015 0.775069 10.6875C0.731252 10.7774 0.705848 10.8751 0.700353 10.9749C0.694857 11.0748 0.70938 11.1747 0.743067 11.2689C0.776754 11.363 0.828926 11.4495 0.896514 11.5231C0.964102 11.5968 1.04574 11.6562 1.13663 11.6979C1.22752 11.7396 1.32583 11.7627 1.42577 11.7658C1.5257 11.7689 1.62526 11.752 1.71858 11.7161C1.81189 11.6802 1.89709 11.626 1.96915 11.5567C2.04121 11.4874 2.09869 11.4044 2.13819 11.3125C2.54388 10.4305 2.75288 9.47082 2.75069 8.5C2.74875 7.81184 2.88305 7.13011 3.14586 6.49411C3.40867 5.85811 3.79479 5.28043 4.28194 4.79438C4.42234 4.65348 4.50101 4.46258 4.50066 4.26368C4.50031 4.06477 4.42096 3.87415 4.28007 3.73375Z", fill: "#7B7B7B" }))), T3 = ({
|
|
122
122
|
size: e = 16,
|
|
123
123
|
className: t = "",
|
|
@@ -561,7 +561,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
561
561
|
onClick: a
|
|
562
562
|
}
|
|
563
563
|
);
|
|
564
|
-
}, Pr = (e) => /* @__PURE__ */ c.createElement("svg", { width: 13, height: 13, viewBox: "0 0 13 13", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("path", { d: "M6.5 1.21875C5.45547 1.21875 4.43439 1.52849 3.5659 2.1088C2.6974 2.68911 2.02049 3.51393 1.62076 4.47895C1.22104 5.44397 1.11645 6.50586 1.32023 7.53032C1.52401 8.55478 2.027 9.49581 2.76559 10.2344C3.50419 10.973 4.44522 11.476 5.46968 11.6798C6.49414 11.8835 7.55603 11.779 8.52105 11.3792C9.48607 10.9795 10.3109 10.3026 10.8912 9.4341C11.4715 8.56561 11.7813 7.54453 11.7813 6.5C11.7798 5.09978 11.2229 3.75733 10.2328 2.76723C9.24267 1.77712 7.90022 1.22023 6.5 1.21875ZM6.09375 4.0625C6.09375 3.95476 6.13655 3.85142 6.21274 3.77524C6.28893 3.69905 6.39226 3.65625 6.5 3.65625C6.60775 3.65625 6.71108 3.69905 6.78726 3.77524C6.86345 3.85142 6.90625 3.95476 6.90625 4.0625V6.90625C6.90625 7.01399 6.86345 7.11733 6.78726 7.19351C6.71108 7.2697 6.60775 7.3125 6.5 7.3125C6.39226 7.3125 6.28893 7.2697 6.21274 7.19351C6.13655 7.11733 6.09375 7.01399 6.09375 6.90625V4.0625ZM6.5 9.34375C6.37948 9.34375 6.26166 9.30801 6.16145 9.24105C6.06124 9.17409 5.98313 9.07892 5.93701 8.96757C5.89089 8.85622 5.87882 8.7337 5.90234 8.61549C5.92585 8.49728 5.98389 8.3887 6.06911 8.30348C6.15433 8.21826 6.26291 8.16022 6.38112 8.13671C6.49933 8.1132 6.62185 8.12526 6.7332 8.17139C6.84455 8.21751 6.93972 8.29561 7.00668 8.39582C7.07364 8.49604 7.10938 8.61385 7.10938 8.73437C7.10938 8.89599 7.04517 9.05099 6.93089 9.16527C6.81661 9.27955 6.66162 9.34375 6.5 9.34375Z", fill: "currentColor" })),
|
|
564
|
+
}, Pr = (e) => /* @__PURE__ */ c.createElement("svg", { width: 13, height: 13, viewBox: "0 0 13 13", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("path", { d: "M6.5 1.21875C5.45547 1.21875 4.43439 1.52849 3.5659 2.1088C2.6974 2.68911 2.02049 3.51393 1.62076 4.47895C1.22104 5.44397 1.11645 6.50586 1.32023 7.53032C1.52401 8.55478 2.027 9.49581 2.76559 10.2344C3.50419 10.973 4.44522 11.476 5.46968 11.6798C6.49414 11.8835 7.55603 11.779 8.52105 11.3792C9.48607 10.9795 10.3109 10.3026 10.8912 9.4341C11.4715 8.56561 11.7813 7.54453 11.7813 6.5C11.7798 5.09978 11.2229 3.75733 10.2328 2.76723C9.24267 1.77712 7.90022 1.22023 6.5 1.21875ZM6.09375 4.0625C6.09375 3.95476 6.13655 3.85142 6.21274 3.77524C6.28893 3.69905 6.39226 3.65625 6.5 3.65625C6.60775 3.65625 6.71108 3.69905 6.78726 3.77524C6.86345 3.85142 6.90625 3.95476 6.90625 4.0625V6.90625C6.90625 7.01399 6.86345 7.11733 6.78726 7.19351C6.71108 7.2697 6.60775 7.3125 6.5 7.3125C6.39226 7.3125 6.28893 7.2697 6.21274 7.19351C6.13655 7.11733 6.09375 7.01399 6.09375 6.90625V4.0625ZM6.5 9.34375C6.37948 9.34375 6.26166 9.30801 6.16145 9.24105C6.06124 9.17409 5.98313 9.07892 5.93701 8.96757C5.89089 8.85622 5.87882 8.7337 5.90234 8.61549C5.92585 8.49728 5.98389 8.3887 6.06911 8.30348C6.15433 8.21826 6.26291 8.16022 6.38112 8.13671C6.49933 8.1132 6.62185 8.12526 6.7332 8.17139C6.84455 8.21751 6.93972 8.29561 7.00668 8.39582C7.07364 8.49604 7.10938 8.61385 7.10938 8.73437C7.10938 8.89599 7.04517 9.05099 6.93089 9.16527C6.81661 9.27955 6.66162 9.34375 6.5 9.34375Z", fill: "currentColor" })), Kr = ({
|
|
565
565
|
size: e = 16,
|
|
566
566
|
className: t = "",
|
|
567
567
|
style: r = {},
|
|
@@ -575,7 +575,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
575
575
|
...r
|
|
576
576
|
};
|
|
577
577
|
return /* @__PURE__ */ l(Pr, { className: t, style: o, onClick: a });
|
|
578
|
-
},
|
|
578
|
+
}, Rr = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17, viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("g", { id: "Frame" }, /* @__PURE__ */ c.createElement("path", { id: "Vector", d: "M11.5326 10.8606C11.6025 10.9303 11.6579 11.0131 11.6958 11.1042C11.7337 11.1954 11.7531 11.2931 11.7531 11.3918C11.7531 11.4906 11.7337 11.5883 11.6958 11.6795C11.6579 11.7706 11.6025 11.8534 11.5326 11.9231L8.53255 14.9231C8.46287 14.993 8.38008 15.0485 8.28892 15.0863C8.19775 15.1242 8.10001 15.1437 8.0013 15.1437C7.90259 15.1437 7.80485 15.1242 7.71369 15.0863C7.62252 15.0485 7.53973 14.993 7.47005 14.9231L4.47005 11.9231C4.32915 11.7822 4.25 11.5911 4.25 11.3918C4.25 11.1926 4.32915 11.0015 4.47005 10.8606C4.61095 10.7197 4.80204 10.6405 5.0013 10.6405C5.20056 10.6405 5.39165 10.7197 5.53255 10.8606L8.00193 13.3287L10.4713 10.8587C10.5411 10.7891 10.6239 10.7339 10.715 10.6964C10.8061 10.6588 10.9038 10.6395 11.0023 10.6397C11.1009 10.6399 11.1984 10.6595 11.2894 10.6974C11.3804 10.7353 11.463 10.7907 11.5326 10.8606ZM5.53255 5.92309L8.00193 3.45372L10.4713 5.92372C10.6122 6.06461 10.8033 6.14377 11.0026 6.14377C11.2018 6.14377 11.3929 6.06461 11.5338 5.92372C11.6747 5.78282 11.7539 5.59172 11.7539 5.39247C11.7539 5.19321 11.6747 5.00211 11.5338 4.86122L8.5338 1.86122C8.46412 1.7913 8.38133 1.73582 8.29016 1.69796C8.199 1.66011 8.10126 1.64063 8.00255 1.64062C7.90384 1.64063 7.8061 1.66011 7.71494 1.69796C7.62377 1.73582 7.54098 1.7913 7.4713 1.86122L4.4713 4.86122C4.3304 5.00211 4.25125 5.19321 4.25125 5.39247C4.25125 5.59172 4.3304 5.78282 4.4713 5.92372C4.6122 6.06461 4.80329 6.14377 5.00255 6.14377C5.20181 6.14377 5.3929 6.06461 5.5338 5.92372L5.53255 5.92309Z", fill: "currentColor" }))), Wr = ({
|
|
579
579
|
size: e = 16,
|
|
580
580
|
className: t = "",
|
|
581
581
|
style: r = {},
|
|
@@ -589,7 +589,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
589
589
|
...r
|
|
590
590
|
};
|
|
591
591
|
return /* @__PURE__ */ l(
|
|
592
|
-
|
|
592
|
+
Rr,
|
|
593
593
|
{
|
|
594
594
|
className: t,
|
|
595
595
|
style: o,
|
|
@@ -998,7 +998,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
998
998
|
onClick: a
|
|
999
999
|
}
|
|
1000
1000
|
);
|
|
1001
|
-
},
|
|
1001
|
+
}, K6 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("g", { id: "Frame" }, /* @__PURE__ */ c.createElement("path", { id: "Vector", d: "M11.875 8.21875V10.25C11.875 10.4655 11.7894 10.6722 11.637 10.8245C11.4847 10.9769 11.278 11.0625 11.0625 11.0625H2.9375C2.72201 11.0625 2.51535 10.9769 2.36298 10.8245C2.2106 10.6722 2.125 10.4655 2.125 10.25V8.21875C2.125 8.00326 2.2106 7.7966 2.36298 7.64423C2.51535 7.49185 2.72201 7.40625 2.9375 7.40625H11.0625C11.278 7.40625 11.4847 7.49185 11.637 7.64423C11.7894 7.7966 11.875 8.00326 11.875 8.21875ZM11.0625 2.9375H2.9375C2.72201 2.9375 2.51535 3.0231 2.36298 3.17548C2.2106 3.32785 2.125 3.53451 2.125 3.75V5.78125C2.125 5.99674 2.2106 6.2034 2.36298 6.35577C2.51535 6.50815 2.72201 6.59375 2.9375 6.59375H11.0625C11.278 6.59375 11.4847 6.50815 11.637 6.35577C11.7894 6.2034 11.875 5.99674 11.875 5.78125V3.75C11.875 3.53451 11.7894 3.32785 11.637 3.17548C11.4847 3.0231 11.278 2.9375 11.0625 2.9375Z", fill: "white" }))), R6 = ({
|
|
1002
1002
|
size: e = 16,
|
|
1003
1003
|
className: t = "",
|
|
1004
1004
|
style: r = {},
|
|
@@ -1012,7 +1012,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
1012
1012
|
...r
|
|
1013
1013
|
};
|
|
1014
1014
|
return /* @__PURE__ */ l(
|
|
1015
|
-
|
|
1015
|
+
K6,
|
|
1016
1016
|
{
|
|
1017
1017
|
className: t,
|
|
1018
1018
|
style: o,
|
|
@@ -1427,7 +1427,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
1427
1427
|
AddIcon: F3,
|
|
1428
1428
|
AdvancedLogsIcon: L3,
|
|
1429
1429
|
ApiKeysIcon: Q3,
|
|
1430
|
-
ArrowLeftIcon:
|
|
1430
|
+
ArrowLeftIcon: K3,
|
|
1431
1431
|
ArrowUpRightIcon: W3,
|
|
1432
1432
|
AuthenticationIcon: T3,
|
|
1433
1433
|
BiDirectionalArrowsIcon: H3,
|
|
@@ -1455,7 +1455,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
1455
1455
|
EditIcon: Fr,
|
|
1456
1456
|
EnableIcon: Lr,
|
|
1457
1457
|
EnumIcon: Qr,
|
|
1458
|
-
ErrorCircleFilled:
|
|
1458
|
+
ErrorCircleFilled: Kr,
|
|
1459
1459
|
ExpandIcon: Wr,
|
|
1460
1460
|
EyeClosedIcon: Tr,
|
|
1461
1461
|
EyeIcon: Hr,
|
|
@@ -1483,7 +1483,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
1483
1483
|
NotFoundIcon: N6,
|
|
1484
1484
|
OrganizationIcon: D6,
|
|
1485
1485
|
PlusIcon: P6,
|
|
1486
|
-
PreviewIcon:
|
|
1486
|
+
PreviewIcon: R6,
|
|
1487
1487
|
ProgrammaticWebhookIcon: G6,
|
|
1488
1488
|
PulseIcon: Y6,
|
|
1489
1489
|
RefreshIcon: j6,
|
|
@@ -1530,98 +1530,57 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
1530
1530
|
disabled: d = !1,
|
|
1531
1531
|
stickyHeader: h = !1,
|
|
1532
1532
|
stickyTopOffset: C = 0,
|
|
1533
|
-
|
|
1534
|
-
roundBottom: u = !1,
|
|
1535
|
-
animate: m = !0
|
|
1533
|
+
animate: p = !0
|
|
1536
1534
|
}) => {
|
|
1537
|
-
const [
|
|
1535
|
+
const [u, m] = H(n), b = s !== void 0 ? s : u, [x, A] = H(!1);
|
|
1538
1536
|
u1(() => {
|
|
1539
|
-
|
|
1540
|
-
}, [
|
|
1541
|
-
const
|
|
1542
|
-
const
|
|
1543
|
-
s === void 0 &&
|
|
1544
|
-
},
|
|
1537
|
+
b || A(!1);
|
|
1538
|
+
}, [b]);
|
|
1539
|
+
const w = () => {
|
|
1540
|
+
const I = !b;
|
|
1541
|
+
s === void 0 && m(I), i == null || i(I);
|
|
1542
|
+
}, y = ["flex flex-col w-full text-left", r].filter(Boolean).join(" "), V = [
|
|
1545
1543
|
// `group` only when enabled, so the arrow doesn't darken on hover while disabled.
|
|
1546
1544
|
d ? "" : "group",
|
|
1547
1545
|
"flex items-center w-full transition-colors",
|
|
1548
1546
|
"border-0 border-b border-solid border-[var(--malachite-card-border)]",
|
|
1549
1547
|
h ? "sticky z-10" : "",
|
|
1550
|
-
|
|
1551
|
-
].filter(Boolean).join(" "),
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
[E]: 0,
|
|
1556
|
-
[Z]: 0,
|
|
1557
|
-
width: "13px",
|
|
1558
|
-
height: "13px",
|
|
1559
|
-
background: `radial-gradient(circle at ${E === "top" ? "bottom" : "top"} ${Z === "left" ? "right" : "left"}, transparent 12.5px, var(--malachite-card-sunken-background) 13px)`,
|
|
1560
|
-
pointerEvents: "none"
|
|
1561
|
-
});
|
|
1562
|
-
return /* @__PURE__ */ w("div", { className: M, children: [
|
|
1563
|
-
/* @__PURE__ */ w("div", { className: N, style: I, "data-accordion-header": "", children: [
|
|
1564
|
-
h && p && /* @__PURE__ */ w(w1, { children: [
|
|
1565
|
-
/* @__PURE__ */ l("span", { "aria-hidden": "true", style: S("top", "left") }),
|
|
1566
|
-
/* @__PURE__ */ l("span", { "aria-hidden": "true", style: S("top", "right") })
|
|
1567
|
-
] }),
|
|
1568
|
-
/* @__PURE__ */ w(
|
|
1548
|
+
b ? "bg-[var(--malachite-buttonlist-hover-background)]" : d ? "bg-transparent" : "bg-transparent hover:bg-[var(--malachite-buttonlist-hover-background)]"
|
|
1549
|
+
].filter(Boolean).join(" "), D = h ? { top: `${C}px`, backgroundColor: "var(--malachite-card-background)" } : {};
|
|
1550
|
+
return /* @__PURE__ */ v("div", { className: y, children: [
|
|
1551
|
+
/* @__PURE__ */ v("div", { className: V, style: D, "data-accordion-header": "", children: [
|
|
1552
|
+
/* @__PURE__ */ v(
|
|
1569
1553
|
"button",
|
|
1570
1554
|
{
|
|
1571
1555
|
type: "button",
|
|
1572
1556
|
className: "flex flex-1 items-center gap-[12px] min-w-0 p-[16px] appearance-none border-0 bg-transparent text-left cursor-pointer select-none disabled:cursor-not-allowed",
|
|
1573
|
-
onClick:
|
|
1574
|
-
"aria-expanded":
|
|
1557
|
+
onClick: w,
|
|
1558
|
+
"aria-expanded": b,
|
|
1575
1559
|
disabled: d,
|
|
1576
1560
|
children: [
|
|
1577
|
-
/* @__PURE__ */ l(Z7, { expanded:
|
|
1561
|
+
/* @__PURE__ */ l(Z7, { expanded: b }),
|
|
1578
1562
|
t ?? /* @__PURE__ */ l("span", { className: "flex-1 min-w-0 truncate font-medium text-[13px] tracking-[0.13px] text-[var(--malachite-text-primary)]", children: e })
|
|
1579
1563
|
]
|
|
1580
1564
|
}
|
|
1581
1565
|
),
|
|
1582
1566
|
o && /* @__PURE__ */ l("span", { className: "shrink-0 flex items-center pr-[16px] text-[var(--malachite-text-secondary)]", children: o })
|
|
1583
1567
|
] }),
|
|
1584
|
-
|
|
1568
|
+
p ? (
|
|
1585
1569
|
/* Height animates via grid-template-rows (0fr → 1fr); body clips during. */
|
|
1586
1570
|
/* @__PURE__ */ l(
|
|
1587
1571
|
"div",
|
|
1588
1572
|
{
|
|
1589
1573
|
className: "grid w-full transition-[grid-template-rows] duration-200 ease-in-out",
|
|
1590
|
-
style: { gridTemplateRows:
|
|
1591
|
-
onTransitionEnd: (
|
|
1592
|
-
|
|
1574
|
+
style: { gridTemplateRows: b ? "1fr" : "0fr" },
|
|
1575
|
+
onTransitionEnd: (I) => {
|
|
1576
|
+
I.propertyName === "grid-template-rows" && b && A(!0);
|
|
1593
1577
|
},
|
|
1594
|
-
children: /* @__PURE__ */ l(
|
|
1595
|
-
"div",
|
|
1596
|
-
{
|
|
1597
|
-
className: v && A ? "overflow-visible" : "overflow-hidden",
|
|
1598
|
-
style: u ? { borderBottomLeftRadius: "13px", borderBottomRightRadius: "13px" } : void 0,
|
|
1599
|
-
children: a && /* @__PURE__ */ l("div", { className: "border-b border-solid border-[var(--malachite-card-border)]", children: a })
|
|
1600
|
-
}
|
|
1601
|
-
)
|
|
1578
|
+
children: /* @__PURE__ */ l("div", { className: x && b ? "overflow-visible" : "overflow-hidden", children: a && /* @__PURE__ */ l("div", { className: "border-b border-solid border-[var(--malachite-card-border)]", children: a }) })
|
|
1602
1579
|
}
|
|
1603
1580
|
)
|
|
1604
1581
|
) : (
|
|
1605
1582
|
/* Instant open — no clip, so a sticky child inside pins immediately. */
|
|
1606
|
-
|
|
1607
|
-
"div",
|
|
1608
|
-
{
|
|
1609
|
-
style: {
|
|
1610
|
-
position: "relative",
|
|
1611
|
-
...u ? {
|
|
1612
|
-
borderBottomLeftRadius: "13px",
|
|
1613
|
-
borderBottomRightRadius: "13px"
|
|
1614
|
-
} : {}
|
|
1615
|
-
},
|
|
1616
|
-
children: [
|
|
1617
|
-
/* @__PURE__ */ l("div", { className: "border-b border-solid border-[var(--malachite-card-border)]", children: a }),
|
|
1618
|
-
u && /* @__PURE__ */ w(w1, { children: [
|
|
1619
|
-
/* @__PURE__ */ l("span", { "aria-hidden": "true", style: S("bottom", "left") }),
|
|
1620
|
-
/* @__PURE__ */ l("span", { "aria-hidden": "true", style: S("bottom", "right") })
|
|
1621
|
-
] })
|
|
1622
|
-
]
|
|
1623
|
-
}
|
|
1624
|
-
)
|
|
1583
|
+
b && a && /* @__PURE__ */ l("div", { className: "border-b border-solid border-[var(--malachite-card-border)]", children: a })
|
|
1625
1584
|
)
|
|
1626
1585
|
] });
|
|
1627
1586
|
}, F7 = {
|
|
@@ -1640,29 +1599,29 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
1640
1599
|
maxWidth: s = "320px",
|
|
1641
1600
|
fill: i = !1
|
|
1642
1601
|
}) => {
|
|
1643
|
-
const d = n || i ? { ...n ? F7 : {}, ...i ? N7 : {} } : void 0, [h, C] = H(!1), p = U(null), u = U(null), m = U(null), b = d2(), x = e != null && e !== "" && e !== !1, A = (
|
|
1644
|
-
|
|
1602
|
+
const d = n || i ? { ...n ? F7 : {}, ...i ? N7 : {} } : void 0, [h, C] = H(!1), p = U(null), u = U(null), m = U(null), b = d2(), x = e != null && e !== "" && e !== !1, A = (Z) => {
|
|
1603
|
+
Z.stopPropagation(), x && (p.current && clearTimeout(p.current), p.current = setTimeout(() => {
|
|
1645
1604
|
C(!0);
|
|
1646
1605
|
}, r * 1e3));
|
|
1647
|
-
},
|
|
1648
|
-
|
|
1606
|
+
}, w = (Z) => {
|
|
1607
|
+
Z.stopPropagation(), p.current && clearTimeout(p.current), C(!1);
|
|
1649
1608
|
}, y = () => {
|
|
1650
1609
|
x && (p.current && clearTimeout(p.current), C(!0));
|
|
1651
|
-
},
|
|
1610
|
+
}, S = () => {
|
|
1652
1611
|
p.current && clearTimeout(p.current), C(!1);
|
|
1653
|
-
}, [,
|
|
1612
|
+
}, [, V] = H({});
|
|
1654
1613
|
u1(() => {
|
|
1655
|
-
const
|
|
1656
|
-
h &&
|
|
1614
|
+
const Z = () => {
|
|
1615
|
+
h && V({});
|
|
1657
1616
|
};
|
|
1658
|
-
return window.addEventListener("scroll",
|
|
1659
|
-
p.current && clearTimeout(p.current), window.removeEventListener("scroll",
|
|
1617
|
+
return window.addEventListener("scroll", Z, !0), window.addEventListener("resize", Z), () => {
|
|
1618
|
+
p.current && clearTimeout(p.current), window.removeEventListener("scroll", Z, !0), window.removeEventListener("resize", Z);
|
|
1660
1619
|
};
|
|
1661
1620
|
}, [h]);
|
|
1662
|
-
const
|
|
1621
|
+
const D = () => {
|
|
1663
1622
|
if (!m.current)
|
|
1664
1623
|
return { display: "none" };
|
|
1665
|
-
const
|
|
1624
|
+
const Z = m.current.getBoundingClientRect(), M = {
|
|
1666
1625
|
position: "fixed",
|
|
1667
1626
|
zIndex: 2147483647,
|
|
1668
1627
|
display: "flex",
|
|
@@ -1690,44 +1649,44 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
1690
1649
|
switch (o) {
|
|
1691
1650
|
case "top":
|
|
1692
1651
|
return {
|
|
1693
|
-
...
|
|
1694
|
-
top:
|
|
1695
|
-
left:
|
|
1652
|
+
...M,
|
|
1653
|
+
top: Z.top - 8,
|
|
1654
|
+
left: Z.left + Z.width / 2,
|
|
1696
1655
|
transform: `translate(-50%, -100%) ${h ? "scale(1)" : "scale(0.95)"}`
|
|
1697
1656
|
};
|
|
1698
1657
|
case "bottom":
|
|
1699
1658
|
return {
|
|
1700
|
-
...
|
|
1701
|
-
top:
|
|
1702
|
-
left:
|
|
1659
|
+
...M,
|
|
1660
|
+
top: Z.bottom + 8,
|
|
1661
|
+
left: Z.left + Z.width / 2,
|
|
1703
1662
|
transform: `translateX(-50%) ${h ? "scale(1)" : "scale(0.95)"}`
|
|
1704
1663
|
};
|
|
1705
1664
|
case "left":
|
|
1706
1665
|
return {
|
|
1707
|
-
...
|
|
1708
|
-
top:
|
|
1709
|
-
left:
|
|
1666
|
+
...M,
|
|
1667
|
+
top: Z.top + Z.height / 2,
|
|
1668
|
+
left: Z.left - 8,
|
|
1710
1669
|
transform: `translate(-100%, -50%) ${h ? "scale(1)" : "scale(0.95)"}`
|
|
1711
1670
|
};
|
|
1712
1671
|
case "right":
|
|
1713
1672
|
return {
|
|
1714
|
-
...
|
|
1715
|
-
top:
|
|
1716
|
-
left:
|
|
1673
|
+
...M,
|
|
1674
|
+
top: Z.top + Z.height / 2,
|
|
1675
|
+
left: Z.right + 8,
|
|
1717
1676
|
transform: `translateY(-50%) ${h ? "scale(1)" : "scale(0.95)"}`
|
|
1718
1677
|
};
|
|
1719
1678
|
default:
|
|
1720
1679
|
return {
|
|
1721
|
-
...
|
|
1722
|
-
top:
|
|
1723
|
-
left:
|
|
1680
|
+
...M,
|
|
1681
|
+
top: Z.top - 8,
|
|
1682
|
+
left: Z.left + Z.width / 2,
|
|
1724
1683
|
transform: `translate(-50%, -100%) ${h ? "scale(1)" : "scale(0.95)"}`
|
|
1725
1684
|
};
|
|
1726
1685
|
}
|
|
1727
|
-
},
|
|
1728
|
-
"aria-describedby": [t.props["aria-describedby"],
|
|
1686
|
+
}, I = x ? b : void 0, N = a || !P1.isValidElement(t) ? /* @__PURE__ */ l("span", { "aria-describedby": I, children: t }) : P1.cloneElement(t, {
|
|
1687
|
+
"aria-describedby": [t.props["aria-describedby"], I].filter(Boolean).join(" ") || void 0
|
|
1729
1688
|
});
|
|
1730
|
-
return /* @__PURE__ */
|
|
1689
|
+
return /* @__PURE__ */ v(w1, { children: [
|
|
1731
1690
|
/* @__PURE__ */ l(
|
|
1732
1691
|
"div",
|
|
1733
1692
|
{
|
|
@@ -1735,14 +1694,14 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
1735
1694
|
className: "relative flex items-center",
|
|
1736
1695
|
style: d,
|
|
1737
1696
|
onMouseEnter: A,
|
|
1738
|
-
onMouseLeave:
|
|
1697
|
+
onMouseLeave: w,
|
|
1739
1698
|
onFocus: y,
|
|
1740
|
-
onBlur:
|
|
1741
|
-
children:
|
|
1699
|
+
onBlur: S,
|
|
1700
|
+
children: N
|
|
1742
1701
|
}
|
|
1743
1702
|
),
|
|
1744
1703
|
x && le(
|
|
1745
|
-
/* @__PURE__ */ l("div", { ref: u, id: b, role: "tooltip", style:
|
|
1704
|
+
/* @__PURE__ */ l("div", { ref: u, id: b, role: "tooltip", style: D(), children: e }),
|
|
1746
1705
|
document.body
|
|
1747
1706
|
)
|
|
1748
1707
|
] });
|
|
@@ -1795,35 +1754,35 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
1795
1754
|
default:
|
|
1796
1755
|
return "rounded-xl";
|
|
1797
1756
|
}
|
|
1798
|
-
},
|
|
1757
|
+
}, R1 = {
|
|
1799
1758
|
neutral: "focus-visible:[outline:2px_solid_var(--malachite-text-primary)]",
|
|
1800
1759
|
destructive: "focus-visible:[outline:2px_solid_var(--malachite-text-destructive)]",
|
|
1801
1760
|
success: "focus-visible:[outline:2px_solid_var(--malachite-text-success)]",
|
|
1802
1761
|
warning: "focus-visible:[outline:2px_solid_var(--malachite-text-warning)]",
|
|
1803
1762
|
error: "focus-visible:[outline:2px_solid_var(--malachite-text-error)]"
|
|
1804
|
-
},
|
|
1763
|
+
}, K7 = (e, t) => {
|
|
1805
1764
|
const r = `font-medium transition-[color,background-color,border-color,opacity,box-shadow] duration-200 ease-in-out outline-none focus-visible:outline-offset-2 border border-solid ${P7(t)} cursor-pointer`;
|
|
1806
1765
|
switch (e) {
|
|
1807
1766
|
case "filled":
|
|
1808
|
-
return `${r} ${
|
|
1767
|
+
return `${r} ${R1.neutral} btn-filled shadow-default`;
|
|
1809
1768
|
case "outline":
|
|
1810
|
-
return `${r} ${
|
|
1769
|
+
return `${r} ${R1.neutral} btn-outline shadow-default`;
|
|
1811
1770
|
case "destructive":
|
|
1812
|
-
return `${r} ${
|
|
1771
|
+
return `${r} ${R1.destructive} btn-destructive`;
|
|
1813
1772
|
case "success":
|
|
1814
|
-
return `${r} ${
|
|
1773
|
+
return `${r} ${R1.success} btn-glass-success`;
|
|
1815
1774
|
case "warning":
|
|
1816
|
-
return `${r} ${
|
|
1775
|
+
return `${r} ${R1.warning} btn-glass-warning`;
|
|
1817
1776
|
case "error":
|
|
1818
|
-
return `${r} ${
|
|
1777
|
+
return `${r} ${R1.error} btn-glass-error`;
|
|
1819
1778
|
case "ghost":
|
|
1820
|
-
return `${r} ${
|
|
1779
|
+
return `${r} ${R1.neutral} btn-ghost`;
|
|
1821
1780
|
case "no-style":
|
|
1822
|
-
return `${r} ${
|
|
1781
|
+
return `${r} ${R1.neutral} btn-no-style border-none`;
|
|
1823
1782
|
default:
|
|
1824
|
-
return `${r} ${
|
|
1783
|
+
return `${r} ${R1.neutral} btn-filled shadow-default`;
|
|
1825
1784
|
}
|
|
1826
|
-
},
|
|
1785
|
+
}, R7 = () => /* @__PURE__ */ v(
|
|
1827
1786
|
"svg",
|
|
1828
1787
|
{
|
|
1829
1788
|
className: "animate-spin -ml-1 mr-2 h-4 w-4",
|
|
@@ -1870,31 +1829,31 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
|
|
|
1870
1829
|
className: m = "",
|
|
1871
1830
|
...b
|
|
1872
1831
|
}, x) => {
|
|
1873
|
-
const A = r ?? D7(t),
|
|
1832
|
+
const A = r ?? D7(t), w = o || a, y = [
|
|
1874
1833
|
"flex items-center justify-center",
|
|
1875
1834
|
p ? "p-0" : L7(t),
|
|
1876
|
-
|
|
1835
|
+
K7(e, A),
|
|
1877
1836
|
i ? "w-full" : "",
|
|
1878
1837
|
d ? "max-w-full" : "",
|
|
1879
|
-
|
|
1880
|
-
h &&
|
|
1838
|
+
w ? "cursor-not-allowed" : "",
|
|
1839
|
+
h && w ? "pointer-events-none" : "",
|
|
1881
1840
|
m
|
|
1882
|
-
].filter(Boolean).join(" "),
|
|
1841
|
+
].filter(Boolean).join(" "), V = /* @__PURE__ */ l("button", { ref: x, disabled: o || a, className: y, ...b, children: (() => {
|
|
1883
1842
|
if (a)
|
|
1884
|
-
return /* @__PURE__ */
|
|
1885
|
-
/* @__PURE__ */ l(
|
|
1843
|
+
return /* @__PURE__ */ v(w1, { children: [
|
|
1844
|
+
/* @__PURE__ */ l(R7, {}),
|
|
1886
1845
|
u
|
|
1887
1846
|
] });
|
|
1888
|
-
const
|
|
1889
|
-
return n && s === "start" ? /* @__PURE__ */
|
|
1890
|
-
/* @__PURE__ */ l("span", { className: `${
|
|
1847
|
+
const D = `inline-flex items-center shrink-0 ${Q7(t)}`;
|
|
1848
|
+
return n && s === "start" ? /* @__PURE__ */ v(w1, { children: [
|
|
1849
|
+
/* @__PURE__ */ l("span", { className: `${D}${u ? " mr-2" : ""}`, children: n }),
|
|
1891
1850
|
u
|
|
1892
|
-
] }) : n && s === "end" ? /* @__PURE__ */
|
|
1851
|
+
] }) : n && s === "end" ? /* @__PURE__ */ v(w1, { children: [
|
|
1893
1852
|
u,
|
|
1894
|
-
/* @__PURE__ */ l("span", { className: `${
|
|
1853
|
+
/* @__PURE__ */ l("span", { className: `${D}${u ? " ml-2" : ""}`, children: n })
|
|
1895
1854
|
] }) : u;
|
|
1896
1855
|
})() });
|
|
1897
|
-
return h ? /* @__PURE__ */ l(U1, { text: h, placement: C, fill: i, children:
|
|
1856
|
+
return h ? /* @__PURE__ */ l(U1, { text: h, placement: C, fill: i, children: w ? /* @__PURE__ */ l("span", { className: `inline-flex cursor-not-allowed${i ? " w-full" : ""}`, children: V }) : V }) : V;
|
|
1898
1857
|
}
|
|
1899
1858
|
);
|
|
1900
1859
|
ne.displayName = "Button";
|
|
@@ -2069,24 +2028,24 @@ ${C}` : C;
|
|
|
2069
2028
|
if (!(t = n.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
2070
2029
|
h = t[0], e = e.substring(h.length);
|
|
2071
2030
|
let p = t[2].split(`
|
|
2072
|
-
`, 1)[0].replace(this.rules.other.listReplaceTabs, (
|
|
2031
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (w) => " ".repeat(3 * w.length)), u = e.split(`
|
|
2073
2032
|
`, 1)[0], m = !p.trim(), b = 0;
|
|
2074
2033
|
if (this.options.pedantic ? (b = 2, C = p.trimStart()) : m ? b = t[1].length + 1 : (b = t[2].search(this.rules.other.nonSpaceChar), b = b > 4 ? 1 : b, C = p.slice(b), b += t[1].length), m && this.rules.other.blankLine.test(u) && (h += u + `
|
|
2075
2034
|
`, e = e.substring(u.length + 1), d = !0), !d) {
|
|
2076
|
-
let
|
|
2035
|
+
let w = this.rules.other.nextBulletRegex(b), y = this.rules.other.hrRegex(b), S = this.rules.other.fencesBeginRegex(b), V = this.rules.other.headingBeginRegex(b), D = this.rules.other.htmlBeginRegex(b);
|
|
2077
2036
|
for (; e; ) {
|
|
2078
|
-
let
|
|
2079
|
-
`, 1)[0],
|
|
2080
|
-
if (u =
|
|
2081
|
-
if (
|
|
2082
|
-
` +
|
|
2037
|
+
let I = e.split(`
|
|
2038
|
+
`, 1)[0], N;
|
|
2039
|
+
if (u = I, this.options.pedantic ? (u = u.replace(this.rules.other.listReplaceNesting, " "), N = u) : N = u.replace(this.rules.other.tabCharGlobal, " "), S.test(u) || V.test(u) || D.test(u) || w.test(u) || y.test(u)) break;
|
|
2040
|
+
if (N.search(this.rules.other.nonSpaceChar) >= b || !u.trim()) C += `
|
|
2041
|
+
` + N.slice(b);
|
|
2083
2042
|
else {
|
|
2084
|
-
if (m || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 ||
|
|
2043
|
+
if (m || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || S.test(p) || V.test(p) || y.test(p)) break;
|
|
2085
2044
|
C += `
|
|
2086
2045
|
` + u;
|
|
2087
2046
|
}
|
|
2088
|
-
!m && !u.trim() && (m = !0), h +=
|
|
2089
|
-
`, e = e.substring(
|
|
2047
|
+
!m && !u.trim() && (m = !0), h += I + `
|
|
2048
|
+
`, e = e.substring(I.length + 1), p = N.slice(b);
|
|
2090
2049
|
}
|
|
2091
2050
|
}
|
|
2092
2051
|
o.loose || (s ? o.loose = !0 : this.rules.other.doubleBlankLine.test(h) && (s = !0));
|
|
@@ -3355,7 +3314,7 @@ const M2 = ({
|
|
|
3355
3314
|
size: t,
|
|
3356
3315
|
omitMargin: r
|
|
3357
3316
|
}) => ({
|
|
3358
|
-
blockquote: (u) => /* @__PURE__ */
|
|
3317
|
+
blockquote: (u) => /* @__PURE__ */ v(w1, { children: [
|
|
3359
3318
|
/* @__PURE__ */ l("br", {}),
|
|
3360
3319
|
/* @__PURE__ */ l(
|
|
3361
3320
|
"div",
|
|
@@ -3380,7 +3339,7 @@ const M2 = ({
|
|
|
3380
3339
|
`paragraph-${Math.random().toString(36).substr(2, 9)}`
|
|
3381
3340
|
),
|
|
3382
3341
|
codespan: (u) => /* @__PURE__ */ l(M2, { size: t, children: Array.isArray(u) ? u[0] : u }, `paragraph-${Math.random().toString(36).substr(2, 9)}`),
|
|
3383
|
-
heading: (u, m) => /* @__PURE__ */
|
|
3342
|
+
heading: (u, m) => /* @__PURE__ */ v(w1, { children: [
|
|
3384
3343
|
m === 1 ? /* @__PURE__ */ l(I2, { children: Array.isArray(u) ? u[0] : u }, `paragraph-${Math.random().toString(36).substr(2, 9)}`) : /* @__PURE__ */ l(S2, { children: Array.isArray(u) ? u[0] : u }, `paragraph-${Math.random().toString(36).substr(2, 9)}`),
|
|
3385
3344
|
/* @__PURE__ */ l("br", {})
|
|
3386
3345
|
] }),
|
|
@@ -3468,8 +3427,8 @@ const M2 = ({
|
|
|
3468
3427
|
onToggle: s
|
|
3469
3428
|
}) => {
|
|
3470
3429
|
const i = !!o, [d, h] = H(!1), C = n !== void 0 ? n : d, p = () => {
|
|
3471
|
-
const
|
|
3472
|
-
n === void 0 && h(
|
|
3430
|
+
const w = !C;
|
|
3431
|
+
n === void 0 && h(w), s == null || s(w);
|
|
3473
3432
|
}, u = {
|
|
3474
3433
|
width: "16px",
|
|
3475
3434
|
height: "16px",
|
|
@@ -3516,9 +3475,9 @@ const M2 = ({
|
|
|
3516
3475
|
i ? "gap-2 px-2.5 py-1" : "gap-2",
|
|
3517
3476
|
i && C ? "rounded-t-[12px]" : i ? "rounded-[12px]" : ""
|
|
3518
3477
|
].filter(Boolean).join(" "), A = ["w-full", "overflow-hidden"].filter(Boolean).join(" ");
|
|
3519
|
-
return i ? /* @__PURE__ */
|
|
3520
|
-
/* @__PURE__ */
|
|
3521
|
-
/* @__PURE__ */
|
|
3478
|
+
return i ? /* @__PURE__ */ v("div", { className: `${b} alert-expandable`, children: [
|
|
3479
|
+
/* @__PURE__ */ v("div", { className: x, children: [
|
|
3480
|
+
/* @__PURE__ */ v("div", { className: "flex-1 flex gap-2 items-center", children: [
|
|
3522
3481
|
m[e],
|
|
3523
3482
|
/* @__PURE__ */ l("div", { className: "flex-1 flex items-center", children: /* @__PURE__ */ l("div", { className: "[&>div]:mb-0", children: /* @__PURE__ */ l(U5, { text: t, type: e }) }) })
|
|
3524
3483
|
] }),
|
|
@@ -3547,7 +3506,7 @@ const M2 = ({
|
|
|
3547
3506
|
) })
|
|
3548
3507
|
] }),
|
|
3549
3508
|
C && /* @__PURE__ */ l(w1, { children: /* @__PURE__ */ l("div", { className: A, children: /* @__PURE__ */ l("div", { className: "bg-white rounded-[10px] shadow-[0px_1px_0px_0px_rgba(0,0,0,0.15)] border border-[#e8e8e8] border-solid mx-2 mb-2 max-h-[553px] overflow-y-auto", children: o }) }) })
|
|
3550
|
-
] }) : /* @__PURE__ */
|
|
3509
|
+
] }) : /* @__PURE__ */ v("div", { className: b, children: [
|
|
3551
3510
|
m[e],
|
|
3552
3511
|
/* @__PURE__ */ l("div", { className: "flex-1 flex items-center", children: /* @__PURE__ */ l("div", { className: "[&>div]:mb-0", children: /* @__PURE__ */ l(U5, { text: t, type: e }) }) })
|
|
3553
3512
|
] });
|
|
@@ -3665,7 +3624,7 @@ const M2 = ({
|
|
|
3665
3624
|
children: m.map((b, x) => /* @__PURE__ */ l(P1.Fragment, { children: b }, x))
|
|
3666
3625
|
}
|
|
3667
3626
|
);
|
|
3668
|
-
},
|
|
3627
|
+
}, Ke = ({
|
|
3669
3628
|
label: e,
|
|
3670
3629
|
hint: t,
|
|
3671
3630
|
tooltip: r,
|
|
@@ -3678,22 +3637,22 @@ const M2 = ({
|
|
|
3678
3637
|
children: h
|
|
3679
3638
|
}) => {
|
|
3680
3639
|
const C = i ? /* @__PURE__ */ l(Q0, { control: i, name: a, children: h }) : h;
|
|
3681
|
-
return /* @__PURE__ */
|
|
3682
|
-
(e ?? t ?? o) && /* @__PURE__ */
|
|
3683
|
-
/* @__PURE__ */
|
|
3684
|
-
/* @__PURE__ */ l(
|
|
3640
|
+
return /* @__PURE__ */ v(be, { direction: "vertical", size: 6, align: "stretch", children: [
|
|
3641
|
+
(e ?? t ?? o) && /* @__PURE__ */ v(be, { direction: "vertical", size: 4, align: "stretch", children: [
|
|
3642
|
+
/* @__PURE__ */ v("div", { className: "flex justify-between items-start", children: [
|
|
3643
|
+
/* @__PURE__ */ l(R0, { text: e, required: n, tooltip: r }),
|
|
3685
3644
|
t && /* @__PURE__ */ l(P0, { text: t })
|
|
3686
3645
|
] }),
|
|
3687
|
-
o && /* @__PURE__ */ l(
|
|
3646
|
+
o && /* @__PURE__ */ l(K0, { text: o })
|
|
3688
3647
|
] }),
|
|
3689
3648
|
s ? d : C
|
|
3690
3649
|
] });
|
|
3691
|
-
}, P0 = ({ text: e }) => /* @__PURE__ */ l(Q1, { size: "xsmall", color: "dimmed", className: "pr-2 relative top-[3px]", children: e }),
|
|
3650
|
+
}, P0 = ({ text: e }) => /* @__PURE__ */ l(Q1, { size: "xsmall", color: "dimmed", className: "pr-2 relative top-[3px]", children: e }), K0 = ({ text: e }) => /* @__PURE__ */ l("div", { className: "pl-2 text-left", children: /* @__PURE__ */ l(v5, { color: "dimmed", size: "small", text: e ?? "", omitMargin: !0 }) }), R0 = ({
|
|
3692
3651
|
text: e,
|
|
3693
3652
|
required: t,
|
|
3694
3653
|
tooltip: r
|
|
3695
|
-
}) => e ? /* @__PURE__ */
|
|
3696
|
-
/* @__PURE__ */
|
|
3654
|
+
}) => e ? /* @__PURE__ */ v("div", { className: "flex items-center", children: [
|
|
3655
|
+
/* @__PURE__ */ v(Q1, { size: "xsmall", color: "primary", fontWeight: "semi-bold", className: "pl-2", children: [
|
|
3697
3656
|
e,
|
|
3698
3657
|
!t && /* @__PURE__ */ l(Q1, { size: "xsmall", color: "dimmed", className: "ml-1", children: "(Optional)" })
|
|
3699
3658
|
] }),
|
|
@@ -3756,19 +3715,19 @@ const M2 = ({
|
|
|
3756
3715
|
glassFooter: b = !1,
|
|
3757
3716
|
className: x = "",
|
|
3758
3717
|
style: A = {},
|
|
3759
|
-
headerConfig:
|
|
3718
|
+
headerConfig: w = {}
|
|
3760
3719
|
}) => {
|
|
3761
|
-
const y = U(null), [
|
|
3720
|
+
const y = U(null), [S, V] = H(0);
|
|
3762
3721
|
u1(() => {
|
|
3763
3722
|
if (b && m && y.current) {
|
|
3764
3723
|
const L = new ResizeObserver((a1) => {
|
|
3765
3724
|
for (const $ of a1)
|
|
3766
|
-
|
|
3725
|
+
V($.contentRect.height);
|
|
3767
3726
|
});
|
|
3768
|
-
return L.observe(y.current),
|
|
3727
|
+
return L.observe(y.current), V(y.current.offsetHeight), () => L.disconnect();
|
|
3769
3728
|
}
|
|
3770
3729
|
}, [b, m]);
|
|
3771
|
-
const
|
|
3730
|
+
const I = [
|
|
3772
3731
|
"card-base",
|
|
3773
3732
|
s ? "card-dimmed" : "",
|
|
3774
3733
|
C === "rounded" ? "card-rounded" : "",
|
|
@@ -3776,16 +3735,16 @@ const M2 = ({
|
|
|
3776
3735
|
u ? "flex flex-col" : "",
|
|
3777
3736
|
a === "small" ? "text-sm" : "",
|
|
3778
3737
|
x
|
|
3779
|
-
].filter(Boolean).join(" "),
|
|
3738
|
+
].filter(Boolean).join(" "), N = parseInt(r) || 20, M = {
|
|
3780
3739
|
padding: r,
|
|
3781
3740
|
display: i ? "flex" : void 0,
|
|
3782
3741
|
flexDirection: i,
|
|
3783
3742
|
alignItems: d,
|
|
3784
3743
|
...u && { overflow: "auto", height: "100%" },
|
|
3785
|
-
...b && m &&
|
|
3786
|
-
paddingBottom: `${
|
|
3744
|
+
...b && m && S > 0 && {
|
|
3745
|
+
paddingBottom: `${N + S + 10}px`
|
|
3787
3746
|
}
|
|
3788
|
-
},
|
|
3747
|
+
}, F = {
|
|
3789
3748
|
width: o,
|
|
3790
3749
|
minWidth: n,
|
|
3791
3750
|
alignSelf: p,
|
|
@@ -3795,7 +3754,7 @@ const M2 = ({
|
|
|
3795
3754
|
overflow: "hidden",
|
|
3796
3755
|
...A
|
|
3797
3756
|
};
|
|
3798
|
-
return /* @__PURE__ */
|
|
3757
|
+
return /* @__PURE__ */ v("div", { className: I, style: F, children: [
|
|
3799
3758
|
e && /* @__PURE__ */ l(
|
|
3800
3759
|
"div",
|
|
3801
3760
|
{
|
|
@@ -3804,7 +3763,7 @@ const M2 = ({
|
|
|
3804
3763
|
marginBottom: "1px",
|
|
3805
3764
|
fontSize: a === "small" ? "12px" : "13px",
|
|
3806
3765
|
fontWeight: "normal",
|
|
3807
|
-
padding:
|
|
3766
|
+
padding: w == null ? void 0 : w.padding
|
|
3808
3767
|
},
|
|
3809
3768
|
children: /* @__PURE__ */ l("div", { className: "font-normal overflow-visible", children: e })
|
|
3810
3769
|
}
|
|
@@ -3814,7 +3773,7 @@ const M2 = ({
|
|
|
3814
3773
|
{
|
|
3815
3774
|
className: "flex-1",
|
|
3816
3775
|
style: {
|
|
3817
|
-
...
|
|
3776
|
+
...M,
|
|
3818
3777
|
...b && m && { position: "relative" }
|
|
3819
3778
|
},
|
|
3820
3779
|
children: t
|
|
@@ -3869,8 +3828,8 @@ const M2 = ({
|
|
|
3869
3828
|
color: "#fff",
|
|
3870
3829
|
opacity: a ? 0.5 : 1,
|
|
3871
3830
|
transition: "background-color 150ms ease, border-color 150ms ease"
|
|
3872
|
-
}, x = /* @__PURE__ */
|
|
3873
|
-
C && /* @__PURE__ */
|
|
3831
|
+
}, x = /* @__PURE__ */ v(w1, { children: [
|
|
3832
|
+
C && /* @__PURE__ */ v(
|
|
3874
3833
|
"svg",
|
|
3875
3834
|
{
|
|
3876
3835
|
width: Math.round(o * 0.78),
|
|
@@ -3964,8 +3923,8 @@ const M2 = ({
|
|
|
3964
3923
|
color: e.background ? "#fff" : "var(--malachite-text-primary)"
|
|
3965
3924
|
}), ia = ({ from: e, to: t, className: r = "" }) => {
|
|
3966
3925
|
const a = !!(e.label || t.label);
|
|
3967
|
-
return /* @__PURE__ */
|
|
3968
|
-
/* @__PURE__ */
|
|
3926
|
+
return /* @__PURE__ */ v("div", { className: `flex flex-col items-center gap-[12px] ${r}`, children: [
|
|
3927
|
+
/* @__PURE__ */ v("div", { className: "flex items-center justify-center", children: [
|
|
3969
3928
|
/* @__PURE__ */ l(
|
|
3970
3929
|
"div",
|
|
3971
3930
|
{
|
|
@@ -3993,7 +3952,7 @@ const M2 = ({
|
|
|
3993
3952
|
}
|
|
3994
3953
|
)
|
|
3995
3954
|
] }),
|
|
3996
|
-
a && /* @__PURE__ */
|
|
3955
|
+
a && /* @__PURE__ */ v("div", { className: "flex items-center gap-[8px] text-[13px] font-medium text-[var(--malachite-text-secondary)]", children: [
|
|
3997
3956
|
e.label && /* @__PURE__ */ l("span", { children: e.label }),
|
|
3998
3957
|
e.label && t.label && /* @__PURE__ */ l("span", { className: "text-[var(--malachite-text-placeholder)]", children: "→" }),
|
|
3999
3958
|
t.label && /* @__PURE__ */ l("span", { children: t.label })
|
|
@@ -4042,7 +4001,7 @@ var L2 = (e) => {
|
|
|
4042
4001
|
});
|
|
4043
4002
|
};
|
|
4044
4003
|
L2.displayName = "JVR.ShowTools";
|
|
4045
|
-
var D2 = {}, Q2 = /* @__PURE__ */ I1(D2), j0 = (e, t) => f({}, e, t),
|
|
4004
|
+
var D2 = {}, Q2 = /* @__PURE__ */ I1(D2), j0 = (e, t) => f({}, e, t), Re = () => N1(Q2), y5 = /* @__PURE__ */ I1(() => {
|
|
4046
4005
|
});
|
|
4047
4006
|
y5.displayName = "JVR.DispatchExpands";
|
|
4048
4007
|
function q0() {
|
|
@@ -4066,7 +4025,7 @@ var P2 = (e) => {
|
|
|
4066
4025
|
});
|
|
4067
4026
|
};
|
|
4068
4027
|
P2.displayName = "JVR.Expands";
|
|
4069
|
-
var
|
|
4028
|
+
var K2 = {
|
|
4070
4029
|
Str: {
|
|
4071
4030
|
as: "span",
|
|
4072
4031
|
"data-type": "string",
|
|
@@ -4186,11 +4145,11 @@ var R2 = {
|
|
|
4186
4145
|
className: "w-rjv-type",
|
|
4187
4146
|
children: "date"
|
|
4188
4147
|
}
|
|
4189
|
-
},
|
|
4148
|
+
}, R2 = /* @__PURE__ */ I1(K2), U0 = (e, t) => f({}, e, t), i1 = () => N1(R2), A5 = /* @__PURE__ */ I1(() => {
|
|
4190
4149
|
});
|
|
4191
4150
|
A5.displayName = "JVR.DispatchTypes";
|
|
4192
4151
|
function O0() {
|
|
4193
|
-
return ae(U0,
|
|
4152
|
+
return ae(U0, K2);
|
|
4194
4153
|
}
|
|
4195
4154
|
function X0() {
|
|
4196
4155
|
return N1(A5);
|
|
@@ -4201,7 +4160,7 @@ function W2(e) {
|
|
|
4201
4160
|
dispatch: r,
|
|
4202
4161
|
children: a
|
|
4203
4162
|
} = e;
|
|
4204
|
-
return /* @__PURE__ */ l(
|
|
4163
|
+
return /* @__PURE__ */ l(R2.Provider, {
|
|
4205
4164
|
value: t,
|
|
4206
4165
|
children: /* @__PURE__ */ l(A5.Provider, {
|
|
4207
4166
|
value: r,
|
|
@@ -4498,7 +4457,7 @@ z2.displayName = "JVR.Colon";
|
|
|
4498
4457
|
var $2 = (e) => {
|
|
4499
4458
|
var {
|
|
4500
4459
|
Arrow: t = {}
|
|
4501
|
-
} = E1(), r =
|
|
4460
|
+
} = E1(), r = Re(), {
|
|
4502
4461
|
expandKey: a,
|
|
4503
4462
|
style: o,
|
|
4504
4463
|
value: n,
|
|
@@ -4512,12 +4471,12 @@ var $2 = (e) => {
|
|
|
4512
4471
|
} = t, m = Y(t, d4), b = C || "span", x = u && typeof u == "function", A = f({}, m, {
|
|
4513
4472
|
"data-expanded": h,
|
|
4514
4473
|
style: f({}, p, o)
|
|
4515
|
-
}),
|
|
4474
|
+
}), w = {
|
|
4516
4475
|
value: n,
|
|
4517
4476
|
parentValue: s,
|
|
4518
4477
|
keyName: i,
|
|
4519
4478
|
keys: d || (i ? [i] : [])
|
|
4520
|
-
}, y = x && u(A,
|
|
4479
|
+
}, y = x && u(A, w);
|
|
4521
4480
|
return y || /* @__PURE__ */ l(b, f({}, m, {
|
|
4522
4481
|
style: f({}, p, o)
|
|
4523
4482
|
}));
|
|
@@ -4549,8 +4508,8 @@ var _2 = (e) => {
|
|
|
4549
4508
|
var {
|
|
4550
4509
|
as: b,
|
|
4551
4510
|
render: x
|
|
4552
|
-
} = i, A = Y(i, C4),
|
|
4553
|
-
return y || /* @__PURE__ */ l(
|
|
4511
|
+
} = i, A = Y(i, C4), w = b || "span", y = x && typeof x == "function" && x(A, d);
|
|
4512
|
+
return y || /* @__PURE__ */ l(w, f({}, A));
|
|
4554
4513
|
};
|
|
4555
4514
|
_2.displayName = "JVR.BracketsOpen";
|
|
4556
4515
|
var V5 = (e) => {
|
|
@@ -4582,8 +4541,8 @@ var V5 = (e) => {
|
|
|
4582
4541
|
var {
|
|
4583
4542
|
as: x,
|
|
4584
4543
|
render: A
|
|
4585
|
-
} = h,
|
|
4586
|
-
return
|
|
4544
|
+
} = h, w = Y(h, p4), y = x || "span", S = A && typeof A == "function" && A(w, i);
|
|
4545
|
+
return S || /* @__PURE__ */ l(y, f({}, w));
|
|
4587
4546
|
};
|
|
4588
4547
|
V5.displayName = "JVR.BracketsClose";
|
|
4589
4548
|
var et = (e) => {
|
|
@@ -4594,7 +4553,7 @@ var et = (e) => {
|
|
|
4594
4553
|
parentValue: n,
|
|
4595
4554
|
level: s,
|
|
4596
4555
|
keys: i = []
|
|
4597
|
-
} = e, d =
|
|
4556
|
+
} = e, d = Re(), {
|
|
4598
4557
|
collapsed: h,
|
|
4599
4558
|
shouldExpandNodeInitially: C
|
|
4600
4559
|
} = $1(), p = typeof h == "boolean" ? h : typeof h == "number" ? s > h : !1, u = (t = d[o]) != null ? t : p, m = C && C(u, {
|
|
@@ -4616,11 +4575,11 @@ var et = (e) => {
|
|
|
4616
4575
|
value: a,
|
|
4617
4576
|
keys: i,
|
|
4618
4577
|
parentValue: n
|
|
4619
|
-
},
|
|
4578
|
+
}, w = Array.isArray(a), y = a instanceof Set;
|
|
4620
4579
|
return /* @__PURE__ */ l("div", {
|
|
4621
4580
|
style: x,
|
|
4622
4581
|
children: /* @__PURE__ */ l(V5, f({
|
|
4623
|
-
isBrackets:
|
|
4582
|
+
isBrackets: w || y
|
|
4624
4583
|
}, A, {
|
|
4625
4584
|
isVisiable: !0
|
|
4626
4585
|
}))
|
|
@@ -4706,28 +4665,28 @@ var L1 = {
|
|
|
4706
4665
|
}), p.length > s && (C.onClick = () => {
|
|
4707
4666
|
m(!u);
|
|
4708
4667
|
}));
|
|
4709
|
-
var A = u ? "" + p.slice(0, s) + i : p,
|
|
4668
|
+
var A = u ? "" + p.slice(0, s) + i : p, w = h && typeof h == "function", y = w && h(f({}, C, {
|
|
4710
4669
|
style: x
|
|
4711
4670
|
}), {
|
|
4712
4671
|
type: "type",
|
|
4713
4672
|
value: t,
|
|
4714
4673
|
keyName: r,
|
|
4715
4674
|
keys: a
|
|
4716
|
-
}),
|
|
4675
|
+
}), S = u ? "w-rjv-value w-rjv-value-short" : "w-rjv-value", V = w && h(f({}, C, {
|
|
4717
4676
|
children: A,
|
|
4718
|
-
className:
|
|
4677
|
+
className: S
|
|
4719
4678
|
}), {
|
|
4720
4679
|
type: "value",
|
|
4721
4680
|
value: t,
|
|
4722
4681
|
keyName: r,
|
|
4723
4682
|
keys: a
|
|
4724
4683
|
});
|
|
4725
|
-
return /* @__PURE__ */
|
|
4684
|
+
return /* @__PURE__ */ v(k1, {
|
|
4726
4685
|
children: [n && (y || /* @__PURE__ */ l(b, f({}, C, {
|
|
4727
4686
|
style: x
|
|
4728
|
-
}))),
|
|
4687
|
+
}))), V || /* @__PURE__ */ v(k1, {
|
|
4729
4688
|
children: [/* @__PURE__ */ l(ve, {}), /* @__PURE__ */ l(b, f({}, C, {
|
|
4730
|
-
className:
|
|
4689
|
+
className: S,
|
|
4731
4690
|
children: A
|
|
4732
4691
|
})), /* @__PURE__ */ l(ve, {})]
|
|
4733
4692
|
})]
|
|
@@ -4761,7 +4720,7 @@ var ot = (e) => {
|
|
|
4761
4720
|
keyName: r,
|
|
4762
4721
|
keys: a
|
|
4763
4722
|
});
|
|
4764
|
-
return /* @__PURE__ */
|
|
4723
|
+
return /* @__PURE__ */ v(k1, {
|
|
4765
4724
|
children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
|
|
4766
4725
|
style: C
|
|
4767
4726
|
}))), m || /* @__PURE__ */ l(h, f({}, d, {
|
|
@@ -4798,7 +4757,7 @@ var lt = (e) => {
|
|
|
4798
4757
|
keyName: r,
|
|
4799
4758
|
keys: a
|
|
4800
4759
|
});
|
|
4801
|
-
return /* @__PURE__ */
|
|
4760
|
+
return /* @__PURE__ */ v(k1, {
|
|
4802
4761
|
children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
|
|
4803
4762
|
style: C
|
|
4804
4763
|
}))), m || /* @__PURE__ */ l(h, f({}, d, {
|
|
@@ -4835,7 +4794,7 @@ var nt = (e) => {
|
|
|
4835
4794
|
keyName: r,
|
|
4836
4795
|
keys: a
|
|
4837
4796
|
});
|
|
4838
|
-
return /* @__PURE__ */
|
|
4797
|
+
return /* @__PURE__ */ v(k1, {
|
|
4839
4798
|
children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
|
|
4840
4799
|
style: C
|
|
4841
4800
|
}))), m || /* @__PURE__ */ l(h, f({}, d, {
|
|
@@ -4872,7 +4831,7 @@ var it = (e) => {
|
|
|
4872
4831
|
keyName: r,
|
|
4873
4832
|
keys: a
|
|
4874
4833
|
});
|
|
4875
|
-
return /* @__PURE__ */
|
|
4834
|
+
return /* @__PURE__ */ v(k1, {
|
|
4876
4835
|
children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
|
|
4877
4836
|
style: C
|
|
4878
4837
|
}))), m || /* @__PURE__ */ l(h, f({}, d, {
|
|
@@ -4909,7 +4868,7 @@ var ct = (e) => {
|
|
|
4909
4868
|
keyName: r,
|
|
4910
4869
|
keys: a
|
|
4911
4870
|
});
|
|
4912
|
-
return /* @__PURE__ */
|
|
4871
|
+
return /* @__PURE__ */ v(k1, {
|
|
4913
4872
|
children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
|
|
4914
4873
|
style: C
|
|
4915
4874
|
}))), m || /* @__PURE__ */ l(h, f({}, d, {
|
|
@@ -4946,10 +4905,10 @@ var st = (e) => {
|
|
|
4946
4905
|
keyName: r,
|
|
4947
4906
|
keys: a
|
|
4948
4907
|
});
|
|
4949
|
-
return /* @__PURE__ */
|
|
4908
|
+
return /* @__PURE__ */ v(k1, {
|
|
4950
4909
|
children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
|
|
4951
4910
|
style: C
|
|
4952
|
-
}))), m || /* @__PURE__ */
|
|
4911
|
+
}))), m || /* @__PURE__ */ v("a", f({
|
|
4953
4912
|
href: t == null ? void 0 : t.href,
|
|
4954
4913
|
target: "_blank"
|
|
4955
4914
|
}, d, {
|
|
@@ -4986,7 +4945,7 @@ var dt = (e) => {
|
|
|
4986
4945
|
keyName: r,
|
|
4987
4946
|
keys: a
|
|
4988
4947
|
});
|
|
4989
|
-
return /* @__PURE__ */
|
|
4948
|
+
return /* @__PURE__ */ v(k1, {
|
|
4990
4949
|
children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
|
|
4991
4950
|
style: C
|
|
4992
4951
|
}))), b || /* @__PURE__ */ l(h, f({}, d, {
|
|
@@ -5023,7 +4982,7 @@ var ht = (e) => {
|
|
|
5023
4982
|
keyName: r,
|
|
5024
4983
|
keys: a
|
|
5025
4984
|
});
|
|
5026
|
-
return /* @__PURE__ */
|
|
4985
|
+
return /* @__PURE__ */ v(k1, {
|
|
5027
4986
|
children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
|
|
5028
4987
|
style: C
|
|
5029
4988
|
}))), m]
|
|
@@ -5057,7 +5016,7 @@ var Ct = (e) => {
|
|
|
5057
5016
|
keyName: r,
|
|
5058
5017
|
keys: a
|
|
5059
5018
|
});
|
|
5060
|
-
return /* @__PURE__ */
|
|
5019
|
+
return /* @__PURE__ */ v(k1, {
|
|
5061
5020
|
children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
|
|
5062
5021
|
style: C
|
|
5063
5022
|
}))), m]
|
|
@@ -5091,7 +5050,7 @@ var ut = (e) => {
|
|
|
5091
5050
|
keyName: r,
|
|
5092
5051
|
keys: a
|
|
5093
5052
|
});
|
|
5094
|
-
return /* @__PURE__ */
|
|
5053
|
+
return /* @__PURE__ */ v(k1, {
|
|
5095
5054
|
children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
|
|
5096
5055
|
style: C
|
|
5097
5056
|
}))), m]
|
|
@@ -5279,23 +5238,23 @@ var L4 = ["keyName", "value", "parentValue", "expandKey", "keys"], D4 = ["as", "
|
|
|
5279
5238
|
Copied: m = {}
|
|
5280
5239
|
} = S1();
|
|
5281
5240
|
if (d === !1 || !C) return null;
|
|
5282
|
-
var b = (
|
|
5283
|
-
|
|
5284
|
-
var
|
|
5285
|
-
typeof r == "number" && r === 1 / 0 ?
|
|
5286
|
-
var
|
|
5287
|
-
writeText(
|
|
5288
|
-
return new Promise((
|
|
5241
|
+
var b = (D) => {
|
|
5242
|
+
D.stopPropagation();
|
|
5243
|
+
var I = "";
|
|
5244
|
+
typeof r == "number" && r === 1 / 0 ? I = "Infinity" : typeof r == "number" && isNaN(r) ? I = "NaN" : typeof r == "bigint" ? I = l5(r) : r instanceof Date ? I = r.toLocaleString() : I = JSON.stringify(r, (Z, M) => typeof M == "bigint" ? l5(M) : M, 2), i && i(I, r), u(!0);
|
|
5245
|
+
var N = navigator.clipboard || {
|
|
5246
|
+
writeText(Z) {
|
|
5247
|
+
return new Promise((M, F) => {
|
|
5289
5248
|
var L = document.createElement("textarea");
|
|
5290
|
-
L.style.position = "absolute", L.style.opacity = "0", L.style.left = "-99999999px", L.value =
|
|
5249
|
+
L.style.position = "absolute", L.style.opacity = "0", L.style.left = "-99999999px", L.value = Z, document.body.appendChild(L), L.select(), document.execCommand("copy") ? M() : F(), L.remove();
|
|
5291
5250
|
});
|
|
5292
5251
|
}
|
|
5293
5252
|
};
|
|
5294
|
-
|
|
5295
|
-
var
|
|
5296
|
-
u(!1), clearTimeout(
|
|
5253
|
+
N.writeText(I).then(() => {
|
|
5254
|
+
var Z = setTimeout(() => {
|
|
5255
|
+
u(!1), clearTimeout(Z);
|
|
5297
5256
|
}, 3e3);
|
|
5298
|
-
}).catch((
|
|
5257
|
+
}).catch((Z) => {
|
|
5299
5258
|
});
|
|
5300
5259
|
}, x = {
|
|
5301
5260
|
style: {
|
|
@@ -5305,9 +5264,9 @@ var L4 = ["keyName", "value", "parentValue", "expandKey", "keys"], D4 = ["as", "
|
|
|
5305
5264
|
onClick: b
|
|
5306
5265
|
}, {
|
|
5307
5266
|
render: A
|
|
5308
|
-
} = m,
|
|
5309
|
-
style: f({},
|
|
5310
|
-
}),
|
|
5267
|
+
} = m, w = Y(m, D4), y = f({}, w, s, x, {
|
|
5268
|
+
style: f({}, w.style, s.style, x.style)
|
|
5269
|
+
}), S = A && typeof A == "function", V = S && A(f({}, y, {
|
|
5311
5270
|
"data-copied": p
|
|
5312
5271
|
}), {
|
|
5313
5272
|
value: r,
|
|
@@ -5315,7 +5274,7 @@ var L4 = ["keyName", "value", "parentValue", "expandKey", "keys"], D4 = ["as", "
|
|
|
5315
5274
|
keys: n,
|
|
5316
5275
|
parentValue: a
|
|
5317
5276
|
});
|
|
5318
|
-
return
|
|
5277
|
+
return V || (p ? /* @__PURE__ */ l("svg", f({
|
|
5319
5278
|
viewBox: "0 0 32 36"
|
|
5320
5279
|
}, y, {
|
|
5321
5280
|
children: /* @__PURE__ */ l("path", {
|
|
@@ -5342,7 +5301,7 @@ var vt = (e) => {
|
|
|
5342
5301
|
level: n,
|
|
5343
5302
|
keys: s = [],
|
|
5344
5303
|
parentValue: i
|
|
5345
|
-
} = e, d =
|
|
5304
|
+
} = e, d = Re(), {
|
|
5346
5305
|
objectSortKeys: h,
|
|
5347
5306
|
indentWidth: C,
|
|
5348
5307
|
collapsed: p,
|
|
@@ -5356,13 +5315,13 @@ var vt = (e) => {
|
|
|
5356
5315
|
});
|
|
5357
5316
|
if (d[o] === void 0 && x || b)
|
|
5358
5317
|
return null;
|
|
5359
|
-
var A = Array.isArray(a),
|
|
5360
|
-
h && (
|
|
5361
|
-
var [
|
|
5362
|
-
return typeof
|
|
5363
|
-
}) :
|
|
5364
|
-
var [
|
|
5365
|
-
return typeof
|
|
5318
|
+
var A = Array.isArray(a), w = A ? Object.entries(a).map((S) => [Number(S[0]), S[1]]) : Object.entries(a);
|
|
5319
|
+
h && (w = h === !0 ? w.sort((S, V) => {
|
|
5320
|
+
var [D] = S, [I] = V;
|
|
5321
|
+
return typeof D == "string" && typeof I == "string" ? D.localeCompare(I) : 0;
|
|
5322
|
+
}) : w.sort((S, V) => {
|
|
5323
|
+
var [D, I] = S, [N, Z] = V;
|
|
5324
|
+
return typeof D == "string" && typeof N == "string" ? h(D, N, I, Z) : 0;
|
|
5366
5325
|
}));
|
|
5367
5326
|
var y = {
|
|
5368
5327
|
borderLeft: "var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",
|
|
@@ -5372,15 +5331,15 @@ var vt = (e) => {
|
|
|
5372
5331
|
return /* @__PURE__ */ l("div", {
|
|
5373
5332
|
className: "w-rjv-wrap",
|
|
5374
5333
|
style: y,
|
|
5375
|
-
children:
|
|
5376
|
-
var [
|
|
5334
|
+
children: w.map((S, V) => {
|
|
5335
|
+
var [D, I] = S;
|
|
5377
5336
|
return /* @__PURE__ */ l(xt, {
|
|
5378
5337
|
parentValue: a,
|
|
5379
|
-
keyName:
|
|
5380
|
-
keys: [...s,
|
|
5381
|
-
value:
|
|
5338
|
+
keyName: D,
|
|
5339
|
+
keys: [...s, D],
|
|
5340
|
+
value: I,
|
|
5382
5341
|
level: n
|
|
5383
|
-
},
|
|
5342
|
+
}, V);
|
|
5384
5343
|
})
|
|
5385
5344
|
});
|
|
5386
5345
|
};
|
|
@@ -5405,8 +5364,8 @@ var I5 = (e) => {
|
|
|
5405
5364
|
keys: a,
|
|
5406
5365
|
parentValue: r
|
|
5407
5366
|
};
|
|
5408
|
-
return /* @__PURE__ */
|
|
5409
|
-
children: [/* @__PURE__ */
|
|
5367
|
+
return /* @__PURE__ */ v(k1, {
|
|
5368
|
+
children: [/* @__PURE__ */ v("span", {
|
|
5410
5369
|
ref: i,
|
|
5411
5370
|
children: [/* @__PURE__ */ l(o5, f({
|
|
5412
5371
|
isNumber: s,
|
|
@@ -5448,7 +5407,7 @@ var xt = (e) => {
|
|
|
5448
5407
|
[i]: !1
|
|
5449
5408
|
})
|
|
5450
5409
|
};
|
|
5451
|
-
return /* @__PURE__ */
|
|
5410
|
+
return /* @__PURE__ */ v(ft, f({
|
|
5452
5411
|
className: "w-rjv-line",
|
|
5453
5412
|
value: r,
|
|
5454
5413
|
keyName: t,
|
|
@@ -5499,7 +5458,7 @@ var At = (e) => {
|
|
|
5499
5458
|
return p || /* @__PURE__ */ l(d, f({}, C));
|
|
5500
5459
|
};
|
|
5501
5460
|
At.displayName = "JVR.CountInfoExtraComps";
|
|
5502
|
-
var
|
|
5461
|
+
var K4 = ["value", "keyName"], R4 = ["as", "render"], kt = (e) => {
|
|
5503
5462
|
var {
|
|
5504
5463
|
CountInfo: t = {}
|
|
5505
5464
|
} = S1();
|
|
@@ -5510,7 +5469,7 @@ var Et = (e) => {
|
|
|
5510
5469
|
var {
|
|
5511
5470
|
value: t = {},
|
|
5512
5471
|
keyName: r
|
|
5513
|
-
} = e, a = Y(e,
|
|
5472
|
+
} = e, a = Y(e, K4), {
|
|
5514
5473
|
displayObjectSize: o
|
|
5515
5474
|
} = $1(), {
|
|
5516
5475
|
CountInfo: n = {}
|
|
@@ -5519,7 +5478,7 @@ var Et = (e) => {
|
|
|
5519
5478
|
var {
|
|
5520
5479
|
as: s,
|
|
5521
5480
|
render: i
|
|
5522
|
-
} = n, d = Y(n,
|
|
5481
|
+
} = n, d = Y(n, R4), h = s || "span";
|
|
5523
5482
|
d.style = f({}, d.style, e.style);
|
|
5524
5483
|
var C = Object.keys(t).length;
|
|
5525
5484
|
d.children || (d.children = C + " item" + (C === 1 ? "" : "s"));
|
|
@@ -5567,7 +5526,7 @@ var Mt = (e) => {
|
|
|
5567
5526
|
value: s,
|
|
5568
5527
|
parentValue: i,
|
|
5569
5528
|
level: d
|
|
5570
|
-
} = e, h =
|
|
5529
|
+
} = e, h = Re(), C = J0(), {
|
|
5571
5530
|
onExpand: p,
|
|
5572
5531
|
collapsed: u,
|
|
5573
5532
|
shouldExpandNodeInitially: m
|
|
@@ -5579,7 +5538,7 @@ var Mt = (e) => {
|
|
|
5579
5538
|
parentValue: i
|
|
5580
5539
|
});
|
|
5581
5540
|
h[a] === void 0 && m && (x = !!A);
|
|
5582
|
-
var
|
|
5541
|
+
var w = () => {
|
|
5583
5542
|
var L = {
|
|
5584
5543
|
expand: !x,
|
|
5585
5544
|
value: s,
|
|
@@ -5592,39 +5551,39 @@ var Mt = (e) => {
|
|
|
5592
5551
|
}, y = {
|
|
5593
5552
|
display: "inline-flex",
|
|
5594
5553
|
alignItems: "center"
|
|
5595
|
-
},
|
|
5554
|
+
}, S = {
|
|
5596
5555
|
transform: "rotate(" + (x ? "-90" : "0") + "deg)",
|
|
5597
5556
|
transition: "all 0.3s"
|
|
5598
|
-
},
|
|
5557
|
+
}, V = Object.keys(s).length, D = typeof s == "object", I = Array.isArray(s), N = s instanceof Set, Z = V !== 0 && (I || N || D), M = {
|
|
5599
5558
|
style: y
|
|
5600
5559
|
};
|
|
5601
|
-
|
|
5602
|
-
var
|
|
5560
|
+
Z && (M.onClick = w);
|
|
5561
|
+
var F = {
|
|
5603
5562
|
keyName: r,
|
|
5604
5563
|
value: s,
|
|
5605
5564
|
keys: o,
|
|
5606
5565
|
parentValue: i
|
|
5607
5566
|
};
|
|
5608
|
-
return /* @__PURE__ */
|
|
5609
|
-
children: [
|
|
5610
|
-
style:
|
|
5567
|
+
return /* @__PURE__ */ v("span", f({}, M, {
|
|
5568
|
+
children: [Z && /* @__PURE__ */ l($2, f({
|
|
5569
|
+
style: S,
|
|
5611
5570
|
expandKey: a
|
|
5612
|
-
},
|
|
5571
|
+
}, F)), (r || typeof r == "number") && /* @__PURE__ */ l(I5, f({}, F)), /* @__PURE__ */ l(tt, {
|
|
5613
5572
|
value: n,
|
|
5614
5573
|
keyName: r
|
|
5615
5574
|
}), /* @__PURE__ */ l(rt, {
|
|
5616
5575
|
value: n,
|
|
5617
5576
|
keyName: r
|
|
5618
5577
|
}), /* @__PURE__ */ l(_2, f({
|
|
5619
|
-
isBrackets:
|
|
5620
|
-
},
|
|
5578
|
+
isBrackets: I || N
|
|
5579
|
+
}, F)), /* @__PURE__ */ l(Vt, {
|
|
5621
5580
|
keyName: r,
|
|
5622
5581
|
value: s,
|
|
5623
5582
|
isExpanded: x
|
|
5624
5583
|
}), /* @__PURE__ */ l(V5, f({
|
|
5625
|
-
isVisiable: x || !
|
|
5626
|
-
isBrackets:
|
|
5627
|
-
},
|
|
5584
|
+
isVisiable: x || !Z,
|
|
5585
|
+
isBrackets: I || N
|
|
5586
|
+
}, F)), /* @__PURE__ */ l(Et, {
|
|
5628
5587
|
value: s,
|
|
5629
5588
|
keyName: r
|
|
5630
5589
|
}), /* @__PURE__ */ l(At, {
|
|
@@ -5657,7 +5616,7 @@ var G4 = ["className", "children", "parentValue", "keyid", "level", "value", "in
|
|
|
5657
5616
|
[p]: !1
|
|
5658
5617
|
})
|
|
5659
5618
|
};
|
|
5660
|
-
return /* @__PURE__ */
|
|
5619
|
+
return /* @__PURE__ */ v("div", f({
|
|
5661
5620
|
className: u,
|
|
5662
5621
|
ref: t
|
|
5663
5622
|
}, h, m, {
|
|
@@ -5750,20 +5709,20 @@ var Pt = (e) => {
|
|
|
5750
5709
|
return V1(t, e, "Bigint"), null;
|
|
5751
5710
|
};
|
|
5752
5711
|
Pt.displayName = "JVR.Bigint";
|
|
5753
|
-
var
|
|
5712
|
+
var Kt = (e) => {
|
|
5754
5713
|
var {
|
|
5755
5714
|
Date: t = {}
|
|
5756
5715
|
} = i1();
|
|
5757
5716
|
return V1(t, e, "Date"), null;
|
|
5758
5717
|
};
|
|
5759
|
-
|
|
5760
|
-
var
|
|
5718
|
+
Kt.displayName = "JVR.Date";
|
|
5719
|
+
var Rt = (e) => {
|
|
5761
5720
|
var {
|
|
5762
5721
|
False: t = {}
|
|
5763
5722
|
} = i1();
|
|
5764
5723
|
return V1(t, e, "False"), null;
|
|
5765
5724
|
};
|
|
5766
|
-
|
|
5725
|
+
Rt.displayName = "JVR.False";
|
|
5767
5726
|
var Wt = (e) => {
|
|
5768
5727
|
var {
|
|
5769
5728
|
Float: t = {}
|
|
@@ -5858,15 +5817,15 @@ var T4 = ["className", "style", "value", "children", "collapsed", "shouldExpandN
|
|
|
5858
5817
|
displayDataTypes: b = !0,
|
|
5859
5818
|
objectSortKeys: x = !1,
|
|
5860
5819
|
onExpand: A,
|
|
5861
|
-
onCopied:
|
|
5862
|
-
} = e, y = Y(e, T4),
|
|
5820
|
+
onCopied: w
|
|
5821
|
+
} = e, y = Y(e, T4), S = f({
|
|
5863
5822
|
lineHeight: 1.4,
|
|
5864
5823
|
fontFamily: "var(--w-rjv-font-family, Menlo, monospace)",
|
|
5865
5824
|
color: "var(--w-rjv-color, #002b36)",
|
|
5866
5825
|
backgroundColor: "var(--w-rjv-background-color, #00000000)",
|
|
5867
5826
|
fontSize: 13
|
|
5868
|
-
}, a),
|
|
5869
|
-
return /* @__PURE__ */
|
|
5827
|
+
}, a), V = ["w-json-view-container", "w-rjv", r].filter(Boolean).join(" ");
|
|
5828
|
+
return /* @__PURE__ */ v(X2, {
|
|
5870
5829
|
initialState: {
|
|
5871
5830
|
value: o,
|
|
5872
5831
|
objectSortKeys: x,
|
|
@@ -5878,7 +5837,7 @@ var T4 = ["className", "style", "value", "children", "collapsed", "shouldExpandN
|
|
|
5878
5837
|
shortenTextAfterLength: C,
|
|
5879
5838
|
stringEllipsis: p,
|
|
5880
5839
|
highlightUpdates: u,
|
|
5881
|
-
onCopied:
|
|
5840
|
+
onCopied: w,
|
|
5882
5841
|
onExpand: A
|
|
5883
5842
|
},
|
|
5884
5843
|
initialTypes: {
|
|
@@ -5888,14 +5847,14 @@ var T4 = ["className", "style", "value", "children", "collapsed", "shouldExpandN
|
|
|
5888
5847
|
value: o
|
|
5889
5848
|
}, y, {
|
|
5890
5849
|
ref: t,
|
|
5891
|
-
className:
|
|
5892
|
-
style:
|
|
5850
|
+
className: V,
|
|
5851
|
+
style: S
|
|
5893
5852
|
})), n]
|
|
5894
5853
|
});
|
|
5895
5854
|
});
|
|
5896
5855
|
z.Bigint = Pt;
|
|
5897
|
-
z.Date =
|
|
5898
|
-
z.False =
|
|
5856
|
+
z.Date = Kt;
|
|
5857
|
+
z.False = Rt;
|
|
5899
5858
|
z.Float = Wt;
|
|
5900
5859
|
z.Int = Gt;
|
|
5901
5860
|
z.Map = Tt;
|
|
@@ -5993,7 +5952,7 @@ const ca = ({
|
|
|
5993
5952
|
`);
|
|
5994
5953
|
return /* @__PURE__ */ l("div", { className: "p-4 overflow-auto text-left", children: d.map((h, C) => {
|
|
5995
5954
|
const p = C + 1;
|
|
5996
|
-
return /* @__PURE__ */
|
|
5955
|
+
return /* @__PURE__ */ v("div", { className: "flex items-start", style: { minHeight: "20px" }, children: [
|
|
5997
5956
|
r && /* @__PURE__ */ l(
|
|
5998
5957
|
"span",
|
|
5999
5958
|
{
|
|
@@ -6025,7 +5984,7 @@ const ca = ({
|
|
|
6025
5984
|
] }, C);
|
|
6026
5985
|
}) });
|
|
6027
5986
|
};
|
|
6028
|
-
return /* @__PURE__ */
|
|
5987
|
+
return /* @__PURE__ */ v(
|
|
6029
5988
|
"div",
|
|
6030
5989
|
{
|
|
6031
5990
|
className: `border rounded-lg overflow-hidden ${a}`,
|
|
@@ -6061,7 +6020,7 @@ const ca = ({
|
|
|
6061
6020
|
]
|
|
6062
6021
|
}
|
|
6063
6022
|
);
|
|
6064
|
-
}, Z5 = ({ size: e = "medium", helperText: t = !1, helperTextMarginTop: r = !1, heightClass: a }) => /* @__PURE__ */
|
|
6023
|
+
}, Z5 = ({ size: e = "medium", helperText: t = !1, helperTextMarginTop: r = !1, heightClass: a }) => /* @__PURE__ */ v("div", { className: "w-full", children: [
|
|
6065
6024
|
/* @__PURE__ */ l(
|
|
6066
6025
|
"div",
|
|
6067
6026
|
{
|
|
@@ -6127,7 +6086,7 @@ const ca = ({
|
|
|
6127
6086
|
{
|
|
6128
6087
|
className: `flex items-center justify-center ${s} ${t}`,
|
|
6129
6088
|
style: r,
|
|
6130
|
-
children: /* @__PURE__ */
|
|
6089
|
+
children: /* @__PURE__ */ v(
|
|
6131
6090
|
"svg",
|
|
6132
6091
|
{
|
|
6133
6092
|
className: `animate-spin ${n}`,
|
|
@@ -6209,7 +6168,7 @@ const X5 = 8, J1 = 8, i5 = {
|
|
|
6209
6168
|
size: C = "medium"
|
|
6210
6169
|
}, p) => {
|
|
6211
6170
|
const u = q4[C], m = $t({ disabled: a, error: o, open: e });
|
|
6212
|
-
return s && !a ? /* @__PURE__ */
|
|
6171
|
+
return s && !a ? /* @__PURE__ */ v(
|
|
6213
6172
|
"div",
|
|
6214
6173
|
{
|
|
6215
6174
|
ref: p,
|
|
@@ -6261,7 +6220,7 @@ const X5 = 8, J1 = 8, i5 = {
|
|
|
6261
6220
|
) })
|
|
6262
6221
|
]
|
|
6263
6222
|
}
|
|
6264
|
-
) : /* @__PURE__ */
|
|
6223
|
+
) : /* @__PURE__ */ v(
|
|
6265
6224
|
"button",
|
|
6266
6225
|
{
|
|
6267
6226
|
ref: p,
|
|
@@ -6281,7 +6240,7 @@ const X5 = 8, J1 = 8, i5 = {
|
|
|
6281
6240
|
disabled:cursor-not-allowed
|
|
6282
6241
|
`,
|
|
6283
6242
|
children: [
|
|
6284
|
-
/* @__PURE__ */ l("div", { className: "text-left flex-1 min-w-0 flex items-center gap-2", children: r ? /* @__PURE__ */
|
|
6243
|
+
/* @__PURE__ */ l("div", { className: "text-left flex-1 min-w-0 flex items-center gap-2", children: r ? /* @__PURE__ */ v(w1, { children: [
|
|
6285
6244
|
r.icon && /* @__PURE__ */ l("span", { className: "flex items-center justify-center shrink-0", children: r.icon }),
|
|
6286
6245
|
/* @__PURE__ */ l(
|
|
6287
6246
|
Q1,
|
|
@@ -6292,7 +6251,7 @@ const X5 = 8, J1 = 8, i5 = {
|
|
|
6292
6251
|
children: r.triggerLabel ?? r.label
|
|
6293
6252
|
}
|
|
6294
6253
|
),
|
|
6295
|
-
r.subtitle && /* @__PURE__ */
|
|
6254
|
+
r.subtitle && /* @__PURE__ */ v(w1, { children: [
|
|
6296
6255
|
/* @__PURE__ */ l(Q1, { size: "small", color: "dimmed", className: "mx-2", children: "|" }),
|
|
6297
6256
|
/* @__PURE__ */ l(Q1, { size: "small", color: "dimmed", children: r.subtitle })
|
|
6298
6257
|
] })
|
|
@@ -6343,8 +6302,8 @@ const J4 = ({ item: e, selected: t, onItemSelected: r }) => {
|
|
|
6343
6302
|
transition: "background-color 120ms ease",
|
|
6344
6303
|
background: n
|
|
6345
6304
|
},
|
|
6346
|
-
children: /* @__PURE__ */
|
|
6347
|
-
/* @__PURE__ */ l("div", { style: { flex: 1 }, children: /* @__PURE__ */
|
|
6305
|
+
children: /* @__PURE__ */ v("div", { style: { flex: 1, display: "flex", alignItems: "center", gap: 12 }, children: [
|
|
6306
|
+
/* @__PURE__ */ l("div", { style: { flex: 1 }, children: /* @__PURE__ */ v("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
6348
6307
|
e.icon && /* @__PURE__ */ l(
|
|
6349
6308
|
"span",
|
|
6350
6309
|
{
|
|
@@ -6373,7 +6332,7 @@ const J4 = ({ item: e, selected: t, onItemSelected: r }) => {
|
|
|
6373
6332
|
children: e.label
|
|
6374
6333
|
}
|
|
6375
6334
|
),
|
|
6376
|
-
e.subtitle && /* @__PURE__ */
|
|
6335
|
+
e.subtitle && /* @__PURE__ */ v(w1, { children: [
|
|
6377
6336
|
/* @__PURE__ */ l(
|
|
6378
6337
|
"span",
|
|
6379
6338
|
{
|
|
@@ -6416,7 +6375,7 @@ const J4 = ({ item: e, selected: t, onItemSelected: r }) => {
|
|
|
6416
6375
|
overflow: "hidden",
|
|
6417
6376
|
...o
|
|
6418
6377
|
},
|
|
6419
|
-
children: a ? /* @__PURE__ */
|
|
6378
|
+
children: a ? /* @__PURE__ */ v(
|
|
6420
6379
|
"div",
|
|
6421
6380
|
{
|
|
6422
6381
|
style: {
|
|
@@ -6448,7 +6407,7 @@ const J4 = ({ item: e, selected: t, onItemSelected: r }) => {
|
|
|
6448
6407
|
},
|
|
6449
6408
|
children: e.map((s, i) => {
|
|
6450
6409
|
const d = e[i - 1], h = !!s.group && (!d || d.group !== s.group);
|
|
6451
|
-
return /* @__PURE__ */
|
|
6410
|
+
return /* @__PURE__ */ v(P1.Fragment, { children: [
|
|
6452
6411
|
h && /* @__PURE__ */ l(
|
|
6453
6412
|
"div",
|
|
6454
6413
|
{
|
|
@@ -6496,58 +6455,58 @@ const sa = ({
|
|
|
6496
6455
|
helperText: b,
|
|
6497
6456
|
placeholder: x,
|
|
6498
6457
|
search: A = !1,
|
|
6499
|
-
size:
|
|
6458
|
+
size: w = "medium"
|
|
6500
6459
|
}) => {
|
|
6501
|
-
const [y,
|
|
6502
|
-
e.find((
|
|
6460
|
+
const [y, S] = H(!1), [V, D] = H(
|
|
6461
|
+
e.find((K) => K.id === r)
|
|
6503
6462
|
);
|
|
6504
6463
|
u1(() => {
|
|
6505
|
-
const
|
|
6506
|
-
|
|
6464
|
+
const K = e.find((G) => G.id === r);
|
|
6465
|
+
D((G) => (G == null ? void 0 : G.id) === (K == null ? void 0 : K.id) ? G : K);
|
|
6507
6466
|
}, [r, e]);
|
|
6508
|
-
const [
|
|
6509
|
-
var s1,
|
|
6510
|
-
const
|
|
6511
|
-
if (!
|
|
6512
|
-
const G =
|
|
6467
|
+
const [I, N] = H(""), Z = U(null), M = U(null), F = U(null), [L, a1] = H(null), $ = B1(() => {
|
|
6468
|
+
var s1, E;
|
|
6469
|
+
const K = M.current;
|
|
6470
|
+
if (!K) return;
|
|
6471
|
+
const G = K.getBoundingClientRect(), p1 = ((s1 = F.current) == null ? void 0 : s1.offsetWidth) || 180, k = ((E = F.current) == null ? void 0 : E.offsetHeight) ?? 0, Q = window.innerWidth - J1 * 2;
|
|
6513
6472
|
let T, P;
|
|
6514
|
-
if (
|
|
6515
|
-
const
|
|
6516
|
-
T = Math.max(J1, Math.min(q, J)), P =
|
|
6473
|
+
if (w === "small") {
|
|
6474
|
+
const R = Math.min(p1, Q), q = G.right - R, J = window.innerWidth - R - J1;
|
|
6475
|
+
T = Math.max(J1, Math.min(q, J)), P = R;
|
|
6517
6476
|
} else {
|
|
6518
|
-
P = Math.min(G.width,
|
|
6519
|
-
const
|
|
6520
|
-
T = Math.max(J1, Math.min(G.left,
|
|
6477
|
+
P = Math.min(G.width, Q);
|
|
6478
|
+
const R = window.innerWidth - P - J1;
|
|
6479
|
+
T = Math.max(J1, Math.min(G.left, R));
|
|
6521
6480
|
}
|
|
6522
6481
|
const t1 = window.innerHeight - G.bottom, _ = k > 0 && t1 < k + J1, c1 = _ ? G.top - k - X5 : G.bottom + X5;
|
|
6523
6482
|
a1({ top: c1, left: T, width: P, openUp: _ });
|
|
6524
|
-
}, [
|
|
6483
|
+
}, [w]);
|
|
6525
6484
|
u1(() => {
|
|
6526
6485
|
if (!y) {
|
|
6527
6486
|
a1(null);
|
|
6528
6487
|
return;
|
|
6529
6488
|
}
|
|
6530
6489
|
$();
|
|
6531
|
-
const
|
|
6532
|
-
const
|
|
6533
|
-
!t1 && !_ && (
|
|
6490
|
+
const K = (k) => {
|
|
6491
|
+
const Q = k.composedPath(), T = Z.current, P = F.current, t1 = !!T && Q.includes(T), _ = !!P && Q.includes(P);
|
|
6492
|
+
!t1 && !_ && (S(!1), A && N(""));
|
|
6534
6493
|
}, G = (k) => {
|
|
6535
|
-
k.key === "Escape" && (
|
|
6494
|
+
k.key === "Escape" && (S(!1), A && N(""));
|
|
6536
6495
|
}, p1 = () => $();
|
|
6537
|
-
return document.addEventListener("mousedown",
|
|
6538
|
-
document.removeEventListener("mousedown",
|
|
6496
|
+
return document.addEventListener("mousedown", K), document.addEventListener("keydown", G), window.addEventListener("scroll", p1, !0), window.addEventListener("resize", p1), () => {
|
|
6497
|
+
document.removeEventListener("mousedown", K), document.removeEventListener("keydown", G), window.removeEventListener("scroll", p1, !0), window.removeEventListener("resize", p1);
|
|
6539
6498
|
};
|
|
6540
6499
|
}, [y, A, $]), oe(() => {
|
|
6541
|
-
y &&
|
|
6500
|
+
y && F.current && $();
|
|
6542
6501
|
}, [y, $]);
|
|
6543
|
-
const f1 = (
|
|
6544
|
-
|
|
6545
|
-
}, o1 = (
|
|
6546
|
-
const p1 = G.toLowerCase(), k =
|
|
6547
|
-
return k ||
|
|
6502
|
+
const f1 = (K) => {
|
|
6503
|
+
D(K), S(!1), A && N(""), t == null || t(K == null ? void 0 : K.id);
|
|
6504
|
+
}, o1 = (K, G) => {
|
|
6505
|
+
const p1 = G.toLowerCase(), k = K.label.toLowerCase().includes(p1), Q = K.subtitle ? K.subtitle.toLowerCase().includes(p1) : !1, T = K.rightSideText ? K.rightSideText.toLowerCase().includes(p1) : !1;
|
|
6506
|
+
return k || Q || T;
|
|
6548
6507
|
};
|
|
6549
|
-
return /* @__PURE__ */
|
|
6550
|
-
|
|
6508
|
+
return /* @__PURE__ */ v(
|
|
6509
|
+
Ke,
|
|
6551
6510
|
{
|
|
6552
6511
|
label: n,
|
|
6553
6512
|
hint: s,
|
|
@@ -6560,49 +6519,49 @@ const sa = ({
|
|
|
6560
6519
|
loadingComponent: /* @__PURE__ */ l(
|
|
6561
6520
|
Z5,
|
|
6562
6521
|
{
|
|
6563
|
-
heightClass: i5[
|
|
6522
|
+
heightClass: i5[w],
|
|
6564
6523
|
helperText: !!b,
|
|
6565
6524
|
helperTextMarginTop: !0
|
|
6566
6525
|
}
|
|
6567
6526
|
),
|
|
6568
6527
|
children: [
|
|
6569
|
-
/* @__PURE__ */
|
|
6528
|
+
/* @__PURE__ */ v("div", { ref: Z, className: "relative w-full", children: [
|
|
6570
6529
|
/* @__PURE__ */ l(
|
|
6571
6530
|
_t,
|
|
6572
6531
|
{
|
|
6573
|
-
ref:
|
|
6532
|
+
ref: M,
|
|
6574
6533
|
isOpen: y,
|
|
6575
|
-
onClick: () => !a &&
|
|
6576
|
-
selectedItem:
|
|
6534
|
+
onClick: () => !a && S(!y),
|
|
6535
|
+
selectedItem: V,
|
|
6577
6536
|
disabled: a,
|
|
6578
6537
|
error: o,
|
|
6579
6538
|
placeholder: x,
|
|
6580
6539
|
search: A,
|
|
6581
|
-
searchQuery:
|
|
6582
|
-
onSearchChange:
|
|
6583
|
-
onFocusOpen: () =>
|
|
6584
|
-
size:
|
|
6540
|
+
searchQuery: I,
|
|
6541
|
+
onSearchChange: N,
|
|
6542
|
+
onFocusOpen: () => S(!0),
|
|
6543
|
+
size: w
|
|
6585
6544
|
}
|
|
6586
6545
|
),
|
|
6587
6546
|
y && le(
|
|
6588
6547
|
/* @__PURE__ */ l(
|
|
6589
6548
|
e3,
|
|
6590
6549
|
{
|
|
6591
|
-
ref:
|
|
6550
|
+
ref: F,
|
|
6592
6551
|
style: {
|
|
6593
6552
|
position: "fixed",
|
|
6594
6553
|
top: (L == null ? void 0 : L.top) ?? 0,
|
|
6595
6554
|
left: (L == null ? void 0 : L.left) ?? 0,
|
|
6596
|
-
width:
|
|
6597
|
-
maxWidth:
|
|
6555
|
+
width: w === "small" ? "auto" : L == null ? void 0 : L.width,
|
|
6556
|
+
maxWidth: w === "small" ? `calc(100vw - ${J1 * 2}px)` : void 0,
|
|
6598
6557
|
// Hidden on first paint until measured (see the layout effect).
|
|
6599
6558
|
visibility: L ? "visible" : "hidden",
|
|
6600
6559
|
opacity: L ? 1 : 0,
|
|
6601
6560
|
zIndex: 2147483646
|
|
6602
6561
|
},
|
|
6603
|
-
items: A &&
|
|
6562
|
+
items: A && I ? e.filter((K) => o1(K, I)) : e,
|
|
6604
6563
|
onItemSelected: f1,
|
|
6605
|
-
selectedItem:
|
|
6564
|
+
selectedItem: V,
|
|
6606
6565
|
menuLoading: p
|
|
6607
6566
|
}
|
|
6608
6567
|
),
|
|
@@ -6624,24 +6583,24 @@ const sa = ({
|
|
|
6624
6583
|
className: i = "",
|
|
6625
6584
|
style: d
|
|
6626
6585
|
}) => {
|
|
6627
|
-
const [h, C] = H(!1), p = a === "small" ? "h-8" : "h-10", u = a === "small" ? 15 : 16, m = o === "muted", b = m ? "bg-[var(--malachite-card-border)]" : "bg-[var(--malachite-card-background)]", x = m ? "border-transparent" : "border-[var(--malachite-card-border)]", A = n ? "" : "hover:border-[var(--malachite-text-placeholder)]",
|
|
6628
|
-
return /* @__PURE__ */
|
|
6586
|
+
const [h, C] = H(!1), p = a === "small" ? "h-8" : "h-10", u = a === "small" ? 15 : 16, m = o === "muted", b = m ? "bg-[var(--malachite-card-border)]" : "bg-[var(--malachite-card-background)]", x = m ? "border-transparent" : "border-[var(--malachite-card-border)]", A = n ? "" : "hover:border-[var(--malachite-text-placeholder)]", w = m ? "text-[var(--malachite-text-secondary)]" : "text-[var(--malachite-text-placeholder)]", y = m ? "placeholder:text-[var(--malachite-text-secondary)]" : "placeholder:text-[var(--malachite-text-placeholder)]", S = m ? "none" : h ? "0px 1px 0px 0px rgba(0, 175, 102, 0.15)" : "0px 1px 1px 0px rgba(0, 0, 0, 0.15)";
|
|
6587
|
+
return /* @__PURE__ */ v(
|
|
6629
6588
|
"div",
|
|
6630
6589
|
{
|
|
6631
6590
|
className: `w-full ${b} border border-solid ${x} ${A} transition-colors rounded-[12px] flex items-center gap-[10px] px-[10px] ${p} ${n ? "opacity-60 cursor-not-allowed" : ""} ${i}`,
|
|
6632
6591
|
style: {
|
|
6633
|
-
boxShadow:
|
|
6592
|
+
boxShadow: S,
|
|
6634
6593
|
borderColor: h ? "var(--malachite-success-border-hover)" : void 0,
|
|
6635
6594
|
...d
|
|
6636
6595
|
},
|
|
6637
6596
|
children: [
|
|
6638
|
-
/* @__PURE__ */ l(d5, { size: u, className: `${
|
|
6597
|
+
/* @__PURE__ */ l(d5, { size: u, className: `${w} shrink-0` }),
|
|
6639
6598
|
/* @__PURE__ */ l(
|
|
6640
6599
|
"input",
|
|
6641
6600
|
{
|
|
6642
6601
|
type: "text",
|
|
6643
6602
|
value: e,
|
|
6644
|
-
onChange: (
|
|
6603
|
+
onChange: (V) => t(V.target.value),
|
|
6645
6604
|
onFocus: () => C(!0),
|
|
6646
6605
|
onBlur: () => C(!1),
|
|
6647
6606
|
placeholder: r,
|
|
@@ -6722,48 +6681,48 @@ const sa = ({
|
|
|
6722
6681
|
onRemove: u,
|
|
6723
6682
|
className: m = ""
|
|
6724
6683
|
}) => {
|
|
6725
|
-
const b = C ? { color: ye(C) } : void 0, x = U(null), A = U(null), [
|
|
6684
|
+
const b = C ? { color: ye(C) } : void 0, x = U(null), A = U(null), [w, y] = H(!1), S = typeof e == "string" || typeof e == "number", V = B1((M) => {
|
|
6726
6685
|
var $;
|
|
6727
|
-
if (($ = x.current) == null || $.disconnect(), x.current = null, A.current !== null && (cancelAnimationFrame(A.current), A.current = null), !
|
|
6686
|
+
if (($ = x.current) == null || $.disconnect(), x.current = null, A.current !== null && (cancelAnimationFrame(A.current), A.current = null), !M || typeof ResizeObserver > "u")
|
|
6728
6687
|
return;
|
|
6729
|
-
const
|
|
6730
|
-
A.current = null,
|
|
6731
|
-
const o1 =
|
|
6688
|
+
const F = () => {
|
|
6689
|
+
A.current = null, M.clientWidth !== 0 && y((f1) => {
|
|
6690
|
+
const o1 = M.scrollWidth > M.clientWidth;
|
|
6732
6691
|
return f1 === o1 ? f1 : o1;
|
|
6733
6692
|
});
|
|
6734
6693
|
}, L = () => {
|
|
6735
|
-
A.current === null && (A.current = requestAnimationFrame(
|
|
6694
|
+
A.current === null && (A.current = requestAnimationFrame(F));
|
|
6736
6695
|
};
|
|
6737
6696
|
L();
|
|
6738
6697
|
const a1 = new ResizeObserver(L);
|
|
6739
|
-
a1.observe(
|
|
6740
|
-
}, []),
|
|
6741
|
-
a && (
|
|
6742
|
-
},
|
|
6698
|
+
a1.observe(M), x.current = a1;
|
|
6699
|
+
}, []), D = (M) => {
|
|
6700
|
+
a && (M.stopPropagation(), M.preventDefault(), a());
|
|
6701
|
+
}, I = [
|
|
6743
6702
|
U4(s),
|
|
6744
6703
|
z4(t, i),
|
|
6745
6704
|
n === "uppercase" ? "uppercase" : "normal-case",
|
|
6746
6705
|
a ? "cursor-pointer" : `cursor-${p}`,
|
|
6747
|
-
|
|
6706
|
+
S ? "min-w-0 max-w-full" : "",
|
|
6748
6707
|
m
|
|
6749
|
-
].filter(Boolean).join(" "),
|
|
6708
|
+
].filter(Boolean).join(" "), N = $4(t, r, o, i), Z = /* @__PURE__ */ v("div", { className: I, onClick: D, style: N, children: [
|
|
6750
6709
|
d && h === "left" && /* @__PURE__ */ l("span", { className: "mr-1 flex items-center", style: b, children: d }),
|
|
6751
|
-
|
|
6710
|
+
S ? /* @__PURE__ */ l("span", { className: "flex items-center min-w-0", children: /* @__PURE__ */ l("span", { ref: V, className: "block min-w-0 truncate", children: e }, String(e)) }) : /* @__PURE__ */ l("span", { className: "flex items-center", children: e }),
|
|
6752
6711
|
d && h === "right" && /* @__PURE__ */ l("span", { className: "ml-1 flex items-center", style: b, children: d }),
|
|
6753
6712
|
u && /* @__PURE__ */ l(
|
|
6754
6713
|
"button",
|
|
6755
6714
|
{
|
|
6756
6715
|
type: "button",
|
|
6757
6716
|
"aria-label": `Remove ${typeof e == "string" ? e : ""}`,
|
|
6758
|
-
onClick: (
|
|
6759
|
-
|
|
6717
|
+
onClick: (M) => {
|
|
6718
|
+
M.stopPropagation(), u(M);
|
|
6760
6719
|
},
|
|
6761
6720
|
className: "ml-0.5 flex items-center justify-center shrink-0 border-none bg-transparent text-current cursor-pointer p-0 leading-none opacity-70 hover:opacity-100",
|
|
6762
6721
|
children: /* @__PURE__ */ l(u2, { size: 10 })
|
|
6763
6722
|
}
|
|
6764
6723
|
)
|
|
6765
6724
|
] });
|
|
6766
|
-
return
|
|
6725
|
+
return w ? /* @__PURE__ */ l(U1, { text: e, placement: "top", wrapChildren: !1, isShrinkable: !0, children: Z }) : Z;
|
|
6767
6726
|
}, qe = 8, e8 = 10, t3 = "ArrowDown", r3 = "ArrowUp", a3 = "Enter", t8 = "Backspace", r8 = "Escape", a8 = /* @__PURE__ */ new Set([t3, r3, a3]), o3 = P1.forwardRef(
|
|
6768
6727
|
({ triggerRole: e, disabled: t, children: r, ...a }, o) => e !== "button" ? /* @__PURE__ */ l(
|
|
6769
6728
|
"div",
|
|
@@ -6804,36 +6763,36 @@ const ha = ({
|
|
|
6804
6763
|
name: b,
|
|
6805
6764
|
description: x,
|
|
6806
6765
|
tooltip: A,
|
|
6807
|
-
hint:
|
|
6766
|
+
hint: w,
|
|
6808
6767
|
required: y = !1,
|
|
6809
|
-
formControl:
|
|
6810
|
-
chips:
|
|
6811
|
-
chipsRemovable:
|
|
6812
|
-
chipsMax:
|
|
6813
|
-
inlineSearch:
|
|
6814
|
-
className:
|
|
6815
|
-
style:
|
|
6768
|
+
formControl: S,
|
|
6769
|
+
chips: V = !1,
|
|
6770
|
+
chipsRemovable: D = !0,
|
|
6771
|
+
chipsMax: I = "auto",
|
|
6772
|
+
inlineSearch: N = !1,
|
|
6773
|
+
className: Z = "",
|
|
6774
|
+
style: M
|
|
6816
6775
|
}) => {
|
|
6817
|
-
const
|
|
6776
|
+
const F = d2(), L = `${F}-listbox`, a1 = (B) => `${F}-option-${B}`, [$, f1] = H(() => r ?? []), o1 = t !== void 0, K = o1 ? t : $, [G, p1] = H(!1), [k, Q] = H(
|
|
6818
6777
|
null
|
|
6819
|
-
), [T, P] = H(""), [t1, _] = H(-1), c1 = U(null), s1 = U(null),
|
|
6820
|
-
() => e.filter((
|
|
6821
|
-
[e,
|
|
6822
|
-
), j = typeof
|
|
6823
|
-
const
|
|
6824
|
-
return
|
|
6825
|
-
}, [e, T]), Z1 = U(!1), Y1 = B1((
|
|
6826
|
-
Z1.current = !0, P(
|
|
6778
|
+
), [T, P] = H(""), [t1, _] = H(-1), c1 = U(null), s1 = U(null), E = U(null), R = U(null), q = U([]), J = W1(
|
|
6779
|
+
() => e.filter((B) => K.includes(B.value)),
|
|
6780
|
+
[e, K]
|
|
6781
|
+
), j = typeof I == "number" ? I : void 0, y1 = W1(() => {
|
|
6782
|
+
const B = T.trim().toLowerCase();
|
|
6783
|
+
return B ? e.filter((W) => (W.searchText ?? (typeof W.label == "string" ? W.label : "")).toLowerCase().includes(B)) : e;
|
|
6784
|
+
}, [e, T]), Z1 = U(!1), Y1 = B1((B) => {
|
|
6785
|
+
Z1.current = !0, P(B);
|
|
6827
6786
|
}, []);
|
|
6828
6787
|
u1(() => {
|
|
6829
6788
|
Z1.current && (_(-1), Z1.current = !1);
|
|
6830
6789
|
}, [T]);
|
|
6831
|
-
const se =
|
|
6790
|
+
const se = N ? !1 : s ?? e.length > e8, d1 = B1(() => {
|
|
6832
6791
|
var H1, de;
|
|
6833
|
-
const
|
|
6834
|
-
if (!
|
|
6835
|
-
const W =
|
|
6836
|
-
|
|
6792
|
+
const B = c1.current;
|
|
6793
|
+
if (!B) return;
|
|
6794
|
+
const W = B.getBoundingClientRect(), h1 = ((H1 = E.current) == null ? void 0 : H1.offsetHeight) ?? 0, F1 = ((de = E.current) == null ? void 0 : de.offsetWidth) ?? W.width, A1 = W.left, g1 = window.innerWidth - F1 - qe, b1 = Math.max(qe, Math.min(A1, g1)), l1 = window.innerHeight - W.bottom, v1 = h1 > 0 && l1 < h1 + qe ? W.top - h1 - 4 : W.bottom + 4;
|
|
6795
|
+
Q({ top: v1, left: b1, width: Math.max(W.width, h ?? 0) });
|
|
6837
6796
|
}, [h]);
|
|
6838
6797
|
u1(() => {
|
|
6839
6798
|
var F1;
|
|
@@ -6841,51 +6800,51 @@ const ha = ({
|
|
|
6841
6800
|
P(""), _(-1);
|
|
6842
6801
|
return;
|
|
6843
6802
|
}
|
|
6844
|
-
d1(),
|
|
6845
|
-
const
|
|
6846
|
-
const g1 = A1.composedPath(), b1 = c1.current, l1 =
|
|
6803
|
+
d1(), N && ((F1 = s1.current) == null || F1.focus());
|
|
6804
|
+
const B = () => d1(), W = (A1) => {
|
|
6805
|
+
const g1 = A1.composedPath(), b1 = c1.current, l1 = E.current;
|
|
6847
6806
|
(!b1 || !g1.includes(b1)) && (!l1 || !g1.includes(l1)) && p1(!1);
|
|
6848
6807
|
}, h1 = (A1) => {
|
|
6849
6808
|
A1.key === r8 && p1(!1);
|
|
6850
6809
|
};
|
|
6851
|
-
return window.addEventListener("scroll",
|
|
6852
|
-
window.removeEventListener("scroll",
|
|
6810
|
+
return window.addEventListener("scroll", B, !0), window.addEventListener("resize", B), document.addEventListener("mousedown", W), document.addEventListener("keydown", h1), () => {
|
|
6811
|
+
window.removeEventListener("scroll", B, !0), window.removeEventListener("resize", B), document.removeEventListener("mousedown", W), document.removeEventListener("keydown", h1);
|
|
6853
6812
|
};
|
|
6854
|
-
}, [G, d1,
|
|
6855
|
-
G &&
|
|
6813
|
+
}, [G, d1, N]), oe(() => {
|
|
6814
|
+
G && E.current && d1();
|
|
6856
6815
|
}, [G, d1]);
|
|
6857
|
-
const
|
|
6858
|
-
(
|
|
6859
|
-
o1 || f1(
|
|
6816
|
+
const K1 = B1(
|
|
6817
|
+
(B) => {
|
|
6818
|
+
o1 || f1(B), a == null || a(B);
|
|
6860
6819
|
},
|
|
6861
6820
|
[o1, a]
|
|
6862
6821
|
), ke = B1(
|
|
6863
|
-
(
|
|
6822
|
+
(B) => e.some((W) => W.value === B && W.disabled),
|
|
6864
6823
|
[e]
|
|
6865
6824
|
), Te = B1(
|
|
6866
|
-
(
|
|
6867
|
-
ke(
|
|
6825
|
+
(B) => {
|
|
6826
|
+
ke(B) || (K.includes(B) ? K1(K.filter((W) => W !== B)) : K1([...K, B]));
|
|
6868
6827
|
},
|
|
6869
|
-
[
|
|
6828
|
+
[K, K1, ke]
|
|
6870
6829
|
), Ee = W1(
|
|
6871
|
-
() => new Set(e.filter((
|
|
6830
|
+
() => new Set(e.filter((B) => B.disabled).map((B) => B.value)),
|
|
6872
6831
|
[e]
|
|
6873
6832
|
), m3 = B1(
|
|
6874
|
-
(
|
|
6875
|
-
|
|
6876
|
-
const W =
|
|
6877
|
-
|
|
6833
|
+
(B) => {
|
|
6834
|
+
B.stopPropagation();
|
|
6835
|
+
const W = K.filter((h1) => Ee.has(h1));
|
|
6836
|
+
K1(W);
|
|
6878
6837
|
},
|
|
6879
|
-
[
|
|
6838
|
+
[K1, K, Ee]
|
|
6880
6839
|
), D5 = B1(
|
|
6881
|
-
(
|
|
6882
|
-
W.stopPropagation(), !ke(
|
|
6840
|
+
(B, W) => {
|
|
6841
|
+
W.stopPropagation(), !ke(B) && K1(K.filter((h1) => h1 !== B));
|
|
6883
6842
|
},
|
|
6884
|
-
[
|
|
6843
|
+
[K, K1, ke]
|
|
6885
6844
|
), Be = B1(
|
|
6886
|
-
(
|
|
6887
|
-
if (!a8.has(
|
|
6888
|
-
if (
|
|
6845
|
+
(B) => {
|
|
6846
|
+
if (!a8.has(B.key)) return;
|
|
6847
|
+
if (B.preventDefault(), B.stopPropagation(), !G) {
|
|
6889
6848
|
p1(!0);
|
|
6890
6849
|
return;
|
|
6891
6850
|
}
|
|
@@ -6893,7 +6852,7 @@ const ha = ({
|
|
|
6893
6852
|
if (W === 0) return;
|
|
6894
6853
|
const h1 = (g1) => {
|
|
6895
6854
|
requestAnimationFrame(() => {
|
|
6896
|
-
const b1 = q.current[g1], l1 =
|
|
6855
|
+
const b1 = q.current[g1], l1 = R.current;
|
|
6897
6856
|
if (!b1 || !l1) return;
|
|
6898
6857
|
const v1 = b1.offsetTop, H1 = v1 + b1.offsetHeight, de = l1.scrollTop, A3 = de + l1.clientHeight;
|
|
6899
6858
|
H1 > A3 ? l1.scrollTo({
|
|
@@ -6921,7 +6880,7 @@ const ha = ({
|
|
|
6921
6880
|
return (v1 = s1.current) == null ? void 0 : v1.focus();
|
|
6922
6881
|
});
|
|
6923
6882
|
};
|
|
6924
|
-
switch (
|
|
6883
|
+
switch (B.key) {
|
|
6925
6884
|
case t3:
|
|
6926
6885
|
F1(1);
|
|
6927
6886
|
break;
|
|
@@ -6935,39 +6894,39 @@ const ha = ({
|
|
|
6935
6894
|
},
|
|
6936
6895
|
[G, y1, t1, Te, e]
|
|
6937
6896
|
), Q5 = B1(
|
|
6938
|
-
(
|
|
6939
|
-
if (
|
|
6940
|
-
|
|
6897
|
+
(B) => {
|
|
6898
|
+
if (B.key === t8 && T === "" && K.length > 0) {
|
|
6899
|
+
B.preventDefault(), K1(K.slice(0, -1)), requestAnimationFrame(() => {
|
|
6941
6900
|
var W;
|
|
6942
6901
|
return (W = s1.current) == null ? void 0 : W.focus();
|
|
6943
6902
|
});
|
|
6944
6903
|
return;
|
|
6945
6904
|
}
|
|
6946
|
-
Be(
|
|
6905
|
+
Be(B);
|
|
6947
6906
|
},
|
|
6948
|
-
[Be, T,
|
|
6907
|
+
[Be, T, K, K1]
|
|
6949
6908
|
), b3 = i === "small" ? "h-8" : "h-10", f3 = typeof d == "number" ? `${d}px` : d, P5 = J.length > 0 && !C && !u, w3 = $t({
|
|
6950
6909
|
disabled: C,
|
|
6951
6910
|
error: p,
|
|
6952
6911
|
open: G,
|
|
6953
6912
|
loading: u,
|
|
6954
6913
|
hasSelection: J.length > 0
|
|
6955
|
-
}), Ye = W1(() =>
|
|
6914
|
+
}), Ye = W1(() => N ? /* @__PURE__ */ l(
|
|
6956
6915
|
"input",
|
|
6957
6916
|
{
|
|
6958
6917
|
ref: s1,
|
|
6959
6918
|
type: "text",
|
|
6960
6919
|
value: T,
|
|
6961
|
-
onChange: (
|
|
6920
|
+
onChange: (B) => Y1(B.target.value),
|
|
6962
6921
|
onKeyDown: Q5,
|
|
6963
6922
|
placeholder: J.length === 0 ? o : "",
|
|
6964
6923
|
className: "flex-1 w-full min-w-[40px] border-none outline-none bg-transparent text-[13px] p-0 text-[var(--malachite-text-primary,rgb(10,10,10))]",
|
|
6965
|
-
onMouseDown: (
|
|
6966
|
-
|
|
6924
|
+
onMouseDown: (B) => {
|
|
6925
|
+
B.preventDefault();
|
|
6967
6926
|
}
|
|
6968
6927
|
}
|
|
6969
6928
|
) : null, [
|
|
6970
|
-
|
|
6929
|
+
N,
|
|
6971
6930
|
T,
|
|
6972
6931
|
Y1,
|
|
6973
6932
|
Q5,
|
|
@@ -6976,15 +6935,15 @@ const ha = ({
|
|
|
6976
6935
|
]), v3 = W1(() => {
|
|
6977
6936
|
if (n && J.length > 0)
|
|
6978
6937
|
return n(J);
|
|
6979
|
-
if (
|
|
6980
|
-
const
|
|
6981
|
-
return /* @__PURE__ */
|
|
6938
|
+
if (V && J.length > 0) {
|
|
6939
|
+
const B = j != null ? J.slice(0, j) : J, W = J.length - B.length;
|
|
6940
|
+
return /* @__PURE__ */ v(
|
|
6982
6941
|
"div",
|
|
6983
6942
|
{
|
|
6984
6943
|
className: "flex items-center gap-1 overflow-hidden min-w-0 flex-1",
|
|
6985
6944
|
style: { flexWrap: "nowrap" },
|
|
6986
6945
|
children: [
|
|
6987
|
-
|
|
6946
|
+
B.map((h1) => {
|
|
6988
6947
|
const F1 = Ee.has(h1.value);
|
|
6989
6948
|
return /* @__PURE__ */ l(
|
|
6990
6949
|
_4,
|
|
@@ -6992,13 +6951,13 @@ const ha = ({
|
|
|
6992
6951
|
value: h1.label,
|
|
6993
6952
|
type: "default",
|
|
6994
6953
|
textTransform: "none",
|
|
6995
|
-
onRemove:
|
|
6954
|
+
onRemove: D && !C && !F1 ? (A1) => D5(h1.value, A1) : void 0,
|
|
6996
6955
|
className: "shrink-0"
|
|
6997
6956
|
},
|
|
6998
6957
|
h1.value
|
|
6999
6958
|
);
|
|
7000
6959
|
}),
|
|
7001
|
-
W > 0 && /* @__PURE__ */
|
|
6960
|
+
W > 0 && /* @__PURE__ */ v("span", { className: "shrink-0 text-xs text-[var(--malachite-text-secondary,rgb(123,123,123))]", children: [
|
|
7002
6961
|
"+",
|
|
7003
6962
|
W
|
|
7004
6963
|
] }),
|
|
@@ -7007,16 +6966,16 @@ const ha = ({
|
|
|
7007
6966
|
}
|
|
7008
6967
|
);
|
|
7009
6968
|
}
|
|
7010
|
-
return
|
|
6969
|
+
return N && J.length === 0 ? Ye : J.length === 0 ? /* @__PURE__ */ l("span", { className: "text-[var(--malachite-text-placeholder)]", children: o }) : J.length === 1 ? /* @__PURE__ */ l("span", { children: J[0].label }) : /* @__PURE__ */ l("span", { children: `${J.length} selected` });
|
|
7011
6970
|
}, [
|
|
7012
6971
|
J,
|
|
7013
6972
|
n,
|
|
7014
|
-
|
|
6973
|
+
V,
|
|
7015
6974
|
j,
|
|
7016
|
-
|
|
6975
|
+
D,
|
|
7017
6976
|
C,
|
|
7018
6977
|
D5,
|
|
7019
|
-
|
|
6978
|
+
N,
|
|
7020
6979
|
Ye,
|
|
7021
6980
|
o,
|
|
7022
6981
|
Ee
|
|
@@ -7038,37 +6997,37 @@ const ha = ({
|
|
|
7038
6997
|
maxHeight: 360,
|
|
7039
6998
|
visibility: k ? "visible" : "hidden",
|
|
7040
6999
|
opacity: k ? 1 : 0
|
|
7041
|
-
}, y3 = !!(x || A ||
|
|
7042
|
-
/* @__PURE__ */
|
|
7043
|
-
/* @__PURE__ */
|
|
7000
|
+
}, y3 = !!(x || A || w || b || S || y), K5 = /* @__PURE__ */ v(w1, { children: [
|
|
7001
|
+
/* @__PURE__ */ v("div", { className: "relative", style: { width: f3 }, children: [
|
|
7002
|
+
/* @__PURE__ */ v(
|
|
7044
7003
|
o3,
|
|
7045
7004
|
{
|
|
7046
7005
|
ref: c1,
|
|
7047
|
-
triggerRole:
|
|
7006
|
+
triggerRole: N ? "combobox" : V && D ? "group" : "button",
|
|
7048
7007
|
disabled: C || u,
|
|
7049
7008
|
[n5]: "",
|
|
7050
7009
|
"aria-haspopup": "listbox",
|
|
7051
7010
|
"aria-expanded": G,
|
|
7052
7011
|
"aria-controls": G ? L : void 0,
|
|
7053
|
-
"aria-activedescendant":
|
|
7012
|
+
"aria-activedescendant": N && G && t1 >= 0 ? a1(t1) : void 0,
|
|
7054
7013
|
"aria-label": m,
|
|
7055
7014
|
"aria-invalid": p || void 0,
|
|
7056
7015
|
"aria-busy": u || void 0,
|
|
7057
7016
|
onClick: () => {
|
|
7058
|
-
C || u || p1((
|
|
7017
|
+
C || u || p1((B) => !B);
|
|
7059
7018
|
},
|
|
7060
7019
|
onKeyDown: Be,
|
|
7061
7020
|
style: {
|
|
7062
7021
|
transition: "border-color 0.15s ease, box-shadow 0.15s ease",
|
|
7063
7022
|
...w3,
|
|
7064
|
-
...
|
|
7023
|
+
...M
|
|
7065
7024
|
},
|
|
7066
|
-
className: `w-full ${b3} border border-solid rounded-[12px] flex items-center gap-[8px] px-[12px] text-[13px] font-normal text-[var(--malachite-text-primary)] ${C || u ? "cursor-not-allowed" : "cursor-pointer"} ${
|
|
7025
|
+
className: `w-full ${b3} border border-solid rounded-[12px] flex items-center gap-[8px] px-[12px] text-[13px] font-normal text-[var(--malachite-text-primary)] ${C || u ? "cursor-not-allowed" : "cursor-pointer"} ${Z}`,
|
|
7067
7026
|
children: [
|
|
7068
7027
|
/* @__PURE__ */ l(
|
|
7069
7028
|
"span",
|
|
7070
7029
|
{
|
|
7071
|
-
className: `flex-1 min-w-0 text-left ${
|
|
7030
|
+
className: `flex-1 min-w-0 text-left ${N ? "flex" : "truncate"} ${P5 ? "pr-[18px]" : ""}`,
|
|
7072
7031
|
children: v3
|
|
7073
7032
|
}
|
|
7074
7033
|
),
|
|
@@ -7099,16 +7058,16 @@ const ha = ({
|
|
|
7099
7058
|
)
|
|
7100
7059
|
] }),
|
|
7101
7060
|
G && le(
|
|
7102
|
-
/* @__PURE__ */
|
|
7061
|
+
/* @__PURE__ */ v(
|
|
7103
7062
|
"div",
|
|
7104
7063
|
{
|
|
7105
|
-
ref:
|
|
7064
|
+
ref: E,
|
|
7106
7065
|
id: L,
|
|
7107
7066
|
role: "listbox",
|
|
7108
7067
|
"aria-multiselectable": "true",
|
|
7109
7068
|
style: x3,
|
|
7110
7069
|
children: [
|
|
7111
|
-
se && /* @__PURE__ */
|
|
7070
|
+
se && /* @__PURE__ */ v(
|
|
7112
7071
|
"div",
|
|
7113
7072
|
{
|
|
7114
7073
|
style: {
|
|
@@ -7137,7 +7096,7 @@ const ha = ({
|
|
|
7137
7096
|
{
|
|
7138
7097
|
type: "text",
|
|
7139
7098
|
value: T,
|
|
7140
|
-
onChange: (
|
|
7099
|
+
onChange: (B) => Y1(B.target.value),
|
|
7141
7100
|
onKeyDown: Be,
|
|
7142
7101
|
placeholder: "Search",
|
|
7143
7102
|
"aria-label": "Search options",
|
|
@@ -7171,7 +7130,7 @@ const ha = ({
|
|
|
7171
7130
|
/* @__PURE__ */ l(
|
|
7172
7131
|
"div",
|
|
7173
7132
|
{
|
|
7174
|
-
ref:
|
|
7133
|
+
ref: R,
|
|
7175
7134
|
style: {
|
|
7176
7135
|
display: "flex",
|
|
7177
7136
|
flexDirection: "column",
|
|
@@ -7193,9 +7152,9 @@ const ha = ({
|
|
|
7193
7152
|
},
|
|
7194
7153
|
children: "No results"
|
|
7195
7154
|
}
|
|
7196
|
-
) : y1.map((
|
|
7197
|
-
const h1 =
|
|
7198
|
-
return /* @__PURE__ */
|
|
7155
|
+
) : y1.map((B, W) => {
|
|
7156
|
+
const h1 = K.includes(B.value), F1 = W === t1, A1 = !!B.disabled;
|
|
7157
|
+
return /* @__PURE__ */ v(
|
|
7199
7158
|
"button",
|
|
7200
7159
|
{
|
|
7201
7160
|
id: a1(W),
|
|
@@ -7208,7 +7167,7 @@ const ha = ({
|
|
|
7208
7167
|
"aria-disabled": A1 || void 0,
|
|
7209
7168
|
onClick: () => {
|
|
7210
7169
|
var g1;
|
|
7211
|
-
Te(
|
|
7170
|
+
Te(B.value), P(""), (g1 = s1.current) == null || g1.focus();
|
|
7212
7171
|
},
|
|
7213
7172
|
onMouseEnter: () => _(W),
|
|
7214
7173
|
onMouseLeave: () => {
|
|
@@ -7230,8 +7189,8 @@ const ha = ({
|
|
|
7230
7189
|
},
|
|
7231
7190
|
children: [
|
|
7232
7191
|
(() => {
|
|
7233
|
-
const g1 =
|
|
7234
|
-
return /* @__PURE__ */
|
|
7192
|
+
const g1 = B.description ? B.descriptionMode ?? "icon" : null, b1 = g1 === "subtitle", l1 = /* @__PURE__ */ l("span", { style: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: B.label });
|
|
7193
|
+
return /* @__PURE__ */ v(
|
|
7235
7194
|
"span",
|
|
7236
7195
|
{
|
|
7237
7196
|
style: {
|
|
@@ -7246,7 +7205,7 @@ const ha = ({
|
|
|
7246
7205
|
g1 === "hover" ? /* @__PURE__ */ l(
|
|
7247
7206
|
U1,
|
|
7248
7207
|
{
|
|
7249
|
-
text:
|
|
7208
|
+
text: B.description,
|
|
7250
7209
|
delay: 0.6,
|
|
7251
7210
|
maxWidth: 420,
|
|
7252
7211
|
children: l1
|
|
@@ -7255,22 +7214,19 @@ const ha = ({
|
|
|
7255
7214
|
g1 === "icon" && /* @__PURE__ */ l(
|
|
7256
7215
|
U1,
|
|
7257
7216
|
{
|
|
7258
|
-
text:
|
|
7217
|
+
text: B.description,
|
|
7259
7218
|
delay: 0.6,
|
|
7260
7219
|
maxWidth: 420,
|
|
7261
7220
|
children: /* @__PURE__ */ l(
|
|
7262
7221
|
"span",
|
|
7263
7222
|
{
|
|
7264
7223
|
style: {
|
|
7265
|
-
display: "inline-flex",
|
|
7266
|
-
alignItems: "center",
|
|
7267
7224
|
cursor: "help",
|
|
7268
|
-
color: "var(--malachite-text-placeholder, rgb(187, 187, 187))"
|
|
7269
|
-
flexShrink: 0
|
|
7225
|
+
color: "var(--malachite-text-placeholder, rgb(187, 187, 187))"
|
|
7270
7226
|
},
|
|
7271
7227
|
"aria-label": "More information",
|
|
7272
7228
|
onClick: (v1) => v1.stopPropagation(),
|
|
7273
|
-
children:
|
|
7229
|
+
children: B.descriptionIcon ?? /* @__PURE__ */ l(p2, { size: 14 })
|
|
7274
7230
|
}
|
|
7275
7231
|
)
|
|
7276
7232
|
}
|
|
@@ -7283,24 +7239,24 @@ const ha = ({
|
|
|
7283
7239
|
color: "var(--malachite-text-secondary, rgb(123, 123, 123))",
|
|
7284
7240
|
whiteSpace: "normal",
|
|
7285
7241
|
lineHeight: 1.3,
|
|
7286
|
-
...
|
|
7242
|
+
...B.descriptionMaxLines ? {
|
|
7287
7243
|
display: "-webkit-box",
|
|
7288
|
-
WebkitLineClamp:
|
|
7244
|
+
WebkitLineClamp: B.descriptionMaxLines,
|
|
7289
7245
|
WebkitBoxOrient: "vertical",
|
|
7290
7246
|
overflow: "hidden"
|
|
7291
7247
|
} : {}
|
|
7292
7248
|
},
|
|
7293
|
-
children:
|
|
7249
|
+
children: B.description
|
|
7294
7250
|
}
|
|
7295
7251
|
)
|
|
7296
7252
|
]
|
|
7297
7253
|
}
|
|
7298
7254
|
);
|
|
7299
7255
|
})(),
|
|
7300
|
-
|
|
7256
|
+
B.badge && /* @__PURE__ */ l("span", { style: { marginLeft: "auto", flexShrink: 0, paddingLeft: 8 }, children: B.badge })
|
|
7301
7257
|
]
|
|
7302
7258
|
},
|
|
7303
|
-
|
|
7259
|
+
B.value
|
|
7304
7260
|
);
|
|
7305
7261
|
})
|
|
7306
7262
|
}
|
|
@@ -7312,20 +7268,20 @@ const ha = ({
|
|
|
7312
7268
|
)
|
|
7313
7269
|
] });
|
|
7314
7270
|
return y3 ? /* @__PURE__ */ l(
|
|
7315
|
-
|
|
7271
|
+
Ke,
|
|
7316
7272
|
{
|
|
7317
7273
|
label: m,
|
|
7318
|
-
hint:
|
|
7274
|
+
hint: w,
|
|
7319
7275
|
tooltip: A,
|
|
7320
7276
|
name: b ?? "",
|
|
7321
7277
|
required: y,
|
|
7322
7278
|
loading: u,
|
|
7323
|
-
formControl:
|
|
7279
|
+
formControl: S,
|
|
7324
7280
|
description: x,
|
|
7325
7281
|
loadingComponent: /* @__PURE__ */ l(Z5, { size: "medium" }),
|
|
7326
|
-
children:
|
|
7282
|
+
children: K5
|
|
7327
7283
|
}
|
|
7328
|
-
) :
|
|
7284
|
+
) : K5;
|
|
7329
7285
|
};
|
|
7330
7286
|
var o8 = /* @__PURE__ */ ((e) => (e.XSmall = "xsmall", e.Small = "small", e.Medium = "medium", e.Large = "large", e))(o8 || {}), l8 = /* @__PURE__ */ ((e) => (e.Left = "flex-start", e.Right = "flex-end", e.Center = "center", e.SpaceBetween = "space-between", e.SpaceAround = "space-around", e.SpaceEvenly = "space-evenly", e))(l8 || {}), n8 = /* @__PURE__ */ ((e) => (e.Top = "flex-start", e.Bottom = "flex-end", e.Center = "center", e.Normal = "normal", e.Stretch = "stretch", e))(n8 || {}), i8 = /* @__PURE__ */ ((e) => (e.Horizontal = "horizontal", e.Vertical = "vertical", e))(i8 || {});
|
|
7331
7287
|
const Ca = ({
|
|
@@ -7395,7 +7351,7 @@ const Ca = ({
|
|
|
7395
7351
|
}, ua = ({
|
|
7396
7352
|
fullWidth: e = !1,
|
|
7397
7353
|
showDocsSupport: t = !1
|
|
7398
|
-
}) => /* @__PURE__ */
|
|
7354
|
+
}) => /* @__PURE__ */ v(
|
|
7399
7355
|
be,
|
|
7400
7356
|
{
|
|
7401
7357
|
direction: "horizontal",
|
|
@@ -7416,7 +7372,7 @@ const Ca = ({
|
|
|
7416
7372
|
}
|
|
7417
7373
|
}
|
|
7418
7374
|
) }),
|
|
7419
|
-
t ? /* @__PURE__ */
|
|
7375
|
+
t ? /* @__PURE__ */ v(be, { direction: "horizontal", size: 10, children: [
|
|
7420
7376
|
/* @__PURE__ */ l(
|
|
7421
7377
|
ee,
|
|
7422
7378
|
{
|
|
@@ -7442,7 +7398,7 @@ const Ca = ({
|
|
|
7442
7398
|
children: "Support"
|
|
7443
7399
|
}
|
|
7444
7400
|
)
|
|
7445
|
-
] }) : /* @__PURE__ */
|
|
7401
|
+
] }) : /* @__PURE__ */ v(be, { direction: "horizontal", size: 10, children: [
|
|
7446
7402
|
/* @__PURE__ */ l(
|
|
7447
7403
|
ee,
|
|
7448
7404
|
{
|
|
@@ -7471,7 +7427,7 @@ const Ca = ({
|
|
|
7471
7427
|
] })
|
|
7472
7428
|
]
|
|
7473
7429
|
}
|
|
7474
|
-
), z5 = "text-[13px] font-medium no-underline text-[var(--malachite-text-placeholder)] hover:text-[var(--malachite-text-secondary)]", pa = ({ links: e, className: t = "" }) => /* @__PURE__ */ l("nav", { className: `flex items-center justify-center gap-[8px] ${t}`, children: e.map((r, a) => /* @__PURE__ */
|
|
7430
|
+
), z5 = "text-[13px] font-medium no-underline text-[var(--malachite-text-placeholder)] hover:text-[var(--malachite-text-secondary)]", pa = ({ links: e, className: t = "" }) => /* @__PURE__ */ l("nav", { className: `flex items-center justify-center gap-[8px] ${t}`, children: e.map((r, a) => /* @__PURE__ */ v(P1.Fragment, { children: [
|
|
7475
7431
|
a > 0 && /* @__PURE__ */ l("span", { className: "text-[13px] text-[var(--malachite-card-border)]", children: "•" }),
|
|
7476
7432
|
r.href ? /* @__PURE__ */ l("a", { href: r.href, onClick: r.onClick, className: z5, children: r.label }) : /* @__PURE__ */ l(
|
|
7477
7433
|
"button",
|
|
@@ -7610,7 +7566,7 @@ const ma = ({
|
|
|
7610
7566
|
}) => /* @__PURE__ */ l(
|
|
7611
7567
|
"div",
|
|
7612
7568
|
{
|
|
7613
|
-
className: `w-full rounded-[14px] ${r === "visible" ? "overflow-visible" : "overflow-hidden"} bg-[var(--malachite-card-background)] border border-solid border-[var(--malachite-card-border)] ${t ? "py-3 px-4" : ""} ${s}`,
|
|
7569
|
+
className: `w-full rounded-[14px] ${r === "clip" ? "overflow-clip" : r === "visible" ? "overflow-visible" : "overflow-hidden"} bg-[var(--malachite-card-background)] border border-solid border-[var(--malachite-card-border)] ${t ? "py-3 px-4" : ""} ${s}`,
|
|
7614
7570
|
style: { boxShadow: C8, ...i },
|
|
7615
7571
|
role: a,
|
|
7616
7572
|
"aria-label": o,
|
|
@@ -7619,7 +7575,7 @@ const ma = ({
|
|
|
7619
7575
|
}
|
|
7620
7576
|
);
|
|
7621
7577
|
p8.Row = u8;
|
|
7622
|
-
const ba = ({ count: e, label: t, className: r = "" }) => /* @__PURE__ */
|
|
7578
|
+
const ba = ({ count: e, label: t, className: r = "" }) => /* @__PURE__ */ v("div", { className: `flex items-center gap-[6px] ${r}`, children: [
|
|
7623
7579
|
/* @__PURE__ */ l("span", { className: "min-w-[16px] h-[16px] px-[4px] rounded-[6px] flex items-center justify-center text-[12px] font-mono font-semibold bg-[var(--malachite-success-background-glass)] text-[var(--malachite-text-success)]", children: e.toLocaleString() }),
|
|
7624
7580
|
/* @__PURE__ */ l("span", { className: "text-[13px] font-medium text-[var(--malachite-text-success)]", children: t })
|
|
7625
7581
|
] }), fa = ({
|
|
@@ -7645,15 +7601,15 @@ const ba = ({ count: e, label: t, className: r = "" }) => /* @__PURE__ */ w("div
|
|
|
7645
7601
|
}
|
|
7646
7602
|
const A = () => b(x.offsetHeight);
|
|
7647
7603
|
A();
|
|
7648
|
-
const
|
|
7649
|
-
return
|
|
7650
|
-
}, [s]), /* @__PURE__ */
|
|
7604
|
+
const w = new ResizeObserver(A);
|
|
7605
|
+
return w.observe(x), () => w.disconnect();
|
|
7606
|
+
}, [s]), /* @__PURE__ */ v(
|
|
7651
7607
|
"div",
|
|
7652
7608
|
{
|
|
7653
7609
|
className: `w-full h-screen flex flex-col overflow-hidden bg-[var(--malachite-card-sunken-background)] ${p}`,
|
|
7654
7610
|
style: h ? { minWidth: `${h}px` } : void 0,
|
|
7655
7611
|
children: [
|
|
7656
|
-
/* @__PURE__ */
|
|
7612
|
+
/* @__PURE__ */ v("div", { className: "w-full shrink-0 flex items-center justify-between px-6 pt-4 min-h-[28px]", children: [
|
|
7657
7613
|
e ? /* @__PURE__ */ l(
|
|
7658
7614
|
ne,
|
|
7659
7615
|
{
|
|
@@ -7667,7 +7623,7 @@ const ba = ({ count: e, label: t, className: r = "" }) => /* @__PURE__ */ w("div
|
|
|
7667
7623
|
className: "w-7 h-7"
|
|
7668
7624
|
}
|
|
7669
7625
|
) : /* @__PURE__ */ l("span", { className: "w-7 h-7" }),
|
|
7670
|
-
/* @__PURE__ */
|
|
7626
|
+
/* @__PURE__ */ v("div", { className: "flex items-center gap-[16px]", children: [
|
|
7671
7627
|
a ?? /* @__PURE__ */ l("span", {}),
|
|
7672
7628
|
o ?? /* @__PURE__ */ l("span", { className: "w-7 h-7" })
|
|
7673
7629
|
] })
|
|
@@ -7680,7 +7636,7 @@ const ba = ({ count: e, label: t, className: r = "" }) => /* @__PURE__ */ w("div
|
|
|
7680
7636
|
children: n
|
|
7681
7637
|
}
|
|
7682
7638
|
) }) : null,
|
|
7683
|
-
/* @__PURE__ */
|
|
7639
|
+
/* @__PURE__ */ v("div", { className: "relative flex-1 min-h-0", children: [
|
|
7684
7640
|
/* @__PURE__ */ l(
|
|
7685
7641
|
"div",
|
|
7686
7642
|
{
|
|
@@ -7888,7 +7844,7 @@ const k8 = `
|
|
|
7888
7844
|
}
|
|
7889
7845
|
}
|
|
7890
7846
|
}
|
|
7891
|
-
}, [t]), r ? (console.log("[ShadowEscape] Portal container ready, rendering children outside Shadow DOM"), /* @__PURE__ */
|
|
7847
|
+
}, [t]), r ? (console.log("[ShadowEscape] Portal container ready, rendering children outside Shadow DOM"), /* @__PURE__ */ v(w1, { children: [
|
|
7892
7848
|
/* @__PURE__ */ l("div", { ref: o, style: { display: "none" } }),
|
|
7893
7849
|
le(e, r)
|
|
7894
7850
|
] })) : (console.log("[ShadowEscape] No portal container yet, rendering marker..."), /* @__PURE__ */ l("div", { ref: o, style: { display: "none" } }));
|
|
@@ -9222,7 +9178,7 @@ function Aa() {
|
|
|
9222
9178
|
}
|
|
9223
9179
|
P8();
|
|
9224
9180
|
let Se = null, o2 = !1;
|
|
9225
|
-
const
|
|
9181
|
+
const K8 = () => {
|
|
9226
9182
|
if (Se || o2)
|
|
9227
9183
|
return Se;
|
|
9228
9184
|
if (o2 = !0, typeof CSSStyleSheet > "u")
|
|
@@ -9234,7 +9190,7 @@ const R8 = () => {
|
|
|
9234
9190
|
console.error("Failed to construct Tailwind stylesheet:", e);
|
|
9235
9191
|
}
|
|
9236
9192
|
return Se;
|
|
9237
|
-
}, l2 = "malachite-tailwind-style",
|
|
9193
|
+
}, l2 = "malachite-tailwind-style", R8 = (e, t) => {
|
|
9238
9194
|
if (!("adoptedStyleSheets" in e))
|
|
9239
9195
|
return !1;
|
|
9240
9196
|
try {
|
|
@@ -9262,8 +9218,8 @@ const R8 = () => {
|
|
|
9262
9218
|
}, [o]), u1(() => {
|
|
9263
9219
|
if (!o)
|
|
9264
9220
|
return;
|
|
9265
|
-
const s =
|
|
9266
|
-
if ((!s || !
|
|
9221
|
+
const s = K8();
|
|
9222
|
+
if ((!s || !R8(o, s)) && W8(o, n3), l3(), M8(), S8(), t) {
|
|
9267
9223
|
Q8(o, t);
|
|
9268
9224
|
return;
|
|
9269
9225
|
}
|
|
@@ -9370,7 +9326,7 @@ const R8 = () => {
|
|
|
9370
9326
|
{
|
|
9371
9327
|
className: `flex items-center justify-center rounded-full ${r}`,
|
|
9372
9328
|
style: { width: `${t}px`, height: `${t}px`, backgroundColor: G8[e] },
|
|
9373
|
-
children: /* @__PURE__ */
|
|
9329
|
+
children: /* @__PURE__ */ v(
|
|
9374
9330
|
"svg",
|
|
9375
9331
|
{
|
|
9376
9332
|
width: o,
|
|
@@ -9428,33 +9384,33 @@ const R8 = () => {
|
|
|
9428
9384
|
defaultValue: b,
|
|
9429
9385
|
disabled: x,
|
|
9430
9386
|
prefixValue: A,
|
|
9431
|
-
prefixSecondaryValue:
|
|
9387
|
+
prefixSecondaryValue: w,
|
|
9432
9388
|
ellipsis: y = !1,
|
|
9433
|
-
formControl:
|
|
9434
|
-
buttons:
|
|
9435
|
-
onCopyClick:
|
|
9436
|
-
showCopyButton:
|
|
9437
|
-
onChange:
|
|
9438
|
-
onBlur:
|
|
9439
|
-
helperText:
|
|
9440
|
-
showPasswordToggle:
|
|
9389
|
+
formControl: S,
|
|
9390
|
+
buttons: V,
|
|
9391
|
+
onCopyClick: D,
|
|
9392
|
+
showCopyButton: I,
|
|
9393
|
+
onChange: N,
|
|
9394
|
+
onBlur: Z,
|
|
9395
|
+
helperText: M,
|
|
9396
|
+
showPasswordToggle: F = !0
|
|
9441
9397
|
}) => {
|
|
9442
|
-
const [L, a1] = H(!1), [$, f1] = H(b || ""), [o1,
|
|
9398
|
+
const [L, a1] = H(!1), [$, f1] = H(b || ""), [o1, K] = H(!1);
|
|
9443
9399
|
u1(() => {
|
|
9444
9400
|
if (o1) {
|
|
9445
|
-
const
|
|
9446
|
-
|
|
9401
|
+
const E = setTimeout(() => {
|
|
9402
|
+
K(!1);
|
|
9447
9403
|
}, 1e3);
|
|
9448
|
-
return () => clearTimeout(
|
|
9404
|
+
return () => clearTimeout(E);
|
|
9449
9405
|
}
|
|
9450
9406
|
}, [o1]);
|
|
9451
|
-
const G = (
|
|
9452
|
-
const
|
|
9453
|
-
f1(
|
|
9454
|
-
}, p1 =
|
|
9455
|
-
$ && (navigator.clipboard.writeText($),
|
|
9456
|
-
} : void 0, k = (
|
|
9457
|
-
switch (
|
|
9407
|
+
const G = (E) => {
|
|
9408
|
+
const R = E.target.value;
|
|
9409
|
+
f1(R), N == null || N(R);
|
|
9410
|
+
}, p1 = D ? () => {
|
|
9411
|
+
$ && (navigator.clipboard.writeText($), K(!0), D());
|
|
9412
|
+
} : void 0, k = (E) => {
|
|
9413
|
+
switch (E) {
|
|
9458
9414
|
case "small":
|
|
9459
9415
|
return "h-8 py-2 text-sm";
|
|
9460
9416
|
case "medium":
|
|
@@ -9464,13 +9420,13 @@ const R8 = () => {
|
|
|
9464
9420
|
default:
|
|
9465
9421
|
return "h-10 py-[10px] text-[15px] leading-[1.4]";
|
|
9466
9422
|
}
|
|
9467
|
-
},
|
|
9468
|
-
switch (
|
|
9423
|
+
}, Q = (E, R) => {
|
|
9424
|
+
switch (E) {
|
|
9469
9425
|
case "ghost":
|
|
9470
9426
|
return {
|
|
9471
9427
|
wrapper: [
|
|
9472
|
-
|
|
9473
|
-
|
|
9428
|
+
R ? "border-0 border-b border-solid border-[var(--malachite-destructive-border)]" : "",
|
|
9429
|
+
R ? "focus-within:border-[var(--malachite-destructive-border-hover)] hover:border-[var(--malachite-destructive-border-hover)]" : ""
|
|
9474
9430
|
],
|
|
9475
9431
|
shadow: "shadow-none",
|
|
9476
9432
|
borderRadius: "rounded-none"
|
|
@@ -9480,14 +9436,14 @@ const R8 = () => {
|
|
|
9480
9436
|
return {
|
|
9481
9437
|
wrapper: [
|
|
9482
9438
|
"border border-solid",
|
|
9483
|
-
|
|
9484
|
-
|
|
9439
|
+
R ? "border-[var(--malachite-destructive-border)]" : "border-[var(--malachite-card-border)]",
|
|
9440
|
+
R ? "focus-within:border-[var(--malachite-destructive-border-hover)] hover:border-[var(--malachite-destructive-border-hover)]" : "focus-within:border-[var(--malachite-control-border-hover)] hover:border-[var(--malachite-control-border-hover)]"
|
|
9485
9441
|
],
|
|
9486
|
-
shadow:
|
|
9442
|
+
shadow: R ? "shadow-error" : "shadow-default",
|
|
9487
9443
|
borderRadius: "rounded-[12px]"
|
|
9488
9444
|
};
|
|
9489
9445
|
}
|
|
9490
|
-
}, T = p === "password" ? L ? "text" : "password" : p, P = o || A ||
|
|
9446
|
+
}, T = p === "password" ? L ? "text" : "password" : p, P = o || A || w, t1 = I ?? !!(p1 && x && $), _ = i || t1 || (V == null ? void 0 : V.length) || p === "password" && F, c1 = Q(m, i), s1 = [
|
|
9491
9447
|
"relative",
|
|
9492
9448
|
"flex items-center",
|
|
9493
9449
|
"w-full",
|
|
@@ -9496,10 +9452,10 @@ const R8 = () => {
|
|
|
9496
9452
|
"transition-colors duration-200 ease-in-out",
|
|
9497
9453
|
c1.shadow,
|
|
9498
9454
|
...x ? [] : c1.wrapper,
|
|
9499
|
-
k(u).split(" ").find((
|
|
9455
|
+
k(u).split(" ").find((E) => E.startsWith("h-")) || "h-10"
|
|
9500
9456
|
].filter(Boolean).join(" ");
|
|
9501
|
-
return /* @__PURE__ */
|
|
9502
|
-
|
|
9457
|
+
return /* @__PURE__ */ v(
|
|
9458
|
+
Ke,
|
|
9503
9459
|
{
|
|
9504
9460
|
label: e,
|
|
9505
9461
|
hint: t,
|
|
@@ -9507,16 +9463,16 @@ const R8 = () => {
|
|
|
9507
9463
|
name: n,
|
|
9508
9464
|
required: s,
|
|
9509
9465
|
loading: h,
|
|
9510
|
-
formControl:
|
|
9466
|
+
formControl: S,
|
|
9511
9467
|
description: d,
|
|
9512
|
-
loadingComponent: /* @__PURE__ */ l(Z5, { size: u, helperText: !!
|
|
9468
|
+
loadingComponent: /* @__PURE__ */ l(Z5, { size: u, helperText: !!M }),
|
|
9513
9469
|
children: [
|
|
9514
|
-
/* @__PURE__ */
|
|
9470
|
+
/* @__PURE__ */ v("div", { className: s1, children: [
|
|
9515
9471
|
P && /* @__PURE__ */ l("div", { className: "flex items-center pl-3 pr-1 flex-shrink-0 pointer-events-none", children: /* @__PURE__ */ l(
|
|
9516
9472
|
Y8,
|
|
9517
9473
|
{
|
|
9518
9474
|
prefixValue: A,
|
|
9519
|
-
prefixSecondaryValue:
|
|
9475
|
+
prefixSecondaryValue: w,
|
|
9520
9476
|
icon: o
|
|
9521
9477
|
}
|
|
9522
9478
|
) }),
|
|
@@ -9527,7 +9483,7 @@ const R8 = () => {
|
|
|
9527
9483
|
placeholder: a,
|
|
9528
9484
|
value: $,
|
|
9529
9485
|
onChange: G,
|
|
9530
|
-
onBlur:
|
|
9486
|
+
onBlur: Z,
|
|
9531
9487
|
disabled: x || C,
|
|
9532
9488
|
readOnly: C,
|
|
9533
9489
|
autoComplete: "off",
|
|
@@ -9535,10 +9491,10 @@ const R8 = () => {
|
|
|
9535
9491
|
name: n
|
|
9536
9492
|
}
|
|
9537
9493
|
),
|
|
9538
|
-
_ && /* @__PURE__ */
|
|
9494
|
+
_ && /* @__PURE__ */ v(
|
|
9539
9495
|
"div",
|
|
9540
9496
|
{
|
|
9541
|
-
className: `flex items-center pl-1 flex-shrink-0 ${p === "password" &&
|
|
9497
|
+
className: `flex items-center pl-1 flex-shrink-0 ${p === "password" && F ? "pr-0" : "pr-3"}`,
|
|
9542
9498
|
children: [
|
|
9543
9499
|
/* @__PURE__ */ l(
|
|
9544
9500
|
H8,
|
|
@@ -9550,20 +9506,20 @@ const R8 = () => {
|
|
|
9550
9506
|
copied: o1,
|
|
9551
9507
|
type: p,
|
|
9552
9508
|
showPassword: L,
|
|
9553
|
-
showPasswordToggle:
|
|
9509
|
+
showPasswordToggle: F,
|
|
9554
9510
|
onTogglePassword: () => a1(!L)
|
|
9555
9511
|
}
|
|
9556
9512
|
),
|
|
9557
|
-
/* @__PURE__ */ l(j8, { buttons:
|
|
9513
|
+
/* @__PURE__ */ l(j8, { buttons: V })
|
|
9558
9514
|
]
|
|
9559
9515
|
}
|
|
9560
9516
|
)
|
|
9561
9517
|
] }),
|
|
9562
|
-
|
|
9518
|
+
M && /* @__PURE__ */ l("div", { className: "text-[13px] text-[var(--malachite-text-dimmed)] text-left pl-2", children: M })
|
|
9563
9519
|
]
|
|
9564
9520
|
}
|
|
9565
9521
|
);
|
|
9566
|
-
}, Y8 = ({ prefixValue: e, prefixSecondaryValue: t, icon: r }) => /* @__PURE__ */
|
|
9522
|
+
}, Y8 = ({ prefixValue: e, prefixSecondaryValue: t, icon: r }) => /* @__PURE__ */ v("div", { className: "flex items-center gap-1", children: [
|
|
9567
9523
|
r && /* @__PURE__ */ l("span", { className: "flex items-center justify-center text-[var(--malachite-text-dimmed)] w-4 h-4 flex-shrink-0", children: r }),
|
|
9568
9524
|
e && /* @__PURE__ */ l("span", { className: "text-[15px] leading-[1.4] text-[var(--malachite-text-dimmed)] whitespace-nowrap", children: e }),
|
|
9569
9525
|
t && /* @__PURE__ */ l("span", { className: "text-[15px] leading-[1.4] text-[var(--malachite-text-dimmed)] whitespace-nowrap", children: t })
|
|
@@ -9577,7 +9533,7 @@ const R8 = () => {
|
|
|
9577
9533
|
showPassword: s,
|
|
9578
9534
|
showPasswordToggle: i = !0,
|
|
9579
9535
|
onTogglePassword: d
|
|
9580
|
-
}) => /* @__PURE__ */
|
|
9536
|
+
}) => /* @__PURE__ */ v("div", { className: "flex items-center gap-1", children: [
|
|
9581
9537
|
e && /* @__PURE__ */ l("div", { className: "flex items-center justify-center w-5 h-5 flex-shrink-0", children: /* @__PURE__ */ l(
|
|
9582
9538
|
r1.InfoIcon,
|
|
9583
9539
|
{
|
|
@@ -9645,18 +9601,18 @@ const R8 = () => {
|
|
|
9645
9601
|
prefixSecondaryValue: x,
|
|
9646
9602
|
// ellipsis = false,
|
|
9647
9603
|
formControl: A,
|
|
9648
|
-
buttons:
|
|
9604
|
+
buttons: w,
|
|
9649
9605
|
onCopyClick: y,
|
|
9650
|
-
onChange:
|
|
9651
|
-
value:
|
|
9652
|
-
onBlur:
|
|
9653
|
-
rows:
|
|
9654
|
-
maxLength:
|
|
9655
|
-
resize:
|
|
9606
|
+
onChange: S,
|
|
9607
|
+
value: V,
|
|
9608
|
+
onBlur: D,
|
|
9609
|
+
rows: I = 4,
|
|
9610
|
+
maxLength: N,
|
|
9611
|
+
resize: Z = "vertical"
|
|
9656
9612
|
}) => {
|
|
9657
|
-
const [
|
|
9658
|
-
const
|
|
9659
|
-
a1 ||
|
|
9613
|
+
const [M, F] = H(u || ""), L = V !== void 0 ? V : M, a1 = V !== void 0, $ = (k) => {
|
|
9614
|
+
const Q = k.target.value;
|
|
9615
|
+
a1 || F(Q), S == null || S(Q);
|
|
9660
9616
|
}, f1 = (k) => {
|
|
9661
9617
|
switch (k) {
|
|
9662
9618
|
case "small":
|
|
@@ -9668,7 +9624,7 @@ const R8 = () => {
|
|
|
9668
9624
|
default:
|
|
9669
9625
|
return "text-[15px] leading-[1.4]";
|
|
9670
9626
|
}
|
|
9671
|
-
}, o1 = (k,
|
|
9627
|
+
}, o1 = (k, Q) => {
|
|
9672
9628
|
const T = {
|
|
9673
9629
|
small: 20,
|
|
9674
9630
|
medium: 22,
|
|
@@ -9678,10 +9634,10 @@ const R8 = () => {
|
|
|
9678
9634
|
medium: 24,
|
|
9679
9635
|
large: 24
|
|
9680
9636
|
}[k];
|
|
9681
|
-
return `${T *
|
|
9682
|
-
},
|
|
9637
|
+
return `${T * Q + P}px`;
|
|
9638
|
+
}, K = o || b || x, G = i || y && m && L || (w == null ? void 0 : w.length);
|
|
9683
9639
|
return /* @__PURE__ */ l(
|
|
9684
|
-
|
|
9640
|
+
Ke,
|
|
9685
9641
|
{
|
|
9686
9642
|
label: e,
|
|
9687
9643
|
hint: t,
|
|
@@ -9691,7 +9647,7 @@ const R8 = () => {
|
|
|
9691
9647
|
loading: h,
|
|
9692
9648
|
formControl: A,
|
|
9693
9649
|
description: d,
|
|
9694
|
-
loadingComponent: /* @__PURE__ */ l(q8, { size: p, rows:
|
|
9650
|
+
loadingComponent: /* @__PURE__ */ l(q8, { size: p, rows: I }),
|
|
9695
9651
|
children: (() => {
|
|
9696
9652
|
const k = [
|
|
9697
9653
|
"relative",
|
|
@@ -9706,7 +9662,7 @@ const R8 = () => {
|
|
|
9706
9662
|
i ? "shadow-error" : "shadow-default",
|
|
9707
9663
|
i ? "border-[var(--malachite-destructive-border)]" : "border-[var(--malachite-card-border)]",
|
|
9708
9664
|
i ? "focus-within:border-[var(--malachite-destructive-border-hover)] hover:border-[var(--malachite-destructive-border-hover)]" : "focus-within:border-[var(--malachite-control-border-hover)] hover:border-[var(--malachite-control-border-hover)]"
|
|
9709
|
-
].filter(Boolean).join(" "),
|
|
9665
|
+
].filter(Boolean).join(" "), Q = [
|
|
9710
9666
|
"flex-1",
|
|
9711
9667
|
"bg-transparent",
|
|
9712
9668
|
"border-none",
|
|
@@ -9718,25 +9674,25 @@ const R8 = () => {
|
|
|
9718
9674
|
f1(p),
|
|
9719
9675
|
"px-[16px]",
|
|
9720
9676
|
"py-[12px]",
|
|
9721
|
-
|
|
9677
|
+
Z === "none" ? "resize-none" : Z === "vertical" ? "resize-y" : Z === "horizontal" ? "resize-x" : "resize"
|
|
9722
9678
|
].filter(Boolean).join(" "), T = /* @__PURE__ */ l(
|
|
9723
9679
|
"textarea",
|
|
9724
9680
|
{
|
|
9725
9681
|
placeholder: a,
|
|
9726
9682
|
value: m ? u : L,
|
|
9727
9683
|
onChange: $,
|
|
9728
|
-
onBlur:
|
|
9684
|
+
onBlur: D,
|
|
9729
9685
|
disabled: m || !!b || !!x || C,
|
|
9730
9686
|
readOnly: C,
|
|
9731
|
-
rows:
|
|
9732
|
-
maxLength:
|
|
9733
|
-
style: { minHeight: o1(p,
|
|
9734
|
-
className:
|
|
9687
|
+
rows: I,
|
|
9688
|
+
maxLength: N,
|
|
9689
|
+
style: { minHeight: o1(p, I) },
|
|
9690
|
+
className: Q,
|
|
9735
9691
|
name: n
|
|
9736
9692
|
}
|
|
9737
9693
|
);
|
|
9738
|
-
return /* @__PURE__ */
|
|
9739
|
-
|
|
9694
|
+
return /* @__PURE__ */ v("div", { className: k, children: [
|
|
9695
|
+
K && /* @__PURE__ */ l("div", { className: "flex pt-3 pl-3 pr-1 flex-shrink-0 pointer-events-none", children: /* @__PURE__ */ l(
|
|
9740
9696
|
J8,
|
|
9741
9697
|
{
|
|
9742
9698
|
prefixValue: b,
|
|
@@ -9745,7 +9701,7 @@ const R8 = () => {
|
|
|
9745
9701
|
}
|
|
9746
9702
|
) }),
|
|
9747
9703
|
T,
|
|
9748
|
-
G && /* @__PURE__ */
|
|
9704
|
+
G && /* @__PURE__ */ v("div", { className: "flex pt-3 pl-1 pr-3 flex-shrink-0", children: [
|
|
9749
9705
|
/* @__PURE__ */ l(
|
|
9750
9706
|
U8,
|
|
9751
9707
|
{
|
|
@@ -9755,7 +9711,7 @@ const R8 = () => {
|
|
|
9755
9711
|
onCopyClick: y
|
|
9756
9712
|
}
|
|
9757
9713
|
),
|
|
9758
|
-
/* @__PURE__ */ l(O8, { buttons:
|
|
9714
|
+
/* @__PURE__ */ l(O8, { buttons: w })
|
|
9759
9715
|
] })
|
|
9760
9716
|
] });
|
|
9761
9717
|
})()
|
|
@@ -9781,11 +9737,11 @@ const R8 = () => {
|
|
|
9781
9737
|
return `${n * o + s}px`;
|
|
9782
9738
|
})(e, t) }
|
|
9783
9739
|
}
|
|
9784
|
-
), J8 = ({ prefixValue: e, prefixSecondaryValue: t, icon: r }) => /* @__PURE__ */
|
|
9740
|
+
), J8 = ({ prefixValue: e, prefixSecondaryValue: t, icon: r }) => /* @__PURE__ */ v("div", { className: "flex items-start gap-1", children: [
|
|
9785
9741
|
r && /* @__PURE__ */ l("span", { className: "flex items-center justify-center text-[var(--malachite-text-dimmed)] w-4 h-4 flex-shrink-0 mt-1", children: r }),
|
|
9786
9742
|
e && /* @__PURE__ */ l("span", { className: "text-[15px] leading-[1.4] text-[var(--malachite-text-dimmed)] whitespace-nowrap", children: e }),
|
|
9787
9743
|
t && /* @__PURE__ */ l("span", { className: "text-[15px] leading-[1.4] text-[var(--malachite-text-dimmed)] whitespace-nowrap", children: t })
|
|
9788
|
-
] }), U8 = ({ error: e, disabled: t, defaultValue: r, onCopyClick: a }) => /* @__PURE__ */
|
|
9744
|
+
] }), U8 = ({ error: e, disabled: t, defaultValue: r, onCopyClick: a }) => /* @__PURE__ */ v("div", { className: "flex items-start gap-1", children: [
|
|
9789
9745
|
e && /* @__PURE__ */ l("div", { className: "flex items-center justify-center w-5 h-5 flex-shrink-0 mt-1", children: /* @__PURE__ */ l(
|
|
9790
9746
|
r1.InfoIcon,
|
|
9791
9747
|
{
|
|
@@ -9882,8 +9838,8 @@ const R8 = () => {
|
|
|
9882
9838
|
onChange: i,
|
|
9883
9839
|
onShowSizeChange: d
|
|
9884
9840
|
}) => {
|
|
9885
|
-
const h = t > 0 ? t : 10, C = Math.max(1, Math.ceil(r / h)), p = Math.min(Math.max(1, e), C), [u, m] = H(""), b = (
|
|
9886
|
-
const L = Math.min(Math.max(1,
|
|
9841
|
+
const h = t > 0 ? t : 10, C = Math.max(1, Math.ceil(r / h)), p = Math.min(Math.max(1, e), C), [u, m] = H(""), b = (F) => {
|
|
9842
|
+
const L = Math.min(Math.max(1, F), C);
|
|
9887
9843
|
L !== p && (i == null || i(L, h));
|
|
9888
9844
|
}, x = {
|
|
9889
9845
|
minWidth: 32,
|
|
@@ -9901,24 +9857,24 @@ const R8 = () => {
|
|
|
9901
9857
|
cursor: "pointer",
|
|
9902
9858
|
userSelect: "none",
|
|
9903
9859
|
transition: "background-color 120ms ease, border-color 120ms ease, color 120ms ease"
|
|
9904
|
-
}, A = (
|
|
9860
|
+
}, A = (F) => ({
|
|
9905
9861
|
...x,
|
|
9906
9862
|
width: 32,
|
|
9907
9863
|
minWidth: 32,
|
|
9908
|
-
color:
|
|
9909
|
-
opacity:
|
|
9910
|
-
cursor:
|
|
9911
|
-
}),
|
|
9864
|
+
color: F ? "var(--malachite-text-placeholder, rgb(187, 187, 187))" : "var(--malachite-text-primary, rgb(10, 10, 10))",
|
|
9865
|
+
opacity: F ? 0.4 : 1,
|
|
9866
|
+
cursor: F ? "not-allowed" : "pointer"
|
|
9867
|
+
}), w = (F) => ({
|
|
9912
9868
|
...x,
|
|
9913
|
-
border:
|
|
9914
|
-
color:
|
|
9915
|
-
background:
|
|
9869
|
+
border: F ? "1px solid var(--malachite-success-border, rgba(0, 175, 102, 0.2))" : "1px solid transparent",
|
|
9870
|
+
color: F ? "var(--malachite-success-foreground, rgb(2, 122, 66))" : "var(--malachite-text-primary, rgb(10, 10, 10))",
|
|
9871
|
+
background: F ? "var(--malachite-card-background, rgb(255, 255, 255))" : "transparent"
|
|
9916
9872
|
}), y = {
|
|
9917
9873
|
...x,
|
|
9918
9874
|
color: "var(--malachite-text-secondary, rgb(123, 123, 123))",
|
|
9919
9875
|
cursor: "default",
|
|
9920
9876
|
letterSpacing: 1
|
|
9921
|
-
},
|
|
9877
|
+
}, S = {
|
|
9922
9878
|
height: 32,
|
|
9923
9879
|
padding: "0 8px",
|
|
9924
9880
|
border: "1px solid var(--malachite-card-border, rgb(232, 232, 232))",
|
|
@@ -9935,7 +9891,7 @@ const R8 = () => {
|
|
|
9935
9891
|
backgroundRepeat: "no-repeat",
|
|
9936
9892
|
backgroundPosition: "right 8px center",
|
|
9937
9893
|
paddingRight: 28
|
|
9938
|
-
},
|
|
9894
|
+
}, V = {
|
|
9939
9895
|
width: 56,
|
|
9940
9896
|
height: 32,
|
|
9941
9897
|
padding: "0 8px",
|
|
@@ -9946,11 +9902,11 @@ const R8 = () => {
|
|
|
9946
9902
|
fontSize: 13,
|
|
9947
9903
|
textAlign: "center",
|
|
9948
9904
|
outline: "none"
|
|
9949
|
-
},
|
|
9950
|
-
const
|
|
9951
|
-
Number.isNaN(
|
|
9952
|
-
},
|
|
9953
|
-
return /* @__PURE__ */
|
|
9905
|
+
}, D = r === 0 ? 0 : (p - 1) * h + 1, I = Math.min(p * h, r), N = n ? n(r, [D, I]) : `Total ${r.toLocaleString("en-US")} items`, Z = () => {
|
|
9906
|
+
const F = parseInt(u, 10);
|
|
9907
|
+
Number.isNaN(F) || (b(F), m(""));
|
|
9908
|
+
}, M = $8(p, C);
|
|
9909
|
+
return /* @__PURE__ */ v(
|
|
9954
9910
|
"div",
|
|
9955
9911
|
{
|
|
9956
9912
|
className: "mt-4 flex items-center justify-end gap-3 flex-wrap",
|
|
@@ -9965,10 +9921,10 @@ const R8 = () => {
|
|
|
9965
9921
|
color: "var(--malachite-text-primary, rgb(10, 10, 10))",
|
|
9966
9922
|
marginRight: 4
|
|
9967
9923
|
},
|
|
9968
|
-
children:
|
|
9924
|
+
children: N
|
|
9969
9925
|
}
|
|
9970
9926
|
),
|
|
9971
|
-
/* @__PURE__ */
|
|
9927
|
+
/* @__PURE__ */ v("div", { className: "flex items-center gap-1", children: [
|
|
9972
9928
|
/* @__PURE__ */ l(
|
|
9973
9929
|
"button",
|
|
9974
9930
|
{
|
|
@@ -9980,18 +9936,18 @@ const R8 = () => {
|
|
|
9980
9936
|
children: /* @__PURE__ */ l(r1.CaretLeftIcon, { size: 12 })
|
|
9981
9937
|
}
|
|
9982
9938
|
),
|
|
9983
|
-
|
|
9984
|
-
(
|
|
9939
|
+
M.map(
|
|
9940
|
+
(F, L) => F === "ellipsis" ? /* @__PURE__ */ l("span", { style: y, "aria-hidden": "true", children: "•••" }, `e-${L}`) : /* @__PURE__ */ l(
|
|
9985
9941
|
"button",
|
|
9986
9942
|
{
|
|
9987
9943
|
type: "button",
|
|
9988
|
-
"aria-label": `Page ${
|
|
9989
|
-
"aria-current":
|
|
9990
|
-
onClick: () => b(
|
|
9991
|
-
style:
|
|
9992
|
-
children:
|
|
9944
|
+
"aria-label": `Page ${F}`,
|
|
9945
|
+
"aria-current": F === p ? "page" : void 0,
|
|
9946
|
+
onClick: () => b(F),
|
|
9947
|
+
style: w(F === p),
|
|
9948
|
+
children: F.toLocaleString("en-US")
|
|
9993
9949
|
},
|
|
9994
|
-
|
|
9950
|
+
F
|
|
9995
9951
|
)
|
|
9996
9952
|
),
|
|
9997
9953
|
/* @__PURE__ */ l(
|
|
@@ -10011,18 +9967,18 @@ const R8 = () => {
|
|
|
10011
9967
|
{
|
|
10012
9968
|
"aria-label": "Page size",
|
|
10013
9969
|
value: String(t),
|
|
10014
|
-
onChange: (
|
|
10015
|
-
const L = parseInt(
|
|
9970
|
+
onChange: (F) => {
|
|
9971
|
+
const L = parseInt(F.target.value, 10);
|
|
10016
9972
|
Number.isNaN(L) || (d == null || d(p, L), i == null || i(p, L));
|
|
10017
9973
|
},
|
|
10018
|
-
style:
|
|
10019
|
-
children: s.map((
|
|
10020
|
-
|
|
9974
|
+
style: S,
|
|
9975
|
+
children: s.map((F) => /* @__PURE__ */ v("option", { value: F, children: [
|
|
9976
|
+
F,
|
|
10021
9977
|
" / page"
|
|
10022
|
-
] },
|
|
9978
|
+
] }, F))
|
|
10023
9979
|
}
|
|
10024
9980
|
),
|
|
10025
|
-
o && /* @__PURE__ */
|
|
9981
|
+
o && /* @__PURE__ */ v(
|
|
10026
9982
|
"div",
|
|
10027
9983
|
{
|
|
10028
9984
|
className: "flex items-center gap-2",
|
|
@@ -10040,12 +9996,12 @@ const R8 = () => {
|
|
|
10040
9996
|
min: 1,
|
|
10041
9997
|
max: C,
|
|
10042
9998
|
value: u,
|
|
10043
|
-
onChange: (
|
|
10044
|
-
onKeyDown: (
|
|
10045
|
-
|
|
9999
|
+
onChange: (F) => m(F.target.value),
|
|
10000
|
+
onKeyDown: (F) => {
|
|
10001
|
+
F.key === "Enter" && Z();
|
|
10046
10002
|
},
|
|
10047
|
-
onBlur:
|
|
10048
|
-
style:
|
|
10003
|
+
onBlur: Z,
|
|
10004
|
+
style: V
|
|
10049
10005
|
}
|
|
10050
10006
|
),
|
|
10051
10007
|
/* @__PURE__ */ l("span", { children: "Page" })
|
|
@@ -10163,7 +10119,7 @@ const R8 = () => {
|
|
|
10163
10119
|
{
|
|
10164
10120
|
className: "flex flex-[1_0_0] min-w-0 overflow-hidden",
|
|
10165
10121
|
style: we(e),
|
|
10166
|
-
children: /* @__PURE__ */
|
|
10122
|
+
children: /* @__PURE__ */ v(
|
|
10167
10123
|
"button",
|
|
10168
10124
|
{
|
|
10169
10125
|
...u3(e.title, r),
|
|
@@ -10226,64 +10182,64 @@ const R8 = () => {
|
|
|
10226
10182
|
rowVariant: b,
|
|
10227
10183
|
onRow: x,
|
|
10228
10184
|
onClickRow: A,
|
|
10229
|
-
rowSelection:
|
|
10185
|
+
rowSelection: w,
|
|
10230
10186
|
pagination: y,
|
|
10231
|
-
className:
|
|
10232
|
-
style:
|
|
10233
|
-
stickyHeaderTop:
|
|
10234
|
-
scrollX:
|
|
10235
|
-
rowSection:
|
|
10236
|
-
renderSectionDivider:
|
|
10187
|
+
className: S = "",
|
|
10188
|
+
style: V,
|
|
10189
|
+
stickyHeaderTop: D,
|
|
10190
|
+
scrollX: I = !1,
|
|
10191
|
+
rowSection: N,
|
|
10192
|
+
renderSectionDivider: Z
|
|
10237
10193
|
}) => {
|
|
10238
|
-
const [
|
|
10239
|
-
k &&
|
|
10194
|
+
const [M, F] = H(null), L = U(null), a1 = U(null), $ = (k, Q) => {
|
|
10195
|
+
k && Q && Q.scrollLeft !== k.scrollLeft && (Q.scrollLeft = k.scrollLeft);
|
|
10240
10196
|
}, { sortedData: f1, sectionDividers: o1 } = W1(() => {
|
|
10241
10197
|
const k = (_) => {
|
|
10242
|
-
if (!
|
|
10243
|
-
const c1 = e.find((
|
|
10198
|
+
if (!M) return _;
|
|
10199
|
+
const c1 = e.find((E) => E.key === M.key);
|
|
10244
10200
|
if (!c1) return _;
|
|
10245
10201
|
if (typeof c1.sorter == "function") {
|
|
10246
|
-
const
|
|
10247
|
-
return
|
|
10202
|
+
const E = [..._].sort(c1.sorter);
|
|
10203
|
+
return M.direction === "asc" ? E : E.reverse();
|
|
10248
10204
|
}
|
|
10249
|
-
const s1 = c1.dataIndex ??
|
|
10250
|
-
return [..._].sort((
|
|
10251
|
-
const q =
|
|
10252
|
-
return q < J ?
|
|
10205
|
+
const s1 = c1.dataIndex ?? M.key;
|
|
10206
|
+
return [..._].sort((E, R) => {
|
|
10207
|
+
const q = E[s1], J = R[s1];
|
|
10208
|
+
return q < J ? M.direction === "asc" ? -1 : 1 : q > J ? M.direction === "asc" ? 1 : -1 : 0;
|
|
10253
10209
|
});
|
|
10254
10210
|
};
|
|
10255
|
-
if (!
|
|
10211
|
+
if (!N)
|
|
10256
10212
|
return {
|
|
10257
10213
|
sortedData: k(t),
|
|
10258
10214
|
sectionDividers: /* @__PURE__ */ new Map()
|
|
10259
10215
|
};
|
|
10260
|
-
const
|
|
10216
|
+
const Q = [], T = /* @__PURE__ */ new Map();
|
|
10261
10217
|
for (const _ of t) {
|
|
10262
|
-
const c1 =
|
|
10218
|
+
const c1 = N(_);
|
|
10263
10219
|
let s1 = T.get(c1);
|
|
10264
|
-
s1 === void 0 && (s1 =
|
|
10220
|
+
s1 === void 0 && (s1 = Q.length, T.set(c1, s1), Q.push({ key: c1, records: [] })), Q[s1].records.push(_);
|
|
10265
10221
|
}
|
|
10266
10222
|
const P = [], t1 = /* @__PURE__ */ new Map();
|
|
10267
|
-
for (const _ of
|
|
10223
|
+
for (const _ of Q) {
|
|
10268
10224
|
const c1 = k(_.records);
|
|
10269
10225
|
t1.set(P.length, { key: _.key, records: c1 }), P.push(...c1);
|
|
10270
10226
|
}
|
|
10271
10227
|
return { sortedData: P, sectionDividers: t1 };
|
|
10272
|
-
}, [t,
|
|
10273
|
-
|
|
10274
|
-
}, G = (k,
|
|
10228
|
+
}, [t, M, e, N]), K = (k) => {
|
|
10229
|
+
F((Q) => (Q == null ? void 0 : Q.key) === k ? Q.direction === "asc" ? { key: k, direction: "desc" } : null : { key: k, direction: "asc" });
|
|
10230
|
+
}, G = (k, Q) => typeof d == "function" ? d(k) : String(k[d] || Q);
|
|
10275
10231
|
if (u === "detached") {
|
|
10276
10232
|
const k = {
|
|
10277
10233
|
borderBottom: "1px solid var(--malachite-card-border, #e8e8e8)"
|
|
10278
|
-
},
|
|
10234
|
+
}, Q = I ? t9(e) : 0, T = I ? { minWidth: Q } : {}, P = {
|
|
10279
10235
|
border: "1px solid var(--malachite-card-border, #e8e8e8)",
|
|
10280
10236
|
borderRadius: 8,
|
|
10281
10237
|
overflow: "hidden",
|
|
10282
10238
|
...T
|
|
10283
|
-
}, t1 = (
|
|
10284
|
-
const J = G(
|
|
10239
|
+
}, t1 = (E, R, q = !1) => {
|
|
10240
|
+
const J = G(E, R), j = (x == null ? void 0 : x(E, R)) || {}, y1 = b == null ? void 0 : b(E, R), Z1 = A || j.onClick ? () => {
|
|
10285
10241
|
var d1;
|
|
10286
|
-
A == null || A(
|
|
10242
|
+
A == null || A(E, R), (d1 = j.onClick) == null || d1.call(j, E, R);
|
|
10287
10243
|
} : void 0, Y1 = !!Z1, se = q ? {} : k;
|
|
10288
10244
|
return /* @__PURE__ */ l(
|
|
10289
10245
|
"div",
|
|
@@ -10291,7 +10247,7 @@ const R8 = () => {
|
|
|
10291
10247
|
className: `
|
|
10292
10248
|
group bg-white flex min-h-10 items-stretch relative w-full
|
|
10293
10249
|
${Y1 ? "cursor-pointer hover:bg-[#fafafa]" : ""}
|
|
10294
|
-
${(m == null ? void 0 : m(
|
|
10250
|
+
${(m == null ? void 0 : m(E, R)) || ""}
|
|
10295
10251
|
`,
|
|
10296
10252
|
style: y1 ? {
|
|
10297
10253
|
...se,
|
|
@@ -10301,26 +10257,26 @@ const R8 = () => {
|
|
|
10301
10257
|
onClick: Z1,
|
|
10302
10258
|
onDoubleClick: j.onDoubleClick ? () => {
|
|
10303
10259
|
var d1;
|
|
10304
|
-
return (d1 = j.onDoubleClick) == null ? void 0 : d1.call(j,
|
|
10260
|
+
return (d1 = j.onDoubleClick) == null ? void 0 : d1.call(j, E, R);
|
|
10305
10261
|
} : void 0,
|
|
10306
10262
|
onContextMenu: j.onContextMenu ? () => {
|
|
10307
10263
|
var d1;
|
|
10308
|
-
return (d1 = j.onContextMenu) == null ? void 0 : d1.call(j,
|
|
10264
|
+
return (d1 = j.onContextMenu) == null ? void 0 : d1.call(j, E, R);
|
|
10309
10265
|
} : void 0,
|
|
10310
10266
|
onMouseEnter: j.onMouseEnter ? () => {
|
|
10311
10267
|
var d1;
|
|
10312
|
-
return (d1 = j.onMouseEnter) == null ? void 0 : d1.call(j,
|
|
10268
|
+
return (d1 = j.onMouseEnter) == null ? void 0 : d1.call(j, E, R);
|
|
10313
10269
|
} : void 0,
|
|
10314
10270
|
onMouseLeave: j.onMouseLeave ? () => {
|
|
10315
10271
|
var d1;
|
|
10316
|
-
return (d1 = j.onMouseLeave) == null ? void 0 : d1.call(j,
|
|
10272
|
+
return (d1 = j.onMouseLeave) == null ? void 0 : d1.call(j, E, R);
|
|
10317
10273
|
} : void 0,
|
|
10318
10274
|
children: e.map((d1) => /* @__PURE__ */ l(
|
|
10319
10275
|
i9,
|
|
10320
10276
|
{
|
|
10321
10277
|
column: d1,
|
|
10322
|
-
record:
|
|
10323
|
-
index:
|
|
10278
|
+
record: E,
|
|
10279
|
+
index: R,
|
|
10324
10280
|
size: C
|
|
10325
10281
|
},
|
|
10326
10282
|
d1.key
|
|
@@ -10328,11 +10284,11 @@ const R8 = () => {
|
|
|
10328
10284
|
},
|
|
10329
10285
|
J
|
|
10330
10286
|
);
|
|
10331
|
-
}, _ = (
|
|
10287
|
+
}, _ = (E, R = !1) => /* @__PURE__ */ l(
|
|
10332
10288
|
"div",
|
|
10333
10289
|
{
|
|
10334
10290
|
className: "bg-white flex min-h-10 items-stretch w-full",
|
|
10335
|
-
style: { ...
|
|
10291
|
+
style: { ...R ? {} : k, ...T },
|
|
10336
10292
|
children: e.map((q) => (q.title === "" || q.title == null) && q.width !== void 0 ? /* @__PURE__ */ l(
|
|
10337
10293
|
"div",
|
|
10338
10294
|
{
|
|
@@ -10351,18 +10307,18 @@ const R8 = () => {
|
|
|
10351
10307
|
q.key
|
|
10352
10308
|
))
|
|
10353
10309
|
},
|
|
10354
|
-
`skeleton-${
|
|
10355
|
-
), c1 = i ? /* @__PURE__ */ l("div", { className: "flex min-h-10 items-stretch w-full", style: T, children: e.map((
|
|
10310
|
+
`skeleton-${E}`
|
|
10311
|
+
), c1 = i ? /* @__PURE__ */ l("div", { className: "flex min-h-10 items-stretch w-full", style: T, children: e.map((E) => /* @__PURE__ */ l(
|
|
10356
10312
|
n9,
|
|
10357
10313
|
{
|
|
10358
|
-
column:
|
|
10359
|
-
sortDirection: (
|
|
10360
|
-
onSort:
|
|
10314
|
+
column: E,
|
|
10315
|
+
sortDirection: (M == null ? void 0 : M.key) === E.key ? M.direction : null,
|
|
10316
|
+
onSort: E.sorter ? () => K(E.key) : void 0
|
|
10361
10317
|
},
|
|
10362
|
-
|
|
10363
|
-
)) }) : null, s1 =
|
|
10364
|
-
return /* @__PURE__ */
|
|
10365
|
-
/* @__PURE__ */
|
|
10318
|
+
E.key
|
|
10319
|
+
)) }) : null, s1 = D !== void 0 && i && !h;
|
|
10320
|
+
return /* @__PURE__ */ v("div", { className: `w-full ${S}`, style: V, children: [
|
|
10321
|
+
/* @__PURE__ */ v(
|
|
10366
10322
|
"div",
|
|
10367
10323
|
{
|
|
10368
10324
|
className: `bg-[#f7f7f7] flex flex-col items-start ${s1 ? "" : "overflow-clip"} p-[4px] relative rounded-[12px] w-full`,
|
|
@@ -10371,16 +10327,16 @@ const R8 = () => {
|
|
|
10371
10327
|
"div",
|
|
10372
10328
|
{
|
|
10373
10329
|
ref: L,
|
|
10374
|
-
onScroll:
|
|
10330
|
+
onScroll: I ? () => $(L.current, a1.current) : void 0,
|
|
10375
10331
|
style: {
|
|
10376
10332
|
...s1 ? {
|
|
10377
10333
|
position: "sticky",
|
|
10378
|
-
top:
|
|
10334
|
+
top: D,
|
|
10379
10335
|
zIndex: 8,
|
|
10380
10336
|
backgroundColor: "#f7f7f7",
|
|
10381
10337
|
width: "100%"
|
|
10382
10338
|
} : { width: "100%" },
|
|
10383
|
-
...
|
|
10339
|
+
...I ? { overflowX: "auto", scrollbarWidth: "none" } : {}
|
|
10384
10340
|
},
|
|
10385
10341
|
children: c1
|
|
10386
10342
|
}
|
|
@@ -10389,8 +10345,8 @@ const R8 = () => {
|
|
|
10389
10345
|
"div",
|
|
10390
10346
|
{
|
|
10391
10347
|
ref: a1,
|
|
10392
|
-
onScroll:
|
|
10393
|
-
className: `flex flex-col items-start ${
|
|
10348
|
+
onScroll: I ? () => $(a1.current, L.current) : void 0,
|
|
10349
|
+
className: `flex flex-col items-start ${I ? "overflow-x-auto" : "overflow-x-clip"} overflow-y-auto w-full`,
|
|
10394
10350
|
style: {
|
|
10395
10351
|
// Thin, transparent-track scrollbar — Firefox + modern Chromium
|
|
10396
10352
|
// honor these; older Webkit falls back to the default scrollbar.
|
|
@@ -10403,16 +10359,16 @@ const R8 = () => {
|
|
|
10403
10359
|
)
|
|
10404
10360
|
} : {}
|
|
10405
10361
|
},
|
|
10406
|
-
children: a ? /* @__PURE__ */ l("div", { className: "flex flex-col w-full", style: P, children: /* @__PURE__ */
|
|
10362
|
+
children: a ? /* @__PURE__ */ l("div", { className: "flex flex-col w-full", style: P, children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center bg-white w-full py-12", children: [
|
|
10407
10363
|
/* @__PURE__ */ l("div", { className: "text-[var(--malachite-text-secondary)] text-[14px] font-medium mb-1", children: o }),
|
|
10408
10364
|
/* @__PURE__ */ l("div", { className: "text-[var(--malachite-text-secondary)] text-[13px]", children: n })
|
|
10409
10365
|
] }) }) : r ? /* @__PURE__ */ l("div", { className: "flex flex-col w-full", style: P, children: (() => {
|
|
10410
|
-
const
|
|
10411
|
-
return Array.from({ length:
|
|
10412
|
-
(
|
|
10366
|
+
const E = y != null && y.pageSize ? Math.min(y.pageSize, 10) : 5;
|
|
10367
|
+
return Array.from({ length: E }).map(
|
|
10368
|
+
(R, q) => _(q, q === E - 1)
|
|
10413
10369
|
);
|
|
10414
10370
|
})() }) : f1.length === 0 ? /* @__PURE__ */ l("div", { className: "flex flex-col w-full", style: P, children: /* @__PURE__ */ l("div", { className: "flex flex-col items-center justify-center bg-white w-full py-12", children: /* @__PURE__ */ l("div", { className: "text-[var(--malachite-text-secondary)] text-[13px]", children: "No data" }) }) }) : (() => {
|
|
10415
|
-
const
|
|
10371
|
+
const E = (q, J, j) => /* @__PURE__ */ l(
|
|
10416
10372
|
"div",
|
|
10417
10373
|
{
|
|
10418
10374
|
className: "flex flex-col w-full",
|
|
@@ -10424,17 +10380,17 @@ const R8 = () => {
|
|
|
10424
10380
|
`section-card-${j}`
|
|
10425
10381
|
);
|
|
10426
10382
|
if (o1.size === 0)
|
|
10427
|
-
return
|
|
10428
|
-
const
|
|
10429
|
-
return
|
|
10383
|
+
return E(f1, 0, "all");
|
|
10384
|
+
const R = [...o1.keys()].sort((q, J) => q - J);
|
|
10385
|
+
return R.map((q, J) => {
|
|
10430
10386
|
const j = o1.get(q);
|
|
10431
10387
|
if (!j)
|
|
10432
10388
|
return null;
|
|
10433
|
-
const y1 = J + 1 <
|
|
10389
|
+
const y1 = J + 1 < R.length ? R[J + 1] : f1.length, Z1 = f1.slice(q, y1), Y1 = Z == null ? void 0 : Z(
|
|
10434
10390
|
j.key,
|
|
10435
10391
|
j.records
|
|
10436
10392
|
);
|
|
10437
|
-
return /* @__PURE__ */
|
|
10393
|
+
return /* @__PURE__ */ v(P1.Fragment, { children: [
|
|
10438
10394
|
Y1 != null ? /* @__PURE__ */ l(
|
|
10439
10395
|
"div",
|
|
10440
10396
|
{
|
|
@@ -10443,7 +10399,7 @@ const R8 = () => {
|
|
|
10443
10399
|
children: Y1
|
|
10444
10400
|
}
|
|
10445
10401
|
) : null,
|
|
10446
|
-
|
|
10402
|
+
E(Z1, q, j.key)
|
|
10447
10403
|
] }, `section-${j.key}`);
|
|
10448
10404
|
});
|
|
10449
10405
|
})()
|
|
@@ -10469,9 +10425,9 @@ const R8 = () => {
|
|
|
10469
10425
|
] });
|
|
10470
10426
|
}
|
|
10471
10427
|
const p1 = (k) => {
|
|
10472
|
-
const
|
|
10428
|
+
const Q = k.sorter, P = (M == null ? void 0 : M.key) === k.key ? M == null ? void 0 : M.direction : null, t1 = /* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
|
|
10473
10429
|
/* @__PURE__ */ l("span", { children: k.title }),
|
|
10474
|
-
|
|
10430
|
+
Q && /* @__PURE__ */ v("div", { className: "flex flex-col", children: [
|
|
10475
10431
|
/* @__PURE__ */ l(
|
|
10476
10432
|
r1.CaretUpIcon,
|
|
10477
10433
|
{
|
|
@@ -10498,11 +10454,11 @@ const R8 = () => {
|
|
|
10498
10454
|
${k.align === "right" ? "text-right" : ""}
|
|
10499
10455
|
`,
|
|
10500
10456
|
style: { width: k.width },
|
|
10501
|
-
"aria-sort":
|
|
10502
|
-
children:
|
|
10457
|
+
"aria-sort": Q ? o9(P) : void 0,
|
|
10458
|
+
children: Q ? /* @__PURE__ */ l(
|
|
10503
10459
|
"button",
|
|
10504
10460
|
{
|
|
10505
|
-
...u3(k.title, () =>
|
|
10461
|
+
...u3(k.title, () => K(k.key)),
|
|
10506
10462
|
className: "flex w-full items-center cursor-pointer hover:opacity-80 appearance-none bg-transparent border-0 p-0 font-semibold text-inherit text-left",
|
|
10507
10463
|
children: t1
|
|
10508
10464
|
}
|
|
@@ -10511,14 +10467,14 @@ const R8 = () => {
|
|
|
10511
10467
|
k.key
|
|
10512
10468
|
);
|
|
10513
10469
|
};
|
|
10514
|
-
return a ? /* @__PURE__ */ l("div", { className: "w-full", style: { ...
|
|
10470
|
+
return a ? /* @__PURE__ */ l("div", { className: "w-full", style: { ...V }, children: /* @__PURE__ */ l(
|
|
10515
10471
|
"div",
|
|
10516
10472
|
{
|
|
10517
10473
|
className: "overflow-x-auto",
|
|
10518
10474
|
style: {
|
|
10519
10475
|
...h ? { maxHeight: h } : {}
|
|
10520
10476
|
},
|
|
10521
|
-
children: /* @__PURE__ */
|
|
10477
|
+
children: /* @__PURE__ */ v("table", { className: "w-full border-collapse rounded-lg overflow-hidden", children: [
|
|
10522
10478
|
i && /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ l("tr", { children: e.map((k) => /* @__PURE__ */ l(
|
|
10523
10479
|
"th",
|
|
10524
10480
|
{
|
|
@@ -10539,9 +10495,9 @@ const R8 = () => {
|
|
|
10539
10495
|
/* @__PURE__ */ l("tbody", { children: /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l(
|
|
10540
10496
|
"td",
|
|
10541
10497
|
{
|
|
10542
|
-
colSpan: e.length + (
|
|
10498
|
+
colSpan: e.length + (w ? 1 : 0),
|
|
10543
10499
|
className: "px-4 py-12 text-center",
|
|
10544
|
-
children: /* @__PURE__ */
|
|
10500
|
+
children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center", children: [
|
|
10545
10501
|
/* @__PURE__ */ l("div", { className: "table-error-icon w-12 h-12 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ l(r1.WarningTriangleIcon, { size: 24 }) }),
|
|
10546
10502
|
/* @__PURE__ */ l("div", { className: "table-error-title text-lg font-semibold mb-2", children: o }),
|
|
10547
10503
|
/* @__PURE__ */ l("div", { className: "table-error-subtitle text-sm", children: n })
|
|
@@ -10550,7 +10506,7 @@ const R8 = () => {
|
|
|
10550
10506
|
) }) })
|
|
10551
10507
|
] })
|
|
10552
10508
|
}
|
|
10553
|
-
) }) : /* @__PURE__ */
|
|
10509
|
+
) }) : /* @__PURE__ */ v("div", { className: `w-full ${S}`, style: { ...V }, children: [
|
|
10554
10510
|
/* @__PURE__ */ l(
|
|
10555
10511
|
"div",
|
|
10556
10512
|
{
|
|
@@ -10563,14 +10519,14 @@ const R8 = () => {
|
|
|
10563
10519
|
style: {
|
|
10564
10520
|
...h ? { maxHeight: h } : {}
|
|
10565
10521
|
},
|
|
10566
|
-
children: /* @__PURE__ */
|
|
10522
|
+
children: /* @__PURE__ */ v(
|
|
10567
10523
|
"table",
|
|
10568
10524
|
{
|
|
10569
10525
|
className: `w-full ${p === "fixed" || e.some((k) => k.width) ? "table-fixed" : "table-auto"} ${s ? "border-separate table-bordered" : "border-collapse"} rounded-lg overflow-hidden`,
|
|
10570
10526
|
style: { borderSpacing: "0" },
|
|
10571
10527
|
children: [
|
|
10572
10528
|
i && /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ l("tr", { children: e.map((k) => p1(k)) }) }),
|
|
10573
|
-
/* @__PURE__ */ l("tbody", { children: r ? Array.from({ length: 5 }).map((k,
|
|
10529
|
+
/* @__PURE__ */ l("tbody", { children: r ? Array.from({ length: 5 }).map((k, Q) => /* @__PURE__ */ l(
|
|
10574
10530
|
"tr",
|
|
10575
10531
|
{
|
|
10576
10532
|
className: `table-row ${s ? "table-row-bordered" : ""}`,
|
|
@@ -10584,62 +10540,62 @@ const R8 = () => {
|
|
|
10584
10540
|
T.key
|
|
10585
10541
|
))
|
|
10586
10542
|
},
|
|
10587
|
-
|
|
10588
|
-
)) : f1.map((k,
|
|
10589
|
-
const T = G(k,
|
|
10543
|
+
Q
|
|
10544
|
+
)) : f1.map((k, Q) => {
|
|
10545
|
+
const T = G(k, Q), P = (x == null ? void 0 : x(k, Q)) || {}, t1 = b == null ? void 0 : b(k, Q), _ = Q === 0, c1 = Q === t.length - 1, s1 = t1 ? `var(--malachite-table-row-variant-${t1}-background)` : void 0;
|
|
10590
10546
|
return /* @__PURE__ */ l(
|
|
10591
10547
|
"tr",
|
|
10592
10548
|
{
|
|
10593
10549
|
className: `
|
|
10594
10550
|
${s ? "table-row-bordered" : "table-row hover:opacity-80"}
|
|
10595
|
-
${(m == null ? void 0 : m(k,
|
|
10551
|
+
${(m == null ? void 0 : m(k, Q)) || ""}
|
|
10596
10552
|
${A || P.onClick ? "cursor-pointer" : ""}
|
|
10597
10553
|
`,
|
|
10598
10554
|
onClick: A || P.onClick ? () => {
|
|
10599
|
-
var
|
|
10600
|
-
A == null || A(k,
|
|
10555
|
+
var E;
|
|
10556
|
+
A == null || A(k, Q), (E = P.onClick) == null || E.call(P, k, Q);
|
|
10601
10557
|
} : void 0,
|
|
10602
10558
|
onDoubleClick: P.onDoubleClick ? () => {
|
|
10603
|
-
var
|
|
10604
|
-
return (
|
|
10559
|
+
var E;
|
|
10560
|
+
return (E = P.onDoubleClick) == null ? void 0 : E.call(
|
|
10605
10561
|
P,
|
|
10606
10562
|
k,
|
|
10607
|
-
|
|
10563
|
+
Q
|
|
10608
10564
|
);
|
|
10609
10565
|
} : void 0,
|
|
10610
10566
|
onContextMenu: P.onContextMenu ? () => {
|
|
10611
|
-
var
|
|
10612
|
-
return (
|
|
10567
|
+
var E;
|
|
10568
|
+
return (E = P.onContextMenu) == null ? void 0 : E.call(
|
|
10613
10569
|
P,
|
|
10614
10570
|
k,
|
|
10615
|
-
|
|
10571
|
+
Q
|
|
10616
10572
|
);
|
|
10617
10573
|
} : void 0,
|
|
10618
10574
|
onMouseEnter: P.onMouseEnter ? () => {
|
|
10619
|
-
var
|
|
10620
|
-
return (
|
|
10575
|
+
var E;
|
|
10576
|
+
return (E = P.onMouseEnter) == null ? void 0 : E.call(P, k, Q);
|
|
10621
10577
|
} : void 0,
|
|
10622
10578
|
onMouseLeave: P.onMouseLeave ? () => {
|
|
10623
|
-
var
|
|
10624
|
-
return (
|
|
10579
|
+
var E;
|
|
10580
|
+
return (E = P.onMouseLeave) == null ? void 0 : E.call(P, k, Q);
|
|
10625
10581
|
} : void 0,
|
|
10626
|
-
children: e.map((
|
|
10627
|
-
const
|
|
10582
|
+
children: e.map((E) => {
|
|
10583
|
+
const R = E === e[0], q = E === e[e.length - 1];
|
|
10628
10584
|
return /* @__PURE__ */ l(
|
|
10629
10585
|
l9,
|
|
10630
10586
|
{
|
|
10631
|
-
column:
|
|
10587
|
+
column: E,
|
|
10632
10588
|
record: k,
|
|
10633
|
-
index:
|
|
10589
|
+
index: Q,
|
|
10634
10590
|
size: C,
|
|
10635
10591
|
bordered: s,
|
|
10636
10592
|
isFirstRow: _,
|
|
10637
10593
|
isLastRow: c1,
|
|
10638
|
-
isFirstColumn:
|
|
10594
|
+
isFirstColumn: R,
|
|
10639
10595
|
isLastColumn: q,
|
|
10640
10596
|
variantBackground: s1
|
|
10641
10597
|
},
|
|
10642
|
-
|
|
10598
|
+
E.key
|
|
10643
10599
|
);
|
|
10644
10600
|
})
|
|
10645
10601
|
},
|
|
@@ -10708,32 +10664,32 @@ const R8 = () => {
|
|
|
10708
10664
|
}) => {
|
|
10709
10665
|
const n = c9[o], [s, i] = H(!1), [d, h] = H(null), C = U(null), p = U(null), u = B1(() => {
|
|
10710
10666
|
var L, a1;
|
|
10711
|
-
const
|
|
10712
|
-
if (!
|
|
10667
|
+
const w = C.current;
|
|
10668
|
+
if (!w)
|
|
10713
10669
|
return;
|
|
10714
|
-
const y =
|
|
10715
|
-
h({ top:
|
|
10670
|
+
const y = w.getBoundingClientRect(), S = ((L = p.current) == null ? void 0 : L.offsetWidth) || a, V = ((a1 = p.current) == null ? void 0 : a1.offsetHeight) || 0, D = 8, I = y.right - S, N = window.innerWidth - S - D, Z = Math.max(D, Math.min(I, N)), M = window.innerHeight - y.bottom, F = V > 0 && M < V + D ? y.top - V - 4 : y.bottom + 4;
|
|
10671
|
+
h({ top: F, left: Z });
|
|
10716
10672
|
}, [a]);
|
|
10717
10673
|
u1(() => {
|
|
10718
10674
|
if (!s)
|
|
10719
10675
|
return;
|
|
10720
10676
|
u();
|
|
10721
|
-
const
|
|
10722
|
-
var
|
|
10723
|
-
const
|
|
10724
|
-
!((
|
|
10725
|
-
},
|
|
10726
|
-
|
|
10677
|
+
const w = () => u(), y = (V) => {
|
|
10678
|
+
var I, N;
|
|
10679
|
+
const D = V.target;
|
|
10680
|
+
!((I = C.current) != null && I.contains(D)) && !((N = p.current) != null && N.contains(D)) && i(!1);
|
|
10681
|
+
}, S = (V) => {
|
|
10682
|
+
V.key === "Escape" && i(!1);
|
|
10727
10683
|
};
|
|
10728
|
-
return window.addEventListener("scroll",
|
|
10729
|
-
window.removeEventListener("scroll",
|
|
10684
|
+
return window.addEventListener("scroll", w, !0), window.addEventListener("resize", w), document.addEventListener("mousedown", y, !0), document.addEventListener("keydown", S), () => {
|
|
10685
|
+
window.removeEventListener("scroll", w, !0), window.removeEventListener("resize", w), document.removeEventListener("mousedown", y, !0), document.removeEventListener("keydown", S);
|
|
10730
10686
|
};
|
|
10731
10687
|
}, [s, u]), oe(() => {
|
|
10732
10688
|
s && p.current && u();
|
|
10733
10689
|
}, [s, u]);
|
|
10734
|
-
const m = (
|
|
10690
|
+
const m = (w) => {
|
|
10735
10691
|
var y;
|
|
10736
|
-
|
|
10692
|
+
w.type === "divider" || w.disabled || ((y = w.onClick) == null || y.call(w), i(!1));
|
|
10737
10693
|
}, b = {
|
|
10738
10694
|
display: "inline-flex",
|
|
10739
10695
|
alignItems: "center",
|
|
@@ -10764,7 +10720,7 @@ const R8 = () => {
|
|
|
10764
10720
|
gap: 2,
|
|
10765
10721
|
visibility: d ? "visible" : "hidden",
|
|
10766
10722
|
opacity: d ? 1 : 0
|
|
10767
|
-
}, A = (
|
|
10723
|
+
}, A = (w) => w.type === "divider" ? {
|
|
10768
10724
|
height: 1,
|
|
10769
10725
|
background: "var(--malachite-card-border, rgb(232, 232, 232))",
|
|
10770
10726
|
margin: "4px 0"
|
|
@@ -10775,16 +10731,16 @@ const R8 = () => {
|
|
|
10775
10731
|
borderRadius: 8,
|
|
10776
10732
|
fontSize: 13,
|
|
10777
10733
|
fontWeight: 400,
|
|
10778
|
-
color:
|
|
10779
|
-
cursor:
|
|
10780
|
-
opacity:
|
|
10734
|
+
color: w.danger ? "var(--malachite-text-destructive, rgb(237, 53, 54))" : "var(--malachite-text-primary, rgb(10, 10, 10))",
|
|
10735
|
+
cursor: w.disabled ? "not-allowed" : "pointer",
|
|
10736
|
+
opacity: w.disabled ? 0.5 : 1,
|
|
10781
10737
|
userSelect: "none",
|
|
10782
10738
|
background: "transparent",
|
|
10783
10739
|
border: "none",
|
|
10784
10740
|
textAlign: "left",
|
|
10785
10741
|
width: "100%"
|
|
10786
10742
|
};
|
|
10787
|
-
return /* @__PURE__ */
|
|
10743
|
+
return /* @__PURE__ */ v(w1, { children: [
|
|
10788
10744
|
/* @__PURE__ */ l(
|
|
10789
10745
|
"button",
|
|
10790
10746
|
{
|
|
@@ -10793,10 +10749,10 @@ const R8 = () => {
|
|
|
10793
10749
|
"aria-label": t,
|
|
10794
10750
|
"aria-haspopup": "menu",
|
|
10795
10751
|
"aria-expanded": s,
|
|
10796
|
-
onClick: (
|
|
10797
|
-
|
|
10752
|
+
onClick: (w) => {
|
|
10753
|
+
w.stopPropagation(), i((y) => !y);
|
|
10798
10754
|
},
|
|
10799
|
-
onMouseDown: (
|
|
10755
|
+
onMouseDown: (w) => w.stopPropagation(),
|
|
10800
10756
|
style: b,
|
|
10801
10757
|
children: r ?? /* @__PURE__ */ l(r1.MoreHorizontalIcon, { size: n.icon })
|
|
10802
10758
|
}
|
|
@@ -10808,27 +10764,27 @@ const R8 = () => {
|
|
|
10808
10764
|
ref: p,
|
|
10809
10765
|
role: "menu",
|
|
10810
10766
|
style: x,
|
|
10811
|
-
onMouseDown: (
|
|
10812
|
-
onClick: (
|
|
10767
|
+
onMouseDown: (w) => w.stopPropagation(),
|
|
10768
|
+
onClick: (w) => w.stopPropagation(),
|
|
10813
10769
|
children: e.map(
|
|
10814
|
-
(
|
|
10770
|
+
(w) => w.type === "divider" ? /* @__PURE__ */ l("div", { style: A(w) }, w.key) : /* @__PURE__ */ v(
|
|
10815
10771
|
"button",
|
|
10816
10772
|
{
|
|
10817
10773
|
type: "button",
|
|
10818
10774
|
role: "menuitem",
|
|
10819
|
-
disabled:
|
|
10820
|
-
title:
|
|
10821
|
-
onClick: () => m(
|
|
10775
|
+
disabled: w.disabled,
|
|
10776
|
+
title: w.tooltip,
|
|
10777
|
+
onClick: () => m(w),
|
|
10822
10778
|
onMouseEnter: (y) => {
|
|
10823
|
-
|
|
10779
|
+
w.disabled || (y.currentTarget.style.background = "rgba(0, 0, 0, 0.04)");
|
|
10824
10780
|
},
|
|
10825
10781
|
onMouseLeave: (y) => {
|
|
10826
10782
|
y.currentTarget.style.background = "transparent";
|
|
10827
10783
|
},
|
|
10828
|
-
style: A(
|
|
10784
|
+
style: A(w),
|
|
10829
10785
|
children: [
|
|
10830
|
-
|
|
10831
|
-
|
|
10786
|
+
w.label,
|
|
10787
|
+
w.icon && /* @__PURE__ */ l(
|
|
10832
10788
|
"span",
|
|
10833
10789
|
{
|
|
10834
10790
|
style: {
|
|
@@ -10838,12 +10794,12 @@ const R8 = () => {
|
|
|
10838
10794
|
paddingLeft: 16,
|
|
10839
10795
|
color: "var(--malachite-icon-secondary, rgb(148, 148, 148))"
|
|
10840
10796
|
},
|
|
10841
|
-
children:
|
|
10797
|
+
children: w.icon
|
|
10842
10798
|
}
|
|
10843
10799
|
)
|
|
10844
10800
|
]
|
|
10845
10801
|
},
|
|
10846
|
-
|
|
10802
|
+
w.key
|
|
10847
10803
|
)
|
|
10848
10804
|
)
|
|
10849
10805
|
}
|
|
@@ -11044,11 +11000,11 @@ const R8 = () => {
|
|
|
11044
11000
|
const h = m9[s], C = t ? h.paddingWithIcon : h.padding, p = w9[i], u = n && !o, m = u && !!d, b = m ? ` ${f9}` : "";
|
|
11045
11001
|
let x;
|
|
11046
11002
|
n ? a ? x = u ? `${p.selected}${b}` : p.selected : u ? x = `${p.base} ${p.hover}${b}` : x = p.base : x = b9;
|
|
11047
|
-
const A = o ? "opacity-50 cursor-not-allowed pointer-events-none" : "",
|
|
11048
|
-
return m ? /* @__PURE__ */
|
|
11003
|
+
const A = o ? "opacity-50 cursor-not-allowed pointer-events-none" : "", w = `${g9} ${h.text} ${C} ${x} ${A} ${r}`, y = t ? /* @__PURE__ */ l("span", { className: "inline-flex items-center justify-center w-4 h-4 shrink-0 [&>img]:max-w-full [&>img]:max-h-full [&>img]:object-contain", children: t }) : null;
|
|
11004
|
+
return m ? /* @__PURE__ */ v("button", { type: "button", className: `${ie} ${w}`, onClick: d, children: [
|
|
11049
11005
|
y,
|
|
11050
11006
|
e
|
|
11051
|
-
] }) : /* @__PURE__ */
|
|
11007
|
+
] }) : /* @__PURE__ */ v("div", { className: w, children: [
|
|
11052
11008
|
y,
|
|
11053
11009
|
e
|
|
11054
11010
|
] });
|
|
@@ -11110,7 +11066,7 @@ const R8 = () => {
|
|
|
11110
11066
|
}, Xe = 2, v9 = {
|
|
11111
11067
|
small: { track: 28, height: 16, knob: 12 },
|
|
11112
11068
|
medium: { track: 36, height: 20, knob: 16 }
|
|
11113
|
-
},
|
|
11069
|
+
}, Ka = ({
|
|
11114
11070
|
checked: e,
|
|
11115
11071
|
onChange: t,
|
|
11116
11072
|
disabled: r = !1,
|
|
@@ -11296,7 +11252,7 @@ const V9 = () => {
|
|
|
11296
11252
|
}
|
|
11297
11253
|
}
|
|
11298
11254
|
);
|
|
11299
|
-
},
|
|
11255
|
+
}, Ra = {
|
|
11300
11256
|
Button: Z9,
|
|
11301
11257
|
Input: F9,
|
|
11302
11258
|
Avatar: N9
|
|
@@ -11328,7 +11284,7 @@ const V9 = () => {
|
|
|
11328
11284
|
}) => {
|
|
11329
11285
|
const s = U(null), [i, d] = H(0);
|
|
11330
11286
|
oe(() => {
|
|
11331
|
-
var
|
|
11287
|
+
var Z;
|
|
11332
11288
|
const C = s.current;
|
|
11333
11289
|
if (!C)
|
|
11334
11290
|
return;
|
|
@@ -11336,12 +11292,12 @@ const V9 = () => {
|
|
|
11336
11292
|
(p instanceof Document || p instanceof ShadowRoot) && P9(p);
|
|
11337
11293
|
const u = typeof ResizeObserver < "u", m = typeof MutationObserver < "u";
|
|
11338
11294
|
let b = null, x = !1, A = -1;
|
|
11339
|
-
const
|
|
11295
|
+
const w = () => {
|
|
11340
11296
|
x || b !== null || (b = requestAnimationFrame(y));
|
|
11341
11297
|
}, y = () => {
|
|
11342
11298
|
if (b = null, x || s.current !== C)
|
|
11343
11299
|
return;
|
|
11344
|
-
const
|
|
11300
|
+
const M = Array.from(C.children), F = !!n, L = F ? M[M.length - 1] ?? null : null, a1 = F ? M.slice(0, -1) : M;
|
|
11345
11301
|
for (const o1 of a1)
|
|
11346
11302
|
o1.removeAttribute(ge);
|
|
11347
11303
|
if (L && L.setAttribute(ge, ""), C.scrollWidth <= C.clientWidth) {
|
|
@@ -11356,24 +11312,24 @@ const V9 = () => {
|
|
|
11356
11312
|
d((o1) => o1 === f1 ? o1 : f1), A = C.clientWidth;
|
|
11357
11313
|
};
|
|
11358
11314
|
y();
|
|
11359
|
-
const
|
|
11360
|
-
x || s.current === C && C.clientWidth === A ||
|
|
11361
|
-
},
|
|
11362
|
-
|
|
11363
|
-
const
|
|
11364
|
-
if (
|
|
11365
|
-
|
|
11366
|
-
for (const
|
|
11367
|
-
|
|
11315
|
+
const S = () => {
|
|
11316
|
+
x || s.current === C && C.clientWidth === A || w();
|
|
11317
|
+
}, V = u ? new ResizeObserver(S) : null;
|
|
11318
|
+
V == null || V.observe(C);
|
|
11319
|
+
const D = u ? new ResizeObserver(w) : null, I = () => {
|
|
11320
|
+
if (D) {
|
|
11321
|
+
D.disconnect();
|
|
11322
|
+
for (const M of Array.from(C.children))
|
|
11323
|
+
D.observe(M);
|
|
11368
11324
|
}
|
|
11369
11325
|
};
|
|
11370
|
-
|
|
11371
|
-
const
|
|
11372
|
-
|
|
11326
|
+
I();
|
|
11327
|
+
const N = m ? new MutationObserver(() => {
|
|
11328
|
+
I(), w();
|
|
11373
11329
|
}) : null;
|
|
11374
|
-
return
|
|
11330
|
+
return N == null || N.observe(C, { childList: !0 }), typeof document < "u" && ((Z = document.fonts) != null && Z.ready) && document.fonts.ready.then(w).catch(() => {
|
|
11375
11331
|
}), () => {
|
|
11376
|
-
x = !0, b !== null && cancelAnimationFrame(b),
|
|
11332
|
+
x = !0, b !== null && cancelAnimationFrame(b), V == null || V.disconnect(), D == null || D.disconnect(), N == null || N.disconnect();
|
|
11377
11333
|
};
|
|
11378
11334
|
}, [t, r, a]);
|
|
11379
11335
|
const h = {
|
|
@@ -11386,7 +11342,7 @@ const V9 = () => {
|
|
|
11386
11342
|
minWidth: 0,
|
|
11387
11343
|
width: "100%"
|
|
11388
11344
|
};
|
|
11389
|
-
return /* @__PURE__ */
|
|
11345
|
+
return /* @__PURE__ */ v("div", { ref: s, className: o, style: h, "data-overflow-row": "", children: [
|
|
11390
11346
|
e,
|
|
11391
11347
|
n ? /* @__PURE__ */ l(
|
|
11392
11348
|
"div",
|
|
@@ -11397,7 +11353,7 @@ const V9 = () => {
|
|
|
11397
11353
|
}
|
|
11398
11354
|
) : null
|
|
11399
11355
|
] });
|
|
11400
|
-
},
|
|
11356
|
+
}, K9 = "w-full overflow-hidden bg-[var(--malachite-card-dimmed-background)]", R9 = "h-full transition-[width] duration-200 ease-in-out bg-[var(--malachite-text-primary)]", Ga = ({
|
|
11401
11357
|
value: e,
|
|
11402
11358
|
color: t,
|
|
11403
11359
|
trackColor: r,
|
|
@@ -11417,7 +11373,7 @@ const V9 = () => {
|
|
|
11417
11373
|
"aria-valuenow": Math.round(d),
|
|
11418
11374
|
"aria-label": o,
|
|
11419
11375
|
"aria-labelledby": n,
|
|
11420
|
-
className: `${
|
|
11376
|
+
className: `${K9} ${s}`,
|
|
11421
11377
|
style: {
|
|
11422
11378
|
height: `${a}px`,
|
|
11423
11379
|
borderRadius: `${h}px`,
|
|
@@ -11427,7 +11383,7 @@ const V9 = () => {
|
|
|
11427
11383
|
children: /* @__PURE__ */ l(
|
|
11428
11384
|
"div",
|
|
11429
11385
|
{
|
|
11430
|
-
className:
|
|
11386
|
+
className: R9,
|
|
11431
11387
|
style: {
|
|
11432
11388
|
width: `${d}%`,
|
|
11433
11389
|
...t && { background: t }
|
|
@@ -11458,7 +11414,7 @@ const V9 = () => {
|
|
|
11458
11414
|
style: C = {}
|
|
11459
11415
|
}) => {
|
|
11460
11416
|
const p = `${T9} ${G9[d]} ${h}`, u = `${H9} ${W9[o]}`;
|
|
11461
|
-
return /* @__PURE__ */
|
|
11417
|
+
return /* @__PURE__ */ v(
|
|
11462
11418
|
"div",
|
|
11463
11419
|
{
|
|
11464
11420
|
className: p,
|
|
@@ -11532,9 +11488,9 @@ const V9 = () => {
|
|
|
11532
11488
|
logo: r,
|
|
11533
11489
|
onClose: a,
|
|
11534
11490
|
footer: o
|
|
11535
|
-
}) => /* @__PURE__ */
|
|
11536
|
-
/* @__PURE__ */
|
|
11537
|
-
/* @__PURE__ */
|
|
11491
|
+
}) => /* @__PURE__ */ v("div", { className: "flex h-screen w-full overflow-hidden gap-3 bg-[var(--malachite-card-sunken-background)] p-3", children: [
|
|
11492
|
+
/* @__PURE__ */ v("div", { className: "flex min-w-0 flex-1 flex-col items-center px-[60px] py-[40px]", children: [
|
|
11493
|
+
/* @__PURE__ */ v("div", { className: "flex h-6 w-full shrink-0 items-center justify-between", children: [
|
|
11538
11494
|
/* @__PURE__ */ l("span", { className: "size-6 shrink-0", "aria-hidden": !0 }),
|
|
11539
11495
|
r ?? /* @__PURE__ */ l("span", { className: "size-6 shrink-0", "aria-hidden": !0 }),
|
|
11540
11496
|
/* @__PURE__ */ l("span", { className: "flex size-6 shrink-0 items-center justify-center", children: a ? /* @__PURE__ */ l(
|
|
@@ -11548,7 +11504,7 @@ const V9 = () => {
|
|
|
11548
11504
|
/* @__PURE__ */ l("div", { className: "flex w-full min-h-0 flex-1 flex-col overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", children: /* @__PURE__ */ l("div", { className: "m-auto flex w-full max-w-[380px] flex-col items-center py-10", children: e }) }),
|
|
11549
11505
|
/* @__PURE__ */ l("div", { className: "flex h-6 shrink-0 items-center justify-center", children: o })
|
|
11550
11506
|
] }),
|
|
11551
|
-
/* @__PURE__ */
|
|
11507
|
+
/* @__PURE__ */ v("div", { className: "relative hidden min-w-0 flex-1 flex-col items-center justify-center overflow-hidden rounded-[28px] bg-[#2b2b2b] px-[60px] py-[40px] lg:flex", children: [
|
|
11552
11508
|
a ? /* @__PURE__ */ l(
|
|
11553
11509
|
c2,
|
|
11554
11510
|
{
|
|
@@ -11567,7 +11523,7 @@ const V9 = () => {
|
|
|
11567
11523
|
onToggle: n,
|
|
11568
11524
|
expanded: s = !0
|
|
11569
11525
|
}) => {
|
|
11570
|
-
const i = typeof n == "function", d = `flex w-full items-center gap-2 ${o ? "pl-5" : ""}`, h = /* @__PURE__ */
|
|
11526
|
+
const i = typeof n == "function", d = `flex w-full items-center gap-2 ${o ? "pl-5" : ""}`, h = /* @__PURE__ */ v(w1, { children: [
|
|
11571
11527
|
/* @__PURE__ */ l(
|
|
11572
11528
|
"span",
|
|
11573
11529
|
{
|
|
@@ -11600,9 +11556,9 @@ const V9 = () => {
|
|
|
11600
11556
|
children: h
|
|
11601
11557
|
}
|
|
11602
11558
|
) : /* @__PURE__ */ l("div", { className: d, children: h });
|
|
11603
|
-
}, qa = ({ children: e }) => /* @__PURE__ */ l("div", { className: "flex w-full flex-col gap-4 rounded-2xl bg-white/10 p-5", children: e }), Ja = ({ icon: e, label: t, tag: r, description: a }) => /* @__PURE__ */
|
|
11604
|
-
/* @__PURE__ */
|
|
11605
|
-
/* @__PURE__ */
|
|
11559
|
+
}, qa = ({ children: e }) => /* @__PURE__ */ l("div", { className: "flex w-full flex-col gap-4 rounded-2xl bg-white/10 p-5", children: e }), Ja = ({ icon: e, label: t, tag: r, description: a }) => /* @__PURE__ */ v("div", { className: "flex w-full flex-col gap-0.5", children: [
|
|
11560
|
+
/* @__PURE__ */ v("div", { className: "flex w-full items-center gap-0.5", children: [
|
|
11561
|
+
/* @__PURE__ */ v("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
11606
11562
|
/* @__PURE__ */ l("span", { className: "flex size-[13px] shrink-0 items-center justify-center text-[var(--malachite-text-primary)]", children: e }),
|
|
11607
11563
|
/* @__PURE__ */ l("p", { className: "whitespace-nowrap font-medium text-sm text-[var(--malachite-text-primary)] tracking-[0.14px]", children: t })
|
|
11608
11564
|
] }),
|
|
@@ -11621,7 +11577,7 @@ export {
|
|
|
11621
11577
|
La as ActionMenu,
|
|
11622
11578
|
ta as Alert,
|
|
11623
11579
|
ra as Avatar,
|
|
11624
|
-
|
|
11580
|
+
Ke as BaseFormComponent,
|
|
11625
11581
|
ne as Button,
|
|
11626
11582
|
aa as ButtonList,
|
|
11627
11583
|
oa as Card,
|
|
@@ -11658,7 +11614,7 @@ export {
|
|
|
11658
11614
|
Pa as Radio,
|
|
11659
11615
|
da as Search,
|
|
11660
11616
|
wa as ShadowEscape,
|
|
11661
|
-
|
|
11617
|
+
Ra as Skeleton,
|
|
11662
11618
|
be as Spacer,
|
|
11663
11619
|
s8 as SpacingSize,
|
|
11664
11620
|
zt as Spinner,
|
|
@@ -11675,7 +11631,7 @@ export {
|
|
|
11675
11631
|
_4 as Tag,
|
|
11676
11632
|
Sa as TextArea,
|
|
11677
11633
|
Ua as ThemeScope,
|
|
11678
|
-
|
|
11634
|
+
Ka as Toggle,
|
|
11679
11635
|
U1 as Tooltip,
|
|
11680
11636
|
X8 as TruncatedTooltip,
|
|
11681
11637
|
Da as Typography,
|