@getmicdrop/venue-calendar 4.3.119 → 4.3.121
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/README.md +818 -818
- package/dist/{AddOnCard-BGFpF6uw.js → AddOnCard-jj59e855.js} +5 -5
- package/dist/{ArrowLeftIcon-pPaJkbnp.js → ArrowLeftIcon-t-CY0sbi.js} +1 -1
- package/dist/{BlockPlaceholder-BgLtwJnm.js → BlockPlaceholder-BmEZ68_q.js} +1 -1
- package/dist/Calendar-hxcQBkTF.js +463 -0
- package/dist/{CalendarFoundryView-CZ36wO24.js → CalendarFoundryView-CSAKDe-F.js} +19 -19
- package/dist/{CalendarIcon-C_6MSRyE.js → CalendarIcon-B5JWs0gm.js} +1 -1
- package/dist/{CartView-9YSoRvTw.js → CartView-CF2y1JDa.js} +719 -716
- package/dist/{CheckIcon-sr8D0z-b.js → CheckIcon-BSwoGox7.js} +1 -1
- package/dist/{Checkout-BLkYIKoR.js → Checkout-2h2K3-bE.js} +378 -378
- package/dist/{Checkout-BS3r4Qii.js → Checkout-BFu5dTw_.js} +328 -328
- package/dist/{CheckoutTimer-DY1NKJXP.js → CheckoutTimer-Bpt5gPyA.js} +2 -2
- package/dist/{ChevronDownIcon-Co6rRQp-.js → ChevronDownIcon-CVZ0usBx.js} +1 -1
- package/dist/{CloseIcon-DpRE5O8y.js → CloseIcon-DUnvWXUY.js} +1 -1
- package/dist/CollectionView-XdNMvMtn.js +141 -0
- package/dist/{Event-DUq4tYBE.js → Event-B_9T21du.js} +684 -680
- package/dist/EventPage-BMnKpciU.js +1201 -0
- package/dist/{Input-CsHb9Z8e.js → Input-BXZmvQ0p.js} +1 -1
- package/dist/{LocationIcon-Dxk7snUC.js → LocationIcon-E-7CQh4E.js} +1 -1
- package/dist/{PasswordInput-BlL0w_yr.js → PasswordInput-DzXNIwRc.js} +1 -1
- package/dist/{RecommendationsRail-Dq9t0T02.js → RecommendationsRail-DrzM8h2r.js} +124 -124
- package/dist/{ScarcityBadge-Bj_YMxz4.js → ScarcityBadge-DjzrzvId.js} +4 -4
- package/dist/{SeriesPage-CaPTQRSo.js → SeriesPage-Ds_FEEZW.js} +2 -2
- package/dist/{Spinner-BgdjQygI.js → Spinner-B2rdbspc.js} +1 -1
- package/dist/{Success-tXgS0BXp.js → Success-Dkak0iM9.js} +201 -201
- package/dist/{TagIcon-Kq7_bapx.js → TagIcon-BY8tK_qA.js} +1 -1
- package/dist/ViewTicketsEmbed-B_fqalQh.js +660 -0
- package/dist/{WarningCircleIcon-BdbAYYi4.js → WarningCircleIcon-C5Lc7qkF.js} +1 -1
- package/dist/{WarningTriIcon-D8otatZe.js → WarningTriIcon-BM8qc9xx.js} +1 -1
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +258 -252
- package/dist/api/cart-addons.d.ts +2 -1
- package/dist/api/checkout-availability.d.ts +2 -25
- package/dist/api/client.d.ts +4 -7
- package/dist/api/events.d.ts +23 -22
- package/dist/api/gift-cards.d.ts +7 -6
- package/dist/api/orders.d.ts +13 -12
- package/dist/api/promo.d.ts +5 -4
- package/dist/api/surge-queue.d.ts +5 -34
- package/dist/api/venues.d.ts +5 -4
- package/dist/api/waitlist.d.ts +5 -9
- package/dist/{api-DG7ztpYi.js → api-BEYkGabB.js} +174 -169
- package/dist/{copyToClipboard-DSangJpP.js → copyToClipboard-F-akSgaF.js} +1 -1
- package/dist/{createErrorGate.svelte-CEBpRAmr.js → createErrorGate.svelte-CEGaIQeI.js} +1 -1
- package/dist/{datetime-YTw6PkGP.js → datetime-BnKG6Hjm.js} +1 -1
- package/dist/{de-CbwqVvg6.js → de-BHcAXwnM.js} +0 -1
- package/dist/{defaultLabels-CsRGNP7f.js → defaultLabels-BbNEEsF7.js} +0 -1
- package/dist/{defaults-UDvnrGu0.js → defaults-CgsFJvJ2.js} +2 -2
- package/dist/{es-Dxqulvec.js → es-DZ3yceh-.js} +0 -1
- package/dist/{event-CW18bU9h.js → event-DfqUhl5j.js} +1 -1
- package/dist/{event-transform-CyRMeKW_.js → event-transform-Bk1IoYh5.js} +4 -4
- package/dist/{eventStatusStream-Cf7PaLka.js → eventStatusStream-CE0PwO0c.js} +9 -9
- package/dist/{fr-0aCE52FE.js → fr-Dyi163Vk.js} +0 -1
- package/dist/{href-yqxAPbkW.js → href-CfWGAmkP.js} +3 -3
- package/dist/i18n-B705OXZp.js +28 -0
- package/dist/{i18n-MF3q-UBI.js → i18n-BoMUWcCq.js} +4 -4
- package/dist/{id-7ClY2Dwb.js → id-DvFRZVAm.js} +0 -1
- package/dist/{it-z-heX6Hy.js → it-Bh05tcLv.js} +0 -1
- package/dist/{ja-ecBzr5l9.js → ja-CU4PQS4j.js} +0 -1
- package/dist/{ko-Blnq1Wc_.js → ko-DDk6EdWm.js} +0 -1
- package/dist/locales/4.3.121/main/de.js +1 -0
- package/dist/locales/4.3.121/main/es.js +1 -0
- package/dist/locales/4.3.121/main/fr.js +1 -0
- package/dist/locales/4.3.121/main/id.js +1 -0
- package/dist/locales/4.3.121/main/it.js +1 -0
- package/dist/locales/4.3.121/main/ja.js +1 -0
- package/dist/locales/4.3.121/main/ko.js +1 -0
- package/dist/locales/4.3.121/main/nl.js +1 -0
- package/dist/locales/4.3.121/main/pl.js +1 -0
- package/dist/locales/4.3.121/main/pt-br.js +1 -0
- package/dist/locales/4.3.121/main/tr.js +1 -0
- package/dist/locales/4.3.121/main/zh.js +1 -0
- package/dist/{nl-Bm2Lee3j.js → nl-DOSKYHSx.js} +0 -1
- package/dist/{pixels-BAPQbj_Y.js → pixels-Bu5-BISs.js} +8 -8
- package/dist/{pl-DIp-gYhF.js → pl-CkLEymA2.js} +0 -1
- package/dist/{pt-br-BmcVsgbQ.js → pt-br-BHuCQSM-.js} +0 -1
- package/dist/{serverTotals-D57U4Nju.js → serverTotals-B8SJCzxE.js} +1 -1
- package/dist/{showcase-state-options-zfQoPg37.js → showcase-state-options-KO_TYk3I.js} +1 -1
- package/dist/{to-event-card-props-Dn1eDOiJ.js → to-event-card-props-DYIfPN8e.js} +9 -13
- package/dist/{tr-BshxS2DN.js → tr-Bvc34ODh.js} +0 -1
- package/dist/{utils-CdNe7KGe.js → utils-NMx3aPDk.js} +82 -78
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +1445 -1445
- package/dist/venue-calendar.iife.js +31 -31
- package/dist/venue-calendar.umd.js +52 -52
- package/dist/{orders-BWVwv3P0.js → widget-key-context-D2zj4sp5.js} +221 -213
- package/dist/{zh-B06ZsUNX.js → zh-K0hOzZ3G.js} +0 -1
- package/package.json +1 -1
- package/src/lib/theme.js +222 -222
- package/dist/Calendar-S2Es6EKK.js +0 -486
- package/dist/CollectionView-DyFDlCmo.js +0 -138
- package/dist/EventPage-m5SlifRu.js +0 -1200
- package/dist/ViewTicketsEmbed-BnuypZ1H.js +0 -660
- package/dist/i18n-B-AwhAMH.js +0 -28
- package/dist/locales/4.3.119/main/de.js +0 -1
- package/dist/locales/4.3.119/main/es.js +0 -1
- package/dist/locales/4.3.119/main/fr.js +0 -1
- package/dist/locales/4.3.119/main/id.js +0 -1
- package/dist/locales/4.3.119/main/it.js +0 -1
- package/dist/locales/4.3.119/main/ja.js +0 -1
- package/dist/locales/4.3.119/main/ko.js +0 -1
- package/dist/locales/4.3.119/main/nl.js +0 -1
- package/dist/locales/4.3.119/main/pl.js +0 -1
- package/dist/locales/4.3.119/main/pt-br.js +0 -1
- package/dist/locales/4.3.119/main/tr.js +0 -1
- package/dist/locales/4.3.119/main/zh.js +0 -1
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/de.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/es.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/id.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/it.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/zh.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./WarningCircleIcon-
|
|
2
|
-
import { g as t, x as n } from "./defaultLabels-
|
|
1
|
+
import { n as e } from "./WarningCircleIcon-C5Lc7qkF.js";
|
|
2
|
+
import { g as t, x as n } from "./defaultLabels-BbNEEsF7.js";
|
|
3
3
|
import { r } from "./Button-VUB2WJ88.js";
|
|
4
4
|
import { t as i } from "./Text-CqjLjIF8.js";
|
|
5
5
|
import { n as a } from "./constants-C6MZgb2S.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { X as e } from "./datetime-
|
|
1
|
+
import { X as e } from "./datetime-BnKG6Hjm.js";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as t from "svelte/internal/client";
|
|
4
4
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ChevronDownIcon.svelte
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { X as e } from "./datetime-
|
|
1
|
+
import { X as e } from "./datetime-BnKG6Hjm.js";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as t from "svelte/internal/client";
|
|
4
4
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/CalendarOutline.svelte
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { t as e } from "./Event-B_9T21du.js";
|
|
2
|
+
import { g as t } from "./sizing-B7ixYndz.js";
|
|
3
|
+
import { o as n } from "./RecommendationsRail-DrzM8h2r.js";
|
|
4
|
+
import { t as r } from "./defaultLabels-BbNEEsF7.js";
|
|
5
|
+
import { t as i } from "./Button-VUB2WJ88.js";
|
|
6
|
+
import { n as a } from "./widget-key-context-D2zj4sp5.js";
|
|
7
|
+
import { E as o } from "./api-BEYkGabB.js";
|
|
8
|
+
import { t as s } from "./PasswordInput-DzXNIwRc.js";
|
|
9
|
+
import { t as c } from "./__SKIP_NAVIGATION__-AOx8SI54.js";
|
|
10
|
+
import { t as l } from "./__SKIP_PATHS__-C0ixDSSm.js";
|
|
11
|
+
import { i as u, n as d, t as f } from "./gate-password-cache-oOcDm9Ki.js";
|
|
12
|
+
import "svelte/internal/disclose-version";
|
|
13
|
+
import * as p from "svelte/internal/client";
|
|
14
|
+
import { onDestroy as m, onMount as h } from "svelte";
|
|
15
|
+
//#region src/components/Views/CollectionView.svelte
|
|
16
|
+
var g = p.from_html("<div class=\"flex items-center justify-center py-12 text-center loading-container svelte-q4dz4y\"><p> </p></div>"), _ = p.from_html("<div class=\"flex flex-col items-center justify-center min-h-[50vh] text-center\"><div class=\"password-card rounded-lg p-8 max-w-sm w-full svelte-q4dz4y\"><h2 class=\"password-title type-heading mb-2 svelte-q4dz4y\"> </h2> <p class=\"password-description type-body mb-6 svelte-q4dz4y\"> </p> <form class=\"flex flex-col gap-3\"><!> <!></form></div></div>"), v = p.from_html("<div class=\"flex flex-col items-center justify-center min-h-[50vh] text-center\"><p class=\"error-text svelte-q4dz4y\"> </p></div>");
|
|
17
|
+
function y(y, b) {
|
|
18
|
+
p.push(b, !0);
|
|
19
|
+
let x = a();
|
|
20
|
+
t("CollectionView"), p.prop(b, "organizationId", 3, "");
|
|
21
|
+
let S = p.prop(b, "onNavigateToEvent", 3, void 0), C = p.prop(b, "password", 3, void 0);
|
|
22
|
+
p.prop(b, "displayMode", 3, "gallery"), p.prop(b, "showViewSwitcher", 3, !0);
|
|
23
|
+
let w = p.prop(b, "labels", 3, r), T = p.prop(b, "locale", 3, void 0), E = p.prop(b, "initialCollection", 3, null), D = p.state(null), O = p.state(!0), k = p.state(null), A = p.state(!1), j = p.state(!1), M = p.state(""), N = p.state(!1), P = p.derived(() => p.get(D) ? n(p.get(D)) : null), F = 0;
|
|
24
|
+
async function I(e, t = !1) {
|
|
25
|
+
if (!p.get(A)) return;
|
|
26
|
+
let n = ++F;
|
|
27
|
+
if (!b.collectionId) {
|
|
28
|
+
p.set(k, w().noCollectionIdProvided || "No collection ID provided", !0), p.set(O, !1);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
p.set(O, !0), p.set(k, null), p.set(N, !1);
|
|
32
|
+
try {
|
|
33
|
+
let r = await o(b.collectionId, e, { widgetKey: x });
|
|
34
|
+
if (!p.get(A) || n !== F) return;
|
|
35
|
+
if (r) {
|
|
36
|
+
if (r.passwordRequired || r.error?.code === "PASSWORD_REQUIRED") {
|
|
37
|
+
p.set(j, !0), t && f("collection", b.collectionId), p.set(O, !1);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
p.set(D, r, !0), p.set(j, !1), u("collection", b.collectionId, e);
|
|
41
|
+
} else {
|
|
42
|
+
if (e) {
|
|
43
|
+
p.set(j, !0), t ? f("collection", b.collectionId) : p.set(N, !0), p.set(O, !1);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
p.set(k, w().failedToLoadCollection || "Failed to load collection", !0);
|
|
47
|
+
}
|
|
48
|
+
} catch (e) {
|
|
49
|
+
if (p.get(A) && n === F) {
|
|
50
|
+
let n = e.message || "";
|
|
51
|
+
n.includes("401") || n.includes("403") || n.includes("password") ? (p.set(j, !0), t && f("collection", b.collectionId)) : p.set(k, n || w().failedToLoadCollection || "Failed to load collection", !0);
|
|
52
|
+
}
|
|
53
|
+
} finally {
|
|
54
|
+
p.get(A) && n === F && p.set(O, !1);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function L(e) {
|
|
58
|
+
return !!(e && String(e.id) === String(b.collectionId) && e.visibility === "public" && Array.isArray(e.events) && !e.passwordRequired && !e.error);
|
|
59
|
+
}
|
|
60
|
+
function R(e) {
|
|
61
|
+
e.preventDefault(), p.get(M).trim() && I(p.get(M));
|
|
62
|
+
}
|
|
63
|
+
function z(e) {
|
|
64
|
+
S() && e.id ? S()(Number(e.id), e.slug) : c(l("/[id]/[slug]", {
|
|
65
|
+
id: String(e.id),
|
|
66
|
+
slug: String(e.slug)
|
|
67
|
+
}));
|
|
68
|
+
}
|
|
69
|
+
h(() => {
|
|
70
|
+
p.set(A, !0);
|
|
71
|
+
let e = C() ? void 0 : d("collection", b.collectionId);
|
|
72
|
+
if (!C() && !e && L(E())) {
|
|
73
|
+
p.set(D, E()), p.set(O, !1);
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
I(C() ?? e, !!e);
|
|
77
|
+
}), m(() => {
|
|
78
|
+
p.set(A, !1);
|
|
79
|
+
});
|
|
80
|
+
var B = p.comment(), V = p.first_child(B), H = (e) => {
|
|
81
|
+
var t = g(), n = p.child(t), r = p.child(n, !0);
|
|
82
|
+
p.reset(n), p.reset(t), p.template_effect(() => p.set_text(r, w().loadingCollection || "Loading collection...")), p.append(e, t);
|
|
83
|
+
}, U = (e) => {
|
|
84
|
+
var t = _(), n = p.child(t), r = p.child(n), a = p.child(r, !0);
|
|
85
|
+
p.reset(r);
|
|
86
|
+
var o = p.sibling(r, 2), c = p.child(o, !0);
|
|
87
|
+
p.reset(o);
|
|
88
|
+
var l = p.sibling(o, 2), u = p.child(l);
|
|
89
|
+
{
|
|
90
|
+
let e = p.derived(() => w().enterPassword || "Enter password"), t = p.derived(() => p.get(N) ? w().incorrectPassword || "Incorrect password. Please try again" : "");
|
|
91
|
+
s(u, {
|
|
92
|
+
get placeholder() {
|
|
93
|
+
return p.get(e);
|
|
94
|
+
},
|
|
95
|
+
get error() {
|
|
96
|
+
return p.get(t);
|
|
97
|
+
},
|
|
98
|
+
get value() {
|
|
99
|
+
return p.get(M);
|
|
100
|
+
},
|
|
101
|
+
set value(e) {
|
|
102
|
+
p.set(M, e, !0);
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
var d = p.sibling(u, 2);
|
|
107
|
+
i(d, {
|
|
108
|
+
variant: "default",
|
|
109
|
+
type: "submit",
|
|
110
|
+
children: (e, t) => {
|
|
111
|
+
p.next();
|
|
112
|
+
var n = p.text();
|
|
113
|
+
p.template_effect(() => p.set_text(n, w().viewCollection || "View collection")), p.append(e, n);
|
|
114
|
+
},
|
|
115
|
+
$$slots: { default: !0 }
|
|
116
|
+
}), p.reset(l), p.reset(n), p.reset(t), p.template_effect(() => {
|
|
117
|
+
p.set_text(a, w().collectionPrivateTitle || "This collection is private"), p.set_text(c, w().collectionPrivateDescription || "Please enter the password to view this collection");
|
|
118
|
+
}), p.event("submit", l, R), p.append(e, t);
|
|
119
|
+
}, W = (e) => {
|
|
120
|
+
var t = v(), n = p.child(t), r = p.child(n);
|
|
121
|
+
p.reset(n), p.reset(t), p.template_effect(() => p.set_text(r, `${(w().errorPrefix || "Error:") ?? ""} ${p.get(k) ?? ""}`)), p.append(e, t);
|
|
122
|
+
}, G = (t) => {
|
|
123
|
+
e(t, {
|
|
124
|
+
get event() {
|
|
125
|
+
return p.get(P);
|
|
126
|
+
},
|
|
127
|
+
onCollectionEventClick: z,
|
|
128
|
+
get labels() {
|
|
129
|
+
return w();
|
|
130
|
+
},
|
|
131
|
+
get locale() {
|
|
132
|
+
return T();
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
p.if(V, (e) => {
|
|
137
|
+
p.get(O) ? e(H) : p.get(j) ? e(U, 1) : p.get(k) ? e(W, 2) : p.get(P) && e(G, 3);
|
|
138
|
+
}), p.append(y, B), p.pop();
|
|
139
|
+
}
|
|
140
|
+
//#endregion
|
|
141
|
+
export { y as default };
|