@orangelogic/design-system 2.52.0 → 2.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library/chunks/{button.CVc2wJ0B.js → button.CiWlWCNb.js} +1 -1
- package/library/chunks/{color-swatch-group.CUtNUbRn.js → color-swatch-group.CG_PUG1X.js} +4 -4
- package/library/chunks/{color-swatch.EAiUOc_J.js → color-swatch.CsKJgvVf.js} +2 -2
- package/library/chunks/{confirm-popover.DfkoLeR6.js → confirm-popover.Bfuw361W.js} +3 -3
- package/library/chunks/{dialog.CLn29MZF.js → dialog.C28qzMSQ.js} +2 -2
- package/library/chunks/{dot-pagination.BMZxEk73.js → dot-pagination.D3RYAiHL.js} +1 -1
- package/library/chunks/{file-on-demand.CoA1eDl7.js → file-on-demand.UNUgyyno.js} +9 -9
- package/library/chunks/{folder-select.Bq-NKzjL.js → folder-select.ELghy6Qk.js} +5 -5
- package/library/chunks/format-time.HdcgoabZ.js +226 -0
- package/library/chunks/{header.DiOD6K3N.js → header.oyZxakKM.js} +1 -1
- package/library/chunks/{i18n.GsJkEfVA.js → i18n.C3Z8Xe8q.js} +1 -0
- package/library/chunks/{iframe.BO6qSFJP.js → iframe.C6CLUrTT.js} +1 -1
- package/library/chunks/{image.Dqq3RyRZ.js → image.BJfasRY_.js} +2 -2
- package/library/chunks/{list-editor.H4eJhYPV.js → list-editor.qPIn_AFA.js} +6 -6
- package/library/chunks/{option.CPTRiPaF.js → option.BOHZB9Sv.js} +1 -1
- package/library/chunks/{popup.d45CSCf5.js → popup.Ba501Rgg.js} +394 -390
- package/library/chunks/{select.ByWIHETd.js → select.oVg7uA-M.js} +3 -3
- package/library/chunks/{tab-group.B6aKJLVZ.js → tab-group.BWYMMhrE.js} +2 -3
- package/library/chunks/{table.91X28qCm.js → table.C8gqB3Ym.js} +2 -2
- package/library/chunks/{tree.DQDSYKYi.js → tree.82OigIgE.js} +1 -1
- package/library/components/alert.js +1 -1
- package/library/components/asset-link-format.js +4 -4
- package/library/components/atoms.js +28 -28
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +2 -2
- package/library/components/color-picker.js +3 -3
- package/library/components/color-swatch-group.js +5 -5
- package/library/components/color-swatch.js +3 -3
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +1 -1
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +5 -5
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +10 -10
- package/library/components/folder-select.js +4 -4
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +9 -221
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +1 -1
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +3 -3
- package/library/components/input.js +1 -1
- package/library/components/line-clamp.js +2 -2
- package/library/components/list-editor.js +6 -6
- package/library/components/masonry.js +1 -1
- package/library/components/menu-item.js +2 -2
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +4 -4
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/pagination.js +4 -4
- package/library/components/popup.js +2 -2
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/range.js +2 -2
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +4 -4
- package/library/components/share-option-list.js +1 -1
- package/library/components/size-input-group.js +2 -2
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/tab-group.js +3 -3
- package/library/components/tab.js +13 -14
- package/library/components/table.js +2 -2
- package/library/components/tag.js +1 -1
- package/library/components/tooltip.js +2 -2
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +1 -1
- package/library/components/types.js +16447 -16372
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/molecules/src/estimated-reading-time/estimated-reading-time.d.ts +49 -0
- package/library/packages/molecules/src/estimated-reading-time/estimated-reading-time.styles.d.ts +2 -0
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +1 -0
- package/library/react-web-component.d.ts +30 -4
- package/package.json +1 -1
|
@@ -1,37 +1,41 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { r as
|
|
1
|
+
import { a as _e, i as Vt, r as ze, x as j, n as v, C as Be, c as Ie } from "./custom-element.vnXBMQxc.js";
|
|
2
|
+
import { r as Me } from "./state.Cw55xXlb.js";
|
|
3
3
|
import { e as ut } from "./query.BBf1UFkC.js";
|
|
4
|
-
import { e as
|
|
4
|
+
import { e as He } from "./base.D76d76ww.js";
|
|
5
5
|
import { o as Lt } from "./if-defined.MfEgpxEN.js";
|
|
6
|
-
import { o as
|
|
7
|
-
import { i as mt, p as
|
|
8
|
-
import { c as
|
|
9
|
-
import { L as
|
|
6
|
+
import { o as se } from "./style-map.CZovMmo_.js";
|
|
7
|
+
import { i as mt, p as ne, f as We, a as qe } from "./browser.Va59Ix3P.js";
|
|
8
|
+
import { c as ye } from "./component.styles.CI-v8BZa.js";
|
|
9
|
+
import { L as Ve } from "./i18n.C3Z8Xe8q.js";
|
|
10
10
|
import { e as Dt } from "./class-map.CoZTSvbM.js";
|
|
11
|
-
import { n as
|
|
11
|
+
import { n as Ue } from "./when.Dr1es41R.js";
|
|
12
12
|
/**
|
|
13
13
|
* @license
|
|
14
14
|
* Copyright 2021 Google LLC
|
|
15
15
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
16
|
*/
|
|
17
|
-
function
|
|
17
|
+
function je(e) {
|
|
18
18
|
return (t, o) => {
|
|
19
19
|
const { slot: i, selector: s } = e ?? {}, r = "slot" + (i ? `[name=${i}]` : ":not([name])");
|
|
20
|
-
return
|
|
20
|
+
return He(t, o, { get() {
|
|
21
21
|
const n = this.renderRoot?.querySelector(r), a = n?.assignedElements(e) ?? [];
|
|
22
22
|
return s === void 0 ? a : a.filter((l) => l.matches(s));
|
|
23
23
|
} });
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
s
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
const Ke = (e, t = !1) => {
|
|
27
|
+
const o = Symbol(), i = Symbol();
|
|
28
|
+
return (s, r, n) => {
|
|
29
|
+
const a = n.value;
|
|
30
|
+
n.value = function(...l) {
|
|
31
|
+
const c = this;
|
|
32
|
+
clearTimeout(c[o]), t && !c[i] && (a.apply(this, l), c[i] = !0), c[o] = window.setTimeout(() => {
|
|
33
|
+
t || a.apply(this, l), c[i] = !1;
|
|
34
|
+
}, e);
|
|
35
|
+
}, n.configurable === !1 && (n.configurable = !0);
|
|
36
|
+
};
|
|
37
|
+
}, re = /* @__PURE__ */ new Set(), Ye = (e) => e?.startManagingContentDirection !== void 0 || e?.tagName === "SP-THEME";
|
|
38
|
+
function Xe(e) {
|
|
35
39
|
class t extends e {
|
|
36
40
|
/**
|
|
37
41
|
* @private
|
|
@@ -62,12 +66,12 @@ function Qe(e) {
|
|
|
62
66
|
connectedCallback() {
|
|
63
67
|
if (!this.hasAttribute("dir")) {
|
|
64
68
|
let i = this.assignedSlot || this.parentNode;
|
|
65
|
-
for (; i && i !== document.documentElement && !
|
|
69
|
+
for (; i && i !== document.documentElement && !Ye(i); )
|
|
66
70
|
i = i.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
67
71
|
i.parentNode || // DOM Element detected
|
|
68
72
|
i.host;
|
|
69
73
|
if (this.dir = i?.dir === "rtl" ? i.dir : this.dir || "ltr", i === document.documentElement)
|
|
70
|
-
|
|
74
|
+
re.add(this);
|
|
71
75
|
else if (i) {
|
|
72
76
|
const { localName: s } = i;
|
|
73
77
|
s.search("-") > -1 && !customElements.get(s) ? customElements.whenDefined(s).then(() => {
|
|
@@ -79,14 +83,14 @@ function Qe(e) {
|
|
|
79
83
|
super.connectedCallback();
|
|
80
84
|
}
|
|
81
85
|
disconnectedCallback() {
|
|
82
|
-
super.disconnectedCallback(), this._dirParent && (this._dirParent === document.documentElement ?
|
|
86
|
+
super.disconnectedCallback(), this._dirParent && (this._dirParent === document.documentElement ? re.delete(this) : this._dirParent.stopManagingContentDirection(this), this.removeAttribute("dir"));
|
|
83
87
|
}
|
|
84
88
|
}
|
|
85
89
|
return t;
|
|
86
90
|
}
|
|
87
|
-
class
|
|
91
|
+
class Ge extends Xe(_e) {
|
|
88
92
|
}
|
|
89
|
-
function
|
|
93
|
+
function Qe(e, t, o) {
|
|
90
94
|
const i = e.getAttribute(t);
|
|
91
95
|
let s = i ? i.split(/\s+/) : [];
|
|
92
96
|
s = s.filter(
|
|
@@ -96,19 +100,19 @@ function Ze(e, t, o) {
|
|
|
96
100
|
function $t(e, t, o) {
|
|
97
101
|
const i = Array.isArray(o) ? o : [o], s = e.getAttribute(t), r = s ? s.split(/\s+/) : [];
|
|
98
102
|
return i.every((a) => r.indexOf(a) > -1) ? () => {
|
|
99
|
-
} : (r.push(...i), e.setAttribute(t, r.join(" ")), () =>
|
|
103
|
+
} : (r.push(...i), e.setAttribute(t, r.join(" ")), () => Qe(e, t, i));
|
|
100
104
|
}
|
|
101
|
-
function
|
|
105
|
+
function Je(e, t) {
|
|
102
106
|
customElements.get(e) || customElements.define(e, t);
|
|
103
107
|
}
|
|
104
|
-
function
|
|
108
|
+
function Ze(e, t, o = []) {
|
|
105
109
|
for (let i = 0; i < t.length; ++i) {
|
|
106
110
|
const s = t[i], r = e[i], n = r.parentElement || r.getRootNode();
|
|
107
111
|
o[i] && o[i](s), n && n !== r && n.replaceChild(s, r), delete e[i];
|
|
108
112
|
}
|
|
109
113
|
return t;
|
|
110
114
|
}
|
|
111
|
-
const
|
|
115
|
+
const ti = (e, t, {
|
|
112
116
|
position: o,
|
|
113
117
|
prepareCallback: i
|
|
114
118
|
} = { position: "beforeend" }) => {
|
|
@@ -127,16 +131,16 @@ const ii = (e, t, {
|
|
|
127
131
|
d && d !== h && d.replaceChild(a[n], h), t.insertAdjacentElement(o, h), n += r;
|
|
128
132
|
} while (--s > 0);
|
|
129
133
|
return function() {
|
|
130
|
-
return
|
|
134
|
+
return Ze(a, e, l);
|
|
131
135
|
};
|
|
132
136
|
};
|
|
133
|
-
function
|
|
137
|
+
function Ut() {
|
|
134
138
|
return Array.from(
|
|
135
139
|
crypto.getRandomValues(new Uint8Array(4)),
|
|
136
140
|
(e) => `0${(e & 255).toString(16)}`.slice(-2)
|
|
137
141
|
).join("");
|
|
138
142
|
}
|
|
139
|
-
const
|
|
143
|
+
const ei = [
|
|
140
144
|
"button",
|
|
141
145
|
"[focusable]",
|
|
142
146
|
"[href]",
|
|
@@ -145,37 +149,37 @@ const oi = [
|
|
|
145
149
|
"select",
|
|
146
150
|
"textarea",
|
|
147
151
|
"[tabindex]"
|
|
148
|
-
],
|
|
152
|
+
], ae = ':not([tabindex="-1"])', ft = ei.join(`${ae}, `) + ae, jt = (e) => e.querySelector(
|
|
149
153
|
ft
|
|
150
154
|
), Kt = (e) => e.assignedElements().find(
|
|
151
155
|
(o) => o.matches(ft)
|
|
152
156
|
);
|
|
153
|
-
function
|
|
157
|
+
function ii(e) {
|
|
154
158
|
return typeof window < "u" && window.navigator != null ? e.test(window.navigator.userAgent) : !1;
|
|
155
159
|
}
|
|
156
|
-
function
|
|
160
|
+
function Yt(e) {
|
|
157
161
|
return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : !1;
|
|
158
162
|
}
|
|
163
|
+
function oi() {
|
|
164
|
+
return Yt(/^Mac/);
|
|
165
|
+
}
|
|
166
|
+
function si() {
|
|
167
|
+
return Yt(/^iPhone/);
|
|
168
|
+
}
|
|
159
169
|
function ni() {
|
|
160
|
-
return
|
|
170
|
+
return Yt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
171
|
+
oi() && navigator.maxTouchPoints > 1;
|
|
161
172
|
}
|
|
162
173
|
function ri() {
|
|
163
|
-
return
|
|
174
|
+
return si() || ni();
|
|
164
175
|
}
|
|
165
176
|
function ai() {
|
|
166
|
-
return
|
|
167
|
-
ni() && navigator.maxTouchPoints > 1;
|
|
168
|
-
}
|
|
169
|
-
function li() {
|
|
170
|
-
return ri() || ai();
|
|
171
|
-
}
|
|
172
|
-
function ci() {
|
|
173
|
-
return si(/Android/);
|
|
177
|
+
return ii(/Android/);
|
|
174
178
|
}
|
|
175
|
-
const
|
|
176
|
-
class
|
|
179
|
+
const li = 1e3, ci = 1e3;
|
|
180
|
+
class hi {
|
|
177
181
|
constructor(t = {}) {
|
|
178
|
-
this.warmUpDelay =
|
|
182
|
+
this.warmUpDelay = li, this.coolDownDelay = ci, this.isWarm = !1, this.timeout = 0, Object.assign(this, t);
|
|
179
183
|
}
|
|
180
184
|
async openTimer(t) {
|
|
181
185
|
if (this.cancelCooldownTimer(), !this.component || t !== this.component)
|
|
@@ -200,8 +204,8 @@ class pi {
|
|
|
200
204
|
this.cooldownTimeout && window.clearTimeout(this.cooldownTimeout), delete this.cooldownTimeout;
|
|
201
205
|
}
|
|
202
206
|
}
|
|
203
|
-
const wt = new
|
|
204
|
-
},
|
|
207
|
+
const wt = new hi(), it = () => {
|
|
208
|
+
}, Xt = (e, t, o) => {
|
|
205
209
|
const i = new AbortController(), s = /* @__PURE__ */ new Map(), r = () => {
|
|
206
210
|
i.abort(), o();
|
|
207
211
|
};
|
|
@@ -234,7 +238,7 @@ const wt = new pi(), it = () => {
|
|
|
234
238
|
function k() {
|
|
235
239
|
return new Promise((e) => requestAnimationFrame(() => e()));
|
|
236
240
|
}
|
|
237
|
-
class ht extends
|
|
241
|
+
class ht extends Ge {
|
|
238
242
|
constructor() {
|
|
239
243
|
super(...arguments), this.dispose = it, this.offset = 0, this.willPreventClose = !1;
|
|
240
244
|
}
|
|
@@ -312,7 +316,7 @@ class ht extends Je {
|
|
|
312
316
|
document.dispatchEvent(t);
|
|
313
317
|
}
|
|
314
318
|
static async open(t, o, i, s) {
|
|
315
|
-
await Promise.resolve().then(() =>
|
|
319
|
+
await Promise.resolve().then(() => Ne);
|
|
316
320
|
const r = arguments.length === 2, n = i || t, a = new this();
|
|
317
321
|
let l = !1;
|
|
318
322
|
a.dispose = () => {
|
|
@@ -322,7 +326,7 @@ class ht extends Je {
|
|
|
322
326
|
});
|
|
323
327
|
}), a.open = !1, a.dispose = it;
|
|
324
328
|
};
|
|
325
|
-
const c =
|
|
329
|
+
const c = ti([n], a, {
|
|
326
330
|
position: "beforeend",
|
|
327
331
|
prepareCallback: (u) => {
|
|
328
332
|
const p = u.slot;
|
|
@@ -352,8 +356,8 @@ class ht extends Je {
|
|
|
352
356
|
t.delayed = !!o.delayed, t.receivesFocus = o.receivesFocus ?? "auto", t.triggerElement = o.trigger || null, t.type = o.type || "modal", t.offset = o.offset ?? 0, t.placement = o.placement, t.willPreventClose = !!o.notImmediatelyClosable;
|
|
353
357
|
}
|
|
354
358
|
}
|
|
355
|
-
const
|
|
356
|
-
class
|
|
359
|
+
const ve = Symbol("element resolver updated");
|
|
360
|
+
class di {
|
|
357
361
|
constructor(t, { selector: o } = { selector: "" }) {
|
|
358
362
|
this._element = null, this._selector = "", this.mutationCallback = (i) => {
|
|
359
363
|
let s = !1;
|
|
@@ -380,7 +384,7 @@ class ui {
|
|
|
380
384
|
if (t === this.element)
|
|
381
385
|
return;
|
|
382
386
|
const o = this.element;
|
|
383
|
-
this._element = t, this.host.requestUpdate(
|
|
387
|
+
this._element = t, this.host.requestUpdate(ve, o);
|
|
384
388
|
}
|
|
385
389
|
get selector() {
|
|
386
390
|
return this._selector;
|
|
@@ -416,7 +420,7 @@ class ui {
|
|
|
416
420
|
this.element = null;
|
|
417
421
|
}
|
|
418
422
|
}
|
|
419
|
-
class
|
|
423
|
+
class Gt extends Event {
|
|
420
424
|
constructor() {
|
|
421
425
|
super("beforetoggle", {
|
|
422
426
|
bubbles: !1,
|
|
@@ -424,7 +428,7 @@ class Qt extends Event {
|
|
|
424
428
|
}), this.currentState = "open", this.newState = "closed";
|
|
425
429
|
}
|
|
426
430
|
}
|
|
427
|
-
class
|
|
431
|
+
class Qt extends Event {
|
|
428
432
|
constructor() {
|
|
429
433
|
super("beforetoggle", {
|
|
430
434
|
bubbles: !1,
|
|
@@ -432,7 +436,7 @@ class Jt extends Event {
|
|
|
432
436
|
}), this.currentState = "closed", this.newState = "open";
|
|
433
437
|
}
|
|
434
438
|
}
|
|
435
|
-
class
|
|
439
|
+
class _ extends Event {
|
|
436
440
|
constructor(t, o, {
|
|
437
441
|
interaction: i,
|
|
438
442
|
publish: s,
|
|
@@ -470,7 +474,7 @@ class Ct {
|
|
|
470
474
|
};
|
|
471
475
|
}
|
|
472
476
|
}
|
|
473
|
-
function
|
|
477
|
+
function pi(e) {
|
|
474
478
|
class t extends e {
|
|
475
479
|
async manageDialogOpen() {
|
|
476
480
|
const i = this.open;
|
|
@@ -490,8 +494,8 @@ function fi(e) {
|
|
|
490
494
|
}
|
|
491
495
|
if (l > 0)
|
|
492
496
|
return;
|
|
493
|
-
const c = i ?
|
|
494
|
-
this.dispatchEvent(new c()), i && (a.matches(ft) && (s = a), s = s ||
|
|
497
|
+
const c = i ? Qt : Gt;
|
|
498
|
+
this.dispatchEvent(new c()), i && (a.matches(ft) && (s = a), s = s || jt(a), s || a.querySelectorAll("slot").forEach((d) => {
|
|
495
499
|
s || (s = Kt(d));
|
|
496
500
|
}), !(!this.isConnected || this.dialogEl.open) && this.dialogEl.showModal());
|
|
497
501
|
}, n = (a, l) => () => {
|
|
@@ -500,7 +504,7 @@ function fi(e) {
|
|
|
500
504
|
const c = i ? "cx-opened" : "cx-closed";
|
|
501
505
|
if (l > 0) {
|
|
502
506
|
a.dispatchEvent(
|
|
503
|
-
new
|
|
507
|
+
new _(c, this, {
|
|
504
508
|
interaction: this.type,
|
|
505
509
|
publish: !1
|
|
506
510
|
})
|
|
@@ -512,17 +516,17 @@ function fi(e) {
|
|
|
512
516
|
const h = async () => {
|
|
513
517
|
const d = this.triggerElement instanceof Ct;
|
|
514
518
|
this.dispatchEvent(
|
|
515
|
-
new
|
|
519
|
+
new _(c, this, {
|
|
516
520
|
interaction: this.type,
|
|
517
521
|
publish: d
|
|
518
522
|
})
|
|
519
523
|
), a.dispatchEvent(
|
|
520
|
-
new
|
|
524
|
+
new _(c, this, {
|
|
521
525
|
interaction: this.type,
|
|
522
526
|
publish: !1
|
|
523
527
|
})
|
|
524
528
|
), this.triggerElement && !d && this.triggerElement.dispatchEvent(
|
|
525
|
-
new
|
|
529
|
+
new _(c, this, {
|
|
526
530
|
interaction: this.type,
|
|
527
531
|
publish: !0
|
|
528
532
|
})
|
|
@@ -537,7 +541,7 @@ function fi(e) {
|
|
|
537
541
|
), this.dialogEl.close()) : h();
|
|
538
542
|
};
|
|
539
543
|
return this.elements.forEach((a, l) => {
|
|
540
|
-
|
|
544
|
+
Xt(a, r(a, l), n(a, l));
|
|
541
545
|
}), s;
|
|
542
546
|
}
|
|
543
547
|
async dialogApplyFocus(i, s) {
|
|
@@ -546,7 +550,7 @@ function fi(e) {
|
|
|
546
550
|
}
|
|
547
551
|
return t;
|
|
548
552
|
}
|
|
549
|
-
function
|
|
553
|
+
function ui(e) {
|
|
550
554
|
class t extends e {
|
|
551
555
|
async managePopoverOpen() {
|
|
552
556
|
await this.managePosition();
|
|
@@ -569,10 +573,10 @@ function gi(e) {
|
|
|
569
573
|
if (i !== this.open)
|
|
570
574
|
return;
|
|
571
575
|
if (a.open = i, l === 0) {
|
|
572
|
-
const h = i ?
|
|
576
|
+
const h = i ? Qt : Gt;
|
|
573
577
|
this.dispatchEvent(new h());
|
|
574
578
|
}
|
|
575
|
-
if (i !== !0 || (a.matches(ft) && (s = a), s = s ||
|
|
579
|
+
if (i !== !0 || (a.matches(ft) && (s = a), s = s || jt(a), s))
|
|
576
580
|
return;
|
|
577
581
|
a.querySelectorAll("slot").forEach((h) => {
|
|
578
582
|
s || (s = Kt(h));
|
|
@@ -582,33 +586,33 @@ function gi(e) {
|
|
|
582
586
|
return;
|
|
583
587
|
const c = i ? "cx-opened" : "cx-closed";
|
|
584
588
|
if (a.dispatchEvent(
|
|
585
|
-
new
|
|
589
|
+
new _(c, this, {
|
|
586
590
|
interaction: this.type
|
|
587
591
|
})
|
|
588
592
|
), l > 0)
|
|
589
593
|
return;
|
|
590
594
|
const h = this.triggerElement instanceof Ct;
|
|
591
595
|
this.dispatchEvent(
|
|
592
|
-
new
|
|
596
|
+
new _(c, this, {
|
|
593
597
|
interaction: this.type,
|
|
594
598
|
publish: h
|
|
595
599
|
})
|
|
596
600
|
), this.triggerElement && !h && this.triggerElement.dispatchEvent(
|
|
597
|
-
new
|
|
601
|
+
new _(c, this, {
|
|
598
602
|
interaction: this.type,
|
|
599
603
|
publish: !0
|
|
600
604
|
})
|
|
601
605
|
), this.state = i ? "opened" : "closed", this.returnFocus(), await k(), await k(), i === this.open && i === !1 && this.requestSlottable();
|
|
602
606
|
};
|
|
603
607
|
return this.elements.forEach((a, l) => {
|
|
604
|
-
|
|
608
|
+
Xt(a, r(a, l), n(a, l));
|
|
605
609
|
}), s;
|
|
606
610
|
}
|
|
607
611
|
}
|
|
608
612
|
return t;
|
|
609
613
|
}
|
|
610
|
-
const
|
|
611
|
-
function
|
|
614
|
+
const fi = CSS.supports("(overlay: auto)");
|
|
615
|
+
function kt(e) {
|
|
612
616
|
let t = !1;
|
|
613
617
|
try {
|
|
614
618
|
t = e.matches(":popover-open");
|
|
@@ -621,7 +625,7 @@ function _t(e) {
|
|
|
621
625
|
}
|
|
622
626
|
return t || o;
|
|
623
627
|
}
|
|
624
|
-
function
|
|
628
|
+
function gi(e) {
|
|
625
629
|
class t extends e {
|
|
626
630
|
constructor(...i) {
|
|
627
631
|
super(...i), this.handleFullscreenChange = this.handleFullscreenChange.bind(this);
|
|
@@ -645,7 +649,7 @@ function yi(e) {
|
|
|
645
649
|
} = {}) => {
|
|
646
650
|
r !== "open" && await this.placementController.resetOverlayPosition();
|
|
647
651
|
};
|
|
648
|
-
if (!
|
|
652
|
+
if (!kt(this.dialogEl)) {
|
|
649
653
|
s();
|
|
650
654
|
return;
|
|
651
655
|
}
|
|
@@ -667,7 +671,7 @@ function yi(e) {
|
|
|
667
671
|
i && this.open === i && !s && !r && this.isConnected && (this.dialogEl.showPopover(), await this.managePosition());
|
|
668
672
|
}
|
|
669
673
|
handleFullscreenChange() {
|
|
670
|
-
|
|
674
|
+
kt(this.dialogEl) && (this.dialogEl.hidePopover(), this.dialogEl.showPopover());
|
|
671
675
|
}
|
|
672
676
|
firstUpdated(i) {
|
|
673
677
|
super.firstUpdated(i), mt() && k().then(() => {
|
|
@@ -684,7 +688,7 @@ function yi(e) {
|
|
|
684
688
|
);
|
|
685
689
|
}
|
|
686
690
|
async ensureOnDOM(i) {
|
|
687
|
-
await k(),
|
|
691
|
+
await k(), fi || await this.shouldHidePopover(i), await this.shouldShowPopover(i), await k();
|
|
688
692
|
}
|
|
689
693
|
async makeTransition(i) {
|
|
690
694
|
if (this.open !== i)
|
|
@@ -692,10 +696,10 @@ function yi(e) {
|
|
|
692
696
|
let s = null;
|
|
693
697
|
const r = (a, l) => () => {
|
|
694
698
|
if (a.open = i, l === 0) {
|
|
695
|
-
const h = i ?
|
|
699
|
+
const h = i ? Qt : Gt;
|
|
696
700
|
this.dispatchEvent(new h());
|
|
697
701
|
}
|
|
698
|
-
if (!i || (a.matches(ft) && (s = a), s = s ||
|
|
702
|
+
if (!i || (a.matches(ft) && (s = a), s = s || jt(a), s))
|
|
699
703
|
return;
|
|
700
704
|
a.querySelectorAll("slot").forEach((h) => {
|
|
701
705
|
s || (s = Kt(h));
|
|
@@ -706,7 +710,7 @@ function yi(e) {
|
|
|
706
710
|
const c = i ? "cx-opened" : "cx-closed";
|
|
707
711
|
if (l > 0) {
|
|
708
712
|
a.dispatchEvent(
|
|
709
|
-
new
|
|
713
|
+
new _(c, this, {
|
|
710
714
|
interaction: this.type,
|
|
711
715
|
publish: !1
|
|
712
716
|
})
|
|
@@ -719,17 +723,17 @@ function yi(e) {
|
|
|
719
723
|
await k();
|
|
720
724
|
const u = this.triggerElement instanceof Ct;
|
|
721
725
|
this.dispatchEvent(
|
|
722
|
-
new
|
|
726
|
+
new _(c, this, {
|
|
723
727
|
interaction: this.type,
|
|
724
728
|
publish: u
|
|
725
729
|
})
|
|
726
730
|
), a.dispatchEvent(
|
|
727
|
-
new
|
|
731
|
+
new _(c, this, {
|
|
728
732
|
interaction: this.type,
|
|
729
733
|
publish: !1
|
|
730
734
|
})
|
|
731
735
|
), this.triggerElement && !u && this.triggerElement.dispatchEvent(
|
|
732
|
-
new
|
|
736
|
+
new _(c, this, {
|
|
733
737
|
interaction: this.type,
|
|
734
738
|
publish: !0
|
|
735
739
|
})
|
|
@@ -737,7 +741,7 @@ function yi(e) {
|
|
|
737
741
|
};
|
|
738
742
|
if (this.open !== i)
|
|
739
743
|
return;
|
|
740
|
-
const d =
|
|
744
|
+
const d = kt(this.dialogEl);
|
|
741
745
|
i !== !0 && d && this.isConnected ? (this.dialogEl.addEventListener(
|
|
742
746
|
"beforetoggle",
|
|
743
747
|
() => {
|
|
@@ -747,14 +751,14 @@ function yi(e) {
|
|
|
747
751
|
), mt() || this.dialogEl.hidePopover()) : h();
|
|
748
752
|
};
|
|
749
753
|
return this.elements.forEach((a, l) => {
|
|
750
|
-
|
|
754
|
+
Xt(a, r(a, l), n(a, l));
|
|
751
755
|
}), s;
|
|
752
756
|
}
|
|
753
757
|
}
|
|
754
758
|
return t;
|
|
755
759
|
}
|
|
756
|
-
const
|
|
757
|
-
class
|
|
760
|
+
const mi = "showPopover" in document.createElement("div");
|
|
761
|
+
class yi {
|
|
758
762
|
constructor() {
|
|
759
763
|
this.root = document.body, this.stack = [], this.handlePointerdown = (t) => {
|
|
760
764
|
this.pointerdownPath = t.composedPath(), this.lastOverlay = this.stack[this.stack.length - 1];
|
|
@@ -788,7 +792,7 @@ class bi {
|
|
|
788
792
|
t.preventDefault();
|
|
789
793
|
return;
|
|
790
794
|
}
|
|
791
|
-
|
|
795
|
+
mi || o?.type !== "manual" && o && this.closeOverlay(o);
|
|
792
796
|
}, this.bindEvents();
|
|
793
797
|
}
|
|
794
798
|
get document() {
|
|
@@ -860,19 +864,19 @@ class bi {
|
|
|
860
864
|
this.closeOverlay(t);
|
|
861
865
|
}
|
|
862
866
|
}
|
|
863
|
-
const
|
|
867
|
+
const le = new yi(), vi = ["top", "right", "bottom", "left"], J = Math.min, T = Math.max, xt = Math.round, yt = Math.floor, H = (e) => ({
|
|
864
868
|
x: e,
|
|
865
869
|
y: e
|
|
866
|
-
}),
|
|
870
|
+
}), bi = {
|
|
867
871
|
left: "right",
|
|
868
872
|
right: "left",
|
|
869
873
|
bottom: "top",
|
|
870
874
|
top: "bottom"
|
|
871
|
-
},
|
|
875
|
+
}, wi = {
|
|
872
876
|
start: "end",
|
|
873
877
|
end: "start"
|
|
874
878
|
};
|
|
875
|
-
function
|
|
879
|
+
function _t(e, t, o) {
|
|
876
880
|
return T(e, J(t, o));
|
|
877
881
|
}
|
|
878
882
|
function st(e, t) {
|
|
@@ -884,54 +888,54 @@ function Z(e) {
|
|
|
884
888
|
function at(e) {
|
|
885
889
|
return e.split("-")[1];
|
|
886
890
|
}
|
|
887
|
-
function
|
|
891
|
+
function be(e) {
|
|
888
892
|
return e === "x" ? "y" : "x";
|
|
889
893
|
}
|
|
890
|
-
function
|
|
894
|
+
function Jt(e) {
|
|
891
895
|
return e === "y" ? "height" : "width";
|
|
892
896
|
}
|
|
893
|
-
const
|
|
894
|
-
function
|
|
895
|
-
return
|
|
897
|
+
const xi = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
898
|
+
function K(e) {
|
|
899
|
+
return xi.has(Z(e)) ? "y" : "x";
|
|
896
900
|
}
|
|
897
|
-
function
|
|
898
|
-
return
|
|
901
|
+
function Zt(e) {
|
|
902
|
+
return be(K(e));
|
|
899
903
|
}
|
|
900
|
-
function
|
|
904
|
+
function Ei(e, t, o) {
|
|
901
905
|
o === void 0 && (o = !1);
|
|
902
|
-
const i = at(e), s =
|
|
906
|
+
const i = at(e), s = Zt(e), r = Jt(s);
|
|
903
907
|
let n = s === "x" ? i === (o ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
|
|
904
908
|
return t.reference[r] > t.floating[r] && (n = Et(n)), [n, Et(n)];
|
|
905
909
|
}
|
|
906
|
-
function
|
|
910
|
+
function Pi(e) {
|
|
907
911
|
const t = Et(e);
|
|
908
|
-
return [
|
|
912
|
+
return [zt(e), t, zt(t)];
|
|
909
913
|
}
|
|
910
|
-
function
|
|
911
|
-
return e.replace(/start|end/g, (t) =>
|
|
914
|
+
function zt(e) {
|
|
915
|
+
return e.replace(/start|end/g, (t) => wi[t]);
|
|
912
916
|
}
|
|
913
|
-
const
|
|
914
|
-
function
|
|
917
|
+
const ce = ["left", "right"], he = ["right", "left"], Ci = ["top", "bottom"], Oi = ["bottom", "top"];
|
|
918
|
+
function Ai(e, t, o) {
|
|
915
919
|
switch (e) {
|
|
916
920
|
case "top":
|
|
917
921
|
case "bottom":
|
|
918
|
-
return o ? t ?
|
|
922
|
+
return o ? t ? he : ce : t ? ce : he;
|
|
919
923
|
case "left":
|
|
920
924
|
case "right":
|
|
921
|
-
return t ?
|
|
925
|
+
return t ? Ci : Oi;
|
|
922
926
|
default:
|
|
923
927
|
return [];
|
|
924
928
|
}
|
|
925
929
|
}
|
|
926
|
-
function
|
|
930
|
+
function Si(e, t, o, i) {
|
|
927
931
|
const s = at(e);
|
|
928
|
-
let r =
|
|
929
|
-
return s && (r = r.map((n) => n + "-" + s), t && (r = r.concat(r.map(
|
|
932
|
+
let r = Ai(Z(e), o === "start", i);
|
|
933
|
+
return s && (r = r.map((n) => n + "-" + s), t && (r = r.concat(r.map(zt)))), r;
|
|
930
934
|
}
|
|
931
935
|
function Et(e) {
|
|
932
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
936
|
+
return e.replace(/left|right|bottom|top/g, (t) => bi[t]);
|
|
933
937
|
}
|
|
934
|
-
function
|
|
938
|
+
function Ri(e) {
|
|
935
939
|
return {
|
|
936
940
|
top: 0,
|
|
937
941
|
right: 0,
|
|
@@ -940,8 +944,8 @@ function Li(e) {
|
|
|
940
944
|
...e
|
|
941
945
|
};
|
|
942
946
|
}
|
|
943
|
-
function
|
|
944
|
-
return typeof e != "number" ?
|
|
947
|
+
function we(e) {
|
|
948
|
+
return typeof e != "number" ? Ri(e) : {
|
|
945
949
|
top: e,
|
|
946
950
|
right: e,
|
|
947
951
|
bottom: e,
|
|
@@ -966,12 +970,12 @@ function Pt(e) {
|
|
|
966
970
|
y: o
|
|
967
971
|
};
|
|
968
972
|
}
|
|
969
|
-
function
|
|
973
|
+
function de(e, t, o) {
|
|
970
974
|
let {
|
|
971
975
|
reference: i,
|
|
972
976
|
floating: s
|
|
973
977
|
} = e;
|
|
974
|
-
const r =
|
|
978
|
+
const r = K(t), n = Zt(t), a = Jt(n), l = Z(t), c = r === "y", h = i.x + i.width / 2 - s.width / 2, d = i.y + i.height / 2 - s.height / 2, u = i[a] / 2 - s[a] / 2;
|
|
975
979
|
let p;
|
|
976
980
|
switch (l) {
|
|
977
981
|
case "top":
|
|
@@ -1014,7 +1018,7 @@ function ue(e, t, o) {
|
|
|
1014
1018
|
}
|
|
1015
1019
|
return p;
|
|
1016
1020
|
}
|
|
1017
|
-
const
|
|
1021
|
+
const Ti = async (e, t, o) => {
|
|
1018
1022
|
const {
|
|
1019
1023
|
placement: i = "bottom",
|
|
1020
1024
|
strategy: s = "absolute",
|
|
@@ -1028,7 +1032,7 @@ const Di = async (e, t, o) => {
|
|
|
1028
1032
|
}), {
|
|
1029
1033
|
x: h,
|
|
1030
1034
|
y: d
|
|
1031
|
-
} =
|
|
1035
|
+
} = de(c, i, l), u = i, p = {}, f = 0;
|
|
1032
1036
|
for (let g = 0; g < a.length; g++) {
|
|
1033
1037
|
const {
|
|
1034
1038
|
name: m,
|
|
@@ -1065,7 +1069,7 @@ const Di = async (e, t, o) => {
|
|
|
1065
1069
|
}) : P.rects), {
|
|
1066
1070
|
x: h,
|
|
1067
1071
|
y: d
|
|
1068
|
-
} =
|
|
1072
|
+
} = de(c, u, l)), g = -1);
|
|
1069
1073
|
}
|
|
1070
1074
|
return {
|
|
1071
1075
|
x: h,
|
|
@@ -1091,7 +1095,7 @@ async function dt(e, t) {
|
|
|
1091
1095
|
elementContext: d = "floating",
|
|
1092
1096
|
altBoundary: u = !1,
|
|
1093
1097
|
padding: p = 0
|
|
1094
|
-
} = st(t, e), f =
|
|
1098
|
+
} = st(t, e), f = we(p), m = a[u ? d === "floating" ? "reference" : "floating" : d], y = Pt(await r.getClippingRect({
|
|
1095
1099
|
element: (o = await (r.isElement == null ? void 0 : r.isElement(m))) == null || o ? m : m.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)),
|
|
1096
1100
|
boundary: c,
|
|
1097
1101
|
rootBoundary: h,
|
|
@@ -1120,7 +1124,7 @@ async function dt(e, t) {
|
|
|
1120
1124
|
right: (P.right - y.right + f.right) / C.x
|
|
1121
1125
|
};
|
|
1122
1126
|
}
|
|
1123
|
-
const
|
|
1127
|
+
const Li = (e) => ({
|
|
1124
1128
|
name: "arrow",
|
|
1125
1129
|
options: e,
|
|
1126
1130
|
async fn(t) {
|
|
@@ -1138,13 +1142,13 @@ const ki = (e) => ({
|
|
|
1138
1142
|
} = st(e, t) || {};
|
|
1139
1143
|
if (c == null)
|
|
1140
1144
|
return {};
|
|
1141
|
-
const d =
|
|
1145
|
+
const d = we(h), u = {
|
|
1142
1146
|
x: o,
|
|
1143
1147
|
y: i
|
|
1144
|
-
}, p =
|
|
1145
|
-
let
|
|
1146
|
-
(!
|
|
1147
|
-
const V = C / 2 - P / 2, I =
|
|
1148
|
+
}, p = Zt(s), f = Jt(p), g = await n.getDimensions(c), m = p === "y", y = m ? "top" : "left", x = m ? "bottom" : "right", E = m ? "clientHeight" : "clientWidth", C = r.reference[f] + r.reference[p] - u[p] - r.floating[f], P = u[p] - r.reference[p], F = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(c));
|
|
1149
|
+
let O = F ? F[E] : 0;
|
|
1150
|
+
(!O || !await (n.isElement == null ? void 0 : n.isElement(F))) && (O = a.floating[E] || r.floating[f]);
|
|
1151
|
+
const V = C / 2 - P / 2, I = O / 2 - g[f] / 2 - 1, D = J(d[y], I), X = J(d[x], I), M = D, G = O - g[f] - X, S = O / 2 - g[f] / 2 + V, et = _t(M, S, G), U = !l.arrow && at(s) != null && S !== et && r.reference[f] / 2 - (S < M ? D : X) - g[f] / 2 < 0, N = U ? S < M ? S - M : S - G : 0;
|
|
1148
1152
|
return {
|
|
1149
1153
|
[p]: u[p] + N,
|
|
1150
1154
|
data: {
|
|
@@ -1157,7 +1161,7 @@ const ki = (e) => ({
|
|
|
1157
1161
|
reset: U
|
|
1158
1162
|
};
|
|
1159
1163
|
}
|
|
1160
|
-
}),
|
|
1164
|
+
}), Di = function(e) {
|
|
1161
1165
|
return e === void 0 && (e = {}), {
|
|
1162
1166
|
name: "flip",
|
|
1163
1167
|
options: e,
|
|
@@ -1181,12 +1185,12 @@ const ki = (e) => ({
|
|
|
1181
1185
|
} = st(e, t);
|
|
1182
1186
|
if ((o = r.arrow) != null && o.alignmentOffset)
|
|
1183
1187
|
return {};
|
|
1184
|
-
const y = Z(s), x =
|
|
1185
|
-
!u &&
|
|
1186
|
-
const
|
|
1188
|
+
const y = Z(s), x = K(a), E = Z(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), P = u || (E || !g ? [Et(a)] : Pi(a)), F = f !== "none";
|
|
1189
|
+
!u && F && P.push(...Si(a, g, f, C));
|
|
1190
|
+
const O = [a, ...P], V = await dt(t, m), I = [];
|
|
1187
1191
|
let D = ((i = r.flip) == null ? void 0 : i.overflows) || [];
|
|
1188
1192
|
if (h && I.push(V[y]), d) {
|
|
1189
|
-
const S =
|
|
1193
|
+
const S = Ei(s, n, C);
|
|
1190
1194
|
I.push(V[S[0]], V[S[1]]);
|
|
1191
1195
|
}
|
|
1192
1196
|
if (D = [...D, {
|
|
@@ -1194,10 +1198,10 @@ const ki = (e) => ({
|
|
|
1194
1198
|
overflows: I
|
|
1195
1199
|
}], !I.every((S) => S <= 0)) {
|
|
1196
1200
|
var X, M;
|
|
1197
|
-
const S = (((X = r.flip) == null ? void 0 : X.index) || 0) + 1, et =
|
|
1198
|
-
if (et && (!(d === "alignment" ? x !==
|
|
1201
|
+
const S = (((X = r.flip) == null ? void 0 : X.index) || 0) + 1, et = O[S];
|
|
1202
|
+
if (et && (!(d === "alignment" ? x !== K(et) : !1) || // We leave the current main axis only if every placement on that axis
|
|
1199
1203
|
// overflows the main axis.
|
|
1200
|
-
D.every((
|
|
1204
|
+
D.every(($) => K($.placement) === x ? $.overflows[0] > 0 : !0)))
|
|
1201
1205
|
return {
|
|
1202
1206
|
data: {
|
|
1203
1207
|
index: S,
|
|
@@ -1207,20 +1211,20 @@ const ki = (e) => ({
|
|
|
1207
1211
|
placement: et
|
|
1208
1212
|
}
|
|
1209
1213
|
};
|
|
1210
|
-
let U = (M = D.filter((N) => N.overflows[0] <= 0).sort((N,
|
|
1214
|
+
let U = (M = D.filter((N) => N.overflows[0] <= 0).sort((N, $) => N.overflows[1] - $.overflows[1])[0]) == null ? void 0 : M.placement;
|
|
1211
1215
|
if (!U)
|
|
1212
1216
|
switch (p) {
|
|
1213
1217
|
case "bestFit": {
|
|
1214
1218
|
var G;
|
|
1215
|
-
const N = (G = D.filter((
|
|
1216
|
-
if (
|
|
1217
|
-
const Q =
|
|
1219
|
+
const N = (G = D.filter(($) => {
|
|
1220
|
+
if (F) {
|
|
1221
|
+
const Q = K($.placement);
|
|
1218
1222
|
return Q === x || // Create a bias to the `y` side axis due to horizontal
|
|
1219
1223
|
// reading directions favoring greater width.
|
|
1220
1224
|
Q === "y";
|
|
1221
1225
|
}
|
|
1222
1226
|
return !0;
|
|
1223
|
-
}).map((
|
|
1227
|
+
}).map(($) => [$.placement, $.overflows.filter((Q) => Q > 0).reduce((Q, $e) => Q + $e, 0)]).sort(($, Q) => $[1] - Q[1])[0]) == null ? void 0 : G[0];
|
|
1224
1228
|
N && (U = N);
|
|
1225
1229
|
break;
|
|
1226
1230
|
}
|
|
@@ -1239,7 +1243,7 @@ const ki = (e) => ({
|
|
|
1239
1243
|
}
|
|
1240
1244
|
};
|
|
1241
1245
|
};
|
|
1242
|
-
function
|
|
1246
|
+
function pe(e, t) {
|
|
1243
1247
|
return {
|
|
1244
1248
|
top: e.top - t.height,
|
|
1245
1249
|
right: e.right - t.width,
|
|
@@ -1247,10 +1251,10 @@ function fe(e, t) {
|
|
|
1247
1251
|
left: e.left - t.width
|
|
1248
1252
|
};
|
|
1249
1253
|
}
|
|
1250
|
-
function
|
|
1251
|
-
return
|
|
1254
|
+
function ue(e) {
|
|
1255
|
+
return vi.some((t) => e[t] >= 0);
|
|
1252
1256
|
}
|
|
1253
|
-
const
|
|
1257
|
+
const ki = function(e) {
|
|
1254
1258
|
return e === void 0 && (e = {}), {
|
|
1255
1259
|
name: "hide",
|
|
1256
1260
|
options: e,
|
|
@@ -1266,11 +1270,11 @@ const Ni = function(e) {
|
|
|
1266
1270
|
const r = await dt(t, {
|
|
1267
1271
|
...s,
|
|
1268
1272
|
elementContext: "reference"
|
|
1269
|
-
}), n =
|
|
1273
|
+
}), n = pe(r, o.reference);
|
|
1270
1274
|
return {
|
|
1271
1275
|
data: {
|
|
1272
1276
|
referenceHiddenOffsets: n,
|
|
1273
|
-
referenceHidden:
|
|
1277
|
+
referenceHidden: ue(n)
|
|
1274
1278
|
}
|
|
1275
1279
|
};
|
|
1276
1280
|
}
|
|
@@ -1278,11 +1282,11 @@ const Ni = function(e) {
|
|
|
1278
1282
|
const r = await dt(t, {
|
|
1279
1283
|
...s,
|
|
1280
1284
|
altBoundary: !0
|
|
1281
|
-
}), n =
|
|
1285
|
+
}), n = pe(r, o.floating);
|
|
1282
1286
|
return {
|
|
1283
1287
|
data: {
|
|
1284
1288
|
escapedOffsets: n,
|
|
1285
|
-
escaped:
|
|
1289
|
+
escaped: ue(n)
|
|
1286
1290
|
}
|
|
1287
1291
|
};
|
|
1288
1292
|
}
|
|
@@ -1292,12 +1296,12 @@ const Ni = function(e) {
|
|
|
1292
1296
|
}
|
|
1293
1297
|
};
|
|
1294
1298
|
}, Fi = /* @__PURE__ */ new Set(["left", "top"]);
|
|
1295
|
-
async function
|
|
1299
|
+
async function Ni(e, t) {
|
|
1296
1300
|
const {
|
|
1297
1301
|
placement: o,
|
|
1298
1302
|
platform: i,
|
|
1299
1303
|
elements: s
|
|
1300
|
-
} = e, r = await (i.isRTL == null ? void 0 : i.isRTL(s.floating)), n = Z(o), a = at(o), l =
|
|
1304
|
+
} = e, r = await (i.isRTL == null ? void 0 : i.isRTL(s.floating)), n = Z(o), a = at(o), l = K(o) === "y", c = Fi.has(n) ? -1 : 1, h = r && l ? -1 : 1, d = st(t, e);
|
|
1301
1305
|
let {
|
|
1302
1306
|
mainAxis: u,
|
|
1303
1307
|
crossAxis: p,
|
|
@@ -1319,7 +1323,7 @@ async function $i(e, t) {
|
|
|
1319
1323
|
y: p * h
|
|
1320
1324
|
};
|
|
1321
1325
|
}
|
|
1322
|
-
const
|
|
1326
|
+
const $i = function(e) {
|
|
1323
1327
|
return e === void 0 && (e = 0), {
|
|
1324
1328
|
name: "offset",
|
|
1325
1329
|
options: e,
|
|
@@ -1330,7 +1334,7 @@ const zi = function(e) {
|
|
|
1330
1334
|
y: r,
|
|
1331
1335
|
placement: n,
|
|
1332
1336
|
middlewareData: a
|
|
1333
|
-
} = t, l = await
|
|
1337
|
+
} = t, l = await Ni(t, e);
|
|
1334
1338
|
return n === ((o = a.offset) == null ? void 0 : o.placement) && (i = a.arrow) != null && i.alignmentOffset ? {} : {
|
|
1335
1339
|
x: s + l.x,
|
|
1336
1340
|
y: r + l.y,
|
|
@@ -1341,7 +1345,7 @@ const zi = function(e) {
|
|
|
1341
1345
|
};
|
|
1342
1346
|
}
|
|
1343
1347
|
};
|
|
1344
|
-
},
|
|
1348
|
+
}, _i = function(e) {
|
|
1345
1349
|
return e === void 0 && (e = {}), {
|
|
1346
1350
|
name: "shift",
|
|
1347
1351
|
options: e,
|
|
@@ -1369,15 +1373,15 @@ const zi = function(e) {
|
|
|
1369
1373
|
} = st(e, t), c = {
|
|
1370
1374
|
x: o,
|
|
1371
1375
|
y: i
|
|
1372
|
-
}, h = await dt(t, l), d =
|
|
1376
|
+
}, h = await dt(t, l), d = K(Z(s)), u = be(d);
|
|
1373
1377
|
let p = c[u], f = c[d];
|
|
1374
1378
|
if (r) {
|
|
1375
1379
|
const m = u === "y" ? "top" : "left", y = u === "y" ? "bottom" : "right", x = p + h[m], E = p - h[y];
|
|
1376
|
-
p =
|
|
1380
|
+
p = _t(x, p, E);
|
|
1377
1381
|
}
|
|
1378
1382
|
if (n) {
|
|
1379
1383
|
const m = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", x = f + h[m], E = f - h[y];
|
|
1380
|
-
f =
|
|
1384
|
+
f = _t(x, f, E);
|
|
1381
1385
|
}
|
|
1382
1386
|
const g = a.fn({
|
|
1383
1387
|
...t,
|
|
@@ -1397,7 +1401,7 @@ const zi = function(e) {
|
|
|
1397
1401
|
};
|
|
1398
1402
|
}
|
|
1399
1403
|
};
|
|
1400
|
-
},
|
|
1404
|
+
}, zi = function(e) {
|
|
1401
1405
|
return e === void 0 && (e = {}), {
|
|
1402
1406
|
name: "size",
|
|
1403
1407
|
options: e,
|
|
@@ -1412,22 +1416,22 @@ const zi = function(e) {
|
|
|
1412
1416
|
apply: l = () => {
|
|
1413
1417
|
},
|
|
1414
1418
|
...c
|
|
1415
|
-
} = st(e, t), h = await dt(t, c), d = Z(s), u = at(s), p =
|
|
1419
|
+
} = st(e, t), h = await dt(t, c), d = Z(s), u = at(s), p = K(s) === "y", {
|
|
1416
1420
|
width: f,
|
|
1417
1421
|
height: g
|
|
1418
1422
|
} = r.floating;
|
|
1419
1423
|
let m, y;
|
|
1420
1424
|
d === "top" || d === "bottom" ? (m = d, y = u === (await (n.isRTL == null ? void 0 : n.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (y = d, m = u === "end" ? "top" : "bottom");
|
|
1421
|
-
const x = g - h.top - h.bottom, E = f - h.left - h.right, C = J(g - h[m], x), P = J(f - h[y], E),
|
|
1422
|
-
let
|
|
1423
|
-
if ((o = t.middlewareData.shift) != null && o.enabled.x && (V = E), (i = t.middlewareData.shift) != null && i.enabled.y && (
|
|
1425
|
+
const x = g - h.top - h.bottom, E = f - h.left - h.right, C = J(g - h[m], x), P = J(f - h[y], E), F = !t.middlewareData.shift;
|
|
1426
|
+
let O = C, V = P;
|
|
1427
|
+
if ((o = t.middlewareData.shift) != null && o.enabled.x && (V = E), (i = t.middlewareData.shift) != null && i.enabled.y && (O = x), F && !u) {
|
|
1424
1428
|
const D = T(h.left, 0), X = T(h.right, 0), M = T(h.top, 0), G = T(h.bottom, 0);
|
|
1425
|
-
p ? V = f - 2 * (D !== 0 || X !== 0 ? D + X : T(h.left, h.right)) :
|
|
1429
|
+
p ? V = f - 2 * (D !== 0 || X !== 0 ? D + X : T(h.left, h.right)) : O = g - 2 * (M !== 0 || G !== 0 ? M + G : T(h.top, h.bottom));
|
|
1426
1430
|
}
|
|
1427
1431
|
await l({
|
|
1428
1432
|
...t,
|
|
1429
1433
|
availableWidth: V,
|
|
1430
|
-
availableHeight:
|
|
1434
|
+
availableHeight: O
|
|
1431
1435
|
});
|
|
1432
1436
|
const I = await n.getDimensions(a.floating);
|
|
1433
1437
|
return f !== I.width || g !== I.height ? {
|
|
@@ -1438,11 +1442,11 @@ const zi = function(e) {
|
|
|
1438
1442
|
}
|
|
1439
1443
|
};
|
|
1440
1444
|
};
|
|
1441
|
-
function
|
|
1445
|
+
function Ot() {
|
|
1442
1446
|
return typeof window < "u";
|
|
1443
1447
|
}
|
|
1444
1448
|
function lt(e) {
|
|
1445
|
-
return
|
|
1449
|
+
return xe(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1446
1450
|
}
|
|
1447
1451
|
function L(e) {
|
|
1448
1452
|
var t;
|
|
@@ -1450,21 +1454,21 @@ function L(e) {
|
|
|
1450
1454
|
}
|
|
1451
1455
|
function q(e) {
|
|
1452
1456
|
var t;
|
|
1453
|
-
return (t = (
|
|
1457
|
+
return (t = (xe(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1454
1458
|
}
|
|
1455
|
-
function
|
|
1456
|
-
return
|
|
1459
|
+
function xe(e) {
|
|
1460
|
+
return Ot() ? e instanceof Node || e instanceof L(e).Node : !1;
|
|
1457
1461
|
}
|
|
1458
1462
|
function z(e) {
|
|
1459
|
-
return
|
|
1463
|
+
return Ot() ? e instanceof Element || e instanceof L(e).Element : !1;
|
|
1460
1464
|
}
|
|
1461
1465
|
function W(e) {
|
|
1462
|
-
return
|
|
1466
|
+
return Ot() ? e instanceof HTMLElement || e instanceof L(e).HTMLElement : !1;
|
|
1463
1467
|
}
|
|
1464
|
-
function
|
|
1465
|
-
return !
|
|
1468
|
+
function fe(e) {
|
|
1469
|
+
return !Ot() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof L(e).ShadowRoot;
|
|
1466
1470
|
}
|
|
1467
|
-
const
|
|
1471
|
+
const Bi = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
1468
1472
|
function gt(e) {
|
|
1469
1473
|
const {
|
|
1470
1474
|
overflow: t,
|
|
@@ -1472,15 +1476,15 @@ function gt(e) {
|
|
|
1472
1476
|
overflowY: i,
|
|
1473
1477
|
display: s
|
|
1474
1478
|
} = B(e);
|
|
1475
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + i + o) && !
|
|
1479
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + i + o) && !Bi.has(s);
|
|
1476
1480
|
}
|
|
1477
|
-
const
|
|
1478
|
-
function
|
|
1479
|
-
return
|
|
1481
|
+
const Ii = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
1482
|
+
function Mi(e) {
|
|
1483
|
+
return Ii.has(lt(e));
|
|
1480
1484
|
}
|
|
1481
|
-
const
|
|
1482
|
-
function
|
|
1483
|
-
return
|
|
1485
|
+
const Hi = [":popover-open", ":modal"];
|
|
1486
|
+
function At(e) {
|
|
1487
|
+
return Hi.some((t) => {
|
|
1484
1488
|
try {
|
|
1485
1489
|
return e.matches(t);
|
|
1486
1490
|
} catch {
|
|
@@ -1488,28 +1492,28 @@ function Ot(e) {
|
|
|
1488
1492
|
}
|
|
1489
1493
|
});
|
|
1490
1494
|
}
|
|
1491
|
-
const
|
|
1495
|
+
const Wi = ["transform", "translate", "scale", "rotate", "perspective"], qi = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Vi = ["paint", "layout", "strict", "content"];
|
|
1492
1496
|
function St(e) {
|
|
1493
|
-
const t =
|
|
1494
|
-
return
|
|
1497
|
+
const t = te(), o = z(e) ? B(e) : e;
|
|
1498
|
+
return Wi.some((i) => o[i] ? o[i] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !t && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !t && (o.filter ? o.filter !== "none" : !1) || qi.some((i) => (o.willChange || "").includes(i)) || Vi.some((i) => (o.contain || "").includes(i));
|
|
1495
1499
|
}
|
|
1496
|
-
function
|
|
1500
|
+
function Ui(e) {
|
|
1497
1501
|
let t = tt(e);
|
|
1498
1502
|
for (; W(t) && !rt(t); ) {
|
|
1499
1503
|
if (St(t))
|
|
1500
1504
|
return t;
|
|
1501
|
-
if (
|
|
1505
|
+
if (At(t))
|
|
1502
1506
|
return null;
|
|
1503
1507
|
t = tt(t);
|
|
1504
1508
|
}
|
|
1505
1509
|
return null;
|
|
1506
1510
|
}
|
|
1507
|
-
function
|
|
1511
|
+
function te() {
|
|
1508
1512
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1509
1513
|
}
|
|
1510
|
-
const
|
|
1514
|
+
const ji = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
1511
1515
|
function rt(e) {
|
|
1512
|
-
return
|
|
1516
|
+
return ji.has(lt(e));
|
|
1513
1517
|
}
|
|
1514
1518
|
function B(e) {
|
|
1515
1519
|
return L(e).getComputedStyle(e);
|
|
@@ -1530,29 +1534,29 @@ function tt(e) {
|
|
|
1530
1534
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1531
1535
|
e.assignedSlot || // DOM Element detected.
|
|
1532
1536
|
e.parentNode || // ShadowRoot detected.
|
|
1533
|
-
|
|
1537
|
+
fe(e) && e.host || // Fallback.
|
|
1534
1538
|
q(e)
|
|
1535
1539
|
);
|
|
1536
|
-
return
|
|
1540
|
+
return fe(t) ? t.host : t;
|
|
1537
1541
|
}
|
|
1538
|
-
function
|
|
1542
|
+
function Ee(e) {
|
|
1539
1543
|
const t = tt(e);
|
|
1540
|
-
return rt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : W(t) && gt(t) ? t :
|
|
1544
|
+
return rt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : W(t) && gt(t) ? t : Ee(t);
|
|
1541
1545
|
}
|
|
1542
1546
|
function pt(e, t, o) {
|
|
1543
1547
|
var i;
|
|
1544
1548
|
t === void 0 && (t = []), o === void 0 && (o = !0);
|
|
1545
|
-
const s =
|
|
1549
|
+
const s = Ee(e), r = s === ((i = e.ownerDocument) == null ? void 0 : i.body), n = L(s);
|
|
1546
1550
|
if (r) {
|
|
1547
|
-
const a =
|
|
1551
|
+
const a = Bt(n);
|
|
1548
1552
|
return t.concat(n, n.visualViewport || [], gt(s) ? s : [], a && o ? pt(a) : []);
|
|
1549
1553
|
}
|
|
1550
1554
|
return t.concat(s, pt(s, [], o));
|
|
1551
1555
|
}
|
|
1552
|
-
function
|
|
1556
|
+
function Bt(e) {
|
|
1553
1557
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1554
1558
|
}
|
|
1555
|
-
function
|
|
1559
|
+
function Pe(e) {
|
|
1556
1560
|
const t = B(e);
|
|
1557
1561
|
let o = parseFloat(t.width) || 0, i = parseFloat(t.height) || 0;
|
|
1558
1562
|
const s = W(e), r = s ? e.offsetWidth : o, n = s ? e.offsetHeight : i, a = xt(o) !== r || xt(i) !== n;
|
|
@@ -1562,48 +1566,48 @@ function Ae(e) {
|
|
|
1562
1566
|
$: a
|
|
1563
1567
|
};
|
|
1564
1568
|
}
|
|
1565
|
-
function
|
|
1569
|
+
function ee(e) {
|
|
1566
1570
|
return z(e) ? e : e.contextElement;
|
|
1567
1571
|
}
|
|
1568
1572
|
function nt(e) {
|
|
1569
|
-
const t =
|
|
1573
|
+
const t = ee(e);
|
|
1570
1574
|
if (!W(t))
|
|
1571
1575
|
return H(1);
|
|
1572
1576
|
const o = t.getBoundingClientRect(), {
|
|
1573
1577
|
width: i,
|
|
1574
1578
|
height: s,
|
|
1575
1579
|
$: r
|
|
1576
|
-
} =
|
|
1580
|
+
} = Pe(t);
|
|
1577
1581
|
let n = (r ? xt(o.width) : o.width) / i, a = (r ? xt(o.height) : o.height) / s;
|
|
1578
1582
|
return (!n || !Number.isFinite(n)) && (n = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
1579
1583
|
x: n,
|
|
1580
1584
|
y: a
|
|
1581
1585
|
};
|
|
1582
1586
|
}
|
|
1583
|
-
const
|
|
1584
|
-
function
|
|
1587
|
+
const Ki = /* @__PURE__ */ H(0);
|
|
1588
|
+
function Ce(e) {
|
|
1585
1589
|
const t = L(e);
|
|
1586
|
-
return !
|
|
1590
|
+
return !te() || !t.visualViewport ? Ki : {
|
|
1587
1591
|
x: t.visualViewport.offsetLeft,
|
|
1588
1592
|
y: t.visualViewport.offsetTop
|
|
1589
1593
|
};
|
|
1590
1594
|
}
|
|
1591
|
-
function
|
|
1595
|
+
function Yi(e, t, o) {
|
|
1592
1596
|
return t === void 0 && (t = !1), !o || t && o !== L(e) ? !1 : t;
|
|
1593
1597
|
}
|
|
1594
1598
|
function ot(e, t, o, i) {
|
|
1595
1599
|
t === void 0 && (t = !1), o === void 0 && (o = !1);
|
|
1596
|
-
const s = e.getBoundingClientRect(), r =
|
|
1600
|
+
const s = e.getBoundingClientRect(), r = ee(e);
|
|
1597
1601
|
let n = H(1);
|
|
1598
1602
|
t && (i ? z(i) && (n = nt(i)) : n = nt(e));
|
|
1599
|
-
const a =
|
|
1603
|
+
const a = Yi(r, o, i) ? Ce(r) : H(0);
|
|
1600
1604
|
let l = (s.left + a.x) / n.x, c = (s.top + a.y) / n.y, h = s.width / n.x, d = s.height / n.y;
|
|
1601
1605
|
if (r) {
|
|
1602
1606
|
const u = L(r), p = i && z(i) ? L(i) : i;
|
|
1603
|
-
let f = u, g =
|
|
1607
|
+
let f = u, g = Bt(f);
|
|
1604
1608
|
for (; g && i && p !== f; ) {
|
|
1605
1609
|
const m = nt(g), y = g.getBoundingClientRect(), x = B(g), E = y.left + (g.clientLeft + parseFloat(x.paddingLeft)) * m.x, C = y.top + (g.clientTop + parseFloat(x.paddingTop)) * m.y;
|
|
1606
|
-
l *= m.x, c *= m.y, h *= m.x, d *= m.y, l += E, c += C, f = L(g), g =
|
|
1610
|
+
l *= m.x, c *= m.y, h *= m.x, d *= m.y, l += E, c += C, f = L(g), g = Bt(f);
|
|
1607
1611
|
}
|
|
1608
1612
|
}
|
|
1609
1613
|
return Pt({
|
|
@@ -1613,29 +1617,29 @@ function ot(e, t, o, i) {
|
|
|
1613
1617
|
y: c
|
|
1614
1618
|
});
|
|
1615
1619
|
}
|
|
1616
|
-
function
|
|
1620
|
+
function ie(e, t) {
|
|
1617
1621
|
const o = Rt(e).scrollLeft;
|
|
1618
1622
|
return t ? t.left + o : ot(q(e)).left + o;
|
|
1619
1623
|
}
|
|
1620
|
-
function
|
|
1624
|
+
function Oe(e, t, o) {
|
|
1621
1625
|
o === void 0 && (o = !1);
|
|
1622
1626
|
const i = e.getBoundingClientRect(), s = i.left + t.scrollLeft - (o ? 0 : (
|
|
1623
1627
|
// RTL <body> scrollbar.
|
|
1624
|
-
|
|
1628
|
+
ie(e, i)
|
|
1625
1629
|
)), r = i.top + t.scrollTop;
|
|
1626
1630
|
return {
|
|
1627
1631
|
x: s,
|
|
1628
1632
|
y: r
|
|
1629
1633
|
};
|
|
1630
1634
|
}
|
|
1631
|
-
function
|
|
1635
|
+
function Xi(e) {
|
|
1632
1636
|
let {
|
|
1633
1637
|
elements: t,
|
|
1634
1638
|
rect: o,
|
|
1635
1639
|
offsetParent: i,
|
|
1636
1640
|
strategy: s
|
|
1637
1641
|
} = e;
|
|
1638
|
-
const r = s === "fixed", n = q(i), a = t ?
|
|
1642
|
+
const r = s === "fixed", n = q(i), a = t ? At(t.floating) : !1;
|
|
1639
1643
|
if (i === n || a && r)
|
|
1640
1644
|
return o;
|
|
1641
1645
|
let l = {
|
|
@@ -1647,7 +1651,7 @@ function Qi(e) {
|
|
|
1647
1651
|
const p = ot(i);
|
|
1648
1652
|
c = nt(i), h.x = p.x + i.clientLeft, h.y = p.y + i.clientTop;
|
|
1649
1653
|
}
|
|
1650
|
-
const u = n && !d && !r ?
|
|
1654
|
+
const u = n && !d && !r ? Oe(n, l, !0) : H(0);
|
|
1651
1655
|
return {
|
|
1652
1656
|
width: o.width * c.x,
|
|
1653
1657
|
height: o.height * c.y,
|
|
@@ -1655,12 +1659,12 @@ function Qi(e) {
|
|
|
1655
1659
|
y: o.y * c.y - l.scrollTop * c.y + h.y + u.y
|
|
1656
1660
|
};
|
|
1657
1661
|
}
|
|
1658
|
-
function
|
|
1662
|
+
function Gi(e) {
|
|
1659
1663
|
return Array.from(e.getClientRects());
|
|
1660
1664
|
}
|
|
1661
|
-
function
|
|
1665
|
+
function Qi(e) {
|
|
1662
1666
|
const t = q(e), o = Rt(e), i = e.ownerDocument.body, s = T(t.scrollWidth, t.clientWidth, i.scrollWidth, i.clientWidth), r = T(t.scrollHeight, t.clientHeight, i.scrollHeight, i.clientHeight);
|
|
1663
|
-
let n = -o.scrollLeft +
|
|
1667
|
+
let n = -o.scrollLeft + ie(e);
|
|
1664
1668
|
const a = -o.scrollTop;
|
|
1665
1669
|
return B(i).direction === "rtl" && (n += T(t.clientWidth, i.clientWidth) - s), {
|
|
1666
1670
|
width: s,
|
|
@@ -1669,12 +1673,12 @@ function Zi(e) {
|
|
|
1669
1673
|
y: a
|
|
1670
1674
|
};
|
|
1671
1675
|
}
|
|
1672
|
-
function
|
|
1676
|
+
function Ji(e, t) {
|
|
1673
1677
|
const o = L(e), i = q(e), s = o.visualViewport;
|
|
1674
1678
|
let r = i.clientWidth, n = i.clientHeight, a = 0, l = 0;
|
|
1675
1679
|
if (s) {
|
|
1676
1680
|
r = s.width, n = s.height;
|
|
1677
|
-
const c =
|
|
1681
|
+
const c = te();
|
|
1678
1682
|
(!c || c && t === "fixed") && (a = s.offsetLeft, l = s.offsetTop);
|
|
1679
1683
|
}
|
|
1680
1684
|
return {
|
|
@@ -1684,8 +1688,8 @@ function to(e, t) {
|
|
|
1684
1688
|
y: l
|
|
1685
1689
|
};
|
|
1686
1690
|
}
|
|
1687
|
-
const
|
|
1688
|
-
function
|
|
1691
|
+
const Zi = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
1692
|
+
function to(e, t) {
|
|
1689
1693
|
const o = ot(e, !0, t === "fixed"), i = o.top + e.clientTop, s = o.left + e.clientLeft, r = W(e) ? nt(e) : H(1), n = e.clientWidth * r.x, a = e.clientHeight * r.y, l = s * r.x, c = i * r.y;
|
|
1690
1694
|
return {
|
|
1691
1695
|
width: n,
|
|
@@ -1694,16 +1698,16 @@ function io(e, t) {
|
|
|
1694
1698
|
y: c
|
|
1695
1699
|
};
|
|
1696
1700
|
}
|
|
1697
|
-
function
|
|
1701
|
+
function ge(e, t, o) {
|
|
1698
1702
|
let i;
|
|
1699
1703
|
if (t === "viewport")
|
|
1700
|
-
i =
|
|
1704
|
+
i = Ji(e, o);
|
|
1701
1705
|
else if (t === "document")
|
|
1702
|
-
i =
|
|
1706
|
+
i = Qi(q(e));
|
|
1703
1707
|
else if (z(t))
|
|
1704
|
-
i =
|
|
1708
|
+
i = to(t, o);
|
|
1705
1709
|
else {
|
|
1706
|
-
const s =
|
|
1710
|
+
const s = Ce(e);
|
|
1707
1711
|
i = {
|
|
1708
1712
|
x: t.x - s.x,
|
|
1709
1713
|
y: t.y - s.y,
|
|
@@ -1713,11 +1717,11 @@ function ye(e, t, o) {
|
|
|
1713
1717
|
}
|
|
1714
1718
|
return Pt(i);
|
|
1715
1719
|
}
|
|
1716
|
-
function
|
|
1720
|
+
function Ae(e, t) {
|
|
1717
1721
|
const o = tt(e);
|
|
1718
|
-
return o === t || !z(o) || rt(o) ? !1 : B(o).position === "fixed" ||
|
|
1722
|
+
return o === t || !z(o) || rt(o) ? !1 : B(o).position === "fixed" || Ae(o, t);
|
|
1719
1723
|
}
|
|
1720
|
-
function
|
|
1724
|
+
function eo(e, t) {
|
|
1721
1725
|
const o = t.get(e);
|
|
1722
1726
|
if (o)
|
|
1723
1727
|
return o;
|
|
@@ -1726,21 +1730,21 @@ function oo(e, t) {
|
|
|
1726
1730
|
let n = r ? tt(e) : e;
|
|
1727
1731
|
for (; z(n) && !rt(n); ) {
|
|
1728
1732
|
const a = B(n), l = St(n);
|
|
1729
|
-
!l && a.position === "fixed" && (s = null), (r ? !l && !s : !l && a.position === "static" && !!s &&
|
|
1733
|
+
!l && a.position === "fixed" && (s = null), (r ? !l && !s : !l && a.position === "static" && !!s && Zi.has(s.position) || gt(n) && !l && Ae(e, n)) ? i = i.filter((h) => h !== n) : s = a, n = tt(n);
|
|
1730
1734
|
}
|
|
1731
1735
|
return t.set(e, i), i;
|
|
1732
1736
|
}
|
|
1733
|
-
function
|
|
1737
|
+
function io(e) {
|
|
1734
1738
|
let {
|
|
1735
1739
|
element: t,
|
|
1736
1740
|
boundary: o,
|
|
1737
1741
|
rootBoundary: i,
|
|
1738
1742
|
strategy: s
|
|
1739
1743
|
} = e;
|
|
1740
|
-
const n = [...o === "clippingAncestors" ?
|
|
1741
|
-
const d =
|
|
1744
|
+
const n = [...o === "clippingAncestors" ? At(t) ? [] : eo(t, this._c) : [].concat(o), i], a = n[0], l = n.reduce((c, h) => {
|
|
1745
|
+
const d = ge(t, h, s);
|
|
1742
1746
|
return c.top = T(d.top, c.top), c.right = J(d.right, c.right), c.bottom = J(d.bottom, c.bottom), c.left = T(d.left, c.left), c;
|
|
1743
|
-
},
|
|
1747
|
+
}, ge(t, a, s));
|
|
1744
1748
|
return {
|
|
1745
1749
|
width: l.right - l.left,
|
|
1746
1750
|
height: l.bottom - l.top,
|
|
@@ -1748,17 +1752,17 @@ function so(e) {
|
|
|
1748
1752
|
y: l.top
|
|
1749
1753
|
};
|
|
1750
1754
|
}
|
|
1751
|
-
function
|
|
1755
|
+
function oo(e) {
|
|
1752
1756
|
const {
|
|
1753
1757
|
width: t,
|
|
1754
1758
|
height: o
|
|
1755
|
-
} =
|
|
1759
|
+
} = Pe(e);
|
|
1756
1760
|
return {
|
|
1757
1761
|
width: t,
|
|
1758
1762
|
height: o
|
|
1759
1763
|
};
|
|
1760
1764
|
}
|
|
1761
|
-
function
|
|
1765
|
+
function so(e, t, o) {
|
|
1762
1766
|
const i = W(t), s = q(t), r = o === "fixed", n = ot(e, !0, r, t);
|
|
1763
1767
|
let a = {
|
|
1764
1768
|
scrollLeft: 0,
|
|
@@ -1766,7 +1770,7 @@ function ro(e, t, o) {
|
|
|
1766
1770
|
};
|
|
1767
1771
|
const l = H(0);
|
|
1768
1772
|
function c() {
|
|
1769
|
-
l.x =
|
|
1773
|
+
l.x = ie(s);
|
|
1770
1774
|
}
|
|
1771
1775
|
if (i || !i && !r)
|
|
1772
1776
|
if ((lt(t) !== "body" || gt(s)) && (a = Rt(t)), i) {
|
|
@@ -1774,7 +1778,7 @@ function ro(e, t, o) {
|
|
|
1774
1778
|
l.x = p.x + t.clientLeft, l.y = p.y + t.clientTop;
|
|
1775
1779
|
} else s && c();
|
|
1776
1780
|
r && !i && s && c();
|
|
1777
|
-
const h = s && !i && !r ?
|
|
1781
|
+
const h = s && !i && !r ? Oe(s, a) : H(0), d = n.left + a.scrollLeft - l.x - h.x, u = n.top + a.scrollTop - l.y - h.y;
|
|
1778
1782
|
return {
|
|
1779
1783
|
x: d,
|
|
1780
1784
|
y: u,
|
|
@@ -1782,10 +1786,10 @@ function ro(e, t, o) {
|
|
|
1782
1786
|
height: n.height
|
|
1783
1787
|
};
|
|
1784
1788
|
}
|
|
1785
|
-
function
|
|
1789
|
+
function Ft(e) {
|
|
1786
1790
|
return B(e).position === "static";
|
|
1787
1791
|
}
|
|
1788
|
-
function
|
|
1792
|
+
function me(e, t) {
|
|
1789
1793
|
if (!W(e) || B(e).position === "fixed")
|
|
1790
1794
|
return null;
|
|
1791
1795
|
if (t)
|
|
@@ -1793,28 +1797,28 @@ function ve(e, t) {
|
|
|
1793
1797
|
let o = e.offsetParent;
|
|
1794
1798
|
return q(e) === o && (o = o.ownerDocument.body), o;
|
|
1795
1799
|
}
|
|
1796
|
-
function
|
|
1800
|
+
function Se(e, t) {
|
|
1797
1801
|
const o = L(e);
|
|
1798
|
-
if (
|
|
1802
|
+
if (At(e))
|
|
1799
1803
|
return o;
|
|
1800
1804
|
if (!W(e)) {
|
|
1801
1805
|
let s = tt(e);
|
|
1802
1806
|
for (; s && !rt(s); ) {
|
|
1803
|
-
if (z(s) && !
|
|
1807
|
+
if (z(s) && !Ft(s))
|
|
1804
1808
|
return s;
|
|
1805
1809
|
s = tt(s);
|
|
1806
1810
|
}
|
|
1807
1811
|
return o;
|
|
1808
1812
|
}
|
|
1809
|
-
let i =
|
|
1810
|
-
for (; i &&
|
|
1811
|
-
i =
|
|
1812
|
-
return i && rt(i) &&
|
|
1813
|
+
let i = me(e, t);
|
|
1814
|
+
for (; i && Mi(i) && Ft(i); )
|
|
1815
|
+
i = me(i, t);
|
|
1816
|
+
return i && rt(i) && Ft(i) && !St(i) ? o : i || Ui(e) || o;
|
|
1813
1817
|
}
|
|
1814
|
-
const
|
|
1815
|
-
const t = this.getOffsetParent ||
|
|
1818
|
+
const no = async function(e) {
|
|
1819
|
+
const t = this.getOffsetParent || Se, o = this.getDimensions, i = await o(e.floating);
|
|
1816
1820
|
return {
|
|
1817
|
-
reference:
|
|
1821
|
+
reference: so(e.reference, await t(e.floating), e.strategy),
|
|
1818
1822
|
floating: {
|
|
1819
1823
|
x: 0,
|
|
1820
1824
|
y: 0,
|
|
@@ -1823,25 +1827,25 @@ const ao = async function(e) {
|
|
|
1823
1827
|
}
|
|
1824
1828
|
};
|
|
1825
1829
|
};
|
|
1826
|
-
function
|
|
1830
|
+
function ro(e) {
|
|
1827
1831
|
return B(e).direction === "rtl";
|
|
1828
1832
|
}
|
|
1829
|
-
const
|
|
1830
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1833
|
+
const It = {
|
|
1834
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Xi,
|
|
1831
1835
|
getDocumentElement: q,
|
|
1832
|
-
getClippingRect:
|
|
1833
|
-
getOffsetParent:
|
|
1834
|
-
getElementRects:
|
|
1835
|
-
getClientRects:
|
|
1836
|
-
getDimensions:
|
|
1836
|
+
getClippingRect: io,
|
|
1837
|
+
getOffsetParent: Se,
|
|
1838
|
+
getElementRects: no,
|
|
1839
|
+
getClientRects: Gi,
|
|
1840
|
+
getDimensions: oo,
|
|
1837
1841
|
getScale: nt,
|
|
1838
1842
|
isElement: z,
|
|
1839
|
-
isRTL:
|
|
1843
|
+
isRTL: ro
|
|
1840
1844
|
};
|
|
1841
|
-
function
|
|
1845
|
+
function Re(e, t) {
|
|
1842
1846
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1843
1847
|
}
|
|
1844
|
-
function
|
|
1848
|
+
function ao(e, t) {
|
|
1845
1849
|
let o = null, i;
|
|
1846
1850
|
const s = q(e);
|
|
1847
1851
|
function r() {
|
|
@@ -1863,16 +1867,16 @@ function co(e, t) {
|
|
|
1863
1867
|
threshold: T(0, J(1, l)) || 1
|
|
1864
1868
|
};
|
|
1865
1869
|
let C = !0;
|
|
1866
|
-
function P(
|
|
1867
|
-
const
|
|
1868
|
-
if (
|
|
1870
|
+
function P(F) {
|
|
1871
|
+
const O = F[0].intersectionRatio;
|
|
1872
|
+
if (O !== l) {
|
|
1869
1873
|
if (!C)
|
|
1870
1874
|
return n();
|
|
1871
|
-
|
|
1875
|
+
O ? n(!1, O) : i = setTimeout(() => {
|
|
1872
1876
|
n(!1, 1e-7);
|
|
1873
1877
|
}, 1e3);
|
|
1874
1878
|
}
|
|
1875
|
-
|
|
1879
|
+
O === 1 && !Re(c, e.getBoundingClientRect()) && n(), C = !1;
|
|
1876
1880
|
}
|
|
1877
1881
|
try {
|
|
1878
1882
|
o = new IntersectionObserver(P, {
|
|
@@ -1887,7 +1891,7 @@ function co(e, t) {
|
|
|
1887
1891
|
}
|
|
1888
1892
|
return n(!0), r;
|
|
1889
1893
|
}
|
|
1890
|
-
function
|
|
1894
|
+
function Mt(e, t, o, i) {
|
|
1891
1895
|
i === void 0 && (i = {});
|
|
1892
1896
|
const {
|
|
1893
1897
|
ancestorScroll: s = !0,
|
|
@@ -1895,13 +1899,13 @@ function Ht(e, t, o, i) {
|
|
|
1895
1899
|
elementResize: n = typeof ResizeObserver == "function",
|
|
1896
1900
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
1897
1901
|
animationFrame: l = !1
|
|
1898
|
-
} = i, c =
|
|
1902
|
+
} = i, c = ee(e), h = s || r ? [...c ? pt(c) : [], ...pt(t)] : [];
|
|
1899
1903
|
h.forEach((y) => {
|
|
1900
1904
|
s && y.addEventListener("scroll", o, {
|
|
1901
1905
|
passive: !0
|
|
1902
1906
|
}), r && y.addEventListener("resize", o);
|
|
1903
1907
|
});
|
|
1904
|
-
const d = c && a ?
|
|
1908
|
+
const d = c && a ? ao(c, o) : null;
|
|
1905
1909
|
let u = -1, p = null;
|
|
1906
1910
|
n && (p = new ResizeObserver((y) => {
|
|
1907
1911
|
let [x] = y;
|
|
@@ -1914,7 +1918,7 @@ function Ht(e, t, o, i) {
|
|
|
1914
1918
|
l && m();
|
|
1915
1919
|
function m() {
|
|
1916
1920
|
const y = ot(e);
|
|
1917
|
-
g && !
|
|
1921
|
+
g && !Re(g, y) && o(), g = y, f = requestAnimationFrame(m);
|
|
1918
1922
|
}
|
|
1919
1923
|
return o(), () => {
|
|
1920
1924
|
var y;
|
|
@@ -1923,15 +1927,15 @@ function Ht(e, t, o, i) {
|
|
|
1923
1927
|
}), d?.(), (y = p) == null || y.disconnect(), p = null, l && cancelAnimationFrame(f);
|
|
1924
1928
|
};
|
|
1925
1929
|
}
|
|
1926
|
-
const
|
|
1930
|
+
const Ht = $i, Te = _i, Wt = Di, qt = zi, lo = ki, Le = Li, De = (e, t, o) => {
|
|
1927
1931
|
const i = /* @__PURE__ */ new Map(), s = {
|
|
1928
|
-
platform:
|
|
1932
|
+
platform: It,
|
|
1929
1933
|
...o
|
|
1930
1934
|
}, r = {
|
|
1931
1935
|
...s.platform,
|
|
1932
1936
|
_c: i
|
|
1933
1937
|
};
|
|
1934
|
-
return
|
|
1938
|
+
return Ti(e, t, {
|
|
1935
1939
|
...s,
|
|
1936
1940
|
platform: r
|
|
1937
1941
|
});
|
|
@@ -1942,7 +1946,7 @@ function vt(e) {
|
|
|
1942
1946
|
const t = window.devicePixelRatio || 1;
|
|
1943
1947
|
return Math.round(e * t) / t || -1e4;
|
|
1944
1948
|
}
|
|
1945
|
-
const bt = 8,
|
|
1949
|
+
const bt = 8, co = 100, ho = (e) => ({
|
|
1946
1950
|
bottom: ["top", "left", "right"],
|
|
1947
1951
|
"bottom-end": ["top-end", "left", "right"],
|
|
1948
1952
|
"bottom-start": ["top-start", "left", "right"],
|
|
@@ -1956,7 +1960,7 @@ const bt = 8, po = 100, uo = (e) => ({
|
|
|
1956
1960
|
"top-end": ["bottom-end", "left", "right"],
|
|
1957
1961
|
"top-start": ["bottom-start", "left", "right"]
|
|
1958
1962
|
})[e] ?? [e];
|
|
1959
|
-
class
|
|
1963
|
+
class po {
|
|
1960
1964
|
constructor(t) {
|
|
1961
1965
|
this.originalPlacements = /* @__PURE__ */ new WeakMap(), this.allowPlacementUpdate = !1, this.closeForAncestorUpdate = () => {
|
|
1962
1966
|
!this.allowPlacementUpdate && this.options.type !== "modal" && this.cleanup && this.target.dispatchEvent(new Event("close", { bubbles: !0 })), this.allowPlacementUpdate = !1;
|
|
@@ -1969,7 +1973,7 @@ class fo {
|
|
|
1969
1973
|
async placeOverlay(t = this.target, o = this.options) {
|
|
1970
1974
|
if (this.target = t, this.options = o, !t || !o)
|
|
1971
1975
|
return;
|
|
1972
|
-
const i =
|
|
1976
|
+
const i = Mt(
|
|
1973
1977
|
o.trigger,
|
|
1974
1978
|
t,
|
|
1975
1979
|
this.closeForAncestorUpdate,
|
|
@@ -1978,7 +1982,7 @@ class fo {
|
|
|
1978
1982
|
elementResize: !1,
|
|
1979
1983
|
layoutShift: !1
|
|
1980
1984
|
}
|
|
1981
|
-
), s =
|
|
1985
|
+
), s = Mt(
|
|
1982
1986
|
o.trigger,
|
|
1983
1987
|
t,
|
|
1984
1988
|
this.updatePlacement,
|
|
@@ -2002,22 +2006,22 @@ class fo {
|
|
|
2002
2006
|
async computePlacement() {
|
|
2003
2007
|
const { options: t, target: o } = this;
|
|
2004
2008
|
await (document.fonts ? document.fonts.ready : Promise.resolve());
|
|
2005
|
-
const i = t.trigger instanceof HTMLElement ?
|
|
2006
|
-
fallbackPlacements:
|
|
2009
|
+
const i = t.trigger instanceof HTMLElement ? Wt() : Wt({
|
|
2010
|
+
fallbackPlacements: ho(t.placement),
|
|
2007
2011
|
padding: bt
|
|
2008
2012
|
}), [s = 0, r = 0] = Array.isArray(t?.offset) ? t.offset : [t.offset, 0], n = this.host.elements.find(
|
|
2009
2013
|
(u) => u.tipElement
|
|
2010
2014
|
)?.tipElement, a = [
|
|
2011
|
-
|
|
2015
|
+
Ht({
|
|
2012
2016
|
crossAxis: r,
|
|
2013
2017
|
mainAxis: s
|
|
2014
2018
|
}),
|
|
2015
|
-
|
|
2019
|
+
Te({ padding: bt }),
|
|
2016
2020
|
i,
|
|
2017
|
-
|
|
2021
|
+
qt({
|
|
2018
2022
|
apply: ({ availableHeight: u, availableWidth: p, rects: { floating: f } }) => {
|
|
2019
2023
|
const g = Math.max(
|
|
2020
|
-
|
|
2024
|
+
co,
|
|
2021
2025
|
Math.floor(u)
|
|
2022
2026
|
), m = f.height;
|
|
2023
2027
|
this.initialHeight = this.isConstrained && this.initialHeight || m, this.isConstrained = m < this.initialHeight || g <= m;
|
|
@@ -2030,12 +2034,12 @@ class fo {
|
|
|
2030
2034
|
padding: bt
|
|
2031
2035
|
}),
|
|
2032
2036
|
...n ? [
|
|
2033
|
-
|
|
2037
|
+
Le({
|
|
2034
2038
|
element: n,
|
|
2035
2039
|
padding: t.tipPadding || bt
|
|
2036
2040
|
})
|
|
2037
2041
|
] : []
|
|
2038
|
-
], { middlewareData: l, placement: c, x: h, y: d } = await
|
|
2042
|
+
], { middlewareData: l, placement: c, x: h, y: d } = await De(
|
|
2039
2043
|
t.trigger,
|
|
2040
2044
|
o,
|
|
2041
2045
|
{
|
|
@@ -2079,7 +2083,7 @@ class fo {
|
|
|
2079
2083
|
}
|
|
2080
2084
|
}
|
|
2081
2085
|
var Tt = /* @__PURE__ */ ((e) => (e.Click = "click", e.Hover = "hover", e.LongPress = "longpress", e))(Tt || {});
|
|
2082
|
-
class
|
|
2086
|
+
class oe {
|
|
2083
2087
|
constructor(t, { handleOverlayReady: o, isPersistent: i, overlay: s }) {
|
|
2084
2088
|
this.target = t, this.isLazilyOpen = !1, this.isPersistent = !1, this.isPersistent = !!i, this.handleOverlayReady = o, this.isPersistent && this.init(), this.overlay = s;
|
|
2085
2089
|
}
|
|
@@ -2099,9 +2103,9 @@ class se {
|
|
|
2099
2103
|
return;
|
|
2100
2104
|
}
|
|
2101
2105
|
t && (customElements.whenDefined("cx-overlay").then(async () => {
|
|
2102
|
-
const { Overlay: o } = await Promise.resolve().then(() =>
|
|
2106
|
+
const { Overlay: o } = await Promise.resolve().then(() => Oo);
|
|
2103
2107
|
this.overlay = new o(), this.overlay.open = !0;
|
|
2104
|
-
}), Promise.resolve().then(() =>
|
|
2108
|
+
}), Promise.resolve().then(() => Ne));
|
|
2105
2109
|
}
|
|
2106
2110
|
}
|
|
2107
2111
|
get overlay() {
|
|
@@ -2133,12 +2137,12 @@ class se {
|
|
|
2133
2137
|
this.isPersistent || this.abort();
|
|
2134
2138
|
}
|
|
2135
2139
|
}
|
|
2136
|
-
const
|
|
2140
|
+
const uo = 300, ke = {
|
|
2137
2141
|
keyboard: "Press Space or Alt+Down Arrow for additional options",
|
|
2138
2142
|
mouse: "Click and hold for additional options",
|
|
2139
2143
|
touch: "Double tap and long press for additional options"
|
|
2140
2144
|
};
|
|
2141
|
-
class
|
|
2145
|
+
class fo extends oe {
|
|
2142
2146
|
constructor() {
|
|
2143
2147
|
super(...arguments), this.type = Tt.LongPress, this.longpressState = null, this.releaseDescription = it, this.handlePointerup = () => {
|
|
2144
2148
|
clearTimeout(this.timeout), this.target && (this.longpressState = this.overlay?.state === "opening" ? "pressed" : null, document.removeEventListener("pointerup", this.handlePointerup), document.removeEventListener("pointercancel", this.handlePointerup));
|
|
@@ -2161,7 +2165,7 @@ class mo extends se {
|
|
|
2161
2165
|
}
|
|
2162
2166
|
})
|
|
2163
2167
|
);
|
|
2164
|
-
},
|
|
2168
|
+
}, uo));
|
|
2165
2169
|
}
|
|
2166
2170
|
handleKeydown(t) {
|
|
2167
2171
|
const { altKey: o, code: i } = t;
|
|
@@ -2193,9 +2197,9 @@ class mo extends se {
|
|
|
2193
2197
|
)
|
|
2194
2198
|
return;
|
|
2195
2199
|
const o = document.createElement("div");
|
|
2196
|
-
o.id = `longpress-describedby-descriptor-${
|
|
2197
|
-
const i =
|
|
2198
|
-
o.textContent =
|
|
2200
|
+
o.id = `longpress-describedby-descriptor-${Ut()}`;
|
|
2201
|
+
const i = ri() || ai() ? "touch" : "keyboard";
|
|
2202
|
+
o.textContent = ke[i], o.slot = "longpress-describedby-descriptor";
|
|
2199
2203
|
const s = t.getRootNode(), r = this.overlay.getRootNode();
|
|
2200
2204
|
s === r ? this.overlay.append(o) : (o.hidden = !("host" in s), t.insertAdjacentElement("afterend", o));
|
|
2201
2205
|
const n = $t(
|
|
@@ -2230,7 +2234,7 @@ class mo extends se {
|
|
|
2230
2234
|
));
|
|
2231
2235
|
}
|
|
2232
2236
|
}
|
|
2233
|
-
const
|
|
2237
|
+
const go = Vt`
|
|
2234
2238
|
/*
|
|
2235
2239
|
Copyright 2022 Adobe. All rights reserved.
|
|
2236
2240
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -2408,7 +2412,7 @@ governing permissions and limitations under the License.
|
|
|
2408
2412
|
}
|
|
2409
2413
|
}
|
|
2410
2414
|
`;
|
|
2411
|
-
class
|
|
2415
|
+
class mo extends Event {
|
|
2412
2416
|
constructor(t, o, i) {
|
|
2413
2417
|
super("slottable-request", {
|
|
2414
2418
|
bubbles: !1,
|
|
@@ -2417,8 +2421,8 @@ class vo extends Event {
|
|
|
2417
2421
|
}), this.name = t, this.data = o, this.slotName = i !== void 0 ? `${t}.${i}` : t;
|
|
2418
2422
|
}
|
|
2419
2423
|
}
|
|
2420
|
-
const
|
|
2421
|
-
class
|
|
2424
|
+
const yo = Symbol("remove-slottable-request");
|
|
2425
|
+
class vo extends oe {
|
|
2422
2426
|
constructor() {
|
|
2423
2427
|
super(...arguments), this.type = Tt.Click, this.preventNextToggle = !1;
|
|
2424
2428
|
}
|
|
@@ -2440,8 +2444,8 @@ class wo extends se {
|
|
|
2440
2444
|
);
|
|
2441
2445
|
}
|
|
2442
2446
|
}
|
|
2443
|
-
const
|
|
2444
|
-
class
|
|
2447
|
+
const bo = 300;
|
|
2448
|
+
class wo extends oe {
|
|
2445
2449
|
constructor() {
|
|
2446
2450
|
super(...arguments), this.type = Tt.Hover, this.elementIds = [], this.focusedin = !1, this.pointerentered = !1;
|
|
2447
2451
|
}
|
|
@@ -2482,7 +2486,7 @@ class Eo extends se {
|
|
|
2482
2486
|
};
|
|
2483
2487
|
}
|
|
2484
2488
|
prepareContentRelativeDescription() {
|
|
2485
|
-
const t = [], o = this.overlay.elements.map((s) => (t.push(s.id), s.id || (s.id = `${this.overlay.tagName.toLowerCase()}-helper-${
|
|
2489
|
+
const t = [], o = this.overlay.elements.map((s) => (t.push(s.id), s.id || (s.id = `${this.overlay.tagName.toLowerCase()}-helper-${Ut()}`), s.id));
|
|
2486
2490
|
this.elementIds = t;
|
|
2487
2491
|
const i = $t(
|
|
2488
2492
|
this.target,
|
|
@@ -2500,7 +2504,7 @@ class Eo extends se {
|
|
|
2500
2504
|
const t = this.target;
|
|
2501
2505
|
this.focusedin && t.matches(":focus-visible") || (this.hoverTimeout = setTimeout(() => {
|
|
2502
2506
|
this.open = !1;
|
|
2503
|
-
},
|
|
2507
|
+
}, bo));
|
|
2504
2508
|
}
|
|
2505
2509
|
init() {
|
|
2506
2510
|
this.abortController?.abort(), this.abortController = new AbortController();
|
|
@@ -2536,21 +2540,21 @@ class Eo extends se {
|
|
|
2536
2540
|
);
|
|
2537
2541
|
}
|
|
2538
2542
|
}
|
|
2539
|
-
const
|
|
2540
|
-
click:
|
|
2541
|
-
hover:
|
|
2542
|
-
longpress:
|
|
2543
|
+
const xo = {
|
|
2544
|
+
click: vo,
|
|
2545
|
+
hover: wo,
|
|
2546
|
+
longpress: fo
|
|
2543
2547
|
};
|
|
2544
|
-
var
|
|
2545
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
2548
|
+
var Eo = Object.defineProperty, Po = Object.getOwnPropertyDescriptor, R = (e, t, o, i) => {
|
|
2549
|
+
for (var s = i > 1 ? void 0 : i ? Po(t, o) : t, r = e.length - 1, n; r >= 0; r--)
|
|
2546
2550
|
(n = e[r]) && (s = (i ? n(t, o, s) : n(s)) || s);
|
|
2547
|
-
return i && s &&
|
|
2551
|
+
return i && s && Eo(t, o, s), s;
|
|
2548
2552
|
};
|
|
2549
|
-
const
|
|
2550
|
-
let ct =
|
|
2551
|
-
|
|
2552
|
-
var
|
|
2553
|
-
const
|
|
2553
|
+
const Co = "showPopover" in document.createElement("div");
|
|
2554
|
+
let ct = pi(ht);
|
|
2555
|
+
Co ? ct = gi(ct) : ct = ui(ct);
|
|
2556
|
+
var Y;
|
|
2557
|
+
const A = (Y = class extends ct {
|
|
2554
2558
|
constructor() {
|
|
2555
2559
|
super(), this._delayed = !1, this._disabled = !1, this.offset = 0, this._open = !1, this.lastRequestSlottableState = !1, this.receivesFocus = "auto", this._state = "closed", this.triggerElement = null, this.type = "auto", this.wasOpen = !1, this.closeOnFocusOut = (t) => {
|
|
2556
2560
|
if (!t.relatedTarget)
|
|
@@ -2580,13 +2584,13 @@ const O = (K = class extends ct {
|
|
|
2580
2584
|
return !!this.triggerElement && !(this.triggerElement instanceof Ct);
|
|
2581
2585
|
}
|
|
2582
2586
|
get placementController() {
|
|
2583
|
-
return this._placementController || (this._placementController = new
|
|
2587
|
+
return this._placementController || (this._placementController = new po(this)), this._placementController;
|
|
2584
2588
|
}
|
|
2585
2589
|
get open() {
|
|
2586
2590
|
return this._open;
|
|
2587
2591
|
}
|
|
2588
2592
|
set open(t) {
|
|
2589
|
-
t && this.disabled || t !== this.open && (this.strategy?.activelyOpening && !t || (this._open = t, this.open && (
|
|
2593
|
+
t && this.disabled || t !== this.open && (this.strategy?.activelyOpening && !t || (this._open = t, this.open && (Y.openCount += 1), this.requestUpdate("open", !this.open), this.open && this.requestSlottable()));
|
|
2590
2594
|
}
|
|
2591
2595
|
get state() {
|
|
2592
2596
|
return this._state;
|
|
@@ -2598,7 +2602,7 @@ const O = (K = class extends ct {
|
|
|
2598
2602
|
this._state = t, (this.state === "opened" || this.state === "closed") && this.strategy?.shouldCompleteOpen(), this.requestUpdate("state", o);
|
|
2599
2603
|
}
|
|
2600
2604
|
get elementResolver() {
|
|
2601
|
-
return this._elementResolver || (this._elementResolver = new
|
|
2605
|
+
return this._elementResolver || (this._elementResolver = new di(this)), this._elementResolver;
|
|
2602
2606
|
}
|
|
2603
2607
|
get usesDialog() {
|
|
2604
2608
|
return this.type === "modal" || this.type === "page";
|
|
@@ -2664,13 +2668,13 @@ const O = (K = class extends ct {
|
|
|
2664
2668
|
this.receivesFocus !== "false" && this.triggerElement?.focus && (this.contains(this.getRootNode().activeElement) || t().includes(this) || document.activeElement === document.body) && this.triggerElement.focus();
|
|
2665
2669
|
}
|
|
2666
2670
|
async manageOpen(t) {
|
|
2667
|
-
if (!(!this.isConnected && this.open) && (this.hasUpdated || await this.updateComplete, this.open ? (
|
|
2671
|
+
if (!(!this.isConnected && this.open) && (this.hasUpdated || await this.updateComplete, this.open ? (le.add(this), this.willPreventClose && (document.addEventListener(
|
|
2668
2672
|
"pointerup",
|
|
2669
2673
|
() => {
|
|
2670
2674
|
this.dialogEl.classList.toggle("not-immediately-closable", !1), this.willPreventClose = !1;
|
|
2671
2675
|
},
|
|
2672
2676
|
{ once: !0 }
|
|
2673
|
-
), this.dialogEl.classList.toggle("not-immediately-closable", !0))) : (t && this.dispose(),
|
|
2677
|
+
), this.dialogEl.classList.toggle("not-immediately-closable", !0))) : (t && this.dispose(), le.remove(this)), this.open && this.state !== "opened" ? this.state = "opening" : !this.open && this.state !== "closed" && (this.state = "closing"), this.usesDialog ? this.manageDialogOpen() : this.managePopoverOpen(), this.type === "auto")) {
|
|
2674
2678
|
const o = this.getRootNode();
|
|
2675
2679
|
this.open ? o.addEventListener("focusout", this.closeOnFocusOut, {
|
|
2676
2680
|
capture: !0
|
|
@@ -2680,7 +2684,7 @@ const O = (K = class extends ct {
|
|
|
2680
2684
|
}
|
|
2681
2685
|
}
|
|
2682
2686
|
bindEvents() {
|
|
2683
|
-
this.strategy?.abort(), this.strategy = void 0, this.hasNonVirtualTrigger && this.triggerInteraction && (this.strategy = new
|
|
2687
|
+
this.strategy?.abort(), this.strategy = void 0, this.hasNonVirtualTrigger && this.triggerInteraction && (this.strategy = new xo[this.triggerInteraction](
|
|
2684
2688
|
this.triggerElement,
|
|
2685
2689
|
{
|
|
2686
2690
|
overlay: this
|
|
@@ -2709,19 +2713,19 @@ const O = (K = class extends ct {
|
|
|
2709
2713
|
}
|
|
2710
2714
|
requestSlottable() {
|
|
2711
2715
|
this.lastRequestSlottableState !== this.open && (this.open || document.body.offsetHeight, this.dispatchEvent(
|
|
2712
|
-
new
|
|
2716
|
+
new mo(
|
|
2713
2717
|
"overlay-content",
|
|
2714
|
-
this.open ? {} :
|
|
2718
|
+
this.open ? {} : yo
|
|
2715
2719
|
)
|
|
2716
2720
|
), this.lastRequestSlottableState = this.open);
|
|
2717
2721
|
}
|
|
2718
2722
|
willUpdate(t) {
|
|
2719
|
-
if (this.hasAttribute("id") || this.setAttribute("id", `${this.tagName.toLowerCase()}-${
|
|
2723
|
+
if (this.hasAttribute("id") || this.setAttribute("id", `${this.tagName.toLowerCase()}-${Ut()}`), t.has("open") && (this.hasUpdated || this.open) && this.manageOpen(t.get("open")), t.has("trigger")) {
|
|
2720
2724
|
const [i, s] = this.trigger?.split("@") || [];
|
|
2721
2725
|
this.elementResolver.selector = i ? `#${i}` : "", this.triggerInteraction = s;
|
|
2722
2726
|
}
|
|
2723
2727
|
let o = !1;
|
|
2724
|
-
t.has(
|
|
2728
|
+
t.has(ve) && (o = this.triggerElement, this.triggerElement = this.elementResolver.element), t.has("triggerElement") && (o = t.get("triggerElement")), o !== !1 && this.bindEvents();
|
|
2725
2729
|
}
|
|
2726
2730
|
updated(t) {
|
|
2727
2731
|
super.updated(t), t.has("placement") && (this.placement ? this.dialogEl.setAttribute("actual-placement", this.placement) : this.dialogEl.removeAttribute("actual-placement"), this.open && typeof t.get("placement") < "u" && this.placementController.resetOverlayPosition()), t.has("state") && this.state === "closed" && typeof t.get("state") < "u" && this.placementController.clearOverlayPosition();
|
|
@@ -2731,7 +2735,7 @@ const O = (K = class extends ct {
|
|
|
2731
2735
|
}
|
|
2732
2736
|
get dialogStyleMap() {
|
|
2733
2737
|
return {
|
|
2734
|
-
"--swc-overlay-open-count":
|
|
2738
|
+
"--swc-overlay-open-count": Y.openCount.toString()
|
|
2735
2739
|
};
|
|
2736
2740
|
}
|
|
2737
2741
|
handleClose() {
|
|
@@ -2745,7 +2749,7 @@ const O = (K = class extends ct {
|
|
|
2745
2749
|
placement=${Lt(
|
|
2746
2750
|
this.requiresPosition ? this.placement || "right" : void 0
|
|
2747
2751
|
)}
|
|
2748
|
-
style=${
|
|
2752
|
+
style=${se(this.dialogStyleMap)}
|
|
2749
2753
|
@close=${this.handleBrowserClose}
|
|
2750
2754
|
@cancel=${this.handleBrowserClose}
|
|
2751
2755
|
@beforetoggle=${this.handleBeforetoggle}
|
|
@@ -2764,7 +2768,7 @@ const O = (K = class extends ct {
|
|
|
2764
2768
|
this.requiresPosition ? this.placement || "right" : void 0
|
|
2765
2769
|
)}
|
|
2766
2770
|
popover=${Lt(this.popoverValue)}
|
|
2767
|
-
style=${
|
|
2771
|
+
style=${se(this.dialogStyleMap)}
|
|
2768
2772
|
@beforetoggle=${this.handleBeforetoggle}
|
|
2769
2773
|
@close=${this.handleBrowserClose}
|
|
2770
2774
|
?is-visible=${this.state !== "closed"}
|
|
@@ -2786,80 +2790,80 @@ const O = (K = class extends ct {
|
|
|
2786
2790
|
disconnectedCallback() {
|
|
2787
2791
|
super.disconnectedCallback(), this.removeEventListener("close", this.handleClose), this.strategy?.releaseDescription(), this.open = !1;
|
|
2788
2792
|
}
|
|
2789
|
-
},
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
${
|
|
2793
|
+
}, Y.styles = [
|
|
2794
|
+
ye,
|
|
2795
|
+
Vt`
|
|
2796
|
+
${ze(go)}
|
|
2793
2797
|
`
|
|
2794
|
-
],
|
|
2798
|
+
], Y.openCount = 1, Y);
|
|
2795
2799
|
R([
|
|
2796
2800
|
v({ type: Boolean })
|
|
2797
|
-
],
|
|
2801
|
+
], A.prototype, "delayed", 1);
|
|
2798
2802
|
R([
|
|
2799
2803
|
ut(".dialog")
|
|
2800
|
-
],
|
|
2804
|
+
], A.prototype, "dialogEl", 2);
|
|
2801
2805
|
R([
|
|
2802
2806
|
v({ type: Boolean })
|
|
2803
|
-
],
|
|
2807
|
+
], A.prototype, "disabled", 1);
|
|
2804
2808
|
R([
|
|
2805
|
-
|
|
2809
|
+
je({
|
|
2806
2810
|
flatten: !0,
|
|
2807
2811
|
selector: ':not([slot="longpress-describedby-descriptor"], slot)'
|
|
2808
2812
|
// gather only elements slotted into the default slot
|
|
2809
2813
|
})
|
|
2810
|
-
],
|
|
2814
|
+
], A.prototype, "elements", 2);
|
|
2811
2815
|
R([
|
|
2812
2816
|
v({ type: Number })
|
|
2813
|
-
],
|
|
2817
|
+
], A.prototype, "offset", 2);
|
|
2814
2818
|
R([
|
|
2815
2819
|
v({ reflect: !0, type: Boolean })
|
|
2816
|
-
],
|
|
2820
|
+
], A.prototype, "open", 1);
|
|
2817
2821
|
R([
|
|
2818
2822
|
v()
|
|
2819
|
-
],
|
|
2823
|
+
], A.prototype, "placement", 2);
|
|
2820
2824
|
R([
|
|
2821
2825
|
v({ attribute: "receives-focus" })
|
|
2822
|
-
],
|
|
2826
|
+
], A.prototype, "receivesFocus", 2);
|
|
2823
2827
|
R([
|
|
2824
2828
|
ut("slot")
|
|
2825
|
-
],
|
|
2829
|
+
], A.prototype, "slotEl", 2);
|
|
2826
2830
|
R([
|
|
2827
|
-
|
|
2828
|
-
],
|
|
2831
|
+
Me()
|
|
2832
|
+
], A.prototype, "state", 1);
|
|
2829
2833
|
R([
|
|
2830
2834
|
v({ attribute: "tip-padding", type: Number })
|
|
2831
|
-
],
|
|
2835
|
+
], A.prototype, "tipPadding", 2);
|
|
2832
2836
|
R([
|
|
2833
2837
|
v()
|
|
2834
|
-
],
|
|
2838
|
+
], A.prototype, "trigger", 2);
|
|
2835
2839
|
R([
|
|
2836
2840
|
v({ attribute: "trigger-element" })
|
|
2837
|
-
],
|
|
2841
|
+
], A.prototype, "triggerElement", 2);
|
|
2838
2842
|
R([
|
|
2839
2843
|
v({ attribute: "trigger-interaction" })
|
|
2840
|
-
],
|
|
2844
|
+
], A.prototype, "triggerInteraction", 2);
|
|
2841
2845
|
R([
|
|
2842
2846
|
v()
|
|
2843
|
-
],
|
|
2844
|
-
let Fe =
|
|
2845
|
-
const
|
|
2847
|
+
], A.prototype, "type", 2);
|
|
2848
|
+
let Fe = A;
|
|
2849
|
+
const Oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2846
2850
|
__proto__: null,
|
|
2847
|
-
LONGPRESS_INSTRUCTIONS:
|
|
2851
|
+
LONGPRESS_INSTRUCTIONS: ke,
|
|
2848
2852
|
Overlay: Fe
|
|
2849
2853
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2850
|
-
|
|
2851
|
-
const
|
|
2854
|
+
Je("cx-overlay", Fe);
|
|
2855
|
+
const Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2852
2856
|
__proto__: null
|
|
2853
2857
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2854
|
-
function
|
|
2855
|
-
return
|
|
2858
|
+
function Ao(e) {
|
|
2859
|
+
return So(e);
|
|
2856
2860
|
}
|
|
2857
|
-
function
|
|
2861
|
+
function Nt(e) {
|
|
2858
2862
|
return e.assignedSlot ? e.assignedSlot : e.parentNode instanceof ShadowRoot ? e.parentNode.host : e.parentNode;
|
|
2859
2863
|
}
|
|
2860
|
-
function
|
|
2861
|
-
for (let t = e; t; t =
|
|
2862
|
-
for (let t =
|
|
2864
|
+
function So(e) {
|
|
2865
|
+
for (let t = e; t; t = Nt(t)) if (t instanceof Element && getComputedStyle(t).display === "none") return null;
|
|
2866
|
+
for (let t = Nt(e); t; t = Nt(t)) {
|
|
2863
2867
|
if (!(t instanceof Element)) continue;
|
|
2864
2868
|
const o = getComputedStyle(t);
|
|
2865
2869
|
if (o.display !== "contents" && (o.position !== "static" || St(o) || t.tagName === "BODY"))
|
|
@@ -2867,7 +2871,7 @@ function To(e) {
|
|
|
2867
2871
|
}
|
|
2868
2872
|
return null;
|
|
2869
2873
|
}
|
|
2870
|
-
const
|
|
2874
|
+
const Ro = Vt`
|
|
2871
2875
|
:host {
|
|
2872
2876
|
--arrow-color: var(--cx-color-neutral-1000);
|
|
2873
2877
|
--arrow-size: 6px;
|
|
@@ -2943,20 +2947,20 @@ const Lo = Ut`
|
|
|
2943
2947
|
);
|
|
2944
2948
|
}
|
|
2945
2949
|
`;
|
|
2946
|
-
var
|
|
2947
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
2950
|
+
var To = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, w = (e, t, o, i) => {
|
|
2951
|
+
for (var s = i > 1 ? void 0 : i ? Lo(t, o) : t, r = e.length - 1, n; r >= 0; r--)
|
|
2948
2952
|
(n = e[r]) && (s = (i ? n(t, o, s) : n(s)) || s);
|
|
2949
|
-
return i && s &&
|
|
2953
|
+
return i && s && To(t, o, s), s;
|
|
2950
2954
|
};
|
|
2951
|
-
function
|
|
2955
|
+
function Do(e) {
|
|
2952
2956
|
if (e == null || typeof e != "object")
|
|
2953
2957
|
return !1;
|
|
2954
2958
|
const t = "contextElement" in e ? e.contextElement.ownerDocument.defaultView : null;
|
|
2955
2959
|
return "getBoundingClientRect" in e && ("contextElement" in e ? e.contextElement instanceof (t?.Element ?? Element) : !0);
|
|
2956
2960
|
}
|
|
2957
|
-
let b = class extends
|
|
2961
|
+
let b = class extends Be {
|
|
2958
2962
|
constructor() {
|
|
2959
|
-
super(...arguments), this.localize = new
|
|
2963
|
+
super(...arguments), this.localize = new Ve(this), this.active = !1, this.placement = "top", this.strategy = "absolute", this.distance = 0, this.skidding = 0, this.arrow = !1, this.arrowPlacement = "anchor", this.arrowPadding = 10, this.flip = !1, this.hide = !1, this.hideBoundaryStrategy = "escaped", this.flipFallbackPlacements = "", this.flipFallbackStrategy = "best-fit", this.flipPadding = 0, this.shift = !1, this.shiftPadding = 0, this.autoSizePadding = 0, this.hoverBridge = !1, this.autoWidthFactor = 1, this.updateHoverBridge = () => {
|
|
2960
2964
|
if (this.hoverBridge && this.anchorEl) {
|
|
2961
2965
|
const e = this.anchorEl.getBoundingClientRect(), t = this.popup.getBoundingClientRect(), o = this.placement.includes("top") || this.placement.includes("bottom") || this.placement === "center";
|
|
2962
2966
|
let i = 0, s = 0, r = 0, n = 0, a = 0, l = 0, c = 0, h = 0;
|
|
@@ -2987,8 +2991,8 @@ let b = class extends Me {
|
|
|
2987
2991
|
super.disconnectedCallback(), this.stop();
|
|
2988
2992
|
}
|
|
2989
2993
|
connectedUpdatedCallback() {
|
|
2990
|
-
if (this.strategy === "overlay" && (this.start(), !
|
|
2991
|
-
const e =
|
|
2994
|
+
if (this.strategy === "overlay" && (this.start(), !ne)) {
|
|
2995
|
+
const e = We(this);
|
|
2992
2996
|
e && (this.autoSizeBoundary = e, this.flipBoundary = e, this.shiftBoundary = e);
|
|
2993
2997
|
}
|
|
2994
2998
|
}
|
|
@@ -2999,7 +3003,7 @@ let b = class extends Me {
|
|
|
2999
3003
|
if (await this.stop(), this.anchor && typeof this.anchor == "string") {
|
|
3000
3004
|
const e = this.getRootNode();
|
|
3001
3005
|
this.anchorEl = e.getElementById(this.anchor);
|
|
3002
|
-
} else this.anchor instanceof Element ||
|
|
3006
|
+
} else this.anchor instanceof Element || Do(this.anchor) ? this.anchorEl = this.anchor : this.anchorEl = this.querySelector('[slot="anchor"]');
|
|
3003
3007
|
this.anchorEl instanceof HTMLSlotElement && (this.anchorEl = this.anchorEl.assignedElements({
|
|
3004
3008
|
flatten: !0
|
|
3005
3009
|
})[0]), this.anchorEl instanceof Element && this.anchorEl.tagName.toLowerCase() === "cx-dialog" && (this.anchorEl = this.anchorEl?.shadowRoot?.querySelector(
|
|
@@ -3007,7 +3011,7 @@ let b = class extends Me {
|
|
|
3007
3011
|
)), this.anchorEl && this.start();
|
|
3008
3012
|
}
|
|
3009
3013
|
start() {
|
|
3010
|
-
!this.anchorEl || !this.isConnected || (this.cleanup =
|
|
3014
|
+
!this.anchorEl || !this.isConnected || (this.cleanup = Mt(this.anchorEl, this.popup, () => {
|
|
3011
3015
|
this.reposition();
|
|
3012
3016
|
}));
|
|
3013
3017
|
}
|
|
@@ -3022,12 +3026,12 @@ let b = class extends Me {
|
|
|
3022
3026
|
return;
|
|
3023
3027
|
const e = [
|
|
3024
3028
|
// The offset middleware goes first
|
|
3025
|
-
this.placement === "center" ?
|
|
3029
|
+
this.placement === "center" ? Ht(
|
|
3026
3030
|
({ rects: t }) => -t.reference.height / 2 - t.floating.height / 2
|
|
3027
|
-
) :
|
|
3031
|
+
) : Ht({ crossAxis: this.skidding, mainAxis: this.distance })
|
|
3028
3032
|
];
|
|
3029
3033
|
if (this.sync ? e.push(
|
|
3030
|
-
|
|
3034
|
+
qt({
|
|
3031
3035
|
apply: ({ rects: t }) => {
|
|
3032
3036
|
const o = this.sync === "width" || this.sync === "both", i = this.sync === "height" || this.sync === "both", s = this.syncElement ? this.syncElement.getBoundingClientRect() : t.reference;
|
|
3033
3037
|
this.popup.style.width = o ? `${s.width}px` : "", this.popup.style.height = i ? `${s.height}px` : "";
|
|
@@ -3036,7 +3040,7 @@ let b = class extends Me {
|
|
|
3036
3040
|
) : (this.popup.style.width = "", this.popup.style.height = ""), this.flip) {
|
|
3037
3041
|
let t = this.flipBoundary;
|
|
3038
3042
|
!t && ["fixed", "overlay"].includes(this.strategy) && (t = document.body), e.push(
|
|
3039
|
-
|
|
3043
|
+
Wt({
|
|
3040
3044
|
boundary: t,
|
|
3041
3045
|
// @ts-expect-error - We're converting a string attribute to an array here
|
|
3042
3046
|
fallbackPlacements: this.flipFallbackPlacements,
|
|
@@ -3048,7 +3052,7 @@ let b = class extends Me {
|
|
|
3048
3052
|
if (this.shift) {
|
|
3049
3053
|
let t = this.shiftBoundary;
|
|
3050
3054
|
!t && ["fixed", "overlay"].includes(this.strategy) && (t = document.body), e.push(
|
|
3051
|
-
|
|
3055
|
+
Te({
|
|
3052
3056
|
boundary: t,
|
|
3053
3057
|
padding: this.shiftPadding
|
|
3054
3058
|
})
|
|
@@ -3057,7 +3061,7 @@ let b = class extends Me {
|
|
|
3057
3061
|
if (this.autoSize) {
|
|
3058
3062
|
let t = this.autoSizeBoundary;
|
|
3059
3063
|
!t && ["fixed", "overlay"].includes(this.strategy) && (t = document.body), e.push(
|
|
3060
|
-
|
|
3064
|
+
qt({
|
|
3061
3065
|
apply: ({ availableHeight: o, availableWidth: i }) => {
|
|
3062
3066
|
this.autoSize === "vertical" || this.autoSize === "both" ? this.style.setProperty(
|
|
3063
3067
|
"--auto-size-available-height",
|
|
@@ -3074,21 +3078,21 @@ let b = class extends Me {
|
|
|
3074
3078
|
} else
|
|
3075
3079
|
this.style.removeProperty("--auto-size-available-width"), this.style.removeProperty("--auto-size-available-height");
|
|
3076
3080
|
this.arrow && e.push(
|
|
3077
|
-
|
|
3081
|
+
Le({
|
|
3078
3082
|
element: this.arrowEl,
|
|
3079
3083
|
padding: this.arrowPadding
|
|
3080
3084
|
})
|
|
3081
3085
|
), this.hide && e.push(
|
|
3082
|
-
|
|
3086
|
+
lo({
|
|
3083
3087
|
boundary: this.hideBoundary,
|
|
3084
3088
|
strategy: this.hideBoundaryStrategy
|
|
3085
3089
|
})
|
|
3086
|
-
),
|
|
3090
|
+
), De(this.anchorEl, this.popup, {
|
|
3087
3091
|
middleware: e,
|
|
3088
3092
|
placement: this.placement === "center" ? "bottom" : this.placement,
|
|
3089
3093
|
platform: {
|
|
3090
|
-
...
|
|
3091
|
-
getOffsetParent: (t) => this.strategy === "absolute" ?
|
|
3094
|
+
...It,
|
|
3095
|
+
getOffsetParent: (t) => this.strategy === "absolute" ? It.getOffsetParent(t, Ao) : this.strategy === "overlay" && ne ? window : qe(t) || window
|
|
3092
3096
|
},
|
|
3093
3097
|
strategy: ["overlay", "fixed"].includes(this.strategy) ? "fixed" : "absolute"
|
|
3094
3098
|
}).then(({ middlewareData: t, placement: o, x: i, y: s }) => {
|
|
@@ -3170,7 +3174,7 @@ let b = class extends Me {
|
|
|
3170
3174
|
})}
|
|
3171
3175
|
></span>
|
|
3172
3176
|
|
|
3173
|
-
${
|
|
3177
|
+
${Ue(
|
|
3174
3178
|
this.strategy === "overlay",
|
|
3175
3179
|
() => e,
|
|
3176
3180
|
() => j`<div
|
|
@@ -3194,7 +3198,7 @@ let b = class extends Me {
|
|
|
3194
3198
|
`;
|
|
3195
3199
|
}
|
|
3196
3200
|
};
|
|
3197
|
-
b.styles = [
|
|
3201
|
+
b.styles = [ye, Ro];
|
|
3198
3202
|
w([
|
|
3199
3203
|
ut(".popup")
|
|
3200
3204
|
], b.prototype, "popup", 2);
|
|
@@ -3292,12 +3296,12 @@ w([
|
|
|
3292
3296
|
v({ attribute: "auto-width-factor" })
|
|
3293
3297
|
], b.prototype, "autoWidthFactor", 2);
|
|
3294
3298
|
w([
|
|
3295
|
-
|
|
3299
|
+
Ke(200)
|
|
3296
3300
|
], b.prototype, "start", 1);
|
|
3297
3301
|
b = w([
|
|
3298
|
-
|
|
3302
|
+
Ie("cx-popup")
|
|
3299
3303
|
], b);
|
|
3300
3304
|
export {
|
|
3301
3305
|
b as C,
|
|
3302
|
-
|
|
3306
|
+
Ke as d
|
|
3303
3307
|
};
|