@getmicdrop/venue-calendar 4.3.0 → 4.3.2

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 (66) hide show
  1. package/dist/{Badge-XNQHeoZJ.js → Badge-Gg5PWs7f.js} +39 -60
  2. package/dist/Calendar-bhl8Q8us.js +1332 -0
  3. package/dist/{CalendarFoundryView-9LW4nveh.js → CalendarFoundryView-C2O_AmBk.js} +5881 -5311
  4. package/dist/CartView-D57bwixz.js +2245 -0
  5. package/dist/{Checkbox-BexPyTGk.js → Checkbox-24CWEsty.js} +1 -1
  6. package/dist/{Checkout-D_oRIhxJ.js → Checkout-BqaJK6UP.js} +136 -135
  7. package/dist/{Checkout-C6xmGlWs.js → Checkout-DQWeMchu.js} +100 -100
  8. package/dist/{CollectionView-BdVW1cJz.js → CollectionView-B-PR54hU.js} +3 -3
  9. package/dist/CropImage-CxLcNArr.js +445 -0
  10. package/dist/{Event-I5Wu3_AC.js → Event-DxNC58Zb.js} +327 -325
  11. package/dist/{EventPage-BjrFGlDJ.js → EventPage-Y3NWzmN0.js} +38 -38
  12. package/dist/{Heading-KNE3t6AC.js → Heading-cKAx0Ogl.js} +3 -1
  13. package/dist/Input-D1FpSX5Q.js +292 -0
  14. package/dist/{Modal-c4rwVXSs.js → Modal-LkN8lh_m.js} +5 -2
  15. package/dist/ModalFooter-B_8f1Z5p.js +301 -0
  16. package/dist/{PasswordInput-Dm4Z88em.js → PasswordInput-Bt6tvpzi.js} +19 -15
  17. package/dist/{ScarcityBadge-DMI7KfDF.js → ScarcityBadge-g0dRh6K7.js} +1 -1
  18. package/dist/{SeriesPage-BQGc51bF.js → SeriesPage-D2305oP-.js} +2 -2
  19. package/dist/{Spinner-C8M6STFM.js → Spinner-LroI7eOC.js} +1 -1
  20. package/dist/{Success-CxJiJEdx.js → Success-ClXshzvl.js} +1 -1
  21. package/dist/{ViewTicketsEmbed-D-w4zHtm.js → ViewTicketsEmbed-CvuMdTA7.js} +4 -4
  22. package/dist/{browser-By3zPFZd.js → browser-viCaCwoW.js} +1 -1
  23. package/dist/imageOptimizer-BwLwBMI6.js +112 -0
  24. package/dist/keyboard-fiZFqeNA.js +29 -0
  25. package/dist/{modalManager.svelte-CQrpnx4J.js → modalManager.svelte-B9mhX1cG.js} +1 -1
  26. package/dist/{phoneUtils-by0RmQv1.js → phoneUtils-C2GGZYvA.js} +319 -319
  27. package/dist/portal-DqxEuE-7.js +166 -0
  28. package/dist/{to-event-card-props-BdO47New.js → to-event-card-props-dIhKdERf.js} +103 -97
  29. package/dist/types/index.d.ts +11 -0
  30. package/dist/venue-calendar.css +1 -1
  31. package/dist/venue-calendar.es.js +1053 -969
  32. package/dist/venue-calendar.iife.js +60 -60
  33. package/dist/venue-calendar.umd.js +57 -57
  34. package/dist/z-index-BgKs9X9U.js +225 -0
  35. package/package.json +220 -220
  36. package/dist/Calendar-C5tzjUQM.js +0 -1333
  37. package/dist/CartView-C4Fpn8mC.js +0 -2245
  38. package/dist/CropImage-D70HuWqC.js +0 -404
  39. package/dist/Input-Docb71Sc.js +0 -489
  40. package/dist/ModalFooter-CFgAtDI3.js +0 -464
  41. package/dist/imageOptimizer-CB3wKJU8.js +0 -47
  42. package/dist/z-index-B0Vk_Mp1.js +0 -27
  43. /package/dist/locales/{4.3.0 → 4.3.2}/flow/de.js +0 -0
  44. /package/dist/locales/{4.3.0 → 4.3.2}/flow/es.js +0 -0
  45. /package/dist/locales/{4.3.0 → 4.3.2}/flow/fr.js +0 -0
  46. /package/dist/locales/{4.3.0 → 4.3.2}/flow/id.js +0 -0
  47. /package/dist/locales/{4.3.0 → 4.3.2}/flow/it.js +0 -0
  48. /package/dist/locales/{4.3.0 → 4.3.2}/flow/ja.js +0 -0
  49. /package/dist/locales/{4.3.0 → 4.3.2}/flow/ko.js +0 -0
  50. /package/dist/locales/{4.3.0 → 4.3.2}/flow/nl.js +0 -0
  51. /package/dist/locales/{4.3.0 → 4.3.2}/flow/pl.js +0 -0
  52. /package/dist/locales/{4.3.0 → 4.3.2}/flow/pt-br.js +0 -0
  53. /package/dist/locales/{4.3.0 → 4.3.2}/flow/tr.js +0 -0
  54. /package/dist/locales/{4.3.0 → 4.3.2}/flow/zh.js +0 -0
  55. /package/dist/locales/{4.3.0 → 4.3.2}/main/de.js +0 -0
  56. /package/dist/locales/{4.3.0 → 4.3.2}/main/es.js +0 -0
  57. /package/dist/locales/{4.3.0 → 4.3.2}/main/fr.js +0 -0
  58. /package/dist/locales/{4.3.0 → 4.3.2}/main/id.js +0 -0
  59. /package/dist/locales/{4.3.0 → 4.3.2}/main/it.js +0 -0
  60. /package/dist/locales/{4.3.0 → 4.3.2}/main/ja.js +0 -0
  61. /package/dist/locales/{4.3.0 → 4.3.2}/main/ko.js +0 -0
  62. /package/dist/locales/{4.3.0 → 4.3.2}/main/nl.js +0 -0
  63. /package/dist/locales/{4.3.0 → 4.3.2}/main/pl.js +0 -0
  64. /package/dist/locales/{4.3.0 → 4.3.2}/main/pt-br.js +0 -0
  65. /package/dist/locales/{4.3.0 → 4.3.2}/main/tr.js +0 -0
  66. /package/dist/locales/{4.3.0 → 4.3.2}/main/zh.js +0 -0
