@getmicdrop/venue-calendar 4.3.121 → 4.3.123
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-jj59e855.js → AddOnCard-nTlOLRHQ.js} +21 -21
- package/dist/{ArrowLeftIcon-t-CY0sbi.js → ArrowLeftIcon-D5-uNI0U.js} +2 -2
- package/dist/{BlockPlaceholder-BmEZ68_q.js → BlockPlaceholder-CuoGXCMh.js} +4 -4
- package/dist/{Button-VUB2WJ88.js → Button-BLmw_oMF.js} +11 -11
- package/dist/{Button-B58iYo_t.js → Button-DoHESV6k.js} +5 -5
- package/dist/{Calendar-hxcQBkTF.js → Calendar-C9hahXIM.js} +142 -161
- package/dist/{CalendarFoundryView-CSAKDe-F.js → CalendarFoundryView-Cv-ICYi9.js} +1475 -1473
- package/dist/{CalendarIcon-B5JWs0gm.js → CalendarIcon-5pe0K5ma.js} +2 -2
- package/dist/{CartView-CF2y1JDa.js → CartView-CXp67TQT.js} +287 -284
- package/dist/{ChartBlock-SYOAO1s_.js → ChartBlock-VVDwIPue.js} +36 -36
- package/dist/{CheckIcon-BSwoGox7.js → CheckIcon-FxQwEejD.js} +2 -2
- package/dist/{Checkbox-BtJwg_CF.js → Checkbox-Cn1nEBOm.js} +1 -1
- package/dist/{Checkout-2h2K3-bE.js → Checkout-BOftqs3v.js} +383 -381
- package/dist/Checkout-DQrcjCeh.js +1934 -0
- package/dist/{CheckoutTimer-Bpt5gPyA.js → CheckoutTimer-DPuy8TpI.js} +7 -7
- package/dist/{ChevronDownIcon-CVZ0usBx.js → ChevronDownIcon-ADsji-Ia.js} +2 -2
- package/dist/{ChevronDownOutline-D7YDiKBF.js → ChevronDownOutline-CAboOQwi.js} +1 -1
- package/dist/ChevronRightOutline-BWIIgG7O.js +23 -0
- package/dist/{CloseIcon-DUnvWXUY.js → CloseIcon-BgvYIos-.js} +3 -3
- package/dist/{CloseOutline-qpVa62mu.js → CloseOutline-BJtQbSqD.js} +1 -1
- package/dist/{CollectionView-XdNMvMtn.js → CollectionView-Ds3iGZYx.js} +8 -8
- package/dist/{CropImage-C8W_Xb_V.js → CropImage-Cvl-yxAB.js} +15 -15
- package/dist/{EmptyState-CMFePII9.js → EmptyState-BXE5HfzR.js} +2 -2
- package/dist/{Event-B_9T21du.js → Event-C8Y3zpPM.js} +620 -534
- package/dist/EventCard-DGnCiMw9.js +175 -0
- package/dist/{EventPage-BMnKpciU.js → EventPage-DjP9llB-.js} +294 -270
- package/dist/{ExclamationCircleOutline-D3XbhOwM.js → ExclamationCircleOutline-CmH69h0L.js} +1 -1
- package/dist/{action-test-id-7RXdHucW.js → FallbackBlock-C_-N8OKB.js} +72 -72
- package/dist/{Grid-kuP6V0GW.js → Grid-BKWXQEkM.js} +2 -2
- package/dist/{Heading-vOVPxhJF.js → Heading-CrJEsrFE.js} +4 -4
- package/dist/{Input-BXZmvQ0p.js → Input-komF5aTV.js} +10 -10
- package/dist/{LiveRegion-D9Me4kBs.js → LiveRegion-B_OI5McX.js} +2 -2
- package/dist/{LocationIcon-E-7CQh4E.js → LocationIcon-D7SbJ6q_.js} +3 -3
- package/dist/{Modal-kG0LKgMZ.js → Modal-_a_bJbko.js} +3 -3
- package/dist/{ModalFooter-CM5RDuvB.js → ModalFooter-CJPDF8Zl.js} +15 -15
- package/dist/{ModalHeader-DBVXezSL.js → ModalHeader-B3K9xN0J.js} +3 -3
- package/dist/{PasswordInput-DzXNIwRc.js → PasswordInput-C-SJ5Oix.js} +7 -7
- package/dist/{PhoneInput-DnmN_L03.js → PhoneInput-CYg7S7S7.js} +13 -13
- package/dist/{RecommendationsRail-DrzM8h2r.js → RecommendationsRail-QP0CJ7-3.js} +71 -68
- package/dist/{ScarcityBadge-DjzrzvId.js → ScarcityBadge-Cawy-u79.js} +7 -7
- package/dist/{SeriesPage-Ds_FEEZW.js → SeriesPage-BXLOd-gT.js} +3 -3
- package/dist/{Spinner-B2rdbspc.js → Spinner-DMSIvUd3.js} +3 -3
- package/dist/{Success-Dkak0iM9.js → Success-DCJLQx8J.js} +178 -175
- package/dist/{TagIcon-BY8tK_qA.js → TagIcon-CwCUhnam.js} +2 -2
- package/dist/{Text-CqjLjIF8.js → Text-uKiMcqy6.js} +1 -1
- package/dist/{Textarea-Cymhixzd.js → Textarea-DHm4GHH9.js} +3 -3
- package/dist/{ViewTicketsEmbed-B_fqalQh.js → ViewTicketsEmbed-Cblb2S6M.js} +24 -23
- package/dist/{WarningCircleIcon-C5Lc7qkF.js → WarningCircleIcon-ClRHaffl.js} +4 -4
- package/dist/{WarningTriIcon-BM8qc9xx.js → WarningTriIcon-zhqOKjq8.js} +2 -2
- package/dist/adapter-DwqQNwIc.js +164 -0
- package/dist/api--R8K0DjS.js +489 -0
- package/dist/{browser-DxdP6IWt.js → browser-o9TsPy0d.js} +1 -1
- package/dist/checkoutState-BtNPT28I.js +198 -0
- package/dist/client-CS0e2JHE.js +262 -0
- package/dist/{constants-C6MZgb2S.js → constants-lKAMwRvZ.js} +5 -1
- package/dist/{controlAria-CGb-KeRn.js → controlAria-DSrMfxwY.js} +2 -2
- package/dist/{copyToClipboard-F-akSgaF.js → copyToClipboard-198pSFq9.js} +3 -3
- package/dist/{createErrorGate.svelte-CEGaIQeI.js → createErrorGate.svelte-D96YnnB4.js} +5 -5
- package/dist/cta-bYAHgtET.js +116 -0
- package/dist/{datetime-BnKG6Hjm.js → datetime-B0mHwpmb.js} +53 -53
- package/dist/{de-BHcAXwnM.js → de-C3szl-Vf.js} +10 -4
- package/dist/{de-BPmqZ6ao.js → de-CX7o2WAr.js} +5 -1
- package/dist/{defaultLabels-BbNEEsF7.js → defaultLabels-C8IfDtR9.js} +210 -240
- package/dist/{defaults-CgsFJvJ2.js → defaults-vPJmFph1.js} +7 -7
- package/dist/{dist-bwbfGPKR.js → dist-xFB1K0Ua.js} +2 -2
- package/dist/{es-BV3Sgeg-.js → es-DS1-fjU8.js} +5 -1
- package/dist/{es-DZ3yceh-.js → es-QnJXFKEx.js} +10 -4
- package/dist/{event-DfqUhl5j.js → event-Cn1I6eqc.js} +2 -2
- package/dist/{event-transform-Bk1IoYh5.js → event-transform-DqzYVPvy.js} +18 -18
- package/dist/{eventStatusStream-CE0PwO0c.js → eventStatusStream-D27L0zB8.js} +2 -2
- package/dist/{filepond-plugin-file-validate-size-DNnItZ84.js → filepond-plugin-file-validate-size-DSfmFeGz.js} +1 -1
- package/dist/{filepond-plugin-file-validate-type-CUMTkI8X.js → filepond-plugin-file-validate-type-C44EKcE7.js} +1 -1
- package/dist/{filepond-plugin-image-exif-orientation-GEwHZTBU.js → filepond-plugin-image-exif-orientation-DNdFnriO.js} +1 -1
- package/dist/{filepond-plugin-image-preview-DKfgAnVa.js → filepond-plugin-image-preview-BVewVSQZ.js} +1 -1
- package/dist/{floatingPosition-XIv5DYuP.js → floatingPosition-TQ0h6TbT.js} +6 -6
- package/dist/{fr-Dyi163Vk.js → fr-BVgQDC6c.js} +10 -4
- package/dist/{fr-BJ0VQGEj.js → fr-CN3PiNzU.js} +5 -1
- package/dist/{href-CfWGAmkP.js → href-Cl_PNVlB.js} +24 -24
- package/dist/i18n-BsgEaeHp.js +497 -0
- package/dist/i18n-SDe3ZEhB.js +28 -0
- package/dist/{id-CVXaHHqU.js → id-CPG4tPVY.js} +5 -1
- package/dist/{id-DvFRZVAm.js → id-DCcXxLEY.js} +10 -4
- package/dist/{imageOptimizer-B3fj8_30.js → imageOptimizer-C8racBby.js} +11 -11
- package/dist/{imageUrl-xyMedKrE.js → imageUrl-ClaMf08i.js} +1 -1
- package/dist/{it-C0lzsHje.js → it-CjwnCYFF.js} +5 -1
- package/dist/{it-Bh05tcLv.js → it-CufAwhe3.js} +10 -4
- package/dist/{ja-Dl2r6tQ6.js → ja-C2uiNCJX.js} +5 -1
- package/dist/{ja-CU4PQS4j.js → ja-CMa_nsLY.js} +10 -4
- package/dist/{keyboard-DhCcdIyh.js → keyboard-enDXh6xy.js} +4 -4
- package/dist/{ko-DINqFSE1.js → ko-Bh97byDf.js} +5 -1
- package/dist/{ko-DDk6EdWm.js → ko-BwJHUjqS.js} +10 -4
- package/dist/{lazyOnce-CCfEO1xG.js → lazyOnce-BL5svIPP.js} +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/de.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/es.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/fr.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/id.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/it.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/ja.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/ko.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/nl.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/pl.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/pt-br.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/tr.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/zh.js +1 -1
- package/dist/locales/4.3.123/main/de.js +1 -0
- package/dist/locales/4.3.123/main/es.js +1 -0
- package/dist/locales/4.3.123/main/fr.js +1 -0
- package/dist/locales/4.3.123/main/id.js +1 -0
- package/dist/locales/4.3.123/main/it.js +1 -0
- package/dist/locales/4.3.123/main/ja.js +1 -0
- package/dist/locales/4.3.123/main/ko.js +1 -0
- package/dist/locales/4.3.123/main/nl.js +1 -0
- package/dist/locales/4.3.123/main/pl.js +1 -0
- package/dist/locales/4.3.123/main/pt-br.js +1 -0
- package/dist/locales/4.3.123/main/tr.js +1 -0
- package/dist/locales/4.3.123/main/zh.js +1 -0
- package/dist/look-island.svelte-Dr-Vl_J1.js +1279 -0
- package/dist/looks/4.3.123/looks.js +226 -0
- package/dist/looks/4.3.123/micdrop-wordmark-BYMG6vLR.svg +1 -0
- package/dist/looks/4.3.123/microphone-Ccv4r-kd.webp +0 -0
- package/dist/looks/4.3.123/superuser-CZF6a5gO.webp +0 -0
- package/dist/looks/4.3.123/treasury-DUE7lZzT.webp +0 -0
- package/dist/looks/4.3.123/user-image-yuS4errP.svg +9 -0
- package/dist/{modalManager.svelte-Cz_6x1Qd.js → modalManager.svelte-BUU99uSO.js} +1 -1
- package/dist/navigation-DlpJzq1c.js +176 -0
- package/dist/{nl-DOSKYHSx.js → nl-BQALrtyB.js} +10 -4
- package/dist/{nl-D92n5tHa.js → nl-ve_OaXOQ.js} +5 -1
- package/dist/normalizers-B8Ruvrlh.js +44 -0
- package/dist/{phoneUtils-CS66SHie.js → phoneUtils-CQvpvMDO.js} +50 -50
- package/dist/{pixels-Bu5-BISs.js → pixels-BZQYpQU0.js} +3 -3
- package/dist/{pl-BlZHcnlS.js → pl-BHBBOz2I.js} +5 -1
- package/dist/{pl-CkLEymA2.js → pl-DaPcPjBE.js} +10 -4
- package/dist/{portal-D-oaEWsY.js → portal-CLBp645_.js} +2 -2
- package/dist/{portalContainment-CeAVqIb-.js → portalContainment-Dz0y6lW6.js} +2 -2
- package/dist/{pt-br-BHuCQSM-.js → pt-br-BxdP86Vr.js} +10 -4
- package/dist/{pt-br-BrxthY0b.js → pt-br-D30dkLzU.js} +5 -1
- package/dist/seo/seo.mjs +9 -9
- package/dist/{serverTotals-B8SJCzxE.js → serverTotals-F3SRKn1I.js} +6 -6
- package/dist/{showcase-state-options-KO_TYk3I.js → showcase-state-options-DRCOUibv.js} +3 -3
- package/dist/{sizing-B7ixYndz.js → sizing-DFjg7-wy.js} +3 -3
- package/dist/{sortable.esm--ZtTTTPp.js → sortable.esm-RsK3eRs6.js} +1 -1
- package/dist/{src-DZgagYE3.js → src-DJtQCBFq.js} +1 -1
- package/dist/to-event-card-props-CBtlDgMr.js +205 -0
- package/dist/{tr-BnAdi4HO.js → tr-CFVBCuqV.js} +5 -1
- package/dist/{tr-Bvc34ODh.js → tr-CSfagpI3.js} +10 -4
- package/dist/types/index.d.ts +21 -4
- package/dist/utils-BXiwc_cU.js +219 -0
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +1591 -1895
- package/dist/venue-calendar.iife.js +35 -35
- package/dist/venue-calendar.umd.js +175 -54
- package/dist/widget-key-context-litAkRgC.js +744 -0
- package/dist/{zh-K0hOzZ3G.js → zh-DWMcKVLH.js} +10 -4
- package/dist/{zh-Tg1OTvWs.js → zh-DeEOoOFR.js} +5 -1
- package/package.json +3 -3
- package/src/lib/theme.js +222 -222
- package/dist/Checkout-BFu5dTw_.js +0 -1933
- package/dist/api-BEYkGabB.js +0 -654
- package/dist/i18n-B705OXZp.js +0 -28
- package/dist/i18n-BoMUWcCq.js +0 -608
- package/dist/locales/4.3.121/main/de.js +0 -1
- package/dist/locales/4.3.121/main/es.js +0 -1
- package/dist/locales/4.3.121/main/fr.js +0 -1
- package/dist/locales/4.3.121/main/id.js +0 -1
- package/dist/locales/4.3.121/main/it.js +0 -1
- package/dist/locales/4.3.121/main/ja.js +0 -1
- package/dist/locales/4.3.121/main/ko.js +0 -1
- package/dist/locales/4.3.121/main/nl.js +0 -1
- package/dist/locales/4.3.121/main/pl.js +0 -1
- package/dist/locales/4.3.121/main/pt-br.js +0 -1
- package/dist/locales/4.3.121/main/tr.js +0 -1
- package/dist/locales/4.3.121/main/zh.js +0 -1
- package/dist/to-event-card-props-DYIfPN8e.js +0 -379
- package/dist/utils-NMx3aPDk.js +0 -412
- package/dist/widget-key-context-D2zj4sp5.js +0 -988
package/README.md
CHANGED
|
@@ -208,6 +208,28 @@ For ad-hoc support diagnostics, the widget exposes its version on
|
|
|
208
208
|
window.__MICDROP_CALENDAR__.version; // e.g. "3.6.23"
|
|
209
209
|
```
|
|
210
210
|
|
|
211
|
+
**Venue pixels and visitor consent:**
|
|
212
|
+
|
|
213
|
+
If your organization saved a Meta Pixel or Google Analytics 4 ID, the calendar
|
|
214
|
+
loads it only after the visitor agrees. With no consent signal on the page it
|
|
215
|
+
sends no Meta or Google request at all. Tell it the visitor said yes in any one
|
|
216
|
+
of these ways:
|
|
217
|
+
|
|
218
|
+
```html
|
|
219
|
+
<!-- your consent tool already said yes before the calendar loads -->
|
|
220
|
+
<div data-consent-granted="true" ...></div>
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
```js
|
|
224
|
+
// from your cookie banner's "Accept" callback
|
|
225
|
+
window.__MICDROP_CALENDAR__.setConsentGranted(true);
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
A consent tool that speaks the IAB TCF API (`__tcfapi`) is picked up
|
|
229
|
+
automatically. `data-consent-required="false"` tells the calendar your site does
|
|
230
|
+
not need consent for these pixels; that is your own legal call, and a visitor
|
|
231
|
+
whose browser sends Global Privacy Control still gets no pixels.
|
|
232
|
+
|
|
211
233
|
**Usage in React App:**
|
|
212
234
|
|
|
213
235
|
```jsx
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { i as e } from "./Button-
|
|
2
|
-
import { A as t, k as n, p as r } from "./datetime-
|
|
3
|
-
import { r as i } from "./WarningCircleIcon-
|
|
4
|
-
import { r as a, s as o, t as s } from "./ScarcityBadge-
|
|
5
|
-
import {
|
|
6
|
-
import { t as d } from "./Button-
|
|
7
|
-
import { t as f } from "./Text-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { i as e } from "./Button-DoHESV6k.js";
|
|
2
|
+
import { A as t, k as n, p as r } from "./datetime-B0mHwpmb.js";
|
|
3
|
+
import { r as i } from "./WarningCircleIcon-ClRHaffl.js";
|
|
4
|
+
import { r as a, s as o, t as s } from "./ScarcityBadge-Cawy-u79.js";
|
|
5
|
+
import { E as c, F as l, N as u } from "./defaultLabels-C8IfDtR9.js";
|
|
6
|
+
import { t as d } from "./Button-BLmw_oMF.js";
|
|
7
|
+
import { t as f } from "./Text-uKiMcqy6.js";
|
|
8
|
+
import { n as p } from "./constants-lKAMwRvZ.js";
|
|
9
|
+
import { r as m, u as h } from "./i18n-BsgEaeHp.js";
|
|
10
10
|
import "svelte/internal/disclose-version";
|
|
11
11
|
import * as g from "svelte/internal/client";
|
|
12
12
|
var _ = .029, v = .3;
|
|
@@ -57,7 +57,7 @@ function T(e, n, r, i, o, s) {
|
|
|
57
57
|
let o = t.isDonation || t.ticketType === 2, s = o ? parseFloat(r[t.id]) || 0 : t.price;
|
|
58
58
|
if (s == null || !Number.isFinite(s)) {
|
|
59
59
|
d.push({
|
|
60
|
-
ticketId:
|
|
60
|
+
ticketId: l(t.id),
|
|
61
61
|
lineKey: `t:${t.id}`,
|
|
62
62
|
kind: "ticket",
|
|
63
63
|
ticketName: t.name,
|
|
@@ -69,7 +69,7 @@ function T(e, n, r, i, o, s) {
|
|
|
69
69
|
}), h = !0;
|
|
70
70
|
continue;
|
|
71
71
|
}
|
|
72
|
-
let c = s,
|
|
72
|
+
let c = s, u = o ? 0 : t.fee, g = 0;
|
|
73
73
|
if (i.isApplied && i.discountAmount > 0 && !o && a(i.discountTicketIds, t.id)) {
|
|
74
74
|
if (i.discountType === "%") {
|
|
75
75
|
let e = i.discountAmount;
|
|
@@ -78,13 +78,13 @@ function T(e, n, r, i, o, s) {
|
|
|
78
78
|
}
|
|
79
79
|
let _ = c * e;
|
|
80
80
|
d.push({
|
|
81
|
-
ticketId:
|
|
81
|
+
ticketId: l(t.id),
|
|
82
82
|
lineKey: `t:${t.id}`,
|
|
83
83
|
kind: "ticket",
|
|
84
84
|
ticketName: t.name,
|
|
85
85
|
quantity: e,
|
|
86
86
|
unitPrice: c,
|
|
87
|
-
fee:
|
|
87
|
+
fee: u,
|
|
88
88
|
subtotal: _,
|
|
89
89
|
isDonation: o
|
|
90
90
|
}), f += _, p += g * e;
|
|
@@ -92,9 +92,9 @@ function T(e, n, r, i, o, s) {
|
|
|
92
92
|
for (let e of s ?? []) {
|
|
93
93
|
let n = e.quantity;
|
|
94
94
|
if (n <= 0) continue;
|
|
95
|
-
let r = c(
|
|
95
|
+
let r = c(u(e.addOn.priceCents));
|
|
96
96
|
d.push({
|
|
97
|
-
ticketId:
|
|
97
|
+
ticketId: l(e.addOn.id),
|
|
98
98
|
lineKey: `a:${e.addOn.id}`,
|
|
99
99
|
kind: "addon",
|
|
100
100
|
ticketName: e.addOn.name,
|
|
@@ -166,7 +166,7 @@ function A(e, t) {
|
|
|
166
166
|
var j = g.from_html("<span class=\"add-on-thumb svelte-eimrjh\" aria-hidden=\"true\"> </span>"), M = g.from_html("<!> <span class=\"qty-display svelte-eimrjh\"><!></span> <!>", 1), N = g.from_html("<article><!> <div class=\"min-w-0 flex-1\"><!> <div class=\"flex flex-wrap items-center gap-x-2\"><!> <!> <!> <!></div> <div class=\"mt-1\"><!></div> <!></div> <div class=\"flex items-center quantity-selector\"><!></div></article>");
|
|
167
167
|
function P(t, n) {
|
|
168
168
|
g.push(n, !0);
|
|
169
|
-
let a = g.prop(n, "showScarcity", 3, !0),
|
|
169
|
+
let a = g.prop(n, "showScarcity", 3, !0), l = g.prop(n, "labels", 3, p), _ = g.derived(() => A(n.addOn, n.ticketCount)), v = g.derived(() => n.addOn.resolvedRemaining <= 0), y = g.derived(() => n.addOn.quantityRule === "per_ticket" && n.ticketCount <= 0 && !g.get(v)), b = g.derived(() => g.get(v) || g.get(y)), x = g.derived(() => n.quantity > 0), S = g.derived(() => !g.get(b) && n.quantity < g.get(_)), C = g.derived(() => r(c(u(n.addOn.priceCents)), l())), w = g.derived(() => a() && h(n.addOn.resolvedRemaining, n.addOn.resolvedRemaining) !== "none"), T = g.derived(() => n.addOn.redeemable ? n.addOn.redeemAt === "host_desk" ? l().addOnRedeemHost || "check in with the host" : n.addOn.redeemAt === "merch_table" ? l().addOnRedeemMerch || "collect at the merch table" : l().addOnRedeemBar || "redeem at the bar" : l().addOnCollectInPerson || "collect in person"), E = g.derived(() => n.addOn.quantityRule === "per_ticket" ? (l().addOnPerTicketLimit || "max {count} per ticket").replace("{count}", String(n.addOn.maxQuantity)) : "");
|
|
170
170
|
function D() {
|
|
171
171
|
g.get(x) && (n.onQuantityChange(n.addOn.id, n.quantity - 1), e("light"));
|
|
172
172
|
}
|
|
@@ -245,7 +245,7 @@ function P(t, n) {
|
|
|
245
245
|
},
|
|
246
246
|
context: "ticket",
|
|
247
247
|
get labels() {
|
|
248
|
-
return
|
|
248
|
+
return l();
|
|
249
249
|
}
|
|
250
250
|
});
|
|
251
251
|
};
|
|
@@ -271,7 +271,7 @@ function P(t, n) {
|
|
|
271
271
|
children: (e, t) => {
|
|
272
272
|
g.next();
|
|
273
273
|
var n = g.text();
|
|
274
|
-
g.template_effect(() => g.set_text(n,
|
|
274
|
+
g.template_effect(() => g.set_text(n, l().addOnNeedsTicket || "Add a ticket first")), g.append(e, n);
|
|
275
275
|
},
|
|
276
276
|
$$slots: { default: !0 }
|
|
277
277
|
});
|
|
@@ -282,7 +282,7 @@ function P(t, n) {
|
|
|
282
282
|
var Z = g.sibling(L, 2), Q = g.child(Z), $ = (e) => {
|
|
283
283
|
var t = M(), r = g.first_child(t);
|
|
284
284
|
{
|
|
285
|
-
let e = g.derived(() => !g.get(x)), t = g.derived(() =>
|
|
285
|
+
let e = g.derived(() => !g.get(x)), t = g.derived(() => l().decrease || "Decrease"), i = g.derived(() => n.addOn.name), a = g.derived(() => l().quantityNoun || "quantity");
|
|
286
286
|
d(r, {
|
|
287
287
|
variant: "alternative",
|
|
288
288
|
size: "icon-lg",
|
|
@@ -311,7 +311,7 @@ function P(t, n) {
|
|
|
311
311
|
}), g.reset(a);
|
|
312
312
|
var c = g.sibling(a, 2);
|
|
313
313
|
{
|
|
314
|
-
let e = g.derived(() => !g.get(S)), t = g.derived(() =>
|
|
314
|
+
let e = g.derived(() => !g.get(S)), t = g.derived(() => l().increase || "Increase"), r = g.derived(() => n.addOn.name), a = g.derived(() => l().quantityNoun || "quantity");
|
|
315
315
|
d(c, {
|
|
316
316
|
variant: "alternative",
|
|
317
317
|
size: "icon-lg",
|
|
@@ -333,7 +333,7 @@ function P(t, n) {
|
|
|
333
333
|
g.if(Q, (e) => {
|
|
334
334
|
g.get(v) || e($);
|
|
335
335
|
}), g.reset(Z), g.reset(k), g.template_effect(() => {
|
|
336
|
-
P = g.set_class(k, 1, "add-on-card flex items-center justify-between gap-3 rounded-lg border p-3 svelte-eimrjh", null, P, { disabled: g.get(b) }), g.set_style(k, `--add-on-transition: ${
|
|
336
|
+
P = g.set_class(k, 1, "add-on-card flex items-center justify-between gap-3 rounded-lg border p-3 svelte-eimrjh", null, P, { disabled: g.get(b) }), g.set_style(k, `--add-on-transition: ${m.normal ?? ""}ms;`), g.set_attribute(k, "data-testid", `add-on-card-${n.addOn.id ?? ""}`);
|
|
337
337
|
}), g.append(t, k), g.pop();
|
|
338
338
|
}
|
|
339
339
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { X as e } from "./datetime-
|
|
1
|
+
import { X as e } from "./datetime-B0mHwpmb.js";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as t from "svelte/internal/client";
|
|
4
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ArrowLeftIcon.svelte
|
|
4
|
+
//#region ../../../jetbook/npm-calendar/node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ArrowLeftIcon.svelte
|
|
5
5
|
var n = t.from_svg("<path d=\"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z\"></path>"), r = t.from_svg("<line x1=\"216\" y1=\"128\" x2=\"40\" y2=\"128\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line><polyline points=\"112 56 40 128 112 200\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></polyline>", 1), i = t.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
|
|
6
6
|
function a(a, o) {
|
|
7
7
|
t.push(o, !0);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { v as e } from "./sizing-
|
|
2
|
-
import { X as t } from "./datetime-
|
|
1
|
+
import { v as e } from "./sizing-DFjg7-wy.js";
|
|
2
|
+
import { X as t } from "./datetime-B0mHwpmb.js";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as n from "svelte/internal/client";
|
|
5
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/InfoIcon.svelte
|
|
5
|
+
//#region ../../../jetbook/npm-calendar/node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/InfoIcon.svelte
|
|
6
6
|
var r = n.from_svg("<path d=\"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z\"></path>"), i = n.from_svg("<circle cx=\"128\" cy=\"128\" r=\"96\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></circle><path d=\"M120,120a8,8,0,0,1,8,8v40a8,8,0,0,0,8,8\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path><circle cx=\"124\" cy=\"84\" r=\"12\"></circle>", 1), a = n.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
|
|
7
7
|
function o(e, o) {
|
|
8
8
|
n.push(o, !0);
|
|
@@ -23,7 +23,7 @@ function o(e, o) {
|
|
|
23
23
|
}), n.append(e, f), n.pop();
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Skeleton/BlockPlaceholder.svelte
|
|
26
|
+
//#region ../../../jetbook/npm-calendar/node_modules/@getmicdrop/svelte-components/dist/primitives/Skeleton/BlockPlaceholder.svelte
|
|
27
27
|
var s = n.from_html("<div></div>"), c = n.from_html("<div role=\"status\"><!> <span class=\"sr-only\"> </span></div>");
|
|
28
28
|
function l(t, r) {
|
|
29
29
|
n.push(r, !0);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "./Button-
|
|
2
|
-
import { d as o, i as s, o as c, p as l } from "./sizing-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "./Button-DoHESV6k.js";
|
|
2
|
+
import { d as o, i as s, o as c, p as l } from "./sizing-DFjg7-wy.js";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as u from "svelte/internal/client";
|
|
5
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/datetime/now.js
|
|
5
|
+
//#region ../../../jetbook/npm-calendar/node_modules/@getmicdrop/svelte-components/dist/datetime/now.js
|
|
6
6
|
function d() {
|
|
7
7
|
return /* @__PURE__ */ new Date();
|
|
8
8
|
}
|
|
9
9
|
//#endregion
|
|
10
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/AppError.js
|
|
10
|
+
//#region ../../../jetbook/npm-calendar/node_modules/@getmicdrop/svelte-components/dist/errors/classes/AppError.js
|
|
11
11
|
var f = class extends Error {
|
|
12
12
|
constructor(e, t, n = {}) {
|
|
13
13
|
super(e), this.name = "AppError", this.code = t, this.status = n.status ?? 500, this.details = n.details, this.timestamp = d(), this.recoverable = n.recoverable ?? !0, this.cause = n.cause, Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
|
|
@@ -31,7 +31,7 @@ var f = class extends Error {
|
|
|
31
31
|
isRetryable() {
|
|
32
32
|
return this.recoverable;
|
|
33
33
|
}
|
|
34
|
-
}, p = u.from_html("<span class=\"shimmer-overlay svelte-
|
|
34
|
+
}, p = u.from_html("<span class=\"shimmer-overlay svelte-vatlae\"></span>"), m = u.from_html("<a><!> <span><!></span> <!></a>"), h = u.from_html("<span> </span>"), g = u.from_html("<span class=\"absolute inset-0 flex items-center justify-center gap-2 svelte-vatlae\"><!> <!></span>"), _ = u.from_html("<button><!> <span><!></span> <!> <!></button>");
|
|
35
35
|
function v(a, d) {
|
|
36
36
|
u.push(d, !0);
|
|
37
37
|
let f = u.prop(d, "variant", 3, "default"), v = u.prop(d, "size", 3, "md"), y = u.prop(d, "disabled", 3, !1), b = u.prop(d, "loading", 3, !1), x = u.prop(d, "success", 3, !1), S = u.prop(d, "successText", 3, ""), C = u.prop(d, "active", 3, !1), w = u.prop(d, "href", 3, null), T = u.prop(d, "type", 3, "button"), E = u.prop(d, "haptic", 3, !1), D = u.prop(d, "class", 3, ""), O = u.state(!1);
|
|
@@ -99,7 +99,7 @@ function v(a, d) {
|
|
|
99
99
|
u.if(l, (e) => {
|
|
100
100
|
typeof d.trailing == "function" ? e(f) : d.trailing && e(h, 1);
|
|
101
101
|
}), u.reset(t), u.template_effect(() => {
|
|
102
|
-
u.set_attribute(t, "href", w()), u.set_class(t, 1, `${u.get(R) ?? ""} ${b() ? "loading-pulse" : ""}`, "svelte-
|
|
102
|
+
u.set_attribute(t, "href", w()), u.set_class(t, 1, `${u.get(R) ?? ""} ${b() ? "loading-pulse" : ""}`, "svelte-vatlae"), u.set_attribute(t, "id", d.id), u.set_attribute(t, "aria-label", d["aria-label"]), u.set_attribute(t, "aria-expanded", d["aria-expanded"]), u.set_attribute(t, "aria-haspopup", d["aria-haspopup"]), u.set_attribute(t, "aria-controls", d["aria-controls"]), u.set_attribute(t, "data-testid", d["data-testid"]), u.set_attribute(t, "tabindex", d.tabindex), u.set_attribute(t, "title", d.title), a = u.set_class(i, 1, "inline-flex min-w-0 items-center gap-1.5 svelte-vatlae", null, a, { invisible: b() || x() });
|
|
103
103
|
}), u.delegated("click", t, L), u.append(e, t);
|
|
104
104
|
}, H = (t) => {
|
|
105
105
|
var n = _(), r = u.child(n), i = (e) => {
|
|
@@ -137,7 +137,7 @@ function v(a, d) {
|
|
|
137
137
|
var i = u.sibling(r, 2), a = (e) => {
|
|
138
138
|
var t = h(), n = u.child(t, !0);
|
|
139
139
|
u.reset(t), u.template_effect(() => {
|
|
140
|
-
u.set_class(t, 1, l.emphasis, "svelte-
|
|
140
|
+
u.set_class(t, 1, l.emphasis, "svelte-vatlae"), u.set_text(n, S());
|
|
141
141
|
}), u.append(e, t);
|
|
142
142
|
};
|
|
143
143
|
u.if(i, (e) => {
|
|
@@ -147,7 +147,7 @@ function v(a, d) {
|
|
|
147
147
|
u.if(C, (e) => {
|
|
148
148
|
x() && e(w);
|
|
149
149
|
}), u.reset(n), u.template_effect(() => {
|
|
150
|
-
u.set_attribute(n, "type", T()), u.set_class(n, 1, `${u.get(R) ?? ""} ${b() ? "loading-pulse" : ""}`, "svelte-
|
|
150
|
+
u.set_attribute(n, "type", T()), u.set_class(n, 1, `${u.get(R) ?? ""} ${b() ? "loading-pulse" : ""}`, "svelte-vatlae"), n.disabled = u.get(M), u.set_attribute(n, "id", d.id), u.set_attribute(n, "aria-label", d["aria-label"]), u.set_attribute(n, "aria-expanded", d["aria-expanded"]), u.set_attribute(n, "aria-haspopup", d["aria-haspopup"]), u.set_attribute(n, "aria-controls", d["aria-controls"]), u.set_attribute(n, "data-testid", d["data-testid"]), u.set_attribute(n, "tabindex", d.tabindex), u.set_attribute(n, "name", d.name), u.set_attribute(n, "form", d.form), u.set_attribute(n, "title", d.title), o = u.set_class(a, 1, "inline-flex min-w-0 items-center gap-1.5 svelte-vatlae", null, o, { invisible: b() || x() });
|
|
151
151
|
}), u.delegated("click", n, L), u.append(t, n);
|
|
152
152
|
};
|
|
153
153
|
u.if(B, (e) => {
|
|
@@ -156,7 +156,7 @@ function v(a, d) {
|
|
|
156
156
|
}
|
|
157
157
|
u.delegate(["click"]);
|
|
158
158
|
//#endregion
|
|
159
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Button/ButtonGroup.svelte
|
|
159
|
+
//#region ../../../jetbook/npm-calendar/node_modules/@getmicdrop/svelte-components/dist/primitives/Button/ButtonGroup.svelte
|
|
160
160
|
var y = u.from_html("<div role=\"group\"><!></div>");
|
|
161
161
|
function b(e, t) {
|
|
162
162
|
let n = u.prop(t, "class", 3, "");
|
|
@@ -166,10 +166,10 @@ function b(e, t) {
|
|
|
166
166
|
};
|
|
167
167
|
u.if(i, (e) => {
|
|
168
168
|
t.children && e(a);
|
|
169
|
-
}), u.reset(r), u.template_effect(() => u.set_class(r, 1, `inline-flex rounded-lg shadow ${n() ?? ""}`, "svelte-
|
|
169
|
+
}), u.reset(r), u.template_effect(() => u.set_class(r, 1, `inline-flex rounded-lg shadow ${n() ?? ""}`, "svelte-l3l077")), u.append(e, r);
|
|
170
170
|
}
|
|
171
171
|
//#endregion
|
|
172
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Button/index.js
|
|
172
|
+
//#region ../../../jetbook/npm-calendar/node_modules/@getmicdrop/svelte-components/dist/primitives/Button/index.js
|
|
173
173
|
var x = Object.assign(a, {
|
|
174
174
|
Root: v,
|
|
175
175
|
Group: b
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as e, h as t, i as n, o as r, p as i } from "./sizing-
|
|
1
|
+
import { d as e, h as t, i as n, o as r, p as i } from "./sizing-DFjg7-wy.js";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as a from "svelte/internal/client";
|
|
4
|
-
//#region node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
4
|
+
//#region ../../../jetbook/npm-calendar/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
5
5
|
var o = (e, t) => {
|
|
6
6
|
let n = Array(e.length + t.length);
|
|
7
7
|
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
@@ -1721,7 +1721,7 @@ function Fe(e, t) {
|
|
|
1721
1721
|
}), a.append(e, o);
|
|
1722
1722
|
}
|
|
1723
1723
|
//#endregion
|
|
1724
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/utils/haptic.js
|
|
1724
|
+
//#region ../../../jetbook/npm-calendar/node_modules/@getmicdrop/svelte-components/dist/utils/haptic.js
|
|
1725
1725
|
var Ie = {
|
|
1726
1726
|
light: 10,
|
|
1727
1727
|
medium: 20,
|
|
@@ -1785,7 +1785,7 @@ function Re(e, t) {
|
|
|
1785
1785
|
}
|
|
1786
1786
|
}
|
|
1787
1787
|
//#endregion
|
|
1788
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Button/button-variant.js
|
|
1788
|
+
//#region ../../../jetbook/npm-calendar/node_modules/@getmicdrop/svelte-components/dist/primitives/Button/button-variant.js
|
|
1789
1789
|
var ze = {
|
|
1790
1790
|
"blue-solid": "default",
|
|
1791
1791
|
"gray-outline": "alternative",
|
|
@@ -1802,7 +1802,7 @@ function Ve(e, n) {
|
|
|
1802
1802
|
return r !== void 0 && Be(n, r) !== void 0 ? (t(`Button variant "${e}" is deprecated. Use "${r}" instead.\n Replace: <Button variant="${e}">\n With: <Button variant="${r}">`), r) : Be(n, e) === void 0 ? (t(`Button variant "${e}" is not a variant this Button has, so it rendered as "default" — the filled primary button.\n That is a safety net to keep the button styled, not the right answer: a neutral action now wears the primary affordance.\n Pick the variant you meant from: ${Object.keys(n).join(", ")}\n (a Cancel or Back button is usually "alternative" or "ghost")`), "default") : e;
|
|
1803
1803
|
}
|
|
1804
1804
|
//#endregion
|
|
1805
|
-
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Button/Button.svelte
|
|
1805
|
+
//#region ../../../jetbook/npm-calendar/node_modules/@getmicdrop/svelte-components/dist/primitives/Button/Button.svelte
|
|
1806
1806
|
var He = a.from_html("<span class=\"sc-button-shimmer\" aria-hidden=\"true\"></span>"), Ue = a.from_html("<span class=\"inline-flex shrink-0 items-center\"><!></span>"), We = a.from_html("<a><!> <span><!> <!></span> <!></a>"), Ge = a.from_html("<span> </span>"), Ke = a.from_html("<span class=\"absolute inset-0 flex items-center justify-center gap-2\"><!> <!></span>"), qe = a.from_html("<button><!> <span><!> <!></span> <!> <!></button>");
|
|
1807
1807
|
function Je(t, o) {
|
|
1808
1808
|
a.push(o, !0);
|