@getmicdrop/venue-calendar 4.3.138 → 4.3.139
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/README.md +895 -840
- package/dist/AddOnCard-Dlt_4lut.js +475 -0
- package/dist/{Button-B_gbGd63.js → Button-Ch5dRGa2.js} +1 -1
- package/dist/{Button-B1cBhdtC.js → Button-DpeQSoQ7.js} +58 -45
- package/dist/Calendar-CNWS2xiR.js +396 -0
- package/dist/CalendarFoundryView-B5puOxH5.js +16431 -0
- package/dist/{ChartBlock-DcsCXfX8.js → ChartBlock-vihMKVdW.js} +2 -2
- package/dist/Checkout-B2FvX6Af.js +1070 -0
- package/dist/Checkout-y0x-v-XH.js +1995 -0
- package/dist/{ChevronDownOutline-kFgRY2cg.js → CloseOutline-Bh9UO94v.js} +2 -2
- package/dist/{CollectionView-C0vDg5oJ.js → CollectionView-CcLlV-1f.js} +22 -24
- package/dist/{CropImage-BWYeQXXA.js → CropImage-DqLAGy5s.js} +6 -6
- package/dist/{DatePicker-v-4ijT8N.js → DatePicker-D20Te0JY.js} +222 -215
- package/dist/{Event-vlu8IAxh.js → Event-DoIU0o6C.js} +799 -796
- package/dist/{EventCard-puoh3xag.js → EventCard-B8MYLyIW.js} +1 -1
- package/dist/EventPage-DM4tjCcL.js +1298 -0
- package/dist/{FilterChipGroup-DUGvOaRI.js → FilterChipGroup-BCjc7-pE.js} +1 -1
- package/dist/{ImageUploader-CKrf5amy.js → ImageUploader-BzxKIyLN.js} +324 -375
- package/dist/{Input-BQk4itex.js → Input-Bp5EgI1F.js} +5 -3
- package/dist/Modal-C6EXgkuF.js +159 -0
- package/dist/{ModalFooter-gFaDKsfj.js → ModalFooter-C4TD3-zP.js} +1 -1
- package/dist/{ModalTitle-CS5AGwrU.js → ModalTitle-BP4Bm3sA.js} +1 -1
- package/dist/{PasswordInput-C65GqxdF.js → PasswordInput-BlzSrkPs.js} +1 -1
- package/dist/{PhoneInput-Dj1I3bEn.js → PhoneInput-_ByjRGQ0.js} +2 -2
- package/dist/{RecommendationsRail-DC5qX1ei.js → RecommendationsRail-BDNnbL-p.js} +53 -50
- package/dist/{Search-BE64QcmK.js → Search-vhGEpog6.js} +1 -1
- package/dist/SeriesPage-YE8czX1M.js +32 -0
- package/dist/{SkeletonLoader-DfW0N9R3.js → SkeletonLoader-Beh2izdy.js} +1 -1
- package/dist/Spinner-DgubkWKo.js +88 -0
- package/dist/{Success-D3CrUeka.js → Success-CN5HB8gN.js} +164 -166
- package/dist/{TimePicker-HYzPI_Dc.js → TimePicker-BDuy9Ap8.js} +1 -1
- package/dist/{ViewTicketsEmbed-DzUCgtA3.js → ViewTicketsEmbed-DvoMIiKJ.js} +9 -10
- package/dist/{address-field-BwGHcMKY.js → address-field-DOalICpt.js} +2 -2
- package/dist/{allowlist-Bt1BHhNd.js → allowlist-DinkGF2L.js} +77 -68
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +320 -297
- package/dist/api/client.d.ts +14 -53
- package/dist/api/events.d.ts +15 -1
- package/dist/api/result.d.ts +9 -0
- package/dist/{api-CRHFSJDI.js → api-CsAx0rmV.js} +150 -145
- package/dist/{avatar-picker-field-CSF5okeM.js → avatar-picker-field-CV4vRxTB.js} +14 -14
- package/dist/{checkoutState-BDNjJRMG.js → checkoutState-DSx7g3Vy.js} +12 -21
- package/dist/{client-BIN_q-of.js → client-SaDt6559.js} +18 -12
- package/dist/{constants-DrFV2oht.js → constants-sRRJh0u-.js} +1 -1
- package/dist/{date-field-3tgOYbzF.js → date-field-DylJx0y7.js} +9 -9
- package/dist/{date-range-field-D0Aq9me9.js → date-range-field-BOV1V2ab.js} +7 -7
- package/dist/{de-CUrE_4a4.js → de-CzkX3H3B.js} +1 -0
- package/dist/{defaultLabels-CybwJCNn.js → defaultLabels-DLK6rq4q.js} +1 -0
- package/dist/{defaults-B5wyre5O.js → defaults-Cbuin1WS.js} +2 -3
- package/dist/{es-B2-z2Kft.js → es-BOLzv8eD.js} +1 -0
- package/dist/{event-CEg17hts.js → event-ClsLWtR0.js} +1 -1
- package/dist/{event-transform-DqFigNQg.js → event-transform-Cs63X0hI.js} +42 -42
- package/dist/{eventStatusStream-DK5fWCTB.js → eventStatusStream-BAh5nJP2.js} +1 -1
- package/dist/{field-rules-CKFFB16Q.js → field-rules-Yb2JY1qT.js} +1 -1
- package/dist/{file-field-2mPz4Da-.js → file-field-Dwo80kDg.js} +4 -4
- package/dist/format-CehusdDg.js +1718 -0
- package/dist/{formatters-CzKNRUwz.js → formatters-DUWbI_Eg.js} +25 -35
- package/dist/{fr-CiePVIlj.js → fr-DYTIBBXo.js} +1 -0
- package/dist/{href-DpbLXQ4c.js → href-BXhNawil.js} +1 -1
- package/dist/i18n-BNF6a-QA.js +720 -0
- package/dist/i18n-F_QOaHVh.js +26 -0
- package/dist/{id-Ttw95_7t.js → id-CIyIkGhH.js} +1 -0
- package/dist/{image-field-B8x0WQ2j.js → image-field-DeLzsJlz.js} +2 -2
- package/dist/{it-CBbXcFY1.js → it-CF4Db_nK.js} +1 -0
- package/dist/{ja-B2Tag7J3.js → ja-5-7WNHD1.js} +1 -0
- package/dist/{ko-CcTn4lAi.js → ko-huIzHR3W.js} +1 -0
- package/dist/locales/4.3.139/main/de.js +1 -0
- package/dist/locales/4.3.139/main/es.js +1 -0
- package/dist/locales/4.3.139/main/fr.js +1 -0
- package/dist/locales/4.3.139/main/id.js +1 -0
- package/dist/locales/4.3.139/main/it.js +1 -0
- package/dist/locales/4.3.139/main/ja.js +1 -0
- package/dist/locales/4.3.139/main/ko.js +1 -0
- package/dist/locales/4.3.139/main/nl.js +1 -0
- package/dist/locales/4.3.139/main/pl.js +1 -0
- package/dist/locales/4.3.139/main/pt-br.js +1 -0
- package/dist/locales/4.3.139/main/tr.js +1 -0
- package/dist/locales/4.3.139/main/zh.js +1 -0
- package/dist/look-island.svelte-D87MvHNy.js +1296 -0
- package/dist/{look-names-JI6GE-Zj.js → look-names-B9MywEzX.js} +68 -58
- package/dist/looks/4.3.139/AddOnCard-CKdkGcHH.js +1 -0
- package/dist/looks/4.3.139/Checkout-D7CaFYTE.js +1 -0
- package/dist/looks/4.3.139/Checkout-DuP46PMi.js +3 -0
- package/dist/looks/4.3.139/CollectionView-CWm57JCx.js +1 -0
- package/dist/looks/4.3.139/Event-ePupb4qY.js +8 -0
- package/dist/looks/4.3.139/EventPage-CgexXhEU.js +1 -0
- package/dist/looks/4.3.139/RecommendationsRail-Bz-Mj_r4.js +2 -0
- package/dist/looks/4.3.139/SeriesPage-DI2uFF0Y.js +1 -0
- package/dist/looks/4.3.139/Success-BkMzmgmc.js +3 -0
- package/dist/looks/4.3.139/ViewTicketsEmbed-CbEJwRry.js +1 -0
- package/dist/looks/4.3.139/_vc-foundry-calendar-stub-BVbAFEK2.js +1 -0
- package/dist/looks/4.3.139/buyerEmail-CqCYa9UL.js +1 -0
- package/dist/looks/4.3.139/constants-CU_ZgyQu.js +3 -0
- package/dist/looks/4.3.139/defaults-B46SFFK4.js +2 -0
- package/dist/looks/4.3.139/dist-BWGSqtWN.js +1 -0
- package/dist/looks/4.3.139/eventStatusStream-CW5lJwsa.js +10 -0
- package/dist/looks/4.3.139/first-core-DrYq9wBy.js +151 -0
- package/dist/looks/4.3.139/first-mount.svelte-DFSLaJWm.js +1 -0
- package/dist/looks/4.3.139/first-seo-DvHuCXT6.js +1 -0
- package/dist/looks/4.3.139/first.js +1 -0
- package/dist/looks/4.3.139/full-widget-DDBk3i4U.js +2 -0
- package/dist/looks/4.3.139/gate-password-cache-D4Zls6QM.js +1 -0
- package/dist/looks/4.3.139/i18n-DRaFNYsQ.js +1 -0
- package/dist/looks/4.3.139/listing-BSaRTkxW.js +1 -0
- package/dist/looks/4.3.139/loaders.runtime-BNG8O6-A.js +1 -0
- package/dist/looks/4.3.139/looks.js +1 -0
- package/dist/looks/4.3.139/modalManager.svelte-CqQWYz9Y.js +1 -0
- package/dist/looks/4.3.139/rolldown-runtime-4tVxZq34.js +1 -0
- package/dist/looks/4.3.139/serverTotals-Bu1fAPLB.js +1 -0
- package/dist/looks/4.3.139/showcase-state-options-CpCMAKVD.js +1 -0
- package/dist/looks/4.3.139/utils-pGRhH4A-.js +1 -0
- package/dist/{media-field-HieD0ye0.js → media-field-PW8ye6EL.js} +2 -2
- package/dist/modalManager.svelte-BHE0t9q3.js +79 -0
- package/dist/{multiselect-field-CJ4lUJyS.js → multiselect-field-CmocFs5f.js} +2 -2
- package/dist/navigation-B8rkS2On.js +348 -0
- package/dist/{nl-DeIqgjIs.js → nl-B1dv1lqk.js} +1 -0
- package/dist/{number-field-D5GkkGLB.js → number-field-CUD936Ai.js} +3 -3
- package/dist/{numeric-filter-field-CRWZFu_P.js → numeric-filter-field-BmgSYhOt.js} +3 -3
- package/dist/{password-field-DdOHXEOo.js → password-field-BfvcZUi_.js} +1 -1
- package/dist/{phone-field-BaYmp56f.js → phone-field-DO0U_YZ6.js} +17 -18
- package/dist/{pixels-BXXzmoCb.js → pixels-ipedGW6i.js} +7 -7
- package/dist/{pl-Bm2FcD5y.js → pl-DLlM_IPo.js} +1 -0
- package/dist/{pt-br-XS1Lsa6z.js → pt-br-8V3mf7pu.js} +1 -0
- package/dist/repeating-field-BwtJ6VS1.js +488 -0
- package/dist/{richtext-field-KmUytgBW.js → richtext-field-DvLCxPvq.js} +2 -2
- package/dist/{datetime-BlEsN_-8.js → scarcity-DfQvyhJP.js} +74 -85
- package/dist/{searchable-select-field-DettZRav.js → searchable-select-field-zuIqfoQM.js} +17 -17
- package/dist/{select-field-Wc4gAtou.js → select-field-DNNN-a9q.js} +6 -6
- package/dist/seo/HostSeoController.d.ts +13 -0
- package/dist/seo/seo.cjs +1 -1
- package/dist/seo/seo.mjs +18 -11
- package/dist/{serverTotals-COsx7Mc5.js → serverTotals-BprgDwOw.js} +1 -1
- package/dist/{showcase-state-options-CHGUaZtl.js → showcase-state-options-bKRf48yz.js} +2 -2
- package/dist/{time-field-CnxZcziR.js → time-field-DmPCoppV.js} +2 -2
- package/dist/{to-event-card-props-C9v9dspT.js → to-event-card-props-KVcCJ2JF.js} +34 -34
- package/dist/{tr-zKAbMfgi.js → tr-DiUEV65j.js} +1 -0
- package/dist/{tree-picker-field-aqux58EQ.js → tree-picker-field-BJwSFAqm.js} +8 -8
- package/dist/types/index.d.ts +3 -0
- package/dist/{utils-AIszIHUb.js → utils-x8YXRKvr.js} +12 -12
- package/dist/venue-BjLCg-PW.js +38 -0
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +1655 -1539
- package/dist/venue-calendar.iife.js +1 -54
- package/dist/venue-calendar.umd.js +69 -63
- package/dist/{widget-key-context-BrWW0fyM.js → widget-key-context-dHM9FiuJ.js} +8 -37
- package/dist/{zh-DHfgJplH.js → zh-Cej2EPQt.js} +1 -0
- package/package.json +2 -2
- package/src/lib/constants/scarcity.ts +1 -2
- package/dist/AddOnCard-DEAC26HA.js +0 -348
- package/dist/BlockPlaceholder-BKfoE795.js +0 -59
- package/dist/Calendar-9xskvKUf.js +0 -395
- package/dist/CalendarFoundryView-DbxZNmY7.js +0 -16356
- package/dist/CartView-DMINN6bY.js +0 -2200
- package/dist/Checkbox-sObkYRdj.js +0 -60
- package/dist/Checkout-H9RGBU9D.js +0 -1071
- package/dist/Checkout-VnochAZE.js +0 -1967
- package/dist/CheckoutTimer-mjcYR3XU.js +0 -42
- package/dist/EventPage-DycxjX5Z.js +0 -1301
- package/dist/Modal-DOpDiAwN.js +0 -102
- package/dist/ScarcityBadge-BAaV2CIY.js +0 -141
- package/dist/SeriesPage-Cx89s2B6.js +0 -34
- package/dist/Skeleton-B6qB_udJ.js +0 -31
- package/dist/Spinner-Bj4dr9kO.js +0 -19
- package/dist/Textarea-BDcuBI13.js +0 -72
- package/dist/__SKIP_NAVIGATION__-Znm_vYcG.js +0 -5
- package/dist/__SKIP_PATHS__-Bzzrca_a.js +0 -5
- package/dist/calendar-Cdu8fCIt.js +0 -111
- package/dist/cta-qbcIt5Gh.js +0 -116
- package/dist/format-CypC4vWs.js +0 -1587
- package/dist/heic-to-BoLfsr3l.js +0 -70
- package/dist/i18n-B_TWnExv.js +0 -495
- package/dist/i18n-CSaUFnlD.js +0 -26
- package/dist/instant-BkZCSGDm.js +0 -162
- package/dist/labels-D8LN8lY7.js +0 -227
- package/dist/locales/4.3.138/main/de.js +0 -1
- package/dist/locales/4.3.138/main/es.js +0 -1
- package/dist/locales/4.3.138/main/fr.js +0 -1
- package/dist/locales/4.3.138/main/id.js +0 -1
- package/dist/locales/4.3.138/main/it.js +0 -1
- package/dist/locales/4.3.138/main/ja.js +0 -1
- package/dist/locales/4.3.138/main/ko.js +0 -1
- package/dist/locales/4.3.138/main/nl.js +0 -1
- package/dist/locales/4.3.138/main/pl.js +0 -1
- package/dist/locales/4.3.138/main/pt-br.js +0 -1
- package/dist/locales/4.3.138/main/tr.js +0 -1
- package/dist/locales/4.3.138/main/zh.js +0 -1
- package/dist/look-island.svelte-B7UH_QVv.js +0 -1270
- package/dist/looks/4.3.138/looks.js +0 -248
- package/dist/modalManager.svelte-BvyrTI6p.js +0 -51
- package/dist/navigation-DpqP-ahJ.js +0 -241
- package/dist/repeating-field-B4OhsaGB.js +0 -488
- package/dist/venue-DLkL7xdj.js +0 -12
- /package/dist/checkout-libs/{4.3.138 → 4.3.139}/phone.js +0 -0
- /package/dist/checkout-libs/{4.3.138 → 4.3.139}/qrcode.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/de.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/es.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/id.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/it.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/zh.js +0 -0
- /package/dist/looks/{4.3.138 → 4.3.139}/micdrop-wordmark-BYMG6vLR.svg +0 -0
- /package/dist/looks/{4.3.138 → 4.3.139}/microphone-Ccv4r-kd.webp +0 -0
- /package/dist/looks/{4.3.138 → 4.3.139}/superuser-CZF6a5gO.webp +0 -0
- /package/dist/looks/{4.3.138 → 4.3.139}/treasury-DUE7lZzT.webp +0 -0
- /package/dist/looks/{4.3.138 → 4.3.139}/user-image-yuS4errP.svg +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./labels-CjSrA6gx.js";
|
|
2
2
|
import { t } from "./logger-DM8WW61-.js";
|
|
3
|
-
import {
|
|
3
|
+
import { B as n, W as r } from "./format-CehusdDg.js";
|
|
4
4
|
import { t as i } from "./AppError-t1LnBwj_.js";
|
|
5
5
|
import { n as a, t as o } from "./normalizers-WYh8Nr3V.js";
|
|
6
|
-
import { C as s, D as c, E as l, S as u, c as d, n as f, r as p, s as m } from "./client-
|
|
6
|
+
import { C as s, D as c, E as l, S as u, c as d, n as f, r as p, s as m } from "./client-SaDt6559.js";
|
|
7
7
|
import * as h from "svelte/internal/client";
|
|
8
8
|
import { getContext as ee } from "svelte";
|
|
9
9
|
// node_modules/@getmicdrop/svelte-components/dist/errors/classes/ApiError.js
|
|
@@ -609,36 +609,7 @@ async function Ke(e, t, n) {
|
|
|
609
609
|
return Z.error("getCartByUUID error:", e), null;
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
async function qe(e, t, n) {
|
|
613
|
-
try {
|
|
614
|
-
let r = {};
|
|
615
|
-
for (let [e, n] of Object.entries(t)) {
|
|
616
|
-
let t = typeof e == "number" ? e : parseInt(e, 10);
|
|
617
|
-
!Number.isNaN(t) && n > 0 && (r[t] = n);
|
|
618
|
-
}
|
|
619
|
-
let i = {};
|
|
620
|
-
if (n) for (let [e, t] of Object.entries(n)) {
|
|
621
|
-
let n = typeof e == "number" ? e : parseInt(e, 10);
|
|
622
|
-
!Number.isNaN(n) && t > 0 && (i[n] = t);
|
|
623
|
-
}
|
|
624
|
-
let a = await fetch(`${m()}/cart/${e}`, {
|
|
625
|
-
method: "PUT",
|
|
626
|
-
headers: { "Content-Type": "application/json" },
|
|
627
|
-
body: JSON.stringify({
|
|
628
|
-
quantities: r,
|
|
629
|
-
...Object.keys(i).length > 0 ? { donationAmounts: i } : {}
|
|
630
|
-
})
|
|
631
|
-
});
|
|
632
|
-
if (!a.ok) {
|
|
633
|
-
let e = await a.json().catch(() => ({}));
|
|
634
|
-
return Z.error("Cart update failed:", e), !1;
|
|
635
|
-
}
|
|
636
|
-
return !0;
|
|
637
|
-
} catch (e) {
|
|
638
|
-
return Z.error("updateCartQuantities error:", e), !1;
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
async function Je(e, t = "", n) {
|
|
612
|
+
async function qe(e, t = "", n) {
|
|
642
613
|
try {
|
|
643
614
|
let r = await p(`${d()}/orders/${e}/refund`, { message: t }, { widgetKey: n?.widgetKey });
|
|
644
615
|
return r.success ? { success: !0 } : (Z.error("Refund request failed:", r.error), {
|
|
@@ -652,7 +623,7 @@ async function Je(e, t = "", n) {
|
|
|
652
623
|
};
|
|
653
624
|
}
|
|
654
625
|
}
|
|
655
|
-
async function
|
|
626
|
+
async function Je(e, t, n, r) {
|
|
656
627
|
let i = X(n);
|
|
657
628
|
try {
|
|
658
629
|
let n = await p(`${m()}/validatePaymentIntent/${e}`, {
|
|
@@ -680,7 +651,7 @@ async function Ye(e, t, n, r) {
|
|
|
680
651
|
return Z.error("validatePaymentIntent error:", e), null;
|
|
681
652
|
}
|
|
682
653
|
}
|
|
683
|
-
async function
|
|
654
|
+
async function Ye(e, t) {
|
|
684
655
|
try {
|
|
685
656
|
let n = await p(`${d()}/orders/extend-session`, { orderUuid: e }, { widgetKey: t?.widgetKey });
|
|
686
657
|
if (!n.success) return {
|
|
@@ -701,7 +672,7 @@ async function Xe(e, t) {
|
|
|
701
672
|
};
|
|
702
673
|
}
|
|
703
674
|
}
|
|
704
|
-
async function
|
|
675
|
+
async function Xe(e, t) {
|
|
705
676
|
try {
|
|
706
677
|
let n = await f(`${d()}/orders/session/${e}`, { widgetKey: t?.widgetKey });
|
|
707
678
|
if (!n.success) return {
|
|
@@ -723,7 +694,7 @@ async function Ze(e, t) {
|
|
|
723
694
|
}
|
|
724
695
|
// src/lib/widget-key-context.ts
|
|
725
696
|
var $ = Symbol("micdrop-widget-key");
|
|
726
|
-
function
|
|
697
|
+
function Ze() {
|
|
727
698
|
return ee($) || void 0;
|
|
728
699
|
}
|
|
729
|
-
export {
|
|
700
|
+
export { ae as A, R as C, ue as D, de as E, v as M, y as N, fe as O, g as P, V as S, k as T, Ae as _, Ke as a, Ie as b, Ge as c, He as d, q as f, Oe as g, je as h, Ye as i, ie as j, he as k, Je as l, Ne as m, Ze as n, Xe as o, Me as p, Ue as r, qe as s, $ as t, X as u, Pe as v, me as w, ke as x, Fe as y };
|
|
@@ -105,6 +105,7 @@ var e = {
|
|
|
105
105
|
networkErrorCancel: "取消",
|
|
106
106
|
retryingConnection: "正在重新连接",
|
|
107
107
|
couldNotLoadEvents: "无法加载活动。请检查您的网络连接后重试",
|
|
108
|
+
calendarNotEnabled: "此日历未对本网站启用",
|
|
108
109
|
offlineMessage: "您目前处于离线状态。重新连接前,部分功能可能无法使用",
|
|
109
110
|
poweredBy: "技术支持",
|
|
110
111
|
micdropAriaLabel: "MicDrop - 活动票务平台",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getmicdrop/venue-calendar",
|
|
3
3
|
"_version_comment": "4.1.55 was the last PUBLISHED version, and the tree carried 36 commits npm's 4.1.55 does not have — including the gate-password security fix and four money fixes. A filename must never reuse a version npm has taken (jsDelivr/unpkg cache the FIRST bytes they see under `@4.1.55` forever, so republishing that number ships the old widget to every venue that pinned it). Bumped to 4.2.0 here, BEFORE anything is built for publish. `npm run release:preflight` refuses to proceed when this number already exists in the registry.",
|
|
4
|
-
"version": "4.3.
|
|
4
|
+
"version": "4.3.139",
|
|
5
5
|
"description": "A customizable Svelte calendar component for displaying comedy events",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./dist/types/index.d.ts",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"_devDependencies_pin_comment": "Three EXACT pins in here are load-bearing and must not be re-caretted by a dependency bot. (1) `@getmicdrop/svelte-components` — the ES/UMD/IIFE builds do NOT externalize SC, so it is COMPILED INTO every shipped artifact. RESTORED TO AN EXACT PIN 2026-08-23, having drifted back to a caret at some point between 6.24.311 and 6.24.316 — exactly the re-caretting this note warns about, which is worth knowing recurs. Under a caretted range like `^6.24.311` the SC version a venue's browser executes is whatever the range floats to on the publish machine at publish time, which is not recorded anywhere and is not reproducible after the fact; the `overrides` block below cannot help (it only ever covered esbuild, and consumers ignore a dependency's overrides entirely). Pinned exact so the artifact and the manifest agree, and vite.config.lib.js stamps the resolved version into the bundle as __VC_SC_VERSION__ so a venue's devtools can answer 'which SC is this?'. (2) `svelte` — the compiler whose private internal/client calls the pre-compiled dist binds to. `^5.56.9` let the compiler move under a peer range that stayed still; see _peerDependencies_comment. (3) `@stripe/stripe-js` in dependencies — see its own note there.",
|
|
156
156
|
"devDependencies": {
|
|
157
157
|
"@eslint/js": "^10.0.1",
|
|
158
|
-
"@getmicdrop/svelte-components": "6.24.
|
|
158
|
+
"@getmicdrop/svelte-components": "6.24.445",
|
|
159
159
|
"@playwright/test": "^1.60.0",
|
|
160
160
|
"@size-limit/file": "^14.3.0",
|
|
161
161
|
"@sveltejs/adapter-auto": "^7.0.1",
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
* claim in venue-calendar routes here: the browse grid
|
|
6
6
|
* (browse-widgets/status.ts), the event page + booking widget + ticket cards
|
|
7
7
|
* (public-calendar-flow/getScarcityLevel adapts this function's enum to its
|
|
8
|
-
* own 'none'/'sold_out' shape), the <ScarcityBadge
|
|
9
|
-
* TicketBlock.
|
|
8
|
+
* own 'none'/'sold_out' shape), and the <ScarcityBadge>.
|
|
10
9
|
*
|
|
11
10
|
* Tiers use a SLIDING percent threshold so the claim scales with venue size
|
|
12
11
|
* (Peet UX ruling 2026-07-07 — grow the canon, don't flatten to a flat
|
|
@@ -1,348 +0,0 @@
|
|
|
1
|
-
import { i as e } from "./Button-B1cBhdtC.js";
|
|
2
|
-
import { r as t } from "./WarningCircleIcon-jC3nXehu.js";
|
|
3
|
-
import { r as n, s as r, t as i } from "./ScarcityBadge-BAaV2CIY.js";
|
|
4
|
-
import { d as a, v as o, x as s } from "./instant-BkZCSGDm.js";
|
|
5
|
-
import { l as c, u as l } from "./formatters-CzKNRUwz.js";
|
|
6
|
-
import { t as u } from "./Button-B_gbGd63.js";
|
|
7
|
-
import { n as d } from "./constants-DrFV2oht.js";
|
|
8
|
-
import { p as f } from "./datetime-BlEsN_-8.js";
|
|
9
|
-
import { t as p } from "./labels-D8LN8lY7.js";
|
|
10
|
-
import { i as m, r as h, u as g } from "./i18n-B_TWnExv.js";
|
|
11
|
-
import "svelte/internal/disclose-version";
|
|
12
|
-
import * as _ from "svelte/internal/client";
|
|
13
|
-
var v = .029, y = .3;
|
|
14
|
-
function b(e) {
|
|
15
|
-
return e.discountedPrice ?? e.price;
|
|
16
|
-
}
|
|
17
|
-
function x(e, t = {}) {
|
|
18
|
-
if (e <= 0) return 0;
|
|
19
|
-
let n = t.serviceFeePercentage ?? 5, r = (t.serviceFeeCents ?? 150) / 100;
|
|
20
|
-
switch (c(t.serviceFeeChargeType)) {
|
|
21
|
-
case "percentage": return l(n / 100 * e);
|
|
22
|
-
case "fixed": return l(r);
|
|
23
|
-
default: return l(n / 100 * e + r);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
function S(e, t) {
|
|
27
|
-
return (v * (e + t) + y) / .971;
|
|
28
|
-
}
|
|
29
|
-
function C(e = {}) {
|
|
30
|
-
return e.absorbServiceFee === !0;
|
|
31
|
-
}
|
|
32
|
-
function w(e) {
|
|
33
|
-
return l(e.serviceFee + e.cardProcessing);
|
|
34
|
-
}
|
|
35
|
-
function T(e, t = {}) {
|
|
36
|
-
let n = l(e.reduce((e, t) => e + b(t) * t.quantity, 0));
|
|
37
|
-
if (n <= 0 || C(t)) return {
|
|
38
|
-
face: n,
|
|
39
|
-
serviceFee: 0,
|
|
40
|
-
cardProcessing: 0,
|
|
41
|
-
total: n
|
|
42
|
-
};
|
|
43
|
-
let r = e.reduce((e, n) => e + Math.min(x(b(n), t), 10) * n.quantity, 0), i = S(n, r), a = l(i), o = l(r);
|
|
44
|
-
return {
|
|
45
|
-
face: n,
|
|
46
|
-
serviceFee: o,
|
|
47
|
-
cardProcessing: a,
|
|
48
|
-
total: l(n + o + a)
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
// src/lib/public-calendar-flow/order-totals.ts
|
|
52
|
-
function E(e, t, r, i, c, u) {
|
|
53
|
-
let d = [], f = 0, p = 0, m = 0, h = !1;
|
|
54
|
-
for (let a of e) {
|
|
55
|
-
let e = t[a.id] ?? 0;
|
|
56
|
-
if (e <= 0) continue;
|
|
57
|
-
let o = a.isDonation || a.ticketType === 2, c = o ? parseFloat(r[a.id]) || 0 : a.price;
|
|
58
|
-
if (c == null || !Number.isFinite(c)) {
|
|
59
|
-
d.push({
|
|
60
|
-
ticketId: s(a.id),
|
|
61
|
-
lineKey: `t:${a.id}`,
|
|
62
|
-
kind: "ticket",
|
|
63
|
-
ticketName: a.name,
|
|
64
|
-
quantity: e,
|
|
65
|
-
unitPrice: null,
|
|
66
|
-
fee: a.fee,
|
|
67
|
-
subtotal: null,
|
|
68
|
-
isDonation: !1
|
|
69
|
-
}), h = !0;
|
|
70
|
-
continue;
|
|
71
|
-
}
|
|
72
|
-
let l = c, u = o ? 0 : a.fee, g = 0;
|
|
73
|
-
if (i.isApplied && i.discountAmount > 0 && !o && n(i.discountTicketIds, a.id)) {
|
|
74
|
-
if (i.discountType === "%") {
|
|
75
|
-
let e = i.discountAmount;
|
|
76
|
-
g = Math.min(l, e / 100 * l);
|
|
77
|
-
} else i.discountType === "$" && (m += l * e);
|
|
78
|
-
}
|
|
79
|
-
let _ = l * e;
|
|
80
|
-
d.push({
|
|
81
|
-
ticketId: s(a.id),
|
|
82
|
-
lineKey: `t:${a.id}`,
|
|
83
|
-
kind: "ticket",
|
|
84
|
-
ticketName: a.name,
|
|
85
|
-
quantity: e,
|
|
86
|
-
unitPrice: l,
|
|
87
|
-
fee: u,
|
|
88
|
-
subtotal: _,
|
|
89
|
-
isDonation: o
|
|
90
|
-
}), f += _, p += g * e;
|
|
91
|
-
}
|
|
92
|
-
for (let e of u ?? []) {
|
|
93
|
-
let t = e.quantity;
|
|
94
|
-
if (t <= 0) continue;
|
|
95
|
-
let n = a(o(e.addOn.priceCents));
|
|
96
|
-
d.push({
|
|
97
|
-
ticketId: s(e.addOn.id),
|
|
98
|
-
lineKey: `a:${e.addOn.id}`,
|
|
99
|
-
kind: "addon",
|
|
100
|
-
ticketName: e.addOn.name,
|
|
101
|
-
quantity: t,
|
|
102
|
-
unitPrice: n,
|
|
103
|
-
fee: 0,
|
|
104
|
-
subtotal: l(n * t),
|
|
105
|
-
isDonation: !1
|
|
106
|
-
}), f += n * t;
|
|
107
|
-
}
|
|
108
|
-
return i.isApplied && i.discountAmount > 0 && i.discountType === "$" && (p = Math.min(i.discountAmount, m)), f = l(f), p = l(p), h ? {
|
|
109
|
-
lines: d,
|
|
110
|
-
subtotal: null,
|
|
111
|
-
fees: null,
|
|
112
|
-
taxes: 0,
|
|
113
|
-
total: null,
|
|
114
|
-
promoDiscount: p,
|
|
115
|
-
giftCardAmount: 0
|
|
116
|
-
} : f === 0 ? {
|
|
117
|
-
lines: d,
|
|
118
|
-
subtotal: 0,
|
|
119
|
-
fees: 0,
|
|
120
|
-
taxes: 0,
|
|
121
|
-
total: 0,
|
|
122
|
-
promoDiscount: p,
|
|
123
|
-
giftCardAmount: 0
|
|
124
|
-
} : {
|
|
125
|
-
lines: d,
|
|
126
|
-
subtotal: f,
|
|
127
|
-
fees: null,
|
|
128
|
-
taxes: 0,
|
|
129
|
-
total: null,
|
|
130
|
-
promoDiscount: p,
|
|
131
|
-
giftCardAmount: 0
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
function D(e) {
|
|
135
|
-
return {
|
|
136
|
-
serviceFeePercentage: e.serviceFeePercentage,
|
|
137
|
-
serviceFeeCents: e.serviceFeeCents,
|
|
138
|
-
serviceFeeChargeType: e.serviceFeeChargeType,
|
|
139
|
-
absorbServiceFee: e.absorbServiceFee
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
function O(e) {
|
|
143
|
-
return !e.isDonation && e.quantity > 0 && e.unitPrice != null && Number.isFinite(e.unitPrice) && e.unitPrice > 0;
|
|
144
|
-
}
|
|
145
|
-
function k(e, t, n = !1) {
|
|
146
|
-
return !O({
|
|
147
|
-
unitPrice: e,
|
|
148
|
-
quantity: 1,
|
|
149
|
-
isDonation: n
|
|
150
|
-
}) || t.absorbServiceFee === !0 ? 0 : Math.min(x(e, D(t)), 10);
|
|
151
|
-
}
|
|
152
|
-
function A(e, t, n = 1) {
|
|
153
|
-
return w(T(e.filter(O).map((e) => ({
|
|
154
|
-
price: e.unitPrice,
|
|
155
|
-
discountedPrice: e.unitPrice * n,
|
|
156
|
-
quantity: e.quantity
|
|
157
|
-
})), D(t)));
|
|
158
|
-
}
|
|
159
|
-
function j(e, t) {
|
|
160
|
-
if (e.subtotal === null || e.total !== null) return e;
|
|
161
|
-
let n = l(Math.max(0, e.subtotal - e.promoDiscount)), r = e.subtotal > 0 ? n / e.subtotal : 1, i = A(e.lines, t, r), a = m(n + i, t.taxPercentage ?? 0);
|
|
162
|
-
return {
|
|
163
|
-
...e,
|
|
164
|
-
fees: i,
|
|
165
|
-
taxes: a,
|
|
166
|
-
total: l(n + i + a)
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
// src/lib/public-calendar-flow/types.ts
|
|
170
|
-
function M(e, t) {
|
|
171
|
-
let n = e.maxQuantity > 0 ? e.maxQuantity : 1, r = e.quantityRule === "per_ticket" ? t > 0 ? n * t : 0 : n;
|
|
172
|
-
return Math.max(0, Math.min(r, e.resolvedRemaining));
|
|
173
|
-
}
|
|
174
|
-
// src/lib/public-calendar-flow/AddOnCard.svelte
|
|
175
|
-
var N = _.from_html("<span class=\"add-on-thumb svelte-eimrjh\" aria-hidden=\"true\"> </span>"), P = _.from_html("<!> <span class=\"qty-display svelte-eimrjh\"><!></span> <!>", 1), F = _.from_html("<article><!> <div class=\"min-w-0 flex-1\"><!> <div class=\"flex flex-wrap items-center gap-x-2\"><!> <!> <!> <!></div> <div class=\"mt-1\"><!></div> <!></div> <div class=\"flex items-center quantity-selector\"><!></div></article>");
|
|
176
|
-
function I(n, s) {
|
|
177
|
-
_.push(s, !0);
|
|
178
|
-
let c = _.prop(s, "showScarcity", 3, !0), l = _.prop(s, "labels", 3, p), m = _.derived(() => M(s.addOn, s.ticketCount)), v = _.derived(() => s.addOn.resolvedRemaining <= 0), y = _.derived(() => s.addOn.quantityRule === "per_ticket" && s.ticketCount <= 0 && !_.get(v)), b = _.derived(() => _.get(v) || _.get(y)), x = _.derived(() => s.quantity > 0), S = _.derived(() => !_.get(b) && s.quantity < _.get(m)), C = _.derived(() => f(a(o(s.addOn.priceCents)), l())), w = _.derived(() => c() && g(s.addOn.resolvedRemaining, s.addOn.resolvedRemaining) !== "none"), T = _.derived(() => s.addOn.redeemable ? s.addOn.redeemAt === "host_desk" ? l().addOnRedeemHost || "check in with the host" : s.addOn.redeemAt === "merch_table" ? l().addOnRedeemMerch || "collect at the merch table" : l().addOnRedeemBar || "redeem at the bar" : l().addOnCollectInPerson || "collect in person"), E = _.derived(() => s.addOn.quantityRule === "per_ticket" ? (l().addOnPerTicketLimit || "max {count} per ticket").replace("{count}", String(s.addOn.maxQuantity)) : "");
|
|
179
|
-
function D() {
|
|
180
|
-
_.get(x) && (s.onQuantityChange(s.addOn.id, s.quantity - 1), e("light"));
|
|
181
|
-
}
|
|
182
|
-
function O() {
|
|
183
|
-
_.get(S) && (s.onQuantityChange(s.addOn.id, Math.min(s.quantity + 1, _.get(m))), e("light"));
|
|
184
|
-
}
|
|
185
|
-
var k = F();
|
|
186
|
-
let A;
|
|
187
|
-
var j = _.child(k), I = (e) => {
|
|
188
|
-
var t = N(), n = _.only_child(t, !0);
|
|
189
|
-
_.template_effect(() => _.set_text(n, s.addOn.emoji)), _.append(e, t);
|
|
190
|
-
};
|
|
191
|
-
_.if(j, (e) => {
|
|
192
|
-
s.addOn.emoji && e(I);
|
|
193
|
-
});
|
|
194
|
-
var L = _.sibling(j, 2), R = _.child(L);
|
|
195
|
-
d(R, {
|
|
196
|
-
size: "sm",
|
|
197
|
-
variant: "label",
|
|
198
|
-
class: "block",
|
|
199
|
-
children: (e, t) => {
|
|
200
|
-
_.next();
|
|
201
|
-
var n = _.text();
|
|
202
|
-
_.template_effect(() => _.set_text(n, s.addOn.name)), _.append(e, n);
|
|
203
|
-
},
|
|
204
|
-
$$slots: { default: !0 }
|
|
205
|
-
});
|
|
206
|
-
var z = _.sibling(R, 2), B = _.child(z), V = (e) => {
|
|
207
|
-
d(e, {
|
|
208
|
-
size: "xs",
|
|
209
|
-
color: "muted",
|
|
210
|
-
children: (e, t) => {
|
|
211
|
-
_.next();
|
|
212
|
-
var n = _.text();
|
|
213
|
-
_.template_effect(() => _.set_text(n, s.addOn.description)), _.append(e, n);
|
|
214
|
-
},
|
|
215
|
-
$$slots: { default: !0 }
|
|
216
|
-
});
|
|
217
|
-
};
|
|
218
|
-
_.if(B, (e) => {
|
|
219
|
-
s.addOn.description && e(V);
|
|
220
|
-
});
|
|
221
|
-
var H = _.sibling(B, 2);
|
|
222
|
-
d(H, {
|
|
223
|
-
size: "xs",
|
|
224
|
-
color: "muted",
|
|
225
|
-
children: (e, t) => {
|
|
226
|
-
_.next();
|
|
227
|
-
var n = _.text();
|
|
228
|
-
_.template_effect(() => _.set_text(n, _.get(T))), _.append(e, n);
|
|
229
|
-
},
|
|
230
|
-
$$slots: { default: !0 }
|
|
231
|
-
});
|
|
232
|
-
var U = _.sibling(H, 2), W = (e) => {
|
|
233
|
-
d(e, {
|
|
234
|
-
size: "xs",
|
|
235
|
-
color: "muted",
|
|
236
|
-
children: (e, t) => {
|
|
237
|
-
_.next();
|
|
238
|
-
var n = _.text();
|
|
239
|
-
_.template_effect(() => _.set_text(n, _.get(E))), _.append(e, n);
|
|
240
|
-
},
|
|
241
|
-
$$slots: { default: !0 }
|
|
242
|
-
});
|
|
243
|
-
};
|
|
244
|
-
_.if(U, (e) => {
|
|
245
|
-
_.get(E) && e(W);
|
|
246
|
-
});
|
|
247
|
-
var G = _.sibling(U, 2), K = (e) => {
|
|
248
|
-
i(e, {
|
|
249
|
-
get remaining() {
|
|
250
|
-
return s.addOn.resolvedRemaining;
|
|
251
|
-
},
|
|
252
|
-
get total() {
|
|
253
|
-
return s.addOn.resolvedRemaining;
|
|
254
|
-
},
|
|
255
|
-
context: "ticket",
|
|
256
|
-
get labels() {
|
|
257
|
-
return l();
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
};
|
|
261
|
-
_.if(G, (e) => {
|
|
262
|
-
_.get(w) && e(K);
|
|
263
|
-
}), _.reset(z);
|
|
264
|
-
var q = _.sibling(z, 2), J = _.child(q);
|
|
265
|
-
d(J, {
|
|
266
|
-
size: "sm",
|
|
267
|
-
variant: "label",
|
|
268
|
-
children: (e, t) => {
|
|
269
|
-
_.next();
|
|
270
|
-
var n = _.text();
|
|
271
|
-
_.template_effect(() => _.set_text(n, _.get(C))), _.append(e, n);
|
|
272
|
-
},
|
|
273
|
-
$$slots: { default: !0 }
|
|
274
|
-
}), _.reset(q);
|
|
275
|
-
var Y = _.sibling(q, 2), X = (e) => {
|
|
276
|
-
d(e, {
|
|
277
|
-
size: "xs",
|
|
278
|
-
color: "muted",
|
|
279
|
-
class: "block",
|
|
280
|
-
children: (e, t) => {
|
|
281
|
-
_.next();
|
|
282
|
-
var n = _.text();
|
|
283
|
-
_.template_effect(() => _.set_text(n, l().addOnNeedsTicket || "Add a ticket first")), _.append(e, n);
|
|
284
|
-
},
|
|
285
|
-
$$slots: { default: !0 }
|
|
286
|
-
});
|
|
287
|
-
};
|
|
288
|
-
_.if(Y, (e) => {
|
|
289
|
-
_.get(y) && e(X);
|
|
290
|
-
}), _.reset(L);
|
|
291
|
-
var Z = _.sibling(L, 2), Q = _.child(Z), $ = (e) => {
|
|
292
|
-
var n = P(), i = _.first_child(n);
|
|
293
|
-
{
|
|
294
|
-
let e = _.derived(() => !_.get(x)), t = _.derived(() => l().decrease || "Decrease"), n = _.derived(() => s.addOn.name), a = _.derived(() => l().quantityNoun || "quantity");
|
|
295
|
-
u(i, {
|
|
296
|
-
variant: "alternative",
|
|
297
|
-
size: "icon-lg",
|
|
298
|
-
onclick: D,
|
|
299
|
-
get disabled() {
|
|
300
|
-
return _.get(e);
|
|
301
|
-
},
|
|
302
|
-
get "aria-label"() {
|
|
303
|
-
return `${_.get(t) ?? ""} ${_.get(n) ?? ""} ${_.get(a) ?? ""}`;
|
|
304
|
-
},
|
|
305
|
-
children: (e, t) => {
|
|
306
|
-
r(e, { size: "16" });
|
|
307
|
-
},
|
|
308
|
-
$$slots: { default: !0 }
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
var a = _.sibling(i, 2), o = _.child(a);
|
|
312
|
-
d(o, {
|
|
313
|
-
size: "sm",
|
|
314
|
-
children: (e, t) => {
|
|
315
|
-
_.next();
|
|
316
|
-
var n = _.text();
|
|
317
|
-
_.template_effect(() => _.set_text(n, s.quantity)), _.append(e, n);
|
|
318
|
-
},
|
|
319
|
-
$$slots: { default: !0 }
|
|
320
|
-
}), _.reset(a);
|
|
321
|
-
var c = _.sibling(a, 2);
|
|
322
|
-
{
|
|
323
|
-
let e = _.derived(() => !_.get(S)), n = _.derived(() => l().increase || "Increase"), r = _.derived(() => s.addOn.name), i = _.derived(() => l().quantityNoun || "quantity");
|
|
324
|
-
u(c, {
|
|
325
|
-
variant: "alternative",
|
|
326
|
-
size: "icon-lg",
|
|
327
|
-
onclick: O,
|
|
328
|
-
get disabled() {
|
|
329
|
-
return _.get(e);
|
|
330
|
-
},
|
|
331
|
-
get "aria-label"() {
|
|
332
|
-
return `${_.get(n) ?? ""} ${_.get(r) ?? ""} ${_.get(i) ?? ""}`;
|
|
333
|
-
},
|
|
334
|
-
children: (e, n) => {
|
|
335
|
-
t(e, { size: "16" });
|
|
336
|
-
},
|
|
337
|
-
$$slots: { default: !0 }
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
_.append(e, n);
|
|
341
|
-
};
|
|
342
|
-
_.if(Q, (e) => {
|
|
343
|
-
_.get(v) || e($);
|
|
344
|
-
}), _.reset(Z), _.reset(k), _.template_effect(() => {
|
|
345
|
-
A = _.set_class(k, 1, "add-on-card flex items-center justify-between gap-3 rounded-lg border p-3 svelte-eimrjh", null, A, { disabled: _.get(b) }), _.set_style(k, `--add-on-transition: ${h.normal ?? ""}ms;`), _.set_attribute(k, "data-testid", `add-on-card-${s.addOn.id ?? ""}`);
|
|
346
|
-
}), _.append(n, k), _.pop();
|
|
347
|
-
}
|
|
348
|
-
export { j as a, k as i, M as n, E as r, I as t };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./labels-CjSrA6gx.js";
|
|
2
|
-
import { n as t } from "./iconWeight-BRXEDAh2.js";
|
|
3
|
-
import "svelte/internal/disclose-version";
|
|
4
|
-
import * as n from "svelte/internal/client";
|
|
5
|
-
// node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/CloseOutline.svelte
|
|
6
|
-
var r = n.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=\"M6 18L18 6M6 6l12 12\"></path></svg>");
|
|
7
|
-
function i(e, t) {
|
|
8
|
-
let i = n.prop(t, "size", 3, "24"), a = n.prop(t, "color", 3, "currentColor"), o = n.prop(t, "class", 3, "");
|
|
9
|
-
var s = r();
|
|
10
|
-
n.template_effect(() => {
|
|
11
|
-
n.set_class(s, 0, n.clsx(o())), n.set_attribute(s, "width", i()), n.set_attribute(s, "height", i()), n.set_attribute(s, "stroke", a());
|
|
12
|
-
}), n.append(e, s);
|
|
13
|
-
}
|
|
14
|
-
// node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/InfoIcon.svelte
|
|
15
|
-
var a = n.from_svg("<path d=\"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z\"></path>"), o = n.from_svg("<circle cx=\"128\" cy=\"128\" r=\"96\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></circle><path d=\"M120,120a8,8,0,0,1,8,8v40a8,8,0,0,0,8,8\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path><circle cx=\"124\" cy=\"84\" r=\"12\"></circle>", 1), s = n.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
|
|
16
|
-
function c(e, r) {
|
|
17
|
-
n.push(r, !0);
|
|
18
|
-
let i = n.prop(r, "size", 3, "24"), c = n.prop(r, "color", 3, "currentColor"), l = n.prop(r, "class", 3, ""), u = t(), d = n.derived(() => r.weight ?? u?.weight ?? "regular");
|
|
19
|
-
var f = s();
|
|
20
|
-
let p;
|
|
21
|
-
var m = n.child(f), h = (e) => {
|
|
22
|
-
var t = a();
|
|
23
|
-
n.append(e, t);
|
|
24
|
-
}, g = (e) => {
|
|
25
|
-
var t = o();
|
|
26
|
-
n.next(2), n.append(e, t);
|
|
27
|
-
};
|
|
28
|
-
n.if(m, (e) => {
|
|
29
|
-
n.get(d) === "fill" ? e(h) : e(g, -1);
|
|
30
|
-
}), n.reset(f), n.template_effect(() => {
|
|
31
|
-
n.set_class(f, 0, n.clsx(l())), n.set_attribute(f, "width", i()), n.set_attribute(f, "height", i()), p = n.set_style(f, "", p, { color: c() === "currentColor" ? void 0 : c() });
|
|
32
|
-
}), n.append(e, f), n.pop();
|
|
33
|
-
}
|
|
34
|
-
// node_modules/@getmicdrop/svelte-components/dist/primitives/Skeleton/BlockPlaceholder.svelte
|
|
35
|
-
var l = n.from_html("<div></div>"), u = n.from_html("<div role=\"status\"><!> <span class=\"sr-only\"> </span></div>");
|
|
36
|
-
function d(t, r) {
|
|
37
|
-
n.push(r, !0);
|
|
38
|
-
let i = {
|
|
39
|
-
loadingContent: "Loading content",
|
|
40
|
-
loading: "Loading..."
|
|
41
|
-
}, a = n.prop(r, "rows", 3, 1), o = n.prop(r, "height", 3, "h-full"), s = n.prop(r, "rounded", 3, "lg"), c = n.prop(r, "tone", 3, "tertiary"), d = n.prop(r, "gap", 3, "space-y-2"), f = n.prop(r, "animate", 3, !0), p = n.prop(r, "class", 3, ""), m = n.prop(r, "labels", 19, () => ({})), h = n.derived(() => e(i, m())), g = {
|
|
42
|
-
md: "rounded-md",
|
|
43
|
-
lg: "rounded-lg",
|
|
44
|
-
xl: "rounded-xl"
|
|
45
|
-
}, _ = {
|
|
46
|
-
secondary: "bg-bg-secondary",
|
|
47
|
-
tertiary: "bg-bg-tertiary"
|
|
48
|
-
}, v = n.derived(() => g[s()] || g.lg), y = n.derived(() => _[c()] || _.tertiary), b = n.derived(() => f() ? "sc-skeleton-loading" : n.get(y)), x = n.derived(() => Math.max(0, Math.floor(a()))), S = n.derived(() => n.get(x) > 1 ? d() : "");
|
|
49
|
-
var C = u(), w = n.child(C);
|
|
50
|
-
n.each(w, 17, () => Array(n.get(x)), n.index, (e, t) => {
|
|
51
|
-
var r = l();
|
|
52
|
-
n.template_effect(() => n.set_class(r, 1, `w-full ${o() ?? ""} ${n.get(b) ?? ""} ${n.get(v) ?? ""}`)), n.append(e, r);
|
|
53
|
-
});
|
|
54
|
-
var T = n.sibling(w, 2), E = n.only_child(T, !0);
|
|
55
|
-
n.reset(C), n.template_effect(() => {
|
|
56
|
-
n.set_class(C, 1, `${n.get(S) ?? ""} ${p() ?? ""}`), n.set_attribute(C, "aria-label", n.get(h).loadingContent), n.set_text(E, n.get(h).loading);
|
|
57
|
-
}), n.append(t, C), n.pop();
|
|
58
|
-
}
|
|
59
|
-
export { c as n, i as r, d as t };
|