@getmicdrop/venue-calendar 4.3.89 → 4.3.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AddOnCard-DE7n3M55.js → AddOnCard-CoZxA8Ss.js} +5 -5
- package/dist/{ArrowLeftIcon-mPndGf2i.js → ArrowLeftIcon-C_zVqV6t.js} +1 -1
- package/dist/{BlockPlaceholder-Bd0FtKM0.js → BlockPlaceholder-DzMU967I.js} +1 -1
- package/dist/{Calendar-C2IdyAee.js → Calendar-DBqHBPI4.js} +83 -83
- package/dist/{CalendarFoundryView-4mP6Q1yu.js → CalendarFoundryView-oPu-JKfY.js} +19 -19
- package/dist/{CalendarIcon-D6WqjCYL.js → CalendarIcon-BVyCicqG.js} +1 -1
- package/dist/{CartView-HnzwpZpj.js → CartView-Dzje7N6m.js} +13 -13
- package/dist/ChartBlock-B-etyhMZ.js +1201 -0
- package/dist/{Checkout-DZzfDZDV.js → Checkout-BKEQIOYJ.js} +14 -14
- package/dist/{Checkout-BmMxbZAb.js → Checkout-D1De_3qe.js} +13 -13
- package/dist/{CheckoutTimer-vciCZWq_.js → CheckoutTimer-B_bbKzpt.js} +2 -2
- package/dist/{ChevronDownIcon-BovxvSuE.js → ChevronDownIcon-CqKYBZhG.js} +1 -1
- package/dist/{CloseIcon-8mVdF9wm.js → CloseIcon-BhTQvxHn.js} +1 -1
- package/dist/{CollectionView-Cr6-KKI4.js → CollectionView-KQcIi7Ov.js} +5 -5
- package/dist/{Event-DeLWZyt3.js → Event-uaQkHUne.js} +15 -15
- package/dist/{EventPage-C5K_poA7.js → EventPage-wvN2rQ7Z.js} +13 -13
- package/dist/{Input-D1iWb6Tc.js → Input-DpmD_9St.js} +1 -1
- package/dist/{MailIcon-CHWJob7w.js → MailIcon-BaaO5yAE.js} +1 -1
- package/dist/{PasswordInput-DM5jrgJS.js → PasswordInput-DKC0I0aj.js} +1 -1
- package/dist/{RecommendationsRail-Dvak_7Pv.js → RecommendationsRail-BUqK-9TQ.js} +7 -7
- package/dist/{ScarcityBadge-y-JRBIua.js → ScarcityBadge-BKGJzuQn.js} +4 -4
- package/dist/{SeriesPage-DS_LIPtj.js → SeriesPage-yn2TULyn.js} +2 -2
- package/dist/{Spinner-CtK2dCoy.js → Spinner-BgdjQygI.js} +1 -1
- package/dist/{Success-Cs7EB8xd.js → Success-BiuvQueK.js} +16 -16
- package/dist/{TagIcon-Bg3NfUua.js → TagIcon-78loB6Ff.js} +1 -1
- package/dist/{ViewTicketsEmbed-DfSh57AD.js → ViewTicketsEmbed-Bbtq90pG.js} +5 -5
- package/dist/{WarningCircleIcon-C9-h3il1.js → WarningCircleIcon-BlA4oF-K.js} +1 -1
- package/dist/{WarningTriIcon-BzcY28VJ.js → WarningTriIcon-B9M_X71V.js} +1 -1
- package/dist/{api-Bl5O7Efn.js → api-c7gIPjjT.js} +3 -3
- package/dist/{copyToClipboard-BFcxWjnw.js → copyToClipboard-GCd8x6uN.js} +1 -1
- package/dist/{createErrorGate.svelte-9_O_HFZ4.js → createErrorGate.svelte-ysyEfBip.js} +1 -1
- package/dist/{datetime-CcSJMn77.js → datetime-DWmAPk9U.js} +1 -1
- package/dist/{de-B2FTXRsf.js → de-CbwqVvg6.js} +3 -0
- package/dist/{defaultLabels-BEb09qq2.js → defaultLabels-CsRGNP7f.js} +3 -0
- package/dist/{defaults-C1ds6uZs.js → defaults-Z_lKbqvf.js} +2 -2
- package/dist/{es-DDoidAuR.js → es-Dxqulvec.js} +3 -0
- package/dist/{event-C8Uyb-Yp.js → event-DEEMQ-U3.js} +1 -1
- package/dist/{event-transform-CPcEyTSC.js → event-transform-DnTfI9EZ.js} +4 -4
- package/dist/{eventStatusStream-J5gOsWKl.js → eventStatusStream-BAx7uYiz.js} +1 -1
- package/dist/{fr-Avh4Haao.js → fr-0aCE52FE.js} +3 -0
- package/dist/{href-CfWBsz0C.js → href-C_j51KNN.js} +2 -2
- package/dist/i18n-BpINnLyf.js +28 -0
- package/dist/{i18n-CFNh29no.js → i18n-D7YN7gkj.js} +4 -4
- package/dist/{id-CF52W5i0.js → id-7ClY2Dwb.js} +3 -0
- package/dist/{it-C2jpczXk.js → it-z-heX6Hy.js} +3 -0
- package/dist/{ja-BA3Kv4i8.js → ja-ecBzr5l9.js} +3 -0
- package/dist/{ko-6x2WYbfh.js → ko-Blnq1Wc_.js} +3 -0
- package/dist/locales/4.3.91/main/de.js +1 -0
- package/dist/locales/4.3.91/main/es.js +1 -0
- package/dist/locales/4.3.91/main/fr.js +1 -0
- package/dist/locales/4.3.91/main/id.js +1 -0
- package/dist/locales/4.3.91/main/it.js +1 -0
- package/dist/locales/4.3.91/main/ja.js +1 -0
- package/dist/locales/4.3.91/main/ko.js +1 -0
- package/dist/locales/4.3.91/main/nl.js +1 -0
- package/dist/locales/4.3.91/main/pl.js +1 -0
- package/dist/locales/4.3.91/main/pt-br.js +1 -0
- package/dist/locales/4.3.91/main/tr.js +1 -0
- package/dist/locales/4.3.91/main/zh.js +1 -0
- package/dist/{nl-E8Dxgwf_.js → nl-Bm2Lee3j.js} +3 -0
- package/dist/{orders-BFTFmUgm.js → orders-2OEBLUMn.js} +1 -1
- package/dist/{pixels-Ce1hN7vX.js → pixels-CZRDw2lY.js} +1 -1
- package/dist/{pl-BI7XfOJs.js → pl-DIp-gYhF.js} +3 -0
- package/dist/{pt-br-4UaMdfZK.js → pt-br-BmcVsgbQ.js} +3 -0
- package/dist/{serverTotals-C55pkM5L.js → serverTotals-D57U4Nju.js} +1 -1
- package/dist/{showcase-state-options-C6umf1Qp.js → showcase-state-options-zfQoPg37.js} +1 -1
- package/dist/{to-event-card-props-BKX0DvX8.js → to-event-card-props-DfSOYeKe.js} +86 -81
- package/dist/{tr-HP2gG3H9.js → tr-BshxS2DN.js} +3 -0
- package/dist/types/index.d.ts +9 -2
- package/dist/{utils-DBdeOdit.js → utils-CttW5Ot0.js} +2 -2
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +1657 -1315
- package/dist/venue-calendar.iife.js +35 -35
- package/dist/venue-calendar.umd.js +51 -51
- package/dist/{zh-Dos3IOOq.js → zh-B06ZsUNX.js} +3 -0
- package/package.json +2 -2
- package/dist/ChartBlock-igVSMoUP.js +0 -1190
- package/dist/i18n-D82In8Fj.js +0 -28
- package/dist/locales/4.3.89/main/de.js +0 -1
- package/dist/locales/4.3.89/main/es.js +0 -1
- package/dist/locales/4.3.89/main/fr.js +0 -1
- package/dist/locales/4.3.89/main/id.js +0 -1
- package/dist/locales/4.3.89/main/it.js +0 -1
- package/dist/locales/4.3.89/main/ja.js +0 -1
- package/dist/locales/4.3.89/main/ko.js +0 -1
- package/dist/locales/4.3.89/main/nl.js +0 -1
- package/dist/locales/4.3.89/main/pl.js +0 -1
- package/dist/locales/4.3.89/main/pt-br.js +0 -1
- package/dist/locales/4.3.89/main/tr.js +0 -1
- package/dist/locales/4.3.89/main/zh.js +0 -1
- /package/dist/locales/{4.3.89 → 4.3.91}/flow/de.js +0 -0
- /package/dist/locales/{4.3.89 → 4.3.91}/flow/es.js +0 -0
- /package/dist/locales/{4.3.89 → 4.3.91}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.89 → 4.3.91}/flow/id.js +0 -0
- /package/dist/locales/{4.3.89 → 4.3.91}/flow/it.js +0 -0
- /package/dist/locales/{4.3.89 → 4.3.91}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.89 → 4.3.91}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.89 → 4.3.91}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.89 → 4.3.91}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.89 → 4.3.91}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.89 → 4.3.91}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.89 → 4.3.91}/flow/zh.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { f as e, p as t } from "./sizing-B7ixYndz.js";
|
|
2
|
-
import { g as n, n as r, o as i, r as a, t as o } from "./datetime-
|
|
3
|
-
import { V as s, g as c, i as l, t as u, x as d, y as f } from "./defaultLabels-
|
|
2
|
+
import { g as n, n as r, o as i, r as a, t as o } from "./datetime-DWmAPk9U.js";
|
|
3
|
+
import { V as s, g as c, i as l, t as u, x as d, y as f } from "./defaultLabels-CsRGNP7f.js";
|
|
4
4
|
import { r as p, t as m } from "./Button-VUB2WJ88.js";
|
|
5
5
|
import "svelte/internal/disclose-version";
|
|
6
6
|
import * as h from "svelte/internal/client";
|
|
@@ -23,22 +23,22 @@ var g = {
|
|
|
23
23
|
pillSize: "sm"
|
|
24
24
|
}
|
|
25
25
|
}, _ = 0;
|
|
26
|
-
function
|
|
26
|
+
function ee() {
|
|
27
27
|
return _ += 1;
|
|
28
28
|
}
|
|
29
|
-
var
|
|
30
|
-
function
|
|
29
|
+
var v = h.from_html("<div class=\"event-card__poster-fallback svelte-18ndok6\" aria-hidden=\"true\"><span> </span></div>"), y = h.from_html("<div><!></div>"), b = h.from_html("<span class=\"event-card__badge svelte-18ndok6\"><!></span>"), x = h.from_html("<span> </span>"), S = h.from_html("<span class=\"event-card__meta-sep svelte-18ndok6\" aria-hidden=\"true\">·</span>"), C = h.from_html("<!> <span class=\"event-card__meta-item svelte-18ndok6\"> </span>", 1), w = h.from_html("<p class=\"event-card__meta tone-secondary m-0 svelte-18ndok6\"></p>"), T = h.from_html("<div class=\"event-card__pills flex flex-wrap gap-2 relative svelte-18ndok6\"></div>"), E = h.from_html("<p class=\"event-card__description type-body tone-secondary m-0 svelte-18ndok6\"> </p>"), te = h.from_html("<article class=\"event-card relative rounded-lg border bg-card border-border overflow-hidden svelte-18ndok6\"><!> <div class=\"event-card__content flex flex-col flex-1 min-w-0 svelte-18ndok6\"><header class=\"event-card__header\"><h3><span class=\"event-card__title-text\"><!> <a class=\"event-card__title-link svelte-18ndok6\" rel=\"external\"> </a></span></h3></header> <!> <!> <!> <!></div></article>");
|
|
30
|
+
function D(n, r) {
|
|
31
31
|
h.push(r, !0);
|
|
32
|
-
let i = h.prop(r, "layout", 3, "vertical"), a = h.prop(r, "density", 3, "standard"), o = h.prop(r, "imageUrl", 3, ""), c = h.prop(r, "placeholderImage", 3, ""), u = h.prop(r, "hidePoster", 3, !1), d = h.prop(r, "posterFit", 3, "fit"), f = h.prop(r, "posterBackdrop", 3, "blur"), p = h.prop(r, "dateLabel", 3, ""), _ = h.prop(r, "meta", 19, () => []),
|
|
33
|
-
function
|
|
32
|
+
let i = h.prop(r, "layout", 3, "vertical"), a = h.prop(r, "density", 3, "standard"), o = h.prop(r, "imageUrl", 3, ""), c = h.prop(r, "placeholderImage", 3, ""), u = h.prop(r, "hidePoster", 3, !1), d = h.prop(r, "posterFit", 3, "fit"), f = h.prop(r, "posterBackdrop", 3, "blur"), p = h.prop(r, "dateLabel", 3, ""), _ = h.prop(r, "meta", 19, () => []), D = h.prop(r, "description", 3, ""), O = h.prop(r, "badge", 3, null), k = h.prop(r, "pills", 19, () => []), A = h.prop(r, "pillVariant", 3, "alternative"), j = h.prop(r, "showDescription", 3, !1), M = h.prop(r, "hideDate", 3, !1), N = h.derived(() => g[a()]), P = h.derived(() => d() === "fit" && f() === "color"), F = `event-card-title-${ee()}`, I = h.derived(() => j() && !!D() && (a() === "standard" || a() === "featured")), L = h.derived(() => !M() && a() !== "micro" && !!p()), R = h.derived(() => _().filter((e) => typeof e == "string" && e.trim() !== "")), z = h.derived(() => a() !== "micro" && h.get(R).length > 0), B = h.derived(() => !o() && !c());
|
|
33
|
+
function V(e, t) {
|
|
34
34
|
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || r.onpillclick && (t.preventDefault(), t.stopPropagation(), r.onpillclick(e));
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function H(e) {
|
|
37
37
|
e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || r.onclick && (e.preventDefault(), r.onclick());
|
|
38
38
|
}
|
|
39
|
-
var
|
|
40
|
-
var i =
|
|
41
|
-
var i =
|
|
39
|
+
var U = te(), W = h.child(U), ne = (n) => {
|
|
40
|
+
var i = y(), a = h.child(i), l = (n) => {
|
|
41
|
+
var i = v(), a = h.child(i), o = h.child(a, !0);
|
|
42
42
|
h.reset(a), h.reset(i), h.template_effect(() => {
|
|
43
43
|
h.set_class(a, 1, `event-card__poster-fallback-text ${t.strong ?? ""} ${e.tight ?? ""}`, "svelte-18ndok6"), h.set_text(o, r.title);
|
|
44
44
|
}), h.append(n, i);
|
|
@@ -73,50 +73,50 @@ function T(n, r) {
|
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
h.if(a, (e) => {
|
|
76
|
-
h.get(
|
|
76
|
+
h.get(B) ? e(l) : h.get(P) ? e(u, 1) : e(f, -1);
|
|
77
77
|
}), h.reset(i), h.template_effect(() => {
|
|
78
|
-
h.set_class(i, 1, `event-card__poster aspect-video shrink-0 overflow-hidden ${h.get(
|
|
78
|
+
h.set_class(i, 1, `event-card__poster aspect-video shrink-0 overflow-hidden ${h.get(P) ? "bg-bg-primary" : "bg-muted"}`, "svelte-18ndok6"), h.set_attribute(i, "data-poster-backdrop", h.get(P) ? "color" : void 0);
|
|
79
79
|
}), h.append(n, i);
|
|
80
80
|
};
|
|
81
|
-
h.if(
|
|
82
|
-
u() || e(
|
|
81
|
+
h.if(W, (e) => {
|
|
82
|
+
u() || e(ne);
|
|
83
83
|
});
|
|
84
|
-
var
|
|
85
|
-
var t =
|
|
84
|
+
var G = h.sibling(W, 2), K = h.child(G), q = h.child(K), J = h.child(q), Y = h.child(J), re = (e) => {
|
|
85
|
+
var t = b(), n = h.child(t);
|
|
86
86
|
l(n, {
|
|
87
87
|
get variant() {
|
|
88
|
-
return
|
|
88
|
+
return O().variant;
|
|
89
89
|
},
|
|
90
90
|
get size() {
|
|
91
|
-
return h.get(
|
|
91
|
+
return h.get(N).badgeSize;
|
|
92
92
|
},
|
|
93
93
|
children: (e, t) => {
|
|
94
94
|
h.next();
|
|
95
95
|
var n = h.text();
|
|
96
|
-
h.template_effect(() => h.set_text(n,
|
|
96
|
+
h.template_effect(() => h.set_text(n, O().text)), h.append(e, n);
|
|
97
97
|
},
|
|
98
98
|
$$slots: { default: !0 }
|
|
99
99
|
}), h.reset(t), h.append(e, t);
|
|
100
100
|
};
|
|
101
|
-
h.if(
|
|
102
|
-
|
|
101
|
+
h.if(Y, (e) => {
|
|
102
|
+
O() && e(re);
|
|
103
103
|
});
|
|
104
|
-
var X = h.sibling(
|
|
105
|
-
h.reset(X), h.reset(
|
|
106
|
-
var Z = h.sibling(
|
|
107
|
-
var n =
|
|
104
|
+
var X = h.sibling(Y, 2), ie = h.child(X, !0);
|
|
105
|
+
h.reset(X), h.reset(J), h.reset(q), h.reset(K);
|
|
106
|
+
var Z = h.sibling(K, 2), ae = (e) => {
|
|
107
|
+
var n = x(), r = h.child(n, !0);
|
|
108
108
|
h.reset(n), h.template_effect(() => {
|
|
109
109
|
h.set_class(n, 1, `event-card__date tone-secondary ${t.emphasis ?? ""}`, "svelte-18ndok6"), h.set_text(r, p());
|
|
110
110
|
}), h.append(e, n);
|
|
111
111
|
};
|
|
112
112
|
h.if(Z, (e) => {
|
|
113
|
-
h.get(
|
|
113
|
+
h.get(L) && e(ae);
|
|
114
114
|
});
|
|
115
115
|
var Q = h.sibling(Z, 2), oe = (e) => {
|
|
116
|
-
var t =
|
|
117
|
-
h.each(t, 21, () => h.get(
|
|
118
|
-
var r =
|
|
119
|
-
var t =
|
|
116
|
+
var t = w();
|
|
117
|
+
h.each(t, 21, () => h.get(R), h.index, (e, t, n) => {
|
|
118
|
+
var r = C(), i = h.first_child(r), a = (e) => {
|
|
119
|
+
var t = S();
|
|
120
120
|
h.append(e, t);
|
|
121
121
|
};
|
|
122
122
|
h.if(i, (e) => {
|
|
@@ -127,13 +127,13 @@ function T(n, r) {
|
|
|
127
127
|
}), h.reset(t), h.append(e, t);
|
|
128
128
|
};
|
|
129
129
|
h.if(Q, (e) => {
|
|
130
|
-
h.get(
|
|
130
|
+
h.get(z) && e(oe);
|
|
131
131
|
});
|
|
132
132
|
var $ = h.sibling(Q, 2), se = (e) => {
|
|
133
|
-
var t =
|
|
134
|
-
h.each(t, 21,
|
|
133
|
+
var t = T();
|
|
134
|
+
h.each(t, 21, k, h.index, (e, t, n) => {
|
|
135
135
|
{
|
|
136
|
-
let r = h.derived(() =>
|
|
136
|
+
let r = h.derived(() => A() === "primary" ? "default" : "alternative"), i = h.derived(() => h.get(t).ariaLabel ?? h.get(t).timeLabel);
|
|
137
137
|
m(e, {
|
|
138
138
|
get href() {
|
|
139
139
|
return h.get(t).href;
|
|
@@ -142,9 +142,9 @@ function T(n, r) {
|
|
|
142
142
|
return h.get(r);
|
|
143
143
|
},
|
|
144
144
|
get size() {
|
|
145
|
-
return h.get(
|
|
145
|
+
return h.get(N).pillSize;
|
|
146
146
|
},
|
|
147
|
-
onclick: (e) =>
|
|
147
|
+
onclick: (e) => V(n, e),
|
|
148
148
|
get "aria-label"() {
|
|
149
149
|
return h.get(i);
|
|
150
150
|
},
|
|
@@ -159,41 +159,41 @@ function T(n, r) {
|
|
|
159
159
|
}), h.reset(t), h.append(e, t);
|
|
160
160
|
};
|
|
161
161
|
h.if($, (e) => {
|
|
162
|
-
|
|
162
|
+
k().length > 0 && e(se);
|
|
163
163
|
});
|
|
164
164
|
var ce = h.sibling($, 2), le = (e) => {
|
|
165
|
-
var t =
|
|
166
|
-
h.reset(t), h.template_effect(() => h.set_text(n,
|
|
165
|
+
var t = E(), n = h.child(t, !0);
|
|
166
|
+
h.reset(t), h.template_effect(() => h.set_text(n, D())), h.append(e, t);
|
|
167
167
|
};
|
|
168
168
|
h.if(ce, (e) => {
|
|
169
|
-
h.get(
|
|
170
|
-
}), h.reset(
|
|
171
|
-
h.set_attribute(
|
|
172
|
-
}), h.delegated("click", X,
|
|
169
|
+
h.get(I) && e(le);
|
|
170
|
+
}), h.reset(G), h.reset(U), h.template_effect(() => {
|
|
171
|
+
h.set_attribute(U, "data-layout", i()), h.set_attribute(U, "data-density", a()), h.set_attribute(U, "data-hide-poster", u()), h.set_attribute(U, "aria-labelledby", F), h.set_class(q, 1, `event-card__title ${t.strong ?? ""} tone-primary m-0`, "svelte-18ndok6"), h.set_attribute(q, "id", F), h.set_attribute(X, "href", r.href), h.set_attribute(X, "aria-label", r.ariaLabel ?? r.title), h.set_text(ie, r.title);
|
|
172
|
+
}), h.delegated("click", X, H), h.append(n, U), h.pop();
|
|
173
173
|
}
|
|
174
174
|
h.delegate(["click"]);
|
|
175
175
|
//#endregion
|
|
176
176
|
//#region node_modules/@getmicdrop/svelte-components/dist/routing/slug.js
|
|
177
|
-
var
|
|
178
|
-
function
|
|
179
|
-
return e.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "").slice(0,
|
|
177
|
+
var O = 70;
|
|
178
|
+
function k(e) {
|
|
179
|
+
return e.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "").slice(0, O).replace(/-+$/g, "");
|
|
180
180
|
}
|
|
181
181
|
//#endregion
|
|
182
182
|
//#region src/lib/url-manager/params.ts
|
|
183
|
-
function
|
|
183
|
+
function A(e) {
|
|
184
184
|
let t = e.indexOf("-"), n = t === -1 ? e : e.substring(0, t);
|
|
185
185
|
return /^\d+$/.test(n) ? {
|
|
186
186
|
id: n,
|
|
187
187
|
slug: t === -1 ? "" : e.substring(t + 1)
|
|
188
188
|
} : null;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
let t = e.id || e.eventID || 0, n = e.slug ||
|
|
190
|
+
function j(e) {
|
|
191
|
+
let t = e.id || e.eventID || 0, n = e.slug || k(e.name || "");
|
|
192
192
|
return `#${t}${n ? "-" + n : ""}`;
|
|
193
193
|
}
|
|
194
194
|
//#endregion
|
|
195
195
|
//#region src/lib/browse-widgets/utils.ts
|
|
196
|
-
function
|
|
196
|
+
function M(e) {
|
|
197
197
|
let t = /* @__PURE__ */ new Map(), n = [];
|
|
198
198
|
for (let r of e) {
|
|
199
199
|
let e = r.eventSeriesId;
|
|
@@ -215,7 +215,7 @@ function A(e) {
|
|
|
215
215
|
}
|
|
216
216
|
//#endregion
|
|
217
217
|
//#region src/lib/browse-widgets/defaults.ts
|
|
218
|
-
var
|
|
218
|
+
var N = [
|
|
219
219
|
"cancelled",
|
|
220
220
|
"postponed",
|
|
221
221
|
"past",
|
|
@@ -226,18 +226,18 @@ var j = [
|
|
|
226
226
|
];
|
|
227
227
|
//#endregion
|
|
228
228
|
//#region src/lib/browse-widgets/status.ts
|
|
229
|
-
function
|
|
229
|
+
function P(e) {
|
|
230
230
|
return e.toLowerCase().replace(/[\s_-]+/g, "");
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
if (
|
|
232
|
+
function F(e) {
|
|
233
|
+
if (P(e.status ?? "") !== "onsale" || e.ticketsRemaining == null || e.ticketsTotal == null || e.ticketsTotal === 0 || e.ticketsRemaining <= 0) return !1;
|
|
234
234
|
let t = n(e.ticketsRemaining, e.ticketsTotal);
|
|
235
235
|
return t === "low" || t === "urgent";
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function I(e, t) {
|
|
238
238
|
if (!e) return null;
|
|
239
|
-
let n =
|
|
240
|
-
for (let r of
|
|
239
|
+
let n = P(e.status ?? "");
|
|
240
|
+
for (let r of N) switch (r) {
|
|
241
241
|
case "cancelled":
|
|
242
242
|
if (n === "cancelled" || n === "canceled") return {
|
|
243
243
|
text: t?.statusCancelled || "Canceled",
|
|
@@ -277,36 +277,41 @@ function P(e, t) {
|
|
|
277
277
|
type: "coming_soon"
|
|
278
278
|
};
|
|
279
279
|
break;
|
|
280
|
-
case "scarcity": if (
|
|
280
|
+
case "scarcity": if (F(e)) return {
|
|
281
281
|
text: t?.statusSellingFast || "Selling fast",
|
|
282
282
|
type: "scarcity"
|
|
283
283
|
};
|
|
284
284
|
}
|
|
285
285
|
return null;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function L(e) {
|
|
288
|
+
if (!e) return !1;
|
|
289
|
+
let t = e.type;
|
|
290
|
+
return t === "cancelled" || t === "postponed" || t === "past" || t === "sold_out" || t === "sales_ended";
|
|
291
|
+
}
|
|
292
|
+
function R(e, t) {
|
|
288
293
|
if (e.length === 0) return null;
|
|
289
|
-
if (e.length === 1) return
|
|
290
|
-
let n = e.map((e) =>
|
|
294
|
+
if (e.length === 1) return I(e[0], t);
|
|
295
|
+
let n = e.map((e) => I(e, t));
|
|
291
296
|
if (n.every((e) => e?.type === "cancelled")) return {
|
|
292
297
|
type: "cancelled",
|
|
293
|
-
text:
|
|
298
|
+
text: z("cancelled", t)
|
|
294
299
|
};
|
|
295
300
|
if (n.every((e) => e?.type === "postponed")) return {
|
|
296
301
|
type: "postponed",
|
|
297
|
-
text:
|
|
302
|
+
text: z("postponed", t)
|
|
298
303
|
};
|
|
299
304
|
if (n.every((e) => e?.type === "sold_out")) return {
|
|
300
305
|
type: "sold_out",
|
|
301
|
-
text:
|
|
306
|
+
text: z("sold_out", t)
|
|
302
307
|
};
|
|
303
308
|
let r = n.filter((e) => e?.type !== "sold_out" && e?.type !== "cancelled" && e?.type !== "postponed");
|
|
304
309
|
return r.length > 0 && r.every((e) => e?.type === "scarcity") ? {
|
|
305
310
|
type: "scarcity",
|
|
306
|
-
text:
|
|
311
|
+
text: z("scarcity", t)
|
|
307
312
|
} : null;
|
|
308
313
|
}
|
|
309
|
-
function
|
|
314
|
+
function z(e, t) {
|
|
310
315
|
switch (e) {
|
|
311
316
|
case "cancelled": return t?.statusCancelled || "Canceled";
|
|
312
317
|
case "postponed": return t?.statusPostponed || "Postponed";
|
|
@@ -317,7 +322,7 @@ function I(e, t) {
|
|
|
317
322
|
case "scarcity": return t?.statusSellingFast || "Selling fast";
|
|
318
323
|
}
|
|
319
324
|
}
|
|
320
|
-
function
|
|
325
|
+
function B(e) {
|
|
321
326
|
switch (e) {
|
|
322
327
|
case "cancelled": return "neutral";
|
|
323
328
|
case "postponed": return "neutral";
|
|
@@ -329,17 +334,17 @@ function L(e) {
|
|
|
329
334
|
default: return "neutral";
|
|
330
335
|
}
|
|
331
336
|
}
|
|
332
|
-
function
|
|
337
|
+
function V(e) {
|
|
333
338
|
let t = f();
|
|
334
339
|
return e.filter((e) => {
|
|
335
|
-
if (
|
|
340
|
+
if (P(e.status ?? "") === "postponed") return !0;
|
|
336
341
|
let n = r(t, e.timeZone);
|
|
337
342
|
return e.date >= n;
|
|
338
343
|
}).sort((e, t) => e.date.localeCompare(t.date));
|
|
339
344
|
}
|
|
340
345
|
//#endregion
|
|
341
346
|
//#region src/lib/browse-widgets/to-event-card-props.ts
|
|
342
|
-
function
|
|
347
|
+
function H(e, t) {
|
|
343
348
|
let r = e.ticketsRemaining ?? 0, i = e.ticketsTotal ?? 0, a = n(r, i);
|
|
344
349
|
return a === "sold-out" ? {
|
|
345
350
|
text: t.statusSoldOut || "Sold out",
|
|
@@ -349,7 +354,7 @@ function z(e, t) {
|
|
|
349
354
|
variant: "warning"
|
|
350
355
|
} : null;
|
|
351
356
|
}
|
|
352
|
-
function
|
|
357
|
+
function U(e, t, n, r) {
|
|
353
358
|
let o = [];
|
|
354
359
|
if (e.stageName && o.push(e.stageName), e.displayDoorsTime === !0 && e.doorsOpenTime) {
|
|
355
360
|
let t = a(e.doorsOpenTime, e.timeZone, r);
|
|
@@ -361,22 +366,22 @@ function B(e, t, n, r) {
|
|
|
361
366
|
}
|
|
362
367
|
return e.displayAgeRestriction && o.push(e.ageRestriction && e.ageRestriction > 0 ? (n.agesPlus || "Ages {age}+").replace("{age}", String(e.ageRestriction)) : n.allAges || "All ages"), o;
|
|
363
368
|
}
|
|
364
|
-
function
|
|
365
|
-
let s = e.event, c = e.isSeries ?
|
|
369
|
+
function W(e, t = u, n, r = null, a = {}) {
|
|
370
|
+
let s = e.event, c = e.isSeries ? R(e.instances, t) : I(s, t), l = c && c.type !== "past" ? {
|
|
366
371
|
text: c.text,
|
|
367
|
-
variant:
|
|
372
|
+
variant: B(c.type)
|
|
368
373
|
} : null;
|
|
369
|
-
!l && !e.isSeries && (l =
|
|
370
|
-
let d =
|
|
371
|
-
let r = i(e.startDateTime, e.timeZone, n), a =
|
|
374
|
+
!l && !e.isSeries && (l = H(s, t));
|
|
375
|
+
let d = j(s), f = s.startDateTime && r?.date !== !1 ? o(s.startDateTime, s.timeZone, n) : "", p = e.isSeries ? e.instances : s.startDateTime ? [s] : [], m = p.map((e) => {
|
|
376
|
+
let r = i(e.startDateTime, e.timeZone, n), a = I(e, t)?.type === "sold_out";
|
|
372
377
|
return {
|
|
373
378
|
timeLabel: r,
|
|
374
|
-
href:
|
|
379
|
+
href: j(e),
|
|
375
380
|
ariaLabel: `${s.name} at ${r}${a ? ", sold out" : ""}`
|
|
376
381
|
};
|
|
377
382
|
}), h = [s.name];
|
|
378
383
|
s.startDateTime && h.push(`on ${o(s.startDateTime, s.timeZone, n)}`), e.isSeries ? h.push(`${e.instances.length} showtimes available`) : s.startDateTime && h.push(`at ${i(s.startDateTime, s.timeZone, n)}`), c && h.push(c.text);
|
|
379
|
-
let g =
|
|
384
|
+
let g = U(s, e.isSeries, t, n);
|
|
380
385
|
return h.push(...g), {
|
|
381
386
|
title: s.name,
|
|
382
387
|
href: d,
|
|
@@ -394,4 +399,4 @@ function V(e, t = u, n, r = null, a = {}) {
|
|
|
394
399
|
};
|
|
395
400
|
}
|
|
396
401
|
//#endregion
|
|
397
|
-
export {
|
|
402
|
+
export { M as a, D as c, L as i, V as n, A as o, I as r, k as s, W as t };
|
|
@@ -3,6 +3,7 @@ var e = {
|
|
|
3
3
|
viewList: "Liste",
|
|
4
4
|
viewGallery: "Galeri",
|
|
5
5
|
viewCalendar: "Takvim",
|
|
6
|
+
viewTonight: "Bu akşamın programı",
|
|
6
7
|
searchPlaceholder: "Etkinlik ara",
|
|
7
8
|
searchAriaLabel: "Etkinlikleri ara",
|
|
8
9
|
listView: "Liste görünümü",
|
|
@@ -92,6 +93,8 @@ var e = {
|
|
|
92
93
|
thisWeekend: "Bu hafta sonu",
|
|
93
94
|
nextWeek: "Gelecek hafta",
|
|
94
95
|
comingUp: "Yakında",
|
|
96
|
+
noShowsTonight: "Bu akşam gösteri yok",
|
|
97
|
+
nextShow: "Sıradaki gösteri",
|
|
95
98
|
noUpcomingShowsScheduled: "Planlanmış yaklaşan gösteri yok",
|
|
96
99
|
nothingOn: "Etkinlik yok",
|
|
97
100
|
noUpcomingEventsScheduled: "Planlanmış yaklaşan etkinlik yok",
|
package/dist/types/index.d.ts
CHANGED
|
@@ -110,7 +110,13 @@ export interface ViewOption {
|
|
|
110
110
|
ariaLabel?: string;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
export type ViewType =
|
|
113
|
+
export type ViewType =
|
|
114
|
+
| 'list'
|
|
115
|
+
| 'gallery'
|
|
116
|
+
| 'calendar'
|
|
117
|
+
| 'carousel'
|
|
118
|
+
| 'featured'
|
|
119
|
+
| 'tonight';
|
|
114
120
|
|
|
115
121
|
// ============================================================================
|
|
116
122
|
// Component Props Interfaces
|
|
@@ -138,7 +144,8 @@ export interface BaseInitOptions {
|
|
|
138
144
|
* Options for initializing the Venue Calendar component
|
|
139
145
|
*/
|
|
140
146
|
export interface CalendarProps extends BaseInitOptions {
|
|
141
|
-
/** Initial view: 'list', 'gallery',
|
|
147
|
+
/** Initial view: 'list', 'gallery', 'calendar', 'carousel', 'featured' or
|
|
148
|
+
* 'tonight' (default: 'calendar') */
|
|
142
149
|
view?: ViewType;
|
|
143
150
|
/** Array of event objects to display */
|
|
144
151
|
events?: EventData[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as e } from "./sizing-B7ixYndz.js";
|
|
2
|
-
import { F as t, M as n, P as r, Q as i, X as a, et as o, nt as s, z as c } from "./orders-
|
|
3
|
-
import "./event-transform-
|
|
2
|
+
import { F as t, M as n, P as r, Q as i, X as a, et as o, nt as s, z as c } from "./orders-2OEBLUMn.js";
|
|
3
|
+
import "./event-transform-DnTfI9EZ.js";
|
|
4
4
|
//#region node_modules/js-cookie/dist/js.cookie.mjs
|
|
5
5
|
function l(e) {
|
|
6
6
|
for (var t = 1; t < arguments.length; t++) {
|