@getmicdrop/venue-calendar 4.3.120 → 4.3.122
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 +22 -0
- package/dist/{AddOnCard-BGFpF6uw.js → AddOnCard-BkEFPzAX.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-DFPyzgRC.js → Calendar-hxcQBkTF.js} +3 -3
- package/dist/{CalendarFoundryView-BI_LlpB6.js → CalendarFoundryView-CSAKDe-F.js} +19 -19
- package/dist/{CalendarIcon-C_6MSRyE.js → CalendarIcon-B5JWs0gm.js} +1 -1
- package/dist/{CartView-9YSoRvTw.js → CartView-CQZw_kwm.js} +719 -716
- package/dist/{CheckIcon-sr8D0z-b.js → CheckIcon-BSwoGox7.js} +1 -1
- package/dist/{Checkout-BLkYIKoR.js → Checkout-Bsx9d4qD.js} +378 -378
- package/dist/{Checkout-BS3r4Qii.js → Checkout-CN1o3v9L.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-DXkBRGeQ.js +141 -0
- package/dist/{Event-DUq4tYBE.js → Event-CmD84Ni8.js} +684 -680
- package/dist/EventPage-4ToDFEaL.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-CrBSsbBD.js} +124 -124
- package/dist/{ScarcityBadge-Bj_YMxz4.js → ScarcityBadge-BL4shc2w.js} +4 -4
- package/dist/{SeriesPage-CaPTQRSo.js → SeriesPage-Dt-T6mco.js} +2 -2
- package/dist/{Spinner-BgdjQygI.js → Spinner-B2rdbspc.js} +1 -1
- package/dist/{Success-tXgS0BXp.js → Success-BTm0jRAO.js} +201 -201
- package/dist/{TagIcon-Kq7_bapx.js → TagIcon-BY8tK_qA.js} +1 -1
- package/dist/ViewTicketsEmbed-BjqniKb9.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-0hNBT78w.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-CcPpWiyw.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-DJYPMj8I.js} +4 -4
- package/dist/{eventStatusStream-Cf7PaLka.js → eventStatusStream-DXyc5Eng.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-CIpUYDU6.js +28 -0
- package/dist/{i18n-MF3q-UBI.js → i18n-DyjdmQSR.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.122/main/de.js +1 -0
- package/dist/locales/4.3.122/main/es.js +1 -0
- package/dist/locales/4.3.122/main/fr.js +1 -0
- package/dist/locales/4.3.122/main/id.js +1 -0
- package/dist/locales/4.3.122/main/it.js +1 -0
- package/dist/locales/4.3.122/main/ja.js +1 -0
- package/dist/locales/4.3.122/main/ko.js +1 -0
- package/dist/locales/4.3.122/main/nl.js +1 -0
- package/dist/locales/4.3.122/main/pl.js +1 -0
- package/dist/locales/4.3.122/main/pt-br.js +1 -0
- package/dist/locales/4.3.122/main/tr.js +1 -0
- package/dist/locales/4.3.122/main/zh.js +1 -0
- package/dist/{nl-Bm2Lee3j.js → nl-DOSKYHSx.js} +0 -1
- package/dist/{pixels-BAPQbj_Y.js → pixels-CFwOgA2N.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-BzgFQSTg.js} +82 -78
- package/dist/venue-calendar.es.js +1444 -1444
- package/dist/venue-calendar.iife.js +30 -30
- package/dist/venue-calendar.umd.js +43 -43
- package/dist/{orders-BWVwv3P0.js → widget-key-context-CmI7Qdtf.js} +290 -279
- package/dist/{zh-B06ZsUNX.js → zh-K0hOzZ3G.js} +0 -1
- package/package.json +1 -1
- 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.120/main/de.js +0 -1
- package/dist/locales/4.3.120/main/es.js +0 -1
- package/dist/locales/4.3.120/main/fr.js +0 -1
- package/dist/locales/4.3.120/main/id.js +0 -1
- package/dist/locales/4.3.120/main/it.js +0 -1
- package/dist/locales/4.3.120/main/ja.js +0 -1
- package/dist/locales/4.3.120/main/ko.js +0 -1
- package/dist/locales/4.3.120/main/nl.js +0 -1
- package/dist/locales/4.3.120/main/pl.js +0 -1
- package/dist/locales/4.3.120/main/pt-br.js +0 -1
- package/dist/locales/4.3.120/main/tr.js +0 -1
- package/dist/locales/4.3.120/main/zh.js +0 -1
- /package/dist/locales/{4.3.120 → 4.3.122}/flow/de.js +0 -0
- /package/dist/locales/{4.3.120 → 4.3.122}/flow/es.js +0 -0
- /package/dist/locales/{4.3.120 → 4.3.122}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.120 → 4.3.122}/flow/id.js +0 -0
- /package/dist/locales/{4.3.120 → 4.3.122}/flow/it.js +0 -0
- /package/dist/locales/{4.3.120 → 4.3.122}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.120 → 4.3.122}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.120 → 4.3.122}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.120 → 4.3.122}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.120 → 4.3.122}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.120 → 4.3.122}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.120 → 4.3.122}/flow/zh.js +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getmicdrop/venue-calendar",
|
|
3
3
|
"_version_comment": "4.1.55 was the last PUBLISHED version, and the tree carried 36 commits npm's 4.1.55 does not have — including the gate-password security fix and four money fixes. A filename must never reuse a version npm has taken (jsDelivr/unpkg cache the FIRST bytes they see under `@4.1.55` forever, so republishing that number ships the old widget to every venue that pinned it). Bumped to 4.2.0 here, BEFORE anything is built for publish. `npm run release:preflight` refuses to proceed when this number already exists in the registry.",
|
|
4
|
-
"version": "4.3.
|
|
4
|
+
"version": "4.3.122",
|
|
5
5
|
"description": "A customizable Svelte calendar component for displaying comedy events",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./dist/types/index.d.ts",
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./Event-DUq4tYBE.js";
|
|
2
|
-
import { g as t } from "./sizing-B7ixYndz.js";
|
|
3
|
-
import { o as n } from "./RecommendationsRail-Dq9t0T02.js";
|
|
4
|
-
import { t as r } from "./defaultLabels-CsRGNP7f.js";
|
|
5
|
-
import { t as i } from "./Button-VUB2WJ88.js";
|
|
6
|
-
import { E as a } from "./api-DG7ztpYi.js";
|
|
7
|
-
import { t as o } from "./PasswordInput-BlL0w_yr.js";
|
|
8
|
-
import { t as s } from "./__SKIP_NAVIGATION__-AOx8SI54.js";
|
|
9
|
-
import { t as c } from "./__SKIP_PATHS__-C0ixDSSm.js";
|
|
10
|
-
import { i as l, n as u, t as d } from "./gate-password-cache-oOcDm9Ki.js";
|
|
11
|
-
import "svelte/internal/disclose-version";
|
|
12
|
-
import * as f from "svelte/internal/client";
|
|
13
|
-
import { onDestroy as p, onMount as m } from "svelte";
|
|
14
|
-
//#region src/components/Views/CollectionView.svelte
|
|
15
|
-
var h = f.from_html("<div class=\"flex items-center justify-center py-12 text-center loading-container svelte-q4dz4y\"><p> </p></div>"), g = f.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>"), _ = f.from_html("<div class=\"flex flex-col items-center justify-center min-h-[50vh] text-center\"><p class=\"error-text svelte-q4dz4y\"> </p></div>");
|
|
16
|
-
function v(v, y) {
|
|
17
|
-
f.push(y, !0), t("CollectionView"), f.prop(y, "organizationId", 3, "");
|
|
18
|
-
let b = f.prop(y, "onNavigateToEvent", 3, void 0), x = f.prop(y, "password", 3, void 0);
|
|
19
|
-
f.prop(y, "displayMode", 3, "gallery"), f.prop(y, "showViewSwitcher", 3, !0);
|
|
20
|
-
let S = f.prop(y, "labels", 3, r), C = f.prop(y, "locale", 3, void 0), w = f.prop(y, "initialCollection", 3, null), T = f.state(null), E = f.state(!0), D = f.state(null), O = f.state(!1), k = f.state(!1), A = f.state(""), j = f.state(!1), M = f.derived(() => f.get(T) ? n(f.get(T)) : null), N = 0;
|
|
21
|
-
async function P(e, t = !1) {
|
|
22
|
-
if (!f.get(O)) return;
|
|
23
|
-
let n = ++N;
|
|
24
|
-
if (!y.collectionId) {
|
|
25
|
-
f.set(D, S().noCollectionIdProvided || "No collection ID provided", !0), f.set(E, !1);
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
f.set(E, !0), f.set(D, null), f.set(j, !1);
|
|
29
|
-
try {
|
|
30
|
-
let r = await a(y.collectionId, e);
|
|
31
|
-
if (!f.get(O) || n !== N) return;
|
|
32
|
-
if (r) {
|
|
33
|
-
if (r.passwordRequired || r.error?.code === "PASSWORD_REQUIRED") {
|
|
34
|
-
f.set(k, !0), t && d("collection", y.collectionId), f.set(E, !1);
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
f.set(T, r, !0), f.set(k, !1), l("collection", y.collectionId, e);
|
|
38
|
-
} else {
|
|
39
|
-
if (e) {
|
|
40
|
-
f.set(k, !0), t ? d("collection", y.collectionId) : f.set(j, !0), f.set(E, !1);
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
f.set(D, S().failedToLoadCollection || "Failed to load collection", !0);
|
|
44
|
-
}
|
|
45
|
-
} catch (e) {
|
|
46
|
-
if (f.get(O) && n === N) {
|
|
47
|
-
let n = e.message || "";
|
|
48
|
-
n.includes("401") || n.includes("403") || n.includes("password") ? (f.set(k, !0), t && d("collection", y.collectionId)) : f.set(D, n || S().failedToLoadCollection || "Failed to load collection", !0);
|
|
49
|
-
}
|
|
50
|
-
} finally {
|
|
51
|
-
f.get(O) && n === N && f.set(E, !1);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function F(e) {
|
|
55
|
-
return !!(e && String(e.id) === String(y.collectionId) && e.visibility === "public" && Array.isArray(e.events) && !e.passwordRequired && !e.error);
|
|
56
|
-
}
|
|
57
|
-
function I(e) {
|
|
58
|
-
e.preventDefault(), f.get(A).trim() && P(f.get(A));
|
|
59
|
-
}
|
|
60
|
-
function L(e) {
|
|
61
|
-
b() && e.id ? b()(Number(e.id), e.slug) : s(c("/[id]/[slug]", {
|
|
62
|
-
id: String(e.id),
|
|
63
|
-
slug: String(e.slug)
|
|
64
|
-
}));
|
|
65
|
-
}
|
|
66
|
-
m(() => {
|
|
67
|
-
f.set(O, !0);
|
|
68
|
-
let e = x() ? void 0 : u("collection", y.collectionId);
|
|
69
|
-
if (!x() && !e && F(w())) {
|
|
70
|
-
f.set(T, w()), f.set(E, !1);
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
P(x() ?? e, !!e);
|
|
74
|
-
}), p(() => {
|
|
75
|
-
f.set(O, !1);
|
|
76
|
-
});
|
|
77
|
-
var R = f.comment(), z = f.first_child(R), B = (e) => {
|
|
78
|
-
var t = h(), n = f.child(t), r = f.child(n, !0);
|
|
79
|
-
f.reset(n), f.reset(t), f.template_effect(() => f.set_text(r, S().loadingCollection || "Loading collection...")), f.append(e, t);
|
|
80
|
-
}, V = (e) => {
|
|
81
|
-
var t = g(), n = f.child(t), r = f.child(n), a = f.child(r, !0);
|
|
82
|
-
f.reset(r);
|
|
83
|
-
var s = f.sibling(r, 2), c = f.child(s, !0);
|
|
84
|
-
f.reset(s);
|
|
85
|
-
var l = f.sibling(s, 2), u = f.child(l);
|
|
86
|
-
{
|
|
87
|
-
let e = f.derived(() => S().enterPassword || "Enter password"), t = f.derived(() => f.get(j) ? S().incorrectPassword || "Incorrect password. Please try again" : "");
|
|
88
|
-
o(u, {
|
|
89
|
-
get placeholder() {
|
|
90
|
-
return f.get(e);
|
|
91
|
-
},
|
|
92
|
-
get error() {
|
|
93
|
-
return f.get(t);
|
|
94
|
-
},
|
|
95
|
-
get value() {
|
|
96
|
-
return f.get(A);
|
|
97
|
-
},
|
|
98
|
-
set value(e) {
|
|
99
|
-
f.set(A, e, !0);
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
var d = f.sibling(u, 2);
|
|
104
|
-
i(d, {
|
|
105
|
-
variant: "default",
|
|
106
|
-
type: "submit",
|
|
107
|
-
children: (e, t) => {
|
|
108
|
-
f.next();
|
|
109
|
-
var n = f.text();
|
|
110
|
-
f.template_effect(() => f.set_text(n, S().viewCollection || "View collection")), f.append(e, n);
|
|
111
|
-
},
|
|
112
|
-
$$slots: { default: !0 }
|
|
113
|
-
}), f.reset(l), f.reset(n), f.reset(t), f.template_effect(() => {
|
|
114
|
-
f.set_text(a, S().collectionPrivateTitle || "This collection is private"), f.set_text(c, S().collectionPrivateDescription || "Please enter the password to view this collection");
|
|
115
|
-
}), f.event("submit", l, I), f.append(e, t);
|
|
116
|
-
}, H = (e) => {
|
|
117
|
-
var t = _(), n = f.child(t), r = f.child(n);
|
|
118
|
-
f.reset(n), f.reset(t), f.template_effect(() => f.set_text(r, `${(S().errorPrefix || "Error:") ?? ""} ${f.get(D) ?? ""}`)), f.append(e, t);
|
|
119
|
-
}, U = (t) => {
|
|
120
|
-
e(t, {
|
|
121
|
-
get event() {
|
|
122
|
-
return f.get(M);
|
|
123
|
-
},
|
|
124
|
-
onCollectionEventClick: L,
|
|
125
|
-
get labels() {
|
|
126
|
-
return S();
|
|
127
|
-
},
|
|
128
|
-
get locale() {
|
|
129
|
-
return C();
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
};
|
|
133
|
-
f.if(z, (e) => {
|
|
134
|
-
f.get(E) ? e(B) : f.get(k) ? e(V, 1) : f.get(D) ? e(H, 2) : f.get(M) && e(U, 3);
|
|
135
|
-
}), f.append(v, R), f.pop();
|
|
136
|
-
}
|
|
137
|
-
//#endregion
|
|
138
|
-
export { v as default };
|