@@ -1,464 +0,0 @@
1
- import { b as e, i as t, t as n } from "./Button-Cm6xkipe.js";
2
- import { V as r } from "./defaultLabels-BigaGqKj.js";
3
- import { d as i, i as a, l as o, r as s, u as c } from "./Input-Docb71Sc.js";
4
- import { t as l } from "./z-index-B0Vk_Mp1.js";
5
- import "svelte/internal/disclose-version";
6
- import * as u from "svelte/internal/client";
7
- import { SvelteMap as d } from "svelte/reactivity";
8
- import { createContext as f, getContext as p, setContext as m } from "svelte";
9
- //#region node_modules/@getmicdrop/svelte-components/dist/utils/focusTrap.js
10
- function h(e, t = {}) {
11
- let n = [
12
- "a[href]",
13
- "area[href]",
14
- "input:not([disabled]):not([type=\"hidden\"])",
15
- "select:not([disabled])",
16
- "textarea:not([disabled])",
17
- "button:not([disabled])",
18
- "[tabindex]:not([tabindex=\"-1\"])",
19
- "[contenteditable]",
20
- "audio[controls]",
21
- "video[controls]",
22
- "details>summary:first-of-type",
23
- "details"
24
- ].join(","), r = t.enabled ?? !0, i = t.returnFocusTo ?? null, a = null;
25
- function o() {
26
- return Array.from(e.querySelectorAll(n)).filter((e) => !e.hasAttribute("disabled") && e.tabIndex !== -1 && s(e));
27
- }
28
- function s(e) {
29
- return !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length);
30
- }
31
- function c(e) {
32
- if (!r || e.key !== "Tab") return;
33
- let t = o();
34
- if (t.length === 0) return;
35
- let n = t[0], i = t[t.length - 1];
36
- e.shiftKey ? document.activeElement === n && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), n.focus());
37
- }
38
- function l() {
39
- if (!r) return;
40
- a = document.activeElement;
41
- let t = o();
42
- t.length > 0 ? requestAnimationFrame(() => {
43
- t[0].focus();
44
- }) : (e.setAttribute("tabindex", "-1"), e.focus()), document.addEventListener("keydown", c);
45
- }
46
- function u() {
47
- document.removeEventListener("keydown", c);
48
- let e = i || a;
49
- e && typeof e.focus == "function" && e.focus();
50
- }
51
- return r && l(), {
52
- update(e) {
53
- let t = e.enabled ?? !0;
54
- i = e.returnFocusTo ?? null, t !== r && (r = t, r ? l() : u());
55
- },
56
- destroy() {
57
- u();
58
- }
59
- };
60
- }
61
- //#endregion
62
- //#region node_modules/@getmicdrop/svelte-components/dist/utils/portalContainment.js
63
- var g = Symbol("portal-containment");
64
- function _(e) {
65
- m(g, e);
66
- }
67
- function v() {
68
- try {
69
- return p(g);
70
- } catch {
71
- return;
72
- }
73
- }
74
- var y = [], b = /* @__PURE__ */ new Set(), x = !1, S = !1;
75
- function C() {
76
- if (x) {
77
- S = !0;
78
- return;
79
- }
80
- x = !0;
81
- try {
82
- let e = 0;
83
- do {
84
- S = !1;
85
- for (let e of b) e();
86
- e += 1;
87
- } while (S && e < 5);
88
- } finally {
89
- x = !1;
90
- }
91
- }
92
- function w() {
93
- C();
94
- }
95
- function T(e) {
96
- y.push(e), C();
97
- let t = !1;
98
- return () => {
99
- if (t) return;
100
- t = !0;
101
- let n = y.lastIndexOf(e);
102
- n !== -1 && y.splice(n, 1), C();
103
- };
104
- }
105
- function E() {
106
- return y.length > 0;
107
- }
108
- function D(e) {
109
- return y.some((t) => t === e || t.contains(e));
110
- }
111
- function O(e) {
112
- return b.add(e), () => {
113
- b.delete(e);
114
- };
115
- }
116
- //#endregion
117
- //#region node_modules/@getmicdrop/svelte-components/dist/utils/portal.js
118
- function k(e, t) {
119
- let n = v(), r = t, i = e.parentNode;
120
- function a() {
121
- return e.getAttribute?.("aria-modal") === "true" || e.querySelector?.("[aria-modal=\"true\"]") !== null;
122
- }
123
- function o() {
124
- if (r) return r;
125
- let t = n?.target;
126
- return t && t !== e && !e.contains(t) && t.contains(i) && !a() ? t : document.body;
127
- }
128
- let s = e.hasAttribute?.("data-theme"), c;
129
- function l(t) {
130
- if (s) return;
131
- c?.disconnect(), c = void 0;
132
- let n = i?.closest?.("[data-theme]");
133
- n && t && !n.contains(t) ? (e.dataset.theme = n.dataset.theme, typeof MutationObserver < "u" && (c = new MutationObserver(() => l(e.parentNode)), c.observe(n, {
134
- attributes: !0,
135
- attributeFilter: ["data-theme"]
136
- }))) : e.removeAttribute?.("data-theme");
137
- }
138
- function u() {
139
- let t = o();
140
- e.parentNode !== t && (t.appendChild(e), l(t), w());
141
- }
142
- let d = n ? O(u) : void 0, f = n && typeof MutationObserver < "u" ? new MutationObserver(u) : void 0;
143
- return f?.observe(e, {
144
- childList: !0,
145
- subtree: !0,
146
- attributes: !0,
147
- attributeFilter: ["aria-modal"]
148
- }), u(), {
149
- update(e) {
150
- r = e || void 0, u();
151
- },
152
- destroy() {
153
- d?.(), f?.disconnect(), c?.disconnect(), e.parentNode && e.parentNode.removeChild(e);
154
- }
155
- };
156
- }
157
- //#endregion
158
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/context.js
159
- var A = Symbol("modal-panel-visibility"), j = (e) => {
160
- m(A, e);
161
- }, M = () => p(A), [N, P] = f(), F = /* @__PURE__ */ new Map();
162
- function I(e) {
163
- if (typeof document > "u" || !e) return () => {};
164
- let t = e.parentElement ?? document.body, n = [];
165
- for (let r of Array.from(t.children)) {
166
- if (r === e || !(r instanceof HTMLElement)) continue;
167
- let t = F.get(r);
168
- t || (t = {
169
- count: 0,
170
- prevInert: r.inert,
171
- prevAriaHidden: r.getAttribute("aria-hidden")
172
- }, F.set(r, t), r.inert = !0, r.setAttribute("aria-hidden", "true")), t.count++, n.push(r);
173
- }
174
- let r = !1;
175
- return () => {
176
- if (!r) {
177
- r = !0;
178
- for (let e of n) {
179
- let t = F.get(e);
180
- t && (t.count--, !(t.count > 0) && (F.delete(e), e.inert = t.prevInert, t.prevAriaHidden === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", t.prevAriaHidden)));
181
- }
182
- n.length = 0;
183
- }
184
- };
185
- }
186
- //#endregion
187
- //#region node_modules/@getmicdrop/svelte-components/dist/utils/body-scroll-lock.js
188
- var L = 0, R = 0;
189
- function z() {
190
- if (typeof document > "u") return () => {};
191
- if (L++, L === 1) {
192
- R = window.scrollY;
193
- let e = window.innerWidth - document.documentElement.clientWidth;
194
- document.body.style.position = "fixed", document.body.style.top = `-${R}px`, document.body.style.left = "0", document.body.style.right = "0", document.body.style.overflow = "hidden", document.body.style.paddingRight = `${e}px`;
195
- }
196
- let e = !1;
197
- return () => {
198
- e || (e = !0, L--, !(L > 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, R)));
199
- };
200
- }
201
- //#endregion
202
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalRoot.svelte
203
- var B = u.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>"), V = u.from_html("<div aria-modal=\"true\"><div class=\"contents\"><!></div> <!></div>");
204
- function H(i, a) {
205
- let o = u.props_id();
206
- u.push(a, !0);
207
- let s = u.prop(a, "open", 15, !1), c = u.prop(a, "size", 3, "md"), f = u.prop(a, "persistent", 3, !1), p = u.prop(a, "haptic", 3, !0), m = u.prop(a, "role", 3, "dialog"), g = u.prop(a, "dirty", 3, !1), v = u.prop(a, "variant", 3, "sheet");
208
- a.onclose && e("Modal prop 'onclose' is deprecated. Use 'oncancel' instead.");
209
- let y = u.derived(() => a.oncancel ?? a.onclose), b = 0, x = 0, S = () => `${o}-title-${b++}`, C = () => `${o}-description-${x++}`, w = new d(), E = new d(), D = (e) => {
210
- w.set(e.id, e.visibility);
211
- }, O = (e) => {
212
- w.delete(e);
213
- }, A = (e) => {
214
- E.set(e.id, e.visibility);
215
- }, j = (e) => {
216
- E.delete(e);
217
- }, M = u.state(u.proxy(typeof window < "u" && window.matchMedia ? window.matchMedia("(min-width: 768px)").matches : !0));
218
- u.user_effect(() => {
219
- if (typeof window > "u" || !window.matchMedia) return;
220
- let e = window.matchMedia("(min-width: 768px)"), t = () => {
221
- u.set(M, e.matches, !0);
222
- };
223
- return t(), e.addEventListener("change", t), () => e.removeEventListener("change", t);
224
- });
225
- function N(e) {
226
- for (let [t, n] of e) if (n === "always" || n === "desktop" && u.get(M) || n === "mobile" && !u.get(M)) return t;
227
- let t = e.keys().next();
228
- return t.done ? void 0 : t.value;
229
- }
230
- let F = u.derived(() => a["aria-labelledby"] ?? N(w)), L = u.derived(() => N(E)), R = u.state(null), H = u.state(null), U = u.state(!1), W = u.state(!1), G, K = u.derived(() => ({
231
- title: a.discardLabels?.title ?? "Discard changes?",
232
- description: a.discardLabels?.description ?? "You have unsaved changes. Are you sure you want to close?",
233
- confirm: a.discardLabels?.confirm ?? "Discard",
234
- cancel: a.discardLabels?.cancel ?? "Keep editing"
235
- })), q = u.state(null);
236
- u.user_effect(() => {
237
- s() && !u.get(U) && typeof document < "u" && u.set(q, document.activeElement, !0);
238
- });
239
- let J = () => {
240
- u.set(W, !1), u.get(y)?.(), s(!1);
241
- };
242
- function Y(e = J) {
243
- if (g()) {
244
- G = e, u.set(W, !0);
245
- return;
246
- }
247
- e();
248
- }
249
- let X = () => Y(), Z = () => {
250
- let e = G ?? J;
251
- G = void 0, u.set(W, !1), e();
252
- };
253
- P({
254
- get open() {
255
- return s();
256
- },
257
- get size() {
258
- return c();
259
- },
260
- get persistent() {
261
- return f();
262
- },
263
- get variant() {
264
- return v();
265
- },
266
- get role() {
267
- return m();
268
- },
269
- nextTitleId: S,
270
- nextDescriptionId: C,
271
- registerTitle: D,
272
- unregisterTitle: O,
273
- registerDescription: A,
274
- unregisterDescription: j,
275
- resetModal: J
276
- }), _({
277
- get target() {
278
- return u.get(R);
279
- },
280
- layer: "modalContent"
281
- }), u.user_effect(() => {
282
- if (!(!s() || !u.get(R))) return T(u.get(R));
283
- }), u.user_effect(() => {
284
- s() && !u.get(U) && p() && t("light"), u.set(U, s(), !0), s() || (u.set(W, !1), G = void 0);
285
- });
286
- function Q(e) {
287
- if (!(e.key !== "Escape" || !s())) {
288
- if (u.get(W)) {
289
- u.set(W, !1), G = void 0;
290
- return;
291
- }
292
- f() || X();
293
- }
294
- }
295
- u.user_effect(() => {
296
- if (s()) return z();
297
- }), u.user_effect(() => {
298
- if (!(!s() || !u.get(R))) return I(u.get(R));
299
- }), u.user_effect(() => {
300
- if (!(!u.get(W) || !u.get(H))) return u.get(H).inert = !0, u.get(H).setAttribute("aria-hidden", "true"), () => {
301
- u.get(H) && (u.get(H).inert = !1, u.get(H).removeAttribute("aria-hidden"));
302
- };
303
- });
304
- var ee = { guardedClose: Y }, $ = u.comment();
305
- u.event("keydown", u.window, Q);
306
- var te = u.first_child($), ne = (e) => {
307
- var t = V();
308
- let i;
309
- var c = u.child(t), d = u.child(c);
310
- u.snippet(d, () => a.children ?? u.noop), u.reset(c), u.bind_this(c, (e) => u.set(H, e), () => u.get(H));
311
- var p = u.sibling(c, 2), g = (e) => {
312
- var t = B(), r = u.sibling(u.child(t), 2), i = u.child(r), a = u.child(i), s = u.child(a, !0);
313
- u.reset(a);
314
- var c = u.sibling(a, 2), l = u.child(c, !0);
315
- u.reset(c), u.reset(i);
316
- var d = u.sibling(i, 2), f = u.child(d);
317
- n(f, {
318
- variant: "alternative",
319
- size: "md",
320
- onclick: () => {
321
- u.set(W, !1), G = void 0;
322
- },
323
- children: (e, t) => {
324
- u.next();
325
- var n = u.text();
326
- u.template_effect(() => u.set_text(n, u.get(K).cancel)), u.append(e, n);
327
- },
328
- $$slots: { default: !0 }
329
- });
330
- var p = u.sibling(f, 2);
331
- n(p, {
332
- variant: "red",
333
- size: "md",
334
- onclick: Z,
335
- children: (e, t) => {
336
- u.next();
337
- var n = u.text();
338
- u.template_effect(() => u.set_text(n, u.get(K).confirm)), u.append(e, n);
339
- },
340
- $$slots: { default: !0 }
341
- }), u.reset(d), u.reset(r), u.action(r, (e, t) => h?.(e, t), () => ({ enabled: u.get(W) })), u.reset(t), u.template_effect(() => {
342
- u.set_attribute(r, "aria-labelledby", `${o}-discard-title`), u.set_attribute(r, "aria-describedby", `${o}-discard-desc`), u.set_attribute(a, "id", `${o}-discard-title`), u.set_text(s, u.get(K).title), u.set_attribute(c, "id", `${o}-discard-desc`), u.set_text(l, u.get(K).description);
343
- }), u.delegated("mousedown", t, (e) => e.stopPropagation()), u.delegated("mouseup", t, (e) => e.stopPropagation()), u.delegated("click", r, (e) => e.stopPropagation()), u.append(e, t);
344
- };
345
- u.if(p, (e) => {
346
- u.get(W) && e(g);
347
- }), u.reset(t), u.bind_this(t, (e) => u.set(R, e), () => u.get(R)), u.action(t, (e) => k?.(e)), u.action(t, (e, t) => h?.(e, t), () => ({
348
- enabled: s() && !u.get(W),
349
- returnFocusTo: u.get(q)
350
- })), u.template_effect((e) => {
351
- u.set_class(t, 1, e), u.set_attribute(t, "role", m()), u.set_attribute(t, "aria-labelledby", u.get(F)), u.set_attribute(t, "aria-describedby", u.get(L)), i = u.set_style(t, "", i, { "z-index": l.modal });
352
- }, [() => u.clsx(r("fixed inset-0 flex justify-center touch-none overscroll-none", v() === "dialog" ? "items-center p-4" : "items-end md:items-center md:p-4", a.class))]), u.delegated("mousedown", t, (e) => {
353
- e.target === e.currentTarget && !f() && m() !== "alertdialog" && (e.currentTarget.dataset.clickStartedOnBackdrop = "true");
354
- }), u.delegated("mouseup", t, (e) => {
355
- let t = e.currentTarget;
356
- e.target === e.currentTarget && t.dataset.clickStartedOnBackdrop === "true" && !f() && m() !== "alertdialog" && X(), delete t.dataset.clickStartedOnBackdrop;
357
- }), u.append(e, t);
358
- };
359
- return u.if(te, (e) => {
360
- s() && e(ne);
361
- }), u.append(i, $), u.pop(ee);
362
- }
363
- u.delegate([
364
- "mousedown",
365
- "mouseup",
366
- "click"
367
- ]);
368
- //#endregion
369
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalOverlay.svelte
370
- var U = u.from_html("<div><!></div>");
371
- function W(e, t) {
372
- u.push(t, !0), N();
373
- var n = U(), i = u.child(n), a = (e) => {
374
- var n = u.comment(), r = u.first_child(n);
375
- u.snippet(r, () => t.children), u.append(e, n);
376
- };
377
- u.if(i, (e) => {
378
- t.children && e(a);
379
- }), u.reset(n), u.template_effect((e) => u.set_class(n, 1, e), [() => u.clsx(r("absolute inset-0 bg-overlay-bg/60 backdrop-blur-sm pointer-events-none", t.class))]), u.transition(3, n, () => o, () => ({ duration: s.normal })), u.append(e, n), u.pop();
380
- }
381
- //#endregion
382
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalPanelScope.svelte
383
- function G(e, t) {
384
- u.push(t, !0), j(t.visibility);
385
- var n = u.comment(), r = u.first_child(n);
386
- u.snippet(r, () => t.children ?? u.noop), u.append(e, n), u.pop();
387
- }
388
- //#endregion
389
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalPanel.svelte
390
- var K = u.from_html("<div><!></div>"), q = u.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>");
391
- function J(e, t) {
392
- u.push(t, !0);
393
- let n = N(), o = {
394
- sm: "max-w-sm",
395
- md: "max-w-md",
396
- lg: "max-w-xl",
397
- xl: "max-w-2xl"
398
- }, l = {
399
- sm: "md:max-w-sm",
400
- md: "md:max-w-md",
401
- lg: "md:max-w-xl",
402
- xl: "md:max-w-2xl"
403
- }, d = u.derived(() => o[n.size] || o.md), f = u.derived(() => l[n.size] || l.md);
404
- function p(e) {
405
- return !(typeof window < "u" && window.matchMedia) || window.matchMedia("(min-width: 768px)").matches ? c(e) : i(e, {
406
- y: 300,
407
- duration: s.normal,
408
- easing: a.out
409
- });
410
- }
411
- var m = u.comment(), h = u.first_child(m), g = (e) => {
412
- var n = K();
413
- G(u.child(n), {
414
- visibility: "always",
415
- children: (e, n) => {
416
- var r = u.comment(), i = u.first_child(r);
417
- u.snippet(i, () => t.children ?? u.noop), u.append(e, r);
418
- },
419
- $$slots: { default: !0 }
420
- }), u.reset(n), u.template_effect((e) => u.set_class(n, 1, e), [() => u.clsx(r("relative bg-card rounded-lg w-full max-h-[calc(100vh-4rem)] overflow-hidden shadow-2xl flex flex-col", u.get(d), t.class))]), u.delegated("click", n, (e) => e.stopPropagation()), u.transition(3, n, () => c), u.append(e, n);
421
- }, _ = (e) => {
422
- var n = q();
423
- G(u.sibling(u.child(n), 2), {
424
- visibility: "always",
425
- children: (e, n) => {
426
- var r = u.comment(), i = u.first_child(r);
427
- u.snippet(i, () => t.children ?? u.noop), u.append(e, r);
428
- },
429
- $$slots: { default: !0 }
430
- }), u.reset(n), u.template_effect((e) => u.set_class(n, 1, e), [() => u.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", u.get(f), t.class))]), u.delegated("click", n, (e) => e.stopPropagation()), u.transition(3, n, () => p), u.append(e, n);
431
- };
432
- u.if(h, (e) => {
433
- n.variant === "dialog" ? e(g) : e(_, -1);
434
- }), u.append(e, m), u.pop();
435
- }
436
- u.delegate(["click"]);
437
- //#endregion
438
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalBody.svelte
439
- var Y = u.from_html("<div><!></div>");
440
- function X(e, t) {
441
- u.push(t, !0), N();
442
- var n = Y(), i = u.child(n), a = (e) => {
443
- var n = u.comment(), r = u.first_child(n);
444
- u.snippet(r, () => t.children), u.append(e, n);
445
- };
446
- u.if(i, (e) => {
447
- t.children && e(a);
448
- }), u.reset(n), u.template_effect((e) => u.set_class(n, 1, e), [() => u.clsx(r("flex-1 min-h-0 overflow-y-auto px-6 py-3", t.class))]), u.append(e, n), u.pop();
449
- }
450
- //#endregion
451
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalFooter.svelte
452
- var Z = u.from_html("<div><!></div>");
453
- function Q(e, t) {
454
- u.push(t, !0), N();
455
- var n = Z(), i = u.child(n), a = (e) => {
456
- var n = u.comment(), r = u.first_child(n);
457
- u.snippet(r, () => t.children), u.append(e, n);
458
- };
459
- u.if(i, (e) => {
460
- t.children && e(a);
461
- }), u.reset(n), u.template_effect((e) => u.set_class(n, 1, e), [() => u.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))]), u.append(e, n), u.pop();
462
- }
463
- //#endregion
464
- export { H as a, k as c, D as d, O as f, W as i, v as l, X as n, N as o, J as r, M as s, Q as t, E as u };
@@ -1,47 +0,0 @@
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,27 +0,0 @@
1
- //#region node_modules/@getmicdrop/svelte-components/dist/tokens/z-index.js
2
- var e = {
3
- auto: "auto",
4
- 0: "0",
5
- 10: "10",
6
- 20: "20",
7
- 30: "30",
8
- 40: "40",
9
- 50: "50",
10
- 51: "51",
11
- 60: "60",
12
- 70: "70",
13
- 100: "100"
14
- }, t = {
15
- base: e[0],
16
- sticky: e[10],
17
- navigation: e[20],
18
- dropdown: e[30],
19
- overlay: e[40],
20
- modal: e[50],
21
- modalContent: e[51],
22
- toast: e[60],
23
- tooltip: e[70],
24
- critical: e[100]
25
- };
26
- //#endregion
27
- export { 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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes