@getmicdrop/venue-calendar 4.3.7 → 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 (99) hide show
  1. package/dist/{ArrowLeftIcon-DvOokN4u.js → ArrowLeftIcon-B6RmtBIh.js} +1 -1
  2. package/dist/{Badge-Gg5PWs7f.js → Badge-DsuBHDo4.js} +1 -2
  3. package/dist/{BlockPlaceholder-C2PUGPNA.js → BlockPlaceholder-BvArmbbO.js} +2 -2
  4. package/dist/{Button-Cm6xkipe.js → Button-CxQO7vwF.js} +88 -63
  5. package/dist/{Calendar-BnqBcrZv.js → Calendar-Dei3Ahdk.js} +113 -105
  6. package/dist/{CalendarFoundryView-L97Allfg.js → CalendarFoundryView-Df10CTZS.js} +5398 -5389
  7. package/dist/{CalendarIcon-DvhQ-GaL.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-DQWeMchu.js → Checkout-CaamQTXi.js} +368 -368
  11. package/dist/{CheckoutTimer-8tVmatUn.js → CheckoutTimer-BubF7ziC.js} +15 -15
  12. package/dist/{ChevronDownIcon-DyNmV5XZ.js → ChevronDownIcon-MTzda9yz.js} +1 -1
  13. package/dist/{ClockIcon-dOWVO61o.js → ClockIcon-Dit8R1GZ.js} +1 -1
  14. package/dist/{CloseIcon-a3S2RgbP.js → CloseIcon-XqvbBmiA.js} +1 -1
  15. package/dist/{CollectionView-CAMsmrmW.js → CollectionView-B_rrXaQH.js} +17 -17
  16. package/dist/CropImage-mVbYhD9Y.js +527 -0
  17. package/dist/{Event-BQgaaFkh.js → Event-WtVZMQfA.js} +585 -585
  18. package/dist/EventPage-B14U0-Hm.js +1147 -0
  19. package/dist/{Heading-cKAx0Ogl.js → Heading-PKl9dm72.js} +3 -4
  20. package/dist/{Image-CNZLcePz.js → Image-BWo4QBld.js} +12 -13
  21. package/dist/{Input-D1FpSX5Q.js → Input-Bl1wqeUH.js} +2 -2
  22. package/dist/{MailIcon-CR_eGi6n.js → MailIcon-DQTusrr4.js} +1 -1
  23. package/dist/{Modal-LkN8lh_m.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-Bt6tvpzi.js → PasswordInput-CnjRiZJ7.js} +2 -2
  27. package/dist/{ScarcityBadge-g0dRh6K7.js → ScarcityBadge-B4e3Z_Oz.js} +24 -24
  28. package/dist/{SeriesPage-CNRwP2W0.js → SeriesPage-DszQMCy9.js} +5 -5
  29. package/dist/{Spinner-LroI7eOC.js → Spinner-BRgBJYJn.js} +2 -2
  30. package/dist/{Success--2NRdG0V.js → Success-BYVtvNeO.js} +106 -106
  31. package/dist/{TagIcon-BhLrURo_.js → TagIcon-BAZxGlbC.js} +1 -1
  32. package/dist/{ViewTicketsEmbed-CvuMdTA7.js → ViewTicketsEmbed-BHDAkYuv.js} +97 -97
  33. package/dist/{WarningCircleIcon-BxBY0OMQ.js → WarningCircleIcon-SBK0lpqR.js} +1 -1
  34. package/dist/{WarningTriIcon-QVzQiEM4.js → WarningTriIcon-Bj3xpe3S.js} +1 -1
  35. package/dist/{__SKIP_PATHS__-B0_APtpt.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/{colors-BsP3TRan.js → api-CTiZ6rza.js} +243 -244
  39. package/dist/{browser-viCaCwoW.js → browser-CziWLQ0z.js} +1 -1
  40. package/dist/{constants-PBNG9ikv.js → constants-rFRS1lF-.js} +1 -1
  41. package/dist/{copyToClipboard-B2F5d6Cj.js → copyToClipboard-C5D-wCS_.js} +1 -1
  42. package/dist/{defaultLabels-BigaGqKj.js → defaultLabels-CpurXn7c.js} +337 -361
  43. package/dist/{event-rtg4-kWS.js → event-d06xVg2P.js} +1 -1
  44. package/dist/{event-transform-J7U1JmeK.js → event-transform-BjPTqPq1.js} +31 -31
  45. package/dist/{eventStatusStream-CJVT_9Gu.js → eventStatusStream-BhQUTdOZ.js} +2 -2
  46. package/dist/{href-Dx7B6ZiQ.js → href-DMLDnIDe.js} +3 -3
  47. package/dist/{i18n-sO8wTASy.js → i18n--3wPB7-n.js} +2 -2
  48. package/dist/{i18n-C0aOwSpF.js → i18n-CASpRf85.js} +135 -135
  49. package/dist/imageOptimizer-D8g9XVns.js +141 -0
  50. package/dist/{labels-BBFJnXep.js → labels-IV_I9087.js} +14 -14
  51. package/dist/modalManager.svelte-Cz_6x1Qd.js +37 -0
  52. package/dist/{order-totals-DR-oXumr.js → order-totals-Buq9HeZa.js} +33 -33
  53. package/dist/{orders-CFF0Hb2x.js → orders-BK47iONR.js} +2 -2
  54. package/dist/{phoneUtils-C2GGZYvA.js → phoneUtils-YjT5IJ25.js} +1 -1
  55. package/dist/{pixels-M4FTi1Of.js → pixels-DjK-0XYz.js} +3 -3
  56. package/dist/{promo--p3GbP64.js → promo-DkM9sLly.js} +1 -1
  57. package/dist/{serverTotals-Dbi69SIr.js → serverTotals-CvJBYArq.js} +1 -1
  58. package/dist/{shareCopyFeedback.svelte-Cb2Mdn0z.js → shareCopyFeedback.svelte-oxKGmiOe.js} +65 -65
  59. package/dist/{showcase-state-options-BZGCm4wo.js → showcase-state-options-x_9iSBsd.js} +1 -1
  60. package/dist/{to-event-card-props-dIhKdERf.js → to-event-card-props-9y7sVBi_.js} +49 -49
  61. package/dist/types/index.d.ts +39 -0
  62. package/dist/{utils-CbacksjX.js → utils-D80jLqKH.js} +3 -3
  63. package/dist/venue-calendar.css +1 -1
  64. package/dist/venue-calendar.es.js +1515 -1506
  65. package/dist/venue-calendar.iife.js +54 -54
  66. package/dist/venue-calendar.umd.js +54 -54
  67. package/package.json +2 -2
  68. package/dist/CartView-D57bwixz.js +0 -2245
  69. package/dist/Checkout-wUH2YI1N.js +0 -980
  70. package/dist/CropImage-CxLcNArr.js +0 -445
  71. package/dist/EventPage-B9shaVEP.js +0 -1146
  72. package/dist/ModalFooter-B_8f1Z5p.js +0 -301
  73. package/dist/imageOptimizer-BwLwBMI6.js +0 -112
  74. package/dist/modalManager.svelte-B9mhX1cG.js +0 -53
  75. package/dist/portal-DqxEuE-7.js +0 -166
  76. /package/dist/locales/{4.3.7 → 4.3.9}/flow/de.js +0 -0
  77. /package/dist/locales/{4.3.7 → 4.3.9}/flow/es.js +0 -0
  78. /package/dist/locales/{4.3.7 → 4.3.9}/flow/fr.js +0 -0
  79. /package/dist/locales/{4.3.7 → 4.3.9}/flow/id.js +0 -0
  80. /package/dist/locales/{4.3.7 → 4.3.9}/flow/it.js +0 -0
  81. /package/dist/locales/{4.3.7 → 4.3.9}/flow/ja.js +0 -0
  82. /package/dist/locales/{4.3.7 → 4.3.9}/flow/ko.js +0 -0
  83. /package/dist/locales/{4.3.7 → 4.3.9}/flow/nl.js +0 -0
  84. /package/dist/locales/{4.3.7 → 4.3.9}/flow/pl.js +0 -0
  85. /package/dist/locales/{4.3.7 → 4.3.9}/flow/pt-br.js +0 -0
  86. /package/dist/locales/{4.3.7 → 4.3.9}/flow/tr.js +0 -0
  87. /package/dist/locales/{4.3.7 → 4.3.9}/flow/zh.js +0 -0
  88. /package/dist/locales/{4.3.7 → 4.3.9}/main/de.js +0 -0
  89. /package/dist/locales/{4.3.7 → 4.3.9}/main/es.js +0 -0
  90. /package/dist/locales/{4.3.7 → 4.3.9}/main/fr.js +0 -0
  91. /package/dist/locales/{4.3.7 → 4.3.9}/main/id.js +0 -0
  92. /package/dist/locales/{4.3.7 → 4.3.9}/main/it.js +0 -0
  93. /package/dist/locales/{4.3.7 → 4.3.9}/main/ja.js +0 -0
  94. /package/dist/locales/{4.3.7 → 4.3.9}/main/ko.js +0 -0
  95. /package/dist/locales/{4.3.7 → 4.3.9}/main/nl.js +0 -0
  96. /package/dist/locales/{4.3.7 → 4.3.9}/main/pl.js +0 -0
  97. /package/dist/locales/{4.3.7 → 4.3.9}/main/pt-br.js +0 -0
  98. /package/dist/locales/{4.3.7 → 4.3.9}/main/tr.js +0 -0
  99. /package/dist/locales/{4.3.7 → 4.3.9}/main/zh.js +0 -0
@@ -1,5 +1,4 @@
1
- import { b as e } from "./Button-Cm6xkipe.js";
2
- import { V as t } from "./defaultLabels-BigaGqKj.js";
1
+ import { T as e, b as t } from "./Button-CxQO7vwF.js";
3
2
  import "svelte/internal/disclose-version";
4
3
  import * as n from "svelte/internal/client";
5
4
  import { createContext as r } from "svelte";
@@ -14,7 +13,7 @@ function s(r, i) {
14
13
  lg: "min-h-96",
15
14
  xl: "min-h-screen"
16
15
  }, p = n.derived(() => f[u()] ?? u());
17
- i.className && e("Card prop 'className' is deprecated. Use 'class' instead.\n Before: <Card className=\"my-class\" />\n After: <Card class=\"my-class\" />"), a({
16
+ i.className && t("Card prop 'className' is deprecated. Use 'class' instead.\n Before: <Card className=\"my-class\" />\n After: <Card class=\"my-class\" />"), a({
18
17
  padding: s(),
19
18
  border: c(),
20
19
  horizontal: l()
@@ -27,7 +26,7 @@ function s(r, i) {
27
26
  i.children && e(g);
28
27
  }), n.reset(m), n.template_effect((e) => {
29
28
  n.set_class(m, 1, e), n.set_attribute(m, "data-testid", i["data-testid"]);
30
- }, [() => n.clsx(t("bg-card rounded-lg shadow-md", c() && "border border-border", s() && "p-6", l() && "flex flex-row", n.get(p), d(), i.className))]), n.append(r, m), n.pop();
29
+ }, [() => n.clsx(e("bg-card rounded-lg shadow-md", c() && "border border-border", s() && "p-6", l() && "flex flex-row", n.get(p), d(), i.className))]), n.append(r, m), n.pop();
31
30
  }
32
31
  //#endregion
33
32
  //#region node_modules/@getmicdrop/svelte-components/dist/components/Heading.svelte
@@ -1,12 +1,11 @@
1
- import { x as e } from "./Button-Cm6xkipe.js";
2
- import { V as t } from "./defaultLabels-BigaGqKj.js";
1
+ import { T as e, x as t } from "./Button-CxQO7vwF.js";
3
2
  import "svelte/internal/disclose-version";
4
3
  import * as n from "svelte/internal/client";
5
4
  import { onMount as r } from "svelte";
6
5
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Image/Image.svelte
7
6
  var i = n.from_html("<div><div class=\"sc-image__blur-layer svelte-12gell2\"><img alt=\"\" class=\"sc-image__blur svelte-12gell2\" aria-hidden=\"true\" decoding=\"async\"/></div> <img decoding=\"async\"/></div>"), a = n.from_html("<img decoding=\"async\"/>"), o = n.from_html("<div role=\"img\"></div>"), s = n.from_html("<div aria-hidden=\"true\"></div>");
8
7
  function c(c, l) {
9
- n.push(l, !0), e("Image"), typeof process < "u" && process.env?.VITEST;
8
+ n.push(l, !0), t("Image"), typeof process < "u" && process.env?.VITEST;
10
9
  let u = n.prop(l, "src", 3, ""), d = n.prop(l, "alt", 3, ""), f = n.prop(l, "class", 3, ""), p = n.prop(l, "fallback", 3, ""), m = n.prop(l, "loading", 3, "lazy"), h = n.prop(l, "fit", 3, "blur-backdrop"), g = n.prop(l, "blurUp", 3, !0), _ = n.prop(l, "branded", 3, !0), v = n.state(n.proxy(u() ? "src" : p() ? "fallback" : "failed")), y = n.state(!1), b = n.state(!1), x = n.state(void 0);
11
10
  n.user_effect(() => {
12
11
  let e = u(), t = p();
@@ -41,7 +40,7 @@ function c(c, l) {
41
40
  }
42
41
  n.set(v, "failed"), n.get(y) || (n.set(y, !0), l.onError?.());
43
42
  }
44
- var N = n.comment(), P = n.first_child(N), F = (e) => {
43
+ var N = n.comment(), P = n.first_child(N), F = (t) => {
45
44
  var r = i();
46
45
  let a;
47
46
  var o = n.child(r), s = n.child(o);
@@ -53,8 +52,8 @@ function c(c, l) {
53
52
  "sc-image__main--reserved": n.get(k),
54
53
  "sc-image__main--loading": n.get(w)
55
54
  }), n.set_attribute(c, "width", l.width), n.set_attribute(c, "height", l.height), n.set_attribute(c, "loading", m()), n.set_attribute(c, "draggable", l.draggable), n.set_attribute(c, "fetchpriority", l.fetchpriority), p = n.set_style(c, "", p, { "object-fit": n.get(D) });
56
- }, [() => n.clsx(t("sc-image sc-image--backdrop", f()))]), n.event("error", c, M), n.event("load", c, j), n.replay_events(c), n.append(e, r);
57
- }, I = (e) => {
55
+ }, [() => n.clsx(e("sc-image sc-image--backdrop", f()))]), n.event("error", c, M), n.event("load", c, j), n.replay_events(c), n.append(t, r);
56
+ }, I = (t) => {
58
57
  var r = a();
59
58
  let i;
60
59
  n.bind_this(r, (e) => n.set(x, e), () => n.get(x)), n.template_effect((e) => {
@@ -62,22 +61,22 @@ function c(c, l) {
62
61
  "object-fit": n.get(D),
63
62
  "aspect-ratio": l.aspectRatio || void 0
64
63
  });
65
- }, [() => n.clsx(t("sc-image image", n.get(w) && "sc-image--loading", f()))]), n.event("error", r, M), n.event("load", r, j), n.replay_events(r), n.append(e, r);
66
- }, L = (e) => {
67
- var r = n.comment(), i = n.first_child(r), a = (e) => {
64
+ }, [() => n.clsx(e("sc-image image", n.get(w) && "sc-image--loading", f()))]), n.event("error", r, M), n.event("load", r, j), n.replay_events(r), n.append(t, r);
65
+ }, L = (t) => {
66
+ var r = n.comment(), i = n.first_child(r), a = (t) => {
68
67
  var r = o();
69
68
  n.template_effect((e) => {
70
69
  n.set_class(r, 1, e, "svelte-12gell2"), n.set_style(r, n.get(A) || void 0), n.set_attribute(r, "aria-label", d());
71
- }, [() => n.clsx(t("sc-image image sc-image-placeholder image-placeholder", _() && "sc-image-placeholder--branded", f()))]), n.append(e, r);
72
- }, c = (e) => {
70
+ }, [() => n.clsx(e("sc-image image sc-image-placeholder image-placeholder", _() && "sc-image-placeholder--branded", f()))]), n.append(t, r);
71
+ }, c = (t) => {
73
72
  var r = s();
74
73
  n.template_effect((e) => {
75
74
  n.set_class(r, 1, e, "svelte-12gell2"), n.set_style(r, n.get(A) || void 0);
76
- }, [() => n.clsx(t("sc-image image sc-image-placeholder image-placeholder", _() && "sc-image-placeholder--branded", f()))]), n.append(e, r);
75
+ }, [() => n.clsx(e("sc-image image sc-image-placeholder image-placeholder", _() && "sc-image-placeholder--branded", f()))]), n.append(t, r);
77
76
  };
