@getmicdrop/venue-calendar 4.3.126 → 4.3.128

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 (122) hide show
  1. package/dist/{AddOnCard-VVZpbBUD.js → AddOnCard-DVIyT413.js} +5 -5
  2. package/dist/{ArrowLeftIcon-Aa8szJd2.js → ArrowLeftIcon-DEgh32lp.js} +1 -1
  3. package/dist/{BlockPlaceholder-DKO3qMQN.js → BlockPlaceholder-hgRNmGkj.js} +1 -1
  4. package/dist/{Calendar-Cg5l_9pw.js → Calendar-CO2OMTWv.js} +4 -4
  5. package/dist/{CalendarFoundryView-CNu_W30L.js → CalendarFoundryView-CWfg6a0c.js} +2874 -2902
  6. package/dist/{CalendarIcon-CziWNNkR.js → CalendarIcon-BiIhqa3c.js} +1 -1
  7. package/dist/{CartView-zPuyNVKW.js → CartView-Bs9zBAU_.js} +16 -16
  8. package/dist/{CheckIcon-CcwbTMNG.js → CheckIcon-BSKGGU_P.js} +1 -1
  9. package/dist/Checkout-B66YlKRx.js +1941 -0
  10. package/dist/Checkout-Bp8wroSt.js +1082 -0
  11. package/dist/{CheckoutTimer-BFA8H-w8.js → CheckoutTimer-D1Xt-i3-.js} +2 -2
  12. package/dist/{ChevronDownIcon-1yEEieej.js → ChevronDownIcon-BYOUR8W8.js} +1 -1
  13. package/dist/{CloseIcon-CkOE_Ni1.js → CloseIcon-BhUrqAhx.js} +1 -1
  14. package/dist/{CollectionView-Cyn-BLBr.js → CollectionView-DspaPi_l.js} +6 -6
  15. package/dist/CropImage-D1M-bKxG.js +548 -0
  16. package/dist/{Event-7yU5yR2k.js → Event-Di09iz_m.js} +19 -19
  17. package/dist/{EventCard-DLl7DOTD.js → EventCard-DRuU3Q_r.js} +1 -1
  18. package/dist/EventPage-BL4WawOs.js +1344 -0
  19. package/dist/{Input-DCQoY3gA.js → Input-RNcqmqlD.js} +1 -1
  20. package/dist/{LocationIcon-DQEJpYBw.js → LocationIcon-_PcJ1uA2.js} +1 -1
  21. package/dist/{Modal-kG0LKgMZ.js → Modal-rt9KVfYa.js} +2 -2
  22. package/dist/{ModalFooter-CM5RDuvB.js → ModalFooter-Cru7v0io.js} +76 -61
  23. package/dist/{ModalHeader-DBVXezSL.js → ModalHeader-CpgkuttK.js} +1 -1
  24. package/dist/{PasswordInput-C3n2QNdS.js → PasswordInput-D8MdExEM.js} +1 -1
  25. package/dist/{RecommendationsRail-CScFl_At.js → RecommendationsRail-CASaEhsf.js} +8 -8
  26. package/dist/{ScarcityBadge-CSKC_j03.js → ScarcityBadge-DnTalbV0.js} +4 -4
  27. package/dist/{SeriesPage-DwuakMd9.js → SeriesPage-DokOX6-u.js} +2 -2
  28. package/dist/{Spinner-Bwv1t2qb.js → Spinner-BskKgkwa.js} +1 -1
  29. package/dist/{Success-D0ebXckE.js → Success-_2EsGGvn.js} +17 -17
  30. package/dist/{TagIcon-CAvDPJz4.js → TagIcon-BTaz1xN5.js} +1 -1
  31. package/dist/{ViewTicketsEmbed-CAzgURnh.js → ViewTicketsEmbed-5FmtN5FE.js} +5 -5
  32. package/dist/{WarningCircleIcon-BlUg0seF.js → WarningCircleIcon-B1KX3p19.js} +1 -1
  33. package/dist/{WarningTriIcon-UJ3XBDgX.js → WarningTriIcon-C40Ul16E.js} +1 -1
  34. package/dist/{adapter-CfFKIE_3.js → adapter-BZCYrL13.js} +1 -1
  35. package/dist/{api-DKPREg-N.js → api-BxKvWBu_.js} +4 -4
  36. package/dist/{copyToClipboard-CZr5Q5pm.js → copyToClipboard-G1JW70Qn.js} +1 -1
  37. package/dist/createErrorGate.svelte-hewD6v3X.js +114 -0
  38. package/dist/{cta-CGxow_mH.js → cta-CcGCIhvk.js} +3 -3
  39. package/dist/{datetime-D-9opf7E.js → datetime-BSb_4_yZ.js} +1 -1
  40. package/dist/{de-DbmaTzvj.js → de-8y4zZw4b.js} +1 -0
  41. package/dist/{defaultLabels-Bs-Aev13.js → defaultLabels-B0ug1Vhr.js} +1 -0
  42. package/dist/{defaults-lMW0sYGs.js → defaults-BclZlhyX.js} +1 -1
  43. package/dist/{es-BkaIiy__.js → es-DeS00ow9.js} +1 -0
  44. package/dist/{event-B9aCkZWH.js → event-B-GHKOCV.js} +1 -1
  45. package/dist/{event-transform-Ba1CEX8U.js → event-transform-BttnreVZ.js} +18 -18
  46. package/dist/{fr-lwcVCakh.js → fr-wj3wN-iZ.js} +1 -0
  47. package/dist/{href-B2VQzARQ.js → href-z8jrNd6b.js} +3 -3
  48. package/dist/{i18n-CcmYyf6q.js → i18n-Bi0xxbMT.js} +5 -5
  49. package/dist/i18n-C352Rlkq.js +28 -0
  50. package/dist/{id-CuwXmxz0.js → id-Bb-uh99i.js} +1 -0
  51. package/dist/{imageOptimizer-B3fj8_30.js → imageOptimizer-Gew5vPWh.js} +1 -1
  52. package/dist/{it-BPjJ_YAa.js → it-BtjDiYDd.js} +1 -0
  53. package/dist/{ja-DlsZs62-.js → ja-BRZa3RPq.js} +1 -0
  54. package/dist/{ko-CZe2-vDf.js → ko-0W8onUpE.js} +1 -0
  55. package/dist/locales/4.3.128/main/de.js +1 -0
  56. package/dist/locales/4.3.128/main/es.js +1 -0
  57. package/dist/locales/4.3.128/main/fr.js +1 -0
  58. package/dist/locales/4.3.128/main/id.js +1 -0
  59. package/dist/locales/4.3.128/main/it.js +1 -0
  60. package/dist/locales/4.3.128/main/ja.js +1 -0
  61. package/dist/locales/4.3.128/main/ko.js +1 -0
  62. package/dist/locales/4.3.128/main/nl.js +1 -0
  63. package/dist/locales/4.3.128/main/pl.js +1 -0
  64. package/dist/locales/4.3.128/main/pt-br.js +1 -0
  65. package/dist/locales/4.3.128/main/tr.js +1 -0
  66. package/dist/locales/4.3.128/main/zh.js +1 -0
  67. package/dist/{look-island.svelte-DxCjqcfn.js → look-island.svelte-DErOsA9l.js} +499 -493
  68. package/dist/looks/{4.3.126 → 4.3.128}/looks.js +3 -3
  69. package/dist/{navigation-DLQdkYAe.js → navigation-6-Uc3FBI.js} +96 -35
  70. package/dist/{nl-DfrW5joq.js → nl-BOmYOo99.js} +1 -0
  71. package/dist/{pixels-Cnqi5LS9.js → pixels-Dxa1FA4t.js} +1 -1
  72. package/dist/{pl-Dlj27oBg.js → pl-DPWWFKMv.js} +1 -0
  73. package/dist/{pt-br-PASK8TtQ.js → pt-br-DLGmNm-Y.js} +1 -0
  74. package/dist/{serverTotals-Dnf5sfs0.js → serverTotals-KkOXYaTu.js} +1 -1
  75. package/dist/{showcase-state-options-BuP2V_bQ.js → showcase-state-options-DzD18XlL.js} +1 -1
  76. package/dist/{to-event-card-props-PMXq6eMn.js → to-event-card-props-PMhCTmUc.js} +2 -2
  77. package/dist/{tr-BSLLeMNP.js → tr-BWV_tdGl.js} +1 -0
  78. package/dist/types/index.d.ts +3 -0
  79. package/dist/{utils-xgVF6KTU.js → utils-kb8Go96U.js} +2 -2
  80. package/dist/venue-calendar.css +1 -1
  81. package/dist/venue-calendar.es.js +1980 -1779
  82. package/dist/venue-calendar.iife.js +35 -35
  83. package/dist/venue-calendar.umd.js +53 -53
  84. package/dist/{widget-key-context-DaVnGw3w.js → widget-key-context-B-rITlo1.js} +1 -1
  85. package/dist/{zh-BlnjAnmE.js → zh-pihqmu9w.js} +1 -0
  86. package/package.json +1 -1
  87. package/dist/Checkout-Cpx7Ga2R.js +0 -1079
  88. package/dist/Checkout-DkiPMGiX.js +0 -1934
  89. package/dist/CropImage-C8W_Xb_V.js +0 -549
  90. package/dist/EventPage-0zAx_hw6.js +0 -1225
  91. package/dist/LiveRegion-D9Me4kBs.js +0 -18
  92. package/dist/createErrorGate.svelte-BXJit8kE.js +0 -86
  93. package/dist/i18n-DGMP75RM.js +0 -28
  94. package/dist/locales/4.3.126/main/de.js +0 -1
  95. package/dist/locales/4.3.126/main/es.js +0 -1
  96. package/dist/locales/4.3.126/main/fr.js +0 -1
  97. package/dist/locales/4.3.126/main/id.js +0 -1
  98. package/dist/locales/4.3.126/main/it.js +0 -1
  99. package/dist/locales/4.3.126/main/ja.js +0 -1
  100. package/dist/locales/4.3.126/main/ko.js +0 -1
  101. package/dist/locales/4.3.126/main/nl.js +0 -1
  102. package/dist/locales/4.3.126/main/pl.js +0 -1
  103. package/dist/locales/4.3.126/main/pt-br.js +0 -1
  104. package/dist/locales/4.3.126/main/tr.js +0 -1
  105. package/dist/locales/4.3.126/main/zh.js +0 -1
  106. /package/dist/locales/{4.3.126 → 4.3.128}/flow/de.js +0 -0
  107. /package/dist/locales/{4.3.126 → 4.3.128}/flow/es.js +0 -0
  108. /package/dist/locales/{4.3.126 → 4.3.128}/flow/fr.js +0 -0
  109. /package/dist/locales/{4.3.126 → 4.3.128}/flow/id.js +0 -0
  110. /package/dist/locales/{4.3.126 → 4.3.128}/flow/it.js +0 -0
  111. /package/dist/locales/{4.3.126 → 4.3.128}/flow/ja.js +0 -0
  112. /package/dist/locales/{4.3.126 → 4.3.128}/flow/ko.js +0 -0
  113. /package/dist/locales/{4.3.126 → 4.3.128}/flow/nl.js +0 -0
  114. /package/dist/locales/{4.3.126 → 4.3.128}/flow/pl.js +0 -0
  115. /package/dist/locales/{4.3.126 → 4.3.128}/flow/pt-br.js +0 -0
  116. /package/dist/locales/{4.3.126 → 4.3.128}/flow/tr.js +0 -0
  117. /package/dist/locales/{4.3.126 → 4.3.128}/flow/zh.js +0 -0
  118. /package/dist/looks/{4.3.126 → 4.3.128}/micdrop-wordmark-BYMG6vLR.svg +0 -0
  119. /package/dist/looks/{4.3.126 → 4.3.128}/microphone-Ccv4r-kd.webp +0 -0
  120. /package/dist/looks/{4.3.126 → 4.3.128}/superuser-CZF6a5gO.webp +0 -0
  121. /package/dist/looks/{4.3.126 → 4.3.128}/treasury-DUE7lZzT.webp +0 -0
  122. /package/dist/looks/{4.3.126 → 4.3.128}/user-image-yuS4errP.svg +0 -0
