@getmicdrop/venue-calendar 4.2.2 → 4.2.4
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-BGd-X_Qm.js} +1 -1
- package/dist/{Badge-M6qZyfTF.js → Badge-Bv_MT-Vt.js} +10 -9
- package/dist/BlockPlaceholder-Wl39H9Z7.js +52 -0
- package/dist/Button-C4uFgl7L.js +2141 -0
- package/dist/{Calendar-BX22svpz.js → Calendar-DafPX3k_.js} +292 -290
- package/dist/CalendarFoundryView-COkX5oQx.js +22292 -0
- package/dist/{CalendarIcon-DR197Ioz.js → CalendarIcon-CeQ1_FWq.js} +1 -1
- package/dist/{CartView-B2VtVvZM.js → CartView-nvVA8vWk.js} +651 -644
- package/dist/Checkout-BphC7gak.js +1807 -0
- package/dist/{Checkout-BTqfjvDp.js → Checkout-Ow2x8cNL.js} +92 -91
- package/dist/{CheckoutTimer-Cng5tcGO.js → CheckoutTimer-DJlt5M2b.js} +5 -5
- package/dist/{ChevronDownIcon-C_RiK-BW.js → ChevronDownIcon-y7oNyepp.js} +1 -1
- package/dist/{ClockIcon-BOJENuPq.js → ClockIcon-BGTz8dak.js} +1 -1
- package/dist/{CloseIcon-Rc7tpX2a.js → CloseIcon-C9SHeORJ.js} +1 -1
- package/dist/CloseOutline-qpVa62mu.js +13 -0
- package/dist/{CollectionView-A1zP8yz5.js → CollectionView-BAIlcuqO.js} +13 -12
- package/dist/CropImage-B0tj2_uN.js +404 -0
- package/dist/Event-CTaXLze_.js +3034 -0
- package/dist/{EventPage-hxrPKPhm.js → EventPage-LuA-aEYZ.js} +168 -167
- package/dist/{Heading-B7VYbbfJ.js → Heading-Dfo3bjyn.js} +4 -3
- package/dist/Image-B3cEndLZ.js +87 -0
- package/dist/Input-iXqece97.js +487 -0
- package/dist/{MailIcon-rxvK4Wga.js → MailIcon-xtNog-7h.js} +1 -1
- package/dist/{Modal-BVD2O8hd.js → Modal-CqzRblrN.js} +2 -2
- package/dist/{ModalFooter-CfboEe1M.js → ModalFooter-DHhBLDbO.js} +59 -57
- package/dist/{PasswordInput-BAlq2j97.js → PasswordInput-Czm5Pe_p.js} +4 -4
- package/dist/{ScarcityBadge-h7ygRD_C.js → ScarcityBadge-CdgQmt1D.js} +4 -4
- package/dist/{SeriesPage-D-cwUNZM.js → SeriesPage-DfCyV1ka.js} +5 -5
- package/dist/{Spinner-ChTN7t75.js → Spinner-BwiDys7C.js} +3 -3
- package/dist/{Success-CIAX5zmz.js → Success-CsYxRkLE.js} +81 -80
- package/dist/{TagIcon-V0qMu9wS.js → TagIcon-DJSTnymB.js} +1 -1
- package/dist/{ViewTicketsEmbed-By-IcUJZ.js → ViewTicketsEmbed-CKucKt-W.js} +67 -66
- package/dist/{WarningCircleIcon-D32h6VDr.js → WarningCircleIcon-BKSQbu7p.js} +1 -1
- package/dist/{WarningTriIcon-BPDrCiKU.js → WarningTriIcon-DgwTwlxe.js} +1 -1
- package/dist/{__SKIP_PATHS__-DirqE5Xe.js → __SKIP_PATHS__-BTbGfN80.js} +1 -1
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +187 -181
- package/dist/api/client.d.ts +16 -0
- package/dist/api/types.d.ts +528 -528
- package/dist/{browser-25hnscei.js → browser-Um8Y6K99.js} +7 -7
- package/dist/{colors-5ifWyP6H.js → colors-DeJAzg_q.js} +60 -59
- package/dist/{constants-Dcj3kgZE.js → constants-OTS1wmXZ.js} +76 -73
- package/dist/{copyToClipboard-CNxFW3ni.js → copyToClipboard-CRDdh3r8.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-BaJ7M1DL.js} +4 -4
- package/dist/{eventStatusStream-CIZVH5Lp.js → eventStatusStream-sq6uPnMe.js} +6 -6
- package/dist/{allowlist-BiUmz2AF.js → href-DJeJpcO9.js} +21 -4
- package/dist/{i18n-CEeBd5Hi.js → i18n-GzfxX0Ad.js} +11 -11
- package/dist/imageOptimizer-CB3wKJU8.js +47 -0
- package/dist/{labels-CtyfffZI.js → labels-CqodQmuY.js} +1 -1
- package/dist/{modalManager.svelte-BH-QJm9M.js → modalManager.svelte-OSPs3dSW.js} +2 -2
- package/dist/{order-totals-hcdvbJvw.js → order-totals-BAKL9cOB.js} +15 -13
- package/dist/{orders-tzTe2hNM.js → orders-NZP81zYT.js} +210 -198
- package/dist/{Input-W-QE9nWi.js → phoneUtils-BJeAIGYo.js} +694 -1132
- package/dist/{pixels-7kl8Fcjl.js → pixels-BBruZizp.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-BRInK1hH.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-CO3aPBdH.js} +24 -23
- package/dist/{utils-DJVlBMbw.js → utils-C8GgxJMv.js} +30 -30
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +1291 -1151
- 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.4}/flow/de.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/es.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/fr.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/id.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/it.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/ja.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/ko.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/nl.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/pl.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/tr.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/zh.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/de.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/es.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/fr.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/id.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/it.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/ja.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/ko.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/nl.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/pl.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/pt-br.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/tr.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/zh.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { x as e } from "./Button-C4uFgl7L.js";
|
|
2
|
+
import { M as t, R as n } from "./orders-NZP81zYT.js";
|
|
3
3
|
//#region src/lib/public-calendar-flow/eventStatusStream.ts
|
|
4
4
|
var r = e("VC"), i = /* @__PURE__ */ new Set([
|
|
5
5
|
"canceled",
|
|
@@ -53,8 +53,8 @@ function s(e, t, n = {}) {
|
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
function c(e, r) {
|
|
56
|
-
let o =
|
|
57
|
-
return s(o ? `${
|
|
56
|
+
let o = n(), c = `${t()}/events/${e}/stream`;
|
|
57
|
+
return s(o ? `${t()}/events/${e}/stream?widget_key=${encodeURIComponent(o)}` : c, (e) => {
|
|
58
58
|
r.onChange?.(e), i.has(e.action) ? r.onUnavailable?.(e.action) : a.has(e.action) && r.onAvailable?.(e.action);
|
|
59
59
|
}, {
|
|
60
60
|
keylessUrl: c,
|
|
@@ -62,8 +62,8 @@ function c(e, r) {
|
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
function l(e, r) {
|
|
65
|
-
let i =
|
|
66
|
-
return s(i ? `${
|
|
65
|
+
let i = n(), a = `${t()}/venues/${e}/stream`;
|
|
66
|
+
return s(i ? `${t()}/venues/${e}/stream?widget_key=${encodeURIComponent(i)}` : a, (e) => {
|
|
67
67
|
let t = e.eventId ?? (e.entityType === "event" ? e.entityId : void 0);
|
|
68
68
|
t && r.onEventChange?.(t, e);
|
|
69
69
|
}, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { J as t } from "./constants-
|
|
3
|
-
import { t as n } from "./Image-
|
|
1
|
+
import { _ as e } from "./Button-C4uFgl7L.js";
|
|
2
|
+
import { J as t } from "./constants-OTS1wmXZ.js";
|
|
3
|
+
import { t as n } from "./Image-B3cEndLZ.js";
|
|
4
4
|
import "svelte/internal/disclose-version";
|
|
5
5
|
import * as r from "svelte/internal/client";
|
|
6
6
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/UserIcon.svelte
|
|
@@ -95,4 +95,21 @@ var d = [
|
|
|
95
95
|
"mailto:"
|
|
96
96
|
], m = Object.fromEntries(d.map((e) => [e, f[e] ?? []]));
|
|
97
97
|
//#endregion
|
|
98
|
-
|
|
98
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/richtext/href.js
|
|
99
|
+
function h(e) {
|
|
100
|
+
return e.replace(/&#x([0-9a-f]+);?/gi, (e, t) => g(parseInt(t, 16), e)).replace(/&#(\d+);?/g, (e, t) => g(Number(t), e)).replace(/[\u0000-\u0020\u007F]+/g, "");
|
|
101
|
+
}
|
|
102
|
+
function g(e, t) {
|
|
103
|
+
return Number.isFinite(e) && e >= 0 && e <= 1114111 ? String.fromCodePoint(e) : t;
|
|
104
|
+
}
|
|
105
|
+
function _(e) {
|
|
106
|
+
let t = h(e).trim();
|
|
107
|
+
if (t === "") return !1;
|
|
108
|
+
if (t.startsWith("/") || t.startsWith("#") || t.startsWith("?")) return !0;
|
|
109
|
+
let n = t.match(/^([a-z][a-z0-9+.-]*):/i);
|
|
110
|
+
if (n) return p.includes(n[1].toLowerCase() + ":");
|
|
111
|
+
let r = t.split(/[?#]/)[0];
|
|
112
|
+
return !r.includes(":") && !r.includes("&");
|
|
113
|
+
}
|
|
114
|
+
//#endregion
|
|
115
|
+
export { s as a, u as i, p as n, m as r, _ as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as i, K as a, O as o, g as s, h as c, n as l, r as u, v as d } from "./constants-
|
|
1
|
+
import { E as e, R as t, m as n, y as r } from "./timezones-C5l0SSHK.js";
|
|
2
|
+
import { C as i, K as a, O as o, g as s, h as c, n as l, r as u, v as d } from "./constants-OTS1wmXZ.js";
|
|
3
3
|
import { t as f } from "./Text-CqjLjIF8.js";
|
|
4
|
-
import { E as p } from "./colors-
|
|
5
|
-
import { t as m } from "./createI18n-
|
|
6
|
-
import { t as h } from "./labels-
|
|
4
|
+
import { E as p } from "./colors-DeJAzg_q.js";
|
|
5
|
+
import { t as m } from "./createI18n-DBUVdZra.js";
|
|
6
|
+
import { t as h } from "./labels-CqodQmuY.js";
|
|
7
7
|
import "svelte/internal/disclose-version";
|
|
8
8
|
import * as g from "svelte/internal/client";
|
|
9
9
|
//#region src/lib/api/cta.ts
|
|
@@ -19,8 +19,8 @@ function _(t, i, o = {}) {
|
|
|
19
19
|
disabled: !0,
|
|
20
20
|
reason: "postponed"
|
|
21
21
|
};
|
|
22
|
-
let d =
|
|
23
|
-
if (d &&
|
|
22
|
+
let d = r(t.endDateTime || t.startDateTime);
|
|
23
|
+
if (d && n(d, u) < 0) return {
|
|
24
24
|
text: "Sales ended",
|
|
25
25
|
disabled: !0,
|
|
26
26
|
reason: "event_past"
|
|
@@ -62,8 +62,8 @@ function _(t, i, o = {}) {
|
|
|
62
62
|
};
|
|
63
63
|
let _ = !1, v = !0, y = !0, b = null;
|
|
64
64
|
for (let e of g) {
|
|
65
|
-
let t =
|
|
66
|
-
!o && !s && !c && (_ = !0), o || (v = !1), s || (y = !1), s && t && !o && !c && (!b ||
|
|
65
|
+
let t = r(e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart), i = r(e.salesEnd || e.saleEnd || e.onSaleEnd), a = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity, o = e.soldOut || a != null && a <= 0, s = t ? n(t, u) > 0 : !1, c = i ? n(i, u) < 0 : !1;
|
|
66
|
+
!o && !s && !c && (_ = !0), o || (v = !1), s || (y = !1), s && t && !o && !c && (!b || n(t, b) < 0) && (b = t);
|
|
67
67
|
}
|
|
68
68
|
if (_) return {
|
|
69
69
|
text: c ? "Reserve a spot" : "Get tickets",
|
|
@@ -76,12 +76,12 @@ function _(t, i, o = {}) {
|
|
|
76
76
|
disabled: !1,
|
|
77
77
|
reason: "hidden_only"
|
|
78
78
|
};
|
|
79
|
-
let e =
|
|
79
|
+
let e = n(b, u), t = e / 36e5, r = e / 864e5, i = (e) => a(e, {
|
|
80
80
|
hour: "numeric",
|
|
81
81
|
minute: "2-digit",
|
|
82
82
|
hour12: !0
|
|
83
83
|
}, "en-US"), o;
|
|
84
|
-
return o = t < 24 ? i(b) :
|
|
84
|
+
return o = t < 24 ? i(b) : r <= 7 ? a(b, {
|
|
85
85
|
weekday: "short",
|
|
86
86
|
hour: "numeric",
|
|
87
87
|
minute: "2-digit",
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import "svelte/internal/disclose-version";
|
|
2
|
+
import * as e from "svelte/internal/client";
|
|
3
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/PlusOutline.svelte
|
|
4
|
+
var t = e.from_svg("<svg aria-hidden=\"true\" fill=\"none\" stroke-width=\"2\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M12 4.5v15m7.5-7.5h-15\"></path></svg>");
|
|
5
|
+
function n(n, r) {
|
|
6
|
+
let i = e.prop(r, "size", 3, "24"), a = e.prop(r, "color", 3, "currentColor"), o = e.prop(r, "class", 3, "");
|
|
7
|
+
var s = t();
|
|
8
|
+
e.template_effect(() => {
|
|
9
|
+
e.set_class(s, 0, e.clsx(o())), e.set_attribute(s, "width", i()), e.set_attribute(s, "height", i()), e.set_attribute(s, "stroke", a());
|
|
10
|
+
}), e.append(n, s);
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/utils/imageOptimizer.js
|
|
14
|
+
function r(e) {
|
|
15
|
+
return new Promise((t, n) => {
|
|
16
|
+
let r = new Image();
|
|
17
|
+
r.addEventListener("load", () => t(r)), r.addEventListener("error", (e) => n(e)), e.startsWith("blob:") || r.setAttribute("crossOrigin", "anonymous"), r.src = e;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function i() {
|
|
21
|
+
let e = document.createElement("canvas");
|
|
22
|
+
return e.width = 1, e.height = 1, e.toDataURL("image/webp").indexOf("data:image/webp") === 0;
|
|
23
|
+
}
|
|
24
|
+
async function a(e, t = {}) {
|
|
25
|
+
let { maxSize: n = 1e3, quality: a, forceSquare: o = !1 } = t, s = URL.createObjectURL(e);
|
|
26
|
+
try {
|
|
27
|
+
let t = await r(s), c = document.createElement("canvas"), l = c.getContext("2d"), u, d, f = 0, p = 0, m = t.width, h = t.height;
|
|
28
|
+
if (o) {
|
|
29
|
+
let e = Math.min(t.width, t.height);
|
|
30
|
+
f = (t.width - e) / 2, p = (t.height - e) / 2, m = e, h = e, u = n, d = n;
|
|
31
|
+
} else {
|
|
32
|
+
let e = t.width / t.height;
|
|
33
|
+
t.width > t.height ? (u = Math.min(t.width, n), d = Math.round(u / e)) : (d = Math.min(t.height, n), u = Math.round(d * e)), t.width <= n && t.height <= n && (u = t.width, d = t.height);
|
|
34
|
+
}
|
|
35
|
+
c.width = u, c.height = d, l.imageSmoothingEnabled = !0, l.imageSmoothingQuality = "high", l.drawImage(t, f, p, m, h, 0, 0, u, d);
|
|
36
|
+
let g = i(), _ = g ? "image/webp" : "image/jpeg", v = a ?? (g ? .8 : .85), y = g ? "webp" : "jpg", b = `${e.name.replace(/\.[^.]+$/, "")}.${y}`;
|
|
37
|
+
return new Promise((e) => {
|
|
38
|
+
c.toBlob((t) => {
|
|
39
|
+
e(new File([t], b, { type: _ }));
|
|
40
|
+
}, _, v);
|
|
41
|
+
});
|
|
42
|
+
} finally {
|
|
43
|
+
URL.revokeObjectURL(s);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { n as i, a as n, i as r, r as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as t } from "./ModalFooter-
|
|
1
|
+
import { B as e } from "./timezones-C5l0SSHK.js";
|
|
2
|
+
import { o as t } from "./ModalFooter-DHhBLDbO.js";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as n from "svelte/internal/client";
|
|
5
5
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalHeader.svelte
|
|
@@ -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-OTS1wmXZ.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
|