@getmicdrop/venue-calendar 4.3.40 → 4.3.41
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/{CalendarFoundryView-Bv0EsOwe.js → CalendarFoundryView-MI9p1Q-2.js} +2511 -2490
- package/dist/{CartView-CYJMgWS2.js → CartView-BqskyKSN.js} +212 -211
- package/dist/{Checkout-D6GEwsKQ.js → Checkout-BHRHU4AS.js} +4 -4
- package/dist/{Checkout-C8BrLSYw.js → Checkout-DuvjKPyz.js} +1 -1
- package/dist/{CollectionView-BZuyx4kC.js → CollectionView-DwLFFpwW.js} +3 -3
- package/dist/{Event-CqQ0yP-h.js → Event-BIqxB0kY.js} +167 -155
- package/dist/{EventPage-CMH2gocB.js → EventPage-BAKtJTkf.js} +78 -76
- package/dist/Input-DMfgmBL7.js +301 -0
- package/dist/{PasswordInput-yTDvehkW.js → PasswordInput-BrgHYGYw.js} +1 -1
- package/dist/{RecommendationsRail-CN_dtLWp.js → RecommendationsRail-Dmq3C4UQ.js} +5 -4
- package/dist/{SeriesPage-B1bK_MeR.js → SeriesPage-lA7Y1MCK.js} +2 -2
- package/dist/{Success-D8dgqzkd.js → Success-DxJkVp0V.js} +2 -2
- package/dist/{event-Dew6DCL7.js → event-DY17tQ0r.js} +21 -48
- package/dist/{event-transform-BpB65AAX.js → event-transform-BhldGx8B.js} +21 -20
- package/dist/imageUrl-Bata3II2.js +29 -0
- package/dist/{utils-CG0ZJ6gb.js → utils-D3cl-uGb.js} +1 -1
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +15 -15
- package/dist/venue-calendar.iife.js +52 -52
- package/dist/venue-calendar.umd.js +27 -27
- package/package.json +2 -2
- package/dist/Input-Ck0Q7LwW.js +0 -292
- /package/dist/locales/{4.3.40 → 4.3.41}/flow/de.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/flow/es.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/flow/id.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/flow/it.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/flow/zh.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/main/de.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/main/es.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/main/fr.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/main/id.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/main/it.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/main/ja.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/main/ko.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/main/nl.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/main/pl.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/main/tr.js +0 -0
- /package/dist/locales/{4.3.40 → 4.3.41}/main/zh.js +0 -0
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import { C as e, O as t, S as n, T as r, _ as i, b as a } from "./Button-klwKgfhG.js";
|
|
2
|
+
import { b as o } from "./scarcity-CJ6IsR7f.js";
|
|
3
|
+
import { d as s, n as c, r as l } from "./z-index-Bo0dqmiq.js";
|
|
4
|
+
import { t as ee } from "./RequiredIndicator-CYcnRFsA.js";
|
|
5
|
+
import "svelte/internal/disclose-version";
|
|
6
|
+
import * as u from "svelte/internal/client";
|
|
7
|
+
import { onDestroy as d } from "svelte";
|
|
8
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/EyeOutline.svelte
|
|
9
|
+
var f = u.from_svg("<svg aria-hidden=\"true\" fill=\"none\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z\"></path><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M15 12a3 3 0 11-6 0 3 3 0 016 0z\"></path></svg>");
|
|
10
|
+
function te(e, t) {
|
|
11
|
+
let n = u.prop(t, "size", 3, "24"), r = u.prop(t, "color", 3, "currentColor"), i = u.prop(t, "class", 3, "");
|
|
12
|
+
var a = f();
|
|
13
|
+
u.template_effect(() => {
|
|
14
|
+
u.set_class(a, 0, u.clsx(i())), u.set_attribute(a, "width", n()), u.set_attribute(a, "height", n()), u.set_attribute(a, "stroke", r());
|
|
15
|
+
}), u.append(e, a);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/EyeSlashOutline.svelte
|
|
19
|
+
var p = u.from_svg("<svg aria-hidden=\"true\" fill=\"none\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88\"></path></svg>");
|
|
20
|
+
function m(e, t) {
|
|
21
|
+
let n = u.prop(t, "size", 3, "24"), r = u.prop(t, "color", 3, "currentColor"), i = u.prop(t, "class", 3, "");
|
|
22
|
+
var a = p();
|
|
23
|
+
u.template_effect(() => {
|
|
24
|
+
u.set_class(a, 0, u.clsx(i())), u.set_attribute(a, "width", n()), u.set_attribute(a, "height", n()), u.set_attribute(a, "stroke", r());
|
|
25
|
+
}), u.append(e, a);
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/CloseCircleOutline.svelte
|
|
29
|
+
var h = u.from_svg("<svg aria-hidden=\"true\" fill=\"none\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9.75 9.75l4.5 4.5m0-4.5l-4.5 4.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z\"></path></svg>");
|
|
30
|
+
function ne(e, t) {
|
|
31
|
+
let n = u.prop(t, "size", 3, "24"), r = u.prop(t, "color", 3, "currentColor"), i = u.prop(t, "class", 3, "");
|
|
32
|
+
var a = h();
|
|
33
|
+
u.template_effect(() => {
|
|
34
|
+
u.set_class(a, 0, u.clsx(i())), u.set_attribute(a, "width", n()), u.set_attribute(a, "height", n()), u.set_attribute(a, "stroke", r());
|
|
35
|
+
}), u.append(e, a);
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/ExclamationCircleOutline.svelte
|
|
39
|
+
var re = u.from_svg("<svg aria-hidden=\"true\" fill=\"none\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z\"></path></svg>");
|
|
40
|
+
function ie(e, t) {
|
|
41
|
+
let n = u.prop(t, "size", 3, "24"), r = u.prop(t, "color", 3, "currentColor"), i = u.prop(t, "class", 3, "");
|
|
42
|
+
var a = re();
|
|
43
|
+
u.template_effect(() => {
|
|
44
|
+
u.set_class(a, 0, u.clsx(i())), u.set_attribute(a, "width", n()), u.set_attribute(a, "height", n()), u.set_attribute(a, "stroke", r());
|
|
45
|
+
}), u.append(e, a);
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/utils/phoneShape.js
|
|
49
|
+
function g(e) {
|
|
50
|
+
if (!e) return "";
|
|
51
|
+
if (e.startsWith("+")) return e;
|
|
52
|
+
let t = e.replace(/\D/g, "");
|
|
53
|
+
return t.length === 10 ? `+1${t}` : t.length === 11 && t.startsWith("1") ? `+${t}` : e;
|
|
54
|
+
}
|
|
55
|
+
var _ = "310", ae = 7, v = 10;
|
|
56
|
+
function oe(e) {
|
|
57
|
+
let t = String(e ?? "").replace(/\D/g, "").slice(0, v);
|
|
58
|
+
if (!t) return "";
|
|
59
|
+
if (t[0] === "1") {
|
|
60
|
+
let e = t.slice(1);
|
|
61
|
+
return e ? e[0] === "0" || e[0] === "1" ? t : `1 ${y(e)}` : "1";
|
|
62
|
+
}
|
|
63
|
+
return t[0] === "0" ? t : y(t);
|
|
64
|
+
}
|
|
65
|
+
function y(e) {
|
|
66
|
+
return e.startsWith(_) && e.length <= ae ? e.length === 3 ? _ : `${_}-${e.slice(3)}` : e.length <= 2 ? e : e.length === 3 ? `(${e})` : e.length <= 6 ? `(${e.slice(0, 3)}) ${e.slice(3)}` : `(${e.slice(0, 3)}) ${e.slice(3, 6)}-${e.slice(6)}`;
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Input/Input.svelte
|
|
70
|
+
var se = /* @__PURE__ */ new Set(/* @__PURE__ */ "$$slots.$$events.$$legacy.required.disabled.optional.icon.buttonIcon.buttonText.maxlength.minlength.type.placeholder.label.id.name.class.size.textareaSize.errorText.color.helperText.helperIcon.hintText.hintIcon.contentFloat.readonly.controlled.onButtonClick.onbuttonclick.value.autocomplete.autofocus.showPasswordToggle.animateFocus.statusText.statusType.buttonDisabled.inputmode.instantSearch.debounceMs.minSearchChars.showClearButton.onsearch.onfocus.onblur.onkeydown.oninputchange.leftIcon.rightIcon.prefix.labels.data-testid".split(".")), b = u.from_html("<span> </span>"), ce = u.from_html("<div class=\"flex justify-start items-center gap-1\"><label> <!></label> <!> <!></div>"), le = u.from_html("<textarea rows=\"4\"></textarea>"), ue = u.from_html("<div><input/> <button type=\"button\" class=\"flex items-center justify-center px-3 tone-muted focus:outline-none\" tabindex=\"-1\"><!></button></div>"), de = u.from_html("<div class=\"absolute left-3 inset-y-0 flex items-center tone-muted z-sticky pointer-events-none\"><!></div>"), fe = u.from_html("<div class=\"absolute right-3 inset-y-0 flex items-center tone-muted z-sticky pointer-events-none\"><!></div>"), pe = u.from_html("<button type=\"button\" class=\"absolute right-2 top-1/2 -translate-y-1/2 flex items-center justify-center p-1 tone-muted\" tabindex=\"-1\"><!></button>"), me = u.from_html("<img class=\"w-5 h-5\"/>"), he = u.from_html("<span class=\"type-label\"> </span>"), ge = u.from_html("<button type=\"button\"><!> <!></button>"), _e = u.from_html("<img class=\"absolute inset-y-0 right-0 w-5 h-5 mr-3 top-1/2 transform -translate-y-1/2\"/>"), ve = u.from_html("<div class=\"relative flex items-center w-full\"><!> <!> <input/> <!> <!></div>"), ye = u.from_html("<div class=\"flex items-start gap-1.5 mt-2\" role=\"alert\" aria-live=\"assertive\"><!> <p> </p></div>"), be = u.from_html("<img class=\"w-4 h-4 mr-2\"/>"), xe = u.from_html("<div><!> <span> </span></div>"), Se = u.from_html("<div><!> <div class=\"relative w-full\"><!> <!></div></div>");
|
|
71
|
+
function x(f, p) {
|
|
72
|
+
let h = u.props_id();
|
|
73
|
+
u.push(p, !0);
|
|
74
|
+
let re = {
|
|
75
|
+
hidePassword: "Hide password",
|
|
76
|
+
showPassword: "Show password",
|
|
77
|
+
clearInput: "Clear input",
|
|
78
|
+
buttonIconAlt: "Button Icon",
|
|
79
|
+
inputIconAlt: "Input icon",
|
|
80
|
+
helperIconAlt: "Helper icon",
|
|
81
|
+
optional: "(optional)"
|
|
82
|
+
}, g = u.prop(p, "required", 3, !1), _ = u.prop(p, "disabled", 3, !1), ae = u.prop(p, "optional", 3, !1), v = u.prop(p, "icon", 3, null), y = u.prop(p, "buttonIcon", 3, null), x = u.prop(p, "buttonText", 3, null), S = u.prop(p, "maxlength", 3, null), C = u.prop(p, "minlength", 3, null), w = u.prop(p, "type", 3, "text"), T = u.prop(p, "placeholder", 3, ""), E = u.prop(p, "label", 3, ""), Ce = u.prop(p, "id", 3, h), D = u.prop(p, "name", 3, ""), we = u.prop(p, "class", 3, ""), Te = u.prop(p, "size", 3, "md"), Ee = u.prop(p, "textareaSize", 3, ""), O = u.prop(p, "errorText", 3, ""), De = u.prop(p, "color", 3, "base"), k = u.prop(p, "helperText", 3, ""), Oe = u.prop(p, "helperIcon", 3, ""), A = u.prop(p, "hintText", 3, ""), ke = u.prop(p, "hintIcon", 3, ""), Ae = u.prop(p, "contentFloat", 3, "left"), j = u.prop(p, "readonly", 3, !1), je = u.prop(p, "controlled", 3, !1), Me = u.prop(p, "onButtonClick", 3, null), Ne = u.prop(p, "onbuttonclick", 3, null), M = u.prop(p, "value", 15, ""), Pe = u.prop(p, "autocomplete", 3, null), Fe = u.prop(p, "autofocus", 3, !1), N = u.prop(p, "showPasswordToggle", 3, !0), Ie = u.prop(p, "animateFocus", 3, !0), P = u.prop(p, "statusText", 3, ""), F = u.prop(p, "statusType", 3, ""), Le = u.prop(p, "buttonDisabled", 3, !1), Re = u.prop(p, "inputmode", 3, null), I = u.prop(p, "instantSearch", 3, !1), ze = u.prop(p, "debounceMs", 3, 250), Be = u.prop(p, "minSearchChars", 3, 2), L = u.prop(p, "showClearButton", 3, !1), R = u.prop(p, "prefix", 3, ""), Ve = u.prop(p, "labels", 19, () => ({})), He = u.rest_props(p, se), z = u.derived(() => Ce() || h);
|
|
83
|
+
Me() && !Ne() && r("Input: prop \"onButtonClick\" is deprecated. Use \"onbuttonclick\" instead.");
|
|
84
|
+
let Ue = u.derived(() => Ne() ?? Me()), B = u.derived(() => t(re, Ve())), V = u.state(""), H = u.state(null), U, We = u.derived(() => Re() || Ke(w())), Ge = u.derived(() => Pe() ?? null);
|
|
85
|
+
function Ke(e) {
|
|
86
|
+
switch (e) {
|
|
87
|
+
case "phoneNumber":
|
|
88
|
+
case "creditCardNumber": return "tel";
|
|
89
|
+
case "email": return "email";
|
|
90
|
+
default: return null;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
u.user_effect(() => {
|
|
94
|
+
M() !== u.get(V) && u.set(V, M(), !0);
|
|
95
|
+
});
|
|
96
|
+
function qe() {
|
|
97
|
+
u.get(H) && u.get(H).value !== u.get(V) && (u.set(V, u.get(H).value, !0), M(u.get(V)));
|
|
98
|
+
}
|
|
99
|
+
let W = u.state(!1), G = u.derived(() => De() === "red" || !!O()), K = u.derived(() => `${u.get(z)}-error`), Je = u.derived(() => `${u.get(z)}-prefix`), Ye = u.derived(() => [R() ? u.get(Je) : "", O() ? u.get(K) : ""].filter(Boolean).join(" ") || void 0), Xe = u.derived(() => N() && u.get(W) ? "text" : w()), q = u.derived(() => Ie() && !_() && !j()), Ze = u.derived(() => i[Te()] || i.md), Qe = () => {
|
|
100
|
+
u.set(W, !u.get(W));
|
|
101
|
+
}, J = (e) => {
|
|
102
|
+
let t = e.target, n = t.value;
|
|
103
|
+
if (w() === "creditCardNumber") {
|
|
104
|
+
let e = n.replaceAll(/\D/g, "");
|
|
105
|
+
n = o(e), t.value = n;
|
|
106
|
+
}
|
|
107
|
+
if (w() === "phoneNumber" && (n = oe(n.replaceAll(/\D/g, "").slice(0, 10)), t.value = n), w() === "username") {
|
|
108
|
+
let e = n.trim(), r = e.match(/(?:https?:\/\/)?(?:www\.)?(?:instagram\.com|twitter\.com|x\.com|facebook\.com|fb\.com|tiktok\.com|linkedin\.com)\/(?:@)?([A-Za-z0-9._]+)\/?/i);
|
|
109
|
+
r && (e = r[1]), e = e.replace(/^@+/, ""), e = e.replaceAll(/[^A-Za-z0-9._]/g, ""), n = e, t.value = n;
|
|
110
|
+
}
|
|
111
|
+
if (u.set(V, n, !0), M(n), p.oninputchange?.(n), I()) {
|
|
112
|
+
if (clearTimeout(U), n.length === 0) {
|
|
113
|
+
p.onsearch?.({ query: "" });
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
n.length >= Be() && (U = setTimeout(() => {
|
|
117
|
+
p.onsearch?.({ query: n });
|
|
118
|
+
}, ze()));
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
function $e() {
|
|
122
|
+
u.set(V, ""), M(""), clearTimeout(U), I() && p.onsearch?.({ query: "" }), u.get(H) && u.get(H).focus();
|
|
123
|
+
}
|
|
124
|
+
function et(e) {
|
|
125
|
+
p.onkeydown?.(e), !e.defaultPrevented && I() && (e.key === "Enter" && (clearTimeout(U), p.onsearch?.({ query: String(u.get(V) ?? "") })), e.key === "Escape" && $e());
|
|
126
|
+
}
|
|
127
|
+
d(() => {
|
|
128
|
+
clearTimeout(U);
|
|
129
|
+
});
|
|
130
|
+
let Y = () => {
|
|
131
|
+
p.onblur?.();
|
|
132
|
+
}, X = () => {
|
|
133
|
+
p.onfocus?.();
|
|
134
|
+
}, Z = () => {
|
|
135
|
+
switch (Ae()) {
|
|
136
|
+
case "center": return "text-center";
|
|
137
|
+
case "right": return "text-right";
|
|
138
|
+
default: return "text-left";
|
|
139
|
+
}
|
|
140
|
+
}, tt = () => {
|
|
141
|
+
switch (Ee()) {
|
|
142
|
+
case "sm": return "h-24";
|
|
143
|
+
case "md": return "h-36";
|
|
144
|
+
case "lg": return "h-44";
|
|
145
|
+
default: return "";
|
|
146
|
+
}
|
|
147
|
+
}, nt = () => {
|
|
148
|
+
typeof u.get(Ue) == "function" && u.get(Ue)(String(u.get(V) ?? ""));
|
|
149
|
+
};
|
|
150
|
+
var Q = Se();
|
|
151
|
+
u.attribute_effect(Q, () => ({
|
|
152
|
+
class: `flex flex-col gap-1 ${we() ?? ""}`,
|
|
153
|
+
...He
|
|
154
|
+
}));
|
|
155
|
+
var rt = u.child(Q), it = (t) => {
|
|
156
|
+
var n = ce(), r = u.child(n), i = u.child(r, !0), o = u.sibling(i);
|
|
157
|
+
ee(o, { get required() {
|
|
158
|
+
return g();
|
|
159
|
+
} }), u.reset(r);
|
|
160
|
+
var s = u.sibling(r, 2), c = (e) => {
|
|
161
|
+
var t = b(), n = u.child(t);
|
|
162
|
+
u.reset(t), u.template_effect(() => {
|
|
163
|
+
u.set_class(t, 1, `type-label ${F() === "success" ? "text-accent-success" : F() === "error" ? "text-accent-danger" : ""}`), u.set_text(n, `(${P() ?? ""})`);
|
|
164
|
+
}), u.append(e, t);
|
|
165
|
+
};
|
|
166
|
+
u.if(s, (e) => {
|
|
167
|
+
P() && e(c);
|
|
168
|
+
});
|
|
169
|
+
var l = u.sibling(s, 2), d = (t) => {
|
|
170
|
+
var n = b(), r = u.child(n, !0);
|
|
171
|
+
u.reset(n), u.template_effect(() => {
|
|
172
|
+
u.set_class(n, 1, u.clsx(e.smMuted)), u.set_text(r, u.get(B).optional);
|
|
173
|
+
}), u.append(t, n);
|
|
174
|
+
};
|
|
175
|
+
u.if(l, (e) => {
|
|
176
|
+
ae() && e(d);
|
|
177
|
+
}), u.reset(n), u.template_effect(() => {
|
|
178
|
+
u.set_attribute(r, "for", u.get(z)), u.set_class(r, 1, `${e.caption} tone-secondary ${a.tight} sm:${a.none} ${u.get(G) ? "text-status-error-text" : ""}`), u.set_text(i, E());
|
|
179
|
+
}), u.append(t, n);
|
|
180
|
+
};
|
|
181
|
+
u.if(rt, (e) => {
|
|
182
|
+
E() && e(it);
|
|
183
|
+
});
|
|
184
|
+
var at = u.sibling(rt, 2), $ = u.child(at), ot = (t) => {
|
|
185
|
+
var r = le();
|
|
186
|
+
u.remove_textarea_child(r), r.required = !1, u.template_effect((t, i) => {
|
|
187
|
+
u.set_attribute(r, "id", u.get(z)), u.set_attribute(r, "name", D()), u.set_attribute(r, "placeholder", T()), u.set_value(r, u.get(V)), u.set_attribute(r, "maxlength", S()), u.set_attribute(r, "minlength", C()), u.set_class(r, 1, `${e.sm ?? ""} w-full px-3 py-2 bg-bg-secondary border rounded-lg ${n.emphasis ?? ""} placeholder-muted-foreground transition-all focus:outline-none focus:ring-4 focus:ring-focus-ring resize-y ${u.get(G) ? "border-status-error-border" : "border-stroke-primary hover:border-interactive-border focus:border-interactive-border"} ${t ?? ""} ${i ?? ""} ${u.get(q) ? "focus:scale-grow" : ""}`), r.disabled = _(), r.readOnly = j(), u.set_attribute(r, "aria-required", g()), u.set_attribute(r, "aria-invalid", u.get(G)), u.set_attribute(r, "aria-describedby", O() ? u.get(K) : void 0), u.set_attribute(r, "data-testid", p["data-testid"]);
|
|
188
|
+
}, [() => Z(), () => tt()]), u.delegated("input", r, J), u.event("blur", r, Y), u.event("focus", r, X), u.append(t, r);
|
|
189
|
+
}, st = (t) => {
|
|
190
|
+
var r = ue(), i = u.child(r);
|
|
191
|
+
u.remove_input_defaults(i), i.required = !1, u.autofocus(i, Fe()), u.bind_this(i, (e) => u.set(H, e), () => u.get(H));
|
|
192
|
+
var a = u.sibling(i, 2), o = u.child(a), s = (e) => {
|
|
193
|
+
m(e, { class: "w-5 h-5" });
|
|
194
|
+
}, c = (e) => {
|
|
195
|
+
te(e, { class: "w-5 h-5" });
|
|
196
|
+
};
|
|
197
|
+
u.if(o, (e) => {
|
|
198
|
+
u.get(W) ? e(s) : e(c, -1);
|
|
199
|
+
}), u.reset(a), u.reset(r), u.template_effect((t) => {
|
|
200
|
+
u.set_class(r, 1, `flex items-center w-full bg-bg-secondary border rounded-lg transition-all outline-none focus-within:ring-4 focus-within:ring-focus-ring ${u.get(G) ? "border-status-error-border" : "border-stroke-primary hover:border-interactive-border focus-within:border-interactive-border"} ${u.get(q) ? "focus-within:scale-grow" : ""} ${_() ? "opacity-50 cursor-not-allowed" : ""}`), u.set_attribute(i, "id", u.get(z)), u.set_attribute(i, "type", u.get(Xe)), u.set_attribute(i, "name", D()), u.set_attribute(i, "placeholder", T()), u.set_value(i, u.get(V)), u.set_attribute(i, "maxlength", S()), u.set_attribute(i, "minlength", C()), u.set_class(i, 1, `password-input-inner ${e.sm ?? ""} flex-1 w-full ${u.get(Ze) ?? ""} bg-transparent border-0 ${n.emphasis ?? ""} placeholder-muted-foreground focus:outline-none focus:ring-0 ${t ?? ""}`), i.disabled = _(), i.readOnly = j(), u.set_attribute(i, "aria-required", g()), u.set_attribute(i, "aria-invalid", u.get(G)), u.set_attribute(i, "aria-describedby", O() ? u.get(K) : void 0), u.set_attribute(i, "data-testid", p["data-testid"]), u.set_attribute(i, "autocomplete", u.get(Ge)), u.set_attribute(i, "inputmode", u.get(We)), u.set_attribute(a, "aria-label", u.get(W) ? u.get(B).hidePassword : u.get(B).showPassword);
|
|
201
|
+
}, [() => Z()]), u.delegated("input", i, J), u.delegated("change", i, qe), u.event("blur", i, Y), u.event("focus", i, X), u.delegated("click", a, Qe), u.append(t, r);
|
|
202
|
+
}, ct = (t) => {
|
|
203
|
+
var r = ve(), i = u.child(r), a = (t) => {
|
|
204
|
+
var n = b(), r = u.child(n, !0);
|
|
205
|
+
u.reset(n), u.template_effect(() => {
|
|
206
|
+
u.set_attribute(n, "id", u.get(Je)), u.set_attribute(n, "data-testid", p["data-testid"] ? `${p["data-testid"]}-prefix` : void 0), u.set_class(n, 1, `${e.body ?? ""} shrink-0 self-stretch flex items-center px-3 bg-bg-tertiary tone-muted border border-r-0 rounded-l-lg select-none ${u.get(G) ? "border-status-error-border" : "border-stroke-primary"} ${_() ? "opacity-50" : ""}`), u.set_text(r, R());
|
|
207
|
+
}), u.append(t, n);
|
|
208
|
+
};
|
|
209
|
+
u.if(i, (e) => {
|
|
210
|
+
R() && e(a);
|
|
211
|
+
});
|
|
212
|
+
var o = u.sibling(i, 2), s = (e) => {
|
|
213
|
+
var t = de(), n = u.child(t);
|
|
214
|
+
u.snippet(n, () => p.leftIcon), u.reset(t), u.append(e, t);
|
|
215
|
+
};
|
|
216
|
+
u.if(o, (e) => {
|
|
217
|
+
p.leftIcon && e(s);
|
|
218
|
+
});
|
|
219
|
+
var c = u.sibling(o, 2);
|
|
220
|
+
u.remove_input_defaults(c), c.required = !1, u.autofocus(c, Fe()), u.bind_this(c, (e) => u.set(H, e), () => u.get(H));
|
|
221
|
+
var l = u.sibling(c, 2), ee = (e) => {
|
|
222
|
+
var t = fe(), n = u.child(t);
|
|
223
|
+
u.snippet(n, () => p.rightIcon), u.reset(t), u.append(e, t);
|
|
224
|
+
}, d = (e) => {
|
|
225
|
+
var t = pe();
|
|
226
|
+
ne(u.child(t), { class: "w-4 h-4" }), u.reset(t), u.template_effect(() => u.set_attribute(t, "aria-label", u.get(B).clearInput)), u.delegated("click", t, $e), u.append(e, t);
|
|
227
|
+
}, f = (e) => {
|
|
228
|
+
var t = ge(), n = u.child(t), r = (e) => {
|
|
229
|
+
var t = me();
|
|
230
|
+
u.template_effect(() => {
|
|
231
|
+
u.set_attribute(t, "src", y()), u.set_attribute(t, "alt", u.get(B).buttonIconAlt);
|
|
232
|
+
}), u.append(e, t);
|
|
233
|
+
};
|
|
234
|
+
u.if(n, (e) => {
|
|
235
|
+
y() && e(r);
|
|
236
|
+
});
|
|
237
|
+
var i = u.sibling(n, 2), a = (e) => {
|
|
238
|
+
var t = he(), n = u.child(t, !0);
|
|
239
|
+
u.reset(t), u.template_effect(() => u.set_text(n, x())), u.append(e, t);
|
|
240
|
+
};
|
|
241
|
+
u.if(i, (e) => {
|
|
242
|
+
x() && e(a);
|
|
243
|
+
}), u.reset(t), u.template_effect(() => {
|
|
244
|
+
t.disabled = Le(), u.set_class(t, 1, `absolute inset-y-0 right-0 gap-1 flex items-center justify-center px-4 text-brand-primary hover:text-brand-primary disabled:opacity-50 disabled:cursor-not-allowed ${k() || A() || O() ? "mb-7" : ""}`);
|
|
245
|
+
}), u.delegated("click", t, nt), u.append(e, t);
|
|
246
|
+
};
|
|
247
|
+
u.if(l, (e) => {
|
|
248
|
+
p.rightIcon ? e(ee) : L() && u.get(V) ? e(d, 1) : je() && (y() || x()) && e(f, 2);
|
|
249
|
+
});
|
|
250
|
+
var te = u.sibling(l, 2), m = (e) => {
|
|
251
|
+
var t = _e();
|
|
252
|
+
u.template_effect(() => {
|
|
253
|
+
u.set_attribute(t, "src", v()), u.set_attribute(t, "alt", u.get(B).inputIconAlt);
|
|
254
|
+
}), u.append(e, t);
|
|
255
|
+
};
|
|
256
|
+
u.if(te, (e) => {
|
|
257
|
+
v() && w() !== "textarea" && !p.rightIcon && !(L() && u.get(V)) && e(m);
|
|
258
|
+
}), u.reset(r), u.template_effect((t) => {
|
|
259
|
+
u.set_attribute(c, "id", u.get(z)), u.set_attribute(c, "type", u.get(Xe)), u.set_attribute(c, "name", D()), u.set_attribute(c, "placeholder", T()), u.set_value(c, u.get(V)), u.set_attribute(c, "maxlength", S()), u.set_attribute(c, "minlength", C()), u.set_class(c, 1, `${e.body ?? ""} w-full ${R() ? "min-w-0 " : ""}${u.get(Ze) ?? ""} bg-bg-secondary border ${R() ? "rounded-r-lg" : "rounded-lg"} ${n.emphasis ?? ""} placeholder-muted-foreground transition-all focus:outline-none focus:ring-4 focus:ring-focus-ring ${u.get(G) ? "border-status-error-border" : "border-stroke-primary hover:border-interactive-border focus:border-interactive-border"} ${v() || p.rightIcon || L() && u.get(V) ? "pr-10" : ""} ${p.leftIcon ? "pl-10" : ""} ${t ?? ""} ${u.get(q) && !R() ? "focus:scale-grow" : ""} ${_() ? "opacity-50 cursor-not-allowed" : ""}`), c.disabled = _(), c.readOnly = j(), u.set_attribute(c, "aria-required", g()), u.set_attribute(c, "aria-invalid", u.get(G)), u.set_attribute(c, "aria-describedby", u.get(Ye)), u.set_attribute(c, "data-testid", p["data-testid"]), u.set_attribute(c, "autocomplete", u.get(Ge)), u.set_attribute(c, "inputmode", u.get(We));
|
|
260
|
+
}, [() => Z()]), u.delegated("input", c, J), u.delegated("change", c, qe), u.event("blur", c, Y), u.event("focus", c, X), u.delegated("keydown", c, et), u.append(t, r);
|
|
261
|
+
};
|
|
262
|
+
u.if($, (e) => {
|
|
263
|
+
w() === "textarea" ? e(ot) : w() === "password" && N() ? e(st, 1) : e(ct, -1);
|
|
264
|
+
});
|
|
265
|
+
var lt = u.sibling($, 2), ut = (t) => {
|
|
266
|
+
var n = ye(), r = u.child(n);
|
|
267
|
+
ie(r, { class: "w-4 h-4 shrink-0 text-accent-danger mt-0.5" });
|
|
268
|
+
var i = u.sibling(r, 2), a = u.child(i, !0);
|
|
269
|
+
u.reset(i), u.reset(n), u.template_effect(() => {
|
|
270
|
+
u.set_attribute(n, "id", u.get(K)), u.set_class(i, 1, u.clsx(e.error)), u.set_text(a, O());
|
|
271
|
+
}), u.transition(3, n, () => s, () => ({
|
|
272
|
+
duration: c.normal,
|
|
273
|
+
easing: l.out
|
|
274
|
+
})), u.append(t, n);
|
|
275
|
+
}, dt = (t) => {
|
|
276
|
+
var n = xe(), r = u.child(n), i = (e) => {
|
|
277
|
+
var t = be();
|
|
278
|
+
u.template_effect(() => {
|
|
279
|
+
u.set_attribute(t, "src", Oe() || ke()), u.set_attribute(t, "alt", u.get(B).helperIconAlt);
|
|
280
|
+
}), u.append(e, t);
|
|
281
|
+
};
|
|
282
|
+
u.if(r, (e) => {
|
|
283
|
+
(Oe() || ke()) && e(i);
|
|
284
|
+
});
|
|
285
|
+
var a = u.sibling(r, 2), o = u.child(a, !0);
|
|
286
|
+
u.reset(a), u.reset(n), u.template_effect(() => {
|
|
287
|
+
u.set_class(n, 1, `mt-2 flex items-center ${e.xsMuted} opacity-65`), u.set_text(o, k() || A());
|
|
288
|
+
}), u.append(t, n);
|
|
289
|
+
};
|
|
290
|
+
u.if(lt, (e) => {
|
|
291
|
+
O() ? e(ut) : (k() || A()) && e(dt, 1);
|
|
292
|
+
}), u.reset(at), u.reset(Q), u.append(f, Q), u.pop();
|
|
293
|
+
}
|
|
294
|
+
u.delegate([
|
|
295
|
+
"input",
|
|
296
|
+
"change",
|
|
297
|
+
"click",
|
|
298
|
+
"keydown"
|
|
299
|
+
]);
|
|
300
|
+
//#endregion
|
|
301
|
+
export { ne as i, g as n, ie as r, x as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { O as e } from "./Button-klwKgfhG.js";
|
|
2
|
-
import { t } from "./Input-
|
|
2
|
+
import { t } from "./Input-DMfgmBL7.js";
|
|
3
3
|
import { d as n, n as r, r as i } from "./z-index-Bo0dqmiq.js";
|
|
4
4
|
import { t as a } from "./lazyOnce-CCfEO1xG.js";
|
|
5
5
|
import "svelte/internal/disclose-version";
|
|
@@ -4,8 +4,9 @@ import { A as i, C as a, g as o, k as s, x as c } from "./defaultLabels-BkjXKQDd
|
|
|
4
4
|
import { B as l, R as u } from "./orders-DABdaHOy.js";
|
|
5
5
|
import { t as d } from "./Heading-D6bWtGZA.js";
|
|
6
6
|
import { c as f, i as p, s as m, t as h } from "./to-event-card-props-Cr5Uq0Ef.js";
|
|
7
|
-
import {
|
|
8
|
-
import { z as
|
|
7
|
+
import { n as g } from "./imageUrl-Bata3II2.js";
|
|
8
|
+
import { z as _ } from "./api-Di0gC83p.js";
|
|
9
|
+
import { t as v } from "./event-DY17tQ0r.js";
|
|
9
10
|
import { t as y } from "./venue-CBos8YTa.js";
|
|
10
11
|
import "svelte/internal/disclose-version";
|
|
11
12
|
import * as b from "svelte/internal/client";
|
|
@@ -213,7 +214,7 @@ function F(e, t, n = !1) {
|
|
|
213
214
|
return r === "sold_out" || r === "soldout" ? "sold_out" : r === "coming_soon" || r === "comingsoon" ? "coming_soon" : r === "sales_ended" || r === "salesended" ? "sales_ended" : "on_sale";
|
|
214
215
|
}
|
|
215
216
|
function I(e) {
|
|
216
|
-
let r =
|
|
217
|
+
let r = v(e), i = r.venue || {}, o = a(r.timeZone || r.timezone || i.timeZone || i.timezone), s = (e.availableTickets || []).map((e) => ({
|
|
217
218
|
id: e.id || e.ID,
|
|
218
219
|
name: e.name || e.title || "",
|
|
219
220
|
description: e.description || void 0,
|
|
@@ -227,7 +228,7 @@ function I(e) {
|
|
|
227
228
|
salesStartDate: e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart || void 0,
|
|
228
229
|
salesEndDate: e.salesEnd || e.saleEnd || e.onSaleEnd || void 0,
|
|
229
230
|
isDonation: e.type === 2 || e.ticketType === 2 || e.isDonation === !0,
|
|
230
|
-
isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >=
|
|
231
|
+
isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= _.HIDDEN,
|
|
231
232
|
ticketType: e.type || e.ticketType || void 0,
|
|
232
233
|
sectionName: e.sectionName || e.section || void 0
|
|
233
234
|
})), c = s.filter((e) => !e.isHidden && !e.isDonation && e.status === "on_sale"), l = c.reduce((e, t) => e + t.quantityAvailable, 0), u = c.reduce((e, t) => e + t.quantityTotal, 0), d = e.hasPurchasableHiddenTickets === !0, f = F(r.status, s, d), p = e.image || e.imageUrl || e.image_url || "", m = p.startsWith("http") ? p : g(p, { cdn: !0 }), h = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as e } from "./Button-klwKgfhG.js";
|
|
2
|
-
import { t } from "./Event-
|
|
3
|
-
import { a as n } from "./RecommendationsRail-
|
|
2
|
+
import { t } from "./Event-BIqxB0kY.js";
|
|
3
|
+
import { a as n } from "./RecommendationsRail-Dmq3C4UQ.js";
|
|
4
4
|
import { n as r } from "./ScarcityBadge-BJrsvt6e.js";
|
|
5
5
|
import { t as i } from "./__SKIP_PATHS__-C0ixDSSm.js";
|
|
6
6
|
import "svelte/internal/disclose-version";
|
|
@@ -4,7 +4,7 @@ import { t as i } from "./ArrowLeftIcon-DahiD9EF.js";
|
|
|
4
4
|
import { t as a } from "./CalendarIcon-DOAS1a6F.js";
|
|
5
5
|
import { t as o } from "./ChevronDownIcon-CiYpE3Hq.js";
|
|
6
6
|
import { n as s, t as c } from "./MailIcon-CqCCKGgC.js";
|
|
7
|
-
import { n as l, o as u, r as d, t as f } from "./RecommendationsRail-
|
|
7
|
+
import { n as l, o as u, r as d, t as f } from "./RecommendationsRail-Dmq3C4UQ.js";
|
|
8
8
|
import { n as p } from "./copyToClipboard-zcPgoppJ.js";
|
|
9
9
|
import { U as m, V as h, i as g } from "./defaultLabels-BkjXKQDd.js";
|
|
10
10
|
import { H as _, Q as v, X as y, _ as b, et as x, s as S } from "./orders-DABdaHOy.js";
|
|
@@ -16,7 +16,7 @@ import { c as k, r as A } from "./pixels-BVOE_JFH.js";
|
|
|
16
16
|
import { i as j, n as M, t as N } from "./i18n-BpodazP1.js";
|
|
17
17
|
import { n as P, t as F } from "./i18n--YZExMpe.js";
|
|
18
18
|
import { t as I } from "./__SKIP_PATHS__-C0ixDSSm.js";
|
|
19
|
-
import { C as ee, d as L, l as R, n as te } from "./utils-
|
|
19
|
+
import { C as ee, d as L, l as R, n as te } from "./utils-D3cl-uGb.js";
|
|
20
20
|
import { n as z, t as B } from "./constants-CQ8nJvPW.js";
|
|
21
21
|
import { a as V, i as H, n as U, o as ne, r as W, s as G } from "./showcase-state-options-Dwn2NLOM.js";
|
|
22
22
|
import { n as re, t as ie } from "./buyerEmail-BfCq-gDt.js";
|
|
@@ -1,40 +1,13 @@
|
|
|
1
1
|
import { x as e } from "./defaultLabels-BkjXKQDd.js";
|
|
2
|
-
|
|
3
|
-
function t(e, t) {
|
|
4
|
-
if (typeof e == "string") return e;
|
|
5
|
-
let n = globalThis.process?.env?.[t];
|
|
6
|
-
return typeof n == "string" ? n : void 0;
|
|
7
|
-
}
|
|
8
|
-
function n(e, n, r) {
|
|
9
|
-
let i = t(e, n);
|
|
10
|
-
if (i === void 0) return r;
|
|
11
|
-
let a = i.trim().replace(/\/+$/, "");
|
|
12
|
-
return a === "" ? r : a;
|
|
13
|
-
}
|
|
14
|
-
var r = n(void 0, "PUBLIC_IMAGE_ORIGIN_BASE", "https://moxy.sfo3.digitaloceanspaces.com"), i = n(void 0, "PUBLIC_IMAGE_CDN_BASE", "https://moxy.sfo3.cdn.digitaloceanspaces.com");
|
|
15
|
-
function a(e, t = {}) {
|
|
16
|
-
let n = typeof t == "string" ? { fallback: t } : t, a = n.fallback ?? "", o = n.cdn ?? !0;
|
|
17
|
-
if (!e || e.trim() === "") return a;
|
|
18
|
-
if (e.startsWith("http") || e.startsWith("data:") || e.startsWith("blob:")) return e;
|
|
19
|
-
let s = `/${e.replace(/^\/+/, "")}`;
|
|
20
|
-
return `${o ? i : r}${s}`;
|
|
21
|
-
}
|
|
22
|
-
function o(e, t = {}) {
|
|
23
|
-
let { placeholder: n = "", cdn: r } = t;
|
|
24
|
-
return a(e.image || e.coverImage || e.imageUrl || e.imageURL || e.image_url || "", {
|
|
25
|
-
fallback: n,
|
|
26
|
-
cdn: r
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
2
|
+
import { n as t } from "./imageUrl-Bata3II2.js";
|
|
30
3
|
//#region src/lib/api/transformers/event.ts
|
|
31
|
-
function
|
|
32
|
-
return
|
|
4
|
+
function n(e) {
|
|
5
|
+
return t(e, { cdn: !0 });
|
|
33
6
|
}
|
|
34
|
-
function
|
|
35
|
-
return
|
|
7
|
+
function r(e) {
|
|
8
|
+
return n(e.imageUrl || e.imageURL || e.image_url || e.image || "");
|
|
36
9
|
}
|
|
37
|
-
function
|
|
10
|
+
function i(e) {
|
|
38
11
|
switch (e) {
|
|
39
12
|
case "available":
|
|
40
13
|
case "sold_out":
|
|
@@ -43,10 +16,10 @@ function l(e) {
|
|
|
43
16
|
default: return null;
|
|
44
17
|
}
|
|
45
18
|
}
|
|
46
|
-
function
|
|
19
|
+
function a(t) {
|
|
47
20
|
let n = t.ctaState || t.cta_state;
|
|
48
21
|
if (n) {
|
|
49
|
-
let e =
|
|
22
|
+
let e = i(n);
|
|
50
23
|
if (e) return e;
|
|
51
24
|
}
|
|
52
25
|
if (t.isCancelled || t.is_cancelled) return "ended";
|
|
@@ -55,15 +28,15 @@ function u(t) {
|
|
|
55
28
|
let e = Date.now();
|
|
56
29
|
if (r.getTime() < e) return "ended";
|
|
57
30
|
}
|
|
58
|
-
let
|
|
59
|
-
if (
|
|
60
|
-
let
|
|
61
|
-
return
|
|
31
|
+
let a = t.ticketsAvailable ?? t.tickets_available;
|
|
32
|
+
if (a !== void 0) return a <= 0 ? "sold_out" : "available";
|
|
33
|
+
let o = t.availableTickets || t.available_tickets || t.tickets || [];
|
|
34
|
+
return o.length === 0 ? "coming_soon" : o.reduce((e, t) => {
|
|
62
35
|
let n = t.quantityAvailable ?? t.quantity_available ?? t.quantity ?? 0, r = t.quantitySold ?? t.quantity_sold ?? 0;
|
|
63
36
|
return e + Math.max(0, n - r);
|
|
64
37
|
}, 0) <= 0 ? "sold_out" : "available";
|
|
65
38
|
}
|
|
66
|
-
function
|
|
39
|
+
function o(e) {
|
|
67
40
|
let t = e;
|
|
68
41
|
return {
|
|
69
42
|
id: t.id || t.ID,
|
|
@@ -84,8 +57,8 @@ function d(e) {
|
|
|
84
57
|
sortOrder: t.sortOrder || t.sort_order || 0
|
|
85
58
|
};
|
|
86
59
|
}
|
|
87
|
-
function
|
|
88
|
-
let t = e, n = (t.availableTickets || t.available_tickets || t.tickets || []).map(
|
|
60
|
+
function s(e) {
|
|
61
|
+
let t = e, n = (t.availableTickets || t.available_tickets || t.tickets || []).map(o), i = n.map((e) => e.price).filter((e) => e > 0), s = i.length > 0 ? Math.min(...i) : void 0, c = i.length > 0 ? Math.max(...i) : void 0;
|
|
89
62
|
return {
|
|
90
63
|
eventID: t.eventID || t.id || t.ID || 0,
|
|
91
64
|
id: t.id || t.ID,
|
|
@@ -102,18 +75,18 @@ function f(e) {
|
|
|
102
75
|
venueName: t.venueName || t.venue_name,
|
|
103
76
|
venueAddress: t.venueAddress || t.venue_address,
|
|
104
77
|
location: t.location || t.venueAddress || t.venue_address,
|
|
105
|
-
imageUrl:
|
|
106
|
-
imageURL:
|
|
78
|
+
imageUrl: r(t),
|
|
79
|
+
imageURL: r(t),
|
|
107
80
|
status: t.status,
|
|
108
81
|
isPublished: t.isPublished ?? t.is_published,
|
|
109
82
|
isCancelled: t.isCancelled ?? t.is_cancelled,
|
|
110
83
|
availableTickets: n,
|
|
111
84
|
ticketsAvailable: t.ticketsAvailable ?? t.tickets_available ?? n.reduce((e, t) => e + (t.quantityAvailable || 0), 0),
|
|
112
85
|
ticketsSold: t.ticketsSold ?? t.tickets_sold,
|
|
113
|
-
minPrice: t.minPrice ?? t.min_price ??
|
|
114
|
-
maxPrice: t.maxPrice ?? t.max_price ??
|
|
86
|
+
minPrice: t.minPrice ?? t.min_price ?? s,
|
|
87
|
+
maxPrice: t.maxPrice ?? t.max_price ?? c,
|
|
115
88
|
ctaText: t.ctaText || t.cta_text,
|
|
116
|
-
ctaState:
|
|
89
|
+
ctaState: a(t),
|
|
117
90
|
showPerformers: t.showPerformers ?? t.show_performers,
|
|
118
91
|
eventSeriesId: t.eventSeriesId || t.event_series_id,
|
|
119
92
|
seriesInstanceNumber: t.seriesInstanceNumber || t.series_instance_number,
|
|
@@ -150,4 +123,4 @@ function f(e) {
|
|
|
150
123
|
};
|
|
151
124
|
}
|
|
152
125
|
//#endregion
|
|
153
|
-
export {
|
|
126
|
+
export { s as t };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { c as e, d as t, i as n, s as r, u as i } from "./scarcity-CJ6IsR7f.js";
|
|
2
2
|
import { C as a } from "./defaultLabels-BkjXKQDd.js";
|
|
3
|
-
import {
|
|
4
|
-
import { B as
|
|
3
|
+
import { t as o } from "./imageUrl-Bata3II2.js";
|
|
4
|
+
import { B as s, H as c, L as l, P as u, U as d, V as f } from "./api-Di0gC83p.js";
|
|
5
|
+
import { t as p } from "./event-DY17tQ0r.js";
|
|
5
6
|
//#region src/lib/utils/event-transform.js
|
|
6
7
|
var m = "data:image/svg+xml," + encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 300" fill="none">
|
|
7
|
-
<rect width="200" height="300" fill="${
|
|
8
|
-
<rect x="60" y="90" width="80" height="80" rx="10" fill="${
|
|
9
|
-
<circle cx="85" cy="115" r="10" fill="${
|
|
10
|
-
<path d="M70 155 L100 125 L130 155 L130 155" stroke="${
|
|
8
|
+
<rect width="200" height="300" fill="${u[200]}"/>
|
|
9
|
+
<rect x="60" y="90" width="80" height="80" rx="10" fill="${u[300]}"/>
|
|
10
|
+
<circle cx="85" cy="115" r="10" fill="${u[400]}"/>
|
|
11
|
+
<path d="M70 155 L100 125 L130 155 L130 155" stroke="${u[400]}" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
11
12
|
</svg>`);
|
|
12
13
|
function h(e) {
|
|
13
14
|
return o(e, { placeholder: m });
|
|
@@ -73,7 +74,7 @@ var S = {
|
|
|
73
74
|
function C(e, t = { mode: S.DETAIL }) {
|
|
74
75
|
let { mode: n = S.DETAIL } = t;
|
|
75
76
|
if (!e) return n === S.BROWSE ? D() : O();
|
|
76
|
-
let r =
|
|
77
|
+
let r = p(e), i = a(r.timeZone || r.timezone), o = h(e), s = {
|
|
77
78
|
id: r.id,
|
|
78
79
|
name: r.title || "",
|
|
79
80
|
image: o,
|
|
@@ -81,23 +82,23 @@ function C(e, t = { mode: S.DETAIL }) {
|
|
|
81
82
|
startDateTime: r.startDateTime || null,
|
|
82
83
|
salesStatus: r.salesStatus
|
|
83
84
|
};
|
|
84
|
-
return n === S.BROWSE ? w(e, r,
|
|
85
|
+
return n === S.BROWSE ? w(e, r, s, i) : T(e, r, s, i, o);
|
|
85
86
|
}
|
|
86
87
|
function w(e, t, r, i) {
|
|
87
|
-
let a = t.startDateTime ? n(t.startDateTime, i) : "",
|
|
88
|
+
let a = t.startDateTime ? n(t.startDateTime, i) : "", u;
|
|
88
89
|
if (typeof t.ticketsRemaining == "number" && typeof t.ticketsTotal == "number") {
|
|
89
90
|
let e = t.ticketsRemaining, n = t.ticketsTotal;
|
|
90
|
-
|
|
91
|
+
u = {
|
|
91
92
|
totalRemaining: e,
|
|
92
93
|
totalCapacity: n,
|
|
93
94
|
isSoldOut: n > 0 && e <= 0
|
|
94
95
|
};
|
|
95
96
|
} else {
|
|
96
|
-
let t =
|
|
97
|
+
let t = c(e.availableTickets || [], {
|
|
97
98
|
excludeDoorOnly: !0,
|
|
98
99
|
publicOnly: !0
|
|
99
100
|
});
|
|
100
|
-
|
|
101
|
+
u = s(t);
|
|
101
102
|
}
|
|
102
103
|
return {
|
|
103
104
|
...r,
|
|
@@ -108,10 +109,10 @@ function w(e, t, r, i) {
|
|
|
108
109
|
description: t.description || t.eventSummary || "",
|
|
109
110
|
venueId: t.venueId,
|
|
110
111
|
eventSeriesId: t.eventSeriesId || null,
|
|
111
|
-
ticketsRemaining:
|
|
112
|
-
ticketsTotal:
|
|
113
|
-
isSoldOut:
|
|
114
|
-
hasPurchasableHiddenTickets:
|
|
112
|
+
ticketsRemaining: u.totalRemaining,
|
|
113
|
+
ticketsTotal: u.totalCapacity,
|
|
114
|
+
isSoldOut: u.isSoldOut,
|
|
115
|
+
hasPurchasableHiddenTickets: l(e),
|
|
115
116
|
stageId: t.stageId ?? null,
|
|
116
117
|
eventCategoryTypes: t.eventCategoryTypes ?? null,
|
|
117
118
|
ageRestriction: t.ageRestriction ?? null,
|
|
@@ -122,8 +123,8 @@ function w(e, t, r, i) {
|
|
|
122
123
|
function T(e, t, n, r, i) {
|
|
123
124
|
let a = (e.availableTickets || []).map((e) => ({
|
|
124
125
|
...e,
|
|
125
|
-
status:
|
|
126
|
-
})), o =
|
|
126
|
+
status: f(e)
|
|
127
|
+
})), o = c(a, {
|
|
127
128
|
excludeDoorOnly: !1,
|
|
128
129
|
publicOnly: !0
|
|
129
130
|
}), s = x(t.startDateTime, r);
|
|
@@ -140,14 +141,14 @@ function T(e, t, n, r, i) {
|
|
|
140
141
|
location: t.venue?.googleLocationNameCache || t.venue?.address || "",
|
|
141
142
|
...s,
|
|
142
143
|
coverImage: i,
|
|
143
|
-
price:
|
|
144
|
+
price: d(e.availableTickets),
|
|
144
145
|
status: t.status || "On Sale",
|
|
145
146
|
eventSummary: t.eventSummary,
|
|
146
147
|
password: t.password,
|
|
147
148
|
availableTickets: a,
|
|
148
149
|
publicTickets: o,
|
|
149
150
|
...e.addOns ? { addOns: e.addOns } : {},
|
|
150
|
-
hasPurchasableHiddenTickets:
|
|
151
|
+
hasPurchasableHiddenTickets: l(e),
|
|
151
152
|
doorsOpenTime: t.doorsOpenTime,
|
|
152
153
|
venue: t.venue,
|
|
153
154
|
venueID: t.venueId,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/utils/imageUrl.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
if (typeof e == "string") return e;
|
|
4
|
+
let n = globalThis.process?.env?.[t];
|
|
5
|
+
return typeof n == "string" ? n : void 0;
|
|
6
|
+
}
|
|
7
|
+
function t(t, n, r) {
|
|
8
|
+
let i = e(t, n);
|
|
9
|
+
if (i === void 0) return r;
|
|
10
|
+
let a = i.trim().replace(/\/+$/, "");
|
|
11
|
+
return a === "" ? r : a;
|
|
12
|
+
}
|
|
13
|
+
var n = t(void 0, "PUBLIC_IMAGE_ORIGIN_BASE", "https://moxy.sfo3.digitaloceanspaces.com"), r = t(void 0, "PUBLIC_IMAGE_CDN_BASE", "https://moxy.sfo3.cdn.digitaloceanspaces.com");
|
|
14
|
+
function i(e, t = {}) {
|
|
15
|
+
let i = typeof t == "string" ? { fallback: t } : t, a = i.fallback ?? "", o = i.cdn ?? !0;
|
|
16
|
+
if (!e || e.trim() === "") return a;
|
|
17
|
+
if (e.startsWith("http") || e.startsWith("data:") || e.startsWith("blob:")) return e;
|
|
18
|
+
let s = `/${e.replace(/^\/+/, "")}`;
|
|
19
|
+
return `${o ? r : n}${s}`;
|
|
20
|
+
}
|
|
21
|
+
function a(e, t = {}) {
|
|
22
|
+
let { placeholder: n = "", cdn: r } = t;
|
|
23
|
+
return i(e.image || e.coverImage || e.imageUrl || e.imageURL || e.image_url || "", {
|
|
24
|
+
fallback: n,
|
|
25
|
+
cdn: r
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { i as n, a as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as e } from "./Button-klwKgfhG.js";
|
|
2
2
|
import { $ as t, N as n, P as r, R as i, Y as a, Z as o, j as s, tt as c } from "./orders-DABdaHOy.js";
|
|
3
|
-
import "./event-transform-
|
|
3
|
+
import "./event-transform-BhldGx8B.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++) {
|