@getmicdrop/venue-calendar 4.2.33 → 4.2.35
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-B92-MN6-.js → ArrowLeftIcon-DS-NEije.js} +1 -1
- package/dist/{Badge-Bv_MT-Vt.js → Badge-DIHnRZlw.js} +1 -1
- package/dist/{BlockPlaceholder-DuE4xLS_.js → BlockPlaceholder-Dy9fStDr.js} +1 -1
- package/dist/{Calendar-CX3S7j_2.js → Calendar-CXwhGAmC.js} +19 -19
- package/dist/{CalendarFoundryView-CE5VMPRl.js → CalendarFoundryView-BRurhscw.js} +950 -950
- package/dist/{CalendarIcon-pJ01x71c.js → CalendarIcon-CvZ-GUH_.js} +1 -1
- package/dist/{CartView-BZALykSb.js → CartView-DT8DlMqQ.js} +532 -532
- package/dist/{Checkout-c6ExwNzk.js → Checkout-D3VqG09o.js} +173 -173
- package/dist/{Checkout-B6BHEAwF.js → Checkout-UU9C7CXV.js} +129 -129
- package/dist/{CheckoutTimer-Bz-HJhV2.js → CheckoutTimer-2WEgppW1.js} +5 -5
- package/dist/{ChevronDownIcon-k93EaHQh.js → ChevronDownIcon-DXbr-7H6.js} +1 -1
- package/dist/{ClockIcon-hnrV9bwg.js → ClockIcon-Dyx1LMo7.js} +1 -1
- package/dist/{CloseIcon-CdZ5mNTK.js → CloseIcon-NMHzwT75.js} +1 -1
- package/dist/{CollectionView-BMDKM-lg.js → CollectionView-DyMB_bPY.js} +9 -10
- package/dist/{Event-DvRnmTdU.js → Event-CXCOnkmi.js} +85 -85
- package/dist/EventPage-HlhaVqRG.js +981 -0
- package/dist/{Heading-Dfo3bjyn.js → Heading-DcZtRBSB.js} +1 -1
- package/dist/{Image-B3cEndLZ.js → Image-BZGbFJLw.js} +1 -1
- package/dist/{Input-BntIoPeV.js → Input-Cgdxdj6y.js} +1 -1
- package/dist/{MailIcon-CMyjGJ4_.js → MailIcon-D34sBBQX.js} +1 -1
- package/dist/{Modal-CpMs0l2W.js → Modal-BvT64ak1.js} +2 -2
- package/dist/{ModalFooter-Kdyt5XyP.js → ModalFooter-DM1dyl4S.js} +2 -2
- package/dist/{PasswordInput-C91gXtFY.js → PasswordInput-BNKrzXNm.js} +1 -1
- package/dist/{ScarcityBadge-C0YeWGkd.js → ScarcityBadge-DmbmsFlY.js} +23 -22
- package/dist/{SeriesPage-DNyhMA_k.js → SeriesPage-BXKz7PJV.js} +4 -4
- package/dist/{Spinner-BwiDys7C.js → Spinner-gpYLD9h6.js} +1 -1
- package/dist/{Success-BxvH6W_x.js → Success-DieJd6sx.js} +52 -52
- package/dist/{TagIcon-BkPcpKdu.js → TagIcon-Q7BC2QeQ.js} +1 -1
- package/dist/ViewTicketsEmbed-DqwHARj0.js +727 -0
- package/dist/{WarningCircleIcon-D78IFaPY.js → WarningCircleIcon-Dxi6_NlN.js} +1 -1
- package/dist/{WarningTriIcon-6WbGCso4.js → WarningTriIcon-BVNO82pk.js} +1 -1
- package/dist/{__SKIP_PATHS__-tAxwP7_6.js → __SKIP_PATHS__-BZ2V4IU4.js} +1 -1
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +300 -216
- package/dist/api/gift-cards.d.ts +1 -1
- package/dist/api/orders.d.ts +2 -2
- package/dist/api/waitlist.d.ts +6 -1
- package/dist/{colors-DbQNhbC_.js → colors-B3NG0RHG.js} +113 -117
- package/dist/constants-DqKf8bUn.js +356 -0
- package/dist/{copyToClipboard-DAGJHhtn.js → copyToClipboard-CLo_2bfp.js} +1 -1
- package/dist/{de-BG-86m10.js → de-8N03rEoe.js} +4 -1
- package/dist/{de-BZpzzwT9.js → de-tOW1Ez0s.js} +63 -1
- package/dist/{timezones-C5l0SSHK.js → defaultLabels-D_9CneL4.js} +507 -1
- package/dist/{es-9jwSoUSD.js → es-DrYewQpd.js} +51 -1
- package/dist/{es-B1RPM3H_.js → es-tRMGbtbB.js} +4 -1
- package/dist/{event-v8d4wRpB.js → event-CFDG8adb.js} +1 -1
- package/dist/{event-transform-lC22EDSL.js → event-transform-jJPAKgYX.js} +4 -4
- package/dist/{eventStatusStream-CopqZ2oa.js → eventStatusStream-wmEyQSgV.js} +5 -5
- package/dist/{fr-fYY2O8Ab.js → fr-Bs9xnPu6.js} +63 -1
- package/dist/{fr-B6FgrH9s.js → fr-DDnljtQz.js} +4 -1
- package/dist/{href-BH6l_kZx.js → href-BfMcUXhM.js} +2 -2
- package/dist/{i18n-CIVh_urJ.js → i18n-BgkKrB4o.js} +126 -126
- package/dist/i18n-DK3npqzN.js +28 -0
- package/dist/{id-But8qcA2.js → id-BLwvLobz.js} +63 -1
- package/dist/{id-CK7hal8E.js → id-BZshacSm.js} +4 -1
- package/dist/{it-BdV8d4GZ.js → it-B6Rbpjec.js} +4 -1
- package/dist/{it-Cr9Quauw.js → it-CQ_Y8YK3.js} +63 -1
- package/dist/{ja-DKVQltc4.js → ja-Bmj-bPuM.js} +4 -1
- package/dist/{ja-CNXwg0_H.js → ja-CeudRJqE.js} +63 -1
- package/dist/{ko-DtoIJliT.js → ko-DFwVxd-1.js} +63 -1
- package/dist/{ko-DpIk-4pN.js → ko-r-ecuHZ5.js} +4 -1
- package/dist/{labels-BUH8ouCu.js → labels-BHqxbbw9.js} +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/flow/de.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/flow/es.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/flow/fr.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/flow/id.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/flow/it.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/flow/ja.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/flow/ko.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/flow/nl.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/flow/pl.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/flow/pt-br.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/flow/tr.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/flow/zh.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/main/de.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/main/es.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/main/fr.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/main/id.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/main/it.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/main/ja.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/main/ko.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/main/nl.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/main/pl.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/main/pt-br.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/main/tr.js +1 -1
- package/dist/locales/{4.2.32 → 4.2.35}/main/zh.js +1 -1
- package/dist/{modalManager.svelte-C4dWVCst.js → modalManager.svelte-CrrDshW7.js} +2 -2
- package/dist/{nl-C-dVfidI.js → nl-CS1da1Bc.js} +4 -1
- package/dist/{nl-Dbs4YQMw.js → nl-CYc0p85Y.js} +63 -1
- package/dist/{order-totals-CeeD6GjZ.js → order-totals-D0JKhd70.js} +31 -31
- package/dist/{orders-BuGy4vpJ.js → orders-CCWPQsWb.js} +365 -209
- package/dist/{phoneUtils-BDV9Eggn.js → phoneUtils-aQHGh8C_.js} +1 -1
- package/dist/{pixels-D6vqcuy2.js → pixels-M2q8HRk_.js} +11 -11
- package/dist/{pl-Da6lsZXQ.js → pl-BSqAasUa.js} +63 -1
- package/dist/{pl-CnFcI33y.js → pl-C2bkE2WA.js} +4 -1
- package/dist/{promo-DtLZRskK.js → promo-CKvS9lia.js} +3 -3
- package/dist/{pt-br-6QYijxa0.js → pt-br--DIxBDjz.js} +4 -1
- package/dist/{pt-br-D1wHabRR.js → pt-br-CZs8_gFN.js} +63 -1
- package/dist/{serverTotals-t2UmKkhC.js → serverTotals-DGd3p1s5.js} +1 -1
- package/dist/{shareCopyFeedback.svelte-B-M53Wj2.js → shareCopyFeedback.svelte-DTOJruVM.js} +55 -55
- package/dist/{showcase-state-options-VZcqIjpF.js → showcase-state-options-Da3jPUQb.js} +1 -1
- package/dist/{to-event-card-props-CpXtfoKx.js → to-event-card-props-B5bsYKP4.js} +31 -31
- package/dist/{tr-Pv_m8usO.js → tr-Bk7x5MW7.js} +4 -1
- package/dist/{tr-CpN50zWw.js → tr-O80C2r5C.js} +63 -1
- package/dist/{utils-CtqaTDLB.js → utils-RE2aEa_D.js} +49 -49
- package/dist/venue-calendar.es.js +710 -734
- package/dist/venue-calendar.iife.js +56 -57
- package/dist/venue-calendar.umd.js +54 -55
- package/dist/{zh-CAAnH4T4.js → zh-C8kyVh24.js} +4 -1
- package/dist/{zh-CwlRq_aG.js → zh-ydknixkJ.js} +63 -1
- package/package.json +220 -220
- package/dist/EventPage-CTo8ynx6.js +0 -971
- package/dist/ViewTicketsEmbed-DVurn8FG.js +0 -690
- package/dist/constants-ENlpIS8i.js +0 -822
- package/dist/createI18n-DBUVdZra.js +0 -75
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as t,
|
|
3
|
-
import { n as r } from "./promo-
|
|
1
|
+
import { R as e } from "./defaultLabels-D_9CneL4.js";
|
|
2
|
+
import { D as t, E as n } from "./constants-DqKf8bUn.js";
|
|
3
|
+
import { n as r } from "./promo-CKvS9lia.js";
|
|
4
4
|
var i = .029, a = .3;
|
|
5
5
|
function o(e) {
|
|
6
6
|
return e.discountedPrice ?? e.price;
|
|
@@ -8,10 +8,10 @@ function o(e) {
|
|
|
8
8
|
function s(e, r = {}) {
|
|
9
9
|
if (e <= 0) return 0;
|
|
10
10
|
let i = r.serviceFeePercentage ?? 5, a = (r.serviceFeeCents ?? 150) / 100;
|
|
11
|
-
switch (
|
|
12
|
-
case "percentage": return
|
|
13
|
-
case "fixed": return
|
|
14
|
-
default: return
|
|
11
|
+
switch (n(r.serviceFeeChargeType)) {
|
|
12
|
+
case "percentage": return t(i / 100 * e);
|
|
13
|
+
case "fixed": return t(a);
|
|
14
|
+
default: return t(i / 100 * e + a);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
function c(e, t) {
|
|
@@ -21,63 +21,63 @@ function l(e = {}) {
|
|
|
21
21
|
return e.absorbServiceFee === !0;
|
|
22
22
|
}
|
|
23
23
|
function u(e) {
|
|
24
|
-
return
|
|
24
|
+
return t(e.serviceFee + e.cardProcessing);
|
|
25
25
|
}
|
|
26
|
-
function d(e,
|
|
27
|
-
let r =
|
|
28
|
-
if (r <= 0 || l(
|
|
26
|
+
function d(e, n = {}) {
|
|
27
|
+
let r = t(e.reduce((e, t) => e + o(t) * t.quantity, 0));
|
|
28
|
+
if (r <= 0 || l(n)) return {
|
|
29
29
|
face: r,
|
|
30
30
|
serviceFee: 0,
|
|
31
31
|
cardProcessing: 0,
|
|
32
32
|
total: r
|
|
33
33
|
};
|
|
34
|
-
let i = e.reduce((e,
|
|
34
|
+
let i = e.reduce((e, t) => e + Math.min(s(o(t), n), 10) * t.quantity, 0), a = c(r, i), u = t(a), d = t(i);
|
|
35
35
|
return {
|
|
36
36
|
face: r,
|
|
37
37
|
serviceFee: d,
|
|
38
38
|
cardProcessing: u,
|
|
39
|
-
total:
|
|
39
|
+
total: t(r + d + u)
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/lib/public-calendar-flow/order-totals.ts
|
|
44
|
-
function f(
|
|
44
|
+
function f(n, i, a, o, s) {
|
|
45
45
|
let c = [], l = 0, u = 0, d = 0, f = !1;
|
|
46
|
-
for (let
|
|
47
|
-
let
|
|
48
|
-
if (
|
|
49
|
-
let s =
|
|
46
|
+
for (let t of n) {
|
|
47
|
+
let n = i[t.id] ?? 0;
|
|
48
|
+
if (n <= 0) continue;
|
|
49
|
+
let s = t.isDonation || t.ticketType === 2, p = s ? parseFloat(a[t.id]) || 0 : t.price;
|
|
50
50
|
if (p == null || !Number.isFinite(p)) {
|
|
51
51
|
c.push({
|
|
52
|
-
ticketId: e(
|
|
53
|
-
ticketName:
|
|
54
|
-
quantity:
|
|
52
|
+
ticketId: e(t.id),
|
|
53
|
+
ticketName: t.name,
|
|
54
|
+
quantity: n,
|
|
55
55
|
unitPrice: null,
|
|
56
|
-
fee:
|
|
56
|
+
fee: t.fee,
|
|
57
57
|
subtotal: null,
|
|
58
58
|
isDonation: !1
|
|
59
59
|
}), f = !0;
|
|
60
60
|
continue;
|
|
61
61
|
}
|
|
62
|
-
let m = p, h = s ? 0 :
|
|
63
|
-
if (o.isApplied && o.discountAmount > 0 && !s && r(o.discountTicketIds,
|
|
62
|
+
let m = p, h = s ? 0 : t.fee, g = 0;
|
|
63
|
+
if (o.isApplied && o.discountAmount > 0 && !s && r(o.discountTicketIds, t.id)) {
|
|
64
64
|
if (o.discountType === "%") {
|
|
65
65
|
let e = o.discountAmount;
|
|
66
66
|
g = Math.min(m, e / 100 * m);
|
|
67
|
-
} else o.discountType === "$" && (d += m *
|
|
67
|
+
} else o.discountType === "$" && (d += m * n);
|
|
68
68
|
}
|
|
69
|
-
let _ = m *
|
|
69
|
+
let _ = m * n;
|
|
70
70
|
c.push({
|
|
71
|
-
ticketId: e(
|
|
72
|
-
ticketName:
|
|
73
|
-
quantity:
|
|
71
|
+
ticketId: e(t.id),
|
|
72
|
+
ticketName: t.name,
|
|
73
|
+
quantity: n,
|
|
74
74
|
unitPrice: m,
|
|
75
75
|
fee: h,
|
|
76
76
|
subtotal: _,
|
|
77
77
|
isDonation: s
|
|
78
|
-
}), l += _, u += g *
|
|
78
|
+
}), l += _, u += g * n;
|
|
79
79
|
}
|
|
80
|
-
return o.isApplied && o.discountAmount > 0 && o.discountType === "$" && (u = Math.min(o.discountAmount, d)), l =
|
|
80
|
+
return o.isApplied && o.discountAmount > 0 && o.discountType === "$" && (u = Math.min(o.discountAmount, d)), l = t(l), u = t(u), f ? {
|
|
81
81
|
lines: c,
|
|
82
82
|
subtotal: null,
|
|
83
83
|
fees: null,
|