vrembem 4.0.0-next.15 → 4.0.0-next.16
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/base.scss +20 -0
- package/dev/base.css +256 -332
- package/dev/base.css.map +1 -1
- package/dev/index.css +378 -656
- package/dev/index.css.map +1 -1
- package/dev/index.js +81 -4
- package/dev/index.js.map +1 -1
- package/dev/index.umd.cjs +81 -4
- package/dev/index.umd.cjs.map +1 -1
- package/dev/root.css +326 -60
- package/dev/root.css.map +1 -1
- package/dist/base.css +1 -1
- package/dist/base.css.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +387 -329
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +3 -3
- package/dist/index.umd.cjs.map +1 -1
- package/dist/root.css +1 -1
- package/dist/root.css.map +1 -1
- package/index.scss +1 -0
- package/package.json +24 -22
- package/root.scss +20 -0
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Oe = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var E = (t, e, i) => (
|
|
4
|
+
var $e = (t, e, i) => e.has(t) || Oe("Cannot " + i);
|
|
5
|
+
var E = (t, e, i) => ($e(t, e, "read from private field"), i ? i.call(t) : e.get(t)), H = (t, e, i) => e.has(t) ? Oe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), I = (t, e, i, s) => ($e(t, e, "write to private field"), s ? s.call(t, i) : e.set(t, i), i);
|
|
6
6
|
var B;
|
|
7
|
-
class
|
|
7
|
+
class Ie {
|
|
8
8
|
constructor(e, i) {
|
|
9
9
|
H(this, B);
|
|
10
10
|
this.value = e, I(this, B, i), this.mql = null;
|
|
@@ -123,21 +123,28 @@ function li(t) {
|
|
|
123
123
|
function Bt() {
|
|
124
124
|
return getComputedStyle(document.body).getPropertyValue("--vb-prefix").trim();
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Zt(t, e) {
|
|
127
|
+
const i = {
|
|
128
|
+
fallback: null,
|
|
129
|
+
element: document.body,
|
|
130
|
+
...e
|
|
131
|
+
};
|
|
127
132
|
if (t.slice(0, 2) !== "--") {
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
const
|
|
132
|
-
if (
|
|
133
|
-
return
|
|
133
|
+
const n = Bt();
|
|
134
|
+
n && (t = `${n}${t}`), t = `--${t}`;
|
|
135
|
+
}
|
|
136
|
+
const s = getComputedStyle(i.element).getPropertyValue(t).trim();
|
|
137
|
+
if (s)
|
|
138
|
+
return s;
|
|
139
|
+
if (i.fallback)
|
|
140
|
+
return i.fallback;
|
|
134
141
|
throw new Error(`CSS variable "${t}" was not found!`);
|
|
135
142
|
}
|
|
136
|
-
function
|
|
143
|
+
function te(t, e) {
|
|
137
144
|
const s = (t.getAttribute(`data-${e}`) || "").replace(/'/g, '"');
|
|
138
145
|
return s ? JSON.parse(s) : {};
|
|
139
146
|
}
|
|
140
|
-
function
|
|
147
|
+
function ee(t, e = !0) {
|
|
141
148
|
const i = localStorage.getItem(t), s = i ? JSON.parse(i) : {};
|
|
142
149
|
return {
|
|
143
150
|
get(n) {
|
|
@@ -148,17 +155,67 @@ function Ie(t, e = !0) {
|
|
|
148
155
|
}
|
|
149
156
|
};
|
|
150
157
|
}
|
|
151
|
-
function
|
|
158
|
+
function Kt(t, e, i) {
|
|
152
159
|
const s = e.nodeType === Node.COMMENT_NODE, n = e.nodeType === Node.ELEMENT_NODE;
|
|
153
160
|
if (e = s || n ? e : document.querySelector(e), s && (i = "after"), !e) throw new Error(`Not a valid teleport reference: '${e}'`);
|
|
154
161
|
if (typeof e[i] != "function") throw new Error(`Not a valid teleport method: '${i}'`);
|
|
155
162
|
let r = null;
|
|
156
163
|
return s || (r = document.createComment("teleported #" + t.id), t.before(r)), e[i](t), s && e.remove(), r;
|
|
157
164
|
}
|
|
165
|
+
function ci(t) {
|
|
166
|
+
const e = {
|
|
167
|
+
prefix: Zt("prefix-themes", { fallback: "vb-theme-" }),
|
|
168
|
+
themes: ["root", "light", "dark"],
|
|
169
|
+
storeKey: "VB:Profile"
|
|
170
|
+
};
|
|
171
|
+
for (const [r] of Object.entries(e))
|
|
172
|
+
t && t[r] && (e[r] = t[r]);
|
|
173
|
+
const i = {
|
|
174
|
+
onInit() {
|
|
175
|
+
},
|
|
176
|
+
onChange() {
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
for (const [r] of Object.entries(i))
|
|
180
|
+
t && t[r] && (i[r] = t[r]);
|
|
181
|
+
const s = ee(e.storeKey), n = {
|
|
182
|
+
// Store our settings in the API.
|
|
183
|
+
settings: e,
|
|
184
|
+
// Actions.
|
|
185
|
+
add(r) {
|
|
186
|
+
e.themes.push(r);
|
|
187
|
+
},
|
|
188
|
+
remove(r) {
|
|
189
|
+
const a = e.themes.indexOf(r);
|
|
190
|
+
~a && e.themes.splice(a, 1);
|
|
191
|
+
},
|
|
192
|
+
callback(r) {
|
|
193
|
+
i[r].call(this);
|
|
194
|
+
},
|
|
195
|
+
// Getters.
|
|
196
|
+
get class() {
|
|
197
|
+
return `${e.prefix}${this.theme}`;
|
|
198
|
+
},
|
|
199
|
+
get classes() {
|
|
200
|
+
return e.themes.map((r) => `${e.prefix}${r}`);
|
|
201
|
+
},
|
|
202
|
+
get themes() {
|
|
203
|
+
return e.themes;
|
|
204
|
+
},
|
|
205
|
+
// Setup the theme get and set methods.
|
|
206
|
+
get theme() {
|
|
207
|
+
return s.get("theme") || "root";
|
|
208
|
+
},
|
|
209
|
+
set theme(r) {
|
|
210
|
+
e.themes.includes(r) ? this.theme != r && (s.set("theme", r), document.documentElement.classList.remove(...this.classes), document.documentElement.classList.add(`${e.prefix}${r}`), this.callback("onChange")) : console.error(`Not a valid theme value: "${r}"`);
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
return n.callback("onInit"), n;
|
|
214
|
+
}
|
|
158
215
|
function Ot(t, e, i, s = "transition-duration") {
|
|
159
216
|
return new Promise((n) => {
|
|
160
217
|
if (typeof s == "string") {
|
|
161
|
-
const r =
|
|
218
|
+
const r = Zt(s, { element: t }), a = !!r.includes("ms");
|
|
162
219
|
s = parseFloat(r) * (a ? 1 : 1e3);
|
|
163
220
|
}
|
|
164
221
|
t.classList.remove(e.finish), t.classList.add(i.start), setTimeout(() => {
|
|
@@ -166,7 +223,7 @@ function Ot(t, e, i, s = "transition-duration") {
|
|
|
166
223
|
}, s);
|
|
167
224
|
});
|
|
168
225
|
}
|
|
169
|
-
function
|
|
226
|
+
function di(t, e) {
|
|
170
227
|
e && document.querySelectorAll(e).forEach((s) => {
|
|
171
228
|
t ? s.style.overflow = "hidden" : s.style.removeProperty("overflow");
|
|
172
229
|
});
|
|
@@ -177,21 +234,22 @@ function ui(t, e) {
|
|
|
177
234
|
});
|
|
178
235
|
}
|
|
179
236
|
function $t(t, e) {
|
|
180
|
-
ui(!!t, e.selectorInert),
|
|
237
|
+
ui(!!t, e.selectorInert), di(!!t, e.selectorOverflow);
|
|
181
238
|
}
|
|
182
|
-
const
|
|
239
|
+
const Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
183
240
|
__proto__: null,
|
|
184
|
-
Breakpoint:
|
|
241
|
+
Breakpoint: Ie,
|
|
185
242
|
Collection: Rt,
|
|
186
243
|
FocusTrap: Qt,
|
|
187
|
-
cssVar:
|
|
188
|
-
getConfig:
|
|
244
|
+
cssVar: Zt,
|
|
245
|
+
getConfig: te,
|
|
189
246
|
getPrefix: Bt,
|
|
190
|
-
localStore:
|
|
191
|
-
teleport:
|
|
247
|
+
localStore: ee,
|
|
248
|
+
teleport: Kt,
|
|
249
|
+
themeStore: ci,
|
|
192
250
|
transition: Ot,
|
|
193
251
|
updateGlobalState: $t
|
|
194
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
252
|
+
}, Symbol.toStringTag, { value: "Module" })), fi = {
|
|
195
253
|
autoMount: !1,
|
|
196
254
|
// Data attributes
|
|
197
255
|
dataOpen: "drawer-open",
|
|
@@ -223,13 +281,13 @@ const Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
223
281
|
transition: !0,
|
|
224
282
|
transitionDuration: "drawer-transition-duration"
|
|
225
283
|
};
|
|
226
|
-
function
|
|
284
|
+
function pi(t) {
|
|
227
285
|
t.store === "opened" ? t.open(!1, !1) : t.store === "closed" ? t.close(!1, !1) : t.store === "indeterminate" ? t.state = "indeterminate" : t.el.classList.contains(t.getSetting("stateOpened")) ? t.open(!1, !1) : t.el.classList.contains(t.getSetting("stateClosed")) ? t.close(!1, !1) : t.state = "indeterminate";
|
|
228
286
|
}
|
|
229
|
-
async function
|
|
287
|
+
async function hi(t) {
|
|
230
288
|
t.store === "opened" ? await t.open(!1, !1) : t.store === "closed" ? await t.close(!1, !1) : t.store === "indeterminate" ? t.state != "indeterminate" && (t.state = "indeterminate") : (t.state != t.inlineState && (t.state = t.inlineState), t.inlineState === "opened" ? await t.open(!1, !1) : t.inlineState === "closed" && await t.close(!1, !1));
|
|
231
289
|
}
|
|
232
|
-
function
|
|
290
|
+
function gi(t) {
|
|
233
291
|
const e = Bt(), i = t.getAttribute(`data-${this.settings.dataBreakpoint}`);
|
|
234
292
|
return this.settings.breakpoints && this.settings.breakpoints[i] ? this.settings.breakpoints[i] : getComputedStyle(document.body).getPropertyValue(`--${e}breakpoint-${i}`).trim() ? getComputedStyle(document.body).getPropertyValue(`--${e}breakpoint-${i}`).trim() : i;
|
|
235
293
|
}
|
|
@@ -242,7 +300,7 @@ function nt(t) {
|
|
|
242
300
|
function Re(t) {
|
|
243
301
|
t.state === "opened" ? t.mode === "modal" ? this.focusTrap.mount(t.dialog, this.settings.selectorFocus) : this.focusTrap.focus(t.dialog, this.settings.selectorFocus) : (t.trigger && (t.trigger.focus(), t.trigger = null), this.focusTrap.unmount());
|
|
244
302
|
}
|
|
245
|
-
async function
|
|
303
|
+
async function vi(t) {
|
|
246
304
|
const e = t.target.closest(`
|
|
247
305
|
[data-${this.settings.dataOpen}],
|
|
248
306
|
[data-${this.settings.dataToggle}],
|
|
@@ -269,11 +327,11 @@ async function gi(t) {
|
|
|
269
327
|
if (this.activeModal && t.target.matches(this.settings.selectorScreen))
|
|
270
328
|
return this.close(this.activeModal.id);
|
|
271
329
|
}
|
|
272
|
-
function
|
|
330
|
+
function mi(t) {
|
|
273
331
|
if (t.key === "Escape" && this.activeModal)
|
|
274
332
|
return this.close(this.activeModal);
|
|
275
333
|
}
|
|
276
|
-
async function
|
|
334
|
+
async function Xt(t, e = !0) {
|
|
277
335
|
const i = this.collection.findIndex((s) => s.id === t.id);
|
|
278
336
|
if (i >= 0) {
|
|
279
337
|
const s = this.collection[i];
|
|
@@ -283,7 +341,7 @@ async function Kt(t, e = !0) {
|
|
|
283
341
|
}
|
|
284
342
|
return this.collection;
|
|
285
343
|
}
|
|
286
|
-
async function
|
|
344
|
+
async function ie(t, e, i = !0) {
|
|
287
345
|
const s = nt.call(this, t), n = { ...this.settings, ...s.settings };
|
|
288
346
|
return e !== void 0 && (n.transition = e), (s.state === "closed" || s.state === "indeterminate") && (s.state = "opening", n.transition ? await Ot(s.el, {
|
|
289
347
|
start: n.stateClosing,
|
|
@@ -311,43 +369,43 @@ async function jt(t, e, i = !0) {
|
|
|
311
369
|
}
|
|
312
370
|
async function Be(t, e, i) {
|
|
313
371
|
const s = nt.call(this, t);
|
|
314
|
-
return s.state === "closed" ?
|
|
372
|
+
return s.state === "closed" ? ie.call(this, s, e, i) : jt.call(this, s, e, i);
|
|
315
373
|
}
|
|
316
|
-
function
|
|
374
|
+
function bi(t) {
|
|
317
375
|
switch (t.mode) {
|
|
318
376
|
case "inline":
|
|
319
|
-
return bi.call(this, t);
|
|
320
|
-
case "modal":
|
|
321
377
|
return wi.call(this, t);
|
|
378
|
+
case "modal":
|
|
379
|
+
return yi.call(this, t);
|
|
322
380
|
default:
|
|
323
381
|
throw new Error(`"${t.mode}" is not a valid drawer mode.`);
|
|
324
382
|
}
|
|
325
383
|
}
|
|
326
|
-
async function
|
|
327
|
-
return t.el.classList.remove(t.getSetting("classModal")), t.dialog.removeAttribute("aria-modal"), $t(!1, { ...this.settings, ...t.settings }), this.focusTrap.unmount(), await
|
|
384
|
+
async function wi(t) {
|
|
385
|
+
return t.el.classList.remove(t.getSetting("classModal")), t.dialog.removeAttribute("aria-modal"), $t(!1, { ...this.settings, ...t.settings }), this.focusTrap.unmount(), await hi(t), t.el.dispatchEvent(new CustomEvent(t.getSetting("customEventPrefix") + "switchMode", {
|
|
328
386
|
detail: this,
|
|
329
387
|
bubbles: !0
|
|
330
388
|
})), t;
|
|
331
389
|
}
|
|
332
|
-
async function
|
|
390
|
+
async function yi(t) {
|
|
333
391
|
return t.el.classList.add(t.getSetting("classModal")), t.dialog.setAttribute("aria-modal", "true"), await jt.call(this, t, !1, !1), t.el.dispatchEvent(new CustomEvent(t.getSetting("customEventPrefix") + "switchMode", {
|
|
334
392
|
detail: this,
|
|
335
393
|
bubbles: !0
|
|
336
394
|
})), t;
|
|
337
395
|
}
|
|
338
|
-
async function
|
|
339
|
-
await
|
|
340
|
-
const i = this, s = new
|
|
396
|
+
async function xi(t, e = {}) {
|
|
397
|
+
await Xt.call(this, t, !1);
|
|
398
|
+
const i = this, s = new Ie();
|
|
341
399
|
let n, r = "indeterminate";
|
|
342
400
|
const a = {
|
|
343
401
|
id: t.id,
|
|
344
402
|
el: t,
|
|
345
403
|
dialog: null,
|
|
346
404
|
trigger: null,
|
|
347
|
-
settings: { ...
|
|
405
|
+
settings: { ...te(t, this.settings.dataConfig), ...e },
|
|
348
406
|
inlineState: "indeterminate",
|
|
349
407
|
get breakpoint() {
|
|
350
|
-
return
|
|
408
|
+
return gi.call(i, t);
|
|
351
409
|
},
|
|
352
410
|
get store() {
|
|
353
411
|
return i.store.get(this.id);
|
|
@@ -356,7 +414,7 @@ async function yi(t, e = {}) {
|
|
|
356
414
|
return n;
|
|
357
415
|
},
|
|
358
416
|
set mode(o) {
|
|
359
|
-
n = o,
|
|
417
|
+
n = o, bi.call(i, this);
|
|
360
418
|
},
|
|
361
419
|
get state() {
|
|
362
420
|
return r;
|
|
@@ -364,28 +422,28 @@ async function yi(t, e = {}) {
|
|
|
364
422
|
set state(o) {
|
|
365
423
|
r = o, this.mode === "inline" && o != "opening" && o != "closing" && (this.inlineState = o, this.getSetting("store") && i.store.set(this.id, o)), o === "indeterminate" && (this.el.classList.remove(this.getSetting("stateOpened")), this.el.classList.remove(this.getSetting("stateOpening")), this.el.classList.remove(this.getSetting("stateClosed")), this.el.classList.remove(this.getSetting("stateClosing")));
|
|
366
424
|
},
|
|
367
|
-
open(o,
|
|
368
|
-
return
|
|
425
|
+
open(o, d) {
|
|
426
|
+
return ie.call(i, this, o, d);
|
|
369
427
|
},
|
|
370
|
-
close(o,
|
|
371
|
-
return jt.call(i, this, o,
|
|
428
|
+
close(o, d) {
|
|
429
|
+
return jt.call(i, this, o, d);
|
|
372
430
|
},
|
|
373
|
-
toggle(o,
|
|
374
|
-
return Be.call(i, this, o,
|
|
431
|
+
toggle(o, d) {
|
|
432
|
+
return Be.call(i, this, o, d);
|
|
375
433
|
},
|
|
376
434
|
deregister() {
|
|
377
|
-
return
|
|
435
|
+
return Xt.call(i, this);
|
|
378
436
|
},
|
|
379
437
|
mountBreakpoint() {
|
|
380
|
-
const o = this.breakpoint,
|
|
381
|
-
return s.mount(o,
|
|
438
|
+
const o = this.breakpoint, d = this.handleBreakpoint.bind(this);
|
|
439
|
+
return s.mount(o, d), this;
|
|
382
440
|
},
|
|
383
441
|
unmountBreakpoint() {
|
|
384
442
|
return s.unmount(), this;
|
|
385
443
|
},
|
|
386
444
|
handleBreakpoint(o) {
|
|
387
|
-
const
|
|
388
|
-
return this.mode !=
|
|
445
|
+
const d = o.matches ? "inline" : "modal";
|
|
446
|
+
return this.mode != d && (this.mode = d), this;
|
|
389
447
|
},
|
|
390
448
|
getSetting(o) {
|
|
391
449
|
return o in this.settings ? this.settings[o] : i.settings[o];
|
|
@@ -393,15 +451,15 @@ async function yi(t, e = {}) {
|
|
|
393
451
|
};
|
|
394
452
|
this.collection.push(a);
|
|
395
453
|
const l = t.querySelector(a.getSetting("selectorDialog"));
|
|
396
|
-
return a.dialog = l || t, a.getSetting("setTabindex") && a.dialog.setAttribute("tabindex", "-1"), await
|
|
454
|
+
return a.dialog = l || t, a.getSetting("setTabindex") && a.dialog.setAttribute("tabindex", "-1"), await pi(a), a.inlineState = a.state, a.mode = t.classList.contains(a.getSetting("classModal")) ? "modal" : "inline", a.breakpoint && a.mountBreakpoint(), a;
|
|
397
455
|
}
|
|
398
456
|
var ot, at;
|
|
399
|
-
class
|
|
457
|
+
class Hs extends Rt {
|
|
400
458
|
constructor(i) {
|
|
401
459
|
super();
|
|
402
460
|
H(this, ot);
|
|
403
461
|
H(this, at);
|
|
404
|
-
this.defaults =
|
|
462
|
+
this.defaults = fi, this.settings = { ...this.defaults, ...i }, this.focusTrap = new Qt(), this.store = ee(this.settings.storeKey, this.settings.store), I(this, ot, vi.bind(this)), I(this, at, mi.bind(this)), this.settings.autoMount && this.mount();
|
|
405
463
|
}
|
|
406
464
|
get activeModal() {
|
|
407
465
|
return this.collection.find((i) => i.state === "opened" && i.mode === "modal");
|
|
@@ -422,14 +480,14 @@ class Ws extends Rt {
|
|
|
422
480
|
}
|
|
423
481
|
register(i, s = {}) {
|
|
424
482
|
let n = typeof i == "string" ? document.getElementById(i) : i;
|
|
425
|
-
return n ?
|
|
483
|
+
return n ? xi.call(this, n, s) : Promise.reject(new Error(`Failed to register; drawer not found with ID of: "${i.id || i}".`));
|
|
426
484
|
}
|
|
427
485
|
deregister(i) {
|
|
428
486
|
let s = this.get(i.id || i);
|
|
429
|
-
return s ?
|
|
487
|
+
return s ? Xt.call(this, s) : Promise.reject(new Error(`Failed to deregister; drawer does not exist in collection with ID of: "${i.id || i}".`));
|
|
430
488
|
}
|
|
431
489
|
open(i, s, n) {
|
|
432
|
-
return
|
|
490
|
+
return ie.call(this, i, s, n);
|
|
433
491
|
}
|
|
434
492
|
close(i, s, n) {
|
|
435
493
|
return jt.call(this, i, s, n);
|
|
@@ -439,7 +497,7 @@ class Ws extends Rt {
|
|
|
439
497
|
}
|
|
440
498
|
}
|
|
441
499
|
ot = new WeakMap(), at = new WeakMap();
|
|
442
|
-
const
|
|
500
|
+
const Ei = {
|
|
443
501
|
autoMount: !1,
|
|
444
502
|
// Data attributes
|
|
445
503
|
dataOpen: "modal-open",
|
|
@@ -477,7 +535,7 @@ function yt(t) {
|
|
|
477
535
|
function Ft() {
|
|
478
536
|
this.active ? this.focusTrap.mount(this.active.dialog, this.settings.selectorFocus) : (this.trigger && (this.trigger.focus(), this.trigger = null), this.focusTrap.unmount());
|
|
479
537
|
}
|
|
480
|
-
async function
|
|
538
|
+
async function Oi(t) {
|
|
481
539
|
const e = t.target.closest(`
|
|
482
540
|
[data-${this.settings.dataOpen}],
|
|
483
541
|
[data-${this.settings.dataReplace}],
|
|
@@ -500,7 +558,7 @@ async function Ei(t) {
|
|
|
500
558
|
if (this.active && t.target.matches(this.settings.selectorScreen) && !this.active.required)
|
|
501
559
|
return this.close(this.active.id);
|
|
502
560
|
}
|
|
503
|
-
function
|
|
561
|
+
function $i(t) {
|
|
504
562
|
if (t.key === "Escape" && this.active && !this.active.dialog.matches(this.settings.selectorRequired))
|
|
505
563
|
return this.close();
|
|
506
564
|
}
|
|
@@ -514,7 +572,7 @@ async function Yt(t, e = !0) {
|
|
|
514
572
|
}
|
|
515
573
|
return this.collection;
|
|
516
574
|
}
|
|
517
|
-
async function
|
|
575
|
+
async function se(t, e, i = !0) {
|
|
518
576
|
const s = yt.call(this, t), n = { ...this.settings, ...s.settings };
|
|
519
577
|
return e !== void 0 && (n.transition = e), this.stack.moveToTop(s), s.state === "closed" && (s.state = "opening", this.stack.add(s), n.transition ? await Ot(s.el, {
|
|
520
578
|
start: n.stateClosing,
|
|
@@ -527,7 +585,7 @@ async function ee(t, e, i = !0) {
|
|
|
527
585
|
bubbles: !0
|
|
528
586
|
})), s;
|
|
529
587
|
}
|
|
530
|
-
async function
|
|
588
|
+
async function ne(t, e, i = !0) {
|
|
531
589
|
const s = t ? yt.call(this, t) : this.active;
|
|
532
590
|
if (s && s.state === "opened") {
|
|
533
591
|
s.state = "closing";
|
|
@@ -548,15 +606,15 @@ async function ie(t, e, i = !0) {
|
|
|
548
606
|
async function qt(t, e) {
|
|
549
607
|
const i = [];
|
|
550
608
|
return await Promise.all(this.stack.value.map(async (s) => {
|
|
551
|
-
t && t === s.id ? Promise.resolve() : i.push(await
|
|
609
|
+
t && t === s.id ? Promise.resolve() : i.push(await ne.call(this, s, e, !1)), s.trigger = null;
|
|
552
610
|
})), i;
|
|
553
611
|
}
|
|
554
612
|
async function je(t, e, i = !0) {
|
|
555
613
|
const s = yt.call(this, t);
|
|
556
614
|
let n, r;
|
|
557
|
-
return s.state === "opened" ? (n = s, r = await qt.call(this, s.id, e)) : (r = qt.call(this, !1, e), n =
|
|
615
|
+
return s.state === "opened" ? (n = s, r = await qt.call(this, s.id, e)) : (r = qt.call(this, !1, e), n = se.call(this, s, e, !1), await Promise.all([n, r])), i && Ft.call(this), { opened: n, closed: r };
|
|
558
616
|
}
|
|
559
|
-
async function
|
|
617
|
+
async function Li(t, e = {}) {
|
|
560
618
|
await Yt.call(this, t, !1);
|
|
561
619
|
const i = this, s = {
|
|
562
620
|
id: t.id,
|
|
@@ -567,12 +625,12 @@ async function $i(t, e = {}) {
|
|
|
567
625
|
return this.dialog.matches(this.getSetting("selectorRequired"));
|
|
568
626
|
},
|
|
569
627
|
returnRef: null,
|
|
570
|
-
settings: { ...
|
|
628
|
+
settings: { ...te(t, this.settings.dataConfig), ...e },
|
|
571
629
|
open(r, a) {
|
|
572
|
-
return
|
|
630
|
+
return se.call(i, this, r, a);
|
|
573
631
|
},
|
|
574
632
|
close(r, a) {
|
|
575
|
-
return
|
|
633
|
+
return ne.call(i, this, r, a);
|
|
576
634
|
},
|
|
577
635
|
replace(r, a) {
|
|
578
636
|
return je.call(i, this, r, a);
|
|
@@ -581,10 +639,10 @@ async function $i(t, e = {}) {
|
|
|
581
639
|
return Yt.call(i, this);
|
|
582
640
|
},
|
|
583
641
|
teleport(r = this.getSetting("teleport"), a = this.getSetting("teleportMethod")) {
|
|
584
|
-
return this.returnRef ? (console.error("Element has already been teleported:", this.el), !1) : (this.returnRef =
|
|
642
|
+
return this.returnRef ? (console.error("Element has already been teleported:", this.el), !1) : (this.returnRef = Kt(this.el, r, a), this.el);
|
|
585
643
|
},
|
|
586
644
|
teleportReturn() {
|
|
587
|
-
return this.returnRef ? (this.returnRef =
|
|
645
|
+
return this.returnRef ? (this.returnRef = Kt(this.el, this.returnRef), this.el) : (console.error("No return reference found:", this.el), !1);
|
|
588
646
|
},
|
|
589
647
|
getSetting(r) {
|
|
590
648
|
return r in this.settings ? this.settings[r] : i.settings[r];
|
|
@@ -592,7 +650,7 @@ async function $i(t, e = {}) {
|
|
|
592
650
|
}, n = t.querySelector(s.getSetting("selectorDialog"));
|
|
593
651
|
return s.dialog = n || t, s.dialog.setAttribute("aria-modal", "true"), s.dialog.hasAttribute("role") || s.dialog.setAttribute("role", "dialog"), s.getSetting("setTabindex") && s.dialog.setAttribute("tabindex", "-1"), s.getSetting("teleport") && s.teleport(), this.collection.push(s), s.el.classList.contains(this.settings.stateOpened) ? await s.open(!1) : (s.el.classList.remove(this.settings.stateOpening), s.el.classList.remove(this.settings.stateClosing), s.el.classList.add(this.settings.stateClosed)), s;
|
|
594
652
|
}
|
|
595
|
-
function
|
|
653
|
+
function Ci(t) {
|
|
596
654
|
const e = [];
|
|
597
655
|
return {
|
|
598
656
|
get value() {
|
|
@@ -627,12 +685,12 @@ function Li(t) {
|
|
|
627
685
|
};
|
|
628
686
|
}
|
|
629
687
|
var lt, ct;
|
|
630
|
-
class
|
|
688
|
+
class _s extends Rt {
|
|
631
689
|
constructor(i) {
|
|
632
690
|
super();
|
|
633
691
|
H(this, lt);
|
|
634
692
|
H(this, ct);
|
|
635
|
-
this.defaults =
|
|
693
|
+
this.defaults = Ei, this.settings = { ...this.defaults, ...i }, this.trigger = null, this.focusTrap = new Qt(), this.stack = Ci(this.settings), I(this, lt, Oi.bind(this)), I(this, ct, $i.bind(this)), this.settings.autoMount && this.mount();
|
|
636
694
|
}
|
|
637
695
|
get active() {
|
|
638
696
|
return this.stack.top;
|
|
@@ -653,17 +711,17 @@ class Hs extends Rt {
|
|
|
653
711
|
}
|
|
654
712
|
register(i, s = {}) {
|
|
655
713
|
let n = typeof i == "string" ? document.getElementById(i) : i;
|
|
656
|
-
return n ?
|
|
714
|
+
return n ? Li.call(this, n, s) : Promise.reject(new Error(`Failed to register; modal not found with ID of: "${i.id || i}".`));
|
|
657
715
|
}
|
|
658
716
|
deregister(i) {
|
|
659
717
|
let s = this.get(i.id || i);
|
|
660
718
|
return s ? Yt.call(this, s) : Promise.reject(new Error(`Failed to deregister; modal does not exist in collection with ID of: "${i.id || i}".`));
|
|
661
719
|
}
|
|
662
720
|
open(i, s, n) {
|
|
663
|
-
return
|
|
721
|
+
return se.call(this, i, s, n);
|
|
664
722
|
}
|
|
665
723
|
close(i, s, n) {
|
|
666
|
-
return
|
|
724
|
+
return ne.call(this, i, s, n);
|
|
667
725
|
}
|
|
668
726
|
replace(i, s, n) {
|
|
669
727
|
return je.call(this, i, s, n);
|
|
@@ -674,7 +732,7 @@ class Hs extends Rt {
|
|
|
674
732
|
}
|
|
675
733
|
}
|
|
676
734
|
lt = new WeakMap(), ct = new WeakMap();
|
|
677
|
-
const
|
|
735
|
+
const ki = {
|
|
678
736
|
autoMount: !1,
|
|
679
737
|
// Selectors
|
|
680
738
|
selectorPopover: ".popover",
|
|
@@ -741,7 +799,7 @@ function zt(t) {
|
|
|
741
799
|
}
|
|
742
800
|
return e;
|
|
743
801
|
}
|
|
744
|
-
function
|
|
802
|
+
function Si(t) {
|
|
745
803
|
return [{
|
|
746
804
|
name: "offset",
|
|
747
805
|
options: {
|
|
@@ -771,18 +829,18 @@ function Ne(t) {
|
|
|
771
829
|
return e;
|
|
772
830
|
throw new Error(`Popover not found in collection with id of "${t}".`);
|
|
773
831
|
}
|
|
774
|
-
function
|
|
832
|
+
function Ai(t) {
|
|
775
833
|
return typeof t == "string" ? t : typeof t.hasAttribute == "function" ? t.closest(this.settings.selectorPopover) ? (t = t.closest(this.settings.selectorPopover), t.id) : t.hasAttribute("aria-controls") ? t.getAttribute("aria-controls") : t.hasAttribute("aria-describedby") ? t.getAttribute("aria-describedby") : !1 : !1;
|
|
776
834
|
}
|
|
777
|
-
function
|
|
778
|
-
const e =
|
|
835
|
+
function Pi(t) {
|
|
836
|
+
const e = Ai.call(this, t);
|
|
779
837
|
if (e) {
|
|
780
838
|
const i = document.querySelector(`#${e}`), s = document.querySelector(`[aria-controls="${e}"]`) || document.querySelector(`[aria-describedby="${e}"]`);
|
|
781
839
|
return !s && !i ? { error: new Error(`No popover elements found using the ID: "${e}".`) } : s ? i ? { popover: i, trigger: s } : { error: new Error("No popover associated with the provided popover trigger.") } : { error: new Error("No popover trigger associated with the provided popover.") };
|
|
782
840
|
} else
|
|
783
841
|
return { error: new Error("Could not resolve the popover ID.") };
|
|
784
842
|
}
|
|
785
|
-
async function
|
|
843
|
+
async function re(t) {
|
|
786
844
|
const e = t ? Ne.call(this, t) : await Ve.call(this);
|
|
787
845
|
return e && e.state === "opened" && (e.el.classList.remove(this.settings.stateActive), e.trigger.hasAttribute("aria-controls") && e.trigger.setAttribute("aria-expanded", "false"), e.popper.setOptions({
|
|
788
846
|
modifiers: [{ name: "eventListeners", enabled: !1 }]
|
|
@@ -791,7 +849,7 @@ async function se(t) {
|
|
|
791
849
|
async function Ve() {
|
|
792
850
|
const t = [];
|
|
793
851
|
return await Promise.all(this.collection.map(async (e) => {
|
|
794
|
-
e.state === "opened" && t.push(await
|
|
852
|
+
e.state === "opened" && t.push(await re.call(this, e));
|
|
795
853
|
})), t;
|
|
796
854
|
}
|
|
797
855
|
function We(t) {
|
|
@@ -802,10 +860,10 @@ function We(t) {
|
|
|
802
860
|
return !e && !i && t.close(), t;
|
|
803
861
|
}, 1);
|
|
804
862
|
}
|
|
805
|
-
function
|
|
863
|
+
function Ti(t) {
|
|
806
864
|
t.state === "opened" ? t.close() : (this.trigger = t.trigger, t.open(), He.call(this, t));
|
|
807
865
|
}
|
|
808
|
-
function
|
|
866
|
+
function Di(t) {
|
|
809
867
|
switch (t.key) {
|
|
810
868
|
case "Escape":
|
|
811
869
|
this.trigger && this.trigger.focus(), Ve.call(this);
|
|
@@ -827,11 +885,11 @@ function He(t) {
|
|
|
827
885
|
) ? t.el && !t.el.classList.contains(e.settings.stateActive) && this.removeEventListener("click", i) : (t.el && t.el.classList.contains(e.settings.stateActive) && t.close(), this.removeEventListener("click", i));
|
|
828
886
|
});
|
|
829
887
|
}
|
|
830
|
-
var T = "top", F = "bottom", N = "right", D = "left",
|
|
831
|
-
return t.concat([e + "-" +
|
|
832
|
-
}, []), ze = /* @__PURE__ */ [].concat(Lt, [
|
|
833
|
-
return t.concat([e, e + "-" +
|
|
834
|
-
}, []),
|
|
888
|
+
var T = "top", F = "bottom", N = "right", D = "left", oe = "auto", Lt = [T, F, N, D], ut = "start", xt = "end", Mi = "clippingParents", _e = "viewport", mt = "popper", Ii = "reference", Le = /* @__PURE__ */ Lt.reduce(function(t, e) {
|
|
889
|
+
return t.concat([e + "-" + ut, e + "-" + xt]);
|
|
890
|
+
}, []), ze = /* @__PURE__ */ [].concat(Lt, [oe]).reduce(function(t, e) {
|
|
891
|
+
return t.concat([e, e + "-" + ut, e + "-" + xt]);
|
|
892
|
+
}, []), Ri = "beforeRead", Bi = "read", ji = "afterRead", Fi = "beforeMain", Ni = "main", Vi = "afterMain", Wi = "beforeWrite", Hi = "write", _i = "afterWrite", zi = [Ri, Bi, ji, Fi, Ni, Vi, Wi, Hi, _i];
|
|
835
893
|
function z(t) {
|
|
836
894
|
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
837
895
|
}
|
|
@@ -852,13 +910,13 @@ function j(t) {
|
|
|
852
910
|
var e = R(t).HTMLElement;
|
|
853
911
|
return t instanceof e || t instanceof HTMLElement;
|
|
854
912
|
}
|
|
855
|
-
function
|
|
913
|
+
function ae(t) {
|
|
856
914
|
if (typeof ShadowRoot > "u")
|
|
857
915
|
return !1;
|
|
858
916
|
var e = R(t).ShadowRoot;
|
|
859
917
|
return t instanceof e || t instanceof ShadowRoot;
|
|
860
918
|
}
|
|
861
|
-
function
|
|
919
|
+
function Ki(t) {
|
|
862
920
|
var e = t.state;
|
|
863
921
|
Object.keys(e.elements).forEach(function(i) {
|
|
864
922
|
var s = e.styles[i] || {}, n = e.attributes[i] || {}, r = e.elements[i];
|
|
@@ -883,8 +941,8 @@ function Xi(t) {
|
|
|
883
941
|
};
|
|
884
942
|
return Object.assign(e.elements.popper.style, i.popper), e.styles = i, e.elements.arrow && Object.assign(e.elements.arrow.style, i.arrow), function() {
|
|
885
943
|
Object.keys(e.elements).forEach(function(s) {
|
|
886
|
-
var n = e.elements[s], r = e.attributes[s] || {}, a = Object.keys(e.styles.hasOwnProperty(s) ? e.styles[s] : i[s]), l = a.reduce(function(o,
|
|
887
|
-
return o[
|
|
944
|
+
var n = e.elements[s], r = e.attributes[s] || {}, a = Object.keys(e.styles.hasOwnProperty(s) ? e.styles[s] : i[s]), l = a.reduce(function(o, d) {
|
|
945
|
+
return o[d] = "", o;
|
|
888
946
|
}, {});
|
|
889
947
|
!j(n) || !z(n) || (Object.assign(n.style, l), Object.keys(r).forEach(function(o) {
|
|
890
948
|
n.removeAttribute(o);
|
|
@@ -892,11 +950,11 @@ function Xi(t) {
|
|
|
892
950
|
});
|
|
893
951
|
};
|
|
894
952
|
}
|
|
895
|
-
const
|
|
953
|
+
const Yi = {
|
|
896
954
|
name: "applyStyles",
|
|
897
955
|
enabled: !0,
|
|
898
956
|
phase: "write",
|
|
899
|
-
fn:
|
|
957
|
+
fn: Ki,
|
|
900
958
|
effect: Xi,
|
|
901
959
|
requires: ["computeStyles"]
|
|
902
960
|
};
|
|
@@ -910,26 +968,26 @@ function Ut() {
|
|
|
910
968
|
return e.brand + "/" + e.version;
|
|
911
969
|
}).join(" ") : navigator.userAgent;
|
|
912
970
|
}
|
|
913
|
-
function
|
|
971
|
+
function Ke() {
|
|
914
972
|
return !/^((?!chrome|android).)*safari/i.test(Ut());
|
|
915
973
|
}
|
|
916
974
|
function pt(t, e, i) {
|
|
917
975
|
e === void 0 && (e = !1), i === void 0 && (i = !1);
|
|
918
976
|
var s = t.getBoundingClientRect(), n = 1, r = 1;
|
|
919
977
|
e && j(t) && (n = t.offsetWidth > 0 && ft(s.width) / t.offsetWidth || 1, r = t.offsetHeight > 0 && ft(s.height) / t.offsetHeight || 1);
|
|
920
|
-
var a = it(t) ? R(t) : window, l = a.visualViewport, o = !
|
|
978
|
+
var a = it(t) ? R(t) : window, l = a.visualViewport, o = !Ke() && i, d = (s.left + (o && l ? l.offsetLeft : 0)) / n, c = (s.top + (o && l ? l.offsetTop : 0)) / r, v = s.width / n, w = s.height / r;
|
|
921
979
|
return {
|
|
922
980
|
width: v,
|
|
923
981
|
height: w,
|
|
924
982
|
top: c,
|
|
925
|
-
right:
|
|
983
|
+
right: d + v,
|
|
926
984
|
bottom: c + w,
|
|
927
|
-
left:
|
|
928
|
-
x:
|
|
985
|
+
left: d,
|
|
986
|
+
x: d,
|
|
929
987
|
y: c
|
|
930
988
|
};
|
|
931
989
|
}
|
|
932
|
-
function
|
|
990
|
+
function le(t) {
|
|
933
991
|
var e = pt(t), i = t.offsetWidth, s = t.offsetHeight;
|
|
934
992
|
return Math.abs(e.width - i) <= 1 && (i = e.width), Math.abs(e.height - s) <= 1 && (s = e.height), {
|
|
935
993
|
x: t.offsetLeft,
|
|
@@ -938,11 +996,11 @@ function oe(t) {
|
|
|
938
996
|
height: s
|
|
939
997
|
};
|
|
940
998
|
}
|
|
941
|
-
function
|
|
999
|
+
function Xe(t, e) {
|
|
942
1000
|
var i = e.getRootNode && e.getRootNode();
|
|
943
1001
|
if (t.contains(e))
|
|
944
1002
|
return !0;
|
|
945
|
-
if (i &&
|
|
1003
|
+
if (i && ae(i)) {
|
|
946
1004
|
var s = e;
|
|
947
1005
|
do {
|
|
948
1006
|
if (s && t.isSameNode(s))
|
|
@@ -952,10 +1010,10 @@ function Ke(t, e) {
|
|
|
952
1010
|
}
|
|
953
1011
|
return !1;
|
|
954
1012
|
}
|
|
955
|
-
function
|
|
1013
|
+
function K(t) {
|
|
956
1014
|
return R(t).getComputedStyle(t);
|
|
957
1015
|
}
|
|
958
|
-
function
|
|
1016
|
+
function qi(t) {
|
|
959
1017
|
return ["table", "td", "th"].indexOf(z(t)) >= 0;
|
|
960
1018
|
}
|
|
961
1019
|
function Y(t) {
|
|
@@ -971,25 +1029,25 @@ function Nt(t) {
|
|
|
971
1029
|
// $FlowFixMe[prop-missing]
|
|
972
1030
|
t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
973
1031
|
t.parentNode || // DOM Element detected
|
|
974
|
-
(
|
|
1032
|
+
(ae(t) ? t.host : null) || // ShadowRoot detected
|
|
975
1033
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
976
1034
|
Y(t)
|
|
977
1035
|
);
|
|
978
1036
|
}
|
|
979
|
-
function
|
|
1037
|
+
function Ce(t) {
|
|
980
1038
|
return !j(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
981
|
-
|
|
1039
|
+
K(t).position === "fixed" ? null : t.offsetParent;
|
|
982
1040
|
}
|
|
983
|
-
function
|
|
1041
|
+
function Ui(t) {
|
|
984
1042
|
var e = /firefox/i.test(Ut()), i = /Trident/i.test(Ut());
|
|
985
1043
|
if (i && j(t)) {
|
|
986
|
-
var s =
|
|
1044
|
+
var s = K(t);
|
|
987
1045
|
if (s.position === "fixed")
|
|
988
1046
|
return null;
|
|
989
1047
|
}
|
|
990
1048
|
var n = Nt(t);
|
|
991
|
-
for (
|
|
992
|
-
var r =
|
|
1049
|
+
for (ae(n) && (n = n.host); j(n) && ["html", "body"].indexOf(z(n)) < 0; ) {
|
|
1050
|
+
var r = K(n);
|
|
993
1051
|
if (r.transform !== "none" || r.perspective !== "none" || r.contain === "paint" || ["transform", "perspective"].indexOf(r.willChange) !== -1 || e && r.willChange === "filter" || e && r.filter && r.filter !== "none")
|
|
994
1052
|
return n;
|
|
995
1053
|
n = n.parentNode;
|
|
@@ -997,17 +1055,17 @@ function qi(t) {
|
|
|
997
1055
|
return null;
|
|
998
1056
|
}
|
|
999
1057
|
function Ct(t) {
|
|
1000
|
-
for (var e = R(t), i =
|
|
1001
|
-
i =
|
|
1002
|
-
return i && (z(i) === "html" || z(i) === "body" &&
|
|
1058
|
+
for (var e = R(t), i = Ce(t); i && qi(i) && K(i).position === "static"; )
|
|
1059
|
+
i = Ce(i);
|
|
1060
|
+
return i && (z(i) === "html" || z(i) === "body" && K(i).position === "static") ? e : i || Ui(t) || e;
|
|
1003
1061
|
}
|
|
1004
|
-
function
|
|
1062
|
+
function ce(t) {
|
|
1005
1063
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
1006
1064
|
}
|
|
1007
1065
|
function bt(t, e, i) {
|
|
1008
1066
|
return et(t, It(e, i));
|
|
1009
1067
|
}
|
|
1010
|
-
function
|
|
1068
|
+
function Gi(t, e, i) {
|
|
1011
1069
|
var s = bt(t, e, i);
|
|
1012
1070
|
return s > i ? i : s;
|
|
1013
1071
|
}
|
|
@@ -1027,66 +1085,66 @@ function Ue(t, e) {
|
|
|
1027
1085
|
return i[s] = t, i;
|
|
1028
1086
|
}, {});
|
|
1029
1087
|
}
|
|
1030
|
-
var
|
|
1088
|
+
var Ji = function(e, i) {
|
|
1031
1089
|
return e = typeof e == "function" ? e(Object.assign({}, i.rects, {
|
|
1032
1090
|
placement: i.placement
|
|
1033
1091
|
})) : e, qe(typeof e != "number" ? e : Ue(e, Lt));
|
|
1034
1092
|
};
|
|
1035
|
-
function
|
|
1036
|
-
var e, i = t.state, s = t.name, n = t.options, r = i.elements.arrow, a = i.modifiersData.popperOffsets, l = _(i.placement), o =
|
|
1093
|
+
function Qi(t) {
|
|
1094
|
+
var e, i = t.state, s = t.name, n = t.options, r = i.elements.arrow, a = i.modifiersData.popperOffsets, l = _(i.placement), o = ce(l), d = [D, N].indexOf(l) >= 0, c = d ? "height" : "width";
|
|
1037
1095
|
if (!(!r || !a)) {
|
|
1038
|
-
var v =
|
|
1096
|
+
var v = Ji(n.padding, i), w = le(r), u = o === "y" ? T : D, x = o === "y" ? F : N, h = i.rects.reference[c] + i.rects.reference[o] - a[o] - i.rects.popper[c], p = a[o] - i.rects.reference[o], y = Ct(r), $ = y ? o === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, L = h / 2 - p / 2, f = v[u], m = $ - w[c] - v[x], b = $ / 2 - w[c] / 2 + L, O = bt(f, b, m), S = o;
|
|
1039
1097
|
i.modifiersData[s] = (e = {}, e[S] = O, e.centerOffset = O - b, e);
|
|
1040
1098
|
}
|
|
1041
1099
|
}
|
|
1042
|
-
function
|
|
1100
|
+
function Zi(t) {
|
|
1043
1101
|
var e = t.state, i = t.options, s = i.element, n = s === void 0 ? "[data-popper-arrow]" : s;
|
|
1044
|
-
n != null && (typeof n == "string" && (n = e.elements.popper.querySelector(n), !n) ||
|
|
1102
|
+
n != null && (typeof n == "string" && (n = e.elements.popper.querySelector(n), !n) || Xe(e.elements.popper, n) && (e.elements.arrow = n));
|
|
1045
1103
|
}
|
|
1046
|
-
const
|
|
1104
|
+
const ts = {
|
|
1047
1105
|
name: "arrow",
|
|
1048
1106
|
enabled: !0,
|
|
1049
1107
|
phase: "main",
|
|
1050
|
-
fn:
|
|
1051
|
-
effect:
|
|
1108
|
+
fn: Qi,
|
|
1109
|
+
effect: Zi,
|
|
1052
1110
|
requires: ["popperOffsets"],
|
|
1053
1111
|
requiresIfExists: ["preventOverflow"]
|
|
1054
1112
|
};
|
|
1055
1113
|
function ht(t) {
|
|
1056
1114
|
return t.split("-")[1];
|
|
1057
1115
|
}
|
|
1058
|
-
var
|
|
1116
|
+
var es = {
|
|
1059
1117
|
top: "auto",
|
|
1060
1118
|
right: "auto",
|
|
1061
1119
|
bottom: "auto",
|
|
1062
1120
|
left: "auto"
|
|
1063
1121
|
};
|
|
1064
|
-
function
|
|
1122
|
+
function is(t, e) {
|
|
1065
1123
|
var i = t.x, s = t.y, n = e.devicePixelRatio || 1;
|
|
1066
1124
|
return {
|
|
1067
1125
|
x: ft(i * n) / n || 0,
|
|
1068
1126
|
y: ft(s * n) / n || 0
|
|
1069
1127
|
};
|
|
1070
1128
|
}
|
|
1071
|
-
function
|
|
1072
|
-
var e, i = t.popper, s = t.popperRect, n = t.placement, r = t.variation, a = t.offsets, l = t.position, o = t.gpuAcceleration,
|
|
1073
|
-
x:
|
|
1129
|
+
function ke(t) {
|
|
1130
|
+
var e, i = t.popper, s = t.popperRect, n = t.placement, r = t.variation, a = t.offsets, l = t.position, o = t.gpuAcceleration, d = t.adaptive, c = t.roundOffsets, v = t.isFixed, w = a.x, u = w === void 0 ? 0 : w, x = a.y, h = x === void 0 ? 0 : x, p = typeof c == "function" ? c({
|
|
1131
|
+
x: u,
|
|
1074
1132
|
y: h
|
|
1075
1133
|
}) : {
|
|
1076
|
-
x:
|
|
1134
|
+
x: u,
|
|
1077
1135
|
y: h
|
|
1078
1136
|
};
|
|
1079
|
-
|
|
1137
|
+
u = p.x, h = p.y;
|
|
1080
1138
|
var y = a.hasOwnProperty("x"), $ = a.hasOwnProperty("y"), L = D, f = T, m = window;
|
|
1081
|
-
if (
|
|
1139
|
+
if (d) {
|
|
1082
1140
|
var b = Ct(i), O = "clientHeight", S = "clientWidth";
|
|
1083
|
-
if (b === R(i) && (b = Y(i),
|
|
1141
|
+
if (b === R(i) && (b = Y(i), K(b).position !== "static" && l === "absolute" && (O = "scrollHeight", S = "scrollWidth")), b = b, n === T || (n === D || n === N) && r === xt) {
|
|
1084
1142
|
f = F;
|
|
1085
|
-
var
|
|
1143
|
+
var k = v && b === m && m.visualViewport ? m.visualViewport.height : (
|
|
1086
1144
|
// $FlowFixMe[prop-missing]
|
|
1087
1145
|
b[O]
|
|
1088
1146
|
);
|
|
1089
|
-
h -=
|
|
1147
|
+
h -= k - s.height, h *= o ? 1 : -1;
|
|
1090
1148
|
}
|
|
1091
1149
|
if (n === D || (n === T || n === F) && r === xt) {
|
|
1092
1150
|
L = N;
|
|
@@ -1094,26 +1152,26 @@ function Le(t) {
|
|
|
1094
1152
|
// $FlowFixMe[prop-missing]
|
|
1095
1153
|
b[S]
|
|
1096
1154
|
);
|
|
1097
|
-
|
|
1155
|
+
u -= C - s.width, u *= o ? 1 : -1;
|
|
1098
1156
|
}
|
|
1099
1157
|
}
|
|
1100
|
-
var
|
|
1158
|
+
var A = Object.assign({
|
|
1101
1159
|
position: l
|
|
1102
|
-
},
|
|
1103
|
-
x:
|
|
1160
|
+
}, d && es), V = c === !0 ? is({
|
|
1161
|
+
x: u,
|
|
1104
1162
|
y: h
|
|
1105
1163
|
}, R(i)) : {
|
|
1106
|
-
x:
|
|
1164
|
+
x: u,
|
|
1107
1165
|
y: h
|
|
1108
1166
|
};
|
|
1109
|
-
if (
|
|
1167
|
+
if (u = V.x, h = V.y, o) {
|
|
1110
1168
|
var P;
|
|
1111
|
-
return Object.assign({},
|
|
1169
|
+
return Object.assign({}, A, (P = {}, P[f] = $ ? "0" : "", P[L] = y ? "0" : "", P.transform = (m.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + h + "px)" : "translate3d(" + u + "px, " + h + "px, 0)", P));
|
|
1112
1170
|
}
|
|
1113
|
-
return Object.assign({},
|
|
1171
|
+
return Object.assign({}, A, (e = {}, e[f] = $ ? h + "px" : "", e[L] = y ? u + "px" : "", e.transform = "", e));
|
|
1114
1172
|
}
|
|
1115
|
-
function
|
|
1116
|
-
var e = t.state, i = t.options, s = i.gpuAcceleration, n = s === void 0 ? !0 : s, r = i.adaptive, a = r === void 0 ? !0 : r, l = i.roundOffsets, o = l === void 0 ? !0 : l,
|
|
1173
|
+
function ss(t) {
|
|
1174
|
+
var e = t.state, i = t.options, s = i.gpuAcceleration, n = s === void 0 ? !0 : s, r = i.adaptive, a = r === void 0 ? !0 : r, l = i.roundOffsets, o = l === void 0 ? !0 : l, d = {
|
|
1117
1175
|
placement: _(e.placement),
|
|
1118
1176
|
variation: ht(e.placement),
|
|
1119
1177
|
popper: e.elements.popper,
|
|
@@ -1121,12 +1179,12 @@ function is(t) {
|
|
|
1121
1179
|
gpuAcceleration: n,
|
|
1122
1180
|
isFixed: e.options.strategy === "fixed"
|
|
1123
1181
|
};
|
|
1124
|
-
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper,
|
|
1182
|
+
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, ke(Object.assign({}, d, {
|
|
1125
1183
|
offsets: e.modifiersData.popperOffsets,
|
|
1126
1184
|
position: e.options.strategy,
|
|
1127
1185
|
adaptive: a,
|
|
1128
1186
|
roundOffsets: o
|
|
1129
|
-
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow,
|
|
1187
|
+
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, ke(Object.assign({}, d, {
|
|
1130
1188
|
offsets: e.modifiersData.arrow,
|
|
1131
1189
|
position: "absolute",
|
|
1132
1190
|
adaptive: !1,
|
|
@@ -1135,36 +1193,36 @@ function is(t) {
|
|
|
1135
1193
|
"data-popper-placement": e.placement
|
|
1136
1194
|
});
|
|
1137
1195
|
}
|
|
1138
|
-
const
|
|
1196
|
+
const ns = {
|
|
1139
1197
|
name: "computeStyles",
|
|
1140
1198
|
enabled: !0,
|
|
1141
1199
|
phase: "beforeWrite",
|
|
1142
|
-
fn:
|
|
1200
|
+
fn: ss,
|
|
1143
1201
|
data: {}
|
|
1144
1202
|
};
|
|
1145
1203
|
var Dt = {
|
|
1146
1204
|
passive: !0
|
|
1147
1205
|
};
|
|
1148
|
-
function
|
|
1149
|
-
var e = t.state, i = t.instance, s = t.options, n = s.scroll, r = n === void 0 ? !0 : n, a = s.resize, l = a === void 0 ? !0 : a, o = R(e.elements.popper),
|
|
1150
|
-
return r &&
|
|
1206
|
+
function rs(t) {
|
|
1207
|
+
var e = t.state, i = t.instance, s = t.options, n = s.scroll, r = n === void 0 ? !0 : n, a = s.resize, l = a === void 0 ? !0 : a, o = R(e.elements.popper), d = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
1208
|
+
return r && d.forEach(function(c) {
|
|
1151
1209
|
c.addEventListener("scroll", i.update, Dt);
|
|
1152
1210
|
}), l && o.addEventListener("resize", i.update, Dt), function() {
|
|
1153
|
-
r &&
|
|
1211
|
+
r && d.forEach(function(c) {
|
|
1154
1212
|
c.removeEventListener("scroll", i.update, Dt);
|
|
1155
1213
|
}), l && o.removeEventListener("resize", i.update, Dt);
|
|
1156
1214
|
};
|
|
1157
1215
|
}
|
|
1158
|
-
const
|
|
1216
|
+
const os = {
|
|
1159
1217
|
name: "eventListeners",
|
|
1160
1218
|
enabled: !0,
|
|
1161
1219
|
phase: "write",
|
|
1162
1220
|
fn: function() {
|
|
1163
1221
|
},
|
|
1164
|
-
effect:
|
|
1222
|
+
effect: rs,
|
|
1165
1223
|
data: {}
|
|
1166
1224
|
};
|
|
1167
|
-
var
|
|
1225
|
+
var as = {
|
|
1168
1226
|
left: "right",
|
|
1169
1227
|
right: "left",
|
|
1170
1228
|
bottom: "top",
|
|
@@ -1172,62 +1230,62 @@ var os = {
|
|
|
1172
1230
|
};
|
|
1173
1231
|
function Mt(t) {
|
|
1174
1232
|
return t.replace(/left|right|bottom|top/g, function(e) {
|
|
1175
|
-
return
|
|
1233
|
+
return as[e];
|
|
1176
1234
|
});
|
|
1177
1235
|
}
|
|
1178
|
-
var
|
|
1236
|
+
var ls = {
|
|
1179
1237
|
start: "end",
|
|
1180
1238
|
end: "start"
|
|
1181
1239
|
};
|
|
1182
|
-
function
|
|
1240
|
+
function Se(t) {
|
|
1183
1241
|
return t.replace(/start|end/g, function(e) {
|
|
1184
|
-
return
|
|
1242
|
+
return ls[e];
|
|
1185
1243
|
});
|
|
1186
1244
|
}
|
|
1187
|
-
function
|
|
1245
|
+
function de(t) {
|
|
1188
1246
|
var e = R(t), i = e.pageXOffset, s = e.pageYOffset;
|
|
1189
1247
|
return {
|
|
1190
1248
|
scrollLeft: i,
|
|
1191
1249
|
scrollTop: s
|
|
1192
1250
|
};
|
|
1193
1251
|
}
|
|
1194
|
-
function
|
|
1195
|
-
return pt(Y(t)).left +
|
|
1252
|
+
function ue(t) {
|
|
1253
|
+
return pt(Y(t)).left + de(t).scrollLeft;
|
|
1196
1254
|
}
|
|
1197
|
-
function
|
|
1255
|
+
function cs(t, e) {
|
|
1198
1256
|
var i = R(t), s = Y(t), n = i.visualViewport, r = s.clientWidth, a = s.clientHeight, l = 0, o = 0;
|
|
1199
1257
|
if (n) {
|
|
1200
1258
|
r = n.width, a = n.height;
|
|
1201
|
-
var
|
|
1202
|
-
(
|
|
1259
|
+
var d = Ke();
|
|
1260
|
+
(d || !d && e === "fixed") && (l = n.offsetLeft, o = n.offsetTop);
|
|
1203
1261
|
}
|
|
1204
1262
|
return {
|
|
1205
1263
|
width: r,
|
|
1206
1264
|
height: a,
|
|
1207
|
-
x: l +
|
|
1265
|
+
x: l + ue(t),
|
|
1208
1266
|
y: o
|
|
1209
1267
|
};
|
|
1210
1268
|
}
|
|
1211
|
-
function
|
|
1212
|
-
var e, i = Y(t), s =
|
|
1213
|
-
return
|
|
1269
|
+
function ds(t) {
|
|
1270
|
+
var e, i = Y(t), s = de(t), n = (e = t.ownerDocument) == null ? void 0 : e.body, r = et(i.scrollWidth, i.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), a = et(i.scrollHeight, i.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), l = -s.scrollLeft + ue(t), o = -s.scrollTop;
|
|
1271
|
+
return K(n || i).direction === "rtl" && (l += et(i.clientWidth, n ? n.clientWidth : 0) - r), {
|
|
1214
1272
|
width: r,
|
|
1215
1273
|
height: a,
|
|
1216
1274
|
x: l,
|
|
1217
1275
|
y: o
|
|
1218
1276
|
};
|
|
1219
1277
|
}
|
|
1220
|
-
function
|
|
1221
|
-
var e =
|
|
1278
|
+
function fe(t) {
|
|
1279
|
+
var e = K(t), i = e.overflow, s = e.overflowX, n = e.overflowY;
|
|
1222
1280
|
return /auto|scroll|overlay|hidden/.test(i + n + s);
|
|
1223
1281
|
}
|
|
1224
1282
|
function Ge(t) {
|
|
1225
|
-
return ["html", "body", "#document"].indexOf(z(t)) >= 0 ? t.ownerDocument.body : j(t) &&
|
|
1283
|
+
return ["html", "body", "#document"].indexOf(z(t)) >= 0 ? t.ownerDocument.body : j(t) && fe(t) ? t : Ge(Nt(t));
|
|
1226
1284
|
}
|
|
1227
1285
|
function wt(t, e) {
|
|
1228
1286
|
var i;
|
|
1229
1287
|
e === void 0 && (e = []);
|
|
1230
|
-
var s = Ge(t), n = s === ((i = t.ownerDocument) == null ? void 0 : i.body), r = R(s), a = n ? [r].concat(r.visualViewport || [],
|
|
1288
|
+
var s = Ge(t), n = s === ((i = t.ownerDocument) == null ? void 0 : i.body), r = R(s), a = n ? [r].concat(r.visualViewport || [], fe(s) ? s : []) : s, l = e.concat(a);
|
|
1231
1289
|
return n ? l : (
|
|
1232
1290
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
1233
1291
|
l.concat(wt(Nt(a)))
|
|
@@ -1246,17 +1304,17 @@ function us(t, e) {
|
|
|
1246
1304
|
return i.top = i.top + t.clientTop, i.left = i.left + t.clientLeft, i.bottom = i.top + t.clientHeight, i.right = i.left + t.clientWidth, i.width = t.clientWidth, i.height = t.clientHeight, i.x = i.left, i.y = i.top, i;
|
|
1247
1305
|
}
|
|
1248
1306
|
function Ae(t, e, i) {
|
|
1249
|
-
return e === _e ? Gt(
|
|
1307
|
+
return e === _e ? Gt(cs(t, i)) : it(e) ? us(e, i) : Gt(ds(Y(t)));
|
|
1250
1308
|
}
|
|
1251
|
-
function
|
|
1252
|
-
var e = wt(Nt(t)), i = ["absolute", "fixed"].indexOf(
|
|
1309
|
+
function fs(t) {
|
|
1310
|
+
var e = wt(Nt(t)), i = ["absolute", "fixed"].indexOf(K(t).position) >= 0, s = i && j(t) ? Ct(t) : t;
|
|
1253
1311
|
return it(s) ? e.filter(function(n) {
|
|
1254
|
-
return it(n) &&
|
|
1312
|
+
return it(n) && Xe(n, s) && z(n) !== "body";
|
|
1255
1313
|
}) : [];
|
|
1256
1314
|
}
|
|
1257
|
-
function
|
|
1258
|
-
var n = e === "clippingParents" ?
|
|
1259
|
-
var c = Ae(t,
|
|
1315
|
+
function ps(t, e, i, s) {
|
|
1316
|
+
var n = e === "clippingParents" ? fs(t) : [].concat(e), r = [].concat(n, [i]), a = r[0], l = r.reduce(function(o, d) {
|
|
1317
|
+
var c = Ae(t, d, s);
|
|
1260
1318
|
return o.top = et(c.top, o.top), o.right = It(c.right, o.right), o.bottom = It(c.bottom, o.bottom), o.left = et(c.left, o.left), o;
|
|
1261
1319
|
}, Ae(t, a, s));
|
|
1262
1320
|
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
@@ -1294,15 +1352,15 @@ function Je(t) {
|
|
|
1294
1352
|
y: e.y
|
|
1295
1353
|
};
|
|
1296
1354
|
}
|
|
1297
|
-
var
|
|
1298
|
-
if (
|
|
1299
|
-
var c =
|
|
1355
|
+
var d = n ? ce(n) : null;
|
|
1356
|
+
if (d != null) {
|
|
1357
|
+
var c = d === "y" ? "height" : "width";
|
|
1300
1358
|
switch (r) {
|
|
1301
|
-
case
|
|
1302
|
-
o[
|
|
1359
|
+
case ut:
|
|
1360
|
+
o[d] = o[d] - (e[c] / 2 - i[c] / 2);
|
|
1303
1361
|
break;
|
|
1304
1362
|
case xt:
|
|
1305
|
-
o[
|
|
1363
|
+
o[d] = o[d] + (e[c] / 2 - i[c] / 2);
|
|
1306
1364
|
break;
|
|
1307
1365
|
}
|
|
1308
1366
|
}
|
|
@@ -1310,19 +1368,19 @@ function Je(t) {
|
|
|
1310
1368
|
}
|
|
1311
1369
|
function Et(t, e) {
|
|
1312
1370
|
e === void 0 && (e = {});
|
|
1313
|
-
var i = e, s = i.placement, n = s === void 0 ? t.placement : s, r = i.strategy, a = r === void 0 ? t.strategy : r, l = i.boundary, o = l === void 0 ?
|
|
1371
|
+
var i = e, s = i.placement, n = s === void 0 ? t.placement : s, r = i.strategy, a = r === void 0 ? t.strategy : r, l = i.boundary, o = l === void 0 ? Mi : l, d = i.rootBoundary, c = d === void 0 ? _e : d, v = i.elementContext, w = v === void 0 ? mt : v, u = i.altBoundary, x = u === void 0 ? !1 : u, h = i.padding, p = h === void 0 ? 0 : h, y = qe(typeof p != "number" ? p : Ue(p, Lt)), $ = w === mt ? Ii : mt, L = t.rects.popper, f = t.elements[x ? $ : w], m = ps(it(f) ? f : f.contextElement || Y(t.elements.popper), o, c, a), b = pt(t.elements.reference), O = Je({
|
|
1314
1372
|
reference: b,
|
|
1315
1373
|
element: L,
|
|
1316
1374
|
strategy: "absolute",
|
|
1317
1375
|
placement: n
|
|
1318
|
-
}), S = Gt(Object.assign({}, L, O)),
|
|
1319
|
-
top: m.top -
|
|
1320
|
-
bottom:
|
|
1321
|
-
left: m.left -
|
|
1322
|
-
right:
|
|
1323
|
-
},
|
|
1324
|
-
if (w === mt &&
|
|
1325
|
-
var V =
|
|
1376
|
+
}), S = Gt(Object.assign({}, L, O)), k = w === mt ? S : b, C = {
|
|
1377
|
+
top: m.top - k.top + y.top,
|
|
1378
|
+
bottom: k.bottom - m.bottom + y.bottom,
|
|
1379
|
+
left: m.left - k.left + y.left,
|
|
1380
|
+
right: k.right - m.right + y.right
|
|
1381
|
+
}, A = t.modifiersData.offset;
|
|
1382
|
+
if (w === mt && A) {
|
|
1383
|
+
var V = A[n];
|
|
1326
1384
|
Object.keys(C).forEach(function(P) {
|
|
1327
1385
|
var q = [N, F].indexOf(P) >= 0 ? 1 : -1, U = [T, F].indexOf(P) >= 0 ? "y" : "x";
|
|
1328
1386
|
C[P] += V[U] * q;
|
|
@@ -1330,15 +1388,15 @@ function Et(t, e) {
|
|
|
1330
1388
|
}
|
|
1331
1389
|
return C;
|
|
1332
1390
|
}
|
|
1333
|
-
function
|
|
1391
|
+
function hs(t, e) {
|
|
1334
1392
|
e === void 0 && (e = {});
|
|
1335
|
-
var i = e, s = i.placement, n = i.boundary, r = i.rootBoundary, a = i.padding, l = i.flipVariations, o = i.allowedAutoPlacements,
|
|
1393
|
+
var i = e, s = i.placement, n = i.boundary, r = i.rootBoundary, a = i.padding, l = i.flipVariations, o = i.allowedAutoPlacements, d = o === void 0 ? ze : o, c = ht(s), v = c ? l ? Le : Le.filter(function(x) {
|
|
1336
1394
|
return ht(x) === c;
|
|
1337
1395
|
}) : Lt, w = v.filter(function(x) {
|
|
1338
|
-
return
|
|
1396
|
+
return d.indexOf(x) >= 0;
|
|
1339
1397
|
});
|
|
1340
1398
|
w.length === 0 && (w = v);
|
|
1341
|
-
var
|
|
1399
|
+
var u = w.reduce(function(x, h) {
|
|
1342
1400
|
return x[h] = Et(t, {
|
|
1343
1401
|
placement: h,
|
|
1344
1402
|
boundary: n,
|
|
@@ -1346,75 +1404,75 @@ function ps(t, e) {
|
|
|
1346
1404
|
padding: a
|
|
1347
1405
|
})[_(h)], x;
|
|
1348
1406
|
}, {});
|
|
1349
|
-
return Object.keys(
|
|
1350
|
-
return
|
|
1407
|
+
return Object.keys(u).sort(function(x, h) {
|
|
1408
|
+
return u[x] - u[h];
|
|
1351
1409
|
});
|
|
1352
1410
|
}
|
|
1353
|
-
function
|
|
1354
|
-
if (_(t) ===
|
|
1411
|
+
function gs(t) {
|
|
1412
|
+
if (_(t) === oe)
|
|
1355
1413
|
return [];
|
|
1356
1414
|
var e = Mt(t);
|
|
1357
|
-
return [
|
|
1415
|
+
return [Se(t), e, Se(e)];
|
|
1358
1416
|
}
|
|
1359
|
-
function
|
|
1417
|
+
function vs(t) {
|
|
1360
1418
|
var e = t.state, i = t.options, s = t.name;
|
|
1361
1419
|
if (!e.modifiersData[s]._skip) {
|
|
1362
|
-
for (var n = i.mainAxis, r = n === void 0 ? !0 : n, a = i.altAxis, l = a === void 0 ? !0 : a, o = i.fallbackPlacements,
|
|
1363
|
-
return st.concat(_(
|
|
1364
|
-
placement:
|
|
1420
|
+
for (var n = i.mainAxis, r = n === void 0 ? !0 : n, a = i.altAxis, l = a === void 0 ? !0 : a, o = i.fallbackPlacements, d = i.padding, c = i.boundary, v = i.rootBoundary, w = i.altBoundary, u = i.flipVariations, x = u === void 0 ? !0 : u, h = i.allowedAutoPlacements, p = e.options.placement, y = _(p), $ = y === p, L = o || ($ || !x ? [Mt(p)] : gs(p)), f = [p].concat(L).reduce(function(st, X) {
|
|
1421
|
+
return st.concat(_(X) === oe ? hs(e, {
|
|
1422
|
+
placement: X,
|
|
1365
1423
|
boundary: c,
|
|
1366
1424
|
rootBoundary: v,
|
|
1367
|
-
padding:
|
|
1425
|
+
padding: d,
|
|
1368
1426
|
flipVariations: x,
|
|
1369
1427
|
allowedAutoPlacements: h
|
|
1370
|
-
}) :
|
|
1371
|
-
}, []), m = e.rects.reference, b = e.rects.popper, O = /* @__PURE__ */ new Map(), S = !0,
|
|
1372
|
-
var
|
|
1373
|
-
placement:
|
|
1428
|
+
}) : X);
|
|
1429
|
+
}, []), m = e.rects.reference, b = e.rects.popper, O = /* @__PURE__ */ new Map(), S = !0, k = f[0], C = 0; C < f.length; C++) {
|
|
1430
|
+
var A = f[C], V = _(A), P = ht(A) === ut, q = [T, F].indexOf(V) >= 0, U = q ? "width" : "height", M = Et(e, {
|
|
1431
|
+
placement: A,
|
|
1374
1432
|
boundary: c,
|
|
1375
1433
|
rootBoundary: v,
|
|
1376
1434
|
altBoundary: w,
|
|
1377
|
-
padding:
|
|
1435
|
+
padding: d
|
|
1378
1436
|
}), W = q ? P ? N : D : P ? F : T;
|
|
1379
1437
|
m[U] > b[U] && (W = Mt(W));
|
|
1380
|
-
var
|
|
1381
|
-
if (r && G.push(M[V] <= 0), l && G.push(M[W] <= 0, M[
|
|
1438
|
+
var kt = Mt(W), G = [];
|
|
1439
|
+
if (r && G.push(M[V] <= 0), l && G.push(M[W] <= 0, M[kt] <= 0), G.every(function(st) {
|
|
1382
1440
|
return st;
|
|
1383
1441
|
})) {
|
|
1384
|
-
|
|
1442
|
+
k = A, S = !1;
|
|
1385
1443
|
break;
|
|
1386
1444
|
}
|
|
1387
|
-
O.set(
|
|
1445
|
+
O.set(A, G);
|
|
1388
1446
|
}
|
|
1389
1447
|
if (S)
|
|
1390
|
-
for (var St = x ? 3 : 1, Vt = function(
|
|
1448
|
+
for (var St = x ? 3 : 1, Vt = function(X) {
|
|
1391
1449
|
var vt = f.find(function(Pt) {
|
|
1392
1450
|
var J = O.get(Pt);
|
|
1393
1451
|
if (J)
|
|
1394
|
-
return J.slice(0,
|
|
1452
|
+
return J.slice(0, X).every(function(Wt) {
|
|
1395
1453
|
return Wt;
|
|
1396
1454
|
});
|
|
1397
1455
|
});
|
|
1398
1456
|
if (vt)
|
|
1399
|
-
return
|
|
1457
|
+
return k = vt, "break";
|
|
1400
1458
|
}, gt = St; gt > 0; gt--) {
|
|
1401
|
-
var
|
|
1402
|
-
if (
|
|
1459
|
+
var At = Vt(gt);
|
|
1460
|
+
if (At === "break") break;
|
|
1403
1461
|
}
|
|
1404
|
-
e.placement !==
|
|
1462
|
+
e.placement !== k && (e.modifiersData[s]._skip = !0, e.placement = k, e.reset = !0);
|
|
1405
1463
|
}
|
|
1406
1464
|
}
|
|
1407
|
-
const
|
|
1465
|
+
const ms = {
|
|
1408
1466
|
name: "flip",
|
|
1409
1467
|
enabled: !0,
|
|
1410
1468
|
phase: "main",
|
|
1411
|
-
fn:
|
|
1469
|
+
fn: vs,
|
|
1412
1470
|
requiresIfExists: ["offset"],
|
|
1413
1471
|
data: {
|
|
1414
1472
|
_skip: !1
|
|
1415
1473
|
}
|
|
1416
1474
|
};
|
|
1417
|
-
function
|
|
1475
|
+
function Pe(t, e, i) {
|
|
1418
1476
|
return i === void 0 && (i = {
|
|
1419
1477
|
x: 0,
|
|
1420
1478
|
y: 0
|
|
@@ -1425,20 +1483,20 @@ function Se(t, e, i) {
|
|
|
1425
1483
|
left: t.left - e.width - i.x
|
|
1426
1484
|
};
|
|
1427
1485
|
}
|
|
1428
|
-
function
|
|
1486
|
+
function Te(t) {
|
|
1429
1487
|
return [T, N, F, D].some(function(e) {
|
|
1430
1488
|
return t[e] >= 0;
|
|
1431
1489
|
});
|
|
1432
1490
|
}
|
|
1433
|
-
function
|
|
1491
|
+
function bs(t) {
|
|
1434
1492
|
var e = t.state, i = t.name, s = e.rects.reference, n = e.rects.popper, r = e.modifiersData.preventOverflow, a = Et(e, {
|
|
1435
1493
|
elementContext: "reference"
|
|
1436
1494
|
}), l = Et(e, {
|
|
1437
1495
|
altBoundary: !0
|
|
1438
|
-
}), o =
|
|
1496
|
+
}), o = Pe(a, s), d = Pe(l, n, r), c = Te(o), v = Te(d);
|
|
1439
1497
|
e.modifiersData[i] = {
|
|
1440
1498
|
referenceClippingOffsets: o,
|
|
1441
|
-
popperEscapeOffsets:
|
|
1499
|
+
popperEscapeOffsets: d,
|
|
1442
1500
|
isReferenceHidden: c,
|
|
1443
1501
|
hasPopperEscaped: v
|
|
1444
1502
|
}, e.attributes.popper = Object.assign({}, e.attributes.popper, {
|
|
@@ -1446,14 +1504,14 @@ function ms(t) {
|
|
|
1446
1504
|
"data-popper-escaped": v
|
|
1447
1505
|
});
|
|
1448
1506
|
}
|
|
1449
|
-
const
|
|
1507
|
+
const ws = {
|
|
1450
1508
|
name: "hide",
|
|
1451
1509
|
enabled: !0,
|
|
1452
1510
|
phase: "main",
|
|
1453
1511
|
requiresIfExists: ["preventOverflow"],
|
|
1454
|
-
fn:
|
|
1512
|
+
fn: bs
|
|
1455
1513
|
};
|
|
1456
|
-
function
|
|
1514
|
+
function ys(t, e, i) {
|
|
1457
1515
|
var s = _(t), n = [D, T].indexOf(s) >= 0 ? -1 : 1, r = typeof i == "function" ? i(Object.assign({}, e, {
|
|
1458
1516
|
placement: t
|
|
1459
1517
|
})) : i, a = r[0], l = r[1];
|
|
@@ -1465,20 +1523,20 @@ function ws(t, e, i) {
|
|
|
1465
1523
|
y: l
|
|
1466
1524
|
};
|
|
1467
1525
|
}
|
|
1468
|
-
function
|
|
1526
|
+
function xs(t) {
|
|
1469
1527
|
var e = t.state, i = t.options, s = t.name, n = i.offset, r = n === void 0 ? [0, 0] : n, a = ze.reduce(function(c, v) {
|
|
1470
|
-
return c[v] =
|
|
1471
|
-
}, {}), l = a[e.placement], o = l.x,
|
|
1472
|
-
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += o, e.modifiersData.popperOffsets.y +=
|
|
1528
|
+
return c[v] = ys(v, e.rects, r), c;
|
|
1529
|
+
}, {}), l = a[e.placement], o = l.x, d = l.y;
|
|
1530
|
+
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += o, e.modifiersData.popperOffsets.y += d), e.modifiersData[s] = a;
|
|
1473
1531
|
}
|
|
1474
|
-
const
|
|
1532
|
+
const Es = {
|
|
1475
1533
|
name: "offset",
|
|
1476
1534
|
enabled: !0,
|
|
1477
1535
|
phase: "main",
|
|
1478
1536
|
requires: ["popperOffsets"],
|
|
1479
|
-
fn:
|
|
1537
|
+
fn: xs
|
|
1480
1538
|
};
|
|
1481
|
-
function
|
|
1539
|
+
function Os(t) {
|
|
1482
1540
|
var e = t.state, i = t.name;
|
|
1483
1541
|
e.modifiersData[i] = Je({
|
|
1484
1542
|
reference: e.rects.reference,
|
|
@@ -1487,72 +1545,72 @@ function Es(t) {
|
|
|
1487
1545
|
placement: e.placement
|
|
1488
1546
|
});
|
|
1489
1547
|
}
|
|
1490
|
-
const
|
|
1548
|
+
const $s = {
|
|
1491
1549
|
name: "popperOffsets",
|
|
1492
1550
|
enabled: !0,
|
|
1493
1551
|
phase: "read",
|
|
1494
|
-
fn:
|
|
1552
|
+
fn: Os,
|
|
1495
1553
|
data: {}
|
|
1496
1554
|
};
|
|
1497
|
-
function
|
|
1555
|
+
function Ls(t) {
|
|
1498
1556
|
return t === "x" ? "y" : "x";
|
|
1499
1557
|
}
|
|
1500
|
-
function
|
|
1501
|
-
var e = t.state, i = t.options, s = t.name, n = i.mainAxis, r = n === void 0 ? !0 : n, a = i.altAxis, l = a === void 0 ? !1 : a, o = i.boundary,
|
|
1558
|
+
function Cs(t) {
|
|
1559
|
+
var e = t.state, i = t.options, s = t.name, n = i.mainAxis, r = n === void 0 ? !0 : n, a = i.altAxis, l = a === void 0 ? !1 : a, o = i.boundary, d = i.rootBoundary, c = i.altBoundary, v = i.padding, w = i.tether, u = w === void 0 ? !0 : w, x = i.tetherOffset, h = x === void 0 ? 0 : x, p = Et(e, {
|
|
1502
1560
|
boundary: o,
|
|
1503
|
-
rootBoundary:
|
|
1561
|
+
rootBoundary: d,
|
|
1504
1562
|
padding: v,
|
|
1505
1563
|
altBoundary: c
|
|
1506
|
-
}), y = _(e.placement), $ = ht(e.placement), L = !$, f =
|
|
1564
|
+
}), y = _(e.placement), $ = ht(e.placement), L = !$, f = ce(y), m = Ls(f), b = e.modifiersData.popperOffsets, O = e.rects.reference, S = e.rects.popper, k = typeof h == "function" ? h(Object.assign({}, e.rects, {
|
|
1507
1565
|
placement: e.placement
|
|
1508
|
-
})) : h, C = typeof
|
|
1509
|
-
mainAxis:
|
|
1510
|
-
altAxis:
|
|
1566
|
+
})) : h, C = typeof k == "number" ? {
|
|
1567
|
+
mainAxis: k,
|
|
1568
|
+
altAxis: k
|
|
1511
1569
|
} : Object.assign({
|
|
1512
1570
|
mainAxis: 0,
|
|
1513
1571
|
altAxis: 0
|
|
1514
|
-
},
|
|
1572
|
+
}, k), A = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, V = {
|
|
1515
1573
|
x: 0,
|
|
1516
1574
|
y: 0
|
|
1517
1575
|
};
|
|
1518
1576
|
if (b) {
|
|
1519
1577
|
if (r) {
|
|
1520
|
-
var P, q = f === "y" ? T : D, U = f === "y" ? F : N, M = f === "y" ? "height" : "width", W = b[f],
|
|
1578
|
+
var P, q = f === "y" ? T : D, U = f === "y" ? F : N, M = f === "y" ? "height" : "width", W = b[f], kt = W + p[q], G = W - p[U], St = u ? -S[M] / 2 : 0, Vt = $ === ut ? O[M] : S[M], gt = $ === ut ? -S[M] : -O[M], At = e.elements.arrow, st = u && At ? le(At) : {
|
|
1521
1579
|
width: 0,
|
|
1522
1580
|
height: 0
|
|
1523
|
-
},
|
|
1524
|
-
b[f] =
|
|
1581
|
+
}, X = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Ye(), vt = X[q], Pt = X[U], J = bt(0, O[M], st[M]), Wt = L ? O[M] / 2 - St - J - vt - C.mainAxis : Vt - J - vt - C.mainAxis, ti = L ? -O[M] / 2 + St + J + Pt + C.mainAxis : gt + J + Pt + C.mainAxis, Ht = e.elements.arrow && Ct(e.elements.arrow), ei = Ht ? f === "y" ? Ht.clientTop || 0 : Ht.clientLeft || 0 : 0, he = (P = A == null ? void 0 : A[f]) != null ? P : 0, ii = W + Wt - he - ei, si = W + ti - he, ge = bt(u ? It(kt, ii) : kt, W, u ? et(G, si) : G);
|
|
1582
|
+
b[f] = ge, V[f] = ge - W;
|
|
1525
1583
|
}
|
|
1526
1584
|
if (l) {
|
|
1527
|
-
var
|
|
1528
|
-
b[m] =
|
|
1585
|
+
var ve, ni = f === "x" ? T : D, ri = f === "x" ? F : N, Q = b[m], Tt = m === "y" ? "height" : "width", me = Q + p[ni], be = Q - p[ri], _t = [T, D].indexOf(y) !== -1, we = (ve = A == null ? void 0 : A[m]) != null ? ve : 0, ye = _t ? me : Q - O[Tt] - S[Tt] - we + C.altAxis, xe = _t ? Q + O[Tt] + S[Tt] - we - C.altAxis : be, Ee = u && _t ? Gi(ye, Q, xe) : bt(u ? ye : me, Q, u ? xe : be);
|
|
1586
|
+
b[m] = Ee, V[m] = Ee - Q;
|
|
1529
1587
|
}
|
|
1530
1588
|
e.modifiersData[s] = V;
|
|
1531
1589
|
}
|
|
1532
1590
|
}
|
|
1533
|
-
const
|
|
1591
|
+
const ks = {
|
|
1534
1592
|
name: "preventOverflow",
|
|
1535
1593
|
enabled: !0,
|
|
1536
1594
|
phase: "main",
|
|
1537
|
-
fn:
|
|
1595
|
+
fn: Cs,
|
|
1538
1596
|
requiresIfExists: ["offset"]
|
|
1539
1597
|
};
|
|
1540
|
-
function
|
|
1598
|
+
function Ss(t) {
|
|
1541
1599
|
return {
|
|
1542
1600
|
scrollLeft: t.scrollLeft,
|
|
1543
1601
|
scrollTop: t.scrollTop
|
|
1544
1602
|
};
|
|
1545
1603
|
}
|
|
1546
|
-
function
|
|
1547
|
-
return t === R(t) || !j(t) ?
|
|
1604
|
+
function As(t) {
|
|
1605
|
+
return t === R(t) || !j(t) ? de(t) : Ss(t);
|
|
1548
1606
|
}
|
|
1549
|
-
function
|
|
1607
|
+
function Ps(t) {
|
|
1550
1608
|
var e = t.getBoundingClientRect(), i = ft(e.width) / t.offsetWidth || 1, s = ft(e.height) / t.offsetHeight || 1;
|
|
1551
1609
|
return i !== 1 || s !== 1;
|
|
1552
1610
|
}
|
|
1553
|
-
function
|
|
1611
|
+
function Ts(t, e, i) {
|
|
1554
1612
|
i === void 0 && (i = !1);
|
|
1555
|
-
var s = j(e), n = j(e) &&
|
|
1613
|
+
var s = j(e), n = j(e) && Ps(e), r = Y(e), a = pt(t, n, i), l = {
|
|
1556
1614
|
scrollLeft: 0,
|
|
1557
1615
|
scrollTop: 0
|
|
1558
1616
|
}, o = {
|
|
@@ -1560,14 +1618,14 @@ function Ps(t, e, i) {
|
|
|
1560
1618
|
y: 0
|
|
1561
1619
|
};
|
|
1562
1620
|
return (s || !s && !i) && ((z(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
1563
|
-
|
|
1621
|
+
fe(r)) && (l = As(e)), j(e) ? (o = pt(e, !0), o.x += e.clientLeft, o.y += e.clientTop) : r && (o.x = ue(r))), {
|
|
1564
1622
|
x: a.left + l.scrollLeft - o.x,
|
|
1565
1623
|
y: a.top + l.scrollTop - o.y,
|
|
1566
1624
|
width: a.width,
|
|
1567
1625
|
height: a.height
|
|
1568
1626
|
};
|
|
1569
1627
|
}
|
|
1570
|
-
function
|
|
1628
|
+
function Ds(t) {
|
|
1571
1629
|
var e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set(), s = [];
|
|
1572
1630
|
t.forEach(function(r) {
|
|
1573
1631
|
e.set(r.name, r);
|
|
@@ -1586,15 +1644,15 @@ function Ts(t) {
|
|
|
1586
1644
|
i.has(r.name) || n(r);
|
|
1587
1645
|
}), s;
|
|
1588
1646
|
}
|
|
1589
|
-
function
|
|
1590
|
-
var e =
|
|
1591
|
-
return
|
|
1647
|
+
function Ms(t) {
|
|
1648
|
+
var e = Ds(t);
|
|
1649
|
+
return zi.reduce(function(i, s) {
|
|
1592
1650
|
return i.concat(e.filter(function(n) {
|
|
1593
1651
|
return n.phase === s;
|
|
1594
1652
|
}));
|
|
1595
1653
|
}, []);
|
|
1596
1654
|
}
|
|
1597
|
-
function
|
|
1655
|
+
function Is(t) {
|
|
1598
1656
|
var e;
|
|
1599
1657
|
return function() {
|
|
1600
1658
|
return e || (e = new Promise(function(i) {
|
|
@@ -1604,7 +1662,7 @@ function Ms(t) {
|
|
|
1604
1662
|
})), e;
|
|
1605
1663
|
};
|
|
1606
1664
|
}
|
|
1607
|
-
function
|
|
1665
|
+
function Rs(t) {
|
|
1608
1666
|
var e = t.reduce(function(i, s) {
|
|
1609
1667
|
var n = i[s.name];
|
|
1610
1668
|
return i[s.name] = n ? Object.assign({}, n, s, {
|
|
@@ -1616,27 +1674,27 @@ function Is(t) {
|
|
|
1616
1674
|
return e[i];
|
|
1617
1675
|
});
|
|
1618
1676
|
}
|
|
1619
|
-
var
|
|
1677
|
+
var De = {
|
|
1620
1678
|
placement: "bottom",
|
|
1621
1679
|
modifiers: [],
|
|
1622
1680
|
strategy: "absolute"
|
|
1623
1681
|
};
|
|
1624
|
-
function
|
|
1682
|
+
function Me() {
|
|
1625
1683
|
for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
|
|
1626
1684
|
e[i] = arguments[i];
|
|
1627
1685
|
return !e.some(function(s) {
|
|
1628
1686
|
return !(s && typeof s.getBoundingClientRect == "function");
|
|
1629
1687
|
});
|
|
1630
1688
|
}
|
|
1631
|
-
function
|
|
1689
|
+
function Bs(t) {
|
|
1632
1690
|
t === void 0 && (t = {});
|
|
1633
|
-
var e = t, i = e.defaultModifiers, s = i === void 0 ? [] : i, n = e.defaultOptions, r = n === void 0 ?
|
|
1634
|
-
return function(l, o,
|
|
1635
|
-
|
|
1691
|
+
var e = t, i = e.defaultModifiers, s = i === void 0 ? [] : i, n = e.defaultOptions, r = n === void 0 ? De : n;
|
|
1692
|
+
return function(l, o, d) {
|
|
1693
|
+
d === void 0 && (d = r);
|
|
1636
1694
|
var c = {
|
|
1637
1695
|
placement: "bottom",
|
|
1638
1696
|
orderedModifiers: [],
|
|
1639
|
-
options: Object.assign({},
|
|
1697
|
+
options: Object.assign({}, De, r),
|
|
1640
1698
|
modifiersData: {},
|
|
1641
1699
|
elements: {
|
|
1642
1700
|
reference: l,
|
|
@@ -1644,7 +1702,7 @@ function Rs(t) {
|
|
|
1644
1702
|
},
|
|
1645
1703
|
attributes: {},
|
|
1646
1704
|
styles: {}
|
|
1647
|
-
}, v = [], w = !1,
|
|
1705
|
+
}, v = [], w = !1, u = {
|
|
1648
1706
|
state: c,
|
|
1649
1707
|
setOptions: function(y) {
|
|
1650
1708
|
var $ = typeof y == "function" ? y(c.options) : y;
|
|
@@ -1652,10 +1710,10 @@ function Rs(t) {
|
|
|
1652
1710
|
reference: it(l) ? wt(l) : l.contextElement ? wt(l.contextElement) : [],
|
|
1653
1711
|
popper: wt(o)
|
|
1654
1712
|
};
|
|
1655
|
-
var L =
|
|
1713
|
+
var L = Ms(Rs([].concat(s, c.options.modifiers)));
|
|
1656
1714
|
return c.orderedModifiers = L.filter(function(f) {
|
|
1657
1715
|
return f.enabled;
|
|
1658
|
-
}), x(),
|
|
1716
|
+
}), x(), u.update();
|
|
1659
1717
|
},
|
|
1660
1718
|
// Sync update – it will always be executed, even if not necessary. This
|
|
1661
1719
|
// is useful for low frequency updates where sync behavior simplifies the
|
|
@@ -1665,10 +1723,10 @@ function Rs(t) {
|
|
|
1665
1723
|
forceUpdate: function() {
|
|
1666
1724
|
if (!w) {
|
|
1667
1725
|
var y = c.elements, $ = y.reference, L = y.popper;
|
|
1668
|
-
if (
|
|
1726
|
+
if (Me($, L)) {
|
|
1669
1727
|
c.rects = {
|
|
1670
|
-
reference:
|
|
1671
|
-
popper:
|
|
1728
|
+
reference: Ts($, Ct(L), c.options.strategy === "fixed"),
|
|
1729
|
+
popper: le(L)
|
|
1672
1730
|
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(C) {
|
|
1673
1731
|
return c.modifiersData[C.name] = Object.assign({}, C.data);
|
|
1674
1732
|
});
|
|
@@ -1677,12 +1735,12 @@ function Rs(t) {
|
|
|
1677
1735
|
c.reset = !1, f = -1;
|
|
1678
1736
|
continue;
|
|
1679
1737
|
}
|
|
1680
|
-
var m = c.orderedModifiers[f], b = m.fn, O = m.options, S = O === void 0 ? {} : O,
|
|
1738
|
+
var m = c.orderedModifiers[f], b = m.fn, O = m.options, S = O === void 0 ? {} : O, k = m.name;
|
|
1681
1739
|
typeof b == "function" && (c = b({
|
|
1682
1740
|
state: c,
|
|
1683
1741
|
options: S,
|
|
1684
|
-
name:
|
|
1685
|
-
instance:
|
|
1742
|
+
name: k,
|
|
1743
|
+
instance: u
|
|
1686
1744
|
}) || c);
|
|
1687
1745
|
}
|
|
1688
1746
|
}
|
|
@@ -1690,19 +1748,19 @@ function Rs(t) {
|
|
|
1690
1748
|
},
|
|
1691
1749
|
// Async and optimistically optimized update – it will not be executed if
|
|
1692
1750
|
// not necessary (debounced to run at most once-per-tick)
|
|
1693
|
-
update:
|
|
1751
|
+
update: Is(function() {
|
|
1694
1752
|
return new Promise(function(p) {
|
|
1695
|
-
|
|
1753
|
+
u.forceUpdate(), p(c);
|
|
1696
1754
|
});
|
|
1697
1755
|
}),
|
|
1698
1756
|
destroy: function() {
|
|
1699
1757
|
h(), w = !0;
|
|
1700
1758
|
}
|
|
1701
1759
|
};
|
|
1702
|
-
if (!
|
|
1703
|
-
return
|
|
1704
|
-
|
|
1705
|
-
!w &&
|
|
1760
|
+
if (!Me(l, o))
|
|
1761
|
+
return u;
|
|
1762
|
+
u.setOptions(d).then(function(p) {
|
|
1763
|
+
!w && d.onFirstUpdate && d.onFirstUpdate(p);
|
|
1706
1764
|
});
|
|
1707
1765
|
function x() {
|
|
1708
1766
|
c.orderedModifiers.forEach(function(p) {
|
|
@@ -1711,7 +1769,7 @@ function Rs(t) {
|
|
|
1711
1769
|
var m = f({
|
|
1712
1770
|
state: c,
|
|
1713
1771
|
name: y,
|
|
1714
|
-
instance:
|
|
1772
|
+
instance: u,
|
|
1715
1773
|
options: L
|
|
1716
1774
|
}), b = function() {
|
|
1717
1775
|
};
|
|
@@ -1724,11 +1782,11 @@ function Rs(t) {
|
|
|
1724
1782
|
return p();
|
|
1725
1783
|
}), v = [];
|
|
1726
1784
|
}
|
|
1727
|
-
return
|
|
1785
|
+
return u;
|
|
1728
1786
|
};
|
|
1729
1787
|
}
|
|
1730
|
-
var
|
|
1731
|
-
defaultModifiers:
|
|
1788
|
+
var js = [os, $s, ns, Yi, Es, ms, ks, ts, ws], Fs = /* @__PURE__ */ Bs({
|
|
1789
|
+
defaultModifiers: js
|
|
1732
1790
|
});
|
|
1733
1791
|
async function Jt(t) {
|
|
1734
1792
|
const e = this.collection.findIndex((i) => i.id === t.id);
|
|
@@ -1749,30 +1807,30 @@ function Qe(t) {
|
|
|
1749
1807
|
});
|
|
1750
1808
|
}), delete t.__eventListeners), t;
|
|
1751
1809
|
}
|
|
1752
|
-
async function
|
|
1810
|
+
async function pe(t) {
|
|
1753
1811
|
const e = Ne.call(this, t);
|
|
1754
1812
|
return e.el.classList.add(this.settings.stateActive), e.trigger.hasAttribute("aria-controls") && e.trigger.setAttribute("aria-expanded", "true"), e.config = Fe(e.el, this.settings), e.popper.setOptions({
|
|
1755
1813
|
placement: e.config.placement,
|
|
1756
1814
|
modifiers: [
|
|
1757
1815
|
{ name: "eventListeners", enabled: !0 },
|
|
1758
|
-
...
|
|
1816
|
+
...Si(e.config)
|
|
1759
1817
|
]
|
|
1760
1818
|
}), e.popper.update(), e.state = "opened", e;
|
|
1761
1819
|
}
|
|
1762
|
-
async function
|
|
1820
|
+
async function Ns(t, e) {
|
|
1763
1821
|
Jt.call(this, t);
|
|
1764
1822
|
const i = this, s = {
|
|
1765
1823
|
id: t.id,
|
|
1766
1824
|
state: "closed",
|
|
1767
1825
|
el: t,
|
|
1768
1826
|
trigger: e,
|
|
1769
|
-
popper:
|
|
1827
|
+
popper: Fs(e, t),
|
|
1770
1828
|
config: Fe(t, this.settings),
|
|
1771
1829
|
open() {
|
|
1772
|
-
return
|
|
1830
|
+
return pe.call(i, this);
|
|
1773
1831
|
},
|
|
1774
1832
|
close() {
|
|
1775
|
-
return
|
|
1833
|
+
return re.call(i, this);
|
|
1776
1834
|
},
|
|
1777
1835
|
deregister() {
|
|
1778
1836
|
return Jt.call(i, this);
|
|
@@ -1784,7 +1842,7 @@ function Ze(t) {
|
|
|
1784
1842
|
return t.__eventListeners || (t.config.event === "hover" ? (t.__eventListeners = [{
|
|
1785
1843
|
el: ["trigger"],
|
|
1786
1844
|
type: ["mouseenter", "focus"],
|
|
1787
|
-
listener:
|
|
1845
|
+
listener: pe.bind(this, t)
|
|
1788
1846
|
}, {
|
|
1789
1847
|
el: ["el", "trigger"],
|
|
1790
1848
|
type: ["mouseleave", "focusout"],
|
|
@@ -1798,7 +1856,7 @@ function Ze(t) {
|
|
|
1798
1856
|
})) : (t.__eventListeners = [{
|
|
1799
1857
|
el: ["trigger"],
|
|
1800
1858
|
type: ["click"],
|
|
1801
|
-
listener:
|
|
1859
|
+
listener: Ti.bind(this, t)
|
|
1802
1860
|
}], t.__eventListeners.forEach((i) => {
|
|
1803
1861
|
i.el.forEach((s) => {
|
|
1804
1862
|
i.type.forEach((n) => {
|
|
@@ -1807,12 +1865,12 @@ function Ze(t) {
|
|
|
1807
1865
|
});
|
|
1808
1866
|
}))), t;
|
|
1809
1867
|
}
|
|
1810
|
-
var
|
|
1811
|
-
class
|
|
1868
|
+
var dt;
|
|
1869
|
+
class zs extends Rt {
|
|
1812
1870
|
constructor(i) {
|
|
1813
1871
|
super();
|
|
1814
|
-
H(this,
|
|
1815
|
-
this.defaults =
|
|
1872
|
+
H(this, dt);
|
|
1873
|
+
this.defaults = ki, this.settings = { ...this.defaults, ...i }, this.trigger = null, I(this, dt, Di.bind(this)), this.settings.autoMount && this.mount();
|
|
1816
1874
|
}
|
|
1817
1875
|
async mount(i) {
|
|
1818
1876
|
i && (this.settings = { ...this.settings, ...i });
|
|
@@ -1825,33 +1883,33 @@ class _s extends Rt {
|
|
|
1825
1883
|
mountEventListeners(i = !0) {
|
|
1826
1884
|
i && this.collection.forEach((s) => {
|
|
1827
1885
|
Ze.call(this, s);
|
|
1828
|
-
}), document.addEventListener("keydown", E(this,
|
|
1886
|
+
}), document.addEventListener("keydown", E(this, dt), !1);
|
|
1829
1887
|
}
|
|
1830
1888
|
unmountEventListeners(i = !0) {
|
|
1831
1889
|
i && this.collection.forEach((s) => {
|
|
1832
1890
|
Qe(s);
|
|
1833
|
-
}), document.removeEventListener("keydown", E(this,
|
|
1891
|
+
}), document.removeEventListener("keydown", E(this, dt), !1);
|
|
1834
1892
|
}
|
|
1835
1893
|
register(i) {
|
|
1836
|
-
const s =
|
|
1837
|
-
return s.error ? Promise.reject(s.error) :
|
|
1894
|
+
const s = Pi.call(this, i);
|
|
1895
|
+
return s.error ? Promise.reject(s.error) : Ns.call(this, s.popover, s.trigger);
|
|
1838
1896
|
}
|
|
1839
1897
|
deregister(i) {
|
|
1840
1898
|
let s = this.get(i.id || i);
|
|
1841
1899
|
return s ? Jt.call(this, s) : Promise.reject(new Error(`Failed to deregister; popover does not exist in collection with ID of: "${i.id || i}".`));
|
|
1842
1900
|
}
|
|
1843
1901
|
open(i) {
|
|
1844
|
-
return
|
|
1902
|
+
return pe.call(this, i);
|
|
1845
1903
|
}
|
|
1846
1904
|
close(i) {
|
|
1847
|
-
return
|
|
1905
|
+
return re.call(this, i);
|
|
1848
1906
|
}
|
|
1849
1907
|
}
|
|
1850
|
-
|
|
1908
|
+
dt = new WeakMap();
|
|
1851
1909
|
export {
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1910
|
+
Hs as Drawer,
|
|
1911
|
+
_s as Modal,
|
|
1912
|
+
zs as Popover,
|
|
1913
|
+
Ws as core
|
|
1856
1914
|
};
|
|
1857
1915
|
//# sourceMappingURL=index.js.map
|