@@ -1,5 +1,5 @@
1
- import { n as e } from "./WarningCircleIcon-BlUg0seF.js";
2
- import { _ as t, f as n } from "./defaultLabels-Bs-Aev13.js";
1
+ import { n as e } from "./WarningCircleIcon-B1KX3p19.js";
2
+ import { _ as t, f as n } from "./defaultLabels-B0ug1Vhr.js";
3
3
  import { r } from "./Button-VUB2WJ88.js";
4
4
  import { t as i } from "./Text-CqjLjIF8.js";
5
5
  import { n as a } from "./constants-lKAMwRvZ.js";
@@ -1,4 +1,4 @@
1
- import { X as e } from "./datetime-D-9opf7E.js";
1
+ import { X as e } from "./datetime-BSb_4_yZ.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/ChevronDownIcon.svelte
@@ -1,4 +1,4 @@
1
- import { X as e } from "./datetime-D-9opf7E.js";
1
+ import { X as e } from "./datetime-BSb_4_yZ.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/CalendarOutline.svelte
@@ -1,11 +1,11 @@
1
- import { t as e } from "./Event-7yU5yR2k.js";
1
+ import { t as e } from "./Event-Di09iz_m.js";
2
2
  import { g as t } from "./sizing-B7ixYndz.js";
3
- import { o as n } from "./RecommendationsRail-CScFl_At.js";
4
- import { t as r } from "./defaultLabels-Bs-Aev13.js";
3
+ import { o as n } from "./RecommendationsRail-CASaEhsf.js";
4
+ import { t as r } from "./defaultLabels-B0ug1Vhr.js";
5
5
  import { t as i } from "./Button-VUB2WJ88.js";
6
- import { n as a } from "./widget-key-context-DaVnGw3w.js";
7
- import { _ as o } from "./api-DKPREg-N.js";
8
- import { t as s } from "./PasswordInput-C3n2QNdS.js";
6
+ import { n as a } from "./widget-key-context-B-rITlo1.js";
7
+ import { _ as o } from "./api-BxKvWBu_.js";
8
+ import { t as s } from "./PasswordInput-D8MdExEM.js";
9
9
  import { t as c } from "./__SKIP_NAVIGATION__-AOx8SI54.js";
10
10
  import { t as l } from "./__SKIP_PATHS__-C0ixDSSm.js";
11
11
  import { i as u, n as d, t as f } from "./gate-password-cache-oOcDm9Ki.js";
@@ -0,0 +1,548 @@
1
+ import { t as e } from "./Button-B58iYo_t.js";
2
+ import { s as t } from "./keyboard-DhCcdIyh.js";
3
+ import { g as n, h as r, m as i, v as a } from "./sizing-B7ixYndz.js";
4
+ import { t as o } from "./CloseOutline-qpVa62mu.js";
5
+ import { a as s, i as c, o as l, r as u, t as d } from "./imageOptimizer-Gew5vPWh.js";
6
+ import { a as f, d as ee, i as p, n as m, o as h, r as g, t as _ } from "./ModalFooter-Cru7v0io.js";
7
+ import { t as v } from "./ModalHeader-CpgkuttK.js";
8
+ import "svelte/internal/disclose-version";
9
+ import * as y from "svelte/internal/client";
10
+ import { MediaQuery as b } from "svelte/reactivity";
11
+ import { onDestroy as x, onMount as te } from "svelte";
12
+ //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/MinusOutline.svelte
13
+ var S = y.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=\"M19.5 12h-15\"></path></svg>");
14
+ function C(e, t) {
15
+ let n = y.prop(t, "size", 3, "24"), r = y.prop(t, "color", 3, "currentColor"), i = y.prop(t, "class", 3, "");
16
+ var a = S();
17
+ y.template_effect(() => {
18
+ y.set_class(a, 0, y.clsx(i())), y.set_attribute(a, "width", n()), y.set_attribute(a, "height", n()), y.set_attribute(a, "stroke", r());
19
+ }), y.append(e, a);
20
+ }
21
+ //#endregion
22
+ //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalClose.svelte
23
+ function w(n, r) {
24
+ y.push(r, !0);
25
+ let i = { close: "Close" }, s = y.prop(r, "disabled", 3, !1), c = y.prop(r, "labels", 19, () => ({})), l = h(), u = y.derived(() => a(i, c()));
26
+ {
27
+ let i = y.derived(() => t(r.class));
28
+ e(n, {
29
+ variant: "icon",
30
+ size: "xs",
31
+ get disabled() {
32
+ return s();
33
+ },
34
+ get class() {
35
+ return y.get(i);
36
+ },
37
+ get "aria-label"() {
38
+ return y.get(u).close;
39
+ },
40
+ onclick: () => l.resetModal(),
41
+ children: (e, t) => {
42
+ o(e, { class: "w-3 h-3" });
43
+ },
44
+ $$slots: { default: !0 }
45
+ });
46
+ }
47
+ y.pop();
48
+ }
49
+ //#endregion
50
+ //#region node_modules/svelte-easy-crop/dist/helpers.js
51
+ function T(e, t, n) {
52
+ return e >= t * n ? {
53
+ width: t * n,
54
+ height: t
55
+ } : {
56
+ width: e,
57
+ height: e / n
58
+ };
59
+ }
60
+ function E(e, t, n, r) {
61
+ return {
62
+ x: D(e.x, t.width, n.width, r),
63
+ y: D(e.y, t.height, n.height, r)
64
+ };
65
+ }
66
+ function D(e, t, n, r) {
67
+ let i = Math.abs(t * r / 2 - n / 2);
68
+ return Math.min(i, Math.max(e, -i));
69
+ }
70
+ function O(e, t) {
71
+ return Math.sqrt((e.y - t.y) ** 2 + (e.x - t.x) ** 2);
72
+ }
73
+ function k(e, t, n, r, i, a = !0) {
74
+ let o = a ? A : j, s = {
75
+ x: o(100, ((t.width - n.width / i) / 2 - e.x / i) / t.width * 100),
76
+ y: o(100, ((t.height - n.height / i) / 2 - e.y / i) / t.height * 100),
77
+ width: o(100, n.width / t.width * 100 / i),
78
+ height: o(100, n.height / t.height * 100 / i)
79
+ }, c = o(t.naturalWidth, s.width * t.naturalWidth / 100, !0), l = o(t.naturalHeight, s.height * t.naturalHeight / 100, !0), u = t.naturalWidth >= t.naturalHeight * r ? {
80
+ width: Math.round(l * r),
81
+ height: l
82
+ } : {
83
+ width: c,
84
+ height: Math.round(c / r)
85
+ };
86
+ return {
87
+ croppedAreaPercentages: s,
88
+ croppedAreaPixels: {
89
+ ...u,
90
+ x: o(t.naturalWidth - u.width, s.x * t.naturalWidth / 100, !0),
91
+ y: o(t.naturalHeight - u.height, s.y * t.naturalHeight / 100, !0)
92
+ }
93
+ };
94
+ }
95
+ function A(e, t, n = !1) {
96
+ return Math.min(e, Math.max(0, n ? Math.round(t) : t));
97
+ }
98
+ function j(e, t) {
99
+ return t;
100
+ }
101
+ function M(e, t) {
102
+ return {
103
+ x: (t.x + e.x) / 2,
104
+ y: (t.y + e.y) / 2
105
+ };
106
+ }
107
+ //#endregion
108
+ //#region node_modules/svelte-easy-crop/dist/Cropper.svelte
109
+ var N = y.from_html("<div data-testid=\"cropper\"></div>"), P = y.from_html("<div class=\"svelte-easy-crop-container svelte-1yetlj5\" role=\"button\" data-testid=\"container\"><img class=\"svelte-easy-crop-image svelte-1yetlj5\" alt=\"\"/> <!></div>");
110
+ function F(e, t) {
111
+ y.push(t, !0);
112
+ let n = y.prop(t, "crop", 31, () => y.proxy({
113
+ x: 0,
114
+ y: 0
115
+ })), r = y.prop(t, "zoom", 15, 1), i = y.prop(t, "minZoom", 11, 1), a = y.prop(t, "maxZoom", 11, 3), o = y.prop(t, "aspect", 3, 4 / 3), s = y.prop(t, "cropSize", 3, null), c = y.prop(t, "cropShape", 3, "rect"), l = y.prop(t, "showGrid", 3, !0), u = y.prop(t, "zoomSpeed", 3, 1), d = y.prop(t, "crossOrigin", 3, null), f = y.prop(t, "restrictPosition", 3, !0), ee = y.prop(t, "tabindex", 3, void 0), p = y.state(null), m = y.state(y.proxy({
116
+ width: 0,
117
+ height: 0,
118
+ naturalWidth: 0,
119
+ naturalHeight: 0
120
+ })), h = y.state(null), g = y.state(null), _ = y.state(null), v = y.state(y.proxy({
121
+ x: 0,
122
+ y: 0
123
+ })), b = y.state(y.proxy({
124
+ x: 0,
125
+ y: 0
126
+ })), S = y.state(0), C = y.state(null), w = y.state(null);
127
+ te(() => {
128
+ y.get(_) && y.get(_).complete && j(), y.get(h) && (y.get(h).addEventListener("gesturestart", D), y.get(h).addEventListener("gesturechange", D));
129
+ }), x(() => {
130
+ y.get(h) && (y.get(h).removeEventListener("gesturestart", D), y.get(h).removeEventListener("gesturechange", D)), A();
131
+ });
132
+ let D = (e) => e.preventDefault(), A = () => {
133
+ typeof document < "u" && (document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", G), document.removeEventListener("touchmove", H), document.removeEventListener("touchend", G));
134
+ }, j = () => {
135
+ I(), Z();
136
+ }, F = () => s() ? s().width / s().height : o(), I = () => {
137
+ y.get(_) && (y.set(m, {
138
+ width: y.get(_).width,
139
+ height: y.get(_).height,
140
+ naturalWidth: y.get(_).naturalWidth,
141
+ naturalHeight: y.get(_).naturalHeight
142
+ }, !0), y.set(p, s() ? s() : T(y.get(_).width, y.get(_).height, o()), !0)), y.get(h) && y.set(g, y.get(h).getBoundingClientRect(), !0);
143
+ }, L = (e) => ({
144
+ x: Number(e.clientX),
145
+ y: Number(e.clientY)
146
+ }), R = (e) => ({
147
+ x: Number(e.clientX),
148
+ y: Number(e.clientY)
149
+ }), z = (e) => {
150
+ e.preventDefault(), document.addEventListener("mousemove", B), document.addEventListener("mouseup", G), U(L(e));
151
+ }, B = (e) => W(L(e)), V = (e) => {
152
+ e.preventDefault(), document.addEventListener("touchmove", H, { passive: !1 }), document.addEventListener("touchend", G), e.touches.length === 2 ? K(e) : e.touches.length === 1 && U(R(e.touches[0]));
153
+ }, H = (e) => {
154
+ e.preventDefault(), e.touches.length === 2 ? q(e) : e.touches.length === 1 && W(R(e.touches[0]));
155
+ }, U = ({ x: e, y: t }) => {
156
+ y.set(v, {
157
+ x: e,
158
+ y: t
159
+ }, !0), y.set(b, {
160
+ x: n().x,
161
+ y: n().y
162
+ }, !0);
163
+ }, W = ({ x: e, y: t }) => {
164
+ y.get(C) && window.cancelAnimationFrame(y.get(C)), y.set(C, window.requestAnimationFrame(() => {
165
+ if (e === void 0 || t === void 0 || !y.get(p)) return;
166
+ let i = e - y.get(v).x, a = t - y.get(v).y, o = {
167
+ x: y.get(b).x + i,
168
+ y: y.get(b).y + a
169
+ };
170
+ n(f() ? E(o, y.get(m), y.get(p), r()) : o);
171
+ }), !0);
172
+ }, G = () => {
173
+ A(), Z();
174
+ }, K = (e) => {
175
+ let t = R(e.touches[0]), n = R(e.touches[1]);
176
+ y.set(S, O(t, n), !0), U(M(t, n));
177
+ }, q = (e) => {
178
+ let t = R(e.touches[0]), n = R(e.touches[1]), i = M(t, n);
179
+ W(i), y.get(w) && window.cancelAnimationFrame(y.get(w)), y.set(w, window.requestAnimationFrame(() => {
180
+ let e = O(t, n), a = r() * (e / y.get(S));
181
+ X(a, i), y.set(S, e, !0);
182
+ }), !0);
183
+ }, J = (e) => {
184
+ e.preventDefault();
185
+ let t = L(e), n = r() - e.deltaY * u() / 200;
186
+ X(n, t);
187
+ }, ne = ({ x: e, y: t }) => {
188
+ if (!y.get(g)) throw Error("The Cropper is not mounted");
189
+ return {
190
+ x: y.get(g).width / 2 - (e - y.get(g).left),
191
+ y: y.get(g).height / 2 - (t - y.get(g).top)
192
+ };
193
+ }, Y = ({ x: e, y: t }) => ({
194
+ x: (e + n().x) / r(),
195
+ y: (t + n().y) / r()
196
+ }), X = (e, t) => {
197
+ if (!y.get(p)) return;
198
+ let o = ne(t), s = Y(o);
199
+ r(Math.min(a(), Math.max(e, i())));
200
+ let c = {
201
+ x: s.x * r() - o.x,
202
+ y: s.y * r() - o.y
203
+ };
204
+ n(f() ? E(c, y.get(m), y.get(p), r()) : c);
205
+ }, Z = () => {
206
+ if (!y.get(p) || y.get(p).width === 0) return;
207
+ let { croppedAreaPercentages: e, croppedAreaPixels: i } = k(f() ? E(n(), y.get(m), y.get(p), r()) : n(), y.get(m), y.get(p), F(), r(), f());
208
+ t.oncropcomplete?.({
209
+ percent: e,
210
+ pixels: i
211
+ });
212
+ };
213
+ y.user_effect(() => {
214
+ y.get(_) && y.set(p, s() ? s() : T(y.get(_).width, y.get(_).height, o()), !0);
215
+ }), y.user_effect(() => {
216
+ r() && Z();
217
+ });
218
+ let re = (e) => {
219
+ y.user_effect(() => (e.addEventListener("touchstart", V), e.addEventListener("mousedown", z), e.addEventListener("wheel", J, { passive: !1 }), () => {
220
+ e.removeEventListener("touchstart", V), e.removeEventListener("mousedown", z), e.removeEventListener("wheel", J);
221
+ }));
222
+ };
223
+ var Q = P();
224
+ y.event("resize", y.window, I);
225
+ var $ = y.child(Q);
226
+ y.bind_this($, (e) => y.set(_, e), () => y.get(_));
227
+ var ie = y.sibling($, 2), ae = (e) => {
228
+ var t = N();
229
+ let n;
230
+ y.template_effect(() => {
231
+ n = y.set_class(t, 1, "svelte-easy-crop-area svelte-1yetlj5", null, n, {
232
+ "svelte-easy-crop-round": c() === "round",
233
+ "svelte-easy-crop-grid": l()
234
+ }), y.set_style(t, `width: ${y.get(p).width ?? ""}px; height: ${y.get(p).height ?? ""}px;`);
235
+ }), y.append(e, t);
236
+ };
237
+ y.if(ie, (e) => {
238
+ y.get(p) && e(ae);
239
+ }), y.reset(Q), y.bind_this(Q, (e) => y.set(h, e), () => y.get(h)), y.action(Q, (e) => re?.(e)), y.template_effect(() => {
240
+ y.set_attribute(Q, "tabindex", ee()), y.set_attribute($, "src", t.image), y.set_style($, `transform: translate(${n().x ?? ""}px, ${n().y ?? ""}px) scale(${r() ?? ""});`), y.set_attribute($, "crossorigin", d());
241
+ }), y.event("load", $, j), y.replay_events($), y.append(e, Q), y.pop();
242
+ }
243
+ //#endregion
244
+ //#region node_modules/svelte-easy-crop/dist/index.js
245
+ var I = F, L = y.from_html("<div class=\"absolute inset-0 flex items-center justify-center bg-bg-tertiary z-sticky\"><span> </span></div>"), R = y.from_html("<p> </p>"), z = y.from_html("<div><!> <!></div> <div class=\"flex-1\"><p> </p> <div class=\"flex items-center justify-center gap-3 max-w-xs mx-auto\"><!> <input type=\"range\" min=\"1\" max=\"3\" step=\"0.1\" class=\"flex-1 w-full h-2 bg-bg-tertiary rounded-lg appearance-none cursor-pointer accent-primary\" data-purpose=\"ui-only\"/> <!></div> <!></div>", 1), B = y.from_html("<!> <!>", 1), V = y.from_html("<div class=\"flex gap-3\"><!></div>"), H = y.from_html("<div class=\"flex flex-col gap-4 landscape:flex-row landscape:items-center landscape:gap-6\"><!></div>"), U = y.from_html("<!> <!> <!>", 1);
246
+ function W(t, o) {
247
+ y.push(o, !0);
248
+ let h = (t, n = y.noop) => {
249
+ var r = z(), a = y.first_child(r), o = y.child(a), s = (e) => {
250
+ var t = L(), n = y.child(t), r = y.child(n, !0);
251
+ y.reset(n), y.reset(t), y.template_effect(() => {
252
+ y.set_class(n, 1, y.clsx(i.smMuted)), y.set_text(r, y.get(N).loading);
253
+ }), y.append(e, t);
254
+ };
255
+ y.if(o, (e) => {
256
+ y.get(G) && e(s);
257
+ }), I(y.sibling(o, 2), {
258
+ get image() {
259
+ return D();
260
+ },
261
+ aspect: 1,
262
+ minZoom: 1,
263
+ maxZoom: 3,
264
+ showGrid: !0,
265
+ oncropcomplete: J,
266
+ get crop() {
267
+ return y.get(P);
268
+ },
269
+ set crop(e) {
270
+ y.set(P, e, !0);
271
+ },
272
+ get zoom() {
273
+ return y.get(F);
274
+ },
275
+ set zoom(e) {
276
+ y.set(F, e, !0);
277
+ }
278
+ }), y.reset(a);
279
+ var c = y.sibling(a, 2), u = y.child(c), d = y.child(u, !0);
280
+ y.reset(u);
281
+ var f = y.sibling(u, 2), p = y.child(f);
282
+ e(p, {
283
+ variant: "outline",
284
+ size: "sm",
285
+ class: "rounded-full! w-9! h-9! p-0! shrink-0",
286
+ onclick: () => y.set(F, Math.max(1, y.get(F) - .2), !0),
287
+ get "aria-label"() {
288
+ return y.get(N).zoomOut;
289
+ },
290
+ children: (e, t) => {
291
+ C(e, { class: "w-4 h-4" });
292
+ },
293
+ $$slots: { default: !0 }
294
+ });
295
+ var m = y.sibling(p, 2);
296
+ y.remove_input_defaults(m);
297
+ var h = y.sibling(m, 2);
298
+ e(h, {
299
+ variant: "outline",
300
+ size: "sm",
301
+ class: "rounded-full! w-9! h-9! p-0! shrink-0",
302
+ onclick: () => y.set(F, Math.min(3, y.get(F) + .2), !0),
303
+ get "aria-label"() {
304
+ return y.get(N).zoomIn;
305
+ },
306
+ children: (e, t) => {
307
+ l(e, { class: "w-4 h-4" });
308
+ },
309
+ $$slots: { default: !0 }
310
+ }), y.reset(f);
311
+ var g = y.sibling(f, 2);
312
+ ee(g, {
313
+ role: "alert",
314
+ politeness: "assertive",
315
+ visible: !0,
316
+ children: (e, t) => {
317
+ var n = y.comment(), r = y.first_child(n), a = (e) => {
318
+ var t = R(), n = y.child(t, !0);
319
+ y.reset(t), y.template_effect(() => {
320
+ y.set_class(t, 1, `${i.body} text-accent-danger text-center mt-4`), y.set_text(n, k());
321
+ }), y.append(e, t);
322
+ };
323
+ y.if(r, (e) => {
324
+ k() && e(a);
325
+ }), y.append(e, n);
326
+ },
327
+ $$slots: { default: !0 }
328
+ }), y.reset(c), y.template_effect(() => {
329
+ y.set_class(a, 1, y.clsx(n())), y.set_class(u, 1, `${i.smMuted} text-center mb-4`), y.set_text(d, y.get(N).dragToPosition), y.set_attribute(m, "aria-label", y.get(N).zoomLevel);
330
+ }), y.bind_value(m, () => y.get(F), (e) => y.set(F, e)), y.append(t, r);
331
+ }, x = (t, n = y.noop) => {
332
+ var r = B(), i = y.first_child(r);
333
+ {
334
+ let t = y.derived(() => y.get(K) || O());
335
+ e(i, {
336
+ type: "button",
337
+ variant: "alternative",
338
+ size: "md",
339
+ get class() {
340
+ return n();
341
+ },
342
+ onclick: Y,
343
+ get disabled() {
344
+ return y.get(t);
345
+ },
346
+ children: (e, t) => {
347
+ y.next();
348
+ var n = y.text();
349
+ y.template_effect(() => y.set_text(n, y.get(N).cancel)), y.append(e, n);
350
+ },
351
+ $$slots: { default: !0 }
352
+ });
353
+ }
354
+ var a = y.sibling(i, 2);
355
+ {
356
+ let t = y.derived(() => y.get(G) || y.get(K) || O());
357
+ e(a, {
358
+ type: "button",
359
+ size: "md",
360
+ get class() {
361
+ return n();
362
+ },
363
+ onclick: ne,
364
+ get disabled() {
365
+ return y.get(t);
366
+ },
367
+ children: (e, t) => {
368
+ var n = y.comment(), r = y.first_child(n), i = (e) => {
369
+ var t = y.text();
370
+ y.template_effect(() => y.set_text(t, y.get(N).uploading)), y.append(e, t);
371
+ }, a = (e) => {
372
+ var t = y.text();
373
+ y.template_effect(() => y.set_text(t, y.get(N).save)), y.append(e, t);
374
+ };
375
+ y.if(r, (e) => {
376
+ y.get(K) || O() ? e(i) : e(a, -1);
377
+ }), y.append(e, n);
378
+ },
379
+ $$slots: { default: !0 }
380
+ });
381
+ }
382
+ y.append(t, r);
383
+ }, te = n("CropImage"), S = new b("(max-width: 767px), (max-height: 500px)", !1), T = {
384
+ cropImageTitle: "Crop image",
385
+ loading: "Loading...",
386
+ dragToPosition: "Drag to position. Pinch or use slider to zoom.",
387
+ cancel: "Cancel",
388
+ uploading: "Uploading...",
389
+ save: "Save",
390
+ closeModal: "Close modal",
391
+ zoomOut: "Zoom out",
392
+ zoomIn: "Zoom in",
393
+ zoomLevel: "Zoom level",
394
+ cropFailed: "Couldn't read that photo. Please try a different one."
395
+ }, E = y.prop(o, "showModal", 15, !1), D = y.prop(o, "imageSrc", 15, ""), O = y.prop(o, "isUploadingImage", 3, !1), k = y.prop(o, "error", 15, ""), A = y.prop(o, "labels", 19, () => ({}));
396
+ o.onSave && !o.onsave && r("CropImage: prop \"onSave\" is deprecated. Use \"onsave\" instead."), o.onCancel && !o.oncancel && r("CropImage: prop \"onCancel\" is deprecated. Use \"oncancel\" instead.");
397
+ let j = y.derived(() => o.onsave ?? o.onSave ?? (() => {})), M = y.derived(() => o.oncancel ?? o.onCancel ?? (() => {})), N = y.derived(() => a(T, A())), P = y.state(y.proxy({
398
+ x: 0,
399
+ y: 0
400
+ })), F = y.state(1), W = y.state(null), G = y.state(!0), K = y.state(!1), q = D();
401
+ y.user_effect(() => {
402
+ E() && D() && (y.set(P, {
403
+ x: 0,
404
+ y: 0
405
+ }, !0), y.set(F, 1), y.set(W, null), y.set(G, !0), y.set(K, !1), D() !== q && (q = D(), k("")));
406
+ });
407
+ function J(e) {
408
+ y.set(W, e.pixels, !0), y.set(G, !1);
409
+ }
410
+ async function ne() {
411
+ if (!(!y.get(W) || y.get(K))) {
412
+ y.set(K, !0), k("");
413
+ try {
414
+ let e = await X(D(), y.get(W));
415
+ y.get(j)(e);
416
+ } catch (e) {
417
+ y.set(K, !1), k(y.get(N).cropFailed), te.error("Crop failed:", e);
418
+ }
419
+ }
420
+ }
421
+ function Y() {
422
+ E(!1), D(""), y.set(P, {
423
+ x: 0,
424
+ y: 0
425
+ }, !0), y.set(F, 1), y.set(W, null), y.set(K, !1), k(""), y.get(M)();
426
+ }
427
+ async function X(e, t) {
428
+ let n = await d(e), r = document.createElement("canvas"), i = r.getContext("2d"), a = 1e3;
429
+ r.width = a, r.height = a, i.imageSmoothingEnabled = !0, i.imageSmoothingQuality = "high", i.drawImage(n, t.x, t.y, t.width, t.height, 0, 0, a, a);
430
+ let o = u(), s = o ? "image/webp" : "image/jpeg", c = o ? .8 : .85, l = o ? "webp" : "jpg";
431
+ return new Promise((e) => {
432
+ r.toBlob((t) => {
433
+ e(new File([t], `cropped-image.${l}`, { type: s }));
434
+ }, s, c);
435
+ });
436
+ }
437
+ var Z = y.comment(), re = y.first_child(Z), Q = (e) => {
438
+ s(e, {
439
+ get open() {
440
+ return E();
441
+ },
442
+ get title() {
443
+ return y.get(N).cropImageTitle;
444
+ },
445
+ alwaysSheet: !0,
446
+ get "data-testid"() {
447
+ return o["data-testid"];
448
+ },
449
+ onclose: () => {
450
+ !y.get(K) && !O() && Y();
451
+ },
452
+ actions: (e) => {
453
+ var t = V(), n = y.child(t);
454
+ x(n, () => "flex-1"), y.reset(t), y.append(e, t);
455
+ },
456
+ children: (e, t) => {
457
+ var n = H(), r = y.child(n);
458
+ h(r, () => "relative w-full max-w-[50dvh] landscape:max-w-[35dvh] shrink-0 mx-auto aspect-square bg-bg-secondary rounded-lg overflow-hidden"), y.reset(n), y.append(e, n);
459
+ },
460
+ $$slots: {
461
+ actions: !0,
462
+ default: !0
463
+ }
464
+ });
465
+ }, $ = (e) => {
466
+ {
467
+ let t = y.derived(() => y.get(K) || O());
468
+ f(e, {
469
+ get open() {
470
+ return E();
471
+ },
472
+ variant: "dialog",
473
+ get persistent() {
474
+ return y.get(t);
475
+ },
476
+ get "data-testid"() {
477
+ return o["data-testid"];
478
+ },
479
+ oncancel: Y,
480
+ children: (e, t) => {
481
+ var n = B(), r = y.first_child(n);
482
+ p(r, {});
483
+ var a = y.sibling(r, 2);
484
+ g(a, {
485
+ class: "max-w-lg",
486
+ children: (e, t) => {
487
+ var n = U(), r = y.first_child(n);
488
+ v(r, {
489
+ class: "flex items-center justify-between gap-3 border-b border-border pb-4",
490
+ children: (e, t) => {
491
+ var n = B(), r = y.first_child(n);
492
+ c(r, {
493
+ get class() {
494
+ return i.h2;
495
+ },
496
+ children: (e, t) => {
497
+ y.next();
498
+ var n = y.text();
499
+ y.template_effect(() => y.set_text(n, y.get(N).cropImageTitle)), y.append(e, n);
500
+ },
501
+ $$slots: { default: !0 }
502
+ });
503
+ var a = y.sibling(r, 2);
504
+ {
505
+ let e = y.derived(() => y.get(K) || O()), t = y.derived(() => ({ close: y.get(N).closeModal }));
506
+ w(a, {
507
+ get disabled() {
508
+ return y.get(e);
509
+ },
510
+ get labels() {
511
+ return y.get(t);
512
+ }
513
+ });
514
+ }
515
+ y.append(e, n);
516
+ },
517
+ $$slots: { default: !0 }
518
+ });
519
+ var a = y.sibling(r, 2);
520
+ m(a, {
521
+ class: "space-y-4",
522
+ children: (e, t) => {
523
+ h(e, () => "relative w-full aspect-square sm:aspect-[4/3] max-h-80 sm:max-h-96 bg-bg-secondary rounded-lg overflow-hidden");
524
+ },
525
+ $$slots: { default: !0 }
526
+ });
527
+ var o = y.sibling(a, 2);
528
+ _(o, {
529
+ class: "border-t border-border pt-4",
530
+ children: (e, t) => {
531
+ x(e, () => "");
532
+ },
533
+ $$slots: { default: !0 }
534
+ }), y.append(e, n);
535
+ },
536
+ $$slots: { default: !0 }
537
+ }), y.append(e, n);
538
+ },
539
+ $$slots: { default: !0 }
540
+ });
541
+ }
542
+ };
543
+ y.if(re, (e) => {
544
+ S.current ? e(Q) : e($, -1);
545
+ }), y.append(t, Z), y.pop();
546
+ }
547
+ //#endregion
548
+ export { W as default };
@@ -3,31 +3,31 @@ import { i as t } from "./Button-B58iYo_t.js";
3
3
  import { r as n, s as r } from "./keyboard-DhCcdIyh.js";
4
4
  import { g as i, h as a, m as o, p as s, v as c } from "./sizing-B7ixYndz.js";
5
5
  import { t as l } from "./ChevronDownOutline-D7YDiKBF.js";
6
- import { t as u } from "./Input-DCQoY3gA.js";
7
- import { a as d, c as f, d as p, f as m, i as h, l as g, p as _, r as v, s as y, t as b, u as x } from "./href-B2VQzARQ.js";
8
- import { C as S, O as C, T as w, X as T, a as E, h as D, i as O, n as k, o as A, p as j, r as M, s as ee, t as te } from "./datetime-D-9opf7E.js";
9
- import { n as ne, r as N } from "./WarningCircleIcon-BlUg0seF.js";
10
- import { t as P } from "./CalendarIcon-CziWNNkR.js";
11
- import { t as F } from "./CheckIcon-CcwbTMNG.js";
12
- import { c as I, i as L, n as R, r as re, t as ie } from "./RecommendationsRail-CScFl_At.js";
13
- import { n as z } from "./copyToClipboard-CZr5Q5pm.js";
14
- import { r as ae, s as B, t as V } from "./ScarcityBadge-CSKC_j03.js";
6
+ import { t as u } from "./Input-RNcqmqlD.js";
7
+ import { a as d, c as f, d as p, f as m, i as h, l as g, p as _, r as v, s as y, t as b, u as x } from "./href-z8jrNd6b.js";
8
+ import { C as S, O as C, T as w, X as T, a as E, h as D, i as O, n as k, o as A, p as j, r as M, s as ee, t as te } from "./datetime-BSb_4_yZ.js";
9
+ import { n as ne, r as N } from "./WarningCircleIcon-B1KX3p19.js";
10
+ import { t as P } from "./CalendarIcon-BiIhqa3c.js";
11
+ import { t as F } from "./CheckIcon-BSKGGU_P.js";
12
+ import { c as I, i as L, n as R, r as re, t as ie } from "./RecommendationsRail-CASaEhsf.js";
13
+ import { n as z } from "./copyToClipboard-G1JW70Qn.js";
14
+ import { r as ae, s as B, t as V } from "./ScarcityBadge-DnTalbV0.js";
15
15
  import { c as H, l as U, y as oe } from "./portalContainment-CeAVqIb-.js";
16
- import { F as se, I as ce, L as W, _ as le, f as ue, i as de } from "./defaultLabels-Bs-Aev13.js";
16
+ import { F as se, I as ce, L as W, _ as le, f as ue, i as de } from "./defaultLabels-B0ug1Vhr.js";
17
17
  import { r as fe, t as G } from "./Button-VUB2WJ88.js";
18
- import { n as pe, r as me } from "./widget-key-context-DaVnGw3w.js";
19
- import { t as he } from "./serverTotals-Dnf5sfs0.js";
20
- import { E as ge, S as _e, T as K } from "./api-DKPREg-N.js";
18
+ import { n as pe, r as me } from "./widget-key-context-B-rITlo1.js";
19
+ import { t as he } from "./serverTotals-KkOXYaTu.js";
20
+ import { E as ge, S as _e, T as K } from "./api-BxKvWBu_.js";
21
21
  import { n as q, t as J } from "./Heading-vOVPxhJF.js";
22
22
  import { o as ve, r as ye } from "./client-BxgiVv8K.js";
23
23
  import { t as be } from "./Grid-kuP6V0GW.js";
24
24
  import { t as Y } from "./Text-CqjLjIF8.js";
25
- import { t as xe } from "./EventCard-DLl7DOTD.js";
26
- import { a as Se } from "./navigation-DLQdkYAe.js";
27
- import { o as Ce, t as we } from "./to-event-card-props-PMXq6eMn.js";
25
+ import { t as xe } from "./EventCard-DRuU3Q_r.js";
26
+ import { a as Se } from "./navigation-6-Uc3FBI.js";
27
+ import { o as Ce, t as we } from "./to-event-card-props-PMhCTmUc.js";
28
28
  import { n as Te, t as Ee } from "./constants-lKAMwRvZ.js";
29
- import { a as De, c as Oe, d as ke, f as Ae, h as X, l as Z, m as je, n as Me, o as Ne, p as Pe, r as Fe, s as Ie, t as Le, u as Re } from "./i18n-CcmYyf6q.js";
30
- import { n as ze, r as Be, t as Ve } from "./AddOnCard-VVZpbBUD.js";
29
+ import { a as De, c as Oe, d as ke, f as Ae, h as X, l as Z, m as je, n as Me, o as Ne, p as Pe, r as Fe, s as Ie, t as Le, u as Re } from "./i18n-Bi0xxbMT.js";
30
+ import { n as ze, r as Be, t as Ve } from "./AddOnCard-DVIyT413.js";
31
31
  import "svelte/internal/disclose-version";
32
32
  import * as Q from "svelte/internal/client";
33
33
  import { SvelteSet as He } from "svelte/reactivity";
@@ -4145,4 +4145,4 @@ function Jr(e, t) {
4145
4145
  Q.reset(Ze), Q.append(e, Ze), Q.pop();
4146
4146
  }
4147
4147
  //#endregion
4148
- export { Jr as t };
4148
+ export { $t as n, Vt as r, Jr as t };
@@ -1,5 +1,5 @@
1
1
  import { f as e, p as t } from "./sizing-B7ixYndz.js";
2
- import { L as n, i as r } from "./defaultLabels-Bs-Aev13.js";
2
+ import { L as n, i as r } from "./defaultLabels-B0ug1Vhr.js";
3
3
  import { t as i } from "./Button-VUB2WJ88.js";
4
4
  import "svelte/internal/disclose-version";
5
5
  import * as a from "svelte/internal/client";