stargazer-ui 1.0.2 → 1.0.4
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/BaseTypes.d.ts +19 -0
- package/dist/BaseTypes.js +1 -0
- package/dist/Button/index.d.ts +9 -0
- package/dist/Button/index.js +1 -1
- package/dist/Card/index.d.ts +92 -0
- package/dist/Card/index.js +15 -29
- package/dist/CloseButton/index.d.ts +8 -0
- package/dist/Dropdown/index.d.ts +124 -0
- package/dist/Dropdown/index.js +140 -117
- package/dist/FloatingLabel/index.d.ts +11 -0
- package/dist/FloatingLabel/index.js +9 -9
- package/dist/Form/index.d.ts +65 -0
- package/dist/Form/index.js +56 -51
- package/dist/Grid/Col.js +19 -0
- package/dist/Grid/Container.js +9 -0
- package/dist/Grid/Row.js +17 -0
- package/dist/InputGroup/index.d.ts +14 -0
- package/dist/InputGroup/index.js +6 -5
- package/dist/Modal/index.d.ts +70 -0
- package/dist/Modal/index.js +78 -64
- package/dist/Nav/index.d.ts +46 -0
- package/dist/Nav/index.js +11 -12
- package/dist/NavBar/index.d.ts +46 -0
- package/dist/NavBar/index.js +15 -14
- package/dist/NavDropdown/index.d.ts +39 -0
- package/dist/NavDropdown/index.js +226 -218
- package/dist/OffCanvas/OffCanvas.js +2266 -0
- package/dist/Overlay/index.js +36 -36
- package/dist/Popout/index.d.ts +56 -0
- package/dist/Popout/index.js +55 -68
- package/dist/Spinner/index.d.ts +10 -0
- package/dist/Spinner/index.js +9 -0
- package/dist/Table/index.d.ts +9 -0
- package/dist/Table/index.js +9 -0
- package/dist/Tabs/index.d.ts +42 -0
- package/dist/Tabs/index.js +60 -52
- package/dist/stylesheets/stargazerui.css +1160 -17
- package/dist/stylesheets/stargazerui.css.map +1 -1
- package/dist/vite-env.d.js +1 -0
- package/package.json +14 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
function
|
|
1
|
+
import { jsx as H, jsxs as Pe } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Ce, useState as se, useCallback as ze, useMemo as De } from "react";
|
|
3
|
+
import C, { DropdownContextProvider as ke } from "../Dropdown/index.js";
|
|
4
|
+
function Ne(e) {
|
|
5
5
|
if (typeof e != "object" || e === null)
|
|
6
6
|
return !1;
|
|
7
7
|
let t = e;
|
|
@@ -9,10 +9,10 @@ function Ae(e) {
|
|
|
9
9
|
t = Object.getPrototypeOf(t);
|
|
10
10
|
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
return
|
|
12
|
+
function Ae(e) {
|
|
13
|
+
return Ne(e) && "type" in e && typeof e.type == "string";
|
|
14
14
|
}
|
|
15
|
-
var
|
|
15
|
+
var me = Symbol.for("immer-nothing"), ce = Symbol.for("immer-draftable"), y = Symbol.for("immer-state"), Fe = process.env.NODE_ENV !== "production" ? [
|
|
16
16
|
// All error codes, starting by 0:
|
|
17
17
|
function(e) {
|
|
18
18
|
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
@@ -45,68 +45,68 @@ var he = Symbol.for("immer-nothing"), ue = Symbol.for("immer-draftable"), y = Sy
|
|
|
45
45
|
] : [];
|
|
46
46
|
function d(e, ...t) {
|
|
47
47
|
if (process.env.NODE_ENV !== "production") {
|
|
48
|
-
const r =
|
|
48
|
+
const r = Fe[e], n = typeof r == "function" ? r.apply(null, t) : r;
|
|
49
49
|
throw new Error(`[Immer] ${n}`);
|
|
50
50
|
}
|
|
51
51
|
throw new Error(
|
|
52
52
|
`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
|
-
var
|
|
56
|
-
function
|
|
55
|
+
var z = Object.getPrototypeOf;
|
|
56
|
+
function v(e) {
|
|
57
57
|
return !!e && !!e[y];
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function O(e) {
|
|
60
60
|
var t;
|
|
61
|
-
return e ?
|
|
61
|
+
return e ? he(e) || Array.isArray(e) || !!e[ce] || !!((t = e.constructor) != null && t[ce]) || $(e) || W(e) : !1;
|
|
62
62
|
}
|
|
63
|
-
var
|
|
64
|
-
function
|
|
63
|
+
var Ie = Object.prototype.constructor.toString();
|
|
64
|
+
function he(e) {
|
|
65
65
|
if (!e || typeof e != "object")
|
|
66
66
|
return !1;
|
|
67
|
-
const t =
|
|
67
|
+
const t = z(e);
|
|
68
68
|
if (t === null)
|
|
69
69
|
return !0;
|
|
70
70
|
const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
71
|
-
return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) ===
|
|
71
|
+
return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Ie;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
|
|
73
|
+
function k(e, t) {
|
|
74
|
+
x(e) === 0 ? Object.entries(e).forEach(([r, n]) => {
|
|
75
75
|
t(r, n, e);
|
|
76
76
|
}) : e.forEach((r, n) => t(n, r, e));
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function x(e) {
|
|
79
79
|
const t = e[y];
|
|
80
|
-
return t ? t.type_ : Array.isArray(e) ? 1 :
|
|
80
|
+
return t ? t.type_ : Array.isArray(e) ? 1 : $(e) ? 2 : W(e) ? 3 : 0;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function Q(e, t) {
|
|
83
|
+
return x(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
const n =
|
|
85
|
+
function _e(e, t, r) {
|
|
86
|
+
const n = x(e);
|
|
87
87
|
n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function je(e, t) {
|
|
90
90
|
return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function $(e) {
|
|
93
93
|
return e instanceof Map;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function W(e) {
|
|
96
96
|
return e instanceof Set;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function b(e) {
|
|
99
99
|
return e.copy_ || e.base_;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
if (
|
|
101
|
+
function Y(e, t) {
|
|
102
|
+
if ($(e))
|
|
103
103
|
return new Map(e);
|
|
104
|
-
if (
|
|
104
|
+
if (W(e))
|
|
105
105
|
return new Set(e);
|
|
106
106
|
if (Array.isArray(e))
|
|
107
107
|
return Array.prototype.slice.call(e);
|
|
108
|
-
if (!t &&
|
|
109
|
-
return
|
|
108
|
+
if (!t && he(e))
|
|
109
|
+
return z(e) ? { ...e } : Object.assign(/* @__PURE__ */ Object.create(null), e);
|
|
110
110
|
const r = Object.getOwnPropertyDescriptors(e);
|
|
111
111
|
delete r[y];
|
|
112
112
|
let n = Reflect.ownKeys(r);
|
|
@@ -120,27 +120,27 @@ function Z(e, t) {
|
|
|
120
120
|
value: e[i]
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
-
return Object.create(
|
|
123
|
+
return Object.create(z(e), r);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
return
|
|
125
|
+
function re(e, t = !1) {
|
|
126
|
+
return q(e) || v(e) || !O(e) || (x(e) > 1 && (e.set = e.add = e.clear = e.delete = Me), Object.freeze(e), t && k(e, (r, n) => re(n, !0))), e;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Me() {
|
|
129
129
|
d(2);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function q(e) {
|
|
132
132
|
return Object.isFrozen(e);
|
|
133
133
|
}
|
|
134
|
-
var
|
|
135
|
-
function
|
|
136
|
-
const t =
|
|
134
|
+
var Re = {};
|
|
135
|
+
function S(e) {
|
|
136
|
+
const t = Re[e];
|
|
137
137
|
return t || d(0, e), t;
|
|
138
138
|
}
|
|
139
139
|
var N;
|
|
140
|
-
function
|
|
140
|
+
function we() {
|
|
141
141
|
return N;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Te(e, t) {
|
|
144
144
|
return {
|
|
145
145
|
drafts_: [],
|
|
146
146
|
parent_: e,
|
|
@@ -151,53 +151,53 @@ function xe(e, t) {
|
|
|
151
151
|
unfinalizedDrafts_: 0
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
t && (
|
|
154
|
+
function ue(e, t) {
|
|
155
|
+
t && (S("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
|
|
157
|
+
function Z(e) {
|
|
158
|
+
L(e), e.drafts_.forEach(xe), e.drafts_ = null;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function L(e) {
|
|
161
161
|
e === N && (N = e.parent_);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
return N =
|
|
163
|
+
function ae(e) {
|
|
164
|
+
return N = Te(N, e);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function xe(e) {
|
|
167
167
|
const t = e[y];
|
|
168
168
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function fe(e, t) {
|
|
171
171
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
172
172
|
const r = t.drafts_[0];
|
|
173
|
-
return e !== void 0 && e !== r ? (r[y].modified_ && (
|
|
173
|
+
return e !== void 0 && e !== r ? (r[y].modified_ && (Z(t), d(4)), O(e) && (e = R(t, e), t.parent_ || T(t, e)), t.patches_ && S("Patches").generateReplacementPatches_(
|
|
174
174
|
r[y].base_,
|
|
175
175
|
e,
|
|
176
176
|
t.patches_,
|
|
177
177
|
t.inversePatches_
|
|
178
|
-
)) : e =
|
|
178
|
+
)) : e = R(t, r, []), Z(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== me ? e : void 0;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
if (
|
|
180
|
+
function R(e, t, r) {
|
|
181
|
+
if (q(t))
|
|
182
182
|
return t;
|
|
183
183
|
const n = t[y];
|
|
184
184
|
if (!n)
|
|
185
|
-
return
|
|
185
|
+
return k(
|
|
186
186
|
t,
|
|
187
|
-
(o, i) =>
|
|
187
|
+
(o, i) => le(e, n, t, o, i, r)
|
|
188
188
|
), t;
|
|
189
189
|
if (n.scope_ !== e)
|
|
190
190
|
return t;
|
|
191
191
|
if (!n.modified_)
|
|
192
|
-
return
|
|
192
|
+
return T(e, n.base_, !0), n.base_;
|
|
193
193
|
if (!n.finalized_) {
|
|
194
194
|
n.finalized_ = !0, n.scope_.unfinalizedDrafts_--;
|
|
195
195
|
const o = n.copy_;
|
|
196
196
|
let i = o, s = !1;
|
|
197
|
-
n.type_ === 3 && (i = new Set(o), o.clear(), s = !0),
|
|
197
|
+
n.type_ === 3 && (i = new Set(o), o.clear(), s = !0), k(
|
|
198
198
|
i,
|
|
199
|
-
(c, u) =>
|
|
200
|
-
),
|
|
199
|
+
(c, u) => le(e, n, o, c, u, r, s)
|
|
200
|
+
), T(e, o, !1), r && e.patches_ && S("Patches").generatePatches_(
|
|
201
201
|
n,
|
|
202
202
|
r,
|
|
203
203
|
e.patches_,
|
|
@@ -206,30 +206,30 @@ function $(e, t, r) {
|
|
|
206
206
|
}
|
|
207
207
|
return n.copy_;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
if (process.env.NODE_ENV !== "production" && o === r && d(5),
|
|
209
|
+
function le(e, t, r, n, o, i, s) {
|
|
210
|
+
if (process.env.NODE_ENV !== "production" && o === r && d(5), v(o)) {
|
|
211
211
|
const c = i && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
212
|
-
!
|
|
213
|
-
if (
|
|
212
|
+
!Q(t.assigned_, n) ? i.concat(n) : void 0, u = R(e, o, c);
|
|
213
|
+
if (_e(r, n, u), v(u))
|
|
214
214
|
e.canAutoFreeze_ = !1;
|
|
215
215
|
else
|
|
216
216
|
return;
|
|
217
217
|
} else
|
|
218
218
|
s && r.add(o);
|
|
219
|
-
if (
|
|
219
|
+
if (O(o) && !q(o)) {
|
|
220
220
|
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
|
|
221
221
|
return;
|
|
222
|
-
|
|
222
|
+
R(e, o), (!t || !t.scope_.parent_) && T(e, o);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
function
|
|
226
|
-
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ &&
|
|
225
|
+
function T(e, t, r = !1) {
|
|
226
|
+
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && re(t, r);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function $e(e, t) {
|
|
229
229
|
const r = Array.isArray(e), n = {
|
|
230
230
|
type_: r ? 1 : 0,
|
|
231
231
|
// Track which produce call this is associated with.
|
|
232
|
-
scope_: t ? t.scope_ :
|
|
232
|
+
scope_: t ? t.scope_ : we(),
|
|
233
233
|
// True for both shallow and deep changes.
|
|
234
234
|
modified_: !1,
|
|
235
235
|
// Used during finalization.
|
|
@@ -249,50 +249,50 @@ function We(e, t) {
|
|
|
249
249
|
revoke_: null,
|
|
250
250
|
isManual_: !1
|
|
251
251
|
};
|
|
252
|
-
let o = n, i =
|
|
253
|
-
r && (o = [n], i =
|
|
252
|
+
let o = n, i = ne;
|
|
253
|
+
r && (o = [n], i = A);
|
|
254
254
|
const { revoke: s, proxy: c } = Proxy.revocable(o, i);
|
|
255
255
|
return n.draft_ = c, n.revoke_ = s, c;
|
|
256
256
|
}
|
|
257
|
-
var
|
|
257
|
+
var ne = {
|
|
258
258
|
get(e, t) {
|
|
259
259
|
if (t === y)
|
|
260
260
|
return e;
|
|
261
|
-
const r =
|
|
262
|
-
if (!
|
|
263
|
-
return
|
|
261
|
+
const r = b(e);
|
|
262
|
+
if (!Q(r, t))
|
|
263
|
+
return We(e, r, t);
|
|
264
264
|
const n = r[t];
|
|
265
|
-
return e.finalized_ || !
|
|
265
|
+
return e.finalized_ || !O(n) ? n : n === X(e.base_, t) ? (J(e), e.copy_[t] = te(n, e)) : n;
|
|
266
266
|
},
|
|
267
267
|
has(e, t) {
|
|
268
|
-
return t in
|
|
268
|
+
return t in b(e);
|
|
269
269
|
},
|
|
270
270
|
ownKeys(e) {
|
|
271
|
-
return Reflect.ownKeys(
|
|
271
|
+
return Reflect.ownKeys(b(e));
|
|
272
272
|
},
|
|
273
273
|
set(e, t, r) {
|
|
274
|
-
const n =
|
|
274
|
+
const n = ge(b(e), t);
|
|
275
275
|
if (n != null && n.set)
|
|
276
276
|
return n.set.call(e.draft_, r), !0;
|
|
277
277
|
if (!e.modified_) {
|
|
278
|
-
const o =
|
|
278
|
+
const o = X(b(e), t), i = o == null ? void 0 : o[y];
|
|
279
279
|
if (i && i.base_ === r)
|
|
280
280
|
return e.copy_[t] = r, e.assigned_[t] = !1, !0;
|
|
281
|
-
if (
|
|
281
|
+
if (je(r, o) && (r !== void 0 || Q(e.base_, t)))
|
|
282
282
|
return !0;
|
|
283
|
-
|
|
283
|
+
J(e), ee(e);
|
|
284
284
|
}
|
|
285
285
|
return e.copy_[t] === r && // special case: handle new props with value 'undefined'
|
|
286
286
|
(r !== void 0 || t in e.copy_) || // special case: NaN
|
|
287
287
|
Number.isNaN(r) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = r, e.assigned_[t] = !0), !0;
|
|
288
288
|
},
|
|
289
289
|
deleteProperty(e, t) {
|
|
290
|
-
return
|
|
290
|
+
return X(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, J(e), ee(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
|
|
291
291
|
},
|
|
292
292
|
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
293
293
|
// the same guarantee in ES5 mode.
|
|
294
294
|
getOwnPropertyDescriptor(e, t) {
|
|
295
|
-
const r =
|
|
295
|
+
const r = b(e), n = Reflect.getOwnPropertyDescriptor(r, t);
|
|
296
296
|
return n && {
|
|
297
297
|
writable: !0,
|
|
298
298
|
configurable: e.type_ !== 1 || t !== "length",
|
|
@@ -304,57 +304,57 @@ var oe = {
|
|
|
304
304
|
d(11);
|
|
305
305
|
},
|
|
306
306
|
getPrototypeOf(e) {
|
|
307
|
-
return
|
|
307
|
+
return z(e.base_);
|
|
308
308
|
},
|
|
309
309
|
setPrototypeOf() {
|
|
310
310
|
d(12);
|
|
311
311
|
}
|
|
312
|
-
},
|
|
313
|
-
|
|
314
|
-
|
|
312
|
+
}, A = {};
|
|
313
|
+
k(ne, (e, t) => {
|
|
314
|
+
A[e] = function() {
|
|
315
315
|
return arguments[0] = arguments[0][0], t.apply(this, arguments);
|
|
316
316
|
};
|
|
317
317
|
});
|
|
318
|
-
|
|
319
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && d(13),
|
|
318
|
+
A.deleteProperty = function(e, t) {
|
|
319
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && d(13), A.set.call(this, e, t, void 0);
|
|
320
320
|
};
|
|
321
|
-
|
|
322
|
-
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && d(14),
|
|
321
|
+
A.set = function(e, t, r) {
|
|
322
|
+
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && d(14), ne.set.call(this, e[0], t, r, e[0]);
|
|
323
323
|
};
|
|
324
|
-
function
|
|
324
|
+
function X(e, t) {
|
|
325
325
|
const r = e[y];
|
|
326
|
-
return (r ?
|
|
326
|
+
return (r ? b(r) : e)[t];
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function We(e, t, r) {
|
|
329
329
|
var o;
|
|
330
|
-
const n =
|
|
330
|
+
const n = ge(t, r);
|
|
331
331
|
return n ? "value" in n ? n.value : (
|
|
332
332
|
// This is a very special case, if the prop is a getter defined by the
|
|
333
333
|
// prototype, we should invoke it with the draft as context!
|
|
334
334
|
(o = n.get) == null ? void 0 : o.call(e.draft_)
|
|
335
335
|
) : void 0;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function ge(e, t) {
|
|
338
338
|
if (!(t in e))
|
|
339
339
|
return;
|
|
340
|
-
let r =
|
|
340
|
+
let r = z(e);
|
|
341
341
|
for (; r; ) {
|
|
342
342
|
const n = Object.getOwnPropertyDescriptor(r, t);
|
|
343
343
|
if (n)
|
|
344
344
|
return n;
|
|
345
|
-
r =
|
|
345
|
+
r = z(r);
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
e.modified_ || (e.modified_ = !0, e.parent_ &&
|
|
348
|
+
function ee(e) {
|
|
349
|
+
e.modified_ || (e.modified_ = !0, e.parent_ && ee(e.parent_));
|
|
350
350
|
}
|
|
351
|
-
function
|
|
352
|
-
e.copy_ || (e.copy_ =
|
|
351
|
+
function J(e) {
|
|
352
|
+
e.copy_ || (e.copy_ = Y(
|
|
353
353
|
e.base_,
|
|
354
354
|
e.scope_.immer_.useStrictShallowCopy_
|
|
355
355
|
));
|
|
356
356
|
}
|
|
357
|
-
var
|
|
357
|
+
var qe = class {
|
|
358
358
|
constructor(e) {
|
|
359
359
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (t, r, n) => {
|
|
360
360
|
if (typeof t == "function" && typeof r != "function") {
|
|
@@ -367,19 +367,19 @@ var Ue = class {
|
|
|
367
367
|
}
|
|
368
368
|
typeof r != "function" && d(6), n !== void 0 && typeof n != "function" && d(7);
|
|
369
369
|
let o;
|
|
370
|
-
if (
|
|
371
|
-
const i =
|
|
370
|
+
if (O(t)) {
|
|
371
|
+
const i = ae(this), s = te(t, void 0);
|
|
372
372
|
let c = !0;
|
|
373
373
|
try {
|
|
374
374
|
o = r(s), c = !1;
|
|
375
375
|
} finally {
|
|
376
|
-
c ?
|
|
376
|
+
c ? Z(i) : L(i);
|
|
377
377
|
}
|
|
378
|
-
return
|
|
378
|
+
return ue(i, n), fe(o, i);
|
|
379
379
|
} else if (!t || typeof t != "object") {
|
|
380
|
-
if (o = r(t), o === void 0 && (o = t), o ===
|
|
380
|
+
if (o = r(t), o === void 0 && (o = t), o === me && (o = void 0), this.autoFreeze_ && re(o, !0), n) {
|
|
381
381
|
const i = [], s = [];
|
|
382
|
-
|
|
382
|
+
S("Patches").generateReplacementPatches_(t, o, i, s), n(i, s);
|
|
383
383
|
}
|
|
384
384
|
return o;
|
|
385
385
|
} else
|
|
@@ -394,15 +394,15 @@ var Ue = class {
|
|
|
394
394
|
}, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
|
|
395
395
|
}
|
|
396
396
|
createDraft(e) {
|
|
397
|
-
|
|
398
|
-
const t =
|
|
399
|
-
return r[y].isManual_ = !0,
|
|
397
|
+
O(e) || d(8), v(e) && (e = be(e));
|
|
398
|
+
const t = ae(this), r = te(e, void 0);
|
|
399
|
+
return r[y].isManual_ = !0, L(t), r;
|
|
400
400
|
}
|
|
401
401
|
finishDraft(e, t) {
|
|
402
402
|
const r = e && e[y];
|
|
403
403
|
(!r || !r.isManual_) && d(9);
|
|
404
404
|
const { scope_: n } = r;
|
|
405
|
-
return
|
|
405
|
+
return ue(n, t), fe(void 0, n);
|
|
406
406
|
}
|
|
407
407
|
/**
|
|
408
408
|
* Pass true to automatically freeze all copies created by Immer.
|
|
@@ -430,36 +430,36 @@ var Ue = class {
|
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
r > -1 && (t = t.slice(r + 1));
|
|
433
|
-
const n =
|
|
434
|
-
return
|
|
433
|
+
const n = S("Patches").applyPatches_;
|
|
434
|
+
return v(e) ? n(e, t) : this.produce(
|
|
435
435
|
e,
|
|
436
436
|
(o) => n(o, t)
|
|
437
437
|
);
|
|
438
438
|
}
|
|
439
439
|
};
|
|
440
|
-
function
|
|
441
|
-
const r =
|
|
442
|
-
return (t ? t.scope_ :
|
|
440
|
+
function te(e, t) {
|
|
441
|
+
const r = $(e) ? S("MapSet").proxyMap_(e, t) : W(e) ? S("MapSet").proxySet_(e, t) : $e(e, t);
|
|
442
|
+
return (t ? t.scope_ : we()).drafts_.push(r), r;
|
|
443
443
|
}
|
|
444
444
|
function be(e) {
|
|
445
|
-
return
|
|
445
|
+
return v(e) || d(10, e), ve(e);
|
|
446
446
|
}
|
|
447
|
-
function
|
|
448
|
-
if (!
|
|
447
|
+
function ve(e) {
|
|
448
|
+
if (!O(e) || q(e))
|
|
449
449
|
return e;
|
|
450
450
|
const t = e[y];
|
|
451
451
|
let r;
|
|
452
452
|
if (t) {
|
|
453
453
|
if (!t.modified_)
|
|
454
454
|
return t.base_;
|
|
455
|
-
t.finalized_ = !0, r =
|
|
455
|
+
t.finalized_ = !0, r = Y(e, t.scope_.immer_.useStrictShallowCopy_);
|
|
456
456
|
} else
|
|
457
|
-
r =
|
|
458
|
-
return
|
|
459
|
-
|
|
457
|
+
r = Y(e, !0);
|
|
458
|
+
return k(r, (n, o) => {
|
|
459
|
+
_e(r, n, ve(o));
|
|
460
460
|
}), t && (t.finalized_ = !1), r;
|
|
461
461
|
}
|
|
462
|
-
var m = new
|
|
462
|
+
var m = new qe();
|
|
463
463
|
m.produce;
|
|
464
464
|
m.produceWithPatches.bind(
|
|
465
465
|
m
|
|
@@ -469,7 +469,7 @@ m.setUseStrictShallowCopy.bind(m);
|
|
|
469
469
|
m.applyPatches.bind(m);
|
|
470
470
|
m.createDraft.bind(m);
|
|
471
471
|
m.finishDraft.bind(m);
|
|
472
|
-
var
|
|
472
|
+
var Ue = (e, t, r) => {
|
|
473
473
|
if (t.length === 1 && t[0] === r) {
|
|
474
474
|
let n = !1;
|
|
475
475
|
try {
|
|
@@ -493,7 +493,7 @@ Ensure transformation logic is in the result function, and extraction logic is i
|
|
|
493
493
|
);
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
},
|
|
496
|
+
}, Ve = (e, t, r) => {
|
|
497
497
|
const { memoize: n, memoizeOptions: o } = t, { inputSelectorResults: i, inputSelectorResultsCopy: s } = e, c = n(() => ({}), ...o);
|
|
498
498
|
if (!(c.apply(null, i) === c.apply(null, s))) {
|
|
499
499
|
let a;
|
|
@@ -515,19 +515,19 @@ Avoid returning a new reference inside your input selector, e.g.
|
|
|
515
515
|
}
|
|
516
516
|
);
|
|
517
517
|
}
|
|
518
|
-
},
|
|
518
|
+
}, Ke = {
|
|
519
519
|
inputStabilityCheck: "once",
|
|
520
520
|
identityFunctionCheck: "once"
|
|
521
521
|
};
|
|
522
|
-
function
|
|
522
|
+
function Be(e, t = `expected a function, instead received ${typeof e}`) {
|
|
523
523
|
if (typeof e != "function")
|
|
524
524
|
throw new TypeError(t);
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Ge(e, t = `expected an object, instead received ${typeof e}`) {
|
|
527
527
|
if (typeof e != "object")
|
|
528
528
|
throw new TypeError(t);
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function He(e, t = "expected all items to be functions, instead received the following types: ") {
|
|
531
531
|
if (!e.every((r) => typeof r == "function")) {
|
|
532
532
|
const r = e.map(
|
|
533
533
|
(n) => typeof n == "function" ? `function ${n.name || "unnamed"}()` : typeof n
|
|
@@ -535,53 +535,53 @@ function Xe(e, t = "expected all items to be functions, instead received the fol
|
|
|
535
535
|
throw new TypeError(`${t}[${r}]`);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
var
|
|
539
|
-
function
|
|
538
|
+
var de = (e) => Array.isArray(e) ? e : [e];
|
|
539
|
+
function Xe(e) {
|
|
540
540
|
const t = Array.isArray(e[0]) ? e[0] : e;
|
|
541
|
-
return
|
|
541
|
+
return He(
|
|
542
542
|
t,
|
|
543
543
|
"createSelector expects all input-selectors to be functions, but received the following types: "
|
|
544
544
|
), t;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function pe(e, t) {
|
|
547
547
|
const r = [], { length: n } = e;
|
|
548
548
|
for (let o = 0; o < n; o++)
|
|
549
549
|
r.push(e[o].apply(null, t));
|
|
550
550
|
return r;
|
|
551
551
|
}
|
|
552
|
-
var
|
|
552
|
+
var Je = (e, t) => {
|
|
553
553
|
const { identityFunctionCheck: r, inputStabilityCheck: n } = {
|
|
554
|
-
...
|
|
554
|
+
...Ke,
|
|
555
555
|
...t
|
|
556
556
|
};
|
|
557
557
|
return {
|
|
558
558
|
identityFunctionCheck: {
|
|
559
559
|
shouldRun: r === "always" || r === "once" && e,
|
|
560
|
-
run:
|
|
560
|
+
run: Ue
|
|
561
561
|
},
|
|
562
562
|
inputStabilityCheck: {
|
|
563
563
|
shouldRun: n === "always" || n === "once" && e,
|
|
564
|
-
run:
|
|
564
|
+
run: Ve
|
|
565
565
|
}
|
|
566
566
|
};
|
|
567
|
-
},
|
|
567
|
+
}, Qe = class {
|
|
568
568
|
constructor(e) {
|
|
569
569
|
this.value = e;
|
|
570
570
|
}
|
|
571
571
|
deref() {
|
|
572
572
|
return this.value;
|
|
573
573
|
}
|
|
574
|
-
},
|
|
575
|
-
function
|
|
574
|
+
}, Ye = typeof WeakRef < "u" ? WeakRef : Qe, Ze = 0, ye = 1;
|
|
575
|
+
function M() {
|
|
576
576
|
return {
|
|
577
|
-
s:
|
|
577
|
+
s: Ze,
|
|
578
578
|
v: void 0,
|
|
579
579
|
o: null,
|
|
580
580
|
p: null
|
|
581
581
|
};
|
|
582
582
|
}
|
|
583
|
-
function
|
|
584
|
-
let r =
|
|
583
|
+
function oe(e, t = {}) {
|
|
584
|
+
let r = M();
|
|
585
585
|
const { resultEqualityCheck: n } = t;
|
|
586
586
|
let o, i = 0;
|
|
587
587
|
function s() {
|
|
@@ -594,24 +594,24 @@ function ie(e, t = {}) {
|
|
|
594
594
|
let p = c.o;
|
|
595
595
|
p === null && (c.o = p = /* @__PURE__ */ new WeakMap());
|
|
596
596
|
const w = p.get(h);
|
|
597
|
-
w === void 0 ? (c =
|
|
597
|
+
w === void 0 ? (c = M(), p.set(h, c)) : c = w;
|
|
598
598
|
} else {
|
|
599
599
|
let p = c.p;
|
|
600
600
|
p === null && (c.p = p = /* @__PURE__ */ new Map());
|
|
601
601
|
const w = p.get(h);
|
|
602
|
-
w === void 0 ? (c =
|
|
602
|
+
w === void 0 ? (c = M(), p.set(h, c)) : c = w;
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
const a = c;
|
|
606
606
|
let f;
|
|
607
|
-
if (c.s ===
|
|
607
|
+
if (c.s === ye ? f = c.v : (f = e.apply(null, arguments), i++), a.s = ye, n) {
|
|
608
608
|
const _ = ((l = o == null ? void 0 : o.deref) == null ? void 0 : l.call(o)) ?? o;
|
|
609
|
-
_ != null && n(_, f) && (f = _, i !== 0 && i--), o = typeof f == "object" && f !== null || typeof f == "function" ? new
|
|
609
|
+
_ != null && n(_, f) && (f = _, i !== 0 && i--), o = typeof f == "object" && f !== null || typeof f == "function" ? new Ye(f) : f;
|
|
610
610
|
}
|
|
611
611
|
return a.v = f, f;
|
|
612
612
|
}
|
|
613
613
|
return s.clearCache = () => {
|
|
614
|
-
r =
|
|
614
|
+
r = M(), s.resetResultsCount();
|
|
615
615
|
}, s.resultsCount = () => i, s.resetResultsCount = () => {
|
|
616
616
|
i = 0;
|
|
617
617
|
}, s;
|
|
@@ -622,7 +622,7 @@ function Oe(e, ...t) {
|
|
|
622
622
|
memoizeOptions: t
|
|
623
623
|
} : e, n = (...o) => {
|
|
624
624
|
let i = 0, s = 0, c, u = {}, a = o.pop();
|
|
625
|
-
typeof a == "object" && (u = a, a = o.pop()),
|
|
625
|
+
typeof a == "object" && (u = a, a = o.pop()), Be(
|
|
626
626
|
a,
|
|
627
627
|
`createSelector expects an output function after the inputs, but received: [${typeof a}]`
|
|
628
628
|
);
|
|
@@ -632,35 +632,35 @@ function Oe(e, ...t) {
|
|
|
632
632
|
}, {
|
|
633
633
|
memoize: l,
|
|
634
634
|
memoizeOptions: _ = [],
|
|
635
|
-
argsMemoize: g =
|
|
635
|
+
argsMemoize: g = oe,
|
|
636
636
|
argsMemoizeOptions: h = [],
|
|
637
637
|
devModeChecks: p = {}
|
|
638
|
-
} = f, w =
|
|
638
|
+
} = f, w = de(_), F = de(h), E = Xe(o), K = l(function() {
|
|
639
639
|
return i++, a.apply(
|
|
640
640
|
null,
|
|
641
641
|
arguments
|
|
642
642
|
);
|
|
643
643
|
}, ...w);
|
|
644
644
|
let P = !0;
|
|
645
|
-
const
|
|
645
|
+
const B = g(function() {
|
|
646
646
|
s++;
|
|
647
|
-
const
|
|
647
|
+
const D = pe(
|
|
648
648
|
E,
|
|
649
649
|
arguments
|
|
650
650
|
);
|
|
651
|
-
if (c =
|
|
652
|
-
const { identityFunctionCheck:
|
|
653
|
-
if (
|
|
651
|
+
if (c = K.apply(null, D), process.env.NODE_ENV !== "production") {
|
|
652
|
+
const { identityFunctionCheck: I, inputStabilityCheck: j } = Je(P, p);
|
|
653
|
+
if (I.shouldRun && I.run(
|
|
654
654
|
a,
|
|
655
|
-
|
|
655
|
+
D,
|
|
656
656
|
c
|
|
657
|
-
),
|
|
658
|
-
const
|
|
657
|
+
), j.shouldRun) {
|
|
658
|
+
const Ee = pe(
|
|
659
659
|
E,
|
|
660
660
|
arguments
|
|
661
661
|
);
|
|
662
|
-
|
|
663
|
-
{ inputSelectorResults:
|
|
662
|
+
j.run(
|
|
663
|
+
{ inputSelectorResults: D, inputSelectorResultsCopy: Ee },
|
|
664
664
|
{ memoize: l, memoizeOptions: w },
|
|
665
665
|
arguments
|
|
666
666
|
);
|
|
@@ -668,10 +668,10 @@ function Oe(e, ...t) {
|
|
|
668
668
|
P && (P = !1);
|
|
669
669
|
}
|
|
670
670
|
return c;
|
|
671
|
-
}, ...
|
|
672
|
-
return Object.assign(
|
|
671
|
+
}, ...F);
|
|
672
|
+
return Object.assign(B, {
|
|
673
673
|
resultFunc: a,
|
|
674
|
-
memoizedResultFunc:
|
|
674
|
+
memoizedResultFunc: K,
|
|
675
675
|
dependencies: E,
|
|
676
676
|
dependencyRecomputations: () => s,
|
|
677
677
|
resetDependencyRecomputations: () => {
|
|
@@ -690,9 +690,9 @@ function Oe(e, ...t) {
|
|
|
690
690
|
withTypes: () => n
|
|
691
691
|
}), n;
|
|
692
692
|
}
|
|
693
|
-
var
|
|
694
|
-
(e, t =
|
|
695
|
-
|
|
693
|
+
var Le = /* @__PURE__ */ Oe(oe), et = Object.assign(
|
|
694
|
+
(e, t = Le) => {
|
|
695
|
+
Ge(
|
|
696
696
|
e,
|
|
697
697
|
`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`
|
|
698
698
|
);
|
|
@@ -704,23 +704,23 @@ var et = /* @__PURE__ */ Oe(ie), tt = Object.assign(
|
|
|
704
704
|
(...i) => i.reduce((s, c, u) => (s[r[u]] = c, s), {})
|
|
705
705
|
);
|
|
706
706
|
},
|
|
707
|
-
{ withTypes: () =>
|
|
708
|
-
),
|
|
707
|
+
{ withTypes: () => et }
|
|
708
|
+
), tt = (...e) => {
|
|
709
709
|
const t = Oe(...e), r = Object.assign((...n) => {
|
|
710
|
-
const o = t(...n), i = (s, ...c) => o(
|
|
710
|
+
const o = t(...n), i = (s, ...c) => o(v(s) ? be(s) : s, ...c);
|
|
711
711
|
return Object.assign(i, o), i;
|
|
712
712
|
}, {
|
|
713
713
|
withTypes: () => r
|
|
714
714
|
});
|
|
715
715
|
return r;
|
|
716
716
|
};
|
|
717
|
-
|
|
718
|
-
function
|
|
717
|
+
tt(oe);
|
|
718
|
+
function U(e, t) {
|
|
719
719
|
function r(...n) {
|
|
720
720
|
if (t) {
|
|
721
721
|
let o = t(...n);
|
|
722
722
|
if (!o)
|
|
723
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
723
|
+
throw new Error(process.env.NODE_ENV === "production" ? V(0) : "prepareAction did not return an object");
|
|
724
724
|
return {
|
|
725
725
|
type: e,
|
|
726
726
|
payload: o.payload,
|
|
@@ -737,18 +737,18 @@ function B(e, t) {
|
|
|
737
737
|
payload: n[0]
|
|
738
738
|
};
|
|
739
739
|
}
|
|
740
|
-
return r.toString = () => `${e}`, r.type = e, r.match = (n) =>
|
|
740
|
+
return r.toString = () => `${e}`, r.type = e, r.match = (n) => Ae(n) && n.type === e, r;
|
|
741
741
|
}
|
|
742
742
|
process.env.NODE_ENV;
|
|
743
|
-
var
|
|
743
|
+
var rt = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Se = (e = 21) => {
|
|
744
744
|
let t = "", r = e;
|
|
745
745
|
for (; r--; )
|
|
746
|
-
t +=
|
|
746
|
+
t += rt[Math.random() * 64 | 0];
|
|
747
747
|
return t;
|
|
748
|
-
},
|
|
748
|
+
}, nt = (e, t) => {
|
|
749
749
|
if (typeof e != "function")
|
|
750
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
751
|
-
},
|
|
750
|
+
throw new Error(process.env.NODE_ENV === "production" ? V(32) : `${t} is not a function`);
|
|
751
|
+
}, ie = "listenerMiddleware", ot = (e) => {
|
|
752
752
|
let {
|
|
753
753
|
type: t,
|
|
754
754
|
actionCreator: r,
|
|
@@ -757,56 +757,56 @@ var nt = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Ee
|
|
|
757
757
|
effect: i
|
|
758
758
|
} = e;
|
|
759
759
|
if (t)
|
|
760
|
-
o =
|
|
760
|
+
o = U(t).match;
|
|
761
761
|
else if (r)
|
|
762
762
|
t = r.type, o = r.match;
|
|
763
763
|
else if (n)
|
|
764
764
|
o = n;
|
|
765
765
|
else if (!o)
|
|
766
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
767
|
-
return
|
|
766
|
+
throw new Error(process.env.NODE_ENV === "production" ? V(21) : "Creating or removing a listener requires one of the known fields for matching an action");
|
|
767
|
+
return nt(i, "options.listener"), {
|
|
768
768
|
predicate: o,
|
|
769
769
|
type: t,
|
|
770
770
|
effect: i
|
|
771
771
|
};
|
|
772
|
-
},
|
|
772
|
+
}, it = Object.assign((e) => {
|
|
773
773
|
const {
|
|
774
774
|
type: t,
|
|
775
775
|
predicate: r,
|
|
776
776
|
effect: n
|
|
777
|
-
} =
|
|
777
|
+
} = ot(e);
|
|
778
778
|
return {
|
|
779
|
-
id:
|
|
779
|
+
id: Se(),
|
|
780
780
|
effect: n,
|
|
781
781
|
type: t,
|
|
782
782
|
predicate: r,
|
|
783
783
|
pending: /* @__PURE__ */ new Set(),
|
|
784
784
|
unsubscribe: () => {
|
|
785
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
785
|
+
throw new Error(process.env.NODE_ENV === "production" ? V(22) : "Unsubscribe not initialized");
|
|
786
786
|
}
|
|
787
787
|
};
|
|
788
788
|
}, {
|
|
789
|
+
withTypes: () => it
|
|
790
|
+
}), st = Object.assign(U(`${ie}/add`), {
|
|
789
791
|
withTypes: () => st
|
|
790
|
-
}), ct = Object.assign(B(`${se}/add`), {
|
|
791
|
-
withTypes: () => ct
|
|
792
792
|
});
|
|
793
|
-
|
|
794
|
-
var
|
|
795
|
-
withTypes: () =>
|
|
793
|
+
U(`${ie}/removeAll`);
|
|
794
|
+
var ct = Object.assign(U(`${ie}/remove`), {
|
|
795
|
+
withTypes: () => ct
|
|
796
796
|
});
|
|
797
|
-
function
|
|
797
|
+
function V(e) {
|
|
798
798
|
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
799
799
|
}
|
|
800
|
-
const
|
|
800
|
+
const ut = (e, t, r = !1) => {
|
|
801
801
|
const n = r ? "top-end" : "top-start", o = r ? "top-start" : "top-end", i = r ? "bottom-end" : "bottom-start", s = r ? "bottom-start" : "bottom-end", c = r ? "right-start" : "left-start", u = r ? "right-end" : "left-end", a = r ? "left-start" : "right-start", f = r ? "left-end" : "right-end";
|
|
802
802
|
let l = e ? s : i;
|
|
803
803
|
return t === "up" ? l = e ? o : n : t === "end" ? l = e ? f : a : t === "start" ? l = e ? u : c : t === "down-centered" ? l = "bottom" : t === "up-centered" && (l = "top"), l;
|
|
804
|
-
},
|
|
804
|
+
}, at = Ce(({
|
|
805
805
|
children: e,
|
|
806
806
|
className: t,
|
|
807
807
|
onSelect: r,
|
|
808
808
|
onToggle: n,
|
|
809
|
-
|
|
809
|
+
controlId: o,
|
|
810
810
|
toggleProps: i,
|
|
811
811
|
title: s,
|
|
812
812
|
menuProps: c,
|
|
@@ -816,35 +816,43 @@ const at = (e, t, r = !1) => {
|
|
|
816
816
|
show: l = "default",
|
|
817
817
|
..._
|
|
818
818
|
}, g) => {
|
|
819
|
-
const [h, p] =
|
|
820
|
-
|
|
821
|
-
}, []), P =
|
|
819
|
+
const [h, p] = se(l === "default" ? !1 : l), [w, F] = se({ case: "" }), E = ze((I) => {
|
|
820
|
+
I.stopPropagation(), p((j) => !j);
|
|
821
|
+
}, []), P = ut(a === "end", u), B = {
|
|
822
822
|
down: "dropdown",
|
|
823
823
|
"down-centered": "dropdown-center",
|
|
824
824
|
up: "dropup",
|
|
825
825
|
"up-centered": "dropup-center dropup",
|
|
826
826
|
end: "dropend",
|
|
827
827
|
start: "dropstart"
|
|
828
|
-
},
|
|
828
|
+
}, G = o || "nav-dropdown-" + Se(), D = De(() => ({
|
|
829
829
|
align: a,
|
|
830
830
|
drop: u,
|
|
831
831
|
showInternal: l != "default" && n ? l : h,
|
|
832
832
|
handleToggle: l != "default" && n ? n : E,
|
|
833
833
|
placement: P,
|
|
834
|
-
directionClasses:
|
|
835
|
-
|
|
834
|
+
directionClasses: {
|
|
835
|
+
down: "dropdown",
|
|
836
|
+
"down-centered": "dropdown-center",
|
|
837
|
+
up: "dropup",
|
|
838
|
+
"up-centered": "dropup-center dropup",
|
|
839
|
+
end: "dropend",
|
|
840
|
+
start: "dropstart"
|
|
841
|
+
},
|
|
842
|
+
controlId: G,
|
|
836
843
|
activeDescendant: w,
|
|
837
|
-
setActiveDescendant:
|
|
838
|
-
}), [a, u, l, h, n, E, P,
|
|
839
|
-
return /* @__PURE__ */
|
|
840
|
-
/* @__PURE__ */
|
|
841
|
-
/* @__PURE__ */
|
|
844
|
+
setActiveDescendant: F
|
|
845
|
+
}), [a, u, l, h, n, E, P, B, o, w, F]);
|
|
846
|
+
return /* @__PURE__ */ H("div", { ref: g, id: o + "-wrapper", className: `sg-dropdown${t ? " " + t : ""} sg-nav-item`, ..._, children: /* @__PURE__ */ Pe(ke, { value: D, children: [
|
|
847
|
+
/* @__PURE__ */ H(C.Toggle, { navDropdown: !0, ...i, children: s }),
|
|
848
|
+
/* @__PURE__ */ H(C.Menu, { ...c, children: e })
|
|
842
849
|
] }) });
|
|
850
|
+
}), pt = Object.assign(at, {
|
|
851
|
+
Toggle: C.Toggle,
|
|
852
|
+
Menu: C.Menu,
|
|
853
|
+
Item: C.Item,
|
|
854
|
+
Divider: C.Divider
|
|
843
855
|
});
|
|
844
|
-
F.Toggle = A.Toggle;
|
|
845
|
-
F.Menu = A.Menu;
|
|
846
|
-
F.Item = A.Item;
|
|
847
|
-
F.Divider = A.Divider;
|
|
848
856
|
export {
|
|
849
|
-
|
|
857
|
+
pt as default
|
|
850
858
|
};
|