@memobit/libs 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +511 -507
- package/dist/version.json +4 -4
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Z1, { Component as K2, Fragment as Q2, createContext as p0, forwardRef as _1, useCallback as E, useContext as v0, useEffect as F, useId as g0, useImperativeHandle as u2, useMemo as
|
|
1
|
+
import Z1, { Component as K2, Fragment as Q2, createContext as p0, forwardRef as _1, useCallback as E, useContext as v0, useEffect as F, useId as g0, useImperativeHandle as u2, useMemo as h1, useRef as O, useState as L } from "react";
|
|
2
2
|
import { Fragment as r1, jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
3
3
|
import { createPortal as W1 } from "react-dom";
|
|
4
4
|
import { GoogleGenAI as J2 } from "@google/genai";
|
|
@@ -334,14 +334,14 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
334
334
|
width: "1em",
|
|
335
335
|
height: "1em",
|
|
336
336
|
children: /* @__PURE__ */ e("path", { d: "M20 2H4a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z" })
|
|
337
|
-
}),
|
|
337
|
+
}), b3 = /* @__PURE__ */ e("svg", {
|
|
338
338
|
xmlns: "http://www.w3.org/2000/svg",
|
|
339
339
|
viewBox: "0 0 24 24",
|
|
340
340
|
fill: "currentColor",
|
|
341
341
|
width: "1em",
|
|
342
342
|
height: "1em",
|
|
343
343
|
children: /* @__PURE__ */ e("path", { d: "M22 20H2v-2h1.5L6 10l3 4 3-8 2.5 10 1.5-3H22v2h-4.5l-2 4-3-12-2 6-3-4-1.5 6H2v2h20v-2z" })
|
|
344
|
-
}),
|
|
344
|
+
}), x3 = /* @__PURE__ */ r("svg", {
|
|
345
345
|
fill: "currentColor",
|
|
346
346
|
viewBox: "0 0 56 56",
|
|
347
347
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1390,14 +1390,14 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
1390
1390
|
]
|
|
1391
1391
|
})
|
|
1392
1392
|
]
|
|
1393
|
-
}),
|
|
1393
|
+
}), b4 = /* @__PURE__ */ e("svg", {
|
|
1394
1394
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1395
1395
|
viewBox: "0 0 24 24",
|
|
1396
1396
|
fill: "currentColor",
|
|
1397
1397
|
width: "1em",
|
|
1398
1398
|
height: "1em",
|
|
1399
1399
|
children: /* @__PURE__ */ e("path", { d: "M12 2v3a7 7 0 0 1 7 7h3v2h-3a7 7 0 0 1-7 7v3h-2v-3a7 7 0 0 1-7-7H0v-2h3a7 7 0 0 1 7-7V2h2zm0 5a5 5 0 1 0 0 10A5 5 0 0 0 12 7zm0 3a2 2 0 1 1 0 4 2 2 0 0 1 0-4z" })
|
|
1400
|
-
}),
|
|
1400
|
+
}), x4 = /* @__PURE__ */ e("svg", {
|
|
1401
1401
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1402
1402
|
viewBox: "0 0 24 24",
|
|
1403
1403
|
fill: "currentColor",
|
|
@@ -2270,7 +2270,7 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
2270
2270
|
]
|
|
2271
2271
|
})
|
|
2272
2272
|
]
|
|
2273
|
-
}),
|
|
2273
|
+
}), b5 = /* @__PURE__ */ e("svg", {
|
|
2274
2274
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2275
2275
|
viewBox: "0 0 24 24",
|
|
2276
2276
|
fill: "currentColor",
|
|
@@ -2280,7 +2280,7 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
2280
2280
|
transform: "scale(0.046875)",
|
|
2281
2281
|
d: "M504.357,369.342c28.552-102.165-26.231-181.813-108.749-219.062c-23.874-29.37-40.923-75.081-74.437-86.253 c-32.898-10.97-16.618,39.938-31.034,63.21c-1.24-0.014-2.494-0.236-3.714-0.042c-90.293,14.062-153.933,60.39-189.38,132.076 c-13.798,22.162-16.736,33.23-32.814,47.541C35.177,332.702,10.139,362.599,0,386.265c44.041,6.278,80.542-11.962,80.542-11.962 c18.254,23.861,53.896,39.592,58.969,37.901c18.246-37.901-36.501-75.816,30.888-129.15c29.01-12.232,45.614-21.061,79.08-21.061 c9.321,0,33.113,2.252,44.152,6.411c4.851-5.738,9.356-11.463,13.063-16.979l6.944,4.774c-3.438,5.108-7.471,10.333-11.816,15.566 c-4.733,5.669-9.826,11.352-14.907,16.896c-27.236,29.695-54.388,55.427-24.692,55.427c50.916,0,90.508-8.906,114.736-18.684 c2.211,2.037,4.442,4.123,6.708,6.258c6.362,5.988,12.877,12.246,19.627,18.746c16.736,16.113,44.291,30.728,51.325,53.203 c20.27,64.707,58.165,49.966,49.738,22.592C495.95,398.83,494.689,404.007,504.357,369.342z M452.526,331.774 c-6.002,0-10.867-4.866-10.867-10.86c0-6.002,4.864-10.853,10.867-10.853c5.994,0,10.846,4.851,10.846,10.853 C463.372,326.908,458.52,331.774,452.526,331.774z"
|
|
2282
2282
|
})
|
|
2283
|
-
}),
|
|
2283
|
+
}), x5 = /* @__PURE__ */ e("svg", {
|
|
2284
2284
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2285
2285
|
viewBox: "0 0 24 24",
|
|
2286
2286
|
fill: "currentColor",
|
|
@@ -3051,7 +3051,7 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
3051
3051
|
className: "st0",
|
|
3052
3052
|
d: "M25.38,57h64.88V37.34H69.59c-2.17,0-5.19-1.17-6.62-2.6c-1.43-1.43-2.3-4.01-2.3-6.17V7.64l0,0H8.15 c-0.18,0-0.32,0.09-0.41,0.18C7.59,7.92,7.55,8.05,7.55,8.24v106.45c0,0.14,0.09,0.32,0.18,0.41c0.09,0.14,0.28,0.18,0.41,0.18 c22.78,0,58.09,0,81.51,0c0.18,0,0.17-0.09,0.27-0.18c0.14-0.09,0.33-0.28,0.33-0.41v-11.16H25.38c-4.14,0-7.56-3.4-7.56-7.56 V64.55C17.82,60.4,21.22,57,25.38,57L25.38,57z M29.6,68.07h8.25l4.29,7.45l4.16-7.45h8.15l-7.52,11.72l8.23,12.48h-8.42 l-4.75-7.77l-4.78,7.77h-8.35l8.34-12.61L29.6,68.07L29.6,68.07z M58.18,68.07h7.47v18.25h11.7v5.95H58.18V68.07L58.18,68.07z M80.06,84.26l7.1-0.45c0.15,1.15,0.47,2.03,0.94,2.63c0.77,0.97,1.87,1.46,3.3,1.46c1.06,0,1.89-0.25,2.46-0.75 c0.58-0.5,0.87-1.08,0.87-1.74c0-0.63-0.27-1.19-0.82-1.68c-0.55-0.5-1.82-0.96-3.82-1.4c-3.28-0.73-5.61-1.71-7.01-2.93 c-1.41-1.22-2.11-2.77-2.11-4.66c0-1.24,0.36-2.41,1.08-3.52c0.72-1.11,1.8-1.98,3.25-2.61c1.45-0.63,3.43-0.95,5.95-0.95 c3.09,0,5.45,0.57,7.07,1.73c1.62,1.15,2.59,2.98,2.9,5.49l-7.03,0.42c-0.19-1.1-0.58-1.9-1.18-2.39c-0.6-0.5-1.43-0.75-2.48-0.75 c-0.87,0-1.53,0.19-1.97,0.55c-0.44,0.37-0.66,0.82-0.66,1.35c0,0.38,0.18,0.73,0.54,1.04c0.34,0.32,1.18,0.61,2.5,0.89 c3.27,0.7,5.61,1.42,7.01,2.14c1.41,0.72,2.44,1.61,3.09,2.68c0.64,1.07,0.96,2.26,0.96,3.58c0,1.55-0.43,2.98-1.28,4.29 c-0.86,1.31-2.06,2.3-3.6,2.98c-1.54,0.68-3.48,1.01-5.82,1.01c-4.11,0-6.96-0.79-8.55-2.38C81.17,88.71,80.27,86.7,80.06,84.26 L80.06,84.26z M97.79,57h9.93c4.16,0,7.56,3.41,7.56,7.56v31.42c0,4.15-3.41,7.56-7.56,7.56h-9.93v13.55c0,1.61-0.65,3.04-1.7,4.1 c-1.06,1.06-2.49,1.7-4.1,1.7c-29.44,0-56.59,0-86.18,0c-1.61,0-3.04-0.64-4.1-1.7c-1.06-1.06-1.7-2.49-1.7-4.1V5.85 c0-1.61,0.65-3.04,1.7-4.1c1.06-1.06,2.53-1.7,4.1-1.7h58.72C64.66,0,64.8,0,64.94,0c0.64,0,1.29,0.28,1.75,0.69h0.09 c0.09,0.05,0.14,0.09,0.23,0.18l29.99,30.36c0.51,0.51,0.88,1.2,0.88,1.98c0,0.23-0.05,0.41-0.09,0.65V57L97.79,57z M67.52,27.97 V8.94l21.43,21.7H70.19c-0.74,0-1.38-0.32-1.89-0.78C67.84,29.4,67.52,28.71,67.52,27.97L67.52,27.97z"
|
|
3053
3053
|
}) })]
|
|
3054
|
-
}),
|
|
3054
|
+
}), b6 = /* @__PURE__ */ r("svg", {
|
|
3055
3055
|
version: "1.1",
|
|
3056
3056
|
id: "Layer_1",
|
|
3057
3057
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3070,7 +3070,7 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
3070
3070
|
className: "st0",
|
|
3071
3071
|
d: "M21.44,57h68.81V37.34H69.59c-2.17,0-5.19-1.17-6.62-2.6c-1.43-1.43-2.3-4.01-2.3-6.17V7.64l0,0H8.15 c-0.18,0-0.32,0.09-0.41,0.18C7.59,7.92,7.55,8.05,7.55,8.24v106.45c0,0.14,0.09,0.32,0.18,0.41c0.09,0.14,0.28,0.18,0.41,0.18 c22.78,0,58.09,0,81.51,0c0.18,0,0.17-0.09,0.27-0.18c0.14-0.09,0.33-0.28,0.33-0.41v-11.16H21.44c-4.14,0-7.56-3.4-7.56-7.56 V64.55C13.89,60.4,17.29,57,21.44,57L21.44,57z M25.26,70.46h6.69l3.48,6.04l3.38-6.04h6.61l-6.1,9.51l6.68,10.12h-6.83l-3.85-6.31 l-3.88,6.31h-6.77l6.77-10.23L25.26,70.46L25.26,70.46z M47.53,70.46h6.06v14.81h9.49v4.83H47.53V70.46L47.53,70.46z M64.37,83.6 l5.76-0.36c0.12,0.93,0.38,1.64,0.76,2.13c0.63,0.79,1.52,1.19,2.68,1.19c0.86,0,1.53-0.2,2-0.61c0.47-0.41,0.7-0.88,0.7-1.41 c0-0.51-0.22-0.96-0.66-1.37c-0.44-0.4-1.48-0.78-3.1-1.14c-2.66-0.59-4.55-1.39-5.68-2.38c-1.14-0.99-1.71-2.25-1.71-3.78 c0-1.01,0.29-1.96,0.88-2.85c0.58-0.9,1.46-1.6,2.64-2.12c1.17-0.51,2.78-0.77,4.83-0.77c2.51,0,4.42,0.47,5.74,1.4 c1.32,0.93,2.1,2.42,2.35,4.46l-5.7,0.34c-0.15-0.89-0.47-1.54-0.96-1.94c-0.49-0.41-1.16-0.61-2.02-0.61 c-0.7,0-1.24,0.15-1.59,0.45c-0.36,0.3-0.53,0.66-0.53,1.09c0,0.31,0.15,0.59,0.43,0.84c0.28,0.26,0.96,0.5,2.02,0.72 c2.65,0.57,4.55,1.15,5.69,1.74c1.15,0.59,1.98,1.31,2.5,2.18c0.52,0.86,0.78,1.83,0.78,2.91c0,1.26-0.35,2.42-1.04,3.48 c-0.7,1.06-1.67,1.87-2.92,2.42c-1.25,0.55-2.82,0.82-4.72,0.82c-3.34,0-5.65-0.64-6.93-1.93C65.26,87.21,64.53,85.58,64.37,83.6 L64.37,83.6z M83.46,70.46h6.69l3.48,6.04L97,70.46h6.61l-6.1,9.51l6.68,10.12h-6.83l-3.85-6.31l-3.88,6.31h-6.77l6.77-10.23 L83.46,70.46L83.46,70.46z M97.79,57h9.93c4.16,0,7.56,3.41,7.56,7.56v31.42c0,4.15-3.41,7.56-7.56,7.56h-9.93v13.55 c0,1.61-0.65,3.04-1.7,4.1c-1.06,1.06-2.49,1.7-4.1,1.7c-29.44,0-56.59,0-86.18,0c-1.61,0-3.04-0.64-4.1-1.7 c-1.06-1.06-1.7-2.49-1.7-4.1V5.85c0-1.61,0.65-3.04,1.7-4.1c1.06-1.06,2.53-1.7,4.1-1.7h58.72C64.66,0,64.8,0,64.94,0 c0.64,0,1.29,0.28,1.75,0.69h0.09c0.09,0.05,0.14,0.09,0.23,0.18l29.99,30.36c0.51,0.51,0.88,1.2,0.88,1.98 c0,0.23-0.05,0.41-0.09,0.65V57L97.79,57z M67.52,27.97V8.94l21.43,21.7H70.19c-0.74,0-1.38-0.32-1.89-0.78 C67.84,29.4,67.52,28.71,67.52,27.97L67.52,27.97z"
|
|
3072
3072
|
}) })]
|
|
3073
|
-
}),
|
|
3073
|
+
}), x6 = /* @__PURE__ */ e("svg", {
|
|
3074
3074
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3075
3075
|
shapeRendering: "geometricPrecision",
|
|
3076
3076
|
textRendering: "geometricPrecision",
|
|
@@ -4227,7 +4227,7 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
4227
4227
|
width: "1em",
|
|
4228
4228
|
height: "1em",
|
|
4229
4229
|
children: /* @__PURE__ */ e("path", { d: "M12.65 10A6 6 0 1 0 7 19a6 6 0 0 0 5.65-4H17v4h4v-4h2v-4H12.65zM7 17a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-6a2 2 0 1 0 0 4 2 2 0 0 0 0-4z" })
|
|
4230
|
-
}),
|
|
4230
|
+
}), be = /* @__PURE__ */ r("svg", {
|
|
4231
4231
|
viewBox: "0 0 24 24",
|
|
4232
4232
|
fill: "none",
|
|
4233
4233
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4258,7 +4258,7 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
4258
4258
|
]
|
|
4259
4259
|
})
|
|
4260
4260
|
]
|
|
4261
|
-
}),
|
|
4261
|
+
}), xe = /* @__PURE__ */ e("svg", {
|
|
4262
4262
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4263
4263
|
viewBox: "0 0 24 24",
|
|
4264
4264
|
fill: "currentColor",
|
|
@@ -5119,14 +5119,14 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
5119
5119
|
width: "1em",
|
|
5120
5120
|
height: "1em",
|
|
5121
5121
|
children: /* @__PURE__ */ e("path", { d: "M21 11.01L3 11v2h18v-1.99zM3 16h12v2H3zm18-8.99L3 7v2h18V7.01zM21 3H3v2h18V3z" })
|
|
5122
|
-
}),
|
|
5122
|
+
}), b7 = /* @__PURE__ */ e("svg", {
|
|
5123
5123
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5124
5124
|
viewBox: "0 0 24 24",
|
|
5125
5125
|
fill: "currentColor",
|
|
5126
5126
|
width: "1em",
|
|
5127
5127
|
height: "1em",
|
|
5128
5128
|
children: /* @__PURE__ */ e("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" })
|
|
5129
|
-
}),
|
|
5129
|
+
}), x7 = /* @__PURE__ */ e("svg", {
|
|
5130
5130
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5131
5131
|
viewBox: "0 0 24 24",
|
|
5132
5132
|
fill: "currentColor",
|
|
@@ -6250,7 +6250,7 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
6250
6250
|
]
|
|
6251
6251
|
})
|
|
6252
6252
|
]
|
|
6253
|
-
}),
|
|
6253
|
+
}), b8 = /* @__PURE__ */ r("svg", {
|
|
6254
6254
|
height: "1em",
|
|
6255
6255
|
width: "1em",
|
|
6256
6256
|
version: "1.1",
|
|
@@ -6291,7 +6291,7 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
6291
6291
|
]
|
|
6292
6292
|
})
|
|
6293
6293
|
]
|
|
6294
|
-
}),
|
|
6294
|
+
}), x8 = /* @__PURE__ */ r("svg", {
|
|
6295
6295
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6296
6296
|
viewBox: "0 0 24 24",
|
|
6297
6297
|
fill: "currentColor",
|
|
@@ -7597,7 +7597,7 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
7597
7597
|
width: "1em",
|
|
7598
7598
|
height: "1em",
|
|
7599
7599
|
children: /* @__PURE__ */ e("path", { d: "M9 3H7v2H5a2 2 0 0 0-2 2v2h2v2H3v2h2v2a2 2 0 0 0 2 2h2v2h2v-2h2v2h2v-2h2a2 2 0 0 0 2-2v-2h2v-2h-2V9h2V7h-2V5a2 2 0 0 0-2-2h-2V1h-2v2h-2V1H9v2zm8 2v12H7V5h10zm-6 2v2H9V7h2zm4 0h-2v2h2V7zm-4 4H9v2h2v-2zm4 0h-2v2h2v-2z" })
|
|
7600
|
-
}),
|
|
7600
|
+
}), b9 = /* @__PURE__ */ r("svg", {
|
|
7601
7601
|
fill: "currentColor",
|
|
7602
7602
|
version: "1.1",
|
|
7603
7603
|
id: "Capa_1",
|
|
@@ -7630,7 +7630,7 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
7630
7630
|
]
|
|
7631
7631
|
})
|
|
7632
7632
|
]
|
|
7633
|
-
}),
|
|
7633
|
+
}), x9 = /* @__PURE__ */ r("svg", {
|
|
7634
7634
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7635
7635
|
viewBox: "0 0 24 24",
|
|
7636
7636
|
fill: "currentColor",
|
|
@@ -8447,14 +8447,14 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
8447
8447
|
width: "1em",
|
|
8448
8448
|
height: "1em",
|
|
8449
8449
|
children: /* @__PURE__ */ e("path", { d: "M12,2.5l8.84,3.15L19.5,17.35,12,21.5,4.5,17.35,3.16,5.65,12,2.5m0,2.1L6.47,17H8.53l1.11-2.78h4.7L15.45,17H17.5L12,4.6m1.62,7.9H10.39L12,8.63Z" })
|
|
8450
|
-
}),
|
|
8450
|
+
}), bt = /* @__PURE__ */ e("svg", {
|
|
8451
8451
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8452
8452
|
viewBox: "0 0 24 24",
|
|
8453
8453
|
fill: "currentColor",
|
|
8454
8454
|
width: "1em",
|
|
8455
8455
|
height: "1em",
|
|
8456
8456
|
children: /* @__PURE__ */ e("path", { d: "M12.0002 12V14C13.1048 14 14.0002 13.1045 14.0002 12H12.0002ZM12.0002 12H10.0002C10.0002 13.1045 10.8956 14 12.0002 14V12ZM12.0002 12V9.99995C10.8956 9.99995 10.0002 10.8954 10.0002 12H12.0002ZM12.0002 12H14.0002C14.0002 10.8954 13.1048 9.99995 12.0002 9.99995V12ZM12.0002 13H12.0102V11H12.0002V13ZM14.8286 14.8284C12.7579 16.8991 10.5345 18.3566 8.64907 19.0636C6.67076 19.8055 5.45764 19.5995 4.92913 19.071L3.51492 20.4852C4.93902 21.9093 7.23488 21.7299 9.35132 20.9363C11.5606 20.1078 14.0178 18.4677 16.2428 16.2426L14.8286 14.8284ZM4.92913 19.071C4.40061 18.5425 4.19466 17.3294 4.93653 15.3511C5.64358 13.4656 7.10106 11.2422 9.17177 9.17152L7.75756 7.75731C5.5325 9.98237 3.89235 12.4395 3.06387 14.6488C2.2702 16.7653 2.09081 19.0611 3.51492 20.4852L4.92913 19.071ZM9.17177 9.17152C11.2425 7.10082 13.4658 5.64333 15.3513 4.93628C17.3296 4.19441 18.5427 4.40037 19.0713 4.92888L20.4855 3.51467C19.0614 2.09056 16.7655 2.26996 14.6491 3.06362C12.4398 3.8921 9.98262 5.53225 7.75756 7.75731L9.17177 9.17152ZM19.0713 4.92888C19.5998 5.4574 19.8057 6.67051 19.0639 8.64883C18.3568 10.5343 16.8993 12.7577 14.8286 14.8284L16.2428 16.2426C18.4679 14.0175 20.108 11.5604 20.9365 9.35108C21.7302 7.23464 21.9096 4.93878 20.4855 3.51467L19.0713 4.92888ZM14.8286 9.17152C16.8993 11.2422 18.3568 13.4656 19.0639 15.3511C19.8057 17.3294 19.5998 18.5425 19.0713 19.071L20.4855 20.4852C21.9096 19.0611 21.7302 16.7653 20.9365 14.6488C20.108 12.4395 18.4679 9.98237 16.2428 7.75731L14.8286 9.17152ZM19.0713 19.071C18.5427 19.5995 17.3296 19.8055 15.3513 19.0636C13.4658 18.3566 11.2425 16.8991 9.17177 14.8284L7.75756 16.2426C9.98262 18.4677 12.4398 20.1078 14.6491 20.9363C16.7655 21.7299 19.0614 21.9093 20.4855 20.4852L19.0713 19.071ZM9.17177 14.8284C7.10106 12.7577 5.64358 10.5343 4.93653 8.64883C4.19466 6.67051 4.40061 5.4574 4.92913 4.92888L3.51491 3.51467C2.09081 4.93878 2.2702 7.23464 3.06387 9.35108C3.89235 11.5604 5.5325 14.0175 7.75756 16.2426L9.17177 14.8284ZM4.92913 4.92888C5.45764 4.40037 6.67076 4.19441 8.64907 4.93628C10.5345 5.64333 12.7579 7.10082 14.8286 9.17152L16.2428 7.75731C14.0178 5.53225 11.5606 3.8921 9.35132 3.06362C7.23488 2.26996 4.93902 2.09056 3.51491 3.51467L4.92913 4.92888Z" })
|
|
8457
|
-
}),
|
|
8457
|
+
}), xt = /* @__PURE__ */ e("svg", {
|
|
8458
8458
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8459
8459
|
viewBox: "0 0 24 24",
|
|
8460
8460
|
fill: "currentColor",
|
|
@@ -9552,8 +9552,8 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
9552
9552
|
"filetype-typescript": f6,
|
|
9553
9553
|
"filetype-wav": C6,
|
|
9554
9554
|
"filetype-xls": y6,
|
|
9555
|
-
"filetype-xlsx":
|
|
9556
|
-
"filetype-xml":
|
|
9555
|
+
"filetype-xlsx": b6,
|
|
9556
|
+
"filetype-xml": x6,
|
|
9557
9557
|
"filetype-zip": M6,
|
|
9558
9558
|
"fishing-rod": N6,
|
|
9559
9559
|
"folder-open": S6,
|
|
@@ -9595,8 +9595,8 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
9595
9595
|
alarm: f3,
|
|
9596
9596
|
analysis: C3,
|
|
9597
9597
|
announcement: y3,
|
|
9598
|
-
anomaly:
|
|
9599
|
-
ant:
|
|
9598
|
+
anomaly: b3,
|
|
9599
|
+
ant: x3,
|
|
9600
9600
|
antenna: e3,
|
|
9601
9601
|
virus: k3,
|
|
9602
9602
|
api: M3,
|
|
@@ -9635,8 +9635,8 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
9635
9635
|
butterfly: p4,
|
|
9636
9636
|
cake: g4,
|
|
9637
9637
|
calendar: u4,
|
|
9638
|
-
calibrate:
|
|
9639
|
-
camera:
|
|
9638
|
+
calibrate: b4,
|
|
9639
|
+
camera: x4,
|
|
9640
9640
|
candy: M4,
|
|
9641
9641
|
car: k4,
|
|
9642
9642
|
carbs: _4,
|
|
@@ -9685,8 +9685,8 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
9685
9685
|
document: f5,
|
|
9686
9686
|
documents: C5,
|
|
9687
9687
|
dog: y5,
|
|
9688
|
-
dolphin:
|
|
9689
|
-
door:
|
|
9688
|
+
dolphin: b5,
|
|
9689
|
+
door: x5,
|
|
9690
9690
|
dot: M5,
|
|
9691
9691
|
download: k5,
|
|
9692
9692
|
dragon: _5,
|
|
@@ -9749,8 +9749,8 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
9749
9749
|
ingredients: we,
|
|
9750
9750
|
joystick: Ce,
|
|
9751
9751
|
key: ye,
|
|
9752
|
-
knife:
|
|
9753
|
-
laboratory:
|
|
9752
|
+
knife: be,
|
|
9753
|
+
laboratory: xe,
|
|
9754
9754
|
language: Me,
|
|
9755
9755
|
lantern: ke,
|
|
9756
9756
|
layers: _e,
|
|
@@ -9801,8 +9801,8 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
9801
9801
|
noon: w7,
|
|
9802
9802
|
nose: f7,
|
|
9803
9803
|
notes: y7,
|
|
9804
|
-
notice:
|
|
9805
|
-
offline:
|
|
9804
|
+
notice: b7,
|
|
9805
|
+
offline: x7,
|
|
9806
9806
|
online: M7,
|
|
9807
9807
|
optimization: k7,
|
|
9808
9808
|
other: _7,
|
|
@@ -9855,8 +9855,8 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
9855
9855
|
rooms: f8,
|
|
9856
9856
|
router: C8,
|
|
9857
9857
|
ruler: y8,
|
|
9858
|
-
running:
|
|
9859
|
-
salad:
|
|
9858
|
+
running: b8,
|
|
9859
|
+
salad: x8,
|
|
9860
9860
|
salt: M8,
|
|
9861
9861
|
santa: k8,
|
|
9862
9862
|
satellite: _8,
|
|
@@ -9904,8 +9904,8 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
9904
9904
|
target: f9,
|
|
9905
9905
|
taxi: C9,
|
|
9906
9906
|
technical: y9,
|
|
9907
|
-
teeth:
|
|
9908
|
-
telescope:
|
|
9907
|
+
teeth: b9,
|
|
9908
|
+
telescope: x9,
|
|
9909
9909
|
theater: p3,
|
|
9910
9910
|
thermometer: k9,
|
|
9911
9911
|
threshold: _9,
|
|
@@ -9953,8 +9953,8 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
9953
9953
|
burst: ft,
|
|
9954
9954
|
confetti: Ct,
|
|
9955
9955
|
angular: yt,
|
|
9956
|
-
atom:
|
|
9957
|
-
brightness:
|
|
9956
|
+
atom: bt,
|
|
9957
|
+
brightness: xt,
|
|
9958
9958
|
calculator: Mt,
|
|
9959
9959
|
cigarette: kt,
|
|
9960
9960
|
cube: _t,
|
|
@@ -10074,12 +10074,12 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
10074
10074
|
l();
|
|
10075
10075
|
};
|
|
10076
10076
|
}, [t]);
|
|
10077
|
-
}, y2 = p0(void 0),
|
|
10077
|
+
}, y2 = p0(void 0), b2 = () => {
|
|
10078
10078
|
const t = v0(y2);
|
|
10079
10079
|
if (t === void 0) throw new Error("useTheme must be used within a ThemeProvider");
|
|
10080
10080
|
return t;
|
|
10081
|
-
},
|
|
10082
|
-
const { effects: c } =
|
|
10081
|
+
}, x2 = (t) => {
|
|
10082
|
+
const { effects: c } = b2();
|
|
10083
10083
|
return c.effect && c.components.includes(t) ? c.effect : "";
|
|
10084
10084
|
}, W = Z1.forwardRef(({ borders: t = "rounded", children: c, className: l, disabled: a = !1, fullWidth: s = !1, icon: o, iconVariant: i = "default", loading: n = !1, onClick: d, emojiIcon: h, size: p = "medium", style: v, sufixIcon: g, title: w, type: m = "button", variant: u = "default" }, f) => /* @__PURE__ */ e("button", {
|
|
10085
10085
|
ref: f,
|
|
@@ -10102,25 +10102,25 @@ var e3 = /* @__PURE__ */ r("svg", {
|
|
|
10102
10102
|
}));
|
|
10103
10103
|
W.displayName = "Button";
|
|
10104
10104
|
var U1 = ({ children: t, className: c, isOpen: l, noPadding: a = !1, onClose: s, onOverlayClick: o, primary: i, secondary: n, size: d = "auto", tertiary: h, title: p, titleIcon: v, usePortal: g = !1 }) => {
|
|
10105
|
-
const w =
|
|
10105
|
+
const w = x2("Modal");
|
|
10106
10106
|
C2(l);
|
|
10107
10107
|
const m = O(null), u = O(null);
|
|
10108
10108
|
if (F(() => {
|
|
10109
|
-
const
|
|
10109
|
+
const x = (y) => {
|
|
10110
10110
|
y.key === "Escape" && s && s();
|
|
10111
10111
|
};
|
|
10112
|
-
return l && document.addEventListener("keydown",
|
|
10113
|
-
document.removeEventListener("keydown",
|
|
10112
|
+
return l && document.addEventListener("keydown", x), () => {
|
|
10113
|
+
document.removeEventListener("keydown", x);
|
|
10114
10114
|
};
|
|
10115
10115
|
}, [l, s]), !l) return null;
|
|
10116
|
-
const f = i || n || h,
|
|
10116
|
+
const f = i || n || h, b = /* @__PURE__ */ e("div", {
|
|
10117
10117
|
ref: u,
|
|
10118
10118
|
className: "modal-overlay",
|
|
10119
10119
|
onClick: o,
|
|
10120
10120
|
children: /* @__PURE__ */ r("div", {
|
|
10121
10121
|
ref: m,
|
|
10122
10122
|
className: `modal modal--${d} ${c || ""} ${w}`,
|
|
10123
|
-
onClick: (
|
|
10123
|
+
onClick: (x) => x.stopPropagation(),
|
|
10124
10124
|
children: [
|
|
10125
10125
|
/* @__PURE__ */ r("div", {
|
|
10126
10126
|
className: "modal__header",
|
|
@@ -10170,7 +10170,7 @@ var U1 = ({ children: t, className: c, isOpen: l, noPadding: a = !1, onClose: s,
|
|
|
10170
10170
|
]
|
|
10171
10171
|
})
|
|
10172
10172
|
});
|
|
10173
|
-
return g ? W1(
|
|
10173
|
+
return g ? W1(b, document.body) : b;
|
|
10174
10174
|
}, Wl = ({ isOpen: t = !1, message: c, primary: l, title: a }) => /* @__PURE__ */ e(U1, {
|
|
10175
10175
|
isOpen: t,
|
|
10176
10176
|
title: a,
|
|
@@ -10852,7 +10852,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10852
10852
|
"Fri",
|
|
10853
10853
|
"Sat",
|
|
10854
10854
|
"Sun"
|
|
10855
|
-
],
|
|
10855
|
+
], b0 = ({ value: t, onChange: c, mode: l = "single", minDate: a, maxDate: s, disabledDates: o, firstDayOfWeek: i = 0, showToday: n = !0, yearOnly: d = !1, className: h = "", currentMonth: p, onMonthChange: v, showHeader: g = !0, rangeStart: w, onRangeStartChange: m }) => {
|
|
10856
10856
|
const [u, f] = L(() => {
|
|
10857
10857
|
if (t) {
|
|
10858
10858
|
if (t instanceof Date) return new Date(t.getFullYear(), t.getMonth(), 1);
|
|
@@ -10860,10 +10860,10 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10860
10860
|
if (Array.isArray(t) && t.length > 0) return new Date(t[0].getFullYear(), t[0].getMonth(), 1);
|
|
10861
10861
|
}
|
|
10862
10862
|
return new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1);
|
|
10863
|
-
}), [
|
|
10863
|
+
}), [b, x] = L("days"), [y, M] = L(() => {
|
|
10864
10864
|
const S = (p ?? u).getFullYear();
|
|
10865
10865
|
return Math.floor(S / E1) * E1;
|
|
10866
|
-
}), [k, V] = L(null), _ = p ?? u, C = w ?? k, N =
|
|
10866
|
+
}), [k, V] = L(null), _ = p ?? u, C = w ?? k, N = h1(() => ir(_.getFullYear(), _.getMonth(), i), [_, i]), B = i === 1 ? dr : hr, z = (S) => a && S0(S, a) || s && sr(S, s) ? !0 : o ? typeof o == "function" ? o(S) : o.some((D) => j1(D, S)) : !1, Z = (S) => {
|
|
10867
10867
|
if (!t) return !1;
|
|
10868
10868
|
if (l === "single" && t instanceof Date) return j1(S, t);
|
|
10869
10869
|
if (l === "range") {
|
|
@@ -10891,7 +10891,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10891
10891
|
else if (l === "multiple") {
|
|
10892
10892
|
const D = Array.isArray(t) ? t : [], e1 = D.findIndex((a1) => j1(a1, S));
|
|
10893
10893
|
if (e1 >= 0) {
|
|
10894
|
-
const a1 = D.filter((
|
|
10894
|
+
const a1 = D.filter((x1, f1) => f1 !== e1);
|
|
10895
10895
|
c?.(a1.length > 0 ? a1 : void 0);
|
|
10896
10896
|
} else c?.([...D, S]);
|
|
10897
10897
|
}
|
|
@@ -10904,17 +10904,17 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10904
10904
|
v ? v(S) : f(S);
|
|
10905
10905
|
}, t1 = () => {
|
|
10906
10906
|
const S = /* @__PURE__ */ new Date(), D = new Date(S.getFullYear(), S.getMonth(), 1);
|
|
10907
|
-
v ? v(D) : f(D),
|
|
10907
|
+
v ? v(D) : f(D), x("days"), l === "single" && c?.(S);
|
|
10908
10908
|
}, T = () => {
|
|
10909
|
-
g &&
|
|
10909
|
+
g && x("months");
|
|
10910
10910
|
}, G = () => {
|
|
10911
|
-
g && (M(Math.floor(_.getFullYear() / E1) * E1),
|
|
10912
|
-
},
|
|
10911
|
+
g && (M(Math.floor(_.getFullYear() / E1) * E1), x("years"));
|
|
10912
|
+
}, d1 = (S) => {
|
|
10913
10913
|
const D = new Date(_.getFullYear(), S, 1);
|
|
10914
|
-
v ? v(D) : f(D),
|
|
10914
|
+
v ? v(D) : f(D), x("days");
|
|
10915
10915
|
}, v1 = (S) => {
|
|
10916
10916
|
const D = new Date(S, _.getMonth(), 1);
|
|
10917
|
-
v ? v(D) : f(D),
|
|
10917
|
+
v ? v(D) : f(D), x("months");
|
|
10918
10918
|
}, U = () => {
|
|
10919
10919
|
M(y - E1);
|
|
10920
10920
|
}, i1 = () => {
|
|
@@ -10932,7 +10932,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10932
10932
|
}, A1 = (S) => {
|
|
10933
10933
|
const D = ["calendar__day"];
|
|
10934
10934
|
return q(S) ? (Z(S) && D.push("calendar__day--selected"), R(S) && D.push("calendar__day--in-range"), $(S) && D.push("calendar__day--hover-range")) : D.push("calendar__day--other-month"), nr(S) && D.push("calendar__day--today"), or(S) && D.push("calendar__day--weekend"), z(S) && D.push("calendar__day--disabled"), D.join(" ");
|
|
10935
|
-
}, G1 = () =>
|
|
10935
|
+
}, G1 = () => b === "years" ? /* @__PURE__ */ r("div", {
|
|
10936
10936
|
className: "calendar__header",
|
|
10937
10937
|
children: [
|
|
10938
10938
|
/* @__PURE__ */ e("button", {
|
|
@@ -10958,7 +10958,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10958
10958
|
children: "›"
|
|
10959
10959
|
})
|
|
10960
10960
|
]
|
|
10961
|
-
}) :
|
|
10961
|
+
}) : b === "months" ? /* @__PURE__ */ r("div", {
|
|
10962
10962
|
className: "calendar__header",
|
|
10963
10963
|
children: [
|
|
10964
10964
|
/* @__PURE__ */ e("button", {
|
|
@@ -11032,21 +11032,21 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11032
11032
|
const S = (/* @__PURE__ */ new Date()).getMonth(), D = (/* @__PURE__ */ new Date()).getFullYear(), e1 = _.getMonth(), a1 = _.getFullYear();
|
|
11033
11033
|
return /* @__PURE__ */ e("div", {
|
|
11034
11034
|
className: "calendar__months-grid",
|
|
11035
|
-
children: B0.map((
|
|
11035
|
+
children: B0.map((x1, f1) => /* @__PURE__ */ e("button", {
|
|
11036
11036
|
type: "button",
|
|
11037
11037
|
className: `calendar__month-item ${f1 === e1 && a1 === _.getFullYear() ? "calendar__month-item--selected" : ""} ${f1 === S && D === _.getFullYear() ? "calendar__month-item--current" : ""}`,
|
|
11038
|
-
onClick: () =>
|
|
11039
|
-
children:
|
|
11040
|
-
},
|
|
11038
|
+
onClick: () => d1(f1),
|
|
11039
|
+
children: x1.substring(0, 3)
|
|
11040
|
+
}, x1))
|
|
11041
11041
|
});
|
|
11042
11042
|
};
|
|
11043
11043
|
return /* @__PURE__ */ r("div", {
|
|
11044
11044
|
className: `calendar ${h}`,
|
|
11045
11045
|
children: [
|
|
11046
11046
|
g && G1(),
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11047
|
+
b === "years" && X(),
|
|
11048
|
+
b === "months" && K(),
|
|
11049
|
+
b === "days" && /* @__PURE__ */ r(r1, { children: [
|
|
11050
11050
|
n && !d && /* @__PURE__ */ e("div", {
|
|
11051
11051
|
className: "calendar__today-section",
|
|
11052
11052
|
children: /* @__PURE__ */ e("button", {
|
|
@@ -11164,7 +11164,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11164
11164
|
]
|
|
11165
11165
|
});
|
|
11166
11166
|
}, I0 = ({ children: t, className: c, footerContent: l, icon: a, isCollapsed: s, isCollapsible: o, isFooterCollapsible: i = !0, isHighlighted: n, noPadding: d, onClick: h, title: p, variant: v = "default" }) => {
|
|
11167
|
-
const [g, w] = L(s || !1), m =
|
|
11167
|
+
const [g, w] = L(s || !1), m = x2("Card");
|
|
11168
11168
|
F(() => {
|
|
11169
11169
|
typeof s == "boolean" && w(s);
|
|
11170
11170
|
}, [s]);
|
|
@@ -11200,7 +11200,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11200
11200
|
})
|
|
11201
11201
|
]
|
|
11202
11202
|
});
|
|
11203
|
-
}, S1 = _1(({ autoComplete: t = "on", autoFocus: c, disabled: l, error: a, highlighted: s, id: o, label: i, maxLength: n, onBlur: d, onChange: h, onClick: p, onKeyDown: v, onKeyUp: g, placeholder: w, readOnly: m = !1, required: u = !1, success: f, value:
|
|
11203
|
+
}, S1 = _1(({ autoComplete: t = "on", autoFocus: c, disabled: l, error: a, highlighted: s, id: o, label: i, maxLength: n, onBlur: d, onChange: h, onClick: p, onKeyDown: v, onKeyUp: g, placeholder: w, readOnly: m = !1, required: u = !1, success: f, value: b }, x) => /* @__PURE__ */ r("div", {
|
|
11204
11204
|
className: `input-text-wrapper${s ? " input-text-highlighted" : ""}`,
|
|
11205
11205
|
children: [
|
|
11206
11206
|
i && /* @__PURE__ */ r("label", {
|
|
@@ -11220,8 +11220,8 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11220
11220
|
id: o,
|
|
11221
11221
|
maxLength: n,
|
|
11222
11222
|
placeholder: w,
|
|
11223
|
-
ref:
|
|
11224
|
-
value:
|
|
11223
|
+
ref: x,
|
|
11224
|
+
value: b,
|
|
11225
11225
|
onBlur: d,
|
|
11226
11226
|
onChange: (y) => h?.(y.target.value),
|
|
11227
11227
|
onClick: p,
|
|
@@ -11335,9 +11335,9 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11335
11335
|
})
|
|
11336
11336
|
]
|
|
11337
11337
|
}), ha = ({ children: t, className: c = "", defaultCollapsed: l = !1, icon: a, isCollapsed: s, onToggle: o, rightDetails: i, title: n, toggleAccent: d, toggleHighlight: h, toggleMiddleIcon: p, toggleSize: v, toggleSpaceBetween: g, toggleSwap: w, toggleTint: m = "plain", toggleVariant: u, withCard: f = !1 }) => {
|
|
11338
|
-
const [
|
|
11338
|
+
const [b, x] = L(l), y = s !== void 0, M = y ? s : b, k = () => {
|
|
11339
11339
|
const _ = !M;
|
|
11340
|
-
y ||
|
|
11340
|
+
y || x(_), o?.(_);
|
|
11341
11341
|
}, V = !!i;
|
|
11342
11342
|
return /* @__PURE__ */ r("div", {
|
|
11343
11343
|
className: `collapsible-section ${f ? "collapsible-section--with-card" : ""} ${c} ${M ? "collapsible-section__collapsed" : ""}`,
|
|
@@ -11393,7 +11393,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11393
11393
|
children: t
|
|
11394
11394
|
})]
|
|
11395
11395
|
});
|
|
11396
|
-
}, N1 = _1(({ autoComplete: t = "on", autoFocus: c, disabled: l, error: a, hideNativeControls: s, highlighted: o, id: i, label: n, onChange: d, onClick: h, onKeyDown: p, required: v, success: g, value: w, min: m, max: u, placeholder: f, step:
|
|
11396
|
+
}, N1 = _1(({ autoComplete: t = "on", autoFocus: c, disabled: l, error: a, hideNativeControls: s, highlighted: o, id: i, label: n, onChange: d, onClick: h, onKeyDown: p, required: v, success: g, value: w, min: m, max: u, placeholder: f, step: b }, x) => {
|
|
11397
11397
|
const y = (k) => {
|
|
11398
11398
|
if (k === void 0) return;
|
|
11399
11399
|
let V = k;
|
|
@@ -11430,8 +11430,8 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11430
11430
|
(k.key === "e" || k.key === "E") && k.preventDefault(), p?.(k);
|
|
11431
11431
|
},
|
|
11432
11432
|
placeholder: f,
|
|
11433
|
-
ref:
|
|
11434
|
-
step:
|
|
11433
|
+
ref: x,
|
|
11434
|
+
step: b,
|
|
11435
11435
|
type: "number",
|
|
11436
11436
|
value: w ?? ""
|
|
11437
11437
|
}),
|
|
@@ -11516,11 +11516,11 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11516
11516
|
}, d = (w) => {
|
|
11517
11517
|
const m = i.current?.getBoundingClientRect();
|
|
11518
11518
|
if (!m) return;
|
|
11519
|
-
const u = J1(w.clientX - m.left, 0, m.width), f = J1(w.clientY - m.top, 0, m.height),
|
|
11519
|
+
const u = J1(w.clientX - m.left, 0, m.width), f = J1(w.clientY - m.top, 0, m.height), b = Math.round(u / m.width * 100), x = Math.round(100 - f / m.height * 100);
|
|
11520
11520
|
n({
|
|
11521
11521
|
...s,
|
|
11522
|
-
s:
|
|
11523
|
-
v:
|
|
11522
|
+
s: b,
|
|
11523
|
+
v: x
|
|
11524
11524
|
});
|
|
11525
11525
|
}, h = (w) => {
|
|
11526
11526
|
d(w);
|
|
@@ -11701,10 +11701,10 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11701
11701
|
]), F(() => {
|
|
11702
11702
|
h || d("");
|
|
11703
11703
|
}, [h]);
|
|
11704
|
-
const p =
|
|
11704
|
+
const p = h1(() => {
|
|
11705
11705
|
const w = n.trim().toLowerCase();
|
|
11706
11706
|
return w ? t.filter((m) => [m.label, ...m.keywords ?? []].join(" ").toLowerCase().includes(w)) : t;
|
|
11707
|
-
}, [t, n]), v =
|
|
11707
|
+
}, [t, n]), v = h1(() => p.reduce((w, m) => {
|
|
11708
11708
|
const u = m.group || "General";
|
|
11709
11709
|
return w[u] = w[u] ? [...w[u], m] : [m], w;
|
|
11710
11710
|
}, {}), [p]), g = () => {
|
|
@@ -11776,7 +11776,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11776
11776
|
"#8b5cf6",
|
|
11777
11777
|
"#ec4899",
|
|
11778
11778
|
"#f97316"
|
|
11779
|
-
],
|
|
11779
|
+
], br = (t) => {
|
|
11780
11780
|
if (t && t.length > 0) return t;
|
|
11781
11781
|
const c = getComputedStyle(document.documentElement), l = [
|
|
11782
11782
|
c.getPropertyValue("--body-accent-color").trim(),
|
|
@@ -11805,7 +11805,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11805
11805
|
color: M0(l),
|
|
11806
11806
|
opacity: 1,
|
|
11807
11807
|
shape: P0()
|
|
11808
|
-
}),
|
|
11808
|
+
}), xr = (t, c, l) => {
|
|
11809
11809
|
const a = Math.random() * Math.PI * 2, s = 3 + Math.random() * 10;
|
|
11810
11810
|
return {
|
|
11811
11811
|
x: t,
|
|
@@ -11883,22 +11883,22 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11883
11883
|
const m = w.getContext("2d");
|
|
11884
11884
|
if (!m) return;
|
|
11885
11885
|
w.width = w.offsetWidth, w.height = w.offsetHeight;
|
|
11886
|
-
const u = w.width, f = w.height,
|
|
11886
|
+
const u = w.width, f = w.height, b = br(t), x = s ?? p[a];
|
|
11887
11887
|
h.current = !0, d.current = performance.now();
|
|
11888
11888
|
let y = [];
|
|
11889
|
-
if (a === "confetti") y = Array.from({ length:
|
|
11889
|
+
if (a === "confetti") y = Array.from({ length: x }, () => e2(u, f, b));
|
|
11890
11890
|
else if (a === "burst") {
|
|
11891
11891
|
const k = u / 2, V = f / 2;
|
|
11892
|
-
y = Array.from({ length:
|
|
11893
|
-
} else a === "fireworks" && (y = Array.from({ length:
|
|
11892
|
+
y = Array.from({ length: x }, () => xr(k, V, b));
|
|
11893
|
+
} else a === "fireworks" && (y = Array.from({ length: x }, () => t2(u, f, b)));
|
|
11894
11894
|
const M = (k) => {
|
|
11895
11895
|
if (!h.current) return;
|
|
11896
11896
|
const V = k - d.current, _ = Math.min(V / c, 1);
|
|
11897
|
-
if (m.clearRect(0, 0, u, f), a === "confetti" ? (_ < 0.6 && Math.random() < 0.3 && y.push(e2(u, f,
|
|
11897
|
+
if (m.clearRect(0, 0, u, f), a === "confetti" ? (_ < 0.6 && Math.random() < 0.3 && y.push(e2(u, f, b)), y = y.filter((C) => C.opacity > 0 && C.y < f + 20), y.forEach((C) => {
|
|
11898
11898
|
C.x += C.vx, C.y += C.vy, C.vy += 0.08, C.vx += (Math.random() - 0.5) * 0.1, C.angle += C.spin, _ > 0.6 && (C.opacity -= 0.015), $0(m, C);
|
|
11899
11899
|
})) : a === "burst" ? (y = y.filter((C) => C.opacity > 0), y.forEach((C) => {
|
|
11900
11900
|
C.x += C.vx, C.y += C.vy, C.vy += 0.15, C.vx *= 0.98, C.angle += C.spin, C.opacity -= 0.012, $0(m, C);
|
|
11901
|
-
})) : a === "fireworks" && (_ < 0.85 && Math.random() < 0.04 && y.push(t2(u, f,
|
|
11901
|
+
})) : a === "fireworks" && (_ < 0.85 && Math.random() < 0.04 && y.push(t2(u, f, b)), y = y.filter((C) => C.exploded ? C.children?.some((N) => N.opacity > 0) ?? !1 : C.y > -f * 0.1), y.forEach((C) => {
|
|
11902
11902
|
if (C.exploded)
|
|
11903
11903
|
C.children?.forEach((N) => {
|
|
11904
11904
|
N.x += N.vx, N.y += N.vy, N.vy += 0.06, N.vx *= 0.97, N.angle += N.spin, N.opacity -= 0.014, $0(m, N);
|
|
@@ -11912,7 +11912,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11912
11912
|
}), m.save(), m.globalAlpha = 1, m.fillStyle = C.color, m.beginPath(), m.arc(C.x, C.y, 3, 0, Math.PI * 2), m.fill(), m.restore(), C.x += C.vx, C.y += C.vy, C.vy += 0.18, C.vy >= 0) {
|
|
11913
11913
|
C.exploded = !0;
|
|
11914
11914
|
const N = 60 + Math.floor(Math.random() * 40);
|
|
11915
|
-
C.children = Array.from({ length: N }, () => Mr(C.x, C.y,
|
|
11915
|
+
C.children = Array.from({ length: N }, () => Mr(C.x, C.y, b)), m.save(), m.globalAlpha = 0.8, m.fillStyle = "#ffffff", m.beginPath(), m.arc(C.x, C.y, 12, 0, Math.PI * 2), m.fill(), m.restore();
|
|
11916
11916
|
}
|
|
11917
11917
|
})), _ >= 1 || y.length === 0) {
|
|
11918
11918
|
v();
|
|
@@ -11990,7 +11990,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11990
11990
|
left: v.right + s
|
|
11991
11991
|
}
|
|
11992
11992
|
};
|
|
11993
|
-
let f, { top:
|
|
11993
|
+
let f, { top: b, left: x } = u.bottom;
|
|
11994
11994
|
if (o === "auto")
|
|
11995
11995
|
f = [
|
|
11996
11996
|
"bottom",
|
|
@@ -12000,10 +12000,10 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12000
12000
|
].find((y) => {
|
|
12001
12001
|
const M = u[y];
|
|
12002
12002
|
return m(M.top, M.left);
|
|
12003
|
-
}) || "bottom", { top:
|
|
12003
|
+
}) || "bottom", { top: b, left: x } = u[f];
|
|
12004
12004
|
else {
|
|
12005
12005
|
const y = u[o];
|
|
12006
|
-
m(y.top, y.left) ? (f = o, { top:
|
|
12006
|
+
m(y.top, y.left) ? (f = o, { top: b, left: x } = y) : (f = [
|
|
12007
12007
|
"bottom",
|
|
12008
12008
|
"top",
|
|
12009
12009
|
"right",
|
|
@@ -12011,11 +12011,11 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12011
12011
|
].filter((M) => M !== o).find((M) => {
|
|
12012
12012
|
const k = u[M];
|
|
12013
12013
|
return m(k.top, k.left);
|
|
12014
|
-
}) || o, { top:
|
|
12014
|
+
}) || o, { top: b, left: x } = u[f]);
|
|
12015
12015
|
}
|
|
12016
|
-
(f === "top" || f === "bottom") && (
|
|
12017
|
-
top:
|
|
12018
|
-
left:
|
|
12016
|
+
(f === "top" || f === "bottom") && (x < z1 && (x = z1), x + g.width > w.width - z1 && (x = w.width - g.width - z1)), (f === "left" || f === "right") && (b < z1 && (b = z1), b + g.height > w.height - z1 && (b = w.height - g.height - z1)), h({
|
|
12017
|
+
top: b,
|
|
12018
|
+
left: x,
|
|
12019
12019
|
placement: f
|
|
12020
12020
|
});
|
|
12021
12021
|
}, [
|
|
@@ -12143,10 +12143,10 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12143
12143
|
const p = requestAnimationFrame(() => {
|
|
12144
12144
|
if (!s.current) return;
|
|
12145
12145
|
const v = t.getBoundingClientRect(), g = s.current.getBoundingClientRect(), w = document.documentElement.clientWidth || window.innerWidth, m = document.documentElement.clientHeight || window.innerHeight, u = 8;
|
|
12146
|
-
let f = v.bottom,
|
|
12147
|
-
|
|
12146
|
+
let f = v.bottom, b = v.left;
|
|
12147
|
+
b + g.width > w - u && (b = Math.max(u, w - g.width - u)), b < u && (b = u), f + g.height > m - u && (f = Math.max(u, v.top - g.height)), f < u && (f = u), d({
|
|
12148
12148
|
top: `${f}px`,
|
|
12149
|
-
left: `${
|
|
12149
|
+
left: `${b}px`,
|
|
12150
12150
|
opacity: 1
|
|
12151
12151
|
}), i(!0);
|
|
12152
12152
|
});
|
|
@@ -12331,7 +12331,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12331
12331
|
if (!t) throw new Error("useControlPanel must be used within a ControlPanelProvider");
|
|
12332
12332
|
return t;
|
|
12333
12333
|
}, Ca = ({ children: t }) => {
|
|
12334
|
-
const { isMobile: c } = a0(), [l, a] = L(!1), s = E(() => a((d) => !d), []), o = E(() => a(!0), []), i = E(() => a(!1), []), n =
|
|
12334
|
+
const { isMobile: c } = a0(), [l, a] = L(!1), s = E(() => a((d) => !d), []), o = E(() => a(!0), []), i = E(() => a(!1), []), n = h1(() => ({
|
|
12335
12335
|
isMobile: c,
|
|
12336
12336
|
isOpen: l,
|
|
12337
12337
|
toggle: s,
|
|
@@ -12348,13 +12348,89 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12348
12348
|
value: n,
|
|
12349
12349
|
children: t
|
|
12350
12350
|
});
|
|
12351
|
+
}, s1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled: s = !1, className: o = "", maxWidth: i, maxHeight: n }) => {
|
|
12352
|
+
const [d, h] = L(!1), [p, v] = L({
|
|
12353
|
+
top: 0,
|
|
12354
|
+
left: 0
|
|
12355
|
+
}), g = O(null), w = O(null), m = O(null), u = O(null), f = O(!1), b = n !== void 0, x = b ? 150 : 0, y = () => {
|
|
12356
|
+
if (!m.current || !u.current) return;
|
|
12357
|
+
const N = m.current.firstElementChild, B = N && N.getBoundingClientRect().width > 0 ? N.getBoundingClientRect() : m.current.getBoundingClientRect(), z = u.current.getBoundingClientRect(), Z = 8;
|
|
12358
|
+
let R = 0, $ = 0;
|
|
12359
|
+
switch (c) {
|
|
12360
|
+
case "top":
|
|
12361
|
+
R = B.top - z.height - Z, $ = B.left + B.width / 2 - z.width / 2;
|
|
12362
|
+
break;
|
|
12363
|
+
case "bottom":
|
|
12364
|
+
R = B.bottom + Z, $ = B.left + B.width / 2 - z.width / 2;
|
|
12365
|
+
break;
|
|
12366
|
+
case "left":
|
|
12367
|
+
R = B.top + B.height / 2 - z.height / 2, $ = B.left - z.width - Z;
|
|
12368
|
+
break;
|
|
12369
|
+
case "right":
|
|
12370
|
+
R = B.top + B.height / 2 - z.height / 2, $ = B.right + Z;
|
|
12371
|
+
break;
|
|
12372
|
+
}
|
|
12373
|
+
const q = 8;
|
|
12374
|
+
$ < q && ($ = q), $ + z.width > window.innerWidth - q && ($ = window.innerWidth - z.width - q), R < q && (R = q), R + z.height > window.innerHeight - q && (R = window.innerHeight - z.height - q), v({
|
|
12375
|
+
top: R,
|
|
12376
|
+
left: $
|
|
12377
|
+
});
|
|
12378
|
+
}, M = () => {
|
|
12379
|
+
s || f.current || (w.current && (clearTimeout(w.current), w.current = null), g.current = setTimeout(() => {
|
|
12380
|
+
h(!0);
|
|
12381
|
+
}, l));
|
|
12382
|
+
}, k = () => {
|
|
12383
|
+
f.current || (g.current && clearTimeout(g.current), x > 0 ? w.current = setTimeout(() => h(!1), x) : h(!1));
|
|
12384
|
+
}, V = (N) => {
|
|
12385
|
+
N.pointerType !== "touch" && N.pointerType !== "pen" || s || (f.current = !0, g.current && (clearTimeout(g.current), g.current = null), N.stopPropagation(), h((B) => !B));
|
|
12386
|
+
};
|
|
12387
|
+
F(() => (d && (y(), window.addEventListener("scroll", y, !0), window.addEventListener("resize", y)), () => {
|
|
12388
|
+
window.removeEventListener("scroll", y, !0), window.removeEventListener("resize", y);
|
|
12389
|
+
}), [d]), F(() => {
|
|
12390
|
+
if (!d) return;
|
|
12391
|
+
const N = (B) => {
|
|
12392
|
+
m.current?.contains(B.target) || u.current?.contains(B.target) || h(!1);
|
|
12393
|
+
};
|
|
12394
|
+
return document.addEventListener("pointerdown", N), () => {
|
|
12395
|
+
document.removeEventListener("pointerdown", N), f.current = !1;
|
|
12396
|
+
};
|
|
12397
|
+
}, [d]), F(() => () => {
|
|
12398
|
+
g.current && clearTimeout(g.current), w.current && clearTimeout(w.current);
|
|
12399
|
+
}, []);
|
|
12400
|
+
const _ = () => {
|
|
12401
|
+
b && w.current && (clearTimeout(w.current), w.current = null);
|
|
12402
|
+
}, C = () => {
|
|
12403
|
+
b && (w.current = setTimeout(() => h(!1), x));
|
|
12404
|
+
};
|
|
12405
|
+
return /* @__PURE__ */ r(r1, { children: [/* @__PURE__ */ e("span", {
|
|
12406
|
+
ref: m,
|
|
12407
|
+
className: "tooltip-trigger",
|
|
12408
|
+
onMouseEnter: M,
|
|
12409
|
+
onMouseLeave: k,
|
|
12410
|
+
onFocus: M,
|
|
12411
|
+
onBlur: k,
|
|
12412
|
+
onPointerDown: V,
|
|
12413
|
+
children: a
|
|
12414
|
+
}), d && t && W1(/* @__PURE__ */ r("div", {
|
|
12415
|
+
ref: u,
|
|
12416
|
+
className: `tooltip tooltip--${c} ${b ? "tooltip--scrollable" : ""} ${o}`,
|
|
12417
|
+
style: {
|
|
12418
|
+
top: `${p.top}px`,
|
|
12419
|
+
left: `${p.left}px`,
|
|
12420
|
+
...i !== void 0 && { maxWidth: typeof i == "number" ? `${i}px` : i },
|
|
12421
|
+
...n !== void 0 && { maxHeight: typeof n == "number" ? `${n}px` : n }
|
|
12422
|
+
},
|
|
12423
|
+
onMouseEnter: _,
|
|
12424
|
+
onMouseLeave: C,
|
|
12425
|
+
children: [t, /* @__PURE__ */ e("div", { className: `tooltip__arrow tooltip__arrow--${c}` })]
|
|
12426
|
+
}), document.body)] });
|
|
12351
12427
|
}, Rr = ({ value: t, onChange: c, mode: l = "single", withTime: a = !1, timeFormat: s = "24h", withSeconds: o = !1, dateFormat: i = "YYYY-MM-DD", placeholder: n = "Select date...", disabled: d = !1, clearable: h = !0, autoClose: p = !0, alwaysOpen: v = !1, ...g }) => {
|
|
12352
|
-
const [w, m] = L(!1), [u, f] = L(0), [
|
|
12428
|
+
const [w, m] = L(!1), [u, f] = L(0), [b, x] = L(0), [y, M] = L(0), [k, V] = L(!1), [_, C] = L(null), [N, B] = L({
|
|
12353
12429
|
position: "fixed",
|
|
12354
12430
|
visibility: "hidden"
|
|
12355
12431
|
}), z = O(null), Z = O(null);
|
|
12356
12432
|
F(() => {
|
|
12357
|
-
a && t instanceof Date && (f(s === "12h" ? t.getHours() % 12 || 12 : t.getHours()),
|
|
12433
|
+
a && t instanceof Date && (f(s === "12h" ? t.getHours() % 12 || 12 : t.getHours()), x(t.getMinutes()), M(t.getSeconds()), V(t.getHours() >= 12));
|
|
12358
12434
|
}, [
|
|
12359
12435
|
t,
|
|
12360
12436
|
a,
|
|
@@ -12370,7 +12446,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12370
12446
|
}, [v, R]);
|
|
12371
12447
|
const $ = E(() => {
|
|
12372
12448
|
if (v || !R || !z.current || !Z.current) return;
|
|
12373
|
-
const T = z.current.getBoundingClientRect(), G = Z.current.getBoundingClientRect(),
|
|
12449
|
+
const T = z.current.getBoundingClientRect(), G = Z.current.getBoundingClientRect(), d1 = 16, v1 = 8, U = window.innerHeight - T.bottom - d1, i1 = T.top - d1, n1 = U < G.height && i1 > G.height ? T.top - G.height - v1 : T.bottom + v1, C1 = Math.max(d1, Math.min(n1, window.innerHeight - G.height - d1)), u1 = Math.max(d1, Math.min(T.left, window.innerWidth - G.width - d1));
|
|
12374
12450
|
B({
|
|
12375
12451
|
position: "fixed",
|
|
12376
12452
|
top: `${C1}px`,
|
|
@@ -12407,12 +12483,12 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12407
12483
|
c?.(T), p && l !== "multiple" && !v && m(!1);
|
|
12408
12484
|
return;
|
|
12409
12485
|
}
|
|
12410
|
-
const G = new Date(T),
|
|
12411
|
-
G.setHours(
|
|
12486
|
+
const G = new Date(T), d1 = s === "12h" ? k ? u % 12 + 12 : u % 12 : u;
|
|
12487
|
+
G.setHours(d1, b, y), c?.(G), p && !v && m(!1);
|
|
12412
12488
|
}, A = () => {
|
|
12413
12489
|
if (!t || !(t instanceof Date)) return;
|
|
12414
12490
|
const T = new Date(t), G = s === "12h" ? k ? u % 12 + 12 : u % 12 : u;
|
|
12415
|
-
T.setHours(G,
|
|
12491
|
+
T.setHours(G, b, y), c?.(T);
|
|
12416
12492
|
}, c1 = (T) => {
|
|
12417
12493
|
T.stopPropagation(), C(null), c?.(void 0);
|
|
12418
12494
|
}, t1 = q();
|
|
@@ -12443,7 +12519,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12443
12519
|
}), R && (v ? /* @__PURE__ */ r("div", {
|
|
12444
12520
|
ref: Z,
|
|
12445
12521
|
className: "datepicker__dropdown datepicker__dropdown--inline",
|
|
12446
|
-
children: [/* @__PURE__ */ e(
|
|
12522
|
+
children: [/* @__PURE__ */ e(b0, {
|
|
12447
12523
|
...g,
|
|
12448
12524
|
mode: l,
|
|
12449
12525
|
value: t,
|
|
@@ -12474,10 +12550,10 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12474
12550
|
/* @__PURE__ */ e("input", {
|
|
12475
12551
|
type: "number",
|
|
12476
12552
|
className: "datepicker__time-input",
|
|
12477
|
-
value:
|
|
12553
|
+
value: b,
|
|
12478
12554
|
onChange: (T) => {
|
|
12479
12555
|
const G = parseInt(T.target.value) || 0;
|
|
12480
|
-
|
|
12556
|
+
x(Math.min(Math.max(G, 0), 59));
|
|
12481
12557
|
},
|
|
12482
12558
|
onBlur: A,
|
|
12483
12559
|
min: "0",
|
|
@@ -12510,7 +12586,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12510
12586
|
ref: Z,
|
|
12511
12587
|
className: "datepicker__dropdown",
|
|
12512
12588
|
style: N,
|
|
12513
|
-
children: [/* @__PURE__ */ e(
|
|
12589
|
+
children: [/* @__PURE__ */ e(b0, {
|
|
12514
12590
|
...g,
|
|
12515
12591
|
mode: l,
|
|
12516
12592
|
value: t,
|
|
@@ -12541,10 +12617,10 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12541
12617
|
/* @__PURE__ */ e("input", {
|
|
12542
12618
|
type: "number",
|
|
12543
12619
|
className: "datepicker__time-input",
|
|
12544
|
-
value:
|
|
12620
|
+
value: b,
|
|
12545
12621
|
onChange: (T) => {
|
|
12546
12622
|
const G = parseInt(T.target.value) || 0;
|
|
12547
|
-
|
|
12623
|
+
x(Math.min(Math.max(G, 0), 59));
|
|
12548
12624
|
},
|
|
12549
12625
|
onBlur: A,
|
|
12550
12626
|
min: "0",
|
|
@@ -12585,12 +12661,12 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12585
12661
|
i < l.length && (o++, i++);
|
|
12586
12662
|
}
|
|
12587
12663
|
return o / a.length >= s;
|
|
12588
|
-
}, u0 = ({ allowCustomValue: t = !1, autofocus: c = !1, className: l = "", disabled: a = !1, error: s, highlighted: o = !1, id: i, label: n, multiple: d = !1, name: h, onChange: p, onSearchChange: v, options: g, placeholder: w = "Select an option", searchable: m = !0, searchValue: u, selectedCountDisplay: f = "inline", success:
|
|
12664
|
+
}, u0 = ({ allowCustomValue: t = !1, autofocus: c = !1, className: l = "", disabled: a = !1, error: s, highlighted: o = !1, id: i, label: n, multiple: d = !1, name: h, onChange: p, onSearchChange: v, options: g, placeholder: w = "Select an option", searchable: m = !0, searchValue: u, selectedCountDisplay: f = "inline", success: b, usePortal: x = !0, value: y, valueAsChip: M = !0 }) => {
|
|
12589
12665
|
const [k, V] = L(!1), [_, C] = L(u || ""), [N, B] = L(g), [z, Z] = L(-1), [R, $] = L([]), [q, p1] = L({
|
|
12590
12666
|
top: 0,
|
|
12591
12667
|
left: 0,
|
|
12592
12668
|
width: 0
|
|
12593
|
-
}), [A, c1] = L(!1), t1 = O(null), T = O([]), G = O(null),
|
|
12669
|
+
}), [A, c1] = L(!1), t1 = O(null), T = O([]), G = O(null), d1 = O(null), v1 = g0(), U = i ?? `dropdown-${v1}`;
|
|
12594
12670
|
F(() => {
|
|
12595
12671
|
if (!m || !_) B(g);
|
|
12596
12672
|
else {
|
|
@@ -12649,7 +12725,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12649
12725
|
const P = () => {
|
|
12650
12726
|
if (!t1.current) return;
|
|
12651
12727
|
const j = t1.current.getBoundingClientRect(), Y = window.innerHeight, m1 = 300, B1 = Y - j.bottom, D1 = j.top, X1 = B1 < m1 && D1 > B1;
|
|
12652
|
-
c1(X1),
|
|
12728
|
+
c1(X1), x && p1({
|
|
12653
12729
|
top: X1 ? j.top + window.scrollY : j.bottom + window.scrollY,
|
|
12654
12730
|
left: j.left + window.scrollX,
|
|
12655
12731
|
width: j.width
|
|
@@ -12658,10 +12734,10 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12658
12734
|
return P(), window.addEventListener("scroll", P, !0), window.addEventListener("resize", P), () => {
|
|
12659
12735
|
window.removeEventListener("scroll", P, !0), window.removeEventListener("resize", P);
|
|
12660
12736
|
};
|
|
12661
|
-
}, [k,
|
|
12737
|
+
}, [k, x]), F(() => {
|
|
12662
12738
|
const P = (j) => {
|
|
12663
12739
|
if (t1.current && !t1.current.contains(j.target)) {
|
|
12664
|
-
if (
|
|
12740
|
+
if (x && k) {
|
|
12665
12741
|
const Y = document.querySelector(".dropdown-menu--portal");
|
|
12666
12742
|
if (Y && Y.contains(j.target)) return;
|
|
12667
12743
|
}
|
|
@@ -12690,7 +12766,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12690
12766
|
g,
|
|
12691
12767
|
m,
|
|
12692
12768
|
R,
|
|
12693
|
-
|
|
12769
|
+
x
|
|
12694
12770
|
]);
|
|
12695
12771
|
const n1 = (P) => {
|
|
12696
12772
|
if (!P.disabled)
|
|
@@ -12766,15 +12842,15 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12766
12842
|
if (R.length === 0) return "";
|
|
12767
12843
|
const P = R[0].label;
|
|
12768
12844
|
return R.length === 1 ? P : R.length === 2 ? `${P} (+1 other)` : `${P} (+${R.length - 1} others)`;
|
|
12769
|
-
}, a1 = () => m && _ || (R.length > 0 ? d ? e1() : R[0].label : ""),
|
|
12845
|
+
}, a1 = () => m && _ || (R.length > 0 ? d ? e1() : R[0].label : ""), x1 = () => R.length > 0 ? "" : w, f1 = () => !d || R.length === 0 || f === "none" ? null : f === "floating" ? /* @__PURE__ */ r("div", {
|
|
12770
12846
|
className: "dropdown-selected-count",
|
|
12771
12847
|
children: [R.length, " selected"]
|
|
12772
12848
|
}) : null, M1 = () => !!(t && _ && _.trim() && !N.some((P) => P.label.toLowerCase() === _.toLowerCase() || P.value.toString() === _)), F1 = () => {
|
|
12773
12849
|
if (!k || a) return null;
|
|
12774
12850
|
const P = /* @__PURE__ */ e("div", {
|
|
12775
|
-
ref:
|
|
12776
|
-
className: `dropdown-menu ${
|
|
12777
|
-
style:
|
|
12851
|
+
ref: d1,
|
|
12852
|
+
className: `dropdown-menu ${x ? "dropdown-menu--portal" : ""} ${A ? "dropdown-menu--upward" : ""}`,
|
|
12853
|
+
style: x ? {
|
|
12778
12854
|
position: "absolute",
|
|
12779
12855
|
top: A ? "auto" : `${q.top}px`,
|
|
12780
12856
|
bottom: A ? `${window.innerHeight - q.top}px` : "auto",
|
|
@@ -12852,10 +12928,10 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12852
12928
|
children: "No options found"
|
|
12853
12929
|
})
|
|
12854
12930
|
});
|
|
12855
|
-
return
|
|
12856
|
-
}, g1 = !d && R.length === 1 ? R[0] : null,
|
|
12931
|
+
return x ? W1(P, document.body) : P;
|
|
12932
|
+
}, g1 = !d && R.length === 1 ? R[0] : null, b1 = M && !k && !d && R.length > 0, $1 = !!(g1?.icon && !_ && !b1), q1 = !!(g1?.suffixIcon && !b1);
|
|
12857
12933
|
return /* @__PURE__ */ r("div", {
|
|
12858
|
-
className: `dropdown-container ${s ? "dropdown-error" : ""} ${
|
|
12934
|
+
className: `dropdown-container ${s ? "dropdown-error" : ""} ${b ? "dropdown-success" : ""} ${o ? "dropdown-highlighted" : ""} ${d ? "multiple" : ""} ${a ? "disabled" : ""} ${d ? `count-display-${f}` : ""} ${l}`,
|
|
12859
12935
|
ref: t1,
|
|
12860
12936
|
children: [
|
|
12861
12937
|
n && /* @__PURE__ */ e("label", {
|
|
@@ -12870,7 +12946,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12870
12946
|
className: "dropdown-selected-icon dropdown-selected-icon--prefix",
|
|
12871
12947
|
children: /* @__PURE__ */ e(I, { name: g1.icon })
|
|
12872
12948
|
}),
|
|
12873
|
-
|
|
12949
|
+
b1 && g1 && /* @__PURE__ */ r("span", {
|
|
12874
12950
|
className: "dropdown-value-chip",
|
|
12875
12951
|
onClick: X,
|
|
12876
12952
|
children: [g1.icon && /* @__PURE__ */ e(I, { name: g1.icon }), /* @__PURE__ */ e("span", {
|
|
@@ -12881,8 +12957,8 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12881
12957
|
/* @__PURE__ */ e(S1, {
|
|
12882
12958
|
ref: G,
|
|
12883
12959
|
id: U,
|
|
12884
|
-
placeholder:
|
|
12885
|
-
value:
|
|
12960
|
+
placeholder: b1 ? "" : x1(),
|
|
12961
|
+
value: b1 ? "" : a1(),
|
|
12886
12962
|
onChange: m || d ? G1 : () => {
|
|
12887
12963
|
},
|
|
12888
12964
|
onClick: X,
|
|
@@ -12926,13 +13002,13 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12926
13002
|
className: "dropdown-error-message",
|
|
12927
13003
|
children: s
|
|
12928
13004
|
}),
|
|
12929
|
-
|
|
13005
|
+
b && /* @__PURE__ */ e("span", {
|
|
12930
13006
|
className: "dropdown-success-message",
|
|
12931
|
-
children:
|
|
13007
|
+
children: b
|
|
12932
13008
|
})
|
|
12933
13009
|
]
|
|
12934
13010
|
});
|
|
12935
|
-
}, $r = _1(({ autoComplete: t = "on", autoFocus: c, clearable: l, disabled: a, error: s, highlighted: o, id: i, label: n, max: d, min: h, onBlur: p, onChange: v, onClick: g, onKeyDown: w, onKeyUp: m, readOnly: u = !1, required: f = !1, success:
|
|
13011
|
+
}, $r = _1(({ autoComplete: t = "on", autoFocus: c, clearable: l, disabled: a, error: s, highlighted: o, id: i, label: n, max: d, min: h, onBlur: p, onChange: v, onClick: g, onKeyDown: w, onKeyUp: m, readOnly: u = !1, required: f = !1, success: b, type: x = "date", value: y }, M) => {
|
|
12936
13012
|
const k = l && y && !a && !u;
|
|
12937
13013
|
return /* @__PURE__ */ r("div", {
|
|
12938
13014
|
className: `input-date-wrapper${o ? " input-date-highlighted" : ""}`,
|
|
@@ -12951,8 +13027,8 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12951
13027
|
autoComplete: t,
|
|
12952
13028
|
autoFocus: c,
|
|
12953
13029
|
disabled: a,
|
|
12954
|
-
type:
|
|
12955
|
-
className: `input-date${s ? " input-date-error" : ""}${
|
|
13030
|
+
type: x === "date" ? "date" : "datetime-local",
|
|
13031
|
+
className: `input-date${s ? " input-date-error" : ""}${b ? " input-date-success" : ""}${k ? " input-date--clearable" : ""}`,
|
|
12956
13032
|
id: i,
|
|
12957
13033
|
max: d,
|
|
12958
13034
|
min: h,
|
|
@@ -12980,9 +13056,9 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12980
13056
|
className: "input-date-error-message",
|
|
12981
13057
|
children: s
|
|
12982
13058
|
}),
|
|
12983
|
-
|
|
13059
|
+
b && /* @__PURE__ */ e("span", {
|
|
12984
13060
|
className: "input-date-success-message",
|
|
12985
|
-
children:
|
|
13061
|
+
children: b
|
|
12986
13062
|
})
|
|
12987
13063
|
]
|
|
12988
13064
|
});
|
|
@@ -13093,14 +13169,14 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13093
13169
|
children: [/* @__PURE__ */ r("span", {
|
|
13094
13170
|
className: "rating-rates",
|
|
13095
13171
|
children: [
|
|
13096
|
-
Array.from({ length: w }, (f,
|
|
13172
|
+
Array.from({ length: w }, (f, b) => /* @__PURE__ */ e("span", {
|
|
13097
13173
|
className: "rate",
|
|
13098
13174
|
children: /* @__PURE__ */ e(o0, {
|
|
13099
13175
|
type: c,
|
|
13100
13176
|
filled: "full",
|
|
13101
13177
|
variant: p
|
|
13102
13178
|
})
|
|
13103
|
-
}, `full-${
|
|
13179
|
+
}, `full-${b}`)),
|
|
13104
13180
|
m && /* @__PURE__ */ e("span", {
|
|
13105
13181
|
className: "rate",
|
|
13106
13182
|
children: /* @__PURE__ */ e(o0, {
|
|
@@ -13109,14 +13185,14 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13109
13185
|
variant: p
|
|
13110
13186
|
})
|
|
13111
13187
|
}),
|
|
13112
|
-
Array.from({ length: u }, (f,
|
|
13188
|
+
Array.from({ length: u }, (f, b) => /* @__PURE__ */ e("span", {
|
|
13113
13189
|
className: "rate",
|
|
13114
13190
|
children: /* @__PURE__ */ e(o0, {
|
|
13115
13191
|
type: c,
|
|
13116
13192
|
filled: "empty",
|
|
13117
13193
|
variant: p
|
|
13118
13194
|
})
|
|
13119
|
-
}, `empty-${
|
|
13195
|
+
}, `empty-${b}`))
|
|
13120
13196
|
]
|
|
13121
13197
|
}), d && /* @__PURE__ */ r("span", {
|
|
13122
13198
|
className: "rating-values",
|
|
@@ -13157,7 +13233,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13157
13233
|
}, Y1 = _1(({ autoComplete: t = "off", autoFocus: c, disabled: l, id: a, label: s, onBlur: o, onChange: i, onClick: n, onKeyDown: d, onKeyUp: h, placeholder: p = "Search...", readOnly: v = !1, required: g = !1, value: w, className: m = "" }, u) => {
|
|
13158
13234
|
const f = () => {
|
|
13159
13235
|
i?.("");
|
|
13160
|
-
},
|
|
13236
|
+
}, b = w && w.length > 0 && !l && !v;
|
|
13161
13237
|
return /* @__PURE__ */ r("div", {
|
|
13162
13238
|
className: `input-search ${m}`,
|
|
13163
13239
|
children: [
|
|
@@ -13182,7 +13258,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13182
13258
|
value: w,
|
|
13183
13259
|
ref: u
|
|
13184
13260
|
}),
|
|
13185
|
-
|
|
13261
|
+
b && /* @__PURE__ */ e("button", {
|
|
13186
13262
|
type: "button",
|
|
13187
13263
|
className: "input-search__clear",
|
|
13188
13264
|
onClick: f,
|
|
@@ -13332,8 +13408,8 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13332
13408
|
if (t.type === "date-range") {
|
|
13333
13409
|
const i = Array.isArray(t.value) ? t.value : [], n = i[0] || void 0, d = i[1] || void 0, h = t.presets ?? Zr, p = (m) => {
|
|
13334
13410
|
if (!m) return;
|
|
13335
|
-
const [u, f,
|
|
13336
|
-
return new Date(u, f - 1,
|
|
13411
|
+
const [u, f, b] = m.split("-").map(Number);
|
|
13412
|
+
return new Date(u, f - 1, b);
|
|
13337
13413
|
}, v = (m) => `${m.getFullYear()}-${String(m.getMonth() + 1).padStart(2, "0")}-${String(m.getDate()).padStart(2, "0")}`, g = (m, u) => c({
|
|
13338
13414
|
filterId: t.id,
|
|
13339
13415
|
type: t.type,
|
|
@@ -13590,83 +13666,7 @@ function z2(t, c, l = 0) {
|
|
|
13590
13666
|
})]
|
|
13591
13667
|
}, t.id);
|
|
13592
13668
|
}
|
|
13593
|
-
var
|
|
13594
|
-
const [d, h] = L(!1), [p, v] = L({
|
|
13595
|
-
top: 0,
|
|
13596
|
-
left: 0
|
|
13597
|
-
}), g = O(null), w = O(null), m = O(null), u = O(null), f = O(!1), x = n !== void 0, b = x ? 150 : 0, y = () => {
|
|
13598
|
-
if (!m.current || !u.current) return;
|
|
13599
|
-
const N = m.current.firstElementChild, B = N && N.getBoundingClientRect().width > 0 ? N.getBoundingClientRect() : m.current.getBoundingClientRect(), z = u.current.getBoundingClientRect(), Z = 8;
|
|
13600
|
-
let R = 0, $ = 0;
|
|
13601
|
-
switch (c) {
|
|
13602
|
-
case "top":
|
|
13603
|
-
R = B.top - z.height - Z, $ = B.left + B.width / 2 - z.width / 2;
|
|
13604
|
-
break;
|
|
13605
|
-
case "bottom":
|
|
13606
|
-
R = B.bottom + Z, $ = B.left + B.width / 2 - z.width / 2;
|
|
13607
|
-
break;
|
|
13608
|
-
case "left":
|
|
13609
|
-
R = B.top + B.height / 2 - z.height / 2, $ = B.left - z.width - Z;
|
|
13610
|
-
break;
|
|
13611
|
-
case "right":
|
|
13612
|
-
R = B.top + B.height / 2 - z.height / 2, $ = B.right + Z;
|
|
13613
|
-
break;
|
|
13614
|
-
}
|
|
13615
|
-
const q = 8;
|
|
13616
|
-
$ < q && ($ = q), $ + z.width > window.innerWidth - q && ($ = window.innerWidth - z.width - q), R < q && (R = q), R + z.height > window.innerHeight - q && (R = window.innerHeight - z.height - q), v({
|
|
13617
|
-
top: R,
|
|
13618
|
-
left: $
|
|
13619
|
-
});
|
|
13620
|
-
}, M = () => {
|
|
13621
|
-
s || f.current || (w.current && (clearTimeout(w.current), w.current = null), g.current = setTimeout(() => {
|
|
13622
|
-
h(!0);
|
|
13623
|
-
}, l));
|
|
13624
|
-
}, k = () => {
|
|
13625
|
-
f.current || (g.current && clearTimeout(g.current), b > 0 ? w.current = setTimeout(() => h(!1), b) : h(!1));
|
|
13626
|
-
}, V = (N) => {
|
|
13627
|
-
N.pointerType !== "touch" && N.pointerType !== "pen" || s || (f.current = !0, g.current && (clearTimeout(g.current), g.current = null), N.stopPropagation(), h((B) => !B));
|
|
13628
|
-
};
|
|
13629
|
-
F(() => (d && (y(), window.addEventListener("scroll", y, !0), window.addEventListener("resize", y)), () => {
|
|
13630
|
-
window.removeEventListener("scroll", y, !0), window.removeEventListener("resize", y);
|
|
13631
|
-
}), [d]), F(() => {
|
|
13632
|
-
if (!d) return;
|
|
13633
|
-
const N = (B) => {
|
|
13634
|
-
m.current?.contains(B.target) || u.current?.contains(B.target) || h(!1);
|
|
13635
|
-
};
|
|
13636
|
-
return document.addEventListener("pointerdown", N), () => {
|
|
13637
|
-
document.removeEventListener("pointerdown", N), f.current = !1;
|
|
13638
|
-
};
|
|
13639
|
-
}, [d]), F(() => () => {
|
|
13640
|
-
g.current && clearTimeout(g.current), w.current && clearTimeout(w.current);
|
|
13641
|
-
}, []);
|
|
13642
|
-
const _ = () => {
|
|
13643
|
-
x && w.current && (clearTimeout(w.current), w.current = null);
|
|
13644
|
-
}, C = () => {
|
|
13645
|
-
x && (w.current = setTimeout(() => h(!1), b));
|
|
13646
|
-
};
|
|
13647
|
-
return /* @__PURE__ */ r(r1, { children: [/* @__PURE__ */ e("span", {
|
|
13648
|
-
ref: m,
|
|
13649
|
-
className: "tooltip-trigger",
|
|
13650
|
-
onMouseEnter: M,
|
|
13651
|
-
onMouseLeave: k,
|
|
13652
|
-
onFocus: M,
|
|
13653
|
-
onBlur: k,
|
|
13654
|
-
onPointerDown: V,
|
|
13655
|
-
children: a
|
|
13656
|
-
}), d && t && W1(/* @__PURE__ */ r("div", {
|
|
13657
|
-
ref: u,
|
|
13658
|
-
className: `tooltip tooltip--${c} ${x ? "tooltip--scrollable" : ""} ${o}`,
|
|
13659
|
-
style: {
|
|
13660
|
-
top: `${p.top}px`,
|
|
13661
|
-
left: `${p.left}px`,
|
|
13662
|
-
...i !== void 0 && { maxWidth: typeof i == "number" ? `${i}px` : i },
|
|
13663
|
-
...n !== void 0 && { maxHeight: typeof n == "number" ? `${n}px` : n }
|
|
13664
|
-
},
|
|
13665
|
-
onMouseEnter: _,
|
|
13666
|
-
onMouseLeave: C,
|
|
13667
|
-
children: [t, /* @__PURE__ */ e("div", { className: `tooltip__arrow tooltip__arrow--${c}` })]
|
|
13668
|
-
}), document.body)] });
|
|
13669
|
-
}, Wr = [{
|
|
13669
|
+
var Wr = [{
|
|
13670
13670
|
value: "cards",
|
|
13671
13671
|
label: "Grid",
|
|
13672
13672
|
icon: "grid"
|
|
@@ -13792,7 +13792,7 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
|
|
|
13792
13792
|
]
|
|
13793
13793
|
})
|
|
13794
13794
|
});
|
|
13795
|
-
return v.title ? /* @__PURE__ */ e(
|
|
13795
|
+
return v.title ? /* @__PURE__ */ e(s1, {
|
|
13796
13796
|
title: v.title,
|
|
13797
13797
|
children: m
|
|
13798
13798
|
}, v.value) : /* @__PURE__ */ e(Z1.Fragment, { children: m }, v.value);
|
|
@@ -13827,7 +13827,7 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
|
|
|
13827
13827
|
})]
|
|
13828
13828
|
}, o.id ?? o.label ?? i))
|
|
13829
13829
|
]
|
|
13830
|
-
}),
|
|
13830
|
+
}), ba = ({ width: t = "280px", className: c = "", isOpen: l, onClose: a, isMobile: s, showOverlay: o = !0, contained: i = !1, flush: n = !1, shadow: d = "none", header: h, navigation: p = [], actions: v = [], filters: g = [], filtersCount: w, onFilterChange: m, onClearFilters: u, options: f = [], onOptionChange: b, viewToggle: x, groupBy: y, visibleColumns: M }) => {
|
|
13831
13831
|
const k = W0(), V = s ?? k?.isMobile ?? !1, _ = l ?? (V ? k?.isOpen ?? !1 : !0), C = a ?? k?.close ?? (() => {
|
|
13832
13832
|
}), N = [
|
|
13833
13833
|
"control-panel",
|
|
@@ -13839,7 +13839,7 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
|
|
|
13839
13839
|
].filter(Boolean).join(" "), B = ["control-panel__overlay", i ? "control-panel__overlay--contained" : ""].filter(Boolean).join(" "), z = {
|
|
13840
13840
|
"--control-panel-width": t,
|
|
13841
13841
|
"--control-panel-shadow": d
|
|
13842
|
-
}, Z = f.length === 0 ? [] : "type" in f[0] ? [{ options: f }] : f, R = !!(
|
|
13842
|
+
}, Z = f.length === 0 ? [] : "type" in f[0] ? [{ options: f }] : f, R = !!(x || y || M || Z.length > 0), $ = g.length > 0 || w !== void 0 && w > 0;
|
|
13843
13843
|
return /* @__PURE__ */ r(r1, { children: [o && V && _ && /* @__PURE__ */ e("div", {
|
|
13844
13844
|
className: B,
|
|
13845
13845
|
onClick: C
|
|
@@ -13884,24 +13884,23 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
|
|
|
13884
13884
|
$ && R && /* @__PURE__ */ e(e0, { spacing: 0 }),
|
|
13885
13885
|
R && /* @__PURE__ */ e(Fr, {
|
|
13886
13886
|
normalizedOptionGroups: Z,
|
|
13887
|
-
onOptionChange:
|
|
13888
|
-
viewToggle:
|
|
13887
|
+
onOptionChange: b,
|
|
13888
|
+
viewToggle: x,
|
|
13889
13889
|
groupBy: y,
|
|
13890
13890
|
visibleColumns: M
|
|
13891
13891
|
})
|
|
13892
13892
|
]
|
|
13893
13893
|
})] });
|
|
13894
13894
|
}, qr = ({ action: t }) => {
|
|
13895
|
-
const [c, l] = L(null), [a, s] = L(!1), o = (
|
|
13895
|
+
const [c, l] = L(null), [a, s] = L(!1), o = (d) => {
|
|
13896
13896
|
if (t.confirm) {
|
|
13897
|
-
l(
|
|
13897
|
+
l(d.currentTarget), s(!0);
|
|
13898
13898
|
return;
|
|
13899
13899
|
}
|
|
13900
|
-
t.onClick?.(
|
|
13900
|
+
t.onClick?.(d);
|
|
13901
13901
|
}, i = () => {
|
|
13902
13902
|
t.onClick?.({});
|
|
13903
|
-
}
|
|
13904
|
-
return /* @__PURE__ */ r(r1, { children: [/* @__PURE__ */ e(W, {
|
|
13903
|
+
}, n = /* @__PURE__ */ e(W, {
|
|
13905
13904
|
className: "control-panel__action",
|
|
13906
13905
|
disabled: t.disabled,
|
|
13907
13906
|
fullWidth: t.fullWidth ?? !0,
|
|
@@ -13911,7 +13910,12 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
|
|
|
13911
13910
|
sufixIcon: t.suffixIcon,
|
|
13912
13911
|
variant: t.variant ?? "default",
|
|
13913
13912
|
children: t.label
|
|
13914
|
-
})
|
|
13913
|
+
});
|
|
13914
|
+
return /* @__PURE__ */ r(r1, { children: [t.tooltip ? /* @__PURE__ */ e(s1, {
|
|
13915
|
+
title: t.tooltip,
|
|
13916
|
+
position: "right",
|
|
13917
|
+
children: n
|
|
13918
|
+
}) : n, t.confirm && /* @__PURE__ */ e(zr, {
|
|
13915
13919
|
visible: a,
|
|
13916
13920
|
onClose: () => s(!1),
|
|
13917
13921
|
anchorEl: c,
|
|
@@ -13944,18 +13948,18 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
|
|
|
13944
13948
|
} finally {
|
|
13945
13949
|
document.body.removeChild(c);
|
|
13946
13950
|
}
|
|
13947
|
-
},
|
|
13951
|
+
}, xa = ({ children: t, className: c = "", copiedLabel: l = "Copied", disabled: a = !1, errorLabel: s = "Copy failed", iconOnly: o = !1, label: i = "Copy", onCopy: n, onError: d, resetDelay: h = 1800, size: p = "medium", title: v, value: g, variant: w = "ghost" }) => {
|
|
13948
13952
|
const [m, u] = L("idle"), f = O(null);
|
|
13949
13953
|
F(() => () => {
|
|
13950
13954
|
f.current && window.clearTimeout(f.current);
|
|
13951
13955
|
}, []);
|
|
13952
|
-
const
|
|
13956
|
+
const b = () => {
|
|
13953
13957
|
f.current && window.clearTimeout(f.current), f.current = window.setTimeout(() => u("idle"), h);
|
|
13954
|
-
},
|
|
13958
|
+
}, x = async () => {
|
|
13955
13959
|
try {
|
|
13956
|
-
await Or(g), u("copied"),
|
|
13960
|
+
await Or(g), u("copied"), b(), n?.(g);
|
|
13957
13961
|
} catch (k) {
|
|
13958
|
-
u("error"),
|
|
13962
|
+
u("error"), b(), d?.(k);
|
|
13959
13963
|
}
|
|
13960
13964
|
}, y = m === "copied" ? l : m === "error" ? s : i, M = m === "copied" && w === "ghost" ? "success" : m === "error" && w === "ghost" ? "danger" : w;
|
|
13961
13965
|
return /* @__PURE__ */ e(W, {
|
|
@@ -13963,7 +13967,7 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
|
|
|
13963
13967
|
disabled: a,
|
|
13964
13968
|
icon: m === "copied" ? "checkmark" : "clipboard",
|
|
13965
13969
|
iconVariant: m === "error" ? "danger" : m === "copied" ? "success" : "default",
|
|
13966
|
-
onClick:
|
|
13970
|
+
onClick: x,
|
|
13967
13971
|
size: p,
|
|
13968
13972
|
title: v || y,
|
|
13969
13973
|
type: "button",
|
|
@@ -13971,7 +13975,7 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
|
|
|
13971
13975
|
children: o ? void 0 : t || y
|
|
13972
13976
|
});
|
|
13973
13977
|
}, Yr = ({ code: t, size: c = "md", className: l = "" }) => {
|
|
13974
|
-
if (!t) return /* @__PURE__ */ e(
|
|
13978
|
+
if (!t) return /* @__PURE__ */ e(s1, {
|
|
13975
13979
|
title: `Unsupported country code: ${t}`,
|
|
13976
13980
|
children: /* @__PURE__ */ e("div", {
|
|
13977
13981
|
className: `flags flags--fallback flags--${c} ${l}`,
|
|
@@ -13984,7 +13988,7 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
|
|
|
13984
13988
|
children: [/* @__PURE__ */ e("source", {
|
|
13985
13989
|
srcSet: s,
|
|
13986
13990
|
type: "image/webp"
|
|
13987
|
-
}), /* @__PURE__ */ e(
|
|
13991
|
+
}), /* @__PURE__ */ e(s1, {
|
|
13988
13992
|
title: `Country: ${t.toUpperCase()}`,
|
|
13989
13993
|
children: /* @__PURE__ */ e("img", {
|
|
13990
13994
|
src: a,
|
|
@@ -14064,10 +14068,10 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
|
|
|
14064
14068
|
});
|
|
14065
14069
|
return M.observe(y), u(), () => M.disconnect();
|
|
14066
14070
|
}, [u]);
|
|
14067
|
-
const f = o && i !== void 0 && n,
|
|
14071
|
+
const f = o && i !== void 0 && n, b = o?.map((y) => ({
|
|
14068
14072
|
label: `${y}`,
|
|
14069
14073
|
value: y
|
|
14070
|
-
})),
|
|
14074
|
+
})), x = () => {
|
|
14071
14075
|
const y = [], M = [];
|
|
14072
14076
|
for (let k = Math.max(2, t - w); k <= Math.min(c - 1, t + w); k++) y.push(k);
|
|
14073
14077
|
return t - w > 2 ? M.push(1, "...") : M.push(1), M.push(...y), t + w < c - 1 ? M.push("...", c) : c > 1 && M.push(c), M;
|
|
@@ -14087,7 +14091,7 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
|
|
|
14087
14091
|
onClick: () => a(t - 1),
|
|
14088
14092
|
children: p("desktop") ? "Previous" : ""
|
|
14089
14093
|
}),
|
|
14090
|
-
|
|
14094
|
+
x().map((y, M) => /* @__PURE__ */ e(W, {
|
|
14091
14095
|
borders: "sharp",
|
|
14092
14096
|
variant: y === t ? "warning" : "default",
|
|
14093
14097
|
disabled: typeof y == "string",
|
|
@@ -14104,11 +14108,11 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
|
|
|
14104
14108
|
})
|
|
14105
14109
|
]
|
|
14106
14110
|
}),
|
|
14107
|
-
f &&
|
|
14111
|
+
f && b && /* @__PURE__ */ r("div", {
|
|
14108
14112
|
className: "pagination__page-size",
|
|
14109
14113
|
children: [/* @__PURE__ */ e("span", { children: d }), /* @__PURE__ */ e(u0, {
|
|
14110
14114
|
name: "pageSize",
|
|
14111
|
-
options:
|
|
14115
|
+
options: b,
|
|
14112
14116
|
value: i,
|
|
14113
14117
|
searchable: !1,
|
|
14114
14118
|
usePortal: !1,
|
|
@@ -14182,7 +14186,7 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
|
|
|
14182
14186
|
children: t.showYear ? t.yearLabel : t.dateLabel
|
|
14183
14187
|
})
|
|
14184
14188
|
}), ka = ({ items: t, renderItem: c, className: l }) => {
|
|
14185
|
-
const a =
|
|
14189
|
+
const a = h1(() => U0(t), [t]);
|
|
14186
14190
|
return /* @__PURE__ */ r("div", {
|
|
14187
14191
|
className: `timeline-markers${l ? ` ${l}` : ""}`,
|
|
14188
14192
|
children: [/* @__PURE__ */ e("div", { className: "timeline-markers__track" }), t.map((s, o) => {
|
|
@@ -14215,8 +14219,8 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
|
|
|
14215
14219
|
}), /* @__PURE__ */ e("span", { children: a })]
|
|
14216
14220
|
}) : a;
|
|
14217
14221
|
};
|
|
14218
|
-
function hc({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o, onRowClick: i, rowHref: n, rowClassName: d, empty: h, selectable: p, selectedIds: v = [], pinnedIds: g, onToggleSelect: w, cardMaxWidth: m, isMobile: u = !1, groups: f, showGroupCount:
|
|
14219
|
-
const k = c.filter((z) => !z.hideInCard && !(u && z.hideInMobile)), V =
|
|
14222
|
+
function hc({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o, onRowClick: i, rowHref: n, rowClassName: d, empty: h, selectable: p, selectedIds: v = [], pinnedIds: g, onToggleSelect: w, cardMaxWidth: m, isMobile: u = !1, groups: f, showGroupCount: b = !0, collapsible: x = !1, collapsedGroups: y, onToggleGroup: M }) {
|
|
14223
|
+
const k = c.filter((z) => !z.hideInCard && !(u && z.hideInMobile)), V = h1(() => new Set(g ?? []), [g]), _ = `data-view__cards${m !== void 0 ? " data-view__cards--grid" : ""}`, C = m !== void 0 ? { "--data-view-card-max-width": sc(m) } : void 0, N = h1(() => o ? U0(t.map((z) => ({
|
|
14220
14224
|
id: o.idAccessor(z),
|
|
14221
14225
|
date: o.dateAccessor(z)
|
|
14222
14226
|
})), o.granularity) : /* @__PURE__ */ new Map(), [t, o]);
|
|
@@ -14314,22 +14318,22 @@ function hc({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14314
14318
|
children: f.map((Z) => {
|
|
14315
14319
|
const R = z;
|
|
14316
14320
|
z += Z.items.length;
|
|
14317
|
-
const $ =
|
|
14321
|
+
const $ = x && y?.has(Z.key);
|
|
14318
14322
|
return /* @__PURE__ */ r("section", {
|
|
14319
14323
|
className: "data-view__group",
|
|
14320
14324
|
children: [/* @__PURE__ */ r("header", {
|
|
14321
|
-
className: `data-view__group-header${
|
|
14322
|
-
onClick:
|
|
14325
|
+
className: `data-view__group-header${x ? " data-view__group-header--collapsible" : ""}`,
|
|
14326
|
+
onClick: x ? () => M?.(Z.key) : void 0,
|
|
14323
14327
|
children: [
|
|
14324
14328
|
/* @__PURE__ */ e("span", {
|
|
14325
14329
|
className: "data-view__group-label",
|
|
14326
14330
|
children: Z.label
|
|
14327
14331
|
}),
|
|
14328
|
-
|
|
14332
|
+
b && /* @__PURE__ */ e("span", {
|
|
14329
14333
|
className: "data-view__group-count",
|
|
14330
14334
|
children: Z.totalCount
|
|
14331
14335
|
}),
|
|
14332
|
-
|
|
14336
|
+
x && /* @__PURE__ */ e(I, {
|
|
14333
14337
|
className: "data-view__group-chevron",
|
|
14334
14338
|
name: $ ? "caret-down" : "caret-up",
|
|
14335
14339
|
size: "sm"
|
|
@@ -14358,7 +14362,7 @@ var dc = ({ items: t, sortKey: c, sortDirection: l, onSort: a, align: s = "left"
|
|
|
14358
14362
|
].filter(Boolean).join(" "),
|
|
14359
14363
|
children: [t.map((n, d) => {
|
|
14360
14364
|
const h = n.direction ?? "asc", p = o ? c === n.value : c === n.value && l === h;
|
|
14361
|
-
return /* @__PURE__ */ e(
|
|
14365
|
+
return /* @__PURE__ */ e(s1, {
|
|
14362
14366
|
title: `Sort by ${typeof n.label == "string" || typeof n.label == "number" ? String(n.label) : n.value}${o ? "" : ` ${h === "asc" ? "ascending" : "descending"}`}`,
|
|
14363
14367
|
children: /* @__PURE__ */ e(W, {
|
|
14364
14368
|
className: `mini-sort__button${p ? " is-active" : ""}`,
|
|
@@ -14375,7 +14379,7 @@ var dc = ({ items: t, sortKey: c, sortDirection: l, onSort: a, align: s = "left"
|
|
|
14375
14379
|
children: n.label ?? n.value
|
|
14376
14380
|
})
|
|
14377
14381
|
}, `${n.value}-${d}`);
|
|
14378
|
-
}), o && /* @__PURE__ */ e(
|
|
14382
|
+
}), o && /* @__PURE__ */ e(s1, {
|
|
14379
14383
|
title: `Direction: ${l === "asc" ? "ascending" : "descending"}`,
|
|
14380
14384
|
children: /* @__PURE__ */ e(W, {
|
|
14381
14385
|
className: "mini-sort__button mini-sort__direction",
|
|
@@ -14417,20 +14421,20 @@ function pc({ state: t }) {
|
|
|
14417
14421
|
children: /* @__PURE__ */ e(I, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
|
|
14418
14422
|
});
|
|
14419
14423
|
}
|
|
14420
|
-
function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1, onSelectionChange: o, selectedIds: i, pageSizeOptions: n = a2, initialPageSize: d = a2[1], showPageSize: h = !0, card: p, actions: v, actionsWidth: g, timeline: w, onRowClick: m, rowHref: u, rowClassName: f, rowDetail:
|
|
14421
|
-
const { isMobile: G } = a0(), [
|
|
14422
|
-
|
|
14424
|
+
function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1, onSelectionChange: o, selectedIds: i, pageSizeOptions: n = a2, initialPageSize: d = a2[1], showPageSize: h = !0, card: p, actions: v, actionsWidth: g, timeline: w, onRowClick: m, rowHref: u, rowClassName: f, rowDetail: b, empty: x, initialSortKey: y = null, initialSortDirection: M = "asc", sortKey: k, sortDirection: V, onSortChange: _, miniSort: C, showCardSortControls: N = !0, desktopView: B = "table", cardMaxWidth: z, className: Z, onPageChange: R, onPageSizeChange: $, currentPage: q, totalItems: p1, group: A, showResultsCount: c1 = !0, totalCount: t1, itemNoun: T }) {
|
|
14425
|
+
const { isMobile: G } = a0(), [d1, v1] = L(y), [U, i1] = L(M), [n1, C1] = L([]), u1 = i ?? n1, [A1, G1] = L(1), X = q ?? A1, [K, S] = L(d), [D, e1] = L(() => t.reduce((H, Q) => (Q.width && (H[Q.key] = Q.width), H), {})), [a1, x1] = L(/* @__PURE__ */ new Set()), f1 = (H) => {
|
|
14426
|
+
x1((Q) => {
|
|
14423
14427
|
const o1 = new Set(Q);
|
|
14424
14428
|
return o1.has(H) ? o1.delete(H) : o1.add(H), o1;
|
|
14425
14429
|
});
|
|
14426
14430
|
}, M1 = (H, Q) => l?.(H, Q) ?? Q, F1 = (H) => {
|
|
14427
14431
|
q === void 0 && G1(H), R?.(H);
|
|
14428
|
-
}, g1 = k !== void 0 ? k :
|
|
14432
|
+
}, g1 = k !== void 0 ? k : d1, b1 = V ?? U, $1 = (H, Q) => {
|
|
14429
14433
|
k === void 0 && v1(H), V === void 0 && i1(Q), _?.({
|
|
14430
14434
|
key: H,
|
|
14431
14435
|
direction: Q
|
|
14432
14436
|
}), F1(1);
|
|
14433
|
-
}, q1 =
|
|
14437
|
+
}, q1 = h1(() => new Set(a ?? []), [a]), P = h1(() => {
|
|
14434
14438
|
let H = c;
|
|
14435
14439
|
if (g1) {
|
|
14436
14440
|
const J = t.find((l1) => l1.key === g1);
|
|
@@ -14442,7 +14446,7 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14442
14446
|
const R1 = l1(V1), k1 = l1(L1);
|
|
14443
14447
|
return typeof R1 == "number" && typeof k1 == "number" ? R1 - k1 : String(R1).localeCompare(String(k1));
|
|
14444
14448
|
});
|
|
14445
|
-
H =
|
|
14449
|
+
H = b1 === "asc" ? w1 : w1.reverse();
|
|
14446
14450
|
}
|
|
14447
14451
|
}
|
|
14448
14452
|
if (q1.size === 0) return H;
|
|
@@ -14457,18 +14461,18 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14457
14461
|
}, [
|
|
14458
14462
|
t,
|
|
14459
14463
|
c,
|
|
14460
|
-
|
|
14464
|
+
b1,
|
|
14461
14465
|
g1,
|
|
14462
14466
|
q1,
|
|
14463
14467
|
a
|
|
14464
|
-
]), j = p1 !== void 0, Y = j ? p1 : P.length, m1 = Math.max(1, Math.ceil(Y / K)), B1 = Math.min(X, m1), D1 = j ? P : P.slice((B1 - 1) * K, B1 * K), X1 = c1 ? Xr(K, Y, t1 ?? Y, B1, T) : null, _0 =
|
|
14468
|
+
]), j = p1 !== void 0, Y = j ? p1 : P.length, m1 = Math.max(1, Math.ceil(Y / K)), B1 = Math.min(X, m1), D1 = j ? P : P.slice((B1 - 1) * K, B1 * K), X1 = c1 ? Xr(K, Y, t1 ?? Y, B1, T) : null, _0 = h1(() => {
|
|
14465
14469
|
if (!A) return null;
|
|
14466
14470
|
const H = /* @__PURE__ */ new Map();
|
|
14467
14471
|
return P.forEach((Q) => {
|
|
14468
14472
|
const o1 = A.groupBy(Q);
|
|
14469
14473
|
H.set(o1, (H.get(o1) ?? 0) + 1);
|
|
14470
14474
|
}), H;
|
|
14471
|
-
}, [A, P]), L0 =
|
|
14475
|
+
}, [A, P]), L0 = h1(() => {
|
|
14472
14476
|
if (!A || !_0) return null;
|
|
14473
14477
|
const H = /* @__PURE__ */ new Map(), Q = [];
|
|
14474
14478
|
D1.forEach((J) => {
|
|
@@ -14486,13 +14490,13 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14486
14490
|
A,
|
|
14487
14491
|
_0,
|
|
14488
14492
|
D1
|
|
14489
|
-
]), F0 =
|
|
14493
|
+
]), F0 = h1(() => w ? U0(D1.map((H) => ({
|
|
14490
14494
|
id: w.idAccessor(H),
|
|
14491
14495
|
date: w.dateAccessor(H)
|
|
14492
14496
|
})), w.granularity) : /* @__PURE__ */ new Map(), [D1, w]), K1 = (H) => {
|
|
14493
14497
|
i === void 0 && C1(H), o?.(c.filter((Q, o1) => H.includes(M1(Q, o1))));
|
|
14494
14498
|
}, j2 = (H) => {
|
|
14495
|
-
H.sortable && (g1 === H.key ? $1(H.key,
|
|
14499
|
+
H.sortable && (g1 === H.key ? $1(H.key, b1 === "asc" ? "desc" : "asc") : $1(H.key, "asc"));
|
|
14496
14500
|
}, P2 = (H, Q) => {
|
|
14497
14501
|
H.preventDefault();
|
|
14498
14502
|
const o1 = H.clientX, J = D[Q] ?? 150, l1 = (V1) => {
|
|
@@ -14512,7 +14516,7 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14512
14516
|
columns: t,
|
|
14513
14517
|
config: C,
|
|
14514
14518
|
sortKey: g1,
|
|
14515
|
-
sortDirection:
|
|
14519
|
+
sortDirection: b1,
|
|
14516
14520
|
onSort: $1
|
|
14517
14521
|
}) : null, Y0 = X1 || O0 ? /* @__PURE__ */ r("div", {
|
|
14518
14522
|
className: `data-view__top-row data-view__top-row--mini-${F2}`,
|
|
@@ -14539,23 +14543,23 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14539
14543
|
usePortal: !1,
|
|
14540
14544
|
onChange: (H) => {
|
|
14541
14545
|
if (!H || Array.isArray(H)) {
|
|
14542
|
-
$1(null,
|
|
14546
|
+
$1(null, b1);
|
|
14543
14547
|
return;
|
|
14544
14548
|
}
|
|
14545
14549
|
const Q = String(H.value);
|
|
14546
|
-
$1(Q, g1 === Q ?
|
|
14550
|
+
$1(Q, g1 === Q ? b1 : "asc");
|
|
14547
14551
|
}
|
|
14548
14552
|
})
|
|
14549
|
-
}), /* @__PURE__ */ e(
|
|
14550
|
-
title:
|
|
14553
|
+
}), /* @__PURE__ */ e(s1, {
|
|
14554
|
+
title: b1 === "asc" ? "Sort descending" : "Sort ascending",
|
|
14551
14555
|
children: /* @__PURE__ */ e(W, {
|
|
14552
14556
|
className: "data-view__card-sort-direction",
|
|
14553
14557
|
disabled: !V0,
|
|
14554
14558
|
onClick: () => {
|
|
14555
|
-
V0 && $1(V0.key,
|
|
14559
|
+
V0 && $1(V0.key, b1 === "asc" ? "desc" : "asc");
|
|
14556
14560
|
},
|
|
14557
14561
|
variant: "ghost",
|
|
14558
|
-
children: /* @__PURE__ */ e(I, { name:
|
|
14562
|
+
children: /* @__PURE__ */ e(I, { name: b1 === "asc" ? "arrow-up" : "arrow-down" })
|
|
14559
14563
|
})
|
|
14560
14564
|
})]
|
|
14561
14565
|
}),
|
|
@@ -14576,7 +14580,7 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14576
14580
|
onRowClick: m,
|
|
14577
14581
|
rowHref: u,
|
|
14578
14582
|
rowClassName: f,
|
|
14579
|
-
empty:
|
|
14583
|
+
empty: x,
|
|
14580
14584
|
selectable: s,
|
|
14581
14585
|
selectedIds: u1,
|
|
14582
14586
|
pinnedIds: a,
|
|
@@ -14628,7 +14632,7 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14628
14632
|
onClick: () => j2(H),
|
|
14629
14633
|
children: [/* @__PURE__ */ r("span", {
|
|
14630
14634
|
className: "data-view__th-content",
|
|
14631
|
-
children: [N2(H), H.sortable && /* @__PURE__ */ e(pc, { state: g1 === H.key ?
|
|
14635
|
+
children: [N2(H), H.sortable && /* @__PURE__ */ e(pc, { state: g1 === H.key ? b1 : "unsorted" })]
|
|
14632
14636
|
}), /* @__PURE__ */ e("span", {
|
|
14633
14637
|
className: "data-view__resizer",
|
|
14634
14638
|
onMouseDown: (o1) => P2(o1, H.key),
|
|
@@ -14657,12 +14661,12 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14657
14661
|
if (D1.length === 0) return /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", {
|
|
14658
14662
|
colSpan: i0.length + (Q1 ? 1 : 0) + (s ? 1 : 0) + (v ? 1 : 0),
|
|
14659
14663
|
className: "data-view__empty",
|
|
14660
|
-
children:
|
|
14661
|
-
title:
|
|
14662
|
-
description:
|
|
14663
|
-
icon:
|
|
14664
|
-
primary:
|
|
14665
|
-
secondary:
|
|
14664
|
+
children: x ? /* @__PURE__ */ e(l0, {
|
|
14665
|
+
title: x.title,
|
|
14666
|
+
description: x.description,
|
|
14667
|
+
icon: x.icon,
|
|
14668
|
+
primary: x.primary,
|
|
14669
|
+
secondary: x.secondary
|
|
14666
14670
|
}) : /* @__PURE__ */ e(l0, { title: "No data available" })
|
|
14667
14671
|
}) });
|
|
14668
14672
|
const H = i0.length + (Q1 ? 1 : 0) + (s ? 1 : 0) + (v ? 1 : 0), Q = A?.showCount !== !1, o1 = (J, l1) => {
|
|
@@ -14674,7 +14678,7 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14674
14678
|
m?.(J);
|
|
14675
14679
|
}, X2 = (y1) => {
|
|
14676
14680
|
y1.button !== 1 || !k1 || (y1.preventDefault(), window.open(k1, "_blank", "noopener,noreferrer"));
|
|
14677
|
-
}, N0 =
|
|
14681
|
+
}, N0 = b?.(J);
|
|
14678
14682
|
return /* @__PURE__ */ r(Z1.Fragment, { children: [/* @__PURE__ */ r("tr", {
|
|
14679
14683
|
className: `${V1 ? "is-selected" : ""} ${K0 ? "data-view__row--clickable" : ""} ${L1 ? "data-view__row--pinned" : ""} ${f?.(J) || ""}`,
|
|
14680
14684
|
onClick: K0 ? Y2 : void 0,
|
|
@@ -14695,7 +14699,7 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14695
14699
|
}),
|
|
14696
14700
|
i0.map((y1, H0) => /* @__PURE__ */ r("td", {
|
|
14697
14701
|
style: D[y1.key] ? { width: D[y1.key] } : void 0,
|
|
14698
|
-
children: [H0 === 0 && L1 && /* @__PURE__ */ e(
|
|
14702
|
+
children: [H0 === 0 && L1 && /* @__PURE__ */ e(s1, {
|
|
14699
14703
|
title: "Pinned",
|
|
14700
14704
|
children: /* @__PURE__ */ e(I, {
|
|
14701
14705
|
className: "data-view__pin-indicator",
|
|
@@ -14783,10 +14787,10 @@ var O1 = (t) => {
|
|
|
14783
14787
|
if (!(!c || !l || !a))
|
|
14784
14788
|
return new Date(c, l - 1, a);
|
|
14785
14789
|
}, f0 = (t) => `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`, La = ({ label: t, value: c, onChange: l, min: a, max: s, alwaysOpen: o = !1, autoClose: i = !0, presets: n }) => {
|
|
14786
|
-
const [d, h] = L({}), [p, v] = L(() => /* @__PURE__ */ new Date()), [g, w] = L(null), [m, u] = L(o), [f,
|
|
14790
|
+
const [d, h] = L({}), [p, v] = L(() => /* @__PURE__ */ new Date()), [g, w] = L(null), [m, u] = L(o), [f, b] = L({
|
|
14787
14791
|
position: "fixed",
|
|
14788
14792
|
visibility: "hidden"
|
|
14789
|
-
}), [
|
|
14793
|
+
}), [x, y] = L(c?.start ?? ""), [M, k] = L(c?.end ?? ""), V = O(null), _ = O(null), C = c ?? d, N = O1(C.start), B = O1(C.end), z = N && B ? {
|
|
14790
14794
|
start: N,
|
|
14791
14795
|
end: B
|
|
14792
14796
|
} : void 0, Z = (U) => {
|
|
@@ -14799,9 +14803,9 @@ var O1 = (t) => {
|
|
|
14799
14803
|
}, $ = (U) => {
|
|
14800
14804
|
w(U);
|
|
14801
14805
|
}, q = (U) => /^\d{4}-\d{2}-\d{2}$/.test(U) && O1(U) !== void 0, p1 = () => {
|
|
14802
|
-
q(
|
|
14806
|
+
q(x) ? Z({
|
|
14803
14807
|
...C,
|
|
14804
|
-
start:
|
|
14808
|
+
start: x
|
|
14805
14809
|
}) : y(C.start ?? "");
|
|
14806
14810
|
}, A = () => {
|
|
14807
14811
|
q(M) ? Z({
|
|
@@ -14820,10 +14824,10 @@ var O1 = (t) => {
|
|
|
14820
14824
|
}, [C.start]), F(() => {
|
|
14821
14825
|
k(C.end ?? "");
|
|
14822
14826
|
}, [C.end]);
|
|
14823
|
-
const t1 =
|
|
14827
|
+
const t1 = h1(() => d0(p, 1), [p]), T = o || m, G = !o && m, d1 = E(() => {
|
|
14824
14828
|
if (!G || !V.current || !_.current) return;
|
|
14825
14829
|
const U = V.current.getBoundingClientRect(), i1 = _.current.getBoundingClientRect(), n1 = 16, C1 = 8, u1 = window.innerHeight - U.bottom - n1, A1 = U.top - n1, G1 = u1 < i1.height && A1 > i1.height ? U.top - i1.height - C1 : U.bottom + C1, X = Math.max(n1, Math.min(G1, window.innerHeight - i1.height - n1)), K = U.left, S = Math.max(n1, Math.min(K, window.innerWidth - i1.width - n1));
|
|
14826
|
-
|
|
14830
|
+
b({
|
|
14827
14831
|
position: "fixed",
|
|
14828
14832
|
top: `${X}px`,
|
|
14829
14833
|
left: `${S}px`,
|
|
@@ -14834,17 +14838,17 @@ var O1 = (t) => {
|
|
|
14834
14838
|
o && u(!0);
|
|
14835
14839
|
}, [o]), F(() => {
|
|
14836
14840
|
if (!G) {
|
|
14837
|
-
|
|
14841
|
+
b({
|
|
14838
14842
|
position: "fixed",
|
|
14839
14843
|
visibility: "hidden"
|
|
14840
14844
|
});
|
|
14841
14845
|
return;
|
|
14842
14846
|
}
|
|
14843
|
-
const U = requestAnimationFrame(() => requestAnimationFrame(
|
|
14844
|
-
return window.addEventListener("resize",
|
|
14845
|
-
cancelAnimationFrame(U), window.removeEventListener("resize",
|
|
14847
|
+
const U = requestAnimationFrame(() => requestAnimationFrame(d1));
|
|
14848
|
+
return window.addEventListener("resize", d1), window.addEventListener("scroll", d1, !0), () => {
|
|
14849
|
+
cancelAnimationFrame(U), window.removeEventListener("resize", d1), window.removeEventListener("scroll", d1, !0);
|
|
14846
14850
|
};
|
|
14847
|
-
}, [G,
|
|
14851
|
+
}, [G, d1]), F(() => {
|
|
14848
14852
|
if (!G) return;
|
|
14849
14853
|
const U = (n1) => {
|
|
14850
14854
|
const C1 = n1.target;
|
|
@@ -14883,7 +14887,7 @@ var O1 = (t) => {
|
|
|
14883
14887
|
]
|
|
14884
14888
|
}), /* @__PURE__ */ r("div", {
|
|
14885
14889
|
className: "date-range-picker__months",
|
|
14886
|
-
children: [/* @__PURE__ */ e(
|
|
14890
|
+
children: [/* @__PURE__ */ e(b0, {
|
|
14887
14891
|
mode: "range",
|
|
14888
14892
|
value: z,
|
|
14889
14893
|
onChange: R,
|
|
@@ -14895,7 +14899,7 @@ var O1 = (t) => {
|
|
|
14895
14899
|
showToday: !1,
|
|
14896
14900
|
minDate: a ? O1(a) : void 0,
|
|
14897
14901
|
maxDate: s ? O1(s) : void 0
|
|
14898
|
-
}), /* @__PURE__ */ e(
|
|
14902
|
+
}), /* @__PURE__ */ e(b0, {
|
|
14899
14903
|
mode: "range",
|
|
14900
14904
|
value: z,
|
|
14901
14905
|
onChange: R,
|
|
@@ -14944,7 +14948,7 @@ var O1 = (t) => {
|
|
|
14944
14948
|
className: "date-range-picker__inputs",
|
|
14945
14949
|
children: [
|
|
14946
14950
|
/* @__PURE__ */ e(S1, {
|
|
14947
|
-
value:
|
|
14951
|
+
value: x,
|
|
14948
14952
|
placeholder: "YYYY-MM-DD",
|
|
14949
14953
|
maxLength: 10,
|
|
14950
14954
|
onChange: y,
|
|
@@ -15110,7 +15114,7 @@ function fc(t) {
|
|
|
15110
15114
|
}
|
|
15111
15115
|
return c;
|
|
15112
15116
|
}
|
|
15113
|
-
var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children:
|
|
15117
|
+
var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: h1(() => fc(t), [t]).map((c, l) => c.name === "plain" ? /* @__PURE__ */ e("span", { children: c.val }, l) : /* @__PURE__ */ e("span", {
|
|
15114
15118
|
className: `dv-token dv-token--${c.name}`,
|
|
15115
15119
|
children: c.val
|
|
15116
15120
|
}, l)) }), T0 = ({ line: t, side: c, type: l }) => {
|
|
@@ -15121,7 +15125,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
15121
15125
|
side: c
|
|
15122
15126
|
}) : l === "code" ? /* @__PURE__ */ e(Cc, { text: a }) : /* @__PURE__ */ e(r1, { children: a });
|
|
15123
15127
|
}, za = ({ oldValue: t, newValue: c, mode: l = "split", type: a = "text", oldTitle: s = "Before", newTitle: o = "After", showLineNumbers: i = !0 }) => {
|
|
15124
|
-
const n =
|
|
15128
|
+
const n = h1(() => vc(t, c), [t, c]), d = h1(() => ({
|
|
15125
15129
|
added: n.filter((h) => h.kind === "added").length,
|
|
15126
15130
|
removed: n.filter((h) => h.kind === "removed").length
|
|
15127
15131
|
}), [n]);
|
|
@@ -15241,7 +15245,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
15241
15245
|
})
|
|
15242
15246
|
})]
|
|
15243
15247
|
});
|
|
15244
|
-
}, yc = 1e3, i2 = 0, B2 = ({ isOpen: t, onClose: c, position: l = "left", width: a = "320px", maxWidth: s = "none", margin: o = 0, borderRadius: i = 0, shadow: n = "none", children: d, title: h, icon: p, className: v = "", showOverlay: g = !0, lockScroll: w = !0, hideClose: m = !1, actions: u = [], onBack: f, backLabel:
|
|
15248
|
+
}, yc = 1e3, i2 = 0, B2 = ({ isOpen: t, onClose: c, position: l = "left", width: a = "320px", maxWidth: s = "none", margin: o = 0, borderRadius: i = 0, shadow: n = "none", children: d, title: h, icon: p, className: v = "", showOverlay: g = !0, lockScroll: w = !0, hideClose: m = !1, actions: u = [], onBack: f, backLabel: b = "Back", primary: x, secondary: y, footer: M }) => {
|
|
15245
15249
|
C2(t && w);
|
|
15246
15250
|
const [k, V] = L(0);
|
|
15247
15251
|
if (F(() => {
|
|
@@ -15259,7 +15263,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
15259
15263
|
"--drawer-border-radius": _(i),
|
|
15260
15264
|
"--drawer-shadow": n,
|
|
15261
15265
|
zIndex: C + 1
|
|
15262
|
-
}, B = M ||
|
|
15266
|
+
}, B = M || x || y;
|
|
15263
15267
|
return /* @__PURE__ */ r(r1, { children: [g && /* @__PURE__ */ e("div", {
|
|
15264
15268
|
className: "drawer-overlay",
|
|
15265
15269
|
onClick: c,
|
|
@@ -15271,8 +15275,8 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
15271
15275
|
/* @__PURE__ */ r("div", {
|
|
15272
15276
|
className: "drawer__header",
|
|
15273
15277
|
children: [
|
|
15274
|
-
f && /* @__PURE__ */ e(
|
|
15275
|
-
title:
|
|
15278
|
+
f && /* @__PURE__ */ e(s1, {
|
|
15279
|
+
title: b,
|
|
15276
15280
|
position: "bottom",
|
|
15277
15281
|
children: /* @__PURE__ */ e(W, {
|
|
15278
15282
|
className: "drawer__back",
|
|
@@ -15301,7 +15305,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
15301
15305
|
variant: z.variant ?? "ghost",
|
|
15302
15306
|
children: z.label
|
|
15303
15307
|
}), R = z.title ?? z.label;
|
|
15304
|
-
return R ? /* @__PURE__ */ e(
|
|
15308
|
+
return R ? /* @__PURE__ */ e(s1, {
|
|
15305
15309
|
title: R,
|
|
15306
15310
|
position: "bottom",
|
|
15307
15311
|
children: Z
|
|
@@ -15327,7 +15331,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
15327
15331
|
children: [M && /* @__PURE__ */ e("div", {
|
|
15328
15332
|
className: "drawer__footer-content",
|
|
15329
15333
|
children: M
|
|
15330
|
-
}), (
|
|
15334
|
+
}), (x || y) && /* @__PURE__ */ r("div", {
|
|
15331
15335
|
className: "drawer__footer-actions",
|
|
15332
15336
|
children: [y && /* @__PURE__ */ e(W, {
|
|
15333
15337
|
variant: y.variant || "default",
|
|
@@ -15335,18 +15339,18 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
15335
15339
|
disabled: y.disabled,
|
|
15336
15340
|
onClick: y.onClick,
|
|
15337
15341
|
children: y.text
|
|
15338
|
-
}),
|
|
15339
|
-
variant:
|
|
15340
|
-
icon:
|
|
15341
|
-
disabled:
|
|
15342
|
-
onClick:
|
|
15343
|
-
children:
|
|
15342
|
+
}), x && /* @__PURE__ */ e(W, {
|
|
15343
|
+
variant: x.variant || "info",
|
|
15344
|
+
icon: x.icon,
|
|
15345
|
+
disabled: x.disabled,
|
|
15346
|
+
onClick: x.onClick,
|
|
15347
|
+
children: x.text
|
|
15344
15348
|
})]
|
|
15345
15349
|
})]
|
|
15346
15350
|
})
|
|
15347
15351
|
]
|
|
15348
15352
|
})] });
|
|
15349
|
-
},
|
|
15353
|
+
}, bc = {
|
|
15350
15354
|
"⚽": [
|
|
15351
15355
|
"soccer",
|
|
15352
15356
|
"football",
|
|
@@ -15850,7 +15854,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
15850
15854
|
"bike",
|
|
15851
15855
|
"sport"
|
|
15852
15856
|
]
|
|
15853
|
-
},
|
|
15857
|
+
}, xc = {
|
|
15854
15858
|
"🐶": [
|
|
15855
15859
|
"dog",
|
|
15856
15860
|
"puppy",
|
|
@@ -19648,10 +19652,10 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
19648
19652
|
}, Nc = {
|
|
19649
19653
|
...Lc,
|
|
19650
19654
|
..._c,
|
|
19651
|
-
...
|
|
19655
|
+
...xc,
|
|
19652
19656
|
...Mc,
|
|
19653
19657
|
...Vc,
|
|
19654
|
-
...
|
|
19658
|
+
...bc,
|
|
19655
19659
|
...kc,
|
|
19656
19660
|
...zc
|
|
19657
19661
|
}, C0 = [
|
|
@@ -20394,7 +20398,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
20394
20398
|
]
|
|
20395
20399
|
}
|
|
20396
20400
|
], Va = ({ value: t, onChange: c }) => {
|
|
20397
|
-
const [l, a] = L(""), [s, o] = L(C0[0].id), i =
|
|
20401
|
+
const [l, a] = L(""), [s, o] = L(C0[0].id), i = h1(() => {
|
|
20398
20402
|
if (!l.trim()) return null;
|
|
20399
20403
|
const d = l.toLowerCase();
|
|
20400
20404
|
return C0.flatMap((h) => h.emojis.filter((p) => Nc[p]?.some((v) => v.includes(d)) || h.name.toLowerCase().includes(d)));
|
|
@@ -20528,7 +20532,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
20528
20532
|
const [c, l] = L(!1);
|
|
20529
20533
|
if (t.length === 1) return /* @__PURE__ */ e("div", {
|
|
20530
20534
|
className: "float-button-container",
|
|
20531
|
-
children: /* @__PURE__ */ e(
|
|
20535
|
+
children: /* @__PURE__ */ e(s1, {
|
|
20532
20536
|
title: t[0].label,
|
|
20533
20537
|
position: "left",
|
|
20534
20538
|
children: /* @__PURE__ */ e("button", {
|
|
@@ -20581,13 +20585,13 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
20581
20585
|
})]
|
|
20582
20586
|
});
|
|
20583
20587
|
}, Ba = ({ isOpen: t, title: c = "Select a folder", initialPath: l, loadDirectory: a, onSelect: s, onClose: o, selectLabel: i = "Select this folder" }) => {
|
|
20584
|
-
const [n, d] = L(null), [h, p] = L(!1), [v, g] = L(""), w = E(async (
|
|
20588
|
+
const [n, d] = L(null), [h, p] = L(!1), [v, g] = L(""), w = E(async (x) => {
|
|
20585
20589
|
p(!0);
|
|
20586
20590
|
try {
|
|
20587
|
-
d(await a(
|
|
20591
|
+
d(await a(x));
|
|
20588
20592
|
} catch {
|
|
20589
20593
|
d({
|
|
20590
|
-
current:
|
|
20594
|
+
current: x ?? null,
|
|
20591
20595
|
parent: null,
|
|
20592
20596
|
drives: [],
|
|
20593
20597
|
directories: [],
|
|
@@ -20609,11 +20613,11 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
20609
20613
|
const m = () => {
|
|
20610
20614
|
n && w(n.parent ?? "");
|
|
20611
20615
|
}, u = () => {
|
|
20612
|
-
const
|
|
20613
|
-
h ||
|
|
20614
|
-
}, f = n?.current === null,
|
|
20615
|
-
name:
|
|
20616
|
-
path:
|
|
20616
|
+
const x = v.trim();
|
|
20617
|
+
h || x === (n?.current ?? "") || w(x === "" ? void 0 : x);
|
|
20618
|
+
}, f = n?.current === null, b = f ? n?.drives.map((x) => ({
|
|
20619
|
+
name: x,
|
|
20620
|
+
path: x
|
|
20617
20621
|
})) ?? [] : n?.directories ?? [];
|
|
20618
20622
|
return /* @__PURE__ */ e(U1, {
|
|
20619
20623
|
isOpen: t,
|
|
@@ -20655,7 +20659,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
20655
20659
|
placeholder: "Paste or type a folder path, then press Enter",
|
|
20656
20660
|
disabled: h,
|
|
20657
20661
|
onChange: g,
|
|
20658
|
-
onKeyDown: (
|
|
20662
|
+
onKeyDown: (x) => x.key === "Enter" && u()
|
|
20659
20663
|
})
|
|
20660
20664
|
}),
|
|
20661
20665
|
/* @__PURE__ */ e(W, {
|
|
@@ -20677,18 +20681,18 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
20677
20681
|
children: h ? /* @__PURE__ */ e("div", {
|
|
20678
20682
|
className: "folder-browser__loading",
|
|
20679
20683
|
children: /* @__PURE__ */ e(j0, {})
|
|
20680
|
-
}) :
|
|
20684
|
+
}) : b.length === 0 ? /* @__PURE__ */ e(l0, {
|
|
20681
20685
|
icon: "folder",
|
|
20682
20686
|
title: "No subfolders",
|
|
20683
20687
|
description: "This folder has no subfolders. You can still select it."
|
|
20684
|
-
}) :
|
|
20688
|
+
}) : b.map((x) => /* @__PURE__ */ r("button", {
|
|
20685
20689
|
type: "button",
|
|
20686
20690
|
className: "folder-browser__entry",
|
|
20687
20691
|
onDoubleClick: () => {
|
|
20688
|
-
w(
|
|
20692
|
+
w(x.path);
|
|
20689
20693
|
},
|
|
20690
20694
|
onClick: () => {
|
|
20691
|
-
w(
|
|
20695
|
+
w(x.path);
|
|
20692
20696
|
},
|
|
20693
20697
|
children: [
|
|
20694
20698
|
/* @__PURE__ */ e(I, {
|
|
@@ -20697,7 +20701,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
20697
20701
|
}),
|
|
20698
20702
|
/* @__PURE__ */ e("span", {
|
|
20699
20703
|
className: "folder-browser__entry-name",
|
|
20700
|
-
children:
|
|
20704
|
+
children: x.name
|
|
20701
20705
|
}),
|
|
20702
20706
|
/* @__PURE__ */ e(I, {
|
|
20703
20707
|
className: "folder-browser__entry-chevron",
|
|
@@ -20705,7 +20709,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
20705
20709
|
size: "sm"
|
|
20706
20710
|
})
|
|
20707
20711
|
]
|
|
20708
|
-
},
|
|
20712
|
+
}, x.path))
|
|
20709
20713
|
})
|
|
20710
20714
|
]
|
|
20711
20715
|
})
|
|
@@ -20714,15 +20718,15 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
20714
20718
|
const p = O(null), v = O(null), g = O(null), w = E(() => {
|
|
20715
20719
|
const m = p.current;
|
|
20716
20720
|
if (!m) return;
|
|
20717
|
-
const { scrollTop: u, scrollHeight: f, clientHeight:
|
|
20721
|
+
const { scrollTop: u, scrollHeight: f, clientHeight: b } = m, x = {
|
|
20718
20722
|
scrollTop: u,
|
|
20719
20723
|
scrollHeight: f,
|
|
20720
|
-
clientHeight:
|
|
20721
|
-
scrollPercent: f <=
|
|
20724
|
+
clientHeight: b,
|
|
20725
|
+
scrollPercent: f <= b ? 100 : Math.round(u / (f - b) * 100),
|
|
20722
20726
|
isAtTop: u === 0,
|
|
20723
|
-
isAtBottom: u +
|
|
20727
|
+
isAtBottom: u + b >= f - 1
|
|
20724
20728
|
};
|
|
20725
|
-
n?.(
|
|
20729
|
+
n?.(x);
|
|
20726
20730
|
}, [n]);
|
|
20727
20731
|
return F(() => {
|
|
20728
20732
|
const m = v.current, u = p.current;
|
|
@@ -20767,7 +20771,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
20767
20771
|
})
|
|
20768
20772
|
]
|
|
20769
20773
|
});
|
|
20770
|
-
}, Hc = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, Sc = (t) => !t || t.trim() === "" ? !0 : Hc.test(t.trim()), Aa = _1(({ autoComplete: t = "on", autoFocus: c, disabled: l, error: a = "Please enter a valid email address", highlighted: s, id: o, label: i, maxLength: n, onBlur: d, onChange: h, onClick: p, onKeyDown: v, onKeyUp: g, onValidate: w, placeholder: m, readOnly: u = !1, required: f = !1, showValidation:
|
|
20774
|
+
}, Hc = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, Sc = (t) => !t || t.trim() === "" ? !0 : Hc.test(t.trim()), Aa = _1(({ autoComplete: t = "on", autoFocus: c, disabled: l, error: a = "Please enter a valid email address", highlighted: s, id: o, label: i, maxLength: n, onBlur: d, onChange: h, onClick: p, onKeyDown: v, onKeyUp: g, onValidate: w, placeholder: m, readOnly: u = !1, required: f = !1, showValidation: b = !1, success: x, validateOn: y = "blur", value: M }, k) => {
|
|
20771
20775
|
const [V, _] = L(!0), [C, N] = L(!1), B = ($) => f && (!$ || $.trim() === "") ? !1 : !$ || $.trim() === "" ? !0 : Sc($);
|
|
20772
20776
|
F(() => {
|
|
20773
20777
|
if (M !== void 0) {
|
|
@@ -20790,7 +20794,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
20790
20794
|
_(q), w?.(q);
|
|
20791
20795
|
}
|
|
20792
20796
|
d?.($);
|
|
20793
|
-
}, R =
|
|
20797
|
+
}, R = b && C && !V;
|
|
20794
20798
|
return /* @__PURE__ */ r("div", {
|
|
20795
20799
|
className: `input-email-wrapper${s ? " input-email-highlighted" : ""}`,
|
|
20796
20800
|
children: [
|
|
@@ -20807,7 +20811,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
20807
20811
|
autoFocus: c,
|
|
20808
20812
|
disabled: l,
|
|
20809
20813
|
type: "email",
|
|
20810
|
-
className: `input-email${R ? " input-email--error" : ""}${
|
|
20814
|
+
className: `input-email${R ? " input-email--error" : ""}${x ? " input-email-success" : V && C && b ? " input-email--valid" : ""}`,
|
|
20811
20815
|
id: o,
|
|
20812
20816
|
maxLength: n,
|
|
20813
20817
|
placeholder: m,
|
|
@@ -20825,9 +20829,9 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
|
|
|
20825
20829
|
className: "input-email-error-message",
|
|
20826
20830
|
children: a
|
|
20827
20831
|
}),
|
|
20828
|
-
|
|
20832
|
+
x && /* @__PURE__ */ e("span", {
|
|
20829
20833
|
className: "input-email-success-message",
|
|
20830
|
-
children:
|
|
20834
|
+
children: x
|
|
20831
20835
|
})
|
|
20832
20836
|
]
|
|
20833
20837
|
});
|
|
@@ -20902,8 +20906,8 @@ function Z0(t, c, l) {
|
|
|
20902
20906
|
function Ac(t) {
|
|
20903
20907
|
return t.filter((c) => c.type === "token").length;
|
|
20904
20908
|
}
|
|
20905
|
-
var $c = _1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, label: o, hint: i, error: n, highlighted: d, size: h = "md", variant: p = "default", disabled: v = !1, readOnly: g = !1, maskChar: w = "_", mono: m = !0, icon: u, suffix: f, className:
|
|
20906
|
-
const V = Z1.useMemo(() => Rc(t), [t]), _ = Z1.useMemo(() => Ac(V), [V]), C = g0(), N =
|
|
20909
|
+
var $c = _1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, label: o, hint: i, error: n, highlighted: d, size: h = "md", variant: p = "default", disabled: v = !1, readOnly: g = !1, maskChar: w = "_", mono: m = !0, icon: u, suffix: f, className: b = "", id: x, name: y, autoComplete: M }, k) => {
|
|
20910
|
+
const V = Z1.useMemo(() => Rc(t), [t]), _ = Z1.useMemo(() => Ac(V), [V]), C = g0(), N = x ?? C, [B, z] = L(() => c !== void 0 ? c : ""), Z = O(null);
|
|
20907
20911
|
u2(k, () => ({
|
|
20908
20912
|
focus: () => Z.current?.focus(),
|
|
20909
20913
|
clear: () => {
|
|
@@ -20921,7 +20925,7 @@ var $c = _1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
|
|
|
20921
20925
|
m ? "input-mask--mono" : "",
|
|
20922
20926
|
u ? "input-mask--has-icon" : "",
|
|
20923
20927
|
f ? "input-mask--has-suffix" : "",
|
|
20924
|
-
|
|
20928
|
+
b
|
|
20925
20929
|
].filter(Boolean).join(" "), A = E((T) => {
|
|
20926
20930
|
if (v || g) return;
|
|
20927
20931
|
if (T.key === "Backspace") {
|
|
@@ -20932,13 +20936,13 @@ var $c = _1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
|
|
|
20932
20936
|
}
|
|
20933
20937
|
if (T.key.length !== 1 || T.ctrlKey || T.metaKey || (T.preventDefault(), B.length >= _)) return;
|
|
20934
20938
|
const G = T.key;
|
|
20935
|
-
let
|
|
20939
|
+
let d1 = 0;
|
|
20936
20940
|
for (const i1 of V) if (i1.type === "token") {
|
|
20937
|
-
if (
|
|
20941
|
+
if (d1 === B.length) {
|
|
20938
20942
|
if (!R2[i1.key].test(G)) return;
|
|
20939
20943
|
break;
|
|
20940
20944
|
}
|
|
20941
|
-
|
|
20945
|
+
d1++;
|
|
20942
20946
|
}
|
|
20943
20947
|
const { masked: v1, rawAccepted: U } = Z0(B + G, V, w);
|
|
20944
20948
|
z(U), l?.(U, v1), U.length === _ && a?.(U, v1);
|
|
@@ -21018,7 +21022,7 @@ var Da = {
|
|
|
21018
21022
|
date: "99/99/9999",
|
|
21019
21023
|
time: "99:99",
|
|
21020
21024
|
uuid: "********-****-****-****-************"
|
|
21021
|
-
}, y0 = _1(({ autoComplete: t = "on", autoFocus: c, disabled: l, error: a, highlighted: s, id: o, label: i, maxLength: n, onBlur: d, onChange: h, onClick: p, onKeyDown: v, onKeyUp: g, placeholder: w, readOnly: m = !1, required: u = !1, success: f, value:
|
|
21025
|
+
}, y0 = _1(({ autoComplete: t = "on", autoFocus: c, disabled: l, error: a, highlighted: s, id: o, label: i, maxLength: n, onBlur: d, onChange: h, onClick: p, onKeyDown: v, onKeyUp: g, placeholder: w, readOnly: m = !1, required: u = !1, success: f, value: b }, x) => /* @__PURE__ */ r("div", {
|
|
21022
21026
|
className: `input-password-wrapper${s ? " input-password-highlighted" : ""}`,
|
|
21023
21027
|
children: [
|
|
21024
21028
|
i && /* @__PURE__ */ r("label", {
|
|
@@ -21038,8 +21042,8 @@ var Da = {
|
|
|
21038
21042
|
id: o,
|
|
21039
21043
|
maxLength: n,
|
|
21040
21044
|
placeholder: w,
|
|
21041
|
-
ref:
|
|
21042
|
-
value:
|
|
21045
|
+
ref: x,
|
|
21046
|
+
value: b,
|
|
21043
21047
|
onBlur: d,
|
|
21044
21048
|
onChange: (y) => h?.(y.target.value),
|
|
21045
21049
|
onClick: p,
|
|
@@ -21071,9 +21075,9 @@ function Tc(t) {
|
|
|
21071
21075
|
return t.split("").filter((c) => c === "#").length;
|
|
21072
21076
|
}
|
|
21073
21077
|
var Zc = _1(({ autoFocus: t, disabled: c, error: l, format: a = Dc, highlighted: s, id: o, label: i, onBlur: n, onChange: d, onClick: h, onKeyDown: p, placeholder: v, readOnly: g = !1, required: w = !1, success: m, value: u }, f) => {
|
|
21074
|
-
const
|
|
21078
|
+
const b = u !== void 0, [x, y] = L(() => u ? G0(E0(u), a) : ""), M = b ? G0(E0(u ?? ""), a) : x, k = v ?? a.replace(/#/g, "0"), V = a.length, _ = (C) => {
|
|
21075
21079
|
const N = E0(C), B = Tc(a), z = N.slice(0, B), Z = G0(z, a);
|
|
21076
|
-
|
|
21080
|
+
b || y(Z), d?.(Z, z);
|
|
21077
21081
|
};
|
|
21078
21082
|
return /* @__PURE__ */ r("div", {
|
|
21079
21083
|
className: "input-phone-wrapper",
|
|
@@ -21132,7 +21136,7 @@ var Zc = _1(({ autoFocus: t, disabled: c, error: l, format: a = Dc, highlighted:
|
|
|
21132
21136
|
});
|
|
21133
21137
|
});
|
|
21134
21138
|
Zc.displayName = "InputPhone";
|
|
21135
|
-
var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error: s, id: o, label: i, maxLength: n, onBlur: d, onChange: h, onClick: p, onKeyDown: v, onKeyUp: g, placeholder: w, required: m, rows: u, success: f, value:
|
|
21139
|
+
var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error: s, id: o, label: i, maxLength: n, onBlur: d, onChange: h, onClick: p, onKeyDown: v, onKeyUp: g, placeholder: w, required: m, rows: u, success: f, value: b }, x) => /* @__PURE__ */ r("div", {
|
|
21136
21140
|
className: "input-textarea-wrapper",
|
|
21137
21141
|
children: [
|
|
21138
21142
|
i && /* @__PURE__ */ r("label", {
|
|
@@ -21157,9 +21161,9 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21157
21161
|
onKeyDown: v,
|
|
21158
21162
|
onKeyUp: g,
|
|
21159
21163
|
placeholder: w,
|
|
21160
|
-
ref:
|
|
21164
|
+
ref: x,
|
|
21161
21165
|
rows: u,
|
|
21162
|
-
value:
|
|
21166
|
+
value: b
|
|
21163
21167
|
}),
|
|
21164
21168
|
s && /* @__PURE__ */ e("span", {
|
|
21165
21169
|
className: "input-textarea-error-message",
|
|
@@ -21170,7 +21174,7 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21170
21174
|
children: f
|
|
21171
21175
|
})
|
|
21172
21176
|
]
|
|
21173
|
-
})), Za = _1(({ autoFocus: t, disabled: c, error: l, highlighted: a, id: s, label: o, max: i, min: n, onBlur: d, onChange: h, onClick: p, onKeyDown: v, onKeyUp: g, readOnly: w = !1, required: m = !1, success: u, value: f },
|
|
21177
|
+
})), Za = _1(({ autoFocus: t, disabled: c, error: l, highlighted: a, id: s, label: o, max: i, min: n, onBlur: d, onChange: h, onClick: p, onKeyDown: v, onKeyUp: g, readOnly: w = !1, required: m = !1, success: u, value: f }, b) => /* @__PURE__ */ r("div", {
|
|
21174
21178
|
className: `input-time-wrapper${a ? " input-time-highlighted" : ""}`,
|
|
21175
21179
|
children: [
|
|
21176
21180
|
o && /* @__PURE__ */ r("label", {
|
|
@@ -21189,10 +21193,10 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21189
21193
|
id: s,
|
|
21190
21194
|
max: i,
|
|
21191
21195
|
min: n,
|
|
21192
|
-
ref:
|
|
21196
|
+
ref: b,
|
|
21193
21197
|
value: f ?? "",
|
|
21194
21198
|
onBlur: d,
|
|
21195
|
-
onChange: (
|
|
21199
|
+
onChange: (x) => h?.(x.target.value || void 0),
|
|
21196
21200
|
onClick: p,
|
|
21197
21201
|
onKeyDown: v,
|
|
21198
21202
|
onKeyUp: g,
|
|
@@ -21215,12 +21219,12 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21215
21219
|
} catch {
|
|
21216
21220
|
return !1;
|
|
21217
21221
|
}
|
|
21218
|
-
}, Ga = _1(({ autoFocus: t, disabled: c, error: l, highlighted: a, id: s, label: o, maxLength: i, onBlur: n, onChange: d, onClick: h, onKeyDown: p, onKeyUp: v, onValidationChange: g, placeholder: w = "https://...", readOnly: m = !1, required: u = !1, success: f, validationErrorMessage:
|
|
21222
|
+
}, Ga = _1(({ autoFocus: t, disabled: c, error: l, highlighted: a, id: s, label: o, maxLength: i, onBlur: n, onChange: d, onClick: h, onKeyDown: p, onKeyUp: v, onValidationChange: g, placeholder: w = "https://...", readOnly: m = !1, required: u = !1, success: f, validationErrorMessage: b, value: x }, y) => {
|
|
21219
21223
|
const [M, k] = L(void 0), V = (B) => {
|
|
21220
21224
|
if (!B)
|
|
21221
21225
|
return k(void 0), g?.(!0), !0;
|
|
21222
21226
|
const z = Ec(B);
|
|
21223
|
-
return k(z ? void 0 :
|
|
21227
|
+
return k(z ? void 0 : b ?? Gc), g?.(z), z;
|
|
21224
21228
|
}, _ = (B) => {
|
|
21225
21229
|
d?.(B), M && V(B);
|
|
21226
21230
|
}, C = (B) => {
|
|
@@ -21246,7 +21250,7 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21246
21250
|
maxLength: i,
|
|
21247
21251
|
placeholder: w,
|
|
21248
21252
|
ref: y,
|
|
21249
|
-
value:
|
|
21253
|
+
value: x,
|
|
21250
21254
|
onBlur: C,
|
|
21251
21255
|
onChange: (B) => _(B.target.value),
|
|
21252
21256
|
onClick: h,
|
|
@@ -21276,9 +21280,9 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21276
21280
|
n > 0 && d((M) => M - 1);
|
|
21277
21281
|
}, f = () => {
|
|
21278
21282
|
d(0), c();
|
|
21279
|
-
},
|
|
21283
|
+
}, b = () => {
|
|
21280
21284
|
d(0), l();
|
|
21281
|
-
},
|
|
21285
|
+
}, x = /* @__PURE__ */ e("div", {
|
|
21282
21286
|
className: "journey-wizard__progress",
|
|
21283
21287
|
children: a.map((M, k) => /* @__PURE__ */ e("span", { className: `journey-wizard__dot${k === n ? " journey-wizard__dot--active" : k < n ? " journey-wizard__dot--done" : ""}` }, M.id))
|
|
21284
21288
|
}), y = /* @__PURE__ */ r("div", {
|
|
@@ -21308,7 +21312,7 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21308
21312
|
variant: "success",
|
|
21309
21313
|
icon: "save",
|
|
21310
21314
|
disabled: !g,
|
|
21311
|
-
onClick:
|
|
21315
|
+
onClick: b,
|
|
21312
21316
|
children: "Save"
|
|
21313
21317
|
}) : /* @__PURE__ */ r(W, {
|
|
21314
21318
|
variant: "info",
|
|
@@ -21325,7 +21329,7 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21325
21329
|
return o === "inline" ? t ? /* @__PURE__ */ r("div", {
|
|
21326
21330
|
className: "journey-wizard journey-wizard--inline",
|
|
21327
21331
|
children: [
|
|
21328
|
-
|
|
21332
|
+
x,
|
|
21329
21333
|
/* @__PURE__ */ r("div", {
|
|
21330
21334
|
className: "journey-wizard__step",
|
|
21331
21335
|
children: [/* @__PURE__ */ r("div", {
|
|
@@ -21353,7 +21357,7 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21353
21357
|
children: /* @__PURE__ */ r("div", {
|
|
21354
21358
|
className: "journey-wizard journey-wizard--modal",
|
|
21355
21359
|
children: [
|
|
21356
|
-
|
|
21360
|
+
x,
|
|
21357
21361
|
/* @__PURE__ */ r("div", {
|
|
21358
21362
|
className: "journey-wizard__step",
|
|
21359
21363
|
children: [/* @__PURE__ */ r("div", {
|
|
@@ -21382,7 +21386,7 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21382
21386
|
footer: y,
|
|
21383
21387
|
children: /* @__PURE__ */ r("div", {
|
|
21384
21388
|
className: "journey-wizard journey-wizard--drawer",
|
|
21385
|
-
children: [
|
|
21389
|
+
children: [x, /* @__PURE__ */ r("div", {
|
|
21386
21390
|
className: "journey-wizard__step",
|
|
21387
21391
|
children: [/* @__PURE__ */ r("div", {
|
|
21388
21392
|
className: "journey-wizard__step-header",
|
|
@@ -21477,8 +21481,8 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21477
21481
|
const n = O(null), d = O(!1), h = Math.max(0, l - c), p = Math.max(1, ...t), v = E((u) => {
|
|
21478
21482
|
const f = n.current;
|
|
21479
21483
|
if (!f) return;
|
|
21480
|
-
const
|
|
21481
|
-
a(Math.max(0, Math.min(1 - h,
|
|
21484
|
+
const b = f.getBoundingClientRect(), x = s0((u - b.left) / b.width);
|
|
21485
|
+
a(Math.max(0, Math.min(1 - h, x - h / 2)));
|
|
21482
21486
|
}, [a, h]), g = E((u) => {
|
|
21483
21487
|
d.current = !0, u.currentTarget.setPointerCapture(u.pointerId), v(u.clientX);
|
|
21484
21488
|
}, [v]), w = E((u) => {
|
|
@@ -21542,7 +21546,7 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21542
21546
|
children: t
|
|
21543
21547
|
}), u = () => {
|
|
21544
21548
|
if (i === void 0) return null;
|
|
21545
|
-
const f = i > 0,
|
|
21549
|
+
const f = i > 0, b = i < 0, x = Math.abs(i), y = d ?? (n ? `${x}${n}` : `${x}`);
|
|
21546
21550
|
return /* @__PURE__ */ r("div", {
|
|
21547
21551
|
className: `mini-stats-card__trend mini-stats-card__trend--${h}`,
|
|
21548
21552
|
children: [
|
|
@@ -21550,7 +21554,7 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21550
21554
|
className: "mini-stats-card__trend-arrow",
|
|
21551
21555
|
children: "↑"
|
|
21552
21556
|
}),
|
|
21553
|
-
|
|
21557
|
+
b && /* @__PURE__ */ e("span", {
|
|
21554
21558
|
className: "mini-stats-card__trend-arrow",
|
|
21555
21559
|
children: "↓"
|
|
21556
21560
|
}),
|
|
@@ -21645,11 +21649,11 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21645
21649
|
if (!s || !d.current || !h.current) return;
|
|
21646
21650
|
const g = requestAnimationFrame(() => {
|
|
21647
21651
|
if (!d.current || !h.current) return;
|
|
21648
|
-
const w = d.current.getBoundingClientRect(), m = h.current.getBoundingClientRect(), u = document.documentElement.clientWidth, f = document.documentElement.clientHeight,
|
|
21649
|
-
let
|
|
21650
|
-
y <
|
|
21652
|
+
const w = d.current.getBoundingClientRect(), m = h.current.getBoundingClientRect(), u = document.documentElement.clientWidth, f = document.documentElement.clientHeight, b = 8;
|
|
21653
|
+
let x = w.bottom + b, y = w.right - m.width;
|
|
21654
|
+
y < b && (y = b), y + m.width > u - b && (y = u - m.width - b), x + m.height > f - b && (x = w.top - m.height - b), x < b && (x = b), n({
|
|
21651
21655
|
position: "fixed",
|
|
21652
|
-
top:
|
|
21656
|
+
top: x,
|
|
21653
21657
|
left: y,
|
|
21654
21658
|
opacity: 1
|
|
21655
21659
|
});
|
|
@@ -21735,7 +21739,7 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21735
21739
|
const l = t.variant ?? "default";
|
|
21736
21740
|
return l === "custom" ? t.customColor || n2.default : l === "random" ? Uc(c) : n2[l];
|
|
21737
21741
|
}, Ua = ({ className: t = "", data: c = [], emptyLabel: l, gap: a = 1, size: s = "medium", valueFormatter: o, valuePosition: i = "inside" }) => {
|
|
21738
|
-
const n = Pc[s], d = i === "outside" ? Math.round(n * 0.18) : 0, h = n / 2, p = Math.max(h - Math.max(a, 1), 1), v = `${-d} ${-d} ${n + d * 2} ${n + d * 2}`, g =
|
|
21742
|
+
const n = Pc[s], d = i === "outside" ? Math.round(n * 0.18) : 0, h = n / 2, p = Math.max(h - Math.max(a, 1), 1), v = `${-d} ${-d} ${n + d * 2} ${n + d * 2}`, g = h1(() => {
|
|
21739
21743
|
const M = c.filter((_) => Number.isFinite(_.value) && _.value > 0), k = M.reduce((_, C) => _ + C.value, 0);
|
|
21740
21744
|
if (k <= 0) return [];
|
|
21741
21745
|
let V = 0;
|
|
@@ -21757,7 +21761,7 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21757
21761
|
c,
|
|
21758
21762
|
p,
|
|
21759
21763
|
o
|
|
21760
|
-
]), w = g.length > 0, m = p * 0.58, u = p + d * 0.58, f = p + a / 2,
|
|
21764
|
+
]), w = g.length > 0, m = p * 0.58, u = p + d * 0.58, f = p + a / 2, b = p + d * 0.35, x = Math.max(0, a), y = i !== "none";
|
|
21761
21765
|
return /* @__PURE__ */ e("div", {
|
|
21762
21766
|
className: `pie-chart pie-chart--${s} pie-chart--values-${i} ${t}`.trim(),
|
|
21763
21767
|
children: /* @__PURE__ */ r("svg", {
|
|
@@ -21784,15 +21788,15 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21784
21788
|
cy: h,
|
|
21785
21789
|
r: p,
|
|
21786
21790
|
fill: g[0].color,
|
|
21787
|
-
strokeWidth:
|
|
21791
|
+
strokeWidth: x
|
|
21788
21792
|
}) : g.map((M) => /* @__PURE__ */ e("path", {
|
|
21789
21793
|
className: "pie-chart__slice",
|
|
21790
21794
|
d: M.path,
|
|
21791
21795
|
fill: M.color,
|
|
21792
|
-
strokeWidth:
|
|
21796
|
+
strokeWidth: x
|
|
21793
21797
|
}, `${M.index}-${M.value}-${M.startAngle}`))),
|
|
21794
21798
|
w && y && i === "outside" && g.map((M) => {
|
|
21795
|
-
const k = r0(h, h, f, M.midAngle), V = r0(h, h,
|
|
21799
|
+
const k = r0(h, h, f, M.midAngle), V = r0(h, h, b, M.midAngle), _ = r0(h, h, u, M.midAngle), C = _.x >= h;
|
|
21796
21800
|
return /* @__PURE__ */ r("g", {
|
|
21797
21801
|
className: "pie-chart__outside-label-group",
|
|
21798
21802
|
children: [/* @__PURE__ */ e("line", {
|
|
@@ -21845,7 +21849,7 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21845
21849
|
`progress-bar-${d}`,
|
|
21846
21850
|
h && "progress-bar-striped",
|
|
21847
21851
|
t && h && "progress-bar-animated"
|
|
21848
|
-
].filter(Boolean).join(" "), w = `progress-bar__label progress-bar__label--${d} ${s ? `progress-bar__label-${s}` : ""}`, m = v > 100 ? 100 : v < 0 ? 0 : v, u =
|
|
21852
|
+
].filter(Boolean).join(" "), w = `progress-bar__label progress-bar__label--${d} ${s ? `progress-bar__label-${s}` : ""}`, m = v > 100 ? 100 : v < 0 ? 0 : v, u = h1(() => {
|
|
21849
21853
|
const M = [];
|
|
21850
21854
|
return n && M.push(`${k0(v)}%`), l && M.push(l), (a ? M : M.reverse()).join(" - ");
|
|
21851
21855
|
}, [
|
|
@@ -21853,7 +21857,7 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21853
21857
|
v,
|
|
21854
21858
|
l,
|
|
21855
21859
|
a
|
|
21856
|
-
]), f = o === "inside" && !!u,
|
|
21860
|
+
]), f = o === "inside" && !!u, b = i === "vertical", x = b && c ? { height: c } : void 0, y = b ? { height: `${m}%` } : { width: `${m}%` };
|
|
21857
21861
|
return /* @__PURE__ */ r("div", {
|
|
21858
21862
|
className: `progress-bar progress-bar--${i} ${o === "before" || o === "after" ? "progress-bar-inline" : ""} ${p ? "progress-bar-thin" : ""}`,
|
|
21859
21863
|
children: [
|
|
@@ -21863,7 +21867,7 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21863
21867
|
}),
|
|
21864
21868
|
/* @__PURE__ */ r("div", {
|
|
21865
21869
|
className: "progress-bar__track",
|
|
21866
|
-
style:
|
|
21870
|
+
style: x,
|
|
21867
21871
|
children: [/* @__PURE__ */ e("div", {
|
|
21868
21872
|
className: `${g} ${o === "after" ? "progress-bar__label-after" : ""} `,
|
|
21869
21873
|
style: y
|
|
@@ -21883,7 +21887,7 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21883
21887
|
medium: 96,
|
|
21884
21888
|
large: 128
|
|
21885
21889
|
}, qc = (t) => typeof t == "number" ? t : A2[t], Ya = ({ children: t, className: c = "", label: l, labelPosition: a = "below", rounded: s = !0, showPercentage: o = !0, size: i = "medium", state: n = "default", thickness: d, value: h }) => {
|
|
21886
|
-
const p = Math.min(Math.max(Number.isFinite(h) ? h : 0, 0), 100), v = qc(i), g = d ?? (v <= A2.small ? 6 : 8), w = Math.max((v - g) / 2, 1), m = 2 * Math.PI * w, u = m - p / 100 * m, f =
|
|
21890
|
+
const p = Math.min(Math.max(Number.isFinite(h) ? h : 0, 0), 100), v = qc(i), g = d ?? (v <= A2.small ? 6 : 8), w = Math.max((v - g) / 2, 1), m = 2 * Math.PI * w, u = m - p / 100 * m, f = h1(() => `${k0(p)}%`, [p]), b = t || (o ? f : a === "inside" ? l : null), x = a === "inside" && l && o && !t;
|
|
21887
21891
|
return /* @__PURE__ */ r("div", {
|
|
21888
21892
|
className: `progress-ring progress-ring--${n} ${c}`,
|
|
21889
21893
|
style: { "--progress-ring-size": `${v}px` },
|
|
@@ -21908,12 +21912,12 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21908
21912
|
strokeLinecap: s ? "round" : "butt",
|
|
21909
21913
|
strokeWidth: g
|
|
21910
21914
|
})]
|
|
21911
|
-
}),
|
|
21915
|
+
}), b && /* @__PURE__ */ r("div", {
|
|
21912
21916
|
className: "progress-ring__content",
|
|
21913
21917
|
children: [/* @__PURE__ */ e("span", {
|
|
21914
21918
|
className: "progress-ring__value-text",
|
|
21915
|
-
children:
|
|
21916
|
-
}),
|
|
21919
|
+
children: b
|
|
21920
|
+
}), x && /* @__PURE__ */ e("span", {
|
|
21917
21921
|
className: "progress-ring__label progress-ring__label--inside",
|
|
21918
21922
|
children: l
|
|
21919
21923
|
})]
|
|
@@ -21928,11 +21932,11 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21928
21932
|
if (t) return;
|
|
21929
21933
|
const y = (g ?? 0) - p;
|
|
21930
21934
|
i !== void 0 && y < i || n?.(y);
|
|
21931
|
-
},
|
|
21935
|
+
}, b = () => {
|
|
21932
21936
|
if (t) return;
|
|
21933
21937
|
const y = (g ?? 0) + p;
|
|
21934
21938
|
o !== void 0 && y > o || n?.(y);
|
|
21935
|
-
},
|
|
21939
|
+
}, x = (y) => {
|
|
21936
21940
|
if (!d) {
|
|
21937
21941
|
if (y === void 0) {
|
|
21938
21942
|
n?.(void 0);
|
|
@@ -21980,7 +21984,7 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21980
21984
|
id: l,
|
|
21981
21985
|
max: o,
|
|
21982
21986
|
min: i,
|
|
21983
|
-
onChange:
|
|
21987
|
+
onChange: x,
|
|
21984
21988
|
ref: w,
|
|
21985
21989
|
step: p,
|
|
21986
21990
|
value: g
|
|
@@ -21989,7 +21993,7 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21989
21993
|
/* @__PURE__ */ e(W, {
|
|
21990
21994
|
className: "quantity-selector-button quantity-selector-button-increase",
|
|
21991
21995
|
disabled: t || o !== void 0 && (g ?? 0) >= o,
|
|
21992
|
-
onClick:
|
|
21996
|
+
onClick: b,
|
|
21993
21997
|
size: "small",
|
|
21994
21998
|
variant: "default",
|
|
21995
21999
|
type: "button",
|
|
@@ -22168,7 +22172,7 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
22168
22172
|
label: f,
|
|
22169
22173
|
checked: n === u,
|
|
22170
22174
|
value: u,
|
|
22171
|
-
onChange: (
|
|
22175
|
+
onChange: (b) => m(b)
|
|
22172
22176
|
}, `quick-update-ownership-${u}`))
|
|
22173
22177
|
}), v && /* @__PURE__ */ e("div", {
|
|
22174
22178
|
className: "error-message",
|
|
@@ -22457,10 +22461,10 @@ ${s.textContent ?? ""}
|
|
|
22457
22461
|
}, [t]), d = E((m) => {
|
|
22458
22462
|
const u = t.current;
|
|
22459
22463
|
if (!u) return;
|
|
22460
|
-
const f = u.getBoundingClientRect(),
|
|
22464
|
+
const f = u.getBoundingClientRect(), b = m.getBoundingClientRect();
|
|
22461
22465
|
s(m), i({
|
|
22462
|
-
top:
|
|
22463
|
-
left:
|
|
22466
|
+
top: b.top - f.top - 36,
|
|
22467
|
+
left: b.left - f.left
|
|
22464
22468
|
});
|
|
22465
22469
|
}, [t]), h = E(() => {
|
|
22466
22470
|
s(null), i(null);
|
|
@@ -22469,8 +22473,8 @@ ${s.textContent ?? ""}
|
|
|
22469
22473
|
c();
|
|
22470
22474
|
const m = n()?.closest("tr") ?? null, u = a.querySelector("tbody") ?? a, f = m ?? u.querySelector("tr:last-child");
|
|
22471
22475
|
if (!f) return;
|
|
22472
|
-
const
|
|
22473
|
-
u.insertBefore(o2(
|
|
22476
|
+
const b = f.querySelectorAll("td,th").length;
|
|
22477
|
+
u.insertBefore(o2(b), f.nextSibling), l(), d(a);
|
|
22474
22478
|
}, [
|
|
22475
22479
|
a,
|
|
22476
22480
|
c,
|
|
@@ -22482,8 +22486,8 @@ ${s.textContent ?? ""}
|
|
|
22482
22486
|
c();
|
|
22483
22487
|
const m = n()?.closest("tr") ?? null, u = a.querySelector("tbody") ?? a, f = m ?? u.querySelector("tr:first-child");
|
|
22484
22488
|
if (!f) return;
|
|
22485
|
-
const
|
|
22486
|
-
u.insertBefore(o2(
|
|
22489
|
+
const b = f.querySelectorAll("td,th").length;
|
|
22490
|
+
u.insertBefore(o2(b), f), l(), d(a);
|
|
22487
22491
|
}, [
|
|
22488
22492
|
a,
|
|
22489
22493
|
c,
|
|
@@ -22504,9 +22508,9 @@ ${s.textContent ?? ""}
|
|
|
22504
22508
|
if (!a) return;
|
|
22505
22509
|
c();
|
|
22506
22510
|
const m = n(), u = m ? Array.from(m.parentElement.querySelectorAll("td,th")).indexOf(m) : -1;
|
|
22507
|
-
a.querySelectorAll("tr").forEach((f,
|
|
22508
|
-
const
|
|
22509
|
-
y.setAttribute("contenteditable", "true"), y.textContent =
|
|
22511
|
+
a.querySelectorAll("tr").forEach((f, b) => {
|
|
22512
|
+
const x = b === 0 && f.closest("thead") !== null, y = document.createElement(x ? "th" : "td");
|
|
22513
|
+
y.setAttribute("contenteditable", "true"), y.textContent = x ? "Header" : "Cell";
|
|
22510
22514
|
const M = f.querySelectorAll("td,th"), k = M[u >= 0 ? u : M.length - 1];
|
|
22511
22515
|
f.insertBefore(y, k ? k.nextSibling : null);
|
|
22512
22516
|
}), l(), d(a);
|
|
@@ -22529,9 +22533,9 @@ ${s.textContent ?? ""}
|
|
|
22529
22533
|
if (!a) return;
|
|
22530
22534
|
c();
|
|
22531
22535
|
const m = n(), u = m ? Array.from(m.parentElement.querySelectorAll("td,th")).indexOf(m) : 0;
|
|
22532
|
-
a.querySelectorAll("tr").forEach((f,
|
|
22533
|
-
const
|
|
22534
|
-
y.setAttribute("contenteditable", "true"), y.textContent =
|
|
22536
|
+
a.querySelectorAll("tr").forEach((f, b) => {
|
|
22537
|
+
const x = b === 0 && f.closest("thead") !== null, y = document.createElement(x ? "th" : "td");
|
|
22538
|
+
y.setAttribute("contenteditable", "true"), y.textContent = x ? "Header" : "Cell";
|
|
22535
22539
|
const M = f.querySelectorAll("td,th")[u] ?? f.firstChild;
|
|
22536
22540
|
f.insertBefore(y, M);
|
|
22537
22541
|
}), l(), d(a);
|
|
@@ -22549,9 +22553,9 @@ ${s.textContent ?? ""}
|
|
|
22549
22553
|
if ((m[0]?.querySelectorAll("td,th").length ?? 0) <= 1) return;
|
|
22550
22554
|
c();
|
|
22551
22555
|
const u = n(), f = u ? Array.from(u.parentElement.querySelectorAll("td,th")).indexOf(u) : -1;
|
|
22552
|
-
m.forEach((
|
|
22553
|
-
const
|
|
22554
|
-
(f >= 0 ?
|
|
22556
|
+
m.forEach((b) => {
|
|
22557
|
+
const x = b.querySelectorAll("td,th");
|
|
22558
|
+
(f >= 0 ? x[f] : x[x.length - 1])?.remove();
|
|
22555
22559
|
}), l(), d(a);
|
|
22556
22560
|
}, [
|
|
22557
22561
|
a,
|
|
@@ -22617,7 +22621,7 @@ ${s.textContent ?? ""}
|
|
|
22617
22621
|
/* @__PURE__ */ r("div", {
|
|
22618
22622
|
className: "rte-table-toolbar-group",
|
|
22619
22623
|
children: [
|
|
22620
|
-
/* @__PURE__ */ e(
|
|
22624
|
+
/* @__PURE__ */ e(s1, {
|
|
22621
22625
|
title: "Add row above",
|
|
22622
22626
|
children: /* @__PURE__ */ e("button", {
|
|
22623
22627
|
type: "button",
|
|
@@ -22626,7 +22630,7 @@ ${s.textContent ?? ""}
|
|
|
22626
22630
|
children: "↑ Row"
|
|
22627
22631
|
})
|
|
22628
22632
|
}),
|
|
22629
|
-
/* @__PURE__ */ e(
|
|
22633
|
+
/* @__PURE__ */ e(s1, {
|
|
22630
22634
|
title: "Add row below",
|
|
22631
22635
|
children: /* @__PURE__ */ e("button", {
|
|
22632
22636
|
type: "button",
|
|
@@ -22635,7 +22639,7 @@ ${s.textContent ?? ""}
|
|
|
22635
22639
|
children: "↓ Row"
|
|
22636
22640
|
})
|
|
22637
22641
|
}),
|
|
22638
|
-
/* @__PURE__ */ e(
|
|
22642
|
+
/* @__PURE__ */ e(s1, {
|
|
22639
22643
|
title: "Remove last row",
|
|
22640
22644
|
children: /* @__PURE__ */ e("button", {
|
|
22641
22645
|
type: "button",
|
|
@@ -22650,7 +22654,7 @@ ${s.textContent ?? ""}
|
|
|
22650
22654
|
/* @__PURE__ */ r("div", {
|
|
22651
22655
|
className: "rte-table-toolbar-group",
|
|
22652
22656
|
children: [
|
|
22653
|
-
/* @__PURE__ */ e(
|
|
22657
|
+
/* @__PURE__ */ e(s1, {
|
|
22654
22658
|
title: "Add column left",
|
|
22655
22659
|
children: /* @__PURE__ */ e("button", {
|
|
22656
22660
|
type: "button",
|
|
@@ -22659,7 +22663,7 @@ ${s.textContent ?? ""}
|
|
|
22659
22663
|
children: "← Col"
|
|
22660
22664
|
})
|
|
22661
22665
|
}),
|
|
22662
|
-
/* @__PURE__ */ e(
|
|
22666
|
+
/* @__PURE__ */ e(s1, {
|
|
22663
22667
|
title: "Add column right",
|
|
22664
22668
|
children: /* @__PURE__ */ e("button", {
|
|
22665
22669
|
type: "button",
|
|
@@ -22668,7 +22672,7 @@ ${s.textContent ?? ""}
|
|
|
22668
22672
|
children: "→ Col"
|
|
22669
22673
|
})
|
|
22670
22674
|
}),
|
|
22671
|
-
/* @__PURE__ */ e(
|
|
22675
|
+
/* @__PURE__ */ e(s1, {
|
|
22672
22676
|
title: "Remove last column",
|
|
22673
22677
|
children: /* @__PURE__ */ e("button", {
|
|
22674
22678
|
type: "button",
|
|
@@ -22682,7 +22686,7 @@ ${s.textContent ?? ""}
|
|
|
22682
22686
|
/* @__PURE__ */ e("div", { className: "rte-table-toolbar-divider" }),
|
|
22683
22687
|
/* @__PURE__ */ e("div", {
|
|
22684
22688
|
className: "rte-table-toolbar-group",
|
|
22685
|
-
children: /* @__PURE__ */ e(
|
|
22689
|
+
children: /* @__PURE__ */ e(s1, {
|
|
22686
22690
|
title: "Delete table",
|
|
22687
22691
|
children: /* @__PURE__ */ e("button", {
|
|
22688
22692
|
type: "button",
|
|
@@ -22698,7 +22702,7 @@ ${s.textContent ?? ""}
|
|
|
22698
22702
|
children: [
|
|
22699
22703
|
/* @__PURE__ */ e("div", {
|
|
22700
22704
|
className: "rte-toolbar-group",
|
|
22701
|
-
children: Jc.map((h) => /* @__PURE__ */ e(
|
|
22705
|
+
children: Jc.map((h) => /* @__PURE__ */ e(s1, {
|
|
22702
22706
|
title: h.title,
|
|
22703
22707
|
children: /* @__PURE__ */ e("button", {
|
|
22704
22708
|
type: "button",
|
|
@@ -22713,7 +22717,7 @@ ${s.textContent ?? ""}
|
|
|
22713
22717
|
/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
|
|
22714
22718
|
/* @__PURE__ */ r("div", {
|
|
22715
22719
|
className: "rte-toolbar-group",
|
|
22716
|
-
children: [Qc.map((h) => /* @__PURE__ */ e(
|
|
22720
|
+
children: [Qc.map((h) => /* @__PURE__ */ e(s1, {
|
|
22717
22721
|
title: h.title,
|
|
22718
22722
|
children: /* @__PURE__ */ e("button", {
|
|
22719
22723
|
type: "button",
|
|
@@ -22723,7 +22727,7 @@ ${s.textContent ?? ""}
|
|
|
22723
22727
|
},
|
|
22724
22728
|
children: h.label
|
|
22725
22729
|
})
|
|
22726
|
-
}, h.command)), /* @__PURE__ */ e(
|
|
22730
|
+
}, h.command)), /* @__PURE__ */ e(s1, {
|
|
22727
22731
|
title: "Task List",
|
|
22728
22732
|
children: /* @__PURE__ */ r("button", {
|
|
22729
22733
|
type: "button",
|
|
@@ -22738,7 +22742,7 @@ ${s.textContent ?? ""}
|
|
|
22738
22742
|
/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
|
|
22739
22743
|
/* @__PURE__ */ e("div", {
|
|
22740
22744
|
className: "rte-toolbar-group",
|
|
22741
|
-
children: el.map((h) => /* @__PURE__ */ e(
|
|
22745
|
+
children: el.map((h) => /* @__PURE__ */ e(s1, {
|
|
22742
22746
|
title: `Heading ${h}`,
|
|
22743
22747
|
children: /* @__PURE__ */ r("button", {
|
|
22744
22748
|
type: "button",
|
|
@@ -22753,7 +22757,7 @@ ${s.textContent ?? ""}
|
|
|
22753
22757
|
/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
|
|
22754
22758
|
/* @__PURE__ */ e("div", {
|
|
22755
22759
|
className: "rte-toolbar-group",
|
|
22756
|
-
children: /* @__PURE__ */ e(
|
|
22760
|
+
children: /* @__PURE__ */ e(s1, {
|
|
22757
22761
|
title: "Insert Link",
|
|
22758
22762
|
children: /* @__PURE__ */ r("button", {
|
|
22759
22763
|
type: "button",
|
|
@@ -22767,7 +22771,7 @@ ${s.textContent ?? ""}
|
|
|
22767
22771
|
}),
|
|
22768
22772
|
t && /* @__PURE__ */ r(r1, { children: [/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }), /* @__PURE__ */ r("div", {
|
|
22769
22773
|
className: "rte-toolbar-group",
|
|
22770
|
-
children: [tl.map((h) => /* @__PURE__ */ e(
|
|
22774
|
+
children: [tl.map((h) => /* @__PURE__ */ e(s1, {
|
|
22771
22775
|
title: h.title,
|
|
22772
22776
|
children: /* @__PURE__ */ e("button", {
|
|
22773
22777
|
type: "button",
|
|
@@ -22777,7 +22781,7 @@ ${s.textContent ?? ""}
|
|
|
22777
22781
|
},
|
|
22778
22782
|
children: h.label
|
|
22779
22783
|
})
|
|
22780
|
-
}, h.command + (h.value ?? ""))), /* @__PURE__ */ e(
|
|
22784
|
+
}, h.command + (h.value ?? ""))), /* @__PURE__ */ e(s1, {
|
|
22781
22785
|
title: "Insert Table",
|
|
22782
22786
|
children: /* @__PURE__ */ e("button", {
|
|
22783
22787
|
type: "button",
|
|
@@ -22806,11 +22810,11 @@ ${s.textContent ?? ""}
|
|
|
22806
22810
|
i(l === "markdown" ? Kc(K) : K), setTimeout(() => {
|
|
22807
22811
|
v.current = !1;
|
|
22808
22812
|
}, 0);
|
|
22809
|
-
}, [l, i]), { snapshotForUndo: f, undo:
|
|
22813
|
+
}, [l, i]), { snapshotForUndo: f, undo: b, redo: x } = ll(p, v, u), { showLinkPrompt: y, linkUrl: M, setLinkUrl: k, linkText: V, setLinkText: _, editingAnchorRef: C, openLinkPrompt: N, confirmLink: B, cancelLink: z } = al({
|
|
22810
22814
|
editorRef: p,
|
|
22811
22815
|
snapshotForUndo: f,
|
|
22812
22816
|
emitChange: u
|
|
22813
|
-
}), { activeTable: Z, tableToolbarPos: R, showTableToolbar: $, hideTableToolbar: q, addRowAbove: p1, addRowBelow: A, removeRow: c1, addColumnLeft: t1, addColumnRight: T, removeColumn: G, deleteTable:
|
|
22817
|
+
}), { activeTable: Z, tableToolbarPos: R, showTableToolbar: $, hideTableToolbar: q, addRowAbove: p1, addRowBelow: A, removeRow: c1, addColumnLeft: t1, addColumnRight: T, removeColumn: G, deleteTable: d1 } = il({
|
|
22814
22818
|
editorRef: p,
|
|
22815
22819
|
snapshotForUndo: f,
|
|
22816
22820
|
emitChange: u
|
|
@@ -22862,8 +22866,8 @@ ${s.textContent ?? ""}
|
|
|
22862
22866
|
e1.type = "checkbox", e1.style.marginRight = "6px";
|
|
22863
22867
|
const a1 = document.createElement("span");
|
|
22864
22868
|
a1.textContent = "", D.appendChild(e1), D.appendChild(a1);
|
|
22865
|
-
const
|
|
22866
|
-
|
|
22869
|
+
const x1 = document.createElement("ul");
|
|
22870
|
+
x1.className = "rte-task-list", x1.appendChild(D), S.deleteContents(), S.insertNode(x1);
|
|
22867
22871
|
const f1 = document.createRange();
|
|
22868
22872
|
f1.setStart(a1, 1), f1.collapse(!0), K.removeAllRanges(), K.addRange(f1), u();
|
|
22869
22873
|
}, [f, u]), C1 = E(() => {
|
|
@@ -22883,7 +22887,7 @@ ${s.textContent ?? ""}
|
|
|
22883
22887
|
q
|
|
22884
22888
|
]), A1 = E((X) => {
|
|
22885
22889
|
if ((X.ctrlKey || X.metaKey) && X.key === "z") {
|
|
22886
|
-
X.preventDefault(), X.shiftKey ?
|
|
22890
|
+
X.preventDefault(), X.shiftKey ? x() : b();
|
|
22887
22891
|
return;
|
|
22888
22892
|
}
|
|
22889
22893
|
const K = X.key.length === 1 && !X.ctrlKey && !X.metaKey, S = [
|
|
@@ -22901,10 +22905,10 @@ ${s.textContent ?? ""}
|
|
|
22901
22905
|
X.preventDefault();
|
|
22902
22906
|
const a1 = document.createElement("li");
|
|
22903
22907
|
a1.setAttribute("data-task", "true");
|
|
22904
|
-
const
|
|
22905
|
-
|
|
22908
|
+
const x1 = document.createElement("input");
|
|
22909
|
+
x1.type = "checkbox", x1.style.marginRight = "6px";
|
|
22906
22910
|
const f1 = document.createElement("span");
|
|
22907
|
-
f1.textContent = "", a1.appendChild(
|
|
22911
|
+
f1.textContent = "", a1.appendChild(x1), a1.appendChild(f1), e1.appendChild(a1);
|
|
22908
22912
|
const M1 = document.createRange();
|
|
22909
22913
|
M1.setStart(f1, 1), M1.collapse(!0), D.removeAllRanges(), D.addRange(M1);
|
|
22910
22914
|
return;
|
|
@@ -22915,8 +22919,8 @@ ${s.textContent ?? ""}
|
|
|
22915
22919
|
}
|
|
22916
22920
|
}, [
|
|
22917
22921
|
f,
|
|
22918
|
-
|
|
22919
|
-
|
|
22922
|
+
b,
|
|
22923
|
+
x
|
|
22920
22924
|
]);
|
|
22921
22925
|
return /* @__PURE__ */ r("div", {
|
|
22922
22926
|
className: "rte-wrapper",
|
|
@@ -22941,8 +22945,8 @@ ${s.textContent ?? ""}
|
|
|
22941
22945
|
insertTaskList: n1,
|
|
22942
22946
|
openLinkPrompt: () => N(),
|
|
22943
22947
|
insertTable: C1,
|
|
22944
|
-
undo:
|
|
22945
|
-
redo:
|
|
22948
|
+
undo: b,
|
|
22949
|
+
redo: x
|
|
22946
22950
|
}),
|
|
22947
22951
|
y && /* @__PURE__ */ e(nl, {
|
|
22948
22952
|
isEditing: !!C.current,
|
|
@@ -22962,7 +22966,7 @@ ${s.textContent ?? ""}
|
|
|
22962
22966
|
addColumnLeft: t1,
|
|
22963
22967
|
addColumnRight: T,
|
|
22964
22968
|
removeColumn: G,
|
|
22965
|
-
deleteTable:
|
|
22969
|
+
deleteTable: d1
|
|
22966
22970
|
}),
|
|
22967
22971
|
/* @__PURE__ */ e("div", {
|
|
22968
22972
|
ref: p,
|
|
@@ -23019,7 +23023,7 @@ ${s.textContent ?? ""}
|
|
|
23019
23023
|
if (!t) throw new Error("useSidebar must be used within a SidebarProvider");
|
|
23020
23024
|
return t;
|
|
23021
23025
|
}, li = ({ children: t }) => {
|
|
23022
|
-
const { isMobile: c } = a0(), [l, a] = L(!1), s = E(() => a((d) => !d), []), o = E(() => a(!0), []), i = E(() => a(!1), []), n =
|
|
23026
|
+
const { isMobile: c } = a0(), [l, a] = L(!1), s = E(() => a((d) => !d), []), o = E(() => a(!0), []), i = E(() => a(!1), []), n = h1(() => ({
|
|
23023
23027
|
isMobile: c,
|
|
23024
23028
|
isOpen: l,
|
|
23025
23029
|
toggle: s,
|
|
@@ -23037,8 +23041,8 @@ ${s.textContent ?? ""}
|
|
|
23037
23041
|
children: t
|
|
23038
23042
|
});
|
|
23039
23043
|
}, ai = ({ sections: t, width: c = "280px", className: l = "", appHeaderProps: a, renderItem: s, isOpen: o, onClose: i, isMobile: n, showOverlay: d = !0, contained: h = !1, shadow: p = "none", searchPlaceholder: v }) => {
|
|
23040
|
-
const [g, w] = L(""), m = D2(), u = n ?? m?.isMobile ?? !1, f = o ?? (u ? m?.isOpen ?? !1 : !0),
|
|
23041
|
-
}),
|
|
23044
|
+
const [g, w] = L(""), m = D2(), u = n ?? m?.isMobile ?? !1, f = o ?? (u ? m?.isOpen ?? !1 : !0), b = i ?? m?.close ?? (() => {
|
|
23045
|
+
}), x = v && g ? t.map((C) => ({
|
|
23042
23046
|
...C,
|
|
23043
23047
|
items: C.items.filter((N) => N.label.toLowerCase().includes(g.toLowerCase()))
|
|
23044
23048
|
})).filter((C) => C.items.length > 0) : t, y = [
|
|
@@ -23051,7 +23055,7 @@ ${s.textContent ?? ""}
|
|
|
23051
23055
|
"--sidebar-width": c,
|
|
23052
23056
|
"--sidebar-shadow": p
|
|
23053
23057
|
}, V = (C) => {
|
|
23054
|
-
C.onClick?.(), u &&
|
|
23058
|
+
C.onClick?.(), u && b();
|
|
23055
23059
|
}, _ = (C) => /* @__PURE__ */ r("button", {
|
|
23056
23060
|
className: [
|
|
23057
23061
|
"sidebar__link",
|
|
@@ -23085,7 +23089,7 @@ ${s.textContent ?? ""}
|
|
|
23085
23089
|
}, C.id);
|
|
23086
23090
|
return /* @__PURE__ */ r(r1, { children: [d && u && f && /* @__PURE__ */ e("div", {
|
|
23087
23091
|
className: M,
|
|
23088
|
-
onClick:
|
|
23092
|
+
onClick: b
|
|
23089
23093
|
}), /* @__PURE__ */ r("aside", {
|
|
23090
23094
|
className: y,
|
|
23091
23095
|
style: k,
|
|
@@ -23102,9 +23106,9 @@ ${s.textContent ?? ""}
|
|
|
23102
23106
|
placeholder: v
|
|
23103
23107
|
})
|
|
23104
23108
|
}),
|
|
23105
|
-
|
|
23109
|
+
x.length > 0 && /* @__PURE__ */ e("nav", {
|
|
23106
23110
|
className: "sidebar__nav",
|
|
23107
|
-
children:
|
|
23111
|
+
children: x.map((C, N) => /* @__PURE__ */ r("section", {
|
|
23108
23112
|
className: "sidebar__section",
|
|
23109
23113
|
children: [
|
|
23110
23114
|
(C.title || C.heading || C.icon || C.description) && /* @__PURE__ */ r("div", {
|
|
@@ -23130,7 +23134,7 @@ ${s.textContent ?? ""}
|
|
|
23130
23134
|
})]
|
|
23131
23135
|
}),
|
|
23132
23136
|
C.items.map((B) => s ? s(B) : _(B)),
|
|
23133
|
-
C.showDivider && N <
|
|
23137
|
+
C.showDivider && N < x.length - 1 && /* @__PURE__ */ e("div", { className: "sidebar__divider" })
|
|
23134
23138
|
]
|
|
23135
23139
|
}, C.id ?? C.title ?? N))
|
|
23136
23140
|
})
|
|
@@ -23267,9 +23271,9 @@ var ni = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23267
23271
|
}), [l]);
|
|
23268
23272
|
const w = E((m) => {
|
|
23269
23273
|
m.preventDefault(), g.current = !0, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
|
|
23270
|
-
const u = (
|
|
23274
|
+
const u = (b) => {
|
|
23271
23275
|
if (!g.current || !v.current) return;
|
|
23272
|
-
const
|
|
23276
|
+
const x = v.current.getBoundingClientRect(), y = (b.clientX - x.left) / x.width * 100;
|
|
23273
23277
|
p(Math.max(i, Math.min(100 - n, y)));
|
|
23274
23278
|
}, f = () => {
|
|
23275
23279
|
g.current = !1, document.body.style.cursor = "", document.body.style.userSelect = "", window.removeEventListener("mousemove", u), window.removeEventListener("mouseup", f);
|
|
@@ -23322,7 +23326,7 @@ var ni = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23322
23326
|
const a = `${k0(c)}%`;
|
|
23323
23327
|
return t.label && l ? `${t.label} - ${a}` : t.label ? t.label : a;
|
|
23324
23328
|
}, hi = ({ animated: t = !1, height: c, normalize: l = !0, orientation: a = "horizontal", segments: s, showLabels: o = !0, showPercentage: i = !0, thin: n = !1, width: d }) => {
|
|
23325
|
-
const h =
|
|
23329
|
+
const h = h1(() => {
|
|
23326
23330
|
if (s.length === 0) return [];
|
|
23327
23331
|
if (!l) return s.map((w) => Math.max(0, w.value));
|
|
23328
23332
|
const g = s.reduce((w, m) => w + Math.max(0, m.value), 0);
|
|
@@ -23338,7 +23342,7 @@ var ni = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23338
23342
|
children: s.map((g, w) => {
|
|
23339
23343
|
const m = h[w];
|
|
23340
23344
|
if (m <= 0) return null;
|
|
23341
|
-
const u = g.state || "default", f = g.pattern || "solid",
|
|
23345
|
+
const u = g.state || "default", f = g.pattern || "solid", b = pl(g, m, i);
|
|
23342
23346
|
return /* @__PURE__ */ e("div", {
|
|
23343
23347
|
className: [
|
|
23344
23348
|
"stacked-bar__segment",
|
|
@@ -23347,10 +23351,10 @@ var ni = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23347
23351
|
t && f !== "solid" ? "stacked-bar__segment--animated" : ""
|
|
23348
23352
|
].filter(Boolean).join(" "),
|
|
23349
23353
|
style: p ? { height: `${m}%` } : { width: `${m}%` },
|
|
23350
|
-
title:
|
|
23354
|
+
title: b,
|
|
23351
23355
|
children: o && /* @__PURE__ */ e("span", {
|
|
23352
23356
|
className: "stacked-bar__segment-label",
|
|
23353
|
-
children:
|
|
23357
|
+
children: b
|
|
23354
23358
|
})
|
|
23355
23359
|
}, `stacked-bar-segment-${w}`);
|
|
23356
23360
|
})
|
|
@@ -23401,7 +23405,7 @@ function s2({ state: t }) {
|
|
|
23401
23405
|
});
|
|
23402
23406
|
}
|
|
23403
23407
|
var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s = !1, onRowClick: o }) => {
|
|
23404
|
-
const [i, n] = L(!1), [d, h] = L(!1), [p, v] = L(""), [g, w] = L(null), [m, u] = L("asc"), f =
|
|
23408
|
+
const [i, n] = L(!1), [d, h] = L(!1), [p, v] = L(""), [g, w] = L(null), [m, u] = L("asc"), f = h1(() => p.trim() ? t.filter((C) => C.name.toLowerCase().includes(p.toLowerCase())) : t, [t, p]), b = h1(() => {
|
|
23405
23409
|
if (!g) return f;
|
|
23406
23410
|
const C = [...f].sort((N, B) => {
|
|
23407
23411
|
const z = g === "name" ? N.name : N.value, Z = g === "name" ? B.name : B.value;
|
|
@@ -23412,16 +23416,16 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
23412
23416
|
f,
|
|
23413
23417
|
g,
|
|
23414
23418
|
m
|
|
23415
|
-
]),
|
|
23419
|
+
]), x = h1(() => d ? [...b] : b.slice(0, h2), [b, d]), y = b.length > h2, M = () => {
|
|
23416
23420
|
n(!i);
|
|
23417
23421
|
}, k = E(() => {
|
|
23418
23422
|
h(!d);
|
|
23419
23423
|
}, [d]), V = (C) => {
|
|
23420
23424
|
g === C ? u((N) => N === "asc" ? "desc" : "asc") : (w(C), u("asc"));
|
|
23421
|
-
}, _ =
|
|
23425
|
+
}, _ = h1(() => /* @__PURE__ */ r("div", {
|
|
23422
23426
|
className: "list-suggestions-list",
|
|
23423
23427
|
children: [
|
|
23424
|
-
/* @__PURE__ */ e(
|
|
23428
|
+
/* @__PURE__ */ e(s1, {
|
|
23425
23429
|
title: a,
|
|
23426
23430
|
children: /* @__PURE__ */ e("legend", { children: l || "Suggestions" })
|
|
23427
23431
|
}),
|
|
@@ -23450,7 +23454,7 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
23450
23454
|
children: ["Value", /* @__PURE__ */ e(s2, { state: g === "value" ? m : "unsorted" })]
|
|
23451
23455
|
})]
|
|
23452
23456
|
}),
|
|
23453
|
-
|
|
23457
|
+
x.map((C, N) => /* @__PURE__ */ r("div", {
|
|
23454
23458
|
className: `list-suggestions-list-row ${o ? "list-suggestions-list-row--clickable" : ""}`,
|
|
23455
23459
|
onClick: () => o?.(C),
|
|
23456
23460
|
tabIndex: o ? 0 : void 0,
|
|
@@ -23463,7 +23467,7 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
23463
23467
|
C.unit
|
|
23464
23468
|
] })]
|
|
23465
23469
|
}, `list-suggestions-list-row-${N}`)),
|
|
23466
|
-
|
|
23470
|
+
x.length === 0 && /* @__PURE__ */ e("div", {
|
|
23467
23471
|
className: "list-suggestions-list-empty",
|
|
23468
23472
|
children: "No results found"
|
|
23469
23473
|
})
|
|
@@ -23481,7 +23485,7 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
23481
23485
|
y,
|
|
23482
23486
|
o,
|
|
23483
23487
|
p,
|
|
23484
|
-
|
|
23488
|
+
x,
|
|
23485
23489
|
g,
|
|
23486
23490
|
m,
|
|
23487
23491
|
l,
|
|
@@ -24069,7 +24073,7 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24069
24073
|
label: "Dark"
|
|
24070
24074
|
}
|
|
24071
24075
|
], vi = ({ isOpen: t, onClose: c, allowedThemes: l, currentApp: a, showEffects: s = !0, showSearch: o = !0, showFavorites: i = !0, showAppearanceFilter: n = !0 }) => {
|
|
24072
|
-
const { theme: d, effects: h, setPreviewTheme: p, setPreviewEffects: v, commitPreview: g, clearPreview: w } =
|
|
24076
|
+
const { theme: d, effects: h, setPreviewTheme: p, setPreviewEffects: v, commitPreview: g, clearPreview: w } = b2(), m = ["Card", "Modal"], u = [
|
|
24073
24077
|
{
|
|
24074
24078
|
label: "None",
|
|
24075
24079
|
value: ""
|
|
@@ -24090,29 +24094,29 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24090
24094
|
label: "Glow",
|
|
24091
24095
|
value: "glow-effect"
|
|
24092
24096
|
}
|
|
24093
|
-
], [f,
|
|
24097
|
+
], [f, b] = L(""), [x, y] = L(!1), [M, k] = L(!1), [V, _] = L("all"), C = O(null), N = O(!1), B = a?.trim().toLowerCase() ?? "", z = h1(() => {
|
|
24094
24098
|
let A = c0;
|
|
24095
24099
|
if (l && l.length > 0) {
|
|
24096
24100
|
const c1 = new Set(l);
|
|
24097
24101
|
A = A.filter((t1) => c1.has(t1.value));
|
|
24098
24102
|
}
|
|
24099
|
-
if (
|
|
24103
|
+
if (x && (A = A.filter((c1) => m2.has(c1.value))), M && B && (A = A.filter((c1) => (c1.recommendedApps ?? []).some((t1) => t1.toLowerCase() === B))), V !== "all" && (A = A.filter((c1) => gl(c1.value) === V)), f.trim()) {
|
|
24100
24104
|
const c1 = f.toLowerCase().trim();
|
|
24101
24105
|
A = A.filter((t1) => t1.label.toLowerCase().includes(c1) || (t1.recommendedApps ?? []).some((T) => T.toLowerCase().includes(c1)));
|
|
24102
24106
|
}
|
|
24103
24107
|
return A;
|
|
24104
24108
|
}, [
|
|
24105
24109
|
f,
|
|
24106
|
-
|
|
24110
|
+
x,
|
|
24107
24111
|
M,
|
|
24108
24112
|
B,
|
|
24109
24113
|
V,
|
|
24110
24114
|
l
|
|
24111
24115
|
]);
|
|
24112
24116
|
F(() => {
|
|
24113
|
-
t ? (
|
|
24117
|
+
t ? (b(""), y(!1), k(!1), _("all")) : N.current = !1;
|
|
24114
24118
|
}, [t]), F(() => {
|
|
24115
|
-
if (!t || f ||
|
|
24119
|
+
if (!t || f || x || M || V !== "all" || N.current) return;
|
|
24116
24120
|
const A = window.requestAnimationFrame(() => {
|
|
24117
24121
|
C.current?.scrollIntoView({
|
|
24118
24122
|
block: "center",
|
|
@@ -24123,7 +24127,7 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24123
24127
|
}, [
|
|
24124
24128
|
t,
|
|
24125
24129
|
f,
|
|
24126
|
-
|
|
24130
|
+
x,
|
|
24127
24131
|
M,
|
|
24128
24132
|
V,
|
|
24129
24133
|
d
|
|
@@ -24180,7 +24184,7 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24180
24184
|
o && /* @__PURE__ */ e(Y1, {
|
|
24181
24185
|
placeholder: "Search themes...",
|
|
24182
24186
|
value: f,
|
|
24183
|
-
onChange:
|
|
24187
|
+
onChange: b
|
|
24184
24188
|
}),
|
|
24185
24189
|
a && /* @__PURE__ */ e(d2, {
|
|
24186
24190
|
checked: M,
|
|
@@ -24190,7 +24194,7 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24190
24194
|
size: "small"
|
|
24191
24195
|
}),
|
|
24192
24196
|
i && /* @__PURE__ */ e(d2, {
|
|
24193
|
-
checked:
|
|
24197
|
+
checked: x,
|
|
24194
24198
|
onChange: y,
|
|
24195
24199
|
onLabel: "Favorites",
|
|
24196
24200
|
offLabel: "Favorites",
|
|
@@ -24325,7 +24329,7 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24325
24329
|
o,
|
|
24326
24330
|
s
|
|
24327
24331
|
]);
|
|
24328
|
-
const f = c0.findIndex((y) => y.value === v),
|
|
24332
|
+
const f = c0.findIndex((y) => y.value === v), b = f >= 0 ? c0[f].label : v, x = E(() => {
|
|
24329
24333
|
a?.({
|
|
24330
24334
|
theme: v,
|
|
24331
24335
|
effects: g
|
|
@@ -24341,7 +24345,7 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24341
24345
|
effects: g,
|
|
24342
24346
|
setPreviewTheme: w,
|
|
24343
24347
|
setPreviewEffects: m,
|
|
24344
|
-
commitPreview:
|
|
24348
|
+
commitPreview: x,
|
|
24345
24349
|
clearPreview: u
|
|
24346
24350
|
},
|
|
24347
24351
|
children: [t, o && /* @__PURE__ */ r("div", {
|
|
@@ -24360,11 +24364,11 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24360
24364
|
children: [
|
|
24361
24365
|
/* @__PURE__ */ e("span", {
|
|
24362
24366
|
onClick: () => {
|
|
24363
|
-
navigator.clipboard.writeText(
|
|
24367
|
+
navigator.clipboard.writeText(b), p(!0), window.setTimeout(() => p(!1), 1500);
|
|
24364
24368
|
},
|
|
24365
24369
|
style: { cursor: "pointer" },
|
|
24366
24370
|
title: "Copy theme name",
|
|
24367
|
-
children:
|
|
24371
|
+
children: b
|
|
24368
24372
|
}),
|
|
24369
24373
|
/* @__PURE__ */ r("span", {
|
|
24370
24374
|
style: {
|
|
@@ -24516,7 +24520,7 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24516
24520
|
children: n.label
|
|
24517
24521
|
})]
|
|
24518
24522
|
}, n.key);
|
|
24519
|
-
return n.description ? /* @__PURE__ */ e(
|
|
24523
|
+
return n.description ? /* @__PURE__ */ e(s1, {
|
|
24520
24524
|
title: n.description,
|
|
24521
24525
|
children: d
|
|
24522
24526
|
}, n.key) : d;
|
|
@@ -24531,15 +24535,15 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24531
24535
|
children: i("tablet") ? n.label : ""
|
|
24532
24536
|
}, `btn-toggle2-${d}-${n}`))
|
|
24533
24537
|
});
|
|
24534
|
-
},
|
|
24535
|
-
value: `${c.value}${
|
|
24538
|
+
}, x0 = "::", yl = (t) => typeof t == "object" && t.label ? t.label : "Filters", bl = (t) => "fields" in t ? t.fields.flatMap((c) => [{
|
|
24539
|
+
value: `${c.value}${x0}asc`,
|
|
24536
24540
|
label: c.label,
|
|
24537
24541
|
suffixIcon: "arrow-up"
|
|
24538
24542
|
}, {
|
|
24539
|
-
value: `${c.value}${
|
|
24543
|
+
value: `${c.value}${x0}desc`,
|
|
24540
24544
|
label: c.label,
|
|
24541
24545
|
suffixIcon: "arrow-down"
|
|
24542
|
-
}]) : t.options,
|
|
24546
|
+
}]) : t.options, xl = (t) => "fields" in t ? t.value ? `${t.value.field}${x0}${t.value.direction}` : null : t.value, Ci = ({ children: t, className: c = "", controlPanelToggle: l, heading: a, noCard: s = !1, menuItems: o, notifications: i, search: n, sort: d }) => {
|
|
24543
24547
|
const h = W0(), p = !!(l && h?.isMobile), v = [
|
|
24544
24548
|
"memobit-toolbar",
|
|
24545
24549
|
s ? "memobit-toolbar--no-card" : "",
|
|
@@ -24551,10 +24555,10 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24551
24555
|
return;
|
|
24552
24556
|
}
|
|
24553
24557
|
if ("fields" in d) {
|
|
24554
|
-
const u = String(m.value), f = u.lastIndexOf(
|
|
24558
|
+
const u = String(m.value), f = u.lastIndexOf(x0), b = u.substring(0, f), x = u.substring(f + 2);
|
|
24555
24559
|
d.onChange({
|
|
24556
|
-
field:
|
|
24557
|
-
direction:
|
|
24560
|
+
field: b,
|
|
24561
|
+
direction: x
|
|
24558
24562
|
});
|
|
24559
24563
|
return;
|
|
24560
24564
|
}
|
|
@@ -24614,11 +24618,11 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24614
24618
|
label: d.label,
|
|
24615
24619
|
name: d.name ?? "toolbar-sort",
|
|
24616
24620
|
onChange: w,
|
|
24617
|
-
options:
|
|
24621
|
+
options: bl(d),
|
|
24618
24622
|
placeholder: d.placeholder,
|
|
24619
24623
|
searchable: d.searchable ?? !1,
|
|
24620
24624
|
usePortal: !1,
|
|
24621
|
-
value:
|
|
24625
|
+
value: xl(d)
|
|
24622
24626
|
})
|
|
24623
24627
|
})
|
|
24624
24628
|
]
|
|
@@ -24770,7 +24774,7 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24770
24774
|
onSelect: i
|
|
24771
24775
|
}, g.id))
|
|
24772
24776
|
})] });
|
|
24773
|
-
},
|
|
24777
|
+
}, bi = ({ nodes: t, selectable: c = !1, onSelect: l, showGuides: a = !0, animated: s = !0, defaultSelectedId: o = null, className: i = "" }) => {
|
|
24774
24778
|
const [n, d] = L(o), h = E((p) => {
|
|
24775
24779
|
p.disabled || (d(p.id), l?.(p));
|
|
24776
24780
|
}, [l]);
|
|
@@ -24843,7 +24847,7 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24843
24847
|
l += H1[a].percentage;
|
|
24844
24848
|
}
|
|
24845
24849
|
return 100;
|
|
24846
|
-
},
|
|
24850
|
+
}, xi = ({ belly: t, height: c, isSimplified: l = !1, showLabels: a = !0, showIndicator: s = !0 }) => {
|
|
24847
24851
|
const o = Math.round(t / c * 100) / 100, i = kl(o), n = _l(o), d = [
|
|
24848
24852
|
"<0.4",
|
|
24849
24853
|
"0.4-0.5",
|
|
@@ -24997,8 +25001,8 @@ function ki({ isOpen: t, onClose: c }) {
|
|
|
24997
25001
|
}
|
|
24998
25002
|
g(!0), p("");
|
|
24999
25003
|
try {
|
|
25000
|
-
const
|
|
25001
|
-
|
|
25004
|
+
const b = document.cookie.match(/(?:^|;\s*)csrf_token=([^;]+)/), x = b ? decodeURIComponent(b[1]) : null, y = { "Content-Type": "application/json" };
|
|
25005
|
+
x && (y["X-CSRF-Token"] = x);
|
|
25002
25006
|
const M = await fetch(`${l.apiBaseUrl}/auth/changePassword`, {
|
|
25003
25007
|
method: "POST",
|
|
25004
25008
|
credentials: "include",
|
|
@@ -25018,8 +25022,8 @@ function ki({ isOpen: t, onClose: c }) {
|
|
|
25018
25022
|
}), setTimeout(() => {
|
|
25019
25023
|
c();
|
|
25020
25024
|
}, 2e3);
|
|
25021
|
-
} catch (
|
|
25022
|
-
p(
|
|
25025
|
+
} catch (b) {
|
|
25026
|
+
p(b instanceof Error ? b.message : "Failed to change password");
|
|
25023
25027
|
} finally {
|
|
25024
25028
|
g(!1);
|
|
25025
25029
|
}
|
|
@@ -25057,7 +25061,7 @@ function ki({ isOpen: t, onClose: c }) {
|
|
|
25057
25061
|
}), /* @__PURE__ */ e(y0, {
|
|
25058
25062
|
id: "current-password",
|
|
25059
25063
|
value: a,
|
|
25060
|
-
onChange: (
|
|
25064
|
+
onChange: (b) => s(b),
|
|
25061
25065
|
placeholder: "Enter current password",
|
|
25062
25066
|
disabled: v,
|
|
25063
25067
|
autoFocus: !0
|
|
@@ -25072,7 +25076,7 @@ function ki({ isOpen: t, onClose: c }) {
|
|
|
25072
25076
|
}), /* @__PURE__ */ e(y0, {
|
|
25073
25077
|
id: "new-password",
|
|
25074
25078
|
value: o,
|
|
25075
|
-
onChange: (
|
|
25079
|
+
onChange: (b) => i(b),
|
|
25076
25080
|
placeholder: "Enter new password",
|
|
25077
25081
|
disabled: v
|
|
25078
25082
|
})]
|
|
@@ -25086,7 +25090,7 @@ function ki({ isOpen: t, onClose: c }) {
|
|
|
25086
25090
|
}), /* @__PURE__ */ e(y0, {
|
|
25087
25091
|
id: "confirm-password",
|
|
25088
25092
|
value: n,
|
|
25089
|
-
onChange: (
|
|
25093
|
+
onChange: (b) => d(b),
|
|
25090
25094
|
placeholder: "Confirm new password",
|
|
25091
25095
|
disabled: v
|
|
25092
25096
|
})]
|
|
@@ -25110,12 +25114,12 @@ function _i({ redirectPath: t = "/" }) {
|
|
|
25110
25114
|
}, [a, t]), F(() => {
|
|
25111
25115
|
if (new URLSearchParams(window.location.search).get("session_expired") === "true") {
|
|
25112
25116
|
u(!0);
|
|
25113
|
-
const
|
|
25114
|
-
window.history.replaceState({}, "",
|
|
25117
|
+
const b = window.location.pathname;
|
|
25118
|
+
window.history.replaceState({}, "", b);
|
|
25115
25119
|
}
|
|
25116
25120
|
}, []);
|
|
25117
|
-
const f = async (
|
|
25118
|
-
if (
|
|
25121
|
+
const f = async (b) => {
|
|
25122
|
+
if (b.preventDefault(), v(""), !s || !i) {
|
|
25119
25123
|
v("Username and password are required");
|
|
25120
25124
|
return;
|
|
25121
25125
|
}
|
|
@@ -25126,8 +25130,8 @@ function _i({ redirectPath: t = "/" }) {
|
|
|
25126
25130
|
password: i,
|
|
25127
25131
|
rememberMe: d
|
|
25128
25132
|
});
|
|
25129
|
-
} catch (
|
|
25130
|
-
v(
|
|
25133
|
+
} catch (x) {
|
|
25134
|
+
v(x instanceof Error ? x.message : "Login failed. Please try again.");
|
|
25131
25135
|
} finally {
|
|
25132
25136
|
w(!1);
|
|
25133
25137
|
}
|
|
@@ -25146,7 +25150,7 @@ function _i({ redirectPath: t = "/" }) {
|
|
|
25146
25150
|
/* @__PURE__ */ e(S1, {
|
|
25147
25151
|
placeholder: "Username",
|
|
25148
25152
|
value: s,
|
|
25149
|
-
onChange: (
|
|
25153
|
+
onChange: (b) => o(b),
|
|
25150
25154
|
required: !0,
|
|
25151
25155
|
autoFocus: !0,
|
|
25152
25156
|
disabled: g
|
|
@@ -25154,13 +25158,13 @@ function _i({ redirectPath: t = "/" }) {
|
|
|
25154
25158
|
/* @__PURE__ */ e(y0, {
|
|
25155
25159
|
placeholder: "Password",
|
|
25156
25160
|
value: i,
|
|
25157
|
-
onChange: (
|
|
25161
|
+
onChange: (b) => n(b),
|
|
25158
25162
|
required: !0,
|
|
25159
25163
|
disabled: g
|
|
25160
25164
|
}),
|
|
25161
25165
|
/* @__PURE__ */ e(m0, {
|
|
25162
25166
|
checked: d,
|
|
25163
|
-
onChange: (
|
|
25167
|
+
onChange: (b) => h(b),
|
|
25164
25168
|
label: "Keep me logged in",
|
|
25165
25169
|
disabled: g
|
|
25166
25170
|
}),
|
|
@@ -25401,7 +25405,7 @@ var Si = (t, c, l) => {
|
|
|
25401
25405
|
} catch {
|
|
25402
25406
|
return t.trim();
|
|
25403
25407
|
}
|
|
25404
|
-
}, Nl = "1.0.
|
|
25408
|
+
}, Nl = "1.0.10", Zi = 215, Hl = "efac3bb", Sl = "2026-06-28T11:04:43.066Z", Gi = "215", Bl = (t) => {
|
|
25405
25409
|
const c = document.getElementById("mb-version-toast");
|
|
25406
25410
|
if (c) {
|
|
25407
25411
|
c.remove();
|
|
@@ -25425,7 +25429,7 @@ var Si = (t, c, l) => {
|
|
|
25425
25429
|
const c = {
|
|
25426
25430
|
...t,
|
|
25427
25431
|
lib: Nl,
|
|
25428
|
-
libBuildNumber:
|
|
25432
|
+
libBuildNumber: 215,
|
|
25429
25433
|
libCommit: Hl,
|
|
25430
25434
|
libBuildDate: Sl
|
|
25431
25435
|
};
|
|
@@ -25516,7 +25520,7 @@ export {
|
|
|
25516
25520
|
Yl as Breadcrumb,
|
|
25517
25521
|
Xl as BulkActionBar,
|
|
25518
25522
|
W as Button,
|
|
25519
|
-
|
|
25523
|
+
b0 as Calendar,
|
|
25520
25524
|
oa as CalendarHeatmap,
|
|
25521
25525
|
I0 as Card,
|
|
25522
25526
|
ki as ChangePasswordModal,
|
|
@@ -25530,9 +25534,9 @@ export {
|
|
|
25530
25534
|
va as ConfirmDialog,
|
|
25531
25535
|
zr as ConfirmPopover,
|
|
25532
25536
|
Vr as ContextMenu,
|
|
25533
|
-
|
|
25537
|
+
ba as ControlPanel,
|
|
25534
25538
|
Ca as ControlPanelProvider,
|
|
25535
|
-
|
|
25539
|
+
xa as CopyButton,
|
|
25536
25540
|
Ma as CountryWithFlag,
|
|
25537
25541
|
_a as DataView,
|
|
25538
25542
|
Rr as DatePicker,
|
|
@@ -25617,10 +25621,10 @@ export {
|
|
|
25617
25621
|
fi as ToggleButtons,
|
|
25618
25622
|
d2 as ToggleSwitch,
|
|
25619
25623
|
Ci as Toolbar,
|
|
25620
|
-
|
|
25624
|
+
s1 as Tooltip,
|
|
25621
25625
|
yi as TourHud,
|
|
25622
|
-
|
|
25623
|
-
|
|
25626
|
+
bi as Tree,
|
|
25627
|
+
xi as WHtR,
|
|
25624
25628
|
ia as addDays,
|
|
25625
25629
|
d0 as addMonths,
|
|
25626
25630
|
n0 as breakpoints,
|
|
@@ -25674,12 +25678,12 @@ export {
|
|
|
25674
25678
|
E2 as useAuth,
|
|
25675
25679
|
C2 as useBodyScrollLock,
|
|
25676
25680
|
a0 as useBreakpoint,
|
|
25677
|
-
|
|
25681
|
+
x2 as useComponentEffect,
|
|
25678
25682
|
fa as useControlPanel,
|
|
25679
25683
|
W0 as useControlPanelContext,
|
|
25680
25684
|
ga as usePopover,
|
|
25681
25685
|
ci as useSidebar,
|
|
25682
|
-
|
|
25686
|
+
b2 as useTheme,
|
|
25683
25687
|
Nr as useToast,
|
|
25684
25688
|
Sc as validateEmail,
|
|
25685
25689
|
Ii as validateVin
|