@getmicdrop/venue-calendar 4.3.51 → 4.3.53

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.
Files changed (115) hide show
  1. package/dist/{ArrowLeftIcon-BVz8rVy-.js → ArrowLeftIcon-BLnCtSTd.js} +1 -1
  2. package/dist/{Badge-n7TfNjln.js → Badge-LGtxYPTv.js} +9 -8
  3. package/dist/{BlockPlaceholder-BMor_G7G.js → BlockPlaceholder-BhPJo2P8.js} +2 -2
  4. package/dist/Button-D8b2gDS8.js +177 -0
  5. package/dist/{Button-klwKgfhG.js → Button-DZ_ZJIeL.js} +66 -119
  6. package/dist/{Calendar-c-VQOPhK.js → Calendar-D1d210pe.js} +292 -338
  7. package/dist/{CalendarFoundryView-Bq547Oiz.js → CalendarFoundryView-CEEJ8nkK.js} +6528 -7811
  8. package/dist/{CalendarIcon-B1zQMDYt.js → CalendarIcon-CLbs06CG.js} +1 -1
  9. package/dist/CartView-BN-EnU8O.js +2293 -0
  10. package/dist/ChartBlock-CQuNi0uN.js +1190 -0
  11. package/dist/Checkout-BLfHdJ4t.js +1832 -0
  12. package/dist/{Checkout-pjUaSvU6.js → Checkout-dBGyhMQD.js} +66 -65
  13. package/dist/{CheckoutTimer-DjYTRwVK.js → CheckoutTimer-DnHjYAv-.js} +5 -4
  14. package/dist/{ChevronDownIcon-8-uVEhg0.js → ChevronDownIcon-BIGPSika.js} +1 -1
  15. package/dist/{ClockIcon-CubuxycE.js → ClockIcon-D5mFK2c-.js} +1 -1
  16. package/dist/{CloseIcon-pz6eBxlB.js → CloseIcon-Bf4yqVV0.js} +1 -1
  17. package/dist/{CollectionView-CWwhiJHK.js → CollectionView-H_aMs6Zm.js} +12 -11
  18. package/dist/{CropImage-BFtvLjTE.js → CropImage-BFJ61OWR.js} +52 -51
  19. package/dist/EmptyState-Dak003WV.js +53 -0
  20. package/dist/{Event-Cj5-V360.js → Event-BYW026V7.js} +317 -313
  21. package/dist/{EventPage-Gh0QX1Wk.js → EventPage-DqTynzsn.js} +173 -171
  22. package/dist/Grid-kuP6V0GW.js +89 -0
  23. package/dist/{Heading-D6bWtGZA.js → Heading-BFFV1cuP.js} +4 -3
  24. package/dist/{Input-B0S168FA.js → Input-BlLlXJhw.js} +57 -57
  25. package/dist/{MailIcon-B4iLV34K.js → MailIcon-BO5Ou19Y.js} +1 -1
  26. package/dist/{Modal-DZ8fudB4.js → Modal-JNeuI7zx.js} +2 -2
  27. package/dist/{ModalFooter-T1gpnywp.js → ModalFooter-CZYeaLby.js} +66 -65
  28. package/dist/{ModalHeader-DkKpWKcG.js → ModalHeader-BNxKfIP7.js} +2 -2
  29. package/dist/{PasswordInput-Dd_mQxbp.js → PasswordInput-DaJbFgg5.js} +2 -2
  30. package/dist/{RecommendationsRail-D7NWOEEf.js → RecommendationsRail-DBadchEC.js} +17 -15
  31. package/dist/{ScarcityBadge--Rh62z2D.js → ScarcityBadge-Bi5eRig2.js} +4 -4
  32. package/dist/{SeriesPage-Dx0PFJkE.js → SeriesPage-DnArOhpy.js} +4 -4
  33. package/dist/{Spinner-D8dOJe6O.js → Spinner-UI821bAt.js} +2 -2
  34. package/dist/{Success-Fj5TXPWu.js → Success-BKfN0O0W.js} +43 -42
  35. package/dist/{TagIcon-DVXKjStU.js → TagIcon-BWLYSGkG.js} +1 -1
  36. package/dist/{Textarea-D24kYZAW.js → Textarea-CdxxGwCO.js} +6 -6
  37. package/dist/{ViewTicketsEmbed-DByaBHeq.js → ViewTicketsEmbed-saRT7Ac-.js} +47 -46
  38. package/dist/{WarningCircleIcon-CbNmDN5r.js → WarningCircleIcon-CyE_Th8p.js} +1 -1
  39. package/dist/{WarningTriIcon-CZPGuEl3.js → WarningTriIcon-D1jwyRhA.js} +1 -1
  40. package/dist/action-test-id-DYsZDRVM.js +145 -0
  41. package/dist/api/gift-cards.d.ts +11 -2
  42. package/dist/{api-Cbbszsig.js → api-CAGahqGT.js} +21 -20
  43. package/dist/{copyToClipboard-DfqOeS1-.js → copyToClipboard-NTWYm45i.js} +1 -1
  44. package/dist/{createErrorGate.svelte-Ct8gFqvn.js → createErrorGate.svelte-B1UBm7Je.js} +1 -1
  45. package/dist/{de-DdgY9gjK.js → de-Cx6vl1bo.js} +1 -1
  46. package/dist/{defaultLabels-C7rJdC-m.js → defaultLabels-CAOGfi3n.js} +431 -605
  47. package/dist/{defaults-DBpwynsR.js → defaults-CPjpHdep.js} +2 -2
  48. package/dist/{event-B4F3zifd.js → event-BoPSP9Wq.js} +1 -1
  49. package/dist/{event-transform-rUtOP2f0.js → event-transform-tDqIHrb0.js} +5 -4
  50. package/dist/{eventStatusStream-CeFdF0pM.js → eventStatusStream-Cw6cAXYK.js} +2 -2
  51. package/dist/{href-C_CnchY7.js → href-DUImPiNg.js} +3 -3
  52. package/dist/{i18n-CEpacwpz.js → i18n-DvVKV8xP.js} +55 -54
  53. package/dist/i18n-urZE8FDd.js +28 -0
  54. package/dist/{id-DLwaroVD.js → id-KAEn4B4Q.js} +1 -1
  55. package/dist/{imageOptimizer-Cf0BbZJ7.js → imageOptimizer-Bz54wwZL.js} +40 -39
  56. package/dist/{it-CB7RtPbU.js → it-CQcRIzL4.js} +1 -1
  57. package/dist/{it-BzBtirlA.js → it-DmnGZl3R.js} +2 -2
  58. package/dist/{ja-Bg0GgXOg.js → ja-BrzmyaoG.js} +1 -1
  59. package/dist/keyboard-WUqlYI2l.js +55 -0
  60. package/dist/{ko-CTS9jPS0.js → ko-DY6ctJAC.js} +1 -1
  61. package/dist/locales/4.3.53/flow/it.js +1 -0
  62. package/dist/locales/4.3.53/main/de.js +1 -0
  63. package/dist/locales/4.3.53/main/id.js +1 -0
  64. package/dist/locales/4.3.53/main/it.js +1 -0
  65. package/dist/locales/{4.3.51 → 4.3.53}/main/ja.js +1 -1
  66. package/dist/locales/4.3.53/main/ko.js +1 -0
  67. package/dist/locales/4.3.53/main/pt-br.js +1 -0
  68. package/dist/locales/4.3.53/main/zh.js +1 -0
  69. package/dist/{order-totals-c3zn-HDr.js → order-totals-2arQgl1W.js} +4 -4
  70. package/dist/{orders-DZbxfNI9.js → orders-DKH_Ff_F.js} +22 -21
  71. package/dist/{pixels-CoXwcqE_.js → pixels-CoTj8WW9.js} +3 -3
  72. package/dist/{promo-X_5x9P0A.js → promo-77n6yQJ5.js} +3 -3
  73. package/dist/{pt-br-QgRkwqJk.js → pt-br-COrMoRiG.js} +1 -1
  74. package/dist/{scarcity-Do5MrSwn.js → scarcity-CSQqP7r6.js} +105 -104
  75. package/dist/seo/HostSeoController.d.ts +92 -1
  76. package/dist/seo/seo.cjs +1 -1
  77. package/dist/seo/seo.mjs +39 -6
  78. package/dist/seo/types.d.ts +13 -0
  79. package/dist/{serverTotals-6RxxdfwU.js → serverTotals-CygpqxZO.js} +8 -8
  80. package/dist/{showcase-state-options-nn-CiCd1.js → showcase-state-options-BSIYaeAC.js} +1 -1
  81. package/dist/{to-event-card-props-DwRTJ3x9.js → to-event-card-props-CcTZVm_k.js} +101 -186
  82. package/dist/types/index.d.ts +8 -0
  83. package/dist/{utils--rXGNV9Z.js → utils-CPYwV5uR.js} +3 -3
  84. package/dist/venue-calendar.css +1 -1
  85. package/dist/venue-calendar.es.js +1507 -1423
  86. package/dist/venue-calendar.iife.js +37 -74
  87. package/dist/venue-calendar.umd.js +51 -51
  88. package/dist/{zh-CWmj934h.js → zh-Mf1aD1Qu.js} +1 -1
  89. package/package.json +220 -220
  90. package/dist/CartView-hWsZGkVQ.js +0 -2292
  91. package/dist/Checkout-BwxyqHY_.js +0 -1831
  92. package/dist/i18n-iYGbHTiH.js +0 -28
  93. package/dist/locales/4.3.51/flow/it.js +0 -1
  94. package/dist/locales/4.3.51/main/de.js +0 -1
  95. package/dist/locales/4.3.51/main/id.js +0 -1
  96. package/dist/locales/4.3.51/main/it.js +0 -1
  97. package/dist/locales/4.3.51/main/ko.js +0 -1
  98. package/dist/locales/4.3.51/main/pt-br.js +0 -1
  99. package/dist/locales/4.3.51/main/zh.js +0 -1
  100. /package/dist/locales/{4.3.51 → 4.3.53}/flow/de.js +0 -0
  101. /package/dist/locales/{4.3.51 → 4.3.53}/flow/es.js +0 -0
  102. /package/dist/locales/{4.3.51 → 4.3.53}/flow/fr.js +0 -0
  103. /package/dist/locales/{4.3.51 → 4.3.53}/flow/id.js +0 -0
  104. /package/dist/locales/{4.3.51 → 4.3.53}/flow/ja.js +0 -0
  105. /package/dist/locales/{4.3.51 → 4.3.53}/flow/ko.js +0 -0
  106. /package/dist/locales/{4.3.51 → 4.3.53}/flow/nl.js +0 -0
  107. /package/dist/locales/{4.3.51 → 4.3.53}/flow/pl.js +0 -0
  108. /package/dist/locales/{4.3.51 → 4.3.53}/flow/pt-br.js +0 -0
  109. /package/dist/locales/{4.3.51 → 4.3.53}/flow/tr.js +0 -0
  110. /package/dist/locales/{4.3.51 → 4.3.53}/flow/zh.js +0 -0
  111. /package/dist/locales/{4.3.51 → 4.3.53}/main/es.js +0 -0
  112. /package/dist/locales/{4.3.51 → 4.3.53}/main/fr.js +0 -0
  113. /package/dist/locales/{4.3.51 → 4.3.53}/main/nl.js +0 -0
  114. /package/dist/locales/{4.3.51 → 4.3.53}/main/pl.js +0 -0
  115. /package/dist/locales/{4.3.51 → 4.3.53}/main/tr.js +0 -0
@@ -1,4 +1,4 @@
1
- import { K as e } from "./scarcity-Do5MrSwn.js";
1
+ import { K as e } from "./scarcity-CSQqP7r6.js";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as t from "svelte/internal/client";
4
4
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/WarningTriIcon.svelte
@@ -0,0 +1,145 @@
1
+ import { C as e } from "./Button-DZ_ZJIeL.js";
2
+ import { n as t, t as n } from "./Button-D8b2gDS8.js";
3
+ import { t as r } from "./EmptyState-Dak003WV.js";
4
+ import "svelte/internal/disclose-version";
5
+ import * as i from "svelte/internal/client";
6
+ import { getContext as a, setContext as o } from "svelte";
7
+ //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Skeleton/ChartPlaceholder.svelte
8
+ var s = i.from_html("<div></div>"), c = i.from_html("<div role=\"status\"><div class=\"flex min-h-0 flex-1 gap-4\"><div class=\"flex flex-col justify-between py-1\"></div> <div class=\"flex min-w-0 flex-1 items-end gap-2\"></div></div> <div class=\"flex justify-between pl-12\"></div> <span class=\"sr-only\"> </span></div>");
9
+ function l(t, n) {
10
+ i.push(n, !0);
11
+ let r = {
12
+ loadingChart: "Loading chart",
13
+ loading: "Loading..."
14
+ }, a = i.prop(n, "height", 3, "h-96"), o = i.prop(n, "bars", 3, 12), l = i.prop(n, "valueTicks", 3, 5), u = i.prop(n, "categoryTicks", 3, 6), d = i.prop(n, "animate", 3, !0), f = i.prop(n, "class", 3, ""), p = i.prop(n, "labels", 19, () => ({})), m = i.derived(() => e(r, p())), h = i.derived(() => d() ? "sc-skeleton-loading" : "bg-border");
15
+ function g(e) {
16
+ return `${Math.round(30 + Math.sin(e * .8) * 25 + 20)}%`;
17
+ }
18
+ var _ = c(), v = i.child(_), y = i.child(v);
19
+ i.each(y, 21, () => Array.from({ length: l() }), i.index, (e, t) => {
20
+ var n = s();
21
+ i.template_effect(() => i.set_class(n, 1, `h-2 w-8 rounded-full ${i.get(h) ?? ""}`)), i.append(e, n);
22
+ }), i.reset(y);
23
+ var b = i.sibling(y, 2);
24
+ i.each(b, 21, () => Array.from({ length: o() }), i.index, (e, t, n) => {
25
+ var r = s();
26
+ let a;
27
+ i.template_effect((e) => {
28
+ i.set_class(r, 1, `flex-1 rounded-t ${i.get(h) ?? ""}`), a = i.set_style(r, "", a, e);
29
+ }, [() => ({ height: g(n) })]), i.append(e, r);
30
+ }), i.reset(b), i.reset(v);
31
+ var x = i.sibling(v, 2);
32
+ i.each(x, 21, () => Array.from({ length: u() }), i.index, (e, t) => {
33
+ var n = s();
34
+ i.template_effect(() => i.set_class(n, 1, `h-2 w-8 rounded-full ${i.get(h) ?? ""}`)), i.append(e, n);
35
+ }), i.reset(x);
36
+ var S = i.sibling(x, 2), C = i.child(S, !0);
37
+ i.reset(S), i.reset(_), i.template_effect(() => {
38
+ i.set_class(_, 1, `flex flex-col gap-3 p-6 ${a() ?? ""} ${f() ?? ""}`), i.set_attribute(_, "aria-label", i.get(m).loadingChart), i.set_text(C, i.get(m).loading);
39
+ }), i.append(t, _), i.pop();
40
+ }
41
+ //#endregion
42
+ //#region node_modules/@getmicdrop/svelte-components/dist/foundry/grid/foundryRuntime.js
43
+ var u = Symbol("foundry.runtime");
44
+ function d(e) {
45
+ o(u, e);
46
+ }
47
+ function f() {
48
+ let e = a(u);
49
+ if (!e) throw new t("[foundry] no FoundryRuntime in context — a host must call setFoundryRuntime() above the PageView (see @getmicdrop/svelte-components/foundry).", "FOUNDRY_RUNTIME_MISSING", { recoverable: !1 });
50
+ return e;
51
+ }
52
+ //#endregion
53
+ //#region node_modules/@getmicdrop/svelte-components/dist/foundry/blocks/FallbackBlock.svelte
54
+ function p(e, t) {
55
+ i.push(t, !0);
56
+ let a = (e) => {
57
+ n(e, {
58
+ variant: "outline",
59
+ size: "xs",
60
+ onclick: () => t.onretry?.(),
61
+ children: (e, t) => {
62
+ i.next();
63
+ var n = i.text();
64
+ i.template_effect((e) => i.set_text(n, e), [() => o.common_retry()]), i.append(e, n);
65
+ },
66
+ $$slots: { default: !0 }
67
+ });
68
+ }, o = f().i18n;
69
+ {
70
+ let n = i.derived(() => o.foundry_block_unavailable()), s = i.derived(() => t.reason ?? o.foundry_no_renderer({ tag: t.descriptor.tag })), c = i.derived(() => t.onretry ? a : void 0);
71
+ r(e, {
72
+ get title() {
73
+ return i.get(n);
74
+ },
75
+ get subtext() {
76
+ return i.get(s);
77
+ },
78
+ get children() {
79
+ return i.get(c);
80
+ }
81
+ });
82
+ }
83
+ i.pop();
84
+ }
85
+ //#endregion
86
+ //#region node_modules/@getmicdrop/svelte-components/dist/foundry/contract/action-policy.js
87
+ var m = { disabled: !1 };
88
+ function h(e) {
89
+ return e.loading && e.loadingLabel ? e.loadingLabel : e.label;
90
+ }
91
+ function g(e) {
92
+ return typeof e.href != "string" || e.href === "" ? !1 : !e.confirm && e.opens === void 0;
93
+ }
94
+ function _(e, t, n = m) {
95
+ let r = t.denied && e.permission?.denied === "hide", i = !!e.disabled || t.denied || n.disabled;
96
+ return {
97
+ hidden: r,
98
+ disabled: i,
99
+ reason: t.reason ?? n.reason,
100
+ label: h(e),
101
+ href: !i && g(e) ? e.href : void 0
102
+ };
103
+ }
104
+ //#endregion
105
+ //#region node_modules/@getmicdrop/svelte-components/dist/foundry/blocks/empty-action.js
106
+ function v(e) {
107
+ return e.kind === "link" ? "link" : e.danger ? "red" : "default";
108
+ }
109
+ function y(e) {
110
+ if (e.disabled !== !0 && e.loading !== !0) return g(e) ? e.href : void 0;
111
+ }
112
+ function b(e) {
113
+ return e.disabled === !0;
114
+ }
115
+ function x(e) {
116
+ return e.loading === !0;
117
+ }
118
+ function S(e, t) {
119
+ y(e) === void 0 && t?.(e);
120
+ }
121
+ //#endregion
122
+ //#region node_modules/@getmicdrop/svelte-components/dist/foundry/grid/action-test-id.js
123
+ var C = Symbol("foundry.blockActionScope"), w = "row-actions";
124
+ function T(e) {
125
+ return `row-action-${e}`;
126
+ }
127
+ function E(e, t, n) {
128
+ return `${e}.${t}.${n}`;
129
+ }
130
+ function D(e) {
131
+ o(C, e);
132
+ }
133
+ function O() {
134
+ return a(C);
135
+ }
136
+ function k() {
137
+ let e = O();
138
+ return (t) => {
139
+ if (!e || typeof t != "string" || t === "") return;
140
+ let { pageId: n, blockId: r } = e();
141
+ return E(n, r, t);
142
+ };
143
+ }
144
+ //#endregion
145
+ export { d as _, k as a, b as c, v as d, h as f, f as g, p as h, D as i, y as l, g as m, E as n, O as o, _ as p, T as r, S as s, w as t, x as u, l as v };
@@ -1,4 +1,4 @@
1
- import { VenueId } from '@getmicdrop/svelte-components';
1
+ import { IANATimezone, VenueId } from '@getmicdrop/svelte-components';
2
2
  import { Result } from './result.js';
3
3
  /**
4
4
  * Request payload for creating a gift card purchase
@@ -37,8 +37,17 @@ export interface VenueInfo {
37
37
  * This is the zone a scheduled gift-card delivery is meant in (MIC-4033). It
38
38
  * is not optional because the one thing a consumer must never do is fall back
39
39
  * to the buyer's browser zone, and an optional field invites exactly that.
40
+ *
41
+ * BRANDED, not `string`, because the mapping below already produces the brand:
42
+ * `venueTimeZone()` returns an `IANATimezone`, and declaring the field as a
43
+ * bare `string` threw that away one line later — which is how the route page
44
+ * that hands this to DeliveryScheduler (whose `timeZone` prop IS an
45
+ * `IANATimezone`) came out red while the value it passes was correct all
46
+ * along. Keeping the brand here is what carries "this has been normalised and
47
+ * is never empty" from the projection to every consumer, instead of asking
48
+ * each of them to re-assert it.
40
49
  */
41
- timeZone: string;
50
+ timeZone: IANATimezone;
42
51
  }
43
52
  /**
44
53
  * Create a gift card purchase and get Stripe client secret
@@ -1,7 +1,8 @@
1
- import { E as e } from "./Button-klwKgfhG.js";
2
- import { C as t } from "./scarcity-Do5MrSwn.js";
3
- import { A as n, M as r, O as i, _ as a, c as o, g as s, l as c, v as l, x as u, z as d } from "./defaultLabels-C7rJdC-m.js";
4
- import { B as f, L as p, M as m, N as h, P as g, R as _, U as v, b as ee, c as y } from "./orders-DZbxfNI9.js";
1
+ import { x as e } from "./Button-DZ_ZJIeL.js";
2
+ import { C as t } from "./scarcity-CSQqP7r6.js";
3
+ import { I as n, _ as r, b as i, c as a, g as o, h as s, k as c, s as l } from "./defaultLabels-CAOGfi3n.js";
4
+ import { n as u, r as d } from "./Button-D8b2gDS8.js";
5
+ import { B as f, L as p, M as m, N as h, P as g, R as _, U as v, b as ee, c as y } from "./orders-DKH_Ff_F.js";
5
6
  //#region node_modules/@getmicdrop/svelte-components/dist/transforms/ticket.js
6
7
  var b = {
7
8
  EVERYWHERE: 0,
@@ -19,14 +20,14 @@ function C(e, t) {
19
20
  return e.totalCapacity ?? e.quantity ?? t;
20
21
  }
21
22
  function te(e) {
22
- let t = n(), r = a(e.effectiveSalesBegin, e.salesBegin, e.saleStartDate) ?? null, i = a(e.effectiveSalesEnd, e.salesEnd, e.saleEndDate) ?? null, o = u(r), c = u(i);
23
- if (!l(r) && !o) return "scheduled";
24
- if (!l(i) && !c) return "sales_ended";
25
- if (o && s(t, o) < 0) return "scheduled";
26
- if (c && s(t, c) > 0) return "sales_ended";
23
+ let t = d(), n = o(e.effectiveSalesBegin, e.salesBegin, e.saleStartDate) ?? null, a = o(e.effectiveSalesEnd, e.salesEnd, e.saleEndDate) ?? null, c = i(n), l = i(a);
24
+ if (!r(n) && !c) return "scheduled";
25
+ if (!r(a) && !l) return "sales_ended";
26
+ if (c && s(t, c) < 0) return "scheduled";
27
+ if (l && s(t, l) > 0) return "sales_ended";
27
28
  if (e.soldOut === !0) return "sold_out";
28
- let d = S(e), f = C(e, d);
29
- return d === 0 ? "sold_out" : f > 0 && d / f < .1 ? "low" : "on_sale";
29
+ let u = S(e), f = C(e, u);
30
+ return u === 0 ? "sold_out" : f > 0 && u / f < .1 ? "low" : "on_sale";
30
31
  }
31
32
  function ne(e, t = {}) {
32
33
  if (!Array.isArray(e)) return [];
@@ -62,17 +63,17 @@ function ae(e) {
62
63
  }
63
64
  function w(e) {
64
65
  if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= x.HIDDEN) || e.salesChannel === b.BOX_OFFICE_ONLY) return !1;
65
- let t = n(), r = a(e.effectiveSalesBegin, e.salesBegin, e.salesStart, e.saleBegin, e.onSaleStart, e.saleStartDate), i = a(e.effectiveSalesEnd, e.salesEnd, e.saleEnd, e.onSaleEnd, e.saleEndDate), o = u(r), c = u(i);
66
- if (!l(r) && !o || !l(i) && !c || o && s(o, t) > 0 || c && s(c, t) < 0) return !1;
67
- let d = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity;
68
- return !(e.soldOut || d != null && d <= 0);
66
+ let t = d(), n = o(e.effectiveSalesBegin, e.salesBegin, e.salesStart, e.saleBegin, e.onSaleStart, e.saleStartDate), a = o(e.effectiveSalesEnd, e.salesEnd, e.saleEnd, e.onSaleEnd, e.saleEndDate), c = i(n), l = i(a);
67
+ if (!r(n) && !c || !r(a) && !l || c && s(c, t) > 0 || l && s(l, t) < 0) return !1;
68
+ let u = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity;
69
+ return !(e.soldOut || u != null && u <= 0);
69
70
  }
70
71
  function oe(e) {
71
72
  return e ? e.hasHiddenTickets === !0 || ae(e).some(w) : !1;
72
73
  }
73
74
  //#endregion
74
75
  //#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/NotFoundError.js
75
- var T = class extends i {
76
+ var T = class extends u {
76
77
  constructor(e, t) {
77
78
  let n = t ? `${e} with ID ${t} not found` : `${e} not found`;
78
79
  super(n, "NOT_FOUND", {
@@ -85,7 +86,7 @@ var T = class extends i {
85
86
  }), this.name = "NotFoundError", this.resourceType = e, this.resourceId = t;
86
87
  }
87
88
  getUserMessage(e) {
88
- return c(e)?.fromCode?.(this.code) || o(this.resourceType.toLowerCase());
89
+ return a(e)?.fromCode?.(this.code) || l(this.resourceType.toLowerCase());
89
90
  }
90
91
  }, E = e("VC");
91
92
  function D(e, t) {
@@ -356,15 +357,15 @@ function Z(e) {
356
357
  valid: !1,
357
358
  error: ke
358
359
  };
359
- let t = e, n = r(d(t.appliedAmount)), i = t.remainingTotal, a = t.fullyCoveredByCard ?? i <= 0, o = !a;
360
+ let t = e, r = c(n(t.appliedAmount)), i = t.remainingTotal, a = t.fullyCoveredByCard ?? i <= 0, o = !a;
360
361
  return {
361
362
  valid: !0,
362
363
  giftCardCode: t.giftCardCode ?? void 0,
363
- giftCardAmount: n,
364
+ giftCardAmount: r,
364
365
  giftCardBalance: t.giftCardBalance ?? void 0,
365
366
  paymentType: a ? "gift_card_only" : "split",
366
367
  stripeAmount: i,
367
- orderTotal: n + i,
368
+ orderTotal: r + i,
368
369
  requiresStripe: o
369
370
  };
370
371
  }
@@ -1,4 +1,4 @@
1
- import { K as e } from "./scarcity-Do5MrSwn.js";
1
+ import { K as e } from "./scarcity-CSQqP7r6.js";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as t from "svelte/internal/client";
4
4
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/LocationIcon.svelte
@@ -1,4 +1,4 @@
1
- import { K as e } from "./scarcity-Do5MrSwn.js";
1
+ import { K as e } from "./scarcity-CSQqP7r6.js";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as t from "svelte/internal/client";
4
4
  import { getContext as n, hasContext as r, setContext as i } from "svelte";
@@ -105,7 +105,7 @@ var e = {
105
105
  retryingConnection: "Verbindung wird erneut hergestellt...",
106
106
  couldNotLoadEvents: "Events konnten nicht geladen werden. Bitte überprüfe deine Internetverbindung und versuche es erneut.",
107
107
  offlineMessage: "Du bist offline. Einige Funktionen stehen erst nach erneuter Verbindung zur Verfügung.",
108
- poweredBy: "Powered by",
108
+ poweredBy: "Bereitgestellt von",
109
109
  micdropAriaLabel: "MicDrop – Ticketplattform für Events",
110
110
  giftCardsLink: "Geschenkkarten",
111
111
  giftCardsLinkAriaLabel: "Eine Geschenkkarte für diesen Veranstaltungsort kaufen",