@gomusdev/web-components 4.14.4 → 4.14.5
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.
|
@@ -322,8 +322,8 @@ var Db = 1, ji = class Ql {
|
|
|
322
322
|
#n = /* @__PURE__ */ new Set();
|
|
323
323
|
#i = /* @__PURE__ */ new Set();
|
|
324
324
|
#s = 0;
|
|
325
|
-
#
|
|
326
|
-
#
|
|
325
|
+
#a = /* @__PURE__ */ new Map();
|
|
326
|
+
#o = null;
|
|
327
327
|
#l = [];
|
|
328
328
|
#u = [];
|
|
329
329
|
#c = /* @__PURE__ */ new Set();
|
|
@@ -337,7 +337,7 @@ var Db = 1, ji = class Ql {
|
|
|
337
337
|
}
|
|
338
338
|
#m() {
|
|
339
339
|
if (this.is_fork) return !0;
|
|
340
|
-
for (const n of this.#
|
|
340
|
+
for (const n of this.#a.keys()) {
|
|
341
341
|
for (var t = n, r = !1; t.parent !== null; ) {
|
|
342
342
|
if (this.#h.has(t)) {
|
|
343
343
|
r = !0;
|
|
@@ -397,7 +397,7 @@ var Db = 1, ji = class Ql {
|
|
|
397
397
|
}
|
|
398
398
|
this.#c.clear(), this.#d.clear();
|
|
399
399
|
for (const l of this.#n) l(this);
|
|
400
|
-
this.#n.clear(), Ps = this, xd(n), xd(r), Ps = null, this.#
|
|
400
|
+
this.#n.clear(), Ps = this, xd(n), xd(r), Ps = null, this.#o?.resolve();
|
|
401
401
|
var o = Ee;
|
|
402
402
|
if (this.#s === 0 && (this.#l.length === 0 || o !== null) && (this.#b(), er && (this.#k(), Ee = o)), this.#l.length > 0) if (o !== null) {
|
|
403
403
|
const l = o;
|
|
@@ -480,7 +480,7 @@ var Db = 1, ji = class Ql {
|
|
|
480
480
|
}
|
|
481
481
|
discard() {
|
|
482
482
|
for (const t of this.#i) t(this);
|
|
483
|
-
this.#i.clear(), this.#b(), this.#
|
|
483
|
+
this.#i.clear(), this.#b(), this.#o?.resolve();
|
|
484
484
|
}
|
|
485
485
|
register_created_effect(t) {
|
|
486
486
|
this.#u.push(t);
|
|
@@ -530,14 +530,14 @@ var Db = 1, ji = class Ql {
|
|
|
530
530
|
}
|
|
531
531
|
increment(t, r) {
|
|
532
532
|
if (this.#s += 1, t) {
|
|
533
|
-
let n = this.#
|
|
534
|
-
this.#
|
|
533
|
+
let n = this.#a.get(r) ?? 0;
|
|
534
|
+
this.#a.set(r, n + 1);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
decrement(t, r) {
|
|
538
538
|
if (this.#s -= 1, t) {
|
|
539
|
-
let n = this.#
|
|
540
|
-
n === 1 ? this.#
|
|
539
|
+
let n = this.#a.get(r) ?? 0;
|
|
540
|
+
n === 1 ? this.#a.delete(r) : this.#a.set(r, n - 1);
|
|
541
541
|
}
|
|
542
542
|
this.#f || (this.#f = !0, pr(() => {
|
|
543
543
|
this.#f = !1, this.linked && this.flush();
|
|
@@ -555,7 +555,7 @@ var Db = 1, ji = class Ql {
|
|
|
555
555
|
this.#i.add(t);
|
|
556
556
|
}
|
|
557
557
|
settled() {
|
|
558
|
-
return (this.#
|
|
558
|
+
return (this.#o ??= Bh()).promise;
|
|
559
559
|
}
|
|
560
560
|
static ensure() {
|
|
561
561
|
if (Ee === null) {
|
|
@@ -717,8 +717,8 @@ var $b = class {
|
|
|
717
717
|
#n;
|
|
718
718
|
#i;
|
|
719
719
|
#s = null;
|
|
720
|
-
#o = null;
|
|
721
720
|
#a = null;
|
|
721
|
+
#o = null;
|
|
722
722
|
#l = null;
|
|
723
723
|
#u = 0;
|
|
724
724
|
#c = 0;
|
|
@@ -754,17 +754,17 @@ var $b = class {
|
|
|
754
754
|
}
|
|
755
755
|
#y(e) {
|
|
756
756
|
const t = this.#r.failed;
|
|
757
|
-
t && (this.#
|
|
757
|
+
t && (this.#o = Bt(() => {
|
|
758
758
|
t(this.#e, () => e, () => () => {
|
|
759
759
|
});
|
|
760
760
|
}));
|
|
761
761
|
}
|
|
762
762
|
#w() {
|
|
763
763
|
const e = this.#r.pending;
|
|
764
|
-
e && (this.is_pending = !0, this.#
|
|
764
|
+
e && (this.is_pending = !0, this.#a = Bt(() => e(this.#e)), pr(() => {
|
|
765
765
|
var t = this.#l = document.createDocumentFragment(), r = jt();
|
|
766
|
-
t.append(r), this.#s = this.#k(() => Bt(() => this.#n(r))), this.#c === 0 && (this.#e.before(t), this.#l = null, ei(this.#
|
|
767
|
-
this.#
|
|
766
|
+
t.append(r), this.#s = this.#k(() => Bt(() => this.#n(r))), this.#c === 0 && (this.#e.before(t), this.#l = null, ei(this.#a, () => {
|
|
767
|
+
this.#a = null;
|
|
768
768
|
}), this.#g(Ee));
|
|
769
769
|
}));
|
|
770
770
|
}
|
|
@@ -776,7 +776,7 @@ var $b = class {
|
|
|
776
776
|
var e = this.#l = document.createDocumentFragment();
|
|
777
777
|
Yu(this.#s, e);
|
|
778
778
|
const t = this.#r.pending;
|
|
779
|
-
this.#
|
|
779
|
+
this.#a = Bt(() => t(this.#e));
|
|
780
780
|
} else this.#g(Ee);
|
|
781
781
|
} catch (t) {
|
|
782
782
|
this.error(t);
|
|
@@ -810,8 +810,8 @@ var $b = class {
|
|
|
810
810
|
this.parent && this.parent.#b(e, t);
|
|
811
811
|
return;
|
|
812
812
|
}
|
|
813
|
-
this.#c += e, this.#c === 0 && (this.#g(t), this.#
|
|
814
|
-
this.#
|
|
813
|
+
this.#c += e, this.#c === 0 && (this.#g(t), this.#a && ei(this.#a, () => {
|
|
814
|
+
this.#a = null;
|
|
815
815
|
}), this.#l && (this.#e.before(this.#l), this.#l = null));
|
|
816
816
|
}
|
|
817
817
|
update_pending_count(e, t) {
|
|
@@ -824,12 +824,12 @@ var $b = class {
|
|
|
824
824
|
}
|
|
825
825
|
error(e) {
|
|
826
826
|
if (!this.#r.onerror && !this.#r.failed) throw e;
|
|
827
|
-
Ee?.is_fork ? (this.#s && Ee.skip_effect(this.#s), this.#
|
|
827
|
+
Ee?.is_fork ? (this.#s && Ee.skip_effect(this.#s), this.#a && Ee.skip_effect(this.#a), this.#o && Ee.skip_effect(this.#o), Ee.oncommit(() => {
|
|
828
828
|
this.#S(e);
|
|
829
829
|
})) : this.#S(e);
|
|
830
830
|
}
|
|
831
831
|
#S(e) {
|
|
832
|
-
this.#s && (wt(this.#s), this.#s = null), this.#
|
|
832
|
+
this.#s && (wt(this.#s), this.#s = null), this.#a && (wt(this.#a), this.#a = null), this.#o && (wt(this.#o), this.#o = null), ke && (pt(this.#t), $t(), pt(Is()));
|
|
833
833
|
var t = this.#r.onerror;
|
|
834
834
|
let r = this.#r.failed;
|
|
835
835
|
var n = !1, i = !1;
|
|
@@ -838,8 +838,8 @@ var $b = class {
|
|
|
838
838
|
yb();
|
|
839
839
|
return;
|
|
840
840
|
}
|
|
841
|
-
n = !0, i && mb(), this.#
|
|
842
|
-
this.#
|
|
841
|
+
n = !0, i && mb(), this.#o !== null && ei(this.#o, () => {
|
|
842
|
+
this.#o = null;
|
|
843
843
|
}), this.#k(() => {
|
|
844
844
|
this.#_();
|
|
845
845
|
});
|
|
@@ -849,7 +849,7 @@ var $b = class {
|
|
|
849
849
|
} catch (l) {
|
|
850
850
|
An(l, this.#i && this.#i.parent);
|
|
851
851
|
}
|
|
852
|
-
r && (this.#
|
|
852
|
+
r && (this.#o = this.#k(() => {
|
|
853
853
|
try {
|
|
854
854
|
return Bt(() => {
|
|
855
855
|
var l = xe;
|
|
@@ -2108,7 +2108,7 @@ var Qu = class {
|
|
|
2108
2108
|
}
|
|
2109
2109
|
}
|
|
2110
2110
|
};
|
|
2111
|
-
#
|
|
2111
|
+
#a = (e) => {
|
|
2112
2112
|
this.#e.delete(e);
|
|
2113
2113
|
const t = Array.from(this.#e.values());
|
|
2114
2114
|
for (const [r, n] of this.#r) t.includes(r) || (wt(n.effect), this.#r.delete(r));
|
|
@@ -2125,7 +2125,7 @@ var Qu = class {
|
|
|
2125
2125
|
if (this.#e.set(r, e), n) {
|
|
2126
2126
|
for (const [a, o] of this.#t) a === e ? r.unskip_effect(o) : r.skip_effect(o);
|
|
2127
2127
|
for (const [a, o] of this.#r) a === e ? r.unskip_effect(o.effect) : r.skip_effect(o.effect);
|
|
2128
|
-
r.oncommit(this.#s), r.ondiscard(this.#
|
|
2128
|
+
r.oncommit(this.#s), r.ondiscard(this.#a);
|
|
2129
2129
|
} else
|
|
2130
2130
|
ke && (this.anchor = Ce), this.#s(r);
|
|
2131
2131
|
}
|
|
@@ -8999,10 +8999,13 @@ var sT = "/api/v4/calendar", aT = "/api/v4/tickets/calendar", oT = "/api/v4/auth
|
|
|
8999
8999
|
}
|
|
9000
9000
|
});
|
|
9001
9001
|
}
|
|
9002
|
+
#n(e, t, r = {}) {
|
|
9003
|
+
return e + JSON.stringify(t) + JSON.stringify(r);
|
|
9004
|
+
}
|
|
9002
9005
|
fetchAndCache(e, t, r, n) {
|
|
9003
|
-
if (n ??= {}, n.query ??= {}, n.cache ??= 1e3, n.path ??= {}, !this.#
|
|
9006
|
+
if (n ??= {}, n.query ??= {}, n.cache ??= 1e3, n.path ??= {}, !this.#s())
|
|
9004
9007
|
return console.warn("(fetchAndCache) Couldn't fetch, Shop not loaded!"), d(this.#e)[t];
|
|
9005
|
-
const i = n.query, s = e
|
|
9008
|
+
const i = n.query, s = this.#n(e, i, n.path), a = !this.#t[s], o = this.#t[s]?.fetchedAt < Date.now() - n.cache * 1e3;
|
|
9006
9009
|
return (a || o) && this.apiGet(e, i, n.path).then((l) => {
|
|
9007
9010
|
l && (d(this.#e)[t] = r === "" ? l : l[r]);
|
|
9008
9011
|
}), d(this.#e)[t];
|
|
@@ -9065,7 +9068,7 @@ var sT = "/api/v4/calendar", aT = "/api/v4/tickets/calendar", oT = "/api/v4/auth
|
|
|
9065
9068
|
get urls() {
|
|
9066
9069
|
return d(this.#e).urls;
|
|
9067
9070
|
}
|
|
9068
|
-
get #
|
|
9071
|
+
get #i() {
|
|
9069
9072
|
return { params: {
|
|
9070
9073
|
query: { locale: this.locale },
|
|
9071
9074
|
header: { "X-Shop-Url": this.shopDomain }
|
|
@@ -9090,22 +9093,22 @@ var sT = "/api/v4/calendar", aT = "/api/v4/tickets/calendar", oT = "/api/v4/auth
|
|
|
9090
9093
|
});
|
|
9091
9094
|
}
|
|
9092
9095
|
async apiUpload(e, t) {
|
|
9093
|
-
this.#
|
|
9096
|
+
this.#a();
|
|
9094
9097
|
const { body: r, params: n = {} } = t;
|
|
9095
9098
|
return await this.client.POST(e, {
|
|
9096
9099
|
body: r,
|
|
9097
|
-
params: qt(this.#
|
|
9100
|
+
params: qt(this.#i, { params: n }).params,
|
|
9098
9101
|
bodySerializer: (i) => i
|
|
9099
9102
|
});
|
|
9100
9103
|
}
|
|
9101
9104
|
async apiCall(e, t) {
|
|
9102
|
-
this.#
|
|
9105
|
+
this.#a();
|
|
9103
9106
|
const { body: r, params: n = {}, requiredFields: i, parseAs: s } = t, a = ZE(r, i);
|
|
9104
9107
|
if (Object.keys(a).length > 0) return { error: { errors: a } };
|
|
9105
9108
|
const o = this.client[t.method];
|
|
9106
9109
|
return await o(e, {
|
|
9107
9110
|
body: r,
|
|
9108
|
-
params: qt(this.#
|
|
9111
|
+
params: qt(this.#i, { params: n }).params,
|
|
9109
9112
|
parseAs: s
|
|
9110
9113
|
});
|
|
9111
9114
|
}
|
|
@@ -9116,13 +9119,13 @@ var sT = "/api/v4/calendar", aT = "/api/v4/tickets/calendar", oT = "/api/v4/auth
|
|
|
9116
9119
|
for (; Object.values(this.#t).filter((t) => t.status === "fetching").length; ) await H_(10);
|
|
9117
9120
|
}
|
|
9118
9121
|
async apiGet(e, t = {}, r) {
|
|
9119
|
-
this.#
|
|
9120
|
-
const n = e
|
|
9122
|
+
this.#a();
|
|
9123
|
+
const n = this.#n(e, t, r);
|
|
9121
9124
|
this.#t[n] = {
|
|
9122
9125
|
status: "fetching",
|
|
9123
9126
|
fetchedAt: Date.now()
|
|
9124
9127
|
};
|
|
9125
|
-
let i = this.#
|
|
9128
|
+
let i = this.#i;
|
|
9126
9129
|
t && (i = qt(i, { params: { query: t } })), e && (i = qt(i, { params: { path: r } }));
|
|
9127
9130
|
const s = await this.client.GET(e, i);
|
|
9128
9131
|
return this.#t[n] = {
|
|
@@ -9130,13 +9133,13 @@ var sT = "/api/v4/calendar", aT = "/api/v4/tickets/calendar", oT = "/api/v4/auth
|
|
|
9130
9133
|
fetchedAt: Date.now()
|
|
9131
9134
|
}, s.data || s;
|
|
9132
9135
|
}
|
|
9133
|
-
#
|
|
9134
|
-
#
|
|
9136
|
+
#s = () => this.apiUrl !== void 0 && this.shopDomain !== void 0 && this.locale !== void 0 && this.client !== void 0;
|
|
9137
|
+
#a = () => {
|
|
9135
9138
|
if (this.apiUrl === void 0) throw new Error("Public API URL is not set");
|
|
9136
9139
|
if (this.shopDomain === void 0) throw new Error("Shop Domain (X-Shop-Url) is not set");
|
|
9137
9140
|
if (this.locale === void 0) throw new Error("Locale is not set");
|
|
9138
9141
|
if (this.client === void 0) throw new Error("client is not set");
|
|
9139
|
-
if (!this.#
|
|
9142
|
+
if (!this.#s()) throw new Error("Fetch is not possible.");
|
|
9140
9143
|
};
|
|
9141
9144
|
}, S = new gT();
|
|
9142
9145
|
function Gi(e) {
|
|
@@ -13321,9 +13324,9 @@ var yC = class {
|
|
|
13321
13324
|
#r;
|
|
13322
13325
|
#n;
|
|
13323
13326
|
#i;
|
|
13324
|
-
#s = /* @__PURE__ */ D(() => (d(this.#
|
|
13325
|
-
#
|
|
13326
|
-
#
|
|
13327
|
+
#s = /* @__PURE__ */ D(() => (d(this.#o)?.(), this.getSize().width));
|
|
13328
|
+
#a = /* @__PURE__ */ D(() => (d(this.#o)?.(), this.getSize().height));
|
|
13329
|
+
#o = /* @__PURE__ */ D(() => {
|
|
13327
13330
|
const e = Wf(this.#n);
|
|
13328
13331
|
if (e)
|
|
13329
13332
|
return Vu((t) => {
|
|
@@ -13365,13 +13368,13 @@ var yC = class {
|
|
|
13365
13368
|
return this.#t ? this.#e : this.calculateSize() ?? this.#e;
|
|
13366
13369
|
}
|
|
13367
13370
|
get current() {
|
|
13368
|
-
return d(this.#
|
|
13371
|
+
return d(this.#o)?.(), this.getSize();
|
|
13369
13372
|
}
|
|
13370
13373
|
get width() {
|
|
13371
13374
|
return d(this.#s);
|
|
13372
13375
|
}
|
|
13373
13376
|
get height() {
|
|
13374
|
-
return d(this.#
|
|
13377
|
+
return d(this.#a);
|
|
13375
13378
|
}
|
|
13376
13379
|
};
|
|
13377
13380
|
function bC(e, t) {
|
|
@@ -13680,22 +13683,22 @@ var LC = class {
|
|
|
13680
13683
|
#n = /* @__PURE__ */ ae(!1);
|
|
13681
13684
|
#i = /* @__PURE__ */ ae(void 0);
|
|
13682
13685
|
#s = !1;
|
|
13683
|
-
#
|
|
13686
|
+
#a = null;
|
|
13684
13687
|
constructor(e) {
|
|
13685
13688
|
this.#e = e, F(this.#n, e.open.current, !0), this.#t = e.enabled ?? !0, this.#r = new LC({
|
|
13686
13689
|
ref: this.#e.ref,
|
|
13687
13690
|
afterTick: this.#e.open
|
|
13688
|
-
}), hi(() => this.#
|
|
13691
|
+
}), hi(() => this.#o()), st(() => this.#e.open.current, (t) => {
|
|
13689
13692
|
if (!this.#s) {
|
|
13690
13693
|
this.#s = !0;
|
|
13691
13694
|
return;
|
|
13692
13695
|
}
|
|
13693
|
-
if (this.#
|
|
13696
|
+
if (this.#o(), !t && this.#e.shouldSkipExitAnimation?.()) {
|
|
13694
13697
|
F(this.#n, !1), F(this.#i, void 0), this.#e.onComplete?.();
|
|
13695
13698
|
return;
|
|
13696
13699
|
}
|
|
13697
|
-
if (t && F(this.#n, !0), F(this.#i, t ? "starting" : "ending", !0), t && (this.#
|
|
13698
|
-
this.#
|
|
13700
|
+
if (t && F(this.#n, !0), F(this.#i, t ? "starting" : "ending", !0), t && (this.#a = window.requestAnimationFrame(() => {
|
|
13701
|
+
this.#a = null, this.#e.open.current && F(this.#i, void 0);
|
|
13699
13702
|
})), !this.#t) {
|
|
13700
13703
|
t || F(this.#n, !1), F(this.#i, void 0), this.#e.onComplete?.();
|
|
13701
13704
|
return;
|
|
@@ -13711,8 +13714,8 @@ var LC = class {
|
|
|
13711
13714
|
get transitionStatus() {
|
|
13712
13715
|
return d(this.#i);
|
|
13713
13716
|
}
|
|
13714
|
-
#
|
|
13715
|
-
this.#
|
|
13717
|
+
#o() {
|
|
13718
|
+
this.#a !== null && (window.cancelAnimationFrame(this.#a), this.#a = null);
|
|
13716
13719
|
}
|
|
13717
13720
|
};
|
|
13718
13721
|
function Te() {
|
|
@@ -14030,10 +14033,10 @@ var fO = class Kv {
|
|
|
14030
14033
|
#n = !1;
|
|
14031
14034
|
#i = !1;
|
|
14032
14035
|
#s = void 0;
|
|
14033
|
-
#
|
|
14034
|
-
#
|
|
14036
|
+
#a;
|
|
14037
|
+
#o = Te;
|
|
14035
14038
|
constructor(t) {
|
|
14036
|
-
this.opts = t, this.#t = t.interactOutsideBehavior, this.#e = t.onInteractOutside, this.#
|
|
14039
|
+
this.opts = t, this.#t = t.interactOutsideBehavior, this.#e = t.onInteractOutside, this.#a = t.onFocusOutside, ve(() => {
|
|
14037
14040
|
this.#s = Uv(this.opts.ref.current);
|
|
14038
14041
|
});
|
|
14039
14042
|
let r = Te;
|
|
@@ -14046,12 +14049,12 @@ var fO = class Kv {
|
|
|
14046
14049
|
this.opts.ref.current && (globalThis.bitsDismissableLayers.set(this, this.#t), r(), r = this.#u());
|
|
14047
14050
|
}), n;
|
|
14048
14051
|
}), hi(() => {
|
|
14049
|
-
this.#v.destroy(), globalThis.bitsDismissableLayers.delete(this), this.#d.destroy(), this.#
|
|
14052
|
+
this.#v.destroy(), globalThis.bitsDismissableLayers.delete(this), this.#d.destroy(), this.#o(), r();
|
|
14050
14053
|
});
|
|
14051
14054
|
}
|
|
14052
14055
|
#l = (t) => {
|
|
14053
14056
|
t.defaultPrevented || this.opts.ref.current && Rs(() => {
|
|
14054
|
-
!this.opts.ref.current || this.#m(t.target) || t.target && !this.#i && this.#
|
|
14057
|
+
!this.opts.ref.current || this.#m(t.target) || t.target && !this.#i && this.#a.current?.(t);
|
|
14055
14058
|
});
|
|
14056
14059
|
};
|
|
14057
14060
|
#u() {
|
|
@@ -14063,20 +14066,20 @@ var fO = class Kv {
|
|
|
14063
14066
|
};
|
|
14064
14067
|
#d = Kf((t) => {
|
|
14065
14068
|
if (!this.opts.ref.current) {
|
|
14066
|
-
this.#
|
|
14069
|
+
this.#o();
|
|
14067
14070
|
return;
|
|
14068
14071
|
}
|
|
14069
14072
|
const r = this.opts.isValidEvent.current(t, this.opts.ref.current) || mO(t, this.opts.ref.current);
|
|
14070
14073
|
if (!this.#n || this.#y() || !r) {
|
|
14071
|
-
this.#
|
|
14074
|
+
this.#o();
|
|
14072
14075
|
return;
|
|
14073
14076
|
}
|
|
14074
14077
|
let n = t;
|
|
14075
14078
|
if (n.defaultPrevented && (n = Jf(n)), this.#t.current !== "close" && this.#t.current !== "defer-otherwise-close") {
|
|
14076
|
-
this.#
|
|
14079
|
+
this.#o();
|
|
14077
14080
|
return;
|
|
14078
14081
|
}
|
|
14079
|
-
t.pointerType === "touch" ? (this.#
|
|
14082
|
+
t.pointerType === "touch" ? (this.#o(), this.#o = bt(this.#s, "click", this.#c, { once: !0 })) : this.#e.current(n);
|
|
14080
14083
|
}, 10);
|
|
14081
14084
|
#h = (t) => {
|
|
14082
14085
|
this.#r[t.type] = !0;
|
|
@@ -14346,12 +14349,12 @@ var yO = class Xv {
|
|
|
14346
14349
|
this.#n = [];
|
|
14347
14350
|
}
|
|
14348
14351
|
mount(t) {
|
|
14349
|
-
this.#t && this.unmount(), this.#t = t, this.#r.register(this), this.#l(), this.#
|
|
14352
|
+
this.#t && this.unmount(), this.#t = t, this.#r.register(this), this.#l(), this.#a();
|
|
14350
14353
|
}
|
|
14351
14354
|
unmount() {
|
|
14352
|
-
this.#t && (this.#s(), this.#
|
|
14355
|
+
this.#t && (this.#s(), this.#o(), this.#r.unregister(this), this.#r.clearPreFocusMemory(this), this.#t = null);
|
|
14353
14356
|
}
|
|
14354
|
-
#
|
|
14357
|
+
#a() {
|
|
14355
14358
|
if (!this.#t) return;
|
|
14356
14359
|
const t = new CustomEvent("focusScope.onOpenAutoFocus", {
|
|
14357
14360
|
bubbles: !1,
|
|
@@ -14363,7 +14366,7 @@ var yO = class Xv {
|
|
|
14363
14366
|
r ? (r.focus(), this.#r.setFocusMemory(this, r)) : this.#t.focus();
|
|
14364
14367
|
});
|
|
14365
14368
|
}
|
|
14366
|
-
#
|
|
14369
|
+
#o() {
|
|
14367
14370
|
const t = new CustomEvent("focusScope.onCloseAutoFocus", {
|
|
14368
14371
|
bubbles: !1,
|
|
14369
14372
|
cancelable: !0
|
|
@@ -14526,20 +14529,20 @@ var _O = class rg {
|
|
|
14526
14529
|
this.opts.onPointerDown.current,
|
|
14527
14530
|
this.opts.onPointerUp.current
|
|
14528
14531
|
], ([n, i, s]) => (this.#t = n, this.#r = i, this.#n = s, n && (globalThis.bitsTextSelectionLayers.set(this, this.opts.enabled), r(), r = this.#i()), () => {
|
|
14529
|
-
this.#t = !1, r(), this.#
|
|
14532
|
+
this.#t = !1, r(), this.#o(), globalThis.bitsTextSelectionLayers.delete(this);
|
|
14530
14533
|
}));
|
|
14531
14534
|
}
|
|
14532
14535
|
#i() {
|
|
14533
|
-
return Os(bt(this.domContext.getDocument(), "pointerdown", this.#
|
|
14536
|
+
return Os(bt(this.domContext.getDocument(), "pointerdown", this.#a), bt(this.domContext.getDocument(), "pointerup", xv(this.#o, this.#s)));
|
|
14534
14537
|
}
|
|
14535
14538
|
#s = (t) => {
|
|
14536
14539
|
this.#n(t);
|
|
14537
14540
|
};
|
|
14538
|
-
#
|
|
14541
|
+
#a = (t) => {
|
|
14539
14542
|
const r = this.opts.ref.current, n = t.target;
|
|
14540
14543
|
!Cr(r) || !Cr(n) || !this.#t || !kO(this) || !OC(r, n) || (this.#r(t), !t.defaultPrevented && (this.#e = wO(r, this.domContext.getDocument().body)));
|
|
14541
14544
|
};
|
|
14542
|
-
#
|
|
14545
|
+
#o = () => {
|
|
14543
14546
|
this.#e(), this.#e = Te;
|
|
14544
14547
|
};
|
|
14545
14548
|
}, Xf = (e) => e.style.userSelect || e.style.webkitUserSelect;
|
|
@@ -15957,7 +15960,7 @@ var $r = new Rt("Calendar.Root | RangeCalender.Root"), mg = class vg {
|
|
|
15957
15960
|
locale: this.opts.locale.current,
|
|
15958
15961
|
fixedWeeks: this.opts.fixedWeeks.current,
|
|
15959
15962
|
numberOfMonths: this.opts.numberOfMonths.current
|
|
15960
|
-
}), this.#s(), this.#
|
|
15963
|
+
}), this.#s(), this.#a(), this.#o(), cD({
|
|
15961
15964
|
placeholder: this.opts.placeholder,
|
|
15962
15965
|
getVisibleMonths: () => this.visibleMonths,
|
|
15963
15966
|
weekStartsOn: this.opts.weekStartsOn,
|
|
@@ -16030,7 +16033,7 @@ var $r = new Rt("Calendar.Root | RangeCalender.Root"), mg = class vg {
|
|
|
16030
16033
|
}
|
|
16031
16034
|
});
|
|
16032
16035
|
}
|
|
16033
|
-
#
|
|
16036
|
+
#a() {
|
|
16034
16037
|
ve(() => {
|
|
16035
16038
|
if (this.opts.ref.current)
|
|
16036
16039
|
return uD({
|
|
@@ -16040,7 +16043,7 @@ var $r = new Rt("Calendar.Root | RangeCalender.Root"), mg = class vg {
|
|
|
16040
16043
|
});
|
|
16041
16044
|
});
|
|
16042
16045
|
}
|
|
16043
|
-
#
|
|
16046
|
+
#o() {
|
|
16044
16047
|
Gu(() => {
|
|
16045
16048
|
this.formatter.getLocale() !== this.opts.locale.current && this.formatter.setLocale(this.opts.locale.current);
|
|
16046
16049
|
});
|
|
@@ -16318,19 +16321,19 @@ var $r = new Rt("Calendar.Root | RangeCalender.Root"), mg = class vg {
|
|
|
16318
16321
|
set isDisabled(t) {
|
|
16319
16322
|
F(this.#s, t);
|
|
16320
16323
|
}
|
|
16321
|
-
#
|
|
16324
|
+
#a = /* @__PURE__ */ D(() => Tn(this.opts.date.current, this.root.opts.placeholder.current));
|
|
16322
16325
|
get isFocusedDate() {
|
|
16323
|
-
return d(this.#
|
|
16326
|
+
return d(this.#a);
|
|
16324
16327
|
}
|
|
16325
16328
|
set isFocusedDate(t) {
|
|
16326
|
-
F(this.#
|
|
16329
|
+
F(this.#a, t);
|
|
16327
16330
|
}
|
|
16328
|
-
#
|
|
16331
|
+
#o = /* @__PURE__ */ D(() => this.root.isDateSelected(this.opts.date.current));
|
|
16329
16332
|
get isSelectedDate() {
|
|
16330
|
-
return d(this.#
|
|
16333
|
+
return d(this.#o);
|
|
16331
16334
|
}
|
|
16332
16335
|
set isSelectedDate(t) {
|
|
16333
|
-
F(this.#
|
|
16336
|
+
F(this.#o, t);
|
|
16334
16337
|
}
|
|
16335
16338
|
#l = /* @__PURE__ */ D(() => this.root.formatter.custom(this.cellDate, {
|
|
16336
16339
|
weekday: "long",
|
|
@@ -18854,17 +18857,17 @@ var XI = {
|
|
|
18854
18857
|
#n = /* @__PURE__ */ D(() => this.#r?.width ?? 0);
|
|
18855
18858
|
#i = /* @__PURE__ */ D(() => this.#r?.height ?? 0);
|
|
18856
18859
|
#s = /* @__PURE__ */ D(() => this.opts.side?.current + (this.opts.align.current !== "center" ? `-${this.opts.align.current}` : ""));
|
|
18857
|
-
#
|
|
18858
|
-
#
|
|
18860
|
+
#a = /* @__PURE__ */ D(() => Array.isArray(this.opts.collisionBoundary.current) ? this.opts.collisionBoundary.current : [this.opts.collisionBoundary.current]);
|
|
18861
|
+
#o = /* @__PURE__ */ D(() => d(this.#a).length > 0);
|
|
18859
18862
|
get hasExplicitBoundaries() {
|
|
18860
|
-
return d(this.#
|
|
18863
|
+
return d(this.#o);
|
|
18861
18864
|
}
|
|
18862
18865
|
set hasExplicitBoundaries(t) {
|
|
18863
|
-
F(this.#
|
|
18866
|
+
F(this.#o, t);
|
|
18864
18867
|
}
|
|
18865
18868
|
#l = /* @__PURE__ */ D(() => ({
|
|
18866
18869
|
padding: this.opts.collisionPadding.current,
|
|
18867
|
-
boundary: d(this.#
|
|
18870
|
+
boundary: d(this.#a).filter(RC),
|
|
18868
18871
|
altBoundary: this.hasExplicitBoundaries
|
|
18869
18872
|
}));
|
|
18870
18873
|
get detectOverflowOptions() {
|
|
@@ -20876,20 +20879,20 @@ var Ho = Ro({
|
|
|
20876
20879
|
F(this.#s, t, !0);
|
|
20877
20880
|
}
|
|
20878
20881
|
states = ih();
|
|
20879
|
-
#
|
|
20882
|
+
#a = /* @__PURE__ */ ae(null);
|
|
20880
20883
|
get dayPeriodNode() {
|
|
20881
|
-
return d(this.#
|
|
20884
|
+
return d(this.#a);
|
|
20882
20885
|
}
|
|
20883
20886
|
set dayPeriodNode(t) {
|
|
20884
|
-
F(this.#
|
|
20887
|
+
F(this.#a, t, !0);
|
|
20885
20888
|
}
|
|
20886
20889
|
rangeRoot = void 0;
|
|
20887
|
-
#
|
|
20890
|
+
#o = /* @__PURE__ */ ae("");
|
|
20888
20891
|
get name() {
|
|
20889
|
-
return d(this.#
|
|
20892
|
+
return d(this.#o);
|
|
20890
20893
|
}
|
|
20891
20894
|
set name(t) {
|
|
20892
|
-
F(this.#
|
|
20895
|
+
F(this.#o, t, !0);
|
|
20893
20896
|
}
|
|
20894
20897
|
domContext = new Qi(() => null);
|
|
20895
20898
|
constructor(t, r) {
|
|
@@ -21327,11 +21330,11 @@ var Ho = Ro({
|
|
|
21327
21330
|
return;
|
|
21328
21331
|
}
|
|
21329
21332
|
if (Lo(e.key)) {
|
|
21330
|
-
this.#
|
|
21333
|
+
this.#a(e);
|
|
21331
21334
|
return;
|
|
21332
21335
|
}
|
|
21333
21336
|
if (Jc(e.key)) {
|
|
21334
|
-
this.#
|
|
21337
|
+
this.#o(e);
|
|
21335
21338
|
return;
|
|
21336
21339
|
}
|
|
21337
21340
|
ua(e.key) && la(e, this.root.getFieldNode());
|
|
@@ -21359,7 +21362,7 @@ var Ho = Ro({
|
|
|
21359
21362
|
return this.announcer.announce(this.#r(n)), this.#n(n);
|
|
21360
21363
|
});
|
|
21361
21364
|
}
|
|
21362
|
-
#
|
|
21365
|
+
#a(e) {
|
|
21363
21366
|
const t = Number.parseInt(e.key);
|
|
21364
21367
|
let r = !1;
|
|
21365
21368
|
const n = this.#e(), i = Math.floor(n / 10), s = t === 0, a = this.part;
|
|
@@ -21372,7 +21375,7 @@ var Ho = Ro({
|
|
|
21372
21375
|
return l > n ? (r = !0, `0${t}`) : (r = !0, `${l}`);
|
|
21373
21376
|
}), r && fg(e, this.root.getFieldNode());
|
|
21374
21377
|
}
|
|
21375
|
-
#
|
|
21378
|
+
#o(e) {
|
|
21376
21379
|
const t = this.part;
|
|
21377
21380
|
t in this.root.states && (this.root.states[t].hasLeftFocus = !1);
|
|
21378
21381
|
let r = !1;
|
|
@@ -21912,15 +21915,15 @@ var $P = class {
|
|
|
21912
21915
|
#n = null;
|
|
21913
21916
|
#i = null;
|
|
21914
21917
|
#s = [];
|
|
21915
|
-
#o = null;
|
|
21916
21918
|
#a = null;
|
|
21919
|
+
#o = null;
|
|
21917
21920
|
#l = null;
|
|
21918
21921
|
#u() {
|
|
21919
|
-
this.#
|
|
21922
|
+
this.#o !== null && (cancelAnimationFrame(this.#o), this.#o = null);
|
|
21920
21923
|
}
|
|
21921
21924
|
#c() {
|
|
21922
|
-
this.#u(), this.#
|
|
21923
|
-
this.#
|
|
21925
|
+
this.#u(), this.#o = requestAnimationFrame(() => {
|
|
21926
|
+
this.#o = null, !(!this.#n || !this.#i) && (this.#f(), this.#e.onPointerExit());
|
|
21924
21927
|
});
|
|
21925
21928
|
}
|
|
21926
21929
|
#d() {
|
|
@@ -21940,10 +21943,10 @@ var $P = class {
|
|
|
21940
21943
|
e.enabled
|
|
21941
21944
|
], ([r, n, i]) => {
|
|
21942
21945
|
if (!r || !n || !i) {
|
|
21943
|
-
this.#
|
|
21946
|
+
this.#a = null, this.#f();
|
|
21944
21947
|
return;
|
|
21945
21948
|
}
|
|
21946
|
-
this.#
|
|
21949
|
+
this.#a && this.#a !== r && this.#f(), this.#a = r;
|
|
21947
21950
|
const s = No(r), a = (u) => {
|
|
21948
21951
|
this.#p([u.clientX, u.clientY], r, n);
|
|
21949
21952
|
}, o = (u) => {
|
|
@@ -22141,14 +22144,14 @@ var $P = class {
|
|
|
22141
22144
|
set hoverCooldown(t) {
|
|
22142
22145
|
F(this.#s, t, !0);
|
|
22143
22146
|
}
|
|
22144
|
-
#
|
|
22147
|
+
#a = /* @__PURE__ */ ae(0);
|
|
22145
22148
|
get closeDelay() {
|
|
22146
|
-
return d(this.#
|
|
22149
|
+
return d(this.#a);
|
|
22147
22150
|
}
|
|
22148
22151
|
set closeDelay(t) {
|
|
22149
|
-
F(this.#
|
|
22152
|
+
F(this.#a, t, !0);
|
|
22150
22153
|
}
|
|
22151
|
-
#
|
|
22154
|
+
#o = null;
|
|
22152
22155
|
#l = null;
|
|
22153
22156
|
constructor(t) {
|
|
22154
22157
|
this.opts = t, this.contentPresence = new Gf({
|
|
@@ -22168,7 +22171,7 @@ var $P = class {
|
|
|
22168
22171
|
this.#l = t;
|
|
22169
22172
|
}
|
|
22170
22173
|
#u() {
|
|
22171
|
-
this.#
|
|
22174
|
+
this.#o !== null && this.#l && (this.#l.clearTimeout(this.#o), this.#o = null);
|
|
22172
22175
|
}
|
|
22173
22176
|
toggleOpen() {
|
|
22174
22177
|
this.#u(), this.opts.open.current = !this.opts.open.current;
|
|
@@ -22183,8 +22186,8 @@ var $P = class {
|
|
|
22183
22186
|
this.opts.open.current && this.openedViaHover && !this.hasInteractedWithContent && (this.opts.open.current = !1);
|
|
22184
22187
|
}
|
|
22185
22188
|
handleDelayedHoverClose() {
|
|
22186
|
-
this.opts.open.current && (!this.openedViaHover || this.hasInteractedWithContent || (this.#u(), this.closeDelay <= 0 ? this.opts.open.current = !1 : this.#l && (this.#
|
|
22187
|
-
this.openedViaHover && !this.hasInteractedWithContent && (this.opts.open.current = !1), this.#
|
|
22189
|
+
this.opts.open.current && (!this.openedViaHover || this.hasInteractedWithContent || (this.#u(), this.closeDelay <= 0 ? this.opts.open.current = !1 : this.#l && (this.#o = this.#l.setTimeout(() => {
|
|
22190
|
+
this.openedViaHover && !this.hasInteractedWithContent && (this.opts.open.current = !1), this.#o = null;
|
|
22188
22191
|
}, this.closeDelay))));
|
|
22189
22192
|
}
|
|
22190
22193
|
cancelDelayedClose() {
|
|
@@ -22240,15 +22243,15 @@ var $P = class {
|
|
|
22240
22243
|
onkeydown(t) {
|
|
22241
22244
|
this.opts.disabled.current || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), this.#s(), this.root.toggleOpen());
|
|
22242
22245
|
}
|
|
22243
|
-
#
|
|
22246
|
+
#a() {
|
|
22244
22247
|
if (this.root.opts.open.current && this.root.contentNode?.id) return this.root.contentNode?.id;
|
|
22245
22248
|
}
|
|
22246
|
-
#
|
|
22249
|
+
#o = /* @__PURE__ */ D(() => ({
|
|
22247
22250
|
id: this.opts.id.current,
|
|
22248
22251
|
"aria-haspopup": "dialog",
|
|
22249
22252
|
"aria-expanded": Dr(this.root.opts.open.current),
|
|
22250
22253
|
"data-state": Fv(this.root.opts.open.current),
|
|
22251
|
-
"aria-controls": this.#
|
|
22254
|
+
"aria-controls": this.#a(),
|
|
22252
22255
|
[Mu.trigger]: "",
|
|
22253
22256
|
disabled: this.opts.disabled.current,
|
|
22254
22257
|
onkeydown: this.onkeydown,
|
|
@@ -22258,10 +22261,10 @@ var $P = class {
|
|
|
22258
22261
|
...this.attachment
|
|
22259
22262
|
}));
|
|
22260
22263
|
get props() {
|
|
22261
|
-
return d(this.#
|
|
22264
|
+
return d(this.#o);
|
|
22262
22265
|
}
|
|
22263
22266
|
set props(t) {
|
|
22264
|
-
F(this.#
|
|
22267
|
+
F(this.#o, t);
|
|
22265
22268
|
}
|
|
22266
22269
|
}, RP = class cy {
|
|
22267
22270
|
static create(t) {
|
|
@@ -25568,19 +25571,19 @@ var Rh = Ey, Z$ = 0, W$ = class {
|
|
|
25568
25571
|
set ticketGroupIds(e) {
|
|
25569
25572
|
F(this.#s, e, !0);
|
|
25570
25573
|
}
|
|
25571
|
-
#
|
|
25574
|
+
#a = /* @__PURE__ */ ae();
|
|
25572
25575
|
get selectedDate() {
|
|
25573
|
-
return d(this.#
|
|
25576
|
+
return d(this.#a);
|
|
25574
25577
|
}
|
|
25575
25578
|
set selectedDate(e) {
|
|
25576
|
-
F(this.#
|
|
25579
|
+
F(this.#a, e, !0);
|
|
25577
25580
|
}
|
|
25578
|
-
#
|
|
25581
|
+
#o = /* @__PURE__ */ ae();
|
|
25579
25582
|
get selectedTimeslot() {
|
|
25580
|
-
return d(this.#
|
|
25583
|
+
return d(this.#o);
|
|
25581
25584
|
}
|
|
25582
25585
|
set selectedTimeslot(e) {
|
|
25583
|
-
F(this.#
|
|
25586
|
+
F(this.#o, e, !0);
|
|
25584
25587
|
}
|
|
25585
25588
|
timeslotTicketIds = [];
|
|
25586
25589
|
#l = /* @__PURE__ */ D(() => this.selectedTimeslot);
|
|
@@ -26468,19 +26471,19 @@ var M2 = class {
|
|
|
26468
26471
|
set query(e) {
|
|
26469
26472
|
F(this.#s, e, !0);
|
|
26470
26473
|
}
|
|
26471
|
-
#
|
|
26474
|
+
#a = /* @__PURE__ */ ae(Fe([]));
|
|
26472
26475
|
get ticketGroupIds() {
|
|
26473
|
-
return d(this.#
|
|
26476
|
+
return d(this.#a);
|
|
26474
26477
|
}
|
|
26475
26478
|
set ticketGroupIds(e) {
|
|
26476
|
-
F(this.#
|
|
26479
|
+
F(this.#a, e, !0);
|
|
26477
26480
|
}
|
|
26478
|
-
#
|
|
26481
|
+
#o = /* @__PURE__ */ ae(Fe([]));
|
|
26479
26482
|
get languageIds() {
|
|
26480
|
-
return d(this.#
|
|
26483
|
+
return d(this.#o);
|
|
26481
26484
|
}
|
|
26482
26485
|
set languageIds(e) {
|
|
26483
|
-
F(this.#
|
|
26486
|
+
F(this.#o, e, !0);
|
|
26484
26487
|
}
|
|
26485
26488
|
#l = /* @__PURE__ */ ae(Fe([]));
|
|
26486
26489
|
get catchWordIds() {
|
|
@@ -26994,9 +26997,9 @@ var J2 = class {
|
|
|
26994
26997
|
try {
|
|
26995
26998
|
n = r(e.toString(), t);
|
|
26996
26999
|
} catch (i) {
|
|
26997
|
-
return this.#
|
|
27000
|
+
return this.#a("threw", `[go-calendar] the availability-override callback threw (${String(i)}) — using the gomus default instead.`), t;
|
|
26998
27001
|
}
|
|
26999
|
-
return n === "pass_through" ? t : n === "available" || n === "sold_out" || n === "unavailable" ? n : (this.#
|
|
27002
|
+
return n === "pass_through" ? t : n === "available" || n === "sold_out" || n === "unavailable" ? n : (this.#a("returned", `[go-calendar] the availability-override callback must return 'available', 'sold_out', 'unavailable' or 'pass_through', got ${Y2(n)} — using the gomus default instead.`), t);
|
|
27000
27003
|
}
|
|
27001
27004
|
#s() {
|
|
27002
27005
|
const e = this.availabilityOverride;
|
|
@@ -27004,9 +27007,9 @@ var J2 = class {
|
|
|
27004
27007
|
if (!e) return;
|
|
27005
27008
|
const t = globalThis[e];
|
|
27006
27009
|
if (typeof t == "function") return t;
|
|
27007
|
-
this.#
|
|
27010
|
+
this.#a(`unresolved:${e}`, `[go-calendar] availability-override="${e}" does not resolve to a function on window — using the gomus defaults.`, console.warn);
|
|
27008
27011
|
}
|
|
27009
|
-
#
|
|
27012
|
+
#a(e, t, r = console.error) {
|
|
27010
27013
|
this.#i.includes(e) || (this.#i.push(e), r(t));
|
|
27011
27014
|
}
|
|
27012
27015
|
isDateDisabled(e) {
|
|
@@ -27041,14 +27044,14 @@ var J2 = class {
|
|
|
27041
27044
|
e.add({ months: 2 })
|
|
27042
27045
|
];
|
|
27043
27046
|
}
|
|
27044
|
-
#
|
|
27047
|
+
#o(e) {
|
|
27045
27048
|
return this.fetchPeriod().reduce((t, r) => Object.assign(t, e(this.params(r))), {});
|
|
27046
27049
|
}
|
|
27047
27050
|
eventsDates() {
|
|
27048
|
-
return this.#
|
|
27051
|
+
return this.#o((e) => S.calendar(e));
|
|
27049
27052
|
}
|
|
27050
27053
|
ticketsDates() {
|
|
27051
|
-
return this.#
|
|
27054
|
+
return this.#o((e) => S.ticketsCalendar(e));
|
|
27052
27055
|
}
|
|
27053
27056
|
}, Q2 = /* @__PURE__ */ B("<!> <!> <!>", 1), X2 = /* @__PURE__ */ B("<div> </div>"), zh = /* @__PURE__ */ B("<!> <!>", 1), eF = /* @__PURE__ */ B('<div data-calendar-wrapper=""><!></div>');
|
|
27054
27057
|
function $y(e, t) {
|