@alfadocs/ui-kit 0.11.0 → 0.12.0
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/_chunks/_commonjsHelpers-C6fGbg64.js +7 -0
- package/dist/_chunks/{ai-prompt-input-bAJwYu84.js → ai-prompt-input-noh-N3cf.js} +2 -2
- package/dist/_chunks/{contact-card-VJIUqKB2.js → contact-card-DTQUMetD.js} +22 -38
- package/dist/_chunks/external-link-C6F25E6k.js +16 -0
- package/dist/_chunks/{file-upload-DIecAfC-.js → file-upload-nMh-1jDD.js} +2 -2
- package/dist/_chunks/{index-CeY1nNvd.js → index-CFoBa86t.js} +61 -63
- package/dist/_chunks/{link-BGpwaFik.js → link-DmM5IevO.js} +16 -26
- package/dist/_chunks/map-pin-B8STOPMJ.js +21 -0
- package/dist/_chunks/map-view-Dd48BxVB.js +1941 -0
- package/dist/_chunks/whatsapp-button-Bj5FIhpC.js +175 -0
- package/dist/agent-catalog.json +53 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/link/index.js +1 -1
- package/dist/components/map-view/index.d.ts +3 -0
- package/dist/components/map-view/index.js +5 -0
- package/dist/components/map-view/map-view.agent.d.ts +4 -0
- package/dist/components/map-view/map-view.d.ts +78 -0
- package/dist/components/whatsapp-button/index.d.ts +3 -0
- package/dist/components/whatsapp-button/index.js +5 -0
- package/dist/components/whatsapp-button/whatsapp-button.d.ts +32 -0
- package/dist/i18n/config.js +45 -6
- package/dist/i18n/resources.d.ts +39 -0
- package/dist/index.js +348 -344
- package/dist/locales/de.json +13 -0
- package/dist/locales/en.json +13 -0
- package/dist/locales/it.json +13 -0
- package/dist/tokens/google-maps-theme.d.ts +15 -0
- package/dist/tokens.css +1 -1
- package/package.json +15 -1
|
@@ -4,7 +4,7 @@ import { c as _e } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as re } from "react-i18next";
|
|
5
5
|
import { u as Ae } from "./registry-C9nwlNyL.js";
|
|
6
6
|
import { _ as b } from "./index-4xgbg-sn.js";
|
|
7
|
-
import { u as Ce } from "./index-
|
|
7
|
+
import { u as Ce } from "./index-CFoBa86t.js";
|
|
8
8
|
import { I as ne } from "./icon-button-C4CGcYuz.js";
|
|
9
9
|
import { S as Le } from "./select-i9MwQeQy.js";
|
|
10
10
|
import { S as Re } from "./send-CySZIRPJ.js";
|
|
@@ -473,4 +473,4 @@ export {
|
|
|
473
473
|
Qe as A,
|
|
474
474
|
We as a
|
|
475
475
|
};
|
|
476
|
-
//# sourceMappingURL=ai-prompt-input-
|
|
476
|
+
//# sourceMappingURL=ai-prompt-input-noh-N3cf.js.map
|
|
@@ -1,37 +1,21 @@
|
|
|
1
1
|
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as i, Fragment as b } from "react";
|
|
3
3
|
import { useTranslation as k } from "react-i18next";
|
|
4
4
|
import { C as o } from "./card-CWzuTLYE.js";
|
|
5
|
-
import { L as p } from "./link-
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
* @license lucide-react v1.8.0 - ISC
|
|
9
|
-
*
|
|
10
|
-
* This source code is licensed under the ISC license.
|
|
11
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/
|
|
13
|
-
const v = [
|
|
14
|
-
[
|
|
15
|
-
"path",
|
|
16
|
-
{
|
|
17
|
-
d: "M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",
|
|
18
|
-
key: "1r0f0z"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
|
|
22
|
-
], j = L("map-pin", v);
|
|
23
|
-
function O(s) {
|
|
5
|
+
import { L as p } from "./link-DmM5IevO.js";
|
|
6
|
+
import { M as v } from "./map-pin-B8STOPMJ.js";
|
|
7
|
+
function L(s) {
|
|
24
8
|
return `tel:${s.replace(/\(0\)/g, "").replace(/[^\d+]/g, "")}`;
|
|
25
9
|
}
|
|
26
|
-
const f =
|
|
27
|
-
({ title: s, variant: e = "default", className: d, children: n, ...
|
|
10
|
+
const f = i(
|
|
11
|
+
({ title: s, variant: e = "default", className: d, children: n, ...r }, c) => /* @__PURE__ */ t(
|
|
28
12
|
o,
|
|
29
13
|
{
|
|
30
|
-
ref:
|
|
14
|
+
ref: c,
|
|
31
15
|
variant: e,
|
|
32
16
|
"data-component": "contact-card",
|
|
33
17
|
className: d,
|
|
34
|
-
...
|
|
18
|
+
...r,
|
|
35
19
|
children: [
|
|
36
20
|
s !== void 0 ? /* @__PURE__ */ a(o.Header, { children: /* @__PURE__ */ a("h2", { className: "type-title-card ds:text-foreground", children: s }) }) : null,
|
|
37
21
|
/* @__PURE__ */ a(
|
|
@@ -52,9 +36,9 @@ const f = r(
|
|
|
52
36
|
)
|
|
53
37
|
);
|
|
54
38
|
f.displayName = "ContactCard";
|
|
55
|
-
const u =
|
|
56
|
-
({ name: s, lines: e, vatNumber: d, phone: n, nameAs:
|
|
57
|
-
const { t: l } = k(), N =
|
|
39
|
+
const u = i(
|
|
40
|
+
({ name: s, lines: e, vatNumber: d, phone: n, nameAs: r = "p", className: c, ...C }, h) => {
|
|
41
|
+
const { t: l } = k(), N = r;
|
|
58
42
|
return /* @__PURE__ */ t(
|
|
59
43
|
"address",
|
|
60
44
|
{
|
|
@@ -65,13 +49,13 @@ const u = r(
|
|
|
65
49
|
// the kit's type ramp already encodes intent — italic would
|
|
66
50
|
// double up with a heading-bold name and read as emphasis.
|
|
67
51
|
"ds:not-italic ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
68
|
-
|
|
52
|
+
c
|
|
69
53
|
].filter(Boolean).join(" "),
|
|
70
54
|
...C,
|
|
71
55
|
children: [
|
|
72
56
|
/* @__PURE__ */ t(N, { className: "ds:m-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)] type-label ds:font-semibold ds:text-foreground", children: [
|
|
73
57
|
/* @__PURE__ */ a(
|
|
74
|
-
|
|
58
|
+
v,
|
|
75
59
|
{
|
|
76
60
|
"aria-hidden": "true",
|
|
77
61
|
className: "ds:size-[1.25em] ds:text-primary ds:shrink-0"
|
|
@@ -89,7 +73,7 @@ const u = r(
|
|
|
89
73
|
] }) : null,
|
|
90
74
|
n ? /* @__PURE__ */ t("div", { className: "type-body-sm ds:text-muted-foreground ds:inline-flex ds:items-baseline ds:gap-[var(--spacing-2xs)] ds:flex-wrap", children: [
|
|
91
75
|
/* @__PURE__ */ a("span", { children: l("contactCard.phoneLabel") }),
|
|
92
|
-
/* @__PURE__ */ a(p, { href:
|
|
76
|
+
/* @__PURE__ */ a(p, { href: L(n), intent: "default", children: /* @__PURE__ */ a("span", { className: "ds:[unicode-bidi:isolate]", children: n }) })
|
|
93
77
|
] }) : null
|
|
94
78
|
]
|
|
95
79
|
}
|
|
@@ -97,7 +81,7 @@ const u = r(
|
|
|
97
81
|
}
|
|
98
82
|
);
|
|
99
83
|
u.displayName = "ContactCard.Office";
|
|
100
|
-
const
|
|
84
|
+
const g = i(
|
|
101
85
|
({ className: s, children: e, ...d }, n) => /* @__PURE__ */ a(
|
|
102
86
|
"ul",
|
|
103
87
|
{
|
|
@@ -113,9 +97,9 @@ const x = r(
|
|
|
113
97
|
}
|
|
114
98
|
)
|
|
115
99
|
);
|
|
116
|
-
|
|
117
|
-
const
|
|
118
|
-
({ href: s, icon: e, external: d, children: n },
|
|
100
|
+
g.displayName = "ContactCard.Links";
|
|
101
|
+
const x = i(
|
|
102
|
+
({ href: s, icon: e, external: d, children: n }, r) => /* @__PURE__ */ a("li", { ref: r, className: "ds:m-0", children: /* @__PURE__ */ a(
|
|
119
103
|
p,
|
|
120
104
|
{
|
|
121
105
|
href: s,
|
|
@@ -125,13 +109,13 @@ const g = r(
|
|
|
125
109
|
}
|
|
126
110
|
) })
|
|
127
111
|
);
|
|
128
|
-
|
|
112
|
+
x.displayName = "ContactCard.Link";
|
|
129
113
|
const M = Object.assign(f, {
|
|
130
114
|
Office: u,
|
|
131
|
-
Links:
|
|
132
|
-
Link:
|
|
115
|
+
Links: g,
|
|
116
|
+
Link: x
|
|
133
117
|
});
|
|
134
118
|
export {
|
|
135
119
|
M as C
|
|
136
120
|
};
|
|
137
|
-
//# sourceMappingURL=contact-card-
|
|
121
|
+
//# sourceMappingURL=contact-card-DTQUMetD.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { c as a } from "./createLucideIcon-CrFbzy84.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v1.8.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const e = [
|
|
9
|
+
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
10
|
+
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
11
|
+
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
12
|
+
], n = a("external-link", e);
|
|
13
|
+
export {
|
|
14
|
+
n as E
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=external-link-C6F25E6k.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as Ne, useId as Ue, useState as re, useRef as V, useCallback as y, useMemo as q, useEffect as ze } from "react";
|
|
3
|
-
import { u as je } from "./index-
|
|
3
|
+
import { u as je } from "./index-CFoBa86t.js";
|
|
4
4
|
import { c as _ } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { useTranslation as Me } from "react-i18next";
|
|
6
6
|
import { u as Ce } from "./form-field-context-B3APVHKx.js";
|
|
@@ -822,4 +822,4 @@ export {
|
|
|
822
822
|
ss as F,
|
|
823
823
|
Pe as f
|
|
824
824
|
};
|
|
825
|
-
//# sourceMappingURL=file-upload-
|
|
825
|
+
//# sourceMappingURL=file-upload-nMh-1jDD.js.map
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import Li, { useMemo as ua, useRef as xa, useReducer as Wi, useEffect as ka, useCallback as N, forwardRef as Yi, useImperativeHandle as Ki, Fragment as Hi } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
var Ea = { exports: {} }, ja = { exports: {} }, T = {};
|
|
2
|
+
import { g as Ei } from "./_commonjsHelpers-C6fGbg64.js";
|
|
3
|
+
var Ea = { exports: {} }, ja = { exports: {} }, O = {};
|
|
6
4
|
/** @license React v16.13.1
|
|
7
5
|
* react-is.production.min.js
|
|
8
6
|
*
|
|
@@ -13,7 +11,7 @@ var Ea = { exports: {} }, ja = { exports: {} }, T = {};
|
|
|
13
11
|
*/
|
|
14
12
|
var ai;
|
|
15
13
|
function Gi() {
|
|
16
|
-
if (ai) return
|
|
14
|
+
if (ai) return O;
|
|
17
15
|
ai = 1;
|
|
18
16
|
var a = typeof Symbol == "function" && Symbol.for, i = a ? Symbol.for("react.element") : 60103, e = a ? Symbol.for("react.portal") : 60106, t = a ? Symbol.for("react.fragment") : 60107, o = a ? Symbol.for("react.strict_mode") : 60108, n = a ? Symbol.for("react.profiler") : 60114, d = a ? Symbol.for("react.provider") : 60109, l = a ? Symbol.for("react.context") : 60110, h = a ? Symbol.for("react.async_mode") : 60111, E = a ? Symbol.for("react.concurrent_mode") : 60111, v = a ? Symbol.for("react.forward_ref") : 60112, k = a ? Symbol.for("react.suspense") : 60113, S = a ? Symbol.for("react.suspense_list") : 60120, R = a ? Symbol.for("react.memo") : 60115, W = a ? Symbol.for("react.lazy") : 60116, A = a ? Symbol.for("react.block") : 60121, $ = a ? Symbol.for("react.fundamental") : 60117, B = a ? Symbol.for("react.responder") : 60118, ta = a ? Symbol.for("react.scope") : 60119;
|
|
19
17
|
function I(s) {
|
|
@@ -49,33 +47,33 @@ function Gi() {
|
|
|
49
47
|
function q(s) {
|
|
50
48
|
return I(s) === E;
|
|
51
49
|
}
|
|
52
|
-
return
|
|
50
|
+
return O.AsyncMode = h, O.ConcurrentMode = E, O.ContextConsumer = l, O.ContextProvider = d, O.Element = i, O.ForwardRef = v, O.Fragment = t, O.Lazy = W, O.Memo = R, O.Portal = e, O.Profiler = n, O.StrictMode = o, O.Suspense = k, O.isAsyncMode = function(s) {
|
|
53
51
|
return q(s) || I(s) === h;
|
|
54
|
-
},
|
|
52
|
+
}, O.isConcurrentMode = q, O.isContextConsumer = function(s) {
|
|
55
53
|
return I(s) === l;
|
|
56
|
-
},
|
|
54
|
+
}, O.isContextProvider = function(s) {
|
|
57
55
|
return I(s) === d;
|
|
58
|
-
},
|
|
56
|
+
}, O.isElement = function(s) {
|
|
59
57
|
return typeof s == "object" && s !== null && s.$$typeof === i;
|
|
60
|
-
},
|
|
58
|
+
}, O.isForwardRef = function(s) {
|
|
61
59
|
return I(s) === v;
|
|
62
|
-
},
|
|
60
|
+
}, O.isFragment = function(s) {
|
|
63
61
|
return I(s) === t;
|
|
64
|
-
},
|
|
62
|
+
}, O.isLazy = function(s) {
|
|
65
63
|
return I(s) === W;
|
|
66
|
-
},
|
|
64
|
+
}, O.isMemo = function(s) {
|
|
67
65
|
return I(s) === R;
|
|
68
|
-
},
|
|
66
|
+
}, O.isPortal = function(s) {
|
|
69
67
|
return I(s) === e;
|
|
70
|
-
},
|
|
68
|
+
}, O.isProfiler = function(s) {
|
|
71
69
|
return I(s) === n;
|
|
72
|
-
},
|
|
70
|
+
}, O.isStrictMode = function(s) {
|
|
73
71
|
return I(s) === o;
|
|
74
|
-
},
|
|
72
|
+
}, O.isSuspense = function(s) {
|
|
75
73
|
return I(s) === k;
|
|
76
|
-
},
|
|
74
|
+
}, O.isValidElementType = function(s) {
|
|
77
75
|
return typeof s == "string" || typeof s == "function" || s === t || s === E || s === n || s === o || s === k || s === S || typeof s == "object" && s !== null && (s.$$typeof === W || s.$$typeof === R || s.$$typeof === d || s.$$typeof === l || s.$$typeof === v || s.$$typeof === $ || s.$$typeof === B || s.$$typeof === ta || s.$$typeof === A);
|
|
78
|
-
},
|
|
76
|
+
}, O.typeOf = I, O;
|
|
79
77
|
}
|
|
80
78
|
var _ = {};
|
|
81
79
|
/** @license React v16.13.1
|
|
@@ -157,7 +155,7 @@ function Bi() {
|
|
|
157
155
|
function j(r) {
|
|
158
156
|
return q(r) === e;
|
|
159
157
|
}
|
|
160
|
-
function
|
|
158
|
+
function T(r) {
|
|
161
159
|
return q(r) === n;
|
|
162
160
|
}
|
|
163
161
|
function D(r) {
|
|
@@ -166,7 +164,7 @@ function Bi() {
|
|
|
166
164
|
function Y(r) {
|
|
167
165
|
return q(r) === k;
|
|
168
166
|
}
|
|
169
|
-
_.AsyncMode = s, _.ConcurrentMode = J, _.ContextConsumer = V, _.ContextProvider = pa, _.Element = aa, _.ForwardRef = ia, _.Fragment = ra, _.Lazy = ca, _.Memo = na, _.Portal = C, _.Profiler = G, _.StrictMode = U, _.Suspense = X, _.isAsyncMode = M, _.isConcurrentMode = p, _.isContextConsumer = m, _.isContextProvider = g, _.isElement = w, _.isForwardRef = f, _.isFragment = b, _.isLazy = y, _.isMemo = x, _.isPortal = j, _.isProfiler =
|
|
167
|
+
_.AsyncMode = s, _.ConcurrentMode = J, _.ContextConsumer = V, _.ContextProvider = pa, _.Element = aa, _.ForwardRef = ia, _.Fragment = ra, _.Lazy = ca, _.Memo = na, _.Portal = C, _.Profiler = G, _.StrictMode = U, _.Suspense = X, _.isAsyncMode = M, _.isConcurrentMode = p, _.isContextConsumer = m, _.isContextProvider = g, _.isElement = w, _.isForwardRef = f, _.isFragment = b, _.isLazy = y, _.isMemo = x, _.isPortal = j, _.isProfiler = T, _.isStrictMode = D, _.isSuspense = Y, _.isValidElementType = I, _.typeOf = q;
|
|
170
168
|
})()), _;
|
|
171
169
|
}
|
|
172
170
|
var ei;
|
|
@@ -339,7 +337,7 @@ function Vi() {
|
|
|
339
337
|
function $(p) {
|
|
340
338
|
if (process.env.NODE_ENV !== "production")
|
|
341
339
|
var m = {}, g = 0;
|
|
342
|
-
function w(b, y, x, j,
|
|
340
|
+
function w(b, y, x, j, T, D, Y) {
|
|
343
341
|
if (j = j || S, D = D || x, Y !== e) {
|
|
344
342
|
if (h) {
|
|
345
343
|
var r = new Error(
|
|
@@ -354,15 +352,15 @@ function Vi() {
|
|
|
354
352
|
), m[K] = !0, g++);
|
|
355
353
|
}
|
|
356
354
|
}
|
|
357
|
-
return y[x] == null ? b ? y[x] === null ? new A("The " +
|
|
355
|
+
return y[x] == null ? b ? y[x] === null ? new A("The " + T + " `" + D + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new A("The " + T + " `" + D + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : p(y, x, j, T, D);
|
|
358
356
|
}
|
|
359
357
|
var f = w.bind(null, !1);
|
|
360
358
|
return f.isRequired = w.bind(null, !0), f;
|
|
361
359
|
}
|
|
362
360
|
function B(p) {
|
|
363
361
|
function m(g, w, f, b, y, x) {
|
|
364
|
-
var j = g[w],
|
|
365
|
-
if (
|
|
362
|
+
var j = g[w], T = U(j);
|
|
363
|
+
if (T !== p) {
|
|
366
364
|
var D = X(j);
|
|
367
365
|
return new A(
|
|
368
366
|
"Invalid " + b + " `" + y + "` of type " + ("`" + D + "` supplied to `" + f + "`, expected ") + ("`" + p + "`."),
|
|
@@ -385,8 +383,8 @@ function Vi() {
|
|
|
385
383
|
var j = U(x);
|
|
386
384
|
return new A("Invalid " + b + " `" + y + "` of type " + ("`" + j + "` supplied to `" + f + "`, expected an array."));
|
|
387
385
|
}
|
|
388
|
-
for (var
|
|
389
|
-
var D = p(x,
|
|
386
|
+
for (var T = 0; T < x.length; T++) {
|
|
387
|
+
var D = p(x, T, f, b, y + "[" + T + "]", e);
|
|
390
388
|
if (D instanceof Error)
|
|
391
389
|
return D;
|
|
392
390
|
}
|
|
@@ -435,11 +433,11 @@ function Vi() {
|
|
|
435
433
|
for (var x = g[w], j = 0; j < p.length; j++)
|
|
436
434
|
if (W(x, p[j]))
|
|
437
435
|
return null;
|
|
438
|
-
var
|
|
436
|
+
var T = JSON.stringify(p, function(Y, r) {
|
|
439
437
|
var K = X(r);
|
|
440
438
|
return K === "symbol" ? String(r) : r;
|
|
441
439
|
});
|
|
442
|
-
return new A("Invalid " + b + " `" + y + "` of value `" + String(x) + "` " + ("supplied to `" + f + "`, expected one of " +
|
|
440
|
+
return new A("Invalid " + b + " `" + y + "` of value `" + String(x) + "` " + ("supplied to `" + f + "`, expected one of " + T + "."));
|
|
443
441
|
}
|
|
444
442
|
return $(m);
|
|
445
443
|
}
|
|
@@ -450,9 +448,9 @@ function Vi() {
|
|
|
450
448
|
var x = g[w], j = U(x);
|
|
451
449
|
if (j !== "object")
|
|
452
450
|
return new A("Invalid " + b + " `" + y + "` of type " + ("`" + j + "` supplied to `" + f + "`, expected an object."));
|
|
453
|
-
for (var
|
|
454
|
-
if (t(x,
|
|
455
|
-
var D = p(x,
|
|
451
|
+
for (var T in x)
|
|
452
|
+
if (t(x, T)) {
|
|
453
|
+
var D = p(x, T, f, b, y + "." + T, e);
|
|
456
454
|
if (D instanceof Error)
|
|
457
455
|
return D;
|
|
458
456
|
}
|
|
@@ -471,13 +469,13 @@ function Vi() {
|
|
|
471
469
|
), d;
|
|
472
470
|
}
|
|
473
471
|
function w(f, b, y, x, j) {
|
|
474
|
-
for (var
|
|
472
|
+
for (var T = [], D = 0; D < p.length; D++) {
|
|
475
473
|
var Y = p[D], r = Y(f, b, y, x, j, e);
|
|
476
474
|
if (r == null)
|
|
477
475
|
return null;
|
|
478
|
-
r.data && t(r.data, "expectedType") &&
|
|
476
|
+
r.data && t(r.data, "expectedType") && T.push(r.data.expectedType);
|
|
479
477
|
}
|
|
480
|
-
var K =
|
|
478
|
+
var K = T.length > 0 ? ", expected one of type [" + T.join(", ") + "]" : "";
|
|
481
479
|
return new A("Invalid " + x + " `" + j + "` supplied to " + ("`" + y + "`" + K + "."));
|
|
482
480
|
}
|
|
483
481
|
return $(w);
|
|
@@ -498,11 +496,11 @@ function Vi() {
|
|
|
498
496
|
var x = g[w], j = U(x);
|
|
499
497
|
if (j !== "object")
|
|
500
498
|
return new A("Invalid " + b + " `" + y + "` of type `" + j + "` " + ("supplied to `" + f + "`, expected `object`."));
|
|
501
|
-
for (var
|
|
502
|
-
var D = p[
|
|
499
|
+
for (var T in p) {
|
|
500
|
+
var D = p[T];
|
|
503
501
|
if (typeof D != "function")
|
|
504
|
-
return ra(f, b, y,
|
|
505
|
-
var Y = D(x,
|
|
502
|
+
return ra(f, b, y, T, X(D));
|
|
503
|
+
var Y = D(x, T, f, b, y + "." + T, e);
|
|
506
504
|
if (Y)
|
|
507
505
|
return Y;
|
|
508
506
|
}
|
|
@@ -515,8 +513,8 @@ function Vi() {
|
|
|
515
513
|
var x = g[w], j = U(x);
|
|
516
514
|
if (j !== "object")
|
|
517
515
|
return new A("Invalid " + b + " `" + y + "` of type `" + j + "` " + ("supplied to `" + f + "`, expected `object`."));
|
|
518
|
-
var
|
|
519
|
-
for (var D in
|
|
516
|
+
var T = i({}, g[w], p);
|
|
517
|
+
for (var D in T) {
|
|
520
518
|
var Y = p[D];
|
|
521
519
|
if (t(p, D) && typeof Y != "function")
|
|
522
520
|
return ra(f, b, y, D, X(Y));
|
|
@@ -1929,16 +1927,16 @@ const ie = [
|
|
|
1929
1927
|
];
|
|
1930
1928
|
function ee(a) {
|
|
1931
1929
|
return da(this, void 0, void 0, function* () {
|
|
1932
|
-
return
|
|
1930
|
+
return Ta(a) && te(a.dataTransfer) ? re(a.dataTransfer, a.type) : ne(a) ? oe(a) : Array.isArray(a) && a.every((i) => "getFile" in i && typeof i.getFile == "function") ? pe(a) : [];
|
|
1933
1931
|
});
|
|
1934
1932
|
}
|
|
1935
1933
|
function te(a) {
|
|
1936
|
-
return
|
|
1934
|
+
return Ta(a);
|
|
1937
1935
|
}
|
|
1938
1936
|
function ne(a) {
|
|
1939
|
-
return
|
|
1937
|
+
return Ta(a) && Ta(a.target);
|
|
1940
1938
|
}
|
|
1941
|
-
function
|
|
1939
|
+
function Ta(a) {
|
|
1942
1940
|
return typeof a == "object" && a !== null;
|
|
1943
1941
|
}
|
|
1944
1942
|
function oe(a) {
|
|
@@ -1956,7 +1954,7 @@ function re(a, i) {
|
|
|
1956
1954
|
if (i !== "drop")
|
|
1957
1955
|
return e;
|
|
1958
1956
|
const t = yield Promise.all(e.map(ce));
|
|
1959
|
-
return di(
|
|
1957
|
+
return di(Ti(t));
|
|
1960
1958
|
}
|
|
1961
1959
|
return di(Ga(a.files).map((e) => fa(e)));
|
|
1962
1960
|
});
|
|
@@ -1978,12 +1976,12 @@ function ce(a) {
|
|
|
1978
1976
|
if (typeof a.webkitGetAsEntry != "function")
|
|
1979
1977
|
return mi(a);
|
|
1980
1978
|
const i = a.webkitGetAsEntry();
|
|
1981
|
-
return i && i.isDirectory ?
|
|
1979
|
+
return i && i.isDirectory ? Oi(i) : mi(a, i);
|
|
1982
1980
|
}
|
|
1983
|
-
function
|
|
1981
|
+
function Ti(a) {
|
|
1984
1982
|
return a.reduce((i, e) => [
|
|
1985
1983
|
...i,
|
|
1986
|
-
...Array.isArray(e) ?
|
|
1984
|
+
...Array.isArray(e) ? Ti(e) : [e]
|
|
1987
1985
|
], []);
|
|
1988
1986
|
}
|
|
1989
1987
|
function mi(a, i) {
|
|
@@ -2006,10 +2004,10 @@ function mi(a, i) {
|
|
|
2006
2004
|
}
|
|
2007
2005
|
function le(a) {
|
|
2008
2006
|
return da(this, void 0, void 0, function* () {
|
|
2009
|
-
return a.isDirectory ?
|
|
2007
|
+
return a.isDirectory ? Oi(a) : se(a);
|
|
2010
2008
|
});
|
|
2011
2009
|
}
|
|
2012
|
-
function
|
|
2010
|
+
function Oi(a) {
|
|
2013
2011
|
const i = a.createReader();
|
|
2014
2012
|
return new Promise((e, t) => {
|
|
2015
2013
|
const o = [];
|
|
@@ -2162,11 +2160,11 @@ var ye = typeof Ka == "function" ? Ka : Ka.default, he = "file-invalid-type", we
|
|
|
2162
2160
|
code: Ee,
|
|
2163
2161
|
message: "Too many files"
|
|
2164
2162
|
};
|
|
2165
|
-
function
|
|
2163
|
+
function Te(a) {
|
|
2166
2164
|
return a.type === "" && typeof a.getAsFile == "function";
|
|
2167
2165
|
}
|
|
2168
2166
|
function Pi(a, i) {
|
|
2169
|
-
var e = a.type === "application/x-moz-file" || ye(a, i) ||
|
|
2167
|
+
var e = a.type === "application/x-moz-file" || ye(a, i) || Te(a);
|
|
2170
2168
|
return [e, e ? null : je(i)];
|
|
2171
2169
|
}
|
|
2172
2170
|
function Si(a, i, e) {
|
|
@@ -2183,14 +2181,14 @@ function Si(a, i, e) {
|
|
|
2183
2181
|
function sa(a) {
|
|
2184
2182
|
return a != null;
|
|
2185
2183
|
}
|
|
2186
|
-
function
|
|
2184
|
+
function Oe(a) {
|
|
2187
2185
|
var i = a.files, e = a.accept, t = a.minSize, o = a.maxSize, n = a.multiple, d = a.maxFiles, l = a.validator;
|
|
2188
2186
|
return !n && i.length > 1 || n && d >= 1 && i.length > d ? !1 : i.every(function(h) {
|
|
2189
2187
|
var E = Pi(h, e), v = ba(E, 1), k = v[0], S = Si(h, t, o), R = ba(S, 1), W = R[0], A = l ? l(h) : null;
|
|
2190
2188
|
return k && W && !A;
|
|
2191
2189
|
});
|
|
2192
2190
|
}
|
|
2193
|
-
function
|
|
2191
|
+
function Oa(a) {
|
|
2194
2192
|
return typeof a.isPropagationStopped == "function" ? a.isPropagationStopped() : typeof a.cancelBubble < "u" ? a.cancelBubble : !1;
|
|
2195
2193
|
}
|
|
2196
2194
|
function ga(a) {
|
|
@@ -2218,7 +2216,7 @@ function Q() {
|
|
|
2218
2216
|
for (var o = arguments.length, n = new Array(o > 1 ? o - 1 : 0), d = 1; d < o; d++)
|
|
2219
2217
|
n[d - 1] = arguments[d];
|
|
2220
2218
|
return i.some(function(l) {
|
|
2221
|
-
return !
|
|
2219
|
+
return !Oa(t) && l && l.apply(void 0, [t].concat(n)), Oa(t);
|
|
2222
2220
|
});
|
|
2223
2221
|
};
|
|
2224
2222
|
}
|
|
@@ -2634,8 +2632,8 @@ function Ue() {
|
|
|
2634
2632
|
pa ? pa(c) : console.error(c);
|
|
2635
2633
|
}, [pa]), j = N(function(c) {
|
|
2636
2634
|
c.preventDefault(), c.persist(), ha(c), f.current = [].concat(hi(f.current), [c.target]), ga(c) && Promise.resolve(o(c)).then(function(u) {
|
|
2637
|
-
if (!(
|
|
2638
|
-
var F = u.length, L = F > 0 &&
|
|
2635
|
+
if (!(Oa(c) && !V)) {
|
|
2636
|
+
var F = u.length, L = F > 0 && Oe({
|
|
2639
2637
|
files: u,
|
|
2640
2638
|
accept: ia,
|
|
2641
2639
|
minSize: d,
|
|
@@ -2654,7 +2652,7 @@ function Ue() {
|
|
|
2654
2652
|
}).catch(function(u) {
|
|
2655
2653
|
return x(u);
|
|
2656
2654
|
});
|
|
2657
|
-
}, [o, E, x, V, ia, d, n, l, h, aa]),
|
|
2655
|
+
}, [o, E, x, V, ia, d, n, l, h, aa]), T = N(function(c) {
|
|
2658
2656
|
c.preventDefault(), c.persist(), ha(c);
|
|
2659
2657
|
var u = ga(c);
|
|
2660
2658
|
if (u && c.dataTransfer)
|
|
@@ -2701,7 +2699,7 @@ function Ue() {
|
|
|
2701
2699
|
}), S && S(F, L, u), L.length > 0 && W && W(L, u), F.length > 0 && R && R(F, u);
|
|
2702
2700
|
}, [M, l, ia, d, n, h, S, R, W, aa]), r = N(function(c) {
|
|
2703
2701
|
c.preventDefault(), c.persist(), ha(c), f.current = [], ga(c) && Promise.resolve(o(c)).then(function(u) {
|
|
2704
|
-
|
|
2702
|
+
Oa(c) && !V || Y(u, c);
|
|
2705
2703
|
}).catch(function(u) {
|
|
2706
2704
|
return x(u);
|
|
2707
2705
|
}), M({
|
|
@@ -2761,7 +2759,7 @@ function Ue() {
|
|
|
2761
2759
|
onBlur: Aa(Q(ea, Za)),
|
|
2762
2760
|
onClick: ma(Q(Pa, Qa)),
|
|
2763
2761
|
onDragEnter: ya(Q(Sa, j)),
|
|
2764
|
-
onDragOver: ya(Q(za,
|
|
2762
|
+
onDragOver: ya(Q(za, T)),
|
|
2765
2763
|
onDragLeave: ya(Q(wa, D)),
|
|
2766
2764
|
onDrop: ya(Q(Ra, r)),
|
|
2767
2765
|
role: typeof L == "string" && L !== "" ? L : "presentation"
|
|
@@ -2769,7 +2767,7 @@ function Ue() {
|
|
|
2769
2767
|
tabIndex: 0
|
|
2770
2768
|
} : {}), Ca);
|
|
2771
2769
|
};
|
|
2772
|
-
}, [C, la, va, Za, Qa, j,
|
|
2770
|
+
}, [C, la, va, Za, Qa, j, T, D, r, s, J, t]), qi = N(function(c) {
|
|
2773
2771
|
c.stopPropagation();
|
|
2774
2772
|
}, []), Mi = ua(function() {
|
|
2775
2773
|
return function() {
|
|
@@ -2850,4 +2848,4 @@ function ki() {
|
|
|
2850
2848
|
export {
|
|
2851
2849
|
Ue as u
|
|
2852
2850
|
};
|
|
2853
|
-
//# sourceMappingURL=index-
|
|
2851
|
+
//# sourceMappingURL=index-CFoBa86t.js.map
|
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as y, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as k } from "react";
|
|
3
3
|
import { c as w } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as N } from "react-i18next";
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
* @license lucide-react v1.8.0 - ISC
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the ISC license.
|
|
10
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
const _ = [
|
|
13
|
-
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
14
|
-
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
15
|
-
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
16
|
-
], j = L("external-link", _), T = w(
|
|
5
|
+
import { E as L } from "./external-link-C6F25E6k.js";
|
|
6
|
+
const j = w(
|
|
17
7
|
[
|
|
18
8
|
"ds:underline-offset-4",
|
|
19
9
|
"ds:rounded-[var(--radius-xs)]",
|
|
@@ -55,24 +45,24 @@ const _ = [
|
|
|
55
45
|
hasIcon: "no"
|
|
56
46
|
}
|
|
57
47
|
}
|
|
58
|
-
),
|
|
48
|
+
), T = k(
|
|
59
49
|
({
|
|
60
50
|
href: l,
|
|
61
51
|
external: e = !1,
|
|
62
52
|
disabled: s = !1,
|
|
63
53
|
startIcon: i,
|
|
64
54
|
endIcon: a,
|
|
65
|
-
intent:
|
|
55
|
+
intent: r,
|
|
66
56
|
weight: c,
|
|
67
57
|
className: f,
|
|
68
58
|
children: u,
|
|
69
59
|
target: m,
|
|
70
|
-
rel:
|
|
60
|
+
rel: t,
|
|
71
61
|
onClick: o,
|
|
72
62
|
...v
|
|
73
63
|
}, h) => {
|
|
74
|
-
const { t: p } = N(), g = e ? "_blank" : m, x = e ? [
|
|
75
|
-
return /* @__PURE__ */
|
|
64
|
+
const { t: p } = N(), g = e ? "_blank" : m, x = e ? [t, "noopener", "noreferrer"].filter(Boolean).join(" ") : t, b = p("link.opensInNewTab", "Opens in a new tab");
|
|
65
|
+
return /* @__PURE__ */ y(
|
|
76
66
|
"a",
|
|
77
67
|
{
|
|
78
68
|
ref: h,
|
|
@@ -89,9 +79,9 @@ const _ = [
|
|
|
89
79
|
o == null || o(d);
|
|
90
80
|
},
|
|
91
81
|
"data-component": "link",
|
|
92
|
-
"data-intent":
|
|
93
|
-
className:
|
|
94
|
-
intent:
|
|
82
|
+
"data-intent": r ?? "default",
|
|
83
|
+
className: j({
|
|
84
|
+
intent: r,
|
|
95
85
|
weight: c,
|
|
96
86
|
hasIcon: !!(i || a || e) ? "yes" : "no",
|
|
97
87
|
className: f
|
|
@@ -111,8 +101,8 @@ const _ = [
|
|
|
111
101
|
"span",
|
|
112
102
|
{
|
|
113
103
|
className: "ds:inline-flex ds:items-center",
|
|
114
|
-
"aria-label":
|
|
115
|
-
children: /* @__PURE__ */ n(
|
|
104
|
+
"aria-label": b,
|
|
105
|
+
children: /* @__PURE__ */ n(L, { "aria-hidden": "true", className: "ds:size-[1em]" })
|
|
116
106
|
}
|
|
117
107
|
) : a ? /* @__PURE__ */ n(
|
|
118
108
|
"span",
|
|
@@ -127,8 +117,8 @@ const _ = [
|
|
|
127
117
|
);
|
|
128
118
|
}
|
|
129
119
|
);
|
|
130
|
-
|
|
120
|
+
T.displayName = "Link";
|
|
131
121
|
export {
|
|
132
|
-
|
|
122
|
+
T as L
|
|
133
123
|
};
|
|
134
|
-
//# sourceMappingURL=link-
|
|
124
|
+
//# sourceMappingURL=link-DmM5IevO.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { c } from "./createLucideIcon-CrFbzy84.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v1.8.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const a = [
|
|
9
|
+
[
|
|
10
|
+
"path",
|
|
11
|
+
{
|
|
12
|
+
d: "M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",
|
|
13
|
+
key: "1r0f0z"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
|
|
17
|
+
], o = c("map-pin", a);
|
|
18
|
+
export {
|
|
19
|
+
o as M
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=map-pin-B8STOPMJ.js.map
|