@getmicdrop/venue-calendar 4.2.2 → 4.2.3
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/{ArrowLeftIcon-DQ-h5PcH.js → ArrowLeftIcon-CxZXP_IT.js} +1 -1
- package/dist/{Badge-M6qZyfTF.js → Badge-Bv_MT-Vt.js} +10 -9
- package/dist/BlockPlaceholder-HZ6Coko5.js +52 -0
- package/dist/Button-C4uFgl7L.js +2141 -0
- package/dist/{Calendar-BX22svpz.js → Calendar-BKefLfIt.js} +292 -290
- package/dist/CalendarFoundryView-tDmFCrJ3.js +22292 -0
- package/dist/{CalendarIcon-DR197Ioz.js → CalendarIcon-CLGR_zlO.js} +1 -1
- package/dist/{CartView-B2VtVvZM.js → CartView-CHFlfWS9.js} +651 -644
- package/dist/{Checkout-BTqfjvDp.js → Checkout-C-A4t1eE.js} +92 -91
- package/dist/Checkout-CRX7dcRr.js +1807 -0
- package/dist/{CheckoutTimer-Cng5tcGO.js → CheckoutTimer-d3KUbevy.js} +5 -5
- package/dist/{ChevronDownIcon-C_RiK-BW.js → ChevronDownIcon-YtBeSqjf.js} +1 -1
- package/dist/{ClockIcon-BOJENuPq.js → ClockIcon-a9tJQ5El.js} +1 -1
- package/dist/{CloseIcon-Rc7tpX2a.js → CloseIcon-DSURK5co.js} +1 -1
- package/dist/CloseOutline-qpVa62mu.js +13 -0
- package/dist/{CollectionView-A1zP8yz5.js → CollectionView-BiBMllyw.js} +13 -12
- package/dist/CropImage-B0tj2_uN.js +404 -0
- package/dist/Event-1ZJVzqFN.js +3034 -0
- package/dist/{EventPage-hxrPKPhm.js → EventPage-C7K2yA4v.js} +168 -167
- package/dist/{Heading-B7VYbbfJ.js → Heading-Dfo3bjyn.js} +4 -3
- package/dist/Image-B3cEndLZ.js +87 -0
- package/dist/Input-DkYIFK4J.js +487 -0
- package/dist/{MailIcon-rxvK4Wga.js → MailIcon-DIrQpcGo.js} +1 -1
- package/dist/{Modal-BVD2O8hd.js → Modal-DrA1swbF.js} +2 -2
- package/dist/{ModalFooter-CfboEe1M.js → ModalFooter-r1NQNG9P.js} +59 -57
- package/dist/{PasswordInput-BAlq2j97.js → PasswordInput-DB4qa7kS.js} +4 -4
- package/dist/{ScarcityBadge-h7ygRD_C.js → ScarcityBadge-BJOm7_Ho.js} +4 -4
- package/dist/{SeriesPage-D-cwUNZM.js → SeriesPage-JVmqUSax.js} +5 -5
- package/dist/{Spinner-ChTN7t75.js → Spinner-BwiDys7C.js} +3 -3
- package/dist/{Success-CIAX5zmz.js → Success-DAE6gPZM.js} +77 -76
- package/dist/{TagIcon-V0qMu9wS.js → TagIcon-CrTNd8qE.js} +1 -1
- package/dist/{ViewTicketsEmbed-By-IcUJZ.js → ViewTicketsEmbed-Zx-mvP2p.js} +60 -59
- package/dist/{WarningCircleIcon-D32h6VDr.js → WarningCircleIcon-C5-op3Cy.js} +1 -1
- package/dist/{WarningTriIcon-BPDrCiKU.js → WarningTriIcon-BxIQn7c2.js} +1 -1
- package/dist/{__SKIP_PATHS__-DirqE5Xe.js → __SKIP_PATHS__-DyyiXBgB.js} +1 -1
- package/dist/api/types.d.ts +528 -528
- package/dist/{browser-25hnscei.js → browser-Um8Y6K99.js} +7 -7
- package/dist/{colors-5ifWyP6H.js → colors-MuuDk6KF.js} +30 -29
- package/dist/{constants-Dcj3kgZE.js → constants-CqrJv6nM.js} +73 -73
- package/dist/{copyToClipboard-CNxFW3ni.js → copyToClipboard-CTS9Wtmo.js} +1 -1
- package/dist/{createI18n-08XGDh1_.js → createI18n-DBUVdZra.js} +1 -1
- package/dist/{event-Cp5D4ctZ.js → event-BrptLro8.js} +1 -1
- package/dist/{event-transform-DSuEpMxr.js → event-transform-jFmHl0Qp.js} +4 -4
- package/dist/{eventStatusStream-CIZVH5Lp.js → eventStatusStream-D04pcbuu.js} +2 -2
- package/dist/{allowlist-BiUmz2AF.js → href-C8WGnROy.js} +21 -4
- package/dist/{i18n-CEeBd5Hi.js → i18n-CcJmTGJP.js} +11 -11
- package/dist/imageOptimizer-CB3wKJU8.js +47 -0
- package/dist/{labels-CtyfffZI.js → labels-Q4CaHsVM.js} +1 -1
- package/dist/{modalManager.svelte-BH-QJm9M.js → modalManager.svelte-qcVxl7C5.js} +2 -2
- package/dist/{order-totals-hcdvbJvw.js → order-totals-BImtvmoh.js} +15 -13
- package/dist/{orders-tzTe2hNM.js → orders-C8kt6c-E.js} +20 -19
- package/dist/{Input-W-QE9nWi.js → phoneUtils-FnBDCqO0.js} +694 -1132
- package/dist/{pixels-7kl8Fcjl.js → pixels-MEc7WYiV.js} +8 -7
- package/dist/{promo-BrMcoTYh.js → promo-DtLZRskK.js} +3 -3
- package/dist/{serverTotals-CpRaEe9K.js → serverTotals-BO126TTd.js} +1 -1
- package/dist/{shareCopyFeedback.svelte-DsyhrfiP.js → shareCopyFeedback.svelte-Dko8NIbm.js} +25 -25
- package/dist/{showcase-state-options-B2XfybZq.js → showcase-state-options-BoJxiEsg.js} +1 -1
- package/dist/sortable.esm--ZtTTTPp.js +1451 -0
- package/dist/timezones-C5l0SSHK.js +2030 -0
- package/dist/{to-event-card-props-VPne8W4I.js → to-event-card-props-BAHzloEA.js} +24 -23
- package/dist/{utils-DJVlBMbw.js → utils-Ts4-U13Y.js} +3 -3
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +200 -199
- package/dist/venue-calendar.iife.js +63 -62
- package/dist/venue-calendar.umd.js +60 -59
- package/dist/z-index-B0Vk_Mp1.js +27 -0
- package/package.json +220 -220
- package/dist/BlockPlaceholder-IOcqxTx2.js +0 -62
- package/dist/CalendarFoundryView-Ct39xn0Q.js +0 -23561
- package/dist/Checkout-CXcjQfbc.js +0 -1805
- package/dist/Event-C_0lUZvV.js +0 -3040
- package/dist/Image-DBJAfLYe.js +0 -81
- package/dist/cancel-Cq2Q8qW7.js +0 -59
- package/dist/timezones-Cq1mLtfM.js +0 -4170
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/de.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/es.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/fr.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/id.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/it.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/ja.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/ko.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/nl.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/pl.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/tr.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/zh.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/de.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/es.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/fr.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/id.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/it.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/ja.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/ko.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/nl.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/pl.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/pt-br.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/tr.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/zh.js +0 -0
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as t, O as n } from "./constants-
|
|
3
|
-
import { n as r } from "./promo-
|
|
4
|
-
var i = .
|
|
1
|
+
import { L as e } from "./timezones-C5l0SSHK.js";
|
|
2
|
+
import { D as t, O as n } from "./constants-CqrJv6nM.js";
|
|
3
|
+
import { n as r } from "./promo-DtLZRskK.js";
|
|
4
|
+
var i = .029, a = .3;
|
|
5
|
+
function o(e) {
|
|
6
|
+
return e.discountedPrice ?? e.price;
|
|
7
|
+
}
|
|
5
8
|
function s(e, r = {}) {
|
|
9
|
+
if (e <= 0) return 0;
|
|
6
10
|
let i = r.serviceFeePercentage ?? 5, a = (r.serviceFeeCents ?? 150) / 100;
|
|
7
11
|
switch (t(r.serviceFeeChargeType)) {
|
|
8
12
|
case "percentage": return n(i / 100 * e);
|
|
@@ -11,7 +15,7 @@ function s(e, r = {}) {
|
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
function c(e, t) {
|
|
14
|
-
return (
|
|
18
|
+
return (i * (e + t) + a) / .971;
|
|
15
19
|
}
|
|
16
20
|
function l(e = {}) {
|
|
17
21
|
return e.absorbServiceFee === !0;
|
|
@@ -20,21 +24,19 @@ function u(e) {
|
|
|
20
24
|
return n(e.serviceFee + e.cardProcessing);
|
|
21
25
|
}
|
|
22
26
|
function d(e, t = {}) {
|
|
23
|
-
let r = n(e.reduce((e, t) => e + t
|
|
27
|
+
let r = n(e.reduce((e, t) => e + o(t) * t.quantity, 0));
|
|
24
28
|
if (r <= 0 || l(t)) return {
|
|
25
29
|
face: r,
|
|
26
30
|
serviceFee: 0,
|
|
27
31
|
cardProcessing: 0,
|
|
28
32
|
total: r
|
|
29
33
|
};
|
|
30
|
-
let
|
|
31
|
-
|
|
32
|
-
let d = n(o), f = n(a);
|
|
33
|
-
return f + d > u && (f = Math.max(0, Math.floor((u - d) * 100) / 100)), {
|
|
34
|
+
let i = e.reduce((e, n) => e + Math.min(s(o(n), t), 10) * n.quantity, 0), a = c(r, i), u = n(a), d = n(i);
|
|
35
|
+
return {
|
|
34
36
|
face: r,
|
|
35
|
-
serviceFee:
|
|
36
|
-
cardProcessing:
|
|
37
|
-
total: n(r +
|
|
37
|
+
serviceFee: d,
|
|
38
|
+
cardProcessing: u,
|
|
39
|
+
total: n(r + d + u)
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
//#endregion
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as e, x as t } from "./Button-C4uFgl7L.js";
|
|
2
|
+
import { a as n, i as r, w as i } from "./timezones-C5l0SSHK.js";
|
|
2
3
|
//#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/ApiError.js
|
|
3
|
-
var a = class
|
|
4
|
+
var a = class e extends i {
|
|
4
5
|
constructor(e, t, n = {}) {
|
|
5
6
|
super(e, `API_${t}`, {
|
|
6
7
|
status: t,
|
|
@@ -10,22 +11,22 @@ var a = class r extends e {
|
|
|
10
11
|
}), this.name = "ApiError", this.endpoint = n.endpoint, this.method = n.method, this.requestId = n.requestId;
|
|
11
12
|
}
|
|
12
13
|
getUserMessage(e) {
|
|
13
|
-
return
|
|
14
|
+
return n(this.status, this.message, e);
|
|
14
15
|
}
|
|
15
16
|
isRetryable() {
|
|
16
17
|
return this.status >= 500 || this.status === 429;
|
|
17
18
|
}
|
|
18
|
-
static async fromResponse(
|
|
19
|
-
let a = `Request failed with status ${
|
|
19
|
+
static async fromResponse(t, n, i) {
|
|
20
|
+
let a = `Request failed with status ${t.status}`, o;
|
|
20
21
|
try {
|
|
21
|
-
let
|
|
22
|
-
a =
|
|
22
|
+
let e = await t.json();
|
|
23
|
+
a = r(e, a), o = e.details || e;
|
|
23
24
|
} catch {}
|
|
24
|
-
return new
|
|
25
|
-
endpoint:
|
|
25
|
+
return new e(a, t.status, {
|
|
26
|
+
endpoint: n,
|
|
26
27
|
method: i,
|
|
27
28
|
details: o,
|
|
28
|
-
requestId:
|
|
29
|
+
requestId: t.headers.get("x-request-id") || void 0
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
32
|
};
|
|
@@ -57,12 +58,12 @@ function c(e, t, n) {
|
|
|
57
58
|
}
|
|
58
59
|
return s(r, n);
|
|
59
60
|
}
|
|
60
|
-
function l(
|
|
61
|
-
if (!
|
|
61
|
+
function l(t, n, r) {
|
|
62
|
+
if (!t) return !1;
|
|
62
63
|
try {
|
|
63
|
-
return
|
|
64
|
-
} catch (
|
|
65
|
-
return
|
|
64
|
+
return t.setItem(n, JSON.stringify(r)), !0;
|
|
65
|
+
} catch (t) {
|
|
66
|
+
return e.warn(`storage: failed to write "${n}"`, t), !1;
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
function u(e, t) {
|
|
@@ -99,7 +100,7 @@ function re(e) {
|
|
|
99
100
|
}
|
|
100
101
|
//#endregion
|
|
101
102
|
//#region src/lib/config.js
|
|
102
|
-
var ie =
|
|
103
|
+
var ie = t("VC:config", { enabled: !0 }), g = null;
|
|
103
104
|
function ae(e) {
|
|
104
105
|
let t = e || null;
|
|
105
106
|
g && t && t !== g && ie.warn("[VC] setWidgetKey called again with a DIFFERENT key. The widget key is module-global, so every calendar on this page will now use the last one set — any element configured with the previous key will get 403s on its public reads and render empty. Give each element its own widget-key attribute (threaded per-instance) rather than calling setWidgetKey() more than once."), g = t;
|
|
@@ -130,7 +131,7 @@ function ue() {
|
|
|
130
131
|
}
|
|
131
132
|
//#endregion
|
|
132
133
|
//#region src/lib/api/client.ts
|
|
133
|
-
var b =
|
|
134
|
+
var b = t("VC"), de = "ABORTED";
|
|
134
135
|
function x(e, t) {
|
|
135
136
|
let n = t || _();
|
|
136
137
|
return n ? {
|
|
@@ -478,7 +479,7 @@ function Z() {
|
|
|
478
479
|
}
|
|
479
480
|
//#endregion
|
|
480
481
|
//#region src/lib/tracking/beacon.ts
|
|
481
|
-
var Be =
|
|
482
|
+
var Be = t("tracking"), Ve = /* @__PURE__ */ new Set([
|
|
482
483
|
"chunk_load_error",
|
|
483
484
|
"type_error",
|
|
484
485
|
"reference_error",
|
|
@@ -604,7 +605,7 @@ function rt(e, t, n, r) {
|
|
|
604
605
|
}
|
|
605
606
|
//#endregion
|
|
606
607
|
//#region src/lib/api/orders.ts
|
|
607
|
-
var $ =
|
|
608
|
+
var $ = t("VC");
|
|
608
609
|
async function it(e, t, n, r) {
|
|
609
610
|
try {
|
|
610
611
|
let i = await D(`${w()}/cart/${e}/payment-intent`, {
|