@shopito/design-system-fe 0.1.23 → 0.1.26
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/Header/Header.d.ts.map +1 -1
- package/dist/common/Button/Button.d.ts.map +1 -1
- package/dist/common/Input/Input.d.ts +2 -1
- package/dist/common/Input/Input.d.ts.map +1 -1
- package/dist/common/Tabs/Tabs.d.ts +10 -3
- package/dist/common/Tabs/Tabs.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1933 -630
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { Children as e,
|
|
2
|
-
import { Fragment as
|
|
3
|
-
import { createPortal as
|
|
1
|
+
import { Children as e, Component as t, Fragment as n, createContext as r, createElement as i, forwardRef as a, useCallback as o, useContext as s, useEffect as c, useId as l, useLayoutEffect as u, useRef as d, useState as f } from "react";
|
|
2
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
3
|
+
import { createPortal as g } from "react-dom";
|
|
4
4
|
//#region \0rolldown/runtime.js
|
|
5
|
-
var
|
|
6
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
5
|
+
var _ = Object.create, v = Object.defineProperty, y = Object.getOwnPropertyDescriptor, b = Object.getOwnPropertyNames, x = Object.getPrototypeOf, S = Object.prototype.hasOwnProperty, C = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), w = (e, t, n, r) => {
|
|
6
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = b(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !S.call(e, s) && s !== n && v(e, s, {
|
|
7
7
|
get: ((e) => t[e]).bind(null, s),
|
|
8
|
-
enumerable: !(r =
|
|
8
|
+
enumerable: !(r = y(t, s)) || r.enumerable
|
|
9
9
|
});
|
|
10
10
|
return e;
|
|
11
|
-
},
|
|
11
|
+
}, T = (e, t, n) => (n = e == null ? {} : _(x(e)), w(t || !e || !e.__esModule ? v(n, "default", {
|
|
12
12
|
value: e,
|
|
13
13
|
enumerable: !0
|
|
14
|
-
}) : n, e)),
|
|
14
|
+
}) : n, e)), E = ({ children: e }) => /* @__PURE__ */ m("div", {
|
|
15
15
|
className: "container",
|
|
16
16
|
children: e
|
|
17
|
-
}),
|
|
17
|
+
}), D = ({ children: e }) => /* @__PURE__ */ m("main", {
|
|
18
18
|
className: "main",
|
|
19
|
-
children: /* @__PURE__ */
|
|
20
|
-
}),
|
|
19
|
+
children: /* @__PURE__ */ m(E, { children: e })
|
|
20
|
+
}), O = /* @__PURE__ */ T((/* @__PURE__ */ C(((e, t) => {
|
|
21
21
|
(function() {
|
|
22
22
|
var e = {}.hasOwnProperty;
|
|
23
23
|
function n() {
|
|
@@ -43,137 +43,138 @@ var p = Object.create, m = Object.defineProperty, h = Object.getOwnPropertyDescr
|
|
|
43
43
|
return n;
|
|
44
44
|
}) : window.classNames = n;
|
|
45
45
|
})();
|
|
46
|
-
})))(), 1),
|
|
46
|
+
})))(), 1), k = a(({ variant: e = "primary", size: t = "md", loading: n = !1, fullWidth: r = !1, disabled: i, children: a, className: o = "", ...s }, c) => /* @__PURE__ */ h("button", {
|
|
47
47
|
ref: c,
|
|
48
48
|
disabled: i || n,
|
|
49
|
-
className: (0,
|
|
49
|
+
className: (0, O.default)("btn", e && `btn-${e}`, t && `btn-${t}`, r && "w-full", o),
|
|
50
50
|
...s,
|
|
51
|
-
children: [n && /* @__PURE__ */
|
|
51
|
+
children: [n && /* @__PURE__ */ h("svg", {
|
|
52
52
|
className: "animate-spin h-4 w-4 shrink-0",
|
|
53
53
|
xmlns: "http://www.w3.org/2000/svg",
|
|
54
54
|
fill: "none",
|
|
55
55
|
viewBox: "0 0 24 24",
|
|
56
|
-
children: [/* @__PURE__ */
|
|
56
|
+
children: [/* @__PURE__ */ m("circle", {
|
|
57
57
|
className: "opacity-25",
|
|
58
58
|
cx: "12",
|
|
59
59
|
cy: "12",
|
|
60
60
|
r: "10",
|
|
61
61
|
stroke: "currentColor",
|
|
62
62
|
strokeWidth: "4"
|
|
63
|
-
}), /* @__PURE__ */
|
|
63
|
+
}), /* @__PURE__ */ m("path", {
|
|
64
64
|
className: "opacity-75",
|
|
65
65
|
fill: "currentColor",
|
|
66
66
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"
|
|
67
67
|
})]
|
|
68
68
|
}), a]
|
|
69
69
|
}));
|
|
70
|
-
|
|
70
|
+
k.displayName = "Button";
|
|
71
71
|
//#endregion
|
|
72
72
|
//#region src/components/common/LoadingSpin/LoadingSpin.tsx
|
|
73
|
-
var
|
|
74
|
-
className: (0,
|
|
73
|
+
var A = ({ size: e = "md" }) => /* @__PURE__ */ h("svg", {
|
|
74
|
+
className: (0, O.default)("loading-spin", `loading-spin-${e}`),
|
|
75
75
|
xmlns: "http://www.w3.org/2000/svg",
|
|
76
76
|
fill: "none",
|
|
77
77
|
viewBox: "0 0 24 24",
|
|
78
|
-
children: [/* @__PURE__ */
|
|
78
|
+
children: [/* @__PURE__ */ m("circle", {
|
|
79
79
|
className: "opacity-25",
|
|
80
80
|
cx: "12",
|
|
81
81
|
cy: "12",
|
|
82
82
|
r: "10",
|
|
83
83
|
stroke: "currentColor",
|
|
84
84
|
strokeWidth: "4"
|
|
85
|
-
}), /* @__PURE__ */
|
|
85
|
+
}), /* @__PURE__ */ m("path", {
|
|
86
86
|
className: "opacity-75",
|
|
87
87
|
fill: "currentColor",
|
|
88
88
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"
|
|
89
89
|
})]
|
|
90
|
-
}),
|
|
90
|
+
}), j = a(({ icon: e, label: t, variant: n = "ghost", size: r = "md", loading: i = !1, disabled: a, className: o = "", ...s }, c) => /* @__PURE__ */ m("button", {
|
|
91
91
|
ref: c,
|
|
92
92
|
disabled: a || i,
|
|
93
93
|
"aria-label": t,
|
|
94
94
|
title: t,
|
|
95
|
-
className: (0,
|
|
95
|
+
className: (0, O.default)("icon-button", `icon-button-${n}`, `icon-button-${r}`, o),
|
|
96
96
|
...s,
|
|
97
|
-
children: i ? /* @__PURE__ */
|
|
97
|
+
children: i ? /* @__PURE__ */ m(A, { size: r }) : e
|
|
98
98
|
}));
|
|
99
|
-
|
|
99
|
+
j.displayName = "IconButton";
|
|
100
100
|
//#endregion
|
|
101
101
|
//#region src/components/common/Input/Input.tsx
|
|
102
|
-
var
|
|
103
|
-
let
|
|
104
|
-
return /* @__PURE__ */
|
|
102
|
+
var M = a(({ label: e, error: t, hint: n, leftIcon: r, rightIcon: i, className: a = "", id: o, field: s, form: c, ...l }, u) => {
|
|
103
|
+
let d = o ?? e?.toLowerCase().replace(/\s+/g, "-");
|
|
104
|
+
return /* @__PURE__ */ h("div", {
|
|
105
105
|
className: "w-full",
|
|
106
106
|
children: [
|
|
107
|
-
e && /* @__PURE__ */
|
|
108
|
-
htmlFor:
|
|
107
|
+
e && /* @__PURE__ */ m("label", {
|
|
108
|
+
htmlFor: d,
|
|
109
109
|
className: "input-label",
|
|
110
110
|
children: e
|
|
111
111
|
}),
|
|
112
|
-
/* @__PURE__ */
|
|
112
|
+
/* @__PURE__ */ h("div", {
|
|
113
113
|
className: "relative",
|
|
114
114
|
children: [
|
|
115
|
-
r && /* @__PURE__ */
|
|
115
|
+
r && /* @__PURE__ */ m("span", {
|
|
116
116
|
className: "left-icon",
|
|
117
117
|
children: r
|
|
118
118
|
}),
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
ref:
|
|
121
|
-
id:
|
|
122
|
-
className: (0,
|
|
119
|
+
/* @__PURE__ */ m("input", {
|
|
120
|
+
ref: u,
|
|
121
|
+
id: d,
|
|
122
|
+
className: (0, O.default)("input", t && "has-error", !!r && "with-left-icon", !!i && "with-right-icon", "w-full", a),
|
|
123
|
+
...l,
|
|
123
124
|
...s
|
|
124
125
|
}),
|
|
125
|
-
i && /* @__PURE__ */
|
|
126
|
+
i && /* @__PURE__ */ m("span", {
|
|
126
127
|
className: "right-icon",
|
|
127
128
|
children: i
|
|
128
129
|
})
|
|
129
130
|
]
|
|
130
131
|
}),
|
|
131
|
-
(t || n) && /* @__PURE__ */
|
|
132
|
-
className: (0,
|
|
132
|
+
(t || n) && /* @__PURE__ */ m("p", {
|
|
133
|
+
className: (0, O.default)("helper-text", t && "has-error"),
|
|
133
134
|
children: t ?? n
|
|
134
135
|
})
|
|
135
136
|
]
|
|
136
137
|
});
|
|
137
138
|
});
|
|
138
|
-
|
|
139
|
+
M.displayName = "Input";
|
|
139
140
|
//#endregion
|
|
140
141
|
//#region src/components/common/Select/Select.tsx
|
|
141
|
-
var
|
|
142
|
+
var N = a(({ label: e, error: t, hint: n, options: r, placeholder: i, className: a = "", id: o, ...s }, c) => {
|
|
142
143
|
let l = o ?? e?.toLowerCase().replace(/\s+/g, "-");
|
|
143
|
-
return /* @__PURE__ */
|
|
144
|
-
className: (0,
|
|
144
|
+
return /* @__PURE__ */ h("div", {
|
|
145
|
+
className: (0, O.default)("select-wrapper", "w-full"),
|
|
145
146
|
children: [
|
|
146
|
-
e && /* @__PURE__ */
|
|
147
|
+
e && /* @__PURE__ */ m("label", {
|
|
147
148
|
htmlFor: l,
|
|
148
149
|
className: "select-label",
|
|
149
150
|
children: e
|
|
150
151
|
}),
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ h("div", {
|
|
152
153
|
className: "relative",
|
|
153
|
-
children: [/* @__PURE__ */
|
|
154
|
+
children: [/* @__PURE__ */ h("select", {
|
|
154
155
|
ref: c,
|
|
155
156
|
id: l,
|
|
156
|
-
className: (0,
|
|
157
|
+
className: (0, O.default)("select", "w-full", t && "has-error", a),
|
|
157
158
|
...s,
|
|
158
|
-
children: [i && /* @__PURE__ */
|
|
159
|
+
children: [i && /* @__PURE__ */ m("option", {
|
|
159
160
|
value: "",
|
|
160
161
|
disabled: !0,
|
|
161
162
|
children: i
|
|
162
|
-
}), r.map((e) => /* @__PURE__ */
|
|
163
|
+
}), r.map((e) => /* @__PURE__ */ m("option", {
|
|
163
164
|
value: e.value,
|
|
164
165
|
disabled: e.disabled,
|
|
165
166
|
children: e.label
|
|
166
167
|
}, e.value))]
|
|
167
|
-
}), /* @__PURE__ */
|
|
168
|
+
}), /* @__PURE__ */ m("span", {
|
|
168
169
|
className: "select-chevron-icon",
|
|
169
|
-
children: /* @__PURE__ */
|
|
170
|
+
children: /* @__PURE__ */ m("svg", {
|
|
170
171
|
xmlns: "http://www.w3.org/2000/svg",
|
|
171
172
|
fill: "none",
|
|
172
173
|
viewBox: "0 0 24 24",
|
|
173
174
|
strokeWidth: 2,
|
|
174
175
|
stroke: "currentColor",
|
|
175
176
|
className: "w-4 h-4",
|
|
176
|
-
children: /* @__PURE__ */
|
|
177
|
+
children: /* @__PURE__ */ m("path", {
|
|
177
178
|
strokeLinecap: "round",
|
|
178
179
|
strokeLinejoin: "round",
|
|
179
180
|
d: "M19.5 8.25l-7.5 7.5-7.5-7.5"
|
|
@@ -181,71 +182,71 @@ var k = n(({ label: e, error: t, hint: n, options: r, placeholder: i, className:
|
|
|
181
182
|
})
|
|
182
183
|
})]
|
|
183
184
|
}),
|
|
184
|
-
(t || n) && /* @__PURE__ */
|
|
185
|
-
className: (0,
|
|
185
|
+
(t || n) && /* @__PURE__ */ m("p", {
|
|
186
|
+
className: (0, O.default)("select-helper", t && "has-error"),
|
|
186
187
|
children: t ?? n
|
|
187
188
|
})
|
|
188
189
|
]
|
|
189
190
|
});
|
|
190
191
|
});
|
|
191
|
-
|
|
192
|
+
N.displayName = "Select";
|
|
192
193
|
//#endregion
|
|
193
194
|
//#region src/components/common/Typography/Heading.tsx
|
|
194
|
-
var
|
|
195
|
-
className: (0,
|
|
195
|
+
var P = ({ as: e, level: t = 1, color: n = "default", className: r = "", children: i, ...a }) => /* @__PURE__ */ m(e ?? `h${t}`, {
|
|
196
|
+
className: (0, O.default)(`text-color-${n}`, `heading-size-${t}`, r),
|
|
196
197
|
...a,
|
|
197
198
|
children: i
|
|
198
|
-
}),
|
|
199
|
-
className: (0,
|
|
199
|
+
}), ee = ({ variant: e = "body", color: t = "default", as: n = "p", className: r = "", children: i, ...a }) => /* @__PURE__ */ m(n, {
|
|
200
|
+
className: (0, O.default)(`text-color-${t}`, `text-variant-${e}`, r),
|
|
200
201
|
...a,
|
|
201
202
|
children: i
|
|
202
203
|
});
|
|
203
204
|
//#endregion
|
|
204
205
|
//#region src/components/common/Badge/Badge.tsx
|
|
205
|
-
function
|
|
206
|
-
return /* @__PURE__ */
|
|
207
|
-
className: (0,
|
|
206
|
+
function F({ variant: e = "default", size: t = "md", dot: n = !1, className: r, children: i, ...a }) {
|
|
207
|
+
return /* @__PURE__ */ h("span", {
|
|
208
|
+
className: (0, O.default)("badge", `badge-${e}`, `badge-${t}`, r),
|
|
208
209
|
...a,
|
|
209
|
-
children: [n && /* @__PURE__ */
|
|
210
|
+
children: [n && /* @__PURE__ */ m("span", { className: (0, O.default)("badge-dot", `badge-dot-${e}`) }), i]
|
|
210
211
|
});
|
|
211
212
|
}
|
|
212
213
|
//#endregion
|
|
213
214
|
//#region src/components/common/Card/Card.tsx
|
|
214
|
-
var
|
|
215
|
+
var te = {
|
|
215
216
|
none: "",
|
|
216
217
|
sm: "p-4",
|
|
217
218
|
md: "p-6",
|
|
218
219
|
lg: "p-8"
|
|
219
220
|
};
|
|
220
|
-
function
|
|
221
|
-
return /* @__PURE__ */
|
|
221
|
+
function ne({ children: e, padding: t = "md", shadow: n = !0, border: r = !0, className: i = "", ...a }) {
|
|
222
|
+
return /* @__PURE__ */ m("div", {
|
|
222
223
|
className: [
|
|
223
224
|
"bg-white rounded-xl overflow-hidden",
|
|
224
225
|
r ? "border border-gray-200" : "",
|
|
225
226
|
n ? "shadow-sm" : "",
|
|
226
|
-
|
|
227
|
+
te[t],
|
|
227
228
|
i
|
|
228
229
|
].filter(Boolean).join(" "),
|
|
229
230
|
...a,
|
|
230
231
|
children: e
|
|
231
232
|
});
|
|
232
233
|
}
|
|
233
|
-
function
|
|
234
|
-
return /* @__PURE__ */
|
|
234
|
+
function re({ children: e, className: t = "", ...n }) {
|
|
235
|
+
return /* @__PURE__ */ m("div", {
|
|
235
236
|
className: ["px-6 py-4 border-b border-gray-100", t].filter(Boolean).join(" "),
|
|
236
237
|
...n,
|
|
237
238
|
children: e
|
|
238
239
|
});
|
|
239
240
|
}
|
|
240
|
-
function
|
|
241
|
-
return /* @__PURE__ */
|
|
241
|
+
function ie({ children: e, className: t = "", ...n }) {
|
|
242
|
+
return /* @__PURE__ */ m("div", {
|
|
242
243
|
className: ["p-6", t].filter(Boolean).join(" "),
|
|
243
244
|
...n,
|
|
244
245
|
children: e
|
|
245
246
|
});
|
|
246
247
|
}
|
|
247
|
-
function
|
|
248
|
-
return /* @__PURE__ */
|
|
248
|
+
function ae({ children: e, className: t = "", ...n }) {
|
|
249
|
+
return /* @__PURE__ */ m("div", {
|
|
249
250
|
className: ["px-6 py-4 border-t border-gray-100 bg-gray-50", t].filter(Boolean).join(" "),
|
|
250
251
|
...n,
|
|
251
252
|
children: e
|
|
@@ -253,13 +254,13 @@ function L({ children: e, className: t = "", ...n }) {
|
|
|
253
254
|
}
|
|
254
255
|
//#endregion
|
|
255
256
|
//#region src/components/common/Spinner/Spinner.tsx
|
|
256
|
-
function
|
|
257
|
-
return /* @__PURE__ */
|
|
257
|
+
function oe({ size: e = "md", color: t = "primary", label: n = "Loading…", className: r = "", ...i }) {
|
|
258
|
+
return /* @__PURE__ */ h("span", {
|
|
258
259
|
role: "status",
|
|
259
260
|
"aria-label": n,
|
|
260
|
-
className: (0,
|
|
261
|
+
className: (0, O.default)("spinner-wrapper", r),
|
|
261
262
|
...i,
|
|
262
|
-
children: [/* @__PURE__ */
|
|
263
|
+
children: [/* @__PURE__ */ m("span", { className: (0, O.default)("spinner", `spinner-${e}`, `spinner-${t}`) }), /* @__PURE__ */ m("span", {
|
|
263
264
|
className: "sr-only",
|
|
264
265
|
children: n
|
|
265
266
|
})]
|
|
@@ -267,65 +268,65 @@ function R({ size: e = "md", color: t = "primary", label: n = "Loading…", clas
|
|
|
267
268
|
}
|
|
268
269
|
//#endregion
|
|
269
270
|
//#region src/components/common/Alert/Alert.tsx
|
|
270
|
-
var
|
|
271
|
-
info: /* @__PURE__ */
|
|
271
|
+
var se = {
|
|
272
|
+
info: /* @__PURE__ */ m("path", {
|
|
272
273
|
strokeLinecap: "round",
|
|
273
274
|
strokeLinejoin: "round",
|
|
274
275
|
d: "M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"
|
|
275
276
|
}),
|
|
276
|
-
success: /* @__PURE__ */
|
|
277
|
+
success: /* @__PURE__ */ m("path", {
|
|
277
278
|
strokeLinecap: "round",
|
|
278
279
|
strokeLinejoin: "round",
|
|
279
280
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
280
281
|
}),
|
|
281
|
-
warning: /* @__PURE__ */
|
|
282
|
+
warning: /* @__PURE__ */ m("path", {
|
|
282
283
|
strokeLinecap: "round",
|
|
283
284
|
strokeLinejoin: "round",
|
|
284
285
|
d: "M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"
|
|
285
286
|
}),
|
|
286
|
-
danger: /* @__PURE__ */
|
|
287
|
+
danger: /* @__PURE__ */ m("path", {
|
|
287
288
|
strokeLinecap: "round",
|
|
288
289
|
strokeLinejoin: "round",
|
|
289
290
|
d: "M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"
|
|
290
291
|
})
|
|
291
292
|
};
|
|
292
|
-
function
|
|
293
|
-
return /* @__PURE__ */
|
|
293
|
+
function ce({ variant: e = "info", title: t, children: n, onClose: r, className: i = "", ...a }) {
|
|
294
|
+
return /* @__PURE__ */ h("div", {
|
|
294
295
|
role: "alert",
|
|
295
|
-
className: (0,
|
|
296
|
+
className: (0, O.default)("alert", `alert-${e}`, "w-full", i),
|
|
296
297
|
...a,
|
|
297
298
|
children: [
|
|
298
|
-
/* @__PURE__ */
|
|
299
|
+
/* @__PURE__ */ m("svg", {
|
|
299
300
|
xmlns: "http://www.w3.org/2000/svg",
|
|
300
301
|
fill: "none",
|
|
301
302
|
viewBox: "0 0 24 24",
|
|
302
303
|
strokeWidth: 1.5,
|
|
303
304
|
stroke: "currentColor",
|
|
304
|
-
className: (0,
|
|
305
|
-
children:
|
|
305
|
+
className: (0, O.default)("alert-icon", `alert-icon-${e}`),
|
|
306
|
+
children: se[e]
|
|
306
307
|
}),
|
|
307
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ h("div", {
|
|
308
309
|
className: "flex-1 min-w-0",
|
|
309
|
-
children: [t && /* @__PURE__ */
|
|
310
|
+
children: [t && /* @__PURE__ */ m("p", {
|
|
310
311
|
className: "alert-title",
|
|
311
312
|
children: t
|
|
312
|
-
}), /* @__PURE__ */
|
|
313
|
+
}), /* @__PURE__ */ m("div", {
|
|
313
314
|
className: "alert-text",
|
|
314
315
|
children: n
|
|
315
316
|
})]
|
|
316
317
|
}),
|
|
317
|
-
r && /* @__PURE__ */
|
|
318
|
+
r && /* @__PURE__ */ m("button", {
|
|
318
319
|
onClick: r,
|
|
319
320
|
className: "alert-close-btn",
|
|
320
321
|
"aria-label": "Close",
|
|
321
|
-
children: /* @__PURE__ */
|
|
322
|
+
children: /* @__PURE__ */ m("svg", {
|
|
322
323
|
xmlns: "http://www.w3.org/2000/svg",
|
|
323
324
|
fill: "none",
|
|
324
325
|
viewBox: "0 0 24 24",
|
|
325
326
|
strokeWidth: 1.5,
|
|
326
327
|
stroke: "currentColor",
|
|
327
328
|
className: "w-4 h-4",
|
|
328
|
-
children: /* @__PURE__ */
|
|
329
|
+
children: /* @__PURE__ */ m("path", {
|
|
329
330
|
strokeLinecap: "round",
|
|
330
331
|
strokeLinejoin: "round",
|
|
331
332
|
d: "M6 18L18 6M6 6l12 12"
|
|
@@ -337,57 +338,57 @@ function B({ variant: e = "info", title: t, children: n, onClose: r, className:
|
|
|
337
338
|
}
|
|
338
339
|
//#endregion
|
|
339
340
|
//#region src/components/common/Modal/Modal.tsx
|
|
340
|
-
var
|
|
341
|
+
var le = {
|
|
341
342
|
sm: "max-w-sm",
|
|
342
343
|
md: "max-w-md",
|
|
343
344
|
lg: "max-w-lg",
|
|
344
345
|
xl: "max-w-xl",
|
|
345
346
|
full: "max-w-full mx-4"
|
|
346
347
|
};
|
|
347
|
-
function
|
|
348
|
-
let
|
|
349
|
-
return
|
|
348
|
+
function ue({ open: e, onClose: t, title: n, children: r, footer: i, size: a = "md", closeOnBackdrop: o = !0 }) {
|
|
349
|
+
let s = d(null);
|
|
350
|
+
return c(() => {
|
|
350
351
|
if (!e) return;
|
|
351
352
|
let t = document.body.style.overflow;
|
|
352
353
|
return document.body.style.overflow = "hidden", () => {
|
|
353
354
|
document.body.style.overflow = t;
|
|
354
355
|
};
|
|
355
|
-
}, [e]),
|
|
356
|
+
}, [e]), c(() => {
|
|
356
357
|
if (!e) return;
|
|
357
358
|
let n = (e) => {
|
|
358
359
|
e.key === "Escape" && t();
|
|
359
360
|
};
|
|
360
361
|
return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
|
|
361
|
-
}, [e, t]), e ?
|
|
362
|
-
ref:
|
|
362
|
+
}, [e, t]), e ? g(/* @__PURE__ */ m("div", {
|
|
363
|
+
ref: s,
|
|
363
364
|
className: "fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm",
|
|
364
365
|
onClick: (e) => {
|
|
365
|
-
|
|
366
|
+
o && e.target === s.current && t();
|
|
366
367
|
},
|
|
367
|
-
children: /* @__PURE__ */
|
|
368
|
+
children: /* @__PURE__ */ h("div", {
|
|
368
369
|
role: "dialog",
|
|
369
370
|
"aria-modal": "true",
|
|
370
371
|
"aria-labelledby": n ? "modal-title" : void 0,
|
|
371
|
-
className: ["relative w-full bg-white rounded-xl shadow-xl flex flex-col max-h-[90vh]",
|
|
372
|
+
className: ["relative w-full bg-white rounded-xl shadow-xl flex flex-col max-h-[90vh]", le[a]].join(" "),
|
|
372
373
|
children: [
|
|
373
|
-
n && /* @__PURE__ */
|
|
374
|
+
n && /* @__PURE__ */ h("div", {
|
|
374
375
|
className: "flex items-center justify-between px-6 py-4 border-b border-gray-100 shrink-0",
|
|
375
|
-
children: [/* @__PURE__ */
|
|
376
|
+
children: [/* @__PURE__ */ m("h2", {
|
|
376
377
|
id: "modal-title",
|
|
377
378
|
className: "text-lg font-semibold text-gray-900",
|
|
378
379
|
children: n
|
|
379
|
-
}), /* @__PURE__ */
|
|
380
|
+
}), /* @__PURE__ */ m("button", {
|
|
380
381
|
onClick: t,
|
|
381
382
|
className: "text-gray-400 hover:text-gray-600 transition-colors",
|
|
382
383
|
"aria-label": "Close modal",
|
|
383
|
-
children: /* @__PURE__ */
|
|
384
|
+
children: /* @__PURE__ */ m("svg", {
|
|
384
385
|
xmlns: "http://www.w3.org/2000/svg",
|
|
385
386
|
fill: "none",
|
|
386
387
|
viewBox: "0 0 24 24",
|
|
387
388
|
strokeWidth: 1.5,
|
|
388
389
|
stroke: "currentColor",
|
|
389
390
|
className: "w-5 h-5",
|
|
390
|
-
children: /* @__PURE__ */
|
|
391
|
+
children: /* @__PURE__ */ m("path", {
|
|
391
392
|
strokeLinecap: "round",
|
|
392
393
|
strokeLinejoin: "round",
|
|
393
394
|
d: "M6 18L18 6M6 6l12 12"
|
|
@@ -395,13 +396,13 @@ function ee({ open: e, onClose: t, title: n, children: r, footer: a, size: o = "
|
|
|
395
396
|
})
|
|
396
397
|
})]
|
|
397
398
|
}),
|
|
398
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ m("div", {
|
|
399
400
|
className: "flex-1 overflow-y-auto px-6 py-4",
|
|
400
401
|
children: r
|
|
401
402
|
}),
|
|
402
|
-
|
|
403
|
+
i && /* @__PURE__ */ m("div", {
|
|
403
404
|
className: "px-6 py-4 border-t border-gray-100 shrink-0 bg-gray-50 rounded-b-xl",
|
|
404
|
-
children:
|
|
405
|
+
children: i
|
|
405
406
|
})
|
|
406
407
|
]
|
|
407
408
|
})
|
|
@@ -409,50 +410,50 @@ function ee({ open: e, onClose: t, title: n, children: r, footer: a, size: o = "
|
|
|
409
410
|
}
|
|
410
411
|
//#endregion
|
|
411
412
|
//#region src/components/common/Checkbox/Checkbox.tsx
|
|
412
|
-
var
|
|
413
|
+
var de = a(({ label: e, description: t, error: n, indeterminate: r, className: i = "", id: a, ...o }, s) => {
|
|
413
414
|
let c = a ?? e?.toLowerCase().replace(/\s+/g, "-");
|
|
414
|
-
return /* @__PURE__ */
|
|
415
|
-
className: (0,
|
|
416
|
-
children: [/* @__PURE__ */
|
|
415
|
+
return /* @__PURE__ */ h("div", {
|
|
416
|
+
className: (0, O.default)("checkbox-wrapper", i),
|
|
417
|
+
children: [/* @__PURE__ */ m("div", {
|
|
417
418
|
className: "checkbox-wrapper-inner",
|
|
418
|
-
children: /* @__PURE__ */
|
|
419
|
+
children: /* @__PURE__ */ m("input", {
|
|
419
420
|
ref: (e) => {
|
|
420
421
|
e && (e.indeterminate = r ?? !1), typeof s == "function" ? s(e) : s && (s.current = e);
|
|
421
422
|
},
|
|
422
423
|
id: c,
|
|
423
424
|
type: "checkbox",
|
|
424
|
-
className: (0,
|
|
425
|
+
className: (0, O.default)("checkbox", n && "has-error"),
|
|
425
426
|
...o
|
|
426
427
|
})
|
|
427
|
-
}), (e || t) && /* @__PURE__ */
|
|
428
|
-
e && /* @__PURE__ */
|
|
428
|
+
}), (e || t) && /* @__PURE__ */ h("div", { children: [
|
|
429
|
+
e && /* @__PURE__ */ m("label", {
|
|
429
430
|
htmlFor: c,
|
|
430
431
|
className: "checkbox-label",
|
|
431
432
|
children: e
|
|
432
433
|
}),
|
|
433
|
-
t && /* @__PURE__ */
|
|
434
|
+
t && /* @__PURE__ */ m("p", {
|
|
434
435
|
className: "checkbox-description",
|
|
435
436
|
children: t
|
|
436
437
|
}),
|
|
437
|
-
n && /* @__PURE__ */
|
|
438
|
+
n && /* @__PURE__ */ m("p", {
|
|
438
439
|
className: "checkbox-error",
|
|
439
440
|
children: n
|
|
440
441
|
})
|
|
441
442
|
] })]
|
|
442
443
|
});
|
|
443
444
|
});
|
|
444
|
-
|
|
445
|
+
de.displayName = "Checkbox";
|
|
445
446
|
//#endregion
|
|
446
447
|
//#region src/components/common/Toggle/Toggle.tsx
|
|
447
|
-
var
|
|
448
|
+
var fe = a(({ label: e, description: t, size: n = "md", className: r = "", id: i, ...a }, o) => {
|
|
448
449
|
let s = i ?? e?.toLowerCase().replace(/\s+/g, "-");
|
|
449
|
-
return /* @__PURE__ */
|
|
450
|
+
return /* @__PURE__ */ h("label", {
|
|
450
451
|
htmlFor: s,
|
|
451
|
-
className: (0,
|
|
452
|
-
children: [/* @__PURE__ */
|
|
453
|
-
className: (0,
|
|
452
|
+
className: (0, O.default)("toggle", a.disabled && "toggle-disabled", r),
|
|
453
|
+
children: [/* @__PURE__ */ h("div", {
|
|
454
|
+
className: (0, O.default)("toggle-wrapper", `toggle-wrapper-${n}`),
|
|
454
455
|
children: [
|
|
455
|
-
/* @__PURE__ */
|
|
456
|
+
/* @__PURE__ */ m("input", {
|
|
456
457
|
ref: o,
|
|
457
458
|
id: s,
|
|
458
459
|
type: "checkbox",
|
|
@@ -460,22 +461,22 @@ var U = n(({ label: e, description: t, size: n = "md", className: r = "", id: i,
|
|
|
460
461
|
className: "sr-only peer",
|
|
461
462
|
...a
|
|
462
463
|
}),
|
|
463
|
-
/* @__PURE__ */
|
|
464
|
-
/* @__PURE__ */
|
|
464
|
+
/* @__PURE__ */ m("div", { className: "toggle-track" }),
|
|
465
|
+
/* @__PURE__ */ m("div", { className: (0, O.default)("toggle-thumb", `toggle-thumb-${n}`) })
|
|
465
466
|
]
|
|
466
|
-
}), (e || t) && /* @__PURE__ */
|
|
467
|
+
}), (e || t) && /* @__PURE__ */ h("div", { children: [e && /* @__PURE__ */ m("span", {
|
|
467
468
|
className: "toggle-label",
|
|
468
469
|
children: e
|
|
469
|
-
}), t && /* @__PURE__ */
|
|
470
|
+
}), t && /* @__PURE__ */ m("span", {
|
|
470
471
|
className: "toggle-description",
|
|
471
472
|
children: t
|
|
472
473
|
})] })]
|
|
473
474
|
});
|
|
474
475
|
});
|
|
475
|
-
|
|
476
|
+
fe.displayName = "Toggle";
|
|
476
477
|
//#endregion
|
|
477
478
|
//#region src/components/common/Avatar/Avatar.tsx
|
|
478
|
-
var
|
|
479
|
+
var pe = [
|
|
479
480
|
"bg-red-500",
|
|
480
481
|
"bg-orange-500",
|
|
481
482
|
"bg-amber-500",
|
|
@@ -486,7 +487,7 @@ var W = [
|
|
|
486
487
|
"bg-violet-500",
|
|
487
488
|
"bg-pink-500"
|
|
488
489
|
];
|
|
489
|
-
function
|
|
490
|
+
function me({ src: e, alt: t, name: n, size: r = "md", className: i, ...a }) {
|
|
490
491
|
let o = [
|
|
491
492
|
"avatar",
|
|
492
493
|
`avatar-${r}`,
|
|
@@ -494,30 +495,30 @@ function te({ src: e, alt: t, name: n, size: r = "md", className: i, ...a }) {
|
|
|
494
495
|
], s = (e) => {
|
|
495
496
|
let t = 0;
|
|
496
497
|
for (let n = 0; n < e.length; n++) t += e.charCodeAt(n);
|
|
497
|
-
return
|
|
498
|
+
return pe[t % pe.length];
|
|
498
499
|
}, c = (e) => e.split(" ").slice(0, 2).map((e) => e[0]).join("").toUpperCase();
|
|
499
|
-
return e ? /* @__PURE__ */
|
|
500
|
-
className: (0,
|
|
500
|
+
return e ? /* @__PURE__ */ m("span", {
|
|
501
|
+
className: (0, O.default)(o),
|
|
501
502
|
...a,
|
|
502
|
-
children: /* @__PURE__ */
|
|
503
|
+
children: /* @__PURE__ */ m("img", {
|
|
503
504
|
src: e,
|
|
504
505
|
alt: t ?? n ?? "",
|
|
505
506
|
className: "w-full h-full object-cover"
|
|
506
507
|
})
|
|
507
|
-
}) : n ? /* @__PURE__ */
|
|
508
|
-
className: (0,
|
|
508
|
+
}) : n ? /* @__PURE__ */ m("span", {
|
|
509
|
+
className: (0, O.default)(o, s(n)),
|
|
509
510
|
"aria-label": n,
|
|
510
511
|
...a,
|
|
511
512
|
children: c(n)
|
|
512
|
-
}) : /* @__PURE__ */
|
|
513
|
-
className: (0,
|
|
513
|
+
}) : /* @__PURE__ */ m("span", {
|
|
514
|
+
className: (0, O.default)(o, "avatar-fallback"),
|
|
514
515
|
...a,
|
|
515
|
-
children: /* @__PURE__ */
|
|
516
|
+
children: /* @__PURE__ */ m("svg", {
|
|
516
517
|
xmlns: "http://www.w3.org/2000/svg",
|
|
517
518
|
fill: "currentColor",
|
|
518
519
|
viewBox: "0 0 24 24",
|
|
519
520
|
className: "w-3/5 h-3/5",
|
|
520
|
-
children: /* @__PURE__ */
|
|
521
|
+
children: /* @__PURE__ */ m("path", {
|
|
521
522
|
fillRule: "evenodd",
|
|
522
523
|
d: "M7.5 6a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM3.751 20.105a8.25 8.25 0 0116.498 0 .75.75 0 01-.437.695A18.683 18.683 0 0112 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 01-.437-.695z",
|
|
523
524
|
clipRule: "evenodd"
|
|
@@ -527,8 +528,8 @@ function te({ src: e, alt: t, name: n, size: r = "md", className: i, ...a }) {
|
|
|
527
528
|
}
|
|
528
529
|
//#endregion
|
|
529
530
|
//#region src/components/common/Stack/Stack.tsx
|
|
530
|
-
var
|
|
531
|
-
className: (0,
|
|
531
|
+
var he = ({ direction: e = "row", gap: t, alignItems: n = "start", justifyItems: r = "start", justifyContent: i = "normal", className: a, children: o }) => /* @__PURE__ */ m("div", {
|
|
532
|
+
className: (0, O.default)("stack", `stack-${e}`, t && `gap-${t}`, {
|
|
532
533
|
start: "items-start",
|
|
533
534
|
end: "items-end",
|
|
534
535
|
center: "items-center",
|
|
@@ -550,14 +551,14 @@ var ne = ({ direction: e = "row", gap: t, alignItems: n = "start", justifyItems:
|
|
|
550
551
|
stretch: "justify-stretch"
|
|
551
552
|
}[i], a),
|
|
552
553
|
children: o
|
|
553
|
-
}),
|
|
554
|
+
}), ge = {
|
|
554
555
|
1: "grid-cols-1",
|
|
555
556
|
2: "grid-cols-2",
|
|
556
557
|
3: "grid-cols-3",
|
|
557
558
|
4: "grid-cols-4",
|
|
558
559
|
6: "grid-cols-6",
|
|
559
560
|
12: "grid-cols-12"
|
|
560
|
-
},
|
|
561
|
+
}, _e = {
|
|
561
562
|
0: "gap-0",
|
|
562
563
|
1: "gap-1",
|
|
563
564
|
2: "gap-2",
|
|
@@ -569,7 +570,7 @@ var ne = ({ direction: e = "row", gap: t, alignItems: n = "start", justifyItems:
|
|
|
569
570
|
10: "gap-10",
|
|
570
571
|
12: "gap-12",
|
|
571
572
|
16: "gap-16"
|
|
572
|
-
},
|
|
573
|
+
}, ve = {
|
|
573
574
|
0: "gap-y-0",
|
|
574
575
|
1: "gap-y-1",
|
|
575
576
|
2: "gap-y-2",
|
|
@@ -581,7 +582,7 @@ var ne = ({ direction: e = "row", gap: t, alignItems: n = "start", justifyItems:
|
|
|
581
582
|
10: "gap-y-10",
|
|
582
583
|
12: "gap-y-12",
|
|
583
584
|
16: "gap-y-16"
|
|
584
|
-
},
|
|
585
|
+
}, ye = {
|
|
585
586
|
0: "gap-x-0",
|
|
586
587
|
1: "gap-x-1",
|
|
587
588
|
2: "gap-x-2",
|
|
@@ -593,7 +594,7 @@ var ne = ({ direction: e = "row", gap: t, alignItems: n = "start", justifyItems:
|
|
|
593
594
|
10: "gap-x-10",
|
|
594
595
|
12: "gap-x-12",
|
|
595
596
|
16: "gap-x-16"
|
|
596
|
-
},
|
|
597
|
+
}, be = {
|
|
597
598
|
1: "col-span-1",
|
|
598
599
|
2: "col-span-2",
|
|
599
600
|
3: "col-span-3",
|
|
@@ -606,7 +607,7 @@ var ne = ({ direction: e = "row", gap: t, alignItems: n = "start", justifyItems:
|
|
|
606
607
|
10: "col-span-10",
|
|
607
608
|
11: "col-span-11",
|
|
608
609
|
12: "col-span-12"
|
|
609
|
-
},
|
|
610
|
+
}, xe = {
|
|
610
611
|
1: "sm:col-span-1",
|
|
611
612
|
2: "sm:col-span-2",
|
|
612
613
|
3: "sm:col-span-3",
|
|
@@ -619,7 +620,7 @@ var ne = ({ direction: e = "row", gap: t, alignItems: n = "start", justifyItems:
|
|
|
619
620
|
10: "sm:col-span-10",
|
|
620
621
|
11: "sm:col-span-11",
|
|
621
622
|
12: "sm:col-span-12"
|
|
622
|
-
},
|
|
623
|
+
}, Se = {
|
|
623
624
|
1: "md:col-span-1",
|
|
624
625
|
2: "md:col-span-2",
|
|
625
626
|
3: "md:col-span-3",
|
|
@@ -632,7 +633,7 @@ var ne = ({ direction: e = "row", gap: t, alignItems: n = "start", justifyItems:
|
|
|
632
633
|
10: "md:col-span-10",
|
|
633
634
|
11: "md:col-span-11",
|
|
634
635
|
12: "md:col-span-12"
|
|
635
|
-
},
|
|
636
|
+
}, Ce = {
|
|
636
637
|
1: "lg:col-span-1",
|
|
637
638
|
2: "lg:col-span-2",
|
|
638
639
|
3: "lg:col-span-3",
|
|
@@ -645,7 +646,7 @@ var ne = ({ direction: e = "row", gap: t, alignItems: n = "start", justifyItems:
|
|
|
645
646
|
10: "lg:col-span-10",
|
|
646
647
|
11: "lg:col-span-11",
|
|
647
648
|
12: "lg:col-span-12"
|
|
648
|
-
},
|
|
649
|
+
}, we = {
|
|
649
650
|
1: "xl:col-span-1",
|
|
650
651
|
2: "xl:col-span-2",
|
|
651
652
|
3: "xl:col-span-3",
|
|
@@ -658,7 +659,7 @@ var ne = ({ direction: e = "row", gap: t, alignItems: n = "start", justifyItems:
|
|
|
658
659
|
10: "xl:col-span-10",
|
|
659
660
|
11: "xl:col-span-11",
|
|
660
661
|
12: "xl:col-span-12"
|
|
661
|
-
},
|
|
662
|
+
}, Te = {
|
|
662
663
|
1: "col-start-2",
|
|
663
664
|
2: "col-start-3",
|
|
664
665
|
3: "col-start-4",
|
|
@@ -670,7 +671,7 @@ var ne = ({ direction: e = "row", gap: t, alignItems: n = "start", justifyItems:
|
|
|
670
671
|
9: "col-start-10",
|
|
671
672
|
10: "col-start-11",
|
|
672
673
|
11: "col-start-12"
|
|
673
|
-
},
|
|
674
|
+
}, Ee = {
|
|
674
675
|
1: "sm:col-start-2",
|
|
675
676
|
2: "sm:col-start-3",
|
|
676
677
|
3: "sm:col-start-4",
|
|
@@ -682,7 +683,7 @@ var ne = ({ direction: e = "row", gap: t, alignItems: n = "start", justifyItems:
|
|
|
682
683
|
9: "sm:col-start-10",
|
|
683
684
|
10: "sm:col-start-11",
|
|
684
685
|
11: "sm:col-start-12"
|
|
685
|
-
},
|
|
686
|
+
}, De = {
|
|
686
687
|
1: "md:col-start-2",
|
|
687
688
|
2: "md:col-start-3",
|
|
688
689
|
3: "md:col-start-4",
|
|
@@ -694,7 +695,7 @@ var ne = ({ direction: e = "row", gap: t, alignItems: n = "start", justifyItems:
|
|
|
694
695
|
9: "md:col-start-10",
|
|
695
696
|
10: "md:col-start-11",
|
|
696
697
|
11: "md:col-start-12"
|
|
697
|
-
},
|
|
698
|
+
}, Oe = {
|
|
698
699
|
1: "lg:col-start-2",
|
|
699
700
|
2: "lg:col-start-3",
|
|
700
701
|
3: "lg:col-start-4",
|
|
@@ -706,7 +707,7 @@ var ne = ({ direction: e = "row", gap: t, alignItems: n = "start", justifyItems:
|
|
|
706
707
|
9: "lg:col-start-10",
|
|
707
708
|
10: "lg:col-start-11",
|
|
708
709
|
11: "lg:col-start-12"
|
|
709
|
-
},
|
|
710
|
+
}, ke = {
|
|
710
711
|
1: "xl:col-start-2",
|
|
711
712
|
2: "xl:col-start-3",
|
|
712
713
|
3: "xl:col-start-4",
|
|
@@ -718,33 +719,33 @@ var ne = ({ direction: e = "row", gap: t, alignItems: n = "start", justifyItems:
|
|
|
718
719
|
9: "xl:col-start-10",
|
|
719
720
|
10: "xl:col-start-11",
|
|
720
721
|
11: "xl:col-start-12"
|
|
721
|
-
},
|
|
722
|
-
className: (0,
|
|
722
|
+
}, Ae = ({ children: e, cols: t = 12, gap: n, rowGap: r, colGap: i, as: a = "div", className: o }) => /* @__PURE__ */ m(a, {
|
|
723
|
+
className: (0, O.default)("grid", "w-full", ge[t], n !== void 0 && _e[n], r !== void 0 && ve[r], i !== void 0 && ye[i], o),
|
|
723
724
|
children: e
|
|
724
725
|
});
|
|
725
|
-
|
|
726
|
-
var
|
|
727
|
-
className: (0,
|
|
728
|
-
...
|
|
726
|
+
Ae.displayName = "Grid";
|
|
727
|
+
var je = ({ children: e, span: t, sm: n, md: r, lg: i, xl: a, offset: o, smOffset: s, mdOffset: c, lgOffset: l, xlOffset: u, className: d, ...f }) => /* @__PURE__ */ m("div", {
|
|
728
|
+
className: (0, O.default)(t && be[t], n && xe[n], r && Se[r], i && Ce[i], a && we[a], o && Te[o], s && Ee[s], c && De[c], l && Oe[l], u && ke[u], d),
|
|
729
|
+
...f,
|
|
729
730
|
children: e
|
|
730
731
|
});
|
|
731
|
-
|
|
732
|
+
je.displayName = "Col";
|
|
732
733
|
//#endregion
|
|
733
734
|
//#region src/components/common/QuantityInput/QuantityInput.tsx
|
|
734
|
-
var
|
|
735
|
-
let _ =
|
|
736
|
-
|
|
735
|
+
var Me = ({ value: e, onChange: t, min: n = 1, max: r = 999, step: i = 1, disabled: a = !1, label: o, error: s, hint: u, id: p, className: g }) => {
|
|
736
|
+
let _ = l(), v = p ?? _, y = d(null), [b, x] = f(String(e));
|
|
737
|
+
c(() => {
|
|
737
738
|
document.activeElement !== y.current && x(String(e));
|
|
738
739
|
}, [e]);
|
|
739
740
|
let S = (e) => Math.min(r, Math.max(n, e)), C = (n) => {
|
|
740
741
|
let r = parseInt(n, 10), i = isNaN(r) ? e : S(r);
|
|
741
742
|
x(String(i)), i !== e && t(i);
|
|
742
|
-
},
|
|
743
|
+
}, w = (e) => {
|
|
743
744
|
let n = e.target.value.replace(/[^0-9]/g, "");
|
|
744
745
|
x(n);
|
|
745
746
|
let r = parseInt(n, 10);
|
|
746
747
|
isNaN(r) || t(S(r));
|
|
747
|
-
},
|
|
748
|
+
}, T = () => C(b), E = (e) => {
|
|
748
749
|
if (e.key === "Enter") {
|
|
749
750
|
C(b), y.current?.blur();
|
|
750
751
|
return;
|
|
@@ -759,155 +760,155 @@ var q = ({ value: e, onChange: t, min: n = 1, max: r = 999, step: o = 1, disable
|
|
|
759
760
|
"Home",
|
|
760
761
|
"End"
|
|
761
762
|
].includes(e.key) && !/^[0-9]$/.test(e.key) && !e.metaKey && !e.ctrlKey && e.preventDefault();
|
|
762
|
-
},
|
|
763
|
-
return /* @__PURE__ */
|
|
764
|
-
className: (0,
|
|
763
|
+
}, D = () => t(S(e - i)), k = () => t(S(e + i)), A = e - i >= n, j = e + i <= r;
|
|
764
|
+
return /* @__PURE__ */ h("div", {
|
|
765
|
+
className: (0, O.default)("quantity-input-wrapper", g),
|
|
765
766
|
children: [
|
|
766
|
-
|
|
767
|
+
o && /* @__PURE__ */ m("label", {
|
|
767
768
|
htmlFor: v,
|
|
768
769
|
className: "input-label",
|
|
769
|
-
children:
|
|
770
|
+
children: o
|
|
770
771
|
}),
|
|
771
|
-
/* @__PURE__ */
|
|
772
|
-
className: (0,
|
|
772
|
+
/* @__PURE__ */ h("div", {
|
|
773
|
+
className: (0, O.default)("quantity-input", s && "has-error", a && "is-disabled"),
|
|
773
774
|
children: [
|
|
774
|
-
/* @__PURE__ */
|
|
775
|
+
/* @__PURE__ */ m("button", {
|
|
775
776
|
type: "button",
|
|
776
777
|
className: "quantity-btn",
|
|
777
|
-
onClick:
|
|
778
|
-
disabled:
|
|
778
|
+
onClick: D,
|
|
779
|
+
disabled: a || !A,
|
|
779
780
|
"aria-label": "Snížit množství",
|
|
780
781
|
tabIndex: -1,
|
|
781
|
-
children: /* @__PURE__ */
|
|
782
|
+
children: /* @__PURE__ */ m(Ne, {})
|
|
782
783
|
}),
|
|
783
|
-
/* @__PURE__ */
|
|
784
|
+
/* @__PURE__ */ m("input", {
|
|
784
785
|
ref: y,
|
|
785
786
|
id: v,
|
|
786
787
|
type: "text",
|
|
787
788
|
inputMode: "numeric",
|
|
788
789
|
className: "quantity-field",
|
|
789
790
|
value: b,
|
|
790
|
-
onChange:
|
|
791
|
-
onBlur:
|
|
792
|
-
onKeyDown:
|
|
793
|
-
disabled:
|
|
794
|
-
"aria-label":
|
|
791
|
+
onChange: w,
|
|
792
|
+
onBlur: T,
|
|
793
|
+
onKeyDown: E,
|
|
794
|
+
disabled: a,
|
|
795
|
+
"aria-label": o ?? "Množství",
|
|
795
796
|
"aria-valuemin": n,
|
|
796
797
|
"aria-valuemax": r,
|
|
797
798
|
"aria-valuenow": e
|
|
798
799
|
}),
|
|
799
|
-
/* @__PURE__ */
|
|
800
|
+
/* @__PURE__ */ m("button", {
|
|
800
801
|
type: "button",
|
|
801
802
|
className: "quantity-btn",
|
|
802
803
|
onClick: k,
|
|
803
|
-
disabled:
|
|
804
|
+
disabled: a || !j,
|
|
804
805
|
"aria-label": "Zvýšit množství",
|
|
805
806
|
tabIndex: -1,
|
|
806
|
-
children: /* @__PURE__ */
|
|
807
|
+
children: /* @__PURE__ */ m(Pe, {})
|
|
807
808
|
})
|
|
808
809
|
]
|
|
809
810
|
}),
|
|
810
|
-
(
|
|
811
|
-
className: (0,
|
|
812
|
-
children:
|
|
811
|
+
(s || u) && /* @__PURE__ */ m("p", {
|
|
812
|
+
className: (0, O.default)("helper-text", s && "has-error"),
|
|
813
|
+
children: s ?? u
|
|
813
814
|
})
|
|
814
815
|
]
|
|
815
816
|
});
|
|
816
817
|
};
|
|
817
|
-
|
|
818
|
-
var
|
|
818
|
+
Me.displayName = "QuantityInput";
|
|
819
|
+
var Ne = () => /* @__PURE__ */ m("svg", {
|
|
819
820
|
width: "12",
|
|
820
821
|
height: "2",
|
|
821
822
|
viewBox: "0 0 12 2",
|
|
822
823
|
fill: "none",
|
|
823
824
|
"aria-hidden": "true",
|
|
824
|
-
children: /* @__PURE__ */
|
|
825
|
+
children: /* @__PURE__ */ m("path", {
|
|
825
826
|
d: "M1 1H11",
|
|
826
827
|
stroke: "currentColor",
|
|
827
828
|
strokeWidth: "1.5",
|
|
828
829
|
strokeLinecap: "round"
|
|
829
830
|
})
|
|
830
|
-
}),
|
|
831
|
+
}), Pe = () => /* @__PURE__ */ m("svg", {
|
|
831
832
|
width: "12",
|
|
832
833
|
height: "12",
|
|
833
834
|
viewBox: "0 0 12 12",
|
|
834
835
|
fill: "none",
|
|
835
836
|
"aria-hidden": "true",
|
|
836
|
-
children: /* @__PURE__ */
|
|
837
|
+
children: /* @__PURE__ */ m("path", {
|
|
837
838
|
d: "M6 1V11M1 6H11",
|
|
838
839
|
stroke: "currentColor",
|
|
839
840
|
strokeWidth: "1.5",
|
|
840
841
|
strokeLinecap: "round"
|
|
841
842
|
})
|
|
842
|
-
}),
|
|
843
|
-
if (t <= n * 2 + 5) return
|
|
843
|
+
}), Fe = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n), Ie = (e, t, n) => {
|
|
844
|
+
if (t <= n * 2 + 5) return Fe(1, t);
|
|
844
845
|
let r = Math.max(e - n, 1), i = Math.min(e + n, t), a = r > 2, o = i < t - 1;
|
|
845
846
|
return !a && o ? [
|
|
846
|
-
...
|
|
847
|
+
...Fe(1, 3 + n * 2),
|
|
847
848
|
"…",
|
|
848
849
|
t
|
|
849
850
|
] : a && !o ? [
|
|
850
851
|
1,
|
|
851
852
|
"…",
|
|
852
|
-
...
|
|
853
|
+
...Fe(t - (2 + n * 2), t)
|
|
853
854
|
] : [
|
|
854
855
|
1,
|
|
855
856
|
"…",
|
|
856
|
-
...
|
|
857
|
+
...Fe(r, i),
|
|
857
858
|
"…",
|
|
858
859
|
t
|
|
859
860
|
];
|
|
860
|
-
},
|
|
861
|
+
}, Le = ({ active: e, disabled: t, children: n, ...r }) => /* @__PURE__ */ m("button", {
|
|
861
862
|
disabled: t,
|
|
862
|
-
className: (0,
|
|
863
|
+
className: (0, O.default)("pagination-button", `pagination-button-${e ? "active" : "inactive"}`),
|
|
863
864
|
...r,
|
|
864
865
|
children: n
|
|
865
|
-
}),
|
|
866
|
-
let i =
|
|
867
|
-
return /* @__PURE__ */
|
|
866
|
+
}), Re = ({ page: e, totalPages: t, onPageChange: n, siblingsCount: r = 1 }) => {
|
|
867
|
+
let i = Ie(e, t, r);
|
|
868
|
+
return /* @__PURE__ */ h("nav", {
|
|
868
869
|
"aria-label": "Pagination",
|
|
869
870
|
className: "pagination",
|
|
870
871
|
children: [
|
|
871
|
-
/* @__PURE__ */
|
|
872
|
+
/* @__PURE__ */ m(Le, {
|
|
872
873
|
disabled: e <= 1,
|
|
873
874
|
onClick: () => n(e - 1),
|
|
874
875
|
"aria-label": "Previous page",
|
|
875
|
-
children: /* @__PURE__ */
|
|
876
|
+
children: /* @__PURE__ */ m("svg", {
|
|
876
877
|
xmlns: "http://www.w3.org/2000/svg",
|
|
877
878
|
fill: "none",
|
|
878
879
|
viewBox: "0 0 24 24",
|
|
879
880
|
strokeWidth: 2,
|
|
880
881
|
stroke: "currentColor",
|
|
881
882
|
className: "w-4 h-4",
|
|
882
|
-
children: /* @__PURE__ */
|
|
883
|
+
children: /* @__PURE__ */ m("path", {
|
|
883
884
|
strokeLinecap: "round",
|
|
884
885
|
strokeLinejoin: "round",
|
|
885
886
|
d: "M15.75 19.5L8.25 12l7.5-7.5"
|
|
886
887
|
})
|
|
887
888
|
})
|
|
888
889
|
}),
|
|
889
|
-
i.map((t, r) => t === "…" ? /* @__PURE__ */
|
|
890
|
+
i.map((t, r) => t === "…" ? /* @__PURE__ */ m("span", {
|
|
890
891
|
className: "pagination-dots",
|
|
891
892
|
children: "…"
|
|
892
|
-
}, `dots-${r}`) : /* @__PURE__ */
|
|
893
|
+
}, `dots-${r}`) : /* @__PURE__ */ m(Le, {
|
|
893
894
|
active: t === e,
|
|
894
895
|
onClick: () => n(t),
|
|
895
896
|
"aria-label": `Page ${t}`,
|
|
896
897
|
"aria-current": t === e ? "page" : void 0,
|
|
897
898
|
children: t
|
|
898
899
|
}, t)),
|
|
899
|
-
/* @__PURE__ */
|
|
900
|
+
/* @__PURE__ */ m(Le, {
|
|
900
901
|
disabled: e >= t,
|
|
901
902
|
onClick: () => n(e + 1),
|
|
902
903
|
"aria-label": "Next page",
|
|
903
|
-
children: /* @__PURE__ */
|
|
904
|
+
children: /* @__PURE__ */ m("svg", {
|
|
904
905
|
xmlns: "http://www.w3.org/2000/svg",
|
|
905
906
|
fill: "none",
|
|
906
907
|
viewBox: "0 0 24 24",
|
|
907
908
|
strokeWidth: 2,
|
|
908
909
|
stroke: "currentColor",
|
|
909
910
|
className: "w-4 h-4",
|
|
910
|
-
children: /* @__PURE__ */
|
|
911
|
+
children: /* @__PURE__ */ m("path", {
|
|
911
912
|
strokeLinecap: "round",
|
|
912
913
|
strokeLinejoin: "round",
|
|
913
914
|
d: "M8.25 4.5l7.5 7.5-7.5 7.5"
|
|
@@ -916,23 +917,23 @@ var _e = () => /* @__PURE__ */ u("svg", {
|
|
|
916
917
|
})
|
|
917
918
|
]
|
|
918
919
|
});
|
|
919
|
-
},
|
|
920
|
+
}, ze = ({ direction: e, disabled: t, onClick: n }) => /* @__PURE__ */ m("button", {
|
|
920
921
|
onClick: n,
|
|
921
922
|
disabled: t,
|
|
922
|
-
className: (0,
|
|
923
|
+
className: (0, O.default)("carousel-btn", e === "prev" ? "carousel-btn-prev" : "carousel-btn-next"),
|
|
923
924
|
"aria-label": e === "prev" ? "Previous slide" : "Next slide",
|
|
924
|
-
children: /* @__PURE__ */
|
|
925
|
+
children: /* @__PURE__ */ m("svg", {
|
|
925
926
|
xmlns: "http://www.w3.org/2000/svg",
|
|
926
927
|
fill: "none",
|
|
927
928
|
viewBox: "0 0 24 24",
|
|
928
929
|
strokeWidth: 2,
|
|
929
930
|
stroke: "currentColor",
|
|
930
931
|
className: "w-5 h-5",
|
|
931
|
-
children: e === "prev" ? /* @__PURE__ */
|
|
932
|
+
children: e === "prev" ? /* @__PURE__ */ m("path", {
|
|
932
933
|
strokeLinecap: "round",
|
|
933
934
|
strokeLinejoin: "round",
|
|
934
935
|
d: "M15.75 19.5L8.25 12l7.5-7.5"
|
|
935
|
-
}) : /* @__PURE__ */
|
|
936
|
+
}) : /* @__PURE__ */ m("path", {
|
|
936
937
|
strokeLinecap: "round",
|
|
937
938
|
strokeLinejoin: "round",
|
|
938
939
|
d: "M8.25 4.5l7.5 7.5-7.5 7.5"
|
|
@@ -941,11 +942,11 @@ var _e = () => /* @__PURE__ */ u("svg", {
|
|
|
941
942
|
});
|
|
942
943
|
//#endregion
|
|
943
944
|
//#region src/components/common/Carousel/Carousel.tsx
|
|
944
|
-
function
|
|
945
|
-
return /* @__PURE__ */
|
|
945
|
+
function Be({ src: e, alt: t, children: n, className: r, style: i }) {
|
|
946
|
+
return /* @__PURE__ */ m("div", {
|
|
946
947
|
role: t ? "img" : void 0,
|
|
947
948
|
"aria-label": t,
|
|
948
|
-
className: (0,
|
|
949
|
+
className: (0, O.default)("carousel-cover", r),
|
|
949
950
|
style: {
|
|
950
951
|
backgroundImage: `url(${e})`,
|
|
951
952
|
...i
|
|
@@ -953,125 +954,1426 @@ function be({ src: e, alt: t, children: n, className: r, style: i }) {
|
|
|
953
954
|
children: n
|
|
954
955
|
});
|
|
955
956
|
}
|
|
956
|
-
function
|
|
957
|
-
let b = e.toArray(
|
|
957
|
+
function Ve({ children: t, slidesPerView: r = 1, gap: i = 16, height: a, arrows: s = !0, dots: l = !0, autoPlay: p = !1, autoPlayInterval: g = 4e3, loop: _ = !1, className: v, ...y }) {
|
|
958
|
+
let b = e.toArray(t), x = b.length, S = _ ? x - 1 : Math.max(0, x - r), C = x > r, [w, T] = f(0), [E, D] = f(!1), k = d(null), A = d(null), j = d(null), M = d(null), N = o((e, t = !0) => {
|
|
958
959
|
let n = k.current;
|
|
959
960
|
if (!n) return;
|
|
960
961
|
let r = n.children[e];
|
|
961
962
|
r && (t || (n.style.transition = "none", n.getBoundingClientRect()), n.style.transform = `translateX(${-r.offsetLeft}px)`, t || (n.getBoundingClientRect(), n.style.transition = ""));
|
|
962
|
-
}, []), P =
|
|
963
|
-
|
|
963
|
+
}, []), P = o((e) => {
|
|
964
|
+
T(_ ? (e % x + x) % x : Math.max(0, Math.min(e, S)));
|
|
964
965
|
}, [
|
|
965
966
|
x,
|
|
966
967
|
_,
|
|
967
968
|
S
|
|
968
|
-
]),
|
|
969
|
-
|
|
970
|
-
N(
|
|
971
|
-
}, [
|
|
969
|
+
]), ee = o(() => P(w - 1), [w, P]), F = o(() => P(w + 1), [w, P]);
|
|
970
|
+
u(() => {
|
|
971
|
+
N(w);
|
|
972
|
+
}, [w, N]), c(() => {
|
|
972
973
|
let e = A.current;
|
|
973
974
|
if (!e) return;
|
|
974
|
-
let t = new ResizeObserver(() => N(
|
|
975
|
+
let t = new ResizeObserver(() => N(w, !1));
|
|
975
976
|
return t.observe(e), () => t.disconnect();
|
|
976
|
-
}, [
|
|
977
|
-
if (!(!
|
|
977
|
+
}, [w, N]), c(() => {
|
|
978
|
+
if (!(!p || E || !C)) return j.current = setInterval(F, g), () => {
|
|
978
979
|
j.current && clearInterval(j.current);
|
|
979
980
|
};
|
|
980
981
|
}, [
|
|
981
|
-
|
|
982
|
-
|
|
982
|
+
p,
|
|
983
|
+
E,
|
|
983
984
|
g,
|
|
984
|
-
|
|
985
|
+
F,
|
|
985
986
|
C
|
|
986
987
|
]);
|
|
987
|
-
let
|
|
988
|
+
let te = (e) => {
|
|
988
989
|
M.current = e.touches[0].clientX;
|
|
989
|
-
},
|
|
990
|
+
}, ne = (e) => {
|
|
990
991
|
if (M.current === null) return;
|
|
991
992
|
let t = e.changedTouches[0].clientX - M.current;
|
|
992
|
-
Math.abs(t) > 50 && (t < 0 ?
|
|
993
|
+
Math.abs(t) > 50 && (t < 0 ? F() : ee()), M.current = null;
|
|
993
994
|
};
|
|
994
995
|
if (x === 0) return null;
|
|
995
|
-
let
|
|
996
|
-
return /* @__PURE__ */
|
|
997
|
-
className: (0,
|
|
998
|
-
onMouseEnter: () =>
|
|
999
|
-
onMouseLeave: () =>
|
|
1000
|
-
onTouchStart:
|
|
1001
|
-
onTouchEnd:
|
|
996
|
+
let re = _ || w > 0, ie = _ || w < S, ae = `calc((100% - ${i}px * ${r - 1}) / ${r})`;
|
|
997
|
+
return /* @__PURE__ */ h("div", {
|
|
998
|
+
className: (0, O.default)("carousel-wrapper", v),
|
|
999
|
+
onMouseEnter: () => D(!0),
|
|
1000
|
+
onMouseLeave: () => D(!1),
|
|
1001
|
+
onTouchStart: te,
|
|
1002
|
+
onTouchEnd: ne,
|
|
1002
1003
|
...y,
|
|
1003
1004
|
children: [
|
|
1004
|
-
/* @__PURE__ */
|
|
1005
|
+
/* @__PURE__ */ m("div", {
|
|
1005
1006
|
ref: A,
|
|
1006
1007
|
className: "carousel-viewport",
|
|
1007
|
-
style:
|
|
1008
|
-
children: /* @__PURE__ */
|
|
1008
|
+
style: a ? { height: a } : void 0,
|
|
1009
|
+
children: /* @__PURE__ */ m("div", {
|
|
1009
1010
|
ref: k,
|
|
1010
1011
|
className: "carousel-track",
|
|
1011
|
-
style: { gap: `${
|
|
1012
|
-
children: b.map((e, t) => /* @__PURE__ */
|
|
1012
|
+
style: { gap: `${i}px` },
|
|
1013
|
+
children: b.map((e, t) => /* @__PURE__ */ m("div", {
|
|
1013
1014
|
className: "carousel-slide",
|
|
1014
1015
|
style: {
|
|
1015
|
-
minWidth:
|
|
1016
|
-
maxWidth:
|
|
1017
|
-
...
|
|
1016
|
+
minWidth: ae,
|
|
1017
|
+
maxWidth: ae,
|
|
1018
|
+
...a && { height: a }
|
|
1018
1019
|
},
|
|
1019
|
-
"aria-hidden": t <
|
|
1020
|
+
"aria-hidden": t < w || t >= w + r,
|
|
1020
1021
|
children: e
|
|
1021
1022
|
}, t))
|
|
1022
1023
|
})
|
|
1023
1024
|
}),
|
|
1024
|
-
|
|
1025
|
+
s && C && /* @__PURE__ */ h(n, { children: [/* @__PURE__ */ m(ze, {
|
|
1025
1026
|
direction: "prev",
|
|
1026
|
-
disabled: !
|
|
1027
|
-
onClick:
|
|
1028
|
-
}), /* @__PURE__ */
|
|
1027
|
+
disabled: !re,
|
|
1028
|
+
onClick: ee
|
|
1029
|
+
}), /* @__PURE__ */ m(ze, {
|
|
1029
1030
|
direction: "next",
|
|
1030
|
-
disabled: !
|
|
1031
|
-
onClick:
|
|
1031
|
+
disabled: !ie,
|
|
1032
|
+
onClick: F
|
|
1032
1033
|
})] }),
|
|
1033
|
-
|
|
1034
|
+
l && C && /* @__PURE__ */ m("div", {
|
|
1034
1035
|
className: "carousel-dots",
|
|
1035
|
-
children: Array.from({ length: S + 1 }).map((e, t) => /* @__PURE__ */
|
|
1036
|
+
children: Array.from({ length: S + 1 }).map((e, t) => /* @__PURE__ */ m("button", {
|
|
1036
1037
|
onClick: () => P(t),
|
|
1037
|
-
className: (0,
|
|
1038
|
+
className: (0, O.default)("carousel-dot", t === w && "carousel-dot-active"),
|
|
1038
1039
|
"aria-label": `Go to slide ${t + 1}`,
|
|
1039
|
-
"aria-current": t ===
|
|
1040
|
+
"aria-current": t === w ? "true" : void 0
|
|
1040
1041
|
}, t))
|
|
1041
1042
|
})
|
|
1042
1043
|
]
|
|
1043
1044
|
});
|
|
1044
1045
|
}
|
|
1045
1046
|
//#endregion
|
|
1047
|
+
//#region node_modules/deepmerge/dist/es.js
|
|
1048
|
+
var He = function(e) {
|
|
1049
|
+
return Ue(e) && !We(e);
|
|
1050
|
+
};
|
|
1051
|
+
function Ue(e) {
|
|
1052
|
+
return !!e && typeof e == "object";
|
|
1053
|
+
}
|
|
1054
|
+
function We(e) {
|
|
1055
|
+
var t = Object.prototype.toString.call(e);
|
|
1056
|
+
return t === "[object RegExp]" || t === "[object Date]" || Ke(e);
|
|
1057
|
+
}
|
|
1058
|
+
var Ge = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.element") : 60103;
|
|
1059
|
+
function Ke(e) {
|
|
1060
|
+
return e.$$typeof === Ge;
|
|
1061
|
+
}
|
|
1062
|
+
function qe(e) {
|
|
1063
|
+
return Array.isArray(e) ? [] : {};
|
|
1064
|
+
}
|
|
1065
|
+
function Je(e, t) {
|
|
1066
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ze(qe(e), e, t) : e;
|
|
1067
|
+
}
|
|
1068
|
+
function Ye(e, t, n) {
|
|
1069
|
+
return e.concat(t).map(function(e) {
|
|
1070
|
+
return Je(e, n);
|
|
1071
|
+
});
|
|
1072
|
+
}
|
|
1073
|
+
function Xe(e, t, n) {
|
|
1074
|
+
var r = {};
|
|
1075
|
+
return n.isMergeableObject(e) && Object.keys(e).forEach(function(t) {
|
|
1076
|
+
r[t] = Je(e[t], n);
|
|
1077
|
+
}), Object.keys(t).forEach(function(i) {
|
|
1078
|
+
!n.isMergeableObject(t[i]) || !e[i] ? r[i] = Je(t[i], n) : r[i] = Ze(e[i], t[i], n);
|
|
1079
|
+
}), r;
|
|
1080
|
+
}
|
|
1081
|
+
function Ze(e, t, n) {
|
|
1082
|
+
n ||= {}, n.arrayMerge = n.arrayMerge || Ye, n.isMergeableObject = n.isMergeableObject || He;
|
|
1083
|
+
var r = Array.isArray(t);
|
|
1084
|
+
return r === Array.isArray(e) ? r ? n.arrayMerge(e, t, n) : Xe(e, t, n) : Je(t, n);
|
|
1085
|
+
}
|
|
1086
|
+
Ze.all = function(e, t) {
|
|
1087
|
+
if (!Array.isArray(e)) throw Error("first argument should be an array");
|
|
1088
|
+
return e.reduce(function(e, n) {
|
|
1089
|
+
return Ze(e, n, t);
|
|
1090
|
+
}, {});
|
|
1091
|
+
};
|
|
1092
|
+
//#endregion
|
|
1093
|
+
//#region node_modules/lodash-es/_freeGlobal.js
|
|
1094
|
+
var Qe = typeof global == "object" && global && global.Object === Object && global, $e = typeof self == "object" && self && self.Object === Object && self, I = Qe || $e || Function("return this")(), L = I.Symbol, et = Object.prototype, tt = et.hasOwnProperty, nt = et.toString, rt = L ? L.toStringTag : void 0;
|
|
1095
|
+
function it(e) {
|
|
1096
|
+
var t = tt.call(e, rt), n = e[rt];
|
|
1097
|
+
try {
|
|
1098
|
+
e[rt] = void 0;
|
|
1099
|
+
var r = !0;
|
|
1100
|
+
} catch {}
|
|
1101
|
+
var i = nt.call(e);
|
|
1102
|
+
return r && (t ? e[rt] = n : delete e[rt]), i;
|
|
1103
|
+
}
|
|
1104
|
+
//#endregion
|
|
1105
|
+
//#region node_modules/lodash-es/_objectToString.js
|
|
1106
|
+
var at = Object.prototype.toString;
|
|
1107
|
+
function ot(e) {
|
|
1108
|
+
return at.call(e);
|
|
1109
|
+
}
|
|
1110
|
+
//#endregion
|
|
1111
|
+
//#region node_modules/lodash-es/_baseGetTag.js
|
|
1112
|
+
var st = "[object Null]", ct = "[object Undefined]", lt = L ? L.toStringTag : void 0;
|
|
1113
|
+
function R(e) {
|
|
1114
|
+
return e == null ? e === void 0 ? ct : st : lt && lt in Object(e) ? it(e) : ot(e);
|
|
1115
|
+
}
|
|
1116
|
+
//#endregion
|
|
1117
|
+
//#region node_modules/lodash-es/_overArg.js
|
|
1118
|
+
function ut(e, t) {
|
|
1119
|
+
return function(n) {
|
|
1120
|
+
return e(t(n));
|
|
1121
|
+
};
|
|
1122
|
+
}
|
|
1123
|
+
//#endregion
|
|
1124
|
+
//#region node_modules/lodash-es/_getPrototype.js
|
|
1125
|
+
var dt = ut(Object.getPrototypeOf, Object);
|
|
1126
|
+
//#endregion
|
|
1127
|
+
//#region node_modules/lodash-es/isObjectLike.js
|
|
1128
|
+
function z(e) {
|
|
1129
|
+
return typeof e == "object" && !!e;
|
|
1130
|
+
}
|
|
1131
|
+
//#endregion
|
|
1132
|
+
//#region node_modules/lodash-es/_listCacheClear.js
|
|
1133
|
+
function ft() {
|
|
1134
|
+
this.__data__ = [], this.size = 0;
|
|
1135
|
+
}
|
|
1136
|
+
//#endregion
|
|
1137
|
+
//#region node_modules/lodash-es/eq.js
|
|
1138
|
+
function pt(e, t) {
|
|
1139
|
+
return e === t || e !== e && t !== t;
|
|
1140
|
+
}
|
|
1141
|
+
//#endregion
|
|
1142
|
+
//#region node_modules/lodash-es/_assocIndexOf.js
|
|
1143
|
+
function mt(e, t) {
|
|
1144
|
+
for (var n = e.length; n--;) if (pt(e[n][0], t)) return n;
|
|
1145
|
+
return -1;
|
|
1146
|
+
}
|
|
1147
|
+
//#endregion
|
|
1148
|
+
//#region node_modules/lodash-es/_listCacheDelete.js
|
|
1149
|
+
var ht = Array.prototype.splice;
|
|
1150
|
+
function gt(e) {
|
|
1151
|
+
var t = this.__data__, n = mt(t, e);
|
|
1152
|
+
return n < 0 ? !1 : (n == t.length - 1 ? t.pop() : ht.call(t, n, 1), --this.size, !0);
|
|
1153
|
+
}
|
|
1154
|
+
//#endregion
|
|
1155
|
+
//#region node_modules/lodash-es/_listCacheGet.js
|
|
1156
|
+
function _t(e) {
|
|
1157
|
+
var t = this.__data__, n = mt(t, e);
|
|
1158
|
+
return n < 0 ? void 0 : t[n][1];
|
|
1159
|
+
}
|
|
1160
|
+
//#endregion
|
|
1161
|
+
//#region node_modules/lodash-es/_listCacheHas.js
|
|
1162
|
+
function vt(e) {
|
|
1163
|
+
return mt(this.__data__, e) > -1;
|
|
1164
|
+
}
|
|
1165
|
+
//#endregion
|
|
1166
|
+
//#region node_modules/lodash-es/_listCacheSet.js
|
|
1167
|
+
function yt(e, t) {
|
|
1168
|
+
var n = this.__data__, r = mt(n, e);
|
|
1169
|
+
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
1170
|
+
}
|
|
1171
|
+
//#endregion
|
|
1172
|
+
//#region node_modules/lodash-es/_ListCache.js
|
|
1173
|
+
function B(e) {
|
|
1174
|
+
var t = -1, n = e == null ? 0 : e.length;
|
|
1175
|
+
for (this.clear(); ++t < n;) {
|
|
1176
|
+
var r = e[t];
|
|
1177
|
+
this.set(r[0], r[1]);
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
B.prototype.clear = ft, B.prototype.delete = gt, B.prototype.get = _t, B.prototype.has = vt, B.prototype.set = yt;
|
|
1181
|
+
//#endregion
|
|
1182
|
+
//#region node_modules/lodash-es/_stackClear.js
|
|
1183
|
+
function bt() {
|
|
1184
|
+
this.__data__ = new B(), this.size = 0;
|
|
1185
|
+
}
|
|
1186
|
+
//#endregion
|
|
1187
|
+
//#region node_modules/lodash-es/_stackDelete.js
|
|
1188
|
+
function xt(e) {
|
|
1189
|
+
var t = this.__data__, n = t.delete(e);
|
|
1190
|
+
return this.size = t.size, n;
|
|
1191
|
+
}
|
|
1192
|
+
//#endregion
|
|
1193
|
+
//#region node_modules/lodash-es/_stackGet.js
|
|
1194
|
+
function St(e) {
|
|
1195
|
+
return this.__data__.get(e);
|
|
1196
|
+
}
|
|
1197
|
+
//#endregion
|
|
1198
|
+
//#region node_modules/lodash-es/_stackHas.js
|
|
1199
|
+
function Ct(e) {
|
|
1200
|
+
return this.__data__.has(e);
|
|
1201
|
+
}
|
|
1202
|
+
//#endregion
|
|
1203
|
+
//#region node_modules/lodash-es/isObject.js
|
|
1204
|
+
function wt(e) {
|
|
1205
|
+
var t = typeof e;
|
|
1206
|
+
return e != null && (t == "object" || t == "function");
|
|
1207
|
+
}
|
|
1208
|
+
//#endregion
|
|
1209
|
+
//#region node_modules/lodash-es/isFunction.js
|
|
1210
|
+
var Tt = "[object AsyncFunction]", Et = "[object Function]", Dt = "[object GeneratorFunction]", Ot = "[object Proxy]";
|
|
1211
|
+
function kt(e) {
|
|
1212
|
+
if (!wt(e)) return !1;
|
|
1213
|
+
var t = R(e);
|
|
1214
|
+
return t == Et || t == Dt || t == Tt || t == Ot;
|
|
1215
|
+
}
|
|
1216
|
+
//#endregion
|
|
1217
|
+
//#region node_modules/lodash-es/_coreJsData.js
|
|
1218
|
+
var At = I["__core-js_shared__"], jt = function() {
|
|
1219
|
+
var e = /[^.]+$/.exec(At && At.keys && At.keys.IE_PROTO || "");
|
|
1220
|
+
return e ? "Symbol(src)_1." + e : "";
|
|
1221
|
+
}();
|
|
1222
|
+
function Mt(e) {
|
|
1223
|
+
return !!jt && jt in e;
|
|
1224
|
+
}
|
|
1225
|
+
//#endregion
|
|
1226
|
+
//#region node_modules/lodash-es/_toSource.js
|
|
1227
|
+
var Nt = Function.prototype.toString;
|
|
1228
|
+
function V(e) {
|
|
1229
|
+
if (e != null) {
|
|
1230
|
+
try {
|
|
1231
|
+
return Nt.call(e);
|
|
1232
|
+
} catch {}
|
|
1233
|
+
try {
|
|
1234
|
+
return e + "";
|
|
1235
|
+
} catch {}
|
|
1236
|
+
}
|
|
1237
|
+
return "";
|
|
1238
|
+
}
|
|
1239
|
+
//#endregion
|
|
1240
|
+
//#region node_modules/lodash-es/_baseIsNative.js
|
|
1241
|
+
var Pt = /[\\^$.*+?()[\]{}|]/g, Ft = /^\[object .+?Constructor\]$/, It = Function.prototype, Lt = Object.prototype, Rt = It.toString, zt = Lt.hasOwnProperty, Bt = RegExp("^" + Rt.call(zt).replace(Pt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
1242
|
+
function Vt(e) {
|
|
1243
|
+
return !wt(e) || Mt(e) ? !1 : (kt(e) ? Bt : Ft).test(V(e));
|
|
1244
|
+
}
|
|
1245
|
+
//#endregion
|
|
1246
|
+
//#region node_modules/lodash-es/_getValue.js
|
|
1247
|
+
function Ht(e, t) {
|
|
1248
|
+
return e?.[t];
|
|
1249
|
+
}
|
|
1250
|
+
//#endregion
|
|
1251
|
+
//#region node_modules/lodash-es/_getNative.js
|
|
1252
|
+
function H(e, t) {
|
|
1253
|
+
var n = Ht(e, t);
|
|
1254
|
+
return Vt(n) ? n : void 0;
|
|
1255
|
+
}
|
|
1256
|
+
//#endregion
|
|
1257
|
+
//#region node_modules/lodash-es/_Map.js
|
|
1258
|
+
var Ut = H(I, "Map"), Wt = H(Object, "create");
|
|
1259
|
+
//#endregion
|
|
1260
|
+
//#region node_modules/lodash-es/_hashClear.js
|
|
1261
|
+
function Gt() {
|
|
1262
|
+
this.__data__ = Wt ? Wt(null) : {}, this.size = 0;
|
|
1263
|
+
}
|
|
1264
|
+
//#endregion
|
|
1265
|
+
//#region node_modules/lodash-es/_hashDelete.js
|
|
1266
|
+
function Kt(e) {
|
|
1267
|
+
var t = this.has(e) && delete this.__data__[e];
|
|
1268
|
+
return this.size -= +!!t, t;
|
|
1269
|
+
}
|
|
1270
|
+
//#endregion
|
|
1271
|
+
//#region node_modules/lodash-es/_hashGet.js
|
|
1272
|
+
var qt = "__lodash_hash_undefined__", Jt = Object.prototype.hasOwnProperty;
|
|
1273
|
+
function Yt(e) {
|
|
1274
|
+
var t = this.__data__;
|
|
1275
|
+
if (Wt) {
|
|
1276
|
+
var n = t[e];
|
|
1277
|
+
return n === qt ? void 0 : n;
|
|
1278
|
+
}
|
|
1279
|
+
return Jt.call(t, e) ? t[e] : void 0;
|
|
1280
|
+
}
|
|
1281
|
+
//#endregion
|
|
1282
|
+
//#region node_modules/lodash-es/_hashHas.js
|
|
1283
|
+
var Xt = Object.prototype.hasOwnProperty;
|
|
1284
|
+
function Zt(e) {
|
|
1285
|
+
var t = this.__data__;
|
|
1286
|
+
return Wt ? t[e] !== void 0 : Xt.call(t, e);
|
|
1287
|
+
}
|
|
1288
|
+
//#endregion
|
|
1289
|
+
//#region node_modules/lodash-es/_hashSet.js
|
|
1290
|
+
var Qt = "__lodash_hash_undefined__";
|
|
1291
|
+
function $t(e, t) {
|
|
1292
|
+
var n = this.__data__;
|
|
1293
|
+
return this.size += +!this.has(e), n[e] = Wt && t === void 0 ? Qt : t, this;
|
|
1294
|
+
}
|
|
1295
|
+
//#endregion
|
|
1296
|
+
//#region node_modules/lodash-es/_Hash.js
|
|
1297
|
+
function U(e) {
|
|
1298
|
+
var t = -1, n = e == null ? 0 : e.length;
|
|
1299
|
+
for (this.clear(); ++t < n;) {
|
|
1300
|
+
var r = e[t];
|
|
1301
|
+
this.set(r[0], r[1]);
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
U.prototype.clear = Gt, U.prototype.delete = Kt, U.prototype.get = Yt, U.prototype.has = Zt, U.prototype.set = $t;
|
|
1305
|
+
//#endregion
|
|
1306
|
+
//#region node_modules/lodash-es/_mapCacheClear.js
|
|
1307
|
+
function en() {
|
|
1308
|
+
this.size = 0, this.__data__ = {
|
|
1309
|
+
hash: new U(),
|
|
1310
|
+
map: new (Ut || B)(),
|
|
1311
|
+
string: new U()
|
|
1312
|
+
};
|
|
1313
|
+
}
|
|
1314
|
+
//#endregion
|
|
1315
|
+
//#region node_modules/lodash-es/_isKeyable.js
|
|
1316
|
+
function tn(e) {
|
|
1317
|
+
var t = typeof e;
|
|
1318
|
+
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
1319
|
+
}
|
|
1320
|
+
//#endregion
|
|
1321
|
+
//#region node_modules/lodash-es/_getMapData.js
|
|
1322
|
+
function nn(e, t) {
|
|
1323
|
+
var n = e.__data__;
|
|
1324
|
+
return tn(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
1325
|
+
}
|
|
1326
|
+
//#endregion
|
|
1327
|
+
//#region node_modules/lodash-es/_mapCacheDelete.js
|
|
1328
|
+
function rn(e) {
|
|
1329
|
+
var t = nn(this, e).delete(e);
|
|
1330
|
+
return this.size -= +!!t, t;
|
|
1331
|
+
}
|
|
1332
|
+
//#endregion
|
|
1333
|
+
//#region node_modules/lodash-es/_mapCacheGet.js
|
|
1334
|
+
function an(e) {
|
|
1335
|
+
return nn(this, e).get(e);
|
|
1336
|
+
}
|
|
1337
|
+
//#endregion
|
|
1338
|
+
//#region node_modules/lodash-es/_mapCacheHas.js
|
|
1339
|
+
function on(e) {
|
|
1340
|
+
return nn(this, e).has(e);
|
|
1341
|
+
}
|
|
1342
|
+
//#endregion
|
|
1343
|
+
//#region node_modules/lodash-es/_mapCacheSet.js
|
|
1344
|
+
function sn(e, t) {
|
|
1345
|
+
var n = nn(this, e), r = n.size;
|
|
1346
|
+
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
1347
|
+
}
|
|
1348
|
+
//#endregion
|
|
1349
|
+
//#region node_modules/lodash-es/_MapCache.js
|
|
1350
|
+
function W(e) {
|
|
1351
|
+
var t = -1, n = e == null ? 0 : e.length;
|
|
1352
|
+
for (this.clear(); ++t < n;) {
|
|
1353
|
+
var r = e[t];
|
|
1354
|
+
this.set(r[0], r[1]);
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
W.prototype.clear = en, W.prototype.delete = rn, W.prototype.get = an, W.prototype.has = on, W.prototype.set = sn;
|
|
1358
|
+
//#endregion
|
|
1359
|
+
//#region node_modules/lodash-es/_stackSet.js
|
|
1360
|
+
var cn = 200;
|
|
1361
|
+
function ln(e, t) {
|
|
1362
|
+
var n = this.__data__;
|
|
1363
|
+
if (n instanceof B) {
|
|
1364
|
+
var r = n.__data__;
|
|
1365
|
+
if (!Ut || r.length < cn - 1) return r.push([e, t]), this.size = ++n.size, this;
|
|
1366
|
+
n = this.__data__ = new W(r);
|
|
1367
|
+
}
|
|
1368
|
+
return n.set(e, t), this.size = n.size, this;
|
|
1369
|
+
}
|
|
1370
|
+
//#endregion
|
|
1371
|
+
//#region node_modules/lodash-es/_Stack.js
|
|
1372
|
+
function G(e) {
|
|
1373
|
+
var t = this.__data__ = new B(e);
|
|
1374
|
+
this.size = t.size;
|
|
1375
|
+
}
|
|
1376
|
+
G.prototype.clear = bt, G.prototype.delete = xt, G.prototype.get = St, G.prototype.has = Ct, G.prototype.set = ln;
|
|
1377
|
+
//#endregion
|
|
1378
|
+
//#region node_modules/lodash-es/_arrayEach.js
|
|
1379
|
+
function un(e, t) {
|
|
1380
|
+
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1;);
|
|
1381
|
+
return e;
|
|
1382
|
+
}
|
|
1383
|
+
//#endregion
|
|
1384
|
+
//#region node_modules/lodash-es/_defineProperty.js
|
|
1385
|
+
var dn = function() {
|
|
1386
|
+
try {
|
|
1387
|
+
var e = H(Object, "defineProperty");
|
|
1388
|
+
return e({}, "", {}), e;
|
|
1389
|
+
} catch {}
|
|
1390
|
+
}();
|
|
1391
|
+
//#endregion
|
|
1392
|
+
//#region node_modules/lodash-es/_baseAssignValue.js
|
|
1393
|
+
function fn(e, t, n) {
|
|
1394
|
+
t == "__proto__" && dn ? dn(e, t, {
|
|
1395
|
+
configurable: !0,
|
|
1396
|
+
enumerable: !0,
|
|
1397
|
+
value: n,
|
|
1398
|
+
writable: !0
|
|
1399
|
+
}) : e[t] = n;
|
|
1400
|
+
}
|
|
1401
|
+
//#endregion
|
|
1402
|
+
//#region node_modules/lodash-es/_assignValue.js
|
|
1403
|
+
var pn = Object.prototype.hasOwnProperty;
|
|
1404
|
+
function mn(e, t, n) {
|
|
1405
|
+
var r = e[t];
|
|
1406
|
+
(!(pn.call(e, t) && pt(r, n)) || n === void 0 && !(t in e)) && fn(e, t, n);
|
|
1407
|
+
}
|
|
1408
|
+
//#endregion
|
|
1409
|
+
//#region node_modules/lodash-es/_copyObject.js
|
|
1410
|
+
function hn(e, t, n, r) {
|
|
1411
|
+
var i = !n;
|
|
1412
|
+
n ||= {};
|
|
1413
|
+
for (var a = -1, o = t.length; ++a < o;) {
|
|
1414
|
+
var s = t[a], c = r ? r(n[s], e[s], s, n, e) : void 0;
|
|
1415
|
+
c === void 0 && (c = e[s]), i ? fn(n, s, c) : mn(n, s, c);
|
|
1416
|
+
}
|
|
1417
|
+
return n;
|
|
1418
|
+
}
|
|
1419
|
+
//#endregion
|
|
1420
|
+
//#region node_modules/lodash-es/_baseTimes.js
|
|
1421
|
+
function gn(e, t) {
|
|
1422
|
+
for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
|
|
1423
|
+
return r;
|
|
1424
|
+
}
|
|
1425
|
+
//#endregion
|
|
1426
|
+
//#region node_modules/lodash-es/_baseIsArguments.js
|
|
1427
|
+
var _n = "[object Arguments]";
|
|
1428
|
+
function vn(e) {
|
|
1429
|
+
return z(e) && R(e) == _n;
|
|
1430
|
+
}
|
|
1431
|
+
//#endregion
|
|
1432
|
+
//#region node_modules/lodash-es/isArguments.js
|
|
1433
|
+
var yn = Object.prototype, bn = yn.hasOwnProperty, xn = yn.propertyIsEnumerable, Sn = vn(function() {
|
|
1434
|
+
return arguments;
|
|
1435
|
+
}()) ? vn : function(e) {
|
|
1436
|
+
return z(e) && bn.call(e, "callee") && !xn.call(e, "callee");
|
|
1437
|
+
}, Cn = Array.isArray;
|
|
1438
|
+
//#endregion
|
|
1439
|
+
//#region node_modules/lodash-es/stubFalse.js
|
|
1440
|
+
function wn() {
|
|
1441
|
+
return !1;
|
|
1442
|
+
}
|
|
1443
|
+
//#endregion
|
|
1444
|
+
//#region node_modules/lodash-es/isBuffer.js
|
|
1445
|
+
var Tn = typeof exports == "object" && exports && !exports.nodeType && exports, En = Tn && typeof module == "object" && module && !module.nodeType && module, Dn = En && En.exports === Tn ? I.Buffer : void 0, On = (Dn ? Dn.isBuffer : void 0) || wn, kn = 9007199254740991, An = /^(?:0|[1-9]\d*)$/;
|
|
1446
|
+
function jn(e, t) {
|
|
1447
|
+
var n = typeof e;
|
|
1448
|
+
return t ??= kn, !!t && (n == "number" || n != "symbol" && An.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
1449
|
+
}
|
|
1450
|
+
//#endregion
|
|
1451
|
+
//#region node_modules/lodash-es/isLength.js
|
|
1452
|
+
var Mn = 9007199254740991;
|
|
1453
|
+
function Nn(e) {
|
|
1454
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Mn;
|
|
1455
|
+
}
|
|
1456
|
+
//#endregion
|
|
1457
|
+
//#region node_modules/lodash-es/_baseIsTypedArray.js
|
|
1458
|
+
var Pn = "[object Arguments]", Fn = "[object Array]", In = "[object Boolean]", Ln = "[object Date]", Rn = "[object Error]", zn = "[object Function]", Bn = "[object Map]", Vn = "[object Number]", Hn = "[object Object]", Un = "[object RegExp]", Wn = "[object Set]", Gn = "[object String]", Kn = "[object WeakMap]", qn = "[object ArrayBuffer]", Jn = "[object DataView]", Yn = "[object Float32Array]", Xn = "[object Float64Array]", Zn = "[object Int8Array]", Qn = "[object Int16Array]", $n = "[object Int32Array]", er = "[object Uint8Array]", tr = "[object Uint8ClampedArray]", nr = "[object Uint16Array]", rr = "[object Uint32Array]", K = {};
|
|
1459
|
+
K[Yn] = K[Xn] = K[Zn] = K[Qn] = K[$n] = K[er] = K[tr] = K[nr] = K[rr] = !0, K[Pn] = K[Fn] = K[qn] = K[In] = K[Jn] = K[Ln] = K[Rn] = K[zn] = K[Bn] = K[Vn] = K[Hn] = K[Un] = K[Wn] = K[Gn] = K[Kn] = !1;
|
|
1460
|
+
function ir(e) {
|
|
1461
|
+
return z(e) && Nn(e.length) && !!K[R(e)];
|
|
1462
|
+
}
|
|
1463
|
+
//#endregion
|
|
1464
|
+
//#region node_modules/lodash-es/_baseUnary.js
|
|
1465
|
+
function ar(e) {
|
|
1466
|
+
return function(t) {
|
|
1467
|
+
return e(t);
|
|
1468
|
+
};
|
|
1469
|
+
}
|
|
1470
|
+
//#endregion
|
|
1471
|
+
//#region node_modules/lodash-es/_nodeUtil.js
|
|
1472
|
+
var or = typeof exports == "object" && exports && !exports.nodeType && exports, sr = or && typeof module == "object" && module && !module.nodeType && module, cr = sr && sr.exports === or && Qe.process, q = function() {
|
|
1473
|
+
try {
|
|
1474
|
+
return sr && sr.require && sr.require("util").types || cr && cr.binding && cr.binding("util");
|
|
1475
|
+
} catch {}
|
|
1476
|
+
}(), lr = q && q.isTypedArray, ur = lr ? ar(lr) : ir, dr = Object.prototype.hasOwnProperty;
|
|
1477
|
+
function fr(e, t) {
|
|
1478
|
+
var n = Cn(e), r = !n && Sn(e), i = !n && !r && On(e), a = !n && !r && !i && ur(e), o = n || r || i || a, s = o ? gn(e.length, String) : [], c = s.length;
|
|
1479
|
+
for (var l in e) (t || dr.call(e, l)) && !(o && (l == "length" || i && (l == "offset" || l == "parent") || a && (l == "buffer" || l == "byteLength" || l == "byteOffset") || jn(l, c))) && s.push(l);
|
|
1480
|
+
return s;
|
|
1481
|
+
}
|
|
1482
|
+
//#endregion
|
|
1483
|
+
//#region node_modules/lodash-es/_isPrototype.js
|
|
1484
|
+
var pr = Object.prototype;
|
|
1485
|
+
function mr(e) {
|
|
1486
|
+
var t = e && e.constructor;
|
|
1487
|
+
return e === (typeof t == "function" && t.prototype || pr);
|
|
1488
|
+
}
|
|
1489
|
+
//#endregion
|
|
1490
|
+
//#region node_modules/lodash-es/_nativeKeys.js
|
|
1491
|
+
var hr = ut(Object.keys, Object), gr = Object.prototype.hasOwnProperty;
|
|
1492
|
+
function _r(e) {
|
|
1493
|
+
if (!mr(e)) return hr(e);
|
|
1494
|
+
var t = [];
|
|
1495
|
+
for (var n in Object(e)) gr.call(e, n) && n != "constructor" && t.push(n);
|
|
1496
|
+
return t;
|
|
1497
|
+
}
|
|
1498
|
+
//#endregion
|
|
1499
|
+
//#region node_modules/lodash-es/isArrayLike.js
|
|
1500
|
+
function vr(e) {
|
|
1501
|
+
return e != null && Nn(e.length) && !kt(e);
|
|
1502
|
+
}
|
|
1503
|
+
//#endregion
|
|
1504
|
+
//#region node_modules/lodash-es/keys.js
|
|
1505
|
+
function yr(e) {
|
|
1506
|
+
return vr(e) ? fr(e) : _r(e);
|
|
1507
|
+
}
|
|
1508
|
+
//#endregion
|
|
1509
|
+
//#region node_modules/lodash-es/_baseAssign.js
|
|
1510
|
+
function br(e, t) {
|
|
1511
|
+
return e && hn(t, yr(t), e);
|
|
1512
|
+
}
|
|
1513
|
+
//#endregion
|
|
1514
|
+
//#region node_modules/lodash-es/_nativeKeysIn.js
|
|
1515
|
+
function xr(e) {
|
|
1516
|
+
var t = [];
|
|
1517
|
+
if (e != null) for (var n in Object(e)) t.push(n);
|
|
1518
|
+
return t;
|
|
1519
|
+
}
|
|
1520
|
+
//#endregion
|
|
1521
|
+
//#region node_modules/lodash-es/_baseKeysIn.js
|
|
1522
|
+
var Sr = Object.prototype.hasOwnProperty;
|
|
1523
|
+
function Cr(e) {
|
|
1524
|
+
if (!wt(e)) return xr(e);
|
|
1525
|
+
var t = mr(e), n = [];
|
|
1526
|
+
for (var r in e) r == "constructor" && (t || !Sr.call(e, r)) || n.push(r);
|
|
1527
|
+
return n;
|
|
1528
|
+
}
|
|
1529
|
+
//#endregion
|
|
1530
|
+
//#region node_modules/lodash-es/keysIn.js
|
|
1531
|
+
function wr(e) {
|
|
1532
|
+
return vr(e) ? fr(e, !0) : Cr(e);
|
|
1533
|
+
}
|
|
1534
|
+
//#endregion
|
|
1535
|
+
//#region node_modules/lodash-es/_baseAssignIn.js
|
|
1536
|
+
function Tr(e, t) {
|
|
1537
|
+
return e && hn(t, wr(t), e);
|
|
1538
|
+
}
|
|
1539
|
+
//#endregion
|
|
1540
|
+
//#region node_modules/lodash-es/_cloneBuffer.js
|
|
1541
|
+
var Er = typeof exports == "object" && exports && !exports.nodeType && exports, Dr = Er && typeof module == "object" && module && !module.nodeType && module, Or = Dr && Dr.exports === Er ? I.Buffer : void 0, kr = Or ? Or.allocUnsafe : void 0;
|
|
1542
|
+
function Ar(e, t) {
|
|
1543
|
+
if (t) return e.slice();
|
|
1544
|
+
var n = e.length, r = kr ? kr(n) : new e.constructor(n);
|
|
1545
|
+
return e.copy(r), r;
|
|
1546
|
+
}
|
|
1547
|
+
//#endregion
|
|
1548
|
+
//#region node_modules/lodash-es/_copyArray.js
|
|
1549
|
+
function jr(e, t) {
|
|
1550
|
+
var n = -1, r = e.length;
|
|
1551
|
+
for (t ||= Array(r); ++n < r;) t[n] = e[n];
|
|
1552
|
+
return t;
|
|
1553
|
+
}
|
|
1554
|
+
//#endregion
|
|
1555
|
+
//#region node_modules/lodash-es/_arrayFilter.js
|
|
1556
|
+
function Mr(e, t) {
|
|
1557
|
+
for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r;) {
|
|
1558
|
+
var o = e[n];
|
|
1559
|
+
t(o, n, e) && (a[i++] = o);
|
|
1560
|
+
}
|
|
1561
|
+
return a;
|
|
1562
|
+
}
|
|
1563
|
+
//#endregion
|
|
1564
|
+
//#region node_modules/lodash-es/stubArray.js
|
|
1565
|
+
function Nr() {
|
|
1566
|
+
return [];
|
|
1567
|
+
}
|
|
1568
|
+
//#endregion
|
|
1569
|
+
//#region node_modules/lodash-es/_getSymbols.js
|
|
1570
|
+
var Pr = Object.prototype.propertyIsEnumerable, Fr = Object.getOwnPropertySymbols, Ir = Fr ? function(e) {
|
|
1571
|
+
return e == null ? [] : (e = Object(e), Mr(Fr(e), function(t) {
|
|
1572
|
+
return Pr.call(e, t);
|
|
1573
|
+
}));
|
|
1574
|
+
} : Nr;
|
|
1575
|
+
//#endregion
|
|
1576
|
+
//#region node_modules/lodash-es/_copySymbols.js
|
|
1577
|
+
function Lr(e, t) {
|
|
1578
|
+
return hn(e, Ir(e), t);
|
|
1579
|
+
}
|
|
1580
|
+
//#endregion
|
|
1581
|
+
//#region node_modules/lodash-es/_arrayPush.js
|
|
1582
|
+
function Rr(e, t) {
|
|
1583
|
+
for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
|
|
1584
|
+
return e;
|
|
1585
|
+
}
|
|
1586
|
+
//#endregion
|
|
1587
|
+
//#region node_modules/lodash-es/_getSymbolsIn.js
|
|
1588
|
+
var zr = Object.getOwnPropertySymbols ? function(e) {
|
|
1589
|
+
for (var t = []; e;) Rr(t, Ir(e)), e = dt(e);
|
|
1590
|
+
return t;
|
|
1591
|
+
} : Nr;
|
|
1592
|
+
//#endregion
|
|
1593
|
+
//#region node_modules/lodash-es/_copySymbolsIn.js
|
|
1594
|
+
function Br(e, t) {
|
|
1595
|
+
return hn(e, zr(e), t);
|
|
1596
|
+
}
|
|
1597
|
+
//#endregion
|
|
1598
|
+
//#region node_modules/lodash-es/_baseGetAllKeys.js
|
|
1599
|
+
function Vr(e, t, n) {
|
|
1600
|
+
var r = t(e);
|
|
1601
|
+
return Cn(e) ? r : Rr(r, n(e));
|
|
1602
|
+
}
|
|
1603
|
+
//#endregion
|
|
1604
|
+
//#region node_modules/lodash-es/_getAllKeys.js
|
|
1605
|
+
function Hr(e) {
|
|
1606
|
+
return Vr(e, yr, Ir);
|
|
1607
|
+
}
|
|
1608
|
+
//#endregion
|
|
1609
|
+
//#region node_modules/lodash-es/_getAllKeysIn.js
|
|
1610
|
+
function Ur(e) {
|
|
1611
|
+
return Vr(e, wr, zr);
|
|
1612
|
+
}
|
|
1613
|
+
//#endregion
|
|
1614
|
+
//#region node_modules/lodash-es/_DataView.js
|
|
1615
|
+
var Wr = H(I, "DataView"), Gr = H(I, "Promise"), Kr = H(I, "Set"), qr = H(I, "WeakMap"), Jr = "[object Map]", Yr = "[object Object]", Xr = "[object Promise]", Zr = "[object Set]", Qr = "[object WeakMap]", $r = "[object DataView]", ei = V(Wr), ti = V(Ut), ni = V(Gr), ri = V(Kr), ii = V(qr), J = R;
|
|
1616
|
+
(Wr && J(new Wr(/* @__PURE__ */ new ArrayBuffer(1))) != $r || Ut && J(new Ut()) != Jr || Gr && J(Gr.resolve()) != Xr || Kr && J(new Kr()) != Zr || qr && J(new qr()) != Qr) && (J = function(e) {
|
|
1617
|
+
var t = R(e), n = t == Yr ? e.constructor : void 0, r = n ? V(n) : "";
|
|
1618
|
+
if (r) switch (r) {
|
|
1619
|
+
case ei: return $r;
|
|
1620
|
+
case ti: return Jr;
|
|
1621
|
+
case ni: return Xr;
|
|
1622
|
+
case ri: return Zr;
|
|
1623
|
+
case ii: return Qr;
|
|
1624
|
+
}
|
|
1625
|
+
return t;
|
|
1626
|
+
});
|
|
1627
|
+
var ai = J, oi = Object.prototype.hasOwnProperty;
|
|
1628
|
+
function si(e) {
|
|
1629
|
+
var t = e.length, n = new e.constructor(t);
|
|
1630
|
+
return t && typeof e[0] == "string" && oi.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
1631
|
+
}
|
|
1632
|
+
//#endregion
|
|
1633
|
+
//#region node_modules/lodash-es/_Uint8Array.js
|
|
1634
|
+
var ci = I.Uint8Array;
|
|
1635
|
+
//#endregion
|
|
1636
|
+
//#region node_modules/lodash-es/_cloneArrayBuffer.js
|
|
1637
|
+
function li(e) {
|
|
1638
|
+
var t = new e.constructor(e.byteLength);
|
|
1639
|
+
return new ci(t).set(new ci(e)), t;
|
|
1640
|
+
}
|
|
1641
|
+
//#endregion
|
|
1642
|
+
//#region node_modules/lodash-es/_cloneDataView.js
|
|
1643
|
+
function ui(e, t) {
|
|
1644
|
+
var n = t ? li(e.buffer) : e.buffer;
|
|
1645
|
+
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
1646
|
+
}
|
|
1647
|
+
//#endregion
|
|
1648
|
+
//#region node_modules/lodash-es/_cloneRegExp.js
|
|
1649
|
+
var di = /\w*$/;
|
|
1650
|
+
function fi(e) {
|
|
1651
|
+
var t = new e.constructor(e.source, di.exec(e));
|
|
1652
|
+
return t.lastIndex = e.lastIndex, t;
|
|
1653
|
+
}
|
|
1654
|
+
//#endregion
|
|
1655
|
+
//#region node_modules/lodash-es/_cloneSymbol.js
|
|
1656
|
+
var pi = L ? L.prototype : void 0, mi = pi ? pi.valueOf : void 0;
|
|
1657
|
+
function hi(e) {
|
|
1658
|
+
return mi ? Object(mi.call(e)) : {};
|
|
1659
|
+
}
|
|
1660
|
+
//#endregion
|
|
1661
|
+
//#region node_modules/lodash-es/_cloneTypedArray.js
|
|
1662
|
+
function gi(e, t) {
|
|
1663
|
+
var n = t ? li(e.buffer) : e.buffer;
|
|
1664
|
+
return new e.constructor(n, e.byteOffset, e.length);
|
|
1665
|
+
}
|
|
1666
|
+
//#endregion
|
|
1667
|
+
//#region node_modules/lodash-es/_initCloneByTag.js
|
|
1668
|
+
var _i = "[object Boolean]", vi = "[object Date]", yi = "[object Map]", bi = "[object Number]", xi = "[object RegExp]", Si = "[object Set]", Ci = "[object String]", wi = "[object Symbol]", Ti = "[object ArrayBuffer]", Ei = "[object DataView]", Di = "[object Float32Array]", Oi = "[object Float64Array]", ki = "[object Int8Array]", Ai = "[object Int16Array]", ji = "[object Int32Array]", Mi = "[object Uint8Array]", Ni = "[object Uint8ClampedArray]", Pi = "[object Uint16Array]", Fi = "[object Uint32Array]";
|
|
1669
|
+
function Ii(e, t, n) {
|
|
1670
|
+
var r = e.constructor;
|
|
1671
|
+
switch (t) {
|
|
1672
|
+
case Ti: return li(e);
|
|
1673
|
+
case _i:
|
|
1674
|
+
case vi: return new r(+e);
|
|
1675
|
+
case Ei: return ui(e, n);
|
|
1676
|
+
case Di:
|
|
1677
|
+
case Oi:
|
|
1678
|
+
case ki:
|
|
1679
|
+
case Ai:
|
|
1680
|
+
case ji:
|
|
1681
|
+
case Mi:
|
|
1682
|
+
case Ni:
|
|
1683
|
+
case Pi:
|
|
1684
|
+
case Fi: return gi(e, n);
|
|
1685
|
+
case yi: return new r();
|
|
1686
|
+
case bi:
|
|
1687
|
+
case Ci: return new r(e);
|
|
1688
|
+
case xi: return fi(e);
|
|
1689
|
+
case Si: return new r();
|
|
1690
|
+
case wi: return hi(e);
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
//#endregion
|
|
1694
|
+
//#region node_modules/lodash-es/_baseCreate.js
|
|
1695
|
+
var Li = Object.create, Ri = function() {
|
|
1696
|
+
function e() {}
|
|
1697
|
+
return function(t) {
|
|
1698
|
+
if (!wt(t)) return {};
|
|
1699
|
+
if (Li) return Li(t);
|
|
1700
|
+
e.prototype = t;
|
|
1701
|
+
var n = new e();
|
|
1702
|
+
return e.prototype = void 0, n;
|
|
1703
|
+
};
|
|
1704
|
+
}();
|
|
1705
|
+
//#endregion
|
|
1706
|
+
//#region node_modules/lodash-es/_initCloneObject.js
|
|
1707
|
+
function zi(e) {
|
|
1708
|
+
return typeof e.constructor == "function" && !mr(e) ? Ri(dt(e)) : {};
|
|
1709
|
+
}
|
|
1710
|
+
//#endregion
|
|
1711
|
+
//#region node_modules/lodash-es/_baseIsMap.js
|
|
1712
|
+
var Bi = "[object Map]";
|
|
1713
|
+
function Vi(e) {
|
|
1714
|
+
return z(e) && ai(e) == Bi;
|
|
1715
|
+
}
|
|
1716
|
+
//#endregion
|
|
1717
|
+
//#region node_modules/lodash-es/isMap.js
|
|
1718
|
+
var Hi = q && q.isMap, Ui = Hi ? ar(Hi) : Vi, Wi = "[object Set]";
|
|
1719
|
+
function Gi(e) {
|
|
1720
|
+
return z(e) && ai(e) == Wi;
|
|
1721
|
+
}
|
|
1722
|
+
//#endregion
|
|
1723
|
+
//#region node_modules/lodash-es/isSet.js
|
|
1724
|
+
var Ki = q && q.isSet, qi = Ki ? ar(Ki) : Gi, Ji = 1, Yi = 2, Xi = 4, Zi = "[object Arguments]", Qi = "[object Array]", $i = "[object Boolean]", ea = "[object Date]", ta = "[object Error]", na = "[object Function]", ra = "[object GeneratorFunction]", ia = "[object Map]", aa = "[object Number]", oa = "[object Object]", sa = "[object RegExp]", ca = "[object Set]", la = "[object String]", ua = "[object Symbol]", da = "[object WeakMap]", fa = "[object ArrayBuffer]", pa = "[object DataView]", ma = "[object Float32Array]", ha = "[object Float64Array]", ga = "[object Int8Array]", _a = "[object Int16Array]", va = "[object Int32Array]", ya = "[object Uint8Array]", ba = "[object Uint8ClampedArray]", xa = "[object Uint16Array]", Sa = "[object Uint32Array]", Y = {};
|
|
1725
|
+
Y[Zi] = Y[Qi] = Y[fa] = Y[pa] = Y[$i] = Y[ea] = Y[ma] = Y[ha] = Y[ga] = Y[_a] = Y[va] = Y[ia] = Y[aa] = Y[oa] = Y[sa] = Y[ca] = Y[la] = Y[ua] = Y[ya] = Y[ba] = Y[xa] = Y[Sa] = !0, Y[ta] = Y[na] = Y[da] = !1;
|
|
1726
|
+
function Ca(e, t, n, r, i, a) {
|
|
1727
|
+
var o, s = t & Ji, c = t & Yi, l = t & Xi;
|
|
1728
|
+
if (n && (o = i ? n(e, r, i, a) : n(e)), o !== void 0) return o;
|
|
1729
|
+
if (!wt(e)) return e;
|
|
1730
|
+
var u = Cn(e);
|
|
1731
|
+
if (u) {
|
|
1732
|
+
if (o = si(e), !s) return jr(e, o);
|
|
1733
|
+
} else {
|
|
1734
|
+
var d = ai(e), f = d == na || d == ra;
|
|
1735
|
+
if (On(e)) return Ar(e, s);
|
|
1736
|
+
if (d == oa || d == Zi || f && !i) {
|
|
1737
|
+
if (o = c || f ? {} : zi(e), !s) return c ? Br(e, Tr(o, e)) : Lr(e, br(o, e));
|
|
1738
|
+
} else {
|
|
1739
|
+
if (!Y[d]) return i ? e : {};
|
|
1740
|
+
o = Ii(e, d, s);
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
a ||= new G();
|
|
1744
|
+
var p = a.get(e);
|
|
1745
|
+
if (p) return p;
|
|
1746
|
+
a.set(e, o), qi(e) ? e.forEach(function(r) {
|
|
1747
|
+
o.add(Ca(r, t, n, r, e, a));
|
|
1748
|
+
}) : Ui(e) && e.forEach(function(r, i) {
|
|
1749
|
+
o.set(i, Ca(r, t, n, i, e, a));
|
|
1750
|
+
});
|
|
1751
|
+
var m = u ? void 0 : (l ? c ? Ur : Hr : c ? wr : yr)(e);
|
|
1752
|
+
return un(m || e, function(r, i) {
|
|
1753
|
+
m && (i = r, r = e[i]), mn(o, i, Ca(r, t, n, i, e, a));
|
|
1754
|
+
}), o;
|
|
1755
|
+
}
|
|
1756
|
+
//#endregion
|
|
1757
|
+
//#region node_modules/lodash-es/cloneDeep.js
|
|
1758
|
+
var wa = 1, Ta = 4;
|
|
1759
|
+
function Ea(e) {
|
|
1760
|
+
return Ca(e, wa | Ta);
|
|
1761
|
+
}
|
|
1762
|
+
//#endregion
|
|
1763
|
+
//#region node_modules/react-fast-compare/index.js
|
|
1764
|
+
var Da = /* @__PURE__ */ C(((e, t) => {
|
|
1765
|
+
var n = Array.isArray, r = Object.keys, i = Object.prototype.hasOwnProperty, a = typeof Element < "u";
|
|
1766
|
+
function o(e, t) {
|
|
1767
|
+
if (e === t) return !0;
|
|
1768
|
+
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
1769
|
+
var s = n(e), c = n(t), l, u, d;
|
|
1770
|
+
if (s && c) {
|
|
1771
|
+
if (u = e.length, u != t.length) return !1;
|
|
1772
|
+
for (l = u; l-- !== 0;) if (!o(e[l], t[l])) return !1;
|
|
1773
|
+
return !0;
|
|
1774
|
+
}
|
|
1775
|
+
if (s != c) return !1;
|
|
1776
|
+
var f = e instanceof Date, p = t instanceof Date;
|
|
1777
|
+
if (f != p) return !1;
|
|
1778
|
+
if (f && p) return e.getTime() == t.getTime();
|
|
1779
|
+
var m = e instanceof RegExp, h = t instanceof RegExp;
|
|
1780
|
+
if (m != h) return !1;
|
|
1781
|
+
if (m && h) return e.toString() == t.toString();
|
|
1782
|
+
var g = r(e);
|
|
1783
|
+
if (u = g.length, u !== r(t).length) return !1;
|
|
1784
|
+
for (l = u; l-- !== 0;) if (!i.call(t, g[l])) return !1;
|
|
1785
|
+
if (a && e instanceof Element && t instanceof Element) return e === t;
|
|
1786
|
+
for (l = u; l-- !== 0;) if (d = g[l], !(d === "_owner" && e.$$typeof) && !o(e[d], t[d])) return !1;
|
|
1787
|
+
return !0;
|
|
1788
|
+
}
|
|
1789
|
+
return e !== e && t !== t;
|
|
1790
|
+
}
|
|
1791
|
+
t.exports = function(e, t) {
|
|
1792
|
+
try {
|
|
1793
|
+
return o(e, t);
|
|
1794
|
+
} catch (e) {
|
|
1795
|
+
if (e.message && e.message.match(/stack|recursion/i) || e.number === -2146828260) return console.warn("Warning: react-fast-compare does not handle circular references.", e.name, e.message), !1;
|
|
1796
|
+
throw e;
|
|
1797
|
+
}
|
|
1798
|
+
};
|
|
1799
|
+
})), Oa = process.env.NODE_ENV === "production";
|
|
1800
|
+
function X(e, t) {
|
|
1801
|
+
if (!Oa) {
|
|
1802
|
+
if (e) return;
|
|
1803
|
+
var n = "Warning: " + t;
|
|
1804
|
+
typeof console < "u" && console.warn(n);
|
|
1805
|
+
try {
|
|
1806
|
+
throw Error(n);
|
|
1807
|
+
} catch {}
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
//#endregion
|
|
1811
|
+
//#region node_modules/lodash-es/clone.js
|
|
1812
|
+
var ka = 4;
|
|
1813
|
+
function Aa(e) {
|
|
1814
|
+
return Ca(e, ka);
|
|
1815
|
+
}
|
|
1816
|
+
//#endregion
|
|
1817
|
+
//#region node_modules/lodash-es/_arrayMap.js
|
|
1818
|
+
function ja(e, t) {
|
|
1819
|
+
for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
|
|
1820
|
+
return i;
|
|
1821
|
+
}
|
|
1822
|
+
//#endregion
|
|
1823
|
+
//#region node_modules/lodash-es/isSymbol.js
|
|
1824
|
+
var Ma = "[object Symbol]";
|
|
1825
|
+
function Na(e) {
|
|
1826
|
+
return typeof e == "symbol" || z(e) && R(e) == Ma;
|
|
1827
|
+
}
|
|
1828
|
+
//#endregion
|
|
1829
|
+
//#region node_modules/lodash-es/memoize.js
|
|
1830
|
+
var Pa = "Expected a function";
|
|
1831
|
+
function Fa(e, t) {
|
|
1832
|
+
if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(Pa);
|
|
1833
|
+
var n = function() {
|
|
1834
|
+
var r = arguments, i = t ? t.apply(this, r) : r[0], a = n.cache;
|
|
1835
|
+
if (a.has(i)) return a.get(i);
|
|
1836
|
+
var o = e.apply(this, r);
|
|
1837
|
+
return n.cache = a.set(i, o) || a, o;
|
|
1838
|
+
};
|
|
1839
|
+
return n.cache = new (Fa.Cache || W)(), n;
|
|
1840
|
+
}
|
|
1841
|
+
Fa.Cache = W;
|
|
1842
|
+
//#endregion
|
|
1843
|
+
//#region node_modules/lodash-es/_memoizeCapped.js
|
|
1844
|
+
var Ia = 500;
|
|
1845
|
+
function La(e) {
|
|
1846
|
+
var t = Fa(e, function(e) {
|
|
1847
|
+
return n.size === Ia && n.clear(), e;
|
|
1848
|
+
}), n = t.cache;
|
|
1849
|
+
return t;
|
|
1850
|
+
}
|
|
1851
|
+
//#endregion
|
|
1852
|
+
//#region node_modules/lodash-es/_stringToPath.js
|
|
1853
|
+
var Ra = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, za = /\\(\\)?/g, Ba = La(function(e) {
|
|
1854
|
+
var t = [];
|
|
1855
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(Ra, function(e, n, r, i) {
|
|
1856
|
+
t.push(r ? i.replace(za, "$1") : n || e);
|
|
1857
|
+
}), t;
|
|
1858
|
+
}), Va = Infinity;
|
|
1859
|
+
function Ha(e) {
|
|
1860
|
+
if (typeof e == "string" || Na(e)) return e;
|
|
1861
|
+
var t = e + "";
|
|
1862
|
+
return t == "0" && 1 / e == -Va ? "-0" : t;
|
|
1863
|
+
}
|
|
1864
|
+
//#endregion
|
|
1865
|
+
//#region node_modules/lodash-es/_baseToString.js
|
|
1866
|
+
var Ua = Infinity, Wa = L ? L.prototype : void 0, Ga = Wa ? Wa.toString : void 0;
|
|
1867
|
+
function Ka(e) {
|
|
1868
|
+
if (typeof e == "string") return e;
|
|
1869
|
+
if (Cn(e)) return ja(e, Ka) + "";
|
|
1870
|
+
if (Na(e)) return Ga ? Ga.call(e) : "";
|
|
1871
|
+
var t = e + "";
|
|
1872
|
+
return t == "0" && 1 / e == -Ua ? "-0" : t;
|
|
1873
|
+
}
|
|
1874
|
+
//#endregion
|
|
1875
|
+
//#region node_modules/lodash-es/toString.js
|
|
1876
|
+
function qa(e) {
|
|
1877
|
+
return e == null ? "" : Ka(e);
|
|
1878
|
+
}
|
|
1879
|
+
//#endregion
|
|
1880
|
+
//#region node_modules/lodash-es/toPath.js
|
|
1881
|
+
function Ja(e) {
|
|
1882
|
+
return Cn(e) ? ja(e, Ha) : Na(e) ? [e] : jr(Ba(qa(e)));
|
|
1883
|
+
}
|
|
1884
|
+
//#endregion
|
|
1885
|
+
//#region node_modules/react-is/cjs/react-is.production.min.js
|
|
1886
|
+
var Ya = /* @__PURE__ */ C(((e) => {
|
|
1887
|
+
var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
|
|
1888
|
+
function b(e) {
|
|
1889
|
+
if (typeof e == "object" && e) {
|
|
1890
|
+
var t = e.$$typeof;
|
|
1891
|
+
switch (t) {
|
|
1892
|
+
case n: switch (e = e.type, e) {
|
|
1893
|
+
case l:
|
|
1894
|
+
case u:
|
|
1895
|
+
case i:
|
|
1896
|
+
case o:
|
|
1897
|
+
case a:
|
|
1898
|
+
case f: return e;
|
|
1899
|
+
default: switch (e &&= e.$$typeof, e) {
|
|
1900
|
+
case c:
|
|
1901
|
+
case d:
|
|
1902
|
+
case h:
|
|
1903
|
+
case m:
|
|
1904
|
+
case s: return e;
|
|
1905
|
+
default: return t;
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
case r: return t;
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
function x(e) {
|
|
1913
|
+
return b(e) === u;
|
|
1914
|
+
}
|
|
1915
|
+
e.AsyncMode = l, e.ConcurrentMode = u, e.ContextConsumer = c, e.ContextProvider = s, e.Element = n, e.ForwardRef = d, e.Fragment = i, e.Lazy = h, e.Memo = m, e.Portal = r, e.Profiler = o, e.StrictMode = a, e.Suspense = f, e.isAsyncMode = function(e) {
|
|
1916
|
+
return x(e) || b(e) === l;
|
|
1917
|
+
}, e.isConcurrentMode = x, e.isContextConsumer = function(e) {
|
|
1918
|
+
return b(e) === c;
|
|
1919
|
+
}, e.isContextProvider = function(e) {
|
|
1920
|
+
return b(e) === s;
|
|
1921
|
+
}, e.isElement = function(e) {
|
|
1922
|
+
return typeof e == "object" && !!e && e.$$typeof === n;
|
|
1923
|
+
}, e.isForwardRef = function(e) {
|
|
1924
|
+
return b(e) === d;
|
|
1925
|
+
}, e.isFragment = function(e) {
|
|
1926
|
+
return b(e) === i;
|
|
1927
|
+
}, e.isLazy = function(e) {
|
|
1928
|
+
return b(e) === h;
|
|
1929
|
+
}, e.isMemo = function(e) {
|
|
1930
|
+
return b(e) === m;
|
|
1931
|
+
}, e.isPortal = function(e) {
|
|
1932
|
+
return b(e) === r;
|
|
1933
|
+
}, e.isProfiler = function(e) {
|
|
1934
|
+
return b(e) === o;
|
|
1935
|
+
}, e.isStrictMode = function(e) {
|
|
1936
|
+
return b(e) === a;
|
|
1937
|
+
}, e.isSuspense = function(e) {
|
|
1938
|
+
return b(e) === f;
|
|
1939
|
+
}, e.isValidElementType = function(e) {
|
|
1940
|
+
return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof === v || e.$$typeof === y || e.$$typeof === g);
|
|
1941
|
+
}, e.typeOf = b;
|
|
1942
|
+
})), Xa = /* @__PURE__ */ C(((e) => {
|
|
1943
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
1944
|
+
var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
|
|
1945
|
+
function b(e) {
|
|
1946
|
+
return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof === v || e.$$typeof === y || e.$$typeof === g);
|
|
1947
|
+
}
|
|
1948
|
+
function x(e) {
|
|
1949
|
+
if (typeof e == "object" && e) {
|
|
1950
|
+
var t = e.$$typeof;
|
|
1951
|
+
switch (t) {
|
|
1952
|
+
case n:
|
|
1953
|
+
var p = e.type;
|
|
1954
|
+
switch (p) {
|
|
1955
|
+
case l:
|
|
1956
|
+
case u:
|
|
1957
|
+
case i:
|
|
1958
|
+
case o:
|
|
1959
|
+
case a:
|
|
1960
|
+
case f: return p;
|
|
1961
|
+
default:
|
|
1962
|
+
var g = p && p.$$typeof;
|
|
1963
|
+
switch (g) {
|
|
1964
|
+
case c:
|
|
1965
|
+
case d:
|
|
1966
|
+
case h:
|
|
1967
|
+
case m:
|
|
1968
|
+
case s: return g;
|
|
1969
|
+
default: return t;
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
case r: return t;
|
|
1973
|
+
}
|
|
1974
|
+
}
|
|
1975
|
+
}
|
|
1976
|
+
var S = l, C = u, w = c, T = s, E = n, D = d, O = i, k = h, A = m, j = r, M = o, N = a, P = f, ee = !1;
|
|
1977
|
+
function F(e) {
|
|
1978
|
+
return ee || (ee = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), te(e) || x(e) === l;
|
|
1979
|
+
}
|
|
1980
|
+
function te(e) {
|
|
1981
|
+
return x(e) === u;
|
|
1982
|
+
}
|
|
1983
|
+
function ne(e) {
|
|
1984
|
+
return x(e) === c;
|
|
1985
|
+
}
|
|
1986
|
+
function re(e) {
|
|
1987
|
+
return x(e) === s;
|
|
1988
|
+
}
|
|
1989
|
+
function ie(e) {
|
|
1990
|
+
return typeof e == "object" && !!e && e.$$typeof === n;
|
|
1991
|
+
}
|
|
1992
|
+
function ae(e) {
|
|
1993
|
+
return x(e) === d;
|
|
1994
|
+
}
|
|
1995
|
+
function oe(e) {
|
|
1996
|
+
return x(e) === i;
|
|
1997
|
+
}
|
|
1998
|
+
function se(e) {
|
|
1999
|
+
return x(e) === h;
|
|
2000
|
+
}
|
|
2001
|
+
function ce(e) {
|
|
2002
|
+
return x(e) === m;
|
|
2003
|
+
}
|
|
2004
|
+
function le(e) {
|
|
2005
|
+
return x(e) === r;
|
|
2006
|
+
}
|
|
2007
|
+
function ue(e) {
|
|
2008
|
+
return x(e) === o;
|
|
2009
|
+
}
|
|
2010
|
+
function de(e) {
|
|
2011
|
+
return x(e) === a;
|
|
2012
|
+
}
|
|
2013
|
+
function fe(e) {
|
|
2014
|
+
return x(e) === f;
|
|
2015
|
+
}
|
|
2016
|
+
e.AsyncMode = S, e.ConcurrentMode = C, e.ContextConsumer = w, e.ContextProvider = T, e.Element = E, e.ForwardRef = D, e.Fragment = O, e.Lazy = k, e.Memo = A, e.Portal = j, e.Profiler = M, e.StrictMode = N, e.Suspense = P, e.isAsyncMode = F, e.isConcurrentMode = te, e.isContextConsumer = ne, e.isContextProvider = re, e.isElement = ie, e.isForwardRef = ae, e.isFragment = oe, e.isLazy = se, e.isMemo = ce, e.isPortal = le, e.isProfiler = ue, e.isStrictMode = de, e.isSuspense = fe, e.isValidElementType = b, e.typeOf = x;
|
|
2017
|
+
})();
|
|
2018
|
+
})), Za = /* @__PURE__ */ C(((e, t) => {
|
|
2019
|
+
process.env.NODE_ENV === "production" ? t.exports = Ya() : t.exports = Xa();
|
|
2020
|
+
})), Qa = /* @__PURE__ */ C(((e, t) => {
|
|
2021
|
+
var n = Za(), r = {
|
|
2022
|
+
childContextTypes: !0,
|
|
2023
|
+
contextType: !0,
|
|
2024
|
+
contextTypes: !0,
|
|
2025
|
+
defaultProps: !0,
|
|
2026
|
+
displayName: !0,
|
|
2027
|
+
getDefaultProps: !0,
|
|
2028
|
+
getDerivedStateFromError: !0,
|
|
2029
|
+
getDerivedStateFromProps: !0,
|
|
2030
|
+
mixins: !0,
|
|
2031
|
+
propTypes: !0,
|
|
2032
|
+
type: !0
|
|
2033
|
+
}, i = {
|
|
2034
|
+
name: !0,
|
|
2035
|
+
length: !0,
|
|
2036
|
+
prototype: !0,
|
|
2037
|
+
caller: !0,
|
|
2038
|
+
callee: !0,
|
|
2039
|
+
arguments: !0,
|
|
2040
|
+
arity: !0
|
|
2041
|
+
}, a = {
|
|
2042
|
+
$$typeof: !0,
|
|
2043
|
+
render: !0,
|
|
2044
|
+
defaultProps: !0,
|
|
2045
|
+
displayName: !0,
|
|
2046
|
+
propTypes: !0
|
|
2047
|
+
}, o = {
|
|
2048
|
+
$$typeof: !0,
|
|
2049
|
+
compare: !0,
|
|
2050
|
+
defaultProps: !0,
|
|
2051
|
+
displayName: !0,
|
|
2052
|
+
propTypes: !0,
|
|
2053
|
+
type: !0
|
|
2054
|
+
}, s = {};
|
|
2055
|
+
s[n.ForwardRef] = a, s[n.Memo] = o;
|
|
2056
|
+
function c(e) {
|
|
2057
|
+
return n.isMemo(e) ? o : s[e.$$typeof] || r;
|
|
2058
|
+
}
|
|
2059
|
+
var l = Object.defineProperty, u = Object.getOwnPropertyNames, d = Object.getOwnPropertySymbols, f = Object.getOwnPropertyDescriptor, p = Object.getPrototypeOf, m = Object.prototype;
|
|
2060
|
+
function h(e, t, n) {
|
|
2061
|
+
if (typeof t != "string") {
|
|
2062
|
+
if (m) {
|
|
2063
|
+
var r = p(t);
|
|
2064
|
+
r && r !== m && h(e, r, n);
|
|
2065
|
+
}
|
|
2066
|
+
var a = u(t);
|
|
2067
|
+
d && (a = a.concat(d(t)));
|
|
2068
|
+
for (var o = c(e), s = c(t), g = 0; g < a.length; ++g) {
|
|
2069
|
+
var _ = a[g];
|
|
2070
|
+
if (!i[_] && !(n && n[_]) && !(s && s[_]) && !(o && o[_])) {
|
|
2071
|
+
var v = f(t, _);
|
|
2072
|
+
try {
|
|
2073
|
+
l(e, _, v);
|
|
2074
|
+
} catch {}
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
return e;
|
|
2079
|
+
}
|
|
2080
|
+
t.exports = h;
|
|
2081
|
+
})), $a = /* @__PURE__ */ T(Da());
|
|
2082
|
+
Qa();
|
|
2083
|
+
function Z() {
|
|
2084
|
+
return Z = Object.assign || function(e) {
|
|
2085
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
2086
|
+
var n = arguments[t];
|
|
2087
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2088
|
+
}
|
|
2089
|
+
return e;
|
|
2090
|
+
}, Z.apply(this, arguments);
|
|
2091
|
+
}
|
|
2092
|
+
function eo(e, t) {
|
|
2093
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
|
|
2094
|
+
}
|
|
2095
|
+
function Q(e, t) {
|
|
2096
|
+
if (e == null) return {};
|
|
2097
|
+
var n = {}, r = Object.keys(e), i, a;
|
|
2098
|
+
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
2099
|
+
return n;
|
|
2100
|
+
}
|
|
2101
|
+
function to(e) {
|
|
2102
|
+
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2103
|
+
return e;
|
|
2104
|
+
}
|
|
2105
|
+
var no = /* @__PURE__ */ r(void 0);
|
|
2106
|
+
no.displayName = "FormikContext", no.Provider, no.Consumer;
|
|
2107
|
+
function ro() {
|
|
2108
|
+
var e = s(no);
|
|
2109
|
+
return !e && (process.env.NODE_ENV === "production" ? X(!1) : X(!1, "Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component.")), e;
|
|
2110
|
+
}
|
|
2111
|
+
var io = function(e) {
|
|
2112
|
+
return Array.isArray(e) && e.length === 0;
|
|
2113
|
+
}, ao = function(e) {
|
|
2114
|
+
return typeof e == "function";
|
|
2115
|
+
}, oo = function(e) {
|
|
2116
|
+
return typeof e == "object" && !!e;
|
|
2117
|
+
}, so = function(e) {
|
|
2118
|
+
return String(Math.floor(Number(e))) === e;
|
|
2119
|
+
}, co = function(t) {
|
|
2120
|
+
return e.count(t) === 0;
|
|
2121
|
+
};
|
|
2122
|
+
function lo(e, t, n, r) {
|
|
2123
|
+
r === void 0 && (r = 0);
|
|
2124
|
+
for (var i = Ja(t); e && r < i.length;) e = e[i[r++]];
|
|
2125
|
+
return r !== i.length && !e || e === void 0 ? n : e;
|
|
2126
|
+
}
|
|
2127
|
+
function uo(e, t, n) {
|
|
2128
|
+
for (var r = Aa(e), i = r, a = 0, o = Ja(t); a < o.length - 1; a++) {
|
|
2129
|
+
var s = o[a], c = lo(e, o.slice(0, a + 1));
|
|
2130
|
+
if (c && (oo(c) || Array.isArray(c))) i = i[s] = Aa(c);
|
|
2131
|
+
else {
|
|
2132
|
+
var l = o[a + 1];
|
|
2133
|
+
i = i[s] = so(l) && Number(l) >= 0 ? [] : {};
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
return (a === 0 ? e : i)[o[a]] === n ? e : (n === void 0 ? delete i[o[a]] : i[o[a]] = n, a === 0 && n === void 0 && delete r[o[a]], r);
|
|
2137
|
+
}
|
|
2138
|
+
typeof window < "u" && window.document !== void 0 && window.document.createElement;
|
|
2139
|
+
function fo(e) {
|
|
2140
|
+
var t = e.validate, n = e.name, r = e.render, a = e.children, o = e.as, s = e.component, l = e.className, u = Q(e, [
|
|
2141
|
+
"validate",
|
|
2142
|
+
"name",
|
|
2143
|
+
"render",
|
|
2144
|
+
"children",
|
|
2145
|
+
"as",
|
|
2146
|
+
"component",
|
|
2147
|
+
"className"
|
|
2148
|
+
]), d = Q(ro(), ["validate", "validationSchema"]);
|
|
2149
|
+
process.env.NODE_ENV !== "production" && c(function() {
|
|
2150
|
+
r && (process.env.NODE_ENV === "production" ? X(!1) : X(!1, "<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name=\"" + n + "\" render={({field, form}) => ...} /> with <Field name=\"" + n + "\">{({field, form, meta}) => ...}</Field>")), o && a && ao(a) && (process.env.NODE_ENV === "production" ? X(!1) : X(!1, "You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored.")), s && a && ao(a) && (process.env.NODE_ENV === "production" ? X(!1) : X(!1, "You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored.")), r && a && !co(a) && (process.env.NODE_ENV === "production" ? X(!1) : X(!1, "You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"));
|
|
2151
|
+
}, []);
|
|
2152
|
+
var f = d.registerField, p = d.unregisterField;
|
|
2153
|
+
c(function() {
|
|
2154
|
+
return f(n, { validate: t }), function() {
|
|
2155
|
+
p(n);
|
|
2156
|
+
};
|
|
2157
|
+
}, [
|
|
2158
|
+
f,
|
|
2159
|
+
p,
|
|
2160
|
+
n,
|
|
2161
|
+
t
|
|
2162
|
+
]);
|
|
2163
|
+
var m = d.getFieldProps(Z({ name: n }, u)), h = d.getFieldMeta(n), g = {
|
|
2164
|
+
field: m,
|
|
2165
|
+
form: d
|
|
2166
|
+
};
|
|
2167
|
+
if (r) return r(Z({}, g, { meta: h }));
|
|
2168
|
+
if (ao(a)) return a(Z({}, g, { meta: h }));
|
|
2169
|
+
if (s) {
|
|
2170
|
+
if (typeof s == "string") {
|
|
2171
|
+
var _ = u.innerRef, v = Q(u, ["innerRef"]);
|
|
2172
|
+
return i(s, Z({ ref: _ }, m, v, { className: l }), a);
|
|
2173
|
+
}
|
|
2174
|
+
return i(s, Z({
|
|
2175
|
+
field: m,
|
|
2176
|
+
form: d
|
|
2177
|
+
}, u, { className: l }), a);
|
|
2178
|
+
}
|
|
2179
|
+
var y = o || "input";
|
|
2180
|
+
if (typeof y == "string") {
|
|
2181
|
+
var b = u.innerRef, x = Q(u, ["innerRef"]);
|
|
2182
|
+
return i(y, Z({ ref: b }, m, x, { className: l }), a);
|
|
2183
|
+
}
|
|
2184
|
+
return i(y, Z({}, m, u, { className: l }), a);
|
|
2185
|
+
}
|
|
2186
|
+
var po = /* @__PURE__ */ a(function(e, t) {
|
|
2187
|
+
var n = e.action, r = Q(e, ["action"]), a = n ?? "#", o = ro(), s = o.handleReset, c = o.handleSubmit;
|
|
2188
|
+
return i("form", Z({
|
|
2189
|
+
onSubmit: c,
|
|
2190
|
+
ref: t,
|
|
2191
|
+
onReset: s,
|
|
2192
|
+
action: a
|
|
2193
|
+
}, r));
|
|
2194
|
+
});
|
|
2195
|
+
po.displayName = "Form";
|
|
2196
|
+
var mo = function(e, t, n) {
|
|
2197
|
+
var r = $(e), i = r[t];
|
|
2198
|
+
return r.splice(t, 1), r.splice(n, 0, i), r;
|
|
2199
|
+
}, ho = function(e, t, n) {
|
|
2200
|
+
var r = $(e), i = r[t];
|
|
2201
|
+
return r[t] = r[n], r[n] = i, r;
|
|
2202
|
+
}, go = function(e, t, n) {
|
|
2203
|
+
var r = $(e);
|
|
2204
|
+
return r.splice(t, 0, n), r;
|
|
2205
|
+
}, _o = function(e, t, n) {
|
|
2206
|
+
var r = $(e);
|
|
2207
|
+
return r[t] = n, r;
|
|
2208
|
+
}, $ = function(e) {
|
|
2209
|
+
if (!e) return [];
|
|
2210
|
+
if (Array.isArray(e)) return [].concat(e);
|
|
2211
|
+
var t = Object.keys(e).map(function(e) {
|
|
2212
|
+
return parseInt(e);
|
|
2213
|
+
}).reduce(function(e, t) {
|
|
2214
|
+
return t > e ? t : e;
|
|
2215
|
+
}, 0);
|
|
2216
|
+
return Array.from(Z({}, e, { length: t + 1 }));
|
|
2217
|
+
}, vo = function(e, t) {
|
|
2218
|
+
var n = typeof e == "function" ? e : t;
|
|
2219
|
+
return function(e) {
|
|
2220
|
+
return Array.isArray(e) || oo(e) ? n($(e)) : e;
|
|
2221
|
+
};
|
|
2222
|
+
}, yo = /* @__PURE__ */ function(t) {
|
|
2223
|
+
eo(n, t);
|
|
2224
|
+
function n(e) {
|
|
2225
|
+
var n = t.call(this, e) || this;
|
|
2226
|
+
return n.updateArrayField = function(e, t, r) {
|
|
2227
|
+
var i = n.props, a = i.name, o = i.formik.setFormikState;
|
|
2228
|
+
o(function(n) {
|
|
2229
|
+
var i = vo(r, e), o = vo(t, e), s = uo(n.values, a, e(lo(n.values, a))), c = r ? i(lo(n.errors, a)) : void 0, l = t ? o(lo(n.touched, a)) : void 0;
|
|
2230
|
+
return io(c) && (c = void 0), io(l) && (l = void 0), Z({}, n, {
|
|
2231
|
+
values: s,
|
|
2232
|
+
errors: r ? uo(n.errors, a, c) : n.errors,
|
|
2233
|
+
touched: t ? uo(n.touched, a, l) : n.touched
|
|
2234
|
+
});
|
|
2235
|
+
});
|
|
2236
|
+
}, n.push = function(e) {
|
|
2237
|
+
return n.updateArrayField(function(t) {
|
|
2238
|
+
return [].concat($(t), [Ea(e)]);
|
|
2239
|
+
}, !1, !1);
|
|
2240
|
+
}, n.handlePush = function(e) {
|
|
2241
|
+
return function() {
|
|
2242
|
+
return n.push(e);
|
|
2243
|
+
};
|
|
2244
|
+
}, n.swap = function(e, t) {
|
|
2245
|
+
return n.updateArrayField(function(n) {
|
|
2246
|
+
return ho(n, e, t);
|
|
2247
|
+
}, !0, !0);
|
|
2248
|
+
}, n.handleSwap = function(e, t) {
|
|
2249
|
+
return function() {
|
|
2250
|
+
return n.swap(e, t);
|
|
2251
|
+
};
|
|
2252
|
+
}, n.move = function(e, t) {
|
|
2253
|
+
return n.updateArrayField(function(n) {
|
|
2254
|
+
return mo(n, e, t);
|
|
2255
|
+
}, !0, !0);
|
|
2256
|
+
}, n.handleMove = function(e, t) {
|
|
2257
|
+
return function() {
|
|
2258
|
+
return n.move(e, t);
|
|
2259
|
+
};
|
|
2260
|
+
}, n.insert = function(e, t) {
|
|
2261
|
+
return n.updateArrayField(function(n) {
|
|
2262
|
+
return go(n, e, t);
|
|
2263
|
+
}, function(t) {
|
|
2264
|
+
return go(t, e, null);
|
|
2265
|
+
}, function(t) {
|
|
2266
|
+
return go(t, e, null);
|
|
2267
|
+
});
|
|
2268
|
+
}, n.handleInsert = function(e, t) {
|
|
2269
|
+
return function() {
|
|
2270
|
+
return n.insert(e, t);
|
|
2271
|
+
};
|
|
2272
|
+
}, n.replace = function(e, t) {
|
|
2273
|
+
return n.updateArrayField(function(n) {
|
|
2274
|
+
return _o(n, e, t);
|
|
2275
|
+
}, !1, !1);
|
|
2276
|
+
}, n.handleReplace = function(e, t) {
|
|
2277
|
+
return function() {
|
|
2278
|
+
return n.replace(e, t);
|
|
2279
|
+
};
|
|
2280
|
+
}, n.unshift = function(e) {
|
|
2281
|
+
var t = -1;
|
|
2282
|
+
return n.updateArrayField(function(n) {
|
|
2283
|
+
var r = n ? [e].concat(n) : [e];
|
|
2284
|
+
return t = r.length, r;
|
|
2285
|
+
}, function(e) {
|
|
2286
|
+
return e ? [null].concat(e) : [null];
|
|
2287
|
+
}, function(e) {
|
|
2288
|
+
return e ? [null].concat(e) : [null];
|
|
2289
|
+
}), t;
|
|
2290
|
+
}, n.handleUnshift = function(e) {
|
|
2291
|
+
return function() {
|
|
2292
|
+
return n.unshift(e);
|
|
2293
|
+
};
|
|
2294
|
+
}, n.handleRemove = function(e) {
|
|
2295
|
+
return function() {
|
|
2296
|
+
return n.remove(e);
|
|
2297
|
+
};
|
|
2298
|
+
}, n.handlePop = function() {
|
|
2299
|
+
return function() {
|
|
2300
|
+
return n.pop();
|
|
2301
|
+
};
|
|
2302
|
+
}, n.remove = n.remove.bind(to(n)), n.pop = n.pop.bind(to(n)), n;
|
|
2303
|
+
}
|
|
2304
|
+
var r = n.prototype;
|
|
2305
|
+
return r.componentDidUpdate = function(e) {
|
|
2306
|
+
this.props.validateOnChange && this.props.formik.validateOnChange && !(0, $a.default)(lo(e.formik.values, e.name), lo(this.props.formik.values, this.props.name)) && this.props.formik.validateForm(this.props.formik.values);
|
|
2307
|
+
}, r.remove = function(e) {
|
|
2308
|
+
var t;
|
|
2309
|
+
return this.updateArrayField(function(n) {
|
|
2310
|
+
var r = n ? $(n) : [];
|
|
2311
|
+
return t ||= r[e], ao(r.splice) && r.splice(e, 1), ao(r.every) && r.every(function(e) {
|
|
2312
|
+
return e === void 0;
|
|
2313
|
+
}) ? [] : r;
|
|
2314
|
+
}, !0, !0), t;
|
|
2315
|
+
}, r.pop = function() {
|
|
2316
|
+
var e;
|
|
2317
|
+
return this.updateArrayField(function(t) {
|
|
2318
|
+
var n = t.slice();
|
|
2319
|
+
return e ||= n && n.pop && n.pop(), n;
|
|
2320
|
+
}, !0, !0), e;
|
|
2321
|
+
}, r.render = function() {
|
|
2322
|
+
var t = {
|
|
2323
|
+
push: this.push,
|
|
2324
|
+
pop: this.pop,
|
|
2325
|
+
swap: this.swap,
|
|
2326
|
+
move: this.move,
|
|
2327
|
+
insert: this.insert,
|
|
2328
|
+
replace: this.replace,
|
|
2329
|
+
unshift: this.unshift,
|
|
2330
|
+
remove: this.remove,
|
|
2331
|
+
handlePush: this.handlePush,
|
|
2332
|
+
handlePop: this.handlePop,
|
|
2333
|
+
handleSwap: this.handleSwap,
|
|
2334
|
+
handleMove: this.handleMove,
|
|
2335
|
+
handleInsert: this.handleInsert,
|
|
2336
|
+
handleReplace: this.handleReplace,
|
|
2337
|
+
handleUnshift: this.handleUnshift,
|
|
2338
|
+
handleRemove: this.handleRemove
|
|
2339
|
+
}, n = this.props, r = n.component, a = n.render, o = n.children, s = n.name, c = n.formik, l = Q(c, ["validate", "validationSchema"]), u = Z({}, t, {
|
|
2340
|
+
form: l,
|
|
2341
|
+
name: s
|
|
2342
|
+
});
|
|
2343
|
+
return r ? i(r, u) : a ? a(u) : o ? typeof o == "function" ? o(u) : co(o) ? null : e.only(o) : null;
|
|
2344
|
+
}, n;
|
|
2345
|
+
}(t);
|
|
2346
|
+
yo.defaultProps = { validateOnChange: !0 };
|
|
2347
|
+
//#endregion
|
|
1046
2348
|
//#region src/components/Header/Header.tsx
|
|
1047
|
-
function
|
|
1048
|
-
let [a, o] =
|
|
1049
|
-
return /* @__PURE__ */
|
|
1050
|
-
ref:
|
|
2349
|
+
function bo({ trigger: e, items: t, onSelect: n, getKey: r, renderItem: i }) {
|
|
2350
|
+
let [a, o] = f(!1), s = d(null), c = () => o(!1);
|
|
2351
|
+
return /* @__PURE__ */ h("div", {
|
|
2352
|
+
ref: s,
|
|
1051
2353
|
className: "relative",
|
|
1052
2354
|
onBlur: (e) => {
|
|
1053
|
-
|
|
2355
|
+
s.current?.contains(e.relatedTarget) || c();
|
|
1054
2356
|
},
|
|
1055
2357
|
onKeyDown: (e) => {
|
|
1056
|
-
e.key === "Escape" &&
|
|
2358
|
+
e.key === "Escape" && c();
|
|
1057
2359
|
},
|
|
1058
|
-
children: [/* @__PURE__ */
|
|
2360
|
+
children: [/* @__PURE__ */ m("div", {
|
|
1059
2361
|
role: "button",
|
|
1060
2362
|
tabIndex: 0,
|
|
1061
2363
|
onClick: () => o((e) => !e),
|
|
1062
2364
|
onKeyDown: (e) => e.key === "Enter" && o((e) => !e),
|
|
1063
2365
|
className: "cursor-pointer",
|
|
1064
2366
|
children: e
|
|
1065
|
-
}), a && /* @__PURE__ */
|
|
2367
|
+
}), a && /* @__PURE__ */ m("ul", {
|
|
1066
2368
|
role: "menu",
|
|
1067
2369
|
className: "absolute right-0 top-full mt-1 z-50 min-w-28 bg-white rounded-lg shadow-lg border border-gray-100 py-1 text-sm",
|
|
1068
|
-
children: t.map((e) => /* @__PURE__ */
|
|
2370
|
+
children: t.map((e) => /* @__PURE__ */ m("li", {
|
|
1069
2371
|
role: "none",
|
|
1070
|
-
children: /* @__PURE__ */
|
|
2372
|
+
children: /* @__PURE__ */ m("button", {
|
|
1071
2373
|
role: "menuitem",
|
|
1072
2374
|
className: "w-full px-3 py-1.5 text-left hover:bg-gray-50 text-gray-700 whitespace-nowrap",
|
|
1073
2375
|
onClick: () => {
|
|
1074
|
-
n(e),
|
|
2376
|
+
n(e), c();
|
|
1075
2377
|
},
|
|
1076
2378
|
children: i ? i(e) : e.label
|
|
1077
2379
|
})
|
|
@@ -1079,59 +2381,60 @@ function Q({ trigger: e, items: t, onSelect: n, getKey: r, renderItem: i }) {
|
|
|
1079
2381
|
})]
|
|
1080
2382
|
});
|
|
1081
2383
|
}
|
|
1082
|
-
function
|
|
1083
|
-
return /* @__PURE__ */
|
|
2384
|
+
function xo() {
|
|
2385
|
+
return /* @__PURE__ */ m("svg", {
|
|
1084
2386
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1085
2387
|
fill: "none",
|
|
1086
2388
|
viewBox: "0 0 24 24",
|
|
1087
2389
|
strokeWidth: 1.5,
|
|
1088
2390
|
stroke: "currentColor",
|
|
1089
2391
|
className: "w-4 h-4",
|
|
1090
|
-
children: /* @__PURE__ */
|
|
2392
|
+
children: /* @__PURE__ */ m("path", {
|
|
1091
2393
|
strokeLinecap: "round",
|
|
1092
2394
|
strokeLinejoin: "round",
|
|
1093
2395
|
d: "M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 15.803a7.5 7.5 0 0010.607 10.607z"
|
|
1094
2396
|
})
|
|
1095
2397
|
});
|
|
1096
2398
|
}
|
|
1097
|
-
function
|
|
1098
|
-
let [y, b] =
|
|
1099
|
-
return /* @__PURE__ */
|
|
2399
|
+
function So({ logo: e, searchPlaceholder: t = "Hledat produkty…", onSearch: n, cartItemCount: r = 0, onCartClick: i, isLoggedIn: a = !1, customerName: o, onCustomerClick: s, currencies: c = [], selectedCurrency: l, onCurrencyChange: u, locales: d = [], selectedLocale: g, onLocaleChange: _, rightSlot: v }) {
|
|
2400
|
+
let [y, b] = f(""), x = c.find((e) => e.code === l), S = d.find((e) => e.code === g);
|
|
2401
|
+
return /* @__PURE__ */ m("header", {
|
|
1100
2402
|
className: "bg-white border-b border-gray-200 sticky top-0 z-40",
|
|
1101
|
-
children: /* @__PURE__ */
|
|
2403
|
+
children: /* @__PURE__ */ h("div", {
|
|
1102
2404
|
className: "max-w-7xl mx-auto px-4 h-16 flex items-center gap-4",
|
|
1103
2405
|
children: [
|
|
1104
|
-
/* @__PURE__ */
|
|
2406
|
+
/* @__PURE__ */ m("div", {
|
|
1105
2407
|
className: "shrink-0",
|
|
1106
|
-
children: e ?? /* @__PURE__ */
|
|
2408
|
+
children: e ?? /* @__PURE__ */ m("span", {
|
|
1107
2409
|
className: "text-xl font-bold text-primary-600 tracking-tight",
|
|
1108
2410
|
children: "shopito"
|
|
1109
2411
|
})
|
|
1110
2412
|
}),
|
|
1111
|
-
/* @__PURE__ */
|
|
2413
|
+
/* @__PURE__ */ m("div", {
|
|
1112
2414
|
className: "flex-1 max-w-xl",
|
|
1113
|
-
children: /* @__PURE__ */
|
|
2415
|
+
children: /* @__PURE__ */ m(fo, {
|
|
2416
|
+
component: M,
|
|
1114
2417
|
placeholder: t,
|
|
1115
2418
|
value: y,
|
|
1116
2419
|
onChange: (e) => b(e.target.value),
|
|
1117
2420
|
onKeyDown: (e) => {
|
|
1118
2421
|
e.key === "Enter" && n?.(y);
|
|
1119
2422
|
},
|
|
1120
|
-
leftIcon: /* @__PURE__ */
|
|
1121
|
-
rightIcon: y ? /* @__PURE__ */
|
|
2423
|
+
leftIcon: /* @__PURE__ */ m(xo, {}),
|
|
2424
|
+
rightIcon: y ? /* @__PURE__ */ m("button", {
|
|
1122
2425
|
onClick: () => {
|
|
1123
2426
|
b(""), n?.("");
|
|
1124
2427
|
},
|
|
1125
2428
|
className: "hover:text-gray-600 transition-colors",
|
|
1126
2429
|
"aria-label": "Clear search",
|
|
1127
|
-
children: /* @__PURE__ */
|
|
2430
|
+
children: /* @__PURE__ */ m("svg", {
|
|
1128
2431
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1129
2432
|
fill: "none",
|
|
1130
2433
|
viewBox: "0 0 24 24",
|
|
1131
2434
|
strokeWidth: 2,
|
|
1132
2435
|
stroke: "currentColor",
|
|
1133
2436
|
className: "w-3.5 h-3.5",
|
|
1134
|
-
children: /* @__PURE__ */
|
|
2437
|
+
children: /* @__PURE__ */ m("path", {
|
|
1135
2438
|
strokeLinecap: "round",
|
|
1136
2439
|
strokeLinejoin: "round",
|
|
1137
2440
|
d: "M6 18L18 6M6 6l12 12"
|
|
@@ -1140,85 +2443,85 @@ function Ce({ logo: e, searchPlaceholder: t = "Hledat produkty…", onSearch: n,
|
|
|
1140
2443
|
}) : void 0
|
|
1141
2444
|
})
|
|
1142
2445
|
}),
|
|
1143
|
-
/* @__PURE__ */
|
|
2446
|
+
/* @__PURE__ */ h("div", {
|
|
1144
2447
|
className: "flex items-center gap-1 shrink-0 ml-auto",
|
|
1145
2448
|
children: [
|
|
1146
|
-
|
|
1147
|
-
trigger: /* @__PURE__ */
|
|
2449
|
+
c.length > 0 && /* @__PURE__ */ m(bo, {
|
|
2450
|
+
trigger: /* @__PURE__ */ h("button", {
|
|
1148
2451
|
className: "flex items-center gap-1 px-2 py-1.5 rounded-md text-sm text-gray-600 hover:bg-gray-50 transition-colors font-medium",
|
|
1149
2452
|
children: [
|
|
1150
|
-
/* @__PURE__ */
|
|
1151
|
-
/* @__PURE__ */
|
|
2453
|
+
/* @__PURE__ */ m("span", { children: x?.symbol ?? l }),
|
|
2454
|
+
/* @__PURE__ */ m("span", {
|
|
1152
2455
|
className: "text-xs text-gray-400",
|
|
1153
|
-
children: x?.code ??
|
|
2456
|
+
children: x?.code ?? l
|
|
1154
2457
|
}),
|
|
1155
|
-
/* @__PURE__ */
|
|
2458
|
+
/* @__PURE__ */ m(Co, { className: "w-3 h-3 text-gray-400" })
|
|
1156
2459
|
]
|
|
1157
2460
|
}),
|
|
1158
|
-
items:
|
|
2461
|
+
items: c,
|
|
1159
2462
|
getKey: (e) => e.code,
|
|
1160
|
-
onSelect: (e) =>
|
|
1161
|
-
renderItem: (e) => /* @__PURE__ */
|
|
2463
|
+
onSelect: (e) => u?.(e.code),
|
|
2464
|
+
renderItem: (e) => /* @__PURE__ */ h("span", {
|
|
1162
2465
|
className: "flex items-center gap-2",
|
|
1163
|
-
children: [/* @__PURE__ */
|
|
2466
|
+
children: [/* @__PURE__ */ m("span", {
|
|
1164
2467
|
className: "w-6 text-center font-medium text-gray-500",
|
|
1165
2468
|
children: e.symbol
|
|
1166
|
-
}), /* @__PURE__ */
|
|
2469
|
+
}), /* @__PURE__ */ m("span", { children: e.label })]
|
|
1167
2470
|
})
|
|
1168
2471
|
}),
|
|
1169
|
-
|
|
1170
|
-
trigger: /* @__PURE__ */
|
|
2472
|
+
d.length > 0 && /* @__PURE__ */ m(bo, {
|
|
2473
|
+
trigger: /* @__PURE__ */ h("button", {
|
|
1171
2474
|
className: "flex items-center gap-1 px-2 py-1.5 rounded-md text-sm text-gray-600 hover:bg-gray-50 transition-colors",
|
|
1172
2475
|
children: [
|
|
1173
|
-
S?.flag && /* @__PURE__ */
|
|
2476
|
+
S?.flag && /* @__PURE__ */ m("span", {
|
|
1174
2477
|
className: "text-base leading-none",
|
|
1175
2478
|
children: S.flag
|
|
1176
2479
|
}),
|
|
1177
|
-
/* @__PURE__ */
|
|
2480
|
+
/* @__PURE__ */ m("span", {
|
|
1178
2481
|
className: "font-medium uppercase",
|
|
1179
2482
|
children: S?.code ?? g
|
|
1180
2483
|
}),
|
|
1181
|
-
/* @__PURE__ */
|
|
2484
|
+
/* @__PURE__ */ m(Co, { className: "w-3 h-3 text-gray-400" })
|
|
1182
2485
|
]
|
|
1183
2486
|
}),
|
|
1184
|
-
items:
|
|
2487
|
+
items: d,
|
|
1185
2488
|
getKey: (e) => e.code,
|
|
1186
2489
|
onSelect: (e) => _?.(e.code),
|
|
1187
|
-
renderItem: (e) => /* @__PURE__ */
|
|
2490
|
+
renderItem: (e) => /* @__PURE__ */ h("span", {
|
|
1188
2491
|
className: "flex items-center gap-2",
|
|
1189
|
-
children: [e.flag && /* @__PURE__ */
|
|
2492
|
+
children: [e.flag && /* @__PURE__ */ m("span", {
|
|
1190
2493
|
className: "text-base",
|
|
1191
2494
|
children: e.flag
|
|
1192
|
-
}), /* @__PURE__ */
|
|
2495
|
+
}), /* @__PURE__ */ m("span", { children: e.label })]
|
|
1193
2496
|
})
|
|
1194
2497
|
}),
|
|
1195
|
-
(
|
|
1196
|
-
/* @__PURE__ */
|
|
2498
|
+
(c.length > 0 || d.length > 0) && /* @__PURE__ */ m("div", { className: "w-px h-5 bg-gray-200 mx-1" }),
|
|
2499
|
+
/* @__PURE__ */ m("button", {
|
|
1197
2500
|
onClick: s,
|
|
1198
2501
|
className: "flex items-center gap-1.5 px-2.5 py-1.5 rounded-md text-sm text-gray-600 hover:bg-gray-50 transition-colors",
|
|
1199
2502
|
"aria-label": a ? "My account" : "Sign in",
|
|
1200
|
-
children: a ? /* @__PURE__ */
|
|
2503
|
+
children: a ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
|
|
1201
2504
|
className: "w-6 h-6 rounded-full bg-primary-600 text-white flex items-center justify-center text-xs font-bold",
|
|
1202
2505
|
children: (o ?? "U")[0].toUpperCase()
|
|
1203
|
-
}), o && /* @__PURE__ */
|
|
2506
|
+
}), o && /* @__PURE__ */ m("span", {
|
|
1204
2507
|
className: "hidden sm:block font-medium max-w-32 truncate",
|
|
1205
2508
|
children: o
|
|
1206
|
-
})] }) : /* @__PURE__ */
|
|
2509
|
+
})] }) : /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(wo, { className: "w-5 h-5" }), /* @__PURE__ */ m("span", {
|
|
1207
2510
|
className: "hidden sm:block font-medium",
|
|
1208
2511
|
children: "Přihlásit se"
|
|
1209
2512
|
})] })
|
|
1210
2513
|
}),
|
|
1211
|
-
/* @__PURE__ */
|
|
2514
|
+
/* @__PURE__ */ h("button", {
|
|
1212
2515
|
onClick: i,
|
|
1213
2516
|
className: "relative flex items-center gap-1.5 px-2.5 py-1.5 rounded-md text-sm text-gray-600 hover:bg-gray-50 transition-colors",
|
|
1214
2517
|
"aria-label": `Cart, ${r} items`,
|
|
1215
2518
|
children: [
|
|
1216
|
-
/* @__PURE__ */
|
|
1217
|
-
/* @__PURE__ */
|
|
2519
|
+
/* @__PURE__ */ m(To, { className: "w-5 h-5" }),
|
|
2520
|
+
/* @__PURE__ */ m("span", {
|
|
1218
2521
|
className: "hidden sm:block font-medium",
|
|
1219
2522
|
children: "Košík"
|
|
1220
2523
|
}),
|
|
1221
|
-
r > 0 && /* @__PURE__ */
|
|
2524
|
+
r > 0 && /* @__PURE__ */ m("span", {
|
|
1222
2525
|
className: "absolute -top-0.5 -right-0.5 min-w-4.5 h-4.5 flex items-center justify-center rounded-full bg-primary-600 text-white text-[10px] font-bold leading-none px-1",
|
|
1223
2526
|
children: r > 99 ? "99+" : r
|
|
1224
2527
|
})
|
|
@@ -1231,45 +2534,45 @@ function Ce({ logo: e, searchPlaceholder: t = "Hledat produkty…", onSearch: n,
|
|
|
1231
2534
|
})
|
|
1232
2535
|
});
|
|
1233
2536
|
}
|
|
1234
|
-
function
|
|
1235
|
-
return /* @__PURE__ */
|
|
2537
|
+
function Co({ className: e }) {
|
|
2538
|
+
return /* @__PURE__ */ m("svg", {
|
|
1236
2539
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1237
2540
|
fill: "none",
|
|
1238
2541
|
viewBox: "0 0 24 24",
|
|
1239
2542
|
strokeWidth: 2,
|
|
1240
2543
|
stroke: "currentColor",
|
|
1241
2544
|
className: e,
|
|
1242
|
-
children: /* @__PURE__ */
|
|
2545
|
+
children: /* @__PURE__ */ m("path", {
|
|
1243
2546
|
strokeLinecap: "round",
|
|
1244
2547
|
strokeLinejoin: "round",
|
|
1245
2548
|
d: "M19.5 8.25l-7.5 7.5-7.5-7.5"
|
|
1246
2549
|
})
|
|
1247
2550
|
});
|
|
1248
2551
|
}
|
|
1249
|
-
function
|
|
1250
|
-
return /* @__PURE__ */
|
|
2552
|
+
function wo({ className: e }) {
|
|
2553
|
+
return /* @__PURE__ */ m("svg", {
|
|
1251
2554
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1252
2555
|
fill: "none",
|
|
1253
2556
|
viewBox: "0 0 24 24",
|
|
1254
2557
|
strokeWidth: 1.5,
|
|
1255
2558
|
stroke: "currentColor",
|
|
1256
2559
|
className: e,
|
|
1257
|
-
children: /* @__PURE__ */
|
|
2560
|
+
children: /* @__PURE__ */ m("path", {
|
|
1258
2561
|
strokeLinecap: "round",
|
|
1259
2562
|
strokeLinejoin: "round",
|
|
1260
2563
|
d: "M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"
|
|
1261
2564
|
})
|
|
1262
2565
|
});
|
|
1263
2566
|
}
|
|
1264
|
-
function
|
|
1265
|
-
return /* @__PURE__ */
|
|
2567
|
+
function To({ className: e }) {
|
|
2568
|
+
return /* @__PURE__ */ m("svg", {
|
|
1266
2569
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1267
2570
|
fill: "none",
|
|
1268
2571
|
viewBox: "0 0 24 24",
|
|
1269
2572
|
strokeWidth: 1.5,
|
|
1270
2573
|
stroke: "currentColor",
|
|
1271
2574
|
className: e,
|
|
1272
|
-
children: /* @__PURE__ */
|
|
2575
|
+
children: /* @__PURE__ */ m("path", {
|
|
1273
2576
|
strokeLinecap: "round",
|
|
1274
2577
|
strokeLinejoin: "round",
|
|
1275
2578
|
d: "M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 00-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 00-16.536-1.84M7.5 14.25L5.106 5.272M6 20.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm12.75 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z"
|
|
@@ -1278,58 +2581,58 @@ function Te({ className: e }) {
|
|
|
1278
2581
|
}
|
|
1279
2582
|
//#endregion
|
|
1280
2583
|
//#region src/components/CategoryTree/CategoryTree.tsx
|
|
1281
|
-
function
|
|
1282
|
-
let o = e.children && e.children.length > 0, [s,
|
|
1283
|
-
return /* @__PURE__ */
|
|
2584
|
+
function Eo({ node: e, activeId: t, onSelect: n, showCounts: r, depth: i, defaultExpandAll: a }) {
|
|
2585
|
+
let o = e.children && e.children.length > 0, [s, c] = f(a || Do(e, t)), l = e.id === t;
|
|
2586
|
+
return /* @__PURE__ */ h("li", { children: [/* @__PURE__ */ h("div", {
|
|
1284
2587
|
className: [
|
|
1285
2588
|
"group flex items-center gap-1.5 rounded-lg px-2 py-1.5 cursor-pointer select-none",
|
|
1286
2589
|
"transition-colors text-sm",
|
|
1287
|
-
|
|
2590
|
+
l ? "bg-primary-50 text-primary-700 font-medium" : "text-gray-700 hover:bg-gray-50 hover:text-gray-900",
|
|
1288
2591
|
i > 0 ? `ml-${Math.min(i * 4, 8)}` : ""
|
|
1289
2592
|
].filter(Boolean).join(" "),
|
|
1290
2593
|
style: i > 0 ? { marginLeft: i * 16 } : void 0,
|
|
1291
2594
|
onClick: () => {
|
|
1292
|
-
n(e), o &&
|
|
2595
|
+
n(e), o && c((e) => !e);
|
|
1293
2596
|
},
|
|
1294
2597
|
role: "button",
|
|
1295
2598
|
tabIndex: 0,
|
|
1296
2599
|
onKeyDown: (t) => {
|
|
1297
|
-
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e), o &&
|
|
2600
|
+
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e), o && c((e) => !e));
|
|
1298
2601
|
},
|
|
1299
2602
|
"aria-expanded": o ? s : void 0,
|
|
1300
2603
|
children: [
|
|
1301
|
-
o ? /* @__PURE__ */
|
|
2604
|
+
o ? /* @__PURE__ */ m("span", {
|
|
1302
2605
|
className: `shrink-0 text-gray-400 transition-transform duration-150 ${s ? "rotate-90" : ""}`,
|
|
1303
|
-
children: /* @__PURE__ */
|
|
2606
|
+
children: /* @__PURE__ */ m("svg", {
|
|
1304
2607
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1305
2608
|
fill: "none",
|
|
1306
2609
|
viewBox: "0 0 24 24",
|
|
1307
2610
|
strokeWidth: 2,
|
|
1308
2611
|
stroke: "currentColor",
|
|
1309
2612
|
className: "w-3.5 h-3.5",
|
|
1310
|
-
children: /* @__PURE__ */
|
|
2613
|
+
children: /* @__PURE__ */ m("path", {
|
|
1311
2614
|
strokeLinecap: "round",
|
|
1312
2615
|
strokeLinejoin: "round",
|
|
1313
2616
|
d: "M8.25 4.5l7.5 7.5-7.5 7.5"
|
|
1314
2617
|
})
|
|
1315
2618
|
})
|
|
1316
|
-
}) : /* @__PURE__ */
|
|
1317
|
-
e.icon && /* @__PURE__ */
|
|
2619
|
+
}) : /* @__PURE__ */ m("span", { className: "w-3.5 shrink-0" }),
|
|
2620
|
+
e.icon && /* @__PURE__ */ m("span", {
|
|
1318
2621
|
className: "text-base leading-none",
|
|
1319
2622
|
children: e.icon
|
|
1320
2623
|
}),
|
|
1321
|
-
/* @__PURE__ */
|
|
2624
|
+
/* @__PURE__ */ m("span", {
|
|
1322
2625
|
className: "flex-1 truncate",
|
|
1323
2626
|
children: e.label
|
|
1324
2627
|
}),
|
|
1325
|
-
r && e.count !== void 0 && /* @__PURE__ */
|
|
1326
|
-
className: `text-xs rounded-full px-1.5 py-0.5 font-medium ${
|
|
2628
|
+
r && e.count !== void 0 && /* @__PURE__ */ m("span", {
|
|
2629
|
+
className: `text-xs rounded-full px-1.5 py-0.5 font-medium ${l ? "bg-primary-100 text-primary-600" : "bg-gray-100 text-gray-500"}`,
|
|
1327
2630
|
children: e.count
|
|
1328
2631
|
})
|
|
1329
2632
|
]
|
|
1330
|
-
}), o && s && /* @__PURE__ */
|
|
2633
|
+
}), o && s && /* @__PURE__ */ m("ul", {
|
|
1331
2634
|
role: "group",
|
|
1332
|
-
children: e.children.map((e) => /* @__PURE__ */
|
|
2635
|
+
children: e.children.map((e) => /* @__PURE__ */ m(Eo, {
|
|
1333
2636
|
node: e,
|
|
1334
2637
|
activeId: t,
|
|
1335
2638
|
onSelect: n,
|
|
@@ -1339,19 +2642,19 @@ function Ee({ node: e, activeId: t, onSelect: n, showCounts: r, depth: i, defaul
|
|
|
1339
2642
|
}, e.id))
|
|
1340
2643
|
})] });
|
|
1341
2644
|
}
|
|
1342
|
-
function
|
|
1343
|
-
return !t || !e.children ? !1 : e.children.some((e) => e.id === t ||
|
|
2645
|
+
function Do(e, t) {
|
|
2646
|
+
return !t || !e.children ? !1 : e.children.some((e) => e.id === t || Do(e, t));
|
|
1344
2647
|
}
|
|
1345
|
-
function
|
|
2648
|
+
function Oo({ categories: e, activeId: t, onSelect: n, showCounts: r = !0, defaultExpandAll: i = !1, className: a = "", ...o }) {
|
|
1346
2649
|
let s = (e) => n?.(e);
|
|
1347
|
-
return /* @__PURE__ */
|
|
2650
|
+
return /* @__PURE__ */ m("nav", {
|
|
1348
2651
|
"aria-label": "Category navigation",
|
|
1349
2652
|
className: ["w-full", a].filter(Boolean).join(" "),
|
|
1350
2653
|
...o,
|
|
1351
|
-
children: /* @__PURE__ */
|
|
2654
|
+
children: /* @__PURE__ */ m("ul", {
|
|
1352
2655
|
role: "tree",
|
|
1353
2656
|
className: "space-y-0.5",
|
|
1354
|
-
children: e.map((e) => /* @__PURE__ */
|
|
2657
|
+
children: e.map((e) => /* @__PURE__ */ m(Eo, {
|
|
1355
2658
|
node: e,
|
|
1356
2659
|
activeId: t,
|
|
1357
2660
|
onSelect: s,
|
|
@@ -1364,59 +2667,59 @@ function Oe({ categories: e, activeId: t, onSelect: n, showCounts: r = !0, defau
|
|
|
1364
2667
|
}
|
|
1365
2668
|
//#endregion
|
|
1366
2669
|
//#region src/components/MegaMenu/MegaMenu.tsx
|
|
1367
|
-
function
|
|
1368
|
-
return e.columns?.length ? /* @__PURE__ */
|
|
2670
|
+
function ko({ item: e, onNavigate: t, onClose: n }) {
|
|
2671
|
+
return e.columns?.length ? /* @__PURE__ */ m("div", {
|
|
1369
2672
|
className: "absolute left-0 right-0 top-full z-50 bg-white border-b border-gray-200 shadow-lg",
|
|
1370
|
-
children: /* @__PURE__ */
|
|
2673
|
+
children: /* @__PURE__ */ h("div", {
|
|
1371
2674
|
className: "max-w-7xl mx-auto px-4 py-6 flex gap-8",
|
|
1372
|
-
children: [/* @__PURE__ */
|
|
2675
|
+
children: [/* @__PURE__ */ m("div", {
|
|
1373
2676
|
className: "flex-1 grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6",
|
|
1374
|
-
children: e.columns.map((e, r) => /* @__PURE__ */
|
|
2677
|
+
children: e.columns.map((e, r) => /* @__PURE__ */ h("div", { children: [e.heading && /* @__PURE__ */ m("p", {
|
|
1375
2678
|
className: "text-xs font-semibold uppercase tracking-wider text-gray-400 mb-2",
|
|
1376
2679
|
children: e.heading
|
|
1377
|
-
}), /* @__PURE__ */
|
|
2680
|
+
}), /* @__PURE__ */ m("ul", {
|
|
1378
2681
|
className: "space-y-1",
|
|
1379
|
-
children: e.items.map((e) => /* @__PURE__ */
|
|
2682
|
+
children: e.items.map((e) => /* @__PURE__ */ m("li", { children: /* @__PURE__ */ h("button", {
|
|
1380
2683
|
className: "flex items-center gap-1.5 text-sm text-gray-700 hover:text-primary-600 transition-colors py-0.5",
|
|
1381
2684
|
onClick: () => {
|
|
1382
2685
|
t(e), n();
|
|
1383
2686
|
},
|
|
1384
|
-
children: [e.label, e.badge && /* @__PURE__ */
|
|
2687
|
+
children: [e.label, e.badge && /* @__PURE__ */ m("span", {
|
|
1385
2688
|
className: "text-[10px] font-semibold px-1.5 py-0.5 rounded-full bg-danger-50 text-danger-600 leading-none",
|
|
1386
2689
|
children: e.badge
|
|
1387
2690
|
})]
|
|
1388
2691
|
}) }, e.id))
|
|
1389
2692
|
})] }, r))
|
|
1390
|
-
}), e.featured && /* @__PURE__ */
|
|
2693
|
+
}), e.featured && /* @__PURE__ */ m("div", {
|
|
1391
2694
|
className: "w-52 shrink-0",
|
|
1392
|
-
children: /* @__PURE__ */
|
|
2695
|
+
children: /* @__PURE__ */ h("button", {
|
|
1393
2696
|
className: "group block w-full rounded-xl overflow-hidden border border-gray-100 text-left hover:shadow-md transition-shadow",
|
|
1394
2697
|
onClick: () => {
|
|
1395
2698
|
t(e), n();
|
|
1396
2699
|
},
|
|
1397
|
-
children: [e.featured.image ? /* @__PURE__ */
|
|
2700
|
+
children: [e.featured.image ? /* @__PURE__ */ m("img", {
|
|
1398
2701
|
src: e.featured.image,
|
|
1399
2702
|
alt: e.featured.title,
|
|
1400
2703
|
className: "w-full h-28 object-cover"
|
|
1401
|
-
}) : /* @__PURE__ */
|
|
2704
|
+
}) : /* @__PURE__ */ m("div", {
|
|
1402
2705
|
className: "w-full h-28 bg-linear-to-br from-primary-100 to-primary-200 flex items-center justify-center text-4xl",
|
|
1403
2706
|
children: e.icon ?? "🛍️"
|
|
1404
|
-
}), /* @__PURE__ */
|
|
2707
|
+
}), /* @__PURE__ */ h("div", {
|
|
1405
2708
|
className: "p-3",
|
|
1406
2709
|
children: [
|
|
1407
|
-
e.featured.eyebrow && /* @__PURE__ */
|
|
2710
|
+
e.featured.eyebrow && /* @__PURE__ */ m("p", {
|
|
1408
2711
|
className: "text-[10px] font-semibold uppercase tracking-wider text-primary-500 mb-0.5",
|
|
1409
2712
|
children: e.featured.eyebrow
|
|
1410
2713
|
}),
|
|
1411
|
-
/* @__PURE__ */
|
|
2714
|
+
/* @__PURE__ */ m("p", {
|
|
1412
2715
|
className: "text-sm font-semibold text-gray-900 group-hover:text-primary-600 transition-colors",
|
|
1413
2716
|
children: e.featured.title
|
|
1414
2717
|
}),
|
|
1415
|
-
e.featured.description && /* @__PURE__ */
|
|
2718
|
+
e.featured.description && /* @__PURE__ */ m("p", {
|
|
1416
2719
|
className: "text-xs text-gray-500 mt-0.5 line-clamp-2",
|
|
1417
2720
|
children: e.featured.description
|
|
1418
2721
|
}),
|
|
1419
|
-
e.featured.cta && /* @__PURE__ */
|
|
2722
|
+
e.featured.cta && /* @__PURE__ */ h("span", {
|
|
1420
2723
|
className: "inline-block mt-2 text-xs font-medium text-primary-600",
|
|
1421
2724
|
children: [e.featured.cta, " →"]
|
|
1422
2725
|
})
|
|
@@ -1427,28 +2730,28 @@ function ke({ item: e, onNavigate: t, onClose: n }) {
|
|
|
1427
2730
|
})
|
|
1428
2731
|
}) : null;
|
|
1429
2732
|
}
|
|
1430
|
-
function
|
|
1431
|
-
let [r, i] =
|
|
2733
|
+
function Ao({ items: e, activeId: t, onNavigate: n }) {
|
|
2734
|
+
let [r, i] = f(null), a = d(null), o = (e) => {
|
|
1432
2735
|
a.current && clearTimeout(a.current), i(e);
|
|
1433
|
-
},
|
|
2736
|
+
}, s = () => {
|
|
1434
2737
|
a.current = setTimeout(() => i(null), 120);
|
|
1435
|
-
},
|
|
2738
|
+
}, c = () => {
|
|
1436
2739
|
a.current && clearTimeout(a.current);
|
|
1437
|
-
},
|
|
1438
|
-
return /* @__PURE__ */
|
|
2740
|
+
}, l = e.find((e) => e.id === r);
|
|
2741
|
+
return /* @__PURE__ */ h("nav", {
|
|
1439
2742
|
"aria-label": "Main navigation",
|
|
1440
2743
|
className: "relative bg-white border-b border-gray-100",
|
|
1441
|
-
onMouseLeave:
|
|
1442
|
-
children: [/* @__PURE__ */
|
|
2744
|
+
onMouseLeave: s,
|
|
2745
|
+
children: [/* @__PURE__ */ m("div", {
|
|
1443
2746
|
className: "max-w-7xl mx-auto px-4",
|
|
1444
|
-
children: /* @__PURE__ */
|
|
2747
|
+
children: /* @__PURE__ */ m("ul", {
|
|
1445
2748
|
className: "flex items-center gap-0",
|
|
1446
2749
|
role: "menubar",
|
|
1447
2750
|
children: e.map((e) => {
|
|
1448
2751
|
let a = !!e.columns?.length, s = r === e.id, c = t === e.id;
|
|
1449
|
-
return /* @__PURE__ */
|
|
2752
|
+
return /* @__PURE__ */ m("li", {
|
|
1450
2753
|
role: "none",
|
|
1451
|
-
children: /* @__PURE__ */
|
|
2754
|
+
children: /* @__PURE__ */ h("button", {
|
|
1452
2755
|
role: "menuitem",
|
|
1453
2756
|
"aria-haspopup": a ? "true" : void 0,
|
|
1454
2757
|
"aria-expanded": a ? s : void 0,
|
|
@@ -1464,19 +2767,19 @@ function Ae({ items: e, activeId: t, onNavigate: n }) {
|
|
|
1464
2767
|
a || (n?.(e), i(null));
|
|
1465
2768
|
},
|
|
1466
2769
|
children: [
|
|
1467
|
-
e.icon && /* @__PURE__ */
|
|
2770
|
+
e.icon && /* @__PURE__ */ m("span", {
|
|
1468
2771
|
className: "text-base leading-none",
|
|
1469
2772
|
children: e.icon
|
|
1470
2773
|
}),
|
|
1471
2774
|
e.label,
|
|
1472
|
-
a && /* @__PURE__ */
|
|
2775
|
+
a && /* @__PURE__ */ m("svg", {
|
|
1473
2776
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1474
2777
|
fill: "none",
|
|
1475
2778
|
viewBox: "0 0 24 24",
|
|
1476
2779
|
strokeWidth: 2,
|
|
1477
2780
|
stroke: "currentColor",
|
|
1478
2781
|
className: `w-3.5 h-3.5 transition-transform duration-150 ${s ? "rotate-180" : ""}`,
|
|
1479
|
-
children: /* @__PURE__ */
|
|
2782
|
+
children: /* @__PURE__ */ m("path", {
|
|
1480
2783
|
strokeLinecap: "round",
|
|
1481
2784
|
strokeLinejoin: "round",
|
|
1482
2785
|
d: "M19.5 8.25l-7.5 7.5-7.5-7.5"
|
|
@@ -1487,11 +2790,11 @@ function Ae({ items: e, activeId: t, onNavigate: n }) {
|
|
|
1487
2790
|
}, e.id);
|
|
1488
2791
|
})
|
|
1489
2792
|
})
|
|
1490
|
-
}),
|
|
1491
|
-
onMouseEnter:
|
|
1492
|
-
onMouseLeave:
|
|
1493
|
-
children: /* @__PURE__ */
|
|
1494
|
-
item:
|
|
2793
|
+
}), l?.columns?.length && /* @__PURE__ */ m("div", {
|
|
2794
|
+
onMouseEnter: c,
|
|
2795
|
+
onMouseLeave: s,
|
|
2796
|
+
children: /* @__PURE__ */ m(ko, {
|
|
2797
|
+
item: l,
|
|
1495
2798
|
onNavigate: (e) => n?.(e),
|
|
1496
2799
|
onClose: () => i(null)
|
|
1497
2800
|
})
|
|
@@ -1500,11 +2803,11 @@ function Ae({ items: e, activeId: t, onNavigate: n }) {
|
|
|
1500
2803
|
}
|
|
1501
2804
|
//#endregion
|
|
1502
2805
|
//#region src/components/BannerCarousel/BannerCarousel.tsx
|
|
1503
|
-
function
|
|
1504
|
-
let [
|
|
1505
|
-
|
|
1506
|
-
}, [b]), S = () => x(
|
|
1507
|
-
|
|
2806
|
+
function jo({ banners: e, autoPlay: t = !0, autoPlayInterval: n = 5e3, arrows: r = !0, dots: i = !0, className: a = "", aspectRatio: s = "3 / 1" }) {
|
|
2807
|
+
let [l, u] = f(0), [g, _] = f(!1), v = d(null), y = d(null), b = e.length, x = o((e) => {
|
|
2808
|
+
u((e % b + b) % b);
|
|
2809
|
+
}, [b]), S = () => x(l - 1), C = o(() => x(l + 1), [l, x]);
|
|
2810
|
+
c(() => {
|
|
1508
2811
|
if (!(!t || g || b <= 1)) return v.current = setInterval(C, n), () => {
|
|
1509
2812
|
v.current && clearInterval(v.current);
|
|
1510
2813
|
};
|
|
@@ -1515,7 +2818,7 @@ function je({ banners: e, autoPlay: t = !0, autoPlayInterval: n = 5e3, arrows: a
|
|
|
1515
2818
|
C,
|
|
1516
2819
|
b
|
|
1517
2820
|
]);
|
|
1518
|
-
let w =
|
|
2821
|
+
let w = d(null), T = (e) => {
|
|
1519
2822
|
w.current = e.touches[0].clientX;
|
|
1520
2823
|
}, E = (e) => {
|
|
1521
2824
|
if (w.current === null) return;
|
|
@@ -1523,50 +2826,50 @@ function je({ banners: e, autoPlay: t = !0, autoPlayInterval: n = 5e3, arrows: a
|
|
|
1523
2826
|
Math.abs(t) > 50 && (t < 0 ? C() : S()), w.current = null;
|
|
1524
2827
|
};
|
|
1525
2828
|
if (b === 0) return null;
|
|
1526
|
-
let D = e[
|
|
1527
|
-
return /* @__PURE__ */
|
|
1528
|
-
className: ["relative overflow-hidden rounded-xl",
|
|
1529
|
-
style: { aspectRatio:
|
|
2829
|
+
let D = e[l], O = D.textColor === "light" || !D.textColor;
|
|
2830
|
+
return /* @__PURE__ */ h("div", {
|
|
2831
|
+
className: ["relative overflow-hidden rounded-xl", a].filter(Boolean).join(" "),
|
|
2832
|
+
style: { aspectRatio: s },
|
|
1530
2833
|
onMouseEnter: () => _(!0),
|
|
1531
2834
|
onMouseLeave: () => _(!1),
|
|
1532
2835
|
onTouchStart: T,
|
|
1533
2836
|
onTouchEnd: E,
|
|
1534
2837
|
children: [
|
|
1535
|
-
/* @__PURE__ */
|
|
2838
|
+
/* @__PURE__ */ m("div", {
|
|
1536
2839
|
ref: y,
|
|
1537
2840
|
className: "relative w-full h-full",
|
|
1538
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
1539
|
-
"aria-hidden": t !==
|
|
1540
|
-
className: ["absolute inset-0 transition-opacity duration-700", t ===
|
|
2841
|
+
children: e.map((e, t) => /* @__PURE__ */ h("div", {
|
|
2842
|
+
"aria-hidden": t !== l,
|
|
2843
|
+
className: ["absolute inset-0 transition-opacity duration-700", t === l ? "opacity-100 z-10" : "opacity-0 z-0"].join(" "),
|
|
1541
2844
|
style: { background: e.backgroundImage ? `url(${e.backgroundImage}) center/cover no-repeat` : e.backgroundColor ?? "linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%)" },
|
|
1542
|
-
children: [e.backgroundImage && /* @__PURE__ */
|
|
2845
|
+
children: [e.backgroundImage && /* @__PURE__ */ m("div", { className: "absolute inset-0 bg-gradient-to-r from-black/50 via-black/20 to-transparent" }), /* @__PURE__ */ h("div", {
|
|
1543
2846
|
className: "relative z-10 h-full flex items-center px-8 md:px-12 gap-8",
|
|
1544
|
-
children: [/* @__PURE__ */
|
|
2847
|
+
children: [/* @__PURE__ */ h("div", {
|
|
1545
2848
|
className: "flex-1 max-w-lg",
|
|
1546
2849
|
children: [
|
|
1547
|
-
e.eyebrow && /* @__PURE__ */
|
|
2850
|
+
e.eyebrow && /* @__PURE__ */ m("p", {
|
|
1548
2851
|
className: `text-xs font-semibold uppercase tracking-widest mb-2 ${O ? "text-white/70" : "text-gray-500"}`,
|
|
1549
2852
|
children: e.eyebrow
|
|
1550
2853
|
}),
|
|
1551
|
-
/* @__PURE__ */
|
|
2854
|
+
/* @__PURE__ */ m("h2", {
|
|
1552
2855
|
className: `text-2xl md:text-3xl lg:text-4xl font-bold leading-tight ${O ? "text-white" : "text-gray-900"}`,
|
|
1553
2856
|
children: e.title
|
|
1554
2857
|
}),
|
|
1555
|
-
e.subtitle && /* @__PURE__ */
|
|
2858
|
+
e.subtitle && /* @__PURE__ */ m("p", {
|
|
1556
2859
|
className: `mt-2 text-sm md:text-base ${O ? "text-white/80" : "text-gray-600"}`,
|
|
1557
2860
|
children: e.subtitle
|
|
1558
2861
|
}),
|
|
1559
|
-
e.ctaLabel && /* @__PURE__ */
|
|
2862
|
+
e.ctaLabel && /* @__PURE__ */ h("button", {
|
|
1560
2863
|
onClick: e.onCtaClick,
|
|
1561
2864
|
className: ["mt-5 inline-flex items-center gap-2 px-5 py-2.5 rounded-lg text-sm font-semibold transition-all", O ? "bg-white text-gray-900 hover:bg-gray-100" : "bg-primary-600 text-white hover:bg-primary-700"].join(" "),
|
|
1562
|
-
children: [e.ctaLabel, /* @__PURE__ */
|
|
2865
|
+
children: [e.ctaLabel, /* @__PURE__ */ m("svg", {
|
|
1563
2866
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1564
2867
|
fill: "none",
|
|
1565
2868
|
viewBox: "0 0 24 24",
|
|
1566
2869
|
strokeWidth: 2,
|
|
1567
2870
|
stroke: "currentColor",
|
|
1568
2871
|
className: "w-4 h-4",
|
|
1569
|
-
children: /* @__PURE__ */
|
|
2872
|
+
children: /* @__PURE__ */ m("path", {
|
|
1570
2873
|
strokeLinecap: "round",
|
|
1571
2874
|
strokeLinejoin: "round",
|
|
1572
2875
|
d: "M8.25 4.5l7.5 7.5-7.5 7.5"
|
|
@@ -1574,9 +2877,9 @@ function je({ banners: e, autoPlay: t = !0, autoPlayInterval: n = 5e3, arrows: a
|
|
|
1574
2877
|
})]
|
|
1575
2878
|
})
|
|
1576
2879
|
]
|
|
1577
|
-
}), e.sideImage && /* @__PURE__ */
|
|
2880
|
+
}), e.sideImage && /* @__PURE__ */ m("div", {
|
|
1578
2881
|
className: "hidden md:block flex-1 h-full flex items-end justify-end overflow-hidden",
|
|
1579
|
-
children: /* @__PURE__ */
|
|
2882
|
+
children: /* @__PURE__ */ m("img", {
|
|
1580
2883
|
src: e.sideImage,
|
|
1581
2884
|
alt: "",
|
|
1582
2885
|
className: "h-full w-auto object-contain object-bottom drop-shadow-2xl"
|
|
@@ -1585,78 +2888,78 @@ function je({ banners: e, autoPlay: t = !0, autoPlayInterval: n = 5e3, arrows: a
|
|
|
1585
2888
|
})]
|
|
1586
2889
|
}, e.id))
|
|
1587
2890
|
}),
|
|
1588
|
-
|
|
2891
|
+
r && b > 1 && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("button", {
|
|
1589
2892
|
onClick: S,
|
|
1590
2893
|
className: "absolute left-3 top-1/2 -translate-y-1/2 z-20 w-9 h-9 flex items-center justify-center rounded-full bg-black/30 text-white hover:bg-black/50 transition-colors backdrop-blur-sm",
|
|
1591
2894
|
"aria-label": "Previous banner",
|
|
1592
|
-
children: /* @__PURE__ */
|
|
2895
|
+
children: /* @__PURE__ */ m("svg", {
|
|
1593
2896
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1594
2897
|
fill: "none",
|
|
1595
2898
|
viewBox: "0 0 24 24",
|
|
1596
2899
|
strokeWidth: 2,
|
|
1597
2900
|
stroke: "currentColor",
|
|
1598
2901
|
className: "w-5 h-5",
|
|
1599
|
-
children: /* @__PURE__ */
|
|
2902
|
+
children: /* @__PURE__ */ m("path", {
|
|
1600
2903
|
strokeLinecap: "round",
|
|
1601
2904
|
strokeLinejoin: "round",
|
|
1602
2905
|
d: "M15.75 19.5L8.25 12l7.5-7.5"
|
|
1603
2906
|
})
|
|
1604
2907
|
})
|
|
1605
|
-
}), /* @__PURE__ */
|
|
2908
|
+
}), /* @__PURE__ */ m("button", {
|
|
1606
2909
|
onClick: C,
|
|
1607
2910
|
className: "absolute right-3 top-1/2 -translate-y-1/2 z-20 w-9 h-9 flex items-center justify-center rounded-full bg-black/30 text-white hover:bg-black/50 transition-colors backdrop-blur-sm",
|
|
1608
2911
|
"aria-label": "Next banner",
|
|
1609
|
-
children: /* @__PURE__ */
|
|
2912
|
+
children: /* @__PURE__ */ m("svg", {
|
|
1610
2913
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1611
2914
|
fill: "none",
|
|
1612
2915
|
viewBox: "0 0 24 24",
|
|
1613
2916
|
strokeWidth: 2,
|
|
1614
2917
|
stroke: "currentColor",
|
|
1615
2918
|
className: "w-5 h-5",
|
|
1616
|
-
children: /* @__PURE__ */
|
|
2919
|
+
children: /* @__PURE__ */ m("path", {
|
|
1617
2920
|
strokeLinecap: "round",
|
|
1618
2921
|
strokeLinejoin: "round",
|
|
1619
2922
|
d: "M8.25 4.5l7.5 7.5-7.5 7.5"
|
|
1620
2923
|
})
|
|
1621
2924
|
})
|
|
1622
2925
|
})] }),
|
|
1623
|
-
|
|
2926
|
+
i && b > 1 && /* @__PURE__ */ m("div", {
|
|
1624
2927
|
className: "absolute bottom-3 left-1/2 -translate-x-1/2 z-20 flex gap-1.5",
|
|
1625
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
2928
|
+
children: e.map((e, t) => /* @__PURE__ */ m("button", {
|
|
1626
2929
|
onClick: () => x(t),
|
|
1627
2930
|
"aria-label": `Go to slide ${t + 1}`,
|
|
1628
|
-
className: ["rounded-full transition-all duration-300", t ===
|
|
2931
|
+
className: ["rounded-full transition-all duration-300", t === l ? "w-5 h-2 bg-white" : "w-2 h-2 bg-white/50 hover:bg-white/80"].join(" ")
|
|
1629
2932
|
}, t))
|
|
1630
2933
|
}),
|
|
1631
|
-
t && b > 1 && /* @__PURE__ */
|
|
2934
|
+
t && b > 1 && /* @__PURE__ */ m("div", {
|
|
1632
2935
|
className: "absolute bottom-0 left-0 right-0 h-0.5 bg-white/20 z-20",
|
|
1633
|
-
children: /* @__PURE__ */
|
|
2936
|
+
children: /* @__PURE__ */ m("div", {
|
|
1634
2937
|
className: `h-full bg-white/60 ${g ? "" : "animate-progress"}`,
|
|
1635
2938
|
style: { animation: g ? "none" : `progress ${n}ms linear` }
|
|
1636
|
-
}, `${
|
|
2939
|
+
}, `${l}-${g}`)
|
|
1637
2940
|
})
|
|
1638
2941
|
]
|
|
1639
2942
|
});
|
|
1640
2943
|
}
|
|
1641
2944
|
//#endregion
|
|
1642
2945
|
//#region src/components/ProductCard/ProductCard.tsx
|
|
1643
|
-
function
|
|
1644
|
-
return /* @__PURE__ */
|
|
2946
|
+
function Mo({ filled: e }) {
|
|
2947
|
+
return /* @__PURE__ */ m("svg", {
|
|
1645
2948
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1646
2949
|
viewBox: "0 0 24 24",
|
|
1647
2950
|
className: `w-3.5 h-3.5 ${e ? "fill-amber-400 stroke-amber-400" : "fill-gray-200 stroke-gray-300"}`,
|
|
1648
2951
|
strokeWidth: 1,
|
|
1649
|
-
children: /* @__PURE__ */
|
|
2952
|
+
children: /* @__PURE__ */ m("path", {
|
|
1650
2953
|
strokeLinecap: "round",
|
|
1651
2954
|
strokeLinejoin: "round",
|
|
1652
2955
|
d: "M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"
|
|
1653
2956
|
})
|
|
1654
2957
|
});
|
|
1655
2958
|
}
|
|
1656
|
-
function
|
|
1657
|
-
return /* @__PURE__ */
|
|
2959
|
+
function No({ value: e, count: t }) {
|
|
2960
|
+
return /* @__PURE__ */ h("div", {
|
|
1658
2961
|
className: "flex items-center gap-1",
|
|
1659
|
-
children: [/* @__PURE__ */
|
|
2962
|
+
children: [/* @__PURE__ */ m("div", {
|
|
1660
2963
|
className: "flex gap-0.5",
|
|
1661
2964
|
children: [
|
|
1662
2965
|
1,
|
|
@@ -1664,8 +2967,8 @@ function Ne({ value: e, count: t }) {
|
|
|
1664
2967
|
3,
|
|
1665
2968
|
4,
|
|
1666
2969
|
5
|
|
1667
|
-
].map((t) => /* @__PURE__ */
|
|
1668
|
-
}), t !== void 0 && /* @__PURE__ */
|
|
2970
|
+
].map((t) => /* @__PURE__ */ m(Mo, { filled: t <= Math.round(e) }, t))
|
|
2971
|
+
}), t !== void 0 && /* @__PURE__ */ h("span", {
|
|
1669
2972
|
className: "text-xs text-gray-400",
|
|
1670
2973
|
children: [
|
|
1671
2974
|
"(",
|
|
@@ -1675,54 +2978,54 @@ function Ne({ value: e, count: t }) {
|
|
|
1675
2978
|
})]
|
|
1676
2979
|
});
|
|
1677
2980
|
}
|
|
1678
|
-
function
|
|
2981
|
+
function Po(e) {
|
|
1679
2982
|
let t = e.toLowerCase();
|
|
1680
2983
|
return t === "sale" || t === "akce" ? "danger" : t === "new" || t === "nové" ? "primary" : t === "hot" ? "warning" : "default";
|
|
1681
2984
|
}
|
|
1682
|
-
function
|
|
2985
|
+
function Fo(e, t = "Kč") {
|
|
1683
2986
|
return `${e.toLocaleString("cs-CZ")} ${t}`;
|
|
1684
2987
|
}
|
|
1685
|
-
function
|
|
2988
|
+
function Io(e, t) {
|
|
1686
2989
|
return Math.round((1 - t / e) * 100);
|
|
1687
2990
|
}
|
|
1688
|
-
function
|
|
1689
|
-
let [s,
|
|
1690
|
-
return /* @__PURE__ */
|
|
2991
|
+
function Lo({ product: e, onAddToCart: t, onWishlistToggle: n, isWishlisted: r = !1, onProductClick: i, size: a = "default", className: o = "" }) {
|
|
2992
|
+
let [s, c] = f(!1), [l, u] = f(!1), d = e.originalPrice !== void 0 && e.originalPrice > e.price;
|
|
2993
|
+
return /* @__PURE__ */ h("article", {
|
|
1691
2994
|
className: [
|
|
1692
2995
|
"group relative flex flex-col bg-white rounded-xl border border-gray-200",
|
|
1693
2996
|
"hover:shadow-md transition-shadow duration-200 overflow-hidden cursor-pointer",
|
|
1694
2997
|
o
|
|
1695
2998
|
].filter(Boolean).join(" "),
|
|
1696
2999
|
onClick: () => i?.(e),
|
|
1697
|
-
onMouseEnter: () =>
|
|
1698
|
-
onMouseLeave: () =>
|
|
1699
|
-
children: [/* @__PURE__ */
|
|
3000
|
+
onMouseEnter: () => c(!0),
|
|
3001
|
+
onMouseLeave: () => c(!1),
|
|
3002
|
+
children: [/* @__PURE__ */ h("div", {
|
|
1700
3003
|
className: `relative overflow-hidden bg-gray-50 ${a === "compact" ? "aspect-square" : "aspect-4/3"}`,
|
|
1701
3004
|
children: [
|
|
1702
|
-
e.image ? /* @__PURE__ */
|
|
3005
|
+
e.image ? /* @__PURE__ */ m("img", {
|
|
1703
3006
|
src: s && e.imageHover ? e.imageHover : e.image,
|
|
1704
3007
|
alt: e.name,
|
|
1705
3008
|
className: "w-full h-full object-contain p-4 transition-transform duration-300 group-hover:scale-105"
|
|
1706
|
-
}) : /* @__PURE__ */
|
|
3009
|
+
}) : /* @__PURE__ */ m("div", {
|
|
1707
3010
|
className: "w-full h-full flex items-center justify-center text-5xl bg-linear-to-br from-gray-100 to-gray-200",
|
|
1708
3011
|
children: "🛍️"
|
|
1709
3012
|
}),
|
|
1710
|
-
e.badge && /* @__PURE__ */
|
|
3013
|
+
e.badge && /* @__PURE__ */ m("div", {
|
|
1711
3014
|
className: "absolute top-2 left-2",
|
|
1712
|
-
children: /* @__PURE__ */
|
|
1713
|
-
variant:
|
|
3015
|
+
children: /* @__PURE__ */ m(F, {
|
|
3016
|
+
variant: Po(e.badge),
|
|
1714
3017
|
size: "sm",
|
|
1715
|
-
children: e.badge === "sale" &&
|
|
3018
|
+
children: e.badge === "sale" && d ? `-${Io(e.originalPrice, e.price)}%` : e.badge
|
|
1716
3019
|
})
|
|
1717
3020
|
}),
|
|
1718
|
-
e.inStock === !1 && /* @__PURE__ */
|
|
3021
|
+
e.inStock === !1 && /* @__PURE__ */ m("div", {
|
|
1719
3022
|
className: "absolute inset-0 bg-white/70 flex items-center justify-center",
|
|
1720
|
-
children: /* @__PURE__ */
|
|
3023
|
+
children: /* @__PURE__ */ m("span", {
|
|
1721
3024
|
className: "text-sm font-semibold text-gray-500 bg-white/90 px-3 py-1 rounded-full border border-gray-200",
|
|
1722
3025
|
children: "Vyprodáno"
|
|
1723
3026
|
})
|
|
1724
3027
|
}),
|
|
1725
|
-
/* @__PURE__ */
|
|
3028
|
+
/* @__PURE__ */ m("button", {
|
|
1726
3029
|
onClick: (t) => {
|
|
1727
3030
|
t.stopPropagation(), n?.(e);
|
|
1728
3031
|
},
|
|
@@ -1733,41 +3036,41 @@ function Le({ product: e, onAddToCart: t, onWishlistToggle: n, isWishlisted: r =
|
|
|
1733
3036
|
"opacity-0 group-hover:opacity-100 focus:opacity-100",
|
|
1734
3037
|
r ? "text-danger-500" : "text-gray-400 hover:text-danger-400"
|
|
1735
3038
|
].join(" "),
|
|
1736
|
-
children: /* @__PURE__ */
|
|
3039
|
+
children: /* @__PURE__ */ m("svg", {
|
|
1737
3040
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1738
3041
|
viewBox: "0 0 24 24",
|
|
1739
3042
|
strokeWidth: 1.5,
|
|
1740
3043
|
stroke: "currentColor",
|
|
1741
3044
|
className: `w-4 h-4 ${r ? "fill-current" : "fill-none"}`,
|
|
1742
|
-
children: /* @__PURE__ */
|
|
3045
|
+
children: /* @__PURE__ */ m("path", {
|
|
1743
3046
|
strokeLinecap: "round",
|
|
1744
3047
|
strokeLinejoin: "round",
|
|
1745
3048
|
d: "M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z"
|
|
1746
3049
|
})
|
|
1747
3050
|
})
|
|
1748
3051
|
}),
|
|
1749
|
-
/* @__PURE__ */
|
|
3052
|
+
/* @__PURE__ */ m("div", {
|
|
1750
3053
|
className: ["absolute bottom-0 left-0 right-0 p-2 transition-transform duration-200", s ? "translate-y-0" : "translate-y-full"].join(" "),
|
|
1751
|
-
children: /* @__PURE__ */
|
|
3054
|
+
children: /* @__PURE__ */ m(k, {
|
|
1752
3055
|
variant: "primary",
|
|
1753
3056
|
size: "sm",
|
|
1754
3057
|
fullWidth: !0,
|
|
1755
3058
|
loading: !1,
|
|
1756
3059
|
disabled: e.inStock === !1,
|
|
1757
3060
|
onClick: (n) => {
|
|
1758
|
-
n.stopPropagation(), t?.(e),
|
|
3061
|
+
n.stopPropagation(), t?.(e), u(!0), setTimeout(() => u(!1), 1500);
|
|
1759
3062
|
},
|
|
1760
3063
|
className: "shadow-lg",
|
|
1761
|
-
children:
|
|
3064
|
+
children: l ? /* @__PURE__ */ h("span", {
|
|
1762
3065
|
className: "flex items-center gap-1.5",
|
|
1763
|
-
children: [/* @__PURE__ */
|
|
3066
|
+
children: [/* @__PURE__ */ m("svg", {
|
|
1764
3067
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1765
3068
|
fill: "none",
|
|
1766
3069
|
viewBox: "0 0 24 24",
|
|
1767
3070
|
strokeWidth: 2,
|
|
1768
3071
|
stroke: "currentColor",
|
|
1769
3072
|
className: "w-4 h-4",
|
|
1770
|
-
children: /* @__PURE__ */
|
|
3073
|
+
children: /* @__PURE__ */ m("path", {
|
|
1771
3074
|
strokeLinecap: "round",
|
|
1772
3075
|
strokeLinejoin: "round",
|
|
1773
3076
|
d: "M4.5 12.75l6 6 9-13.5"
|
|
@@ -1777,36 +3080,36 @@ function Le({ product: e, onAddToCart: t, onWishlistToggle: n, isWishlisted: r =
|
|
|
1777
3080
|
})
|
|
1778
3081
|
})
|
|
1779
3082
|
]
|
|
1780
|
-
}), /* @__PURE__ */
|
|
3083
|
+
}), /* @__PURE__ */ h("div", {
|
|
1781
3084
|
className: `flex flex-col gap-1.5 ${a === "compact" ? "p-3" : "p-4"}`,
|
|
1782
3085
|
children: [
|
|
1783
|
-
e.variants && e.variants.length > 0 && /* @__PURE__ */
|
|
3086
|
+
e.variants && e.variants.length > 0 && /* @__PURE__ */ h("div", {
|
|
1784
3087
|
className: "flex gap-1",
|
|
1785
|
-
children: [e.variants.slice(0, 5).map((e) => /* @__PURE__ */
|
|
3088
|
+
children: [e.variants.slice(0, 5).map((e) => /* @__PURE__ */ m("span", {
|
|
1786
3089
|
title: e.label,
|
|
1787
3090
|
className: "w-4 h-4 rounded-full border border-gray-300 shrink-0",
|
|
1788
3091
|
style: { backgroundColor: e.color ?? "#ccc" }
|
|
1789
|
-
}, e.id)), e.variants.length > 5 && /* @__PURE__ */
|
|
3092
|
+
}, e.id)), e.variants.length > 5 && /* @__PURE__ */ h("span", {
|
|
1790
3093
|
className: "text-xs text-gray-400",
|
|
1791
3094
|
children: ["+", e.variants.length - 5]
|
|
1792
3095
|
})]
|
|
1793
3096
|
}),
|
|
1794
|
-
/* @__PURE__ */
|
|
3097
|
+
/* @__PURE__ */ m("h3", {
|
|
1795
3098
|
className: `font-medium text-gray-900 leading-snug line-clamp-2 group-hover:text-primary-600 transition-colors ${a === "compact" ? "text-xs" : "text-sm"}`,
|
|
1796
3099
|
children: e.name
|
|
1797
3100
|
}),
|
|
1798
|
-
e.rating !== void 0 && /* @__PURE__ */
|
|
3101
|
+
e.rating !== void 0 && /* @__PURE__ */ m(No, {
|
|
1799
3102
|
value: e.rating,
|
|
1800
3103
|
count: e.reviewCount
|
|
1801
3104
|
}),
|
|
1802
|
-
/* @__PURE__ */
|
|
3105
|
+
/* @__PURE__ */ h("div", {
|
|
1803
3106
|
className: "flex items-baseline gap-2 mt-auto pt-1",
|
|
1804
|
-
children: [/* @__PURE__ */
|
|
3107
|
+
children: [/* @__PURE__ */ m("span", {
|
|
1805
3108
|
className: `font-bold text-gray-900 ${a === "compact" ? "text-base" : "text-lg"}`,
|
|
1806
|
-
children:
|
|
1807
|
-
}),
|
|
3109
|
+
children: Fo(e.price, e.currency)
|
|
3110
|
+
}), d && /* @__PURE__ */ m("span", {
|
|
1808
3111
|
className: "text-sm text-gray-400 line-through",
|
|
1809
|
-
children:
|
|
3112
|
+
children: Fo(e.originalPrice, e.currency)
|
|
1810
3113
|
})]
|
|
1811
3114
|
})
|
|
1812
3115
|
]
|
|
@@ -1815,12 +3118,12 @@ function Le({ product: e, onAddToCart: t, onWishlistToggle: n, isWishlisted: r =
|
|
|
1815
3118
|
}
|
|
1816
3119
|
//#endregion
|
|
1817
3120
|
//#region src/components/ProductGrid/ProductGrid.tsx
|
|
1818
|
-
var
|
|
3121
|
+
var Ro = {
|
|
1819
3122
|
2: "grid-cols-2",
|
|
1820
3123
|
3: "grid-cols-2 md:grid-cols-3",
|
|
1821
3124
|
4: "grid-cols-2 sm:grid-cols-3 lg:grid-cols-4",
|
|
1822
3125
|
5: "grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5"
|
|
1823
|
-
},
|
|
3126
|
+
}, zo = [
|
|
1824
3127
|
{
|
|
1825
3128
|
value: "newest",
|
|
1826
3129
|
label: "Nejnovější"
|
|
@@ -1842,50 +3145,50 @@ var Re = {
|
|
|
1842
3145
|
label: "Bestsellery"
|
|
1843
3146
|
}
|
|
1844
3147
|
];
|
|
1845
|
-
function
|
|
1846
|
-
return /* @__PURE__ */
|
|
3148
|
+
function Bo() {
|
|
3149
|
+
return /* @__PURE__ */ h("div", {
|
|
1847
3150
|
className: "rounded-xl border border-gray-100 overflow-hidden animate-pulse",
|
|
1848
|
-
children: [/* @__PURE__ */
|
|
3151
|
+
children: [/* @__PURE__ */ m("div", { className: "aspect-4/3 bg-gray-200" }), /* @__PURE__ */ h("div", {
|
|
1849
3152
|
className: "p-4 space-y-2",
|
|
1850
3153
|
children: [
|
|
1851
|
-
/* @__PURE__ */
|
|
1852
|
-
/* @__PURE__ */
|
|
1853
|
-
/* @__PURE__ */
|
|
3154
|
+
/* @__PURE__ */ m("div", { className: "h-3 bg-gray-200 rounded w-3/4" }),
|
|
3155
|
+
/* @__PURE__ */ m("div", { className: "h-3 bg-gray-200 rounded w-1/2" }),
|
|
3156
|
+
/* @__PURE__ */ m("div", { className: "h-5 bg-gray-200 rounded w-1/3 mt-2" })
|
|
1854
3157
|
]
|
|
1855
3158
|
})]
|
|
1856
3159
|
});
|
|
1857
3160
|
}
|
|
1858
|
-
function
|
|
3161
|
+
function Vo({ products: e, totalCount: t, page: n = 1, onPageChange: r, perPage: i = 20, columns: a = 4, sortOptions: o = zo, selectedSort: s, onSortChange: c, activeFilters: l = [], onRemoveFilter: u, onClearFilters: d, loading: f = !1, emptyState: p, onAddToCart: g, onWishlistToggle: _, onProductClick: v, wishlisted: y = [], className: b = "" }) {
|
|
1859
3162
|
let x = t ? Math.ceil(t / i) : void 0, S = a >= 5 ? "compact" : "default";
|
|
1860
|
-
return /* @__PURE__ */
|
|
3163
|
+
return /* @__PURE__ */ h("div", {
|
|
1861
3164
|
className: ["w-full", b].filter(Boolean).join(" "),
|
|
1862
3165
|
children: [
|
|
1863
|
-
/* @__PURE__ */
|
|
3166
|
+
/* @__PURE__ */ h("div", {
|
|
1864
3167
|
className: "flex flex-wrap items-center justify-between gap-3 mb-4",
|
|
1865
|
-
children: [/* @__PURE__ */
|
|
3168
|
+
children: [/* @__PURE__ */ h("div", {
|
|
1866
3169
|
className: "flex flex-wrap items-center gap-2",
|
|
1867
3170
|
children: [
|
|
1868
|
-
t !== void 0 && /* @__PURE__ */
|
|
3171
|
+
t !== void 0 && /* @__PURE__ */ h("span", {
|
|
1869
3172
|
className: "text-sm text-gray-500",
|
|
1870
|
-
children: [/* @__PURE__ */
|
|
3173
|
+
children: [/* @__PURE__ */ m("span", {
|
|
1871
3174
|
className: "font-semibold text-gray-900",
|
|
1872
3175
|
children: t
|
|
1873
3176
|
}), " produktů"]
|
|
1874
3177
|
}),
|
|
1875
|
-
l.map((e) => /* @__PURE__ */
|
|
3178
|
+
l.map((e) => /* @__PURE__ */ h("span", {
|
|
1876
3179
|
className: "inline-flex items-center gap-1 text-xs bg-primary-50 text-primary-700 border border-primary-200 rounded-full px-2.5 py-1",
|
|
1877
|
-
children: [e, /* @__PURE__ */
|
|
1878
|
-
onClick: () =>
|
|
3180
|
+
children: [e, /* @__PURE__ */ m("button", {
|
|
3181
|
+
onClick: () => u?.(e),
|
|
1879
3182
|
"aria-label": `Remove filter ${e}`,
|
|
1880
3183
|
className: "hover:text-primary-900 transition-colors",
|
|
1881
|
-
children: /* @__PURE__ */
|
|
3184
|
+
children: /* @__PURE__ */ m("svg", {
|
|
1882
3185
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1883
3186
|
fill: "none",
|
|
1884
3187
|
viewBox: "0 0 24 24",
|
|
1885
3188
|
strokeWidth: 2,
|
|
1886
3189
|
stroke: "currentColor",
|
|
1887
3190
|
className: "w-3 h-3",
|
|
1888
|
-
children: /* @__PURE__ */
|
|
3191
|
+
children: /* @__PURE__ */ m("path", {
|
|
1889
3192
|
strokeLinecap: "round",
|
|
1890
3193
|
strokeLinejoin: "round",
|
|
1891
3194
|
d: "M6 18L18 6M6 6l12 12"
|
|
@@ -1893,13 +3196,13 @@ function Ve({ products: e, totalCount: t, page: n = 1, onPageChange: r, perPage:
|
|
|
1893
3196
|
})
|
|
1894
3197
|
})]
|
|
1895
3198
|
}, e)),
|
|
1896
|
-
l.length > 1 && /* @__PURE__ */
|
|
1897
|
-
onClick:
|
|
3199
|
+
l.length > 1 && /* @__PURE__ */ m("button", {
|
|
3200
|
+
onClick: d,
|
|
1898
3201
|
className: "text-xs text-gray-400 hover:text-gray-600 underline underline-offset-2 transition-colors",
|
|
1899
3202
|
children: "Zrušit vše"
|
|
1900
3203
|
})
|
|
1901
3204
|
]
|
|
1902
|
-
}), /* @__PURE__ */
|
|
3205
|
+
}), /* @__PURE__ */ m(N, {
|
|
1903
3206
|
options: o,
|
|
1904
3207
|
value: s ?? "",
|
|
1905
3208
|
onChange: (e) => c?.(e.target.value),
|
|
@@ -1907,36 +3210,36 @@ function Ve({ products: e, totalCount: t, page: n = 1, onPageChange: r, perPage:
|
|
|
1907
3210
|
className: "text-sm"
|
|
1908
3211
|
})]
|
|
1909
3212
|
}),
|
|
1910
|
-
|
|
1911
|
-
className: `grid gap-4 ${
|
|
1912
|
-
children: Array.from({ length: i > 12 ? 12 : i }).map((e, t) => /* @__PURE__ */
|
|
1913
|
-
}) : e.length === 0 ? /* @__PURE__ */
|
|
3213
|
+
f ? /* @__PURE__ */ m("div", {
|
|
3214
|
+
className: `grid gap-4 ${Ro[a]}`,
|
|
3215
|
+
children: Array.from({ length: i > 12 ? 12 : i }).map((e, t) => /* @__PURE__ */ m(Bo, {}, t))
|
|
3216
|
+
}) : e.length === 0 ? /* @__PURE__ */ m("div", {
|
|
1914
3217
|
className: "py-16 text-center",
|
|
1915
|
-
children:
|
|
3218
|
+
children: p ?? /* @__PURE__ */ h("div", {
|
|
1916
3219
|
className: "space-y-2",
|
|
1917
3220
|
children: [
|
|
1918
|
-
/* @__PURE__ */
|
|
3221
|
+
/* @__PURE__ */ m("p", {
|
|
1919
3222
|
className: "text-4xl",
|
|
1920
3223
|
children: "🔍"
|
|
1921
3224
|
}),
|
|
1922
|
-
/* @__PURE__ */
|
|
3225
|
+
/* @__PURE__ */ m("p", {
|
|
1923
3226
|
className: "font-semibold text-gray-900",
|
|
1924
3227
|
children: "Žádné produkty nenalezeny"
|
|
1925
3228
|
}),
|
|
1926
|
-
/* @__PURE__ */
|
|
3229
|
+
/* @__PURE__ */ m("p", {
|
|
1927
3230
|
className: "text-sm text-gray-500",
|
|
1928
3231
|
children: "Zkuste upravit filtry nebo hledat jinak."
|
|
1929
3232
|
}),
|
|
1930
|
-
l.length > 0 && /* @__PURE__ */
|
|
1931
|
-
onClick:
|
|
3233
|
+
l.length > 0 && /* @__PURE__ */ m("button", {
|
|
3234
|
+
onClick: d,
|
|
1932
3235
|
className: "mt-3 text-sm text-primary-600 hover:underline",
|
|
1933
3236
|
children: "Zrušit všechny filtry"
|
|
1934
3237
|
})
|
|
1935
3238
|
]
|
|
1936
3239
|
})
|
|
1937
|
-
}) : /* @__PURE__ */
|
|
1938
|
-
className: `grid gap-4 ${
|
|
1939
|
-
children: e.map((e) => /* @__PURE__ */
|
|
3240
|
+
}) : /* @__PURE__ */ m("div", {
|
|
3241
|
+
className: `grid gap-4 ${Ro[a]}`,
|
|
3242
|
+
children: e.map((e) => /* @__PURE__ */ m(Lo, {
|
|
1940
3243
|
product: e,
|
|
1941
3244
|
size: S,
|
|
1942
3245
|
onAddToCart: g,
|
|
@@ -1945,9 +3248,9 @@ function Ve({ products: e, totalCount: t, page: n = 1, onPageChange: r, perPage:
|
|
|
1945
3248
|
isWishlisted: y.includes(e.id)
|
|
1946
3249
|
}, e.id))
|
|
1947
3250
|
}),
|
|
1948
|
-
x && x > 1 && r && /* @__PURE__ */
|
|
3251
|
+
x && x > 1 && r && /* @__PURE__ */ m("div", {
|
|
1949
3252
|
className: "flex justify-center mt-8",
|
|
1950
|
-
children: /* @__PURE__ */
|
|
3253
|
+
children: /* @__PURE__ */ m(Re, {
|
|
1951
3254
|
page: n,
|
|
1952
3255
|
totalPages: x,
|
|
1953
3256
|
onPageChange: r
|
|
@@ -1958,46 +3261,46 @@ function Ve({ products: e, totalCount: t, page: n = 1, onPageChange: r, perPage:
|
|
|
1958
3261
|
}
|
|
1959
3262
|
//#endregion
|
|
1960
3263
|
//#region src/components/common/ProductCarousel/ProductCarousel.tsx
|
|
1961
|
-
function
|
|
1962
|
-
let
|
|
1963
|
-
let e =
|
|
1964
|
-
e && (
|
|
3264
|
+
function Ho({ children: e, gap: t = 16, scrollStep: n = .8, className: r, ...i }) {
|
|
3265
|
+
let a = d(null), [o, s] = f(!1), [l, u] = f(!1), p = () => {
|
|
3266
|
+
let e = a.current;
|
|
3267
|
+
e && (s(e.scrollLeft > 1), u(e.scrollLeft < e.scrollWidth - e.clientWidth - 1));
|
|
1965
3268
|
};
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
let e =
|
|
3269
|
+
c(() => {
|
|
3270
|
+
p();
|
|
3271
|
+
let e = a.current;
|
|
1969
3272
|
if (!e) return;
|
|
1970
|
-
e.addEventListener("scroll",
|
|
1971
|
-
let t = new ResizeObserver(
|
|
3273
|
+
e.addEventListener("scroll", p, { passive: !0 });
|
|
3274
|
+
let t = new ResizeObserver(p);
|
|
1972
3275
|
return t.observe(e), () => {
|
|
1973
|
-
e.removeEventListener("scroll",
|
|
3276
|
+
e.removeEventListener("scroll", p), t.disconnect();
|
|
1974
3277
|
};
|
|
1975
3278
|
}, []);
|
|
1976
3279
|
let g = (e) => {
|
|
1977
|
-
let t =
|
|
3280
|
+
let t = a.current;
|
|
1978
3281
|
t && t.scrollBy({
|
|
1979
3282
|
left: e * t.clientWidth * n,
|
|
1980
3283
|
behavior: "smooth"
|
|
1981
3284
|
});
|
|
1982
3285
|
};
|
|
1983
|
-
return /* @__PURE__ */
|
|
1984
|
-
className: (0,
|
|
1985
|
-
...
|
|
3286
|
+
return /* @__PURE__ */ h("div", {
|
|
3287
|
+
className: (0, O.default)("carousel-wrapper", r),
|
|
3288
|
+
...i,
|
|
1986
3289
|
children: [
|
|
1987
|
-
/* @__PURE__ */
|
|
1988
|
-
ref:
|
|
3290
|
+
/* @__PURE__ */ m("div", {
|
|
3291
|
+
ref: a,
|
|
1989
3292
|
className: "product-carousel-viewport",
|
|
1990
|
-
children: /* @__PURE__ */
|
|
3293
|
+
children: /* @__PURE__ */ m("div", {
|
|
1991
3294
|
className: "product-carousel-track",
|
|
1992
3295
|
style: { gap: `${t}px` },
|
|
1993
3296
|
children: e
|
|
1994
3297
|
})
|
|
1995
3298
|
}),
|
|
1996
|
-
|
|
3299
|
+
o && /* @__PURE__ */ m(ze, {
|
|
1997
3300
|
direction: "prev",
|
|
1998
3301
|
onClick: () => g(-1)
|
|
1999
3302
|
}),
|
|
2000
|
-
|
|
3303
|
+
l && /* @__PURE__ */ m(ze, {
|
|
2001
3304
|
direction: "next",
|
|
2002
3305
|
onClick: () => g(1)
|
|
2003
3306
|
})
|
|
@@ -2006,14 +3309,14 @@ function He({ children: e, gap: t = 16, scrollStep: n = .8, className: r, ...a }
|
|
|
2006
3309
|
}
|
|
2007
3310
|
//#endregion
|
|
2008
3311
|
//#region src/components/CallToAction/CallToAction.tsx
|
|
2009
|
-
var
|
|
3312
|
+
var Uo = {
|
|
2010
3313
|
default: "bg-gray-50 border border-gray-200",
|
|
2011
3314
|
primary: "bg-primary-600",
|
|
2012
3315
|
dark: "bg-gray-900",
|
|
2013
3316
|
gradient: "bg-linear-to-br from-primary-600 via-primary-700 to-violet-700",
|
|
2014
3317
|
outline: "bg-white border-2 border-primary-600",
|
|
2015
3318
|
image: "relative overflow-hidden"
|
|
2016
|
-
},
|
|
3319
|
+
}, Wo = {
|
|
2017
3320
|
default: {
|
|
2018
3321
|
eyebrow: "text-primary-600",
|
|
2019
3322
|
title: "text-gray-900",
|
|
@@ -2044,7 +3347,7 @@ var Ue = {
|
|
|
2044
3347
|
title: "text-white",
|
|
2045
3348
|
description: "text-white/80"
|
|
2046
3349
|
}
|
|
2047
|
-
},
|
|
3350
|
+
}, Go = {
|
|
2048
3351
|
sm: {
|
|
2049
3352
|
wrapper: "px-6 py-6 rounded-xl",
|
|
2050
3353
|
title: "text-xl font-bold",
|
|
@@ -2069,7 +3372,7 @@ var Ue = {
|
|
|
2069
3372
|
description: "text-xl",
|
|
2070
3373
|
eyebrow: "text-sm"
|
|
2071
3374
|
}
|
|
2072
|
-
},
|
|
3375
|
+
}, Ko = {
|
|
2073
3376
|
left: {
|
|
2074
3377
|
wrapper: "items-start text-left",
|
|
2075
3378
|
actions: "justify-start"
|
|
@@ -2083,58 +3386,58 @@ var Ue = {
|
|
|
2083
3386
|
actions: "justify-end"
|
|
2084
3387
|
}
|
|
2085
3388
|
};
|
|
2086
|
-
function
|
|
2087
|
-
let
|
|
3389
|
+
function qo({ eyebrow: e, title: t, description: n, actions: r = [], align: i = "center", layout: a = "stacked", size: o = "md", variant: s = "default", background: c, backgroundImage: l, media: u, className: d = "", style: f }) {
|
|
3390
|
+
let p = Wo[s], g = Go[o], _ = Ko[i], v = a === "inline", y = {
|
|
2088
3391
|
...c ? { background: c } : {},
|
|
2089
3392
|
...l ? {
|
|
2090
3393
|
backgroundImage: `url(${l})`,
|
|
2091
3394
|
backgroundSize: "cover",
|
|
2092
3395
|
backgroundPosition: "center"
|
|
2093
3396
|
} : {},
|
|
2094
|
-
...
|
|
3397
|
+
...f
|
|
2095
3398
|
};
|
|
2096
|
-
return /* @__PURE__ */
|
|
3399
|
+
return /* @__PURE__ */ h("div", {
|
|
2097
3400
|
className: [
|
|
2098
3401
|
"w-full",
|
|
2099
|
-
|
|
3402
|
+
Uo[s],
|
|
2100
3403
|
g.wrapper,
|
|
2101
|
-
|
|
3404
|
+
d
|
|
2102
3405
|
].filter(Boolean).join(" "),
|
|
2103
3406
|
style: Object.keys(y).length ? y : void 0,
|
|
2104
|
-
children: [(s === "image" || l) && /* @__PURE__ */
|
|
3407
|
+
children: [(s === "image" || l) && /* @__PURE__ */ m("div", { className: "absolute inset-0 bg-black/50" }), /* @__PURE__ */ h("div", {
|
|
2105
3408
|
className: `relative ${v ? "flex flex-wrap items-center justify-between gap-6" : `flex flex-col gap-4 ${_.wrapper}`}`,
|
|
2106
3409
|
children: [
|
|
2107
|
-
/* @__PURE__ */
|
|
3410
|
+
/* @__PURE__ */ h("div", {
|
|
2108
3411
|
className: `flex flex-col gap-2 ${v ? "flex-1 min-w-0" : _.wrapper}`,
|
|
2109
3412
|
children: [
|
|
2110
|
-
e && /* @__PURE__ */
|
|
2111
|
-
className: `font-semibold uppercase tracking-widest ${g.eyebrow} ${
|
|
3413
|
+
e && /* @__PURE__ */ m("p", {
|
|
3414
|
+
className: `font-semibold uppercase tracking-widest ${g.eyebrow} ${p.eyebrow}`,
|
|
2112
3415
|
children: e
|
|
2113
3416
|
}),
|
|
2114
|
-
/* @__PURE__ */
|
|
2115
|
-
className: `${g.title} ${
|
|
3417
|
+
/* @__PURE__ */ m("h2", {
|
|
3418
|
+
className: `${g.title} ${p.title}`,
|
|
2116
3419
|
children: t
|
|
2117
3420
|
}),
|
|
2118
|
-
n && /* @__PURE__ */
|
|
2119
|
-
className: `max-w-2xl ${g.description} ${
|
|
3421
|
+
n && /* @__PURE__ */ m("p", {
|
|
3422
|
+
className: `max-w-2xl ${g.description} ${p.description}`,
|
|
2120
3423
|
children: n
|
|
2121
3424
|
})
|
|
2122
3425
|
]
|
|
2123
3426
|
}),
|
|
2124
|
-
|
|
3427
|
+
u && !v && /* @__PURE__ */ m("div", {
|
|
2125
3428
|
className: "mt-2",
|
|
2126
|
-
children:
|
|
3429
|
+
children: u
|
|
2127
3430
|
}),
|
|
2128
|
-
r.length > 0 && /* @__PURE__ */
|
|
3431
|
+
r.length > 0 && /* @__PURE__ */ m("div", {
|
|
2129
3432
|
className: `flex flex-wrap gap-3 ${v ? "shrink-0" : _.actions}`,
|
|
2130
3433
|
children: r.map((e, t) => {
|
|
2131
|
-
let n = /* @__PURE__ */
|
|
2132
|
-
variant: e.variant ?? (t === 0 ?
|
|
3434
|
+
let n = /* @__PURE__ */ m(k, {
|
|
3435
|
+
variant: e.variant ?? (t === 0 ? Jo(s) : "outline"),
|
|
2133
3436
|
size: e.size ?? (o === "sm" ? "sm" : o === "xl" ? "lg" : "md"),
|
|
2134
3437
|
onClick: e.onClick,
|
|
2135
3438
|
children: e.label
|
|
2136
3439
|
}, t);
|
|
2137
|
-
return e.href ? /* @__PURE__ */
|
|
3440
|
+
return e.href ? /* @__PURE__ */ m("a", {
|
|
2138
3441
|
href: e.href,
|
|
2139
3442
|
className: "contents",
|
|
2140
3443
|
children: n
|
|
@@ -2145,233 +3448,233 @@ function qe({ eyebrow: e, title: t, description: n, actions: r = [], align: i =
|
|
|
2145
3448
|
})]
|
|
2146
3449
|
});
|
|
2147
3450
|
}
|
|
2148
|
-
function
|
|
3451
|
+
function Jo(e) {
|
|
2149
3452
|
return e === "default" || e === "outline" ? "primary" : "secondary";
|
|
2150
3453
|
}
|
|
2151
3454
|
//#endregion
|
|
2152
3455
|
//#region src/components/Footer/Footer.tsx
|
|
2153
|
-
function
|
|
2154
|
-
return /* @__PURE__ */
|
|
3456
|
+
function Yo() {
|
|
3457
|
+
return /* @__PURE__ */ m("svg", {
|
|
2155
3458
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2156
3459
|
fill: "none",
|
|
2157
3460
|
viewBox: "0 0 24 24",
|
|
2158
3461
|
strokeWidth: 1.5,
|
|
2159
3462
|
stroke: "currentColor",
|
|
2160
3463
|
className: "w-4 h-4 shrink-0",
|
|
2161
|
-
children: /* @__PURE__ */
|
|
3464
|
+
children: /* @__PURE__ */ m("path", {
|
|
2162
3465
|
strokeLinecap: "round",
|
|
2163
3466
|
strokeLinejoin: "round",
|
|
2164
3467
|
d: "M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 002.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 01-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 00-1.091-.852H4.5A2.25 2.25 0 002.25 4.5v2.25z"
|
|
2165
3468
|
})
|
|
2166
3469
|
});
|
|
2167
3470
|
}
|
|
2168
|
-
function
|
|
2169
|
-
return /* @__PURE__ */
|
|
3471
|
+
function Xo() {
|
|
3472
|
+
return /* @__PURE__ */ m("svg", {
|
|
2170
3473
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2171
3474
|
fill: "none",
|
|
2172
3475
|
viewBox: "0 0 24 24",
|
|
2173
3476
|
strokeWidth: 1.5,
|
|
2174
3477
|
stroke: "currentColor",
|
|
2175
3478
|
className: "w-4 h-4 shrink-0",
|
|
2176
|
-
children: /* @__PURE__ */
|
|
3479
|
+
children: /* @__PURE__ */ m("path", {
|
|
2177
3480
|
strokeLinecap: "round",
|
|
2178
3481
|
strokeLinejoin: "round",
|
|
2179
3482
|
d: "M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75"
|
|
2180
3483
|
})
|
|
2181
3484
|
});
|
|
2182
3485
|
}
|
|
2183
|
-
function
|
|
2184
|
-
return /* @__PURE__ */
|
|
3486
|
+
function Zo() {
|
|
3487
|
+
return /* @__PURE__ */ h("svg", {
|
|
2185
3488
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2186
3489
|
fill: "none",
|
|
2187
3490
|
viewBox: "0 0 24 24",
|
|
2188
3491
|
strokeWidth: 1.5,
|
|
2189
3492
|
stroke: "currentColor",
|
|
2190
3493
|
className: "w-4 h-4 shrink-0",
|
|
2191
|
-
children: [/* @__PURE__ */
|
|
3494
|
+
children: [/* @__PURE__ */ m("path", {
|
|
2192
3495
|
strokeLinecap: "round",
|
|
2193
3496
|
strokeLinejoin: "round",
|
|
2194
3497
|
d: "M15 10.5a3 3 0 11-6 0 3 3 0 016 0z"
|
|
2195
|
-
}), /* @__PURE__ */
|
|
3498
|
+
}), /* @__PURE__ */ m("path", {
|
|
2196
3499
|
strokeLinecap: "round",
|
|
2197
3500
|
strokeLinejoin: "round",
|
|
2198
3501
|
d: "M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1115 0z"
|
|
2199
3502
|
})]
|
|
2200
3503
|
});
|
|
2201
3504
|
}
|
|
2202
|
-
function
|
|
2203
|
-
return /* @__PURE__ */
|
|
3505
|
+
function Qo() {
|
|
3506
|
+
return /* @__PURE__ */ m("svg", {
|
|
2204
3507
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2205
3508
|
fill: "none",
|
|
2206
3509
|
viewBox: "0 0 24 24",
|
|
2207
3510
|
strokeWidth: 1.5,
|
|
2208
3511
|
stroke: "currentColor",
|
|
2209
3512
|
className: "w-4 h-4 shrink-0",
|
|
2210
|
-
children: /* @__PURE__ */
|
|
3513
|
+
children: /* @__PURE__ */ m("path", {
|
|
2211
3514
|
strokeLinecap: "round",
|
|
2212
3515
|
strokeLinejoin: "round",
|
|
2213
3516
|
d: "M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
2214
3517
|
})
|
|
2215
3518
|
});
|
|
2216
3519
|
}
|
|
2217
|
-
function $
|
|
2218
|
-
return /* @__PURE__ */
|
|
3520
|
+
function $o() {
|
|
3521
|
+
return /* @__PURE__ */ m("svg", {
|
|
2219
3522
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2220
3523
|
viewBox: "0 0 24 24",
|
|
2221
3524
|
fill: "currentColor",
|
|
2222
3525
|
className: "w-4 h-4",
|
|
2223
|
-
children: /* @__PURE__ */
|
|
3526
|
+
children: /* @__PURE__ */ m("path", { d: "M24 12.073C24 5.405 18.627 0 12 0S0 5.405 0 12.073C0 18.1 4.388 23.094 10.125 24v-8.437H7.078v-3.49h3.047V9.41c0-3.025 1.792-4.697 4.533-4.697 1.312 0 2.686.236 2.686.236v2.97h-1.513c-1.491 0-1.956.93-1.956 1.886v2.267h3.328l-.532 3.49h-2.796V24C19.612 23.094 24 18.1 24 12.073z" })
|
|
2224
3527
|
});
|
|
2225
3528
|
}
|
|
2226
|
-
function
|
|
2227
|
-
return /* @__PURE__ */
|
|
3529
|
+
function es() {
|
|
3530
|
+
return /* @__PURE__ */ m("svg", {
|
|
2228
3531
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2229
3532
|
viewBox: "0 0 24 24",
|
|
2230
3533
|
fill: "currentColor",
|
|
2231
3534
|
className: "w-4 h-4",
|
|
2232
|
-
children: /* @__PURE__ */
|
|
3535
|
+
children: /* @__PURE__ */ m("path", { d: "M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z" })
|
|
2233
3536
|
});
|
|
2234
3537
|
}
|
|
2235
|
-
function
|
|
2236
|
-
return /* @__PURE__ */
|
|
3538
|
+
function ts() {
|
|
3539
|
+
return /* @__PURE__ */ m("svg", {
|
|
2237
3540
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2238
3541
|
viewBox: "0 0 24 24",
|
|
2239
3542
|
fill: "currentColor",
|
|
2240
3543
|
className: "w-4 h-4",
|
|
2241
|
-
children: /* @__PURE__ */
|
|
3544
|
+
children: /* @__PURE__ */ m("path", { d: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" })
|
|
2242
3545
|
});
|
|
2243
3546
|
}
|
|
2244
|
-
function
|
|
2245
|
-
return /* @__PURE__ */
|
|
3547
|
+
function ns() {
|
|
3548
|
+
return /* @__PURE__ */ m("svg", {
|
|
2246
3549
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2247
3550
|
viewBox: "0 0 24 24",
|
|
2248
3551
|
fill: "currentColor",
|
|
2249
3552
|
className: "w-4 h-4",
|
|
2250
|
-
children: /* @__PURE__ */
|
|
3553
|
+
children: /* @__PURE__ */ m("path", { d: "M23.498 6.186a3.016 3.016 0 00-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 00.502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 002.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 002.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z" })
|
|
2251
3554
|
});
|
|
2252
3555
|
}
|
|
2253
|
-
function
|
|
2254
|
-
return /* @__PURE__ */
|
|
3556
|
+
function rs() {
|
|
3557
|
+
return /* @__PURE__ */ m("svg", {
|
|
2255
3558
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2256
3559
|
viewBox: "0 0 24 24",
|
|
2257
3560
|
fill: "currentColor",
|
|
2258
3561
|
className: "w-4 h-4",
|
|
2259
|
-
children: /* @__PURE__ */
|
|
3562
|
+
children: /* @__PURE__ */ m("path", { d: "M19.59 6.69a4.83 4.83 0 01-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 01-2.88 2.5 2.89 2.89 0 01-2.89-2.89 2.89 2.89 0 012.89-2.89c.28 0 .54.04.79.1V9.01a6.33 6.33 0 00-.79-.05 6.34 6.34 0 00-6.34 6.34 6.34 6.34 0 006.34 6.34 6.34 6.34 0 006.33-6.34V8.69a8.18 8.18 0 004.78 1.52V6.76a4.85 4.85 0 01-1.01-.07z" })
|
|
2260
3563
|
});
|
|
2261
3564
|
}
|
|
2262
|
-
var
|
|
2263
|
-
facebook: $
|
|
2264
|
-
instagram:
|
|
2265
|
-
twitter:
|
|
2266
|
-
youtube:
|
|
2267
|
-
tiktok:
|
|
2268
|
-
},
|
|
2269
|
-
phone:
|
|
2270
|
-
email:
|
|
2271
|
-
address:
|
|
2272
|
-
hours:
|
|
3565
|
+
var is = {
|
|
3566
|
+
facebook: $o,
|
|
3567
|
+
instagram: es,
|
|
3568
|
+
twitter: ts,
|
|
3569
|
+
youtube: ns,
|
|
3570
|
+
tiktok: rs
|
|
3571
|
+
}, as = {
|
|
3572
|
+
phone: Yo,
|
|
3573
|
+
email: Xo,
|
|
3574
|
+
address: Zo,
|
|
3575
|
+
hours: Qo
|
|
2273
3576
|
};
|
|
2274
|
-
function
|
|
3577
|
+
function os(e) {
|
|
2275
3578
|
if (!e) return null;
|
|
2276
3579
|
if (typeof e == "string") {
|
|
2277
|
-
let t =
|
|
2278
|
-
return t ? /* @__PURE__ */
|
|
3580
|
+
let t = as[e];
|
|
3581
|
+
return t ? /* @__PURE__ */ m(t, {}) : null;
|
|
2279
3582
|
}
|
|
2280
3583
|
return e;
|
|
2281
3584
|
}
|
|
2282
|
-
function
|
|
3585
|
+
function ss(e) {
|
|
2283
3586
|
if (typeof e == "string") {
|
|
2284
|
-
let t =
|
|
2285
|
-
return t ? /* @__PURE__ */
|
|
3587
|
+
let t = is[e];
|
|
3588
|
+
return t ? /* @__PURE__ */ m(t, {}) : null;
|
|
2286
3589
|
}
|
|
2287
3590
|
return e;
|
|
2288
3591
|
}
|
|
2289
|
-
function
|
|
3592
|
+
function cs({ logo: e, tagline: t, contactHeading: n = "Kontakty", contacts: r = [], linkGroups: i = [], socialLinks: a = [], copyright: o, bottomLinks: s = [], className: c = "" }) {
|
|
2290
3593
|
let l = (/* @__PURE__ */ new Date()).getFullYear();
|
|
2291
|
-
return /* @__PURE__ */
|
|
3594
|
+
return /* @__PURE__ */ m("footer", {
|
|
2292
3595
|
className: ["bg-gray-900 text-gray-300", c].filter(Boolean).join(" "),
|
|
2293
|
-
children: /* @__PURE__ */
|
|
3596
|
+
children: /* @__PURE__ */ h(E, { children: [/* @__PURE__ */ h("div", {
|
|
2294
3597
|
className: "max-w-7xl mx-auto px-4 py-12 grid grid-cols-1 md:grid-cols-2 gap-10 lg:gap-16",
|
|
2295
|
-
children: [/* @__PURE__ */
|
|
3598
|
+
children: [/* @__PURE__ */ h("div", {
|
|
2296
3599
|
className: "flex flex-col gap-6",
|
|
2297
3600
|
children: [
|
|
2298
|
-
/* @__PURE__ */
|
|
3601
|
+
/* @__PURE__ */ h("div", { children: [e ? /* @__PURE__ */ m("div", {
|
|
2299
3602
|
className: "mb-3",
|
|
2300
3603
|
children: e
|
|
2301
|
-
}) : /* @__PURE__ */
|
|
3604
|
+
}) : /* @__PURE__ */ m("span", {
|
|
2302
3605
|
className: "text-xl font-bold text-white tracking-tight mb-3 block",
|
|
2303
3606
|
children: "shopito"
|
|
2304
|
-
}), t && /* @__PURE__ */
|
|
3607
|
+
}), t && /* @__PURE__ */ m("p", {
|
|
2305
3608
|
className: "text-sm text-gray-400 max-w-xs",
|
|
2306
3609
|
children: t
|
|
2307
3610
|
})] }),
|
|
2308
|
-
r.length > 0 && /* @__PURE__ */
|
|
3611
|
+
r.length > 0 && /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("h3", {
|
|
2309
3612
|
className: "text-xs font-semibold uppercase tracking-widest text-gray-500 mb-3",
|
|
2310
3613
|
children: n
|
|
2311
|
-
}), /* @__PURE__ */
|
|
3614
|
+
}), /* @__PURE__ */ m("ul", {
|
|
2312
3615
|
className: "space-y-3",
|
|
2313
3616
|
children: r.map((e, t) => {
|
|
2314
|
-
let n =
|
|
3617
|
+
let n = os(e.icon), r = /* @__PURE__ */ h("div", {
|
|
2315
3618
|
className: "flex items-start gap-2.5",
|
|
2316
|
-
children: [n && /* @__PURE__ */
|
|
3619
|
+
children: [n && /* @__PURE__ */ m("span", {
|
|
2317
3620
|
className: "mt-0.5 text-primary-400",
|
|
2318
3621
|
children: n
|
|
2319
|
-
}), /* @__PURE__ */
|
|
3622
|
+
}), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("p", {
|
|
2320
3623
|
className: "text-xs text-gray-500 leading-none mb-0.5",
|
|
2321
3624
|
children: e.label
|
|
2322
|
-
}), /* @__PURE__ */
|
|
3625
|
+
}), /* @__PURE__ */ m("p", {
|
|
2323
3626
|
className: `text-sm text-gray-200 ${e.href ? "hover:text-white transition-colors" : ""}`,
|
|
2324
3627
|
children: e.value
|
|
2325
3628
|
})] })]
|
|
2326
3629
|
});
|
|
2327
|
-
return /* @__PURE__ */
|
|
3630
|
+
return /* @__PURE__ */ m("li", { children: e.href ? /* @__PURE__ */ m("a", {
|
|
2328
3631
|
href: e.href,
|
|
2329
3632
|
children: r
|
|
2330
3633
|
}) : r }, t);
|
|
2331
3634
|
})
|
|
2332
3635
|
})] }),
|
|
2333
|
-
a.length > 0 && /* @__PURE__ */
|
|
3636
|
+
a.length > 0 && /* @__PURE__ */ m("div", {
|
|
2334
3637
|
className: "flex gap-2 flex-wrap",
|
|
2335
|
-
children: a.map((e, t) => /* @__PURE__ */
|
|
3638
|
+
children: a.map((e, t) => /* @__PURE__ */ m("a", {
|
|
2336
3639
|
href: e.href,
|
|
2337
3640
|
"aria-label": e.label,
|
|
2338
3641
|
className: "w-8 h-8 flex items-center justify-center rounded-lg bg-gray-800 text-gray-400 hover:bg-primary-600 hover:text-white transition-colors",
|
|
2339
|
-
children:
|
|
3642
|
+
children: ss(e.icon)
|
|
2340
3643
|
}, t))
|
|
2341
3644
|
})
|
|
2342
3645
|
]
|
|
2343
|
-
}), i.length > 0 && /* @__PURE__ */
|
|
3646
|
+
}), i.length > 0 && /* @__PURE__ */ m("div", {
|
|
2344
3647
|
className: `grid gap-8 ${i.length === 1 ? "grid-cols-1" : i.length === 2 ? "grid-cols-2" : "grid-cols-2 sm:grid-cols-3"}`,
|
|
2345
|
-
children: i.map((e, t) => /* @__PURE__ */
|
|
3648
|
+
children: i.map((e, t) => /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("h3", {
|
|
2346
3649
|
className: "text-xs font-semibold uppercase tracking-widest text-gray-500 mb-3",
|
|
2347
3650
|
children: e.heading
|
|
2348
|
-
}), /* @__PURE__ */
|
|
3651
|
+
}), /* @__PURE__ */ m("ul", {
|
|
2349
3652
|
className: "space-y-2",
|
|
2350
|
-
children: e.links.map((e, t) => /* @__PURE__ */
|
|
3653
|
+
children: e.links.map((e, t) => /* @__PURE__ */ m("li", { children: e.href ? /* @__PURE__ */ m("a", {
|
|
2351
3654
|
href: e.href,
|
|
2352
3655
|
className: "text-sm text-gray-400 hover:text-white transition-colors",
|
|
2353
3656
|
children: e.label
|
|
2354
|
-
}) : /* @__PURE__ */
|
|
3657
|
+
}) : /* @__PURE__ */ m("button", {
|
|
2355
3658
|
onClick: e.onClick,
|
|
2356
3659
|
className: "text-sm text-gray-400 hover:text-white transition-colors text-left",
|
|
2357
3660
|
children: e.label
|
|
2358
3661
|
}) }, t))
|
|
2359
3662
|
})] }, t))
|
|
2360
3663
|
})]
|
|
2361
|
-
}), /* @__PURE__ */
|
|
3664
|
+
}), /* @__PURE__ */ m("div", {
|
|
2362
3665
|
className: "border-t border-gray-800",
|
|
2363
|
-
children: /* @__PURE__ */
|
|
3666
|
+
children: /* @__PURE__ */ h("div", {
|
|
2364
3667
|
className: "max-w-7xl mx-auto px-4 py-4 flex flex-wrap items-center justify-between gap-3",
|
|
2365
|
-
children: [/* @__PURE__ */
|
|
3668
|
+
children: [/* @__PURE__ */ m("p", {
|
|
2366
3669
|
className: "text-xs text-gray-500",
|
|
2367
3670
|
children: o ?? `© ${l} Shopito. Všechna práva vyhrazena.`
|
|
2368
|
-
}), s.length > 0 && /* @__PURE__ */
|
|
3671
|
+
}), s.length > 0 && /* @__PURE__ */ m("nav", {
|
|
2369
3672
|
className: "flex flex-wrap gap-4",
|
|
2370
|
-
children: s.map((e, t) => e.href ? /* @__PURE__ */
|
|
3673
|
+
children: s.map((e, t) => e.href ? /* @__PURE__ */ m("a", {
|
|
2371
3674
|
href: e.href,
|
|
2372
3675
|
className: "text-xs text-gray-500 hover:text-gray-300 transition-colors",
|
|
2373
3676
|
children: e.label
|
|
2374
|
-
}, t) : /* @__PURE__ */
|
|
3677
|
+
}, t) : /* @__PURE__ */ m("button", {
|
|
2375
3678
|
onClick: e.onClick,
|
|
2376
3679
|
className: "text-xs text-gray-500 hover:text-gray-300 transition-colors",
|
|
2377
3680
|
children: e.label
|
|
@@ -2382,6 +3685,6 @@ function ct({ logo: e, tagline: t, contactHeading: n = "Kontakty", contacts: r =
|
|
|
2382
3685
|
});
|
|
2383
3686
|
}
|
|
2384
3687
|
//#endregion
|
|
2385
|
-
export {
|
|
3688
|
+
export { ce as Alert, me as Avatar, F as Badge, jo as BannerCarousel, k as Button, qo as CallToAction, ne as Card, ie as CardBody, ae as CardFooter, re as CardHeader, Ve as Carousel, Be as CarouselCover, Oo as CategoryTree, de as Checkbox, je as Col, E as Container, cs as Footer, Ae as Grid, So as Header, P as Heading, j as IconButton, M as Input, A as LoadingSpin, D as Main, Ao as MegaMenu, ue as Modal, Re as Pagination, Lo as ProductCard, Ho as ProductCarousel, Vo as ProductGrid, Me as QuantityInput, N as Select, oe as Spinner, he as Stack, ee as Text, fe as Toggle };
|
|
2386
3689
|
|
|
2387
3690
|
//# sourceMappingURL=index.js.map
|