78
77
  n.if(i, (e) => {
79
78
  d() ? e(a) : e(c, -1);
80
- }), n.append(e, r);
79
+ }), n.append(t, r);
81
80
  };
82
81
  n.if(P, (e) => {
83
82
  n.get(T) && n.get(E) ? e(F) : n.get(T) ? e(I, 1) : e(L, -1);
@@ -1,5 +1,5 @@
1
- import { C as e, _ as t, b as n, f as r, h as i, v as a } from "./Button-Cm6xkipe.js";
2
- import { S as o } from "./constants-PBNG9ikv.js";
1
+ import { C as e, _ as t, b as n, f as r, h as i, v as a } from "./Button-CxQO7vwF.js";
2
+ import { S as o } from "./constants-rFRS1lF-.js";
3
3
  import { d as s, n as c, r as l } from "./z-index-BgKs9X9U.js";
4
4
  import { t as u } from "./RequiredIndicator-CYcnRFsA.js";
5
5
  import "svelte/internal/disclose-version";
@@ -1,4 +1,4 @@
1
- import { J as e } from "./constants-PBNG9ikv.js";
1
+ import { J as e } from "./constants-rFRS1lF-.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/DownloadIcon.svelte
@@ -1,5 +1,5 @@
1
- import { a as e, i as t, n, r, t as i } from "./ModalFooter-B_8f1Z5p.js";
2
- import { n as a } from "./modalManager.svelte-B9mhX1cG.js";
1
+ import { a as e, i as t, n, r, t as i } from "./ModalFooter-DwkZn9ls.js";
2
+ import { t as a } from "./ModalHeader-BSsyLaXY.js";
3
3
  import "svelte/internal/disclose-version";
4
4
  import * as o from "svelte/internal/client";
5
5
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/Modal.svelte
@@ -0,0 +1,471 @@
1
+ import { T as e, b as t, i as n, t as r } from "./Button-CxQO7vwF.js";
2
+ import { c as i, l as a, n as o, r as s, t as c, u as l } from "./z-index-BgKs9X9U.js";
3
+ import { n as u } from "./keyboard-fiZFqeNA.js";
4
+ import "svelte/internal/disclose-version";
5
+ import * as d from "svelte/internal/client";
6
+ import { SvelteMap as f } from "svelte/reactivity";
7
+ import { createContext as p, getContext as m, setContext as h } from "svelte";
8
+ //#region node_modules/@getmicdrop/svelte-components/dist/utils/focusTrap.js
9
+ function g(e, t = {}) {
10
+ let n = [
11
+ "a[href]",
12
+ "area[href]",
13
+ "input:not([disabled]):not([type=\"hidden\"])",
14
+ "select:not([disabled])",
15
+ "textarea:not([disabled])",
16
+ "button:not([disabled])",
17
+ "[tabindex]:not([tabindex=\"-1\"])",
18
+ "[contenteditable]",
19
+ "audio[controls]",
20
+ "video[controls]",
21
+ "details>summary:first-of-type",
22
+ "details"
23
+ ].join(","), r = t.enabled ?? !0, i = t.returnFocusTo ?? null, a = null;
24
+ function o() {
25
+ return Array.from(e.querySelectorAll(n)).filter((e) => !e.hasAttribute("disabled") && e.tabIndex !== -1 && s(e));
26
+ }
27
+ function s(e) {
28
+ return !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length);
29
+ }
30
+ function c(e) {
31
+ if (!r || e.key !== "Tab") return;
32
+ let t = o();
33
+ if (t.length === 0) return;
34
+ let n = t[0], i = t[t.length - 1];
35
+ e.shiftKey ? document.activeElement === n && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), n.focus());
36
+ }
37
+ function l() {
38
+ if (!r) return;
39
+ a = document.activeElement;
40
+ let t = o();
41
+ t.length > 0 ? requestAnimationFrame(() => {
42
+ t[0].focus();
43
+ }) : (e.setAttribute("tabindex", "-1"), e.focus()), document.addEventListener("keydown", c);
44
+ }
45
+ function u() {
46
+ document.removeEventListener("keydown", c);
47
+ let e = i || a;
48
+ e && typeof e.focus == "function" && e.focus();
49
+ }
50
+ return r && l(), {
51
+ update(e) {
52
+ let t = e.enabled ?? !0;
53
+ i = e.returnFocusTo ?? null, t !== r && (r = t, r ? l() : u());
54
+ },
55
+ destroy() {
56
+ u();
57
+ }
58
+ };
59
+ }
60
+ //#endregion
61
+ //#region node_modules/@getmicdrop/svelte-components/dist/utils/body-scroll-lock.js
62
+ var _ = 0, v = 0;
63
+ function y() {
64
+ if (typeof document > "u") return () => {};
65
+ if (_++, _ === 1) {
66
+ v = window.scrollY;
67
+ let e = window.innerWidth - document.documentElement.clientWidth;
68
+ document.body.style.position = "fixed", document.body.style.top = `-${v}px`, document.body.style.left = "0", document.body.style.right = "0", document.body.style.overflow = "hidden", document.body.style.paddingRight = `${e}px`;
69
+ }
70
+ let e = !1;
71
+ return () => {
72
+ e || (e = !0, _--, !(_ > 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, v)));
73
+ };
74
+ }
75
+ //#endregion
76
+ //#region node_modules/@getmicdrop/svelte-components/dist/utils/portalContainment.js
77
+ var b = Symbol("portal-containment");
78
+ function x(e) {
79
+ h(b, e);
80
+ }
81
+ function S() {
82
+ try {
83
+ return m(b);
84
+ } catch {
85
+ return;
86
+ }
87
+ }
88
+ var C = [], w = /* @__PURE__ */ new Set(), T = !1, E = !1;
89
+ function D() {
90
+ if (T) {
91
+ E = !0;
92
+ return;
93
+ }
94
+ T = !0;
95
+ try {
96
+ let e = 0;
97
+ do {
98
+ E = !1;
99
+ for (let e of w) e();
100
+ e += 1;
101
+ } while (E && e < 5);
102
+ } finally {
103
+ T = !1;
104
+ }
105
+ }
106
+ function O() {
107
+ D();
108
+ }
109
+ function k(e) {
110
+ C.push(e), D();
111
+ let t = !1;
112
+ return () => {
113
+ if (t) return;
114
+ t = !0;
115
+ let n = C.lastIndexOf(e);
116
+ n !== -1 && C.splice(n, 1), D();
117
+ };
118
+ }
119
+ function A() {
120
+ return C.length > 0;
121
+ }
122
+ function j(e) {
123
+ return C.some((t) => t === e || t.contains(e));
124
+ }
125
+ function M(e) {
126
+ return w.add(e), () => {
127
+ w.delete(e);
128
+ };
129
+ }
130
+ //#endregion
131
+ //#region node_modules/@getmicdrop/svelte-components/dist/utils/portal.js
132
+ function N(e, t) {
133
+ let n = S(), r = t, i = e.parentNode;
134
+ function a() {
135
+ return e.getAttribute?.("aria-modal") === "true" || e.querySelector?.("[aria-modal=\"true\"]") !== null;
136
+ }
137
+ function o() {
138
+ if (r) return r;
139
+ let t = n?.target;
140
+ return t && t !== e && !e.contains(t) && t.contains(i) && !a() ? t : document.body;
141
+ }
142
+ let s = e.hasAttribute?.("data-theme"), c;
143
+ function l(t) {
144
+ if (s) return;
145
+ c?.disconnect(), c = void 0;
146
+ let n = i?.closest?.("[data-theme]");
147
+ n && t && !n.contains(t) ? (e.dataset.theme = n.dataset.theme, typeof MutationObserver < "u" && (c = new MutationObserver(() => l(e.parentNode)), c.observe(n, {
148
+ attributes: !0,
149
+ attributeFilter: ["data-theme"]
150
+ }))) : e.removeAttribute?.("data-theme");
151
+ }
152
+ function u() {
153
+ let t = o();
154
+ e.parentNode !== t && (t.appendChild(e), l(t), O());
155
+ }
156
+ let d = n ? M(u) : void 0, f = n && typeof MutationObserver < "u" ? new MutationObserver(u) : void 0;
157
+ return f?.observe(e, {
158
+ childList: !0,
159
+ subtree: !0,
160
+ attributes: !0,
161
+ attributeFilter: ["aria-modal"]
162
+ }), u(), {
163
+ update(e) {
164
+ r = e || void 0, u();
165
+ },
166
+ destroy() {
167
+ d?.(), f?.disconnect(), c?.disconnect(), e.parentNode && e.parentNode.removeChild(e);
168
+ }
169
+ };
170
+ }
171
+ //#endregion
172
+ //#region node_modules/@getmicdrop/svelte-components/dist/primitives/SheetHandle/SheetHandle.svelte
173
+ var P = d.from_html("<div aria-hidden=\"true\"><div data-sc-sheet-handle=\"\" class=\"w-10 h-1 rounded-full bg-stroke-primary\"></div></div>");
174
+ function F(t, n) {
175
+ d.push(n, !0);
176
+ var r = P();
177
+ d.template_effect((e) => d.set_class(r, 1, e), [() => d.clsx(e("flex justify-center pt-3 pb-2 shrink-0", n.class))]), d.append(t, r), d.pop();
178
+ }
179
+ //#endregion
180
+ //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/context.js
181
+ var I = Symbol("modal-panel-visibility"), L = (e) => {
182
+ h(I, e);
183
+ }, R = () => m(I), [z, B] = p(), V = /* @__PURE__ */ new Map();
184
+ function H(e) {
185
+ if (typeof document > "u" || !e) return () => {};
186
+ let t = e.parentElement ?? document.body, n = [];
187
+ for (let r of Array.from(t.children)) {
188
+ if (r === e || !(r instanceof HTMLElement)) continue;
189
+ let t = V.get(r);
190
+ t || (t = {
191
+ count: 0,
192
+ prevInert: r.inert,
193
+ prevAriaHidden: r.getAttribute("aria-hidden")
194
+ }, V.set(r, t), r.inert = !0, r.setAttribute("aria-hidden", "true")), t.count++, n.push(r);
195
+ }
196
+ let r = !1;
197
+ return () => {
198
+ if (!r) {
199
+ r = !0;
200
+ for (let e of n) {
201
+ let t = V.get(e);
202
+ t && (t.count--, !(t.count > 0) && (V.delete(e), e.inert = t.prevInert, t.prevAriaHidden === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", t.prevAriaHidden)));
203
+ }
204
+ n.length = 0;
205
+ }
206
+ };
207
+ }
208
+ //#endregion
209
+ //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalRoot.svelte
210
+ var ee = d.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>"), te = d.from_html("<div aria-modal=\"true\" data-escape-layer=\"\"><div class=\"contents\"><!></div> <!></div>");
211
+ function U(i, a) {
212
+ let o = d.props_id();
213
+ d.push(a, !0);
214
+ let s = d.prop(a, "open", 15, !1), l = d.prop(a, "size", 3, "md"), p = d.prop(a, "persistent", 3, !1), m = d.prop(a, "haptic", 3, !0), h = d.prop(a, "role", 3, "dialog"), _ = d.prop(a, "dirty", 3, !1), v = d.prop(a, "variant", 3, "sheet");
215
+ a.onclose && t("Modal prop 'onclose' is deprecated. Use 'oncancel' instead.");
216
+ let b = d.derived(() => a.oncancel ?? a.onclose), S = 0, C = 0, w = () => `${o}-title-${S++}`, T = () => `${o}-description-${C++}`, E = new f(), D = new f(), O = (e) => {
217
+ E.set(e.id, e.visibility);
218
+ }, A = (e) => {
219
+ E.delete(e);
220
+ }, j = (e) => {
221
+ D.set(e.id, e.visibility);
222
+ }, M = (e) => {
223
+ D.delete(e);
224
+ }, P = d.state(d.proxy(typeof window < "u" && window.matchMedia ? window.matchMedia("(min-width: 768px)").matches : !0));
225
+ d.user_effect(() => {
226
+ if (typeof window > "u" || !window.matchMedia) return;
227
+ let e = window.matchMedia("(min-width: 768px)"), t = () => {
228
+ d.set(P, e.matches, !0);
229
+ };
230
+ return t(), e.addEventListener("change", t), () => e.removeEventListener("change", t);
231
+ });
232
+ function F(e) {
233
+ for (let [t, n] of e) if (n === "always" || n === "desktop" && d.get(P) || n === "mobile" && !d.get(P)) return t;
234
+ let t = e.keys().next();
235
+ return t.done ? void 0 : t.value;
236
+ }
237
+ let I = d.derived(() => a["aria-labelledby"] ?? F(E)), L = d.derived(() => F(D)), R = d.state(null), z = d.state(null), V = d.state(!1), U = d.state(!1), W, G = d.derived(() => ({
238
+ title: a.discardLabels?.title ?? "Discard changes?",
239
+ description: a.discardLabels?.description ?? "You have unsaved changes. Are you sure you want to close?",
240
+ confirm: a.discardLabels?.confirm ?? "Discard",
241
+ cancel: a.discardLabels?.cancel ?? "Keep editing"
242
+ })), K = d.state(null);
243
+ d.user_effect(() => {
244
+ s() && !d.get(V) && typeof document < "u" && d.set(K, document.activeElement, !0);
245
+ });
246
+ let q = () => {
247
+ d.set(U, !1), d.get(b)?.(), s(!1);
248
+ };
249
+ function J(e = q) {
250
+ if (_()) {
251
+ W = e, d.set(U, !0);
252
+ return;
253
+ }
254
+ e();
255
+ }
256
+ let Y = () => J(), X = () => {
257
+ let e = W ?? q;
258
+ W = void 0, d.set(U, !1), e();
259
+ };
260
+ B({
261
+ get open() {
262
+ return s();
263
+ },
264
+ get size() {
265
+ return l();
266
+ },
267
+ get persistent() {
268
+ return p();
269
+ },
270
+ get variant() {
271
+ return v();
272
+ },
273
+ get role() {
274
+ return h();
275
+ },
276
+ nextTitleId: w,
277
+ nextDescriptionId: T,
278
+ registerTitle: O,
279
+ unregisterTitle: A,
280
+ registerDescription: j,
281
+ unregisterDescription: M,
282
+ resetModal: q
283
+ }), x({
284
+ get target() {
285
+ return d.get(R);
286
+ },
287
+ layer: "modalContent"
288
+ }), d.user_effect(() => {
289
+ if (!(!s() || !d.get(R))) return k(d.get(R));
290
+ }), d.user_effect(() => {
291
+ s() && !d.get(V) && m() && n("light"), d.set(V, s(), !0), s() || (d.set(U, !1), W = void 0);
292
+ });
293
+ function Z(e) {
294
+ if (!(!s() || !u(e, d.get(R)))) {
295
+ if (d.get(U)) {
296
+ e.preventDefault(), d.set(U, !1), W = void 0;
297
+ return;
298
+ }
299
+ p() || (e.preventDefault(), Y());
300
+ }
301
+ }
302
+ d.user_effect(() => {
303
+ if (s()) return y();
304
+ }), d.user_effect(() => {
305
+ if (!(!s() || !d.get(R))) return H(d.get(R));
306
+ }), d.user_effect(() => {
307
+ if (!(!d.get(U) || !d.get(z))) return d.get(z).inert = !0, d.get(z).setAttribute("aria-hidden", "true"), () => {
308
+ d.get(z) && (d.get(z).inert = !1, d.get(z).removeAttribute("aria-hidden"));
309
+ };
310
+ });
311
+ var Q = { guardedClose: J }, $ = d.comment();
312
+ d.event("keydown", d.window, Z);
313
+ var ne = d.first_child($), re = (t) => {
314
+ var n = te();
315
+ let i;
316
+ var l = d.child(n), u = d.child(l);
317
+ d.snippet(u, () => a.children ?? d.noop), d.reset(l), d.bind_this(l, (e) => d.set(z, e), () => d.get(z));
318
+ var f = d.sibling(l, 2), m = (e) => {
319
+ var t = ee(), n = d.sibling(d.child(t), 2), i = d.child(n), a = d.child(i), s = d.child(a, !0);
320
+ d.reset(a);
321
+ var c = d.sibling(a, 2), l = d.child(c, !0);
322
+ d.reset(c), d.reset(i);
323
+ var u = d.sibling(i, 2), f = d.child(u);
324
+ r(f, {
325
+ variant: "alternative",
326
+ size: "md",
327
+ onclick: () => {
328
+ d.set(U, !1), W = void 0;
329
+ },
330
+ children: (e, t) => {
331
+ d.next();
332
+ var n = d.text();
333
+ d.template_effect(() => d.set_text(n, d.get(G).cancel)), d.append(e, n);
334
+ },
335
+ $$slots: { default: !0 }
336
+ });
337
+ var p = d.sibling(f, 2);
338
+ r(p, {
339
+ variant: "red",
340
+ size: "md",
341
+ onclick: X,
342
+ children: (e, t) => {
343
+ d.next();
344
+ var n = d.text();
345
+ d.template_effect(() => d.set_text(n, d.get(G).confirm)), d.append(e, n);
346
+ },
347
+ $$slots: { default: !0 }
348
+ }), d.reset(u), d.reset(n), d.action(n, (e, t) => g?.(e, t), () => ({ enabled: d.get(U) })), d.reset(t), d.template_effect(() => {
349
+ d.set_attribute(n, "aria-labelledby", `${o}-discard-title`), d.set_attribute(n, "aria-describedby", `${o}-discard-desc`), d.set_attribute(a, "id", `${o}-discard-title`), d.set_text(s, d.get(G).title), d.set_attribute(c, "id", `${o}-discard-desc`), d.set_text(l, d.get(G).description);
350
+ }), d.delegated("mousedown", t, (e) => e.stopPropagation()), d.delegated("mouseup", t, (e) => e.stopPropagation()), d.delegated("click", n, (e) => e.stopPropagation()), d.append(e, t);
351
+ };
352
+ d.if(f, (e) => {
353
+ d.get(U) && e(m);
354
+ }), d.reset(n), d.bind_this(n, (e) => d.set(R, e), () => d.get(R)), d.action(n, (e) => N?.(e)), d.action(n, (e, t) => g?.(e, t), () => ({
355
+ enabled: s() && !d.get(U),
356
+ returnFocusTo: d.get(K)
357
+ })), d.template_effect((e) => {
358
+ d.set_class(n, 1, e), d.set_attribute(n, "role", h()), d.set_attribute(n, "aria-labelledby", d.get(I)), d.set_attribute(n, "aria-describedby", d.get(L)), d.set_attribute(n, "data-testid", a["data-testid"]), i = d.set_style(n, "", i, { "z-index": c.modal });
359
+ }, [() => d.clsx(e("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))]), d.delegated("mousedown", n, (e) => {
360
+ e.target === e.currentTarget && !p() && h() !== "alertdialog" && (e.currentTarget.dataset.clickStartedOnBackdrop = "true");
361
+ }), d.delegated("mouseup", n, (e) => {
362
+ let t = e.currentTarget;
363
+ e.target === e.currentTarget && t.dataset.clickStartedOnBackdrop === "true" && !p() && h() !== "alertdialog" && Y(), delete t.dataset.clickStartedOnBackdrop;
364
+ }), d.append(t, n);
365
+ };
366
+ return d.if(ne, (e) => {
367
+ s() && e(re);
368
+ }), d.append(i, $), d.pop(Q);
369
+ }
370
+ d.delegate([
371
+ "mousedown",
372
+ "mouseup",
373
+ "click"
374
+ ]);
375
+ //#endregion
376
+ //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalOverlay.svelte
377
+ var W = d.from_html("<div><!></div>");
378
+ function G(t, n) {
379
+ d.push(n, !0), z();
380
+ var r = W(), a = d.child(r), s = (e) => {
381
+ var t = d.comment(), r = d.first_child(t);
382
+ d.snippet(r, () => n.children), d.append(e, t);
383
+ };
384
+ d.if(a, (e) => {
385
+ n.children && e(s);
386
+ }), d.reset(r), d.template_effect((e) => d.set_class(r, 1, e), [() => d.clsx(e("absolute inset-0 bg-overlay-bg/60 backdrop-blur-sm pointer-events-none", n.class))]), d.transition(3, r, () => i, () => ({ duration: o.normal })), d.append(t, r), d.pop();
387
+ }
388
+ //#endregion
389
+ //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalPanelScope.svelte
390
+ function K(e, t) {
391
+ d.push(t, !0), L(t.visibility);
392
+ var n = d.comment(), r = d.first_child(n);
393
+ d.snippet(r, () => t.children ?? d.noop), d.append(e, n), d.pop();
394
+ }
395
+ //#endregion
396
+ //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalPanel.svelte
397
+ var q = d.from_html("<div><!></div>"), J = d.from_html("<div><!> <!></div>");
398
+ function Y(t, n) {
399
+ d.push(n, !0);
400
+ let r = z(), i = {
401
+ sm: "max-w-sm",
402
+ md: "max-w-md",
403
+ lg: "max-w-xl",
404
+ xl: "max-w-2xl"
405
+ }, c = {
406
+ sm: "md:max-w-sm",
407
+ md: "md:max-w-md",
408
+ lg: "md:max-w-xl",
409
+ xl: "md:max-w-2xl"
410
+ }, u = d.derived(() => i[r.size] || i.md), f = d.derived(() => c[r.size] || c.md);
411
+ function p(e) {
412
+ return !(typeof window < "u" && window.matchMedia) || window.matchMedia("(min-width: 768px)").matches ? a(e) : l(e, {
413
+ y: 300,
414
+ duration: o.normal,
415
+ easing: s.out
416
+ });
417
+ }
418
+ var m = d.comment(), h = d.first_child(m), g = (t) => {
419
+ var r = q();
420
+ K(d.child(r), {
421
+ visibility: "always",
422
+ children: (e, t) => {
423
+ var r = d.comment(), i = d.first_child(r);
424
+ d.snippet(i, () => n.children ?? d.noop), d.append(e, r);
425
+ },
426
+ $$slots: { default: !0 }
427
+ }), d.reset(r), d.template_effect((e) => d.set_class(r, 1, e), [() => d.clsx(e("relative bg-card rounded-lg w-full max-h-[calc(100vh-4rem)] overflow-hidden shadow-2xl flex flex-col", d.get(u), n.class))]), d.delegated("click", r, (e) => e.stopPropagation()), d.transition(3, r, () => a), d.append(t, r);
428
+ }, _ = (t) => {
429
+ var r = J(), i = d.child(r);
430
+ F(i, { class: "md:hidden" }), K(d.sibling(i, 2), {
431
+ visibility: "always",
432
+ children: (e, t) => {
433
+ var r = d.comment(), i = d.first_child(r);
434
+ d.snippet(i, () => n.children ?? d.noop), d.append(e, r);
435
+ },
436
+ $$slots: { default: !0 }
437
+ }), d.reset(r), d.template_effect((e) => d.set_class(r, 1, e), [() => d.clsx(e("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", d.get(f), n.class))]), d.delegated("click", r, (e) => e.stopPropagation()), d.transition(3, r, () => p), d.append(t, r);
438
+ };
439
+ d.if(h, (e) => {
440
+ r.variant === "dialog" ? e(g) : e(_, -1);
441
+ }), d.append(t, m), d.pop();
442
+ }
443
+ d.delegate(["click"]);
444
+ //#endregion
445
+ //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalBody.svelte
446
+ var X = d.from_html("<div><!></div>");
447
+ function Z(t, n) {
448
+ d.push(n, !0), z();
449
+ var r = X(), i = d.child(r), a = (e) => {
450
+ var t = d.comment(), r = d.first_child(t);
451
+ d.snippet(r, () => n.children), d.append(e, t);
452
+ };
453
+ d.if(i, (e) => {
454
+ n.children && e(a);
455
+ }), d.reset(r), d.template_effect((e) => d.set_class(r, 1, e), [() => d.clsx(e("flex-1 min-h-0 overflow-y-auto px-6 py-3", n.class))]), d.append(t, r), d.pop();
456
+ }
457
+ //#endregion
458
+ //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalFooter.svelte
459
+ var Q = d.from_html("<div><!></div>");
460
+ function $(t, n) {
461
+ d.push(n, !0), z();
462
+ var r = Q(), i = d.child(r), a = (e) => {
463
+ var t = d.comment(), r = d.first_child(t);
464
+ d.snippet(r, () => n.children), d.append(e, t);
465
+ };
466
+ d.if(i, (e) => {
467
+ n.children && e(a);
468
+ }), d.reset(r), d.template_effect((e) => d.set_class(r, 1, e), [() => d.clsx(e("shrink-0 w-full flex flex-col md:flex-row md:justify-end gap-3 px-6 pt-3 pb-6 empty:hidden", n.class))]), d.append(t, r), d.pop();
469
+ }
470
+ //#endregion
471
+ export { U as a, F as c, A as d, j as f, g as h, G as i, N as l, y as m, Z as n, z as o, M as p, Y as r, R as s, $ as t, S as u };
@@ -0,0 +1,18 @@
1
+ import { T as e } from "./Button-CxQO7vwF.js";
2
+ import { o as t } from "./ModalFooter-DwkZn9ls.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
+ export { i as t };
@@ -1,5 +1,5 @@
1
- import { C as e } from "./Button-Cm6xkipe.js";
2
- import { t } from "./Input-D1FpSX5Q.js";
1
+ import { C as e } from "./Button-CxQO7vwF.js";
2
+ import { t } from "./Input-Bl1wqeUH.js";
3
3
  import { d as n, n as r, r as i } from "./z-index-BgKs9X9U.js";
4
4
  import { t as a } from "./lazyOnce-CCfEO1xG.js";
5
5
  import "svelte/internal/disclose-version";