@getmicdrop/venue-calendar 4.3.8 → 4.3.9

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 (97) hide show
  1. package/dist/{ArrowLeftIcon-DvIbVly-.js → ArrowLeftIcon-B6RmtBIh.js} +1 -1
  2. package/dist/{Badge-vsC_L__r.js → Badge-DsuBHDo4.js} +1 -2
  3. package/dist/{BlockPlaceholder-BMD1gnmE.js → BlockPlaceholder-BvArmbbO.js} +2 -2
  4. package/dist/{Button-Cm6xkipe.js → Button-CxQO7vwF.js} +88 -63
  5. package/dist/{Calendar-CPD8dS_i.js → Calendar-Dei3Ahdk.js} +93 -94
  6. package/dist/{CalendarFoundryView-BY1uJgYA.js → CalendarFoundryView-Df10CTZS.js} +5398 -5389
  7. package/dist/{CalendarIcon-CCgHZAu4.js → CalendarIcon-DJh5V_U9.js} +1 -1
  8. package/dist/CartView-DPzvlZwV.js +2245 -0
  9. package/dist/Checkout-CZGmzTDh.js +983 -0
  10. package/dist/{Checkout-Ddcw2_8F.js → Checkout-CaamQTXi.js} +368 -368
  11. package/dist/{CheckoutTimer-CgGCv_jP.js → CheckoutTimer-BubF7ziC.js} +15 -15
  12. package/dist/{ChevronDownIcon-gELqaIeP.js → ChevronDownIcon-MTzda9yz.js} +1 -1
  13. package/dist/{ClockIcon-C4MxWMqH.js → ClockIcon-Dit8R1GZ.js} +1 -1
  14. package/dist/{CloseIcon-D3NjpzeW.js → CloseIcon-XqvbBmiA.js} +1 -1
  15. package/dist/{CollectionView-C55yLTPR.js → CollectionView-B_rrXaQH.js} +17 -17
  16. package/dist/CropImage-mVbYhD9Y.js +527 -0
  17. package/dist/{Event-ClxgC-gP.js → Event-WtVZMQfA.js} +585 -585
  18. package/dist/{EventPage-ziJYmBIZ.js → EventPage-B14U0-Hm.js} +132 -131
  19. package/dist/{Heading-D7TEStkb.js → Heading-PKl9dm72.js} +3 -4
  20. package/dist/{Image-CjM21MQP.js → Image-BWo4QBld.js} +12 -13
  21. package/dist/{Input-CIRGYHTC.js → Input-Bl1wqeUH.js} +2 -2
  22. package/dist/{MailIcon-iy7T12Hz.js → MailIcon-DQTusrr4.js} +1 -1
  23. package/dist/{Modal-wQSo-C1f.js → Modal-CDIhIlu-.js} +2 -2
  24. package/dist/ModalFooter-DwkZn9ls.js +471 -0
  25. package/dist/ModalHeader-BSsyLaXY.js +18 -0
  26. package/dist/{PasswordInput-Cj8i4djG.js → PasswordInput-CnjRiZJ7.js} +2 -2
  27. package/dist/{ScarcityBadge-DbUVeqpx.js → ScarcityBadge-B4e3Z_Oz.js} +24 -24
  28. package/dist/{SeriesPage-doki-1XH.js → SeriesPage-DszQMCy9.js} +5 -5
  29. package/dist/{Spinner-Dua8H4Z1.js → Spinner-BRgBJYJn.js} +2 -2
  30. package/dist/{Success-DZOYl6St.js → Success-BYVtvNeO.js} +106 -106
  31. package/dist/{TagIcon-CCyZd0sm.js → TagIcon-BAZxGlbC.js} +1 -1
  32. package/dist/{ViewTicketsEmbed-CF2Aq-qy.js → ViewTicketsEmbed-BHDAkYuv.js} +97 -97
  33. package/dist/{WarningCircleIcon-BuVhRrHd.js → WarningCircleIcon-SBK0lpqR.js} +1 -1
  34. package/dist/{WarningTriIcon-0hefhcdZ.js → WarningTriIcon-Bj3xpe3S.js} +1 -1
  35. package/dist/{__SKIP_PATHS__-Dyw31EsB.js → __SKIP_PATHS__-B3-kZeYN.js} +1 -1
  36. package/dist/api/api.cjs +1 -1
  37. package/dist/api/api.mjs +239 -237
  38. package/dist/{api-QG8CoGcM.js → api-CTiZ6rza.js} +113 -111
  39. package/dist/{browser-viCaCwoW.js → browser-CziWLQ0z.js} +1 -1
  40. package/dist/{constants-q-jR2-bz.js → constants-rFRS1lF-.js} +1 -1
  41. package/dist/{copyToClipboard-C7KGa7gG.js → copyToClipboard-C5D-wCS_.js} +1 -1
  42. package/dist/{defaultLabels-BdLGAc3u.js → defaultLabels-CpurXn7c.js} +336 -361
  43. package/dist/{event-CyPf2sZS.js → event-d06xVg2P.js} +1 -1
  44. package/dist/{event-transform-DQmD2u_S.js → event-transform-BjPTqPq1.js} +23 -23
  45. package/dist/{eventStatusStream-BFOvtJyO.js → eventStatusStream-BhQUTdOZ.js} +2 -2
  46. package/dist/{href-CbfSre4l.js → href-DMLDnIDe.js} +3 -3
  47. package/dist/{i18n-D54CGXK2.js → i18n--3wPB7-n.js} +2 -2
  48. package/dist/{i18n-CSftOFAS.js → i18n-CASpRf85.js} +135 -135
  49. package/dist/imageOptimizer-D8g9XVns.js +141 -0
  50. package/dist/{labels-0dEJldQX.js → labels-IV_I9087.js} +1 -1
  51. package/dist/modalManager.svelte-Cz_6x1Qd.js +37 -0
  52. package/dist/{order-totals-Ci_p6SG6.js → order-totals-Buq9HeZa.js} +33 -33
  53. package/dist/{orders-Bat2EL64.js → orders-BK47iONR.js} +2 -2
  54. package/dist/{phoneUtils-Cm9iv40N.js → phoneUtils-YjT5IJ25.js} +1 -1
  55. package/dist/{pixels-Ha6vOCaS.js → pixels-DjK-0XYz.js} +3 -3
  56. package/dist/{promo-DWzTN7u9.js → promo-DkM9sLly.js} +1 -1
  57. package/dist/{serverTotals-BBlkfqMf.js → serverTotals-CvJBYArq.js} +1 -1
  58. package/dist/{shareCopyFeedback.svelte-CW0Yy9Oz.js → shareCopyFeedback.svelte-oxKGmiOe.js} +65 -65
  59. package/dist/{showcase-state-options-CxRQ-phi.js → showcase-state-options-x_9iSBsd.js} +1 -1
  60. package/dist/{to-event-card-props-BIl0qQs0.js → to-event-card-props-9y7sVBi_.js} +49 -49
  61. package/dist/{utils-ChgG4jiQ.js → utils-D80jLqKH.js} +3 -3
  62. package/dist/venue-calendar.css +1 -1
  63. package/dist/venue-calendar.es.js +986 -986
  64. package/dist/venue-calendar.iife.js +57 -57
  65. package/dist/venue-calendar.umd.js +52 -52
  66. package/package.json +2 -2
  67. package/dist/CartView-DVugxQ3D.js +0 -2245
  68. package/dist/Checkout-D7KSikhw.js +0 -980
  69. package/dist/CropImage-CxLcNArr.js +0 -445
  70. package/dist/ModalFooter-DlRXuHQz.js +0 -301
  71. package/dist/imageOptimizer-BwLwBMI6.js +0 -112
  72. package/dist/modalManager.svelte-Dnv5jhxp.js +0 -53
  73. package/dist/portal-DqxEuE-7.js +0 -166
  74. /package/dist/locales/{4.3.8 → 4.3.9}/flow/de.js +0 -0
  75. /package/dist/locales/{4.3.8 → 4.3.9}/flow/es.js +0 -0
  76. /package/dist/locales/{4.3.8 → 4.3.9}/flow/fr.js +0 -0
  77. /package/dist/locales/{4.3.8 → 4.3.9}/flow/id.js +0 -0
  78. /package/dist/locales/{4.3.8 → 4.3.9}/flow/it.js +0 -0
  79. /package/dist/locales/{4.3.8 → 4.3.9}/flow/ja.js +0 -0
  80. /package/dist/locales/{4.3.8 → 4.3.9}/flow/ko.js +0 -0
  81. /package/dist/locales/{4.3.8 → 4.3.9}/flow/nl.js +0 -0
  82. /package/dist/locales/{4.3.8 → 4.3.9}/flow/pl.js +0 -0
  83. /package/dist/locales/{4.3.8 → 4.3.9}/flow/pt-br.js +0 -0
  84. /package/dist/locales/{4.3.8 → 4.3.9}/flow/tr.js +0 -0
  85. /package/dist/locales/{4.3.8 → 4.3.9}/flow/zh.js +0 -0
  86. /package/dist/locales/{4.3.8 → 4.3.9}/main/de.js +0 -0
  87. /package/dist/locales/{4.3.8 → 4.3.9}/main/es.js +0 -0
  88. /package/dist/locales/{4.3.8 → 4.3.9}/main/fr.js +0 -0
  89. /package/dist/locales/{4.3.8 → 4.3.9}/main/id.js +0 -0
  90. /package/dist/locales/{4.3.8 → 4.3.9}/main/it.js +0 -0
  91. /package/dist/locales/{4.3.8 → 4.3.9}/main/ja.js +0 -0
  92. /package/dist/locales/{4.3.8 → 4.3.9}/main/ko.js +0 -0
  93. /package/dist/locales/{4.3.8 → 4.3.9}/main/nl.js +0 -0
  94. /package/dist/locales/{4.3.8 → 4.3.9}/main/pl.js +0 -0
  95. /package/dist/locales/{4.3.8 → 4.3.9}/main/pt-br.js +0 -0
  96. /package/dist/locales/{4.3.8 → 4.3.9}/main/tr.js +0 -0
  97. /package/dist/locales/{4.3.8 → 4.3.9}/main/zh.js +0 -0
@@ -1,301 +0,0 @@
1
- import { b as e, i as t, t as n } from "./Button-Cm6xkipe.js";
2
- import { V as r } from "./defaultLabels-BdLGAc3u.js";
3
- import { c as i, l as a, n as o, r as s, t as c, u as l } from "./z-index-BgKs9X9U.js";
4
- import { n as u } from "./keyboard-fiZFqeNA.js";
5
- import { c as d, l as f, o as p, s as m, t as h } from "./portal-DqxEuE-7.js";
6
- import "svelte/internal/disclose-version";
7
- import * as g from "svelte/internal/client";
8
- import { SvelteMap as _ } from "svelte/reactivity";
9
- import { createContext as v, getContext as y, setContext as b } from "svelte";
10
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/context.js
11
- var x = Symbol("modal-panel-visibility"), S = (e) => {
12
- b(x, e);
13
- }, C = () => y(x), [w, T] = v(), E = /* @__PURE__ */ new Map();
14
- function D(e) {
15
- if (typeof document > "u" || !e) return () => {};
16
- let t = e.parentElement ?? document.body, n = [];
17
- for (let r of Array.from(t.children)) {
18
- if (r === e || !(r instanceof HTMLElement)) continue;
19
- let t = E.get(r);
20
- t || (t = {
21
- count: 0,
22
- prevInert: r.inert,
23
- prevAriaHidden: r.getAttribute("aria-hidden")
24
- }, E.set(r, t), r.inert = !0, r.setAttribute("aria-hidden", "true")), t.count++, n.push(r);
25
- }
26
- let r = !1;
27
- return () => {
28
- if (!r) {
29
- r = !0;
30
- for (let e of n) {
31
- let t = E.get(e);
32
- t && (t.count--, !(t.count > 0) && (E.delete(e), e.inert = t.prevInert, t.prevAriaHidden === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", t.prevAriaHidden)));
33
- }
34
- n.length = 0;
35
- }
36
- };
37
- }
38
- //#endregion
39
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalRoot.svelte
40
- var O = g.from_html("<div class=\"absolute inset-0 z-sticky flex items-center justify-center p-4\"><div class=\"absolute inset-0 bg-overlay-bg/60 backdrop-blur-sm\"></div> <div role=\"alertdialog\" aria-modal=\"true\" tabindex=\"-1\" class=\"relative bg-card rounded-lg w-full max-w-sm shadow-2xl p-6 flex flex-col gap-4\"><div class=\"flex flex-col gap-1\"><h2 class=\"type-subheading tone-primary\"> </h2> <p class=\"type-body tone-secondary\"> </p></div> <div class=\"flex flex-col md:flex-row md:justify-end gap-3\"><!> <!></div></div></div>"), k = g.from_html("<div aria-modal=\"true\" data-escape-layer=\"\"><div class=\"contents\"><!></div> <!></div>");
41
- function A(i, a) {
42
- let o = g.props_id();
43
- g.push(a, !0);
44
- let s = g.prop(a, "open", 15, !1), l = g.prop(a, "size", 3, "md"), v = g.prop(a, "persistent", 3, !1), y = g.prop(a, "haptic", 3, !0), b = g.prop(a, "role", 3, "dialog"), x = g.prop(a, "dirty", 3, !1), S = g.prop(a, "variant", 3, "sheet");
45
- a.onclose && e("Modal prop 'onclose' is deprecated. Use 'oncancel' instead.");
46
- let C = g.derived(() => a.oncancel ?? a.onclose), w = 0, E = 0, A = () => `${o}-title-${w++}`, j = () => `${o}-description-${E++}`, M = new _(), N = new _(), P = (e) => {
47
- M.set(e.id, e.visibility);
48
- }, F = (e) => {
49
- M.delete(e);
50
- }, I = (e) => {
51
- N.set(e.id, e.visibility);
52
- }, L = (e) => {
53
- N.delete(e);
54
- }, R = g.state(g.proxy(typeof window < "u" && window.matchMedia ? window.matchMedia("(min-width: 768px)").matches : !0));
55
- g.user_effect(() => {
56
- if (typeof window > "u" || !window.matchMedia) return;
57
- let e = window.matchMedia("(min-width: 768px)"), t = () => {
58
- g.set(R, e.matches, !0);
59
- };
60
- return t(), e.addEventListener("change", t), () => e.removeEventListener("change", t);
61
- });
62
- function z(e) {
63
- for (let [t, n] of e) if (n === "always" || n === "desktop" && g.get(R) || n === "mobile" && !g.get(R)) return t;
64
- let t = e.keys().next();
65
- return t.done ? void 0 : t.value;
66
- }
67
- let B = g.derived(() => a["aria-labelledby"] ?? z(M)), V = g.derived(() => z(N)), H = g.state(null), U = g.state(null), W = g.state(!1), G = g.state(!1), K, q = g.derived(() => ({
68
- title: a.discardLabels?.title ?? "Discard changes?",
69
- description: a.discardLabels?.description ?? "You have unsaved changes. Are you sure you want to close?",
70
- confirm: a.discardLabels?.confirm ?? "Discard",
71
- cancel: a.discardLabels?.cancel ?? "Keep editing"
72
- })), J = g.state(null);
73
- g.user_effect(() => {
74
- s() && !g.get(W) && typeof document < "u" && g.set(J, document.activeElement, !0);
75
- });
76
- let Y = () => {
77
- g.set(G, !1), g.get(C)?.(), s(!1);
78
- };
79
- function X(e = Y) {
80
- if (x()) {
81
- K = e, g.set(G, !0);
82
- return;
83
- }
84
- e();
85
- }
86
- let Z = () => X(), Q = () => {
87
- let e = K ?? Y;
88
- K = void 0, g.set(G, !1), e();
89
- };
90
- T({
91
- get open() {
92
- return s();
93
- },
94
- get size() {
95
- return l();
96
- },
97
- get persistent() {
98
- return v();
99
- },
100
- get variant() {
101
- return S();
102
- },
103
- get role() {
104
- return b();
105
- },
106
- nextTitleId: A,
107
- nextDescriptionId: j,
108
- registerTitle: P,
109
- unregisterTitle: F,
110
- registerDescription: I,
111
- unregisterDescription: L,
112
- resetModal: Y
113
- }), m({
114
- get target() {
115
- return g.get(H);
116
- },
117
- layer: "modalContent"
118
- }), g.user_effect(() => {
119
- if (!(!s() || !g.get(H))) return p(g.get(H));
120
- }), g.user_effect(() => {
121
- s() && !g.get(W) && y() && t("light"), g.set(W, s(), !0), s() || (g.set(G, !1), K = void 0);
122
- });
123
- function ee(e) {
124
- if (!(!s() || !u(e, g.get(H)))) {
125
- if (g.get(G)) {
126
- e.preventDefault(), g.set(G, !1), K = void 0;
127
- return;
128
- }
129
- v() || (e.preventDefault(), Z());
130
- }
131
- }
132
- g.user_effect(() => {
133
- if (s()) return d();
134
- }), g.user_effect(() => {
135
- if (!(!s() || !g.get(H))) return D(g.get(H));
136
- }), g.user_effect(() => {
137
- if (!(!g.get(G) || !g.get(U))) return g.get(U).inert = !0, g.get(U).setAttribute("aria-hidden", "true"), () => {
138
- g.get(U) && (g.get(U).inert = !1, g.get(U).removeAttribute("aria-hidden"));
139
- };
140
- });
141
- var te = { guardedClose: X }, $ = g.comment();
142
- g.event("keydown", g.window, ee);
143
- var ne = g.first_child($), re = (e) => {
144
- var t = k();
145
- let i;
146
- var l = g.child(t), u = g.child(l);
147
- g.snippet(u, () => a.children ?? g.noop), g.reset(l), g.bind_this(l, (e) => g.set(U, e), () => g.get(U));
148
- var d = g.sibling(l, 2), p = (e) => {
149
- var t = O(), r = g.sibling(g.child(t), 2), i = g.child(r), a = g.child(i), s = g.child(a, !0);
150
- g.reset(a);
151
- var c = g.sibling(a, 2), l = g.child(c, !0);
152
- g.reset(c), g.reset(i);
153
- var u = g.sibling(i, 2), d = g.child(u);
154
- n(d, {
155
- variant: "alternative",
156
- size: "md",
157
- onclick: () => {
158
- g.set(G, !1), K = void 0;
159
- },
160
- children: (e, t) => {
161
- g.next();
162
- var n = g.text();
163
- g.template_effect(() => g.set_text(n, g.get(q).cancel)), g.append(e, n);
164
- },
165
- $$slots: { default: !0 }
166
- });
167
- var p = g.sibling(d, 2);
168
- n(p, {
169
- variant: "red",
170
- size: "md",
171
- onclick: Q,
172
- children: (e, t) => {
173
- g.next();
174
- var n = g.text();
175
- g.template_effect(() => g.set_text(n, g.get(q).confirm)), g.append(e, n);
176
- },
177
- $$slots: { default: !0 }
178
- }), g.reset(u), g.reset(r), g.action(r, (e, t) => f?.(e, t), () => ({ enabled: g.get(G) })), g.reset(t), g.template_effect(() => {
179
- g.set_attribute(r, "aria-labelledby", `${o}-discard-title`), g.set_attribute(r, "aria-describedby", `${o}-discard-desc`), g.set_attribute(a, "id", `${o}-discard-title`), g.set_text(s, g.get(q).title), g.set_attribute(c, "id", `${o}-discard-desc`), g.set_text(l, g.get(q).description);
180
- }), g.delegated("mousedown", t, (e) => e.stopPropagation()), g.delegated("mouseup", t, (e) => e.stopPropagation()), g.delegated("click", r, (e) => e.stopPropagation()), g.append(e, t);
181
- };
182
- g.if(d, (e) => {
183
- g.get(G) && e(p);
184
- }), g.reset(t), g.bind_this(t, (e) => g.set(H, e), () => g.get(H)), g.action(t, (e) => h?.(e)), g.action(t, (e, t) => f?.(e, t), () => ({
185
- enabled: s() && !g.get(G),
186
- returnFocusTo: g.get(J)
187
- })), g.template_effect((e) => {
188
- g.set_class(t, 1, e), g.set_attribute(t, "role", b()), g.set_attribute(t, "aria-labelledby", g.get(B)), g.set_attribute(t, "aria-describedby", g.get(V)), g.set_attribute(t, "data-testid", a["data-testid"]), i = g.set_style(t, "", i, { "z-index": c.modal });
189
- }, [() => g.clsx(r("fixed inset-0 flex justify-center touch-none overscroll-none", S() === "dialog" ? "items-center p-4" : "items-end md:items-center md:p-4", a.class))]), g.delegated("mousedown", t, (e) => {
190
- e.target === e.currentTarget && !v() && b() !== "alertdialog" && (e.currentTarget.dataset.clickStartedOnBackdrop = "true");
191
- }), g.delegated("mouseup", t, (e) => {
192
- let t = e.currentTarget;
193
- e.target === e.currentTarget && t.dataset.clickStartedOnBackdrop === "true" && !v() && b() !== "alertdialog" && Z(), delete t.dataset.clickStartedOnBackdrop;
194
- }), g.append(e, t);
195
- };
196
- return g.if(ne, (e) => {
197
- s() && e(re);
198
- }), g.append(i, $), g.pop(te);
199
- }
200
- g.delegate([
201
- "mousedown",
202
- "mouseup",
203
- "click"
204
- ]);
205
- //#endregion
206
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalOverlay.svelte
207
- var j = g.from_html("<div><!></div>");
208
- function M(e, t) {
209
- g.push(t, !0), w();
210
- var n = j(), a = g.child(n), s = (e) => {
211
- var n = g.comment(), r = g.first_child(n);
212
- g.snippet(r, () => t.children), g.append(e, n);
213
- };
214
- g.if(a, (e) => {
215
- t.children && e(s);
216
- }), g.reset(n), g.template_effect((e) => g.set_class(n, 1, e), [() => g.clsx(r("absolute inset-0 bg-overlay-bg/60 backdrop-blur-sm pointer-events-none", t.class))]), g.transition(3, n, () => i, () => ({ duration: o.normal })), g.append(e, n), g.pop();
217
- }
218
- //#endregion
219
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalPanelScope.svelte
220
- function N(e, t) {
221
- g.push(t, !0), S(t.visibility);
222
- var n = g.comment(), r = g.first_child(n);
223
- g.snippet(r, () => t.children ?? g.noop), g.append(e, n), g.pop();
224
- }
225
- //#endregion
226
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalPanel.svelte
227
- var P = g.from_html("<div><!></div>"), F = g.from_html("<div><div class=\"md:hidden flex justify-center pt-3 pb-1 shrink-0\"><div class=\"w-10 h-1 bg-bg-quaternary rounded-xs\"></div></div> <!></div>");
228
- function I(e, t) {
229
- g.push(t, !0);
230
- let n = w(), i = {
231
- sm: "max-w-sm",
232
- md: "max-w-md",
233
- lg: "max-w-xl",
234
- xl: "max-w-2xl"
235
- }, c = {
236
- sm: "md:max-w-sm",
237
- md: "md:max-w-md",
238
- lg: "md:max-w-xl",
239
- xl: "md:max-w-2xl"
240
- }, u = g.derived(() => i[n.size] || i.md), d = g.derived(() => c[n.size] || c.md);
241
- function f(e) {
242
- return !(typeof window < "u" && window.matchMedia) || window.matchMedia("(min-width: 768px)").matches ? a(e) : l(e, {
243
- y: 300,
244
- duration: o.normal,
245
- easing: s.out
246
- });
247
- }
248
- var p = g.comment(), m = g.first_child(p), h = (e) => {
249
- var n = P();
250
- N(g.child(n), {
251
- visibility: "always",
252
- children: (e, n) => {
253
- var r = g.comment(), i = g.first_child(r);
254
- g.snippet(i, () => t.children ?? g.noop), g.append(e, r);
255
- },
256
- $$slots: { default: !0 }
257
- }), g.reset(n), g.template_effect((e) => g.set_class(n, 1, e), [() => g.clsx(r("relative bg-card rounded-lg w-full max-h-[calc(100vh-4rem)] overflow-hidden shadow-2xl flex flex-col", g.get(u), t.class))]), g.delegated("click", n, (e) => e.stopPropagation()), g.transition(3, n, () => a), g.append(e, n);
258
- }, _ = (e) => {
259
- var n = F();
260
- N(g.sibling(g.child(n), 2), {
261
- visibility: "always",
262
- children: (e, n) => {
263
- var r = g.comment(), i = g.first_child(r);
264
- g.snippet(i, () => t.children ?? g.noop), g.append(e, r);
265
- },
266
- $$slots: { default: !0 }
267
- }), g.reset(n), g.template_effect((e) => g.set_class(n, 1, e), [() => g.clsx(r("relative bg-card w-full overflow-hidden flex flex-col touch-pan-y overscroll-contain", "rounded-t-3xl md:rounded-lg", "max-h-[90vh] max-h-[90dvh] md:max-h-[calc(100vh-4rem)]", "shadow-2xl", g.get(d), t.class))]), g.delegated("click", n, (e) => e.stopPropagation()), g.transition(3, n, () => f), g.append(e, n);
268
- };
269
- g.if(m, (e) => {
270
- n.variant === "dialog" ? e(h) : e(_, -1);
271
- }), g.append(e, p), g.pop();
272
- }
273
- g.delegate(["click"]);
274
- //#endregion
275
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalBody.svelte
276
- var L = g.from_html("<div><!></div>");
277
- function R(e, t) {
278
- g.push(t, !0), w();
279
- var n = L(), i = g.child(n), a = (e) => {
280
- var n = g.comment(), r = g.first_child(n);
281
- g.snippet(r, () => t.children), g.append(e, n);
282
- };
283
- g.if(i, (e) => {
284
- t.children && e(a);
285
- }), g.reset(n), g.template_effect((e) => g.set_class(n, 1, e), [() => g.clsx(r("flex-1 min-h-0 overflow-y-auto px-6 py-3", t.class))]), g.append(e, n), g.pop();
286
- }
287
- //#endregion
288
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalFooter.svelte
289
- var z = g.from_html("<div><!></div>");
290
- function B(e, t) {
291
- g.push(t, !0), w();
292
- var n = z(), i = g.child(n), a = (e) => {
293
- var n = g.comment(), r = g.first_child(n);
294
- g.snippet(r, () => t.children), g.append(e, n);
295
- };
296
- g.if(i, (e) => {
297
- t.children && e(a);
298
- }), g.reset(n), g.template_effect((e) => g.set_class(n, 1, e), [() => g.clsx(r("shrink-0 w-full flex flex-col md:flex-row md:justify-end gap-3 px-6 pt-3 pb-6 empty:hidden", t.class))]), g.append(e, n), g.pop();
299
- }
300
- //#endregion
301
- export { A as a, M as i, R as n, w as o, I as r, C as s, B as t };
@@ -1,112 +0,0 @@
1
- import { v as e } from "./Button-Cm6xkipe.js";
2
- import { c as t, n, r, t as i, u as a } from "./z-index-BgKs9X9U.js";
3
- import { n as o } from "./keyboard-fiZFqeNA.js";
4
- import { c as s, l as c, t as l } from "./portal-DqxEuE-7.js";
5
- import "svelte/internal/disclose-version";
6
- import * as u from "svelte/internal/client";
7
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/PlusOutline.svelte
8
- var d = u.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>");
9
- function f(e, t) {
10
- let n = u.prop(t, "size", 3, "24"), r = u.prop(t, "color", 3, "currentColor"), i = u.prop(t, "class", 3, "");
11
- var a = d();
12
- u.template_effect(() => {
13
- u.set_class(a, 0, u.clsx(i())), u.set_attribute(a, "width", n()), u.set_attribute(a, "height", n()), u.set_attribute(a, "stroke", r());
14
- }), u.append(e, a);
15
- }
16
- //#endregion
17
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/BottomSheet/BottomSheet.svelte
18
- var p = u.from_html("<div class=\"px-6 pb-4 border-b border-border shrink-0\"><h3> </h3></div>"), m = u.from_html("<div class=\"px-6 py-4 border-t border-border shrink-0 flex flex-col gap-3\"><!></div>"), h = u.from_html("<div role=\"presentation\"><div role=\"dialog\" aria-modal=\"true\" data-escape-layer=\"\" tabindex=\"-1\"><div><div class=\"w-10 h-1 bg-bg-quaternary rounded-full\"></div></div> <!> <div class=\"flex-1 overflow-y-auto overscroll-contain p-4 px-6\"><!></div> <!></div></div>");
19
- function g(d, f) {
20
- u.push(f, !0);
21
- let g = u.prop(f, "open", 11, !1), _ = u.prop(f, "title", 3, ""), v = u.prop(f, "alwaysSheet", 3, !1), y = `bottom-sheet-title-${Math.random().toString(36).slice(2, 9)}`, b = u.state(!1), x = u.state(null);
22
- u.user_effect(() => {
23
- g() && !u.get(b) && typeof document < "u" && u.set(x, document.activeElement, !0), u.set(b, g());
24
- });
25
- let S = u.state(void 0);
26
- function C() {
27
- f.onclose?.();
28
- }
29
- function w(e) {
30
- e.target === e.currentTarget && C();
31
- }
32
- function T(e) {
33
- g() && o(e, u.get(S)) && (e.preventDefault(), C());
34
- }
35
- u.user_effect(() => {
36
- if (g()) return s();
37
- });
38
- let E = u.derived(() => v() ? "fixed inset-0 flex items-end bg-bg-primary/50" : "fixed inset-0 flex items-end md:items-center md:justify-center bg-bg-primary/50"), D = u.derived(() => v() ? "w-full max-h-[90dvh] bg-card rounded-t-xl shadow-xl flex flex-col overflow-hidden" : "w-full max-h-[90dvh] md:max-w-lg md:max-h-[80vh] md:m-4 bg-card rounded-t-xl md:rounded-lg shadow-xl flex flex-col overflow-hidden");
39
- var O = u.comment();
40
- u.event("keydown", u.window, T);
41
- var k = u.first_child(O), A = (o) => {
42
- var s = h();
43
- let d;
44
- var b = u.child(s), C = u.child(b), T = u.sibling(C, 2), O = (t) => {
45
- var n = p(), r = u.child(n), i = u.child(r, !0);
46
- u.reset(r), u.reset(n), u.template_effect(() => {
47
- u.set_attribute(r, "id", y), u.set_class(r, 1, u.clsx(e.h3)), u.set_text(i, _());
48
- }), u.append(t, n);
49
- };
50
- u.if(T, (e) => {
51
- _() && e(O);
52
- });
53
- var k = u.sibling(T, 2), A = u.child(k);
54
- u.snippet(A, () => f.children ?? u.noop), u.reset(k);
55
- var j = u.sibling(k, 2), M = (e) => {
56
- var t = m(), n = u.child(t);
57
- u.snippet(n, () => f.actions ?? u.noop), u.reset(t), u.append(e, t);
58
- };
59
- u.if(j, (e) => {
60
- f.actions && e(M);
61
- }), u.reset(b), u.bind_this(b, (e) => u.set(S, e), () => u.get(S)), u.action(b, (e, t) => c?.(e, t), () => ({
62
- enabled: g(),
63
- returnFocusTo: u.get(x)
64
- })), u.reset(s), u.action(s, (e) => l?.(e)), u.template_effect(() => {
65
- u.set_class(s, 1, u.clsx(u.get(E))), d = u.set_style(s, "", d, { "z-index": i.modal }), u.set_class(b, 1, u.clsx(u.get(D))), u.set_attribute(b, "aria-labelledby", f["aria-labelledby"] ?? (_() ? y : void 0)), u.set_attribute(b, "data-testid", f["data-testid"]), u.set_class(C, 1, `flex justify-center pt-3 pb-2 shrink-0 ${v() ? "" : "md:hidden"}`);
66
- }), u.delegated("click", s, w), u.delegated("click", b, (e) => e.stopPropagation()), u.transition(3, b, () => a, () => ({
67
- y: 300,
68
- duration: n.normal,
69
- easing: r.out
70
- })), u.transition(3, s, () => t, () => ({ duration: n.fast })), u.append(o, s);
71
- };
72
- u.if(k, (e) => {
73
- g() && e(A);
74
- }), u.append(d, O), u.pop();
75
- }
76
- u.delegate(["click"]);
77
- //#endregion
78
- //#region node_modules/@getmicdrop/svelte-components/dist/utils/imageOptimizer.js
79
- function _(e) {
80
- return new Promise((t, n) => {
81
- let r = new Image();
82
- r.addEventListener("load", () => t(r)), r.addEventListener("error", (e) => n(e)), e.startsWith("blob:") || r.setAttribute("crossOrigin", "anonymous"), r.src = e;
83
- });
84
- }
85
- function v() {
86
- let e = document.createElement("canvas");
87
- return e.width = 1, e.height = 1, e.toDataURL("image/webp").indexOf("data:image/webp") === 0;
88
- }
89
- async function y(e, t = {}) {
90
- let { maxSize: n = 1e3, quality: r, forceSquare: i = !1 } = t, a = URL.createObjectURL(e);
91
- try {
92
- let t = await _(a), o = document.createElement("canvas"), s = o.getContext("2d"), c, l, u = 0, d = 0, f = t.width, p = t.height;
93
- if (i) {
94
- let e = Math.min(t.width, t.height);
95
- u = (t.width - e) / 2, d = (t.height - e) / 2, f = e, p = e, c = n, l = n;
96
- } else {
97
- let e = t.width / t.height;
98
- t.width > t.height ? (c = Math.min(t.width, n), l = Math.round(c / e)) : (l = Math.min(t.height, n), c = Math.round(l * e)), t.width <= n && t.height <= n && (c = t.width, l = t.height);
99
- }
100
- o.width = c, o.height = l, s.imageSmoothingEnabled = !0, s.imageSmoothingQuality = "high", s.drawImage(t, u, d, f, p, 0, 0, c, l);
101
- let m = v(), h = m ? "image/webp" : "image/jpeg", g = r ?? (m ? .8 : .85), y = m ? "webp" : "jpg", b = `${e.name.replace(/\.[^.]+$/, "")}.${y}`;
102
- return new Promise((e) => {
103
- o.toBlob((t) => {
104
- e(new File([t], b, { type: h }));
105
- }, h, g);
106
- });
107
- } finally {
108
- URL.revokeObjectURL(a);
109
- }
110
- }
111
- //#endregion
112
- export { f as a, g as i, y as n, v as r, _ as t };
@@ -1,53 +0,0 @@
1
- import { V as e } from "./defaultLabels-BdLGAc3u.js";
2
- import { o as t } from "./ModalFooter-DlRXuHQz.js";
3
- import "svelte/internal/disclose-version";
4
- import * as n from "svelte/internal/client";
5
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalHeader.svelte
6
- var r = n.from_html("<div><!></div>");
7
- function i(i, a) {
8
- n.push(a, !0), t();
9
- var o = r(), s = n.child(o), c = (e) => {
10
- var t = n.comment(), r = n.first_child(t);
11
- n.snippet(r, () => a.children), n.append(e, t);
12
- };
13
- n.if(s, (e) => {
14
- a.children && e(c);
15
- }), n.reset(o), n.template_effect((e) => n.set_class(o, 1, e), [() => n.clsx(e("shrink-0 px-6 pt-6 pb-3", a.class))]), n.append(i, o), n.pop();
16
- }
17
- //#endregion
18
- //#region node_modules/@getmicdrop/svelte-components/dist/utils/modalManager.svelte.js
19
- function a() {
20
- let e = n.state(!1), t = n.state(null);
21
- return {
22
- get isOpen() {
23
- return n.get(e);
24
- },
25
- get data() {
26
- return n.get(t);
27
- },
28
- open(r) {
29
- n.set(t, r ?? null, !0), n.set(e, !0);
30
- },
31
- close() {
32
- n.set(e, !1), n.set(t, null);
33
- },
34
- toggle(r) {
35
- n.get(e) ? (n.set(e, !1), n.set(t, null)) : (n.set(t, r ?? null, !0), n.set(e, !0));
36
- },
37
- bind() {
38
- return {
39
- get open() {
40
- return n.get(e);
41
- },
42
- set open(r) {
43
- r ? n.set(e, !0) : (n.set(e, !1), n.set(t, null));
44
- },
45
- oncancel() {
46
- n.set(e, !1), n.set(t, null);
47
- }
48
- };
49
- }
50
- };
51
- }
52
- //#endregion
53
- export { i as n, a as t };
@@ -1,166 +0,0 @@
1
- import { getContext as e, setContext as t } from "svelte";
2
- //#region node_modules/@getmicdrop/svelte-components/dist/utils/focusTrap.js
3
- function n(e, t = {}) {
4
- let n = [
5
- "a[href]",
6
- "area[href]",
7
- "input:not([disabled]):not([type=\"hidden\"])",
8
- "select:not([disabled])",
9
- "textarea:not([disabled])",
10
- "button:not([disabled])",
11
- "[tabindex]:not([tabindex=\"-1\"])",
12
- "[contenteditable]",
13
- "audio[controls]",
14
- "video[controls]",
15
- "details>summary:first-of-type",
16
- "details"
17
- ].join(","), r = t.enabled ?? !0, i = t.returnFocusTo ?? null, a = null;
18
- function o() {
19
- return Array.from(e.querySelectorAll(n)).filter((e) => !e.hasAttribute("disabled") && e.tabIndex !== -1 && s(e));
20
- }
21
- function s(e) {
22
- return !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length);
23
- }
24
- function c(e) {
25
- if (!r || e.key !== "Tab") return;
26
- let t = o();
27
- if (t.length === 0) return;
28
- let n = t[0], i = t[t.length - 1];
29
- e.shiftKey ? document.activeElement === n && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), n.focus());
30
- }
31
- function l() {
32
- if (!r) return;
33
- a = document.activeElement;
34
- let t = o();
35
- t.length > 0 ? requestAnimationFrame(() => {
36
- t[0].focus();
37
- }) : (e.setAttribute("tabindex", "-1"), e.focus()), document.addEventListener("keydown", c);
38
- }
39
- function u() {
40
- document.removeEventListener("keydown", c);
41
- let e = i || a;
42
- e && typeof e.focus == "function" && e.focus();
43
- }
44
- return r && l(), {
45
- update(e) {
46
- let t = e.enabled ?? !0;
47
- i = e.returnFocusTo ?? null, t !== r && (r = t, r ? l() : u());
48
- },
49
- destroy() {
50
- u();
51
- }
52
- };
53
- }
54
- //#endregion
55
- //#region node_modules/@getmicdrop/svelte-components/dist/utils/body-scroll-lock.js
56
- var r = 0, i = 0;
57
- function a() {
58
- if (typeof document > "u") return () => {};
59
- if (r++, r === 1) {
60
- i = window.scrollY;
61
- let e = window.innerWidth - document.documentElement.clientWidth;
62
- document.body.style.position = "fixed", document.body.style.top = `-${i}px`, document.body.style.left = "0", document.body.style.right = "0", document.body.style.overflow = "hidden", document.body.style.paddingRight = `${e}px`;
63
- }
64
- let e = !1;
65
- return () => {
66
- e || (e = !0, r--, !(r > 0) && (document.body.style.position = "", document.body.style.top = "", document.body.style.left = "", document.body.style.right = "", document.body.style.overflow = "", document.body.style.paddingRight = "", window.scrollTo(0, i)));
67
- };
68
- }
69
- //#endregion
70
- //#region node_modules/@getmicdrop/svelte-components/dist/utils/portalContainment.js
71
- var o = Symbol("portal-containment");
72
- function s(e) {
73
- t(o, e);
74
- }
75
- function c() {
76
- try {
77
- return e(o);
78
- } catch {
79
- return;
80
- }
81
- }
82
- var l = [], u = /* @__PURE__ */ new Set(), d = !1, f = !1;
83
- function p() {
84
- if (d) {
85
- f = !0;
86
- return;
87
- }
88
- d = !0;
89
- try {
90
- let e = 0;
91
- do {
92
- f = !1;
93
- for (let e of u) e();
94
- e += 1;
95
- } while (f && e < 5);
96
- } finally {
97
- d = !1;
98
- }
99
- }
100
- function m() {
101
- p();
102
- }
103
- function h(e) {
104
- l.push(e), p();
105
- let t = !1;
106
- return () => {
107
- if (t) return;
108
- t = !0;
109
- let n = l.lastIndexOf(e);
110
- n !== -1 && l.splice(n, 1), p();
111
- };
112
- }
113
- function g() {
114
- return l.length > 0;
115
- }
116
- function _(e) {
117
- return l.some((t) => t === e || t.contains(e));
118
- }
119
- function v(e) {
120
- return u.add(e), () => {
121
- u.delete(e);
122
- };
123
- }
124
- //#endregion
125
- //#region node_modules/@getmicdrop/svelte-components/dist/utils/portal.js
126
- function y(e, t) {
127
- let n = c(), r = t, i = e.parentNode;
128
- function a() {
129
- return e.getAttribute?.("aria-modal") === "true" || e.querySelector?.("[aria-modal=\"true\"]") !== null;
130
- }
131
- function o() {
132
- if (r) return r;
133
- let t = n?.target;
134
- return t && t !== e && !e.contains(t) && t.contains(i) && !a() ? t : document.body;
135
- }
136
- let s = e.hasAttribute?.("data-theme"), l;
137
- function u(t) {
138
- if (s) return;
139
- l?.disconnect(), l = void 0;
140
- let n = i?.closest?.("[data-theme]");
141
- n && t && !n.contains(t) ? (e.dataset.theme = n.dataset.theme, typeof MutationObserver < "u" && (l = new MutationObserver(() => u(e.parentNode)), l.observe(n, {
142
- attributes: !0,
143
- attributeFilter: ["data-theme"]
144
- }))) : e.removeAttribute?.("data-theme");
145
- }
146
- function d() {
147
- let t = o();
148
- e.parentNode !== t && (t.appendChild(e), u(t), m());
149
- }
150
- let f = n ? v(d) : void 0, p = n && typeof MutationObserver < "u" ? new MutationObserver(d) : void 0;
151
- return p?.observe(e, {
152
- childList: !0,
153
- subtree: !0,
154
- attributes: !0,
155
- attributeFilter: ["aria-modal"]
156
- }), d(), {
157
- update(e) {
158
- r = e || void 0, d();
159
- },
160
- destroy() {
161
- f?.(), p?.disconnect(), l?.disconnect(), e.parentNode && e.parentNode.removeChild(e);
162
- }
163
- };
164
- }
165
- //#endregion
166
- export { v as a, a as c, _ as i, n as l, c as n, h as o, g as r, s, y as t };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes