@getmicdrop/venue-calendar 4.2.4 → 4.2.5
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.
- package/dist/{ArrowLeftIcon-BGd-X_Qm.js → ArrowLeftIcon-BxKUPFOE.js} +1 -1
- package/dist/{Badge-Bv_MT-Vt.js → Badge-M6qZyfTF.js} +9 -10
- package/dist/BlockPlaceholder-CLdS2Y-c.js +62 -0
- package/dist/{Calendar-DafPX3k_.js → Calendar-DwNhbEQY.js} +290 -292
- package/dist/CalendarFoundryView-BX5mT6NY.js +23561 -0
- package/dist/{CalendarIcon-CeQ1_FWq.js → CalendarIcon-jLckZ_4N.js} +1 -1
- package/dist/{CartView-nvVA8vWk.js → CartView-B61KRyFq.js} +644 -651
- package/dist/Checkout-CoExiUba.js +1809 -0
- package/dist/{Checkout-Ow2x8cNL.js → Checkout-DlQ2x3L6.js} +97 -97
- package/dist/{CheckoutTimer-DJlt5M2b.js → CheckoutTimer-Cv9iQj2d.js} +5 -5
- package/dist/{ChevronDownIcon-y7oNyepp.js → ChevronDownIcon-DiZxxS3e.js} +1 -1
- package/dist/{ClockIcon-BGTz8dak.js → ClockIcon-BrWavNGl.js} +1 -1
- package/dist/{CloseIcon-C9SHeORJ.js → CloseIcon-Cmddp2PA.js} +1 -1
- package/dist/{CollectionView-BAIlcuqO.js → CollectionView-DpkF55yD.js} +12 -13
- package/dist/Event-CzNN2jRR.js +3040 -0
- package/dist/{EventPage-LuA-aEYZ.js → EventPage-DnKNNWk8.js} +167 -168
- package/dist/{Heading-Dfo3bjyn.js → Heading-B7VYbbfJ.js} +3 -4
- package/dist/Image-DBJAfLYe.js +81 -0
- package/dist/{phoneUtils-BJeAIGYo.js → Input-DsWjpYtc.js} +1132 -694
- package/dist/{MailIcon-xtNog-7h.js → MailIcon-gpZMGdBK.js} +1 -1
- package/dist/{Modal-CqzRblrN.js → Modal-D4AUdrz8.js} +2 -2
- package/dist/{ModalFooter-DHhBLDbO.js → ModalFooter-8Di4-qKC.js} +57 -59
- package/dist/{PasswordInput-Czm5Pe_p.js → PasswordInput-Buk60yEf.js} +4 -4
- package/dist/{ScarcityBadge-CdgQmt1D.js → ScarcityBadge-DgrS89hq.js} +4 -4
- package/dist/{SeriesPage-DfCyV1ka.js → SeriesPage-BCovOJ6a.js} +5 -5
- package/dist/{Spinner-BwiDys7C.js → Spinner-ChTN7t75.js} +3 -3
- package/dist/{Success-CsYxRkLE.js → Success-BRufJqwQ.js} +76 -77
- package/dist/{TagIcon-DJSTnymB.js → TagIcon-C0uTQgU8.js} +1 -1
- package/dist/{ViewTicketsEmbed-CKucKt-W.js → ViewTicketsEmbed-CfagtvVL.js} +59 -60
- package/dist/{WarningCircleIcon-BKSQbu7p.js → WarningCircleIcon-B2hkUrvV.js} +1 -1
- package/dist/{WarningTriIcon-DgwTwlxe.js → WarningTriIcon-Boy4IW6-.js} +1 -1
- package/dist/{__SKIP_PATHS__-BTbGfN80.js → __SKIP_PATHS__-DPK-YB-V.js} +1 -1
- package/dist/{href-DJeJpcO9.js → allowlist-Cu2kP6jt.js} +4 -21
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +123 -112
- package/dist/api/events.d.ts +21 -2
- package/dist/api/types.d.ts +17 -0
- package/dist/{browser-Um8Y6K99.js → browser-25hnscei.js} +7 -7
- package/dist/cancel-gqtaw6SK.js +59 -0
- package/dist/{colors-DeJAzg_q.js → colors-B9hMXv8l.js} +123 -113
- package/dist/{constants-OTS1wmXZ.js → constants-DBwdjnEU.js} +74 -74
- package/dist/{copyToClipboard-CRDdh3r8.js → copyToClipboard-BDa2_uNf.js} +1 -1
- package/dist/{createI18n-DBUVdZra.js → createI18n-08XGDh1_.js} +1 -1
- package/dist/{event-BrptLro8.js → event-Cp5D4ctZ.js} +1 -1
- package/dist/{event-transform-BaJ7M1DL.js → event-transform-BFJTgtU9.js} +4 -4
- package/dist/{eventStatusStream-sq6uPnMe.js → eventStatusStream-SyvhRCtk.js} +2 -2
- package/dist/{i18n-GzfxX0Ad.js → i18n-4ZGOM8hY.js} +11 -11
- package/dist/{labels-CqodQmuY.js → labels-99RC9gAv.js} +1 -1
- package/dist/{modalManager.svelte-OSPs3dSW.js → modalManager.svelte-BdNsCq6n.js} +2 -2
- package/dist/{order-totals-BAKL9cOB.js → order-totals-CQ0V7Fdc.js} +13 -15
- package/dist/{orders-NZP81zYT.js → orders-oRqSQXSf.js} +19 -20
- package/dist/{pixels-BBruZizp.js → pixels-DycN_8bu.js} +7 -8
- package/dist/{promo-DtLZRskK.js → promo-BrMcoTYh.js} +3 -3
- package/dist/{serverTotals-BO126TTd.js → serverTotals-CpRaEe9K.js} +1 -1
- package/dist/{shareCopyFeedback.svelte-BRInK1hH.js → shareCopyFeedback.svelte-D314p5oA.js} +25 -25
- package/dist/{showcase-state-options-BoJxiEsg.js → showcase-state-options-B2XfybZq.js} +1 -1
- package/dist/timezones-Cq1mLtfM.js +4170 -0
- package/dist/{to-event-card-props-CO3aPBdH.js → to-event-card-props-BNBWYYPo.js} +23 -24
- package/dist/{utils-C8GgxJMv.js → utils-CrlClQxc.js} +3 -3
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +209 -210
- package/dist/venue-calendar.iife.js +63 -64
- package/dist/venue-calendar.umd.js +59 -60
- package/package.json +220 -220
- package/dist/BlockPlaceholder-Wl39H9Z7.js +0 -52
- package/dist/Button-C4uFgl7L.js +0 -2141
- package/dist/CalendarFoundryView-COkX5oQx.js +0 -22292
- package/dist/Checkout-BphC7gak.js +0 -1807
- package/dist/CloseOutline-qpVa62mu.js +0 -13
- package/dist/CropImage-B0tj2_uN.js +0 -404
- package/dist/Event-CTaXLze_.js +0 -3034
- package/dist/Image-B3cEndLZ.js +0 -87
- package/dist/Input-iXqece97.js +0 -487
- package/dist/imageOptimizer-CB3wKJU8.js +0 -47
- package/dist/sortable.esm--ZtTTTPp.js +0 -1451
- package/dist/timezones-C5l0SSHK.js +0 -2030
- package/dist/z-index-B0Vk_Mp1.js +0 -27
- /package/dist/locales/{4.2.4 → 4.2.5}/flow/de.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/flow/es.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/flow/fr.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/flow/id.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/flow/it.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/flow/ja.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/flow/ko.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/flow/nl.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/flow/pl.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/flow/tr.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/flow/zh.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/main/de.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/main/es.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/main/fr.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/main/id.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/main/it.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/main/ja.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/main/ko.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/main/nl.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/main/pl.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/main/pt-br.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/main/tr.js +0 -0
- /package/dist/locales/{4.2.4 → 4.2.5}/main/zh.js +0 -0
package/dist/api/events.d.ts
CHANGED
|
@@ -64,7 +64,26 @@ export declare function fetchAllVenues(orgId: string | number): Promise<any[]>;
|
|
|
64
64
|
*/
|
|
65
65
|
export declare function fetchVenueEventsResult(venueId: string | number): Promise<Result<Event[]>>;
|
|
66
66
|
export declare function fetchVenueEvents(venueId: string | number): Promise<Event[]>;
|
|
67
|
-
|
|
67
|
+
/**
|
|
68
|
+
* Options for a month read.
|
|
69
|
+
*
|
|
70
|
+
* `fresh` means "this caller must not be handed an answer that was already on
|
|
71
|
+
* the wire". It exists for the live status stream: when the backend says a show
|
|
72
|
+
* was canceled or postponed, CalendarContainer force-refreshes that month, and
|
|
73
|
+
* an in-flight response may have been snapshotted by the server BEFORE the
|
|
74
|
+
* change that triggered the refresh. Joining it would leave a canceled show
|
|
75
|
+
* drawn as on-sale until the next envelope — the exact staleness
|
|
76
|
+
* CalendarContainer's own force path exists to prevent.
|
|
77
|
+
*
|
|
78
|
+
* A fresh read also REPLACES the shared entry, so anyone joining afterwards
|
|
79
|
+
* waits on the post-change request rather than the one it superseded. Two
|
|
80
|
+
* instances that both force on the same envelope still share, because both of
|
|
81
|
+
* their requests are post-change.
|
|
82
|
+
*/
|
|
83
|
+
export interface MonthReadOptions {
|
|
84
|
+
fresh?: boolean;
|
|
85
|
+
}
|
|
86
|
+
export declare function getMonthEventsResult(venueId: string | number, year: number, month: number, options?: MonthReadOptions): Promise<Result<Event[]>>;
|
|
68
87
|
export declare function getMonthEvents(venueId: string | number, year: number, month: number): Promise<Event[]>;
|
|
69
88
|
/**
|
|
70
89
|
* Get events for an organization for a specific month
|
|
@@ -74,7 +93,7 @@ export declare function getMonthEvents(venueId: string | number, year: number, m
|
|
|
74
93
|
* @param month - The month (1-12)
|
|
75
94
|
* @returns Array of events for the month
|
|
76
95
|
*/
|
|
77
|
-
export declare function getOrgMonthEventsResult(orgId: string | number, year: number, month: number): Promise<Result<Event[]>>;
|
|
96
|
+
export declare function getOrgMonthEventsResult(orgId: string | number, year: number, month: number, options?: MonthReadOptions): Promise<Result<Event[]>>;
|
|
78
97
|
export declare function getOrgMonthEvents(orgId: string | number, year: number, month: number): Promise<Event[]>;
|
|
79
98
|
/**
|
|
80
99
|
* Get series occurrences for date selector
|
package/dist/api/types.d.ts
CHANGED
|
@@ -41,6 +41,23 @@ export interface PaymentIntentResponse {
|
|
|
41
41
|
stripe_publishable_key?: string;
|
|
42
42
|
// ISO-4217 currency (Stripe returns it lowercase). Feeds the checkout totals.
|
|
43
43
|
currency?: string;
|
|
44
|
+
// The three fields the $0 path answers with. orders-service finalizes a free
|
|
45
|
+
// order in-band on this same endpoint — it generates the tickets, marks the
|
|
46
|
+
// cart completed and sends the confirmation — and reports that back here
|
|
47
|
+
// instead of on a client secret. Views/Checkout.svelte reads all three to
|
|
48
|
+
// decide whether the cart really is still free and really did finalize, so a
|
|
49
|
+
// cart that gained a chargeable amount between selection and submit is caught
|
|
50
|
+
// rather than waved through.
|
|
51
|
+
//
|
|
52
|
+
// They were undeclared, which is not a cosmetic gap: this interface has no
|
|
53
|
+
// index signature, so every one of those three reads was a hard svelte-check
|
|
54
|
+
// error against the shape the server actually sends.
|
|
55
|
+
/** False when the cart still needs a Stripe charge — i.e. it is NOT free. */
|
|
56
|
+
requires_stripe?: boolean;
|
|
57
|
+
/** 'free' on the in-band $0 finalize path. */
|
|
58
|
+
payment_type?: string;
|
|
59
|
+
/** False when the backend declined to finalize the free order. */
|
|
60
|
+
order_finalized?: boolean;
|
|
44
61
|
}
|
|
45
62
|
|
|
46
63
|
export interface CompleteReservationResponse {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-DtPi1Y-2.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Q as t, Y as n } from "./timezones-Cq1mLtfM.js";
|
|
3
3
|
import { t as r } from "./RequiredIndicator-CYcnRFsA.js";
|
|
4
4
|
import "svelte/internal/disclose-version";
|
|
5
5
|
import * as i from "svelte/internal/client";
|
|
@@ -28,7 +28,7 @@ function c(e, c) {
|
|
|
28
28
|
r(c, { get required() {
|
|
29
29
|
return m();
|
|
30
30
|
} }), i.reset(o), i.template_effect(() => {
|
|
31
|
-
i.set_attribute(o, "for", i.get(C)), i.set_class(o, 1, `${
|
|
31
|
+
i.set_attribute(o, "for", i.get(C)), i.set_class(o, 1, `${t.label} ${n.tight} ${y() ? "text-status-error-text" : ""}`), i.set_text(s, v());
|
|
32
32
|
}), i.append(e, o);
|
|
33
33
|
};
|
|
34
34
|
i.if(A, (e) => {
|
|
@@ -37,15 +37,15 @@ function c(e, c) {
|
|
|
37
37
|
var M = i.sibling(A, 2);
|
|
38
38
|
i.remove_textarea_child(M);
|
|
39
39
|
var N = i.sibling(M, 2), P = (e) => {
|
|
40
|
-
var
|
|
41
|
-
i.reset(
|
|
42
|
-
i.set_attribute(
|
|
43
|
-
}), i.append(e,
|
|
40
|
+
var n = o(), r = i.child(n, !0);
|
|
41
|
+
i.reset(n), i.template_effect(() => {
|
|
42
|
+
i.set_attribute(n, "id", i.get(w)), i.set_class(n, 1, i.clsx(t.error)), i.set_text(r, y());
|
|
43
|
+
}), i.append(e, n);
|
|
44
44
|
};
|
|
45
45
|
i.if(N, (e) => {
|
|
46
46
|
y() && e(P);
|
|
47
47
|
}), i.reset(k), i.template_effect(() => {
|
|
48
|
-
i.set_attribute(M, "id", i.get(C)), i.set_attribute(M, "name", _()), i.set_attribute(M, "placeholder", d()), i.set_attribute(M, "rows", f()), M.disabled = p(), M.readOnly = h(), i.set_attribute(M, "maxlength", b()), i.set_attribute(M, "minlength", x()), i.set_class(M, 1, `${
|
|
48
|
+
i.set_attribute(M, "id", i.get(C)), i.set_attribute(M, "name", _()), i.set_attribute(M, "placeholder", d()), i.set_attribute(M, "rows", f()), M.disabled = p(), M.readOnly = h(), i.set_attribute(M, "maxlength", b()), i.set_attribute(M, "minlength", x()), i.set_class(M, 1, `${t.sm ?? ""} w-full p-2.5 bg-bg-secondary ${n.normal ?? ""} border rounded-lg resize-y transition-colors focus:outline-hidden focus:ring-4 focus:ring-focus-ring placeholder-muted-foreground ${y() ? "border-status-error-border" : "border-stroke-primary hover:border-interactive-border focus:border-interactive-border"} ${p() ? "opacity-50 cursor-not-allowed" : ""} ${S() ?? ""}`), i.set_attribute(M, "aria-required", m()), i.set_attribute(M, "aria-invalid", !!y()), i.set_attribute(M, "aria-describedby", y() ? i.get(w) : void 0);
|
|
49
49
|
}), i.delegated("input", M, T), i.delegated("change", M, E), i.event("blur", M, D), i.event("focus", M, O), i.delegated("keydown", M, function(...e) {
|
|
50
50
|
c.onkeydown?.apply(this, e);
|
|
51
51
|
}), i.delegated("keyup", M, function(...e) {
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { J as e } from "./constants-DBwdjnEU.js";
|
|
2
|
+
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as t from "svelte/internal/client";
|
|
4
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/ExclamationTriangleOutline.svelte
|
|
5
|
+
var n = t.from_svg("<svg aria-hidden=\"true\" fill=\"none\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z\"></path></svg>");
|
|
6
|
+
function r(e, r) {
|
|
7
|
+
let i = t.prop(r, "size", 3, "24"), a = t.prop(r, "color", 3, "currentColor"), o = t.prop(r, "class", 3, "");
|
|
8
|
+
var s = n();
|
|
9
|
+
t.template_effect(() => {
|
|
10
|
+
t.set_class(s, 0, t.clsx(o())), t.set_attribute(s, "width", i()), t.set_attribute(s, "height", i()), t.set_attribute(s, "stroke", a());
|
|
11
|
+
}), t.append(e, s);
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/CheckCircleIcon.svelte
|
|
15
|
+
var i = t.from_svg("<path d=\"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z\"></path>"), a = t.from_svg("<polyline points=\"88 136 112 160 168 104\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></polyline><circle cx=\"128\" cy=\"128\" r=\"96\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></circle>", 1), o = t.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
|
|
16
|
+
function s(n, r) {
|
|
17
|
+
t.push(r, !0);
|
|
18
|
+
let s = t.prop(r, "size", 3, "24"), c = t.prop(r, "color", 3, "currentColor"), l = t.prop(r, "class", 3, ""), u = e(), d = t.derived(() => r.weight ?? u?.weight ?? "regular");
|
|
19
|
+
var f = o();
|
|
20
|
+
let p;
|
|
21
|
+
var m = t.child(f), h = (e) => {
|
|
22
|
+
var n = i();
|
|
23
|
+
t.append(e, n);
|
|
24
|
+
}, g = (e) => {
|
|
25
|
+
var n = a();
|
|
26
|
+
t.next(), t.append(e, n);
|
|
27
|
+
};
|
|
28
|
+
t.if(m, (e) => {
|
|
29
|
+
t.get(d) === "fill" ? e(h) : e(g, -1);
|
|
30
|
+
}), t.reset(f), t.template_effect(() => {
|
|
31
|
+
t.set_class(f, 0, t.clsx(l())), t.set_attribute(f, "width", s()), t.set_attribute(f, "height", s()), p = t.set_style(f, "", p, { color: c() === "currentColor" ? void 0 : c() });
|
|
32
|
+
}), t.append(n, f), t.pop();
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ViewOffIcon.svelte
|
|
36
|
+
var c = t.from_svg("<path d=\"M96.68,57.87a4,4,0,0,1,2.08-6.6A130.13,130.13,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41a8,8,0,0,1,0,6.5c-.35.79-8.82,19.57-27.65,38.4q-4.28,4.26-8.79,8.07a4,4,0,0,1-5.55-.36ZM213.92,210.62a8,8,0,1,1-11.84,10.76L180,197.13A127.21,127.21,0,0,1,128,208c-34.88,0-66.57-13.26-91.66-38.34C17.51,150.83,9,132.05,8.69,131.26a8,8,0,0,1,0-6.5C9,124,17.51,105.18,36.34,86.35a135,135,0,0,1,25-19.78L42.08,45.38A8,8,0,1,1,53.92,34.62Zm-65.49-48.25-52.69-58a40,40,0,0,0,52.69,58Z\"></path>"), l = t.from_svg("<line x1=\"48\" y1=\"40\" x2=\"208\" y2=\"216\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line><path d=\"M154.91,157.6a40,40,0,0,1-53.82-59.2\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path><path d=\"M135.53,88.71a40,40,0,0,1,32.3,35.53\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path><path d=\"M208.61,169.1C230.41,149.58,240,128,240,128S208,56,128,56a126,126,0,0,0-20.68,1.68\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path><path d=\"M74,68.6C33.23,89.24,16,128,16,128s32,72,112,72a118.05,118.05,0,0,0,54-12.6\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path>", 1), u = t.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
|
|
37
|
+
function d(n, r) {
|
|
38
|
+
t.push(r, !0);
|
|
39
|
+
let i = t.prop(r, "size", 3, "24"), a = t.prop(r, "color", 3, "currentColor"), o = t.prop(r, "class", 3, ""), s = e(), d = t.derived(() => r.weight ?? s?.weight ?? "regular");
|
|
40
|
+
var f = u();
|
|
41
|
+
let p;
|
|
42
|
+
var m = t.child(f), h = (e) => {
|
|
43
|
+
var n = c();
|
|
44
|
+
t.append(e, n);
|
|
45
|
+
}, g = (e) => {
|
|
46
|
+
var n = l();
|
|
47
|
+
t.next(4), t.append(e, n);
|
|
48
|
+
};
|
|
49
|
+
t.if(m, (e) => {
|
|
50
|
+
t.get(d) === "fill" ? e(h) : e(g, -1);
|
|
51
|
+
}), t.reset(f), t.template_effect(() => {
|
|
52
|
+
t.set_class(f, 0, t.clsx(o())), t.set_attribute(f, "width", i()), t.set_attribute(f, "height", i()), p = t.set_style(f, "", p, { color: a() === "currentColor" ? void 0 : a() });
|
|
53
|
+
}), t.append(n, f), t.pop();
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/assets/svg/cancel.svg
|
|
57
|
+
var f = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='cancel'%3e%3cpath%20id='Vector'%20d='M11.0846%202.91797L2.91797%2011.0846M2.91797%202.91797L11.0846%2011.0846'%20stroke='%23FF6666'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e";
|
|
58
|
+
//#endregion
|
|
59
|
+
export { r as i, d as n, s as r, f as t };
|