your-ai-workflow-firebase-os 2.0.8 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Assets-Dd_96avv.js → Assets-COH4Ji57.js} +5 -5
- package/dist/{Assets-CBBNIHrw.cjs → Assets-D7fDckSi.cjs} +1 -1
- package/dist/{Attachments-C6QrTcNt.cjs → Attachments-BMuQ0CD4.cjs} +1 -1
- package/dist/{Attachments-YyjQmhBx.js → Attachments-Co1UkdWB.js} +2 -2
- package/dist/{Billing-B6f49cGH.cjs → Billing-DkuJdls5.cjs} +1 -1
- package/dist/{Billing-BZafAizg.js → Billing-kk4ZMd3z.js} +4 -4
- package/dist/{BookingCalendar-DYsA71vl.cjs → BookingCalendar-BcvJiyaq.cjs} +1 -1
- package/dist/{BookingCalendar-_xoRa2tL.js → BookingCalendar-Bej__mIs.js} +1 -1
- package/dist/{Button-DSldWACF.js → Button-BGN6q7lY.js} +1 -1
- package/dist/{Button-PyTaaoyu.cjs → Button-Ccy4wFZ1.cjs} +1 -1
- package/dist/{ConfirmModal-CQ73WYUg.cjs → ConfirmModal-BUNtss4a.cjs} +1 -1
- package/dist/{ConfirmModal-C1dM-bzk.js → ConfirmModal-BW9e6Y7d.js} +3 -3
- package/dist/{ContactPopup-D5Hh0bfE.cjs → ContactPopup-D8aSSlmS.cjs} +1 -1
- package/dist/{ContactPopup-CL4AMwK9.js → ContactPopup-Fs7wzrOX.js} +7 -7
- package/dist/{CopyLink-BnYpVy6H.cjs → CopyLink-C5lKLyOU.cjs} +1 -1
- package/dist/{CopyLink-rLr_5eNM.js → CopyLink-CNjDLzOl.js} +2 -2
- package/dist/{DashboardNav-B0G943ux.js → DashboardNav-CEd8gGPm.js} +3 -3
- package/dist/{DashboardNav-DOl9gJuu.cjs → DashboardNav-GgEUpyTa.cjs} +1 -1
- package/dist/{EmailAdmin-CWHMMybh.cjs → EmailAdmin-d_gWd48U.cjs} +1 -1
- package/dist/{EmailAdmin-humrSTzI.js → EmailAdmin-pbQ-f9Ge.js} +9 -9
- package/dist/{EventCard-CrPswwyG.js → EventCard-BSGLYD64.js} +2 -2
- package/dist/{EventCard-6eCfvOA-.cjs → EventCard-DAsGsicK.cjs} +1 -1
- package/dist/{FileViewerPopup-DQmhXMSg.cjs → FileViewerPopup-CkLUYCNo.cjs} +1 -1
- package/dist/{FileViewerPopup-Dnl3td2o.js → FileViewerPopup-gqhRT22v.js} +2 -2
- package/dist/{FormNote-BWGLs9lx.js → FormNote-DJ9HBokL.js} +1 -1
- package/dist/{FormNote-CX2rSBDB.cjs → FormNote-DP0GK9ya.cjs} +1 -1
- package/dist/{FormsAdmin-Tg20B0iA.cjs → FormsAdmin-5KTTp6zo.cjs} +1 -1
- package/dist/{FormsAdmin-CHwmKnYU.js → FormsAdmin-BNI63vEk.js} +9 -9
- package/dist/{Inbox-Cgq4MALU.js → Inbox-D9Y5K8Se.js} +9 -9
- package/dist/{Inbox-BPwIiThg.cjs → Inbox-DjslBakx.cjs} +1 -1
- package/dist/{Loader-DP_dL5qC.js → Loader-CVoz1Zf0.js} +1 -1
- package/dist/{Loader-p3eNQDUU.cjs → Loader-QHqQsXLr.cjs} +1 -1
- package/dist/{ManagePlanButton-BRW7Sevd.cjs → ManagePlanButton-Buwfs2bU.cjs} +1 -1
- package/dist/{ManagePlanButton-CNLCxK-o.js → ManagePlanButton-CE4uyh_7.js} +2 -2
- package/dist/{MyBookings-C_pqsSEk.js → MyBookings-B4DndHV6.js} +7 -7
- package/dist/{MyBookings-BC5sn_fE.cjs → MyBookings-CkEioQIj.cjs} +1 -1
- package/dist/{PageTitle-DFGW71q8.js → PageTitle-DCoUQWw6.js} +2 -2
- package/dist/{PageTitle-BWmE74WQ.cjs → PageTitle-DQkvCB11.cjs} +1 -1
- package/dist/PagesAdmin-D0qgoZtW.js +3 -0
- package/dist/{PagesAdmin-jjnDLYmF.js → PagesAdmin-DzLJWKBJ.js} +21 -21
- package/dist/PagesAdmin-KUxCI1Mr.cjs +1 -0
- package/dist/{PagesAdmin-BZZ3by92.cjs → PagesAdmin-YdYgmuEB.cjs} +1 -1
- package/dist/{PaymentsAdmin-CI0zXraR.cjs → PaymentsAdmin-B5l-f0mp.cjs} +1 -1
- package/dist/{PaymentsAdmin-DeBMmFFo.js → PaymentsAdmin-C3cEOeIs.js} +15 -15
- package/dist/{Popup-DmPEk98h.js → Popup-Bi63lzoS.js} +1 -1
- package/dist/{Popup-nq7YNM4N.cjs → Popup-COnHpbrY.cjs} +1 -1
- package/dist/{ProviderMark-DJ5mYjYn.cjs → ProviderMark--adeeajP.cjs} +1 -1
- package/dist/{ProviderMark-CAeOnBsB.js → ProviderMark-BvEMlZAm.js} +1 -1
- package/dist/{PublishApp-mMMwf_in.js → PublishApp-B9Fo6xN0.js} +7 -7
- package/dist/{PublishApp-DI96gX9b.cjs → PublishApp-Bc82Ijkq.cjs} +1 -1
- package/dist/{Said-DAD7Ctp_.js → Said-BvSRaEfZ.js} +1 -1
- package/dist/{Said-DlJOjNMN.cjs → Said-W3KFi5uX.cjs} +1 -1
- package/dist/{ScheduleAdmin-dWj_N_tf.cjs → ScheduleAdmin-Dh_hW6p4.cjs} +1 -1
- package/dist/{ScheduleAdmin-C4W8Ls0D.js → ScheduleAdmin-bk3GgxKP.js} +14 -14
- package/dist/{SchedulePicker-CwKId9JF.cjs → SchedulePicker-CN0755Ek.cjs} +1 -1
- package/dist/{SchedulePicker-BOSJEcfL.js → SchedulePicker-DO4PewPJ.js} +2 -2
- package/dist/{Setup-DcZzh6Xd.cjs → Setup-R4r6_tbV.cjs} +1 -1
- package/dist/{Setup-NOvtplUS.js → Setup-_G-s5y5Q.js} +3 -3
- package/dist/{SetupPayments-DrXK0LQa.js → SetupPayments-CkolcOtv.js} +5 -5
- package/dist/{SetupPayments-CZ0KqXdR.cjs → SetupPayments-CuFk9REC.cjs} +1 -1
- package/dist/{SignInAdmin-CwIUAJrv.cjs → SignInAdmin-B1yLLaQu.cjs} +1 -1
- package/dist/{SignInAdmin-Cb65ChHL.js → SignInAdmin-BLEn0rId.js} +9 -9
- package/dist/{SupportBar-528kXe-Z.js → SupportBar-DI_XbEsG.js} +4 -4
- package/dist/{SupportBar-CNVXSYwT.cjs → SupportBar-DLWruzQb.cjs} +1 -1
- package/dist/{SystemTabContent-EegzTuLd.cjs → SystemTabContent-BWhRHoXx.cjs} +1 -1
- package/dist/{SystemTabContent-C4azXKMs.js → SystemTabContent-CMyT7mDN.js} +2 -2
- package/dist/{TemplateDrive-XDRPkxIj.cjs → TemplateDrive-BJN-ReA_.cjs} +1 -1
- package/dist/{TemplateDrive-CfPXKMKX.js → TemplateDrive-DNBwL0oy.js} +10 -10
- package/dist/{ThemeAdmin-XLbC9fX7.js → ThemeAdmin-Cnqefrz6.js} +6 -6
- package/dist/ThemeAdmin-CoE_c5-P.cjs +1 -0
- package/dist/ThemeAdmin-DI7QaZ-0.js +2 -0
- package/dist/{ThemeAdmin-BrEozdpZ.cjs → ThemeAdmin-DkgmjW3g.cjs} +1 -1
- package/dist/TimeZoneField-Ckn1pKAL.cjs +11 -0
- package/dist/{TimeZoneField-Dv389mAe.js → TimeZoneField-oIMwb5_X.js} +119 -107
- package/dist/{TransactionsAdmin-X-NjI4NB.js → TransactionsAdmin-Brs-CEcG.js} +11 -11
- package/dist/{TransactionsAdmin-DgsG629u.cjs → TransactionsAdmin-C5wQRR1g.cjs} +1 -1
- package/dist/{Trouble-qjWYeKzC.js → Trouble-CtFq7tjk.js} +1 -1
- package/dist/{Trouble-DokPNHQZ.cjs → Trouble-KQZyf6aY.cjs} +1 -1
- package/dist/{Users-BEjl_Vjc.cjs → Users-B16L9cKI.cjs} +1 -1
- package/dist/{Users-BUGb7-Kz.js → Users-CbI4K_Le.js} +15 -15
- package/dist/{VideoPlayer-BVOkrJBR.cjs → VideoPlayer-CggwpVXH.cjs} +1 -1
- package/dist/{VideoPlayer-DB0oz6lM.js → VideoPlayer-QI1Jc3bS.js} +1 -1
- package/dist/appIcons-C90OKlV5.cjs +130 -0
- package/dist/{appIcons-CUXAX_gJ.js → appIcons-CCArfCDe.js} +761 -735
- package/dist/{arrivalRoads-BZk39p8Z.js → arrivalRoads-CGXm9Ntm.js} +0 -0
- package/dist/{arrivalRoads-CD7pt03E.cjs → arrivalRoads-Cc6AZM-d.cjs} +0 -0
- package/dist/{bookingPages-BxqkyZ-M.js → bookingPages-BFSY3Riv.js} +1 -1
- package/dist/{bookingPages-2fn9xPiA.cjs → bookingPages-Dx1ViiwW.cjs} +1 -1
- package/dist/{contentFallback-C6xLwXTs.js → contentFallback-BGGpI1Ts.js} +2 -2
- package/dist/{contentFallback-DLm_iHo9.cjs → contentFallback-DVCrIUvK.cjs} +1 -1
- package/dist/{email-DxxovRtf.js → email-PBHbXXgR.js} +1 -1
- package/dist/{email-DD48BP42.cjs → email-Sya6gl4F.cjs} +1 -1
- package/dist/lib/basket.d.ts +29 -9
- package/dist/lib/recordPrice.d.ts +1 -1
- package/dist/{notices-Cwon5Q0Y.cjs → notices-CKm9-Pqt.cjs} +1 -1
- package/dist/{notices-C4yqYzBw.js → notices-CysS7BLF.js} +1 -1
- package/dist/{ownerMail-CGmDk7aP.cjs → ownerMail-BS9SjJ2u.cjs} +1 -1
- package/dist/{ownerMail-Chzy5Ehy.js → ownerMail-DepG5-Qw.js} +2 -2
- package/dist/{pageFiles-BClshvXs.cjs → pageFiles-Cn0YQ4Ur.cjs} +1 -1
- package/dist/{pageFiles-D-GYqRgZ.js → pageFiles-ZFPSCDZz.js} +1 -1
- package/dist/{paidInFull-KuStok9_.cjs → paidInFull-CZywIs-V.cjs} +1 -1
- package/dist/{paidInFull-D14Eh0QV.js → paidInFull-mBOh9iwN.js} +1 -1
- package/dist/{paidSessions-Cr_93LGa.js → paidSessions-B8e5RHi4.js} +7 -7
- package/dist/{paidSessions-QXv7SHeb.cjs → paidSessions-D-zHC4oG.cjs} +1 -1
- package/dist/{people-D8nPPMlM.cjs → people-BwWVVLfy.cjs} +1 -1
- package/dist/{people-sk2DcHPi.js → people-Wk2opW4G.js} +1 -1
- package/dist/{publishSteps-DB1Hxr6H.js → publishSteps-Cf5pSB_H.js} +1 -1
- package/dist/{publishSteps-CaZRpC3C.cjs → publishSteps-DvWlF0p_.cjs} +1 -1
- package/dist/{recordLock-Dnz61J-_.js → recordLock-CMOiezNC.js} +1 -1
- package/dist/{recordLock-CLUp3QNh.cjs → recordLock-CiulizO1.cjs} +1 -1
- package/dist/{recordsKey-R5BjLoGQ.cjs → recordsKey-C4E2vOti.cjs} +1 -1
- package/dist/{recordsKey-DHJJWWOo.js → recordsKey-Cd216nq1.js} +2 -2
- package/dist/{registrationFields-COv8jW4n.cjs → registrationFields-DHHTptcl.cjs} +1 -1
- package/dist/{registrationFields-CeTZSerx.js → registrationFields-DdHoMPAQ.js} +1 -1
- package/dist/renderer.cjs.js +1 -1
- package/dist/renderer.es.js +1 -1
- package/dist/{roles-5juCr5sY.cjs → roles-BBDIJzox.cjs} +1 -1
- package/dist/{roles-hzcMnn_M.js → roles-DiwP6-WQ.js} +3 -3
- package/dist/{scheduleData-BpkfnBjP.cjs → scheduleData-BXjNXVHY.cjs} +1 -1
- package/dist/{scheduleData-BLCUm84s.js → scheduleData-DR6A-Q7Z.js} +1 -1
- package/dist/server.cjs.js +1 -1
- package/dist/server.es.js +1 -1
- package/dist/{serviceStatus-5sk8MPjW.js → serviceStatus-C9izcuQz.js} +2 -2
- package/dist/{serviceStatus-1pGLLilF.cjs → serviceStatus-Cde96_OO.cjs} +1 -1
- package/dist/{serviceSwitches-BWnZBooS.js → serviceSwitches-CZHwvVfP.js} +1 -1
- package/dist/{serviceSwitches-Do_pkFCu.cjs → serviceSwitches-mhJbQBrV.cjs} +1 -1
- package/dist/vite.cjs.js +1 -1
- package/dist/vite.es.js +1 -1
- package/dist/your-ai-workflow-firebase-os.cjs.js +8 -8
- package/dist/your-ai-workflow-firebase-os.css +1 -1
- package/dist/your-ai-workflow-firebase-os.es.js +358 -316
- package/package.json +1 -1
- package/src/index.css +41 -6
- package/dist/PagesAdmin-B-XopEi9.js +0 -3
- package/dist/PagesAdmin-nL5ZltFn.cjs +0 -1
- package/dist/ThemeAdmin-CwCiTp2I.js +0 -2
- package/dist/ThemeAdmin-Db5edTYj.cjs +0 -1
- package/dist/TimeZoneField-zR8N2Fj0.cjs +0 -11
- package/dist/appIcons-BNovDw6_.cjs +0 -130
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import { _ as e, x as t } from "./mediaKind-BtaMpGy8.js";
|
|
2
2
|
import { a as n, i as r, o as i, r as a } from "./forms-C2IxnO9p.js";
|
|
3
|
-
import { _ as o, c as s, d as c, g as l, h as u, m as d, o as f, p, t as m, v as h } from "./PageTitle-
|
|
4
|
-
import { $ as g, $r as _, A as v, An as y, At as b, Bn as x, Bt as S, Cn as C, D as w, Dr as T, E, En as D, Fn as ee, Ft as O, Gt as k, Hn as A, Ht as j, In as M, Ir as N, Jt as te, Kt as ne, Ln as re, Lr as ie, Mt as P, Nn as F, Nt as I, O as ae, Pr as L, Pt as R, Q as oe, Qn as se, Qt as ce, Rn as le, Rr as z, T as ue, Tn as B, Un as V, Ut as de, Vt as H, W as fe, Wt as pe, Xt as me, Yt as he, Z as U, Zr as ge, Zt as _e, _n as ve, ai as ye, an as be, bn as xe, br as Se, ci as Ce, di as we, fi as Te, fn as Ee, gr as De, hn as Oe, ii as ke, in as Ae, jt as je, k as Me, kt as Ne, li as Pe, mi as Fe, ni as Ie, nt as W, o as Le, oi as Re, on as ze, p as Be, pi as Ve, pr as He, qr as Ue, qt as We, ri as Ge, rn as Ke, rt as qe, si as Je, sn as Ye, ti as Xe, tt as Ze, ui as G, wn as Qe, yn as $e, zn as et, zt as tt } from "./TimeZoneField-
|
|
5
|
-
import { D as nt, E as rt, M as it, N as at, O as ot, S as st, c as ct, k as lt, n as ut, o as dt, r as ft, s as pt, t as mt, u as ht, v as gt, w as _t, x as vt, y as yt } from "./DashboardNav-
|
|
6
|
-
import { i as bt, n as xt, o as St, s as Ct, t as wt } from "./Trouble-
|
|
3
|
+
import { _ as o, c as s, d as c, g as l, h as u, m as d, o as f, p, t as m, v as h } from "./PageTitle-DCoUQWw6.js";
|
|
4
|
+
import { $ as g, $r as _, A as v, An as y, At as b, Bn as x, Bt as S, Cn as C, D as w, Dr as T, E, En as D, Fn as ee, Ft as O, Gt as k, Hn as A, Ht as j, In as M, Ir as N, Jt as te, Kt as ne, Ln as re, Lr as ie, Mt as P, Nn as F, Nt as I, O as ae, Pr as L, Pt as R, Q as oe, Qn as se, Qt as ce, Rn as le, Rr as z, T as ue, Tn as B, Un as V, Ut as de, Vt as H, W as fe, Wt as pe, Xt as me, Yt as he, Z as U, Zr as ge, Zt as _e, _n as ve, ai as ye, an as be, bn as xe, br as Se, ci as Ce, di as we, fi as Te, fn as Ee, gr as De, hn as Oe, ii as ke, in as Ae, jt as je, k as Me, kt as Ne, li as Pe, mi as Fe, ni as Ie, nt as W, o as Le, oi as Re, on as ze, p as Be, pi as Ve, pr as He, qr as Ue, qt as We, ri as Ge, rn as Ke, rt as qe, si as Je, sn as Ye, ti as Xe, tt as Ze, ui as G, wn as Qe, yn as $e, zn as et, zt as tt } from "./TimeZoneField-oIMwb5_X.js";
|
|
5
|
+
import { D as nt, E as rt, M as it, N as at, O as ot, S as st, c as ct, k as lt, n as ut, o as dt, r as ft, s as pt, t as mt, u as ht, v as gt, w as _t, x as vt, y as yt } from "./DashboardNav-CEd8gGPm.js";
|
|
6
|
+
import { i as bt, n as xt, o as St, s as Ct, t as wt } from "./Trouble-CtFq7tjk.js";
|
|
7
7
|
import { A as Tt, An as Et, At as Dt, Et as Ot, It as kt, Mn as At, N as jt, Nn as Mt, Pn as Nt, Qt as Pt, Sn as Ft, Tn as It, U as Lt, Vt as Rt, X as zt, Y as Bt, dn as Vt, it as Ht, jn as Ut, jt as Wt, k as Gt, mt as Kt, nn as qt, nt as Jt, on as Yt, un as Xt, wn as Zt, yn as Qt } from "./schedule-C13m_kiO.js";
|
|
8
8
|
import { n as $t, t as en } from "./chevron-down--LwXEv9w.js";
|
|
9
|
-
import { A as tn, B as nn, C as rn, D as an, E as on, F as sn, I as cn, L as ln, M as un, N as dn, O as fn, P as pn, R as mn, S as hn, T as gn, V as _n, _ as vn, a as yn, b as bn, c as xn, d as Sn, f as Cn, g as wn, h as Tn, j as En, k as Dn, l as On, m as kn, n as An, o as jn, p as Mn, r as Nn, s as Pn, t as Fn, u as In, v as Ln, w as Rn, x as zn, y as Bn, z as Vn } from "./TemplateDrive-
|
|
9
|
+
import { A as tn, B as nn, C as rn, D as an, E as on, F as sn, I as cn, L as ln, M as un, N as dn, O as fn, P as pn, R as mn, S as hn, T as gn, V as _n, _ as vn, a as yn, b as bn, c as xn, d as Sn, f as Cn, g as wn, h as Tn, j as En, k as Dn, l as On, m as kn, n as An, o as jn, p as Mn, r as Nn, s as Pn, t as Fn, u as In, v as Ln, w as Rn, x as zn, y as Bn, z as Vn } from "./TemplateDrive-DNBwL0oy.js";
|
|
10
10
|
import { t as Hn } from "./arrow-left-DdRja6es.js";
|
|
11
11
|
import { t as Un } from "./arrow-right-C6OLl8Zh.js";
|
|
12
12
|
import { n as Wn, t as Gn } from "./mail-check-DlwCj48-.js";
|
|
13
|
-
import { C as Kn, b as qn, r as Jn, t as Yn, v as Xn, w as Zn, y as Qn } from "./scheduleData-
|
|
13
|
+
import { C as Kn, b as qn, r as Jn, t as Yn, v as Xn, w as Zn, y as Qn } from "./scheduleData-DR6A-Q7Z.js";
|
|
14
14
|
import { t as $n } from "./calendar-clock-CrYtc9Ft.js";
|
|
15
|
-
import { l as er } from "./BookingCalendar-
|
|
16
|
-
import { r as tr } from "./EventCard-
|
|
17
|
-
import { _ as nr, a as rr, b as ir, g as ar, h as or, i as sr, m as cr, n as lr, o as ur, p as dr, s as fr, t as pr, v as mr, y as hr } from "./ContactPopup-
|
|
15
|
+
import { l as er } from "./BookingCalendar-Bej__mIs.js";
|
|
16
|
+
import { r as tr } from "./EventCard-BSGLYD64.js";
|
|
17
|
+
import { _ as nr, a as rr, b as ir, g as ar, h as or, i as sr, m as cr, n as lr, o as ur, p as dr, s as fr, t as pr, v as mr, y as hr } from "./ContactPopup-Fs7wzrOX.js";
|
|
18
18
|
import { t as gr } from "./chevron-left-By8iIdje.js";
|
|
19
|
-
import { a as _r, c as vr, d as yr, l as br, n as xr, o as Sr, s as Cr, t as wr, u as Tr } from "./FileViewerPopup-
|
|
20
|
-
import { r as Er, t as Dr } from "./VideoPlayer-
|
|
21
|
-
import { n as Or, t as kr } from "./ProviderMark-
|
|
22
|
-
import { t as Ar } from "./FormNote-
|
|
23
|
-
import { _ as jr, c as Mr, d as Nr, f as Pr, g as Fr, i as Ir, l as Lr, m as Rr, o as zr, p as Br, s as Vr, u as Hr } from "./arrivalRoads-
|
|
19
|
+
import { a as _r, c as vr, d as yr, l as br, n as xr, o as Sr, s as Cr, t as wr, u as Tr } from "./FileViewerPopup-gqhRT22v.js";
|
|
20
|
+
import { r as Er, t as Dr } from "./VideoPlayer-QI1Jc3bS.js";
|
|
21
|
+
import { n as Or, t as kr } from "./ProviderMark-BvEMlZAm.js";
|
|
22
|
+
import { t as Ar } from "./FormNote-DJ9HBokL.js";
|
|
23
|
+
import { _ as jr, c as Mr, d as Nr, f as Pr, g as Fr, i as Ir, l as Lr, m as Rr, o as zr, p as Br, s as Vr, u as Hr } from "./arrivalRoads-CGXm9Ntm.js";
|
|
24
24
|
import { n as Ur, r as Wr, t as Gr } from "./x-hax8aKt8.js";
|
|
25
25
|
import { t as Kr } from "./lock-CeHdSreq.js";
|
|
26
26
|
import { t as qr } from "./plus-BKrt0Qx5.js";
|
|
27
27
|
import { t as Jr } from "./send-D-Vm6vU4.js";
|
|
28
28
|
import { t as Yr } from "./shield-check-DRQNdYcW.js";
|
|
29
|
-
import { i as Xr, n as Zr, r as Qr, t as $r } from "./Said-
|
|
29
|
+
import { i as Xr, n as Zr, r as Qr, t as $r } from "./Said-BvSRaEfZ.js";
|
|
30
30
|
import { t as ei } from "./trash-6Wj66gJi.js";
|
|
31
31
|
import "./user-round-BXAihGcZ.js";
|
|
32
|
-
import { a as ti, c as ni, d as ri, f as ii, i as ai, l as oi, n as si, o as ci, p as li, r as ui, s as di, t as fi, u as pi } from "./contentFallback-
|
|
33
|
-
import { t as mi } from "./Popup-
|
|
34
|
-
import { t as K } from "./Button-
|
|
35
|
-
import { n as hi, t as gi } from "./Loader-
|
|
32
|
+
import { a as ti, c as ni, d as ri, f as ii, i as ai, l as oi, n as si, o as ci, p as li, r as ui, s as di, t as fi, u as pi } from "./contentFallback-BGGpI1Ts.js";
|
|
33
|
+
import { t as mi } from "./Popup-Bi63lzoS.js";
|
|
34
|
+
import { t as K } from "./Button-BGN6q7lY.js";
|
|
35
|
+
import { n as hi, t as gi } from "./Loader-CVoz1Zf0.js";
|
|
36
36
|
import "./bookingHold-DX9zPdMr.js";
|
|
37
37
|
import { a as _i, c as vi, i as yi, n as bi, r as xi, s as Si, u as Ci } from "./address-4GXKgkSk.js";
|
|
38
38
|
import { t as wi } from "./formPage-BcnATn6R.js";
|
|
39
|
-
import { a as Ti, i as Ei, n as Di, r as Oi, t as ki } from "./email-
|
|
40
|
-
import { C as Ai, S as ji, _ as Mi, a as Ni, c as Pi, d as Fi, f as Ii, g as Li, h as Ri, i as zi, l as Bi, m as Vi, n as Hi, o as Ui, p as Wi, r as Gi, s as Ki, u as qi, v as Ji, y as Yi } from "./registrationFields-
|
|
41
|
-
import { l as Xi, u as Zi } from "./roles-
|
|
42
|
-
import { n as Qi, t as $i } from "./notices-
|
|
39
|
+
import { a as Ti, i as Ei, n as Di, r as Oi, t as ki } from "./email-PBHbXXgR.js";
|
|
40
|
+
import { C as Ai, S as ji, _ as Mi, a as Ni, c as Pi, d as Fi, f as Ii, g as Li, h as Ri, i as zi, l as Bi, m as Vi, n as Hi, o as Ui, p as Wi, r as Gi, s as Ki, u as qi, v as Ji, y as Yi } from "./registrationFields-DdHoMPAQ.js";
|
|
41
|
+
import { l as Xi, u as Zi } from "./roles-DiwP6-WQ.js";
|
|
42
|
+
import { n as Qi, t as $i } from "./notices-CysS7BLF.js";
|
|
43
43
|
import { a as ea } from "./transactions-ycKW6zHa.js";
|
|
44
44
|
import { i as ta } from "./tabAudience-DJ6H5Uth.js";
|
|
45
|
-
import { t as na } from "./ConfirmModal-
|
|
46
|
-
import { c as ra, i as ia, o as aa, t as oa, u as sa } from "./recordsKey-
|
|
47
|
-
import { l as ca } from "./bookingPages-
|
|
48
|
-
import { i as la, o as ua } from "./pageFiles-
|
|
49
|
-
import { a as da, d as fa, f as pa, l as ma, u as ha } from "./recordLock-
|
|
45
|
+
import { t as na } from "./ConfirmModal-BW9e6Y7d.js";
|
|
46
|
+
import { c as ra, i as ia, o as aa, t as oa, u as sa } from "./recordsKey-Cd216nq1.js";
|
|
47
|
+
import { l as ca } from "./bookingPages-BFSY3Riv.js";
|
|
48
|
+
import { i as la, o as ua } from "./pageFiles-ZFPSCDZz.js";
|
|
49
|
+
import { a as da, d as fa, f as pa, l as ma, u as ha } from "./recordLock-CMOiezNC.js";
|
|
50
50
|
import { a as ga, i as _a, n as va, r as ya, t as ba } from "./AccessNotice-DGsp8Xfl.js";
|
|
51
|
-
import { i as xa, r as Sa } from "./Setup-
|
|
52
|
-
import { n as Ca } from "./paidInFull-
|
|
53
|
-
import { t as wa } from "./ManagePlanButton-
|
|
51
|
+
import { i as xa, r as Sa } from "./Setup-_G-s5y5Q.js";
|
|
52
|
+
import { n as Ca } from "./paidInFull-mBOh9iwN.js";
|
|
53
|
+
import { t as wa } from "./ManagePlanButton-CE4uyh_7.js";
|
|
54
54
|
import { t as Ta } from "./recordPrice-C4nFKZLy.js";
|
|
55
|
-
import { r as Ea } from "./people-
|
|
55
|
+
import { r as Ea } from "./people-Wk2opW4G.js";
|
|
56
56
|
import { t as Da } from "./PhoneInputField-B1Ry6dGv.js";
|
|
57
57
|
import Oa, { Children as ka, Fragment as Aa, Suspense as ja, createContext as Ma, createElement as Na, isValidElement as Pa, useCallback as Fa, useContext as Ia, useEffect as q, useId as La, useLayoutEffect as Ra, useMemo as za, useRef as J, useState as Y, useSyncExternalStore as Ba } from "react";
|
|
58
58
|
import { Fragment as X, jsx as Z, jsxs as Q } from "react/jsx-runtime";
|
|
@@ -13617,7 +13617,7 @@ function Rh() {
|
|
|
13617
13617
|
Rh.displayName = "ScrollToTop";
|
|
13618
13618
|
//#endregion
|
|
13619
13619
|
//#region src/App.tsx
|
|
13620
|
-
var zh = () => import("./Users-
|
|
13620
|
+
var zh = () => import("./Users-CbI4K_Le.js").then((e) => ({ default: e.UsersTab })), Bh = () => import("./SignInAdmin-BLEn0rId.js").then((e) => ({ default: e.SignInAdmin })), Vh = () => import("./Inbox-D9Y5K8Se.js").then((e) => ({ default: e.Inbox })), Hh = () => import("./Assets-COH4Ji57.js").then((e) => ({ default: e.Assets })), Uh = () => import("./ThemeAdmin-DI7QaZ-0.js").then((e) => ({ default: e.ThemeAdmin })), Wh = () => import("./PagesAdmin-D0qgoZtW.js").then((e) => ({ default: e.PagesAdmin })), Gh = () => import("./FormsAdmin-BNI63vEk.js").then((e) => ({ default: e.FormsAdmin })), Kh = () => import("./PaymentsAdmin-C3cEOeIs.js").then((e) => ({ default: e.PaymentsAdmin })), qh = () => import("./TransactionsAdmin-Brs-CEcG.js").then((e) => ({ default: e.TransactionsAdmin })), Jh = () => import("./ScheduleAdmin-bk3GgxKP.js").then((e) => ({ default: e.ScheduleAdmin })), Yh = () => import("./EmailAdmin-pbQ-f9Ge.js").then((e) => ({ default: e.EmailAdmin })), Xh = () => import("./SetupPayments-CkolcOtv.js").then((e) => ({ default: e.SetupPayments })), Zh = () => import("./PublishApp-B9Fo6xN0.js").then((e) => ({ default: e.PublishApp })), Qh = () => import("./MyBookings-B4DndHV6.js").then((e) => ({ default: e.MyBookings })), $h = () => import("./Billing-kk4ZMd3z.js").then((e) => ({ default: e.Billing })), eg = Je(zh), tg = Je(Bh), ng = Je(Vh), rg = Je(Hh), ig = Je(Uh), ag = Je(Wh), og = Je(Gh), sg = Je(Kh), cg = Je(qh);
|
|
13621
13621
|
Je(Jh);
|
|
13622
13622
|
var lg = Je(Yh), ug = Je(Xh), dg = Je(Zh);
|
|
13623
13623
|
Je(Qh);
|
|
@@ -15004,50 +15004,79 @@ function L_(e, t, n) {
|
|
|
15004
15004
|
quantity: r
|
|
15005
15005
|
} : e));
|
|
15006
15006
|
}
|
|
15007
|
-
var R_ = (e) => e.variantId == null ? e.variant == null ? "" : String(e.variant) : String(e.variantId)
|
|
15008
|
-
|
|
15009
|
-
|
|
15010
|
-
|
|
15011
|
-
|
|
15012
|
-
|
|
15013
|
-
|
|
15014
|
-
|
|
15015
|
-
|
|
15007
|
+
var R_ = (e) => e.variantId == null ? e.variant == null ? "" : String(e.variant) : String(e.variantId), z_ = (e, t) => {
|
|
15008
|
+
if (!t) return !0;
|
|
15009
|
+
let n = (Array.isArray(e.variants) ? e.variants : []).map((e) => e && typeof e == "object" ? e.id : void 0);
|
|
15010
|
+
return !n.length || n.some((e) => e == null || e === "") ? !0 : n.some((e) => String(e) === t);
|
|
15011
|
+
};
|
|
15012
|
+
function B_(e, t, n, r) {
|
|
15013
|
+
if (!t) return {
|
|
15014
|
+
lines: e,
|
|
15015
|
+
gone: []
|
|
15016
|
+
};
|
|
15017
|
+
let i = !1, a = [], o = [];
|
|
15018
|
+
for (let s of e) {
|
|
15019
|
+
if (String(s.id ?? "") !== t || s.collection && String(s.collection) !== r) {
|
|
15020
|
+
o.push(s);
|
|
15021
|
+
continue;
|
|
15022
|
+
}
|
|
15023
|
+
if (!n || !z_(n, R_(s))) {
|
|
15024
|
+
i = !0, a.push(String(s.name || ""));
|
|
15025
|
+
continue;
|
|
15026
|
+
}
|
|
15027
|
+
let e = Ta(n, R_(s));
|
|
15028
|
+
if (e == null || e === Number(s.price)) {
|
|
15029
|
+
o.push(s);
|
|
15030
|
+
continue;
|
|
15031
|
+
}
|
|
15032
|
+
i = !0, o.push({
|
|
15033
|
+
...s,
|
|
15034
|
+
price: e
|
|
15016
15035
|
});
|
|
15017
|
-
}
|
|
15018
|
-
return
|
|
15036
|
+
}
|
|
15037
|
+
return {
|
|
15038
|
+
lines: i ? o : e,
|
|
15039
|
+
gone: a
|
|
15040
|
+
};
|
|
15019
15041
|
}
|
|
15020
|
-
function
|
|
15021
|
-
|
|
15042
|
+
function V_(e, t, n, r) {
|
|
15043
|
+
let i = G_(e), a = [];
|
|
15044
|
+
i.setLines((e) => {
|
|
15045
|
+
let i = B_(e, t, n, r);
|
|
15046
|
+
return a = i.gone, i.lines;
|
|
15047
|
+
}), a.length && i.setGone(a);
|
|
15022
15048
|
}
|
|
15023
|
-
var
|
|
15049
|
+
var H_ = /* @__PURE__ */ new Map(), U_ = {
|
|
15024
15050
|
lines: [],
|
|
15025
|
-
open: !1
|
|
15051
|
+
open: !1,
|
|
15052
|
+
gone: []
|
|
15026
15053
|
};
|
|
15027
|
-
function
|
|
15054
|
+
function W_(e) {
|
|
15028
15055
|
try {
|
|
15029
15056
|
return F_(JSON.parse(window.localStorage.getItem(ar(e)) || "[]"));
|
|
15030
15057
|
} catch {
|
|
15031
15058
|
return [];
|
|
15032
15059
|
}
|
|
15033
15060
|
}
|
|
15034
|
-
function
|
|
15035
|
-
let t =
|
|
15061
|
+
function G_(e) {
|
|
15062
|
+
let t = H_.get(e);
|
|
15036
15063
|
if (t) return t;
|
|
15037
15064
|
let n = {
|
|
15038
|
-
lines:
|
|
15039
|
-
open: !1
|
|
15065
|
+
lines: W_(e),
|
|
15066
|
+
open: !1,
|
|
15067
|
+
gone: []
|
|
15040
15068
|
}, r = /* @__PURE__ */ new Set(), i = (e) => {
|
|
15041
15069
|
n = e, r.forEach((e) => e());
|
|
15042
15070
|
}, a = (t) => {
|
|
15043
15071
|
t.detail === e && i({
|
|
15044
15072
|
lines: [],
|
|
15045
|
-
open: !1
|
|
15073
|
+
open: !1,
|
|
15074
|
+
gone: []
|
|
15046
15075
|
});
|
|
15047
15076
|
}, o = (t) => {
|
|
15048
15077
|
t.key === ar(e) && i({
|
|
15049
15078
|
...n,
|
|
15050
|
-
lines:
|
|
15079
|
+
lines: W_(e)
|
|
15051
15080
|
});
|
|
15052
15081
|
}, s = {
|
|
15053
15082
|
get: () => n,
|
|
@@ -15071,21 +15100,29 @@ function W_(e) {
|
|
|
15071
15100
|
setOpen(e) {
|
|
15072
15101
|
e !== n.open && i({
|
|
15073
15102
|
...n,
|
|
15074
|
-
open: e
|
|
15103
|
+
open: e,
|
|
15104
|
+
gone: e ? n.gone : []
|
|
15105
|
+
});
|
|
15106
|
+
},
|
|
15107
|
+
setGone(e) {
|
|
15108
|
+
let t = [...new Set([...n.gone, ...e.filter(Boolean)])];
|
|
15109
|
+
t.length !== n.gone.length && i({
|
|
15110
|
+
...n,
|
|
15111
|
+
gone: t
|
|
15075
15112
|
});
|
|
15076
15113
|
},
|
|
15077
15114
|
added: null
|
|
15078
15115
|
};
|
|
15079
|
-
return
|
|
15116
|
+
return H_.set(e, s), s;
|
|
15080
15117
|
}
|
|
15081
|
-
function
|
|
15082
|
-
let n =
|
|
15118
|
+
function K_(e, t) {
|
|
15119
|
+
let n = G_(e);
|
|
15083
15120
|
return n.added = t, () => {
|
|
15084
15121
|
n.added === t && (n.added = null);
|
|
15085
15122
|
};
|
|
15086
15123
|
}
|
|
15087
|
-
function
|
|
15088
|
-
let t =
|
|
15124
|
+
function q_(e = "basket") {
|
|
15125
|
+
let t = G_(e), n = Ba(t.subscribe, t.get, () => U_);
|
|
15089
15126
|
return za(() => {
|
|
15090
15127
|
let r = (e) => typeof e == "string" ? e : N_(e);
|
|
15091
15128
|
return {
|
|
@@ -15094,6 +15131,7 @@ function K_(e = "basket") {
|
|
|
15094
15131
|
count: n.lines.reduce((e, t) => e + t.quantity, 0),
|
|
15095
15132
|
subtotal: Kg(n.lines),
|
|
15096
15133
|
open: n.open,
|
|
15134
|
+
gone: n.gone,
|
|
15097
15135
|
add(e, n) {
|
|
15098
15136
|
t.setLines((t) => I_(t, e)), n?.quiet || t.setOpen(!0);
|
|
15099
15137
|
try {
|
|
@@ -15114,27 +15152,27 @@ function K_(e = "basket") {
|
|
|
15114
15152
|
}
|
|
15115
15153
|
//#endregion
|
|
15116
15154
|
//#region src/components/Basket.tsx
|
|
15117
|
-
var
|
|
15118
|
-
function
|
|
15155
|
+
var J_ = "bag", Y_ = "flex items-baseline justify-between gap-4 text-[14px]", X_ = "w-10 h-10 inline-flex items-center justify-center rounded-full text-foreground/70 hover:text-foreground hover:bg-foreground/5 transition-colors cursor-pointer disabled:opacity-25 disabled:cursor-default disabled:hover:bg-transparent", Z_ = (e) => e.length < 2 ? e.join("") : `${e.slice(0, -1).join(", ")} and ${e[e.length - 1]}`;
|
|
15156
|
+
function Q_({ subtotal: e, extras: t, total: n, currency: r, count: i }) {
|
|
15119
15157
|
return /* @__PURE__ */ Q("div", {
|
|
15120
15158
|
className: "flex flex-col gap-2",
|
|
15121
15159
|
children: [
|
|
15122
15160
|
(t.length > 0 || i != null) && /* @__PURE__ */ Q("div", {
|
|
15123
|
-
className: `${
|
|
15161
|
+
className: `${Y_} text-foreground/55`,
|
|
15124
15162
|
children: [/* @__PURE__ */ Z("span", { children: i == null ? "Subtotal" : `${i} ${i === 1 ? "item" : "items"}` }), /* @__PURE__ */ Z("span", {
|
|
15125
15163
|
className: "tabular-nums",
|
|
15126
15164
|
children: Im(e, r)
|
|
15127
15165
|
})]
|
|
15128
15166
|
}),
|
|
15129
15167
|
t.map((e) => /* @__PURE__ */ Q("div", {
|
|
15130
|
-
className: `${
|
|
15168
|
+
className: `${Y_} text-foreground/55`,
|
|
15131
15169
|
children: [/* @__PURE__ */ Z("span", { children: e.label }), /* @__PURE__ */ Z("span", {
|
|
15132
15170
|
className: "tabular-nums",
|
|
15133
15171
|
children: Im(e.amount, r)
|
|
15134
15172
|
})]
|
|
15135
15173
|
}, e.label)),
|
|
15136
15174
|
/* @__PURE__ */ Q("div", {
|
|
15137
|
-
className: `${
|
|
15175
|
+
className: `${Y_} font-semibold text-foreground`,
|
|
15138
15176
|
children: [/* @__PURE__ */ Z("span", { children: t.length ? "Total" : "Subtotal" }), /* @__PURE__ */ Z("span", {
|
|
15139
15177
|
className: "tabular-nums text-[16px]",
|
|
15140
15178
|
children: Im(n, r)
|
|
@@ -15143,10 +15181,10 @@ function X_({ subtotal: e, extras: t, total: n, currency: r, count: i }) {
|
|
|
15143
15181
|
]
|
|
15144
15182
|
});
|
|
15145
15183
|
}
|
|
15146
|
-
function
|
|
15147
|
-
let C =
|
|
15184
|
+
function $_({ name: e = "basket", formId: t, collection: n, extras: r, currency: i, phone: a, address: o, carry: s, productName: c, metadata: l, successPath: u, payLabel: d, send: f, title: p = f ? "Your list" : "Your bag", checkoutTitle: m = f ? "Your details" : "Checkout", checkoutLabel: h = f ? "Send my list" : "Checkout", emptyWords: g = f ? "Your list is empty" : "Your bag is empty", note: _, onOpenLine: v, tally: y, sentWords: x = "Sent — thank you", onSent: S }) {
|
|
15185
|
+
let C = q_(e), w = z(), T = i || w || "usd";
|
|
15148
15186
|
q(() => {
|
|
15149
|
-
if (y) return
|
|
15187
|
+
if (y) return K_(e, (e) => {
|
|
15150
15188
|
e.id && zg(y, String(e.id), "added");
|
|
15151
15189
|
});
|
|
15152
15190
|
}, [e, y]);
|
|
@@ -15156,7 +15194,7 @@ function Z_({ name: e = "basket", formId: t, collection: n, extras: r, currency:
|
|
|
15156
15194
|
let t = E.split("\n").map((t) => {
|
|
15157
15195
|
try {
|
|
15158
15196
|
return _o($(G, n, t), (r) => {
|
|
15159
|
-
r.metadata.fromCache ||
|
|
15197
|
+
r.metadata.fromCache || V_(e, t, r.exists() ? r.data() : null, n);
|
|
15160
15198
|
}, () => {});
|
|
15161
15199
|
} catch {
|
|
15162
15200
|
return () => {};
|
|
@@ -15168,11 +15206,11 @@ function Z_({ name: e = "basket", formId: t, collection: n, extras: r, currency:
|
|
|
15168
15206
|
n,
|
|
15169
15207
|
E
|
|
15170
15208
|
]);
|
|
15171
|
-
let { loading: D, configured: ee } = et(), { userRole: k } = O(), { pathname: A, search: j } = Fo(), [M, N] = zo(), [te, ne] = Y("bag"), [re, ie] = Y(!1), P = M.get(
|
|
15209
|
+
let { loading: D, configured: ee } = et(), { userRole: k } = O(), { pathname: A, search: j } = Fo(), [M, N] = zo(), [te, ne] = Y("bag"), [re, ie] = Y(!1), P = M.get(J_);
|
|
15172
15210
|
q(() => {
|
|
15173
15211
|
P && (C.lines.length && (ne(P === "checkout" ? "checkout" : "bag"), C.show()), N((e) => {
|
|
15174
15212
|
let t = new URLSearchParams(e);
|
|
15175
|
-
return t.delete(
|
|
15213
|
+
return t.delete(J_), t;
|
|
15176
15214
|
}, { replace: !0 }));
|
|
15177
15215
|
}, [P]), q(() => {
|
|
15178
15216
|
if (C.open) return;
|
|
@@ -15181,28 +15219,32 @@ function Z_({ name: e = "basket", formId: t, collection: n, extras: r, currency:
|
|
|
15181
15219
|
}, 300);
|
|
15182
15220
|
return () => window.clearTimeout(e);
|
|
15183
15221
|
}, [C.open]);
|
|
15184
|
-
let F = C.lines, I = F.length ? te : "bag", L = Gg(r), R = qg(F, L), oe = F.some((e) => !!e.picture), se =
|
|
15222
|
+
let F = C.lines, I = F.length ? te : "bag", L = Gg(r), R = qg(F, L), oe = F.some((e) => !!e.picture), se = C.gone.length > 0 ? /* @__PURE__ */ Z("p", {
|
|
15223
|
+
role: "status",
|
|
15224
|
+
className: "text-[13px] text-foreground/55 leading-snug pb-3 mb-1 border-b border-[var(--panel-border)]",
|
|
15225
|
+
children: `${Z_(C.gone)} ${C.gone.length === 1 ? "is" : "are"} no longer for sale, so ${C.gone.length === 1 ? "it has" : "they have"} been taken out of your ${f ? "list" : "bag"}.`
|
|
15226
|
+
}) : null, ce = !f && !D && !ee && !Zt(k), le = !f || F.some((e) => Number(e.price) > 0);
|
|
15185
15227
|
q(() => {
|
|
15186
15228
|
F.length && ie(!1);
|
|
15187
15229
|
}, [F.length]);
|
|
15188
|
-
let
|
|
15230
|
+
let ue = f ? {
|
|
15189
15231
|
...s || {},
|
|
15190
15232
|
items: Wg(F),
|
|
15191
|
-
...
|
|
15233
|
+
...le ? {
|
|
15192
15234
|
extras: L,
|
|
15193
15235
|
subtotal: C.subtotal,
|
|
15194
15236
|
total: R,
|
|
15195
15237
|
currency: T.toLowerCase()
|
|
15196
15238
|
} : {}
|
|
15197
|
-
} : void 0,
|
|
15239
|
+
} : void 0, B = (() => {
|
|
15198
15240
|
let e = new URLSearchParams(j);
|
|
15199
|
-
return e.set(
|
|
15200
|
-
})(),
|
|
15241
|
+
return e.set(J_, "checkout"), `${A}?${e.toString()}`;
|
|
15242
|
+
})(), V = v ? (e) => {
|
|
15201
15243
|
C.hide(), v(e);
|
|
15202
|
-
} : null,
|
|
15244
|
+
} : null, de = I === "bag" && F.length > 0 ? /* @__PURE__ */ Q("div", {
|
|
15203
15245
|
className: "flex flex-col gap-4",
|
|
15204
15246
|
children: [
|
|
15205
|
-
|
|
15247
|
+
le && /* @__PURE__ */ Z(Q_, {
|
|
15206
15248
|
subtotal: C.subtotal,
|
|
15207
15249
|
extras: L,
|
|
15208
15250
|
total: R,
|
|
@@ -15212,7 +15254,7 @@ function Z_({ name: e = "basket", formId: t, collection: n, extras: r, currency:
|
|
|
15212
15254
|
className: "text-[13px] text-foreground/50 leading-snug",
|
|
15213
15255
|
children: _
|
|
15214
15256
|
}),
|
|
15215
|
-
|
|
15257
|
+
ce ? /* @__PURE__ */ Z("p", {
|
|
15216
15258
|
className: "text-[13px] text-foreground/55 leading-snug text-center",
|
|
15217
15259
|
children: "Ordering is not open yet."
|
|
15218
15260
|
}) : f ? /* @__PURE__ */ Z(K, {
|
|
@@ -15227,7 +15269,7 @@ function Z_({ name: e = "basket", formId: t, collection: n, extras: r, currency:
|
|
|
15227
15269
|
})
|
|
15228
15270
|
]
|
|
15229
15271
|
}) : void 0;
|
|
15230
|
-
return /* @__PURE__ */
|
|
15272
|
+
return /* @__PURE__ */ Q(mi, {
|
|
15231
15273
|
open: C.open,
|
|
15232
15274
|
onClose: C.hide,
|
|
15233
15275
|
side: "right",
|
|
@@ -15242,8 +15284,8 @@ function Z_({ name: e = "basket", formId: t, collection: n, extras: r, currency:
|
|
|
15242
15284
|
f ? "Back to your list" : "Back to your bag"
|
|
15243
15285
|
]
|
|
15244
15286
|
}) : void 0,
|
|
15245
|
-
footer:
|
|
15246
|
-
children: re && !F.length ? /* @__PURE__ */ Q("div", {
|
|
15287
|
+
footer: de,
|
|
15288
|
+
children: [!(re && !F.length) && se, re && !F.length ? /* @__PURE__ */ Q("div", {
|
|
15247
15289
|
role: "status",
|
|
15248
15290
|
className: "flex flex-col items-center text-center gap-3 py-16",
|
|
15249
15291
|
children: [
|
|
@@ -15268,27 +15310,27 @@ function Z_({ name: e = "basket", formId: t, collection: n, extras: r, currency:
|
|
|
15268
15310
|
]
|
|
15269
15311
|
}) : F.length ? I === "checkout" && f ? /* @__PURE__ */ Q("div", {
|
|
15270
15312
|
className: "flex flex-col gap-6 pt-2",
|
|
15271
|
-
children: [
|
|
15313
|
+
children: [le ? /* @__PURE__ */ Z(Q_, {
|
|
15272
15314
|
subtotal: C.subtotal,
|
|
15273
15315
|
extras: L,
|
|
15274
15316
|
total: R,
|
|
15275
15317
|
currency: T,
|
|
15276
15318
|
count: C.count
|
|
15277
15319
|
}) : /* @__PURE__ */ Z("p", {
|
|
15278
|
-
className: `${
|
|
15320
|
+
className: `${Y_} text-foreground/55`,
|
|
15279
15321
|
children: `${C.count} ${C.count === 1 ? "item" : "items"} on your list`
|
|
15280
15322
|
}), /* @__PURE__ */ Z(pr, {
|
|
15281
15323
|
formId: t,
|
|
15282
15324
|
isInline: !0,
|
|
15283
15325
|
bare: !0,
|
|
15284
|
-
extra:
|
|
15326
|
+
extra: ue,
|
|
15285
15327
|
onSubmitted: (e, t) => {
|
|
15286
15328
|
ie(!0), C.clear(), S?.(e, t);
|
|
15287
15329
|
}
|
|
15288
15330
|
})]
|
|
15289
15331
|
}) : I === "checkout" ? /* @__PURE__ */ Q("div", {
|
|
15290
15332
|
className: "flex flex-col gap-7 pt-2",
|
|
15291
|
-
children: [/* @__PURE__ */ Z(
|
|
15333
|
+
children: [/* @__PURE__ */ Z(Q_, {
|
|
15292
15334
|
subtotal: C.subtotal,
|
|
15293
15335
|
extras: L,
|
|
15294
15336
|
total: R,
|
|
@@ -15306,7 +15348,7 @@ function Z_({ name: e = "basket", formId: t, collection: n, extras: r, currency:
|
|
|
15306
15348
|
productName: c,
|
|
15307
15349
|
metadata: l,
|
|
15308
15350
|
successPath: u,
|
|
15309
|
-
cancelPath:
|
|
15351
|
+
cancelPath: B,
|
|
15310
15352
|
payLabel: d,
|
|
15311
15353
|
summary: !1
|
|
15312
15354
|
})]
|
|
@@ -15342,10 +15384,10 @@ function Z_({ name: e = "basket", formId: t, collection: n, extras: r, currency:
|
|
|
15342
15384
|
alt: "",
|
|
15343
15385
|
fit: "cover",
|
|
15344
15386
|
className: "absolute inset-0"
|
|
15345
|
-
}),
|
|
15387
|
+
}), V && /* @__PURE__ */ Z("button", {
|
|
15346
15388
|
type: "button",
|
|
15347
15389
|
"aria-label": `Open ${e.name}`,
|
|
15348
|
-
onClick: () =>
|
|
15390
|
+
onClick: () => V(e),
|
|
15349
15391
|
className: "absolute inset-0 cursor-pointer"
|
|
15350
15392
|
})]
|
|
15351
15393
|
}), /* @__PURE__ */ Q("div", {
|
|
@@ -15353,15 +15395,15 @@ function Z_({ name: e = "basket", formId: t, collection: n, extras: r, currency:
|
|
|
15353
15395
|
children: [
|
|
15354
15396
|
/* @__PURE__ */ Q("div", {
|
|
15355
15397
|
className: "flex items-start justify-between gap-3",
|
|
15356
|
-
children: [
|
|
15398
|
+
children: [V ? /* @__PURE__ */ Z("button", {
|
|
15357
15399
|
type: "button",
|
|
15358
|
-
onClick: () =>
|
|
15400
|
+
onClick: () => V(e),
|
|
15359
15401
|
className: "min-w-0 flex flex-col gap-0.5 text-left cursor-pointer",
|
|
15360
15402
|
children: r
|
|
15361
15403
|
}) : /* @__PURE__ */ Z("span", {
|
|
15362
15404
|
className: "min-w-0 flex flex-col gap-0.5",
|
|
15363
15405
|
children: r
|
|
15364
|
-
}),
|
|
15406
|
+
}), le && /* @__PURE__ */ Q("span", {
|
|
15365
15407
|
className: "shrink-0 flex flex-col items-end leading-snug",
|
|
15366
15408
|
children: [/* @__PURE__ */ Z("span", {
|
|
15367
15409
|
className: "text-[14.5px] tabular-nums text-foreground/85",
|
|
@@ -15382,7 +15424,7 @@ function Z_({ name: e = "basket", formId: t, collection: n, extras: r, currency:
|
|
|
15382
15424
|
"aria-label": `One less ${e.name}`,
|
|
15383
15425
|
disabled: e.quantity <= 1,
|
|
15384
15426
|
onClick: () => C.setQuantity(t, e.quantity - 1),
|
|
15385
|
-
className:
|
|
15427
|
+
className: X_,
|
|
15386
15428
|
children: /* @__PURE__ */ Z(Hs, { className: "w-4 h-4" })
|
|
15387
15429
|
}),
|
|
15388
15430
|
/* @__PURE__ */ Z("span", {
|
|
@@ -15396,7 +15438,7 @@ function Z_({ name: e = "basket", formId: t, collection: n, extras: r, currency:
|
|
|
15396
15438
|
"aria-label": `One more ${e.name}`,
|
|
15397
15439
|
disabled: e.quantity >= n,
|
|
15398
15440
|
onClick: () => C.setQuantity(t, e.quantity + 1),
|
|
15399
|
-
className:
|
|
15441
|
+
className: X_,
|
|
15400
15442
|
children: /* @__PURE__ */ Z(qr, { className: "w-4 h-4" })
|
|
15401
15443
|
})
|
|
15402
15444
|
]
|
|
@@ -15440,13 +15482,13 @@ function Z_({ name: e = "basket", formId: t, collection: n, extras: r, currency:
|
|
|
15440
15482
|
children: "Keep looking"
|
|
15441
15483
|
})
|
|
15442
15484
|
]
|
|
15443
|
-
})
|
|
15485
|
+
})]
|
|
15444
15486
|
});
|
|
15445
15487
|
}
|
|
15446
|
-
|
|
15447
|
-
var
|
|
15448
|
-
function
|
|
15449
|
-
let i =
|
|
15488
|
+
$_.displayName = "Basket";
|
|
15489
|
+
var ev = (e) => Pa(e) && (e.type === "svg" || /^(?:Shopping|Lucide)?(?:Bag|Basket|Cart)\w*$/.test(String(e.type.displayName || "")));
|
|
15490
|
+
function tv({ name: e = "basket", label: t = "Bag", className: n, children: r }) {
|
|
15491
|
+
let i = q_(e), a = i.count, o = ka.toArray(r).filter((e) => !ev(e));
|
|
15450
15492
|
return /* @__PURE__ */ Q("button", {
|
|
15451
15493
|
type: "button",
|
|
15452
15494
|
onClick: i.show,
|
|
@@ -15483,11 +15525,11 @@ function $_({ name: e = "basket", label: t = "Bag", className: n, children: r })
|
|
|
15483
15525
|
]
|
|
15484
15526
|
});
|
|
15485
15527
|
}
|
|
15486
|
-
|
|
15528
|
+
tv.displayName = "BasketButton";
|
|
15487
15529
|
//#endregion
|
|
15488
15530
|
//#region src/components/BuyButton.tsx
|
|
15489
|
-
var
|
|
15490
|
-
function
|
|
15531
|
+
var nv = "w-full py-3.5 text-[15px] font-bold tracking-wide";
|
|
15532
|
+
function rv({ children: e, price: t, about: n, phone: r, address: i, disabled: a = !1, variant: o = "primary", className: s, ...c }) {
|
|
15491
15533
|
let { loading: l, configured: u } = et(), d = z(), { userRole: f } = O(), { pathname: p, search: m } = Fo(), [h, g] = Y(!1), [_, v] = Y(null), [y, b] = Y(!1), [x, S] = Y("");
|
|
15492
15534
|
if (l) return null;
|
|
15493
15535
|
if (!u) return Zt(f) ? /* @__PURE__ */ Z("span", {
|
|
@@ -15552,7 +15594,7 @@ function tv({ children: e, price: t, about: n, phone: r, address: i, disabled: a
|
|
|
15552
15594
|
onClick: () => k(_),
|
|
15553
15595
|
isLoading: y,
|
|
15554
15596
|
disabled: y,
|
|
15555
|
-
className:
|
|
15597
|
+
className: nv,
|
|
15556
15598
|
children: D
|
|
15557
15599
|
}), !x && /* @__PURE__ */ Z("span", {
|
|
15558
15600
|
className: "text-[12.5px] text-foreground/45 leading-snug text-center",
|
|
@@ -15568,22 +15610,22 @@ function tv({ children: e, price: t, about: n, phone: r, address: i, disabled: a
|
|
|
15568
15610
|
})
|
|
15569
15611
|
})] });
|
|
15570
15612
|
}
|
|
15571
|
-
|
|
15613
|
+
rv.displayName = "BuyButton";
|
|
15572
15614
|
//#endregion
|
|
15573
15615
|
//#region src/lib/plans.ts
|
|
15574
|
-
var
|
|
15575
|
-
function
|
|
15616
|
+
var iv = (e) => /[^\d.,\s]/.test(e);
|
|
15617
|
+
function av(e, t = ie()) {
|
|
15576
15618
|
let n = String(e || "").trim();
|
|
15577
15619
|
if (!n) return "";
|
|
15578
|
-
if (
|
|
15620
|
+
if (iv(n)) return n;
|
|
15579
15621
|
let r = Se(n);
|
|
15580
15622
|
return r == null ? n : Im(r, t);
|
|
15581
15623
|
}
|
|
15582
|
-
function
|
|
15624
|
+
function ov(e, t, n, r) {
|
|
15583
15625
|
if (!t.on) return null;
|
|
15584
15626
|
let i = He(t, n).trim();
|
|
15585
15627
|
if (!/^price_[A-Za-z0-9]+$/.test(i)) return null;
|
|
15586
|
-
let a =
|
|
15628
|
+
let a = av(t.amount, r);
|
|
15587
15629
|
return {
|
|
15588
15630
|
rhythm: e,
|
|
15589
15631
|
priceId: i,
|
|
@@ -15592,17 +15634,17 @@ function iv(e, t, n, r) {
|
|
|
15592
15634
|
words: `${a} per ${e === "monthly" ? "month" : "year"}`.trim()
|
|
15593
15635
|
};
|
|
15594
15636
|
}
|
|
15595
|
-
var
|
|
15637
|
+
var sv = (e) => {
|
|
15596
15638
|
let t = e.split(/\r?\n/).map((e) => e.replace(/^\s*(?:[-–•*·✓]|\d+[.)])\s*/, "").trim()).filter(Boolean);
|
|
15597
15639
|
return t.length > 1 ? t : [];
|
|
15598
15640
|
};
|
|
15599
|
-
function
|
|
15641
|
+
function cv(e, t, n = [], r = ie()) {
|
|
15600
15642
|
if (!e || e.kind !== "subscription") return [];
|
|
15601
15643
|
let i = new Set(n.filter((e) => e.active && e.priceId).map((e) => e.priceId)), a = [];
|
|
15602
15644
|
for (let n of e.plans) {
|
|
15603
|
-
let e =
|
|
15645
|
+
let e = ov("monthly", n.monthly, t, r), o = ov("yearly", n.yearly, t, r);
|
|
15604
15646
|
if (!e && !o) continue;
|
|
15605
|
-
let s = n.description.trim(), c =
|
|
15647
|
+
let s = n.description.trim(), c = sv(s);
|
|
15606
15648
|
a.push({
|
|
15607
15649
|
name: n.name.trim() || "Plan",
|
|
15608
15650
|
description: c.length ? "" : s,
|
|
@@ -15615,11 +15657,11 @@ function ov(e, t, n = [], r = ie()) {
|
|
|
15615
15657
|
}
|
|
15616
15658
|
return a;
|
|
15617
15659
|
}
|
|
15618
|
-
function
|
|
15660
|
+
function lv(e) {
|
|
15619
15661
|
let t = e.monthly?.amount, n = e.yearly?.amount;
|
|
15620
15662
|
return !t || !n || n >= t * 12 ? 0 : Math.round((1 - n / (t * 12)) * 100);
|
|
15621
15663
|
}
|
|
15622
|
-
function
|
|
15664
|
+
function uv(e, t) {
|
|
15623
15665
|
let { loading: n, mode: r } = et();
|
|
15624
15666
|
z();
|
|
15625
15667
|
let i = t || ie(), a = le(), [o, s] = Y(null);
|
|
@@ -15634,7 +15676,7 @@ function cv(e, t) {
|
|
|
15634
15676
|
}, [e]);
|
|
15635
15677
|
let c = o?.id === e ? o.product : null, l = !!e && (n || o?.id !== e || a.loading);
|
|
15636
15678
|
return za(() => {
|
|
15637
|
-
let e = l ? [] :
|
|
15679
|
+
let e = l ? [] : cv(c, r === "live", a.subscriptions, i);
|
|
15638
15680
|
return {
|
|
15639
15681
|
loading: l,
|
|
15640
15682
|
name: c?.name.trim() || "",
|
|
@@ -15655,9 +15697,9 @@ function cv(e, t) {
|
|
|
15655
15697
|
}
|
|
15656
15698
|
//#endregion
|
|
15657
15699
|
//#region src/components/Plans.tsx
|
|
15658
|
-
var
|
|
15659
|
-
function
|
|
15660
|
-
let { loading: c, configured: l } = et(), { userRole: u } = O(), d =
|
|
15700
|
+
var dv = "text-[12.5px] font-medium text-foreground/50 leading-snug";
|
|
15701
|
+
function fv({ product: e, featured: t, featuredLabel: n = "Recommended", currency: r, phone: i, address: a, successPath: o, className: s }) {
|
|
15702
|
+
let { loading: c, configured: l } = et(), { userRole: u } = O(), d = uv(e, r), [f, p] = Y(null);
|
|
15661
15703
|
if (d.loading || c) return /* @__PURE__ */ Z("div", {
|
|
15662
15704
|
"aria-hidden": !0,
|
|
15663
15705
|
className: g("grid gap-5 sm:grid-cols-2 lg:grid-cols-3", s),
|
|
@@ -15669,15 +15711,15 @@ function uv({ product: e, featured: t, featuredLabel: n = "Recommended", currenc
|
|
|
15669
15711
|
});
|
|
15670
15712
|
let m = Zt(u), { plans: h } = d;
|
|
15671
15713
|
if (!h.length) return m ? /* @__PURE__ */ Z("span", {
|
|
15672
|
-
className:
|
|
15714
|
+
className: dv,
|
|
15673
15715
|
children: "Only admins see this: this subscription has no finished plan yet, so there is nothing to show here. Finish it at /payments and it appears."
|
|
15674
15716
|
}) : null;
|
|
15675
|
-
let _ = h.some((e) => e.monthly && e.yearly), v = h.find((e) => e.mine)?.mine || null, y = f || v || "monthly", x = Math.max(0, ...h.map(
|
|
15717
|
+
let _ = h.some((e) => e.monthly && e.yearly), v = h.find((e) => e.mine)?.mine || null, y = f || v || "monthly", x = Math.max(0, ...h.map(lv)), S = t?.trim().toLowerCase() || "";
|
|
15676
15718
|
return /* @__PURE__ */ Q("div", {
|
|
15677
15719
|
className: g("flex flex-col items-center gap-10 w-full", s),
|
|
15678
15720
|
children: [
|
|
15679
15721
|
!l && m && /* @__PURE__ */ Z("span", {
|
|
15680
|
-
className:
|
|
15722
|
+
className: dv,
|
|
15681
15723
|
children: "Only admins see this: payments are not on yet, so the buttons are hidden. Connect Stripe and switch payments on at /payments and they appear here."
|
|
15682
15724
|
}),
|
|
15683
15725
|
_ && /* @__PURE__ */ Z("div", {
|
|
@@ -15697,7 +15739,7 @@ function uv({ product: e, featured: t, featuredLabel: n = "Recommended", currenc
|
|
|
15697
15739
|
children: h.map((e, t) => {
|
|
15698
15740
|
let r = e[y] || e.monthly || e.yearly;
|
|
15699
15741
|
if (!r) return null;
|
|
15700
|
-
let s = !!S && e.name.toLowerCase() === S, c = r.rhythm === "yearly" ?
|
|
15742
|
+
let s = !!S && e.name.toLowerCase() === S, c = r.rhythm === "yearly" ? lv(e) : 0;
|
|
15701
15743
|
return /* @__PURE__ */ Q(W.div, {
|
|
15702
15744
|
initial: {
|
|
15703
15745
|
opacity: 0,
|
|
@@ -15772,9 +15814,9 @@ function uv({ product: e, featured: t, featuredLabel: n = "Recommended", currenc
|
|
|
15772
15814
|
className: "w-full py-3 text-[14.5px] font-bold",
|
|
15773
15815
|
children: e.mine ? "Manage your plan" : `Switch to ${e.name}`
|
|
15774
15816
|
}) : l && d.unsure ? /* @__PURE__ */ Z("span", {
|
|
15775
|
-
className:
|
|
15817
|
+
className: dv,
|
|
15776
15818
|
children: "Your current plan could not be checked just now. Try again in a moment."
|
|
15777
|
-
}) : l ? /* @__PURE__ */ Z(
|
|
15819
|
+
}) : l ? /* @__PURE__ */ Z(rv, {
|
|
15778
15820
|
priceId: r.priceId,
|
|
15779
15821
|
mode: "subscription",
|
|
15780
15822
|
productName: d.name ? `${d.name} — ${e.name}` : e.name,
|
|
@@ -15800,28 +15842,28 @@ function uv({ product: e, featured: t, featuredLabel: n = "Recommended", currenc
|
|
|
15800
15842
|
]
|
|
15801
15843
|
});
|
|
15802
15844
|
}
|
|
15803
|
-
|
|
15845
|
+
fv.displayName = "Plans";
|
|
15804
15846
|
//#endregion
|
|
15805
15847
|
//#region src/microcomponents/registry.ts
|
|
15806
|
-
var
|
|
15807
|
-
for (let e in
|
|
15808
|
-
let t =
|
|
15848
|
+
var pv = /* @__PURE__ */ Object.assign({}), mv = {};
|
|
15849
|
+
for (let e in pv) {
|
|
15850
|
+
let t = pv[e];
|
|
15809
15851
|
if (!t?.default) continue;
|
|
15810
15852
|
let n = e.replace("./", "").replace(".tsx", "");
|
|
15811
15853
|
if (n === "registry") continue;
|
|
15812
15854
|
let r = n.replace(/Content$/, "").replace(/([a-z0-9])([A-Z])/g, "$1_$2").toLowerCase();
|
|
15813
|
-
|
|
15855
|
+
mv[r] = t.default, mv[r.replace(/_/g, "")] = t.default;
|
|
15814
15856
|
}
|
|
15815
15857
|
if (typeof window < "u") {
|
|
15816
15858
|
let e = window.__FBOS_MICROCOMPONENTS__ || {};
|
|
15817
15859
|
window.__FBOS_MICROCOMPONENTS__ = {
|
|
15818
|
-
...
|
|
15860
|
+
...mv,
|
|
15819
15861
|
...e
|
|
15820
15862
|
};
|
|
15821
15863
|
}
|
|
15822
|
-
var
|
|
15864
|
+
var hv = (e, t) => {
|
|
15823
15865
|
let n = e.toLowerCase().replace(/[^a-z0-9]+/g, "_"), r = n.replace(/_/g, "");
|
|
15824
|
-
if (
|
|
15866
|
+
if (mv[n] = t, mv[r] = t, typeof window < "u") {
|
|
15825
15867
|
let e = window.__FBOS_MICROCOMPONENTS__ || {};
|
|
15826
15868
|
window.__FBOS_MICROCOMPONENTS__ = {
|
|
15827
15869
|
...e,
|
|
@@ -15829,7 +15871,7 @@ var pv = (e, t) => {
|
|
|
15829
15871
|
[r]: t
|
|
15830
15872
|
};
|
|
15831
15873
|
}
|
|
15832
|
-
},
|
|
15874
|
+
}, gv = ({ title: e, className: t, children: n, ...r }) => /* @__PURE__ */ Q("div", {
|
|
15833
15875
|
className: g("border border-[var(--panel-border)] bg-[var(--panel-bg)] px-5 py-4", t),
|
|
15834
15876
|
style: { borderRadius: "var(--card-radius, 1rem)" },
|
|
15835
15877
|
...r,
|
|
@@ -15838,10 +15880,10 @@ var pv = (e, t) => {
|
|
|
15838
15880
|
children: e
|
|
15839
15881
|
}) : null, n]
|
|
15840
15882
|
});
|
|
15841
|
-
|
|
15883
|
+
gv.displayName = "Card";
|
|
15842
15884
|
//#endregion
|
|
15843
15885
|
//#region src/components/SectionHeading.tsx
|
|
15844
|
-
var
|
|
15886
|
+
var _v = ({ sub: e, className: t, children: n, ...r }) => /* @__PURE__ */ Q("div", {
|
|
15845
15887
|
className: g("mb-4", t),
|
|
15846
15888
|
children: [/* @__PURE__ */ Z("h2", {
|
|
15847
15889
|
className: "text-xl md:text-2xl font-bold tracking-tight text-foreground",
|
|
@@ -15852,11 +15894,11 @@ var hv = ({ sub: e, className: t, children: n, ...r }) => /* @__PURE__ */ Q("div
|
|
|
15852
15894
|
children: e
|
|
15853
15895
|
}) : null]
|
|
15854
15896
|
});
|
|
15855
|
-
|
|
15897
|
+
_v.displayName = "SectionHeading";
|
|
15856
15898
|
//#endregion
|
|
15857
15899
|
//#region src/components/Pipeline.tsx
|
|
15858
|
-
var
|
|
15859
|
-
function
|
|
15900
|
+
var vv = "button, a, input, textarea, select, label, [role=\"button\"], [role=\"listbox\"], [role=\"option\"]", yv = "[&>:is(div,section,article):only-child:not([class*=inline],[class*=w-fit],[class*=w-max],[class*=rounded-full],[class*=text-white],[class*=text-background],:has(>:is(img,video,[data-picture]):only-child))]:!p-0 [&>:is(div,section,article):only-child:not([class*=inline],[class*=w-fit],[class*=w-max],[class*=rounded-full],[class*=text-white],[class*=text-background],:has(>:is(img,video,[data-picture]):only-child))]:!m-0 [&>:is(div,section,article):only-child:not([class*=inline],[class*=w-fit],[class*=w-max],[class*=rounded-full],[class*=text-white],[class*=text-background],:has(>:is(img,video,[data-picture]):only-child))]:!border-0 [&>:is(div,section,article):only-child:not([class*=inline],[class*=w-fit],[class*=w-max],[class*=rounded-full],[class*=text-white],[class*=text-background],:has(>:is(img,video,[data-picture]):only-child))]:!rounded-none [&>:is(div,section,article):only-child:not([class*=inline],[class*=w-fit],[class*=w-max],[class*=rounded-full],[class*=text-white],[class*=text-background],:has(>:is(img,video,[data-picture]):only-child))]:!bg-transparent [&>:is(div,section,article):only-child:not([class*=inline],[class*=w-fit],[class*=w-max],[class*=rounded-full],[class*=text-white],[class*=text-background],:has(>:is(img,video,[data-picture]):only-child))]:!shadow-none", bv = "flex h-8 w-6 shrink-0 items-center justify-center rounded-md text-foreground/40 transition-[opacity,color,background-color] duration-150 hover:bg-foreground/[0.07] hover:text-foreground/80 [@media(hover:hover)]:opacity-0 group-hover:opacity-100 group-focus-within:opacity-100";
|
|
15901
|
+
function xv({ stages: e, items: t, stageOf: n, keyOf: r, card: i, onMove: a, onOpen: o, canMove: s, loading: c = !1, empty: l = "Nothing here yet", className: u }) {
|
|
15860
15902
|
let d = J(null), f = (e) => r ? r(e) : String(e.id ?? ""), p = e[0]?.id ?? "", m = (t) => e.some((e) => e.id === t) ? t : p, [h, _] = Y({}), [v, y] = Y(null), b = J(null), x = (e) => {
|
|
15861
15903
|
b.current = e, y(e);
|
|
15862
15904
|
}, S = za(() => new Map(t.map((e) => [f(e), e])), [t]);
|
|
@@ -15950,7 +15992,7 @@ function yv({ stages: e, items: t, stageOf: n, keyOf: r, card: i, onMove: a, onO
|
|
|
15950
15992
|
},
|
|
15951
15993
|
onCancel: () => x(null)
|
|
15952
15994
|
}), D = T ? S.get(T.key) : void 0, ee = "rounded-xl border border-[var(--panel-border)] bg-[var(--panel-bg)] p-3 text-left", O = (e) => (t) => {
|
|
15953
|
-
let n = t.target.closest?.(
|
|
15995
|
+
let n = t.target.closest?.(vv);
|
|
15954
15996
|
n && n !== t.currentTarget || o?.(e);
|
|
15955
15997
|
}, k = (e) => (t) => {
|
|
15956
15998
|
t.target === t.currentTarget && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), o?.(e));
|
|
@@ -15976,7 +16018,7 @@ function yv({ stages: e, items: t, stageOf: n, keyOf: r, card: i, onMove: a, onO
|
|
|
15976
16018
|
} : { "data-drag-ok": "" },
|
|
15977
16019
|
className: g(ee, "group relative cursor-grab transition-[border-color,box-shadow,opacity] duration-200 hover:border-accent/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/40", T?.key === r && "opacity-30"),
|
|
15978
16020
|
children: [/* @__PURE__ */ Z("div", {
|
|
15979
|
-
className: g("min-w-0",
|
|
16021
|
+
className: g("min-w-0", yv),
|
|
15980
16022
|
children: i(t)
|
|
15981
16023
|
}), /* @__PURE__ */ Q("div", {
|
|
15982
16024
|
className: "-mb-1.5 mt-2.5 flex items-center justify-between gap-2 border-t border-[var(--panel-border)] pt-1.5",
|
|
@@ -16005,7 +16047,7 @@ function yv({ stages: e, items: t, stageOf: n, keyOf: r, card: i, onMove: a, onO
|
|
|
16005
16047
|
...Bf,
|
|
16006
16048
|
"aria-hidden": "true",
|
|
16007
16049
|
"data-pipeline-grip": "",
|
|
16008
|
-
className: g(
|
|
16050
|
+
className: g(bv, "-mr-1.5"),
|
|
16009
16051
|
children: /* @__PURE__ */ Z(Ps, { className: "h-4 w-4" })
|
|
16010
16052
|
})]
|
|
16011
16053
|
})]
|
|
@@ -16037,7 +16079,7 @@ function yv({ stages: e, items: t, stageOf: n, keyOf: r, card: i, onMove: a, onO
|
|
|
16037
16079
|
/* @__PURE__ */ Z("div", {
|
|
16038
16080
|
className: "flex min-h-16 flex-col gap-2.5",
|
|
16039
16081
|
children: c ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(hi, { className: "h-24 rounded-xl" }), /* @__PURE__ */ Z(hi, { className: "h-24 rounded-xl" })] }) : h.length ? h : /* @__PURE__ */ Z("div", {
|
|
16040
|
-
className: g("rounded-xl border border-dashed border-[var(--panel-border)] px-3 py-5 text-center text-xs text-foreground/40",
|
|
16082
|
+
className: g("rounded-xl border border-dashed border-[var(--panel-border)] px-3 py-5 text-center text-xs text-foreground/40", yv),
|
|
16041
16083
|
children: l
|
|
16042
16084
|
})
|
|
16043
16085
|
})
|
|
@@ -16055,26 +16097,26 @@ function yv({ stages: e, items: t, stageOf: n, keyOf: r, card: i, onMove: a, onO
|
|
|
16055
16097
|
children: /* @__PURE__ */ Z("div", {
|
|
16056
16098
|
className: ee,
|
|
16057
16099
|
children: /* @__PURE__ */ Z("div", {
|
|
16058
|
-
className: g("min-w-0",
|
|
16100
|
+
className: g("min-w-0", yv),
|
|
16059
16101
|
children: i(D)
|
|
16060
16102
|
})
|
|
16061
16103
|
})
|
|
16062
16104
|
}), document.body)]
|
|
16063
16105
|
});
|
|
16064
16106
|
}
|
|
16065
|
-
|
|
16107
|
+
xv.displayName = "Pipeline";
|
|
16066
16108
|
//#endregion
|
|
16067
16109
|
//#region src/components/Sortable.tsx
|
|
16068
|
-
var
|
|
16069
|
-
let t =
|
|
16070
|
-
return t || (t = `\u0000item${++
|
|
16071
|
-
},
|
|
16072
|
-
function
|
|
16110
|
+
var Sv = /* @__PURE__ */ new WeakMap(), Cv = 0, wv = (e) => {
|
|
16111
|
+
let t = Sv.get(e);
|
|
16112
|
+
return t || (t = `\u0000item${++Cv}`, Sv.set(e, t)), t;
|
|
16113
|
+
}, Tv = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
|
|
16114
|
+
function Ev({ items: e, keyOf: t, item: n, onReorder: r, label: i, grip: a, disabled: o = !1, className: s }) {
|
|
16073
16115
|
let c = J(null), l = (e) => {
|
|
16074
16116
|
if (t) return String(t(e) ?? "");
|
|
16075
16117
|
if (typeof e == "string" || typeof e == "number") return String(e);
|
|
16076
16118
|
let n = e?.id;
|
|
16077
|
-
return n != null && n !== "" ? String(n) : e && typeof e == "object" ?
|
|
16119
|
+
return n != null && n !== "" ? String(n) : e && typeof e == "object" ? wv(e) : "";
|
|
16078
16120
|
}, u = (a ?? (/\b(?:grid|columns-\d)/.test(s || "") ? "corner" : "end")) === "corner", d = /* @__PURE__ */ new Map(), f = e.map((e) => {
|
|
16079
16121
|
let t = l(e), n = d.get(t) ?? 0;
|
|
16080
16122
|
return d.set(t, n + 1), n === 0 ? t : `${t}\u0000${n}`;
|
|
@@ -16089,7 +16131,7 @@ function wv({ items: e, keyOf: t, item: n, onReorder: r, label: i, grip: a, disa
|
|
|
16089
16131
|
e && (x.current = null, c.current?.querySelector(`[data-drag-key="${CSS.escape(e)}"] [data-drag-handle]`)?.focus());
|
|
16090
16132
|
});
|
|
16091
16133
|
let S = () => Array.from(c.current?.querySelectorAll(":scope > [data-drag-key]") || []).map((e) => e.dataset.dragKey || ""), C = (e) => {
|
|
16092
|
-
if (
|
|
16134
|
+
if (Tv(e, f)) {
|
|
16093
16135
|
y(null);
|
|
16094
16136
|
return;
|
|
16095
16137
|
}
|
|
@@ -16182,39 +16224,39 @@ function wv({ items: e, keyOf: t, item: n, onReorder: r, label: i, grip: a, disa
|
|
|
16182
16224
|
}), document.body)]
|
|
16183
16225
|
});
|
|
16184
16226
|
}
|
|
16185
|
-
|
|
16227
|
+
Ev.displayName = "Sortable";
|
|
16186
16228
|
//#endregion
|
|
16187
16229
|
//#region src/components/DataTable.tsx
|
|
16188
|
-
var
|
|
16230
|
+
var Dv = "button, a, input, textarea, select, label, [role=\"button\"], [role=\"listbox\"], [role=\"option\"]", Ov = (e) => {
|
|
16189
16231
|
if (e == null || e === "") return null;
|
|
16190
16232
|
if (e instanceof Date) return e.getTime();
|
|
16191
16233
|
if (typeof e == "boolean") return +!!e;
|
|
16192
16234
|
let t = e;
|
|
16193
16235
|
return typeof t.toMillis == "function" ? t.toMillis() : e;
|
|
16194
|
-
},
|
|
16236
|
+
}, kv = (e) => {
|
|
16195
16237
|
if (e == null) return "";
|
|
16196
16238
|
if (e instanceof Date) return e.toLocaleDateString();
|
|
16197
16239
|
let t = e;
|
|
16198
16240
|
return typeof t.toDate == "function" ? t.toDate().toLocaleDateString() : String(e);
|
|
16199
|
-
},
|
|
16200
|
-
function
|
|
16201
|
-
let [e, t] = Y(() => typeof window > "u" || typeof window.matchMedia != "function" ? !0 : window.matchMedia(
|
|
16241
|
+
}, Av = "(min-width: 768px)";
|
|
16242
|
+
function jv() {
|
|
16243
|
+
let [e, t] = Y(() => typeof window > "u" || typeof window.matchMedia != "function" ? !0 : window.matchMedia(Av).matches);
|
|
16202
16244
|
return q(() => {
|
|
16203
16245
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
16204
|
-
let e = window.matchMedia(
|
|
16246
|
+
let e = window.matchMedia(Av), n = () => t(e.matches);
|
|
16205
16247
|
return n(), e.addEventListener?.("change", n), () => e.removeEventListener?.("change", n);
|
|
16206
16248
|
}, []), e;
|
|
16207
16249
|
}
|
|
16208
|
-
function
|
|
16250
|
+
function Mv({ rows: e, columns: t, keyOf: n, onOpen: r, actions: i, loading: a = !1, empty: o = "Nothing here yet", search: s = !1, sort: c, className: l }) {
|
|
16209
16251
|
let u = (e, t) => n ? n(e) : String(e.id ?? t), [d, f] = Y(c ? {
|
|
16210
16252
|
key: c.key,
|
|
16211
16253
|
dir: c.dir || "asc"
|
|
16212
|
-
} : null), [p, m] = Y(""), h =
|
|
16213
|
-
let n = p.trim().toLowerCase(), r = n ? e.filter((e) => t.some((t) => t.value &&
|
|
16254
|
+
} : null), [p, m] = Y(""), h = jv(), _ = za(() => {
|
|
16255
|
+
let n = p.trim().toLowerCase(), r = n ? e.filter((e) => t.some((t) => t.value && kv(t.value(e)).toLowerCase().includes(n))) : e, i = d && t.find((e) => e.key === d.key);
|
|
16214
16256
|
if (i && i.value) {
|
|
16215
16257
|
let e = i.value, t = d.dir === "asc" ? 1 : -1;
|
|
16216
16258
|
r = [...r].sort((n, r) => {
|
|
16217
|
-
let i =
|
|
16259
|
+
let i = Ov(e(n)), a = Ov(e(r));
|
|
16218
16260
|
return i === null || a === null ? i === a ? 0 : i === null ? 1 : -1 : typeof i == "number" && typeof a == "number" ? (i - a) * t : String(i).localeCompare(String(a), void 0, {
|
|
16219
16261
|
numeric: !0,
|
|
16220
16262
|
sensitivity: "base"
|
|
@@ -16233,8 +16275,8 @@ function Av({ rows: e, columns: t, keyOf: n, onOpen: r, actions: i, loading: a =
|
|
|
16233
16275
|
} : null : {
|
|
16234
16276
|
key: e,
|
|
16235
16277
|
dir: "asc"
|
|
16236
|
-
}), y = (e, t) => e.cell ? e.cell(t) : e.value ?
|
|
16237
|
-
let n = t.target.closest?.(
|
|
16278
|
+
}), y = (e, t) => e.cell ? e.cell(t) : e.value ? kv(e.value(t)) : null, b = (e) => (t) => {
|
|
16279
|
+
let n = t.target.closest?.(Dv);
|
|
16238
16280
|
n && n !== t.currentTarget || r?.(e);
|
|
16239
16281
|
}, x = (e) => (t) => {
|
|
16240
16282
|
t.target === t.currentTarget && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), r?.(e));
|
|
@@ -16389,11 +16431,11 @@ function Av({ rows: e, columns: t, keyOf: n, onOpen: r, actions: i, loading: a =
|
|
|
16389
16431
|
]
|
|
16390
16432
|
});
|
|
16391
16433
|
}
|
|
16392
|
-
|
|
16434
|
+
Mv.displayName = "DataTable";
|
|
16393
16435
|
//#endregion
|
|
16394
16436
|
//#region src/lib/history.ts
|
|
16395
|
-
var
|
|
16396
|
-
function
|
|
16437
|
+
var Nv = /^(?:mem|admin|role_[a-z][a-z0-9]*)_[A-Za-z0-9_]+$/, Pv = (e) => Nv.test(String(e || "")) && !/_history$/.test(e) ? `${e}_history` : null, Fv = (e) => e == null || e === "" ? void 0 : String(e);
|
|
16438
|
+
function Iv(e, t, n = {}, r = null, i = Date.now()) {
|
|
16397
16439
|
let a = nd(r), o = !!n.by?.name, s = {
|
|
16398
16440
|
recordId: String(e),
|
|
16399
16441
|
what: String(t || "").trim(),
|
|
@@ -16401,23 +16443,23 @@ function Pv(e, t, n = {}, r = null, i = Date.now()) {
|
|
|
16401
16443
|
creatorAvatar: o ? String(n.by.avatar || "") : a.creatorAvatar,
|
|
16402
16444
|
uid: r?.uid || "",
|
|
16403
16445
|
createdAt: o && Number.isFinite(n.at) && n.at > 0 ? n.at : i
|
|
16404
|
-
}, c =
|
|
16446
|
+
}, c = Fv(n.from), l = Fv(n.to);
|
|
16405
16447
|
return c !== void 0 && (s.from = c), l !== void 0 && (s.to = l), s;
|
|
16406
16448
|
}
|
|
16407
|
-
async function
|
|
16408
|
-
let i =
|
|
16449
|
+
async function Lv(e, t, n, r = {}) {
|
|
16450
|
+
let i = Pv(e);
|
|
16409
16451
|
if (!i || !t || !String(n || "").trim()) {
|
|
16410
16452
|
console.error(`logHistory('${e}', '${t}', '${n}'): a history line needs the record's own collection (mem_, admin_ or role_<id>_ — never an admin_ one when the team makes the changes), the record's id, and what was done.`);
|
|
16411
16453
|
return;
|
|
16412
16454
|
}
|
|
16413
16455
|
try {
|
|
16414
|
-
await oo(lo(G, i),
|
|
16456
|
+
await oo(lo(G, i), Iv(t, n, r, Pe?.currentUser || null));
|
|
16415
16457
|
} catch (e) {
|
|
16416
16458
|
console.warn(`logHistory: the line "${n}" could not be saved — ${ke(e, "the database refused it.")}`);
|
|
16417
16459
|
}
|
|
16418
16460
|
}
|
|
16419
|
-
function
|
|
16420
|
-
let n =
|
|
16461
|
+
function Rv(e, t) {
|
|
16462
|
+
let n = Pv(e), r = String(t || ""), [i, a] = Y({
|
|
16421
16463
|
loading: !0,
|
|
16422
16464
|
error: null,
|
|
16423
16465
|
lines: []
|
|
@@ -16454,7 +16496,7 @@ function Iv(e, t) {
|
|
|
16454
16496
|
}
|
|
16455
16497
|
//#endregion
|
|
16456
16498
|
//#region src/components/MadeBy.tsx
|
|
16457
|
-
var
|
|
16499
|
+
var zv = (e) => {
|
|
16458
16500
|
if (!e) return 0;
|
|
16459
16501
|
if (typeof e == "number") return e;
|
|
16460
16502
|
if (e instanceof Date) return e.getTime();
|
|
@@ -16463,21 +16505,21 @@ var Lv = (e) => {
|
|
|
16463
16505
|
if (typeof t.seconds == "number") return t.seconds * 1e3;
|
|
16464
16506
|
let n = Date.parse(String(e));
|
|
16465
16507
|
return Number.isFinite(n) ? n : 0;
|
|
16466
|
-
},
|
|
16467
|
-
let n =
|
|
16508
|
+
}, Bv = (e, t) => `${e} ${t}${e === 1 ? "" : "s"} ago`, Vv = (e, t = Date.now()) => {
|
|
16509
|
+
let n = zv(e);
|
|
16468
16510
|
if (!n) return "";
|
|
16469
16511
|
let r = Math.floor(Math.max(0, t - n) / 6e4);
|
|
16470
16512
|
if (r < 1) return "just now";
|
|
16471
|
-
if (r < 60) return
|
|
16513
|
+
if (r < 60) return Bv(r, "minute");
|
|
16472
16514
|
let i = Math.floor(r / 60);
|
|
16473
|
-
if (i < 24) return
|
|
16515
|
+
if (i < 24) return Bv(i, "hour");
|
|
16474
16516
|
let a = Math.floor(i / 24);
|
|
16475
|
-
return a === 1 ? "yesterday" : a < 7 ?
|
|
16517
|
+
return a === 1 ? "yesterday" : a < 7 ? Bv(a, "day") : new Date(n).toLocaleDateString(void 0, {
|
|
16476
16518
|
day: "numeric",
|
|
16477
16519
|
month: "short",
|
|
16478
16520
|
year: "numeric"
|
|
16479
16521
|
});
|
|
16480
|
-
},
|
|
16522
|
+
}, Hv = (e, t = !1) => {
|
|
16481
16523
|
if (!e) return null;
|
|
16482
16524
|
if (t) {
|
|
16483
16525
|
let t = String(e.editedName || "").trim();
|
|
@@ -16493,8 +16535,8 @@ var Lv = (e) => {
|
|
|
16493
16535
|
avatar: String(e.creatorAvatar || ""),
|
|
16494
16536
|
at: e.createdAt
|
|
16495
16537
|
} : null;
|
|
16496
|
-
},
|
|
16497
|
-
function
|
|
16538
|
+
}, Uv = (e) => e.split(/\s+/).filter(Boolean).map((e) => e[0]).join("").toUpperCase().slice(0, 2);
|
|
16539
|
+
function Wv({ name: e, avatar: t, size: n = "sm" }) {
|
|
16498
16540
|
let r = n === "md" ? "w-7 h-7 text-[10px]" : "w-5 h-5 text-[8px]";
|
|
16499
16541
|
return t ? /* @__PURE__ */ Z(ae, {
|
|
16500
16542
|
src: t,
|
|
@@ -16503,16 +16545,16 @@ function Hv({ name: e, avatar: t, size: n = "sm" }) {
|
|
|
16503
16545
|
}) : /* @__PURE__ */ Z("span", {
|
|
16504
16546
|
"aria-hidden": "true",
|
|
16505
16547
|
className: g(r, "rounded-full bg-accent/15 text-accent flex items-center justify-center font-extrabold shrink-0"),
|
|
16506
|
-
children:
|
|
16548
|
+
children: Uv(e)
|
|
16507
16549
|
});
|
|
16508
16550
|
}
|
|
16509
|
-
function
|
|
16510
|
-
let o =
|
|
16551
|
+
function Gv({ record: e, edited: t = !1, label: n, noTime: r = !1, size: i = "sm", className: a }) {
|
|
16552
|
+
let o = Hv(e, t);
|
|
16511
16553
|
if (!o) return null;
|
|
16512
|
-
let s = n ?? (t ? "Edited by" : ""), c = r ? "" :
|
|
16554
|
+
let s = n ?? (t ? "Edited by" : ""), c = r ? "" : Vv(o.at);
|
|
16513
16555
|
return /* @__PURE__ */ Q("span", {
|
|
16514
16556
|
className: g("inline-flex items-center gap-2 min-w-0 max-w-full align-middle", a),
|
|
16515
|
-
children: [/* @__PURE__ */ Z(
|
|
16557
|
+
children: [/* @__PURE__ */ Z(Wv, {
|
|
16516
16558
|
name: o.name,
|
|
16517
16559
|
avatar: o.avatar,
|
|
16518
16560
|
size: i
|
|
@@ -16534,7 +16576,7 @@ function Uv({ record: e, edited: t = !1, label: n, noTime: r = !1, size: i = "sm
|
|
|
16534
16576
|
}
|
|
16535
16577
|
//#endregion
|
|
16536
16578
|
//#region src/components/History.tsx
|
|
16537
|
-
var
|
|
16579
|
+
var Kv = (e) => {
|
|
16538
16580
|
let t = new Date(e), n = /* @__PURE__ */ new Date(), r = new Date(n.getFullYear(), n.getMonth(), n.getDate() - 1), i = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
16539
16581
|
return i(t, n) ? "Today" : i(t, r) ? "Yesterday" : t.toLocaleDateString(void 0, {
|
|
16540
16582
|
day: "numeric",
|
|
@@ -16542,10 +16584,10 @@ var Wv = (e) => {
|
|
|
16542
16584
|
year: t.getFullYear() === n.getFullYear() ? void 0 : "numeric"
|
|
16543
16585
|
});
|
|
16544
16586
|
};
|
|
16545
|
-
function
|
|
16587
|
+
function qv(e) {
|
|
16546
16588
|
let t = [];
|
|
16547
16589
|
for (let n of e) {
|
|
16548
|
-
let e =
|
|
16590
|
+
let e = Kv(Number(n.createdAt || 0)), r = t[t.length - 1];
|
|
16549
16591
|
r && r.day === e ? r.lines.push(n) : t.push({
|
|
16550
16592
|
day: e,
|
|
16551
16593
|
lines: [n]
|
|
@@ -16553,8 +16595,8 @@ function Gv(e) {
|
|
|
16553
16595
|
}
|
|
16554
16596
|
return t;
|
|
16555
16597
|
}
|
|
16556
|
-
function
|
|
16557
|
-
let { loading: a, error: o, lines: s } =
|
|
16598
|
+
function Jv({ collection: e, of: t, empty: n = "Nothing has happened to this yet.", max: r, className: i }) {
|
|
16599
|
+
let { loading: a, error: o, lines: s } = Rv(e, t);
|
|
16558
16600
|
return a ? /* @__PURE__ */ Z("div", {
|
|
16559
16601
|
className: g("py-6 flex justify-center", i),
|
|
16560
16602
|
children: /* @__PURE__ */ Z(gi, {})
|
|
@@ -16563,7 +16605,7 @@ function Kv({ collection: e, of: t, empty: n = "Nothing has happened to this yet
|
|
|
16563
16605
|
children: o
|
|
16564
16606
|
}) : s.length ? /* @__PURE__ */ Z("div", {
|
|
16565
16607
|
className: g("flex flex-col gap-6", i),
|
|
16566
|
-
children:
|
|
16608
|
+
children: qv(r ? s.slice(0, r) : s).map((e) => /* @__PURE__ */ Q("section", {
|
|
16567
16609
|
className: "flex flex-col gap-1",
|
|
16568
16610
|
children: [/* @__PURE__ */ Z("h4", {
|
|
16569
16611
|
className: "text-[12px] font-semibold text-foreground/40 mb-1",
|
|
@@ -16589,7 +16631,7 @@ function Kv({ collection: e, of: t, empty: n = "Nothing has happened to this yet
|
|
|
16589
16631
|
})
|
|
16590
16632
|
]
|
|
16591
16633
|
})]
|
|
16592
|
-
}), /* @__PURE__ */ Z(
|
|
16634
|
+
}), /* @__PURE__ */ Z(Gv, { record: e })]
|
|
16593
16635
|
}, e.id))
|
|
16594
16636
|
})]
|
|
16595
16637
|
}, e.day))
|
|
@@ -16600,26 +16642,26 @@ function Kv({ collection: e, of: t, empty: n = "Nothing has happened to this yet
|
|
|
16600
16642
|
}
|
|
16601
16643
|
//#endregion
|
|
16602
16644
|
//#region src/components/Swatch.tsx
|
|
16603
|
-
var
|
|
16604
|
-
function
|
|
16645
|
+
var Yv = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
16646
|
+
function Xv(e) {
|
|
16605
16647
|
let t = String(e ?? "").trim().toLowerCase(), n = t.startsWith("#") ? t : `#${t}`;
|
|
16606
|
-
return
|
|
16648
|
+
return Yv.test(n) ? n.length === 4 ? `#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}` : n : "";
|
|
16607
16649
|
}
|
|
16608
|
-
function
|
|
16650
|
+
function Zv(e) {
|
|
16609
16651
|
let t = Array.isArray(e) ? e : e ? [e] : [], n = [];
|
|
16610
16652
|
for (let e of t) {
|
|
16611
|
-
let t =
|
|
16653
|
+
let t = Xv(e);
|
|
16612
16654
|
t && !n.includes(t) && n.push(t);
|
|
16613
16655
|
}
|
|
16614
16656
|
return n;
|
|
16615
16657
|
}
|
|
16616
|
-
var
|
|
16658
|
+
var Qv = {
|
|
16617
16659
|
sm: "w-5 h-5",
|
|
16618
16660
|
md: "w-7 h-7",
|
|
16619
16661
|
lg: "w-10 h-10"
|
|
16620
|
-
},
|
|
16621
|
-
function
|
|
16622
|
-
let o =
|
|
16662
|
+
}, $v = "shadow-[inset_0_0_0_2px_var(--bg-color),inset_0_0_0_4px_var(--fg-color)]";
|
|
16663
|
+
function ey({ color: e, name: t, size: n = "md", selected: r, onClick: i, className: a }) {
|
|
16664
|
+
let o = Xv(e), s = t || o || "No colour", c = g("inline-block rounded-full shrink-0 border border-foreground/20 transition-shadow", Qv[n], r && $v, a);
|
|
16623
16665
|
return i ? /* @__PURE__ */ Z("button", {
|
|
16624
16666
|
type: "button",
|
|
16625
16667
|
onClick: (e) => {
|
|
@@ -16639,7 +16681,7 @@ function Qv({ color: e, name: t, size: n = "md", selected: r, onClick: i, classN
|
|
|
16639
16681
|
style: { backgroundColor: o || void 0 }
|
|
16640
16682
|
});
|
|
16641
16683
|
}
|
|
16642
|
-
function
|
|
16684
|
+
function ty({ color: e, onPicked: t, label: n, title: r, className: i, children: a }) {
|
|
16643
16685
|
let o = J(null), [s, c] = Y(e), l = J(t);
|
|
16644
16686
|
return q(() => {
|
|
16645
16687
|
l.current = t;
|
|
@@ -16663,12 +16705,12 @@ function $v({ color: e, onPicked: t, label: n, title: r, className: i, children:
|
|
|
16663
16705
|
})]
|
|
16664
16706
|
});
|
|
16665
16707
|
}
|
|
16666
|
-
function
|
|
16667
|
-
let s = La(), c =
|
|
16668
|
-
let t =
|
|
16708
|
+
function ny({ label: e, value: t, onChange: n, multiple: r, max: i = 12, error: a, disabled: o }) {
|
|
16709
|
+
let s = La(), c = Zv(t), [l, u] = Y(""), d = r ? c.length >= i : !1, f = (e) => n(r ? e : e[0] || ""), p = (e) => {
|
|
16710
|
+
let t = Xv(e);
|
|
16669
16711
|
t && (f(r ? c.includes(t) ? c : [...c, t].slice(0, i) : [t]), u(""));
|
|
16670
|
-
}, m =
|
|
16671
|
-
let n =
|
|
16712
|
+
}, m = Xv(l), h = (e, t) => {
|
|
16713
|
+
let n = Xv(t);
|
|
16672
16714
|
!n || n === e || f(c.includes(n) ? c.filter((t) => t !== e) : c.map((t) => t === e ? n : t));
|
|
16673
16715
|
};
|
|
16674
16716
|
return /* @__PURE__ */ Q("div", {
|
|
@@ -16686,13 +16728,13 @@ function ey({ label: e, value: t, onChange: n, multiple: r, max: i = 12, error:
|
|
|
16686
16728
|
style: { borderRadius: "var(--input-radius, 0.75rem)" },
|
|
16687
16729
|
children: [c.map((e) => /* @__PURE__ */ Q("span", {
|
|
16688
16730
|
className: "relative inline-flex group",
|
|
16689
|
-
children: [/* @__PURE__ */ Z(
|
|
16731
|
+
children: [/* @__PURE__ */ Z(ty, {
|
|
16690
16732
|
color: e,
|
|
16691
16733
|
onPicked: (t) => h(e, t),
|
|
16692
16734
|
label: `Change ${e}`,
|
|
16693
16735
|
title: `${e} — press to change it`,
|
|
16694
16736
|
className: "rounded-full",
|
|
16695
|
-
children: /* @__PURE__ */ Z(
|
|
16737
|
+
children: /* @__PURE__ */ Z(ey, {
|
|
16696
16738
|
color: e,
|
|
16697
16739
|
size: "lg"
|
|
16698
16740
|
})
|
|
@@ -16709,7 +16751,7 @@ function ey({ label: e, value: t, onChange: n, multiple: r, max: i = 12, error:
|
|
|
16709
16751
|
}, e)), !d && /* @__PURE__ */ Q("span", {
|
|
16710
16752
|
className: "inline-flex items-center gap-2 min-w-0",
|
|
16711
16753
|
children: [
|
|
16712
|
-
/* @__PURE__ */ Z(
|
|
16754
|
+
/* @__PURE__ */ Z(ty, {
|
|
16713
16755
|
color: "#c8b6a6",
|
|
16714
16756
|
onPicked: p,
|
|
16715
16757
|
label: r ? "Pick a colour to add" : "Pick a colour",
|
|
@@ -16733,7 +16775,7 @@ function ey({ label: e, value: t, onChange: n, multiple: r, max: i = 12, error:
|
|
|
16733
16775
|
onBlur: () => p(l),
|
|
16734
16776
|
className: "w-24 bg-transparent text-[14px] text-foreground placeholder:text-foreground/30 focus:outline-none border-b border-transparent focus:border-accent py-1"
|
|
16735
16777
|
}),
|
|
16736
|
-
m && /* @__PURE__ */ Z(
|
|
16778
|
+
m && /* @__PURE__ */ Z(ey, {
|
|
16737
16779
|
color: m,
|
|
16738
16780
|
size: "sm"
|
|
16739
16781
|
})
|
|
@@ -16749,19 +16791,19 @@ function ey({ label: e, value: t, onChange: n, multiple: r, max: i = 12, error:
|
|
|
16749
16791
|
}
|
|
16750
16792
|
//#endregion
|
|
16751
16793
|
//#region src/components/NumberStepper.tsx
|
|
16752
|
-
var
|
|
16794
|
+
var ry = 700, iy = (e) => {
|
|
16753
16795
|
let t = String(e), n = t.indexOf(".");
|
|
16754
16796
|
return n < 0 ? 0 : t.length - n - 1;
|
|
16755
16797
|
};
|
|
16756
|
-
function
|
|
16798
|
+
function ay(e, { min: t = 0, max: n, step: r = 1 } = {}) {
|
|
16757
16799
|
let i = String(e ?? "").trim().replace(",", ".");
|
|
16758
16800
|
if (!i) return null;
|
|
16759
16801
|
let a = Number(i);
|
|
16760
16802
|
if (!Number.isFinite(a)) return null;
|
|
16761
|
-
let o =
|
|
16803
|
+
let o = iy(r), s = Number(a.toFixed(o)), c = n != null && Number.isFinite(Number(n)) ? Number(n) : Infinity;
|
|
16762
16804
|
return Math.min(c, Math.max(t, s));
|
|
16763
16805
|
}
|
|
16764
|
-
var
|
|
16806
|
+
var oy = {
|
|
16765
16807
|
sm: {
|
|
16766
16808
|
button: "w-9 h-9",
|
|
16767
16809
|
icon: "w-3.5 h-3.5",
|
|
@@ -16773,12 +16815,12 @@ var iy = {
|
|
|
16773
16815
|
box: "text-[15px]"
|
|
16774
16816
|
}
|
|
16775
16817
|
};
|
|
16776
|
-
function
|
|
16818
|
+
function sy({ label: e, name: t, value: n, onChange: r, onSettled: i, min: a = 0, max: o, step: s = 1, size: c = "md", error: l, disabled: u, className: d }) {
|
|
16777
16819
|
let f = La(), p = {
|
|
16778
16820
|
min: a,
|
|
16779
16821
|
max: o,
|
|
16780
16822
|
step: s
|
|
16781
|
-
}, m =
|
|
16823
|
+
}, m = ay(n, p) ?? a, [h, _] = Y(null), [v, y] = Y(null), [b, x] = Y(n);
|
|
16782
16824
|
n !== b && (x(n), y(null));
|
|
16783
16825
|
let S = v ?? m, C = J(null), w = J(m), T = J(null), E = J(i);
|
|
16784
16826
|
q(() => {
|
|
@@ -16791,19 +16833,19 @@ function ay({ label: e, name: t, value: n, onChange: r, onSettled: i, min: a = 0
|
|
|
16791
16833
|
};
|
|
16792
16834
|
q(() => D, []);
|
|
16793
16835
|
let ee = (e) => {
|
|
16794
|
-
y(e), e !== (C.current == null ? m : w.current) && (C.current ??= m, w.current = e, r(e), T.current != null && window.clearTimeout(T.current), T.current = window.setTimeout(D,
|
|
16795
|
-
}, O = () => (h == null ? null :
|
|
16796
|
-
let t =
|
|
16836
|
+
y(e), e !== (C.current == null ? m : w.current) && (C.current ??= m, w.current = e, r(e), T.current != null && window.clearTimeout(T.current), T.current = window.setTimeout(D, ry));
|
|
16837
|
+
}, O = () => (h == null ? null : ay(h, p)) ?? S, k = (e) => {
|
|
16838
|
+
let t = ay(O() + e, p);
|
|
16797
16839
|
t != null && (_(null), ee(t));
|
|
16798
|
-
}, A =
|
|
16840
|
+
}, A = iy(s) > 0, j = A ? /[^0-9.,-]/g : /[^0-9-]/g, M = (e) => {
|
|
16799
16841
|
let t = e.replace(j, "");
|
|
16800
16842
|
_(t);
|
|
16801
16843
|
let n = Number(t.replace(",", "."));
|
|
16802
|
-
t && Number.isFinite(n) &&
|
|
16844
|
+
t && Number.isFinite(n) && ay(t, p) === n && ee(n);
|
|
16803
16845
|
}, N = () => {
|
|
16804
|
-
let e = h == null ? null :
|
|
16846
|
+
let e = h == null ? null : ay(h, p);
|
|
16805
16847
|
_(null), e != null && ee(e), D();
|
|
16806
|
-
}, te = h ?? String(S), ne = t || e || "", re = S <= a, ie = o != null && S >= Number(o), P =
|
|
16848
|
+
}, te = h ?? String(S), ne = t || e || "", re = S <= a, ie = o != null && S >= Number(o), P = oy[c], F = g(P.button, "inline-flex items-center justify-center rounded-full shrink-0 text-foreground/70 hover:text-foreground hover:bg-foreground/5 transition-colors cursor-pointer", "focus:outline-none focus-visible:ring-2 focus-visible:ring-accent disabled:opacity-25 disabled:cursor-default disabled:hover:bg-transparent");
|
|
16807
16849
|
return /* @__PURE__ */ Q("div", {
|
|
16808
16850
|
className: g("inline-flex flex-col", d),
|
|
16809
16851
|
children: [
|
|
@@ -16868,25 +16910,25 @@ function ay({ label: e, name: t, value: n, onChange: r, onSettled: i, min: a = 0
|
|
|
16868
16910
|
]
|
|
16869
16911
|
});
|
|
16870
16912
|
}
|
|
16871
|
-
|
|
16913
|
+
sy.displayName = "NumberStepper";
|
|
16872
16914
|
//#endregion
|
|
16873
16915
|
//#region src/components/Bars.tsx
|
|
16874
|
-
var
|
|
16916
|
+
var cy = (e) => {
|
|
16875
16917
|
let t = Number(e);
|
|
16876
16918
|
return Number.isFinite(t) && t > 0 ? t : 0;
|
|
16877
16919
|
};
|
|
16878
|
-
function
|
|
16879
|
-
let n = e.map(
|
|
16920
|
+
function ly(e, t) {
|
|
16921
|
+
let n = e.map(cy), r = Math.max(cy(t), ...n, 0);
|
|
16880
16922
|
return r ? n.map((e) => e ? Math.max(1, Math.round(e / r * 1e3) / 10) : 0) : n.map(() => 0);
|
|
16881
16923
|
}
|
|
16882
|
-
var
|
|
16883
|
-
function
|
|
16924
|
+
var uy = (e) => e.toLocaleString();
|
|
16925
|
+
function dy({ items: e, max: t, format: n = uy, size: r = "md", label: i, className: a }) {
|
|
16884
16926
|
let [o, s] = Y(!1);
|
|
16885
16927
|
q(() => {
|
|
16886
16928
|
let e = requestAnimationFrame(() => s(!0));
|
|
16887
16929
|
return () => cancelAnimationFrame(e);
|
|
16888
16930
|
}, []);
|
|
16889
|
-
let c =
|
|
16931
|
+
let c = ly(e.map((e) => e.value), t), l = r === "sm";
|
|
16890
16932
|
return /* @__PURE__ */ Z("ul", {
|
|
16891
16933
|
"aria-label": i,
|
|
16892
16934
|
className: g("flex flex-col min-w-0", l ? "gap-2" : "gap-3.5", a),
|
|
@@ -16901,7 +16943,7 @@ function ly({ items: e, max: t, format: n = cy, size: r = "md", label: i, classN
|
|
|
16901
16943
|
className: "shrink-0 tabular-nums",
|
|
16902
16944
|
children: [/* @__PURE__ */ Z("span", {
|
|
16903
16945
|
className: "font-semibold text-foreground",
|
|
16904
|
-
children: n(
|
|
16946
|
+
children: n(cy(e.value))
|
|
16905
16947
|
}), e.note && /* @__PURE__ */ Q("span", {
|
|
16906
16948
|
className: "text-foreground/45",
|
|
16907
16949
|
children: [" · ", e.note]
|
|
@@ -16920,10 +16962,10 @@ function ly({ items: e, max: t, format: n = cy, size: r = "md", label: i, classN
|
|
|
16920
16962
|
}
|
|
16921
16963
|
//#endregion
|
|
16922
16964
|
//#region src/components/HandOver.tsx
|
|
16923
|
-
var
|
|
16965
|
+
var fy = (...e) => {
|
|
16924
16966
|
for (let t of e) if (typeof t == "string" && t.trim()) return t.trim();
|
|
16925
16967
|
return "";
|
|
16926
|
-
},
|
|
16968
|
+
}, py = [
|
|
16927
16969
|
"assigneeUid",
|
|
16928
16970
|
"assigneeId",
|
|
16929
16971
|
"assigneeName",
|
|
@@ -16932,18 +16974,18 @@ var uy = (...e) => {
|
|
|
16932
16974
|
"assigneeAvatar",
|
|
16933
16975
|
"assignedToUid",
|
|
16934
16976
|
"assignedToName"
|
|
16935
|
-
],
|
|
16977
|
+
], my = (e) => {
|
|
16936
16978
|
if (!e) return null;
|
|
16937
|
-
let t = "heldByUid" in e || "heldByName" in e, n = t ?
|
|
16979
|
+
let t = "heldByUid" in e || "heldByName" in e, n = t ? fy(e.heldByUid) : fy(e.assigneeUid, e.assignedToUid, e.assigneeId), r = t ? fy(e.heldByName) : fy(e.assigneeName, e.assignedToName);
|
|
16938
16980
|
return !n && !r ? null : {
|
|
16939
16981
|
uid: n,
|
|
16940
16982
|
name: r,
|
|
16941
|
-
photo: t ?
|
|
16983
|
+
photo: t ? fy(e.heldByPhoto) : fy(e.assigneePhoto, e.assigneeAvatar)
|
|
16942
16984
|
};
|
|
16943
|
-
},
|
|
16944
|
-
function
|
|
16945
|
-
let r =
|
|
16946
|
-
for (let t of
|
|
16985
|
+
}, hy = (e) => Array.isArray(e) ? e.filter((e) => typeof e == "string" && !!e) : null;
|
|
16986
|
+
function gy(e, t, n = Date.now()) {
|
|
16987
|
+
let r = my(e), i = r?.uid && r.uid !== t?.uid && r.uid !== e.uid ? on(r.uid) : "", a = t?.uid ? on(t.uid) : "", o = hy(e.access), s = hy(e.editors), c = (e) => [...new Set([...e.filter((e) => e !== i), ...a ? [a] : []])], l = {};
|
|
16988
|
+
for (let t of py) t in e && (l[t] = fo());
|
|
16947
16989
|
return {
|
|
16948
16990
|
...l,
|
|
16949
16991
|
...o && s ? {
|
|
@@ -16962,11 +17004,11 @@ function my(e, t, n = Date.now()) {
|
|
|
16962
17004
|
heldAt: n
|
|
16963
17005
|
};
|
|
16964
17006
|
}
|
|
16965
|
-
var
|
|
16966
|
-
function
|
|
17007
|
+
var _y = "";
|
|
17008
|
+
function vy({ person: e, small: t }) {
|
|
16967
17009
|
return /* @__PURE__ */ Q("span", {
|
|
16968
17010
|
className: "inline-flex min-w-0 max-w-full items-center gap-2 align-middle",
|
|
16969
|
-
children: [/* @__PURE__ */ Z(
|
|
17011
|
+
children: [/* @__PURE__ */ Z(Wv, {
|
|
16970
17012
|
name: e.name,
|
|
16971
17013
|
avatar: e.photo,
|
|
16972
17014
|
size: t ? "sm" : "md"
|
|
@@ -16983,8 +17025,8 @@ function gy({ person: e, small: t }) {
|
|
|
16983
17025
|
})]
|
|
16984
17026
|
});
|
|
16985
17027
|
}
|
|
16986
|
-
function
|
|
16987
|
-
let { user: u, userRole: d, isAdmin: f } = O(), p = String(u?.uid || ""), m = za(() => p ? Dn(p, d) : [], [p, d]), h = It(t), _ = !s && !!e?.id && h && !!p && (f || rn(e, m)) && pa(e, f ? "admin" : d), v = Ea(_ ? n : ""), [y, b] = Y(void 0), x =
|
|
17028
|
+
function yy({ entry: e, collection: t, role: n = "internal", name: r = "", link: i, label: a, compact: o = !1, readOnly: s = !1, onHanded: c, className: l }) {
|
|
17029
|
+
let { user: u, userRole: d, isAdmin: f } = O(), p = String(u?.uid || ""), m = za(() => p ? Dn(p, d) : [], [p, d]), h = It(t), _ = !s && !!e?.id && h && !!p && (f || rn(e, m)) && pa(e, f ? "admin" : d), v = Ea(_ ? n : ""), [y, b] = Y(void 0), x = my(e), S = y === void 0 ? x : y, C = S?.uid ? v.people.find((e) => e.uid === S.uid) : void 0, w = S ? {
|
|
16988
17030
|
uid: S.uid,
|
|
16989
17031
|
name: C?.name || S.name || "Somebody",
|
|
16990
17032
|
photo: C?.photo || S.photo
|
|
@@ -16998,7 +17040,7 @@ function _y({ entry: e, collection: t, role: n = "internal", name: r = "", link:
|
|
|
16998
17040
|
let e = /* @__PURE__ */ Z("span", {
|
|
16999
17041
|
"data-handover": "holder",
|
|
17000
17042
|
className: g("inline-flex min-w-0 max-w-full items-center font-semibold text-foreground/70", o ? "text-xs" : "text-sm", T ? "" : l),
|
|
17001
|
-
children: w ? /* @__PURE__ */ Z(
|
|
17043
|
+
children: w ? /* @__PURE__ */ Z(vy, {
|
|
17002
17044
|
person: w,
|
|
17003
17045
|
small: o
|
|
17004
17046
|
}) : /* @__PURE__ */ Z("span", {
|
|
@@ -17012,7 +17054,7 @@ function _y({ entry: e, collection: t, role: n = "internal", name: r = "", link:
|
|
|
17012
17054
|
}) : e;
|
|
17013
17055
|
}
|
|
17014
17056
|
let D = async (n) => {
|
|
17015
|
-
if (n === (S?.uid ||
|
|
17057
|
+
if (n === (S?.uid || _y) || y !== void 0) return;
|
|
17016
17058
|
let a = n ? v.people.find((e) => e.uid === n) : null;
|
|
17017
17059
|
if (n && !a) return;
|
|
17018
17060
|
let o = a ? {
|
|
@@ -17028,7 +17070,7 @@ function _y({ entry: e, collection: t, role: n = "internal", name: r = "", link:
|
|
|
17028
17070
|
if (!r.exists()) throw Object.assign(/* @__PURE__ */ Error("That one is not there any more."), { code: "not-found" });
|
|
17029
17071
|
t.update(n, {
|
|
17030
17072
|
...rd(u),
|
|
17031
|
-
...
|
|
17073
|
+
...gy({
|
|
17032
17074
|
...r.data(),
|
|
17033
17075
|
id: e.id
|
|
17034
17076
|
}, o)
|
|
@@ -17036,7 +17078,7 @@ function _y({ entry: e, collection: t, role: n = "internal", name: r = "", link:
|
|
|
17036
17078
|
}), Zr(o ? `Handed to ${o.name}` : "Taken back"), o && o.uid !== p && uc({
|
|
17037
17079
|
toUid: o.uid,
|
|
17038
17080
|
title: r ? `${r} is yours now` : "Something was handed to you",
|
|
17039
|
-
body: `${
|
|
17081
|
+
body: `${fy(u?.displayName, String(u?.email || "").split("@")[0]) || "Somebody"} handed it to you.`,
|
|
17040
17082
|
link: i || (typeof window < "u" ? window.location.pathname : "")
|
|
17041
17083
|
}), c?.(o);
|
|
17042
17084
|
} catch (e) {
|
|
@@ -17053,7 +17095,7 @@ function _y({ entry: e, collection: t, role: n = "internal", name: r = "", link:
|
|
|
17053
17095
|
E,
|
|
17054
17096
|
w && /* @__PURE__ */ Z("span", {
|
|
17055
17097
|
className: "text-sm font-semibold text-foreground/70",
|
|
17056
|
-
children: /* @__PURE__ */ Z(
|
|
17098
|
+
children: /* @__PURE__ */ Z(vy, {
|
|
17057
17099
|
person: w,
|
|
17058
17100
|
small: o
|
|
17059
17101
|
})
|
|
@@ -17066,7 +17108,7 @@ function _y({ entry: e, collection: t, role: n = "internal", name: r = "", link:
|
|
|
17066
17108
|
});
|
|
17067
17109
|
let A = [
|
|
17068
17110
|
...w ? [{
|
|
17069
|
-
value:
|
|
17111
|
+
value: _y,
|
|
17070
17112
|
label: /* @__PURE__ */ Z("span", {
|
|
17071
17113
|
className: "text-foreground/60",
|
|
17072
17114
|
children: "Nobody"
|
|
@@ -17074,7 +17116,7 @@ function _y({ entry: e, collection: t, role: n = "internal", name: r = "", link:
|
|
|
17074
17116
|
}] : [],
|
|
17075
17117
|
...w && w.uid && !C ? [{
|
|
17076
17118
|
value: w.uid,
|
|
17077
|
-
label: /* @__PURE__ */ Z(
|
|
17119
|
+
label: /* @__PURE__ */ Z(vy, {
|
|
17078
17120
|
person: w,
|
|
17079
17121
|
small: !0
|
|
17080
17122
|
}),
|
|
@@ -17082,7 +17124,7 @@ function _y({ entry: e, collection: t, role: n = "internal", name: r = "", link:
|
|
|
17082
17124
|
}] : [],
|
|
17083
17125
|
...v.people.map((e) => ({
|
|
17084
17126
|
value: e.uid,
|
|
17085
|
-
label: /* @__PURE__ */ Z(
|
|
17127
|
+
label: /* @__PURE__ */ Z(vy, {
|
|
17086
17128
|
person: e,
|
|
17087
17129
|
small: !0
|
|
17088
17130
|
})
|
|
@@ -17099,7 +17141,7 @@ function _y({ entry: e, collection: t, role: n = "internal", name: r = "", link:
|
|
|
17099
17141
|
direction: "auto",
|
|
17100
17142
|
label: o ? void 0 : a,
|
|
17101
17143
|
ariaLabel: a || "Hand to somebody",
|
|
17102
|
-
value: w?.uid ||
|
|
17144
|
+
value: w?.uid || _y,
|
|
17103
17145
|
disabled: v.loading || y !== void 0,
|
|
17104
17146
|
placeholder: /* @__PURE__ */ Z("span", {
|
|
17105
17147
|
className: "text-foreground/50",
|
|
@@ -17107,7 +17149,7 @@ function _y({ entry: e, collection: t, role: n = "internal", name: r = "", link:
|
|
|
17107
17149
|
}),
|
|
17108
17150
|
options: v.loading && w ? [{
|
|
17109
17151
|
value: w.uid,
|
|
17110
|
-
label: /* @__PURE__ */ Z(
|
|
17152
|
+
label: /* @__PURE__ */ Z(vy, {
|
|
17111
17153
|
person: w,
|
|
17112
17154
|
small: !0
|
|
17113
17155
|
})
|
|
@@ -17116,14 +17158,14 @@ function _y({ entry: e, collection: t, role: n = "internal", name: r = "", link:
|
|
|
17116
17158
|
})
|
|
17117
17159
|
});
|
|
17118
17160
|
}
|
|
17119
|
-
|
|
17161
|
+
yy.displayName = "HandOver";
|
|
17120
17162
|
//#endregion
|
|
17121
17163
|
//#region src/lib/steps.ts
|
|
17122
|
-
var
|
|
17123
|
-
function
|
|
17164
|
+
var by = (e) => e.replace(/[-_]+/g, " ").replace(/^./, (e) => e.toUpperCase());
|
|
17165
|
+
function xy(e, t = {}) {
|
|
17124
17166
|
let n = t.param || "step", [r, i] = zo(), a = za(() => e.map((e) => typeof e == "string" ? {
|
|
17125
17167
|
id: e,
|
|
17126
|
-
label:
|
|
17168
|
+
label: by(e)
|
|
17127
17169
|
} : e), [e.map((e) => typeof e == "string" ? e : `${e.id}:${e.label}`).join("|")]), o = r.get(n), s = a.findIndex((e) => e.id === o), c = s < 0 ? 0 : s, l = a[c]?.id ?? "", u = zn(), d = J(u);
|
|
17128
17170
|
d.current = u;
|
|
17129
17171
|
let f = Fa((e) => {
|
|
@@ -17178,7 +17220,7 @@ function yy(e, t = {}) {
|
|
|
17178
17220
|
}
|
|
17179
17221
|
//#endregion
|
|
17180
17222
|
//#region src/components/StepBar.tsx
|
|
17181
|
-
function
|
|
17223
|
+
function Sy({ steps: e, current: t, onGo: n, free: r = !1, className: i }) {
|
|
17182
17224
|
let a = J(null), o = e.findIndex((e) => e.id === t), s = o < 0 ? 0 : o, c = J(!0);
|
|
17183
17225
|
if (q(() => {
|
|
17184
17226
|
if (c.current) {
|
|
@@ -17222,7 +17264,7 @@ function by({ steps: e, current: t, onGo: n, free: r = !1, className: i }) {
|
|
|
17222
17264
|
className: "items-center gap-2 max-sm:hidden sm:flex",
|
|
17223
17265
|
children: e.map((t, i) => {
|
|
17224
17266
|
let a = i < s, o = i === s, c = !!n && !o && (a || r), l = /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("span", {
|
|
17225
|
-
className: g("flex h-7 w-7 shrink-0 items-center justify-center rounded-full border text-[12px] font-bold transition-colors", o && "border-transparent
|
|
17267
|
+
className: g("flex h-7 w-7 shrink-0 items-center justify-center rounded-full border text-[12px] font-bold transition-colors", o && "border-transparent [background:var(--button-bg)] text-[var(--button-fg)]", a && "border-accent/40 bg-accent/10 text-accent", !o && !a && "border-[var(--panel-border)] text-foreground/40"),
|
|
17226
17268
|
children: a ? /* @__PURE__ */ Z(b, {
|
|
17227
17269
|
className: "h-3.5 w-3.5",
|
|
17228
17270
|
"aria-hidden": "true"
|
|
@@ -17251,11 +17293,11 @@ function by({ steps: e, current: t, onGo: n, free: r = !1, className: i }) {
|
|
|
17251
17293
|
})]
|
|
17252
17294
|
});
|
|
17253
17295
|
}
|
|
17254
|
-
|
|
17296
|
+
Sy.displayName = "StepBar";
|
|
17255
17297
|
//#endregion
|
|
17256
17298
|
//#region src/components/Lightbox.tsx
|
|
17257
|
-
var
|
|
17258
|
-
function
|
|
17299
|
+
var Cy = 48, wy = 8, Ty = 2.5, Ey = 5;
|
|
17300
|
+
function Dy(e, t) {
|
|
17259
17301
|
if (!t || t.width <= 0 || t.height <= 0 || e.width <= 0 || e.height <= 0) return {
|
|
17260
17302
|
x: [0, 1],
|
|
17261
17303
|
y: [0, 1]
|
|
@@ -17266,14 +17308,14 @@ function Ty(e, t) {
|
|
|
17266
17308
|
y: [(1 - i) / 2, (1 + i) / 2]
|
|
17267
17309
|
};
|
|
17268
17310
|
}
|
|
17269
|
-
function
|
|
17311
|
+
function Oy(e, [t, n]) {
|
|
17270
17312
|
if (e <= 1) return [.5, .5];
|
|
17271
17313
|
if (e * (n - t) >= 1) return [e * t / (e - 1), (e * n - 1) / (e - 1)];
|
|
17272
17314
|
let r = (e * ((t + n) / 2) - .5) / (e - 1);
|
|
17273
17315
|
return [r, r];
|
|
17274
17316
|
}
|
|
17275
|
-
var
|
|
17276
|
-
function
|
|
17317
|
+
var ky = (e, [t, n]) => Math.min(n, Math.max(t, e));
|
|
17318
|
+
function Ay({ pictures: e, index: t, onIndex: n, onClose: r, zoom: i = !1 }) {
|
|
17277
17319
|
let a = (Array.isArray(e) ? e : []).map((e) => typeof e == "string" ? { src: e } : e && typeof e == "object" && typeof e.src == "string" ? e : { src: "" }), o = t !== null && t >= 0 && t < a.length, s = o ? t : 0, c = a.length > 1, l = Ze(), u = J(() => {}), d = J(null);
|
|
17278
17320
|
q(() => {
|
|
17279
17321
|
u.current = (e) => {
|
|
@@ -17321,7 +17363,7 @@ function Oy({ pictures: e, index: t, onIndex: n, onClose: r, zoom: i = !1 }) {
|
|
|
17321
17363
|
height: r.naturalHeight
|
|
17322
17364
|
} : void 0), a = {
|
|
17323
17365
|
box: n,
|
|
17324
|
-
span:
|
|
17366
|
+
span: Dy(n, i),
|
|
17325
17367
|
exact: !!i && n.width > 0 && n.height > 0
|
|
17326
17368
|
};
|
|
17327
17369
|
return d.current = a, a;
|
|
@@ -17337,12 +17379,12 @@ function Oy({ pictures: e, index: t, onIndex: n, onClose: r, zoom: i = !1 }) {
|
|
|
17337
17379
|
let { span: i } = C();
|
|
17338
17380
|
return {
|
|
17339
17381
|
s: e,
|
|
17340
|
-
x:
|
|
17341
|
-
y:
|
|
17382
|
+
x: ky(t, Oy(e, i.x)),
|
|
17383
|
+
y: ky(n, Oy(e, i.y)),
|
|
17342
17384
|
by: r
|
|
17343
17385
|
};
|
|
17344
17386
|
}, E = (e, t, n, r) => {
|
|
17345
|
-
let { box: i, span: a } = C(), o = i.width ? Math.min(1, Math.max(0, (e - i.left) / i.width)) : .5, s = i.height ? Math.min(1, Math.max(0, (t - i.top) / i.height)) : .5, [c, l] =
|
|
17387
|
+
let { box: i, span: a } = C(), o = i.width ? Math.min(1, Math.max(0, (e - i.left) / i.width)) : .5, s = i.height ? Math.min(1, Math.max(0, (t - i.top) / i.height)) : .5, [c, l] = Oy(n, a.x), [u, d] = Oy(n, a.y);
|
|
17346
17388
|
return {
|
|
17347
17389
|
s: n,
|
|
17348
17390
|
x: c + o * (l - c),
|
|
@@ -17396,14 +17438,14 @@ function Oy({ pictures: e, index: t, onIndex: n, onClose: r, zoom: i = !1 }) {
|
|
|
17396
17438
|
let t = S.current;
|
|
17397
17439
|
if (!t) return;
|
|
17398
17440
|
if (t.pinch && x.current.size >= 2) {
|
|
17399
|
-
h(T(Math.min(
|
|
17441
|
+
h(T(Math.min(Ey, Math.max(1, t.pinch.s * D() / t.pinch.dist)), m.x, m.y, "finger"));
|
|
17400
17442
|
return;
|
|
17401
17443
|
}
|
|
17402
17444
|
let n = e.clientX - t.last.x, r = e.clientY - t.last.y;
|
|
17403
17445
|
if (t.last = {
|
|
17404
17446
|
x: e.clientX,
|
|
17405
17447
|
y: e.clientY
|
|
17406
|
-
}, Math.hypot(e.clientX - t.x, e.clientY - t.y) >
|
|
17448
|
+
}, Math.hypot(e.clientX - t.x, e.clientY - t.y) > wy && (t.moved = !0), !y) return;
|
|
17407
17449
|
if (e.pointerType === "mouse") {
|
|
17408
17450
|
h(E(e.clientX, e.clientY, m.s, "mouse"));
|
|
17409
17451
|
return;
|
|
@@ -17430,17 +17472,17 @@ function Oy({ pictures: e, index: t, onIndex: n, onClose: r, zoom: i = !1 }) {
|
|
|
17430
17472
|
});
|
|
17431
17473
|
return;
|
|
17432
17474
|
}
|
|
17433
|
-
if (!t.moved && Math.hypot(e.clientX - t.x, e.clientY - t.y) <=
|
|
17475
|
+
if (!t.moved && Math.hypot(e.clientX - t.x, e.clientY - t.y) <= wy) {
|
|
17434
17476
|
h(y ? {
|
|
17435
17477
|
...m,
|
|
17436
17478
|
s: 1,
|
|
17437
17479
|
by: "press"
|
|
17438
|
-
} : E(e.clientX, e.clientY,
|
|
17480
|
+
} : E(e.clientX, e.clientY, Ty, "press"));
|
|
17439
17481
|
return;
|
|
17440
17482
|
}
|
|
17441
17483
|
if (y) return;
|
|
17442
17484
|
let n = e.clientX - t.x;
|
|
17443
|
-
Math.abs(n) >
|
|
17485
|
+
Math.abs(n) > Cy && Math.abs(n) > Math.abs(e.clientY - t.y) * 1.5 && u.current(n < 0 ? 1 : -1);
|
|
17444
17486
|
}, A = (e) => {
|
|
17445
17487
|
x.current.delete(e.pointerId), x.current.size || (S.current = null);
|
|
17446
17488
|
}, j = "cubic-bezier(0.22, 1, 0.36, 1)", M = l || m.by === "finger" || m.by === "mouse" ? "none" : `transform 350ms ${j}, transform-origin 350ms ${j}`, N = "absolute z-10 flex h-11 w-11 items-center justify-center rounded-full border border-[var(--panel-border)] bg-background/80 text-foreground backdrop-blur-sm transition-colors hover:bg-background focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/40 cursor-pointer";
|
|
@@ -17512,7 +17554,7 @@ function Oy({ pictures: e, index: t, onIndex: n, onClose: r, zoom: i = !1 }) {
|
|
|
17512
17554
|
...m,
|
|
17513
17555
|
s: 1,
|
|
17514
17556
|
by: "press"
|
|
17515
|
-
} : T(
|
|
17557
|
+
} : T(Ty, .5, .5, "press")),
|
|
17516
17558
|
className: `${N} bottom-3 right-3`,
|
|
17517
17559
|
children: Z(y ? Sr : _r, {
|
|
17518
17560
|
className: "h-5 w-5",
|
|
@@ -17527,13 +17569,13 @@ function Oy({ pictures: e, index: t, onIndex: n, onClose: r, zoom: i = !1 }) {
|
|
|
17527
17569
|
})
|
|
17528
17570
|
});
|
|
17529
17571
|
}
|
|
17530
|
-
|
|
17572
|
+
Ay.displayName = "Lightbox";
|
|
17531
17573
|
//#endregion
|
|
17532
17574
|
//#region src/components/Article.tsx
|
|
17533
|
-
var
|
|
17534
|
-
function
|
|
17575
|
+
var jy = /^(?:https?:\/\/|mailto:|tel:|\/(?!\/))/i, My = /\*\*([^*]+)\*\*|\*([^*\n]+)\*|\[([^\]]+)\]\(([^)\s]+)\)|(https?:\/\/[^\s<>()]+[^\s<>().,;:!?'"])/g;
|
|
17576
|
+
function Ny(e, t) {
|
|
17535
17577
|
let n = [], r = 0, i = 0;
|
|
17536
|
-
for (let a of e.matchAll(
|
|
17578
|
+
for (let a of e.matchAll(My)) {
|
|
17537
17579
|
let o = a.index ?? 0;
|
|
17538
17580
|
o > r && n.push(e.slice(r, o));
|
|
17539
17581
|
let s = `${t}-${i++}`;
|
|
@@ -17544,7 +17586,7 @@ function jy(e, t) {
|
|
|
17544
17586
|
else if (a[2] != null) n.push(/* @__PURE__ */ Z("em", { children: a[2] }, s));
|
|
17545
17587
|
else {
|
|
17546
17588
|
let e = a[4] ?? a[5], t = a[3] ?? a[5];
|
|
17547
|
-
if (e &&
|
|
17589
|
+
if (e && jy.test(e)) {
|
|
17548
17590
|
let r = /^https?:/i.test(e);
|
|
17549
17591
|
n.push(/* @__PURE__ */ Z("a", {
|
|
17550
17592
|
href: e,
|
|
@@ -17561,22 +17603,22 @@ function jy(e, t) {
|
|
|
17561
17603
|
}
|
|
17562
17604
|
return r < e.length && n.push(e.slice(r)), n;
|
|
17563
17605
|
}
|
|
17564
|
-
var
|
|
17565
|
-
function
|
|
17606
|
+
var Py = (e, t) => e.map((e, n) => /* @__PURE__ */ Q(Aa, { children: [n > 0 && /* @__PURE__ */ Z("br", {}), Ny(e, `${t}-l${n}`)] }, `${t}-l${n}`)), Fy = /^!\[([^\]]*)\]\((https?:\/\/[^)\s]+)\)$/;
|
|
17607
|
+
function Iy({ text: e, className: t }) {
|
|
17566
17608
|
let n = String(e ?? "").replace(/\r\n?/g, "\n").trim();
|
|
17567
17609
|
if (!n) return null;
|
|
17568
17610
|
let r = n.split(/\n{2,}/).map((e) => e.split("\n").map((e) => e.trimEnd()).filter((e) => e.trim() !== "")), i = [];
|
|
17569
17611
|
return r.forEach((e, t) => {
|
|
17570
17612
|
if (!e.length) return;
|
|
17571
|
-
let n = `b${t}`, r = e[0].trim(), a = e.length === 1 && r.match(/^(#{1,3})\s+(.+)$/), o = e.length === 1 && r.match(
|
|
17613
|
+
let n = `b${t}`, r = e[0].trim(), a = e.length === 1 && r.match(/^(#{1,3})\s+(.+)$/), o = e.length === 1 && r.match(Fy);
|
|
17572
17614
|
if (a) {
|
|
17573
17615
|
let e = a[1].length > 1;
|
|
17574
17616
|
i.push(e ? /* @__PURE__ */ Z("h3", {
|
|
17575
17617
|
className: "mt-10 text-xl font-bold tracking-tight text-foreground first:mt-0",
|
|
17576
|
-
children:
|
|
17618
|
+
children: Ny(a[2], n)
|
|
17577
17619
|
}, n) : /* @__PURE__ */ Z("h2", {
|
|
17578
17620
|
className: "mt-12 text-2xl font-bold tracking-tight text-foreground first:mt-0 md:text-3xl",
|
|
17579
|
-
children:
|
|
17621
|
+
children: Ny(a[2], n)
|
|
17580
17622
|
}, n));
|
|
17581
17623
|
} else o ? i.push(/* @__PURE__ */ Z(ae, {
|
|
17582
17624
|
src: o[2],
|
|
@@ -17584,30 +17626,30 @@ function Py({ text: e, className: t }) {
|
|
|
17584
17626
|
className: "my-2 w-full overflow-hidden rounded-2xl"
|
|
17585
17627
|
}, n)) : e.every((e) => /^\s*[-*•]\s+/.test(e)) ? i.push(/* @__PURE__ */ Z("ul", {
|
|
17586
17628
|
className: "list-disc space-y-2 pl-6 marker:text-foreground/40",
|
|
17587
|
-
children: e.map((e, t) => /* @__PURE__ */ Z("li", { children:
|
|
17629
|
+
children: e.map((e, t) => /* @__PURE__ */ Z("li", { children: Ny(e.replace(/^\s*[-*•]\s+/, ""), `${n}-${t}`) }, t))
|
|
17588
17630
|
}, n)) : e.every((e) => /^\s*\d+[.)]\s+/.test(e)) ? i.push(/* @__PURE__ */ Z("ol", {
|
|
17589
17631
|
className: "list-decimal space-y-2 pl-6 marker:font-semibold marker:text-foreground/50",
|
|
17590
|
-
children: e.map((e, t) => /* @__PURE__ */ Z("li", { children:
|
|
17632
|
+
children: e.map((e, t) => /* @__PURE__ */ Z("li", { children: Ny(e.replace(/^\s*\d+[.)]\s+/, ""), `${n}-${t}`) }, t))
|
|
17591
17633
|
}, n)) : e.every((e) => /^\s*>\s?/.test(e)) ? i.push(/* @__PURE__ */ Z("blockquote", {
|
|
17592
17634
|
className: "border-l-2 border-accent/50 pl-5 text-foreground/70 italic",
|
|
17593
|
-
children:
|
|
17594
|
-
}, n)) : i.push(/* @__PURE__ */ Z("p", { children:
|
|
17635
|
+
children: Py(e.map((e) => e.replace(/^\s*>\s?/, "")), n)
|
|
17636
|
+
}, n)) : i.push(/* @__PURE__ */ Z("p", { children: Py(e, n) }, n));
|
|
17595
17637
|
}), /* @__PURE__ */ Z("div", {
|
|
17596
17638
|
className: g("flex w-full max-w-[70ch] flex-col gap-5 text-[17px] leading-8 text-foreground/80 break-words", t),
|
|
17597
17639
|
children: i
|
|
17598
17640
|
});
|
|
17599
17641
|
}
|
|
17600
|
-
|
|
17642
|
+
Iy.displayName = "Article";
|
|
17601
17643
|
//#endregion
|
|
17602
17644
|
//#region src/components/UploadBox.tsx
|
|
17603
|
-
var
|
|
17645
|
+
var Ly = "relative w-[88px] h-[88px] shrink-0 rounded-[var(--card-radius,1rem)] overflow-hidden border border-[var(--panel-border)] bg-[var(--panel-bg)]", Ry = Ly.replace("w-[88px] h-[88px]", "w-[112px] h-[112px]"), zy = (e, t = "") => t.startsWith("image/") || e.startsWith("data:image/") || /\.(?:jpe?g|png|gif|webp|avif|svg)(?:[?#]|$)/i.test(e), By = (e) => {
|
|
17604
17646
|
try {
|
|
17605
17647
|
return t(decodeURIComponent(new URL(e).pathname.split("/o/")[1] || new URL(e).pathname).split("/").pop() || "").replace(/^\d{10,}_[a-z0-9]+_/, "") || "Your file";
|
|
17606
17648
|
} catch {
|
|
17607
17649
|
return "Your file";
|
|
17608
17650
|
}
|
|
17609
17651
|
};
|
|
17610
|
-
function
|
|
17652
|
+
function Vy({ item: e, onStop: t, tile: n = Ly }) {
|
|
17611
17653
|
return /* @__PURE__ */ Q("div", {
|
|
17612
17654
|
className: n,
|
|
17613
17655
|
children: [
|
|
@@ -17647,7 +17689,7 @@ function zy({ item: e, onStop: t, tile: n = Fy }) {
|
|
|
17647
17689
|
]
|
|
17648
17690
|
});
|
|
17649
17691
|
}
|
|
17650
|
-
function
|
|
17692
|
+
function Hy({ value: e, onChange: t, label: n, hint: r, accept: i = "image/*", multiple: a = !1, max: o, sortable: s = !1, shared: c = !1, disabled: l = !1, className: u }) {
|
|
17651
17693
|
let { user: d, userRole: f, isAdmin: p } = O(), m = vn(), _ = m.prefix || (d ? "user_" : "pub_"), [y, b] = Y(""), [x, S] = Y([]), C = J([]), w = J(/* @__PURE__ */ new Map()), T = Array.isArray(e) ? e.filter(Boolean) : e ? [e] : [], E = T.join("\n"), D = J(T);
|
|
17652
17694
|
q(() => {
|
|
17653
17695
|
D.current = E ? E.split("\n") : [];
|
|
@@ -17708,11 +17750,11 @@ function By({ value: e, onChange: t, label: n, hint: r, accept: i = "image/*", m
|
|
|
17708
17750
|
}), L = s && a, R = (e, t) => {
|
|
17709
17751
|
let r = x.find((t) => t.url === e);
|
|
17710
17752
|
return /* @__PURE__ */ Q("div", {
|
|
17711
|
-
className: L ?
|
|
17753
|
+
className: L ? Ry : Ly,
|
|
17712
17754
|
children: [
|
|
17713
|
-
|
|
17755
|
+
zy(e, r?.type) ? /* @__PURE__ */ Z(ae, {
|
|
17714
17756
|
src: e,
|
|
17715
|
-
alt: n ||
|
|
17757
|
+
alt: n || By(e),
|
|
17716
17758
|
className: "absolute inset-0"
|
|
17717
17759
|
}) : /* @__PURE__ */ Q("span", {
|
|
17718
17760
|
className: "flex flex-col items-center justify-center gap-1 w-full h-full p-2 text-center",
|
|
@@ -17721,13 +17763,13 @@ function By({ value: e, onChange: t, label: n, hint: r, accept: i = "image/*", m
|
|
|
17721
17763
|
"aria-hidden": !0
|
|
17722
17764
|
}), /* @__PURE__ */ Z("span", {
|
|
17723
17765
|
className: "text-[10px] font-semibold text-foreground/50 leading-tight line-clamp-2 break-all",
|
|
17724
|
-
children: r?.name ||
|
|
17766
|
+
children: r?.name || By(e)
|
|
17725
17767
|
})]
|
|
17726
17768
|
}),
|
|
17727
17769
|
!l && /* @__PURE__ */ Z("button", {
|
|
17728
17770
|
type: "button",
|
|
17729
17771
|
onClick: () => ie(e),
|
|
17730
|
-
"aria-label": `Remove ${n ||
|
|
17772
|
+
"aria-label": `Remove ${n || By(e)}`,
|
|
17731
17773
|
title: "Remove",
|
|
17732
17774
|
className: g("absolute top-1 w-6 h-6 rounded-lg flex items-center justify-center bg-background/85 text-foreground/60 hover:text-red-500 transition-colors cursor-pointer", L ? "left-1" : "right-1"),
|
|
17733
17775
|
children: /* @__PURE__ */ Z(Gr, { className: "w-3.5 h-3.5" })
|
|
@@ -17757,23 +17799,23 @@ function By({ value: e, onChange: t, label: n, hint: r, accept: i = "image/*", m
|
|
|
17757
17799
|
/* @__PURE__ */ Q("div", {
|
|
17758
17800
|
className: "flex flex-wrap items-start gap-2",
|
|
17759
17801
|
children: [
|
|
17760
|
-
L && T.length > 0 ? /* @__PURE__ */ Z(
|
|
17802
|
+
L && T.length > 0 ? /* @__PURE__ */ Z(Ev, {
|
|
17761
17803
|
items: T,
|
|
17762
17804
|
onReorder: re,
|
|
17763
17805
|
grip: "corner",
|
|
17764
17806
|
disabled: l || M,
|
|
17765
17807
|
className: "flex flex-wrap items-start gap-2",
|
|
17766
|
-
label: (e, t) => `${n ||
|
|
17808
|
+
label: (e, t) => `${n || By(e)} ${t + 1} of ${T.length}`,
|
|
17767
17809
|
item: (e, t) => R(e, t)
|
|
17768
17810
|
}) : T.map((e, t) => /* @__PURE__ */ Z(Oa.Fragment, { children: R(e, t) }, e)),
|
|
17769
|
-
j.map((e) => /* @__PURE__ */ Z(
|
|
17811
|
+
j.map((e) => /* @__PURE__ */ Z(Vy, {
|
|
17770
17812
|
item: e,
|
|
17771
17813
|
onStop: () => A.remove(e.id),
|
|
17772
|
-
tile: L ?
|
|
17814
|
+
tile: L ? Ry : Ly
|
|
17773
17815
|
}, e.id)),
|
|
17774
17816
|
!N && /* @__PURE__ */ Q("label", {
|
|
17775
17817
|
title: n ? `Upload ${n}` : "Upload a file",
|
|
17776
|
-
className: g("group flex items-center gap-3 min-w-0 transition-colors", T.length || j.length ? g(L ?
|
|
17818
|
+
className: g("group flex items-center gap-3 min-w-0 transition-colors", T.length || j.length ? g(L ? Ry : Ly, "flex-col items-center justify-center gap-1 text-foreground/40 hover:text-accent hover:border-accent/40") : g("flex-1 w-full px-4 py-4 rounded-[var(--card-radius,1rem)] border border-dashed", P ? "border-accent bg-accent/[0.04]" : "border-[var(--panel-border)] hover:border-accent/40"), l ? "opacity-50 pointer-events-none" : "cursor-pointer"),
|
|
17777
17819
|
children: [T.length || j.length ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(qr, {
|
|
17778
17820
|
className: "w-5 h-5",
|
|
17779
17821
|
"aria-hidden": !0
|
|
@@ -17800,7 +17842,7 @@ function By({ value: e, onChange: t, label: n, hint: r, accept: i = "image/*", m
|
|
|
17800
17842
|
}
|
|
17801
17843
|
//#endregion
|
|
17802
17844
|
//#region src/components/AddressFieldLoaded.tsx
|
|
17803
|
-
var
|
|
17845
|
+
var Uy = Je(() => import("./AddressField-XXusrOvz.js").then((e) => ({ default: e.AddressField }))), Wy = ({ label: e, required: t }) => /* @__PURE__ */ Q("div", {
|
|
17804
17846
|
className: "flex flex-col w-full",
|
|
17805
17847
|
children: [/* @__PURE__ */ Q("span", {
|
|
17806
17848
|
className: "text-[13px] font-medium text-foreground/50 select-none mb-1.5 ml-1",
|
|
@@ -17817,14 +17859,14 @@ var Vy = Je(() => import("./AddressField-XXusrOvz.js").then((e) => ({ default: e
|
|
|
17817
17859
|
style: { borderRadius: "var(--input-radius, 0.75rem)" }
|
|
17818
17860
|
})]
|
|
17819
17861
|
});
|
|
17820
|
-
function
|
|
17862
|
+
function Gy(e) {
|
|
17821
17863
|
return /* @__PURE__ */ Z(ja, {
|
|
17822
|
-
fallback: /* @__PURE__ */ Z(
|
|
17864
|
+
fallback: /* @__PURE__ */ Z(Wy, {
|
|
17823
17865
|
label: e.label,
|
|
17824
17866
|
required: e.required
|
|
17825
17867
|
}),
|
|
17826
|
-
children: /* @__PURE__ */ Z(
|
|
17868
|
+
children: /* @__PURE__ */ Z(Uy, { ...e })
|
|
17827
17869
|
});
|
|
17828
17870
|
}
|
|
17829
17871
|
//#endregion
|
|
17830
|
-
export {
|
|
17872
|
+
export { Gy as AddressField, Sc as AdminNotifications, Iy as Article, dy as Bars, $_ as Basket, tv as BasketButton, K as Button, rv as BuyButton, C_ as BuyerDetails, gv as Card, D_ as Checkout, M_ as CheckoutReturn, na as ConfirmModal, pr as ContactPopup, U as CustomSelect, mt as DashboardNav, Mv as DataTable, bi as EMPTY_ADDRESS, hn as EVERYONE, tr as EventCard, xr as FileViewer, wr as FileViewerPopup, wg as FirebaseOS, yy as HandOver, Jv as History, hr as Input, Ay as Lightbox, gi as Loader, Gv as MadeBy, wa as ManagePlanButton, cl as Navbar, sy as NumberStepper, Td as PayButton, Da as PhoneInputField, ae as Picture, xv as Pipeline, fv as Plans, mi as Popup, Ac as PublicMenu, ue as Reveal, E as RevealList, _v as SectionHeading, hi as Skeleton, Ev as Sortable, Sy as StepBar, w as Swap, ey as Swatch, ny as SwatchField, Eg as TALLY_COUNTERS, mr as TextArea, er as TimeChips, Hy as UploadBox, Dr as VideoPlayer, Yn as acceptBooking, Pe as auth, Gt as availableSlots, Tt as availableSlotsFor, ly as barShares, jt as blockedWindows, Lt as bookingPath, rn as canEdit, Rn as canSee, Jn as cancelBooking, Si as composeAddress, y as confirmPayment, ay as countOf, Bt as dayBlocked, zt as daysLine, G as db, ki as emailAnyone, Oi as emailOwner, Ei as emailPerson, Ti as emailStatus, Ht as eventName, on as forPerson, an as forRole, vi as hasAddress, Pv as historyCollection, my as holderOf, Kt as hoursSummary, fn as isPublished, Dn as keysOf, Lv as logHistory, Hv as madeBy, ca as meetPath, Im as money, uc as notify, Ot as oneEach, F as openBillingPortal, Dt as partySlots, Wt as payPath, tn as publish, hv as registerMicrocomponent, Zr as say, kt as scheduleName, Rt as scheduleTitle, En as sendTo, Xv as shadeOf, Zv as shadesOf, Pt as slotsFor, ee as startCheckout, Te as storage, un as takeBack, zg as tally, qt as timeZoneLabel, Yt as togetherSlots, ke as troubleSentence, dn as unpublish, Qr as unsay, O as useAuth, q_ as useBasket, Xn as useBookings, pn as useCase, sn as useCases, Ph as useCasesFromForm, Fe as useConfig, Rv as useHistory, Qn as useMemberSchedules, qn as useMyBookings, le as useMyPayments, et as usePaymentsEnabled, Ea as usePeople, uv as usePlans, Fr as usePublicCopy, cn as usePublished, x as useSales, xy as useSteps, Cf as useStock, f_ as useStockFromOrders, Kn as useTakenSlots, Bg as useTallies, Zn as useTeamHours, at as useTheme, nr as useVisitorState, Vv as whenWords, ln as withAccess, vf as withStockSetAt };
|