your-ai-workflow-firebase-os 2.0.8 → 2.0.10
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-BKXpQmMS.js} +5 -5
- package/dist/{Assets-CBBNIHrw.cjs → Assets-DoZlHuud.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-BZafAizg.js → Billing-A6rwfQRT.js} +4 -4
- package/dist/{Billing-B6f49cGH.cjs → Billing-CBxVy-CG.cjs} +1 -1
- 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-D6QTWSoK.cjs} +1 -1
- package/dist/{CopyLink-rLr_5eNM.js → CopyLink-kROJG9Qf.js} +2 -2
- package/dist/{DashboardNav-DOl9gJuu.cjs → DashboardNav-Bc619nqn.cjs} +1 -1
- package/dist/{DashboardNav-B0G943ux.js → DashboardNav-CxS3Qnl-.js} +3 -3
- package/dist/{EmailAdmin-humrSTzI.js → EmailAdmin-DbWK_5Kw.js} +9 -9
- package/dist/{EmailAdmin-CWHMMybh.cjs → EmailAdmin-sa9C5jOw.cjs} +1 -1
- package/dist/{EventCard-6eCfvOA-.cjs → EventCard-D57elnQo.cjs} +1 -1
- package/dist/{EventCard-CrPswwyG.js → EventCard-DnoR91KN.js} +2 -2
- 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-Ck7ssCHd.cjs} +1 -1
- package/dist/{FormsAdmin-CHwmKnYU.js → FormsAdmin-DOes2Ajy.js} +9 -9
- package/dist/{Inbox-BPwIiThg.cjs → Inbox-ChBLxjCi.cjs} +1 -1
- package/dist/{Inbox-Cgq4MALU.js → Inbox-CyteB2LL.js} +9 -9
- 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-BC5sn_fE.cjs → MyBookings-B424zfVj.cjs} +1 -1
- package/dist/{MyBookings-C_pqsSEk.js → MyBookings-DLQefkDS.js} +7 -7
- package/dist/{PageTitle-BWmE74WQ.cjs → PageTitle-BL50s4qY.cjs} +1 -1
- package/dist/{PageTitle-DFGW71q8.js → PageTitle-CkZriz8K.js} +2 -2
- package/dist/{PagesAdmin-BZZ3by92.cjs → PagesAdmin-1U73GM_o.cjs} +1 -1
- package/dist/PagesAdmin-8smM_SDx.cjs +1 -0
- package/dist/{PagesAdmin-jjnDLYmF.js → PagesAdmin-CORR24DJ.js} +21 -21
- package/dist/PagesAdmin-hhVAwuuy.js +3 -0
- package/dist/{PaymentsAdmin-DeBMmFFo.js → PaymentsAdmin-CoaSATtY.js} +15 -15
- package/dist/{PaymentsAdmin-CI0zXraR.cjs → PaymentsAdmin-DdP5FeXc.cjs} +1 -1
- 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-BCQRu5Gs.cjs} +1 -1
- package/dist/{ProviderMark-CAeOnBsB.js → ProviderMark-Celkjuth.js} +1 -1
- package/dist/{PublishApp-DI96gX9b.cjs → PublishApp-CYHX36oo.cjs} +1 -1
- package/dist/{PublishApp-mMMwf_in.js → PublishApp-Dagc4TYm.js} +7 -7
- package/dist/{Said-DAD7Ctp_.js → Said-BvSRaEfZ.js} +1 -1
- package/dist/{Said-DlJOjNMN.cjs → Said-W3KFi5uX.cjs} +1 -1
- package/dist/{ScheduleAdmin-C4W8Ls0D.js → ScheduleAdmin-D8siv7ZQ.js} +14 -14
- package/dist/{ScheduleAdmin-dWj_N_tf.cjs → ScheduleAdmin-ohFzK-5E.cjs} +1 -1
- package/dist/{SchedulePicker-CwKId9JF.cjs → SchedulePicker-BpPGI5VZ.cjs} +1 -1
- package/dist/{SchedulePicker-BOSJEcfL.js → SchedulePicker-sZIZec9L.js} +2 -2
- package/dist/{Setup-NOvtplUS.js → Setup-DOGI-_8f.js} +3 -3
- package/dist/{Setup-DcZzh6Xd.cjs → Setup-DiFnnzdd.cjs} +1 -1
- package/dist/{SetupPayments-CZ0KqXdR.cjs → SetupPayments-BLq0W5DU.cjs} +1 -1
- package/dist/{SetupPayments-DrXK0LQa.js → SetupPayments-ICqCoZeQ.js} +5 -5
- package/dist/{SignInAdmin-Cb65ChHL.js → SignInAdmin-CQzPqUui.js} +9 -9
- package/dist/{SignInAdmin-CwIUAJrv.cjs → SignInAdmin-JnhCefKY.cjs} +1 -1
- package/dist/{SupportBar-528kXe-Z.js → SupportBar-0nIiQp-_.js} +108 -107
- package/dist/SupportBar-DR52UpBq.cjs +1 -0
- package/dist/{SystemTabContent-EegzTuLd.cjs → SystemTabContent-BWhRHoXx.cjs} +1 -1
- package/dist/{SystemTabContent-C4azXKMs.js → SystemTabContent-CMyT7mDN.js} +2 -2
- package/dist/{TemplateDrive-CfPXKMKX.js → TemplateDrive-6aV9Hmh3.js} +10 -10
- package/dist/{TemplateDrive-XDRPkxIj.cjs → TemplateDrive-ElNPzwv3.cjs} +1 -1
- package/dist/ThemeAdmin-B4CIxIjh.cjs +1 -0
- package/dist/ThemeAdmin-B9VnH5xH.js +2 -0
- package/dist/{ThemeAdmin-BrEozdpZ.cjs → ThemeAdmin-BhaTfgKX.cjs} +1 -1
- package/dist/{ThemeAdmin-XLbC9fX7.js → ThemeAdmin-C_8phTKX.js} +6 -6
- package/dist/TimeZoneField-Ckn1pKAL.cjs +11 -0
- package/dist/{TimeZoneField-Dv389mAe.js → TimeZoneField-oIMwb5_X.js} +119 -107
- package/dist/{TransactionsAdmin-DgsG629u.cjs → TransactionsAdmin-BiV8VgD0.cjs} +1 -1
- package/dist/{TransactionsAdmin-X-NjI4NB.js → TransactionsAdmin-DAENRmVO.js} +11 -11
- 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-Ayu_S4cd.cjs} +1 -1
- package/dist/{Users-BUGb7-Kz.js → Users-CNRVFf3-.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-CUXAX_gJ.js → appIcons-DfjKL0tw.js} +761 -735
- package/dist/appIcons-Xjk-LuQ5.cjs +130 -0
- package/dist/{arrivalRoads-CD7pt03E.cjs → arrivalRoads-1OeHArA0.cjs} +0 -0
- package/dist/{arrivalRoads-BZk39p8Z.js → arrivalRoads-BZ4SWRAw.js} +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/components/TutorialVideo.d.ts +3 -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/index.d.ts +1 -0
- 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-QXv7SHeb.cjs → paidSessions-BK9qlIyL.cjs} +1 -1
- package/dist/{paidSessions-Cr_93LGa.js → paidSessions-C9392hZH.js} +7 -7
- 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-B3lWGd8C.cjs} +1 -1
- package/dist/{recordsKey-DHJJWWOo.js → recordsKey-CJL-dAYF.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-BmnoAilb.cjs} +1 -1
- package/dist/{roles-hzcMnn_M.js → roles-D3T8p-hA.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 +13 -13
- package/dist/your-ai-workflow-firebase-os.css +1 -1
- package/dist/your-ai-workflow-firebase-os.es.js +2258 -2221
- package/package.json +1 -1
- package/scripts/postinstall.js +2 -1
- package/src/index.css +41 -6
- package/src/pages/Home.tsx +11 -14
- package/dist/PagesAdmin-B-XopEi9.js +0 -3
- package/dist/PagesAdmin-nL5ZltFn.cjs +0 -1
- package/dist/SupportBar-CNVXSYwT.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,20 +1,20 @@
|
|
|
1
1
|
import { a as e, c as t, n, o as r, r as i, s as a, t as o, u as s } from "./mediaKind-BtaMpGy8.js";
|
|
2
|
-
import { _ as c, l, o as u, s as d, t as f, u as p, v as m } from "./PageTitle-
|
|
3
|
-
import { $n as h, A as g, At as _, C as v, Cn as y, Dn as b, Dr as x, Dt as S, Er as C, F as w, Fr as T, Ft as E, G as ee, H as D, J as te, K as O, Kr as k, M as A, Mr as j, Mt as ne, Nr as M, O as N, Or as re, Qn as ie, Rr as ae, S as oe, Sr as se, Tr as ce, Vr as le, X as ue, Xn as de, Z as fe, Zn as P, Zr as pe, _r as F, ar as I, b as me, br as he, c as ge, cr as _e, d as ve, er as ye, f as be, fi as xe, fr as Se, g as Ce, hr as we, i as L, ii as Te, jr as Ee, jt as De, kr as Oe, l as R, li as ke, lr as Ae, m as je, mr as Me, nr as Ne, nt as Pe, o as z, or as Fe, p as Ie, q as Le, qr as B, rr as Re, rt as ze, s as Be, tr as Ve, ui as V, ur as He, vr as Ue, w as We, wr as H, x as Ge, xr as Ke, y as qe, z as Je, zn as Ye } from "./TimeZoneField-
|
|
4
|
-
import { N as Xe, a as Ze, b as Qe, i as $e, l as et, n as tt, t as nt, u as rt, v as it, x as at, y as ot } from "./DashboardNav-
|
|
5
|
-
import { a as st, s as ct } from "./Trouble-
|
|
2
|
+
import { _ as c, l, o as u, s as d, t as f, u as p, v as m } from "./PageTitle-CkZriz8K.js";
|
|
3
|
+
import { $n as h, A as g, At as _, C as v, Cn as y, Dn as b, Dr as x, Dt as S, Er as C, F as w, Fr as T, Ft as E, G as ee, H as D, J as te, K as O, Kr as k, M as A, Mr as j, Mt as ne, Nr as M, O as N, Or as re, Qn as ie, Rr as ae, S as oe, Sr as se, Tr as ce, Vr as le, X as ue, Xn as de, Z as fe, Zn as P, Zr as pe, _r as F, ar as I, b as me, br as he, c as ge, cr as _e, d as ve, er as ye, f as be, fi as xe, fr as Se, g as Ce, hr as we, i as L, ii as Te, jr as Ee, jt as De, kr as Oe, l as R, li as ke, lr as Ae, m as je, mr as Me, nr as Ne, nt as Pe, o as z, or as Fe, p as Ie, q as Le, qr as B, rr as Re, rt as ze, s as Be, tr as Ve, ui as V, ur as He, vr as Ue, w as We, wr as H, x as Ge, xr as Ke, y as qe, z as Je, zn as Ye } from "./TimeZoneField-oIMwb5_X.js";
|
|
4
|
+
import { N as Xe, a as Ze, b as Qe, i as $e, l as et, n as tt, t as nt, u as rt, v as it, x as at, y as ot } from "./DashboardNav-CxS3Qnl-.js";
|
|
5
|
+
import { a as st, s as ct } from "./Trouble-CtFq7tjk.js";
|
|
6
6
|
import { $t as lt, Ct as ut, Dn as U, En as dt, Gn as W, Hn as ft, J as pt, Mn as G, Nn as mt, Ot as ht, Pn as K, Rn as gt, U as _t, V as vt, Vn as yt, Vt as bt, Wn as xt, _n as St, bt as Ct, en as wt, gn as Tt, jn as Et, kt as Dt, lt as Ot, mn as kt, pn as At, tn as jt, vn as Mt, vt as Nt, xn as Pt, yt as Ft } from "./schedule-C13m_kiO.js";
|
|
7
7
|
import { n as It, t as Lt } from "./chevron-down--LwXEv9w.js";
|
|
8
8
|
import { t as Rt } from "./arrow-right-C6OLl8Zh.js";
|
|
9
9
|
import { t as zt } from "./boxes-DcQnzrdY.js";
|
|
10
|
-
import { y as Bt } from "./scheduleData-
|
|
11
|
-
import { t as Vt } from "./SupportBar-
|
|
12
|
-
import { i as Ht, r as Ut, t as Wt } from "./FileViewerPopup-
|
|
10
|
+
import { y as Bt } from "./scheduleData-DR6A-Q7Z.js";
|
|
11
|
+
import { t as Vt } from "./SupportBar-0nIiQp-_.js";
|
|
12
|
+
import { i as Ht, r as Ut, t as Wt } from "./FileViewerPopup-gqhRT22v.js";
|
|
13
13
|
import { t as Gt } from "./eye-off-CgKkn1b3.js";
|
|
14
14
|
import { t as Kt } from "./eye-DBR-sZWU.js";
|
|
15
|
-
import { n as qt, r as Jt } from "./VideoPlayer-
|
|
16
|
-
import { t as Yt } from "./FormNote-
|
|
17
|
-
import { _ as Xt, a as Zt, c as Qt, d as $t, h as en, n as tn, r as nn, t as rn, u as an } from "./arrivalRoads-
|
|
15
|
+
import { n as qt, r as Jt } from "./VideoPlayer-QI1Jc3bS.js";
|
|
16
|
+
import { t as Yt } from "./FormNote-DJ9HBokL.js";
|
|
17
|
+
import { _ as Xt, a as Zt, c as Qt, d as $t, h as en, n as tn, r as nn, t as rn, u as an } from "./arrivalRoads-BZ4SWRAw.js";
|
|
18
18
|
import { t as on } from "./link-2-CtDUJiNU.js";
|
|
19
19
|
import { n as sn, r as cn, t as ln } from "./x-hax8aKt8.js";
|
|
20
20
|
import { t as un } from "./lock-CeHdSreq.js";
|
|
@@ -22,22 +22,22 @@ import { t as dn } from "./pencil-CLQlJdep.js";
|
|
|
22
22
|
import { t as fn } from "./plus-BKrt0Qx5.js";
|
|
23
23
|
import { t as pn } from "./trash-6Wj66gJi.js";
|
|
24
24
|
import { t as mn } from "./user-round-BXAihGcZ.js";
|
|
25
|
-
import { t as hn } from "./Button-
|
|
25
|
+
import { t as hn } from "./Button-BGN6q7lY.js";
|
|
26
26
|
import { n as gn } from "./formPage-BcnATn6R.js";
|
|
27
|
-
import { a as _n } from "./email-
|
|
28
|
-
import { l as vn, n as yn, o as bn } from "./roles-
|
|
27
|
+
import { a as _n } from "./email-PBHbXXgR.js";
|
|
28
|
+
import { l as vn, n as yn, o as bn } from "./roles-D3T8p-hA.js";
|
|
29
29
|
import { l as xn, o as Sn, r as Cn, s as wn } from "./tabAudience-DJ6H5Uth.js";
|
|
30
|
-
import { t as Tn } from "./ConfirmModal-
|
|
31
|
-
import { a as En, l as Dn, n as On, r as kn, s as An, t as jn } from "./recordsKey-
|
|
32
|
-
import { i as Mn, l as Nn, s as Pn } from "./bookingPages-
|
|
33
|
-
import { a as Fn, c as In, r as Ln, s as Rn, t as zn } from "./pageFiles-
|
|
34
|
-
import { c as Bn, i as Vn, n as Hn, o as Un, r as Wn, s as Gn, t as Kn } from "./recordLock-
|
|
30
|
+
import { t as Tn } from "./ConfirmModal-BW9e6Y7d.js";
|
|
31
|
+
import { a as En, l as Dn, n as On, r as kn, s as An, t as jn } from "./recordsKey-CJL-dAYF.js";
|
|
32
|
+
import { i as Mn, l as Nn, s as Pn } from "./bookingPages-BFSY3Riv.js";
|
|
33
|
+
import { a as Fn, c as In, r as Ln, s as Rn, t as zn } from "./pageFiles-ZFPSCDZz.js";
|
|
34
|
+
import { c as Bn, i as Vn, n as Hn, o as Un, r as Wn, s as Gn, t as Kn } from "./recordLock-CMOiezNC.js";
|
|
35
35
|
import { i as qn } from "./AccessNotice-DGsp8Xfl.js";
|
|
36
|
-
import { t as Jn } from "./SystemTabContent-
|
|
37
|
-
import { n as Yn } from "./SchedulePicker-
|
|
36
|
+
import { t as Jn } from "./SystemTabContent-CMyT7mDN.js";
|
|
37
|
+
import { n as Yn } from "./SchedulePicker-sZIZec9L.js";
|
|
38
38
|
import { t as Xn } from "./contentKey-DEiV3vR8.js";
|
|
39
39
|
import { t as Zn } from "./NeedsService-SxEZO5Fa.js";
|
|
40
|
-
import "./ThemeAdmin-
|
|
40
|
+
import "./ThemeAdmin-C_8phTKX.js";
|
|
41
41
|
import { useCallback as Qn, useEffect as q, useMemo as $n, useRef as J, useState as Y } from "react";
|
|
42
42
|
import { Fragment as er, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
43
43
|
import { collection as tr, deleteDoc as nr, deleteField as rr, doc as Q, getDoc as ir, getDocs as ar, limit as or, onSnapshot as sr, orderBy as cr, query as lr, setDoc as $ } from "firebase/firestore";
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { _ as e, o as t, t as n } from "./PageTitle-
|
|
2
|
-
import { $n as r, Ar as i, At as a, Cr as o, Dr as s, Er as c, Ft as l, Jn as u, Qn as d, S as f, Sr as p, Tr as m, Vn as h, Zr as g, _, b as v, br as y, cr as b, dr as x, g as S, gr as C, h as w, i as T, ii as E, ir as D, kr as O, m as k, n as A, nt as j, o as M, or as N, qr as ee, r as P, s as F, sr as I, ui as L, v as R, wr as z, x as te, xr as B, y as V, yr as ne } from "./TimeZoneField-
|
|
3
|
-
import { j as re, t as ie, w as ae } from "./DashboardNav-
|
|
1
|
+
import { _ as e, o as t, t as n } from "./PageTitle-CkZriz8K.js";
|
|
2
|
+
import { $n as r, Ar as i, At as a, Cr as o, Dr as s, Er as c, Ft as l, Jn as u, Qn as d, S as f, Sr as p, Tr as m, Vn as h, Zr as g, _, b as v, br as y, cr as b, dr as x, g as S, gr as C, h as w, i as T, ii as E, ir as D, kr as O, m as k, n as A, nt as j, o as M, or as N, qr as ee, r as P, s as F, sr as I, ui as L, v as R, wr as z, x as te, xr as B, y as V, yr as ne } from "./TimeZoneField-oIMwb5_X.js";
|
|
3
|
+
import { j as re, t as ie, w as ae } from "./DashboardNav-CxS3Qnl-.js";
|
|
4
4
|
import { Ln as H, jt as oe } from "./schedule-C13m_kiO.js";
|
|
5
5
|
import { n as U, t as W } from "./chevron-down--LwXEv9w.js";
|
|
6
6
|
import { t as se } from "./arrow-left-DdRja6es.js";
|
|
7
7
|
import { t as ce } from "./arrow-right-C6OLl8Zh.js";
|
|
8
|
-
import { t as le } from "./SupportBar-
|
|
9
|
-
import { An as ue, Fi as de, Ni as fe, Pi as pe, _n as me, fr as he, pr as ge } from "./PagesAdmin-
|
|
8
|
+
import { t as le } from "./SupportBar-0nIiQp-_.js";
|
|
9
|
+
import { An as ue, Fi as de, Ni as fe, Pi as pe, _n as me, fr as he, pr as ge } from "./PagesAdmin-CORR24DJ.js";
|
|
10
10
|
import { t as _e } from "./link-2-CtDUJiNU.js";
|
|
11
11
|
import { r as ve } from "./x-hax8aKt8.js";
|
|
12
12
|
import { t as G } from "./plus-BKrt0Qx5.js";
|
|
13
13
|
import { t as ye } from "./power-BrOGO3tj.js";
|
|
14
|
-
import { i as be, n as xe } from "./Said-
|
|
14
|
+
import { i as be, n as xe } from "./Said-BvSRaEfZ.js";
|
|
15
15
|
import { t as K } from "./trash-6Wj66gJi.js";
|
|
16
|
-
import { l as Se, n as Ce, o as we } from "./roles-
|
|
16
|
+
import { l as Se, n as Ce, o as we } from "./roles-D3T8p-hA.js";
|
|
17
17
|
import { r as Te } from "./transactions-ycKW6zHa.js";
|
|
18
|
-
import { t as Ee } from "./ConfirmModal-
|
|
19
|
-
import { u as De } from "./recordsKey-
|
|
20
|
-
import { a as Oe, n as ke, t as Ae } from "./Setup-
|
|
21
|
-
import { r as je } from "./serviceSwitches-
|
|
22
|
-
import { i as Me, n as Ne } from "./serviceStatus-
|
|
23
|
-
import { ConnectCard as Pe, StripeSetupSteps as Fe } from "./SetupPayments-
|
|
24
|
-
import { t as Ie } from "./CopyLink-
|
|
25
|
-
import { l as Le, s as Re } from "./publishSteps-
|
|
18
|
+
import { t as Ee } from "./ConfirmModal-BW9e6Y7d.js";
|
|
19
|
+
import { u as De } from "./recordsKey-CJL-dAYF.js";
|
|
20
|
+
import { a as Oe, n as ke, t as Ae } from "./Setup-DOGI-_8f.js";
|
|
21
|
+
import { r as je } from "./serviceSwitches-CZHwvVfP.js";
|
|
22
|
+
import { i as Me, n as Ne } from "./serviceStatus-C9izcuQz.js";
|
|
23
|
+
import { ConnectCard as Pe, StripeSetupSteps as Fe } from "./SetupPayments-ICqCoZeQ.js";
|
|
24
|
+
import { t as Ie } from "./CopyLink-kROJG9Qf.js";
|
|
25
|
+
import { l as Le, s as Re } from "./publishSteps-Cf5pSB_H.js";
|
|
26
26
|
import { useCallback as ze, useEffect as q, useRef as J, useState as Y } from "react";
|
|
27
27
|
import { Fragment as X, jsx as Z, jsxs as Q } from "react/jsx-runtime";
|
|
28
28
|
import { collection as Be, deleteDoc as Ve, doc as He, setDoc as Ue } from "firebase/firestore";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./PageTitle-
|
|
1
|
+
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./PageTitle-BL50s4qY.cjs`),t=require(`./TimeZoneField-Ckn1pKAL.cjs`),n=require(`./DashboardNav-Bc619nqn.cjs`),r=require(`./schedule-BAea6q8_.cjs`),i=require(`./chevron-down-lyDK1rfL.cjs`),a=require(`./arrow-left-C39sNUA7.cjs`),o=require(`./arrow-right-CGvbxks5.cjs`),s=require(`./SupportBar-DR52UpBq.cjs`),c=require(`./PagesAdmin-1U73GM_o.cjs`),l=require(`./link-2-C7A-6PW6.cjs`),u=require(`./x-Ci8c5p6T.cjs`),d=require(`./plus-zsWFCu4F.cjs`),f=require(`./power-Bs_nchQG.cjs`),p=require(`./Said-W3KFi5uX.cjs`),m=require(`./trash-D-CpYHCs.cjs`),h=require(`./roles-BmnoAilb.cjs`),g=require(`./transactions-CIU2NcKh.cjs`),_=require(`./ConfirmModal-BUNtss4a.cjs`),v=require(`./recordsKey-B3lWGd8C.cjs`),y=require(`./Setup-DiFnnzdd.cjs`),b=require(`./serviceSwitches-mhJbQBrV.cjs`),x=require(`./serviceStatus-Cde96_OO.cjs`),S=require(`./SetupPayments-BLq0W5DU.cjs`),C=require(`./CopyLink-D6QTWSoK.cjs`),w=require(`./publishSteps-DvWlF0p_.cjs`);let T=require(`react`),E=require(`react/jsx-runtime`),D=require(`firebase/firestore`),O=require(`react-router-dom`);var k={name:`plug`,size:24,node:[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]};k.node;var A=i.n(k),j={name:`tag`,size:24,node:[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]};j.node;var M=i.n(j),N={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};N.node;var P=i.n(N),F={name:`workflow`,size:24,node:[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]};F.node;var I=i.n(F);function L({product:e,live:n,open:r,onToggle:o,onChange:s,forPage:c,onAddToPage:l}){let u=t=>s({...e,...t});if(!t.wr(e,n))return(0,E.jsx)(`div`,{className:`rounded-2xl border border-[var(--panel-border)] opacity-50`,"aria-disabled":`true`,children:(0,E.jsxs)(`div`,{className:`w-full flex items-center justify-between gap-3 px-4 py-3`,children:[(0,E.jsx)(`span`,{className:`text-[13px] font-semibold text-foreground/60 truncate`,children:t.Er(e)}),(0,E.jsx)(t._,{state:`off`,label:`Finish it above first`})]})});let f=t.Cr(e),p=e.kind===`subscription`;return(0,E.jsxs)(`div`,{className:`rounded-2xl border border-[var(--panel-border)]`,children:[(0,E.jsxs)(`button`,{type:`button`,onClick:o,"aria-expanded":r,className:`w-full flex items-center justify-between gap-3 px-4 py-3 text-left cursor-pointer`,children:[(0,E.jsx)(`span`,{className:`text-[13px] font-semibold text-foreground/75 truncate`,children:t.Er(e)}),(0,E.jsxs)(`span`,{className:`flex items-center gap-2.5 shrink-0`,children:[(0,E.jsx)(t._,{state:f?`off`:`saved`,label:f?`Question left`:`Ready for pages`}),(0,E.jsx)(i.t,{className:`w-3.5 h-3.5 text-foreground/40 shrink-0 transition-transform ${r?`rotate-180`:``}`})]})]}),r&&(0,E.jsxs)(`div`,{className:`px-4 pb-4 pt-4 border-t border-[var(--panel-border)]/60 flex flex-col gap-4`,children:[(0,E.jsx)(t.y,{label:`How will this payment work?`,hint:p?`Start to finish, in your own words — what someone does, pays, and gets. Worth saying if you care: what they tell you before paying (never their email — Stripe asks for that), what each plan unlocks, and what happens the moment they subscribe. Whatever you skip, your assistant decides.`:`Start to finish, in your own words — what someone does, pays, and gets. Worth saying if you care: what they tell you before paying (never their email — Stripe asks for that) and what happens after they pay. Whatever you skip, your assistant decides.`,value:e.how,onChange:e=>u({how:e}),placeholder:p?`People pick a plan and pay, and their member area unlocks the same minute — Basic gets the videos, Pro gets the videos and a monthly call.`:`People choose a session, tell me their phone number and what they need, and pay — then they see a thank-you, and I get in touch within a day.`}),(0,E.jsxs)(`p`,{className:`text-[11px] sm:text-[11.5px] text-foreground/40 font-medium leading-snug`,children:[`The buyer’s receipt and your sale email are switched on your`,` `,(0,E.jsx)(O.Link,{to:`/email`,className:`text-accent font-semibold hover:underline`,children:`Email screen`}),`, for every payment at once.`]}),(0,E.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 pt-1`,children:[f?(0,E.jsx)(`span`,{className:`text-[11px] sm:text-[11.5px] text-foreground/40 font-medium leading-snug`,children:f}):c?(0,E.jsx)(`span`,{className:`text-[11.5px] font-semibold text-emerald-500`,children:`Ready to add to pages — add it to ${c.title} and go back.`}):(0,E.jsxs)(`span`,{className:`text-[11.5px] font-semibold text-emerald-500`,children:[`Ready to add to pages — open a page on the`,` `,(0,E.jsx)(O.Link,{to:`/pages`,className:`font-bold hover:underline`,children:`Pages screen`}),` and add it under Payments.`]}),!f&&c&&l?(0,E.jsx)(t.o,{icon:e.pageIds.includes(c.id)?a.t:d.t,onClick:()=>l(e.id),children:e.pageIds.includes(c.id)?`Back to ${c.title}`:`Add to ${c.title}`}):(0,E.jsx)(`span`,{})]})]})]})}function R({products:e,live:n,openId:r,onToggle:i,onChange:a,forPage:o,onAddToPage:s}){return e===null?(0,E.jsx)(`p`,{className:t.s,children:`Loading your payments…`}):e.length===0?(0,E.jsx)(`p`,{className:`${t.s} px-1`,children:`Nothing here yet. Describe what you sell in the card above — each payment you add appears here with one question: how it works, start to finish.`}):(0,E.jsx)(`div`,{className:`flex flex-col gap-3`,children:e.map(e=>(0,E.jsx)(L,{product:e,live:n,open:r===e.id,onToggle:()=>i(e.id),onChange:a,forPage:o,onAddToPage:s},e.id))})}var z=e=>c.pr(`pay-${t.xr(e)}`)||`pay-${e.id}`,B=e=>{let n=t.gr(e).map(e=>e.amount.trim()).filter(Boolean).join(` + `);return`${t.xr(e)}${n?` — ${n}`:``}`};function V(e,n,r){return[c.An(n,r),`This page is the page of my payment link for ${t.xr(e)} — everyone I send ${n.path} to lands here and pays here.`,...t.Tr(e,n.path)].join(`
|
|
2
2
|
`)}function H({product:n,open:a,onToggle:o,onChange:s,onRemove:l,onCustomise:u}){let[d,f]=(0,T.useState)(!1),[p,h]=(0,T.useState)(!1),[g,v]=(0,T.useState)(``),[y,b]=(0,T.useState)(``),x=n.customPath.trim(),S=x?x.startsWith(`/`)?x:`/${x}`:r.jt(n.id);return(0,E.jsxs)(`div`,{className:`rounded-2xl border border-[var(--panel-border)]`,children:[(0,E.jsxs)(`div`,{className:`flex items-center gap-2 pr-3`,children:[(0,E.jsxs)(`button`,{type:`button`,onClick:o,"aria-expanded":a,className:`flex-1 min-w-0 flex items-center justify-between gap-3 px-4 py-3 text-left cursor-pointer`,children:[(0,E.jsx)(`span`,{className:`text-[13px] font-semibold text-foreground/75 truncate`,children:B(n)}),(0,E.jsxs)(`span`,{className:`flex items-center gap-2.5 shrink-0`,children:[(0,E.jsx)(t._,{state:x?`saved`:`off`,label:x?`Your own page`:`Ready-made page`}),(0,E.jsx)(i.t,{className:`w-3.5 h-3.5 text-foreground/40 shrink-0 transition-transform ${a?`rotate-180`:``}`})]})]}),(0,E.jsx)(t.o,{icon:m.t,tone:`danger`,compact:!0,title:`Remove the link to ${t.xr(n)}`,onClick:()=>f(!0),children:`Remove`})]}),(0,E.jsx)(_.t,{isOpen:d,title:`Remove the link to ${t.xr(n)}?`,message:`Its link stops working, and it leaves What you sell.`,confirmText:`Yes, remove it`,cancelText:`Keep it`,onCancel:()=>f(!1),onConfirm:()=>{f(!1),l()}}),a&&(0,E.jsxs)(`div`,{className:`px-4 pb-4 pt-4 border-t border-[var(--panel-border)]/60 flex flex-col gap-4`,children:[(0,E.jsx)(t.i,{label:`The link`,hint:`Send it to anyone. The page wears your theme and your app's name.`,children:(0,E.jsx)(C.t,{title:t.xr(n),path:S})}),(0,E.jsx)(t.b,{label:`What is it called?`,value:t.gr(n)[0]?.name||``,onChange:e=>s({...n,items:[{...t.gr(n)[0]||{amount:``},name:e},...t.gr(n).slice(1)]}),placeholder:`A one-hour session`}),(0,E.jsx)(t.y,{label:`A line or two about it`,hint:`Optional — what the buyer gets. Shown on the page.`,value:n.description,onChange:e=>s({...n,description:e}),placeholder:`One hour together on whatever you are stuck on.`}),(0,E.jsx)(t.b,{label:`The price`,value:t.gr(n)[0]?.amount||``,onChange:e=>s({...n,items:[{...t.gr(n)[0]||{name:``},amount:e},...t.gr(n).slice(1)]}),placeholder:`25`,error:t.gr(n)[0]?.amount.trim()&&t.br(t.gr(n)[0].amount)===null?`Just a number, like 25.`:void 0}),!x&&!p&&!g&&(0,E.jsx)(t.o,{icon:c.Fi,onClick:()=>h(!0),children:`Customise this page`}),(p||g)&&(0,E.jsxs)(`div`,{className:`rounded-2xl border border-[var(--panel-border)]/60 px-4 py-3.5 flex flex-col gap-4`,children:[(0,E.jsx)(t.y,{label:`What would you like on the page?`,hint:`Describe the page in your own words — what it says, what it shows, how it feels. Your assistant builds it; whatever you skip, it decides.`,value:n.customNote,onChange:e=>s({...n,customNote:e}),placeholder:`A warm page about the session: who it is for, what we cover, two testimonials, then the Pay button.`,rows:3}),y&&(0,E.jsx)(`span`,{className:`text-[11.5px] font-semibold text-red-500 leading-snug px-1`,children:y}),g?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(e.o,{title:`Ask your assistant`,description:`The page exists on the Pages screen now. Paste this into your assistant's chat; once it has built the page, tick the switch below and the link goes there.`,prompt:g}),(0,E.jsx)(t.S,{label:`The page is built — send people there`,hint:`Until this is on, the link opens the ready-made page.`,enabled:!!n.customPath.trim(),onChange:e=>s({...n,customPath:e?`/${z(n)}`:``})})]}):(0,E.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,E.jsx)(t.o,{icon:c.Fi,disabled:!n.customNote.trim(),onClick:async()=>{b(``);let e=await u();if(typeof e==`string`){b(e);return}v(e.prompt)},children:`Make the page`}),(0,E.jsx)(t.o,{onClick:()=>{h(!1),b(``)},children:`Never mind`})]})]}),x&&!g&&(0,E.jsx)(t.S,{label:`The page is built — send people there`,hint:`The link opens ${S}. Change the page from its row on the Pages screen. Turn this off to go back to the ready-made page.`,enabled:!0,onChange:e=>s({...n,customPath:e?n.customPath:``})})]})]})}function U({products:e,onChange:n,onRemove:r}){let[i,a]=(0,T.useState)(null),o=e.filter(e=>e.kind===`once`),s=()=>{let e={...t.cr(`p_${Date.now().toString(36)}`),kind:`once`,items:[{name:``,amount:``}]};n(e),a(e.id)},u=async e=>{let n=z(e),r=`Pay — ${t.xr(e)}`,i={name:r,address:n,type:`public`,about:e.customNote.trim()};try{await c._n(i)}catch(e){return console.error(`Could not make the page`,e),`The page could not be made — make sure you are signed in as an admin and try again.`}let{config:a}=c.fr(i),o={title:r,path:`/${n}`};return{path:o.path,prompt:V(e,o,a)}};return(0,E.jsx)(t.m,{icon:l.t,title:`Payment links`,description:`Every one-time payment has a page of its own you can send to anyone — a name, a line about it, a price.`,actions:({open:e})=>(0,E.jsx)(t.o,{icon:d.t,title:`Add a payment link`,onClick:()=>{e(),s()},children:`Add a payment link`}),children:(0,E.jsx)(`div`,{className:`flex flex-col gap-3`,children:o.length===0?(0,E.jsx)(`p`,{className:`${t.s} px-1`,children:`No payment link yet. Add one here — it appears under What you sell too — or describe a one-time payment there and its link shows up here.`}):o.map(e=>(0,E.jsx)(H,{product:e,open:i===e.id,onToggle:()=>a(i===e.id?null:e.id),onChange:n,onRemove:()=>r(e.id),onCustomise:()=>u(e)},e.id))})})}var W=e=>/^price_[A-Za-z0-9]+$/.test(e.trim()),G=`__new_role__`;function K({plan:e,index:n,roles:i,onChange:a,onRemove:o}){let s=t=>a({...e,...t}),l=e.name.trim(),u=l?i.find(e=>e.id===r.Ln(l)||e.name.trim().toLowerCase()===l.toLowerCase()):void 0,d=l&&!u?h.o(l,i):``,f=!!l&&!u&&!d,p=()=>{if(u){s({roleId:u.id});return}f&&(s({roleId:r.Ln(l)}),h.n(l).catch(e=>console.error(`Could not make the role`,e)))},g=[...i.map(e=>({value:e.id,label:e.name})),...e.roleId&&!i.some(t=>t.id===e.roleId)?[{value:e.roleId,label:l&&r.Ln(l)===e.roleId?l:t.qr(e.roleId,i)}]:[],...f?[{value:G,label:`New role: ${l}`}]:[]];return(0,E.jsxs)(`div`,{className:`rounded-2xl border border-[var(--panel-border)]/60 px-4 py-3.5 flex flex-col gap-4`,children:[(0,E.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,E.jsxs)(`span`,{className:`text-[11px] font-bold uppercase tracking-widest text-foreground/40`,children:[`Plan `,n+1]}),(0,E.jsx)(t.o,{icon:m.t,tone:`danger`,compact:!0,title:`Remove this plan`,onClick:o,children:`Remove plan`})]}),(0,E.jsx)(t.b,{label:`What is this plan called?`,value:e.name,onChange:e=>s({name:e}),onBlur:()=>{e.roleId||p()},placeholder:`Premium`}),(0,E.jsx)(t.g,{label:`Who they become`,hint:!e.roleId&&d?d:`Paying makes them this role; when the plan ends they are a member again.`,value:e.roleId||``,onChange:e=>e===G?p():s({roleId:e}),options:g,placeholder:l?`Choose a role`:`Name the plan first`,allowEmpty:!e.roleId}),(0,E.jsx)(t.b,{label:`One line about it`,hint:`Optional — what a buyer gets on this plan.`,value:e.description,onChange:e=>s({description:e}),placeholder:`Up to 3 projects and email support`}),[[`monthly`,`Billed monthly`,`a month`],[`yearly`,`Billed yearly`,`a year`]].map(([r,i,a])=>(0,E.jsxs)(`div`,{className:`flex flex-col gap-2.5`,children:[(0,E.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,E.jsx)(`span`,{className:`text-[13px] font-medium text-foreground/80 ml-1`,children:i}),(0,E.jsx)(t.x,{enabled:e[r].on,onChange:t=>s({[r]:{...e[r],on:t}}),label:`${i} — plan ${n+1}`})]}),e[r].on&&(0,E.jsx)(t.b,{label:`The price ${a}`,hint:`Just the number — 25 charges 25 ${a} in your Stripe account's currency.`,value:e[r].amount,onChange:t=>s({[r]:{...e[r],amount:t}}),placeholder:r===`monthly`?`25`:`250`,error:c.Pi(e[r].amount)})]},r))]})}function q({product:e,plan:n,index:r,live:i,onChange:a}){let o=i?`livePriceId`:`priceId`,s=(e,t)=>({...e,[o]:t}),c=(!n.monthly.on||W(n.monthly[o]))&&(!n.yearly.on||W(n.yearly[o])),l=e=>a({...n,...e}),u=e=>e.trim()&&!W(e)?`A price id starts with price_ — copy it from the price you just made.`:void 0;return(0,E.jsxs)(`div`,{className:`rounded-2xl border border-[var(--panel-border)]/60 px-4 py-3.5 flex flex-col gap-3`,children:[(0,E.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,E.jsx)(`span`,{className:`text-[13px] font-bold text-foreground truncate`,children:n.name.trim()||`Plan ${r+1}`}),(0,E.jsx)(t._,{state:c?`saved`:`off`,label:c?`Done`:i?`Waiting for its live ids`:`Waiting for its ids`})]}),(0,E.jsx)(`ol`,{className:`space-y-1.5 list-decimal list-inside text-[12.5px] font-medium text-foreground/60 leading-relaxed`,children:t.Ar(e,n,i).map((e,t)=>(0,E.jsx)(`li`,{children:e},t))}),n.monthly.on&&(0,E.jsx)(t.b,{label:i?`Paste the live monthly price id`:`Paste the monthly price id`,value:n.monthly[o],onChange:e=>l({monthly:s(n.monthly,e)}),placeholder:`price_…`,error:u(n.monthly[o])}),n.yearly.on&&(0,E.jsx)(t.b,{label:i?`Paste the live yearly price id`:`Paste the yearly price id`,value:n.yearly[o],onChange:e=>l({yearly:s(n.yearly,e)}),placeholder:`price_…`,error:u(n.yearly[o])}),i&&(0,E.jsx)(`p`,{className:`text-[11px] sm:text-[11.5px] text-foreground/40 font-medium leading-snug`,children:`Your test ids are kept — switch back to test mode on this screen and they are exactly where you left them.`})]})}function J({product:e,open:n,live:r,roles:a,onToggle:s,onChange:l,onRemove:u,onProceed:f}){let p=t=>l({...e,...t}),h=(t,n)=>p({plans:e.plans.map((e,r)=>r===t?n:e)}),g=t.wr(e,r),v=t.Sr(e,r),[y,b]=(0,T.useState)(!1),x=t.xr(e);return(0,E.jsxs)(`div`,{className:`rounded-2xl border border-[var(--panel-border)]`,children:[(0,E.jsxs)(`div`,{className:`flex items-center gap-2 pr-3`,children:[(0,E.jsxs)(`button`,{type:`button`,onClick:s,"aria-expanded":n,className:`flex-1 min-w-0 flex items-center justify-between gap-3 px-4 py-3 text-left cursor-pointer`,children:[(0,E.jsx)(`span`,{className:`text-[13px] font-semibold text-foreground/75 truncate`,children:t.Er(e)}),(0,E.jsxs)(`span`,{className:`flex items-center gap-2.5 shrink-0`,children:[e.kind&&(0,E.jsx)(t._,{state:g?`saved`:`off`,label:g?`Ready`:`In progress`}),(0,E.jsx)(i.t,{className:`w-3.5 h-3.5 text-foreground/40 shrink-0 transition-transform ${n?`rotate-180`:``}`})]})]}),(0,E.jsx)(t.o,{icon:m.t,tone:`danger`,compact:!0,title:`Remove ${x}`,onClick:()=>b(!0),children:`Remove`})]}),(0,E.jsx)(_.t,{isOpen:y,title:`Remove ${x}?`,message:`Its answer under How your payments work goes with it, and the pages it is on stop carrying it.`,confirmText:`Yes, remove it`,cancelText:`Keep it`,onCancel:()=>b(!1),onConfirm:()=>{b(!1),u()}}),n&&(0,E.jsxs)(`div`,{className:`px-4 pb-4 pt-4 border-t border-[var(--panel-border)]/60 flex flex-col gap-4`,children:[(0,E.jsx)(t.g,{label:`How is it paid?`,value:e.kind,onChange:n=>p({kind:n===`once`||n===`subscription`?n:``,plans:n===`subscription`&&!e.plans.length?[t.sr()]:e.plans,items:n===`once`&&!e.items.length?[t.or()]:e.items}),options:[{value:`once`,label:`Once — one payment`},{value:`subscription`,label:`A subscription that renews`}],placeholder:`Choose one`}),e.kind===`once`&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(t.i,{label:`What are you selling?`,hint:`Each thing with its price — just the number: 25 charges 25 in your Stripe account's currency. Nothing to make in Stripe for a one-off.`,children:(0,E.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[e.items.map((t,n)=>(0,E.jsx)(c.Ni,{item:t,index:n,onChange:t=>p({items:e.items.map((e,r)=>r===n?t:e)}),onRemove:()=>p({items:e.items.filter((e,t)=>t!==n)}),removable:e.items.length>1},n)),(0,E.jsx)(t.o,{icon:d.t,className:`self-start`,onClick:()=>p({items:[...e.items,t.or()]}),children:`Add another`})]})}),e.items.length>1&&(0,E.jsx)(t.b,{label:`What do you call this group?`,hint:`Optional — one word for the lot, the way you would say it: Calls, The shop.`,value:e.name,onChange:e=>p({name:e}),placeholder:`Calls`})]}),e.kind===`subscription`&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(t.b,{label:`What is the subscription called?`,value:e.name,onChange:e=>p({name:e}),placeholder:`Membership`}),(0,E.jsx)(t.y,{label:`One line about it`,hint:`Optional — your assistant uses it on the page.`,value:e.description,onChange:e=>p({description:e}),placeholder:`Everything in the studio, every month.`}),(0,E.jsx)(t.i,{label:`Its plans`,hint:`Each plan can be billed monthly, yearly, or both.`,children:(0,E.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[e.plans.map((t,n)=>(0,E.jsx)(K,{plan:t,index:n,roles:a,onChange:e=>h(n,e),onRemove:()=>p({plans:e.plans.filter((e,t)=>t!==n)})},n)),(0,E.jsx)(t.o,{icon:d.t,className:`self-start`,onClick:()=>p({plans:[...e.plans,t.sr()]}),children:`Add a plan`})]})}),t.yr(e)&&(0,E.jsx)(t.i,{label:r?`Now make it in Stripe — live mode`:`Now make it in Stripe`,hint:r?`Live mode is a fresh Stripe catalogue: make each plan again with Test mode OFF, and paste the live ids it produces.`:`Five minutes in your Stripe dashboard. Each plan below says exactly what to do and takes the id it produces.`,children:(0,E.jsx)(`div`,{className:`flex flex-col gap-3`,children:e.plans.map((t,n)=>(0,E.jsx)(q,{product:e,plan:t,index:n,live:r,onChange:e=>h(n,e)},n))})})]}),(0,E.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 pt-1`,children:[e.kind&&!g?(0,E.jsx)(`span`,{className:`text-[11px] sm:text-[11.5px] text-foreground/40 font-medium leading-snug`,children:v}):e.kind?(0,E.jsx)(`span`,{className:`text-[11.5px] font-semibold text-emerald-500`,children:`Ready — press Proceed to say how it works.`}):(0,E.jsx)(`span`,{}),g?(0,E.jsx)(t.o,{icon:o.t,onClick:f,children:`Proceed`}):(0,E.jsx)(`span`,{})]})]})]})}function Y(){let[e,n]=(0,T.useState)(null),[r,i]=(0,T.useState)(!1),[a,o]=(0,T.useState)(null),[s,c]=(0,T.useState)(null),[l,u]=(0,T.useState)(``),f=(0,T.useRef)(new Map),m=(0,T.useRef)(null),g=(0,T.useRef)(null),_=v.u(),y=(0,O.useNavigate)(),[b,x]=(0,O.useSearchParams)(),[S]=(0,T.useState)(()=>b.get(`page`)||``),C=S?(_||[]).find(e=>e.id===S):void 0,w=(0,T.useRef)({done:!1,open:b.get(`open`)||``,wantsNew:b.get(`new`)===`subscription`}),k=h.l();t.Jn(`${r}:${(e||[]).reduce((e,t)=>e+(t.plans||[]).filter(e=>e.roleId).length,0)}`);let A=e=>{let n=f.current.get(e.id);n&&clearTimeout(n),f.current.set(e.id,setTimeout(async()=>{f.current.delete(e.id);try{let{id:n,...r}=e;await(0,D.setDoc)((0,D.doc)(t.ui,t.Qn,n),r)}catch(e){console.error(`Could not save the product`,e),p.n(t.ii(e,`That change to what you sell could not be saved.`))}},600))};(0,T.useEffect)(()=>{let e=(e,r)=>{let i=w.current;if(i.done||!i.open&&!i.wantsNew)return;i.done=!0;let a=i.open?e.find(e=>e.id===i.open):void 0;if(a)o(a.id);else if(i.wantsNew){let i=e.find(e=>e.kind===`subscription`&&!e.name.trim()&&!t.wr(e,r));if(i)o(i.id);else{let r={...t.cr(`p_${Date.now().toString(36)}`),kind:`subscription`,plans:[t.sr()]};n([...e,r]),o(r.id),A(r)}}setTimeout(()=>m.current?.scrollIntoView?.({behavior:`smooth`,block:`start`}),0),x(e=>{let t=new URLSearchParams(e);return t.delete(`new`),t.delete(`open`),t},{replace:!0})},r=t.Zr(t.Qn,()=>(0,D.collection)(t.ui,t.Qn),r=>{let a=!!r.docs.find(e=>e.id===t.$n)?.data()?.liveMode;if(i(a),t.kr(a),f.current.size)return;let o=[];r.forEach(e=>{e.id!==`_settings`&&o.push(t.Dr(e.id,e.data()))}),o.sort((e,t)=>(e.createdAt||0)-(t.createdAt||0)),n(o),e(o,a)},()=>n([]));return()=>r()},[]);let j=e=>{n(t=>{let n=t||[];return n.some(t=>t.id===e.id)?n.map(t=>t.id===e.id?e:t):[...n,e]}),A(e)},M=()=>{let e=t.cr(`p_${Date.now().toString(36)}`);n(t=>[...t||[],e]),o(e.id),A(e)},N=async r=>{let i=f.current.get(r);i&&(clearTimeout(i),f.current.delete(r));let l=(e||[]).find(e=>e.id===r);u(``),n(e=>(e||[]).filter(e=>e.id!==r)),a===r&&o(null),s===r&&c(null);try{await(0,D.deleteDoc)((0,D.doc)(t.ui,t.Qn,r))}catch(e){console.error(`Could not remove the product`,e),l&&n(e=>{let t=e||[];return t.some(e=>e.id===r)?t:[...t,l].sort((e,t)=>(e.createdAt||0)-(t.createdAt||0))}),u(`It could not be removed — make sure you are signed in as an admin and try again.`)}},P=e=>{o(null),c(e),g.current?.scrollIntoView({behavior:`smooth`,block:`start`})};return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`div`,{ref:m,children:(0,E.jsx)(t.m,{icon:p.i,title:`What you sell`,description:`Things paid for once, each with a price; or a subscription with plans and their Stripe ids.`,children:(0,E.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[S&&(0,E.jsx)(`p`,{className:`text-[11px] sm:text-[11.5px] text-foreground/40 font-medium leading-snug px-1`,children:`Making a payment for ${C?.title||`your page`}. Fill it in, press Proceed, say how it works — then add it to the page.`}),e===null?(0,E.jsx)(`p`,{className:t.s,children:`Loading what you sell…`}):(0,E.jsxs)(E.Fragment,{children:[e.length===0&&(0,E.jsx)(`p`,{className:`text-[11px] sm:text-[11.5px] text-foreground/40 font-medium leading-snug px-1`,children:`Nothing here yet. Describe what you sell once — things paid for once need nothing from Stripe, and a subscription walks you through Stripe step by step — then say how it works in the section below, and add it to a page from the Pages screen.`}),e.map(e=>(0,E.jsx)(J,{product:e,open:a===e.id,live:r,roles:k,onToggle:()=>o(a===e.id?null:e.id),onChange:j,onRemove:()=>N(e.id),onProceed:()=>P(e.id)},e.id)),!!l&&(0,E.jsx)(`p`,{className:`text-[12px] font-semibold text-red-500 px-1`,children:l}),(0,E.jsx)(t.o,{icon:d.t,className:`self-start`,onClick:M,children:`Add something you sell`})]})]})})}),(0,E.jsx)(`div`,{ref:g,children:(0,E.jsx)(t.m,{icon:I,title:`How your payments work`,description:`One answer per payment: what someone does, pays, and gets. Then add it to any page from its Payments section on the Pages screen.`,children:(0,E.jsx)(R,{products:e,live:r,openId:s,onToggle:e=>c(s===e?null:e),onChange:j,forPage:C?{id:C.id,title:C.title}:void 0,onAddToPage:e=>{S&&y(t.ir(S,e))}})})}),(0,E.jsx)(U,{products:e||[],onChange:j,onRemove:N})]})}function X(e,t){return!e&&t!==`live`?{state:`off`,label:`In test mode`}:t===`live`?{state:`saved`,label:`Live`}:{state:`saving`,label:`Waiting for the live key`}}function Z(e){return e?e.configured?e.enabled?e.receipts?e.senderVerified?{state:`saved`,label:`From your domain`,line:`Every buyer gets one from ${e.from||`your own domain`}, with a link to Stripe’s own receipt.`,fix:!1}:{state:`off`,label:`Waiting for your domain`,line:`Receipts wait until your domain is verified on your Email screen: until then, buyers get none.`,fix:!0}:{state:`off`,label:`Switched off`,line:`“Email buyers a receipt” is off on your Email screen.`,fix:!0}:{state:`off`,label:`Email is off`,line:`Email is switched off on your Email screen, so buyers get no receipt.`,fix:!0}:{state:`off`,label:`Not set up`,line:`Buyers get no receipt until email is connected on your Email screen.`,fix:!0}:{state:`saving`,label:`Checking`,line:`Checking whether your buyers get a receipt…`,fix:!1}}function Q({email:e}){let n=Z(e);return(0,E.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,E.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,E.jsx)(`span`,{className:`text-[12.5px] font-bold text-foreground/80`,children:`Receipts`}),(0,E.jsx)(t._,{state:n.state,label:n.label})]}),(0,E.jsxs)(`p`,{className:t.s,children:[n.line,n.fix&&(0,E.jsxs)(E.Fragment,{children:[` `,(0,E.jsx)(O.Link,{to:`/email`,className:`text-accent font-bold hover:underline`,children:`Open the Email screen`})]})]}),(0,E.jsxs)(`p`,{className:t.s,children:[`Keep Stripe’s own receipt emails off, or every buyer gets two:`,` `,(0,E.jsx)(`a`,{href:`https://dashboard.stripe.com/settings/emails`,target:`_blank`,rel:`noopener noreferrer`,className:`text-accent font-bold hover:underline`,children:`Stripe Settings → Customer emails`}),` `,`→ Successful payments, off.`]})]})}var ee=[`checkout.session.completed`,`checkout.session.async_payment_succeeded`],te=`text-[12.5px] font-medium text-foreground/70 leading-relaxed`,$=`mt-1.5 space-y-1 list-disc list-inside marker:text-foreground/30`,ne=`my-2 glass-panel border border-[var(--panel-border)] rounded-2xl overflow-hidden bg-background`;function re(){let[r,i]=(0,T.useState)(null),[a,s]=(0,T.useState)([]),{status:c}=x.i(5e3),l=c?.mode??null,u=c?.webhookConfigured??!1,{status:d}=x.n(1e4),[f]=y.a(),p=f===`local`,{record:m}=w.l(),h=t.Vn(w.s(m)),g=m.done.includes(`authorised`)&&!!h;(0,T.useEffect)(()=>t.Zr(t.Qn,()=>(0,D.collection)(t.ui,t.Qn),e=>{i(!!e.docs.find(e=>e.id===t.$n)?.data()?.liveMode);let n=[];e.forEach(e=>{e.id!==`_settings`&&n.push(t.Dr(e.id,e.data()))}),n.sort((e,t)=>(e.createdAt||0)-(t.createdAt||0)),s(n)},()=>i(!1)),[]);let _=async e=>{i(e);try{await(0,D.setDoc)((0,D.doc)(t.ui,t.Qn,t.$n),{liveMode:e},{merge:!0})}catch(e){console.error(`Could not save the go-live switch`,e)}},v=!!r,b=X(v,l),S=a.filter(e=>t.wr(e,!1)),C=S.filter(e=>!t.wr(e,!0)),k=S.length>0&&C.length===0,A=S.some(e=>e.kind===`subscription`);return(0,E.jsx)(t.v,{icon:n.w,title:`Go live`,description:v?`Real cards, real money — the steps below finish the switch.`:`Practice is free — flip this only when a test payment has gone all the way through.`,chip:b,enabled:r===null?null:v,onChange:_,children:v&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`ol`,{className:`space-y-3.5 list-decimal list-inside ${te}`,children:[(0,E.jsxs)(`li`,{children:[(0,E.jsx)(`strong`,{children:`Your live secret key.`}),` In Stripe, click your account name in the top left corner and choose your `,(0,E.jsx)(`strong`,{children:`live`}),` account — not the sandbox.`,(0,E.jsxs)(`ul`,{className:$,children:[(0,E.jsxs)(`li`,{children:[`Open the dark strip along the bottom that says `,(0,E.jsx)(`strong`,{children:`Developers`}),`, and scroll down to the `,(0,E.jsx)(`strong`,{children:`API keys`}),` section.`]}),(0,E.jsxs)(`li`,{children:[`Click `,(0,E.jsx)(`strong`,{children:`Manage API keys`}),`. Under `,(0,E.jsx)(`strong`,{children:`Standard keys`}),`, click `,(0,E.jsx)(`strong`,{children:`+ Create secret key`}),`.`]}),(0,E.jsxs)(`li`,{children:[`Where it asks `,(0,E.jsx)(`em`,{children:`How will you be using this key?`}),`, choose`,` `,(0,E.jsx)(`strong`,{children:`Powering an integration you built`}),`, then`,` `,(0,E.jsx)(`strong`,{children:`Create secret key`}),`.`]}),(0,E.jsxs)(`li`,{children:[`Stripe asks you to confirm it is you: click `,(0,E.jsx)(`strong`,{children:`Send verification`}),` `,`and verify the request with the code it sends.`]}),(0,E.jsxs)(`li`,{children:[`Give the key a name — `,(0,E.jsx)(`span`,{className:`text-accent`,children:`my ai project app key`}),` `,`— and copy it. `,(0,E.jsx)(`strong`,{children:`Stripe will not show it to you again.`})]}),p?(0,E.jsxs)(`li`,{children:[`Open your `,(0,E.jsx)(`strong`,{children:`.env`}),` file and paste it over the sk_test_… value of `,(0,E.jsx)(`strong`,{children:`STRIPE_SECRET_KEY`}),` — replace it, do not add a second line. Start the app again, and the chip at the top of this card turns to `,(0,E.jsx)(`strong`,{children:`Live`}),` on its own.`]}):(0,E.jsxs)(`li`,{children:[`Click the `,(0,E.jsx)(t.n,{}),` icon in the top right corner of your app in Google AI Studio and find the `,(0,E.jsx)(`strong`,{children:`Secrets`}),` tab. Paste the new key over the value of `,(0,E.jsx)(`strong`,{children:`STRIPE_SECRET_KEY`}),` — replace the sk_test_… one, do not add a second. Click `,(0,E.jsx)(`strong`,{children:`Apply`}),` and refresh this page: the chip at the top of this card turns to `,(0,E.jsx)(`strong`,{children:`Live`}),` on its own.`]})]})]}),A&&(0,E.jsxs)(`li`,{children:[(0,E.jsx)(`strong`,{children:`Your live price ids.`}),` A subscription's prices are made fresh in live mode, so the ids under `,(0,E.jsx)(`strong`,{children:`What you sell`}),` change. Create each plan's price in your live Stripe account and paste its id there. Your test ids are kept and come straight back if you switch off again.`]}),(0,E.jsxs)(`li`,{children:[(0,E.jsx)(`strong`,{children:`The webhook.`}),` `,g?`What keeps receipts and your sale alerts sending when a buyer pays and never comes back to your app.`:`Stripe has to be able to reach your app from the outside, so this one waits until your app is published.`,` `,(0,E.jsx)(`span`,{className:`inline-block align-middle ml-0.5`,children:(0,E.jsx)(t._,{state:u?`saved`:`off`,label:u?`Connected`:`Not yet`})}),g?(0,E.jsxs)(`ul`,{className:$,children:[(0,E.jsxs)(`li`,{children:[`Still in your `,(0,E.jsx)(`strong`,{children:`live`}),` Stripe account, open the`,` `,(0,E.jsx)(`strong`,{children:`Developers`}),` strip at the bottom again and, in its top menu, click `,(0,E.jsx)(`strong`,{children:`Webhooks`}),`. Click `,(0,E.jsx)(`strong`,{children:`Add destination`}),`.`]}),(0,E.jsxs)(`li`,{children:[`Leave every setting as it is. Under `,(0,E.jsx)(`strong`,{children:`Events`}),`, use the`,` `,(0,E.jsx)(`em`,{children:`Find event by name or description…`}),` search bar to find these two, and click the checkmark on each:`,(0,E.jsx)(`div`,{className:`mt-1.5 flex flex-col gap-1`,children:ee.map(e=>(0,E.jsx)(y.t,{code:e,label:e,compact:!0},e))}),`The first is an ordinary card payment. The second is a bank transfer landing hours later, when nobody is watching — without it those sales send no email at all.`]}),(0,E.jsxs)(`li`,{children:[`Click `,(0,E.jsx)(`strong`,{children:`Continue`}),` and keep it as a`,` `,(0,E.jsx)(`strong`,{children:`Webhook endpoint`}),`. Give the destination a name —`,` `,(0,E.jsx)(`span`,{className:`text-accent`,children:`my ai project receipts`}),`.`]}),(0,E.jsxs)(`li`,{children:[`As the `,(0,E.jsx)(`strong`,{children:`Endpoint URL`}),`, paste exactly this — your published address with the webhook route on the end:`,(0,E.jsx)(`div`,{className:`my-2`,children:(0,E.jsx)(y.t,{code:h,label:`Copy your webhook address`,compact:!0})})]}),(0,E.jsxs)(`li`,{children:[`Create the destination. On the right, under Webhooks, you will find its`,` `,(0,E.jsx)(`strong`,{children:`signing secret`}),` — it starts with `,(0,E.jsx)(`strong`,{children:`whsec_`}),`. Copy it.`]}),(0,E.jsxs)(`li`,{children:[p?(0,E.jsxs)(E.Fragment,{children:[`Add the line below to your `,(0,E.jsx)(`strong`,{children:`.env`}),` file with the whsec_… secret as its value, and start the app again. You are all set — the chip beside this step turns green.`]}):(0,E.jsxs)(E.Fragment,{children:[`Click the `,(0,E.jsx)(t.n,{}),` icon in the top right corner of your app in Google AI Studio, scroll the menu along the top to `,(0,E.jsx)(`strong`,{children:`Secrets`}),` `,`and click `,(0,E.jsx)(`strong`,{children:`+ Add secret`}),`. Copy the name below into`,` `,(0,E.jsx)(`strong`,{children:`Secret name`}),` and paste the whsec_… secret as its value. Click `,(0,E.jsx)(`strong`,{children:`Apply`}),` and refresh this page. You are all set — the chip beside this step turns green.`]}),(0,E.jsx)(`div`,{className:ne,children:(0,E.jsx)(y.n,{name:`STRIPE_WEBHOOK_SECRET`,hint:`the whsec_… signing secret from the destination you just made`})})]})]}):(0,E.jsxs)(`div`,{className:`mt-2 flex flex-col gap-2.5`,children:[(0,E.jsxs)(t.h,{children:[`Your app has no public address yet, and the preview address in this browser is not one Stripe can reach — it changes every session.`,` `,m.done.length===0?`Publish your app first`:`Finish publishing your app first`,`: this step opens on its own once step 3 of Publish App,`,` `,(0,E.jsx)(`strong`,{children:`Add your domains and email sender`}),`, is ticked. Everything above works in the meantime.`]}),(0,E.jsxs)(O.Link,{to:`/publish`,className:`inline-flex items-center gap-1.5 w-fit h-9 px-4 rounded-[var(--btn-radius,0.75rem)] text-[12.5px] font-bold border border-accent/40 bg-accent/10 text-accent hover:bg-accent/15 transition-all active:scale-[0.98] cursor-pointer`,children:[`Take me to Publish App`,(0,E.jsx)(o.t,{className:`w-3.5 h-3.5`})]})]})]})]}),(0,E.jsx)(Q,{email:d}),(0,E.jsxs)(`p`,{className:`text-[11px] sm:text-[11.5px] text-foreground/40 font-medium leading-snug`,children:[`One more switch lives in Stripe, not here: switching plans (monthly ↔ yearly, Basic ↔ Pro) appears in Stripe’s customer portal — where your buyers manage their own subscriptions — only if you allow it:`,` `,(0,E.jsx)(`a`,{href:`https://dashboard.stripe.com/settings/billing/portal`,target:`_blank`,rel:`noopener noreferrer`,className:`text-accent font-bold hover:underline`,children:`Stripe Settings → Billing → Customer portal`}),` `,`→ let customers switch plans.`]}),S.length>0&&!k&&(0,E.jsxs)(`p`,{className:`text-[11px] sm:text-[11.5px] text-foreground/40 font-medium leading-snug`,children:[`Your subscriptions under What you sell now ask for `,(0,E.jsx)(`strong`,{children:`live`}),` price ids — `,C.length===S.length?`each one`:`${C.length} of ${S.length}`,` is still waiting. Your test ids are kept and come back if you switch back. Once the live ids are in, the message for your assistant appears right here.`]}),k&&(0,E.jsx)(e.o,{title:`Tell your assistant about the switch`,prompt:t.dr(S)})]})})}var ie=e=>e?{description:`Every Pay button on your pages works. Switch it off to pause all of it at once.`,chip:{state:`saved`,label:`On`}}:{description:`No Pay button shows and nothing can be bought. Your pages keep their settings.`,chip:{state:`off`,label:`Off`}};function ae(){let{user:r}=t.Ft(),{status:i,error:a,reread:o}=x.i(),[c,l]=(0,T.useState)(!1),[d,p]=(0,T.useState)(!1),[m,h]=(0,T.useState)(null),[_,v]=(0,T.useState)(``),[y,C]=(0,T.useState)(``),w=b.r(`payments`),[D,O]=(0,T.useState)(``),k=ie(w.on),j=(0,T.useCallback)(async e=>{let t=r?await r.getIdToken():``,n=await fetch(e,{headers:t?{Authorization:`Bearer ${t}`}:void 0}),i=await n.json().catch(()=>({}));if(!n.ok||i?.success===!1)throw Error(i?.error||`The server could not answer.`);return i},[r]),N=()=>{l(!1),o().then(()=>p(!0))};(0,T.useEffect)(()=>{if(!i?.configured||!r)return;let e=!1;return j(`/api/payments/products`).then(t=>{e||h(t.products||[])}).catch(t=>{e||v(t.message)}),()=>{e=!0}},[i?.configured,r,j]);let F=e=>{navigator.clipboard?.writeText(e),C(e),setTimeout(()=>C(``),2e3)},I=(m||[]).flatMap(e=>e.prices),L=i?.mode===`live`?`https://dashboard.stripe.com/products`:`https://dashboard.stripe.com/test/products`,R=!!(i&&!i.configured);return(0,E.jsxs)(`main`,{className:`flex-1 w-full max-w-7xl mx-auto p-4 pt-2 md:p-8 md:pt-4 z-10 flex flex-col min-h-screen`,children:[(0,E.jsxs)(t.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-6`,children:[(0,E.jsx)(e.t,{children:`Payments`}),(0,E.jsxs)(`div`,{className:`flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,E.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),`/payments`]})]}),(0,E.jsxs)(`div`,{className:`flex flex-col gap-6 flex-1 pb-16`,children:[(0,E.jsx)(n.t,{}),(0,E.jsx)(`div`,{className:`glass-panel border border-[var(--panel-border)] rounded-3xl p-4 sm:p-5 md:p-8 shadow-2xl relative bg-background flex flex-col fbos-tab-fill min-h-[600px]`,children:!i&&!a?(0,E.jsx)(`div`,{className:`flex items-center justify-center flex-1 text-foreground/40 py-16`,children:(0,E.jsx)(u.r,{className:`w-6 h-6 animate-spin text-accent`})}):R?(0,E.jsx)(S.ConnectCard,{icon:n.j,title:`Connect Stripe`,description:`This app is not taking payments yet.`,stepsDescription:`Three steps — about five minutes, with pretend money until you say otherwise.`,button:`Set up payments`,secret:`STRIPE_SECRET_KEY`,open:c,onOpen:()=>l(!0),confirmed:d,steps:(0,E.jsx)(S.StripeSetupSteps,{onConfirm:N}),children:(0,E.jsx)(t.h,{children:`Payments run through Stripe, and connecting it is one pasted key — no code, no terminal. Once it is in, this screen fills itself: what you sell, and every payment as it happens.`})}):(0,E.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[i?.mode===`live`&&(0,E.jsxs)(`div`,{className:`flex items-center gap-3 rounded-2xl border border-red-500/25 bg-red-500/[0.06] px-4 py-3`,children:[(0,E.jsx)(P,{className:`w-4 h-4 text-red-500 shrink-0`}),(0,E.jsx)(`p`,{className:`text-[12.5px] font-semibold text-red-500 leading-snug`,children:`Live mode — real cards are being charged. Every payment on this screen is real money.`})]}),(0,E.jsx)(t.v,{icon:f.t,title:`Take payments`,description:k.description,chip:k.chip,enabled:w.loading?null:w.on,onChange:async e=>O(await w.set(e)||``),children:D?(0,E.jsx)(t.h,{tone:`error`,children:D}):null}),(0,E.jsx)(t.m,{icon:A,title:`Connection`,description:`Which Stripe account this app is running on.`,defaultOpen:!i?.configured,actions:a?(0,E.jsx)(t._,{state:`error`,label:`Unreachable`}):(0,E.jsx)(t._,{state:`saved`,label:i?.mode===`live`?`Live mode connected`:`Test mode connected`}),children:a?(0,E.jsx)(t.h,{tone:`error`,children:a}):(0,E.jsx)(t.h,{children:i?.mode===`live`?`Connected with a live key. Payments made anywhere on your site are real money.`:`Test mode connected. Your Pay buttons work end to end, but only test cards are accepted and no real money moves. When you are ready for real payments, use Go live below.`})}),(0,E.jsx)(re,{}),(0,E.jsx)(Y,{}),(0,E.jsx)(t.m,{icon:M,title:`In your Stripe account`,description:`The products and prices Stripe has right now — where price ids come from.`,defaultOpen:!1,children:_?(0,E.jsx)(t.h,{tone:`error`,children:_}):m===null?(0,E.jsx)(`div`,{className:`flex items-center justify-center py-6 text-foreground/40`,children:(0,E.jsx)(u.r,{className:`w-5 h-5 animate-spin text-accent`})}):I.length===0?(0,E.jsxs)(t.h,{children:[`Nothing needs to exist here for one-off payments — a Pay button can name its own amount. Only a subscription needs a price made in Stripe first:`,` `,(0,E.jsx)(`a`,{href:L,target:`_blank`,rel:`noreferrer`,className:`text-accent font-bold hover:underline`,children:`create one in your Stripe dashboard`}),` `,`and it appears here with its id ready to copy.`]}):(0,E.jsx)(`div`,{className:`flex flex-col gap-2.5`,children:I.map(n=>(0,E.jsxs)(`div`,{className:`flex items-center gap-3 px-3.5 py-2.5 ${t.r}`,children:[(0,E.jsx)(`span`,{className:`text-[13px] font-bold text-foreground truncate min-w-0 flex-1`,children:n.productName||`Unnamed product`}),(0,E.jsxs)(`span`,{className:`text-[12.5px] font-semibold text-foreground/60 whitespace-nowrap shrink-0`,children:[g.r(n.amount,n.currency),n.interval?` / ${n.interval}`:``]}),(0,E.jsx)(t.o,{compact:!0,icon:y===n.id?t.At:e._,title:`Copy the price id for ${n.productName||`this price`}`,onClick:()=>F(n.id),children:y===n.id?`Copied`:`Copy price id`})]},n.id))})})]})})]}),(0,E.jsx)(s.t,{video:`payments`})]})}exports.PaymentsAdmin=ae;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, et as t, nt as n, rt as r } from "./TimeZoneField-
|
|
1
|
+
import { $ as e, et as t, nt as n, rt as r } from "./TimeZoneField-oIMwb5_X.js";
|
|
2
2
|
import { t as i } from "./x-hax8aKt8.js";
|
|
3
3
|
import { useEffect as a, useId as o, useRef as s } from "react";
|
|
4
4
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./TimeZoneField-
|
|
1
|
+
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./TimeZoneField-Ckn1pKAL.cjs`),t=require(`./x-Ci8c5p6T.cjs`);let n=require(`react`),r=require(`react/jsx-runtime`),i=require(`react-dom`);var a={sm:`sm:max-w-md`,md:`sm:max-w-xl`,lg:`sm:max-w-3xl`,xl:`sm:max-w-5xl`},o=[],s=``;function c(){return o.length}var l=`a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])`;function u({open:c,onClose:u,title:d,sub:f,size:p=`md`,side:m=`center`,footer:h,busy:g=!1,className:_,children:v}){let y=(0,n.useRef)(null),b=(0,n.useId)(),x=(0,n.useRef)(u),S=(0,n.useRef)(g);if((0,n.useEffect)(()=>{x.current=u,S.current=g}),(0,n.useEffect)(()=>{if(!c)return;let e=Symbol(`popup`);o.length||(s=document.body.style.overflow,document.body.style.overflow=`hidden`),o.push(e);let t=document.activeElement,n=window.setTimeout(()=>{y.current&&!y.current.contains(document.activeElement)&&y.current.focus()},0),r=t=>{if(o[o.length-1]!==e)return;if(t.key===`Escape`&&!t.defaultPrevented){S.current||x.current();return}if(t.key!==`Tab`||!y.current)return;let n=Array.from(y.current.querySelectorAll(l)).filter(e=>e.offsetParent!==null||e===document.activeElement);if(!n.length){t.preventDefault();return}let r=n[0],i=n[n.length-1],a=document.activeElement;t.shiftKey&&(a===r||a===y.current)?(t.preventDefault(),i.focus()):!t.shiftKey&&a===i&&(t.preventDefault(),r.focus())};return window.addEventListener(`keydown`,r),()=>{window.clearTimeout(n),window.removeEventListener(`keydown`,r);let i=o.indexOf(e);i>-1&&o.splice(i,1),o.length||(document.body.style.overflow=s),t&&document.contains(t)&&t.focus({preventScroll:!0})}},[c]),typeof document>`u`)return null;let C=m===`right`;return(0,i.createPortal)((0,r.jsx)(e.rt,{children:c&&(0,r.jsxs)(`div`,{className:e.$(`fixed inset-0 z-[9990] flex`,C?`justify-end`:`items-end sm:items-center justify-center sm:p-6`),children:[(0,r.jsx)(e.nt.div,{"data-popup-backdrop":``,onClick:()=>{g||u()},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:`absolute inset-0 bg-background/80 backdrop-blur-xl cursor-pointer`}),(0,r.jsxs)(e.nt.div,{ref:y,role:`dialog`,"aria-modal":`true`,"aria-labelledby":d?b:void 0,tabIndex:-1,initial:C?{opacity:0,x:32}:{opacity:0,y:24,scale:.98},animate:C?{opacity:1,x:0}:{opacity:1,y:0,scale:1},exit:C?{opacity:0,x:32}:{opacity:0,y:24,scale:.98},transition:{duration:.25,ease:[.16,1,.3,1]},className:e.$(`relative z-10 w-full flex flex-col glass-popover border border-[var(--panel-border)] shadow-2xl outline-none`,C?`h-full sm:max-w-md rounded-l-3xl`:e.$(`max-h-[92dvh] rounded-t-3xl sm:rounded-3xl`,a[p])),children:[(0,r.jsxs)(`div`,{className:`flex items-start justify-between gap-4 px-5 sm:px-7 pt-5 sm:pt-6 pb-3 shrink-0`,children:[(0,r.jsxs)(`div`,{className:`min-w-0`,children:[d?(0,r.jsx)(`h2`,{id:b,className:`text-lg sm:text-xl font-bold tracking-tight text-foreground break-words`,children:d}):null,f?(0,r.jsx)(`p`,{className:`text-[13px] text-foreground/60 font-medium leading-relaxed mt-1`,children:f}):null]}),(0,r.jsx)(`button`,{type:`button`,"aria-label":`Close`,onClick:()=>{g||u()},disabled:g,className:`shrink-0 -mr-2 -mt-1 w-10 h-10 inline-flex items-center justify-center rounded-full text-foreground/50 hover:text-foreground hover:bg-foreground/5 transition-colors cursor-pointer disabled:opacity-30 disabled:cursor-default`,children:(0,r.jsx)(t.t,{className:`w-5 h-5`})})]}),(0,r.jsx)(`div`,{className:e.$(`flex-1 min-h-0 overflow-y-auto overscroll-contain px-5 sm:px-7 pb-6`,_),children:(0,r.jsx)(e.et.Provider,{value:!0,children:v})}),h?(0,r.jsx)(`div`,{className:`shrink-0 px-5 sm:px-7 py-4 border-t border-[var(--panel-border)]`,children:h}):null]})]})}),document.body)}u.displayName=`Popup`,Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./chunk-CiTBaPhY.cjs`),t=require(`./PageTitle-
|
|
1
|
+
const e=require(`./chunk-CiTBaPhY.cjs`),t=require(`./PageTitle-BL50s4qY.cjs`),n=require(`./chevron-down-lyDK1rfL.cjs`),r=require(`./shield-check-Bsd5oaif.cjs`);let i=require(`react`);i=e.a(i,1);let a=require(`react/jsx-runtime`);var o={name:`id-card`,size:24,node:[[`path`,{d:`M13 19a4 4 0 00-8 0`,key:`cugzd5`}],[`path`,{d:`M16 10h2`,key:`8sgtl7`}],[`path`,{d:`M16 14h2`,key:`epxaof`}],[`circle`,{cx:`9`,cy:`12`,r:`3`,key:`u3jwor`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]};o.node;var s=n.n(o),c={name:`mail-open`,size:24,node:[[`path`,{d:`M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z`,key:`1jhwl8`}],[`path`,{d:`m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10`,key:`1qfld7`}]]};c.node;var l=n.n(c),u={name:`phone`,size:24,node:[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]};u.node;var d=n.n(u),f={password:t.h,emailLink:l,google:({className:e})=>(0,a.jsxs)(`svg`,{className:e,viewBox:`0 0 24 24`,"aria-hidden":`true`,children:[(0,a.jsx)(`path`,{fill:`#4285F4`,d:`M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z`}),(0,a.jsx)(`path`,{fill:`#34A853`,d:`M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z`}),(0,a.jsx)(`path`,{fill:`#FBBC05`,d:`M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z`}),(0,a.jsx)(`path`,{fill:`#EA4335`,d:`M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z`})]}),phone:d,github:({className:e})=>(0,a.jsx)(`svg`,{className:e,viewBox:`0.6 0.6 22.8 22.8`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{fill:`currentColor`,d:`M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12`})}),twitter:({className:e})=>(0,a.jsx)(`svg`,{className:e,viewBox:`0 0 24 24`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{fill:`currentColor`,d:`M18.9 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932zm-1.29 19.49h2.039L6.486 3.24H4.298z`})}),sms2fa:r.t};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return f}});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./PageTitle-BWmE74WQ.cjs`),t=require(`./TimeZoneField-zR8N2Fj0.cjs`),n=require(`./DashboardNav-DOl9gJuu.cjs`),r=require(`./chevron-down-lyDK1rfL.cjs`),i=require(`./SupportBar-CNVXSYwT.cjs`),a=require(`./Setup-DcZzh6Xd.cjs`),o=require(`./serviceStatus-1pGLLilF.cjs`),s=require(`./publishSteps-CaZRpC3C.cjs`);let c=require(`react`),l=require(`react/jsx-runtime`),u=require(`react-router-dom`);var d=`text-accent underline underline-offset-2 font-semibold hover:text-accent-deep transition-colors`,f=`space-y-2 list-decimal list-inside text-foreground/75 marker:font-bold marker:text-foreground/40`;function p({href:e,children:t}){return(0,l.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,className:d,children:t})}function m({children:e}){return(0,l.jsx)(`h4`,{className:`text-[12px] font-extrabold uppercase tracking-[0.14em] text-foreground/40 pt-1`,children:e})}function h({number:e,title:n,done:i,open:a,onToggle:o,children:s}){let c=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`span`,{className:`w-8 h-8 shrink-0 rounded-full flex items-center justify-center text-[13.5px] font-extrabold border ${i?`bg-emerald-500/10 border-emerald-500/20 text-emerald-500`:`bg-accent/10 border-accent/20 text-accent`}`,children:i?(0,l.jsx)(t.At,{className:`w-4 h-4`}):e}),(0,l.jsx)(`span`,{className:`flex-1 min-w-0 text-[14.5px] sm:text-[15px] font-bold text-foreground tracking-tight truncate`,children:n}),o&&(0,l.jsx)(r.t,{className:`w-4 h-4 shrink-0 text-foreground/40 transition-transform duration-200 ${a?`rotate-180`:``}`})]});return(0,l.jsxs)(`div`,{className:`rounded-2xl border border-[var(--panel-border)]/60 bg-foreground/[0.015] overflow-hidden transition-all`,children:[o?(0,l.jsx)(`button`,{type:`button`,onClick:o,"aria-expanded":a,className:`w-full px-4 sm:px-5 py-4 flex items-center gap-3 sm:gap-3.5 text-left cursor-pointer hover:bg-foreground/[0.02] transition-colors`,children:c}):(0,l.jsx)(`div`,{className:`w-full px-4 sm:px-5 py-4 flex items-center gap-3 sm:gap-3.5`,children:c}),(0,l.jsx)(t.rt,{initial:!1,children:a&&(0,l.jsx)(t.nt.div,{initial:{height:0,opacity:0},animate:{height:`auto`,opacity:1},exit:{height:0,opacity:0},transition:t.w,className:`overflow-hidden`,children:(0,l.jsx)(`div`,{className:`border-t border-[var(--panel-border)]/40 p-4 sm:p-5 flex flex-col gap-4 bg-background/30 text-[13.5px] sm:text-[14px] text-foreground/70 leading-relaxed`,children:s})})})]})}function g({label:e,onDone:n,waitingFor:r}){return(0,l.jsxs)(`div`,{className:`flex flex-col gap-2 pt-1`,children:[(0,l.jsxs)(t.nt.button,{type:`button`,whileHover:r?void 0:{scale:1.01},whileTap:r?void 0:{scale:.99},onClick:n,disabled:!!r,className:`btn-primary inline-flex items-center justify-center gap-2 h-11 px-5 rounded-[var(--btn-radius,0.75rem)] text-[13px] font-bold text-white self-start max-sm:self-stretch shadow-lg ${r?`opacity-40 cursor-not-allowed`:`cursor-pointer`}`,children:[(0,l.jsx)(t.At,{className:`w-4 h-4`}),e]}),r&&(0,l.jsx)(`span`,{className:`text-[11px] sm:text-[11.5px] text-foreground/40 font-medium leading-snug`,children:r})]})}function _({label:e,hint:n,placeholder:r,invalid:i,value:a,clean:o,preview:s,onSave:u}){let[d,f]=(0,c.useState)(a),[p,m]=(0,c.useState)(!1),[h,g]=(0,c.useState)(``),_=o(d),v=d.trim().length>0,y=_!==a;return(0,l.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,l.jsx)(t.b,{label:e,hint:n,value:d,onChange:e=>{f(e),g(``)},placeholder:r,error:h,action:(0,l.jsxs)(`div`,{className:`flex items-center gap-2`,children:[a&&!y&&(0,l.jsx)(t._,{state:`saved`,label:`Saved`}),(0,l.jsx)(t.o,{icon:t.At,onClick:async()=>{if(!_){g(i);return}m(!0);let e=await u(_);m(!1),g(e||``),e||f(_)},busy:p,disabled:!v||!y&&!!a,children:`Save`})]})}),_&&!h&&(0,l.jsx)(`div`,{className:`px-3.5 py-2.5 rounded-xl border border-[var(--panel-border)]/60 bg-background`,children:(0,l.jsx)(`span`,{className:`text-[12.5px] font-mono text-foreground/60 truncate block`,children:s(_)})})]})}function v({label:e,url:t}){return(0,l.jsxs)(`div`,{className:`flex max-sm:flex-col sm:items-center justify-between gap-2 sm:gap-3 px-3.5 py-3 rounded-xl border border-[var(--panel-border)]/60 bg-background`,children:[(0,l.jsxs)(`div`,{className:`min-w-0 flex flex-col gap-0.5`,children:[(0,l.jsx)(`span`,{className:`text-[11px] font-bold uppercase tracking-[0.14em] text-foreground/40`,children:e}),(0,l.jsx)(`span`,{className:`text-[12.5px] font-mono text-foreground/70 truncate`,children:t})]}),(0,l.jsx)(a.t,{compact:!0,code:t,label:`Copy`})]})}var y=[`216.239.32.21`,`216.239.34.21`,`216.239.36.21`,`216.239.38.21`];function b(){let{loading:r,record:d,save:b}=s.l(),[x,S]=(0,c.useState)(null),{status:C}=o.i(),w=s.o(d.done,x),T=e=>w[s.t.indexOf(e)],E=s.n(d.appName),D=s.a(d.domain),O=d.done.length===s.t.length,k=O&&s.c(C),A=O&&!k,j=e=>{S(null),b({done:s.u(d.done,e)})},M=e=>e.open?e.done?()=>S(null):void 0:()=>S(e.done?e.id:null),N=e=>{let t=T(e);return{done:t.done,open:t.open,onToggle:M(t)}};return(0,l.jsxs)(`main`,{className:`flex-1 w-full max-w-7xl mx-auto p-4 pt-2 md:p-8 md:pt-4 z-10 flex flex-col min-h-screen`,children:[(0,l.jsxs)(t.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-6`,children:[(0,l.jsx)(e.t,{children:`Publish App`}),(0,l.jsxs)(`div`,{className:`flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,l.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),`/publish`]})]}),(0,l.jsxs)(`div`,{className:`flex flex-col gap-6 flex-1 pb-16`,children:[(0,l.jsx)(n.t,{}),(0,l.jsxs)(t.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:`glass-panel border border-[var(--panel-border)] rounded-3xl p-4 sm:p-6 md:p-8 shadow-2xl relative bg-background flex flex-col fbos-tab-fill`,children:[(0,l.jsx)(`div`,{className:`mb-6 pb-4 sm:mb-8 sm:pb-6 border-b border-[var(--panel-border)]/50`,children:(0,l.jsxs)(`div`,{className:`min-w-0`,children:[(0,l.jsx)(`h2`,{className:`text-[17px] sm:text-xl font-bold text-foreground tracking-tight truncate`,children:`Putting your app in front of people`}),(0,l.jsxs)(`p`,{className:`text-[13px] font-medium text-foreground/50 mt-1 sm:mt-1.5 leading-snug truncate`,children:[(0,l.jsx)(`span`,{className:`sm:hidden`,children:`One step at a time. Stuck? Ask me below.`}),(0,l.jsx)(`span`,{className:`max-sm:hidden`,children:`One step at a time — the next one appears as you tick each off. Stuck anywhere? Ask me below.`})]})]})}),!r&&(0,l.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,l.jsxs)(h,{number:1,title:`Publish in AI Studio`,...N(`published`),children:[(0,l.jsxs)(`ol`,{className:f,children:[(0,l.jsxs)(`li`,{children:[`In `,(0,l.jsx)(p,{href:`https://aistudio.google.com`,children:`Google AI Studio`}),`, click`,` `,(0,l.jsx)(`strong`,{children:`Publish`}),` in the top left corner, then `,(0,l.jsx)(`strong`,{children:`Get started`}),`.`]}),(0,l.jsxs)(`li`,{children:[`It asks for an app URL. Type a name for your app —`,` `,(0,l.jsx)(`span`,{className:`text-accent`,children:`my-ai-project`}),` — and copy it, you need it again at the bottom of this step.`]}),(0,l.jsxs)(`li`,{children:[`Follow the rest of AI Studio's instructions, then click `,(0,l.jsx)(`strong`,{children:`Publish your app`}),`.`]})]}),(0,l.jsxs)(`p`,{children:[`If it says `,(0,l.jsx)(`strong`,{children:`Failed to publish app`}),`, reload the page, unpublish, and publish again. It usually goes through the second time.`]}),(0,l.jsx)(_,{label:`Your app name`,hint:`The name you just typed into AI Studio. Saving only keeps it for step 3 — nothing changes in AI Studio, it just says Saved. Pasting the whole address is fine; only the name is kept.`,placeholder:`my-ai-project`,invalid:`That does not look like an app name — letters, numbers and dashes.`,value:d.appName,clean:s.r,preview:s.n,onSave:e=>b({appName:e})}),(0,l.jsx)(g,{label:`My app is published`,onDone:()=>j(`published`),waitingFor:d.appName?void 0:`Save your app name first — step 3 asks for this address.`})]}),T(`connected`).visible&&(0,l.jsxs)(h,{number:2,title:`Connect your website domain`,...N(`connected`),children:[(0,l.jsxs)(`p`,{children:[`Your app is live at `,(0,l.jsx)(`span`,{className:`font-mono text-foreground/80`,children:E||`your AI Studio address`}),` `,`already. This step puts it on a domain of your own.`]}),(0,l.jsx)(m,{children:`Start the mapping`}),(0,l.jsxs)(`ol`,{className:f,children:[(0,l.jsxs)(`li`,{children:[`Back where you published, click `,(0,l.jsx)(`strong`,{children:`Advanced settings`}),`. It takes you to Google Cloud Run.`]}),(0,l.jsxs)(`li`,{children:[`In the menu on the left, open `,(0,l.jsx)(`strong`,{children:`Domain mappings`}),`, then`,` `,(0,l.jsx)(`strong`,{children:`Add mapping`}),` at the top.`]}),(0,l.jsxs)(`li`,{children:[`Choose your service, then under `,(0,l.jsx)(`strong`,{children:`Select a verified domain`}),` click`,` `,(0,l.jsx)(`strong`,{children:`Verify new domain`}),`.`]}),(0,l.jsxs)(`li`,{children:[`Type your domain — `,(0,l.jsx)(`span`,{className:`text-accent`,children:`myaiproject.com`}),` — and click`,` `,(0,l.jsx)(`strong`,{children:`Continue`}),`, then `,(0,l.jsx)(`strong`,{children:`Verify in Search Console`}),`.`]})]}),(0,l.jsx)(m,{children:`Prove the domain is yours`}),(0,l.jsxs)(`ol`,{className:f,children:[(0,l.jsxs)(`li`,{children:[`Google Search Console opens. Click `,(0,l.jsx)(`strong`,{children:`Add a website`}),`, type the same domain, and click `,(0,l.jsx)(`strong`,{children:`Continue`}),`.`]}),(0,l.jsxs)(`li`,{children:[`On the next screen, under `,(0,l.jsxs)(`em`,{children:[`Copy the TXT record below into the DNS configuration for `,s.i(d.domain)||`myaiproject.com`]}),`, copy the`,` `,(0,l.jsx)(`strong`,{children:`TXT record`}),` — a long line starting`,` `,(0,l.jsx)(`span`,{className:`font-mono text-foreground/80`,children:`google-site-verification=`})]}),(0,l.jsxs)(`li`,{children:[`Open your domain registrar in another tab — GoDaddy, Namecheap, whoever you bought the domain from — go to its `,(0,l.jsx)(`strong`,{children:`DNS settings`}),`, and click`,` `,(0,l.jsx)(`strong`,{children:`Add record`}),`. Choose `,(0,l.jsx)(`strong`,{children:`TXT`}),`, paste the line into`,` `,(0,l.jsx)(`strong`,{children:`Value`}),`, and put `,(0,l.jsx)(`span`,{className:`font-mono text-foreground/80`,children:`@`}),` `,`in `,(0,l.jsx)(`strong`,{children:`Host`}),` or `,(0,l.jsx)(`strong`,{children:`Name`}),`. Save it.`]}),(0,l.jsxs)(`li`,{children:[`Back in Search Console, click `,(0,l.jsx)(`strong`,{children:`Verify`}),`.`]}),(0,l.jsxs)(`li`,{children:[`Once it is verified you are done with Search Console — close that tab. Go back to the Google Cloud Run tab (`,(0,l.jsx)(`span`,{className:`font-mono text-foreground/80`,children:`console.cloud.google.com`}),`) where you clicked to verify, and press its `,(0,l.jsx)(`strong`,{children:`refresh`}),` button. It should say `,(0,l.jsxs)(`em`,{children:[`Your ownership of `,s.i(d.domain)||`myaiproject.com`,` has been successfully verified. You can now map this domain to your Cloud Run services.`]})]})]}),(0,l.jsx)(m,{children:`Point the domain at your app`}),(0,l.jsxs)(`ol`,{className:f,children:[(0,l.jsxs)(`li`,{children:[`Add a subdomain if you want one, then click `,(0,l.jsx)(`strong`,{children:`Continue`}),`. Cloud Run now shows you the records to add.`]}),(0,l.jsxs)(`li`,{children:[`Back at your registrar, add each one as an `,(0,l.jsx)(`strong`,{children:`A record`}),`, the same way you added the TXT. It is normally these four:`]})]}),(0,l.jsxs)(`div`,{className:`rounded-xl border border-[var(--panel-border)]/60 bg-background overflow-hidden`,children:[(0,l.jsxs)(`div`,{className:`flex items-center justify-between gap-3 px-3.5 py-2.5 border-b border-[var(--panel-border)]/40`,children:[(0,l.jsx)(`span`,{className:`text-[11px] font-bold uppercase tracking-[0.14em] text-foreground/40`,children:`A records`}),(0,l.jsx)(a.t,{compact:!0,code:y.join(`
|
|
1
|
+
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./PageTitle-BL50s4qY.cjs`),t=require(`./TimeZoneField-Ckn1pKAL.cjs`),n=require(`./DashboardNav-Bc619nqn.cjs`),r=require(`./chevron-down-lyDK1rfL.cjs`),i=require(`./SupportBar-DR52UpBq.cjs`),a=require(`./Setup-DiFnnzdd.cjs`),o=require(`./serviceStatus-Cde96_OO.cjs`),s=require(`./publishSteps-DvWlF0p_.cjs`);let c=require(`react`),l=require(`react/jsx-runtime`),u=require(`react-router-dom`);var d=`text-accent underline underline-offset-2 font-semibold hover:text-accent-deep transition-colors`,f=`space-y-2 list-decimal list-inside text-foreground/75 marker:font-bold marker:text-foreground/40`;function p({href:e,children:t}){return(0,l.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,className:d,children:t})}function m({children:e}){return(0,l.jsx)(`h4`,{className:`text-[12px] font-extrabold uppercase tracking-[0.14em] text-foreground/40 pt-1`,children:e})}function h({number:e,title:n,done:i,open:a,onToggle:o,children:s}){let c=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`span`,{className:`w-8 h-8 shrink-0 rounded-full flex items-center justify-center text-[13.5px] font-extrabold border ${i?`bg-emerald-500/10 border-emerald-500/20 text-emerald-500`:`bg-accent/10 border-accent/20 text-accent`}`,children:i?(0,l.jsx)(t.At,{className:`w-4 h-4`}):e}),(0,l.jsx)(`span`,{className:`flex-1 min-w-0 text-[14.5px] sm:text-[15px] font-bold text-foreground tracking-tight truncate`,children:n}),o&&(0,l.jsx)(r.t,{className:`w-4 h-4 shrink-0 text-foreground/40 transition-transform duration-200 ${a?`rotate-180`:``}`})]});return(0,l.jsxs)(`div`,{className:`rounded-2xl border border-[var(--panel-border)]/60 bg-foreground/[0.015] overflow-hidden transition-all`,children:[o?(0,l.jsx)(`button`,{type:`button`,onClick:o,"aria-expanded":a,className:`w-full px-4 sm:px-5 py-4 flex items-center gap-3 sm:gap-3.5 text-left cursor-pointer hover:bg-foreground/[0.02] transition-colors`,children:c}):(0,l.jsx)(`div`,{className:`w-full px-4 sm:px-5 py-4 flex items-center gap-3 sm:gap-3.5`,children:c}),(0,l.jsx)(t.rt,{initial:!1,children:a&&(0,l.jsx)(t.nt.div,{initial:{height:0,opacity:0},animate:{height:`auto`,opacity:1},exit:{height:0,opacity:0},transition:t.w,className:`overflow-hidden`,children:(0,l.jsx)(`div`,{className:`border-t border-[var(--panel-border)]/40 p-4 sm:p-5 flex flex-col gap-4 bg-background/30 text-[13.5px] sm:text-[14px] text-foreground/70 leading-relaxed`,children:s})})})]})}function g({label:e,onDone:n,waitingFor:r}){return(0,l.jsxs)(`div`,{className:`flex flex-col gap-2 pt-1`,children:[(0,l.jsxs)(t.nt.button,{type:`button`,whileHover:r?void 0:{scale:1.01},whileTap:r?void 0:{scale:.99},onClick:n,disabled:!!r,className:`btn-primary inline-flex items-center justify-center gap-2 h-11 px-5 rounded-[var(--btn-radius,0.75rem)] text-[13px] font-bold text-white self-start max-sm:self-stretch shadow-lg ${r?`opacity-40 cursor-not-allowed`:`cursor-pointer`}`,children:[(0,l.jsx)(t.At,{className:`w-4 h-4`}),e]}),r&&(0,l.jsx)(`span`,{className:`text-[11px] sm:text-[11.5px] text-foreground/40 font-medium leading-snug`,children:r})]})}function _({label:e,hint:n,placeholder:r,invalid:i,value:a,clean:o,preview:s,onSave:u}){let[d,f]=(0,c.useState)(a),[p,m]=(0,c.useState)(!1),[h,g]=(0,c.useState)(``),_=o(d),v=d.trim().length>0,y=_!==a;return(0,l.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,l.jsx)(t.b,{label:e,hint:n,value:d,onChange:e=>{f(e),g(``)},placeholder:r,error:h,action:(0,l.jsxs)(`div`,{className:`flex items-center gap-2`,children:[a&&!y&&(0,l.jsx)(t._,{state:`saved`,label:`Saved`}),(0,l.jsx)(t.o,{icon:t.At,onClick:async()=>{if(!_){g(i);return}m(!0);let e=await u(_);m(!1),g(e||``),e||f(_)},busy:p,disabled:!v||!y&&!!a,children:`Save`})]})}),_&&!h&&(0,l.jsx)(`div`,{className:`px-3.5 py-2.5 rounded-xl border border-[var(--panel-border)]/60 bg-background`,children:(0,l.jsx)(`span`,{className:`text-[12.5px] font-mono text-foreground/60 truncate block`,children:s(_)})})]})}function v({label:e,url:t}){return(0,l.jsxs)(`div`,{className:`flex max-sm:flex-col sm:items-center justify-between gap-2 sm:gap-3 px-3.5 py-3 rounded-xl border border-[var(--panel-border)]/60 bg-background`,children:[(0,l.jsxs)(`div`,{className:`min-w-0 flex flex-col gap-0.5`,children:[(0,l.jsx)(`span`,{className:`text-[11px] font-bold uppercase tracking-[0.14em] text-foreground/40`,children:e}),(0,l.jsx)(`span`,{className:`text-[12.5px] font-mono text-foreground/70 truncate`,children:t})]}),(0,l.jsx)(a.t,{compact:!0,code:t,label:`Copy`})]})}var y=[`216.239.32.21`,`216.239.34.21`,`216.239.36.21`,`216.239.38.21`];function b(){let{loading:r,record:d,save:b}=s.l(),[x,S]=(0,c.useState)(null),{status:C}=o.i(),w=s.o(d.done,x),T=e=>w[s.t.indexOf(e)],E=s.n(d.appName),D=s.a(d.domain),O=d.done.length===s.t.length,k=O&&s.c(C),A=O&&!k,j=e=>{S(null),b({done:s.u(d.done,e)})},M=e=>e.open?e.done?()=>S(null):void 0:()=>S(e.done?e.id:null),N=e=>{let t=T(e);return{done:t.done,open:t.open,onToggle:M(t)}};return(0,l.jsxs)(`main`,{className:`flex-1 w-full max-w-7xl mx-auto p-4 pt-2 md:p-8 md:pt-4 z-10 flex flex-col min-h-screen`,children:[(0,l.jsxs)(t.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-6`,children:[(0,l.jsx)(e.t,{children:`Publish App`}),(0,l.jsxs)(`div`,{className:`flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,l.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),`/publish`]})]}),(0,l.jsxs)(`div`,{className:`flex flex-col gap-6 flex-1 pb-16`,children:[(0,l.jsx)(n.t,{}),(0,l.jsxs)(t.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:`glass-panel border border-[var(--panel-border)] rounded-3xl p-4 sm:p-6 md:p-8 shadow-2xl relative bg-background flex flex-col fbos-tab-fill`,children:[(0,l.jsx)(`div`,{className:`mb-6 pb-4 sm:mb-8 sm:pb-6 border-b border-[var(--panel-border)]/50`,children:(0,l.jsxs)(`div`,{className:`min-w-0`,children:[(0,l.jsx)(`h2`,{className:`text-[17px] sm:text-xl font-bold text-foreground tracking-tight truncate`,children:`Putting your app in front of people`}),(0,l.jsxs)(`p`,{className:`text-[13px] font-medium text-foreground/50 mt-1 sm:mt-1.5 leading-snug truncate`,children:[(0,l.jsx)(`span`,{className:`sm:hidden`,children:`One step at a time. Stuck? Ask me below.`}),(0,l.jsx)(`span`,{className:`max-sm:hidden`,children:`One step at a time — the next one appears as you tick each off. Stuck anywhere? Ask me below.`})]})]})}),!r&&(0,l.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,l.jsxs)(h,{number:1,title:`Publish in AI Studio`,...N(`published`),children:[(0,l.jsxs)(`ol`,{className:f,children:[(0,l.jsxs)(`li`,{children:[`In `,(0,l.jsx)(p,{href:`https://aistudio.google.com`,children:`Google AI Studio`}),`, click`,` `,(0,l.jsx)(`strong`,{children:`Publish`}),` in the top left corner, then `,(0,l.jsx)(`strong`,{children:`Get started`}),`.`]}),(0,l.jsxs)(`li`,{children:[`It asks for an app URL. Type a name for your app —`,` `,(0,l.jsx)(`span`,{className:`text-accent`,children:`my-ai-project`}),` — and copy it, you need it again at the bottom of this step.`]}),(0,l.jsxs)(`li`,{children:[`Follow the rest of AI Studio's instructions, then click `,(0,l.jsx)(`strong`,{children:`Publish your app`}),`.`]})]}),(0,l.jsxs)(`p`,{children:[`If it says `,(0,l.jsx)(`strong`,{children:`Failed to publish app`}),`, reload the page, unpublish, and publish again. It usually goes through the second time.`]}),(0,l.jsx)(_,{label:`Your app name`,hint:`The name you just typed into AI Studio. Saving only keeps it for step 3 — nothing changes in AI Studio, it just says Saved. Pasting the whole address is fine; only the name is kept.`,placeholder:`my-ai-project`,invalid:`That does not look like an app name — letters, numbers and dashes.`,value:d.appName,clean:s.r,preview:s.n,onSave:e=>b({appName:e})}),(0,l.jsx)(g,{label:`My app is published`,onDone:()=>j(`published`),waitingFor:d.appName?void 0:`Save your app name first — step 3 asks for this address.`})]}),T(`connected`).visible&&(0,l.jsxs)(h,{number:2,title:`Connect your website domain`,...N(`connected`),children:[(0,l.jsxs)(`p`,{children:[`Your app is live at `,(0,l.jsx)(`span`,{className:`font-mono text-foreground/80`,children:E||`your AI Studio address`}),` `,`already. This step puts it on a domain of your own.`]}),(0,l.jsx)(m,{children:`Start the mapping`}),(0,l.jsxs)(`ol`,{className:f,children:[(0,l.jsxs)(`li`,{children:[`Back where you published, click `,(0,l.jsx)(`strong`,{children:`Advanced settings`}),`. It takes you to Google Cloud Run.`]}),(0,l.jsxs)(`li`,{children:[`In the menu on the left, open `,(0,l.jsx)(`strong`,{children:`Domain mappings`}),`, then`,` `,(0,l.jsx)(`strong`,{children:`Add mapping`}),` at the top.`]}),(0,l.jsxs)(`li`,{children:[`Choose your service, then under `,(0,l.jsx)(`strong`,{children:`Select a verified domain`}),` click`,` `,(0,l.jsx)(`strong`,{children:`Verify new domain`}),`.`]}),(0,l.jsxs)(`li`,{children:[`Type your domain — `,(0,l.jsx)(`span`,{className:`text-accent`,children:`myaiproject.com`}),` — and click`,` `,(0,l.jsx)(`strong`,{children:`Continue`}),`, then `,(0,l.jsx)(`strong`,{children:`Verify in Search Console`}),`.`]})]}),(0,l.jsx)(m,{children:`Prove the domain is yours`}),(0,l.jsxs)(`ol`,{className:f,children:[(0,l.jsxs)(`li`,{children:[`Google Search Console opens. Click `,(0,l.jsx)(`strong`,{children:`Add a website`}),`, type the same domain, and click `,(0,l.jsx)(`strong`,{children:`Continue`}),`.`]}),(0,l.jsxs)(`li`,{children:[`On the next screen, under `,(0,l.jsxs)(`em`,{children:[`Copy the TXT record below into the DNS configuration for `,s.i(d.domain)||`myaiproject.com`]}),`, copy the`,` `,(0,l.jsx)(`strong`,{children:`TXT record`}),` — a long line starting`,` `,(0,l.jsx)(`span`,{className:`font-mono text-foreground/80`,children:`google-site-verification=`})]}),(0,l.jsxs)(`li`,{children:[`Open your domain registrar in another tab — GoDaddy, Namecheap, whoever you bought the domain from — go to its `,(0,l.jsx)(`strong`,{children:`DNS settings`}),`, and click`,` `,(0,l.jsx)(`strong`,{children:`Add record`}),`. Choose `,(0,l.jsx)(`strong`,{children:`TXT`}),`, paste the line into`,` `,(0,l.jsx)(`strong`,{children:`Value`}),`, and put `,(0,l.jsx)(`span`,{className:`font-mono text-foreground/80`,children:`@`}),` `,`in `,(0,l.jsx)(`strong`,{children:`Host`}),` or `,(0,l.jsx)(`strong`,{children:`Name`}),`. Save it.`]}),(0,l.jsxs)(`li`,{children:[`Back in Search Console, click `,(0,l.jsx)(`strong`,{children:`Verify`}),`.`]}),(0,l.jsxs)(`li`,{children:[`Once it is verified you are done with Search Console — close that tab. Go back to the Google Cloud Run tab (`,(0,l.jsx)(`span`,{className:`font-mono text-foreground/80`,children:`console.cloud.google.com`}),`) where you clicked to verify, and press its `,(0,l.jsx)(`strong`,{children:`refresh`}),` button. It should say `,(0,l.jsxs)(`em`,{children:[`Your ownership of `,s.i(d.domain)||`myaiproject.com`,` has been successfully verified. You can now map this domain to your Cloud Run services.`]})]})]}),(0,l.jsx)(m,{children:`Point the domain at your app`}),(0,l.jsxs)(`ol`,{className:f,children:[(0,l.jsxs)(`li`,{children:[`Add a subdomain if you want one, then click `,(0,l.jsx)(`strong`,{children:`Continue`}),`. Cloud Run now shows you the records to add.`]}),(0,l.jsxs)(`li`,{children:[`Back at your registrar, add each one as an `,(0,l.jsx)(`strong`,{children:`A record`}),`, the same way you added the TXT. It is normally these four:`]})]}),(0,l.jsxs)(`div`,{className:`rounded-xl border border-[var(--panel-border)]/60 bg-background overflow-hidden`,children:[(0,l.jsxs)(`div`,{className:`flex items-center justify-between gap-3 px-3.5 py-2.5 border-b border-[var(--panel-border)]/40`,children:[(0,l.jsx)(`span`,{className:`text-[11px] font-bold uppercase tracking-[0.14em] text-foreground/40`,children:`A records`}),(0,l.jsx)(a.t,{compact:!0,code:y.join(`
|
|
2
2
|
`),label:`Copy all four`})]}),(0,l.jsx)(`div`,{className:`px-3.5 py-2.5 flex flex-col gap-1`,children:y.map(e=>(0,l.jsx)(`span`,{className:`text-[12.5px] font-mono text-foreground/70`,children:e},e))})]}),(0,l.jsx)(`p`,{className:`text-[11px] sm:text-[11.5px] text-foreground/40 font-medium leading-snug`,children:`Use whatever your own Cloud Run screen shows if it differs from these — that screen is always right.`}),(0,l.jsxs)(`p`,{children:[`Once they are all in, press `,(0,l.jsx)(`strong`,{children:`Done`}),` in Cloud Run and wait — this can take an hour or more. Check every few minutes by typing your domain into any browser, like `,(0,l.jsx)(`span`,{className:`text-accent`,children:`myaiproject.com`}),`: when your published app comes up, it is connected.`]}),(0,l.jsx)(_,{label:`Your domain`,hint:`However you have it — with or without https:// and www. Only the domain itself is kept, for step 3.`,placeholder:`myaiproject.com`,invalid:`That does not look like a domain — something like myaiproject.com.`,value:d.domain,clean:s.i,preview:s.a,onSave:e=>b({domain:e})}),(0,l.jsx)(g,{label:`My domain is verified and my app is connected`,onDone:()=>j(`connected`),waitingFor:d.domain?void 0:`Save your domain first — step 3 asks for this address.`})]}),T(`authorised`).visible&&(0,l.jsxs)(h,{number:3,title:`Add your domains and email sender`,...N(`authorised`),children:[(0,l.jsxs)(`p`,{children:[`Once your domain answers, head back to the`,` `,(0,l.jsx)(p,{href:`https://console.firebase.google.com`,children:`Firebase console`}),`. Two jobs, both under `,(0,l.jsx)(`strong`,{children:`Security → Authentication`}),`.`]}),(0,l.jsx)(m,{children:`Authorise both addresses`}),(0,l.jsxs)(`p`,{children:[`Nobody can sign in from an address Firebase does not know. Open`,` `,(0,l.jsx)(`strong`,{children:`Security → Authentication → Settings → Authorised domains`}),`, click`,` `,(0,l.jsx)(`strong`,{children:`Add domain`}),`, and paste these in one at a time — both need to be there.`]}),(0,l.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,l.jsx)(v,{label:`Your AI Studio address`,url:E?`${s.r(d.appName)}.ai.studio`:`—`}),(0,l.jsx)(v,{label:`Your own domain`,url:s.i(d.domain)||`—`})]}),(0,l.jsx)(m,{children:`Send email from your own domain`}),(0,l.jsxs)(`ol`,{className:f,children:[(0,l.jsxs)(`li`,{children:[`On the same Authentication page, open the `,(0,l.jsx)(`strong`,{children:`Templates`}),` tab. Every email Firebase sends for you lives here — password changes, email verification. You can reword them, but the one thing worth doing is the sender.`]}),(0,l.jsxs)(`li`,{children:[`Click the pencil beside `,(0,l.jsx)(`strong`,{children:`From`}),`. It will be something like`,` `,(0,l.jsx)(`span`,{className:`font-mono text-foreground/80`,children:`noreply@your-project.firebaseapp.com`})]}),(0,l.jsxs)(`li`,{children:[`On the right, click `,(0,l.jsx)(`strong`,{children:`Customise domain`}),`, enter your own domain, and follow the steps it gives you — more records at your registrar, same as before.`]})]}),(0,l.jsx)(`p`,{children:`This is what keeps your emails out of people's spam folders, and it is why they arrive looking like they came from you.`}),(0,l.jsx)(g,{label:`I've added my domains and verified my email domain`,onDone:()=>j(`authorised`)})]}),k&&(0,l.jsxs)(h,{number:4,title:`Finalise your Stripe live setup`,done:!1,open:!0,children:[(0,l.jsx)(`p`,{children:`Your payments are not live yet — still on practice cards, or live without the webhook that sends receipts. Finish Go live on the Payments screen and your setup is complete.`}),(0,l.jsxs)(`p`,{children:[`Switch `,(0,l.jsx)(`strong`,{children:`Go live`}),` on and follow its steps. Its webhook step was waiting for your published address, and it is open now that step 3 is ticked.`]}),(0,l.jsxs)(u.Link,{to:`/payments`,className:`btn-primary inline-flex items-center justify-center gap-2 h-11 px-5 rounded-[var(--btn-radius,0.75rem)] text-[13px] font-bold text-white self-start max-sm:self-stretch shadow-lg cursor-pointer`,children:[(0,l.jsx)(n.j,{className:`w-4 h-4`}),`Take me to Go live`]})]}),A&&(0,l.jsxs)(`div`,{className:`mt-3 flex max-sm:flex-col sm:items-center gap-4 sm:gap-6 p-5 sm:p-6 rounded-2xl border border-emerald-500/20 bg-emerald-500/[0.06]`,children:[(0,l.jsx)(`div`,{className:`w-10 h-10 shrink-0 rounded-2xl flex items-center justify-center border border-emerald-500/20 bg-emerald-500/10 text-emerald-500`,children:(0,l.jsx)(n.w,{className:`w-5 h-5`})}),(0,l.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,l.jsx)(`h3`,{className:`text-[15px] font-bold text-foreground tracking-tight`,children:`Your app is live`}),(0,l.jsxs)(`p`,{className:`text-[13px] text-foreground/60 font-medium leading-relaxed mt-1`,children:[D?(0,l.jsxs)(l.Fragment,{children:[`Anyone can open `,(0,l.jsx)(p,{href:D,children:s.i(d.domain)}),` and sign up.`]}):(0,l.jsx)(l.Fragment,{children:`Anyone can open your app and sign up.`}),` `,`Any step above opens again if you need to check what you typed.`]})]})]})]})]}),(0,l.jsx)(i.t,{video:`publish`})]})]})}exports.PublishApp=b;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as e } from "./PageTitle-
|
|
2
|
-
import { At as t, _ as n, b as r, nt as i, o as a, rt as o, w as s } from "./TimeZoneField-
|
|
3
|
-
import { j as c, t as l, w as u } from "./DashboardNav-
|
|
1
|
+
import { t as e } from "./PageTitle-CkZriz8K.js";
|
|
2
|
+
import { At as t, _ as n, b as r, nt as i, o as a, rt as o, w as s } from "./TimeZoneField-oIMwb5_X.js";
|
|
3
|
+
import { j as c, t as l, w as u } from "./DashboardNav-CxS3Qnl-.js";
|
|
4
4
|
import { t as d } from "./chevron-down--LwXEv9w.js";
|
|
5
|
-
import { t as f } from "./SupportBar-
|
|
6
|
-
import { t as p } from "./Setup-
|
|
7
|
-
import { i as m } from "./serviceStatus-
|
|
8
|
-
import { a as h, c as g, i as _, l as v, n as y, o as b, r as x, t as S, u as C } from "./publishSteps-
|
|
5
|
+
import { t as f } from "./SupportBar-0nIiQp-_.js";
|
|
6
|
+
import { t as p } from "./Setup-DOGI-_8f.js";
|
|
7
|
+
import { i as m } from "./serviceStatus-C9izcuQz.js";
|
|
8
|
+
import { a as h, c as g, i as _, l as v, n as y, o as b, r as x, t as S, u as C } from "./publishSteps-Cf5pSB_H.js";
|
|
9
9
|
import { useState as w } from "react";
|
|
10
10
|
import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
11
11
|
import { Link as O } from "react-router-dom";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as e, nt as t, rt as n } from "./TimeZoneField-
|
|
1
|
+
import { At as e, nt as t, rt as n } from "./TimeZoneField-oIMwb5_X.js";
|
|
2
2
|
import { n as r } from "./chevron-down--LwXEv9w.js";
|
|
3
3
|
import { useEffect as i, useState as a, useSyncExternalStore as o } from "react";
|
|
4
4
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./TimeZoneField-
|
|
1
|
+
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./TimeZoneField-Ckn1pKAL.cjs`),t=require(`./chevron-down-lyDK1rfL.cjs`);let n=require(`react`),r=require(`react/jsx-runtime`),i=require(`react-dom`);var a={name:`shopping-bag`,size:24,node:[[`path`,{d:`M16 10a4 4 0 0 1-8 0`,key:`1ltviw`}],[`path`,{d:`M3.103 6.034h17.794`,key:`awc11p`}],[`path`,{d:`M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z`,key:`o988cm`}]]};a.node;var o=t.n(a),s=null,c=0,l=new Set,u=()=>l.forEach(e=>e()),d=e=>(l.add(e),()=>{l.delete(e)}),f=()=>s;function p(e,t={}){let n=String(e??``).trim();n&&(c+=1,s={id:c,text:n,...t},u())}function m(){s&&(s=null,u())}function h(){let t=(0,n.useSyncExternalStore)(d,f,()=>null),[a,o]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!t||a)return;let e=window.setTimeout(()=>{s&&s.id===t.id&&m()},Math.max(1500,t.for??3500));return()=>window.clearTimeout(e)},[t,a]),typeof document>`u`?null:(0,i.createPortal)((0,r.jsx)(`div`,{role:`status`,"aria-live":`polite`,className:`fixed inset-x-0 top-0 sm:top-auto sm:bottom-0 z-[10000] flex justify-center px-4 pt-[max(0.75rem,env(safe-area-inset-top))] sm:pt-0 sm:pb-[max(1.25rem,env(safe-area-inset-bottom))] pointer-events-none`,children:(0,r.jsx)(e.rt,{children:t&&(0,r.jsxs)(e.nt.div,{initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98},transition:{duration:.22,ease:[.16,1,.3,1]},onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),className:`pointer-events-auto max-w-full inline-flex items-center gap-3 pl-4 pr-2 py-2 rounded-full glass-popover border border-[var(--panel-border)] text-foreground`,children:[(0,r.jsx)(`span`,{className:`shrink-0 w-6 h-6 rounded-full bg-accent/15 text-accent inline-flex items-center justify-center`,children:(0,r.jsx)(e.At,{className:`w-3.5 h-3.5`,strokeWidth:3})}),(0,r.jsx)(e.nt.span,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.18},className:`text-[13px] font-semibold leading-snug min-w-0 break-words py-1 pr-2`,children:t.text},t.id),t.action?(0,r.jsx)(`button`,{type:`button`,onClick:()=>{let e=t.action.onClick;m(),e()},className:`shrink-0 h-9 px-4 rounded-full bg-accent/10 hover:bg-accent/20 text-accent text-[13px] font-bold transition-colors cursor-pointer`,children:t.action.label}):null]},`said`)})}),document.body)}h.displayName=`Said`,Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { a as e, t } from "./PageTitle-
|
|
2
|
-
import { Dr as n, Ft as r, Jn as i, Mt as a, Qn as o, S as s, Z as c, Zr as l, _ as u, b as d, br as f, c as p, cr as m, g as h, gr as g, i as _, jt as v, m as y, nt as b, o as x, s as S, t as C, ui as w, x as T, xr as E, y as D } from "./TimeZoneField-
|
|
3
|
-
import { C as O, S as k, t as A } from "./DashboardNav-
|
|
1
|
+
import { a as e, t } from "./PageTitle-CkZriz8K.js";
|
|
2
|
+
import { Dr as n, Ft as r, Jn as i, Mt as a, Qn as o, S as s, Z as c, Zr as l, _ as u, b as d, br as f, c as p, cr as m, g as h, gr as g, i as _, jt as v, m as y, nt as b, o as x, s as S, t as C, ui as w, x as T, xr as E, y as D } from "./TimeZoneField-oIMwb5_X.js";
|
|
3
|
+
import { C as O, S as k, t as A } from "./DashboardNav-CxS3Qnl-.js";
|
|
4
4
|
import { B as j, Bt as M, D as N, G as P, K as F, M as ee, O as I, Sn as L, U as te, W as ne, Zt as re, _ as ie, b as ae, d as oe, dt as se, et as ce, ft as le, h as ue, ht as de, j as fe, l as pe, m as me, mt as he, nn as R, o as ge, ot as _e, pt as ve, qt as ye, rn as be, s as xe, t as Se, u as z, ut as Ce } from "./schedule-C13m_kiO.js";
|
|
5
5
|
import { t as B } from "./chevron-down--LwXEv9w.js";
|
|
6
|
-
import { B as we, C as Te, F as Ee, H as De, I as Oe, L as ke, M as Ae, N as je, P as Me, R as Ne, S as Pe, T as Fe, U as Ie, V, a as Le, c as Re, d as ze, f as Be, g as H, h as Ve, m as He, n as Ue, p as We, r as Ge, t as Ke, u as qe, v as Je, w as Ye, y as Xe, z as Ze } from "./scheduleData-
|
|
7
|
-
import { d as Qe } from "./BookingCalendar-
|
|
8
|
-
import { n as $e, t as et } from "./paidSessions-
|
|
6
|
+
import { B as we, C as Te, F as Ee, H as De, I as Oe, L as ke, M as Ae, N as je, P as Me, R as Ne, S as Pe, T as Fe, U as Ie, V, a as Le, c as Re, d as ze, f as Be, g as H, h as Ve, m as He, n as Ue, p as We, r as Ge, t as Ke, u as qe, v as Je, w as Ye, y as Xe, z as Ze } from "./scheduleData-DR6A-Q7Z.js";
|
|
7
|
+
import { d as Qe } from "./BookingCalendar-Bej__mIs.js";
|
|
8
|
+
import { n as $e, t as et } from "./paidSessions-C9392hZH.js";
|
|
9
9
|
import { t as tt } from "./link-2-CtDUJiNU.js";
|
|
10
10
|
import { t as U } from "./x-hax8aKt8.js";
|
|
11
11
|
import { t as W } from "./plus-BKrt0Qx5.js";
|
|
12
12
|
import { t as G } from "./trash-6Wj66gJi.js";
|
|
13
|
-
import { n as nt } from "./Loader-
|
|
14
|
-
import { i as rt } from "./email-
|
|
15
|
-
import { r as it } from "./notices-
|
|
16
|
-
import { t as at } from "./ConfirmModal-
|
|
17
|
-
import { a as ot, c as st, f as ct, i as lt, l as ut, m as dt, n as ft, p as pt, r as mt, s as ht, t as gt, u as _t } from "./bookingPages-
|
|
13
|
+
import { n as nt } from "./Loader-CVoz1Zf0.js";
|
|
14
|
+
import { i as rt } from "./email-PBHbXXgR.js";
|
|
15
|
+
import { r as it } from "./notices-CysS7BLF.js";
|
|
16
|
+
import { t as at } from "./ConfirmModal-BW9e6Y7d.js";
|
|
17
|
+
import { a as ot, c as st, f as ct, i as lt, l as ut, m as dt, n as ft, p as pt, r as mt, s as ht, t as gt, u as _t } from "./bookingPages-BFSY3Riv.js";
|
|
18
18
|
import { i as vt } from "./AccessNotice-DGsp8Xfl.js";
|
|
19
|
-
import { n as yt } from "./SystemTabContent-
|
|
20
|
-
import { r as bt } from "./serviceStatus-
|
|
19
|
+
import { n as yt } from "./SystemTabContent-CMyT7mDN.js";
|
|
20
|
+
import { r as bt } from "./serviceStatus-C9izcuQz.js";
|
|
21
21
|
import { n as xt, t as St } from "./NeedsService-SxEZO5Fa.js";
|
|
22
|
-
import { t as Ct } from "./CopyLink-
|
|
22
|
+
import { t as Ct } from "./CopyLink-kROJG9Qf.js";
|
|
23
23
|
import { useEffect as K, useMemo as q, useRef as J, useState as Y } from "react";
|
|
24
24
|
import { Fragment as X, jsx as Z, jsxs as Q } from "react/jsx-runtime";
|
|
25
25
|
import { collection as wt, doc as Tt, setDoc as Et } from "firebase/firestore";
|