your-ai-workflow-firebase-os 2.0.11 → 2.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/AddressField-CJqrm_0Q.js +325 -0
- package/dist/AddressField-DagGSeja.cjs +1 -0
- package/dist/Assets-B1FnTxqI.cjs +1 -0
- package/dist/Assets-DEV5ZFKt.js +307 -0
- package/dist/Attachments-BxdDnQX6.js +46 -0
- package/dist/Attachments-ZIVLTrPc.cjs +1 -0
- package/dist/Billing-BtUSOk3m.js +395 -0
- package/dist/Billing-ByNlippy.cjs +1 -0
- package/dist/Button-DBRy6th6.js +48 -0
- package/dist/Button-DU_0CFEH.cjs +1 -0
- package/dist/ConfirmModal-CnhqoL-w.cjs +1 -0
- package/dist/ConfirmModal-SxRCyUuu.js +113 -0
- package/dist/ContactPopup-BV76FHLk.cjs +2 -0
- package/dist/ContactPopup-toidJeyp.js +1473 -0
- package/dist/DashboardNav-B4DPCUp_.js +1407 -0
- package/dist/DashboardNav-D720vB0P.cjs +1 -0
- package/dist/EmailAdmin-DlnAzUbS.js +1116 -0
- package/dist/EmailAdmin-NGGPiMN_.cjs +1 -0
- package/dist/EmailParts-BlBK-DH3.js +273 -0
- package/dist/EmailParts-CrdTIn2V.cjs +1 -0
- package/dist/FileViewerPopup-DoR_iMQ3.js +1205 -0
- package/dist/FileViewerPopup-eLWt3CGR.cjs +3 -0
- package/dist/FormNote-BGn7DwkX.js +72 -0
- package/dist/FormNote-DYy72Jy1.cjs +1 -0
- package/dist/FormsAdmin-CNCbSWh1.js +815 -0
- package/dist/FormsAdmin-D2CBoiJA.cjs +1 -0
- package/dist/Inbox-C1AXX_2V.cjs +3 -0
- package/dist/Inbox-wWPTy_br.js +1025 -0
- package/dist/Loader-DNRaP6wF.js +32 -0
- package/dist/Loader-J-Oqt3L_.cjs +1 -0
- package/dist/ManagePlanButton-BYlCYQTV.cjs +1 -0
- package/dist/ManagePlanButton-DpCd0Fe0.js +33 -0
- package/dist/NeedsService-B1nkxaO8.cjs +1 -0
- package/dist/NeedsService-COQ9p9jY.js +96 -0
- package/dist/PageTitle-ByxBmxNx.cjs +6 -0
- package/dist/PageTitle-DO0OE7Tr.js +4517 -0
- package/dist/PagesAdmin-BPPsGbYO.js +3 -0
- package/dist/PagesAdmin-C7Fg3VeH.cjs +1 -0
- package/dist/PagesAdmin-DByUxVhg.js +6068 -0
- package/dist/PagesAdmin-d1f4nKA3.cjs +39 -0
- package/dist/PaymentsAdmin-CJWY7wjz.js +1831 -0
- package/dist/PaymentsAdmin-D23wudSo.cjs +2 -0
- package/dist/PhoneInputField-BKbWYaog.js +131 -0
- package/dist/PhoneInputField-C6eBeNwS.cjs +1 -0
- package/dist/PhoneInputField-C9Lv_QGM.cjs +1 -0
- package/dist/Picture-CIpRravW.cjs +10 -0
- package/dist/Picture-CzSiC5hG.js +8204 -0
- package/dist/Popup-7bYsS1iG.js +142 -0
- package/dist/Popup-B2t89jbC.cjs +1 -0
- package/dist/ProviderMark-DJMtxquj.cjs +1 -0
- package/dist/ProviderMark-beV3VDW3.js +109 -0
- package/dist/PublishApp-BcVnci2y.cjs +2 -0
- package/dist/PublishApp-CBRAStj2.js +595 -0
- package/dist/Said-K7oCGT4l.cjs +1 -0
- package/dist/Said-yHP9J07u.js +236 -0
- package/dist/Setup-CURZ6S14.js +851 -0
- package/dist/Setup-Cf26EW-R.cjs +1554 -0
- package/dist/SetupPayments-C1xxP0cB.js +368 -0
- package/dist/SetupPayments-DXaFcOo3.cjs +1 -0
- package/dist/SignInAdmin-_Cb1qG2R.js +822 -0
- package/dist/SignInAdmin-kki-wXWs.cjs +4 -0
- package/dist/SupportBar-DCy5HD1F.cjs +1 -0
- package/dist/SupportBar-OxtSzIqL.js +258 -0
- package/dist/SystemTabContent-Cnt60sfz.js +37 -0
- package/dist/SystemTabContent-D4Zitxnu.cjs +1 -0
- package/dist/TemplateDrive-BC3tiCTp.cjs +1 -0
- package/dist/TemplateDrive-DFvhdgVG.js +1026 -0
- package/dist/ThemeAdmin-B18r-KU9.js +2 -0
- package/dist/ThemeAdmin-BHsaMok-.js +269 -0
- package/dist/ThemeAdmin-BYrymThM.cjs +3 -0
- package/dist/ThemeAdmin-DC2O-s0n.cjs +1 -0
- package/dist/TransactionsAdmin-BBI8c9x4.cjs +1 -0
- package/dist/TransactionsAdmin-CKD8mikC.js +837 -0
- package/dist/Users-59fJdROR.cjs +1 -0
- package/dist/Users-DLaNTXp3.js +1245 -0
- package/dist/VideoPlayer-DoIzaXer.cjs +1 -0
- package/dist/VideoPlayer-_2CbbI3c.js +902 -0
- package/dist/a-arrow-down-NZpB0F8-.js +25 -0
- package/dist/a-arrow-up-CtCEt1EX.js +25 -0
- package/dist/a-large-small-DRiuHmp0.js +25 -0
- package/dist/accessibility-BxVzQiZQ.js +31 -0
- package/dist/activity-JOYWdKjz.js +11 -0
- package/dist/ad-COG8rICF.js +29 -0
- package/dist/aiModels-CDowlUve.js +229 -0
- package/dist/aiModels-Cvb3MFy6.cjs +1 -0
- package/dist/air-vent-C701ZVFQ.js +25 -0
- package/dist/airplay-CP2JtlWg.js +14 -0
- package/dist/alarm-clock-DkksdlXH.js +35 -0
- package/dist/alarm-clock-check-1rNmLSVD.js +36 -0
- package/dist/alarm-clock-minus-D8sXKCZN.js +36 -0
- package/dist/alarm-clock-off-3nDnftEP.js +33 -0
- package/dist/alarm-clock-plus-vxYWsdwA.js +40 -0
- package/dist/alarm-smoke-p3G-Yi8T.js +29 -0
- package/dist/align-center-horizontal-DOILWald.js +29 -0
- package/dist/align-center-vertical-CTMm9zmu.js +29 -0
- package/dist/align-end-horizontal-BUc2BcI5.js +29 -0
- package/dist/align-end-vertical-D-fXLX1M.js +29 -0
- package/dist/align-horizontal-distribute-center-CEpWt4qG.js +41 -0
- package/dist/align-horizontal-distribute-end-BfIr2VeR.js +33 -0
- package/dist/align-horizontal-distribute-start-CW7QpqPc.js +33 -0
- package/dist/align-horizontal-justify-center-DK0dbagW.js +29 -0
- package/dist/align-horizontal-justify-end-BAKaC9EA.js +29 -0
- package/dist/align-horizontal-justify-start-DTdHt9kt.js +29 -0
- package/dist/align-horizontal-space-around-RyhI-z2_.js +25 -0
- package/dist/align-horizontal-space-between-c7o3rVwl.js +33 -0
- package/dist/align-start-horizontal-D7mIeb2j.js +29 -0
- package/dist/align-start-vertical-Ctw-00Fh.js +29 -0
- package/dist/align-vertical-distribute-center-C5lWZahv.js +41 -0
- package/dist/align-vertical-distribute-end-BSya2eDU.js +33 -0
- package/dist/align-vertical-distribute-start-vsU2T7av.js +33 -0
- package/dist/align-vertical-justify-center-Okkrpdpy.js +29 -0
- package/dist/align-vertical-justify-end-Bx86KkbR.js +29 -0
- package/dist/align-vertical-justify-start-jITPIXk-.js +29 -0
- package/dist/align-vertical-space-around-DHmi1oAh.js +25 -0
- package/dist/align-vertical-space-between-Cm6E_5eW.js +33 -0
- package/dist/ambulance-CuAFvHrv.js +41 -0
- package/dist/ampersand-C_auYGrI.js +14 -0
- package/dist/ampersands-C7OAG1j3.js +14 -0
- package/dist/amphora-aqIi-MGG.js +33 -0
- package/dist/anchor-BUZShq6V.js +27 -0
- package/dist/angle-CnUNRYgy.js +14 -0
- package/dist/antenna-DdAlC8de.js +33 -0
- package/dist/anvil-is8CmUEo.js +29 -0
- package/dist/aperture-DVsTIJ_3.js +39 -0
- package/dist/app-window-DUnk8E6m.js +29 -0
- package/dist/app-window-mac-BhiSytZW.js +29 -0
- package/dist/appIcons-D79pfgSt.cjs +132 -0
- package/dist/appIcons-_DGhWHoa.js +3719 -0
- package/dist/apple-CuoF4gf4.js +14 -0
- package/dist/archive-BWScKYk5.js +25 -0
- package/dist/archive-restore-Kf0XaTke.js +33 -0
- package/dist/archive-x-BUZfSpir.js +29 -0
- package/dist/armchair-DBTm5JF6.js +25 -0
- package/dist/arrivalRoads-PBQNGGIE.js +0 -0
- package/dist/arrivalRoads-kQAFp2Fh.cjs +0 -0
- package/dist/arrow-big-down-2LAmENEf.js +11 -0
- package/dist/arrow-big-down-dash-8LqQdffk.js +14 -0
- package/dist/arrow-big-left-D9akylDb.js +11 -0
- package/dist/arrow-big-left-dash-BC-roFXT.js +14 -0
- package/dist/arrow-big-right-B4CpfE7r.js +11 -0
- package/dist/arrow-big-right-dash--FhuLkFL.js +14 -0
- package/dist/arrow-big-up-Cpac5Y30.js +11 -0
- package/dist/arrow-big-up-dash-0-DwFDaS.js +14 -0
- package/dist/arrow-down-0-1-CiXhzCS1.js +34 -0
- package/dist/arrow-down-1-0-Jqdxo1Ju.js +34 -0
- package/dist/arrow-down-DarrS50j.js +14 -0
- package/dist/arrow-down-a-z-DaqrCzNt.js +30 -0
- package/dist/arrow-down-from-line-BqwqVCRw.js +21 -0
- package/dist/arrow-down-left-B-uIycIY.js +14 -0
- package/dist/arrow-down-narrow-wide-C1VgoSbA.js +29 -0
- package/dist/arrow-down-right-DtTw81lQ.js +14 -0
- package/dist/arrow-down-to-dot-CYtNCPf7.js +23 -0
- package/dist/arrow-down-to-line-0zW0nSGA.js +21 -0
- package/dist/arrow-down-up-B0Lwy_N7.js +25 -0
- package/dist/arrow-down-wide-narrow-CAohfK5I.js +30 -0
- package/dist/arrow-down-z-a-hMLXMrl3.js +30 -0
- package/dist/arrow-left-BE34Ermr.js +17 -0
- package/dist/arrow-left-CxF-5_Pi.js +14 -0
- package/dist/arrow-left-from-line-CcV3uqFj.js +21 -0
- package/dist/arrow-left-right-BRW5xHPA.js +25 -0
- package/dist/arrow-left-to-line-BG_zIUJ9.js +21 -0
- package/dist/arrow-right-Cwp9dkHj.js +14 -0
- package/dist/arrow-right-from-line-CBSXmCLx.js +21 -0
- package/dist/arrow-right-left-BIwfPfrQ.js +25 -0
- package/dist/arrow-right-to-line-pxVD15Oo.js +21 -0
- package/dist/arrow-up-0-1-Cz9ZqihN.js +34 -0
- package/dist/arrow-up-1-0-BUVzgYWn.js +34 -0
- package/dist/arrow-up-8WkYZez0.js +14 -0
- package/dist/arrow-up-a-z-kcQNDqKZ.js +30 -0
- package/dist/arrow-up-down-BpCRO288.js +25 -0
- package/dist/arrow-up-from-dot-DYT7E2pb.js +23 -0
- package/dist/arrow-up-from-line-BlyW5_BV.js +21 -0
- package/dist/arrow-up-left-DafhYZeI.js +14 -0
- package/dist/arrow-up-narrow-wide-CzvcUXdB.js +30 -0
- package/dist/arrow-up-right-Dd13wqcK.js +14 -0
- package/dist/arrow-up-to-line-DCV9Sgrc.js +21 -0
- package/dist/arrow-up-wide-narrow-CM7TYccs.js +29 -0
- package/dist/arrow-up-z-a-BxYUHxRe.js +30 -0
- package/dist/arrows-up-from-line-Df3kXPOg.js +29 -0
- package/dist/asterisk-IvJxwnSf.js +21 -0
- package/dist/astroid-CTjmF_sF.js +11 -0
- package/dist/at-sign-B1jV6McG.js +16 -0
- package/dist/atom-CJncFPGp.js +23 -0
- package/dist/audio-lines-CpNZsy53.js +33 -0
- package/dist/audio-lines-off-DlpQNw1T.js +45 -0
- package/dist/audio-lines-x-CQxiFgSu.js +41 -0
- package/dist/audio-waveform-CuaPFuyb.js +11 -0
- package/dist/award-D5RpscNd.js +16 -0
- package/dist/axe-CRiMcrbl.js +14 -0
- package/dist/axis-3d-D8B7K6L-.js +26 -0
- package/dist/baby-C13ZCkew.js +25 -0
- package/dist/backpack-B-T4-ZTH.js +29 -0
- package/dist/badge-Cc-UecL4.js +11 -0
- package/dist/badge-alert-D68_t5gT.js +27 -0
- package/dist/badge-cent-CIgyPQDm.js +21 -0
- package/dist/badge-check-xaP8sKxC.js +15 -0
- package/dist/badge-dollar-sign-DOqThNW5.js +21 -0
- package/dist/badge-euro-DL8DDXqO.js +21 -0
- package/dist/badge-indian-rupee-BRmIbUvh.js +25 -0
- package/dist/badge-info-DuogMD_J.js +27 -0
- package/dist/badge-japanese-yen-D27mITdB.js +29 -0
- package/dist/badge-minus-CGU376vo.js +17 -0
- package/dist/badge-percent-DpJMXkUv.js +25 -0
- package/dist/badge-plus-D2dghaaZ.js +27 -0
- package/dist/badge-pound-sterling-CxW6bPTb.js +25 -0
- package/dist/badge-question-mark-BE9mdPzP.js +25 -0
- package/dist/badge-russian-ruble-7v7x7KWo.js +21 -0
- package/dist/badge-swiss-franc-BJoCLxQe.js +25 -0
- package/dist/badge-turkish-lira-ZPBPJNdp.js +21 -0
- package/dist/badge-x-CpMt0oDP.js +27 -0
- package/dist/baggage-claim-vZS4_q7b.js +37 -0
- package/dist/bake-opgmpipf.js +10289 -0
- package/dist/bake-vLyAEgWy.cjs +38 -0
- package/dist/balloon-fBamzmEE.js +21 -0
- package/dist/ban-BhqK2Dk_.js +16 -0
- package/dist/banana-CMcJvkrX.js +14 -0
- package/dist/bandage-BYxBBylA.js +41 -0
- package/dist/banknote-BXGKsz-e.js +27 -0
- package/dist/banknote-arrow-down-DTZ4uKZh.js +35 -0
- package/dist/banknote-arrow-up-BbHVJWeB.js +35 -0
- package/dist/banknote-check-DNskoPE8.js +31 -0
- package/dist/banknote-x-nwxPPUje.js +35 -0
- package/dist/barcode-D27ciRzj.js +29 -0
- package/dist/barrel-CQ3FChTN.js +29 -0
- package/dist/baseline-B9JDVj2I.js +21 -0
- package/dist/bath-3RwV_2tJ.js +29 -0
- package/dist/battery-BHirM0Nd.js +18 -0
- package/dist/battery-charging-C1-9o3Al.js +25 -0
- package/dist/battery-full-gfj_nenZ.js +33 -0
- package/dist/battery-low-CxTYEbMh.js +25 -0
- package/dist/battery-medium-01WsFL37.js +29 -0
- package/dist/battery-plus-BEG7AdlT.js +29 -0
- package/dist/battery-warning-D59oibYV.js +29 -0
- package/dist/beaker-C_cG30cR.js +21 -0
- package/dist/bean-DyHe_06Y.js +14 -0
- package/dist/bean-off-CEJOmVe_.js +28 -0
- package/dist/bed-DZ6uyP7w.js +25 -0
- package/dist/bed-double-DyoS-ZC-.js +25 -0
- package/dist/bed-single-CQ0PYnXD.js +21 -0
- package/dist/beef-off-BVNkHZp-.js +33 -0
- package/dist/beef-pqyTpy8q.js +23 -0
- package/dist/beer-BaiU9qj1.js +29 -0
- package/dist/beer-off-6f1w3reE.js +41 -0
- package/dist/bell-CYV_mqQH.js +14 -0
- package/dist/bell-check-B4oqaxkv.js +25 -0
- package/dist/bell-dot-X6TjbKEH.js +23 -0
- package/dist/bell-electric-DzaeGkBC.js +41 -0
- package/dist/bell-minus-CqriVJLL.js +21 -0
- package/dist/bell-off-tl2wzP4C.js +25 -0
- package/dist/bell-plus-CrdW9O39.js +25 -0
- package/dist/bell-ring-iO2wCKad.js +25 -0
- package/dist/between-horizontal-end-ClPgXrmm.js +30 -0
- package/dist/between-horizontal-start-BBgUejBL.js +30 -0
- package/dist/between-vertical-end-DlXuZXzT.js +29 -0
- package/dist/between-vertical-start-BXgoADw6.js +29 -0
- package/dist/biceps-flexed-CNIMl-Fh.js +21 -0
- package/dist/bike-D-6nLxma.js +31 -0
- package/dist/binary-1BWCimeu.js +41 -0
- package/dist/binoculars-Bd5PBoIz.js +33 -0
- package/dist/biohazard-DeDh_WRW.js +51 -0
- package/dist/bird-cKU6qb_Q.js +33 -0
- package/dist/birdhouse-CQ3Z5vGz.js +35 -0
- package/dist/bitcoin-BDrYoD93.js +11 -0
- package/dist/blend-Dm95m8nr.js +18 -0
- package/dist/blender-kDpnIofb.js +33 -0
- package/dist/blinds-C5JObd4E.js +39 -0
- package/dist/blocks-BLkBIVv2.js +18 -0
- package/dist/bluetooth-VGCMovIW.js +11 -0
- package/dist/bluetooth-connected-CIfKPxH4.js +27 -0
- package/dist/bluetooth-off-DfzOzLZC.js +21 -0
- package/dist/bluetooth-searching-ZQi_gu1d.js +21 -0
- package/dist/bold-YZSdS2TF.js +11 -0
- package/dist/bolt-BO5XRCW4.js +16 -0
- package/dist/bomb-BheaqK-P.js +23 -0
- package/dist/bone-B7VOHZog.js +11 -0
- package/dist/bone-fracture-UfC6jXXP.js +33 -0
- package/dist/book-YcXjE0_X.js +11 -0
- package/dist/book-a-LnZd1MRa.js +21 -0
- package/dist/book-alert-a4EC1gpK.js +21 -0
- package/dist/book-audio-CB2J8g-w.js +25 -0
- package/dist/book-bookmark-Bt4Xs6T-.js +15 -0
- package/dist/book-check-C8E_ZLs4.js +14 -0
- package/dist/book-copy-CqWdcni6.js +21 -0
- package/dist/book-dashed-B7zNjB3f.js +54 -0
- package/dist/book-down-DWOUhh5l.js +21 -0
- package/dist/book-headphones-BlFS6Vhl.js +29 -0
- package/dist/book-heart-CqD4W3GW.js +14 -0
- package/dist/book-image-CI-VCM_b.js +23 -0
- package/dist/book-key-CRUmwflh.js +31 -0
- package/dist/book-lock-CrSSQQsw.js +29 -0
- package/dist/book-minus-ZvMNDbor.js +14 -0
- package/dist/book-open-BzHS5_pd.js +14 -0
- package/dist/book-open-check-Di_Ytr0E.js +21 -0
- package/dist/book-open-text-ByDrE0j3.js +33 -0
- package/dist/book-plus-Dlvp5Dyk.js +21 -0
- package/dist/book-search-D6LCdfD4.js +27 -0
- package/dist/book-text-D71mB2yq.js +21 -0
- package/dist/book-type-DzmjpRx0.js +25 -0
- package/dist/book-up-2-Bv8eMS7E.js +29 -0
- package/dist/book-up-D_LcUjMX.js +21 -0
- package/dist/book-user-Bn66yNiy.js +23 -0
- package/dist/book-x-CpitG-NF.js +21 -0
- package/dist/bookmark-CVD2QIxI.js +11 -0
- package/dist/bookmark-check-B0zXXz1E.js +14 -0
- package/dist/bookmark-minus-B464oTDH.js +14 -0
- package/dist/bookmark-off-CNoRh_7x.js +21 -0
- package/dist/bookmark-plus-DW-kUvaW.js +21 -0
- package/dist/bookmark-x-YTUlZqjj.js +21 -0
- package/dist/boom-box-CzbBICe_.js +45 -0
- package/dist/bot-BkUg25KW.js +37 -0
- package/dist/bot-message-square-BEqRDGte.js +33 -0
- package/dist/bot-off-CUKhhsDl.js +37 -0
- package/dist/bottle-wine-DxDGrxDq.js +14 -0
- package/dist/bow-arrow-DFCKYIcr.js +29 -0
- package/dist/box-DIyIE7LE.js +21 -0
- package/dist/boxes-DndW5gP2.js +57 -0
- package/dist/braces-DMDTBKQL.js +15 -0
- package/dist/brackets-Cfy-F5RA.js +14 -0
- package/dist/brain-CbgOwyft.js +41 -0
- package/dist/brain-circuit-CIrxzR6n.js +69 -0
- package/dist/brain-cog-f80w3eCc.js +71 -0
- package/dist/brick-wall-Dxbkbarc.js +45 -0
- package/dist/brick-wall-fire-Dc9kW_sK.js +37 -0
- package/dist/brick-wall-shield-CziEAxRV.js +41 -0
- package/dist/bridge-D6sun2hZ.js +33 -0
- package/dist/briefcase-5Zr-OEaN.js +18 -0
- package/dist/briefcase-business-C4Qm91W_.js +29 -0
- package/dist/briefcase-conveyor-belt-Bbn964bY.js +41 -0
- package/dist/briefcase-medical-0ifvztT4.js +37 -0
- package/dist/bring-to-front-xln4tv_M.js +25 -0
- package/dist/broccoli-7wcKaaJW.js +25 -0
- package/dist/broom-DvbDC2Xw.js +25 -0
- package/dist/broom-sparkles-DC5fMAt9.js +49 -0
- package/dist/brush-CxHRsksf.js +21 -0
- package/dist/brush-cleaning-D-Gn8Icn.js +25 -0
- package/dist/bubbles-BDnd2RLv.js +31 -0
- package/dist/bug-BX2Si_ey.js +53 -0
- package/dist/bug-off-ClrBeU2Z.js +57 -0
- package/dist/bug-play-TK1sVjPz.js +45 -0
- package/dist/building-DtxBT-Sl.js +57 -0
- package/dist/building-complex-DpFzR6m2.js +30 -0
- package/dist/building-complex-plus-CQ5OeOC2.js +41 -0
- package/dist/bus-BDAps1NN.js +41 -0
- package/dist/bus-front-CFVhv2mO.js +49 -0
- package/dist/cable-P96LwLXS.js +37 -0
- package/dist/cable-car-E04LI7Fp.js +45 -0
- package/dist/cake-CALRefJB.js +45 -0
- package/dist/cake-slice-C8pDpofz.js +27 -0
- package/dist/calculator-DwcZ_9eM.js +59 -0
- package/dist/calendar-1-BlShXEOg.js +33 -0
- package/dist/calendar-Dm_M-O5W.js +29 -0
- package/dist/calendar-arrow-down-BXI2Pu6E.js +33 -0
- package/dist/calendar-arrow-up-DU9QpCvn.js +33 -0
- package/dist/calendar-check-2-D45-dwqF.js +53 -0
- package/dist/calendar-check-BlTa2ai1.js +33 -0
- package/dist/calendar-chevrons-right-C8sC6X8e.js +33 -0
- package/dist/calendar-clock-cbHoJhXw.js +35 -0
- package/dist/calendar-cog-CZvOnJN2.js +63 -0
- package/dist/calendar-days-D6ycEYt1.js +53 -0
- package/dist/calendar-fold-OuBzRxkC.js +25 -0
- package/dist/calendar-heart-Cpk88KUf.js +29 -0
- package/dist/calendar-minus-2-Cx-V1qpP.js +33 -0
- package/dist/calendar-minus-DPAGElc8.js +29 -0
- package/dist/calendar-off-BifdzoO2.js +33 -0
- package/dist/calendar-plus-2-CJSF62Ef.js +37 -0
- package/dist/calendar-plus-BBW0KU6G.js +33 -0
- package/dist/calendar-range-D9dZpq5H.js +45 -0
- package/dist/calendar-search-BwtvLQ3_.js +35 -0
- package/dist/calendar-sync-DlVl4w-e.js +41 -0
- package/dist/calendar-x-2-C5pGBgHH.js +33 -0
- package/dist/calendar-x-oyCrivwc.js +37 -0
- package/dist/calendars-5xQPdkZX.js +37 -0
- package/dist/camera-CsCTvGzE.js +16 -0
- package/dist/camera-off-DGAzxtS_.js +25 -0
- package/dist/can-B_RKgqZf.js +25 -0
- package/dist/can-soda-CxAvlEP3.js +33 -0
- package/dist/candy-D4ltKqs2.js +29 -0
- package/dist/candy-cane-C9wn9jLW.js +29 -0
- package/dist/candy-off-Df0zKX5H.js +37 -0
- package/dist/cannabis-BAxIsu1S.js +14 -0
- package/dist/cannabis-off-BFsXN3wu.js +33 -0
- package/dist/captions-DUcbxXQe.js +20 -0
- package/dist/captions-off-B95OocVZ.js +33 -0
- package/dist/car-BffqA9fO.js +29 -0
- package/dist/car-battery-CAKJTn-f.js +37 -0
- package/dist/car-front-DhhWy8x6.js +37 -0
- package/dist/car-taxi-front-DHKnYEhm.js +41 -0
- package/dist/caravan-B5Z65nYl.js +27 -0
- package/dist/card-sim-7zd9QXsA.js +29 -0
- package/dist/carrot-B_K_eq_T.js +21 -0
- package/dist/carton-ByIdN1gQ.js +14 -0
- package/dist/carton-off-CazI1fZo.js +33 -0
- package/dist/case-lower-Brj_GUfR.js +29 -0
- package/dist/case-sensitive-B01NuU3K.js +27 -0
- package/dist/case-upper-zX5CU5CX.js +21 -0
- package/dist/cases-CPwFezzQ.js +252 -0
- package/dist/cases-DsmEfRM-.cjs +1 -0
- package/dist/casesFromForm-CayaHL1x.cjs +1 -0
- package/dist/casesFromForm-DSnRlCFC.js +468 -0
- package/dist/cassette-tape-CRdN-xA_.js +37 -0
- package/dist/cast-Byj_9Fxh.js +28 -0
- package/dist/castle-BWW6snrN.js +41 -0
- package/dist/cat-BW7tvrFO.js +25 -0
- package/dist/cctv-DgYu0Maq.js +29 -0
- package/dist/cctv-off-DoaAcnmT.js +33 -0
- package/dist/chart-area-Cyh8IuAw.js +15 -0
- package/dist/chart-bar-DZT6lIiG.js +26 -0
- package/dist/chart-bar-big-DT_t_McF.js +30 -0
- package/dist/chart-bar-decreasing-CgqGSWMh.js +25 -0
- package/dist/chart-bar-increasing-BWfWLmmU.js +25 -0
- package/dist/chart-bar-stacked-BOrfmb3t.js +37 -0
- package/dist/chart-candlestick-F7cNR2eB.js +46 -0
- package/dist/chart-column-CYQSr_K7.js +26 -0
- package/dist/chart-column-big-DwnoJnJc.js +30 -0
- package/dist/chart-column-decreasing-_tGYiJhB.js +25 -0
- package/dist/chart-column-increasing-VXXE5Vf-.js +26 -0
- package/dist/chart-column-stacked-CkOwcgGu.js +37 -0
- package/dist/chart-gantt-CldwCMIB.js +25 -0
- package/dist/chart-line-t_Tx-4yL.js +15 -0
- package/dist/chart-network-lGKL4l6g.js +43 -0
- package/dist/chart-no-axes-column-C7jetJTy.js +22 -0
- package/dist/chart-no-axes-column-decreasing-CVw8clV6.js +21 -0
- package/dist/chart-no-axes-column-increasing-Bscpb_2k.js +22 -0
- package/dist/chart-no-axes-combined-DZSvqIjL.js +33 -0
- package/dist/chart-no-axes-gantt-w6lYoum4.js +22 -0
- package/dist/chart-pie-DlIV9_dP.js +15 -0
- package/dist/chart-scatter-CWZ9AgGI.js +49 -0
- package/dist/chart-spline-BltzwUJU.js +14 -0
- package/dist/check-check-BjotqzeJ.js +14 -0
- package/dist/check-kvOQ8ms-.js +11 -0
- package/dist/check-line-CrU1_PtK.js +21 -0
- package/dist/chef-hat-B_mcGvI4.js +14 -0
- package/dist/cherry-CLkkYv4F.js +25 -0
- package/dist/chess-bishop-C_lmfc00.js +25 -0
- package/dist/chess-king-CPKN5X8g.js +25 -0
- package/dist/chess-knight-00RAnNIa.js +29 -0
- package/dist/chess-pawn-DmzHWGjD.js +31 -0
- package/dist/chess-queen-DtfA7KTu.js +47 -0
- package/dist/chess-rook-3BINcC9R.js +37 -0
- package/dist/chevron-down-ClpQvvDS.js +143 -0
- package/dist/chevron-down-Dwub6Yav.js +11 -0
- package/dist/chevron-first-qx88n2LJ.js +14 -0
- package/dist/chevron-last-DRL1xy5H.js +14 -0
- package/dist/chevron-left-duKeTcSp.js +11 -0
- package/dist/chevron-right-DzKVbnBj.js +11 -0
- package/dist/chevron-up-DAxjZqeZ.js +11 -0
- package/dist/chevrons-down-Df4LxOhe.js +14 -0
- package/dist/chevrons-down-up-Bj3JRSes.js +14 -0
- package/dist/chevrons-left-BXDyHkYd.js +14 -0
- package/dist/chevrons-left-right-BzxWT504.js +14 -0
- package/dist/chevrons-left-right-ellipsis-psZMz-E_.js +29 -0
- package/dist/chevrons-right-fAbn0B_4.js +14 -0
- package/dist/chevrons-right-left-DkH4ord4.js +14 -0
- package/dist/chevrons-up-C2Z_4Y_B.js +14 -0
- package/dist/chevrons-up-down-DWU5bqSa.js +14 -0
- package/dist/church-DrnyCho5.js +29 -0
- package/dist/cigarette-D6EKatdW.js +29 -0
- package/dist/cigarette-off-BqS-6ON9.js +33 -0
- package/dist/circle-CqrEYTMO.js +13 -0
- package/dist/circle-alert-y_hu5zyH.js +30 -0
- package/dist/circle-arrow-down-BJM1AuZs.js +24 -0
- package/dist/circle-arrow-left-BjG7T5GE.js +24 -0
- package/dist/circle-arrow-out-down-left-BknvQEjY.js +22 -0
- package/dist/circle-arrow-out-down-right-BzU5n-kC.js +22 -0
- package/dist/circle-arrow-out-up-left-B5g22_oA.js +22 -0
- package/dist/circle-arrow-out-up-right-DMvVRvPT.js +22 -0
- package/dist/circle-arrow-right-DlmcFnaF.js +24 -0
- package/dist/circle-arrow-up-CgxFYjje.js +24 -0
- package/dist/circle-check-CgSTCmwl.js +17 -0
- package/dist/circle-check-big-Brev14Us.js +15 -0
- package/dist/circle-chevron-down-BCdROddD.js +17 -0
- package/dist/circle-chevron-left-ZaF_ilsq.js +17 -0
- package/dist/circle-chevron-right-DehLu6JS.js +17 -0
- package/dist/circle-chevron-up-BKmmlF6H.js +17 -0
- package/dist/circle-dashed-DMSYgcff.js +41 -0
- package/dist/circle-dashed-check-B5kuA0Et.js +45 -0
- package/dist/circle-divide-D2ue3yVj.js +37 -0
- package/dist/circle-dollar-sign-CN0_vO-C.js +23 -0
- package/dist/circle-dot-BrGr9-XQ.js +18 -0
- package/dist/circle-dot-dashed-Bw8DexWM.js +47 -0
- package/dist/circle-ellipsis-CGez_5uD.js +27 -0
- package/dist/circle-equal-DZJp31V0.js +23 -0
- package/dist/circle-euro-DNpaXaln.js +23 -0
- package/dist/circle-fading-arrow-up-Ve_0tNpw.js +37 -0
- package/dist/circle-fading-plus-CiRDM6I2.js +37 -0
- package/dist/circle-gauge-CGlrYFvm.js +24 -0
- package/dist/circle-minus-B68dRO7h.js +17 -0
- package/dist/circle-off-BDD1TAkp.js +21 -0
- package/dist/circle-parking-CNSV3vdQ.js +17 -0
- package/dist/circle-parking-off-B5c77Ncw.js +34 -0
- package/dist/circle-pause-D8f1S-V4.js +30 -0
- package/dist/circle-percent-DO-RlCig.js +28 -0
- package/dist/circle-pile-k9XoF4-y.js +45 -0
- package/dist/circle-play-DWU-8eXP.js +17 -0
- package/dist/circle-plus-CdVIGKGu.js +24 -0
- package/dist/circle-pound-sterling-c6E6Q6Oq.js +27 -0
- package/dist/circle-power-BUXXgbH0.js +24 -0
- package/dist/circle-question-mark-e8YsL5f2.js +24 -0
- package/dist/circle-slash-2-BApcaJXW.js +17 -0
- package/dist/circle-slash-DgKjDtNM.js +19 -0
- package/dist/circle-small-D07rFkd0.js +13 -0
- package/dist/circle-star-F5bEzHEi.js +16 -0
- package/dist/circle-stop-CbIsW3PW.js +21 -0
- package/dist/circle-user-BvIO6fl7.js +26 -0
- package/dist/circle-user-round-DUA5rCj_.js +26 -0
- package/dist/circle-x-BcCQUc9H.js +24 -0
- package/dist/circuit-board-BL6YR-bj.js +37 -0
- package/dist/citrus-wfasRTfZ.js +25 -0
- package/dist/clapperboard-CgshVIMY.js +25 -0
- package/dist/clef-alto-BxaufC6k.js +21 -0
- package/dist/clef-bass-DpFSLrGI.js +27 -0
- package/dist/clef-treble-24mZAK6L.js +11 -0
- package/dist/clipboard-Dveqa-Ye.js +19 -0
- package/dist/clipboard-check-EqzGM-b1.js +26 -0
- package/dist/clipboard-clock-H0Id9eI-.js +35 -0
- package/dist/clipboard-copy-CDwoAwl_.js +34 -0
- package/dist/clipboard-list-J59wAuRw.js +38 -0
- package/dist/clipboard-minus-DYnijZ8L.js +26 -0
- package/dist/clipboard-paste-OCDoFkyX.js +33 -0
- package/dist/clipboard-pen-line-D6DcqXeX.js +34 -0
- package/dist/clipboard-pen-nU_K_ZY7.js +30 -0
- package/dist/clipboard-plus-BnOWgh5Y.js +30 -0
- package/dist/clipboard-type-BH5ySQN7.js +34 -0
- package/dist/clipboard-x-CENxVVf5.js +30 -0
- package/dist/clock-1-B__YIxNj.js +16 -0
- package/dist/clock-10-D1VAhgsn.js +16 -0
- package/dist/clock-11-BAT7Irhw.js +16 -0
- package/dist/clock-12-Bsi6sRGR.js +16 -0
- package/dist/clock-2-BRA2BPMh.js +16 -0
- package/dist/clock-3-DHVBCVpq.js +16 -0
- package/dist/clock-4-DD6tc3xW.js +16 -0
- package/dist/clock-5-C44zk8-e.js +16 -0
- package/dist/clock-6-D4hJZLhJ.js +16 -0
- package/dist/clock-7-DSf9dQMC.js +16 -0
- package/dist/clock-8-C3Q0UfB0.js +16 -0
- package/dist/clock-9-BN5611jO.js +16 -0
- package/dist/clock-BdZP0BhB.js +16 -0
- package/dist/clock-alert-J68_tdLa.js +25 -0
- package/dist/clock-arrow-down-CMCgDUWK.js +25 -0
- package/dist/clock-arrow-left-C7udmI4K.js +25 -0
- package/dist/clock-arrow-right-DavApqQS.js +25 -0
- package/dist/clock-arrow-up-B4z2xCIK.js +25 -0
- package/dist/clock-check-DS_Nw2Dr.js +21 -0
- package/dist/clock-fading-D8ah1wtg.js +33 -0
- package/dist/clock-plus-CTmeqn0b.js +25 -0
- package/dist/closed-caption-u1Rdi-k4.js +25 -0
- package/dist/cloud-DLZWUqui.js +11 -0
- package/dist/cloud-alert-DCEa45a0.js +21 -0
- package/dist/cloud-backup-ChL_XOP6.js +21 -0
- package/dist/cloud-check-B_UJ03SK.js +14 -0
- package/dist/cloud-cog-Ch8JP4RV.js +45 -0
- package/dist/cloud-download-DTtJgUbt.js +22 -0
- package/dist/cloud-drizzle-SNkR4uOA.js +37 -0
- package/dist/cloud-fog-D8geQ09w.js +21 -0
- package/dist/cloud-hail-BQuS5_DW.js +37 -0
- package/dist/cloud-lightning-BwOCg_oD.js +14 -0
- package/dist/cloud-moon-B07KaVq5.js +14 -0
- package/dist/cloud-moon-rain-Be1d0dPi.js +25 -0
- package/dist/cloud-off-mTz1N8Oe.js +21 -0
- package/dist/cloud-rain-GyQV1CxE.js +25 -0
- package/dist/cloud-rain-wind-DwmxssJd.js +25 -0
- package/dist/cloud-snow-CkwjcoY-.js +37 -0
- package/dist/cloud-sun-D_EHzAcN.js +33 -0
- package/dist/cloud-sun-rain-CRtjhIzt.js +41 -0
- package/dist/cloud-sync-BBk0b24Y.js +29 -0
- package/dist/cloud-upload-CMM5EnMi.js +22 -0
- package/dist/cloudy-Cl8tN285.js +14 -0
- package/dist/clover-1vbguT1O.js +21 -0
- package/dist/club-BR8Br5CT.js +14 -0
- package/dist/code-Cog63qsW.js +14 -0
- package/dist/code-xml-D0t0-BrP.js +22 -0
- package/dist/coffee-57n2y4ey.js +25 -0
- package/dist/cog-DgTi2fIb.js +69 -0
- package/dist/coins-DHgIYkqz.js +27 -0
- package/dist/columns-2-DD7FpF0c.js +19 -0
- package/dist/columns-3-DTjwCgc7.js +26 -0
- package/dist/columns-3-cog-CYdMDpGP.js +60 -0
- package/dist/columns-4-DXXpc2M8.js +29 -0
- package/dist/combine-iSKJ3Aa1.js +41 -0
- package/dist/command-CSBqfUUC.js +11 -0
- package/dist/compass-BWnUWla2.js +16 -0
- package/dist/component-mAcU9RxK.js +25 -0
- package/dist/components/AdminNotifications.d.ts +9 -65
- package/dist/components/BuyButton.d.ts +8 -1
- package/dist/components/BuyerDetails.d.ts +7 -1
- package/dist/components/Checkout.d.ts +6 -2
- package/dist/components/CheckoutReturn.d.ts +5 -1
- package/dist/components/ContactPopup.d.ts +10 -25
- package/dist/components/CopyLink.d.ts +7 -0
- package/dist/components/DashboardNav.d.ts +16 -5
- package/dist/components/ManagePlanButton.d.ts +11 -1
- package/dist/components/MembersOnly.d.ts +19 -0
- package/dist/components/PlanWall.d.ts +19 -0
- package/dist/components/Plans.d.ts +9 -1
- package/dist/components/TestModeNote.d.ts +4 -0
- package/dist/components/tabIconForLink.d.ts +14 -0
- package/dist/computer-BYVSxVt2.js +37 -0
- package/dist/concierge-bell-DGsPtcq3.js +25 -0
- package/dist/cone-C-5DaOxN.js +17 -0
- package/dist/configs/forms/index.d.ts +0 -22
- package/dist/construction-hvEtQFLw.js +45 -0
- package/dist/contact-aO6xYehK.js +35 -0
- package/dist/contact-round-DmJ9Nloe.js +36 -0
- package/dist/container-Bnhiz_NG.js +29 -0
- package/dist/contentFallback-BwTfX-MX.js +244 -0
- package/dist/contentFallback-D10JFfXB.cjs +6 -0
- package/dist/contentKey-D3pQAdWA.cjs +1 -0
- package/dist/contentKey-D54iQUxC.js +29 -0
- package/dist/contract/rulesCheckedFirestore.d.ts +3 -1
- package/dist/contrast-B2tnPnga.js +16 -0
- package/dist/cookie-SK64n6-d.js +45 -0
- package/dist/cooking-pot-BoPBHm2L.js +25 -0
- package/dist/copy-BoIS1wfU.js +19 -0
- package/dist/copy-check-DGQwD3dV.js +26 -0
- package/dist/copy-minus-etQktUSD.js +29 -0
- package/dist/copy-plus-CYQk9diM.js +36 -0
- package/dist/copy-slash-CB9FuOcj.js +29 -0
- package/dist/copy-x-BfL1qN4l.js +29 -0
- package/dist/copyleft-CM0wmPrb.js +16 -0
- package/dist/copyright-Co0LWSxx.js +16 -0
- package/dist/corner-down-left-BxWP8f2i.js +14 -0
- package/dist/corner-down-right-8ncqcEs_.js +14 -0
- package/dist/corner-left-down-DbqUkUm4.js +14 -0
- package/dist/corner-left-up-Cx0l1pHj.js +14 -0
- package/dist/corner-right-down-BGR10zuK.js +14 -0
- package/dist/corner-right-up-ClIvhIJ1.js +14 -0
- package/dist/corner-up-left-vNz3LOrf.js +14 -0
- package/dist/corner-up-right-CY9q8Lsc.js +14 -0
- package/dist/countryList-Cdt53HA6.cjs +1 -0
- package/dist/countryList-I_k96pEr.js +61 -0
- package/dist/cpu-DDmQYQ2m.js +73 -0
- package/dist/creative-commons-CshJhAEV.js +23 -0
- package/dist/credit-card-CXWn2xAE.js +28 -0
- package/dist/credit-card-check-Bh_plXvu.js +25 -0
- package/dist/credit-card-minus-ixbi3j8b.js +25 -0
- package/dist/credit-card-plus-D613vX95.js +29 -0
- package/dist/credit-card-reader-C4nf1UpE.js +25 -0
- package/dist/credit-card-x-CQ-pAMWJ.js +29 -0
- package/dist/croissant-DuWv5iW0.js +29 -0
- package/dist/crop-DVeDpi9n.js +14 -0
- package/dist/cross-DOFcdXTR.js +11 -0
- package/dist/crosshair-Bzje-8B8.js +43 -0
- package/dist/crown-D97pXaZY.js +14 -0
- package/dist/cuboid-B1igv8Y-.js +21 -0
- package/dist/cup-soda-CHotVvcM.js +25 -0
- package/dist/cupcake-BBs5RaYh.js +39 -0
- package/dist/currency-DIP7CXMR.js +43 -0
- package/dist/cylinder-BSjLybc1.js +17 -0
- package/dist/dam-tLz-sVOr.js +37 -0
- package/dist/database-CILl_-IO.js +24 -0
- package/dist/database-arrow-down-BN9VaGYq.js +36 -0
- package/dist/database-arrow-up-TkOF9arH.js +36 -0
- package/dist/database-backup-EDU4dlpY.js +36 -0
- package/dist/database-check-DxFa4Ql7.js +32 -0
- package/dist/database-minus-cPiWcouA.js +32 -0
- package/dist/database-plus-DtQoP1ip.js +36 -0
- package/dist/database-search-3Qo83jt3.js +38 -0
- package/dist/database-x-tHF9XTv4.js +40 -0
- package/dist/database-zap-D55kfSea.js +32 -0
- package/dist/decimals-arrow-left-CI1D-t9g.js +29 -0
- package/dist/decimals-arrow-right-MZQhebmn.js +37 -0
- package/dist/delete--o7ozk1s.js +21 -0
- package/dist/dessert-DVA9EOv3.js +23 -0
- package/dist/diameter-Bwx2_0rS.js +33 -0
- package/dist/diamond-BahLPypT.js +11 -0
- package/dist/diamond-minus-Cgbvtvov.js +14 -0
- package/dist/diamond-percent-B_B-RiX4.js +26 -0
- package/dist/diamond-plus-Do9UyBe0.js +21 -0
- package/dist/dice-1-DtOTU9bw.js +19 -0
- package/dist/dice-2-BmDS8m9j.js +26 -0
- package/dist/dice-3-BbL9h5UJ.js +30 -0
- package/dist/dice-4-Aqt9HHg_.js +34 -0
- package/dist/dice-5-tpNjpbnR.js +38 -0
- package/dist/dice-6-phpUsvqd.js +42 -0
- package/dist/dices-BMoJRBEe.js +38 -0
- package/dist/diff-DVdmXNGV.js +21 -0
- package/dist/disc-2-DQc0fNcO.js +25 -0
- package/dist/disc-3-o0kWAmg9.js +29 -0
- package/dist/disc-BbHMkVJO.js +18 -0
- package/dist/disc-album-Bw1Ubqze.js +27 -0
- package/dist/dist-BkJOhnJF.js +2008 -0
- package/dist/divide-B766Hj-I.js +28 -0
- package/dist/dna-CnBR3uE0.js +53 -0
- package/dist/dna-off-BG-uP8_u.js +49 -0
- package/dist/dock-gHQXLJNB.js +25 -0
- package/dist/dog-BVn1YVm-.js +29 -0
- package/dist/dollar-sign-B14eZ2bW.js +17 -0
- package/dist/dome-CxgxdUSP.js +33 -0
- package/dist/donut-DTihURBF.js +16 -0
- package/dist/door-closed-Cf9nP3Wy.js +21 -0
- package/dist/door-closed-locked-Cs6Pq9ps.js +33 -0
- package/dist/door-closed-package-mcAOM8jf.js +33 -0
- package/dist/door-open-Bkq_GEdc.js +29 -0
- package/dist/door-stairwell-5zC42Uie.js +29 -0
- package/dist/dot-B4m5PpJu.js +13 -0
- package/dist/download-BnVAP35b.js +21 -0
- package/dist/drafting-compass-nkdQJl-F.js +31 -0
- package/dist/drama-CfxCsl27.js +41 -0
- package/dist/drill-DTP9qvl_.js +33 -0
- package/dist/drone-D43FC-PK.js +49 -0
- package/dist/droplet-CtkE08nD.js +11 -0
- package/dist/droplet-off-Bmb-7WUN.js +21 -0
- package/dist/droplets-BAmUE_Uk.js +14 -0
- package/dist/drum-DopdT0yV.js +40 -0
- package/dist/drumstick-CeaouEPu.js +14 -0
- package/dist/dumbbell-Btz3mkCi.js +29 -0
- package/dist/ear-Cq0KXvA0.js +14 -0
- package/dist/ear-off-DYvHk5De.js +32 -0
- package/dist/earth-3i_Z1kHc.js +28 -0
- package/dist/earth-lock-DiCNUfdc.js +37 -0
- package/dist/eclipse-svbvY6bp.js +16 -0
- package/dist/egg-CPvPEWRG.js +11 -0
- package/dist/egg-fried-7QjI2PJ2.js +16 -0
- package/dist/egg-off-DqWWG7Zh.js +21 -0
- package/dist/eject-DG19GN1G.js +18 -0
- package/dist/ellipse-BLXAZeeF.js +14 -0
- package/dist/ellipsis-CrAVlMvX.js +28 -0
- package/dist/ellipsis-vertical-DAiBAe5M.js +28 -0
- package/dist/email-fxQCpFj1.js +132 -0
- package/dist/email-sj7orYpa.cjs +1 -0
- package/dist/engine-mCDgGD7Z.js +29 -0
- package/dist/equal-D3r_V1cI.js +20 -0
- package/dist/equal-approximately-CMKgEPE7.js +14 -0
- package/dist/equal-approximately-not-DlhAzFrc.js +24 -0
- package/dist/equal-not-B7QUgxsx.js +30 -0
- package/dist/eraser-CVdQiQef.js +14 -0
- package/dist/ethernet-port-CjRHBPUq.js +29 -0
- package/dist/euro-CRmKgv4C.js +21 -0
- package/dist/ev-charger-CltHdEsw.js +29 -0
- package/dist/expand-BrjTvRHW.js +41 -0
- package/dist/external-link-DJ_Wum6N.js +21 -0
- package/dist/eye-Dng1dOu4.js +16 -0
- package/dist/eye-DwsVK7fX.js +19 -0
- package/dist/eye-closed-BjqKtRMd.js +29 -0
- package/dist/eye-dashed-C2DSD9j4.js +47 -0
- package/dist/eye-off-CRgHCz_u.cjs +1 -0
- package/dist/eye-off-D8R15Ohv.js +25 -0
- package/dist/eye-off-DnPAj0Sy.js +40 -0
- package/dist/face-angry-DhLehWXX.js +36 -0
- package/dist/face-expressionless-CkvXqJS6.js +28 -0
- package/dist/face-grinning--5z7qajH.js +28 -0
- package/dist/face-neutral-Du2kAD9U.js +28 -0
- package/dist/face-slightly-frowning-CE1Q18XV.js +28 -0
- package/dist/face-slightly-smiling-BnYvbIrE.js +28 -0
- package/dist/face-slightly-smiling-plus-2VGJQtfy.js +34 -0
- package/dist/factory-XLfREI9Z.js +25 -0
- package/dist/fan-DaG6FGo8.js +14 -0
- package/dist/fast-forward-CGf6SJzm.js +14 -0
- package/dist/faucet-CSXF5Px4.js +39 -0
- package/dist/feather-DOwgubCQ.js +21 -0
- package/dist/fence-v0xPLmmh.js +37 -0
- package/dist/ferris-wheel-C7HnIr5S.js +47 -0
- package/dist/file-CGulIA1-.js +14 -0
- package/dist/file-archive-D35qxq1S.js +35 -0
- package/dist/file-axis-3d-Ds3A4TUt.js +26 -0
- package/dist/file-badge-t0GSlKdg.js +28 -0
- package/dist/file-box-B6Vrvf6J.js +29 -0
- package/dist/file-braces-Tb0VJTaS.js +26 -0
- package/dist/file-braces-corner-CltsWXwQ.js +26 -0
- package/dist/file-chart-column-CjKbEcR1.js +30 -0
- package/dist/file-chart-column-increasing-9Ywr4eLq.js +30 -0
- package/dist/file-chart-line-onx6nTrD.js +22 -0
- package/dist/file-chart-pie-DdmGnbjF.js +26 -0
- package/dist/file-check-DQaAM0VW.js +21 -0
- package/dist/file-check-corner-BdqCNNwx.js +22 -0
- package/dist/file-clock-Bm_qQNGZ.js +27 -0
- package/dist/file-code-BRYuQpzJ.js +25 -0
- package/dist/file-code-corner-JYuMal6k.js +26 -0
- package/dist/file-cog-nGb9PMEB.js +60 -0
- package/dist/file-diff-CZtOyoOo.js +25 -0
- package/dist/file-digit-ByB6LifM.js +33 -0
- package/dist/file-down-BYjbs6vQ.js +25 -0
- package/dist/file-exclamation-point-qSHT4rZd.js +22 -0
- package/dist/file-headphone-BhThmuJT.js +22 -0
- package/dist/file-heart-YaamSvnu.js +21 -0
- package/dist/file-image-CjGR0XrF.js +27 -0
- package/dist/file-input-ijGMOeKT.js +25 -0
- package/dist/file-key-DSDzZFOP.js +32 -0
- package/dist/file-lock-CPa-Rb-q.js +30 -0
- package/dist/file-minus-Bt9A_1nj.js +21 -0
- package/dist/file-minus-corner-A2Hi-R_o.js +22 -0
- package/dist/file-music-BWZ3CJV5.js +27 -0
- package/dist/file-output-CUr0gcgs.js +25 -0
- package/dist/file-pen-D82crf3I.js +22 -0
- package/dist/file-pen-line-DMcfaXhB.js +26 -0
- package/dist/file-play-BVcjAnfw.js +22 -0
- package/dist/file-plus-Dsamqek6.js +25 -0
- package/dist/file-plus-corner-CVxQtUtl.js +26 -0
- package/dist/file-question-mark-C2omkZxK.js +22 -0
- package/dist/file-scan-BAuAD5ht.js +33 -0
- package/dist/file-search-CwD3-WpZ.js +27 -0
- package/dist/file-search-corner-CLBY8zGA.js +28 -0
- package/dist/file-signal-C1Fx513m.js +30 -0
- package/dist/file-sliders-D-ujUOj4.js +33 -0
- package/dist/file-spreadsheet-BSXcvGfa.js +33 -0
- package/dist/file-stack-BbhVO3cL.js +21 -0
- package/dist/file-symlink-D7swPDTW.js +21 -0
- package/dist/file-terminal-2MxOMWis.js +25 -0
- package/dist/file-text-CTdxoa8F.js +29 -0
- package/dist/file-type-C2_huHUR.js +29 -0
- package/dist/file-type-corner-99VgKuid.js +30 -0
- package/dist/file-up-BdooqzU9.js +25 -0
- package/dist/file-user-BV9ozjpL.js +27 -0
- package/dist/file-video-camera-j0wGegHj.js +30 -0
- package/dist/file-volume-rDq0GX5R.js +25 -0
- package/dist/file-x-Cfss6HbY.js +25 -0
- package/dist/file-x-corner-BQNOEkwn.js +26 -0
- package/dist/fileBytes-BmtDCXIL.cjs +1 -0
- package/dist/fileBytes-_-dCrCt0.js +146 -0
- package/dist/files-CiVZiMOL.js +21 -0
- package/dist/film-CT6QjRKO.js +45 -0
- package/dist/fingerprint-pattern-4QpEjkjT.js +46 -0
- package/dist/fire-extinguisher-CgMZUOG6.js +33 -0
- package/dist/fish-BtNbBOc8.js +33 -0
- package/dist/fish-off-Dtmx5Wiw.js +21 -0
- package/dist/fish-symbol-Dtg0ZCpw.js +11 -0
- package/dist/fishing-hook-DkerhW6D.js +23 -0
- package/dist/fishing-rod-eWCgaegd.js +23 -0
- package/dist/flag-7sCWeaLN.js +11 -0
- package/dist/flag-off-BiPDpQ5Q.js +25 -0
- package/dist/flag-triangle-left-Bj0HgN1y.js +11 -0
- package/dist/flag-triangle-right-Bvn4QQ3K.js +11 -0
- package/dist/flame-JtqRfrTq.js +11 -0
- package/dist/flame-kindling-ohlRNjAY.js +21 -0
- package/dist/flashlight-2qThIBTy.js +21 -0
- package/dist/flashlight-off-DuDJH6XM.js +29 -0
- package/dist/flask-conical-CJaKDGBG.js +21 -0
- package/dist/flask-conical-off-7CuSJs19.js +33 -0
- package/dist/flask-round-XkOBkXev.js +21 -0
- package/dist/flower-2-C8ZeqqWk.js +31 -0
- package/dist/flower-DXyOc0Ol.js +51 -0
- package/dist/focus-BYWwAcpx.js +31 -0
- package/dist/fold-horizontal-DOMH0Wk5.js +41 -0
- package/dist/fold-vertical-V65fyCih.js +41 -0
- package/dist/folder-DRw8Hf7b.js +11 -0
- package/dist/folder-archive-Dh7Arhgp.js +27 -0
- package/dist/folder-bookmark-Bpthcyhl.js +14 -0
- package/dist/folder-check-BOYTTkMO.js +14 -0
- package/dist/folder-clock-CzvDNsKN.js +23 -0
- package/dist/folder-closed-ChYL42RA.js +14 -0
- package/dist/folder-code-GliWDFUd.js +21 -0
- package/dist/folder-cog-mT0R2cRb.js +52 -0
- package/dist/folder-dot-DCxSkrNJ.js +16 -0
- package/dist/folder-down-BNkix_9E.js +21 -0
- package/dist/folder-git-2-Bq5JSR-1.js +29 -0
- package/dist/folder-git-Blz3pi-w.js +27 -0
- package/dist/folder-heart-BZ0VGGML.js +14 -0
- package/dist/folder-input-CpakC7cO.js +21 -0
- package/dist/folder-kanban-t-YFVfKT.js +25 -0
- package/dist/folder-key-BXoxkjoX.js +27 -0
- package/dist/folder-lock-BE3IK_OO.js +25 -0
- package/dist/folder-minus-BLUnmY8P.js +14 -0
- package/dist/folder-open-CX4k76ez.js +11 -0
- package/dist/folder-open-dot-BMw0GwaT.js +16 -0
- package/dist/folder-output-D_MESZ0-.js +21 -0
- package/dist/folder-pen-C1hZCkid.js +15 -0
- package/dist/folder-plus-DD1tb9_L.js +21 -0
- package/dist/folder-root-Cb9xEFJ4.js +23 -0
- package/dist/folder-search-2-Wqs3TvUw.js +23 -0
- package/dist/folder-search-dvvAXTtD.js +23 -0
- package/dist/folder-symlink-D5BdKSLi.js +14 -0
- package/dist/folder-sync-BT_E0pbD.js +29 -0
- package/dist/folder-tree-UMsnRwMl.js +25 -0
- package/dist/folder-up-DMlwA2_m.js +21 -0
- package/dist/folder-x-UQyLOCOy.js +21 -0
- package/dist/folders-DEywZCAK.js +14 -0
- package/dist/footprints-CKTboiYR.js +25 -0
- package/dist/forklift-B0nTllft.js +41 -0
- package/dist/form-DfqRGCJm.js +33 -0
- package/dist/forward-CW5N5Bed.js +14 -0
- package/dist/frame-CMc4VJkI.js +37 -0
- package/dist/fuel-B3pGNOOV.js +25 -0
- package/dist/fullscreen-DFXxIanq.js +33 -0
- package/dist/funnel-BKaNc4wG.js +12 -0
- package/dist/funnel-plus-B_xI5a87.js +21 -0
- package/dist/funnel-x-bQdkqDYW.js +22 -0
- package/dist/galaxy-D1Dxb3QW.js +32 -0
- package/dist/gallery-horizontal-NZ0Yf6f7.js +25 -0
- package/dist/gallery-horizontal-end-C3-xMqUF.js +25 -0
- package/dist/gallery-thumbnails-Cjs2L1qi.js +33 -0
- package/dist/gallery-vertical-CX6gOwz8.js +25 -0
- package/dist/gallery-vertical-end-CfLK7i3Z.js +25 -0
- package/dist/gamepad-2-D_TMM511.js +41 -0
- package/dist/gamepad-CH5iaX9k.js +45 -0
- package/dist/gamepad-directional-CkdRcKuJ.js +25 -0
- package/dist/gap-horizontal-C19a6Obk.js +33 -0
- package/dist/gap-vertical-Buj0Gm8o.js +33 -0
- package/dist/gauge-DRee-sji.js +14 -0
- package/dist/gavel-DDT2EQrA.js +29 -0
- package/dist/gem-GO8vEpel.js +21 -0
- package/dist/georgian-lari-CRdeP8Io.js +25 -0
- package/dist/germ-DCGgmYs1.js +59 -0
- package/dist/germ-off-C_WGXRl2.js +61 -0
- package/dist/ghost-CwX2EONB.js +21 -0
- package/dist/gift-msl_vcoj.js +29 -0
- package/dist/git-branch-BuuaHLBB.js +25 -0
- package/dist/git-branch-minus-D36h2MuK.js +29 -0
- package/dist/git-branch-plus-C_bUJgke.js +33 -0
- package/dist/git-commit-horizontal-CJD-R6F1.js +30 -0
- package/dist/git-commit-vertical-s0zuGL8I.js +23 -0
- package/dist/git-compare-CegWPTmv.js +29 -0
- package/dist/git-compare-arrows-BS4rf7ib.js +37 -0
- package/dist/git-fork-DTPbnbOt.js +35 -0
- package/dist/git-graph-MSWQBn4q.js +39 -0
- package/dist/git-merge-ChsWTnD6.js +25 -0
- package/dist/git-merge-conflict-cFN_ofOh.js +31 -0
- package/dist/git-pull-request-B4wMyNFE.js +32 -0
- package/dist/git-pull-request-arrow-B3JhSHfW.js +33 -0
- package/dist/git-pull-request-closed-FCc8PcNZ.js +37 -0
- package/dist/git-pull-request-create-BQ4XrdO7.js +31 -0
- package/dist/git-pull-request-create-arrow-BR7fie5s.js +35 -0
- package/dist/git-pull-request-draft-CyT9EhTw.js +36 -0
- package/dist/glass-water-CEIWWaOQ.js +14 -0
- package/dist/glasses-qKNsVJg0.js +33 -0
- package/dist/globe-B228EWIJ.js +23 -0
- package/dist/globe-check-DVjlHpn9.js +14 -0
- package/dist/globe-code-BDDMrkAO.js +25 -0
- package/dist/globe-lock-BG9OL8oF.js +29 -0
- package/dist/globe-off-Dw90BSgM.js +37 -0
- package/dist/globe-x-5Jnql3HV.js +21 -0
- package/dist/goal-7yhPGyy3.js +21 -0
- package/dist/gpu-BBFuWt2s.js +33 -0
- package/dist/graduation-cap-Ddp4k8Qr.js +21 -0
- package/dist/grape-CpFmeK62.js +61 -0
- package/dist/grid-2x2-B_8XmaqO.js +26 -0
- package/dist/grid-2x2-check-hSk18jwk.js +15 -0
- package/dist/grid-2x2-plus-CcBwRLdx.js +22 -0
- package/dist/grid-2x2-x-DYXgn9tF.js +22 -0
- package/dist/grid-3x2-DPbN5WSs.js +29 -0
- package/dist/grid-3x3-CEh5FFzC.js +34 -0
- package/dist/grip-CoUqP0HD.js +63 -0
- package/dist/grip-horizontal-CQCAFG4m.js +45 -0
- package/dist/grip-vertical-DOxCZSFB.js +45 -0
- package/dist/group-De4jSAcA.js +41 -0
- package/dist/guitar-ByzfziUc.js +25 -0
- package/dist/ham-C4jQMVBu.js +25 -0
- package/dist/hamburger-BdNrUdkY.js +25 -0
- package/dist/hammer-BrF4h3RE.js +21 -0
- package/dist/hand-Cv8Kb_pt.js +25 -0
- package/dist/hand-coins-bv8NU5l0.js +33 -0
- package/dist/hand-fist-BoHwrFYy.js +25 -0
- package/dist/hand-grab-DSShc6is.js +30 -0
- package/dist/hand-heart-BmclTJ0k.js +25 -0
- package/dist/hand-helping-Q7TLAalr.js +22 -0
- package/dist/hand-metal-C3_JOdhB.js +25 -0
- package/dist/hand-platter-BeaETnBU.js +33 -0
- package/dist/handbag-AnqlIoA5.js +14 -0
- package/dist/handshake-LfXi9aRZ.js +29 -0
- package/dist/hard-drive-CC8EN07j.js +25 -0
- package/dist/hard-drive-download-DSbJE017.js +33 -0
- package/dist/hard-drive-upload-zOkQODIp.js +33 -0
- package/dist/hard-hat-Dx5HMEjU.js +29 -0
- package/dist/hash-_ppM53rc.js +37 -0
- package/dist/hat-glasses-CsMExzy4.js +33 -0
- package/dist/haze-B_WKhk6W.js +41 -0
- package/dist/hd-CTEgHqQt.js +33 -0
- package/dist/hdmi-port-CY7Nipt6.js +14 -0
- package/dist/heading-1-C6QT3Fhg.js +25 -0
- package/dist/heading-2-B-t7G8oE.js +25 -0
- package/dist/heading-3-CPwr2sLd.js +29 -0
- package/dist/heading-4-Lh5i1Ac9.js +29 -0
- package/dist/heading-5-DVmYjlAc.js +29 -0
- package/dist/heading-6-C4Y4CGdL.js +31 -0
- package/dist/heading-DsSVRcDr.js +21 -0
- package/dist/headphone-off-CheLD_sm.js +29 -0
- package/dist/headphones-BB61uIr1.js +11 -0
- package/dist/headset-DZJqEuBG.js +14 -0
- package/dist/heart-CyfaYNXi.js +11 -0
- package/dist/heart-crack-DSShHVUi.js +14 -0
- package/dist/heart-handshake-RqYlRz2e.js +11 -0
- package/dist/heart-minus-CBWY_lvP.js +14 -0
- package/dist/heart-off-CySpr4z-.js +21 -0
- package/dist/heart-plus-DvJMDink.js +21 -0
- package/dist/heart-pulse-5r8Jw6qw.js +14 -0
- package/dist/heart-x-BoSQV4gw.js +21 -0
- package/dist/heater-cjKlhz-k.js +49 -0
- package/dist/helicopter-Y2I3_2AF.js +41 -0
- package/dist/hexagon-Ciw5h38P.js +11 -0
- package/dist/highlighter-D7TSnIVq.js +14 -0
- package/dist/hop-CEqgFGWp.js +41 -0
- package/dist/hop-off-sOoFhUvU.js +45 -0
- package/dist/hospital-CMnZVPZE.js +29 -0
- package/dist/hotel-CiD1UwK_.js +53 -0
- package/dist/hourglass-C1Zr6j6G.js +25 -0
- package/dist/hourglass-cog-BNpSJhjR.js +63 -0
- package/dist/house-Bc8nAweE.js +15 -0
- package/dist/house-heart-DbryHsA0.js +14 -0
- package/dist/house-plug-BvdtNdu8.js +25 -0
- package/dist/house-plus-CnVvgCHS.js +25 -0
- package/dist/house-wifi-DGfmgfPh.js +25 -0
- package/dist/houses-D6GBlc3X.js +21 -0
- package/dist/ice-cream-bowl-DSbVv1Pl.js +22 -0
- package/dist/ice-cream-cone-Bz2uEFxR.js +22 -0
- package/dist/iconLoaders-BFA5Fn4K.cjs +1 -0
- package/dist/iconLoaders-ClpZ2eC-.js +1853 -0
- package/dist/id-card-CZqqZtf3.js +35 -0
- package/dist/id-card-lanyard-IP1l0Tzx.js +31 -0
- package/dist/image-BPlw2luB.js +28 -0
- package/dist/image-down-Bi0XPvQ3.js +27 -0
- package/dist/image-minus-AcRlFU8q.js +30 -0
- package/dist/image-off-ChpqZRx0.js +42 -0
- package/dist/image-play-DkZ1OXrm.js +27 -0
- package/dist/image-plus-BC00WrTl.js +31 -0
- package/dist/image-up-Dj9kcKZN.js +27 -0
- package/dist/image-upscale-DqHWBklI.js +45 -0
- package/dist/images-Bdq9T_kD.js +32 -0
- package/dist/import-DqXJOzvU.js +21 -0
- package/dist/inbox-h5tRUfP4.js +14 -0
- package/dist/index.d.ts +4 -10
- package/dist/indian-rupee-DkoB2DRq.js +29 -0
- package/dist/infinity-CGWt6xfy.js +11 -0
- package/dist/info-Do1SF6DT.js +23 -0
- package/dist/inspection-panel-nBD7exT6.js +33 -0
- package/dist/italic-BwWJHVAs.js +30 -0
- package/dist/iteration-ccw-BMWdQ-ym.js +14 -0
- package/dist/iteration-cw-DTp7DwOD.js +14 -0
- package/dist/iv-bag-3aj2eky0.js +21 -0
- package/dist/japanese-yen-D2_IAc0k.js +21 -0
- package/dist/joystick-Coeplqkd.js +27 -0
- package/dist/kanban-Ddo-sKW5.js +21 -0
- package/dist/kayak-C5hSFtOf.js +25 -0
- package/dist/key-D8NspvmI.js +23 -0
- package/dist/key-round-BcLAW8AP.js +17 -0
- package/dist/key-square-q7Ma39A6.js +21 -0
- package/dist/keyboard-BWy3mmwr.js +49 -0
- package/dist/keyboard-music-BnoHDod2.js +49 -0
- package/dist/keyboard-off-BaFWDrpD.js +49 -0
- package/dist/lambda--E3vZh7g.js +14 -0
- package/dist/lamp-BwWgaell.js +21 -0
- package/dist/lamp-ceiling-KJAtlRII.js +21 -0
- package/dist/lamp-desk-DSOPCDNI.js +25 -0
- package/dist/lamp-floor-Bd2pL56i.js +21 -0
- package/dist/lamp-wall-down-BGjZCL1I.js +21 -0
- package/dist/lamp-wall-up-BDHPolUi.js +21 -0
- package/dist/land-plot-DYpUyImk.js +25 -0
- package/dist/landmark-DbChBv14.js +33 -0
- package/dist/languages-CrpZIevS.js +33 -0
- package/dist/laptop-BB10L-RG.js +14 -0
- package/dist/laptop-minimal-CCMp253j.js +23 -0
- package/dist/laptop-minimal-check-DheZtREQ.js +25 -0
- package/dist/lasso-CCjP6KL1.js +23 -0
- package/dist/lasso-select-CWAM1fWD.js +29 -0
- package/dist/layer-arrow-down-CpUt8mia.js +25 -0
- package/dist/layer-arrow-up-CAxmETby.js +21 -0
- package/dist/layers-2-B_3GZZ6x.js +14 -0
- package/dist/layers-D2_vhOwG.js +22 -0
- package/dist/layers-arrow-down-CLI61Fyk.js +29 -0
- package/dist/layers-arrow-up-bIhYB86Q.js +25 -0
- package/dist/layers-minus-D_fuGuEA.js +29 -0
- package/dist/layers-plus-Bkxt9_Bh.js +29 -0
- package/dist/layout-arrow-down-BGv8rEXy.js +33 -0
- package/dist/layout-arrow-right-CealZzN5.js +33 -0
- package/dist/layout-dashboard-SK5axozL.js +41 -0
- package/dist/layout-freeform-DEoOlZy6.js +33 -0
- package/dist/layout-grid-CzqGHu3-.js +41 -0
- package/dist/layout-list-BNWY6nHI.js +41 -0
- package/dist/layout-panel-left-Bxdoz27Q.js +33 -0
- package/dist/layout-panel-top-Bo9jcVve.js +33 -0
- package/dist/layout-template-TrlmI3k4.js +33 -0
- package/dist/leaf-E8QZlMjc.js +14 -0
- package/dist/leafy-green-BeXYJDOI.js +14 -0
- package/dist/lectern-B2f4ww0b.js +25 -0
- package/dist/lens-concave-E7Yadl0U.js +11 -0
- package/dist/lens-convex-D7xnk7Os.js +11 -0
- package/dist/lib/access.d.ts +51 -15
- package/dist/lib/address.d.ts +2 -3
- package/dist/lib/afterVerify.d.ts +26 -0
- package/dist/lib/appPlans.d.ts +67 -0
- package/dist/lib/cases.d.ts +1 -1
- package/dist/lib/casesFromForm.d.ts +3 -0
- package/dist/lib/features.d.ts +15 -3
- package/dist/lib/groups.d.ts +41 -5
- package/dist/lib/hours/spans.d.ts +22 -0
- package/dist/lib/hours/zones.d.ts +75 -0
- package/dist/lib/money.d.ts +6 -0
- package/dist/lib/orderEntry.d.ts +37 -3
- package/dist/lib/pageGroup.d.ts +11 -0
- package/dist/lib/paymentGives.d.ts +51 -0
- package/dist/lib/paymentNews.d.ts +2 -0
- package/dist/lib/paymentProducts.d.ts +284 -63
- package/dist/lib/payments.d.ts +100 -54
- package/dist/lib/people.d.ts +4 -0
- package/dist/lib/planPricesMade.d.ts +22 -0
- package/dist/lib/planRoles.d.ts +58 -4
- package/dist/lib/planWall.d.ts +89 -0
- package/dist/lib/plans.d.ts +40 -3
- package/dist/lib/practiceLeft.d.ts +13 -0
- package/dist/lib/recordPrice.d.ts +2 -3
- package/dist/lib/reservedAddresses.d.ts +4 -4
- package/dist/lib/roleSight.d.ts +17 -0
- package/dist/lib/roles.d.ts +18 -1
- package/dist/lib/serviceStatus.d.ts +6 -0
- package/dist/lib/team.d.ts +16 -0
- package/dist/lib/transactions.d.ts +29 -0
- package/dist/lib/verifyMail.d.ts +26 -1
- package/dist/lib/verifyWatch.d.ts +20 -0
- package/dist/library-D_pnaqFX.js +25 -0
- package/dist/library-big-DmuurcL_.js +25 -0
- package/dist/life-buoy-DZebHCRc.js +37 -0
- package/dist/ligature-BnOh0rQd.js +29 -0
- package/dist/lightbulb-Cn_7Aq7V.js +21 -0
- package/dist/lightbulb-off-hm9OE36t.js +29 -0
- package/dist/lighthouse-qibLDt9s.js +57 -0
- package/dist/line-dot-right-horizontal-QfrLA9fu.js +16 -0
- package/dist/line-squiggle-yx-xf-p0.js +11 -0
- package/dist/line-style-FbSztJgf.js +33 -0
- package/dist/link-2-BZFJq5NQ.js +24 -0
- package/dist/link-2-off-TZw_1cWP.js +31 -0
- package/dist/link-DK6CKdRh.js +14 -0
- package/dist/list-BqhSbw12.js +33 -0
- package/dist/list-check-Cq6X8kLH.js +25 -0
- package/dist/list-checks-BWl6PUPx.js +29 -0
- package/dist/list-chevrons-down-up-BnW60YE5.js +29 -0
- package/dist/list-chevrons-up-down-Dj_uL0gU.js +29 -0
- package/dist/list-clock-5oO-rN7Q.js +31 -0
- package/dist/list-collapse-DQvzVR5y.js +29 -0
- package/dist/list-end-BolcYw1P.js +29 -0
- package/dist/list-filter-DFThZzul.js +21 -0
- package/dist/list-filter-plus-D11fbdPa.js +29 -0
- package/dist/list-indent-decrease-padE7Ltz.js +26 -0
- package/dist/list-indent-increase-Dq5tI3at.js +26 -0
- package/dist/list-minus-JPwuhvES.js +25 -0
- package/dist/list-music-BCuyTKXs.js +31 -0
- package/dist/list-ordered-BVjSaAVs.js +33 -0
- package/dist/list-plus-CH8V0poh.js +29 -0
- package/dist/list-restart-TphV8pTO.js +29 -0
- package/dist/list-sort-ascending-CfknaDh7.js +21 -0
- package/dist/list-sort-descending-DzaU0LPm.js +21 -0
- package/dist/list-start-sRBDeLZ_.js +29 -0
- package/dist/list-todo-l3wO-Kl0.js +33 -0
- package/dist/list-tree-D_AUlurp.js +29 -0
- package/dist/list-video-Blh18VuR.js +25 -0
- package/dist/list-x-BirrB7Ah.js +29 -0
- package/dist/loader-B6pay5My.js +41 -0
- package/dist/loader-circle-60M7uTgf.js +12 -0
- package/dist/loader-pinwheel-C1ru2GZc.js +27 -0
- package/dist/locate-Dbqa24T1.js +43 -0
- package/dist/locate-fixed-DLyNI6XN.js +49 -0
- package/dist/locate-off-BjwPGGBy.js +37 -0
- package/dist/lock-B5rmLZ5f.js +19 -0
- package/dist/lock-BPZp-jcZ.js +22 -0
- package/dist/lock-keyhole-DxFo_imR.js +27 -0
- package/dist/lock-keyhole-open-BrxBohij.js +28 -0
- package/dist/lock-open-054J4hdc.js +20 -0
- package/dist/log-in-BRdS97on.js +21 -0
- package/dist/log-out-CKi4SZRj.js +21 -0
- package/dist/logs-BkZxMyff.js +45 -0
- package/dist/lollipop-26aNjLrS.js +23 -0
- package/dist/luggage-Ch2Qbw3h.js +33 -0
- package/dist/magnet-DzO0nJv4.js +21 -0
- package/dist/mail-BwMM3Ie1.js +18 -0
- package/dist/mail-badge-BhoFZfLN.js +27 -0
- package/dist/mail-check-Bh6mIW-f.js +21 -0
- package/dist/mail-clock-M4lOQu27.js +31 -0
- package/dist/mail-minus-C4A0qpaV.js +21 -0
- package/dist/mail-open--Pd66ZwB.js +14 -0
- package/dist/mail-pen-Cnwx_r5a.js +21 -0
- package/dist/mail-plus-BZFp9cxx.js +25 -0
- package/dist/mail-question-mark-B4UrXBY9.js +26 -0
- package/dist/mail-search-B4xksMc6.js +31 -0
- package/dist/mail-warning-D1DRlQ_f.js +25 -0
- package/dist/mail-x-DZsmUJVh.js +25 -0
- package/dist/mailbox-DnSOvyjH.js +28 -0
- package/dist/mails-CQpZp3fn.js +25 -0
- package/dist/map-CDgJ7eB8.js +21 -0
- package/dist/map-minus-BiJP05lj.js +25 -0
- package/dist/map-pin-6K_f0CQ2.js +16 -0
- package/dist/map-pin-check-B3aiBmBw.js +23 -0
- package/dist/map-pin-check-inside-Dc8FBzzY.js +14 -0
- package/dist/map-pin-house-BlxFPUES.js +27 -0
- package/dist/map-pin-minus-DELfpgIN.js +23 -0
- package/dist/map-pin-minus-inside-BzT2Aq7M.js +14 -0
- package/dist/map-pin-off-DFNpDt25.js +29 -0
- package/dist/map-pin-pen-DNTI7UJX.js +24 -0
- package/dist/map-pin-plus-DN3fNFyt.js +27 -0
- package/dist/map-pin-plus-inside-DC6H-Pj6.js +21 -0
- package/dist/map-pin-search-CEG_2Nih.js +29 -0
- package/dist/map-pin-x-inside-CCEoKmEf.js +21 -0
- package/dist/map-pin-x-tr3PcfRX.js +27 -0
- package/dist/map-pinned-BmA2imEr.js +23 -0
- package/dist/map-plus-PMJABs9t.js +29 -0
- package/dist/mars-DcwPbFn6.js +23 -0
- package/dist/mars-stroke-D9p34ryh.js +27 -0
- package/dist/martini-DQ_N1S8e.js +21 -0
- package/dist/maximize-2-B3lS9wO1.js +25 -0
- package/dist/maximize-CAkuiwn7.js +25 -0
- package/dist/medal-DOWgjTaP.js +35 -0
- package/dist/megaphone-D0-0jMQL.js +21 -0
- package/dist/megaphone-off-DLevJZFF.js +29 -0
- package/dist/memory-stick-m1rQnwsd.js +57 -0
- package/dist/menu-D5C77nJP.js +21 -0
- package/dist/merge-CsXbezbl.js +21 -0
- package/dist/message-circle-B4eYOV0A.js +11 -0
- package/dist/message-circle-check-BOS9SP3J.js +14 -0
- package/dist/message-circle-code-D-T4n9Cl.js +21 -0
- package/dist/message-circle-dashed-BTLHies5.js +41 -0
- package/dist/message-circle-dashed-check-B0vdZ3Nz.js +45 -0
- package/dist/message-circle-heart-C145-MML.js +14 -0
- package/dist/message-circle-more-IUfGBSv4.js +25 -0
- package/dist/message-circle-off-JH4AL0-L.js +21 -0
- package/dist/message-circle-plus-DmcJDpCY.js +21 -0
- package/dist/message-circle-question-mark-CoflF272.js +22 -0
- package/dist/message-circle-reply-CnJASC5n.js +21 -0
- package/dist/message-circle-warning-HKSsArhi.js +21 -0
- package/dist/message-circle-x-CvHwUs7n.js +21 -0
- package/dist/message-square-D-Xi-3Dk.js +11 -0
- package/dist/message-square-check-CM5ijCn1.js +14 -0
- package/dist/message-square-code-pWvI1p4z.js +21 -0
- package/dist/message-square-dashed-BRFTXlZo.js +49 -0
- package/dist/message-square-diff-BDTRBAdI.js +25 -0
- package/dist/message-square-dot-C5taE7F3.js +16 -0
- package/dist/message-square-heart-BuLeMNzl.js +14 -0
- package/dist/message-square-lock-jmy-U5b8.js +25 -0
- package/dist/message-square-more-xQSfdKCv.js +25 -0
- package/dist/message-square-off-DIjbZCzt.js +21 -0
- package/dist/message-square-plus-Gt6Ppg7l.js +21 -0
- package/dist/message-square-quote-DKSwa6Ms.js +21 -0
- package/dist/message-square-reply-CWkVNX8J.js +21 -0
- package/dist/message-square-share-ZCgzlgSx.js +21 -0
- package/dist/message-square-text-julsaBGN.js +25 -0
- package/dist/message-square-warning-D9GFcR4o.js +21 -0
- package/dist/message-square-x-J_NDzoEI.js +21 -0
- package/dist/messages-circle-DvXoq8IQ.js +14 -0
- package/dist/messages-square-Ck2DLevc.js +14 -0
- package/dist/metronome-DrnSSCTZ.js +27 -0
- package/dist/mic-audio-lines-BuaByhuS.js +49 -0
- package/dist/mic-mFRqzrNO.js +25 -0
- package/dist/mic-off-CYQRhGmk.js +33 -0
- package/dist/mic-signal-CudK_lij.js +42 -0
- package/dist/mic-vocal-BQWCIw_u.js +24 -0
- package/dist/microchip-BK_dauQX.js +53 -0
- package/dist/microscope-D-qu1SST.js +33 -0
- package/dist/microwave-DKlARCze.js +37 -0
- package/dist/midi-port-1zawlK_7.js +39 -0
- package/dist/milestone-DdAxOjcE.js +21 -0
- package/dist/milk-Df_boxx3.js +21 -0
- package/dist/milk-off-Dp_h8hV8.js +28 -0
- package/dist/minimize-2-NgxtFanX.js +25 -0
- package/dist/minimize-DYt1aZVv.js +25 -0
- package/dist/minus-CzNuAtFq.js +11 -0
- package/dist/mirror-rectangular-DfjUVA-L.js +25 -0
- package/dist/mirror-round-wmHb1arF.js +31 -0
- package/dist/monitor-BuBNSkQc.js +31 -0
- package/dist/monitor-check-CKvM33JN.js +29 -0
- package/dist/monitor-cloud-_G_5rYWg.js +29 -0
- package/dist/monitor-cog-JizDejV4.js +59 -0
- package/dist/monitor-dot-9p5dPE1g.js +27 -0
- package/dist/monitor-down-B9qetZmp.js +33 -0
- package/dist/monitor-off-BWL_D6CQ.js +29 -0
- package/dist/monitor-pause-CTWIotsj.js +33 -0
- package/dist/monitor-pc-DfxdlC7-.js +41 -0
- package/dist/monitor-play-D_AdBws8.js +29 -0
- package/dist/monitor-smartphone-BopRKs3N.js +29 -0
- package/dist/monitor-speaker-DEKtNNmP.js +35 -0
- package/dist/monitor-stop-BR3zxGMT.js +33 -0
- package/dist/monitor-up-DD_jm6EU.js +33 -0
- package/dist/monitor-x-hkOvgX31.js +33 -0
- package/dist/moon-BWx-8ZSb.js +11 -0
- package/dist/moon-star-C6SAI_-H.js +21 -0
- package/dist/mop-5oz1axs1.js +21 -0
- package/dist/mop-sparkles-CSqgJgSl.js +49 -0
- package/dist/mosque-D3dUjfs9.js +33 -0
- package/dist/motorbike-DZDBOm6C.js +33 -0
- package/dist/mountain-B9xcy1CS.js +11 -0
- package/dist/mountain-snow-B50ek-Lj.js +14 -0
- package/dist/mouse-Bk5tuw7A.js +18 -0
- package/dist/mouse-left-CfoTxcP_.js +23 -0
- package/dist/mouse-off-C_8Itpl8.js +25 -0
- package/dist/mouse-pointer-2-BLN2L_7p.js +11 -0
- package/dist/mouse-pointer-2-off-DxkVt5bD.js +21 -0
- package/dist/mouse-pointer-CvRAW6XL.js +14 -0
- package/dist/mouse-pointer-ban-D8gXZIXZ.js +23 -0
- package/dist/mouse-pointer-click-B9Izzj7w.js +29 -0
- package/dist/mouse-right-DkCts9TC.js +23 -0
- package/dist/mouth-7FIuZzpI.js +14 -0
- package/dist/mouth-off-CKowVDKe.js +29 -0
- package/dist/move-3d-c8aLiy4X.js +26 -0
- package/dist/move-diagonal-2-CLrYLJMh.js +21 -0
- package/dist/move-diagonal-B7fXm9j7.js +21 -0
- package/dist/move-down-DQbm7K0h.js +14 -0
- package/dist/move-down-left-CPei3M_v.js +14 -0
- package/dist/move-down-right-D28lkKEP.js +14 -0
- package/dist/move-horizontal-CSItvr6P.js +21 -0
- package/dist/move-left-BBR6oRzU.js +14 -0
- package/dist/move-right-DNlzpCur.js +14 -0
- package/dist/move-up-B2HkQNE2.js +14 -0
- package/dist/move-up-left-DUGQY5Aj.js +14 -0
- package/dist/move-up-right-B3QoyUmJ.js +14 -0
- package/dist/move-vertical--ftQCtAI.js +21 -0
- package/dist/move-w_TthqgF.js +33 -0
- package/dist/music-2-ZuH4aNpf.js +16 -0
- package/dist/music-3-B2S-2B39.js +16 -0
- package/dist/music-4-Cgxby2sw.js +29 -0
- package/dist/music-CFmN4k6p.js +25 -0
- package/dist/navigation-2-DTEd-IlQ.js +11 -0
- package/dist/navigation-2-off-Cnowv4jO.js +24 -0
- package/dist/navigation-9LHiRjp1.js +11 -0
- package/dist/navigation-off-BlivWCD9.js +24 -0
- package/dist/nepali-rupee-B8JEg5SA.js +29 -0
- package/dist/network-Dmdga2AN.js +41 -0
- package/dist/newspaper-BQLfIGZu.js +29 -0
- package/dist/nfc-C9T65r9r.js +25 -0
- package/dist/non-binary-Cw-4Dyem.js +27 -0
- package/dist/notebook-B2iiHQoD.js +37 -0
- package/dist/notebook-dot-SLZJyYWP.js +39 -0
- package/dist/notebook-pen-DRKCV1ED.js +33 -0
- package/dist/notebook-tabs--VYOJNaS.js +49 -0
- package/dist/notebook-text-YVSKbE48.js +45 -0
- package/dist/notepad-text-B1zvAUb_.js +41 -0
- package/dist/notepad-text-dashed-DigGzN7q.js +61 -0
- package/dist/nut-CXTDRkF3.js +21 -0
- package/dist/nut-off-B0ta3HJm.js +32 -0
- package/dist/octagon-DOVeq60e.js +11 -0
- package/dist/octagon-alert-Bw_L8Prk.js +22 -0
- package/dist/octagon-minus-Cr85i4JJ.js +14 -0
- package/dist/octagon-pause-pgwJJTD9.js +22 -0
- package/dist/octagon-x-Bz1MUl_m.js +22 -0
- package/dist/omega-CZz3kZPC.js +11 -0
- package/dist/option-ByDRr8DH.js +14 -0
- package/dist/orbit-CcCtgA0-.js +35 -0
- package/dist/origami-BHoxHEY_.js +21 -0
- package/dist/ownerMail-BWr10Yt7.cjs +1 -0
- package/dist/ownerMail-wpP9EUWW.js +55 -0
- package/dist/package-2-DTRUJRg7.js +21 -0
- package/dist/package-BGhlaMjE.js +25 -0
- package/dist/package-check-RJ1pDtPq.js +29 -0
- package/dist/package-minus-CIAWbQSA.js +29 -0
- package/dist/package-open-DXhVzfOn.js +25 -0
- package/dist/package-plus-DCYKHQDy.js +33 -0
- package/dist/package-search-Bi-ccsJb.js +35 -0
- package/dist/package-x-yWnltHHH.js +33 -0
- package/dist/pageFiles-CjhtQ2a7.js +45 -0
- package/dist/pageFiles-PV1rx630.cjs +1 -0
- package/dist/pageGroup-BFevTzzI.js +15 -0
- package/dist/pageGroup-CgsLzyjY.cjs +1 -0
- package/dist/pages/PagesAdmin.d.ts +157 -136
- package/dist/pages/PaymentItemRow.d.ts +6 -0
- package/dist/pages/PaymentLinks.d.ts +2 -0
- package/dist/pages/PaymentsGoLive.d.ts +18 -0
- package/dist/pages/PaymentsWiring.d.ts +2 -4
- package/dist/pages/SetupPayments.d.ts +1 -1
- package/dist/pages/TransactionsAdmin.d.ts +19 -1
- package/dist/pages/Users.d.ts +19 -3
- package/dist/paint-bucket-BXjJGrSk.js +25 -0
- package/dist/paint-roller-DNGzspBS.js +29 -0
- package/dist/paintbrush-ecMGq23I.js +21 -0
- package/dist/paintbrush-vertical-tDxTzXwD.js +26 -0
- package/dist/palette-B73zF47A.js +41 -0
- package/dist/panda-D_5dq_sB.js +33 -0
- package/dist/panel-bottom-C9HXpEiQ.js +18 -0
- package/dist/panel-bottom-close-BmiJP1WK.js +25 -0
- package/dist/panel-bottom-dashed-D_BcKmL1.js +34 -0
- package/dist/panel-bottom-open--XWpwF3j.js +25 -0
- package/dist/panel-left-Dh2L6JIM.js +19 -0
- package/dist/panel-left-close-CpjbRkzP.js +26 -0
- package/dist/panel-left-dashed-BGLmwACj.js +34 -0
- package/dist/panel-left-open-BIeskSHv.js +26 -0
- package/dist/panel-left-right-dashed-DsIcBMVX.js +49 -0
- package/dist/panel-right-DrQPvpBz.js +18 -0
- package/dist/panel-right-close-Bbbj-LSc.js +25 -0
- package/dist/panel-right-dashed-B-QBB3mh.js +34 -0
- package/dist/panel-right-open-DeUpbr9J.js +25 -0
- package/dist/panel-top-0_-PEFQ8.js +18 -0
- package/dist/panel-top-bottom-dashed-D1OlmeEu.js +49 -0
- package/dist/panel-top-close-qKkNe5kE.js +25 -0
- package/dist/panel-top-dashed-Zlcg7eDX.js +34 -0
- package/dist/panel-top-open-BNFuMob7.js +25 -0
- package/dist/panels-left-bottom-DqRK4-fc.js +25 -0
- package/dist/panels-right-bottom-B9l-K1SF.js +25 -0
- package/dist/panels-top-left-C54Bdu4Q.js +26 -0
- package/dist/paper-bag-gqeTF7eR.js +14 -0
- package/dist/paperclip-DmkKD0QE.js +11 -0
- package/dist/parasol-TJJuT1CM.js +21 -0
- package/dist/parentheses-Du2B5B7y.js +14 -0
- package/dist/park-DYSPkNXz.js +43 -0
- package/dist/parking-meter-CtyxlJW8.js +29 -0
- package/dist/party-popper-DS2BxM7w.js +45 -0
- package/dist/pause-BSzaDkC-.js +22 -0
- package/dist/paw-print-Dnyp2JEa.js +31 -0
- package/dist/paymentGives-BX-cqv1W.cjs +1 -0
- package/dist/paymentGives-Dyzbh-Ba.js +269 -0
- package/dist/pc-case-CfKsC9wO.js +29 -0
- package/dist/pdf-BWVSxvTI.js +18903 -0
- package/dist/pdf.worker.min-BCWdbWTP.js +4 -0
- package/dist/pen-DPS1WRoL.js +12 -0
- package/dist/pen-line-B1vOc8UL.js +15 -0
- package/dist/pen-off-Bi7YbOii.js +21 -0
- package/dist/pen-tool-DU6fBu6I.js +27 -0
- package/dist/pencil-B5BrbvjH.js +14 -0
- package/dist/pencil-BMd_yQh0.cjs +1 -0
- package/dist/pencil-Dz2Uwu34.js +72 -0
- package/dist/pencil-line-BEr1nvCW.js +21 -0
- package/dist/pencil-off-C19YymYx.js +25 -0
- package/dist/pencil-ruler-BP1w6305.js +33 -0
- package/dist/pencil-sparkles-CWwNgd4r.js +41 -0
- package/dist/pentagon-BR2X47eV.js +11 -0
- package/dist/people-BGK2AuYa.cjs +1 -0
- package/dist/people-BmjGMmn9.js +137 -0
- package/dist/percent-DN12C0Tl.js +28 -0
- package/dist/person-standing-3zBPv2L4.js +27 -0
- package/dist/phi-D6WsoXx8.js +16 -0
- package/dist/philippine-peso-OVkJosiX.js +21 -0
- package/dist/phone-BWEZX3bt.js +11 -0
- package/dist/phone-call-BBTY9eMk.js +21 -0
- package/dist/phone-forwarded-C7eIFIdh.js +21 -0
- package/dist/phone-incoming-DUyvCQzB.js +21 -0
- package/dist/phone-missed-CCjI5kW8.js +21 -0
- package/dist/phone-off-DeH9CIc1.js +21 -0
- package/dist/phone-outgoing-B7VMdRYO.js +21 -0
- package/dist/pi-DAUz-01y.js +24 -0
- package/dist/piano-59uDF-a7.js +33 -0
- package/dist/pickaxe-Bhvw25v4.js +25 -0
- package/dist/picture-in-picture-2-DaM-d1Kj.js +18 -0
- package/dist/picture-in-picture-Cwjik4Uz.js +33 -0
- package/dist/piggy-bank-CEizgf0w.js +21 -0
- package/dist/pilcrow-a-UvHHu2.js +21 -0
- package/dist/pilcrow-left-BdspgELX.js +29 -0
- package/dist/pilcrow-right-BxhHENTE.js +29 -0
- package/dist/pill-D3v8RHBk.js +14 -0
- package/dist/pill-bottle-B9NgAF2N.js +25 -0
- package/dist/pin-C9hKWzz8.js +14 -0
- package/dist/pin-off-CYwf0wrq.js +25 -0
- package/dist/pipette-CAQQf3CM.js +21 -0
- package/dist/pizza--eO2rKGn.js +29 -0
- package/dist/plane-CmunnbJ7.js +11 -0
- package/dist/plane-landing-DVFUWJ2I.js +14 -0
- package/dist/plane-takeoff-gSLty9xr.js +14 -0
- package/dist/plant-pot-Bm9oZhn6.js +21 -0
- package/dist/play-XpFaeYZm.js +11 -0
- package/dist/play-off-DW84X74y.js +21 -0
- package/dist/playing-card-CYQVMNU4.js +18 -0
- package/dist/playing-cards-W0ywhNeO.js +25 -0
- package/dist/playing-cards-fan-CGhGFG6A.js +21 -0
- package/dist/plug-2-DttgY7Fm.js +29 -0
- package/dist/plug-BVM8uzFZ.js +25 -0
- package/dist/plug-zap-B8-yyAfc.js +30 -0
- package/dist/plus-BoZ64noM.js +17 -0
- package/dist/plus-C1o4n2fd.js +14 -0
- package/dist/pocket-knife-MDh5KLo-.js +29 -0
- package/dist/podium-CcvLR92S.js +21 -0
- package/dist/pointer-BjqLCLVy.js +29 -0
- package/dist/pointer-off-D1a4fOgQ.js +33 -0
- package/dist/popcorn-BWLBaAxk.js +25 -0
- package/dist/popsicle-2-UyoJXn.js +14 -0
- package/dist/pound-sterling-BafiTocU.js +25 -0
- package/dist/power-B8VqOO0V.js +17 -0
- package/dist/power-DNbAiWXO.js +14 -0
- package/dist/power-off-smyblpgw.js +25 -0
- package/dist/practiceLeft-BJrHqNy1.cjs +1 -0
- package/dist/practiceLeft-CdMDFlaR.js +34 -0
- package/dist/presentation-HJYd-rN9.js +21 -0
- package/dist/printer-B2EY9ggx.js +25 -0
- package/dist/printer-check-BOP0fYiN.js +25 -0
- package/dist/printer-x-BmR5aUPM.js +29 -0
- package/dist/projector-Kx2AUBh3.js +35 -0
- package/dist/proportions-CwqwIz9k.js +25 -0
- package/dist/publishSteps-BVSLK5rf.js +88 -0
- package/dist/publishSteps-RacAcBS4.cjs +1 -0
- package/dist/puzzle-B7LEzDW_.js +11 -0
- package/dist/pyramid-DPCIWpH5.js +14 -0
- package/dist/qr-code-0PpWGH3Z.js +69 -0
- package/dist/quote-Shfnu4cT.js +14 -0
- package/dist/rabbit-C7GsRoHr.js +29 -0
- package/dist/radar-Blu3pxLC.js +43 -0
- package/dist/radiation-Bhp47Jjt.js +25 -0
- package/dist/radical-cbMlnmy7.js +11 -0
- package/dist/radio-Dt5eM8Kx.js +31 -0
- package/dist/radio-off-IJVs43cW.js +33 -0
- package/dist/radio-receiver-NFTxm7wG.js +29 -0
- package/dist/radio-tower-ByeC8jzk.js +39 -0
- package/dist/radius-DchFzbAz.js +29 -0
- package/dist/rainbow-DTYkjD0d.js +21 -0
- package/dist/rat-DLVE7i-T.js +29 -0
- package/dist/ratio-BUN1Ekr0.js +22 -0
- package/dist/receipt-6JGp9oq4.js +21 -0
- package/dist/receipt-cent-DMBIDJ6N.js +21 -0
- package/dist/receipt-euro-k-FIc8Gf.js +21 -0
- package/dist/receipt-indian-rupee-4A43p3F-.js +25 -0
- package/dist/receipt-japanese-yen-bVr3TvdD.js +29 -0
- package/dist/receipt-pound-sterling-CFxsf196.js +25 -0
- package/dist/receipt-russian-ruble-CgqtQgAu.js +21 -0
- package/dist/receipt-swiss-franc-CVNcxViY.js +25 -0
- package/dist/receipt-text-BaD-wPA4.js +25 -0
- package/dist/receipt-turkish-lira-CRRjVePP.js +21 -0
- package/dist/recordLock-BZejkriA.cjs +1 -0
- package/dist/recordLock-XVY9IOZ5.js +104 -0
- package/dist/recordsKey-BGbEh_M4.cjs +1 -0
- package/dist/recordsKey-Dk90TLHV.js +141 -0
- package/dist/rectangle-circle-Dk4hZ0Zh.js +16 -0
- package/dist/rectangle-ellipsis-DYL3ZOkP.js +30 -0
- package/dist/rectangle-goggles-Do5nnVkq.js +11 -0
- package/dist/rectangle-horizontal-DMWv0th6.js +15 -0
- package/dist/rectangle-vertical-CHrjCr5B.js +15 -0
- package/dist/recycle-q-zAACj-.js +33 -0
- package/dist/redo-2-DADlQBDc.js +14 -0
- package/dist/redo-DdJyXqqR.js +14 -0
- package/dist/redo-dot-U8M2AdYY.js +23 -0
- package/dist/refresh-ccw-C5Hoa6AJ.js +25 -0
- package/dist/refresh-ccw-dot-B_xUdmUV.js +31 -0
- package/dist/refresh-cw-Ctoj4dT1.js +25 -0
- package/dist/refresh-cw-off-dAp84RHV.js +37 -0
- package/dist/refrigerator-sEv449Es.js +21 -0
- package/dist/regex-T0Fd1C1V.js +25 -0
- package/dist/registrationFields-CJbEfmAY.cjs +1 -0
- package/dist/registrationFields-CXu2z-cJ.js +196 -0
- package/dist/remove-formatting-unV4-ouR.js +29 -0
- package/dist/renderer.cjs.js +1 -1
- package/dist/renderer.es.js +1 -1
- package/dist/repeat-1-DnPEjZDv.js +29 -0
- package/dist/repeat-2-Btey9v1o.js +25 -0
- package/dist/repeat-B2rsogGl.js +25 -0
- package/dist/repeat-off-01R2ZK2U.js +37 -0
- package/dist/replace-BZl_sFBS.js +41 -0
- package/dist/replace-all-btwOhSqk.js +49 -0
- package/dist/reply-DGby1sYo.js +14 -0
- package/dist/reply-all-C-tfIxDE.js +21 -0
- package/dist/reply-km4hD60u.js +17 -0
- package/dist/rewind-Cc7-fSSJ.js +14 -0
- package/dist/ribbon-CZgWHrYQ.js +29 -0
- package/dist/road-D9Vw1dgP.js +25 -0
- package/dist/robot-arm-DJ9YTXzY.js +35 -0
- package/dist/robot-vacuum-CqoycViB.js +43 -0
- package/dist/rocket-DrA79p6Q.js +25 -0
- package/dist/rocking-chair-CxZdWgHf.js +25 -0
- package/dist/roles-CEjUo9Uu.js +161 -0
- package/dist/roles-Dlr47KLC.cjs +1 -0
- package/dist/roller-coaster-BqiSBvkA.js +37 -0
- package/dist/rose-DLdYwEaV.js +31 -0
- package/dist/rotate-3d-CxejFQz4.js +22 -0
- package/dist/rotate-ccw-CuQVKB9-.js +14 -0
- package/dist/rotate-ccw-clock-DfD07hxj.js +22 -0
- package/dist/rotate-ccw-key-_P5pJn-I.js +31 -0
- package/dist/rotate-ccw-square-D3e-HV7i.js +21 -0
- package/dist/rotate-cw-D4iin0mF.js +14 -0
- package/dist/rotate-cw-clock-Bpu6vrHc.js +21 -0
- package/dist/rotate-cw-fading-clock-B5amWXvP.js +49 -0
- package/dist/rotate-cw-square-DRn3Lv5U.js +21 -0
- package/dist/route-BzcZb_sr.js +25 -0
- package/dist/route-off-BQpL5sAL.js +41 -0
- package/dist/router-BCUSXCJf.js +37 -0
- package/dist/rowPress-C1qkGckA.cjs +1 -0
- package/dist/rowPress-DNIZ2pLA.js +11 -0
- package/dist/rows-2-BEmJxsLK.js +19 -0
- package/dist/rows-3-C2oc0215.js +26 -0
- package/dist/rows-4-Bfp1ibMP.js +29 -0
- package/dist/rss-gVCLUFTL.js +23 -0
- package/dist/ruler-DmtWVPtv.js +29 -0
- package/dist/ruler-dimension-line-CmzOCeFD.js +45 -0
- package/dist/russian-ruble-RCX_e_GO.js +14 -0
- package/dist/sailboat-Cxl10Lq_.js +21 -0
- package/dist/salad-DnnrXCpj.js +29 -0
- package/dist/sandwich-qqgHGphh.js +33 -0
- package/dist/satellite-BsW7Tm69.js +29 -0
- package/dist/satellite-dish-CQCR3H-z.js +25 -0
- package/dist/saudi-riyal-DFulPJMa.js +25 -0
- package/dist/save-Dh-Kf1bB.js +21 -0
- package/dist/save-all-DZwPlaaD.js +25 -0
- package/dist/save-check-DyvHqo4b.js +25 -0
- package/dist/save-off-Di84Rond.js +33 -0
- package/dist/save-pen-kZ_sWTvv.js +25 -0
- package/dist/save-plus-DD0LGNPq.js +29 -0
- package/dist/scale-3d-CNXBCoFc.js +30 -0
- package/dist/scale-YpniDXR2.js +29 -0
- package/dist/scaling-DgadITxS.js +25 -0
- package/dist/scan-DWf5a_ow.js +25 -0
- package/dist/scan-barcode-Cc-MUEGU.js +37 -0
- package/dist/scan-box-ssjSCouM.js +37 -0
- package/dist/scan-eye-BCouAzLI.js +35 -0
- package/dist/scan-face-BXaxZIQI.js +37 -0
- package/dist/scan-heart-CjSLAXvs.js +29 -0
- package/dist/scan-line-Nd3eydQO.js +29 -0
- package/dist/scan-qr-code-NwKs3V0A.js +45 -0
- package/dist/scan-search-DPjPQJ3z.js +35 -0
- package/dist/scan-square-BRISKXn5.js +33 -0
- package/dist/scan-text-CzkEuNuB.js +37 -0
- package/dist/school-CxRw9rmd.js +35 -0
- package/dist/scissors-line-dashed-DqSjCqJl.js +41 -0
- package/dist/scissors-qtAVRHxH.js +33 -0
- package/dist/scooter-Bghf8oQw.js +29 -0
- package/dist/screen-share-CZRZ0SCT.js +29 -0
- package/dist/screen-share-off-CKirf2k1.js +29 -0
- package/dist/scroll-DWsUjYrD.js +14 -0
- package/dist/scroll-text-Blr-K5uG.js +25 -0
- package/dist/search-BF_FVJE6.js +29 -0
- package/dist/search-D8SWrvtG.js +16 -0
- package/dist/search-DZsQiVlv.cjs +1 -0
- package/dist/search-alert-BdNrVY5g.js +27 -0
- package/dist/search-check-B_5JUETG.js +23 -0
- package/dist/search-code-ifAaPxKU.js +27 -0
- package/dist/search-slash-CQXN0ruQ.js +23 -0
- package/dist/search-x-CjCXAiA-.js +27 -0
- package/dist/section-CVcXn2hl.js +14 -0
- package/dist/send-BosUur0X.js +17 -0
- package/dist/send-KR1sSMz8.js +14 -0
- package/dist/send-horizontal-D2XlBjjy.js +15 -0
- package/dist/send-to-back-BY5-5r4H.js +33 -0
- package/dist/separator-horizontal-B4_zBqgm.js +21 -0
- package/dist/separator-vertical-ZoVEqV3k.js +21 -0
- package/dist/server/appPrices.d.ts +166 -0
- package/dist/server/buyerWords.d.ts +41 -0
- package/dist/server/checks.d.ts +5 -0
- package/dist/server/customers.d.ts +148 -0
- package/dist/server/index.d.ts +53 -31
- package/dist/server/paymentGives.d.ts +42 -0
- package/dist/server/planRoles.d.ts +61 -3
- package/dist/server/plansOnSale.d.ts +100 -0
- package/dist/server/portal.d.ts +104 -0
- package/dist/server/recent.d.ts +2 -0
- package/dist/server/stripeClient.d.ts +25 -0
- package/dist/server/stripeLooks.d.ts +89 -0
- package/dist/server/tidy.d.ts +36 -0
- package/dist/server-C84XxsZz.js +41 -0
- package/dist/server-cog-3KvfdN3K.js +57 -0
- package/dist/server-crash-oQpa4X66.js +29 -0
- package/dist/server-off-W3QKnKs0.js +33 -0
- package/dist/server-plus-BCAfNvOk.js +33 -0
- package/dist/server.cjs.js +10 -12
- package/dist/server.es.js +2761 -1718
- package/dist/serviceStatus-6IeXMPf9.js +84 -0
- package/dist/serviceStatus-DeFgiMOV.cjs +1 -0
- package/dist/serviceSwitches-BRzePVxZ.js +112 -0
- package/dist/serviceSwitches-Ckv_GZ9Q.cjs +1 -0
- package/dist/settings-2-C1mNzpvt.js +29 -0
- package/dist/settings-DzWxWAAU.js +16 -0
- package/dist/shapes-BcVm-WTf.js +27 -0
- package/dist/share-2-Bn5unWOn.js +41 -0
- package/dist/share-jwVGJ3mT.js +21 -0
- package/dist/sheet-DrBb3bTg.js +46 -0
- package/dist/shell-BDHuMMtO.js +11 -0
- package/dist/shelving-unit-Cd_MDNsU.js +37 -0
- package/dist/shield-DGK-tsQ-.js +11 -0
- package/dist/shield-alert-CbA-NwcC.js +21 -0
- package/dist/shield-ban-CScum608.js +14 -0
- package/dist/shield-check-C-Jr576S.js +14 -0
- package/dist/shield-check-D7i8lCId.js +17 -0
- package/dist/shield-cog-CuhEZU2S.js +51 -0
- package/dist/shield-cog-corner-K0rnGigD.js +51 -0
- package/dist/shield-ellipsis-Bb-CXFec.js +25 -0
- package/dist/shield-half-CnMWKfGe.js +14 -0
- package/dist/shield-keyhole-DWczTSz6.js +23 -0
- package/dist/shield-lock-D5yEg38p.js +25 -0
- package/dist/shield-minus-DM2Pnihe.js +14 -0
- package/dist/shield-off-DyOBel6j.js +21 -0
- package/dist/shield-plus-CFvtW-5H.js +21 -0
- package/dist/shield-question-mark-B-EPEhoM.js +22 -0
- package/dist/shield-user-FvWABIls.js +23 -0
- package/dist/shield-x-DEkzFAoI.js +22 -0
- package/dist/ship-cargo-Kg-VZ6va.js +29 -0
- package/dist/ship-gXjnfJiX.js +29 -0
- package/dist/ship-wheel-uxlgPE3R.js +53 -0
- package/dist/shirt-CGTKm2Ix.js +11 -0
- package/dist/shopping-bag-tj4SzUbe.js +21 -0
- package/dist/shopping-basket-tEKDzk5N.js +37 -0
- package/dist/shopping-cart--UOyugva.js +29 -0
- package/dist/shopping-cart-minus-BKfgJWGO.js +37 -0
- package/dist/shopping-cart-plus-DDCZ-5PK.js +41 -0
- package/dist/shovel-r9QR2U4f.js +21 -0
- package/dist/shower-head-AR73Ap7U.js +49 -0
- package/dist/shredder-DOFKvf3N.js +37 -0
- package/dist/shrimp-B_fK6OjU.js +29 -0
- package/dist/shrimp-off-CyXs5-ZC.js +37 -0
- package/dist/shrink-vpwmh6d3.js +25 -0
- package/dist/shrub-C6oVaIMB.js +21 -0
- package/dist/shuffle-DXq_Y5uu.js +29 -0
- package/dist/sigma-DircARnX.js +11 -0
- package/dist/signal-CUpANu3R.js +29 -0
- package/dist/signal-high-DiCfVl6X.js +25 -0
- package/dist/signal-low-8gMmrpzu.js +14 -0
- package/dist/signal-medium-Bfu3r3aE.js +21 -0
- package/dist/signal-zero-CHVfzf_n.js +11 -0
- package/dist/signature-CtICHYKi.js +14 -0
- package/dist/signpost-BRgJkvpM.js +21 -0
- package/dist/signpost-big-BY0afQPs.js +25 -0
- package/dist/siren-b_vpRGUc.js +41 -0
- package/dist/skip-back-ByWxlmzM.js +14 -0
- package/dist/skip-forward-BofZ6Ulb.js +14 -0
- package/dist/skull-CXJ-C0bb.js +29 -0
- package/dist/slash-rolViKiS.js +11 -0
- package/dist/slice-gdgY8EgS.js +11 -0
- package/dist/sliders-horizontal-D6khrvbs.js +45 -0
- package/dist/sliders-vertical-CQuDyK1F.js +46 -0
- package/dist/smartphone-charging-CR1azl4Q.js +19 -0
- package/dist/smartphone-gROOCGCj.js +19 -0
- package/dist/smartphone-nfc-adQQu6tu.js +29 -0
- package/dist/snail-l9bl7wOv.js +31 -0
- package/dist/snowflake-C6laf1Z2.js +57 -0
- package/dist/soap-dispenser-droplet-6qzLvh6P.js +25 -0
- package/dist/sofa-wPHJxJKw.js +29 -0
- package/dist/solar-panel-CMxI-JWW.js +37 -0
- package/dist/soup-DmDYsf_E.js +33 -0
- package/dist/space-BMOWQZi-.js +11 -0
- package/dist/spade-BKfwX5xm.js +14 -0
- package/dist/sparkle-Do4gD_uG.js +11 -0
- package/dist/sparkles-BlTC9ykP.js +28 -0
- package/dist/speaker-BLBxR-nk.js +31 -0
- package/dist/speech-SL_ypLHb.js +21 -0
- package/dist/spell-check-2-B1FZu_gh.js +21 -0
- package/dist/spell-check-Bmuf8AqG.js +21 -0
- package/dist/spline-DN275Cxr.js +25 -0
- package/dist/spline-pointer-Da32lZxk.js +29 -0
- package/dist/split-CPw8gC5o.js +25 -0
- package/dist/spool-BNen5ZlM.js +14 -0
- package/dist/sport-shoe-g2r3DJYT.js +21 -0
- package/dist/spotlight-CWWRgMzb.js +29 -0
- package/dist/spray-can-BbcArAyB.js +52 -0
- package/dist/sprout-Ch0M1tEb.js +21 -0
- package/dist/square-Buw5SUVn.js +15 -0
- package/dist/square-activity-vwRcHHdP.js +19 -0
- package/dist/square-arrow-down-hit6BTQo.js +26 -0
- package/dist/square-arrow-down-left-CdUyz2vZ.js +26 -0
- package/dist/square-arrow-down-right-tNqpwTW8.js +26 -0
- package/dist/square-arrow-left-CwOm1mGn.js +26 -0
- package/dist/square-arrow-out-down-left-Cp_BSHIp.js +22 -0
- package/dist/square-arrow-out-down-right-CL8c6-rA.js +22 -0
- package/dist/square-arrow-out-up-left-DF3TeU4B.js +22 -0
- package/dist/square-arrow-out-up-right-BmJjlS7l.js +22 -0
- package/dist/square-arrow-right-DIriFKBh.js +26 -0
- package/dist/square-arrow-right-enter-BUP0mNcP.js +21 -0
- package/dist/square-arrow-right-exit-BEe3yJNm.js +21 -0
- package/dist/square-arrow-up-CDvH9Xtb.js +26 -0
- package/dist/square-arrow-up-left-CNCMk7A6.js +26 -0
- package/dist/square-arrow-up-right-Cv4HbASG.js +26 -0
- package/dist/square-asterisk-DffnVrDA.js +30 -0
- package/dist/square-bookmark-DXcEW4M-.js +19 -0
- package/dist/square-bottom-dashed-scissors-fBwQjZ8R.js +46 -0
- package/dist/square-centerline-dashed-horizontal-Do7w7Nib.js +34 -0
- package/dist/square-centerline-dashed-vertical-hp2HAJ4R.js +34 -0
- package/dist/square-chart-gantt-tbtpJeYS.js +30 -0
- package/dist/square-check-QR4vlDp2.js +19 -0
- package/dist/square-check-big-Y8OREaiz.js +15 -0
- package/dist/square-chevron-down-DEsXZiC1.js +19 -0
- package/dist/square-chevron-left--fQ8cNAm.js +19 -0
- package/dist/square-chevron-right-DZ04_kmf.js +19 -0
- package/dist/square-chevron-up-B_dzASxR.js +19 -0
- package/dist/square-code-CLBRbFQh.js +26 -0
- package/dist/square-dashed-BavmfBx5.js +58 -0
- package/dist/square-dashed-bottom-D_hgEVek.js +21 -0
- package/dist/square-dashed-bottom-code-1ijVAjXh.js +29 -0
- package/dist/square-dashed-kanban-CPqgnSIZ.js +70 -0
- package/dist/square-dashed-mouse-pointer-4phQ_Q5m.js +50 -0
- package/dist/square-dashed-plus-z5w-LrjP.js +65 -0
- package/dist/square-dashed-text-BIANB319.js +70 -0
- package/dist/square-dashed-top-solid-CVCag9Q9.js +45 -0
- package/dist/square-dashed-x-CAyjZonZ.js +65 -0
- package/dist/square-dashed-x-corner-k7pN9-yG.js +53 -0
- package/dist/square-dimensions-tQDBlHnG.js +25 -0
- package/dist/square-divide-BqkXQ5Vq.js +40 -0
- package/dist/square-dot-rpD7veHl.js +21 -0
- package/dist/square-equal-DCHLvjM-.js +26 -0
- package/dist/square-exclamation-point-BoHDgLqX.js +31 -0
- package/dist/square-function-BjG2eFgL.js +27 -0
- package/dist/square-kanban-CxLkEbEl.js +30 -0
- package/dist/square-library-DSN1C3YD.js +30 -0
- package/dist/square-m-Domt_VSK.js +19 -0
- package/dist/square-menu-B2XOLnPp.js +30 -0
- package/dist/square-minus-BsMiPEeb.js +19 -0
- package/dist/square-mouse-pointer-CJwOLHTs.js +15 -0
- package/dist/square-off-qVy2QMO7.js +21 -0
- package/dist/square-parking-off-BKxPIZpX.js +30 -0
- package/dist/square-parking-rYRupKMd.js +19 -0
- package/dist/square-pause-C1Fono6q.js +31 -0
- package/dist/square-pen-DSvmjJ37.js +19 -0
- package/dist/square-percent---TfPHfZ.js +30 -0
- package/dist/square-pi-BcLbhaQg.js +30 -0
- package/dist/square-pilcrow-YbGg5QjV.js +30 -0
- package/dist/square-play-SZeZ-XGj.js +19 -0
- package/dist/square-plus-C-HPSroi.js +26 -0
- package/dist/square-power-CWzOwbkY.js +26 -0
- package/dist/square-radical-DVmQQFH6.js +18 -0
- package/dist/square-round-corner-DMVL3xlk.js +14 -0
- package/dist/square-scissors-BUHaWT3g.js +42 -0
- package/dist/square-sigma-B7j53b3M.js +19 -0
- package/dist/square-slash-f9oB5b6u.js +22 -0
- package/dist/square-split-horizontal-CW2SHGUu.js +22 -0
- package/dist/square-split-vertical-BmTMFF0t.js +22 -0
- package/dist/square-square-CdYxO1EW.js +22 -0
- package/dist/square-stack-thl-PYm0.js +25 -0
- package/dist/square-star-ChJ1exIb.js +18 -0
- package/dist/square-stop-B9B9AdIW.js +22 -0
- package/dist/square-terminal-BOcknznJ.js +27 -0
- package/dist/square-text-DCHi9qz9.js +29 -0
- package/dist/square-user-DTZH_HcG.js +28 -0
- package/dist/square-user-round-CHGrWcSB.js +28 -0
- package/dist/square-x-HMYofG3C.js +27 -0
- package/dist/squares-exclude-4P0ufFxE.js +14 -0
- package/dist/squares-intersect-2MaRaOXS.js +53 -0
- package/dist/squares-subtract-BAojvtEC.js +33 -0
- package/dist/squares-unite-CGGWSOD-.js +11 -0
- package/dist/squircle-CY4T1jq9.js +11 -0
- package/dist/squircle-dashed-MGcNO9PH.js +41 -0
- package/dist/squirrel-BW-7Yats.js +25 -0
- package/dist/stamp-DS-6KQbx.js +21 -0
- package/dist/star-check-CtxR_wHL.js +14 -0
- package/dist/star-half-BP3N4lHq.js +11 -0
- package/dist/star-minus-Dt7iaUkJ.js +14 -0
- package/dist/star-off-CFr2rsx2.js +21 -0
- package/dist/star-plus-BdlUQdOG.js +21 -0
- package/dist/star-x-CF-q74M6.js +21 -0
- package/dist/star-ylGhljhx.js +11 -0
- package/dist/step-back-DN7LE549.js +14 -0
- package/dist/step-forward-DL0VfYln.js +14 -0
- package/dist/stethoscope-DwkEnMvW.js +31 -0
- package/dist/sticker-C7xPJq7J.js +29 -0
- package/dist/sticky-note-DNXQkm7j.js +14 -0
- package/dist/sticky-note-check-D_-4Fa2L.js +21 -0
- package/dist/sticky-note-minus-DO4YLCjp.js +21 -0
- package/dist/sticky-note-off-ITnWcOU3.js +25 -0
- package/dist/sticky-note-plus-npodl8tT.js +25 -0
- package/dist/sticky-note-x-DFjex9wm.js +25 -0
- package/dist/sticky-notes-DWDCaV68.js +25 -0
- package/dist/stone-Ds-9e8k9.js +21 -0
- package/dist/store-BwpPJMce.js +21 -0
- package/dist/stretch-horizontal-C46HdAuo.js +22 -0
- package/dist/stretch-vertical-Dc5TTMBp.js +22 -0
- package/dist/strikethrough-CwQTftpb.js +24 -0
- package/dist/subscript-CG3RuzUb.js +21 -0
- package/dist/summary-Bjf23AOj.js +29 -0
- package/dist/sun-9fjvF1ec.js +47 -0
- package/dist/sun-dim-BHnxDKRg.js +47 -0
- package/dist/sun-medium-Cb-_OJYm.js +47 -0
- package/dist/sun-moon-DkMiCQpP.js +29 -0
- package/dist/sun-snow-CG1NVHcc.js +53 -0
- package/dist/sunrise-Ce2f9vQ5.js +41 -0
- package/dist/sunset-BeLc9XYu.js +41 -0
- package/dist/superscript-HzXYiwJj.js +21 -0
- package/dist/swatch-book-5ccc7lJp.js +25 -0
- package/dist/swiss-franc-9Q2HMP91.js +21 -0
- package/dist/switch-camera-BBak1Gpx.js +31 -0
- package/dist/sword-CDTHXiJR.js +25 -0
- package/dist/swords-BULvUqEi.js +41 -0
- package/dist/syringe-Cg16cL7i.js +33 -0
- package/dist/tabAudience-CU7x6nlz.js +34 -0
- package/dist/tabAudience-ChpP1jMg.cjs +1 -0
- package/dist/table-2-sB_5w0Le.js +25 -0
- package/dist/table-BVysTWTE.js +29 -0
- package/dist/table-cells-merge-BPPdjwfN.js +33 -0
- package/dist/table-cells-split-DcQuXMCG.js +29 -0
- package/dist/table-columns-split-BR3U1-Mi.js +53 -0
- package/dist/table-of-contents-CSoKuJhE.js +33 -0
- package/dist/table-properties-B5zBOZle.js +29 -0
- package/dist/table-rows-split-DcvDVaz6.js +53 -0
- package/dist/tablet-DnuT8esi.js +22 -0
- package/dist/tablet-smartphone-BOpXnrdS.js +25 -0
- package/dist/tablets-Br2gj0Lk.js +29 -0
- package/dist/tag-C_9YP9sU.js +17 -0
- package/dist/tag-plus-CVnS1NYk.js +28 -0
- package/dist/tag-x-B1cJdJD7.js +28 -0
- package/dist/tags-D-IqjJRV.js +24 -0
- package/dist/tally-1-C9WTe3RQ.js +11 -0
- package/dist/tally-2-C5whjL-t.js +14 -0
- package/dist/tally-3-B45g1tLz.js +21 -0
- package/dist/tally-4-B1sYRmp4.js +25 -0
- package/dist/tally-5-DsM9XQGl.js +29 -0
- package/dist/tangent-BAwkVuj4.js +29 -0
- package/dist/target-oFKTYxKf.js +27 -0
- package/dist/telescope-D7sTnXMn.js +39 -0
- package/dist/tent-DRl-NxBe.js +25 -0
- package/dist/tent-tree-HP9kpOSX.js +39 -0
- package/dist/terminal-H_u0kXez.js +14 -0
- package/dist/test-tube-DwAVGGtp.js +21 -0
- package/dist/test-tube-diagonal-Do74kAze.js +22 -0
- package/dist/test-tubes-C52EpWmi.js +33 -0
- package/dist/text-align-center-BkrBoBkR.js +22 -0
- package/dist/text-align-end-BqXXFHj9.js +22 -0
- package/dist/text-align-justify-Dz7iblNj.js +22 -0
- package/dist/text-align-start-BN-RLE01.js +22 -0
- package/dist/text-cursor-BlgdQovA.js +21 -0
- package/dist/text-cursor-input-BCbnITp2.js +29 -0
- package/dist/text-initial-Cm7148x6.js +30 -0
- package/dist/text-quote-DkiBOmuU.js +25 -0
- package/dist/text-search-swT8aGPX.js +31 -0
- package/dist/text-wrap-BZ4dzBa7.js +26 -0
- package/dist/theater-Dcb8V0RD.js +45 -0
- package/dist/thermometer-DR3d-RAp.js +11 -0
- package/dist/thermometer-snowflake-vGPxedVa.js +41 -0
- package/dist/thermometer-sun-YNlU1fFv.js +33 -0
- package/dist/thumbs-down-Dd2bCidK.js +14 -0
- package/dist/thumbs-up-kbHD2Llk.js +14 -0
- package/dist/tic-tac-toe-dmdj5h9-.js +45 -0
- package/dist/ticket-D3ayBeAW.js +25 -0
- package/dist/ticket-check-BbSNUg1n.js +14 -0
- package/dist/ticket-minus--M--pL1T.js +14 -0
- package/dist/ticket-percent-C1pO20zU.js +25 -0
- package/dist/ticket-plus-BktkMxtk.js +21 -0
- package/dist/ticket-slash-TjqBmMp4.js +14 -0
- package/dist/ticket-x-6O7r7SLG.js +21 -0
- package/dist/tickets-NEvpm_IU.js +33 -0
- package/dist/tickets-plane-D_yemUgc.js +41 -0
- package/dist/timeline-BwKZuBbk.js +41 -0
- package/dist/timer-BOFCym7B.js +29 -0
- package/dist/timer-off-yI3ug3FT.js +29 -0
- package/dist/timer-reset-BejZXEzJ.js +25 -0
- package/dist/toggle-left-C5kvRbGx.js +20 -0
- package/dist/toggle-right-ECFO7EEP.js +20 -0
- package/dist/toilet-CLU_rY52.js +14 -0
- package/dist/tool-case-CasCR_YK.js +25 -0
- package/dist/toolbox-3Y4a65sY.js +29 -0
- package/dist/toothbrush-BitBnjSG.js +14 -0
- package/dist/toothbrush-sparkles-BOzo954S.js +45 -0
- package/dist/tornado-CArZcJZ8.js +29 -0
- package/dist/torus-DiwAxcyr.js +20 -0
- package/dist/touchpad-CxXXkULE.js +25 -0
- package/dist/touchpad-off-BpySogJF.js +33 -0
- package/dist/towel-rack-Dl4ETq_Z.js +21 -0
- package/dist/tower-control-tdHxY9k2.js +37 -0
- package/dist/toy-brick-CK0vQuKG.js +25 -0
- package/dist/tractor-DUItEqFv.js +49 -0
- package/dist/traffic-cone-CbeVjgJ7.js +25 -0
- package/dist/trailer-CIOuhpA3.js +35 -0
- package/dist/train-front-BBNrjfgi.js +33 -0
- package/dist/train-front-tunnel-IV6c6wgm.js +37 -0
- package/dist/train-track-C1NszIPT.js +37 -0
- package/dist/tram-front-WmaHtIie.js +42 -0
- package/dist/transactions-BDYZi9FG.js +352 -0
- package/dist/transactions-QnXyjYWW.cjs +1 -0
- package/dist/transgender-BU9H61Tb.js +43 -0
- package/dist/trash-BVi1kccW.js +30 -0
- package/dist/trash-DAl9EQts.js +33 -0
- package/dist/trash-off-QTcJb8x_.js +41 -0
- package/dist/tree-deciduous-CpN1eyjW.js +14 -0
- package/dist/tree-palm-CSGZGtWK.js +26 -0
- package/dist/tree-pine-CGiqeBzl.js +14 -0
- package/dist/trees-BikPHpib.js +25 -0
- package/dist/trending-down-CMj9tBzn.js +14 -0
- package/dist/trending-up-down-DfM15zBU.js +25 -0
- package/dist/trending-up-tkOyk7sU.js +14 -0
- package/dist/triangle-C7ykq59Z.js +11 -0
- package/dist/triangle-alert-7cU2GPoH.js +22 -0
- package/dist/triangle-dashed-CXvae3X5.js +45 -0
- package/dist/triangle-right-C3JX0PDw.js +11 -0
- package/dist/triangles-centerline-dashed-horizontal-rx9s-ChM.js +34 -0
- package/dist/triangles-centerline-dashed-vertical-DVDSrFlX.js +34 -0
- package/dist/trophy-C-_reViI.js +33 -0
- package/dist/truck-C31foofp.js +33 -0
- package/dist/truck-electric-FiePFHEm.js +41 -0
- package/dist/tube-lotion-DR9Rzk8Y.js +21 -0
- package/dist/turkish-lira-BkK-eLt4.js +21 -0
- package/dist/turntable-DHRwq63j.js +31 -0
- package/dist/turtle-wc-Pb1z4.js +25 -0
- package/dist/tv-CwZQ5yXz.js +18 -0
- package/dist/tv-minimal-DO_eU4ji.js +19 -0
- package/dist/tv-minimal-play-BGLsJ_QG.js +25 -0
- package/dist/type-ClhacA5H.js +21 -0
- package/dist/type-outline-Bdul-xKN.js +11 -0
- package/dist/umbrella-CZra0-gh.js +21 -0
- package/dist/umbrella-off-BvZH4NYV.js +29 -0
- package/dist/underline-ROvfRRt3.js +17 -0
- package/dist/undo-2-Dqes55xw.js +14 -0
- package/dist/undo-BYD9JqYW.js +14 -0
- package/dist/undo-dot-DEJCRnhJ.js +23 -0
- package/dist/unfold-horizontal-CD-JqdyN.js +41 -0
- package/dist/unfold-vertical-Cuq4p66k.js +41 -0
- package/dist/ungroup-CfTkt7IZ.js +22 -0
- package/dist/university-D4qP3nxg.js +40 -0
- package/dist/unlink-2-DtCyoCzf.js +11 -0
- package/dist/unlink-CIgy9wjy.js +45 -0
- package/dist/unplug-9HBfR_ai.js +33 -0
- package/dist/upload-xppgk63N.js +21 -0
- package/dist/usb-BpGqIW-2.js +41 -0
- package/dist/usb-c-port-iHlIUDqu.js +18 -0
- package/dist/user-CR9HYLRW.js +16 -0
- package/dist/user-check-CU6n-22o.js +23 -0
- package/dist/user-cog-eMDF8vke.js +57 -0
- package/dist/user-group-JnRo4YUO.js +39 -0
- package/dist/user-key-BQCLoPT5.js +33 -0
- package/dist/user-lock-B_a4hP7V.js +31 -0
- package/dist/user-minus-DCZ6r-v4.js +26 -0
- package/dist/user-pen-Dl9jFzax.js +23 -0
- package/dist/user-plus-Mp_KT05u.js +33 -0
- package/dist/user-round-arrow-left-BWjqqaVa.js +27 -0
- package/dist/user-round-check-D6fz90m2.js +24 -0
- package/dist/user-round-cog-BwFf38rJ.js +58 -0
- package/dist/user-round-group-EDQ8aYgB.js +39 -0
- package/dist/user-round-key-D5i_ES9G.js +33 -0
- package/dist/user-round-minus-C7MZ7yOn.js +24 -0
- package/dist/user-round-pen-PuLoVGgD.js +23 -0
- package/dist/user-round-plus-2uJWJxc8.js +28 -0
- package/dist/user-round-search-C4T0n-WW.js +29 -0
- package/dist/user-round-x-CprnylJk.js +28 -0
- package/dist/user-round-zXE36Nv0.js +17 -0
- package/dist/user-search-CX_5eLri.js +29 -0
- package/dist/user-shield-aCF1KbId.js +23 -0
- package/dist/user-star-B5Nha7Nt.js +23 -0
- package/dist/user-x-CbH-LVL3.js +33 -0
- package/dist/users-D2stk-SU.js +27 -0
- package/dist/users-round-CTE3-cd9.js +24 -0
- package/dist/utensils-DpvF_jAP.js +22 -0
- package/dist/utensils-crossed-i9u5NTSc.js +26 -0
- package/dist/utility-pole-BtuouXdc.js +37 -0
- package/dist/van-3I8dpY25.js +33 -0
- package/dist/variable-BlTDdVbo.js +31 -0
- package/dist/vault-DZgIcAGN.js +67 -0
- package/dist/vector-polygon-CiAqJoRi.js +49 -0
- package/dist/vector-square-Ba1KreNl.js +49 -0
- package/dist/vegan-FK-_HHQz.js +21 -0
- package/dist/venetian-mask-ZZMB0r86.js +21 -0
- package/dist/venus-CXFS55F4.js +23 -0
- package/dist/venus-and-mars-BafeFXJo.js +31 -0
- package/dist/vibrate-GFtRKXvB.js +25 -0
- package/dist/vibrate-off-BUlK_AKk.js +32 -0
- package/dist/video-XzapChCE.js +18 -0
- package/dist/video-off-B3FIpWWn.js +21 -0
- package/dist/videotape-Czhx9Lcj.js +37 -0
- package/dist/view-BcfxOTHm.js +27 -0
- package/dist/virus-Bgg99_1m.js +91 -0
- package/dist/virus-off-BxYiIyUv.js +89 -0
- package/dist/vite/validate.d.ts +92 -0
- package/dist/vite.cjs.js +1 -1
- package/dist/vite.es.js +1 -1
- package/dist/voicemail-DsGyaP7n.js +28 -0
- package/dist/volleyball-DpFNh9_K.js +35 -0
- package/dist/volume-1-B0CTbKuM.js +14 -0
- package/dist/volume-2-vJOWil0a.js +21 -0
- package/dist/volume-BeXA0SiE.js +11 -0
- package/dist/volume-off-BfrwjX4Y.js +29 -0
- package/dist/volume-x-Bsx8kG1J.js +21 -0
- package/dist/vote-hkIhwIGv.js +21 -0
- package/dist/wallet-DU9rfUr2.js +14 -0
- package/dist/wallet-cards-BzMQVg-1.js +25 -0
- package/dist/wallet-minimal-CoAKYD6o.js +15 -0
- package/dist/wallpaper-CZ3fys_3.js +35 -0
- package/dist/wand-Bkz9Ix9T.js +45 -0
- package/dist/wand-sparkles-CPYx3EEu.js +42 -0
- package/dist/warehouse-BVV8O5tf.js +25 -0
- package/dist/washing-machine-CHJ-DYW5.js +35 -0
- package/dist/watch-CpRUcXNK.js +27 -0
- package/dist/waves-arrow-down-D079W_dr.js +25 -0
- package/dist/waves-arrow-up-CR2CtQ2b.js +25 -0
- package/dist/waves-horizontal-D0v-alQJ.js +22 -0
- package/dist/waves-ladder-lblU7uvP.js +29 -0
- package/dist/waves-vertical-DV2O7GJ2.js +21 -0
- package/dist/waypoints-EHu31yIF.js +45 -0
- package/dist/webcam-D80YEfO2.js +29 -0
- package/dist/webcam-off-D8rtFGYQ.js +37 -0
- package/dist/webhook-BeafIIEV.js +21 -0
- package/dist/webhook-off-CyMPb_IL.js +37 -0
- package/dist/weight-BdRkAftN.js +16 -0
- package/dist/weight-tilde-Dy7lQNf8.js +23 -0
- package/dist/wheat-CWj61K1A.js +41 -0
- package/dist/wheat-off-CTZQgAbq.js +52 -0
- package/dist/whistle-Bv3Sd3cA.js +14 -0
- package/dist/whole-word-BS8GjAkF.js +33 -0
- package/dist/wifi-C2BqmFpS.js +25 -0
- package/dist/wifi-cog-C_uOBOwL.js +59 -0
- package/dist/wifi-high-DBFzb0q6.js +21 -0
- package/dist/wifi-low-z-djimDo.js +14 -0
- package/dist/wifi-off-D8iY0n7j.js +37 -0
- package/dist/wifi-pen-BRXIwh8u.js +25 -0
- package/dist/wifi-sync-tCkd1p6A.js +37 -0
- package/dist/wifi-zero-LA1cwBn8.js +11 -0
- package/dist/wind-CS08CrKJ.js +21 -0
- package/dist/wind-arrow-down-jpHFgbzE.js +25 -0
- package/dist/wine-CLCUvEyO.js +25 -0
- package/dist/wine-off-ZL9CHVT4.js +32 -0
- package/dist/workflow-CowcFoUr.js +29 -0
- package/dist/worm-B0zUIHyj.js +21 -0
- package/dist/wrench-Dj8eZBwN.js +11 -0
- package/dist/wrench-off-ZtCZivuZ.js +21 -0
- package/dist/x-Bkygdt4T.cjs +1 -0
- package/dist/x-DDYjJEsn.js +17 -0
- package/dist/x-RKoQXejm.js +14 -0
- package/dist/x-line-top-BD2YdB-v.js +21 -0
- 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 +10829 -10593
- package/dist/zap-CxzDGK1f.js +11 -0
- package/dist/zap-off-CVJ8-GTE.js +25 -0
- package/dist/zodiac-aquarius-BurKGfpx.js +14 -0
- package/dist/zodiac-aries-CMJXgLWO.js +14 -0
- package/dist/zodiac-cancer-Bq3_Dm5E.js +29 -0
- package/dist/zodiac-capricorn-BCTy-RDZ.js +23 -0
- package/dist/zodiac-gemini-C_YzeLpT.js +25 -0
- package/dist/zodiac-leo-Pr7DW2Iw.js +16 -0
- package/dist/zodiac-libra-DU86XGQw.js +14 -0
- package/dist/zodiac-ophiuchus-B4Lf1n1r.js +14 -0
- package/dist/zodiac-pisces-BQc8-Gtm.js +21 -0
- package/dist/zodiac-sagittarius-DcNebmR6.js +21 -0
- package/dist/zodiac-scorpio-CNymDIdT.js +25 -0
- package/dist/zodiac-taurus-DEdor_VR.js +16 -0
- package/dist/zodiac-virgo-CuNYWq--.js +25 -0
- package/dist/zoom-in-zmjMuEVq.js +36 -0
- package/dist/zoom-out-LfFbMfKI.js +29 -0
- package/package.json +1 -1
- package/dist/AddressField-BMjPB_bf.js +0 -383
- package/dist/AddressField-BeRBlopK.cjs +0 -1
- package/dist/Assets-B7pwb6Um.cjs +0 -1
- package/dist/Assets-BlwG7XVB.js +0 -307
- package/dist/Attachments-BodAunNv.cjs +0 -1
- package/dist/Attachments-BqVx8DU7.js +0 -46
- package/dist/Billing-CMqctYN0.js +0 -380
- package/dist/Billing-ChKtBPGu.cjs +0 -1
- package/dist/BookingCalendar-ClCN9_5s.cjs +0 -1
- package/dist/BookingCalendar-Ordah-8q.js +0 -365
- package/dist/Button-BXl8leQ5.cjs +0 -1
- package/dist/Button-Bp0ZvE-c.js +0 -48
- package/dist/ConfirmModal-BgztMPdR.cjs +0 -1
- package/dist/ConfirmModal-CPFKaGML.js +0 -113
- package/dist/ContactPopup-BlwURMg3.js +0 -1929
- package/dist/ContactPopup-DFz_648S.cjs +0 -2
- package/dist/CopyLink-OStBnkQy.cjs +0 -1
- package/dist/CopyLink-Ro3Pbs8U.js +0 -43
- package/dist/DashboardNav-MLvb0WtR.cjs +0 -1
- package/dist/DashboardNav-_edWrBAI.js +0 -1254
- package/dist/EmailAdmin-B7QmcKWI.js +0 -1116
- package/dist/EmailAdmin-CWWEiw1P.cjs +0 -1
- package/dist/EmailParts-BE3FSWg_.cjs +0 -1
- package/dist/EmailParts-BrPCgip_.js +0 -273
- package/dist/EventCard-BFte-u8o.cjs +0 -1
- package/dist/EventCard-BX4odYsl.js +0 -130
- package/dist/FileViewerPopup-DCc9_e6N.js +0 -1174
- package/dist/FileViewerPopup-DkG-wXJJ.cjs +0 -3
- package/dist/FormNote-B3QcyhZ4.js +0 -72
- package/dist/FormNote-HkXhcfQx.cjs +0 -1
- package/dist/FormsAdmin-E7gDk7LA.js +0 -868
- package/dist/FormsAdmin-w0wf7OSC.cjs +0 -1
- package/dist/Inbox-B7Fbafns.cjs +0 -3
- package/dist/Inbox-ChP8dd3G.js +0 -1025
- package/dist/Loader-BD8ge3_3.js +0 -32
- package/dist/Loader-Cb8OOXbo.cjs +0 -1
- package/dist/ManagePlanButton-Cdm0mjFe.cjs +0 -1
- package/dist/ManagePlanButton-YL9kNdtv.js +0 -29
- package/dist/MyBookings-CF3L28-M.cjs +0 -1
- package/dist/MyBookings-Pc918hyn.js +0 -120
- package/dist/NeedsService-CqT44fV2.cjs +0 -1
- package/dist/NeedsService-CrUkQhZ8.js +0 -74
- package/dist/PageTitle-C4mlWvv-.js +0 -1777
- package/dist/PageTitle-DnKubvLh.cjs +0 -6
- package/dist/PagesAdmin-BBKXpAnO.cjs +0 -42
- package/dist/PagesAdmin-CkyRUY-u.cjs +0 -1
- package/dist/PagesAdmin-CtnoHS5M.js +0 -3
- package/dist/PagesAdmin-aC4U9cPD.js +0 -6110
- package/dist/PaymentsAdmin-BinwKhYN.cjs +0 -2
- package/dist/PaymentsAdmin-CGpqov8d.js +0 -1460
- package/dist/PhoneInputField-BwyWW9l1.cjs +0 -1
- package/dist/PhoneInputField-D6wm-gu1.js +0 -131
- package/dist/PhoneInputField-DrzFHTOL.cjs +0 -1
- package/dist/Popup-BHi8XhD-.js +0 -142
- package/dist/Popup-BNscbiKZ.cjs +0 -1
- package/dist/ProviderMark-DMBSTKlE.js +0 -109
- package/dist/ProviderMark-D__7RLMw.cjs +0 -1
- package/dist/PublishApp-CZ5IaLM4.js +0 -595
- package/dist/PublishApp-LC1xnbSp.cjs +0 -2
- package/dist/Said-Cz3mjKHH.cjs +0 -1
- package/dist/Said-DYk8vfAy.js +0 -113
- package/dist/ScheduleAdmin-BUBN6MHw.cjs +0 -1
- package/dist/ScheduleAdmin-WY6KDJo7.js +0 -1814
- package/dist/SchedulePicker-D7cCnidi.js +0 -114
- package/dist/SchedulePicker-DlzYJpL6.cjs +0 -1
- package/dist/Setup-Bn_27tcY.cjs +0 -1554
- package/dist/Setup-YJBZ2zMa.js +0 -852
- package/dist/SetupPayments-BIHsIUt9.cjs +0 -1
- package/dist/SetupPayments-SLlxIe69.js +0 -365
- package/dist/SignInAdmin-BCAguHng.js +0 -821
- package/dist/SignInAdmin-i54MB8_N.cjs +0 -4
- package/dist/SupportBar-B2EwIIWP.js +0 -259
- package/dist/SupportBar-D0GTezeq.cjs +0 -1
- package/dist/SystemTabContent-6s6QCmqe.js +0 -37
- package/dist/SystemTabContent-BX4lLz9b.cjs +0 -1
- package/dist/TemplateDrive-BMuulB5W.js +0 -1268
- package/dist/TemplateDrive-DeYYTiyH.cjs +0 -1
- package/dist/ThemeAdmin-BU8IC_I8.cjs +0 -3
- package/dist/ThemeAdmin-BxBD1QwL.js +0 -2
- package/dist/ThemeAdmin-CWTR5bKY.js +0 -269
- package/dist/ThemeAdmin-C_sDuc6v.cjs +0 -1
- package/dist/TimeZoneField-6U4vMw0A.cjs +0 -11
- package/dist/TimeZoneField-Bio6nwvQ.js +0 -10733
- package/dist/TransactionsAdmin-DA5hjH-W.cjs +0 -1
- package/dist/TransactionsAdmin-DeFCY-Tx.js +0 -718
- package/dist/Trouble--mHT47GB.js +0 -249
- package/dist/Trouble-DblHsJ7H.cjs +0 -1
- package/dist/Users-D1z4HnpZ.js +0 -996
- package/dist/Users-OoLl2gL7.cjs +0 -1
- package/dist/VideoPlayer-BDiwRchv.js +0 -658
- package/dist/VideoPlayer-DV53Zvu7.cjs +0 -1
- package/dist/a-arrow-down-Bg3WAiiq.js +0 -25
- package/dist/a-arrow-up-CUP8hxrM.js +0 -25
- package/dist/a-large-small-CoX3oyZh.js +0 -25
- package/dist/accessibility-DrSOSI96.js +0 -31
- package/dist/activity-DfYPRT_A.js +0 -11
- package/dist/ad-CXOQ41qJ.js +0 -29
- package/dist/aiModels-DbM5dAAv.js +0 -229
- package/dist/aiModels-DrELbQBI.cjs +0 -1
- package/dist/air-vent-n4QGRUkR.js +0 -25
- package/dist/airplay-LsOKSVpW.js +0 -14
- package/dist/alarm-clock-Jafwx1VN.js +0 -35
- package/dist/alarm-clock-check-zcX5o8ir.js +0 -36
- package/dist/alarm-clock-minus-BRV932YP.js +0 -36
- package/dist/alarm-clock-off-VBargebJ.js +0 -33
- package/dist/alarm-clock-plus-RdZZGA9i.js +0 -40
- package/dist/alarm-smoke-D0M5OduG.js +0 -29
- package/dist/align-center-horizontal-DcR0lz4E.js +0 -29
- package/dist/align-center-vertical-MWul-_B5.js +0 -29
- package/dist/align-end-horizontal-C8_Uu_FD.js +0 -29
- package/dist/align-end-vertical-CvJInU1i.js +0 -29
- package/dist/align-horizontal-distribute-center-DJn33bTS.js +0 -41
- package/dist/align-horizontal-distribute-end-BYGeghln.js +0 -33
- package/dist/align-horizontal-distribute-start-CFIIKovo.js +0 -33
- package/dist/align-horizontal-justify-center-Dq1n4T22.js +0 -29
- package/dist/align-horizontal-justify-end-3kCCKT2M.js +0 -29
- package/dist/align-horizontal-justify-start-Ds3QmkJc.js +0 -29
- package/dist/align-horizontal-space-around-DtFrg0jh.js +0 -25
- package/dist/align-horizontal-space-between-B2r3BC2F.js +0 -33
- package/dist/align-start-horizontal-CFyamr_Q.js +0 -29
- package/dist/align-start-vertical-BNxrfs1C.js +0 -29
- package/dist/align-vertical-distribute-center-DfTmUh49.js +0 -41
- package/dist/align-vertical-distribute-end-D09-dPrE.js +0 -33
- package/dist/align-vertical-distribute-start-3PqVOi-6.js +0 -33
- package/dist/align-vertical-justify-center-CntPbIhR.js +0 -29
- package/dist/align-vertical-justify-end-DSVLkex1.js +0 -29
- package/dist/align-vertical-justify-start-CbZ6hlwy.js +0 -29
- package/dist/align-vertical-space-around-DS7DSHk4.js +0 -25
- package/dist/align-vertical-space-between-BqM9za3F.js +0 -33
- package/dist/ambulance-B7mpwxpp.js +0 -41
- package/dist/ampersand-cTeKXSOR.js +0 -14
- package/dist/ampersands-CtOyKMX-.js +0 -14
- package/dist/amphora-y6lSv7GP.js +0 -33
- package/dist/anchor-CsxCw4pP.js +0 -27
- package/dist/angle-DAaoJ5BY.js +0 -14
- package/dist/antenna-DtV1iYsy.js +0 -33
- package/dist/anvil-DP9fW5OQ.js +0 -29
- package/dist/aperture-tumUT7o1.js +0 -39
- package/dist/app-window-Dqzh3kxI.js +0 -29
- package/dist/app-window-mac-vvd0RgSk.js +0 -29
- package/dist/appIcons-Brd_fsTo.cjs +0 -130
- package/dist/appIcons-D7EhQvMa.js +0 -3495
- package/dist/apple-BaSRzspd.js +0 -14
- package/dist/archive-CvfU2bmY.js +0 -25
- package/dist/archive-restore-UW_y2yAC.js +0 -33
- package/dist/archive-x-6IzUExNN.js +0 -29
- package/dist/armchair-Cg2ngqGg.js +0 -25
- package/dist/arrivalRoads-Bj7kRpIj.cjs +0 -0
- package/dist/arrivalRoads-b_Llpw-8.js +0 -0
- package/dist/arrow-big-down-CfXo6ETt.js +0 -11
- package/dist/arrow-big-down-dash-BFyC3oqe.js +0 -14
- package/dist/arrow-big-left-dash-BA7Ea23u.js +0 -14
- package/dist/arrow-big-left-hfOQgb3C.js +0 -11
- package/dist/arrow-big-right-CMmrCBr5.js +0 -11
- package/dist/arrow-big-right-dash-22eNbGki.js +0 -14
- package/dist/arrow-big-up-BMnlUZ_I.js +0 -11
- package/dist/arrow-big-up-dash-DMA42dZE.js +0 -14
- package/dist/arrow-down-0-1-Dyg3YBWa.js +0 -34
- package/dist/arrow-down-1-0-BvX8hGh2.js +0 -34
- package/dist/arrow-down-DECx2MG4.js +0 -14
- package/dist/arrow-down-a-z-Bqbbkid_.js +0 -30
- package/dist/arrow-down-from-line-BRx91Tml.js +0 -21
- package/dist/arrow-down-left-VlTFd18N.js +0 -14
- package/dist/arrow-down-narrow-wide-QzsbTxCY.js +0 -29
- package/dist/arrow-down-right-q_YwXC3M.js +0 -14
- package/dist/arrow-down-to-dot-CIQWpEP_.js +0 -23
- package/dist/arrow-down-to-line-B1grdsr6.js +0 -21
- package/dist/arrow-down-up-W1wAo4ID.js +0 -25
- package/dist/arrow-down-wide-narrow-CJ0ZrNIa.js +0 -30
- package/dist/arrow-down-z-a-D6cm-4l8.js +0 -30
- package/dist/arrow-left-0aLQDHuG.js +0 -14
- package/dist/arrow-left-BvmW5xRI.js +0 -17
- package/dist/arrow-left-from-line-DuhkwKAb.js +0 -21
- package/dist/arrow-left-right-CA1wqV5L.js +0 -25
- package/dist/arrow-left-to-line-B8oxd8vX.js +0 -21
- package/dist/arrow-right-CGvbxks5.cjs +0 -1
- package/dist/arrow-right-DVrbYwJD.js +0 -17
- package/dist/arrow-right-from-line-Dr99hWaq.js +0 -21
- package/dist/arrow-right-left-CgNczDWy.js +0 -25
- package/dist/arrow-right-to-line-B9RvKscI.js +0 -21
- package/dist/arrow-right-wrWVCo7C.js +0 -14
- package/dist/arrow-up-0-1-Cx9vnz1i.js +0 -34
- package/dist/arrow-up-1-0-ervfarhi.js +0 -34
- package/dist/arrow-up-MVTeSuaV.js +0 -14
- package/dist/arrow-up-a-z-CnNdvktd.js +0 -30
- package/dist/arrow-up-down-u_99vRgN.js +0 -25
- package/dist/arrow-up-from-dot-hxmOsceF.js +0 -23
- package/dist/arrow-up-from-line-CWtZyrLB.js +0 -21
- package/dist/arrow-up-left-Bz8KTdDE.js +0 -14
- package/dist/arrow-up-narrow-wide-DdIH2sUi.js +0 -30
- package/dist/arrow-up-right-CaQM0k0a.js +0 -14
- package/dist/arrow-up-to-line-BGNlCBc4.js +0 -21
- package/dist/arrow-up-wide-narrow-BB34c3kc.js +0 -29
- package/dist/arrow-up-z-a-DAUIpfy-.js +0 -30
- package/dist/arrows-up-from-line-1IYyaA2O.js +0 -29
- package/dist/asterisk-C1BAEDcH.js +0 -21
- package/dist/astroid-XNcv-1pm.js +0 -11
- package/dist/at-sign-CyCfT007.js +0 -16
- package/dist/atom-DMNISYGQ.js +0 -23
- package/dist/audio-lines-Bi2AR15J.js +0 -33
- package/dist/audio-lines-off-DwqH2Utj.js +0 -45
- package/dist/audio-lines-x-CDJx8v5y.js +0 -41
- package/dist/audio-waveform-DckAcieN.js +0 -11
- package/dist/award-TIW81CAp.js +0 -16
- package/dist/axe-Chwj87nG.js +0 -14
- package/dist/axis-3d-ZoDEJDrH.js +0 -26
- package/dist/baby-D6QV-wDA.js +0 -25
- package/dist/backpack-BVmWK8v0.js +0 -29
- package/dist/badge-alert-BrPp6gWJ.js +0 -27
- package/dist/badge-cent-ojlYTi0j.js +0 -21
- package/dist/badge-check-D7gaMz8B.js +0 -15
- package/dist/badge-dollar-sign-Dk58aTmz.js +0 -21
- package/dist/badge-euro-BuPx18a9.js +0 -21
- package/dist/badge-hqZ_ryNv.js +0 -11
- package/dist/badge-indian-rupee-D4pEjDXZ.js +0 -25
- package/dist/badge-info-BaaPgn_B.js +0 -27
- package/dist/badge-japanese-yen-CX3CFKM1.js +0 -29
- package/dist/badge-minus-DA1jENLR.js +0 -17
- package/dist/badge-percent-6lCh0SC2.js +0 -25
- package/dist/badge-plus-C1bQ10uA.js +0 -27
- package/dist/badge-pound-sterling-Cq27x0Fe.js +0 -25
- package/dist/badge-question-mark-DyVm6_Db.js +0 -25
- package/dist/badge-russian-ruble-Cj4sl43m.js +0 -21
- package/dist/badge-swiss-franc-DSxKR9-q.js +0 -25
- package/dist/badge-turkish-lira-B53fGHYf.js +0 -21
- package/dist/badge-x-CyT2R6Pt.js +0 -27
- package/dist/baggage-claim-COHIBofn.js +0 -37
- package/dist/bake-7RHnme0u.js +0 -10289
- package/dist/bake-BGAjoH52.cjs +0 -38
- package/dist/balloon-BybhIDCs.js +0 -21
- package/dist/ban-B__MLvpq.js +0 -16
- package/dist/banana-ARttffkN.js +0 -14
- package/dist/bandage-XDQwsgiD.js +0 -41
- package/dist/banknote-BUgTn7t8.js +0 -27
- package/dist/banknote-arrow-down-CrXbe0FQ.js +0 -35
- package/dist/banknote-arrow-up-CoEcVmpw.js +0 -35
- package/dist/banknote-check-DKYhnJG5.js +0 -31
- package/dist/banknote-x-C_5JytlT.js +0 -35
- package/dist/barcode-CYoRbqnq.js +0 -29
- package/dist/barrel-PdV8KC7z.js +0 -29
- package/dist/baseline-D5N2yX6Q.js +0 -21
- package/dist/bath-CpdHO0Zp.js +0 -29
- package/dist/battery-Dm0esLbE.js +0 -18
- package/dist/battery-charging-DG5ARPiM.js +0 -25
- package/dist/battery-full-Ba-3L4M_.js +0 -33
- package/dist/battery-low-CBuGYK27.js +0 -25
- package/dist/battery-medium-DoaOPIyI.js +0 -29
- package/dist/battery-plus-CFuVJskB.js +0 -29
- package/dist/battery-warning-jH3FLStO.js +0 -29
- package/dist/beaker-DcXemj7O.js +0 -21
- package/dist/bean-casiyOgH.js +0 -14
- package/dist/bean-off-WihP78Ou.js +0 -28
- package/dist/bed-CcFPfNXU.js +0 -25
- package/dist/bed-double-DoZuErVL.js +0 -25
- package/dist/bed-single-C1-q67_h.js +0 -21
- package/dist/beef-off-Dw58U0jc.js +0 -33
- package/dist/beef-xD8Tnh_d.js +0 -23
- package/dist/beer-BId-E3rr.js +0 -29
- package/dist/beer-off-nls5l_W9.js +0 -41
- package/dist/bell-CxCYUCJl.js +0 -14
- package/dist/bell-check-Cy45BTs1.js +0 -25
- package/dist/bell-dot-DZy5aJem.js +0 -23
- package/dist/bell-electric-CHP4TFcF.js +0 -41
- package/dist/bell-minus-C1_xYRJP.js +0 -21
- package/dist/bell-off-DDenZFwk.js +0 -25
- package/dist/bell-plus-CNXwKBrx.js +0 -25
- package/dist/bell-ring-D6LiUxT0.js +0 -25
- package/dist/between-horizontal-end-wvQLF-Dn.js +0 -30
- package/dist/between-horizontal-start-CJfUl4bo.js +0 -30
- package/dist/between-vertical-end-tfFsuLih.js +0 -29
- package/dist/between-vertical-start-DfHFBwC8.js +0 -29
- package/dist/biceps-flexed-BZ2wKA0j.js +0 -21
- package/dist/bike-0CaYizbf.js +0 -31
- package/dist/binary-C4PbmNqr.js +0 -41
- package/dist/binoculars-D2BNT4Cc.js +0 -33
- package/dist/biohazard-C8Z_kgMD.js +0 -51
- package/dist/bird-CHSDg2Ik.js +0 -33
- package/dist/birdhouse-DCgyv8Z3.js +0 -35
- package/dist/bitcoin-CzfsDq09.js +0 -11
- package/dist/blend-DL22GRuY.js +0 -18
- package/dist/blender-Cie7jawS.js +0 -33
- package/dist/blinds-zAk_pWLi.js +0 -39
- package/dist/blocks-DlrKbyms.js +0 -18
- package/dist/bluetooth-DbaIEOrt.js +0 -11
- package/dist/bluetooth-connected-BKt2lWjL.js +0 -27
- package/dist/bluetooth-off-BVVTmPKO.js +0 -21
- package/dist/bluetooth-searching-BmsIAfAd.js +0 -21
- package/dist/bold-B0BaQ0gV.js +0 -11
- package/dist/bolt-DjIi9Unc.js +0 -16
- package/dist/bomb-BzNH7fXZ.js +0 -23
- package/dist/bone-fracture-CsuXPxmy.js +0 -33
- package/dist/bone-zJQSBvct.js +0 -11
- package/dist/book-H32XulnJ.js +0 -11
- package/dist/book-a-d1RCBAIj.js +0 -21
- package/dist/book-alert-BGZXz8i9.js +0 -21
- package/dist/book-audio-CJmdShTM.js +0 -25
- package/dist/book-bookmark-BbCYPCkD.js +0 -15
- package/dist/book-check-OQDafWw8.js +0 -14
- package/dist/book-copy-DIpsrhvE.js +0 -21
- package/dist/book-dashed-CfXTH96q.js +0 -54
- package/dist/book-down-ppqsbDSG.js +0 -21
- package/dist/book-headphones-6EQ3psC3.js +0 -29
- package/dist/book-heart-D-Ucn-Y3.js +0 -14
- package/dist/book-image-Cb3kjGXi.js +0 -23
- package/dist/book-key-DJI1DXHp.js +0 -31
- package/dist/book-lock-BQcoHkUr.js +0 -29
- package/dist/book-minus-UsVADg64.js +0 -14
- package/dist/book-open-Cuf7cmlP.js +0 -14
- package/dist/book-open-check-D_veRDP0.js +0 -21
- package/dist/book-open-text-BYLuuB2W.js +0 -33
- package/dist/book-plus-MBMFVltm.js +0 -21
- package/dist/book-search-DFqpCOlS.js +0 -27
- package/dist/book-text-DZmgFXsI.js +0 -21
- package/dist/book-type-BCbUgviu.js +0 -25
- package/dist/book-up-2-B4YuEIJr.js +0 -29
- package/dist/book-up-BkTBSEbG.js +0 -21
- package/dist/book-user-D6K1cJuY.js +0 -23
- package/dist/book-x-Cxpd-uSf.js +0 -21
- package/dist/bookingHold-Bmvef0WV.cjs +0 -1
- package/dist/bookingHold-Dol55ZRi.js +0 -42
- package/dist/bookingPages-BZtXKUGp.js +0 -77
- package/dist/bookingPages-B_GukoZw.cjs +0 -1
- package/dist/bookmark-Dij59mY6.js +0 -11
- package/dist/bookmark-check-B8I7T0sF.js +0 -14
- package/dist/bookmark-minus-DvyFmHdi.js +0 -14
- package/dist/bookmark-off-DST2RII2.js +0 -21
- package/dist/bookmark-plus-CvWPhba-.js +0 -21
- package/dist/bookmark-x-UVYc9w73.js +0 -21
- package/dist/boom-box-DWiJdDm3.js +0 -45
- package/dist/bot-K4Iv9BZe.js +0 -37
- package/dist/bot-message-square-BDXeCmLH.js +0 -33
- package/dist/bot-off-CBiBeyKN.js +0 -37
- package/dist/bottle-wine--QR6KkKD.js +0 -14
- package/dist/bow-arrow-BnZdXWLu.js +0 -29
- package/dist/box-mT23J_xt.js +0 -21
- package/dist/boxes-BmcrqL0V.js +0 -60
- package/dist/boxes-Bwk6j-yM.js +0 -57
- package/dist/boxes-CRb7Zwsw.cjs +0 -1
- package/dist/braces-C0gSb4nJ.js +0 -15
- package/dist/brackets-BL2geEDn.js +0 -14
- package/dist/brain-B781ffjM.js +0 -41
- package/dist/brain-circuit-CFKmhD7m.js +0 -69
- package/dist/brain-cog-D2ZEfUwi.js +0 -71
- package/dist/brick-wall-BVm14cGb.js +0 -45
- package/dist/brick-wall-fire-BoXLFrQv.js +0 -37
- package/dist/brick-wall-shield-D3pDKVdL.js +0 -41
- package/dist/bridge-Y0HHb0Kx.js +0 -33
- package/dist/briefcase-C72Kb-Gy.js +0 -18
- package/dist/briefcase-business-CIsz2YK-.js +0 -29
- package/dist/briefcase-conveyor-belt-CUO95von.js +0 -41
- package/dist/briefcase-medical-Ckg7E6XC.js +0 -37
- package/dist/bring-to-front-CJ7fK07Z.js +0 -25
- package/dist/broccoli-CsNbwOOO.js +0 -25
- package/dist/broom-CTf5PDct.js +0 -25
- package/dist/broom-sparkles-DE6oSPyx.js +0 -49
- package/dist/brush-DozauzjH.js +0 -21
- package/dist/brush-cleaning-C58LNIqK.js +0 -25
- package/dist/bubbles-ykBd5siS.js +0 -31
- package/dist/bug-CTTCLXPc.js +0 -53
- package/dist/bug-off-mA2JbNwy.js +0 -57
- package/dist/bug-play-CuoKb5tI.js +0 -45
- package/dist/building-DmqrxXGu.js +0 -57
- package/dist/building-complex-Dhypus1w.js +0 -30
- package/dist/building-complex-plus-COtzdtl9.js +0 -41
- package/dist/bus-CoAuDMlV.js +0 -41
- package/dist/bus-front-C8LqWwme.js +0 -49
- package/dist/cable-Bf79Ubyg.js +0 -37
- package/dist/cable-car-BOJ8LVoC.js +0 -45
- package/dist/cake-CD96JaTJ.js +0 -45
- package/dist/cake-slice-CCqH7h9R.js +0 -27
- package/dist/calculator-ylrdl1vw.js +0 -59
- package/dist/calendar-1-0_Ezo4aE.js +0 -33
- package/dist/calendar-C5GT7eEA.js +0 -29
- package/dist/calendar-arrow-down-xvjD6clP.js +0 -33
- package/dist/calendar-arrow-up-D1Rw7DUC.js +0 -33
- package/dist/calendar-check-2-IzSmj8Gj.js +0 -53
- package/dist/calendar-check-CAaLQ5T3.js +0 -33
- package/dist/calendar-chevrons-right-CzDOBpUV.js +0 -33
- package/dist/calendar-clock-CpKfIWcb.cjs +0 -1
- package/dist/calendar-clock-DBggOjsk.js +0 -38
- package/dist/calendar-clock-DHPR_dNx.js +0 -35
- package/dist/calendar-cog-CmEFQRCD.js +0 -63
- package/dist/calendar-days-Bjy_Kqat.js +0 -53
- package/dist/calendar-fold-BuzcdBfm.js +0 -25
- package/dist/calendar-heart-C7Lq6F4V.js +0 -29
- package/dist/calendar-minus-2-DZiSqzyL.js +0 -33
- package/dist/calendar-minus-lVQQ_rba.js +0 -29
- package/dist/calendar-off-D0zqKVOm.js +0 -33
- package/dist/calendar-plus-0ImzyEg8.js +0 -33
- package/dist/calendar-plus-2-BW4N6h2Z.js +0 -37
- package/dist/calendar-range-BY3P-koo.js +0 -45
- package/dist/calendar-search-BtoN7nHE.js +0 -35
- package/dist/calendar-sync-DzTYtzL4.js +0 -41
- package/dist/calendar-x-2-CeX6Qce5.js +0 -33
- package/dist/calendar-x-D0x0rQ04.js +0 -37
- package/dist/calendars-D4cfUjsT.js +0 -37
- package/dist/camera-BVkRpDCu.js +0 -16
- package/dist/camera-off-CJdt3N0L.js +0 -25
- package/dist/can-DEIutv43.js +0 -25
- package/dist/can-soda-DJUAGryt.js +0 -33
- package/dist/candy-D0esauSj.js +0 -29
- package/dist/candy-cane-BRRqBrai.js +0 -29
- package/dist/candy-off-JeX7_1XM.js +0 -37
- package/dist/cannabis-BkxfE-Xq.js +0 -14
- package/dist/cannabis-off-qBo1pdUx.js +0 -33
- package/dist/captions-CLJRgUtb.js +0 -20
- package/dist/captions-off-3pvwVENo.js +0 -33
- package/dist/car-L4Tmzd2y.js +0 -29
- package/dist/car-battery-Cv_4Y1Sp.js +0 -37
- package/dist/car-front-BOVZrlja.js +0 -37
- package/dist/car-taxi-front-C-qJpjCb.js +0 -41
- package/dist/caravan-DYDMDRQD.js +0 -27
- package/dist/card-sim-CKggYbnN.js +0 -29
- package/dist/carrot-B5vt-NVN.js +0 -21
- package/dist/carton-ZOjU60un.js +0 -14
- package/dist/carton-off-BAy70_Z_.js +0 -33
- package/dist/case-lower-DWn05uzw.js +0 -29
- package/dist/case-sensitive-Co15TGYT.js +0 -27
- package/dist/case-upper-j5VzQsNW.js +0 -21
- package/dist/cassette-tape-_im6cFoJ.js +0 -37
- package/dist/cast-CMk3qEhg.js +0 -28
- package/dist/castle-BXNxkdDK.js +0 -41
- package/dist/cat-DWD9Zwy0.js +0 -25
- package/dist/cctv-BiZdd0bf.js +0 -29
- package/dist/cctv-off-2YwtkSuz.js +0 -33
- package/dist/chart-area-BcocWRyS.js +0 -15
- package/dist/chart-bar-YlUieWJe.js +0 -26
- package/dist/chart-bar-big-DtL9Cknj.js +0 -30
- package/dist/chart-bar-decreasing-ryEOd6Mx.js +0 -25
- package/dist/chart-bar-increasing-C0ZYoKp1.js +0 -25
- package/dist/chart-bar-stacked-BKX5vv4n.js +0 -37
- package/dist/chart-candlestick-CK7PPxw2.js +0 -46
- package/dist/chart-column-big-CFGHPlMG.js +0 -30
- package/dist/chart-column-decreasing-D1OF0u6S.js +0 -25
- package/dist/chart-column-increasing-rLcCW5u4.js +0 -26
- package/dist/chart-column-stacked-DpGvgDc6.js +0 -37
- package/dist/chart-column-tsuv1_sP.js +0 -26
- package/dist/chart-gantt-DwN4h7hj.js +0 -25
- package/dist/chart-line-EWPEY0aC.js +0 -15
- package/dist/chart-network-1fze4H7t.js +0 -43
- package/dist/chart-no-axes-column-Dgl7RciO.js +0 -22
- package/dist/chart-no-axes-column-decreasing-DF5Tc2Zl.js +0 -21
- package/dist/chart-no-axes-column-increasing-C-mF42xC.js +0 -22
- package/dist/chart-no-axes-combined-WYMZ1IBa.js +0 -33
- package/dist/chart-no-axes-gantt-2r3Q8THu.js +0 -22
- package/dist/chart-pie-jHHqiaSp.js +0 -15
- package/dist/chart-scatter-nyViafOe.js +0 -49
- package/dist/chart-spline-DlL4B9gq.js +0 -14
- package/dist/check-Ca4AcUt3.js +0 -11
- package/dist/check-check-BC1tMR9X.js +0 -14
- package/dist/check-line-Rw_EwBp_.js +0 -21
- package/dist/chef-hat-f8ygNIfI.js +0 -14
- package/dist/cherry-C2B5Kqdc.js +0 -25
- package/dist/chess-bishop-DFlClP1p.js +0 -25
- package/dist/chess-king-BFl2pXgc.js +0 -25
- package/dist/chess-knight-BoZniE0-.js +0 -29
- package/dist/chess-pawn-CL_GaX2Q.js +0 -31
- package/dist/chess-queen-DlYMF7Dy.js +0 -47
- package/dist/chess-rook-BEJR9j3T.js +0 -37
- package/dist/chevron-down-BzhqHqEG.js +0 -143
- package/dist/chevron-down-X9j1ge4u.js +0 -11
- package/dist/chevron-first-dKxzIG9N.js +0 -14
- package/dist/chevron-last-DX0GSJsr.js +0 -14
- package/dist/chevron-left-HR_ffIpW.js +0 -14
- package/dist/chevron-left-IvLLRIc6.js +0 -11
- package/dist/chevron-left-bLpwOYcm.cjs +0 -1
- package/dist/chevron-right-D7ZymGd2.js +0 -11
- package/dist/chevron-up-A7hhLDoc.js +0 -11
- package/dist/chevrons-down-tsMOlcsA.js +0 -14
- package/dist/chevrons-down-up-C506SMkO.js +0 -14
- package/dist/chevrons-left-C_M8TWTB.js +0 -14
- package/dist/chevrons-left-right-CFVoJh6G.js +0 -14
- package/dist/chevrons-left-right-ellipsis-Ctr7jToe.js +0 -29
- package/dist/chevrons-right-BNoXTWte.js +0 -14
- package/dist/chevrons-right-left-CemTHUrd.js +0 -14
- package/dist/chevrons-up-CEP8N6Zc.js +0 -14
- package/dist/chevrons-up-down-D_4RASMn.js +0 -14
- package/dist/church-CoHkvIAo.js +0 -29
- package/dist/cigarette-BUhY79Rr.js +0 -29
- package/dist/cigarette-off-CNsjZ110.js +0 -33
- package/dist/circle-Dr2I1Hql.js +0 -13
- package/dist/circle-alert-GQEETBT8.js +0 -30
- package/dist/circle-arrow-down-DtypeGll.js +0 -24
- package/dist/circle-arrow-left-D9lGXOsW.js +0 -24
- package/dist/circle-arrow-out-down-left-B_JJUPNe.js +0 -22
- package/dist/circle-arrow-out-down-right-DjdTfugw.js +0 -22
- package/dist/circle-arrow-out-up-left-Ckq1hIG3.js +0 -22
- package/dist/circle-arrow-out-up-right-BgCg9c0J.js +0 -22
- package/dist/circle-arrow-right-BdPcPuL-.js +0 -24
- package/dist/circle-arrow-up-COQenjQh.js +0 -24
- package/dist/circle-check-CjCAGVVg.js +0 -17
- package/dist/circle-check-big-okeMcgQn.js +0 -15
- package/dist/circle-chevron-down-C3pzZh2O.js +0 -17
- package/dist/circle-chevron-left-DQMKQVUx.js +0 -17
- package/dist/circle-chevron-right-BHPPJVno.js +0 -17
- package/dist/circle-chevron-up-Dg1FS43K.js +0 -17
- package/dist/circle-dashed-D6hFNN5l.js +0 -41
- package/dist/circle-dashed-check-CiBOKN_v.js +0 -45
- package/dist/circle-divide-CZFkAqK6.js +0 -37
- package/dist/circle-dollar-sign-D50T6YuM.js +0 -23
- package/dist/circle-dot-BSRcfOpu.js +0 -18
- package/dist/circle-dot-dashed-CimXhDbB.js +0 -47
- package/dist/circle-ellipsis-DxBBC1Fw.js +0 -27
- package/dist/circle-equal-DbGTsG4s.js +0 -23
- package/dist/circle-euro-BBvRJlwZ.js +0 -23
- package/dist/circle-fading-arrow-up-DOf3TFfk.js +0 -37
- package/dist/circle-fading-plus-CDG0i2_1.js +0 -37
- package/dist/circle-gauge-BXx9mHS6.js +0 -24
- package/dist/circle-minus-CssGGHiJ.js +0 -17
- package/dist/circle-off-DCvr7Rae.js +0 -21
- package/dist/circle-parking-DfpDsZ6a.js +0 -17
- package/dist/circle-parking-off-DecW7pri.js +0 -34
- package/dist/circle-pause-B5NXDZfS.js +0 -30
- package/dist/circle-percent-DcAMczl1.js +0 -28
- package/dist/circle-pile-DBF-e-xs.js +0 -45
- package/dist/circle-play-CDf-yIFS.js +0 -17
- package/dist/circle-plus-wr6-MbXs.js +0 -24
- package/dist/circle-pound-sterling-CSjoWTc5.js +0 -27
- package/dist/circle-power-AihjYEMf.js +0 -24
- package/dist/circle-question-mark-DiAN8ABl.js +0 -24
- package/dist/circle-slash-2-Bp6wlkY4.js +0 -17
- package/dist/circle-slash-BrFL4lN7.js +0 -19
- package/dist/circle-small-Y_S0UzYD.js +0 -13
- package/dist/circle-star-B6-uYm5P.js +0 -16
- package/dist/circle-stop-CV0zzIDW.js +0 -21
- package/dist/circle-user-l2xTmVZ_.js +0 -26
- package/dist/circle-user-round-g2GesHJo.js +0 -26
- package/dist/circle-x-D-vlLGSM.js +0 -24
- package/dist/circuit-board-kOfmsLXM.js +0 -37
- package/dist/citrus-NIrpJGQx.js +0 -25
- package/dist/clapperboard-1a4cY4wr.js +0 -25
- package/dist/clef-alto-HuYos0Xz.js +0 -21
- package/dist/clef-bass-BF5JBY51.js +0 -27
- package/dist/clef-treble-7ozmXAlp.js +0 -11
- package/dist/clipboard-C-dQqENS.js +0 -19
- package/dist/clipboard-check-BHlfV94c.js +0 -26
- package/dist/clipboard-clock-61Al8JrL.js +0 -35
- package/dist/clipboard-copy-D4LlIpBk.js +0 -34
- package/dist/clipboard-list-Dc9Lv9As.js +0 -38
- package/dist/clipboard-minus-CXA7-DNb.js +0 -26
- package/dist/clipboard-paste-DppvCwPM.js +0 -33
- package/dist/clipboard-pen-DoPP07lk.js +0 -30
- package/dist/clipboard-pen-line-BzkSjNaE.js +0 -34
- package/dist/clipboard-plus-DXhscLo1.js +0 -30
- package/dist/clipboard-type-C-B95nKE.js +0 -34
- package/dist/clipboard-x-D6bca4Kv.js +0 -30
- package/dist/clock-1-B06wC6PA.js +0 -16
- package/dist/clock-10-ushrZekV.js +0 -16
- package/dist/clock-11-DDg_Pbb1.js +0 -16
- package/dist/clock-12-D-4kJXXd.js +0 -16
- package/dist/clock-2-B9DjDGxJ.js +0 -16
- package/dist/clock-3-CFUpr1-l.js +0 -16
- package/dist/clock-4-CrZ6tH-z.js +0 -16
- package/dist/clock-5-BJ6l5cud.js +0 -16
- package/dist/clock-6-Dr_YXvG0.js +0 -16
- package/dist/clock-7-su85Mi4f.js +0 -16
- package/dist/clock-8-Xfi8ce0Q.js +0 -16
- package/dist/clock-9-B-_S_psY.js +0 -16
- package/dist/clock-CTmbtGh2.js +0 -16
- package/dist/clock-alert-BEYYzyyX.js +0 -25
- package/dist/clock-arrow-down-CxqyNmP9.js +0 -25
- package/dist/clock-arrow-left-C3P_BI5T.js +0 -25
- package/dist/clock-arrow-right-B3WQRutM.js +0 -25
- package/dist/clock-arrow-up--2XYMWMY.js +0 -25
- package/dist/clock-check-DwlkkqhH.js +0 -21
- package/dist/clock-fading-Diq28fVl.js +0 -33
- package/dist/clock-plus-CtyshCdu.js +0 -25
- package/dist/closed-caption-BkBijY69.js +0 -25
- package/dist/cloud-alert-DEa-Z9UI.js +0 -21
- package/dist/cloud-bEnfCM4P.js +0 -11
- package/dist/cloud-backup-CTWwQfod.js +0 -21
- package/dist/cloud-check-SCY1QAMs.js +0 -14
- package/dist/cloud-cog-B2ubIFLT.js +0 -45
- package/dist/cloud-download-uCS9jxz5.js +0 -22
- package/dist/cloud-drizzle-D7MFj68G.js +0 -37
- package/dist/cloud-fog-xwGqNjSz.js +0 -21
- package/dist/cloud-hail-V871G4Zb.js +0 -37
- package/dist/cloud-lightning-CYhOfMEy.js +0 -14
- package/dist/cloud-moon-D8GQfZn1.js +0 -14
- package/dist/cloud-moon-rain-b9xxLvXo.js +0 -25
- package/dist/cloud-off-7hgfRq8K.js +0 -21
- package/dist/cloud-rain-Bhv_ol9F.js +0 -25
- package/dist/cloud-rain-wind-PZaFswqH.js +0 -25
- package/dist/cloud-snow-D6quEU7Y.js +0 -37
- package/dist/cloud-sun-H0_Py1Gx.js +0 -33
- package/dist/cloud-sun-rain-BToZDO9X.js +0 -41
- package/dist/cloud-sync-i9kCCy9z.js +0 -29
- package/dist/cloud-upload-YTgXX4zK.js +0 -22
- package/dist/cloudy-BKUzs96R.js +0 -14
- package/dist/clover-CHcrw8WA.js +0 -21
- package/dist/club-CCABCTnt.js +0 -14
- package/dist/code-RiY9snJn.js +0 -14
- package/dist/code-xml-DTSpEYXC.js +0 -22
- package/dist/coffee-CJDQ1Smw.js +0 -25
- package/dist/cog-BNhnZIZD.js +0 -69
- package/dist/coins-K-6SKWyy.js +0 -27
- package/dist/columns-2-DLBt5bY_.js +0 -19
- package/dist/columns-3-DXXd84up.js +0 -26
- package/dist/columns-3-cog-DBIEuiRD.js +0 -60
- package/dist/columns-4-OeaMouxF.js +0 -29
- package/dist/combine-P5d00zur.js +0 -41
- package/dist/command-AMF1N-Rj.js +0 -11
- package/dist/compass-DC9IE7A_.js +0 -16
- package/dist/component-D-7apFXn.js +0 -25
- package/dist/components/schedule/BlockedDatesField.d.ts +0 -19
- package/dist/components/schedule/BookingAnswers.d.ts +0 -14
- package/dist/components/schedule/BookingCalendar.d.ts +0 -23
- package/dist/components/schedule/BookingLinksCard.d.ts +0 -75
- package/dist/components/schedule/BookingPagesCard.d.ts +0 -30
- package/dist/components/schedule/BookingQuestionsField.d.ts +0 -5
- package/dist/components/schedule/CalendarCard.d.ts +0 -42
- package/dist/components/schedule/CalendarView.d.ts +0 -112
- package/dist/components/schedule/CopyLink.d.ts +0 -5
- package/dist/components/schedule/EventCard.d.ts +0 -84
- package/dist/components/schedule/EventDetail.d.ts +0 -117
- package/dist/components/schedule/PickedTime.d.ts +0 -10
- package/dist/components/schedule/SchedulePicker.d.ts +0 -16
- package/dist/components/schedule/SlotPicker.d.ts +0 -31
- package/dist/components/schedule/TimeChips.d.ts +0 -31
- package/dist/computer-Cajdd2Ul.js +0 -37
- package/dist/concierge-bell-DIW9Qc7P.js +0 -25
- package/dist/cone-DK7u-I7o.js +0 -17
- package/dist/construction-CUHSwno7.js +0 -45
- package/dist/contact-D3_649co.js +0 -35
- package/dist/contact-round-CvL_SVMm.js +0 -36
- package/dist/container-7O7JVpiW.js +0 -29
- package/dist/contentFallback-DNHWZG0l.cjs +0 -6
- package/dist/contentFallback-DaVUqFHx.js +0 -244
- package/dist/contentKey-DxGWz3pR.js +0 -13
- package/dist/contentKey-zS-6K6eh.cjs +0 -1
- package/dist/contrast-B2uhdS4p.js +0 -16
- package/dist/cookie-B0Nz7XQg.js +0 -45
- package/dist/cooking-pot-D9-3jeH8.js +0 -25
- package/dist/copy-DNoQndNO.js +0 -19
- package/dist/copy-check-HstMrOU1.js +0 -26
- package/dist/copy-minus-D8soQbSp.js +0 -29
- package/dist/copy-plus-BEfocaoF.js +0 -36
- package/dist/copy-slash-5jRaVSrS.js +0 -29
- package/dist/copy-x-BtnBgASC.js +0 -29
- package/dist/copyleft-CfLmHIOQ.js +0 -16
- package/dist/copyright-B_LOjS_s.js +0 -16
- package/dist/corner-down-left-J5UXVyeW.js +0 -14
- package/dist/corner-down-right-DFLDoADl.js +0 -14
- package/dist/corner-left-down-Dw6HfWmk.js +0 -14
- package/dist/corner-left-up-DTLFGWD7.js +0 -14
- package/dist/corner-right-down-CLcvlyNM.js +0 -14
- package/dist/corner-right-up-C_iyqp8W.js +0 -14
- package/dist/corner-up-left-N2DrlDAo.js +0 -14
- package/dist/corner-up-right-MkUYToeA.js +0 -14
- package/dist/cpu-CL7wn0Hk.js +0 -73
- package/dist/creative-commons-gv3CUnuw.js +0 -23
- package/dist/credit-card-4LTl4daB.js +0 -28
- package/dist/credit-card-check-DAwbtyJQ.js +0 -25
- package/dist/credit-card-minus-Cn4Pdqra.js +0 -25
- package/dist/credit-card-plus-2X-e8iyL.js +0 -29
- package/dist/credit-card-reader-J0K2sZNM.js +0 -25
- package/dist/credit-card-x-CPG_6-bN.js +0 -29
- package/dist/croissant-Bks0bv0g.js +0 -29
- package/dist/crop-BOZJhgoF.js +0 -14
- package/dist/cross-BK7zmtBM.js +0 -11
- package/dist/crosshair-Drn4IhIW.js +0 -43
- package/dist/crown-XbQZQZ9q.js +0 -14
- package/dist/cuboid-zOUuiEUy.js +0 -21
- package/dist/cup-soda-aQknIrCt.js +0 -25
- package/dist/cupcake-CwRdfqKT.js +0 -39
- package/dist/currency-CzgJguxg.js +0 -43
- package/dist/cylinder-tSUCRMYL.js +0 -17
- package/dist/dam-CxE_CtkQ.js +0 -37
- package/dist/database-DRV6on5B.js +0 -24
- package/dist/database-arrow-down-BOKQVOS5.js +0 -36
- package/dist/database-arrow-up-DvPZ4m7K.js +0 -36
- package/dist/database-backup-D6eT8lWN.js +0 -36
- package/dist/database-check-aApSI79r.js +0 -32
- package/dist/database-minus-2SA9z9Zx.js +0 -32
- package/dist/database-plus-Bz1m8YlR.js +0 -36
- package/dist/database-search-D3S_AxXx.js +0 -38
- package/dist/database-x-CwDBUSEA.js +0 -40
- package/dist/database-zap-yZk7qeTk.js +0 -32
- package/dist/decimals-arrow-left-CpjNSoJB.js +0 -29
- package/dist/decimals-arrow-right-DmcnOUhL.js +0 -37
- package/dist/delete-D435Bn0x.js +0 -21
- package/dist/dessert-CEJ9hXwc.js +0 -23
- package/dist/diameter-DgdaKVRe.js +0 -33
- package/dist/diamond-5ON7shNu.js +0 -11
- package/dist/diamond-minus-BJ12irmE.js +0 -14
- package/dist/diamond-percent-C68vyc2s.js +0 -26
- package/dist/diamond-plus-1P0IYyXv.js +0 -21
- package/dist/dice-1-CJAqYv3G.js +0 -19
- package/dist/dice-2-DDGHJh9o.js +0 -26
- package/dist/dice-3-BzHup29a.js +0 -30
- package/dist/dice-4-dXSKng4T.js +0 -34
- package/dist/dice-5-DjupOsMJ.js +0 -38
- package/dist/dice-6-COz4_6ao.js +0 -42
- package/dist/dices-cUFkJaJJ.js +0 -38
- package/dist/diff-CzTCtzOL.js +0 -21
- package/dist/disc-2-CW1jfgoD.js +0 -25
- package/dist/disc-3-C0Bfl4qQ.js +0 -29
- package/dist/disc-album-D8QfeEfv.js +0 -27
- package/dist/disc-nRmf1f_h.js +0 -18
- package/dist/dist-COddoTlV.js +0 -2008
- package/dist/divide-UXlSV4Lv.js +0 -28
- package/dist/dna-CW6ntNaa.js +0 -53
- package/dist/dna-off-DONAXfro.js +0 -49
- package/dist/dock-BPKh1Fjf.js +0 -25
- package/dist/dog-CvQlArSu.js +0 -29
- package/dist/dollar-sign-CGHw7zQ6.js +0 -17
- package/dist/dome-B8okyrHq.js +0 -33
- package/dist/donut-Bf0EKqyX.js +0 -16
- package/dist/door-closed-DlDxVSYB.js +0 -21
- package/dist/door-closed-locked-BOddkKiz.js +0 -33
- package/dist/door-closed-package-Bn41U9yI.js +0 -33
- package/dist/door-open-RMFmhGsG.js +0 -29
- package/dist/door-stairwell-FYKSQSo7.js +0 -29
- package/dist/dot-O4WtARYb.js +0 -13
- package/dist/download-D-rMccB9.js +0 -21
- package/dist/drafting-compass-Cd4FWgOT.js +0 -31
- package/dist/drama-D8F9bTn6.js +0 -41
- package/dist/drill-Dks_JgSq.js +0 -33
- package/dist/drone-B2my7g-w.js +0 -49
- package/dist/droplet-A6x6FnCA.js +0 -11
- package/dist/droplet-off-DhB-42dv.js +0 -21
- package/dist/droplets-BokFMvNW.js +0 -14
- package/dist/drum-IWNVUGj5.js +0 -40
- package/dist/drumstick-CukJAxjn.js +0 -14
- package/dist/dumbbell-C0P6HAlX.js +0 -29
- package/dist/ear-FE2swRL3.js +0 -14
- package/dist/ear-off-Cri9_VmL.js +0 -32
- package/dist/earth-BDzMYYcK.js +0 -28
- package/dist/earth-lock-BDaf5WfE.js +0 -37
- package/dist/eclipse-Dn83gU2X.js +0 -16
- package/dist/egg-D_Cazzff.js +0 -11
- package/dist/egg-fried-CO7-bgsS.js +0 -16
- package/dist/egg-off-BFeHu8-O.js +0 -21
- package/dist/eject-POVtaWzI.js +0 -18
- package/dist/ellipse-DEEOFCG1.js +0 -14
- package/dist/ellipsis-C_SEKcyR.js +0 -28
- package/dist/ellipsis-vertical-DL0ID1df.js +0 -28
- package/dist/email-CVU_r4wB.js +0 -132
- package/dist/email-CYRiGM_W.cjs +0 -1
- package/dist/engine-E-WQGWPN.js +0 -29
- package/dist/equal-Cg9qMYx9.js +0 -20
- package/dist/equal-approximately-DV1WM-Fk.js +0 -14
- package/dist/equal-approximately-not-B5I3-T7_.js +0 -24
- package/dist/equal-not-CGGFfbJY.js +0 -30
- package/dist/eraser-DL_JHgwJ.js +0 -14
- package/dist/ethernet-port-_SKk8Gze.js +0 -29
- package/dist/euro-BjiC70GN.js +0 -21
- package/dist/ev-charger-C1Ul4q_2.js +0 -29
- package/dist/expand-Be5isDQx.js +0 -41
- package/dist/external-link-CLkL9EII.js +0 -21
- package/dist/eye-B8gDALx4.js +0 -16
- package/dist/eye-DQUjlgYv.js +0 -19
- package/dist/eye-closed-oe2FCSWW.js +0 -29
- package/dist/eye-dashed-BPqQHdde.js +0 -47
- package/dist/eye-off-DNCuTHUt.js +0 -28
- package/dist/eye-off-c_ukD3mF.cjs +0 -1
- package/dist/eye-off-qr6zSrx1.js +0 -25
- package/dist/face-angry-BE6bivwj.js +0 -36
- package/dist/face-expressionless-QKWCbYlG.js +0 -28
- package/dist/face-grinning-woDO9Qa8.js +0 -28
- package/dist/face-neutral-DLnWF9Rq.js +0 -28
- package/dist/face-slightly-frowning-DYu9EMlt.js +0 -28
- package/dist/face-slightly-smiling-CuLcpdbt.js +0 -28
- package/dist/face-slightly-smiling-plus-Dh5MvFwf.js +0 -34
- package/dist/factory-Bb8rZrO3.js +0 -25
- package/dist/fan-DkXWBsfJ.js +0 -14
- package/dist/fast-forward-DIsy6QDM.js +0 -14
- package/dist/faucet-oQx_IA_I.js +0 -39
- package/dist/feather-CGdu3kSc.js +0 -21
- package/dist/fence-CkDUBj9P.js +0 -37
- package/dist/ferris-wheel-DB4wXQdQ.js +0 -47
- package/dist/file-CTaU0OoW.js +0 -14
- package/dist/file-archive-ChIUg3y_.js +0 -35
- package/dist/file-axis-3d-oac17Qe7.js +0 -26
- package/dist/file-badge-AiaNZXJe.js +0 -28
- package/dist/file-box-Bpus_D39.js +0 -29
- package/dist/file-braces-DTmvp_Zu.js +0 -26
- package/dist/file-braces-corner-DbA7nkBb.js +0 -26
- package/dist/file-chart-column-BQsz5u5d.js +0 -30
- package/dist/file-chart-column-increasing-DHWUOq-H.js +0 -30
- package/dist/file-chart-line-C62o7AvL.js +0 -22
- package/dist/file-chart-pie-CebxNrNc.js +0 -26
- package/dist/file-check-BlUDIB4d.js +0 -21
- package/dist/file-check-corner-DDd4_Uon.js +0 -22
- package/dist/file-clock-CUXVzyBj.js +0 -27
- package/dist/file-code-D_kpwHZN.js +0 -25
- package/dist/file-code-corner-BcW4KXi3.js +0 -26
- package/dist/file-cog-DtmGWRSr.js +0 -60
- package/dist/file-diff-8VR0s28A.js +0 -25
- package/dist/file-digit-BbLSqzac.js +0 -33
- package/dist/file-down-N1CWPxXy.js +0 -25
- package/dist/file-exclamation-point-BLiELV2f.js +0 -22
- package/dist/file-headphone-DahrGGNm.js +0 -22
- package/dist/file-heart-B9YmV_F6.js +0 -21
- package/dist/file-image-DKxC1Sc4.js +0 -27
- package/dist/file-input-RquonwMn.js +0 -25
- package/dist/file-key-WrBgFZBM.js +0 -32
- package/dist/file-lock-B_8RcztP.js +0 -30
- package/dist/file-minus-QLhRaakS.js +0 -21
- package/dist/file-minus-corner-CPyZ_vJm.js +0 -22
- package/dist/file-music-DzpgRVZ3.js +0 -27
- package/dist/file-output-DMZ2tOPT.js +0 -25
- package/dist/file-pen-DTAwpVEM.js +0 -22
- package/dist/file-pen-line-BNhPRiSG.js +0 -26
- package/dist/file-play-CivVKU_6.js +0 -22
- package/dist/file-plus-CapXw5bI.js +0 -25
- package/dist/file-plus-corner-BHlBntl_.js +0 -26
- package/dist/file-question-mark-BrE6mO-_.js +0 -22
- package/dist/file-scan-eEyB8hTP.js +0 -33
- package/dist/file-search-CAy6TAfV.js +0 -27
- package/dist/file-search-corner-WC-20wW_.js +0 -28
- package/dist/file-signal-Bj7IAjeP.js +0 -30
- package/dist/file-sliders-BfD6HHyF.js +0 -33
- package/dist/file-spreadsheet-Cw2jl_PP.js +0 -33
- package/dist/file-stack-CFxCriXl.js +0 -21
- package/dist/file-symlink-C9hlOfLK.js +0 -21
- package/dist/file-terminal-DwzQGhmY.js +0 -25
- package/dist/file-text-C7Jp_QX8.js +0 -29
- package/dist/file-type-corner-DrzPgwfu.js +0 -30
- package/dist/file-type-jr1qq156.js +0 -29
- package/dist/file-up-S-HePczS.js +0 -25
- package/dist/file-user-po6sxQjW.js +0 -27
- package/dist/file-video-camera-DBleo8rb.js +0 -30
- package/dist/file-volume-5ilYSTnD.js +0 -25
- package/dist/file-x-BJkD9og9.js +0 -25
- package/dist/file-x-corner-DijUNvFg.js +0 -26
- package/dist/fileBytes-CrbTLfUG.js +0 -146
- package/dist/fileBytes-DaVcS9qv.cjs +0 -1
- package/dist/files-BD_7IbEJ.js +0 -21
- package/dist/film-CIjUC17m.js +0 -45
- package/dist/fingerprint-pattern-H3oMsmKs.js +0 -46
- package/dist/fire-extinguisher-Cu8mGay5.js +0 -33
- package/dist/fish-BFgM_vEd.js +0 -33
- package/dist/fish-off-C4rKPQAS.js +0 -21
- package/dist/fish-symbol-DW3tYYAX.js +0 -11
- package/dist/fishing-hook-BbiZz5cl.js +0 -23
- package/dist/fishing-rod-CUde8qMj.js +0 -23
- package/dist/flag-CW6qr8Jy.js +0 -11
- package/dist/flag-off-BOIkVmIf.js +0 -25
- package/dist/flag-triangle-left-D3Po8uzi.js +0 -11
- package/dist/flag-triangle-right-bWCYpLU-.js +0 -11
- package/dist/flame-CThr-3I4.js +0 -11
- package/dist/flame-kindling-rcVhdB_m.js +0 -21
- package/dist/flashlight-BdQUWqIZ.js +0 -21
- package/dist/flashlight-off-CSgGRaEE.js +0 -29
- package/dist/flask-conical-BoEcVvmy.js +0 -21
- package/dist/flask-conical-off-B3hAt5jD.js +0 -33
- package/dist/flask-round-DDmM0Dv7.js +0 -21
- package/dist/flower-2-DA2B0vpe.js +0 -31
- package/dist/flower-B4Hzc9V7.js +0 -51
- package/dist/focus-DLeOcms1.js +0 -31
- package/dist/fold-horizontal-C9ldQoBm.js +0 -41
- package/dist/fold-vertical-CRKCLZ5u.js +0 -41
- package/dist/folder-BXgXNKzx.js +0 -11
- package/dist/folder-archive-Dgzx3j0r.js +0 -27
- package/dist/folder-bookmark-D6yzkckt.js +0 -14
- package/dist/folder-check-BgqLgu3Q.js +0 -14
- package/dist/folder-clock-BGEmGi-E.js +0 -23
- package/dist/folder-closed-KjTq2D_9.js +0 -14
- package/dist/folder-code-Bvn9qI0D.js +0 -21
- package/dist/folder-cog-DZWygNel.js +0 -52
- package/dist/folder-dot-DfguOjX-.js +0 -16
- package/dist/folder-down-D5WIYGGZ.js +0 -21
- package/dist/folder-git-2-CupqZheu.js +0 -29
- package/dist/folder-git-CD_153go.js +0 -27
- package/dist/folder-heart-CMfbL0Pm.js +0 -14
- package/dist/folder-input-Bs6htleW.js +0 -21
- package/dist/folder-kanban-DCYg11bS.js +0 -25
- package/dist/folder-key-_m37360x.js +0 -27
- package/dist/folder-lock-GBmRYh72.js +0 -25
- package/dist/folder-minus-Ci2Rko8i.js +0 -14
- package/dist/folder-open-CeRfmRWH.js +0 -11
- package/dist/folder-open-dot-B_rqPS70.js +0 -16
- package/dist/folder-output-BlrMPMlV.js +0 -21
- package/dist/folder-pen-BP8US0Ow.js +0 -15
- package/dist/folder-plus-C-jxa5pD.js +0 -21
- package/dist/folder-root-DuRxb2Mj.js +0 -23
- package/dist/folder-search-2-CUb16Zfz.js +0 -23
- package/dist/folder-search-BSi2QCEP.js +0 -23
- package/dist/folder-symlink-CG1Eevhz.js +0 -14
- package/dist/folder-sync-DAd-L2HY.js +0 -29
- package/dist/folder-tree-CwcRcZlw.js +0 -25
- package/dist/folder-up-CDFHs-HZ.js +0 -21
- package/dist/folder-x-DA51auEr.js +0 -21
- package/dist/folders-D1s4Xgin.js +0 -14
- package/dist/footprints-zhTokpOs.js +0 -25
- package/dist/forklift-CcwWK2PI.js +0 -41
- package/dist/form-BXsx0MGF.js +0 -33
- package/dist/forward-m3HCHJ7o.js +0 -14
- package/dist/frame-BU4qVUjj.js +0 -37
- package/dist/fuel-M0_zeFdf.js +0 -25
- package/dist/fullscreen-B4MZwFBq.js +0 -33
- package/dist/funnel-BEwsyVEy.js +0 -12
- package/dist/funnel-plus-PYxEtilg.js +0 -21
- package/dist/funnel-x-Bjv6fVdV.js +0 -22
- package/dist/galaxy-B4bpjQrS.js +0 -32
- package/dist/gallery-horizontal-BYTgT4P7.js +0 -25
- package/dist/gallery-horizontal-end-D_0pwHMG.js +0 -25
- package/dist/gallery-thumbnails-BnhSnXoo.js +0 -33
- package/dist/gallery-vertical-DTbMU2MX.js +0 -25
- package/dist/gallery-vertical-end-DcqWbuIc.js +0 -25
- package/dist/gamepad-2-CbXwchsz.js +0 -41
- package/dist/gamepad-a8wxk0ji.js +0 -45
- package/dist/gamepad-directional-sofmtOp4.js +0 -25
- package/dist/gap-horizontal-CL3UxOpG.js +0 -33
- package/dist/gap-vertical-D9sKvaRj.js +0 -33
- package/dist/gauge-Cqc8Ol23.js +0 -14
- package/dist/gavel-9oe599Gt.js +0 -29
- package/dist/gem-xKc06SED.js +0 -21
- package/dist/georgian-lari-C452wLzh.js +0 -25
- package/dist/germ-CiGseVU1.js +0 -59
- package/dist/germ-off-BZi2wHo1.js +0 -61
- package/dist/ghost-BcLd18MZ.js +0 -21
- package/dist/gift-DPB59_Z7.js +0 -29
- package/dist/git-branch-CePIlCFk.js +0 -25
- package/dist/git-branch-minus-X5j353P3.js +0 -29
- package/dist/git-branch-plus-3B_Vx8wY.js +0 -33
- package/dist/git-commit-horizontal-B8w415rt.js +0 -30
- package/dist/git-commit-vertical-D3cgx9x5.js +0 -23
- package/dist/git-compare-B4QPyFoa.js +0 -29
- package/dist/git-compare-arrows-D2mKAzCM.js +0 -37
- package/dist/git-fork-DcoGng7y.js +0 -35
- package/dist/git-graph-bcSkVqwt.js +0 -39
- package/dist/git-merge-CPYU1hln.js +0 -25
- package/dist/git-merge-conflict-CsPyAX20.js +0 -31
- package/dist/git-pull-request-arrow-KYNA1p-t.js +0 -33
- package/dist/git-pull-request-bH_2OE71.js +0 -32
- package/dist/git-pull-request-closed-BgqW2yjI.js +0 -37
- package/dist/git-pull-request-create-arrow-DIHHi0CD.js +0 -35
- package/dist/git-pull-request-create-hbpX01f1.js +0 -31
- package/dist/git-pull-request-draft-C7vlG25-.js +0 -36
- package/dist/glass-water-CtK9MRA1.js +0 -14
- package/dist/glasses-D9pbTTF-.js +0 -33
- package/dist/globe-CCTUDS6U.js +0 -23
- package/dist/globe-check-PrEZLuka.js +0 -14
- package/dist/globe-code-DKl0Pr-I.js +0 -25
- package/dist/globe-lock-_DagpZWh.js +0 -29
- package/dist/globe-off-IYMA06TT.js +0 -37
- package/dist/globe-x-jIexr22l.js +0 -21
- package/dist/goal-BGYwOSZ2.js +0 -21
- package/dist/gpu-CZFi1XHc.js +0 -33
- package/dist/graduation-cap-LAzcdJXF.js +0 -21
- package/dist/grape-CQu1767a.js +0 -61
- package/dist/grid-2x2-BAuxXQab.js +0 -26
- package/dist/grid-2x2-check-Ch8V94EA.js +0 -15
- package/dist/grid-2x2-plus-DwJyKrqd.js +0 -22
- package/dist/grid-2x2-x-xN5CnLE7.js +0 -22
- package/dist/grid-3x2-V215iL2E.js +0 -29
- package/dist/grid-3x3-BBa6jcHK.js +0 -34
- package/dist/grip-BQk5OZav.js +0 -63
- package/dist/grip-horizontal-CdNKWXw_.js +0 -45
- package/dist/grip-vertical-Rc-Iwxre.js +0 -45
- package/dist/group-CjTBiRsO.js +0 -41
- package/dist/guitar-CQm6CA7B.js +0 -25
- package/dist/ham-CXFy4vGF.js +0 -25
- package/dist/hamburger-B7yrk859.js +0 -25
- package/dist/hammer-CA4cdyY1.js +0 -21
- package/dist/hand-DUWOCRLR.js +0 -25
- package/dist/hand-coins-D92cui2b.js +0 -33
- package/dist/hand-fist-CUF_VTej.js +0 -25
- package/dist/hand-grab-D4UMYgka.js +0 -30
- package/dist/hand-heart-BulIoM3N.js +0 -25
- package/dist/hand-helping-BLZR4bzG.js +0 -22
- package/dist/hand-metal-Jd7aAz08.js +0 -25
- package/dist/hand-platter-CWYjTvbj.js +0 -33
- package/dist/handbag-DV9vEQy6.js +0 -14
- package/dist/handshake-BFYZDxKQ.js +0 -29
- package/dist/hard-drive-download-DgzGsI44.js +0 -33
- package/dist/hard-drive-uIPsc6yD.js +0 -25
- package/dist/hard-drive-upload-kl5Q99kS.js +0 -33
- package/dist/hard-hat-D5YASrtI.js +0 -29
- package/dist/hash-D7tPLEo2.js +0 -37
- package/dist/hat-glasses-ChCapYB_.js +0 -33
- package/dist/haze-6IMlKrFL.js +0 -41
- package/dist/hd-BvVAcxR1.js +0 -33
- package/dist/hdmi-port-C-5SzgPZ.js +0 -14
- package/dist/heading-1-CxGvB30I.js +0 -25
- package/dist/heading-2-B-_OuiGB.js +0 -25
- package/dist/heading-3-QeMsHzu1.js +0 -29
- package/dist/heading-4-CqP81F8y.js +0 -29
- package/dist/heading-5-2GgJAb9X.js +0 -29
- package/dist/heading-6-DDMydOlo.js +0 -31
- package/dist/heading-D5bTN5XE.js +0 -21
- package/dist/headphone-off-CgElZYq4.js +0 -29
- package/dist/headphones-CHc6JOKT.js +0 -11
- package/dist/headset-yKn63nHX.js +0 -14
- package/dist/heart-BxppO7y5.js +0 -11
- package/dist/heart-crack-BqZBvJI0.js +0 -14
- package/dist/heart-handshake-DxeLpH0B.js +0 -11
- package/dist/heart-minus-4AS-8-lH.js +0 -14
- package/dist/heart-off-CdzBcI4m.js +0 -21
- package/dist/heart-plus-DlKa8J0Z.js +0 -21
- package/dist/heart-pulse-YM-WKLVC.js +0 -14
- package/dist/heart-x-B5GtD5xJ.js +0 -21
- package/dist/heater-C1ziI4yH.js +0 -49
- package/dist/helicopter-CO5Cc7N4.js +0 -41
- package/dist/hexagon-DmAzBSLB.js +0 -11
- package/dist/highlighter-DmsWhDHB.js +0 -14
- package/dist/hop-DeZ9qx1w.js +0 -41
- package/dist/hop-off-B-vzS2h9.js +0 -45
- package/dist/hospital-C-aUh6BP.js +0 -29
- package/dist/hotel-7X6l7Nvr.js +0 -53
- package/dist/hourglass-DUxq-rmj.js +0 -25
- package/dist/hourglass-cog-9ojdmLvb.js +0 -63
- package/dist/house-Dkge0qkU.js +0 -15
- package/dist/house-heart-CNErIzeu.js +0 -14
- package/dist/house-plug-DnfsxT4p.js +0 -25
- package/dist/house-plus-CXtTouDN.js +0 -25
- package/dist/house-wifi-DDUUD4Y0.js +0 -25
- package/dist/houses-OcIrAvxo.js +0 -21
- package/dist/ice-cream-bowl-BNZkwtDm.js +0 -22
- package/dist/ice-cream-cone-4OjFcwA9.js +0 -22
- package/dist/iconLoaders-BEt7WITp.cjs +0 -1
- package/dist/iconLoaders-CG70tPAL.js +0 -1853
- package/dist/id-card-CE-3ogl_.js +0 -35
- package/dist/id-card-lanyard-O-lMCIfO.js +0 -31
- package/dist/image-BlLvQQeq.js +0 -28
- package/dist/image-down-2DANO-Za.js +0 -27
- package/dist/image-minus-gvBBbe-z.js +0 -30
- package/dist/image-off-BR_q3KJf.js +0 -42
- package/dist/image-play-CCcmiWO4.js +0 -27
- package/dist/image-plus-xQNvwMm9.js +0 -31
- package/dist/image-up-ZElq9KIX.js +0 -27
- package/dist/image-upscale-CoE9Oj3N.js +0 -45
- package/dist/images-CUVOq9Ha.js +0 -32
- package/dist/import-De1ktYVw.js +0 -21
- package/dist/inbox-DiUaM2Ft.js +0 -14
- package/dist/indian-rupee-B-CJlKrR.js +0 -29
- package/dist/infinity-C378HAc1.js +0 -11
- package/dist/info-C0wyYClX.js +0 -23
- package/dist/inspection-panel-BfGp5QF8.js +0 -33
- package/dist/italic-CHf9AVOe.js +0 -30
- package/dist/iteration-ccw-VDtE8k-X.js +0 -14
- package/dist/iteration-cw-durCae8s.js +0 -14
- package/dist/iv-bag-UuNPYYeL.js +0 -21
- package/dist/japanese-yen-BAONio9N.js +0 -21
- package/dist/joystick-Ccr1AIeJ.js +0 -27
- package/dist/kanban-qoxQcpzj.js +0 -21
- package/dist/kayak-yeIRARqD.js +0 -25
- package/dist/key-Ct-nC_DH.js +0 -23
- package/dist/key-round-DLhpmKFt.js +0 -17
- package/dist/key-square-D9aHjCtj.js +0 -21
- package/dist/keyboard-B1hYhYM3.js +0 -49
- package/dist/keyboard-music-Bmdd51FB.js +0 -49
- package/dist/keyboard-off-Chh2TlGF.js +0 -49
- package/dist/lambda-B_Mg7oJ2.js +0 -14
- package/dist/lamp-BfcCbgRg.js +0 -21
- package/dist/lamp-ceiling-DZxXHQ4K.js +0 -21
- package/dist/lamp-desk-1EIR68Gb.js +0 -25
- package/dist/lamp-floor-Chl1DDWC.js +0 -21
- package/dist/lamp-wall-down-BT0N5Y0w.js +0 -21
- package/dist/lamp-wall-up-CXx0aa6M.js +0 -21
- package/dist/land-plot-Cdj7w7jX.js +0 -25
- package/dist/landmark-CZJpyquv.js +0 -33
- package/dist/languages-BbKaX-cz.js +0 -33
- package/dist/laptop-BQmj-XNM.js +0 -14
- package/dist/laptop-minimal-Cpt0nUy1.js +0 -23
- package/dist/laptop-minimal-check-5YdXLMeY.js +0 -25
- package/dist/lasso-DX6xTbDs.js +0 -23
- package/dist/lasso-select-CRrc4OtP.js +0 -29
- package/dist/layer-arrow-down-D4yoBDBT.js +0 -25
- package/dist/layer-arrow-up-Csyt9kc2.js +0 -21
- package/dist/layers-2-D4LuS5BF.js +0 -14
- package/dist/layers-DQfBkf0m.js +0 -22
- package/dist/layers-arrow-down-B0V0FyaT.js +0 -29
- package/dist/layers-arrow-up-Qv-r_fMy.js +0 -25
- package/dist/layers-minus-DsgYJGE0.js +0 -29
- package/dist/layers-plus-DaGC52T-.js +0 -29
- package/dist/layout-arrow-down-2yU3GUu9.js +0 -33
- package/dist/layout-arrow-right-D9-waAWn.js +0 -33
- package/dist/layout-dashboard-uxzKrJgd.js +0 -41
- package/dist/layout-freeform-CBX5zLI1.js +0 -33
- package/dist/layout-grid-C7BEJ3Rl.js +0 -41
- package/dist/layout-list-DiY7An9d.js +0 -41
- package/dist/layout-panel-left-cHFgBC9S.js +0 -33
- package/dist/layout-panel-top-BmGd8-tL.js +0 -33
- package/dist/layout-template-BMjAQr9F.js +0 -33
- package/dist/leaf-CKfTjPOh.js +0 -14
- package/dist/leafy-green-DwyJghT-.js +0 -14
- package/dist/lectern-JLH3vHuS.js +0 -25
- package/dist/lens-concave-DApX0co_.js +0 -11
- package/dist/lens-convex-BeIC0nZu.js +0 -11
- package/dist/lib/attachedLinks.d.ts +0 -53
- package/dist/lib/bookingHold.d.ts +0 -99
- package/dist/lib/bookingLinks.d.ts +0 -133
- package/dist/lib/bookingPageShape.d.ts +0 -80
- package/dist/lib/bookingPages.d.ts +0 -28
- package/dist/lib/bookingPrice.d.ts +0 -22
- package/dist/lib/bookingReturn.d.ts +0 -84
- package/dist/lib/bookingState.d.ts +0 -104
- package/dist/lib/paidSessions.d.ts +0 -38
- package/dist/lib/schedule.d.ts +0 -1025
- package/dist/lib/scheduleData.d.ts +0 -516
- package/dist/library-DBj3d89L.js +0 -25
- package/dist/library-big-slWR5U1D.js +0 -25
- package/dist/life-buoy-9Ynipg-0.js +0 -37
- package/dist/ligature-Bc6Yk9MC.js +0 -29
- package/dist/lightbulb-BUSG7vf1.js +0 -21
- package/dist/lightbulb-off-CRM5Pzmz.js +0 -29
- package/dist/lighthouse-DOIimhm0.js +0 -57
- package/dist/line-dot-right-horizontal-D3yI1jC8.js +0 -16
- package/dist/line-squiggle-eskfHxoK.js +0 -11
- package/dist/line-style-q8rZ0K6G.js +0 -33
- package/dist/link-2-Cf7ireaa.js +0 -24
- package/dist/link-2-FLprneqE.js +0 -27
- package/dist/link-2-GLDmddzj.cjs +0 -1
- package/dist/link-2-off-CLpyj0W1.js +0 -31
- package/dist/link-wYCFASTe.js +0 -14
- package/dist/list-Bl2M40EI.js +0 -33
- package/dist/list-check-DNqB2Gb-.js +0 -25
- package/dist/list-checks-D4qEtUrw.js +0 -29
- package/dist/list-chevrons-down-up-Cxwnu0QX.js +0 -29
- package/dist/list-chevrons-up-down-BLC6zeBs.js +0 -29
- package/dist/list-clock-KmBe4a5o.js +0 -31
- package/dist/list-collapse-Dv_y5rBg.js +0 -29
- package/dist/list-end-BxcaSxh5.js +0 -29
- package/dist/list-filter-C-P6P3Gj.js +0 -21
- package/dist/list-filter-plus-sPnIorRT.js +0 -29
- package/dist/list-indent-decrease-RleX29aV.js +0 -26
- package/dist/list-indent-increase-TYFesPRn.js +0 -26
- package/dist/list-minus-ZqFi4l2l.js +0 -25
- package/dist/list-music-BYtSHDwI.js +0 -31
- package/dist/list-ordered-Dloc96IA.js +0 -33
- package/dist/list-plus-CgNHNuRP.js +0 -29
- package/dist/list-restart-D0_-Elc7.js +0 -29
- package/dist/list-sort-ascending-h7HLGsRM.js +0 -21
- package/dist/list-sort-descending-CARujiIL.js +0 -21
- package/dist/list-start-DYALI7VY.js +0 -29
- package/dist/list-todo-bELFzf05.js +0 -33
- package/dist/list-tree-BOa595T1.js +0 -29
- package/dist/list-video-EU7-pKr0.js +0 -25
- package/dist/list-x-Bn5S7jpf.js +0 -29
- package/dist/loader-D1D5fo0D.js +0 -41
- package/dist/loader-circle-yKt0fJk5.js +0 -12
- package/dist/loader-pinwheel-CvxVeT6A.js +0 -27
- package/dist/locate-Cd8lxZcr.js +0 -43
- package/dist/locate-fixed-dhaOiHMn.js +0 -49
- package/dist/locate-off-DodH3T0H.js +0 -37
- package/dist/lock-BmdnWXlZ.js +0 -22
- package/dist/lock-DfhDcYKZ.js +0 -19
- package/dist/lock-keyhole-3EXHQ5ed.js +0 -27
- package/dist/lock-keyhole-open-B-q7NXtM.js +0 -28
- package/dist/lock-open-B9ne1MNk.js +0 -20
- package/dist/log-in-DZiU2sGQ.js +0 -21
- package/dist/log-out-B_u9vM7M.js +0 -21
- package/dist/logs-BsMKa6vP.js +0 -45
- package/dist/lollipop-3TIvVJR8.js +0 -23
- package/dist/luggage-kDsbd8SI.js +0 -33
- package/dist/magnet-BK2NU8MF.js +0 -21
- package/dist/mail-BLUBWdSB.js +0 -18
- package/dist/mail-badge-Dee16uY9.js +0 -27
- package/dist/mail-check-fGY3-DKy.js +0 -21
- package/dist/mail-clock-kL2xjVPz.js +0 -31
- package/dist/mail-minus-97yAaW3K.js +0 -21
- package/dist/mail-open-BchLUbX8.js +0 -14
- package/dist/mail-pen-x5zrr723.js +0 -21
- package/dist/mail-plus-BP8GyiP_.js +0 -25
- package/dist/mail-question-mark-Cd39Y_6p.js +0 -26
- package/dist/mail-search-AE3i3brp.js +0 -31
- package/dist/mail-warning-Avgl27QK.js +0 -25
- package/dist/mail-x-BAA8lsgC.js +0 -25
- package/dist/mailbox-BLRZZsn0.js +0 -28
- package/dist/mails-B0aKOroO.js +0 -25
- package/dist/map-BYthTBOD.js +0 -21
- package/dist/map-minus-rUAGVA8k.js +0 -25
- package/dist/map-pin-CePILH-6.js +0 -16
- package/dist/map-pin-check-CtGVMySj.js +0 -23
- package/dist/map-pin-check-inside-BcfyBUM7.js +0 -14
- package/dist/map-pin-house-STJifC3c.js +0 -27
- package/dist/map-pin-minus-c5lDk9wf.js +0 -23
- package/dist/map-pin-minus-inside-DI58HPS5.js +0 -14
- package/dist/map-pin-off-DOGmzujc.js +0 -29
- package/dist/map-pin-pen-DsUhkoSe.js +0 -24
- package/dist/map-pin-plus-B5614eAi.js +0 -27
- package/dist/map-pin-plus-inside-qnfadv-4.js +0 -21
- package/dist/map-pin-search--4ur89iE.js +0 -29
- package/dist/map-pin-x-CUPECfhG.js +0 -27
- package/dist/map-pin-x-inside-DBsN1Y6Q.js +0 -21
- package/dist/map-pinned-Bh8aazZa.js +0 -23
- package/dist/map-plus-D7BVlwRz.js +0 -29
- package/dist/mars-B6-_RuP7.js +0 -23
- package/dist/mars-stroke-DfIY1KiJ.js +0 -27
- package/dist/martini-By77Q782.js +0 -21
- package/dist/maximize-2-LNO9Syad.js +0 -25
- package/dist/maximize-CgnEj64u.js +0 -25
- package/dist/medal-BKoCzpWI.js +0 -35
- package/dist/megaphone-YRDGPkNT.js +0 -21
- package/dist/megaphone-off-D6-stvaO.js +0 -29
- package/dist/memory-stick-D6VeBLD1.js +0 -57
- package/dist/menu-AVaWs8hN.js +0 -21
- package/dist/merge-DEAv9qoI.js +0 -21
- package/dist/message-circle-D7qDbIj2.js +0 -11
- package/dist/message-circle-check-DKGkTXvY.js +0 -14
- package/dist/message-circle-code-DDwZSQWK.js +0 -21
- package/dist/message-circle-dashed-Dqcoztxq.js +0 -41
- package/dist/message-circle-dashed-check-DNL1Yzf5.js +0 -45
- package/dist/message-circle-heart-CEYvNODj.js +0 -14
- package/dist/message-circle-more-CT5h_5A5.js +0 -25
- package/dist/message-circle-off-MQreLp4e.js +0 -21
- package/dist/message-circle-plus-CB3SulBD.js +0 -21
- package/dist/message-circle-question-mark-Bm0Q__qQ.js +0 -22
- package/dist/message-circle-reply-Bn8FdFGA.js +0 -21
- package/dist/message-circle-warning-3v3OyBTd.js +0 -21
- package/dist/message-circle-x-DW3Ndbg5.js +0 -21
- package/dist/message-square-DMvVGE_i.js +0 -11
- package/dist/message-square-check-D8uKc5sQ.js +0 -14
- package/dist/message-square-code-BDHRZFks.js +0 -21
- package/dist/message-square-dashed-CH2rCW54.js +0 -49
- package/dist/message-square-diff-NgEglF2B.js +0 -25
- package/dist/message-square-dot-9hMlAMrY.js +0 -16
- package/dist/message-square-heart-Y8Geku6s.js +0 -14
- package/dist/message-square-lock-CjtgQi97.js +0 -25
- package/dist/message-square-more-DvG3JC4u.js +0 -25
- package/dist/message-square-off-DBJXE_nq.js +0 -21
- package/dist/message-square-plus-CapnoAOs.js +0 -21
- package/dist/message-square-quote-bFDeBP3t.js +0 -21
- package/dist/message-square-reply-UWRfrGJW.js +0 -21
- package/dist/message-square-share-CVos2iRE.js +0 -21
- package/dist/message-square-text-D2BqPrJh.js +0 -25
- package/dist/message-square-warning-BuO1xSBZ.js +0 -21
- package/dist/message-square-x-Ddi0Z3wI.js +0 -21
- package/dist/messages-circle-CcsxWRcm.js +0 -14
- package/dist/messages-square-CsS1P9ga.js +0 -14
- package/dist/metronome-BwcFxmiS.js +0 -27
- package/dist/mic-ZHZV3F2r.js +0 -25
- package/dist/mic-audio-lines-DQgkm9nr.js +0 -49
- package/dist/mic-off-CnWXv_Rv.js +0 -33
- package/dist/mic-signal-BM94gxoe.js +0 -42
- package/dist/mic-vocal-CX-bGG04.js +0 -24
- package/dist/microchip-Ctw2K-1z.js +0 -53
- package/dist/microscope-CKGRIA49.js +0 -33
- package/dist/microwave-D95J9MDT.js +0 -37
- package/dist/midi-port-De_HqJw7.js +0 -39
- package/dist/milestone-B2vhod9k.js +0 -21
- package/dist/milk-ihfHSoYD.js +0 -21
- package/dist/milk-off-CbrRjd3v.js +0 -28
- package/dist/minimize-2-Je7Q6GZO.js +0 -25
- package/dist/minimize-CMyzrfd8.js +0 -25
- package/dist/minus-S-GmNTVH.js +0 -11
- package/dist/mirror-rectangular-BSiGVV1i.js +0 -25
- package/dist/mirror-round-qoe3imGZ.js +0 -31
- package/dist/monitor-B6fJys8h.js +0 -31
- package/dist/monitor-check-xRx1GHFJ.js +0 -29
- package/dist/monitor-cloud-CFdh6Rry.js +0 -29
- package/dist/monitor-cog-D6lG0WPO.js +0 -59
- package/dist/monitor-dot-C-tqOIAx.js +0 -27
- package/dist/monitor-down-DUstu8qu.js +0 -33
- package/dist/monitor-off-Biev0S93.js +0 -29
- package/dist/monitor-pause-TV6XsrQF.js +0 -33
- package/dist/monitor-pc-C--NtAtx.js +0 -41
- package/dist/monitor-play-Cuf85FC5.js +0 -29
- package/dist/monitor-smartphone-jru9-_Aq.js +0 -29
- package/dist/monitor-speaker-BvXEiiJz.js +0 -35
- package/dist/monitor-stop-DMrKIxGF.js +0 -33
- package/dist/monitor-up-C3J23aPK.js +0 -33
- package/dist/monitor-x-BY8BTNLl.js +0 -33
- package/dist/moon-Dh2qrrxg.js +0 -11
- package/dist/moon-star-C5rRXEgK.js +0 -21
- package/dist/mop-CrnqJvci.js +0 -21
- package/dist/mop-sparkles-DjjR9gyg.js +0 -49
- package/dist/mosque-CRn51oBy.js +0 -33
- package/dist/motorbike-D_DaUO9Z.js +0 -33
- package/dist/mountain-DyO6pZQr.js +0 -11
- package/dist/mountain-snow-elopguUo.js +0 -14
- package/dist/mouse-UtmJ72Pl.js +0 -18
- package/dist/mouse-left-p41rwiK1.js +0 -23
- package/dist/mouse-off-CTAHPPvz.js +0 -25
- package/dist/mouse-pointer-2-D2b-ISFh.js +0 -11
- package/dist/mouse-pointer-2-off-DOA9LCgA.js +0 -21
- package/dist/mouse-pointer-SN2MG34y.js +0 -14
- package/dist/mouse-pointer-ban-BEKGLVWp.js +0 -23
- package/dist/mouse-pointer-click-CL8MPSgy.js +0 -29
- package/dist/mouse-right-JkhS-bF0.js +0 -23
- package/dist/mouth-VQvtQXRo.js +0 -14
- package/dist/mouth-off--xCaSqga.js +0 -29
- package/dist/move-3d-CPeX8qIZ.js +0 -26
- package/dist/move-DdUuonwZ.js +0 -33
- package/dist/move-diagonal-2-pC-M7SwS.js +0 -21
- package/dist/move-diagonal-_BAunHP_.js +0 -21
- package/dist/move-down-OkIprdkA.js +0 -14
- package/dist/move-down-left-D1U7oqqD.js +0 -14
- package/dist/move-down-right-fcfs4z8A.js +0 -14
- package/dist/move-horizontal-BP1y0Sao.js +0 -21
- package/dist/move-left-BxoVB0-E.js +0 -14
- package/dist/move-right-D4EcQb7q.js +0 -14
- package/dist/move-up-BnptQv7M.js +0 -14
- package/dist/move-up-left-C5O6X9FH.js +0 -14
- package/dist/move-up-right-C_dR_0PX.js +0 -14
- package/dist/move-vertical-Ch0VxBgN.js +0 -21
- package/dist/music-2-Dk5h4OIH.js +0 -16
- package/dist/music-3-CoLEcl9m.js +0 -16
- package/dist/music-4-D54m18uw.js +0 -29
- package/dist/music-TQCr7X6Z.js +0 -25
- package/dist/navigation-2-DL5G3o-c.js +0 -11
- package/dist/navigation-2-off-DcffUxgP.js +0 -24
- package/dist/navigation-RRLXuonO.js +0 -11
- package/dist/navigation-off-DtjfkAx_.js +0 -24
- package/dist/nepali-rupee-DcZHsYyK.js +0 -29
- package/dist/network-DjHXfMd0.js +0 -41
- package/dist/newspaper-CFY_HXKt.js +0 -29
- package/dist/nfc-Djidrzzc.js +0 -25
- package/dist/non-binary-nYA0NgJ1.js +0 -27
- package/dist/notebook-C7NglV1Q.js +0 -37
- package/dist/notebook-dot-ooOdXsY7.js +0 -39
- package/dist/notebook-pen-BFOmkbqZ.js +0 -33
- package/dist/notebook-tabs-xC23Xh4k.js +0 -49
- package/dist/notebook-text-DIeOJw-2.js +0 -45
- package/dist/notepad-text-BBJUVHyu.js +0 -41
- package/dist/notepad-text-dashed-CkPnShYD.js +0 -61
- package/dist/notices-CpLQvElz.cjs +0 -1
- package/dist/notices-qCN12Smf.js +0 -29
- package/dist/nut-C5GmUuyC.js +0 -21
- package/dist/nut-off-DmNjL0yg.js +0 -32
- package/dist/octagon-CQO6ikUo.js +0 -11
- package/dist/octagon-alert-k8aiUeF-.js +0 -22
- package/dist/octagon-minus-BfkNDWK_.js +0 -14
- package/dist/octagon-pause-DP-UtkvB.js +0 -22
- package/dist/octagon-x-DHdZmpjy.js +0 -22
- package/dist/omega-BZOl4iTU.js +0 -11
- package/dist/option-j-hLYhv-.js +0 -14
- package/dist/orbit-Bplm3Xhf.js +0 -35
- package/dist/origami-DwJNVgzU.js +0 -21
- package/dist/ownerMail-CQrDWuxT.cjs +0 -1
- package/dist/ownerMail-D3Jkd3ew.js +0 -55
- package/dist/package-2-D6D6UOYL.js +0 -21
- package/dist/package-DbBdFG4s.js +0 -25
- package/dist/package-check-DjldMTbo.js +0 -29
- package/dist/package-minus-CEyB-B9L.js +0 -29
- package/dist/package-open-BHGit8pC.js +0 -25
- package/dist/package-plus-BQecW4UZ.js +0 -33
- package/dist/package-search-BI47DbAh.js +0 -35
- package/dist/package-x-CkKZBxds.js +0 -33
- package/dist/pageFiles-C6inu-vO.cjs +0 -1
- package/dist/pageFiles-CXkCxVU1.js +0 -45
- package/dist/pages/BookingPage.d.ts +0 -19
- package/dist/pages/MeetPage.d.ts +0 -31
- package/dist/pages/MyBookings.d.ts +0 -3
- package/dist/pages/ScheduleAdmin.d.ts +0 -63
- package/dist/paidInFull-CblGg_dC.cjs +0 -1
- package/dist/paidInFull-OJIQq219.js +0 -55
- package/dist/paidSessions-Bj0osHkr.js +0 -766
- package/dist/paidSessions-D0L6_Ttl.cjs +0 -1
- package/dist/paint-bucket-DUPXfCp6.js +0 -25
- package/dist/paint-roller-Du5Rsvoa.js +0 -29
- package/dist/paintbrush-BH-VeGps.js +0 -21
- package/dist/paintbrush-vertical-C7h3cjHC.js +0 -26
- package/dist/palette-bHT0DpMr.js +0 -41
- package/dist/panda-CN0kt12Q.js +0 -33
- package/dist/panel-bottom-D5nfhy3I.js +0 -18
- package/dist/panel-bottom-close-CiKMx0EO.js +0 -25
- package/dist/panel-bottom-dashed-D4h77LOg.js +0 -34
- package/dist/panel-bottom-open-CgxpeJhz.js +0 -25
- package/dist/panel-left-DS5GBuE-.js +0 -19
- package/dist/panel-left-close-BIQ99rKk.js +0 -26
- package/dist/panel-left-dashed-DKNX5OvL.js +0 -34
- package/dist/panel-left-open-C9aOgL6q.js +0 -26
- package/dist/panel-left-right-dashed-TGcUW7jX.js +0 -49
- package/dist/panel-right-BikOYlHY.js +0 -18
- package/dist/panel-right-close-Bg8AlRs7.js +0 -25
- package/dist/panel-right-dashed-BGR_ybNb.js +0 -34
- package/dist/panel-right-open-BY8SvB77.js +0 -25
- package/dist/panel-top-bJi77OFO.js +0 -18
- package/dist/panel-top-bottom-dashed-DAx5mmjf.js +0 -49
- package/dist/panel-top-close-DuqgeeYW.js +0 -25
- package/dist/panel-top-dashed-Bfd2MVl9.js +0 -34
- package/dist/panel-top-open-1kmw-aZN.js +0 -25
- package/dist/panels-left-bottom-rozW-LQq.js +0 -25
- package/dist/panels-right-bottom-D5tCgwNb.js +0 -25
- package/dist/panels-top-left-CvCjwc-R.js +0 -26
- package/dist/paper-bag-SCqngeYK.js +0 -14
- package/dist/paperclip-3FWDkHNU.js +0 -11
- package/dist/parasol-5YZivDRk.js +0 -21
- package/dist/parentheses-DDjMwMMZ.js +0 -14
- package/dist/park-DKiDO9fx.js +0 -43
- package/dist/parking-meter-B51qtpyH.js +0 -29
- package/dist/party-popper-B8e5svvc.js +0 -45
- package/dist/pause-D1WTf18f.js +0 -22
- package/dist/paw-print-BHmSXg4T.js +0 -31
- package/dist/pc-case-ItcE2NUL.js +0 -29
- package/dist/pdf-DjLu-a2W.js +0 -18903
- package/dist/pdf.worker.min-CGs-IrcZ.js +0 -4
- package/dist/pen-DDC8MSck.js +0 -12
- package/dist/pen-line-BVbhZq9a.js +0 -15
- package/dist/pen-off-CH3jjMfG.js +0 -21
- package/dist/pen-tool-B5LQ_UNH.js +0 -27
- package/dist/pencil-C9-JK4Ad.js +0 -14
- package/dist/pencil-Ca8JSmp0.cjs +0 -1
- package/dist/pencil-Ky1_KOW7.js +0 -17
- package/dist/pencil-line-Cx70mtIq.js +0 -21
- package/dist/pencil-off-oKZINuQ_.js +0 -25
- package/dist/pencil-ruler-CLIgK86h.js +0 -33
- package/dist/pencil-sparkles-CoS4vYud.js +0 -41
- package/dist/pentagon-BM3Pk92R.js +0 -11
- package/dist/people-DcGObnr7.js +0 -105
- package/dist/people-bX5zI1YC.cjs +0 -1
- package/dist/percent-3ec6M-Wm.js +0 -28
- package/dist/person-standing-BhfSzcM2.js +0 -27
- package/dist/phi-BH_76_Il.js +0 -16
- package/dist/philippine-peso-C7aZGaQi.js +0 -21
- package/dist/phone-D4xjq5Nu.js +0 -11
- package/dist/phone-call-DeZ4rZhS.js +0 -21
- package/dist/phone-forwarded-DRAeEZIm.js +0 -21
- package/dist/phone-incoming-DqDnfF9j.js +0 -21
- package/dist/phone-missed-CCyFtCdj.js +0 -21
- package/dist/phone-off-D1m2NBce.js +0 -21
- package/dist/phone-outgoing-CN4DQhDa.js +0 -21
- package/dist/pi-DMBG6uwz.js +0 -24
- package/dist/piano-DI8Rc06E.js +0 -33
- package/dist/pickaxe-Dg_f5ykP.js +0 -25
- package/dist/picture-in-picture-2-u8zrmz5i.js +0 -18
- package/dist/picture-in-picture-C-m7DqVR.js +0 -33
- package/dist/piggy-bank-D-rYdGzU.js +0 -21
- package/dist/pilcrow-DIFGoSdm.js +0 -21
- package/dist/pilcrow-left-Dx2a-2Vs.js +0 -29
- package/dist/pilcrow-right-Bauh-L9p.js +0 -29
- package/dist/pill-DD2hKnQe.js +0 -14
- package/dist/pill-bottle-DUGiJrLZ.js +0 -25
- package/dist/pin-D5duUN6U.js +0 -14
- package/dist/pin-off-D8O6r131.js +0 -25
- package/dist/pipette-C_Mf2rII.js +0 -21
- package/dist/pizza-CJLxD-OB.js +0 -29
- package/dist/plane-CcNXgPLV.js +0 -11
- package/dist/plane-landing-CW2hlo_a.js +0 -14
- package/dist/plane-takeoff-B3fh9x6a.js +0 -14
- package/dist/plant-pot-BhekV0hq.js +0 -21
- package/dist/play-off-CBMDIXTi.js +0 -21
- package/dist/play-tIiImGa1.js +0 -11
- package/dist/playing-card-BVaTa-VE.js +0 -18
- package/dist/playing-cards-ALw2T2DC.js +0 -25
- package/dist/playing-cards-fan-C7EYxZmn.js +0 -21
- package/dist/plug-2-v9wYPH-7.js +0 -29
- package/dist/plug-_GO3FMfn.js +0 -25
- package/dist/plug-zap-F6i4oCLE.js +0 -30
- package/dist/plus-CHEPtsDm.js +0 -17
- package/dist/plus-DPIRfJEV.js +0 -14
- package/dist/pocket-knife-Bnh_ydz-.js +0 -29
- package/dist/podium-CZz2lqMb.js +0 -21
- package/dist/pointer-OKvrlIVn.js +0 -29
- package/dist/pointer-off-CY12UdCD.js +0 -33
- package/dist/popcorn-BJouLffo.js +0 -25
- package/dist/popsicle-CTky7bcf.js +0 -14
- package/dist/pound-sterling-iE9eMuq_.js +0 -25
- package/dist/power-Bunn3cMZ.js +0 -17
- package/dist/power-Cvalm1Rn.js +0 -14
- package/dist/power-off-Dhie6apq.js +0 -25
- package/dist/presentation-rXC7qoHq.js +0 -21
- package/dist/printer-DCpiDfhb.js +0 -25
- package/dist/printer-check-BhuEHfpZ.js +0 -25
- package/dist/printer-x-DjTcA0w9.js +0 -29
- package/dist/projector-D_Lgyuks.js +0 -35
- package/dist/proportions-DUy_zcZK.js +0 -25
- package/dist/publishSteps-Cmxf9Gg2.cjs +0 -1
- package/dist/publishSteps-aHnM_2sT.js +0 -88
- package/dist/puzzle-CNI_RTtl.js +0 -11
- package/dist/pyramid-_bv3FRPa.js +0 -14
- package/dist/qr-code-BRdAbw1D.js +0 -69
- package/dist/quote-COZWOe57.js +0 -14
- package/dist/rabbit-OS5FLbyb.js +0 -29
- package/dist/radar-Ch3SF1Ie.js +0 -43
- package/dist/radiation-DCL14gmp.js +0 -25
- package/dist/radical-CckFlFv7.js +0 -11
- package/dist/radio-CEcDns82.js +0 -31
- package/dist/radio-off-D3OzUu5g.js +0 -33
- package/dist/radio-receiver-BbH7cybg.js +0 -29
- package/dist/radio-tower-xTyPQ37V.js +0 -39
- package/dist/radius-nczG_jLo.js +0 -29
- package/dist/rainbow-cpqyCbU2.js +0 -21
- package/dist/rat-C2BqkiqJ.js +0 -29
- package/dist/ratio-CBwUzp1J.js +0 -22
- package/dist/receipt-BuvPPBzz.js +0 -21
- package/dist/receipt-cent-Chh_q3Ru.js +0 -21
- package/dist/receipt-euro-DrzmU2eX.js +0 -21
- package/dist/receipt-indian-rupee-BUzct9Gs.js +0 -25
- package/dist/receipt-japanese-yen-iZQTv6Cv.js +0 -29
- package/dist/receipt-pound-sterling-Ce4P2thq.js +0 -25
- package/dist/receipt-russian-ruble-Di7FH8MC.js +0 -21
- package/dist/receipt-swiss-franc-BlCwOdFJ.js +0 -25
- package/dist/receipt-text-CTPfkzzE.js +0 -25
- package/dist/receipt-turkish-lira-CpTClkNk.js +0 -21
- package/dist/recordLock-2EYkwefc.cjs +0 -1
- package/dist/recordLock-B3o2vSo-.js +0 -103
- package/dist/recordsKey-C_hi_c6n.js +0 -141
- package/dist/recordsKey-vkJNhd8J.cjs +0 -1
- package/dist/rectangle-circle-CopNT9uc.js +0 -16
- package/dist/rectangle-ellipsis-D2b2tLNj.js +0 -30
- package/dist/rectangle-goggles-BVY8ccnA.js +0 -11
- package/dist/rectangle-horizontal-B8NohT4P.js +0 -15
- package/dist/rectangle-vertical-DoiqWeiK.js +0 -15
- package/dist/recycle-CdLYinBI.js +0 -33
- package/dist/redo-2-DPn0yAgN.js +0 -14
- package/dist/redo-arTshs7c.js +0 -14
- package/dist/redo-dot-DcjXhBbY.js +0 -23
- package/dist/refresh-ccw-DcWWBxZ0.js +0 -25
- package/dist/refresh-ccw-dot-CzPROVEp.js +0 -31
- package/dist/refresh-cw-CD4MogPU.js +0 -25
- package/dist/refresh-cw-off-Dwq56b6p.js +0 -37
- package/dist/refrigerator-CfhjLaOa.js +0 -21
- package/dist/regex-CA-1W4ZB.js +0 -25
- package/dist/registrationFields-Bf9hsZE-.cjs +0 -1
- package/dist/registrationFields-DWOymzIT.js +0 -196
- package/dist/remove-formatting-C0ZSvnJH.js +0 -29
- package/dist/repeat-1-DLMYyzBV.js +0 -29
- package/dist/repeat-2-BqcYYANj.js +0 -25
- package/dist/repeat-DGwEq3b-.js +0 -25
- package/dist/repeat-off-Ctq7F6Q0.js +0 -37
- package/dist/replace-CR5zmaqX.js +0 -41
- package/dist/replace-all-BlKpDS10.js +0 -49
- package/dist/reply-BlzrNOWf.js +0 -17
- package/dist/reply-DA0a3lVR.js +0 -14
- package/dist/reply-all-DgfM6rb3.js +0 -21
- package/dist/rewind-C77poX9c.js +0 -14
- package/dist/ribbon-C2BwV5o9.js +0 -29
- package/dist/road-Bog5rDpN.js +0 -25
- package/dist/robot-arm-C-60RSHf.js +0 -35
- package/dist/robot-vacuum-DuCUKPRV.js +0 -43
- package/dist/rocket-BB4m6DkT.js +0 -25
- package/dist/rocking-chair-Qp6WucsN.js +0 -25
- package/dist/roles-BQ8uD0g2.js +0 -147
- package/dist/roles-EHMH7Ls2.cjs +0 -1
- package/dist/roller-coaster-Cqr8x9c2.js +0 -37
- package/dist/rose-D-2YlFlB.js +0 -31
- package/dist/rotate-3d-sChVmFca.js +0 -22
- package/dist/rotate-ccw-I6jqcr9H.js +0 -14
- package/dist/rotate-ccw-clock-3k3e_z7a.js +0 -22
- package/dist/rotate-ccw-key-CVbAceqZ.js +0 -31
- package/dist/rotate-ccw-square-DeHbDVvf.js +0 -21
- package/dist/rotate-cw-F93vcaww.js +0 -14
- package/dist/rotate-cw-clock-BGZHG2Hq.js +0 -21
- package/dist/rotate-cw-fading-clock-TeKeMvFj.js +0 -49
- package/dist/rotate-cw-square-WJEBHScU.js +0 -21
- package/dist/route-BzzXc4PR.js +0 -25
- package/dist/route-off-C4tN8XbP.js +0 -41
- package/dist/router-pM5t5_8C.js +0 -37
- package/dist/rows-2-DouDzEDf.js +0 -19
- package/dist/rows-3-ZDUpSBeB.js +0 -26
- package/dist/rows-4-o77NcHUg.js +0 -29
- package/dist/rss-BQ4U3jqs.js +0 -23
- package/dist/ruler-DELfxlXh.js +0 -29
- package/dist/ruler-dimension-line-DqydBHAH.js +0 -45
- package/dist/russian-ruble-BLCY0D2s.js +0 -14
- package/dist/sailboat-CbpJma8S.js +0 -21
- package/dist/salad-D-368cCM.js +0 -29
- package/dist/sandwich-DwrOhYVP.js +0 -33
- package/dist/satellite-BEPJ6Dzj.js +0 -29
- package/dist/satellite-dish-KL1rspiL.js +0 -25
- package/dist/saudi-riyal-B-Z7XYgX.js +0 -25
- package/dist/save-Bj6vpn5M.js +0 -21
- package/dist/save-all-D-0sIPe0.js +0 -25
- package/dist/save-check-BHGX5riE.js +0 -25
- package/dist/save-off-B_qoItuL.js +0 -33
- package/dist/save-pen-DbqdDL5H.js +0 -25
- package/dist/save-plus-C0cyC-of.js +0 -29
- package/dist/scale-3d-uS3Bud3T.js +0 -30
- package/dist/scale-CDNRkumd.js +0 -29
- package/dist/scaling-lzSpbSMf.js +0 -25
- package/dist/scan-BtDQWdmt.js +0 -25
- package/dist/scan-barcode-BzDhTw_8.js +0 -37
- package/dist/scan-box-CuiRGDqQ.js +0 -37
- package/dist/scan-eye-a_7v2Qf_.js +0 -35
- package/dist/scan-face-Zhin0BJC.js +0 -37
- package/dist/scan-heart-DKC5_Y4F.js +0 -29
- package/dist/scan-line-DDTrMcVU.js +0 -29
- package/dist/scan-qr-code-D5mz014H.js +0 -45
- package/dist/scan-search-D_5xBaYc.js +0 -35
- package/dist/scan-square-D5JUVsRU.js +0 -33
- package/dist/scan-text-BCLWTfgA.js +0 -37
- package/dist/schedule-BAea6q8_.cjs +0 -2
- package/dist/schedule-C13m_kiO.js +0 -1113
- package/dist/scheduleData-BFw-Zq_L.js +0 -814
- package/dist/scheduleData-di4j8hyk.cjs +0 -1
- package/dist/school-xtFeWkeg.js +0 -35
- package/dist/scissors-CsqPrKx7.js +0 -33
- package/dist/scissors-line-dashed-DppEZTxp.js +0 -41
- package/dist/scooter-B1AHfV-v.js +0 -29
- package/dist/screen-share-fVyuvUaD.js +0 -29
- package/dist/screen-share-off-B5AilasD.js +0 -29
- package/dist/scroll-r82NLvBL.js +0 -14
- package/dist/scroll-text-BSRk-nuB.js +0 -25
- package/dist/search-BfyCDnxh.js +0 -16
- package/dist/search-alert-DMLHsSMj.js +0 -27
- package/dist/search-check-CdrJYOgc.js +0 -23
- package/dist/search-code-DRTEutgs.js +0 -27
- package/dist/search-slash-Bl3WqEza.js +0 -23
- package/dist/search-x-iKwhMLti.js +0 -27
- package/dist/section-sbUV2_LZ.js +0 -14
- package/dist/send-DYfoZDEL.js +0 -17
- package/dist/send-gzdrfRY3.js +0 -14
- package/dist/send-horizontal-Y1YgYixm.js +0 -15
- package/dist/send-to-back-DsD_07fr.js +0 -33
- package/dist/separator-horizontal-BzqFPqrR.js +0 -21
- package/dist/separator-vertical-CWrPTO4B.js +0 -21
- package/dist/server/bookingPay.d.ts +0 -119
- package/dist/server-ODJWm15G.js +0 -41
- package/dist/server-cog-BCiCgXT1.js +0 -57
- package/dist/server-crash-Bokx2sdt.js +0 -29
- package/dist/server-off-Chg9JQ4O.js +0 -33
- package/dist/server-plus-C_4jtSYQ.js +0 -33
- package/dist/serviceStatus-BKW_NnE2.cjs +0 -1
- package/dist/serviceStatus-DVOtSN_f.js +0 -82
- package/dist/serviceSwitches-B9Q1bMqh.js +0 -111
- package/dist/serviceSwitches-Cv52OOM_.cjs +0 -1
- package/dist/settings-2-DRR8uHmG.js +0 -29
- package/dist/settings-BkwohctP.js +0 -16
- package/dist/shapes-KlVbYR1e.js +0 -27
- package/dist/share-2-C73wvZUu.js +0 -41
- package/dist/share-CCUWZAuG.js +0 -21
- package/dist/sheet-MQvYrM2m.js +0 -46
- package/dist/shell-DYzposSa.js +0 -11
- package/dist/shelving-unit-g67D6rGD.js +0 -37
- package/dist/shield-7vavHQlm.js +0 -11
- package/dist/shield-alert-BD6PM0z2.js +0 -21
- package/dist/shield-ban-2TFexJX9.js +0 -14
- package/dist/shield-check-BYUqPX0u.js +0 -17
- package/dist/shield-check-BkYkJ1tf.js +0 -14
- package/dist/shield-cog-CV0v58Rm.js +0 -51
- package/dist/shield-cog-corner-pb8mr8s8.js +0 -51
- package/dist/shield-ellipsis-D6MMBJN7.js +0 -25
- package/dist/shield-half-YyToW-rY.js +0 -14
- package/dist/shield-keyhole-2gx8awHY.js +0 -23
- package/dist/shield-lock-Meq5xLFP.js +0 -25
- package/dist/shield-minus-D1JI9sgC.js +0 -14
- package/dist/shield-off-r98G2ZTJ.js +0 -21
- package/dist/shield-plus-DKfnz7OL.js +0 -21
- package/dist/shield-question-mark-BAeXRGk0.js +0 -22
- package/dist/shield-user-wePDHMxR.js +0 -23
- package/dist/shield-x-BWs4-JFH.js +0 -22
- package/dist/ship-BAj4ZDMk.js +0 -29
- package/dist/ship-cargo-CiO4-mV9.js +0 -29
- package/dist/ship-wheel-BuW0LIMr.js +0 -53
- package/dist/shirt-C8dyHl-e.js +0 -11
- package/dist/shopping-bag-DEkjP6zi.js +0 -21
- package/dist/shopping-basket-oVJLKFhy.js +0 -37
- package/dist/shopping-cart-B7EaUOIi.js +0 -29
- package/dist/shopping-cart-minus-Bklg8xJD.js +0 -37
- package/dist/shopping-cart-plus-vnXUSjZI.js +0 -41
- package/dist/shovel-BtcW0EGZ.js +0 -21
- package/dist/shower-head-BH7NfXsP.js +0 -49
- package/dist/shredder-UX0Dpmzx.js +0 -37
- package/dist/shrimp-CPAmZr8-.js +0 -29
- package/dist/shrimp-off-CBZRcTAo.js +0 -37
- package/dist/shrink-CkN7RP-b.js +0 -25
- package/dist/shrub-DOWJ61r3.js +0 -21
- package/dist/shuffle-DM_vye1W.js +0 -29
- package/dist/sigma-lqkg8MoR.js +0 -11
- package/dist/signal-BV3HjBQg.js +0 -29
- package/dist/signal-high-HVhAuEtC.js +0 -25
- package/dist/signal-low-B9ZaC2iL.js +0 -14
- package/dist/signal-medium-CGotJaw4.js +0 -21
- package/dist/signal-zero-Cs3rRJvl.js +0 -11
- package/dist/signature-HNplvi8L.js +0 -14
- package/dist/signpost-BRlNRYp4.js +0 -21
- package/dist/signpost-big-CvYvibGL.js +0 -25
- package/dist/siren-DvFVTN6P.js +0 -41
- package/dist/skip-back-Bs-rY6p6.js +0 -14
- package/dist/skip-forward-BA-rV0sN.js +0 -14
- package/dist/skull-4Ee3bm1P.js +0 -29
- package/dist/slash-C-m-YbfI.js +0 -11
- package/dist/slice-f28tdqTP.js +0 -11
- package/dist/sliders-horizontal-ByuZx1gl.js +0 -45
- package/dist/sliders-vertical-GbVJd7oe.js +0 -46
- package/dist/smartphone-BFtVawWY.js +0 -19
- package/dist/smartphone-charging-CFLgzZT2.js +0 -19
- package/dist/smartphone-nfc-C7ucf11E.js +0 -29
- package/dist/snail-Cy1vVDS2.js +0 -31
- package/dist/snowflake-ScNVhpog.js +0 -57
- package/dist/soap-dispenser-droplet-DTlHGz-f.js +0 -25
- package/dist/sofa-wVpyKL70.js +0 -29
- package/dist/solar-panel-B1vv063w.js +0 -37
- package/dist/soup-2kLqHywh.js +0 -33
- package/dist/space-DGkscoCH.js +0 -11
- package/dist/spade-X4GPOZyW.js +0 -14
- package/dist/sparkle-jhQSb2L5.js +0 -11
- package/dist/sparkles-D81jqYXP.js +0 -28
- package/dist/speaker-R3JZciqv.js +0 -31
- package/dist/speech-Cj1ThvWH.js +0 -21
- package/dist/spell-check-2-BhlK33JF.js +0 -21
- package/dist/spell-check-82XdE8d-.js +0 -21
- package/dist/spline-CggTmJwx.js +0 -25
- package/dist/spline-pointer-BrpZMxyT.js +0 -29
- package/dist/split-CcvUbGvO.js +0 -25
- package/dist/spool-DmUCLRA7.js +0 -14
- package/dist/sport-shoe-UUuorIhM.js +0 -21
- package/dist/spotlight-NOX_UgX4.js +0 -29
- package/dist/spray-can-DdUiV9A0.js +0 -52
- package/dist/sprout-DLiHPtVt.js +0 -21
- package/dist/square-CR10rGTo.js +0 -15
- package/dist/square-activity-LuwI6orG.js +0 -19
- package/dist/square-arrow-down-CXnxEXz4.js +0 -26
- package/dist/square-arrow-down-left-BCqUcs0e.js +0 -26
- package/dist/square-arrow-down-right-DdQ5wN2k.js +0 -26
- package/dist/square-arrow-left-B2XdGF0E.js +0 -26
- package/dist/square-arrow-out-down-left-D72di7cJ.js +0 -22
- package/dist/square-arrow-out-down-right-C5kIFdk3.js +0 -22
- package/dist/square-arrow-out-up-left-4ahIn4j0.js +0 -22
- package/dist/square-arrow-out-up-right-VSvASj4J.js +0 -22
- package/dist/square-arrow-right-DxYqSZQj.js +0 -26
- package/dist/square-arrow-right-enter-BJF5u3x8.js +0 -21
- package/dist/square-arrow-right-exit-BN65m0vq.js +0 -21
- package/dist/square-arrow-up-DR-I5h64.js +0 -26
- package/dist/square-arrow-up-left-HODFy6s4.js +0 -26
- package/dist/square-arrow-up-right-GjrXimKw.js +0 -26
- package/dist/square-asterisk-IkxOcRI_.js +0 -30
- package/dist/square-bookmark-D7vPi7OX.js +0 -19
- package/dist/square-bottom-dashed-scissors-BRxZU_JX.js +0 -46
- package/dist/square-centerline-dashed-horizontal-B2LhJDxh.js +0 -34
- package/dist/square-centerline-dashed-vertical-n2hEO2QB.js +0 -34
- package/dist/square-chart-gantt-DyO3lmZE.js +0 -30
- package/dist/square-check-7Ts3y6AU.js +0 -19
- package/dist/square-check-big-Bh683w8Q.js +0 -15
- package/dist/square-chevron-down-DQ8oRrKO.js +0 -19
- package/dist/square-chevron-left-CxpOvn8h.js +0 -19
- package/dist/square-chevron-right-BWxCSgOJ.js +0 -19
- package/dist/square-chevron-up-BIQk9la4.js +0 -19
- package/dist/square-code-CE8L8oqk.js +0 -26
- package/dist/square-dashed-C16rHzJz.js +0 -58
- package/dist/square-dashed-bottom-DsCPJ7WO.js +0 -21
- package/dist/square-dashed-bottom-code-w9NQ_iJ_.js +0 -29
- package/dist/square-dashed-kanban-Cz3ZTH_k.js +0 -70
- package/dist/square-dashed-mouse-pointer-DsEOqtg-.js +0 -50
- package/dist/square-dashed-plus-BRWljl7f.js +0 -65
- package/dist/square-dashed-text-Ds-sl9gm.js +0 -70
- package/dist/square-dashed-top-solid-Bp4jT-As.js +0 -45
- package/dist/square-dashed-x-Df3joY8i.js +0 -65
- package/dist/square-dashed-x-corner-Eb5FP2fd.js +0 -53
- package/dist/square-dimensions-DGZHkOG6.js +0 -25
- package/dist/square-divide-BoF7wGF5.js +0 -40
- package/dist/square-dot-pmvGYhMu.js +0 -21
- package/dist/square-equal-CrjPL4LB.js +0 -26
- package/dist/square-exclamation-point-D8mUPtPa.js +0 -31
- package/dist/square-function-CGS5eYvR.js +0 -27
- package/dist/square-kanban-BgVkUO0G.js +0 -30
- package/dist/square-library-NmTayToc.js +0 -30
- package/dist/square-m-C6omF2iJ.js +0 -19
- package/dist/square-menu-TmiknIhB.js +0 -30
- package/dist/square-minus-BPGqNAc2.js +0 -19
- package/dist/square-mouse-pointer-DNxFALW5.js +0 -15
- package/dist/square-off-D1o4zQ4j.js +0 -21
- package/dist/square-parking-CLpbdSoy.js +0 -19
- package/dist/square-parking-off-DDHmJeAH.js +0 -30
- package/dist/square-pause-pnai8S5v.js +0 -31
- package/dist/square-pen-BYrbUPrn.js +0 -19
- package/dist/square-percent-Iw_fZ98H.js +0 -30
- package/dist/square-pi-DwNKGcoi.js +0 -30
- package/dist/square-pilcrow-w_qG4FGb.js +0 -30
- package/dist/square-play-BNjGMiRt.js +0 -19
- package/dist/square-plus-DMfFAhuO.js +0 -26
- package/dist/square-power-CSdo2Ehv.js +0 -26
- package/dist/square-radical-CzSh55vS.js +0 -18
- package/dist/square-round-corner-CGbT_5sj.js +0 -14
- package/dist/square-scissors-Q2qsWj0R.js +0 -42
- package/dist/square-sigma-BOzG9Ky3.js +0 -19
- package/dist/square-slash-Ci7Cu3c9.js +0 -22
- package/dist/square-split-horizontal-Bsq44o7P.js +0 -22
- package/dist/square-split-vertical-BlkcuWsU.js +0 -22
- package/dist/square-square-ILrodV9B.js +0 -22
- package/dist/square-stack-B1ViwoU4.js +0 -25
- package/dist/square-star-cUOU5lBu.js +0 -18
- package/dist/square-stop-BHoP6zWn.js +0 -22
- package/dist/square-terminal-CMY8eVz7.js +0 -27
- package/dist/square-text-BjzbSkwj.js +0 -29
- package/dist/square-user-CpYYxLiA.js +0 -28
- package/dist/square-user-round-CEOUBH4k.js +0 -28
- package/dist/square-x-CGakimYD.js +0 -27
- package/dist/squares-exclude-z9ctCsZy.js +0 -14
- package/dist/squares-intersect-DGTlULcr.js +0 -53
- package/dist/squares-subtract-CVzjivdR.js +0 -33
- package/dist/squares-unite-CNJViCpw.js +0 -11
- package/dist/squircle-B495UIcP.js +0 -11
- package/dist/squircle-dashed-Bi6vKRjp.js +0 -41
- package/dist/squirrel-9kQM936L.js +0 -25
- package/dist/stamp-DKgl9a9u.js +0 -21
- package/dist/star-Bh4wGX_i.js +0 -11
- package/dist/star-check-jmyUppXf.js +0 -14
- package/dist/star-half-Bip9eA4l.js +0 -11
- package/dist/star-minus-B5B15W05.js +0 -14
- package/dist/star-off-L_I3x25f.js +0 -21
- package/dist/star-plus-D9wRwy9y.js +0 -21
- package/dist/star-x-CEpPlS1K.js +0 -21
- package/dist/step-back-_oVTDAps.js +0 -14
- package/dist/step-forward-C3IisESW.js +0 -14
- package/dist/stethoscope-BNHTu1jO.js +0 -31
- package/dist/sticker-C-v_jcyL.js +0 -29
- package/dist/sticky-note-CHsROCaK.js +0 -14
- package/dist/sticky-note-check-CJdTdsvA.js +0 -21
- package/dist/sticky-note-minus-Crxs4QYo.js +0 -21
- package/dist/sticky-note-off-BQPYfo3l.js +0 -25
- package/dist/sticky-note-plus-D4nHrKxq.js +0 -25
- package/dist/sticky-note-x-ChGaTd_r.js +0 -25
- package/dist/sticky-notes-BDn3OLFd.js +0 -25
- package/dist/stone-CLPspkk9.js +0 -21
- package/dist/store-Cj0xb009.js +0 -21
- package/dist/stretch-horizontal-B3W7-oDz.js +0 -22
- package/dist/stretch-vertical-BekDB8do.js +0 -22
- package/dist/strikethrough-NqZA7-_c.js +0 -24
- package/dist/subscript-EXuR2tLo.js +0 -21
- package/dist/summary-HjJlWT3s.js +0 -29
- package/dist/sun-BRW0eMd5.js +0 -47
- package/dist/sun-dim-D1yBus3b.js +0 -47
- package/dist/sun-medium-Dq1tf3mY.js +0 -47
- package/dist/sun-moon-CkmYHK-I.js +0 -29
- package/dist/sun-snow-DHbxo5rZ.js +0 -53
- package/dist/sunrise-psuJPceK.js +0 -41
- package/dist/sunset-DCORec8q.js +0 -41
- package/dist/superscript-DYFH0JD4.js +0 -21
- package/dist/swatch-book-CeXc3fQV.js +0 -25
- package/dist/swiss-franc-CwD8I742.js +0 -21
- package/dist/switch-camera-fUHxhOZw.js +0 -31
- package/dist/sword-BCNtw70s.js +0 -25
- package/dist/swords-D92XSzjF.js +0 -41
- package/dist/syringe-Noi4KSbf.js +0 -33
- package/dist/tabAudience-BJhBbPnK.cjs +0 -1
- package/dist/tabAudience-x5zGGP7z.js +0 -34
- package/dist/table-2-DwVPWZMz.js +0 -25
- package/dist/table-BaGvxRew.js +0 -29
- package/dist/table-cells-merge-sP1361hI.js +0 -33
- package/dist/table-cells-split-DqDUpRgH.js +0 -29
- package/dist/table-columns-split-CBgDMdgx.js +0 -53
- package/dist/table-of-contents-DiDPSuZa.js +0 -33
- package/dist/table-properties-axixoJu9.js +0 -29
- package/dist/table-rows-split-BBXMqeEa.js +0 -53
- package/dist/tablet-DIs64D7m.js +0 -22
- package/dist/tablet-smartphone-fjPDOC1F.js +0 -25
- package/dist/tablets-C8liitQg.js +0 -29
- package/dist/tag-CpqRFXRt.js +0 -17
- package/dist/tag-plus-Dd08Q3rg.js +0 -28
- package/dist/tag-x-Bs7XrBWX.js +0 -28
- package/dist/tags-DVYJMD7k.js +0 -24
- package/dist/tally-1-CbMSzEAn.js +0 -11
- package/dist/tally-2-Yobv_a7y.js +0 -14
- package/dist/tally-3-BgJDFiIf.js +0 -21
- package/dist/tally-4-BxiRPpCk.js +0 -25
- package/dist/tally-5-BGpjVjJr.js +0 -29
- package/dist/tangent-8sLbrwvY.js +0 -29
- package/dist/target-9758_145.js +0 -27
- package/dist/telescope-Bp1_5TVk.js +0 -39
- package/dist/tent-D1ZBNKiu.js +0 -25
- package/dist/tent-tree-BlTpHRHp.js +0 -39
- package/dist/terminal-T8wwDC-Q.js +0 -14
- package/dist/test-tube-D-wADlj9.js +0 -21
- package/dist/test-tube-diagonal-C5UiEbM2.js +0 -22
- package/dist/test-tubes-B6LCp-lw.js +0 -33
- package/dist/text-align-center-CJdj32f8.js +0 -22
- package/dist/text-align-end-CykTBVDn.js +0 -22
- package/dist/text-align-justify-DVlzTpwE.js +0 -22
- package/dist/text-align-start-B0TXK62i.js +0 -22
- package/dist/text-cursor-Dq0gb5Um.js +0 -21
- package/dist/text-cursor-input-BxrBGR-V.js +0 -29
- package/dist/text-initial-D0MDKiTf.js +0 -30
- package/dist/text-quote-C0iMCGS8.js +0 -25
- package/dist/text-search-EZpsGoa0.js +0 -31
- package/dist/text-wrap-C5GRCXCF.js +0 -26
- package/dist/theater-DUUpKjrd.js +0 -45
- package/dist/thermometer-BuXWsSLa.js +0 -11
- package/dist/thermometer-snowflake-81-8CppK.js +0 -41
- package/dist/thermometer-sun-B_FWN25t.js +0 -33
- package/dist/thumbs-down-CpFNBdib.js +0 -14
- package/dist/thumbs-up-B1h2_AlI.js +0 -14
- package/dist/tic-tac-toe-DTrIlqs7.js +0 -45
- package/dist/ticket-Ddpd6D6H.js +0 -25
- package/dist/ticket-check-onJjzAhp.js +0 -14
- package/dist/ticket-minus-DJD8ONxp.js +0 -14
- package/dist/ticket-percent-BNyFh9ya.js +0 -25
- package/dist/ticket-plus-BRHBRxUe.js +0 -21
- package/dist/ticket-slash-ZWSsRJoZ.js +0 -14
- package/dist/ticket-x-Bf_NdN3z.js +0 -21
- package/dist/tickets-DsoCnhNu.js +0 -33
- package/dist/tickets-plane-VbXiSO_O.js +0 -41
- package/dist/timeline-DNZUUlkI.js +0 -41
- package/dist/timer-DjNcIU7Y.js +0 -29
- package/dist/timer-off-jhjQEgTb.js +0 -29
- package/dist/timer-reset-DOsNOOK3.js +0 -25
- package/dist/toggle-left-hdRHIXOV.js +0 -20
- package/dist/toggle-right-BsyLNDLI.js +0 -20
- package/dist/toilet--9giqsgY.js +0 -14
- package/dist/tool-case-Dk4pJ7T9.js +0 -25
- package/dist/toolbox-pwsYwqqE.js +0 -29
- package/dist/toothbrush-ajajAgAQ.js +0 -14
- package/dist/toothbrush-sparkles-DgJWNH7y.js +0 -45
- package/dist/tornado-BQ23ZQcW.js +0 -29
- package/dist/torus-DlXwucd1.js +0 -20
- package/dist/touchpad-BFcIff1c.js +0 -25
- package/dist/touchpad-off-D7nU-MWT.js +0 -33
- package/dist/towel-rack-CG3gg3us.js +0 -21
- package/dist/tower-control-BqlyTvmZ.js +0 -37
- package/dist/toy-brick-BpW03BMB.js +0 -25
- package/dist/tractor-DZyxt-3p.js +0 -49
- package/dist/traffic-cone-BPeG_vdz.js +0 -25
- package/dist/trailer-B5BBuOz-.js +0 -35
- package/dist/train-front-CPGU6Vpx.js +0 -33
- package/dist/train-front-tunnel-DOEncCc2.js +0 -37
- package/dist/train-track-DGCYoF57.js +0 -37
- package/dist/tram-front-mzO4X_52.js +0 -42
- package/dist/transactions-BZc9mVu8.js +0 -343
- package/dist/transactions-Dy0r3255.cjs +0 -1
- package/dist/transgender-CnFOoZlz.js +0 -43
- package/dist/trash-7W78s3qR.js +0 -33
- package/dist/trash-BxpYOXox.js +0 -30
- package/dist/trash-off-Da8S0B4W.js +0 -41
- package/dist/tree-deciduous-DPJKKLNE.js +0 -14
- package/dist/tree-palm-B9itFRoS.js +0 -26
- package/dist/tree-pine-B4g3yeqz.js +0 -14
- package/dist/trees-BPZZ3BQ2.js +0 -25
- package/dist/trending-down-DQ-oTFFt.js +0 -14
- package/dist/trending-up-CWpAmK7d.js +0 -14
- package/dist/trending-up-down-BW19h48T.js +0 -25
- package/dist/triangle-DjM_emCl.js +0 -11
- package/dist/triangle-alert-DwgBdK14.js +0 -22
- package/dist/triangle-dashed-FHC3gVbS.js +0 -45
- package/dist/triangle-right-BnQxZsYw.js +0 -11
- package/dist/triangles-centerline-dashed-horizontal-Brv4cIAF.js +0 -34
- package/dist/triangles-centerline-dashed-vertical-BULTV1Jl.js +0 -34
- package/dist/trophy-B5o4ZF-N.js +0 -33
- package/dist/truck-X25svZM8.js +0 -33
- package/dist/truck-electric-C54jh3Nl.js +0 -41
- package/dist/tube-lotion-CipsNMeF.js +0 -21
- package/dist/turkish-lira-D7uueziI.js +0 -21
- package/dist/turntable-CRZb30gA.js +0 -31
- package/dist/turtle-eCOhb5rW.js +0 -25
- package/dist/tv-CPGROJCX.js +0 -18
- package/dist/tv-minimal-DVLKVxyS.js +0 -19
- package/dist/tv-minimal-play-0O7wQt-O.js +0 -25
- package/dist/type-CT_Q4sgt.js +0 -21
- package/dist/type-outline-iB-AlMg2.js +0 -11
- package/dist/umbrella-Biw82eEP.js +0 -21
- package/dist/umbrella-off-DmPF7Tqs.js +0 -29
- package/dist/underline-C62CuM-S.js +0 -17
- package/dist/undo-2-CW37MiFK.js +0 -14
- package/dist/undo-BwLUGQuq.js +0 -14
- package/dist/undo-dot-qI-Tk1ab.js +0 -23
- package/dist/unfold-horizontal-Uf55XV0u.js +0 -41
- package/dist/unfold-vertical-oPBSWJe3.js +0 -41
- package/dist/ungroup-A_f8htpw.js +0 -22
- package/dist/university-KZK8xDUJ.js +0 -40
- package/dist/unlink--If1SgOL.js +0 -45
- package/dist/unlink-2-DQhZz42a.js +0 -11
- package/dist/unplug-CJzRPRKI.js +0 -33
- package/dist/upload-BHAfYXAt.js +0 -21
- package/dist/usb-c-port-DMf01XDY.js +0 -18
- package/dist/usb-lHjcmeoW.js +0 -41
- package/dist/user-BGgbsGNZ.js +0 -16
- package/dist/user-check-oTDlaKvk.js +0 -23
- package/dist/user-cog-6n48eg9S.js +0 -57
- package/dist/user-group-BrUqKV-0.js +0 -39
- package/dist/user-key-CGjvZTcF.js +0 -33
- package/dist/user-lock-Cpk5YHny.js +0 -31
- package/dist/user-minus-DLFaqs8t.js +0 -26
- package/dist/user-pen-_hvRFnub.js +0 -23
- package/dist/user-plus-D-FRn-2c.js +0 -33
- package/dist/user-round-AeklQuWE.cjs +0 -1
- package/dist/user-round-B2axMu68.js +0 -17
- package/dist/user-round-arrow-left-MurzT1Zt.js +0 -27
- package/dist/user-round-check-BsegGGIT.js +0 -24
- package/dist/user-round-cog-CIvZAv0I.js +0 -58
- package/dist/user-round-group-1BNYntdK.js +0 -39
- package/dist/user-round-key-DC7-M3wy.js +0 -33
- package/dist/user-round-minus-W3SoMSmK.js +0 -24
- package/dist/user-round-pen-fclLbD8y.js +0 -23
- package/dist/user-round-plus-Cy4yiggz.js +0 -28
- package/dist/user-round-search-DMHxvyVT.js +0 -29
- package/dist/user-round-x-y8j2fLuK.js +0 -28
- package/dist/user-round-yFlBeB_5.js +0 -20
- package/dist/user-search-Bohs5Suo.js +0 -29
- package/dist/user-shield-DzTyHg2n.js +0 -23
- package/dist/user-star-DMk5jSBX.js +0 -23
- package/dist/user-x-DLiXFUio.js +0 -33
- package/dist/users-UpKNxmZB.js +0 -27
- package/dist/users-round-B0SQW6OK.js +0 -24
- package/dist/utensils-CNr5B6S6.js +0 -22
- package/dist/utensils-crossed-Xl2rGL-e.js +0 -26
- package/dist/utility-pole-BPXsl5lw.js +0 -37
- package/dist/van-Dl-gHIAu.js +0 -33
- package/dist/variable-Dc4VqAzU.js +0 -31
- package/dist/vault-C8FSwirL.js +0 -67
- package/dist/vector-polygon-DXkpRiyg.js +0 -49
- package/dist/vector-square-azn9eBpG.js +0 -49
- package/dist/vegan-B-OSmRyQ.js +0 -21
- package/dist/venetian-mask-D3FpqiH2.js +0 -21
- package/dist/venus-C6Elyl1M.js +0 -23
- package/dist/venus-and-mars-B_Psjgd2.js +0 -31
- package/dist/vibrate-DDmAe83W.js +0 -25
- package/dist/vibrate-off-B2ObvLmu.js +0 -32
- package/dist/video-DSMOTgxA.js +0 -18
- package/dist/video-off-T7U8wI8X.js +0 -21
- package/dist/videotape-2JaklBXj.js +0 -37
- package/dist/view-CvQgbYsn.js +0 -27
- package/dist/virus-QerEvheX.js +0 -91
- package/dist/virus-off-DB7mhxIf.js +0 -89
- package/dist/voicemail-DWq0USlN.js +0 -28
- package/dist/volleyball-CDKBegHW.js +0 -35
- package/dist/volume-1-CU5ZXMgK.js +0 -14
- package/dist/volume-2-BHFLO4C2.js +0 -21
- package/dist/volume-CwKI01Yk.js +0 -11
- package/dist/volume-off-Bu-8skIr.js +0 -29
- package/dist/volume-x-DzxHvsdY.js +0 -21
- package/dist/vote-D5DNlOe_.js +0 -21
- package/dist/wallet-Br8acowv.js +0 -14
- package/dist/wallet-cards-DxpSNaR8.js +0 -25
- package/dist/wallet-minimal-Xj--pNJY.js +0 -15
- package/dist/wallpaper-alC6VyZN.js +0 -35
- package/dist/wand-CiGzULb4.js +0 -45
- package/dist/wand-sparkles-WtoErvn3.js +0 -42
- package/dist/warehouse-rJZf3tzt.js +0 -25
- package/dist/washing-machine-DP-QldxW.js +0 -35
- package/dist/watch-BcVR_FvH.js +0 -27
- package/dist/waves-arrow-down-DcEmbaUZ.js +0 -25
- package/dist/waves-arrow-up-DgwcPUzI.js +0 -25
- package/dist/waves-horizontal-C9Fkno4P.js +0 -22
- package/dist/waves-ladder-Btr0F25Z.js +0 -29
- package/dist/waves-vertical-dxg9DOOT.js +0 -21
- package/dist/waypoints-C385Fx3E.js +0 -45
- package/dist/webcam-CnHUe0pZ.js +0 -29
- package/dist/webcam-off-BX5F-mC9.js +0 -37
- package/dist/webhook-1up8Y9Rr.js +0 -21
- package/dist/webhook-off-CPZ58LBl.js +0 -37
- package/dist/weight-BeugSSJC.js +0 -16
- package/dist/weight-tilde-UHLUb_oT.js +0 -23
- package/dist/wheat-B2d0l5Dd.js +0 -41
- package/dist/wheat-off-DySpJkM5.js +0 -52
- package/dist/whistle-ESAp-ZsQ.js +0 -14
- package/dist/whole-word-ZvH_h5vA.js +0 -33
- package/dist/wifi-Df2r_MC4.js +0 -25
- package/dist/wifi-cog-DBMVMlYU.js +0 -59
- package/dist/wifi-high-DIge-Goy.js +0 -21
- package/dist/wifi-low-DM9rhsWw.js +0 -14
- package/dist/wifi-off-8A_EPxf3.js +0 -37
- package/dist/wifi-pen-Ck_DSST3.js +0 -25
- package/dist/wifi-sync-COM9OW9U.js +0 -37
- package/dist/wifi-zero-By6JOEIa.js +0 -11
- package/dist/wind-Ddr-NJm7.js +0 -21
- package/dist/wind-arrow-down-Fy2oit_R.js +0 -25
- package/dist/wine-DgfwVntE.js +0 -25
- package/dist/wine-off-C1moPJN1.js +0 -32
- package/dist/workflow-OEpClOAT.js +0 -29
- package/dist/worm-CBuPSbNx.js +0 -21
- package/dist/wrench-Cotpy94Y.js +0 -11
- package/dist/wrench-off-DdMt8HzF.js +0 -21
- package/dist/x-Bfx9jBin.cjs +0 -1
- package/dist/x-Bh5abIUu.js +0 -41
- package/dist/x-C_svBh45.js +0 -14
- package/dist/x-line-top-D8s84nhR.js +0 -21
- package/dist/zap-BIrkjMzS.js +0 -11
- package/dist/zap-off-BNoIw2ax.js +0 -25
- package/dist/zodiac-aquarius-BCpM4-Rn.js +0 -14
- package/dist/zodiac-aries-CCvX70Id.js +0 -14
- package/dist/zodiac-cancer-De28Bqw8.js +0 -29
- package/dist/zodiac-capricorn-sv8975vl.js +0 -23
- package/dist/zodiac-gemini-C_vxrw9J.js +0 -25
- package/dist/zodiac-leo-D5PP-mD3.js +0 -16
- package/dist/zodiac-libra-D6q5YdyB.js +0 -14
- package/dist/zodiac-ophiuchus-D9oJ7bgh.js +0 -14
- package/dist/zodiac-pisces-BgfKSdjc.js +0 -21
- package/dist/zodiac-sagittarius-Bqr4RMQk.js +0 -21
- package/dist/zodiac-scorpio-CPW_x_fD.js +0 -25
- package/dist/zodiac-taurus-CJHgDuL4.js +0 -16
- package/dist/zodiac-virgo-aYUcrg9f.js +0 -25
- package/dist/zoom-in-CPNjXfyd.js +0 -36
- package/dist/zoom-out-CGnmGO8b.js +0 -29
- /package/dist/{AccessNotice-nW-NvBDr.js → AccessNotice-8omRzh9-.js} +0 -0
- /package/dist/{AccessNotice-Bu6dwQaS.cjs → AccessNotice-CHam7DDm.cjs} +0 -0
- /package/dist/{a-arrow-down-BHQdC_ep.cjs → a-arrow-down-CFUAKN6z.cjs} +0 -0
- /package/dist/{a-arrow-up-DjfjhIt8.cjs → a-arrow-up-BwtTLMdv.cjs} +0 -0
- /package/dist/{a-large-small-Cjpb9UnJ.cjs → a-large-small-sxvq745P.cjs} +0 -0
- /package/dist/{accessibility-Bb4DxcMW.cjs → accessibility-BpRKZ1jg.cjs} +0 -0
- /package/dist/{activity-8YHxpP22.cjs → activity-CJ_DksJT.cjs} +0 -0
- /package/dist/{ad-BkfH5x-r.cjs → ad-Crcmw7BQ.cjs} +0 -0
- /package/dist/{address-JI7Os8RI.cjs → address-CFi7HWQ4.cjs} +0 -0
- /package/dist/{address-Fpdre_RJ.js → address-DxPaRmcD.js} +0 -0
- /package/dist/{air-vent-B4GVlNvM.cjs → air-vent-uF3rTdSw.cjs} +0 -0
- /package/dist/{airplay-D44ctgHO.cjs → airplay-BV_cIab2.cjs} +0 -0
- /package/dist/{alarm-clock-DqaGJhk6.cjs → alarm-clock-D5X6_wxo.cjs} +0 -0
- /package/dist/{alarm-clock-check-DHXdLL-f.cjs → alarm-clock-check-C4yl86_G.cjs} +0 -0
- /package/dist/{alarm-clock-minus-CuoCWHpQ.cjs → alarm-clock-minus-BEtshaDj.cjs} +0 -0
- /package/dist/{alarm-clock-off-B-GS8BWj.cjs → alarm-clock-off-CbG0E0JS.cjs} +0 -0
- /package/dist/{alarm-clock-plus-C4jvsRhx.cjs → alarm-clock-plus-P0ujbbf9.cjs} +0 -0
- /package/dist/{alarm-smoke-DCrME7-m.cjs → alarm-smoke-Dk0kXLA0.cjs} +0 -0
- /package/dist/{align-center-horizontal-Civr7XTr.cjs → align-center-horizontal-CStArudA.cjs} +0 -0
- /package/dist/{align-center-vertical-623NxAB1.cjs → align-center-vertical-C5_iphbz.cjs} +0 -0
- /package/dist/{align-end-horizontal-B3MMHSZZ.cjs → align-end-horizontal-1sU4wOqU.cjs} +0 -0
- /package/dist/{align-end-vertical-Di13HtFN.cjs → align-end-vertical-BKQmQJQ3.cjs} +0 -0
- /package/dist/{align-horizontal-distribute-center-DoKKr4N-.cjs → align-horizontal-distribute-center-CifoVFSP.cjs} +0 -0
- /package/dist/{align-horizontal-distribute-end-BItv5DTQ.cjs → align-horizontal-distribute-end-BcJBKdNT.cjs} +0 -0
- /package/dist/{align-horizontal-distribute-start-C7K9aGVb.cjs → align-horizontal-distribute-start-Dj_bMDg1.cjs} +0 -0
- /package/dist/{align-horizontal-justify-center-DZHqNkDA.cjs → align-horizontal-justify-center-BsGVpl03.cjs} +0 -0
- /package/dist/{align-horizontal-justify-end-CiZnmOE3.cjs → align-horizontal-justify-end-D6bcVG1h.cjs} +0 -0
- /package/dist/{align-horizontal-justify-start-Cp-65Csp.cjs → align-horizontal-justify-start-BXyNlbd6.cjs} +0 -0
- /package/dist/{align-horizontal-space-around-CSQe-q4C.cjs → align-horizontal-space-around-CgCIZviZ.cjs} +0 -0
- /package/dist/{align-horizontal-space-between-CZg4J4Dt.cjs → align-horizontal-space-between-n7CTFIVS.cjs} +0 -0
- /package/dist/{align-start-horizontal-C6hQsgNd.cjs → align-start-horizontal-B_yTTAgG.cjs} +0 -0
- /package/dist/{align-start-vertical-D_f5RUiq.cjs → align-start-vertical-CyeqMo9Q.cjs} +0 -0
- /package/dist/{align-vertical-distribute-center-DY_86FjA.cjs → align-vertical-distribute-center-DN-AOAos.cjs} +0 -0
- /package/dist/{align-vertical-distribute-end-07LunIed.cjs → align-vertical-distribute-end-BE-0ERW4.cjs} +0 -0
- /package/dist/{align-vertical-distribute-start-DCITppkB.cjs → align-vertical-distribute-start-CUfp3dG-.cjs} +0 -0
- /package/dist/{align-vertical-justify-center-CF5TRR0F.cjs → align-vertical-justify-center-e4cXmcQK.cjs} +0 -0
- /package/dist/{align-vertical-justify-end-DQQp49rr.cjs → align-vertical-justify-end-CTiDE58f.cjs} +0 -0
- /package/dist/{align-vertical-justify-start-CKuhijTj.cjs → align-vertical-justify-start-DRgXHcuY.cjs} +0 -0
- /package/dist/{align-vertical-space-around-DGgfFoEj.cjs → align-vertical-space-around-kVyvW4uu.cjs} +0 -0
- /package/dist/{align-vertical-space-between-CW-ldmbg.cjs → align-vertical-space-between-Td4SdIeN.cjs} +0 -0
- /package/dist/{ambulance-CVjTvNcS.cjs → ambulance-DvDbPO3u.cjs} +0 -0
- /package/dist/{ampersand-viZvV6tb.cjs → ampersand-J70x2IBt.cjs} +0 -0
- /package/dist/{ampersands-DUCsHJ5E.cjs → ampersands-CM_S7K5B.cjs} +0 -0
- /package/dist/{amphora-Bd_PeD3v.cjs → amphora-lO7_2Yxw.cjs} +0 -0
- /package/dist/{anchor-u16e_4IO.cjs → anchor-ovMJqn-P.cjs} +0 -0
- /package/dist/{angle-CjxVXtDY.cjs → angle-CGk9CIi0.cjs} +0 -0
- /package/dist/{antenna-zfNFW9_0.cjs → antenna-C4ki5e-e.cjs} +0 -0
- /package/dist/{anvil-B06IIz92.cjs → anvil-wF-T0jwS.cjs} +0 -0
- /package/dist/{aperture-SEXbb_lF.cjs → aperture-Dhfg0Zef.cjs} +0 -0
- /package/dist/{app-window-UfphBoFq.cjs → app-window-CKWu5bSL.cjs} +0 -0
- /package/dist/{app-window-mac-BvDt5cuy.cjs → app-window-mac-DAtVlTfJ.cjs} +0 -0
- /package/dist/{apple-e0YoW7qD.cjs → apple-n3C5jVC8.cjs} +0 -0
- /package/dist/{archive-0fxiWWcl.cjs → archive-nqJqZwn-.cjs} +0 -0
- /package/dist/{archive-restore-DkSLRIak.cjs → archive-restore-BvbNc9qw.cjs} +0 -0
- /package/dist/{archive-x-Bq3W87rh.cjs → archive-x-D2rCDPgI.cjs} +0 -0
- /package/dist/{armchair-H6Tnw6De.cjs → armchair-D2jiTX5U.cjs} +0 -0
- /package/dist/{arrow-big-down-D9s2eR1V.cjs → arrow-big-down-DXwA59TJ.cjs} +0 -0
- /package/dist/{arrow-big-down-dash-CP-GmEQM.cjs → arrow-big-down-dash-B17xAPvB.cjs} +0 -0
- /package/dist/{arrow-big-left-Uw4_1g4X.cjs → arrow-big-left-B_WsPQt5.cjs} +0 -0
- /package/dist/{arrow-big-left-dash-B_paTLxp.cjs → arrow-big-left-dash-B1zFcd0E.cjs} +0 -0
- /package/dist/{arrow-big-right-BrCx6-g_.cjs → arrow-big-right-COslHWRS.cjs} +0 -0
- /package/dist/{arrow-big-right-dash-CE2EREww.cjs → arrow-big-right-dash-GBxShLBs.cjs} +0 -0
- /package/dist/{arrow-big-up-35BgT8Hg.cjs → arrow-big-up-BTrlD2Nt.cjs} +0 -0
- /package/dist/{arrow-big-up-dash-BW320XsG.cjs → arrow-big-up-dash-svUM2VFH.cjs} +0 -0
- /package/dist/{arrow-down-0-1-DC2Tnumj.cjs → arrow-down-0-1-CeI80fQq.cjs} +0 -0
- /package/dist/{arrow-down-1-0-ClSn1ZFI.cjs → arrow-down-1-0-FsfI5ODl.cjs} +0 -0
- /package/dist/{arrow-down-D24HzJ4R.cjs → arrow-down-BApye7ED.cjs} +0 -0
- /package/dist/{arrow-down-a-z-B6ip-cKT.cjs → arrow-down-a-z-CA5qi34k.cjs} +0 -0
- /package/dist/{arrow-down-from-line-d15m5qym.cjs → arrow-down-from-line-BfvX497E.cjs} +0 -0
- /package/dist/{arrow-down-left-Ci8Tt6gN.cjs → arrow-down-left-DlIdpYzb.cjs} +0 -0
- /package/dist/{arrow-down-narrow-wide-s4iEJvuL.cjs → arrow-down-narrow-wide-B_LiVRIz.cjs} +0 -0
- /package/dist/{arrow-down-right-BYtA6xI5.cjs → arrow-down-right-BbAbgTd6.cjs} +0 -0
- /package/dist/{arrow-down-to-dot-DO-frwSL.cjs → arrow-down-to-dot-BD_caPH5.cjs} +0 -0
- /package/dist/{arrow-down-to-line-DxXkV6LY.cjs → arrow-down-to-line-DxIlWB_2.cjs} +0 -0
- /package/dist/{arrow-down-up-Bu7gctj9.cjs → arrow-down-up-DZS_G4E5.cjs} +0 -0
- /package/dist/{arrow-down-wide-narrow-DhBGWrDj.cjs → arrow-down-wide-narrow-Ch3jrJ15.cjs} +0 -0
- /package/dist/{arrow-down-z-a-D-V2mYw9.cjs → arrow-down-z-a-BpQzWh99.cjs} +0 -0
- /package/dist/{arrow-left-oX3wK7uA.cjs → arrow-left-7NGL7nfJ.cjs} +0 -0
- /package/dist/{arrow-left-from-line-DT2Bc5Kl.cjs → arrow-left-from-line-pEk6xCI-.cjs} +0 -0
- /package/dist/{arrow-left-right-BFce7_aL.cjs → arrow-left-right-Gn9t5vZv.cjs} +0 -0
- /package/dist/{arrow-left-to-line-Bdi_5iwg.cjs → arrow-left-to-line-Ctn5Omd0.cjs} +0 -0
- /package/dist/{arrow-right-CU-nyXzu.cjs → arrow-right-CMS6WHFR.cjs} +0 -0
- /package/dist/{arrow-right-from-line-CrWPFaF-.cjs → arrow-right-from-line-Bkg_x_UY.cjs} +0 -0
- /package/dist/{arrow-right-left-DXFfHhsx.cjs → arrow-right-left-B11PJjw6.cjs} +0 -0
- /package/dist/{arrow-right-to-line-CsbHXy67.cjs → arrow-right-to-line-DUd8oKIE.cjs} +0 -0
- /package/dist/{arrow-up-0-1-WI-aywoq.cjs → arrow-up-0-1-DUnRRpDu.cjs} +0 -0
- /package/dist/{arrow-up-1-0-XCaACtAu.cjs → arrow-up-1-0-1rp_uuaO.cjs} +0 -0
- /package/dist/{arrow-up-Cnv_vbCF.cjs → arrow-up-DVLkNY2D.cjs} +0 -0
- /package/dist/{arrow-up-a-z-DVVmrsYl.cjs → arrow-up-a-z-8uHKZ_sd.cjs} +0 -0
- /package/dist/{arrow-up-down-GLXZBus8.cjs → arrow-up-down-DyzXtNk9.cjs} +0 -0
- /package/dist/{arrow-up-from-dot-CvXlpKt7.cjs → arrow-up-from-dot-B-2TICi3.cjs} +0 -0
- /package/dist/{arrow-up-from-line-DKhhZLny.cjs → arrow-up-from-line-BAFM1fPn.cjs} +0 -0
- /package/dist/{arrow-up-left-C7-wE3iE.cjs → arrow-up-left-BV5W4GGp.cjs} +0 -0
- /package/dist/{arrow-up-narrow-wide-BS1vVR2s.cjs → arrow-up-narrow-wide-DBTmQoTv.cjs} +0 -0
- /package/dist/{arrow-up-right-BWUgyQcx.cjs → arrow-up-right-BJzeCEKQ.cjs} +0 -0
- /package/dist/{arrow-up-to-line-B-ubgkAW.cjs → arrow-up-to-line-DVOV-XW5.cjs} +0 -0
- /package/dist/{arrow-up-wide-narrow-DHn74z-G.cjs → arrow-up-wide-narrow-Cr0GP1fm.cjs} +0 -0
- /package/dist/{arrow-up-z-a-D62MSHvp.cjs → arrow-up-z-a-C-qc5Glm.cjs} +0 -0
- /package/dist/{arrows-up-from-line-BGe5FRhj.cjs → arrows-up-from-line-o8Xeap9H.cjs} +0 -0
- /package/dist/{asterisk-B6Jhe7Ve.cjs → asterisk-B_sHZh5g.cjs} +0 -0
- /package/dist/{astroid-CX4vPVs3.cjs → astroid-B72NU8JK.cjs} +0 -0
- /package/dist/{at-sign-C8stb1XA.cjs → at-sign-C-ulhCeC.cjs} +0 -0
- /package/dist/{atom-AItwh7dk.cjs → atom-NSwdUnuh.cjs} +0 -0
- /package/dist/{audio-lines-DJRnJVIF.cjs → audio-lines-BdPov21C.cjs} +0 -0
- /package/dist/{audio-lines-off-BXuiu-AB.cjs → audio-lines-off-CBH9B9Qs.cjs} +0 -0
- /package/dist/{audio-lines-x-BXnYkQeo.cjs → audio-lines-x-CI7cPw1x.cjs} +0 -0
- /package/dist/{audio-waveform-uYJYZekU.cjs → audio-waveform-C0BBoais.cjs} +0 -0
- /package/dist/{award-CgpwFw9i.cjs → award-BbvyPcJU.cjs} +0 -0
- /package/dist/{axe-q66WzNaN.cjs → axe-Ci9sOP22.cjs} +0 -0
- /package/dist/{axis-3d-CQ6DJX2s.cjs → axis-3d-CKFXb6w_.cjs} +0 -0
- /package/dist/{baby-8hiiF3Ne.cjs → baby-DNWUO79v.cjs} +0 -0
- /package/dist/{backpack-BbXFGKOr.cjs → backpack-BSbUUKXP.cjs} +0 -0
- /package/dist/{badge-alert-bRUKOf_K.cjs → badge-alert-bCqPxvLj.cjs} +0 -0
- /package/dist/{badge-DbZ2rhX8.cjs → badge-bflpnSXN.cjs} +0 -0
- /package/dist/{badge-cent-CtLprqUQ.cjs → badge-cent-CPHmrDbQ.cjs} +0 -0
- /package/dist/{badge-check-cn5r4e4k.cjs → badge-check-CYOrSakr.cjs} +0 -0
- /package/dist/{badge-dollar-sign-D2SSuzra.cjs → badge-dollar-sign-DyXCefLp.cjs} +0 -0
- /package/dist/{badge-euro-uwU2bL_U.cjs → badge-euro-CiAlc565.cjs} +0 -0
- /package/dist/{badge-indian-rupee-9md0QR1M.cjs → badge-indian-rupee-RJxuuu-u.cjs} +0 -0
- /package/dist/{badge-info-GcSJ5Vvy.cjs → badge-info-Bo-sKQNW.cjs} +0 -0
- /package/dist/{badge-japanese-yen-By2lWIXU.cjs → badge-japanese-yen-DtRACdGG.cjs} +0 -0
- /package/dist/{badge-minus-DscPnC3-.cjs → badge-minus-I6PpjQwu.cjs} +0 -0
- /package/dist/{badge-percent-CRmiq7M8.cjs → badge-percent-DxQl4g0L.cjs} +0 -0
- /package/dist/{badge-plus-DXTn7R8I.cjs → badge-plus-CELqBkNf.cjs} +0 -0
- /package/dist/{badge-pound-sterling-izf_VKMZ.cjs → badge-pound-sterling-DHwTlvcd.cjs} +0 -0
- /package/dist/{badge-question-mark-CiBHeS1t.cjs → badge-question-mark-B1TRiRdU.cjs} +0 -0
- /package/dist/{badge-russian-ruble-Cc1Br_pW.cjs → badge-russian-ruble-jNalAtaL.cjs} +0 -0
- /package/dist/{badge-swiss-franc-CZVnVsSN.cjs → badge-swiss-franc-BPMjVEWm.cjs} +0 -0
- /package/dist/{badge-turkish-lira-HShGSfrp.cjs → badge-turkish-lira-uXrfP_Na.cjs} +0 -0
- /package/dist/{badge-x-B6vNpNEx.cjs → badge-x-DgnI4MKp.cjs} +0 -0
- /package/dist/{baggage-claim-DoQo2pHo.cjs → baggage-claim-CoYykXzZ.cjs} +0 -0
- /package/dist/{balloon-DC8Zugvr.cjs → balloon-dUNR6s2J.cjs} +0 -0
- /package/dist/{ban-CtwXRZYc.cjs → ban-gnbFMfaz.cjs} +0 -0
- /package/dist/{banana-4auxDTqo.cjs → banana-D2-uN31W.cjs} +0 -0
- /package/dist/{bandage-B6mt_2yM.cjs → bandage-Du9a1osf.cjs} +0 -0
- /package/dist/{banknote-DVqNbQGy.cjs → banknote--v6inUtN.cjs} +0 -0
- /package/dist/{banknote-arrow-down-DdL59UJx.cjs → banknote-arrow-down-jzKzC6ZS.cjs} +0 -0
- /package/dist/{banknote-arrow-up-DHhSKFa9.cjs → banknote-arrow-up-0KAVWfex.cjs} +0 -0
- /package/dist/{banknote-check-kAmitwTz.cjs → banknote-check-CD09CY8r.cjs} +0 -0
- /package/dist/{banknote-x-DIrv0-Qk.cjs → banknote-x-BjjNxSD4.cjs} +0 -0
- /package/dist/{barcode-B8pRSHMT.cjs → barcode-r21eTOYd.cjs} +0 -0
- /package/dist/{barrel-DJnXXrvO.cjs → barrel-DLn_vZhQ.cjs} +0 -0
- /package/dist/{baseline-D-uY3Mvl.cjs → baseline-nR-vBctJ.cjs} +0 -0
- /package/dist/{bath-yIwxLOX9.cjs → bath-Dr6t7qzW.cjs} +0 -0
- /package/dist/{battery-CPDyr5P3.cjs → battery-BJHVoUZ1.cjs} +0 -0
- /package/dist/{battery-charging-C9H-A0Km.cjs → battery-charging-B_SvFGod.cjs} +0 -0
- /package/dist/{battery-full-BXKAeJHI.cjs → battery-full-_fdzhOhN.cjs} +0 -0
- /package/dist/{battery-low-C0uLDJyL.cjs → battery-low-DXNU476B.cjs} +0 -0
- /package/dist/{battery-medium-CiIZn_HX.cjs → battery-medium-wteuFdke.cjs} +0 -0
- /package/dist/{battery-plus-4N4nyO0X.cjs → battery-plus-Bkm9UjbL.cjs} +0 -0
- /package/dist/{battery-warning-CYrjL9by.cjs → battery-warning-CecxJnRZ.cjs} +0 -0
- /package/dist/{beaker-CwsjiI2k.cjs → beaker-Bn8MYifw.cjs} +0 -0
- /package/dist/{bean-DwXnq37f.cjs → bean-BcWW4Zrt.cjs} +0 -0
- /package/dist/{bean-off-DhtarfDD.cjs → bean-off-CmH_5TAS.cjs} +0 -0
- /package/dist/{bed-Dm-Zbebm.cjs → bed-D5ehxV2G.cjs} +0 -0
- /package/dist/{bed-double-CfHvnX11.cjs → bed-double-D5BIEVBb.cjs} +0 -0
- /package/dist/{bed-single-Bq9xoBQM.cjs → bed-single-B8qVW1wh.cjs} +0 -0
- /package/dist/{beef-DQTvOiqA.cjs → beef-CqzIEz21.cjs} +0 -0
- /package/dist/{beef-off-CkAtnxAh.cjs → beef-off-DPE77PqH.cjs} +0 -0
- /package/dist/{beer-C5gQMwAl.cjs → beer-BMGEVLdb.cjs} +0 -0
- /package/dist/{beer-off-D3C_v3rI.cjs → beer-off-DtJ5CMy-.cjs} +0 -0
- /package/dist/{bell-DXcVqgiK.cjs → bell--c4880-t.cjs} +0 -0
- /package/dist/{bell-check-DbPCF5x0.cjs → bell-check-CD1f93eL.cjs} +0 -0
- /package/dist/{bell-dot-CYMbygs5.cjs → bell-dot-BegXQJSx.cjs} +0 -0
- /package/dist/{bell-electric-Bzh6_kOX.cjs → bell-electric-Dedl3h50.cjs} +0 -0
- /package/dist/{bell-minus-C8LZSY7L.cjs → bell-minus-uOey1IjR.cjs} +0 -0
- /package/dist/{bell-off-D8C7xjr4.cjs → bell-off-BKBK4pMz.cjs} +0 -0
- /package/dist/{bell-plus-g8q7tjAn.cjs → bell-plus-IfC0AqDH.cjs} +0 -0
- /package/dist/{bell-ring-BPPCwzU5.cjs → bell-ring-D_sGT4KU.cjs} +0 -0
- /package/dist/{between-horizontal-end-B0Hp72aJ.cjs → between-horizontal-end-Dk3Vbmsl.cjs} +0 -0
- /package/dist/{between-horizontal-start-DCA36Lox.cjs → between-horizontal-start-Bx-K4CqR.cjs} +0 -0
- /package/dist/{between-vertical-end-YIi56f66.cjs → between-vertical-end-RjT--kfL.cjs} +0 -0
- /package/dist/{between-vertical-start-D5Mgy5pJ.cjs → between-vertical-start-Da7GoyjI.cjs} +0 -0
- /package/dist/{biceps-flexed-DIqcWEu0.cjs → biceps-flexed-CuEFlhVr.cjs} +0 -0
- /package/dist/{bike-BDyCNv7M.cjs → bike-BUJxfxEM.cjs} +0 -0
- /package/dist/{binary-7JBXH2tO.cjs → binary-CT72EP3d.cjs} +0 -0
- /package/dist/{binoculars-BHa5cfpM.cjs → binoculars-Xw-RFOQS.cjs} +0 -0
- /package/dist/{biohazard-BiQKb4oe.cjs → biohazard-BgSUXIsj.cjs} +0 -0
- /package/dist/{bird-BAfYYLIW.cjs → bird-CLTL3Lar.cjs} +0 -0
- /package/dist/{birdhouse-DZoUfz7K.cjs → birdhouse-DNRlhp-H.cjs} +0 -0
- /package/dist/{bitcoin-CPvyNEK1.cjs → bitcoin-B1bnzD1F.cjs} +0 -0
- /package/dist/{blend-a4tB7VfC.cjs → blend-3wQsc_eu.cjs} +0 -0
- /package/dist/{blender-DfSfVMVJ.cjs → blender-CSLQ_f3b.cjs} +0 -0
- /package/dist/{blinds-BiYd220I.cjs → blinds-DhYqdxAN.cjs} +0 -0
- /package/dist/{blocks-Bn43jkM2.cjs → blocks-BTKJnMQd.cjs} +0 -0
- /package/dist/{bluetooth-B2Ne_GK_.cjs → bluetooth-DxHEWkSL.cjs} +0 -0
- /package/dist/{bluetooth-connected-CmkQqirf.cjs → bluetooth-connected-B_giu6PP.cjs} +0 -0
- /package/dist/{bluetooth-off-CIJijee2.cjs → bluetooth-off-BFjokFO8.cjs} +0 -0
- /package/dist/{bluetooth-searching-D-7FSDsR.cjs → bluetooth-searching-CrI17oRw.cjs} +0 -0
- /package/dist/{bold-32ixEIRs.cjs → bold-BOuNyV7y.cjs} +0 -0
- /package/dist/{bolt-CD-xR6-T.cjs → bolt-Dz3Wo22E.cjs} +0 -0
- /package/dist/{bomb-C2yL7AOl.cjs → bomb-CIummqkf.cjs} +0 -0
- /package/dist/{bone-BZK4xdFB.cjs → bone-CJ3AN7tm.cjs} +0 -0
- /package/dist/{bone-fracture-CbeJukH7.cjs → bone-fracture-Ce-goi_W.cjs} +0 -0
- /package/dist/{book-CsOxXN6N.cjs → book-PfXcgid6.cjs} +0 -0
- /package/dist/{book-a-6xO0ROfJ.cjs → book-a-D6cwpMxi.cjs} +0 -0
- /package/dist/{book-alert-4AJs0mhN.cjs → book-alert-CDwUK6PN.cjs} +0 -0
- /package/dist/{book-audio-Do4DGOO6.cjs → book-audio-ryowrtFo.cjs} +0 -0
- /package/dist/{book-bookmark-D2m4Ln66.cjs → book-bookmark-CMNM4akI.cjs} +0 -0
- /package/dist/{book-check-bXKAtYWe.cjs → book-check-CItWMzpZ.cjs} +0 -0
- /package/dist/{book-copy-CPzaPNJP.cjs → book-copy-b5oiygIz.cjs} +0 -0
- /package/dist/{book-dashed-BCd4VmDe.cjs → book-dashed-D2lwvqLi.cjs} +0 -0
- /package/dist/{book-down-C4J5uCw0.cjs → book-down-CfJ-pIIt.cjs} +0 -0
- /package/dist/{book-headphones-nBj_3sMv.cjs → book-headphones-BM1btBfq.cjs} +0 -0
- /package/dist/{book-heart-BopWLfjH.cjs → book-heart-C0l6urW4.cjs} +0 -0
- /package/dist/{book-image-CrCJ__YR.cjs → book-image-tr8psC0t.cjs} +0 -0
- /package/dist/{book-key-CF8Tw_6u.cjs → book-key-C-JYH2aM.cjs} +0 -0
- /package/dist/{book-lock-BJ1o_u-c.cjs → book-lock-YCwJjZO5.cjs} +0 -0
- /package/dist/{book-minus-BRcJYxhl.cjs → book-minus-cbBwlzq8.cjs} +0 -0
- /package/dist/{book-open-TalVqjg-.cjs → book-open-BDC0Kr4a.cjs} +0 -0
- /package/dist/{book-open-check-DU9q8pIx.cjs → book-open-check-B_gD9ETI.cjs} +0 -0
- /package/dist/{book-open-text-DWZRIghC.cjs → book-open-text-BsxmbKZs.cjs} +0 -0
- /package/dist/{book-plus-CYzbHSwp.cjs → book-plus-CPuUbp7p.cjs} +0 -0
- /package/dist/{book-search-Cphz6aAx.cjs → book-search-BCMi6Adb.cjs} +0 -0
- /package/dist/{book-text-zaxsXbeW.cjs → book-text-DGxaQQjw.cjs} +0 -0
- /package/dist/{book-type-BG-ksIjH.cjs → book-type-BUM005Zu.cjs} +0 -0
- /package/dist/{book-up-2-C-FdlI7K.cjs → book-up-2-7x624HfW.cjs} +0 -0
- /package/dist/{book-up-CUjrwlDu.cjs → book-up-DjQCJtF2.cjs} +0 -0
- /package/dist/{book-user-CvHTQCnt.cjs → book-user-FEgJJlFv.cjs} +0 -0
- /package/dist/{book-x-Dry9VZXZ.cjs → book-x-BZniYCl3.cjs} +0 -0
- /package/dist/{bookmark-check-CCghByiS.cjs → bookmark-check-CN2GOC5Z.cjs} +0 -0
- /package/dist/{bookmark-DHO2m9qO.cjs → bookmark-hA2eXsep.cjs} +0 -0
- /package/dist/{bookmark-minus-Bh19tZiO.cjs → bookmark-minus-3yIiC21T.cjs} +0 -0
- /package/dist/{bookmark-off-BgMt7ySO.cjs → bookmark-off-BcOcJsSt.cjs} +0 -0
- /package/dist/{bookmark-plus-BGQPI6aR.cjs → bookmark-plus-B_dA0a7n.cjs} +0 -0
- /package/dist/{bookmark-x-BTx08bAe.cjs → bookmark-x-BnhM2xPr.cjs} +0 -0
- /package/dist/{boom-box-DSDYB8YZ.cjs → boom-box-DDj3kr-M.cjs} +0 -0
- /package/dist/{bot-ByMmkQoK.cjs → bot-D6uBJLop.cjs} +0 -0
- /package/dist/{bot-message-square-Dso_y9wQ.cjs → bot-message-square-CTqIJKYP.cjs} +0 -0
- /package/dist/{bot-off-BKvfPO_c.cjs → bot-off-DThtf12T.cjs} +0 -0
- /package/dist/{bottle-wine-DBU0CPBJ.cjs → bottle-wine-DVLnm2Gt.cjs} +0 -0
- /package/dist/{bow-arrow-cumK2-E1.cjs → bow-arrow-WDFiQMxT.cjs} +0 -0
- /package/dist/{box-JzkZIC4J.cjs → box-OfFFg1nB.cjs} +0 -0
- /package/dist/{boxes-CJ91HfFL.cjs → boxes-CxqQdIue.cjs} +0 -0
- /package/dist/{braces-BGMmF1SF.cjs → braces-Cfis3ADP.cjs} +0 -0
- /package/dist/{brackets--PQsbdcG.cjs → brackets-DMRJB6gj.cjs} +0 -0
- /package/dist/{brain-ClxDux3m.cjs → brain-DoFbexkI.cjs} +0 -0
- /package/dist/{brain-circuit-DEpv1J6W.cjs → brain-circuit-CRaa7i9F.cjs} +0 -0
- /package/dist/{brain-cog-nyxaxieh.cjs → brain-cog-Bh7LgivM.cjs} +0 -0
- /package/dist/{brick-wall-fire-DzF9HDxq.cjs → brick-wall-fire-DZtvt_qB.cjs} +0 -0
- /package/dist/{brick-wall-CVIm4aBt.cjs → brick-wall-nn8JTx2o.cjs} +0 -0
- /package/dist/{brick-wall-shield-BoEvcfN7.cjs → brick-wall-shield-C4uRsGL8.cjs} +0 -0
- /package/dist/{bridge-DWSWFtff.cjs → bridge-LybCZJLz.cjs} +0 -0
- /package/dist/{briefcase-CeZBxgLv.cjs → briefcase-B4ZlYpMb.cjs} +0 -0
- /package/dist/{briefcase-business-DNy89Gf5.cjs → briefcase-business-Dmve23Q4.cjs} +0 -0
- /package/dist/{briefcase-conveyor-belt-CJHwPygO.cjs → briefcase-conveyor-belt-DNLO4Z8c.cjs} +0 -0
- /package/dist/{briefcase-medical-aLfDtZxd.cjs → briefcase-medical-DCpfkLvB.cjs} +0 -0
- /package/dist/{bring-to-front-CWsQRg20.cjs → bring-to-front-tU7Z9PJd.cjs} +0 -0
- /package/dist/{broccoli-WNnlOj_A.cjs → broccoli-1MlazJJ6.cjs} +0 -0
- /package/dist/{broom-Dmj3MV6Q.cjs → broom-D6WJOeJD.cjs} +0 -0
- /package/dist/{broom-sparkles-BCU5VGZW.cjs → broom-sparkles-CXM13YjB.cjs} +0 -0
- /package/dist/{brush-D6QBvzW3.cjs → brush-Dct45UOi.cjs} +0 -0
- /package/dist/{brush-cleaning-BoiX-iy6.cjs → brush-cleaning-JIiJGNsw.cjs} +0 -0
- /package/dist/{bubbles-B3-_m0Vk.cjs → bubbles-Yzd76pXv.cjs} +0 -0
- /package/dist/{bug-D3OrwDzF.cjs → bug-MxYNWCXD.cjs} +0 -0
- /package/dist/{bug-off-BUh2invS.cjs → bug-off-dt6I_9BG.cjs} +0 -0
- /package/dist/{bug-play-LqsVb4q8.cjs → bug-play-4rQBBMs1.cjs} +0 -0
- /package/dist/{building-complex-srbK2jrw.cjs → building-complex-3fPs_Ib-.cjs} +0 -0
- /package/dist/{building-complex-plus-B0ZPAvHI.cjs → building-complex-plus-D6loL6yi.cjs} +0 -0
- /package/dist/{building-ClBqy83L.cjs → building-xUYF4hV0.cjs} +0 -0
- /package/dist/{bus-BLJaWg74.cjs → bus-Dg_yMaKs.cjs} +0 -0
- /package/dist/{bus-front-yww9dhfS.cjs → bus-front-8MGo-Om0.cjs} +0 -0
- /package/dist/{cable-CW16L5rE.cjs → cable-CnqCwXkg.cjs} +0 -0
- /package/dist/{cable-car-D94Fraet.cjs → cable-car-BN2QE3Ql.cjs} +0 -0
- /package/dist/{cake-BYiSerH7.cjs → cake-CYlPhWHS.cjs} +0 -0
- /package/dist/{cake-slice-C2286HRu.cjs → cake-slice-3TaVrt0P.cjs} +0 -0
- /package/dist/{calculator-CXnDEgMu.cjs → calculator-CB-9_1wq.cjs} +0 -0
- /package/dist/{calendar-1-CYhARFPX.cjs → calendar-1-BMk6613U.cjs} +0 -0
- /package/dist/{calendar-CZoVE_-U.cjs → calendar-BcSwdYV9.cjs} +0 -0
- /package/dist/{calendar-arrow-down-C_GkVhPB.cjs → calendar-arrow-down-Aa_YQwJp.cjs} +0 -0
- /package/dist/{calendar-arrow-up-DJzjlvoV.cjs → calendar-arrow-up-c-WbkBvu.cjs} +0 -0
- /package/dist/{calendar-check-2-ayMEt5lj.cjs → calendar-check-2-Dr9BuGFi.cjs} +0 -0
- /package/dist/{calendar-check-BEiMRTW8.cjs → calendar-check-BLKHVlTK.cjs} +0 -0
- /package/dist/{calendar-chevrons-right-BvHFu4IZ.cjs → calendar-chevrons-right-ST6LELQZ.cjs} +0 -0
- /package/dist/{calendar-clock-CtB0hRwW.cjs → calendar-clock-BvjWMrHV.cjs} +0 -0
- /package/dist/{calendar-cog-VGowKbwS.cjs → calendar-cog-CXmSBDkp.cjs} +0 -0
- /package/dist/{calendar-days-BkJMYU-8.cjs → calendar-days-B9P4i93k.cjs} +0 -0
- /package/dist/{calendar-fold-DOgq7jCr.cjs → calendar-fold-CnWe3lfe.cjs} +0 -0
- /package/dist/{calendar-heart-DnTxMHkh.cjs → calendar-heart-BoX9Gpu2.cjs} +0 -0
- /package/dist/{calendar-minus-2-6I2TSrUQ.cjs → calendar-minus-2-ZzkjGziK.cjs} +0 -0
- /package/dist/{calendar-minus-P-oT_XQm.cjs → calendar-minus-D4VCxox0.cjs} +0 -0
- /package/dist/{calendar-off-S53GLSN7.cjs → calendar-off-Cn3MtQ13.cjs} +0 -0
- /package/dist/{calendar-plus-2-BaL5F1ML.cjs → calendar-plus-2-Cm7IgeV5.cjs} +0 -0
- /package/dist/{calendar-plus-CP7-JOMc.cjs → calendar-plus-3TOsyvaS.cjs} +0 -0
- /package/dist/{calendar-range-O9IDhFqI.cjs → calendar-range-CXuKTi0N.cjs} +0 -0
- /package/dist/{calendar-search-DlXdIrKK.cjs → calendar-search-D0zscv7F.cjs} +0 -0
- /package/dist/{calendar-sync-DlzLvOza.cjs → calendar-sync-Dln3x94x.cjs} +0 -0
- /package/dist/{calendar-x-2-Bt-zK0VE.cjs → calendar-x-2-E8dHxkBb.cjs} +0 -0
- /package/dist/{calendar-x-DcG1f6tQ.cjs → calendar-x-DuU9bOfS.cjs} +0 -0
- /package/dist/{calendars-D_mLO_0-.cjs → calendars-D8wGwyWa.cjs} +0 -0
- /package/dist/{camera-CpDC9NSH.cjs → camera-Ddr7AK7h.cjs} +0 -0
- /package/dist/{camera-off-BYOssLnW.cjs → camera-off-Di6osoua.cjs} +0 -0
- /package/dist/{can-DqrcNqih.cjs → can-6mf65iLN.cjs} +0 -0
- /package/dist/{can-soda-CYycIPfT.cjs → can-soda-BTwWFJxf.cjs} +0 -0
- /package/dist/{candy-CZXnOd4I.cjs → candy-BFxNF0sn.cjs} +0 -0
- /package/dist/{candy-cane-D5lslHac.cjs → candy-cane-CG3SoOes.cjs} +0 -0
- /package/dist/{candy-off-P-VUP9eg.cjs → candy-off-DmrEAJiI.cjs} +0 -0
- /package/dist/{cannabis-uP5-oqye.cjs → cannabis-RJUEfaj_.cjs} +0 -0
- /package/dist/{cannabis-off-CpclikEe.cjs → cannabis-off-DW7QxSCB.cjs} +0 -0
- /package/dist/{captions-Cmksg9yo.cjs → captions-0EZWopI7.cjs} +0 -0
- /package/dist/{captions-off-BWGZfCYx.cjs → captions-off-BXMn01ld.cjs} +0 -0
- /package/dist/{car-BttUz3_4.cjs → car-Cdx3ZyT1.cjs} +0 -0
- /package/dist/{car-battery-DaUBGPkM.cjs → car-battery-DgbWxMsg.cjs} +0 -0
- /package/dist/{car-front-DWlyS31l.cjs → car-front-BY81SYFl.cjs} +0 -0
- /package/dist/{car-taxi-front-m2wZTPyS.cjs → car-taxi-front-DlytULJa.cjs} +0 -0
- /package/dist/{caravan-DJZ587LS.cjs → caravan-CEJ7DPW3.cjs} +0 -0
- /package/dist/{card-sim-BHeK2fOA.cjs → card-sim-uXjATJZm.cjs} +0 -0
- /package/dist/{carrot-OqjskmuR.cjs → carrot-D-0_aNsr.cjs} +0 -0
- /package/dist/{carton-CIibwwx-.cjs → carton-DCs313Cf.cjs} +0 -0
- /package/dist/{carton-off-CLkKao1C.cjs → carton-off-BRBAnZPf.cjs} +0 -0
- /package/dist/{case-lower-BALj7ppx.cjs → case-lower-BPoWxLAG.cjs} +0 -0
- /package/dist/{case-sensitive-BThwRh8J.cjs → case-sensitive-B48Eb6E3.cjs} +0 -0
- /package/dist/{case-upper-D1_qXKVn.cjs → case-upper-C0oOvfAe.cjs} +0 -0
- /package/dist/{cassette-tape-SGK8i97O.cjs → cassette-tape-C69SD2_D.cjs} +0 -0
- /package/dist/{cast-CR4aKElc.cjs → cast-CZhcc6qX.cjs} +0 -0
- /package/dist/{castle-_ocbWyPW.cjs → castle-BByWtC3V.cjs} +0 -0
- /package/dist/{cat-B0seJkqU.cjs → cat-CIDFqQyL.cjs} +0 -0
- /package/dist/{cctv-CZgnsfy2.cjs → cctv-BqlGsW72.cjs} +0 -0
- /package/dist/{cctv-off-Di09_yzI.cjs → cctv-off-CXmFTxj4.cjs} +0 -0
- /package/dist/{chart-area-BzFm2tdi.cjs → chart-area-iha-uQmt.cjs} +0 -0
- /package/dist/{chart-bar-CXS8T-Wh.cjs → chart-bar-CmbojwqS.cjs} +0 -0
- /package/dist/{chart-bar-big-7ru2FiuN.cjs → chart-bar-big-Be5tRwTJ.cjs} +0 -0
- /package/dist/{chart-bar-decreasing-r4FWL1Uk.cjs → chart-bar-decreasing-YLv8cE8E.cjs} +0 -0
- /package/dist/{chart-bar-increasing-CrMw72Fn.cjs → chart-bar-increasing-CxqbTl9q.cjs} +0 -0
- /package/dist/{chart-bar-stacked-CzbyjMd2.cjs → chart-bar-stacked-CzcTaCvu.cjs} +0 -0
- /package/dist/{chart-candlestick-DsDtNcgz.cjs → chart-candlestick-Da83rs-E.cjs} +0 -0
- /package/dist/{chart-column-LY-cafL6.cjs → chart-column-ChlT2Kkh.cjs} +0 -0
- /package/dist/{chart-column-big-D8b3OQZe.cjs → chart-column-big-BXngLPKe.cjs} +0 -0
- /package/dist/{chart-column-decreasing-D19JCLAn.cjs → chart-column-decreasing-BmzEii6B.cjs} +0 -0
- /package/dist/{chart-column-increasing-Da-UHipg.cjs → chart-column-increasing-CTXmo-1M.cjs} +0 -0
- /package/dist/{chart-column-stacked-DyI57Epe.cjs → chart-column-stacked-G1VhD62I.cjs} +0 -0
- /package/dist/{chart-gantt-BOOlSyy4.cjs → chart-gantt-DmGIZslQ.cjs} +0 -0
- /package/dist/{chart-line-J3AS-MHl.cjs → chart-line-D2-uolgR.cjs} +0 -0
- /package/dist/{chart-network-bkBruTVp.cjs → chart-network-p9iQBQcM.cjs} +0 -0
- /package/dist/{chart-no-axes-column-ITwym8qb.cjs → chart-no-axes-column-E9cP915u.cjs} +0 -0
- /package/dist/{chart-no-axes-column-decreasing-BRVAlCNz.cjs → chart-no-axes-column-decreasing-DX7qU9y1.cjs} +0 -0
- /package/dist/{chart-no-axes-column-increasing-CJaYjovh.cjs → chart-no-axes-column-increasing-DhmopkOs.cjs} +0 -0
- /package/dist/{chart-no-axes-combined-773Gmh4e.cjs → chart-no-axes-combined-cAyUptUS.cjs} +0 -0
- /package/dist/{chart-no-axes-gantt-NH0yIgw4.cjs → chart-no-axes-gantt-BMAY0fgR.cjs} +0 -0
- /package/dist/{chart-pie-DYPze9YA.cjs → chart-pie-BgfVwEil.cjs} +0 -0
- /package/dist/{chart-scatter-BxCg7zL-.cjs → chart-scatter-B_o9YTmi.cjs} +0 -0
- /package/dist/{chart-spline-WZM-vBhn.cjs → chart-spline-DU6V7Z2J.cjs} +0 -0
- /package/dist/{check-BBnmsJkl.cjs → check-DHxlMG8S.cjs} +0 -0
- /package/dist/{check-check-THijjMr6.cjs → check-check-B0GlB8sf.cjs} +0 -0
- /package/dist/{check-line-6hRhxL9X.cjs → check-line-DQOFc24y.cjs} +0 -0
- /package/dist/{chef-hat-1UjU3-du.cjs → chef-hat-CGutXj6L.cjs} +0 -0
- /package/dist/{cherry-oijL1CcP.cjs → cherry-CSzj4W0V.cjs} +0 -0
- /package/dist/{chess-bishop-CTXk6PoO.cjs → chess-bishop-CYdu5lqn.cjs} +0 -0
- /package/dist/{chess-king-CPuCfKm1.cjs → chess-king-Blw784QP.cjs} +0 -0
- /package/dist/{chess-knight-DzpmoA-n.cjs → chess-knight-yNwF33y7.cjs} +0 -0
- /package/dist/{chess-pawn-BrQ8OSON.cjs → chess-pawn-BkQNvBnO.cjs} +0 -0
- /package/dist/{chess-queen-BH5TBHLn.cjs → chess-queen-0aqd5wes.cjs} +0 -0
- /package/dist/{chess-rook-OpwaD4Vj.cjs → chess-rook-CCrhlG5k.cjs} +0 -0
- /package/dist/{chevron-down-BgvKaTX5.cjs → chevron-down-BvpXTLpt.cjs} +0 -0
- /package/dist/{chevron-first-DtThdu--.cjs → chevron-first-C-OowzhN.cjs} +0 -0
- /package/dist/{chevron-last-5-tjBqNq.cjs → chevron-last-Cvk2XltM.cjs} +0 -0
- /package/dist/{chevron-left-DmaPZzOx.cjs → chevron-left-C11wpa9E.cjs} +0 -0
- /package/dist/{chevron-right-BAxcTNH9.cjs → chevron-right-BoJVnfWj.cjs} +0 -0
- /package/dist/{chevron-up-BQ0x_jC_.cjs → chevron-up-Du347QZv.cjs} +0 -0
- /package/dist/{chevrons-down-CCBDXfPg.cjs → chevrons-down-Dc9CfD75.cjs} +0 -0
- /package/dist/{chevrons-down-up-CZlOgV_-.cjs → chevrons-down-up-CJAlj9SJ.cjs} +0 -0
- /package/dist/{chevrons-left-BSHZD2hU.cjs → chevrons-left-RVC-JDSb.cjs} +0 -0
- /package/dist/{chevrons-left-right-CagHChOH.cjs → chevrons-left-right-DCSPKNhu.cjs} +0 -0
- /package/dist/{chevrons-left-right-ellipsis-Cc_haVmO.cjs → chevrons-left-right-ellipsis-0rLQXjQJ.cjs} +0 -0
- /package/dist/{chevrons-right-zPwCW0dd.cjs → chevrons-right-DWxfsOtM.cjs} +0 -0
- /package/dist/{chevrons-right-left-C2fOX_A6.cjs → chevrons-right-left-B--UGLPG.cjs} +0 -0
- /package/dist/{chevrons-up-gXn70-Ca.cjs → chevrons-up-DTtYlES2.cjs} +0 -0
- /package/dist/{chevrons-up-down-BNbV57p_.cjs → chevrons-up-down-Dbg_Th-_.cjs} +0 -0
- /package/dist/{church-ByeU8Hgq.cjs → church-Dw3lWLqd.cjs} +0 -0
- /package/dist/{cigarette-B_qButOp.cjs → cigarette-DJqD8n67.cjs} +0 -0
- /package/dist/{cigarette-off-CzdV7UCl.cjs → cigarette-off-D1xGP_EX.cjs} +0 -0
- /package/dist/{circle-Bl0JRPKc.cjs → circle-CQeZpZSw.cjs} +0 -0
- /package/dist/{circle-alert-CPAibpjD.cjs → circle-alert-bBfbbWYo.cjs} +0 -0
- /package/dist/{circle-arrow-down-BMWMlRXP.cjs → circle-arrow-down-g_ccDhoz.cjs} +0 -0
- /package/dist/{circle-arrow-left-COEKaeVy.cjs → circle-arrow-left-DP3P1jyT.cjs} +0 -0
- /package/dist/{circle-arrow-out-down-left-DYlgJXE_.cjs → circle-arrow-out-down-left-DIhougDr.cjs} +0 -0
- /package/dist/{circle-arrow-out-down-right-B1Jl9Juh.cjs → circle-arrow-out-down-right-_eaPw3Kz.cjs} +0 -0
- /package/dist/{circle-arrow-out-up-left-BRs80f_r.cjs → circle-arrow-out-up-left-BbCX2Zu6.cjs} +0 -0
- /package/dist/{circle-arrow-out-up-right-BXV2x09Y.cjs → circle-arrow-out-up-right-368D_pqg.cjs} +0 -0
- /package/dist/{circle-arrow-right-BQHPU8vu.cjs → circle-arrow-right-BNEXRkqd.cjs} +0 -0
- /package/dist/{circle-arrow-up-DNDeFNG8.cjs → circle-arrow-up-LSBBAGap.cjs} +0 -0
- /package/dist/{circle-check-big-Bs6mIdTo.cjs → circle-check-big-Bsw-Rvuk.cjs} +0 -0
- /package/dist/{circle-check-YyIUH2tH.cjs → circle-check-lO6sDfof.cjs} +0 -0
- /package/dist/{circle-chevron-down-BFmgvd9R.cjs → circle-chevron-down-D0A3yrPD.cjs} +0 -0
- /package/dist/{circle-chevron-left-CMH7FqRo.cjs → circle-chevron-left-C0s1Q3I0.cjs} +0 -0
- /package/dist/{circle-chevron-right-nrS0eLAg.cjs → circle-chevron-right-49CDV11i.cjs} +0 -0
- /package/dist/{circle-chevron-up-Diq4y2Vh.cjs → circle-chevron-up-BnY5ZQtF.cjs} +0 -0
- /package/dist/{circle-dashed-1l3qgjXo.cjs → circle-dashed-DIMUARW5.cjs} +0 -0
- /package/dist/{circle-dashed-check-D8WHUIVC.cjs → circle-dashed-check-Cw5gT5NC.cjs} +0 -0
- /package/dist/{circle-divide-pM-gDem2.cjs → circle-divide-Cc_ml4kF.cjs} +0 -0
- /package/dist/{circle-dollar-sign-B-9zE1Xy.cjs → circle-dollar-sign-DDDX08mm.cjs} +0 -0
- /package/dist/{circle-dot-CrvuGFhA.cjs → circle-dot-WgmpzFuD.cjs} +0 -0
- /package/dist/{circle-dot-dashed-DcXagLwv.cjs → circle-dot-dashed-mfVjnLHS.cjs} +0 -0
- /package/dist/{circle-ellipsis-CCTn2fWA.cjs → circle-ellipsis-1b0-_5eZ.cjs} +0 -0
- /package/dist/{circle-equal-C5Y9t4vZ.cjs → circle-equal-C3qpyLmx.cjs} +0 -0
- /package/dist/{circle-euro-B1uAY_U4.cjs → circle-euro-BokdCT1r.cjs} +0 -0
- /package/dist/{circle-fading-arrow-up-VY9PvLME.cjs → circle-fading-arrow-up-DIh33ksm.cjs} +0 -0
- /package/dist/{circle-fading-plus-_2PLV-hp.cjs → circle-fading-plus-Ce7QC6Xw.cjs} +0 -0
- /package/dist/{circle-gauge-CJ4ZAbn6.cjs → circle-gauge-pQGTxEhf.cjs} +0 -0
- /package/dist/{circle-minus-BJPhFGMS.cjs → circle-minus-CbpyOWdh.cjs} +0 -0
- /package/dist/{circle-off-DEOG_c2z.cjs → circle-off-Cdmq-r_b.cjs} +0 -0
- /package/dist/{circle-parking-BYeCVPiY.cjs → circle-parking-B-Gzs9k5.cjs} +0 -0
- /package/dist/{circle-parking-off-H96QI-b6.cjs → circle-parking-off-BbnOwGAv.cjs} +0 -0
- /package/dist/{circle-pause-BFTrNvMQ.cjs → circle-pause-DQl8ocRi.cjs} +0 -0
- /package/dist/{circle-percent-B3iWFZDX.cjs → circle-percent-DevcfYbj.cjs} +0 -0
- /package/dist/{circle-pile-ITELP5lH.cjs → circle-pile-Dq8i4YJr.cjs} +0 -0
- /package/dist/{circle-play-C-MGLfpN.cjs → circle-play-HFYrucTU.cjs} +0 -0
- /package/dist/{circle-plus-CHtzlMec.cjs → circle-plus-CrmFswFF.cjs} +0 -0
- /package/dist/{circle-pound-sterling-vdt6clTD.cjs → circle-pound-sterling-DB-XLvD4.cjs} +0 -0
- /package/dist/{circle-power-CSnnJALI.cjs → circle-power-BKP7PFue.cjs} +0 -0
- /package/dist/{circle-question-mark-ClrnPbbk.cjs → circle-question-mark-DwHFj8ZU.cjs} +0 -0
- /package/dist/{circle-slash-2-DAIlOXbz.cjs → circle-slash-2-DEYFAU28.cjs} +0 -0
- /package/dist/{circle-slash-DPbJAaiI.cjs → circle-slash-DL4sCAzr.cjs} +0 -0
- /package/dist/{circle-small-D0r2L1Cy.cjs → circle-small-HtUoBntI.cjs} +0 -0
- /package/dist/{circle-star-_cnb-eIS.cjs → circle-star-BVxbpcPZ.cjs} +0 -0
- /package/dist/{circle-stop-DcL5Zq1a.cjs → circle-stop-Cbcc6jbZ.cjs} +0 -0
- /package/dist/{circle-user-CDOyc6ve.cjs → circle-user-CzcO2px_.cjs} +0 -0
- /package/dist/{circle-user-round-Db5ziayi.cjs → circle-user-round-JGWlDd2h.cjs} +0 -0
- /package/dist/{circle-x-BJnbQc7_.cjs → circle-x-U9regWfl.cjs} +0 -0
- /package/dist/{circuit-board-DTIZQAOa.cjs → circuit-board-f92sc8Xc.cjs} +0 -0
- /package/dist/{citrus-Csbj-SXl.cjs → citrus-BNrHwWVN.cjs} +0 -0
- /package/dist/{clapperboard-9g2-O-Yn.cjs → clapperboard-Cw8zrC2i.cjs} +0 -0
- /package/dist/{clef-alto-DAvyuJeW.cjs → clef-alto-DCQ40N5s.cjs} +0 -0
- /package/dist/{clef-bass-C7YMslta.cjs → clef-bass-lQ4CR5wT.cjs} +0 -0
- /package/dist/{clef-treble-wUrV20BR.cjs → clef-treble-BughA0IU.cjs} +0 -0
- /package/dist/{clipboard-BcUOVj1n.cjs → clipboard-Du72Pc2J.cjs} +0 -0
- /package/dist/{clipboard-check-Da6pExKQ.cjs → clipboard-check-BOKklLEn.cjs} +0 -0
- /package/dist/{clipboard-clock-ArFZm4Wd.cjs → clipboard-clock-aaJ8U_c6.cjs} +0 -0
- /package/dist/{clipboard-copy-Cv4PACcT.cjs → clipboard-copy-C2pktrgZ.cjs} +0 -0
- /package/dist/{clipboard-list-C5KECdVC.cjs → clipboard-list-BUTzcsRr.cjs} +0 -0
- /package/dist/{clipboard-minus-Tv4zq9qj.cjs → clipboard-minus-DQUkuw2O.cjs} +0 -0
- /package/dist/{clipboard-paste-D3pCW8HI.cjs → clipboard-paste-C3x6pyeu.cjs} +0 -0
- /package/dist/{clipboard-pen-BAPBfQqA.cjs → clipboard-pen-DOL5DnYi.cjs} +0 -0
- /package/dist/{clipboard-pen-line-DVDk518U.cjs → clipboard-pen-line-DK8ZZVbl.cjs} +0 -0
- /package/dist/{clipboard-plus-B5iU1vRe.cjs → clipboard-plus-Dk6JHN2Z.cjs} +0 -0
- /package/dist/{clipboard-type-c5UdF9cR.cjs → clipboard-type-C7_qmOH1.cjs} +0 -0
- /package/dist/{clipboard-x-TQk-6vyk.cjs → clipboard-x-De44bh81.cjs} +0 -0
- /package/dist/{clock-1-CXFqAxm5.cjs → clock-1-DmIq9xFY.cjs} +0 -0
- /package/dist/{clock-10-Bo3xBFli.cjs → clock-10-DLAmf2IX.cjs} +0 -0
- /package/dist/{clock-11-xQwsHDba.cjs → clock-11-CIRDs0Vv.cjs} +0 -0
- /package/dist/{clock-12-DnyrjS0O.cjs → clock-12-eElOUlZD.cjs} +0 -0
- /package/dist/{clock-2-Do0JeXtM.cjs → clock-2-D26rfkUy.cjs} +0 -0
- /package/dist/{clock-3-5TDd9EMj.cjs → clock-3-BK3qHSu9.cjs} +0 -0
- /package/dist/{clock-4-tEuZOZ2d.cjs → clock-4-BtSWLqEq.cjs} +0 -0
- /package/dist/{clock-5-CoWuPLXl.cjs → clock-5-DEp7nwqn.cjs} +0 -0
- /package/dist/{clock-6-DyiL4-GQ.cjs → clock-6--z-GW1qk.cjs} +0 -0
- /package/dist/{clock-7-C1-qsfzy.cjs → clock-7-IAxpdo2-.cjs} +0 -0
- /package/dist/{clock-8-bHwjQVQG.cjs → clock-8-OuJ38PnO.cjs} +0 -0
- /package/dist/{clock-9-B9ymrIGz.cjs → clock-9-BE9vhsGk.cjs} +0 -0
- /package/dist/{clock-D-oWPqLS.cjs → clock-D_3UXEE4.cjs} +0 -0
- /package/dist/{clock-alert-wwLQtYOP.cjs → clock-alert-DFL5vX96.cjs} +0 -0
- /package/dist/{clock-arrow-down-C3XuRK6c.cjs → clock-arrow-down-BkDxv8gi.cjs} +0 -0
- /package/dist/{clock-arrow-left-CoEdzvSI.cjs → clock-arrow-left-zHCYvSkY.cjs} +0 -0
- /package/dist/{clock-arrow-right-c_junJOc.cjs → clock-arrow-right-CrdtaygS.cjs} +0 -0
- /package/dist/{clock-arrow-up-BMVzDWLr.cjs → clock-arrow-up-iDbXxskx.cjs} +0 -0
- /package/dist/{clock-check-cqhC7pE-.cjs → clock-check-BEVIo8JJ.cjs} +0 -0
- /package/dist/{clock-fading-DILj8GjL.cjs → clock-fading-Da5zrgPv.cjs} +0 -0
- /package/dist/{clock-plus-BlL3pA31.cjs → clock-plus-DziH0ZTs.cjs} +0 -0
- /package/dist/{closed-caption-D-c6RUtK.cjs → closed-caption-Cavfvnnm.cjs} +0 -0
- /package/dist/{cloud-DL21jrES.cjs → cloud-BtHCnNmK.cjs} +0 -0
- /package/dist/{cloud-alert-Ccor9LTl.cjs → cloud-alert-I7DLiUz_.cjs} +0 -0
- /package/dist/{cloud-backup-r7Sm1x2Y.cjs → cloud-backup-w3F8jjm4.cjs} +0 -0
- /package/dist/{cloud-check-xuGCvxtN.cjs → cloud-check-B2EdyokZ.cjs} +0 -0
- /package/dist/{cloud-cog-CgAGQI-Z.cjs → cloud-cog-BwHBlco0.cjs} +0 -0
- /package/dist/{cloud-download-CP3Va3YU.cjs → cloud-download-B1rBFY9Y.cjs} +0 -0
- /package/dist/{cloud-drizzle-DYvIWV-t.cjs → cloud-drizzle-BNDivc1i.cjs} +0 -0
- /package/dist/{cloud-fog-CtM4Sm3l.cjs → cloud-fog-ROSBrXqU.cjs} +0 -0
- /package/dist/{cloud-hail-D8Z6JkXv.cjs → cloud-hail-DxDZFbOd.cjs} +0 -0
- /package/dist/{cloud-lightning-CFKkfOH1.cjs → cloud-lightning-B3JObPqj.cjs} +0 -0
- /package/dist/{cloud-moon-Clrn5yCI.cjs → cloud-moon-BU2VLFst.cjs} +0 -0
- /package/dist/{cloud-moon-rain-XTaRvrAM.cjs → cloud-moon-rain-DvD6ucg_.cjs} +0 -0
- /package/dist/{cloud-off-fzO1Bx00.cjs → cloud-off-DU85PhcE.cjs} +0 -0
- /package/dist/{cloud-rain-CvDuvAlt.cjs → cloud-rain-dfomsn9m.cjs} +0 -0
- /package/dist/{cloud-rain-wind-BlYcPjQF.cjs → cloud-rain-wind-aYlmBfkR.cjs} +0 -0
- /package/dist/{cloud-snow-Ca_wUUYZ.cjs → cloud-snow-vLAw1khK.cjs} +0 -0
- /package/dist/{cloud-sun-DymDw_-1.cjs → cloud-sun-FPwaN2ZL.cjs} +0 -0
- /package/dist/{cloud-sun-rain-9EGIUve6.cjs → cloud-sun-rain-CkbFYZHg.cjs} +0 -0
- /package/dist/{cloud-sync-CMQ2NmdB.cjs → cloud-sync-CIQlzFdg.cjs} +0 -0
- /package/dist/{cloud-upload-ClIA2ez2.cjs → cloud-upload-CDiAGnPZ.cjs} +0 -0
- /package/dist/{cloudy-DWBGs86g.cjs → cloudy-CZRRngqI.cjs} +0 -0
- /package/dist/{clover-ClU6aR22.cjs → clover-BY-mKLvr.cjs} +0 -0
- /package/dist/{club-B2NKZ9pW.cjs → club-oJYloLfG.cjs} +0 -0
- /package/dist/{code-DjsGacfi.cjs → code-COOD_twA.cjs} +0 -0
- /package/dist/{code-xml-CAgYLlgZ.cjs → code-xml-BOu09lPN.cjs} +0 -0
- /package/dist/{coffee-dblkIoy9.cjs → coffee-B_OSStDA.cjs} +0 -0
- /package/dist/{cog-W5i_2918.cjs → cog-r405fzBh.cjs} +0 -0
- /package/dist/{coins-C_KmB0Sx.cjs → coins-CrQ8Cc19.cjs} +0 -0
- /package/dist/{columns-2-C7c541f2.cjs → columns-2-DdnUa1FX.cjs} +0 -0
- /package/dist/{columns-3-DYDyzaQp.cjs → columns-3-BArKwMtu.cjs} +0 -0
- /package/dist/{columns-3-cog-Dz23Mjw1.cjs → columns-3-cog-C1_9R0eN.cjs} +0 -0
- /package/dist/{columns-4-BZXzRDps.cjs → columns-4-_DWuQu4C.cjs} +0 -0
- /package/dist/{combine-CMSUF0WD.cjs → combine-DNd_obfc.cjs} +0 -0
- /package/dist/{command-Dq7tneEE.cjs → command-jNGjmaPi.cjs} +0 -0
- /package/dist/{compass-BGgTDhV3.cjs → compass-CyH9sbZ9.cjs} +0 -0
- /package/dist/{component-BtCvWO7M.cjs → component-BUgVYnMM.cjs} +0 -0
- /package/dist/{computer-CIFzoNoM.cjs → computer-gfYy2hvQ.cjs} +0 -0
- /package/dist/{concierge-bell-CF9Cd2--.cjs → concierge-bell-Bl0nJDNW.cjs} +0 -0
- /package/dist/{cone-C7W9YH1Q.cjs → cone-4R2Yi9Ff.cjs} +0 -0
- /package/dist/{construction-DHH3O0_d.cjs → construction-COQGAtGo.cjs} +0 -0
- /package/dist/{contact-F3RyB6o-.cjs → contact-BykzW-4k.cjs} +0 -0
- /package/dist/{contact-round-BNk6KV7O.cjs → contact-round-PQT3Yw6q.cjs} +0 -0
- /package/dist/{container-P9qF4qf_.cjs → container-J0pUzL2j.cjs} +0 -0
- /package/dist/{contrast-DPdtVNHi.cjs → contrast-CTeLojoh.cjs} +0 -0
- /package/dist/{cookie-DcnxreVS.cjs → cookie-CYlMNTy8.cjs} +0 -0
- /package/dist/{cooking-pot-lGObLWKT.cjs → cooking-pot-DGLtu1kS.cjs} +0 -0
- /package/dist/{copy-D5TUVepg.cjs → copy-AqHKSWFb.cjs} +0 -0
- /package/dist/{copy-check-D24iEh2i.cjs → copy-check-CwU-73an.cjs} +0 -0
- /package/dist/{copy-minus-D7GeEJUE.cjs → copy-minus-TnXO2KNB.cjs} +0 -0
- /package/dist/{copy-plus-BP5tquYk.cjs → copy-plus-DwEhZyWs.cjs} +0 -0
- /package/dist/{copy-slash-Dcd94M-s.cjs → copy-slash-BPMLht4P.cjs} +0 -0
- /package/dist/{copy-x-Bdt_j-Ds.cjs → copy-x-CJZo8X_9.cjs} +0 -0
- /package/dist/{copyleft-Cz0G3Avl.cjs → copyleft-BGdzG6M2.cjs} +0 -0
- /package/dist/{copyright-D44B9CwO.cjs → copyright-Bb1Pg6mX.cjs} +0 -0
- /package/dist/{corner-down-left-Y_8s_W8z.cjs → corner-down-left-BEVS8IhI.cjs} +0 -0
- /package/dist/{corner-down-right-Bx22GvH_.cjs → corner-down-right-D8ueimVB.cjs} +0 -0
- /package/dist/{corner-left-down-OVf4DoJv.cjs → corner-left-down-DK3t6_6G.cjs} +0 -0
- /package/dist/{corner-left-up-BKNL1N1s.cjs → corner-left-up-Bv3KExdm.cjs} +0 -0
- /package/dist/{corner-right-down-BnZzfdVB.cjs → corner-right-down-CkvJu6aP.cjs} +0 -0
- /package/dist/{corner-right-up-DYcbZAU0.cjs → corner-right-up-DtHcAjL6.cjs} +0 -0
- /package/dist/{corner-up-left-BdygbyUb.cjs → corner-up-left-Ck9-ow-z.cjs} +0 -0
- /package/dist/{corner-up-right-BUNoSGjn.cjs → corner-up-right-CV0nvxQm.cjs} +0 -0
- /package/dist/{cpu-Dj94ZXPW.cjs → cpu-D_SNenXy.cjs} +0 -0
- /package/dist/{creative-commons-DgjyGjsI.cjs → creative-commons-xAERsJwN.cjs} +0 -0
- /package/dist/{credit-card-check-DV74NyRs.cjs → credit-card-check-DrcoDbp2.cjs} +0 -0
- /package/dist/{credit-card-BfjZuJaj.cjs → credit-card-mM4hjREG.cjs} +0 -0
- /package/dist/{credit-card-minus-DSW-KDBF.cjs → credit-card-minus-BBxPDZ01.cjs} +0 -0
- /package/dist/{credit-card-plus-Cy-pQCXz.cjs → credit-card-plus-CMMG0c4h.cjs} +0 -0
- /package/dist/{credit-card-reader-BryDd_bf.cjs → credit-card-reader-CjMYr534.cjs} +0 -0
- /package/dist/{credit-card-x-BCuJ-f73.cjs → credit-card-x-J_2Fkd_G.cjs} +0 -0
- /package/dist/{croissant-De_F7X5m.cjs → croissant-Bxzf8bnA.cjs} +0 -0
- /package/dist/{crop-BpXx04v5.cjs → crop-DLVAl4GC.cjs} +0 -0
- /package/dist/{cross-n3yF_v7u.cjs → cross-CYHF447X.cjs} +0 -0
- /package/dist/{crosshair-qtuS2QPS.cjs → crosshair-Bh3-0fG-.cjs} +0 -0
- /package/dist/{crown-DSng4o0N.cjs → crown-CHBxKF9v.cjs} +0 -0
- /package/dist/{cuboid-CQYc3Z3-.cjs → cuboid-DR0HAvrv.cjs} +0 -0
- /package/dist/{cup-soda-Bwh8IUHX.cjs → cup-soda-Mri2Ifgt.cjs} +0 -0
- /package/dist/{cupcake-DxIj5yg4.cjs → cupcake-2B8RzgXy.cjs} +0 -0
- /package/dist/{currency-CQdfdl7O.cjs → currency-nV2CY43m.cjs} +0 -0
- /package/dist/{cylinder-C_ZxWBaw.cjs → cylinder-xVIz1sJN.cjs} +0 -0
- /package/dist/{dam-gLk6ITAQ.cjs → dam-DbE0TFzN.cjs} +0 -0
- /package/dist/{database-Bu63LJ-8.cjs → database-D4nj27Hd.cjs} +0 -0
- /package/dist/{database-arrow-down-Umt1IkOb.cjs → database-arrow-down-DWsI_nEY.cjs} +0 -0
- /package/dist/{database-arrow-up-DWq5AJSl.cjs → database-arrow-up-JosLmoMd.cjs} +0 -0
- /package/dist/{database-backup-BqiXCgAA.cjs → database-backup-DnQg6v1n.cjs} +0 -0
- /package/dist/{database-check-D-pyLosB.cjs → database-check-DkANFaNI.cjs} +0 -0
- /package/dist/{database-minus-2KMXoZgC.cjs → database-minus-BC2_iPii.cjs} +0 -0
- /package/dist/{database-plus-C1nixTpZ.cjs → database-plus-BZ3cJS3h.cjs} +0 -0
- /package/dist/{database-search-DtoHmY_m.cjs → database-search-BHNW56PY.cjs} +0 -0
- /package/dist/{database-x-CMf0AdVw.cjs → database-x-COTzkTib.cjs} +0 -0
- /package/dist/{database-zap-D8lTT-NH.cjs → database-zap-B9ew9Wmy.cjs} +0 -0
- /package/dist/{decimals-arrow-left-C_qrcGh0.cjs → decimals-arrow-left-DqG8RjXN.cjs} +0 -0
- /package/dist/{decimals-arrow-right-BqLZMR7W.cjs → decimals-arrow-right-Y37ggZ6W.cjs} +0 -0
- /package/dist/{delete-Dd7t9Tpz.cjs → delete-7ac914lO.cjs} +0 -0
- /package/dist/{dessert-VeS_DT6C.cjs → dessert-BkwbQkhz.cjs} +0 -0
- /package/dist/{diameter-DEF3gGTa.cjs → diameter-CTGV0BL8.cjs} +0 -0
- /package/dist/{diamond-minus-Duxf1UL-.cjs → diamond-minus-BaBWaJnT.cjs} +0 -0
- /package/dist/{diamond-CwNBNY6U.cjs → diamond-n3u83z_S.cjs} +0 -0
- /package/dist/{diamond-percent-CL4PNdPJ.cjs → diamond-percent-D8gUluKs.cjs} +0 -0
- /package/dist/{diamond-plus-CvrH5afs.cjs → diamond-plus-CLxr10qy.cjs} +0 -0
- /package/dist/{dice-1-BBuXH3bo.cjs → dice-1-BP0aJk1C.cjs} +0 -0
- /package/dist/{dice-2-DDxI9MzD.cjs → dice-2-DupyJjBI.cjs} +0 -0
- /package/dist/{dice-3-tHw9NoH9.cjs → dice-3-JENfovUA.cjs} +0 -0
- /package/dist/{dice-4-DB8qWUC0.cjs → dice-4-P3dMRvTs.cjs} +0 -0
- /package/dist/{dice-5-Czp1bLPg.cjs → dice-5-B1707nWa.cjs} +0 -0
- /package/dist/{dice-6-CdgR3k3x.cjs → dice-6-DkoeAy3m.cjs} +0 -0
- /package/dist/{dices-DYNYcsJ4.cjs → dices-DBSXHsNb.cjs} +0 -0
- /package/dist/{diff-e29a4PpZ.cjs → diff-VkRWvkN3.cjs} +0 -0
- /package/dist/{disc-2-BudmLBhT.cjs → disc-2-D8Vlg7Z_.cjs} +0 -0
- /package/dist/{disc-3-CWw_RKGS.cjs → disc-3-C9h7_r2s.cjs} +0 -0
- /package/dist/{disc-BiycJfsd.cjs → disc-5D5Q8tFG.cjs} +0 -0
- /package/dist/{disc-album-DZYR4tV5.cjs → disc-album-WYO5n7Nv.cjs} +0 -0
- /package/dist/{dist-CJpBsn3L.cjs → dist-BkJUS--s.cjs} +0 -0
- /package/dist/{divide-D18vJVj_.cjs → divide-CD8z9eZs.cjs} +0 -0
- /package/dist/{dna-AtBA5DvA.cjs → dna-BTqbEUBd.cjs} +0 -0
- /package/dist/{dna-off-G-qBTe2n.cjs → dna-off-B3S1LRHi.cjs} +0 -0
- /package/dist/{dock-a8Dh9EZF.cjs → dock-C4FXijjl.cjs} +0 -0
- /package/dist/{dog-C7rY6t3V.cjs → dog-CMJFEB44.cjs} +0 -0
- /package/dist/{dollar-sign-sdVSgXdR.cjs → dollar-sign-CUu5eScv.cjs} +0 -0
- /package/dist/{dome-BvIGAk0S.cjs → dome-Br5Zl8DG.cjs} +0 -0
- /package/dist/{donut-Dyzb8pig.cjs → donut-DXrjQ48p.cjs} +0 -0
- /package/dist/{door-closed-ClPLnL-M.cjs → door-closed-DvGO1ljL.cjs} +0 -0
- /package/dist/{door-closed-locked-B23RrUdL.cjs → door-closed-locked-D0Ppblq-.cjs} +0 -0
- /package/dist/{door-closed-package-jjNyqmTJ.cjs → door-closed-package-BK-2H6et.cjs} +0 -0
- /package/dist/{door-open-BUcMomtF.cjs → door-open-CECj7C4X.cjs} +0 -0
- /package/dist/{door-stairwell-j2XW5OkW.cjs → door-stairwell-BPkInu5Y.cjs} +0 -0
- /package/dist/{dot-CKkEB98I.cjs → dot-DLjGr-tn.cjs} +0 -0
- /package/dist/{download-CMIA5riq.cjs → download-DQL5inC9.cjs} +0 -0
- /package/dist/{drafting-compass-CLzD31-K.cjs → drafting-compass-BegsGZh7.cjs} +0 -0
- /package/dist/{drama-CRE3_2Z2.cjs → drama-CQE-tq-o.cjs} +0 -0
- /package/dist/{drill-CKTjzZ6F.cjs → drill-BYhl7RBD.cjs} +0 -0
- /package/dist/{drone-DFnBN0Wy.cjs → drone-B-a1d42Q.cjs} +0 -0
- /package/dist/{droplet-UTdNbX_w.cjs → droplet-Bg_UR4zT.cjs} +0 -0
- /package/dist/{droplet-off-DiE0wF9f.cjs → droplet-off-DqVrKo7J.cjs} +0 -0
- /package/dist/{droplets-MCTXPVhG.cjs → droplets-Dp6xAzXA.cjs} +0 -0
- /package/dist/{drum-BNVWPTIS.cjs → drum-CPQbh1au.cjs} +0 -0
- /package/dist/{drumstick-mLt0_FUL.cjs → drumstick-DWElpNhQ.cjs} +0 -0
- /package/dist/{dumbbell-BqgYPrGj.cjs → dumbbell-CsOD6NxQ.cjs} +0 -0
- /package/dist/{ear-off-DyRii9s5.cjs → ear-off-ra9XTrfP.cjs} +0 -0
- /package/dist/{ear-ipB3VAb2.cjs → ear-zQfCwqj7.cjs} +0 -0
- /package/dist/{earth-CazR-Fi9.cjs → earth-CmWcyDRS.cjs} +0 -0
- /package/dist/{earth-lock-CsamKuUq.cjs → earth-lock-BjyRyQtV.cjs} +0 -0
- /package/dist/{eclipse-Bu9rnQh6.cjs → eclipse-B2SedSsd.cjs} +0 -0
- /package/dist/{egg-Ol8H2TUg.cjs → egg-HIl725bD.cjs} +0 -0
- /package/dist/{egg-fried-BVoV69FF.cjs → egg-fried-CplegAuK.cjs} +0 -0
- /package/dist/{egg-off-CBWbBNpF.cjs → egg-off-D6-YkrfA.cjs} +0 -0
- /package/dist/{eject-Bm5C-bSw.cjs → eject-PBZm7PkT.cjs} +0 -0
- /package/dist/{ellipse-DaS1lsaI.cjs → ellipse-CBOOq304.cjs} +0 -0
- /package/dist/{ellipsis-Oaz4ZYvG.cjs → ellipsis-C42ltKlT.cjs} +0 -0
- /package/dist/{ellipsis-vertical-CubSDJFL.cjs → ellipsis-vertical-CvPmS3mQ.cjs} +0 -0
- /package/dist/{emailKinds-CZV1DPNf.cjs → emailKinds-DLubZclH.cjs} +0 -0
- /package/dist/{emailKinds-HPUOifaR.js → emailKinds-EE1enWuW.js} +0 -0
- /package/dist/{engine-CEf3iwh9.cjs → engine-BIkOUQsO.cjs} +0 -0
- /package/dist/{equal-ByQS7pBh.cjs → equal-BVxv3Zgc.cjs} +0 -0
- /package/dist/{equal-approximately-CNWMUVXQ.cjs → equal-approximately-G57P2IVW.cjs} +0 -0
- /package/dist/{equal-approximately-not-Cqt9eXJN.cjs → equal-approximately-not-DX_rbov2.cjs} +0 -0
- /package/dist/{equal-not-zqnZA4-8.cjs → equal-not-C30JVOVr.cjs} +0 -0
- /package/dist/{eraser-K4BhJcP7.cjs → eraser-BFZKamQI.cjs} +0 -0
- /package/dist/{ethernet-port-C3_r78GZ.cjs → ethernet-port-Da66ZtCx.cjs} +0 -0
- /package/dist/{euro-BcWIudZl.cjs → euro-D29WW8dL.cjs} +0 -0
- /package/dist/{ev-charger-C1ihSDx5.cjs → ev-charger-DpXb2Iyr.cjs} +0 -0
- /package/dist/{expand-DipFb8cC.cjs → expand-BP2W3UqK.cjs} +0 -0
- /package/dist/{external-link-BxDtMl-F.cjs → external-link-DnUJSWqQ.cjs} +0 -0
- /package/dist/{eye-TBvuJmHt.cjs → eye-B8dtYgdk.cjs} +0 -0
- /package/dist/{eye-BXseeF8g.cjs → eye-DcMmeECX.cjs} +0 -0
- /package/dist/{eye-closed-DScCUa2v.cjs → eye-closed-DLaRulnL.cjs} +0 -0
- /package/dist/{eye-dashed-BcGPgmGV.cjs → eye-dashed-A0IF6wTU.cjs} +0 -0
- /package/dist/{eye-off-C1YB1WFz.cjs → eye-off-fzYJbRVZ.cjs} +0 -0
- /package/dist/{face-angry-CSxmjEnu.cjs → face-angry-DDNXWBaH.cjs} +0 -0
- /package/dist/{face-expressionless-BzNxH2Vv.cjs → face-expressionless-BPtzD9sp.cjs} +0 -0
- /package/dist/{face-grinning-B1xHyBkw.cjs → face-grinning-CBIsiu5U.cjs} +0 -0
- /package/dist/{face-neutral-DpS7NFIX.cjs → face-neutral-CT5tZ02_.cjs} +0 -0
- /package/dist/{face-slightly-frowning-2LVfiPqE.cjs → face-slightly-frowning-DrsYOfmD.cjs} +0 -0
- /package/dist/{face-slightly-smiling-DjnVR5rg.cjs → face-slightly-smiling-CRvhPiT7.cjs} +0 -0
- /package/dist/{face-slightly-smiling-plus-CgivztEW.cjs → face-slightly-smiling-plus-BEXN5Bh7.cjs} +0 -0
- /package/dist/{factory-D2ZlM6M9.cjs → factory-BPewG5hH.cjs} +0 -0
- /package/dist/{fan-CF7s1o6e.cjs → fan-kp8vvjeG.cjs} +0 -0
- /package/dist/{fast-forward-CoApufd-.cjs → fast-forward-tEMjn9iI.cjs} +0 -0
- /package/dist/{faucet-CzSXtRKP.cjs → faucet-CKOBUHjS.cjs} +0 -0
- /package/dist/{feather-CY6PlJcE.cjs → feather-DbCubpV3.cjs} +0 -0
- /package/dist/{fence-BxznQdA2.cjs → fence-CglTArMN.cjs} +0 -0
- /package/dist/{ferris-wheel-NLA3ACyJ.cjs → ferris-wheel-BJukqkwW.cjs} +0 -0
- /package/dist/{file-Dlii2n1h.cjs → file-SxkPic0K.cjs} +0 -0
- /package/dist/{file-archive-C0JnQily.cjs → file-archive-C03TC03J.cjs} +0 -0
- /package/dist/{file-axis-3d-wQA67e8I.cjs → file-axis-3d-Bh3OxFBV.cjs} +0 -0
- /package/dist/{file-badge-Cm-M8a58.cjs → file-badge-CIS2tP5M.cjs} +0 -0
- /package/dist/{file-box-BM3944y0.cjs → file-box-CnC2GVT1.cjs} +0 -0
- /package/dist/{file-braces-DIcg2IwT.cjs → file-braces-DxHsg7M0.cjs} +0 -0
- /package/dist/{file-braces-corner-Dd2PLvFN.cjs → file-braces-corner-B4ZAjock.cjs} +0 -0
- /package/dist/{file-chart-column-DWb90XBi.cjs → file-chart-column-NblUcpT5.cjs} +0 -0
- /package/dist/{file-chart-column-increasing-DfbbZkmv.cjs → file-chart-column-increasing-B6E1NT40.cjs} +0 -0
- /package/dist/{file-chart-line-BZNmVcZS.cjs → file-chart-line-BKvNdjK7.cjs} +0 -0
- /package/dist/{file-chart-pie-N8Fqmwl-.cjs → file-chart-pie-HuEFpUJg.cjs} +0 -0
- /package/dist/{file-check-BQ3rSsVl.cjs → file-check-6ldrXlJ4.cjs} +0 -0
- /package/dist/{file-check-corner-DXf4KhTd.cjs → file-check-corner-D53hBpPc.cjs} +0 -0
- /package/dist/{file-clock-CR6zHmxq.cjs → file-clock-DpgTv-Ih.cjs} +0 -0
- /package/dist/{file-code-Db_rnna6.cjs → file-code-BS8xFekN.cjs} +0 -0
- /package/dist/{file-code-corner-DrUMN7bu.cjs → file-code-corner-BlYs3ict.cjs} +0 -0
- /package/dist/{file-cog-CfKB_9WY.cjs → file-cog-B6ZO1evY.cjs} +0 -0
- /package/dist/{file-diff-D_kX7IyE.cjs → file-diff-DPEEIidp.cjs} +0 -0
- /package/dist/{file-digit-BFd9EekZ.cjs → file-digit-CckOt2xY.cjs} +0 -0
- /package/dist/{file-down-BUctAT6j.cjs → file-down-BUmT1cTk.cjs} +0 -0
- /package/dist/{file-exclamation-point-CAVrHjFn.cjs → file-exclamation-point-VU0leclo.cjs} +0 -0
- /package/dist/{file-headphone-0JvOmlIq.cjs → file-headphone-uq2U5Fol.cjs} +0 -0
- /package/dist/{file-heart-Do590VtP.cjs → file-heart-CAdt5GOI.cjs} +0 -0
- /package/dist/{file-image-CbRTHtQh.cjs → file-image-CDXAqARG.cjs} +0 -0
- /package/dist/{file-input-Cpx7ZAnN.cjs → file-input-lOsWKi_W.cjs} +0 -0
- /package/dist/{file-key-D3pOArFb.cjs → file-key-iowuaZIt.cjs} +0 -0
- /package/dist/{file-lock-CJYLeS41.cjs → file-lock-BDGz5Bg6.cjs} +0 -0
- /package/dist/{file-minus-CtVe7Dm_.cjs → file-minus-Bjr4eHX-.cjs} +0 -0
- /package/dist/{file-minus-corner-DQ2tObzU.cjs → file-minus-corner-CLhv0FKu.cjs} +0 -0
- /package/dist/{file-music-BB-lthho.cjs → file-music-CbYaLzCA.cjs} +0 -0
- /package/dist/{file-output-BRB0Pli-.cjs → file-output-U2_M4km9.cjs} +0 -0
- /package/dist/{file-pen-DsQ4i5Ea.cjs → file-pen-cpWVx1wy.cjs} +0 -0
- /package/dist/{file-pen-line-mYkSXcT9.cjs → file-pen-line-CJeBl741.cjs} +0 -0
- /package/dist/{file-play-CCeYX3lX.cjs → file-play-Dg-PoJ0Y.cjs} +0 -0
- /package/dist/{file-plus-ByDySja5.cjs → file-plus-B8WotnWl.cjs} +0 -0
- /package/dist/{file-plus-corner-CrF20Pq8.cjs → file-plus-corner-9mC8u0nK.cjs} +0 -0
- /package/dist/{file-question-mark-C5WLADEI.cjs → file-question-mark-niWBrcFA.cjs} +0 -0
- /package/dist/{file-scan-Cq67rvC1.cjs → file-scan-CdtKR9IT.cjs} +0 -0
- /package/dist/{file-search-DosmGyXe.cjs → file-search-N6-6EndO.cjs} +0 -0
- /package/dist/{file-search-corner-CdQnoBpB.cjs → file-search-corner-C0_EIopp.cjs} +0 -0
- /package/dist/{file-signal-MLcxczSK.cjs → file-signal-DCViaRCQ.cjs} +0 -0
- /package/dist/{file-sliders-CAFqrDew.cjs → file-sliders-CShzkVyf.cjs} +0 -0
- /package/dist/{file-spreadsheet-JuTPfhlz.cjs → file-spreadsheet-DJ8G1z2X.cjs} +0 -0
- /package/dist/{file-stack-BSaYXTtW.cjs → file-stack-m8CXEwwO.cjs} +0 -0
- /package/dist/{file-symlink-CA7mMO91.cjs → file-symlink-Cn1nSbmj.cjs} +0 -0
- /package/dist/{file-terminal-CViKy2aV.cjs → file-terminal-CHMgYaIs.cjs} +0 -0
- /package/dist/{file-text-qhK09gc5.cjs → file-text-BAjC8USL.cjs} +0 -0
- /package/dist/{file-type-C0fIdRRr.cjs → file-type-CcdRrMPj.cjs} +0 -0
- /package/dist/{file-type-corner-DPaWTVpa.cjs → file-type-corner-DMbker-o.cjs} +0 -0
- /package/dist/{file-up-DgigVkAp.cjs → file-up-C2s_SqBR.cjs} +0 -0
- /package/dist/{file-user-2Xb5j3uf.cjs → file-user-BKZEypVG.cjs} +0 -0
- /package/dist/{file-video-camera-TiEDT9hs.cjs → file-video-camera-BqW8xfww.cjs} +0 -0
- /package/dist/{file-volume-DujHCHhm.cjs → file-volume-D6G-73li.cjs} +0 -0
- /package/dist/{file-x-CrrJauQN.cjs → file-x-Cqa9QnMN.cjs} +0 -0
- /package/dist/{file-x-corner-3Gakp2xb.cjs → file-x-corner-Mi7Z-5xN.cjs} +0 -0
- /package/dist/{files-DLu1l1N6.cjs → files-DVUSiMo7.cjs} +0 -0
- /package/dist/{film-XA-ln1VU.cjs → film-tJej-6Uq.cjs} +0 -0
- /package/dist/{fingerprint-pattern-CgcWK3AW.cjs → fingerprint-pattern-D6KGLIPC.cjs} +0 -0
- /package/dist/{fire-extinguisher-BVlyzJ6X.cjs → fire-extinguisher-BJoO_H9M.cjs} +0 -0
- /package/dist/{fish-kSZnxAxC.cjs → fish--pfok7Sy.cjs} +0 -0
- /package/dist/{fish-off-CWCl-G2d.cjs → fish-off-6CPXVAuT.cjs} +0 -0
- /package/dist/{fish-symbol-ClNb0KKS.cjs → fish-symbol-B6MU-tAf.cjs} +0 -0
- /package/dist/{fishing-hook-DpKGLygE.cjs → fishing-hook-CyYlH2P3.cjs} +0 -0
- /package/dist/{fishing-rod-CyCJptXh.cjs → fishing-rod-BC3HudNN.cjs} +0 -0
- /package/dist/{flag-CGlcER7X.cjs → flag-oeSwsO8E.cjs} +0 -0
- /package/dist/{flag-off-BFelLsVE.cjs → flag-off-CuMoEqhQ.cjs} +0 -0
- /package/dist/{flag-triangle-left-CB8Jq57y.cjs → flag-triangle-left-DaF9E-PI.cjs} +0 -0
- /package/dist/{flag-triangle-right-BlDXc-kF.cjs → flag-triangle-right-BeNCu4j4.cjs} +0 -0
- /package/dist/{flame-D_-NNsh5.cjs → flame-CbLjShWU.cjs} +0 -0
- /package/dist/{flame-kindling-CP4pStpd.cjs → flame-kindling-CHxzj3Uy.cjs} +0 -0
- /package/dist/{flashlight-CzaaR7nj.cjs → flashlight-BViqBGfi.cjs} +0 -0
- /package/dist/{flashlight-off-BPeq-VC0.cjs → flashlight-off-DHZCqGAO.cjs} +0 -0
- /package/dist/{flask-conical-B1XIjsz8.cjs → flask-conical-CPCVx56i.cjs} +0 -0
- /package/dist/{flask-conical-off-g2-ExdX1.cjs → flask-conical-off-D9T32M16.cjs} +0 -0
- /package/dist/{flask-round-XO9_Es73.cjs → flask-round-DsjPTVrz.cjs} +0 -0
- /package/dist/{flower-2-CQ-sc4mt.cjs → flower-2-CpvtLnLC.cjs} +0 -0
- /package/dist/{flower-CMddlR9b.cjs → flower-DPycF9h6.cjs} +0 -0
- /package/dist/{focus-dllrAubr.cjs → focus-ChdMmn6U.cjs} +0 -0
- /package/dist/{fold-horizontal-DWO04oRe.cjs → fold-horizontal-Bc2gxgV9.cjs} +0 -0
- /package/dist/{fold-vertical-ziPQmsja.cjs → fold-vertical-Bdd78QvL.cjs} +0 -0
- /package/dist/{folder-DuX-j8Pl.cjs → folder-E_JFPjY-.cjs} +0 -0
- /package/dist/{folder-archive-Bub7Ot2h.cjs → folder-archive-BEVU3u_t.cjs} +0 -0
- /package/dist/{folder-bookmark-C01Rq6QY.cjs → folder-bookmark-C_lsc20J.cjs} +0 -0
- /package/dist/{folder-check-verD1ht3.cjs → folder-check-DAndOdNA.cjs} +0 -0
- /package/dist/{folder-clock-B5EQWVD6.cjs → folder-clock-BADxvv1l.cjs} +0 -0
- /package/dist/{folder-closed-TP0kOcGX.cjs → folder-closed-CrEBzj99.cjs} +0 -0
- /package/dist/{folder-code-Ccr77hpY.cjs → folder-code-BmbtmDCu.cjs} +0 -0
- /package/dist/{folder-cog-CB9t0LjW.cjs → folder-cog-CO91Khv3.cjs} +0 -0
- /package/dist/{folder-dot-B2cYq20_.cjs → folder-dot-Ddmz9xSI.cjs} +0 -0
- /package/dist/{folder-down-BXTJ96Ky.cjs → folder-down-DF7a7E6_.cjs} +0 -0
- /package/dist/{folder-git-2-Bu2V03xg.cjs → folder-git-2-YJp3fVDj.cjs} +0 -0
- /package/dist/{folder-git-EVnRyd5Y.cjs → folder-git-DL3bADpw.cjs} +0 -0
- /package/dist/{folder-heart-DC0JZk_a.cjs → folder-heart-CawS_HrM.cjs} +0 -0
- /package/dist/{folder-input-DAN4NAq3.cjs → folder-input-CvW-Ltmg.cjs} +0 -0
- /package/dist/{folder-kanban-CAxoeXnU.cjs → folder-kanban-Bp-XQYYu.cjs} +0 -0
- /package/dist/{folder-key-VqjPpMif.cjs → folder-key-Caw-TZfi.cjs} +0 -0
- /package/dist/{folder-lock-W83k0r9M.cjs → folder-lock-CGu1ZPTV.cjs} +0 -0
- /package/dist/{folder-minus-BmiAfkWU.cjs → folder-minus-Bx8iej0w.cjs} +0 -0
- /package/dist/{folder-open-9PFUseDZ.cjs → folder-open-CF75sdQY.cjs} +0 -0
- /package/dist/{folder-open-dot-DUIs0d6N.cjs → folder-open-dot-CnnPP9NS.cjs} +0 -0
- /package/dist/{folder-output-DbSPWsdp.cjs → folder-output-D2jmJUaW.cjs} +0 -0
- /package/dist/{folder-pen-8Fk0bG2m.cjs → folder-pen-DRlyVi9x.cjs} +0 -0
- /package/dist/{folder-plus-1rsfyYNy.cjs → folder-plus-DLi3zTom.cjs} +0 -0
- /package/dist/{folder-root-D-qbJkqj.cjs → folder-root-Ct0LjQlX.cjs} +0 -0
- /package/dist/{folder-search-2-BnqX6YdO.cjs → folder-search-2-Bp1iEcG9.cjs} +0 -0
- /package/dist/{folder-search-Dp9YtWAH.cjs → folder-search-B-oNGCgJ.cjs} +0 -0
- /package/dist/{folder-symlink-ZMn03rax.cjs → folder-symlink-g4QLW37c.cjs} +0 -0
- /package/dist/{folder-sync-De6QWZ3E.cjs → folder-sync-C3dcI5xM.cjs} +0 -0
- /package/dist/{folder-tree-WPthAJjz.cjs → folder-tree-BKR598w1.cjs} +0 -0
- /package/dist/{folder-up-Dv3xIFmw.cjs → folder-up-DP0OewiJ.cjs} +0 -0
- /package/dist/{folder-x-SjNR43S0.cjs → folder-x-thhXY2-Q.cjs} +0 -0
- /package/dist/{folders-D9EaqMbB.cjs → folders-CWZ29X8U.cjs} +0 -0
- /package/dist/{footprints-M_nyIIzZ.cjs → footprints-C209kivu.cjs} +0 -0
- /package/dist/{forklift-B5eyLSlL.cjs → forklift-Ci1qvJnq.cjs} +0 -0
- /package/dist/{form-ByOsVxhX.cjs → form-Sz0QC3fS.cjs} +0 -0
- /package/dist/{formPage-Ba28BJud.cjs → formPage-Bl_d68fl.cjs} +0 -0
- /package/dist/{formPage-Bl6vuTRa.js → formPage-C7H4F9_p.js} +0 -0
- /package/dist/{forward-DRHjQuda.cjs → forward-BuBXJAJj.cjs} +0 -0
- /package/dist/{frame-UbKlkp6f.cjs → frame-DIq0AUPy.cjs} +0 -0
- /package/dist/{fuel-jE03rDhM.cjs → fuel-C7fKZT-5.cjs} +0 -0
- /package/dist/{fullscreen-B5elTjWj.cjs → fullscreen-bwjrvo1Z.cjs} +0 -0
- /package/dist/{funnel-2MYAGb2v.cjs → funnel-CzffjDyw.cjs} +0 -0
- /package/dist/{funnel-plus-ByMFFv5K.cjs → funnel-plus-B-cqyBOW.cjs} +0 -0
- /package/dist/{funnel-x-BBpTwBeQ.cjs → funnel-x-B9XWNVjj.cjs} +0 -0
- /package/dist/{galaxy-yvw6wF3p.cjs → galaxy-CMslf4vL.cjs} +0 -0
- /package/dist/{gallery-horizontal-CfkozjC5.cjs → gallery-horizontal-ZDKuVUTZ.cjs} +0 -0
- /package/dist/{gallery-horizontal-end-I-9_VSH-.cjs → gallery-horizontal-end-D13mL1ob.cjs} +0 -0
- /package/dist/{gallery-thumbnails-BHxnPqVS.cjs → gallery-thumbnails-PqKiyBS6.cjs} +0 -0
- /package/dist/{gallery-vertical-Vi-vRnqg.cjs → gallery-vertical-C907HPWy.cjs} +0 -0
- /package/dist/{gallery-vertical-end-XoVmMnka.cjs → gallery-vertical-end-XC-ZLkRu.cjs} +0 -0
- /package/dist/{gamepad-2-Bo752awE.cjs → gamepad-2-C7eFpOCw.cjs} +0 -0
- /package/dist/{gamepad-DOouttod.cjs → gamepad-DBV09IFF.cjs} +0 -0
- /package/dist/{gamepad-directional-Cn3rkGXJ.cjs → gamepad-directional-DmW_scqo.cjs} +0 -0
- /package/dist/{gap-horizontal-mZn8Hzkm.cjs → gap-horizontal-DNw5Pwm_.cjs} +0 -0
- /package/dist/{gap-vertical-xqlGpQpU.cjs → gap-vertical-Cx0OAJ49.cjs} +0 -0
- /package/dist/{gauge-QeqfJiOK.cjs → gauge-DEh-fG2L.cjs} +0 -0
- /package/dist/{gavel-BEgJXG-h.cjs → gavel-gmvbeK10.cjs} +0 -0
- /package/dist/{gem-D0a5V1N_.cjs → gem-CIzpY0eB.cjs} +0 -0
- /package/dist/{georgian-lari-DZw00ffq.cjs → georgian-lari-Cx-V2a6k.cjs} +0 -0
- /package/dist/{germ-BAsjM23v.cjs → germ-CgugRvm3.cjs} +0 -0
- /package/dist/{germ-off-C-Z9QwJL.cjs → germ-off-DIteDeKP.cjs} +0 -0
- /package/dist/{ghost-BttHgjsj.cjs → ghost-D5glFDg_.cjs} +0 -0
- /package/dist/{gift-BNX0acTG.cjs → gift-B061MJ4V.cjs} +0 -0
- /package/dist/{git-branch-minus-CMIJC4Kf.cjs → git-branch-minus-CHXDMHqc.cjs} +0 -0
- /package/dist/{git-branch-plus-CXbxFYFc.cjs → git-branch-plus-B2kI7TIO.cjs} +0 -0
- /package/dist/{git-branch-DuliPX80.cjs → git-branch-rG9QnMBB.cjs} +0 -0
- /package/dist/{git-commit-horizontal-DL5Trin_.cjs → git-commit-horizontal-D98WgRng.cjs} +0 -0
- /package/dist/{git-commit-vertical-XHqs62fu.cjs → git-commit-vertical-BZGDNWU7.cjs} +0 -0
- /package/dist/{git-compare-BhhzOwZI.cjs → git-compare-6Pqgg0T_.cjs} +0 -0
- /package/dist/{git-compare-arrows-B4KYHexs.cjs → git-compare-arrows-O80giv-g.cjs} +0 -0
- /package/dist/{git-fork-DhP2F5RJ.cjs → git-fork-2SPaBjcT.cjs} +0 -0
- /package/dist/{git-graph-CH-jwJ1z.cjs → git-graph-DIUhlQxu.cjs} +0 -0
- /package/dist/{git-merge-conflict-Dko71-6n.cjs → git-merge-conflict-CZ7tjiH4.cjs} +0 -0
- /package/dist/{git-merge-CpMGsa_Y.cjs → git-merge-v4KUBxks.cjs} +0 -0
- /package/dist/{git-pull-request-C51EEPYi.cjs → git-pull-request-BTi5vZ5V.cjs} +0 -0
- /package/dist/{git-pull-request-arrow-ChhdTxmr.cjs → git-pull-request-arrow-BibI3FYk.cjs} +0 -0
- /package/dist/{git-pull-request-closed-DFgWNCvL.cjs → git-pull-request-closed-BPZd3Nlb.cjs} +0 -0
- /package/dist/{git-pull-request-create-CUtWCM-C.cjs → git-pull-request-create-BKpR4O9P.cjs} +0 -0
- /package/dist/{git-pull-request-create-arrow-DjE981Hk.cjs → git-pull-request-create-arrow-DjcXtDud.cjs} +0 -0
- /package/dist/{git-pull-request-draft-HJQxbpZp.cjs → git-pull-request-draft-DA9pjzM7.cjs} +0 -0
- /package/dist/{glass-water-YUL2tQG4.cjs → glass-water-CaHcAH23.cjs} +0 -0
- /package/dist/{glasses-DvSPNl2n.cjs → glasses-CrWq9dCZ.cjs} +0 -0
- /package/dist/{globe-DaLGlHPv.cjs → globe-DdCOIMSE.cjs} +0 -0
- /package/dist/{globe-check-m8aWwY1f.cjs → globe-check-CAkEBDgZ.cjs} +0 -0
- /package/dist/{globe-code-BrnEn3KN.cjs → globe-code-B1sJ4_XM.cjs} +0 -0
- /package/dist/{globe-lock-yWIw704P.cjs → globe-lock-nn2_Ur0X.cjs} +0 -0
- /package/dist/{globe-off-1JHBBA_c.cjs → globe-off-DrgCSIOQ.cjs} +0 -0
- /package/dist/{globe-x-DJ7C6iWb.cjs → globe-x-DezLvbl_.cjs} +0 -0
- /package/dist/{goal-CY_qfpq1.cjs → goal-CE1VuJf5.cjs} +0 -0
- /package/dist/{gpu-Dm1AMgmk.cjs → gpu-BLQDao3f.cjs} +0 -0
- /package/dist/{graduation-cap-CW4qTj0x.cjs → graduation-cap-BS6dEFxo.cjs} +0 -0
- /package/dist/{grape-Dg2CCKGt.cjs → grape-CDyvyd8x.cjs} +0 -0
- /package/dist/{grid-2x2-8Mnjdu_N.cjs → grid-2x2-D0Ur-CfJ.cjs} +0 -0
- /package/dist/{grid-2x2-check-CLehR89O.cjs → grid-2x2-check-DQKCk3Ce.cjs} +0 -0
- /package/dist/{grid-2x2-plus-DLvXNH9h.cjs → grid-2x2-plus-B0iBaW1V.cjs} +0 -0
- /package/dist/{grid-2x2-x-CUvAfJZs.cjs → grid-2x2-x-C1JXpyBx.cjs} +0 -0
- /package/dist/{grid-3x2-ihFWLd8a.cjs → grid-3x2-B-rPE_Ku.cjs} +0 -0
- /package/dist/{grid-3x3-RRuRpiUs.cjs → grid-3x3-UTIMbOti.cjs} +0 -0
- /package/dist/{grip-DPH-2sPj.cjs → grip-DHQYF7St.cjs} +0 -0
- /package/dist/{grip-horizontal-KfJM_23W.cjs → grip-horizontal-DM_XHQyL.cjs} +0 -0
- /package/dist/{grip-vertical-C0GdNPFb.cjs → grip-vertical-CdQbDTct.cjs} +0 -0
- /package/dist/{group-InYo2xsn.cjs → group-oDmZIlR4.cjs} +0 -0
- /package/dist/{guitar-uX5DzDnX.cjs → guitar-BZ9qzGfi.cjs} +0 -0
- /package/dist/{ham-C7uE0Q6S.cjs → ham-HX2rolDO.cjs} +0 -0
- /package/dist/{hamburger-ruwF1TVO.cjs → hamburger-BDEsd9y2.cjs} +0 -0
- /package/dist/{hammer-L6Sk304d.cjs → hammer-CbsNKmNm.cjs} +0 -0
- /package/dist/{hand-CV_Pnxym.cjs → hand-BE2ltLNA.cjs} +0 -0
- /package/dist/{hand-coins-CfgqoE5W.cjs → hand-coins-BWnEY4KF.cjs} +0 -0
- /package/dist/{hand-fist-DOHpzWuo.cjs → hand-fist-DBTksKG1.cjs} +0 -0
- /package/dist/{hand-grab-CATF7day.cjs → hand-grab-Bnm8gTSR.cjs} +0 -0
- /package/dist/{hand-heart-DVx8zIx1.cjs → hand-heart-CwRbHz6c.cjs} +0 -0
- /package/dist/{hand-helping-DbVbF_ov.cjs → hand-helping-Bl9rj4SA.cjs} +0 -0
- /package/dist/{hand-metal-3ttyNOxw.cjs → hand-metal-CF1AB0Wo.cjs} +0 -0
- /package/dist/{hand-platter-DPq-k48L.cjs → hand-platter-CeEbRCYc.cjs} +0 -0
- /package/dist/{handbag-Bz_5OMH1.cjs → handbag-D9-w897_.cjs} +0 -0
- /package/dist/{handshake-CNWCxe5E.cjs → handshake-DdY5IXdR.cjs} +0 -0
- /package/dist/{hard-drive-Bvjt7MfC.cjs → hard-drive-B5l01549.cjs} +0 -0
- /package/dist/{hard-drive-download-CaqzLphc.cjs → hard-drive-download-Uv5BCMLN.cjs} +0 -0
- /package/dist/{hard-drive-upload-omOLrpd1.cjs → hard-drive-upload-Chi0RBEB.cjs} +0 -0
- /package/dist/{hard-hat-DxzUDZ6O.cjs → hard-hat-C__EcO-r.cjs} +0 -0
- /package/dist/{hash-DSSMyxUR.cjs → hash-C5xkSL40.cjs} +0 -0
- /package/dist/{hat-glasses-o-7g4ziv.cjs → hat-glasses-a-rPmGNB.cjs} +0 -0
- /package/dist/{haze-CYqMml0h.cjs → haze-BaWdOrlx.cjs} +0 -0
- /package/dist/{hd-BkgO45dd.cjs → hd-BtUFQ-Kw.cjs} +0 -0
- /package/dist/{hdmi-port-DkPLXoex.cjs → hdmi-port-z1mZOjYa.cjs} +0 -0
- /package/dist/{heading-1-BRwUsNGJ.cjs → heading-1-CvGqMCoK.cjs} +0 -0
- /package/dist/{heading-2-DPnlqGV-.cjs → heading-2-CG9rtgUo.cjs} +0 -0
- /package/dist/{heading-3-Cqq2i3cV.cjs → heading-3-BqQ6BUlh.cjs} +0 -0
- /package/dist/{heading-4-CJIT5WlS.cjs → heading-4-DScHAS6O.cjs} +0 -0
- /package/dist/{heading-5-xYsbBYDq.cjs → heading-5-DHVRH9is.cjs} +0 -0
- /package/dist/{heading-6-DIdqmiUN.cjs → heading-6-czB_2_jp.cjs} +0 -0
- /package/dist/{heading-C6OOZXbj.cjs → heading-DotmYFWI.cjs} +0 -0
- /package/dist/{headphone-off-7PMdT6zs.cjs → headphone-off-CGq5F_64.cjs} +0 -0
- /package/dist/{headphones-BvP2INbR.cjs → headphones-DVmkcNCD.cjs} +0 -0
- /package/dist/{headset-CeuG4PnF.cjs → headset-CKOfiClz.cjs} +0 -0
- /package/dist/{heart-CDnM_5Zp.cjs → heart-7Ddf7oTn.cjs} +0 -0
- /package/dist/{heart-crack-BhtzLrR2.cjs → heart-crack-yQLwkWnh.cjs} +0 -0
- /package/dist/{heart-handshake-AMXGzlry.cjs → heart-handshake-CdzifWWx.cjs} +0 -0
- /package/dist/{heart-minus-DiYCd5f3.cjs → heart-minus-g9gEvNIs.cjs} +0 -0
- /package/dist/{heart-off-DjHXKfng.cjs → heart-off-DMNCy2AF.cjs} +0 -0
- /package/dist/{heart-plus-lNNhX4vp.cjs → heart-plus-DhHxXjCs.cjs} +0 -0
- /package/dist/{heart-pulse-CthO9B0X.cjs → heart-pulse-b9GdusNU.cjs} +0 -0
- /package/dist/{heart-x-DXe1fVx2.cjs → heart-x-DdPd32Z6.cjs} +0 -0
- /package/dist/{heater-CuRKpbso.cjs → heater-28G70PV6.cjs} +0 -0
- /package/dist/{helicopter-DHHod5Od.cjs → helicopter-BKjlFdwq.cjs} +0 -0
- /package/dist/{hexagon-B8Fs0Lto.cjs → hexagon-BLLGZPiX.cjs} +0 -0
- /package/dist/{highlighter-Ci98R8Hj.cjs → highlighter-C_qvaYNx.cjs} +0 -0
- /package/dist/{hop-CliDTE37.cjs → hop-clji5DpV.cjs} +0 -0
- /package/dist/{hop-off-3DNqwvs5.cjs → hop-off-B9wWW4YJ.cjs} +0 -0
- /package/dist/{hospital-BEJqHZMD.cjs → hospital-DXyx3UIR.cjs} +0 -0
- /package/dist/{hotel-BACepLnH.cjs → hotel-BN19f77L.cjs} +0 -0
- /package/dist/{hourglass-B0aqEic-.cjs → hourglass-BoRbCzQR.cjs} +0 -0
- /package/dist/{hourglass-cog-BwfMbPSL.cjs → hourglass-cog-DLABnmit.cjs} +0 -0
- /package/dist/{house-D8hXVtBd.cjs → house-B2eQzYJ7.cjs} +0 -0
- /package/dist/{house-heart-DCjcms6B.cjs → house-heart-Br2jJErs.cjs} +0 -0
- /package/dist/{house-plug-FP4HpScb.cjs → house-plug-CyqCwsog.cjs} +0 -0
- /package/dist/{house-plus-BAF4DK5K.cjs → house-plus-BAhHcQQQ.cjs} +0 -0
- /package/dist/{house-wifi-BDSLsho5.cjs → house-wifi-BcDOR2x8.cjs} +0 -0
- /package/dist/{houses-DGTZPuUV.cjs → houses-BrITFO1L.cjs} +0 -0
- /package/dist/{ice-cream-bowl-FjL-bdPj.cjs → ice-cream-bowl-CupM1B3W.cjs} +0 -0
- /package/dist/{ice-cream-cone-Cm8yu2PL.cjs → ice-cream-cone-C3Xl0kpv.cjs} +0 -0
- /package/dist/{iconNames-D6NBPfIJ.js → iconNames-BEyn9yVD.js} +0 -0
- /package/dist/{iconNames-DeWgQ3LR.cjs → iconNames-CDbg0cq_.cjs} +0 -0
- /package/dist/{id-card-D0deEb-p.cjs → id-card-YThLQSPz.cjs} +0 -0
- /package/dist/{id-card-lanyard-fZDVfNIT.cjs → id-card-lanyard-BLI-UIZf.cjs} +0 -0
- /package/dist/{image-BePBmPfT.cjs → image-cZKr6SGF.cjs} +0 -0
- /package/dist/{image-down-CMYXyA7J.cjs → image-down-COTrGJVo.cjs} +0 -0
- /package/dist/{image-minus-C346X7z3.cjs → image-minus-DtvszuAK.cjs} +0 -0
- /package/dist/{image-off-B4Ws9HS5.cjs → image-off-BMygcnV9.cjs} +0 -0
- /package/dist/{image-play-CG3Dm4B1.cjs → image-play-L6p_tN9q.cjs} +0 -0
- /package/dist/{image-plus-DLtDp11H.cjs → image-plus-CWx-byvN.cjs} +0 -0
- /package/dist/{image-up-DwRMyZJ_.cjs → image-up-B1ZxgchU.cjs} +0 -0
- /package/dist/{image-upscale-LvetCUt9.cjs → image-upscale-8Lp3qhlr.cjs} +0 -0
- /package/dist/{images-CE6BTR4E.cjs → images-wvF1Low0.cjs} +0 -0
- /package/dist/{import-DioZ7Ud1.cjs → import-CGXJXtqn.cjs} +0 -0
- /package/dist/{inbox-VtYvKyEY.cjs → inbox-BLso7CqZ.cjs} +0 -0
- /package/dist/{indian-rupee-ef52FaIh.cjs → indian-rupee-COHHRd_2.cjs} +0 -0
- /package/dist/{infinity-L6RLmSn0.cjs → infinity-BUrghx0D.cjs} +0 -0
- /package/dist/{info-DW2w2ePg.cjs → info-BMn9O4q4.cjs} +0 -0
- /package/dist/{inspection-panel-CppjnFEa.cjs → inspection-panel-BSVIWzp1.cjs} +0 -0
- /package/dist/{italic-CKw_V2Gq.cjs → italic-D0ZoZhjQ.cjs} +0 -0
- /package/dist/{iteration-ccw-kyvHeSEb.cjs → iteration-ccw-DM-tZM4b.cjs} +0 -0
- /package/dist/{iteration-cw-Bs1b8Ash.cjs → iteration-cw-BNvAmCCX.cjs} +0 -0
- /package/dist/{iv-bag-DeZCe2fE.cjs → iv-bag-_46v0iOe.cjs} +0 -0
- /package/dist/{japanese-yen-D0HcE0a5.cjs → japanese-yen-DK7yD9DY.cjs} +0 -0
- /package/dist/{joystick-QmO_N0Ml.cjs → joystick-DaODAbL3.cjs} +0 -0
- /package/dist/{kanban-rhJofn_9.cjs → kanban-EFlozJfS.cjs} +0 -0
- /package/dist/{kayak-DXi-VWEw.cjs → kayak-BHCas3rb.cjs} +0 -0
- /package/dist/{key-round-CeUtPD6k.cjs → key-round-0o3M2Tkn.cjs} +0 -0
- /package/dist/{key-square-QCpAAJvG.cjs → key-square-BhdDM6H8.cjs} +0 -0
- /package/dist/{key-BRKNb3xV.cjs → key-tt8imG2Q.cjs} +0 -0
- /package/dist/{keyboard-C_xTNJyJ.cjs → keyboard-C7VPdTU0.cjs} +0 -0
- /package/dist/{keyboard-music-D2WwNAS7.cjs → keyboard-music-DgLQ3ZRp.cjs} +0 -0
- /package/dist/{keyboard-off-B4DA901n.cjs → keyboard-off-BN9u-M-8.cjs} +0 -0
- /package/dist/{lambda-DebC7Ooh.cjs → lambda-DHtj0W4J.cjs} +0 -0
- /package/dist/{lamp-Dp5Jfc4x.cjs → lamp-DnKcf5F4.cjs} +0 -0
- /package/dist/{lamp-ceiling-EDG_vcg_.cjs → lamp-ceiling-d9UblXZX.cjs} +0 -0
- /package/dist/{lamp-desk-DJONy4qL.cjs → lamp-desk-1xeadGxu.cjs} +0 -0
- /package/dist/{lamp-floor-o_U96B08.cjs → lamp-floor-D64NsKX5.cjs} +0 -0
- /package/dist/{lamp-wall-down-BIzlMXLT.cjs → lamp-wall-down-q49qJo70.cjs} +0 -0
- /package/dist/{lamp-wall-up-CNU2_Q4V.cjs → lamp-wall-up-CcuI00__.cjs} +0 -0
- /package/dist/{land-plot-C9_-EeCS.cjs → land-plot-Dt4_da5r.cjs} +0 -0
- /package/dist/{landmark-DfUUoeUe.cjs → landmark-DjZuhJBk.cjs} +0 -0
- /package/dist/{languages-B4HMhECi.cjs → languages-CVe1qGNN.cjs} +0 -0
- /package/dist/{laptop-Br62qEk5.cjs → laptop-CVS4X0tX.cjs} +0 -0
- /package/dist/{laptop-minimal-Bc48h2R_.cjs → laptop-minimal-Ck0Z8yrb.cjs} +0 -0
- /package/dist/{laptop-minimal-check-B7jTzT4K.cjs → laptop-minimal-check-CbNfGPh_.cjs} +0 -0
- /package/dist/{lasso-CVZ9pfuc.cjs → lasso-Rtomb9rz.cjs} +0 -0
- /package/dist/{lasso-select-DywjD078.cjs → lasso-select-BbpN75Hn.cjs} +0 -0
- /package/dist/{layer-arrow-down-DXLTBgpl.cjs → layer-arrow-down-Cy6bgg3z.cjs} +0 -0
- /package/dist/{layer-arrow-up-DG5pf9jV.cjs → layer-arrow-up-EDZ75Tki.cjs} +0 -0
- /package/dist/{layers-2-DuZByx4F.cjs → layers-2-Dtg7r-x6.cjs} +0 -0
- /package/dist/{layers-DDDmeFzg.cjs → layers-CwnckoXJ.cjs} +0 -0
- /package/dist/{layers-arrow-down-DYonLBIJ.cjs → layers-arrow-down-BDvZry7r.cjs} +0 -0
- /package/dist/{layers-arrow-up-BLLOM4Of.cjs → layers-arrow-up-DBtXsTnu.cjs} +0 -0
- /package/dist/{layers-minus-CMr-5N5y.cjs → layers-minus-Bld31G_A.cjs} +0 -0
- /package/dist/{layers-plus-BoTgnZk1.cjs → layers-plus-BUbzwhJ0.cjs} +0 -0
- /package/dist/{layout-arrow-down-BU5JxCOO.cjs → layout-arrow-down-GMaCbjRd.cjs} +0 -0
- /package/dist/{layout-arrow-right-Bcf2DzPr.cjs → layout-arrow-right-rMSmlKMf.cjs} +0 -0
- /package/dist/{layout-dashboard-DKYYrNbm.cjs → layout-dashboard-BuClY72q.cjs} +0 -0
- /package/dist/{layout-freeform-B4XK0KTk.cjs → layout-freeform-DaIhFcAJ.cjs} +0 -0
- /package/dist/{layout-grid-C99Ap0mn.cjs → layout-grid-C1OHfcsv.cjs} +0 -0
- /package/dist/{layout-list-Dz5CoCDO.cjs → layout-list-W30IaxXC.cjs} +0 -0
- /package/dist/{layout-panel-left-BNWJFnpr.cjs → layout-panel-left-C65AkJLL.cjs} +0 -0
- /package/dist/{layout-panel-top-DSsv3MOB.cjs → layout-panel-top-D_VRG1p1.cjs} +0 -0
- /package/dist/{layout-template-CK3glxVi.cjs → layout-template-BTLLrxJx.cjs} +0 -0
- /package/dist/{leaf-D3qSH7sJ.cjs → leaf-DNihmqoO.cjs} +0 -0
- /package/dist/{leafy-green-cZf2cSJ2.cjs → leafy-green-DVgmQBfB.cjs} +0 -0
- /package/dist/{lectern-BdHSkTNS.cjs → lectern-Dd_JJtac.cjs} +0 -0
- /package/dist/{lens-concave-MHeulYYr.cjs → lens-concave-n8FVaCaF.cjs} +0 -0
- /package/dist/{lens-convex-CXsWJEqd.cjs → lens-convex-CHKck-g_.cjs} +0 -0
- /package/dist/{library-DVBE7ohT.cjs → library-BFXeF1Mf.cjs} +0 -0
- /package/dist/{library-big-MlqOOk_J.cjs → library-big-_806ZFAN.cjs} +0 -0
- /package/dist/{life-buoy-CsVcLhz4.cjs → life-buoy-kL7gCIsB.cjs} +0 -0
- /package/dist/{ligature-CSs1YjFm.cjs → ligature-CS33PPCo.cjs} +0 -0
- /package/dist/{lightbulb-CcZJP1ch.cjs → lightbulb-BtpMnvYo.cjs} +0 -0
- /package/dist/{lightbulb-off-BnCCmwAC.cjs → lightbulb-off-Be4J268S.cjs} +0 -0
- /package/dist/{lighthouse-6Ov0vvsq.cjs → lighthouse-CArJrgi-.cjs} +0 -0
- /package/dist/{line-dot-right-horizontal-rqTv1Wry.cjs → line-dot-right-horizontal-DqolGyzN.cjs} +0 -0
- /package/dist/{line-squiggle-DFbwsUsT.cjs → line-squiggle-DQsrz509.cjs} +0 -0
- /package/dist/{line-style-DyFmTqxK.cjs → line-style-BXZHcTeK.cjs} +0 -0
- /package/dist/{link-2-B2kyT6pO.cjs → link-2-DJl6FJBP.cjs} +0 -0
- /package/dist/{link-2-off-MKnAdHA7.cjs → link-2-off-C9c0DDT7.cjs} +0 -0
- /package/dist/{link-DOobEBgA.cjs → link-C5YjN-i5.cjs} +0 -0
- /package/dist/{list-Cul9sIcM.cjs → list-CRyTujlP.cjs} +0 -0
- /package/dist/{list-check-D8yHkG4-.cjs → list-check-BH-si5NG.cjs} +0 -0
- /package/dist/{list-checks-_9UbttyG.cjs → list-checks-0ZZJm0cd.cjs} +0 -0
- /package/dist/{list-chevrons-down-up-BEMoFaDn.cjs → list-chevrons-down-up-BA8M_R3b.cjs} +0 -0
- /package/dist/{list-chevrons-up-down-DdW9FnEi.cjs → list-chevrons-up-down-DXfyWsye.cjs} +0 -0
- /package/dist/{list-clock-BTdQscN2.cjs → list-clock-DifUdpig.cjs} +0 -0
- /package/dist/{list-collapse-U7s2PGpR.cjs → list-collapse-BVT7g4ph.cjs} +0 -0
- /package/dist/{list-end-CG2BIzYd.cjs → list-end-Do97uHG8.cjs} +0 -0
- /package/dist/{list-filter-B-nkTwk7.cjs → list-filter-JN3yboal.cjs} +0 -0
- /package/dist/{list-filter-plus-DL-RNdEn.cjs → list-filter-plus-MdswQ0Je.cjs} +0 -0
- /package/dist/{list-indent-decrease-L4Eu2X16.cjs → list-indent-decrease-R4248SFP.cjs} +0 -0
- /package/dist/{list-indent-increase-CeMv-0da.cjs → list-indent-increase-DhD0MO8D.cjs} +0 -0
- /package/dist/{list-minus-CpLhcdhI.cjs → list-minus-Dq3vSryu.cjs} +0 -0
- /package/dist/{list-music-B9u9WkQT.cjs → list-music-DRPKSB0n.cjs} +0 -0
- /package/dist/{list-ordered-KciyobXs.cjs → list-ordered-BqTdqsM7.cjs} +0 -0
- /package/dist/{list-plus-CJFwyBxB.cjs → list-plus-6_chSKvC.cjs} +0 -0
- /package/dist/{list-restart-DjX3g8lz.cjs → list-restart-BNXcP9tN.cjs} +0 -0
- /package/dist/{list-sort-ascending-CaYc26da.cjs → list-sort-ascending-nIkFiYEh.cjs} +0 -0
- /package/dist/{list-sort-descending-Cf013gWb.cjs → list-sort-descending-CBC43EEX.cjs} +0 -0
- /package/dist/{list-start-BHhwHlpn.cjs → list-start-ByXRYJx5.cjs} +0 -0
- /package/dist/{list-todo-20nOCPi2.cjs → list-todo-UYJ9Zyz_.cjs} +0 -0
- /package/dist/{list-tree-96k72chu.cjs → list-tree-BoNHJ03h.cjs} +0 -0
- /package/dist/{list-video-D0TMZlEm.cjs → list-video-bQZqruiO.cjs} +0 -0
- /package/dist/{list-x-CzO9u4Xx.cjs → list-x-CQ0-FqOE.cjs} +0 -0
- /package/dist/{loader-BOkn77k6.cjs → loader-DfcK11WZ.cjs} +0 -0
- /package/dist/{loader-circle-CzO0WKJt.cjs → loader-circle-CZB9SLTM.cjs} +0 -0
- /package/dist/{loader-pinwheel-C1pfIfRy.cjs → loader-pinwheel-K3n9Qr4T.cjs} +0 -0
- /package/dist/{locate-fixed-B7hZcsRM.cjs → locate-fixed-Cg7p-TQ3.cjs} +0 -0
- /package/dist/{locate-off-A27zzBGU.cjs → locate-off-DwaIiRfs.cjs} +0 -0
- /package/dist/{locate-uUM4Dggk.cjs → locate-uz4OqKn8.cjs} +0 -0
- /package/dist/{lock-DXhJQ77s.cjs → lock-Bo5TDbos.cjs} +0 -0
- /package/dist/{lock-Baxbn9qw.cjs → lock-Crcvzjn3.cjs} +0 -0
- /package/dist/{lock-keyhole-CNLE-NDx.cjs → lock-keyhole-C6Gn8uPs.cjs} +0 -0
- /package/dist/{lock-keyhole-open-DyeMiULj.cjs → lock-keyhole-open-C4NsC1pR.cjs} +0 -0
- /package/dist/{lock-open-CVQ8HLpf.cjs → lock-open-Rj_snqio.cjs} +0 -0
- /package/dist/{log-in-Dw0jdZA2.cjs → log-in-ClLhm4NO.cjs} +0 -0
- /package/dist/{log-out-x8-hVJE_.cjs → log-out-COUZb94N.cjs} +0 -0
- /package/dist/{logs-9A_bQisx.cjs → logs-Db2214o-.cjs} +0 -0
- /package/dist/{lollipop-DUGdq9PI.cjs → lollipop-BDOWFcJe.cjs} +0 -0
- /package/dist/{luggage-DPCTwzj8.cjs → luggage-C7tKg3y-.cjs} +0 -0
- /package/dist/{magnet-DXvbDqjM.cjs → magnet-CEpNC2As.cjs} +0 -0
- /package/dist/{mail-BhUcXOh_.cjs → mail-CFG9yyip.cjs} +0 -0
- /package/dist/{mail-badge-DlGwsS-q.cjs → mail-badge-Bgp9tgVw.cjs} +0 -0
- /package/dist/{mail-check-BYEaRUkU.cjs → mail-check-BkJEpqaz.cjs} +0 -0
- /package/dist/{mail-clock-DQKqmiXE.cjs → mail-clock-vcSgwder.cjs} +0 -0
- /package/dist/{mail-minus-CW5MLzIb.cjs → mail-minus-Dwp7bUWE.cjs} +0 -0
- /package/dist/{mail-open-DyAK4LWt.cjs → mail-open-C4atDe23.cjs} +0 -0
- /package/dist/{mail-pen-D09-90Hi.cjs → mail-pen-CohqZgdf.cjs} +0 -0
- /package/dist/{mail-plus-Nbo4Xbl-.cjs → mail-plus-BSPAyAF2.cjs} +0 -0
- /package/dist/{mail-question-mark-d6w02QZ4.cjs → mail-question-mark-CZwjLHQ6.cjs} +0 -0
- /package/dist/{mail-search-e8u7Cy2p.cjs → mail-search-BrfJqJCx.cjs} +0 -0
- /package/dist/{mail-warning-OdKxfgky.cjs → mail-warning-CcPGAV45.cjs} +0 -0
- /package/dist/{mail-x-DPQdsyiN.cjs → mail-x-C0jJZQNg.cjs} +0 -0
- /package/dist/{mailbox-BeDAEYZR.cjs → mailbox-DOkHgdjk.cjs} +0 -0
- /package/dist/{mails-CxeR_P7o.cjs → mails-DYdlrqMj.cjs} +0 -0
- /package/dist/{map-CpZ3kcLq.cjs → map-B4jNM6X0.cjs} +0 -0
- /package/dist/{map-minus-BWOUAVv6.cjs → map-minus-YJDv_eaR.cjs} +0 -0
- /package/dist/{map-pin-Cz1VChPI.cjs → map-pin-DruYetWK.cjs} +0 -0
- /package/dist/{map-pin-check-CWeasyWd.cjs → map-pin-check-B9tRISEk.cjs} +0 -0
- /package/dist/{map-pin-check-inside-BFGMSsBH.cjs → map-pin-check-inside-RvOjrQaF.cjs} +0 -0
- /package/dist/{map-pin-house-DNRzk-6Q.cjs → map-pin-house-GlGfqbPe.cjs} +0 -0
- /package/dist/{map-pin-minus-NFGvKNu-.cjs → map-pin-minus-33OgEtKt.cjs} +0 -0
- /package/dist/{map-pin-minus-inside-JHUnIO8F.cjs → map-pin-minus-inside-DJuJ7iUa.cjs} +0 -0
- /package/dist/{map-pin-off-CL-ftJ6Z.cjs → map-pin-off-Dx0-72A6.cjs} +0 -0
- /package/dist/{map-pin-pen-Bvaw3-XZ.cjs → map-pin-pen-D022zb1x.cjs} +0 -0
- /package/dist/{map-pin-plus-Dat0vylv.cjs → map-pin-plus-D4xNYhpP.cjs} +0 -0
- /package/dist/{map-pin-plus-inside-Cq_ObTqM.cjs → map-pin-plus-inside-9xfVcpSp.cjs} +0 -0
- /package/dist/{map-pin-search-U8dmZueH.cjs → map-pin-search-BvjnYQ2q.cjs} +0 -0
- /package/dist/{map-pin-x-3bz8hGoZ.cjs → map-pin-x-Do9J04bQ.cjs} +0 -0
- /package/dist/{map-pin-x-inside-CPmwjwnk.cjs → map-pin-x-inside-D1MXfkvB.cjs} +0 -0
- /package/dist/{map-pinned-D8uNbEaO.cjs → map-pinned-96TCmw-0.cjs} +0 -0
- /package/dist/{map-plus-fF41nz6d.cjs → map-plus-MVBJCBiY.cjs} +0 -0
- /package/dist/{mars-CQxK_SIj.cjs → mars-D2ayVV3I.cjs} +0 -0
- /package/dist/{mars-stroke-MZPDC-h0.cjs → mars-stroke-DOmLZynx.cjs} +0 -0
- /package/dist/{martini-B-92dP66.cjs → martini-CgMPsRxU.cjs} +0 -0
- /package/dist/{maximize-2-C3Z1vtPo.cjs → maximize-2-ClVSPfBL.cjs} +0 -0
- /package/dist/{maximize-ClKzna5L.cjs → maximize-Bsm6QSE2.cjs} +0 -0
- /package/dist/{medal-BB3SnnS5.cjs → medal-Bw8ZEji2.cjs} +0 -0
- /package/dist/{mediaKind-CxyIb_ys.cjs → mediaKind-JNVvFTwG.cjs} +0 -0
- /package/dist/{megaphone-y52e0hbk.cjs → megaphone-jmGxVUK4.cjs} +0 -0
- /package/dist/{megaphone-off-BuCOo1cZ.cjs → megaphone-off-JC64MGU1.cjs} +0 -0
- /package/dist/{memory-stick-C0eKpRVo.cjs → memory-stick-DcrmoFPm.cjs} +0 -0
- /package/dist/{menu-C_5JyIsl.cjs → menu-BVxdzrh5.cjs} +0 -0
- /package/dist/{merge-D5bydgSh.cjs → merge-C2u5WnH6.cjs} +0 -0
- /package/dist/{message-circle-kDW_MNbI.cjs → message-circle-BowWFQMt.cjs} +0 -0
- /package/dist/{message-circle-check-BlZjo_80.cjs → message-circle-check-Dat1ILtJ.cjs} +0 -0
- /package/dist/{message-circle-code-CKDTV_Kc.cjs → message-circle-code-Ch3MQfmz.cjs} +0 -0
- /package/dist/{message-circle-dashed-check-DbgPtdHc.cjs → message-circle-dashed-check-3M9c9e8f.cjs} +0 -0
- /package/dist/{message-circle-dashed-CuZ_ezFR.cjs → message-circle-dashed-wZ5oXGlQ.cjs} +0 -0
- /package/dist/{message-circle-heart-BXZV8cII.cjs → message-circle-heart-BRUlH6vK.cjs} +0 -0
- /package/dist/{message-circle-more-9exp0ECl.cjs → message-circle-more-CxrNwgIW.cjs} +0 -0
- /package/dist/{message-circle-off-BXIVV3R4.cjs → message-circle-off-CYKkE3z4.cjs} +0 -0
- /package/dist/{message-circle-plus-ChuQMv7v.cjs → message-circle-plus-Ut8vvjba.cjs} +0 -0
- /package/dist/{message-circle-question-mark-CBRl2-Pb.cjs → message-circle-question-mark-CEE5aLnu.cjs} +0 -0
- /package/dist/{message-circle-reply-DSXhXcMA.cjs → message-circle-reply-owPvureo.cjs} +0 -0
- /package/dist/{message-circle-warning-pz_OYuuX.cjs → message-circle-warning-DxyF5_yI.cjs} +0 -0
- /package/dist/{message-circle-x-D_ybKv_U.cjs → message-circle-x-Dr04ffyb.cjs} +0 -0
- /package/dist/{message-square-_yYR58YF.cjs → message-square-BTT5_868.cjs} +0 -0
- /package/dist/{message-square-check-BYhDXAZ5.cjs → message-square-check-CWFx6Egn.cjs} +0 -0
- /package/dist/{message-square-code-DMmQt9sQ.cjs → message-square-code-BP16n0Mk.cjs} +0 -0
- /package/dist/{message-square-dashed-CKWxhpVl.cjs → message-square-dashed-DlC2LDrv.cjs} +0 -0
- /package/dist/{message-square-diff-BpqtaIgE.cjs → message-square-diff-DBLH-CSa.cjs} +0 -0
- /package/dist/{message-square-dot-BZ7EWpFs.cjs → message-square-dot-MB9VMcW8.cjs} +0 -0
- /package/dist/{message-square-heart-IEEXiwwv.cjs → message-square-heart-DWWKZCOx.cjs} +0 -0
- /package/dist/{message-square-lock-BTVi-ng8.cjs → message-square-lock-BU4RHPvn.cjs} +0 -0
- /package/dist/{message-square-more-YXAYsxO7.cjs → message-square-more-B_TyA_v8.cjs} +0 -0
- /package/dist/{message-square-off-DtPjG1hk.cjs → message-square-off-DDdGG8f5.cjs} +0 -0
- /package/dist/{message-square-plus-DlLAZfNw.cjs → message-square-plus-02YDKJ_n.cjs} +0 -0
- /package/dist/{message-square-quote-Be08VSAl.cjs → message-square-quote-DeSvooX0.cjs} +0 -0
- /package/dist/{message-square-reply-B8nDL8vT.cjs → message-square-reply-kqwuaOQZ.cjs} +0 -0
- /package/dist/{message-square-share-BtrqaBeG.cjs → message-square-share-Dy63qKFn.cjs} +0 -0
- /package/dist/{message-square-text-BWrnhdhb.cjs → message-square-text-BUAIF4_X.cjs} +0 -0
- /package/dist/{message-square-warning-BS0QO9PG.cjs → message-square-warning-C5_ZAhtB.cjs} +0 -0
- /package/dist/{message-square-x-BDLcY_Kd.cjs → message-square-x-eCuSJOPn.cjs} +0 -0
- /package/dist/{messages-circle-BEpYEk34.cjs → messages-circle-DosTSmUr.cjs} +0 -0
- /package/dist/{messages-square-9QWu6GWS.cjs → messages-square-ChWPLfIb.cjs} +0 -0
- /package/dist/{metronome-CyM573AK.cjs → metronome-BzK_nLA4.cjs} +0 -0
- /package/dist/{mic-d_kEJfHA.cjs → mic-DWAlUuvE.cjs} +0 -0
- /package/dist/{mic-audio-lines-CqHLg8Tn.cjs → mic-audio-lines-DhICNZdN.cjs} +0 -0
- /package/dist/{mic-off-DVVRSYVV.cjs → mic-off-uBPdWX9u.cjs} +0 -0
- /package/dist/{mic-signal-C-EXfqXI.cjs → mic-signal-CR1AsZo4.cjs} +0 -0
- /package/dist/{mic-vocal-p9pnFzbP.cjs → mic-vocal-CVVV1oLn.cjs} +0 -0
- /package/dist/{microchip-UqY08gil.cjs → microchip-CoP1t9Ew.cjs} +0 -0
- /package/dist/{microscope-B94EnSFl.cjs → microscope-tF_KxT_C.cjs} +0 -0
- /package/dist/{microwave-DBafiNTk.cjs → microwave-C-LbALEU.cjs} +0 -0
- /package/dist/{midi-port-yGZC9VFW.cjs → midi-port-DX7PYieA.cjs} +0 -0
- /package/dist/{milestone-BuvXtLBN.cjs → milestone-dNXWnlcH.cjs} +0 -0
- /package/dist/{milk-BGnskK8-.cjs → milk-BFSMQeH6.cjs} +0 -0
- /package/dist/{milk-off-BICAJkOI.cjs → milk-off-C1ybpwd4.cjs} +0 -0
- /package/dist/{minimize-2-DKtp8K_3.cjs → minimize-2-BiGTo_4z.cjs} +0 -0
- /package/dist/{minimize-CqE7xFmy.cjs → minimize-cnd0tKaU.cjs} +0 -0
- /package/dist/{minus-Byvg919T.cjs → minus-BtkSZOMl.cjs} +0 -0
- /package/dist/{mirror-rectangular-fWfhbsep.cjs → mirror-rectangular-D1iGA2_E.cjs} +0 -0
- /package/dist/{mirror-round-hmz7_HUJ.cjs → mirror-round-kjbUcE_A.cjs} +0 -0
- /package/dist/{monitor-E0L9JBVe.cjs → monitor-C_QXNIjJ.cjs} +0 -0
- /package/dist/{monitor-check-MqCp61wK.cjs → monitor-check-D-zK7rl_.cjs} +0 -0
- /package/dist/{monitor-cloud-BrQa0EFM.cjs → monitor-cloud-B9KvE1WS.cjs} +0 -0
- /package/dist/{monitor-cog-QzX33hyZ.cjs → monitor-cog-Bw9JhzD-.cjs} +0 -0
- /package/dist/{monitor-dot-CN4szy5m.cjs → monitor-dot-DM_JadYV.cjs} +0 -0
- /package/dist/{monitor-down-XIEzRHsD.cjs → monitor-down-B4JOcYDX.cjs} +0 -0
- /package/dist/{monitor-off-DO4QEYRH.cjs → monitor-off-BNf1zWQ5.cjs} +0 -0
- /package/dist/{monitor-pause-s82I7OW9.cjs → monitor-pause-A5EGu8I7.cjs} +0 -0
- /package/dist/{monitor-pc-PBUw2nh7.cjs → monitor-pc-B615YP5-.cjs} +0 -0
- /package/dist/{monitor-play-yIjLgGD2.cjs → monitor-play-QDCXQUyz.cjs} +0 -0
- /package/dist/{monitor-smartphone-Bhr8oe2g.cjs → monitor-smartphone-7faXPIDf.cjs} +0 -0
- /package/dist/{monitor-speaker-clrpMb7W.cjs → monitor-speaker-FtH6W8HC.cjs} +0 -0
- /package/dist/{monitor-stop-C-EqhyjQ.cjs → monitor-stop-O0QT2cNl.cjs} +0 -0
- /package/dist/{monitor-up-Dm4ypFe2.cjs → monitor-up-C8-Rk9o7.cjs} +0 -0
- /package/dist/{monitor-x-D9A_2lmm.cjs → monitor-x-C3sYIWg3.cjs} +0 -0
- /package/dist/{moon-4yi81XEi.cjs → moon-1fT9UiqD.cjs} +0 -0
- /package/dist/{moon-star-D9vZD4XD.cjs → moon-star-48FcigZN.cjs} +0 -0
- /package/dist/{mop-CFnmInNE.cjs → mop-C_0R6UME.cjs} +0 -0
- /package/dist/{mop-sparkles-WwaFOYl3.cjs → mop-sparkles-DUUoSsfa.cjs} +0 -0
- /package/dist/{mosque-C2C41l2U.cjs → mosque-BbwmQWFV.cjs} +0 -0
- /package/dist/{motorbike-o9Y2DpnL.cjs → motorbike-BI9f3KnM.cjs} +0 -0
- /package/dist/{mountain-CnNNW1ID.cjs → mountain-eFXhXaT6.cjs} +0 -0
- /package/dist/{mountain-snow-CitrWnEv.cjs → mountain-snow-CMVLqUH0.cjs} +0 -0
- /package/dist/{mouse-CMT2V6JP.cjs → mouse-BpOxFcvN.cjs} +0 -0
- /package/dist/{mouse-left-BhFMhVEe.cjs → mouse-left-DAtVTk1m.cjs} +0 -0
- /package/dist/{mouse-off-DwOhHvwU.cjs → mouse-off-BjZseoJI.cjs} +0 -0
- /package/dist/{mouse-pointer-2-BJMOVRLb.cjs → mouse-pointer-2-Bua8Tfi6.cjs} +0 -0
- /package/dist/{mouse-pointer-2-off-CRfnF69x.cjs → mouse-pointer-2-off-BVZzZjFl.cjs} +0 -0
- /package/dist/{mouse-pointer-CUlSzDJo.cjs → mouse-pointer-D5ueJDyX.cjs} +0 -0
- /package/dist/{mouse-pointer-ban-x30-jibn.cjs → mouse-pointer-ban-B-aAAB2w.cjs} +0 -0
- /package/dist/{mouse-pointer-click-BCIqfimI.cjs → mouse-pointer-click-nw0U7JR7.cjs} +0 -0
- /package/dist/{mouse-right-0oRq8biy.cjs → mouse-right-Do2OY3Qy.cjs} +0 -0
- /package/dist/{mouth-zPN8qw1Q.cjs → mouth-DWXYI1J9.cjs} +0 -0
- /package/dist/{mouth-off-kPEZjhGc.cjs → mouth-off-VwK9d4JF.cjs} +0 -0
- /package/dist/{move-3d-5JAtoITu.cjs → move-3d-8ybcicsz.cjs} +0 -0
- /package/dist/{move-B4WD_47D.cjs → move-BFusQFmM.cjs} +0 -0
- /package/dist/{move-diagonal-2-BaH-dhnr.cjs → move-diagonal-2-Dq_rf7_W.cjs} +0 -0
- /package/dist/{move-diagonal-CwroDh77.cjs → move-diagonal-B0ymyip3.cjs} +0 -0
- /package/dist/{move-down-CoAdzZbV.cjs → move-down-Cl_HiC0I.cjs} +0 -0
- /package/dist/{move-down-left-BbAme5i9.cjs → move-down-left-C_Uz4zCL.cjs} +0 -0
- /package/dist/{move-down-right-ClvYu1zZ.cjs → move-down-right-C3Z0HT7l.cjs} +0 -0
- /package/dist/{move-horizontal-CNWnlqI9.cjs → move-horizontal-Cc7AapxZ.cjs} +0 -0
- /package/dist/{move-left-BBB8VRnq.cjs → move-left-FaRK8p5Z.cjs} +0 -0
- /package/dist/{move-right-BkTu6Ap0.cjs → move-right-DKWaIpwB.cjs} +0 -0
- /package/dist/{move-up-Dq2K8uL9.cjs → move-up-by6wboUB.cjs} +0 -0
- /package/dist/{move-up-left-060ySUoE.cjs → move-up-left-DrmnepE6.cjs} +0 -0
- /package/dist/{move-up-right-e4A83-Ln.cjs → move-up-right-H6uI6QUH.cjs} +0 -0
- /package/dist/{move-vertical-DkxY1maL.cjs → move-vertical-BKmOKMJx.cjs} +0 -0
- /package/dist/{music-2-BlqEKrFO.cjs → music-2-BlkGcM96.cjs} +0 -0
- /package/dist/{music-3-DUR2p8J-.cjs → music-3-DboldzI2.cjs} +0 -0
- /package/dist/{music-4-DKMqnT7T.cjs → music-4-BhGXDc4I.cjs} +0 -0
- /package/dist/{music-Bkpud08w.cjs → music-DQb0tH0Q.cjs} +0 -0
- /package/dist/{navigation-2-Bdzm-UlB.cjs → navigation-2-CM28xbtx.cjs} +0 -0
- /package/dist/{navigation-2-off-D-d03_uf.cjs → navigation-2-off-C_zSIJ9n.cjs} +0 -0
- /package/dist/{navigation-DJHcMBoi.cjs → navigation-C0PuvvOH.cjs} +0 -0
- /package/dist/{navigation-off-yxMZFLhq.cjs → navigation-off-BKLPcFxL.cjs} +0 -0
- /package/dist/{nepali-rupee-DFpBXm2Z.cjs → nepali-rupee-DdJVsCAv.cjs} +0 -0
- /package/dist/{network-CJQncafn.cjs → network-CYeQ5Mdz.cjs} +0 -0
- /package/dist/{newspaper-C39O55mg.cjs → newspaper-B8dBIjtl.cjs} +0 -0
- /package/dist/{nfc-B1NPBof8.cjs → nfc-D68PRhWQ.cjs} +0 -0
- /package/dist/{non-binary-Cv953AqU.cjs → non-binary-CF0jNgft.cjs} +0 -0
- /package/dist/{notebook-DvOjpecV.cjs → notebook-BM9j91Hq.cjs} +0 -0
- /package/dist/{notebook-dot-ByYeHrBb.cjs → notebook-dot-BSxcZrHF.cjs} +0 -0
- /package/dist/{notebook-pen-BqsNrAcF.cjs → notebook-pen-BcwsiQDk.cjs} +0 -0
- /package/dist/{notebook-tabs-CUEV9a6o.cjs → notebook-tabs-C1GhS1PU.cjs} +0 -0
- /package/dist/{notebook-text-vsenWSvP.cjs → notebook-text-CpC60wSs.cjs} +0 -0
- /package/dist/{notepad-text-C-UbH6Wb.cjs → notepad-text-HedFD8kk.cjs} +0 -0
- /package/dist/{notepad-text-dashed-BnKjx8MB.cjs → notepad-text-dashed-CPB3RWvx.cjs} +0 -0
- /package/dist/{nut-QtEjv7g9.cjs → nut-Cy0DYRrn.cjs} +0 -0
- /package/dist/{nut-off-ZWOKrkdO.cjs → nut-off-oDhNpwRi.cjs} +0 -0
- /package/dist/{octagon-Bgpv7Ox6.cjs → octagon-C2Bza3rV.cjs} +0 -0
- /package/dist/{octagon-alert-rMGYiukj.cjs → octagon-alert-CEuTT0TO.cjs} +0 -0
- /package/dist/{octagon-minus-CMA6Ai2s.cjs → octagon-minus-O1llULJ1.cjs} +0 -0
- /package/dist/{octagon-pause-Dn1YxEGe.cjs → octagon-pause-B1FvKKy2.cjs} +0 -0
- /package/dist/{octagon-x-D13CCNu7.cjs → octagon-x-9nypcAHq.cjs} +0 -0
- /package/dist/{omega-Da1t-2B_.cjs → omega-BnG0cedI.cjs} +0 -0
- /package/dist/{openOnArrival-Ciu647sc.js → openOnArrival-Bop8h_s7.js} +0 -0
- /package/dist/{openOnArrival-DHs-AimV.cjs → openOnArrival-ftsNNaT6.cjs} +0 -0
- /package/dist/{option-BzcJMlHd.cjs → option-CTMRs6cZ.cjs} +0 -0
- /package/dist/{orbit-BFVfWVmE.cjs → orbit-CODMoU0E.cjs} +0 -0
- /package/dist/{origami-C8Shi_s0.cjs → origami-ivatSLl6.cjs} +0 -0
- /package/dist/{package-2-CCNPlv2y.cjs → package-2-jltucgcP.cjs} +0 -0
- /package/dist/{package-check-DBs9NBvn.cjs → package-check-CyVnrVX2.cjs} +0 -0
- /package/dist/{package-minus-Brkqyh4j.cjs → package-minus-N4QMmCUc.cjs} +0 -0
- /package/dist/{package-DutjscXV.cjs → package-oX24QwlR.cjs} +0 -0
- /package/dist/{package-open-CImmvckA.cjs → package-open-DlIwqaXz.cjs} +0 -0
- /package/dist/{package-plus-BGfw_V_V.cjs → package-plus-BOm1zK-o.cjs} +0 -0
- /package/dist/{package-search-DdHtbz1p.cjs → package-search-B_BGpxTS.cjs} +0 -0
- /package/dist/{package-x-CqDcneWy.cjs → package-x-CGi_QFhD.cjs} +0 -0
- /package/dist/{paint-bucket-DFwQQSsP.cjs → paint-bucket-BTDJmpr2.cjs} +0 -0
- /package/dist/{paint-roller-COtS5Ytz.cjs → paint-roller-pM2xWGtD.cjs} +0 -0
- /package/dist/{paintbrush-BPcWII3a.cjs → paintbrush-b4zT7FBt.cjs} +0 -0
- /package/dist/{paintbrush-vertical-Edg9aCMY.cjs → paintbrush-vertical-Di9VmwTl.cjs} +0 -0
- /package/dist/{palette-Bh_4OrEi.cjs → palette-CSEVRN7O.cjs} +0 -0
- /package/dist/{panda-BioZ2clK.cjs → panda-Q8wdzv4L.cjs} +0 -0
- /package/dist/{panel-bottom-DhCT9nIO.cjs → panel-bottom-BT3yC36O.cjs} +0 -0
- /package/dist/{panel-bottom-close-CCHe_zHv.cjs → panel-bottom-close-ygL5Noi2.cjs} +0 -0
- /package/dist/{panel-bottom-dashed-C64jJQTW.cjs → panel-bottom-dashed-BF7DNJ2r.cjs} +0 -0
- /package/dist/{panel-bottom-open-CtrWlZjM.cjs → panel-bottom-open-CzOtBXOW.cjs} +0 -0
- /package/dist/{panel-left-CPqdxEJN.cjs → panel-left-BRtLQ386.cjs} +0 -0
- /package/dist/{panel-left-close-Ce9GmQve.cjs → panel-left-close-Bgwyl8x2.cjs} +0 -0
- /package/dist/{panel-left-dashed-CUe5aGVZ.cjs → panel-left-dashed-BP8L1cKC.cjs} +0 -0
- /package/dist/{panel-left-open-ImzqsIcd.cjs → panel-left-open-DXmpyYyd.cjs} +0 -0
- /package/dist/{panel-left-right-dashed-4cKWd_tC.cjs → panel-left-right-dashed-B4u-lfut.cjs} +0 -0
- /package/dist/{panel-right-ZPFMxVep.cjs → panel-right-UMW1Kf49.cjs} +0 -0
- /package/dist/{panel-right-close-Z1Mj1BWz.cjs → panel-right-close-DijqAycR.cjs} +0 -0
- /package/dist/{panel-right-dashed-CtdjaJc1.cjs → panel-right-dashed-C7DF5KHE.cjs} +0 -0
- /package/dist/{panel-right-open-M3Wp7Z5B.cjs → panel-right-open-D1XcfeW8.cjs} +0 -0
- /package/dist/{panel-top-I0rBe4fA.cjs → panel-top-DvYzvIb1.cjs} +0 -0
- /package/dist/{panel-top-bottom-dashed-BbBOmaKd.cjs → panel-top-bottom-dashed-BVSkH7mf.cjs} +0 -0
- /package/dist/{panel-top-close-DWLX58HR.cjs → panel-top-close-DEProoiA.cjs} +0 -0
- /package/dist/{panel-top-dashed-DFWp7j7_.cjs → panel-top-dashed-BN8cVT-Q.cjs} +0 -0
- /package/dist/{panel-top-open-BuP5nJIF.cjs → panel-top-open-CBVQtuOC.cjs} +0 -0
- /package/dist/{panels-left-bottom-mgd_neOj.cjs → panels-left-bottom-CBmtMqSI.cjs} +0 -0
- /package/dist/{panels-right-bottom-DE4A-sHU.cjs → panels-right-bottom-P6wway8v.cjs} +0 -0
- /package/dist/{panels-top-left-UqywzhWB.cjs → panels-top-left-aCnRVEmz.cjs} +0 -0
- /package/dist/{paper-bag-DUxkdl8b.cjs → paper-bag-BW-JCPLg.cjs} +0 -0
- /package/dist/{paperclip-BpsD0CnJ.cjs → paperclip-BQzfoCAa.cjs} +0 -0
- /package/dist/{parasol-DvOXTivU.cjs → parasol-BFXShgHl.cjs} +0 -0
- /package/dist/{parentheses-DHxTy9KH.cjs → parentheses-DfEdXzLy.cjs} +0 -0
- /package/dist/{park-CkxxBhVd.cjs → park-RUUYtcJW.cjs} +0 -0
- /package/dist/{parking-meter-CNGSrCcb.cjs → parking-meter-D4e2OGqH.cjs} +0 -0
- /package/dist/{party-popper-DAcsBA1u.cjs → party-popper-DgSNfzxc.cjs} +0 -0
- /package/dist/{pause-AOJyEsAO.cjs → pause-BtYI3hdy.cjs} +0 -0
- /package/dist/{paw-print-CAwKquip.cjs → paw-print-BH1Jzpsx.cjs} +0 -0
- /package/dist/{pc-case-CFly2kTi.cjs → pc-case-2iorZPZE.cjs} +0 -0
- /package/dist/{pdf-aaLf52B-.cjs → pdf-C1OlWdhr.cjs} +0 -0
- /package/dist/{pdf.worker.min-CUlZbV7E.cjs → pdf.worker.min-DsiuoIcm.cjs} +0 -0
- /package/dist/{pen-B5PvPfCh.cjs → pen-POVD1eNP.cjs} +0 -0
- /package/dist/{pen-line-C4kqA09W.cjs → pen-line-DAXAzxxF.cjs} +0 -0
- /package/dist/{pen-off-y1r3zu3A.cjs → pen-off-BoJlTHa7.cjs} +0 -0
- /package/dist/{pen-tool-HDEBDl-O.cjs → pen-tool-DzCP2hkF.cjs} +0 -0
- /package/dist/{pencil-DvVUrYDk.cjs → pencil-9UoOudD_.cjs} +0 -0
- /package/dist/{pencil-line-B4_r0iNm.cjs → pencil-line-BpxFD7x2.cjs} +0 -0
- /package/dist/{pencil-off-DOOVRgp-.cjs → pencil-off-Nfqa1UHn.cjs} +0 -0
- /package/dist/{pencil-ruler-DneB_Sf5.cjs → pencil-ruler-BfVfLy62.cjs} +0 -0
- /package/dist/{pencil-sparkles-dEKPT2hS.cjs → pencil-sparkles-Da8IM6gt.cjs} +0 -0
- /package/dist/{pentagon-C3fRAzkq.cjs → pentagon-CbRT5d6K.cjs} +0 -0
- /package/dist/{percent-B02kcUZA.cjs → percent-Dw4cPt0X.cjs} +0 -0
- /package/dist/{person-standing-CTNpxzd8.cjs → person-standing-CRfFKvaZ.cjs} +0 -0
- /package/dist/{personName-YmfBW_zp.cjs → personName-CrPJNYrP.cjs} +0 -0
- /package/dist/{personName-CKIlCTMo.js → personName-D_UXjn5Z.js} +0 -0
- /package/dist/{phi-C-7ROF9b.cjs → phi-8p95atqM.cjs} +0 -0
- /package/dist/{philippine-peso-CFVYuOIz.cjs → philippine-peso-DAuoyBdA.cjs} +0 -0
- /package/dist/{phone-CxSgqlVl.cjs → phone-CrL-MEiE.cjs} +0 -0
- /package/dist/{phone-call-BpTTxy5E.cjs → phone-call-Dt1WY61c.cjs} +0 -0
- /package/dist/{phone-forwarded-D-OsCKYj.cjs → phone-forwarded-dMolAX6I.cjs} +0 -0
- /package/dist/{phone-incoming-D6e4Inaz.cjs → phone-incoming-BfpnfP1U.cjs} +0 -0
- /package/dist/{phone-missed-BTcfQMbi.cjs → phone-missed-DCuXCJm-.cjs} +0 -0
- /package/dist/{phone-off-D10NUNEJ.cjs → phone-off-DO3Cjqjw.cjs} +0 -0
- /package/dist/{phone-outgoing-DQb4gC87.cjs → phone-outgoing-BPExDtKo.cjs} +0 -0
- /package/dist/{pi-DnxhC6pD.cjs → pi-By9ZRg3R.cjs} +0 -0
- /package/dist/{piano-DAYbeCGX.cjs → piano-DZcnEgYS.cjs} +0 -0
- /package/dist/{pickaxe-BnQZUDah.cjs → pickaxe-CvQXOX-A.cjs} +0 -0
- /package/dist/{picture-in-picture-2-CafTy74m.cjs → picture-in-picture-2-NmSX9e9H.cjs} +0 -0
- /package/dist/{picture-in-picture-XSqN-beb.cjs → picture-in-picture-G2Si8p82.cjs} +0 -0
- /package/dist/{piggy-bank-BtPK_peX.cjs → piggy-bank-DbmJLVD-.cjs} +0 -0
- /package/dist/{pilcrow-CQEUgPiT.cjs → pilcrow-BroEcuLv.cjs} +0 -0
- /package/dist/{pilcrow-left-wDAFx5CH.cjs → pilcrow-left-B0VSw9JM.cjs} +0 -0
- /package/dist/{pilcrow-right-DSjA4bJ0.cjs → pilcrow-right-D1wavjVS.cjs} +0 -0
- /package/dist/{pill-Dq1WyUVS.cjs → pill-Bp6ccbn7.cjs} +0 -0
- /package/dist/{pill-bottle-DUlY5uDR.cjs → pill-bottle-BC97Hlnq.cjs} +0 -0
- /package/dist/{pin-CBbthnR2.cjs → pin-DQSIW5sM.cjs} +0 -0
- /package/dist/{pin-off-CwzMbkZz.cjs → pin-off-fcMukwiJ.cjs} +0 -0
- /package/dist/{pipette-DS9YXOuz.cjs → pipette-Tm3FJb3Q.cjs} +0 -0
- /package/dist/{pizza-ruJ2oYDt.cjs → pizza-B-2WnQL6.cjs} +0 -0
- /package/dist/{plane-6dbQ6u_g.cjs → plane-DLjsO-DR.cjs} +0 -0
- /package/dist/{plane-landing-kliPo_vf.cjs → plane-landing-BzrEo7bv.cjs} +0 -0
- /package/dist/{plane-takeoff-DghSWv6G.cjs → plane-takeoff-BDkhAkds.cjs} +0 -0
- /package/dist/{plant-pot-DyVqXn4m.cjs → plant-pot-CtDE6acL.cjs} +0 -0
- /package/dist/{play-BvGOQT78.cjs → play-CA_Puo8i.cjs} +0 -0
- /package/dist/{play-off-ktPlEHRB.cjs → play-off-CocFKaxH.cjs} +0 -0
- /package/dist/{playing-card-DsqmE7wa.cjs → playing-card-B6In1862.cjs} +0 -0
- /package/dist/{playing-cards-DTf0Pc6M.cjs → playing-cards-BTQVit72.cjs} +0 -0
- /package/dist/{playing-cards-fan-CHJfnFNF.cjs → playing-cards-fan-CGDp2SRI.cjs} +0 -0
- /package/dist/{plug-2-CS9kjmVf.cjs → plug-2-AhmsISfS.cjs} +0 -0
- /package/dist/{plug-BrUjUYIH.cjs → plug-Bpg5x3Q-.cjs} +0 -0
- /package/dist/{plug-zap-UMjyHjvI.cjs → plug-zap-Cz8sTFVg.cjs} +0 -0
- /package/dist/{plus-zsWFCu4F.cjs → plus-CfT8mbzZ.cjs} +0 -0
- /package/dist/{plus-BEzzyrzc.cjs → plus-DdCdKblC.cjs} +0 -0
- /package/dist/{pocket-knife-B3FIvL-s.cjs → pocket-knife-82MKZMEv.cjs} +0 -0
- /package/dist/{podium-PTW7jNvY.cjs → podium-CpJ-wlwC.cjs} +0 -0
- /package/dist/{pointer-DCafkaWh.cjs → pointer-CPxdQW84.cjs} +0 -0
- /package/dist/{pointer-off-Cz8of8bt.cjs → pointer-off-C2BR06Rq.cjs} +0 -0
- /package/dist/{popcorn-CrZI_i2d.cjs → popcorn-MzLW8cg1.cjs} +0 -0
- /package/dist/{popsicle-pVUHoDRe.cjs → popsicle-BRGpOU3a.cjs} +0 -0
- /package/dist/{pound-sterling-BtzvjUgk.cjs → pound-sterling-CbRthw5A.cjs} +0 -0
- /package/dist/{power-Bs_nchQG.cjs → power-BmbizVl7.cjs} +0 -0
- /package/dist/{power-Cb233GXA.cjs → power-DkN2TbLv.cjs} +0 -0
- /package/dist/{power-off-BUbWmNbB.cjs → power-off-D3QJTLGu.cjs} +0 -0
- /package/dist/{presentation-BNDU7jVw.cjs → presentation-BbelR9CH.cjs} +0 -0
- /package/dist/{printer-CTkYKofT.cjs → printer-BbyNFeNF.cjs} +0 -0
- /package/dist/{printer-check-C9f94YoO.cjs → printer-check-DuMv-PB4.cjs} +0 -0
- /package/dist/{printer-x-BzBQmwf-.cjs → printer-x-B-bbeVEZ.cjs} +0 -0
- /package/dist/{projector-DQPYkMMf.cjs → projector-D5NxXrsx.cjs} +0 -0
- /package/dist/{proportions-B-p6Lld6.cjs → proportions-CQr8P9xY.cjs} +0 -0
- /package/dist/{puzzle-BULYZEBX.cjs → puzzle-D9NSKD5f.cjs} +0 -0
- /package/dist/{pyramid-DdgmzfMY.cjs → pyramid-DP63HDqB.cjs} +0 -0
- /package/dist/{qr-code-e2MO3aqN.cjs → qr-code-DhI93jVG.cjs} +0 -0
- /package/dist/{quote-_n1d_8JE.cjs → quote-BGP5rkS6.cjs} +0 -0
- /package/dist/{rabbit-BCZofStQ.cjs → rabbit-DsGvfKgh.cjs} +0 -0
- /package/dist/{radar-Day0lm9P.cjs → radar-C5xapVPv.cjs} +0 -0
- /package/dist/{radiation-Co72Jhnt.cjs → radiation-DbMUSBK1.cjs} +0 -0
- /package/dist/{radical-BywA0fob.cjs → radical-BTEO0iXv.cjs} +0 -0
- /package/dist/{radio-B5M2RelC.cjs → radio-CCWOOu-L.cjs} +0 -0
- /package/dist/{radio-off-ymKFPg62.cjs → radio-off-C8GS3Bsw.cjs} +0 -0
- /package/dist/{radio-receiver-C5k6QQEA.cjs → radio-receiver-C4q93Bmg.cjs} +0 -0
- /package/dist/{radio-tower-HxWJze_G.cjs → radio-tower-DZKsuIQY.cjs} +0 -0
- /package/dist/{radius-D4pT418Y.cjs → radius-CHqEbrZk.cjs} +0 -0
- /package/dist/{rainbow-DQiF1JyB.cjs → rainbow-B3zq31Ij.cjs} +0 -0
- /package/dist/{rat-DbZv9HXz.cjs → rat-BYAKfA5N.cjs} +0 -0
- /package/dist/{ratio-Bn33VRPK.cjs → ratio-D1B3OaXr.cjs} +0 -0
- /package/dist/{receipt-cent-DXPh_9H8.cjs → receipt-cent-CgjIVyas.cjs} +0 -0
- /package/dist/{receipt-euro-CIgJNjbF.cjs → receipt-euro-CPGMGLQh.cjs} +0 -0
- /package/dist/{receipt-indian-rupee-CV9cLkry.cjs → receipt-indian-rupee-C30anJiR.cjs} +0 -0
- /package/dist/{receipt-japanese-yen-D9jCJi5l.cjs → receipt-japanese-yen-DjSt5u78.cjs} +0 -0
- /package/dist/{receipt-8RjwbaJr.cjs → receipt-m524OQrr.cjs} +0 -0
- /package/dist/{receipt-pound-sterling-C5reNc_c.cjs → receipt-pound-sterling-Dkcn6Hm2.cjs} +0 -0
- /package/dist/{receipt-russian-ruble-D6x_WNik.cjs → receipt-russian-ruble-CfEKoVTZ.cjs} +0 -0
- /package/dist/{receipt-swiss-franc-B5sSQoAE.cjs → receipt-swiss-franc-DfEyuhQE.cjs} +0 -0
- /package/dist/{receipt-text-DSldaFxO.cjs → receipt-text-B66oao8H.cjs} +0 -0
- /package/dist/{receipt-turkish-lira-CTB_x7Bi.cjs → receipt-turkish-lira-1LJYEya7.cjs} +0 -0
- /package/dist/{recordPrice-De0ISuQj.js → recordPrice-DHWVl4RG.js} +0 -0
- /package/dist/{recordPrice-B5ol9bfb.cjs → recordPrice-TT02LDkm.cjs} +0 -0
- /package/dist/{rectangle-circle-C_wv1OxB.cjs → rectangle-circle-CYiRGMPM.cjs} +0 -0
- /package/dist/{rectangle-ellipsis-C3J3caHQ.cjs → rectangle-ellipsis-lN7wG22f.cjs} +0 -0
- /package/dist/{rectangle-goggles-Csi-GHmR.cjs → rectangle-goggles-CeG0miQC.cjs} +0 -0
- /package/dist/{rectangle-horizontal-DkNhf24z.cjs → rectangle-horizontal-C6NjM-Xk.cjs} +0 -0
- /package/dist/{rectangle-vertical-CDtHMQFb.cjs → rectangle-vertical-DwtQiQon.cjs} +0 -0
- /package/dist/{recycle-Cm57TcQi.cjs → recycle-DwZSNhgK.cjs} +0 -0
- /package/dist/{redo-2-DpMxKn_a.cjs → redo-2-C2EooJFw.cjs} +0 -0
- /package/dist/{redo-B_8C4yE0.cjs → redo-CbXsCGzF.cjs} +0 -0
- /package/dist/{redo-dot-CFGBlI-h.cjs → redo-dot-BWctgQN9.cjs} +0 -0
- /package/dist/{refresh-ccw-BFijTcNg.cjs → refresh-ccw-BeywGhdX.cjs} +0 -0
- /package/dist/{refresh-ccw-dot-QM6ukYpp.cjs → refresh-ccw-dot-BGUY8K-x.cjs} +0 -0
- /package/dist/{refresh-cw-DZmMhDD_.cjs → refresh-cw-D-vbMULL.cjs} +0 -0
- /package/dist/{refresh-cw-off-BwHYygoj.cjs → refresh-cw-off-Cx6Xv2iB.cjs} +0 -0
- /package/dist/{refrigerator-dHbdN2tJ.cjs → refrigerator-BI24av6f.cjs} +0 -0
- /package/dist/{regex-Da-juwbl.cjs → regex-C_hZTSho.cjs} +0 -0
- /package/dist/{remove-formatting-B8Jx2CGm.cjs → remove-formatting-Dyw-hLOh.cjs} +0 -0
- /package/dist/{repeat-1-Cmx_sVKn.cjs → repeat-1-D1PLOrwp.cjs} +0 -0
- /package/dist/{repeat-2-CuO5H5eq.cjs → repeat-2-zQebcr0v.cjs} +0 -0
- /package/dist/{repeat-PiC2f2IH.cjs → repeat-Cwl0k12T.cjs} +0 -0
- /package/dist/{repeat-off-BcasNLzI.cjs → repeat-off-CH20naWf.cjs} +0 -0
- /package/dist/{replace-Cj_3jfsU.cjs → replace-BR3iErPK.cjs} +0 -0
- /package/dist/{replace-all-DLfopDqg.cjs → replace-all-BGxpDZLh.cjs} +0 -0
- /package/dist/{reply-BEr-1BzR.cjs → reply-DkBfWCvx.cjs} +0 -0
- /package/dist/{reply-D-j2uJgM.cjs → reply-DmbzXcXQ.cjs} +0 -0
- /package/dist/{reply-all-Cr4zKkUG.cjs → reply-all-C8FIo4RN.cjs} +0 -0
- /package/dist/{rewind-COr8wzBL.cjs → rewind-DwbtM-4H.cjs} +0 -0
- /package/dist/{ribbon-m2ijrdre.cjs → ribbon-C7Wh9Ti8.cjs} +0 -0
- /package/dist/{road-CLop8wUN.cjs → road-D7GOqEYN.cjs} +0 -0
- /package/dist/{robot-arm-C4HGsqnp.cjs → robot-arm-BmJbt5Mb.cjs} +0 -0
- /package/dist/{robot-vacuum-CXQ9CBEk.cjs → robot-vacuum-CKTR08zZ.cjs} +0 -0
- /package/dist/{rocket-CZdCgOKm.cjs → rocket-MHKqyAfk.cjs} +0 -0
- /package/dist/{rocking-chair-C1tPmdTq.cjs → rocking-chair-vGfEe5l-.cjs} +0 -0
- /package/dist/{roller-coaster-DQZlXaxL.cjs → roller-coaster-CHUaW5cm.cjs} +0 -0
- /package/dist/{rose-Cgw0pwH0.cjs → rose-BZloUGVG.cjs} +0 -0
- /package/dist/{rotate-3d-CqhtN08s.cjs → rotate-3d-BL5ZoFEG.cjs} +0 -0
- /package/dist/{rotate-ccw-BHu3R5bV.cjs → rotate-ccw-DV2OojaZ.cjs} +0 -0
- /package/dist/{rotate-ccw-clock-BYhbTr1z.cjs → rotate-ccw-clock-L8RH_gfK.cjs} +0 -0
- /package/dist/{rotate-ccw-key-B4O-mIWF.cjs → rotate-ccw-key-BCpgg7VC.cjs} +0 -0
- /package/dist/{rotate-ccw-square-CBco_POT.cjs → rotate-ccw-square-l5Fef0z0.cjs} +0 -0
- /package/dist/{rotate-cw-CgqRrndj.cjs → rotate-cw-DXdQMzb1.cjs} +0 -0
- /package/dist/{rotate-cw-clock-CxBemKUZ.cjs → rotate-cw-clock-BfaCjuFH.cjs} +0 -0
- /package/dist/{rotate-cw-fading-clock-Wqg0QqEs.cjs → rotate-cw-fading-clock-BBlPt_3B.cjs} +0 -0
- /package/dist/{rotate-cw-square-DuhCQ5uz.cjs → rotate-cw-square-Du0HWrQl.cjs} +0 -0
- /package/dist/{route-B6QX5bZg.cjs → route-C-lE1PYF.cjs} +0 -0
- /package/dist/{route-off-BgwH8j7s.cjs → route-off-Buv8WaUR.cjs} +0 -0
- /package/dist/{router-BMmEae56.cjs → router-C6p9e4Gk.cjs} +0 -0
- /package/dist/{rows-2-3kBwCxRB.cjs → rows-2-Bn3gOQp8.cjs} +0 -0
- /package/dist/{rows-3-BtTu8sQ2.cjs → rows-3-BG8I9zTV.cjs} +0 -0
- /package/dist/{rows-4-DfERL766.cjs → rows-4-C2uWPvrn.cjs} +0 -0
- /package/dist/{rss-CEwOr5UJ.cjs → rss-BeK0nkeW.cjs} +0 -0
- /package/dist/{ruler-B-3uVRBM.cjs → ruler-Bd-pjcXk.cjs} +0 -0
- /package/dist/{ruler-dimension-line-DHD1SGaH.cjs → ruler-dimension-line-B_qPpN8d.cjs} +0 -0
- /package/dist/{russian-ruble-B7QohPIa.cjs → russian-ruble-CLh5ewMd.cjs} +0 -0
- /package/dist/{sailboat-B5NXBqo-.cjs → sailboat-CDhTqN9M.cjs} +0 -0
- /package/dist/{salad-CG0CzU5B.cjs → salad-Domnysyp.cjs} +0 -0
- /package/dist/{sandwich-DHP2LXcg.cjs → sandwich-CMuliOHZ.cjs} +0 -0
- /package/dist/{satellite-D-lVfKEp.cjs → satellite-C3U29uO6.cjs} +0 -0
- /package/dist/{satellite-dish-DEWRVLQF.cjs → satellite-dish-CLBjt0wB.cjs} +0 -0
- /package/dist/{saudi-riyal-COzlELzX.cjs → saudi-riyal-DOXrejpv.cjs} +0 -0
- /package/dist/{save-CC1Ay16F.cjs → save-CIxXx3Eq.cjs} +0 -0
- /package/dist/{save-all-DB73vgcm.cjs → save-all-DfhOF-A8.cjs} +0 -0
- /package/dist/{save-check-B3nKDsIu.cjs → save-check-B4ANxt7m.cjs} +0 -0
- /package/dist/{save-off-DvKfJkLP.cjs → save-off-CYJ9pujt.cjs} +0 -0
- /package/dist/{save-pen-a3Vm0stY.cjs → save-pen-BOyzJFHY.cjs} +0 -0
- /package/dist/{save-plus-DdW6DSnm.cjs → save-plus-0vaZB838.cjs} +0 -0
- /package/dist/{scale-3d-BbuYS1tF.cjs → scale-3d-CoCol_aP.cjs} +0 -0
- /package/dist/{scale-BTva6EhB.cjs → scale-CPINHfX8.cjs} +0 -0
- /package/dist/{scaling-DDntQIHz.cjs → scaling-CKw_-Psw.cjs} +0 -0
- /package/dist/{scan-CtICEJrl.cjs → scan-OJW_r7Ed.cjs} +0 -0
- /package/dist/{scan-barcode-DmwtetcC.cjs → scan-barcode-BtPNKH0_.cjs} +0 -0
- /package/dist/{scan-box-CSia4eLF.cjs → scan-box-YphnD6hi.cjs} +0 -0
- /package/dist/{scan-eye-Brgt_lbz.cjs → scan-eye-BU8j0uYb.cjs} +0 -0
- /package/dist/{scan-face-lT1ehTVV.cjs → scan-face-D5_eOvBT.cjs} +0 -0
- /package/dist/{scan-heart-BOl56hBi.cjs → scan-heart-2aXY_Taq.cjs} +0 -0
- /package/dist/{scan-line-B2lxa5S9.cjs → scan-line-B38oc4lT.cjs} +0 -0
- /package/dist/{scan-qr-code-DrrS9xOd.cjs → scan-qr-code-Bu_y0jbk.cjs} +0 -0
- /package/dist/{scan-search-Q1fpbK2f.cjs → scan-search-CwCkRfft.cjs} +0 -0
- /package/dist/{scan-square-C07VLhmQ.cjs → scan-square-D9Pv38Lm.cjs} +0 -0
- /package/dist/{scan-text-bhxnnzzh.cjs → scan-text-DQVnpso6.cjs} +0 -0
- /package/dist/{school-AAXM3R1u.cjs → school-sXEnpQQE.cjs} +0 -0
- /package/dist/{scissors-BOLs37Ke.cjs → scissors-BDMDI9t5.cjs} +0 -0
- /package/dist/{scissors-line-dashed-TaVQtQCg.cjs → scissors-line-dashed-hcBGoIF7.cjs} +0 -0
- /package/dist/{scooter-D_g-VoFX.cjs → scooter-DKRNpGC-.cjs} +0 -0
- /package/dist/{screen-share-6qEfhaUJ.cjs → screen-share-Af_BZede.cjs} +0 -0
- /package/dist/{screen-share-off-BnL1se98.cjs → screen-share-off-DMuBBiIO.cjs} +0 -0
- /package/dist/{scroll-CpXu-EzI.cjs → scroll-ByGATxaP.cjs} +0 -0
- /package/dist/{scroll-text-BpQY0MhS.cjs → scroll-text-B_2IM1Bm.cjs} +0 -0
- /package/dist/{search-BlViIWo9.cjs → search-BQXplyxx.cjs} +0 -0
- /package/dist/{search-alert-CrHwl2Ep.cjs → search-alert-CfGu8lfx.cjs} +0 -0
- /package/dist/{search-check-B7UnvFuF.cjs → search-check-BF9LHB-I.cjs} +0 -0
- /package/dist/{search-code-BwHtioIm.cjs → search-code-CDRKAYSO.cjs} +0 -0
- /package/dist/{search-slash-DRQ22F5C.cjs → search-slash-BY3JM8RO.cjs} +0 -0
- /package/dist/{search-x-Bvts1JIC.cjs → search-x-BT79IVY3.cjs} +0 -0
- /package/dist/{section-Bkl5OTiE.cjs → section-D0N-0fwc.cjs} +0 -0
- /package/dist/{send-pZ-18Elb.cjs → send-YFb2G_7p.cjs} +0 -0
- /package/dist/{send-horizontal-DNt0lxed.cjs → send-horizontal-ujdkDAgr.cjs} +0 -0
- /package/dist/{send-to-back-BMddegn3.cjs → send-to-back-f7EB9lMC.cjs} +0 -0
- /package/dist/{send-B2JvXSGH.cjs → send-z3yV-raq.cjs} +0 -0
- /package/dist/{separator-horizontal-DtGf_UiO.cjs → separator-horizontal-BAY-zOkP.cjs} +0 -0
- /package/dist/{separator-vertical-D7ePWeaE.cjs → separator-vertical-C1bLf0dt.cjs} +0 -0
- /package/dist/{server-Bk7CBwaQ.cjs → server-YJKuqNrs.cjs} +0 -0
- /package/dist/{server-cog-BvV5b11f.cjs → server-cog-BGMXY9-j.cjs} +0 -0
- /package/dist/{server-crash-CHbdFIcv.cjs → server-crash-wOwuB7jX.cjs} +0 -0
- /package/dist/{server-off-Do4JfnCL.cjs → server-off-BmBp0LS2.cjs} +0 -0
- /package/dist/{server-plus-B_QI9_nL.cjs → server-plus-D0QPm0YW.cjs} +0 -0
- /package/dist/{settings-2-BsAx4RaZ.cjs → settings-2-DDpoiURb.cjs} +0 -0
- /package/dist/{settings-BButTKQl.cjs → settings-Cxoxvmw3.cjs} +0 -0
- /package/dist/{shapes-BkDzgcVq.cjs → shapes-BsOC8uei.cjs} +0 -0
- /package/dist/{share-2-CkWlBl8h.cjs → share-2-_BIR4vp6.cjs} +0 -0
- /package/dist/{share-m3FY-rrE.cjs → share-BziAxC7A.cjs} +0 -0
- /package/dist/{sheet-DHMYClK5.cjs → sheet-Cl-8gIH8.cjs} +0 -0
- /package/dist/{shell-Co5qxXll.cjs → shell-DQNd3UZu.cjs} +0 -0
- /package/dist/{shelving-unit-TAI2YNy8.cjs → shelving-unit-CXhhGky1.cjs} +0 -0
- /package/dist/{shield-BumT1wNA.cjs → shield-DVSNZFyR.cjs} +0 -0
- /package/dist/{shield-alert-DHNPDSnv.cjs → shield-alert-HnY7Ygy4.cjs} +0 -0
- /package/dist/{shield-ban-BjRof_-c.cjs → shield-ban-BGy1QGXn.cjs} +0 -0
- /package/dist/{shield-check-9QLjYwlp.cjs → shield-check-DpQW7BMO.cjs} +0 -0
- /package/dist/{shield-check-LWxfvmzX.cjs → shield-check-F29HF5Uz.cjs} +0 -0
- /package/dist/{shield-cog-B19dHoZE.cjs → shield-cog-cgqAJ3vP.cjs} +0 -0
- /package/dist/{shield-cog-corner-DJ7lyOu_.cjs → shield-cog-corner-Cqss5MkB.cjs} +0 -0
- /package/dist/{shield-ellipsis-JoWwzcTG.cjs → shield-ellipsis-BptC9z_k.cjs} +0 -0
- /package/dist/{shield-half-BS1WfuKK.cjs → shield-half-BXmeHscW.cjs} +0 -0
- /package/dist/{shield-keyhole-B-tJHEc0.cjs → shield-keyhole-BTl00J-k.cjs} +0 -0
- /package/dist/{shield-lock-DfCpFTTW.cjs → shield-lock-DoqRhgjY.cjs} +0 -0
- /package/dist/{shield-minus-FfztQ_iy.cjs → shield-minus-I_KZZiK6.cjs} +0 -0
- /package/dist/{shield-off-Co0OLahg.cjs → shield-off-DG2Z6n6P.cjs} +0 -0
- /package/dist/{shield-plus-C7gQqQ0E.cjs → shield-plus-DEp3Zt5Z.cjs} +0 -0
- /package/dist/{shield-question-mark-DbNS-JUH.cjs → shield-question-mark-Cf0q4Jaa.cjs} +0 -0
- /package/dist/{shield-user-BGxv_orT.cjs → shield-user-CvwK4xd4.cjs} +0 -0
- /package/dist/{shield-x-169c2lXb.cjs → shield-x-BvEo853Y.cjs} +0 -0
- /package/dist/{ship-D0mfg5gK.cjs → ship-C5YvTITC.cjs} +0 -0
- /package/dist/{ship-cargo-DdfFgKO7.cjs → ship-cargo-D7a4qRkq.cjs} +0 -0
- /package/dist/{ship-wheel-FM93NL6x.cjs → ship-wheel-fawjd7RW.cjs} +0 -0
- /package/dist/{shirt-CCQ_WiMM.cjs → shirt-Dv-y2g6-.cjs} +0 -0
- /package/dist/{shopping-bag-B9sCfz53.cjs → shopping-bag-CFPWWkBI.cjs} +0 -0
- /package/dist/{shopping-basket-CfE0FUsR.cjs → shopping-basket-B7ZOn84q.cjs} +0 -0
- /package/dist/{shopping-cart-minus-DuvEM_El.cjs → shopping-cart-minus-BZ4iC5IK.cjs} +0 -0
- /package/dist/{shopping-cart-plus-3zjB_57c.cjs → shopping-cart-plus-CZo-OCJz.cjs} +0 -0
- /package/dist/{shopping-cart-CrO5nVRz.cjs → shopping-cart-zAlVP03f.cjs} +0 -0
- /package/dist/{shovel-CgKqT3iq.cjs → shovel-e3MyIVvd.cjs} +0 -0
- /package/dist/{shower-head-DbmVcejk.cjs → shower-head-CVak83Nb.cjs} +0 -0
- /package/dist/{shredder-BzQRGdTV.cjs → shredder--9hhebCd.cjs} +0 -0
- /package/dist/{shrimp-DsRsItox.cjs → shrimp-CvGv-9EJ.cjs} +0 -0
- /package/dist/{shrimp-off-7CyjBi6v.cjs → shrimp-off-Bw8VlqZw.cjs} +0 -0
- /package/dist/{shrink-DgubICyZ.cjs → shrink-DAnu8YNV.cjs} +0 -0
- /package/dist/{shrub-DQ8KDeFP.cjs → shrub-DNt3uiuY.cjs} +0 -0
- /package/dist/{shuffle-WD35TskF.cjs → shuffle-BVanAB3Q.cjs} +0 -0
- /package/dist/{sigma-DxNbDKpU.cjs → sigma-TIG6BtnR.cjs} +0 -0
- /package/dist/{signal-DggM6oRM.cjs → signal-DOLp9EO2.cjs} +0 -0
- /package/dist/{signal-high-BMghYIku.cjs → signal-high-fzUnscke.cjs} +0 -0
- /package/dist/{signal-low-dsCiDCjy.cjs → signal-low-DLiQ21e7.cjs} +0 -0
- /package/dist/{signal-medium-CeV8uUuO.cjs → signal-medium-CnOLWayM.cjs} +0 -0
- /package/dist/{signal-zero-DVl4XfuC.cjs → signal-zero-CBEqT9x9.cjs} +0 -0
- /package/dist/{signature-BuCYbTQH.cjs → signature-BW_qyn1k.cjs} +0 -0
- /package/dist/{signpost-DBf9cgSR.cjs → signpost-CM_431X4.cjs} +0 -0
- /package/dist/{signpost-big-DypZLF-j.cjs → signpost-big-z4imogbS.cjs} +0 -0
- /package/dist/{siren-CBP44Y2b.cjs → siren-DsQHtRQP.cjs} +0 -0
- /package/dist/{skip-back-DYmEIuQR.cjs → skip-back-BqbzcUB8.cjs} +0 -0
- /package/dist/{skip-forward-CJ-68r6m.cjs → skip-forward-JN9f1FF0.cjs} +0 -0
- /package/dist/{skull-B0BFFGF7.cjs → skull-DsGxjCJi.cjs} +0 -0
- /package/dist/{slash-CUnnhY-K.cjs → slash-BLLAZIq-.cjs} +0 -0
- /package/dist/{slice-CnfHj8Gm.cjs → slice-CSZMqJge.cjs} +0 -0
- /package/dist/{sliders-horizontal-DKrdV9RL.cjs → sliders-horizontal-TF7Vzb4L.cjs} +0 -0
- /package/dist/{sliders-vertical-CJzkRMgh.cjs → sliders-vertical-BbGMUWqQ.cjs} +0 -0
- /package/dist/{smartphone-DNE0WHw3.cjs → smartphone-B1iQ2g2Z.cjs} +0 -0
- /package/dist/{smartphone-charging-gwBOFm3o.cjs → smartphone-charging-B10H8I7W.cjs} +0 -0
- /package/dist/{smartphone-nfc-C6cia_37.cjs → smartphone-nfc-DNGSaO8W.cjs} +0 -0
- /package/dist/{snail-BfSPFXoo.cjs → snail-Bvtr5AFS.cjs} +0 -0
- /package/dist/{snowflake-x7sMxW18.cjs → snowflake-BROCsVS4.cjs} +0 -0
- /package/dist/{soap-dispenser-droplet-CNYa380d.cjs → soap-dispenser-droplet-DkcatIH8.cjs} +0 -0
- /package/dist/{sofa-DHyUkc29.cjs → sofa-fy7uXGwu.cjs} +0 -0
- /package/dist/{solar-panel-BEPr8kT2.cjs → solar-panel-Bvmj9w3B.cjs} +0 -0
- /package/dist/{soldLines-7rjLfFef.cjs → soldLines-B4fiy0Ym.cjs} +0 -0
- /package/dist/{soldLines-CYje1E14.js → soldLines-DaAXbn9x.js} +0 -0
- /package/dist/{soup-K8kSmyL-.cjs → soup-BJJCqB9e.cjs} +0 -0
- /package/dist/{space-3HKsrA6X.cjs → space-DsLh4NSn.cjs} +0 -0
- /package/dist/{spade-DS1p5nT4.cjs → spade-Cl6kaOuu.cjs} +0 -0
- /package/dist/{sparkle-Da2GIHGu.cjs → sparkle-2A8JXQZR.cjs} +0 -0
- /package/dist/{sparkles-D9AOywdK.cjs → sparkles-BuYSCeP-.cjs} +0 -0
- /package/dist/{speaker-B_WJYp6k.cjs → speaker-C-F5xoEm.cjs} +0 -0
- /package/dist/{speech-BWC-oq0v.cjs → speech-X5UU3jnS.cjs} +0 -0
- /package/dist/{spell-check-2-CFjaYCBW.cjs → spell-check-2-COCWpHv9.cjs} +0 -0
- /package/dist/{spell-check-BOv_ZpGu.cjs → spell-check-CvrGhYXv.cjs} +0 -0
- /package/dist/{spline-pointer-BN-Rg8lJ.cjs → spline-pointer-Z5fWznEw.cjs} +0 -0
- /package/dist/{spline-CpChEkgg.cjs → spline-ssT2DXQb.cjs} +0 -0
- /package/dist/{split-D4IDfoo5.cjs → split-DiiSD5Dp.cjs} +0 -0
- /package/dist/{spool-Du4g_ekp.cjs → spool-ChAYvS-U.cjs} +0 -0
- /package/dist/{sport-shoe-D6K1KMOF.cjs → sport-shoe-wal9p-o4.cjs} +0 -0
- /package/dist/{spotlight-Gt8w_yCE.cjs → spotlight-zXe5cXRg.cjs} +0 -0
- /package/dist/{spray-can-ynSPCySZ.cjs → spray-can-T-qtmwAg.cjs} +0 -0
- /package/dist/{sprout-D_A0wwGL.cjs → sprout-C61beQC0.cjs} +0 -0
- /package/dist/{square-Bl2-iKXY.cjs → square-3hFF6xuN.cjs} +0 -0
- /package/dist/{square-activity-BWXF0w8Q.cjs → square-activity-CRtK8csY.cjs} +0 -0
- /package/dist/{square-arrow-down-Bsv5x2ur.cjs → square-arrow-down-D57o2txz.cjs} +0 -0
- /package/dist/{square-arrow-down-left-BwayYkRd.cjs → square-arrow-down-left-hvvsgORq.cjs} +0 -0
- /package/dist/{square-arrow-down-right-BgTrsFJP.cjs → square-arrow-down-right-BBO-rwXP.cjs} +0 -0
- /package/dist/{square-arrow-left-D4HoCz6B.cjs → square-arrow-left-EmqRHMpj.cjs} +0 -0
- /package/dist/{square-arrow-out-down-left-BfK7fzF9.cjs → square-arrow-out-down-left-BkdUnbi6.cjs} +0 -0
- /package/dist/{square-arrow-out-down-right-CbXK8hTe.cjs → square-arrow-out-down-right-B9sdpyi9.cjs} +0 -0
- /package/dist/{square-arrow-out-up-left-BGesJEiB.cjs → square-arrow-out-up-left-b2ElkFkO.cjs} +0 -0
- /package/dist/{square-arrow-out-up-right-Dfhjl5QO.cjs → square-arrow-out-up-right-BW-zCfaS.cjs} +0 -0
- /package/dist/{square-arrow-right-B3_Bjmwx.cjs → square-arrow-right-CUDgJPVG.cjs} +0 -0
- /package/dist/{square-arrow-right-enter-CqgH4Op9.cjs → square-arrow-right-enter-BU8uwN_o.cjs} +0 -0
- /package/dist/{square-arrow-right-exit-CyEV7EgI.cjs → square-arrow-right-exit-CrVAC39Z.cjs} +0 -0
- /package/dist/{square-arrow-up-4SdK2moc.cjs → square-arrow-up-CqF7jbeV.cjs} +0 -0
- /package/dist/{square-arrow-up-left-CmFcnB3c.cjs → square-arrow-up-left-CwwgKN-y.cjs} +0 -0
- /package/dist/{square-arrow-up-right-B4ctdirN.cjs → square-arrow-up-right-DIKJ8X90.cjs} +0 -0
- /package/dist/{square-asterisk-CETlmJ8M.cjs → square-asterisk-9tpO4XgL.cjs} +0 -0
- /package/dist/{square-bookmark-DccBCxsW.cjs → square-bookmark-E7SCnfzi.cjs} +0 -0
- /package/dist/{square-bottom-dashed-scissors-S2QOqspH.cjs → square-bottom-dashed-scissors-B4xJj8az.cjs} +0 -0
- /package/dist/{square-centerline-dashed-horizontal-CFGwzdzb.cjs → square-centerline-dashed-horizontal-D-nN7Dxx.cjs} +0 -0
- /package/dist/{square-centerline-dashed-vertical-DYjnjOcq.cjs → square-centerline-dashed-vertical-C4BGV46O.cjs} +0 -0
- /package/dist/{square-chart-gantt-CcvC2A7c.cjs → square-chart-gantt-CCH3ae7x.cjs} +0 -0
- /package/dist/{square-check-OjzgZAhe.cjs → square-check-VRl8IOSa.cjs} +0 -0
- /package/dist/{square-check-big-DLUVpKxh.cjs → square-check-big-BuI56VIm.cjs} +0 -0
- /package/dist/{square-chevron-down-LaXSVurW.cjs → square-chevron-down-BCTaJ9QQ.cjs} +0 -0
- /package/dist/{square-chevron-left-QZMaNbKT.cjs → square-chevron-left-C5gI4voh.cjs} +0 -0
- /package/dist/{square-chevron-right-Bn0ie1W9.cjs → square-chevron-right-CSIVrzaa.cjs} +0 -0
- /package/dist/{square-chevron-up-DraUPVQn.cjs → square-chevron-up-BoCtPfLJ.cjs} +0 -0
- /package/dist/{square-code-ckvNSMs-.cjs → square-code-D-wcAxKr.cjs} +0 -0
- /package/dist/{square-dashed-bottom-CBEtDOZ2.cjs → square-dashed-bottom-BeDN9BIy.cjs} +0 -0
- /package/dist/{square-dashed-bottom-code-X4Lc1s_W.cjs → square-dashed-bottom-code-CBaSiUCY.cjs} +0 -0
- /package/dist/{square-dashed-kanban-DNDnuoQx.cjs → square-dashed-kanban-0UWUb6jV.cjs} +0 -0
- /package/dist/{square-dashed-mouse-pointer-ZhMrDI4V.cjs → square-dashed-mouse-pointer-BC2Hd_3I.cjs} +0 -0
- /package/dist/{square-dashed-plus-b8Nf02yJ.cjs → square-dashed-plus-BKTOLiyj.cjs} +0 -0
- /package/dist/{square-dashed-text-DvcH9YsB.cjs → square-dashed-text-BiiKqCQI.cjs} +0 -0
- /package/dist/{square-dashed-top-solid-CXnNJivf.cjs → square-dashed-top-solid-BnmeXTzO.cjs} +0 -0
- /package/dist/{square-dashed-x-DCMqXnYA.cjs → square-dashed-x-DNlYaryT.cjs} +0 -0
- /package/dist/{square-dashed-x-corner-BCRODJ-r.cjs → square-dashed-x-corner-CXuMOnWQ.cjs} +0 -0
- /package/dist/{square-dashed-DCgHl2iU.cjs → square-dashed-yD0d7ZhF.cjs} +0 -0
- /package/dist/{square-dimensions-V-7qvHjf.cjs → square-dimensions-Bxhbq0Pu.cjs} +0 -0
- /package/dist/{square-divide-C1GA1b8w.cjs → square-divide-y_hafWj5.cjs} +0 -0
- /package/dist/{square-dot-CHS7vWvv.cjs → square-dot-BSXX4DAm.cjs} +0 -0
- /package/dist/{square-equal-BWlhTNqc.cjs → square-equal-DqCsTEfh.cjs} +0 -0
- /package/dist/{square-exclamation-point-BfQLFDUh.cjs → square-exclamation-point-9YUm1R-t.cjs} +0 -0
- /package/dist/{square-function-C817u5Kc.cjs → square-function-B1LCWBRb.cjs} +0 -0
- /package/dist/{square-kanban-8-x_I02I.cjs → square-kanban-C7HVCysy.cjs} +0 -0
- /package/dist/{square-library-cTZ1loPo.cjs → square-library--G4psh5L.cjs} +0 -0
- /package/dist/{square-m-DNpPZ69J.cjs → square-m-BILrxHwi.cjs} +0 -0
- /package/dist/{square-menu-DhMnfHpY.cjs → square-menu-4gp2_H9X.cjs} +0 -0
- /package/dist/{square-minus-DfQxKoV2.cjs → square-minus-C-mFiUHP.cjs} +0 -0
- /package/dist/{square-mouse-pointer-BSX-Jboz.cjs → square-mouse-pointer-BP0vOkDG.cjs} +0 -0
- /package/dist/{square-off-BlOrD7Gs.cjs → square-off-DyJnxbuD.cjs} +0 -0
- /package/dist/{square-parking-TWjjCpWP.cjs → square-parking-Cyocsyb6.cjs} +0 -0
- /package/dist/{square-parking-off-CvHIQCl8.cjs → square-parking-off-BthFlhaS.cjs} +0 -0
- /package/dist/{square-pause-ZlJZDjj5.cjs → square-pause-DpKk4rRE.cjs} +0 -0
- /package/dist/{square-pen-DVmplohw.cjs → square-pen-oRDPhs6g.cjs} +0 -0
- /package/dist/{square-percent-C9rleU8U.cjs → square-percent-BQROXKBp.cjs} +0 -0
- /package/dist/{square-pi-UvhzA_D5.cjs → square-pi-B39dKOGL.cjs} +0 -0
- /package/dist/{square-pilcrow-Dn-T_L_9.cjs → square-pilcrow-s8wlcHxo.cjs} +0 -0
- /package/dist/{square-play-B6KTTn4b.cjs → square-play-CUcMUmKF.cjs} +0 -0
- /package/dist/{square-plus-DJhOXuEb.cjs → square-plus-CS_dWMxe.cjs} +0 -0
- /package/dist/{square-power-BfhJlAf0.cjs → square-power-DuZ3Wy5x.cjs} +0 -0
- /package/dist/{square-radical-C8d5krMl.cjs → square-radical-s1q3J1bx.cjs} +0 -0
- /package/dist/{square-round-corner-Chf14iH9.cjs → square-round-corner-BYlUWBYY.cjs} +0 -0
- /package/dist/{square-scissors-CzvHugpF.cjs → square-scissors-LJkOxSXz.cjs} +0 -0
- /package/dist/{square-sigma-DHdGO02k.cjs → square-sigma-1RtvPz8_.cjs} +0 -0
- /package/dist/{square-slash-BOfU-fO5.cjs → square-slash-CyyZ9wht.cjs} +0 -0
- /package/dist/{square-split-horizontal-861k76z6.cjs → square-split-horizontal-BptBtoJE.cjs} +0 -0
- /package/dist/{square-split-vertical-DXYYWbEp.cjs → square-split-vertical-DIp3otvs.cjs} +0 -0
- /package/dist/{square-square-BxG5D1xm.cjs → square-square-CcajPALD.cjs} +0 -0
- /package/dist/{square-stack-Bq5uRc4U.cjs → square-stack-B6_2JeSW.cjs} +0 -0
- /package/dist/{square-star-DUBdGX7_.cjs → square-star-DEM0Yqyl.cjs} +0 -0
- /package/dist/{square-stop-FIJi8Sj6.cjs → square-stop-DYa7lnV4.cjs} +0 -0
- /package/dist/{square-terminal-Ctj-_5iI.cjs → square-terminal-DTWX94Xu.cjs} +0 -0
- /package/dist/{square-text-BBX-VJ2c.cjs → square-text-DwNnLBMt.cjs} +0 -0
- /package/dist/{square-user-CttpnFDB.cjs → square-user-kEKk70tA.cjs} +0 -0
- /package/dist/{square-user-round-DfCVzRj5.cjs → square-user-round-CF8o5D9c.cjs} +0 -0
- /package/dist/{square-x-BXW-w0kp.cjs → square-x-CV0OaW5P.cjs} +0 -0
- /package/dist/{squares-exclude-DT7qu5PC.cjs → squares-exclude-WGd42748.cjs} +0 -0
- /package/dist/{squares-intersect-C2BR7N40.cjs → squares-intersect-CFobaB-a.cjs} +0 -0
- /package/dist/{squares-subtract-CwDNhgxm.cjs → squares-subtract-Bm9kNgHd.cjs} +0 -0
- /package/dist/{squares-unite-yML6PZiq.cjs → squares-unite-CciB46_q.cjs} +0 -0
- /package/dist/{squircle-1p8fJsL5.cjs → squircle-Cq39AyxV.cjs} +0 -0
- /package/dist/{squircle-dashed-fE9iqDFP.cjs → squircle-dashed-D1yRbhVi.cjs} +0 -0
- /package/dist/{squirrel-vBsVEn_-.cjs → squirrel-DqMYueAP.cjs} +0 -0
- /package/dist/{stamp-9Y5JjLgy.cjs → stamp-Ce78JC2s.cjs} +0 -0
- /package/dist/{star-DxuuXylw.cjs → star-DDNGsuru.cjs} +0 -0
- /package/dist/{star-check-B4oz8pcr.cjs → star-check-D5mB0HwJ.cjs} +0 -0
- /package/dist/{star-half-CA7sJjEj.cjs → star-half-BFC4ARpq.cjs} +0 -0
- /package/dist/{star-minus--qznwanG.cjs → star-minus-CufVz5OA.cjs} +0 -0
- /package/dist/{star-off-R2U14Muz.cjs → star-off-DoJ247sJ.cjs} +0 -0
- /package/dist/{star-plus-Ds3erWfu.cjs → star-plus-38vbR3fE.cjs} +0 -0
- /package/dist/{star-x-CXl2I8iM.cjs → star-x-By_E46_Y.cjs} +0 -0
- /package/dist/{step-back-DH87anzy.cjs → step-back-B3LkTU2Z.cjs} +0 -0
- /package/dist/{step-forward-DKN5aRd1.cjs → step-forward-Dta5fWXb.cjs} +0 -0
- /package/dist/{stethoscope-NscuQhfD.cjs → stethoscope-Bb0G6dO7.cjs} +0 -0
- /package/dist/{sticker-BgJrRiDM.cjs → sticker-BnZ_69im.cjs} +0 -0
- /package/dist/{sticky-note-BPWIDcy2.cjs → sticky-note-BCTjgTiz.cjs} +0 -0
- /package/dist/{sticky-note-check-Vk8OHoQv.cjs → sticky-note-check-5I4wNBRo.cjs} +0 -0
- /package/dist/{sticky-note-minus-CT9L6j33.cjs → sticky-note-minus-itk5p_b2.cjs} +0 -0
- /package/dist/{sticky-note-off-CY4oEEfW.cjs → sticky-note-off-BzBiXCzA.cjs} +0 -0
- /package/dist/{sticky-note-plus-D9FrCzHB.cjs → sticky-note-plus-BKIYbIz-.cjs} +0 -0
- /package/dist/{sticky-note-x-BU4DhP7j.cjs → sticky-note-x-DXgMq4t7.cjs} +0 -0
- /package/dist/{sticky-notes-BUwbBZ8g.cjs → sticky-notes-C5ryzCNJ.cjs} +0 -0
- /package/dist/{stone-lzzb_lYY.cjs → stone-CrJFLhRU.cjs} +0 -0
- /package/dist/{store-DOGjkeI9.cjs → store-vz1xnvc7.cjs} +0 -0
- /package/dist/{stretch-horizontal-omwHsF3a.cjs → stretch-horizontal-DwC6Daqa.cjs} +0 -0
- /package/dist/{stretch-vertical-DP1XscZr.cjs → stretch-vertical-DoJf-Quh.cjs} +0 -0
- /package/dist/{strikethrough-D_voGfb5.cjs → strikethrough-CG9321QF.cjs} +0 -0
- /package/dist/{subscript-CaOuojW_.cjs → subscript-Cp0CseSM.cjs} +0 -0
- /package/dist/{summary-Cmn6Bynf.cjs → summary-BGxoDNUQ.cjs} +0 -0
- /package/dist/{sun-C3SfviNm.cjs → sun-DWT2q9Um.cjs} +0 -0
- /package/dist/{sun-dim-DKOjyG1Y.cjs → sun-dim-BSOP6SVH.cjs} +0 -0
- /package/dist/{sun-medium-D9OFNGJy.cjs → sun-medium-BnL_8ka3.cjs} +0 -0
- /package/dist/{sun-moon-BMVImpzg.cjs → sun-moon-CT92BVHF.cjs} +0 -0
- /package/dist/{sun-snow-CLoeK5z5.cjs → sun-snow-mx3QZBis.cjs} +0 -0
- /package/dist/{sunrise-DM1lBwOp.cjs → sunrise-CV-Vu6CG.cjs} +0 -0
- /package/dist/{sunset-B_I5-Dum.cjs → sunset-7A6RvAM0.cjs} +0 -0
- /package/dist/{superscript-BJl7Talu.cjs → superscript-D9oHdu5o.cjs} +0 -0
- /package/dist/{swatch-book-DHVo92pS.cjs → swatch-book-Ch8KH98H.cjs} +0 -0
- /package/dist/{swiss-franc-D6mo4r01.cjs → swiss-franc-B3_Kc6TZ.cjs} +0 -0
- /package/dist/{switch-camera-B3S756cS.cjs → switch-camera-CVbihgwL.cjs} +0 -0
- /package/dist/{sword-B0_qTxdg.cjs → sword-0aYe5Hax.cjs} +0 -0
- /package/dist/{swords-CBSUyS8C.cjs → swords-DuCimL0t.cjs} +0 -0
- /package/dist/{syringe-DdvrK8ms.cjs → syringe-B8pD9RDL.cjs} +0 -0
- /package/dist/{table-2-SLeH-C1K.cjs → table-2-D-PQQILZ.cjs} +0 -0
- /package/dist/{table-aWO7vavi.cjs → table-DZ_ZTUy-.cjs} +0 -0
- /package/dist/{table-cells-merge-BHyeSPzR.cjs → table-cells-merge-DizbvnqO.cjs} +0 -0
- /package/dist/{table-cells-split-DWtUshCW.cjs → table-cells-split-DBOnVEKw.cjs} +0 -0
- /package/dist/{table-columns-split-JZ2lEXgU.cjs → table-columns-split-BZkClM2N.cjs} +0 -0
- /package/dist/{table-of-contents-Ds3GobN3.cjs → table-of-contents-D6JzR5_O.cjs} +0 -0
- /package/dist/{table-properties-CKM3mU4h.cjs → table-properties-Cbj885WR.cjs} +0 -0
- /package/dist/{table-rows-split-zXiXuQaO.cjs → table-rows-split-BWoM-44T.cjs} +0 -0
- /package/dist/{tablet-CBx8j9Ju.cjs → tablet-C2xGZDqL.cjs} +0 -0
- /package/dist/{tablet-smartphone-BqsRHJ4a.cjs → tablet-smartphone-TPZ0C48I.cjs} +0 -0
- /package/dist/{tablets-CG5PTHih.cjs → tablets-Cxigo9VW.cjs} +0 -0
- /package/dist/{tag-BdQnmble.cjs → tag-BzBOdsYF.cjs} +0 -0
- /package/dist/{tag-plus-BR2znm0m.cjs → tag-plus-CyvDzbVL.cjs} +0 -0
- /package/dist/{tag-x-B02F8rfm.cjs → tag-x-nn8yYlzx.cjs} +0 -0
- /package/dist/{tags-B7RacOtV.cjs → tags-CoUBZBNk.cjs} +0 -0
- /package/dist/{tally-1-asHAOhLN.cjs → tally-1-DEFDUnCS.cjs} +0 -0
- /package/dist/{tally-2-Dx_XCMPd.cjs → tally-2-Capfc-h9.cjs} +0 -0
- /package/dist/{tally-3-DqKLHDc3.cjs → tally-3-Boz7aiak.cjs} +0 -0
- /package/dist/{tally-4-2HC8qItN.cjs → tally-4-B_FEaSHU.cjs} +0 -0
- /package/dist/{tally-5-D1rjCw_u.cjs → tally-5-C3TciOUW.cjs} +0 -0
- /package/dist/{tangent-DGQnGFtI.cjs → tangent-opxZv9DM.cjs} +0 -0
- /package/dist/{target-CKzW_HZN.cjs → target-Cwvjpvb4.cjs} +0 -0
- /package/dist/{telescope-DkQMDLRX.cjs → telescope-Bk3CnsvA.cjs} +0 -0
- /package/dist/{tent-B_QGyaSx.cjs → tent-DlLFHdEr.cjs} +0 -0
- /package/dist/{tent-tree-CYaJVkLK.cjs → tent-tree-DtjpTfrH.cjs} +0 -0
- /package/dist/{terminal-Cm6nEHgA.cjs → terminal-Bf3IS5B4.cjs} +0 -0
- /package/dist/{test-tube-C6Uj5C_F.cjs → test-tube-CyaJFQhu.cjs} +0 -0
- /package/dist/{test-tube-diagonal-CqWdRlhP.cjs → test-tube-diagonal-Bqm2RbcY.cjs} +0 -0
- /package/dist/{test-tubes-z-gtSmQR.cjs → test-tubes-BLaqU4Jp.cjs} +0 -0
- /package/dist/{text-align-center-4Y6TjC4u.cjs → text-align-center-BIJULLyz.cjs} +0 -0
- /package/dist/{text-align-end-DxbOvQzc.cjs → text-align-end-CklNrA2a.cjs} +0 -0
- /package/dist/{text-align-justify-CTN9HxU_.cjs → text-align-justify-C4j4BZbg.cjs} +0 -0
- /package/dist/{text-align-start-BpQgAfZw.cjs → text-align-start-BJT1nlIX.cjs} +0 -0
- /package/dist/{text-cursor-C4BSz2tj.cjs → text-cursor-CaOgOlwZ.cjs} +0 -0
- /package/dist/{text-cursor-input-womTUZ1x.cjs → text-cursor-input-BFkTa8Q8.cjs} +0 -0
- /package/dist/{text-initial-CpoV56Sk.cjs → text-initial-BIhx407V.cjs} +0 -0
- /package/dist/{text-quote-BzDJBfke.cjs → text-quote-BqHmd07e.cjs} +0 -0
- /package/dist/{text-search-BY7_nQ-0.cjs → text-search-BRB5BW8Y.cjs} +0 -0
- /package/dist/{text-wrap-DgX_MpR_.cjs → text-wrap-MgWNcf8E.cjs} +0 -0
- /package/dist/{theater-Bcbb1AdB.cjs → theater-C2MJujnr.cjs} +0 -0
- /package/dist/{thermometer-Cor-Fo-Y.cjs → thermometer-CckhrOlF.cjs} +0 -0
- /package/dist/{thermometer-snowflake-h5tUeXEz.cjs → thermometer-snowflake-Ar3F_aJ5.cjs} +0 -0
- /package/dist/{thermometer-sun-BQbqKTZv.cjs → thermometer-sun-BYAjOYO5.cjs} +0 -0
- /package/dist/{thumbs-down-D2VJVvNC.cjs → thumbs-down-C2jWp10m.cjs} +0 -0
- /package/dist/{thumbs-up-DZVGsoOZ.cjs → thumbs-up-CYgsEens.cjs} +0 -0
- /package/dist/{tic-tac-toe-CBLR4aYo.cjs → tic-tac-toe-Cq48mulG.cjs} +0 -0
- /package/dist/{ticket-C_0AtRYI.cjs → ticket-CSgkS8II.cjs} +0 -0
- /package/dist/{ticket-check-CDkFWxZb.cjs → ticket-check-DZwlWIIv.cjs} +0 -0
- /package/dist/{ticket-minus-CdpyeUNU.cjs → ticket-minus-BRHGst0i.cjs} +0 -0
- /package/dist/{ticket-percent-BRq7mjwg.cjs → ticket-percent-BBtIdvt3.cjs} +0 -0
- /package/dist/{ticket-plus-B45EDFNL.cjs → ticket-plus-DImDdouv.cjs} +0 -0
- /package/dist/{ticket-slash-k2E3eTtS.cjs → ticket-slash-_3igTXcg.cjs} +0 -0
- /package/dist/{ticket-x-76bMXUro.cjs → ticket-x-CuKlcWjl.cjs} +0 -0
- /package/dist/{tickets-CJJew4-F.cjs → tickets-DDQyO5SE.cjs} +0 -0
- /package/dist/{tickets-plane-DLZ_G4qE.cjs → tickets-plane-xAOtfcvp.cjs} +0 -0
- /package/dist/{timeline-CwSykFa1.cjs → timeline-CTtW5ZbI.cjs} +0 -0
- /package/dist/{timer-LYHaUZQA.cjs → timer-DwVz46Nr.cjs} +0 -0
- /package/dist/{timer-off-Cqczs4nY.cjs → timer-off-C5_PIfzZ.cjs} +0 -0
- /package/dist/{timer-reset-XVwxF7Fu.cjs → timer-reset-pkJgAeKq.cjs} +0 -0
- /package/dist/{toggle-left-CYJuEBCv.cjs → toggle-left-CWtPS42I.cjs} +0 -0
- /package/dist/{toggle-right-7zUGZEAJ.cjs → toggle-right-CCyJbAug.cjs} +0 -0
- /package/dist/{toilet-CI8U0Kmx.cjs → toilet-BbAvPMv6.cjs} +0 -0
- /package/dist/{tool-case-Dm1BiLkw.cjs → tool-case-XB31pXVL.cjs} +0 -0
- /package/dist/{toolbox-Dx892R-G.cjs → toolbox-JM53qTib.cjs} +0 -0
- /package/dist/{toothbrush-BcoG-NOJ.cjs → toothbrush-DBIwe6nR.cjs} +0 -0
- /package/dist/{toothbrush-sparkles-DkvlhUjq.cjs → toothbrush-sparkles-CP77Ktrv.cjs} +0 -0
- /package/dist/{tornado-mWCHE0iU.cjs → tornado-CGaPdAXc.cjs} +0 -0
- /package/dist/{torus-gGUrk1cE.cjs → torus-C4VonO7Q.cjs} +0 -0
- /package/dist/{touchpad-off-CIHUWkaM.cjs → touchpad-off-Bh6Wxw5U.cjs} +0 -0
- /package/dist/{touchpad-bUQ3lgNu.cjs → touchpad-zzdMxl3s.cjs} +0 -0
- /package/dist/{towel-rack-oF5-RxX9.cjs → towel-rack-ClSJZKCb.cjs} +0 -0
- /package/dist/{tower-control-CPlHyvMm.cjs → tower-control-BAEDapw0.cjs} +0 -0
- /package/dist/{toy-brick-DrGR8MVq.cjs → toy-brick-C1nIUBRe.cjs} +0 -0
- /package/dist/{tractor-DSY0xQN2.cjs → tractor-D_N0fH7n.cjs} +0 -0
- /package/dist/{traffic-cone-vmIXK1b_.cjs → traffic-cone-CT_IqWHf.cjs} +0 -0
- /package/dist/{trailer-B-SPFRa8.cjs → trailer-CX6OSQnC.cjs} +0 -0
- /package/dist/{train-front-CpJY4_mG.cjs → train-front-CSBky3is.cjs} +0 -0
- /package/dist/{train-front-tunnel-DoU0G2gR.cjs → train-front-tunnel-BfKS9FyY.cjs} +0 -0
- /package/dist/{train-track-zTbeXpB-.cjs → train-track-CwmcOg2-.cjs} +0 -0
- /package/dist/{tram-front-BaZwNA0Z.cjs → tram-front-DEYV1sJB.cjs} +0 -0
- /package/dist/{transgender-DFKCJG3X.cjs → transgender-CpK1RVBD.cjs} +0 -0
- /package/dist/{trash-Do6OvXcl.cjs → trash-CnUVTcwK.cjs} +0 -0
- /package/dist/{trash-Dr-ViALd.cjs → trash-CqgJZKKm.cjs} +0 -0
- /package/dist/{trash-off-ClYYVXeo.cjs → trash-off-BMDTY3QU.cjs} +0 -0
- /package/dist/{tree-deciduous-Cw8jVbzO.cjs → tree-deciduous-BVYwhyCx.cjs} +0 -0
- /package/dist/{tree-palm-DX6MPr1N.cjs → tree-palm-D5bdgbx1.cjs} +0 -0
- /package/dist/{tree-pine-Bb-FBlaF.cjs → tree-pine-CAl-u12y.cjs} +0 -0
- /package/dist/{trees-B1MnYycH.cjs → trees-BzzAHrwu.cjs} +0 -0
- /package/dist/{trending-down-CVfrl-B2.cjs → trending-down-CNpTD0yj.cjs} +0 -0
- /package/dist/{trending-up-B0uZ8Xgj.cjs → trending-up-DEngUjWR.cjs} +0 -0
- /package/dist/{trending-up-down-CeNrgAH1.cjs → trending-up-down-CRIT5ep7.cjs} +0 -0
- /package/dist/{triangle-D6drO7BL.cjs → triangle-BoVawg2e.cjs} +0 -0
- /package/dist/{triangle-alert-Bzi-bWk1.cjs → triangle-alert-BfMSFuSS.cjs} +0 -0
- /package/dist/{triangle-dashed-ChifIivr.cjs → triangle-dashed-DbYS-chI.cjs} +0 -0
- /package/dist/{triangle-right-CsZKesm6.cjs → triangle-right-C4HqG1zU.cjs} +0 -0
- /package/dist/{triangles-centerline-dashed-horizontal-CgNdd343.cjs → triangles-centerline-dashed-horizontal-BShREGaF.cjs} +0 -0
- /package/dist/{triangles-centerline-dashed-vertical-D9J2Livr.cjs → triangles-centerline-dashed-vertical-C0iXA6ez.cjs} +0 -0
- /package/dist/{trophy-BA8pxhmi.cjs → trophy-DKfLOc7L.cjs} +0 -0
- /package/dist/{truck-DiLuqCKj.cjs → truck-ChnB3gdd.cjs} +0 -0
- /package/dist/{truck-electric-BwG3NEIK.cjs → truck-electric-Dm28y2M6.cjs} +0 -0
- /package/dist/{tube-lotion-DwBrb2zf.cjs → tube-lotion-yNBiXv3P.cjs} +0 -0
- /package/dist/{turkish-lira-BIf9PYat.cjs → turkish-lira-Cz3P2q_n.cjs} +0 -0
- /package/dist/{turntable-DsAJ_QK_.cjs → turntable-TEZLSuQJ.cjs} +0 -0
- /package/dist/{turtle-DxWJ4UEP.cjs → turtle-DM_dXn9T.cjs} +0 -0
- /package/dist/{tv-minimal-se8LSmYL.cjs → tv-minimal-DM_ksJmQ.cjs} +0 -0
- /package/dist/{tv-minimal-play-DvAWtdEW.cjs → tv-minimal-play-B4HYrCH6.cjs} +0 -0
- /package/dist/{tv-CxFWmVzk.cjs → tv-pByqbTXR.cjs} +0 -0
- /package/dist/{type-BfCI-Abp.cjs → type-CnQU22Oq.cjs} +0 -0
- /package/dist/{type-outline-Sh3TkVHv.cjs → type-outline-BkRpcJrT.cjs} +0 -0
- /package/dist/{umbrella-Bs42i5BJ.cjs → umbrella-BxkWyZ-k.cjs} +0 -0
- /package/dist/{umbrella-off-DS7zGVj2.cjs → umbrella-off-D2Lv1MZl.cjs} +0 -0
- /package/dist/{underline-5zkOdUFA.cjs → underline-Ct1CBruh.cjs} +0 -0
- /package/dist/{undo-2-RIe_ldfA.cjs → undo-2-CQWv5LmS.cjs} +0 -0
- /package/dist/{undo-CkUREhX5.cjs → undo-D66Cyil5.cjs} +0 -0
- /package/dist/{undo-dot-CXusdP_7.cjs → undo-dot-BLmx2gSx.cjs} +0 -0
- /package/dist/{unfold-horizontal-CBlxiyA4.cjs → unfold-horizontal-DxAM-i9l.cjs} +0 -0
- /package/dist/{unfold-vertical-C7wQ2vtF.cjs → unfold-vertical-BvAxVoXt.cjs} +0 -0
- /package/dist/{ungroup-YgvqoFby.cjs → ungroup-BmZfSsGS.cjs} +0 -0
- /package/dist/{university-BZgdaxgi.cjs → university-mt--uOck.cjs} +0 -0
- /package/dist/{unlink-2-D9xjwCmw.cjs → unlink-2-xS-yu36k.cjs} +0 -0
- /package/dist/{unlink-DVhm7UA7.cjs → unlink-Ni08GGQ6.cjs} +0 -0
- /package/dist/{unplug-CyVJWk5U.cjs → unplug-MPNz1_pq.cjs} +0 -0
- /package/dist/{upload-DUO03mkN.cjs → upload-zkYtQcYx.cjs} +0 -0
- /package/dist/{usb-B7jbjyEr.cjs → usb-BQuLLd5M.cjs} +0 -0
- /package/dist/{usb-c-port-DPmdhpn0.cjs → usb-c-port-B3EcEzGj.cjs} +0 -0
- /package/dist/{useIsPhone-5Z6DF-pu.cjs → useIsPhone-CVlG9oSr.cjs} +0 -0
- /package/dist/{useIsPhone-BPoz6ZMi.js → useIsPhone-DIylubAF.js} +0 -0
- /package/dist/{user-BBSy-LsC.cjs → user-BZ2YK5QS.cjs} +0 -0
- /package/dist/{user-check-B91g-mvA.cjs → user-check-CxTnxPpY.cjs} +0 -0
- /package/dist/{user-cog-D_2P3nbP.cjs → user-cog-tfuIgvtj.cjs} +0 -0
- /package/dist/{user-group-DPkCVHWT.cjs → user-group-ZToueaAq.cjs} +0 -0
- /package/dist/{user-key-BWht4-VD.cjs → user-key-BHrvztQx.cjs} +0 -0
- /package/dist/{user-lock-DpWLqdV7.cjs → user-lock-B9b8uaez.cjs} +0 -0
- /package/dist/{user-minus--iqfK9r1.cjs → user-minus-qY2lqxNx.cjs} +0 -0
- /package/dist/{user-pen-DC4XICvn.cjs → user-pen-CgRUbpaf.cjs} +0 -0
- /package/dist/{user-plus-ChJvC2xH.cjs → user-plus-DFPHQYNZ.cjs} +0 -0
- /package/dist/{user-round-CC84i4WJ.cjs → user-round-BVZzIxsx.cjs} +0 -0
- /package/dist/{user-round-arrow-left-Du0fNX2S.cjs → user-round-arrow-left-Bcj3NC4g.cjs} +0 -0
- /package/dist/{user-round-check-KoGlGq2R.cjs → user-round-check-LiAWn8O9.cjs} +0 -0
- /package/dist/{user-round-cog-8TAajMY8.cjs → user-round-cog-BmzhLW9F.cjs} +0 -0
- /package/dist/{user-round-group-X3q6pxPM.cjs → user-round-group-sMwNV0U4.cjs} +0 -0
- /package/dist/{user-round-key-B3I-i8i6.cjs → user-round-key-CwU_Y1Hg.cjs} +0 -0
- /package/dist/{user-round-minus-DyTLlQgl.cjs → user-round-minus-CgWS0JBY.cjs} +0 -0
- /package/dist/{user-round-pen-gCbU7r-z.cjs → user-round-pen-B8HNeade.cjs} +0 -0
- /package/dist/{user-round-plus-z_RCPsaG.cjs → user-round-plus-BJEHZUzR.cjs} +0 -0
- /package/dist/{user-round-search-DXGdeXqm.cjs → user-round-search-CjTsemQA.cjs} +0 -0
- /package/dist/{user-round-x-DKNJIW7d.cjs → user-round-x-8HJ_EB1C.cjs} +0 -0
- /package/dist/{user-search-BSLmMs9n.cjs → user-search-CYe8_YRo.cjs} +0 -0
- /package/dist/{user-shield-D3VXCCrt.cjs → user-shield-BMik-vj9.cjs} +0 -0
- /package/dist/{user-star-H7Se-ZKU.cjs → user-star-BrJvzttj.cjs} +0 -0
- /package/dist/{user-x-ChP2Qfd0.cjs → user-x-BFq9SuWw.cjs} +0 -0
- /package/dist/{users-Xp8_IeEY.cjs → users-B8wAo0zw.cjs} +0 -0
- /package/dist/{users-round-C9IFDeSh.cjs → users-round-CjHOJOfH.cjs} +0 -0
- /package/dist/{utensils-CtmxxSNt.cjs → utensils-Dg98faT_.cjs} +0 -0
- /package/dist/{utensils-crossed-ByvACncS.cjs → utensils-crossed-_-q5yH50.cjs} +0 -0
- /package/dist/{utility-pole-DBQBQswU.cjs → utility-pole-Blli2RPV.cjs} +0 -0
- /package/dist/{van-Do9HeEqE.cjs → van-CdKghyZv.cjs} +0 -0
- /package/dist/{variable-Du9T_2mS.cjs → variable-1HkacnOO.cjs} +0 -0
- /package/dist/{vault-CfmjhQlh.cjs → vault-01vWBrvx.cjs} +0 -0
- /package/dist/{vector-polygon-BlD0zOPn.cjs → vector-polygon-Cz2Rg1jk.cjs} +0 -0
- /package/dist/{vector-square-C4mSao-6.cjs → vector-square-ODyo8hLK.cjs} +0 -0
- /package/dist/{vegan-CiaA1g6c.cjs → vegan-d-t-ooTc.cjs} +0 -0
- /package/dist/{venetian-mask-Mkff_SIG.cjs → venetian-mask-xIYyutKC.cjs} +0 -0
- /package/dist/{venus-DqFA1Bgx.cjs → venus-Bx7OGErV.cjs} +0 -0
- /package/dist/{venus-and-mars-CTsy5Wuq.cjs → venus-and-mars-neZRmWTL.cjs} +0 -0
- /package/dist/{vibrate-DNZWTnvl.cjs → vibrate-CHHw3gQo.cjs} +0 -0
- /package/dist/{vibrate-off-Qs4MbBO_.cjs → vibrate-off-CqHsbCIe.cjs} +0 -0
- /package/dist/{video-B9SZ0QTk.cjs → video-dgVV9eWd.cjs} +0 -0
- /package/dist/{video-off-ttVvSBQi.cjs → video-off-B3PubFRf.cjs} +0 -0
- /package/dist/{videotape-Buq0yb_g.cjs → videotape-COAhbvQy.cjs} +0 -0
- /package/dist/{view-VAmnfd-9.cjs → view-D2iPQu5E.cjs} +0 -0
- /package/dist/{virus-898sKIVs.cjs → virus-DT6vcoBZ.cjs} +0 -0
- /package/dist/{virus-off-BIDganj1.cjs → virus-off-CCpIM5nz.cjs} +0 -0
- /package/dist/{voicemail-DZMX5r6X.cjs → voicemail-D4v8Hw8G.cjs} +0 -0
- /package/dist/{volleyball-DM82fWgd.cjs → volleyball-oXjMvYZe.cjs} +0 -0
- /package/dist/{volume-1-6213Y1_8.cjs → volume-1-Dk2NtFPA.cjs} +0 -0
- /package/dist/{volume-2-BXjEU9B-.cjs → volume-2-DMR16rpG.cjs} +0 -0
- /package/dist/{volume-C9kdLwP1.cjs → volume-DyA3uibn.cjs} +0 -0
- /package/dist/{volume-off-7faqP2XN.cjs → volume-off-ClP4uVr5.cjs} +0 -0
- /package/dist/{volume-x-sWHcmGHv.cjs → volume-x-BNIl98CW.cjs} +0 -0
- /package/dist/{vote-n8ENlTvS.cjs → vote-svyqyPSf.cjs} +0 -0
- /package/dist/{wallet-D6P7MPrj.cjs → wallet--eFuGNfz.cjs} +0 -0
- /package/dist/{wallet-cards-wWAU-MVn.cjs → wallet-cards-DSDEZCLo.cjs} +0 -0
- /package/dist/{wallet-minimal-8zqPnTK2.cjs → wallet-minimal-C7ytG8Vk.cjs} +0 -0
- /package/dist/{wallpaper-CMIT9adb.cjs → wallpaper-C60BkWAh.cjs} +0 -0
- /package/dist/{wand-DVEDT1yF.cjs → wand-Diw4-EuE.cjs} +0 -0
- /package/dist/{wand-sparkles-CT_d-qsO.cjs → wand-sparkles-DKIdUOCd.cjs} +0 -0
- /package/dist/{warehouse-ZRGyDckI.cjs → warehouse-CgtSquOB.cjs} +0 -0
- /package/dist/{washing-machine-DfZ-ZFAM.cjs → washing-machine-Dyntnl5W.cjs} +0 -0
- /package/dist/{watch-od294Jpe.cjs → watch-BhxQlGGD.cjs} +0 -0
- /package/dist/{waves-arrow-down-DeTk18Rh.cjs → waves-arrow-down-4vxbb5lL.cjs} +0 -0
- /package/dist/{waves-arrow-up-CZCkm65P.cjs → waves-arrow-up-BZRNRgzt.cjs} +0 -0
- /package/dist/{waves-horizontal-Degaewwq.cjs → waves-horizontal-BGDRZ9w-.cjs} +0 -0
- /package/dist/{waves-ladder-Dx1yp4p_.cjs → waves-ladder-CW29H4tl.cjs} +0 -0
- /package/dist/{waves-vertical-hb_7YoeP.cjs → waves-vertical-Bg_H6oqp.cjs} +0 -0
- /package/dist/{waypoints-DAsMZLra.cjs → waypoints-C3RkT64O.cjs} +0 -0
- /package/dist/{webcam-D5GEI-Ej.cjs → webcam-BXFpj_Z-.cjs} +0 -0
- /package/dist/{webcam-off-Cpu2kQ23.cjs → webcam-off-DEmzAr4R.cjs} +0 -0
- /package/dist/{webhook-iZmKPI6B.cjs → webhook-DNwKr-UY.cjs} +0 -0
- /package/dist/{webhook-off-CwEQblfN.cjs → webhook-off-6y9OPX1c.cjs} +0 -0
- /package/dist/{weight-CizAlWqx.cjs → weight-BActL7b6.cjs} +0 -0
- /package/dist/{weight-tilde-BqrXICdD.cjs → weight-tilde-CKPNbPPw.cjs} +0 -0
- /package/dist/{wheat-C6smkjnS.cjs → wheat-CtI0TTXX.cjs} +0 -0
- /package/dist/{wheat-off-D8IcMvLI.cjs → wheat-off-B8XO-CuX.cjs} +0 -0
- /package/dist/{whistle-H4j6-3bB.cjs → whistle-H5fNEK7F.cjs} +0 -0
- /package/dist/{whole-word-CS7Ro2hp.cjs → whole-word-Vo9A4JMh.cjs} +0 -0
- /package/dist/{wifi-DpMxm3uc.cjs → wifi-Dw58LPf_.cjs} +0 -0
- /package/dist/{wifi-cog-BLOHwQFb.cjs → wifi-cog-CaGU12na.cjs} +0 -0
- /package/dist/{wifi-high-WQxY9dQd.cjs → wifi-high-DUpAkrra.cjs} +0 -0
- /package/dist/{wifi-low-CmkeZgdo.cjs → wifi-low-Bu8QnPE7.cjs} +0 -0
- /package/dist/{wifi-off-8OorJluH.cjs → wifi-off-C0AjdjiO.cjs} +0 -0
- /package/dist/{wifi-pen-DNJT5sG-.cjs → wifi-pen-CqmYjNBm.cjs} +0 -0
- /package/dist/{wifi-sync-CcgXBXfw.cjs → wifi-sync-BZ8002QF.cjs} +0 -0
- /package/dist/{wifi-zero-wI6pdf8k.cjs → wifi-zero-DPnqF9R1.cjs} +0 -0
- /package/dist/{wind-i17dTIPr.cjs → wind-CmFB8HJn.cjs} +0 -0
- /package/dist/{wind-arrow-down-D5UzjEZL.cjs → wind-arrow-down-B9QSfTdw.cjs} +0 -0
- /package/dist/{wine-BJlRw8H_.cjs → wine-GI7nq69Y.cjs} +0 -0
- /package/dist/{wine-off-B0mKmfnn.cjs → wine-off-BfdBUmqm.cjs} +0 -0
- /package/dist/{workflow-DWBfeX4W.cjs → workflow-BdXSblSV.cjs} +0 -0
- /package/dist/{worm-2f5yn6r2.cjs → worm-CARRkpPD.cjs} +0 -0
- /package/dist/{wrench-DYG7pQ9o.cjs → wrench-CNUmgvXR.cjs} +0 -0
- /package/dist/{wrench-off-04PV0o-3.cjs → wrench-off-DlGlcLU_.cjs} +0 -0
- /package/dist/{x-1MMgI3dH.cjs → x-3gBSyyiG.cjs} +0 -0
- /package/dist/{x-line-top-S9NK4iWu.cjs → x-line-top-KkMzhC4T.cjs} +0 -0
- /package/dist/{zap-CwEOC0z1.cjs → zap-DY0C8t0B.cjs} +0 -0
- /package/dist/{zap-off-CAIMP-XG.cjs → zap-off-_b3XWF_P.cjs} +0 -0
- /package/dist/{zodiac-aquarius-BDy-RCbx.cjs → zodiac-aquarius-_s-m0v6a.cjs} +0 -0
- /package/dist/{zodiac-aries-Dm8dIOaG.cjs → zodiac-aries-BwMQ5hCU.cjs} +0 -0
- /package/dist/{zodiac-cancer-BivYdaC7.cjs → zodiac-cancer-CZXLZFKb.cjs} +0 -0
- /package/dist/{zodiac-capricorn-D2vEd82c.cjs → zodiac-capricorn-qHd27xoK.cjs} +0 -0
- /package/dist/{zodiac-gemini-DtVb_HXI.cjs → zodiac-gemini-D-SrENMc.cjs} +0 -0
- /package/dist/{zodiac-leo-Bu2sYKGE.cjs → zodiac-leo-CmgFErF2.cjs} +0 -0
- /package/dist/{zodiac-libra-8kSZH2y5.cjs → zodiac-libra-9_p1j880.cjs} +0 -0
- /package/dist/{zodiac-ophiuchus-DGmNMKA7.cjs → zodiac-ophiuchus-cLSL71WH.cjs} +0 -0
- /package/dist/{zodiac-pisces-DB1b8DdI.cjs → zodiac-pisces-BOKdrr-C.cjs} +0 -0
- /package/dist/{zodiac-sagittarius-DFKN5k4N.cjs → zodiac-sagittarius-NTgZJYUc.cjs} +0 -0
- /package/dist/{zodiac-scorpio-CHgC2e1o.cjs → zodiac-scorpio-L_tyn5Pr.cjs} +0 -0
- /package/dist/{zodiac-taurus-0w-N6ISu.cjs → zodiac-taurus-B3Enikjt.cjs} +0 -0
- /package/dist/{zodiac-virgo-pnUl3H6N.cjs → zodiac-virgo-Ccd9kT-s.cjs} +0 -0
- /package/dist/{zoom-in-C0oGx9-2.cjs → zoom-in-dMxua5um.cjs} +0 -0
- /package/dist/{zoom-out-DMpNeUGw.cjs → zoom-out-CosHimdr.cjs} +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./chunk-CiTBaPhY.cjs`),t=require(`./forms-CmNeTETW.cjs`),n=require(`./PageTitle-DnKubvLh.cjs`),r=require(`./TimeZoneField-6U4vMw0A.cjs`),i=require(`./DashboardNav-MLvb0WtR.cjs`),a=require(`./Trouble-DblHsJ7H.cjs`),o=require(`./schedule-BAea6q8_.cjs`),s=require(`./chevron-down-lyDK1rfL.cjs`),c=require(`./TemplateDrive-DeYYTiyH.cjs`),l=require(`./arrow-left-C39sNUA7.cjs`),u=require(`./arrow-right-CGvbxks5.cjs`),d=require(`./scheduleData-di4j8hyk.cjs`),f=require(`./calendar-clock-CpKfIWcb.cjs`),p=require(`./BookingCalendar-ClCN9_5s.cjs`),m=require(`./EventCard-BFte-u8o.cjs`),h=require(`./ContactPopup-DFz_648S.cjs`),g=require(`./chevron-left-bLpwOYcm.cjs`),_=require(`./SupportBar-D0GTezeq.cjs`),v=require(`./FileViewerPopup-DkG-wXJJ.cjs`),y=require(`./VideoPlayer-DV53Zvu7.cjs`),b=require(`./ProviderMark-D__7RLMw.cjs`),x=require(`./FormNote-HkXhcfQx.cjs`),S=require(`./arrivalRoads-Bj7kRpIj.cjs`),C=require(`./x-Bfx9jBin.cjs`),w=require(`./lock-Baxbn9qw.cjs`),T=require(`./EmailParts-BE3FSWg_.cjs`),E=require(`./plus-zsWFCu4F.cjs`),D=require(`./send-pZ-18Elb.cjs`),O=require(`./shield-check-9QLjYwlp.cjs`),k=require(`./Said-Cz3mjKHH.cjs`),A=require(`./trash-Dr-ViALd.cjs`);require(`./user-round-AeklQuWE.cjs`);const j=require(`./contentFallback-DNHWZG0l.cjs`),M=require(`./Popup-BNscbiKZ.cjs`),N=require(`./Button-BXl8leQ5.cjs`),P=require(`./Loader-Cb8OOXbo.cjs`),ee=require(`./mediaKind-CxyIb_ys.cjs`);require(`./bookingHold-Bmvef0WV.cjs`);const F=require(`./address-JI7Os8RI.cjs`),te=require(`./formPage-Ba28BJud.cjs`),I=require(`./email-CYRiGM_W.cjs`),L=require(`./registrationFields-Bf9hsZE-.cjs`),ne=require(`./roles-EHMH7Ls2.cjs`),R=require(`./notices-CpLQvElz.cjs`),z=require(`./transactions-Dy0r3255.cjs`),re=require(`./tabAudience-BJhBbPnK.cjs`),ie=require(`./ConfirmModal-BgztMPdR.cjs`),B=require(`./recordsKey-vkJNhd8J.cjs`),V=require(`./bookingPages-B_GukoZw.cjs`),ae=require(`./pageFiles-C6inu-vO.cjs`),oe=require(`./recordLock-2EYkwefc.cjs`),H=require(`./AccessNotice-Bu6dwQaS.cjs`),se=require(`./Setup-Bn_27tcY.cjs`),U=require(`./paidInFull-CblGg_dC.cjs`),ce=require(`./ManagePlanButton-Cdm0mjFe.cjs`),W=require(`./recordPrice-B5ol9bfb.cjs`),le=require(`./people-bX5zI1YC.cjs`),G=require(`./PhoneInputField-BwyWW9l1.cjs`);let K=require(`react`);K=e.a(K,1);let q=require(`react/jsx-runtime`),ue=require(`firebase/auth`),J=require(`firebase/firestore`),de=require(`firebase/storage`),Y=require(`react-router-dom`),fe=require(`react-dom`);var pe=Object.assign({"./contactForm.config.ts":t.o,"./supportForm.config.ts":t.i}),me={};for(let e in pe){let t=pe[e];if(!t)continue;let n=null;for(let e in t)if(e.endsWith(`FormConfig`)||e.endsWith(`Config`)){n=t[e];break}if(!n&&t?.default&&(n=t.default),!n)continue;let r=e.replace(`./`,``).replace(`.config.ts`,``).replace(/Form$/,``).toLowerCase(),i={...n,systemName:n.systemName||r};me[r]=i,i.systemName&&(me[i.systemName]=i,me[i.systemName.toLowerCase()]=i)}if(typeof window<`u`){let e=window.__FBOS_FORMS__||{};window.__FBOS_FORMS__={...me,...e}}var he=Object.assign({}),ge={};for(let e in he){let t=he[e];if(!t)continue;let n=null;for(let e in t)if(e.endsWith(`Config`)){n=t[e];break}if(!n&&t?.default&&(n=t.default),!n)continue;let r=e.replace(`./`,``).replace(`.config.ts`,``).replace(/Registration$/,``).toLowerCase();ge[r]=n}if(typeof window<`u`){let e=window.__FBOS_REGISTRATION__||{};window.__FBOS_REGISTRATION__={...ge,...e}}var _e=Object.assign({}),X=Object.assign({}),ve={};for(let e in _e){let t=_e[e];if(!t)continue;let n=null;for(let e in t)if(e.endsWith(`TabConfig`)||e.endsWith(`Config`)){n=t[e];break}if(!n&&t?.default&&(n=t.default),!n)continue;let r=e.replace(`./`,``).replace(`.config.ts`,``).replace(/Tab$/,``).toLowerCase(),i={config:{...n,pageId:n.pageId||r,tabName:n.tabName||n.title||r},isPublic:!1};ve[r]=i,i.config.pageId&&(ve[i.config.pageId]=i,ve[i.config.pageId.toLowerCase()]=i)}for(let e in X){let t=X[e];if(!t)continue;let n=null;for(let e in t)if(e.endsWith(`PageConfig`)||e.endsWith(`Config`)){n=t[e];break}if(!n&&t?.default&&(n=t.default),!n)continue;let r=e.replace(`./`,``).replace(`.config.ts`,``).replace(/Page$/,``).toLowerCase(),i={config:{...n,pageId:n.pageId||r,pageName:n.pageName||n.title||r},isPublic:!0};ve[r]=i,i.config.pageId&&(ve[i.config.pageId]=i,ve[i.config.pageId.toLowerCase()]=i)}if(typeof window<`u`){let e=window.__FBOS_PAGES__||{};window.__FBOS_PAGES__={...ve,...e}}var ye=`.fbos-content-slot, .fbos-home-slot`,be=`[data-picture]`,xe=`[data-fbos-own]`,Z=/url\(\s*['"]?\s*(?:https?:|data:image|\/|[\w./-]+\.(?:png|jpe?g|webp|avif|gif|svg))/i,Q={img:`This page draws a picture with a plain <img>, so it holds no space while it loads, arrives in pieces down the screen, and downloads the full-size photograph however small the box is.`,background:`This page draws a picture as a background, so it holds no space while it loads, says nothing to somebody who cannot see it, and downloads the full-size photograph however small the box is.`},Se=`Paste this to your assistant: "Every picture on this page must use <Picture src={…} alt="…" className="…" /> imported from the app, not a plain <img> or a background image."`,Ce=e=>`${Q[e]} ${Se}`,we=e=>!!e.closest(ye)&&!e.closest(`${be}, ${xe}`);function Te(e){let t=new Set;for(let n of e.querySelectorAll(`img`))if(we(n)){t.add(`img`);break}for(let n of e.querySelectorAll(`[style*="background"]`)){let e=n.getAttribute(`style`)||``;if(Z.test(e)&&we(n)){t.add(`background`);break}}return t}function Ee(e,t,n=()=>``){if(typeof MutationObserver>`u`)return()=>{};let r=new Set,i=0,a=()=>{let i=n();for(let n of Te(e)){let e=`${i}#${n}`;r.has(e)||(r.add(e),t(n,Ce(n)))}},o=e=>e.some(e=>e.type===`childList`||e.attributeName===`src`||(e.target.getAttribute?.(`style`)||``).includes(`url(`)),s=()=>{i||=requestAnimationFrame(()=>{i=0,a()})};a();let c=new MutationObserver(e=>{o(e)&&s()});return c.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`style`,`src`]}),()=>{c.disconnect(),i&&cancelAnimationFrame(i)}}var De=()=>{document.querySelectorAll(`.fbos-content-slot style, .fbos-home-slot style`).forEach(e=>{e.disabled&&e.media===`not all`||(e.disabled=!0,e.media=`not all`,typeof console<`u`&&console.warn(`FirebaseOS: a <style> tag inside a content file is global CSS and was disabled — style with theme classes (bg-background, text-foreground, glass-panel, btn-primary) instead.`))})},Oe=e=>{for(let t=e;t;t=t.parentElement){if(t.classList.contains(`fbos-content-slot`)||t.classList.contains(`fbos-home-slot`))return!1;if(getComputedStyle(t).position===`fixed`)return!0}return!1},ke=()=>{if(typeof window>`u`)return;let e=window.innerHeight*.6;document.querySelectorAll(`.fbos-content-slot *, .fbos-home-slot *`).forEach(t=>{if(!t.clientHeight||t.clientHeight<e||t.scrollHeight<=t.clientHeight+2)return;let n=getComputedStyle(t);n.overflowY!==`visible`&&(n.webkitLineClamp&&n.webkitLineClamp!==`none`||Oe(t)||(t.style.setProperty(`max-height`,`none`,`important`),t.style.setProperty(`height`,`auto`,`important`),t.scrollHeight>t.clientHeight+2&&t.style.setProperty(`overflow-y`,`visible`,`important`),typeof console<`u`&&console.warn(`FirebaseOS: a box in a content file was as tall as the screen and hid the rest of the page, which left the bottom unreachable on a phone — it was allowed to grow. Let the page be as long as it needs: no h-screen, max-h-screen or overflow-hidden around the whole page.`)))})},Ae=`.fbos-content-slot, .fbos-home-slot`,je=()=>!!document.querySelector(Ae),Me=e=>{let t=e.nodeType===Node.ELEMENT_NODE?e:e.parentElement;return t?!!t.closest?.(Ae)||!!t.matches?.(Ae)||!!t.querySelector?.(Ae):!1},Ne=e=>e.some(e=>Me(e.target)||Array.from(e.addedNodes).some(Me)),Pe=()=>{(0,K.useEffect)(()=>{if(typeof document>`u`||typeof MutationObserver>`u`)return;let e=()=>{je()&&(De(),ke())},t=null,n=()=>{if(t!==null)return;let n=()=>{t=null,e()};t=typeof requestAnimationFrame==`function`?requestAnimationFrame(n):setTimeout(n,0)},r=()=>{t!==null&&(typeof cancelAnimationFrame==`function`&&cancelAnimationFrame(t),clearTimeout(t),t=null)},i=n;e();let a=new MutationObserver(e=>{Ne(e)&&n()});return a.observe(document.body,{childList:!0,subtree:!0}),window.addEventListener(`resize`,i),window.addEventListener(`orientationchange`,i),()=>{r(),a.disconnect(),window.removeEventListener(`resize`,i),window.removeEventListener(`orientationchange`,i)}},[])},Fe=`fbos_hand_drawn_pictures`,Ie=e=>{try{return(sessionStorage.getItem(Fe)||``).split(`|`).includes(e)}catch{return!1}},Le=e=>{try{let t=(sessionStorage.getItem(Fe)||``).split(`|`).filter(Boolean);sessionStorage.setItem(Fe,[...new Set([...t,e])].join(`|`))}catch{}},Re=e=>{(0,K.useEffect)(()=>{if(!e||typeof document>`u`)return;let t=()=>typeof location>`u`?``:location.pathname;return Ee(document.body,(e,n)=>{let i=`${t()}#${e}`;Ie(i)||(Le(i),a.s(r.ti(n)))},t)},[e])};function ze(){let{isAdmin:e}=r.Ft();return Re(!!e),null}var Be={name:`bell`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]};Be.node;var Ve=s.n(Be),He={name:`camera`,size:24,node:[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]};He.node;var Ue=s.n(He),We={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};We.node;var Ge=s.n(We),Ke={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};Ke.node;var qe=s.n(Ke),Je={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]};Je.node;var Ye=s.n(Je),Xe={name:`circle-x`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-circle`]};Xe.node;var Ze=s.n(Xe),Qe={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};Qe.node;var $e=s.n(Qe),et={name:`database`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]};et.node;var tt=s.n(et),nt={name:`file-exclamation-point`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`file-warning`]};nt.node;var rt=s.n(nt),it={name:`grip-vertical`,size:24,node:[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]};it.node;var at=s.n(it),ot={name:`layout-list`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}],[`path`,{d:`M14 4h7`,key:`3xa0d5`}],[`path`,{d:`M14 9h7`,key:`1icrd9`}],[`path`,{d:`M14 15h7`,key:`1mj8o2`}],[`path`,{d:`M14 20h7`,key:`11slyb`}]]};ot.node;var st=s.n(ot),ct={name:`mail-warning`,size:24,node:[[`path`,{d:`M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5`,key:`e61zoh`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}],[`path`,{d:`M20 14v4`,key:`1hm744`}],[`path`,{d:`M20 22v.01`,key:`12bgn6`}]]};ct.node;var lt=s.n(ct),ut={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]};ut.node;var dt=s.n(ut),ft={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};ft.node;var pt=s.n(ft),mt={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};mt.node;var ht=s.n(mt),gt={name:`shield-alert`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]};gt.node;var _t=s.n(gt),vt={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]};vt.node;var yt=s.n(vt),bt={name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]};bt.node;var xt=s.n(bt),St={name:`user`,size:24,node:[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]};St.node;var Ct=s.n(St),wt={name:`wrench`,size:24,node:[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]};wt.node;var Tt=s.n(wt),Et=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAATRlWElmTU0AKgAAAAgABwESAAMAAAABAAEAAAEaAAUAAAABAAAAYgEbAAUAAAABAAAAagEoAAMAAAABAAIAAAExAAIAAABqAAAAcgE7AAIAAAAJAAAA3IdpAAQAAAABAAAA5gAAAAAAAABgAAAAAQAAAGAAAAABQ2FudmEgZG9jPURBRzBuT2dSOVZFIHVzZXI9VUFHTW5pX05rRHcgYnJhbmQ9QkFHTW50Vy1oYkEgdGVtcGxhdGU9VGVhbCBNb2Rlcm4gR2FtaW5nIFlvdVR1YmUgQ2hhbm5lbCBMb2dvAEFudG9uaW5hAAAABpAAAAcAAAAEMDIxMJEBAAcAAAAEAQIDAKAAAAcAAAAEMDEwMKABAAMAAAABAAEAAKACAAQAAAABAAAAgKADAAQAAAABAAAAgAAAAAB8OpdMAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAGZmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczpleGlmPSJodHRwOi8vbnMuYWRvYmUuY29tL2V4aWYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIj4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+ODAwPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6RXhpZlZlcnNpb24+MDIxMDwvZXhpZjpFeGlmVmVyc2lvbj4KICAgICAgICAgPGV4aWY6Rmxhc2hQaXhWZXJzaW9uPjAxMDA8L2V4aWY6Rmxhc2hQaXhWZXJzaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+ODAwPC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6Q29tcG9uZW50c0NvbmZpZ3VyYXRpb24+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpPjE8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaT4yPC9yZGY6bGk+CiAgICAgICAgICAgICAgIDxyZGY6bGk+MzwvcmRmOmxpPgogICAgICAgICAgICAgICA8cmRmOmxpPjA8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6U2VxPgogICAgICAgICA8L2V4aWY6Q29tcG9uZW50c0NvbmZpZ3VyYXRpb24+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+Q2FudmEgZG9jPURBRzBuT2dSOVZFIHVzZXI9VUFHTW5pX05rRHcgYnJhbmQ9QkFHTW50Vy1oYkEgdGVtcGxhdGU9VGVhbCBNb2Rlcm4gR2FtaW5nIFlvdVR1YmUgQ2hhbm5lbCBMb2dvPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjk2PC90aWZmOlhSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj45NjwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPGRjOnRpdGxlPgogICAgICAgICAgICA8cmRmOkFsdD4KICAgICAgICAgICAgICAgPHJkZjpsaSB4bWw6bGFuZz0ieC1kZWZhdWx0Ij5Mb2dvcyBmb3IgWWFpVyAtIDE8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6QWx0PgogICAgICAgICA8L2RjOnRpdGxlPgogICAgICAgICA8ZGM6Y3JlYXRvcj4KICAgICAgICAgICAgPHJkZjpTZXE+CiAgICAgICAgICAgICAgIDxyZGY6bGk+QW50b25pbmE8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6U2VxPgogICAgICAgICA8L2RjOmNyZWF0b3I+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgrOj7XjAAA76UlEQVR4Ae19B2CV1fn+e0d2CBlAGGFv2UNRRASROgqiImqL0ta21tX+Wru0rYLW1lpr1Wq11lZbtdZdrVAHDlTUCgjKlhkgJIEEQhKy7/g/z3u+c+93b24CWPQvgRPOd+Z31vO+73nP+C4eabsmGV3Lhu0A2wU2z/GPgzsQtiMs432wFbClsB87thhuOewe2BLYvbCNsG3OeNpIj9LRjz6wQ2GHwQ6B7Q9LkEkESbCfxoTwkiWOjfCvgl0BuxZ2K+wRTxRHKgF4MfgDYMfDngZ7AmxPWHL952HqUclm2A9hF8G+D/sJbBj2iDJHEgGwraNgp8GeDTscNg32i2Dq0AhKhldgX3T8cI6ZwzECBSjkath3YSlyyWVfZNuA9r0FexVsN9hj5lOOwIl476+wZbBfZMBba9tutP0hWE5Vx8xBjsAZyEcxeiRwe2vgu9MC6M/LsGfCHjMtjMAUxL8K6x64tugnIVBxbZOGitrBWHfnRyPwDGwQti0CnqhP7OuTsCNhj0hzMCC3loedzoG9FXY/bKJBOhriqtH3X8Jyr+ILbVoD81DSbCenw8PNlKMB5IPp42qMBZe2n7sheC2Z1tJc78w7yHxzMRDZoPTqW4D7FSiAmzkwHJ9jBiPAXcc/w/4MlruPn4tJBF6iOFdjDhZw+wqBp0kaj2n+XngOMO8d9QTB8wjuIbwH+5kbN9huv6vi1gCf68rXmjcZGzlBzvcZiXO1BnpraYlLawOx1It+BPvAZ90Xgn4IwCcGfJY83ayMITIrfL+MSCuTNXeGJfztRB1pGdpEKYniEpXapuL+iN6QEHj28JmYOAJIxO3NQY8HvEzWOgRwqjayo0wKL5Benepk598xx09t3vLEYB5cbOJczetoMzHcN7gMtuSz6JFDAPHAz42pKzHgp8bkmSSTIuE7pFu/Gil7AuCPiETGeSAVmsXERTTL0VxhjC8jvoQ2E16JnlwIyxPHw2pAAPMcbZzlRoFvDnpHh8sFUE+KaUSxfKhpXWVM+LfScXi9VGJjJ9w7JtNBBGKJIgpu1GcLcce4/Ta9Tbpb0atZsDyCPmzGHy1prnrdwJeJBT0Wcgs4X6iQNICfhl2d48K3Sf4JDVL1FNQKnIJF6CVaRQKednO1x/WOG1aP8140zpbNGLffVVXb8/ZGl3hGch7sB4erexi9sEqAeShxjaPMWeDdsFvQDeDcvku2Iy/jpF/4Duk1plZ2PYfyOh9c42L5PUoIUZhtOdGc0bREPpM/mmLfb2Mur66dA7v0cPRLCcByfTzwLYHeT/pp3dVS6GknvcKPysBB1Z4d8wEiz+4PzoSbA9Uc6Ng88enxqdGKY1Oi8W3Gtx09OQuWu6n/k/HMkqd8rQFvOZ2gE3BTWy+pKSjyZPgLwq+XTOlW2vjBgrCEBpq0iGBI0LDmwERA1aRoeiRexX80noXGpkVlh9sX60/QlCM/aj26wBVW0f/SFb8B3wh7N8fHA89Ti5oCv6dACqQmVOLJkYLwovKftSttXPoY4AH4OpNE2uKezxlpQHMThwHV5INfkzjbw2+D+h7fZiLz0zJktQKGwpHUaD6Ty+ZnqA2aQejTY7A8VyE8n8p45klYFUGCz/mdwLtFvBt01lAX9AKNfPyJ3FuW93BQGqmZKgh03T4Tdj8NgIyJ+OCJ5Wib4sS6pgoTw3SbJ/7d2JRozdH80bg24/s7evIN2E/VSd8Ame7bLvu85VLsbZROCj5FfUXBfm9+Vg+PL1TjqQrUegPhzp79wXpvWsjrzeiULn/d0eVHgXD91eRGL/7omj+338ZZ151GABDvoaXX5DEEpBFIZTSe9NBvPU7IxrnjnayaW7O1/QfPVigB3v80XYUOsCbZcj2Bd3M8ub0+5PV0xPX6+txyT0ZwnyfN1y/8963DT9sX2MblnnMN2w57YihMwwyBup9RorWxdC3nW5+JYxma4kiElqWBLcvUGl+HjW1jLi+i8jj5jUPtlz8Cfq9CT07A70kO+TzlwV0A3q/AJwF4X3Cvp2NTlSfN2y/8fMkVnSsDO+/GBzXOOtCAH4XeEkPiptjZ24EZmayPc7kBWzUBW0xYQ5qPUQjiwby2JIT1PSMhLPyajUkqNRgbKVBj29gjBf15EHYCbMmh9M2fL35PKTT6ggA0eyh3dcEunnYh8USB93kaQh5PAz68qQqId1PNi7ehgp4U+zqoKrpZpR1g60ZjDCjMQ2NCFlYDJomA8dblu2gE/sIe520lBMbBoE7mNEm2JPN+lDBaUg5ZQJs0fdCru2AvhnUG7cD99FuRX960y0uub6ccD7HfROArPVWhHE9NcL83z5MdfnbXiIuD4cbzPB6fgkOYDNzOk/O1Guu6Q9E2hR0xrtBpVgOemxgsfCQEUyTyYM/KEgpfa0katE4E+qYps+09eV7wAuzjB9s1z+Vdi9M517cL5XsyAT79vkCVtwHAN4LzU8MeT5a0k1f2fb/bJ/VPvgoA8jnABmsOpobUNZUybI31GfDdzyi3G/BJExbccJigM2T+zGUZG9KMSInmIeHQMAefxrrDNsbk4tMdY8Jt5rkTPTke9qCmAm9Fk9+bFPR5fe03eT1NcANeb3XA7/UGvd7skMcbTK31NaWKb3Pj/J+j0HyvB5o8rfgxCRhr/L7YsAdpkBTG+mPye/FBrgeW79Pl+yxTy0asShhKGcYxrB/w0jUhEh/TuPdgiNHsQRjSM0SJRE3j0/jV0Vjjs8Rp49uMy6+ReNH0oIy/Xa4H2j253u+tClWD67M92SGfl9wfSPN4U0L58mzpWROD4dqZBNMMq5n/dcCBhv2zgw10mlWuUQ6nGt40HO1xxDrLYIwHEzu520wTiPNg3o/hcNbi5nK2BXlAEJQcphxbPScSk5t1slVGVtj0Nut+DT37B+ybB+qh34BvRL4Xc316sNZbk9EOrF/nTQ13lErv2uSKwIbrwKU+AzQ5lENpuI9g888QBlx6nRgngLARzmb4jd/AbYA0MQZ0I9pZB8JKCIYItEwAbN9Q3UDrQql6nnVwRMDWmXaxJBZAt80Zbu7dAjsZtrG13vmtyE8NQwAH23vr0mq9mYF6ryfF6wW24Ze2X3NBKBwYrWIbXKZgOy5FsiEAxtPwaQlCI2IeRqO3EBJ26yewLMO45GTDrygPhKCGUoDFq+ZnCCGqIFoioASJlwRugNk2U6tTGArUQk0dbeuJS7hyEeyjrXXLX405PzXcHuB7vF6I/MxQJsCv86bjBzW2Vb/Zrjqw4yqKfgM2QXKsmwgQq4TBp0oHVsmBdRsHcMXDBX6E0xGnYBsxzifB5h+JgWlhgs88DqZ0YomA9ZEIkB8EY9/VOC3HvNhmIXcPt/H/FM6zsLXNk0yMH1u93iAUvnAabMCjnO8FUfBrxsUVv8Hlg3BfDxS6WOAtIRBw4ycUBnwOL4eexjwJgBl6PDnHA5yIFq/cbsA3Ih9AA2QvvhSjVAiH+RWVKTMCPoOmQHViicDoBPqK6g7RNhiCYLucl00mp3wbx/Q2Y4agJ7NhuUmU0Pip7XsBPiUAxX4o2ODzhXM8xeHlafuDRd+w3G/W/kYr1/mfwDvgG+IwIBnonUG30kCBYP0E3iEC9RmwVeQrIThh19xPWKw00B5Y8K2rpZJEnKlCw6YVKjBQQBRa+kzbolOBltqWH99D5zgN1CfqpD8WfK/PE0r3pqakej7YecuZIQkO8Ea43yzLCHaEKHQJhwGNmw5AGc4wO1UiiwKvYBAEinPHpR8cH1IRT65nGuMIKbkf5AYkNcxXaCz41kUUk5QIVMI4KwONt1OBedn1ClJpbIx1TWwbevJ3k3hk/HSiPkECGM5PDnp92PL1Jvmx9Q+sq4KFXzFAc71O8I2163LlegXeEgZAR9gMqCUADiqNwo8kRwIowA7QDuAEL4z3CXqYluwLcGIIATGhhERg4DdQsx2oR99HPKVQC1PBUSQFrsTQUReIikkEaPwU+14Ab8H3J2d53i798ZhAuAmav9moUUIAAdgNHEMMJAULvksPQCwH3UAfRwAAQjkcAKkUcLjecD8JggSEed8hBOV8loTyiGEIXuVtvk7D4plAwoMTjTb9NARh4jWrvmRzacB52FTrutPahJ+HRPwMf1l8b/wEH0qgj5yPowCfPyieksYPzwO4WPcDZC93+wA0d/0iUsBIAzP3c7fPAGd0Ag4iCYBu1KgMUM40REACCKkkQIXkfnC96v/gXKqAVCgZJscr6CjOCz+h5ZWUqCQgt7MeK+qduklkusmEN9Rv28J22bxsqbbMJrZVNwkd+xpscwIIBht9aUmp3kZfo88fzvJsrl+Y1xisnBQF29nupQRQ60gF17RgCMFIAQM8nhS9SgSKDkCii8EmEQBGWgs8NX3QId7BFBDG+gNWs7MMB2wF3wRZDPLi4ZSpfpKJVsXynbo1jyEIzghROtCMaI/b8B3GW9ed1ib8M9CLX8BWunvj94RSvcEQjv48qd7k5GTPhl1Pn4SB6MSlnxe/r0juV0XQ7u07kkCnB0oE5ND9fAJIP0CjawwHk8YAry5Aiyp65HqIfC2D4OM9h3BIHpwC1MCxkoAokny8KIcuyyQX05C4zNYyYTRpJoVtYr3WGJBtrAnZtDbrdkfPpsDi6n7U+FOTPF6Ifq/f1+QLQRrva9ryJQO+Ef0E31pOAz6uCpQ4CL6RChECsESAFMNJdGksGCQEwGaXfBD7HnB/2ENC4M4DuRiwKBF5mKpiX4tAUSQCAmnOC4zfbPgwwYJPgtBc6pKejPSBh/+Q1U0KGhkhDWRQv3W15rb0mInOxBJAIwgAKwFfsjfDs6365U5N4ZoxyvWW0y0BUBpE/FEisFOFEgE52QHPDCwHksYhAMv9JAJHASTMCj64H8dPCprO786ryuUU9UCOf+R8W57RFYioSVOuBxGaMKUQiYH5KWWoPdBP425XNMammpg2+ZyMXuXC7rW984eCOAOGBJBQsndL3cIRGMrciHiPAG7B55QQlQgKPsOqDxBAWIQ44ORCtyFE3MmLiH9IgRA4X0En1+OdkE7UzltEA0XwPeVngOwFEeAt0EK0Lp4UMlbrA/HZ5aOVAgZsA62JY/kMJ4pjWps2XdA7TPGywPbS78GaKwwJQAla0bT5JDPnRxW+GMAd8H2eJABH4EkMZkWgREBCIGpKCAkIQEU/4ALwFPsE0sz7JJom0yYHeIXeAT3iB2gGbIcoCDyISonORQjcOzCinq0BUWiA7eH7AbzFDSZDACQQQ7Sm+i/Cs3P7ITJ58E9AzGSYsCxc/UvZW7P1cDXtdBQUJYBkYBgKJnuqZWdqU6h6hBHlVsQTYMfqFJAkEBcAPioJrD5gpACJgWCagVfuIxcTHKczXMh5VdnzGQkAQECEeM9YJPMF7bguBPEel3MEicoiCU6JQKUA6kM6UziRKJCkZJTHvHySVPhHEww3IRd1DbdhHkeCwGeMdd35Pj//kG7nyPj+cySArlfW7pb5H/3kcFY+EYXxuFgHwh/A+itV0mVT3bMFWA30UDHO5Z5V8NRviIAKYAR8r0MEESnA5SEBAhzYsYkAytqSEY+7JMEQKFoJIST1dfVQKAExrOJD4GF0mUjOBxhJqX4JhRoBnB/xydLYVCeNGBVto0MUShiUAiQqAGkBp2sKNvBz6mgOPmukIRHgp8b9qeoyTNMUSLh9rmmH+vB7eXE3agIh3uRObPp0migNAdOTrWXvSE1DeeKMny6WXxT1gN3C1zmyOuXvrv94IMIpMZo9iQBZuPNHzlNpQMAV/KgUsGkEIxT0SEa7VAmiA40NEPXQ6AoGdJCf3X+2+P044wPd+UF/zz60TJ64/20FWcdb8QMQILLGQKNc8aNLZMLkkVJfb84Dqitr5BfXzZXikiLMMJQ0BJ2EBk5XaUDiItjke8ZT9NBPQ2Iw5Wgw4SMsl513u4waMEUaGgPih6R74tVfydsrHkuY+1AiB3c9W6aN+J00NTWiJcmyfc8SeW7FN9C25pKmXWq+dM0eAWYJSJIvSTbtXtSsqhR/FgiE34I0f79Z5uYR6YjixyRKAF6MozJ7dVPJYA6mzumIMqByTneABzBmN5BSAMtBWgySSgXoBJQMoYBPsrIz5VePnic/uftMSUlKQSeSpXBthaz5oER6DcqT3rDd++XJnO+fKn0GdsWeD+tyJAvcQGNYRo3FLwzN+ZJ079VV+vTrLoOO6y5L//uhFBeV4l4S9A/UpsDThSXA5s/xE3zHMN5KAhvXklu2d7v07jZIenQZKj27DJLjjzunpayHFD+w85kAdbDktx8qXdsPBkfvTgg+Cy3IHSuZIAJwjjQ01Uph2eKYunLSe8u3x78tpw/8VUz8IQZOsPmBZYDKtbc+WNU/dmAN+Mr9gDu6FWwIADsHGHpYgE+lMAQg2+dkyryHpsvICd3ltPMHyndvnYx++AFaijz622WyY6PZhGpsCEtux1T5+rWTTbksB3VQIKUkI/6750pKih8cQ3EvsnLFVvnnI89JcnIK8hvQFXAF2kCvICPMvyjg1o8YSLADmY83vCH76xohxQKQAmHp222MpKW0S/iaH4TdKbuf2vzs/pKekpMwHxmpR97xOnWFwNWNwaBsLn89YV5G9u00CYwFpsD47tm/RXZX8SNgY9KScmT22BelABLitP7Xw95skw7VHW5fAMukS3n9qnbBcENBhKvQaOMn95Pb4HLg1WUaw3Q5Pfgl2OSR7NwMuenhaTJ6Ynctu6aqUZYsLFIJkZSUJBW7G+Rvty5RyidIDZheT50+WMZPHSxNmA4pBZrqQ3L69HEydvxATB8Q5AA0EAjKX+59TGqqa3VQ7ArDcD6JAX/aRvWhboLuPJVANKjt9Xli52GTwrx8xys7StdKSdkm1AMFFWB1zO4hPToPs9li3LEDLpBffX2l3Dj7Q5k3e6VcOOHOmHQbyM7oIR2zBmK1wz0Or1TXl0px5XKbHOOSWHp3PFl1JdzPlm173pemYFQPaQzWyNrS59A2KrQCKXCDnDbgppgyDjIwAPnSmBeqSVq4vH5tByyPcs2g8ulwGQdWud+Ar37E2emBEiCE1RvBn/vwl2XkKQVa//7KRrn18kXy3oIdkpScjNL8kpaWIotf3CpvPb9VklE1Vwa4dShfgxTIys5Q3aBDp2yZfcUZ2kHObsnQSF55cbH8d/EKSUlNVaAigDshA3WU09kAA6h5MuyQg5FWwnLMVGFyUrrRgighctdtfQ86itEdkpP8MrjXKaaIuOfo/jMkOSkNimMaODZZBnc/HaK7Q1wuivQxkp6c7fTXL6WVH2MKKGuWjxG5mb0lP2uwEguGRzbtWhSTLwiF+I0NN8qr6+eCsczO6OkDbvw0RNAZBfMDbyjnmFL3NW3rBEggXzkMzjyqQ0LgHWJAvPmzA+ZT0NoD/Hl/mwaxHwX/N5e/JUtf3Slp6Sl4x0gKPVUEl3Mq2FOCFQAGOQDiGTC8o5z7tXFSW90k5399ovSEfhCAAkkQSnfuk0f+9JzqGmyXtQZQKJRBzJMNDdLYCLENZZMKZxMKrQ/UgXN4GZb9IXEYo2QCLjPKF0mMPqMc2nwrMQ1w5UlDThvS+1QTcD2z0jvJgIIJEoA4JyFTYcvJ7Cr9ujYnlj4dJ6gkY128Zbt1z1uukmK9PfNOlDQQC7JKbWMFlMX/xmZwQos23SyvfjIP5bmJ4JCmgwwUpYD5MWaemkAZCMAMlj5bIQQVwSCKIMDLyUuXmwD+iJO7adPI+Qr+wmIFP7b1HkgDjxRtqpQn714hV9xyEhQ+LLVgz5lzvBRv2ytnX3QCwCQw+PQUU/Zjf35RSnaUiR/LQa7zqdWrdg8vgS/o0V3Gjz9ZBg0aKtnt85QAKqv2yeat6+S9pa/Jx2vfB0DQIzhSMASLSuS4oedCn4AyjHBVzV75aN3rmsY86wvfR1yFpCZlYR0ekl5dRkpWRifE7WaymgHdT5Gcdl0wTWEQ1Jgl2/Ce0+WjLf9y4sBdILaeHcaBkKjLeJQot5bHKnWRzPD07TRZaZvMsmvvWqmo2eZOjvEv2niTkvbUgfPMdDDgBqSHISHmxuRrJdALaYv9OGbFxyCVndBChGMtG61c50pjOAjlLDcvS276+zkyYnwc5yv4RlM35fFJTiNbeSU1LVlefny9nHhmLxl2UhdpqA1LVk66XHsbTiuxnOPyMQWif8k7G+SV59+VFEwdoTCXT+aPnI7TC7nsm9+WWRdeJDnZ7VWScHmJwyyOgUyecIZ8deY18uqbz8mdD/5UqvbvVW4hAaRg/vnBZfdJfm5n4i/rN6+Wq24eq2KX7Svft0MKS1aB8yeiLU2SndlZ+nQdJR9tfAWFGzOq33SUx7HiNAYFGJUHUPmArpOVg+sa92nG7IzumP8HACDO/z6prCuUXVWrnFJinSRfmkMsAZV4W6H9h/RCbGw+d+hNEAFHd+rAuQ4R3KjJB0kEyrVejmdTqCaPBfEv4ir4DNM4w4+4AMDPzsuQm/8+Iwr+vga59dtvytKFFPt2mYZ3WIa1GFwtB9KjqSEkf/vNB1K3HwMD7qTopj5g9AL8FM3+Rnn47hcgHXhWYNrEdw0H++T6n18vV3/3csnMwHoYCmSklY6nHuUTzOlnXCjXXX0v5jmIfQoWp6imAKaNJuxTgIGbKIYcw15y0FdvWgQQlJb0c5jjek2yWSQ9NVsG9zgV4p9c7ZPd+zZiCmhC+UHJa9dD+nQeH8mr8z9WB2w3l8xFFcuc9XskS8STj+VhbmYfSIsgysNKIcH6P5LZ5Xlz4zxZ+MlNqhOoYqg6wUFNB4YAWFYg3NDeDqIdzUjYRnBwUENep0y55ZGZAL+7NqNyT7386tuvy9LXiiQl3e9qWrQEC5GJ4VTgk3VLS+XFh1dB0TOvKEDwUvH79+OLZQ2WfsnYpyYoEeMQ086inVJVWQ/F0CNVEPmPPv6wXHfDNXL9vKvlX/OfgG5gRHNtXVAmjf+yjB91hjSFW955i5TveFaBAJqw+iDtAWcZ1JPzOAkY/xtlt/HSAasDrhJInAuW/Fr21RRrOi7XyfAevH9pTJ9OExxJgRFAWZvLFtmkZm7vDhMkBQol66mqKwWxJF4pNHsRESSC10AEAiI0RHCDTBlwM+p249HsTTA92QQmFG7KpNuaIRUTpB/d8WUZcVIPzcq4P/3iXXnvP4Vx4LdWkklLSvHJsw8sl40r94gvyYBMxW/T2l3y9ENvgkhs48m6xnDAyXkPPvCg/Ojaa+X119+Q7197ufzm3hvlpbeekwWLnpIbf3+l3PNndN7gpe7448/SSciWcyB3a/FHUravCAMIRRdAF3QaIh3aG4If1X8auNkox9V15bJy6wLZuWe1cngQSuHAblOwAZapQPbsyPnf6AcNTTVY1rX8C/B98yfp+HL+L973seyvj+ocB2ov098AEazd9aKRBCDaLw26QQbnn9vaq1lM9IakDpuBgbTIMMNDP2dtE+ekACPGPHnf+7Jn134tmIDM+NYw6TEgG2t4TMKaw7xtStFskXhToimPIr+irEbe+vd68fPGGgzdt19eKXt2V0FsU3OILYUjRE5KSU2RJUv/Kz//+XUgiICcPelcmTH1Yjnj5PNkWJ+xsujd+bJrdwlA4Xoe/3lf5z7Yp8Sv2Thd0cpaeFDHqamrkI3bl0D840QCdbZLz4EeMBblJcmQXlOUCP0+v2wp+QAbR3tk7faF2q4gOLBDVh/p0WGMtEvtJJ2w/uf0QFDLazZLefWGhLWmJ+dKt5zRJi86uGX3WwnztRY5otul0q/DaSqx/FCgl+14AhtOC1t7RQnAb4QlT1Is5M6w0+ExqiueS7cP39ki11/ytNz66CzJ65wpg8Z0knmPniE3zVkou3fUQYFLhrqHOV3XUoazbRmWAKgQ6gkcauVGj9swbKSt0w7kNMhF3SYs+yZPOl1mX3KJ9O07EOtxzCNIDoAG62oaZHvRVsnIaAfJxn1ur+4ucnOHc6sW566wBf/KTa/LKSNmaSoXEf0KxsnuikIoj32gHEJRw+HUR5tf1PS121+Vmvp9uGKdgTMEnwzsOgW1JkkG5v9GLHN43YJLupYOgLrmjJT26d2gCwUx9TSAAN5uoVWJo0d2myPnj3gQEisZ9ePHhHf8U/618hst1ueUoiKWkhI0DqNPhwjUz8MVGwYbYeS4pEpO88nK/26Xn1/6nJSXGknQd2iezHtkquR3T8fSqBF5zdmb+2lWASyTa2dbNgBRImMDHMNwJN3mY92mLVz+TZ9xjtz621tl+Ijh2C9IVu4j0ZDyMzNTZGC/QZKelqnv2GK1/dHAAX3rti4GqLXIhztL6H73TkNlZL+zcbZBvQQ7epASa7e/puWUV22Rwl3LUD+WqxD5vTuNl975J0fmf45va0pd306n6uETlcqK2m3YLFp9wPbZDG7wqbga8C87EPh8XbnTT+WbgJnhZVOtj37GO2kEBeAQvJQ0v6z8YLv84tLn5ZZHz5UOkAR9QARzH52qkmDX9loocyQw1sFy+MQo4l29Cq5lcmXPOE2OPhA2xMKXmMj2GAIMQtwXdC+QK67+DkD3Yc8giEH2ygdL3pMPli6WOgDWOb9ARg8/WXp064d3MSKHZGxjPFJcvlF2lq2X3p1H4UwiIH26jJH8nIFYywexR2HEf3lloZZO4lxZOF+OKzhdGrFbV5A3SnLSe+n0RCW2FsvCHXs/SNgSKn19Ok7EVBVSPWL7nqVYKRjGSviCKzIe/OVF5HyCH90+dmVP6PVDx0HzQbYcaAXZgu64GgeuxVaM2rC5yJGM9fwqJYIXQAQzDBEMyVVJMG/Oq1K6Db8/pkTAei1RoUwSgW7rsGKWSXCjhmFjjRxhfksEFKdjjh8lediDqK2BNMJq4oUX/iW/vPU6aQjWavtw3CKdc7vKX+5eKDntucEZLbt1n8lonuB67CRSCvTrOloa0YaMtFwsAbFL2RSUJIj5jzYZ8W/LXLvjFWzxVmNqSFElMMWHjSRMZ9wn2F3V8qZO+7Ru0hmnhNwr8GNLefOuN22Rrbpu8A9B7LvL1K7i5rWfbAgTHWglBAJBsGAJiLoATD/doosGJ+OX4ld/sAOS4AUpLzFU25tE8OiXJL9nOs7yGzQfO8f8XGPzUkYI17/0WwDExROAwu6qxxCeaQvbk5MXe+q2+N1FOGGrl1Rs8KQkpaKDYenXZ4jkZnNn0E1cBtqWKMKmukdoFfQAinRKMh0LzNHk2P31VbK68FV3Vtm1b4PsKF+uiqLKLPSBxof8W8ve1b7HvOAEeuSdIBkgLFQg9Y34pcbyllcK9v2R3b6WYM4/KLFvi6BrCCDFl8SW4uzNkQAO4IYIDNcTuIgEIPcyTJAAIM5DZPUSEsHzUSI4LldufuxM6TEwSzdaDPgkAF7JgnXeJTHEE4CRFaZ8JTy8YSQF9YWQ7Clz3Y5BF6ZMOVM3hOoba6Bw1cuIQSfID668BWKae/5RQ787HE1p2bexaKns21+moNtcvCiytWQZNoA22yh1OV6rti0AAcTsXKCvIcz/b8XkdQd4/MtdRa4UyrBKKN8fW647L4lvdMFlEfBj5/yDF/tOmXV0vcqQOA6IzvfkeHIqrRn8COcqcOZenYKpXN2EWz1hWbVku/zskuekrNhIgl6Dc+W87wxVrZZ58ZvCEHNwnXcMIRhJoNqI0yojbYy0sMAbAsQcCS1v2dKlsmdPFQD2qg5w+mlnyV/++IzMve4uueNXj8o9tz0jfXv1hQh3w239B0sGzOeRfdUlsrV4OZQ7aJeqz2DAoFZ8tHk+iNKW6TQczprtL0sdCNHmJWDVWM8XVXwYzeTy8RSxV4fxujrhkpXczxO/lkxWSjc5c/AdmCp4N1NkuWr7hzbnu8quoh+fBGAH3uOrsqJdOdtyHQEHdHqTlsCRWhAXjvjJzQQVRICdhNVLt8nPLn1G9wmWv7NNHrzlLcG3xigB+aBsGKLByZ1DCFwjY72oV8S4CcSrYvzoQyWGEqDVE0w7OPjbdxTKA3+6H0DgziB0gCDuCPbDUvDcabNk8ilTMO9nyOIPFknFvjIsD3FvCdhRaXPzP8P8xSNNA+cZ0xxQxq/ZskhwKqxl8BJIXWO9rNz8svNOrFNasU6K92B3EysT7hkkY2OjZN9qrBhKYzM6ofz2x2H9PxKA+hTQ1lYKfKWyfoc8v+qb0hSqk4+KnjpkhS+uERUM8ypOyBtOLSfnRSxBBvUSCG726NVtZMR5lhK3XbnhcE45gRc4+W4Slohrlm2T75/3mFTtrZeKPTXY5eM+vBHsKmUgEo1eQZEekH17q2XzJ7ukHodC3Aiq2FuJuil5KH8APNvCtqkLBQw7hM88+08AvEe+Nueb0rNHfx08KOfYFq6W5xc8Lg/94w654do/SvX+Xlr3ztItKMMY1r2jZAOUyP1IEyku26ytd5KbOR9vWiibd16iB028FVVY8rGU7P2kWT5GcLyWbnpcD4R4RM29gtVFLyTMy8gAdJeXV83V99jPzbtanipsIbwQ8uf3JmG6WHtI2r593+Xuot/z0+PCQ17ccfEle5s2XWfv5vGKl734qX6G0fmIH3vM3OjgVinf4UmXOffn2T9PC3m4gy0Yyik1DgEoIVCCGHA51XBex8dpRkpgAHk4EwhCeVSpwakjKmWMZDDhuvoaSc9Mk379+kvHDvk4FKqTzYXrZcuOdbo0TII4UUJCSRzcAE72SEgkQh7MsEWUCowL6NmBibHtdbvkZu5Akvq5Ncz2t2Yo2o3EYX5utVnya+2tzz3tGtT4Rz+kcSjFl10cxpqau9aG8wGcc/auX+sgngNg/GwoOqQbNmYgISt0sPmdn97Q1W1cdJ4iQrPbwTYDrgol8hIY5XKAo+DaqUWnGjPlqD6CfFYCqAsAklOSpL6hVlZ89AFyE1zuCeA/qMV5P8mrETtqBnD2y4JrXF4WMWmJgLFx1uWBkNkvNZ058LO1efzAb39uObaxJuo3wcykLiXhOh5bYDbAQIJ/MeAQ/QBekcdYKJR8OOJcBxVEwC1fHHYi3bmxA6lg9GBkjo4hX1TO4cCTg9RFXWZZaF0DepQYSCRcKdA6xML3HUt9wY8J2vyQBNvN/JAqaKPhWNZq2+FwLeU+jNXVTah1jtYX2tYDg2T+qxl/ALcvOyYNLvkESi8GDx8OYsA4epZ7NYzsGKko6AwgxLmagHMqwAYRFxUeAMZpwCEZuDROflMCngTRcDUBM4pnPPgIUzxRKjiSwnC/Qwj6niEq1S1YpoLLVrJ8Qmus9RtXG+Sk0c889qneo+GxF50sYkf9AUj9zhmn7PXs8ZWAG3ONqOVUAIuxUSnAnKAJM1aIBOfxz3A/xT4UPRABMxF8frBhXqBLEwUiwv0qBcixBMvhcAWbhMB4B3gHfEsolnCsFLCuEqSLCFin+bP1sxkGbKcjTIgzB0qPy37kBrej6SQCaHa4i52b3KURisumYKh+iApDy/3Aj1O9BVCBJ2AYSH5RQtADuH3Dr4FSUlJ084U6QBO2S0NYnnGetopgDHdGpgCCbyWBAd6IcYJvCMAuQc3Sk4RBUY85HsuxJuwtcFuWAsdyfRM+ueJ2cDI0cG082o8LL+gD9vBxJGwhNr1iyMYcVdPAGnRcO+w7Meen7b2h1PD62me61of2nsplnzHGjQQxUIaB4CpVACqsvcZPHi4nnDJYdpXswVWuWmjxTTLy+H4yYeow2bdvP5Z5uB8HYuFcr2CSu+HXcITjY8MGdOYj4HiP+Ugojg1AiRszapyMG3OiLgeravbprEVlbdjg42X0sAmys2SLtoWEceKoqTKg92gpKtkMxZTTnyE8gk9dgJJicN8TsYt4qpSWFWJV0PJmjDM46qQmZ8qJQ2fq+1U1za96p6W0l3GDL5S+Xcbh1lCJDO99tr5XXdc8r7vcz8H/F9SxhPXgQ13cyIMa3z6pYBXEM/6iA83B1507AqZgmU0f3cgB/zXgY82cDhny2we/J9/7xUVSU1stefkZctdjP5QrfzJLahEGryoH4j+aQFncBHJc7HhpGOXELvVYhyEI1uMGn23jMiw9HVfRb/i93P27u+XCmZdJA06/OLU0hutlxtlz5Jc/fRD3AbJUWgQRN3n8eXLHDU/gYkhvgIUzDH+KDB94inTK66ngkeivmX2nXHnx7zAkViJweFo37TM7yQ9nPy7jhpzfLCM3ja6a8Q/57nmPyFkn/BjXxrvJd778hIzpP7NZ3s85gh1cbuvEFjRu+oEAeqRMgR4ou1Uhw0AbLqV4NuBjJW3iHEIIgdvQR3n2n6/Iv59cJBddNlWOnzBY5lw5Tbp0z5ZfXf+AbCvcgQMOnNJhw4ebHrV11YYYIKZrG2r0qxfuInLdz3U9OS8AwuDyrl7DUAIdrldJAH8D7vwfP/Yk6dK5q6zfUCxTTp0m2bixQ+IgZwewj9CA6cFOOezo4qULdNdv2KATEQrLyOMmykO3vS3XXGoAz8nqLL27D5VlaxZKXUP0KDYqDVlKc8M6GptAsCDKeMPbxLw/8Pzi2+WmR06Q6toy5APRx+XlXsrnbIpRH6cANd5wQ1qoybsnPCjrK3txXXO1DjgJwAFeCcGCTq2cHIuwfmsPIsCnGHLrjX/CIU2l3PnwT+RrV02T+U+/K//+10LJL8iWG2+/Up574x55bP7v5PzZZ4AgaqRbz07yh7/MlVEnDMHJWqX07F0gd//p1zJ4aD8ZMnyw3Pa7X8vMC2fKP5/4h1x51dWGiNgmnMYRwGlnzZSS0p3y4MN3Sd8+vWTsqJOV+93cS3D4x927dRuWSXlFtYwdfpp2+uSx01RvGDH4FMlIzwb4QyQnK1M+BAHwfsH5U78v992wTO6/4WOZM/1mnDRmYFs5Va656AH58oSr5f++8nf55RVv4nuBDip5uM1NIGd/6Tdy1Xl/k6G9p8hlZ/8ZYxiSob1Ol+kn/QwbY9gzMXOotqFX/vFy1dn/khsvXiVXnPG89Og4FpIpQy6d+IhMOu4HmoffFF428SkZVmAkzLBuF8gl456WvIx+mv4pH+T+SvuumQJABNCQsCHU/h0rAcxqwCEEcL+JpzTg0swQAonB6w/Lxg2b5Xc3/0V69u0MPaBefjP3PsSH5Pb7fyqXfmu6rFm1QfWF2+/7oZxzwVR8G+CXGTMnSrfu2MHDOX5OXjuZcf5k6ZifJ53yO8isi86SH+DS596Kctm0eQNgZDtAipAQ3bv1lAnjJ8kbby2QZ178m5SWlsmXcf3bgE+9xopw4/JKWPm+YlmzYakMGzQeH3TkyzjcEv7virdxvt8OU8EEOa7vOEiggHy8/i258Kwfyw/m3CmV1eWyc9dGmXPODXL5BXfq7uG4YefK5TP/IN06DsAh0QpIMT1P0U/ELpt2j5wz4Qeyasvrsqtis+okHGRdFUUVKRBxE65/d5fvnfOi9Ow0VraU/hfgj5FrzpyPa2FdpEO7viCA/1OCGt17tpzYbxZ+LOJKFiXH9/6m9O4wUWoa/ycdYqEW5jy8oTrqALDYfe2QMnAxuAYbuRxwx6rfEf8uXcASAudvfvHz72dflYryGln85jJZuW61DB81QE47c4zcdtMD8q1vXCuzz7tKVi7fLF+Zc67eAq7DYSS3fUlE3Jmrr+feOKcDzvsid//h9zL7WxfLi/OfhfjmjiPEf7hOJk2cKu3b89zfI1NOO1t2lZXI+BNOx83dXoij/mINfUaz57tLViyUzh17yBmnzpYuyPvYC7fL9uJPZOrJX1Xlb2vRWtkPZfLcKdfI2x/+R66/60z55QMz5bnX7pUp4y6Vzh36KgGu3fKuXHfvBHno39fqdNOIH5E4+6T/k+kTrpR/vnaTvPPxo7hRXCgPv3S1grhw+R/liTd/rNKLU0oABDCm/wX4jjBP7l1wjjzy5mVy30vT9bLJ8J4zZMmmR6Av4KPUDsfjS6GJuEu4Vbq0Hy4FOWPwaflIWVPyvNQ3RRjYdvZgXW5pvunO7A35cG2irjpU7dsfmpj1y3UQgWs5YIYIDOdHuT+WEOw0QBCp7FFEE0Ae/WZk4SNMTG8bN25BWU2ydz84Ct/3Z2W3UwIgU5Cj66QGu3ngUy7lQHSsF9OqrFuHUzWIb7PEo+QJ4HOtFDlj6rn6McjFF3xTbp/7sPTtPQhfB2XKxPFnmn45FGAmAMoDE/Hh6kU6/351xrWyu7xIlq1cKO+vWCCnjMXXTZAMy9e+ASnVhJs/7aV49+bIGO0o/UTFfxqkBaeHbfhqyExFJotZRYSkdG+xnIQVQXpqe01IwifxNDxHiDf8iLQeCnR55RZN2lO9BXpLrWRBAqzb+TIYA4rrcT8Sflk8/6Pr0YMQfjPoOj1kWlPc8uFSfD0JwisRt94dDwLAbTRfRiipZn+4XUp3/GJkJv5nMC7bCAZcSoII5xsgCIZq7qoYckow8aRwAsvTwfVr10sZLo1e8b1LZPSoYTJr1jkyeeoJsuyDDyG2i8E9+F8OTx0vI4cMkzlfvwR7CORXo8ixDFrTBtYPkoISOWTwCDl+9Gj5x1N/lWlfHS0zvjpWLrl8shQVF8uXv/RVyAQqVNwGxstwreU29Zbta6R411bpXdBNlq16DYPcIO8tX6DiOz0tHeJ/ka5q1m9ZIqef9BUZM+QMGdxnvMw47WrZXrpeSsu3oI08FGLZUZOSlC4vvXeP3P3kV6V/wWiZeercSGJcVrQPLQERbdj5tmSltZOzx/5cuuUOkzNH/RxXz7Nk6673wCjbZMee5TKm90z8PlCRrN7xvBTtXS6jelyAuwUlkAjvRcr/FJ75eCdGY/WmeCvChghw97VOQrnewf8JhcONZseORGDnfzstRInATAMOMYAImoAq7+nzFGH7DlwQ+eEtMnBwH1n4zpPyp4dvlY9XrJO7fn+PbNm6Wf4z/1X5yuxp8spLL+E7w1wcA+PwBsRGLZl36Uh4RhJhzc75H39nnH6Opj8//x+ydft62bxtnaza+J4sXPS8DB8yUvr2HKYrALbBgq8EAQKow329j9a+A609KG8vMVy0cdtHsmnbKtlbuVc+2Woubdz/xLWyr6pMfnvty/KH698FR2fJfU9eLftrK/SKGdviNmxvI1YmawvfkleXPCRnnXilDOwxAePQoHqPW/FjXp4Urt2xUF7+8B750qgfyS8u+limjvyxvPbxvbJqu7lnuKZoPggtKOuLX8aU0SDrihdoeNPu16WuyXx36G7DQfq5ufFcfF7Pd/vtyUrHLzVVBarxP4Vl4/8IzJIHS7otwJCfSIol96B2dfnU/X7GUzbT1ThzYaJv/966GbSzqEQpnWfivaGlD4Vmv7+6RpYuWS41OIfnUXFaeqqMG3cCxH2TLF+xQrp26YLf/9mJIsPStWsX2bZ9G5aN+7V0FecgiIKCXrg0kiSF2z+BGAZh4o/KYbvMbOmKZeHO0h3g6BRp3y5XCos+UZHODptpICzZWR0wXXTWuZ/LRabk5/XA5dJU3BHYqGHmz0jLgmI4XsX3+q1LcDNoF9rsk64d+0st7gPureRKiidpydKlQ3+p3L8bXw+X4U5ihnTOw/+wWrNHw13yBuJKWTE+HtmrwHfO6S9V+NUvuxHUoyMuuLbrLeVVW3GfcIWWyQe/LMrL7IWvg3fgAkolVgf4D3wy+uDj0hLcMN4TyXeInreRfzJsDAV7ruoYzuT/GZgeylMiSPH2CD+y87hv1AV3/54TsIE4HnATbwnAiEV+OAruB7hU2qzhN/QBgEXSSQJ4vP+mwOHCZiO4hCDwnh25w2wbU9snp5DwHPAAMt+hAkWpwOtTmgIpb4gAUgkSgncSOHlRyvH+gjWWADilRQ1bZPSDaFyb9n0bvftLfA+91d5d4WBlv1A4KRjyJ2cGs/GjH73Tp/0bGXepUobB1z+CoH4zLbjnZ7NiwKDjWhevalmdgC7Dybh7lcT7VwDP3AmEiIaI46UNWn6gxq+OuGVMUPRCJw+ctE6jixA8Xri04JuL7MzPr3Q5+5sPSbnsSwQ+MsIYqaWUZSKOlifvpCXUHr1pvlCYRLB1bzhcA/8eHBJN7/jbMtxvf5aDrvMw52NYBZ1E4ABDgHXfHhxnCMK45MbENko8kfwsI1KmITbuPtoVgWmDAZqczDkVOgr6Y4hFuRthxjCvW8LZWJOGJM1Fl+ao4v5/oMMJNw+8Fd5guENSfignKRCqBhEEK3NDu/GbDLkpAx/CINVYANyEECEGDLglBo1TIiFREOjmVonCISaTnwRG0A2BMU4tYmy9BNTkgatAWzgJL/xKDATUEAR9NBZ8E4p/HlXg85ryg/EjYMPezkUFoYqiwnAGCEGJANKgbHeZTOv9xie47/cCB9+CEAGCoFiwFHRHOiiQJAq7Yoh1VaQjDwFXLd9VRkzZcXUq1Aq+5XBDFATf/LUMfhRq67OuHYI27z6LHia+xYoE7ybZhP8bvFe4oigQdkuDQIWE0rw97wHX1REcSwhmt43c7YhrB/QIR7tBTeCPSAwtk8RgyqbEYNluYrPinoRjOdwSAxqg4PNprPXFhpEYSbf5TNxR8cT+qtzRWk+9mThGKZW14V04p7PSgISQgd2cCzp+uBK/A/gU51wFQ8EiBATEAGaIwxAEQVTujoBqwTXEYub9aN7m5RiyigCv9RjuNsDDH+F6CzRdQhsf1mhNMT6Tz8YeJe4T6Cd3/1o03hypC9OSEKw0yIA0KMKVsUZ86p/r7387hrdSgVZCIKgGdvO00sFwr+FUghxrLXdH093EgRJt2QpwPMcb4NmLKNCGMKJxxhd9un1HJfhVGIFfcxRaM96uMiZMa4nALQ2ksFBmNS7ZhJ+DfYBDHxHPugoA/C7QDJxRUN3E4fbbicMCbqWLzRMr6mOBZx6bbjsVJYioz7TVgm5d+8ZR496LnnJ3q1WDxfkkb6EUyjAZL52kIxZg2zHM+AIWq4YK7MTk4q80/P6KStk8E8EclsYtlOaDbAaaz9asvhrJEVuOgZAFREFzw2pKtiXYPMa1IXeeWL957yh5bkY/vwFLHaBV45klT3GHBnB3VFwnySR9oVg+9FQIvv9Wcxx2EXIvCEot15OOQZKTahwnYJMP6EbgdnByQ2j98S6zxsbZkKnOHXL7D9iYtpaBFySePphOAbWwdx5yrpGnPWWyFuFT9T03IZiCxshfJfUJAHA+w62CHn8MZgpAVS2DEg+sQxX2zWbAMyFaWtRnXogPR4o5GjzPoJP2hswB+6sEYHPNAhHQn4gQGH8XDlOrpOhdwN+VYWMMKURDsWEbb90o0NEY63NDauOi+aOgRn3M5Q65/baEo8otQW/Hwe442F4DrXncIIeZaxw8LSEwwk4N9FMq/FraXRCQ+scRdCHt8jLjQZmWwYqCzoKi+aK+2HhTXWyqiTuqnhyAi2GfOpReuwjAvjbXemIIwUTOUudZSb4PwFweyXgYPC2BzqJjoY0NxacehqYcqUX8CQ03lwcPoQdkXYd958WxcZQQWJ6VCvjPXMJ3Ss/2VbJzIaLHMM1t7P0Ad5zbHwu0TYkHNRGs8Xniw7aso9Jdil5Pga0+1N67CMC+Gk8IjI8lBsYkS7tBTVL7Brz5DMeaOFrSxNYBS5yaKDZRXGztR1mIvyk7GXbtp+l3AgKwxSQiBKbNtRngpuImZhMPG1JtZCLobRrdA8PXUo6W4t2lH3V+3qi5AJZ3/T6VcePl9scV1iIxAJXk72Cb9/64Fw4h2BqwraUdQhVtNyvnfM79h91YydCCy5WDtfyU2HsTVAmg9b9aFRBE/Zg98BjccNhRT1BgCwQg7ni+RiL4w6ERwDGQMW6fltB/nwCrzzzKDXq8n5VzS/mPsJ+2U8feO7ix4yGPs3cD3/9Hk4gI2LC7YI+B+dmMAaTsFwP8A9HdTceI4LAzAc/2yXRHjPkuWmou/n823HC0SBl+wfK9Iwb1uIbOQJjXkY8WsA53P8sxdnr6GjeuR1RwJFrL754O9+C09fI4ZqOPKKRbaWwHpPEySVsH7XD1728YqzzYNmewayh7YA/XQLW1cvZibA7rKesXkYKGolGvHiOCZkzA09XhX0TAPos2JaFQara8wdLWuPhQ+1OMMbgKNvo5MwJHi+mFjvKTZfOx/tFFDOzzX2F7wR71ZgJG4BXYQ+WeIzU/j29PPupRjxsA7nKdDfs67JEK7IHaTd3nDNhjppURICHwehOvN9fBHmhQv+jp/Dybd/RPhz1mDnEEhiH/bbBbYL/oQMe3j1/n3ArLVc8x8z+OQDbe57byo7DUmuMH+4sS3oW2PQk7E7Y97BfeHFGnS85odoQ7EfYs2PGwfWGTYf9/mCAq5QeY78C+BPseLIngiDFHIgG4B5eXUfvDngBLYuC5Qy/YXNjPwlSg0ELYVbAEewnseljqKkekOdIJIH7QfYjIh+3jsr3g7wLL+Haw6bB208X2304h+PkyqYWthOWWNaeb7bCczzfBFsKWwpLz24SxA9AmOnOATpA4KDE4XZAA4vvOHx8gAXCDhhxNojhmjo1A2x6B/weHltTZ2fDa8AAAAABJRU5ErkJggg==`,Dt=`mem_notifications`,Ot=`case_notifications`,kt=e=>e===`admin`||e===`internal`,At=new Map;async function jt(e){let t=At.get(e);if(typeof t==`boolean`)return t;try{let t=await(0,J.getDoc)((0,J.doc)(r.ui,`user_profiles`,e)),n=o.Sn(String(t.data()?.role||``));return At.set(e,n),n}catch{return!0}}async function Mt(e,t){return await jt(e)?t===e||jt(t):!1}var Nt=[`email`,`Email`,`emailAddress`,`email_address`,`userEmail`,`contactEmail`,`submitterEmail`],Pt=e=>{for(let t of Nt){let n=e[t];if(typeof n==`string`&&n.includes(`@`))return n.trim()}return``};async function Ft(e){let{toUid:t,toRole:n,title:i,body:a,link:o,email:s,about:c}=e||{},l=c&&typeof c==`object`?Pt(c):``,u=!t&&!n&&!!l;if(!i||!t&&!n&&!u){console.warn(`notify(): needs a title and either toUid (one person) or toRole (an audience).`,e);return}let d=r.li.currentUser;if(!d){console.warn(`notify(): nobody is signed in, so there is no one to send as.`);return}let f=s===!0||u?I.n({toUid:String(t||``),toRole:String(n||``),title:i,body:a||``,link:o||``,...l?{about:{email:l}}:{}}):null;await Promise.all([u?null:It(e,d),f])}async function It(e,t){let{toUid:n,toRole:i,title:a,body:o,link:s}=e,l=String(i||``),u=[];if(n){if(u=await Mt(t.uid,String(n))?[]:[c.E(String(n))],u[0]===`uid:`){console.warn(`notify(): toUid is the recipient’s uid — that one is empty, so the notification would reach nobody.`,e);return}}else if(!kt(l)){let t=c.D(l);if(t===`role:`){console.warn(`notify(): '${l}' is not an audience — pass 'admin', 'internal', or the role as you named it on the Users screen.`,e);return}u=[t]}let d={title:a,body:o||``,link:s||``,uid:t.uid,fromName:t.displayName||t.email||``};if(u.length){try{await(0,J.addDoc)((0,J.collection)(r.ui,Ot),{access:u,editors:u,...d,createdAt:Date.now()})}catch(e){console.warn(`notify(): the notification was not saved. Sending to a role — or to somebody who is not on your team — is kept in case_notifications, which needs the security rules re-pasted from the Setup screen. A sender who is signed out, unverified or deactivated is refused whatever the rules say.`,e)}return}try{await(0,J.addDoc)((0,J.collection)(r.ui,Dt),{...n?{toUid:n}:{toRole:i},...d,createdAt:(0,J.serverTimestamp)()})}catch(e){console.warn(`notify(): the notification was not saved. If the sender is not on your team, re-paste your Firestore rules from /setup — sending from outside the team needs the mem_notifications line added in 1.14.21. A sender who is signed out, unverified or deactivated is refused whatever the rules say.`,e)}}var Lt=e=>{let t=String(e??``).trim();return t.startsWith(`/`)?(t.split(/[?#]/)[0].replace(/\/+$/,``)||`/`).toLowerCase():``},Rt=(e,t)=>Lt(t?.route?String(t.route).startsWith(`/`)?t.route:`/`+t.route:`/`+e);function zt(e,{picks:t,records:r,files:a=i.x()}){let o=Lt(e);if(!o||o===`/`)return null;for(let[e,r]of Object.entries(i.n)){let i=Lt(r.path);if(o===i||o.startsWith(i+`/`))return n.p(t[e])??r.icon??null}let s={};for(let[e,t]of a)t?.isPublic||(s[e]={...t?.config||{},...r[e]||{}});for(let[e,t]of Object.entries(r)){let n=String(t?.fileId||``);n&&n!==e&&!r[n]?(s[e]={...s[n]||{},...t},delete s[n]):s[e]||(s[e]=t)}for(let[e,t]of Object.entries(s))if(Rt(e,t)===o)return n.p(t?.iconName)??n.g;return null}var Bt=()=>{try{let e=localStorage.getItem(`fbos_nav_tabs`),t=e?JSON.parse(e):null;return t&&typeof t==`object`?t:{}}catch{return{}}};function Vt(){let e=i.u(),[t,n]=(0,K.useState)(Bt);return(0,K.useEffect)(()=>r.Zr(`sys_tabs`,()=>(0,J.collection)(r.ui,`sys_tabs`),e=>{let t={};for(let n of e.docs||[])t[n.id]=n.data();n(t)},()=>{}),[]),n=>zt(n,{picks:e,records:t})}function Ht(e){return{id:`c_${e.id}`,type:`message`,title:String(e.title||`Notification`),subtitle:String(e.body||e.fromName||``),time:e.createdAt,link:typeof e.link==`string`&&e.link.startsWith(`/`)?e.link:void 0}}function Ut(e){return{id:`p_${e.id}`,type:`payment`,title:`New payment`,subtitle:r.Hn(e),time:e.at,link:`/transactions?open=${encodeURIComponent(e.id)}`}}function Wt(e){return{id:`p_${e.id}`,type:`payment`,title:`Order placed`,subtitle:r.Hn(e,!1),time:e.at,link:`/billing?open=${encodeURIComponent(e.id)}`}}var Gt={user:Ct,booking:f.t,submission:n.h,request:Ye,verify:lt,role:_t,finish:b.n,message:Ve,payment:i.D};function Kt({n:e}){let t=Vt();return(0,K.createElement)(!e.standing&&t(e.link)||Gt[e.type]||Ye,{className:`w-4 h-4`})}function qt(){let[e,t]=(0,K.useState)(!1),[n,i]=(0,K.useState)([]),a=(0,K.useRef)(null),s=(0,K.useRef)(null),[l,u]=(0,K.useState)(null),d=(0,Y.useNavigate)(),{user:f,userRole:p,roleConfirmed:m,profile:h,requestedRole:g}=r.Ft(),_=p===`admin`,v=r.Cn();ne.l();let y=o.dn(f,h),b=o.Sn(p),x=c.F(Ot,{mine:!0,max:8}),S=r.zn(),C=r.Un(`sales`,f?.uid,_&&m&&S.configured),w=r.Un(`mine`,f?.uid,S.configured);(0,K.useEffect)(()=>{function e(e){a.current&&!a.current.contains(e.target)&&t(!1)}return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[]);let T=(0,K.useRef)({users:[],submissions:[],requests:[],direct:[],rolewide:[],bookings:[],booked:[],bookedByEmail:[],notices:[],sentToMe:[],sales:[],orders:[]}),E=(0,K.useRef)(!1);(0,K.useEffect)(()=>{E.current=!1},[f?.uid]);let D=(e,t)=>{T.current[e]=t;let n=T.current,r=new Set,a=[...n.users,...n.submissions,...n.requests,...n.direct,...n.rolewide,...n.bookings,...n.booked,...n.bookedByEmail,...n.notices,...n.sentToMe,...n.sales,...n.orders].filter(e=>r.has(e.id)?!1:(r.add(e.id),!0));a.sort((e,t)=>{let n=e.time?.toDate?e.time.toDate().getTime():new Date(e.time).getTime();return((t.time?.toDate?t.time.toDate().getTime():new Date(t.time).getTime())||0)-(n||0)}),i(a.slice(0,8))},O=(e,t)=>{E.current||(E.current=!0,console.warn(`AdminNotifications: this account could not read one of the notification feeds, so that part of the bell is empty. Most of them are the team's alone, and every one of them asks for a verified address.`,t)),D(e,[])};(0,K.useEffect)(()=>{let e=[];if(!m)return;if(_){let t=(0,J.query)((0,J.collection)(r.ui,`user_profiles`),(0,J.orderBy)(`createdAt`,`desc`),(0,J.limit)(5));e.push((0,J.onSnapshot)(t,e=>{D(`users`,e.docs.map(e=>{let t=e.data();return{id:`u_${e.id}`,type:`user`,title:`New user registered`,subtitle:t.email||t.phone||`Unknown`,time:t.createdAt,link:`/users/${e.id}`}}))},e=>O(`users`,e)));let n=(0,J.query)((0,J.collection)(r.ui,`user_submissions`),(0,J.orderBy)(`submittedAt`,`desc`),(0,J.limit)(5));e.push((0,J.onSnapshot)(n,e=>{D(`submissions`,e.docs.filter(e=>e.data()?.formId!==`booking`&&!o.nt(e.data()||{})&&!z.a(e.data()||{})).map(e=>{let t=e.data();return{id:`s_${e.id}`,type:`submission`,title:`New form submission`,subtitle:t.name||t.email||`Anonymous`,time:t.submittedAt,link:`/inbox?open=${encodeURIComponent(`anyone:${e.id}`)}`}}))},e=>O(`submissions`,e)));let i=(0,J.query)((0,J.collection)(r.ui,`user_requests`),(0,J.orderBy)(`submittedAt`,`desc`),(0,J.limit)(5));e.push((0,J.onSnapshot)(i,e=>{D(`requests`,e.docs.map(e=>{let t=e.data();return{id:`r_${e.id}`,type:`request`,title:`New support request`,subtitle:t.name||t.submitterName||t.contactEmail||t.email||`Anonymous`,time:t.submittedAt,link:`/inbox?open=${encodeURIComponent(`signedIn:${e.id}`)}`}}))},e=>O(`requests`,e)))}else D(`users`,[]),D(`submissions`,[]),D(`requests`,[]);let t=new Map;if(e.push(()=>{t.forEach(e=>e()),t.clear(),clearTimeout(void 0)}),D(`bookings`,[]),D(`booked`,[]),D(`bookedByEmail`,[]),f?.uid){let t=(0,J.query)((0,J.collection)(r.ui,R.t),(0,J.where)(`uid`,`==`,f.uid)),n=e=>{let t=e.data()||{};return{id:`n_${e.id}`,type:`message`,title:String(t.title||`Notification`),subtitle:String(t.body||``),time:t.createdAt,link:typeof t.link==`string`&&t.link.startsWith(`/`)?t.link:void 0}};e.push((0,J.onSnapshot)(t,e=>{D(`notices`,e.docs.filter(e=>(e.data()||{}).kind===`notice`).map(n))},e=>O(`notices`,e)))}else D(`notices`,[]);if(f?.uid&&(_||b)){let t=e=>{let t=e.data();return{id:`m_${e.id}`,type:`message`,title:t.title||`Notification`,subtitle:t.body||t.fromName||``,time:t.createdAt,link:typeof t.link==`string`&&t.link.startsWith(`/`)?t.link:void 0}},n=(0,J.query)((0,J.collection)(r.ui,Dt),(0,J.where)(`toUid`,`==`,f.uid));e.push((0,J.onSnapshot)(n,e=>D(`direct`,e.docs.map(t)),e=>O(`direct`,e)));let i=_?[`admin`,`internal`]:[`internal`],a=(0,J.query)((0,J.collection)(r.ui,Dt),(0,J.orderBy)(`createdAt`,`desc`),(0,J.limit)(100));e.push((0,J.onSnapshot)(a,e=>D(`rolewide`,e.docs.filter(e=>i.includes((e.data()||{}).toRole)).map(t)),e=>O(`rolewide`,e)))}else D(`direct`,[]),D(`rolewide`,[]);return()=>e.forEach(e=>e())},[_,b,f?.uid,f?.email,m]),(0,K.useEffect)(()=>{let e=f?.uid?c.k(f.uid,p):[];D(`sentToMe`,e.length?x.records.filter(t=>c.w(t,e)).map(Ht):[])},[x.records,f?.uid,p]),(0,K.useEffect)(()=>{D(`sales`,C.map(Ut))},[C]),(0,K.useEffect)(()=>{D(`orders`,w.map(Wt))},[w]);let[k,A]=(0,K.useState)(()=>typeof window<`u`?parseInt(localStorage.getItem(`admin_notifications_last_read`)||`0`,10):0),j=()=>{let n=!e;if(t(n),n){let e=s.current?.getBoundingClientRect();u(typeof window<`u`&&window.innerWidth<640&&e?e.bottom+8:null);let t=Date.now();A(t),typeof window<`u`&&localStorage.setItem(`admin_notifications_last_read`,t.toString())}},M=[];!v.loading&&L.y(h,p,v.finishRegistration,f?.uid)&&M.push({id:`finish-registration`,type:`finish`,title:`Finish registration`,subtitle:`There is still something we need from you.`,time:null,standing:!0,link:`/your-details`}),f&&g&&M.push({id:`role-request`,type:`role`,title:r.Qt,subtitle:r.Zt,time:null,standing:!0,urgent:!0,link:`/profile`}),y&&M.push({id:`verify-email`,type:`verify`,title:`Verify your email`,subtitle:`Open the link we sent to ${y} and you can sign in with it too. Nothing is waiting on it.`,time:null,standing:!0,link:`/verify`});let N=M.length?[...M,...n]:n,P=N.some(e=>{if(e.standing)return!0;if(e.silent)return!1;if(!e.time)return!0;let t=e.time?.toDate?e.time.toDate().getTime():new Date(e.time).getTime();return t>k||isNaN(t)}),ee=e=>{t(!1),e.link?d(e.link):e.type===`user`?d(`/users`):e.type===`booking`?d(b?`/schedule`:`/my-bookings`):e.type===`submission`||e.type===`request`?d(`/inbox`):e.type===`verify`||e.type===`role`?d(`/profile`):e.type===`finish`?d(`/your-details`):e.type===`payment`&&d(_?`/transactions`:`/billing`)},F=e=>{if(!e)return``;let t=e.toDate?e.toDate():new Date(e),n=Date.now()-t.getTime();if(isNaN(n))return``;let r=Math.floor(n/6e4);if(r<1)return`now`;if(r<60)return`${r}m`;let i=Math.floor(r/60);if(i<24)return`${i}h`;let a=Math.floor(i/24);return a<7?`${a}d`:new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`}).format(t)};return(0,q.jsxs)(`div`,{className:`relative z-50 flex-shrink-0`,ref:a,children:[(0,q.jsxs)(`button`,{ref:s,onClick:j,className:`w-9 h-9 rounded-xl border border-[var(--panel-border)] transition-all relative text-foreground/60 hover:bg-foreground/5 hover:text-foreground flex items-center justify-center shadow-sm cursor-pointer`,"aria-label":`Notifications`,children:[(0,q.jsx)(Ve,{className:`w-4 h-4`}),P&&(0,q.jsx)(`span`,{className:`absolute top-1.5 right-1.5 w-2 h-2 bg-[var(--notification-icon-color)] rounded-full animate-pulse`})]}),(0,q.jsx)(r.rt,{children:e&&(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:-5,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.98,y:-5},className:`${l===null?`absolute top-full mt-2 right-0`:`fixed right-4`} w-[min(320px,calc(100vw-2rem))] md:w-[400px] glass-popover border border-[var(--panel-border)] rounded-2xl z-50 flex flex-col origin-top-right overflow-hidden`,style:l===null?void 0:{top:l},children:[(0,q.jsxs)(`div`,{className:`px-4 border-b border-[var(--panel-border)]/50 pb-3 pt-4 flex items-center justify-between`,children:[(0,q.jsx)(`span`,{className:`font-bold text-[14px] text-foreground tracking-wide`,children:`Notifications`}),(_||b)&&(0,q.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-widest text-accent bg-accent/10 px-2 py-0.5 rounded-md`,children:_?`Admin`:`Team`})]}),(0,q.jsx)(`div`,{className:`max-h-[350px] overflow-y-auto w-full p-2 flex flex-col gap-1`,children:N.length===0?(0,q.jsx)(`div`,{className:`p-6 text-center text-foreground/40 text-[13px] font-medium`,children:`No recent activity.`}):N.map(e=>(0,q.jsxs)(`button`,{onClick:()=>ee(e),className:`w-full flex items-start gap-3 p-3 rounded-xl hover:bg-foreground/5 transition-all text-left group border border-transparent hover:border-[var(--panel-border)]`,children:[(0,q.jsx)(`div`,{className:`mt-0.5 w-8 h-8 rounded-full flex items-center justify-center shrink-0 ${e.urgent?`bg-red-500/10 text-red-500`:`bg-foreground/5 text-notification-icon`}`,children:(0,q.jsx)(Kt,{n:e})}),(0,q.jsxs)(`div`,{className:`flex flex-col flex-1 min-w-0`,children:[(0,q.jsxs)(`div`,{className:`flex items-baseline gap-2`,children:[(0,q.jsx)(`span`,{className:`text-[13px] font-semibold text-foreground group-hover:text-accent transition-colors truncate flex-1 min-w-0`,children:e.title}),(0,q.jsx)(`span`,{className:`text-[10px] font-mono tracking-wide text-foreground/40 shrink-0`,children:F(e.time)})]}),(0,q.jsx)(`span`,{className:`text-[12px] text-foreground/60 ${e.standing?`leading-snug`:`truncate`}`,children:e.subtitle})]})]},e.id))})]})})]})}var Jt=[{id:`contact`,hidden:!1}],Yt={route:`/support`,template:`popup_form`,form:`support`,tabName:`Support`,iconName:``},Xt={"/contact":n.h},Zt=e=>e&&Xt[e]||n.g,Qt=`text-[13px] md:text-[14px] font-bold tracking-wide text-foreground/50 hover:text-accent transition-all cursor-pointer flex items-center gap-1.5`;function $t({pages:e}){let[t,n]=(0,K.useState)(null),[a,o]=(0,K.useState)(!1),{rowRef:c,measureRef:l,visible:u}=i.s({count:e.length,listKey:e.map(e=>e.label+(e.submenu?` ▾`:``)).join(`|`),shown:!0,gap:28,moreButtonWidth:50}),d=e.slice(0,u),f=e.slice(u);return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{ref:l,"aria-hidden":`true`,className:`flex items-center gap-7 whitespace-nowrap px-1`,style:{position:`fixed`,top:-9999,left:0,visibility:`hidden`,height:0,pointerEvents:`none`},children:e.map((e,t)=>(0,q.jsxs)(`span`,{"data-measure":!0,className:`text-[13px] md:text-[14px] font-bold tracking-wide flex items-center gap-1.5 shrink-0`,children:[e.label,e.submenu&&(0,q.jsx)(s.t,{className:`w-3 h-3`})]},t))}),(0,q.jsxs)(`div`,{className:`flex items-center gap-7 w-full min-w-0 justify-end relative`,ref:c,children:[d.map((e,i)=>(0,q.jsxs)(`div`,{className:`relative shrink-0`,onMouseEnter:()=>n(e.label),onMouseLeave:()=>n(null),children:[e.path?(0,q.jsxs)(Y.Link,{to:e.path,className:Qt,children:[e.label,e.submenu&&(0,q.jsx)(s.t,{className:`w-3 h-3`})]}):(0,q.jsxs)(`button`,{onClick:e.action,className:Qt,children:[e.label,e.submenu&&(0,q.jsx)(s.t,{className:`w-3 h-3`})]}),e.submenu&&t===e.label&&(0,q.jsx)(`div`,{className:`absolute top-[100%] left-0 pt-2 z-50`,children:(0,q.jsx)(r.nt.div,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},className:`min-w-[180px] max-h-[300px] overflow-y-auto styled-scrollbars bg-background/95 backdrop-blur-xl border border-[var(--panel-border)] rounded-2xl shadow-xl flex flex-col py-2`,children:e.submenu.map((e,t)=>e.path?(0,q.jsx)(Y.Link,{to:e.path,className:`px-5 py-3 text-[13px] font-medium text-foreground/70 hover:text-foreground hover:bg-foreground/5 transition-colors`,children:e.label},t):(0,q.jsx)(`button`,{onClick:e.action,className:`px-5 py-3 text-left w-full text-[13px] font-medium text-foreground/70 hover:text-foreground hover:bg-foreground/5 transition-colors`,children:e.label},t))})})]},`${e.path||`no-path`}-${i}`)),f.length>0&&(0,q.jsxs)(`div`,{className:`relative flex items-center shrink-0`,onMouseEnter:()=>o(!0),children:[(0,q.jsx)(`button`,{onClick:()=>o(e=>!e),"aria-label":`More pages`,"aria-expanded":a,className:`p-1 rounded-lg transition-colors flex items-center ${a?`bg-foreground/5 text-accent`:`text-foreground/50 hover:bg-foreground/5 hover:text-accent`}`,children:(0,q.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`w-5 h-5`,children:[(0,q.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1`}),(0,q.jsx)(`circle`,{cx:`12`,cy:`5`,r:`1`}),(0,q.jsx)(`circle`,{cx:`12`,cy:`19`,r:`1`})]})}),(0,q.jsx)(r.rt,{children:a&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{className:`fixed inset-0 z-40`,onClick:()=>o(!1)}),(0,q.jsx)(r.nt.div,{initial:{opacity:0,y:5,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:5,scale:.98},className:`absolute top-[100%] pt-1 right-0 min-w-[200px] max-h-[350px] overflow-y-auto styled-scrollbars glass-popover border border-[var(--panel-border)] rounded-2xl flex flex-col py-2 z-50 origin-top-right`,children:f.map((e,t)=>e.path?(0,q.jsx)(Y.Link,{to:e.path,onClick:()=>o(!1),className:`px-5 py-3 text-[13px] font-bold tracking-wide text-foreground/70 hover:text-foreground hover:bg-foreground/5 transition-colors`,children:e.label},t):(0,q.jsx)(`button`,{onClick:()=>{e.action&&e.action(),o(!1)},className:`px-5 py-3 text-left w-full text-[13px] font-bold tracking-wide text-foreground/70 hover:text-foreground hover:bg-foreground/5 transition-colors`,children:e.label},t))})]})})]})]})]})}function en({pages:e,onNavigate:t}){return(0,q.jsx)(q.Fragment,{children:e.map((e,n)=>{let r=Zt(e.path);return e.path?(0,q.jsxs)(Y.Link,{to:e.path,onClick:t,className:`flex items-center gap-3 px-3 py-2.5 rounded-xl hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all min-w-0`,children:[(0,q.jsx)(r,{className:`w-4 h-4 text-accent/70 shrink-0`}),` `,(0,q.jsx)(`span`,{className:`text-[14px] font-semibold truncate`,children:e.label})]},`${e.path}-${n}`):(0,q.jsxs)(`button`,{onClick:()=>{e.action&&e.action(),t?.()},className:`flex items-center gap-3 px-3 py-2.5 rounded-xl hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all w-full text-left min-w-0`,children:[(0,q.jsx)(r,{className:`w-4 h-4 text-accent/70 shrink-0`}),` `,(0,q.jsx)(`span`,{className:`text-[14px] font-semibold truncate`,children:e.label})]},`${e.label}-${n}`)})})}function tn({pages:e,phone:t,onNavigate:n}){return t?(0,q.jsx)(en,{pages:e,onNavigate:n}):(0,q.jsx)($t,{pages:e})}var nn=e=>{if(!r.oi(e))return!1;let t=String(e?.message??e??``);return/\.(tsx|ts|jsx)\b|\/src\//.test(t)?!1:/https?:\/\/|\/assets\//.test(t)?!0:j.u()},rn=e=>{if(e?.didNotArrive===!0||r.oi(e))return!0;let t=String(e?.message??e??``);return/Minified React error #306\b|lazy element type must resolve/i.test(t)},an=e=>!!e&&typeof e==`object`&&e.$$typeof===Symbol.for(`react.lazy`),on=class extends K.default.Component{state={failed:!1,passOn:null,reloading:!1};static getDerivedStateFromError(e){return{failed:!0,passOn:e,reloading:nn(e)&&r.ai()>0}}componentDidCatch(e){this.passesOn(e)||this.state.reloading&&r.ci(this.props.reload)||(this.state.reloading&&this.setState({reloading:!1}),j.o(this.props.which,e))}passesOn(e){return this.props.neverPutAside?!0:!!this.props.onlyMissing&&!rn(e)}render(){if(this.state.failed&&this.passesOn(this.state.passOn)){let e=this.state.passOn;throw queueMicrotask(()=>j.o(this.props.which,e,`threw`)),e}return this.state.reloading?null:this.state.failed?this.props.fallback:this.props.children}};function sn(e){let t=r.mi().components?.Menu;return t?(0,q.jsx)(on,{which:`menu`,fallback:(0,q.jsx)(tn,{...e}),children:(0,q.jsx)(K.Suspense,{fallback:null,children:(0,q.jsx)(t,{...e})})}):(0,q.jsx)(tn,{...e})}var cn=()=>document.querySelector(`[aria-modal="true"]`)!==null,ln=e=>{let t=new MutationObserver(e);return t.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`aria-modal`]}),()=>t.disconnect()};function un({isAdmin:e}){let t=j.d(e),i=a.i(),o=(0,K.useSyncExternalStore)(ln,cn,()=>!1),[s,c]=(0,K.useState)(!1);if(!t.length||o)return null;let l=r.ri(j.s(t));return(0,q.jsx)(`div`,{role:`status`,className:`fixed left-1/2 -translate-x-1/2 z-30 w-[calc(100%-2rem)] max-w-md transition-[bottom] duration-300 ${i?`bottom-40`:`bottom-[4.5rem]`}`,children:(0,q.jsxs)(`div`,{className:`glass-popover rounded-2xl px-4 py-3 flex items-center gap-3`,children:[(0,q.jsx)(rt,{className:`w-4 h-4 shrink-0 text-accent`}),(0,q.jsxs)(`p`,{className:`text-[13px] font-semibold text-foreground/80 leading-snug flex-1 min-w-0`,children:[l.short.replace(j.i,``).trim(),(0,q.jsxs)(`span`,{className:`max-sm:hidden`,children:[` `,j.i]})]}),(0,q.jsxs)(`button`,{type:`button`,onClick:()=>{navigator.clipboard?.writeText(l.message).catch(()=>{}),c(!0),setTimeout(()=>{c(!1),j.l(t)},1500)},"aria-label":s?`Copied`:`Copy the fix`,className:`shrink-0 inline-flex items-center justify-center gap-1.5 h-8 w-8 px-0 sm:w-auto sm:px-3 rounded-[var(--btn-radius,0.75rem)] text-[12px] font-semibold border ${s?`copy-btn-done border-[var(--panel-border)] text-foreground/60`:`copy-btn cursor-pointer`}`,children:[s?(0,q.jsx)(r.At,{className:`copy-icon w-3.5 h-3.5`}):(0,q.jsx)(n._,{className:`copy-icon w-3.5 h-3.5`}),(0,q.jsx)(`span`,{className:`max-sm:hidden`,children:s?`Copied`:`Copy the fix`})]}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>j.l(t),"aria-label":`Hide this`,className:`shrink-0 text-[13px] font-bold text-foreground/40 hover:text-foreground/70 transition-colors`,children:`✕`})]})})}var dn=(0,K.createContext)({wide:!1,setWide:()=>{},cap:0,setCap:()=>{}});function fn({children:e}){let[t,n]=(0,K.useState)(!1),[r,i]=(0,K.useState)(0);return(0,q.jsx)(dn.Provider,{value:{wide:t,setWide:n,cap:r,setCap:i},children:e})}var pn=()=>(0,K.useContext)(dn).wide,mn=()=>{let{wide:e,cap:t}=(0,K.useContext)(dn);return e?t:0};function hn(e=!0){let{setWide:t,setCap:n}=(0,K.useContext)(dn);(0,K.useLayoutEffect)(()=>{if(e)return t(!0),()=>t(!1)},[e,t]),(0,K.useLayoutEffect)(()=>{if(e)return bn()},[e]),(0,K.useLayoutEffect)(()=>{if(e)return yn(n)},[e,n])}var gn=.5,_n=400;function vn(e,t){if(!e||!t||typeof window>`u`)return 0;let n=getComputedStyle(t),r=(parseFloat(n.paddingLeft)||0)+(parseFloat(n.paddingRight)||0),i=window.innerHeight*gn,a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(let e=0,t=a.nextNode();t&&e<_n;t=a.nextNode(),e++){let e=t,n=getComputedStyle(e);if(n.position===`fixed`||n.display===`none`)continue;let a=parseFloat(n.maxWidth);if(!Number.isFinite(a)||a<960)continue;let o=e.getBoundingClientRect();if(o.width<=0||o.height<=0)continue;if(o.top>i)break;let s=e.parentElement?.getBoundingClientRect();if(!s)continue;let c=o.left-s.left,l=s.right-o.right;if(Math.abs(c-l)>2)continue;let u=a-(parseFloat(n.paddingLeft)||0)-(parseFloat(n.paddingRight)||0)-(parseFloat(n.borderLeftWidth)||0)-(parseFloat(n.borderRightWidth)||0);return Math.round(u+r)}return 0}function yn(e){if(typeof document>`u`)return()=>{};let t=0,n=()=>{t=0,e(vn(document.querySelector(`.fbos-home-slot, .fbos-page-canvas`),document.querySelector(`.firebase-os > nav, .firebase-os nav`)))},r=()=>{t||=requestAnimationFrame(n)};n();let i=[300,1e3,2500].map(e=>setTimeout(r,e)),a=document.querySelector(`.fbos-home-slot, .fbos-page-canvas`),o=a&&typeof MutationObserver<`u`?new MutationObserver(r):null;return o?.observe(a,{childList:!0,subtree:!0}),window.addEventListener(`resize`,r),()=>{i.forEach(clearTimeout),t&&cancelAnimationFrame(t),o?.disconnect(),window.removeEventListener(`resize`,r),e(0)}}function bn(){if(typeof document>`u`)return()=>{};let e=document.documentElement,t=document.querySelector(`.firebase-os > nav, .firebase-os nav`);if(!t)return()=>{};let n=()=>e.style.setProperty(`--menu-h`,`${Math.round(t.getBoundingClientRect().height)}px`);n();let r=typeof ResizeObserver<`u`?new ResizeObserver(n):null;return r?.observe(t),window.addEventListener(`resize`,n),()=>{r?.disconnect(),window.removeEventListener(`resize`,n),e.style.removeProperty(`--menu-h`)}}function xn({onNavigate:e}){let{user:t}=r.Ft(),{bought:n}=r.Ln(t?.uid);return n?(0,q.jsxs)(Y.Link,{to:`/billing`,onClick:e,className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,q.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,q.jsx)(i.D,{className:`w-3 h-3 text-accent`})}),`Billing`]}):null}function Sn({onNavigate:e}){return(0,q.jsx)(q.Fragment,{children:i.r().map(t=>{let n=t.icon;return(0,q.jsxs)(Y.Link,{to:t.path,onClick:e,"data-own-tab":t.id,className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,q.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,q.jsx)(n,{className:`w-3 h-3 text-accent`})}),(0,q.jsx)(`span`,{className:`truncate min-w-0`,children:t.label})]},t.id)})})}var Cn={contact:{label:`Contact`,path:`/contact`}},wn=`fbos_public_menu`,Tn=()=>{try{let e=localStorage.getItem(wn),t=e?JSON.parse(e):null;return t&&typeof t==`object`?t:{}}catch{return{}}},En=e=>{try{localStorage.setItem(wn,JSON.stringify({...Tn(),...e}))}catch{}},Dn=new Set([`setup`,`templates`,`guide`]),On=1.6,kn=`logo-shape:`,An={shape:`unknown`,ratio:0},jn=e=>({shape:e>=On?`wide`:`square`,ratio:e}),Mn=e=>{if(!e)return An;try{let t=localStorage.getItem(kn+e);if(t===`wide`)return{shape:`wide`,ratio:0};if(t===`square`)return{shape:`square`,ratio:0};let n=Number(t);return t&&Number.isFinite(n)&&n>0?jn(n):An}catch{return An}};function Nn(e){let[t,n]=(0,K.useState)(null),r=t&&t.url===e?t.measure:Mn(e);return(0,K.useEffect)(()=>{if(!e||Mn(e).shape!==`unknown`||typeof Image>`u`)return;let t=new Image;return t.onload=()=>{let r=Math.round(t.naturalWidth/Math.max(1,t.naturalHeight)*100)/100;try{localStorage.setItem(kn+e,String(r))}catch{}n({url:e,measure:jn(r)})},t.onerror=()=>n({url:e,measure:{shape:`square`,ratio:0}}),t.src=e,()=>{t.onload=null,t.onerror=null}},[e]),r}function Pn({customMenu:e,standalone:t}){let{user:s,userRole:c,signOut:l,roleResolved:u,profileReady:d,profile:f}=r.Ft(),p=!!s&&u!==!1&&d!==!1,m=o.wn(c),[g,_]=(0,K.useState)(!1),[v,y]=(0,K.useState)(!1),[b,x]=(0,K.useState)(!1),[C,w]=(0,K.useState)(!1),T=String(f?.displayName||``).trim()||s?.displayName||s?.email?.split(`@`)[0]||``,E=T.charAt(0).toUpperCase()+T.slice(1),D=(0,q.jsx)(`span`,{className:`block h-3 w-16 rounded bg-foreground/5 animate-pulse`,"aria-hidden":`true`}),{theme:O,toggleTheme:k,activeConfig:A,canSwitchTheme:j}=i.N(),M=sn,N=async()=>{await l(),_(!1)},[P,ee]=(0,K.useState)(()=>Tn().info??{...Cn}),[F,te]=(0,K.useState)(()=>Tn().order??Jt),[I,L]=(0,K.useState)(Yt.tabName);(0,K.useEffect)(()=>{if(!r.ui)return;let e=(0,J.onSnapshot)((0,J.collection)(r.ui,`sys_pages`),e=>{let t={...Cn};for(let[e,n]of i.x()){if(!n.isPublic)continue;let r=n.config||{};if(r.enabled===!1)continue;let a=r.route?r.route.startsWith(`/`)?r.route:`/`+r.route:`/`+e;t[e]={label:r.pageName||r.pageTitle||r.title||e,path:a,iconName:r.iconName||``,offMenu:i.y(r)}}e.forEach(e=>{let n=e.data(),r=String(n.fileId||``),i=r&&t[r]||t[e.id];if(r&&r!==e.id&&delete t[r],n.enabled===!1)return;let a=n.pageName||n.title||Cn[e.id]?.label||e.id,o=n.route||(e.id===`home`?`/`:`/`+e.id);t[e.id]={label:a,path:o,iconName:n.iconName||t[e.id]?.iconName||``,offMenu:i?.offMenu}});for(let e of Dn)delete t[e];ee(t),En({info:t})},e=>{a.s(e)}),t=(0,J.onSnapshot)((0,J.doc)(r.ui,`sys_configs`,`page_order`),e=>{let t=e.exists()&&Array.isArray(e.data().order)?i.c(e.data().order):Jt;te(t),En({order:t})},()=>{}),n=(0,J.onSnapshot)((0,J.doc)(r.ui,`sys_tabs`,`support`),e=>{e.exists()&&e.data().pageName&&L(e.data().pageName)},()=>{});return()=>{e(),t(),n()}},[]);let ne=(()=>{let e=new Set(F.filter(e=>e.hidden).map(e=>e.id)),t=new Set,n=[];return F.forEach(e=>{if(e.hidden||e.id===`home`)return;let r=P[e.id];r&&(n.push({label:r.label,path:r.path,iconName:r.iconName}),t.add(e.id))}),Object.entries(P).forEach(([r,i])=>{!t.has(r)&&!e.has(r)&&!i.offMenu&&r!==`home`&&i.path!==`/`&&i.path!==`/support`&&n.push({label:i.label,path:i.path,iconName:i.iconName})}),n})(),R=e||ne,z=t?[]:R.filter(e=>e.path&&n.p(e.iconName)),re=!t&&R.some(e=>n.d(e.iconName));(0,K.useEffect)(()=>{re&&n.m()},[re]);let ie=z.length?R.filter(e=>!z.includes(e)):R,[B,V]=(0,K.useState)(()=>typeof window<`u`&&window.innerWidth<640);(0,K.useEffect)(()=>{if(typeof window>`u`)return;let e=()=>{let e=window.innerWidth<640;V(t=>(t!==e&&_(!1),e))};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let ae=!t&&!s&&!B,oe=pn(),H=mn(),{shape:se,ratio:U}=Nn(A?.logoUrl),ce=se===`square`&&!!A?.logoUrl&&U>1.05;return(0,q.jsxs)(`nav`,{className:`flex items-center justify-between w-full ${oe?`px-4 pt-4 pb-3 md:px-8 md:pt-10 md:pb-6`:`max-w-7xl px-4 py-4 md:px-8 md:py-10`} mx-auto z-40 relative`,style:H?{maxWidth:H}:void 0,children:[(0,q.jsx)(`div`,{className:`flex items-center min-w-0 z-50`,children:(0,q.jsx)(Y.Link,{to:`/`,className:`flex items-center gap-2 md:gap-2.5 lg:gap-3 group cursor-pointer z-50 min-w-0`,"aria-label":se===`wide`?A?.appName||`Home`:void 0,children:se===`wide`&&A?.logoUrl?(0,q.jsx)(`img`,{src:A.logoUrl,alt:A?.appName||``,"data-wide-logo":!0,draggable:!1,className:`h-6 md:h-7 lg:h-7 w-auto max-w-[140px] md:max-w-[180px] lg:max-w-[200px] object-contain object-left transition-opacity duration-300 group-active:opacity-80`}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{"data-logo-tile":ce?`wide`:`square`,"data-logo-ratio":ce?String(U):void 0,style:ce?{aspectRatio:String(U)}:void 0,className:`h-8 md:h-9 ${ce?`w-auto`:`w-8 md:w-9 group-hover:rotate-180`} rounded-lg glass-panel flex items-center justify-center glow-hover shadow-lg transition-transform duration-500 group-active:scale-95 overflow-hidden shrink-0`,children:A?.logoUrl?(0,q.jsx)(r.O,{src:A.logoUrl,alt:`Logo`,fit:`contain`,priority:!0,className:`w-full h-full`,imgClassName:`max-md:p-0.5`}):(0,q.jsx)(`img`,{src:Et,alt:``,"aria-hidden":`true`,draggable:!1,"data-brand-mark":!0,className:`w-full h-full object-cover`})}),(0,q.jsx)(`span`,{className:`font-display font-bold text-[17px] md:text-[19px] lg:text-[22px] tracking-tight text-gradient transition-all duration-300 drop-shadow-sm truncate`,children:A?.appName||``})]})})}),(0,q.jsx)(r.rt,{children:v&&(0,q.jsx)(h.t,{formId:`contact`,onClose:()=>y(!1)})}),(0,q.jsx)(r.rt,{children:b&&(0,q.jsx)(h.t,{formId:`support`,onClose:()=>x(!1)})}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2.5 md:gap-4 z-50 relative ml-auto flex-1 min-w-0 justify-end`,children:[ae&&(0,q.jsx)(`div`,{className:`flex items-center flex-1 min-w-0 justify-end mr-6`,children:(0,q.jsx)(M,{pages:ie,phone:!1})}),z.length>0&&(0,q.jsx)(`div`,{className:`flex items-center gap-1.5 sm:gap-2 shrink-0`,children:z.map((e,t)=>{let r=n.p(e.iconName)||n.g;return(0,q.jsx)(Y.Link,{to:e.path,"aria-label":e.label,title:e.label,className:`w-9 h-9 rounded-xl border border-[var(--panel-border)] hover:bg-foreground/5 transition-all text-foreground/60 hover:text-foreground flex items-center justify-center shadow-sm shrink-0 cursor-pointer`,children:(0,q.jsx)(r,{className:`w-4 h-4`})},`${e.path}-${t}`)})}),!t&&!s&&(0,q.jsxs)(q.Fragment,{children:[j&&(0,q.jsx)(`button`,{onClick:k,className:`w-9 h-9 rounded-xl border border-[var(--panel-border)] hover:bg-foreground/5 transition-all text-foreground/60 hover:text-foreground flex items-center justify-center shadow-sm shrink-0 cursor-pointer`,"aria-label":`Toggle Theme`,children:O===`dark`?(0,q.jsx)(yt,{className:`w-4 h-4`}):(0,q.jsx)(ht,{className:`w-4 h-4`})}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2.5 shrink-0`,children:[!B&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Y.Link,{to:`/login`,className:`flex text-[14px] font-bold tracking-wide text-foreground/80 hover:text-accent transition-colors px-3 py-1.5 shrink-0`,children:`Sign In`}),(0,q.jsx)(Y.Link,{to:`/register`,className:`flex text-[13px] md:text-[14px] font-bold tracking-wide px-4 py-1.5 md:px-5 md:py-2 rounded-xl btn-primary transition-all duration-300 hover:shadow-lg hover:-translate-y-0.5 active:scale-95 items-center justify-center ml-2 shrink-0`,children:`Get Started`})]}),B&&(0,q.jsxs)(`div`,{className:`relative shrink-0`,children:[(0,q.jsx)(`button`,{onClick:()=>_(g===`guest`?!1:`guest`),"aria-label":`Open menu`,"aria-expanded":g===`guest`,className:`w-9 h-9 rounded-xl glass-panel glow-hover border transition-all flex items-center justify-center ${g===`guest`?`border-accent bg-foreground/5`:`border-[var(--panel-border)] hover:bg-foreground/5`}`,children:(0,q.jsx)(dt,{className:`w-5 h-5 text-accent/80`})}),(0,q.jsx)(r.rt,{children:g===`guest`&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{className:`fixed inset-0 z-40`,onClick:()=>_(!1)}),(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.95},className:`absolute top-full right-0 mt-3 w-[220px] p-2 glass-popover border border-[var(--panel-border)] rounded-2xl z-50 flex flex-col gap-1 origin-top-right`,children:[(0,q.jsx)(M,{pages:ie,phone:!0,onNavigate:()=>_(!1)}),(0,q.jsx)(`div`,{className:`pt-2 mt-1 border-t border-[var(--panel-border)]/50 flex flex-col gap-1`,children:(0,q.jsxs)(Y.Link,{to:`/login`,onClick:()=>_(!1),className:`flex items-center gap-3 px-3 py-2.5 rounded-xl hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all w-full`,children:[(0,q.jsx)(a.o,{className:`w-4 h-4 text-accent/70`}),` `,(0,q.jsx)(`span`,{className:`text-[14px] font-semibold`,children:`Sign In`})]})})]})]})})]})]})]}),!t&&p&&s&&(0,q.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,q.jsx)(qt,{}),j&&(0,q.jsx)(`button`,{onClick:k,className:`w-9 h-9 rounded-xl border border-[var(--panel-border)] hover:bg-foreground/5 transition-all text-foreground/60 hover:text-foreground flex items-center justify-center shadow-sm shrink-0 cursor-pointer`,"aria-label":`Toggle Theme`,children:O===`dark`?(0,q.jsx)(yt,{className:`w-4 h-4`}):(0,q.jsx)(ht,{className:`w-4 h-4`})}),(0,q.jsxs)(`div`,{className:`relative z-50 flex-shrink-0`,children:[(0,q.jsxs)(`button`,{onClick:()=>_(g===`user`?!1:`user`),className:`flex items-center gap-2 group p-0.5 sm:p-1 sm:pr-2.5 rounded-full hover:bg-foreground/5 transition-all duration-300 cursor-pointer sm:border ${g===`user`?`sm:border-accent/50 sm:bg-foreground/5`:`sm:border-[var(--panel-border)] sm:hover:border-accent/30`}`,children:[(0,q.jsx)(`div`,{className:`w-8 h-8 md:w-9 md:h-9 rounded-full bg-accent/10 flex items-center justify-center overflow-hidden border sm:border-0 transition-colors shrink-0 text-accent ${g===`user`?`border-accent/50`:`border-[var(--panel-border)] group-hover:border-accent/30`}`,children:s.photoURL&&!C?(0,q.jsx)(r.O,{src:s.photoURL,alt:`Profile`,className:`w-full h-full`,onError:()=>w(!0)}):(0,q.jsx)(Ct,{className:`w-4 h-4 md:w-5 md:h-5 text-accent`})}),(0,q.jsx)(`div`,{className:`max-sm:hidden sm:flex text-left mr-1 items-center min-w-[70px] max-w-[160px]`,children:E?(0,q.jsx)(`span`,{className:`text-[12px] font-extrabold leading-tight text-foreground truncate w-full`,children:E}):D})]}),(0,q.jsx)(r.rt,{children:g===`user`&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{className:`fixed inset-0 z-40`,onClick:()=>_(!1)}),(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:-5,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.98,y:-5},className:`absolute top-full mt-2 right-0 w-[280px] md:w-[320px] max-h-[calc(100svh-6rem)] overflow-y-auto overscroll-contain glass-popover border border-[var(--panel-border)] rounded-2xl p-2 z-50 flex flex-col origin-top-right`,children:[(0,q.jsxs)(`div`,{className:`p-3 border-b border-[var(--panel-border)]/50 mb-1 flex flex-col gap-1.5`,children:[E?(0,q.jsx)(`span`,{className:`font-bold text-[15px] text-foreground truncate`,children:E}):(0,q.jsx)(`span`,{className:`block h-3.5 w-24 my-[3px] rounded bg-foreground/5 animate-pulse`,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`text-[12px] text-foreground/50 truncate font-mono`,children:s.email})]}),(0,q.jsxs)(`div`,{className:`py-1`,children:[(0,q.jsxs)(Y.Link,{to:`/dashboard`,onClick:()=>_(!1),className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,q.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,q.jsx)(S._,{className:`w-3 h-3 text-accent`})}),`Dashboard`]}),(0,q.jsx)(Sn,{onNavigate:()=>_(!1)}),m&&(0,q.jsxs)(Y.Link,{to:`/assets`,onClick:()=>_(!1),className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,q.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,q.jsx)(i.k,{className:`w-3 h-3 text-accent`})}),`Assets`]}),c===`admin`&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(Y.Link,{to:`/users`,onClick:()=>_(!1),className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,q.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,q.jsx)(i.S,{className:`w-3 h-3 text-accent`})}),`Users`]}),(0,q.jsxs)(Y.Link,{to:`/inbox`,onClick:()=>_(!1),className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,q.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,q.jsx)(i.O,{className:`w-3 h-3 text-accent`})}),`Inbox`]}),(0,q.jsxs)(Y.Link,{to:`/pages`,onClick:()=>_(!1),className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,q.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,q.jsx)(n.g,{className:`w-3 h-3 text-accent`})}),`Pages`]}),(0,q.jsxs)(Y.Link,{to:`/publish`,onClick:()=>_(!1),className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,q.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,q.jsx)(i.w,{className:`w-3 h-3 text-accent`})}),`Publish App`]}),(0,q.jsxs)(Y.Link,{to:`/setup`,onClick:()=>_(!1),className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,q.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,q.jsx)(Tt,{className:`w-3 h-3 text-accent`})}),`Setup`]})]}),c!==`admin`&&(0,q.jsxs)(Y.Link,{to:`/support`,onClick:()=>_(!1),className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3 text-left`,children:[(0,q.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,q.jsx)(Ye,{className:`w-3 h-3 text-accent`})}),I]}),(0,q.jsx)(xn,{onNavigate:()=>_(!1)}),(0,q.jsxs)(Y.Link,{to:`/profile`,onClick:()=>_(!1),className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,q.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,q.jsx)(Ct,{className:`w-3 h-3 text-accent`})}),`Profile Settings`]})]}),(0,q.jsx)(`div`,{className:`pt-1 mt-1 border-t border-[var(--panel-border)]/50`,children:(0,q.jsxs)(`button`,{onClick:N,className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-bold tracking-wide hover:bg-red-500/10 hover:text-red-500 text-foreground/70 transition-all gap-3`,children:[(0,q.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-red-500/5 flex items-center justify-center shrink-0 text-red-500`,children:(0,q.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`w-3 h-3`,children:[(0,q.jsx)(`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`}),(0,q.jsx)(`polyline`,{points:`16 17 21 12 16 7`}),(0,q.jsx)(`line`,{x1:`21`,y1:`12`,x2:`9`,y2:`12`})]})}),`Sign Out`]})})]})]})})]})]}),t&&(0,q.jsx)(q.Fragment,{children:j&&(0,q.jsx)(`button`,{onClick:k,className:`w-9 h-9 rounded-xl border border-[var(--panel-border)] hover:bg-foreground/5 transition-all text-foreground/60 hover:text-foreground flex items-center justify-center shadow-sm shrink-0 cursor-pointer`,"aria-label":`Toggle Theme`,children:O===`dark`?(0,q.jsx)(yt,{className:`w-4 h-4`}):(0,q.jsx)(ht,{className:`w-4 h-4`})})})]})]})}var Fn=`https://youtu.be/YOyuogCNq9Y`;function In(){let[e,t]=(0,K.useState)(null),[n,i]=(0,K.useState)(!1);return(0,q.jsxs)(`main`,{className:`flex-1 flex flex-col items-center justify-center w-full px-4 md:px-8 mb-16 md:mb-24 z-10 relative`,children:[(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:`text-center mb-8 md:mb-12`,children:[(0,q.jsxs)(r.nt.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.2},className:`inline-flex items-center gap-2 md:gap-3 px-5 md:px-6 py-2 md:py-2.5 mb-8 md:mb-10 text-[13px] md:text-[15px] font-semibold tracking-wide uppercase rounded-full glass-panel text-foreground glow-hover cursor-pointer`,children:[(0,q.jsx)(c.B,{className:`w-4 h-4 text-accent`}),` Build your whole app without code`]}),(0,q.jsx)(r.nt.h1,{className:`text-4xl sm:text-5xl md:text-6xl lg:text-[4.5rem] font-extrabold tracking-tight mb-6 md:mb-8 text-gradient animate-float leading-[1.1] md:leading-[1.15] px-2`,children:`Your AI Firebase`}),(0,q.jsx)(`p`,{className:`text-[14px] sm:text-[15px] md:text-lg lg:text-xl text-foreground/60 max-w-3xl mx-auto font-medium leading-[1.6] md:leading-[1.7] mb-10 md:mb-14 px-6 md:px-4`,children:`Everything your next app needs is already built — sign-ins, pages, payments, emails and files. Say what you want in plain words and watch it appear. No code, no servers, nothing to set up.`}),(0,q.jsxs)(r.nt.div,{className:`flex flex-col sm:flex-row items-center justify-center gap-4 sm:gap-6 w-full max-w-2xl mx-auto px-6`,initial:{opacity:0},animate:{opacity:1},transition:{delay:.5},children:[(0,q.jsx)(Y.Link,{to:`/login`,style:{borderRadius:`var(--btn-radius, 0.75rem)`},className:`w-full sm:w-auto px-6 md:px-8 py-3 md:py-3.5 font-semibold tracking-wide btn-primary text-[15px] shadow-xl transition-all duration-300 hover:-translate-y-1 active:scale-95 flex items-center justify-center`,children:`Sign In to Build`}),(0,q.jsxs)(`button`,{type:`button`,onClick:()=>i(!0),style:{borderRadius:`var(--btn-radius, 0.75rem)`},className:`group w-full sm:w-auto px-6 md:px-8 py-3 md:py-3.5 font-semibold tracking-wide btn-secondary text-[15px] transition-all duration-300 flex items-center justify-center gap-2.5 hover:-translate-y-1 active:scale-95 cursor-pointer`,children:[(0,q.jsx)(`span`,{className:`w-6 h-6 rounded-full bg-accent/15 text-accent flex items-center justify-center group-hover:bg-accent/25 transition-colors`,children:(0,q.jsx)(y.r,{className:`w-3 h-3 fill-current`})}),`Watch Tutorial`]})]})]}),(0,q.jsx)(_.n,{open:n,href:Fn,onClose:()=>i(!1),autoPlay:!0}),(0,q.jsx)(r.rt,{children:e&&(0,q.jsx)(h.t,{onClose:()=>t(null),formId:e})})]})}var Ln=[.16,1,.3,1],Rn={hidden:{opacity:0,y:10},shown:{opacity:1,y:0,transition:{duration:.35,ease:Ln,delayChildren:.08,staggerChildren:.05}}},zn={hidden:{opacity:0,y:8},shown:{opacity:1,y:0,transition:{duration:.35,ease:Ln}}};function Bn({width:e=`max-w-[480px]`,className:t,children:n}){let i=r.tt();return(0,q.jsxs)(r.nt.div,{initial:i?!1:`hidden`,animate:`shown`,variants:Rn,className:r.$(`w-full p-6 sm:p-8 md:p-10 rounded-3xl glass-panel relative shadow-[0_8px_32px_rgba(0,0,0,0.08)]`,e,t),children:[(0,q.jsx)(`div`,{className:`absolute -inset-[1px] bg-gradient-to-br from-[var(--primary-glow)] to-transparent opacity-30 blur-[20px] rounded-3xl -z-10`}),n]})}function Vn({className:e,children:t}){return(0,q.jsx)(r.nt.div,{variants:zn,className:e,children:t})}function Hn({show:e,className:t,children:n}){let i=r.tt();return(0,q.jsx)(r.nt.div,{className:t,initial:i?!1:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.25,ease:Ln},children:n},e)}function Un({title:e,line:t,as:n=`h3`,align:i=`center`,className:a}){return(0,q.jsxs)(Vn,{className:r.$(`mb-6 sm:mb-7`,i===`center`?`text-center`:`text-left`,a),children:[(0,q.jsx)(n,{className:`text-[22px] sm:text-2xl font-semibold tracking-tight text-foreground leading-snug`,children:e}),t&&(0,q.jsx)(`p`,{className:`mt-1.5 text-[14px] text-foreground/60 leading-relaxed`,children:t})]})}function Wn({className:e,children:t}){return(0,q.jsx)(Vn,{className:r.$(`mt-6 pt-5 border-t border-[var(--panel-border)] text-center`,e),children:t})}var Gn=`text-[14px] text-foreground/60`,Kn=`text-accent font-semibold hover:underline ml-1`;function qn(){return(0,q.jsxs)(`div`,{"aria-busy":`true`,className:`flex flex-col gap-3.5`,children:[(0,q.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl`}),(0,q.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl`}),(0,q.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl opacity-60`})]})}function Jn({problem:e,onUse:t,signInHref:n}){let i=t&&e.tryInstead&&e.tryInstead!==`password`?e.tryInstead:null,a=i?b.t[i]:null;return(0,q.jsxs)(x.t,{className:`mb-4`,children:[e.text,e.tryInstead===`password`&&n&&(0,q.jsx)(Y.Link,{to:n,className:`mt-2 block font-bold text-accent hover:underline`,children:`Go to the sign-in page`}),i&&a&&t&&(0,q.jsxs)(`button`,{type:`button`,onClick:()=>t(i),className:`mt-2.5 w-full flex items-center justify-center gap-2 py-2 rounded-lg text-[13px] font-bold text-foreground bg-foreground/[0.06] hover:bg-foreground/10 transition-colors cursor-pointer`,children:[(0,q.jsx)(a,{className:`w-4 h-4 shrink-0`}),r.fn(i)?.button??`Use that instead`]})]})}function Yn({value:e,onChange:t,label:n=`The code we texted you`,autoFocus:r}){return(0,q.jsx)(h.y,{name:`code`,label:n,inputMode:`numeric`,autoComplete:`one-time-code`,placeholder:`123456`,className:`max-sm:h-11 tracking-[0.3em] font-bold`,value:e,onChange:e=>t(e.target.value),autoFocus:r,required:!0})}function Xn({step:e,onSignedIn:t,onCancel:n}){let[i,a]=(0,K.useState)(!0),[o,s]=(0,K.useState)(!1),[c,d]=(0,K.useState)(``),[f,p]=(0,K.useState)(``),[m,h]=(0,K.useState)(null),g=(0,K.useRef)(null),_=(0,K.useRef)(!1),v=async e=>{h(await r.Kt(e,`sms2fa`,`That code could not be checked. Ask for a new one.`))},y=async()=>{h(null),a(!0);try{d(await e.send(g.current))}catch(e){await v(e)}finally{a(!1)}};return(0,K.useEffect)(()=>{_.current||(_.current=!0,y())},[]),(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.2},children:[(0,q.jsx)(`div`,{ref:g}),m&&(0,q.jsx)(Jn,{problem:m}),(0,q.jsxs)(`div`,{className:`text-center mb-5`,children:[(0,q.jsx)(`p`,{className:`text-[15px] font-semibold text-foreground mb-1`,children:`One more step`}),(0,q.jsx)(`p`,{className:`text-[13.5px] text-foreground/60 leading-relaxed`,children:e.phone?(0,q.jsxs)(q.Fragment,{children:[`We texted a code to `,(0,q.jsx)(`span`,{className:`font-semibold text-foreground/80`,children:e.phone}),`. Type it in and you are in.`]}):(0,q.jsx)(q.Fragment,{children:`We texted you a code. Type it in and you are in.`})})]}),(0,q.jsxs)(`form`,{onSubmit:async n=>{n.preventDefault(),h(null),s(!0);try{await e.finish(c,f.trim()),t()}catch(e){await v(e),s(!1)}},className:`flex flex-col gap-4`,children:[(0,q.jsx)(Yn,{value:f,onChange:p,autoFocus:!0}),(0,q.jsxs)(N.t,{type:`submit`,className:`w-full py-3 text-[15px] font-semibold`,isLoading:o||i,disabled:i||o||!c,children:[`Sign me in `,(0,q.jsx)(u.t,{className:`ml-2 w-4 h-4 shrink-0`})]})]}),(0,q.jsx)(`button`,{type:`button`,onClick:y,disabled:i||o,className:`mt-3 w-full text-[13px] font-bold text-accent hover:underline disabled:opacity-40 disabled:no-underline cursor-pointer disabled:cursor-default`,children:`Send it again`}),n&&(0,q.jsxs)(`button`,{type:`button`,onClick:n,className:`mt-2 w-full inline-flex items-center justify-center gap-1.5 text-[13px] font-bold text-foreground/50 hover:text-accent transition-colors cursor-pointer`,children:[(0,q.jsx)(l.t,{className:`w-3.5 h-3.5 shrink-0`}),`Another way in`]})]})}var Zn=`password`,Qn=e=>!!e?.providerData?.some(e=>e?.providerId===Zn),$n=e=>{let t=r.li?.currentUser;return t&&(!e||t.uid===e.uid)?t:e};function er(e){let t=$n(e);if(!t)return[];try{return(0,ue.multiFactor)(t).enrolledFactors??[]}catch{return[]}}var tr=e=>er(e).length>0;function nr(e){let t=er(e)[0];return t?.phoneNumber||t?.displayName||``}var rr=e=>!!e&&Qn(e)&&!tr(e),ir=(e,t)=>t&&rr(e),ar=`firebase-os:two-step-not-now`;function or(e){if(e)try{sessionStorage.setItem(`${ar}:${e}`,`1`)}catch{}}function sr(e){if(!e)return!1;try{return sessionStorage.getItem(`${ar}:${e}`)===`1`}catch{return!1}}var cr=(e,t,n)=>ir(e,t)&&!(n&&sr(e?.uid)),lr=(e,t)=>!!e&&(tr(e)||t&&Qn(e)),ur=()=>{if(!r.li)throw Error(`Firebase is not initialized. Check your configuration.`);return r.li},dr=`Phone`,fr=e=>(0,ue.multiFactor)($n(e)??e);async function pr(e,t,n){let i=await fr(e).getSession();return r.Yt(n,e=>new ue.PhoneAuthProvider(ur()).verifyPhoneNumber({phoneNumber:t,session:i},e))}async function mr(e,t,n){let r=ue.PhoneAuthProvider.credential(t,n);await fr(e).enroll(ue.PhoneMultiFactorGenerator.assertion(r),dr)}async function hr(e){let t=fr(e);for(let e of[...t.enrolledFactors??[]])await t.unenroll(e)}function gr(e){if(e?.code!==`auth/multi-factor-auth-required`)return null;let t;try{t=(0,ue.getMultiFactorResolver)(ur(),e)}catch{return null}let n=t.hints?.[0];return{phone:n?.phoneNumber||n?.displayName||``,send:e=>r.Yt(e,e=>new ue.PhoneAuthProvider(ur()).verifyPhoneNumber({multiFactorHint:n,session:t.session},e)),finish:async(e,n)=>{let r=ue.PhoneAuthProvider.credential(e,n);await t.resolveSignIn(ue.PhoneMultiFactorGenerator.assertion(r))}}}var _r=r.si(()=>Promise.resolve().then(()=>require(`./PhoneInputField-DrzFHTOL.cjs`))),vr=e=>r.hn(e).filter(e=>e.id!==`password`),yr=e=>{let t=e.inSentence.replace(/^an?\s+/i,``);return t.charAt(0).toUpperCase()+t.slice(1)};function br({settings:e,onSignedIn:t,disabled:n,returnTo:i=`/login`,onPanelChange:a,signInHref:o,sentTo:s}){let c=vr(e),d=s&&c.some(e=>e.id===`emailLink`)?s:``,[f,p]=(0,K.useState)(null),[m,g]=(0,K.useState)(null),[_,v]=(0,K.useState)(d?`emailLink`:null),[y,x]=(0,K.useState)(d),[S,C]=(0,K.useState)(d),[w,E]=(0,K.useState)(``),[D,O]=(0,K.useState)(``),[k,A]=(0,K.useState)(null),[j,M]=(0,K.useState)(null),P=(0,K.useRef)(null),ee=f!==null||n,F=_!==null||j!==null;(0,K.useEffect)(()=>{a?.(F)},[F]);let te=async(e,t)=>{let n=gr(e);if(n){M(n);return}g(await r.Kt(e,t,`That did not work. Try again, or use another way in.`))};(0,K.useEffect)(()=>{let e=r.Jt();e&&te(e.err,e.id)},[]);let I=async()=>{t()},L=async e=>{if(g(null),!r.Ht(e)){v(e),O(``),A(null),C(``);return}p(e);try{await r.qt(e)===`done`&&await I()}catch(t){await te(t,e)}finally{p(null)}},ne=async e=>{e.preventDefault(),g(null),p(`emailLink`);try{await r.Wt(y.trim(),i),C(y.trim())}catch(e){await te(e,`emailLink`)}finally{p(null)}},R=async()=>{g(null),p(`phone`);try{O(``),A(await r.Gt(w.trim(),P.current))}catch(e){await te(e,`phone`)}finally{p(null)}},z=async e=>{e.preventDefault(),await R()},re=async e=>{e.preventDefault(),g(null),p(`phone`);try{await k.confirm(D.trim()),await I()}catch(e){await te(e,`phone`)}finally{p(null)}},ie=()=>{v(null),g(null),A(null),M(null),C(``),O(``)},B=()=>(0,q.jsxs)(`button`,{type:`button`,onClick:ie,className:`mt-3 w-full inline-flex items-center justify-center gap-1.5 text-[13px] font-bold text-foreground/50 hover:text-accent transition-colors cursor-pointer`,children:[(0,q.jsx)(l.t,{className:`w-3.5 h-3.5 shrink-0`}),`Another way in`]}),V=c.length===1&&!e.on.password;return(0,q.jsxs)(`div`,{children:[m&&(0,q.jsx)(Jn,{problem:m,onUse:L,signInHref:o}),(0,q.jsx)(`div`,{ref:P}),j?(0,q.jsx)(Xn,{step:j,onSignedIn:t,onCancel:V&&!_?void 0:ie}):_?(0,q.jsx)(r.nt.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.2},children:(e=>e===`emailLink`?S?(0,q.jsxs)(`div`,{children:[(0,q.jsxs)(`div`,{className:`rounded-2xl border border-[var(--panel-border)] bg-foreground/[0.02] px-5 py-6 sm:py-7 text-center`,children:[(0,q.jsx)(`div`,{className:`w-12 h-12 mx-auto mb-4 rounded-2xl flex items-center justify-center bg-accent/10 text-accent ring-1 ring-inset ring-accent/20`,children:(0,q.jsx)(T.a,{className:`w-[22px] h-[22px]`})}),(0,q.jsx)(`p`,{className:`text-[16px] sm:text-[17px] font-extrabold tracking-tight text-foreground`,children:`Check your email`}),(0,q.jsx)(`p`,{className:`mt-1.5 text-[13px] text-foreground/50 font-medium`,children:`We sent a sign-in link to`}),(0,q.jsx)(`p`,{className:`mt-1 text-[14px] font-bold text-foreground break-all leading-snug`,children:S}),(0,q.jsx)(`p`,{className:`mt-3.5 text-[12.5px] text-foreground/50 font-medium leading-relaxed`,children:`Open it and you are in — there is no password to think of.`})]}),(0,q.jsxs)(`div`,{className:`mt-4 flex items-center justify-center gap-3 text-[13px] font-bold`,children:[(0,q.jsx)(`button`,{type:`button`,onClick:()=>C(``),className:`text-accent hover:underline cursor-pointer`,children:`Send it again`}),!V&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{className:`w-[1px] h-3.5 bg-[var(--panel-border)]`}),(0,q.jsxs)(`button`,{type:`button`,onClick:ie,className:`inline-flex items-center gap-1.5 text-foreground/50 hover:text-accent transition-colors cursor-pointer`,children:[(0,q.jsx)(l.t,{className:`w-3.5 h-3.5 shrink-0`}),`Another way in`]})]})]})]}):(0,q.jsxs)(`form`,{onSubmit:ne,className:`space-y-3`,children:[(0,q.jsx)(h.y,{name:`linkEmail`,label:`Your email`,type:`email`,placeholder:`name@example.com`,className:`max-sm:h-11`,value:y,onChange:e=>x(e.target.value),autoFocus:!V,required:!0}),(0,q.jsxs)(N.t,{type:`submit`,className:`w-full py-2.5 sm:py-3 text-[15px] font-bold tracking-wide rounded-xl`,isLoading:f===`emailLink`,children:[`Email me a link `,(0,q.jsx)(u.t,{className:`ml-2 w-4 h-4 shrink-0`})]}),!V&&(0,q.jsx)(B,{})]}):e===`phone`?(0,q.jsxs)(`div`,{children:[k?(0,q.jsxs)(`form`,{onSubmit:re,className:`space-y-3`,children:[(0,q.jsx)(Yn,{value:D,onChange:O,autoFocus:!0}),(0,q.jsxs)(N.t,{type:`submit`,className:`w-full py-2.5 sm:py-3 text-[15px] font-bold tracking-wide rounded-xl`,isLoading:f===`phone`,children:[`Sign me in `,(0,q.jsx)(u.t,{className:`ml-2 w-4 h-4 shrink-0`})]}),(0,q.jsxs)(`div`,{className:`flex items-center justify-center gap-3 text-[13px] font-bold`,children:[(0,q.jsx)(`button`,{type:`button`,onClick:R,disabled:f===`phone`,className:`text-accent hover:underline disabled:opacity-40 disabled:no-underline cursor-pointer disabled:cursor-default`,children:`Send it again`}),(0,q.jsx)(`span`,{className:`w-[1px] h-3.5 bg-[var(--panel-border)]`}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>{A(null),O(``),g(null)},className:`text-foreground/50 hover:text-accent transition-colors cursor-pointer`,children:`Use a different number`})]})]}):(0,q.jsxs)(`form`,{onSubmit:z,className:`space-y-3`,children:[(0,q.jsx)(K.Suspense,{fallback:(0,q.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl`}),children:(0,q.jsx)(_r,{field:{label:`Your phone number`,required:!0,placeholder:`7700 900123`},value:w,onChange:E})}),(0,q.jsxs)(N.t,{type:`submit`,className:`w-full py-2.5 sm:py-3 text-[15px] font-bold tracking-wide rounded-xl`,isLoading:f===`phone`,children:[`Text me a code `,(0,q.jsx)(u.t,{className:`ml-2 w-4 h-4 shrink-0`})]})]}),!V&&(0,q.jsx)(B,{})]}):null)(_)}):c.length>3?(0,q.jsx)(`div`,{className:`flex flex-wrap justify-center gap-2 sm:gap-2.5`,children:c.map(e=>{let t=b.t[e.id];return(0,q.jsxs)(N.t,{variant:`secondary`,onClick:()=>L(e.id),title:e.button,"aria-label":e.button,isLoading:f===e.id,disabled:ee,className:`w-[88px] h-[68px] !px-1.5 text-[11px] font-bold tracking-tight rounded-xl transition-all hover:-translate-y-0.5 [&>span]:flex-col [&>span]:gap-1.5 [&>span]:w-full`,children:[(0,q.jsx)(t,{className:`w-[22px] h-[22px] shrink-0`}),(0,q.jsx)(`span`,{className:`w-full truncate text-center leading-none`,children:yr(e)})]},e.id)})}):(0,q.jsx)(`div`,{className:`space-y-3`,children:c.map(e=>{let t=b.t[e.id];return(0,q.jsxs)(N.t,{variant:`secondary`,onClick:()=>L(e.id),isLoading:f===e.id,disabled:ee,className:`w-full py-2.5 sm:py-3 text-[15px] sm:text-base font-bold tracking-wide rounded-xl transition-all hover:-translate-y-0.5`,children:[(0,q.jsx)(t,{className:`w-5 h-5 shrink-0`}),e.button]},e.id)})})]})}function xr({email:e,onSignedIn:t,onStartOver:n}){let[i,a]=(0,K.useState)(e),[o,s]=(0,K.useState)(!1),[c,d]=(0,K.useState)(null),[f,p]=(0,K.useState)(null);return f?(0,q.jsx)(Xn,{step:f,onSignedIn:t,onCancel:n}):(0,q.jsxs)(`div`,{children:[c&&(0,q.jsx)(Jn,{problem:c}),(0,q.jsx)(`p`,{className:`text-[13.5px] text-foreground/60 font-medium leading-relaxed mb-4`,children:`Nearly there. This link did not bring your address with it, so tell us the one you asked us to send it to and you are in.`}),(0,q.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault(),d(null),s(!0);try{await r.Vt(i.trim()),t()}catch(e){let t=gr(e);if(t){p(t);return}d(await r.Kt(e,`emailLink`,`That link did not work. Ask for a new one.`,{email:i.trim()})),s(!1)}},className:`space-y-3`,children:[(0,q.jsx)(h.y,{name:`linkEmail`,label:`Your email`,type:`email`,placeholder:`name@example.com`,className:`max-sm:h-11`,value:i,onChange:e=>a(e.target.value),autoFocus:!0,required:!0}),(0,q.jsxs)(N.t,{type:`submit`,className:`w-full py-2.5 sm:py-3 text-[15px] font-bold tracking-wide rounded-xl`,isLoading:o,children:[`Sign me in `,(0,q.jsx)(u.t,{className:`ml-2 w-4 h-4 shrink-0`})]}),n&&(0,q.jsxs)(`button`,{type:`button`,onClick:n,className:`mt-3 w-full inline-flex items-center justify-center gap-1.5 text-[13px] font-bold text-foreground/50 hover:text-accent transition-colors cursor-pointer`,children:[(0,q.jsx)(l.t,{className:`w-3.5 h-3.5 shrink-0`}),`Ask for a new link, or sign in another way`]})]})]})}var Sr=`Signing you in…`;function Cr({note:e=`One moment.`}){return(0,q.jsxs)(`div`,{"aria-busy":`true`,className:`py-6 flex flex-col items-center gap-4 text-center`,children:[(0,q.jsx)(P.t,{}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`p`,{className:`text-[14px] font-medium text-foreground`,children:Sr}),(0,q.jsx)(`p`,{className:`mt-1 text-[13px] text-foreground/55`,children:e})]})]})}function wr(){let[e,t]=(0,K.useState)(!1),n=(0,Y.useNavigate)();return{settling:e,signedIn:()=>{r.zt();let e=r.li?.currentUser;if(e&&!o.un(e)){n(`/verify`,{replace:!0});return}t(!0)}}}var Tr=[{id:`length`,label:`At least 8 characters`,ok:e=>e.length>=8},{id:`case`,label:`An uppercase and a lowercase letter`,ok:e=>/[a-z]/.test(e)&&/[A-Z]/.test(e)},{id:`number`,label:`A number`,ok:e=>/[0-9]/.test(e)}],Er=new Set(`password1.password12.password123.password1234.passw0rd1.p@ssword1.p@ssw0rd1.test1234.test12345.testing123.test123456.qwerty123.qwerty1234.abcd1234.abc12345.welcome1.welcome123.admin123.admin1234.letmein123.iloveyou1.monkey123.football1.changeme1.secret123.summer2024.summer2025`.split(`.`)),Dr=e=>e.toLowerCase().replace(/[\s._-]/g,``),Or=e=>Er.has(Dr(e||``)),kr=e=>Tr.map(t=>({rule:t,met:t.ok(e||``)}));function Ar(e){let t=e||``;if(!t)return`Choose a password.`;let n=Tr.find(e=>!e.ok(t));return n?`Your password needs ${n.label.toLowerCase()}.`:Or(t)?`That password is one of the first anyone would guess. Please pick another.`:``}function jr(e,t){return t?e===t?``:`Both passwords must be the same.`:`Type your password a second time.`}function Mr({value:e,className:t=``}){return(0,q.jsx)(`ul`,{className:`flex flex-col gap-1 ml-1 ${t}`,"aria-label":`Password requirements`,children:kr(e).map(({rule:e,met:t})=>(0,q.jsxs)(`li`,{className:`flex items-center gap-2 text-[12.5px] font-medium transition-colors ${t?`text-emerald-500`:`text-foreground/45`}`,children:[t?(0,q.jsx)(r.At,{className:`w-3.5 h-3.5 shrink-0`}):(0,q.jsx)(`span`,{className:`w-3.5 flex justify-center shrink-0`,children:(0,q.jsx)(`span`,{className:`w-1.5 h-1.5 rounded-full bg-foreground/25`})}),e.label]},e.id))})}var Nr=`again`,Pr=e=>`This account is half-made: nothing has been saved to it, and nothing can be until ${e||`the address on it`} is proved. Letting it go frees that address and takes you back to the form, where you fill in your details again with the address you want — and the next link goes to that one.`,Fr=(e=window.location.pathname)=>`${e.replace(/\/+$/,``).replace(/\/[^/]*$/,``)}/register?${Nr}=1`;async function Ir(e){let t=e||r.li.currentUser;if(t){r.Tn(t.uid);try{await(0,ue.deleteUser)(t)}catch{await(0,ue.signOut)(r.li).catch(()=>{})}}window.location.assign(Fr())}function Lr({as:e}={}){let[t,n]=(0,K.useState)(!1),[i,a]=(0,K.useState)(null),[o,s]=(0,K.useState)(``),[c,l]=(0,K.useState)(``),[u,d]=(0,K.useState)(``),[f,p]=(0,K.useState)(``),[m,g]=(0,K.useState)(!1),_=(0,Y.useNavigate)(),[v]=(0,Y.useSearchParams)(),{registerUser:y}=r.Ft(),b=r.Cn(),{settling:S,signedIn:C}=wr(),w=v.has(Nr),T=(()=>{let e=new URLSearchParams(v);e.delete(`as`);let t=e.toString();return`/register${t?`?${t}`:``}`})(),E=async e=>{e.preventDefault(),n(!0),a(null);let t=new FormData(e.currentTarget),i=t.get(`email`),s=t.get(`firstName`),l=t.get(`lastName`),u=Ar(o),f=u?``:jr(o,c);if(d(u),p(f),u||f){a(u||f),n(!1);return}try{await y(i,o,s,l),_(`/verify`)}catch(e){e?.code===`auth/email-already-in-use`?a((0,q.jsxs)(`span`,{children:[(await r.Kt(e,`password`,``,{email:i})).text,` `,(0,q.jsx)(Y.Link,{to:`/login?email=${encodeURIComponent(i)}`,className:`font-bold`,children:`Sign in`})]})):e?.code===`auth/weak-password`?a(Ar(o)||`Please choose a stronger password.`):a((await r.Kt(e,`password`,`That did not work. Check your details and try again.`,{email:i})).text)}finally{n(!1)}},D=r._n(b),O=vr(b),k=S?`signing`:b.loading?`loading`:`form`;return(0,q.jsx)(`div`,{className:`flex-1 flex items-center justify-center w-full z-10 px-4 mt-6 mb-8 md:mt-0 md:mb-0 md:pt-8 md:pb-32`,children:(0,q.jsxs)(Bn,{width:`max-w-[500px]`,children:[(0,q.jsx)(Un,{title:e?r.an(e.id,e.name):`Create an account`,line:e?r.Xt:`Join Your AI Firebase and start building today.`}),i&&(0,q.jsx)(x.t,{className:`mb-5`,children:i}),!i&&w&&(0,q.jsx)(x.t,{tone:`note`,className:`mb-5`,children:`Start again with the address you want. Nothing was saved to the one you began with, and the next link goes wherever you type here.`}),(0,q.jsx)(Vn,{children:(0,q.jsx)(Hn,{show:k,children:S?(0,q.jsx)(Cr,{}):b.loading?(0,q.jsx)(qn,{}):(0,q.jsxs)(q.Fragment,{children:[D&&!m&&(0,q.jsxs)(`form`,{className:`flex flex-col gap-5`,onSubmit:E,children:[(0,q.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-5`,children:[(0,q.jsx)(h.y,{name:`firstName`,label:`First Name`,type:`text`,placeholder:`John`,className:`max-sm:h-11`,required:!0}),(0,q.jsx)(h.y,{name:`lastName`,label:`Last Name`,type:`text`,placeholder:`Doe`,className:`max-sm:h-11`,required:!0})]}),(0,q.jsx)(h.y,{name:`email`,label:`Email`,type:`email`,placeholder:`name@example.com`,className:`max-sm:h-11`,required:!0}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-2.5`,children:[(0,q.jsx)(h.y,{name:`password`,label:`Password`,type:`password`,placeholder:`••••••••`,className:`max-sm:h-11`,autoComplete:`new-password`,value:o,onChange:e=>{s(e.target.value),u&&d(``),f&&e.target.value===c&&p(``)},onBlur:()=>d(o?Ar(o):``),error:u,required:!0}),o&&(0,q.jsx)(Mr,{value:o})]}),o&&(0,q.jsx)(h.y,{name:`confirmPassword`,label:`Confirm password`,type:`password`,placeholder:`••••••••`,className:`max-sm:h-11`,autoComplete:`new-password`,value:c,onChange:e=>{l(e.target.value),f&&p(``)},onBlur:()=>p(c?jr(o,c):``),error:f,required:!0}),(0,q.jsx)(`div`,{className:`pt-1`,children:(0,q.jsx)(N.t,{type:`submit`,className:`w-full py-3 text-[15px] font-semibold`,isLoading:t,children:`Create Account`})})]}),D&&O.length>0&&!m&&(0,q.jsxs)(`div`,{className:`flex items-center gap-3 my-6`,children:[(0,q.jsx)(`span`,{className:`h-[1px] flex-1 bg-[var(--panel-border)]`}),(0,q.jsx)(`span`,{className:`text-[13px] font-medium text-foreground/40`,children:`or`}),(0,q.jsx)(`span`,{className:`h-[1px] flex-1 bg-[var(--panel-border)]`})]}),O.length>0&&(0,q.jsx)(br,{settings:b,onSignedIn:C,disabled:t,returnTo:`/login`,onPanelChange:g,signInHref:`/login`})]})})}),(0,q.jsxs)(Wn,{className:`space-y-2`,children:[e&&(0,q.jsxs)(`p`,{className:`text-[14px] text-foreground/60`,children:[`Registering as something else? `,(0,q.jsx)(Y.Link,{to:T,className:`text-accent font-semibold hover:underline ml-1`,children:`Choose again`})]}),(0,q.jsxs)(`p`,{className:Gn,children:[`Already have an account? `,(0,q.jsx)(Y.Link,{to:`/login`,className:Kn,children:`Sign in`})]})]})]})})}var Rr=`member`;function zr(e,t){let n=new URLSearchParams(e);return n.set(`as`,t),`/register?${n.toString()}`}function Br({choices:e,search:t=``}){let i=e.length>3;return(0,q.jsx)(`div`,{className:`flex-1 flex items-center justify-center w-full z-10 px-4 mt-6 mb-8 md:mt-0 md:mb-0 md:pt-8 md:pb-32`,children:(0,q.jsxs)(Bn,{width:i?`max-w-[640px]`:`max-w-[500px]`,children:[(0,q.jsx)(Un,{title:`Create an account`,line:`What are you registering as?`}),(0,q.jsxs)(Vn,{children:[(0,q.jsx)(`div`,{role:`list`,"aria-label":`Register as`,className:`grid gap-3 ${i?`grid-cols-1 sm:grid-cols-2`:`grid-cols-1`}`,children:e.map((a,o)=>{let s=i&&e.length%2==1&&o===e.length-1;return(0,q.jsxs)(Y.Link,{role:`listitem`,to:zr(t,a.id),className:`group flex items-center gap-3.5 min-w-0 px-4 py-3.5 rounded-2xl border border-[var(--panel-border)] bg-foreground/[0.02] hover:border-accent/50 hover:bg-foreground/[0.03] active:scale-[0.99] transition-all duration-300 ${s?`sm:col-span-2`:``}`,children:[(0,q.jsx)(n.c,{name:ne.u(a.id),className:`w-[18px] h-[18px] shrink-0 text-accent`}),(0,q.jsx)(`span`,{className:`flex-1 min-w-0 text-[14.5px] font-semibold text-foreground leading-snug tracking-tight`,children:r.an(a.id,a.name)}),(0,q.jsx)(u.t,{className:`w-4 h-4 shrink-0 text-foreground/30 group-hover:text-accent group-hover:translate-x-0.5 transition-all`})]},a.id)})}),(0,q.jsx)(`p`,{className:`mt-4 text-[13px] text-foreground/50 text-center leading-relaxed`,children:r.Xt})]}),(0,q.jsxs)(Wn,{className:`space-y-2`,children:[(0,q.jsxs)(`p`,{className:Gn,children:[`Just want an account?`,(0,q.jsx)(Y.Link,{to:zr(t,Rr),className:Kn,children:`Register as a member`})]}),(0,q.jsxs)(`p`,{className:Gn,children:[`Already have an account?`,(0,q.jsx)(Y.Link,{to:`/login`,className:Kn,children:`Sign in`})]})]})]})})}function Vr({settings:e}){let t=ne.l(),[n]=(0,Y.useSearchParams)(),i=n.get(`as`),a=r.bn(e,t),o=i?r.yn(e,i,t):null,s=n.has(`preview`)?``:o?.id??``;return(0,K.useEffect)(()=>{e.loading||(s?r.on(s):r.rn())},[e.loading,s]),e.loading?(0,q.jsx)(Lr,{}):o?(0,q.jsx)(Lr,{as:o}):a.length&&!i?(0,q.jsx)(Br,{choices:a,search:n.toString()}):(0,q.jsx)(Lr,{})}function Hr(){let e=r.Cn();return!e.loading&&!e.registerAs.on?(r.rn(),(0,q.jsx)(Lr,{})):(0,q.jsx)(Vr,{settings:e})}function Ur(){let[e,t]=(0,K.useState)(!1),[n,i]=(0,K.useState)(null),[a]=(0,Y.useSearchParams)(),o=(0,Y.useNavigate)(),[s]=(0,K.useState)(a.get(`email`)||``),[c]=(0,K.useState)(()=>a.get(`sent`)===`1`&&!!a.get(`email`)),[l]=(0,K.useState)(()=>a.get(`from`)||``),u=r.Cn(),{loading:d}=r.Ft(),[f,p]=(0,K.useState)(()=>r.Bt()?`finishing`:`no`),[m,g]=(0,K.useState)(null),[_,v]=(0,K.useState)(!1),y=()=>{p(`no`),g(null),i(null),o(`/login`,{replace:!0})},{settling:b,signedIn:S}=wr();(0,K.useEffect)(()=>{if(f!==`finishing`||d)return;let e=r.Ut();if(!e){p(`asking`);return}let t=!1;return r.Vt(e).then(()=>{t||S()}).catch(e=>{if(t)return;let n=gr(e);if(n){g(n);return}p(`asking`)}),()=>{t=!0}},[f,d]);let C=async e=>{e.preventDefault(),t(!0),i(null);let n=new FormData(e.currentTarget),a=n.get(`email`),o=n.get(`password`);try{if(!r.li)throw Error(`Firebase is not initialized. Check your configuration.`);await(0,ue.signInWithEmailAndPassword)(r.li,a,o),S()}catch(e){let n=gr(e);if(n){g(n),t(!1);return}e?.code===`auth/invalid-credential`||e?.code===`auth/user-not-found`||e?.code===`auth/wrong-password`||e?.code===`auth/invalid-login-credentials`?i((0,q.jsxs)(`span`,{children:[`That email and password do not match.`,` `,(0,q.jsx)(Y.Link,{to:`/reset-password`,children:`Reset password?`}),T.length>0&&(0,q.jsx)(q.Fragment,{children:` If you first came in with one of the buttons below, use that button instead.`})]})):i((await r.Kt(e,`password`,`That did not work. Check your details and try again.`,{email:a})).text),t(!1)}},w=r._n(u),T=vr(u),E=c&&T.some(e=>e.id===`emailLink`)?s:``,D=b||f===`finishing`&&!m,O=D?`signing`:m?`step`:f===`asking`?`asking`:u.loading?`loading`:`form`;return(0,q.jsx)(`div`,{className:`flex-1 flex items-center justify-center w-full z-10 px-4 mt-6 mb-8 md:mt-0 md:mb-0 md:pt-8 md:pb-32`,children:(0,q.jsxs)(Bn,{width:`max-w-[480px]`,children:[(0,q.jsx)(Un,{title:`Welcome back`,line:`Sign in to Your AI Firebase.`}),n&&(0,q.jsx)(x.t,{className:`mb-5`,children:n}),!n&&c&&!E&&f===`no`&&!b&&(0,q.jsxs)(x.t,{tone:`done`,className:`mb-5`,children:[`We have emailed a sign-in link to `,s,`. Open it on this device and you go straight to your order — or sign in below.`]}),(0,q.jsx)(Vn,{children:(0,q.jsx)(Hn,{show:O,children:D?(0,q.jsx)(Cr,{note:f===`finishing`?`One moment — your link checks out.`:void 0}):m?(0,q.jsx)(Xn,{step:m,onSignedIn:S}):f===`asking`?(0,q.jsx)(xr,{email:s,onSignedIn:S,onStartOver:y}):u.loading?(0,q.jsx)(qn,{}):(0,q.jsxs)(q.Fragment,{children:[w&&!_&&(0,q.jsxs)(`form`,{className:`flex flex-col gap-5`,onSubmit:C,children:[(0,q.jsx)(h.y,{name:`email`,label:`Email`,type:`email`,defaultValue:s,placeholder:`name@example.com`,className:`max-sm:h-11`,required:!0}),(0,q.jsxs)(`div`,{className:`flex flex-col w-full`,children:[(0,q.jsxs)(`div`,{className:`flex justify-between items-baseline mb-1.5 mx-1`,children:[(0,q.jsx)(`label`,{className:`text-[13px] font-medium text-foreground/50 select-none`,children:`Password`}),(0,q.jsx)(Y.Link,{to:`/reset-password`,className:`text-[13px] font-semibold text-accent hover:underline`,children:`Forgot Password?`})]}),(0,q.jsx)(h.y,{name:`password`,type:`password`,placeholder:`••••••••`,className:`max-sm:h-11`,required:!0})]}),(0,q.jsx)(`div`,{className:`pt-1`,children:(0,q.jsx)(N.t,{type:`submit`,className:`w-full py-3 text-[15px] font-semibold`,isLoading:e,children:`Sign In`})})]}),w&&T.length>0&&!_&&(0,q.jsxs)(`div`,{className:`flex items-center gap-3 my-6`,children:[(0,q.jsx)(`span`,{className:`h-[1px] flex-1 bg-[var(--panel-border)]`}),(0,q.jsx)(`span`,{className:`text-[13px] font-medium text-foreground/40`,children:`or`}),(0,q.jsx)(`span`,{className:`h-[1px] flex-1 bg-[var(--panel-border)]`})]}),T.length>0&&(0,q.jsx)(br,{settings:u,onSignedIn:S,disabled:e,returnTo:l?`/login?from=${encodeURIComponent(l)}`:`/login`,onPanelChange:v,sentTo:E})]})})}),(0,q.jsx)(Wn,{children:(0,q.jsxs)(`p`,{className:Gn,children:[`New here? `,(0,q.jsx)(Y.Link,{to:`/register`,className:Kn,children:`Create account`})]})})]})})}var Wr=()=>{if(!r.li)throw Error(`Firebase is not initialized. Check your configuration.`);return r.li},Gr=`/confirm-email`,Kr=`address`,qr=`firebase-os:address-link`;async function Jr(e,t){let n=new URL(Gr,window.location.origin);n.searchParams.set(`for`,t),n.searchParams.set(Kr,e),await(0,ue.sendSignInLinkToEmail)(Wr(),e,{url:n.toString(),handleCodeInApp:!0})}function Yr(e=window.location.href){let t;try{t=new URL(e).searchParams}catch{return null}let n=String(t.get(`for`)||``).trim(),r=String(t.get(`address`)||``).trim();if(!n||!r)return null;try{if(!(0,ue.isSignInWithEmailLink)(Wr(),e))return null}catch{return null}return{uid:n,address:r,url:e}}function Xr(e){try{localStorage.setItem(qr,JSON.stringify(e))}catch{}}function Zr(){try{let e=localStorage.getItem(qr);if(!e)return null;let t=JSON.parse(e);return t?.uid&&t?.address&&t?.url?t:null}catch{return null}}var Qr=e=>!!e&&Zr()?.uid===e;function $r(){try{localStorage.removeItem(qr)}catch{}}async function ei(e){let t=r.li?.currentUser??null;if(!t)return`signInFirst`;if(t.uid!==e.uid)return`wrongAccount`;if((t.email||``).toLowerCase()===e.address.toLowerCase()&&t.emailVerified)return`confirmed`;try{await(0,ue.linkWithCredential)(t,ue.EmailAuthProvider.credentialWithLink(e.address,e.url))}catch(e){let t=e?.code||``;return t===`auth/provider-already-linked`?`confirmed`:t===`auth/email-already-in-use`||t===`auth/credential-already-in-use`?`takenElsewhere`:t===`auth/invalid-action-code`||t===`auth/expired-action-code`||t===`auth/invalid-email`||t===`auth/argument-error`?`spent`:(console.warn(`The address could not be added to this sign-in.`,e),`failed`)}try{await t.getIdToken(!0)}catch{}try{await t.reload()}catch{}return`confirmed`}var ti=5e3,ni=120,ri=30,ii=900;function ai(){let{user:e,profile:t,refreshUser:n,signOut:i}=r.Ft(),a=(0,Y.useNavigate)(),[s,c]=(0,K.useState)(!1),[l,u]=(0,K.useState)(!1),[d,f]=(0,K.useState)(``),[p,m]=(0,K.useState)(!1),[h,g]=(0,K.useState)(!1),_=!o.un(e),v=_?e?.email||``:o.dn(e,t),y=(()=>{let t=(e?.providerData||[]).map(e=>e?.providerId).filter(Boolean);if(!t.length||t.includes(`password`))return``;let n=r.sn.find(e=>e.providerId&&e.providerId!==`password`&&t.includes(e.providerId));return n&&n.id!==`phone`?n.label:``})(),b=_&&!v;(0,K.useEffect)(()=>{if(!_||!e||b)return;let t=!1;return r.wn(e).then(e=>{!t&&e===`failed`&&f(`We could not send the link just now. Press Resend below to try again.`)}),()=>{t=!0}},[_,b,e?.uid]);let S=(0,K.useRef)(!1),C=async()=>{await r.li.currentUser?.getIdToken(!0),await n(),!S.current&&(S.current=!0,a(`/dashboard?${L.n}=1`))};(0,K.useEffect)(()=>{if(!_||b)return;let e=!1,t=!1,n=async()=>{let n=r.li.currentUser;if(!(e||t||S.current||document.hidden||!n)){t=!0;try{await n.reload(),!e&&n.emailVerified&&await C()}catch{}finally{t=!1}}},i=0,a=window.setInterval(()=>{i+=1;let e=ti/1e3*i;if(e>ii){window.clearInterval(a);return}e>ni&&e%ri!==0||n()},ti);return document.addEventListener(`visibilitychange`,n),window.addEventListener(`focus`,n),()=>{e=!0,window.clearInterval(a),document.removeEventListener(`visibilitychange`,n),window.removeEventListener(`focus`,n)}},[_,b]);let w=()=>a(L.h(t)?`/dashboard?${L.n}=1`:`/dashboard`,{replace:!0}),T=async()=>{c(!0),f(``);let e=!1;try{if(!r.li.currentUser)return;if(await r.li.currentUser.reload(),!_){await n();let e=o.dn(r.li.currentUser,t);f(e?`Not yet — open the link we sent to ${e}, and it is done. Nothing else is waiting on it.`:`Your email is confirmed.`);return}if(!r.li.currentUser.emailVerified){f(`Not yet — open the link in the email first, then press this. Check your spam folder if it has not arrived.`);return}await C(),e=!0}catch{f(`We could not check just now. Make sure you are online and try again.`)}finally{e||c(!1)}},E=async()=>{if(e&&!b){u(!0),f(``);try{_?(await(0,ue.sendEmailVerification)(e),r.En(e.uid)):await Jr(v,e.uid),f(`Verification email sent! Please check your inbox.`)}catch(e){e?.code===`auth/too-many-requests`?f(`Failed to resend: please wait a minute before trying again.`):f(`Failed to resend. ${(await r.Kt(e,`password`,`Check your connection and try again in a moment.`)).text}`)}finally{u(!1)}}},D=d.includes(`Failed`)||d.includes(`could not`)||d.includes(`not verified`)||d.includes(`wrong`)||d.startsWith(`Not yet`);return(0,q.jsxs)(`div`,{className:`flex-1 flex items-center justify-center w-full z-10 px-4 mb-16`,children:[(0,q.jsxs)(Bn,{width:`max-w-[480px]`,className:`text-center`,children:[(0,q.jsx)(Un,{as:`h1`,className:`mb-6 sm:mb-8`,title:b?`No address to verify`:`Verify your email`,line:b?(0,q.jsxs)(q.Fragment,{children:[y||`The way you signed in`,` did not give us an email address, so there is nothing here to send a link to and nothing to verify. An address is the one thing this app cannot do without: everything behind this screen is shut until it has one.`,y?(0,q.jsxs)(q.Fragment,{children:[` If this app is yours, it is one tick in your `,y,` setup — the setting that asks for the person's email address — and everybody who signs in after it arrives with one.`]}):(0,q.jsx)(q.Fragment,{children:` If this app is yours, the way in you used has to be set to ask for an email address.`}),` `,`Until then, sign in with an email address instead.`]}):_?(0,q.jsxs)(q.Fragment,{children:[y&&(0,q.jsxs)(q.Fragment,{children:[y,` signed you in, but it did not confirm your address — so we are checking it is yours. `]}),`We've sent a verification link to `,(0,q.jsx)(`span`,{className:`font-semibold text-foreground`,children:v}),`. Please check your inbox (and spam folder) to verify your account and access your dashboard.`]}):(0,q.jsxs)(q.Fragment,{children:[`We've sent a link to `,(0,q.jsx)(`span`,{className:`font-semibold text-foreground`,children:v}),`. Opening it adds the address to your sign-in, so you can use it to sign in as well as your phone — and you stay signed in here either way. Nothing is waiting on it: you can do this whenever you like.`]})}),(0,q.jsxs)(Vn,{className:`flex flex-col gap-3 max-w-[360px] mx-auto`,children:[d&&(0,q.jsx)(x.t,{tone:D?`error`:`done`,children:d}),b?(0,q.jsx)(N.t,{variant:`primary`,onClick:()=>i(),className:`w-full py-3 text-[14px] font-semibold`,children:`Sign out`}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(N.t,{variant:`primary`,onClick:T,isLoading:s,className:`w-full py-3 text-[14px] font-semibold`,children:`I've verified my email`}),(0,q.jsx)(N.t,{variant:`ghost`,onClick:E,isLoading:l,className:`w-full py-2.5 text-[14px] font-medium`,children:`Resend verification link`}),(0,q.jsx)(N.t,{variant:`ghost`,onClick:()=>_?m(!0):a(`/profile`),className:`w-full py-2 text-[13px] font-medium`,children:`Change my email address`}),!_&&(0,q.jsx)(N.t,{variant:`ghost`,onClick:w,className:`w-full py-2 text-[13px] font-medium`,children:`Skip for now`})]})]})]}),(0,q.jsx)(ie.t,{isOpen:p,title:`Start again with another address?`,message:Pr(v),confirmText:`Yes, start again`,cancelText:`Keep this address`,isProcessing:h,onCancel:()=>m(!1),onConfirm:async()=>{g(!0),await Ir(r.li.currentUser||e)}})]})}var oi={confirmed:{title:`Email confirmed`,body:`Your address is on your account now, and you can sign in with it as well as your phone.`},signInFirst:{title:`Nearly there`,body:`You opened this link in a browser you are not signed in on. Sign in and it finishes by itself — you will not need the link again.`},wrongAccount:{title:`That is a different account`,body:`This link adds an address to another account. Sign out here and sign back in as the person who asked for it — the link is kept, and it finishes by itself once they are in.`},takenElsewhere:{title:`That address is already in use`,body:`Another account here already has it. Give a different address on your profile, or sign in with the account that has this one.`},spent:{title:`That link has expired`,body:`Links can only be opened once, and they do not last for ever. Ask for a new one and it will come straight through.`},failed:{title:`That did not work`,body:`Check your connection and try again. If it keeps happening, ask for a new link.`}},si=e=>({title:`Email verified`,body:`${e} is confirmed. You can sign in with it now as well as your phone.`,link:`/profile`});function ci(){let{user:e,loading:t,refreshUser:n,signOut:i}=r.Ft(),a=(0,Y.useNavigate)(),[o,s]=(0,K.useState)(null),c=(0,K.useRef)(null),l=(0,K.useRef)(!1);(0,K.useEffect)(()=>{if(t||l.current)return;let r=Yr()??Zr();if(!r){s(`spent`),l.current=!0;return}if(c.current=r,!e){Xr(r),s(`signInFirst`);return}l.current=!0;let i=!1;return ei(r).then(async e=>{i||(e===`confirmed`&&($r(),await R.n(r.uid,si(r.address)),await n().catch(()=>{})),e===`wrongAccount`?Xr(r):e!==`signInFirst`&&$r(),s(e))}),()=>{i=!0}},[t,e?.uid]);let u=o?oi[o]:null,d=o===`confirmed`;return(0,q.jsx)(`div`,{className:`flex-1 flex items-center justify-center w-full z-10 px-4 mt-6 mb-8 md:mt-0 md:mb-0 md:pt-8 md:pb-32`,children:(0,q.jsx)(Bn,{width:`max-w-[480px]`,className:`text-center`,children:(0,q.jsx)(Hn,{show:o??`working`,children:u?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Un,{as:`h1`,className:`mb-6 sm:mb-8`,title:u.title,line:u.body}),(0,q.jsxs)(Vn,{className:`flex flex-col gap-3 max-w-[360px] mx-auto`,children:[o===`signInFirst`?(0,q.jsx)(N.t,{variant:`primary`,onClick:()=>a(`/login?from=${encodeURIComponent(Gr)}`),className:`w-full py-3 text-[14px] font-semibold`,children:`Sign in to finish`}):o===`wrongAccount`?(0,q.jsx)(N.t,{variant:`primary`,onClick:()=>i(),className:`w-full py-3 text-[14px] font-semibold`,children:`Sign out`}):(0,q.jsx)(N.t,{variant:`primary`,onClick:()=>a(e?`/dashboard`:`/`),className:`w-full py-3 text-[14px] font-semibold`,children:d?`Carry on`:`Back to the app`}),o===`takenElsewhere`&&e&&(0,q.jsx)(N.t,{variant:`ghost`,onClick:()=>a(`/profile`),className:`w-full py-2.5 text-[14px] font-medium`,children:`Use a different address`}),o===`spent`&&e&&(0,q.jsx)(N.t,{variant:`ghost`,onClick:()=>a(`/verify`),className:`w-full py-2.5 text-[14px] font-medium`,children:`Send me a new link`}),o===`failed`&&(0,q.jsx)(N.t,{variant:`ghost`,onClick:()=>window.location.reload(),className:`w-full py-2.5 text-[14px] font-medium`,children:`Try again`})]})]}):(0,q.jsxs)(`div`,{"aria-busy":`true`,className:`py-6 flex flex-col items-center gap-4`,children:[(0,q.jsx)(P.t,{}),(0,q.jsx)(`p`,{className:`text-[14px] font-medium text-foreground/70`,children:`Confirming your email…`})]})})})})}var li=`user_phoneclaims`,ui=`That number is already set up on another account. A phone number can only be used once here — use a different one, or take it off the other account first.`;async function di(e){let t=String(e||``).replace(/[^\d+]/g,``);if(!t)return null;let n=globalThis.crypto?.subtle;if(!n)return null;try{let e=await n.digest(`SHA-256`,new TextEncoder().encode(t));return Array.from(new Uint8Array(e)).map(e=>e.toString(16).padStart(2,`0`)).join(``)}catch{return null}}async function fi(e){let t=await di(e);if(!t)return!0;try{return await(0,J.getDoc)((0,J.doc)(r.ui,li,t)),!0}catch(e){return e?.code!==`permission-denied`}}var pi=`phoneClaim`;async function mi(e,t){let n=await di(e);if(!n||!t)return!0;try{await(0,J.setDoc)((0,J.doc)(r.ui,li,n),{uid:t,createdAt:Date.now()})}catch(e){return e?.code!==`permission-denied`}try{await(0,J.setDoc)((0,J.doc)(r.ui,`user_profiles`,t),{[pi]:n},{merge:!0})}catch{}return!0}async function hi(e,t){let n=String(t??``).trim();if(n){try{await(0,J.deleteDoc)((0,J.doc)(r.ui,li,n))}catch{}if(e)try{await(0,J.setDoc)((0,J.doc)(r.ui,`user_profiles`,e),{[pi]:``},{merge:!0})}catch{}}}var gi=r.si(()=>Promise.resolve().then(()=>require(`./PhoneInputField-DrzFHTOL.cjs`)));function _i({onDone:e,doneWords:t=`Turn it on`}){let{user:n,refreshUser:i}=r.Ft(),[a,o]=(0,K.useState)(``),[s,c]=(0,K.useState)(``),[l,d]=(0,K.useState)(``),[f,p]=(0,K.useState)(!1),[m,h]=(0,K.useState)(null),g=(0,K.useRef)(null),_=async(e,t)=>{h(await r.Kt(e,`sms2fa`,t))},v=async()=>{if(n){h(null),p(!0);try{if(d(``),!await fi(a.trim())){h({text:ui});return}c(await pr(n,a.trim(),g.current))}catch(e){await _(e,`That code could not be sent. Check the number and try again.`)}finally{p(!1)}}};return(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`div`,{ref:g}),m&&(0,q.jsx)(Jn,{problem:m}),s?(0,q.jsxs)(r.nt.form,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.2},onSubmit:async t=>{if(t.preventDefault(),!n)return;h(null),p(!0);let r=!tr(n);try{if(await mr(n,s,l.trim()),!await mi(a.trim(),n.uid)){r&&await hr(n).catch(()=>{}),await i(),h({text:ui}),c(``),d(``);return}await i(),e()}catch(e){await _(e,`That code could not be checked. Ask for a new one.`)}finally{p(!1)}},className:`space-y-3`,children:[(0,q.jsxs)(`p`,{className:`text-[13px] text-foreground/60 font-medium leading-relaxed`,children:[`We texted a code to `,(0,q.jsx)(`span`,{className:`font-bold text-foreground/80`,children:a}),`.`]}),(0,q.jsx)(Yn,{value:l,onChange:d,autoFocus:!0}),(0,q.jsxs)(N.t,{type:`submit`,isLoading:f,className:`w-full py-2.5 sm:py-3 text-[15px] font-bold tracking-wide rounded-xl`,children:[t,` `,(0,q.jsx)(r.At,{className:`ml-2 w-4 h-4 shrink-0`})]}),(0,q.jsxs)(`div`,{className:`flex items-center justify-center gap-3 text-[13px] font-bold`,children:[(0,q.jsx)(`button`,{type:`button`,onClick:v,disabled:f,className:`text-accent hover:underline disabled:opacity-40 disabled:no-underline cursor-pointer disabled:cursor-default`,children:`Send it again`}),(0,q.jsx)(`span`,{className:`w-[1px] h-3.5 bg-[var(--panel-border)]`}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>{c(``),d(``),h(null)},className:`text-foreground/50 hover:text-accent transition-colors cursor-pointer`,children:`Use a different number`})]})]}):(0,q.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault(),await v()},className:`space-y-3`,children:[(0,q.jsx)(K.Suspense,{fallback:(0,q.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl`}),children:(0,q.jsx)(gi,{field:{label:`Your phone number`,required:!0,placeholder:`7700 900123`},value:a,onChange:o})}),(0,q.jsxs)(N.t,{type:`submit`,isLoading:f,className:`w-full py-2.5 sm:py-3 text-[15px] font-bold tracking-wide rounded-xl`,children:[`Text me a code `,(0,q.jsx)(u.t,{className:`ml-2 w-4 h-4 shrink-0`})]})]})]})}function vi(){let{user:e,signOut:t}=r.Ft(),n=r.Cn(),i=(0,Y.useNavigate)(),a=n.twoStepOptional;return(0,q.jsx)(`div`,{className:`flex-1 flex items-center justify-center w-full z-10 px-4 mt-6 mb-8 md:mt-0 md:mb-0 md:pt-8 md:pb-32`,children:(0,q.jsxs)(Bn,{width:`max-w-[480px]`,children:[(0,q.jsx)(Un,{title:a?`Make your account safer`:`One more step`,line:a?`Give us a number and we will text you a code when you sign in, as well as asking for your password. You can do this later if you would rather.`:`This app asks for a code by text as well as your password. Give us a number once, and from now on we will text you a code when you sign in.`}),(0,q.jsx)(Vn,{children:(0,q.jsx)(_i,{onDone:()=>i(`/dashboard`,{replace:!0}),doneWords:`Turn it on`})}),a&&(0,q.jsx)(Vn,{children:(0,q.jsx)(N.t,{variant:`secondary`,onClick:()=>{e?.uid&&or(e.uid),i(`/dashboard`,{replace:!0})},className:`mt-3 w-full py-2.5 text-[14px] font-semibold`,children:`Not now`})}),(0,q.jsx)(Wn,{children:(0,q.jsx)(N.t,{variant:`ghost`,onClick:()=>t(),className:`w-full py-2 text-[13px] font-semibold`,children:`Sign out`})})]})})}var yi=r.si(()=>Promise.resolve().then(()=>require(`./PhoneInputField-DrzFHTOL.cjs`))),bi=r.si(()=>Promise.resolve().then(()=>require(`./AddressField-BeRBlopK.cjs`))),xi=`text-[13px] font-medium text-foreground/50 select-none mb-1.5 ml-1`;function Si({field:e,value:t}){return(0,q.jsxs)(`div`,{className:`flex flex-col w-full relative`,children:[(0,q.jsxs)(`label`,{className:`${xi} flex items-center gap-1.5`,children:[e.label,(0,q.jsx)(w.t,{className:`w-3 h-3 text-foreground/35 shrink-0`})]}),(0,q.jsx)(`div`,{"aria-label":e.label,"aria-readonly":`true`,className:`flex items-center h-12 w-full px-4 text-[15px] text-foreground/55 glass-panel opacity-70 cursor-not-allowed truncate`,style:{borderRadius:`var(--input-radius, 0.75rem)`},children:t}),(0,q.jsx)(`p`,{className:`text-[11px] text-foreground/40 mt-1.5 px-2 font-medium`,children:`Given when you registered, and fixed from then on.`})]})}function Ci({fields:e,values:t,errors:n={},profile:i=null,disabled:a=!1,onChange:o,onCommit:s}){let c=(e,t)=>{for(let[n,r]of Object.entries(F.r(e,t)))o(n,r)},l=e=>!e.currentTarget.contains(e.relatedTarget),u=e=>s?.(e);return e.length?(0,q.jsx)(q.Fragment,{children:e.map(e=>{let s=t[e.key],d=n[e.key];return L.m(i,e)?(0,q.jsx)(Si,{field:e,value:L.a(i,e)},e.key):e.type===`tel`?(0,q.jsx)(`div`,{className:`w-full`,onBlur:t=>{l(t)&&u(e.key)},children:(0,q.jsx)(K.Suspense,{fallback:(0,q.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl`}),children:(0,q.jsx)(yi,{field:e,value:String(s||``),onChange:t=>o(e.key,t)})})},e.key):e.type===`address`?(0,q.jsx)(`div`,{className:`w-full`,onBlur:t=>{l(t)&&u(e.key)},children:(0,q.jsx)(K.Suspense,{fallback:(0,q.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl`}),children:(0,q.jsx)(bi,{id:`reg-${e.key}`,label:e.label,required:e.required,disabled:a,placeholder:e.placeholder,error:d,value:F.i(e.key,t),onChange:t=>c(e.key,t)})})},e.key):e.type===`textarea`?(0,q.jsx)(h.v,{id:`reg-${e.key}`,label:e.label,"aria-label":e.label,disabled:a,placeholder:e.placeholder,value:String(s||``),onChange:t=>o(e.key,t.target.value),onBlur:()=>u(e.key),error:d},e.key):e.type===`select`?(0,q.jsxs)(`div`,{className:`w-full`,children:[(0,q.jsx)(r.Z,{label:e.label,ariaLabel:e.label,direction:`auto`,disabled:a,value:String(s||``),options:[{value:``,label:(0,q.jsx)(`span`,{className:`text-foreground/40`,children:`Select an option...`})},...(e.options||[]).map(t=>({value:t,label:L.c(e,t)}))],onChange:t=>{o(e.key,t),u(e.key)}}),d&&(0,q.jsx)(`p`,{className:`text-xs text-red-500 font-medium mt-1`,children:d})]},e.key):e.type===`checkbox`?(0,q.jsxs)(`div`,{className:`w-full`,children:[(0,q.jsxs)(`label`,{className:`flex items-center gap-3 w-full cursor-pointer group py-2`,children:[(0,q.jsxs)(`div`,{className:`relative flex items-center justify-center w-5 h-5 rounded border border-foreground/20 bg-background/50 group-hover:border-accent transition-colors shrink-0`,children:[(0,q.jsx)(`input`,{type:`checkbox`,"aria-label":e.label,disabled:a,checked:s===!0,onChange:t=>{o(e.key,t.target.checked),u(e.key)},className:`absolute opacity-0 w-full h-full cursor-pointer`}),s===!0&&(0,q.jsx)(`span`,{className:`w-2.5 h-2.5 bg-accent rounded-sm shrink-0`})]}),(0,q.jsx)(`span`,{className:`text-[14px] font-medium text-foreground/80 leading-snug group-hover:text-foreground transition-colors`,children:e.label})]}),d&&(0,q.jsx)(`p`,{className:`text-xs text-red-500 font-medium`,children:d})]},e.key):(0,q.jsx)(h.y,{label:e.label,"aria-label":e.label,type:e.type===`number`?`number`:e.type,disabled:a,placeholder:e.placeholder,error:d,className:`max-sm:h-11`,value:String(s??``),onChange:t=>o(e.key,t.target.value),onBlur:()=>u(e.key)},e.key)})}):null}var wi=e=>/^[^@\s]+@[^@\s.]+\.[^@\s]+$/.test(e.trim());function Ti(){let{user:e,userRole:t,profile:n,signOut:i,refreshUser:a}=r.Ft(),s=r.Cn(),c=(0,Y.useNavigate)(),l=s.finishRegistration,d=o.wn(t)?[]:L.l(n,l),[f,p]=(0,K.useState)(()=>L.o(d,n)),[m,g]=(0,K.useState)({}),[_,v]=(0,K.useState)(``),[y,b]=(0,K.useState)(!1),[S,C]=(0,K.useState)(!1);(0,K.useEffect)(()=>{p(L.o(d,n))},[d.map(e=>e.key).join(`|`)]);let w=L._(n),T=w.includes(`name`),E=w.includes(`email`),[D,O]=(0,K.useState)(``),[k,A]=(0,K.useState)(``),[j,M]=(0,K.useState)(``),[P,ee]=(0,K.useState)(``),F=r.in(n),te=w.length+d.filter(e=>!L.p(n,e)).length,I=w.length+L.g(d,n).length>0?te===1?`There is one thing we still need before you go on.`:`There are a few things we still need before you go on.`:te===0?`Just check these over before you go on.`:te===1?`One question before you go on — it is not required.`:`A few questions before you go on — none of them is required.`,ne=(e=!1)=>c(e?`/verify`:L.h(n)?`/dashboard?${L.n}=1`:`/dashboard`,{replace:!0}),R=async t=>{if(t.preventDefault(),!e)return;v(``);let i=T&&!D.trim()?`Please tell us what to call you.`:``,o=E?k.trim()?wi(k)?``:`That does not look like an email address.`:`Please give us an email address.`:``;M(i),ee(o);let s=L.i(d,f);if(g(s),i||o||Object.keys(s).length){v(`There is something to check below.`);return}b(!0);try{let t={};T&&(t.displayName=D.trim()),E&&(t.email=k.trim()),await(0,J.setDoc)((0,J.doc)(r.ui,`user_profiles`,e.uid),{...L.s(d,f,n),...t,...L.d()},{merge:!0}),T&&r.li.currentUser&&(0,ue.updateProfile)(r.li.currentUser,{displayName:D.trim()}).then(()=>a()).catch(()=>{});let i=!1;E&&r.li.currentUser&&(i=await Jr(k.trim(),r.li.currentUser.uid).then(()=>!0).catch(e=>(console.warn(`The confirmation link could not be sent to the new address.`,e),!0))),ne(i)}catch(e){v(e?.code===`permission-denied`?`That could not be saved. Check that your email address is verified and that your account is still switched on.`:`That could not be saved. Check your connection and try again.`)}finally{b(!1)}},z=async()=>{e&&(C(!0),L.C(e.uid),await(0,J.setDoc)((0,J.doc)(r.ui,`user_profiles`,e.uid),L.d(),{merge:!0}).catch(()=>{}),ne())},re=y||S;return(0,q.jsx)(`div`,{className:`flex-1 flex items-center justify-center w-full z-10 px-4 mt-6 mb-8 md:mt-0 md:mb-0 md:pt-8 md:pb-32`,children:(0,q.jsxs)(Bn,{width:`max-w-[500px]`,children:[(0,q.jsx)(Un,{title:(0,q.jsx)(Ei,{request:F}),line:!s.loading&&(0,q.jsxs)(q.Fragment,{children:[I,F&&` Your registration goes to an admin for approval. Until then everything works as usual.`]})}),_&&(0,q.jsx)(x.t,{className:`mb-5`,children:_}),s.loading?(0,q.jsx)(qn,{}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`form`,{className:`flex flex-col gap-5`,onSubmit:R,noValidate:!0,children:[(T||E||d.length>0)&&(0,q.jsxs)(Vn,{className:`flex flex-col gap-5`,children:[T&&(0,q.jsx)(h.y,{name:`displayName`,label:`Your name`,type:`text`,placeholder:`Alex Taylor`,className:`max-sm:h-11`,value:D,onChange:e=>{O(e.target.value),j&&M(``)},error:j,autoFocus:!0,required:!0}),E&&(0,q.jsx)(h.y,{name:`email`,label:`Your email`,type:`email`,placeholder:`name@example.com`,className:`max-sm:h-11`,value:k,onChange:e=>{A(e.target.value),P&&ee(``)},error:P,autoFocus:!T,required:!0}),(0,q.jsx)(Ci,{fields:d,values:f,errors:m,profile:n,disabled:re,onChange:(e,t)=>{p(n=>({...n,[e]:t})),g(t=>t[e]?{...t,[e]:``}:t)}})]}),(0,q.jsx)(Vn,{className:`pt-1`,children:(0,q.jsxs)(N.t,{type:`submit`,isLoading:y,disabled:S,className:`w-full py-3 text-[15px] font-semibold`,children:[`Finish registration `,(0,q.jsx)(u.t,{className:`w-4 h-4 shrink-0`})]})})]}),l.skippable&&w.length===0&&(0,q.jsx)(Vn,{children:(0,q.jsx)(N.t,{variant:`secondary`,onClick:z,isLoading:S,disabled:y,className:`mt-3 w-full py-2.5 text-[14px] font-semibold`,children:`Skip for now`})})]}),(0,q.jsx)(Wn,{children:(0,q.jsx)(N.t,{variant:`ghost`,onClick:()=>i(),className:`w-full py-2 text-[13px] font-semibold`,children:`Sign out`})})]})})}function Ei({request:e}){return e?(0,q.jsx)(Di,{request:e}):(0,q.jsx)(q.Fragment,{children:L.u(null,``)})}function Di({request:e}){let t=ne.l();return(0,q.jsx)(q.Fragment,{children:L.u(e,r.qr(e.role,t))})}var Oi=e=>({creatorName:e?.displayName||e?.email?.split(`@`)[0]||``,creatorAvatar:e?.photoURL||``}),ki=e=>{let{creatorName:t,creatorAvatar:n}=Oi(e);return{editedUid:e?.uid||``,editedName:t,editedAvatar:n,editedAt:Date.now()}},Ai=(e,t,n)=>{let r={},i=String(e.creatorEmail||``);return e.uid===t.uid&&!e.sourceId&&(!i||i===t.email||n.was&&e.creatorName===n.was)&&(n.name&&e.creatorName!==n.name&&(r.creatorName=n.name),n.avatar!==void 0&&(e.creatorAvatar||``)!==n.avatar&&(r.creatorAvatar=n.avatar)),e.editedUid===t.uid&&(n.name&&n.was&&e.editedName===n.was&&(r.editedName=n.name),n.avatar!==void 0&&t.name&&e.editedName===t.name&&(e.editedAvatar||``)!==n.avatar&&(r.editedAvatar=n.avatar)),Object.keys(r).length?r:null},ji=(e,t)=>{if(e?.creatorName)return{name:e.creatorName,avatar:e.creatorAvatar||``};if(e?.uid&&t?.uid&&e.uid===t.uid){let e=Oi(t);return e.creatorName?{name:e.creatorName,avatar:e.creatorAvatar}:null}return null};function Mi(){let{user:e,profile:t,refreshUser:n}=r.Ft(),i=r.Cn(),[a,o]=(0,K.useState)(!1),[s,c]=(0,K.useState)(!1),[l,u]=(0,K.useState)(null),[d,f]=(0,K.useState)(!1),p=i.on.sms2fa;if(i.loading||!lr(e,p))return null;let m=tr(e),h=nr(e);return(0,q.jsxs)(`div`,{className:`glass-panel w-full p-5 sm:p-8 rounded-3xl border border-[var(--panel-border)] shadow-2xl`,children:[(0,q.jsxs)(`div`,{className:`flex items-start gap-3 sm:gap-4`,children:[(0,q.jsx)(`div`,{className:`w-9 h-9 shrink-0 rounded-xl glass-panel border border-[var(--panel-border)] flex items-center justify-center`,children:(0,q.jsx)(O.t,{className:`w-[18px] h-[18px] text-accent`})}),(0,q.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,q.jsx)(`h3`,{className:`text-[16px] font-bold text-foreground mb-1`,children:`Two-step sign-in`}),(0,q.jsx)(`p`,{className:`text-[13px] text-foreground/50 font-medium leading-relaxed`,children:m?`We text you a code when you sign in, as well as asking for your password.`:p?`This app asks for a code by text as well as your password. Add the number that should get it.`:`Add a phone number and we will text you a code when you sign in, as well as asking for your password.`})]})]}),(0,q.jsxs)(`div`,{className:`mt-5`,children:[l&&(0,q.jsx)(Jn,{problem:l}),d&&!l&&(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:-6},animate:{opacity:1,y:0},className:`mb-4 p-3 rounded-xl border border-accent/20 bg-accent/10 text-accent flex items-center gap-2`,children:[(0,q.jsx)(r.At,{className:`w-4 h-4 shrink-0`}),(0,q.jsx)(`span`,{className:`text-[13.5px] font-semibold tracking-wide`,children:`Two-step sign-in is on. We will text that number next time you sign in.`})]}),m?(0,q.jsxs)(`div`,{className:`flex flex-col sm:flex-row sm:items-center gap-3 justify-between rounded-2xl border border-[var(--panel-border)]/60 p-3.5`,children:[(0,q.jsxs)(`div`,{className:`min-w-0`,children:[(0,q.jsx)(`p`,{className:`text-[11px] font-bold uppercase tracking-[0.2em] text-foreground/40 mb-1`,children:`Your number`}),(0,q.jsx)(`p`,{className:`text-[15px] font-bold text-foreground truncate`,children:h||`Set up`})]}),(0,q.jsxs)(`button`,{type:`button`,onClick:()=>o(!0),className:`inline-flex items-center justify-center gap-1.5 h-9 px-3 rounded-xl border border-[var(--panel-border)] text-[13px] font-bold text-foreground/60 hover:text-red-500 hover:border-red-500/40 transition-colors cursor-pointer shrink-0`,children:[(0,q.jsx)(A.t,{className:`w-3.5 h-3.5 shrink-0`}),`Take it off`]})]}):(0,q.jsx)(_i,{onDone:()=>{f(!0),u(null)}})]}),(0,q.jsx)(ie.t,{isOpen:a,title:`Take two-step sign-in off?`,message:p?`This app asks for a texted code, so you will be asked for a number again straight away. That is how you change the number you gave.`:`You will sign in with your password alone from then on.`,confirmText:`Take it off`,isProcessing:s,onConfirm:async()=>{if(e){u(null),c(!0);try{await hr(e),await hi(e.uid,t?.[pi]),await n(),f(!1),o(!1)}catch(e){u(await r.Kt(e,`sms2fa`,`That could not be taken off. Try again.`)),o(!1)}finally{c(!1)}}},onCancel:()=>o(!1)})]})}function Ni(){let{user:e,profile:t}=r.Ft(),n=L.l(t,r.Cn().finishRegistration),[i,a]=(0,K.useState)(()=>L.o(n,t)),[o,s]=(0,K.useState)({}),[c,l]=(0,K.useState)(``),[u,d]=(0,K.useState)(!1),[f,p]=(0,K.useState)(null),m=(0,K.useRef)(i),h=e=>{m.current=e,a(e)};if((0,K.useEffect)(()=>{h(L.o(n,t))},[n.map(e=>`${e.key}:${String(t?.[e.key]??``)}`).join(`|`)]),!n.length)return null;let g=e=>Object.entries(e).every(([e,n])=>(t?.[e]??``)===n);return(0,q.jsxs)(`div`,{className:`glass-panel w-full p-5 sm:p-8 rounded-3xl border border-[var(--panel-border)] shadow-2xl`,children:[(0,q.jsxs)(`div`,{className:`flex items-start gap-3 sm:gap-4`,children:[(0,q.jsx)(`div`,{className:`w-9 h-9 shrink-0 rounded-xl glass-panel border border-[var(--panel-border)] flex items-center justify-center`,children:(0,q.jsx)(b.n,{className:`w-[18px] h-[18px] text-accent`})}),(0,q.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3 mb-1`,children:[(0,q.jsx)(`h3`,{className:`text-[16px] font-bold text-foreground`,children:`Your details`}),(0,q.jsx)(r.p,{saving:u,savedAt:f})]}),(0,q.jsx)(`p`,{className:`text-[13px] text-foreground/50 font-medium leading-relaxed`,children:`Change what you like — each one saves itself. Anything with a padlock was fixed when you gave it.`})]})]}),(0,q.jsxs)(`div`,{className:`mt-5 flex flex-col gap-4`,children:[c&&(0,q.jsx)(x.t,{children:c}),(0,q.jsx)(Ci,{fields:n,values:i,errors:o,profile:t,onChange:(e,t)=>{h({...m.current,[e]:t}),s(t=>t[e]?{...t,[e]:``}:t)},onCommit:async i=>{let a=n.find(e=>e.key===i);if(!e||!a||L.m(t,a))return;let o=L.r(a,m.current[i]);if(s(e=>e[i]===o?e:{...e,[i]:o}),o)return;let c=L.s([a],m.current,t);if(!(!Object.keys(c).length||g(c))){l(``),d(!0);try{await(0,J.setDoc)((0,J.doc)(r.ui,`user_profiles`,e.uid),c,{merge:!0}),p(Date.now())}catch(e){l(e?.code===`permission-denied`?`That could not be saved. Check that your account is still switched on.`:`That could not be saved. Check your connection and try again.`)}finally{d(!1)}}}})]})]})}var Pi=20,Fi=()=>{try{let e=localStorage.getItem(`fbos_nav_tabs`);if(!e)return null;let t=JSON.parse(e);return t&&typeof t==`object`?Object.entries(t):null}catch{return null}},Ii=async()=>(await(0,J.getDocs)((0,J.collection)(r.ui,`sys_tabs`))).docs.map(e=>[e.id,e.data()]);function Li(){let{user:e,profile:t,refreshUser:a,isInternal:s}=r.Ft(),[c,l]=(0,K.useState)(e?.displayName||``),[u,d]=(0,K.useState)(e?.email||t?.email||``),[f,p]=(0,K.useState)(e?.photoURL||``),[m,g]=(0,K.useState)(``),[_,v]=(0,K.useState)(``),[y,b]=(0,K.useState)(``),[S,w]=(0,K.useState)(!1),[T,E]=(0,K.useState)(!1),[O,k]=(0,K.useState)(null),[j,M]=(0,K.useState)(``),[N,P]=(0,K.useState)(!1),[F,te]=(0,K.useState)(null),[I,L]=(0,K.useState)(``),ne=K.default.useRef(null),[R,z]=(0,K.useState)(!1),[re,ie]=(0,K.useState)(null),[B,V]=(0,K.useState)(``),[ae,oe]=(0,K.useState)(!1),[H,se]=(0,K.useState)(null),[U,ce]=(0,K.useState)(``);K.default.useEffect(()=>{l(e?.displayName||t?.displayName||``)},[e?.uid,e?.displayName,t?.displayName]),K.default.useEffect(()=>{d(e?.email||t?.email||``)},[e?.uid,e?.email,t?.email]),K.default.useEffect(()=>{p(e?.photoURL||``)},[e?.uid,e?.photoURL]);let W=async t=>{if(e)try{if(!s)return;let n=[`mem_files`,`admin_files`],i=Fi()??await Ii();for(let[e,t]of i){let r=(t.tabName||e).toLowerCase().replace(/[^a-z0-9]+/g,`_`),i=o.An(t.pageType),a=o.Pn(t)===`shared`;a&&i===`internal`&&n.push(`mem_${r}_records`),a&&i===`admin`&&n.push(`admin_${r}_records`)}n.length>Pi&&(n.length=Pi);let a={uid:e.uid,email:e.email,name:e.displayName};for(let i of n)try{let[n,o]=await Promise.all([(0,J.getDocs)((0,J.query)((0,J.collection)(r.ui,i),(0,J.where)(`uid`,`==`,e.uid))),(0,J.getDocs)((0,J.query)((0,J.collection)(r.ui,i),(0,J.where)(`editedUid`,`==`,e.uid)))]),s=new Map;for(let e of[...n.docs,...o.docs]){let n=s.has(e.id)?null:Ai(e.data(),a,t);n&&s.set(e.id,{ref:e.ref,fields:n})}let c=[...s.values()];for(let e=0;e<c.length;e+=400){let t=(0,J.writeBatch)(r.ui);c.slice(e,e+400).forEach(e=>t.update(e.ref,e.fields)),await t.commit()}}catch{}}catch(e){console.error(`Error carrying the name or photo onto records:`,e)}},le=async t=>{if(!e)return;let n=await ee._(t,{maxSide:512});if(n.size>2*1024*1024){M(`Over 2MB`);return}E(!0),w(!1),M(``);try{let t=`user_avatars/${e.uid}/file.png`,i=(0,de.ref)(r.fi,t);await(0,de.uploadBytes)(i,n,r.W(t,{ownerId:e.uid}));let o=await(0,de.getDownloadURL)(i);p(o);let s=(0,J.doc)(r.ui,`user_profiles`,e.uid);await Promise.all([(0,ue.updateProfile)(e,{photoURL:o}),(0,J.updateDoc)(s,{avatar:o}),W({avatar:o})]),await a(),k(Date.now())}catch(e){console.error(e),M(`Not saved`)}finally{E(!1)}},G=e=>{let t=e.target.files?.[0];t&&le(t)},{over:Y,dropProps:fe}=r.A({accept:`image/*`,disabled:T,onFiles:([e])=>le(e),onReject:()=>M(`Not a picture`)}),pe=async()=>{if(e){E(!0),w(!1),M(``);try{let t=(0,de.ref)(r.fi,`user_avatars/${e.uid}/file.png`);p(``),E(!1);let n=(0,J.doc)(r.ui,`user_profiles`,e.uid);await Promise.all([(0,de.deleteObject)(t).catch(e=>console.error(e)),(0,ue.updateProfile)(e,{photoURL:``}),(0,J.updateDoc)(n,{avatar:``}),W({avatar:``})]),await a(),k(Date.now())}catch(e){console.error(e),M(`Not removed`),E(!1)}}},me=()=>e?.displayName||t?.displayName||``,he=async()=>{if(!e)return;let t=c.trim();if(!t){l(me());return}if(t!==c&&l(t),t===me()||t===ne.current)return;ne.current=t;let n=me();P(!0),L(``);try{await(0,ue.updateProfile)(e,{displayName:t}),await(0,J.updateDoc)((0,J.doc)(r.ui,`user_profiles`,e.uid),{displayName:t}).catch(()=>{}),await a(),te(Date.now()),W({name:t,was:n})}catch(e){console.error(e),ne.current=null,L(`Not saved`)}finally{P(!1)}},ge=u.trim(),_e=!!ge&&ge!==(e?.email||``),X=async()=>{if(!e||!_e||ae)return;let t=ge;if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)){se({text:`That does not look like an email address yet.`,tone:`error`});return}oe(!0),se(null);try{if(await(0,J.updateDoc)((0,J.doc)(r.ui,`user_profiles`,e.uid),{email:t}).catch(()=>{}),!e.email)await Jr(t,e.uid),se({text:`We have emailed a link to ${t} — open it and the address is on your sign-in, so you can use it to sign in as well as your phone. You stay signed in here either way.`,tone:`done`});else{let n=await(0,ue.fetchSignInMethodsForEmail)(r.li,t).catch(()=>[]);if(n&&n.length>0)throw Object.assign(Error(`email-already-in-use`),{code:`auth/email-already-in-use`});await(0,ue.verifyBeforeUpdateEmail)(e,t),se({text:`A link is on its way to your new address. Opening it moves your sign-in to it — and because that changes the account itself, you will be signed out here and will need to sign in again with the new address.`,tone:`done`})}ce(t),await a()}catch(e){console.error(e),e?.code===`auth/requires-recent-login`?se({text:`For your safety, sign out and sign back in, then change your address here.`,tone:`error`}):e?.code===`auth/email-already-in-use`?se({text:`That email address already belongs to another account here. Use a different one, or sign in with the account that has it.`,tone:`error`}):se({text:(await r.Kt(e,`password`,`The link could not be sent. Check your connection and try again.`,{email:t})).text,tone:`error`})}finally{oe(!1)}},ve=async()=>{if(!e||R||!m||!_||Ar(m))return;let t=jr(m,_);if(t){b(t);return}z(!0),V(``);try{await(0,ue.updatePassword)(e,m),g(``),v(``),b(``),ie(Date.now())}catch(e){console.error(e),V(e?.code===`auth/requires-recent-login`?`For your safety, sign out and sign back in, then set your new password here. It has not been changed.`:(await r.Kt(e,`password`,`Your password could not be changed. Check your connection and try again.`)).text)}finally{z(!1)}},ye=e=>{e.currentTarget.contains(e.relatedTarget)||ve()},be=e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())};return(0,q.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,q.jsxs)(r.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-5 sm:mb-8`,children:[(0,q.jsx)(n.t,{children:`Profile Settings`}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,q.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),`/profile`]})]}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-4 sm:gap-6 flex-1 fbos-fade-in pb-20`,children:[(0,q.jsx)(`div`,{className:`flex justify-start`,children:(0,q.jsx)(i.t,{})}),(0,q.jsx)(`div`,{className:`w-full flex flex-col`,children:(0,q.jsxs)(`div`,{className:`glass-panel w-full p-5 sm:p-8 md:p-12 rounded-3xl border border-[var(--panel-border)] shadow-2xl space-y-8 md:min-h-[500px] fbos-tab-fill`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-4 sm:gap-5 pb-6 border-b border-[var(--panel-border)]/50`,children:[(0,q.jsxs)(`div`,{...fe,className:`relative shrink-0 group/avatar rounded-full transition-shadow ${Y?`ring-2 ring-accent ring-offset-2 ring-offset-background`:``}`,children:[(0,q.jsxs)(`div`,{className:`w-16 h-16 sm:w-20 sm:h-20 rounded-full glass-panel border-2 border-[var(--panel-border)] shadow-lg bg-accent/10 flex items-center justify-center relative overflow-hidden`,children:[T&&(0,q.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center bg-accent/5 backdrop-blur-sm z-10`,children:(0,q.jsx)(C.r,{className:`w-6 h-6 text-accent animate-spin`})}),f&&!S?(0,q.jsx)(r.O,{src:f,alt:`Avatar`,className:`w-full h-full`,onError:()=>w(!0)}):(0,q.jsx)(Ct,{className:`w-7 h-7 sm:w-8 sm:h-8 text-accent`})]}),!T&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`label`,{title:f?`Change photo`:`Upload photo`,className:`absolute inset-0 rounded-full bg-background/60 backdrop-blur-[2px] opacity-0 group-hover/avatar:opacity-100 focus-within:opacity-100 flex items-center justify-center cursor-pointer transition-opacity z-20`,children:[(0,q.jsx)(Ue,{className:`w-4 h-4 text-foreground`}),(0,q.jsx)(`input`,{type:`file`,accept:`image/*`,"aria-label":`Upload photo`,onChange:G,className:`hidden`})]}),f&&(0,q.jsx)(`button`,{type:`button`,onClick:pe,title:`Remove photo`,"aria-label":`Remove photo`,className:`hidden group-hover/avatar:flex absolute -top-1 -right-1 w-6 h-6 rounded-full bg-background border border-[var(--panel-border)] text-foreground/50 hover:text-red-500 hover:border-red-500/40 items-center justify-center shadow-sm cursor-pointer z-30`,children:(0,q.jsx)(A.t,{className:`w-3 h-3`})})]})]}),(0,q.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,q.jsx)(`h3`,{className:`font-bold text-lg sm:text-xl text-foreground mb-1 truncate`,children:c||`User`}),(0,q.jsx)(`p`,{className:`text-[13px] text-foreground/40 mt-1 font-medium break-words`,children:e?.email})]}),(0,q.jsx)(r.p,{saving:T,savedAt:O,error:j})]}),(0,q.jsxs)(`div`,{className:`space-y-6`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,q.jsx)(`h3`,{className:`text-[16px] font-bold text-foreground`,children:`Account Details`}),(0,q.jsx)(r.p,{saving:N,savedAt:F,error:I})]}),(0,q.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-5 md:gap-6`,children:[(0,q.jsx)(h.y,{name:`name`,value:c,onChange:e=>l(e.target.value),onBlur:he,onKeyDown:be,label:`Display Name`,placeholder:`John Doe`}),(0,q.jsxs)(`div`,{className:`flex flex-col`,children:[(0,q.jsx)(h.y,{name:`email`,type:`email`,value:u,onChange:e=>{d(e.target.value),H?.tone===`error`&&se(null)},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),X())},label:`Email Address`,placeholder:`name@example.com`}),(0,q.jsxs)(`div`,{className:`mt-1.5 px-2 flex items-center justify-between gap-3 min-h-8 sm:min-h-9`,children:[(0,q.jsx)(`p`,{className:`text-[11px] text-foreground/40 font-medium leading-snug`,children:_e?`Nothing changes until you open the link we email to it.`:`A new address is confirmed by a link we email to it.`}),_e&&(0,q.jsx)(r.o,{icon:D.t,onClick:()=>void X(),busy:ae,children:U===ge||!e?.email&&ge===t?.email?`Send again`:`Send link`})]}),H&&(0,q.jsx)(x.t,{tone:H.tone,className:`mt-2`,children:H.text})]})]})]}),(0,q.jsxs)(`div`,{className:`pt-6 border-t border-[var(--panel-border)]/50`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3 mb-4`,children:[(0,q.jsx)(`h3`,{className:`text-[15px] font-bold text-foreground`,children:`Change Password`}),(0,q.jsx)(r.p,{saving:R,savedAt:re,error:B?`Not changed`:``})]}),(0,q.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-5 md:gap-6`,onBlur:ye,children:[(0,q.jsx)(h.y,{name:`password`,type:`password`,label:`New Password`,autoComplete:`new-password`,value:m,onChange:e=>{g(e.target.value),y&&e.target.value===_&&b(``),B&&V(``)},onKeyDown:be,placeholder:`At least 8 characters`}),(0,q.jsx)(h.y,{name:`confirmPassword`,type:`password`,label:`Confirm New Password`,autoComplete:`new-password`,value:_,onChange:e=>{v(e.target.value),y&&b(``),B&&V(``)},onBlur:()=>b(_?jr(m,_):``),onKeyDown:be,error:y,placeholder:`Type it a second time`})]}),m&&(0,q.jsx)(Mr,{value:m,className:`mt-3`}),B&&(0,q.jsx)(x.t,{className:`mt-3`,children:B})]})]})}),(0,q.jsx)(Mi,{}),(0,q.jsx)(Ni,{})]})]})}function Ri(){let[e,t]=(0,K.useState)(!1),[n,i]=(0,K.useState)(null),[a,o]=(0,K.useState)(0),[s,c]=(0,K.useState)(0);return(0,K.useEffect)(()=>{let e;return a>0&&(e=setInterval(()=>o(e=>e-1),1e3)),()=>clearInterval(e)},[a]),(0,q.jsx)(`div`,{className:`flex-1 flex items-center justify-center w-full z-10 px-4 mb-16 mt-6 md:mt-0 md:mb-0 md:pt-8 md:pb-32`,children:(0,q.jsxs)(Bn,{width:`max-w-[480px]`,className:`text-center`,children:[(0,q.jsx)(Un,{title:`Reset Password`,line:`Enter your email to receive a recovery link.`}),n&&(0,q.jsx)(x.t,{tone:`done`,className:`mb-5 max-w-[360px] mx-auto`,children:n}),(0,q.jsx)(Vn,{children:(0,q.jsxs)(`form`,{className:`flex flex-col gap-5 text-left max-w-[360px] mx-auto`,onSubmit:async e=>{e.preventDefault(),t(!0),i(null);let n=new FormData(e.currentTarget).get(`email`);try{await(0,ue.sendPasswordResetEmail)(r.li,n)}catch(e){console.error(e)}finally{i(`If an account exists, a reset link has been sent. Check your inbox and spam folder.`);let e=s+1;c(e),o(e===1?60:120),t(!1)}},children:[(0,q.jsx)(h.y,{name:`email`,label:`Work Email`,type:`email`,placeholder:`name@company.com`,required:!0}),(0,q.jsx)(`div`,{className:`pt-1`,children:(0,q.jsx)(N.t,{type:`submit`,className:`w-full py-3 text-[14px] font-semibold ${a>0?`opacity-60 shadow-none cursor-not-allowed pointer-events-none`:``}`,isLoading:e,disabled:a>0,children:a>0?`Resend link in ${(e=>`${Math.floor(e/60)}:${(e%60).toString().padStart(2,`0`)}`)(a)}`:s>0?`Resend reset password link`:`Send Reset Link`})})]})}),(0,q.jsx)(Wn,{children:(0,q.jsxs)(Y.Link,{to:`/login`,className:`inline-flex items-center gap-2 text-[14px] text-foreground/60 font-medium hover:text-accent transition-colors`,children:[(0,q.jsx)(l.t,{className:`w-4 h-4`}),`Back to Sign In`]})})]})})}var zi=new Set,Bi=new Set;function Vi(){let{pathname:e,search:t}=(0,Y.useLocation)();return(0,K.useEffect)(()=>{if(e===`/payment-complete`)return;let n=new URLSearchParams(t),i=e.startsWith(`/book/`);n.get(`booking_back`)===`1`&&!i&&h.s().then(e=>{!e||Bi.has(e.pending.sessionId)||(Bi.add(e.pending.sessionId),k.n(e.outcome===`letGo`?`${h.i.letGo} Pick a time again whenever you are ready.`:h.i[e.outcome],{for:7e3}))}).catch(()=>{});let a=n.get(`session_id`)||``;!a.startsWith(`cs_`)||zi.has(a)||(zi.add(a),r.An(a).then(async e=>{let{booked:t,held:n}=await h.o(a,e);if(!t||i)return;let r=e.receipt&&e.customerEmail?` A receipt is on its way to ${e.customerEmail}.`:``;k.n(e.paid?n?`Paid — ${t.when} is held for you while it is confirmed.${r}`:`${h.a}${r}`:`Thank you — ${t.when} is held for you while your payment clears.`,{for:9e3})}).catch(()=>{}))},[e,t]),null}var Hi=`public_copies`,Ui=e=>Array.isArray(e)?e.map(e=>String(e??``)).filter(Boolean).sort():[];function Wi(e){let t=e&&typeof e.copies==`object`&&e.copies?e.copies:null;if(!t)return{};let n={};for(let[e,r]of Object.entries(t))/^[a-z][a-z0-9_]*$/.test(e)&&(n[e]={leaveOut:Ui(r?.leaveOut)});return n}function Gi(e,t){let n={};for(let[r,i]of Object.entries(e)){let e=t[r];e&&e.leaveOut.join(`
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./chunk-CiTBaPhY.cjs`),t=require(`./forms-CmNeTETW.cjs`),n=require(`./PageTitle-ByxBmxNx.cjs`),r=require(`./Picture-CIpRravW.cjs`),i=require(`./DashboardNav-D720vB0P.cjs`),a=require(`./VideoPlayer-DoIzaXer.cjs`),o=require(`./paymentGives-BX-cqv1W.cjs`),s=require(`./chevron-down-lyDK1rfL.cjs`),c=require(`./TemplateDrive-BC3tiCTp.cjs`),l=require(`./arrow-left-C39sNUA7.cjs`),u=require(`./eye-off-CRgHCz_u.cjs`),d=require(`./ContactPopup-BV76FHLk.cjs`),f=require(`./FileViewerPopup-eLWt3CGR.cjs`),p=require(`./SupportBar-DCy5HD1F.cjs`),m=require(`./ProviderMark-DJMtxquj.cjs`),h=require(`./FormNote-DYy72Jy1.cjs`),g=require(`./arrivalRoads-kQAFp2Fh.cjs`),_=require(`./search-DZsQiVlv.cjs`),v=require(`./lock-Crcvzjn3.cjs`),y=require(`./EmailParts-CrdTIn2V.cjs`),b=require(`./plus-CfT8mbzZ.cjs`),x=require(`./send-YFb2G_7p.cjs`),S=require(`./shield-check-DpQW7BMO.cjs`),C=require(`./Said-K7oCGT4l.cjs`),w=require(`./trash-CqgJZKKm.cjs`),T=require(`./x-Bkygdt4T.cjs`),E=require(`./contentFallback-D10JFfXB.cjs`),D=require(`./Popup-B2t89jbC.cjs`),O=require(`./Button-DU_0CFEH.cjs`),k=require(`./Loader-J-Oqt3L_.cjs`),A=require(`./mediaKind-JNVvFTwG.cjs`),j=require(`./address-CFi7HWQ4.cjs`),ee=require(`./formPage-Bl_d68fl.cjs`),M=require(`./email-sj7orYpa.cjs`),N=require(`./registrationFields-CJbEfmAY.cjs`),P=require(`./roles-Dlr47KLC.cjs`),F=require(`./cases-DsmEfRM-.cjs`),te=require(`./pageGroup-CgsLzyjY.cjs`),I=require(`./casesFromForm-CayaHL1x.cjs`),L=require(`./people-BGK2AuYa.cjs`),R=require(`./transactions-QnXyjYWW.cjs`),ne=require(`./tabAudience-ChpP1jMg.cjs`),re=require(`./ConfirmModal-CnhqoL-w.cjs`),ie=require(`./recordsKey-BGbEh_M4.cjs`),z=require(`./ManagePlanButton-BYlCYQTV.cjs`),B=require(`./pageFiles-PV1rx630.cjs`),ae=require(`./recordLock-BZejkriA.cjs`),V=require(`./AccessNotice-CHam7DDm.cjs`),H=require(`./Setup-Cf26EW-R.cjs`),oe=require(`./recordPrice-TT02LDkm.cjs`),U=require(`./PhoneInputField-C6eBeNwS.cjs`);let W=require(`react`);W=e.a(W,1);let G=require(`react/jsx-runtime`),se=require(`firebase/auth`),K=require(`firebase/firestore`),ce=require(`firebase/storage`),q=require(`react-router-dom`),J=require(`react-dom`);var Y=Object.assign({"./contactForm.config.ts":t.o,"./supportForm.config.ts":t.i}),X={};for(let e in Y){let t=Y[e];if(!t)continue;let n=null;for(let e in t)if(e.endsWith(`FormConfig`)||e.endsWith(`Config`)){n=t[e];break}if(!n&&t?.default&&(n=t.default),!n)continue;let r=e.replace(`./`,``).replace(`.config.ts`,``).replace(/Form$/,``).toLowerCase(),i={...n,systemName:n.systemName||r};X[r]=i,i.systemName&&(X[i.systemName]=i,X[i.systemName.toLowerCase()]=i)}if(typeof window<`u`){let e=window.__FBOS_FORMS__||{};window.__FBOS_FORMS__={...X,...e}}var le=Object.assign({}),Z={};for(let e in le){let t=le[e];if(!t)continue;let n=null;for(let e in t)if(e.endsWith(`Config`)){n=t[e];break}if(!n&&t?.default&&(n=t.default),!n)continue;let r=e.replace(`./`,``).replace(`.config.ts`,``).replace(/Registration$/,``).toLowerCase();Z[r]=n}if(typeof window<`u`){let e=window.__FBOS_REGISTRATION__||{};window.__FBOS_REGISTRATION__={...Z,...e}}var ue=Object.assign({}),de=Object.assign({}),fe={};for(let e in ue){let t=ue[e];if(!t)continue;let n=null;for(let e in t)if(e.endsWith(`TabConfig`)||e.endsWith(`Config`)){n=t[e];break}if(!n&&t?.default&&(n=t.default),!n)continue;let r=e.replace(`./`,``).replace(`.config.ts`,``).replace(/Tab$/,``).toLowerCase(),i={config:{...n,pageId:n.pageId||r,tabName:n.tabName||n.title||r},isPublic:!1};fe[r]=i,i.config.pageId&&(fe[i.config.pageId]=i,fe[i.config.pageId.toLowerCase()]=i)}for(let e in de){let t=de[e];if(!t)continue;let n=null;for(let e in t)if(e.endsWith(`PageConfig`)||e.endsWith(`Config`)){n=t[e];break}if(!n&&t?.default&&(n=t.default),!n)continue;let r=e.replace(`./`,``).replace(`.config.ts`,``).replace(/Page$/,``).toLowerCase(),i={config:{...n,pageId:n.pageId||r,pageName:n.pageName||n.title||r},isPublic:!0};fe[r]=i,i.config.pageId&&(fe[i.config.pageId]=i,fe[i.config.pageId.toLowerCase()]=i)}if(typeof window<`u`){let e=window.__FBOS_PAGES__||{};window.__FBOS_PAGES__={...fe,...e}}var pe=`.fbos-content-slot, .fbos-home-slot`,me=`[data-picture]`,he=`[data-fbos-own]`,ge=/url\(\s*['"]?\s*(?:https?:|data:image|\/|[\w./-]+\.(?:png|jpe?g|webp|avif|gif|svg))/i,_e={img:`This page draws a picture with a plain <img>, so it holds no space while it loads, arrives in pieces down the screen, and downloads the full-size photograph however small the box is.`,background:`This page draws a picture as a background, so it holds no space while it loads, says nothing to somebody who cannot see it, and downloads the full-size photograph however small the box is.`},Q=`Paste this to your assistant: "Every picture on this page must use <Picture src={…} alt="…" className="…" /> imported from the app, not a plain <img> or a background image."`,ve=e=>`${_e[e]} ${Q}`,ye=e=>!!e.closest(pe)&&!e.closest(`${me}, ${he}`);function be(e){let t=new Set;for(let n of e.querySelectorAll(`img`))if(ye(n)){t.add(`img`);break}for(let n of e.querySelectorAll(`[style*="background"]`)){let e=n.getAttribute(`style`)||``;if(ge.test(e)&&ye(n)){t.add(`background`);break}}return t}function xe(e,t,n=()=>``){if(typeof MutationObserver>`u`)return()=>{};let r=new Set,i=0,a=()=>{let i=n();for(let n of be(e)){let e=`${i}#${n}`;r.has(e)||(r.add(e),t(n,ve(n)))}},o=e=>e.some(e=>e.type===`childList`||e.attributeName===`src`||(e.target.getAttribute?.(`style`)||``).includes(`url(`)),s=()=>{i||=requestAnimationFrame(()=>{i=0,a()})};a();let c=new MutationObserver(e=>{o(e)&&s()});return c.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`style`,`src`]}),()=>{c.disconnect(),i&&cancelAnimationFrame(i)}}var $=()=>{document.querySelectorAll(`.fbos-content-slot style, .fbos-home-slot style`).forEach(e=>{e.disabled&&e.media===`not all`||(e.disabled=!0,e.media=`not all`,typeof console<`u`&&console.warn(`FirebaseOS: a <style> tag inside a content file is global CSS and was disabled — style with theme classes (bg-background, text-foreground, glass-panel, btn-primary) instead.`))})},Se=e=>{for(let t=e;t;t=t.parentElement){if(t.classList.contains(`fbos-content-slot`)||t.classList.contains(`fbos-home-slot`))return!1;if(getComputedStyle(t).position===`fixed`)return!0}return!1},Ce=()=>{if(typeof window>`u`)return;let e=window.innerHeight*.6;document.querySelectorAll(`.fbos-content-slot *, .fbos-home-slot *`).forEach(t=>{if(!t.clientHeight||t.clientHeight<e||t.scrollHeight<=t.clientHeight+2)return;let n=getComputedStyle(t);n.overflowY!==`visible`&&(n.webkitLineClamp&&n.webkitLineClamp!==`none`||Se(t)||(t.style.setProperty(`max-height`,`none`,`important`),t.style.setProperty(`height`,`auto`,`important`),t.scrollHeight>t.clientHeight+2&&t.style.setProperty(`overflow-y`,`visible`,`important`),typeof console<`u`&&console.warn(`FirebaseOS: a box in a content file was as tall as the screen and hid the rest of the page, which left the bottom unreachable on a phone — it was allowed to grow. Let the page be as long as it needs: no h-screen, max-h-screen or overflow-hidden around the whole page.`)))})},we=`.fbos-content-slot, .fbos-home-slot`,Te=()=>!!document.querySelector(we),Ee=e=>{let t=e.nodeType===Node.ELEMENT_NODE?e:e.parentElement;return t?!!t.closest?.(we)||!!t.matches?.(we)||!!t.querySelector?.(we):!1},De=e=>e.some(e=>Ee(e.target)||Array.from(e.addedNodes).some(Ee)),Oe=()=>{(0,W.useEffect)(()=>{if(typeof document>`u`||typeof MutationObserver>`u`)return;let e=()=>{Te()&&($(),Ce())},t=null,n=()=>{if(t!==null)return;let n=()=>{t=null,e()};t=typeof requestAnimationFrame==`function`?requestAnimationFrame(n):setTimeout(n,0)},r=()=>{t!==null&&(typeof cancelAnimationFrame==`function`&&cancelAnimationFrame(t),clearTimeout(t),t=null)},i=n;e();let a=new MutationObserver(e=>{De(e)&&n()});return a.observe(document.body,{childList:!0,subtree:!0}),window.addEventListener(`resize`,i),window.addEventListener(`orientationchange`,i),()=>{r(),a.disconnect(),window.removeEventListener(`resize`,i),window.removeEventListener(`orientationchange`,i)}},[])},ke=`fbos_hand_drawn_pictures`,Ae=e=>{try{return(sessionStorage.getItem(ke)||``).split(`|`).includes(e)}catch{return!1}},je=e=>{try{let t=(sessionStorage.getItem(ke)||``).split(`|`).filter(Boolean);sessionStorage.setItem(ke,[...new Set([...t,e])].join(`|`))}catch{}},Me=e=>{(0,W.useEffect)(()=>{if(!e||typeof document>`u`)return;let t=()=>typeof location>`u`?``:location.pathname;return xe(document.body,(e,n)=>{let i=`${t()}#${e}`;Ae(i)||(je(i),a.d(r.dt(n)))},t)},[e])};function Ne(){let{isAdmin:e}=n.Q();return Me(!!e),null}var Pe={name:`bell`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]};Pe.node;var Fe=s.n(Pe),Ie={name:`camera`,size:24,node:[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]};Ie.node;var Le=s.n(Ie),Re={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};Re.node;var ze=s.n(Re),Be={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};Be.node;var Ve=s.n(Be),He={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]};He.node;var Ue=s.n(He),We={name:`circle-x`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-circle`]};We.node;var Ge=s.n(We),Ke={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};Ke.node;var qe=s.n(Ke),Je={name:`database`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]};Je.node;var Ye=s.n(Je),Xe={name:`file-exclamation-point`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`file-warning`]};Xe.node;var Ze=s.n(Xe),Qe={name:`grip-vertical`,size:24,node:[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]};Qe.node;var $e=s.n(Qe),et={name:`layout-list`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}],[`path`,{d:`M14 4h7`,key:`3xa0d5`}],[`path`,{d:`M14 9h7`,key:`1icrd9`}],[`path`,{d:`M14 15h7`,key:`1mj8o2`}],[`path`,{d:`M14 20h7`,key:`11slyb`}]]};et.node;var tt=s.n(et),nt={name:`mail-warning`,size:24,node:[[`path`,{d:`M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5`,key:`e61zoh`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}],[`path`,{d:`M20 14v4`,key:`1hm744`}],[`path`,{d:`M20 22v.01`,key:`12bgn6`}]]};nt.node;var rt=s.n(nt),it={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]};it.node;var at=s.n(it),ot={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};ot.node;var st=s.n(ot),ct={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};ct.node;var lt=s.n(ct),ut={name:`shield-alert`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]};ut.node;var dt=s.n(ut),ft={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]};ft.node;var pt=s.n(ft),mt={name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]};mt.node;var ht=s.n(mt),gt={name:`user`,size:24,node:[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]};gt.node;var _t=s.n(gt),vt={name:`wrench`,size:24,node:[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]};vt.node;var yt=s.n(vt),bt=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAATRlWElmTU0AKgAAAAgABwESAAMAAAABAAEAAAEaAAUAAAABAAAAYgEbAAUAAAABAAAAagEoAAMAAAABAAIAAAExAAIAAABqAAAAcgE7AAIAAAAJAAAA3IdpAAQAAAABAAAA5gAAAAAAAABgAAAAAQAAAGAAAAABQ2FudmEgZG9jPURBRzBuT2dSOVZFIHVzZXI9VUFHTW5pX05rRHcgYnJhbmQ9QkFHTW50Vy1oYkEgdGVtcGxhdGU9VGVhbCBNb2Rlcm4gR2FtaW5nIFlvdVR1YmUgQ2hhbm5lbCBMb2dvAEFudG9uaW5hAAAABpAAAAcAAAAEMDIxMJEBAAcAAAAEAQIDAKAAAAcAAAAEMDEwMKABAAMAAAABAAEAAKACAAQAAAABAAAAgKADAAQAAAABAAAAgAAAAAB8OpdMAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAGZmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczpleGlmPSJodHRwOi8vbnMuYWRvYmUuY29tL2V4aWYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIj4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+ODAwPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6RXhpZlZlcnNpb24+MDIxMDwvZXhpZjpFeGlmVmVyc2lvbj4KICAgICAgICAgPGV4aWY6Rmxhc2hQaXhWZXJzaW9uPjAxMDA8L2V4aWY6Rmxhc2hQaXhWZXJzaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+ODAwPC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6Q29tcG9uZW50c0NvbmZpZ3VyYXRpb24+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpPjE8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaT4yPC9yZGY6bGk+CiAgICAgICAgICAgICAgIDxyZGY6bGk+MzwvcmRmOmxpPgogICAgICAgICAgICAgICA8cmRmOmxpPjA8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6U2VxPgogICAgICAgICA8L2V4aWY6Q29tcG9uZW50c0NvbmZpZ3VyYXRpb24+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+Q2FudmEgZG9jPURBRzBuT2dSOVZFIHVzZXI9VUFHTW5pX05rRHcgYnJhbmQ9QkFHTW50Vy1oYkEgdGVtcGxhdGU9VGVhbCBNb2Rlcm4gR2FtaW5nIFlvdVR1YmUgQ2hhbm5lbCBMb2dvPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjk2PC90aWZmOlhSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj45NjwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPGRjOnRpdGxlPgogICAgICAgICAgICA8cmRmOkFsdD4KICAgICAgICAgICAgICAgPHJkZjpsaSB4bWw6bGFuZz0ieC1kZWZhdWx0Ij5Mb2dvcyBmb3IgWWFpVyAtIDE8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6QWx0PgogICAgICAgICA8L2RjOnRpdGxlPgogICAgICAgICA8ZGM6Y3JlYXRvcj4KICAgICAgICAgICAgPHJkZjpTZXE+CiAgICAgICAgICAgICAgIDxyZGY6bGk+QW50b25pbmE8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6U2VxPgogICAgICAgICA8L2RjOmNyZWF0b3I+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgrOj7XjAAA76UlEQVR4Ae19B2CV1fn+e0d2CBlAGGFv2UNRRASROgqiImqL0ta21tX+Wru0rYLW1lpr1Wq11lZbtdZdrVAHDlTUCgjKlhkgJIEEQhKy7/g/z3u+c+93b24CWPQvgRPOd+Z31vO+73nP+C4eabsmGV3Lhu0A2wU2z/GPgzsQtiMs432wFbClsB87thhuOewe2BLYvbCNsG3OeNpIj9LRjz6wQ2GHwQ6B7Q9LkEkESbCfxoTwkiWOjfCvgl0BuxZ2K+wRTxRHKgF4MfgDYMfDngZ7AmxPWHL952HqUclm2A9hF8G+D/sJbBj2iDJHEgGwraNgp8GeDTscNg32i2Dq0AhKhldgX3T8cI6ZwzECBSjkath3YSlyyWVfZNuA9r0FexVsN9hj5lOOwIl476+wZbBfZMBba9tutP0hWE5Vx8xBjsAZyEcxeiRwe2vgu9MC6M/LsGfCHjMtjMAUxL8K6x64tugnIVBxbZOGitrBWHfnRyPwDGwQti0CnqhP7OuTsCNhj0hzMCC3loedzoG9FXY/bKJBOhriqtH3X8Jyr+ILbVoD81DSbCenw8PNlKMB5IPp42qMBZe2n7sheC2Z1tJc78w7yHxzMRDZoPTqW4D7FSiAmzkwHJ9jBiPAXcc/w/4MlruPn4tJBF6iOFdjDhZw+wqBp0kaj2n+XngOMO8d9QTB8wjuIbwH+5kbN9huv6vi1gCf68rXmjcZGzlBzvcZiXO1BnpraYlLawOx1It+BPvAZ90Xgn4IwCcGfJY83ayMITIrfL+MSCuTNXeGJfztRB1pGdpEKYniEpXapuL+iN6QEHj28JmYOAJIxO3NQY8HvEzWOgRwqjayo0wKL5Benepk598xx09t3vLEYB5cbOJczetoMzHcN7gMtuSz6JFDAPHAz42pKzHgp8bkmSSTIuE7pFu/Gil7AuCPiETGeSAVmsXERTTL0VxhjC8jvoQ2E16JnlwIyxPHw2pAAPMcbZzlRoFvDnpHh8sFUE+KaUSxfKhpXWVM+LfScXi9VGJjJ9w7JtNBBGKJIgpu1GcLcce4/Ta9Tbpb0atZsDyCPmzGHy1prnrdwJeJBT0Wcgs4X6iQNICfhl2d48K3Sf4JDVL1FNQKnIJF6CVaRQKednO1x/WOG1aP8140zpbNGLffVVXb8/ZGl3hGch7sB4erexi9sEqAeShxjaPMWeDdsFvQDeDcvku2Iy/jpF/4Duk1plZ2PYfyOh9c42L5PUoIUZhtOdGc0bREPpM/mmLfb2Mur66dA7v0cPRLCcByfTzwLYHeT/pp3dVS6GknvcKPysBB1Z4d8wEiz+4PzoSbA9Uc6Ng88enxqdGKY1Oi8W3Gtx09OQuWu6n/k/HMkqd8rQFvOZ2gE3BTWy+pKSjyZPgLwq+XTOlW2vjBgrCEBpq0iGBI0LDmwERA1aRoeiRexX80noXGpkVlh9sX60/QlCM/aj26wBVW0f/SFb8B3wh7N8fHA89Ti5oCv6dACqQmVOLJkYLwovKftSttXPoY4AH4OpNE2uKezxlpQHMThwHV5INfkzjbw2+D+h7fZiLz0zJktQKGwpHUaD6Ty+ZnqA2aQejTY7A8VyE8n8p45klYFUGCz/mdwLtFvBt01lAX9AKNfPyJ3FuW93BQGqmZKgh03T4Tdj8NgIyJ+OCJ5Wib4sS6pgoTw3SbJ/7d2JRozdH80bg24/s7evIN2E/VSd8Ame7bLvu85VLsbZROCj5FfUXBfm9+Vg+PL1TjqQrUegPhzp79wXpvWsjrzeiULn/d0eVHgXD91eRGL/7omj+338ZZ151GABDvoaXX5DEEpBFIZTSe9NBvPU7IxrnjnayaW7O1/QfPVigB3v80XYUOsCbZcj2Bd3M8ub0+5PV0xPX6+txyT0ZwnyfN1y/8963DT9sX2MblnnMN2w57YihMwwyBup9RorWxdC3nW5+JYxma4kiElqWBLcvUGl+HjW1jLi+i8jj5jUPtlz8Cfq9CT07A70kO+TzlwV0A3q/AJwF4X3Cvp2NTlSfN2y/8fMkVnSsDO+/GBzXOOtCAH4XeEkPiptjZ24EZmayPc7kBWzUBW0xYQ5qPUQjiwby2JIT1PSMhLPyajUkqNRgbKVBj29gjBf15EHYCbMmh9M2fL35PKTT6ggA0eyh3dcEunnYh8USB93kaQh5PAz68qQqId1PNi7ehgp4U+zqoKrpZpR1g60ZjDCjMQ2NCFlYDJomA8dblu2gE/sIe520lBMbBoE7mNEm2JPN+lDBaUg5ZQJs0fdCru2AvhnUG7cD99FuRX960y0uub6ccD7HfROArPVWhHE9NcL83z5MdfnbXiIuD4cbzPB6fgkOYDNzOk/O1Guu6Q9E2hR0xrtBpVgOemxgsfCQEUyTyYM/KEgpfa0katE4E+qYps+09eV7wAuzjB9s1z+Vdi9M517cL5XsyAT79vkCVtwHAN4LzU8MeT5a0k1f2fb/bJ/VPvgoA8jnABmsOpobUNZUybI31GfDdzyi3G/BJExbccJigM2T+zGUZG9KMSInmIeHQMAefxrrDNsbk4tMdY8Jt5rkTPTke9qCmAm9Fk9+bFPR5fe03eT1NcANeb3XA7/UGvd7skMcbTK31NaWKb3Pj/J+j0HyvB5o8rfgxCRhr/L7YsAdpkBTG+mPye/FBrgeW79Pl+yxTy0asShhKGcYxrB/w0jUhEh/TuPdgiNHsQRjSM0SJRE3j0/jV0Vjjs8Rp49uMy6+ReNH0oIy/Xa4H2j253u+tClWD67M92SGfl9wfSPN4U0L58mzpWROD4dqZBNMMq5n/dcCBhv2zgw10mlWuUQ6nGt40HO1xxDrLYIwHEzu520wTiPNg3o/hcNbi5nK2BXlAEJQcphxbPScSk5t1slVGVtj0Nut+DT37B+ybB+qh34BvRL4Xc316sNZbk9EOrF/nTQ13lErv2uSKwIbrwKU+AzQ5lENpuI9g888QBlx6nRgngLARzmb4jd/AbYA0MQZ0I9pZB8JKCIYItEwAbN9Q3UDrQql6nnVwRMDWmXaxJBZAt80Zbu7dAjsZtrG13vmtyE8NQwAH23vr0mq9mYF6ryfF6wW24Ze2X3NBKBwYrWIbXKZgOy5FsiEAxtPwaQlCI2IeRqO3EBJ26yewLMO45GTDrygPhKCGUoDFq+ZnCCGqIFoioASJlwRugNk2U6tTGArUQk0dbeuJS7hyEeyjrXXLX405PzXcHuB7vF6I/MxQJsCv86bjBzW2Vb/Zrjqw4yqKfgM2QXKsmwgQq4TBp0oHVsmBdRsHcMXDBX6E0xGnYBsxzifB5h+JgWlhgs88DqZ0YomA9ZEIkB8EY9/VOC3HvNhmIXcPt/H/FM6zsLXNk0yMH1u93iAUvnAabMCjnO8FUfBrxsUVv8Hlg3BfDxS6WOAtIRBw4ycUBnwOL4eexjwJgBl6PDnHA5yIFq/cbsA3Ih9AA2QvvhSjVAiH+RWVKTMCPoOmQHViicDoBPqK6g7RNhiCYLucl00mp3wbx/Q2Y4agJ7NhuUmU0Pip7XsBPiUAxX4o2ODzhXM8xeHlafuDRd+w3G/W/kYr1/mfwDvgG+IwIBnonUG30kCBYP0E3iEC9RmwVeQrIThh19xPWKw00B5Y8K2rpZJEnKlCw6YVKjBQQBRa+kzbolOBltqWH99D5zgN1CfqpD8WfK/PE0r3pqakej7YecuZIQkO8Ea43yzLCHaEKHQJhwGNmw5AGc4wO1UiiwKvYBAEinPHpR8cH1IRT65nGuMIKbkf5AYkNcxXaCz41kUUk5QIVMI4KwONt1OBedn1ClJpbIx1TWwbevJ3k3hk/HSiPkECGM5PDnp92PL1Jvmx9Q+sq4KFXzFAc71O8I2163LlegXeEgZAR9gMqCUADiqNwo8kRwIowA7QDuAEL4z3CXqYluwLcGIIATGhhERg4DdQsx2oR99HPKVQC1PBUSQFrsTQUReIikkEaPwU+14Ab8H3J2d53i798ZhAuAmav9moUUIAAdgNHEMMJAULvksPQCwH3UAfRwAAQjkcAKkUcLjecD8JggSEed8hBOV8loTyiGEIXuVtvk7D4plAwoMTjTb9NARh4jWrvmRzacB52FTrutPahJ+HRPwMf1l8b/wEH0qgj5yPowCfPyieksYPzwO4WPcDZC93+wA0d/0iUsBIAzP3c7fPAGd0Ag4iCYBu1KgMUM40REACCKkkQIXkfnC96v/gXKqAVCgZJscr6CjOCz+h5ZWUqCQgt7MeK+qduklkusmEN9Rv28J22bxsqbbMJrZVNwkd+xpscwIIBht9aUmp3kZfo88fzvJsrl+Y1xisnBQF29nupQRQ60gF17RgCMFIAQM8nhS9SgSKDkCii8EmEQBGWgs8NX3QId7BFBDG+gNWs7MMB2wF3wRZDPLi4ZSpfpKJVsXynbo1jyEIzghROtCMaI/b8B3GW9ed1ib8M9CLX8BWunvj94RSvcEQjv48qd7k5GTPhl1Pn4SB6MSlnxe/r0juV0XQ7u07kkCnB0oE5ND9fAJIP0CjawwHk8YAry5Aiyp65HqIfC2D4OM9h3BIHpwC1MCxkoAokny8KIcuyyQX05C4zNYyYTRpJoVtYr3WGJBtrAnZtDbrdkfPpsDi6n7U+FOTPF6Ifq/f1+QLQRrva9ryJQO+Ef0E31pOAz6uCpQ4CL6RChECsESAFMNJdGksGCQEwGaXfBD7HnB/2ENC4M4DuRiwKBF5mKpiX4tAUSQCAmnOC4zfbPgwwYJPgtBc6pKejPSBh/+Q1U0KGhkhDWRQv3W15rb0mInOxBJAIwgAKwFfsjfDs6365U5N4ZoxyvWW0y0BUBpE/FEisFOFEgE52QHPDCwHksYhAMv9JAJHASTMCj64H8dPCprO786ryuUU9UCOf+R8W57RFYioSVOuBxGaMKUQiYH5KWWoPdBP425XNMammpg2+ZyMXuXC7rW984eCOAOGBJBQsndL3cIRGMrciHiPAG7B55QQlQgKPsOqDxBAWIQ44ORCtyFE3MmLiH9IgRA4X0En1+OdkE7UzltEA0XwPeVngOwFEeAt0EK0Lp4UMlbrA/HZ5aOVAgZsA62JY/kMJ4pjWps2XdA7TPGywPbS78GaKwwJQAla0bT5JDPnRxW+GMAd8H2eJABH4EkMZkWgREBCIGpKCAkIQEU/4ALwFPsE0sz7JJom0yYHeIXeAT3iB2gGbIcoCDyISonORQjcOzCinq0BUWiA7eH7AbzFDSZDACQQQ7Sm+i/Cs3P7ITJ58E9AzGSYsCxc/UvZW7P1cDXtdBQUJYBkYBgKJnuqZWdqU6h6hBHlVsQTYMfqFJAkEBcAPioJrD5gpACJgWCagVfuIxcTHKczXMh5VdnzGQkAQECEeM9YJPMF7bguBPEel3MEicoiCU6JQKUA6kM6UziRKJCkZJTHvHySVPhHEww3IRd1DbdhHkeCwGeMdd35Pj//kG7nyPj+cySArlfW7pb5H/3kcFY+EYXxuFgHwh/A+itV0mVT3bMFWA30UDHO5Z5V8NRviIAKYAR8r0MEESnA5SEBAhzYsYkAytqSEY+7JMEQKFoJIST1dfVQKAExrOJD4GF0mUjOBxhJqX4JhRoBnB/xydLYVCeNGBVto0MUShiUAiQqAGkBp2sKNvBz6mgOPmukIRHgp8b9qeoyTNMUSLh9rmmH+vB7eXE3agIh3uRObPp0migNAdOTrWXvSE1DeeKMny6WXxT1gN3C1zmyOuXvrv94IMIpMZo9iQBZuPNHzlNpQMAV/KgUsGkEIxT0SEa7VAmiA40NEPXQ6AoGdJCf3X+2+P044wPd+UF/zz60TJ64/20FWcdb8QMQILLGQKNc8aNLZMLkkVJfb84Dqitr5BfXzZXikiLMMJQ0BJ2EBk5XaUDiItjke8ZT9NBPQ2Iw5Wgw4SMsl513u4waMEUaGgPih6R74tVfydsrHkuY+1AiB3c9W6aN+J00NTWiJcmyfc8SeW7FN9C25pKmXWq+dM0eAWYJSJIvSTbtXtSsqhR/FgiE34I0f79Z5uYR6YjixyRKAF6MozJ7dVPJYA6mzumIMqByTneABzBmN5BSAMtBWgySSgXoBJQMoYBPsrIz5VePnic/uftMSUlKQSeSpXBthaz5oER6DcqT3rDd++XJnO+fKn0GdsWeD+tyJAvcQGNYRo3FLwzN+ZJ079VV+vTrLoOO6y5L//uhFBeV4l4S9A/UpsDThSXA5s/xE3zHMN5KAhvXklu2d7v07jZIenQZKj27DJLjjzunpayHFD+w85kAdbDktx8qXdsPBkfvTgg+Cy3IHSuZIAJwjjQ01Uph2eKYunLSe8u3x78tpw/8VUz8IQZOsPmBZYDKtbc+WNU/dmAN+Mr9gDu6FWwIADsHGHpYgE+lMAQg2+dkyryHpsvICd3ltPMHyndvnYx++AFaijz622WyY6PZhGpsCEtux1T5+rWTTbksB3VQIKUkI/6750pKih8cQ3EvsnLFVvnnI89JcnIK8hvQFXAF2kCvICPMvyjg1o8YSLADmY83vCH76xohxQKQAmHp222MpKW0S/iaH4TdKbuf2vzs/pKekpMwHxmpR97xOnWFwNWNwaBsLn89YV5G9u00CYwFpsD47tm/RXZX8SNgY9KScmT22BelABLitP7Xw95skw7VHW5fAMukS3n9qnbBcENBhKvQaOMn95Pb4HLg1WUaw3Q5Pfgl2OSR7NwMuenhaTJ6Ynctu6aqUZYsLFIJkZSUJBW7G+Rvty5RyidIDZheT50+WMZPHSxNmA4pBZrqQ3L69HEydvxATB8Q5AA0EAjKX+59TGqqa3VQ7ArDcD6JAX/aRvWhboLuPJVANKjt9Xli52GTwrx8xys7StdKSdkm1AMFFWB1zO4hPToPs9li3LEDLpBffX2l3Dj7Q5k3e6VcOOHOmHQbyM7oIR2zBmK1wz0Or1TXl0px5XKbHOOSWHp3PFl1JdzPlm173pemYFQPaQzWyNrS59A2KrQCKXCDnDbgppgyDjIwAPnSmBeqSVq4vH5tByyPcs2g8ulwGQdWud+Ar37E2emBEiCE1RvBn/vwl2XkKQVa//7KRrn18kXy3oIdkpScjNL8kpaWIotf3CpvPb9VklE1Vwa4dShfgxTIys5Q3aBDp2yZfcUZ2kHObsnQSF55cbH8d/EKSUlNVaAigDshA3WU09kAA6h5MuyQg5FWwnLMVGFyUrrRgighctdtfQ86itEdkpP8MrjXKaaIuOfo/jMkOSkNimMaODZZBnc/HaK7Q1wuivQxkp6c7fTXL6WVH2MKKGuWjxG5mb0lP2uwEguGRzbtWhSTLwiF+I0NN8qr6+eCsczO6OkDbvw0RNAZBfMDbyjnmFL3NW3rBEggXzkMzjyqQ0LgHWJAvPmzA+ZT0NoD/Hl/mwaxHwX/N5e/JUtf3Slp6Sl4x0gKPVUEl3Mq2FOCFQAGOQDiGTC8o5z7tXFSW90k5399ovSEfhCAAkkQSnfuk0f+9JzqGmyXtQZQKJRBzJMNDdLYCLENZZMKZxMKrQ/UgXN4GZb9IXEYo2QCLjPKF0mMPqMc2nwrMQ1w5UlDThvS+1QTcD2z0jvJgIIJEoA4JyFTYcvJ7Cr9ujYnlj4dJ6gkY128Zbt1z1uukmK9PfNOlDQQC7JKbWMFlMX/xmZwQos23SyvfjIP5bmJ4JCmgwwUpYD5MWaemkAZCMAMlj5bIQQVwSCKIMDLyUuXmwD+iJO7adPI+Qr+wmIFP7b1HkgDjxRtqpQn714hV9xyEhQ+LLVgz5lzvBRv2ytnX3QCwCQw+PQUU/Zjf35RSnaUiR/LQa7zqdWrdg8vgS/o0V3Gjz9ZBg0aKtnt85QAKqv2yeat6+S9pa/Jx2vfB0DQIzhSMASLSuS4oedCn4AyjHBVzV75aN3rmsY86wvfR1yFpCZlYR0ekl5dRkpWRifE7WaymgHdT5Gcdl0wTWEQ1Jgl2/Ce0+WjLf9y4sBdILaeHcaBkKjLeJQot5bHKnWRzPD07TRZaZvMsmvvWqmo2eZOjvEv2niTkvbUgfPMdDDgBqSHISHmxuRrJdALaYv9OGbFxyCVndBChGMtG61c50pjOAjlLDcvS276+zkyYnwc5yv4RlM35fFJTiNbeSU1LVlefny9nHhmLxl2UhdpqA1LVk66XHsbTiuxnOPyMQWif8k7G+SV59+VFEwdoTCXT+aPnI7TC7nsm9+WWRdeJDnZ7VWScHmJwyyOgUyecIZ8deY18uqbz8mdD/5UqvbvVW4hAaRg/vnBZfdJfm5n4i/rN6+Wq24eq2KX7Svft0MKS1aB8yeiLU2SndlZ+nQdJR9tfAWFGzOq33SUx7HiNAYFGJUHUPmArpOVg+sa92nG7IzumP8HACDO/z6prCuUXVWrnFJinSRfmkMsAZV4W6H9h/RCbGw+d+hNEAFHd+rAuQ4R3KjJB0kEyrVejmdTqCaPBfEv4ir4DNM4w4+4AMDPzsuQm/8+Iwr+vga59dtvytKFFPt2mYZ3WIa1GFwtB9KjqSEkf/vNB1K3HwMD7qTopj5g9AL8FM3+Rnn47hcgHXhWYNrEdw0H++T6n18vV3/3csnMwHoYCmSklY6nHuUTzOlnXCjXXX0v5jmIfQoWp6imAKaNJuxTgIGbKIYcw15y0FdvWgQQlJb0c5jjek2yWSQ9NVsG9zgV4p9c7ZPd+zZiCmhC+UHJa9dD+nQeH8mr8z9WB2w3l8xFFcuc9XskS8STj+VhbmYfSIsgysNKIcH6P5LZ5Xlz4zxZ+MlNqhOoYqg6wUFNB4YAWFYg3NDeDqIdzUjYRnBwUENep0y55ZGZAL+7NqNyT7386tuvy9LXiiQl3e9qWrQEC5GJ4VTgk3VLS+XFh1dB0TOvKEDwUvH79+OLZQ2WfsnYpyYoEeMQ086inVJVWQ/F0CNVEPmPPv6wXHfDNXL9vKvlX/OfgG5gRHNtXVAmjf+yjB91hjSFW955i5TveFaBAJqw+iDtAWcZ1JPzOAkY/xtlt/HSAasDrhJInAuW/Fr21RRrOi7XyfAevH9pTJ9OExxJgRFAWZvLFtmkZm7vDhMkBQol66mqKwWxJF4pNHsRESSC10AEAiI0RHCDTBlwM+p249HsTTA92QQmFG7KpNuaIRUTpB/d8WUZcVIPzcq4P/3iXXnvP4Vx4LdWkklLSvHJsw8sl40r94gvyYBMxW/T2l3y9ENvgkhs48m6xnDAyXkPPvCg/Ojaa+X119+Q7197ufzm3hvlpbeekwWLnpIbf3+l3PNndN7gpe7448/SSciWcyB3a/FHUravCAMIRRdAF3QaIh3aG4If1X8auNkox9V15bJy6wLZuWe1cngQSuHAblOwAZapQPbsyPnf6AcNTTVY1rX8C/B98yfp+HL+L973seyvj+ocB2ov098AEazd9aKRBCDaLw26QQbnn9vaq1lM9IakDpuBgbTIMMNDP2dtE+ekACPGPHnf+7Jn134tmIDM+NYw6TEgG2t4TMKaw7xtStFskXhToimPIr+irEbe+vd68fPGGgzdt19eKXt2V0FsU3OILYUjRE5KSU2RJUv/Kz//+XUgiICcPelcmTH1Yjnj5PNkWJ+xsujd+bJrdwlA4Xoe/3lf5z7Yp8Sv2Thd0cpaeFDHqamrkI3bl0D840QCdbZLz4EeMBblJcmQXlOUCP0+v2wp+QAbR3tk7faF2q4gOLBDVh/p0WGMtEvtJJ2w/uf0QFDLazZLefWGhLWmJ+dKt5zRJi86uGX3WwnztRY5otul0q/DaSqx/FCgl+14AhtOC1t7RQnAb4QlT1Is5M6w0+ExqiueS7cP39ki11/ytNz66CzJ65wpg8Z0knmPniE3zVkou3fUQYFLhrqHOV3XUoazbRmWAKgQ6gkcauVGj9swbKSt0w7kNMhF3SYs+yZPOl1mX3KJ9O07EOtxzCNIDoAG62oaZHvRVsnIaAfJxn1ur+4ucnOHc6sW566wBf/KTa/LKSNmaSoXEf0KxsnuikIoj32gHEJRw+HUR5tf1PS121+Vmvp9uGKdgTMEnwzsOgW1JkkG5v9GLHN43YJLupYOgLrmjJT26d2gCwUx9TSAAN5uoVWJo0d2myPnj3gQEisZ9ePHhHf8U/618hst1ueUoiKWkhI0DqNPhwjUz8MVGwYbYeS4pEpO88nK/26Xn1/6nJSXGknQd2iezHtkquR3T8fSqBF5zdmb+2lWASyTa2dbNgBRImMDHMNwJN3mY92mLVz+TZ9xjtz621tl+Ijh2C9IVu4j0ZDyMzNTZGC/QZKelqnv2GK1/dHAAX3rti4GqLXIhztL6H73TkNlZL+zcbZBvQQ7epASa7e/puWUV22Rwl3LUD+WqxD5vTuNl975J0fmf45va0pd306n6uETlcqK2m3YLFp9wPbZDG7wqbga8C87EPh8XbnTT+WbgJnhZVOtj37GO2kEBeAQvJQ0v6z8YLv84tLn5ZZHz5UOkAR9QARzH52qkmDX9loocyQw1sFy+MQo4l29Cq5lcmXPOE2OPhA2xMKXmMj2GAIMQtwXdC+QK67+DkD3Yc8giEH2ygdL3pMPli6WOgDWOb9ARg8/WXp064d3MSKHZGxjPFJcvlF2lq2X3p1H4UwiIH26jJH8nIFYywexR2HEf3lloZZO4lxZOF+OKzhdGrFbV5A3SnLSe+n0RCW2FsvCHXs/SNgSKn19Ok7EVBVSPWL7nqVYKRjGSviCKzIe/OVF5HyCH90+dmVP6PVDx0HzQbYcaAXZgu64GgeuxVaM2rC5yJGM9fwqJYIXQAQzDBEMyVVJMG/Oq1K6Db8/pkTAei1RoUwSgW7rsGKWSXCjhmFjjRxhfksEFKdjjh8lediDqK2BNMJq4oUX/iW/vPU6aQjWavtw3CKdc7vKX+5eKDntucEZLbt1n8lonuB67CRSCvTrOloa0YaMtFwsAbFL2RSUJIj5jzYZ8W/LXLvjFWzxVmNqSFElMMWHjSRMZ9wn2F3V8qZO+7Ru0hmnhNwr8GNLefOuN22Rrbpu8A9B7LvL1K7i5rWfbAgTHWglBAJBsGAJiLoATD/doosGJ+OX4ld/sAOS4AUpLzFU25tE8OiXJL9nOs7yGzQfO8f8XGPzUkYI17/0WwDExROAwu6qxxCeaQvbk5MXe+q2+N1FOGGrl1Rs8KQkpaKDYenXZ4jkZnNn0E1cBtqWKMKmukdoFfQAinRKMh0LzNHk2P31VbK68FV3Vtm1b4PsKF+uiqLKLPSBxof8W8ve1b7HvOAEeuSdIBkgLFQg9Y34pcbyllcK9v2R3b6WYM4/KLFvi6BrCCDFl8SW4uzNkQAO4IYIDNcTuIgEIPcyTJAAIM5DZPUSEsHzUSI4LldufuxM6TEwSzdaDPgkAF7JgnXeJTHEE4CRFaZ8JTy8YSQF9YWQ7Clz3Y5BF6ZMOVM3hOoba6Bw1cuIQSfID668BWKae/5RQ787HE1p2bexaKns21+moNtcvCiytWQZNoA22yh1OV6rti0AAcTsXKCvIcz/b8XkdQd4/MtdRa4UyrBKKN8fW647L4lvdMFlEfBj5/yDF/tOmXV0vcqQOA6IzvfkeHIqrRn8COcqcOZenYKpXN2EWz1hWbVku/zskuekrNhIgl6Dc+W87wxVrZZ58ZvCEHNwnXcMIRhJoNqI0yojbYy0sMAbAsQcCS1v2dKlsmdPFQD2qg5w+mlnyV/++IzMve4uueNXj8o9tz0jfXv1hQh3w239B0sGzOeRfdUlsrV4OZQ7aJeqz2DAoFZ8tHk+iNKW6TQczprtL0sdCNHmJWDVWM8XVXwYzeTy8RSxV4fxujrhkpXczxO/lkxWSjc5c/AdmCp4N1NkuWr7hzbnu8quoh+fBGAH3uOrsqJdOdtyHQEHdHqTlsCRWhAXjvjJzQQVRICdhNVLt8nPLn1G9wmWv7NNHrzlLcG3xigB+aBsGKLByZ1DCFwjY72oV8S4CcSrYvzoQyWGEqDVE0w7OPjbdxTKA3+6H0DgziB0gCDuCPbDUvDcabNk8ilTMO9nyOIPFknFvjIsD3FvCdhRaXPzP8P8xSNNA+cZ0xxQxq/ZskhwKqxl8BJIXWO9rNz8svNOrFNasU6K92B3EysT7hkkY2OjZN9qrBhKYzM6ofz2x2H9PxKA+hTQ1lYKfKWyfoc8v+qb0hSqk4+KnjpkhS+uERUM8ypOyBtOLSfnRSxBBvUSCG726NVtZMR5lhK3XbnhcE45gRc4+W4Slohrlm2T75/3mFTtrZeKPTXY5eM+vBHsKmUgEo1eQZEekH17q2XzJ7ukHodC3Aiq2FuJuil5KH8APNvCtqkLBQw7hM88+08AvEe+Nueb0rNHfx08KOfYFq6W5xc8Lg/94w654do/SvX+Xlr3ztItKMMY1r2jZAOUyP1IEyku26ytd5KbOR9vWiibd16iB028FVVY8rGU7P2kWT5GcLyWbnpcD4R4RM29gtVFLyTMy8gAdJeXV83V99jPzbtanipsIbwQ8uf3JmG6WHtI2r593+Xuot/z0+PCQ17ccfEle5s2XWfv5vGKl734qX6G0fmIH3vM3OjgVinf4UmXOffn2T9PC3m4gy0Yyik1DgEoIVCCGHA51XBex8dpRkpgAHk4EwhCeVSpwakjKmWMZDDhuvoaSc9Mk379+kvHDvk4FKqTzYXrZcuOdbo0TII4UUJCSRzcAE72SEgkQh7MsEWUCowL6NmBibHtdbvkZu5Akvq5Ncz2t2Yo2o3EYX5utVnya+2tzz3tGtT4Rz+kcSjFl10cxpqau9aG8wGcc/auX+sgngNg/GwoOqQbNmYgISt0sPmdn97Q1W1cdJ4iQrPbwTYDrgol8hIY5XKAo+DaqUWnGjPlqD6CfFYCqAsAklOSpL6hVlZ89AFyE1zuCeA/qMV5P8mrETtqBnD2y4JrXF4WMWmJgLFx1uWBkNkvNZ058LO1efzAb39uObaxJuo3wcykLiXhOh5bYDbAQIJ/MeAQ/QBekcdYKJR8OOJcBxVEwC1fHHYi3bmxA6lg9GBkjo4hX1TO4cCTg9RFXWZZaF0DepQYSCRcKdA6xML3HUt9wY8J2vyQBNvN/JAqaKPhWNZq2+FwLeU+jNXVTah1jtYX2tYDg2T+qxl/ALcvOyYNLvkESi8GDx8OYsA4epZ7NYzsGKko6AwgxLmagHMqwAYRFxUeAMZpwCEZuDROflMCngTRcDUBM4pnPPgIUzxRKjiSwnC/Qwj6niEq1S1YpoLLVrJ8Qmus9RtXG+Sk0c889qneo+GxF50sYkf9AUj9zhmn7PXs8ZWAG3ONqOVUAIuxUSnAnKAJM1aIBOfxz3A/xT4UPRABMxF8frBhXqBLEwUiwv0qBcixBMvhcAWbhMB4B3gHfEsolnCsFLCuEqSLCFin+bP1sxkGbKcjTIgzB0qPy37kBrej6SQCaHa4i52b3KURisumYKh+iApDy/3Aj1O9BVCBJ2AYSH5RQtADuH3Dr4FSUlJ084U6QBO2S0NYnnGetopgDHdGpgCCbyWBAd6IcYJvCMAuQc3Sk4RBUY85HsuxJuwtcFuWAsdyfRM+ueJ2cDI0cG082o8LL+gD9vBxJGwhNr1iyMYcVdPAGnRcO+w7Meen7b2h1PD62me61of2nsplnzHGjQQxUIaB4CpVACqsvcZPHi4nnDJYdpXswVWuWmjxTTLy+H4yYeow2bdvP5Z5uB8HYuFcr2CSu+HXcITjY8MGdOYj4HiP+Ugojg1AiRszapyMG3OiLgeravbprEVlbdjg42X0sAmys2SLtoWEceKoqTKg92gpKtkMxZTTnyE8gk9dgJJicN8TsYt4qpSWFWJV0PJmjDM46qQmZ8qJQ2fq+1U1za96p6W0l3GDL5S+Xcbh1lCJDO99tr5XXdc8r7vcz8H/F9SxhPXgQ13cyIMa3z6pYBXEM/6iA83B1507AqZgmU0f3cgB/zXgY82cDhny2we/J9/7xUVSU1stefkZctdjP5QrfzJLahEGryoH4j+aQFncBHJc7HhpGOXELvVYhyEI1uMGn23jMiw9HVfRb/i93P27u+XCmZdJA06/OLU0hutlxtlz5Jc/fRD3AbJUWgQRN3n8eXLHDU/gYkhvgIUzDH+KDB94inTK66ngkeivmX2nXHnx7zAkViJweFo37TM7yQ9nPy7jhpzfLCM3ja6a8Q/57nmPyFkn/BjXxrvJd778hIzpP7NZ3s85gh1cbuvEFjRu+oEAeqRMgR4ou1Uhw0AbLqV4NuBjJW3iHEIIgdvQR3n2n6/Iv59cJBddNlWOnzBY5lw5Tbp0z5ZfXf+AbCvcgQMOnNJhw4ebHrV11YYYIKZrG2r0qxfuInLdz3U9OS8AwuDyrl7DUAIdrldJAH8D7vwfP/Yk6dK5q6zfUCxTTp0m2bixQ+IgZwewj9CA6cFOOezo4qULdNdv2KATEQrLyOMmykO3vS3XXGoAz8nqLL27D5VlaxZKXUP0KDYqDVlKc8M6GptAsCDKeMPbxLw/8Pzi2+WmR06Q6toy5APRx+XlXsrnbIpRH6cANd5wQ1qoybsnPCjrK3txXXO1DjgJwAFeCcGCTq2cHIuwfmsPIsCnGHLrjX/CIU2l3PnwT+RrV02T+U+/K//+10LJL8iWG2+/Up574x55bP7v5PzZZ4AgaqRbz07yh7/MlVEnDMHJWqX07F0gd//p1zJ4aD8ZMnyw3Pa7X8vMC2fKP5/4h1x51dWGiNgmnMYRwGlnzZSS0p3y4MN3Sd8+vWTsqJOV+93cS3D4x927dRuWSXlFtYwdfpp2+uSx01RvGDH4FMlIzwb4QyQnK1M+BAHwfsH5U78v992wTO6/4WOZM/1mnDRmYFs5Va656AH58oSr5f++8nf55RVv4nuBDip5uM1NIGd/6Tdy1Xl/k6G9p8hlZ/8ZYxiSob1Ol+kn/QwbY9gzMXOotqFX/vFy1dn/khsvXiVXnPG89Og4FpIpQy6d+IhMOu4HmoffFF428SkZVmAkzLBuF8gl456WvIx+mv4pH+T+SvuumQJABNCQsCHU/h0rAcxqwCEEcL+JpzTg0swQAonB6w/Lxg2b5Xc3/0V69u0MPaBefjP3PsSH5Pb7fyqXfmu6rFm1QfWF2+/7oZxzwVR8G+CXGTMnSrfu2MHDOX5OXjuZcf5k6ZifJ53yO8isi86SH+DS596Kctm0eQNgZDtAipAQ3bv1lAnjJ8kbby2QZ178m5SWlsmXcf3bgE+9xopw4/JKWPm+YlmzYakMGzQeH3TkyzjcEv7virdxvt8OU8EEOa7vOEiggHy8/i258Kwfyw/m3CmV1eWyc9dGmXPODXL5BXfq7uG4YefK5TP/IN06DsAh0QpIMT1P0U/ELpt2j5wz4Qeyasvrsqtis+okHGRdFUUVKRBxE65/d5fvnfOi9Ow0VraU/hfgj5FrzpyPa2FdpEO7viCA/1OCGt17tpzYbxZ+LOJKFiXH9/6m9O4wUWoa/ycdYqEW5jy8oTrqALDYfe2QMnAxuAYbuRxwx6rfEf8uXcASAudvfvHz72dflYryGln85jJZuW61DB81QE47c4zcdtMD8q1vXCuzz7tKVi7fLF+Zc67eAq7DYSS3fUlE3Jmrr+feOKcDzvsid//h9zL7WxfLi/OfhfjmjiPEf7hOJk2cKu3b89zfI1NOO1t2lZXI+BNOx83dXoij/mINfUaz57tLViyUzh17yBmnzpYuyPvYC7fL9uJPZOrJX1Xlb2vRWtkPZfLcKdfI2x/+R66/60z55QMz5bnX7pUp4y6Vzh36KgGu3fKuXHfvBHno39fqdNOIH5E4+6T/k+kTrpR/vnaTvPPxo7hRXCgPv3S1grhw+R/liTd/rNKLU0oABDCm/wX4jjBP7l1wjjzy5mVy30vT9bLJ8J4zZMmmR6Av4KPUDsfjS6GJuEu4Vbq0Hy4FOWPwaflIWVPyvNQ3RRjYdvZgXW5pvunO7A35cG2irjpU7dsfmpj1y3UQgWs5YIYIDOdHuT+WEOw0QBCp7FFEE0Ae/WZk4SNMTG8bN25BWU2ydz84Ct/3Z2W3UwIgU5Cj66QGu3ngUy7lQHSsF9OqrFuHUzWIb7PEo+QJ4HOtFDlj6rn6McjFF3xTbp/7sPTtPQhfB2XKxPFnmn45FGAmAMoDE/Hh6kU6/351xrWyu7xIlq1cKO+vWCCnjMXXTZAMy9e+ASnVhJs/7aV49+bIGO0o/UTFfxqkBaeHbfhqyExFJotZRYSkdG+xnIQVQXpqe01IwifxNDxHiDf8iLQeCnR55RZN2lO9BXpLrWRBAqzb+TIYA4rrcT8Sflk8/6Pr0YMQfjPoOj1kWlPc8uFSfD0JwisRt94dDwLAbTRfRiipZn+4XUp3/GJkJv5nMC7bCAZcSoII5xsgCIZq7qoYckow8aRwAsvTwfVr10sZLo1e8b1LZPSoYTJr1jkyeeoJsuyDDyG2i8E9+F8OTx0vI4cMkzlfvwR7CORXo8ixDFrTBtYPkoISOWTwCDl+9Gj5x1N/lWlfHS0zvjpWLrl8shQVF8uXv/RVyAQqVNwGxstwreU29Zbta6R411bpXdBNlq16DYPcIO8tX6DiOz0tHeJ/ka5q1m9ZIqef9BUZM+QMGdxnvMw47WrZXrpeSsu3oI08FGLZUZOSlC4vvXeP3P3kV6V/wWiZeercSGJcVrQPLQERbdj5tmSltZOzx/5cuuUOkzNH/RxXz7Nk6673wCjbZMee5TKm90z8PlCRrN7xvBTtXS6jelyAuwUlkAjvRcr/FJ75eCdGY/WmeCvChghw97VOQrnewf8JhcONZseORGDnfzstRInATAMOMYAImoAq7+nzFGH7DlwQ+eEtMnBwH1n4zpPyp4dvlY9XrJO7fn+PbNm6Wf4z/1X5yuxp8spLL+E7w1wcA+PwBsRGLZl36Uh4RhJhzc75H39nnH6Opj8//x+ydft62bxtnaza+J4sXPS8DB8yUvr2HKYrALbBgq8EAQKow329j9a+A609KG8vMVy0cdtHsmnbKtlbuVc+2Woubdz/xLWyr6pMfnvty/KH698FR2fJfU9eLftrK/SKGdviNmxvI1YmawvfkleXPCRnnXilDOwxAePQoHqPW/FjXp4Urt2xUF7+8B750qgfyS8u+limjvyxvPbxvbJqu7lnuKZoPggtKOuLX8aU0SDrihdoeNPu16WuyXx36G7DQfq5ufFcfF7Pd/vtyUrHLzVVBarxP4Vl4/8IzJIHS7otwJCfSIol96B2dfnU/X7GUzbT1ThzYaJv/966GbSzqEQpnWfivaGlD4Vmv7+6RpYuWS41OIfnUXFaeqqMG3cCxH2TLF+xQrp26YLf/9mJIsPStWsX2bZ9G5aN+7V0FecgiIKCXrg0kiSF2z+BGAZh4o/KYbvMbOmKZeHO0h3g6BRp3y5XCos+UZHODptpICzZWR0wXXTWuZ/LRabk5/XA5dJU3BHYqGHmz0jLgmI4XsX3+q1LcDNoF9rsk64d+0st7gPureRKiidpydKlQ3+p3L8bXw+X4U5ihnTOw/+wWrNHw13yBuJKWTE+HtmrwHfO6S9V+NUvuxHUoyMuuLbrLeVVW3GfcIWWyQe/LMrL7IWvg3fgAkolVgf4D3wy+uDj0hLcMN4TyXeInreRfzJsDAV7ruoYzuT/GZgeylMiSPH2CD+y87hv1AV3/54TsIE4HnATbwnAiEV+OAruB7hU2qzhN/QBgEXSSQJ4vP+mwOHCZiO4hCDwnh25w2wbU9snp5DwHPAAMt+hAkWpwOtTmgIpb4gAUgkSgncSOHlRyvH+gjWWADilRQ1bZPSDaFyb9n0bvftLfA+91d5d4WBlv1A4KRjyJ2cGs/GjH73Tp/0bGXepUobB1z+CoH4zLbjnZ7NiwKDjWhevalmdgC7Dybh7lcT7VwDP3AmEiIaI46UNWn6gxq+OuGVMUPRCJw+ctE6jixA8Xri04JuL7MzPr3Q5+5sPSbnsSwQ+MsIYqaWUZSKOlifvpCXUHr1pvlCYRLB1bzhcA/8eHBJN7/jbMtxvf5aDrvMw52NYBZ1E4ABDgHXfHhxnCMK45MbENko8kfwsI1KmITbuPtoVgWmDAZqczDkVOgr6Y4hFuRthxjCvW8LZWJOGJM1Fl+ao4v5/oMMJNw+8Fd5guENSfignKRCqBhEEK3NDu/GbDLkpAx/CINVYANyEECEGDLglBo1TIiFREOjmVonCISaTnwRG0A2BMU4tYmy9BNTkgatAWzgJL/xKDATUEAR9NBZ8E4p/HlXg85ryg/EjYMPezkUFoYqiwnAGCEGJANKgbHeZTOv9xie47/cCB9+CEAGCoFiwFHRHOiiQJAq7Yoh1VaQjDwFXLd9VRkzZcXUq1Aq+5XBDFATf/LUMfhRq67OuHYI27z6LHia+xYoE7ybZhP8bvFe4oigQdkuDQIWE0rw97wHX1REcSwhmt43c7YhrB/QIR7tBTeCPSAwtk8RgyqbEYNluYrPinoRjOdwSAxqg4PNprPXFhpEYSbf5TNxR8cT+qtzRWk+9mThGKZW14V04p7PSgISQgd2cCzp+uBK/A/gU51wFQ8EiBATEAGaIwxAEQVTujoBqwTXEYub9aN7m5RiyigCv9RjuNsDDH+F6CzRdQhsf1mhNMT6Tz8YeJe4T6Cd3/1o03hypC9OSEKw0yIA0KMKVsUZ86p/r7387hrdSgVZCIKgGdvO00sFwr+FUghxrLXdH093EgRJt2QpwPMcb4NmLKNCGMKJxxhd9un1HJfhVGIFfcxRaM96uMiZMa4nALQ2ksFBmNS7ZhJ+DfYBDHxHPugoA/C7QDJxRUN3E4fbbicMCbqWLzRMr6mOBZx6bbjsVJYioz7TVgm5d+8ZR496LnnJ3q1WDxfkkb6EUyjAZL52kIxZg2zHM+AIWq4YK7MTk4q80/P6KStk8E8EclsYtlOaDbAaaz9asvhrJEVuOgZAFREFzw2pKtiXYPMa1IXeeWL957yh5bkY/vwFLHaBV45klT3GHBnB3VFwnySR9oVg+9FQIvv9Wcxx2EXIvCEot15OOQZKTahwnYJMP6EbgdnByQ2j98S6zxsbZkKnOHXL7D9iYtpaBFySePphOAbWwdx5yrpGnPWWyFuFT9T03IZiCxshfJfUJAHA+w62CHn8MZgpAVS2DEg+sQxX2zWbAMyFaWtRnXogPR4o5GjzPoJP2hswB+6sEYHPNAhHQn4gQGH8XDlOrpOhdwN+VYWMMKURDsWEbb90o0NEY63NDauOi+aOgRn3M5Q65/baEo8otQW/Hwe442F4DrXncIIeZaxw8LSEwwk4N9FMq/FraXRCQ+scRdCHt8jLjQZmWwYqCzoKi+aK+2HhTXWyqiTuqnhyAi2GfOpReuwjAvjbXemIIwUTOUudZSb4PwFweyXgYPC2BzqJjoY0NxacehqYcqUX8CQ03lwcPoQdkXYd958WxcZQQWJ6VCvjPXMJ3Ss/2VbJzIaLHMM1t7P0Ad5zbHwu0TYkHNRGs8Xniw7aso9Jdil5Pga0+1N67CMC+Gk8IjI8lBsYkS7tBTVL7Brz5DMeaOFrSxNYBS5yaKDZRXGztR1mIvyk7GXbtp+l3AgKwxSQiBKbNtRngpuImZhMPG1JtZCLobRrdA8PXUo6W4t2lH3V+3qi5AJZ3/T6VcePl9scV1iIxAJXk72Cb9/64Fw4h2BqwraUdQhVtNyvnfM79h91YydCCy5WDtfyU2HsTVAmg9b9aFRBE/Zg98BjccNhRT1BgCwQg7ni+RiL4w6ERwDGQMW6fltB/nwCrzzzKDXq8n5VzS/mPsJ+2U8feO7ix4yGPs3cD3/9Hk4gI2LC7YI+B+dmMAaTsFwP8A9HdTceI4LAzAc/2yXRHjPkuWmou/n823HC0SBl+wfK9Iwb1uIbOQJjXkY8WsA53P8sxdnr6GjeuR1RwJFrL754O9+C09fI4ZqOPKKRbaWwHpPEySVsH7XD1728YqzzYNmewayh7YA/XQLW1cvZibA7rKesXkYKGolGvHiOCZkzA09XhX0TAPos2JaFQara8wdLWuPhQ+1OMMbgKNvo5MwJHi+mFjvKTZfOx/tFFDOzzX2F7wR71ZgJG4BXYQ+WeIzU/j29PPupRjxsA7nKdDfs67JEK7IHaTd3nDNhjppURICHwehOvN9fBHmhQv+jp/Dybd/RPhz1mDnEEhiH/bbBbYL/oQMe3j1/n3ArLVc8x8z+OQDbe57byo7DUmuMH+4sS3oW2PQk7E7Y97BfeHFGnS85odoQ7EfYs2PGwfWGTYf9/mCAq5QeY78C+BPseLIngiDFHIgG4B5eXUfvDngBLYuC5Qy/YXNjPwlSg0ELYVbAEewnseljqKkekOdIJIH7QfYjIh+3jsr3g7wLL+Haw6bB208X2304h+PkyqYWthOWWNaeb7bCczzfBFsKWwpLz24SxA9AmOnOATpA4KDE4XZAA4vvOHx8gAXCDhhxNojhmjo1A2x6B/weHltTZ2fDa8AAAAABJRU5ErkJggg==`,xt=e=>{let t=String(e??``).trim();return t.startsWith(`/`)?(t.split(/[?#]/)[0].replace(/\/+$/,``)||`/`).toLowerCase():``},St=(e,t)=>xt(t?.route?String(t.route).startsWith(`/`)?t.route:`/`+t.route:`/`+e);function Ct(e,{picks:t,records:r,files:a=i.E()}){let o=xt(e);if(!o||o===`/`)return null;for(let[e,r]of Object.entries(i.n)){let i=xt(r.path);if(o===i||o.startsWith(i+`/`))return n.B(t[e])??r.icon??null}let s=wt(e,{records:r,files:a});return s?n.B(s?.iconName)??n.U:null}function wt(e,{records:t,files:n=i.E()}){let r=xt(e);if(!r||r===`/`)return null;let a={};for(let[e,r]of n)r?.isPublic||(a[e]={...r?.config||{},...t[e]||{}});for(let[e,n]of Object.entries(t)){let r=String(n?.fileId||``);r&&r!==e&&!t[r]?(a[e]={...a[r]||{},...n},delete a[r]):a[e]||(a[e]=n)}for(let[e,t]of Object.entries(a))if(St(e,t)===r)return t;return null}var Tt=()=>{try{let e=localStorage.getItem(`fbos_nav_tabs`),t=e?JSON.parse(e):null;return t&&typeof t==`object`?t:{}}catch{return{}}};function Et(){let e=i.u(),t=Dt();return n=>Ct(n,{picks:e,records:t})}function Dt(e=!0){let[t,i]=(0,W.useState)(Tt);return(0,W.useEffect)(()=>e?n.Fr(`sys_tabs`,()=>(0,K.collection)(r.bt,`sys_tabs`),e=>{let t={};for(let n of e.docs||[])t[n.id]=n.data();i(t)},()=>{}):void 0,[e]),t}function Ot(e){return{id:`c_${e.id}`,type:`message`,title:String(e.title||`Notification`),subtitle:String(e.body||e.fromName||``),time:e.createdAt,link:typeof e.link==`string`&&e.link.startsWith(`/`)?e.link:void 0}}function kt(e){return{id:`p_${e.id}`,type:`payment`,title:`New payment`,subtitle:n.dn(e),time:e.at,link:`/transactions?open=${encodeURIComponent(e.id)}`}}function At(e){return{id:`p_${e.id}`,type:`payment`,title:`Order placed`,subtitle:n.dn(e,!1),time:e.at,link:`/billing?open=${encodeURIComponent(e.id)}`}}var jt={user:_t,submission:n.H,request:Ue,verify:rt,role:dt,finish:m.n,message:Fe,payment:i.j};function Mt({n:e}){let t=Et();return(0,W.createElement)(!e.standing&&t(e.link)||jt[e.type]||Ue,{className:`w-4 h-4`})}function Nt(e=!0){let{userRole:t}=n.Q(),r=Dt(e),a=o.A(t),s=i.S(e&&!a&&(Object.values(r).some(e=>!!o.z(e))||i.E().some(([,e])=>!e?.isPublic&&!!o.z(e?.config))));return e=>{let n=wt(e,{records:r});if(!n||!o.z(n))return!0;let i={...n,pageType:o.L(n.pageType)};return!a&&!s.live?!1:o.w(t,i,s.groups)}}function Pt(){let[e,t]=(0,W.useState)(!1),[i,a]=(0,W.useState)([]),s=(0,W.useRef)(null),c=(0,W.useRef)(null),[l,u]=(0,W.useState)(null),d=(0,q.useNavigate)(),{user:f,userRole:p,roleConfirmed:m,profile:h,requestedRole:g}=n.Q(),_=p===`admin`,v=n.Bt();P.l();let y=o.g(f,h),b=o.O(p),x=F.m(I.f,{mine:!0,max:8}),S=n.cn(),C=n.fn(`sales`,f?.uid,_&&m&&S.configured),w=n.fn(`mine`,f?.uid,S.configured);(0,W.useEffect)(()=>{function e(e){s.current&&!s.current.contains(e.target)&&t(!1)}return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[]);let T=(0,W.useRef)({users:[],submissions:[],requests:[],direct:[],rolewide:[],notices:[],sentToMe:[],sales:[],orders:[]}),E=(0,W.useRef)(!1);(0,W.useEffect)(()=>{E.current=!1},[f?.uid]);let D=(e,t)=>{T.current[e]=t;let n=T.current,r=new Set,i=[...n.users,...n.submissions,...n.requests,...n.direct,...n.rolewide,...n.notices,...n.sentToMe,...n.sales,...n.orders].filter(e=>r.has(e.id)?!1:(r.add(e.id),!0));i.sort((e,t)=>{let n=e.time?.toDate?e.time.toDate().getTime():new Date(e.time).getTime();return((t.time?.toDate?t.time.toDate().getTime():new Date(t.time).getTime())||0)-(n||0)}),a(i.slice(0,8))},O=(e,t)=>{E.current||(E.current=!0,console.warn(`AdminNotifications: this account could not read one of the notification feeds, so that part of the bell is empty. Most of them are the team's alone, and every one of them asks for a verified address.`,t)),D(e,[])};(0,W.useEffect)(()=>{let e=[];if(m){if(_){let t=(0,K.query)((0,K.collection)(r.bt,`user_profiles`),(0,K.orderBy)(`createdAt`,`desc`),(0,K.limit)(5));e.push((0,K.onSnapshot)(t,e=>{D(`users`,e.docs.map(e=>{let t=e.data();return{id:`u_${e.id}`,type:`user`,title:`New user registered`,subtitle:t.email||t.phone||`Unknown`,time:t.createdAt,link:`/users/${e.id}`}}))},e=>O(`users`,e)));let n=(0,K.query)((0,K.collection)(r.bt,`user_submissions`),(0,K.orderBy)(`submittedAt`,`desc`),(0,K.limit)(5));e.push((0,K.onSnapshot)(n,e=>{D(`submissions`,e.docs.filter(e=>!R.o(e.data()||{})).map(e=>{let t=e.data();return{id:`s_${e.id}`,type:`submission`,title:`New form submission`,subtitle:t.name||t.email||`Anonymous`,time:t.submittedAt,link:`/inbox?open=${encodeURIComponent(`anyone:${e.id}`)}`}}))},e=>O(`submissions`,e)));let i=(0,K.query)((0,K.collection)(r.bt,`user_requests`),(0,K.orderBy)(`submittedAt`,`desc`),(0,K.limit)(5));e.push((0,K.onSnapshot)(i,e=>{D(`requests`,e.docs.map(e=>{let t=e.data();return{id:`r_${e.id}`,type:`request`,title:`New support request`,subtitle:t.name||t.submitterName||t.contactEmail||t.email||`Anonymous`,time:t.submittedAt,link:`/inbox?open=${encodeURIComponent(`signedIn:${e.id}`)}`}}))},e=>O(`requests`,e)))}else D(`users`,[]),D(`submissions`,[]),D(`requests`,[]);if(f?.uid){let t=(0,K.query)((0,K.collection)(r.bt,L.i),(0,K.where)(`uid`,`==`,f.uid)),n=e=>{let t=e.data()||{};return{id:`n_${e.id}`,type:`message`,title:String(t.title||`Notification`),subtitle:String(t.body||``),time:t.createdAt,link:typeof t.link==`string`&&t.link.startsWith(`/`)?t.link:void 0}};e.push((0,K.onSnapshot)(t,e=>{D(`notices`,e.docs.filter(e=>(e.data()||{}).kind===`notice`).map(n))},e=>O(`notices`,e)))}else D(`notices`,[]);if(f?.uid&&(_||b)){let t=e=>{let t=e.data();return{id:`m_${e.id}`,type:`message`,title:t.title||`Notification`,subtitle:t.body||t.fromName||``,time:t.createdAt,link:typeof t.link==`string`&&t.link.startsWith(`/`)?t.link:void 0}},n=(0,K.query)((0,K.collection)(r.bt,I.p),(0,K.where)(`toUid`,`==`,f.uid));e.push((0,K.onSnapshot)(n,e=>D(`direct`,e.docs.map(t)),e=>O(`direct`,e)));let i=_?[`admin`,`internal`]:[`internal`],a=(0,K.query)((0,K.collection)(r.bt,I.p),(0,K.orderBy)(`createdAt`,`desc`),(0,K.limit)(100));e.push((0,K.onSnapshot)(a,e=>D(`rolewide`,e.docs.filter(e=>i.includes((e.data()||{}).toRole)).map(t)),e=>O(`rolewide`,e)))}else D(`direct`,[]),D(`rolewide`,[]);return()=>e.forEach(e=>e())}},[_,b,f?.uid,m]),(0,W.useEffect)(()=>{let e=f?.uid?F.c(f.uid,p):[];D(`sentToMe`,e.length?x.records.filter(t=>F.r(t,e)).map(Ot):[])},[x.records,f?.uid,p]),(0,W.useEffect)(()=>{D(`sales`,C.map(kt))},[C]),(0,W.useEffect)(()=>{D(`orders`,w.map(At))},[w]);let[k,A]=(0,W.useState)(()=>typeof window<`u`?parseInt(localStorage.getItem(`admin_notifications_last_read`)||`0`,10):0),j=()=>{let n=!e;if(t(n),n){let e=c.current?.getBoundingClientRect();u(typeof window<`u`&&window.innerWidth<640&&e?e.bottom+8:null);let t=Date.now();A(t),typeof window<`u`&&localStorage.setItem(`admin_notifications_last_read`,t.toString())}},ee=[];!v.loading&&N.y(h,p,v.finishRegistration,f?.uid)&&ee.push({id:`finish-registration`,type:`finish`,title:`Finish registration`,subtitle:`There is still something we need from you.`,time:null,standing:!0,link:`/your-details`}),f&&g&&ee.push({id:`role-request`,type:`role`,title:n.ht,subtitle:n.mt,time:null,standing:!0,urgent:!0,link:`/profile`}),y&&ee.push({id:`verify-email`,type:`verify`,title:`Verify your email`,subtitle:`Open the link we sent to ${y} and you can sign in with it too. Nothing is waiting on it.`,time:null,standing:!0,link:`/verify`});let M=ee.length?[...ee,...i]:i,te=Nt(M.some(e=>!!e.link)),ne=M.filter(e=>te(e.link)),re=ne.some(e=>{if(e.standing||!e.time)return!0;let t=e.time?.toDate?e.time.toDate().getTime():new Date(e.time).getTime();return t>k||isNaN(t)}),ie=e=>{t(!1),e.link?d(e.link):e.type===`user`?d(`/users`):e.type===`submission`||e.type===`request`?d(`/inbox`):e.type===`verify`||e.type===`role`?d(`/profile`):e.type===`finish`?d(`/your-details`):e.type===`payment`&&d(_?`/transactions`:`/billing`)},z=e=>{if(!e)return``;let t=e.toDate?e.toDate():new Date(e),n=Date.now()-t.getTime();if(isNaN(n))return``;let r=Math.floor(n/6e4);if(r<1)return`now`;if(r<60)return`${r}m`;let i=Math.floor(r/60);if(i<24)return`${i}h`;let a=Math.floor(i/24);return a<7?`${a}d`:new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`}).format(t)};return(0,G.jsxs)(`div`,{className:`relative z-50 flex-shrink-0`,ref:s,children:[(0,G.jsxs)(`button`,{ref:c,onClick:j,className:`w-9 h-9 rounded-xl border border-[var(--panel-border)] transition-all relative text-foreground/60 hover:bg-foreground/5 hover:text-foreground flex items-center justify-center shadow-sm cursor-pointer`,"aria-label":`Notifications`,children:[(0,G.jsx)(Fe,{className:`w-4 h-4`}),re&&(0,G.jsx)(`span`,{className:`absolute top-1.5 right-1.5 w-2 h-2 bg-[var(--notification-icon-color)] rounded-full animate-pulse`})]}),(0,G.jsx)(r.A,{children:e&&(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:-5,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.98,y:-5},className:`${l===null?`absolute top-full mt-2 right-0`:`fixed right-4`} w-[min(320px,calc(100vw-2rem))] md:w-[400px] glass-popover border border-[var(--panel-border)] rounded-2xl z-50 flex flex-col origin-top-right overflow-hidden`,style:l===null?void 0:{top:l},children:[(0,G.jsxs)(`div`,{className:`px-4 border-b border-[var(--panel-border)]/50 pb-3 pt-4 flex items-center justify-between`,children:[(0,G.jsx)(`span`,{className:`font-bold text-[14px] text-foreground tracking-wide`,children:`Notifications`}),(_||b)&&(0,G.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-widest text-accent bg-accent/10 px-2 py-0.5 rounded-md`,children:_?`Admin`:`Team`})]}),(0,G.jsx)(`div`,{className:`max-h-[350px] overflow-y-auto w-full p-2 flex flex-col gap-1`,children:ne.length===0?(0,G.jsx)(`div`,{className:`p-6 text-center text-foreground/40 text-[13px] font-medium`,children:`No recent activity.`}):ne.map(e=>(0,G.jsxs)(`button`,{onClick:()=>ie(e),className:`w-full flex items-start gap-3 p-3 rounded-xl hover:bg-foreground/5 transition-all text-left group border border-transparent hover:border-[var(--panel-border)]`,children:[(0,G.jsx)(`div`,{className:`mt-0.5 w-8 h-8 rounded-full flex items-center justify-center shrink-0 ${e.urgent?`bg-red-500/10 text-red-500`:`bg-foreground/5 text-notification-icon`}`,children:(0,G.jsx)(Mt,{n:e})}),(0,G.jsxs)(`div`,{className:`flex flex-col flex-1 min-w-0`,children:[(0,G.jsxs)(`div`,{className:`flex items-baseline gap-2`,children:[(0,G.jsx)(`span`,{className:`text-[13px] font-semibold text-foreground group-hover:text-accent transition-colors truncate flex-1 min-w-0`,children:e.title}),(0,G.jsx)(`span`,{className:`text-[10px] font-mono tracking-wide text-foreground/40 shrink-0`,children:z(e.time)})]}),(0,G.jsx)(`span`,{className:`text-[12px] text-foreground/60 ${e.standing?`leading-snug`:`truncate`}`,children:e.subtitle})]})]},e.id))})]})})]})}var Ft=[{id:`contact`,hidden:!1}],It={route:`/support`,template:`popup_form`,form:`support`,tabName:`Support`,iconName:``},Lt={"/contact":n.H},Rt=e=>e&&Lt[e]||n.U,zt=`text-[13px] md:text-[14px] font-bold tracking-wide text-foreground/50 hover:text-accent transition-all cursor-pointer flex items-center gap-1.5`;function Bt({pages:e}){let[t,n]=(0,W.useState)(null),[a,o]=(0,W.useState)(!1),{rowRef:c,measureRef:l,visible:u}=i.s({count:e.length,listKey:e.map(e=>e.label+(e.submenu?` ▾`:``)).join(`|`),shown:!0,gap:28,moreButtonWidth:50}),d=e.slice(0,u),f=e.slice(u);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{ref:l,"aria-hidden":`true`,className:`flex items-center gap-7 whitespace-nowrap px-1`,style:{position:`fixed`,top:-9999,left:0,visibility:`hidden`,height:0,pointerEvents:`none`},children:e.map((e,t)=>(0,G.jsxs)(`span`,{"data-measure":!0,className:`text-[13px] md:text-[14px] font-bold tracking-wide flex items-center gap-1.5 shrink-0`,children:[e.label,e.submenu&&(0,G.jsx)(s.t,{className:`w-3 h-3`})]},t))}),(0,G.jsxs)(`div`,{className:`flex items-center gap-7 w-full min-w-0 justify-end relative`,ref:c,children:[d.map((e,i)=>(0,G.jsxs)(`div`,{className:`relative shrink-0`,onMouseEnter:()=>n(e.label),onMouseLeave:()=>n(null),children:[e.path?(0,G.jsxs)(q.Link,{to:e.path,className:zt,children:[e.label,e.submenu&&(0,G.jsx)(s.t,{className:`w-3 h-3`})]}):(0,G.jsxs)(`button`,{onClick:e.action,className:zt,children:[e.label,e.submenu&&(0,G.jsx)(s.t,{className:`w-3 h-3`})]}),e.submenu&&t===e.label&&(0,G.jsx)(`div`,{className:`absolute top-[100%] left-0 pt-2 z-50`,children:(0,G.jsx)(r.k.div,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},className:`min-w-[180px] max-h-[300px] overflow-y-auto styled-scrollbars bg-background/95 backdrop-blur-xl border border-[var(--panel-border)] rounded-2xl shadow-xl flex flex-col py-2`,children:e.submenu.map((e,t)=>e.path?(0,G.jsx)(q.Link,{to:e.path,className:`px-5 py-3 text-[13px] font-medium text-foreground/70 hover:text-foreground hover:bg-foreground/5 transition-colors`,children:e.label},t):(0,G.jsx)(`button`,{onClick:e.action,className:`px-5 py-3 text-left w-full text-[13px] font-medium text-foreground/70 hover:text-foreground hover:bg-foreground/5 transition-colors`,children:e.label},t))})})]},`${e.path||`no-path`}-${i}`)),f.length>0&&(0,G.jsxs)(`div`,{className:`relative flex items-center shrink-0`,onMouseEnter:()=>o(!0),children:[(0,G.jsx)(`button`,{onClick:()=>o(e=>!e),"aria-label":`More pages`,"aria-expanded":a,className:`p-1 rounded-lg transition-colors flex items-center ${a?`bg-foreground/5 text-accent`:`text-foreground/50 hover:bg-foreground/5 hover:text-accent`}`,children:(0,G.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`w-5 h-5`,children:[(0,G.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1`}),(0,G.jsx)(`circle`,{cx:`12`,cy:`5`,r:`1`}),(0,G.jsx)(`circle`,{cx:`12`,cy:`19`,r:`1`})]})}),(0,G.jsx)(r.A,{children:a&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{className:`fixed inset-0 z-40`,onClick:()=>o(!1)}),(0,G.jsx)(r.k.div,{initial:{opacity:0,y:5,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:5,scale:.98},className:`absolute top-[100%] pt-1 right-0 min-w-[200px] max-h-[350px] overflow-y-auto styled-scrollbars glass-popover border border-[var(--panel-border)] rounded-2xl flex flex-col py-2 z-50 origin-top-right`,children:f.map((e,t)=>e.path?(0,G.jsx)(q.Link,{to:e.path,onClick:()=>o(!1),className:`px-5 py-3 text-[13px] font-bold tracking-wide text-foreground/70 hover:text-foreground hover:bg-foreground/5 transition-colors`,children:e.label},t):(0,G.jsx)(`button`,{onClick:()=>{e.action&&e.action(),o(!1)},className:`px-5 py-3 text-left w-full text-[13px] font-bold tracking-wide text-foreground/70 hover:text-foreground hover:bg-foreground/5 transition-colors`,children:e.label},t))})]})})]})]})]})}function Vt({pages:e,onNavigate:t}){return(0,G.jsx)(G.Fragment,{children:e.map((e,n)=>{let r=Rt(e.path);return e.path?(0,G.jsxs)(q.Link,{to:e.path,onClick:t,className:`flex items-center gap-3 px-3 py-2.5 rounded-xl hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all min-w-0`,children:[(0,G.jsx)(r,{className:`w-4 h-4 text-accent/70 shrink-0`}),` `,(0,G.jsx)(`span`,{className:`text-[14px] font-semibold truncate`,children:e.label})]},`${e.path}-${n}`):(0,G.jsxs)(`button`,{onClick:()=>{e.action&&e.action(),t?.()},className:`flex items-center gap-3 px-3 py-2.5 rounded-xl hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all w-full text-left min-w-0`,children:[(0,G.jsx)(r,{className:`w-4 h-4 text-accent/70 shrink-0`}),` `,(0,G.jsx)(`span`,{className:`text-[14px] font-semibold truncate`,children:e.label})]},`${e.label}-${n}`)})})}function Ht({pages:e,phone:t,onNavigate:n}){return t?(0,G.jsx)(Vt,{pages:e,onNavigate:n}):(0,G.jsx)(Bt,{pages:e})}var Ut=e=>{if(!r.gt(e))return!1;let t=String(e?.message??e??``);return/\.(tsx|ts|jsx)\b|\/src\//.test(t)?!1:/https?:\/\/|\/assets\//.test(t)?!0:E.u()},Wt=e=>{if(e?.didNotArrive===!0||r.gt(e))return!0;let t=String(e?.message??e??``);return/Minified React error #306\b|lazy element type must resolve/i.test(t)},Gt=e=>!!e&&typeof e==`object`&&e.$$typeof===Symbol.for(`react.lazy`),Kt=class extends W.default.Component{state={failed:!1,passOn:null,reloading:!1};static getDerivedStateFromError(e){return{failed:!0,passOn:e,reloading:Ut(e)&&r.ht()>0}}componentDidCatch(e){this.passesOn(e)||this.state.reloading&&r.vt(this.props.reload)||(this.state.reloading&&this.setState({reloading:!1}),E.o(this.props.which,e))}passesOn(e){return this.props.neverPutAside?!0:!!this.props.onlyMissing&&!Wt(e)}render(){if(this.state.failed&&this.passesOn(this.state.passOn)){let e=this.state.passOn;throw queueMicrotask(()=>E.o(this.props.which,e,`threw`)),e}return this.state.reloading?null:this.state.failed?this.props.fallback:this.props.children}};function qt(e){let t=r.wt().components?.Menu;return t?(0,G.jsx)(Kt,{which:`menu`,fallback:(0,G.jsx)(Ht,{...e}),children:(0,G.jsx)(W.Suspense,{fallback:null,children:(0,G.jsx)(t,{...e})})}):(0,G.jsx)(Ht,{...e})}var Jt=()=>document.querySelector(`[aria-modal="true"]`)!==null,Yt=e=>{let t=new MutationObserver(e);return t.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`aria-modal`]}),()=>t.disconnect()};function Xt({isAdmin:e}){let t=E.d(e),i=a.a(),o=(0,W.useSyncExternalStore)(Yt,Jt,()=>!1),[s,c]=(0,W.useState)(!1);if(!t.length||o)return null;let l=r.pt(E.s(t));return(0,G.jsx)(`div`,{role:`status`,className:`fixed left-1/2 -translate-x-1/2 z-30 w-[calc(100%-2rem)] max-w-md transition-[bottom] duration-300 ${i?`bottom-40`:`bottom-[4.5rem]`}`,children:(0,G.jsxs)(`div`,{className:`glass-popover rounded-2xl px-4 py-3 flex items-center gap-3`,children:[(0,G.jsx)(Ze,{className:`w-4 h-4 shrink-0 text-accent`}),(0,G.jsxs)(`p`,{className:`text-[13px] font-semibold text-foreground/80 leading-snug flex-1 min-w-0`,children:[l.short.replace(E.i,``).trim(),(0,G.jsxs)(`span`,{className:`max-sm:hidden`,children:[` `,E.i]})]}),(0,G.jsxs)(`button`,{type:`button`,onClick:()=>{navigator.clipboard?.writeText(l.message).catch(()=>{}),c(!0),setTimeout(()=>{c(!1),E.l(t)},1500)},"aria-label":s?`Copied`:`Copy the fix`,className:`shrink-0 inline-flex items-center justify-center gap-1.5 h-8 w-8 px-0 sm:w-auto sm:px-3 rounded-[var(--btn-radius,0.75rem)] text-[12px] font-semibold border ${s?`copy-btn-done border-[var(--panel-border)] text-foreground/60`:`copy-btn cursor-pointer`}`,children:[s?(0,G.jsx)(r.et,{className:`copy-icon w-3.5 h-3.5`}):(0,G.jsx)(n.G,{className:`copy-icon w-3.5 h-3.5`}),(0,G.jsx)(`span`,{className:`max-sm:hidden`,children:s?`Copied`:`Copy the fix`})]}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>E.l(t),"aria-label":`Hide this`,className:`shrink-0 text-[13px] font-bold text-foreground/40 hover:text-foreground/70 transition-colors`,children:`✕`})]})})}var Zt=(0,W.createContext)({wide:!1,setWide:()=>{},cap:0,setCap:()=>{}});function Qt({children:e}){let[t,n]=(0,W.useState)(!1),[r,i]=(0,W.useState)(0);return(0,G.jsx)(Zt.Provider,{value:{wide:t,setWide:n,cap:r,setCap:i},children:e})}var $t=()=>(0,W.useContext)(Zt).wide,en=()=>{let{wide:e,cap:t}=(0,W.useContext)(Zt);return e?t:0};function tn(e=!0){let{setWide:t,setCap:n}=(0,W.useContext)(Zt);(0,W.useLayoutEffect)(()=>{if(e)return t(!0),()=>t(!1)},[e,t]),(0,W.useLayoutEffect)(()=>{if(e)return sn()},[e]),(0,W.useLayoutEffect)(()=>{if(e)return on(n)},[e,n])}var nn=.5,rn=400;function an(e,t){if(!e||!t||typeof window>`u`)return 0;let n=getComputedStyle(t),r=(parseFloat(n.paddingLeft)||0)+(parseFloat(n.paddingRight)||0),i=window.innerHeight*nn,a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(let e=0,t=a.nextNode();t&&e<rn;t=a.nextNode(),e++){let e=t,n=getComputedStyle(e);if(n.position===`fixed`||n.display===`none`)continue;let a=parseFloat(n.maxWidth);if(!Number.isFinite(a)||a<960)continue;let o=e.getBoundingClientRect();if(o.width<=0||o.height<=0)continue;if(o.top>i)break;let s=e.parentElement?.getBoundingClientRect();if(!s)continue;let c=o.left-s.left,l=s.right-o.right;if(Math.abs(c-l)>2)continue;let u=a-(parseFloat(n.paddingLeft)||0)-(parseFloat(n.paddingRight)||0)-(parseFloat(n.borderLeftWidth)||0)-(parseFloat(n.borderRightWidth)||0);return Math.round(u+r)}return 0}function on(e){if(typeof document>`u`)return()=>{};let t=0,n=()=>{t=0,e(an(document.querySelector(`.fbos-home-slot, .fbos-page-canvas`),document.querySelector(`.firebase-os > nav, .firebase-os nav`)))},r=()=>{t||=requestAnimationFrame(n)};n();let i=[300,1e3,2500].map(e=>setTimeout(r,e)),a=document.querySelector(`.fbos-home-slot, .fbos-page-canvas`),o=a&&typeof MutationObserver<`u`?new MutationObserver(r):null;return o?.observe(a,{childList:!0,subtree:!0}),window.addEventListener(`resize`,r),()=>{i.forEach(clearTimeout),t&&cancelAnimationFrame(t),o?.disconnect(),window.removeEventListener(`resize`,r),e(0)}}function sn(){if(typeof document>`u`)return()=>{};let e=document.documentElement,t=document.querySelector(`.firebase-os > nav, .firebase-os nav`);if(!t)return()=>{};let n=()=>e.style.setProperty(`--menu-h`,`${Math.round(t.getBoundingClientRect().height)}px`);n();let r=typeof ResizeObserver<`u`?new ResizeObserver(n):null;return r?.observe(t),window.addEventListener(`resize`,n),()=>{r?.disconnect(),window.removeEventListener(`resize`,n),e.style.removeProperty(`--menu-h`)}}function cn({onNavigate:e}){let{user:t}=n.Q(),{bought:r}=n.on(t?.uid);return r?(0,G.jsxs)(q.Link,{to:`/billing`,onClick:e,className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,G.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,G.jsx)(i.j,{className:`w-3 h-3 text-accent`})}),`Billing`]}):null}function ln({onNavigate:e}){return(0,G.jsx)(G.Fragment,{children:i.r().map(t=>{let n=t.icon;return(0,G.jsxs)(q.Link,{to:t.path,onClick:e,"data-own-tab":t.id,className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,G.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,G.jsx)(n,{className:`w-3 h-3 text-accent`})}),(0,G.jsx)(`span`,{className:`truncate min-w-0`,children:t.label})]},t.id)})})}var un={contact:{label:`Contact`,path:`/contact`}},dn=`fbos_public_menu`,fn=()=>{try{let e=localStorage.getItem(dn),t=e?JSON.parse(e):null;return t&&typeof t==`object`?t:{}}catch{return{}}},pn=e=>{try{localStorage.setItem(dn,JSON.stringify({...fn(),...e}))}catch{}},mn=new Set([`setup`,`templates`,`guide`]),hn=1.6,gn=`logo-shape:`,_n={shape:`unknown`,ratio:0},vn=e=>({shape:e>=hn?`wide`:`square`,ratio:e}),yn=e=>{if(!e)return _n;try{let t=localStorage.getItem(gn+e);if(t===`wide`)return{shape:`wide`,ratio:0};if(t===`square`)return{shape:`square`,ratio:0};let n=Number(t);return t&&Number.isFinite(n)&&n>0?vn(n):_n}catch{return _n}};function bn(e){let[t,n]=(0,W.useState)(null),r=t&&t.url===e?t.measure:yn(e);return(0,W.useEffect)(()=>{if(!e||yn(e).shape!==`unknown`||typeof Image>`u`)return;let t=new Image;return t.onload=()=>{let r=Math.round(t.naturalWidth/Math.max(1,t.naturalHeight)*100)/100;try{localStorage.setItem(gn+e,String(r))}catch{}n({url:e,measure:vn(r)})},t.onerror=()=>n({url:e,measure:{shape:`square`,ratio:0}}),t.src=e,()=>{t.onload=null,t.onerror=null}},[e]),r}function xn({customMenu:e,standalone:t}){let{user:s,userRole:c,signOut:l,roleResolved:u,profileReady:f,profile:p}=n.Q(),m=!!s&&u!==!1&&f!==!1,h=o.A(c),[_,v]=(0,W.useState)(!1),[y,b]=(0,W.useState)(!1),[x,S]=(0,W.useState)(!1),[C,w]=(0,W.useState)(!1),T=String(p?.displayName||``).trim()||s?.displayName||s?.email?.split(`@`)[0]||``,E=T.charAt(0).toUpperCase()+T.slice(1),D=(0,G.jsx)(`span`,{className:`block h-3 w-16 rounded bg-foreground/5 animate-pulse`,"aria-hidden":`true`}),{theme:O,toggleTheme:k,activeConfig:A,canSwitchTheme:j}=i.L(),ee=qt,M=async()=>{await l(),v(!1)},[N,P]=(0,W.useState)(()=>fn().info??{...un}),[F,te]=(0,W.useState)(()=>fn().order??Ft),[I,L]=(0,W.useState)(It.tabName);(0,W.useEffect)(()=>{if(!r.bt)return;let e=(0,K.onSnapshot)((0,K.collection)(r.bt,`sys_pages`),e=>{let t={...un};for(let[e,n]of i.E()){if(!n.isPublic)continue;let r=n.config||{};if(r.enabled===!1)continue;let a=r.route?r.route.startsWith(`/`)?r.route:`/`+r.route:`/`+e;t[e]={label:r.pageName||r.pageTitle||r.title||e,path:a,iconName:r.iconName||``,offMenu:i.w(r)}}e.forEach(e=>{let n=e.data(),r=String(n.fileId||``),i=r&&t[r]||t[e.id];if(r&&r!==e.id&&delete t[r],n.enabled===!1)return;let a=n.pageName||n.title||un[e.id]?.label||e.id,o=n.route||(e.id===`home`?`/`:`/`+e.id);t[e.id]={label:a,path:o,iconName:n.iconName||t[e.id]?.iconName||``,offMenu:i?.offMenu}});for(let e of mn)delete t[e];P(t),pn({info:t})},e=>{a.d(e)}),t=(0,K.onSnapshot)((0,K.doc)(r.bt,`sys_configs`,`page_order`),e=>{let t=e.exists()&&Array.isArray(e.data().order)?i.c(e.data().order):Ft;te(t),pn({order:t})},()=>{}),n=(0,K.onSnapshot)((0,K.doc)(r.bt,`sys_tabs`,`support`),e=>{e.exists()&&e.data().pageName&&L(e.data().pageName)},()=>{});return()=>{e(),t(),n()}},[]);let R=(()=>{let e=new Set(F.filter(e=>e.hidden).map(e=>e.id)),t=new Set,n=[];return F.forEach(e=>{if(e.hidden||e.id===`home`)return;let r=N[e.id];r&&(n.push({label:r.label,path:r.path,iconName:r.iconName}),t.add(e.id))}),Object.entries(N).forEach(([r,i])=>{!t.has(r)&&!e.has(r)&&!i.offMenu&&r!==`home`&&i.path!==`/`&&i.path!==`/support`&&n.push({label:i.label,path:i.path,iconName:i.iconName})}),n})(),ne=e||R,re=t?[]:ne.filter(e=>e.path&&n.B(e.iconName)),ie=!t&&ne.some(e=>n.R(e.iconName));(0,W.useEffect)(()=>{ie&&n.V()},[ie]);let z=re.length?ne.filter(e=>!re.includes(e)):ne,[B,ae]=(0,W.useState)(()=>typeof window<`u`&&window.innerWidth<640);(0,W.useEffect)(()=>{if(typeof window>`u`)return;let e=()=>{let e=window.innerWidth<640;ae(t=>(t!==e&&v(!1),e))};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let V=!t&&!s&&!B,H=$t(),oe=en(),{shape:U,ratio:se}=bn(A?.logoUrl),ce=U===`square`&&!!A?.logoUrl&&se>1.05;return(0,G.jsxs)(`nav`,{className:`flex items-center justify-between w-full ${H?`px-4 pt-4 pb-3 md:px-8 md:pt-10 md:pb-6`:`max-w-7xl px-4 py-4 md:px-8 md:py-10`} mx-auto z-40 relative`,style:oe?{maxWidth:oe}:void 0,children:[(0,G.jsx)(`div`,{className:`flex items-center min-w-0 z-50`,children:(0,G.jsx)(q.Link,{to:`/`,className:`flex items-center gap-2 md:gap-2.5 lg:gap-3 group cursor-pointer z-50 min-w-0`,"aria-label":U===`wide`?A?.appName||`Home`:void 0,children:U===`wide`&&A?.logoUrl?(0,G.jsx)(`img`,{src:A.logoUrl,alt:A?.appName||``,"data-wide-logo":!0,draggable:!1,className:`h-6 md:h-7 lg:h-7 w-auto max-w-[140px] md:max-w-[180px] lg:max-w-[200px] object-contain object-left transition-opacity duration-300 group-active:opacity-80`}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{"data-logo-tile":ce?`wide`:`square`,"data-logo-ratio":ce?String(se):void 0,style:ce?{aspectRatio:String(se)}:void 0,className:`h-8 md:h-9 ${ce?`w-auto`:`w-8 md:w-9 group-hover:rotate-180`} rounded-lg glass-panel flex items-center justify-center glow-hover shadow-lg transition-transform duration-500 group-active:scale-95 overflow-hidden shrink-0`,children:A?.logoUrl?(0,G.jsx)(r.t,{src:A.logoUrl,alt:`Logo`,fit:`contain`,priority:!0,className:`w-full h-full`,imgClassName:`max-md:p-0.5`}):(0,G.jsx)(`img`,{src:bt,alt:``,"aria-hidden":`true`,draggable:!1,"data-brand-mark":!0,className:`w-full h-full object-cover`})}),(0,G.jsx)(`span`,{className:`font-display font-bold text-[17px] md:text-[19px] lg:text-[22px] tracking-tight text-gradient transition-all duration-300 drop-shadow-sm truncate`,children:A?.appName||``})]})})}),(0,G.jsx)(r.A,{children:y&&(0,G.jsx)(d.t,{formId:`contact`,onClose:()=>b(!1)})}),(0,G.jsx)(r.A,{children:x&&(0,G.jsx)(d.t,{formId:`support`,onClose:()=>S(!1)})}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2.5 md:gap-4 z-50 relative ml-auto flex-1 min-w-0 justify-end`,children:[V&&(0,G.jsx)(`div`,{className:`flex items-center flex-1 min-w-0 justify-end mr-6`,children:(0,G.jsx)(ee,{pages:z,phone:!1})}),re.length>0&&(0,G.jsx)(`div`,{className:`flex items-center gap-1.5 sm:gap-2 shrink-0`,children:re.map((e,t)=>{let r=n.B(e.iconName)||n.U;return(0,G.jsx)(q.Link,{to:e.path,"aria-label":e.label,title:e.label,className:`w-9 h-9 rounded-xl border border-[var(--panel-border)] hover:bg-foreground/5 transition-all text-foreground/60 hover:text-foreground flex items-center justify-center shadow-sm shrink-0 cursor-pointer`,children:(0,G.jsx)(r,{className:`w-4 h-4`})},`${e.path}-${t}`)})}),!t&&!s&&(0,G.jsxs)(G.Fragment,{children:[j&&(0,G.jsx)(`button`,{onClick:k,className:`w-9 h-9 rounded-xl border border-[var(--panel-border)] hover:bg-foreground/5 transition-all text-foreground/60 hover:text-foreground flex items-center justify-center shadow-sm shrink-0 cursor-pointer`,"aria-label":`Toggle Theme`,children:O===`dark`?(0,G.jsx)(pt,{className:`w-4 h-4`}):(0,G.jsx)(lt,{className:`w-4 h-4`})}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2.5 shrink-0`,children:[!B&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(q.Link,{to:`/login`,className:`flex text-[14px] font-bold tracking-wide text-foreground/80 hover:text-accent transition-colors px-3 py-1.5 shrink-0`,children:`Sign In`}),(0,G.jsx)(q.Link,{to:`/register`,className:`flex text-[13px] md:text-[14px] font-bold tracking-wide px-4 py-1.5 md:px-5 md:py-2 rounded-xl btn-primary transition-all duration-300 hover:shadow-lg hover:-translate-y-0.5 active:scale-95 items-center justify-center ml-2 shrink-0`,children:`Get Started`})]}),B&&(0,G.jsxs)(`div`,{className:`relative shrink-0`,children:[(0,G.jsx)(`button`,{onClick:()=>v(_===`guest`?!1:`guest`),"aria-label":`Open menu`,"aria-expanded":_===`guest`,className:`w-9 h-9 rounded-xl glass-panel glow-hover border transition-all flex items-center justify-center ${_===`guest`?`border-accent bg-foreground/5`:`border-[var(--panel-border)] hover:bg-foreground/5`}`,children:(0,G.jsx)(at,{className:`w-5 h-5 text-accent/80`})}),(0,G.jsx)(r.A,{children:_===`guest`&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{className:`fixed inset-0 z-40`,onClick:()=>v(!1)}),(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.95},className:`absolute top-full right-0 mt-3 w-[220px] p-2 glass-popover border border-[var(--panel-border)] rounded-2xl z-50 flex flex-col gap-1 origin-top-right`,children:[(0,G.jsx)(ee,{pages:z,phone:!0,onNavigate:()=>v(!1)}),(0,G.jsx)(`div`,{className:`pt-2 mt-1 border-t border-[var(--panel-border)]/50 flex flex-col gap-1`,children:(0,G.jsxs)(q.Link,{to:`/login`,onClick:()=>v(!1),className:`flex items-center gap-3 px-3 py-2.5 rounded-xl hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all w-full`,children:[(0,G.jsx)(a.l,{className:`w-4 h-4 text-accent/70`}),` `,(0,G.jsx)(`span`,{className:`text-[14px] font-semibold`,children:`Sign In`})]})})]})]})})]})]})]}),!t&&m&&s&&(0,G.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,G.jsx)(Pt,{}),j&&(0,G.jsx)(`button`,{onClick:k,className:`w-9 h-9 rounded-xl border border-[var(--panel-border)] hover:bg-foreground/5 transition-all text-foreground/60 hover:text-foreground flex items-center justify-center shadow-sm shrink-0 cursor-pointer`,"aria-label":`Toggle Theme`,children:O===`dark`?(0,G.jsx)(pt,{className:`w-4 h-4`}):(0,G.jsx)(lt,{className:`w-4 h-4`})}),(0,G.jsxs)(`div`,{className:`relative z-50 flex-shrink-0`,children:[(0,G.jsxs)(`button`,{onClick:()=>v(_===`user`?!1:`user`),className:`flex items-center gap-2 group p-0.5 sm:p-1 sm:pr-2.5 rounded-full hover:bg-foreground/5 transition-all duration-300 cursor-pointer sm:border ${_===`user`?`sm:border-accent/50 sm:bg-foreground/5`:`sm:border-[var(--panel-border)] sm:hover:border-accent/30`}`,children:[(0,G.jsx)(`div`,{className:`w-8 h-8 md:w-9 md:h-9 rounded-full bg-accent/10 flex items-center justify-center overflow-hidden border sm:border-0 transition-colors shrink-0 text-accent ${_===`user`?`border-accent/50`:`border-[var(--panel-border)] group-hover:border-accent/30`}`,children:s.photoURL&&!C?(0,G.jsx)(r.t,{src:s.photoURL,alt:`Profile`,className:`w-full h-full`,onError:()=>w(!0)}):(0,G.jsx)(_t,{className:`w-4 h-4 md:w-5 md:h-5 text-accent`})}),(0,G.jsx)(`div`,{className:`max-sm:hidden sm:flex text-left mr-1 items-center min-w-[70px] max-w-[160px]`,children:E?(0,G.jsx)(`span`,{className:`text-[12px] font-extrabold leading-tight text-foreground truncate w-full`,children:E}):D})]}),(0,G.jsx)(r.A,{children:_===`user`&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{className:`fixed inset-0 z-40`,onClick:()=>v(!1)}),(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:-5,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.98,y:-5},className:`absolute top-full mt-2 right-0 w-[280px] md:w-[320px] max-h-[calc(100svh-6rem)] overflow-y-auto overscroll-contain glass-popover border border-[var(--panel-border)] rounded-2xl p-2 z-50 flex flex-col origin-top-right`,children:[(0,G.jsxs)(`div`,{className:`p-3 border-b border-[var(--panel-border)]/50 mb-1 flex flex-col gap-1.5`,children:[E?(0,G.jsx)(`span`,{className:`font-bold text-[15px] text-foreground truncate`,children:E}):(0,G.jsx)(`span`,{className:`block h-3.5 w-24 my-[3px] rounded bg-foreground/5 animate-pulse`,"aria-hidden":`true`}),(0,G.jsx)(`span`,{className:`text-[12px] text-foreground/50 truncate font-mono`,children:s.email})]}),(0,G.jsxs)(`div`,{className:`py-1`,children:[(0,G.jsxs)(q.Link,{to:`/dashboard`,onClick:()=>v(!1),className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,G.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,G.jsx)(g._,{className:`w-3 h-3 text-accent`})}),`Dashboard`]}),(0,G.jsx)(ln,{onNavigate:()=>v(!1)}),h&&(0,G.jsxs)(q.Link,{to:`/assets`,onClick:()=>v(!1),className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,G.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,G.jsx)(i.N,{className:`w-3 h-3 text-accent`})}),`Assets`]}),c===`admin`&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(q.Link,{to:`/users`,onClick:()=>v(!1),className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,G.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,G.jsx)(i.D,{className:`w-3 h-3 text-accent`})}),`Users`]}),(0,G.jsxs)(q.Link,{to:`/inbox`,onClick:()=>v(!1),className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,G.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,G.jsx)(i.M,{className:`w-3 h-3 text-accent`})}),`Inbox`]}),(0,G.jsxs)(q.Link,{to:`/pages`,onClick:()=>v(!1),className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,G.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,G.jsx)(n.U,{className:`w-3 h-3 text-accent`})}),`Pages`]}),(0,G.jsxs)(q.Link,{to:`/publish`,onClick:()=>v(!1),className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,G.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,G.jsx)(i.O,{className:`w-3 h-3 text-accent`})}),`Publish App`]}),(0,G.jsxs)(q.Link,{to:`/setup`,onClick:()=>v(!1),className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,G.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,G.jsx)(yt,{className:`w-3 h-3 text-accent`})}),`Setup`]})]}),c!==`admin`&&(0,G.jsxs)(q.Link,{to:`/support`,onClick:()=>v(!1),className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3 text-left`,children:[(0,G.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,G.jsx)(Ue,{className:`w-3 h-3 text-accent`})}),I]}),(0,G.jsx)(cn,{onNavigate:()=>v(!1)}),(0,G.jsxs)(q.Link,{to:`/profile`,onClick:()=>v(!1),className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-semibold tracking-wide hover:bg-foreground/5 text-foreground/80 hover:text-foreground transition-all gap-3`,children:[(0,G.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,G.jsx)(_t,{className:`w-3 h-3 text-accent`})}),`Profile Settings`]})]}),(0,G.jsx)(`div`,{className:`pt-1 mt-1 border-t border-[var(--panel-border)]/50`,children:(0,G.jsxs)(`button`,{onClick:M,className:`flex items-center w-full px-3 py-2.5 rounded-xl text-[13px] font-bold tracking-wide hover:bg-red-500/10 hover:text-red-500 text-foreground/70 transition-all gap-3`,children:[(0,G.jsx)(`span`,{className:`w-5 h-5 rounded-md bg-red-500/5 flex items-center justify-center shrink-0 text-red-500`,children:(0,G.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`w-3 h-3`,children:[(0,G.jsx)(`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`}),(0,G.jsx)(`polyline`,{points:`16 17 21 12 16 7`}),(0,G.jsx)(`line`,{x1:`21`,y1:`12`,x2:`9`,y2:`12`})]})}),`Sign Out`]})})]})]})})]})]}),t&&(0,G.jsx)(G.Fragment,{children:j&&(0,G.jsx)(`button`,{onClick:k,className:`w-9 h-9 rounded-xl border border-[var(--panel-border)] hover:bg-foreground/5 transition-all text-foreground/60 hover:text-foreground flex items-center justify-center shadow-sm shrink-0 cursor-pointer`,"aria-label":`Toggle Theme`,children:O===`dark`?(0,G.jsx)(pt,{className:`w-4 h-4`}):(0,G.jsx)(lt,{className:`w-4 h-4`})})})]})]})}var Sn=`https://youtu.be/YOyuogCNq9Y`;function Cn(){let[e,t]=(0,W.useState)(null),[n,i]=(0,W.useState)(!1);return(0,G.jsxs)(`main`,{className:`flex-1 flex flex-col items-center justify-center w-full px-4 md:px-8 mb-16 md:mb-24 z-10 relative`,children:[(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:`text-center mb-8 md:mb-12`,children:[(0,G.jsxs)(r.k.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.2},className:`inline-flex items-center gap-2 md:gap-3 px-5 md:px-6 py-2 md:py-2.5 mb-8 md:mb-10 text-[13px] md:text-[15px] font-semibold tracking-wide uppercase rounded-full glass-panel text-foreground glow-hover cursor-pointer`,children:[(0,G.jsx)(c.w,{className:`w-4 h-4 text-accent`}),` Build your whole app without code`]}),(0,G.jsx)(r.k.h1,{className:`text-4xl sm:text-5xl md:text-6xl lg:text-[4.5rem] font-extrabold tracking-tight mb-6 md:mb-8 text-gradient animate-float leading-[1.1] md:leading-[1.15] px-2`,children:`Your AI Firebase`}),(0,G.jsx)(`p`,{className:`text-[14px] sm:text-[15px] md:text-lg lg:text-xl text-foreground/60 max-w-3xl mx-auto font-medium leading-[1.6] md:leading-[1.7] mb-10 md:mb-14 px-6 md:px-4`,children:`Everything your next app needs is already built — sign-ins, pages, payments, emails and files. Say what you want in plain words and watch it appear. No code, no servers, nothing to set up.`}),(0,G.jsxs)(r.k.div,{className:`flex flex-col sm:flex-row items-center justify-center gap-4 sm:gap-6 w-full max-w-2xl mx-auto px-6`,initial:{opacity:0},animate:{opacity:1},transition:{delay:.5},children:[(0,G.jsx)(q.Link,{to:`/login`,style:{borderRadius:`var(--btn-radius, 0.75rem)`},className:`w-full sm:w-auto px-6 md:px-8 py-3 md:py-3.5 font-semibold tracking-wide btn-primary text-[15px] shadow-xl transition-all duration-300 hover:-translate-y-1 active:scale-95 flex items-center justify-center`,children:`Sign In to Build`}),(0,G.jsxs)(`button`,{type:`button`,onClick:()=>i(!0),style:{borderRadius:`var(--btn-radius, 0.75rem)`},className:`group w-full sm:w-auto px-6 md:px-8 py-3 md:py-3.5 font-semibold tracking-wide btn-secondary text-[15px] transition-all duration-300 flex items-center justify-center gap-2.5 hover:-translate-y-1 active:scale-95 cursor-pointer`,children:[(0,G.jsx)(`span`,{className:`w-6 h-6 rounded-full bg-accent/15 text-accent flex items-center justify-center group-hover:bg-accent/25 transition-colors`,children:(0,G.jsx)(a.c,{className:`w-3 h-3 fill-current`})}),`Watch Tutorial`]})]})]}),(0,G.jsx)(p.n,{open:n,href:Sn,onClose:()=>i(!1),autoPlay:!0}),(0,G.jsx)(r.A,{children:e&&(0,G.jsx)(d.t,{onClose:()=>t(null),formId:e})})]})}var wn=[.16,1,.3,1],Tn={hidden:{opacity:0,y:10},shown:{opacity:1,y:0,transition:{duration:.35,ease:wn,delayChildren:.08,staggerChildren:.05}}},En={hidden:{opacity:0,y:8},shown:{opacity:1,y:0,transition:{duration:.35,ease:wn}}};function Dn({width:e=`max-w-[480px]`,className:t,children:n}){let i=r.O();return(0,G.jsxs)(r.k.div,{initial:i?!1:`hidden`,animate:`shown`,variants:Tn,className:r.E(`w-full p-6 sm:p-8 md:p-10 rounded-3xl glass-panel relative shadow-[0_8px_32px_rgba(0,0,0,0.08)]`,e,t),children:[(0,G.jsx)(`div`,{className:`absolute -inset-[1px] bg-gradient-to-br from-[var(--primary-glow)] to-transparent opacity-30 blur-[20px] rounded-3xl -z-10`}),n]})}function On({className:e,children:t}){return(0,G.jsx)(r.k.div,{variants:En,className:e,children:t})}function kn({show:e,className:t,children:n}){let i=r.O();return(0,G.jsx)(r.k.div,{className:t,initial:i?!1:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.25,ease:wn},children:n},e)}function An({title:e,line:t,as:n=`h3`,align:i=`center`,className:a}){return(0,G.jsxs)(On,{className:r.E(`mb-6 sm:mb-7`,i===`center`?`text-center`:`text-left`,a),children:[(0,G.jsx)(n,{className:`text-[22px] sm:text-2xl font-semibold tracking-tight text-foreground leading-snug`,children:e}),t&&(0,G.jsx)(`p`,{className:`mt-1.5 text-[14px] text-foreground/60 leading-relaxed`,children:t})]})}function jn({className:e,children:t}){return(0,G.jsx)(On,{className:r.E(`mt-6 pt-5 border-t border-[var(--panel-border)] text-center`,e),children:t})}var Mn=`text-[14px] text-foreground/60`,Nn=`text-accent font-semibold hover:underline ml-1`;function Pn(){return(0,G.jsxs)(`div`,{"aria-busy":`true`,className:`flex flex-col gap-3.5`,children:[(0,G.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl`}),(0,G.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl`}),(0,G.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl opacity-60`})]})}function Fn({problem:e,onUse:t,signInHref:r}){let i=t&&e.tryInstead&&e.tryInstead!==`password`?e.tryInstead:null,a=i?m.t[i]:null;return(0,G.jsxs)(h.t,{className:`mb-4`,children:[e.text,e.tryInstead===`password`&&r&&(0,G.jsx)(q.Link,{to:r,className:`mt-2 block font-bold text-accent hover:underline`,children:`Go to the sign-in page`}),i&&a&&t&&(0,G.jsxs)(`button`,{type:`button`,onClick:()=>t(i),className:`mt-2.5 w-full flex items-center justify-center gap-2 py-2 rounded-lg text-[13px] font-bold text-foreground bg-foreground/[0.06] hover:bg-foreground/10 transition-colors cursor-pointer`,children:[(0,G.jsx)(a,{className:`w-4 h-4 shrink-0`}),n.kt(i)?.button??`Use that instead`]})]})}function In({value:e,onChange:t,label:n=`The code we texted you`,autoFocus:r}){return(0,G.jsx)(d.c,{name:`code`,label:n,inputMode:`numeric`,autoComplete:`one-time-code`,placeholder:`123456`,className:`max-sm:h-11 tracking-[0.3em] font-bold`,value:e,onChange:e=>t(e.target.value),autoFocus:r,required:!0})}function Ln({step:e,onSignedIn:t,onCancel:i}){let[a,o]=(0,W.useState)(!0),[s,c]=(0,W.useState)(!1),[d,f]=(0,W.useState)(``),[p,m]=(0,W.useState)(``),[h,g]=(0,W.useState)(null),_=(0,W.useRef)(null),v=(0,W.useRef)(!1),y=async e=>{g(await n.lt(e,`sms2fa`,`That code could not be checked. Ask for a new one.`))},b=async()=>{g(null),o(!0);try{f(await e.send(_.current))}catch(e){await y(e)}finally{o(!1)}};return(0,W.useEffect)(()=>{v.current||(v.current=!0,b())},[]),(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.2},children:[(0,G.jsx)(`div`,{ref:_}),h&&(0,G.jsx)(Fn,{problem:h}),(0,G.jsxs)(`div`,{className:`text-center mb-5`,children:[(0,G.jsx)(`p`,{className:`text-[15px] font-semibold text-foreground mb-1`,children:`One more step`}),(0,G.jsx)(`p`,{className:`text-[13.5px] text-foreground/60 leading-relaxed`,children:e.phone?(0,G.jsxs)(G.Fragment,{children:[`We texted a code to `,(0,G.jsx)(`span`,{className:`font-semibold text-foreground/80`,children:e.phone}),`. Type it in and you are in.`]}):(0,G.jsx)(G.Fragment,{children:`We texted you a code. Type it in and you are in.`})})]}),(0,G.jsxs)(`form`,{onSubmit:async n=>{n.preventDefault(),g(null),c(!0);try{await e.finish(d,p.trim()),t()}catch(e){await y(e),c(!1)}},className:`flex flex-col gap-4`,children:[(0,G.jsx)(In,{value:p,onChange:m,autoFocus:!0}),(0,G.jsxs)(O.t,{type:`submit`,className:`w-full py-3 text-[15px] font-semibold`,isLoading:s||a,disabled:a||s||!d,children:[`Sign me in `,(0,G.jsx)(u.n,{className:`ml-2 w-4 h-4 shrink-0`})]})]}),(0,G.jsx)(`button`,{type:`button`,onClick:b,disabled:a||s,className:`mt-3 w-full text-[13px] font-bold text-accent hover:underline disabled:opacity-40 disabled:no-underline cursor-pointer disabled:cursor-default`,children:`Send it again`}),i&&(0,G.jsxs)(`button`,{type:`button`,onClick:i,className:`mt-2 w-full inline-flex items-center justify-center gap-1.5 text-[13px] font-bold text-foreground/50 hover:text-accent transition-colors cursor-pointer`,children:[(0,G.jsx)(l.t,{className:`w-3.5 h-3.5 shrink-0`}),`Another way in`]})]})}var Rn=`password`,zn=e=>!!e?.providerData?.some(e=>e?.providerId===Rn),Bn=e=>{let t=r.yt?.currentUser;return t&&(!e||t.uid===e.uid)?t:e};function Vn(e){let t=Bn(e);if(!t)return[];try{return(0,se.multiFactor)(t).enrolledFactors??[]}catch{return[]}}var Hn=e=>Vn(e).length>0;function Un(e){let t=Vn(e)[0];return t?.phoneNumber||t?.displayName||``}var Wn=e=>!!e&&zn(e)&&!Hn(e),Gn=(e,t)=>t&&Wn(e),Kn=`firebase-os:two-step-not-now`;function qn(e){if(e)try{sessionStorage.setItem(`${Kn}:${e}`,`1`)}catch{}}function Jn(e){if(!e)return!1;try{return sessionStorage.getItem(`${Kn}:${e}`)===`1`}catch{return!1}}var Yn=(e,t,n)=>Gn(e,t)&&!(n&&Jn(e?.uid)),Xn=(e,t)=>!!e&&(Hn(e)||t&&zn(e)),Zn=()=>{if(!r.yt)throw Error(`Firebase is not initialized. Check your configuration.`);return r.yt},Qn=`Phone`,$n=e=>(0,se.multiFactor)(Bn(e)??e);async function er(e,t,r){let i=await $n(e).getSession();return n.ft(r,e=>new se.PhoneAuthProvider(Zn()).verifyPhoneNumber({phoneNumber:t,session:i},e))}async function tr(e,t,n){let r=se.PhoneAuthProvider.credential(t,n);await $n(e).enroll(se.PhoneMultiFactorGenerator.assertion(r),Qn)}async function nr(e){let t=$n(e);for(let e of[...t.enrolledFactors??[]])await t.unenroll(e)}function rr(e){if(e?.code!==`auth/multi-factor-auth-required`)return null;let t;try{t=(0,se.getMultiFactorResolver)(Zn(),e)}catch{return null}let r=t.hints?.[0];return{phone:r?.phoneNumber||r?.displayName||``,send:e=>n.ft(e,e=>new se.PhoneAuthProvider(Zn()).verifyPhoneNumber({multiFactorHint:r,session:t.session},e)),finish:async(e,n)=>{let r=se.PhoneAuthProvider.credential(e,n);await t.resolveSignIn(se.PhoneMultiFactorGenerator.assertion(r))}}}var ir=r._t(()=>Promise.resolve().then(()=>require(`./PhoneInputField-C9Lv_QGM.cjs`))),ar=e=>n.Mt(e).filter(e=>e.id!==`password`),or=e=>{let t=e.inSentence.replace(/^an?\s+/i,``);return t.charAt(0).toUpperCase()+t.slice(1)};function sr({settings:e,onSignedIn:t,disabled:i,returnTo:a=`/login`,onPanelChange:o,signInHref:s,sentTo:c}){let f=ar(e),p=c&&f.some(e=>e.id===`emailLink`)?c:``,[h,g]=(0,W.useState)(null),[_,v]=(0,W.useState)(null),[b,x]=(0,W.useState)(p?`emailLink`:null),[S,C]=(0,W.useState)(p),[w,T]=(0,W.useState)(p),[E,D]=(0,W.useState)(``),[k,A]=(0,W.useState)(``),[j,ee]=(0,W.useState)(null),[M,N]=(0,W.useState)(null),P=(0,W.useRef)(null),F=h!==null||i,te=b!==null||M!==null;(0,W.useEffect)(()=>{o?.(te)},[te]);let I=async(e,t)=>{let r=rr(e);if(r){N(r);return}v(await n.lt(e,t,`That did not work. Try again, or use another way in.`))};(0,W.useEffect)(()=>{let e=n.dt();e&&I(e.err,e.id)},[]);let L=async()=>{t()},R=async e=>{if(v(null),!n.at(e)){x(e),A(``),ee(null),T(``);return}g(e);try{await n.ut(e)===`done`&&await L()}catch(t){await I(t,e)}finally{g(null)}},ne=async e=>{e.preventDefault(),v(null),g(`emailLink`);try{await n.st(S.trim(),a),T(S.trim())}catch(e){await I(e,`emailLink`)}finally{g(null)}},re=async()=>{v(null),g(`phone`);try{A(``),ee(await n.ct(E.trim(),P.current))}catch(e){await I(e,`phone`)}finally{g(null)}},ie=async e=>{e.preventDefault(),await re()},z=async e=>{e.preventDefault(),v(null),g(`phone`);try{await j.confirm(k.trim()),await L()}catch(e){await I(e,`phone`)}finally{g(null)}},B=()=>{x(null),v(null),ee(null),N(null),T(``),A(``)},ae=()=>(0,G.jsxs)(`button`,{type:`button`,onClick:B,className:`mt-3 w-full inline-flex items-center justify-center gap-1.5 text-[13px] font-bold text-foreground/50 hover:text-accent transition-colors cursor-pointer`,children:[(0,G.jsx)(l.t,{className:`w-3.5 h-3.5 shrink-0`}),`Another way in`]}),V=f.length===1&&!e.on.password;return(0,G.jsxs)(`div`,{children:[_&&(0,G.jsx)(Fn,{problem:_,onUse:R,signInHref:s}),(0,G.jsx)(`div`,{ref:P}),M?(0,G.jsx)(Ln,{step:M,onSignedIn:t,onCancel:V&&!b?void 0:B}):b?(0,G.jsx)(r.k.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.2},children:(e=>e===`emailLink`?w?(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`div`,{className:`rounded-2xl border border-[var(--panel-border)] bg-foreground/[0.02] px-5 py-6 sm:py-7 text-center`,children:[(0,G.jsx)(`div`,{className:`w-12 h-12 mx-auto mb-4 rounded-2xl flex items-center justify-center bg-accent/10 text-accent ring-1 ring-inset ring-accent/20`,children:(0,G.jsx)(y.a,{className:`w-[22px] h-[22px]`})}),(0,G.jsx)(`p`,{className:`text-[16px] sm:text-[17px] font-extrabold tracking-tight text-foreground`,children:`Check your email`}),(0,G.jsx)(`p`,{className:`mt-1.5 text-[13px] text-foreground/50 font-medium`,children:`We sent a sign-in link to`}),(0,G.jsx)(`p`,{className:`mt-1 text-[14px] font-bold text-foreground break-all leading-snug`,children:w}),(0,G.jsx)(`p`,{className:`mt-3.5 text-[12.5px] text-foreground/50 font-medium leading-relaxed`,children:`Open it and you are in — there is no password to think of.`})]}),(0,G.jsxs)(`div`,{className:`mt-4 flex items-center justify-center gap-3 text-[13px] font-bold`,children:[(0,G.jsx)(`button`,{type:`button`,onClick:()=>T(``),className:`text-accent hover:underline cursor-pointer`,children:`Send it again`}),!V&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{className:`w-[1px] h-3.5 bg-[var(--panel-border)]`}),(0,G.jsxs)(`button`,{type:`button`,onClick:B,className:`inline-flex items-center gap-1.5 text-foreground/50 hover:text-accent transition-colors cursor-pointer`,children:[(0,G.jsx)(l.t,{className:`w-3.5 h-3.5 shrink-0`}),`Another way in`]})]})]})]}):(0,G.jsxs)(`form`,{onSubmit:ne,className:`space-y-3`,children:[(0,G.jsx)(d.c,{name:`linkEmail`,label:`Your email`,type:`email`,placeholder:`name@example.com`,className:`max-sm:h-11`,value:S,onChange:e=>C(e.target.value),autoFocus:!V,required:!0}),(0,G.jsxs)(O.t,{type:`submit`,className:`w-full py-2.5 sm:py-3 text-[15px] font-bold tracking-wide rounded-xl`,isLoading:h===`emailLink`,children:[`Email me a link `,(0,G.jsx)(u.n,{className:`ml-2 w-4 h-4 shrink-0`})]}),!V&&(0,G.jsx)(ae,{})]}):e===`phone`?(0,G.jsxs)(`div`,{children:[j?(0,G.jsxs)(`form`,{onSubmit:z,className:`space-y-3`,children:[(0,G.jsx)(In,{value:k,onChange:A,autoFocus:!0}),(0,G.jsxs)(O.t,{type:`submit`,className:`w-full py-2.5 sm:py-3 text-[15px] font-bold tracking-wide rounded-xl`,isLoading:h===`phone`,children:[`Sign me in `,(0,G.jsx)(u.n,{className:`ml-2 w-4 h-4 shrink-0`})]}),(0,G.jsxs)(`div`,{className:`flex items-center justify-center gap-3 text-[13px] font-bold`,children:[(0,G.jsx)(`button`,{type:`button`,onClick:re,disabled:h===`phone`,className:`text-accent hover:underline disabled:opacity-40 disabled:no-underline cursor-pointer disabled:cursor-default`,children:`Send it again`}),(0,G.jsx)(`span`,{className:`w-[1px] h-3.5 bg-[var(--panel-border)]`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>{ee(null),A(``),v(null)},className:`text-foreground/50 hover:text-accent transition-colors cursor-pointer`,children:`Use a different number`})]})]}):(0,G.jsxs)(`form`,{onSubmit:ie,className:`space-y-3`,children:[(0,G.jsx)(W.Suspense,{fallback:(0,G.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl`}),children:(0,G.jsx)(ir,{field:{label:`Your phone number`,required:!0,placeholder:`7700 900123`},value:E,onChange:D})}),(0,G.jsxs)(O.t,{type:`submit`,className:`w-full py-2.5 sm:py-3 text-[15px] font-bold tracking-wide rounded-xl`,isLoading:h===`phone`,children:[`Text me a code `,(0,G.jsx)(u.n,{className:`ml-2 w-4 h-4 shrink-0`})]})]}),!V&&(0,G.jsx)(ae,{})]}):null)(b)}):f.length>3?(0,G.jsx)(`div`,{className:`flex flex-wrap justify-center gap-2 sm:gap-2.5`,children:f.map(e=>{let t=m.t[e.id];return(0,G.jsxs)(O.t,{variant:`secondary`,onClick:()=>R(e.id),title:e.button,"aria-label":e.button,isLoading:h===e.id,disabled:F,className:`w-[88px] h-[68px] !px-1.5 text-[11px] font-bold tracking-tight rounded-xl transition-all hover:-translate-y-0.5 [&>span]:flex-col [&>span]:gap-1.5 [&>span]:w-full`,children:[(0,G.jsx)(t,{className:`w-[22px] h-[22px] shrink-0`}),(0,G.jsx)(`span`,{className:`w-full truncate text-center leading-none`,children:or(e)})]},e.id)})}):(0,G.jsx)(`div`,{className:`space-y-3`,children:f.map(e=>{let t=m.t[e.id];return(0,G.jsxs)(O.t,{variant:`secondary`,onClick:()=>R(e.id),isLoading:h===e.id,disabled:F,className:`w-full py-2.5 sm:py-3 text-[15px] sm:text-base font-bold tracking-wide rounded-xl transition-all hover:-translate-y-0.5`,children:[(0,G.jsx)(t,{className:`w-5 h-5 shrink-0`}),e.button]},e.id)})})]})}function cr({email:e,onSignedIn:t,onStartOver:r}){let[i,a]=(0,W.useState)(e),[o,s]=(0,W.useState)(!1),[c,f]=(0,W.useState)(null),[p,m]=(0,W.useState)(null);return p?(0,G.jsx)(Ln,{step:p,onSignedIn:t,onCancel:r}):(0,G.jsxs)(`div`,{children:[c&&(0,G.jsx)(Fn,{problem:c}),(0,G.jsx)(`p`,{className:`text-[13.5px] text-foreground/60 font-medium leading-relaxed mb-4`,children:`Nearly there. This link did not bring your address with it, so tell us the one you asked us to send it to and you are in.`}),(0,G.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault(),f(null),s(!0);try{await n.it(i.trim()),t()}catch(e){let t=rr(e);if(t){m(t);return}f(await n.lt(e,`emailLink`,`That link did not work. Ask for a new one.`,{email:i.trim()})),s(!1)}},className:`space-y-3`,children:[(0,G.jsx)(d.c,{name:`linkEmail`,label:`Your email`,type:`email`,placeholder:`name@example.com`,className:`max-sm:h-11`,value:i,onChange:e=>a(e.target.value),autoFocus:!0,required:!0}),(0,G.jsxs)(O.t,{type:`submit`,className:`w-full py-2.5 sm:py-3 text-[15px] font-bold tracking-wide rounded-xl`,isLoading:o,children:[`Sign me in `,(0,G.jsx)(u.n,{className:`ml-2 w-4 h-4 shrink-0`})]}),r&&(0,G.jsxs)(`button`,{type:`button`,onClick:r,className:`mt-3 w-full inline-flex items-center justify-center gap-1.5 text-[13px] font-bold text-foreground/50 hover:text-accent transition-colors cursor-pointer`,children:[(0,G.jsx)(l.t,{className:`w-3.5 h-3.5 shrink-0`}),`Ask for a new link, or sign in another way`]})]})]})}var lr=`Signing you in…`;function ur({note:e=`One moment.`}){return(0,G.jsxs)(`div`,{"aria-busy":`true`,className:`py-6 flex flex-col items-center gap-4 text-center`,children:[(0,G.jsx)(k.t,{}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`p`,{className:`text-[14px] font-medium text-foreground`,children:lr}),(0,G.jsx)(`p`,{className:`mt-1 text-[13px] text-foreground/55`,children:e})]})]})}function dr(){let[e,t]=(0,W.useState)(!1),i=(0,q.useNavigate)();return{settling:e,signedIn:()=>{n.nt();let e=r.yt?.currentUser;if(e&&!o.h(e)){i(`/verify`,{replace:!0});return}t(!0)}}}var fr=[{id:`length`,label:`At least 8 characters`,ok:e=>e.length>=8},{id:`case`,label:`An uppercase and a lowercase letter`,ok:e=>/[a-z]/.test(e)&&/[A-Z]/.test(e)},{id:`number`,label:`A number`,ok:e=>/[0-9]/.test(e)}],pr=new Set(`password1.password12.password123.password1234.passw0rd1.p@ssword1.p@ssw0rd1.test1234.test12345.testing123.test123456.qwerty123.qwerty1234.abcd1234.abc12345.welcome1.welcome123.admin123.admin1234.letmein123.iloveyou1.monkey123.football1.changeme1.secret123.summer2024.summer2025`.split(`.`)),mr=e=>e.toLowerCase().replace(/[\s._-]/g,``),hr=e=>pr.has(mr(e||``)),gr=e=>fr.map(t=>({rule:t,met:t.ok(e||``)}));function _r(e){let t=e||``;if(!t)return`Choose a password.`;let n=fr.find(e=>!e.ok(t));return n?`Your password needs ${n.label.toLowerCase()}.`:hr(t)?`That password is one of the first anyone would guess. Please pick another.`:``}function vr(e,t){return t?e===t?``:`Both passwords must be the same.`:`Type your password a second time.`}function yr({value:e,className:t=``}){return(0,G.jsx)(`ul`,{className:`flex flex-col gap-1 ml-1 ${t}`,"aria-label":`Password requirements`,children:gr(e).map(({rule:e,met:t})=>(0,G.jsxs)(`li`,{className:`flex items-center gap-2 text-[12.5px] font-medium transition-colors ${t?`text-emerald-500`:`text-foreground/45`}`,children:[t?(0,G.jsx)(r.et,{className:`w-3.5 h-3.5 shrink-0`}):(0,G.jsx)(`span`,{className:`w-3.5 flex justify-center shrink-0`,children:(0,G.jsx)(`span`,{className:`w-1.5 h-1.5 rounded-full bg-foreground/25`})}),e.label]},e.id))})}var br=`again`,xr=e=>`This account is half-made: nothing has been saved to it, and nothing can be until ${e||`the address on it`} is proved. Letting it go frees that address and takes you back to the form, where you fill in your details again with the address you want — and the next link goes to that one.`,Sr=(e=window.location.pathname)=>`${e.replace(/\/+$/,``).replace(/\/[^/]*$/,``)}/register?${br}=1`;async function Cr(e){let t=e||r.yt.currentUser;if(t){n.Wt(t.uid);try{await(0,se.deleteUser)(t)}catch{await(0,se.signOut)(r.yt).catch(()=>{})}}window.location.assign(Sr())}function wr({as:e}={}){let[t,r]=(0,W.useState)(!1),[i,a]=(0,W.useState)(null),[o,s]=(0,W.useState)(``),[c,l]=(0,W.useState)(``),[u,f]=(0,W.useState)(``),[p,m]=(0,W.useState)(``),[g,_]=(0,W.useState)(!1),v=(0,q.useNavigate)(),[y]=(0,q.useSearchParams)(),{registerUser:b}=n.Q(),x=n.Bt(),{settling:S,signedIn:C}=dr(),w=y.has(br),T=(()=>{let e=new URLSearchParams(y);e.delete(`as`);let t=e.toString();return`/register${t?`?${t}`:``}`})(),E=async e=>{e.preventDefault(),r(!0),a(null);let t=new FormData(e.currentTarget),i=t.get(`email`),s=t.get(`firstName`),l=t.get(`lastName`),u=_r(o),d=u?``:vr(o,c);if(f(u),m(d),u||d){a(u||d),r(!1);return}try{await b(i,o,s,l),v(`/verify`)}catch(e){e?.code===`auth/email-already-in-use`?a((0,G.jsxs)(`span`,{children:[(await n.lt(e,`password`,``,{email:i})).text,` `,(0,G.jsx)(q.Link,{to:`/login?email=${encodeURIComponent(i)}`,className:`font-bold`,children:`Sign in`})]})):e?.code===`auth/weak-password`?a(_r(o)||`Please choose a stronger password.`):a((await n.lt(e,`password`,`That did not work. Check your details and try again.`,{email:i})).text)}finally{r(!1)}},D=n.Pt(x),k=ar(x),A=S?`signing`:x.loading?`loading`:`form`;return(0,G.jsx)(`div`,{className:`flex-1 flex items-center justify-center w-full z-10 px-4 mt-6 mb-8 md:mt-0 md:mb-0 md:pt-8 md:pb-32`,children:(0,G.jsxs)(Dn,{width:`max-w-[500px]`,children:[(0,G.jsx)(An,{title:e?n.St(e.id,e.name):`Create an account`,line:e?n.pt:`Join Your AI Firebase and start building today.`}),i&&(0,G.jsx)(h.t,{className:`mb-5`,children:i}),!i&&w&&(0,G.jsx)(h.t,{tone:`note`,className:`mb-5`,children:`Start again with the address you want. Nothing was saved to the one you began with, and the next link goes wherever you type here.`}),(0,G.jsx)(On,{children:(0,G.jsx)(kn,{show:A,children:S?(0,G.jsx)(ur,{}):x.loading?(0,G.jsx)(Pn,{}):(0,G.jsxs)(G.Fragment,{children:[D&&!g&&(0,G.jsxs)(`form`,{className:`flex flex-col gap-5`,onSubmit:E,children:[(0,G.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-5`,children:[(0,G.jsx)(d.c,{name:`firstName`,label:`First Name`,type:`text`,placeholder:`John`,className:`max-sm:h-11`,required:!0}),(0,G.jsx)(d.c,{name:`lastName`,label:`Last Name`,type:`text`,placeholder:`Doe`,className:`max-sm:h-11`,required:!0})]}),(0,G.jsx)(d.c,{name:`email`,label:`Email`,type:`email`,placeholder:`name@example.com`,className:`max-sm:h-11`,required:!0}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-2.5`,children:[(0,G.jsx)(d.c,{name:`password`,label:`Password`,type:`password`,placeholder:`••••••••`,className:`max-sm:h-11`,autoComplete:`new-password`,value:o,onChange:e=>{s(e.target.value),u&&f(``),p&&e.target.value===c&&m(``)},onBlur:()=>f(o?_r(o):``),error:u,required:!0}),o&&(0,G.jsx)(yr,{value:o})]}),o&&(0,G.jsx)(d.c,{name:`confirmPassword`,label:`Confirm password`,type:`password`,placeholder:`••••••••`,className:`max-sm:h-11`,autoComplete:`new-password`,value:c,onChange:e=>{l(e.target.value),p&&m(``)},onBlur:()=>m(c?vr(o,c):``),error:p,required:!0}),(0,G.jsx)(`div`,{className:`pt-1`,children:(0,G.jsx)(O.t,{type:`submit`,className:`w-full py-3 text-[15px] font-semibold`,isLoading:t,children:`Create Account`})})]}),D&&k.length>0&&!g&&(0,G.jsxs)(`div`,{className:`flex items-center gap-3 my-6`,children:[(0,G.jsx)(`span`,{className:`h-[1px] flex-1 bg-[var(--panel-border)]`}),(0,G.jsx)(`span`,{className:`text-[13px] font-medium text-foreground/40`,children:`or`}),(0,G.jsx)(`span`,{className:`h-[1px] flex-1 bg-[var(--panel-border)]`})]}),k.length>0&&(0,G.jsx)(sr,{settings:x,onSignedIn:C,disabled:t,returnTo:`/login`,onPanelChange:_,signInHref:`/login`})]})})}),(0,G.jsxs)(jn,{className:`space-y-2`,children:[e&&(0,G.jsxs)(`p`,{className:`text-[14px] text-foreground/60`,children:[`Registering as something else? `,(0,G.jsx)(q.Link,{to:T,className:`text-accent font-semibold hover:underline ml-1`,children:`Choose again`})]}),(0,G.jsxs)(`p`,{className:Mn,children:[`Already have an account? `,(0,G.jsx)(q.Link,{to:`/login`,className:Nn,children:`Sign in`})]})]})]})})}var Tr=`member`;function Er(e,t){let n=new URLSearchParams(e);return n.set(`as`,t),`/register?${n.toString()}`}function Dr({choices:e,search:t=``}){let r=e.length>3;return(0,G.jsx)(`div`,{className:`flex-1 flex items-center justify-center w-full z-10 px-4 mt-6 mb-8 md:mt-0 md:mb-0 md:pt-8 md:pb-32`,children:(0,G.jsxs)(Dn,{width:r?`max-w-[640px]`:`max-w-[500px]`,children:[(0,G.jsx)(An,{title:`Create an account`,line:`What are you registering as?`}),(0,G.jsxs)(On,{children:[(0,G.jsx)(`div`,{role:`list`,"aria-label":`Register as`,className:`grid gap-3 ${r?`grid-cols-1 sm:grid-cols-2`:`grid-cols-1`}`,children:e.map((i,a)=>{let o=r&&e.length%2==1&&a===e.length-1;return(0,G.jsxs)(q.Link,{role:`listitem`,to:Er(t,i.id),className:`group flex items-center gap-3.5 min-w-0 px-4 py-3.5 rounded-2xl border border-[var(--panel-border)] bg-foreground/[0.02] hover:border-accent/50 hover:bg-foreground/[0.03] active:scale-[0.99] transition-all duration-300 ${o?`sm:col-span-2`:``}`,children:[(0,G.jsx)(n.c,{name:P.u(i.id),className:`w-[18px] h-[18px] shrink-0 text-accent`}),(0,G.jsx)(`span`,{className:`flex-1 min-w-0 text-[14.5px] font-semibold text-foreground leading-snug tracking-tight`,children:n.St(i.id,i.name)}),(0,G.jsx)(u.n,{className:`w-4 h-4 shrink-0 text-foreground/30 group-hover:text-accent group-hover:translate-x-0.5 transition-all`})]},i.id)})}),(0,G.jsx)(`p`,{className:`mt-4 text-[13px] text-foreground/50 text-center leading-relaxed`,children:n.pt})]}),(0,G.jsxs)(jn,{className:`space-y-2`,children:[(0,G.jsxs)(`p`,{className:Mn,children:[`Just want an account?`,(0,G.jsx)(q.Link,{to:Er(t,Tr),className:Nn,children:`Register as a member`})]}),(0,G.jsxs)(`p`,{className:Mn,children:[`Already have an account?`,(0,G.jsx)(q.Link,{to:`/login`,className:Nn,children:`Sign in`})]})]})]})})}function Or({settings:e}){let t=P.l(),[r]=(0,q.useSearchParams)(),i=r.get(`as`),a=n.Lt(e,t),o=i?n.It(e,i,t):null,s=r.has(`preview`)?``:o?.id??``;return(0,W.useEffect)(()=>{e.loading||(s?n.Ct(s):n.bt())},[e.loading,s]),e.loading?(0,G.jsx)(wr,{}):o?(0,G.jsx)(wr,{as:o}):a.length&&!i?(0,G.jsx)(Dr,{choices:a,search:r.toString()}):(0,G.jsx)(wr,{})}function kr(){let e=n.Bt();return!e.loading&&!e.registerAs.on?(n.bt(),(0,G.jsx)(wr,{})):(0,G.jsx)(Or,{settings:e})}function Ar(){let[e,t]=(0,W.useState)(!1),[i,a]=(0,W.useState)(null),[o]=(0,q.useSearchParams)(),s=(0,q.useNavigate)(),[c]=(0,W.useState)(o.get(`email`)||``),[l]=(0,W.useState)(()=>o.get(`sent`)===`1`&&!!o.get(`email`)),[u]=(0,W.useState)(()=>o.get(`from`)||``),f=n.Bt(),{loading:p}=n.Q(),[m,g]=(0,W.useState)(()=>n.rt()?`finishing`:`no`),[_,v]=(0,W.useState)(null),[y,b]=(0,W.useState)(!1),x=()=>{g(`no`),v(null),a(null),s(`/login`,{replace:!0})},{settling:S,signedIn:C}=dr();(0,W.useEffect)(()=>{if(m!==`finishing`||p)return;let e=n.ot();if(!e){g(`asking`);return}let t=!1;return n.it(e).then(()=>{t||C()}).catch(e=>{if(t)return;let n=rr(e);if(n){v(n);return}g(`asking`)}),()=>{t=!0}},[m,p]);let w=async e=>{e.preventDefault(),t(!0),a(null);let i=new FormData(e.currentTarget),o=i.get(`email`),s=i.get(`password`);try{if(!r.yt)throw Error(`Firebase is not initialized. Check your configuration.`);await(0,se.signInWithEmailAndPassword)(r.yt,o,s),C()}catch(e){let r=rr(e);if(r){v(r),t(!1);return}e?.code===`auth/invalid-credential`||e?.code===`auth/user-not-found`||e?.code===`auth/wrong-password`||e?.code===`auth/invalid-login-credentials`?a((0,G.jsxs)(`span`,{children:[`That email and password do not match.`,` `,(0,G.jsx)(q.Link,{to:`/reset-password`,children:`Reset password?`}),E.length>0&&(0,G.jsx)(G.Fragment,{children:` If you first came in with one of the buttons below, use that button instead.`})]})):a((await n.lt(e,`password`,`That did not work. Check your details and try again.`,{email:o})).text),t(!1)}},T=n.Pt(f),E=ar(f),D=l&&E.some(e=>e.id===`emailLink`)?c:``,k=S||m===`finishing`&&!_,A=k?`signing`:_?`step`:m===`asking`?`asking`:f.loading?`loading`:`form`;return(0,G.jsx)(`div`,{className:`flex-1 flex items-center justify-center w-full z-10 px-4 mt-6 mb-8 md:mt-0 md:mb-0 md:pt-8 md:pb-32`,children:(0,G.jsxs)(Dn,{width:`max-w-[480px]`,children:[(0,G.jsx)(An,{title:`Welcome back`,line:`Sign in to Your AI Firebase.`}),i&&(0,G.jsx)(h.t,{className:`mb-5`,children:i}),!i&&l&&!D&&m===`no`&&!S&&(0,G.jsxs)(h.t,{tone:`done`,className:`mb-5`,children:[`We have emailed a sign-in link to `,c,`. Open it on this device and you go straight to your order — or sign in below.`]}),(0,G.jsx)(On,{children:(0,G.jsx)(kn,{show:A,children:k?(0,G.jsx)(ur,{note:m===`finishing`?`One moment — your link checks out.`:void 0}):_?(0,G.jsx)(Ln,{step:_,onSignedIn:C}):m===`asking`?(0,G.jsx)(cr,{email:c,onSignedIn:C,onStartOver:x}):f.loading?(0,G.jsx)(Pn,{}):(0,G.jsxs)(G.Fragment,{children:[T&&!y&&(0,G.jsxs)(`form`,{className:`flex flex-col gap-5`,onSubmit:w,children:[(0,G.jsx)(d.c,{name:`email`,label:`Email`,type:`email`,defaultValue:c,placeholder:`name@example.com`,className:`max-sm:h-11`,required:!0}),(0,G.jsxs)(`div`,{className:`flex flex-col w-full`,children:[(0,G.jsxs)(`div`,{className:`flex justify-between items-baseline mb-1.5 mx-1`,children:[(0,G.jsx)(`label`,{className:`text-[13px] font-medium text-foreground/50 select-none`,children:`Password`}),(0,G.jsx)(q.Link,{to:`/reset-password`,className:`text-[13px] font-semibold text-accent hover:underline`,children:`Forgot Password?`})]}),(0,G.jsx)(d.c,{name:`password`,type:`password`,placeholder:`••••••••`,className:`max-sm:h-11`,required:!0})]}),(0,G.jsx)(`div`,{className:`pt-1`,children:(0,G.jsx)(O.t,{type:`submit`,className:`w-full py-3 text-[15px] font-semibold`,isLoading:e,children:`Sign In`})})]}),T&&E.length>0&&!y&&(0,G.jsxs)(`div`,{className:`flex items-center gap-3 my-6`,children:[(0,G.jsx)(`span`,{className:`h-[1px] flex-1 bg-[var(--panel-border)]`}),(0,G.jsx)(`span`,{className:`text-[13px] font-medium text-foreground/40`,children:`or`}),(0,G.jsx)(`span`,{className:`h-[1px] flex-1 bg-[var(--panel-border)]`})]}),E.length>0&&(0,G.jsx)(sr,{settings:f,onSignedIn:C,disabled:e,returnTo:u?`/login?from=${encodeURIComponent(u)}`:`/login`,onPanelChange:b,sentTo:D})]})})}),(0,G.jsx)(jn,{children:(0,G.jsxs)(`p`,{className:Mn,children:[`New here? `,(0,G.jsx)(q.Link,{to:`/register`,className:Nn,children:`Create account`})]})})]})})}var jr=()=>{if(!r.yt)throw Error(`Firebase is not initialized. Check your configuration.`);return r.yt},Mr=`/confirm-email`,Nr=`address`,Pr=`firebase-os:address-link`;async function Fr(e,t){let n=new URL(Mr,window.location.origin);n.searchParams.set(`for`,t),n.searchParams.set(Nr,e),await(0,se.sendSignInLinkToEmail)(jr(),e,{url:n.toString(),handleCodeInApp:!0})}function Ir(e=window.location.href){let t;try{t=new URL(e).searchParams}catch{return null}let n=String(t.get(`for`)||``).trim(),r=String(t.get(`address`)||``).trim();if(!n||!r)return null;try{if(!(0,se.isSignInWithEmailLink)(jr(),e))return null}catch{return null}return{uid:n,address:r,url:e}}function Lr(e){try{localStorage.setItem(Pr,JSON.stringify(e))}catch{}}function Rr(){try{let e=localStorage.getItem(Pr);if(!e)return null;let t=JSON.parse(e);return t?.uid&&t?.address&&t?.url?t:null}catch{return null}}var zr=e=>!!e&&Rr()?.uid===e;function Br(){try{localStorage.removeItem(Pr)}catch{}}async function Vr(e){let t=r.yt?.currentUser??null;if(!t)return`signInFirst`;if(t.uid!==e.uid)return`wrongAccount`;if((t.email||``).toLowerCase()===e.address.toLowerCase()&&t.emailVerified)return`confirmed`;try{await(0,se.linkWithCredential)(t,se.EmailAuthProvider.credentialWithLink(e.address,e.url))}catch(e){let t=e?.code||``;return t===`auth/provider-already-linked`?`confirmed`:t===`auth/email-already-in-use`||t===`auth/credential-already-in-use`?`takenElsewhere`:t===`auth/invalid-action-code`||t===`auth/expired-action-code`||t===`auth/invalid-email`||t===`auth/argument-error`?`spent`:(console.warn(`The address could not be added to this sign-in.`,e),`failed`)}try{await t.getIdToken(!0)}catch{}try{await t.reload()}catch{}return`confirmed`}var Hr=5e3;function Ur(e,{done:t}={}){let n=!1,i=!1,a=0,o=window.setInterval(()=>{a+=1;let e=Hr/1e3*a;if(e>900){window.clearInterval(o);return}e>120&&e%30!=0||c()},Hr),s=()=>{n=!0,window.clearInterval(o),document.removeEventListener(`visibilitychange`,c),window.removeEventListener(`focus`,c)};async function c(){let a=r.yt?.currentUser;if(!(n||i||t?.()||document.hidden||!a)){i=!0;try{if(await a.reload(),n||!a.emailVerified)return;s(),await e()}catch{}finally{i=!1}}}return document.addEventListener(`visibilitychange`,c),window.addEventListener(`focus`,c),s}function Wr(e,t,n){let r=(0,W.useRef)(t),i=(0,W.useRef)(n);(0,W.useEffect)(()=>{r.current=t,i.current=n}),(0,W.useEffect)(()=>{if(e)return Ur(()=>r.current(),{done:()=>i.current?.()===!0})},[e])}var Gr=e=>`fbos_after_verify_${e}`,Kr=e=>e&&/^\/(?![/\\])/.test(e)?e:null;function qr(e,t){let n=Kr(t);if(!(!e||!n))try{sessionStorage.setItem(Gr(e),n)}catch{}}function Jr(e){if(!e)return null;try{let t=sessionStorage.getItem(Gr(e));return sessionStorage.removeItem(Gr(e)),Kr(t)}catch{return null}}function Yr(){let{user:e,profile:t,refreshUser:i,signOut:a}=n.Q(),s=(0,q.useNavigate)(),[c,l]=(0,W.useState)(!1),[u,d]=(0,W.useState)(!1),[f,p]=(0,W.useState)(``),[m,g]=(0,W.useState)(!1),[_,v]=(0,W.useState)(!1),y=!o.h(e),b=y?e?.email||``:o.g(e,t),x=(()=>{let t=(e?.providerData||[]).map(e=>e?.providerId).filter(Boolean);if(!t.length||t.includes(`password`))return``;let r=n.wt.find(e=>e.providerId&&e.providerId!==`password`&&t.includes(e.providerId));return r&&r.id!==`phone`?r.label:``})(),S=y&&!b;(0,W.useEffect)(()=>{if(!y||!e||S)return;let t=!1;return n.Ut(e).then(e=>{!t&&e===`failed`&&p(`We could not send the link just now. Press Resend below to try again.`)}),()=>{t=!0}},[y,S,e?.uid]);let C=(0,W.useRef)(!1),w=async()=>{if(C.current)return;C.current=!0;let t=e?.uid||r.yt.currentUser?.uid||``,a=Jr(t);try{await r.yt.currentUser?.getIdToken(!0),a&&t&&(l(!0),await n.vn(t)),await i()}catch(e){throw C.current=!1,a&&t&&qr(t,a),l(!1),e}s(a||`/dashboard?registered=1`)};Wr(y&&!S,w,()=>C.current);let T=()=>s(N.h(t)?`/dashboard?${N.n}=1`:`/dashboard`,{replace:!0}),E=async()=>{l(!0),p(``);let e=!1;try{if(!r.yt.currentUser)return;if(await r.yt.currentUser.reload(),!y){await i();let e=o.g(r.yt.currentUser,t);p(e?`Not yet — open the link we sent to ${e}, and it is done. Nothing else is waiting on it.`:`Your email is confirmed.`);return}if(!r.yt.currentUser.emailVerified){p(`Not yet — open the link in the email first, then press this. Check your spam folder if it has not arrived.`);return}await w(),e=!0}catch{p(`We could not check just now. Make sure you are online and try again.`)}finally{e||l(!1)}},D=async()=>{if(e&&!S){d(!0),p(``);try{y?(await(0,se.sendEmailVerification)(e),n.Gt(e.uid)):await Fr(b,e.uid),p(`Verification email sent! Please check your inbox.`)}catch(e){e?.code===`auth/too-many-requests`?p(`Failed to resend: please wait a minute before trying again.`):p(`Failed to resend. ${(await n.lt(e,`password`,`Check your connection and try again in a moment.`)).text}`)}finally{d(!1)}}},k=f.includes(`Failed`)||f.includes(`could not`)||f.includes(`not verified`)||f.includes(`wrong`)||f.startsWith(`Not yet`);return(0,G.jsxs)(`div`,{className:`flex-1 flex items-center justify-center w-full z-10 px-4 mb-16`,children:[(0,G.jsxs)(Dn,{width:`max-w-[480px]`,className:`text-center`,children:[(0,G.jsx)(An,{as:`h1`,className:`mb-6 sm:mb-8`,title:S?`No address to verify`:`Verify your email`,line:S?(0,G.jsxs)(G.Fragment,{children:[x||`The way you signed in`,` did not give us an email address, so there is nothing here to send a link to and nothing to verify. An address is the one thing this app cannot do without: everything behind this screen is shut until it has one.`,x?(0,G.jsxs)(G.Fragment,{children:[` If this app is yours, it is one tick in your `,x,` setup — the setting that asks for the person's email address — and everybody who signs in after it arrives with one.`]}):(0,G.jsx)(G.Fragment,{children:` If this app is yours, the way in you used has to be set to ask for an email address.`}),` `,`Until then, sign in with an email address instead.`]}):y?(0,G.jsxs)(G.Fragment,{children:[x&&(0,G.jsxs)(G.Fragment,{children:[x,` signed you in, but it did not confirm your address — so we are checking it is yours. `]}),`We've sent a verification link to `,(0,G.jsx)(`span`,{className:`font-semibold text-foreground`,children:b}),`. Please check your inbox (and spam folder) to verify your account and access your dashboard.`]}):(0,G.jsxs)(G.Fragment,{children:[`We've sent a link to `,(0,G.jsx)(`span`,{className:`font-semibold text-foreground`,children:b}),`. Opening it adds the address to your sign-in, so you can use it to sign in as well as your phone — and you stay signed in here either way. Nothing is waiting on it: you can do this whenever you like.`]})}),(0,G.jsxs)(On,{className:`flex flex-col gap-3 max-w-[360px] mx-auto`,children:[f&&(0,G.jsx)(h.t,{tone:k?`error`:`done`,children:f}),S?(0,G.jsx)(O.t,{variant:`primary`,onClick:()=>a(),className:`w-full py-3 text-[14px] font-semibold`,children:`Sign out`}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(O.t,{variant:`primary`,onClick:E,isLoading:c,className:`w-full py-3 text-[14px] font-semibold`,children:`I've verified my email`}),(0,G.jsx)(O.t,{variant:`ghost`,onClick:D,isLoading:u,className:`w-full py-2.5 text-[14px] font-medium`,children:`Resend verification link`}),(0,G.jsx)(O.t,{variant:`ghost`,onClick:()=>y?g(!0):s(`/profile`),className:`w-full py-2 text-[13px] font-medium`,children:`Change my email address`}),!y&&(0,G.jsx)(O.t,{variant:`ghost`,onClick:T,className:`w-full py-2 text-[13px] font-medium`,children:`Skip for now`})]})]})]}),(0,G.jsx)(re.t,{isOpen:m,title:`Start again with another address?`,message:xr(b),confirmText:`Yes, start again`,cancelText:`Keep this address`,isProcessing:_,onCancel:()=>g(!1),onConfirm:async()=>{v(!0),await Cr(r.yt.currentUser||e)}})]})}var Xr={confirmed:{title:`Email confirmed`,body:`Your address is on your account now, and you can sign in with it as well as your phone.`},signInFirst:{title:`Nearly there`,body:`You opened this link in a browser you are not signed in on. Sign in and it finishes by itself — you will not need the link again.`},wrongAccount:{title:`That is a different account`,body:`This link adds an address to another account. Sign out here and sign back in as the person who asked for it — the link is kept, and it finishes by itself once they are in.`},takenElsewhere:{title:`That address is already in use`,body:`Another account here already has it. Give a different address on your profile, or sign in with the account that has this one.`},spent:{title:`That link has expired`,body:`Links can only be opened once, and they do not last for ever. Ask for a new one and it will come straight through.`},failed:{title:`That did not work`,body:`Check your connection and try again. If it keeps happening, ask for a new link.`}},Zr=e=>({title:`Email verified`,body:`${e} is confirmed. You can sign in with it now as well as your phone.`,link:`/profile`});function Qr(){let{user:e,loading:t,refreshUser:r,signOut:i}=n.Q(),a=(0,q.useNavigate)(),[o,s]=(0,W.useState)(null),c=(0,W.useRef)(null),l=(0,W.useRef)(!1);(0,W.useEffect)(()=>{if(t||l.current)return;let n=Ir()??Rr();if(!n){s(`spent`),l.current=!0;return}if(c.current=n,!e){Lr(n),s(`signInFirst`);return}l.current=!0;let i=!1;return Vr(n).then(async e=>{i||(e===`confirmed`&&(Br(),await L.a(n.uid,Zr(n.address)),await r().catch(()=>{})),e===`wrongAccount`?Lr(n):e!==`signInFirst`&&Br(),s(e))}),()=>{i=!0}},[t,e?.uid]);let u=o?Xr[o]:null,d=o===`confirmed`;return(0,G.jsx)(`div`,{className:`flex-1 flex items-center justify-center w-full z-10 px-4 mt-6 mb-8 md:mt-0 md:mb-0 md:pt-8 md:pb-32`,children:(0,G.jsx)(Dn,{width:`max-w-[480px]`,className:`text-center`,children:(0,G.jsx)(kn,{show:o??`working`,children:u?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(An,{as:`h1`,className:`mb-6 sm:mb-8`,title:u.title,line:u.body}),(0,G.jsxs)(On,{className:`flex flex-col gap-3 max-w-[360px] mx-auto`,children:[o===`signInFirst`?(0,G.jsx)(O.t,{variant:`primary`,onClick:()=>a(`/login?from=${encodeURIComponent(Mr)}`),className:`w-full py-3 text-[14px] font-semibold`,children:`Sign in to finish`}):o===`wrongAccount`?(0,G.jsx)(O.t,{variant:`primary`,onClick:()=>i(),className:`w-full py-3 text-[14px] font-semibold`,children:`Sign out`}):(0,G.jsx)(O.t,{variant:`primary`,onClick:()=>a(e?`/dashboard`:`/`),className:`w-full py-3 text-[14px] font-semibold`,children:d?`Carry on`:`Back to the app`}),o===`takenElsewhere`&&e&&(0,G.jsx)(O.t,{variant:`ghost`,onClick:()=>a(`/profile`),className:`w-full py-2.5 text-[14px] font-medium`,children:`Use a different address`}),o===`spent`&&e&&(0,G.jsx)(O.t,{variant:`ghost`,onClick:()=>a(`/verify`),className:`w-full py-2.5 text-[14px] font-medium`,children:`Send me a new link`}),o===`failed`&&(0,G.jsx)(O.t,{variant:`ghost`,onClick:()=>window.location.reload(),className:`w-full py-2.5 text-[14px] font-medium`,children:`Try again`})]})]}):(0,G.jsxs)(`div`,{"aria-busy":`true`,className:`py-6 flex flex-col items-center gap-4`,children:[(0,G.jsx)(k.t,{}),(0,G.jsx)(`p`,{className:`text-[14px] font-medium text-foreground/70`,children:`Confirming your email…`})]})})})})}var $r=`user_phoneclaims`,ei=`That number is already set up on another account. A phone number can only be used once here — use a different one, or take it off the other account first.`;async function ti(e){let t=String(e||``).replace(/[^\d+]/g,``);if(!t)return null;let n=globalThis.crypto?.subtle;if(!n)return null;try{let e=await n.digest(`SHA-256`,new TextEncoder().encode(t));return Array.from(new Uint8Array(e)).map(e=>e.toString(16).padStart(2,`0`)).join(``)}catch{return null}}async function ni(e){let t=await ti(e);if(!t)return!0;try{return await(0,K.getDoc)((0,K.doc)(r.bt,$r,t)),!0}catch(e){return e?.code!==`permission-denied`}}var ri=`phoneClaim`;async function ii(e,t){let n=await ti(e);if(!n||!t)return!0;try{await(0,K.setDoc)((0,K.doc)(r.bt,$r,n),{uid:t,createdAt:Date.now()})}catch(e){return e?.code!==`permission-denied`}try{await(0,K.setDoc)((0,K.doc)(r.bt,`user_profiles`,t),{[ri]:n},{merge:!0})}catch{}return!0}async function ai(e,t){let n=String(t??``).trim();if(n){try{await(0,K.deleteDoc)((0,K.doc)(r.bt,$r,n))}catch{}if(e)try{await(0,K.setDoc)((0,K.doc)(r.bt,`user_profiles`,e),{[ri]:``},{merge:!0})}catch{}}}var oi=r._t(()=>Promise.resolve().then(()=>require(`./PhoneInputField-C9Lv_QGM.cjs`)));function si({onDone:e,doneWords:t=`Turn it on`}){let{user:i,refreshUser:a}=n.Q(),[o,s]=(0,W.useState)(``),[c,l]=(0,W.useState)(``),[d,f]=(0,W.useState)(``),[p,m]=(0,W.useState)(!1),[h,g]=(0,W.useState)(null),_=(0,W.useRef)(null),v=async(e,t)=>{g(await n.lt(e,`sms2fa`,t))},y=async()=>{if(i){g(null),m(!0);try{if(f(``),!await ni(o.trim())){g({text:ei});return}l(await er(i,o.trim(),_.current))}catch(e){await v(e,`That code could not be sent. Check the number and try again.`)}finally{m(!1)}}};return(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`div`,{ref:_}),h&&(0,G.jsx)(Fn,{problem:h}),c?(0,G.jsxs)(r.k.form,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.2},onSubmit:async t=>{if(t.preventDefault(),!i)return;g(null),m(!0);let n=!Hn(i);try{if(await tr(i,c,d.trim()),!await ii(o.trim(),i.uid)){n&&await nr(i).catch(()=>{}),await a(),g({text:ei}),l(``),f(``);return}await a(),e()}catch(e){await v(e,`That code could not be checked. Ask for a new one.`)}finally{m(!1)}},className:`space-y-3`,children:[(0,G.jsxs)(`p`,{className:`text-[13px] text-foreground/60 font-medium leading-relaxed`,children:[`We texted a code to `,(0,G.jsx)(`span`,{className:`font-bold text-foreground/80`,children:o}),`.`]}),(0,G.jsx)(In,{value:d,onChange:f,autoFocus:!0}),(0,G.jsxs)(O.t,{type:`submit`,isLoading:p,className:`w-full py-2.5 sm:py-3 text-[15px] font-bold tracking-wide rounded-xl`,children:[t,` `,(0,G.jsx)(r.et,{className:`ml-2 w-4 h-4 shrink-0`})]}),(0,G.jsxs)(`div`,{className:`flex items-center justify-center gap-3 text-[13px] font-bold`,children:[(0,G.jsx)(`button`,{type:`button`,onClick:y,disabled:p,className:`text-accent hover:underline disabled:opacity-40 disabled:no-underline cursor-pointer disabled:cursor-default`,children:`Send it again`}),(0,G.jsx)(`span`,{className:`w-[1px] h-3.5 bg-[var(--panel-border)]`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>{l(``),f(``),g(null)},className:`text-foreground/50 hover:text-accent transition-colors cursor-pointer`,children:`Use a different number`})]})]}):(0,G.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault(),await y()},className:`space-y-3`,children:[(0,G.jsx)(W.Suspense,{fallback:(0,G.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl`}),children:(0,G.jsx)(oi,{field:{label:`Your phone number`,required:!0,placeholder:`7700 900123`},value:o,onChange:s})}),(0,G.jsxs)(O.t,{type:`submit`,isLoading:p,className:`w-full py-2.5 sm:py-3 text-[15px] font-bold tracking-wide rounded-xl`,children:[`Text me a code `,(0,G.jsx)(u.n,{className:`ml-2 w-4 h-4 shrink-0`})]})]})]})}function ci(){let{user:e,signOut:t}=n.Q(),r=n.Bt(),i=(0,q.useNavigate)(),a=r.twoStepOptional;return(0,G.jsx)(`div`,{className:`flex-1 flex items-center justify-center w-full z-10 px-4 mt-6 mb-8 md:mt-0 md:mb-0 md:pt-8 md:pb-32`,children:(0,G.jsxs)(Dn,{width:`max-w-[480px]`,children:[(0,G.jsx)(An,{title:a?`Make your account safer`:`One more step`,line:a?`Give us a number and we will text you a code when you sign in, as well as asking for your password. You can do this later if you would rather.`:`This app asks for a code by text as well as your password. Give us a number once, and from now on we will text you a code when you sign in.`}),(0,G.jsx)(On,{children:(0,G.jsx)(si,{onDone:()=>i(`/dashboard`,{replace:!0}),doneWords:`Turn it on`})}),a&&(0,G.jsx)(On,{children:(0,G.jsx)(O.t,{variant:`secondary`,onClick:()=>{e?.uid&&qn(e.uid),i(`/dashboard`,{replace:!0})},className:`mt-3 w-full py-2.5 text-[14px] font-semibold`,children:`Not now`})}),(0,G.jsx)(jn,{children:(0,G.jsx)(O.t,{variant:`ghost`,onClick:()=>t(),className:`w-full py-2 text-[13px] font-semibold`,children:`Sign out`})})]})})}var li=r._t(()=>Promise.resolve().then(()=>require(`./PhoneInputField-C9Lv_QGM.cjs`))),ui=r._t(()=>Promise.resolve().then(()=>require(`./AddressField-DagGSeja.cjs`))),di=`text-[13px] font-medium text-foreground/50 select-none mb-1.5 ml-1`;function fi({field:e,value:t}){return(0,G.jsxs)(`div`,{className:`flex flex-col w-full relative`,children:[(0,G.jsxs)(`label`,{className:`${di} flex items-center gap-1.5`,children:[e.label,(0,G.jsx)(v.t,{className:`w-3 h-3 text-foreground/35 shrink-0`})]}),(0,G.jsx)(`div`,{"aria-label":e.label,"aria-readonly":`true`,className:`flex items-center h-12 w-full px-4 text-[15px] text-foreground/55 glass-panel opacity-70 cursor-not-allowed truncate`,style:{borderRadius:`var(--input-radius, 0.75rem)`},children:t}),(0,G.jsx)(`p`,{className:`text-[11px] text-foreground/40 mt-1.5 px-2 font-medium`,children:`Given when you registered, and fixed from then on.`})]})}function pi({fields:e,values:t,errors:n={},profile:i=null,disabled:a=!1,onChange:o,onCommit:s}){let c=(e,t)=>{for(let[n,r]of Object.entries(j.r(e,t)))o(n,r)},l=e=>!e.currentTarget.contains(e.relatedTarget),u=e=>s?.(e);return e.length?(0,G.jsx)(G.Fragment,{children:e.map(e=>{let s=t[e.key],f=n[e.key];return N.m(i,e)?(0,G.jsx)(fi,{field:e,value:N.a(i,e)},e.key):e.type===`tel`?(0,G.jsx)(`div`,{className:`w-full`,onBlur:t=>{l(t)&&u(e.key)},children:(0,G.jsx)(W.Suspense,{fallback:(0,G.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl`}),children:(0,G.jsx)(li,{field:e,value:String(s||``),onChange:t=>o(e.key,t)})})},e.key):e.type===`address`?(0,G.jsx)(`div`,{className:`w-full`,onBlur:t=>{l(t)&&u(e.key)},children:(0,G.jsx)(W.Suspense,{fallback:(0,G.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl`}),children:(0,G.jsx)(ui,{id:`reg-${e.key}`,label:e.label,required:e.required,disabled:a,placeholder:e.placeholder,error:f,value:j.i(e.key,t),onChange:t=>c(e.key,t)})})},e.key):e.type===`textarea`?(0,G.jsx)(d.s,{id:`reg-${e.key}`,label:e.label,"aria-label":e.label,disabled:a,placeholder:e.placeholder,value:String(s||``),onChange:t=>o(e.key,t.target.value),onBlur:()=>u(e.key),error:f},e.key):e.type===`select`?(0,G.jsxs)(`div`,{className:`w-full`,children:[(0,G.jsx)(r.w,{label:e.label,ariaLabel:e.label,direction:`auto`,disabled:a,value:String(s||``),options:[{value:``,label:(0,G.jsx)(`span`,{className:`text-foreground/40`,children:`Select an option...`})},...(e.options||[]).map(t=>({value:t,label:N.c(e,t)}))],onChange:t=>{o(e.key,t),u(e.key)}}),f&&(0,G.jsx)(`p`,{className:`text-xs text-red-500 font-medium mt-1`,children:f})]},e.key):e.type===`checkbox`?(0,G.jsxs)(`div`,{className:`w-full`,children:[(0,G.jsxs)(`label`,{className:`flex items-center gap-3 w-full cursor-pointer group py-2`,children:[(0,G.jsxs)(`div`,{className:`relative flex items-center justify-center w-5 h-5 rounded border border-foreground/20 bg-background/50 group-hover:border-accent transition-colors shrink-0`,children:[(0,G.jsx)(`input`,{type:`checkbox`,"aria-label":e.label,disabled:a,checked:s===!0,onChange:t=>{o(e.key,t.target.checked),u(e.key)},className:`absolute opacity-0 w-full h-full cursor-pointer`}),s===!0&&(0,G.jsx)(`span`,{className:`w-2.5 h-2.5 bg-accent rounded-sm shrink-0`})]}),(0,G.jsx)(`span`,{className:`text-[14px] font-medium text-foreground/80 leading-snug group-hover:text-foreground transition-colors`,children:e.label})]}),f&&(0,G.jsx)(`p`,{className:`text-xs text-red-500 font-medium`,children:f})]},e.key):(0,G.jsx)(d.c,{label:e.label,"aria-label":e.label,type:e.type===`number`?`number`:e.type,disabled:a,placeholder:e.placeholder,error:f,className:`max-sm:h-11`,value:String(s??``),onChange:t=>o(e.key,t.target.value),onBlur:()=>u(e.key)},e.key)})}):null}var mi=e=>/^[^@\s]+@[^@\s.]+\.[^@\s]+$/.test(e.trim());function hi(){let{user:e,userRole:t,profile:i,signOut:a,refreshUser:s}=n.Q(),c=n.Bt(),l=(0,q.useNavigate)(),f=c.finishRegistration,p=o.A(t)?[]:N.l(i,f),[m,g]=(0,W.useState)(()=>N.o(p,i)),[_,v]=(0,W.useState)({}),[y,b]=(0,W.useState)(``),[x,S]=(0,W.useState)(!1),[C,w]=(0,W.useState)(!1);(0,W.useEffect)(()=>{g(N.o(p,i))},[p.map(e=>e.key).join(`|`)]);let T=N._(i),E=T.includes(`name`),D=T.includes(`email`),[k,A]=(0,W.useState)(``),[j,ee]=(0,W.useState)(``),[M,P]=(0,W.useState)(``),[F,te]=(0,W.useState)(``),I=n.xt(i),L=T.length+p.filter(e=>!N.p(i,e)).length,R=T.length+N.g(p,i).length>0?L===1?`There is one thing we still need before you go on.`:`There are a few things we still need before you go on.`:L===0?`Just check these over before you go on.`:L===1?`One question before you go on — it is not required.`:`A few questions before you go on — none of them is required.`,ne=(e=!1)=>l(e?`/verify`:N.h(i)?`/dashboard?${N.n}=1`:`/dashboard`,{replace:!0}),re=async t=>{if(t.preventDefault(),!e)return;b(``);let n=E&&!k.trim()?`Please tell us what to call you.`:``,a=D?j.trim()?mi(j)?``:`That does not look like an email address.`:`Please give us an email address.`:``;P(n),te(a);let o=N.i(p,m);if(v(o),n||a||Object.keys(o).length){b(`There is something to check below.`);return}S(!0);try{let t={};E&&(t.displayName=k.trim()),D&&(t.email=j.trim()),await(0,K.setDoc)((0,K.doc)(r.bt,`user_profiles`,e.uid),{...N.s(p,m,i),...t,...N.d()},{merge:!0}),E&&r.yt.currentUser&&(0,se.updateProfile)(r.yt.currentUser,{displayName:k.trim()}).then(()=>s()).catch(()=>{});let n=!1;D&&r.yt.currentUser&&(n=await Fr(j.trim(),r.yt.currentUser.uid).then(()=>!0).catch(e=>(console.warn(`The confirmation link could not be sent to the new address.`,e),!0))),ne(n)}catch(e){b(e?.code===`permission-denied`?`That could not be saved. Check that your email address is verified and that your account is still switched on.`:`That could not be saved. Check your connection and try again.`)}finally{S(!1)}},ie=async()=>{e&&(w(!0),N.C(e.uid),await(0,K.setDoc)((0,K.doc)(r.bt,`user_profiles`,e.uid),N.d(),{merge:!0}).catch(()=>{}),ne())},z=x||C;return(0,G.jsx)(`div`,{className:`flex-1 flex items-center justify-center w-full z-10 px-4 mt-6 mb-8 md:mt-0 md:mb-0 md:pt-8 md:pb-32`,children:(0,G.jsxs)(Dn,{width:`max-w-[500px]`,children:[(0,G.jsx)(An,{title:(0,G.jsx)(gi,{request:I}),line:!c.loading&&(0,G.jsxs)(G.Fragment,{children:[R,I&&` Your registration goes to an admin for approval. Until then everything works as usual.`]})}),y&&(0,G.jsx)(h.t,{className:`mb-5`,children:y}),c.loading?(0,G.jsx)(Pn,{}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`form`,{className:`flex flex-col gap-5`,onSubmit:re,noValidate:!0,children:[(E||D||p.length>0)&&(0,G.jsxs)(On,{className:`flex flex-col gap-5`,children:[E&&(0,G.jsx)(d.c,{name:`displayName`,label:`Your name`,type:`text`,placeholder:`Alex Taylor`,className:`max-sm:h-11`,value:k,onChange:e=>{A(e.target.value),M&&P(``)},error:M,autoFocus:!0,required:!0}),D&&(0,G.jsx)(d.c,{name:`email`,label:`Your email`,type:`email`,placeholder:`name@example.com`,className:`max-sm:h-11`,value:j,onChange:e=>{ee(e.target.value),F&&te(``)},error:F,autoFocus:!E,required:!0}),(0,G.jsx)(pi,{fields:p,values:m,errors:_,profile:i,disabled:z,onChange:(e,t)=>{g(n=>({...n,[e]:t})),v(t=>t[e]?{...t,[e]:``}:t)}})]}),(0,G.jsx)(On,{className:`pt-1`,children:(0,G.jsxs)(O.t,{type:`submit`,isLoading:x,disabled:C,className:`w-full py-3 text-[15px] font-semibold`,children:[`Finish registration `,(0,G.jsx)(u.n,{className:`w-4 h-4 shrink-0`})]})})]}),f.skippable&&T.length===0&&(0,G.jsx)(On,{children:(0,G.jsx)(O.t,{variant:`secondary`,onClick:ie,isLoading:C,disabled:x,className:`mt-3 w-full py-2.5 text-[14px] font-semibold`,children:`Skip for now`})})]}),(0,G.jsx)(jn,{children:(0,G.jsx)(O.t,{variant:`ghost`,onClick:()=>a(),className:`w-full py-2 text-[13px] font-semibold`,children:`Sign out`})})]})})}function gi({request:e}){return e?(0,G.jsx)(_i,{request:e}):(0,G.jsx)(G.Fragment,{children:N.u(null,``)})}function _i({request:e}){let t=P.l();return(0,G.jsx)(G.Fragment,{children:N.u(e,n.jr(e.role,t))})}var vi=e=>({creatorName:e?.displayName||e?.email?.split(`@`)[0]||``,creatorAvatar:e?.photoURL||``}),yi=e=>{let{creatorName:t,creatorAvatar:n}=vi(e);return{editedUid:e?.uid||``,editedName:t,editedAvatar:n,editedAt:Date.now()}},bi=(e,t,n)=>{let r={},i=String(e.creatorEmail||``);return e.uid===t.uid&&!e.sourceId&&(!i||i===t.email||n.was&&e.creatorName===n.was)&&(n.name&&e.creatorName!==n.name&&(r.creatorName=n.name),n.avatar!==void 0&&(e.creatorAvatar||``)!==n.avatar&&(r.creatorAvatar=n.avatar)),e.editedUid===t.uid&&(n.name&&n.was&&e.editedName===n.was&&(r.editedName=n.name),n.avatar!==void 0&&t.name&&e.editedName===t.name&&(e.editedAvatar||``)!==n.avatar&&(r.editedAvatar=n.avatar)),Object.keys(r).length?r:null},xi=(e,t)=>{if(e?.creatorName)return{name:e.creatorName,avatar:e.creatorAvatar||``};if(e?.uid&&t?.uid&&e.uid===t.uid){let e=vi(t);return e.creatorName?{name:e.creatorName,avatar:e.creatorAvatar}:null}return null};function Si(){let{user:e,profile:t,refreshUser:i}=n.Q(),a=n.Bt(),[o,s]=(0,W.useState)(!1),[c,l]=(0,W.useState)(!1),[u,d]=(0,W.useState)(null),[f,p]=(0,W.useState)(!1),m=a.on.sms2fa;if(a.loading||!Xn(e,m))return null;let h=Hn(e),g=Un(e);return(0,G.jsxs)(`div`,{className:`glass-panel w-full p-5 sm:p-8 rounded-3xl border border-[var(--panel-border)] shadow-2xl`,children:[(0,G.jsxs)(`div`,{className:`flex items-start gap-3 sm:gap-4`,children:[(0,G.jsx)(`div`,{className:`w-9 h-9 shrink-0 rounded-xl glass-panel border border-[var(--panel-border)] flex items-center justify-center`,children:(0,G.jsx)(S.t,{className:`w-[18px] h-[18px] text-accent`})}),(0,G.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,G.jsx)(`h3`,{className:`text-[16px] font-bold text-foreground mb-1`,children:`Two-step sign-in`}),(0,G.jsx)(`p`,{className:`text-[13px] text-foreground/50 font-medium leading-relaxed`,children:h?`We text you a code when you sign in, as well as asking for your password.`:m?`This app asks for a code by text as well as your password. Add the number that should get it.`:`Add a phone number and we will text you a code when you sign in, as well as asking for your password.`})]})]}),(0,G.jsxs)(`div`,{className:`mt-5`,children:[u&&(0,G.jsx)(Fn,{problem:u}),f&&!u&&(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:-6},animate:{opacity:1,y:0},className:`mb-4 p-3 rounded-xl border border-accent/20 bg-accent/10 text-accent flex items-center gap-2`,children:[(0,G.jsx)(r.et,{className:`w-4 h-4 shrink-0`}),(0,G.jsx)(`span`,{className:`text-[13.5px] font-semibold tracking-wide`,children:`Two-step sign-in is on. We will text that number next time you sign in.`})]}),h?(0,G.jsxs)(`div`,{className:`flex flex-col sm:flex-row sm:items-center gap-3 justify-between rounded-2xl border border-[var(--panel-border)]/60 p-3.5`,children:[(0,G.jsxs)(`div`,{className:`min-w-0`,children:[(0,G.jsx)(`p`,{className:`text-[11px] font-bold uppercase tracking-[0.2em] text-foreground/40 mb-1`,children:`Your number`}),(0,G.jsx)(`p`,{className:`text-[15px] font-bold text-foreground truncate`,children:g||`Set up`})]}),(0,G.jsxs)(`button`,{type:`button`,onClick:()=>s(!0),className:`inline-flex items-center justify-center gap-1.5 h-9 px-3 rounded-xl border border-[var(--panel-border)] text-[13px] font-bold text-foreground/60 hover:text-red-500 hover:border-red-500/40 transition-colors cursor-pointer shrink-0`,children:[(0,G.jsx)(w.t,{className:`w-3.5 h-3.5 shrink-0`}),`Take it off`]})]}):(0,G.jsx)(si,{onDone:()=>{p(!0),d(null)}})]}),(0,G.jsx)(re.t,{isOpen:o,title:`Take two-step sign-in off?`,message:m?`This app asks for a texted code, so you will be asked for a number again straight away. That is how you change the number you gave.`:`You will sign in with your password alone from then on.`,confirmText:`Take it off`,isProcessing:c,onConfirm:async()=>{if(e){d(null),l(!0);try{await nr(e),await ai(e.uid,t?.[ri]),await i(),p(!1),s(!1)}catch(e){d(await n.lt(e,`sms2fa`,`That could not be taken off. Try again.`)),s(!1)}finally{l(!1)}}},onCancel:()=>s(!1)})]})}function Ci(){let{user:e,profile:t}=n.Q(),i=N.l(t,n.Bt().finishRegistration),[a,o]=(0,W.useState)(()=>N.o(i,t)),[s,c]=(0,W.useState)({}),[l,u]=(0,W.useState)(``),[d,f]=(0,W.useState)(!1),[p,g]=(0,W.useState)(null),_=(0,W.useRef)(a),v=e=>{_.current=e,o(e)};if((0,W.useEffect)(()=>{v(N.o(i,t))},[i.map(e=>`${e.key}:${String(t?.[e.key]??``)}`).join(`|`)]),!i.length)return null;let y=e=>Object.entries(e).every(([e,n])=>(t?.[e]??``)===n);return(0,G.jsxs)(`div`,{className:`glass-panel w-full p-5 sm:p-8 rounded-3xl border border-[var(--panel-border)] shadow-2xl`,children:[(0,G.jsxs)(`div`,{className:`flex items-start gap-3 sm:gap-4`,children:[(0,G.jsx)(`div`,{className:`w-9 h-9 shrink-0 rounded-xl glass-panel border border-[var(--panel-border)] flex items-center justify-center`,children:(0,G.jsx)(m.n,{className:`w-[18px] h-[18px] text-accent`})}),(0,G.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3 mb-1`,children:[(0,G.jsx)(`h3`,{className:`text-[16px] font-bold text-foreground`,children:`Your details`}),(0,G.jsx)(n.S,{saving:d,savedAt:p})]}),(0,G.jsx)(`p`,{className:`text-[13px] text-foreground/50 font-medium leading-relaxed`,children:`Change what you like — each one saves itself. Anything with a padlock was fixed when you gave it.`})]})]}),(0,G.jsxs)(`div`,{className:`mt-5 flex flex-col gap-4`,children:[l&&(0,G.jsx)(h.t,{children:l}),(0,G.jsx)(pi,{fields:i,values:a,errors:s,profile:t,onChange:(e,t)=>{v({..._.current,[e]:t}),c(t=>t[e]?{...t,[e]:``}:t)},onCommit:async n=>{let a=i.find(e=>e.key===n);if(!e||!a||N.m(t,a))return;let o=N.r(a,_.current[n]);if(c(e=>e[n]===o?e:{...e,[n]:o}),o)return;let s=N.s([a],_.current,t);if(!(!Object.keys(s).length||y(s))){u(``),f(!0);try{await(0,K.setDoc)((0,K.doc)(r.bt,`user_profiles`,e.uid),s,{merge:!0}),g(Date.now())}catch(e){u(e?.code===`permission-denied`?`That could not be saved. Check that your account is still switched on.`:`That could not be saved. Check your connection and try again.`)}finally{f(!1)}}}})]})]})}var wi=20,Ti=()=>{try{let e=localStorage.getItem(`fbos_nav_tabs`);if(!e)return null;let t=JSON.parse(e);return t&&typeof t==`object`?Object.entries(t):null}catch{return null}},Ei=async()=>(await(0,K.getDocs)((0,K.collection)(r.bt,`sys_tabs`))).docs.map(e=>[e.id,e.data()]);function Di(){let{user:e,profile:t,refreshUser:a,isInternal:s}=n.Q(),[c,l]=(0,W.useState)(e?.displayName||``),[u,f]=(0,W.useState)(e?.email||t?.email||``),[p,m]=(0,W.useState)(e?.photoURL||``),[g,v]=(0,W.useState)(``),[y,b]=(0,W.useState)(``),[S,C]=(0,W.useState)(``),[T,E]=(0,W.useState)(!1),[D,O]=(0,W.useState)(!1),[k,j]=(0,W.useState)(null),[ee,M]=(0,W.useState)(``),[N,P]=(0,W.useState)(!1),[F,te]=(0,W.useState)(null),[I,L]=(0,W.useState)(``),R=W.default.useRef(null),[ne,re]=(0,W.useState)(!1),[ie,z]=(0,W.useState)(null),[B,ae]=(0,W.useState)(``),[V,H]=(0,W.useState)(!1),[oe,U]=(0,W.useState)(null),[q,J]=(0,W.useState)(``);W.default.useEffect(()=>{l(e?.displayName||t?.displayName||``)},[e?.uid,e?.displayName,t?.displayName]),W.default.useEffect(()=>{f(e?.email||t?.email||``)},[e?.uid,e?.email,t?.email]),W.default.useEffect(()=>{m(e?.photoURL||``)},[e?.uid,e?.photoURL]);let Y=async t=>{if(e)try{if(!s)return;let n=[`mem_files`,`admin_files`],i=Ti()??await Ei();for(let[e,t]of i){let r=(t.tabName||e).toLowerCase().replace(/[^a-z0-9]+/g,`_`),i=o.I(t.pageType),a=o.B(t)===`shared`;a&&i===`internal`&&n.push(`mem_${r}_records`),a&&i===`admin`&&n.push(`admin_${r}_records`)}n.length>wi&&(n.length=wi);let a={uid:e.uid,email:e.email,name:e.displayName};for(let i of n)try{let[n,o]=await Promise.all([(0,K.getDocs)((0,K.query)((0,K.collection)(r.bt,i),(0,K.where)(`uid`,`==`,e.uid))),(0,K.getDocs)((0,K.query)((0,K.collection)(r.bt,i),(0,K.where)(`editedUid`,`==`,e.uid)))]),s=new Map;for(let e of[...n.docs,...o.docs]){let n=s.has(e.id)?null:bi(e.data(),a,t);n&&s.set(e.id,{ref:e.ref,fields:n})}let c=[...s.values()];for(let e=0;e<c.length;e+=400){let t=(0,K.writeBatch)(r.bt);c.slice(e,e+400).forEach(e=>t.update(e.ref,e.fields)),await t.commit()}}catch{}}catch(e){console.error(`Error carrying the name or photo onto records:`,e)}},X=async t=>{if(!e)return;let n=await A._(t,{maxSide:512});if(n.size>2*1024*1024){M(`Over 2MB`);return}O(!0),E(!1),M(``);try{let t=`user_avatars/${e.uid}/file.png`,i=(0,ce.ref)(r.St,t);await(0,ce.uploadBytes)(i,n,r._(t,{ownerId:e.uid}));let o=await(0,ce.getDownloadURL)(i);m(o);let s=(0,K.doc)(r.bt,`user_profiles`,e.uid);await Promise.all([(0,se.updateProfile)(e,{photoURL:o}),(0,K.updateDoc)(s,{avatar:o}),Y({avatar:o})]),await a(),j(Date.now())}catch(e){console.error(e),M(`Not saved`)}finally{O(!1)}},le=e=>{let t=e.target.files?.[0];t&&X(t)},{over:Z,dropProps:ue}=r.r({accept:`image/*`,disabled:D,onFiles:([e])=>X(e),onReject:()=>M(`Not a picture`)}),de=async()=>{if(e){O(!0),E(!1),M(``);try{let t=(0,ce.ref)(r.St,`user_avatars/${e.uid}/file.png`);m(``),O(!1);let n=(0,K.doc)(r.bt,`user_profiles`,e.uid);await Promise.all([(0,ce.deleteObject)(t).catch(e=>console.error(e)),(0,se.updateProfile)(e,{photoURL:``}),(0,K.updateDoc)(n,{avatar:``}),Y({avatar:``})]),await a(),j(Date.now())}catch(e){console.error(e),M(`Not removed`),O(!1)}}},fe=()=>e?.displayName||t?.displayName||``,pe=async()=>{if(!e)return;let t=c.trim();if(!t){l(fe());return}if(t!==c&&l(t),t===fe()||t===R.current)return;R.current=t;let n=fe();P(!0),L(``);try{await(0,se.updateProfile)(e,{displayName:t}),await(0,K.updateDoc)((0,K.doc)(r.bt,`user_profiles`,e.uid),{displayName:t}).catch(()=>{}),await a(),te(Date.now()),Y({name:t,was:n})}catch(e){console.error(e),R.current=null,L(`Not saved`)}finally{P(!1)}},me=u.trim(),he=!!me&&me!==(e?.email||``),ge=async()=>{if(!e||!he||V)return;let t=me;if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)){U({text:`That does not look like an email address yet.`,tone:`error`});return}H(!0),U(null);try{if(await(0,K.updateDoc)((0,K.doc)(r.bt,`user_profiles`,e.uid),{email:t}).catch(()=>{}),!e.email)await Fr(t,e.uid),U({text:`We have emailed a link to ${t} — open it and the address is on your sign-in, so you can use it to sign in as well as your phone. You stay signed in here either way.`,tone:`done`});else{let n=await(0,se.fetchSignInMethodsForEmail)(r.yt,t).catch(()=>[]);if(n&&n.length>0)throw Object.assign(Error(`email-already-in-use`),{code:`auth/email-already-in-use`});await(0,se.verifyBeforeUpdateEmail)(e,t),U({text:`A link is on its way to your new address. Opening it moves your sign-in to it — and because that changes the account itself, you will be signed out here and will need to sign in again with the new address.`,tone:`done`})}J(t),await a()}catch(e){console.error(e),e?.code===`auth/requires-recent-login`?U({text:`For your safety, sign out and sign back in, then change your address here.`,tone:`error`}):e?.code===`auth/email-already-in-use`?U({text:`That email address already belongs to another account here. Use a different one, or sign in with the account that has it.`,tone:`error`}):U({text:(await n.lt(e,`password`,`The link could not be sent. Check your connection and try again.`,{email:t})).text,tone:`error`})}finally{H(!1)}},_e=async()=>{if(!e||ne||!g||!y||_r(g))return;let t=vr(g,y);if(t){C(t);return}re(!0),ae(``);try{await(0,se.updatePassword)(e,g),v(``),b(``),C(``),z(Date.now())}catch(e){console.error(e),ae(e?.code===`auth/requires-recent-login`?`For your safety, sign out and sign back in, then set your new password here. It has not been changed.`:(await n.lt(e,`password`,`Your password could not be changed. Check your connection and try again.`)).text)}finally{re(!1)}},Q=e=>{e.currentTarget.contains(e.relatedTarget)||_e()},ve=e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())};return(0,G.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,G.jsxs)(r.k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-5 sm:mb-8`,children:[(0,G.jsx)(n.t,{children:`Profile Settings`}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,G.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),`/profile`]})]}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-4 sm:gap-6 flex-1 fbos-fade-in pb-20`,children:[(0,G.jsx)(`div`,{className:`flex justify-start`,children:(0,G.jsx)(i.t,{})}),(0,G.jsx)(`div`,{className:`w-full flex flex-col`,children:(0,G.jsxs)(`div`,{className:`glass-panel w-full p-5 sm:p-8 md:p-12 rounded-3xl border border-[var(--panel-border)] shadow-2xl space-y-8 md:min-h-[500px] fbos-tab-fill`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-4 sm:gap-5 pb-6 border-b border-[var(--panel-border)]/50`,children:[(0,G.jsxs)(`div`,{...ue,className:`relative shrink-0 group/avatar rounded-full transition-shadow ${Z?`ring-2 ring-accent ring-offset-2 ring-offset-background`:``}`,children:[(0,G.jsxs)(`div`,{className:`w-16 h-16 sm:w-20 sm:h-20 rounded-full glass-panel border-2 border-[var(--panel-border)] shadow-lg bg-accent/10 flex items-center justify-center relative overflow-hidden`,children:[D&&(0,G.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center bg-accent/5 backdrop-blur-sm z-10`,children:(0,G.jsx)(_.n,{className:`w-6 h-6 text-accent animate-spin`})}),p&&!T?(0,G.jsx)(r.t,{src:p,alt:`Avatar`,className:`w-full h-full`,onError:()=>E(!0)}):(0,G.jsx)(_t,{className:`w-7 h-7 sm:w-8 sm:h-8 text-accent`})]}),!D&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`label`,{title:p?`Change photo`:`Upload photo`,className:`absolute inset-0 rounded-full bg-background/60 backdrop-blur-[2px] opacity-0 group-hover/avatar:opacity-100 focus-within:opacity-100 flex items-center justify-center cursor-pointer transition-opacity z-20`,children:[(0,G.jsx)(Le,{className:`w-4 h-4 text-foreground`}),(0,G.jsx)(`input`,{type:`file`,accept:`image/*`,"aria-label":`Upload photo`,onChange:le,className:`hidden`})]}),p&&(0,G.jsx)(`button`,{type:`button`,onClick:de,title:`Remove photo`,"aria-label":`Remove photo`,className:`hidden group-hover/avatar:flex absolute -top-1 -right-1 w-6 h-6 rounded-full bg-background border border-[var(--panel-border)] text-foreground/50 hover:text-red-500 hover:border-red-500/40 items-center justify-center shadow-sm cursor-pointer z-30`,children:(0,G.jsx)(w.t,{className:`w-3 h-3`})})]})]}),(0,G.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,G.jsx)(`h3`,{className:`font-bold text-lg sm:text-xl text-foreground mb-1 truncate`,children:c||`User`}),(0,G.jsx)(`p`,{className:`text-[13px] text-foreground/40 mt-1 font-medium break-words`,children:e?.email})]}),(0,G.jsx)(n.S,{saving:D,savedAt:k,error:ee})]}),(0,G.jsxs)(`div`,{className:`space-y-6`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,G.jsx)(`h3`,{className:`text-[16px] font-bold text-foreground`,children:`Account Details`}),(0,G.jsx)(n.S,{saving:N,savedAt:F,error:I})]}),(0,G.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-5 md:gap-6`,children:[(0,G.jsx)(d.c,{name:`name`,value:c,onChange:e=>l(e.target.value),onBlur:pe,onKeyDown:ve,label:`Display Name`,placeholder:`John Doe`}),(0,G.jsxs)(`div`,{className:`flex flex-col`,children:[(0,G.jsx)(d.c,{name:`email`,type:`email`,value:u,onChange:e=>{f(e.target.value),oe?.tone===`error`&&U(null)},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),ge())},label:`Email Address`,placeholder:`name@example.com`}),(0,G.jsxs)(`div`,{className:`mt-1.5 px-2 flex items-center justify-between gap-3 min-h-8 sm:min-h-9`,children:[(0,G.jsx)(`p`,{className:`text-[11px] text-foreground/40 font-medium leading-snug`,children:he?`Nothing changes until you open the link we email to it.`:`A new address is confirmed by a link we email to it.`}),he&&(0,G.jsx)(n.m,{icon:x.t,onClick:()=>void ge(),busy:V,children:q===me||!e?.email&&me===t?.email?`Send again`:`Send link`})]}),oe&&(0,G.jsx)(h.t,{tone:oe.tone,className:`mt-2`,children:oe.text})]})]})]}),(0,G.jsxs)(`div`,{className:`pt-6 border-t border-[var(--panel-border)]/50`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3 mb-4`,children:[(0,G.jsx)(`h3`,{className:`text-[15px] font-bold text-foreground`,children:`Change Password`}),(0,G.jsx)(n.S,{saving:ne,savedAt:ie,error:B?`Not changed`:``})]}),(0,G.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-5 md:gap-6`,onBlur:Q,children:[(0,G.jsx)(d.c,{name:`password`,type:`password`,label:`New Password`,autoComplete:`new-password`,value:g,onChange:e=>{v(e.target.value),S&&e.target.value===y&&C(``),B&&ae(``)},onKeyDown:ve,placeholder:`At least 8 characters`}),(0,G.jsx)(d.c,{name:`confirmPassword`,type:`password`,label:`Confirm New Password`,autoComplete:`new-password`,value:y,onChange:e=>{b(e.target.value),S&&C(``),B&&ae(``)},onBlur:()=>C(y?vr(g,y):``),onKeyDown:ve,error:S,placeholder:`Type it a second time`})]}),g&&(0,G.jsx)(yr,{value:g,className:`mt-3`}),B&&(0,G.jsx)(h.t,{className:`mt-3`,children:B})]})]})}),(0,G.jsx)(Si,{}),(0,G.jsx)(Ci,{})]})]})}function Oi(){let[e,t]=(0,W.useState)(!1),[n,i]=(0,W.useState)(null),[a,o]=(0,W.useState)(0),[s,c]=(0,W.useState)(0);return(0,W.useEffect)(()=>{let e;return a>0&&(e=setInterval(()=>o(e=>e-1),1e3)),()=>clearInterval(e)},[a]),(0,G.jsx)(`div`,{className:`flex-1 flex items-center justify-center w-full z-10 px-4 mb-16 mt-6 md:mt-0 md:mb-0 md:pt-8 md:pb-32`,children:(0,G.jsxs)(Dn,{width:`max-w-[480px]`,className:`text-center`,children:[(0,G.jsx)(An,{title:`Reset Password`,line:`Enter your email to receive a recovery link.`}),n&&(0,G.jsx)(h.t,{tone:`done`,className:`mb-5 max-w-[360px] mx-auto`,children:n}),(0,G.jsx)(On,{children:(0,G.jsxs)(`form`,{className:`flex flex-col gap-5 text-left max-w-[360px] mx-auto`,onSubmit:async e=>{e.preventDefault(),t(!0),i(null);let n=new FormData(e.currentTarget).get(`email`);try{await(0,se.sendPasswordResetEmail)(r.yt,n)}catch(e){console.error(e)}finally{i(`If an account exists, a reset link has been sent. Check your inbox and spam folder.`);let e=s+1;c(e),o(e===1?60:120),t(!1)}},children:[(0,G.jsx)(d.c,{name:`email`,label:`Work Email`,type:`email`,placeholder:`name@company.com`,required:!0}),(0,G.jsx)(`div`,{className:`pt-1`,children:(0,G.jsx)(O.t,{type:`submit`,className:`w-full py-3 text-[14px] font-semibold ${a>0?`opacity-60 shadow-none cursor-not-allowed pointer-events-none`:``}`,isLoading:e,disabled:a>0,children:a>0?`Resend link in ${(e=>`${Math.floor(e/60)}:${(e%60).toString().padStart(2,`0`)}`)(a)}`:s>0?`Resend reset password link`:`Send Reset Link`})})]})}),(0,G.jsx)(jn,{children:(0,G.jsxs)(q.Link,{to:`/login`,className:`inline-flex items-center gap-2 text-[14px] text-foreground/60 font-medium hover:text-accent transition-colors`,children:[(0,G.jsx)(l.t,{className:`w-4 h-4`}),`Back to Sign In`]})})]})})}var ki=new Set;function Ai(){let{pathname:e,search:t}=(0,q.useLocation)();return(0,W.useEffect)(()=>{if(e===`/payment-complete`)return;let r=new URLSearchParams(t).get(`session_id`)||``;!r.startsWith(`cs_`)||ki.has(r)||(ki.add(r),n.Qt(r).catch(()=>{}))},[e,t]),null}var ji=`public_copies`,Mi=e=>Array.isArray(e)?e.map(e=>String(e??``)).filter(Boolean).sort():[];function Ni(e){let t=e&&typeof e.copies==`object`&&e.copies?e.copies:null;if(!t)return{};let n={};for(let[e,r]of Object.entries(t))/^[a-z][a-z0-9_]*$/.test(e)&&(n[e]={leaveOut:Mi(r?.leaveOut)});return n}function Pi(e,t){let n={};for(let[r,i]of Object.entries(e)){let e=t[r];e&&e.leaveOut.join(`
|
|
2
2
|
`)===i.leaveOut.join(`
|
|
3
|
-
`)||(n[r]=i)}return n}function Ki(){let[e,t]=(0,K.useState)(null);return(0,K.useEffect)(()=>(0,J.onSnapshot)((0,J.doc)(r.ui,`sys_configs`,Hi),e=>t(Wi(e.exists()?e.data():null)),()=>t({})),[]),e}async function qi(e){if(Object.keys(e).length)try{await(0,J.setDoc)((0,J.doc)(r.ui,`sys_configs`,Hi),{copies:e},{merge:!0})}catch{}}function Ji({from:e,leaveOut:t}){return S.g(e,{leaveOut:t}),null}function Yi(){let{userRole:e}=r.Ft();return o.Sn(e)?(0,q.jsx)(Xi,{}):null}function Xi(){let e=B.u(),t=Ki(),{pathname:n}=(0,Y.useLocation)(),r=(0,K.useMemo)(()=>e?S.u(e):[],[e]);if((0,K.useEffect)(()=>{if(!t||!r.length)return;let e={};for(let t of r){let n=S.f(t.from);n&&(e[t.from]={leaveOut:[...n].sort()})}let n=Gi(e,t);Object.keys(n).length&&qi(n)},[r,t,n]),!t)return null;let i=new Map;for(let e of r)t[e.from]&&i.set(e.from,t[e.from].leaveOut);return(0,q.jsx)(q.Fragment,{children:[...i].map(([e,t])=>(0,q.jsx)(Ji,{from:e,leaveOut:t},e))})}r.si(()=>Promise.resolve().then(()=>require(`./PhoneInputField-DrzFHTOL.cjs`)));function Zi({children:e,className:t,variant:n=`primary`,pendingLabel:i=`Opening checkout…`,disabled:a=!1,...s}){let{loading:c,configured:l}=r.zn(),u=r.Rr(),{userRole:d}=r.Ft(),[f,p]=(0,K.useState)(!1),[m,h]=(0,K.useState)(null);return c?null:l?(0,q.jsxs)(`span`,{className:`inline-flex flex-col items-stretch gap-2`,children:[(0,q.jsx)(N.t,{variant:n,className:t,onClick:async()=>{if(f||a)return;if(p(!0),h(null),s.amount!=null&&!s.currency&&!u&&await r.Ir()){h(r.Pr),p(!1);return}let e=await r.Fn(s);e&&(h(e),p(!1))},disabled:f||a,children:f?i:e??`Pay`}),m&&(0,q.jsx)(`span`,{role:`alert`,className:`text-[13px] font-semibold text-red-400 leading-snug`,children:m})]}):o.wn(d)?(0,q.jsx)(`span`,{className:`text-[12.5px] font-medium text-foreground/50 leading-snug`,children:`Only admins see this: payments are not on yet, so this button is hidden. Connect Stripe and switch payments on at /payments and it appears here.`}):null}function Qi(){let{id:e=``}=(0,Y.useParams)(),{activeConfig:t}=i.N(),n=r.zn(),a=r.Rr(),s=a||`usd`,[c,l]=(0,K.useState)({loading:!0,product:null});(0,K.useEffect)(()=>{let t=!1;return(0,J.getDoc)((0,J.doc)(r.ui,r.Qn,e)).then(e=>{t||l({loading:!1,product:e.exists()?r.Dr(e.id,e.data()):null})}).catch(()=>{t||l({loading:!1,product:null})}),()=>{t=!0}},[e]);let u=c.product,d=u?.customPath.trim()||``;if(d)return(0,q.jsx)(Y.Navigate,{to:d.startsWith(`/`)?d:`/${d}`,replace:!0});let f=u?r.gr(u).filter(e=>r.br(e.amount)):[],p=u?.name.trim()||f[0]?.name.trim()||`Pay`;return(0,q.jsx)(`main`,{className:`flex-1 w-full max-w-3xl mx-auto px-4 pt-2 pb-16 md:pt-4 z-10 flex flex-col`,children:(0,q.jsx)(r.nt.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.4},className:`w-full rounded-3xl glass-panel border border-[var(--panel-border)] p-5 sm:p-8 md:p-10 shadow-[0_8px_32px_rgba(0,0,0,0.08)]`,children:c.loading?(0,q.jsxs)(`div`,{className:`flex items-center justify-center gap-3 py-16 text-foreground/50`,children:[(0,q.jsx)(C.r,{className:`w-4 h-4 animate-spin text-accent`}),(0,q.jsx)(`span`,{className:`text-[13px] font-medium`,children:`Loading…`})]}):!u||u.kind!==`once`||!f.length?(0,q.jsxs)(`div`,{className:`flex flex-col items-center text-center py-8 gap-4`,children:[(0,q.jsx)(`div`,{className:`w-14 h-14 rounded-2xl glass-panel border border-[var(--panel-border)] flex items-center justify-center shadow-xl`,children:(0,q.jsx)(k.i,{className:`w-7 h-7 text-accent`})}),(0,q.jsx)(`h1`,{className:`text-2xl md:text-3xl font-bold text-foreground tracking-tight`,children:`This payment link is no longer open`}),(0,q.jsx)(`p`,{className:`text-[14px] text-foreground/60 max-w-md`,children:`Ask whoever sent it for a new one.`}),(0,q.jsx)(Y.Link,{to:`/`,className:`text-[13px] font-bold text-accent hover:underline mt-2`,children:`Back to the site`})]}):(0,q.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[(0,q.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[t?.appName&&(0,q.jsx)(`span`,{className:`text-[11px] font-bold uppercase tracking-[0.2em] text-foreground/40`,children:t.appName}),(0,q.jsx)(`h1`,{className:`text-2xl sm:text-3xl md:text-4xl font-bold text-foreground tracking-tight`,children:p}),u.description.trim()&&(0,q.jsx)(`p`,{className:`text-[14px] md:text-[15px] text-foreground/60 leading-relaxed mt-1 max-w-2xl whitespace-pre-line`,children:u.description.trim()})]}),!n.loading&&!n.configured&&(0,q.jsx)(`p`,{className:`text-[14px] font-medium text-foreground/60`,children:`Payments are not open right now — please try again later.`}),(0,q.jsx)(`div`,{className:`flex flex-col divide-y divide-[var(--panel-border)]/60 rounded-2xl border border-[var(--panel-border)]/60`,children:f.map((e,t)=>(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-4 px-4 py-3.5`,children:[(0,q.jsxs)(`div`,{className:`min-w-0 flex flex-col`,children:[(0,q.jsx)(`span`,{className:`text-[15px] font-semibold text-foreground truncate`,children:e.name.trim()||p}),(0,q.jsx)(`span`,{className:`text-[13px] font-medium text-foreground/50`,children:h.n(r.br(e.amount)||0,s)})]}),(0,q.jsxs)(Zi,{amount:r.br(e.amount)||0,currency:a||void 0,productName:e.name.trim()||p,metadata:{productId:u.id,page:o.jt(u.id)},successPath:`/payment-complete`,cancelPath:o.jt(u.id),className:`px-5 py-2.5 text-[14px] font-bold`,children:[`Pay `,h.n(r.br(e.amount)||0,s)]})]},t))})]})})})}var $i=`src/your-ai-workflow-firebase-os`;function ea(){let e=new Set;for(let[t,n]of i.x()){let r=n?.config?.route,i=typeof r==`string`&&r.trim()?r.startsWith(`/`)?r:`/`+r:`/`+t.toLowerCase();e.add(i)}return[...e].sort()}var ta=e=>(e||``).split(/[^a-zA-Z0-9]+/).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(``);function na(e){let t=e?.contentKey||e?.tabName||e?.pageName||e?.pageId||`Page`;return`${$i}/microcomponents/${ta(String(t))||`Page`}Content.tsx`}var ra=`This is a repair, not a redesign: whatever you have already written for this page stays exactly as it is — the same sections, the same words, the same pictures with the same links, the same layout and styling. What is wrong is the wiring above, so change only that, and nothing about how the page looks or what it says.`;function ia(e,t){let n=t.replace(/^.*\//,``).replace(/\.tsx$/,``),r=n.replace(/Content$/,``).replace(/([a-z0-9])([A-Z])/g,`$1_$2`).toLowerCase();return[`My app has a page at ${e} and it is still empty after you said it was done. The ONLY thing that fills this page is one file: ${t}, with a default export, registered in ${$i}/microcomponents/registry.ts.`,`Check these in order and fix whatever is wrong, without asking me questions:`,`1. The file exists at exactly that path and name — not another folder, not another spelling. If you put it somewhere else, move it there.`,`2. It has a default export. A named-only export is silently ignored.`,`3. ${$i}/microcomponents/registry.ts contains these two lines: import ${n} from './${n}'; and registerMicrocomponent('${r}', ${n}); — registerMicrocomponent is imported there from 'your-ai-workflow-firebase-os'. Add them if they are missing, and never remove another page's lines.`,`4. You created nothing else for this page — no config file, no route, no page, and no edit to src/App.tsx or src/main.tsx. Undo any of those you made.`,ra,`Then tell me, in one sentence, which of these was wrong.`].join(`
|
|
4
|
-
`)}function
|
|
5
|
-
`)}var oa={sides:!1,top:!1},sa=4,ca=8,la=24,ua=`button, input, select, textarea`,da=(e,t,n)=>{for(let r=e instanceof Element?e:e.parentElement;r&&r!==t;r=r.parentElement){if(r.getAttribute(`aria-hidden`)===`true`||getComputedStyle(r).position===`fixed`)return!1;let e=r.getBoundingClientRect();if(e.width>=1&&(e.left<n.left-1||e.right>n.right+1))return!1}return!0};function fa(e){let t={...oa},n=e.getBoundingClientRect();if(n.width<1)return t;let r=(r,i)=>{if(r.width<1||r.height<1||r.left<n.left-1||r.right>n.right+1)return;let a=r.left-n.left<sa||n.right-r.right<sa,o=r.top>=n.top-1&&r.top-n.top<ca;!(a&&!t.sides)&&!(o&&!t.top)||da(i,e,n)&&(a&&(t.sides=!0),o&&(t.top=!0))},i=e.ownerDocument,a=i.createRange();if(typeof a.getBoundingClientRect==`function`){let n=i.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(let e=n.nextNode();e;e=n.nextNode())if(e.nodeValue?.trim()&&(a.selectNodeContents(e),r(a.getBoundingClientRect(),e),t.sides&&t.top))return t}for(let n of e.querySelectorAll(ua))if(r(n.getBoundingClientRect(),n),t.sides&&t.top)return t;if(!t.top)for(let r of e.querySelectorAll(`img`)){let i=r.getBoundingClientRect();if(!(i.width<1||i.height<1)&&!(i.top<n.top-1||i.top-n.top>=la)&&!(i.left<=n.left+1&&i.right>=n.right-1)&&!(!da(r,e,n)||ya(r,e,n))){t.top=!0;break}}if(!t.sides)for(let r of e.querySelectorAll(`div, section, article, aside, ul, ol, li, a, label`)){if(!ma(r))continue;let i=r.getBoundingClientRect();if(!(i.width<1||i.height<1||i.width>=n.width-1&&!pa(r))&&!(i.left<n.left-1||i.right>n.right+1)&&!(i.left-n.left>=sa&&n.right-i.right>=sa)&&da(r,e,n)){t.sides=!0;break}}return t}var pa=e=>{let t=getComputedStyle(e),n=e.style;return(parseFloat(t.borderTopLeftRadius)||parseFloat(t.borderRadius)||parseFloat(n?.borderTopLeftRadius||n?.borderRadius||``)||0)>0},ma=e=>{let t=getComputedStyle(e);return(parseFloat(t.borderLeftWidth||t.borderWidth)||0)>0&&!va(t.borderLeftColor||t.borderColor)?!0:pa(e)&&!va(t.backgroundColor)},ha=28,ga=200,_a=72,va=e=>!e||e===`transparent`||/^rgba\([^)]*,\s*0\s*\)$/.test(e),ya=(e,t,n)=>{let r=t.ownerDocument,i=[r.body,r.documentElement].map(e=>getComputedStyle(e).backgroundColor);for(let r=e instanceof Element?e:e.parentElement;r&&r!==t;r=r.parentElement){let e=r.getBoundingClientRect();if(e.left>n.left+1||e.right<n.right-1||e.height>=n.height*.9)continue;let t=getComputedStyle(r);if(t.backgroundImage&&t.backgroundImage!==`none`||!va(t.backgroundColor)&&!i.includes(t.backgroundColor))return!0}return!1};function ba(e){let t=e.getBoundingClientRect();if(t.width<1)return 0;let n=e.ownerDocument,r=n.createRange();if(typeof r.getBoundingClientRect!=`function`)return 0;let i=1/0,a=null,o=e=>e.width>=1&&e.height>=1&&e.left>=t.left-1&&e.right<=t.right+1&&e.top>=t.top-1&&e.top-t.top<ga,s=n.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(let n=s.nextNode();n;n=s.nextNode()){if(!n.nodeValue?.trim()||!n.parentElement)continue;r.selectNodeContents(n);let s=r.getBoundingClientRect();if(!(!o(s)||!da(n,e,t))&&(i=Math.min(i,s.top-t.top),!a)){let e=parseFloat(getComputedStyle(n.parentElement).fontSize)||0;e>=ha&&(a={size:e,at:n})}}if(!a||ya(a.at,e,t))return 0;for(let n of e.querySelectorAll(ua)){let r=n.getBoundingClientRect();o(r)&&da(n,e,t)&&(i=Math.min(i,r.top-t.top))}let c=Math.min(_a,Math.round(a.size));return Math.max(0,Math.round(c-Math.max(0,i)))}var xa={...oa,room:0},Sa=[300,1e3,2500];function Ca(e,t){let[n,r]=(0,K.useState)({page:t,given:xa});return(0,K.useEffect)(()=>{let n=e.current;if(!n||typeof window>`u`)return;let i=xa,a=!1,o,s=()=>{let e=fa(n),o={sides:i.sides||e.sides,top:i.top||e.top,room:Math.max(i.room,ba(n))};(o.sides!==i.sides||o.top!==i.top||o.room!==i.room)&&(i=o,r({page:t,given:i})),a&&i.sides&&i.top&&p()},c=()=>{clearTimeout(o),o=setTimeout(s,200)},l=requestAnimationFrame(s),u=Sa.map((e,t)=>setTimeout(()=>{a=t===Sa.length-1,s()},e)),d=new MutationObserver(c);d.observe(n,{childList:!0,subtree:!0});let f=typeof ResizeObserver>`u`?null:new ResizeObserver(c);f?.observe(n);function p(){cancelAnimationFrame(l),u.forEach(clearTimeout),clearTimeout(o),d.disconnect(),f?.disconnect()}return p},[e,t]),n.page===t?n.given:xa}function wa(e){let[t,n]=(0,K.useState)(null);return(0,K.useEffect)(()=>{if(e)return(0,J.onSnapshot)((0,J.collection)(r.ui,e),t=>{!t.metadata.fromCache&&!t.metadata.hasPendingWrites&&n({name:e,size:t.size})},()=>{})},[e]),t&&t.name===e?t.size:null}function Ta({job:e,kept:t}){let n=S.l(e,{records:wa(e.from),copies:wa(e.to),kept:t});return n?(0,q.jsx)(`aside`,{className:`w-full px-4 md:px-8 pb-6 text-xs text-foreground/60`,"aria-label":`What this page is shown from ${e.keeper.title}`,children:(0,q.jsxs)(`div`,{className:`max-w-3xl rounded-2xl border border-[var(--panel-border)] bg-[var(--panel-bg)] px-4 py-3 flex flex-col gap-1.5`,children:[(0,q.jsx)(`span`,{className:`uppercase tracking-[0.18em] text-foreground/40`,children:`Only your team sees this`}),(0,q.jsx)(`p`,{className:`leading-relaxed`,children:n})]})}):null}function Ea({config:e}){let{userRole:t}=r.Ft();return o.Sn(t)?(0,q.jsx)(Da,{config:e}):null}function Da({config:e}){let t=B.u(),n=Ki();if(!t||!n)return null;let r=S.d(t,e);if(!r)return null;let i=S.c(S.u(t),r.id);return i.length?(0,q.jsx)(`div`,{className:`w-full mt-auto pt-6`,children:i.map(e=>(0,q.jsx)(Ta,{job:e,kept:!!n[e.from]},`${e.from}${e.reader.id}`))}):null}function Oa({config:e,customContent:t}){let{config:a}=i.N(),{userRole:s}=r.Ft();hn(!!t);let l=(0,K.useRef)(null),u=Ca(l,t);return(0,K.useEffect)(()=>{document.title=e.pageName||e.pageTitle||a.appName||`Your AI Firebase`},[e.pageName,e.pageTitle,a.appName]),t?(0,q.jsx)(c.p,{value:{prefix:`pub_`},children:(0,q.jsxs)(`main`,{ref:l,className:r.$(`fbos-content-slot fbos-page-canvas flex-1 w-full z-10 flex flex-col relative`,u.sides&&`px-4 md:px-8`,u.top&&`pt-6 md:pt-10`),style:u.room?{paddingTop:u.room}:void 0,"data-gutter-given":[u.sides&&`sides`,u.top&&`top`,u.room&&`title`].filter(Boolean).join(` `)||void 0,children:[(0,q.jsx)(j.p,{size:`part`,children:(0,q.jsx)(te.t,{config:e,children:(0,q.jsx)(t,{config:e})})}),(0,q.jsx)(Ea,{config:e})]})}):(0,q.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 relative min-h-screen`,children:[(0,q.jsx)(r.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-4 md:mb-6 min-w-0`,children:(0,q.jsx)(n.t,{children:e.pageTitle||e.pageName||`New Page`})}),(0,q.jsx)(r.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`glass-panel border border-[var(--panel-border)] rounded-3xl shadow-2xl relative flex flex-col flex-1 bg-background/50 h-full min-h-[400px]`,children:e.form?(0,q.jsx)(`div`,{className:`fbos-content-slot flex-1 flex flex-col items-center justify-start p-4 md:p-8`,children:(0,q.jsx)(j.p,{size:`part`,children:(0,q.jsx)(te.t,{config:e,children:(0,q.jsx)(h.t,{isInline:!0,formId:e.form})})})}):(0,q.jsxs)(`div`,{className:`flex-1 flex flex-col items-center justify-center m-4 md:m-8 gap-6`,children:[(0,q.jsxs)(`div`,{className:`w-full glass-panel border border-[var(--panel-border)]/50 border-dashed rounded-2xl p-8 py-16 text-center opacity-70`,children:[(0,q.jsx)(`p`,{className:`text-[15px] font-bold mb-1.5 text-foreground/70`,children:`This page is empty`}),(0,q.jsx)(`p`,{className:`text-[13px] font-medium text-foreground/50 max-w-sm leading-relaxed mx-auto`,children:`Open the Pages screen, say what you would like on it, and copy the sentence there into your assistant's chat.`})]}),o.wn(s)&&(0,q.jsx)(`div`,{className:`w-full max-w-lg`,children:(0,q.jsx)(n.o,{compact:!0,title:`Already asked, and it is still empty? Paste this`,prompt:ia(e.route||`/`,na(e))})})]})})]})}var ka=(...e)=>{for(let t of e)if(t&&typeof t==`object`&&!Array.isArray(t))return t;return null};function Aa(e,t){let n=ka(e,t);if(!n)throw Error(`saveRecord needs the record to save — actions.saveRecord({ name: …, price: … }). The collection is the page’s own and is never passed.`);return n}function ja(e,t,n){let r=ka(t,n);if(!r)throw Error(`updateRecord needs the record’s id and the change — actions.updateRecord(id, { stock: 4 }). The collection is the page’s own and is never passed.`);return{id:String((r===n?t:e)??``),data:r}}function Ma(e,t){return String((typeof t==`string`&&t?t:e)??``)}function Na(e){return(e||[]).map(e=>{let t=e.data()||{};return{...t,createdAt:t.createdAt?.toMillis?t.createdAt.toMillis():t.createdAt,id:e.id}})}function Pa(e){if(!e||!(`id`in e))return e;let{id:t,...n}=e;return n}function Fa(e){let t=typeof e?.sourceId==`string`?e.sourceId.trim():``;return t?`from_${t.replace(/[^A-Za-z0-9_-]/g,`_`).slice(0,200)}`:null}var Ia=(e,t)=>`${e}|${t}`,La=e=>Object.fromEntries(e.map(e=>[Ia(e.record,e.variant),e.since])),Ra=e=>typeof e==`number`&&Number.isFinite(e),za=(e,t)=>t&&Array.isArray(e?.variants)&&e.variants.find(e=>e&&String(e.id??``)===String(t))||null;function Ba(e){let t=[];for(let n of e)if(!(!n||!n.id)){Ra(n.stock)&&Ra(n.stockSetAt)&&t.push({record:String(n.id),variant:``,since:n.stockSetAt});for(let e of Array.isArray(n.variants)?n.variants:[]){let r=String(e?.id??``);r&&Ra(e?.stock)&&Ra(e?.stockSetAt)&&t.push({record:String(n.id),variant:r,since:e.stockSetAt})}}return t.sort((e,t)=>(e.record+`|`+e.variant).localeCompare(t.record+`|`+t.variant))}function Va(e,t,n,r){if(!t)return null;let i=za(t,n),a=i?i.stock:n?void 0:t.stock;return Ra(a)?Math.max(0,a-Ha(e,t,n,r)):null}function Ha(e,t,n,r){if(!t?.id)return 0;let i=za(t,n),a=i?i.stockSetAt:n?void 0:t.stockSetAt;if(!Ra(a))return 0;let o=r?.[Ia(String(t.id),i?String(i.id):``)];if(r&&o!==a)return 0;let s=e[String(t.id)]?.[i?String(i.id):``];return Ra(s)&&s>0?s:0}function Ua(e,t,n=Date.now()){if(!e||typeof e!=`object`)return e;let r={...e};if(Ra(e.stock)&&(r.stockSetAt=!t||t.stock!==e.stock||!Ra(t.stockSetAt)?n:t.stockSetAt),Array.isArray(e.variants)){let i=Array.isArray(t?.variants)?t.variants:[];r.variants=e.variants.map(e=>{if(!e||typeof e!=`object`||!Ra(e.stock))return e;let t=i.find(t=>t&&String(t.id??``)===String(e.id??``));return!t||t.stock!==e.stock||!Ra(t.stockSetAt)?{...e,stockSetAt:n}:Ra(e.stockSetAt)?e:{...e,stockSetAt:t.stockSetAt}})}return r}var Wa=60*1e3,Ga=`What is left in stock could not be checked just now — the counts shown are as last set.`,Ka={fetch:(e,t)=>fetch(e,t)};async function qa(e){if(!e.length)return{sold:{},error:``,partial:!1};try{let t=await Ka.fetch(`/api/payments/sold`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({wants:e})});if(!t.ok)return{sold:{},error:Ga,partial:!1};let n=await t.json();return{sold:n&&typeof n.sold==`object`&&n.sold?n.sold:{},error:``,partial:n?.partial===!0}}catch{return{sold:{},error:Ga,partial:!1}}}function Ja(e){let t=(0,K.useMemo)(()=>Ba(Array.isArray(e)?e:[]),[e]),n=(0,K.useMemo)(()=>JSON.stringify(t),[t]),[r,i]=(0,K.useState)({sold:{},for:{}}),[a,o]=(0,K.useState)(!1),[s,c]=(0,K.useState)(!1),l=t.length>0&&!s,[u,d]=(0,K.useState)(``),[f,p]=(0,K.useState)(0),m=(0,K.useRef)(t);return m.current=t,(0,K.useEffect)(()=>{if(!t.length)return;let e=!0,n=async()=>{let t=m.current,n=await qa(t);e&&(n.error||(i({sold:n.sold,for:La(t)}),o(n.partial),p(Date.now())),d(n.error),c(!0))};n();let r=setInterval(()=>{document.visibilityState!==`hidden`&&n()},Wa),a=()=>{document.visibilityState===`visible`&&n()};return document.addEventListener(`visibilitychange`,a),()=>{e=!1,clearInterval(r),document.removeEventListener(`visibilitychange`,a)}},[n]),(0,K.useMemo)(()=>({loading:l,error:u,asOf:f,partial:a,left:(e,t)=>Va(r.sold,e,t,r.for),sold:(e,t)=>Ha(r.sold,e,t,r.for)}),[r,l,u,f,a])}function Ya({config:e,customContent:t}){let{user:a,userRole:s}=r.Ft(),{config:l}=i.N(),[u,d]=(0,K.useState)([]),[f,p]=(0,K.useState)(!0),[m,h]=(0,K.useState)(!1),[g,_]=(0,K.useState)(``),[y,b]=(0,K.useState)(``),[x,w]=(0,K.useState)(!1),[T,D]=(0,K.useState)(``),[O,M]=(0,K.useState)(null),P=(0,K.useRef)(null),[F,I]=(0,K.useState)(null),[L,ne]=(0,K.useState)(null),R=e=>{if(ne(e),e){let t=e.fileType||``;V(t.startsWith(`image/`)||t.startsWith(`video/`)||t===`application/pdf`)}},z=L,[re,V]=(0,K.useState)(!0),[H,se]=(0,K.useState)(!1),[U,ce]=(0,K.useState)(null),[W,le]=(0,K.useState)(``),[G,ue]=(0,K.useState)(``),[de,Y]=(0,K.useState)([]),pe=(0,K.useRef)(null),me=B.o(e,`user_page`),he=o.Mn({...e,pageType:`user`}),ge=!he.startsWith(`user_`),_e=c.c(he),X=_e?B.t(e,he):`${he}${me}_records`,ve=c.f(),ye=c.o({on:!ge&&!_e}),be=ye.uid||a?.uid||``,xe=c.F(X),Z=_e?xe.records:u,Q=_e?xe.loading:f,Se=e=>_e?c.C(e,ve):!0,Ce=s===`admin`,we=e=>Se(e)&&oe.d(e,s),Te=(0,K.useRef)(!1);(0,K.useEffect)(()=>{!Ce||Q||Te.current||!Z.length||(Te.current=!0,oe.a(X,Z,e,!0).catch(e=>console.warn(`Could not catch the delete lock up:`,e)).finally(()=>{Te.current=!1}))},[Ce,Q,Z,oe.l(e),X]);let Ee=ye.everyone?`${a?.uid}|everyone`:ye.uid||a?.uid||``,De=(0,K.useRef)(Ee),Oe=e=>c.d(he,X,e),[ke,Ae]=(0,K.useState)(()=>_e?c.u(X):``),je=()=>Ae(c.u(X));(0,K.useEffect)(()=>{document.title=e.tabTitle||e.tabName||l.appName||`Your AI Firebase`},[e.tabTitle,e.tabName,l.appName]),(0,K.useEffect)(()=>{if(!a||_e)return;try{let e=S.o(X,Ee);e?(d(e),p(!1)):(d(e=>e.length?[]:e),p(!0)),De.current=Ee}catch{}let e=e=>Na(e),t=(0,J.onSnapshot)(ge||ye.everyone?(0,J.query)((0,J.collection)(r.ui,X),(0,J.orderBy)(`createdAt`,`desc`),(0,J.limit)(150)):(0,J.query)((0,J.collection)(r.ui,X),(0,J.where)(`uid`,`==`,ye.uid||a.uid)),t=>{let n=e(t.docs);n.sort((e,t)=>(t.createdAt||0)-(e.createdAt||0)),d(n),p(!1),De.current=Ee,S.s(X,Ee,n)},e=>{console.warn(`${X}: this account cannot read its records here (${e?.code||`permission-denied`}). Signed-in pages need a verified email address; the records themselves are only ever the signer's own.`),d(e=>e.length?[]:e),p(!1)});return()=>t()},[a,X,ge,_e,ye.uid,ye.everyone,Ee]),(0,K.useEffect)(()=>{!f&&a&&!_e&&De.current===Ee&&S.s(X,Ee,u)},[u,f,X,a,_e,Ee]);let Me=async e=>Z.some(t=>t.id===e)||await(0,J.getDoc)((0,J.doc)(r.ui,X,e)).then(e=>e.exists()).catch(()=>!1),Ne=async(t,n)=>{let i={uid:be,recordType:`record`,...oe.u(e,s),...t};if(!_e){let e=Fa(t),n=e?(0,J.doc)(r.ui,X,e):(0,J.doc)((0,J.collection)(r.ui,X)),a={...i,createdAt:(0,J.serverTimestamp)()};return await(0,J.setDoc)(n,a),S.p(X,n.id,a),n.id}let o=n||ke||c.u(X);return await(0,J.setDoc)((0,J.doc)(r.ui,X,o),c.l({...Oi(a),...i},a.uid)),n||je(),o},Pe=async t=>{if(t.preventDefault(),!(!a||!g.trim())){w(!0);try{let t=await Ne({name:g.trim(),note:y.trim()});_e||d(n=>[{id:t,name:g.trim(),note:y.trim(),uid:a.uid,recordType:`record`,...oe.u(e,s),createdAt:Date.now()},...n]),_(``),b(``),h(!1)}catch(e){console.error(`Error saving record:`,e)}w(!1)}},Fe=c.b({upload:async(t,n)=>{if(!a)throw Error(`Sign in again before uploading.`);let r=await ee._(t),i=_e?P.current&&ke||c.u(X):``,o=`${Oe(i)}/${c.h(r.name)}`,l=await c.y(o,r,{customMetadata:{ownerId:a.uid},onProgress:n.progress,signal:n.signal});if(P.current)P.current(r,l,{uid:a.uid,storagePath:o,recordId:i});else{let t=await Ne({name:r.name,note:`${r.type||`File`} · ${tt(r.size)}`,recordType:`file`,fileName:r.name,fileType:r.type||`unknown`,fileSize:r.size,downloadURL:l,storagePath:o},i);_e||d(n=>[{id:t,name:r.name,note:`${r.type||`File`} · ${tt(r.size)}`,uid:a.uid,recordType:`file`,fileName:r.name,fileType:r.type,fileSize:r.size,downloadURL:l,storagePath:o,...oe.u(e,s),createdAt:Date.now()},...n])}},onFailed:e=>D(`${e.name}: ${e.error||`That upload did not work.`}`),onSettled:()=>Fe.clear()}),Ie=Fe.busy,Le=e=>{let t=Array.from(e.target.files||[]);e.target.value=``,!(!t.length||!a)&&(D(``),Fe.add(t))},Re=async()=>{if(F){se(!0);try{let e=Z.find(e=>e.id===F);if(!oe.d(e,s)){k.n(`Nothing on this page can be deleted.`),I(null),se(!1);return}await(0,J.deleteDoc)((0,J.doc)(r.ui,X,F)),await ae.o(e,Z,Oe(F)),_e||d(e=>e.filter(e=>e.id!==F)),I(null)}catch(e){console.error(`Error deleting record:`,e)}se(!1)}},[ze,Be]=(0,K.useState)(null),[Ve,He]=(0,K.useState)(``),[Ue,We]=(0,K.useState)(!1),[Ge,Ke]=(0,K.useState)(null),qe=(0,K.useRef)([]),Je=e=>{if(e.recordType===`file`){Be(e.id),He(e.name);return}ce(e.id),le(e.name),ue(e.note||``);let t=[`name`,`note`,`uid`,`recordType`,`fileName`,`fileType`,`fileSize`,`downloadURL`,`storagePath`,`createdAt`],n=Object.entries(e).filter(([e])=>!t.includes(e)&&e!==`id`).map(([e,t])=>({key:e,value:String(t??``)}));Y(n),qe.current=n.map(e=>e.key)},Ye=async()=>{if(!ze||!Ve.trim()){Be(null);return}let e=Z.find(e=>e.id===ze);if(e&&e.name===Ve.trim()){Be(null);return}We(!0);try{await(0,J.updateDoc)((0,J.doc)(r.ui,X,ze),{name:Ve.trim()}),d(e=>e.map(e=>e.id===ze?{...e,name:Ve.trim()}:e))}catch(e){console.error(`Error renaming file:`,e)}We(!1),Be(null)},Xe=async()=>{await Ze(),ce(null)},Ze=async()=>{if(!U||!W.trim())return;w(!0);let e={};de.forEach(({key:t,value:n})=>{t.trim()&&(e[t.trim()]=n)});let t=de.map(e=>e.key.trim()).filter(Boolean),n=qe.current.filter(e=>!t.includes(e));n.forEach(t=>{e[t]=(0,J.deleteField)()});try{await(0,J.updateDoc)((0,J.doc)(r.ui,X,U),{name:W.trim(),note:G.trim(),...e}),d(e=>e.map(e=>{if(e.id!==U)return e;let t={...e,name:W.trim(),note:G.trim()};return n.forEach(e=>{delete t[e]}),de.forEach(({key:e,value:n})=>{e.trim()&&(t[e.trim()]=n)}),t})),qe.current=t}catch(e){console.error(`Error saving record:`,e)}w(!1)},Qe=(e,t)=>e?e.startsWith(`image/`)?t?(0,q.jsx)(`div`,{className:`w-9 h-9 rounded-xl bg-cover bg-center shrink-0`,style:{backgroundImage:`url(${t})`}}):(0,q.jsx)(v.c,{className:`w-4 h-4`}):e.startsWith(`video/`)||e.startsWith(`audio/`)?(0,q.jsx)(c.R,{className:`w-4 h-4`}):e.includes(`pdf`)||e.includes(`word`)||e.includes(`text`)?(0,q.jsx)(v.u,{className:`w-4 h-4`}):e.includes(`zip`)||e.includes(`rar`)||e.includes(`archive`)?(0,q.jsx)(c.V,{className:`w-4 h-4`}):e.includes(`html`)||e.includes(`csv`)||e.includes(`json`)?(0,q.jsx)(c.B,{className:`w-4 h-4`}):(0,q.jsx)(v.l,{className:`w-4 h-4`}):(0,q.jsx)(v.u,{className:`w-4 h-4`}),$e=e=>e?e.startsWith(`image/`)?`bg-emerald-500/10 text-emerald-500`:e.startsWith(`video/`)||e.startsWith(`audio/`)?`bg-accent/10 text-accent`:e.includes(`pdf`)||e.includes(`word`)||e.includes(`text`)?`bg-blue-500/10 text-blue-500`:e.includes(`zip`)||e.includes(`rar`)||e.includes(`archive`)?`bg-yellow-500/10 text-yellow-500`:e.includes(`html`)||e.includes(`csv`)||e.includes(`json`)?`bg-emerald-500/10 text-emerald-500`:`bg-foreground/5 text-foreground/40`:`bg-foreground/5 text-foreground/40`,et=e=>{if(!e)return`FILE`;let t={"application/pdf":`PDF`,"application/zip":`ZIP`,"application/x-zip-compressed":`ZIP`,"application/x-rar-compressed":`RAR`,"application/x-7z-compressed":`7Z`,"application/json":`JSON`,"application/xml":`XML`,"application/javascript":`JS`,"application/typescript":`TS`,"application/msword":`DOC`,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":`DOCX`,"application/vnd.ms-excel":`XLS`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":`XLSX`,"application/vnd.ms-powerpoint":`PPT`,"application/vnd.openxmlformats-officedocument.presentationml.presentation":`PPTX`,"application/rtf":`RTF`,"application/x-tar":`TAR`,"application/gzip":`GZ`,"text/plain":`TXT`,"text/html":`HTML`,"text/css":`CSS`,"text/csv":`CSV`,"text/markdown":`MD`},n=e.toLowerCase();if(t[n])return t[n];let r=n.split(`/`);return r[r.length-1].replace(/^x-/,``).replace(/^vnd\..*\./,``).toUpperCase().slice(0,10)},tt=e=>{if(!e)return`0 B`;let t=1024,n=[`B`,`KB`,`MB`,`GB`],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/t**+r).toFixed(2))+` `+n[r]},nt=e=>{if(!e)return``;let t=e.toMillis?e.toMillis():e;return new Date(t).toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`})},rt=n.p(e.buttonStorageIcon)||xt,it=e.buttonStyle!==`secondary`,at=e.buttonStorageStyle===`primary`;return(0,q.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,q.jsx)(r.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-6 flex items-center justify-between`,children:(0,q.jsxs)(`div`,{children:[(0,q.jsx)(n.t,{children:e.tabTitle||e.tabName||`User Page`}),e.route&&(0,q.jsxs)(`div`,{className:`flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,q.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),e.route]})]})}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-6 flex-1 pb-16`,children:[(0,q.jsx)(i.t,{}),(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:t?`flex flex-col flex-1 relative`:`flex flex-col glass-panel border border-[var(--panel-border)] rounded-3xl overflow-hidden flex-1 shadow-2xl bg-background`,children:[(0,q.jsx)(`input`,{type:`file`,multiple:!0,ref:pe,onChange:Le,className:`hidden`}),!t&&(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3 sm:gap-4 p-4 sm:p-6 md:px-8 md:py-6 border-b border-[var(--panel-border)]/50 bg-background/50 shrink-0`,children:[(0,q.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,q.jsx)(`h2`,{className:`text-xl font-bold text-foreground tracking-tight truncate`,children:e.tabTitle||e.tabName||`Dashboard`}),(0,q.jsx)(`p`,{className:`text-[13px] font-medium text-foreground/50 mt-1`,children:Q?`Loading…`:`${Z.length} ${Z.length===1?`item`:`items`}`}),(T||_e&&xe.error)&&(0,q.jsx)(`p`,{className:`text-[12px] font-semibold text-red-500 mt-1 truncate`,role:`alert`,children:T||xe.error}),ye.someoneElse&&e.storage!==!1&&(0,q.jsx)(`p`,{className:`text-[12px] font-medium text-foreground/50 mt-1 max-sm:hidden`,children:`You are looking at somebody else’s page. Anything you add here is theirs, but a file would stay yours — so uploads are off until you switch back to your own.`})]}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,q.jsx)(c.a,{viewing:ye}),e.storage!==!1&&!ye.someoneElse&&(0,q.jsx)(q.Fragment,{children:(0,q.jsxs)(r.nt.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>pe.current?.click(),title:Ie?Fe.done?`${Fe.done} of ${Fe.total} uploaded…`:`Uploading ${Fe.total===1?`your file`:`${Fe.total} files`}…`:e.buttonStorageText||`Upload files`,className:`h-10 flex items-center justify-center gap-2 rounded-xl transition-all duration-300 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed ${e.buttonStorageText?`px-4`:`w-10`} ${at?`btn-primary`:`btn-secondary`}`,children:[Ie?(0,q.jsx)(C.r,{className:`w-4 h-4 animate-spin`}):(0,q.jsx)(rt,{className:`w-4 h-4`}),e.buttonStorageText&&(0,q.jsx)(`span`,{className:`text-[13px] font-bold`,children:e.buttonStorageText})]})}),e.showButton!==!1&&(0,q.jsx)(r.nt.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>h(!0),title:`Add New`,className:`h-10 flex items-center justify-center gap-2 rounded-xl transition-all duration-300 cursor-pointer ${e.buttonText&&e.buttonText!==`+`?`px-5`:`w-10`} ${it?`btn-primary`:`btn-secondary`}`,children:e.buttonText===`+`||!e.buttonText?(0,q.jsx)(E.t,{className:`w-4 h-4`}):(0,q.jsx)(`span`,{className:`text-[13px] font-bold`,children:e.buttonText})})]})]}),(0,q.jsxs)(`div`,{className:t?`flex-1 flex flex-col relative min-h-[400px]`:`p-6 md:p-8 flex-1 overflow-y-auto relative min-h-[400px]`,children:[Q&&(0,q.jsx)(`div`,{className:`absolute inset-0 z-10 flex items-center justify-center bg-background/50 backdrop-blur-sm`,children:(0,q.jsx)(C.r,{className:`w-8 h-8 text-accent animate-spin`})}),t?(0,q.jsx)(c.p,{value:{prefix:he,collection:_e?X:``,recordId:_e?U||ke:``},children:(0,q.jsx)(`div`,{className:`fbos-content-slot fbos-tab-fill`,children:(0,q.jsx)(j.p,{size:`part`,children:(0,q.jsx)(te.t,{config:e,children:(0,q.jsx)(t,{config:e,actions:{records:Z,loading:Q,error:_e?xe.error:``,collection:X,user:a,...c.s(X,ve,_e,ke),saveRecord:async(t,n)=>{let r=Pa(Aa(t,n)),i=_e?null:Fa(r);if(i&&await Me(i))return i;let a=await Ne(Ua(r));return _e||d(t=>[{uid:be,recordType:`record`,...oe.u(e,s),createdAt:Date.now(),...r,id:a},...t.filter(e=>e.id!==a)]),a},updateRecord:async(e,t,n)=>{let{id:i,data:o}=ja(e,t,n),s=Pa(o),c={...ki(a),...Ua(s,Z.find(e=>e.id===i))};_e||d(e=>e.map(e=>e.id===i?{...e,...c}:e)),await(0,J.updateDoc)((0,J.doc)(r.ui,X,i),c);let l=Z.find(e=>e.id===i);l&&S.p(X,i,{...l,...c})},deleteRecord:async(e,t)=>{let n=Ma(e,t),i=Z.find(e=>e.id===n);if(!oe.d(i,s)){k.n(`Nothing on this page can be deleted.`);return}await(0,J.deleteDoc)((0,J.doc)(r.ui,X,n)),S.m(X,n),await ae.o(i,Z,Oe(n))},startEdit:e=>Je(e),confirmDelete:e=>I(e),uploadFile:()=>{ye.someoneElse||pe.current?.click()},openAddForm:()=>h(!0),setAddForm:e=>M(()=>e),setFileHandler:e=>{P.current=e}}})})})})}):(0,q.jsxs)(q.Fragment,{children:[!Q&&Z.length===0&&(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:`flex-1 flex flex-col items-center justify-center border border-[var(--panel-border)]/50 border-dashed rounded-2xl p-8 py-20 text-center min-h-[350px]`,children:[(0,q.jsx)(`div`,{className:`w-16 h-16 rounded-2xl bg-accent/5 border border-accent/10 flex items-center justify-center mb-5`,children:(0,q.jsx)(E.t,{className:`w-6 h-6 text-accent/40`})}),(0,q.jsx)(`p`,{className:`text-[15px] font-bold mb-1.5 text-foreground/50`,children:`No items yet`}),(0,q.jsx)(`p`,{className:`text-[13px] font-medium text-foreground/35 max-w-xs leading-relaxed`,children:`Use the buttons above to add records or upload files to get started`})]}),!Q&&Z.length>0&&(0,q.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4`,children:(0,q.jsx)(r.rt,{children:Z.map((e,t)=>{let n=U===e.id,i=Se(e),o=_e?ji(e,a):null;return(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,scale:.95},transition:{delay:t*.03,duration:.25},onClick:()=>i&&Je(e),className:`group flex flex-col bg-background border rounded-2xl p-5 transition-all relative ${i?`cursor-pointer`:``} ${n?`border-accent/40 shadow-lg ring-1 ring-accent/20`:`border-[var(--panel-border)] hover:border-accent/30 hover:shadow-lg`}`,children:[(0,q.jsxs)(`div`,{className:`absolute top-3 right-3 flex items-center gap-0.5 opacity-100 md:opacity-0 md:group-hover:opacity-100 transition-all z-10`,children:[e.recordType===`file`&&e.downloadURL&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{onClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(e.downloadURL),Ke(e.id),setTimeout(()=>Ke(null),2e3)},className:`p-1.5 rounded-lg text-foreground/25 hover:text-emerald-500 hover:bg-emerald-500/10 transition-all cursor-pointer`,title:`Copy Link`,children:Ge===e.id?(0,q.jsx)(r.At,{className:`w-3.5 h-3.5 text-emerald-500`}):(0,q.jsx)(c.z,{className:`w-3.5 h-3.5`})}),(0,q.jsx)(`a`,{href:e.downloadURL,target:`_blank`,rel:`noreferrer`,onClick:e=>e.stopPropagation(),className:`p-1.5 rounded-lg text-foreground/25 hover:text-blue-500 hover:bg-blue-500/10 transition-all`,title:`Download`,children:(0,q.jsx)(v.d,{className:`w-3.5 h-3.5`})})]}),i&&(0,q.jsx)(`button`,{onClick:t=>{t.stopPropagation(),Je(e)},className:`p-1.5 rounded-lg text-foreground/25 hover:text-accent hover:bg-accent/10 transition-all cursor-pointer`,title:`Edit`,children:(0,q.jsx)(v.s,{className:`w-3.5 h-3.5`})}),i&&we(e)&&(0,q.jsx)(`button`,{onClick:t=>{t.stopPropagation(),I(e.id)},className:`p-1.5 rounded-lg text-foreground/25 hover:text-red-500 hover:bg-red-500/10 transition-all cursor-pointer`,title:`Delete`,children:(0,q.jsx)(A.t,{className:`w-3.5 h-3.5`})})]}),(0,q.jsxs)(`div`,{className:`flex items-start gap-3 mb-3`,children:[(0,q.jsx)(`div`,{onClick:t=>{t.stopPropagation(),e.recordType===`file`&&R(e)},className:`w-9 h-9 rounded-xl flex items-center justify-center shrink-0 ${e.recordType===`file`?`cursor-pointer hover:scale-105 transition-transform ${$e(e.fileType)}`:`bg-accent/10 text-accent`}`,children:e.recordType===`file`?Qe(e.fileType,e.downloadURL):(0,q.jsx)(`div`,{className:`w-2 h-2 rounded-full bg-current`})}),(0,q.jsxs)(`div`,{className:`flex flex-col min-w-0 flex-1 relative`,children:[ze===e.id?(0,q.jsx)(`input`,{autoFocus:!0,type:`text`,value:Ve,onChange:e=>He(e.target.value),onBlur:()=>Ye(),onKeyDown:e=>{e.key===`Enter`&&Ye(),e.key===`Escape`&&Be(null)},onClick:e=>e.stopPropagation(),className:`no-glow text-[14px] font-bold text-foreground bg-transparent border-b border-accent/30 outline-none pb-0.5 w-full pr-12`}):(0,q.jsx)(`span`,{className:`text-[14px] font-bold text-foreground truncate pr-12`,children:e.name}),e.recordType===`file`&&(0,q.jsx)(`div`,{className:`absolute inset-0 z-0 cursor-pointer`,onClick:()=>R(e)}),(0,q.jsx)(`span`,{className:`text-[11px] text-foreground/35 font-bold uppercase tracking-wider mt-0.5`,children:nt(e.createdAt)})]})]}),e.note&&(0,q.jsx)(`p`,{className:`text-[13px] text-foreground/55 font-medium leading-relaxed line-clamp-3 mb-1`,children:e.note}),Object.entries(e).filter(([e])=>![`name`,`note`,`uid`,`recordType`,`fileName`,`fileType`,`fileSize`,`downloadURL`,`createdAt`,`creatorName`,`creatorEmail`,`creatorAvatar`].includes(e)&&e!==`id`).slice(0,3).map(([e,t])=>(0,q.jsxs)(`div`,{className:`flex items-center gap-1.5 mt-1`,children:[(0,q.jsxs)(`span`,{className:`text-[10px] font-bold text-foreground/30 uppercase tracking-wider shrink-0`,children:[e,`:`]}),(0,q.jsx)(`span`,{className:`text-[11px] font-semibold text-foreground/60 truncate`,children:String(t)})]},e)),o&&(0,q.jsxs)(`div`,{className:`flex items-center gap-2 mt-2 pt-2 border-t border-[var(--panel-border)]/30`,children:[o.avatar?(0,q.jsx)(r.O,{src:o.avatar,alt:``,className:`w-5 h-5 rounded-full shrink-0`}):(0,q.jsx)(`div`,{className:`w-5 h-5 rounded-full bg-accent/15 text-accent flex items-center justify-center text-[8px] font-extrabold shrink-0`,children:o.name.split(` `).map(e=>e[0]).join(``).toUpperCase().slice(0,2)}),(0,q.jsx)(`span`,{className:`text-[11px] font-semibold text-foreground/40 truncate`,children:o.name})]})]},e.id)})})})]})]})]})]}),(0,q.jsx)(r.rt,{children:m&&(0,q.jsxs)(`div`,{className:`fixed inset-0 z-[120] flex items-center justify-center p-4`,children:[(0,q.jsx)(r.nt.div,{onClick:()=>!x&&h(!1),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/60 backdrop-blur-sm cursor-pointer`}),(0,q.jsx)(r.nt.div,{initial:{opacity:0,scale:.97,y:6},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.97,y:6},transition:{duration:.2},className:`w-full max-w-[360px] border-[var(--panel-border)] border rounded-2xl relative z-10 glass-panel shadow-2xl bg-background overflow-hidden`,children:O?K.default.createElement(O,{onSave:async e=>{w(!0);try{await Ne(e),h(!1)}catch(e){console.error(`Error saving record:`,e)}w(!1)},onClose:()=>!x&&h(!1),saving:x}):(0,q.jsxs)(`form`,{onSubmit:Pe,className:`p-5 flex flex-col gap-3`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between mb-1`,children:[(0,q.jsx)(`span`,{className:`text-[14px] font-bold text-foreground`,children:`New Record`}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>!x&&h(!1),className:`text-foreground/30 hover:text-foreground/60 transition-colors cursor-pointer p-0.5`,children:(0,q.jsx)(C.t,{className:`w-4 h-4`})})]}),(0,q.jsx)(`input`,{autoFocus:!0,type:`text`,required:!0,value:g,onChange:e=>_(e.target.value),placeholder:`Name *`,disabled:x,className:`w-full bg-foreground/[0.03] border border-[var(--panel-border)] px-3.5 py-2.5 text-[13px] font-semibold text-foreground outline-none focus:border-accent transition-colors placeholder:text-foreground/30`,style:{borderRadius:`var(--input-radius, 0.75rem)`}}),(0,q.jsx)(r.Q,{value:y,onChange:e=>b(e.target.value),placeholder:`Note (optional)`,disabled:x,rows:2,className:`w-full bg-foreground/[0.03] border border-[var(--panel-border)] px-3.5 py-2.5 text-[13px] font-medium text-foreground outline-none focus:border-accent transition-colors placeholder:text-foreground/30 resize-none`,style:{borderRadius:`var(--input-radius, 0.75rem)`}}),(0,q.jsx)(`div`,{className:`flex justify-end pt-1`,children:(0,q.jsx)(N.t,{type:`submit`,isLoading:x,className:`px-5 py-2 text-[12px] font-bold shadow-md`,children:x?`Saving…`:`Save`})})]})})]})}),typeof window<`u`&&(0,fe.createPortal)((0,q.jsx)(r.rt,{children:z&&(0,q.jsxs)(`div`,{className:`fixed inset-0 z-[9999] flex items-center justify-center p-4 md:p-12`,children:[(0,q.jsx)(r.nt.div,{onClick:()=>R(null),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/95 backdrop-blur-xl cursor-pointer`}),(0,q.jsx)(`button`,{onClick:()=>R(null),className:`absolute top-6 right-6 z-[160] w-12 h-12 bg-foreground/10 hover:bg-foreground/20 text-foreground rounded-full flex items-center justify-center backdrop-blur-md transition-all cursor-pointer outline-none`,children:(0,q.jsx)(C.t,{className:`w-5 h-5`})}),(0,q.jsxs)(r.nt.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},className:`relative z-10 w-full max-w-6xl max-h-[85vh] flex flex-col pointer-events-auto shadow-2xl rounded-3xl overflow-hidden glass-panel border border-[var(--panel-border)]`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between p-6 bg-background/80 backdrop-blur-md border-b border-[var(--panel-border)] shrink-0 shadow-sm z-20`,children:[(0,q.jsxs)(`div`,{className:`flex flex-col min-w-0 pr-4`,children:[(0,q.jsx)(`span`,{className:`text-xl font-bold text-foreground truncate`,children:z.fileName||z.name}),(0,q.jsxs)(`span`,{className:`text-[12px] text-foreground/70 font-bold uppercase tracking-wider mt-1`,children:[et(z.fileType),` • `,tt(z.fileSize||0)]})]}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,q.jsx)(`button`,{onClick:()=>{navigator.clipboard.writeText(z.downloadURL),Ke(`preview`),setTimeout(()=>Ke(null),2e3)},className:`p-2.5 bg-foreground/5 hover:bg-foreground/10 text-foreground/70 transition-colors rounded-xl shadow-sm hover:text-emerald-500 cursor-pointer`,title:`Copy Link`,children:Ge===`preview`?(0,q.jsx)(r.At,{className:`w-4 h-4 text-emerald-500`}):(0,q.jsx)(c.z,{className:`w-4 h-4`})}),(0,q.jsx)(`button`,{onClick:()=>{R(null),Be(z.id),He(z.name)},className:`p-2.5 bg-foreground/5 hover:bg-foreground/10 text-foreground/70 hover:text-accent transition-colors rounded-xl shadow-sm cursor-pointer`,title:`Rename`,children:(0,q.jsx)(v.s,{className:`w-4 h-4`})}),(0,q.jsx)(`button`,{onClick:()=>{R(null),I(z.id)},className:`p-2.5 bg-red-500/10 hover:bg-red-500/20 text-red-500 transition-colors rounded-xl shadow-sm cursor-pointer`,title:`Delete`,children:(0,q.jsx)(A.t,{className:`w-4 h-4`})}),(0,q.jsx)(`a`,{href:z.downloadURL,download:!0,target:`_blank`,rel:`noreferrer`,className:`p-2.5 btn-primary transition-colors rounded-xl shadow-lg ml-1`,title:`Download`,children:(0,q.jsx)(v.d,{className:`w-4 h-4`})})]})]}),(0,q.jsx)(`div`,{className:`flex-1 w-full relative bg-foreground/[0.02] min-h-[50vh] md:min-h-[600px]`,onClick:()=>R(null),children:(0,q.jsxs)(`div`,{className:`absolute inset-x-4 inset-y-8 md:inset-x-12 md:inset-y-12 flex items-center justify-center`,children:[re&&(0,q.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center rounded-lg z-50 pointer-events-none`,children:(0,q.jsx)(`div`,{className:`w-12 h-12 rounded-full bg-background/80 backdrop-blur-md shadow-xl flex items-center justify-center border border-[var(--panel-border)]/50`,children:(0,q.jsx)(C.r,{className:`w-5 h-5 text-accent animate-spin`})})}),z.fileType?.startsWith(`image/`)?(0,q.jsx)(`img`,{onLoad:()=>V(!1),onError:()=>V(!1),src:z.downloadURL,alt:z.fileName||z.name,className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-auto h-auto max-w-full max-h-full object-contain drop-shadow-[0_0_40px_rgba(0,0,0,0.5)] rounded-lg pointer-events-auto transition-opacity duration-500 ${re?`opacity-0`:`opacity-100`}`,onClick:e=>e.stopPropagation()}):z.fileType?.startsWith(`video/`)?(0,q.jsx)(`video`,{onLoadedData:()=>V(!1),onError:()=>V(!1),src:z.downloadURL,controls:!0,autoPlay:!0,className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-auto h-auto max-w-full max-h-full outline-none bg-black/40 rounded-lg pointer-events-auto drop-shadow-[0_0_40px_rgba(0,0,0,0.5)] transition-opacity duration-500 ${re?`opacity-0`:`opacity-100`}`,onClick:e=>e.stopPropagation()}):z.fileType===`application/pdf`?(0,q.jsx)(`iframe`,{onLoad:()=>V(!1),src:z.downloadURL,className:`w-full h-full border-none rounded-lg relative z-10 transition-opacity duration-500 ${re?`opacity-0`:`opacity-100`}`,style:{backgroundColor:`white`},title:`PDF Preview`,onClick:e=>e.stopPropagation()}):(0,q.jsxs)(`div`,{className:`w-full h-full flex flex-col items-center justify-center text-foreground/40 text-center relative z-10`,onClick:e=>{e.stopPropagation(),V(!1)},children:[(0,q.jsx)(v.u,{className:`w-24 h-24 mb-6 opacity-40 drop-shadow-sm`}),(0,q.jsx)(`span`,{className:`text-[20px] font-extrabold text-foreground`,children:`Preview Unavailable`}),(0,q.jsx)(`span`,{className:`text-[14px] mt-2 text-foreground/60 font-medium max-w-xs`,children:`This file format cannot be previewed. Please download it instead.`})]})]})})]})]})}),document.body),(0,q.jsx)(r.rt,{children:U&&(0,q.jsxs)(`div`,{className:`fixed inset-0 z-[120] flex items-center justify-center p-4`,children:[(0,q.jsx)(r.nt.div,{onClick:()=>Xe(),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/60 backdrop-blur-sm cursor-pointer`}),(0,q.jsx)(r.nt.div,{initial:{opacity:0,scale:.97,y:6},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.97,y:6},transition:{duration:.2},className:`w-full max-w-[440px] border-[var(--panel-border)] border rounded-2xl relative z-10 glass-panel shadow-2xl bg-background overflow-hidden`,children:(0,q.jsxs)(`div`,{className:`p-5 flex flex-col gap-3 max-h-[80vh] overflow-y-auto`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between mb-2 mt-2 px-1`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(`span`,{className:`text-[14px] font-bold text-foreground`,children:`Edit Record`}),x&&(0,q.jsx)(C.r,{className:`w-3 h-3 animate-spin text-foreground/40`})]}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>Xe(),className:`text-foreground/30 hover:text-foreground/60 transition-colors cursor-pointer`,children:(0,q.jsx)(C.t,{className:`w-4 h-4`})})]}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-0 max-h-[70vh] overflow-y-auto no-scrollbar px-1`,children:[(0,q.jsxs)(`div`,{className:`flex flex-col relative group/field`,children:[(0,q.jsx)(`input`,{readOnly:!0,value:`NAME`,className:`no-glow bg-transparent text-[10px] font-bold text-foreground/30 uppercase tracking-[0.15em] outline-none pt-3 pb-0.5`}),(0,q.jsx)(`input`,{autoFocus:!0,required:!0,value:W,onChange:e=>le(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},onBlur:()=>Ze(),placeholder:`Name *`,className:`no-glow bg-transparent text-[13px] font-medium text-foreground outline-none placeholder:text-foreground/15 pb-1 caret-foreground/50`}),(0,q.jsx)(`div`,{className:`border-b border-dashed border-[var(--panel-border)]/60`})]}),(0,q.jsxs)(`div`,{className:`flex flex-col relative group/field`,children:[(0,q.jsx)(`input`,{readOnly:!0,value:`NOTE`,className:`no-glow bg-transparent text-[10px] font-bold text-foreground/30 uppercase tracking-[0.15em] outline-none pt-3 pb-0.5`}),(0,q.jsx)(r.Q,{value:G,onChange:e=>ue(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),e.target.blur())},onBlur:()=>Ze(),placeholder:`Add a note...`,rows:1,className:`no-glow bg-transparent text-[13px] font-medium text-foreground outline-none placeholder:text-foreground/15 pb-1 caret-foreground/50 resize-none overflow-hidden`}),(0,q.jsx)(`div`,{className:`border-b border-dashed border-[var(--panel-border)]/60`})]}),de.map((e,t)=>(0,q.jsxs)(`div`,{className:`flex flex-col relative group/field`,children:[(0,q.jsx)(`input`,{placeholder:`FIELD NAME`,value:e.key,onChange:e=>{let n=[...de];n[t].key=e.target.value,Y(n)},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},onBlur:()=>Ze(),className:`no-glow bg-transparent text-[10px] font-bold text-foreground/30 uppercase tracking-[0.15em] outline-none placeholder:text-foreground/15 pt-3 pb-0.5 caret-foreground/40`}),(0,q.jsx)(`input`,{placeholder:`Field value...`,value:e.value,onChange:e=>{let n=[...de];n[t].value=e.target.value,Y(n)},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},onBlur:()=>Ze(),className:`no-glow bg-transparent text-[13px] font-medium text-foreground outline-none placeholder:text-foreground/15 pt-1.5 pb-1 caret-foreground/50`}),(0,q.jsx)(`div`,{className:`border-b border-dashed border-[var(--panel-border)]/60`}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>Y(de.filter((e,n)=>n!==t)),className:`absolute top-3 right-0 p-1 text-foreground/0 group-hover/field:text-foreground/20 hover:!text-red-400 transition-colors cursor-pointer`,children:(0,q.jsx)(C.t,{className:`w-3 h-3`})})]},t)),(0,q.jsxs)(`button`,{type:`button`,onClick:()=>Y([...de,{key:``,value:``}]),className:`flex items-center gap-1.5 text-[11px] font-medium text-foreground/25 hover:text-foreground/40 transition-colors cursor-pointer mt-4 mb-4`,children:[(0,q.jsx)(E.t,{className:`w-3 h-3`}),` Add Field`]})]})]})})]})}),(0,q.jsx)(ie.t,{isOpen:!!F,onCancel:()=>I(null),onConfirm:Re,title:`Delete Record`,message:(0,q.jsxs)(q.Fragment,{children:[`Are you sure you want to delete `,(0,q.jsx)(`strong`,{className:`text-foreground font-extrabold break-words mx-1`,children:Z.find(e=>e.id===F)?.name}),` This action cannot be undone.`]}),confirmText:`Delete`,isProcessing:H})]})}var Xa=({record:e})=>{let t=e.creatorName||e.creatorEmail?.split(`@`)[0]||`Admin`,n=e.creatorEmail||``,i=e.creatorAvatar||``,a=t.split(` `).map(e=>e[0]).join(``).toUpperCase().slice(0,2);return(0,q.jsxs)(`div`,{className:`flex items-center gap-2 mt-2 pt-2 border-t border-[var(--panel-border)]/30`,children:[i?(0,q.jsx)(r.O,{src:i,alt:``,className:`w-5 h-5 rounded-full shrink-0`}):(0,q.jsx)(`div`,{className:`w-5 h-5 rounded-full bg-accent/15 text-accent flex items-center justify-center text-[8px] font-extrabold shrink-0`,children:a}),(0,q.jsxs)(`div`,{className:`flex items-center gap-1 min-w-0 flex-1`,children:[(0,q.jsx)(`span`,{className:`text-[11px] font-semibold text-foreground/40 truncate`,children:t}),n&&(0,q.jsxs)(`span`,{className:`text-[10px] text-foreground/25 truncate`,children:[`· `,n]})]})]})};function Za({config:e,customContent:t}){let{user:a}=r.Ft(),{config:o}=i.N(),[s,l]=(0,K.useState)([]),[u,d]=(0,K.useState)(!0),[f,p]=(0,K.useState)(!1),[m,h]=(0,K.useState)(``),[g,_]=(0,K.useState)(``),[y,b]=(0,K.useState)(!1),[x,w]=(0,K.useState)(``),[T,D]=(0,K.useState)(null),O=(0,K.useRef)(null),[k,M]=(0,K.useState)(null),[P,F]=(0,K.useState)(null),I=e=>{if(F(e),e){let t=e.fileType||``;R(t.startsWith(`image/`)||t.startsWith(`video/`)||t===`application/pdf`)}},L=P,[ne,R]=(0,K.useState)(!0),[z,re]=(0,K.useState)(!1),[V,oe]=(0,K.useState)(null),[H,se]=(0,K.useState)(``),[U,ce]=(0,K.useState)(``),[W,le]=(0,K.useState)([]),G=(0,K.useRef)(null),[ue,de]=(0,K.useState)(null),Y=(0,K.useRef)([]),pe=`admin_${B.o(e,`admin_page`)}_records`,me=ae.i(`admin_`);(0,K.useEffect)(()=>{document.title=e.tabTitle||e.tabName||o.appName||`Your AI Firebase`},[e.tabTitle,e.tabName,o.appName]);let he=()=>({name:a.displayName||a.email?.split(`@`)[0]||`Admin`,email:a.email||``,avatar:a.photoURL||``}),ge=a?.uid;(0,K.useEffect)(()=>{if(!ge)return;try{let e=S.o(pe,ge);e?(l(e),d(!1)):d(!0)}catch{}let e=e=>Na(e),t=(0,J.onSnapshot)((0,J.query)((0,J.collection)(r.ui,pe),(0,J.orderBy)(`createdAt`,`desc`),(0,J.limit)(150)),t=>{let n=e(t.docs);l(n),d(!1),S.s(pe,ge,n)},e=>{console.warn(`${pe}: this account cannot read the records here (${e?.code||`permission-denied`}). An admins page needs a verified address and an account marked Admin on the Users screen.`),l(e=>e.length?[]:e),d(!1)});return()=>t()},[ge,pe]);let _e=async e=>{if(e.preventDefault(),!(!a||!m.trim())){b(!0);try{let e=he();await(0,J.addDoc)((0,J.collection)(r.ui,pe),{name:m.trim(),note:g.trim(),uid:a.uid,recordType:`record`,creatorName:e.name,creatorEmail:e.email,creatorAvatar:e.avatar,createdAt:(0,J.serverTimestamp)()}),h(``),_(``),p(!1)}catch(e){console.error(`Error saving admin record:`,e)}b(!1)}},X=c.b({upload:async(e,t)=>{if(!a)throw Error(`Sign in again before uploading.`);let n=await ee._(e),i=`${me}/${c.h(n.name)}`,o=await c.y(i,n,{customMetadata:{ownerId:a.uid},onProgress:t.progress,signal:t.signal});if(O.current)O.current(n,o,{uid:a.uid,storagePath:i});else{let e=he();await(0,J.addDoc)((0,J.collection)(r.ui,pe),{name:n.name,note:`${n.type||`File`} · ${Me(n.size)}`,uid:a.uid,recordType:`file`,fileName:n.name,fileType:n.type||`unknown`,fileSize:n.size,downloadURL:o,storagePath:i,creatorName:e.name,creatorEmail:e.email,creatorAvatar:e.avatar,createdAt:(0,J.serverTimestamp)()})}},onFailed:e=>w(`${e.name}: ${e.error||`That upload did not work.`}`),onSettled:()=>X.clear()}),ve=X.busy,ye=e=>{let t=Array.from(e.target.files||[]);e.target.value=``,!(!t.length||!a)&&(w(``),X.add(t))},be=async()=>{if(k){re(!0);try{let e=s.find(e=>e.id===k);await(0,J.deleteDoc)((0,J.doc)(r.ui,pe,k)),await ae.o(e,s,me),M(null)}catch(e){console.error(`Error deleting admin record:`,e)}re(!1)}},[xe,Z]=(0,K.useState)(null),[Q,Se]=(0,K.useState)(``),[Ce,we]=(0,K.useState)(!1),Te=e=>{if(e.recordType===`file`){Z(e.id),Se(e.name);return}oe(e.id),se(e.name),ce(e.note||``);let t=[`name`,`note`,`uid`,`recordType`,`fileName`,`fileType`,`fileSize`,`downloadURL`,`storagePath`,`createdAt`,`creatorName`,`creatorEmail`,`creatorAvatar`],n=Object.entries(e).filter(([e])=>!t.includes(e)&&e!==`id`).map(([e,t])=>({key:e,value:String(t??``)}));le(n),Y.current=n.map(e=>e.key)},Ee=async()=>{if(!xe||!Q.trim()){Z(null);return}let e=s.find(e=>e.id===xe);if(e&&e.name===Q.trim()){Z(null);return}we(!0);try{await(0,J.updateDoc)((0,J.doc)(r.ui,pe,xe),{name:Q.trim()}),l(e=>e.map(e=>e.id===xe?{...e,name:Q.trim()}:e))}catch(e){console.error(`Error renaming file:`,e)}we(!1),Z(null)},De=async()=>{if(!V||!H.trim()){oe(null);return}b(!0);let e={};W.forEach(({key:t,value:n})=>{t.trim()&&(e[t.trim()]=n)});let t=W.map(e=>e.key.trim()).filter(Boolean),n=Y.current.filter(e=>!t.includes(e));n.forEach(t=>{e[t]=(0,J.deleteField)()});try{await(0,J.updateDoc)((0,J.doc)(r.ui,pe,V),{name:H.trim(),note:U.trim(),...e}),l(e=>e.map(e=>{if(e.id!==V)return e;let t={...e,name:H.trim(),note:U.trim()};return n.forEach(e=>{delete t[e]}),W.forEach(({key:e,value:n})=>{e.trim()&&(t[e.trim()]=n)}),t})),Y.current=t}catch(e){console.error(`Error updating record:`,e)}b(!1),oe(null)},Oe=async()=>{if(!V||!H.trim())return;let e={};W.forEach(({key:t,value:n})=>{t.trim()&&(e[t.trim()]=n)});let t=W.map(e=>e.key.trim()).filter(Boolean),n=Y.current.filter(e=>!t.includes(e));n.forEach(t=>{e[t]=(0,J.deleteField)()});try{await(0,J.updateDoc)((0,J.doc)(r.ui,pe,V),{name:H.trim(),note:U.trim(),...e}),l(e=>e.map(e=>{if(e.id!==V)return e;let t={...e,name:H.trim(),note:U.trim()};return n.forEach(e=>{delete t[e]}),W.forEach(({key:e,value:n})=>{e.trim()&&(t[e.trim()]=n)}),t})),Y.current=t}catch(e){console.error(`Error silently saving record:`,e)}},ke=(e,t)=>e?e.startsWith(`image/`)?t?(0,q.jsx)(`div`,{className:`w-9 h-9 rounded-xl bg-cover bg-center shrink-0`,style:{backgroundImage:`url(${t})`}}):(0,q.jsx)(v.c,{className:`w-4 h-4`}):e.startsWith(`video/`)||e.startsWith(`audio/`)?(0,q.jsx)(c.R,{className:`w-4 h-4`}):e.includes(`pdf`)||e.includes(`word`)||e.includes(`text`)?(0,q.jsx)(v.u,{className:`w-4 h-4`}):e.includes(`zip`)||e.includes(`rar`)||e.includes(`archive`)?(0,q.jsx)(c.V,{className:`w-4 h-4`}):e.includes(`html`)||e.includes(`csv`)||e.includes(`json`)?(0,q.jsx)(c.B,{className:`w-4 h-4`}):(0,q.jsx)(v.l,{className:`w-4 h-4`}):(0,q.jsx)(v.u,{className:`w-4 h-4`}),Ae=e=>e?e.startsWith(`image/`)?`bg-emerald-500/10 text-emerald-500`:e.startsWith(`video/`)||e.startsWith(`audio/`)?`bg-accent/10 text-accent`:e.includes(`pdf`)||e.includes(`word`)||e.includes(`text`)?`bg-blue-500/10 text-blue-500`:e.includes(`zip`)||e.includes(`rar`)||e.includes(`archive`)?`bg-yellow-500/10 text-yellow-500`:e.includes(`html`)||e.includes(`csv`)||e.includes(`json`)?`bg-emerald-500/10 text-emerald-500`:`bg-foreground/5 text-foreground/40`:`bg-foreground/5 text-foreground/40`,je=e=>{if(!e)return`FILE`;let t={"application/pdf":`PDF`,"application/zip":`ZIP`,"application/x-zip-compressed":`ZIP`,"application/x-rar-compressed":`RAR`,"application/x-7z-compressed":`7Z`,"application/json":`JSON`,"application/xml":`XML`,"application/javascript":`JS`,"application/typescript":`TS`,"application/msword":`DOC`,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":`DOCX`,"application/vnd.ms-excel":`XLS`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":`XLSX`,"application/vnd.ms-powerpoint":`PPT`,"application/vnd.openxmlformats-officedocument.presentationml.presentation":`PPTX`,"application/rtf":`RTF`,"application/x-tar":`TAR`,"application/gzip":`GZ`,"text/plain":`TXT`,"text/html":`HTML`,"text/css":`CSS`,"text/csv":`CSV`,"text/markdown":`MD`},n=e.toLowerCase();if(t[n])return t[n];let r=n.split(`/`);return r[r.length-1].replace(/^x-/,``).replace(/^vnd\..*\./,``).toUpperCase().slice(0,10)},Me=e=>{if(!e)return`0 B`;let t=1024,n=[`B`,`KB`,`MB`,`GB`],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/t**+r).toFixed(2))+` `+n[r]},Ne=e=>{if(!e)return``;let t=e.toMillis?e.toMillis():e;return new Date(t).toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`})},Pe=n.p(e.buttonStorageIcon)||xt,Fe=e.buttonStyle!==`secondary`,Ie=e.buttonStorageStyle===`primary`,Le=e=>e.uid===a?.uid;return(0,q.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,q.jsx)(r.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-6 flex items-center justify-between`,children:(0,q.jsxs)(`div`,{children:[(0,q.jsx)(n.t,{children:e.tabTitle||e.tabName||`Admin Page`}),e.route&&(0,q.jsxs)(`div`,{className:`flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,q.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),e.route]})]})}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-6 flex-1 pb-16`,children:[(0,q.jsx)(i.t,{}),(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:t?`flex flex-col flex-1 relative`:`flex flex-col glass-panel border border-[var(--panel-border)] rounded-3xl overflow-hidden flex-1 shadow-2xl bg-background`,children:[(0,q.jsx)(`input`,{type:`file`,multiple:!0,ref:G,onChange:ye,className:`hidden`}),!t&&(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3 sm:gap-4 p-4 sm:p-6 md:px-8 md:py-6 border-b border-[var(--panel-border)]/50 bg-background/50 shrink-0`,children:[(0,q.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,q.jsx)(`h2`,{className:`text-xl font-bold text-foreground tracking-tight truncate`,children:e.tabTitle||e.tabName||`Dashboard`}),(0,q.jsx)(`p`,{className:`text-[13px] font-medium text-foreground/50 mt-1`,children:u?`Loading…`:`${s.length} ${s.length===1?`item`:`items`}`}),x&&(0,q.jsx)(`p`,{className:`text-[12px] font-semibold text-red-500 mt-1 truncate`,role:`alert`,children:x})]}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[e.storage!==!1&&(0,q.jsx)(q.Fragment,{children:(0,q.jsxs)(r.nt.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>G.current?.click(),title:ve?X.done?`${X.done} of ${X.total} uploaded…`:`Uploading ${X.total===1?`your file`:`${X.total} files`}…`:e.buttonStorageText||`Upload files`,className:`h-10 flex items-center justify-center gap-2 rounded-xl transition-all duration-300 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed ${e.buttonStorageText?`px-4`:`w-10`} ${Ie?`btn-primary`:`btn-secondary`}`,children:[ve?(0,q.jsx)(C.r,{className:`w-4 h-4 animate-spin`}):(0,q.jsx)(Pe,{className:`w-4 h-4`}),e.buttonStorageText&&(0,q.jsx)(`span`,{className:`text-[13px] font-bold`,children:e.buttonStorageText})]})}),e.showButton!==!1&&(0,q.jsx)(r.nt.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>p(!0),title:`Add New`,className:`h-10 flex items-center justify-center gap-2 rounded-xl transition-all duration-300 cursor-pointer ${e.buttonText&&e.buttonText!==`+`?`px-5`:`w-10`} ${Fe?`btn-primary`:`btn-secondary`}`,children:e.buttonText===`+`||!e.buttonText?(0,q.jsx)(E.t,{className:`w-4 h-4`}):(0,q.jsx)(`span`,{className:`text-[13px] font-bold`,children:e.buttonText})})]})]}),(0,q.jsxs)(`div`,{className:t?`flex-1 flex flex-col relative min-h-[400px]`:`p-6 md:p-8 flex-1 overflow-y-auto relative min-h-[400px]`,children:[u&&(0,q.jsx)(`div`,{className:`absolute inset-0 z-10 flex items-center justify-center bg-background/50 backdrop-blur-sm`,children:(0,q.jsx)(C.r,{className:`w-8 h-8 text-accent animate-spin`})}),t?(0,q.jsx)(c.p,{value:{prefix:`admin_`,collection:pe},children:(0,q.jsx)(`div`,{className:`fbos-content-slot fbos-tab-fill`,children:(0,q.jsx)(j.p,{size:`part`,children:(0,q.jsx)(te.t,{config:e,children:(0,q.jsx)(t,{config:e,actions:{records:s,loading:u,collection:pe,user:a,saveRecord:async(e,t)=>{let n=Ua(Pa(Aa(e,t))),i=Fa(n);if(i&&(s.some(e=>e.id===i)||await(0,J.getDoc)((0,J.doc)(r.ui,pe,i)).then(e=>e.exists()).catch(()=>!1)))return i;let o=i?(0,J.doc)(r.ui,pe,i):(0,J.doc)((0,J.collection)(r.ui,pe)),c=he(),u={uid:a.uid,recordType:`record`,creatorName:c.name,creatorEmail:c.email,creatorAvatar:c.avatar,createdAt:Date.now(),...n,id:o.id};l(e=>[u,...e.filter(e=>e.id!==u.id)]);let d={uid:a.uid,recordType:`record`,creatorName:c.name,creatorEmail:c.email,creatorAvatar:c.avatar,createdAt:(0,J.serverTimestamp)(),...n};return await(0,J.setDoc)(o,d),S.p(pe,o.id,d),o.id},updateRecord:async(e,t,n)=>{let{id:i,data:o}=ja(e,t,n),c=Pa(o),u={...ki(a),...Ua(c,s.find(e=>e.id===i))};l(e=>e.map(e=>e.id===i?{...e,...u}:e)),await(0,J.updateDoc)((0,J.doc)(r.ui,pe,i),u);let d=s.find(e=>e.id===i);d&&S.p(pe,i,{...d,...u})},deleteRecord:async(e,t)=>{let n=Ma(e,t),i=s.find(e=>e.id===n);await(0,J.deleteDoc)((0,J.doc)(r.ui,pe,n)),S.m(pe,n),await ae.o(i,s,me)},startEdit:e=>Te(e),confirmDelete:e=>M(e),uploadFile:()=>G.current?.click(),openAddForm:()=>p(!0),setAddForm:e=>D(()=>e),setFileHandler:e=>{O.current=e}}})})})})}):(0,q.jsxs)(q.Fragment,{children:[!u&&s.length===0&&(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:`flex-1 flex flex-col items-center justify-center border border-[var(--panel-border)]/50 border-dashed rounded-2xl p-8 py-20 text-center min-h-[350px]`,children:[(0,q.jsx)(`div`,{className:`w-16 h-16 rounded-2xl bg-accent/5 border border-accent/10 flex items-center justify-center mb-5`,children:(0,q.jsx)(E.t,{className:`w-6 h-6 text-accent/40`})}),(0,q.jsx)(`p`,{className:`text-[15px] font-bold mb-1.5 text-foreground/50`,children:`No items yet`}),(0,q.jsx)(`p`,{className:`text-[13px] font-medium text-foreground/35 max-w-xs leading-relaxed`,children:`Use the buttons above to add records or upload files. All admins can view and contribute.`})]}),!u&&s.length>0&&(0,q.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4`,children:(0,q.jsx)(r.rt,{children:s.map((e,t)=>{let n=V===e.id,i=Le(e);return(0,q.jsxs)(r.nt.div,{initial:!1,animate:{opacity:1,y:0},exit:{opacity:0,scale:.95},onClick:()=>Te(e),className:`group flex flex-col bg-background border rounded-2xl p-5 transition-all relative cursor-pointer ${n?`border-accent/40 shadow-lg ring-1 ring-accent/20`:`border-[var(--panel-border)] hover:border-accent/30 hover:shadow-lg`}`,children:[(0,q.jsxs)(`div`,{className:`absolute top-3 right-3 flex items-center gap-0.5 opacity-100 md:opacity-0 md:group-hover:opacity-100 transition-all z-10`,children:[e.recordType===`file`&&e.downloadURL&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{onClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(e.downloadURL),de(e.id),setTimeout(()=>de(null),2e3)},className:`p-1.5 rounded-lg text-foreground/25 hover:text-emerald-500 hover:bg-emerald-500/10 transition-all cursor-pointer`,title:`Copy Link`,children:ue===e.id?(0,q.jsx)(r.At,{className:`w-3.5 h-3.5 text-emerald-500`}):(0,q.jsx)(c.z,{className:`w-3.5 h-3.5`})}),(0,q.jsx)(`a`,{href:e.downloadURL,target:`_blank`,rel:`noreferrer`,onClick:e=>e.stopPropagation(),className:`p-1.5 rounded-lg text-foreground/25 hover:text-blue-500 hover:bg-blue-500/10 transition-all`,title:`Download`,children:(0,q.jsx)(v.d,{className:`w-3.5 h-3.5`})})]}),i&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{onClick:t=>{t.stopPropagation(),Te(e)},className:`p-1.5 rounded-lg text-foreground/25 hover:text-accent hover:bg-accent/10 transition-all cursor-pointer`,title:`Edit`,children:(0,q.jsx)(v.s,{className:`w-3.5 h-3.5`})}),(0,q.jsx)(`button`,{onClick:t=>{t.stopPropagation(),M(e.id)},className:`p-1.5 rounded-lg text-foreground/25 hover:text-red-500 hover:bg-red-500/10 transition-all cursor-pointer`,title:`Delete`,children:(0,q.jsx)(A.t,{className:`w-3.5 h-3.5`})})]})]}),(0,q.jsxs)(`div`,{className:`flex items-start gap-3 mb-2`,children:[(0,q.jsx)(`div`,{onClick:t=>{t.stopPropagation(),e.recordType===`file`&&I(e)},className:`w-9 h-9 rounded-xl flex items-center justify-center shrink-0 ${e.recordType===`file`?`cursor-pointer hover:scale-105 transition-transform ${Ae(e.fileType)}`:`bg-accent/10 text-accent`}`,children:e.recordType===`file`?ke(e.fileType,e.downloadURL):(0,q.jsx)(`div`,{className:`w-2 h-2 rounded-full bg-current`})}),(0,q.jsxs)(`div`,{className:`flex flex-col min-w-0 flex-1 relative`,children:[xe===e.id?(0,q.jsx)(`input`,{autoFocus:!0,type:`text`,value:Q,onChange:e=>Se(e.target.value),onBlur:()=>Ee(),onKeyDown:e=>{e.key===`Enter`&&Ee(),e.key===`Escape`&&Z(null)},onClick:e=>e.stopPropagation(),className:`no-glow text-[14px] font-bold text-foreground bg-transparent border-b border-accent/30 outline-none pb-0.5 w-full pr-12`}):(0,q.jsx)(`span`,{className:`text-[14px] font-bold text-foreground truncate pr-12`,children:e.name}),e.recordType===`file`&&(0,q.jsx)(`div`,{className:`absolute inset-0 z-0 cursor-pointer`,onClick:()=>I(e)}),(0,q.jsx)(`span`,{className:`text-[11px] text-foreground/35 font-bold uppercase tracking-wider mt-0.5`,children:Ne(e.createdAt)})]})]}),e.note&&(0,q.jsx)(`p`,{className:`text-[13px] text-foreground/55 font-medium leading-relaxed line-clamp-3 mb-1`,children:e.note}),Object.entries(e).filter(([e])=>![`name`,`note`,`uid`,`recordType`,`fileName`,`fileType`,`fileSize`,`downloadURL`,`createdAt`,`creatorName`,`creatorEmail`,`creatorAvatar`].includes(e)&&e!==`id`).slice(0,3).map(([e,t])=>(0,q.jsxs)(`div`,{className:`flex items-center gap-1.5 mt-1`,children:[(0,q.jsxs)(`span`,{className:`text-[10px] font-bold text-foreground/30 uppercase tracking-wider shrink-0`,children:[e,`:`]}),(0,q.jsx)(`span`,{className:`text-[11px] font-semibold text-foreground/60 truncate`,children:String(t)})]},e)),(0,q.jsx)(Xa,{record:e})]},e.id)})})})]})]})]})]}),(0,q.jsx)(r.rt,{children:f&&(0,q.jsxs)(`div`,{className:`fixed inset-0 z-[120] flex items-center justify-center p-4`,children:[(0,q.jsx)(r.nt.div,{onClick:()=>!y&&p(!1),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/60 backdrop-blur-sm cursor-pointer`}),(0,q.jsx)(r.nt.div,{initial:{opacity:0,scale:.97,y:6},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.97,y:6},transition:{duration:.2},className:`w-full max-w-[360px] border-[var(--panel-border)] border rounded-2xl relative z-10 glass-panel shadow-2xl bg-background overflow-hidden`,children:T?K.default.createElement(T,{onSave:async e=>{b(!0);try{let t=he();await(0,J.addDoc)((0,J.collection)(r.ui,pe),{uid:a.uid,recordType:`record`,creatorName:t.name,creatorEmail:t.email,creatorAvatar:t.avatar,createdAt:(0,J.serverTimestamp)(),...e}),p(!1)}catch(e){console.error(`Error saving record:`,e)}b(!1)},onClose:()=>!y&&p(!1),saving:y}):(0,q.jsxs)(`form`,{onSubmit:_e,className:`p-5 flex flex-col gap-3`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between mb-1`,children:[(0,q.jsx)(`span`,{className:`text-[14px] font-bold text-foreground`,children:`New Record`}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>!y&&p(!1),className:`text-foreground/30 hover:text-foreground/60 transition-colors cursor-pointer p-0.5`,children:(0,q.jsx)(C.t,{className:`w-4 h-4`})})]}),(0,q.jsx)(`input`,{autoFocus:!0,type:`text`,required:!0,value:m,onChange:e=>h(e.target.value),placeholder:`Name *`,disabled:y,className:`w-full bg-foreground/[0.03] border border-[var(--panel-border)] px-3.5 py-2.5 text-[13px] font-semibold text-foreground outline-none focus:border-accent transition-colors placeholder:text-foreground/30`,style:{borderRadius:`var(--input-radius, 0.75rem)`}}),(0,q.jsx)(r.Q,{value:g,onChange:e=>_(e.target.value),placeholder:`Note (optional)`,disabled:y,rows:2,className:`w-full bg-foreground/[0.03] border border-[var(--panel-border)] px-3.5 py-2.5 text-[13px] font-medium text-foreground outline-none focus:border-accent transition-colors placeholder:text-foreground/30 resize-none`,style:{borderRadius:`var(--input-radius, 0.75rem)`}}),(0,q.jsx)(`div`,{className:`flex justify-end pt-1`,children:(0,q.jsx)(N.t,{type:`submit`,isLoading:y,className:`px-5 py-2 text-[12px] font-bold shadow-md`,children:y?`Saving…`:`Save`})})]})})]})}),typeof window<`u`&&(0,fe.createPortal)((0,q.jsx)(r.rt,{children:L&&(0,q.jsxs)(`div`,{className:`fixed inset-0 z-[9999] flex items-center justify-center p-4 md:p-12`,children:[(0,q.jsx)(r.nt.div,{onClick:()=>I(null),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/95 backdrop-blur-xl cursor-pointer`}),(0,q.jsx)(`button`,{onClick:()=>I(null),className:`absolute top-6 right-6 z-[160] w-12 h-12 bg-foreground/10 hover:bg-foreground/20 text-foreground rounded-full flex items-center justify-center backdrop-blur-md transition-all cursor-pointer outline-none`,children:(0,q.jsx)(C.t,{className:`w-5 h-5`})}),(0,q.jsxs)(r.nt.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},className:`relative z-10 w-full max-w-6xl max-h-[85vh] flex flex-col pointer-events-auto shadow-2xl rounded-3xl overflow-hidden glass-panel border border-[var(--panel-border)]`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between p-6 bg-background/80 backdrop-blur-md border-b border-[var(--panel-border)] shrink-0 shadow-sm z-20`,children:[(0,q.jsxs)(`div`,{className:`flex flex-col min-w-0 pr-4`,children:[(0,q.jsx)(`span`,{className:`text-xl font-bold text-foreground truncate`,children:L.fileName||L.name}),(0,q.jsxs)(`span`,{className:`text-[12px] text-foreground/70 font-bold uppercase tracking-wider mt-1`,children:[je(L.fileType),` • `,Me(L.fileSize||0)]})]}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,q.jsx)(`button`,{onClick:()=>{navigator.clipboard.writeText(L.downloadURL),de(`preview`),setTimeout(()=>de(null),2e3)},className:`p-2.5 bg-foreground/5 hover:bg-foreground/10 text-foreground/70 transition-colors rounded-xl shadow-sm hover:text-emerald-500 cursor-pointer`,title:`Copy Link`,children:ue===`preview`?(0,q.jsx)(r.At,{className:`w-4 h-4 text-emerald-500`}):(0,q.jsx)(c.z,{className:`w-4 h-4`})}),(0,q.jsx)(`button`,{onClick:()=>{I(null),Z(L.id),Se(L.name)},className:`p-2.5 bg-foreground/5 hover:bg-foreground/10 text-foreground/70 hover:text-accent transition-colors rounded-xl shadow-sm cursor-pointer`,title:`Rename`,children:(0,q.jsx)(v.s,{className:`w-4 h-4`})}),(0,q.jsx)(`button`,{onClick:()=>{I(null),M(L.id)},className:`p-2.5 bg-red-500/10 hover:bg-red-500/20 text-red-500 transition-colors rounded-xl shadow-sm cursor-pointer`,title:`Delete`,children:(0,q.jsx)(A.t,{className:`w-4 h-4`})}),(0,q.jsx)(`a`,{href:L.downloadURL,download:!0,target:`_blank`,rel:`noreferrer`,className:`p-2.5 btn-primary transition-colors rounded-xl shadow-lg ml-1`,title:`Download`,children:(0,q.jsx)(v.d,{className:`w-4 h-4`})})]})]}),(0,q.jsx)(`div`,{className:`flex-1 w-full relative bg-foreground/[0.02] min-h-[50vh] md:min-h-[600px]`,onClick:()=>I(null),children:(0,q.jsxs)(`div`,{className:`absolute inset-x-4 inset-y-8 md:inset-x-12 md:inset-y-12 flex items-center justify-center`,children:[ne&&(0,q.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center rounded-lg z-50 pointer-events-none`,children:(0,q.jsx)(`div`,{className:`w-12 h-12 rounded-full bg-background/80 backdrop-blur-md shadow-xl flex items-center justify-center border border-[var(--panel-border)]/50`,children:(0,q.jsx)(C.r,{className:`w-5 h-5 text-accent animate-spin`})})}),L.fileType?.startsWith(`image/`)?(0,q.jsx)(`img`,{onLoad:()=>R(!1),onError:()=>R(!1),src:L.downloadURL,alt:L.fileName||L.name,className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-auto h-auto max-w-full max-h-full object-contain drop-shadow-[0_0_40px_rgba(0,0,0,0.5)] rounded-lg pointer-events-auto transition-opacity duration-500 ${ne?`opacity-0`:`opacity-100`}`,onClick:e=>e.stopPropagation()}):L.fileType?.startsWith(`video/`)?(0,q.jsx)(`video`,{onLoadedData:()=>R(!1),onError:()=>R(!1),src:L.downloadURL,controls:!0,autoPlay:!0,className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-auto h-auto max-w-full max-h-full outline-none bg-black/40 rounded-lg pointer-events-auto drop-shadow-[0_0_40px_rgba(0,0,0,0.5)] transition-opacity duration-500 ${ne?`opacity-0`:`opacity-100`}`,onClick:e=>e.stopPropagation()}):L.fileType===`application/pdf`?(0,q.jsx)(`iframe`,{onLoad:()=>R(!1),src:L.downloadURL,className:`w-full h-full border-none rounded-lg relative z-10 transition-opacity duration-500 ${ne?`opacity-0`:`opacity-100`}`,style:{backgroundColor:`white`},title:`PDF Preview`,onClick:e=>e.stopPropagation()}):(0,q.jsxs)(`div`,{className:`w-full h-full flex flex-col items-center justify-center text-foreground/40 text-center relative z-10`,onClick:e=>{e.stopPropagation(),R(!1)},children:[(0,q.jsx)(v.u,{className:`w-24 h-24 mb-6 opacity-40 drop-shadow-sm`}),(0,q.jsx)(`span`,{className:`text-[20px] font-extrabold text-foreground`,children:`Preview Unavailable`}),(0,q.jsx)(`span`,{className:`text-[14px] mt-2 text-foreground/60 font-medium max-w-xs`,children:`This file format cannot be previewed. Please download it instead.`})]})]})})]})]})}),document.body),(0,q.jsx)(r.rt,{children:V&&(0,q.jsxs)(`div`,{className:`fixed inset-0 z-[120] flex items-center justify-center p-4`,children:[(0,q.jsx)(r.nt.div,{onClick:()=>De(),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/60 backdrop-blur-sm cursor-pointer`}),(0,q.jsx)(r.nt.div,{initial:{opacity:0,scale:.97,y:6},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.97,y:6},transition:{duration:.2},className:`w-full max-w-[440px] border-[var(--panel-border)] border rounded-2xl relative z-10 glass-panel shadow-2xl bg-background overflow-hidden`,children:(0,q.jsxs)(`div`,{className:`p-5 flex flex-col gap-3 max-h-[80vh] overflow-y-auto`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between mb-2 mt-2 px-1`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(`span`,{className:`text-[14px] font-bold text-foreground`,children:`Edit Record`}),y&&(0,q.jsx)(C.r,{className:`w-3 h-3 animate-spin text-foreground/40`})]}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>De(),className:`text-foreground/30 hover:text-foreground/60 transition-colors cursor-pointer`,children:(0,q.jsx)(C.t,{className:`w-4 h-4`})})]}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-0 max-h-[70vh] overflow-y-auto no-scrollbar px-1`,children:[(0,q.jsxs)(`div`,{className:`flex flex-col relative group/field`,children:[(0,q.jsx)(`input`,{readOnly:!0,value:`NAME`,className:`no-glow bg-transparent text-[10px] font-bold text-foreground/30 uppercase tracking-[0.15em] outline-none pt-3 pb-0.5`}),(0,q.jsx)(`input`,{autoFocus:!0,required:!0,value:H,onChange:e=>se(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},onBlur:()=>Oe(),placeholder:`Name *`,className:`no-glow bg-transparent text-[13px] font-medium text-foreground outline-none placeholder:text-foreground/15 pb-1 caret-foreground/50`}),(0,q.jsx)(`div`,{className:`border-b border-dashed border-[var(--panel-border)]/60`})]}),(0,q.jsxs)(`div`,{className:`flex flex-col relative group/field`,children:[(0,q.jsx)(`input`,{readOnly:!0,value:`NOTE`,className:`no-glow bg-transparent text-[10px] font-bold text-foreground/30 uppercase tracking-[0.15em] outline-none pt-3 pb-0.5`}),(0,q.jsx)(r.Q,{value:U,onChange:e=>ce(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),e.target.blur())},onBlur:()=>Oe(),placeholder:`Add a note...`,rows:1,className:`no-glow bg-transparent text-[13px] font-medium text-foreground outline-none placeholder:text-foreground/15 pb-1 caret-foreground/50 resize-none overflow-hidden`}),(0,q.jsx)(`div`,{className:`border-b border-dashed border-[var(--panel-border)]/60`})]}),W.map((e,t)=>(0,q.jsxs)(`div`,{className:`flex flex-col relative group/field`,children:[(0,q.jsx)(`input`,{placeholder:`FIELD NAME`,value:e.key,onChange:e=>{let n=[...W];n[t].key=e.target.value,le(n)},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},onBlur:()=>Oe(),className:`no-glow bg-transparent text-[10px] font-bold text-foreground/30 uppercase tracking-[0.15em] outline-none placeholder:text-foreground/15 pt-3 pb-0.5 caret-foreground/40`}),(0,q.jsx)(`input`,{placeholder:`Field value...`,value:e.value,onChange:e=>{let n=[...W];n[t].value=e.target.value,le(n)},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},onBlur:()=>Oe(),className:`no-glow bg-transparent text-[13px] font-medium text-foreground outline-none placeholder:text-foreground/15 pt-1.5 pb-1 caret-foreground/50`}),(0,q.jsx)(`div`,{className:`border-b border-dashed border-[var(--panel-border)]/60`}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>le(W.filter((e,n)=>n!==t)),className:`absolute top-3 right-0 p-1 text-foreground/0 group-hover/field:text-foreground/20 hover:!text-red-400 transition-colors cursor-pointer`,children:(0,q.jsx)(C.t,{className:`w-3 h-3`})})]},t)),(0,q.jsxs)(`button`,{type:`button`,onClick:()=>le([...W,{key:``,value:``}]),className:`flex items-center gap-1.5 text-[11px] font-medium text-foreground/25 hover:text-foreground/40 transition-colors cursor-pointer mt-4 mb-4`,children:[(0,q.jsx)(E.t,{className:`w-3 h-3`}),` Add Field`]})]})]})})]})}),(0,q.jsx)(ie.t,{isOpen:!!k,onCancel:()=>M(null),onConfirm:be,title:`Delete Record`,message:(0,q.jsxs)(q.Fragment,{children:[`Are you sure you want to delete `,(0,q.jsx)(`strong`,{className:`text-foreground font-extrabold break-words mx-1`,children:s.find(e=>e.id===k)?.name}),` This action cannot be undone.`]}),confirmText:`Delete`,isProcessing:z})]})}var Qa=({record:e})=>{let t=e.creatorName||e.creatorEmail?.split(`@`)[0]||`Member`,n=e.creatorEmail||``,i=e.creatorAvatar||``,a=t.split(` `).map(e=>e[0]).join(``).toUpperCase().slice(0,2);return(0,q.jsxs)(`div`,{className:`flex items-center gap-2 mt-2 pt-2 border-t border-[var(--panel-border)]/30`,children:[i?(0,q.jsx)(r.O,{src:i,alt:``,className:`w-5 h-5 rounded-full shrink-0`}):(0,q.jsx)(`div`,{className:`w-5 h-5 rounded-full bg-accent/15 text-accent flex items-center justify-center text-[8px] font-extrabold shrink-0`,children:a}),(0,q.jsxs)(`div`,{className:`flex items-center gap-1 min-w-0 flex-1`,children:[(0,q.jsx)(`span`,{className:`text-[11px] font-semibold text-foreground/40 truncate`,children:t}),n&&(0,q.jsxs)(`span`,{className:`text-[10px] text-foreground/25 truncate`,children:[`· `,n]})]})]})};function $a({config:e,customContent:t}){let{user:a,userRole:s}=r.Ft(),{config:l}=i.N(),[u,d]=(0,K.useState)([]),[f,p]=(0,K.useState)(!0),[m,h]=(0,K.useState)(!1),[g,_]=(0,K.useState)(``),[y,b]=(0,K.useState)(``),[x,w]=(0,K.useState)(!1),[T,D]=(0,K.useState)(``),[O,M]=(0,K.useState)(null),P=(0,K.useRef)(null),[F,I]=(0,K.useState)(null),[L,ne]=(0,K.useState)(null),R=e=>{if(ne(e),e){let t=e.fileType||``;V(t.startsWith(`image/`)||t.startsWith(`video/`)||t===`application/pdf`)}},z=L,[re,V]=(0,K.useState)(!0),[H,se]=(0,K.useState)(!1),[U,ce]=(0,K.useState)(null),[W,le]=(0,K.useState)(``),[G,ue]=(0,K.useState)(``),[de,Y]=(0,K.useState)([]),pe=(0,K.useRef)(null),[me,he]=(0,K.useState)(null),ge=(0,K.useRef)([]),_e=B.o(e,`internal_page`),X=o.Mn({...e,pageType:`internal`}),ve=X.startsWith(`user_`),ye=c.c(X),be=ye?B.t(e,X):`${X}${_e}_records`,xe=c.f(),Z=c.o({on:ve}),Q=Z.uid||a?.uid||``,Se=c.F(be),Ce=ye?Se.records:u,we=ye?Se.loading:f,Te=e=>ye?c.C(e,xe):e.uid===a?.uid||Z.someoneElse,Ee=s===`admin`,De=e=>Te(e)&&oe.d(e,s),Oe=(0,K.useRef)(!1);(0,K.useEffect)(()=>{!Ee||we||Oe.current||!Ce.length||(Oe.current=!0,oe.a(be,Ce,e,!0).catch(e=>console.warn(`Could not catch the delete lock up:`,e)).finally(()=>{Oe.current=!1}))},[Ee,we,Ce,oe.l(e),be]);let ke=e=>c.d(X,be,e),[Ae,je]=(0,K.useState)(()=>ye?c.u(be):``),Me=()=>je(c.u(be));(0,K.useEffect)(()=>{document.title=e.tabTitle||e.tabName||l.appName||`Your AI Firebase`},[e.tabTitle,e.tabName,l.appName]);let Ne=a?.uid,Pe=Z.uid||Ne||``,Fe=Z.everyone?`${Ne}|everyone`:Pe;(0,K.useEffect)(()=>{if(!Ne||ye)return;try{let e=S.o(be,Fe);e?(d(e),p(!1)):(d(e=>e.length?[]:e),p(!0))}catch{}let e=e=>Na(e),t=(0,J.onSnapshot)(ve&&!Z.everyone?(0,J.query)((0,J.collection)(r.ui,be),(0,J.where)(`uid`,`==`,Pe)):(0,J.query)((0,J.collection)(r.ui,be),(0,J.orderBy)(`createdAt`,`desc`),(0,J.limit)(150)),t=>{let n=e(t.docs);ve&&!Z.everyone&&n.sort((e,t)=>(t.createdAt||0)-(e.createdAt||0)),d(n),p(!1),S.s(be,Fe,n)},e=>{console.warn(`${be}: this account cannot read the records here (${e?.code||`permission-denied`}). A team page needs a verified address and an account marked Internal or Admin on the Users screen.`),d(e=>e.length?[]:e),p(!1)});return()=>t()},[Ne,Pe,Fe,be,ve,ye,Z.everyone]);let Ie=async e=>Ce.some(t=>t.id===e)||await(0,J.getDoc)((0,J.doc)(r.ui,be,e)).then(e=>e.exists()).catch(()=>!1),Le=()=>({name:a.displayName||a.email?.split(`@`)[0]||`Member`,email:a.email||``,avatar:a.photoURL||``}),Re=async(t,n)=>{let i=Le(),o={uid:Q,recordType:`record`,creatorName:i.name,creatorEmail:i.email,creatorAvatar:i.avatar,...oe.u(e,s),...t};if(!ye){let e=Fa(t),n=e?(0,J.doc)(r.ui,be,e):(0,J.doc)((0,J.collection)(r.ui,be)),i={...o,createdAt:(0,J.serverTimestamp)()};return await(0,J.setDoc)(n,i),S.p(be,n.id,i),n.id}let l=n||Ae||c.u(be);return await(0,J.setDoc)((0,J.doc)(r.ui,be,l),c.l(o,a.uid)),n||Me(),l},ze=async e=>{if(e.preventDefault(),!(!a||!g.trim())){w(!0);try{await Re({name:g.trim(),note:y.trim()}),_(``),b(``),h(!1)}catch(e){console.error(`Error saving shared record:`,e)}w(!1)}},Be=c.b({upload:async(e,t)=>{if(!a)throw Error(`Sign in again before uploading.`);let n=await ee._(e),r=ye?P.current&&Ae||c.u(be):``,i=`${ke(r)}/${c.h(n.name)}`,o=await c.y(i,n,{customMetadata:{ownerId:a.uid},onProgress:t.progress,signal:t.signal});P.current?P.current(n,o,{uid:a.uid,storagePath:i,recordId:r}):await Re({name:n.name,note:`${n.type||`File`} · ${rt(n.size)}`,recordType:`file`,fileName:n.name,fileType:n.type||`unknown`,fileSize:n.size,downloadURL:o,storagePath:i},r)},onFailed:e=>D(`${e.name}: ${e.error||`That upload did not work.`}`),onSettled:()=>Be.clear()}),Ve=Be.busy,He=e=>{let t=Array.from(e.target.files||[]);e.target.value=``,!(!t.length||!a)&&(D(``),Be.add(t))},Ue=async()=>{if(F){se(!0);try{let e=Ce.find(e=>e.id===F);if(!oe.d(e,s)){k.n(`Nothing on this page can be deleted.`),I(null),se(!1);return}await(0,J.deleteDoc)((0,J.doc)(r.ui,be,F)),await ae.o(e,Ce,ke(F)),I(null)}catch(e){console.error(`Error deleting shared record:`,e)}se(!1)}},[We,Ge]=(0,K.useState)(null),[Ke,qe]=(0,K.useState)(``),[Je,Ye]=(0,K.useState)(!1),Xe=e=>{if(e.recordType===`file`){Ge(e.id),qe(e.name);return}ce(e.id),le(e.name),ue(e.note||``);let t=[`name`,`note`,`uid`,`recordType`,`fileName`,`fileType`,`fileSize`,`downloadURL`,`storagePath`,`createdAt`,`creatorName`,`creatorEmail`,`creatorAvatar`],n=Object.entries(e).filter(([e])=>!t.includes(e)&&e!==`id`).map(([e,t])=>({key:e,value:String(t??``)}));Y(n),ge.current=n.map(e=>e.key)},Ze=async()=>{if(!We||!Ke.trim()){Ge(null);return}let e=Ce.find(e=>e.id===We);if(e&&e.name===Ke.trim()){Ge(null);return}Ye(!0);try{await(0,J.updateDoc)((0,J.doc)(r.ui,be,We),{name:Ke.trim()}),d(e=>e.map(e=>e.id===We?{...e,name:Ke.trim()}:e))}catch(e){console.error(`Error renaming file:`,e)}Ye(!1),Ge(null)},Qe=async()=>{await $e(),ce(null)},$e=async()=>{if(!U||!W.trim())return;w(!0);let e={};de.forEach(({key:t,value:n})=>{t.trim()&&(e[t.trim()]=n)});let t=de.map(e=>e.key.trim()).filter(Boolean),n=ge.current.filter(e=>!t.includes(e));n.forEach(t=>{e[t]=(0,J.deleteField)()});try{await(0,J.updateDoc)((0,J.doc)(r.ui,be,U),{name:W.trim(),note:G.trim(),...e}),d(e=>e.map(e=>{if(e.id!==U)return e;let t={...e,name:W.trim(),note:G.trim()};return n.forEach(e=>{delete t[e]}),de.forEach(({key:e,value:n})=>{e.trim()&&(t[e.trim()]=n)}),t})),ge.current=t}catch(e){console.error(`Error saving record:`,e)}w(!1)},et=(e,t)=>e?e.startsWith(`image/`)?t?(0,q.jsx)(`div`,{className:`w-9 h-9 rounded-xl bg-cover bg-center shrink-0`,style:{backgroundImage:`url(${t})`}}):(0,q.jsx)(v.c,{className:`w-4 h-4`}):e.startsWith(`video/`)||e.startsWith(`audio/`)?(0,q.jsx)(c.R,{className:`w-4 h-4`}):e.includes(`pdf`)||e.includes(`word`)||e.includes(`text`)?(0,q.jsx)(v.u,{className:`w-4 h-4`}):e.includes(`zip`)||e.includes(`rar`)||e.includes(`archive`)?(0,q.jsx)(c.V,{className:`w-4 h-4`}):e.includes(`html`)||e.includes(`csv`)||e.includes(`json`)?(0,q.jsx)(c.B,{className:`w-4 h-4`}):(0,q.jsx)(v.l,{className:`w-4 h-4`}):(0,q.jsx)(v.u,{className:`w-4 h-4`}),tt=e=>e?e.startsWith(`image/`)?`bg-emerald-500/10 text-emerald-500`:e.startsWith(`video/`)||e.startsWith(`audio/`)?`bg-accent/10 text-accent`:e.includes(`pdf`)||e.includes(`word`)||e.includes(`text`)?`bg-blue-500/10 text-blue-500`:e.includes(`zip`)||e.includes(`rar`)||e.includes(`archive`)?`bg-yellow-500/10 text-yellow-500`:e.includes(`html`)||e.includes(`csv`)||e.includes(`json`)?`bg-emerald-500/10 text-emerald-500`:`bg-foreground/5 text-foreground/40`:`bg-foreground/5 text-foreground/40`,nt=e=>{if(!e)return`FILE`;let t={"application/pdf":`PDF`,"application/zip":`ZIP`,"application/x-zip-compressed":`ZIP`,"application/x-rar-compressed":`RAR`,"application/x-7z-compressed":`7Z`,"application/json":`JSON`,"application/xml":`XML`,"application/javascript":`JS`,"application/typescript":`TS`,"application/msword":`DOC`,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":`DOCX`,"application/vnd.ms-excel":`XLS`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":`XLSX`,"application/vnd.ms-powerpoint":`PPT`,"application/vnd.openxmlformats-officedocument.presentationml.presentation":`PPTX`,"application/rtf":`RTF`,"application/x-tar":`TAR`,"application/gzip":`GZ`,"text/plain":`TXT`,"text/html":`HTML`,"text/css":`CSS`,"text/csv":`CSV`,"text/markdown":`MD`},n=e.toLowerCase();if(t[n])return t[n];let r=n.split(`/`);return r[r.length-1].replace(/^x-/,``).replace(/^vnd\..*\./,``).toUpperCase().slice(0,10)},rt=e=>{if(!e)return`0 B`;let t=1024,n=[`B`,`KB`,`MB`,`GB`],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/t**+r).toFixed(2))+` `+n[r]},it=e=>{if(!e)return``;let t=e.toMillis?e.toMillis():e;return new Date(t).toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`})},at=n.p(e.buttonStorageIcon)||xt,ot=e.buttonStyle!==`secondary`,st=e.buttonStorageStyle===`primary`;return(0,q.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,q.jsx)(r.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-6 flex items-center justify-between`,children:(0,q.jsxs)(`div`,{children:[(0,q.jsx)(n.t,{children:e.tabTitle||e.tabName||`Internal Page`}),e.route&&(0,q.jsxs)(`div`,{className:`flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,q.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),e.route]})]})}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-6 flex-1 pb-16`,children:[(0,q.jsx)(i.t,{}),(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:t?`flex flex-col flex-1 relative`:`flex flex-col glass-panel border border-[var(--panel-border)] rounded-3xl overflow-hidden flex-1 shadow-2xl bg-background`,children:[(0,q.jsx)(`input`,{type:`file`,multiple:!0,ref:pe,onChange:He,className:`hidden`}),!t&&(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3 sm:gap-4 p-4 sm:p-6 md:px-8 md:py-6 border-b border-[var(--panel-border)]/50 bg-background/50 shrink-0`,children:[(0,q.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,q.jsx)(`h2`,{className:`text-xl font-bold text-foreground tracking-tight truncate`,children:e.tabTitle||e.tabName||`Dashboard`}),(0,q.jsx)(`p`,{className:`text-[13px] font-medium text-foreground/50 mt-1`,children:we?`Loading…`:`${Ce.length} ${Ce.length===1?`item`:`items`} · Internal`}),(T||ye&&Se.error)&&(0,q.jsx)(`p`,{className:`text-[12px] font-semibold text-red-500 mt-1 truncate`,role:`alert`,children:T||Se.error}),Z.someoneElse&&e.storage!==!1&&(0,q.jsx)(`p`,{className:`text-[12px] font-medium text-foreground/50 mt-1 max-sm:hidden`,children:`You are looking at somebody else’s page. Anything you add here is theirs, but a file would stay yours — so uploads are off until you switch back to your own.`})]}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,q.jsx)(c.a,{viewing:Z}),e.storage!==!1&&!Z.someoneElse&&(0,q.jsx)(q.Fragment,{children:(0,q.jsxs)(r.nt.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>pe.current?.click(),title:Ve?Be.done?`${Be.done} of ${Be.total} uploaded…`:`Uploading ${Be.total===1?`your file`:`${Be.total} files`}…`:e.buttonStorageText||`Upload files`,className:`h-10 flex items-center justify-center gap-2 rounded-xl transition-all duration-300 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed ${e.buttonStorageText?`px-4`:`w-10`} ${st?`btn-primary`:`btn-secondary`}`,children:[Ve?(0,q.jsx)(C.r,{className:`w-4 h-4 animate-spin`}):(0,q.jsx)(at,{className:`w-4 h-4`}),e.buttonStorageText&&(0,q.jsx)(`span`,{className:`text-[13px] font-bold`,children:e.buttonStorageText})]})}),e.showButton!==!1&&(0,q.jsx)(r.nt.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>h(!0),title:`Add New`,className:`h-10 flex items-center justify-center gap-2 rounded-xl transition-all duration-300 cursor-pointer ${e.buttonText&&e.buttonText!==`+`?`px-5`:`w-10`} ${ot?`btn-primary`:`btn-secondary`}`,children:e.buttonText===`+`||!e.buttonText?(0,q.jsx)(E.t,{className:`w-4 h-4`}):(0,q.jsx)(`span`,{className:`text-[13px] font-bold`,children:e.buttonText})})]})]}),(0,q.jsxs)(`div`,{className:t?`flex-1 flex flex-col relative min-h-[400px]`:`p-6 md:p-8 flex-1 overflow-y-auto relative min-h-[400px]`,children:[we&&(0,q.jsx)(`div`,{className:`absolute inset-0 z-10 flex items-center justify-center bg-background/50 backdrop-blur-sm`,children:(0,q.jsx)(C.r,{className:`w-8 h-8 text-accent animate-spin`})}),t?(0,q.jsx)(c.p,{value:{prefix:X,collection:ye?be:``,recordId:ye?U||Ae:``},children:(0,q.jsx)(`div`,{className:`fbos-content-slot fbos-tab-fill`,children:(0,q.jsx)(j.p,{size:`part`,children:(0,q.jsx)(te.t,{config:e,children:(0,q.jsx)(t,{config:e,actions:{records:Ce,loading:we,error:ye?Se.error:``,collection:be,user:a,...c.s(be,xe,ye,Ae),saveRecord:async(t,n)=>{let r=Le(),i=Pa(Aa(t,n)),a=ye?null:Fa(i);if(a&&await Ie(a))return a;let o=await Re(Ua(i));return ye||d(t=>[{uid:Q,recordType:`record`,creatorName:r.name,creatorEmail:r.email,creatorAvatar:r.avatar,...oe.u(e,s),createdAt:Date.now(),...i,id:o},...t.filter(e=>e.id!==o)]),o},updateRecord:async(e,t,n)=>{let{id:i,data:o}=ja(e,t,n),s=Pa(o),c={...ki(a),...Ua(s,Ce.find(e=>e.id===i))};ye||d(e=>e.map(e=>e.id===i?{...e,...c}:e)),await(0,J.updateDoc)((0,J.doc)(r.ui,be,i),c);let l=Ce.find(e=>e.id===i);l&&S.p(be,i,{...l,...c})},deleteRecord:async(e,t)=>{let n=Ma(e,t),i=Ce.find(e=>e.id===n);if(!oe.d(i,s)){k.n(`Nothing on this page can be deleted.`);return}await(0,J.deleteDoc)((0,J.doc)(r.ui,be,n)),S.m(be,n),await ae.o(i,Ce,ke(n))},startEdit:e=>Xe(e),confirmDelete:e=>I(e),uploadFile:()=>{Z.someoneElse||pe.current?.click()},openAddForm:()=>h(!0),setAddForm:e=>M(()=>e),setFileHandler:e=>{P.current=e}}})})})})}):(0,q.jsxs)(q.Fragment,{children:[!we&&Ce.length===0&&(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:`flex-1 flex flex-col items-center justify-center border border-[var(--panel-border)]/50 border-dashed rounded-2xl p-8 py-20 text-center min-h-[350px]`,children:[(0,q.jsx)(`div`,{className:`w-16 h-16 rounded-2xl bg-accent/5 border border-accent/10 flex items-center justify-center mb-5`,children:(0,q.jsx)(E.t,{className:`w-6 h-6 text-accent/40`})}),(0,q.jsx)(`p`,{className:`text-[15px] font-bold mb-1.5 text-foreground/50`,children:`No items yet`}),(0,q.jsx)(`p`,{className:`text-[13px] font-medium text-foreground/35 max-w-xs leading-relaxed`,children:`Use the buttons above to add records or upload files. All team members can view and contribute.`})]}),!we&&Ce.length>0&&(0,q.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4`,children:(0,q.jsx)(r.rt,{children:Ce.map(e=>{let t=U===e.id,n=Te(e);return(0,q.jsxs)(r.nt.div,{initial:!1,animate:{opacity:1,y:0},exit:{opacity:0,scale:.95},onClick:()=>n?Xe(e):null,className:`group flex flex-col bg-background border rounded-2xl p-5 transition-all relative ${n?`cursor-pointer`:``} ${t?`border-accent/40 shadow-lg ring-1 ring-accent/20`:`border-[var(--panel-border)] hover:border-accent/30 hover:shadow-lg`}`,children:[(0,q.jsxs)(`div`,{className:`absolute top-3 right-3 flex items-center gap-0.5 opacity-100 md:opacity-0 md:group-hover:opacity-100 transition-all z-10`,children:[e.recordType===`file`&&e.downloadURL&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{onClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(e.downloadURL),he(e.id),setTimeout(()=>he(null),2e3)},className:`p-1.5 rounded-lg text-foreground/25 hover:text-emerald-500 hover:bg-emerald-500/10 transition-all cursor-pointer`,title:`Copy Link`,children:me===e.id?(0,q.jsx)(r.At,{className:`w-3.5 h-3.5 text-emerald-500`}):(0,q.jsx)(c.z,{className:`w-3.5 h-3.5`})}),(0,q.jsx)(`a`,{href:e.downloadURL,target:`_blank`,rel:`noreferrer`,onClick:e=>e.stopPropagation(),className:`p-1.5 rounded-lg text-foreground/25 hover:text-blue-500 hover:bg-blue-500/10 transition-all`,title:`Download`,children:(0,q.jsx)(v.d,{className:`w-3.5 h-3.5`})})]}),n&&(0,q.jsx)(`button`,{onClick:t=>{t.stopPropagation(),Xe(e)},className:`p-1.5 rounded-lg text-foreground/25 hover:text-accent hover:bg-accent/10 transition-all cursor-pointer`,title:`Edit`,children:(0,q.jsx)(v.s,{className:`w-3.5 h-3.5`})}),n&&De(e)&&(0,q.jsx)(`button`,{onClick:t=>{t.stopPropagation(),I(e.id)},className:`p-1.5 rounded-lg text-foreground/25 hover:text-red-500 hover:bg-red-500/10 transition-all cursor-pointer`,title:`Delete`,children:(0,q.jsx)(A.t,{className:`w-3.5 h-3.5`})})]}),(0,q.jsxs)(`div`,{className:`flex items-start gap-3 mb-2`,children:[(0,q.jsx)(`div`,{onClick:t=>{t.stopPropagation(),e.recordType===`file`&&R(e)},className:`w-9 h-9 rounded-xl flex items-center justify-center shrink-0 ${e.recordType===`file`?`cursor-pointer hover:scale-105 transition-transform ${tt(e.fileType)}`:`bg-accent/10 text-accent`}`,children:e.recordType===`file`?et(e.fileType,e.downloadURL):(0,q.jsx)(`div`,{className:`w-2 h-2 rounded-full bg-current`})}),(0,q.jsxs)(`div`,{className:`flex flex-col min-w-0 flex-1 relative`,children:[We===e.id?(0,q.jsx)(`input`,{autoFocus:!0,type:`text`,value:Ke,onChange:e=>qe(e.target.value),onBlur:()=>Ze(),onKeyDown:e=>{e.key===`Enter`&&Ze(),e.key===`Escape`&&Ge(null)},onClick:e=>e.stopPropagation(),className:`no-glow text-[14px] font-bold text-foreground bg-transparent border-b border-accent/30 outline-none pb-0.5 w-full pr-12`}):(0,q.jsx)(`span`,{className:`text-[14px] font-bold text-foreground truncate pr-12`,children:e.name}),e.recordType===`file`&&(0,q.jsx)(`div`,{className:`absolute inset-0 z-0 cursor-pointer`,onClick:()=>R(e)}),(0,q.jsx)(`span`,{className:`text-[11px] text-foreground/35 font-bold uppercase tracking-wider mt-0.5`,children:it(e.createdAt)})]})]}),e.note&&(0,q.jsx)(`p`,{className:`text-[13px] text-foreground/55 font-medium leading-relaxed line-clamp-3 mb-1`,children:e.note}),Object.entries(e).filter(([e])=>![`name`,`note`,`uid`,`recordType`,`fileName`,`fileType`,`fileSize`,`downloadURL`,`createdAt`,`creatorName`,`creatorEmail`,`creatorAvatar`].includes(e)&&e!==`id`).slice(0,3).map(([e,t])=>(0,q.jsxs)(`div`,{className:`flex items-center gap-1.5 mt-1`,children:[(0,q.jsxs)(`span`,{className:`text-[10px] font-bold text-foreground/30 uppercase tracking-wider shrink-0`,children:[e,`:`]}),(0,q.jsx)(`span`,{className:`text-[11px] font-semibold text-foreground/60 truncate`,children:String(t)})]},e)),(0,q.jsx)(Qa,{record:e})]},e.id)})})})]})]})]})]}),(0,q.jsx)(r.rt,{children:m&&(0,q.jsxs)(`div`,{className:`fixed inset-0 z-[120] flex items-center justify-center p-4`,children:[(0,q.jsx)(r.nt.div,{onClick:()=>!x&&h(!1),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/60 backdrop-blur-sm cursor-pointer`}),(0,q.jsx)(r.nt.div,{initial:{opacity:0,scale:.97,y:6},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.97,y:6},transition:{duration:.2},className:`w-full max-w-[360px] border-[var(--panel-border)] border rounded-2xl relative z-10 glass-panel shadow-2xl bg-background overflow-hidden`,children:O?K.default.createElement(O,{onSave:async e=>{w(!0);try{await Re(e),h(!1)}catch(e){console.error(`Error saving record:`,e)}w(!1)},onClose:()=>!x&&h(!1),saving:x}):(0,q.jsxs)(`form`,{onSubmit:ze,className:`p-5 flex flex-col gap-3`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between mb-1`,children:[(0,q.jsx)(`span`,{className:`text-[14px] font-bold text-foreground`,children:`New Record`}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>!x&&h(!1),className:`text-foreground/30 hover:text-foreground/60 transition-colors cursor-pointer p-0.5`,children:(0,q.jsx)(C.t,{className:`w-4 h-4`})})]}),(0,q.jsx)(`input`,{autoFocus:!0,type:`text`,required:!0,value:g,onChange:e=>_(e.target.value),placeholder:`Name *`,disabled:x,className:`w-full bg-foreground/[0.03] border border-[var(--panel-border)] px-3.5 py-2.5 text-[13px] font-semibold text-foreground outline-none focus:border-accent transition-colors placeholder:text-foreground/30`,style:{borderRadius:`var(--input-radius, 0.75rem)`}}),(0,q.jsx)(r.Q,{value:y,onChange:e=>b(e.target.value),placeholder:`Note (optional)`,disabled:x,rows:2,className:`w-full bg-foreground/[0.03] border border-[var(--panel-border)] px-3.5 py-2.5 text-[13px] font-medium text-foreground outline-none focus:border-accent transition-colors placeholder:text-foreground/30 resize-none`,style:{borderRadius:`var(--input-radius, 0.75rem)`}}),(0,q.jsx)(`div`,{className:`flex justify-end pt-1`,children:(0,q.jsx)(N.t,{type:`submit`,isLoading:x,className:`px-5 py-2 text-[12px] font-bold shadow-md`,children:x?`Saving…`:`Save`})})]})})]})}),typeof window<`u`&&(0,fe.createPortal)((0,q.jsx)(r.rt,{children:z&&(0,q.jsxs)(`div`,{className:`fixed inset-0 z-[9999] flex items-center justify-center p-4 md:p-12`,children:[(0,q.jsx)(r.nt.div,{onClick:()=>R(null),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/95 backdrop-blur-xl cursor-pointer`}),(0,q.jsx)(`button`,{onClick:()=>R(null),className:`absolute top-6 right-6 z-[160] w-12 h-12 bg-foreground/10 hover:bg-foreground/20 text-foreground rounded-full flex items-center justify-center backdrop-blur-md transition-all cursor-pointer outline-none`,children:(0,q.jsx)(C.t,{className:`w-5 h-5`})}),(0,q.jsxs)(r.nt.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},className:`relative z-10 w-full max-w-6xl max-h-[85vh] flex flex-col pointer-events-auto shadow-2xl rounded-3xl overflow-hidden glass-panel border border-[var(--panel-border)]`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between p-6 bg-background/80 backdrop-blur-md border-b border-[var(--panel-border)] shrink-0 shadow-sm z-20`,children:[(0,q.jsxs)(`div`,{className:`flex flex-col min-w-0 pr-4`,children:[(0,q.jsx)(`span`,{className:`text-xl font-bold text-foreground truncate`,children:z.fileName||z.name}),(0,q.jsxs)(`span`,{className:`text-[12px] text-foreground/70 font-bold uppercase tracking-wider mt-1`,children:[nt(z.fileType),` • `,rt(z.fileSize||0)]})]}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,q.jsx)(`button`,{onClick:()=>{navigator.clipboard.writeText(z.downloadURL),he(`preview`),setTimeout(()=>he(null),2e3)},className:`p-2.5 bg-foreground/5 hover:bg-foreground/10 text-foreground/70 transition-colors rounded-xl shadow-sm hover:text-emerald-500 cursor-pointer`,title:`Copy Link`,children:me===`preview`?(0,q.jsx)(r.At,{className:`w-4 h-4 text-emerald-500`}):(0,q.jsx)(c.z,{className:`w-4 h-4`})}),(0,q.jsx)(`button`,{onClick:()=>{R(null),Ge(z.id),qe(z.name)},className:`p-2.5 bg-foreground/5 hover:bg-foreground/10 text-foreground/70 hover:text-accent transition-colors rounded-xl shadow-sm cursor-pointer`,title:`Rename`,children:(0,q.jsx)(v.s,{className:`w-4 h-4`})}),(0,q.jsx)(`button`,{onClick:()=>{R(null),I(z.id)},className:`p-2.5 bg-red-500/10 hover:bg-red-500/20 text-red-500 transition-colors rounded-xl shadow-sm cursor-pointer`,title:`Delete`,children:(0,q.jsx)(A.t,{className:`w-4 h-4`})}),(0,q.jsx)(`a`,{href:z.downloadURL,download:!0,target:`_blank`,rel:`noreferrer`,className:`p-2.5 btn-primary transition-colors rounded-xl shadow-lg ml-1`,title:`Download`,children:(0,q.jsx)(v.d,{className:`w-4 h-4`})})]})]}),(0,q.jsx)(`div`,{className:`flex-1 w-full relative bg-foreground/[0.02] min-h-[50vh] md:min-h-[600px]`,onClick:()=>R(null),children:(0,q.jsxs)(`div`,{className:`absolute inset-x-4 inset-y-8 md:inset-x-12 md:inset-y-12 flex items-center justify-center`,children:[re&&(0,q.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center rounded-lg z-50 pointer-events-none`,children:(0,q.jsx)(`div`,{className:`w-12 h-12 rounded-full bg-background/80 backdrop-blur-md shadow-xl flex items-center justify-center border border-[var(--panel-border)]/50`,children:(0,q.jsx)(C.r,{className:`w-5 h-5 text-accent animate-spin`})})}),z.fileType?.startsWith(`image/`)?(0,q.jsx)(`img`,{onLoad:()=>V(!1),onError:()=>V(!1),src:z.downloadURL,alt:z.fileName||z.name,className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-auto h-auto max-w-full max-h-full object-contain drop-shadow-[0_0_40px_rgba(0,0,0,0.5)] rounded-lg pointer-events-auto transition-opacity duration-500 ${re?`opacity-0`:`opacity-100`}`,onClick:e=>e.stopPropagation()}):z.fileType?.startsWith(`video/`)?(0,q.jsx)(`video`,{onLoadedData:()=>V(!1),onError:()=>V(!1),src:z.downloadURL,controls:!0,autoPlay:!0,className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-auto h-auto max-w-full max-h-full outline-none bg-black/40 rounded-lg pointer-events-auto drop-shadow-[0_0_40px_rgba(0,0,0,0.5)] transition-opacity duration-500 ${re?`opacity-0`:`opacity-100`}`,onClick:e=>e.stopPropagation()}):z.fileType===`application/pdf`?(0,q.jsx)(`iframe`,{onLoad:()=>V(!1),src:z.downloadURL,className:`w-full h-full border-none rounded-lg relative z-10 transition-opacity duration-500 ${re?`opacity-0`:`opacity-100`}`,style:{backgroundColor:`white`},title:`PDF Preview`,onClick:e=>e.stopPropagation()}):(0,q.jsxs)(`div`,{className:`w-full h-full flex flex-col items-center justify-center text-foreground/40 text-center relative z-10`,onClick:e=>{e.stopPropagation(),V(!1)},children:[(0,q.jsx)(v.u,{className:`w-24 h-24 mb-6 opacity-40 drop-shadow-sm`}),(0,q.jsx)(`span`,{className:`text-[20px] font-extrabold text-foreground`,children:`Preview Unavailable`}),(0,q.jsx)(`span`,{className:`text-[14px] mt-2 text-foreground/60 font-medium max-w-xs`,children:`This file format cannot be previewed. Please download it instead.`})]})]})})]})]})}),document.body),(0,q.jsx)(r.rt,{children:U&&(0,q.jsxs)(`div`,{className:`fixed inset-0 z-[120] flex items-center justify-center p-4`,children:[(0,q.jsx)(r.nt.div,{onClick:()=>Qe(),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/60 backdrop-blur-sm cursor-pointer`}),(0,q.jsx)(r.nt.div,{initial:{opacity:0,scale:.97,y:6},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.97,y:6},transition:{duration:.2},className:`w-full max-w-[440px] border-[var(--panel-border)] border rounded-2xl relative z-10 glass-panel shadow-2xl bg-background overflow-hidden`,children:(0,q.jsxs)(`div`,{className:`p-5 flex flex-col gap-3 max-h-[80vh] overflow-y-auto`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between mb-2 mt-2 px-1`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(`span`,{className:`text-[14px] font-bold text-foreground`,children:`Edit Record`}),x&&(0,q.jsx)(C.r,{className:`w-3 h-3 animate-spin text-foreground/40`})]}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>Qe(),className:`text-foreground/30 hover:text-foreground/60 transition-colors cursor-pointer`,children:(0,q.jsx)(C.t,{className:`w-4 h-4`})})]}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-0 max-h-[70vh] overflow-y-auto no-scrollbar px-1`,children:[(0,q.jsxs)(`div`,{className:`flex flex-col relative group/field`,children:[(0,q.jsx)(`input`,{readOnly:!0,value:`NAME`,className:`no-glow bg-transparent text-[10px] font-bold text-foreground/30 uppercase tracking-[0.15em] outline-none pt-3 pb-0.5`}),(0,q.jsx)(`input`,{autoFocus:!0,required:!0,value:W,onChange:e=>le(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},onBlur:()=>$e(),placeholder:`Name *`,className:`no-glow bg-transparent text-[13px] font-medium text-foreground outline-none placeholder:text-foreground/15 pb-1 caret-foreground/50`}),(0,q.jsx)(`div`,{className:`border-b border-dashed border-[var(--panel-border)]/60`})]}),(0,q.jsxs)(`div`,{className:`flex flex-col relative group/field`,children:[(0,q.jsx)(`input`,{readOnly:!0,value:`NOTE`,className:`no-glow bg-transparent text-[10px] font-bold text-foreground/30 uppercase tracking-[0.15em] outline-none pt-3 pb-0.5`}),(0,q.jsx)(r.Q,{value:G,onChange:e=>ue(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),e.target.blur())},onBlur:()=>$e(),placeholder:`Add a note...`,rows:1,className:`no-glow bg-transparent text-[13px] font-medium text-foreground outline-none placeholder:text-foreground/15 pb-1 caret-foreground/50 resize-none overflow-hidden`}),(0,q.jsx)(`div`,{className:`border-b border-dashed border-[var(--panel-border)]/60`})]}),de.map((e,t)=>(0,q.jsxs)(`div`,{className:`flex flex-col relative group/field`,children:[(0,q.jsx)(`input`,{placeholder:`FIELD NAME`,value:e.key,onChange:e=>{let n=[...de];n[t].key=e.target.value,Y(n)},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},onBlur:()=>$e(),className:`no-glow bg-transparent text-[10px] font-bold text-foreground/30 uppercase tracking-[0.15em] outline-none placeholder:text-foreground/15 pt-3 pb-0.5 caret-foreground/40`}),(0,q.jsx)(`input`,{placeholder:`Field value...`,value:e.value,onChange:e=>{let n=[...de];n[t].value=e.target.value,Y(n)},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},onBlur:()=>$e(),className:`no-glow bg-transparent text-[13px] font-medium text-foreground outline-none placeholder:text-foreground/15 pt-1.5 pb-1 caret-foreground/50`}),(0,q.jsx)(`div`,{className:`border-b border-dashed border-[var(--panel-border)]/60`}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>Y(de.filter((e,n)=>n!==t)),className:`absolute top-3 right-0 p-1 text-foreground/0 group-hover/field:text-foreground/20 hover:!text-red-400 transition-colors cursor-pointer`,children:(0,q.jsx)(C.t,{className:`w-3 h-3`})})]},t)),(0,q.jsxs)(`button`,{type:`button`,onClick:()=>Y([...de,{key:``,value:``}]),className:`flex items-center gap-1.5 text-[11px] font-medium text-foreground/25 hover:text-foreground/40 transition-colors cursor-pointer mt-4 mb-4`,children:[(0,q.jsx)(E.t,{className:`w-3 h-3`}),` Add Field`]})]})]})})]})}),(0,q.jsx)(ie.t,{isOpen:!!F,onCancel:()=>I(null),onConfirm:Ue,title:`Delete Record`,message:(0,q.jsxs)(q.Fragment,{children:[`Are you sure you want to delete `,(0,q.jsx)(`strong`,{className:`text-foreground font-extrabold break-words mx-1`,children:Ce.find(e=>e.id===F)?.name}),` This action cannot be undone.`]}),confirmText:`Delete`,isProcessing:H})]})}var eo=5,to=3,no=8,ro=250,io=56,ao=14,oo=8,so=`button, a, input, textarea, select, label, [role="button"], [role="listbox"], [role="option"], [contenteditable="true"], [data-no-drag]`,co=!1,lo=()=>{co||typeof window>`u`||(co=!0,window.addEventListener(`touchmove`,()=>{},{passive:!1}))};function uo(e){let[t,n]=(0,K.useState)(null),r=(0,K.useRef)(e);(0,K.useEffect)(()=>{r.current=e}),(0,K.useEffect)(lo,[]);let i=(0,K.useRef)(null),a=(0,K.useCallback)(e=>{let t=i.current;t&&(i.current=null,t.cleanup(),t.active&&(n(null),e===`drop`?r.current.onDrop(t.key):r.current.onCancel?.(t.key)))},[]);(0,K.useEffect)(()=>()=>a(`cancel`),[a]);let o=(0,K.useCallback)((e,t)=>{if(r.current.disabled||i.current||t.pointerType===`mouse`&&t.button!==0)return;let o=t.target,s=!!o.closest?.(`[data-drag-handle]`),c=s?null:o.closest?.(so);if(c&&!c.hasAttribute(`data-drag-ok`))return;let l=t.currentTarget,u=t.pointerType===`touch`,d=s?to:u?no:eo,f=()=>{let e=i.current;if(!(!e||e.active)){e.active=!0,e.hold&&=(clearTimeout(e.hold),null);try{navigator.vibrate?.(8)}catch{}r.current.onStart?.(e.key),n({key:e.key,x:e.x,y:e.y,offsetX:e.startX-e.rect.left,offsetY:e.startY-e.rect.top,width:e.rect.width,height:e.rect.height}),r.current.onMove({x:e.x,y:e.y,at:e.at},e.key),e.frame=requestAnimationFrame(p)}},p=e=>{let t=i.current;if(!t||!t.active)return;t.at=e;let n=!1;t.y<io?(window.scrollBy(0,-ao),n=!0):t.y>window.innerHeight-io&&(window.scrollBy(0,ao),n=!0);let a=r.current.scroller?.();if(a){let e=a.getBoundingClientRect(),r=a.scrollLeft;t.x<e.left+io?a.scrollLeft-=oo:t.x>e.right-io&&(a.scrollLeft+=oo),a.scrollLeft!==r&&(n=!0)}n&&r.current.onMove({x:t.x,y:t.y,at:e},t.key),t.frame=requestAnimationFrame(p)},m=e=>{let t=i.current;if(!(!t||e.pointerId!==t.pointerId)){if(t.x=e.clientX,t.y=e.clientY,t.at=e.timeStamp,!t.active){if(!(Math.hypot(t.x-t.startX,t.y-t.startY)>d))return;if(u&&!s){a(`cancel`);return}f();return}n(e=>e&&{...e,x:t.x,y:t.y}),r.current.onMove({x:t.x,y:t.y,at:t.at},t.key)}},h=e=>{let t=i.current;if(!(!t||e.pointerId!==t.pointerId)){if(t.active){let e=e=>{e.stopPropagation(),e.preventDefault()};window.addEventListener(`click`,e,{capture:!0,once:!0}),setTimeout(()=>window.removeEventListener(`click`,e,{capture:!0}),80)}a(`drop`)}},g=e=>{i.current&&e.pointerId===i.current.pointerId&&a(`cancel`)},_=e=>{e.key===`Escape`&&i.current?.active&&(e.preventDefault(),a(`cancel`))},v=e=>{i.current?.active&&e.cancelable&&e.preventDefault()},y=e=>{u&&e.preventDefault()},b=e=>e.preventDefault(),x=document.body.style.userSelect,S={key:e,pointerId:t.pointerId,startX:t.clientX,startY:t.clientY,x:t.clientX,y:t.clientY,at:t.timeStamp,rect:l.getBoundingClientRect(),active:!1,hold:u&&!s?setTimeout(f,ro):null,frame:null,cleanup:()=>{S.hold&&clearTimeout(S.hold),S.frame!=null&&cancelAnimationFrame(S.frame),window.removeEventListener(`pointermove`,m),window.removeEventListener(`pointerup`,h),window.removeEventListener(`pointercancel`,g),window.removeEventListener(`keydown`,_,!0),window.removeEventListener(`touchmove`,v),window.removeEventListener(`contextmenu`,y,!0),window.removeEventListener(`dragstart`,b,!0),document.body.style.userSelect=x}};i.current=S,document.body.style.userSelect=`none`,window.addEventListener(`pointermove`,m),window.addEventListener(`pointerup`,h),window.addEventListener(`pointercancel`,g),window.addEventListener(`keydown`,_,!0),window.addEventListener(`touchmove`,v,{passive:!1}),window.addEventListener(`contextmenu`,y,!0),window.addEventListener(`dragstart`,b,!0)},[a]);return{dragging:t,bind:(0,K.useCallback)(e=>({"data-drag-key":e,onPointerDown:t=>o(e,t),style:{WebkitTouchCallout:`none`,WebkitUserSelect:`none`,userSelect:`none`}}),[o])}}var fo={"data-drag-handle":``,style:{touchAction:`none`,cursor:`grab`}},po=()=>[{id:`todo`,title:`To Do`,createdAt:Date.now()-2e3},{id:`in_progress`,title:`In Progress`,createdAt:Date.now()-1e3},{id:`review`,title:`Review`,createdAt:Date.now()}],mo=()=>`item_${Date.now()}`,ho=(e,t)=>({id:e,categoryId:t.categoryId,name:t.name||t.text||`Unnamed Item`,fields:t.fields||(t.value?[{key:`Label`,value:t.value}]:[]),order:t.order||0,uid:t.uid,creatorName:t.creatorName,creatorAvatar:t.creatorAvatar,access:t.access,editors:t.editors}),go=[{text:`text-red-400`,bgCircle:`bg-red-400`,bgCard:`bg-red-500/[0.08]`,borderCard:`border-red-500/30`,bgLight:`bg-red-500/15`,bgHover:`hover:bg-red-500`,bgAlt:`bg-red-500/[0.04]`,name:`Red`},{text:`text-orange-400`,bgCircle:`bg-orange-400`,bgCard:`bg-orange-500/[0.08]`,borderCard:`border-orange-500/30`,bgLight:`bg-orange-500/15`,bgHover:`hover:bg-orange-500`,bgAlt:`bg-orange-500/[0.04]`,name:`Orange`},{text:`text-yellow-400`,bgCircle:`bg-yellow-400`,bgCard:`bg-yellow-500/[0.08]`,borderCard:`border-yellow-500/30`,bgLight:`bg-yellow-500/15`,bgHover:`hover:bg-yellow-500`,bgAlt:`bg-yellow-500/[0.04]`,name:`Yellow`},{text:`text-green-400`,bgCircle:`bg-green-400`,bgCard:`bg-green-500/[0.08]`,borderCard:`border-green-500/30`,bgLight:`bg-green-500/15`,bgHover:`hover:bg-green-500`,bgAlt:`bg-green-500/[0.04]`,name:`Green`},{text:`text-blue-400`,bgCircle:`bg-blue-400`,bgCard:`bg-blue-500/[0.08]`,borderCard:`border-blue-500/30`,bgLight:`bg-blue-500/15`,bgHover:`hover:bg-blue-500`,bgAlt:`bg-blue-500/[0.04]`,name:`Blue`},{text:`text-accent`,bgCircle:`bg-accent`,bgCard:`bg-accent/[0.08]`,borderCard:`border-accent/30`,bgLight:`bg-accent/15`,bgHover:`hover:bg-accent`,bgAlt:`bg-accent/[0.04]`,name:`Purple`},{text:`text-pink-400`,bgCircle:`bg-pink-400`,bgCard:`bg-pink-500/[0.08]`,borderCard:`border-pink-500/30`,bgLight:`bg-pink-500/15`,bgHover:`hover:bg-pink-500`,bgAlt:`bg-pink-500/[0.04]`,name:`Pink`},{text:`text-foreground/60`,bgCircle:`bg-foreground/30`,bgCard:`bg-foreground/[0.04]`,borderCard:`border-[var(--panel-border)]/50`,bgLight:`bg-foreground/15`,bgHover:`hover:bg-foreground/30`,bgAlt:`bg-foreground/[0.02]`,name:`Default`}];function _o({title:e=`Board View`,subtitle:t=`/board`,backUrl:s,tasksCollection:l=`pub_tasks`,categoriesCollection:u=`pub_categories`,config:d,customContent:f}){let{user:p}=r.Ft(),m=!!d,h=d?.isInternal||d?.isShared;d?.isPrivate&&d?.isAdmin;let g=d?.isAdmin||h,_=o.Tn(l),y=c.f(),b=c.F(l),x=c.F(u),S=m?g||_||l.startsWith(`role_`):!0,w=e=>!_||c.C(e,y),T=c.o({on:l.startsWith(`user_`)&&!_,everyone:!1}),D=T.uid||p?.uid||``,[O,k]=(0,K.useState)(()=>_?c.u(l):``),M=(e,t,n,r)=>p?o.Tn(e)?n?c.l({uid:p.uid,...r?Oi(p):{},...t},p.uid):t:e.startsWith(`user_`)?{...t,uid:D||p.uid}:n?{uid:p.uid,...r?Oi(p):{},...t}:t:t,P=!!f,ee=d?.showButton!==!1&&!P,F=d?.buttonText||`+`,te=d?.buttonStyle||`primary`,I=d?.keyName||`key`,L=d?.valueName||`value`,[ne,R]=(0,K.useState)([]),[z,re]=(0,K.useState)([]),B=_?b.records.map(e=>ho(e.id,e)).sort((e,t)=>(e.order||0)-(t.order||0)):ne,V=_?x.records:z,[ae,oe]=(0,K.useState)(null),[H,se]=(0,K.useState)(null),[U,ce]=(0,K.useState)({name:``}),[W,le]=(0,K.useState)([]),[G,ue]=(0,K.useState)(null),de=(0,K.useRef)(null),Y=e=>{de.current=e,ue(e)},pe=(0,K.useRef)(null),[me,he]=(0,K.useState)(null),[ge,_e]=(0,K.useState)(!1),[X,ve]=(0,K.useState)(null),[ye,be]=(0,K.useState)(``),[xe,Z]=(0,K.useState)(null),Q=T.uid||p?.uid;(0,K.useEffect)(()=>{let e=l.startsWith(`user_`),t=u.startsWith(`user_`);if(e&&!p||_)return;let n=e&&Q?`${l}|${Q}`:l,i=t&&Q?`${u}|${Q}`:u;try{let e=localStorage.getItem(`fbos_board_tasks_${n}`);e&&R(JSON.parse(e));let t=localStorage.getItem(`fbos_board_cats_${i}`);t&&re(JSON.parse(t))}catch{}let o=(0,J.onSnapshot)(e&&Q?(0,J.query)((0,J.collection)(r.ui,l),(0,J.where)(`uid`,`==`,Q)):(0,J.collection)(r.ui,l),e=>{let t=[];e.forEach(e=>{let n=e.data();t.push({id:e.id,categoryId:n.categoryId,name:n.name||n.text||`Unnamed Item`,fields:n.fields||(n.value?[{key:`Label`,value:n.value}]:[]),order:n.order||0,uid:n.uid,creatorName:n.creatorName,creatorAvatar:n.creatorAvatar})});let r=t.sort((e,t)=>(e.order||0)-(t.order||0));R(r),localStorage.setItem(`fbos_board_tasks_${n}`,JSON.stringify(r))},a.s),s=(0,J.onSnapshot)(t&&Q?(0,J.query)((0,J.collection)(r.ui,u),(0,J.where)(`uid`,`==`,Q)):(0,J.collection)(r.ui,u),e=>{let n=[];if(e.forEach(e=>{n.push({id:e.id,...e.data()})}),n.length===0){let e=po(),n=Q?{uid:Q}:{},i=t&&Q?`_${Q}`:``;e.forEach(e=>(0,J.setDoc)((0,J.doc)(r.ui,u,`${e.id}${i}`),{...n,title:e.title,createdAt:e.createdAt}))}else re(n),localStorage.setItem(`fbos_board_cats_${i}`,JSON.stringify(n))},a.s);return()=>{o(),s()}},[l,u,Q,_]);let Se=(0,K.useRef)(!1);(0,K.useEffect)(()=>{!_||!Q||x.loading||x.records.length||Se.current||(Se.current=!0,po().forEach(e=>(0,J.setDoc)((0,J.doc)(r.ui,u,`${e.id}_${Q}`),c.l({uid:Q,title:e.title,createdAt:e.createdAt},Q))))},[_,Q,x.loading,x.records.length,u]);let Ce=(e,t)=>{t?(se(t.id),ce({id:t.id,name:t.name}),le(t.fields?.length?[...t.fields,{key:``,value:``}]:[{key:``,value:``}])):(oe(e),ce({name:``}),le([{key:``,value:``}]))},we=(e,t,n)=>{let r=[...W];r[e]={key:t,value:n},e===W.length-1&&(t.trim()!==``||n.trim()!==``)&&r.push({key:``,value:``}),le(r)},Te=async(e,t,n)=>{let i=B.find(t=>t.id===e);if(!i||!w(i))return;let a=B.filter(e=>e.categoryId===t).sort((e,t)=>(e.order||0)-(t.order||0)),o=a.filter(t=>t.id!==e),s=Math.max(0,Math.min(n,o.length));i.categoryId===t&&a.findIndex(t=>t.id===e)===s||[...o.slice(0,s),i,...o.slice(s)].forEach((e,n)=>{let i=M(l,{categoryId:t,order:n},!1,!1);(0,J.setDoc)((0,J.doc)(r.ui,l,e.id),i,{merge:!0})})},{dragging:Ee,bind:De}=uo({scroller:()=>pe.current,onMove:({x:e,y:t},n)=>{let r=pe.current;if(!r)return;let i=null,a=1/0;for(let t of Array.from(r.querySelectorAll(`[data-board-column]`))){let n=t.getBoundingClientRect(),r=e<n.left?n.left-e:e>n.right?e-n.right:0;r<a&&(a=r,i=t)}let o=i?.dataset.boardColumn;if(!i||!o){Y(null);return}let s=Array.from(i.querySelectorAll(`[data-drag-key]`)).filter(e=>e.dataset.dragKey!==n).filter(e=>{let n=e.getBoundingClientRect();return t>n.top+n.height/2}).length,c=de.current;(!c||c.categoryId!==o||c.index!==s)&&Y({categoryId:o,index:s})},onDrop:e=>{let t=de.current;Y(null),t&&Te(e,t.categoryId,t.index)},onCancel:()=>Y(null)}),Oe=Ee?.key??null,ke=Oe?B.find(e=>e.id===Oe):void 0,Ae=async e=>{let t=U.id||mo(),n=U.name.trim(),i=n||`Untitled Item`,a=W.filter(e=>e.key.trim()!==``||e.value.trim()!==``),o=!0,s=U.id?B.find(e=>e.id===U.id):null;if(s){let e=JSON.stringify(s.fields||[]),t=JSON.stringify(a);s.name===i&&e===t&&(o=!1)}else !n&&a.length===0&&(o=!1);if(!o){oe(null),se(null);return}he(U.id||`new`);let c=M(l,{categoryId:e,name:i,fields:a},!U.id,!0);await(0,J.setDoc)((0,J.doc)(r.ui,l,t),c,{merge:!0}),setTimeout(()=>{oe(null),se(null),he(null)},400)},je=(e,t)=>{Z({type:`item`,id:e,title:t})},Me=async()=>{let e=`cat_${Date.now()}`,t=M(u,{title:``,createdAt:Date.now()},!0,!1);await(0,J.setDoc)((0,J.doc)(r.ui,u,e),t),ve(e),be(``),setTimeout(()=>{let e=document.getElementById(`board-container`);e&&e.scrollTo({left:e.scrollWidth,behavior:`smooth`})},150)},Ne=async(e,t)=>{re(n=>n.map(n=>n.id===e?{...n,color:t}:n)),await(0,J.setDoc)((0,J.doc)(r.ui,u,e),{color:t},{merge:!0})},Pe=async e=>{ye.trim()?await(0,J.setDoc)((0,J.doc)(r.ui,u,e),{title:ye},{merge:!0}):await(0,J.deleteDoc)((0,J.doc)(r.ui,u,e)),ve(null)},Fe=(e,t)=>{Z({type:`category`,id:e,title:t})},Ie=async()=>{if(xe){_e(!0);try{if(xe.type===`item`)await(0,J.deleteDoc)((0,J.doc)(r.ui,l,xe.id)),se(null);else{let e=B.filter(e=>e.categoryId===xe.id);for(let t of e)await(0,J.deleteDoc)((0,J.doc)(r.ui,l,t.id));await(0,J.deleteDoc)((0,J.doc)(r.ui,u,xe.id))}}catch{}_e(!1),Z(null)}},Le=[...V].sort((e,t)=>(e.createdAt||0)-(t.createdAt||0));return(0,q.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 overflow-x-clip`,children:[(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-4 md:mb-6 flex items-center gap-3`,children:[!m&&s&&(0,q.jsx)(c.r,{to:s}),(0,q.jsxs)(`div`,{className:`min-w-0`,children:[(0,q.jsx)(n.t,{children:e}),t&&(0,q.jsxs)(`div`,{className:`max-sm:hidden sm:flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,q.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),t]})]})]}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-6 flex-1 min-h-0 pb-16`,children:[m&&(0,q.jsx)(i.t,{}),(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:`flex flex-col glass-panel border border-[var(--panel-border)] rounded-3xl overflow-hidden flex-1 min-h-[400px] shadow-2xl bg-background relative z-10`,children:[(0,q.jsx)(`div`,{className:`absolute top-0 right-0 w-[400px] h-[400px] bg-accent/5 blur-[100px] rounded-full pointer-events-none -z-10`}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3 sm:gap-4 p-4 sm:p-6 md:px-8 md:py-6 border-b border-[var(--panel-border)]/50 bg-background/50 shrink-0 relative z-20`,children:[(0,q.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,q.jsx)(`h2`,{className:`text-lg sm:text-xl font-bold text-foreground tracking-tight truncate`,children:d?.tabTitle||d?.tabName||e}),(0,q.jsxs)(`p`,{className:`text-[13px] font-medium text-foreground/50 mt-1`,children:[B.length,` `,B.length===1?`item`:`items`,` · `,Le.length,` `,Le.length===1?`category`:`categories`]})]}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,q.jsx)(c.a,{viewing:T}),ee&&(0,q.jsx)(N.t,{variant:te===`secondary`?`secondary`:void 0,onClick:Me,className:`px-3 py-2.5 text-[14px] font-bold rounded-xl shadow-lg hover:-translate-y-0.5 transition-all shrink-0`,children:F===`+`?(0,q.jsx)(E.t,{className:`w-4 h-4`}):F})]})]}),(0,q.jsx)(`div`,{className:`flex-1 w-full relative z-40 min-h-0 flex flex-col`,children:f?(0,q.jsx)(c.p,{value:{prefix:o.Mn(d||{}),collection:_?l:``,recordId:_?H||O:``},children:(0,q.jsx)(`div`,{className:`fbos-content-slot fbos-tab-fill w-full flex-1 overflow-y-auto p-4 md:p-6`,children:(0,q.jsx)(j.p,{size:`part`,children:(0,q.jsx)(f,{config:d,actions:{tasks:B,categories:V,collection:l,catCollection:u,user:p,error:_?b.error||x.error:``,...c.s(l,y,_,O),saveTask:async(e,t)=>{let n=e||mo(),i=M(l,t,!B.some(e=>e.id===n),!0);_&&n===O&&k(c.u(l)),R(e=>e.find(e=>e.id===n)?e.map(e=>e.id===n?{...e,...i}:e):[...e,{id:n,...i}]),await(0,J.setDoc)((0,J.doc)(r.ui,l,n),i,{merge:!0})},deleteTask:async e=>{R(t=>t.filter(t=>t.id!==e)),await(0,J.deleteDoc)((0,J.doc)(r.ui,l,e))},saveCategory:async(e,t)=>{let n=M(u,t,!V.some(t=>t.id===e),!1);re(t=>t.find(t=>t.id===e)?t.map(t=>t.id===e?{...t,...n}:t):[...t,{id:e,...n}]),await(0,J.setDoc)((0,J.doc)(r.ui,u,e),n,{merge:!0})},deleteCategory:async e=>{re(t=>t.filter(t=>t.id!==e)),await(0,J.deleteDoc)((0,J.doc)(r.ui,u,e))},openInlineEditor:(e,t)=>Ce(e,t)}})})})}):(0,q.jsxs)(`div`,{ref:pe,id:`board-container`,className:`w-full flex-1 min-h-0 flex flex-row gap-4 md:gap-6 overflow-x-auto p-4 md:p-6 snap-x snap-mandatory styled-scrollbars items-start`,children:[Le.map((e,t)=>{let n=B.filter(t=>t.categoryId===e.id);n.sort((e,t)=>(e.order||0)-(t.order||0));let i=go.find(t=>t.text===e.color)||go.find(e=>e.text===`text-accent`);i.text,i.bgLight,i.bgHover;let a=G?.categoryId===e.id,o=n.filter(e=>e.id!==Oe),s=a?o[G.index]?.id??null:null,c=a&&G.index>=o.length;return(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:t*.1},className:`w-[calc(100vw-80px)] sm:w-[300px] md:w-[320px] shrink-0 flex flex-col max-h-full rounded-3xl p-4 snap-center relative border transition-colors ${go.find(t=>t.text===e.color)?.bgCard||`bg-foreground/[0.02]`} ${go.find(t=>t.text===e.color)?.borderCard||`border-[var(--panel-border)]/50`}`,children:[(0,q.jsx)(`div`,{className:`flex items-center justify-between mb-4 px-2 relative z-[200]`,children:(0,q.jsxs)(`h3`,{className:`font-bold text-[14px] flex items-center w-full text-foreground/80 group relative z-[200]`,children:[X===e.id?(0,q.jsxs)(`div`,{className:`relative flex-1 w-full flex items-center pr-8 z-[200]`,children:[(0,q.jsx)(`div`,{className:`fixed inset-0 z-[-1]`,onClick:t=>{t.stopPropagation(),Pe(e.id)}}),(0,q.jsx)(`input`,{value:ye,onChange:e=>be(e.target.value),onBlur:t=>{t.relatedTarget?.closest(`.category-color-picker`)||Pe(e.id)},onKeyDown:t=>t.key===`Enter`&&Pe(e.id),className:`bg-transparent border-none outline-none font-bold text-[14px] w-full p-0 ${e.color||`text-foreground/80`}`,placeholder:`Category name`,autoFocus:!0}),(0,q.jsxs)(`div`,{className:`absolute top-8 left-0 flex gap-1.5 bg-background/95 backdrop-blur-xl border border-[var(--panel-border)] p-2 rounded-xl shadow-xl z-[100] category-color-picker items-center`,tabIndex:-1,children:[(0,q.jsx)(`button`,{onClick:async t=>{t.preventDefault(),t.stopPropagation(),await Ne(e.id,``),ve(null)},className:`w-4 h-4 rounded-full flex items-center justify-center bg-foreground/10 hover:bg-red-500/20 hover:text-red-500 text-foreground/40 transition-colors border border-[var(--panel-border)]/50 shrink-0`,title:`Reset Category Color`,children:(0,q.jsx)(C.t,{className:`w-3 h-3`})}),(0,q.jsx)(`div`,{className:`h-4 w-px bg-[var(--panel-border)]/50 mx-0.5`}),go.map(t=>(0,q.jsx)(`button`,{onMouseDown:async n=>{n.preventDefault(),await Ne(e.id,t.text)},className:`w-4 h-4 rounded-full ${t.bgCircle} hover:scale-125 transition-transform border border-[var(--panel-border)]/50 shrink-0`},t.name))]})]}):(0,q.jsxs)(`div`,{className:`flex items-center gap-2 w-full hover:text-foreground transition-colors pr-8 ${w(e)?`cursor-pointer`:``}`,onClick:()=>{w(e)&&(ve(e.id),be(e.title))},children:[(0,q.jsx)(`span`,{className:`w-2.5 h-2.5 rounded-full ${go.find(t=>t.text===e.color)?.bgCircle||`bg-foreground/20`} transition-colors shrink-0`}),(0,q.jsx)(`span`,{className:`truncate flex-1 max-w-[200px] ${e.color||``}`,children:e.title||`Untitled Category`}),(0,q.jsx)(`span`,{className:`text-[11px] bg-foreground/10 text-foreground/60 px-1.5 py-0.5 rounded-md font-medium shrink-0`,children:n.length})]}),V.length>1&&w(e)&&(0,q.jsx)(`button`,{onClick:()=>Fe(e.id,e.title),className:`absolute right-0 opacity-100 md:opacity-0 md:group-hover:opacity-100 text-foreground/30 hover:text-red-500 transition-all shrink-0`,children:(0,q.jsx)(A.t,{className:`w-3.5 h-3.5`})})]})}),(0,q.jsxs)(`div`,{"data-board-column":e.id,className:`flex flex-col gap-2.5 flex-1 overflow-y-auto styled-scrollbars pr-1 relative min-h-[150px] rounded-xl transition-colors ${a?`bg-foreground/5 border-dashed border border-accent/20`:``}`,children:[(0,q.jsx)(r.rt,{children:n.map(t=>H===t.id?(0,q.jsxs)(r.nt.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:`bg-background/80 rounded-xl p-3 shadow-md border border-accent/40 transition-all flex flex-col gap-2 relative z-[100]`,children:[(0,q.jsx)(`div`,{className:`fixed inset-0 z-[-1]`,onClick:t=>{t.stopPropagation(),Ae(e.id)}}),(0,q.jsx)(`textarea`,{placeholder:`Write an item name...`,className:`no-glow bg-transparent border-none outline-none text-[13px] text-foreground/90 font-medium leading-snug resize-none w-full min-h-[40px] relative z-10`,value:U.name,onChange:e=>ce({...U,name:e.target.value}),onKeyDown:t=>{t.key===`Enter`&&!t.shiftKey&&(t.preventDefault(),Ae(e.id))}}),(0,q.jsx)(`div`,{className:`flex flex-col gap-2 mt-1 relative z-10 w-full`,children:W.map((t,n)=>(0,q.jsxs)(`div`,{className:`flex items-start bg-foreground/[0.04] border border-[var(--panel-border)]/50 rounded-[8px] px-2.5 py-1.5 w-full`,children:[(0,q.jsx)(`input`,{placeholder:I,value:t.key,onChange:e=>we(n,e.target.value,t.value),onKeyDown:t=>t.key===`Enter`&&Ae(e.id),className:`no-glow bg-transparent outline-none text-[11px] text-foreground/50 font-bold placeholder:text-foreground/30 relative top-[1px] shrink-0`,style:{width:`${Math.max(3,t.key.length||I.length)}ch`}}),(0,q.jsx)(`span`,{className:`text-[11px] text-foreground/50 font-bold mr-1.5 relative top-[1px]`,children:`:`}),(0,q.jsx)(`textarea`,{rows:1,placeholder:L,value:t.value,onChange:e=>we(n,t.key,e.target.value),onInput:e=>{let t=e.target;t.style.height=`auto`,t.style.height=t.scrollHeight+`px`},onKeyDown:t=>{t.key===`Enter`&&!t.shiftKey&&(t.preventDefault(),Ae(e.id))},className:`no-glow bg-transparent outline-none text-[12px] text-foreground/90 font-medium flex-1 min-w-[40px] placeholder:opacity-40 resize-none overflow-hidden leading-tight relative top-[1px]`})]},n))}),me===t.id&&(0,q.jsx)(`div`,{className:`flex items-center justify-end pt-1`,children:(0,q.jsx)(`div`,{className:`w-3 h-3 border-2 border-accent border-t-transparent rounded-full animate-spin`})})]},t.id):(0,K.createElement)(r.nt.div,{...w(t)?De(t.id):{"data-drag-key":t.id},initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},key:t.id,className:`bg-background/80 rounded-xl p-3 shadow-sm hover:shadow-md ${w(t)?`cursor-grab active:cursor-grabbing`:``} hover:border-accent/40 transition-all group flex flex-col gap-2 relative z-10 border ${s===t.id?`border-accent border-t-2 translate-y-1`:`border-[var(--panel-border)]`} ${Oe===t.id?`opacity-30 border-dashed border-2`:``}`},w(t)&&(0,q.jsxs)(`div`,{className:`absolute top-2 right-2 flex items-center gap-1.5 opacity-100 md:opacity-0 md:group-hover:opacity-100 transition-opacity bg-background/90 backdrop-blur-md border border-[var(--panel-border)] rounded-lg p-1 z-20 shadow-md`,children:[(0,q.jsx)(`span`,{...fo,"aria-hidden":`true`,className:`p-1 rounded-md text-foreground/40 hover:text-foreground/70 transition-colors`,children:(0,q.jsx)(at,{className:`w-3.5 h-3.5`})}),(0,q.jsx)(`button`,{onClick:n=>{n.stopPropagation(),Ce(e.id,t)},className:`p-1 hover:bg-foreground/5 rounded-md text-foreground/60 hover:text-accent transition-colors`,children:(0,q.jsx)(v.s,{className:`w-3.5 h-3.5`})}),(0,q.jsx)(`button`,{onClick:e=>{e.stopPropagation(),je(t.id,t.name)},className:`p-1 hover:bg-red-500/10 rounded-md text-foreground/60 hover:text-red-500 transition-colors`,children:(0,q.jsx)(A.t,{className:`w-3.5 h-3.5`})})]}),(0,q.jsx)(`p`,{className:`text-[13px] text-foreground/90 font-medium leading-snug break-words pr-12`,children:t.name}),w(t)&&Le.length>1&&(0,q.jsx)(`div`,{className:`-ml-2 -mb-1 mt-0.5 flex items-center`,"data-no-drag":``,children:(0,q.jsx)(r.Z,{compact:!0,portal:!0,direction:`auto`,variant:`ghost`,ariaLabel:`Move “${t.name}” to another category`,value:e.id,options:Le.map(e=>({value:e.id,label:e.title||`Untitled Category`})),onChange:n=>{n!==e.id&&Te(t.id,n,0)}})}),t.fields&&t.fields.length>0&&(0,q.jsx)(`div`,{className:`flex flex-row flex-wrap gap-2 mt-2`,children:t.fields.map((e,t)=>(0,q.jsxs)(`div`,{className:`inline-flex bg-foreground/[0.04] border border-[var(--panel-border)]/50 rounded-[8px] px-2.5 py-1.5 max-w-full`,children:[(0,q.jsxs)(`span`,{className:`text-[11px] text-foreground/50 font-bold mr-1.5 relative -top-[1px] shrink-0 break-all`,children:[e.key,`:`]}),(0,q.jsx)(`span`,{className:`text-[12px] text-foreground/90 font-medium break-words leading-tight min-w-0`,children:e.value})]},t))}),(0,q.jsxs)(`div`,{className:`flex items-end justify-between mt-3 pt-3 border-t border-[var(--panel-border)]/50 w-full gap-2`,children:[(()=>{let e=S&&m?ji(t,p):null;return e?(0,q.jsxs)(`div`,{className:`flex items-center gap-1.5 pr-2 border-r border-[var(--panel-border)] border-dashed mr-auto`,children:[e.avatar?(0,q.jsx)(r.O,{src:e.avatar,alt:``,className:`w-4 h-4 rounded-full shrink-0`}):(0,q.jsx)(`div`,{className:`w-4 h-4 rounded-full bg-accent/20 text-accent flex items-center justify-center text-[9px] font-bold shrink-0`,children:e.name[0].toUpperCase()}),(0,q.jsx)(`span`,{className:`text-[10px] font-bold text-foreground/60 truncate max-w-[80px]`,children:e.name})]}):(0,q.jsx)(`div`,{className:`flex items-center gap-2 pr-2 border-r border-[var(--panel-border)] border-dashed mr-auto`})})(),(0,q.jsx)(`span`,{className:`text-[10px] text-foreground/40 font-bold text-right pt-0.5 shrink-0 max-w-[50%] truncate flex-1`,children:t.id.startsWith(`item_`)?new Date(parseInt(t.id.split(`_`)[1])).toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}):`Recently Added`})]})))}),c&&o.length>0&&(0,q.jsx)(`div`,{"aria-hidden":`true`,className:`h-0.5 -mt-1 rounded-full bg-accent`}),ae===e.id?(0,q.jsxs)(r.nt.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:`bg-background/80 rounded-xl p-3 shadow-md border border-accent/40 transition-all flex flex-col gap-2 relative z-[100] mt-1`,children:[(0,q.jsx)(`div`,{className:`fixed inset-0 z-[-1]`,onClick:t=>{t.stopPropagation(),Ae(e.id)}}),(0,q.jsx)(`textarea`,{placeholder:`Write an item name...`,className:`no-glow bg-transparent border-none outline-none text-[13px] text-foreground/90 font-medium leading-snug resize-none w-full min-h-[40px] relative z-10`,value:U.name,onChange:e=>ce({...U,name:e.target.value}),onKeyDown:t=>{t.key===`Enter`&&!t.shiftKey&&(t.preventDefault(),Ae(e.id))},autoFocus:!0}),(0,q.jsx)(`div`,{className:`flex flex-col gap-2 mt-1 relative z-10 w-full`,children:W.map((t,n)=>(0,q.jsxs)(`div`,{className:`flex items-start bg-foreground/[0.04] border border-[var(--panel-border)]/50 rounded-[8px] px-2.5 py-1.5 w-full`,children:[(0,q.jsx)(`input`,{placeholder:I,style:{width:`${Math.max(3,t.key.length||I.length)}ch`},value:t.key,onChange:e=>we(n,e.target.value,t.value),onKeyDown:t=>t.key===`Enter`&&Ae(e.id),className:`no-glow bg-transparent outline-none text-[11px] text-foreground/50 font-bold placeholder:text-foreground/30 relative top-[1px]`}),(0,q.jsx)(`span`,{className:`text-[11px] text-foreground/50 font-bold mr-1.5 relative top-[1px]`,children:`:`}),(0,q.jsx)(`textarea`,{rows:1,placeholder:L,value:t.value,onChange:e=>we(n,t.key,e.target.value),onInput:e=>{let t=e.target;t.style.height=`auto`,t.style.height=t.scrollHeight+`px`},onKeyDown:t=>{t.key===`Enter`&&!t.shiftKey&&(t.preventDefault(),Ae(e.id))},className:`no-glow bg-transparent outline-none text-[12px] text-foreground/90 font-medium flex-1 min-w-[40px] placeholder:opacity-40 resize-none overflow-hidden leading-tight relative top-[1px]`})]},n))}),me===`new`&&(0,q.jsx)(`div`,{className:`flex items-center justify-end pt-1`,children:(0,q.jsx)(`div`,{className:`w-3 h-3 border-2 border-accent border-t-transparent rounded-full animate-spin`})})]}):(0,q.jsxs)(`button`,{onClick:()=>Ce(e.id),className:`flex items-center gap-2 justify-center w-full py-2.5 mt-1 rounded-xl border border-transparent text-[12px] font-bold text-foreground/40 hover:text-foreground hover:bg-foreground/[0.03] transition-all shrink-0`,children:[(0,q.jsx)(E.t,{className:`w-4 h-4`}),` Add Item`]})]})]},e.id)}),(0,q.jsx)(`div`,{className:`w-[10px] shrink-0 pointer-events-none`}),Ee&&ke&&typeof document<`u`&&(0,fe.createPortal)((0,q.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none fixed z-[9995] rotate-[1.5deg] rounded-xl border border-accent/40 bg-background/95 p-3 shadow-2xl`,style:{left:Ee.x-Ee.offsetX,top:Ee.y-Ee.offsetY,width:Ee.width},children:(0,q.jsx)(`p`,{className:`text-[13px] text-foreground/90 font-medium leading-snug break-words`,children:ke.name})}),document.body)]})})]})]}),(0,q.jsx)(`style`,{children:`.styled-scrollbars::-webkit-scrollbar { width: 6px; height: 6px; } .styled-scrollbars::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent-color) 20%, transparent); border-radius: 4px; } .styled-scrollbars::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--accent-color) 40%, transparent); }`}),(0,q.jsx)(ie.t,{isOpen:!!xe,title:`Confirm Deletion`,message:(0,q.jsxs)(q.Fragment,{children:[`Are you sure you want to delete `,(0,q.jsx)(`strong`,{className:`text-foreground font-extrabold break-words mx-1`,children:xe?.title}),` This action is permanent.`]}),onConfirm:Ie,onCancel:()=>Z(null),isProcessing:ge,confirmText:`Yes, Delete`})]})}function vo(e){return Array.isArray?Array.isArray(e):Oo(e)===`[object Array]`}function yo(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function bo(e){return e==null?``:yo(e)}function xo(e){return typeof e==`string`}function So(e){return typeof e==`number`}function Co(e){return e===!0||e===!1||To(e)&&Oo(e)==`[object Boolean]`}function wo(e){return typeof e==`object`}function To(e){return wo(e)&&e!==null}function Eo(e){return e!=null}function Do(e){return!e.trim().length}function Oo(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var ko=`Incorrect 'index' type`,Ao=e=>`Invalid value for key ${e}`,jo=e=>`Pattern length exceeds max of ${e}.`,Mo=e=>`Missing ${e} property in key`,No=e=>`Property 'weight' in key '${e}' must be a positive integer`,Po=Object.prototype.hasOwnProperty,Fo=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=Io(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function Io(e){let t=null,n=null,r=null,i=1,a=null;if(xo(e)||vo(e))r=e,t=Lo(e),n=Ro(e);else{if(!Po.call(e,`name`))throw Error(Mo(`name`));let o=e.name;if(r=o,Po.call(e,`weight`)&&(i=e.weight,i<=0))throw Error(No(o));t=Lo(o),n=Ro(o),a=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:a}}function Lo(e){return vo(e)?e:e.split(`.`)}function Ro(e){return vo(e)?e.join(`.`):e}function zo(e,t){let n=[],r=!1,i=(e,t,a,o)=>{if(Eo(e))if(!t[a])n.push(o===void 0?e:{v:e,i:o});else{let s=e[t[a]];if(!Eo(s))return;if(a===t.length-1&&(xo(s)||So(s)||Co(s)||typeof s==`bigint`))n.push(o===void 0?bo(s):{v:bo(s),i:o});else if(vo(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)i(s[e],t,a+1,e)}else t.length&&i(s,t,a+1,o)}};return i(e,xo(t)?t.split(`.`):t,0),r?n:n[0]}var Bo={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Vo={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},Ho={location:0,threshold:.6,distance:100},Uo={useExtendedSearch:!1,useTokenSearch:!1,getFn:zo,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},$=Object.freeze({...Vo,...Bo,...Ho,...Uo}),Wo=/[^ ]+/g;function Go(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=t.match(Wo).length;if(n.has(i))return n.get(i);let a=1/i**(.5*e),o=parseFloat(Math.round(a*r)/r);return n.set(i,o),o},clear(){n.clear()}}}var Ko=class{constructor({getFn:e=$.getFn,fieldNormWeight:t=$.fieldNormWeight}={}){this.norm=Go(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,xo(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();xo(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)--this.records[t].i}removeAll(e){for(let t=e.length-1;t>=0;--t)this.records.splice(e[t],1);for(let e=0,t=this.records.length;e<t;e+=1)this.records[e].i=e}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!Eo(e)||Do(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach((t,r)=>{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(Eo(i)){if(vo(i)){let e=[];for(let t=0,n=i.length;t<n;t+=1){let n=i[t];if(Eo(n)){if(xo(n)){if(!Do(n)){let r={v:n,i:t,n:this.norm.get(n)};e.push(r)}}else if(Eo(n.v)){let t=xo(n.v)?n.v:bo(n.v);if(!Do(t)){let r={v:t,i:n.i,n:this.norm.get(t)};e.push(r)}}}}n.$[r]=e}else if(xo(i)&&!Do(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}}}),this.records.push(n)}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function qo(e,t,{getFn:n=$.getFn,fieldNormWeight:r=$.fieldNormWeight}={}){let i=new Ko({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(Io)),i.setSources(t),i.create(),i}function Jo(e,{getFn:t=$.getFn,fieldNormWeight:n=$.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new Ko({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function Yo(e=[],t=$.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&r===-1?r=a:!o&&r!==-1&&(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}var Xo=32;function Zo(e,t,n,{location:r=$.location,distance:i=$.distance,threshold:a=$.threshold,findAllMatches:o=$.findAllMatches,minMatchCharLength:s=$.minMatchCharLength,includeMatches:c=$.includeMatches,ignoreLocation:l=$.ignoreLocation}={}){if(t.length>Xo)throw Error(jo(Xo));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=(e,t)=>{let n=e/u;if(l)return n;let r=Math.abs(f-t);return i?n+r/i:r?1:n},g=s>1||c,_=g?Array(d):[],v;for(;(v=e.indexOf(t,m))>-1;){let e=h(0,v);if(p=Math.min(e,p),m=v+u,g){let e=0;for(;e<u;)_[v+e]=1,e+=1}}m=-1;let y=[],b=1,x=u+d,S=1<<u-1;for(let t=0;t<u;t+=1){let r=0,i=x;for(;r<i;)h(t,f+i)<=p?r=i:x=i,i=Math.floor((x-r)/2+r);x=i;let a=Math.max(1,f-i+1),s=o?d:Math.min(f+i,d)+u,c=Array(s+2);c[s+1]=(1<<t)-1;for(let r=s;r>=a;--r){let i=r-1,o=n[e[i]];if(g&&(_[i]=+!!o),c[r]=(c[r+1]<<1|1)&o,t&&(c[r]|=(y[r+1]|y[r])<<1|1|y[r+1]),c[r]&S&&(b=h(t,i),b<=p)){if(p=b,m=i,m<=f)break;a=Math.max(1,2*f-m)}}if(h(t+1,f)>p)break;y=c}let C={isMatch:m>=0,score:Math.max(.001,b)};if(g){let e=Yo(_,s);e.length?c&&(C.indices=e):C.isMatch=!1}return C}function Qo(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}function $o(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){let r=t[t.length-1],i=e[n];i[0]<=r[1]+1?r[1]=Math.max(r[1],i[1]):t.push(i)}return t}var es={ł:`l`,Ł:`L`,đ:`d`,Đ:`D`,ø:`o`,Ø:`O`,ħ:`h`,Ħ:`H`,ŧ:`t`,Ŧ:`T`,ı:`i`,ß:`ss`},ts=RegExp(`[`+Object.keys(es).join(``)+`]`,`g`),ns=String.prototype.normalize?e=>e.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``).replace(ts,e=>es[e]):e=>e,rs=class{constructor(e,{location:t=$.location,threshold:n=$.threshold,distance:r=$.distance,includeMatches:i=$.includeMatches,findAllMatches:a=$.findAllMatches,minMatchCharLength:o=$.minMatchCharLength,isCaseSensitive:s=$.isCaseSensitive,ignoreDiacritics:c=$.ignoreDiacritics,ignoreLocation:l=$.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?ns(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:Qo(e),startIndex:t})},d=this.pattern.length;if(d>Xo){let e=0,t=d%Xo,n=d-t;for(;e<n;)u(this.pattern.substr(e,Xo),e),e+=Xo;if(t){let e=d-Xo;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?ns(e):e,this.pattern===e){let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[],d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{let{isMatch:m,score:h,indices:g}=Zo(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&u.push(...g)});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=$o(u)),p}},is=class{constructor(e){this.pattern=e}static isMultiMatch(e){return as(e,this.multiRegex)}static isSingleMatch(e){return as(e,this.singleRegex)}search(e){return{isMatch:!1,score:1}}};function as(e,t){let n=e.match(t);return n?n[1]:null}var os=class extends is{constructor(e){super(e)}static get type(){return`exact`}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},ss=class extends is{constructor(e){super(e)}static get type(){return`inverse-exact`}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=e.indexOf(this.pattern)===-1;return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},cs=class extends is{constructor(e){super(e)}static get type(){return`prefix-exact`}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},ls=class extends is{constructor(e){super(e)}static get type(){return`inverse-prefix-exact`}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},us=class extends is{constructor(e){super(e)}static get type(){return`suffix-exact`}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[e.length-this.pattern.length,e.length-1]}}},ds=class extends is{constructor(e){super(e)}static get type(){return`inverse-suffix-exact`}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},fs=class extends is{constructor(e,{location:t=$.location,threshold:n=$.threshold,distance:r=$.distance,includeMatches:i=$.includeMatches,findAllMatches:a=$.findAllMatches,minMatchCharLength:o=$.minMatchCharLength,isCaseSensitive:s=$.isCaseSensitive,ignoreDiacritics:c=$.ignoreDiacritics,ignoreLocation:l=$.ignoreLocation}={}){super(e),this._bitapSearch=new rs(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l})}static get type(){return`fuzzy`}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}},ps=class extends is{constructor(e){super(e)}static get type(){return`include`}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t=0,n,r=[],i=this.pattern.length;for(;(n=e.indexOf(this.pattern,t))>-1;)t=n+i,r.push([n,t-1]);let a=!!r.length;return{isMatch:a,score:+!a,indices:r}}},ms=[os,ps,cs,ls,ds,us,ss,fs],hs=ms.length,gs=`\0`,_s=`|`;function vs(e){let t=[],n=e.length,r=0;for(;r<n;){for(;r<n&&e[r]===` `;)r++;if(r>=n)break;let i=r;for(;i<n&&e[i]!==` `&&e[i]!==`"`;)i++;if(i<n&&e[i]===`"`){for(i++;i<n;){if(e[i]===`"`){let t=i+1;if(t>=n||e[t]===` `){i++;break}if(e[t]===`$`&&(t+1>=n||e[t+1]===` `)){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i<n&&e[i]!==` `;)i++;t.push(e.substring(r,i)),r=i}}return t}function ys(e,t={}){return e.replace(/\\\|/g,gs).split(_s).map(e=>{let n=vs(e.replace(/\u0000/g,`|`).trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){let i=n[e],a=!1,o=-1;for(;!a&&++o<hs;){let e=ms[o],n=e.isMultiMatch(i);n&&(r.push(new e(n,t)),a=!0)}if(!a)for(o=-1;++o<hs;){let e=ms[o],n=e.isSingleMatch(i);if(n){r.push(new e(n,t));break}}}return r})}var bs=new Set([fs.type,ps.type]),xs=class{constructor(e,{isCaseSensitive:t=$.isCaseSensitive,ignoreDiacritics:n=$.ignoreDiacritics,includeMatches:r=$.includeMatches,minMatchCharLength:i=$.minMatchCharLength,ignoreLocation:a=$.ignoreLocation,findAllMatches:o=$.findAllMatches,location:s=$.location,threshold:c=$.threshold,distance:l=$.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:c,distance:l},e=t?e:e.toLowerCase(),e=n?ns(e):e,this.pattern=e,this.query=ys(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?ns(e):e;let a=0,o=[],s=0,c=!1;for(let r=0,i=t.length;r<i;r+=1){let i=t[r];o.length=0,a=0,c=!1;for(let t=0,r=i.length;t<r;t+=1){let r=i[t],{isMatch:l,indices:u,score:d}=r.search(e);if(l){a+=1,s+=d;let e=r.constructor.type;e.startsWith(`inverse`)&&(c=!0),n&&(bs.has(e)?o.push(...u):o.push(u))}else{s=0,a=0,o.length=0,c=!1;break}}if(a){let e={isMatch:!0,score:s/a};return c&&(e.hasInverse=!0),n&&(e.indices=$o(o)),e}}return{isMatch:!1,score:1}}},Ss=[];function Cs(...e){Ss.push(...e)}function ws(e,t){for(let n=0,r=Ss.length;n<r;n+=1){let r=Ss[n];if(r.condition(e,t))return new r(e,t)}return new rs(e,t)}var Ts={AND:`$and`,OR:`$or`},Es={PATH:`$path`,PATTERN:`$val`},Ds=e=>!!(e[Ts.AND]||e[Ts.OR]),Os=e=>!!e[Es.PATH],ks=e=>!vo(e)&&wo(e)&&!Ds(e),As=e=>({[Ts.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function js(e,t,{auto:n=!0}={}){let r=e=>{if(xo(e)){let r={keyId:null,pattern:e};return n&&(r.searcher=ws(e,t)),r}let i=Object.keys(e),a=Os(e);if(!a&&i.length>1&&!Ds(e))return r(As(e));if(ks(e)){let r=a?e[Es.PATH]:i[0],o=a?e[Es.PATTERN]:e[r];if(!xo(o))throw Error(Ao(r));let s={keyId:Ro(r),pattern:o};return n&&(s.searcher=ws(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];vo(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return Ds(e)||(e=As(e)),r(e)}function Ms(e,{ignoreFieldNorm:t=$.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),n}function Ns(e,{ignoreFieldNorm:t=$.ignoreFieldNorm}){e.forEach(e=>{e.score=Ms(e.matches,{ignoreFieldNorm:t})})}var Ps=class{constructor(e){this.limit=e,this.heap=[]}get size(){return this.heap.length}shouldInsert(e){return this.size<this.limit||e<this.heap[0].score}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):e.score<this.heap[0].score&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(e){return this.heap.sort(e)}_bubbleUp(e){let t=this.heap;for(;e>0;){let n=e-1>>1;if(t[e].score<=t[n].score)break;let r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){let t=this.heap,n=t.length,r=e;do{e=r;let i=2*e+1,a=2*e+2;if(i<n&&t[i].score>t[r].score&&(r=i),a<n&&t[a].score>t[r].score&&(r=a),r!==e){let n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function Fs(e,t){let n=e.matches;t.matches=[],Eo(n)&&n.forEach(e=>{if(!Eo(e.indices)||!e.indices.length)return;let{indices:n,value:r}=e,i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function Is(e,t){t.score=e.score}function Ls(e,t,{includeMatches:n=$.includeMatches,includeScore:r=$.includeScore}={}){let i=[];return n&&i.push(Fs),r&&i.push(Is),e.map(e=>{let{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach(t=>{t(e,r)}),r})}var Rs=/\b\w+\b/g;function zs({isCaseSensitive:e=!1,ignoreDiacritics:t=!1}={}){return{tokenize(n){return e||(n=n.toLowerCase()),t&&(n=ns(n)),n.match(Rs)||[]}}}function Bs(e,t,n){let r=new Map,i=new Map,a=0;function o(e,t,o,s){let c=n.tokenize(e);if(!c.length)return;a++;let l=new Map;for(let e of c)l.set(e,(l.get(e)||0)+1);for(let[e,n]of l){let a={docIdx:t,keyIdx:o,subIdx:s,tf:n},c=r.get(e);c||(c=[],r.set(e,c)),c.push(a),i.set(e,(i.get(e)||0)+1)}}for(let n of e){let{i:e,v:r,$:i}=n;if(r!==void 0){o(r,e,-1,-1);continue}if(i)for(let n=0;n<t;n++){let t=i[n];if(t)if(Array.isArray(t))for(let r of t)o(r.v,e,n,r.i??-1);else o(t.v,e,n,-1)}}return{terms:r,fieldCount:a,df:i}}function Vs(e,t,n,r){let{i,v:a,$:o}=t;function s(t,n,a){let o=r.tokenize(t);if(!o.length)return;e.fieldCount++;let s=new Map;for(let e of o)s.set(e,(s.get(e)||0)+1);for(let[t,r]of s){let o={docIdx:i,keyIdx:n,subIdx:a,tf:r},s=e.terms.get(t);s||(s=[],e.terms.set(t,s)),s.push(o),e.df.set(t,(e.df.get(t)||0)+1)}}if(a!==void 0){s(a,-1,-1);return}if(o)for(let e=0;e<n;e++){let t=o[e];if(t)if(Array.isArray(t))for(let n of t)s(n.v,e,n.i??-1);else s(t.v,e,-1)}}function Hs(e,t){for(let[n,r]of e.terms){let i=r.filter(e=>e.docIdx!==t),a=r.length-i.length;a>0&&(e.fieldCount-=a,e.df.set(n,(e.df.get(n)||0)-a),i.length===0?(e.terms.delete(n),e.df.delete(n)):e.terms.set(n,i))}}var Us=class{constructor(e,t,n){this.options={...$,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new Fo(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=ws(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Ko))throw Error(ko);if(this._myIndex=t||qo(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=zs({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});this._invertedIndex=Bs(this._myIndex.records,this._myIndex.keys.length,e)}}add(e){if(Eo(e)&&(this._docs.push(e),this._myIndex.add(e),this._invertedIndex)){let e=this._myIndex.records[this._myIndex.records.length-1],t=zs({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});Vs(this._invertedIndex,e,this._myIndex.keys.length,t)}}remove(e=()=>!1){let t=[],n=[];for(let r=0,i=this._docs.length;r<i;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){if(this._invertedIndex)for(let e of n)Hs(this._invertedIndex,e);for(let e=n.length-1;e>=0;--e)this._docs.splice(n[e],1);this._myIndex.removeAll(n)}return t}removeAt(e){this._invertedIndex&&Hs(this._invertedIndex,e);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),t}getIndex(){return this._myIndex}search(e,t){let{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:a,sortFn:o,ignoreFieldNorm:s}=this.options;if(xo(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return So(n)&&n>-1&&(e=e.slice(0,n)),e}let c=So(n)&&n>0&&xo(e),l;if(c){let t=new Ps(n);xo(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),l=t.extractSorted(o)}else l=xo(e)?xo(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),Ns(l,{ignoreFieldNorm:s}),a&&l.sort(o),So(n)&&n>-1&&(l=l.slice(0,n));return Ls(l,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),{records:i}=this._myIndex,a=t?null:[];return i.forEach(({v:e,i,n:o})=>{if(!Eo(e))return;let{isMatch:s,score:c,indices:l}=r.searchIn(e);if(s){let r={item:e,idx:i,matches:[{score:c,value:e,norm:o,indices:l}]};t?(r.score=Ms(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):a.push(r)}}),a}_searchLogical(e){let t=js(e,this.options),n=(e,t,r)=>{if(!(`children`in e)){let{keyId:n,searcher:i}=e,a;return n===null?(a=[],this._myIndex.keys.forEach((e,n)=>{a.push(...this._findMatches({key:e,value:t[n],searcher:i}))})):a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i}),a&&a.length?[{idx:r,item:t,matches:a}]:[]}let{children:i,operator:a}=e,o=[];for(let e=0,s=i.length;e<s;e+=1){let s=i[e],c=n(s,t,r);if(c.length)o.push(...c);else if(a===Ts.AND)return[]}return o},r=this._myIndex.records,i=new Map,a=[];return r.forEach(({$:e,i:r})=>{if(Eo(e)){let o=n(t,e,r);o.length&&(i.has(r)||(i.set(r,{idx:r,item:e,matches:[]}),a.push(i.get(r))),o.forEach(({matches:e})=>{i.get(r).matches.push(...e)}))}}),a}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),{keys:i,records:a}=this._myIndex,o=t?null:[];return a.forEach(({$:e,i:a})=>{if(!Eo(e))return;let s=[],c=!1,l=!1;if(i.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(s.push(...i),i[0].hasInverse&&(l=!0)):c=!0}),!(l&&c)&&s.length){let r={idx:a,item:e,matches:s};t?(r.score=Ms(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):o.push(r)}}),o}_findMatches({key:e,value:t,searcher:n}){if(!Eo(t))return[];let r=[];if(vo(t))t.forEach(({v:t,i,n:a})=>{if(!Eo(t))return;let{isMatch:o,score:s,indices:c,hasInverse:l}=n.searchIn(t);o&&r.push({score:s,key:e,value:t,idx:i,norm:a,indices:c,hasInverse:l})});else{let{v:i,n:a}=t,{isMatch:o,score:s,indices:c,hasInverse:l}=n.searchIn(i);o&&r.push({score:s,key:e,value:i,norm:a,indices:c,hasInverse:l})}return r}},Ws=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=zs({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics});let n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(let e of n){this.termSearchers.push(new rs(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));let n=r.get(e)||0,a=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(a)}}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],n=0,r=0,i=0;for(let a=0;a<this.termSearchers.length;a++){let o=this.termSearchers[a].searchIn(e),s=this.idfWeights[a];r+=s,o.isMatch&&(i++,n+=s*(1-o.score),o.indices&&t.push(...o.indices))}if(i===0)return{isMatch:!1,score:1};let a=r>0?1-n/r:0,o={isMatch:!0,score:Math.max(.001,a)};return this.options.includeMatches&&t.length&&(o.indices=$o(t)),o}};Us.version=`7.3.0`,Us.createIndex=qo,Us.parseIndex=Jo,Us.config=$,Us.match=function(e,t,n){return ws(e,{...$,...n}).searchIn(t)},Us.parseQuery=js,Cs(xs),Cs(Ws),Us.use=function(...e){e.forEach(e=>Cs(e))};var Gs=[{text:`text-red-400`,bgCircle:`bg-red-400`,bgCard:`bg-red-500/[0.08]`,borderCard:`border-red-500/30`,bgLight:`bg-red-500/15`,bgHover:`hover:bg-red-500`,bgAlt:`bg-red-500/[0.04]`,name:`Red`},{text:`text-orange-400`,bgCircle:`bg-orange-400`,bgCard:`bg-orange-500/[0.08]`,borderCard:`border-orange-500/30`,bgLight:`bg-orange-500/15`,bgHover:`hover:bg-orange-500`,bgAlt:`bg-orange-500/[0.04]`,name:`Orange`},{text:`text-yellow-400`,bgCircle:`bg-yellow-400`,bgCard:`bg-yellow-500/[0.08]`,borderCard:`border-yellow-500/30`,bgLight:`bg-yellow-500/15`,bgHover:`hover:bg-yellow-500`,bgAlt:`bg-yellow-500/[0.04]`,name:`Yellow`},{text:`text-green-400`,bgCircle:`bg-green-400`,bgCard:`bg-green-500/[0.08]`,borderCard:`border-green-500/30`,bgLight:`bg-green-500/15`,bgHover:`hover:bg-green-500`,bgAlt:`bg-green-500/[0.04]`,name:`Green`},{text:`text-blue-400`,bgCircle:`bg-blue-400`,bgCard:`bg-blue-500/[0.08]`,borderCard:`border-blue-500/30`,bgLight:`bg-blue-500/15`,bgHover:`hover:bg-blue-500`,bgAlt:`bg-blue-500/[0.04]`,name:`Blue`},{text:`text-accent`,bgCircle:`bg-accent`,bgCard:`bg-accent/[0.08]`,borderCard:`border-accent/30`,bgLight:`bg-accent/15`,bgHover:`hover:bg-accent`,bgAlt:`bg-accent/[0.04]`,name:`Purple`},{text:`text-pink-400`,bgCircle:`bg-pink-400`,bgCard:`bg-pink-500/[0.08]`,borderCard:`border-pink-500/30`,bgLight:`bg-pink-500/15`,bgHover:`hover:bg-pink-500`,bgAlt:`bg-pink-500/[0.04]`,name:`Pink`},{text:`text-foreground/60`,bgCircle:`bg-foreground/30`,bgCard:`bg-foreground/[0.04]`,borderCard:`border-[var(--panel-border)]/50`,bgLight:`bg-foreground/15`,bgHover:`hover:bg-foreground/30`,bgAlt:`bg-foreground/[0.02]`,name:`Default`}];function Ks({title:e=`Table View`,subtitle:t=`/table`,backUrl:l,tableCollection:u=`pub_table_data`,config:d,customContent:f}){let{user:p}=r.Ft(),m=!!d,h=d?.isInternal||d?.isShared;d?.isPrivate&&d?.isAdmin;let g=d?.isAdmin||h,_=o.Tn(u),y=c.f(),b=c.F(u),x=m?g||_||u.startsWith(`role_`):!0,[S,w]=(0,K.useState)(()=>_?c.u(u):``),T=c.o({on:u.startsWith(`user_`)&&!_,everyone:!1}),D=T.uid||p?.uid||``,O=(e,t)=>p?_?t?c.l({uid:p.uid,...Oi(p),...e},p.uid):e:u.startsWith(`user_`)?{...e,uid:D||p.uid}:t?{uid:p.uid,...e}:e:e,k=!!f,M=d?.showButton!==!1&&!k,P=d?.buttonText||`+`,ee=d?.buttonStyle||`secondary`,F=d?.showExportButton!==!1,[te,I]=(0,K.useState)([]),L=_?b.records:te,[ne,R]=(0,K.useState)(`demo`),[z,re]=(0,K.useState)(!1),[B,V]=(0,K.useState)(!1),[ae,oe]=(0,K.useState)(``),[H,se]=(0,K.useState)(!1),[U,ce]=(0,K.useState)(null),[W,le]=(0,K.useState)(null),[G,ue]=(0,K.useState)(``),[de,Y]=(0,K.useState)(!1),[fe,pe]=(0,K.useState)(``),[me,he]=(0,K.useState)(null),[ge,_e]=(0,K.useState)(null),[X,ve]=(0,K.useState)(null),[ye,be]=(0,K.useState)(!1);(0,K.useEffect)(()=>{let e=u.startsWith(`user_`);if(e&&!p||_)return;let t=e?`${u}|${D}`:u;try{let e=localStorage.getItem(`fbos_tables_${t}`);e&&I(JSON.parse(e))}catch{}let n=(0,J.onSnapshot)(e&&p?(0,J.query)((0,J.collection)(r.ui,u),(0,J.where)(`uid`,`==`,D||p.uid)):(0,J.collection)(r.ui,u),n=>{let i=[];if(n.forEach(e=>{i.push({id:e.id,...e.data()})}),i.length===0){let t={name:`Unnamed Table`,columns:[`Column 1`,`Column 2`,`Column 3`,`Column 4`],...p?{uid:D||p.uid}:{},rows:[{id:`1`,"Column 1":``,"Column 2":``,"Column 3":``,"Column 4":``},{id:`2`,"Column 1":``,"Column 2":``,"Column 3":``,"Column 4":``}]};(0,J.setDoc)((0,J.doc)(r.ui,u,e&&p?`demo_${D||p.uid}`:`demo`),t)}else{let e=i.sort((e,t)=>(e.name||``).localeCompare(t.name||``));I(e),localStorage.setItem(`fbos_tables_${t}`,JSON.stringify(e))}},a.s);return()=>n()},[u,p,_,D]);let xe=(0,K.useRef)(!1);(0,K.useEffect)(()=>{!_||!p||b.loading||b.records.length||xe.current||(xe.current=!0,(0,J.setDoc)((0,J.doc)(r.ui,u,`demo_${p.uid}`),c.l({uid:p.uid,...Oi(p),name:`Unnamed Table`,columns:[`Column 1`,`Column 2`,`Column 3`,`Column 4`],rows:[{id:`1`,"Column 1":``,"Column 2":``,"Column 3":``,"Column 4":``},{id:`2`,"Column 1":``,"Column 2":``,"Column 3":``,"Column 4":``}]},p.uid)))},[_,p,b.loading,b.records.length,u]);let Z=L.find(e=>e.id===ne)||L[0]||{columns:[],rows:[]},Q=!_||c.C(Z,y),Se=async e=>{Z.id&&(p&&u.startsWith(`user_`)&&(e.uid=D||p.uid),await(0,J.setDoc)((0,J.doc)(r.ui,u,Z.id),e,{merge:!0}))},Ce=()=>{if(!Z.rows||Z.rows.length===0)return;let e=Z.columns.join(`,`),t=Z.rows.map(e=>Z.columns.map(t=>`"${e[t]||``}"`).join(`,`)).join(`
|
|
6
|
-
`),n=new Blob([`${e}\n${t}`],{type:`text/csv`}),r=window.URL.createObjectURL(n),i=document.createElement(`a`);i.href=r,i.download=`export_${Z.name||`table`}.csv`,i.click(),window.URL.revokeObjectURL(r)},we=(e,t,n)=>{Se({...Z,rows:Z.rows.map(r=>r.id===e?{...r,[t]:n}:r)})},Te=()=>{let e=Oi(p),t={id:Date.now().toString(),...p?{_uid:p.uid,_creatorName:e.creatorName,_creatorAvatar:e.creatorAvatar}:{}};Z.columns.forEach(e=>t[e]=``),Se({...Z,rows:[...Z.rows||[],t]})},Ee=e=>{Se({...Z,rows:Z.rows.filter(t=>t.id!==e)})},De=()=>{X&&(X.kind===`row`?Ee(X.id):ke(X.name),ve(null))},Oe=()=>{let e=`Column ${(Z.columns?.length||0)+1}`;Z.columns?.includes(e)||(Se({...Z,columns:[...Z.columns||[],e]}),setTimeout(()=>{let e=document.getElementById(`table-scroll-container`);e&&e.scrollTo({left:e.scrollWidth,behavior:`smooth`})},100))},ke=e=>{let t=(Z.columns||[]).filter(t=>t!==e),n=(Z.rows||[]).map(t=>{let n={...t};return delete n[e],n}),r={...Z.colColors||{}};delete r[e],Se({...Z,columns:t,rows:n,colColors:r})},Ae=async e=>{e.trim()&&Z.id&&e!==Z.name&&await(0,J.setDoc)((0,J.doc)(r.ui,u,Z.id),{name:e},{merge:!0})},je=async()=>{se(!0),re(!1);let e=`tbl_${Date.now()}`;await(0,J.setDoc)((0,J.doc)(r.ui,u,e),{name:`Unnamed Table`,columns:[`Column 1`,`Column 2`,`Column 3`],...p?{uid:p.uid}:{},rows:[]}),setTimeout(()=>{R(e),se(!1)},600)},Me=e=>{let t=fe.trim();if(t&&t!==e&&!Z.columns?.includes(t)){let n=Z.columns.map(n=>n===e?t:n),r=(Z.rows||[]).map(n=>{let r={...n};return r[t]=r[e]||``,delete r[e],r}),i={...Z.colColors||{}};i[e]&&(i[t]=i[e],delete i[e]),Se({...Z,columns:n,rows:r,colColors:i})}le(null)},Ne=e=>ji({uid:e._uid,creatorName:e._creatorName,creatorAvatar:e._creatorAvatar},p),Pe=Z.rows||[];return G.trim()!==``&&(Pe=new Us(Pe.map(e=>({...e,_creatorMatch:Ne(e)?.name||``})),{keys:(Z.columns||[]).concat([`_creatorMatch`]),threshold:.4,ignoreLocation:!0}).search(G).map(e=>{let{_creatorMatch:t,...n}=e.item;return n})),(0,q.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,q.jsxs)(r.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-4 md:mb-6 flex items-center gap-3`,children:[!m&&l&&(0,q.jsx)(c.r,{to:l}),(0,q.jsxs)(`div`,{className:`min-w-0`,children:[(0,q.jsx)(n.t,{children:e}),t&&(0,q.jsxs)(`div`,{className:`max-sm:hidden sm:flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,q.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),t]})]})]}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-6 flex-1 min-h-0 pb-16`,children:[m&&(0,q.jsx)(i.t,{}),(0,q.jsxs)(r.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 overflow-hidden shadow-2xl relative z-10 flex flex-col flex-1 min-h-[400px]`,children:[(0,q.jsx)(`div`,{className:`absolute top-0 right-0 w-[400px] h-[400px] bg-accent/5 blur-[100px] rounded-full pointer-events-none -z-10`}),(0,q.jsxs)(`div`,{className:`p-4 md:px-6 border-b border-[var(--panel-border)]/50 flex items-center justify-between bg-foreground/[0.01] gap-3 sm:gap-4`,children:[(0,q.jsxs)(`div`,{className:`flex flex-col min-w-0 relative`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2 relative`,children:[(0,q.jsxs)(`div`,{className:`relative flex items-center`,children:[B?(0,q.jsx)(`div`,{contentEditable:!0,suppressContentEditableWarning:!0,onBlur:e=>{V(!1),Ae(e.currentTarget.textContent||``)},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},className:`bg-transparent border-b-2 border-accent outline-none text-[16px] font-bold text-foreground inline-block min-w-[20px] whitespace-nowrap px-1 py-0.5`,children:Z.name||`Unnamed Table`}):(0,q.jsx)(`h3`,{className:`font-bold text-[16px] text-foreground/90 hover:text-accent transition-colors truncate max-w-[38vw] sm:max-w-[200px] ${Q?`cursor-pointer`:``}`,onClick:()=>Q&&V(!0),title:Q?`Click to rename table`:void 0,children:Z.name||`Unnamed Table`}),(0,q.jsx)(r.rt,{children:z&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{className:`fixed inset-0 z-40`,onClick:()=>re(!1)}),(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:`absolute top-[120%] left-0 w-[220px] bg-background/95 backdrop-blur-xl border border-[var(--panel-border)] rounded-2xl shadow-2xl z-50 py-2 flex flex-col`,children:[(0,q.jsx)(`div`,{className:`px-4 py-2 text-[10px] font-bold uppercase tracking-wider text-foreground/40 border-b border-[var(--panel-border)] mb-1`,children:`Your Tables`}),(0,q.jsx)(`div`,{className:`max-h-[250px] overflow-y-auto styled-scrollbars z-50 relative`,children:L.map(e=>(0,q.jsx)(`button`,{onClick:()=>{R(e.id),re(!1)},className:`w-full px-4 py-2 text-[13px] font-bold text-left hover:bg-foreground/[0.03] transition-colors truncate ${ne===e.id?`text-accent bg-accent/5`:`text-foreground/70`}`,children:e.name||`Unnamed Table`},e.id))}),(0,q.jsx)(`div`,{className:`w-full h-[1px] bg-[var(--panel-border)]/50 my-1`}),(0,q.jsxs)(`button`,{onClick:je,className:`w-full px-4 py-2.5 text-[13px] font-bold text-left text-foreground/70 hover:text-foreground hover:bg-foreground/5 transition-colors flex items-center gap-2`,children:[(0,q.jsx)(E.t,{className:`w-4 h-4`}),` Create New Table`]})]})]})})]}),(0,q.jsx)(`button`,{onClick:()=>re(!z),className:`p-1 px-1.5 rounded-lg hover:bg-foreground/5 transition-colors text-foreground/40 hover:text-foreground shrink-0 border border-transparent hover:border-[var(--panel-border)]`,children:(0,q.jsx)(s.t,{className:`w-4 h-4 transition-transform ${z?`rotate-180 text-accent`:``}`})})]}),(0,q.jsxs)(`span`,{className:`opacity-40 text-[11px] font-bold mt-1 uppercase tracking-wider`,children:[(Z.rows||[]).length,` Records`]})]}),(0,q.jsx)(`div`,{className:`relative shrink-0 ${de?`flex-1 min-w-[130px] max-w-[300px]`:``}`,children:de?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(C.n,{className:`absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-foreground/40`}),(0,q.jsx)(`input`,{autoFocus:!0,type:`text`,"aria-label":`Search records`,placeholder:`Search records...`,value:G,onChange:e=>ue(e.target.value),onBlur:()=>{G.trim()||Y(!1)},onKeyDown:e=>{e.key===`Escape`&&(ue(``),Y(!1))},className:`w-full bg-background border border-[var(--panel-border)] rounded-xl py-2.5 px-9 text-[13px] font-medium text-foreground focus:outline-none focus:border-accent transition-colors shadow-inner`})]}):(0,q.jsx)(`button`,{type:`button`,onClick:()=>Y(!0),"aria-label":`Search records`,title:`Search records`,className:`w-10 h-10 flex items-center justify-center rounded-xl border border-[var(--panel-border)] text-foreground/50 hover:text-accent hover:bg-foreground/5 transition-colors`,children:(0,q.jsx)(C.n,{className:`w-4 h-4`})})}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,q.jsx)(c.a,{viewing:T}),F&&(0,q.jsx)(N.t,{variant:`secondary`,onClick:Ce,className:`px-3 py-2.5 font-bold rounded-xl shadow-sm border border-[var(--panel-border)] flex items-center gap-2`,children:(0,q.jsx)(v.d,{className:`w-4 h-4`})}),M&&Q&&(0,q.jsx)(N.t,{variant:ee===`primary`?void 0:`secondary`,onClick:Te,className:`px-3 py-2.5 font-bold rounded-xl border border-[var(--panel-border)] shadow-sm flex items-center gap-2 whitespace-nowrap`,children:P===`+`?(0,q.jsx)(E.t,{className:`w-4 h-4`}):P})]})]}),(0,q.jsx)(`div`,{id:`table-scroll-container`,className:`overflow-auto w-full flex-1 min-h-[300px] relative styled-scrollbars`,children:f?(0,q.jsx)(c.p,{value:{prefix:o.Mn(d||{}),collection:_?u:``,recordId:_?Z.id||S:``},children:(0,q.jsx)(`div`,{className:`fbos-content-slot fbos-tab-fill p-4 md:p-8 flex-1 overflow-y-auto relative min-h-[400px]`,children:(0,q.jsx)(j.p,{size:`part`,children:(0,q.jsx)(f,{config:d,actions:{tables:L,activeTable:Z,collection:u,user:p,error:_?b.error:``,...c.s(u,y,_,S),saveTable:async(e,t)=>{let n=O(t,!L.some(t=>t.id===e));_&&e===S&&w(c.u(u)),I(t=>t.find(t=>t.id===e)?t.map(t=>t.id===e?{...t,...n}:t):[...t,{id:e,...n}]),await(0,J.setDoc)((0,J.doc)(r.ui,u,e),n,{merge:!0})},deleteTable:async e=>{I(t=>t.filter(t=>t.id!==e)),await(0,J.deleteDoc)((0,J.doc)(r.ui,u,e))},updateCell:(e,t,n)=>we(e,t,n),addRow:()=>Te(),addColumn:()=>Oe()}})})})}):(0,q.jsx)(r.rt,{mode:`wait`,children:H?(0,q.jsxs)(r.nt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 flex flex-col items-center justify-center bg-background/40 backdrop-blur-[2px] z-50`,children:[(0,q.jsx)(`div`,{className:`w-8 h-8 rounded-full border-2 border-accent border-r-transparent animate-spin mb-4`}),(0,q.jsx)(`p`,{className:`text-[11px] font-bold text-foreground/50 uppercase tracking-widest`,children:`Generating Table`})]},`loader`):(0,q.jsxs)(r.nt.table,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`w-full text-left border-collapse table-auto relative min-w-[800px]`,children:[(0,q.jsx)(`thead`,{children:(0,q.jsxs)(`tr`,{className:`border-b border-[var(--panel-border)] transition-colors ${Z.headerColor?Gs.find(e=>e.text===Z.headerColor)?.bgAlt:`bg-foreground/[0.02]`}`,children:[(0,q.jsx)(`th`,{className:`py-4 px-6 text-[12px] font-bold uppercase tracking-wider whitespace-nowrap text-foreground/50 w-32 border-r border-[var(--panel-border)]/20 ${x?``:`hidden`}`,children:`Creator`}),(Z.columns||[]).map((e,t)=>{let n=(Z.colColors||{})[e],r=(Z.colorTimestamps||{})[`col_${e}`]||0;Z.headerColor;let a=(Z.colorTimestamps||{}).header||0,o=`bg-transparent`,s=`text-foreground/50`;if(n&&n!==`none`&&r>=a){let e=Gs.find(e=>e.text===n);e&&(o=e.bgCard,s=e.text)}return(0,q.jsx)(`th`,{className:`py-3 px-6 text-[12px] font-bold uppercase tracking-wider relative group h-[53px] min-w-[120px] ${s} ${o} border-r border-[var(--panel-border)]/20 last:border-r-0 select-none align-middle`,children:(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-2 w-full h-full`,children:[W===e?(0,q.jsx)(`div`,{className:`flex-1 min-w-[50px]`,children:(0,q.jsx)(`span`,{contentEditable:!0,suppressContentEditableWarning:!0,onBlur:t=>{le(null),pe(t.currentTarget.textContent||``),(t.currentTarget.textContent||``).trim()!==``&&Me(e)},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},className:`bg-transparent outline-none border-b border-accent/40 font-bold text-[12px] uppercase tracking-wider p-0 m-0 ${s} block w-full whitespace-nowrap overflow-hidden cursor-text`,ref:e=>{e&&requestAnimationFrame(()=>{e.focus()})},children:fe})}):(0,q.jsx)(`div`,{className:`flex items-center gap-2 flex-1 overflow-hidden`,onClick:()=>{Q&&(le(e),pe(e))},children:(0,q.jsx)(`span`,{className:`truncate cursor-text`,children:e})}),(0,q.jsxs)(`div`,{className:`relative shrink-0 flex items-center h-full gap-0.5`,children:[(0,q.jsx)(`button`,{onClick:()=>_e(ge===e?null:e),className:`p-1.5 rounded-lg opacity-0 group-hover:opacity-100 transition-opacity hover:bg-foreground/10 ${n&&n!==`none`?`!opacity-100`:``} text-current`,children:(0,q.jsx)(i.E,{className:`w-4 h-4`})}),(Z.columns||[]).length>1&&(0,q.jsx)(`button`,{onClick:t=>{t.stopPropagation(),Q&&ve({kind:`column`,name:e})},className:`p-1.5 rounded-lg opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-500/10 text-foreground/30 hover:text-red-500`,title:`Delete column`,children:(0,q.jsx)(A.t,{className:`w-3.5 h-3.5`})}),ge===e&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{className:`fixed inset-0 z-30`,onClick:()=>_e(null)}),(0,q.jsxs)(`div`,{className:`absolute top-8 right-0 flex gap-1.5 bg-background/95 backdrop-blur-xl border border-[var(--panel-border)] p-2 rounded-xl shadow-xl z-50 items-center`,children:[(0,q.jsx)(`button`,{onClick:t=>{t.preventDefault(),t.stopPropagation();let n={...Z.colColors||{},[e]:`none`},r={...Z.colorTimestamps||{},[`col_${e}`]:Date.now()};Se({...Z,colColors:n,colorTimestamps:r}),_e(null)},className:`w-4 h-4 rounded-full flex items-center justify-center bg-foreground/10 hover:bg-red-500/20 hover:text-red-500 text-foreground/40 transition-colors border border-[var(--panel-border)]/50 shrink-0`,title:`Remove Color`,children:(0,q.jsx)(C.t,{className:`w-3 h-3`})}),(0,q.jsx)(`div`,{className:`h-4 w-px bg-[var(--panel-border)]/50 mx-0.5`}),Gs.map(t=>(0,q.jsx)(`button`,{onClick:n=>{n.preventDefault(),n.stopPropagation();let r={...Z.colColors||{},[e]:t.text},i={...Z.colorTimestamps||{},[`col_${e}`]:Date.now()};Se({...Z,colColors:r,colorTimestamps:i}),_e(null)},className:`w-4 h-4 rounded-full ${t.bgCircle} hover:scale-125 transition-transform border border-[var(--panel-border)]/50 shrink-0`},t.name))]})]})]})]})},`col_${t}_${e}`)}),(0,q.jsx)(`th`,{className:`py-4 px-4 w-14 border-l border-[var(--panel-border)]/30 relative`,children:(0,q.jsxs)(`div`,{className:`flex items-center justify-end gap-0.5 relative z-20`,children:[(0,q.jsx)(`button`,{onClick:()=>be(!ye),className:`p-1.5 rounded-lg transition-colors hover:bg-foreground/10 ${Z.headerColor?Gs.find(e=>e.text===Z.headerColor)?.text:`text-foreground/30`}`,children:(0,q.jsx)(i.E,{className:`w-4 h-4`})}),ye&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{className:`fixed inset-0 z-30`,onClick:()=>be(!1)}),(0,q.jsxs)(`div`,{className:`absolute top-6 right-8 flex gap-1.5 bg-background/90 backdrop-blur-xl border border-[var(--panel-border)] p-2 rounded-xl shadow-xl z-50 items-center`,children:[(0,q.jsx)(`button`,{onClick:()=>{Se({...Z,headerColor:``}),be(!1)},className:`w-4 h-4 rounded-full flex items-center justify-center bg-foreground/10 hover:bg-red-500/20 hover:text-red-500 text-foreground/40 transition-colors border border-[var(--panel-border)]/50 shrink-0`,title:`Remove Header Color`,children:(0,q.jsx)(C.t,{className:`w-3 h-3`})}),(0,q.jsx)(`div`,{className:`h-4 w-px bg-[var(--panel-border)]/50 mx-0.5`}),Gs.map(e=>(0,q.jsx)(`button`,{onClick:()=>{let t={...Z.colorTimestamps||{},header:Date.now()};Se({...Z,headerColor:e.text,colorTimestamps:t}),be(!1)},className:`w-4 h-4 rounded-full ${e.bgCircle} hover:scale-125 transition-transform border border-[var(--panel-border)]/50`},e.name))]})]}),(0,q.jsx)(`button`,{onClick:()=>Q&&Oe(),className:`p-1.5 rounded-lg text-foreground/40 hover:text-accent hover:bg-accent/10 transition-colors flex items-center justify-center ${Q?``:`hidden`}`,children:(0,q.jsx)(E.t,{className:`w-4 h-4`})})]})})]})}),(0,q.jsxs)(`tbody`,{children:[Pe.map((e,t)=>{let n=t%2==1,a=(Z.rowColors||{})[e.id],o=a?n?Gs.find(e=>e.text===a)?.bgAlt:Gs.find(e=>e.text===a)?.bgCard:n?`bg-foreground/[0.02]`:`bg-transparent`;return(0,q.jsxs)(`tr`,{className:`border-b border-[var(--panel-border)]/30 hover:bg-foreground/[0.04] transition-colors group`,children:[(0,q.jsx)(`td`,{className:`py-4 px-6 whitespace-nowrap h-[53px] border-r border-[var(--panel-border)]/20 ${o} ${x?``:`hidden`}`,children:(0,q.jsx)(`div`,{className:`flex items-center gap-2`,children:m?(()=>{let t=Ne(e);return t?(0,q.jsxs)(q.Fragment,{children:[t.avatar?(0,q.jsx)(r.O,{src:t.avatar,alt:``,className:`w-5 h-5 rounded-full shrink-0`}):(0,q.jsx)(`div`,{className:`w-5 h-5 rounded-full bg-accent/20 text-accent flex items-center justify-center text-[10px] font-bold shrink-0`,children:t.name[0].toUpperCase()}),(0,q.jsx)(`span`,{className:`text-[11px] font-bold text-foreground/80 tracking-tight shrink-0`,children:t.name})]}):(0,q.jsx)(`span`,{className:`text-[11px] font-bold text-foreground/30`,children:`—`})})():(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{className:`w-5 h-5 rounded-full bg-accent/20 text-accent flex items-center justify-center text-[10px] font-bold shrink-0 shadow-inner group-hover:scale-110 transition-transform`,children:`G`}),(0,q.jsx)(`span`,{className:`text-[11px] font-bold text-foreground/80 tracking-tight shrink-0`,children:`Guest`})]})})}),(Z.columns||[]).map(r=>{let i=U?.id===e.id&&U?.field===r,a=(Z.colColors||{})[r],o=(Z.colorTimestamps||{})[`col_${r}`]||0,s=(Z.rowColors||{})[e.id],c=(Z.colorTimestamps||{})[`row_${e.id}`]||0,l=``;l=c>o?s===`none`?``:s:o>c?a===`none`?``:a:s===`none`?``:s||a||``,l===`none`&&(l=``);let u=l?Gs.find(e=>e.text===l):null,d=u?n?u.bgAlt:u.bgCard:n?`bg-foreground/[0.02]`:`bg-transparent`,f=u?u.text:`text-foreground/80`;return(0,q.jsxs)(`td`,{className:`py-4 px-6 whitespace-pre-wrap min-w-[120px] text-[14px] font-medium relative ${d} align-top border-r border-[var(--panel-border)]/10 last:border-r-0`,onClick:()=>Q&&!i&&ce({id:e.id,field:r}),children:[i?(0,q.jsx)(`textarea`,{autoFocus:!0,value:e[r]||``,onChange:t=>we(e.id,r,t.target.value),onBlur:()=>ce(null),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&ce(null)},className:`absolute inset-0 bg-transparent !border-0 !outline-none focus:!outline-none focus:!ring-0 !ring-0 !shadow-none focus:!shadow-none p-4 px-6 text-[14px] font-medium w-full h-full caret-accent ${f} z-20 resize-none styled-scrollbars`}):null,(0,q.jsx)(`span`,{className:`block w-full min-h-[20px] break-words transition-all ${i?`opacity-0`:`opacity-100`} ${f} ${r===`Status`&&e[r]===`Active`&&!l?`text-green-500`:``}`,children:e[r]||(0,q.jsx)(`span`,{className:`opacity-30 italic font-normal`,children:`empty`})})]},`cell_${e.id||t}_${r}`)}),(0,q.jsx)(`td`,{className:`py-4 px-4 whitespace-nowrap text-right h-[53px] ${o} relative z-10`,children:(0,q.jsxs)(`div`,{className:`flex items-center justify-end gap-1 opacity-100 md:opacity-20 md:group-hover:opacity-100 transition-opacity relative`,children:[(0,q.jsx)(`button`,{onClick:()=>he(me===e.id?null:e.id),className:`p-1.5 rounded-lg transition-colors hover:bg-foreground/10 ${a?Gs.find(e=>e.text===a)?.text:`text-foreground/40`}`,children:(0,q.jsx)(i.E,{className:`w-4 h-4`})}),me===e.id&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{className:`fixed inset-0 z-30`,onClick:()=>he(null)}),(0,q.jsxs)(`div`,{className:`absolute top-6 right-8 flex gap-1.5 bg-background/90 backdrop-blur-xl border border-[var(--panel-border)] p-2 rounded-xl shadow-xl z-50 items-center`,children:[(0,q.jsx)(`button`,{onClick:t=>{t.preventDefault(),t.stopPropagation();let n={...Z.rowColors||{},[e.id]:`none`},r={...Z.colorTimestamps||{},[`row_${e.id}`]:Date.now()};Se({...Z,rowColors:n,colorTimestamps:r}),he(null)},className:`w-4 h-4 rounded-full flex items-center justify-center bg-foreground/10 hover:bg-red-500/20 hover:text-red-500 text-foreground/40 transition-colors border border-[var(--panel-border)]/50 shrink-0`,title:`Remove Row Color`,children:(0,q.jsx)(C.t,{className:`w-3 h-3`})}),(0,q.jsx)(`div`,{className:`h-4 w-px bg-[var(--panel-border)]/50 mx-0.5`}),Gs.map(t=>(0,q.jsx)(`button`,{onClick:()=>{let n={...Z.colorTimestamps||{},[`row_${e.id}`]:Date.now()};Se({...Z,rowColors:{...Z.rowColors||{},[e.id]:t.text},colorTimestamps:n}),he(null)},className:`w-4 h-4 rounded-full ${t.bgCircle} hover:scale-125 transition-transform border border-[var(--panel-border)]/50`},t.name))]})]}),Q&&(0,q.jsx)(`button`,{onClick:()=>ve({kind:`row`,id:e.id}),title:`Delete row`,className:`p-2 ml-auto rounded-lg text-foreground/20 hover:text-red-500 hover:bg-red-500/10 transition-colors flex items-center justify-center`,children:(0,q.jsx)(A.t,{className:`w-4 h-4`})})]})})]},e.id||`row_${t}`)}),Pe.length===0&&(0,q.jsx)(`tr`,{children:(0,q.jsxs)(`td`,{colSpan:(Z.columns||[]).length+2,className:`py-12 text-center text-foreground/40 text-[14px] font-medium border border-[var(--panel-border)] m-4 rounded-xl border-dashed`,children:[`No records found in `,Z.name||`this table`,`.`]})}),(0,q.jsx)(`tr`,{children:(0,q.jsx)(`td`,{colSpan:(Z.columns||[]).length+2,className:`py-2 px-4 border-none bg-foreground/[0.01]`,children:(0,q.jsx)(`div`,{className:`flex items-center gap-4`,children:(0,q.jsx)(`button`,{onClick:()=>Q&&Te(),className:`p-1.5 rounded-lg text-foreground/40 hover:text-accent hover:bg-accent/10 transition-colors flex items-center justify-center ml-2 border border-transparent hover:border-accent/20 ${Q?``:`hidden`}`,children:(0,q.jsx)(E.t,{className:`w-4 h-4`})})})})})]})]},`table`)})})]})]}),(0,q.jsx)(ie.t,{isOpen:!!X,title:X?.kind===`column`?`Delete column`:`Delete row`,message:X?.kind===`column`?(0,q.jsxs)(q.Fragment,{children:[`Delete `,(0,q.jsx)(`strong`,{className:`text-foreground block my-1 break-words max-w-full text-center`,children:X.name}),` and everything filled in under it, in every row? This cannot be undone.`]}):(0,q.jsx)(q.Fragment,{children:`Delete this row and everything in it? This cannot be undone.`}),onConfirm:De,onCancel:()=>ve(null),confirmText:`Yes, delete`})]})}var qs=[{text:`text-red-400`,bgCircle:`bg-red-400`,bgCard:`bg-red-500/[0.08]`,borderCard:`border-red-500/30`,bgLight:`bg-red-500/15`,bgHover:`hover:bg-red-500`,bgAlt:`bg-red-500/[0.04]`,name:`Red`},{text:`text-orange-400`,bgCircle:`bg-orange-400`,bgCard:`bg-orange-500/[0.08]`,borderCard:`border-orange-500/30`,bgLight:`bg-orange-500/15`,bgHover:`hover:bg-orange-500`,bgAlt:`bg-orange-500/[0.04]`,name:`Orange`},{text:`text-yellow-400`,bgCircle:`bg-yellow-400`,bgCard:`bg-yellow-500/[0.08]`,borderCard:`border-yellow-500/30`,bgLight:`bg-yellow-500/15`,bgHover:`hover:bg-yellow-500`,bgAlt:`bg-yellow-500/[0.04]`,name:`Yellow`},{text:`text-green-400`,bgCircle:`bg-green-400`,bgCard:`bg-green-500/[0.08]`,borderCard:`border-green-500/30`,bgLight:`bg-green-500/15`,bgHover:`hover:bg-green-500`,bgAlt:`bg-green-500/[0.04]`,name:`Green`},{text:`text-blue-400`,bgCircle:`bg-blue-400`,bgCard:`bg-blue-500/[0.08]`,borderCard:`border-blue-500/30`,bgLight:`bg-blue-500/15`,bgHover:`hover:bg-blue-500`,bgAlt:`bg-blue-500/[0.04]`,name:`Blue`},{text:`text-accent`,bgCircle:`bg-accent`,bgCard:`bg-accent/[0.08]`,borderCard:`border-accent/30`,bgLight:`bg-accent/15`,bgHover:`hover:bg-accent`,bgAlt:`bg-accent/[0.04]`,name:`Purple`},{text:`text-pink-400`,bgCircle:`bg-pink-400`,bgCard:`bg-pink-500/[0.08]`,borderCard:`border-pink-500/30`,bgLight:`bg-pink-500/15`,bgHover:`hover:bg-pink-500`,bgAlt:`bg-pink-500/[0.04]`,name:`Pink`},{text:`text-foreground/60`,bgCircle:`bg-foreground/30`,bgCard:`bg-foreground/[0.04]`,borderCard:`border-[var(--panel-border)]/50`,bgLight:`bg-foreground/15`,bgHover:`hover:bg-foreground/30`,bgAlt:`bg-foreground/[0.02]`,name:`Default`}],Js=e=>new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString().split(`T`)[0],Ys=1,Xs={dateStr:``,title:``,description:``,time:`12:00`,duration:`60`,color:``,guestEmail:``,customFields:{}};function Zs({title:e=`Calendar View`,subtitle:t=`/calendar`,backUrl:a,eventsCollection:s=`pub_events`,defaultTimeFormat:l=`12h`,config:u,customContent:d}){let f=!!(u?.isPrivate||u?.isAdmin||u?.isInternal||u?.isShared);u?.isAdmin,u?.isInternal||u?.isShared,u?.isPrivate;let p=u?.showButton!==!1,m=u?.buttonText||`+`,_=u?.buttonStyle||`primary`,y=u?.showViewsButton!==!1,b=u?.viewsButtonStyle||`secondary`,x=u?.defaultView||`calendar`,S=u?.customFields||[],w=o.Tn(s)?`case`:s.startsWith(`user_`)?`user`:s.startsWith(`mem_`)||s.startsWith(`role_`)?`internal`:s.startsWith(`admin_`)?`admin_only`:`public`,T=w===`case`,D=c.o({on:w===`user`}),[O,k]=(0,K.useState)(()=>{try{let e=localStorage.getItem(`cal_view_${s}`);if(e===`list`||e===`month`)return e}catch{}return x===`board`?`list`:`month`}),[M,P]=(0,K.useState)([]),ee=c.f(),F=c.F(s),te=T?F.records:M,[I,L]=(0,K.useState)(()=>T?c.u(s):``),[ne,R]=(0,K.useState)(!1),[z,re]=(0,K.useState)(null),[B,V]=(0,K.useState)(!1),[ae,oe]=(0,K.useState)(!1),[H,se]=(0,K.useState)(null),[U,ce]=(0,K.useState)(Xs),[W,le]=(0,K.useState)(new Date),[G,de]=(0,K.useState)(null),[fe,pe]=(0,K.useState)(null),[me,he]=(0,K.useState)(!1),ge=D.uid||G?.uid||``,_e=`cal_24h_${s}`,[X,ve]=(0,K.useState)(()=>{try{let e=localStorage.getItem(_e);if(e!==null)return e===`true`}catch{}return l===`24h`}),ye=()=>{let e=!X;ve(e);try{localStorage.setItem(_e,String(e))}catch{}};(0,K.useEffect)(()=>{try{localStorage.setItem(`cal_view_${s}`,O)}catch{}},[O,s,w]);let be=()=>{let e=O===`month`?`list`:`month`;k(e);try{localStorage.setItem(`cal_view_${s}`,e)}catch{}},xe=()=>{try{return sessionStorage.getItem(`cal_guest_email`)||``}catch{return``}},Z=e=>{try{sessionStorage.setItem(`cal_guest_email`,e)}catch{}};(0,K.useEffect)(()=>(0,ue.onAuthStateChanged)(r.li,async e=>{if(de(e),e&&w===`admin_only`)try{let t=await(0,J.getDoc)((0,J.doc)(r.ui,`user_profiles`,e.uid));t.exists()&&pe(t.data())}catch{}he(!0)}),[w]);let Q=Js(new Date(W.getFullYear(),W.getMonth()-Ys,1)),Se=Js(new Date(W.getFullYear(),W.getMonth()+Ys+1,0));(0,K.useEffect)(()=>{if(!me||T)return;if(w!==`public`&&!G){P([]);return}let e=w===`user`?`${s}|${D.everyone?`everyone`:ge}`:s;try{let t=localStorage.getItem(`fbos_cal_${e}`);t&&P(JSON.parse(t))}catch{}let t=(0,J.onSnapshot)(w===`user`&&G&&!D.everyone?(0,J.query)((0,J.collection)(r.ui,s),(0,J.where)(`uid`,`==`,ge)):(0,J.query)((0,J.collection)(r.ui,s),(0,J.where)(`dateStr`,`>=`,Q),(0,J.where)(`dateStr`,`<=`,Se)),t=>{let n=[];t.forEach(e=>n.push({id:e.id,...e.data()})),P(n),localStorage.setItem(`fbos_cal_${e}`,JSON.stringify(n))},e=>console.error(`Calendar events:`,e));return()=>t()},[s,w,G?.uid,me,Q,Se,T,ge,D.everyone]);let Ce=e=>!!G&&G.uid===e.uid,we=e=>w===`public`?!1:w===`user`?!!G:T?c.C(e,ee):Ce(e),Te=(e,t)=>!G||w===`public`?e:w===`user`?{...e,uid:ge||G.uid}:T?t?c.l({uid:G.uid,creatorEmail:G.email||``,creatorName:G.displayName||``,creatorAvatar:G.photoURL||``,...e},G.uid):e:t?{uid:G.uid,creatorEmail:G.email||``,creatorName:G.displayName||``,creatorAvatar:G.photoURL||``,...e}:e,Ee=e=>{if(!e)return``;if(X)return e;let[t,n]=e.split(`:`),r=parseInt(t,10),i=r>=12?`PM`:`AM`;return r=r%12||12,`${r}:${n} ${i}`},De=e=>{if(!e)return`60m`;let t=parseInt(e,10);return isNaN(t)?e:t>=60?t%60==0?`${t/60}h`:`${Math.floor(t/60)}h ${t%60}m`:`${t}m`},Oe=e=>{let[t,n]=(e||`12:00`).split(`:`),r=parseInt(t,10)||0,i=parseInt(n,10)||0,a=r>=12?`PM`:`AM`;return r=r%12||12,{h:r,m:i,ampm:a}},ke=(e,t,n)=>{let r=e%12;return n===`PM`&&(r+=12),`${r.toString().padStart(2,`0`)}:${t.toString().padStart(2,`0`)}`},Ae=Js,je=()=>Ae(new Date),Me=new Date(W.getFullYear(),W.getMonth(),1),Ne=new Date(W.getFullYear(),W.getMonth()+1,0),Pe=Me.getDay(),Fe=Ne.getDate(),Ie=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],Le=Array.from({length:42},(e,t)=>{let n=t-Pe+1,r=new Date(W.getFullYear(),W.getMonth(),n);return{day:r.getDate(),dateStr:Ae(r),isCurrentMonth:n>0&&n<=Fe}}),Re=()=>le(O===`month`?new Date(W.getFullYear(),W.getMonth()-1,1):new Date(W.getFullYear(),W.getMonth(),W.getDate()-1)),ze=()=>le(O===`month`?new Date(W.getFullYear(),W.getMonth()+1,1):new Date(W.getFullYear(),W.getMonth(),W.getDate()+1)),Be=e=>{if(w!==`public`&&!G)return;let t=new Date;t.setDate(t.getDate()+1);let n=new Date().getHours().toString().padStart(2,`0`);ce({...Xs,dateStr:e||Ae(t),time:`${n}:00`,guestEmail:w===`public`?xe():``,customFields:{}}),R(!0)},Ve=e=>{let t=e.time;if(t){let[e,n]=t.split(`:`);e&&n&&(t=`${e.padStart(2,`0`)}:${n}`)}ce({id:e.id,uid:e.uid,dateStr:e.dateStr,title:e.title,description:e.description||``,time:t||`12:00`,duration:e.duration||`60`,color:e.color||``,guestEmail:e.creatorEmail||``,customFields:e.customFields||{}}),R(!0)},He=async e=>{if(e.preventDefault(),U.title.trim()){V(!0);try{let e={dateStr:U.dateStr,title:U.title.trim(),description:U.description.trim(),time:U.time,duration:U.duration||`60`};if(U.color&&(e.color=U.color),S.length>0&&(e.customFields=U.customFields),!U.id)if(w===`public`){let t=U.guestEmail.trim();e.creatorEmail=t,Z(t)}else w===`user`||w===`internal`?(e.uid=G?.uid,e.creatorEmail=G?.email||``,e.creatorName=G?.displayName||``,e.creatorAvatar=G?.photoURL||``):w===`admin_only`&&(e.uid=G?.uid,e.creatorEmail=fe?.email||G?.email||``,e.creatorName=fe?.displayName||fe?.name||``,e.creatorAvatar=fe?.avatar||fe?.avatarUrl||G?.photoURL||``);let t=Te(e,!U.id);U.id?(await(0,J.setDoc)((0,J.doc)(r.ui,s,U.id),t,{merge:!0}),z?.id===U.id&&re({...z,...e})):(await(0,J.setDoc)((0,J.doc)(r.ui,s,T?I||c.u(s):`ev_${Date.now()}`),t,{merge:!0}),T&&L(c.u(s))),R(!1)}catch(e){console.error(e)}V(!1)}},Ue=async()=>{if(H){oe(!0);try{await(0,J.deleteDoc)((0,J.doc)(r.ui,s,H.id)),z?.id===H.id&&re(null),se(null),R(!1)}catch{}oe(!1)}},We=e=>{if(w===`user`||!e.creatorEmail&&!e.creatorName)return null;let t=(e.creatorName||e.creatorEmail||`?`).charAt(0).toUpperCase(),n=qs.find(t=>t.text===e.color);return(0,q.jsxs)(`div`,{className:`flex items-center gap-3 mt-4 p-3 rounded-xl bg-foreground/[0.03] border border-[var(--panel-border)]/50`,children:[e.creatorAvatar?(0,q.jsx)(r.O,{src:e.creatorAvatar,alt:``,className:`w-8 h-8 rounded-full shrink-0`}):(0,q.jsx)(`div`,{className:`w-8 h-8 rounded-full ${n?.bgCircle||`bg-accent`} flex items-center justify-center text-[13px] font-extrabold text-white shrink-0`,children:t}),(0,q.jsxs)(`div`,{className:`flex flex-col min-w-0`,children:[e.creatorName&&(0,q.jsx)(`span`,{className:`text-[13px] font-bold text-foreground/90 truncate`,children:e.creatorName}),e.creatorEmail&&(0,q.jsx)(`span`,{className:`text-[12px] text-foreground/50 truncate`,children:e.creatorEmail})]})]})},Ge=e=>{if(w===`user`||w===`public`||!e.creatorName&&!e.creatorEmail)return null;let t=e.creatorName||e.creatorEmail?.split(`@`)[0]||``,n=t.split(` `).map(e=>e[0]).join(``).toUpperCase().slice(0,2);return(0,q.jsxs)(`div`,{className:`flex items-center gap-2 mt-2 pt-2 border-t border-[var(--panel-border)]/30`,children:[e.creatorAvatar?(0,q.jsx)(r.O,{src:e.creatorAvatar,alt:``,className:`w-5 h-5 rounded-full shrink-0`}):(0,q.jsx)(`div`,{className:`w-5 h-5 rounded-full bg-accent/15 text-accent flex items-center justify-center text-[8px] font-extrabold shrink-0`,children:n}),(0,q.jsxs)(`div`,{className:`flex items-center gap-1 min-w-0 flex-1`,children:[(0,q.jsx)(`span`,{className:`text-[11px] font-semibold text-foreground/40 truncate`,children:t}),e.creatorEmail&&(0,q.jsxs)(`span`,{className:`text-[10px] text-foreground/25 truncate`,children:[`· `,e.creatorEmail]})]})]})};if(me&&w!==`public`&&!G)return(0,q.jsx)(`main`,{className:`flex-1 w-full flex items-center justify-center min-h-screen p-8`,children:(0,q.jsxs)(`div`,{className:`text-center glass-panel border border-[var(--panel-border)] rounded-3xl p-12 max-w-sm w-full`,children:[(0,q.jsx)(`div`,{className:`w-16 h-16 rounded-full bg-accent/10 border border-accent/20 flex items-center justify-center mx-auto mb-4`,children:(0,q.jsx)(n.h,{className:`w-7 h-7 text-accent`})}),(0,q.jsx)(`h2`,{className:`text-2xl font-bold mb-2`,children:`Sign in required`}),(0,q.jsx)(`p`,{className:`text-foreground/50 text-[14px] mb-6`,children:`You need to be signed in to access this calendar.`}),(0,q.jsx)(Y.Link,{to:`/login`,className:`inline-flex items-center justify-center gap-2 px-6 py-2.5 rounded-xl btn-primary font-bold text-[14px] w-full`,children:`Sign In`})]})});if(!me&&w!==`public`)return(0,q.jsx)(`main`,{className:`flex-1 w-full flex items-center justify-center min-h-screen`,children:(0,q.jsx)(C.r,{className:`w-8 h-8 animate-spin text-accent`})});let Ke=!!d,qe=(w===`public`||!!G)&&p&&!Ke,Je=()=>(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3 sm:gap-4 p-4 sm:p-6 md:px-8 md:py-6 border-b border-[var(--panel-border)]/50 bg-background/50 shrink-0`,children:[(0,q.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,q.jsx)(`h2`,{className:`text-xl font-bold text-foreground tracking-tight truncate`,children:u?.tabTitle||u?.tabName||e}),(0,q.jsxs)(`p`,{className:`text-[13px] font-medium text-foreground/50 mt-1`,children:[te.length,` `,te.length===1?`event`:`events`,` · `,O===`month`?`Month`:`Board`,` View`]})]}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,q.jsx)(c.a,{viewing:D}),(0,q.jsx)(r.nt.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:ye,className:`w-10 h-10 flex items-center justify-center rounded-xl transition-all duration-300 cursor-pointer btn-secondary text-[12px] font-extrabold`,children:X?`24h`:`12h`}),y&&!Ke&&(0,q.jsx)(r.nt.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:be,title:O===`month`?`Switch to Board`:`Switch to Calendar`,className:`w-10 h-10 flex items-center justify-center rounded-xl transition-all duration-300 cursor-pointer ${b===`primary`?`btn-primary`:`btn-secondary`}`,children:O===`month`?(0,q.jsx)(st,{className:`w-4 h-4`}):(0,q.jsx)(h.b,{className:`w-4 h-4`})}),qe&&(0,q.jsx)(r.nt.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>Be(),title:`Add event`,"aria-label":`Add event`,className:`h-10 flex items-center justify-center gap-2 rounded-xl transition-all duration-300 cursor-pointer ${m===`+`?`w-10`:`px-5`} ${_===`primary`?`btn-primary`:`btn-secondary`}`,children:m===`+`?(0,q.jsx)(E.t,{className:`w-4 h-4`}):(0,q.jsx)(`span`,{className:`text-[13px] font-bold`,children:m})})]})]}),Ye=()=>(0,q.jsxs)(`div`,{className:`p-4 md:p-6 border-b border-[var(--panel-border)]/50 flex flex-wrap items-center justify-between gap-x-3 gap-y-2 bg-foreground/[0.01]`,children:[(0,q.jsx)(`h3`,{className:`text-lg md:text-xl font-bold tracking-tight ml-2 min-w-0`,children:O===`month`?W.toLocaleString(`default`,{month:`long`,year:`numeric`}):W.toLocaleString(`default`,{month:`long`,day:`numeric`,year:`numeric`})}),(0,q.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,q.jsx)(`button`,{onClick:()=>le(new Date),className:`px-3 md:px-4 py-2 text-[13px] font-bold border border-[var(--panel-border)] rounded-xl mr-1 md:mr-2 hover:bg-foreground/5 transition-colors`,children:`Today`}),(0,q.jsx)(`button`,{onClick:Re,className:`p-2 rounded-xl text-foreground/50 hover:text-foreground hover:bg-foreground/5 transition-colors border border-transparent hover:border-[var(--panel-border)]`,children:(0,q.jsx)(g.t,{className:`w-5 h-5`})}),(0,q.jsx)(`button`,{onClick:ze,className:`p-2 rounded-xl text-foreground/50 hover:text-foreground hover:bg-foreground/5 transition-colors border border-transparent hover:border-[var(--panel-border)]`,children:(0,q.jsx)(r.kt,{className:`w-5 h-5`})})]})]}),Xe=()=>(0,q.jsxs)(q.Fragment,{children:[Ye(),d?(0,q.jsx)(c.p,{value:{prefix:o.Mn(u||{}),collection:T?s:``,recordId:T?I:``},children:(0,q.jsx)(`div`,{className:`fbos-content-slot fbos-tab-fill p-4 md:p-8 flex-1 overflow-y-auto relative min-h-[400px]`,children:(0,q.jsx)(j.p,{size:`part`,children:(0,q.jsx)(d,{config:u,actions:{events:te,loading:T?F.loading:!me,error:T?F.error:``,collection:s,currentUser:G,...c.s(s,ee,T,I),user:G,saveEvent:async e=>{let t=e.id||(T?I:``)||`ev_${Date.now()}`,n=Te(e,!te.some(e=>e.id===t));T&&t===I&&L(c.u(s)),P(e=>e.find(e=>e.id===t)?e.map(e=>e.id===t?{...e,...n}:e):[...e,{id:t,...n}]),await(0,J.setDoc)((0,J.doc)(r.ui,s,t),n,{merge:!0})},deleteEvent:async e=>{P(t=>t.filter(t=>t.id!==e)),await(0,J.deleteDoc)((0,J.doc)(r.ui,s,e))},openAddModal:e=>Be(e),openEditModal:e=>Ve(e),setViewingEvent:e=>re(e),currentDate:W,setCurrentDate:le,goToPrev:Re,goToNext:ze,goToToday:()=>le(new Date)}})})})}):O===`month`?(0,q.jsx)(`div`,{className:`overflow-x-auto w-full flex-1`,children:(0,q.jsxs)(`div`,{className:`min-w-[800px] h-full flex flex-col`,children:[(0,q.jsx)(`div`,{className:`grid grid-cols-7 border-b border-[var(--panel-border)]/50 bg-foreground/[0.02]`,children:Ie.map(e=>(0,q.jsx)(`div`,{className:`py-3 text-center text-[12px] font-bold uppercase tracking-wider text-foreground/40`,children:e},e))}),(0,q.jsx)(`div`,{className:`grid grid-cols-7 auto-rows-auto bg-[var(--panel-border)] gap-[1px] relative flex-1`,children:Le.map((e,t)=>{let n=e.dateStr===je(),r=te.filter(t=>t.dateStr===e.dateStr);return(0,q.jsxs)(`div`,{onClick:()=>e.isCurrentMonth&&qe&&Be(e.dateStr),className:`min-h-[140px] p-2 bg-[var(--panel-bg)] flex flex-col relative group
|
|
7
|
-
${e.isCurrentMonth?
|
|
3
|
+
`)||(n[r]=i)}return n}function Fi(){let[e,t]=(0,W.useState)(null);return(0,W.useEffect)(()=>(0,K.onSnapshot)((0,K.doc)(r.bt,`sys_configs`,ji),e=>t(Ni(e.exists()?e.data():null)),()=>t({})),[]),e}async function Ii(e){if(Object.keys(e).length)try{await(0,K.setDoc)((0,K.doc)(r.bt,`sys_configs`,ji),{copies:e},{merge:!0})}catch{}}function Li({from:e,leaveOut:t}){return g.g(e,{leaveOut:t}),null}function Ri(){let{userRole:e}=n.Q();return o.O(e)?(0,G.jsx)(zi,{}):null}function zi(){let e=ie.u(),t=Fi(),{pathname:n}=(0,q.useLocation)(),r=(0,W.useMemo)(()=>e?g.u(e):[],[e]);if((0,W.useEffect)(()=>{if(!t||!r.length)return;let e={};for(let t of r){let n=g.f(t.from);n&&(e[t.from]={leaveOut:[...n].sort()})}let n=Pi(e,t);Object.keys(n).length&&Ii(n)},[r,t,n]),!t)return null;let i=new Map;for(let e of r)t[e.from]&&i.set(e.from,t[e.from].leaveOut);return(0,G.jsx)(G.Fragment,{children:[...i].map(([e,t])=>(0,G.jsx)(Li,{from:e,leaveOut:t},e))})}var Bi=`Only admins see this: payments are in test mode, so no real money moves. Go live on your Payments screen.`;function Vi({className:e=``}){let{loading:t,configured:r,mode:i}=n.cn(),{userRole:a}=n.Q();return t||!r||i!==`test`||!o.A(a)?null:(0,G.jsx)(`span`,{className:`block text-[12.5px] font-medium text-foreground/50 leading-snug ${e}`,children:Bi})}function Hi({children:e,className:t,variant:i=`primary`,pendingLabel:a=`Opening checkout…`,disabled:s=!1,...c}){let{loading:l,configured:u}=n.cn(),d=r.st(),{userRole:f}=n.Q(),[p,m]=(0,W.useState)(!1),[h,g]=(0,W.useState)(null);return l?null:u?(0,G.jsxs)(`span`,{className:`inline-flex flex-col items-stretch gap-2`,children:[(0,G.jsx)(O.t,{variant:i,className:t,onClick:async()=>{if(p||s)return;if(m(!0),g(null),c.amount!=null&&!c.currency&&!d&&await r.rt()){g(r.tt),m(!1);return}let e=await n.in(c);e&&(g(e),m(!1))},disabled:p||s,children:p?a:e??`Pay`}),h&&(0,G.jsx)(`span`,{role:`alert`,className:`text-[13px] font-semibold text-red-400 leading-snug`,children:h}),(0,G.jsx)(Vi,{})]}):o.A(f)?(0,G.jsx)(`span`,{className:`text-[12.5px] font-medium text-foreground/50 leading-snug`,children:`Only admins see this: payments are not on yet, so this button is hidden. Connect Stripe and switch payments on at /payments and it appears here.`}):null}var Ui=e=>typeof e==`string`?e.trim():e==null?``:String(e).trim(),Wi=e=>{let t=typeof e==`number`?e:Number(e);return Number.isFinite(t)?t:0},Gi=e=>Math.round(e*100);function Ki(e){let t=[];for(let n of Array.isArray(e)?e:[]){let e=Ui(n?.name),r=Math.floor(Wi(n?.quantity??1));if(!e||r<1)continue;let i={};try{i=JSON.parse(JSON.stringify(n))||{}}catch{i={}}let a={...i,name:e,quantity:r,price:Wi(n?.price)};for(let e of[`id`,`options`,`picture`])Ui(n?.[e])?a[e]=Ui(n[e]):delete a[e];t.push(a)}return t}var qi=e=>(Array.isArray(e)?e:[]).map(e=>({label:Ui(e?.label),amount:Wi(e?.amount)})).filter(e=>e.label&&e.amount!==0),Ji=e=>e.reduce((e,t)=>e+Gi(t.price)*t.quantity,0)/100,Yi=(e,t=[])=>(Gi(Ji(e))+t.reduce((e,t)=>e+Gi(t.amount),0))/100;function Xi(e,t=`usd`,r=480){let i=e.map(e=>`${e.quantity} × ${e.name}${e.options?` — ${e.options}`:``} · ${n.xr(e.price*e.quantity,t)}`),a=``;for(let e=0;e<i.length;e+=1){let t=a?`${a}; ${i[e]}`:i[e],n=i.length-e-1;if((t+(n?`; and ${n} more`:``)).length>r)return a?`${a}; and ${i.length-e} more`:i[e].slice(0,r);a=t}return a}function Zi(e){if(!e.length)return``;let[t]=e;return e.length>1?`${t.name} + ${e.length-1} more`:t.quantity>1?`${t.quantity} × ${t.name}`:t.name}async function Qi(e){let t=e.addressParts,n=``;if(t?.street&&t.country)try{n=(await Promise.resolve().then(()=>require(`./countryList-Cdt53HA6.cjs`))).iso2OfCountryName(t.country).toUpperCase()}catch{}return{...e.name?{name:e.name}:{},...e.phone?{phone:e.phone}:{},...t?.street?{address:{...t,...n?{countryCode:n}:{}}}:{}}}var $i=new Set([`uid`,`formId`,`submittedAt`,`submitterName`,`submitterEmail`,`submitterAvatar`,`transaction`,`arrivedIn`,`access`,`editors`,`test`]);function ea(e,t,n,r,i,{test:a=!1}={}){let o={items:e,extras:t,subtotal:Ji(e),total:Yi(e,t),currency:(n||`usd`).toLowerCase(),name:Ui(r.name),email:Ui(r.email),phone:Ui(r.phone),address:Ui(r.address),...a?{test:!0}:{}},s={};try{s=JSON.parse(JSON.stringify(i||{}))||{}}catch{s={}}for(let[e,t]of Object.entries(s))e in o||$i.has(e)||(o[e]=t);return o}var ta=`fbos_checkout_entry`,na=(e,t)=>JSON.stringify([e,t]);function ra(e){try{let t=JSON.parse(window.sessionStorage.getItem(ta)||`null`);return t&&t.print===e&&typeof t.id==`string`?t.id:``}catch{return``}}function ia(){try{window.sessionStorage.removeItem(ta)}catch{}}var aa=`fbos_checkout_guest`;function oa(e){try{e?window.sessionStorage.setItem(aa,e):window.sessionStorage.removeItem(aa)}catch{}}function sa(){try{let e=window.sessionStorage.getItem(aa)||``;return window.sessionStorage.removeItem(aa),e}catch{return``}}async function ca(e,t){let n=na(e,t),i=ra(n);if(i)return i;let a=r.yt?.currentUser,o=await(0,K.addDoc)((0,K.collection)(r.bt,`user_submissions`),{...t,...a?{uid:a.uid,submitterName:a.displayName||t.name,submitterEmail:a.email||t.email,submitterAvatar:a.photoURL||``}:{uid:`guest`},formId:e,transaction:!0,submittedAt:(0,K.serverTimestamp)()});try{window.sessionStorage.setItem(ta,JSON.stringify({print:n,id:o.id}))}catch{}return o.id}var la=r._t(()=>Promise.resolve().then(()=>require(`./PhoneInputField-C9Lv_QGM.cjs`))),ua=r._t(()=>Promise.resolve().then(()=>require(`./AddressField-DagGSeja.cjs`))),da={},fa=`address`,pa=/^[^\s@,;]+@[^\s@,;.]+(\.[^\s@,;.]+)*\.[a-z]{2,}$/i;function ma(e=e=>{let t=new Uint8Array(e);return crypto.getRandomValues(t),Array.from(t)}){return`${e(24).map(e=>`ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz23456789`[e%57]).join(``)}Aa9!`}function ha(e){let t={};return e.name&&(t.name=e.name),e.email&&(t.email=e.email),e.phone&&(t.phone=e.phone),e.address&&(t.address=e.address),t}function ga(e,t){let n={};return e.name.trim()||(n.name=`Please give your name.`),pa.test(e.email.trim())||(n.email=`Please give a real email address — the receipt goes there.`),t.phone===!0&&!e.phone.trim().replace(/^\+\d{1,3}$/,``)&&(n.phone=`Please give a phone number.`),t.address===!0&&!j.c(j.u(e.address))&&(n.address=`Please give the address.`),n}var _a=`text-[13px] font-medium text-foreground/50 select-none mb-1.5 ml-1`,va=`leading-snug break-words [overflow-wrap:anywhere]`;function ya({phone:e,address:t,onReady:i,onEditing:a,heading:o=`Your details`,continueLabel:s=`Continue`,wide:c=!1,plan:l=!1,className:u=``}){let{user:f,profile:p,profileReady:m,loading:g}=n.Q(),_=n.Bt(),v=String(f?.displayName||p?.displayName||``).trim(),y=String(f?.email||p?.email||``).trim(),b=String(f?.phoneNumber||p?.phone||``).trim(),x=j.i(fa,p||{}),[S,C]=(0,W.useState)(v),[w,T]=(0,W.useState)(y),[E,D]=(0,W.useState)(b),[k,A]=(0,W.useState)(x),[ee,M]=(0,W.useState)({}),[N,P]=(0,W.useState)(``),[F,te]=(0,W.useState)(!1),[I,L]=(0,W.useState)(null),[R,ne]=(0,W.useState)(!1),re=d.o(d.n,da),ie=re.ready?re.value:da,z=String(ie.name||``)||v,B=String(ie.email||``)||y,ae=String(ie.phone||``)||b,V=ie.address&&j.c(ie.address)?{...j.n,...ie.address}:x,H=(0,W.useRef)(!1);(0,W.useEffect)(()=>{H.current||(C(z),T(B),D(ae),A(V))},[`${z}|${B}|${ae}|${j.s(V)}`]);let oe=re.setValue;(0,W.useEffect)(()=>{H.current&&oe({name:S,email:w,phone:E,address:k})},[S,w,E,k,oe]);let U=(0,W.useRef)(``),ce=!!f?.uid,q=ce&&m&&!!v&&pa.test(y)&&(e!==!0||!!b)&&(t!==!0||j.c(x));(0,W.useEffect)(()=>{if(!q||R||I||!f?.uid||U.current===f.uid)return;U.current=f.uid;let e=ba(f.uid,v,y,b,t?x:{...j.n});L(e),i(e,{pressed:!1})},[q,R,I,f?.uid]);let J=(0,W.useRef)(ce),Y=re.clear;(0,W.useEffect)(()=>{let e=J.current&&!ce;J.current=ce,!ce&&(U.current=``,L(null),ne(!1),e&&Y())},[ce,Y]);let X={phone:e,address:t},le=!_.loading&&_.on?.emailLink===!0,Z=(e,t)=>{H.current=!0,t(),ee[e]&&M(t=>{let{[e]:n,...r}=t;return r}),N&&P(``)},ue=async()=>{if(F)return;let e=ga({name:S,email:w,phone:E,address:k},X);if(M(e),Object.keys(e).length){P(`There is something to check below.`);return}te(!0),P(``);let a=S.trim(),o=w.trim(),s=E.trim(),c=t?j.u(k):{...j.n};try{let e=f?.uid||``,t=!1,u=r.yt.currentUser;if(e)u&&a&&a!==v&&await(0,se.updateProfile)(u,{displayName:a}).catch(()=>{});else{let n=await(0,se.createUserWithEmailAndPassword)(r.yt,o,ma());u=n.user,e=n.user.uid,t=!0,await(0,se.updateProfile)(n.user,{displayName:a}).catch(()=>{}),await n.user.getIdToken(!0).catch(()=>{})}let d={uid:e,displayName:a,...t?{email:o,createdAt:new Date().toISOString()}:{},...s?{phone:s}:{},...j.c(c)?j.r(fa,c):{}};try{await(0,K.setDoc)((0,K.doc)(r.bt,`user_profiles`,e),d,{merge:!0})}catch(e){if(console.warn(`BuyerDetails: the details could not be written to the profile.`,e),!t)throw e}t&&u&&n.Ut(u,n.qt(`${window.location.pathname}${window.location.search}`,l?`plan`:`order`));let p=ba(e,a,t?o:y||o,s,c,{registered:t});U.current=e,L(p),ne(!1),i(p,{pressed:!0})}catch(e){if(e?.code===`auth/email-already-in-use`){let e=ba(``,a,o,s,c,{guest:!0});L(e),ne(!1),i(e,{pressed:!0})}else e?.code?P((await n.lt(e,`password`,`That did not work. Check your details and try again.`,{email:o})).text):P(r.mt(e,`Your details could not be saved. Please try again.`))}finally{te(!1)}};if(g||ce&&!m)return(0,G.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl ${u}`,"aria-hidden":!0});if(I&&!R){let e=[I.email,I.phone].map(e=>String(e||``).trim()).filter(Boolean),t=j.a(I.addressParts);return(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.3,ease:`easeOut`},className:`rounded-2xl border border-[var(--panel-border)] bg-foreground/[0.035] px-4 py-3.5 text-left ${u}`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,G.jsx)(`span`,{className:`text-[12px] font-medium text-foreground/45 leading-tight select-none`,children:`Paying as`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>{H.current=!0,ne(!0),a?.()},className:`text-[13px] font-semibold text-accent hover:underline cursor-pointer leading-tight shrink-0`,children:`Change`})]}),(0,G.jsx)(`p`,{className:`${va} mt-1 text-[14.5px] font-semibold text-foreground`,children:I.name}),(e.length>0||t.length>0)&&(0,G.jsxs)(`div`,{className:`mt-1.5 flex flex-col gap-0.5 text-[13.5px] text-foreground/65`,children:[e.map(e=>(0,G.jsx)(`span`,{className:va,children:e},e)),t.length>0&&(0,G.jsx)(`span`,{className:`flex flex-col gap-0.5 ${e.length?`mt-2`:``}`,children:t.map((e,t)=>(0,G.jsx)(`span`,{className:va,children:e},t))})]}),I.guest&&le&&(0,G.jsx)(`p`,{className:`mt-3 pt-3 border-t border-[var(--panel-border)]/70 text-[12.5px] text-foreground/50 leading-snug`,children:`We will email you a link to your order once you have paid.`})]})}return(0,G.jsxs)(`form`,{className:`flex flex-col gap-4 w-full ${u}`,onSubmit:e=>{e.preventDefault(),ue()},noValidate:!0,children:[o&&(0,G.jsx)(`h3`,{className:`text-[15px] font-bold text-foreground tracking-tight`,children:o}),N&&(0,G.jsx)(h.t,{tone:`error`,children:N}),(0,G.jsx)(d.c,{label:`Full name`,"aria-label":`Full name`,name:`name`,autoComplete:`name`,placeholder:`John Doe`,value:S,error:ee.name,disabled:F,onChange:e=>Z(`name`,()=>C(e.target.value)),className:`max-sm:h-11`}),(0,G.jsx)(d.c,{label:`Email`,"aria-label":`Email`,name:`email`,type:`email`,autoComplete:`email`,placeholder:`name@example.com`,value:w,error:ee.email,disabled:F||ce&&!!y,onChange:e=>Z(`email`,()=>T(e.target.value)),className:`max-sm:h-11`}),e&&(0,G.jsxs)(`div`,{className:`flex flex-col w-full`,children:[(0,G.jsx)(W.Suspense,{fallback:(0,G.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl`}),children:(0,G.jsx)(la,{field:{label:e===`optional`?`Phone (optional)`:`Phone`,required:e===!0},value:E,onChange:e=>Z(`phone`,()=>D(e))})}),ee.phone&&(0,G.jsx)(`p`,{className:`text-xs text-red-500 font-medium mt-1 ml-1`,children:ee.phone})]}),t&&(0,G.jsx)(W.Suspense,{fallback:(0,G.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl`}),children:(0,G.jsx)(ua,{id:`buyer-address`,label:t===`optional`?`Address (optional)`:`Address`,required:t===!0,disabled:F,error:ee.address,value:k,onChange:e=>Z(`address`,()=>A(e))})}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,G.jsx)(O.t,{type:`submit`,isLoading:F,disabled:F,className:`w-full ${c?`py-3.5 text-[15px]`:`sm:w-auto sm:self-start py-2.5 text-[14px]`} px-6 font-bold tracking-wide rounded-xl`,children:s}),!ce&&(0,G.jsx)(`p`,{className:`${_a} mb-0`,children:l?`This makes your account, so you can open your plan. We will email you a link to confirm your address.`:`This makes your account, so you can find your order again. We will email you a link to confirm your address.`})]})]})}function ba(e,t,n,r,i,{registered:a=!1,guest:o=!1}={}){let s={name:t,email:n,phone:r,address:j.c(i)?j.s(i):``};return{uid:e,...s,addressParts:j.c(i)?i:{...j.n},metadata:ha(s),registered:a,guest:o}}var xa=`w-full py-3.5 text-[15px] font-bold tracking-wide`;async function Sa(e,t){if(!t)return{name:e.name,phone:e.phone};let n=e.addressParts?.country?.trim()||``,r=``;if(n)try{r=(await Promise.resolve().then(()=>require(`./countryList-Cdt53HA6.cjs`))).iso2OfCountryName(n)}catch{}return{name:e.name,phone:e.phone,address:{...e.addressParts,...r?{countryCode:r}:{}}}}function Ca({children:e,price:t,about:i,phone:a,address:s,disabled:c=!1,variant:l=`primary`,className:u,trialDays:d=0,...f}){let{loading:p,configured:m}=n.cn(),h=r.st(),{userRole:g,user:_}=n.Q(),{pathname:v,search:y}=(0,q.useLocation)(),b=(0,q.useNavigate)(),[x,S]=(0,W.useState)(!1),[w,T]=(0,W.useState)(null),[E,k]=(0,W.useState)(!1),[A,j]=(0,W.useState)(``),[ee,M]=(0,W.useState)(null),[N,P]=(0,W.useState)(``),F=C.s(f.item===void 0?void 0:f.product,f.item);if(p||F.loading)return null;if(f.item!==void 0&&!F.thing)return o.A(g)?(0,G.jsx)(`span`,{className:`text-[12.5px] font-medium text-foreground/50 leading-snug`,children:`Only admins see this: this button names something that is not on your Payments screen now, so it is hidden. Ask your assistant to name the one this page sells.`}):null;if(!m)return o.A(g)?(0,G.jsx)(`span`,{className:`text-[12.5px] font-medium text-foreground/50 leading-snug`,children:`Only admins see this: payments are not on yet, so this button is hidden. Connect Stripe and switch payments on at /payments and it appears here.`}):null;let te=f.mode===`subscription`,I=F.thing,L=f.amount==null?f.currency:f.currency||h||`usd`,R=t?.trim()||(I?n.xr(I.amount,h||`usd`):f.amount==null?``:n.xr(f.amount*(f.quantity||1),L)),ne=I?.name||f.productName?.trim()||(te?`Your plan`:`Your order`),re=te&&d>0,ie=re?`Start your free trial`:[te?`Subscribe`:`Pay`,R].filter(Boolean).join(` · `),B=async e=>{if(E||!e)return;if(k(!0),j(``),f.amount!=null&&!f.currency&&!h&&await r.rt()){j(r.tt),k(!1);return}oa(e.guest?e.email:``);let t={...f,...L?{currency:L}:{},metadata:{page:v,...f.metadata,...e.metadata},buyer:await Sa(e,!!s),successPath:f.successPath||v,cancelPath:f.cancelPath||`${v}${y}`},i;if(re){let e=await n.$t(t);if(i=typeof e==`string`?e:null,typeof e!=`string`){if(e.trial===0){P(e.url),k(!1);return}n.Zt.goTo(e.url)}}else i=await n.in(t);i&&(j(i),k(!1),n.Xt(i)&&M({email:e.email}))};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(O.t,{variant:l,className:u,disabled:c,onClick:()=>{j(``),M(null),P(``),S(!0)},children:e??(te?`Subscribe`:`Buy`)}),(0,G.jsx)(D.t,{open:x,onClose:()=>S(!1),busy:E,size:`sm`,title:ne,sub:(re?`${n.hr(d)}, then ${R}`:R)||void 0,children:N?(0,G.jsxs)(`div`,{className:`flex flex-col gap-5 pt-2`,children:[(0,G.jsxs)(`p`,{role:`alert`,className:`text-[14px] font-semibold text-foreground/80 leading-relaxed`,children:[`You have had a free trial of this before, so this plan starts today`,R?` at ${R}`:``,`.`]}),(0,G.jsx)(O.t,{className:xa,onClick:()=>n.Zt.goTo(N),children:[`Subscribe`,R].filter(Boolean).join(` · `)})]}):ee?(0,G.jsxs)(`div`,{className:`flex flex-col gap-5 pt-2`,children:[(0,G.jsx)(`p`,{role:`alert`,className:`text-[14px] font-semibold text-foreground/80 leading-relaxed`,children:A}),_?(0,G.jsx)(z.t,{variant:`primary`,className:xa}):(0,G.jsx)(O.t,{className:xa,onClick:()=>b(`/login?email=${encodeURIComponent(ee.email)}&from=${encodeURIComponent(`${v}${y}`)}`),children:`Manage plan`})]}):(0,G.jsxs)(`div`,{className:`flex flex-col gap-7 pt-2`,children:[i&&(0,G.jsx)(`p`,{className:`text-[14px] text-foreground/65 leading-relaxed`,children:i}),(0,G.jsx)(ya,{phone:a,address:s,plan:te,wide:!0,continueLabel:ie,onReady:(e,t)=>{T(e),t?.pressed&&B(e)},onEditing:()=>T(null)}),w&&(0,G.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,G.jsx)(O.t,{onClick:()=>B(w),isLoading:E,disabled:E,className:xa,children:ie}),!A&&(0,G.jsx)(`span`,{className:`text-[12.5px] text-foreground/45 leading-snug text-center`,children:E?`Opening the secure payment page…`:re?`Nothing is taken today. Your card is entered on the next page.`:`Secure payment. Your card is entered on the next page.`}),(0,G.jsx)(Vi,{className:`text-center`})]}),A&&(0,G.jsx)(`span`,{role:`alert`,className:`text-[13px] font-semibold text-foreground/80 leading-snug`,children:A})]})})]})}Ca.displayName=`BuyButton`;var wa=`text-[12.5px] font-medium text-foreground/50 leading-snug`;function Ta({product:e,featured:t,featuredLabel:i=`Recommended`,currency:a,phone:s,address:c,successPath:l,only:u,className:d}){let{loading:f,configured:p}=n.cn(),{userRole:m,user:h,refreshUser:g}=n.Q(),{pathname:_,search:v}=(0,q.useLocation)(),y=C.o(e,a),[b,x]=(0,W.useState)(null),[S,w]=(0,W.useState)(!1),[T,E]=(0,W.useState)(``),D=!!h?.email&&!o.h(h),O=async()=>{S||(w(!0),E(``),E(n.Ht[await n.Kt(r.yt?.currentUser,n.qt(`${_}${v}`,`plan`))]),w(!1))};if(Wr(D&&y.plans.some(e=>e.mine),async()=>{await r.yt?.currentUser?.getIdToken(!0),await g?.()}),y.loading||f)return(0,G.jsx)(`div`,{"aria-hidden":!0,className:r.E(`grid gap-5 sm:grid-cols-2 lg:grid-cols-3`,d),children:[0,1,2].map(e=>(0,G.jsx)(`div`,{className:`h-72 glass-panel rounded-3xl animate-pulse`},e))});let k=o.A(m),A=u?new Set(u.map(e=>e.trim().toLowerCase())):null,j=A?y.plans.filter(e=>A.has(e.name.toLowerCase())):y.plans;if(!j.length)return k?(0,G.jsx)(`span`,{className:wa,children:`Only admins see this: this subscription has no finished plan yet, so there is nothing to show here. Finish it at /payments and it appears.`}):null;let ee=j.some(e=>e.monthly&&e.yearly),M=y.plans.find(e=>e.mine)?.mine||null,N=b||M||`monthly`,P=Math.max(0,...j.map(C.c)),F=t?.trim().toLowerCase()||``;return(0,G.jsxs)(`div`,{className:r.E(`flex flex-col items-center gap-10 w-full`,d),children:[!p&&k&&(0,G.jsx)(`span`,{className:wa,children:`Only admins see this: payments are not on yet, so the buttons are hidden. Connect Stripe and switch payments on at /payments and they appear here.`}),ee&&(0,G.jsx)(`div`,{role:`group`,"aria-label":`How often you pay`,className:`inline-flex items-center p-1 rounded-full glass-panel`,children:[`monthly`,`yearly`].map(e=>(0,G.jsx)(`button`,{type:`button`,"aria-pressed":N===e,onClick:()=>x(e),className:r.E(`h-10 px-5 rounded-full text-[14px] font-semibold transition-colors cursor-pointer`,N===e?`bg-accent text-[var(--button-fg,#fff)] shadow-sm`:`text-foreground/55 hover:text-foreground`),children:e===`monthly`?`Monthly`:P?`Yearly · save ${P}%`:`Yearly`},e))}),(0,G.jsx)(`div`,{className:r.E(`grid gap-5 w-full`,j.length===1?`max-w-md`:j.length===2?`sm:grid-cols-2 max-w-3xl`:`sm:grid-cols-2 lg:grid-cols-3`),children:j.map((e,t)=>{let a=e[N]||e.monthly||e.yearly;if(!a)return null;let o=!!F&&e.name.toLowerCase()===F,u=a.rhythm===`yearly`?C.c(e):0,d=!y.subscribed&&!y.trialHad?e.trialDays:0,f=!y.subscribed&&y.trialHad&&e.trialDays>0;return(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},transition:{duration:.35,delay:t*.06,ease:[.16,1,.3,1]},className:r.E(`relative flex flex-col gap-7 p-7 sm:p-8 rounded-3xl glass-panel text-left`,o&&`ring-1 ring-accent/70`),children:[(0,G.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3 min-h-6`,children:[(0,G.jsx)(`h3`,{className:`text-[15px] font-bold tracking-tight text-foreground/75`,children:e.name}),e.mine?(0,G.jsx)(`span`,{className:`px-2.5 py-1 rounded-full bg-foreground/10 text-[11.5px] font-bold text-foreground/70`,children:`Your plan`}):o?(0,G.jsx)(`span`,{className:`px-2.5 py-1 rounded-full bg-accent/15 text-[11.5px] font-bold text-accent`,children:i}):null]}),e.mine&&D&&(0,G.jsxs)(`p`,{className:r.E(wa,`-mt-2`),children:[T||`Confirm your email to open it.`,` `,(0,G.jsx)(`button`,{type:`button`,onClick:O,disabled:S,className:`font-semibold text-accent hover:underline cursor-pointer disabled:opacity-60 disabled:cursor-default`,children:S?`Sending…`:`Send it again`})]}),d>0&&(0,G.jsxs)(`p`,{className:`text-[13px] font-bold text-accent -mb-2`,children:[n.hr(d),`, then`]}),(0,G.jsxs)(`p`,{className:`flex items-baseline gap-2 flex-wrap`,children:[(0,G.jsx)(`span`,{className:`text-4xl font-bold tracking-tight text-foreground tabular-nums`,children:a.figure}),(0,G.jsxs)(`span`,{className:`text-[14px] font-medium text-foreground/50`,children:[`per `,a.rhythm===`monthly`?`month`:`year`]})]}),u>0&&(0,G.jsxs)(`p`,{className:`text-[13px] text-foreground/55 -mt-2`,children:[u,`% less than paying monthly.`]}),f&&(0,G.jsx)(`p`,{className:`text-[13px] text-foreground/55 -mt-2`,children:`You have had your free trial, so this starts today.`}),e.description&&(0,G.jsx)(`p`,{className:`text-[14px] text-foreground/65 leading-relaxed`,children:e.description})]}),e.includes.length>0&&(0,G.jsx)(`ul`,{className:`flex flex-col gap-3`,children:e.includes.map(e=>(0,G.jsxs)(`li`,{className:`flex items-start gap-3 text-[14px] text-foreground/75 leading-snug`,children:[(0,G.jsx)(r.et,{className:`w-4 h-4 mt-0.5 shrink-0 text-accent`,strokeWidth:2.5}),(0,G.jsx)(`span`,{children:e})]},e))}),(0,G.jsx)(`div`,{className:`mt-auto flex flex-col`,children:y.subscribed?(0,G.jsx)(z.t,{variant:e.mine?`secondary`:`primary`,switchTo:e.mine?void 0:a.priceId,className:`w-full py-3 text-[14.5px] font-bold`,children:e.mine?`Manage your plan`:`Switch to ${e.name}`}):p&&y.unsure?(0,G.jsx)(`span`,{className:wa,children:`Your current plan could not be checked just now. Try again in a moment.`}):p?(0,G.jsx)(Ca,{priceId:a.priceId,mode:`subscription`,productName:y.name?`${y.name} — ${e.name}`:e.name,price:a.words,trialDays:d,about:e.description||void 0,phone:s,address:c,successPath:l,metadata:{...y.metadata,plan:e.name,billed:a.rhythm},variant:o||j.length===1?`primary`:`secondary`,className:`w-full py-3 text-[14.5px] font-bold`,children:`Choose ${e.name}`}):null})]},e.name)})}),(0,G.jsx)(Vi,{className:`text-center`})]})}Ta.displayName=`Plans`;var Ea=e=>e?.mode===`subscription`?`plan`:`order`;function Da(e){if(e?.mode!==`subscription`)return{title:`Thank you — your order is in`,thanks:`Your payment went through.`,orderLabel:`View your order`};let t=String(e.metadata?.plan||``).trim(),n=Number(e.metadata?.freeDays||0);return{title:t?`You are subscribed to ${t}`:`You are subscribed`,thanks:Oa(e)?n>0?`Your free trial has started: nothing is taken for ${n} day${n===1?``:`s`}.`:`Nothing was taken today.`:`Your first payment went through.`,orderLabel:`Open your plan`}}var Oa=e=>e?.mode===`subscription`&&e.amountTotal===0,ka=new Map,Aa=new Set,ja=new Map,Ma=new Map,Na=new Set,Pa=new Map;function Fa({basket:e,orderPath:t,onPaid:i,title:a,thanks:s,orderLabel:c}){let[l,u]=(0,q.useSearchParams)(),f=(0,q.useNavigate)(),{pathname:p,search:m}=(0,q.useLocation)(),{user:h,loading:g,refreshUser:_}=n.Q(),v=n.Bt(),y=l.get(`session_id`)||``,b=y?``:l.get(n.Vt),x=b===`plan`||b===`order`?b:``,[S,C]=(0,W.useState)(null),[w,T]=(0,W.useState)(null),[E,A]=(0,W.useState)(null),[j,ee]=(0,W.useState)(!1),M=(0,W.useRef)(i);(0,W.useEffect)(()=>{M.current=i}),(0,W.useEffect)(()=>{if(!y.startsWith(`cs_`))return;let t=!0,r=ka.get(y)||n.Qt(y);return ka.set(y,r),r.then(r=>{if((r.paid||n.an(r))&&!Aa.has(y)){Aa.add(y),e&&d.i(e),d.i(d.n),ia();let t=sa();if(r.paid){t&&ja.set(y,t);try{M.current?.(r)}catch{}}}if(t){if(C(r),r.paid&&T({session:y,guest:ja.get(y)||``}),r.error){ka.delete(y);return}u(e=>{let t=new URLSearchParams(e);return t.delete(`session_id`),t},{replace:!0})}}),()=>{t=!1}},[y,e,u]);let N=w&&!g&&!h?w.guest:``,P=!v.loading&&v.on?.emailLink===!0,F=t||`/billing`,te=h?.email&&!o.h(h)?String(h.email):``,I=!!S?.paid&&!j,[L,R]=(0,W.useState)(``);I&&te&&L!==te&&R(te);let[ne,re]=(0,W.useState)(!1),[ie,z]=(0,W.useState)(!1),[B,ae]=(0,W.useState)(!1),[V,H]=(0,W.useState)(!1),[oe,U]=(0,W.useState)(``),se=(0,W.useRef)(!1),K=h?.uid||``;(0,W.useEffect)(()=>{S?.paid&&te&&K&&qr(K,F)},[S?.paid,te,K,F]);let ce=async()=>{if(se.current)return;se.current=!0,z(!0);let e=r.yt?.currentUser;try{await e?.getIdToken(!0),e?.uid&&(Jr(e.uid),await n.vn(e.uid)),await _?.()}catch{}z(!1),re(!0)},J=I&&!!L&&!ne;Wr(!!S?.paid&&!!L&&!ne,ce,()=>se.current),(0,W.useEffect)(()=>{let e=r.yt?.currentUser;!J||!e?.uid||Na.has(e.uid)||(Na.add(e.uid),n.Ut(e,n.qt(`${p}${m}`,Ea(S))))},[J]);let[Y,X]=(0,W.useState)(null);(0,W.useEffect)(()=>{if(!x||g)return;let e=!0,t=r.yt?.currentUser,i=h&&t?t.uid:``,a=i?Pa.get(i)||(async()=>{try{return await t.reload(),t.emailVerified?(await t.getIdToken(!0),Jr(i),await n.vn(i),await _?.(),await n.Yt(x)?`in`:`signed-out`):`not-yet`}catch{return`not-yet`}})():Promise.resolve(`signed-out`);return i&&!Pa.has(i)&&Pa.set(i,a),a.then(t=>{e&&(X({kind:x,seen:t}),u(e=>{let t=new URLSearchParams(e);return t.delete(n.Vt),t},{replace:!0}))}),()=>{e=!1}},[x,g]);let le=async()=>{if(!(B||ie)){ae(!0),U(``);try{let e=r.yt?.currentUser;if(!e)return;if(await e.reload(),!e.emailVerified){U(`Not yet: open the link in the email first. It may be in your spam folder.`);return}await ce()}catch{U(`We could not check just now. Make sure you are online and try again.`)}finally{ae(!1)}}},Z=async()=>{V||(H(!0),U(``),U(n.Ht[await n.Kt(r.yt?.currentUser,n.qt(`${p}${m}`,Ea(S)))]),H(!1))};(0,W.useEffect)(()=>{if(!N||!P||!w)return;let e=!0,t=Ma.get(w.session)||n.st(N,`/login?from=${encodeURIComponent(F)}`).then(()=>!0,()=>!1);return Ma.set(w.session,t),t.then(t=>{e&&A(t)}),()=>{e=!1}},[N,P,w,F]);let ue=j?`idle`:S?S.paid?`paid`:n.an(S)?`clearing`:`unpaid`:y.startsWith(`cs_`)?`asking`:`idle`,de=()=>ee(!0);function fe({kind:e,seen:t}){let n=e===`plan`?`to open your plan`:`to see your order`;return t===`in`?(0,G.jsx)(D.t,{open:!0,onClose:de,size:`sm`,title:`You are in`,footer:(0,G.jsx)(O.t,{onClick:()=>{de(),f(F)},className:`w-full`,children:c??(e===`plan`?`Open your plan`:`View your order`)}),children:(0,G.jsx)(`p`,{className:`text-[14px] text-foreground/70 leading-relaxed`,children:`Your email is confirmed.`})}):t===`not-yet`?null:(0,G.jsx)(D.t,{open:!0,onClose:de,size:`sm`,title:`Your email is confirmed`,footer:(0,G.jsx)(O.t,{onClick:()=>{de(),f(`/login?from=${encodeURIComponent(F)}`)},className:`w-full`,children:`Sign in`}),children:(0,G.jsxs)(`p`,{className:`text-[14px] text-foreground/70 leading-relaxed`,children:[`Go back to the window where you paid: it has carried on by itself. Or sign in here `,n,`.`]})})}if(ue===`idle`)return j?null:Y?fe(Y):x&&!g&&h?(0,G.jsx)(D.t,{open:!0,onClose:de,busy:!0,size:`sm`,children:(0,G.jsx)(k.t,{block:!0,label:`Letting you in…`})}):null;let pe=Da(S),me=a??pe.title,he=s??pe.thanks,ge=c??pe.orderLabel;if(ue===`asking`)return(0,G.jsx)(D.t,{open:!0,onClose:de,busy:!0,size:`sm`,children:(0,G.jsx)(k.t,{block:!0,label:`Confirming your payment…`})});if(ue===`clearing`)return(0,G.jsx)(D.t,{open:!0,onClose:de,size:`sm`,title:`Your payment is on its way`,footer:(0,G.jsx)(O.t,{onClick:de,className:`w-full`,children:`Done`}),children:(0,G.jsxs)(`div`,{className:`flex flex-col gap-2 text-[14px] text-foreground/70 leading-relaxed`,children:[(0,G.jsx)(`p`,{children:`Your bank is still sending it, which can take a few days. Your order is in: there is nothing more to do, and please do not pay again.`}),S?.receiptLater&&S.customerEmail&&(0,G.jsxs)(`p`,{children:[`We will email a receipt to `,S.customerEmail,` once it arrives.`]})]})});if(ue===`unpaid`)return(0,G.jsx)(D.t,{open:!0,onClose:de,size:`sm`,title:S?.error?`We could not check your payment just now`:`Your payment did not go through`,footer:(0,G.jsx)(O.t,{onClick:de,className:`w-full`,children:S?.error?`Close`:`Back to your basket`}),children:(0,G.jsx)(`p`,{className:`text-[14px] text-foreground/70 leading-relaxed`,children:S?.error?`${S.error} If you finished paying, your order is safe — please do not pay again.`:`Nothing was taken, and your basket is just as you left it.`})});let _e=S?.amountTotal!=null&&!Oa(S)?n.xr(S.amountTotal,S.currency||void 0):``,Q=S?.receipt&&S.customerEmail&&!Oa(S),ve=!N||v.loading?``:P&&E===null?`sending`:P&&E?`sent`:`sign-in`,ye=`/login?email=${encodeURIComponent(N)}&from=${encodeURIComponent(F)}${ve===`sent`?`&sent=1`:``}`,be=h?F:N?ye:t,xe=(0,G.jsxs)(`p`,{children:[he,_e?` ${_e} paid.`:``]}),$=Ea(S)===`plan`?`to open your plan`:`to see your order`,Se=Q&&(0,G.jsxs)(`p`,{children:[`A receipt is on its way to `,S?.customerEmail,`.`]});return J?(0,G.jsx)(D.t,{open:!0,onClose:de,size:`sm`,title:me,footer:(0,G.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,G.jsx)(O.t,{onClick:le,isLoading:B||ie,disabled:B||ie,className:`w-full`,children:`I have opened it`}),(0,G.jsx)(O.t,{variant:`ghost`,onClick:Z,isLoading:V,disabled:V,className:`w-full`,children:`Send it again`})]}),children:(0,G.jsxs)(`div`,{className:`flex flex-col gap-2 text-[14px] text-foreground/70 leading-relaxed`,children:[xe,Se,(0,G.jsxs)(`p`,{className:`mt-2 font-semibold text-foreground [overflow-wrap:anywhere]`,children:[`One step left: open the link we emailed to `,L,`.`]}),(0,G.jsx)(`p`,{children:`This window carries on by itself once you have.`}),oe&&(0,G.jsx)(`p`,{role:`status`,className:`text-foreground/80`,children:oe})]})}):(0,G.jsx)(D.t,{open:!0,onClose:de,size:`sm`,title:ne?`You are in`:me,footer:be?(0,G.jsx)(O.t,{onClick:()=>{de(),f(be)},className:`w-full`,children:ge}):(0,G.jsx)(O.t,{onClick:de,className:`w-full`,children:`Done`}),children:(0,G.jsxs)(`div`,{className:`flex flex-col gap-2 text-[14px] text-foreground/70 leading-relaxed`,children:[xe,ne&&(0,G.jsx)(`p`,{children:`Your email is confirmed.`}),Se,ve===`sending`&&(0,G.jsxs)(`p`,{children:[`Emailing a sign-in link to `,N,`…`]}),ve===`sent`&&(0,G.jsxs)(`p`,{children:[`We have emailed a sign-in link to `,N,` — open it, or sign in here, `,$,`.`]}),ve===`sign-in`&&(0,G.jsxs)(`p`,{children:[P?`The sign-in link could not be emailed just now. `:``,`Sign in with `,N,` `,$,`.`]})]})})}function Ia(){let{id:e=``}=(0,q.useParams)(),{activeConfig:t}=i.L(),a=n.cn(),o=r.st(),s=o||`usd`,[c,l]=(0,W.useState)({loading:!0,product:null});(0,W.useEffect)(()=>{let t=!1;return(0,K.getDoc)((0,K.doc)(r.bt,n.Tn,e)).then(e=>{t||l({loading:!1,product:e.exists()?n.lr(e.id,e.data()):null})}).catch(()=>{t||l({loading:!1,product:null})}),()=>{t=!0}},[e]);let u=c.product,d=u?.customPath.trim()||``;if(d)return(0,G.jsx)(q.Navigate,{to:d.startsWith(`/`)?d:`/${d}`,replace:!0});let f=u?n.qn(u).filter(e=>n.er(e.amount)):[],p=u?.name.trim()||f[0]?.name.trim()||`Pay`,m=u?.kind===`subscription`?u:null,h=m&&!a.loading?C.i(m,a.mode===`live`).length:0,g=c.loading||!!m&&a.loading,v=u?.kind===`once`&&f.some(e=>e.roleId&&e.key);return(0,G.jsxs)(`main`,{className:`flex-1 w-full ${m&&h?`max-w-6xl`:`max-w-3xl`} mx-auto px-4 pt-2 pb-16 md:pt-4 z-10 flex flex-col gap-10`,children:[(m&&h>0||v)&&(0,G.jsx)(Fa,{}),(0,G.jsx)(r.k.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.4},className:`w-full ${m&&h?`max-w-3xl mx-auto`:``} rounded-3xl glass-panel border border-[var(--panel-border)] p-5 sm:p-8 md:p-10 shadow-[0_8px_32px_rgba(0,0,0,0.08)]`,children:g?(0,G.jsxs)(`div`,{className:`flex items-center justify-center gap-3 py-16 text-foreground/50`,children:[(0,G.jsx)(_.n,{className:`w-4 h-4 animate-spin text-accent`}),(0,G.jsx)(`span`,{className:`text-[13px] font-medium`,children:`Loading…`})]}):m&&h>0?(0,G.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[t?.appName&&(0,G.jsx)(`span`,{className:`text-[11px] font-bold uppercase tracking-[0.2em] text-foreground/40`,children:t.appName}),(0,G.jsx)(`h1`,{className:`text-2xl sm:text-3xl md:text-4xl font-bold text-foreground tracking-tight`,children:p}),m.description.trim()&&(0,G.jsx)(`p`,{className:`text-[14px] md:text-[15px] text-foreground/60 leading-relaxed mt-1 max-w-2xl whitespace-pre-line`,children:m.description.trim()}),!a.configured&&(0,G.jsx)(`p`,{className:`text-[14px] font-medium text-foreground/60 mt-3`,children:`Payments are not open right now — please try again later.`})]}):!u||u.kind!==`once`||!f.length?(0,G.jsxs)(`div`,{className:`flex flex-col items-center text-center py-8 gap-4`,children:[(0,G.jsx)(`div`,{className:`w-14 h-14 rounded-2xl glass-panel border border-[var(--panel-border)] flex items-center justify-center shadow-xl`,children:(0,G.jsx)(C.l,{className:`w-7 h-7 text-accent`})}),(0,G.jsx)(`h1`,{className:`text-2xl md:text-3xl font-bold text-foreground tracking-tight`,children:`This payment link is no longer open`}),(0,G.jsx)(`p`,{className:`text-[14px] text-foreground/60 max-w-md`,children:`Ask whoever sent it for a new one.`}),(0,G.jsx)(q.Link,{to:`/`,className:`text-[13px] font-bold text-accent hover:underline mt-2`,children:`Back to the site`})]}):(0,G.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[(0,G.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[t?.appName&&(0,G.jsx)(`span`,{className:`text-[11px] font-bold uppercase tracking-[0.2em] text-foreground/40`,children:t.appName}),(0,G.jsx)(`h1`,{className:`text-2xl sm:text-3xl md:text-4xl font-bold text-foreground tracking-tight`,children:p}),u.description.trim()&&(0,G.jsx)(`p`,{className:`text-[14px] md:text-[15px] text-foreground/60 leading-relaxed mt-1 max-w-2xl whitespace-pre-line`,children:u.description.trim()})]}),!a.loading&&!a.configured&&(0,G.jsx)(`p`,{className:`text-[14px] font-medium text-foreground/60`,children:`Payments are not open right now — please try again later.`}),(0,G.jsx)(`div`,{className:`flex flex-col divide-y divide-[var(--panel-border)]/60 rounded-2xl border border-[var(--panel-border)]/60`,children:f.map((e,t)=>(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-4 px-4 py-3.5`,children:[(0,G.jsxs)(`div`,{className:`min-w-0 flex flex-col`,children:[(0,G.jsx)(`span`,{className:`text-[15px] font-semibold text-foreground truncate`,children:e.name.trim()||p}),(0,G.jsx)(`span`,{className:`text-[13px] font-medium text-foreground/50`,children:n.Sr(n.er(e.amount)||0,s)})]}),e.roleId&&e.key?(0,G.jsxs)(Ca,{product:u.id,item:e.key,metadata:{productId:u.id,page:n.nn(u.id)},cancelPath:n.nn(u.id),className:`shrink-0 px-5 py-2.5 text-[14px] font-bold`,children:[`Pay `,n.Sr(n.er(e.amount)||0,s)]}):(0,G.jsxs)(Hi,{amount:n.er(e.amount)||0,currency:o||void 0,productName:e.name.trim()||p,metadata:{productId:u.id,page:n.nn(u.id)},successPath:`/payment-complete`,cancelPath:n.nn(u.id),className:`px-5 py-2.5 text-[14px] font-bold`,children:[`Pay `,n.Sr(n.er(e.amount)||0,s)]})]},t))})]})}),!g&&m&&h>0&&(0,G.jsx)(Ta,{product:m.id})]})}var La=`src/your-ai-workflow-firebase-os`;function Ra(){let e=new Set;for(let[t,n]of i.E()){let r=n?.config?.route,i=typeof r==`string`&&r.trim()?r.startsWith(`/`)?r:`/`+r:`/`+t.toLowerCase();e.add(i)}return[...e].sort()}var za=e=>(e||``).split(/[^a-zA-Z0-9]+/).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(``);function Ba(e){let t=e?.contentKey||e?.tabName||e?.pageName||e?.pageId||`Page`;return`${La}/microcomponents/${za(String(t))||`Page`}Content.tsx`}var Va=`This is a repair, not a redesign: whatever you have already written for this page stays exactly as it is — the same sections, the same words, the same pictures with the same links, the same layout and styling. What is wrong is the wiring above, so change only that, and nothing about how the page looks or what it says.`;function Ha(e,t){let n=t.replace(/^.*\//,``).replace(/\.tsx$/,``),r=n.replace(/Content$/,``).replace(/([a-z0-9])([A-Z])/g,`$1_$2`).toLowerCase();return[`My app has a page at ${e} and it is still empty after you said it was done. The ONLY thing that fills this page is one file: ${t}, with a default export, registered in ${La}/microcomponents/registry.ts.`,`Check these in order and fix whatever is wrong, without asking me questions:`,`1. The file exists at exactly that path and name — not another folder, not another spelling. If you put it somewhere else, move it there.`,`2. It has a default export. A named-only export is silently ignored.`,`3. ${La}/microcomponents/registry.ts contains these two lines: import ${n} from './${n}'; and registerMicrocomponent('${r}', ${n}); — registerMicrocomponent is imported there from 'your-ai-workflow-firebase-os'. Add them if they are missing, and never remove another page's lines.`,`4. You created nothing else for this page — no config file, no route, no page, and no edit to src/App.tsx or src/main.tsx. Undo any of those you made.`,Va,`Then tell me, in one sentence, which of these was wrong.`].join(`
|
|
4
|
+
`)}function Ua(e){return[`The page at ${e} shows "Page Not Found". The app only finds a page when its config file is picked up, so check these in order and fix whatever is wrong, without asking me questions.`,`1. The page's config file sits directly in ${La}/configs/ and its name ends with Tab.config.ts (a page for signed-in users, my team or admins) or Page.config.ts (a page for anyone). Not in a subfolder, not any other name.`,`2. It exports one const whose name ends with Config, and its route is the single string '${e}'. A page has exactly one web address — remove any other addresses you registered for it.`,`3. ${La}/configs/pagesRegistry.ts exists and src/main.tsx contains the line import './your-ai-workflow-firebase-os/configs/pagesRegistry'. If either is missing, run npm install so the package's postinstall script restores them.`,`4. Put src/App.tsx back to the version the package wrote: it only mounts <FirebaseOS />. Never add routes, a router or the customRoutes prop.`,`5. If the page is for my team, its config says pageType: 'internal'. Any form on it is a *Form.config.ts file shown through <ContactPopup formId="..." />, never a form you wrote by hand.`,Va,`Then rebuild and tell me, in one sentence, which of these was wrong.`].join(`
|
|
5
|
+
`)}var Wa={sides:!1,top:!1},Ga=4,Ka=8,qa=24,Ja=`button, input, select, textarea`,Ya=(e,t,n)=>{for(let r=e instanceof Element?e:e.parentElement;r&&r!==t;r=r.parentElement){if(r.getAttribute(`aria-hidden`)===`true`||getComputedStyle(r).position===`fixed`)return!1;let e=r.getBoundingClientRect();if(e.width>=1&&(e.left<n.left-1||e.right>n.right+1))return!1}return!0};function Xa(e){let t={...Wa},n=e.getBoundingClientRect();if(n.width<1)return t;let r=(r,i)=>{if(r.width<1||r.height<1||r.left<n.left-1||r.right>n.right+1)return;let a=r.left-n.left<Ga||n.right-r.right<Ga,o=r.top>=n.top-1&&r.top-n.top<Ka;!(a&&!t.sides)&&!(o&&!t.top)||Ya(i,e,n)&&(a&&(t.sides=!0),o&&(t.top=!0))},i=e.ownerDocument,a=i.createRange();if(typeof a.getBoundingClientRect==`function`){let n=i.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(let e=n.nextNode();e;e=n.nextNode())if(e.nodeValue?.trim()&&(a.selectNodeContents(e),r(a.getBoundingClientRect(),e),t.sides&&t.top))return t}for(let n of e.querySelectorAll(Ja))if(r(n.getBoundingClientRect(),n),t.sides&&t.top)return t;if(!t.top)for(let r of e.querySelectorAll(`img`)){let i=r.getBoundingClientRect();if(!(i.width<1||i.height<1)&&!(i.top<n.top-1||i.top-n.top>=qa)&&!(i.left<=n.left+1&&i.right>=n.right-1)&&!(!Ya(r,e,n)||ro(r,e,n))){t.top=!0;break}}if(!t.sides)for(let r of e.querySelectorAll(`div, section, article, aside, ul, ol, li, a, label`)){if(!Qa(r))continue;let i=r.getBoundingClientRect();if(!(i.width<1||i.height<1||i.width>=n.width-1&&!Za(r))&&!(i.left<n.left-1||i.right>n.right+1)&&!(i.left-n.left>=Ga&&n.right-i.right>=Ga)&&Ya(r,e,n)){t.sides=!0;break}}return t}var Za=e=>{let t=getComputedStyle(e),n=e.style;return(parseFloat(t.borderTopLeftRadius)||parseFloat(t.borderRadius)||parseFloat(n?.borderTopLeftRadius||n?.borderRadius||``)||0)>0},Qa=e=>{let t=getComputedStyle(e);return(parseFloat(t.borderLeftWidth||t.borderWidth)||0)>0&&!no(t.borderLeftColor||t.borderColor)?!0:Za(e)&&!no(t.backgroundColor)},$a=28,eo=200,to=72,no=e=>!e||e===`transparent`||/^rgba\([^)]*,\s*0\s*\)$/.test(e),ro=(e,t,n)=>{let r=t.ownerDocument,i=[r.body,r.documentElement].map(e=>getComputedStyle(e).backgroundColor);for(let r=e instanceof Element?e:e.parentElement;r&&r!==t;r=r.parentElement){let e=r.getBoundingClientRect();if(e.left>n.left+1||e.right<n.right-1||e.height>=n.height*.9)continue;let t=getComputedStyle(r);if(t.backgroundImage&&t.backgroundImage!==`none`||!no(t.backgroundColor)&&!i.includes(t.backgroundColor))return!0}return!1};function io(e){let t=e.getBoundingClientRect();if(t.width<1)return 0;let n=e.ownerDocument,r=n.createRange();if(typeof r.getBoundingClientRect!=`function`)return 0;let i=1/0,a=null,o=e=>e.width>=1&&e.height>=1&&e.left>=t.left-1&&e.right<=t.right+1&&e.top>=t.top-1&&e.top-t.top<eo,s=n.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(let n=s.nextNode();n;n=s.nextNode()){if(!n.nodeValue?.trim()||!n.parentElement)continue;r.selectNodeContents(n);let s=r.getBoundingClientRect();if(!(!o(s)||!Ya(n,e,t))&&(i=Math.min(i,s.top-t.top),!a)){let e=parseFloat(getComputedStyle(n.parentElement).fontSize)||0;e>=$a&&(a={size:e,at:n})}}if(!a||ro(a.at,e,t))return 0;for(let n of e.querySelectorAll(Ja)){let r=n.getBoundingClientRect();o(r)&&Ya(n,e,t)&&(i=Math.min(i,r.top-t.top))}let c=Math.min(to,Math.round(a.size));return Math.max(0,Math.round(c-Math.max(0,i)))}var ao={...Wa,room:0},oo=[300,1e3,2500];function so(e,t){let[n,r]=(0,W.useState)({page:t,given:ao});return(0,W.useEffect)(()=>{let n=e.current;if(!n||typeof window>`u`)return;let i=ao,a=!1,o,s=()=>{let e=Xa(n),o={sides:i.sides||e.sides,top:i.top||e.top,room:Math.max(i.room,io(n))};(o.sides!==i.sides||o.top!==i.top||o.room!==i.room)&&(i=o,r({page:t,given:i})),a&&i.sides&&i.top&&p()},c=()=>{clearTimeout(o),o=setTimeout(s,200)},l=requestAnimationFrame(s),u=oo.map((e,t)=>setTimeout(()=>{a=t===oo.length-1,s()},e)),d=new MutationObserver(c);d.observe(n,{childList:!0,subtree:!0});let f=typeof ResizeObserver>`u`?null:new ResizeObserver(c);f?.observe(n);function p(){cancelAnimationFrame(l),u.forEach(clearTimeout),clearTimeout(o),d.disconnect(),f?.disconnect()}return p},[e,t]),n.page===t?n.given:ao}function co(e){let[t,n]=(0,W.useState)(null);return(0,W.useEffect)(()=>{if(e)return(0,K.onSnapshot)((0,K.collection)(r.bt,e),t=>{!t.metadata.fromCache&&!t.metadata.hasPendingWrites&&n({name:e,size:t.size})},()=>{})},[e]),t&&t.name===e?t.size:null}function lo({job:e,kept:t}){let n=g.l(e,{records:co(e.from),copies:co(e.to),kept:t});return n?(0,G.jsx)(`aside`,{className:`w-full px-4 md:px-8 pb-6 text-xs text-foreground/60`,"aria-label":`What this page is shown from ${e.keeper.title}`,children:(0,G.jsxs)(`div`,{className:`max-w-3xl rounded-2xl border border-[var(--panel-border)] bg-[var(--panel-bg)] px-4 py-3 flex flex-col gap-1.5`,children:[(0,G.jsx)(`span`,{className:`uppercase tracking-[0.18em] text-foreground/40`,children:`Only your team sees this`}),(0,G.jsx)(`p`,{className:`leading-relaxed`,children:n})]})}):null}function uo({config:e}){let{userRole:t}=n.Q();return o.O(t)?(0,G.jsx)(fo,{config:e}):null}function fo({config:e}){let t=ie.u(),n=Fi();if(!t||!n)return null;let r=g.d(t,e);if(!r)return null;let i=g.c(g.u(t),r.id);return i.length?(0,G.jsx)(`div`,{className:`w-full mt-auto pt-6`,children:i.map(e=>(0,G.jsx)(lo,{job:e,kept:!!n[e.from]},`${e.from}${e.reader.id}`))}):null}function po({config:e,customContent:t}){let{config:a}=i.L(),{userRole:s}=n.Q();tn(!!t);let l=(0,W.useRef)(null),u=so(l,t);return(0,W.useEffect)(()=>{document.title=e.pageName||e.pageTitle||a.appName||`Your AI Firebase`},[e.pageName,e.pageTitle,a.appName]),t?(0,G.jsx)(c.p,{value:{prefix:`pub_`},children:(0,G.jsxs)(`main`,{ref:l,className:r.E(`fbos-content-slot fbos-page-canvas flex-1 w-full z-10 flex flex-col relative`,u.sides&&`px-4 md:px-8`,u.top&&`pt-6 md:pt-10`),style:u.room?{paddingTop:u.room}:void 0,"data-gutter-given":[u.sides&&`sides`,u.top&&`top`,u.room&&`title`].filter(Boolean).join(` `)||void 0,children:[(0,G.jsx)(E.p,{size:`part`,children:(0,G.jsx)(ee.t,{config:e,children:(0,G.jsx)(t,{config:e})})}),(0,G.jsx)(uo,{config:e})]})}):(0,G.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 relative min-h-screen`,children:[(0,G.jsx)(r.k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-4 md:mb-6 min-w-0`,children:(0,G.jsx)(n.t,{children:e.pageTitle||e.pageName||`New Page`})}),(0,G.jsx)(r.k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`glass-panel border border-[var(--panel-border)] rounded-3xl shadow-2xl relative flex flex-col flex-1 bg-background/50 h-full min-h-[400px]`,children:e.form?(0,G.jsx)(`div`,{className:`fbos-content-slot flex-1 flex flex-col items-center justify-start p-4 md:p-8`,children:(0,G.jsx)(E.p,{size:`part`,children:(0,G.jsx)(ee.t,{config:e,children:(0,G.jsx)(d.t,{isInline:!0,formId:e.form})})})}):(0,G.jsxs)(`div`,{className:`flex-1 flex flex-col items-center justify-center m-4 md:m-8 gap-6`,children:[(0,G.jsxs)(`div`,{className:`w-full glass-panel border border-[var(--panel-border)]/50 border-dashed rounded-2xl p-8 py-16 text-center opacity-70`,children:[(0,G.jsx)(`p`,{className:`text-[15px] font-bold mb-1.5 text-foreground/70`,children:`This page is empty`}),(0,G.jsx)(`p`,{className:`text-[13px] font-medium text-foreground/50 max-w-sm leading-relaxed mx-auto`,children:`Open the Pages screen, say what you would like on it, and copy the sentence there into your assistant's chat.`})]}),o.A(s)&&(0,G.jsx)(`div`,{className:`w-full max-w-lg`,children:(0,G.jsx)(n.o,{compact:!0,title:`Already asked, and it is still empty? Paste this`,prompt:Ha(e.route||`/`,Ba(e))})})]})})]})}var mo=(...e)=>{for(let t of e)if(t&&typeof t==`object`&&!Array.isArray(t))return t;return null};function ho(e,t){let n=mo(e,t);if(!n)throw Error(`saveRecord needs the record to save — actions.saveRecord({ name: …, price: … }). The collection is the page’s own and is never passed.`);return n}function go(e,t,n){let r=mo(t,n);if(!r)throw Error(`updateRecord needs the record’s id and the change — actions.updateRecord(id, { stock: 4 }). The collection is the page’s own and is never passed.`);return{id:String((r===n?t:e)??``),data:r}}function _o(e,t){return String((typeof t==`string`&&t?t:e)??``)}function vo(e){return(e||[]).map(e=>{let t=e.data()||{};return{...t,createdAt:t.createdAt?.toMillis?t.createdAt.toMillis():t.createdAt,id:e.id}})}function yo(e){if(!e||!(`id`in e))return e;let{id:t,...n}=e;return n}function bo(e){let t=typeof e?.sourceId==`string`?e.sourceId.trim():``;return t?`from_${t.replace(/[^A-Za-z0-9_-]/g,`_`).slice(0,200)}`:null}var xo=(e,t)=>`${e}|${t}`,So=e=>Object.fromEntries(e.map(e=>[xo(e.record,e.variant),e.since])),Co=e=>typeof e==`number`&&Number.isFinite(e),wo=(e,t)=>t&&Array.isArray(e?.variants)&&e.variants.find(e=>e&&String(e.id??``)===String(t))||null;function To(e){let t=[];for(let n of e)if(!(!n||!n.id)){Co(n.stock)&&Co(n.stockSetAt)&&t.push({record:String(n.id),variant:``,since:n.stockSetAt});for(let e of Array.isArray(n.variants)?n.variants:[]){let r=String(e?.id??``);r&&Co(e?.stock)&&Co(e?.stockSetAt)&&t.push({record:String(n.id),variant:r,since:e.stockSetAt})}}return t.sort((e,t)=>(e.record+`|`+e.variant).localeCompare(t.record+`|`+t.variant))}function Eo(e,t,n,r){if(!t)return null;let i=wo(t,n),a=i?i.stock:n?void 0:t.stock;return Co(a)?Math.max(0,a-Do(e,t,n,r)):null}function Do(e,t,n,r){if(!t?.id)return 0;let i=wo(t,n),a=i?i.stockSetAt:n?void 0:t.stockSetAt;if(!Co(a))return 0;let o=r?.[xo(String(t.id),i?String(i.id):``)];if(r&&o!==a)return 0;let s=e[String(t.id)]?.[i?String(i.id):``];return Co(s)&&s>0?s:0}function Oo(e,t,n=Date.now()){if(!e||typeof e!=`object`)return e;let r={...e};if(Co(e.stock)&&(r.stockSetAt=!t||t.stock!==e.stock||!Co(t.stockSetAt)?n:t.stockSetAt),Array.isArray(e.variants)){let i=Array.isArray(t?.variants)?t.variants:[];r.variants=e.variants.map(e=>{if(!e||typeof e!=`object`||!Co(e.stock))return e;let t=i.find(t=>t&&String(t.id??``)===String(e.id??``));return!t||t.stock!==e.stock||!Co(t.stockSetAt)?{...e,stockSetAt:n}:Co(e.stockSetAt)?e:{...e,stockSetAt:t.stockSetAt}})}return r}var ko=60*1e3,Ao=`What is left in stock could not be checked just now — the counts shown are as last set.`,jo={fetch:(e,t)=>fetch(e,t)};async function Mo(e){if(!e.length)return{sold:{},error:``,partial:!1};try{let t=await jo.fetch(`/api/payments/sold`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({wants:e})});if(!t.ok)return{sold:{},error:Ao,partial:!1};let n=await t.json();return{sold:n&&typeof n.sold==`object`&&n.sold?n.sold:{},error:``,partial:n?.partial===!0}}catch{return{sold:{},error:Ao,partial:!1}}}function No(e){let t=(0,W.useMemo)(()=>To(Array.isArray(e)?e:[]),[e]),n=(0,W.useMemo)(()=>JSON.stringify(t),[t]),[r,i]=(0,W.useState)({sold:{},for:{}}),[a,o]=(0,W.useState)(!1),[s,c]=(0,W.useState)(!1),l=t.length>0&&!s,[u,d]=(0,W.useState)(``),[f,p]=(0,W.useState)(0),m=(0,W.useRef)(t);return m.current=t,(0,W.useEffect)(()=>{if(!t.length)return;let e=!0,n=async()=>{let t=m.current,n=await Mo(t);e&&(n.error||(i({sold:n.sold,for:So(t)}),o(n.partial),p(Date.now())),d(n.error),c(!0))};n();let r=setInterval(()=>{document.visibilityState!==`hidden`&&n()},ko),a=()=>{document.visibilityState===`visible`&&n()};return document.addEventListener(`visibilitychange`,a),()=>{e=!1,clearInterval(r),document.removeEventListener(`visibilitychange`,a)}},[n]),(0,W.useMemo)(()=>({loading:l,error:u,asOf:f,partial:a,left:(e,t)=>Eo(r.sold,e,t,r.for),sold:(e,t)=>Do(r.sold,e,t,r.for)}),[r,l,u,f,a])}function Po({config:e,customContent:t}){let{user:a,userRole:s}=n.Q(),{config:l}=i.L(),[u,d]=(0,W.useState)([]),[p,m]=(0,W.useState)(!0),[h,v]=(0,W.useState)(!1),[y,x]=(0,W.useState)(``),[S,D]=(0,W.useState)(``),[k,j]=(0,W.useState)(!1),[M,N]=(0,W.useState)(``),[P,te]=(0,W.useState)(null),I=(0,W.useRef)(null),[L,R]=(0,W.useState)(null),[ne,z]=(0,W.useState)(null),V=e=>{if(z(e),e){let t=e.fileType||``;U(t.startsWith(`image/`)||t.startsWith(`video/`)||t===`application/pdf`)}},H=ne,[oe,U]=(0,W.useState)(!0),[se,ce]=(0,W.useState)(!1),[q,Y]=(0,W.useState)(null),[X,le]=(0,W.useState)(``),[Z,ue]=(0,W.useState)(``),[de,fe]=(0,W.useState)([]),pe=(0,W.useRef)(null),me=ie.o(e,`user_page`),he=o.R({...e,pageType:`user`}),ge=!he.startsWith(`user_`),_e=c.c(he),Q=_e?ie.t(e,he):`${he}${me}_records`,ve=c.f(),ye=c.o({on:!ge&&!_e}),be=ye.uid||a?.uid||``,xe=F.m(Q),$=_e?xe.records:u,Se=_e?xe.loading:p,Ce=e=>_e?F.n(e,ve):!0,we=s===`admin`,Te=e=>Ce(e)&&ae.d(e,s),Ee=(0,W.useRef)(!1);(0,W.useEffect)(()=>{!we||Se||Ee.current||!$.length||(Ee.current=!0,ae.a(Q,$,e,!0).catch(e=>console.warn(`Could not catch the delete lock up:`,e)).finally(()=>{Ee.current=!1}))},[we,Se,$,ae.l(e),Q]);let De=ye.everyone?`${a?.uid}|everyone`:ye.uid||a?.uid||``,Oe=(0,W.useRef)(De),ke=e=>c.d(he,Q,e),[Ae,je]=(0,W.useState)(()=>_e?c.u(Q):``),Me=()=>je(c.u(Q));(0,W.useEffect)(()=>{document.title=e.tabTitle||e.tabName||l.appName||`Your AI Firebase`},[e.tabTitle,e.tabName,l.appName]),(0,W.useEffect)(()=>{if(!a||_e)return;try{let e=g.o(Q,De);e?(d(e),m(!1)):(d(e=>e.length?[]:e),m(!0)),Oe.current=De}catch{}let e=e=>vo(e),t=(0,K.onSnapshot)(ge||ye.everyone?(0,K.query)((0,K.collection)(r.bt,Q),(0,K.orderBy)(`createdAt`,`desc`),(0,K.limit)(150)):(0,K.query)((0,K.collection)(r.bt,Q),(0,K.where)(`uid`,`==`,ye.uid||a.uid)),t=>{let n=e(t.docs);n.sort((e,t)=>(t.createdAt||0)-(e.createdAt||0)),d(n),m(!1),Oe.current=De,g.s(Q,De,n)},e=>{console.warn(`${Q}: this account cannot read its records here (${e?.code||`permission-denied`}). Signed-in pages need a verified email address; the records themselves are only ever the signer's own.`),d(e=>e.length?[]:e),m(!1)});return()=>t()},[a,Q,ge,_e,ye.uid,ye.everyone,De]),(0,W.useEffect)(()=>{!p&&a&&!_e&&Oe.current===De&&g.s(Q,De,u)},[u,p,Q,a,_e,De]);let Ne=async e=>$.some(t=>t.id===e)||await(0,K.getDoc)((0,K.doc)(r.bt,Q,e)).then(e=>e.exists()).catch(()=>!1),Pe=async(t,n)=>{let i={uid:be,recordType:`record`,...ae.u(e,s),...t};if(!_e){let e=bo(t),n=e?(0,K.doc)(r.bt,Q,e):(0,K.doc)((0,K.collection)(r.bt,Q)),a={...i,createdAt:(0,K.serverTimestamp)()};return await(0,K.setDoc)(n,a),g.p(Q,n.id,a),n.id}let o=n||Ae||c.u(Q);return await(0,K.setDoc)((0,K.doc)(r.bt,Q,o),c.l({...vi(a),...i},a.uid)),n||Me(),o},Fe=async t=>{if(t.preventDefault(),!(!a||!y.trim())){j(!0);try{let t=await Pe({name:y.trim(),note:S.trim()});_e||d(n=>[{id:t,name:y.trim(),note:S.trim(),uid:a.uid,recordType:`record`,...ae.u(e,s),createdAt:Date.now()},...n]),x(``),D(``),v(!1)}catch(e){console.error(`Error saving record:`,e)}j(!1)}},Ie=c.b({upload:async(t,n)=>{if(!a)throw Error(`Sign in again before uploading.`);let r=await A._(t),i=_e?I.current&&Ae||c.u(Q):``,o=`${ke(i)}/${c.h(r.name)}`,l=await c.y(o,r,{customMetadata:{ownerId:a.uid},onProgress:n.progress,signal:n.signal});if(I.current)I.current(r,l,{uid:a.uid,storagePath:o,recordId:i});else{let t=await Pe({name:r.name,note:`${r.type||`File`} · ${nt(r.size)}`,recordType:`file`,fileName:r.name,fileType:r.type||`unknown`,fileSize:r.size,downloadURL:l,storagePath:o},i);_e||d(n=>[{id:t,name:r.name,note:`${r.type||`File`} · ${nt(r.size)}`,uid:a.uid,recordType:`file`,fileName:r.name,fileType:r.type,fileSize:r.size,downloadURL:l,storagePath:o,...ae.u(e,s),createdAt:Date.now()},...n])}},onFailed:e=>N(`${e.name}: ${e.error||`That upload did not work.`}`),onSettled:()=>Ie.clear()}),Le=Ie.busy,Re=e=>{let t=Array.from(e.target.files||[]);e.target.value=``,!(!t.length||!a)&&(N(``),Ie.add(t))},ze=async()=>{if(L){ce(!0);try{let e=$.find(e=>e.id===L);if(!ae.d(e,s)){C.n(`Nothing on this page can be deleted.`),R(null),ce(!1);return}await(0,K.deleteDoc)((0,K.doc)(r.bt,Q,L)),await B.o(e,$,ke(L)),_e||d(e=>e.filter(e=>e.id!==L)),R(null)}catch(e){console.error(`Error deleting record:`,e)}ce(!1)}},[Be,Ve]=(0,W.useState)(null),[He,Ue]=(0,W.useState)(``),[We,Ge]=(0,W.useState)(!1),[Ke,qe]=(0,W.useState)(null),Je=(0,W.useRef)([]),Ye=e=>{if(e.recordType===`file`){Ve(e.id),Ue(e.name);return}Y(e.id),le(e.name),ue(e.note||``);let t=[`name`,`note`,`uid`,`recordType`,`fileName`,`fileType`,`fileSize`,`downloadURL`,`storagePath`,`createdAt`],n=Object.entries(e).filter(([e])=>!t.includes(e)&&e!==`id`).map(([e,t])=>({key:e,value:String(t??``)}));fe(n),Je.current=n.map(e=>e.key)},Xe=async()=>{if(!Be||!He.trim()){Ve(null);return}let e=$.find(e=>e.id===Be);if(e&&e.name===He.trim()){Ve(null);return}Ge(!0);try{await(0,K.updateDoc)((0,K.doc)(r.bt,Q,Be),{name:He.trim()}),d(e=>e.map(e=>e.id===Be?{...e,name:He.trim()}:e))}catch(e){console.error(`Error renaming file:`,e)}Ge(!1),Ve(null)},Ze=async()=>{await Qe(),Y(null)},Qe=async()=>{if(!q||!X.trim())return;j(!0);let e={};de.forEach(({key:t,value:n})=>{t.trim()&&(e[t.trim()]=n)});let t=de.map(e=>e.key.trim()).filter(Boolean),n=Je.current.filter(e=>!t.includes(e));n.forEach(t=>{e[t]=(0,K.deleteField)()});try{await(0,K.updateDoc)((0,K.doc)(r.bt,Q,q),{name:X.trim(),note:Z.trim(),...e}),d(e=>e.map(e=>{if(e.id!==q)return e;let t={...e,name:X.trim(),note:Z.trim()};return n.forEach(e=>{delete t[e]}),de.forEach(({key:e,value:n})=>{e.trim()&&(t[e.trim()]=n)}),t})),Je.current=t}catch(e){console.error(`Error saving record:`,e)}j(!1)},$e=(e,t)=>e?e.startsWith(`image/`)?t?(0,G.jsx)(`div`,{className:`w-9 h-9 rounded-xl bg-cover bg-center shrink-0`,style:{backgroundImage:`url(${t})`}}):(0,G.jsx)(f.l,{className:`w-4 h-4`}):e.startsWith(`video/`)||e.startsWith(`audio/`)?(0,G.jsx)(c.S,{className:`w-4 h-4`}):e.includes(`pdf`)||e.includes(`word`)||e.includes(`text`)?(0,G.jsx)(f.d,{className:`w-4 h-4`}):e.includes(`zip`)||e.includes(`rar`)||e.includes(`archive`)?(0,G.jsx)(c.T,{className:`w-4 h-4`}):e.includes(`html`)||e.includes(`csv`)||e.includes(`json`)?(0,G.jsx)(c.w,{className:`w-4 h-4`}):(0,G.jsx)(f.u,{className:`w-4 h-4`}):(0,G.jsx)(f.d,{className:`w-4 h-4`}),et=e=>e?e.startsWith(`image/`)?`bg-emerald-500/10 text-emerald-500`:e.startsWith(`video/`)||e.startsWith(`audio/`)?`bg-accent/10 text-accent`:e.includes(`pdf`)||e.includes(`word`)||e.includes(`text`)?`bg-blue-500/10 text-blue-500`:e.includes(`zip`)||e.includes(`rar`)||e.includes(`archive`)?`bg-yellow-500/10 text-yellow-500`:e.includes(`html`)||e.includes(`csv`)||e.includes(`json`)?`bg-emerald-500/10 text-emerald-500`:`bg-foreground/5 text-foreground/40`:`bg-foreground/5 text-foreground/40`,tt=e=>{if(!e)return`FILE`;let t={"application/pdf":`PDF`,"application/zip":`ZIP`,"application/x-zip-compressed":`ZIP`,"application/x-rar-compressed":`RAR`,"application/x-7z-compressed":`7Z`,"application/json":`JSON`,"application/xml":`XML`,"application/javascript":`JS`,"application/typescript":`TS`,"application/msword":`DOC`,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":`DOCX`,"application/vnd.ms-excel":`XLS`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":`XLSX`,"application/vnd.ms-powerpoint":`PPT`,"application/vnd.openxmlformats-officedocument.presentationml.presentation":`PPTX`,"application/rtf":`RTF`,"application/x-tar":`TAR`,"application/gzip":`GZ`,"text/plain":`TXT`,"text/html":`HTML`,"text/css":`CSS`,"text/csv":`CSV`,"text/markdown":`MD`},n=e.toLowerCase();if(t[n])return t[n];let r=n.split(`/`);return r[r.length-1].replace(/^x-/,``).replace(/^vnd\..*\./,``).toUpperCase().slice(0,10)},nt=e=>{if(!e)return`0 B`;let t=1024,n=[`B`,`KB`,`MB`,`GB`],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/t**+r).toFixed(2))+` `+n[r]},rt=e=>{if(!e)return``;let t=e.toMillis?e.toMillis():e;return new Date(t).toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`})},it=n.B(e.buttonStorageIcon)||ht,at=e.buttonStyle!==`secondary`,ot=e.buttonStorageStyle===`primary`;return(0,G.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,G.jsx)(r.k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-6 flex items-center justify-between`,children:(0,G.jsxs)(`div`,{children:[(0,G.jsx)(n.t,{children:e.tabTitle||e.tabName||`User Page`}),e.route&&(0,G.jsxs)(`div`,{className:`flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,G.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),e.route]})]})}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-6 flex-1 pb-16`,children:[(0,G.jsx)(i.t,{}),(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:t?`flex flex-col flex-1 relative`:`flex flex-col glass-panel border border-[var(--panel-border)] rounded-3xl overflow-hidden flex-1 shadow-2xl bg-background`,children:[(0,G.jsx)(`input`,{type:`file`,multiple:!0,ref:pe,onChange:Re,className:`hidden`}),!t&&(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3 sm:gap-4 p-4 sm:p-6 md:px-8 md:py-6 border-b border-[var(--panel-border)]/50 bg-background/50 shrink-0`,children:[(0,G.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,G.jsx)(`h2`,{className:`text-xl font-bold text-foreground tracking-tight truncate`,children:e.tabTitle||e.tabName||`Dashboard`}),(0,G.jsx)(`p`,{className:`text-[13px] font-medium text-foreground/50 mt-1`,children:Se?`Loading…`:`${$.length} ${$.length===1?`item`:`items`}`}),(M||_e&&xe.error)&&(0,G.jsx)(`p`,{className:`text-[12px] font-semibold text-red-500 mt-1 truncate`,role:`alert`,children:M||xe.error}),ye.someoneElse&&e.storage!==!1&&(0,G.jsx)(`p`,{className:`text-[12px] font-medium text-foreground/50 mt-1 max-sm:hidden`,children:`You are looking at somebody else’s page. Anything you add here is theirs, but a file would stay yours — so uploads are off until you switch back to your own.`})]}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,G.jsx)(c.a,{viewing:ye}),e.storage!==!1&&!ye.someoneElse&&(0,G.jsx)(G.Fragment,{children:(0,G.jsxs)(r.k.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>pe.current?.click(),title:Le?Ie.done?`${Ie.done} of ${Ie.total} uploaded…`:`Uploading ${Ie.total===1?`your file`:`${Ie.total} files`}…`:e.buttonStorageText||`Upload files`,className:`h-10 flex items-center justify-center gap-2 rounded-xl transition-all duration-300 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed ${e.buttonStorageText?`px-4`:`w-10`} ${ot?`btn-primary`:`btn-secondary`}`,children:[Le?(0,G.jsx)(_.n,{className:`w-4 h-4 animate-spin`}):(0,G.jsx)(it,{className:`w-4 h-4`}),e.buttonStorageText&&(0,G.jsx)(`span`,{className:`text-[13px] font-bold`,children:e.buttonStorageText})]})}),e.showButton!==!1&&(0,G.jsx)(r.k.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>v(!0),title:`Add New`,className:`h-10 flex items-center justify-center gap-2 rounded-xl transition-all duration-300 cursor-pointer ${e.buttonText&&e.buttonText!==`+`?`px-5`:`w-10`} ${at?`btn-primary`:`btn-secondary`}`,children:e.buttonText===`+`||!e.buttonText?(0,G.jsx)(b.t,{className:`w-4 h-4`}):(0,G.jsx)(`span`,{className:`text-[13px] font-bold`,children:e.buttonText})})]})]}),(0,G.jsxs)(`div`,{className:t?`flex-1 flex flex-col relative min-h-[400px]`:`p-6 md:p-8 flex-1 overflow-y-auto relative min-h-[400px]`,children:[Se&&(0,G.jsx)(`div`,{className:`absolute inset-0 z-10 flex items-center justify-center bg-background/50 backdrop-blur-sm`,children:(0,G.jsx)(_.n,{className:`w-8 h-8 text-accent animate-spin`})}),t?(0,G.jsx)(c.p,{value:{prefix:he,collection:_e?Q:``,recordId:_e?q||Ae:``},children:(0,G.jsx)(`div`,{className:`fbos-content-slot fbos-tab-fill`,children:(0,G.jsx)(E.p,{size:`part`,children:(0,G.jsx)(ee.t,{config:e,children:(0,G.jsx)(t,{config:e,actions:{records:$,loading:Se,error:_e?xe.error:``,collection:Q,user:a,...c.s(Q,ve,_e,Ae),saveRecord:async(t,n)=>{let r=yo(ho(t,n)),i=_e?null:bo(r);if(i&&await Ne(i))return i;let a=await Pe(Oo(r));return _e||d(t=>[{uid:be,recordType:`record`,...ae.u(e,s),createdAt:Date.now(),...r,id:a},...t.filter(e=>e.id!==a)]),a},updateRecord:async(e,t,n)=>{let{id:i,data:o}=go(e,t,n),s=yo(o),c={...yi(a),...Oo(s,$.find(e=>e.id===i))};_e||d(e=>e.map(e=>e.id===i?{...e,...c}:e)),await(0,K.updateDoc)((0,K.doc)(r.bt,Q,i),c);let l=$.find(e=>e.id===i);l&&g.p(Q,i,{...l,...c})},deleteRecord:async(e,t)=>{let n=_o(e,t),i=$.find(e=>e.id===n);if(!ae.d(i,s)){C.n(`Nothing on this page can be deleted.`);return}await(0,K.deleteDoc)((0,K.doc)(r.bt,Q,n)),g.m(Q,n),await B.o(i,$,ke(n))},startEdit:e=>Ye(e),confirmDelete:e=>R(e),uploadFile:()=>{ye.someoneElse||pe.current?.click()},openAddForm:()=>v(!0),setAddForm:e=>te(()=>e),setFileHandler:e=>{I.current=e}}})})})})}):(0,G.jsxs)(G.Fragment,{children:[!Se&&$.length===0&&(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:`flex-1 flex flex-col items-center justify-center border border-[var(--panel-border)]/50 border-dashed rounded-2xl p-8 py-20 text-center min-h-[350px]`,children:[(0,G.jsx)(`div`,{className:`w-16 h-16 rounded-2xl bg-accent/5 border border-accent/10 flex items-center justify-center mb-5`,children:(0,G.jsx)(b.t,{className:`w-6 h-6 text-accent/40`})}),(0,G.jsx)(`p`,{className:`text-[15px] font-bold mb-1.5 text-foreground/50`,children:`No items yet`}),(0,G.jsx)(`p`,{className:`text-[13px] font-medium text-foreground/35 max-w-xs leading-relaxed`,children:`Use the buttons above to add records or upload files to get started`})]}),!Se&&$.length>0&&(0,G.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4`,children:(0,G.jsx)(r.A,{children:$.map((e,t)=>{let n=q===e.id,i=Ce(e),o=_e?xi(e,a):null;return(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,scale:.95},transition:{delay:t*.03,duration:.25},onClick:()=>i&&Ye(e),className:`group flex flex-col bg-background border rounded-2xl p-5 transition-all relative ${i?`cursor-pointer`:``} ${n?`border-accent/40 shadow-lg ring-1 ring-accent/20`:`border-[var(--panel-border)] hover:border-accent/30 hover:shadow-lg`}`,children:[(0,G.jsxs)(`div`,{className:`absolute top-3 right-3 flex items-center gap-0.5 opacity-100 md:opacity-0 md:group-hover:opacity-100 transition-all z-10`,children:[e.recordType===`file`&&e.downloadURL&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{onClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(e.downloadURL),qe(e.id),setTimeout(()=>qe(null),2e3)},className:`p-1.5 rounded-lg text-foreground/25 hover:text-emerald-500 hover:bg-emerald-500/10 transition-all cursor-pointer`,title:`Copy Link`,children:Ke===e.id?(0,G.jsx)(r.et,{className:`w-3.5 h-3.5 text-emerald-500`}):(0,G.jsx)(c.C,{className:`w-3.5 h-3.5`})}),(0,G.jsx)(`a`,{href:e.downloadURL,target:`_blank`,rel:`noreferrer`,onClick:e=>e.stopPropagation(),className:`p-1.5 rounded-lg text-foreground/25 hover:text-blue-500 hover:bg-blue-500/10 transition-all`,title:`Download`,children:(0,G.jsx)(f.f,{className:`w-3.5 h-3.5`})})]}),i&&(0,G.jsx)(`button`,{onClick:t=>{t.stopPropagation(),Ye(e)},className:`p-1.5 rounded-lg text-foreground/25 hover:text-accent hover:bg-accent/10 transition-all cursor-pointer`,title:`Edit`,children:(0,G.jsx)(f.s,{className:`w-3.5 h-3.5`})}),i&&Te(e)&&(0,G.jsx)(`button`,{onClick:t=>{t.stopPropagation(),R(e.id)},className:`p-1.5 rounded-lg text-foreground/25 hover:text-red-500 hover:bg-red-500/10 transition-all cursor-pointer`,title:`Delete`,children:(0,G.jsx)(w.t,{className:`w-3.5 h-3.5`})})]}),(0,G.jsxs)(`div`,{className:`flex items-start gap-3 mb-3`,children:[(0,G.jsx)(`div`,{onClick:t=>{t.stopPropagation(),e.recordType===`file`&&V(e)},className:`w-9 h-9 rounded-xl flex items-center justify-center shrink-0 ${e.recordType===`file`?`cursor-pointer hover:scale-105 transition-transform ${et(e.fileType)}`:`bg-accent/10 text-accent`}`,children:e.recordType===`file`?$e(e.fileType,e.downloadURL):(0,G.jsx)(`div`,{className:`w-2 h-2 rounded-full bg-current`})}),(0,G.jsxs)(`div`,{className:`flex flex-col min-w-0 flex-1 relative`,children:[Be===e.id?(0,G.jsx)(`input`,{autoFocus:!0,type:`text`,value:He,onChange:e=>Ue(e.target.value),onBlur:()=>Xe(),onKeyDown:e=>{e.key===`Enter`&&Xe(),e.key===`Escape`&&Ve(null)},onClick:e=>e.stopPropagation(),className:`no-glow text-[14px] font-bold text-foreground bg-transparent border-b border-accent/30 outline-none pb-0.5 w-full pr-12`}):(0,G.jsx)(`span`,{className:`text-[14px] font-bold text-foreground truncate pr-12`,children:e.name}),e.recordType===`file`&&(0,G.jsx)(`div`,{className:`absolute inset-0 z-0 cursor-pointer`,onClick:()=>V(e)}),(0,G.jsx)(`span`,{className:`text-[11px] text-foreground/35 font-bold uppercase tracking-wider mt-0.5`,children:rt(e.createdAt)})]})]}),e.note&&(0,G.jsx)(`p`,{className:`text-[13px] text-foreground/55 font-medium leading-relaxed line-clamp-3 mb-1`,children:e.note}),Object.entries(e).filter(([e])=>![`name`,`note`,`uid`,`recordType`,`fileName`,`fileType`,`fileSize`,`downloadURL`,`createdAt`,`creatorName`,`creatorEmail`,`creatorAvatar`].includes(e)&&e!==`id`).slice(0,3).map(([e,t])=>(0,G.jsxs)(`div`,{className:`flex items-center gap-1.5 mt-1`,children:[(0,G.jsxs)(`span`,{className:`text-[10px] font-bold text-foreground/30 uppercase tracking-wider shrink-0`,children:[e,`:`]}),(0,G.jsx)(`span`,{className:`text-[11px] font-semibold text-foreground/60 truncate`,children:String(t)})]},e)),o&&(0,G.jsxs)(`div`,{className:`flex items-center gap-2 mt-2 pt-2 border-t border-[var(--panel-border)]/30`,children:[o.avatar?(0,G.jsx)(r.t,{src:o.avatar,alt:``,className:`w-5 h-5 rounded-full shrink-0`}):(0,G.jsx)(`div`,{className:`w-5 h-5 rounded-full bg-accent/15 text-accent flex items-center justify-center text-[8px] font-extrabold shrink-0`,children:o.name.split(` `).map(e=>e[0]).join(``).toUpperCase().slice(0,2)}),(0,G.jsx)(`span`,{className:`text-[11px] font-semibold text-foreground/40 truncate`,children:o.name})]})]},e.id)})})})]})]})]})]}),(0,G.jsx)(r.A,{children:h&&(0,G.jsxs)(`div`,{className:`fixed inset-0 z-[120] flex items-center justify-center p-4`,children:[(0,G.jsx)(r.k.div,{onClick:()=>!k&&v(!1),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/60 backdrop-blur-sm cursor-pointer`}),(0,G.jsx)(r.k.div,{initial:{opacity:0,scale:.97,y:6},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.97,y:6},transition:{duration:.2},className:`w-full max-w-[360px] border-[var(--panel-border)] border rounded-2xl relative z-10 glass-panel shadow-2xl bg-background overflow-hidden`,children:P?W.default.createElement(P,{onSave:async e=>{j(!0);try{await Pe(e),v(!1)}catch(e){console.error(`Error saving record:`,e)}j(!1)},onClose:()=>!k&&v(!1),saving:k}):(0,G.jsxs)(`form`,{onSubmit:Fe,className:`p-5 flex flex-col gap-3`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between mb-1`,children:[(0,G.jsx)(`span`,{className:`text-[14px] font-bold text-foreground`,children:`New Record`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>!k&&v(!1),className:`text-foreground/30 hover:text-foreground/60 transition-colors cursor-pointer p-0.5`,children:(0,G.jsx)(T.t,{className:`w-4 h-4`})})]}),(0,G.jsx)(`input`,{autoFocus:!0,type:`text`,required:!0,value:y,onChange:e=>x(e.target.value),placeholder:`Name *`,disabled:k,className:`w-full bg-foreground/[0.03] border border-[var(--panel-border)] px-3.5 py-2.5 text-[13px] font-semibold text-foreground outline-none focus:border-accent transition-colors placeholder:text-foreground/30`,style:{borderRadius:`var(--input-radius, 0.75rem)`}}),(0,G.jsx)(r.T,{value:S,onChange:e=>D(e.target.value),placeholder:`Note (optional)`,disabled:k,rows:2,className:`w-full bg-foreground/[0.03] border border-[var(--panel-border)] px-3.5 py-2.5 text-[13px] font-medium text-foreground outline-none focus:border-accent transition-colors placeholder:text-foreground/30 resize-none`,style:{borderRadius:`var(--input-radius, 0.75rem)`}}),(0,G.jsx)(`div`,{className:`flex justify-end pt-1`,children:(0,G.jsx)(O.t,{type:`submit`,isLoading:k,className:`px-5 py-2 text-[12px] font-bold shadow-md`,children:k?`Saving…`:`Save`})})]})})]})}),typeof window<`u`&&(0,J.createPortal)((0,G.jsx)(r.A,{children:H&&(0,G.jsxs)(`div`,{className:`fixed inset-0 z-[9999] flex items-center justify-center p-4 md:p-12`,children:[(0,G.jsx)(r.k.div,{onClick:()=>V(null),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/95 backdrop-blur-xl cursor-pointer`}),(0,G.jsx)(`button`,{onClick:()=>V(null),className:`absolute top-6 right-6 z-[160] w-12 h-12 bg-foreground/10 hover:bg-foreground/20 text-foreground rounded-full flex items-center justify-center backdrop-blur-md transition-all cursor-pointer outline-none`,children:(0,G.jsx)(T.t,{className:`w-5 h-5`})}),(0,G.jsxs)(r.k.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},className:`relative z-10 w-full max-w-6xl max-h-[85vh] flex flex-col pointer-events-auto shadow-2xl rounded-3xl overflow-hidden glass-panel border border-[var(--panel-border)]`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between p-6 bg-background/80 backdrop-blur-md border-b border-[var(--panel-border)] shrink-0 shadow-sm z-20`,children:[(0,G.jsxs)(`div`,{className:`flex flex-col min-w-0 pr-4`,children:[(0,G.jsx)(`span`,{className:`text-xl font-bold text-foreground truncate`,children:H.fileName||H.name}),(0,G.jsxs)(`span`,{className:`text-[12px] text-foreground/70 font-bold uppercase tracking-wider mt-1`,children:[tt(H.fileType),` • `,nt(H.fileSize||0)]})]}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,G.jsx)(`button`,{onClick:()=>{navigator.clipboard.writeText(H.downloadURL),qe(`preview`),setTimeout(()=>qe(null),2e3)},className:`p-2.5 bg-foreground/5 hover:bg-foreground/10 text-foreground/70 transition-colors rounded-xl shadow-sm hover:text-emerald-500 cursor-pointer`,title:`Copy Link`,children:Ke===`preview`?(0,G.jsx)(r.et,{className:`w-4 h-4 text-emerald-500`}):(0,G.jsx)(c.C,{className:`w-4 h-4`})}),(0,G.jsx)(`button`,{onClick:()=>{V(null),Ve(H.id),Ue(H.name)},className:`p-2.5 bg-foreground/5 hover:bg-foreground/10 text-foreground/70 hover:text-accent transition-colors rounded-xl shadow-sm cursor-pointer`,title:`Rename`,children:(0,G.jsx)(f.s,{className:`w-4 h-4`})}),(0,G.jsx)(`button`,{onClick:()=>{V(null),R(H.id)},className:`p-2.5 bg-red-500/10 hover:bg-red-500/20 text-red-500 transition-colors rounded-xl shadow-sm cursor-pointer`,title:`Delete`,children:(0,G.jsx)(w.t,{className:`w-4 h-4`})}),(0,G.jsx)(`a`,{href:H.downloadURL,download:!0,target:`_blank`,rel:`noreferrer`,className:`p-2.5 btn-primary transition-colors rounded-xl shadow-lg ml-1`,title:`Download`,children:(0,G.jsx)(f.f,{className:`w-4 h-4`})})]})]}),(0,G.jsx)(`div`,{className:`flex-1 w-full relative bg-foreground/[0.02] min-h-[50vh] md:min-h-[600px]`,onClick:()=>V(null),children:(0,G.jsxs)(`div`,{className:`absolute inset-x-4 inset-y-8 md:inset-x-12 md:inset-y-12 flex items-center justify-center`,children:[oe&&(0,G.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center rounded-lg z-50 pointer-events-none`,children:(0,G.jsx)(`div`,{className:`w-12 h-12 rounded-full bg-background/80 backdrop-blur-md shadow-xl flex items-center justify-center border border-[var(--panel-border)]/50`,children:(0,G.jsx)(_.n,{className:`w-5 h-5 text-accent animate-spin`})})}),H.fileType?.startsWith(`image/`)?(0,G.jsx)(`img`,{onLoad:()=>U(!1),onError:()=>U(!1),src:H.downloadURL,alt:H.fileName||H.name,className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-auto h-auto max-w-full max-h-full object-contain drop-shadow-[0_0_40px_rgba(0,0,0,0.5)] rounded-lg pointer-events-auto transition-opacity duration-500 ${oe?`opacity-0`:`opacity-100`}`,onClick:e=>e.stopPropagation()}):H.fileType?.startsWith(`video/`)?(0,G.jsx)(`video`,{onLoadedData:()=>U(!1),onError:()=>U(!1),src:H.downloadURL,controls:!0,autoPlay:!0,className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-auto h-auto max-w-full max-h-full outline-none bg-black/40 rounded-lg pointer-events-auto drop-shadow-[0_0_40px_rgba(0,0,0,0.5)] transition-opacity duration-500 ${oe?`opacity-0`:`opacity-100`}`,onClick:e=>e.stopPropagation()}):H.fileType===`application/pdf`?(0,G.jsx)(`iframe`,{onLoad:()=>U(!1),src:H.downloadURL,className:`w-full h-full border-none rounded-lg relative z-10 transition-opacity duration-500 ${oe?`opacity-0`:`opacity-100`}`,style:{backgroundColor:`white`},title:`PDF Preview`,onClick:e=>e.stopPropagation()}):(0,G.jsxs)(`div`,{className:`w-full h-full flex flex-col items-center justify-center text-foreground/40 text-center relative z-10`,onClick:e=>{e.stopPropagation(),U(!1)},children:[(0,G.jsx)(f.d,{className:`w-24 h-24 mb-6 opacity-40 drop-shadow-sm`}),(0,G.jsx)(`span`,{className:`text-[20px] font-extrabold text-foreground`,children:`Preview Unavailable`}),(0,G.jsx)(`span`,{className:`text-[14px] mt-2 text-foreground/60 font-medium max-w-xs`,children:`This file format cannot be previewed. Please download it instead.`})]})]})})]})]})}),document.body),(0,G.jsx)(r.A,{children:q&&(0,G.jsxs)(`div`,{className:`fixed inset-0 z-[120] flex items-center justify-center p-4`,children:[(0,G.jsx)(r.k.div,{onClick:()=>Ze(),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/60 backdrop-blur-sm cursor-pointer`}),(0,G.jsx)(r.k.div,{initial:{opacity:0,scale:.97,y:6},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.97,y:6},transition:{duration:.2},className:`w-full max-w-[440px] border-[var(--panel-border)] border rounded-2xl relative z-10 glass-panel shadow-2xl bg-background overflow-hidden`,children:(0,G.jsxs)(`div`,{className:`p-5 flex flex-col gap-3 max-h-[80vh] overflow-y-auto`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between mb-2 mt-2 px-1`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(`span`,{className:`text-[14px] font-bold text-foreground`,children:`Edit Record`}),k&&(0,G.jsx)(_.n,{className:`w-3 h-3 animate-spin text-foreground/40`})]}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>Ze(),className:`text-foreground/30 hover:text-foreground/60 transition-colors cursor-pointer`,children:(0,G.jsx)(T.t,{className:`w-4 h-4`})})]}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-0 max-h-[70vh] overflow-y-auto no-scrollbar px-1`,children:[(0,G.jsxs)(`div`,{className:`flex flex-col relative group/field`,children:[(0,G.jsx)(`input`,{readOnly:!0,value:`NAME`,className:`no-glow bg-transparent text-[10px] font-bold text-foreground/30 uppercase tracking-[0.15em] outline-none pt-3 pb-0.5`}),(0,G.jsx)(`input`,{autoFocus:!0,required:!0,value:X,onChange:e=>le(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},onBlur:()=>Qe(),placeholder:`Name *`,className:`no-glow bg-transparent text-[13px] font-medium text-foreground outline-none placeholder:text-foreground/15 pb-1 caret-foreground/50`}),(0,G.jsx)(`div`,{className:`border-b border-dashed border-[var(--panel-border)]/60`})]}),(0,G.jsxs)(`div`,{className:`flex flex-col relative group/field`,children:[(0,G.jsx)(`input`,{readOnly:!0,value:`NOTE`,className:`no-glow bg-transparent text-[10px] font-bold text-foreground/30 uppercase tracking-[0.15em] outline-none pt-3 pb-0.5`}),(0,G.jsx)(r.T,{value:Z,onChange:e=>ue(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),e.target.blur())},onBlur:()=>Qe(),placeholder:`Add a note...`,rows:1,className:`no-glow bg-transparent text-[13px] font-medium text-foreground outline-none placeholder:text-foreground/15 pb-1 caret-foreground/50 resize-none overflow-hidden`}),(0,G.jsx)(`div`,{className:`border-b border-dashed border-[var(--panel-border)]/60`})]}),de.map((e,t)=>(0,G.jsxs)(`div`,{className:`flex flex-col relative group/field`,children:[(0,G.jsx)(`input`,{placeholder:`FIELD NAME`,value:e.key,onChange:e=>{let n=[...de];n[t].key=e.target.value,fe(n)},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},onBlur:()=>Qe(),className:`no-glow bg-transparent text-[10px] font-bold text-foreground/30 uppercase tracking-[0.15em] outline-none placeholder:text-foreground/15 pt-3 pb-0.5 caret-foreground/40`}),(0,G.jsx)(`input`,{placeholder:`Field value...`,value:e.value,onChange:e=>{let n=[...de];n[t].value=e.target.value,fe(n)},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},onBlur:()=>Qe(),className:`no-glow bg-transparent text-[13px] font-medium text-foreground outline-none placeholder:text-foreground/15 pt-1.5 pb-1 caret-foreground/50`}),(0,G.jsx)(`div`,{className:`border-b border-dashed border-[var(--panel-border)]/60`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>fe(de.filter((e,n)=>n!==t)),className:`absolute top-3 right-0 p-1 text-foreground/0 group-hover/field:text-foreground/20 hover:!text-red-400 transition-colors cursor-pointer`,children:(0,G.jsx)(T.t,{className:`w-3 h-3`})})]},t)),(0,G.jsxs)(`button`,{type:`button`,onClick:()=>fe([...de,{key:``,value:``}]),className:`flex items-center gap-1.5 text-[11px] font-medium text-foreground/25 hover:text-foreground/40 transition-colors cursor-pointer mt-4 mb-4`,children:[(0,G.jsx)(b.t,{className:`w-3 h-3`}),` Add Field`]})]})]})})]})}),(0,G.jsx)(re.t,{isOpen:!!L,onCancel:()=>R(null),onConfirm:ze,title:`Delete Record`,message:(0,G.jsxs)(G.Fragment,{children:[`Are you sure you want to delete `,(0,G.jsx)(`strong`,{className:`text-foreground font-extrabold break-words mx-1`,children:$.find(e=>e.id===L)?.name}),` This action cannot be undone.`]}),confirmText:`Delete`,isProcessing:se})]})}var Fo=({record:e})=>{let t=e.creatorName||e.creatorEmail?.split(`@`)[0]||`Admin`,n=e.creatorEmail||``,i=e.creatorAvatar||``,a=t.split(` `).map(e=>e[0]).join(``).toUpperCase().slice(0,2);return(0,G.jsxs)(`div`,{className:`flex items-center gap-2 mt-2 pt-2 border-t border-[var(--panel-border)]/30`,children:[i?(0,G.jsx)(r.t,{src:i,alt:``,className:`w-5 h-5 rounded-full shrink-0`}):(0,G.jsx)(`div`,{className:`w-5 h-5 rounded-full bg-accent/15 text-accent flex items-center justify-center text-[8px] font-extrabold shrink-0`,children:a}),(0,G.jsxs)(`div`,{className:`flex items-center gap-1 min-w-0 flex-1`,children:[(0,G.jsx)(`span`,{className:`text-[11px] font-semibold text-foreground/40 truncate`,children:t}),n&&(0,G.jsxs)(`span`,{className:`text-[10px] text-foreground/25 truncate`,children:[`· `,n]})]})]})};function Io({config:e,customContent:t}){let{user:a}=n.Q(),{config:o}=i.L(),[s,l]=(0,W.useState)([]),[u,d]=(0,W.useState)(!0),[p,m]=(0,W.useState)(!1),[h,v]=(0,W.useState)(``),[y,x]=(0,W.useState)(``),[S,C]=(0,W.useState)(!1),[D,k]=(0,W.useState)(``),[j,M]=(0,W.useState)(null),N=(0,W.useRef)(null),[P,F]=(0,W.useState)(null),[te,I]=(0,W.useState)(null),L=e=>{if(I(e),e){let t=e.fileType||``;z(t.startsWith(`image/`)||t.startsWith(`video/`)||t===`application/pdf`)}},R=te,[ne,z]=(0,W.useState)(!0),[ae,V]=(0,W.useState)(!1),[H,oe]=(0,W.useState)(null),[U,se]=(0,W.useState)(``),[ce,q]=(0,W.useState)(``),[Y,X]=(0,W.useState)([]),le=(0,W.useRef)(null),[Z,ue]=(0,W.useState)(null),de=(0,W.useRef)([]),fe=`admin_${ie.o(e,`admin_page`)}_records`,pe=B.i(`admin_`);(0,W.useEffect)(()=>{document.title=e.tabTitle||e.tabName||o.appName||`Your AI Firebase`},[e.tabTitle,e.tabName,o.appName]);let me=()=>({name:a.displayName||a.email?.split(`@`)[0]||`Admin`,email:a.email||``,avatar:a.photoURL||``}),he=a?.uid;(0,W.useEffect)(()=>{if(!he)return;try{let e=g.o(fe,he);e?(l(e),d(!1)):d(!0)}catch{}let e=e=>vo(e),t=(0,K.onSnapshot)((0,K.query)((0,K.collection)(r.bt,fe),(0,K.orderBy)(`createdAt`,`desc`),(0,K.limit)(150)),t=>{let n=e(t.docs);l(n),d(!1),g.s(fe,he,n)},e=>{console.warn(`${fe}: this account cannot read the records here (${e?.code||`permission-denied`}). An admins page needs a verified address and an account marked Admin on the Users screen.`),l(e=>e.length?[]:e),d(!1)});return()=>t()},[he,fe]);let ge=async e=>{if(e.preventDefault(),!(!a||!h.trim())){C(!0);try{let e=me();await(0,K.addDoc)((0,K.collection)(r.bt,fe),{name:h.trim(),note:y.trim(),uid:a.uid,recordType:`record`,creatorName:e.name,creatorEmail:e.email,creatorAvatar:e.avatar,createdAt:(0,K.serverTimestamp)()}),v(``),x(``),m(!1)}catch(e){console.error(`Error saving admin record:`,e)}C(!1)}},_e=c.b({upload:async(e,t)=>{if(!a)throw Error(`Sign in again before uploading.`);let n=await A._(e),i=`${pe}/${c.h(n.name)}`,o=await c.y(i,n,{customMetadata:{ownerId:a.uid},onProgress:t.progress,signal:t.signal});if(N.current)N.current(n,o,{uid:a.uid,storagePath:i});else{let e=me();await(0,K.addDoc)((0,K.collection)(r.bt,fe),{name:n.name,note:`${n.type||`File`} · ${Me(n.size)}`,uid:a.uid,recordType:`file`,fileName:n.name,fileType:n.type||`unknown`,fileSize:n.size,downloadURL:o,storagePath:i,creatorName:e.name,creatorEmail:e.email,creatorAvatar:e.avatar,createdAt:(0,K.serverTimestamp)()})}},onFailed:e=>k(`${e.name}: ${e.error||`That upload did not work.`}`),onSettled:()=>_e.clear()}),Q=_e.busy,ve=e=>{let t=Array.from(e.target.files||[]);e.target.value=``,!(!t.length||!a)&&(k(``),_e.add(t))},ye=async()=>{if(P){V(!0);try{let e=s.find(e=>e.id===P);await(0,K.deleteDoc)((0,K.doc)(r.bt,fe,P)),await B.o(e,s,pe),F(null)}catch(e){console.error(`Error deleting admin record:`,e)}V(!1)}},[be,xe]=(0,W.useState)(null),[$,Se]=(0,W.useState)(``),[Ce,we]=(0,W.useState)(!1),Te=e=>{if(e.recordType===`file`){xe(e.id),Se(e.name);return}oe(e.id),se(e.name),q(e.note||``);let t=[`name`,`note`,`uid`,`recordType`,`fileName`,`fileType`,`fileSize`,`downloadURL`,`storagePath`,`createdAt`,`creatorName`,`creatorEmail`,`creatorAvatar`],n=Object.entries(e).filter(([e])=>!t.includes(e)&&e!==`id`).map(([e,t])=>({key:e,value:String(t??``)}));X(n),de.current=n.map(e=>e.key)},Ee=async()=>{if(!be||!$.trim()){xe(null);return}let e=s.find(e=>e.id===be);if(e&&e.name===$.trim()){xe(null);return}we(!0);try{await(0,K.updateDoc)((0,K.doc)(r.bt,fe,be),{name:$.trim()}),l(e=>e.map(e=>e.id===be?{...e,name:$.trim()}:e))}catch(e){console.error(`Error renaming file:`,e)}we(!1),xe(null)},De=async()=>{if(!H||!U.trim()){oe(null);return}C(!0);let e={};Y.forEach(({key:t,value:n})=>{t.trim()&&(e[t.trim()]=n)});let t=Y.map(e=>e.key.trim()).filter(Boolean),n=de.current.filter(e=>!t.includes(e));n.forEach(t=>{e[t]=(0,K.deleteField)()});try{await(0,K.updateDoc)((0,K.doc)(r.bt,fe,H),{name:U.trim(),note:ce.trim(),...e}),l(e=>e.map(e=>{if(e.id!==H)return e;let t={...e,name:U.trim(),note:ce.trim()};return n.forEach(e=>{delete t[e]}),Y.forEach(({key:e,value:n})=>{e.trim()&&(t[e.trim()]=n)}),t})),de.current=t}catch(e){console.error(`Error updating record:`,e)}C(!1),oe(null)},Oe=async()=>{if(!H||!U.trim())return;let e={};Y.forEach(({key:t,value:n})=>{t.trim()&&(e[t.trim()]=n)});let t=Y.map(e=>e.key.trim()).filter(Boolean),n=de.current.filter(e=>!t.includes(e));n.forEach(t=>{e[t]=(0,K.deleteField)()});try{await(0,K.updateDoc)((0,K.doc)(r.bt,fe,H),{name:U.trim(),note:ce.trim(),...e}),l(e=>e.map(e=>{if(e.id!==H)return e;let t={...e,name:U.trim(),note:ce.trim()};return n.forEach(e=>{delete t[e]}),Y.forEach(({key:e,value:n})=>{e.trim()&&(t[e.trim()]=n)}),t})),de.current=t}catch(e){console.error(`Error silently saving record:`,e)}},ke=(e,t)=>e?e.startsWith(`image/`)?t?(0,G.jsx)(`div`,{className:`w-9 h-9 rounded-xl bg-cover bg-center shrink-0`,style:{backgroundImage:`url(${t})`}}):(0,G.jsx)(f.l,{className:`w-4 h-4`}):e.startsWith(`video/`)||e.startsWith(`audio/`)?(0,G.jsx)(c.S,{className:`w-4 h-4`}):e.includes(`pdf`)||e.includes(`word`)||e.includes(`text`)?(0,G.jsx)(f.d,{className:`w-4 h-4`}):e.includes(`zip`)||e.includes(`rar`)||e.includes(`archive`)?(0,G.jsx)(c.T,{className:`w-4 h-4`}):e.includes(`html`)||e.includes(`csv`)||e.includes(`json`)?(0,G.jsx)(c.w,{className:`w-4 h-4`}):(0,G.jsx)(f.u,{className:`w-4 h-4`}):(0,G.jsx)(f.d,{className:`w-4 h-4`}),Ae=e=>e?e.startsWith(`image/`)?`bg-emerald-500/10 text-emerald-500`:e.startsWith(`video/`)||e.startsWith(`audio/`)?`bg-accent/10 text-accent`:e.includes(`pdf`)||e.includes(`word`)||e.includes(`text`)?`bg-blue-500/10 text-blue-500`:e.includes(`zip`)||e.includes(`rar`)||e.includes(`archive`)?`bg-yellow-500/10 text-yellow-500`:e.includes(`html`)||e.includes(`csv`)||e.includes(`json`)?`bg-emerald-500/10 text-emerald-500`:`bg-foreground/5 text-foreground/40`:`bg-foreground/5 text-foreground/40`,je=e=>{if(!e)return`FILE`;let t={"application/pdf":`PDF`,"application/zip":`ZIP`,"application/x-zip-compressed":`ZIP`,"application/x-rar-compressed":`RAR`,"application/x-7z-compressed":`7Z`,"application/json":`JSON`,"application/xml":`XML`,"application/javascript":`JS`,"application/typescript":`TS`,"application/msword":`DOC`,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":`DOCX`,"application/vnd.ms-excel":`XLS`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":`XLSX`,"application/vnd.ms-powerpoint":`PPT`,"application/vnd.openxmlformats-officedocument.presentationml.presentation":`PPTX`,"application/rtf":`RTF`,"application/x-tar":`TAR`,"application/gzip":`GZ`,"text/plain":`TXT`,"text/html":`HTML`,"text/css":`CSS`,"text/csv":`CSV`,"text/markdown":`MD`},n=e.toLowerCase();if(t[n])return t[n];let r=n.split(`/`);return r[r.length-1].replace(/^x-/,``).replace(/^vnd\..*\./,``).toUpperCase().slice(0,10)},Me=e=>{if(!e)return`0 B`;let t=1024,n=[`B`,`KB`,`MB`,`GB`],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/t**+r).toFixed(2))+` `+n[r]},Ne=e=>{if(!e)return``;let t=e.toMillis?e.toMillis():e;return new Date(t).toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`})},Pe=n.B(e.buttonStorageIcon)||ht,Fe=e.buttonStyle!==`secondary`,Ie=e.buttonStorageStyle===`primary`,Le=e=>e.uid===a?.uid;return(0,G.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,G.jsx)(r.k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-6 flex items-center justify-between`,children:(0,G.jsxs)(`div`,{children:[(0,G.jsx)(n.t,{children:e.tabTitle||e.tabName||`Admin Page`}),e.route&&(0,G.jsxs)(`div`,{className:`flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,G.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),e.route]})]})}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-6 flex-1 pb-16`,children:[(0,G.jsx)(i.t,{}),(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:t?`flex flex-col flex-1 relative`:`flex flex-col glass-panel border border-[var(--panel-border)] rounded-3xl overflow-hidden flex-1 shadow-2xl bg-background`,children:[(0,G.jsx)(`input`,{type:`file`,multiple:!0,ref:le,onChange:ve,className:`hidden`}),!t&&(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3 sm:gap-4 p-4 sm:p-6 md:px-8 md:py-6 border-b border-[var(--panel-border)]/50 bg-background/50 shrink-0`,children:[(0,G.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,G.jsx)(`h2`,{className:`text-xl font-bold text-foreground tracking-tight truncate`,children:e.tabTitle||e.tabName||`Dashboard`}),(0,G.jsx)(`p`,{className:`text-[13px] font-medium text-foreground/50 mt-1`,children:u?`Loading…`:`${s.length} ${s.length===1?`item`:`items`}`}),D&&(0,G.jsx)(`p`,{className:`text-[12px] font-semibold text-red-500 mt-1 truncate`,role:`alert`,children:D})]}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[e.storage!==!1&&(0,G.jsx)(G.Fragment,{children:(0,G.jsxs)(r.k.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>le.current?.click(),title:Q?_e.done?`${_e.done} of ${_e.total} uploaded…`:`Uploading ${_e.total===1?`your file`:`${_e.total} files`}…`:e.buttonStorageText||`Upload files`,className:`h-10 flex items-center justify-center gap-2 rounded-xl transition-all duration-300 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed ${e.buttonStorageText?`px-4`:`w-10`} ${Ie?`btn-primary`:`btn-secondary`}`,children:[Q?(0,G.jsx)(_.n,{className:`w-4 h-4 animate-spin`}):(0,G.jsx)(Pe,{className:`w-4 h-4`}),e.buttonStorageText&&(0,G.jsx)(`span`,{className:`text-[13px] font-bold`,children:e.buttonStorageText})]})}),e.showButton!==!1&&(0,G.jsx)(r.k.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>m(!0),title:`Add New`,className:`h-10 flex items-center justify-center gap-2 rounded-xl transition-all duration-300 cursor-pointer ${e.buttonText&&e.buttonText!==`+`?`px-5`:`w-10`} ${Fe?`btn-primary`:`btn-secondary`}`,children:e.buttonText===`+`||!e.buttonText?(0,G.jsx)(b.t,{className:`w-4 h-4`}):(0,G.jsx)(`span`,{className:`text-[13px] font-bold`,children:e.buttonText})})]})]}),(0,G.jsxs)(`div`,{className:t?`flex-1 flex flex-col relative min-h-[400px]`:`p-6 md:p-8 flex-1 overflow-y-auto relative min-h-[400px]`,children:[u&&(0,G.jsx)(`div`,{className:`absolute inset-0 z-10 flex items-center justify-center bg-background/50 backdrop-blur-sm`,children:(0,G.jsx)(_.n,{className:`w-8 h-8 text-accent animate-spin`})}),t?(0,G.jsx)(c.p,{value:{prefix:`admin_`,collection:fe},children:(0,G.jsx)(`div`,{className:`fbos-content-slot fbos-tab-fill`,children:(0,G.jsx)(E.p,{size:`part`,children:(0,G.jsx)(ee.t,{config:e,children:(0,G.jsx)(t,{config:e,actions:{records:s,loading:u,collection:fe,user:a,saveRecord:async(e,t)=>{let n=Oo(yo(ho(e,t))),i=bo(n);if(i&&(s.some(e=>e.id===i)||await(0,K.getDoc)((0,K.doc)(r.bt,fe,i)).then(e=>e.exists()).catch(()=>!1)))return i;let o=i?(0,K.doc)(r.bt,fe,i):(0,K.doc)((0,K.collection)(r.bt,fe)),c=me(),u={uid:a.uid,recordType:`record`,creatorName:c.name,creatorEmail:c.email,creatorAvatar:c.avatar,createdAt:Date.now(),...n,id:o.id};l(e=>[u,...e.filter(e=>e.id!==u.id)]);let d={uid:a.uid,recordType:`record`,creatorName:c.name,creatorEmail:c.email,creatorAvatar:c.avatar,createdAt:(0,K.serverTimestamp)(),...n};return await(0,K.setDoc)(o,d),g.p(fe,o.id,d),o.id},updateRecord:async(e,t,n)=>{let{id:i,data:o}=go(e,t,n),c=yo(o),u={...yi(a),...Oo(c,s.find(e=>e.id===i))};l(e=>e.map(e=>e.id===i?{...e,...u}:e)),await(0,K.updateDoc)((0,K.doc)(r.bt,fe,i),u);let d=s.find(e=>e.id===i);d&&g.p(fe,i,{...d,...u})},deleteRecord:async(e,t)=>{let n=_o(e,t),i=s.find(e=>e.id===n);await(0,K.deleteDoc)((0,K.doc)(r.bt,fe,n)),g.m(fe,n),await B.o(i,s,pe)},startEdit:e=>Te(e),confirmDelete:e=>F(e),uploadFile:()=>le.current?.click(),openAddForm:()=>m(!0),setAddForm:e=>M(()=>e),setFileHandler:e=>{N.current=e}}})})})})}):(0,G.jsxs)(G.Fragment,{children:[!u&&s.length===0&&(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:`flex-1 flex flex-col items-center justify-center border border-[var(--panel-border)]/50 border-dashed rounded-2xl p-8 py-20 text-center min-h-[350px]`,children:[(0,G.jsx)(`div`,{className:`w-16 h-16 rounded-2xl bg-accent/5 border border-accent/10 flex items-center justify-center mb-5`,children:(0,G.jsx)(b.t,{className:`w-6 h-6 text-accent/40`})}),(0,G.jsx)(`p`,{className:`text-[15px] font-bold mb-1.5 text-foreground/50`,children:`No items yet`}),(0,G.jsx)(`p`,{className:`text-[13px] font-medium text-foreground/35 max-w-xs leading-relaxed`,children:`Use the buttons above to add records or upload files. All admins can view and contribute.`})]}),!u&&s.length>0&&(0,G.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4`,children:(0,G.jsx)(r.A,{children:s.map((e,t)=>{let n=H===e.id,i=Le(e);return(0,G.jsxs)(r.k.div,{initial:!1,animate:{opacity:1,y:0},exit:{opacity:0,scale:.95},onClick:()=>Te(e),className:`group flex flex-col bg-background border rounded-2xl p-5 transition-all relative cursor-pointer ${n?`border-accent/40 shadow-lg ring-1 ring-accent/20`:`border-[var(--panel-border)] hover:border-accent/30 hover:shadow-lg`}`,children:[(0,G.jsxs)(`div`,{className:`absolute top-3 right-3 flex items-center gap-0.5 opacity-100 md:opacity-0 md:group-hover:opacity-100 transition-all z-10`,children:[e.recordType===`file`&&e.downloadURL&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{onClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(e.downloadURL),ue(e.id),setTimeout(()=>ue(null),2e3)},className:`p-1.5 rounded-lg text-foreground/25 hover:text-emerald-500 hover:bg-emerald-500/10 transition-all cursor-pointer`,title:`Copy Link`,children:Z===e.id?(0,G.jsx)(r.et,{className:`w-3.5 h-3.5 text-emerald-500`}):(0,G.jsx)(c.C,{className:`w-3.5 h-3.5`})}),(0,G.jsx)(`a`,{href:e.downloadURL,target:`_blank`,rel:`noreferrer`,onClick:e=>e.stopPropagation(),className:`p-1.5 rounded-lg text-foreground/25 hover:text-blue-500 hover:bg-blue-500/10 transition-all`,title:`Download`,children:(0,G.jsx)(f.f,{className:`w-3.5 h-3.5`})})]}),i&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{onClick:t=>{t.stopPropagation(),Te(e)},className:`p-1.5 rounded-lg text-foreground/25 hover:text-accent hover:bg-accent/10 transition-all cursor-pointer`,title:`Edit`,children:(0,G.jsx)(f.s,{className:`w-3.5 h-3.5`})}),(0,G.jsx)(`button`,{onClick:t=>{t.stopPropagation(),F(e.id)},className:`p-1.5 rounded-lg text-foreground/25 hover:text-red-500 hover:bg-red-500/10 transition-all cursor-pointer`,title:`Delete`,children:(0,G.jsx)(w.t,{className:`w-3.5 h-3.5`})})]})]}),(0,G.jsxs)(`div`,{className:`flex items-start gap-3 mb-2`,children:[(0,G.jsx)(`div`,{onClick:t=>{t.stopPropagation(),e.recordType===`file`&&L(e)},className:`w-9 h-9 rounded-xl flex items-center justify-center shrink-0 ${e.recordType===`file`?`cursor-pointer hover:scale-105 transition-transform ${Ae(e.fileType)}`:`bg-accent/10 text-accent`}`,children:e.recordType===`file`?ke(e.fileType,e.downloadURL):(0,G.jsx)(`div`,{className:`w-2 h-2 rounded-full bg-current`})}),(0,G.jsxs)(`div`,{className:`flex flex-col min-w-0 flex-1 relative`,children:[be===e.id?(0,G.jsx)(`input`,{autoFocus:!0,type:`text`,value:$,onChange:e=>Se(e.target.value),onBlur:()=>Ee(),onKeyDown:e=>{e.key===`Enter`&&Ee(),e.key===`Escape`&&xe(null)},onClick:e=>e.stopPropagation(),className:`no-glow text-[14px] font-bold text-foreground bg-transparent border-b border-accent/30 outline-none pb-0.5 w-full pr-12`}):(0,G.jsx)(`span`,{className:`text-[14px] font-bold text-foreground truncate pr-12`,children:e.name}),e.recordType===`file`&&(0,G.jsx)(`div`,{className:`absolute inset-0 z-0 cursor-pointer`,onClick:()=>L(e)}),(0,G.jsx)(`span`,{className:`text-[11px] text-foreground/35 font-bold uppercase tracking-wider mt-0.5`,children:Ne(e.createdAt)})]})]}),e.note&&(0,G.jsx)(`p`,{className:`text-[13px] text-foreground/55 font-medium leading-relaxed line-clamp-3 mb-1`,children:e.note}),Object.entries(e).filter(([e])=>![`name`,`note`,`uid`,`recordType`,`fileName`,`fileType`,`fileSize`,`downloadURL`,`createdAt`,`creatorName`,`creatorEmail`,`creatorAvatar`].includes(e)&&e!==`id`).slice(0,3).map(([e,t])=>(0,G.jsxs)(`div`,{className:`flex items-center gap-1.5 mt-1`,children:[(0,G.jsxs)(`span`,{className:`text-[10px] font-bold text-foreground/30 uppercase tracking-wider shrink-0`,children:[e,`:`]}),(0,G.jsx)(`span`,{className:`text-[11px] font-semibold text-foreground/60 truncate`,children:String(t)})]},e)),(0,G.jsx)(Fo,{record:e})]},e.id)})})})]})]})]})]}),(0,G.jsx)(r.A,{children:p&&(0,G.jsxs)(`div`,{className:`fixed inset-0 z-[120] flex items-center justify-center p-4`,children:[(0,G.jsx)(r.k.div,{onClick:()=>!S&&m(!1),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/60 backdrop-blur-sm cursor-pointer`}),(0,G.jsx)(r.k.div,{initial:{opacity:0,scale:.97,y:6},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.97,y:6},transition:{duration:.2},className:`w-full max-w-[360px] border-[var(--panel-border)] border rounded-2xl relative z-10 glass-panel shadow-2xl bg-background overflow-hidden`,children:j?W.default.createElement(j,{onSave:async e=>{C(!0);try{let t=me();await(0,K.addDoc)((0,K.collection)(r.bt,fe),{uid:a.uid,recordType:`record`,creatorName:t.name,creatorEmail:t.email,creatorAvatar:t.avatar,createdAt:(0,K.serverTimestamp)(),...e}),m(!1)}catch(e){console.error(`Error saving record:`,e)}C(!1)},onClose:()=>!S&&m(!1),saving:S}):(0,G.jsxs)(`form`,{onSubmit:ge,className:`p-5 flex flex-col gap-3`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between mb-1`,children:[(0,G.jsx)(`span`,{className:`text-[14px] font-bold text-foreground`,children:`New Record`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>!S&&m(!1),className:`text-foreground/30 hover:text-foreground/60 transition-colors cursor-pointer p-0.5`,children:(0,G.jsx)(T.t,{className:`w-4 h-4`})})]}),(0,G.jsx)(`input`,{autoFocus:!0,type:`text`,required:!0,value:h,onChange:e=>v(e.target.value),placeholder:`Name *`,disabled:S,className:`w-full bg-foreground/[0.03] border border-[var(--panel-border)] px-3.5 py-2.5 text-[13px] font-semibold text-foreground outline-none focus:border-accent transition-colors placeholder:text-foreground/30`,style:{borderRadius:`var(--input-radius, 0.75rem)`}}),(0,G.jsx)(r.T,{value:y,onChange:e=>x(e.target.value),placeholder:`Note (optional)`,disabled:S,rows:2,className:`w-full bg-foreground/[0.03] border border-[var(--panel-border)] px-3.5 py-2.5 text-[13px] font-medium text-foreground outline-none focus:border-accent transition-colors placeholder:text-foreground/30 resize-none`,style:{borderRadius:`var(--input-radius, 0.75rem)`}}),(0,G.jsx)(`div`,{className:`flex justify-end pt-1`,children:(0,G.jsx)(O.t,{type:`submit`,isLoading:S,className:`px-5 py-2 text-[12px] font-bold shadow-md`,children:S?`Saving…`:`Save`})})]})})]})}),typeof window<`u`&&(0,J.createPortal)((0,G.jsx)(r.A,{children:R&&(0,G.jsxs)(`div`,{className:`fixed inset-0 z-[9999] flex items-center justify-center p-4 md:p-12`,children:[(0,G.jsx)(r.k.div,{onClick:()=>L(null),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/95 backdrop-blur-xl cursor-pointer`}),(0,G.jsx)(`button`,{onClick:()=>L(null),className:`absolute top-6 right-6 z-[160] w-12 h-12 bg-foreground/10 hover:bg-foreground/20 text-foreground rounded-full flex items-center justify-center backdrop-blur-md transition-all cursor-pointer outline-none`,children:(0,G.jsx)(T.t,{className:`w-5 h-5`})}),(0,G.jsxs)(r.k.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},className:`relative z-10 w-full max-w-6xl max-h-[85vh] flex flex-col pointer-events-auto shadow-2xl rounded-3xl overflow-hidden glass-panel border border-[var(--panel-border)]`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between p-6 bg-background/80 backdrop-blur-md border-b border-[var(--panel-border)] shrink-0 shadow-sm z-20`,children:[(0,G.jsxs)(`div`,{className:`flex flex-col min-w-0 pr-4`,children:[(0,G.jsx)(`span`,{className:`text-xl font-bold text-foreground truncate`,children:R.fileName||R.name}),(0,G.jsxs)(`span`,{className:`text-[12px] text-foreground/70 font-bold uppercase tracking-wider mt-1`,children:[je(R.fileType),` • `,Me(R.fileSize||0)]})]}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,G.jsx)(`button`,{onClick:()=>{navigator.clipboard.writeText(R.downloadURL),ue(`preview`),setTimeout(()=>ue(null),2e3)},className:`p-2.5 bg-foreground/5 hover:bg-foreground/10 text-foreground/70 transition-colors rounded-xl shadow-sm hover:text-emerald-500 cursor-pointer`,title:`Copy Link`,children:Z===`preview`?(0,G.jsx)(r.et,{className:`w-4 h-4 text-emerald-500`}):(0,G.jsx)(c.C,{className:`w-4 h-4`})}),(0,G.jsx)(`button`,{onClick:()=>{L(null),xe(R.id),Se(R.name)},className:`p-2.5 bg-foreground/5 hover:bg-foreground/10 text-foreground/70 hover:text-accent transition-colors rounded-xl shadow-sm cursor-pointer`,title:`Rename`,children:(0,G.jsx)(f.s,{className:`w-4 h-4`})}),(0,G.jsx)(`button`,{onClick:()=>{L(null),F(R.id)},className:`p-2.5 bg-red-500/10 hover:bg-red-500/20 text-red-500 transition-colors rounded-xl shadow-sm cursor-pointer`,title:`Delete`,children:(0,G.jsx)(w.t,{className:`w-4 h-4`})}),(0,G.jsx)(`a`,{href:R.downloadURL,download:!0,target:`_blank`,rel:`noreferrer`,className:`p-2.5 btn-primary transition-colors rounded-xl shadow-lg ml-1`,title:`Download`,children:(0,G.jsx)(f.f,{className:`w-4 h-4`})})]})]}),(0,G.jsx)(`div`,{className:`flex-1 w-full relative bg-foreground/[0.02] min-h-[50vh] md:min-h-[600px]`,onClick:()=>L(null),children:(0,G.jsxs)(`div`,{className:`absolute inset-x-4 inset-y-8 md:inset-x-12 md:inset-y-12 flex items-center justify-center`,children:[ne&&(0,G.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center rounded-lg z-50 pointer-events-none`,children:(0,G.jsx)(`div`,{className:`w-12 h-12 rounded-full bg-background/80 backdrop-blur-md shadow-xl flex items-center justify-center border border-[var(--panel-border)]/50`,children:(0,G.jsx)(_.n,{className:`w-5 h-5 text-accent animate-spin`})})}),R.fileType?.startsWith(`image/`)?(0,G.jsx)(`img`,{onLoad:()=>z(!1),onError:()=>z(!1),src:R.downloadURL,alt:R.fileName||R.name,className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-auto h-auto max-w-full max-h-full object-contain drop-shadow-[0_0_40px_rgba(0,0,0,0.5)] rounded-lg pointer-events-auto transition-opacity duration-500 ${ne?`opacity-0`:`opacity-100`}`,onClick:e=>e.stopPropagation()}):R.fileType?.startsWith(`video/`)?(0,G.jsx)(`video`,{onLoadedData:()=>z(!1),onError:()=>z(!1),src:R.downloadURL,controls:!0,autoPlay:!0,className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-auto h-auto max-w-full max-h-full outline-none bg-black/40 rounded-lg pointer-events-auto drop-shadow-[0_0_40px_rgba(0,0,0,0.5)] transition-opacity duration-500 ${ne?`opacity-0`:`opacity-100`}`,onClick:e=>e.stopPropagation()}):R.fileType===`application/pdf`?(0,G.jsx)(`iframe`,{onLoad:()=>z(!1),src:R.downloadURL,className:`w-full h-full border-none rounded-lg relative z-10 transition-opacity duration-500 ${ne?`opacity-0`:`opacity-100`}`,style:{backgroundColor:`white`},title:`PDF Preview`,onClick:e=>e.stopPropagation()}):(0,G.jsxs)(`div`,{className:`w-full h-full flex flex-col items-center justify-center text-foreground/40 text-center relative z-10`,onClick:e=>{e.stopPropagation(),z(!1)},children:[(0,G.jsx)(f.d,{className:`w-24 h-24 mb-6 opacity-40 drop-shadow-sm`}),(0,G.jsx)(`span`,{className:`text-[20px] font-extrabold text-foreground`,children:`Preview Unavailable`}),(0,G.jsx)(`span`,{className:`text-[14px] mt-2 text-foreground/60 font-medium max-w-xs`,children:`This file format cannot be previewed. Please download it instead.`})]})]})})]})]})}),document.body),(0,G.jsx)(r.A,{children:H&&(0,G.jsxs)(`div`,{className:`fixed inset-0 z-[120] flex items-center justify-center p-4`,children:[(0,G.jsx)(r.k.div,{onClick:()=>De(),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/60 backdrop-blur-sm cursor-pointer`}),(0,G.jsx)(r.k.div,{initial:{opacity:0,scale:.97,y:6},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.97,y:6},transition:{duration:.2},className:`w-full max-w-[440px] border-[var(--panel-border)] border rounded-2xl relative z-10 glass-panel shadow-2xl bg-background overflow-hidden`,children:(0,G.jsxs)(`div`,{className:`p-5 flex flex-col gap-3 max-h-[80vh] overflow-y-auto`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between mb-2 mt-2 px-1`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(`span`,{className:`text-[14px] font-bold text-foreground`,children:`Edit Record`}),S&&(0,G.jsx)(_.n,{className:`w-3 h-3 animate-spin text-foreground/40`})]}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>De(),className:`text-foreground/30 hover:text-foreground/60 transition-colors cursor-pointer`,children:(0,G.jsx)(T.t,{className:`w-4 h-4`})})]}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-0 max-h-[70vh] overflow-y-auto no-scrollbar px-1`,children:[(0,G.jsxs)(`div`,{className:`flex flex-col relative group/field`,children:[(0,G.jsx)(`input`,{readOnly:!0,value:`NAME`,className:`no-glow bg-transparent text-[10px] font-bold text-foreground/30 uppercase tracking-[0.15em] outline-none pt-3 pb-0.5`}),(0,G.jsx)(`input`,{autoFocus:!0,required:!0,value:U,onChange:e=>se(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},onBlur:()=>Oe(),placeholder:`Name *`,className:`no-glow bg-transparent text-[13px] font-medium text-foreground outline-none placeholder:text-foreground/15 pb-1 caret-foreground/50`}),(0,G.jsx)(`div`,{className:`border-b border-dashed border-[var(--panel-border)]/60`})]}),(0,G.jsxs)(`div`,{className:`flex flex-col relative group/field`,children:[(0,G.jsx)(`input`,{readOnly:!0,value:`NOTE`,className:`no-glow bg-transparent text-[10px] font-bold text-foreground/30 uppercase tracking-[0.15em] outline-none pt-3 pb-0.5`}),(0,G.jsx)(r.T,{value:ce,onChange:e=>q(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),e.target.blur())},onBlur:()=>Oe(),placeholder:`Add a note...`,rows:1,className:`no-glow bg-transparent text-[13px] font-medium text-foreground outline-none placeholder:text-foreground/15 pb-1 caret-foreground/50 resize-none overflow-hidden`}),(0,G.jsx)(`div`,{className:`border-b border-dashed border-[var(--panel-border)]/60`})]}),Y.map((e,t)=>(0,G.jsxs)(`div`,{className:`flex flex-col relative group/field`,children:[(0,G.jsx)(`input`,{placeholder:`FIELD NAME`,value:e.key,onChange:e=>{let n=[...Y];n[t].key=e.target.value,X(n)},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},onBlur:()=>Oe(),className:`no-glow bg-transparent text-[10px] font-bold text-foreground/30 uppercase tracking-[0.15em] outline-none placeholder:text-foreground/15 pt-3 pb-0.5 caret-foreground/40`}),(0,G.jsx)(`input`,{placeholder:`Field value...`,value:e.value,onChange:e=>{let n=[...Y];n[t].value=e.target.value,X(n)},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},onBlur:()=>Oe(),className:`no-glow bg-transparent text-[13px] font-medium text-foreground outline-none placeholder:text-foreground/15 pt-1.5 pb-1 caret-foreground/50`}),(0,G.jsx)(`div`,{className:`border-b border-dashed border-[var(--panel-border)]/60`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>X(Y.filter((e,n)=>n!==t)),className:`absolute top-3 right-0 p-1 text-foreground/0 group-hover/field:text-foreground/20 hover:!text-red-400 transition-colors cursor-pointer`,children:(0,G.jsx)(T.t,{className:`w-3 h-3`})})]},t)),(0,G.jsxs)(`button`,{type:`button`,onClick:()=>X([...Y,{key:``,value:``}]),className:`flex items-center gap-1.5 text-[11px] font-medium text-foreground/25 hover:text-foreground/40 transition-colors cursor-pointer mt-4 mb-4`,children:[(0,G.jsx)(b.t,{className:`w-3 h-3`}),` Add Field`]})]})]})})]})}),(0,G.jsx)(re.t,{isOpen:!!P,onCancel:()=>F(null),onConfirm:ye,title:`Delete Record`,message:(0,G.jsxs)(G.Fragment,{children:[`Are you sure you want to delete `,(0,G.jsx)(`strong`,{className:`text-foreground font-extrabold break-words mx-1`,children:s.find(e=>e.id===P)?.name}),` This action cannot be undone.`]}),confirmText:`Delete`,isProcessing:ae})]})}var Lo=({record:e})=>{let t=e.creatorName||e.creatorEmail?.split(`@`)[0]||`Member`,n=e.creatorEmail||``,i=e.creatorAvatar||``,a=t.split(` `).map(e=>e[0]).join(``).toUpperCase().slice(0,2);return(0,G.jsxs)(`div`,{className:`flex items-center gap-2 mt-2 pt-2 border-t border-[var(--panel-border)]/30`,children:[i?(0,G.jsx)(r.t,{src:i,alt:``,className:`w-5 h-5 rounded-full shrink-0`}):(0,G.jsx)(`div`,{className:`w-5 h-5 rounded-full bg-accent/15 text-accent flex items-center justify-center text-[8px] font-extrabold shrink-0`,children:a}),(0,G.jsxs)(`div`,{className:`flex items-center gap-1 min-w-0 flex-1`,children:[(0,G.jsx)(`span`,{className:`text-[11px] font-semibold text-foreground/40 truncate`,children:t}),n&&(0,G.jsxs)(`span`,{className:`text-[10px] text-foreground/25 truncate`,children:[`· `,n]})]})]})};function Ro({config:e,customContent:t}){let{user:a,userRole:s}=n.Q(),{config:l}=i.L(),[u,d]=(0,W.useState)([]),[p,m]=(0,W.useState)(!0),[h,v]=(0,W.useState)(!1),[y,x]=(0,W.useState)(``),[S,D]=(0,W.useState)(``),[k,j]=(0,W.useState)(!1),[M,N]=(0,W.useState)(``),[P,te]=(0,W.useState)(null),I=(0,W.useRef)(null),[L,R]=(0,W.useState)(null),[ne,z]=(0,W.useState)(null),V=e=>{if(z(e),e){let t=e.fileType||``;U(t.startsWith(`image/`)||t.startsWith(`video/`)||t===`application/pdf`)}},H=ne,[oe,U]=(0,W.useState)(!0),[se,ce]=(0,W.useState)(!1),[q,Y]=(0,W.useState)(null),[X,le]=(0,W.useState)(``),[Z,ue]=(0,W.useState)(``),[de,fe]=(0,W.useState)([]),pe=(0,W.useRef)(null),[me,he]=(0,W.useState)(null),ge=(0,W.useRef)([]),_e=ie.o(e,`internal_page`),Q=o.R({...e,pageType:`internal`}),ve=Q.startsWith(`user_`),ye=c.c(Q),be=ye?ie.t(e,Q):`${Q}${_e}_records`,xe=c.f(),$=c.o({on:ve}),Se=$.uid||a?.uid||``,Ce=F.m(be),we=ye?Ce.records:u,Te=ye?Ce.loading:p,Ee=e=>ye?F.n(e,xe):e.uid===a?.uid||$.someoneElse,De=s===`admin`,Oe=e=>Ee(e)&&ae.d(e,s),ke=(0,W.useRef)(!1);(0,W.useEffect)(()=>{!De||Te||ke.current||!we.length||(ke.current=!0,ae.a(be,we,e,!0).catch(e=>console.warn(`Could not catch the delete lock up:`,e)).finally(()=>{ke.current=!1}))},[De,Te,we,ae.l(e),be]);let Ae=e=>c.d(Q,be,e),[je,Me]=(0,W.useState)(()=>ye?c.u(be):``),Ne=()=>Me(c.u(be));(0,W.useEffect)(()=>{document.title=e.tabTitle||e.tabName||l.appName||`Your AI Firebase`},[e.tabTitle,e.tabName,l.appName]);let Pe=a?.uid,Fe=$.uid||Pe||``,Ie=$.everyone?`${Pe}|everyone`:Fe;(0,W.useEffect)(()=>{if(!Pe||ye)return;try{let e=g.o(be,Ie);e?(d(e),m(!1)):(d(e=>e.length?[]:e),m(!0))}catch{}let e=e=>vo(e),t=(0,K.onSnapshot)(ve&&!$.everyone?(0,K.query)((0,K.collection)(r.bt,be),(0,K.where)(`uid`,`==`,Fe)):(0,K.query)((0,K.collection)(r.bt,be),(0,K.orderBy)(`createdAt`,`desc`),(0,K.limit)(150)),t=>{let n=e(t.docs);ve&&!$.everyone&&n.sort((e,t)=>(t.createdAt||0)-(e.createdAt||0)),d(n),m(!1),g.s(be,Ie,n)},e=>{console.warn(`${be}: this account cannot read the records here (${e?.code||`permission-denied`}). A team page needs a verified address and an account marked Internal or Admin on the Users screen.`),d(e=>e.length?[]:e),m(!1)});return()=>t()},[Pe,Fe,Ie,be,ve,ye,$.everyone]);let Le=async e=>we.some(t=>t.id===e)||await(0,K.getDoc)((0,K.doc)(r.bt,be,e)).then(e=>e.exists()).catch(()=>!1),Re=()=>({name:a.displayName||a.email?.split(`@`)[0]||`Member`,email:a.email||``,avatar:a.photoURL||``}),ze=async(t,n)=>{let i=Re(),o={uid:Se,recordType:`record`,creatorName:i.name,creatorEmail:i.email,creatorAvatar:i.avatar,...ae.u(e,s),...t};if(!ye){let e=bo(t),n=e?(0,K.doc)(r.bt,be,e):(0,K.doc)((0,K.collection)(r.bt,be)),i={...o,createdAt:(0,K.serverTimestamp)()};return await(0,K.setDoc)(n,i),g.p(be,n.id,i),n.id}let l=n||je||c.u(be);return await(0,K.setDoc)((0,K.doc)(r.bt,be,l),c.l(o,a.uid)),n||Ne(),l},Be=async e=>{if(e.preventDefault(),!(!a||!y.trim())){j(!0);try{await ze({name:y.trim(),note:S.trim()}),x(``),D(``),v(!1)}catch(e){console.error(`Error saving shared record:`,e)}j(!1)}},Ve=c.b({upload:async(e,t)=>{if(!a)throw Error(`Sign in again before uploading.`);let n=await A._(e),r=ye?I.current&&je||c.u(be):``,i=`${Ae(r)}/${c.h(n.name)}`,o=await c.y(i,n,{customMetadata:{ownerId:a.uid},onProgress:t.progress,signal:t.signal});I.current?I.current(n,o,{uid:a.uid,storagePath:i,recordId:r}):await ze({name:n.name,note:`${n.type||`File`} · ${it(n.size)}`,recordType:`file`,fileName:n.name,fileType:n.type||`unknown`,fileSize:n.size,downloadURL:o,storagePath:i},r)},onFailed:e=>N(`${e.name}: ${e.error||`That upload did not work.`}`),onSettled:()=>Ve.clear()}),He=Ve.busy,Ue=e=>{let t=Array.from(e.target.files||[]);e.target.value=``,!(!t.length||!a)&&(N(``),Ve.add(t))},We=async()=>{if(L){ce(!0);try{let e=we.find(e=>e.id===L);if(!ae.d(e,s)){C.n(`Nothing on this page can be deleted.`),R(null),ce(!1);return}await(0,K.deleteDoc)((0,K.doc)(r.bt,be,L)),await B.o(e,we,Ae(L)),R(null)}catch(e){console.error(`Error deleting shared record:`,e)}ce(!1)}},[Ge,Ke]=(0,W.useState)(null),[qe,Je]=(0,W.useState)(``),[Ye,Xe]=(0,W.useState)(!1),Ze=e=>{if(e.recordType===`file`){Ke(e.id),Je(e.name);return}Y(e.id),le(e.name),ue(e.note||``);let t=[`name`,`note`,`uid`,`recordType`,`fileName`,`fileType`,`fileSize`,`downloadURL`,`storagePath`,`createdAt`,`creatorName`,`creatorEmail`,`creatorAvatar`],n=Object.entries(e).filter(([e])=>!t.includes(e)&&e!==`id`).map(([e,t])=>({key:e,value:String(t??``)}));fe(n),ge.current=n.map(e=>e.key)},Qe=async()=>{if(!Ge||!qe.trim()){Ke(null);return}let e=we.find(e=>e.id===Ge);if(e&&e.name===qe.trim()){Ke(null);return}Xe(!0);try{await(0,K.updateDoc)((0,K.doc)(r.bt,be,Ge),{name:qe.trim()}),d(e=>e.map(e=>e.id===Ge?{...e,name:qe.trim()}:e))}catch(e){console.error(`Error renaming file:`,e)}Xe(!1),Ke(null)},$e=async()=>{await et(),Y(null)},et=async()=>{if(!q||!X.trim())return;j(!0);let e={};de.forEach(({key:t,value:n})=>{t.trim()&&(e[t.trim()]=n)});let t=de.map(e=>e.key.trim()).filter(Boolean),n=ge.current.filter(e=>!t.includes(e));n.forEach(t=>{e[t]=(0,K.deleteField)()});try{await(0,K.updateDoc)((0,K.doc)(r.bt,be,q),{name:X.trim(),note:Z.trim(),...e}),d(e=>e.map(e=>{if(e.id!==q)return e;let t={...e,name:X.trim(),note:Z.trim()};return n.forEach(e=>{delete t[e]}),de.forEach(({key:e,value:n})=>{e.trim()&&(t[e.trim()]=n)}),t})),ge.current=t}catch(e){console.error(`Error saving record:`,e)}j(!1)},tt=(e,t)=>e?e.startsWith(`image/`)?t?(0,G.jsx)(`div`,{className:`w-9 h-9 rounded-xl bg-cover bg-center shrink-0`,style:{backgroundImage:`url(${t})`}}):(0,G.jsx)(f.l,{className:`w-4 h-4`}):e.startsWith(`video/`)||e.startsWith(`audio/`)?(0,G.jsx)(c.S,{className:`w-4 h-4`}):e.includes(`pdf`)||e.includes(`word`)||e.includes(`text`)?(0,G.jsx)(f.d,{className:`w-4 h-4`}):e.includes(`zip`)||e.includes(`rar`)||e.includes(`archive`)?(0,G.jsx)(c.T,{className:`w-4 h-4`}):e.includes(`html`)||e.includes(`csv`)||e.includes(`json`)?(0,G.jsx)(c.w,{className:`w-4 h-4`}):(0,G.jsx)(f.u,{className:`w-4 h-4`}):(0,G.jsx)(f.d,{className:`w-4 h-4`}),nt=e=>e?e.startsWith(`image/`)?`bg-emerald-500/10 text-emerald-500`:e.startsWith(`video/`)||e.startsWith(`audio/`)?`bg-accent/10 text-accent`:e.includes(`pdf`)||e.includes(`word`)||e.includes(`text`)?`bg-blue-500/10 text-blue-500`:e.includes(`zip`)||e.includes(`rar`)||e.includes(`archive`)?`bg-yellow-500/10 text-yellow-500`:e.includes(`html`)||e.includes(`csv`)||e.includes(`json`)?`bg-emerald-500/10 text-emerald-500`:`bg-foreground/5 text-foreground/40`:`bg-foreground/5 text-foreground/40`,rt=e=>{if(!e)return`FILE`;let t={"application/pdf":`PDF`,"application/zip":`ZIP`,"application/x-zip-compressed":`ZIP`,"application/x-rar-compressed":`RAR`,"application/x-7z-compressed":`7Z`,"application/json":`JSON`,"application/xml":`XML`,"application/javascript":`JS`,"application/typescript":`TS`,"application/msword":`DOC`,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":`DOCX`,"application/vnd.ms-excel":`XLS`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":`XLSX`,"application/vnd.ms-powerpoint":`PPT`,"application/vnd.openxmlformats-officedocument.presentationml.presentation":`PPTX`,"application/rtf":`RTF`,"application/x-tar":`TAR`,"application/gzip":`GZ`,"text/plain":`TXT`,"text/html":`HTML`,"text/css":`CSS`,"text/csv":`CSV`,"text/markdown":`MD`},n=e.toLowerCase();if(t[n])return t[n];let r=n.split(`/`);return r[r.length-1].replace(/^x-/,``).replace(/^vnd\..*\./,``).toUpperCase().slice(0,10)},it=e=>{if(!e)return`0 B`;let t=1024,n=[`B`,`KB`,`MB`,`GB`],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/t**+r).toFixed(2))+` `+n[r]},at=e=>{if(!e)return``;let t=e.toMillis?e.toMillis():e;return new Date(t).toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`})},ot=n.B(e.buttonStorageIcon)||ht,st=e.buttonStyle!==`secondary`,ct=e.buttonStorageStyle===`primary`;return(0,G.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,G.jsx)(r.k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-6 flex items-center justify-between`,children:(0,G.jsxs)(`div`,{children:[(0,G.jsx)(n.t,{children:e.tabTitle||e.tabName||`Internal Page`}),e.route&&(0,G.jsxs)(`div`,{className:`flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,G.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),e.route]})]})}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-6 flex-1 pb-16`,children:[(0,G.jsx)(i.t,{}),(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:t?`flex flex-col flex-1 relative`:`flex flex-col glass-panel border border-[var(--panel-border)] rounded-3xl overflow-hidden flex-1 shadow-2xl bg-background`,children:[(0,G.jsx)(`input`,{type:`file`,multiple:!0,ref:pe,onChange:Ue,className:`hidden`}),!t&&(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3 sm:gap-4 p-4 sm:p-6 md:px-8 md:py-6 border-b border-[var(--panel-border)]/50 bg-background/50 shrink-0`,children:[(0,G.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,G.jsx)(`h2`,{className:`text-xl font-bold text-foreground tracking-tight truncate`,children:e.tabTitle||e.tabName||`Dashboard`}),(0,G.jsx)(`p`,{className:`text-[13px] font-medium text-foreground/50 mt-1`,children:Te?`Loading…`:`${we.length} ${we.length===1?`item`:`items`} · Internal`}),(M||ye&&Ce.error)&&(0,G.jsx)(`p`,{className:`text-[12px] font-semibold text-red-500 mt-1 truncate`,role:`alert`,children:M||Ce.error}),$.someoneElse&&e.storage!==!1&&(0,G.jsx)(`p`,{className:`text-[12px] font-medium text-foreground/50 mt-1 max-sm:hidden`,children:`You are looking at somebody else’s page. Anything you add here is theirs, but a file would stay yours — so uploads are off until you switch back to your own.`})]}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,G.jsx)(c.a,{viewing:$}),e.storage!==!1&&!$.someoneElse&&(0,G.jsx)(G.Fragment,{children:(0,G.jsxs)(r.k.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>pe.current?.click(),title:He?Ve.done?`${Ve.done} of ${Ve.total} uploaded…`:`Uploading ${Ve.total===1?`your file`:`${Ve.total} files`}…`:e.buttonStorageText||`Upload files`,className:`h-10 flex items-center justify-center gap-2 rounded-xl transition-all duration-300 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed ${e.buttonStorageText?`px-4`:`w-10`} ${ct?`btn-primary`:`btn-secondary`}`,children:[He?(0,G.jsx)(_.n,{className:`w-4 h-4 animate-spin`}):(0,G.jsx)(ot,{className:`w-4 h-4`}),e.buttonStorageText&&(0,G.jsx)(`span`,{className:`text-[13px] font-bold`,children:e.buttonStorageText})]})}),e.showButton!==!1&&(0,G.jsx)(r.k.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>v(!0),title:`Add New`,className:`h-10 flex items-center justify-center gap-2 rounded-xl transition-all duration-300 cursor-pointer ${e.buttonText&&e.buttonText!==`+`?`px-5`:`w-10`} ${st?`btn-primary`:`btn-secondary`}`,children:e.buttonText===`+`||!e.buttonText?(0,G.jsx)(b.t,{className:`w-4 h-4`}):(0,G.jsx)(`span`,{className:`text-[13px] font-bold`,children:e.buttonText})})]})]}),(0,G.jsxs)(`div`,{className:t?`flex-1 flex flex-col relative min-h-[400px]`:`p-6 md:p-8 flex-1 overflow-y-auto relative min-h-[400px]`,children:[Te&&(0,G.jsx)(`div`,{className:`absolute inset-0 z-10 flex items-center justify-center bg-background/50 backdrop-blur-sm`,children:(0,G.jsx)(_.n,{className:`w-8 h-8 text-accent animate-spin`})}),t?(0,G.jsx)(c.p,{value:{prefix:Q,collection:ye?be:``,recordId:ye?q||je:``},children:(0,G.jsx)(`div`,{className:`fbos-content-slot fbos-tab-fill`,children:(0,G.jsx)(E.p,{size:`part`,children:(0,G.jsx)(ee.t,{config:e,children:(0,G.jsx)(t,{config:e,actions:{records:we,loading:Te,error:ye?Ce.error:``,collection:be,user:a,...c.s(be,xe,ye,je),saveRecord:async(t,n)=>{let r=Re(),i=yo(ho(t,n)),a=ye?null:bo(i);if(a&&await Le(a))return a;let o=await ze(Oo(i));return ye||d(t=>[{uid:Se,recordType:`record`,creatorName:r.name,creatorEmail:r.email,creatorAvatar:r.avatar,...ae.u(e,s),createdAt:Date.now(),...i,id:o},...t.filter(e=>e.id!==o)]),o},updateRecord:async(e,t,n)=>{let{id:i,data:o}=go(e,t,n),s=yo(o),c={...yi(a),...Oo(s,we.find(e=>e.id===i))};ye||d(e=>e.map(e=>e.id===i?{...e,...c}:e)),await(0,K.updateDoc)((0,K.doc)(r.bt,be,i),c);let l=we.find(e=>e.id===i);l&&g.p(be,i,{...l,...c})},deleteRecord:async(e,t)=>{let n=_o(e,t),i=we.find(e=>e.id===n);if(!ae.d(i,s)){C.n(`Nothing on this page can be deleted.`);return}await(0,K.deleteDoc)((0,K.doc)(r.bt,be,n)),g.m(be,n),await B.o(i,we,Ae(n))},startEdit:e=>Ze(e),confirmDelete:e=>R(e),uploadFile:()=>{$.someoneElse||pe.current?.click()},openAddForm:()=>v(!0),setAddForm:e=>te(()=>e),setFileHandler:e=>{I.current=e}}})})})})}):(0,G.jsxs)(G.Fragment,{children:[!Te&&we.length===0&&(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:`flex-1 flex flex-col items-center justify-center border border-[var(--panel-border)]/50 border-dashed rounded-2xl p-8 py-20 text-center min-h-[350px]`,children:[(0,G.jsx)(`div`,{className:`w-16 h-16 rounded-2xl bg-accent/5 border border-accent/10 flex items-center justify-center mb-5`,children:(0,G.jsx)(b.t,{className:`w-6 h-6 text-accent/40`})}),(0,G.jsx)(`p`,{className:`text-[15px] font-bold mb-1.5 text-foreground/50`,children:`No items yet`}),(0,G.jsx)(`p`,{className:`text-[13px] font-medium text-foreground/35 max-w-xs leading-relaxed`,children:`Use the buttons above to add records or upload files. All team members can view and contribute.`})]}),!Te&&we.length>0&&(0,G.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4`,children:(0,G.jsx)(r.A,{children:we.map(e=>{let t=q===e.id,n=Ee(e);return(0,G.jsxs)(r.k.div,{initial:!1,animate:{opacity:1,y:0},exit:{opacity:0,scale:.95},onClick:()=>n?Ze(e):null,className:`group flex flex-col bg-background border rounded-2xl p-5 transition-all relative ${n?`cursor-pointer`:``} ${t?`border-accent/40 shadow-lg ring-1 ring-accent/20`:`border-[var(--panel-border)] hover:border-accent/30 hover:shadow-lg`}`,children:[(0,G.jsxs)(`div`,{className:`absolute top-3 right-3 flex items-center gap-0.5 opacity-100 md:opacity-0 md:group-hover:opacity-100 transition-all z-10`,children:[e.recordType===`file`&&e.downloadURL&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{onClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(e.downloadURL),he(e.id),setTimeout(()=>he(null),2e3)},className:`p-1.5 rounded-lg text-foreground/25 hover:text-emerald-500 hover:bg-emerald-500/10 transition-all cursor-pointer`,title:`Copy Link`,children:me===e.id?(0,G.jsx)(r.et,{className:`w-3.5 h-3.5 text-emerald-500`}):(0,G.jsx)(c.C,{className:`w-3.5 h-3.5`})}),(0,G.jsx)(`a`,{href:e.downloadURL,target:`_blank`,rel:`noreferrer`,onClick:e=>e.stopPropagation(),className:`p-1.5 rounded-lg text-foreground/25 hover:text-blue-500 hover:bg-blue-500/10 transition-all`,title:`Download`,children:(0,G.jsx)(f.f,{className:`w-3.5 h-3.5`})})]}),n&&(0,G.jsx)(`button`,{onClick:t=>{t.stopPropagation(),Ze(e)},className:`p-1.5 rounded-lg text-foreground/25 hover:text-accent hover:bg-accent/10 transition-all cursor-pointer`,title:`Edit`,children:(0,G.jsx)(f.s,{className:`w-3.5 h-3.5`})}),n&&Oe(e)&&(0,G.jsx)(`button`,{onClick:t=>{t.stopPropagation(),R(e.id)},className:`p-1.5 rounded-lg text-foreground/25 hover:text-red-500 hover:bg-red-500/10 transition-all cursor-pointer`,title:`Delete`,children:(0,G.jsx)(w.t,{className:`w-3.5 h-3.5`})})]}),(0,G.jsxs)(`div`,{className:`flex items-start gap-3 mb-2`,children:[(0,G.jsx)(`div`,{onClick:t=>{t.stopPropagation(),e.recordType===`file`&&V(e)},className:`w-9 h-9 rounded-xl flex items-center justify-center shrink-0 ${e.recordType===`file`?`cursor-pointer hover:scale-105 transition-transform ${nt(e.fileType)}`:`bg-accent/10 text-accent`}`,children:e.recordType===`file`?tt(e.fileType,e.downloadURL):(0,G.jsx)(`div`,{className:`w-2 h-2 rounded-full bg-current`})}),(0,G.jsxs)(`div`,{className:`flex flex-col min-w-0 flex-1 relative`,children:[Ge===e.id?(0,G.jsx)(`input`,{autoFocus:!0,type:`text`,value:qe,onChange:e=>Je(e.target.value),onBlur:()=>Qe(),onKeyDown:e=>{e.key===`Enter`&&Qe(),e.key===`Escape`&&Ke(null)},onClick:e=>e.stopPropagation(),className:`no-glow text-[14px] font-bold text-foreground bg-transparent border-b border-accent/30 outline-none pb-0.5 w-full pr-12`}):(0,G.jsx)(`span`,{className:`text-[14px] font-bold text-foreground truncate pr-12`,children:e.name}),e.recordType===`file`&&(0,G.jsx)(`div`,{className:`absolute inset-0 z-0 cursor-pointer`,onClick:()=>V(e)}),(0,G.jsx)(`span`,{className:`text-[11px] text-foreground/35 font-bold uppercase tracking-wider mt-0.5`,children:at(e.createdAt)})]})]}),e.note&&(0,G.jsx)(`p`,{className:`text-[13px] text-foreground/55 font-medium leading-relaxed line-clamp-3 mb-1`,children:e.note}),Object.entries(e).filter(([e])=>![`name`,`note`,`uid`,`recordType`,`fileName`,`fileType`,`fileSize`,`downloadURL`,`createdAt`,`creatorName`,`creatorEmail`,`creatorAvatar`].includes(e)&&e!==`id`).slice(0,3).map(([e,t])=>(0,G.jsxs)(`div`,{className:`flex items-center gap-1.5 mt-1`,children:[(0,G.jsxs)(`span`,{className:`text-[10px] font-bold text-foreground/30 uppercase tracking-wider shrink-0`,children:[e,`:`]}),(0,G.jsx)(`span`,{className:`text-[11px] font-semibold text-foreground/60 truncate`,children:String(t)})]},e)),(0,G.jsx)(Lo,{record:e})]},e.id)})})})]})]})]})]}),(0,G.jsx)(r.A,{children:h&&(0,G.jsxs)(`div`,{className:`fixed inset-0 z-[120] flex items-center justify-center p-4`,children:[(0,G.jsx)(r.k.div,{onClick:()=>!k&&v(!1),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/60 backdrop-blur-sm cursor-pointer`}),(0,G.jsx)(r.k.div,{initial:{opacity:0,scale:.97,y:6},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.97,y:6},transition:{duration:.2},className:`w-full max-w-[360px] border-[var(--panel-border)] border rounded-2xl relative z-10 glass-panel shadow-2xl bg-background overflow-hidden`,children:P?W.default.createElement(P,{onSave:async e=>{j(!0);try{await ze(e),v(!1)}catch(e){console.error(`Error saving record:`,e)}j(!1)},onClose:()=>!k&&v(!1),saving:k}):(0,G.jsxs)(`form`,{onSubmit:Be,className:`p-5 flex flex-col gap-3`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between mb-1`,children:[(0,G.jsx)(`span`,{className:`text-[14px] font-bold text-foreground`,children:`New Record`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>!k&&v(!1),className:`text-foreground/30 hover:text-foreground/60 transition-colors cursor-pointer p-0.5`,children:(0,G.jsx)(T.t,{className:`w-4 h-4`})})]}),(0,G.jsx)(`input`,{autoFocus:!0,type:`text`,required:!0,value:y,onChange:e=>x(e.target.value),placeholder:`Name *`,disabled:k,className:`w-full bg-foreground/[0.03] border border-[var(--panel-border)] px-3.5 py-2.5 text-[13px] font-semibold text-foreground outline-none focus:border-accent transition-colors placeholder:text-foreground/30`,style:{borderRadius:`var(--input-radius, 0.75rem)`}}),(0,G.jsx)(r.T,{value:S,onChange:e=>D(e.target.value),placeholder:`Note (optional)`,disabled:k,rows:2,className:`w-full bg-foreground/[0.03] border border-[var(--panel-border)] px-3.5 py-2.5 text-[13px] font-medium text-foreground outline-none focus:border-accent transition-colors placeholder:text-foreground/30 resize-none`,style:{borderRadius:`var(--input-radius, 0.75rem)`}}),(0,G.jsx)(`div`,{className:`flex justify-end pt-1`,children:(0,G.jsx)(O.t,{type:`submit`,isLoading:k,className:`px-5 py-2 text-[12px] font-bold shadow-md`,children:k?`Saving…`:`Save`})})]})})]})}),typeof window<`u`&&(0,J.createPortal)((0,G.jsx)(r.A,{children:H&&(0,G.jsxs)(`div`,{className:`fixed inset-0 z-[9999] flex items-center justify-center p-4 md:p-12`,children:[(0,G.jsx)(r.k.div,{onClick:()=>V(null),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/95 backdrop-blur-xl cursor-pointer`}),(0,G.jsx)(`button`,{onClick:()=>V(null),className:`absolute top-6 right-6 z-[160] w-12 h-12 bg-foreground/10 hover:bg-foreground/20 text-foreground rounded-full flex items-center justify-center backdrop-blur-md transition-all cursor-pointer outline-none`,children:(0,G.jsx)(T.t,{className:`w-5 h-5`})}),(0,G.jsxs)(r.k.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},className:`relative z-10 w-full max-w-6xl max-h-[85vh] flex flex-col pointer-events-auto shadow-2xl rounded-3xl overflow-hidden glass-panel border border-[var(--panel-border)]`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between p-6 bg-background/80 backdrop-blur-md border-b border-[var(--panel-border)] shrink-0 shadow-sm z-20`,children:[(0,G.jsxs)(`div`,{className:`flex flex-col min-w-0 pr-4`,children:[(0,G.jsx)(`span`,{className:`text-xl font-bold text-foreground truncate`,children:H.fileName||H.name}),(0,G.jsxs)(`span`,{className:`text-[12px] text-foreground/70 font-bold uppercase tracking-wider mt-1`,children:[rt(H.fileType),` • `,it(H.fileSize||0)]})]}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,G.jsx)(`button`,{onClick:()=>{navigator.clipboard.writeText(H.downloadURL),he(`preview`),setTimeout(()=>he(null),2e3)},className:`p-2.5 bg-foreground/5 hover:bg-foreground/10 text-foreground/70 transition-colors rounded-xl shadow-sm hover:text-emerald-500 cursor-pointer`,title:`Copy Link`,children:me===`preview`?(0,G.jsx)(r.et,{className:`w-4 h-4 text-emerald-500`}):(0,G.jsx)(c.C,{className:`w-4 h-4`})}),(0,G.jsx)(`button`,{onClick:()=>{V(null),Ke(H.id),Je(H.name)},className:`p-2.5 bg-foreground/5 hover:bg-foreground/10 text-foreground/70 hover:text-accent transition-colors rounded-xl shadow-sm cursor-pointer`,title:`Rename`,children:(0,G.jsx)(f.s,{className:`w-4 h-4`})}),(0,G.jsx)(`button`,{onClick:()=>{V(null),R(H.id)},className:`p-2.5 bg-red-500/10 hover:bg-red-500/20 text-red-500 transition-colors rounded-xl shadow-sm cursor-pointer`,title:`Delete`,children:(0,G.jsx)(w.t,{className:`w-4 h-4`})}),(0,G.jsx)(`a`,{href:H.downloadURL,download:!0,target:`_blank`,rel:`noreferrer`,className:`p-2.5 btn-primary transition-colors rounded-xl shadow-lg ml-1`,title:`Download`,children:(0,G.jsx)(f.f,{className:`w-4 h-4`})})]})]}),(0,G.jsx)(`div`,{className:`flex-1 w-full relative bg-foreground/[0.02] min-h-[50vh] md:min-h-[600px]`,onClick:()=>V(null),children:(0,G.jsxs)(`div`,{className:`absolute inset-x-4 inset-y-8 md:inset-x-12 md:inset-y-12 flex items-center justify-center`,children:[oe&&(0,G.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center rounded-lg z-50 pointer-events-none`,children:(0,G.jsx)(`div`,{className:`w-12 h-12 rounded-full bg-background/80 backdrop-blur-md shadow-xl flex items-center justify-center border border-[var(--panel-border)]/50`,children:(0,G.jsx)(_.n,{className:`w-5 h-5 text-accent animate-spin`})})}),H.fileType?.startsWith(`image/`)?(0,G.jsx)(`img`,{onLoad:()=>U(!1),onError:()=>U(!1),src:H.downloadURL,alt:H.fileName||H.name,className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-auto h-auto max-w-full max-h-full object-contain drop-shadow-[0_0_40px_rgba(0,0,0,0.5)] rounded-lg pointer-events-auto transition-opacity duration-500 ${oe?`opacity-0`:`opacity-100`}`,onClick:e=>e.stopPropagation()}):H.fileType?.startsWith(`video/`)?(0,G.jsx)(`video`,{onLoadedData:()=>U(!1),onError:()=>U(!1),src:H.downloadURL,controls:!0,autoPlay:!0,className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-auto h-auto max-w-full max-h-full outline-none bg-black/40 rounded-lg pointer-events-auto drop-shadow-[0_0_40px_rgba(0,0,0,0.5)] transition-opacity duration-500 ${oe?`opacity-0`:`opacity-100`}`,onClick:e=>e.stopPropagation()}):H.fileType===`application/pdf`?(0,G.jsx)(`iframe`,{onLoad:()=>U(!1),src:H.downloadURL,className:`w-full h-full border-none rounded-lg relative z-10 transition-opacity duration-500 ${oe?`opacity-0`:`opacity-100`}`,style:{backgroundColor:`white`},title:`PDF Preview`,onClick:e=>e.stopPropagation()}):(0,G.jsxs)(`div`,{className:`w-full h-full flex flex-col items-center justify-center text-foreground/40 text-center relative z-10`,onClick:e=>{e.stopPropagation(),U(!1)},children:[(0,G.jsx)(f.d,{className:`w-24 h-24 mb-6 opacity-40 drop-shadow-sm`}),(0,G.jsx)(`span`,{className:`text-[20px] font-extrabold text-foreground`,children:`Preview Unavailable`}),(0,G.jsx)(`span`,{className:`text-[14px] mt-2 text-foreground/60 font-medium max-w-xs`,children:`This file format cannot be previewed. Please download it instead.`})]})]})})]})]})}),document.body),(0,G.jsx)(r.A,{children:q&&(0,G.jsxs)(`div`,{className:`fixed inset-0 z-[120] flex items-center justify-center p-4`,children:[(0,G.jsx)(r.k.div,{onClick:()=>$e(),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/60 backdrop-blur-sm cursor-pointer`}),(0,G.jsx)(r.k.div,{initial:{opacity:0,scale:.97,y:6},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.97,y:6},transition:{duration:.2},className:`w-full max-w-[440px] border-[var(--panel-border)] border rounded-2xl relative z-10 glass-panel shadow-2xl bg-background overflow-hidden`,children:(0,G.jsxs)(`div`,{className:`p-5 flex flex-col gap-3 max-h-[80vh] overflow-y-auto`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between mb-2 mt-2 px-1`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(`span`,{className:`text-[14px] font-bold text-foreground`,children:`Edit Record`}),k&&(0,G.jsx)(_.n,{className:`w-3 h-3 animate-spin text-foreground/40`})]}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>$e(),className:`text-foreground/30 hover:text-foreground/60 transition-colors cursor-pointer`,children:(0,G.jsx)(T.t,{className:`w-4 h-4`})})]}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-0 max-h-[70vh] overflow-y-auto no-scrollbar px-1`,children:[(0,G.jsxs)(`div`,{className:`flex flex-col relative group/field`,children:[(0,G.jsx)(`input`,{readOnly:!0,value:`NAME`,className:`no-glow bg-transparent text-[10px] font-bold text-foreground/30 uppercase tracking-[0.15em] outline-none pt-3 pb-0.5`}),(0,G.jsx)(`input`,{autoFocus:!0,required:!0,value:X,onChange:e=>le(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},onBlur:()=>et(),placeholder:`Name *`,className:`no-glow bg-transparent text-[13px] font-medium text-foreground outline-none placeholder:text-foreground/15 pb-1 caret-foreground/50`}),(0,G.jsx)(`div`,{className:`border-b border-dashed border-[var(--panel-border)]/60`})]}),(0,G.jsxs)(`div`,{className:`flex flex-col relative group/field`,children:[(0,G.jsx)(`input`,{readOnly:!0,value:`NOTE`,className:`no-glow bg-transparent text-[10px] font-bold text-foreground/30 uppercase tracking-[0.15em] outline-none pt-3 pb-0.5`}),(0,G.jsx)(r.T,{value:Z,onChange:e=>ue(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),e.target.blur())},onBlur:()=>et(),placeholder:`Add a note...`,rows:1,className:`no-glow bg-transparent text-[13px] font-medium text-foreground outline-none placeholder:text-foreground/15 pb-1 caret-foreground/50 resize-none overflow-hidden`}),(0,G.jsx)(`div`,{className:`border-b border-dashed border-[var(--panel-border)]/60`})]}),de.map((e,t)=>(0,G.jsxs)(`div`,{className:`flex flex-col relative group/field`,children:[(0,G.jsx)(`input`,{placeholder:`FIELD NAME`,value:e.key,onChange:e=>{let n=[...de];n[t].key=e.target.value,fe(n)},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},onBlur:()=>et(),className:`no-glow bg-transparent text-[10px] font-bold text-foreground/30 uppercase tracking-[0.15em] outline-none placeholder:text-foreground/15 pt-3 pb-0.5 caret-foreground/40`}),(0,G.jsx)(`input`,{placeholder:`Field value...`,value:e.value,onChange:e=>{let n=[...de];n[t].value=e.target.value,fe(n)},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},onBlur:()=>et(),className:`no-glow bg-transparent text-[13px] font-medium text-foreground outline-none placeholder:text-foreground/15 pt-1.5 pb-1 caret-foreground/50`}),(0,G.jsx)(`div`,{className:`border-b border-dashed border-[var(--panel-border)]/60`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>fe(de.filter((e,n)=>n!==t)),className:`absolute top-3 right-0 p-1 text-foreground/0 group-hover/field:text-foreground/20 hover:!text-red-400 transition-colors cursor-pointer`,children:(0,G.jsx)(T.t,{className:`w-3 h-3`})})]},t)),(0,G.jsxs)(`button`,{type:`button`,onClick:()=>fe([...de,{key:``,value:``}]),className:`flex items-center gap-1.5 text-[11px] font-medium text-foreground/25 hover:text-foreground/40 transition-colors cursor-pointer mt-4 mb-4`,children:[(0,G.jsx)(b.t,{className:`w-3 h-3`}),` Add Field`]})]})]})})]})}),(0,G.jsx)(re.t,{isOpen:!!L,onCancel:()=>R(null),onConfirm:We,title:`Delete Record`,message:(0,G.jsxs)(G.Fragment,{children:[`Are you sure you want to delete `,(0,G.jsx)(`strong`,{className:`text-foreground font-extrabold break-words mx-1`,children:we.find(e=>e.id===L)?.name}),` This action cannot be undone.`]}),confirmText:`Delete`,isProcessing:se})]})}var zo=5,Bo=3,Vo=8,Ho=250,Uo=56,Wo=14,Go=8,Ko=`button, a, input, textarea, select, label, [role="button"], [role="listbox"], [role="option"], [contenteditable="true"], [data-no-drag]`,qo=!1,Jo=()=>{qo||typeof window>`u`||(qo=!0,window.addEventListener(`touchmove`,()=>{},{passive:!1}))};function Yo(e){let[t,n]=(0,W.useState)(null),r=(0,W.useRef)(e);(0,W.useEffect)(()=>{r.current=e}),(0,W.useEffect)(Jo,[]);let i=(0,W.useRef)(null),a=(0,W.useCallback)(e=>{let t=i.current;t&&(i.current=null,t.cleanup(),t.active&&(n(null),e===`drop`?r.current.onDrop(t.key):r.current.onCancel?.(t.key)))},[]);(0,W.useEffect)(()=>()=>a(`cancel`),[a]);let o=(0,W.useCallback)((e,t)=>{if(r.current.disabled||i.current||t.pointerType===`mouse`&&t.button!==0)return;let o=t.target,s=!!o.closest?.(`[data-drag-handle]`),c=s?null:o.closest?.(Ko);if(c&&!c.hasAttribute(`data-drag-ok`))return;let l=t.currentTarget,u=t.pointerType===`touch`,d=s?Bo:u?Vo:zo,f=()=>{let e=i.current;if(!(!e||e.active)){e.active=!0,e.hold&&=(clearTimeout(e.hold),null);try{navigator.vibrate?.(8)}catch{}r.current.onStart?.(e.key),n({key:e.key,x:e.x,y:e.y,offsetX:e.startX-e.rect.left,offsetY:e.startY-e.rect.top,width:e.rect.width,height:e.rect.height}),r.current.onMove({x:e.x,y:e.y,at:e.at},e.key),e.frame=requestAnimationFrame(p)}},p=e=>{let t=i.current;if(!t||!t.active)return;t.at=e;let n=!1;t.y<Uo?(window.scrollBy(0,-Wo),n=!0):t.y>window.innerHeight-Uo&&(window.scrollBy(0,Wo),n=!0);let a=r.current.scroller?.();if(a){let e=a.getBoundingClientRect(),r=a.scrollLeft;t.x<e.left+Uo?a.scrollLeft-=Go:t.x>e.right-Uo&&(a.scrollLeft+=Go),a.scrollLeft!==r&&(n=!0)}n&&r.current.onMove({x:t.x,y:t.y,at:e},t.key),t.frame=requestAnimationFrame(p)},m=e=>{let t=i.current;if(!(!t||e.pointerId!==t.pointerId)){if(t.x=e.clientX,t.y=e.clientY,t.at=e.timeStamp,!t.active){if(!(Math.hypot(t.x-t.startX,t.y-t.startY)>d))return;if(u&&!s){a(`cancel`);return}f();return}n(e=>e&&{...e,x:t.x,y:t.y}),r.current.onMove({x:t.x,y:t.y,at:t.at},t.key)}},h=e=>{let t=i.current;if(!(!t||e.pointerId!==t.pointerId)){if(t.active){let e=e=>{e.stopPropagation(),e.preventDefault()};window.addEventListener(`click`,e,{capture:!0,once:!0}),setTimeout(()=>window.removeEventListener(`click`,e,{capture:!0}),80)}a(`drop`)}},g=e=>{i.current&&e.pointerId===i.current.pointerId&&a(`cancel`)},_=e=>{e.key===`Escape`&&i.current?.active&&(e.preventDefault(),a(`cancel`))},v=e=>{i.current?.active&&e.cancelable&&e.preventDefault()},y=e=>{u&&e.preventDefault()},b=e=>e.preventDefault(),x=document.body.style.userSelect,S={key:e,pointerId:t.pointerId,startX:t.clientX,startY:t.clientY,x:t.clientX,y:t.clientY,at:t.timeStamp,rect:l.getBoundingClientRect(),active:!1,hold:u&&!s?setTimeout(f,Ho):null,frame:null,cleanup:()=>{S.hold&&clearTimeout(S.hold),S.frame!=null&&cancelAnimationFrame(S.frame),window.removeEventListener(`pointermove`,m),window.removeEventListener(`pointerup`,h),window.removeEventListener(`pointercancel`,g),window.removeEventListener(`keydown`,_,!0),window.removeEventListener(`touchmove`,v),window.removeEventListener(`contextmenu`,y,!0),window.removeEventListener(`dragstart`,b,!0),document.body.style.userSelect=x}};i.current=S,document.body.style.userSelect=`none`,window.addEventListener(`pointermove`,m),window.addEventListener(`pointerup`,h),window.addEventListener(`pointercancel`,g),window.addEventListener(`keydown`,_,!0),window.addEventListener(`touchmove`,v,{passive:!1}),window.addEventListener(`contextmenu`,y,!0),window.addEventListener(`dragstart`,b,!0)},[a]);return{dragging:t,bind:(0,W.useCallback)(e=>({"data-drag-key":e,onPointerDown:t=>o(e,t),style:{WebkitTouchCallout:`none`,WebkitUserSelect:`none`,userSelect:`none`}}),[o])}}var Xo={"data-drag-handle":``,style:{touchAction:`none`,cursor:`grab`}},Zo=()=>[{id:`todo`,title:`To Do`,createdAt:Date.now()-2e3},{id:`in_progress`,title:`In Progress`,createdAt:Date.now()-1e3},{id:`review`,title:`Review`,createdAt:Date.now()}],Qo=()=>`item_${Date.now()}`,$o=(e,t)=>({id:e,categoryId:t.categoryId,name:t.name||t.text||`Unnamed Item`,fields:t.fields||(t.value?[{key:`Label`,value:t.value}]:[]),order:t.order||0,uid:t.uid,creatorName:t.creatorName,creatorAvatar:t.creatorAvatar,access:t.access,editors:t.editors}),es=[{text:`text-red-400`,bgCircle:`bg-red-400`,bgCard:`bg-red-500/[0.08]`,borderCard:`border-red-500/30`,bgLight:`bg-red-500/15`,bgHover:`hover:bg-red-500`,bgAlt:`bg-red-500/[0.04]`,name:`Red`},{text:`text-orange-400`,bgCircle:`bg-orange-400`,bgCard:`bg-orange-500/[0.08]`,borderCard:`border-orange-500/30`,bgLight:`bg-orange-500/15`,bgHover:`hover:bg-orange-500`,bgAlt:`bg-orange-500/[0.04]`,name:`Orange`},{text:`text-yellow-400`,bgCircle:`bg-yellow-400`,bgCard:`bg-yellow-500/[0.08]`,borderCard:`border-yellow-500/30`,bgLight:`bg-yellow-500/15`,bgHover:`hover:bg-yellow-500`,bgAlt:`bg-yellow-500/[0.04]`,name:`Yellow`},{text:`text-green-400`,bgCircle:`bg-green-400`,bgCard:`bg-green-500/[0.08]`,borderCard:`border-green-500/30`,bgLight:`bg-green-500/15`,bgHover:`hover:bg-green-500`,bgAlt:`bg-green-500/[0.04]`,name:`Green`},{text:`text-blue-400`,bgCircle:`bg-blue-400`,bgCard:`bg-blue-500/[0.08]`,borderCard:`border-blue-500/30`,bgLight:`bg-blue-500/15`,bgHover:`hover:bg-blue-500`,bgAlt:`bg-blue-500/[0.04]`,name:`Blue`},{text:`text-accent`,bgCircle:`bg-accent`,bgCard:`bg-accent/[0.08]`,borderCard:`border-accent/30`,bgLight:`bg-accent/15`,bgHover:`hover:bg-accent`,bgAlt:`bg-accent/[0.04]`,name:`Purple`},{text:`text-pink-400`,bgCircle:`bg-pink-400`,bgCard:`bg-pink-500/[0.08]`,borderCard:`border-pink-500/30`,bgLight:`bg-pink-500/15`,bgHover:`hover:bg-pink-500`,bgAlt:`bg-pink-500/[0.04]`,name:`Pink`},{text:`text-foreground/60`,bgCircle:`bg-foreground/30`,bgCard:`bg-foreground/[0.04]`,borderCard:`border-[var(--panel-border)]/50`,bgLight:`bg-foreground/15`,bgHover:`hover:bg-foreground/30`,bgAlt:`bg-foreground/[0.02]`,name:`Default`}];function ts({title:e=`Board View`,subtitle:t=`/board`,backUrl:s,tasksCollection:l=`pub_tasks`,categoriesCollection:u=`pub_categories`,config:d,customContent:p}){let{user:m}=n.Q(),h=!!d,g=d?.isInternal||d?.isShared;d?.isPrivate&&d?.isAdmin;let _=d?.isAdmin||g,v=o.j(l),y=c.f(),x=F.m(l),S=F.m(u),C=h?_||v||l.startsWith(`role_`):!0,D=e=>!v||F.n(e,y),k=c.o({on:l.startsWith(`user_`)&&!v,everyone:!1}),A=k.uid||m?.uid||``,[j,ee]=(0,W.useState)(()=>v?c.u(l):``),M=(e,t,n,r)=>m?o.j(e)?n?c.l({uid:m.uid,...r?vi(m):{},...t},m.uid):t:e.startsWith(`user_`)?{...t,uid:A||m.uid}:n?{uid:m.uid,...r?vi(m):{},...t}:t:t,N=!!p,P=d?.showButton!==!1&&!N,te=d?.buttonText||`+`,I=d?.buttonStyle||`primary`,L=d?.keyName||`key`,R=d?.valueName||`value`,[ne,ie]=(0,W.useState)([]),[z,B]=(0,W.useState)([]),ae=v?x.records.map(e=>$o(e.id,e)).sort((e,t)=>(e.order||0)-(t.order||0)):ne,V=v?S.records:z,[H,oe]=(0,W.useState)(null),[U,se]=(0,W.useState)(null),[ce,q]=(0,W.useState)({name:``}),[Y,X]=(0,W.useState)([]),[le,Z]=(0,W.useState)(null),ue=(0,W.useRef)(null),de=e=>{ue.current=e,Z(e)},fe=(0,W.useRef)(null),[pe,me]=(0,W.useState)(null),[he,ge]=(0,W.useState)(!1),[_e,Q]=(0,W.useState)(null),[ve,ye]=(0,W.useState)(``),[be,xe]=(0,W.useState)(null),$=k.uid||m?.uid;(0,W.useEffect)(()=>{let e=l.startsWith(`user_`),t=u.startsWith(`user_`);if(e&&!m||v)return;let n=e&&$?`${l}|${$}`:l,i=t&&$?`${u}|${$}`:u;try{let e=localStorage.getItem(`fbos_board_tasks_${n}`);e&&ie(JSON.parse(e));let t=localStorage.getItem(`fbos_board_cats_${i}`);t&&B(JSON.parse(t))}catch{}let o=(0,K.onSnapshot)(e&&$?(0,K.query)((0,K.collection)(r.bt,l),(0,K.where)(`uid`,`==`,$)):(0,K.collection)(r.bt,l),e=>{let t=[];e.forEach(e=>{let n=e.data();t.push({id:e.id,categoryId:n.categoryId,name:n.name||n.text||`Unnamed Item`,fields:n.fields||(n.value?[{key:`Label`,value:n.value}]:[]),order:n.order||0,uid:n.uid,creatorName:n.creatorName,creatorAvatar:n.creatorAvatar})});let r=t.sort((e,t)=>(e.order||0)-(t.order||0));ie(r),localStorage.setItem(`fbos_board_tasks_${n}`,JSON.stringify(r))},a.d),s=(0,K.onSnapshot)(t&&$?(0,K.query)((0,K.collection)(r.bt,u),(0,K.where)(`uid`,`==`,$)):(0,K.collection)(r.bt,u),e=>{let n=[];if(e.forEach(e=>{n.push({id:e.id,...e.data()})}),n.length===0){let e=Zo(),n=$?{uid:$}:{},i=t&&$?`_${$}`:``;e.forEach(e=>(0,K.setDoc)((0,K.doc)(r.bt,u,`${e.id}${i}`),{...n,title:e.title,createdAt:e.createdAt}))}else B(n),localStorage.setItem(`fbos_board_cats_${i}`,JSON.stringify(n))},a.d);return()=>{o(),s()}},[l,u,$,v]);let Se=(0,W.useRef)(!1);(0,W.useEffect)(()=>{!v||!$||S.loading||S.records.length||Se.current||(Se.current=!0,Zo().forEach(e=>(0,K.setDoc)((0,K.doc)(r.bt,u,`${e.id}_${$}`),c.l({uid:$,title:e.title,createdAt:e.createdAt},$))))},[v,$,S.loading,S.records.length,u]);let Ce=(e,t)=>{t?(se(t.id),q({id:t.id,name:t.name}),X(t.fields?.length?[...t.fields,{key:``,value:``}]:[{key:``,value:``}])):(oe(e),q({name:``}),X([{key:``,value:``}]))},we=(e,t,n)=>{let r=[...Y];r[e]={key:t,value:n},e===Y.length-1&&(t.trim()!==``||n.trim()!==``)&&r.push({key:``,value:``}),X(r)},Te=async(e,t,n)=>{let i=ae.find(t=>t.id===e);if(!i||!D(i))return;let a=ae.filter(e=>e.categoryId===t).sort((e,t)=>(e.order||0)-(t.order||0)),o=a.filter(t=>t.id!==e),s=Math.max(0,Math.min(n,o.length));i.categoryId===t&&a.findIndex(t=>t.id===e)===s||[...o.slice(0,s),i,...o.slice(s)].forEach((e,n)=>{let i=M(l,{categoryId:t,order:n},!1,!1);(0,K.setDoc)((0,K.doc)(r.bt,l,e.id),i,{merge:!0})})},{dragging:Ee,bind:De}=Yo({scroller:()=>fe.current,onMove:({x:e,y:t},n)=>{let r=fe.current;if(!r)return;let i=null,a=1/0;for(let t of Array.from(r.querySelectorAll(`[data-board-column]`))){let n=t.getBoundingClientRect(),r=e<n.left?n.left-e:e>n.right?e-n.right:0;r<a&&(a=r,i=t)}let o=i?.dataset.boardColumn;if(!i||!o){de(null);return}let s=Array.from(i.querySelectorAll(`[data-drag-key]`)).filter(e=>e.dataset.dragKey!==n).filter(e=>{let n=e.getBoundingClientRect();return t>n.top+n.height/2}).length,c=ue.current;(!c||c.categoryId!==o||c.index!==s)&&de({categoryId:o,index:s})},onDrop:e=>{let t=ue.current;de(null),t&&Te(e,t.categoryId,t.index)},onCancel:()=>de(null)}),Oe=Ee?.key??null,ke=Oe?ae.find(e=>e.id===Oe):void 0,Ae=async e=>{let t=ce.id||Qo(),n=ce.name.trim(),i=n||`Untitled Item`,a=Y.filter(e=>e.key.trim()!==``||e.value.trim()!==``),o=!0,s=ce.id?ae.find(e=>e.id===ce.id):null;if(s){let e=JSON.stringify(s.fields||[]),t=JSON.stringify(a);s.name===i&&e===t&&(o=!1)}else !n&&a.length===0&&(o=!1);if(!o){oe(null),se(null);return}me(ce.id||`new`);let c=M(l,{categoryId:e,name:i,fields:a},!ce.id,!0);await(0,K.setDoc)((0,K.doc)(r.bt,l,t),c,{merge:!0}),setTimeout(()=>{oe(null),se(null),me(null)},400)},je=(e,t)=>{xe({type:`item`,id:e,title:t})},Me=async()=>{let e=`cat_${Date.now()}`,t=M(u,{title:``,createdAt:Date.now()},!0,!1);await(0,K.setDoc)((0,K.doc)(r.bt,u,e),t),Q(e),ye(``),setTimeout(()=>{let e=document.getElementById(`board-container`);e&&e.scrollTo({left:e.scrollWidth,behavior:`smooth`})},150)},Ne=async(e,t)=>{B(n=>n.map(n=>n.id===e?{...n,color:t}:n)),await(0,K.setDoc)((0,K.doc)(r.bt,u,e),{color:t},{merge:!0})},Pe=async e=>{ve.trim()?await(0,K.setDoc)((0,K.doc)(r.bt,u,e),{title:ve},{merge:!0}):await(0,K.deleteDoc)((0,K.doc)(r.bt,u,e)),Q(null)},Fe=(e,t)=>{xe({type:`category`,id:e,title:t})},Ie=async()=>{if(be){ge(!0);try{if(be.type===`item`)await(0,K.deleteDoc)((0,K.doc)(r.bt,l,be.id)),se(null);else{let e=ae.filter(e=>e.categoryId===be.id);for(let t of e)await(0,K.deleteDoc)((0,K.doc)(r.bt,l,t.id));await(0,K.deleteDoc)((0,K.doc)(r.bt,u,be.id))}}catch{}ge(!1),xe(null)}},Le=[...V].sort((e,t)=>(e.createdAt||0)-(t.createdAt||0));return(0,G.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 overflow-x-clip`,children:[(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-4 md:mb-6 flex items-center gap-3`,children:[!h&&s&&(0,G.jsx)(c.r,{to:s}),(0,G.jsxs)(`div`,{className:`min-w-0`,children:[(0,G.jsx)(n.t,{children:e}),t&&(0,G.jsxs)(`div`,{className:`max-sm:hidden sm:flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,G.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),t]})]})]}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-6 flex-1 min-h-0 pb-16`,children:[h&&(0,G.jsx)(i.t,{}),(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:`flex flex-col glass-panel border border-[var(--panel-border)] rounded-3xl overflow-hidden flex-1 min-h-[400px] shadow-2xl bg-background relative z-10`,children:[(0,G.jsx)(`div`,{className:`absolute top-0 right-0 w-[400px] h-[400px] bg-accent/5 blur-[100px] rounded-full pointer-events-none -z-10`}),(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3 sm:gap-4 p-4 sm:p-6 md:px-8 md:py-6 border-b border-[var(--panel-border)]/50 bg-background/50 shrink-0 relative z-20`,children:[(0,G.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,G.jsx)(`h2`,{className:`text-lg sm:text-xl font-bold text-foreground tracking-tight truncate`,children:d?.tabTitle||d?.tabName||e}),(0,G.jsxs)(`p`,{className:`text-[13px] font-medium text-foreground/50 mt-1`,children:[ae.length,` `,ae.length===1?`item`:`items`,` · `,Le.length,` `,Le.length===1?`category`:`categories`]})]}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,G.jsx)(c.a,{viewing:k}),P&&(0,G.jsx)(O.t,{variant:I===`secondary`?`secondary`:void 0,onClick:Me,className:`px-3 py-2.5 text-[14px] font-bold rounded-xl shadow-lg hover:-translate-y-0.5 transition-all shrink-0`,children:te===`+`?(0,G.jsx)(b.t,{className:`w-4 h-4`}):te})]})]}),(0,G.jsx)(`div`,{className:`flex-1 w-full relative z-40 min-h-0 flex flex-col`,children:p?(0,G.jsx)(c.p,{value:{prefix:o.R(d||{}),collection:v?l:``,recordId:v?U||j:``},children:(0,G.jsx)(`div`,{className:`fbos-content-slot fbos-tab-fill w-full flex-1 overflow-y-auto p-4 md:p-6`,children:(0,G.jsx)(E.p,{size:`part`,children:(0,G.jsx)(p,{config:d,actions:{tasks:ae,categories:V,collection:l,catCollection:u,user:m,error:v?x.error||S.error:``,...c.s(l,y,v,j),saveTask:async(e,t)=>{let n=e||Qo(),i=M(l,t,!ae.some(e=>e.id===n),!0);v&&n===j&&ee(c.u(l)),ie(e=>e.find(e=>e.id===n)?e.map(e=>e.id===n?{...e,...i}:e):[...e,{id:n,...i}]),await(0,K.setDoc)((0,K.doc)(r.bt,l,n),i,{merge:!0})},deleteTask:async e=>{ie(t=>t.filter(t=>t.id!==e)),await(0,K.deleteDoc)((0,K.doc)(r.bt,l,e))},saveCategory:async(e,t)=>{let n=M(u,t,!V.some(t=>t.id===e),!1);B(t=>t.find(t=>t.id===e)?t.map(t=>t.id===e?{...t,...n}:t):[...t,{id:e,...n}]),await(0,K.setDoc)((0,K.doc)(r.bt,u,e),n,{merge:!0})},deleteCategory:async e=>{B(t=>t.filter(t=>t.id!==e)),await(0,K.deleteDoc)((0,K.doc)(r.bt,u,e))},openInlineEditor:(e,t)=>Ce(e,t)}})})})}):(0,G.jsxs)(`div`,{ref:fe,id:`board-container`,className:`w-full flex-1 min-h-0 flex flex-row gap-4 md:gap-6 overflow-x-auto p-4 md:p-6 snap-x snap-mandatory styled-scrollbars items-start`,children:[Le.map((e,t)=>{let n=ae.filter(t=>t.categoryId===e.id);n.sort((e,t)=>(e.order||0)-(t.order||0));let i=es.find(t=>t.text===e.color)||es.find(e=>e.text===`text-accent`);i.text,i.bgLight,i.bgHover;let a=le?.categoryId===e.id,o=n.filter(e=>e.id!==Oe),s=a?o[le.index]?.id??null:null,c=a&&le.index>=o.length;return(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:t*.1},className:`w-[calc(100vw-80px)] sm:w-[300px] md:w-[320px] shrink-0 flex flex-col max-h-full rounded-3xl p-4 snap-center relative border transition-colors ${es.find(t=>t.text===e.color)?.bgCard||`bg-foreground/[0.02]`} ${es.find(t=>t.text===e.color)?.borderCard||`border-[var(--panel-border)]/50`}`,children:[(0,G.jsx)(`div`,{className:`flex items-center justify-between mb-4 px-2 relative z-[200]`,children:(0,G.jsxs)(`h3`,{className:`font-bold text-[14px] flex items-center w-full text-foreground/80 group relative z-[200]`,children:[_e===e.id?(0,G.jsxs)(`div`,{className:`relative flex-1 w-full flex items-center pr-8 z-[200]`,children:[(0,G.jsx)(`div`,{className:`fixed inset-0 z-[-1]`,onClick:t=>{t.stopPropagation(),Pe(e.id)}}),(0,G.jsx)(`input`,{value:ve,onChange:e=>ye(e.target.value),onBlur:t=>{t.relatedTarget?.closest(`.category-color-picker`)||Pe(e.id)},onKeyDown:t=>t.key===`Enter`&&Pe(e.id),className:`bg-transparent border-none outline-none font-bold text-[14px] w-full p-0 ${e.color||`text-foreground/80`}`,placeholder:`Category name`,autoFocus:!0}),(0,G.jsxs)(`div`,{className:`absolute top-8 left-0 flex gap-1.5 bg-background/95 backdrop-blur-xl border border-[var(--panel-border)] p-2 rounded-xl shadow-xl z-[100] category-color-picker items-center`,tabIndex:-1,children:[(0,G.jsx)(`button`,{onClick:async t=>{t.preventDefault(),t.stopPropagation(),await Ne(e.id,``),Q(null)},className:`w-4 h-4 rounded-full flex items-center justify-center bg-foreground/10 hover:bg-red-500/20 hover:text-red-500 text-foreground/40 transition-colors border border-[var(--panel-border)]/50 shrink-0`,title:`Reset Category Color`,children:(0,G.jsx)(T.t,{className:`w-3 h-3`})}),(0,G.jsx)(`div`,{className:`h-4 w-px bg-[var(--panel-border)]/50 mx-0.5`}),es.map(t=>(0,G.jsx)(`button`,{onMouseDown:async n=>{n.preventDefault(),await Ne(e.id,t.text)},className:`w-4 h-4 rounded-full ${t.bgCircle} hover:scale-125 transition-transform border border-[var(--panel-border)]/50 shrink-0`},t.name))]})]}):(0,G.jsxs)(`div`,{className:`flex items-center gap-2 w-full hover:text-foreground transition-colors pr-8 ${D(e)?`cursor-pointer`:``}`,onClick:()=>{D(e)&&(Q(e.id),ye(e.title))},children:[(0,G.jsx)(`span`,{className:`w-2.5 h-2.5 rounded-full ${es.find(t=>t.text===e.color)?.bgCircle||`bg-foreground/20`} transition-colors shrink-0`}),(0,G.jsx)(`span`,{className:`truncate flex-1 max-w-[200px] ${e.color||``}`,children:e.title||`Untitled Category`}),(0,G.jsx)(`span`,{className:`text-[11px] bg-foreground/10 text-foreground/60 px-1.5 py-0.5 rounded-md font-medium shrink-0`,children:n.length})]}),V.length>1&&D(e)&&(0,G.jsx)(`button`,{onClick:()=>Fe(e.id,e.title),className:`absolute right-0 opacity-100 md:opacity-0 md:group-hover:opacity-100 text-foreground/30 hover:text-red-500 transition-all shrink-0`,children:(0,G.jsx)(w.t,{className:`w-3.5 h-3.5`})})]})}),(0,G.jsxs)(`div`,{"data-board-column":e.id,className:`flex flex-col gap-2.5 flex-1 overflow-y-auto styled-scrollbars pr-1 relative min-h-[150px] rounded-xl transition-colors ${a?`bg-foreground/5 border-dashed border border-accent/20`:``}`,children:[(0,G.jsx)(r.A,{children:n.map(t=>U===t.id?(0,G.jsxs)(r.k.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:`bg-background/80 rounded-xl p-3 shadow-md border border-accent/40 transition-all flex flex-col gap-2 relative z-[100]`,children:[(0,G.jsx)(`div`,{className:`fixed inset-0 z-[-1]`,onClick:t=>{t.stopPropagation(),Ae(e.id)}}),(0,G.jsx)(`textarea`,{placeholder:`Write an item name...`,className:`no-glow bg-transparent border-none outline-none text-[13px] text-foreground/90 font-medium leading-snug resize-none w-full min-h-[40px] relative z-10`,value:ce.name,onChange:e=>q({...ce,name:e.target.value}),onKeyDown:t=>{t.key===`Enter`&&!t.shiftKey&&(t.preventDefault(),Ae(e.id))}}),(0,G.jsx)(`div`,{className:`flex flex-col gap-2 mt-1 relative z-10 w-full`,children:Y.map((t,n)=>(0,G.jsxs)(`div`,{className:`flex items-start bg-foreground/[0.04] border border-[var(--panel-border)]/50 rounded-[8px] px-2.5 py-1.5 w-full`,children:[(0,G.jsx)(`input`,{placeholder:L,value:t.key,onChange:e=>we(n,e.target.value,t.value),onKeyDown:t=>t.key===`Enter`&&Ae(e.id),className:`no-glow bg-transparent outline-none text-[11px] text-foreground/50 font-bold placeholder:text-foreground/30 relative top-[1px] shrink-0`,style:{width:`${Math.max(3,t.key.length||L.length)}ch`}}),(0,G.jsx)(`span`,{className:`text-[11px] text-foreground/50 font-bold mr-1.5 relative top-[1px]`,children:`:`}),(0,G.jsx)(`textarea`,{rows:1,placeholder:R,value:t.value,onChange:e=>we(n,t.key,e.target.value),onInput:e=>{let t=e.target;t.style.height=`auto`,t.style.height=t.scrollHeight+`px`},onKeyDown:t=>{t.key===`Enter`&&!t.shiftKey&&(t.preventDefault(),Ae(e.id))},className:`no-glow bg-transparent outline-none text-[12px] text-foreground/90 font-medium flex-1 min-w-[40px] placeholder:opacity-40 resize-none overflow-hidden leading-tight relative top-[1px]`})]},n))}),pe===t.id&&(0,G.jsx)(`div`,{className:`flex items-center justify-end pt-1`,children:(0,G.jsx)(`div`,{className:`w-3 h-3 border-2 border-accent border-t-transparent rounded-full animate-spin`})})]},t.id):(0,W.createElement)(r.k.div,{...D(t)?De(t.id):{"data-drag-key":t.id},initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},key:t.id,className:`bg-background/80 rounded-xl p-3 shadow-sm hover:shadow-md ${D(t)?`cursor-grab active:cursor-grabbing`:``} hover:border-accent/40 transition-all group flex flex-col gap-2 relative z-10 border ${s===t.id?`border-accent border-t-2 translate-y-1`:`border-[var(--panel-border)]`} ${Oe===t.id?`opacity-30 border-dashed border-2`:``}`},D(t)&&(0,G.jsxs)(`div`,{className:`absolute top-2 right-2 flex items-center gap-1.5 opacity-100 md:opacity-0 md:group-hover:opacity-100 transition-opacity bg-background/90 backdrop-blur-md border border-[var(--panel-border)] rounded-lg p-1 z-20 shadow-md`,children:[(0,G.jsx)(`span`,{...Xo,"aria-hidden":`true`,className:`p-1 rounded-md text-foreground/40 hover:text-foreground/70 transition-colors`,children:(0,G.jsx)($e,{className:`w-3.5 h-3.5`})}),(0,G.jsx)(`button`,{onClick:n=>{n.stopPropagation(),Ce(e.id,t)},className:`p-1 hover:bg-foreground/5 rounded-md text-foreground/60 hover:text-accent transition-colors`,children:(0,G.jsx)(f.s,{className:`w-3.5 h-3.5`})}),(0,G.jsx)(`button`,{onClick:e=>{e.stopPropagation(),je(t.id,t.name)},className:`p-1 hover:bg-red-500/10 rounded-md text-foreground/60 hover:text-red-500 transition-colors`,children:(0,G.jsx)(w.t,{className:`w-3.5 h-3.5`})})]}),(0,G.jsx)(`p`,{className:`text-[13px] text-foreground/90 font-medium leading-snug break-words pr-12`,children:t.name}),D(t)&&Le.length>1&&(0,G.jsx)(`div`,{className:`-ml-2 -mb-1 mt-0.5 flex items-center`,"data-no-drag":``,children:(0,G.jsx)(r.w,{compact:!0,portal:!0,direction:`auto`,variant:`ghost`,ariaLabel:`Move “${t.name}” to another category`,value:e.id,options:Le.map(e=>({value:e.id,label:e.title||`Untitled Category`})),onChange:n=>{n!==e.id&&Te(t.id,n,0)}})}),t.fields&&t.fields.length>0&&(0,G.jsx)(`div`,{className:`flex flex-row flex-wrap gap-2 mt-2`,children:t.fields.map((e,t)=>(0,G.jsxs)(`div`,{className:`inline-flex bg-foreground/[0.04] border border-[var(--panel-border)]/50 rounded-[8px] px-2.5 py-1.5 max-w-full`,children:[(0,G.jsxs)(`span`,{className:`text-[11px] text-foreground/50 font-bold mr-1.5 relative -top-[1px] shrink-0 break-all`,children:[e.key,`:`]}),(0,G.jsx)(`span`,{className:`text-[12px] text-foreground/90 font-medium break-words leading-tight min-w-0`,children:e.value})]},t))}),(0,G.jsxs)(`div`,{className:`flex items-end justify-between mt-3 pt-3 border-t border-[var(--panel-border)]/50 w-full gap-2`,children:[(()=>{let e=C&&h?xi(t,m):null;return e?(0,G.jsxs)(`div`,{className:`flex items-center gap-1.5 pr-2 border-r border-[var(--panel-border)] border-dashed mr-auto`,children:[e.avatar?(0,G.jsx)(r.t,{src:e.avatar,alt:``,className:`w-4 h-4 rounded-full shrink-0`}):(0,G.jsx)(`div`,{className:`w-4 h-4 rounded-full bg-accent/20 text-accent flex items-center justify-center text-[9px] font-bold shrink-0`,children:e.name[0].toUpperCase()}),(0,G.jsx)(`span`,{className:`text-[10px] font-bold text-foreground/60 truncate max-w-[80px]`,children:e.name})]}):(0,G.jsx)(`div`,{className:`flex items-center gap-2 pr-2 border-r border-[var(--panel-border)] border-dashed mr-auto`})})(),(0,G.jsx)(`span`,{className:`text-[10px] text-foreground/40 font-bold text-right pt-0.5 shrink-0 max-w-[50%] truncate flex-1`,children:t.id.startsWith(`item_`)?new Date(parseInt(t.id.split(`_`)[1])).toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}):`Recently Added`})]})))}),c&&o.length>0&&(0,G.jsx)(`div`,{"aria-hidden":`true`,className:`h-0.5 -mt-1 rounded-full bg-accent`}),H===e.id?(0,G.jsxs)(r.k.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:`bg-background/80 rounded-xl p-3 shadow-md border border-accent/40 transition-all flex flex-col gap-2 relative z-[100] mt-1`,children:[(0,G.jsx)(`div`,{className:`fixed inset-0 z-[-1]`,onClick:t=>{t.stopPropagation(),Ae(e.id)}}),(0,G.jsx)(`textarea`,{placeholder:`Write an item name...`,className:`no-glow bg-transparent border-none outline-none text-[13px] text-foreground/90 font-medium leading-snug resize-none w-full min-h-[40px] relative z-10`,value:ce.name,onChange:e=>q({...ce,name:e.target.value}),onKeyDown:t=>{t.key===`Enter`&&!t.shiftKey&&(t.preventDefault(),Ae(e.id))},autoFocus:!0}),(0,G.jsx)(`div`,{className:`flex flex-col gap-2 mt-1 relative z-10 w-full`,children:Y.map((t,n)=>(0,G.jsxs)(`div`,{className:`flex items-start bg-foreground/[0.04] border border-[var(--panel-border)]/50 rounded-[8px] px-2.5 py-1.5 w-full`,children:[(0,G.jsx)(`input`,{placeholder:L,style:{width:`${Math.max(3,t.key.length||L.length)}ch`},value:t.key,onChange:e=>we(n,e.target.value,t.value),onKeyDown:t=>t.key===`Enter`&&Ae(e.id),className:`no-glow bg-transparent outline-none text-[11px] text-foreground/50 font-bold placeholder:text-foreground/30 relative top-[1px]`}),(0,G.jsx)(`span`,{className:`text-[11px] text-foreground/50 font-bold mr-1.5 relative top-[1px]`,children:`:`}),(0,G.jsx)(`textarea`,{rows:1,placeholder:R,value:t.value,onChange:e=>we(n,t.key,e.target.value),onInput:e=>{let t=e.target;t.style.height=`auto`,t.style.height=t.scrollHeight+`px`},onKeyDown:t=>{t.key===`Enter`&&!t.shiftKey&&(t.preventDefault(),Ae(e.id))},className:`no-glow bg-transparent outline-none text-[12px] text-foreground/90 font-medium flex-1 min-w-[40px] placeholder:opacity-40 resize-none overflow-hidden leading-tight relative top-[1px]`})]},n))}),pe===`new`&&(0,G.jsx)(`div`,{className:`flex items-center justify-end pt-1`,children:(0,G.jsx)(`div`,{className:`w-3 h-3 border-2 border-accent border-t-transparent rounded-full animate-spin`})})]}):(0,G.jsxs)(`button`,{onClick:()=>Ce(e.id),className:`flex items-center gap-2 justify-center w-full py-2.5 mt-1 rounded-xl border border-transparent text-[12px] font-bold text-foreground/40 hover:text-foreground hover:bg-foreground/[0.03] transition-all shrink-0`,children:[(0,G.jsx)(b.t,{className:`w-4 h-4`}),` Add Item`]})]})]},e.id)}),(0,G.jsx)(`div`,{className:`w-[10px] shrink-0 pointer-events-none`}),Ee&&ke&&typeof document<`u`&&(0,J.createPortal)((0,G.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none fixed z-[9995] rotate-[1.5deg] rounded-xl border border-accent/40 bg-background/95 p-3 shadow-2xl`,style:{left:Ee.x-Ee.offsetX,top:Ee.y-Ee.offsetY,width:Ee.width},children:(0,G.jsx)(`p`,{className:`text-[13px] text-foreground/90 font-medium leading-snug break-words`,children:ke.name})}),document.body)]})})]})]}),(0,G.jsx)(`style`,{children:`.styled-scrollbars::-webkit-scrollbar { width: 6px; height: 6px; } .styled-scrollbars::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent-color) 20%, transparent); border-radius: 4px; } .styled-scrollbars::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--accent-color) 40%, transparent); }`}),(0,G.jsx)(re.t,{isOpen:!!be,title:`Confirm Deletion`,message:(0,G.jsxs)(G.Fragment,{children:[`Are you sure you want to delete `,(0,G.jsx)(`strong`,{className:`text-foreground font-extrabold break-words mx-1`,children:be?.title}),` This action is permanent.`]}),onConfirm:Ie,onCancel:()=>xe(null),isProcessing:he,confirmText:`Yes, Delete`})]})}function ns(e){return Array.isArray?Array.isArray(e):fs(e)===`[object Array]`}function rs(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function is(e){return e==null?``:rs(e)}function as(e){return typeof e==`string`}function os(e){return typeof e==`number`}function ss(e){return e===!0||e===!1||ls(e)&&fs(e)==`[object Boolean]`}function cs(e){return typeof e==`object`}function ls(e){return cs(e)&&e!==null}function us(e){return e!=null}function ds(e){return!e.trim().length}function fs(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var ps=`Incorrect 'index' type`,ms=e=>`Invalid value for key ${e}`,hs=e=>`Pattern length exceeds max of ${e}.`,gs=e=>`Missing ${e} property in key`,_s=e=>`Property 'weight' in key '${e}' must be a positive integer`,vs=Object.prototype.hasOwnProperty,ys=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=bs(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function bs(e){let t=null,n=null,r=null,i=1,a=null;if(as(e)||ns(e))r=e,t=xs(e),n=Ss(e);else{if(!vs.call(e,`name`))throw Error(gs(`name`));let o=e.name;if(r=o,vs.call(e,`weight`)&&(i=e.weight,i<=0))throw Error(_s(o));t=xs(o),n=Ss(o),a=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:a}}function xs(e){return ns(e)?e:e.split(`.`)}function Ss(e){return ns(e)?e.join(`.`):e}function Cs(e,t){let n=[],r=!1,i=(e,t,a,o)=>{if(us(e))if(!t[a])n.push(o===void 0?e:{v:e,i:o});else{let s=e[t[a]];if(!us(s))return;if(a===t.length-1&&(as(s)||os(s)||ss(s)||typeof s==`bigint`))n.push(o===void 0?is(s):{v:is(s),i:o});else if(ns(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)i(s[e],t,a+1,e)}else t.length&&i(s,t,a+1,o)}};return i(e,as(t)?t.split(`.`):t,0),r?n:n[0]}var ws={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Ts={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},Es={location:0,threshold:.6,distance:100},Ds={useExtendedSearch:!1,useTokenSearch:!1,getFn:Cs,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},Os=Object.freeze({...Ts,...ws,...Es,...Ds}),ks=/[^ ]+/g;function As(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=t.match(ks).length;if(n.has(i))return n.get(i);let a=1/i**(.5*e),o=parseFloat(Math.round(a*r)/r);return n.set(i,o),o},clear(){n.clear()}}}var js=class{constructor({getFn:e=Os.getFn,fieldNormWeight:t=Os.fieldNormWeight}={}){this.norm=As(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,as(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();as(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)--this.records[t].i}removeAll(e){for(let t=e.length-1;t>=0;--t)this.records.splice(e[t],1);for(let e=0,t=this.records.length;e<t;e+=1)this.records[e].i=e}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!us(e)||ds(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach((t,r)=>{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(us(i)){if(ns(i)){let e=[];for(let t=0,n=i.length;t<n;t+=1){let n=i[t];if(us(n)){if(as(n)){if(!ds(n)){let r={v:n,i:t,n:this.norm.get(n)};e.push(r)}}else if(us(n.v)){let t=as(n.v)?n.v:is(n.v);if(!ds(t)){let r={v:t,i:n.i,n:this.norm.get(t)};e.push(r)}}}}n.$[r]=e}else if(as(i)&&!ds(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}}}),this.records.push(n)}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function Ms(e,t,{getFn:n=Os.getFn,fieldNormWeight:r=Os.fieldNormWeight}={}){let i=new js({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(bs)),i.setSources(t),i.create(),i}function Ns(e,{getFn:t=Os.getFn,fieldNormWeight:n=Os.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new js({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function Ps(e=[],t=Os.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&r===-1?r=a:!o&&r!==-1&&(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}var Fs=32;function Is(e,t,n,{location:r=Os.location,distance:i=Os.distance,threshold:a=Os.threshold,findAllMatches:o=Os.findAllMatches,minMatchCharLength:s=Os.minMatchCharLength,includeMatches:c=Os.includeMatches,ignoreLocation:l=Os.ignoreLocation}={}){if(t.length>Fs)throw Error(hs(Fs));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=(e,t)=>{let n=e/u;if(l)return n;let r=Math.abs(f-t);return i?n+r/i:r?1:n},g=s>1||c,_=g?Array(d):[],v;for(;(v=e.indexOf(t,m))>-1;){let e=h(0,v);if(p=Math.min(e,p),m=v+u,g){let e=0;for(;e<u;)_[v+e]=1,e+=1}}m=-1;let y=[],b=1,x=u+d,S=1<<u-1;for(let t=0;t<u;t+=1){let r=0,i=x;for(;r<i;)h(t,f+i)<=p?r=i:x=i,i=Math.floor((x-r)/2+r);x=i;let a=Math.max(1,f-i+1),s=o?d:Math.min(f+i,d)+u,c=Array(s+2);c[s+1]=(1<<t)-1;for(let r=s;r>=a;--r){let i=r-1,o=n[e[i]];if(g&&(_[i]=+!!o),c[r]=(c[r+1]<<1|1)&o,t&&(c[r]|=(y[r+1]|y[r])<<1|1|y[r+1]),c[r]&S&&(b=h(t,i),b<=p)){if(p=b,m=i,m<=f)break;a=Math.max(1,2*f-m)}}if(h(t+1,f)>p)break;y=c}let C={isMatch:m>=0,score:Math.max(.001,b)};if(g){let e=Ps(_,s);e.length?c&&(C.indices=e):C.isMatch=!1}return C}function Ls(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}function Rs(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){let r=t[t.length-1],i=e[n];i[0]<=r[1]+1?r[1]=Math.max(r[1],i[1]):t.push(i)}return t}var zs={ł:`l`,Ł:`L`,đ:`d`,Đ:`D`,ø:`o`,Ø:`O`,ħ:`h`,Ħ:`H`,ŧ:`t`,Ŧ:`T`,ı:`i`,ß:`ss`},Bs=RegExp(`[`+Object.keys(zs).join(``)+`]`,`g`),Vs=String.prototype.normalize?e=>e.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``).replace(Bs,e=>zs[e]):e=>e,Hs=class{constructor(e,{location:t=Os.location,threshold:n=Os.threshold,distance:r=Os.distance,includeMatches:i=Os.includeMatches,findAllMatches:a=Os.findAllMatches,minMatchCharLength:o=Os.minMatchCharLength,isCaseSensitive:s=Os.isCaseSensitive,ignoreDiacritics:c=Os.ignoreDiacritics,ignoreLocation:l=Os.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?Vs(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:Ls(e),startIndex:t})},d=this.pattern.length;if(d>Fs){let e=0,t=d%Fs,n=d-t;for(;e<n;)u(this.pattern.substr(e,Fs),e),e+=Fs;if(t){let e=d-Fs;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?Vs(e):e,this.pattern===e){let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[],d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{let{isMatch:m,score:h,indices:g}=Is(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&u.push(...g)});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=Rs(u)),p}},Us=class{constructor(e){this.pattern=e}static isMultiMatch(e){return Ws(e,this.multiRegex)}static isSingleMatch(e){return Ws(e,this.singleRegex)}search(e){return{isMatch:!1,score:1}}};function Ws(e,t){let n=e.match(t);return n?n[1]:null}var Gs=class extends Us{constructor(e){super(e)}static get type(){return`exact`}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},Ks=class extends Us{constructor(e){super(e)}static get type(){return`inverse-exact`}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=e.indexOf(this.pattern)===-1;return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},qs=class extends Us{constructor(e){super(e)}static get type(){return`prefix-exact`}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},Js=class extends Us{constructor(e){super(e)}static get type(){return`inverse-prefix-exact`}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},Ys=class extends Us{constructor(e){super(e)}static get type(){return`suffix-exact`}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[e.length-this.pattern.length,e.length-1]}}},Xs=class extends Us{constructor(e){super(e)}static get type(){return`inverse-suffix-exact`}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},Zs=class extends Us{constructor(e,{location:t=Os.location,threshold:n=Os.threshold,distance:r=Os.distance,includeMatches:i=Os.includeMatches,findAllMatches:a=Os.findAllMatches,minMatchCharLength:o=Os.minMatchCharLength,isCaseSensitive:s=Os.isCaseSensitive,ignoreDiacritics:c=Os.ignoreDiacritics,ignoreLocation:l=Os.ignoreLocation}={}){super(e),this._bitapSearch=new Hs(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l})}static get type(){return`fuzzy`}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}},Qs=class extends Us{constructor(e){super(e)}static get type(){return`include`}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t=0,n,r=[],i=this.pattern.length;for(;(n=e.indexOf(this.pattern,t))>-1;)t=n+i,r.push([n,t-1]);let a=!!r.length;return{isMatch:a,score:+!a,indices:r}}},$s=[Gs,Qs,qs,Js,Xs,Ys,Ks,Zs],ec=$s.length,tc=`\0`,nc=`|`;function rc(e){let t=[],n=e.length,r=0;for(;r<n;){for(;r<n&&e[r]===` `;)r++;if(r>=n)break;let i=r;for(;i<n&&e[i]!==` `&&e[i]!==`"`;)i++;if(i<n&&e[i]===`"`){for(i++;i<n;){if(e[i]===`"`){let t=i+1;if(t>=n||e[t]===` `){i++;break}if(e[t]===`$`&&(t+1>=n||e[t+1]===` `)){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i<n&&e[i]!==` `;)i++;t.push(e.substring(r,i)),r=i}}return t}function ic(e,t={}){return e.replace(/\\\|/g,tc).split(nc).map(e=>{let n=rc(e.replace(/\u0000/g,`|`).trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){let i=n[e],a=!1,o=-1;for(;!a&&++o<ec;){let e=$s[o],n=e.isMultiMatch(i);n&&(r.push(new e(n,t)),a=!0)}if(!a)for(o=-1;++o<ec;){let e=$s[o],n=e.isSingleMatch(i);if(n){r.push(new e(n,t));break}}}return r})}var ac=new Set([Zs.type,Qs.type]),oc=class{constructor(e,{isCaseSensitive:t=Os.isCaseSensitive,ignoreDiacritics:n=Os.ignoreDiacritics,includeMatches:r=Os.includeMatches,minMatchCharLength:i=Os.minMatchCharLength,ignoreLocation:a=Os.ignoreLocation,findAllMatches:o=Os.findAllMatches,location:s=Os.location,threshold:c=Os.threshold,distance:l=Os.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:c,distance:l},e=t?e:e.toLowerCase(),e=n?Vs(e):e,this.pattern=e,this.query=ic(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?Vs(e):e;let a=0,o=[],s=0,c=!1;for(let r=0,i=t.length;r<i;r+=1){let i=t[r];o.length=0,a=0,c=!1;for(let t=0,r=i.length;t<r;t+=1){let r=i[t],{isMatch:l,indices:u,score:d}=r.search(e);if(l){a+=1,s+=d;let e=r.constructor.type;e.startsWith(`inverse`)&&(c=!0),n&&(ac.has(e)?o.push(...u):o.push(u))}else{s=0,a=0,o.length=0,c=!1;break}}if(a){let e={isMatch:!0,score:s/a};return c&&(e.hasInverse=!0),n&&(e.indices=Rs(o)),e}}return{isMatch:!1,score:1}}},sc=[];function cc(...e){sc.push(...e)}function lc(e,t){for(let n=0,r=sc.length;n<r;n+=1){let r=sc[n];if(r.condition(e,t))return new r(e,t)}return new Hs(e,t)}var uc={AND:`$and`,OR:`$or`},dc={PATH:`$path`,PATTERN:`$val`},fc=e=>!!(e[uc.AND]||e[uc.OR]),pc=e=>!!e[dc.PATH],mc=e=>!ns(e)&&cs(e)&&!fc(e),hc=e=>({[uc.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function gc(e,t,{auto:n=!0}={}){let r=e=>{if(as(e)){let r={keyId:null,pattern:e};return n&&(r.searcher=lc(e,t)),r}let i=Object.keys(e),a=pc(e);if(!a&&i.length>1&&!fc(e))return r(hc(e));if(mc(e)){let r=a?e[dc.PATH]:i[0],o=a?e[dc.PATTERN]:e[r];if(!as(o))throw Error(ms(r));let s={keyId:Ss(r),pattern:o};return n&&(s.searcher=lc(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];ns(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return fc(e)||(e=hc(e)),r(e)}function _c(e,{ignoreFieldNorm:t=Os.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),n}function vc(e,{ignoreFieldNorm:t=Os.ignoreFieldNorm}){e.forEach(e=>{e.score=_c(e.matches,{ignoreFieldNorm:t})})}var yc=class{constructor(e){this.limit=e,this.heap=[]}get size(){return this.heap.length}shouldInsert(e){return this.size<this.limit||e<this.heap[0].score}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):e.score<this.heap[0].score&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(e){return this.heap.sort(e)}_bubbleUp(e){let t=this.heap;for(;e>0;){let n=e-1>>1;if(t[e].score<=t[n].score)break;let r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){let t=this.heap,n=t.length,r=e;do{e=r;let i=2*e+1,a=2*e+2;if(i<n&&t[i].score>t[r].score&&(r=i),a<n&&t[a].score>t[r].score&&(r=a),r!==e){let n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function bc(e,t){let n=e.matches;t.matches=[],us(n)&&n.forEach(e=>{if(!us(e.indices)||!e.indices.length)return;let{indices:n,value:r}=e,i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function xc(e,t){t.score=e.score}function Sc(e,t,{includeMatches:n=Os.includeMatches,includeScore:r=Os.includeScore}={}){let i=[];return n&&i.push(bc),r&&i.push(xc),e.map(e=>{let{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach(t=>{t(e,r)}),r})}var Cc=/\b\w+\b/g;function wc({isCaseSensitive:e=!1,ignoreDiacritics:t=!1}={}){return{tokenize(n){return e||(n=n.toLowerCase()),t&&(n=Vs(n)),n.match(Cc)||[]}}}function Tc(e,t,n){let r=new Map,i=new Map,a=0;function o(e,t,o,s){let c=n.tokenize(e);if(!c.length)return;a++;let l=new Map;for(let e of c)l.set(e,(l.get(e)||0)+1);for(let[e,n]of l){let a={docIdx:t,keyIdx:o,subIdx:s,tf:n},c=r.get(e);c||(c=[],r.set(e,c)),c.push(a),i.set(e,(i.get(e)||0)+1)}}for(let n of e){let{i:e,v:r,$:i}=n;if(r!==void 0){o(r,e,-1,-1);continue}if(i)for(let n=0;n<t;n++){let t=i[n];if(t)if(Array.isArray(t))for(let r of t)o(r.v,e,n,r.i??-1);else o(t.v,e,n,-1)}}return{terms:r,fieldCount:a,df:i}}function Ec(e,t,n,r){let{i,v:a,$:o}=t;function s(t,n,a){let o=r.tokenize(t);if(!o.length)return;e.fieldCount++;let s=new Map;for(let e of o)s.set(e,(s.get(e)||0)+1);for(let[t,r]of s){let o={docIdx:i,keyIdx:n,subIdx:a,tf:r},s=e.terms.get(t);s||(s=[],e.terms.set(t,s)),s.push(o),e.df.set(t,(e.df.get(t)||0)+1)}}if(a!==void 0){s(a,-1,-1);return}if(o)for(let e=0;e<n;e++){let t=o[e];if(t)if(Array.isArray(t))for(let n of t)s(n.v,e,n.i??-1);else s(t.v,e,-1)}}function Dc(e,t){for(let[n,r]of e.terms){let i=r.filter(e=>e.docIdx!==t),a=r.length-i.length;a>0&&(e.fieldCount-=a,e.df.set(n,(e.df.get(n)||0)-a),i.length===0?(e.terms.delete(n),e.df.delete(n)):e.terms.set(n,i))}}var Oc=class{constructor(e,t,n){this.options={...Os,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new ys(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=lc(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof js))throw Error(ps);if(this._myIndex=t||Ms(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=wc({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});this._invertedIndex=Tc(this._myIndex.records,this._myIndex.keys.length,e)}}add(e){if(us(e)&&(this._docs.push(e),this._myIndex.add(e),this._invertedIndex)){let e=this._myIndex.records[this._myIndex.records.length-1],t=wc({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});Ec(this._invertedIndex,e,this._myIndex.keys.length,t)}}remove(e=()=>!1){let t=[],n=[];for(let r=0,i=this._docs.length;r<i;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){if(this._invertedIndex)for(let e of n)Dc(this._invertedIndex,e);for(let e=n.length-1;e>=0;--e)this._docs.splice(n[e],1);this._myIndex.removeAll(n)}return t}removeAt(e){this._invertedIndex&&Dc(this._invertedIndex,e);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),t}getIndex(){return this._myIndex}search(e,t){let{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:a,sortFn:o,ignoreFieldNorm:s}=this.options;if(as(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return os(n)&&n>-1&&(e=e.slice(0,n)),e}let c=os(n)&&n>0&&as(e),l;if(c){let t=new yc(n);as(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),l=t.extractSorted(o)}else l=as(e)?as(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),vc(l,{ignoreFieldNorm:s}),a&&l.sort(o),os(n)&&n>-1&&(l=l.slice(0,n));return Sc(l,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),{records:i}=this._myIndex,a=t?null:[];return i.forEach(({v:e,i,n:o})=>{if(!us(e))return;let{isMatch:s,score:c,indices:l}=r.searchIn(e);if(s){let r={item:e,idx:i,matches:[{score:c,value:e,norm:o,indices:l}]};t?(r.score=_c(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):a.push(r)}}),a}_searchLogical(e){let t=gc(e,this.options),n=(e,t,r)=>{if(!(`children`in e)){let{keyId:n,searcher:i}=e,a;return n===null?(a=[],this._myIndex.keys.forEach((e,n)=>{a.push(...this._findMatches({key:e,value:t[n],searcher:i}))})):a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i}),a&&a.length?[{idx:r,item:t,matches:a}]:[]}let{children:i,operator:a}=e,o=[];for(let e=0,s=i.length;e<s;e+=1){let s=i[e],c=n(s,t,r);if(c.length)o.push(...c);else if(a===uc.AND)return[]}return o},r=this._myIndex.records,i=new Map,a=[];return r.forEach(({$:e,i:r})=>{if(us(e)){let o=n(t,e,r);o.length&&(i.has(r)||(i.set(r,{idx:r,item:e,matches:[]}),a.push(i.get(r))),o.forEach(({matches:e})=>{i.get(r).matches.push(...e)}))}}),a}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),{keys:i,records:a}=this._myIndex,o=t?null:[];return a.forEach(({$:e,i:a})=>{if(!us(e))return;let s=[],c=!1,l=!1;if(i.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(s.push(...i),i[0].hasInverse&&(l=!0)):c=!0}),!(l&&c)&&s.length){let r={idx:a,item:e,matches:s};t?(r.score=_c(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):o.push(r)}}),o}_findMatches({key:e,value:t,searcher:n}){if(!us(t))return[];let r=[];if(ns(t))t.forEach(({v:t,i,n:a})=>{if(!us(t))return;let{isMatch:o,score:s,indices:c,hasInverse:l}=n.searchIn(t);o&&r.push({score:s,key:e,value:t,idx:i,norm:a,indices:c,hasInverse:l})});else{let{v:i,n:a}=t,{isMatch:o,score:s,indices:c,hasInverse:l}=n.searchIn(i);o&&r.push({score:s,key:e,value:i,norm:a,indices:c,hasInverse:l})}return r}},kc=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=wc({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics});let n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(let e of n){this.termSearchers.push(new Hs(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));let n=r.get(e)||0,a=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(a)}}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],n=0,r=0,i=0;for(let a=0;a<this.termSearchers.length;a++){let o=this.termSearchers[a].searchIn(e),s=this.idfWeights[a];r+=s,o.isMatch&&(i++,n+=s*(1-o.score),o.indices&&t.push(...o.indices))}if(i===0)return{isMatch:!1,score:1};let a=r>0?1-n/r:0,o={isMatch:!0,score:Math.max(.001,a)};return this.options.includeMatches&&t.length&&(o.indices=Rs(t)),o}};Oc.version=`7.3.0`,Oc.createIndex=Ms,Oc.parseIndex=Ns,Oc.config=Os,Oc.match=function(e,t,n){return lc(e,{...Os,...n}).searchIn(t)},Oc.parseQuery=gc,cc(oc),cc(kc),Oc.use=function(...e){e.forEach(e=>cc(e))};var Ac=[{text:`text-red-400`,bgCircle:`bg-red-400`,bgCard:`bg-red-500/[0.08]`,borderCard:`border-red-500/30`,bgLight:`bg-red-500/15`,bgHover:`hover:bg-red-500`,bgAlt:`bg-red-500/[0.04]`,name:`Red`},{text:`text-orange-400`,bgCircle:`bg-orange-400`,bgCard:`bg-orange-500/[0.08]`,borderCard:`border-orange-500/30`,bgLight:`bg-orange-500/15`,bgHover:`hover:bg-orange-500`,bgAlt:`bg-orange-500/[0.04]`,name:`Orange`},{text:`text-yellow-400`,bgCircle:`bg-yellow-400`,bgCard:`bg-yellow-500/[0.08]`,borderCard:`border-yellow-500/30`,bgLight:`bg-yellow-500/15`,bgHover:`hover:bg-yellow-500`,bgAlt:`bg-yellow-500/[0.04]`,name:`Yellow`},{text:`text-green-400`,bgCircle:`bg-green-400`,bgCard:`bg-green-500/[0.08]`,borderCard:`border-green-500/30`,bgLight:`bg-green-500/15`,bgHover:`hover:bg-green-500`,bgAlt:`bg-green-500/[0.04]`,name:`Green`},{text:`text-blue-400`,bgCircle:`bg-blue-400`,bgCard:`bg-blue-500/[0.08]`,borderCard:`border-blue-500/30`,bgLight:`bg-blue-500/15`,bgHover:`hover:bg-blue-500`,bgAlt:`bg-blue-500/[0.04]`,name:`Blue`},{text:`text-accent`,bgCircle:`bg-accent`,bgCard:`bg-accent/[0.08]`,borderCard:`border-accent/30`,bgLight:`bg-accent/15`,bgHover:`hover:bg-accent`,bgAlt:`bg-accent/[0.04]`,name:`Purple`},{text:`text-pink-400`,bgCircle:`bg-pink-400`,bgCard:`bg-pink-500/[0.08]`,borderCard:`border-pink-500/30`,bgLight:`bg-pink-500/15`,bgHover:`hover:bg-pink-500`,bgAlt:`bg-pink-500/[0.04]`,name:`Pink`},{text:`text-foreground/60`,bgCircle:`bg-foreground/30`,bgCard:`bg-foreground/[0.04]`,borderCard:`border-[var(--panel-border)]/50`,bgLight:`bg-foreground/15`,bgHover:`hover:bg-foreground/30`,bgAlt:`bg-foreground/[0.02]`,name:`Default`}];function jc({title:e=`Table View`,subtitle:t=`/table`,backUrl:l,tableCollection:u=`pub_table_data`,config:d,customContent:p}){let{user:m}=n.Q(),h=!!d,g=d?.isInternal||d?.isShared;d?.isPrivate&&d?.isAdmin;let v=d?.isAdmin||g,y=o.j(u),x=c.f(),S=F.m(u),C=h?v||y||u.startsWith(`role_`):!0,[D,k]=(0,W.useState)(()=>y?c.u(u):``),A=c.o({on:u.startsWith(`user_`)&&!y,everyone:!1}),j=A.uid||m?.uid||``,ee=(e,t)=>m?y?t?c.l({uid:m.uid,...vi(m),...e},m.uid):e:u.startsWith(`user_`)?{...e,uid:j||m.uid}:t?{uid:m.uid,...e}:e:e,M=!!p,N=d?.showButton!==!1&&!M,P=d?.buttonText||`+`,te=d?.buttonStyle||`secondary`,I=d?.showExportButton!==!1,[L,R]=(0,W.useState)([]),ne=y?S.records:L,[ie,z]=(0,W.useState)(`demo`),[B,ae]=(0,W.useState)(!1),[V,H]=(0,W.useState)(!1),[oe,U]=(0,W.useState)(``),[se,ce]=(0,W.useState)(!1),[q,J]=(0,W.useState)(null),[Y,X]=(0,W.useState)(null),[le,Z]=(0,W.useState)(``),[ue,de]=(0,W.useState)(!1),[fe,pe]=(0,W.useState)(``),[me,he]=(0,W.useState)(null),[ge,_e]=(0,W.useState)(null),[Q,ve]=(0,W.useState)(null),[ye,be]=(0,W.useState)(!1);(0,W.useEffect)(()=>{let e=u.startsWith(`user_`);if(e&&!m||y)return;let t=e?`${u}|${j}`:u;try{let e=localStorage.getItem(`fbos_tables_${t}`);e&&R(JSON.parse(e))}catch{}let n=(0,K.onSnapshot)(e&&m?(0,K.query)((0,K.collection)(r.bt,u),(0,K.where)(`uid`,`==`,j||m.uid)):(0,K.collection)(r.bt,u),n=>{let i=[];if(n.forEach(e=>{i.push({id:e.id,...e.data()})}),i.length===0){let t={name:`Unnamed Table`,columns:[`Column 1`,`Column 2`,`Column 3`,`Column 4`],...m?{uid:j||m.uid}:{},rows:[{id:`1`,"Column 1":``,"Column 2":``,"Column 3":``,"Column 4":``},{id:`2`,"Column 1":``,"Column 2":``,"Column 3":``,"Column 4":``}]};(0,K.setDoc)((0,K.doc)(r.bt,u,e&&m?`demo_${j||m.uid}`:`demo`),t)}else{let e=i.sort((e,t)=>(e.name||``).localeCompare(t.name||``));R(e),localStorage.setItem(`fbos_tables_${t}`,JSON.stringify(e))}},a.d);return()=>n()},[u,m,y,j]);let xe=(0,W.useRef)(!1);(0,W.useEffect)(()=>{!y||!m||S.loading||S.records.length||xe.current||(xe.current=!0,(0,K.setDoc)((0,K.doc)(r.bt,u,`demo_${m.uid}`),c.l({uid:m.uid,...vi(m),name:`Unnamed Table`,columns:[`Column 1`,`Column 2`,`Column 3`,`Column 4`],rows:[{id:`1`,"Column 1":``,"Column 2":``,"Column 3":``,"Column 4":``},{id:`2`,"Column 1":``,"Column 2":``,"Column 3":``,"Column 4":``}]},m.uid)))},[y,m,S.loading,S.records.length,u]);let $=ne.find(e=>e.id===ie)||ne[0]||{columns:[],rows:[]},Se=!y||F.n($,x),Ce=async e=>{$.id&&(m&&u.startsWith(`user_`)&&(e.uid=j||m.uid),await(0,K.setDoc)((0,K.doc)(r.bt,u,$.id),e,{merge:!0}))},we=()=>{if(!$.rows||$.rows.length===0)return;let e=$.columns.join(`,`),t=$.rows.map(e=>$.columns.map(t=>`"${e[t]||``}"`).join(`,`)).join(`
|
|
6
|
+
`),n=new Blob([`${e}\n${t}`],{type:`text/csv`}),r=window.URL.createObjectURL(n),i=document.createElement(`a`);i.href=r,i.download=`export_${$.name||`table`}.csv`,i.click(),window.URL.revokeObjectURL(r)},Te=(e,t,n)=>{Ce({...$,rows:$.rows.map(r=>r.id===e?{...r,[t]:n}:r)})},Ee=()=>{let e=vi(m),t={id:Date.now().toString(),...m?{_uid:m.uid,_creatorName:e.creatorName,_creatorAvatar:e.creatorAvatar}:{}};$.columns.forEach(e=>t[e]=``),Ce({...$,rows:[...$.rows||[],t]})},De=e=>{Ce({...$,rows:$.rows.filter(t=>t.id!==e)})},Oe=()=>{Q&&(Q.kind===`row`?De(Q.id):Ae(Q.name),ve(null))},ke=()=>{let e=`Column ${($.columns?.length||0)+1}`;$.columns?.includes(e)||(Ce({...$,columns:[...$.columns||[],e]}),setTimeout(()=>{let e=document.getElementById(`table-scroll-container`);e&&e.scrollTo({left:e.scrollWidth,behavior:`smooth`})},100))},Ae=e=>{let t=($.columns||[]).filter(t=>t!==e),n=($.rows||[]).map(t=>{let n={...t};return delete n[e],n}),r={...$.colColors||{}};delete r[e],Ce({...$,columns:t,rows:n,colColors:r})},je=async e=>{e.trim()&&$.id&&e!==$.name&&await(0,K.setDoc)((0,K.doc)(r.bt,u,$.id),{name:e},{merge:!0})},Me=async()=>{ce(!0),ae(!1);let e=`tbl_${Date.now()}`;await(0,K.setDoc)((0,K.doc)(r.bt,u,e),{name:`Unnamed Table`,columns:[`Column 1`,`Column 2`,`Column 3`],...m?{uid:m.uid}:{},rows:[]}),setTimeout(()=>{z(e),ce(!1)},600)},Ne=e=>{let t=fe.trim();if(t&&t!==e&&!$.columns?.includes(t)){let n=$.columns.map(n=>n===e?t:n),r=($.rows||[]).map(n=>{let r={...n};return r[t]=r[e]||``,delete r[e],r}),i={...$.colColors||{}};i[e]&&(i[t]=i[e],delete i[e]),Ce({...$,columns:n,rows:r,colColors:i})}X(null)},Pe=e=>xi({uid:e._uid,creatorName:e._creatorName,creatorAvatar:e._creatorAvatar},m),Fe=$.rows||[];return le.trim()!==``&&(Fe=new Oc(Fe.map(e=>({...e,_creatorMatch:Pe(e)?.name||``})),{keys:($.columns||[]).concat([`_creatorMatch`]),threshold:.4,ignoreLocation:!0}).search(le).map(e=>{let{_creatorMatch:t,...n}=e.item;return n})),(0,G.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,G.jsxs)(r.k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-4 md:mb-6 flex items-center gap-3`,children:[!h&&l&&(0,G.jsx)(c.r,{to:l}),(0,G.jsxs)(`div`,{className:`min-w-0`,children:[(0,G.jsx)(n.t,{children:e}),t&&(0,G.jsxs)(`div`,{className:`max-sm:hidden sm:flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,G.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),t]})]})]}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-6 flex-1 min-h-0 pb-16`,children:[h&&(0,G.jsx)(i.t,{}),(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:`glass-panel border border-[var(--panel-border)] rounded-3xl overflow-hidden shadow-2xl relative z-10 flex flex-col flex-1 min-h-[400px]`,children:[(0,G.jsx)(`div`,{className:`absolute top-0 right-0 w-[400px] h-[400px] bg-accent/5 blur-[100px] rounded-full pointer-events-none -z-10`}),(0,G.jsxs)(`div`,{className:`p-4 md:px-6 border-b border-[var(--panel-border)]/50 flex items-center justify-between bg-foreground/[0.01] gap-3 sm:gap-4`,children:[(0,G.jsxs)(`div`,{className:`flex flex-col min-w-0 relative`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2 relative`,children:[(0,G.jsxs)(`div`,{className:`relative flex items-center`,children:[V?(0,G.jsx)(`div`,{contentEditable:!0,suppressContentEditableWarning:!0,onBlur:e=>{H(!1),je(e.currentTarget.textContent||``)},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},className:`bg-transparent border-b-2 border-accent outline-none text-[16px] font-bold text-foreground inline-block min-w-[20px] whitespace-nowrap px-1 py-0.5`,children:$.name||`Unnamed Table`}):(0,G.jsx)(`h3`,{className:`font-bold text-[16px] text-foreground/90 hover:text-accent transition-colors truncate max-w-[38vw] sm:max-w-[200px] ${Se?`cursor-pointer`:``}`,onClick:()=>Se&&H(!0),title:Se?`Click to rename table`:void 0,children:$.name||`Unnamed Table`}),(0,G.jsx)(r.A,{children:B&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{className:`fixed inset-0 z-40`,onClick:()=>ae(!1)}),(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:`absolute top-[120%] left-0 w-[220px] bg-background/95 backdrop-blur-xl border border-[var(--panel-border)] rounded-2xl shadow-2xl z-50 py-2 flex flex-col`,children:[(0,G.jsx)(`div`,{className:`px-4 py-2 text-[10px] font-bold uppercase tracking-wider text-foreground/40 border-b border-[var(--panel-border)] mb-1`,children:`Your Tables`}),(0,G.jsx)(`div`,{className:`max-h-[250px] overflow-y-auto styled-scrollbars z-50 relative`,children:ne.map(e=>(0,G.jsx)(`button`,{onClick:()=>{z(e.id),ae(!1)},className:`w-full px-4 py-2 text-[13px] font-bold text-left hover:bg-foreground/[0.03] transition-colors truncate ${ie===e.id?`text-accent bg-accent/5`:`text-foreground/70`}`,children:e.name||`Unnamed Table`},e.id))}),(0,G.jsx)(`div`,{className:`w-full h-[1px] bg-[var(--panel-border)]/50 my-1`}),(0,G.jsxs)(`button`,{onClick:Me,className:`w-full px-4 py-2.5 text-[13px] font-bold text-left text-foreground/70 hover:text-foreground hover:bg-foreground/5 transition-colors flex items-center gap-2`,children:[(0,G.jsx)(b.t,{className:`w-4 h-4`}),` Create New Table`]})]})]})})]}),(0,G.jsx)(`button`,{onClick:()=>ae(!B),className:`p-1 px-1.5 rounded-lg hover:bg-foreground/5 transition-colors text-foreground/40 hover:text-foreground shrink-0 border border-transparent hover:border-[var(--panel-border)]`,children:(0,G.jsx)(s.t,{className:`w-4 h-4 transition-transform ${B?`rotate-180 text-accent`:``}`})})]}),(0,G.jsxs)(`span`,{className:`opacity-40 text-[11px] font-bold mt-1 uppercase tracking-wider`,children:[($.rows||[]).length,` Records`]})]}),(0,G.jsx)(`div`,{className:`relative shrink-0 ${ue?`flex-1 min-w-[130px] max-w-[300px]`:``}`,children:ue?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(_.t,{className:`absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-foreground/40`}),(0,G.jsx)(`input`,{autoFocus:!0,type:`text`,"aria-label":`Search records`,placeholder:`Search records...`,value:le,onChange:e=>Z(e.target.value),onBlur:()=>{le.trim()||de(!1)},onKeyDown:e=>{e.key===`Escape`&&(Z(``),de(!1))},className:`w-full bg-background border border-[var(--panel-border)] rounded-xl py-2.5 px-9 text-[13px] font-medium text-foreground focus:outline-none focus:border-accent transition-colors shadow-inner`})]}):(0,G.jsx)(`button`,{type:`button`,onClick:()=>de(!0),"aria-label":`Search records`,title:`Search records`,className:`w-10 h-10 flex items-center justify-center rounded-xl border border-[var(--panel-border)] text-foreground/50 hover:text-accent hover:bg-foreground/5 transition-colors`,children:(0,G.jsx)(_.t,{className:`w-4 h-4`})})}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,G.jsx)(c.a,{viewing:A}),I&&(0,G.jsx)(O.t,{variant:`secondary`,onClick:we,className:`px-3 py-2.5 font-bold rounded-xl shadow-sm border border-[var(--panel-border)] flex items-center gap-2`,children:(0,G.jsx)(f.f,{className:`w-4 h-4`})}),N&&Se&&(0,G.jsx)(O.t,{variant:te===`primary`?void 0:`secondary`,onClick:Ee,className:`px-3 py-2.5 font-bold rounded-xl border border-[var(--panel-border)] shadow-sm flex items-center gap-2 whitespace-nowrap`,children:P===`+`?(0,G.jsx)(b.t,{className:`w-4 h-4`}):P})]})]}),(0,G.jsx)(`div`,{id:`table-scroll-container`,className:`overflow-auto w-full flex-1 min-h-[300px] relative styled-scrollbars`,children:p?(0,G.jsx)(c.p,{value:{prefix:o.R(d||{}),collection:y?u:``,recordId:y?$.id||D:``},children:(0,G.jsx)(`div`,{className:`fbos-content-slot fbos-tab-fill p-4 md:p-8 flex-1 overflow-y-auto relative min-h-[400px]`,children:(0,G.jsx)(E.p,{size:`part`,children:(0,G.jsx)(p,{config:d,actions:{tables:ne,activeTable:$,collection:u,user:m,error:y?S.error:``,...c.s(u,x,y,D),saveTable:async(e,t)=>{let n=ee(t,!ne.some(t=>t.id===e));y&&e===D&&k(c.u(u)),R(t=>t.find(t=>t.id===e)?t.map(t=>t.id===e?{...t,...n}:t):[...t,{id:e,...n}]),await(0,K.setDoc)((0,K.doc)(r.bt,u,e),n,{merge:!0})},deleteTable:async e=>{R(t=>t.filter(t=>t.id!==e)),await(0,K.deleteDoc)((0,K.doc)(r.bt,u,e))},updateCell:(e,t,n)=>Te(e,t,n),addRow:()=>Ee(),addColumn:()=>ke()}})})})}):(0,G.jsx)(r.A,{mode:`wait`,children:se?(0,G.jsxs)(r.k.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 flex flex-col items-center justify-center bg-background/40 backdrop-blur-[2px] z-50`,children:[(0,G.jsx)(`div`,{className:`w-8 h-8 rounded-full border-2 border-accent border-r-transparent animate-spin mb-4`}),(0,G.jsx)(`p`,{className:`text-[11px] font-bold text-foreground/50 uppercase tracking-widest`,children:`Generating Table`})]},`loader`):(0,G.jsxs)(r.k.table,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`w-full text-left border-collapse table-auto relative min-w-[800px]`,children:[(0,G.jsx)(`thead`,{children:(0,G.jsxs)(`tr`,{className:`border-b border-[var(--panel-border)] transition-colors ${$.headerColor?Ac.find(e=>e.text===$.headerColor)?.bgAlt:`bg-foreground/[0.02]`}`,children:[(0,G.jsx)(`th`,{className:`py-4 px-6 text-[12px] font-bold uppercase tracking-wider whitespace-nowrap text-foreground/50 w-32 border-r border-[var(--panel-border)]/20 ${C?``:`hidden`}`,children:`Creator`}),($.columns||[]).map((e,t)=>{let n=($.colColors||{})[e],r=($.colorTimestamps||{})[`col_${e}`]||0;$.headerColor;let a=($.colorTimestamps||{}).header||0,o=`bg-transparent`,s=`text-foreground/50`;if(n&&n!==`none`&&r>=a){let e=Ac.find(e=>e.text===n);e&&(o=e.bgCard,s=e.text)}return(0,G.jsx)(`th`,{className:`py-3 px-6 text-[12px] font-bold uppercase tracking-wider relative group h-[53px] min-w-[120px] ${s} ${o} border-r border-[var(--panel-border)]/20 last:border-r-0 select-none align-middle`,children:(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-2 w-full h-full`,children:[Y===e?(0,G.jsx)(`div`,{className:`flex-1 min-w-[50px]`,children:(0,G.jsx)(`span`,{contentEditable:!0,suppressContentEditableWarning:!0,onBlur:t=>{X(null),pe(t.currentTarget.textContent||``),(t.currentTarget.textContent||``).trim()!==``&&Ne(e)},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.currentTarget.blur())},className:`bg-transparent outline-none border-b border-accent/40 font-bold text-[12px] uppercase tracking-wider p-0 m-0 ${s} block w-full whitespace-nowrap overflow-hidden cursor-text`,ref:e=>{e&&requestAnimationFrame(()=>{e.focus()})},children:fe})}):(0,G.jsx)(`div`,{className:`flex items-center gap-2 flex-1 overflow-hidden`,onClick:()=>{Se&&(X(e),pe(e))},children:(0,G.jsx)(`span`,{className:`truncate cursor-text`,children:e})}),(0,G.jsxs)(`div`,{className:`relative shrink-0 flex items-center h-full gap-0.5`,children:[(0,G.jsx)(`button`,{onClick:()=>_e(ge===e?null:e),className:`p-1.5 rounded-lg opacity-0 group-hover:opacity-100 transition-opacity hover:bg-foreground/10 ${n&&n!==`none`?`!opacity-100`:``} text-current`,children:(0,G.jsx)(i.A,{className:`w-4 h-4`})}),($.columns||[]).length>1&&(0,G.jsx)(`button`,{onClick:t=>{t.stopPropagation(),Se&&ve({kind:`column`,name:e})},className:`p-1.5 rounded-lg opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-500/10 text-foreground/30 hover:text-red-500`,title:`Delete column`,children:(0,G.jsx)(w.t,{className:`w-3.5 h-3.5`})}),ge===e&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{className:`fixed inset-0 z-30`,onClick:()=>_e(null)}),(0,G.jsxs)(`div`,{className:`absolute top-8 right-0 flex gap-1.5 bg-background/95 backdrop-blur-xl border border-[var(--panel-border)] p-2 rounded-xl shadow-xl z-50 items-center`,children:[(0,G.jsx)(`button`,{onClick:t=>{t.preventDefault(),t.stopPropagation();let n={...$.colColors||{},[e]:`none`},r={...$.colorTimestamps||{},[`col_${e}`]:Date.now()};Ce({...$,colColors:n,colorTimestamps:r}),_e(null)},className:`w-4 h-4 rounded-full flex items-center justify-center bg-foreground/10 hover:bg-red-500/20 hover:text-red-500 text-foreground/40 transition-colors border border-[var(--panel-border)]/50 shrink-0`,title:`Remove Color`,children:(0,G.jsx)(T.t,{className:`w-3 h-3`})}),(0,G.jsx)(`div`,{className:`h-4 w-px bg-[var(--panel-border)]/50 mx-0.5`}),Ac.map(t=>(0,G.jsx)(`button`,{onClick:n=>{n.preventDefault(),n.stopPropagation();let r={...$.colColors||{},[e]:t.text},i={...$.colorTimestamps||{},[`col_${e}`]:Date.now()};Ce({...$,colColors:r,colorTimestamps:i}),_e(null)},className:`w-4 h-4 rounded-full ${t.bgCircle} hover:scale-125 transition-transform border border-[var(--panel-border)]/50 shrink-0`},t.name))]})]})]})]})},`col_${t}_${e}`)}),(0,G.jsx)(`th`,{className:`py-4 px-4 w-14 border-l border-[var(--panel-border)]/30 relative`,children:(0,G.jsxs)(`div`,{className:`flex items-center justify-end gap-0.5 relative z-20`,children:[(0,G.jsx)(`button`,{onClick:()=>be(!ye),className:`p-1.5 rounded-lg transition-colors hover:bg-foreground/10 ${$.headerColor?Ac.find(e=>e.text===$.headerColor)?.text:`text-foreground/30`}`,children:(0,G.jsx)(i.A,{className:`w-4 h-4`})}),ye&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{className:`fixed inset-0 z-30`,onClick:()=>be(!1)}),(0,G.jsxs)(`div`,{className:`absolute top-6 right-8 flex gap-1.5 bg-background/90 backdrop-blur-xl border border-[var(--panel-border)] p-2 rounded-xl shadow-xl z-50 items-center`,children:[(0,G.jsx)(`button`,{onClick:()=>{Ce({...$,headerColor:``}),be(!1)},className:`w-4 h-4 rounded-full flex items-center justify-center bg-foreground/10 hover:bg-red-500/20 hover:text-red-500 text-foreground/40 transition-colors border border-[var(--panel-border)]/50 shrink-0`,title:`Remove Header Color`,children:(0,G.jsx)(T.t,{className:`w-3 h-3`})}),(0,G.jsx)(`div`,{className:`h-4 w-px bg-[var(--panel-border)]/50 mx-0.5`}),Ac.map(e=>(0,G.jsx)(`button`,{onClick:()=>{let t={...$.colorTimestamps||{},header:Date.now()};Ce({...$,headerColor:e.text,colorTimestamps:t}),be(!1)},className:`w-4 h-4 rounded-full ${e.bgCircle} hover:scale-125 transition-transform border border-[var(--panel-border)]/50`},e.name))]})]}),(0,G.jsx)(`button`,{onClick:()=>Se&&ke(),className:`p-1.5 rounded-lg text-foreground/40 hover:text-accent hover:bg-accent/10 transition-colors flex items-center justify-center ${Se?``:`hidden`}`,children:(0,G.jsx)(b.t,{className:`w-4 h-4`})})]})})]})}),(0,G.jsxs)(`tbody`,{children:[Fe.map((e,t)=>{let n=t%2==1,a=($.rowColors||{})[e.id],o=a?n?Ac.find(e=>e.text===a)?.bgAlt:Ac.find(e=>e.text===a)?.bgCard:n?`bg-foreground/[0.02]`:`bg-transparent`;return(0,G.jsxs)(`tr`,{className:`border-b border-[var(--panel-border)]/30 hover:bg-foreground/[0.04] transition-colors group`,children:[(0,G.jsx)(`td`,{className:`py-4 px-6 whitespace-nowrap h-[53px] border-r border-[var(--panel-border)]/20 ${o} ${C?``:`hidden`}`,children:(0,G.jsx)(`div`,{className:`flex items-center gap-2`,children:h?(()=>{let t=Pe(e);return t?(0,G.jsxs)(G.Fragment,{children:[t.avatar?(0,G.jsx)(r.t,{src:t.avatar,alt:``,className:`w-5 h-5 rounded-full shrink-0`}):(0,G.jsx)(`div`,{className:`w-5 h-5 rounded-full bg-accent/20 text-accent flex items-center justify-center text-[10px] font-bold shrink-0`,children:t.name[0].toUpperCase()}),(0,G.jsx)(`span`,{className:`text-[11px] font-bold text-foreground/80 tracking-tight shrink-0`,children:t.name})]}):(0,G.jsx)(`span`,{className:`text-[11px] font-bold text-foreground/30`,children:`—`})})():(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{className:`w-5 h-5 rounded-full bg-accent/20 text-accent flex items-center justify-center text-[10px] font-bold shrink-0 shadow-inner group-hover:scale-110 transition-transform`,children:`G`}),(0,G.jsx)(`span`,{className:`text-[11px] font-bold text-foreground/80 tracking-tight shrink-0`,children:`Guest`})]})})}),($.columns||[]).map(r=>{let i=q?.id===e.id&&q?.field===r,a=($.colColors||{})[r],o=($.colorTimestamps||{})[`col_${r}`]||0,s=($.rowColors||{})[e.id],c=($.colorTimestamps||{})[`row_${e.id}`]||0,l=``;l=c>o?s===`none`?``:s:o>c?a===`none`?``:a:s===`none`?``:s||a||``,l===`none`&&(l=``);let u=l?Ac.find(e=>e.text===l):null,d=u?n?u.bgAlt:u.bgCard:n?`bg-foreground/[0.02]`:`bg-transparent`,f=u?u.text:`text-foreground/80`;return(0,G.jsxs)(`td`,{className:`py-4 px-6 whitespace-pre-wrap min-w-[120px] text-[14px] font-medium relative ${d} align-top border-r border-[var(--panel-border)]/10 last:border-r-0`,onClick:()=>Se&&!i&&J({id:e.id,field:r}),children:[i?(0,G.jsx)(`textarea`,{autoFocus:!0,value:e[r]||``,onChange:t=>Te(e.id,r,t.target.value),onBlur:()=>J(null),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&J(null)},className:`absolute inset-0 bg-transparent !border-0 !outline-none focus:!outline-none focus:!ring-0 !ring-0 !shadow-none focus:!shadow-none p-4 px-6 text-[14px] font-medium w-full h-full caret-accent ${f} z-20 resize-none styled-scrollbars`}):null,(0,G.jsx)(`span`,{className:`block w-full min-h-[20px] break-words transition-all ${i?`opacity-0`:`opacity-100`} ${f} ${r===`Status`&&e[r]===`Active`&&!l?`text-green-500`:``}`,children:e[r]||(0,G.jsx)(`span`,{className:`opacity-30 italic font-normal`,children:`empty`})})]},`cell_${e.id||t}_${r}`)}),(0,G.jsx)(`td`,{className:`py-4 px-4 whitespace-nowrap text-right h-[53px] ${o} relative z-10`,children:(0,G.jsxs)(`div`,{className:`flex items-center justify-end gap-1 opacity-100 md:opacity-20 md:group-hover:opacity-100 transition-opacity relative`,children:[(0,G.jsx)(`button`,{onClick:()=>he(me===e.id?null:e.id),className:`p-1.5 rounded-lg transition-colors hover:bg-foreground/10 ${a?Ac.find(e=>e.text===a)?.text:`text-foreground/40`}`,children:(0,G.jsx)(i.A,{className:`w-4 h-4`})}),me===e.id&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{className:`fixed inset-0 z-30`,onClick:()=>he(null)}),(0,G.jsxs)(`div`,{className:`absolute top-6 right-8 flex gap-1.5 bg-background/90 backdrop-blur-xl border border-[var(--panel-border)] p-2 rounded-xl shadow-xl z-50 items-center`,children:[(0,G.jsx)(`button`,{onClick:t=>{t.preventDefault(),t.stopPropagation();let n={...$.rowColors||{},[e.id]:`none`},r={...$.colorTimestamps||{},[`row_${e.id}`]:Date.now()};Ce({...$,rowColors:n,colorTimestamps:r}),he(null)},className:`w-4 h-4 rounded-full flex items-center justify-center bg-foreground/10 hover:bg-red-500/20 hover:text-red-500 text-foreground/40 transition-colors border border-[var(--panel-border)]/50 shrink-0`,title:`Remove Row Color`,children:(0,G.jsx)(T.t,{className:`w-3 h-3`})}),(0,G.jsx)(`div`,{className:`h-4 w-px bg-[var(--panel-border)]/50 mx-0.5`}),Ac.map(t=>(0,G.jsx)(`button`,{onClick:()=>{let n={...$.colorTimestamps||{},[`row_${e.id}`]:Date.now()};Ce({...$,rowColors:{...$.rowColors||{},[e.id]:t.text},colorTimestamps:n}),he(null)},className:`w-4 h-4 rounded-full ${t.bgCircle} hover:scale-125 transition-transform border border-[var(--panel-border)]/50`},t.name))]})]}),Se&&(0,G.jsx)(`button`,{onClick:()=>ve({kind:`row`,id:e.id}),title:`Delete row`,className:`p-2 ml-auto rounded-lg text-foreground/20 hover:text-red-500 hover:bg-red-500/10 transition-colors flex items-center justify-center`,children:(0,G.jsx)(w.t,{className:`w-4 h-4`})})]})})]},e.id||`row_${t}`)}),Fe.length===0&&(0,G.jsx)(`tr`,{children:(0,G.jsxs)(`td`,{colSpan:($.columns||[]).length+2,className:`py-12 text-center text-foreground/40 text-[14px] font-medium border border-[var(--panel-border)] m-4 rounded-xl border-dashed`,children:[`No records found in `,$.name||`this table`,`.`]})}),(0,G.jsx)(`tr`,{children:(0,G.jsx)(`td`,{colSpan:($.columns||[]).length+2,className:`py-2 px-4 border-none bg-foreground/[0.01]`,children:(0,G.jsx)(`div`,{className:`flex items-center gap-4`,children:(0,G.jsx)(`button`,{onClick:()=>Se&&Ee(),className:`p-1.5 rounded-lg text-foreground/40 hover:text-accent hover:bg-accent/10 transition-colors flex items-center justify-center ml-2 border border-transparent hover:border-accent/20 ${Se?``:`hidden`}`,children:(0,G.jsx)(b.t,{className:`w-4 h-4`})})})})})]})]},`table`)})})]})]}),(0,G.jsx)(re.t,{isOpen:!!Q,title:Q?.kind===`column`?`Delete column`:`Delete row`,message:Q?.kind===`column`?(0,G.jsxs)(G.Fragment,{children:[`Delete `,(0,G.jsx)(`strong`,{className:`text-foreground block my-1 break-words max-w-full text-center`,children:Q.name}),` and everything filled in under it, in every row? This cannot be undone.`]}):(0,G.jsx)(G.Fragment,{children:`Delete this row and everything in it? This cannot be undone.`}),onConfirm:Oe,onCancel:()=>ve(null),confirmText:`Yes, delete`})]})}var Mc=[{text:`text-red-400`,bgCircle:`bg-red-400`,bgCard:`bg-red-500/[0.08]`,borderCard:`border-red-500/30`,bgLight:`bg-red-500/15`,bgHover:`hover:bg-red-500`,bgAlt:`bg-red-500/[0.04]`,name:`Red`},{text:`text-orange-400`,bgCircle:`bg-orange-400`,bgCard:`bg-orange-500/[0.08]`,borderCard:`border-orange-500/30`,bgLight:`bg-orange-500/15`,bgHover:`hover:bg-orange-500`,bgAlt:`bg-orange-500/[0.04]`,name:`Orange`},{text:`text-yellow-400`,bgCircle:`bg-yellow-400`,bgCard:`bg-yellow-500/[0.08]`,borderCard:`border-yellow-500/30`,bgLight:`bg-yellow-500/15`,bgHover:`hover:bg-yellow-500`,bgAlt:`bg-yellow-500/[0.04]`,name:`Yellow`},{text:`text-green-400`,bgCircle:`bg-green-400`,bgCard:`bg-green-500/[0.08]`,borderCard:`border-green-500/30`,bgLight:`bg-green-500/15`,bgHover:`hover:bg-green-500`,bgAlt:`bg-green-500/[0.04]`,name:`Green`},{text:`text-blue-400`,bgCircle:`bg-blue-400`,bgCard:`bg-blue-500/[0.08]`,borderCard:`border-blue-500/30`,bgLight:`bg-blue-500/15`,bgHover:`hover:bg-blue-500`,bgAlt:`bg-blue-500/[0.04]`,name:`Blue`},{text:`text-accent`,bgCircle:`bg-accent`,bgCard:`bg-accent/[0.08]`,borderCard:`border-accent/30`,bgLight:`bg-accent/15`,bgHover:`hover:bg-accent`,bgAlt:`bg-accent/[0.04]`,name:`Purple`},{text:`text-pink-400`,bgCircle:`bg-pink-400`,bgCard:`bg-pink-500/[0.08]`,borderCard:`border-pink-500/30`,bgLight:`bg-pink-500/15`,bgHover:`hover:bg-pink-500`,bgAlt:`bg-pink-500/[0.04]`,name:`Pink`},{text:`text-foreground/60`,bgCircle:`bg-foreground/30`,bgCard:`bg-foreground/[0.04]`,borderCard:`border-[var(--panel-border)]/50`,bgLight:`bg-foreground/15`,bgHover:`hover:bg-foreground/30`,bgAlt:`bg-foreground/[0.02]`,name:`Default`}],Nc=e=>new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString().split(`T`)[0],Pc=1,Fc={dateStr:``,title:``,description:``,time:`12:00`,duration:`60`,color:``,guestEmail:``,customFields:{}};function Ic({title:e=`Calendar View`,subtitle:t=`/calendar`,backUrl:a,eventsCollection:s=`pub_events`,defaultTimeFormat:l=`12h`,config:u,customContent:p}){let m=!!(u?.isPrivate||u?.isAdmin||u?.isInternal||u?.isShared);u?.isAdmin,u?.isInternal||u?.isShared,u?.isPrivate;let h=u?.showButton!==!1,g=u?.buttonText||`+`,v=u?.buttonStyle||`primary`,y=u?.showViewsButton!==!1,x=u?.viewsButtonStyle||`secondary`,S=u?.defaultView||`calendar`,C=u?.customFields||[],D=o.j(s)?`case`:s.startsWith(`user_`)?`user`:s.startsWith(`mem_`)||s.startsWith(`role_`)?`internal`:s.startsWith(`admin_`)?`admin_only`:`public`,k=D===`case`,A=c.o({on:D===`user`}),[j,ee]=(0,W.useState)(()=>{try{let e=localStorage.getItem(`cal_view_${s}`);if(e===`list`||e===`month`)return e}catch{}return S===`board`?`list`:`month`}),[M,N]=(0,W.useState)([]),P=c.f(),te=F.m(s),I=k?te.records:M,[L,R]=(0,W.useState)(()=>k?c.u(s):``),[ne,ie]=(0,W.useState)(!1),[z,B]=(0,W.useState)(null),[ae,V]=(0,W.useState)(!1),[H,oe]=(0,W.useState)(!1),[U,ce]=(0,W.useState)(null),[J,Y]=(0,W.useState)(Fc),[X,le]=(0,W.useState)(new Date),[Z,ue]=(0,W.useState)(null),[de,fe]=(0,W.useState)(null),[pe,me]=(0,W.useState)(!1),he=A.uid||Z?.uid||``,ge=`cal_24h_${s}`,[_e,Q]=(0,W.useState)(()=>{try{let e=localStorage.getItem(ge);if(e!==null)return e===`true`}catch{}return l===`24h`}),ve=()=>{let e=!_e;Q(e);try{localStorage.setItem(ge,String(e))}catch{}};(0,W.useEffect)(()=>{try{localStorage.setItem(`cal_view_${s}`,j)}catch{}},[j,s,D]);let ye=()=>{let e=j===`month`?`list`:`month`;ee(e);try{localStorage.setItem(`cal_view_${s}`,e)}catch{}},be=()=>{try{return sessionStorage.getItem(`cal_guest_email`)||``}catch{return``}},xe=e=>{try{sessionStorage.setItem(`cal_guest_email`,e)}catch{}};(0,W.useEffect)(()=>(0,se.onAuthStateChanged)(r.yt,async e=>{if(ue(e),e&&D===`admin_only`)try{let t=await(0,K.getDoc)((0,K.doc)(r.bt,`user_profiles`,e.uid));t.exists()&&fe(t.data())}catch{}me(!0)}),[D]);let $=Nc(new Date(X.getFullYear(),X.getMonth()-Pc,1)),Se=Nc(new Date(X.getFullYear(),X.getMonth()+Pc+1,0));(0,W.useEffect)(()=>{if(!pe||k)return;if(D!==`public`&&!Z){N([]);return}let e=D===`user`?`${s}|${A.everyone?`everyone`:he}`:s;try{let t=localStorage.getItem(`fbos_cal_${e}`);t&&N(JSON.parse(t))}catch{}let t=(0,K.onSnapshot)(D===`user`&&Z&&!A.everyone?(0,K.query)((0,K.collection)(r.bt,s),(0,K.where)(`uid`,`==`,he)):(0,K.query)((0,K.collection)(r.bt,s),(0,K.where)(`dateStr`,`>=`,$),(0,K.where)(`dateStr`,`<=`,Se)),t=>{let n=[];t.forEach(e=>n.push({id:e.id,...e.data()})),N(n),localStorage.setItem(`fbos_cal_${e}`,JSON.stringify(n))},e=>console.error(`Calendar events:`,e));return()=>t()},[s,D,Z?.uid,pe,$,Se,k,he,A.everyone]);let Ce=e=>!!Z&&Z.uid===e.uid,we=e=>D===`public`?!1:D===`user`?!!Z:k?F.n(e,P):Ce(e),Te=(e,t)=>!Z||D===`public`?e:D===`user`?{...e,uid:he||Z.uid}:k?t?c.l({uid:Z.uid,creatorEmail:Z.email||``,creatorName:Z.displayName||``,creatorAvatar:Z.photoURL||``,...e},Z.uid):e:t?{uid:Z.uid,creatorEmail:Z.email||``,creatorName:Z.displayName||``,creatorAvatar:Z.photoURL||``,...e}:e,Ee=e=>{if(!e)return``;if(_e)return e;let[t,n]=e.split(`:`),r=parseInt(t,10),i=r>=12?`PM`:`AM`;return r=r%12||12,`${r}:${n} ${i}`},De=e=>{if(!e)return`60m`;let t=parseInt(e,10);return isNaN(t)?e:t>=60?t%60==0?`${t/60}h`:`${Math.floor(t/60)}h ${t%60}m`:`${t}m`},Oe=e=>{let[t,n]=(e||`12:00`).split(`:`),r=parseInt(t,10)||0,i=parseInt(n,10)||0,a=r>=12?`PM`:`AM`;return r=r%12||12,{h:r,m:i,ampm:a}},ke=(e,t,n)=>{let r=e%12;return n===`PM`&&(r+=12),`${r.toString().padStart(2,`0`)}:${t.toString().padStart(2,`0`)}`},Ae=Nc,je=()=>Ae(new Date),Me=new Date(X.getFullYear(),X.getMonth(),1),Ne=new Date(X.getFullYear(),X.getMonth()+1,0),Pe=Me.getDay(),Fe=Ne.getDate(),Ie=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],Le=Array.from({length:42},(e,t)=>{let n=t-Pe+1,r=new Date(X.getFullYear(),X.getMonth(),n);return{day:r.getDate(),dateStr:Ae(r),isCurrentMonth:n>0&&n<=Fe}}),Re=()=>le(j===`month`?new Date(X.getFullYear(),X.getMonth()-1,1):new Date(X.getFullYear(),X.getMonth(),X.getDate()-1)),ze=()=>le(j===`month`?new Date(X.getFullYear(),X.getMonth()+1,1):new Date(X.getFullYear(),X.getMonth(),X.getDate()+1)),Be=e=>{if(D!==`public`&&!Z)return;let t=new Date;t.setDate(t.getDate()+1);let n=new Date().getHours().toString().padStart(2,`0`);Y({...Fc,dateStr:e||Ae(t),time:`${n}:00`,guestEmail:D===`public`?be():``,customFields:{}}),ie(!0)},Ve=e=>{let t=e.time;if(t){let[e,n]=t.split(`:`);e&&n&&(t=`${e.padStart(2,`0`)}:${n}`)}Y({id:e.id,uid:e.uid,dateStr:e.dateStr,title:e.title,description:e.description||``,time:t||`12:00`,duration:e.duration||`60`,color:e.color||``,guestEmail:e.creatorEmail||``,customFields:e.customFields||{}}),ie(!0)},He=async e=>{if(e.preventDefault(),J.title.trim()){V(!0);try{let e={dateStr:J.dateStr,title:J.title.trim(),description:J.description.trim(),time:J.time,duration:J.duration||`60`};if(J.color&&(e.color=J.color),C.length>0&&(e.customFields=J.customFields),!J.id)if(D===`public`){let t=J.guestEmail.trim();e.creatorEmail=t,xe(t)}else D===`user`||D===`internal`?(e.uid=Z?.uid,e.creatorEmail=Z?.email||``,e.creatorName=Z?.displayName||``,e.creatorAvatar=Z?.photoURL||``):D===`admin_only`&&(e.uid=Z?.uid,e.creatorEmail=de?.email||Z?.email||``,e.creatorName=de?.displayName||de?.name||``,e.creatorAvatar=de?.avatar||de?.avatarUrl||Z?.photoURL||``);let t=Te(e,!J.id);J.id?(await(0,K.setDoc)((0,K.doc)(r.bt,s,J.id),t,{merge:!0}),z?.id===J.id&&B({...z,...e})):(await(0,K.setDoc)((0,K.doc)(r.bt,s,k?L||c.u(s):`ev_${Date.now()}`),t,{merge:!0}),k&&R(c.u(s))),ie(!1)}catch(e){console.error(e)}V(!1)}},Ue=async()=>{if(U){oe(!0);try{await(0,K.deleteDoc)((0,K.doc)(r.bt,s,U.id)),z?.id===U.id&&B(null),ce(null),ie(!1)}catch{}oe(!1)}},We=e=>{if(D===`user`||!e.creatorEmail&&!e.creatorName)return null;let t=(e.creatorName||e.creatorEmail||`?`).charAt(0).toUpperCase(),n=Mc.find(t=>t.text===e.color);return(0,G.jsxs)(`div`,{className:`flex items-center gap-3 mt-4 p-3 rounded-xl bg-foreground/[0.03] border border-[var(--panel-border)]/50`,children:[e.creatorAvatar?(0,G.jsx)(r.t,{src:e.creatorAvatar,alt:``,className:`w-8 h-8 rounded-full shrink-0`}):(0,G.jsx)(`div`,{className:`w-8 h-8 rounded-full ${n?.bgCircle||`bg-accent`} flex items-center justify-center text-[13px] font-extrabold text-white shrink-0`,children:t}),(0,G.jsxs)(`div`,{className:`flex flex-col min-w-0`,children:[e.creatorName&&(0,G.jsx)(`span`,{className:`text-[13px] font-bold text-foreground/90 truncate`,children:e.creatorName}),e.creatorEmail&&(0,G.jsx)(`span`,{className:`text-[12px] text-foreground/50 truncate`,children:e.creatorEmail})]})]})},Ge=e=>{if(D===`user`||D===`public`||!e.creatorName&&!e.creatorEmail)return null;let t=e.creatorName||e.creatorEmail?.split(`@`)[0]||``,n=t.split(` `).map(e=>e[0]).join(``).toUpperCase().slice(0,2);return(0,G.jsxs)(`div`,{className:`flex items-center gap-2 mt-2 pt-2 border-t border-[var(--panel-border)]/30`,children:[e.creatorAvatar?(0,G.jsx)(r.t,{src:e.creatorAvatar,alt:``,className:`w-5 h-5 rounded-full shrink-0`}):(0,G.jsx)(`div`,{className:`w-5 h-5 rounded-full bg-accent/15 text-accent flex items-center justify-center text-[8px] font-extrabold shrink-0`,children:n}),(0,G.jsxs)(`div`,{className:`flex items-center gap-1 min-w-0 flex-1`,children:[(0,G.jsx)(`span`,{className:`text-[11px] font-semibold text-foreground/40 truncate`,children:t}),e.creatorEmail&&(0,G.jsxs)(`span`,{className:`text-[10px] text-foreground/25 truncate`,children:[`· `,e.creatorEmail]})]})]})};if(pe&&D!==`public`&&!Z)return(0,G.jsx)(`main`,{className:`flex-1 w-full flex items-center justify-center min-h-screen p-8`,children:(0,G.jsxs)(`div`,{className:`text-center glass-panel border border-[var(--panel-border)] rounded-3xl p-12 max-w-sm w-full`,children:[(0,G.jsx)(`div`,{className:`w-16 h-16 rounded-full bg-accent/10 border border-accent/20 flex items-center justify-center mx-auto mb-4`,children:(0,G.jsx)(n.H,{className:`w-7 h-7 text-accent`})}),(0,G.jsx)(`h2`,{className:`text-2xl font-bold mb-2`,children:`Sign in required`}),(0,G.jsx)(`p`,{className:`text-foreground/50 text-[14px] mb-6`,children:`You need to be signed in to access this calendar.`}),(0,G.jsx)(q.Link,{to:`/login`,className:`inline-flex items-center justify-center gap-2 px-6 py-2.5 rounded-xl btn-primary font-bold text-[14px] w-full`,children:`Sign In`})]})});if(!pe&&D!==`public`)return(0,G.jsx)(`main`,{className:`flex-1 w-full flex items-center justify-center min-h-screen`,children:(0,G.jsx)(_.n,{className:`w-8 h-8 animate-spin text-accent`})});let Ke=!!p,Je=(D===`public`||!!Z)&&h&&!Ke,Ye=()=>(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3 sm:gap-4 p-4 sm:p-6 md:px-8 md:py-6 border-b border-[var(--panel-border)]/50 bg-background/50 shrink-0`,children:[(0,G.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,G.jsx)(`h2`,{className:`text-xl font-bold text-foreground tracking-tight truncate`,children:u?.tabTitle||u?.tabName||e}),(0,G.jsxs)(`p`,{className:`text-[13px] font-medium text-foreground/50 mt-1`,children:[I.length,` `,I.length===1?`event`:`events`,` · `,j===`month`?`Month`:`Board`,` View`]})]}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,G.jsx)(c.a,{viewing:A}),(0,G.jsx)(r.k.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:ve,className:`w-10 h-10 flex items-center justify-center rounded-xl transition-all duration-300 cursor-pointer btn-secondary text-[12px] font-extrabold`,children:_e?`24h`:`12h`}),y&&!Ke&&(0,G.jsx)(r.k.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:ye,title:j===`month`?`Switch to Board`:`Switch to Calendar`,className:`w-10 h-10 flex items-center justify-center rounded-xl transition-all duration-300 cursor-pointer ${x===`primary`?`btn-primary`:`btn-secondary`}`,children:j===`month`?(0,G.jsx)(tt,{className:`w-4 h-4`}):(0,G.jsx)(d.l,{className:`w-4 h-4`})}),Je&&(0,G.jsx)(r.k.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>Be(),title:`Add event`,"aria-label":`Add event`,className:`h-10 flex items-center justify-center gap-2 rounded-xl transition-all duration-300 cursor-pointer ${g===`+`?`w-10`:`px-5`} ${v===`primary`?`btn-primary`:`btn-secondary`}`,children:g===`+`?(0,G.jsx)(b.t,{className:`w-4 h-4`}):(0,G.jsx)(`span`,{className:`text-[13px] font-bold`,children:g})})]})]}),Xe=()=>(0,G.jsxs)(`div`,{className:`p-4 md:p-6 border-b border-[var(--panel-border)]/50 flex flex-wrap items-center justify-between gap-x-3 gap-y-2 bg-foreground/[0.01]`,children:[(0,G.jsx)(`h3`,{className:`text-lg md:text-xl font-bold tracking-tight ml-2 min-w-0`,children:j===`month`?X.toLocaleString(`default`,{month:`long`,year:`numeric`}):X.toLocaleString(`default`,{month:`long`,day:`numeric`,year:`numeric`})}),(0,G.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,G.jsx)(`button`,{onClick:()=>le(new Date),className:`px-3 md:px-4 py-2 text-[13px] font-bold border border-[var(--panel-border)] rounded-xl mr-1 md:mr-2 hover:bg-foreground/5 transition-colors`,children:`Today`}),(0,G.jsx)(`button`,{onClick:Re,className:`p-2 rounded-xl text-foreground/50 hover:text-foreground hover:bg-foreground/5 transition-colors border border-transparent hover:border-[var(--panel-border)]`,children:(0,G.jsx)(f.p,{className:`w-5 h-5`})}),(0,G.jsx)(`button`,{onClick:ze,className:`p-2 rounded-xl text-foreground/50 hover:text-foreground hover:bg-foreground/5 transition-colors border border-transparent hover:border-[var(--panel-border)]`,children:(0,G.jsx)(n.q,{className:`w-5 h-5`})})]})]}),Ze=()=>(0,G.jsxs)(G.Fragment,{children:[Xe(),p?(0,G.jsx)(c.p,{value:{prefix:o.R(u||{}),collection:k?s:``,recordId:k?L:``},children:(0,G.jsx)(`div`,{className:`fbos-content-slot fbos-tab-fill p-4 md:p-8 flex-1 overflow-y-auto relative min-h-[400px]`,children:(0,G.jsx)(E.p,{size:`part`,children:(0,G.jsx)(p,{config:u,actions:{events:I,loading:k?te.loading:!pe,error:k?te.error:``,collection:s,currentUser:Z,...c.s(s,P,k,L),user:Z,saveEvent:async e=>{let t=e.id||(k?L:``)||`ev_${Date.now()}`,n=Te(e,!I.some(e=>e.id===t));k&&t===L&&R(c.u(s)),N(e=>e.find(e=>e.id===t)?e.map(e=>e.id===t?{...e,...n}:e):[...e,{id:t,...n}]),await(0,K.setDoc)((0,K.doc)(r.bt,s,t),n,{merge:!0})},deleteEvent:async e=>{N(t=>t.filter(t=>t.id!==e)),await(0,K.deleteDoc)((0,K.doc)(r.bt,s,e))},openAddModal:e=>Be(e),openEditModal:e=>Ve(e),setViewingEvent:e=>B(e),currentDate:X,setCurrentDate:le,goToPrev:Re,goToNext:ze,goToToday:()=>le(new Date)}})})})}):j===`month`?(0,G.jsx)(`div`,{className:`overflow-x-auto w-full flex-1`,children:(0,G.jsxs)(`div`,{className:`min-w-[800px] h-full flex flex-col`,children:[(0,G.jsx)(`div`,{className:`grid grid-cols-7 border-b border-[var(--panel-border)]/50 bg-foreground/[0.02]`,children:Ie.map(e=>(0,G.jsx)(`div`,{className:`py-3 text-center text-[12px] font-bold uppercase tracking-wider text-foreground/40`,children:e},e))}),(0,G.jsx)(`div`,{className:`grid grid-cols-7 auto-rows-auto bg-[var(--panel-border)] gap-[1px] relative flex-1`,children:Le.map((e,t)=>{let n=e.dateStr===je(),r=I.filter(t=>t.dateStr===e.dateStr);return(0,G.jsxs)(`div`,{onClick:()=>e.isCurrentMonth&&Je&&Be(e.dateStr),className:`min-h-[140px] p-2 bg-[var(--panel-bg)] flex flex-col relative group
|
|
7
|
+
${e.isCurrentMonth?Je?`hover:bg-foreground/[0.03] transition-colors cursor-cell`:``:`opacity-30 bg-background/50 pointer-events-none`}`,children:[(0,G.jsx)(`div`,{className:`flex justify-between items-start mb-2 shrink-0`,children:(0,G.jsx)(`span`,{className:`w-8 h-8 rounded-full flex items-center justify-center text-[14px] font-bold ${n?`bg-accent text-white shadow-lg shadow-accent/20`:`text-foreground/70 group-hover:text-foreground`}`,children:e.day})}),(0,G.jsx)(`div`,{className:`flex flex-col gap-1.5 flex-1 w-full relative z-10 pb-1`,children:r.map(e=>{let t=Mc.find(t=>t.text===e.color),n=we(e);return(0,G.jsxs)(`div`,{className:`px-2 py-1.5 rounded-lg border transition-colors shadow-sm cursor-pointer group/ev relative ${t?t.bgCard+` `+t.borderCard:`bg-accent/20 border-accent/30 hover:bg-accent/40`}`,onClick:t=>{t.stopPropagation(),B(e)},children:[(0,G.jsx)(`p`,{className:`text-[12px] font-bold truncate leading-tight ${n?`pr-5`:``} ${t?t.text:`text-foreground`}`,children:e.title}),(0,G.jsx)(`p`,{className:`text-[10px] text-foreground/70 mt-0.5`,children:Ee(e.time)}),n&&(0,G.jsx)(`button`,{onClick:t=>{t.stopPropagation(),Ve(e)},className:`absolute top-1 right-1 opacity-0 group-hover/ev:opacity-100 p-1 text-foreground/60 hover:bg-foreground/10 hover:text-foreground transition-all rounded`,children:(0,G.jsx)(f.s,{className:`w-3 h-3`})})]},e.id)})})]},t)})}),(0,G.jsx)(`style`,{children:`
|
|
8
8
|
.styled-scrollbars::-webkit-scrollbar{width:4px}
|
|
9
9
|
.styled-scrollbars::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--accent-color) 30%,transparent);border-radius:4px}
|
|
10
10
|
input[type="time"]::-webkit-calendar-picker-indicator{display:none!important}
|
|
11
11
|
input[type="date"]{color-scheme:dark}
|
|
12
12
|
input[type="date"]::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.5;transition:opacity .2s}
|
|
13
13
|
input[type="date"]::-webkit-calendar-picker-indicator:hover{opacity:1}
|
|
14
|
-
`})]})}):(0,
|
|
14
|
+
`})]})}):(0,G.jsxs)(`div`,{className:`flex flex-col p-4 md:p-8 overflow-y-auto w-full flex-1 gap-4`,children:[I.filter(e=>e.dateStr===Ae(X)).sort((e,t)=>e.time.localeCompare(t.time)).map(e=>{let t=new Date(e.dateStr+`T12:00:00`),n=Mc.find(t=>t.text===e.color),r=we(e);return(0,G.jsxs)(`div`,{onClick:()=>B(e),className:`p-4 rounded-2xl border flex flex-col cursor-pointer transition-colors group ${n?n.bgCard+` `+n.borderCard+` hover:brightness-110`:`bg-foreground/[0.01] border-[var(--panel-border)]/70 hover:border-accent/40 hover:bg-foreground/[0.02]`}`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-3 shrink-0`,children:[(0,G.jsxs)(`div`,{className:`w-11 h-11 md:w-12 md:h-12 rounded-xl flex flex-col items-center justify-center border transition-colors shadow-sm ${n?n.bgCard+` `+n.borderCard:`bg-foreground/5 border-[var(--panel-border)] group-hover:bg-accent/10 group-hover:border-accent/30`}`,children:[(0,G.jsx)(`span`,{className:`text-[10px] font-bold uppercase leading-none mb-0.5 ${n?n.text:`text-foreground/40 group-hover:text-accent/60`}`,children:t.toLocaleString(`default`,{month:`short`})}),(0,G.jsx)(`span`,{className:`text-[18px] font-black leading-none ${n?n.text:`group-hover:text-accent`}`,children:t.getDate()})]}),(0,G.jsx)(`div`,{className:`h-6 w-px bg-[var(--panel-border)] max-sm:hidden group-hover:bg-accent/30 transition-colors`})]}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-1 min-w-0 flex-1`,children:[(0,G.jsx)(`h4`,{className:`text-[15px] md:text-[16px] font-extrabold tracking-tight truncate ${n?n.text:`text-foreground group-hover:text-accent`}`,children:e.title}),(0,G.jsxs)(`div`,{className:`flex items-center gap-3 text-[12px] text-foreground/50 font-medium`,children:[(0,G.jsx)(`span`,{children:Ee(e.time)}),(0,G.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,G.jsx)(qe,{className:`w-3 h-3`}),De(e.duration)]})]})]}),r&&(0,G.jsxs)(`div`,{className:`ml-auto pl-2 flex items-center gap-1 opacity-100 md:opacity-0 md:group-hover:opacity-100 transition-opacity`,children:[(0,G.jsx)(`button`,{onClick:t=>{t.stopPropagation(),Ve(e)},className:`p-2.5 rounded-xl text-foreground/50 hover:bg-foreground/10 hover:text-foreground transition-colors`,children:(0,G.jsx)(f.s,{className:`w-4 h-4`})}),(0,G.jsx)(`button`,{onClick:t=>{t.stopPropagation(),ce(e)},className:`p-2.5 rounded-xl text-foreground/30 hover:bg-red-500/10 hover:text-red-500 transition-colors`,children:(0,G.jsx)(w.t,{className:`w-4 h-4`})})]})]}),m&&Ge(e)]},e.id)}),I.filter(e=>e.dateStr===Ae(X)).length===0&&(0,G.jsx)(`div`,{className:`p-12 text-center text-foreground/40 font-medium`,children:`No events scheduled for this day.`})]})]}),Qe=()=>(0,G.jsxs)(r.A,{children:[z&&(0,G.jsxs)(`div`,{className:`fixed inset-0 z-[100] flex items-center justify-center p-4`,children:[(0,G.jsx)(r.k.div,{onClick:()=>B(null),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/80 backdrop-blur-xl cursor-pointer`}),(0,G.jsxs)(r.k.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},className:`w-full max-w-[500px] p-6 sm:p-8 rounded-3xl glass-popover border shadow-2xl relative z-10 ${Mc.find(e=>e.text===z.color)?.borderCard||`border-[var(--panel-border)]`}`,children:[(0,G.jsxs)(`div`,{className:`absolute top-4 right-4 flex items-center gap-1 bg-background/50 backdrop-blur-3xl p-1 rounded-2xl border border-[var(--panel-border)]/50 shadow-sm z-50`,children:[we(z)&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{onClick:()=>{B(null),Ve(z)},className:`p-2 rounded-xl text-foreground/50 hover:bg-foreground/10 hover:text-foreground transition-all`,title:`Edit`,children:(0,G.jsx)(f.s,{className:`w-4 h-4`})}),(0,G.jsx)(`button`,{onClick:()=>{ce(z),B(null)},className:`p-2 rounded-xl text-foreground/50 hover:bg-red-500/10 hover:text-red-500 transition-all`,title:`Delete`,children:(0,G.jsx)(w.t,{className:`w-4 h-4`})}),(0,G.jsx)(`div`,{className:`w-px h-6 bg-[var(--panel-border)]/50 mx-1`})]}),(0,G.jsx)(`button`,{onClick:()=>B(null),className:`p-2 rounded-xl text-foreground/40 hover:bg-foreground/10 hover:text-foreground transition-all`,children:(0,G.jsx)(T.t,{className:`w-5 h-5`})})]}),(0,G.jsxs)(`div`,{className:`mb-6 mt-12 sm:mt-0 sm:pr-32`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2 mb-3`,children:[(0,G.jsx)(`span`,{className:`w-2.5 h-2.5 rounded-full ${Mc.find(e=>e.text===z.color)?.bgCircle||`bg-accent`}`}),(0,G.jsx)(`span`,{className:`text-[11px] font-bold tracking-[0.2em] uppercase ${Mc.find(e=>e.text===z.color)?.text||`text-accent`}`,children:`Event Details`})]}),(0,G.jsx)(`h3`,{className:`text-xl sm:text-3xl font-black mb-3 tracking-tight leading-tight break-words ${Mc.find(e=>e.text===z.color)?.text||`text-foreground`}`,children:z.title}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-2 mt-4`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2.5 text-[14px] text-foreground/70 font-medium`,children:[(0,G.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,G.jsx)(d.l,{className:`w-4 h-4 text-foreground/50`})}),new Date(z.dateStr+`T12:00:00`).toLocaleDateString(`default`,{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`})]}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2.5 text-[14px] text-foreground/70 font-medium`,children:[(0,G.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-foreground/5 border border-[var(--panel-border)] flex items-center justify-center shrink-0`,children:(0,G.jsx)(qe,{className:`w-4 h-4 text-foreground/50`})}),Ee(z.time),` `,(0,G.jsxs)(`span`,{className:`text-foreground/40 text-[12px] ml-1`,children:[`(`,De(z.duration),`)`]})]})]}),We(z)]}),(0,G.jsx)(`div`,{className:`w-full h-px bg-gradient-to-r from-[var(--panel-border)]/0 via-[var(--panel-border)] to-[var(--panel-border)]/0 mb-6`}),z.description?(0,G.jsx)(`div`,{className:`bg-foreground/[0.02] border border-[var(--panel-border)]/50 rounded-2xl py-3 px-4 mb-4 w-full overflow-hidden`,children:(0,G.jsx)(`div`,{className:`text-[14px] text-foreground/80 font-medium whitespace-pre-wrap leading-tight break-words`,children:z.description})}):(0,G.jsx)(`div`,{className:`p-4 mb-4 rounded-2xl border border-dashed border-[var(--panel-border)] bg-foreground/[0.01] text-center`,children:(0,G.jsx)(`p`,{className:`text-[12px] font-medium text-foreground/40`,children:`No description provided for this event.`})}),z.customFields&&Object.entries(z.customFields).filter(([,e])=>e).length>0&&(0,G.jsx)(`div`,{className:`flex flex-col gap-2 mb-2`,children:Object.entries(z.customFields).filter(([,e])=>e).map(([e,t])=>(0,G.jsxs)(`div`,{className:`flex items-start gap-2 text-[13px]`,children:[(0,G.jsxs)(`span`,{className:`font-bold text-foreground/50 capitalize shrink-0`,children:[e,`:`]}),(0,G.jsx)(`span`,{className:`text-foreground/80 font-medium break-words min-w-0`,children:t})]},e))})]})]},`view-modal`),ne&&(0,G.jsxs)(`div`,{className:`fixed inset-0 z-[100] flex items-center justify-center p-4`,children:[(0,G.jsx)(r.k.div,{onClick:()=>ie(!1),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`absolute inset-0 bg-background/80 backdrop-blur-xl cursor-pointer`}),(0,G.jsxs)(r.k.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},className:`w-full max-w-[500px] p-6 sm:p-8 rounded-3xl glass-popover border border-[var(--panel-border)] shadow-2xl relative z-10 max-h-[90vh] overflow-y-auto styled-scrollbars`,children:[(0,G.jsxs)(`div`,{className:`absolute top-4 right-4 flex items-center gap-1`,children:[J.id&&we({uid:J.uid})&&(0,G.jsx)(`button`,{onClick:()=>{ie(!1),ce({id:J.id,...J})},className:`p-2 rounded-xl text-foreground/30 hover:bg-red-500/10 hover:text-red-500 transition-all`,children:(0,G.jsx)(w.t,{className:`w-4 h-4`})}),(0,G.jsx)(`button`,{onClick:()=>ie(!1),className:`p-2 rounded-xl text-foreground/40 hover:bg-foreground/10 hover:text-foreground transition-all`,children:(0,G.jsx)(T.t,{className:`w-5 h-5`})})]}),(0,G.jsxs)(`div`,{className:`mb-6 pr-12`,children:[(0,G.jsx)(`h3`,{className:`text-2xl font-bold mb-1 tracking-tight`,children:J.id?`Edit Event`:`Add Event`}),(0,G.jsx)(`p`,{className:`text-[14px] text-foreground/50`,children:J.id?`Modify your scheduled calendar block.`:`Schedule a new calendar block.`})]}),(0,G.jsxs)(`form`,{onSubmit:He,className:`space-y-4`,children:[D===`public`&&!J.id&&(0,G.jsx)(d.c,{label:`Your Email`,type:`email`,value:J.guestEmail,onChange:e=>Y({...J,guestEmail:e.target.value}),placeholder:`you@example.com`,required:!0}),(0,G.jsx)(d.c,{label:`Event Title`,value:J.title,onChange:e=>Y({...J,title:e.target.value}),placeholder:`e.g. Design Sync`,required:!0}),(0,G.jsxs)(`div`,{className:`flex flex-col w-full relative`,children:[(0,G.jsx)(`label`,{className:`text-[13px] font-medium text-foreground/50 select-none mb-1.5 ml-1`,children:`Description`}),(0,G.jsx)(`textarea`,{value:J.description,onChange:e=>Y({...J,description:e.target.value}),placeholder:`e.g. Discussing the new features...`,className:`block min-h-[80px] w-full rounded-xl text-[15px] text-foreground px-4 py-3 transition-all duration-300 placeholder:text-foreground/40 focus:outline-none focus:border-accent glow-focus glass-panel styled-scrollbars resize-none`})]}),C.map(e=>(0,G.jsx)(d.c,{label:e,value:J.customFields[e]||``,onChange:t=>Y({...J,customFields:{...J.customFields,[e]:t.target.value}}),placeholder:`Enter ${e.toLowerCase()}...`},e)),(0,G.jsx)(`style`,{children:`
|
|
15
15
|
input[type="date"]::-webkit-calendar-picker-indicator{background:transparent;bottom:0;color:transparent;cursor:pointer;height:auto;left:0;position:absolute;right:0;top:0;width:auto;z-index:10}
|
|
16
16
|
input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
|
|
17
17
|
input[type="number"]{-moz-appearance:textfield}
|
|
18
|
-
`}),(0,q.jsxs)(`div`,{className:`relative group/date flex flex-col w-full`,children:[(0,q.jsx)(h.y,{type:`date`,label:`Date`,required:!0,value:U.dateStr,onChange:e=>ce({...U,dateStr:e.target.value}),className:`pr-10`}),(0,q.jsx)(`div`,{className:`absolute right-4 bottom-4 pointer-events-none group-focus-within/date:text-accent text-foreground/40 transition-colors`,children:(0,q.jsx)(h.b,{className:`w-4 h-4`})})]}),(0,q.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-4`,children:[X?(0,q.jsx)(h.y,{type:`time`,label:`Time`,value:U.time,onChange:e=>ce({...U,time:e.target.value}),required:!0}):(()=>{let{h:e,m:t,ampm:n}=Oe(U.time);return(0,q.jsxs)(`div`,{className:`flex flex-col w-full`,children:[(0,q.jsx)(`label`,{className:`text-[13px] font-medium text-foreground/50 select-none mb-1.5 ml-1`,children:`Time`}),(0,q.jsxs)(`div`,{className:`flex items-center h-12 glass-panel border border-[var(--panel-border)] rounded-xl px-3 gap-1 focus-within:border-accent transition-colors`,children:[(0,q.jsx)(`input`,{type:`number`,min:1,max:12,value:e,onChange:e=>ce({...U,time:ke(Math.min(12,Math.max(1,parseInt(e.target.value)||12)),t,n)}),className:`w-8 text-center bg-transparent focus:outline-none text-foreground font-bold text-[15px] [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none`}),(0,q.jsx)(`span`,{className:`text-foreground/40 font-bold text-[15px] select-none`,children:`:`}),(0,q.jsx)(`input`,{type:`number`,min:0,max:59,value:t.toString().padStart(2,`0`),onChange:t=>ce({...U,time:ke(e,Math.min(59,Math.max(0,parseInt(t.target.value)||0)),n)}),className:`w-8 text-center bg-transparent focus:outline-none text-foreground font-bold text-[15px] [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none`}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>ce({...U,time:ke(e,t,n===`AM`?`PM`:`AM`)}),className:`ml-auto px-2 py-0.5 rounded-md bg-accent/10 text-accent text-[11px] font-extrabold uppercase tracking-wider hover:bg-accent/20 transition-colors shrink-0`,children:n})]})]})})(),(0,q.jsx)(h.y,{type:`number`,min:`1`,max:`1440`,label:`Duration (min)`,value:U.duration,onChange:e=>ce({...U,duration:e.target.value}),placeholder:`60`,required:!0})]}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,q.jsx)(`label`,{className:`text-[11px] font-bold text-foreground/50 uppercase tracking-widest mt-1`,children:`Event Color`}),(0,q.jsx)(`div`,{className:`flex gap-2 items-center relative z-10 w-full h-[46px]`,children:qs.map(e=>(0,q.jsx)(`button`,{type:`button`,onClick:()=>ce({...U,color:U.color===e.text?``:e.text}),className:`w-6 h-6 rounded-full shrink-0 ${e.bgCircle} hover:scale-110 transition-transform flex items-center justify-center border border-[var(--panel-border)]`,children:U.color===e.text&&(0,q.jsx)(`div`,{className:`w-2.5 h-2.5 rounded-full bg-background`})},e.name))})]}),(0,q.jsx)(`div`,{className:`pt-2`,children:(0,q.jsx)(N.t,{type:`submit`,isLoading:B,className:`w-full py-3`,children:U.id?`Save Changes`:`Create Event`})})]})]})]},`edit-modal`),(0,q.jsx)(ie.t,{isOpen:!!H,title:`Confirm Deletion`,message:(0,q.jsxs)(q.Fragment,{children:[`Are you sure you want to delete `,(0,q.jsx)(`strong`,{className:`text-foreground font-extrabold break-words mx-1`,children:H?.title}),` This action is permanent.`]}),onConfirm:Ue,onCancel:()=>{se(null)},isProcessing:ae,confirmText:`Yes, Delete`})]});return f?(0,q.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`,children:[(0,q.jsx)(r.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-6 flex items-center justify-between`,children:(0,q.jsxs)(`div`,{children:[(0,q.jsx)(n.t,{children:u?.tabTitle||u?.tabName||e}),t&&(0,q.jsxs)(`div`,{className:`flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,q.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),t]})]})}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-6 flex-1 pb-16`,children:[(0,q.jsx)(i.t,{}),(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:`flex flex-col glass-panel border border-[var(--panel-border)] rounded-3xl overflow-hidden flex-1 shadow-2xl bg-background`,children:[Je(),Xe()]})]}),Ze()]}):(0,q.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,q.jsxs)(r.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-4 md:mb-6 flex items-center gap-3`,children:[a&&(0,q.jsx)(c.r,{to:a}),(0,q.jsxs)(`div`,{className:`min-w-0`,children:[(0,q.jsx)(n.t,{children:e}),t&&(0,q.jsxs)(`div`,{className:`max-sm:hidden sm:flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,q.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),t]})]})]}),(0,q.jsx)(`div`,{className:`flex flex-col gap-6 flex-1 min-h-0 pb-16`,children:(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:`flex flex-col glass-panel border border-[var(--panel-border)] rounded-3xl overflow-hidden flex-1 min-h-[400px] shadow-2xl bg-background relative`,children:[(0,q.jsx)(`div`,{className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] bg-accent/5 blur-[120px] rounded-full pointer-events-none -z-10`}),Je(),Xe()]})}),Ze()]})}function Qs(e){let{user:t,methods:n}=e;if(!t)return null;if(!e.roleResolved||!e.profileReady)return`wait`;if(!o.un(t))return`/verify`;if(rr(t)){if(n.loading)return`wait`;if(cr(t,n.on.sms2fa,n.twoStepOptional))return`/two-step`}return L.S(e.profile,{skippable:!0,perRole:!0})!==`member`&&n.loading?`wait`:L.f(e.profile,e.userRole,n.finishRegistration,t.uid)?`/your-details`:Qr(t.uid)?Gr:null}var $s=`/register`,ec=300*1e3,tc=e=>{if(typeof window>`u`)return null;try{let t=localStorage.getItem(`fbos_route_${e}`);if(!t)return null;let{cachedAt:n,...r}=JSON.parse(t);return{config:r,cachedAt:typeof n==`number`?n:0}}catch{return null}},nc=(e,t)=>{try{localStorage.setItem(e,t)}catch{}},rc=e=>{try{localStorage.removeItem(e)}catch{}},ic=(e,t)=>{let n=t?o.jn(e.pageType):`public`;return{...e,pageType:n,isPrivate:t,isAdmin:n===`admin`,isInternal:n===`internal`,isShared:n===`internal`}};function ac({config:e}){let{userRole:t}=r.Ft(),i=j.t(e);return(0,q.jsxs)(`div`,{className:`flex-1 flex flex-col items-center justify-center m-4 md:m-8 gap-6 min-h-[40vh]`,children:[(0,q.jsxs)(`div`,{className:`w-full max-w-lg glass-panel border border-[var(--panel-border)]/50 border-dashed rounded-2xl p-8 py-16 text-center opacity-70`,children:[(0,q.jsx)(`p`,{className:`text-[15px] font-bold mb-1.5 text-foreground/70`,children:`This page could not open`}),(0,q.jsx)(`p`,{className:`text-[13px] font-medium text-foreground/50 max-w-sm leading-relaxed mx-auto`,children:`Everything else here still works. Please come back to it a little later.`})]}),o.wn(t)&&i&&(0,q.jsx)(`div`,{className:`w-full max-w-lg`,children:(0,q.jsx)(n.o,{compact:!0,title:`To put this page right, paste this to your assistant`,prompt:j.c(i.file,i.page,i.error)})})]})}function oc(){let e=(0,Y.useLocation)(),{user:a,userRole:s,loading:l,roleResolved:u,roleConfirmed:d,userInactive:f,signOut:p,profile:m,profileReady:g}=r.Ft(),_=r.Cn(),v=i.v(),y=r.mi();r.Rr();let b=e=>{let n=tc(e);if(n)try{let e=n.config;if(e.form&&!e.formConfigOverride){let t=localStorage.getItem(`fbos_form_${e.form}`);t&&(e.formConfigOverride=JSON.parse(t))}return ic(e,e.isPrivate===!0)}catch{}let r=(typeof window<`u`?window.__FBOS_PAGES__:null)||{},i=e.replace(/^\//,``);for(let[t,n]of Object.entries(r)){let r=n.config,a=n.isPublic,o=r.route||`/`+t;if(o===e||t===i)return ic({...r,route:o,contentKey:r.pageId||t,pageId:t},!a)}return e===`/contact`?{route:`/contact`,template:`popup_form`,form:`contact`,pageId:`contact`,contentKey:`contact`,pageName:`Contact`,formConfigOverride:y.defaultConfigs?.contactForm||t.a}:e===`/support`?{route:`/support`,template:`popup_form`,form:`support`,pageId:`support`,contentKey:`support`,pageName:`Support`,formConfigOverride:y.defaultConfigs?.supportForm||t.r}:null},[x,S]=(0,K.useState)(()=>b(e.pathname)),[w,T]=(0,K.useState)(()=>!b(e.pathname)),E=(0,K.useRef)(e.pathname),D=d!==!1&&o.wn(s);(0,K.useEffect)(()=>{let n=!0,i=b(e.pathname);if(i){S(i),T(!1);let e=i.pageName||i.tabName||i.title;e&&(document.title=e)}else E.current!==e.pathname&&(S(null),T(!0));E.current=e.pathname;let a=tc(e.pathname);return a&&!D&&Date.now()-a.cachedAt<ec||(async()=>{try{let i=e.pathname;i.startsWith(`/`)&&(i=i.substring(1));let[a,o,s,c,l,u]=await Promise.allSettled([(0,J.getDoc)((0,J.doc)(r.ui,`sys_pages`,i)),(0,J.getDoc)((0,J.doc)(r.ui,`sys_tabs`,i)),(0,J.getDocs)((0,J.query)((0,J.collection)(r.ui,`sys_pages`),(0,J.where)(`route`,`==`,e.pathname),(0,J.limit)(1))),(0,J.getDocs)((0,J.query)((0,J.collection)(r.ui,`sys_pages`),(0,J.where)(`route`,`==`,i),(0,J.limit)(1))),(0,J.getDocs)((0,J.query)((0,J.collection)(r.ui,`sys_tabs`),(0,J.where)(`route`,`==`,e.pathname),(0,J.limit)(1))),(0,J.getDocs)((0,J.query)((0,J.collection)(r.ui,`sys_tabs`),(0,J.where)(`route`,`==`,i),(0,J.limit)(1)))]),d=null,f=null,p=(e,t)=>{d||e.status===`fulfilled`&&(e.value.exists&&e.value.exists()?(d=ic(e.value.data(),t),f=e.value.id):e.value.docs&&e.value.docs.length>0&&(d=ic(e.value.docs[0].data(),t),f=e.value.docs[0].id))};if(p(a,!1),p(s,!1),p(c,!1),p(o,!0),p(l,!0),p(u,!0),!d){let t=(typeof window<`u`?window.__FBOS_PAGES__:null)||{};for(let[n,r]of Object.entries(t)){let t=r.config,a=r.isPublic,o=t.route||`/`+n;if(o===e.pathname||n===i){d=ic({...t,route:o,contentKey:t.pageId||n,pageId:n},!a),f=n;break}}}if(d||(e.pathname===`/contact`?(d={route:`/contact`,template:`popup_form`,form:`contact`,pageName:`Contact`},f=`contact`):e.pathname===`/support`&&(d={route:`/support`,template:`popup_form`,form:`support`,pageName:`Support`},f=`support`)),!n)return;if(d){if((f===`contact`||f===`support`)&&!d.form&&(d.form=f),d.contentKey||=d.pageId||f,d.pageId=f,nc(`fbos_route_${e.pathname}`,JSON.stringify({...d,cachedAt:Date.now()})),d.form){let e=(typeof window<`u`?window.__FBOS_FORMS__:null)||{},i=n=>y.defaultConfigs?.[n]||y.defaultConfigs?.[`${n}Form`]||e[n]||(n===`contact`?t.a:n===`support`?t.r:null),a=null;try{a=localStorage.getItem(`fbos_custom_form_${d.form}`)}catch{}if(a){try{let e=localStorage.getItem(`fbos_form_${d.form}`);e&&(d.formConfigOverride=JSON.parse(e))}catch{}(0,J.getDoc)((0,J.doc)(r.ui,`sys_forms`,d.form)).then(async e=>{if(n)if(e.exists()){let t={...e.data(),id:e.id};S(e=>({...e,formConfigOverride:t})),nc(`fbos_form_${d.form}`,JSON.stringify(t))}else{let e=i(d.form);e&&(S(t=>({...t,formConfigOverride:e})),nc(`fbos_form_${d.form}`,JSON.stringify(e)),rc(`fbos_custom_form_${d.form}`))}}).catch(()=>{})}else{let e=i(d.form);e&&(d.formConfigOverride=e)}}let i=d.pageName||d.tabName||d.title;i&&(document.title=i),S(d),T(!1)}else S(`not-found`),T(!1),rc(`fbos_route_${e.pathname}`)}catch{n&&!i&&(S(`not-found`),T(!1))}})(),()=>{n=!1}},[e.pathname,D]);let[O,k]=(0,K.useState)(!1),A=j.f(),[M,N]=(0,K.useState)(null),[P,ee]=(0,K.useState)(!1),F=x&&x!==`not-found`&&typeof x==`object`?[x.contentKey,x.tabName,x.pageId,x.pageName].filter(Boolean).join(`|`):``;(0,K.useEffect)(()=>{if(N(null),!A)return;if(!F||j.r(x)){ee(!1);return}let e=!1;ee(!0),j.n(x).then(t=>{e||(t&&N(()=>t),ee(!1))});let t=setTimeout(()=>{e||ee(!1)},4e3);return()=>{e=!0,clearTimeout(t)}},[F,A]);let te=!!a&&d===!1&&!!x&&typeof x==`object`&&x.isPrivate===!0,I=!!a&&_.loading&&!!x&&typeof x==`object`&&(x.pageId===`support`||x.isPrivate===!0)&&L.S(m,{skippable:!0,perRole:!0})!==`member`,ne=!u&&!!x&&typeof x==`object`&&(x.pageId===`support`||!!x.isPrivate);if((0,K.useEffect)(()=>{let e;return w||l||ne||te||I||P||!A?e=setTimeout(()=>k(!0),150):k(!1),()=>clearTimeout(e)},[w,l,ne,te,I,P,A]),w||l||ne||te||I||P||!A)return O?a?(0,q.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,q.jsxs)(`div`,{className:`mb-6`,children:[(0,q.jsx)(`div`,{className:`h-10 w-56 rounded-xl bg-foreground/5 animate-pulse mt-1`}),(0,q.jsx)(`div`,{className:`h-3 w-24 rounded bg-foreground/5 animate-pulse mt-3`})]}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-6 flex-1 pb-16`,children:[(0,q.jsx)(i.t,{}),(0,q.jsx)(`div`,{className:`flex-1 fbos-tab-fill glass-panel border border-[var(--panel-border)] rounded-3xl flex items-center justify-center min-h-[400px] bg-background shadow-2xl`,children:(0,q.jsx)(C.r,{className:`w-6 h-6 animate-spin text-accent`})})]})]}):(0,q.jsx)(`div`,{className:`flex-1 flex items-center justify-center min-h-[40vh] z-10`,children:(0,q.jsxs)(`div`,{className:`p-4 rounded-2xl glass-panel border border-[var(--panel-border)]/40 bg-background/80 shadow-md flex items-center gap-3`,children:[(0,q.jsx)(C.r,{className:`w-4 h-4 animate-spin text-accent`}),(0,q.jsx)(`span`,{className:`text-[12px] font-medium text-foreground/60 tracking-wide`,children:`Loading page...`})]})}):null;if(x===`not-found`)return(0,q.jsx)(`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,q.jsxs)(`div`,{className:`flex flex-col items-center justify-center flex-1 text-center`,children:[(0,q.jsx)(`div`,{className:`w-16 h-16 bg-red-500/10 text-red-500 rounded-full flex items-center justify-center mb-6`,children:(0,q.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`w-8 h-8`,children:[(0,q.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,q.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`12`}),(0,q.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12.01`,y2:`16`})]})}),(0,q.jsx)(`h2`,{className:`text-2xl sm:text-3xl font-bold mb-3 text-foreground`,children:`Page Not Found`}),(0,q.jsx)(`p`,{className:`text-foreground/60 max-w-md`,children:`The route you are looking for does not exist or has been removed.`}),o.wn(s)&&(()=>{let t=ea();return(0,q.jsxs)(`div`,{className:`mt-8 w-full max-w-lg text-left flex flex-col gap-4`,children:[(0,q.jsxs)(`div`,{className:`rounded-2xl border border-[var(--panel-border)] bg-[var(--panel-bg)] px-5 py-4`,children:[(0,q.jsx)(`p`,{className:`text-[12px] font-extrabold tracking-tight text-gradient mb-1.5`,children:`Pages the app can see`}),(0,q.jsx)(`p`,{className:`text-[13px] text-foreground/70 font-medium leading-relaxed`,children:t.length?t.join(` · `):`None yet. If your assistant says it created a page, the app has not picked its file up.`})]}),(0,q.jsx)(n.o,{title:`If your assistant just made this page, paste this`,prompt:aa(e.pathname)})]})})()]})});if((x.pageId===`support`||x.isPrivate)&&!a)return(0,q.jsx)(Y.Navigate,{to:`/login?from=${encodeURIComponent(e.pathname)}`,replace:!0});let R=(x.pageId===`support`||x.isPrivate)&&a?Qs({user:a,profile:m,userRole:s,roleResolved:u,profileReady:g,methods:_}):null;if(R===`wait`)return(0,q.jsx)(`div`,{className:`flex-1 flex items-center justify-center min-h-[40vh] z-10`,children:(0,q.jsx)(C.r,{className:`w-6 h-6 animate-spin text-accent`})});if((x.pageId===`support`||x.isPrivate)&&a&&f)return m?.removed===!0?(0,q.jsx)(Y.Navigate,{to:$s,replace:!0}):(0,q.jsx)(H.t,{tone:`red`,title:`Access Denied`,message:`You don't have access to this app. Please contact the administrator.`,action:(0,q.jsx)(`button`,{onClick:()=>p(),className:H.a,children:`Sign Out`})});if(R)return(0,q.jsx)(Y.Navigate,{to:R,replace:!0});let z=o.wn(s)&&new URLSearchParams(e.search).has(`preview`);if(x.isPrivate&&!z&&o.Nn(x)&&!v.live)return(0,q.jsx)(`div`,{className:`flex-1 flex items-center justify-center min-h-[40vh] z-10`,children:(0,q.jsx)(C.r,{className:`w-6 h-6 animate-spin text-accent`})});if(x.isPrivate&&!z&&!o.yn(s,x,v.groups))return(0,q.jsx)(H.i,{});let re=y.customRoutes?.[e.pathname]||(x&&x.route?y.customRoutes?.[x.route]:null),ie=`pub_${B.i(x,!1)}`,V=x.isPrivate?`${o.Mn(x)}${B.i(x,!0)}`:ie,ae=y.microcomponents||(typeof window<`u`?window.__FBOS_MICROCOMPONENTS__:void 0),oe=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,`_`).replace(/^_|_$/g,``),se=[x.contentKey,x.tabName,x.pageId,x.pageName,x.pageName?.replace(/\s+/g,`_`)].filter(Boolean).map(e=>oe(e)).reduce((e,t)=>e||ae?.[t],void 0),U=re||se||M||(B.c(x.template,!1)&&j.t(x)?ac:void 0),ce=x.route||x.pageId||`custom`;return B.c(x.template,!!U)?x.isAdmin?(0,q.jsx)(Za,{config:x,customContent:U},ce):x.isInternal?(0,q.jsx)($a,{config:x,customContent:U},ce):x.isPrivate?(0,q.jsx)(Ya,{config:x,customContent:U},ce):(0,q.jsx)(Oa,{config:x,customContent:U},ce):x.template===`board`?(0,q.jsx)(y.components?.TemplateBoard||_o,{title:x.tabTitle||x.tabName||x.title||x.pageName||`Board`,subtitle:x.route,tasksCollection:`${V}_tasks`,categoriesCollection:`${V}_categories`,config:x,customContent:U},ce):x.template===`table`?(0,q.jsx)(y.components?.TemplateTable||Ks,{title:x.tabTitle||x.tabName||x.title||x.pageName||`Table`,subtitle:x.route,tableCollection:`${V}_table`,config:x,customContent:U},ce):x.template===`calendar`?(0,q.jsx)(y.components?.TemplateCalendar||Zs,{title:x.tabTitle||x.tabName||x.title||x.pageName||`Calendar`,subtitle:x.route,eventsCollection:`${V}_events`,defaultTimeFormat:x.defaultTimeFormat||x.defaulttimeformat||`12h`,config:x,customContent:U},ce):x.template===`drive`?(0,q.jsx)(y.components?.TemplateDrive||c.t,{title:x.tabTitle||x.tabName||x.title||x.pageName||`Drive`,subtitle:x.route,filesCollection:`${V}_files`,config:x,customContent:U},ce):x.template===`inline_form`?(0,q.jsx)(`div`,{className:`flex-1 flex flex-col items-center justify-start mt-8 relative z-10 w-full min-h-[60vh]`,children:(0,q.jsx)(h.t,{isInline:!0,formId:x.form,formConfig:x.formConfigOverride})}):(0,q.jsx)(`div`,{className:`flex-1 flex flex-col items-center justify-center relative z-10 w-full min-h-[60vh]`,children:(0,q.jsx)(h.t,{formId:x.form,formConfig:x.formConfigOverride,onClose:()=>window.history.back()})})}function sc(e,t=r.Lr()){let n=typeof e==`string`?e.trim()===``?NaN:Number(e):e;if(n==null||!Number.isFinite(n))return`—`;let i=(t||r.Lr()).toUpperCase();try{return new Intl.NumberFormat(void 0,{style:`currency`,currency:i}).format(n)}catch{return`${n} ${i}`}}var cc=e=>e.error?`error`:e.paid?`paid`:r.In(e)?`clearing`:`unpaid`,lc={checking:{icon:$e,tint:`text-accent`,title:`Checking your payment…`},paid:{icon:qe,tint:`text-accent`,title:`Thank you — your order is placed`},clearing:{icon:$e,tint:`text-accent`,title:`Your payment is on its way`},unpaid:{icon:$e,tint:`text-foreground/50`,title:`Not confirmed yet`},error:{icon:Ge,tint:`text-foreground/50`,title:`We could not confirm this payment`},cancelled:{icon:Ze,tint:`text-foreground/50`,title:`Payment cancelled`}};function uc({cancelled:e=!1}){let[t]=(0,Y.useSearchParams)(),n=t.get(`session_id`)||``,{user:i}=r.Ft(),[a,o]=(0,K.useState)(`checking`),[s,c]=(0,K.useState)(null);(0,K.useEffect)(()=>{if(e)return;let t=!1;return r.An(n).then(e=>{t||(c(e),o(cc(e)))}),()=>{t=!0}},[e,n]);let l=async()=>{o(`checking`);let e=await r.An(n);c(e),o(cc(e))},u=lc[e?`cancelled`:a],d=u.icon;return(0,q.jsx)(`div`,{className:`flex-1 flex items-center justify-center w-full z-10 px-4 mb-16`,children:(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.5},className:`w-full max-w-[480px] p-6 md:p-8 lg:p-10 rounded-3xl glass-panel relative glow-hover text-center shadow-[0_8px_32px_rgba(0,0,0,0.08)]`,children:[(0,q.jsx)(`div`,{className:`absolute -inset-[1px] bg-gradient-to-br from-[var(--primary-glow)] to-transparent opacity-30 blur-[20px] rounded-3xl -z-10`}),(0,q.jsx)(`div`,{className:`w-14 h-14 md:w-16 md:h-16 rounded-2xl glass-panel border border-[var(--panel-border)] flex items-center justify-center mx-auto mb-5 md:mb-6 shadow-xl`,children:(0,q.jsx)(d,{className:`w-7 h-7 md:w-8 md:h-8 ${u.tint} ${!e&&a===`checking`?`animate-pulse`:``}`})}),(0,q.jsx)(`h1`,{className:`text-2xl md:text-3xl font-bold mb-3 text-foreground tracking-tight`,children:u.title}),(0,q.jsxs)(`div`,{className:`text-[14px] md:text-[15px] text-foreground/60 mb-6 md:mb-8 leading-[1.6] tracking-wide`,children:[e&&(0,q.jsx)(`p`,{children:`Nothing was charged. You can try again whenever you like.`}),!e&&a===`checking`&&(0,q.jsx)(`p`,{children:`One moment — confirming with the payment provider.`}),!e&&a===`paid`&&(0,q.jsxs)(`p`,{children:[s?.amountTotal!=null&&s?.currency?`Your payment of ${sc(s.amountTotal,s.currency)} went through.`:`Your payment went through.`,s?.receipt&&s.customerEmail?` A receipt is on its way to ${s.customerEmail}.`:``,i?` Your order is under Billing, and the bell will tell you if anything changes.`:s?.customerEmail?` Sign in with ${s.customerEmail} any time to see your order under Billing.`:``]}),!e&&a===`clearing`&&(0,q.jsxs)(`p`,{children:[`Your bank is still sending it, which can take a few days. Your order is in: there is nothing more to do, and please do not pay again.`,s?.receiptLater&&s.customerEmail?` We will email a receipt to ${s.customerEmail} once it arrives.`:``]}),!e&&a===`unpaid`&&(0,q.jsx)(`p`,{children:`The payment provider has not confirmed this payment yet. Some payment methods take a minute — check again shortly.`}),!e&&a===`error`&&(0,q.jsxs)(`p`,{children:[s?.error,` If you finished paying, your order is safe — please do not pay again.`]})]}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-3 max-w-[360px] mx-auto`,children:[!e&&a===`paid`&&i&&(0,q.jsx)(Y.Link,{to:`/billing`,className:`w-full block py-2.5 md:py-3 btn-primary text-[14px] font-bold rounded-xl transition-colors text-center`,children:`See your order`}),!e&&(a===`unpaid`||a===`error`)&&(0,q.jsx)(N.t,{variant:`primary`,onClick:l,className:`w-full py-2.5 md:py-3 text-[14px] font-bold tracking-wide rounded-xl`,children:`Check again`}),(0,q.jsx)(Y.Link,{to:`/`,className:`w-full block py-2.5 md:py-3 bg-foreground/5 hover:bg-foreground/10 text-foreground text-[14px] font-bold rounded-xl transition-colors`,children:`Back to the site`})]})]})})}var dc={contentKey:`dashboard`};function fc(){let{user:e,profile:t}=r.Ft(),a=r.mi();r.Rr();let o=(0,Y.useNavigate)(),[s]=(0,Y.useSearchParams)(),[c]=(0,K.useState)(()=>s.get(L.n)===`1`);(0,K.useEffect)(()=>{if(!c)return;let e=new URLSearchParams(s);e.delete(L.n);let t=e.toString();o(`/dashboard${t?`?${t}`:``}`,{replace:!0})},[c]);let l=c&&L.h(t),[u,d]=(0,K.useState)(null),[f,p]=(0,K.useState)(()=>typeof window<`u`&&!j.r(dc));(0,K.useEffect)(()=>{if(j.r(dc))return;let e=!1;j.n(dc).then(t=>{e||(t&&d(()=>t),p(!1))});let t=setTimeout(()=>{e||p(!1)},4e3);return()=>{e=!0,clearTimeout(t)}},[]);let m=a.microcomponents?.dashboard||(typeof window<`u`?window.__FBOS_MICROCOMPONENTS__?.dashboard:void 0)||u||void 0,h=(String(t?.displayName||``).trim()||e?.displayName||e?.email?.split(`@`)[0]||`there`).split(` `)[0],g=h.charAt(0).toUpperCase()+h.slice(1),_=`${l?`Welcome`:`Welcome back`}, ${g}.`;return(0,q.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,q.jsxs)(r.nt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-8`,children:[(0,q.jsx)(n.t,{children:_}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,q.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),`/dashboard`]})]}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-4 flex-1 min-h-[500px]`,children:[(0,q.jsx)(`div`,{className:`flex justify-start`,children:(0,q.jsx)(i.t,{})}),m?(0,q.jsx)(`div`,{className:`fbos-content-slot fbos-tab-fill relative w-full flex-1`,children:(0,q.jsx)(j.p,{size:`part`,children:(0,q.jsx)(m,{})})}):(0,q.jsxs)(`div`,{className:`w-full flex-1 glass-panel rounded-3xl relative overflow-hidden border border-[var(--panel-border)] shadow-2xl bg-[var(--panel-bg)] p-8 md:p-12 flex items-center justify-center`,children:[(0,q.jsx)(`div`,{className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-64 h-64 bg-accent/10 blur-[100px] rounded-full pointer-events-none`}),f?(0,q.jsx)(C.r,{className:`w-6 h-6 text-accent animate-spin relative z-10`}):(0,q.jsx)(r.rt,{mode:`wait`,children:(0,q.jsxs)(r.nt.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.3},className:`text-center z-10`,children:[(0,q.jsx)(`div`,{className:`w-16 h-16 rounded-3xl bg-accent/10 border border-accent/20 flex items-center justify-center text-accent mx-auto mb-6 shadow-inner`,children:(0,q.jsx)(tt,{className:`w-6 h-6`})}),(0,q.jsx)(`h2`,{className:`text-2xl font-bold text-foreground mb-2`,children:`No data added here yet`}),(0,q.jsx)(`p`,{className:`text-foreground/40 font-medium`,children:`Keep moving forward, your data will appear here.`})]})})]})]})]})}var pc=8e3,mc=2e4;function hc(e){let[t,n]=(0,K.useState)(()=>e<=0);return(0,K.useEffect)(()=>{if(e<=0)return;let t=setTimeout(()=>n(!0),e);return()=>clearTimeout(t)},[e]),t}function gc(){return{slow:hc(pc),stuck:hc(mc)}}var _c=e=>e&&/^\/(?![/\\])/.test(e)?e:null,vc=`Still trying to connect`,yc=`The app has not heard back. This is almost always the connection rather than anything you did — reloading usually picks it up.`,bc=`No connection`,xc=`This device is not online, so the app cannot finish opening. It will carry on by itself the moment you are back.`,Sc=()=>{let{slow:e,stuck:t}=gc(),n=r.$r();return t||e&&n?(0,q.jsx)(a.t,{override:{title:n?bc:vc,message:n?xc:yc,next:`reload`}}):(0,q.jsxs)(`div`,{className:`flex-1 flex flex-col items-center justify-center min-h-[60vh] z-10 fbos-fade-in`,children:[(0,q.jsx)(`div`,{className:`w-12 h-12 rounded-xl glass-panel border border-[var(--panel-border)] flex items-center justify-center mb-6 shadow-xl`,children:(0,q.jsx)(tt,{className:`w-6 h-6 text-accent animate-pulse`})}),(0,q.jsxs)(`div`,{className:`flex items-center gap-3 glass-panel px-5 py-2.5 rounded-full border border-[var(--panel-border)]`,children:[(0,q.jsx)(`div`,{className:`w-4 h-4 border-2 border-accent border-t-transparent rounded-full animate-spin`}),(0,q.jsx)(`span`,{className:`text-[13px] font-bold tracking-widest uppercase text-foreground/70`,children:`Connecting`})]}),e&&(0,q.jsxs)(`div`,{className:`mt-6 max-w-xs w-full px-4 text-center fbos-fade-in`,children:[(0,q.jsx)(`p`,{className:`text-[13px] font-semibold text-foreground/60 leading-relaxed mb-3`,children:`This is taking longer than it should.`}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>{typeof window<`u`&&window.location.reload()},className:`w-full flex items-center justify-center gap-2 py-2.5 bg-foreground/5 hover:bg-foreground/10 text-foreground text-[14px] font-bold rounded-xl transition-colors`,children:`Reload the page`})]})]})};function Cc({level:e,children:t}){let{user:n,userRole:i,loading:a,userInactive:s,signOut:c,roleResolved:l,profile:u,profileReady:d}=r.Ft(),f=(0,Y.useLocation)(),p=r.Cn();if(a||!l)return(0,q.jsx)(Sc,{});if(!n)return(0,q.jsx)(Y.Navigate,{to:`/login?from=${encodeURIComponent(f.pathname)}`,replace:!0});if(!d)return(0,q.jsx)(Sc,{});if(s)return u?.removed===!0?(0,q.jsx)(Y.Navigate,{to:$s,replace:!0}):(0,q.jsx)(H.t,{tone:`red`,title:`Access Denied`,message:`You don't have access to this app. Please contact the administrator.`,action:(0,q.jsx)(`button`,{onClick:()=>c(),className:H.a,children:`Sign Out`})});let m=Qs({user:n,profile:u,userRole:i,roleResolved:l,profileReady:d,methods:p});return m===`wait`?(0,q.jsx)(Sc,{}):m?(0,q.jsx)(Y.Navigate,{to:m}):e===`admin`&&!o.wn(i)?(0,q.jsx)(H.n,{}):e===`internal`&&!o.Sn(i)?(0,q.jsx)(H.r,{}):(0,q.jsx)(q.Fragment,{children:t})}var wc=({children:e})=>(0,q.jsx)(Cc,{level:`signed-in`,children:e}),Tc=({children:e})=>(0,q.jsx)(Cc,{level:`admin`,children:e});function Ec({tab:e,children:t}){let{userRole:n}=r.Ft(),{audience:a,live:s}=i.o(e),c=re.i(n,a);return!c&&!s&&!o.wn(n)?(0,q.jsx)(Sc,{}):(0,q.jsx)(Cc,{level:c?`signed-in`:`admin`,children:t})}function Dc({children:e,landing:t}){let{user:n,loading:i,roleResolved:a,profileReady:s,profile:c,userRole:l}=r.Ft(),u=r.Cn(),[d]=(0,Y.useSearchParams)(),[f]=(0,K.useState)(()=>r.Bt()),[p,m]=(0,K.useState)(!1);if(!i&&!n&&!p&&m(!0),i)return f?(0,q.jsx)(q.Fragment,{children:e}):(0,q.jsx)(Sc,{});if(d.has(`preview`)||n&&s&&c?.removed===!0)return(0,q.jsx)(q.Fragment,{children:e});if(n&&o.un(n)){let r=Qs({user:n,profile:c,userRole:l,roleResolved:a,profileReady:s,methods:u});return r===`wait`||u.loading?p?(0,q.jsx)(q.Fragment,{children:e}):(0,q.jsx)(Sc,{}):(0,q.jsx)(Y.Navigate,{to:r??_c(d.get(`from`))??t??`/dashboard`,replace:!0})}return(0,q.jsx)(q.Fragment,{children:e})}function Oc({children:e}){let{user:t,loading:n,roleResolved:i,profile:a,profileReady:s}=r.Ft();if(n||!i)return(0,q.jsx)(Sc,{});if(!t)return(0,q.jsx)(Y.Navigate,{to:`/`});if(o.un(t)){if(!s)return(0,q.jsx)(Sc,{});if(!o.dn(t,a))return(0,q.jsx)(Y.Navigate,{to:`/dashboard`})}return(0,q.jsx)(q.Fragment,{children:e})}function kc({children:e}){let{user:t,loading:n,roleResolved:i}=r.Ft(),a=r.Cn();return n||!i?(0,q.jsx)(Sc,{}):t?o.un(t)?a.loading?(0,q.jsx)(Sc,{}):!a.on.sms2fa||!rr(t)?(0,q.jsx)(Y.Navigate,{to:`/dashboard`}):(0,q.jsx)(q.Fragment,{children:e}):(0,q.jsx)(Y.Navigate,{to:`/verify`}):(0,q.jsx)(Y.Navigate,{to:`/`})}function Ac({children:e}){let{user:t,userRole:n,loading:i,roleResolved:a,roleConfirmed:s,profile:c,profileReady:l}=r.Ft(),u=r.Cn();return i||!a?(0,q.jsx)(Sc,{}):t?o.un(t)?!s||!l||u.loading?(0,q.jsx)(Sc,{}):L.v(c,n,u.finishRegistration)?(0,q.jsx)(q.Fragment,{children:e}):(0,q.jsx)(Y.Navigate,{to:`/dashboard`}):(0,q.jsx)(Y.Navigate,{to:`/verify`}):(0,q.jsx)(Y.Navigate,{to:`/`})}var jc=[`user_submissions`,`user_requests`],Mc=e=>Array.isArray(e)?e.filter(e=>typeof e==`string`&&e):[],Nc=e=>[...new Set(e.filter(e=>e&&e!==`uid:`&&e!==`role:`))],Pc=new Set([`id`,`from`,`uid`,`formId`,`submittedAt`,`submitterAvatar`,`transaction`,`arrivedIn`,`appliedEntries`,`access`,`editors`,`archived`,`read`,`starred`]);function Fc(e,t){let n={};for(let[t,r]of Object.entries(e))!Pc.has(t)&&r!==void 0&&(n[t]=r);let r=t&&t.kind===`charge`?t:null;return r?.paidWith&&n.paidWith===void 0&&(n.paidWith=r.paidWith),r?.receiptUrl&&n.receiptUrl===void 0&&(n.receiptUrl=r.receiptUrl),n}function Ic(e,t){let n=Object.entries(e).filter(([e,t])=>/e-?mail/i.test(e)&&typeof t==`string`).map(([,e])=>String(e)),r=e.buyer&&typeof e.buyer==`object`?String(e.buyer.email||``):``;return[...new Set([String(t?.email||``),String(e.submitterEmail||``),r,...n].map(c.T))].filter(e=>e!==`email:`).slice(0,3)}var Lc=e=>{if(!e)return 0;if(typeof e==`number`)return e;if(typeof e.toMillis==`function`)return e.toMillis();if(typeof e.seconds==`number`)return e.seconds*1e3;let t=new Date(e).getTime();return Number.isNaN(t)?0:t};function Rc(e,t,{roles:n=[],viewers:r=[],senderCanEdit:i=!1},a=null){let o=e.uid&&e.uid!==`guest`?c.E(e.uid):``,s=n.map(c.D),l=Ic(e,a),u=!o&&!t.email&&l.length?{email:l[0].slice(6)}:{};return{...t,...u,uid:o?e.uid:``,access:Nc([o,...l,...s,...r.map(c.D),...Mc(t.access),...Mc(t.editors)]),editors:Nc([...i?[o]:[],...s,...Mc(t.editors)]),sourceId:e.id,formId:e.formId,createdAt:typeof t.createdAt==`number`?t.createdAt:Lc(e.submittedAt)||Date.now()}}function zc(e,t,n){return!t||!e?.sourceId||e.uid!==t?!1:n===void 0?!Mc(e.access).includes(c.E(t)):n}function Bc(e,t,n,r=[]){for(let i of t){let t=Object.values(i.collected||{});if(t.includes(e)&&U.n(n,i,r.filter(n=>n.id!==e&&t.includes(n.id)))&&(i.kind===`charge`?i.paid:[`active`,`trialing`].includes(String(i.status))))return i}return null}var Vc=e=>{let t=Number(e?.total);return{...e,id:String(e?.sourceId||``),transaction:!0,items:Array.isArray(e?.items)?e.items:[],total:e?.total!=null&&Number.isFinite(t)?t:2**53-1}},Hc=(e,t)=>{let n=new Set;for(let r of e){let e=Object.values(r.collected||{}).map(String);if(e.some(e=>t.includes(e)))for(let r of e)r&&!t.includes(r)&&n.add(r)}return[...n]},Uc=(e,t)=>{let n=new Map(t.filter(e=>e.id).map(e=>[e.id,e]));return[...e.map(e=>n.get(e.id)||e),...[...n.values()].filter(t=>!e.some(e=>e.id===t.id))]},Wc=5,Gc=60*1e3;async function Kc(e,t=[]){let n=new Map(t.map(e=>[e.id,e])),i=[];try{let a=await r.li?.currentUser?.getIdToken();if(!a)return{sales:i,error:``};let o=``,s=``;for(let r=0;r<Wc;r+=1){let c=new URLSearchParams;o&&c.set(`starting_after`,o),s&&c.set(`subscriptions_after`,s);let l=await fetch(`/api/payments/sales${r?`?${c}`:``}`,{headers:{Authorization:`Bearer ${a}`}});if(!l.ok){let e=``;try{e=String((await l.json())?.error||``)}catch{}return{sales:i,error:e||`Your payments could not be read, so nothing paid for could be let in just now.`}}let u=await l.json();if(i.push(...u?.charges||[],...u?.subscriptions||[]),e.every(e=>Bc(e,i,n.get(e),t))||!u?.chargesHasMore&&!u?.subscriptionsHasMore)break;o=u?.chargesAfter||o,s=u?.subscriptionsAfter||s}return{sales:i,error:``}}catch{return{sales:i,error:`Your payments could not be read, so nothing paid for could be let in just now.`}}}var qc=e=>e?.code===`permission-denied`?`What came in from the other page could not be read. The security rules may need pasting again from the Setup screen.`:`What came in from the other page could not be read just now.`,Jc=1440*60*1e3,Yc=(e,t,n)=>[e.name,e.customerName,e.buyer?.name,t.submitterName,n?.name].map(e=>typeof e==`string`?e.trim():``).find(Boolean)||``;function Xc(e,t,{roles:n=[],paid:r=!1,page:i,ring:a=!0},o,s=Date.now()){if(!a)return[];let c=Lc(e.submittedAt);if(c&&s-c>Jc)return[];let l=i?.path||(typeof window<`u`?window.location.pathname:``),u=i?.title?` on ${i.title}`:``,d=Yc(t,e,o),f=n.map(e=>({toRole:e,title:r?`New order${u}`:`Something new${u}`,body:d?`From ${d}`:``,link:l}));return e.uid&&e.uid!==`guest`&&f.push({toUid:e.uid,title:r?`We have your order`:`We have what you sent`,body:i?.title?`Follow it on ${i.title}.`:`You can follow it here.`,link:l}),f}var Zc=new Map,Qc=new Set,$c=(e,t)=>`${e}|${t}`,el=(e,t)=>(Zc.get($c(e,t))||0)>0,tl=e=>(Qc.add(e),()=>{Qc.delete(e)}),nl=(e,t)=>{Zc.set(e,Math.max(0,(Zc.get(e)||0)+t)),Qc.forEach(e=>e())};function rl(e,t,n,i){let{formId:a,paid:o=!1}=t(),s=!0,c=new Map,l=new Map,u=new Set,d=!1,f=!1,p=async(n,i)=>{let a=t(),o;try{o=(a.make||Fc)(n,i)}catch{return`Something that came in could not be read into this page.`}if(!o)return``;let s=Rc(n,o,a,i),c=!1;try{await(0,J.runTransaction)(r.ui,async t=>{c=!1;let i=(0,J.doc)(r.ui,n.from,n.id),a=(0,J.doc)(r.ui,e,n.id),o=await t.get(i);!o.exists()||Mc(o.data()?.arrivedIn).includes(e)||((await t.get(a)).exists()||(t.set(a,s),c=!0),t.update(i,{arrivedIn:(0,J.arrayUnion)(e)}))})}catch(e){return qc(e)}if(c)for(let e of Xc(n,s,a,i))Ft(e);return``},m=async t=>{let n=[];for(let i=0;i<t.length;i+=30){let a=await(0,J.getDocs)((0,J.query)((0,J.collection)(r.ui,e),(0,J.where)(`sourceId`,`in`,t.slice(i,i+30))));for(let e of a.docs)n.push(Vc(e.data()||{}))}return n},h=async()=>{if(d){f=!0;return}d=!0;try{let e=[...c.values()].flatMap(e=>[...e.values()]).filter(e=>!u.has(e.id));if(!e.length)return;let t=[],n=``,r=[...l.values()].flat(),a=r;if(o){let o=await Kc(e.map(e=>e.id),r);if(!s)return;t=o.sales,n=o.error;try{a=Uc(r,await m(Hc(t,e.map(e=>e.id))))}catch(e){i(n||qc(e));return}if(!s)return}for(let r of e){let e=o?Bc(r.id,t,r,a):null;if(o&&!e)continue;let i=await p(r,e);if(!s)return;i?n||=i:u.add(r.id)}i(n)}finally{d=!1,f&&s&&(f=!1,h())}},g=new Map,_=new Set,v=!1,y=async()=>{try{let t=await(0,J.getDocs)((0,J.query)((0,J.collection)(r.ui,e),(0,J.where)(`formId`,`==`,a),(0,J.where)(`uid`,`==`,n)));for(let i of t.docs){if(!s)return;let t=i.data()||{};zc(t,n,g.get(String(t.sourceId)))&&await(0,J.updateDoc)((0,J.doc)(r.ui,e,i.id),{uid:``})}}catch{}},b=jc.map(t=>(0,J.onSnapshot)((0,J.query)((0,J.collection)(r.ui,t),(0,J.where)(`formId`,`==`,a)),n=>{let r=new Map,i=[];for(let o of n.docs){let n=o.data()||{};g.set(o.id,!n.uid||n.uid===`guest`);let s={...n,id:o.id,uid:String(n.uid||`guest`),formId:a,from:t};i.push(s),!Mc(n.arrivedIn).includes(e)&&r.set(o.id,s)}c.set(t,r),l.set(t,i),_.add(t),!v&&_.size===jc.length&&(v=!0,y()),h()},e=>{s&&i(qc(e))})),x=()=>o&&[...c.values()].some(e=>[...e.values()].some(e=>!u.has(e.id)&&Date.now()-(Lc(e.submittedAt)||Date.now())<72e5)),S=setInterval(()=>{x()&&h()},Gc),C=()=>{document.visibilityState===`visible`&&x()&&h()};return document.addEventListener(`visibilitychange`,C),()=>{s=!1,b.forEach(e=>e()),clearInterval(S),document.removeEventListener(`visibilitychange`,C)}}function il(e,t,n){let{user:i,isAdmin:a,roleConfirmed:s}=r.Ft(),c=i?.uid||``,{formId:l,paid:u=!1}=t,d=(0,K.useRef)(t);(0,K.useEffect)(()=>{d.current=t});let[f,p]=(0,K.useState)(``),m=$c(e,l),h=(0,K.useSyncExternalStore)(tl,()=>n?!1:el(e,l)),g=!!c&&a&&s&&o.Tn(e)&&!!l&&!h;return(0,K.useEffect)(()=>{if(!(!n||!o.Tn(e)||!l))return nl(m,1),()=>nl(m,-1)},[n,m,e,l]),(0,K.useEffect)(()=>{if(g)return rl(e,()=>d.current,c,p)},[g,e,l,u,c]),{error:g?f:``}}function al(e,t){return il(e,t,!0)}function ol(e,t){return il(e,t,!1)}function sl({road:e}){let{error:t}=ol(e.collection,{formId:e.formId,paid:e.paid,roles:e.roles,page:e.page});return(0,K.useEffect)(()=>{t&&a.s(r.ni(t,`none`))},[t]),null}function cl(){return(0,q.jsx)(q.Fragment,{children:S.i().map(e=>(0,q.jsx)(sl,{road:e},`${e.collection}|${e.formId}`))})}function ll(){let{pathname:e,hash:t}=(0,Y.useLocation)(),n=(0,Y.useNavigationType)();return(0,K.useLayoutEffect)(()=>{if(!(n===`POP`||t))try{window.scrollTo({top:0,left:0,behavior:`instant`})}catch{}},[e,t,n]),null}ll.displayName=`ScrollToTop`;var ul=()=>Promise.resolve().then(()=>require(`./Users-OoLl2gL7.cjs`)).then(e=>({default:e.UsersTab})),dl=()=>Promise.resolve().then(()=>require(`./SignInAdmin-i54MB8_N.cjs`)).then(e=>({default:e.SignInAdmin})),fl=()=>Promise.resolve().then(()=>require(`./Inbox-B7Fbafns.cjs`)).then(e=>({default:e.Inbox})),pl=()=>Promise.resolve().then(()=>require(`./Assets-B7pwb6Um.cjs`)).then(e=>({default:e.Assets})),ml=()=>Promise.resolve().then(()=>require(`./ThemeAdmin-C_sDuc6v.cjs`)).then(e=>({default:e.ThemeAdmin})),hl=()=>Promise.resolve().then(()=>require(`./PagesAdmin-CkyRUY-u.cjs`)).then(e=>({default:e.PagesAdmin})),gl=()=>Promise.resolve().then(()=>require(`./FormsAdmin-w0wf7OSC.cjs`)).then(e=>({default:e.FormsAdmin})),_l=()=>Promise.resolve().then(()=>require(`./PaymentsAdmin-BinwKhYN.cjs`)).then(e=>({default:e.PaymentsAdmin})),vl=()=>Promise.resolve().then(()=>require(`./TransactionsAdmin-DA5hjH-W.cjs`)).then(e=>({default:e.TransactionsAdmin})),yl=()=>Promise.resolve().then(()=>require(`./ScheduleAdmin-BUBN6MHw.cjs`)).then(e=>({default:e.ScheduleAdmin})),bl=()=>Promise.resolve().then(()=>require(`./EmailAdmin-CWWEiw1P.cjs`)).then(e=>({default:e.EmailAdmin})),xl=()=>Promise.resolve().then(()=>require(`./SetupPayments-BIHsIUt9.cjs`)).then(e=>({default:e.SetupPayments})),Sl=()=>Promise.resolve().then(()=>require(`./PublishApp-LC1xnbSp.cjs`)).then(e=>({default:e.PublishApp})),Cl=()=>Promise.resolve().then(()=>require(`./MyBookings-CF3L28-M.cjs`)).then(e=>({default:e.MyBookings})),wl=()=>Promise.resolve().then(()=>require(`./Billing-ChKtBPGu.cjs`)).then(e=>({default:e.Billing})),Tl=r.si(ul),El=r.si(dl),Dl=r.si(fl),Ol=r.si(pl),kl=r.si(ml),Al=r.si(hl),jl=r.si(gl),Ml=r.si(_l),Nl=r.si(vl);r.si(yl);var Pl=r.si(bl),Fl=r.si(xl),Il=r.si(Sl);r.si(Cl);var Ll=r.si(wl),Rl=[...[],wl],zl=[ul,fl,vl,...[]],Bl=[hl,...[],ml,dl,pl,_l,bl,Sl,xl];function Vl(){let{user:e,isAdmin:t,isInternal:n}=r.Ft();return(0,K.useEffect)(()=>{if(!e)return;let r=[...Rl,...t||n?zl:[],...t?Bl:[]],i=!1,a,o=e=>typeof window.requestIdleCallback==`function`?window.requestIdleCallback(e,{timeout:4e3}):window.setTimeout(e,1500),s=e=>typeof window.cancelIdleCallback==`function`?window.cancelIdleCallback(e):window.clearTimeout(e),c=()=>{let e=r.shift();!e||i||(a=o(()=>{e().catch(()=>{}).finally(c)}))};return c(),()=>{i=!0,a!==void 0&&s(a)}},[e,t,n]),null}function Hl(){return(0,q.jsxs)(`div`,{className:`fixed top-0 left-0 w-full h-full pointer-events-none -z-0 overflow-hidden`,children:[(0,q.jsx)(`div`,{className:`fbos-orb-1 absolute -top-[30%] md:-top-[400px] -right-[10%] md:-right-[200px] w-[500px] md:w-[800px] h-[500px] md:h-[800px] rounded-full bg-decorator-1 blur-[80px] md:blur-[120px]`}),(0,q.jsx)(`div`,{className:`fbos-orb-2 absolute -bottom-[20%] md:-bottom-[300px] -left-[10%] md:-left-[100px] w-[400px] md:w-[600px] h-[400px] md:h-[600px] rounded-full bg-decorator-2 blur-[60px] md:blur-[100px]`})]})}var Ul={pageId:`home`};function Wl({Page:e}){return hn(),r.Rr(),(0,q.jsx)(`div`,{className:`fbos-home-slot contents`,children:(0,q.jsx)(j.p,{size:`part`,children:(0,q.jsx)(te.t,{config:Ul,children:e===In?(0,q.jsx)(e,{}):(0,q.jsx)(on,{which:`home`,fallback:(0,q.jsx)(In,{}),onlyMissing:!0,neverPutAside:!an(e),children:(0,q.jsx)(e,{})})})})})}function Gl(){let{isAdmin:e}=r.Ft();return(0,q.jsx)(un,{isAdmin:!!e})}function Kl(){let e=r.mi().components?.Home||In,t=(0,Y.useNavigate)(),n=(0,Y.useLocation)();return(0,q.jsx)(r.Nt,{onSignedOut:()=>t(`/`,{replace:!0}),onRemoved:()=>t($s,{replace:!0}),children:(0,q.jsxs)(`div`,{className:`min-h-screen relative flex flex-col overflow-x-clip`,children:[(0,q.jsxs)(fn,{children:[(0,q.jsx)(j.p,{size:`part`,children:(0,q.jsx)(Pn,{})}),(0,q.jsx)(ll,{}),(0,q.jsx)(Vi,{}),(0,q.jsx)(Yi,{}),(0,q.jsxs)(j.p,{resetKey:n.pathname,children:[(0,q.jsx)(Vl,{}),(0,q.jsx)(K.Suspense,{fallback:(0,q.jsx)(Sc,{}),children:(0,q.jsxs)(Y.Routes,{children:[(0,q.jsx)(Y.Route,{path:`/`,element:(0,q.jsx)(Dc,{children:(0,q.jsx)(Wl,{Page:e})})}),(0,q.jsx)(Y.Route,{path:`/register`,element:(0,q.jsx)(Dc,{landing:`/dashboard?${L.n}=1`,children:(0,q.jsx)(Hr,{})})}),(0,q.jsx)(Y.Route,{path:`/login`,element:(0,q.jsx)(Dc,{children:(0,q.jsx)(Ur,{})})}),(0,q.jsx)(Y.Route,{path:`/reset-password`,element:(0,q.jsx)(Dc,{children:(0,q.jsx)(Ri,{})})}),(0,q.jsx)(Y.Route,{path:`/verify`,element:(0,q.jsx)(Oc,{children:(0,q.jsx)(ai,{})})}),(0,q.jsx)(Y.Route,{path:`/confirm-email`,element:(0,q.jsx)(ci,{})}),(0,q.jsx)(Y.Route,{path:`/two-step`,element:(0,q.jsx)(kc,{children:(0,q.jsx)(vi,{})})}),(0,q.jsx)(Y.Route,{path:`/your-details`,element:(0,q.jsx)(Ac,{children:(0,q.jsx)(Ti,{})})}),(0,q.jsx)(Y.Route,{path:`/book/:id`,element:(0,q.jsx)(Y.Navigate,{to:`/`,replace:!0})}),(0,q.jsx)(Y.Route,{path:`/meet/:id`,element:(0,q.jsx)(Y.Navigate,{to:`/`,replace:!0})}),(0,q.jsx)(Y.Route,{path:`/book`,element:(0,q.jsx)(Y.Navigate,{to:`/`,replace:!0})}),(0,q.jsx)(Y.Route,{path:`/booking`,element:(0,q.jsx)(Y.Navigate,{to:`/`,replace:!0})}),(0,q.jsx)(Y.Route,{path:`/pay/:id`,element:(0,q.jsx)(Qi,{})}),(0,q.jsx)(Y.Route,{path:`/payment-complete`,element:(0,q.jsx)(uc,{})}),(0,q.jsx)(Y.Route,{path:`/payment-cancelled`,element:(0,q.jsx)(uc,{cancelled:!0})}),(0,q.jsx)(Y.Route,{path:`/guide`,element:(0,q.jsx)(Y.Navigate,{to:`/`,replace:!0})}),(0,q.jsx)(Y.Route,{path:`/templates`,element:(0,q.jsx)(Y.Navigate,{to:`/`,replace:!0})}),(0,q.jsx)(Y.Route,{path:`/users`,element:(0,q.jsx)(Ec,{tab:`users`,children:(0,q.jsx)(Tl,{})})}),(0,q.jsx)(Y.Route,{path:`/users/:id`,element:(0,q.jsx)(Ec,{tab:`users`,children:(0,q.jsx)(Tl,{})})}),(0,q.jsx)(Y.Route,{path:`/sign-in`,element:(0,q.jsx)(Tc,{children:(0,q.jsx)(El,{})})}),(0,q.jsx)(Y.Route,{path:`/inbox`,element:(0,q.jsx)(Ec,{tab:`inbox`,children:(0,q.jsx)(Dl,{})})}),(0,q.jsx)(Y.Route,{path:`/payments`,element:(0,q.jsx)(Tc,{children:(0,q.jsx)(Ml,{})})}),(0,q.jsx)(Y.Route,{path:`/transactions`,element:(0,q.jsx)(Ec,{tab:`transactions`,children:(0,q.jsx)(Nl,{})})}),(0,q.jsx)(Y.Route,{path:`/schedule`,element:(0,q.jsx)(Y.Navigate,{to:`/dashboard`,replace:!0})}),(0,q.jsx)(Y.Route,{path:`/my-calendar`,element:(0,q.jsx)(Y.Navigate,{to:`/dashboard`,replace:!0})}),(0,q.jsx)(Y.Route,{path:`/my-bookings`,element:(0,q.jsx)(Y.Navigate,{to:`/dashboard`,replace:!0})}),(0,q.jsx)(Y.Route,{path:`/calendar`,element:(0,q.jsx)(Y.Navigate,{to:`/dashboard`,replace:!0})}),(0,q.jsx)(Y.Route,{path:`/bookings`,element:(0,q.jsx)(Y.Navigate,{to:`/dashboard`,replace:!0})}),(0,q.jsx)(Y.Route,{path:`/email`,element:(0,q.jsx)(Tc,{children:(0,q.jsx)(Pl,{})})}),(0,q.jsx)(Y.Route,{path:`/submissions`,element:(0,q.jsx)(Y.Navigate,{to:`/inbox`,replace:!0})}),(0,q.jsx)(Y.Route,{path:`/requests`,element:(0,q.jsx)(Y.Navigate,{to:`/inbox`,replace:!0})}),(0,q.jsx)(Y.Route,{path:`/assets`,element:(0,q.jsx)(Tc,{children:(0,q.jsx)(Ol,{})})}),(0,q.jsx)(Y.Route,{path:`/drive`,element:(0,q.jsx)(Y.Navigate,{to:`/assets`,replace:!0})}),(0,q.jsx)(Y.Route,{path:`/drive/:rest`,element:(0,q.jsx)(Y.Navigate,{to:`/assets`,replace:!0})}),(0,q.jsx)(Y.Route,{path:`/theme`,element:(0,q.jsx)(Tc,{children:(0,q.jsx)(kl,{})})}),(0,q.jsx)(Y.Route,{path:`/pages/*`,element:(0,q.jsx)(Tc,{children:(0,q.jsx)(Al,{})})}),(0,q.jsx)(Y.Route,{path:`/forms/*`,element:(0,q.jsx)(Tc,{children:(0,q.jsx)(jl,{})})}),(0,q.jsx)(Y.Route,{path:`/settings`,element:(0,q.jsx)(Y.Navigate,{to:`/pages`,replace:!0})}),(0,q.jsx)(Y.Route,{path:`/profile`,element:(0,q.jsx)(wc,{children:(0,q.jsx)(Li,{})})}),(0,q.jsx)(Y.Route,{path:`/billing`,element:(0,q.jsx)(wc,{children:(0,q.jsx)(Ll,{})})}),(0,q.jsx)(Y.Route,{path:`/dashboard`,element:(0,q.jsx)(wc,{children:(0,q.jsx)(fc,{})})}),(0,q.jsx)(Y.Route,{path:`/publish`,element:(0,q.jsx)(Tc,{children:(0,q.jsx)(Il,{})})}),(0,q.jsx)(Y.Route,{path:`/setup`,element:(0,q.jsx)(se.r,{})}),(0,q.jsx)(Y.Route,{path:`/setup/payments`,element:(0,q.jsx)(Fl,{})}),(0,q.jsx)(Y.Route,{path:`*`,element:(0,q.jsx)(oc,{})})]})})]})]}),(0,q.jsx)(Hl,{}),(0,q.jsx)(ze,{}),(0,q.jsx)(Gl,{}),(0,q.jsx)(cl,{}),(0,q.jsx)(k.t,{})]})})}function ql(){return(0,q.jsxs)(j.p,{children:[(0,q.jsx)(Y.BrowserRouter,{children:(0,q.jsx)(Jl,{})}),(0,q.jsx)(a.n,{})]})}function Jl(){let e=r.mi();return e.firebaseConfig&&e.firebaseConfig.apiKey&&e.firebaseConfig.apiKey.trim()!==``&&e.firebaseConfig.projectId&&e.firebaseConfig.projectId.trim()!==``||se.i()?(0,q.jsx)(Kl,{}):(0,q.jsxs)(`div`,{className:`min-h-screen relative flex flex-col overflow-x-clip`,children:[(0,q.jsx)(Pn,{standalone:!0}),(0,q.jsx)(se.r,{standalone:!0}),(0,q.jsx)(Hl,{})]})}function Yl(e){return(0,q.jsx)(`div`,{className:`firebase-os flex-1 flex flex-col min-h-screen`,style:{background:`var(--bg-gradient)`,color:`var(--fg-color)`},children:(0,q.jsx)(j.p,{children:(0,q.jsx)(Xl,{...e})})})}function Xl(e){Pe();let t=e.firebaseConfig;return t&&t.apiKey&&t.apiKey.trim()!==``&&t.projectId&&t.projectId.trim()!==``&&r.di(t),j.a(e.pageFiles),(0,q.jsx)(r.pi,{config:{firebaseConfig:e.firebaseConfig,basename:e.basename,onAuthChange:e.onAuthChange,themeConfig:e.themeConfig,components:e.components,customRoutes:e.customRoutes,microcomponents:e.microcomponents,pageFiles:e.pageFiles,defaultConfigs:e.defaultConfigs},children:(0,q.jsx)(i.M,{children:(0,q.jsx)(ql,{})})})}var Zl=[`views`,`added`,`clicks`,`saves`,`shares`,`downloads`],Ql=`mem_tallies`,$l=`Needs the rules pasted from /setup at 1.14.66 or later.`,eu=Object.freeze({views:0,added:0,clicks:0,saves:0,shares:0,downloads:0}),tu=e=>String(e??``).trim().toLowerCase().replace(/[^a-z0-9_-]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,40),nu=e=>String(e??``).trim().replace(/\//g,`_`).slice(0,120),ru=(e,t)=>{let n=tu(e),r=nu(t);return n&&r?`${n}_${r}`:null};function iu(e){let t={...eu};for(let n of Zl){let r=Math.floor(Number(e?.[n]));Number.isFinite(r)&&r>0&&(t[n]=r)}return t}var au=new Set,ou=e=>{if(au.has(e))return!0;try{return window.sessionStorage.getItem(e)===`1`}catch{return!1}},su=e=>{au.add(e);try{window.sessionStorage.setItem(e,`1`)}catch{}},cu=()=>{let e=r.li?.currentUser?.uid;if(!e)return!1;try{let t=window.localStorage.getItem(r.Pt(e));return t===`admin`||t===`internal`}catch{return!1}},lu=!1;async function uu(e,t,n=`views`){try{let i=ru(e,t);if(!i||!Zl.includes(n))return console.error(`tally('${e}', '${t}', '${n}'): a tally needs what is counted ('products'), the record's id, and one of ${Zl.join(`, `)}.`),!1;let a=`fbos.tally.${i}.${n}`;return ou(a)||cu()?!1:(su(a),await(0,J.setDoc)((0,J.doc)(r.ui,Ql,i),{thing:tu(e),of:nu(t),[n]:(0,J.increment)(1)},{merge:!0}),!0)}catch(e){return!lu&&e?.code===`permission-denied`&&(lu=!0,console.warn(`tally(): the database refused the count. ${$l}`)),!1}}function du(e){let{accessLevel:t}=r.Ft(),n=t===`admin`||t===`internal`,i=tu(e),[a,o]=(0,K.useState)(new Map),[s,c]=(0,K.useState)(!0),[l,u]=(0,K.useState)(null);return(0,K.useEffect)(()=>{if(!n||!i){o(new Map),c(!1);return}return c(!0),u(null),(0,J.onSnapshot)((0,J.query)((0,J.collection)(r.ui,Ql),(0,J.where)(`thing`,`==`,i)),e=>{let t=new Map;e.docs.forEach(e=>{let n=e.data()||{};t.set(String(n.of??``),iu(n))}),o(t),c(!1)},e=>{u(r.ii(e,`The counts could not be read.`)),c(!1)})},[n,i]),(0,K.useMemo)(()=>{let e={...eu};for(let t of a.values())for(let n of Zl)e[n]+=t[n];return{loading:s,error:l,of:e=>a.get(nu(e))||eu,total:e}},[a,s,l])}var fu=e=>typeof e==`string`?e.trim():e==null?``:String(e).trim(),pu=e=>{let t=typeof e==`number`?e:Number(e);return Number.isFinite(t)?t:0},mu=e=>Math.round(e*100);function hu(e){let t=[];for(let n of Array.isArray(e)?e:[]){let e=fu(n?.name),r=Math.floor(pu(n?.quantity??1));if(!e||r<1)continue;let i={};try{i=JSON.parse(JSON.stringify(n))||{}}catch{i={}}let a={...i,name:e,quantity:r,price:pu(n?.price)};for(let e of[`id`,`options`,`picture`])fu(n?.[e])?a[e]=fu(n[e]):delete a[e];t.push(a)}return t}var gu=e=>(Array.isArray(e)?e:[]).map(e=>({label:fu(e?.label),amount:pu(e?.amount)})).filter(e=>e.label&&e.amount!==0),_u=e=>e.reduce((e,t)=>e+mu(t.price)*t.quantity,0)/100,vu=(e,t=[])=>(mu(_u(e))+t.reduce((e,t)=>e+mu(t.amount),0))/100;function yu(e,t=`usd`,n=480){let r=e.map(e=>`${e.quantity} × ${e.name}${e.options?` — ${e.options}`:``} · ${sc(e.price*e.quantity,t)}`),i=``;for(let e=0;e<r.length;e+=1){let t=i?`${i}; ${r[e]}`:r[e],a=r.length-e-1;if((t+(a?`; and ${a} more`:``)).length>n)return i?`${i}; and ${r.length-e} more`:r[e].slice(0,n);i=t}return i}var bu=new Set([`uid`,`formId`,`submittedAt`,`submitterName`,`submitterEmail`,`submitterAvatar`,`transaction`,`arrivedIn`,`access`,`editors`]);function xu(e,t,n,r,i){let a={items:e,extras:t,subtotal:_u(e),total:vu(e,t),currency:(n||`usd`).toLowerCase(),name:fu(r.name),email:fu(r.email),phone:fu(r.phone),address:fu(r.address)},o={};try{o=JSON.parse(JSON.stringify(i||{}))||{}}catch{o={}}for(let[e,t]of Object.entries(o))e in a||bu.has(e)||(a[e]=t);return a}var Su=`fbos_checkout_entry`,Cu=(e,t)=>JSON.stringify([e,t]);function wu(e){try{let t=JSON.parse(window.sessionStorage.getItem(Su)||`null`);return t&&t.print===e&&typeof t.id==`string`?t.id:``}catch{return``}}function Tu(){try{window.sessionStorage.removeItem(Su)}catch{}}var Eu=`fbos_checkout_guest`;function Du(e){try{e?window.sessionStorage.setItem(Eu,e):window.sessionStorage.removeItem(Eu)}catch{}}function Ou(){try{let e=window.sessionStorage.getItem(Eu)||``;return window.sessionStorage.removeItem(Eu),e}catch{return``}}async function ku(e,t){let n=Cu(e,t),i=wu(n);if(i)return i;let a=r.li?.currentUser,o=await(0,J.addDoc)((0,J.collection)(r.ui,`user_submissions`),{...t,...a?{uid:a.uid,submitterName:a.displayName||t.name,submitterEmail:a.email||t.email,submitterAvatar:a.photoURL||``}:{uid:`guest`},formId:e,transaction:!0,submittedAt:(0,J.serverTimestamp)()});try{window.sessionStorage.setItem(Su,JSON.stringify({print:n,id:o.id}))}catch{}return o.id}var Au=e=>{let t=Math.floor(Number(e));return Number.isFinite(t)&&t>0?t:0},ju=e=>String(e.variantId??e.variant??``).trim();function Mu(e,t,n){let r=n.filter(t=>String(t.id??``)===e&&Au(t.quantity)>0);if(!r.length)return null;let i=String(t?.name??t?.title??r[0].name??``),a=[],o=Array.isArray(t?.variants)?t.variants.map(e=>({...e})):null,s=typeof t?.stock==`number`?t.stock:null,c=!1,l=!1;for(let t of r){let n=Au(t.quantity),r=ju(t),u=o&&r?o.findIndex(e=>String(e?.id??``)===r):-1;if(o&&u>=0&&typeof o[u].stock==`number`){let t=o[u].stock,s=Math.max(0,t-n);o[u].stock=s,c=!0,a.push({id:e,variantId:r,name:i,variantName:String(o[u].name??``),quantity:n,from:t,to:s})}else if(s!==null){let t=s,r=Math.max(0,t-n);s=r,l=!0,a.push({id:e,name:i,quantity:n,from:t,to:r})}}if(!a.length)return null;let u={};return c&&(u.variants=o),l&&(u.stock=s),{fields:u,changes:a}}var Nu=e=>({id:e.id,who:{name:String(e.name||e.submitterName||``),email:String(e.email||e.submitterEmail||``)},at:Lc(e.submittedAt)||Date.now(),items:hu(e.items)}),Pu=e=>e?.code===`permission-denied`?`The orders could not be read to take their stock. The security rules may need pasting again from the Setup screen.`:`The stock for what was sold could not be updated just now.`;function Fu(e,t,n){let{formId:i}=t(),a=!0,o=new Map,s=new Map,c=new Set,l=!1,u=!1,d=async n=>{let i=Nu(n),a=[...new Set(i.items.map(e=>String(e.id??``)).filter(Boolean))],o=[];try{await(0,J.runTransaction)(r.ui,async t=>{o=[];let s=(0,J.doc)(r.ui,n.from,n.id),c=await t.get(s);if(!c.exists()||Mc(c.data()?.stockTakenIn).includes(e))return;let l=[];for(let n of a){let i=await t.get((0,J.doc)(r.ui,e,n));l.push({id:n,data:i.exists()?i.data():null})}for(let{id:n,data:a}of l){let s=a?Mu(n,a,i.items):null;s&&(t.update((0,J.doc)(r.ui,e,n),{...s.fields,editedName:i.who.name||`A customer`,editedAt:i.at}),o.push(...s.changes))}t.update(s,{stockTakenIn:(0,J.arrayUnion)(e)})})}catch(e){return Pu(e)}if(o.length)try{t().onTaken?.(i,o)}catch{}return``},f=async()=>{if(l){u=!0;return}l=!0;try{let e=[...o.values()].flatMap(e=>[...e.values()]).filter(e=>!c.has(e.id));if(!e.length)return;let t=[...s.values()].flat(),r=await Kc(e.map(e=>e.id),t);if(!a)return;let i=r.error;for(let n of e){if(!Bc(n.id,r.sales,n,t))continue;let e=await d(n);if(!a)return;e?i||=e:c.add(n.id)}n(i)}finally{l=!1,u&&a&&(u=!1,f())}},p=jc.map(t=>(0,J.onSnapshot)((0,J.query)((0,J.collection)(r.ui,t),(0,J.where)(`formId`,`==`,i)),n=>{let r=new Map,a=[];for(let o of n.docs){let n=o.data()||{},s={...n,id:o.id,uid:String(n.uid||`guest`),formId:i,from:t};a.push(s),!Mc(n.stockTakenIn).includes(e)&&r.set(o.id,s)}o.set(t,r),s.set(t,a),f()},e=>{a&&n(Pu(e))})),m=()=>[...o.values()].some(e=>[...e.values()].some(e=>!c.has(e.id)&&Date.now()-(Lc(e.submittedAt)||Date.now())<72e5)),h=setInterval(()=>{m()&&f()},Gc),g=()=>{document.visibilityState===`visible`&&m()&&f()};return document.addEventListener(`visibilitychange`,g),()=>{a=!1,p.forEach(e=>e()),clearInterval(h),document.removeEventListener(`visibilitychange`,g)}}var Iu=/^(?:mem|admin|role_[a-z][a-z0-9]*)_[A-Za-z0-9_]+$/;function Lu(e,t){let{user:n,isAdmin:i,roleConfirmed:a}=r.Ft(),o=n?.uid||``,{formId:s}=t,c=(0,K.useRef)(t);(0,K.useEffect)(()=>{c.current=t});let[l,u]=(0,K.useState)(``),d=Iu.test(String(e||``)),f=!!o&&i&&a&&d&&!!s;return(0,K.useEffect)(()=>{d||console.error(`useStockFromOrders('${e}'): stock is kept by the page that keeps the products — a mem_, admin_ or role_<id>_ collection. Never a pub_ one: that is the app's own copy (usePublicCopy), and it follows the record by itself.`)},[d,e]),(0,K.useEffect)(()=>{if(f)return Fu(e,()=>c.current,u)},[f,e,s,o]),{error:f?l:``}}var Ru=r.si(()=>Promise.resolve().then(()=>require(`./PhoneInputField-DrzFHTOL.cjs`))),zu=r.si(()=>Promise.resolve().then(()=>require(`./AddressField-BeRBlopK.cjs`))),Bu={},Vu=`address`,Hu=/^[^\s@,;]+@[^\s@,;.]+(\.[^\s@,;.]+)*\.[a-z]{2,}$/i;function Uu(e=e=>{let t=new Uint8Array(e);return crypto.getRandomValues(t),Array.from(t)}){return`${e(24).map(e=>`ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz23456789`[e%57]).join(``)}Aa9!`}function Wu(e){let t={};return e.name&&(t.name=e.name),e.email&&(t.email=e.email),e.phone&&(t.phone=e.phone),e.address&&(t.address=e.address),t}function Gu(e,t){let n={};return e.name.trim()||(n.name=`Please give your name.`),Hu.test(e.email.trim())||(n.email=`Please give a real email address — the receipt goes there.`),t.phone===!0&&!e.phone.trim().replace(/^\+\d{1,3}$/,``)&&(n.phone=`Please give a phone number.`),t.address===!0&&!F.c(F.u(e.address))&&(n.address=`Please give the address.`),n}var Ku=`text-[13px] font-medium text-foreground/50 select-none mb-1.5 ml-1`,qu=`leading-snug break-words [overflow-wrap:anywhere]`;function Ju({phone:e,address:t,onReady:n,onEditing:i,heading:a=`Your details`,continueLabel:o=`Continue`,wide:s=!1,className:c=``}){let{user:l,profile:u,profileReady:d,loading:f}=r.Ft(),p=r.Cn(),m=String(l?.displayName||u?.displayName||``).trim(),g=String(l?.email||u?.email||``).trim(),_=String(l?.phoneNumber||u?.phone||``).trim(),v=F.i(Vu,u||{}),[y,b]=(0,K.useState)(m),[S,C]=(0,K.useState)(g),[w,T]=(0,K.useState)(_),[E,D]=(0,K.useState)(v),[O,k]=(0,K.useState)({}),[A,j]=(0,K.useState)(``),[M,P]=(0,K.useState)(!1),[ee,te]=(0,K.useState)(null),[I,L]=(0,K.useState)(!1),ne=h._(h.p,Bu),R=ne.ready?ne.value:Bu,z=String(R.name||``)||m,re=String(R.email||``)||g,ie=String(R.phone||``)||_,B=R.address&&F.c(R.address)?{...F.n,...R.address}:v,V=(0,K.useRef)(!1);(0,K.useEffect)(()=>{V.current||(b(z),C(re),T(ie),D(B))},[`${z}|${re}|${ie}|${F.s(B)}`]);let ae=ne.setValue;(0,K.useEffect)(()=>{V.current&&ae({name:y,email:S,phone:w,address:E})},[y,S,w,E,ae]);let oe=(0,K.useRef)(``),H=!!l?.uid,se=H&&d&&!!m&&Hu.test(g)&&(e!==!0||!!_)&&(t!==!0||F.c(v));(0,K.useEffect)(()=>{if(!se||I||ee||!l?.uid||oe.current===l.uid)return;oe.current=l.uid;let e=Yu(l.uid,m,g,_,v);te(e),n(e,{pressed:!1})},[se,I,ee,l?.uid]);let U=(0,K.useRef)(H),ce=ne.clear;(0,K.useEffect)(()=>{let e=U.current&&!H;U.current=H,!H&&(oe.current=``,te(null),L(!1),e&&ce())},[H,ce]);let W={phone:e,address:t},le=!p.loading&&p.on?.emailLink===!0,G=(e,t)=>{V.current=!0,t(),O[e]&&k(t=>{let{[e]:n,...r}=t;return r}),A&&j(``)},de=async()=>{if(M)return;let e=Gu({name:y,email:S,phone:w,address:E},W);if(k(e),Object.keys(e).length){j(`There is something to check below.`);return}P(!0),j(``);let t=y.trim(),i=S.trim(),a=w.trim(),o=F.u(E);try{let e=l?.uid||``,s=!1,c=r.li.currentUser;if(e)c&&t&&t!==m&&await(0,ue.updateProfile)(c,{displayName:t}).catch(()=>{});else{let n=await(0,ue.createUserWithEmailAndPassword)(r.li,i,Uu());c=n.user,e=n.user.uid,s=!0,await(0,ue.updateProfile)(n.user,{displayName:t}).catch(()=>{}),await n.user.getIdToken(!0).catch(()=>{})}let u={uid:e,displayName:t,...s?{email:i,createdAt:new Date().toISOString()}:{},...a?{phone:a}:{},...F.c(o)?F.r(Vu,o):{}};try{await(0,J.setDoc)((0,J.doc)(r.ui,`user_profiles`,e),u,{merge:!0})}catch(e){if(console.warn(`BuyerDetails: the details could not be written to the profile.`,e),!s)throw e}s&&c&&r.wn(c);let d=Yu(e,t,s?i:g||i,a,o,{registered:s});oe.current=e,te(d),L(!1),n(d,{pressed:!0})}catch(e){if(e?.code===`auth/email-already-in-use`){let e=Yu(``,t,i,a,o,{guest:!0});te(e),L(!1),n(e,{pressed:!0})}else e?.code?j((await r.Kt(e,`password`,`That did not work. Check your details and try again.`,{email:i})).text):j(r.ii(e,`Your details could not be saved. Please try again.`))}finally{P(!1)}};if(f||H&&!d)return(0,q.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl ${c}`,"aria-hidden":!0});if(ee&&!I){let e=[ee.email,ee.phone].map(e=>String(e||``).trim()).filter(Boolean),t=F.a(ee.addressParts);return(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.3,ease:`easeOut`},className:`rounded-2xl border border-[var(--panel-border)] bg-foreground/[0.035] px-4 py-3.5 text-left ${c}`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,q.jsx)(`span`,{className:`text-[12px] font-medium text-foreground/45 leading-tight select-none`,children:`Paying as`}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>{V.current=!0,L(!0),i?.()},className:`text-[13px] font-semibold text-accent hover:underline cursor-pointer leading-tight shrink-0`,children:`Change`})]}),(0,q.jsx)(`p`,{className:`${qu} mt-1 text-[14.5px] font-semibold text-foreground`,children:ee.name}),(e.length>0||t.length>0)&&(0,q.jsxs)(`div`,{className:`mt-1.5 flex flex-col gap-0.5 text-[13.5px] text-foreground/65`,children:[e.map(e=>(0,q.jsx)(`span`,{className:qu,children:e},e)),t.length>0&&(0,q.jsx)(`span`,{className:`flex flex-col gap-0.5 ${e.length?`mt-2`:``}`,children:t.map((e,t)=>(0,q.jsx)(`span`,{className:qu,children:e},t))})]}),ee.guest&&le&&(0,q.jsx)(`p`,{className:`mt-3 pt-3 border-t border-[var(--panel-border)]/70 text-[12.5px] text-foreground/50 leading-snug`,children:`We will email you a link to your order once you have paid.`})]})}return(0,q.jsxs)(`form`,{className:`flex flex-col gap-4 w-full ${c}`,onSubmit:e=>{e.preventDefault(),de()},noValidate:!0,children:[a&&(0,q.jsx)(`h3`,{className:`text-[15px] font-bold text-foreground tracking-tight`,children:a}),A&&(0,q.jsx)(x.t,{tone:`error`,children:A}),(0,q.jsx)(h.y,{label:`Full name`,"aria-label":`Full name`,name:`name`,autoComplete:`name`,placeholder:`John Doe`,value:y,error:O.name,disabled:M,onChange:e=>G(`name`,()=>b(e.target.value)),className:`max-sm:h-11`}),(0,q.jsx)(h.y,{label:`Email`,"aria-label":`Email`,name:`email`,type:`email`,autoComplete:`email`,placeholder:`name@example.com`,value:S,error:O.email,disabled:M||H&&!!g,onChange:e=>G(`email`,()=>C(e.target.value)),className:`max-sm:h-11`}),e&&(0,q.jsxs)(`div`,{className:`flex flex-col w-full`,children:[(0,q.jsx)(K.Suspense,{fallback:(0,q.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl`}),children:(0,q.jsx)(Ru,{field:{label:e===`optional`?`Phone (optional)`:`Phone`,required:e===!0},value:w,onChange:e=>G(`phone`,()=>T(e))})}),O.phone&&(0,q.jsx)(`p`,{className:`text-xs text-red-500 font-medium mt-1 ml-1`,children:O.phone})]}),t&&(0,q.jsx)(K.Suspense,{fallback:(0,q.jsx)(`div`,{className:`h-12 w-full glass-panel animate-pulse rounded-xl`}),children:(0,q.jsx)(zu,{id:`buyer-address`,label:t===`optional`?`Address (optional)`:`Address`,required:t===!0,disabled:M,error:O.address,value:E,onChange:e=>G(`address`,()=>D(e))})}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,q.jsx)(N.t,{type:`submit`,isLoading:M,disabled:M,className:`w-full ${s?`py-3.5 text-[15px]`:`sm:w-auto sm:self-start py-2.5 text-[14px]`} px-6 font-bold tracking-wide rounded-xl`,children:o}),!H&&(0,q.jsx)(`p`,{className:`${Ku} mb-0`,children:`This makes your account, so you can find your order again. We will email you a link to confirm your address.`})]})]})}function Yu(e,t,n,r,i,{registered:a=!1,guest:o=!1}={}){let s={name:t,email:n,phone:r,address:F.c(i)?F.s(i):``};return{uid:e,...s,addressParts:F.c(i)?i:{...F.n},metadata:Wu(s),registered:a,guest:o}}var Xu=`flex items-baseline justify-between gap-4 text-[14px]`,Zu=`w-full py-3.5 text-[15px] font-bold tracking-wide`;function Qu({formId:e,items:t,collection:n,extras:i,currency:a,phone:s,address:c,carry:l,productName:u,metadata:d,successPath:f,cancelPath:p,summary:m=!0,payLabel:h=`Pay`,className:g=``}){let{loading:_,configured:v}=r.zn(),y=r.Rr(),b=a||y||`usd`,{userRole:x}=r.Ft(),{pathname:S,search:C}=(0,Y.useLocation)(),[w,T]=(0,K.useState)(null),[E,D]=(0,K.useState)(!1),[O,k]=(0,K.useState)(``),A=(0,K.useMemo)(()=>hu(t),[t]),j=(0,K.useMemo)(()=>gu(i),[i]),M=vu(A,j);if(_)return null;if(!v)return o.wn(x)?(0,q.jsx)(`span`,{className:`text-[12.5px] font-medium text-foreground/50 leading-snug`,children:`Only admins see this: payments are not on yet, so the checkout is hidden. Connect Stripe and switch payments on at /payments and it appears here.`}):null;if(!A.length)return(0,q.jsx)(`p`,{className:`text-[14px] text-foreground/55 ${g}`,children:`There is nothing in your basket yet.`});let P=A.some(e=>!!e.picture),ee=`${h} ${sc(M,b)}`,F=async t=>{if(E||!t||M<=0)return;let i=t;if(D(!0),k(``),!a&&!y&&await r.Ir()){k(r.Pr),D(!1);return}let o=``;try{o=await ku(e,xu(A,j,b,i,l))}catch(e){k(r.ii(e,`Your order could not be saved, so no payment was taken. Please try again.`)),D(!1);return}Du(i.guest?i.email:``);let s=await r.Fn({amount:M,currency:b,productName:u||(A.length===1?A[0].name:`Order of ${A.reduce((e,t)=>e+t.quantity,0)} items`),lines:A.map(e=>({name:e.name,amount:e.price,quantity:e.quantity,record:e.id?String(e.id):void 0,variant:e.variantId==null?e.variant==null?void 0:String(e.variant):String(e.variantId),options:e.options,collection:e.collection?String(e.collection):n||void 0})),extras:j,metadata:{...d,...i.metadata,orderEntryId:o,items:yu(A,b),total:String(M)},successPath:f||S,cancelPath:p||`${S}${C}`});s&&(k(s),D(!1))};return(0,q.jsxs)(`div`,{className:`flex flex-col gap-8 ${g}`,children:[m&&(0,q.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[A.map((e,t)=>P?(0,q.jsxs)(`div`,{className:`flex items-center gap-3 text-[14px]`,children:[(0,q.jsx)(`div`,{className:`relative w-12 h-12 shrink-0 rounded-xl overflow-hidden bg-foreground/5`,children:e.picture&&(0,q.jsx)(r.O,{src:e.picture,alt:``,fit:`cover`,className:`absolute inset-0`})}),(0,q.jsxs)(`span`,{className:`min-w-0 flex-1 flex flex-col leading-snug`,children:[(0,q.jsx)(`span`,{className:`truncate font-medium text-foreground/85`,children:e.name}),(0,q.jsx)(`span`,{className:`truncate text-[13px] text-foreground/50`,children:[e.options,e.quantity>1?`× ${e.quantity}`:``].filter(Boolean).join(` · `)})]}),(0,q.jsx)(`span`,{className:`shrink-0 tabular-nums text-foreground/80`,children:sc(e.price*e.quantity,b)})]},`${e.id||e.name}-${t}`):(0,q.jsxs)(`div`,{className:Xu,children:[(0,q.jsxs)(`span`,{className:`min-w-0 text-foreground/80`,children:[e.quantity,` × `,e.name,e.options&&(0,q.jsxs)(`span`,{className:`text-foreground/50`,children:[` — `,e.options]})]}),(0,q.jsx)(`span`,{className:`shrink-0 tabular-nums text-foreground/80`,children:sc(e.price*e.quantity,b)})]},`${e.id||e.name}-${t}`)),j.length>0&&(0,q.jsxs)(`div`,{className:`${Xu} text-foreground/55`,children:[(0,q.jsx)(`span`,{children:`Subtotal`}),(0,q.jsx)(`span`,{className:`tabular-nums`,children:sc(_u(A),b)})]}),j.map(e=>(0,q.jsxs)(`div`,{className:`${Xu} text-foreground/55`,children:[(0,q.jsx)(`span`,{children:e.label}),(0,q.jsx)(`span`,{className:`tabular-nums`,children:sc(e.amount,b)})]},e.label)),(0,q.jsxs)(`div`,{className:`${Xu} pt-3 border-t border-[var(--panel-border)] font-semibold text-foreground`,children:[(0,q.jsx)(`span`,{children:`Total`}),(0,q.jsx)(`span`,{className:`tabular-nums`,children:sc(M,b)})]})]}),(0,q.jsx)(Ju,{phone:s,address:c,wide:!0,continueLabel:ee,onReady:(e,t)=>{T(e),t?.pressed&&F(e)},onEditing:()=>T(null)}),w&&(0,q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,q.jsx)(N.t,{onClick:()=>F(w),isLoading:E,disabled:E||M<=0,className:Zu,children:ee}),!O&&(0,q.jsx)(`span`,{className:`text-[12.5px] text-foreground/45 leading-snug text-center`,children:E?`Opening the secure payment page…`:`Secure payment. Your card is entered on the next page.`}),O&&(0,q.jsx)(`span`,{role:`alert`,className:`text-[13px] font-semibold text-foreground/80 leading-snug`,children:O})]})]})}var $u=new Map,ed=new Set,td=new Map,nd=new Map;function rd({basket:e,orderPath:t,onPaid:n,title:i=`Thank you — your order is in`,thanks:a=`Your payment went through.`,orderLabel:o=`View your order`}){let[s,c]=(0,Y.useSearchParams)(),l=(0,Y.useNavigate)(),{user:u,loading:d}=r.Ft(),f=r.Cn(),p=s.get(`session_id`)||``,[m,g]=(0,K.useState)(null),[_,v]=(0,K.useState)(null),[y,b]=(0,K.useState)(null),[x,S]=(0,K.useState)(!1),C=(0,K.useRef)(n);(0,K.useEffect)(()=>{C.current=n}),(0,K.useEffect)(()=>{if(!p.startsWith(`cs_`))return;let t=!0,n=$u.get(p)||r.An(p);return $u.set(p,n),n.then(n=>{if((n.paid||r.In(n))&&!ed.has(p)){ed.add(p),e&&h.h(e),h.h(h.p),Tu();let t=Ou();if(n.paid){t&&td.set(p,t);try{C.current?.(n)}catch{}}}if(t){if(g(n),n.paid&&v({session:p,guest:td.get(p)||``}),n.error){$u.delete(p);return}c(e=>{let t=new URLSearchParams(e);return t.delete(`session_id`),t},{replace:!0})}}),()=>{t=!1}},[p,e,c]);let w=_&&!d&&!u?_.guest:``,T=!f.loading&&f.on?.emailLink===!0,E=t||`/billing`;(0,K.useEffect)(()=>{if(!w||!T||!_)return;let e=!0,t=nd.get(_.session)||r.Wt(w,`/login?from=${encodeURIComponent(E)}`).then(()=>!0,()=>!1);return nd.set(_.session,t),t.then(t=>{e&&b(t)}),()=>{e=!1}},[w,T,_,E]);let D=x?`idle`:m?m.paid?`paid`:r.In(m)?`clearing`:`unpaid`:p.startsWith(`cs_`)?`asking`:`idle`;if(D===`idle`)return null;let O=()=>S(!0);if(D===`asking`)return(0,q.jsx)(M.t,{open:!0,onClose:O,busy:!0,size:`sm`,children:(0,q.jsx)(P.t,{block:!0,label:`Confirming your payment…`})});if(D===`clearing`)return(0,q.jsx)(M.t,{open:!0,onClose:O,size:`sm`,title:`Your payment is on its way`,footer:(0,q.jsx)(N.t,{onClick:O,className:`w-full`,children:`Done`}),children:(0,q.jsxs)(`div`,{className:`flex flex-col gap-2 text-[14px] text-foreground/70 leading-relaxed`,children:[(0,q.jsx)(`p`,{children:`Your bank is still sending it, which can take a few days. Your order is in: there is nothing more to do, and please do not pay again.`}),m?.receiptLater&&m.customerEmail&&(0,q.jsxs)(`p`,{children:[`We will email a receipt to `,m.customerEmail,` once it arrives.`]})]})});if(D===`unpaid`)return(0,q.jsx)(M.t,{open:!0,onClose:O,size:`sm`,title:m?.error?`We could not check your payment just now`:`Your payment did not go through`,footer:(0,q.jsx)(N.t,{onClick:O,className:`w-full`,children:m?.error?`Close`:`Back to your basket`}),children:(0,q.jsx)(`p`,{className:`text-[14px] text-foreground/70 leading-relaxed`,children:m?.error?`${m.error} If you finished paying, your order is safe — please do not pay again.`:`Nothing was taken, and your basket is just as you left it.`})});let k=m?.amountTotal==null?``:sc(m.amountTotal,m.currency||void 0),A=m?.receipt&&m.customerEmail,j=!w||f.loading?``:T&&y===null?`sending`:T&&y?`sent`:`sign-in`,ee=`/login?email=${encodeURIComponent(w)}&from=${encodeURIComponent(E)}${j===`sent`?`&sent=1`:``}`,F=u?E:w?ee:t;return(0,q.jsx)(M.t,{open:!0,onClose:O,size:`sm`,title:i,footer:F?(0,q.jsx)(N.t,{onClick:()=>{O(),l(F)},className:`w-full`,children:o}):(0,q.jsx)(N.t,{onClick:O,className:`w-full`,children:`Done`}),children:(0,q.jsxs)(`div`,{className:`flex flex-col gap-2 text-[14px] text-foreground/70 leading-relaxed`,children:[(0,q.jsxs)(`p`,{children:[a,k?` ${k} paid.`:``]}),A&&(0,q.jsxs)(`p`,{children:[`A receipt is on its way to `,m?.customerEmail,`.`]}),j===`sending`&&(0,q.jsxs)(`p`,{children:[`Emailing a sign-in link to `,w,`…`]}),j===`sent`&&(0,q.jsxs)(`p`,{children:[`We have emailed a sign-in link to `,w,` — open it, or sign in here, to see your order.`]}),j===`sign-in`&&(0,q.jsxs)(`p`,{children:[T?`The sign-in link could not be emailed just now. `:``,`Sign in with `,w,` to see your order.`]})]})})}var id=e=>`${String(e.id||e.name||``).trim()}|${String(e.options||``).trim()}`,ad=e=>{let t=Math.floor(Number(e.max));return Number.isFinite(t)&&t>0?t:1/0};function od(e){return hu(e).map(e=>{let t=ad(e);return e.quantity>t?{...e,quantity:t}:e})}function sd(e,t){let[n]=od([{...t,quantity:t.quantity??1}]);if(!n)return e;let r=id(n),i=e.findIndex(e=>id(e)===r);if(i<0)return[...e,n];let a={...e[i],...n,quantity:e[i].quantity+n.quantity};return od(e.map((e,t)=>t===i?a:e))}function cd(e,t,n){let r=Math.floor(Number(n));return!Number.isFinite(r)||r<1?e.filter(e=>id(e)!==t):od(e.map(e=>id(e)===t?{...e,quantity:r}:e))}var ld=e=>e.variantId==null?e.variant==null?``:String(e.variant):String(e.variantId),ud=(e,t)=>{if(!t)return!0;let n=(Array.isArray(e.variants)?e.variants:[]).map(e=>e&&typeof e==`object`?e.id:void 0);return!n.length||n.some(e=>e==null||e===``)?!0:n.some(e=>String(e)===t)};function dd(e,t,n,r){if(!t)return{lines:e,gone:[]};let i=!1,a=[],o=[];for(let s of e){if(String(s.id??``)!==t||s.collection&&String(s.collection)!==r){o.push(s);continue}if(!n||!ud(n,ld(s))){i=!0,a.push(String(s.name||``));continue}let e=W.t(n,ld(s));if(e==null||e===Number(s.price)){o.push(s);continue}i=!0,o.push({...s,price:e})}return{lines:i?o:e,gone:a}}function fd(e,t,n,r){let i=gd(e),a=[];i.setLines(e=>{let i=dd(e,t,n,r);return a=i.gone,i.lines}),a.length&&i.setGone(a)}var pd=new Map,md={lines:[],open:!1,gone:[]};function hd(e){try{return od(JSON.parse(window.localStorage.getItem(h.g(e))||`[]`))}catch{return[]}}function gd(e){let t=pd.get(e);if(t)return t;let n={lines:hd(e),open:!1,gone:[]},r=new Set,i=e=>{n=e,r.forEach(e=>e())},a=t=>{t.detail===e&&i({lines:[],open:!1,gone:[]})},o=t=>{t.key===h.g(e)&&i({...n,lines:hd(e)})},s={get:()=>n,subscribe(e){return r.size||(window.addEventListener(h.m,a),window.addEventListener(`storage`,o)),r.add(e),()=>{r.delete(e),!r.size&&(window.removeEventListener(h.m,a),window.removeEventListener(`storage`,o))}},setLines(t){let r=t(n.lines);if(r!==n.lines){try{r.length?window.localStorage.setItem(h.g(e),JSON.stringify(r)):window.localStorage.removeItem(h.g(e))}catch{}i({...n,lines:r})}},setOpen(e){e!==n.open&&i({...n,open:e,gone:e?n.gone:[]})},setGone(e){let t=[...new Set([...n.gone,...e.filter(Boolean)])];t.length!==n.gone.length&&i({...n,gone:t})},added:null};return pd.set(e,s),s}function _d(e,t){let n=gd(e);return n.added=t,()=>{n.added===t&&(n.added=null)}}function vd(e=`basket`){let t=gd(e),n=(0,K.useSyncExternalStore)(t.subscribe,t.get,()=>md);return(0,K.useMemo)(()=>{let r=e=>typeof e==`string`?e:id(e);return{name:e,lines:n.lines,count:n.lines.reduce((e,t)=>e+t.quantity,0),subtotal:_u(n.lines),open:n.open,gone:n.gone,add(e,n){t.setLines(t=>sd(t,e)),n?.quiet||t.setOpen(!0);try{t.added?.(e)}catch{}},setQuantity:(e,n)=>t.setLines(t=>cd(t,r(e),n)),remove:e=>t.setLines(t=>cd(t,r(e),0)),clear:()=>t.setLines(e=>e.length?[]:e),show:()=>t.setOpen(!0),hide:()=>t.setOpen(!1)}},[e,n,t])}var yd=`bag`,bd=`flex items-baseline justify-between gap-4 text-[14px]`,xd=`w-10 h-10 inline-flex items-center justify-center rounded-full text-foreground/70 hover:text-foreground hover:bg-foreground/5 transition-colors cursor-pointer disabled:opacity-25 disabled:cursor-default disabled:hover:bg-transparent`,Sd=e=>e.length<2?e.join(``):`${e.slice(0,-1).join(`, `)} and ${e[e.length-1]}`;function Cd({subtotal:e,extras:t,total:n,currency:r,count:i}){return(0,q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(t.length>0||i!=null)&&(0,q.jsxs)(`div`,{className:`${bd} text-foreground/55`,children:[(0,q.jsx)(`span`,{children:i==null?`Subtotal`:`${i} ${i===1?`item`:`items`}`}),(0,q.jsx)(`span`,{className:`tabular-nums`,children:sc(e,r)})]}),t.map(e=>(0,q.jsxs)(`div`,{className:`${bd} text-foreground/55`,children:[(0,q.jsx)(`span`,{children:e.label}),(0,q.jsx)(`span`,{className:`tabular-nums`,children:sc(e.amount,r)})]},e.label)),(0,q.jsxs)(`div`,{className:`${bd} font-semibold text-foreground`,children:[(0,q.jsx)(`span`,{children:t.length?`Total`:`Subtotal`}),(0,q.jsx)(`span`,{className:`tabular-nums text-[16px]`,children:sc(n,r)})]})]})}function wd({name:e=`basket`,formId:t,collection:n,extras:i,currency:a,phone:s,address:c,carry:u,productName:d,metadata:f,successPath:p,payLabel:m,send:g,title:_=g?`Your list`:`Your bag`,checkoutTitle:v=g?`Your details`:`Checkout`,checkoutLabel:y=g?`Send my list`:`Checkout`,emptyWords:b=g?`Your list is empty`:`Your bag is empty`,note:x,onOpenLine:S,tally:C,sentWords:w=`Sent — thank you`,onSent:T}){let D=vd(e),O=r.Rr(),A=a||O||`usd`;(0,K.useEffect)(()=>{if(C)return _d(e,e=>{e.id&&uu(C,String(e.id),`added`)})},[e,C]);let j=n?[...new Set(D.lines.filter(e=>e.id&&(!e.collection||e.collection===n)).map(e=>String(e.id)))].sort().join(`
|
|
19
|
-
`):``;(0,
|
|
20
|
-
`).map(t=>{try{return(0,J.onSnapshot)((0,J.doc)(r.ui,n,t),r=>{r.metadata.fromCache||fd(e,t,r.exists()?r.data():null,n)},()=>{})}catch{return()=>{}}});return()=>t.forEach(e=>e())},[e,n,j]);let{loading:P,configured:ee}=r.zn(),{userRole:F}=r.Ft(),{pathname:te,search:I}=(0,Y.useLocation)(),[L,ne]=(0,Y.useSearchParams)(),[R,z]=(0,K.useState)(`bag`),[re,ie]=(0,K.useState)(!1),B=L.get(yd);(0,K.useEffect)(()=>{B&&(D.lines.length&&(z(B===`checkout`?`checkout`:`bag`),D.show()),ne(e=>{let t=new URLSearchParams(e);return t.delete(yd),t},{replace:!0}))},[B]),(0,K.useEffect)(()=>{if(D.open)return;let e=window.setTimeout(()=>{z(`bag`),ie(!1)},300);return()=>window.clearTimeout(e)},[D.open]);let V=D.lines,ae=V.length?R:`bag`,oe=gu(i),H=vu(V,oe),se=V.some(e=>!!e.picture),U=D.gone.length>0?(0,q.jsx)(`p`,{role:`status`,className:`text-[13px] text-foreground/55 leading-snug pb-3 mb-1 border-b border-[var(--panel-border)]`,children:`${Sd(D.gone)} ${D.gone.length===1?`is`:`are`} no longer for sale, so ${D.gone.length===1?`it has`:`they have`} been taken out of your ${g?`list`:`bag`}.`}):null,ce=!g&&!P&&!ee&&!o.wn(F),W=!g||V.some(e=>Number(e.price)>0);(0,K.useEffect)(()=>{V.length&&ie(!1)},[V.length]);let le=g?{...u||{},items:hu(V),...W?{extras:oe,subtotal:D.subtotal,total:H,currency:A.toLowerCase()}:{}}:void 0,G=(()=>{let e=new URLSearchParams(I);return e.set(yd,`checkout`),`${te}?${e.toString()}`})(),ue=S?e=>{D.hide(),S(e)}:null,de=ae===`bag`&&V.length>0?(0,q.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[W&&(0,q.jsx)(Cd,{subtotal:D.subtotal,extras:oe,total:H,currency:A}),x&&(0,q.jsx)(`p`,{className:`text-[13px] text-foreground/50 leading-snug`,children:x}),ce?(0,q.jsx)(`p`,{className:`text-[13px] text-foreground/55 leading-snug text-center`,children:`Ordering is not open yet.`}):g?(0,q.jsx)(N.t,{onClick:()=>z(`checkout`),className:`w-full py-3.5 text-[15px] font-bold tracking-wide`,children:y}):(0,q.jsx)(N.t,{onClick:()=>z(`checkout`),disabled:H<=0,className:`w-full py-3.5 text-[15px] font-bold tracking-wide`,children:`${y} · ${sc(H,A)}`})]}):void 0;return(0,q.jsxs)(M.t,{open:D.open,onClose:D.hide,side:`right`,title:ae===`checkout`?v:_,sub:ae===`checkout`?(0,q.jsxs)(`button`,{type:`button`,onClick:()=>z(`bag`),className:`inline-flex items-center gap-1.5 -ml-1 px-1 py-1 text-[13px] font-semibold text-foreground/55 hover:text-foreground transition-colors cursor-pointer`,children:[(0,q.jsx)(l.t,{className:`w-3.5 h-3.5`}),` `,g?`Back to your list`:`Back to your bag`]}):void 0,footer:de,children:[!(re&&!V.length)&&U,re&&!V.length?(0,q.jsxs)(`div`,{role:`status`,className:`flex flex-col items-center text-center gap-3 py-16`,children:[(0,q.jsx)(r.At,{className:`w-9 h-9 text-accent`,strokeWidth:1.75}),(0,q.jsx)(`p`,{className:`text-[15px] font-semibold text-foreground/80`,children:w}),(0,q.jsx)(`p`,{className:`text-[13px] text-foreground/50 leading-snug`,children:`We have your list and will be in touch.`}),(0,q.jsx)(N.t,{variant:`secondary`,onClick:D.hide,className:`mt-3`,children:`Keep looking`})]}):V.length?ae===`checkout`&&g?(0,q.jsxs)(`div`,{className:`flex flex-col gap-6 pt-2`,children:[W?(0,q.jsx)(Cd,{subtotal:D.subtotal,extras:oe,total:H,currency:A,count:D.count}):(0,q.jsx)(`p`,{className:`${bd} text-foreground/55`,children:`${D.count} ${D.count===1?`item`:`items`} on your list`}),(0,q.jsx)(h.t,{formId:t,isInline:!0,bare:!0,extra:le,onSubmitted:(e,t)=>{ie(!0),D.clear(),T?.(e,t)}})]}):ae===`checkout`?(0,q.jsxs)(`div`,{className:`flex flex-col gap-7 pt-2`,children:[(0,q.jsx)(Cd,{subtotal:D.subtotal,extras:oe,total:H,currency:A,count:D.count}),(0,q.jsx)(Qu,{formId:t,collection:n,items:V,extras:i,currency:a,phone:s,address:c,carry:u,productName:d,metadata:f,successPath:p,cancelPath:G,payLabel:m,summary:!1})]}):(0,q.jsx)(`ul`,{"aria-label":`In your bag`,className:`flex flex-col`,children:(0,q.jsx)(r.rt,{initial:!1,children:V.map(e=>{let t=id(e),n=Number(e.max)>0?Math.floor(Number(e.max)):1/0,i=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{className:`text-[14.5px] font-semibold text-foreground/90 leading-snug line-clamp-2`,children:e.name}),e.options&&(0,q.jsx)(`span`,{className:`text-[13px] text-foreground/50 leading-snug truncate`,children:e.options})]});return(0,q.jsx)(r.nt.li,{layout:!0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,height:0},transition:{duration:.2},className:`overflow-hidden border-b border-[var(--panel-border)] last:border-b-0`,children:(0,q.jsxs)(`div`,{className:`flex gap-4 py-4`,children:[se&&(0,q.jsxs)(`div`,{className:`relative w-[72px] h-[72px] shrink-0 rounded-2xl overflow-hidden bg-foreground/5`,children:[e.picture&&(0,q.jsx)(r.O,{src:e.picture,alt:``,fit:`cover`,className:`absolute inset-0`}),ue&&(0,q.jsx)(`button`,{type:`button`,"aria-label":`Open ${e.name}`,onClick:()=>ue(e),className:`absolute inset-0 cursor-pointer`})]}),(0,q.jsxs)(`div`,{className:`min-w-0 flex-1 flex flex-col gap-1`,children:[(0,q.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[ue?(0,q.jsx)(`button`,{type:`button`,onClick:()=>ue(e),className:`min-w-0 flex flex-col gap-0.5 text-left cursor-pointer`,children:i}):(0,q.jsx)(`span`,{className:`min-w-0 flex flex-col gap-0.5`,children:i}),W&&(0,q.jsxs)(`span`,{className:`shrink-0 flex flex-col items-end leading-snug`,children:[(0,q.jsx)(`span`,{className:`text-[14.5px] tabular-nums text-foreground/85`,children:sc(e.price*e.quantity,A)}),e.quantity>1&&(0,q.jsxs)(`span`,{className:`text-[12px] tabular-nums text-foreground/45`,children:[sc(e.price,A),` each`]})]})]}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3 -ml-2.5 mt-0.5`,children:[(0,q.jsxs)(`div`,{className:`inline-flex items-center`,children:[(0,q.jsx)(`button`,{type:`button`,"aria-label":`One less ${e.name}`,disabled:e.quantity<=1,onClick:()=>D.setQuantity(t,e.quantity-1),className:xd,children:(0,q.jsx)(pt,{className:`w-4 h-4`})}),(0,q.jsx)(`span`,{"aria-live":`polite`,"aria-label":`${e.quantity} of ${e.name}`,className:`w-7 text-center text-[14.5px] font-semibold tabular-nums text-foreground/85`,children:e.quantity}),(0,q.jsx)(`button`,{type:`button`,"aria-label":`One more ${e.name}`,disabled:e.quantity>=n,onClick:()=>D.setQuantity(t,e.quantity+1),className:xd,children:(0,q.jsx)(E.t,{className:`w-4 h-4`})})]}),(0,q.jsx)(`button`,{type:`button`,"aria-label":`Remove ${e.name}`,onClick:()=>D.remove(t),className:`px-2 py-2 text-[13px] font-semibold text-foreground/45 hover:text-foreground transition-colors cursor-pointer`,children:`Remove`})]}),e.quantity>=n&&(0,q.jsx)(`span`,{className:`text-[12.5px] text-foreground/50 leading-snug`,children:`That is all there is of it.`})]})]})},t)})})}):(0,q.jsxs)(`div`,{className:`flex flex-col items-center text-center gap-3 py-16`,children:[(0,q.jsx)(k.i,{className:`w-9 h-9 text-foreground/20`,strokeWidth:1.5}),(0,q.jsx)(`p`,{className:`text-[15px] font-semibold text-foreground/80`,children:b}),(0,q.jsx)(`p`,{className:`text-[13px] text-foreground/50 leading-snug`,children:`What you add waits here until you are ready.`}),(0,q.jsx)(N.t,{variant:`secondary`,onClick:D.hide,className:`mt-3`,children:`Keep looking`})]})]})}wd.displayName=`Basket`;var Td=e=>(0,K.isValidElement)(e)&&(e.type===`svg`||/^(?:Shopping|Lucide)?(?:Bag|Basket|Cart)\w*$/.test(String(e.type.displayName||``)));function Ed({name:e=`basket`,label:t=`Bag`,className:n,children:i}){let a=vd(e),o=a.count,s=K.Children.toArray(i).filter(e=>!Td(e));return(0,q.jsxs)(`button`,{type:`button`,onClick:a.show,"aria-label":`${t}, ${o} ${o===1?`item`:`items`}`,className:r.$(`relative inline-flex items-center justify-center gap-2 h-11 min-w-11 px-2.5 rounded-full text-foreground/75 hover:text-foreground hover:bg-foreground/5 transition-colors cursor-pointer`,n),children:[(0,q.jsx)(k.i,{className:`w-[22px] h-[22px]`,strokeWidth:1.75}),s,(0,q.jsx)(r.rt,{children:o>0&&(0,q.jsx)(r.nt.span,{initial:{scale:.6,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.6,opacity:0},transition:{duration:.18},className:`absolute top-0.5 right-0 min-w-[18px] h-[18px] px-1 inline-flex items-center justify-center rounded-full bg-accent text-[var(--button-fg,#fff)] text-[11px] font-bold tabular-nums leading-none`,children:(0,q.jsx)(r.nt.span,{initial:{scale:1.5},animate:{scale:1},transition:{duration:.2},children:o>99?`99+`:o},o)},`count`)})]})}Ed.displayName=`BasketButton`;var Dd=`w-full py-3.5 text-[15px] font-bold tracking-wide`;function Od({children:e,price:t,about:n,phone:i,address:a,disabled:s=!1,variant:c=`primary`,className:l,...u}){let{loading:d,configured:f}=r.zn(),p=r.Rr(),{userRole:m}=r.Ft(),{pathname:h,search:g}=(0,Y.useLocation)(),[_,v]=(0,K.useState)(!1),[y,b]=(0,K.useState)(null),[x,S]=(0,K.useState)(!1),[C,w]=(0,K.useState)(``);if(d)return null;if(!f)return o.wn(m)?(0,q.jsx)(`span`,{className:`text-[12.5px] font-medium text-foreground/50 leading-snug`,children:`Only admins see this: payments are not on yet, so this button is hidden. Connect Stripe and switch payments on at /payments and it appears here.`}):null;let T=u.mode===`subscription`,E=u.amount==null?u.currency:u.currency||p||`usd`,D=t?.trim()||(u.amount==null?``:sc(u.amount*(u.quantity||1),E)),O=u.productName?.trim()||(T?`Your plan`:`Your order`),k=[T?`Subscribe`:`Pay`,D].filter(Boolean).join(` · `),A=async e=>{if(x||!e)return;if(S(!0),w(``),u.amount!=null&&!u.currency&&!p&&await r.Ir()){w(r.Pr),S(!1);return}Du(e.guest?e.email:``);let t=await r.Fn({...u,...E?{currency:E}:{},metadata:{page:h,...u.metadata,...e.metadata},successPath:u.successPath||h,cancelPath:u.cancelPath||`${h}${g}`});t&&(w(t),S(!1))};return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(N.t,{variant:c,className:l,disabled:s,onClick:()=>{w(``),v(!0)},children:e??(T?`Subscribe`:`Buy`)}),(0,q.jsx)(M.t,{open:_,onClose:()=>v(!1),busy:x,size:`sm`,title:O,sub:D||void 0,children:(0,q.jsxs)(`div`,{className:`flex flex-col gap-7 pt-2`,children:[n&&(0,q.jsx)(`p`,{className:`text-[14px] text-foreground/65 leading-relaxed`,children:n}),(0,q.jsx)(Ju,{phone:i,address:a,wide:!0,continueLabel:k,onReady:(e,t)=>{b(e),t?.pressed&&A(e)},onEditing:()=>b(null)}),y&&(0,q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,q.jsx)(N.t,{onClick:()=>A(y),isLoading:x,disabled:x,className:Dd,children:k}),!C&&(0,q.jsx)(`span`,{className:`text-[12.5px] text-foreground/45 leading-snug text-center`,children:x?`Opening the secure payment page…`:`Secure payment. Your card is entered on the next page.`})]}),C&&(0,q.jsx)(`span`,{role:`alert`,className:`text-[13px] font-semibold text-foreground/80 leading-snug`,children:C})]})})]})}Od.displayName=`BuyButton`;var kd=e=>/[^\d.,\s]/.test(e);function Ad(e,t=r.Lr()){let n=String(e||``).trim();if(!n)return``;if(kd(n))return n;let i=r.br(n);return i==null?n:sc(i,t)}function jd(e,t,n,i){if(!t.on)return null;let a=r.pr(t,n).trim();if(!/^price_[A-Za-z0-9]+$/.test(a))return null;let o=Ad(t.amount,i);return{rhythm:e,priceId:a,amount:r.br(t.amount),figure:o,words:`${o} per ${e===`monthly`?`month`:`year`}`.trim()}}var Md=e=>{let t=e.split(/\r?\n/).map(e=>e.replace(/^\s*(?:[-–•*·✓]|\d+[.)])\s*/,``).trim()).filter(Boolean);return t.length>1?t:[]};function Nd(e,t,n=[],i=r.Lr()){if(!e||e.kind!==`subscription`)return[];let a=new Set(n.filter(e=>e.active&&e.priceId).map(e=>e.priceId)),o=[];for(let n of e.plans){let e=jd(`monthly`,n.monthly,t,i),r=jd(`yearly`,n.yearly,t,i);if(!e&&!r)continue;let s=n.description.trim(),c=Md(s);o.push({name:n.name.trim()||`Plan`,description:c.length?``:s,includes:c,roleId:n.roleId||``,monthly:e,yearly:r,mine:e&&a.has(e.priceId)?`monthly`:r&&a.has(r.priceId)?`yearly`:null})}return o}function Pd(e){let t=e.monthly?.amount,n=e.yearly?.amount;return!t||!n||n>=t*12?0:Math.round((1-n/(t*12))*100)}function Fd(e,t){let{loading:n,mode:i}=r.zn();r.Rr();let a=t||r.Lr(),o=r.Rn(),[s,c]=(0,K.useState)(null);(0,K.useEffect)(()=>{if(e)return(0,J.onSnapshot)((0,J.doc)(r.ui,r.Qn,e),t=>c({id:e,product:t.exists()?r.Dr(t.id,t.data()):null}),()=>c({id:e,product:null}))},[e]);let l=s?.id===e?s.product:null,u=!!e&&(n||s?.id!==e||o.loading);return(0,K.useMemo)(()=>{let e=u?[]:Nd(l,i===`live`,o.subscriptions,a);return{loading:u,name:l?.name.trim()||``,description:l?.description.trim()||``,plans:e,subscribed:e.some(e=>e.mine),metadata:{},unsure:!!o.error}},[u,l,i,o.subscriptions,o.error,a])}var Id=`text-[12.5px] font-medium text-foreground/50 leading-snug`;function Ld({product:e,featured:t,featuredLabel:n=`Recommended`,currency:i,phone:a,address:s,successPath:c,className:l}){let{loading:u,configured:d}=r.zn(),{userRole:f}=r.Ft(),p=Fd(e,i),[m,h]=(0,K.useState)(null);if(p.loading||u)return(0,q.jsx)(`div`,{"aria-hidden":!0,className:r.$(`grid gap-5 sm:grid-cols-2 lg:grid-cols-3`,l),children:[0,1,2].map(e=>(0,q.jsx)(`div`,{className:`h-72 glass-panel rounded-3xl animate-pulse`},e))});let g=o.wn(f),{plans:_}=p;if(!_.length)return g?(0,q.jsx)(`span`,{className:Id,children:`Only admins see this: this subscription has no finished plan yet, so there is nothing to show here. Finish it at /payments and it appears.`}):null;let v=_.some(e=>e.monthly&&e.yearly),y=_.find(e=>e.mine)?.mine||null,b=m||y||`monthly`,x=Math.max(0,..._.map(Pd)),S=t?.trim().toLowerCase()||``;return(0,q.jsxs)(`div`,{className:r.$(`flex flex-col items-center gap-10 w-full`,l),children:[!d&&g&&(0,q.jsx)(`span`,{className:Id,children:`Only admins see this: payments are not on yet, so the buttons are hidden. Connect Stripe and switch payments on at /payments and they appear here.`}),v&&(0,q.jsx)(`div`,{role:`group`,"aria-label":`How often you pay`,className:`inline-flex items-center p-1 rounded-full glass-panel`,children:[`monthly`,`yearly`].map(e=>(0,q.jsx)(`button`,{type:`button`,"aria-pressed":b===e,onClick:()=>h(e),className:r.$(`h-10 px-5 rounded-full text-[14px] font-semibold transition-colors cursor-pointer`,b===e?`bg-accent text-[var(--button-fg,#fff)] shadow-sm`:`text-foreground/55 hover:text-foreground`),children:e===`monthly`?`Monthly`:x?`Yearly · save ${x}%`:`Yearly`},e))}),(0,q.jsx)(`div`,{className:r.$(`grid gap-5 w-full`,_.length===1?`max-w-md`:_.length===2?`sm:grid-cols-2 max-w-3xl`:`sm:grid-cols-2 lg:grid-cols-3`),children:_.map((e,t)=>{let i=e[b]||e.monthly||e.yearly;if(!i)return null;let o=!!S&&e.name.toLowerCase()===S,l=i.rhythm===`yearly`?Pd(e):0;return(0,q.jsxs)(r.nt.div,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},transition:{duration:.35,delay:t*.06,ease:[.16,1,.3,1]},className:r.$(`relative flex flex-col gap-7 p-7 sm:p-8 rounded-3xl glass-panel text-left`,o&&`ring-1 ring-accent/70`),children:[(0,q.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3 min-h-6`,children:[(0,q.jsx)(`h3`,{className:`text-[15px] font-bold tracking-tight text-foreground/75`,children:e.name}),e.mine?(0,q.jsx)(`span`,{className:`px-2.5 py-1 rounded-full bg-foreground/10 text-[11.5px] font-bold text-foreground/70`,children:`Your plan`}):o?(0,q.jsx)(`span`,{className:`px-2.5 py-1 rounded-full bg-accent/15 text-[11.5px] font-bold text-accent`,children:n}):null]}),(0,q.jsxs)(`p`,{className:`flex items-baseline gap-2 flex-wrap`,children:[(0,q.jsx)(`span`,{className:`text-4xl font-bold tracking-tight text-foreground tabular-nums`,children:i.figure}),(0,q.jsxs)(`span`,{className:`text-[14px] font-medium text-foreground/50`,children:[`per `,i.rhythm===`monthly`?`month`:`year`]})]}),l>0&&(0,q.jsxs)(`p`,{className:`text-[13px] text-foreground/55 -mt-2`,children:[l,`% less than paying monthly.`]}),e.description&&(0,q.jsx)(`p`,{className:`text-[14px] text-foreground/65 leading-relaxed`,children:e.description})]}),e.includes.length>0&&(0,q.jsx)(`ul`,{className:`flex flex-col gap-3`,children:e.includes.map(e=>(0,q.jsxs)(`li`,{className:`flex items-start gap-3 text-[14px] text-foreground/75 leading-snug`,children:[(0,q.jsx)(r.At,{className:`w-4 h-4 mt-0.5 shrink-0 text-accent`,strokeWidth:2.5}),(0,q.jsx)(`span`,{children:e})]},e))}),(0,q.jsx)(`div`,{className:`mt-auto flex flex-col`,children:p.subscribed?(0,q.jsx)(ce.t,{variant:e.mine?`secondary`:`primary`,className:`w-full py-3 text-[14.5px] font-bold`,children:e.mine?`Manage your plan`:`Switch to ${e.name}`}):d&&p.unsure?(0,q.jsx)(`span`,{className:Id,children:`Your current plan could not be checked just now. Try again in a moment.`}):d?(0,q.jsx)(Od,{priceId:i.priceId,mode:`subscription`,productName:p.name?`${p.name} — ${e.name}`:e.name,price:i.words,about:e.description||void 0,phone:a,address:s,successPath:c,metadata:{...p.metadata,plan:e.name,billed:i.rhythm},variant:o||_.length===1?`primary`:`secondary`,className:`w-full py-3 text-[14.5px] font-bold`,children:`Choose ${e.name}`}):null})]},e.name)})})]})}Ld.displayName=`Plans`;var Rd=[{id:`write`,label:`Write`},{id:`preview`,label:`Preview`},{id:`sent`,label:`Sent`}],zd=5e3,Bd=4500,Vd=e=>e.trim().length<=254&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()),Hd=e=>String(e||``).trim().split(/\s+/)[0]||``,Ud=`fbos:email-draft:`,Wd=e=>{try{let t=JSON.parse(sessionStorage.getItem(Ud+e)||`null`);return t&&typeof t==`object`?t:{}}catch{return{}}},Gd=(e,t)=>{try{t&&(t.subject||t.message)?sessionStorage.setItem(Ud+e,JSON.stringify(t)):sessionStorage.removeItem(Ud+e)}catch{}},Kd=e=>Object.entries(e||{}).map(([e,t])=>[e,t==null?``:String(t).trim()]).filter(([e,t])=>e.trim()&&t);function qd({to:e,name:t,subject:i=``,message:a=``,details:o,look:s,label:c,variant:d=`secondary`,className:f,open:p,onClose:m,onSent:g}){let{isAdmin:_,isInternal:v}=r.Ft(),y=!!(_||v),b=p!==void 0,[x,S]=(0,K.useState)(!1),C=b?!!p:x,w=String(e||``).trim(),E=(w||`anyone`).toLowerCase(),[O,k]=(0,K.useState)(`write`),[A,j]=(0,K.useState)(``),[P,ee]=(0,K.useState)(i),[F,te]=(0,K.useState)(a),[L,ne]=(0,K.useState)(!1),[R,z]=(0,K.useState)(null),[re,ie]=(0,K.useState)(!1),[B,V]=(0,K.useState)(!1),[ae,oe]=(0,K.useState)(``),[H,se]=(0,K.useState)(null),[U,ce]=(0,K.useState)(``),W=(0,K.useRef)(null),le=C?E:``,[G,ue]=(0,K.useState)(``);if(le!==G&&(ue(le),le)){let e=Wd(E);k(`write`),j(w?``:String(e.to||``)),ee(String(e.subject??i)),te(String(e.message??a)),ne(!1),z(null),oe(``)}(0,K.useEffect)(()=>{if(!C)return;let e=!0;return I.o().then(t=>{e&&se(t)}),()=>{e=!1}},[C]);let J=w||A.trim();(0,K.useEffect)(()=>{!C||O!==`write`||Gd(E,A.trim()!==``||P!==i||F!==a?{to:A,subject:P,message:F}:null)},[C,O,E,A,P,F]),(0,K.useEffect)(()=>{W.current?.scrollIntoView?.({block:`start`})},[O]);let de=(0,K.useCallback)(()=>{b?m?.():S(!1)},[b,m]),Y=J?Vd(J)?``:`That does not look like an email address.`:`Who is it for?`,fe=P.trim()?``:`Give it a subject.`,pe=F.trim()?F.trim().length>zd?`Keep it under ${zd.toLocaleString(`en`)} characters.`:``:`Write the message first.`,me=!Y&&!fe&&!pe,he=H&&!H.error&&!H.configured?H.connected?`Email is switched off for this app. An admin switches it on, on the Email screen.`:`Email is not set up for this app yet. An admin sets it up on the Email screen.`:``,ge={...s?{look:s}:{},...o?{details:o}:{}},_e=async()=>{ne(!0),!(!me||he)&&(oe(``),z(null),ie(!0),k(`preview`),z(await I.a({subject:P.trim(),message:F.trim(),...ge})),ie(!1))},X=async()=>{if(B)return;V(!0),oe(``);let e=await I.t(J,P.trim(),F.trim(),ge);if(V(!1),e){oe(e);return}Gd(E,null),ce(J),k(`sent`),g?.(J)},ve=()=>{ee(i),te(a),j(``),ne(!1),z(null),k(`write`)};if(!y)return null;let ye=Hd(t),be=Kd(o),xe=zd-F.trim().length,Z;return Z=O===`write`?(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,q.jsx)(N.t,{variant:`ghost`,onClick:de,children:`Cancel`}),(0,q.jsxs)(N.t,{onClick:_e,disabled:!!he,children:[`Preview`,(0,q.jsx)(u.t,{className:`h-4 w-4`,"aria-hidden":`true`})]})]}):O===`preview`?(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,q.jsxs)(N.t,{variant:`secondary`,onClick:()=>{oe(``),k(`write`)},disabled:B,children:[(0,q.jsx)(l.t,{className:`h-4 w-4`,"aria-hidden":`true`}),`Back`]}),(0,q.jsxs)(N.t,{onClick:X,isLoading:B,disabled:re||!!R?.error,children:[(0,q.jsx)(D.t,{className:`h-4 w-4`,"aria-hidden":`true`}),`Send email`]})]}):(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,q.jsx)(N.t,{variant:`secondary`,onClick:ve,children:`Write another`}),(0,q.jsx)(N.t,{onClick:de,children:`Done`})]}),(0,q.jsxs)(q.Fragment,{children:[!b&&(0,q.jsxs)(N.t,{variant:d,className:f,onClick:()=>S(!0),children:[(0,q.jsx)(n.h,{className:`h-4 w-4`,"aria-hidden":`true`}),c||(ye?`Email ${ye}`:`Write an email`)]}),(0,q.jsx)(M.t,{open:C,onClose:de,busy:B,size:`lg`,title:ye?`Email ${ye}`:`Write an email`,sub:w||void 0,footer:Z,children:(0,q.jsxs)(`div`,{ref:W,className:`flex flex-col gap-5 pt-1`,"data-email-window":O,children:[(0,q.jsx)(T.i,{steps:Rd,current:O,onGo:O===`preview`?e=>{e===`write`&&k(`write`)}:void 0}),O===`write`&&(0,q.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[he?(0,q.jsx)(T.n,{children:he}):null,!he&&H?.senderVerified===!1?(0,q.jsx)(T.n,{children:`Until your domain is verified on the Email screen, email reaches only the address your Resend account was made with.`}):null,!w&&(0,q.jsx)(h.y,{type:`email`,label:`To`,"aria-label":`To`,autoComplete:`off`,placeholder:`name@example.com`,value:A,onChange:e=>j(e.target.value),error:L?Y:``}),(0,q.jsx)(h.y,{label:`Subject`,"aria-label":`Subject`,placeholder:`Your order is ready`,maxLength:200,value:P,onChange:e=>ee(e.target.value),error:L?fe:``}),(0,q.jsx)(h.v,{label:`Message`,"aria-label":`Message`,rows:6,placeholder:ye?`Hi ${ye},`:`Hi,`,value:F,onChange:e=>te(e.target.value),error:L||xe<0?pe:``}),xe>=0&&F.trim().length>=Bd?(0,q.jsxs)(`p`,{className:`-mt-2 text-[12px] font-medium text-foreground/50`,children:[xe.toLocaleString(`en`),` characters left`]}):null,be.length>0&&(0,q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,q.jsx)(`span`,{className:`text-[13px] font-medium text-foreground/70`,children:`Sent with it`}),(0,q.jsx)(`dl`,{className:`rounded-2xl border border-[var(--panel-border)] bg-foreground/[0.03] px-4 py-1`,children:be.map(([e,t],n)=>(0,q.jsxs)(`div`,{className:r.$(`flex items-baseline gap-4 py-2.5`,n>0&&`border-t border-[var(--panel-border)]`),children:[(0,q.jsx)(`dt`,{className:`w-28 shrink-0 text-[12.5px] text-foreground/50`,children:e}),(0,q.jsx)(`dd`,{className:`min-w-0 break-words text-[14px] font-semibold text-foreground`,children:t})]},e))})]}),(0,q.jsx)(`p`,{className:`text-[12.5px] leading-relaxed text-foreground/50`,children:`It goes out in your app’s own look, with your logo and colours. The next step shows it.`})]}),O===`preview`&&(0,q.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,q.jsx)(T.t,{html:R?.html||``,subject:R?.subject||P.trim(),from:R?.from,to:J,loading:re,error:R?.error}),ae?(0,q.jsxs)(T.n,{tone:`error`,children:[`It did not send. `,ae]}):null]}),O===`sent`&&(0,q.jsx)(T.r,{title:`Sent to ${U}`,children:`It went out just as the preview showed it. A reply to it comes to the owner of this app.`})]})})]})}qd.displayName=`EmailWindow`;var Jd=Object.assign({}),Yd={};for(let e in Jd){let t=Jd[e];if(!t?.default)continue;let n=e.replace(`./`,``).replace(`.tsx`,``);if(n===`registry`)continue;let r=n.replace(/Content$/,``).replace(/([a-z0-9])([A-Z])/g,`$1_$2`).toLowerCase();Yd[r]=t.default,Yd[r.replace(/_/g,``)]=t.default}if(typeof window<`u`){let e=window.__FBOS_MICROCOMPONENTS__||{};window.__FBOS_MICROCOMPONENTS__={...Yd,...e}}var Xd=(e,t)=>{let n=e.toLowerCase().replace(/[^a-z0-9]+/g,`_`),r=n.replace(/_/g,``);if(Yd[n]=t,Yd[r]=t,typeof window<`u`){let e=window.__FBOS_MICROCOMPONENTS__||{};window.__FBOS_MICROCOMPONENTS__={...e,[n]:t,[r]:t}}},Zd=({title:e,className:t,children:n,...i})=>(0,q.jsxs)(`div`,{className:r.$(`border border-[var(--panel-border)] bg-[var(--panel-bg)] px-5 py-4`,t),style:{borderRadius:`var(--card-radius, 1rem)`},...i,children:[e?(0,q.jsx)(`p`,{className:`text-[12px] font-extrabold tracking-tight text-gradient mb-1.5`,children:e}):null,n]});Zd.displayName=`Card`;var Qd=({sub:e,className:t,children:n,...i})=>(0,q.jsxs)(`div`,{className:r.$(`mb-4`,t),children:[(0,q.jsx)(`h2`,{className:`text-xl md:text-2xl font-bold tracking-tight text-foreground`,...i,children:n}),e?(0,q.jsx)(`p`,{className:`text-[13px] text-foreground/60 font-medium leading-relaxed mt-1`,children:e}):null]});Qd.displayName=`SectionHeading`;var $d=`button, a, input, textarea, select, label, [role="button"], [role="listbox"], [role="option"]`,ef=`[&>:is(div,section,article):only-child:not([class*=inline],[class*=w-fit],[class*=w-max],[class*=rounded-full],[class*=text-white],[class*=text-background],:has(>:is(img,video,[data-picture]):only-child))]:!p-0 [&>:is(div,section,article):only-child:not([class*=inline],[class*=w-fit],[class*=w-max],[class*=rounded-full],[class*=text-white],[class*=text-background],:has(>:is(img,video,[data-picture]):only-child))]:!m-0 [&>:is(div,section,article):only-child:not([class*=inline],[class*=w-fit],[class*=w-max],[class*=rounded-full],[class*=text-white],[class*=text-background],:has(>:is(img,video,[data-picture]):only-child))]:!border-0 [&>:is(div,section,article):only-child:not([class*=inline],[class*=w-fit],[class*=w-max],[class*=rounded-full],[class*=text-white],[class*=text-background],:has(>:is(img,video,[data-picture]):only-child))]:!rounded-none [&>:is(div,section,article):only-child:not([class*=inline],[class*=w-fit],[class*=w-max],[class*=rounded-full],[class*=text-white],[class*=text-background],:has(>:is(img,video,[data-picture]):only-child))]:!bg-transparent [&>:is(div,section,article):only-child:not([class*=inline],[class*=w-fit],[class*=w-max],[class*=rounded-full],[class*=text-white],[class*=text-background],:has(>:is(img,video,[data-picture]):only-child))]:!shadow-none`,tf=`flex h-8 w-6 shrink-0 items-center justify-center rounded-md text-foreground/40 transition-[opacity,color,background-color] duration-150 hover:bg-foreground/[0.07] hover:text-foreground/80 [@media(hover:hover)]:opacity-0 group-hover:opacity-100 group-focus-within:opacity-100`;function nf({stages:e,items:t,stageOf:n,keyOf:i,card:a,onMove:o,onOpen:s,canMove:c,loading:l=!1,empty:u=`Nothing here yet`,className:d}){let f=(0,K.useRef)(null),p=e=>i?i(e):String(e.id??``),m=e[0]?.id??``,h=t=>e.some(e=>e.id===t)?t:m,[g,_]=(0,K.useState)({}),[v,y]=(0,K.useState)(null),b=(0,K.useRef)(null),x=e=>{b.current=e,y(e)},S=(0,K.useMemo)(()=>new Map(t.map(e=>[p(e),e])),[t]);(0,K.useEffect)(()=>{let e=Object.entries(g).filter(([e,t])=>{let r=S.get(e);return!r||t.settled&&h(n(r))===t.stage});e.length&&_(t=>{let n={...t};for(let[t]of e)delete n[t];return n})},[g,S]);let C=(0,K.useMemo)(()=>{let r=new Map(e.map(e=>[e.id,[]]));for(let e of t)g[p(e)]||r.get(h(n(e)))?.push(e);for(let[e,t]of Object.entries(g)){let n=S.get(e),i=r.get(t.stage);n&&i&&i.splice(Math.min(t.index,i.length),0,n)}return r},[t,g,e]),w=(e,t,i)=>{let a=p(e),s=h(n(e));if(t===s&&i===(C.get(s)||[]).findIndex(e=>p(e)===a)||c&&t!==s&&!c(e,t))return;_(e=>({...e,[a]:{stage:t,index:i,settled:!1}}));let l=()=>_(e=>e[a]?{...e,[a]:{...e[a],settled:!0}}:e),u=()=>_(e=>{let t={...e};return delete t[a],t}),d;try{d=o(e,t,i)}catch(e){u(),k.n(r.ii(e,`That could not be moved.`));return}d&&typeof d.then==`function`?d.then(()=>{l(),setTimeout(u,1500)},e=>{u(),k.n(r.ii(e,`That could not be moved.`))}):(l(),setTimeout(u,5e3))},{dragging:T,bind:E}=uo({disabled:l,scroller:()=>f.current,onMove:({x:e,y:t},r)=>{let i=f.current,a=S.get(r);if(!i||!a)return;let o=Array.from(i.querySelectorAll(`[data-pipeline-stage]`)),s=null,l=1/0;for(let t of o){let n=t.getBoundingClientRect(),r=e<n.left?n.left-e:e>n.right?e-n.right:0;r<l&&(l=r,s=t)}let u=s?.dataset.pipelineStage;if(!s||!u){x(null);return}if(c&&u!==h(n(a))&&!c(a,u)){x(null);return}let d=Array.from(s.querySelectorAll(`[data-drag-key]`)).filter(e=>e.dataset.dragKey!==r).filter(e=>{let n=e.getBoundingClientRect();return t>n.top+n.height/2}).length,p=b.current;(!p||p.stage!==u||p.index!==d)&&x({stage:u,index:d})},onDrop:e=>{let t=S.get(e),n=b.current;x(null),t&&n&&w(t,n.stage,n.index)},onCancel:()=>x(null)}),D=T?S.get(T.key):void 0,O=`rounded-xl border border-[var(--panel-border)] bg-[var(--panel-bg)] p-3 text-left`,A=e=>t=>{let n=t.target.closest?.($d);n&&n!==t.currentTarget||s?.(e)},j=e=>t=>{t.target===t.currentTarget&&(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),s?.(e))};return(0,q.jsxs)(`div`,{ref:f,className:r.$(`flex w-full items-start gap-3 overflow-x-auto pb-3 md:gap-4`,T?`snap-none`:`snap-x snap-mandatory sm:snap-none`,d),children:[e.map(t=>{let i=C.get(t.id)||[],o=T?i.findIndex(e=>p(e)===T.key):-1,d=!!T&&v?.stage===t.id,f=d&&o>-1&&v.index===o,m=d&&T&&!f?(0,q.jsx)(`div`,{"aria-hidden":`true`,className:`rounded-xl border-2 border-dashed border-accent/50 bg-accent/5`,style:{height:T.height}},`__slot`):null,g=i.map(t=>{let i=p(t),o=h(n(t)),l=e.filter(e=>e.id===o||!c||c(t,e.id));return(0,q.jsxs)(`div`,{...E(i),...s?{role:`button`,tabIndex:0,"data-drag-ok":``,onClick:A(t),onKeyDown:j(t)}:{"data-drag-ok":``},className:r.$(O,`group relative cursor-grab transition-[border-color,box-shadow,opacity] duration-200 hover:border-accent/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/40`,T?.key===i&&`opacity-30`),children:[(0,q.jsx)(`div`,{className:r.$(`min-w-0`,ef),children:a(t)}),(0,q.jsxs)(`div`,{className:`-mb-1.5 mt-2.5 flex items-center justify-between gap-2 border-t border-[var(--panel-border)] pt-1.5`,children:[l.length>1?(0,q.jsx)(`div`,{className:`-ml-2 flex min-w-0 items-center [&_[role=button]]:!h-8 [&_[role=button]]:!px-2`,"data-no-drag":``,children:(0,q.jsx)(r.Z,{compact:!0,portal:!0,direction:`auto`,variant:`ghost`,ariaLabel:`Move to another stage`,value:o,options:l.map(e=>({value:e.id,label:e.label})),onChange:e=>{e!==o&&w(t,e,0)}})}):(0,q.jsx)(`span`,{className:`min-w-0 truncate py-1.5 text-[12.5px] font-semibold leading-5 text-foreground/60`,children:e.find(e=>e.id===o)?.label}),(0,q.jsx)(`span`,{...fo,"aria-hidden":`true`,"data-pipeline-grip":``,className:r.$(tf,`-mr-1.5`),children:(0,q.jsx)(at,{className:`h-4 w-4`})})]})]},i)});if(m){let e=v.index;g.splice(Math.min(o>-1&&e>o?e+1:e,g.length),0,m)}return(0,q.jsxs)(`section`,{"data-pipeline-stage":t.id,"aria-label":t.label,className:r.$(`flex w-[84%] shrink-0 snap-start flex-col rounded-2xl border p-3 transition-colors duration-200 sm:w-auto sm:min-w-[15rem] sm:flex-1`,d?`border-accent/60 bg-accent/5`:`border-[var(--panel-border)] bg-background/40`),children:[(0,q.jsxs)(`header`,{className:`mb-3 flex items-center justify-between gap-2 px-1`,children:[(0,q.jsx)(`h3`,{className:`truncate text-sm font-bold text-foreground`,children:t.label}),!l&&(0,q.jsx)(`span`,{className:`flex h-6 min-w-6 items-center justify-center rounded-full border border-[var(--panel-border)] px-1.5 text-xs font-bold text-foreground/70`,children:i.length})]}),t.hint&&(0,q.jsx)(`p`,{className:`-mt-2 mb-3 px-1 text-xs leading-snug text-foreground/50`,children:t.hint}),(0,q.jsx)(`div`,{className:`flex min-h-16 flex-col gap-2.5`,children:l?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(P.n,{className:`h-24 rounded-xl`}),(0,q.jsx)(P.n,{className:`h-24 rounded-xl`})]}):g.length?g:(0,q.jsx)(`div`,{className:r.$(`rounded-xl border border-dashed border-[var(--panel-border)] px-3 py-5 text-center text-xs text-foreground/40`,ef),children:u})})]},t.id)}),T&&D!==void 0&&typeof document<`u`&&(0,fe.createPortal)((0,q.jsx)(`div`,{"aria-hidden":`true`,"data-pipeline-ghost":``,className:`pointer-events-none fixed z-[9995] rotate-[1.5deg] rounded-xl bg-background opacity-95 shadow-2xl`,style:{left:T.x-T.offsetX,top:T.y-T.offsetY,width:T.width},children:(0,q.jsx)(`div`,{className:O,children:(0,q.jsx)(`div`,{className:r.$(`min-w-0`,ef),children:a(D)})})}),document.body)]})}nf.displayName=`Pipeline`;var rf=new WeakMap,af=0,of=e=>{let t=rf.get(e);return t||(t=`\u0000item${++af}`,rf.set(e,t)),t},sf=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]);function cf({items:e,keyOf:t,item:n,onReorder:i,label:a,grip:o,disabled:s=!1,className:c}){let l=(0,K.useRef)(null),u=e=>{if(t)return String(t(e)??``);if(typeof e==`string`||typeof e==`number`)return String(e);let n=e?.id;return n!=null&&n!==``?String(n):e&&typeof e==`object`?of(e):``},d=(o??(/\b(?:grid|columns-\d)/.test(c||``)?`corner`:`end`))===`corner`,f=new Map,p=e.map(e=>{let t=u(e),n=f.get(t)??0;return f.set(t,n+1),n===0?t:`${t}\u0000${n}`}),m=new Map(e.map((e,t)=>[p[t],e])),h=p.join(`\0`),[g,_]=(0,K.useState)(null),v=(0,K.useRef)(null),y=e=>{v.current=e,_(e?{keys:e,from:h}:null)},b=(0,K.useRef)(0),x=(0,K.useRef)(null);(0,K.useEffect)(()=>{let e=x.current;e&&(x.current=null,l.current?.querySelector(`[data-drag-key="${CSS.escape(e)}"] [data-drag-handle]`)?.focus())});let S=()=>Array.from(l.current?.querySelectorAll(`:scope > [data-drag-key]`)||[]).map(e=>e.dataset.dragKey||``),C=e=>{if(sf(e,p)){y(null);return}y(e);let t=()=>{v.current===e&&y(null)},n;try{n=i(e.map(e=>m.get(e)))}catch(e){t(),k.n(r.ii(e,`The new order could not be saved.`));return}n&&typeof n.then==`function`?n.then(()=>setTimeout(t,1500),e=>{t(),k.n(r.ii(e,`The new order could not be saved.`))}):setTimeout(t,3e3)},{dragging:w,bind:T}=uo({disabled:s,onStart:()=>y(S()),onMove:({x:e,y:t,at:n},r)=>{let i=l.current;if(!i||n<b.current)return;let a=null,o=1/0;for(let n of Array.from(i.querySelectorAll(`:scope > [data-drag-key]`))){let r=n.getBoundingClientRect(),i=Math.hypot(e-(r.left+r.width/2),t-(r.top+r.height/2));i<o&&(o=i,a=n.dataset.dragKey||null)}let s=v.current||S();if(!a||a===r)return;let c=s.filter(e=>e!==r);c.splice(s.indexOf(a),0,r),b.current=n+140,y(c)},onDrop:()=>C(v.current||S()),onCancel:()=>y(null)}),E=g&&(w||g.from===h)?g.keys:null,D=(E||p).filter(e=>m.has(e));for(let e of p)D.includes(e)||D.push(e);let O=e=>t=>{let n=t.key===`ArrowUp`||t.key===`ArrowLeft`?-1:+(t.key===`ArrowDown`||t.key===`ArrowRight`);if(!n)return;t.preventDefault();let r=D.indexOf(e),i=r+n;if(i<0||i>=D.length)return;let a=[...D];a.splice(r,1),a.splice(i,0,e),x.current=e,C(a)},A=w?m.get(w.key):void 0;return(0,q.jsxs)(`div`,{ref:l,className:r.$(c||`flex flex-col gap-2`),children:[D.map((e,t)=>{let i=m.get(e),o=a?a(i,t):`item ${t+1} of ${D.length}`,c=s?null:(0,q.jsx)(`button`,{type:`button`,...fo,onKeyDown:O(e),"aria-label":`Move ${o} — drag, or use the arrow keys`,className:r.$(`flex h-10 w-8 shrink-0 items-center justify-center rounded-lg text-foreground/40 transition-colors hover:text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/40`,d&&`absolute right-1.5 top-1.5 w-10 border border-[var(--panel-border)] bg-background/80 text-foreground/70 backdrop-blur-sm`),children:(0,q.jsx)(at,{className:`h-4 w-4`,"aria-hidden":`true`})});return(0,q.jsxs)(r.nt.div,{layout:!!w||!!E,transition:{type:`spring`,stiffness:500,damping:40},...T(e),className:r.$(`relative min-w-0`,!d&&`flex items-center gap-2`,!s&&`cursor-grab`,w?.key===e&&`opacity-30`),children:[d?n(i,t):(0,q.jsx)(`div`,{className:`min-w-0 flex-1`,children:n(i,t)}),c]},e)}),w&&A!==void 0&&typeof document<`u`&&(0,fe.createPortal)((0,q.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none fixed z-[9995] rotate-[1.5deg] opacity-95 shadow-2xl`,style:{left:w.x-w.offsetX,top:w.y-w.offsetY,width:w.width},children:d?n(A,D.indexOf(w.key)):(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(`div`,{className:`min-w-0 flex-1`,children:n(A,D.indexOf(w.key))}),(0,q.jsx)(`span`,{className:`w-8 shrink-0`})]})}),document.body)]})}cf.displayName=`Sortable`;var lf=`button, a, input, textarea, select, label, [role="button"], [role="listbox"], [role="option"]`,uf=e=>{if(e==null||e===``)return null;if(e instanceof Date)return e.getTime();if(typeof e==`boolean`)return+!!e;let t=e;return typeof t.toMillis==`function`?t.toMillis():e},df=e=>{if(e==null)return``;if(e instanceof Date)return e.toLocaleDateString();let t=e;return typeof t.toDate==`function`?t.toDate().toLocaleDateString():String(e)},ff=`(min-width: 768px)`;function pf(){let[e,t]=(0,K.useState)(()=>typeof window>`u`||typeof window.matchMedia!=`function`?!0:window.matchMedia(ff).matches);return(0,K.useEffect)(()=>{if(typeof window>`u`||typeof window.matchMedia!=`function`)return;let e=window.matchMedia(ff),n=()=>t(e.matches);return n(),e.addEventListener?.(`change`,n),()=>e.removeEventListener?.(`change`,n)},[]),e}function mf({rows:e,columns:t,keyOf:n,onOpen:i,actions:a,loading:o=!1,empty:s=`Nothing here yet`,search:c=!1,sort:l,className:u}){let d=(e,t)=>n?n(e):String(e.id??t),[f,p]=(0,K.useState)(l?{key:l.key,dir:l.dir||`asc`}:null),[m,h]=(0,K.useState)(``),g=pf(),_=(0,K.useMemo)(()=>{let n=m.trim().toLowerCase(),r=n?e.filter(e=>t.some(t=>t.value&&df(t.value(e)).toLowerCase().includes(n))):e,i=f&&t.find(e=>e.key===f.key);if(i&&i.value){let e=i.value,t=f.dir===`asc`?1:-1;r=[...r].sort((n,r)=>{let i=uf(e(n)),a=uf(e(r));return i===null||a===null?i===a?0:i===null?1:-1:typeof i==`number`&&typeof a==`number`?(i-a)*t:String(i).localeCompare(String(a),void 0,{numeric:!0,sensitivity:`base`})*t})}return r},[e,t,f,m]),v=e=>p(t=>t?.key===e?t.dir===`asc`?{key:e,dir:`desc`}:null:{key:e,dir:`asc`}),y=(e,t)=>e.cell?e.cell(t):e.value?df(e.value(t)):null,b=e=>t=>{let n=t.target.closest?.(lf);n&&n!==t.currentTarget||i?.(e)},x=e=>t=>{t.target===t.currentTarget&&(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),i?.(e))},[S,...w]=t,T=w.find(e=>e.align===`right`&&e.phone!==!1),E=w.filter(e=>e!==T&&e.phone!==!1),D=!o&&_.length===0,O=m.trim()&&e.length?`Nothing matches “${m.trim()}”`:s;return(0,q.jsxs)(`div`,{className:r.$(`w-full`,u),children:[c&&(0,q.jsxs)(`label`,{className:`relative mb-4 flex w-full items-center sm:max-w-xs`,children:[(0,q.jsx)(C.n,{className:`pointer-events-none absolute left-3.5 z-10 h-4 w-4 text-foreground/40`,"aria-hidden":`true`}),(0,q.jsx)(`input`,{type:`search`,value:m,onChange:e=>h(e.target.value),placeholder:typeof c==`string`?c:`Search`,"aria-label":typeof c==`string`?c:`Search`,className:`glass-panel glow-focus block h-11 w-full pl-10 pr-4 text-sm text-foreground placeholder:text-foreground/40 focus:border-accent focus:outline-none`,style:{borderRadius:`var(--input-radius, 0.75rem)`}})]}),g&&(0,q.jsx)(`div`,{className:`overflow-hidden rounded-2xl border border-[var(--panel-border)] bg-background/30`,children:(0,q.jsxs)(`table`,{className:`w-full border-collapse text-left text-sm`,children:[(0,q.jsx)(`thead`,{children:(0,q.jsxs)(`tr`,{className:`border-b border-[var(--panel-border)] bg-background/50`,children:[t.map(e=>{let t=!!e.value&&e.sortable!==!1,n=f?.key===e.key?f.dir:null;return(0,q.jsx)(`th`,{scope:`col`,"aria-sort":n===`asc`?`ascending`:n===`desc`?`descending`:void 0,className:r.$(`px-4 py-3 text-xs font-semibold uppercase tracking-wide text-foreground/50`,e.align===`right`&&`text-right`),children:t?(0,q.jsxs)(`button`,{type:`button`,onClick:()=>v(e.key),className:r.$(`inline-flex items-center gap-1 uppercase tracking-wide transition-colors hover:text-foreground focus:outline-none focus-visible:text-foreground`,n&&`text-foreground`),children:[e.label,n===`asc`&&(0,q.jsx)(r.jt,{className:`h-3 w-3`,"aria-hidden":`true`}),n===`desc`&&(0,q.jsx)(r.Mt,{className:`h-3 w-3`,"aria-hidden":`true`})]}):e.label},e.key)}),a&&(0,q.jsx)(`th`,{scope:`col`,className:`px-4 py-3`,children:(0,q.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,q.jsxs)(`tbody`,{className:`divide-y divide-[var(--panel-border)]`,children:[o&&[0,1,2,3].map(e=>(0,q.jsxs)(`tr`,{children:[t.map(e=>(0,q.jsx)(`td`,{className:`px-4 py-3.5`,children:(0,q.jsx)(P.n,{className:`h-4 w-3/4 rounded-md`})},e.key)),a&&(0,q.jsx)(`td`,{className:`px-4 py-3.5`})]},e)),D&&(0,q.jsx)(`tr`,{children:(0,q.jsx)(`td`,{colSpan:t.length+ +!!a,className:`px-4 py-12 text-center text-sm text-foreground/50`,children:O})}),!o&&_.map((e,n)=>(0,q.jsxs)(`tr`,{onClick:i?b(e):void 0,className:r.$(`transition-colors`,i&&`cursor-pointer hover:bg-foreground/[0.03]`),children:[t.map((t,n)=>(0,q.jsx)(`td`,{className:r.$(`px-4 py-3.5 align-middle text-foreground/80`,t.align===`right`&&`text-right tabular-nums`,n===0&&`font-semibold text-foreground`),children:n===0&&i?(0,q.jsx)(`button`,{type:`button`,onClick:()=>i(e),className:`text-left font-semibold hover:underline focus:outline-none focus-visible:underline`,children:y(t,e)}):y(t,e)},t.key)),a&&(0,q.jsx)(`td`,{className:`px-4 py-2.5 text-right`,children:(0,q.jsx)(`div`,{className:`flex items-center justify-end gap-2`,children:a(e)})})]},d(e,n)))]})]})}),!g&&(0,q.jsxs)(`div`,{className:`flex flex-col gap-2.5`,children:[o&&[0,1,2].map(e=>(0,q.jsx)(P.n,{className:`h-24`},e)),D&&(0,q.jsx)(`p`,{className:`rounded-2xl border border-dashed border-[var(--panel-border)] px-4 py-10 text-center text-sm text-foreground/50`,children:O}),!o&&_.map((e,t)=>(0,q.jsxs)(`div`,{...i?{role:`button`,tabIndex:0,onClick:b(e),onKeyDown:x(e)}:{},className:r.$(`rounded-2xl border border-[var(--panel-border)] bg-[var(--panel-bg)] p-4 text-left`,i&&`cursor-pointer transition-colors hover:border-accent/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/40`),children:[(0,q.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,q.jsx)(`div`,{className:`min-w-0 text-[15px] font-semibold text-foreground`,children:S?y(S,e):null}),T&&(0,q.jsx)(`div`,{className:`shrink-0 text-[15px] font-semibold tabular-nums text-foreground`,children:y(T,e)})]}),E.length>0&&(0,q.jsx)(`dl`,{className:`mt-2.5 grid grid-cols-[auto_1fr] gap-x-4 gap-y-1.5 text-sm`,children:E.map(t=>(0,q.jsxs)(`div`,{className:`contents`,children:[(0,q.jsx)(`dt`,{className:`text-foreground/50`,children:t.label}),(0,q.jsx)(`dd`,{className:`min-w-0 text-right text-foreground/80`,children:y(t,e)})]},t.key))}),a&&(0,q.jsx)(`div`,{className:`mt-3 flex flex-wrap items-center gap-2 border-t border-[var(--panel-border)] pt-3`,children:a(e)})]},d(e,t)))]})]})}mf.displayName=`DataTable`;var hf=/^(?:mem|admin|role_[a-z][a-z0-9]*)_[A-Za-z0-9_]+$/,gf=e=>hf.test(String(e||``))&&!/_history$/.test(e)?`${e}_history`:null,_f=e=>e==null||e===``?void 0:String(e);function vf(e,t,n={},r=null,i=Date.now()){let a=Oi(r),o=!!n.by?.name,s={recordId:String(e),what:String(t||``).trim(),creatorName:o?String(n.by.name):a.creatorName||`Somebody`,creatorAvatar:o?String(n.by.avatar||``):a.creatorAvatar,uid:r?.uid||``,createdAt:o&&Number.isFinite(n.at)&&n.at>0?n.at:i},c=_f(n.from),l=_f(n.to);return c!==void 0&&(s.from=c),l!==void 0&&(s.to=l),s}async function yf(e,t,n,i={}){let a=gf(e);if(!a||!t||!String(n||``).trim()){console.error(`logHistory('${e}', '${t}', '${n}'): a history line needs the record's own collection (mem_, admin_ or role_<id>_ — never an admin_ one when the team makes the changes), the record's id, and what was done.`);return}try{await(0,J.addDoc)((0,J.collection)(r.ui,a),vf(t,n,i,r.li?.currentUser||null))}catch(e){console.warn(`logHistory: the line "${n}" could not be saved — ${r.ii(e,`the database refused it.`)}`)}}function bf(e,t){let n=gf(e),i=String(t||``),[a,o]=(0,K.useState)({loading:!0,error:null,lines:[]});return(0,K.useEffect)(()=>{if(!n||!i){o({loading:!1,error:null,lines:[]});return}return o({loading:!0,error:null,lines:[]}),(0,J.onSnapshot)((0,J.query)((0,J.collection)(r.ui,n),(0,J.where)(`recordId`,`==`,i)),e=>{let t=e.docs.map(e=>({...e.data()||{},id:e.id}));t.sort((e,t)=>Number(t.createdAt||0)-Number(e.createdAt||0)),o({loading:!1,error:null,lines:t})},e=>o({loading:!1,error:r.ii(e,`The history could not be read.`),lines:[]}))},[n,i]),a}var xf=e=>{if(!e)return 0;if(typeof e==`number`)return e;if(e instanceof Date)return e.getTime();let t=e;if(typeof t.toMillis==`function`)return t.toMillis();if(typeof t.seconds==`number`)return t.seconds*1e3;let n=Date.parse(String(e));return Number.isFinite(n)?n:0},Sf=(e,t)=>`${e} ${t}${e===1?``:`s`} ago`,Cf=(e,t=Date.now())=>{let n=xf(e);if(!n)return``;let r=Math.floor(Math.max(0,t-n)/6e4);if(r<1)return`just now`;if(r<60)return Sf(r,`minute`);let i=Math.floor(r/60);if(i<24)return Sf(i,`hour`);let a=Math.floor(i/24);return a===1?`yesterday`:a<7?Sf(a,`day`):new Date(n).toLocaleDateString(void 0,{day:`numeric`,month:`short`,year:`numeric`})},wf=(e,t=!1)=>{if(!e)return null;if(t){let t=String(e.editedName||``).trim();return t?{name:t,avatar:String(e.editedAvatar||``),at:e.editedAt}:null}let n=String(e.creatorName||``).trim()||String(e.creatorEmail||``).split(`@`)[0];return n?{name:n,avatar:String(e.creatorAvatar||``),at:e.createdAt}:null},Tf=e=>e.split(/\s+/).filter(Boolean).map(e=>e[0]).join(``).toUpperCase().slice(0,2);function Ef({name:e,avatar:t,size:n=`sm`}){let i=n===`md`?`w-7 h-7 text-[10px]`:`w-5 h-5 text-[8px]`;return t?(0,q.jsx)(r.O,{src:t,alt:``,className:r.$(i,`rounded-full shrink-0`)}):(0,q.jsx)(`span`,{"aria-hidden":`true`,className:r.$(i,`rounded-full bg-accent/15 text-accent flex items-center justify-center font-extrabold shrink-0`),children:Tf(e)})}function Df({record:e,edited:t=!1,label:n,noTime:i=!1,size:a=`sm`,className:o}){let s=wf(e,t);if(!s)return null;let c=n??(t?`Edited by`:``),l=i?``:Cf(s.at);return(0,q.jsxs)(`span`,{className:r.$(`inline-flex items-center gap-2 min-w-0 max-w-full align-middle`,o),children:[(0,q.jsx)(Ef,{name:s.name,avatar:s.avatar,size:a}),(0,q.jsxs)(`span`,{className:r.$(`truncate font-semibold text-foreground/55`,a===`md`?`text-[13px]`:`text-[11px]`),children:[c&&(0,q.jsxs)(`span`,{className:`font-medium text-foreground/40`,children:[c,` `]}),s.name,l&&(0,q.jsxs)(`span`,{className:`font-medium text-foreground/35`,children:[` · `,l]})]})]})}var Of=e=>{let t=new Date(e),n=new Date,r=new Date(n.getFullYear(),n.getMonth(),n.getDate()-1),i=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate();return i(t,n)?`Today`:i(t,r)?`Yesterday`:t.toLocaleDateString(void 0,{day:`numeric`,month:`long`,year:t.getFullYear()===n.getFullYear()?void 0:`numeric`})};function kf(e){let t=[];for(let n of e){let e=Of(Number(n.createdAt||0)),r=t[t.length-1];r&&r.day===e?r.lines.push(n):t.push({day:e,lines:[n]})}return t}function Af({collection:e,of:t,empty:n=`Nothing has happened to this yet.`,max:i,className:a}){let{loading:o,error:s,lines:c}=bf(e,t);return o?(0,q.jsx)(`div`,{className:r.$(`py-6 flex justify-center`,a),children:(0,q.jsx)(P.t,{})}):s?(0,q.jsx)(`p`,{className:r.$(`text-[14px] text-foreground/60`,a),children:s}):c.length?(0,q.jsx)(`div`,{className:r.$(`flex flex-col gap-6`,a),children:kf(i?c.slice(0,i):c).map(e=>(0,q.jsxs)(`section`,{className:`flex flex-col gap-1`,children:[(0,q.jsx)(`h4`,{className:`text-[12px] font-semibold text-foreground/40 mb-1`,children:e.day}),(0,q.jsx)(`ul`,{className:`flex flex-col divide-y divide-[var(--panel-border)]`,children:e.lines.map(e=>(0,q.jsxs)(`li`,{className:`py-3 flex flex-col gap-1.5 min-w-0`,children:[(0,q.jsxs)(`p`,{className:`text-[14px] text-foreground leading-snug break-words`,children:[e.what,(e.from!==void 0||e.to!==void 0)&&(0,q.jsxs)(`span`,{className:`text-foreground/55`,children:[`: `,e.from!==void 0&&(0,q.jsx)(`span`,{children:e.from}),e.from!==void 0&&e.to!==void 0&&(0,q.jsx)(u.t,{className:`inline w-3.5 h-3.5 mx-1.5 -mt-0.5`,"aria-label":`to`}),e.to!==void 0&&(0,q.jsx)(`span`,{className:`font-semibold text-foreground`,children:e.to})]})]}),(0,q.jsx)(Df,{record:e})]},e.id))})]},e.day))}):(0,q.jsx)(`p`,{className:r.$(`text-[14px] text-foreground/45`,a),children:n})}var jf=/^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;function Mf(e){let t=String(e??``).trim().toLowerCase(),n=t.startsWith(`#`)?t:`#${t}`;return jf.test(n)?n.length===4?`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}`:n:``}function Nf(e){let t=Array.isArray(e)?e:e?[e]:[],n=[];for(let e of t){let t=Mf(e);t&&!n.includes(t)&&n.push(t)}return n}var Pf={sm:`w-5 h-5`,md:`w-7 h-7`,lg:`w-10 h-10`},Ff=`shadow-[inset_0_0_0_2px_var(--bg-color),inset_0_0_0_4px_var(--fg-color)]`;function If({color:e,name:t,size:n=`md`,selected:i,onClick:a,className:o}){let s=Mf(e),c=t||s||`No colour`,l=r.$(`inline-block rounded-full shrink-0 border border-foreground/20 transition-shadow`,Pf[n],i&&Ff,o);return a?(0,q.jsx)(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),a()},"aria-label":c,"aria-pressed":!!i,title:c,className:r.$(l,`cursor-pointer hover:border-foreground/60 focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`),style:{backgroundColor:s||void 0}}):(0,q.jsx)(`span`,{role:`img`,"aria-label":c,title:c,"data-swatch":``,className:l,style:{backgroundColor:s||void 0}})}function Lf({color:e,onPicked:t,label:n,title:i,className:a,children:o}){let s=(0,K.useRef)(null),[c,l]=(0,K.useState)(e),u=(0,K.useRef)(t);return(0,K.useEffect)(()=>{u.current=t}),(0,K.useEffect)(()=>{l(e)},[e]),(0,K.useEffect)(()=>{let e=s.current;if(!e)return;let t=()=>u.current(e.value);return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),(0,q.jsxs)(`label`,{className:r.$(`relative inline-flex items-center justify-center cursor-pointer`,a),title:i,children:[o,(0,q.jsx)(`input`,{type:`color`,value:c,"aria-label":n,ref:s,onChange:e=>l(e.target.value),className:`absolute inset-0 w-full h-full opacity-0 cursor-pointer`})]})}function Rf({label:e,value:t,onChange:n,multiple:i,max:a=12,error:o,disabled:s}){let c=(0,K.useId)(),l=Nf(t),[u,d]=(0,K.useState)(``),f=i?l.length>=a:!1,p=e=>n(i?e:e[0]||``),m=e=>{let t=Mf(e);t&&(p(i?l.includes(t)?l:[...l,t].slice(0,a):[t]),d(``))},h=Mf(u),g=(e,t)=>{let n=Mf(t);!n||n===e||p(l.includes(n)?l.filter(t=>t!==e):l.map(t=>t===e?n:t))};return(0,q.jsxs)(`div`,{className:`flex flex-col w-full`,children:[e&&(0,q.jsx)(`span`,{id:`${c}-label`,className:`text-[13px] font-medium text-foreground/50 select-none mb-1.5 ml-1`,children:e}),(0,q.jsxs)(`div`,{role:`group`,"aria-labelledby":e?`${c}-label`:void 0,className:r.$(`glass-panel flex flex-wrap items-center gap-3 px-4 py-3`,o&&`border-red-500/50`,s&&`opacity-50 pointer-events-none`),style:{borderRadius:`var(--input-radius, 0.75rem)`},children:[l.map(e=>(0,q.jsxs)(`span`,{className:`relative inline-flex group`,children:[(0,q.jsx)(Lf,{color:e,onPicked:t=>g(e,t),label:`Change ${e}`,title:`${e} — press to change it`,className:`rounded-full`,children:(0,q.jsx)(If,{color:e,size:`lg`})}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>p(l.filter(t=>t!==e)),"aria-label":`Remove ${e}`,className:`absolute -top-1.5 -right-1.5 w-5 h-5 inline-flex items-center justify-center rounded-full bg-background text-foreground/70 border border-[var(--panel-border)] cursor-pointer hover:text-foreground`,children:(0,q.jsx)(C.t,{className:`w-3 h-3`,"aria-hidden":!0})})]},e)),!f&&(0,q.jsxs)(`span`,{className:`inline-flex items-center gap-2 min-w-0`,children:[(0,q.jsx)(Lf,{color:`#c8b6a6`,onPicked:m,label:i?`Pick a colour to add`:`Pick a colour`,title:`Pick a colour`,className:`w-10 h-10 rounded-full border border-dashed border-foreground/30 text-foreground/50 hover:text-foreground hover:border-foreground/60 transition-colors overflow-hidden`,children:(0,q.jsx)(E.t,{className:`w-4 h-4 pointer-events-none`,"aria-hidden":!0})}),(0,q.jsx)(`input`,{type:`text`,inputMode:`text`,value:u,placeholder:`#d8c3a5`,"aria-label":`Or type a hex colour`,onChange:e=>d(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),m(u))},onBlur:()=>m(u),className:`w-24 bg-transparent text-[14px] text-foreground placeholder:text-foreground/30 focus:outline-none border-b border-transparent focus:border-accent py-1`}),h&&(0,q.jsx)(If,{color:h,size:`sm`})]})]}),o&&(0,q.jsx)(`p`,{className:`text-xs text-red-500 font-medium mt-1`,children:o})]})}var zf=700,Bf=e=>{let t=String(e),n=t.indexOf(`.`);return n<0?0:t.length-n-1};function Vf(e,{min:t=0,max:n,step:r=1}={}){let i=String(e??``).trim().replace(`,`,`.`);if(!i)return null;let a=Number(i);if(!Number.isFinite(a))return null;let o=Bf(r),s=Number(a.toFixed(o)),c=n!=null&&Number.isFinite(Number(n))?Number(n):1/0;return Math.min(c,Math.max(t,s))}var Hf={sm:{button:`w-9 h-9`,icon:`w-3.5 h-3.5`,box:`text-[14px]`},md:{button:`w-10 h-10`,icon:`w-4 h-4`,box:`text-[15px]`}};function Uf({label:e,name:t,value:n,onChange:i,onSettled:a,min:o=0,max:s,step:c=1,size:l=`md`,error:u,disabled:d,className:f}){let p=(0,K.useId)(),m={min:o,max:s,step:c},h=Vf(n,m)??o,[g,_]=(0,K.useState)(null),[v,y]=(0,K.useState)(null),[b,x]=(0,K.useState)(n);n!==b&&(x(n),y(null));let S=v??h,C=(0,K.useRef)(null),w=(0,K.useRef)(h),T=(0,K.useRef)(null),D=(0,K.useRef)(a);(0,K.useEffect)(()=>{D.current=a});let O=()=>{T.current!=null&&window.clearTimeout(T.current),T.current=null;let e=C.current;C.current=null,e!=null&&e!==w.current&&D.current?.(w.current,e)};(0,K.useEffect)(()=>O,[]);let k=e=>{y(e),e!==(C.current==null?h:w.current)&&(C.current??=h,w.current=e,i(e),T.current!=null&&window.clearTimeout(T.current),T.current=window.setTimeout(O,zf))},A=()=>(g==null?null:Vf(g,m))??S,j=e=>{let t=Vf(A()+e,m);t!=null&&(_(null),k(t))},M=Bf(c)>0,N=M?/[^0-9.,-]/g:/[^0-9-]/g,P=e=>{let t=e.replace(N,``);_(t);let n=Number(t.replace(`,`,`.`));t&&Number.isFinite(n)&&Vf(t,m)===n&&k(n)},ee=()=>{let e=g==null?null:Vf(g,m);_(null),e!=null&&k(e),O()},F=g??String(S),te=t||e||``,I=S<=o,L=s!=null&&S>=Number(s),ne=Hf[l],R=r.$(ne.button,`inline-flex items-center justify-center rounded-full shrink-0 text-foreground/70 hover:text-foreground hover:bg-foreground/5 transition-colors cursor-pointer`,`focus:outline-none focus-visible:ring-2 focus-visible:ring-accent disabled:opacity-25 disabled:cursor-default disabled:hover:bg-transparent`);return(0,q.jsxs)(`div`,{className:r.$(`inline-flex flex-col`,f),children:[e&&(0,q.jsx)(`span`,{id:`${p}-label`,className:`text-[13px] font-medium text-foreground/50 select-none mb-1.5 ml-1`,children:e}),(0,q.jsxs)(`div`,{role:`group`,"aria-labelledby":e?`${p}-label`:void 0,className:r.$(`glass-panel inline-flex items-center self-start rounded-full p-0.5`,u&&`border-red-500/50`,d&&`opacity-50 pointer-events-none`),children:[(0,q.jsx)(`button`,{type:`button`,"aria-label":`One less ${te}`.trim(),disabled:d||I,onClick:()=>j(-c),className:R,children:(0,q.jsx)(pt,{className:ne.icon,"aria-hidden":!0})}),(0,q.jsx)(`input`,{type:`text`,inputMode:M?`decimal`:`numeric`,role:`spinbutton`,"aria-label":te||`How many`,"aria-valuenow":S,"aria-valuemin":o,"aria-valuemax":s==null?void 0:Number(s),"aria-invalid":u?!0:void 0,disabled:d,value:F,onChange:e=>P(e.target.value),onFocus:e=>e.target.select(),onBlur:ee,onKeyDown:e=>{e.key===`Enter`?(e.preventDefault(),e.currentTarget.blur()):e.key===`ArrowUp`?(e.preventDefault(),j(c)):e.key===`ArrowDown`&&(e.preventDefault(),j(-c))},style:{width:`${Math.max(2,F.length)+1}ch`},className:r.$(`bg-transparent text-center font-semibold tabular-nums text-foreground/85 focus:outline-none`,ne.box)}),(0,q.jsx)(`button`,{type:`button`,"aria-label":`One more ${te}`.trim(),disabled:d||L,onClick:()=>j(c),className:R,children:(0,q.jsx)(E.t,{className:ne.icon,"aria-hidden":!0})})]}),u&&(0,q.jsx)(`p`,{className:`text-xs text-red-500 font-medium mt-1`,children:u})]})}Uf.displayName=`NumberStepper`;var Wf=e=>{let t=Number(e);return Number.isFinite(t)&&t>0?t:0};function Gf(e,t){let n=e.map(Wf),r=Math.max(Wf(t),...n,0);return r?n.map(e=>e?Math.max(1,Math.round(e/r*1e3)/10):0):n.map(()=>0)}var Kf=e=>e.toLocaleString();function qf({items:e,max:t,format:n=Kf,size:i=`md`,label:a,className:o}){let[s,c]=(0,K.useState)(!1);(0,K.useEffect)(()=>{let e=requestAnimationFrame(()=>c(!0));return()=>cancelAnimationFrame(e)},[]);let l=Gf(e.map(e=>e.value),t),u=i===`sm`;return(0,q.jsx)(`ul`,{"aria-label":a,className:r.$(`flex flex-col min-w-0`,u?`gap-2`:`gap-3.5`,o),children:e.map((e,t)=>(0,q.jsxs)(`li`,{className:`group/bar flex flex-col gap-1 min-w-0`,children:[(0,q.jsxs)(`div`,{className:r.$(`flex items-baseline justify-between gap-3 min-w-0`,u?`text-[12px]`:`text-[14px]`),children:[(0,q.jsx)(`span`,{className:`text-foreground/60 truncate`,children:e.label}),(0,q.jsxs)(`span`,{className:`shrink-0 tabular-nums`,children:[(0,q.jsx)(`span`,{className:`font-semibold text-foreground`,children:n(Wf(e.value))}),e.note&&(0,q.jsxs)(`span`,{className:`text-foreground/45`,children:[` · `,e.note]})]})]}),(0,q.jsx)(`div`,{"aria-hidden":!0,className:r.$(`w-full`,u?`h-1.5`:`h-2.5`),children:(0,q.jsx)(`div`,{className:`h-full rounded-r bg-accent/70 group-hover/bar:bg-accent transition-[width,background-color] duration-700 ease-out motion-reduce:transition-none`,style:{width:`${s?l[t]:0}%`}})})]},`${e.label}-${t}`))})}var Jf=(...e)=>{for(let t of e)if(typeof t==`string`&&t.trim())return t.trim();return``},Yf=[`assigneeUid`,`assigneeId`,`assigneeName`,`assigneeEmail`,`assigneePhoto`,`assigneeAvatar`,`assignedToUid`,`assignedToName`],Xf=e=>{if(!e)return null;let t=`heldByUid`in e||`heldByName`in e,n=t?Jf(e.heldByUid):Jf(e.assigneeUid,e.assignedToUid,e.assigneeId),r=t?Jf(e.heldByName):Jf(e.assigneeName,e.assignedToName);return!n&&!r?null:{uid:n,name:r,photo:t?Jf(e.heldByPhoto):Jf(e.assigneePhoto,e.assigneeAvatar)}},Zf=e=>Array.isArray(e)?e.filter(e=>typeof e==`string`&&!!e):null;function Qf(e,t,n=Date.now()){let r=Xf(e),i=r?.uid&&r.uid!==t?.uid&&r.uid!==e.uid?c.E(r.uid):``,a=t?.uid?c.E(t.uid):``,o=Zf(e.access),s=Zf(e.editors),l=e=>[...new Set([...e.filter(e=>e!==i),...a?[a]:[]])],u={};for(let t of Yf)t in e&&(u[t]=(0,J.deleteField)());return{...u,...o&&s?{access:l(o),editors:l(s)}:a?{access:(0,J.arrayUnion)(a),editors:(0,J.arrayUnion)(a)}:i?{access:(0,J.arrayRemove)(i),editors:(0,J.arrayRemove)(i)}:{},heldByUid:t?.uid||``,heldByName:t?.name||``,heldByPhoto:t?.photo||``,heldAt:n}}var $f=``;function ep({person:e,small:t}){return(0,q.jsxs)(`span`,{className:`inline-flex min-w-0 max-w-full items-center gap-2 align-middle`,children:[(0,q.jsx)(Ef,{name:e.name,avatar:e.photo,size:t?`sm`:`md`}),(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-col text-left leading-tight`,children:[(0,q.jsx)(`span`,{className:`truncate`,children:e.name}),e.email&&e.email!==e.name&&(0,q.jsx)(`span`,{"data-handover-email":``,className:`truncate text-xs font-medium text-foreground/45`,children:e.email})]})]})}function tp({entry:e,collection:t,role:n=`internal`,name:i=``,link:a,label:s,compact:l=!1,readOnly:u=!1,onHanded:d,className:f}){let{user:p,userRole:m,isAdmin:h}=r.Ft(),g=String(p?.uid||``),_=(0,K.useMemo)(()=>g?c.k(g,m):[],[g,m]),v=o.Tn(t),y=!u&&!!e?.id&&v&&!!g&&(h||c.C(e,_))&&oe.f(e,h?`admin`:m),b=le.r(y?n:``),[x,S]=(0,K.useState)(void 0),C=Xf(e),w=x===void 0?C:x,T=w?.uid?b.people.find(e=>e.uid===w.uid):void 0,E=w?{uid:w.uid,name:T?.name||w.name||`Somebody`,photo:T?.photo||w.photo}:null;if(!e)return null;let D=!!s&&!l,O=D&&(0,q.jsx)(`span`,{className:`text-[13px] font-medium text-foreground/70`,children:s});if(!y){let e=(0,q.jsx)(`span`,{"data-handover":`holder`,className:r.$(`inline-flex min-w-0 max-w-full items-center font-semibold text-foreground/70`,l?`text-xs`:`text-sm`,D?``:f),children:E?(0,q.jsx)(ep,{person:E,small:l}):(0,q.jsx)(`span`,{className:`font-medium text-foreground/40`,children:`Nobody yet`})});return D?(0,q.jsxs)(`div`,{className:r.$(`flex min-w-0 flex-col gap-1.5`,f),children:[O,e]}):e}let A=async n=>{if(n===(w?.uid||$f)||x!==void 0)return;let o=n?b.people.find(e=>e.uid===n):null;if(n&&!o)return;let s=o?{uid:o.uid,name:o.name,photo:o.photo}:null;S(s);try{let n=(0,J.doc)(r.ui,t,String(e.id));await(0,J.runTransaction)(r.ui,async t=>{let r=await t.get(n);if(!r.exists())throw Object.assign(Error(`That one is not there any more.`),{code:`not-found`});t.update(n,{...ki(p),...Qf({...r.data(),id:e.id},s)})}),k.n(s?`Handed to ${s.name}`:`Taken back`),s&&s.uid!==g&&Ft({toUid:s.uid,title:i?`${i} is yours now`:`Something was handed to you`,body:`${Jf(p?.displayName,String(p?.email||``).split(`@`)[0])||`Somebody`} handed it to you.`,link:a||(typeof window<`u`?window.location.pathname:``)}),d?.(s)}catch(e){let t=e?.code;k.n(r.ii(e,t===`permission-denied`?`That one is not yours to hand over.`:t===`not-found`?`That one is not there any more.`:`That could not be handed over just now.`))}finally{S(void 0)}},j=r.qr(n),M=!b.loading&&!b.people.length;if(b.error||M)return(0,q.jsxs)(`div`,{"data-handover":`nobody`,className:r.$(`flex min-w-0 flex-col gap-1.5`,f),children:[O,E&&(0,q.jsx)(`span`,{className:`text-sm font-semibold text-foreground/70`,children:(0,q.jsx)(ep,{person:E,small:l})}),(0,q.jsx)(`p`,{className:`text-xs leading-snug text-foreground/50`,children:b.error||(n===`internal`?`Nobody is on your team yet — people are put on it on the Users screen.`:`Nobody is marked ${j} yet — people are marked on the Users screen.`)})]});let N=[...E?[{value:$f,label:(0,q.jsx)(`span`,{className:`text-foreground/60`,children:`Nobody`})}]:[],...E&&E.uid&&!T?[{value:E.uid,label:(0,q.jsx)(ep,{person:E,small:!0}),disabled:!0}]:[],...b.people.map(e=>({value:e.uid,label:(0,q.jsx)(ep,{person:e,small:!0})}))];return(0,q.jsx)(`div`,{"data-handover":`picker`,"data-no-drag":``,className:r.$(`min-w-0 [&_[role=button]_[data-handover-email]]:hidden`,l?`inline-flex max-w-full`:`w-full`,f),onClick:e=>e.stopPropagation(),children:(0,q.jsx)(r.Z,{compact:l,portal:!0,direction:`auto`,label:l?void 0:s,ariaLabel:s||`Hand to somebody`,value:E?.uid||$f,disabled:b.loading||x!==void 0,placeholder:(0,q.jsx)(`span`,{className:`text-foreground/50`,children:b.loading?`Loading people…`:`Hand to…`}),options:b.loading&&E?[{value:E.uid,label:(0,q.jsx)(ep,{person:E,small:!0})}]:N,onChange:A})})}tp.displayName=`HandOver`;var np=e=>e.replace(/[-_]+/g,` `).replace(/^./,e=>e.toUpperCase());function rp(e,t={}){let n=t.param||`step`,[r,i]=(0,Y.useSearchParams)(),a=(0,K.useMemo)(()=>e.map(e=>typeof e==`string`?{id:e,label:np(e)}:e),[e.map(e=>typeof e==`string`?e:`${e.id}:${e.label}`).join(`|`)]),o=r.get(n),s=a.findIndex(e=>e.id===o),l=s<0?0:s,u=a[l]?.id??``,d=c.x(),f=(0,K.useRef)(d);f.current=d;let p=(0,K.useCallback)(e=>{let t=f.current;if(t>0){k.n(t===1?`One file is still going up. One moment.`:`${t} files are still going up. One moment.`);return}i(t=>{let r=new URLSearchParams(t);return r.set(n,e),r})},[n,i]),m=(0,K.useCallback)(()=>{let e=a[Math.min(l+1,a.length-1)];e&&e.id!==u&&p(e.id)},[p,l,a,u]),h=(0,K.useCallback)(()=>{let e=a[Math.max(l-1,0)];e&&e.id!==u&&p(e.id)},[p,l,a,u]),g=(0,K.useCallback)(()=>{i(e=>{let t=new URLSearchParams(e);return t.delete(n),t},{replace:!0})},[n,i]);return{step:u,index:l,count:a.length,isFirst:l===0,isLast:l===a.length-1,next:m,back:h,goTo:p,reset:g,waiting:d>0,bar:{steps:a,current:u,onGo:p}}}var ip=48,ap=8,op=2.5,sp=5;function cp(e,t){if(!t||t.width<=0||t.height<=0||e.width<=0||e.height<=0)return{x:[0,1],y:[0,1]};let n=Math.min(e.width/t.width,e.height/t.height),r=t.width*n/e.width,i=t.height*n/e.height;return{x:[(1-r)/2,(1+r)/2],y:[(1-i)/2,(1+i)/2]}}function lp(e,[t,n]){if(e<=1)return[.5,.5];if(e*(n-t)>=1)return[e*t/(e-1),(e*n-1)/(e-1)];let r=(e*((t+n)/2)-.5)/(e-1);return[r,r]}var up=(e,[t,n])=>Math.min(n,Math.max(t,e));function dp({pictures:e,index:t,onIndex:n,onClose:i,zoom:a=!1}){let o=(Array.isArray(e)?e:[]).map(e=>typeof e==`string`?{src:e}:e&&typeof e==`object`&&typeof e.src==`string`?e:{src:``}),s=t!==null&&t>=0&&t<o.length,c=s?t:0,l=o.length>1,u=r.tt(),d=(0,K.useRef)(()=>{}),f=(0,K.useRef)(null);(0,K.useEffect)(()=>{d.current=e=>{l&&n((c+e+o.length)%o.length)}}),(0,K.useEffect)(()=>{if(!s)return;let e=()=>{f.current=null};return window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},[s]),(0,K.useEffect)(()=>{if(!s)return;let e=e=>{e.key===`ArrowLeft`&&(e.preventDefault(),d.current(-1)),e.key===`ArrowRight`&&(e.preventDefault(),d.current(1))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[s]);let p=o[c],m=()=>({s:1,x:.5,y:.5,by:`press`}),[h,_]=(0,K.useState)(m),y=s?`${c}:${p?.src}`:null;(0,K.useEffect)(()=>{f.current=null},[y]);let[b,x]=(0,K.useState)(y);y!==b&&(x(y),_(m()));let S=h.s>1,C=(0,K.useRef)(null),w=(0,K.useRef)(new Map),T=(0,K.useRef)(null),E=()=>{let e=f.current;if(e&&e.exact)return e;let t=C.current?.getBoundingClientRect(),n={left:t?.left||0,top:t?.top||0,width:t?.width||0,height:t?.height||0},i=[...C.current?.querySelectorAll(`img`)||[]].reverse().find(e=>e.naturalWidth>0),a=p&&r.k(p.src)||(p?.width&&p?.height?{width:p.width,height:p.height}:void 0)||(i?{width:i.naturalWidth,height:i.naturalHeight}:void 0),o={box:n,span:cp(n,a),exact:!!a&&n.width>0&&n.height>0};return f.current=o,o},D=()=>{f.current=null},O=(e,t,n,r)=>{if(e<=1)return{s:1,x:t,y:n,by:r};let{span:i}=E();return{s:e,x:up(t,lp(e,i.x)),y:up(n,lp(e,i.y)),by:r}},k=(e,t,n,r)=>{let{box:i,span:a}=E(),o=i.width?Math.min(1,Math.max(0,(e-i.left)/i.width)):.5,s=i.height?Math.min(1,Math.max(0,(t-i.top)/i.height)):.5,[c,l]=lp(n,a.x),[u,d]=lp(n,a.y);return{s:n,x:c+o*(l-c),y:u+s*(d-u),by:r}},A=()=>{let[e,t]=[...w.current.values()];return Math.hypot(e.x-t.x,e.y-t.y)||1},j=e=>{if(!(e.pointerType===`mouse`&&e.button!==0)){D(),w.current.set(e.pointerId,{x:e.clientX,y:e.clientY});try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}if(w.current.size===1)T.current={x:e.clientX,y:e.clientY,last:{x:e.clientX,y:e.clientY},moved:!1,pinched:!1};else if(w.current.size===2&&T.current&&(T.current.moved=!0,T.current.pinched=!0,T.current.pinch={dist:A(),s:h.s},!S)){let{box:e}=E(),[t,n]=[...w.current.values()];_({s:1,x:e.width?((t.x+n.x)/2-e.left)/e.width:.5,y:e.height?((t.y+n.y)/2-e.top)/e.height:.5,by:`finger`})}}},N=e=>{if(!w.current.has(e.pointerId)){e.pointerType===`mouse`&&S&&_(k(e.clientX,e.clientY,h.s,`mouse`));return}w.current.set(e.pointerId,{x:e.clientX,y:e.clientY});let t=T.current;if(!t)return;if(t.pinch&&w.current.size>=2){_(O(Math.min(sp,Math.max(1,t.pinch.s*A()/t.pinch.dist)),h.x,h.y,`finger`));return}let n=e.clientX-t.last.x,r=e.clientY-t.last.y;if(t.last={x:e.clientX,y:e.clientY},Math.hypot(e.clientX-t.x,e.clientY-t.y)>ap&&(t.moved=!0),!S)return;if(e.pointerType===`mouse`){_(k(e.clientX,e.clientY,h.s,`mouse`));return}let{box:i}=E();!i.width||!i.height||_(O(h.s,h.x-n/i.width/(h.s-1),h.y-r/i.height/(h.s-1),`finger`))},P=e=>{if(!w.current.delete(e.pointerId))return;let t=T.current;if(w.current.size>0){if(t){t.pinch=void 0;let[e]=[...w.current.values()];t.last=e}return}if(T.current=null,!t)return;if(t.pinched){h.s<1.15&&_({...h,s:1,by:`press`});return}if(!t.moved&&Math.hypot(e.clientX-t.x,e.clientY-t.y)<=ap){_(S?{...h,s:1,by:`press`}:k(e.clientX,e.clientY,op,`press`));return}if(S)return;let n=e.clientX-t.x;Math.abs(n)>ip&&Math.abs(n)>Math.abs(e.clientY-t.y)*1.5&&d.current(n<0?1:-1)},ee=e=>{w.current.delete(e.pointerId),w.current.size||(T.current=null)},F=`cubic-bezier(0.22, 1, 0.36, 1)`,te=u||h.by===`finger`||h.by===`mouse`?`none`:`transform 350ms ${F}, transform-origin 350ms ${F}`,I=`absolute z-10 flex h-11 w-11 items-center justify-center rounded-full border border-[var(--panel-border)] bg-background/80 text-foreground backdrop-blur-sm transition-colors hover:bg-background focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/40 cursor-pointer`;return(0,q.jsx)(M.t,{open:s,onClose:i,size:`xl`,title:l?`${c+1} of ${o.length}`:void 0,className:`px-3 pb-4 sm:px-5 sm:pb-5`,children:p&&(0,q.jsxs)(`figure`,{className:`select-none`,children:[(0,q.jsxs)(`div`,{className:`relative`,children:[(0,q.jsx)(`div`,{ref:C,"data-lightbox-stage":!0,className:`relative overflow-hidden rounded-xl`,style:{touchAction:`none`,cursor:S?`zoom-out`:`zoom-in`},onPointerDown:j,onPointerMove:N,onPointerUp:P,onPointerCancel:ee,children:(0,q.jsx)(`div`,{className:`h-[62dvh] w-full sm:h-[72vh]`,style:{transform:`scale(${h.s})`,transformOrigin:`${h.x*100}% ${h.y*100}%`,transition:te,willChange:S?`transform`:void 0},children:(0,q.jsx)(r.O,{src:p.src,alt:p.alt||p.caption||``,fit:`contain`,priority:!0,draggable:!1,className:`h-full w-full`,preload:l?[o[(c+1)%o.length].src,o[(c-1+o.length)%o.length].src].filter(Boolean):void 0})})}),l&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{type:`button`,"aria-label":`Previous picture`,onClick:()=>d.current(-1),className:`${I} left-2 top-1/2 -translate-y-1/2`,children:(0,q.jsx)(g.t,{className:`h-5 w-5`,"aria-hidden":`true`})}),(0,q.jsx)(`button`,{type:`button`,"aria-label":`Next picture`,onClick:()=>d.current(1),className:`${I} right-2 top-1/2 -translate-y-1/2`,children:(0,q.jsx)(r.kt,{className:`h-5 w-5`,"aria-hidden":`true`})})]}),(0,q.jsx)(`button`,{type:`button`,"aria-label":S?`Zoom out`:`Zoom in`,onClick:()=>_(S?{...h,s:1,by:`press`}:O(op,.5,.5,`press`)),className:`${I} bottom-3 right-3`,children:S?(0,q.jsx)(v.o,{className:`h-5 w-5`,"aria-hidden":`true`}):(0,q.jsx)(v.a,{className:`h-5 w-5`,"aria-hidden":`true`})})]}),p.caption&&(0,q.jsx)(`figcaption`,{className:`mt-3 text-center text-sm text-foreground/70`,children:p.caption})]})})}dp.displayName=`Lightbox`;var fp=/^(?:https?:\/\/|mailto:|tel:|\/(?!\/))/i,pp=/\*\*([^*]+)\*\*|\*([^*\n]+)\*|\[([^\]]+)\]\(([^)\s]+)\)|(https?:\/\/[^\s<>()]+[^\s<>().,;:!?'"])/g;function mp(e,t){let n=[],r=0,i=0;for(let a of e.matchAll(pp)){let o=a.index??0;o>r&&n.push(e.slice(r,o));let s=`${t}-${i++}`;if(a[1]!=null)n.push((0,q.jsx)(`strong`,{className:`font-semibold text-foreground`,children:a[1]},s));else if(a[2]!=null)n.push((0,q.jsx)(`em`,{children:a[2]},s));else{let e=a[4]??a[5],t=a[3]??a[5];if(e&&fp.test(e)){let r=/^https?:/i.test(e);n.push((0,q.jsx)(`a`,{href:e,...r?{target:`_blank`,rel:`noopener noreferrer`}:{},className:`font-medium text-accent underline decoration-accent/40 underline-offset-4 transition-colors hover:decoration-accent`,children:t},s))}else n.push(t)}r=o+a[0].length}return r<e.length&&n.push(e.slice(r)),n}var hp=(e,t)=>e.map((e,n)=>(0,q.jsxs)(K.Fragment,{children:[n>0&&(0,q.jsx)(`br`,{}),mp(e,`${t}-l${n}`)]},`${t}-l${n}`)),gp=/^!\[([^\]]*)\]\((https?:\/\/[^)\s]+)\)$/;function _p({text:e,className:t}){let n=String(e??``).replace(/\r\n?/g,`
|
|
18
|
+
`}),(0,G.jsxs)(`div`,{className:`relative group/date flex flex-col w-full`,children:[(0,G.jsx)(d.c,{type:`date`,label:`Date`,required:!0,value:J.dateStr,onChange:e=>Y({...J,dateStr:e.target.value}),className:`pr-10`}),(0,G.jsx)(`div`,{className:`absolute right-4 bottom-4 pointer-events-none group-focus-within/date:text-accent text-foreground/40 transition-colors`,children:(0,G.jsx)(d.l,{className:`w-4 h-4`})})]}),(0,G.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-4`,children:[_e?(0,G.jsx)(d.c,{type:`time`,label:`Time`,value:J.time,onChange:e=>Y({...J,time:e.target.value}),required:!0}):(()=>{let{h:e,m:t,ampm:n}=Oe(J.time);return(0,G.jsxs)(`div`,{className:`flex flex-col w-full`,children:[(0,G.jsx)(`label`,{className:`text-[13px] font-medium text-foreground/50 select-none mb-1.5 ml-1`,children:`Time`}),(0,G.jsxs)(`div`,{className:`flex items-center h-12 glass-panel border border-[var(--panel-border)] rounded-xl px-3 gap-1 focus-within:border-accent transition-colors`,children:[(0,G.jsx)(`input`,{type:`number`,min:1,max:12,value:e,onChange:e=>Y({...J,time:ke(Math.min(12,Math.max(1,parseInt(e.target.value)||12)),t,n)}),className:`w-8 text-center bg-transparent focus:outline-none text-foreground font-bold text-[15px] [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none`}),(0,G.jsx)(`span`,{className:`text-foreground/40 font-bold text-[15px] select-none`,children:`:`}),(0,G.jsx)(`input`,{type:`number`,min:0,max:59,value:t.toString().padStart(2,`0`),onChange:t=>Y({...J,time:ke(e,Math.min(59,Math.max(0,parseInt(t.target.value)||0)),n)}),className:`w-8 text-center bg-transparent focus:outline-none text-foreground font-bold text-[15px] [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>Y({...J,time:ke(e,t,n===`AM`?`PM`:`AM`)}),className:`ml-auto px-2 py-0.5 rounded-md bg-accent/10 text-accent text-[11px] font-extrabold uppercase tracking-wider hover:bg-accent/20 transition-colors shrink-0`,children:n})]})]})})(),(0,G.jsx)(d.c,{type:`number`,min:`1`,max:`1440`,label:`Duration (min)`,value:J.duration,onChange:e=>Y({...J,duration:e.target.value}),placeholder:`60`,required:!0})]}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,G.jsx)(`label`,{className:`text-[11px] font-bold text-foreground/50 uppercase tracking-widest mt-1`,children:`Event Color`}),(0,G.jsx)(`div`,{className:`flex gap-2 items-center relative z-10 w-full h-[46px]`,children:Mc.map(e=>(0,G.jsx)(`button`,{type:`button`,onClick:()=>Y({...J,color:J.color===e.text?``:e.text}),className:`w-6 h-6 rounded-full shrink-0 ${e.bgCircle} hover:scale-110 transition-transform flex items-center justify-center border border-[var(--panel-border)]`,children:J.color===e.text&&(0,G.jsx)(`div`,{className:`w-2.5 h-2.5 rounded-full bg-background`})},e.name))})]}),(0,G.jsx)(`div`,{className:`pt-2`,children:(0,G.jsx)(O.t,{type:`submit`,isLoading:ae,className:`w-full py-3`,children:J.id?`Save Changes`:`Create Event`})})]})]})]},`edit-modal`),(0,G.jsx)(re.t,{isOpen:!!U,title:`Confirm Deletion`,message:(0,G.jsxs)(G.Fragment,{children:[`Are you sure you want to delete `,(0,G.jsx)(`strong`,{className:`text-foreground font-extrabold break-words mx-1`,children:U?.title}),` This action is permanent.`]}),onConfirm:Ue,onCancel:()=>{ce(null)},isProcessing:H,confirmText:`Yes, Delete`})]});return m?(0,G.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`,children:[(0,G.jsx)(r.k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-6 flex items-center justify-between`,children:(0,G.jsxs)(`div`,{children:[(0,G.jsx)(n.t,{children:u?.tabTitle||u?.tabName||e}),t&&(0,G.jsxs)(`div`,{className:`flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,G.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),t]})]})}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-6 flex-1 pb-16`,children:[(0,G.jsx)(i.t,{}),(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:`flex flex-col glass-panel border border-[var(--panel-border)] rounded-3xl overflow-hidden flex-1 shadow-2xl bg-background`,children:[Ye(),Ze()]})]}),Qe()]}):(0,G.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,G.jsxs)(r.k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-4 md:mb-6 flex items-center gap-3`,children:[a&&(0,G.jsx)(c.r,{to:a}),(0,G.jsxs)(`div`,{className:`min-w-0`,children:[(0,G.jsx)(n.t,{children:e}),t&&(0,G.jsxs)(`div`,{className:`max-sm:hidden sm:flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,G.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),t]})]})]}),(0,G.jsx)(`div`,{className:`flex flex-col gap-6 flex-1 min-h-0 pb-16`,children:(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:`flex flex-col glass-panel border border-[var(--panel-border)] rounded-3xl overflow-hidden flex-1 min-h-[400px] shadow-2xl bg-background relative`,children:[(0,G.jsx)(`div`,{className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] bg-accent/5 blur-[120px] rounded-full pointer-events-none -z-10`}),Ye(),Ze()]})}),Qe()]})}var Lc={products:[],names:[],opens:{}};function Rc(e,t,r,i){if(!e||typeof e!=`object`||e.isPrivate!==!0||o.w(`user`,e,i))return Lc;let a=t=>!!t&&o.w(t,e,i),s={products:[],names:[],opens:{}};for(let e of t){if(e.kind===`once`){let t=n.cr(e).filter(e=>a(e.roleId)&&o.f(e.amount)!==null&&e.name.trim()).map(e=>({key:e.key,name:e.name.trim(),roleId:e.roleId}));if(!t.length)continue;s.products.push(e.id),s.opens[e.id]=t.map(e=>e.name),(s.things||={})[e.id]=t;for(let e of t)s.names.includes(e.name)||s.names.push(e.name);continue}if(e.kind!==`subscription`)continue;let t=C.i(e,r).filter(e=>a(e.roleId));if(t.length){s.products.push(e.id),s.opens[e.id]=t.map(e=>e.name);for(let e of t)s.names.includes(e.name)||s.names.push(e.name)}}return s}function zc(e,t){let n={};for(let r of t){let t=e.opens[r.id];r.kind!==`subscription`||!t||e.things?.[r.id]||(n[r.id]=Object.fromEntries(r.plans.map(e=>[e.name.trim()||`Plan`,e.roleId||``]).filter(([e])=>t.includes(e))))}return n}var Bc=e=>e.length<=1?e[0]||``:`${e.slice(0,-1).join(`, `)} or ${e[e.length-1]}`,Vc=4e3;function Hc(e=!0,t=!0){let[i,a]=(0,W.useState)(null);return(0,W.useEffect)(()=>{if(!e)return;let i=t?setTimeout(()=>a(e=>e??[]),Vc):void 0,o=n.Fr(n.Tn,()=>(0,K.collection)(r.bt,n.Tn),e=>{let t=[];e.forEach(e=>{e.id!==`_settings`&&t.push(n.lr(e.id,e.data()))}),clearTimeout(i),a(t)},()=>{clearTimeout(i),a([])});return()=>{clearTimeout(i),o()}},[e,t]),e?i:null}function Uc(e,t){return!e||typeof e!=`object`||e.isPrivate!==!0?!1:o.Z(e).some(o.N)&&!o.w(`user`,e,t)}function Wc(e,t){let r=!!e,{loading:i,configured:a,mode:o}=n.cn(),s=Hc(r&&!i&&a);if(!r)return{...Lc,loading:!1};if(i)return{...Lc,loading:!0};if(!a)return{...Lc,loading:!1};if(!s)return{...Lc,loading:!0};let c=Rc(e,s,o===`live`,t);return{...c,...c.products.length?{giving:zc(c,s)}:{},loading:!1}}function Gc(e){return e?.kind===`once`?{roles:[...new Set(n.cr(e).map(e=>e.roleId))],roleless:!1}:!e||e.kind!==`subscription`?{roles:[],roleless:!1}:{roles:[...new Set(e.plans.map(e=>e.roleId||``).filter(Boolean))],roleless:e.plans.some(e=>!e.roleId)}}var Kc=(e,t)=>String(e||``).trim().toLowerCase()===String(t||``).trim().toLowerCase();function qc({wall:e,pageName:t,path:r,signedIn:i}){let{user:a}=n.Q(),s=n.sn(),[c,l]=(0,W.useState)(!1),u=String(t||``).trim(),d=s.loading?[]:e.products.flatMap(t=>s.subscriptions.filter(e=>C.a(t,[e]).length>0).map(n=>({name:(e.opens[t]||[]).find(e=>Kc(e,n.plan))||``,role:n.role||``})).filter(e=>e.name)),f=Object.entries(e.things||{}).flatMap(([e,t])=>t.map(t=>({...t,mark:o.r(e,t.key)}))),p=new Set([...f.map(e=>e.roleId),...Object.values(e.giving||{}).flatMap(e=>Object.values(e))].filter(Boolean)),m=s.loading?[]:s.payments.filter(e=>e.role&&e.paid&&!e.fullyRefunded),h=new Set(m.map(e=>e.thing||``).filter(Boolean)),g=m.filter(e=>p.has(e.role)).map(e=>({name:f.find(t=>!!e.thing&&t.mark===e.thing)?.name||String(e.productName||``).trim()||f.find(t=>t.roleId===e.role)?.name||``,role:e.role})).filter(e=>e.name),_=[...d,...g],v=_[0]?.name||``,y=new Set(_.map(e=>e.role).filter(Boolean)),b=v?n._n(s):null,x=b&&!_.some(e=>e.role===b.role)?b:null,S=v||s.loading?null:n._n({subscriptions:s.subscriptions,payments:[]}),w=S&&!p.has(S.role)&&!(S.product&&e.products.includes(S.product))?S:null,T=!!a?.email&&!o.h(a),E=e.products.some(t=>e.things?.[t]),D=E&&e.products.every(t=>e.things?.[t]),k=!E,A=t=>!v||C.a(t,s.subscriptions).length>0?e.opens[t]||[]:(e.opens[t]||[]).filter(n=>!y.has(e.giving?.[t]?.[n]||``)),j=t=>(e.things?.[t]||[]).filter(e=>!v||!y.has(e.roleId)||h.has(o.r(t,e.key)));return(0,G.jsxs)(`main`,{className:`flex-1 w-full max-w-6xl mx-auto px-4 pt-6 pb-16 md:pt-10 z-10 flex flex-col items-center gap-10 fbos-fade-in`,children:[(0,G.jsx)(Fa,{orderPath:r}),(0,G.jsxs)(`div`,{className:`flex flex-col items-center text-center gap-2.5 max-w-xl`,children:[u&&(0,G.jsx)(`span`,{className:`text-[11px] font-bold uppercase tracking-[0.2em] text-foreground/40`,children:u}),(0,G.jsx)(`h1`,{className:`text-2xl sm:text-3xl md:text-4xl font-bold text-foreground tracking-tight`,children:v?`${v} is yours`:`This page comes with ${Bc(e.names)}`}),(0,G.jsx)(`p`,{className:`text-[14px] md:text-[15px] text-foreground/60 leading-relaxed`,children:v?T?`Confirm your email to open this page: the link is in your inbox.`:x?`Your account opens ${x.from?`${x.from}'s`:`another plan’s`} pages for now: one plan's pages open at a time. Manage your plan to change which one you keep.`:`This page opens as soon as it is set up. Try again in a moment.`:w?`${w.from?`You have ${w.from}`:`You have another plan`}, and your account opens its pages: one plan's pages open at a time. To open this one, change your plan under Manage plan rather than buying a second.`:`${D?`Buy it below`:k?`Choose a plan below`:`Choose one below`}, and this page opens as soon as it is yours.`}),v&&!T&&(x?(0,G.jsx)(z.t,{variant:`secondary`,className:`mt-2`}):(0,G.jsx)(O.t,{variant:`ghost`,onClick:async()=>{!a?.uid||c||(l(!0),await n.vn(a.uid),l(!1))},isLoading:c,disabled:c,className:`mt-2`,children:`Try again`})),w&&(0,G.jsx)(z.t,{variant:`secondary`,className:`mt-2`})]}),e.products.map(t=>e.things?.[t]?j(t).length>0&&(0,G.jsx)(`div`,{className:`flex flex-col gap-3 w-full max-w-md`,children:j(t).map(e=>(0,G.jsx)(Yc,{product:t,item:e.key},e.key))},t):A(t).length>0&&(0,G.jsx)(Ta,{product:t,only:A(t)},t)),!i&&(0,G.jsxs)(`p`,{className:`text-[13px] font-medium text-foreground/55`,children:[`Already a member?`,` `,(0,G.jsx)(q.Link,{to:`/login?from=${encodeURIComponent(r)}`,className:`font-semibold text-accent hover:underline`,children:`Sign in`})]})]})}function Jc({product:e,className:t}){let i=n.cr(e).filter(e=>e.name.trim());return i.length?(0,G.jsx)(`div`,{className:r.E(`flex flex-col gap-3 w-full max-w-md`,t),children:i.map(t=>(0,G.jsx)(Yc,{product:e.id,item:t.key},t.key))}):null}function Yc({product:e,item:t}){let{thing:i}=C.s(e,t),a=r.st(),s=n.sn();if(!i)return null;let c=!s.loading&&s.payments.some(n=>n.thing===o.r(e,t)&&n.paid&&!n.fullyRefunded),l=s.loading?null:n._n({subscriptions:s.subscriptions,payments:[]}),u=l&&l.role!==i.roleId?l:null;return(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-4 p-5 rounded-3xl glass-panel text-left`,children:[(0,G.jsxs)(`div`,{className:`min-w-0 flex flex-col gap-0.5`,children:[(0,G.jsx)(`span`,{className:`text-[15px] font-bold tracking-tight text-foreground/80`,children:i.name}),a&&(0,G.jsxs)(`span`,{className:`text-[13px] font-medium text-foreground/50 tabular-nums`,children:[n.xr(i.amount,a),`, paid once`]}),u&&(0,G.jsx)(`span`,{className:`text-[12.5px] text-foreground/55 leading-snug`,children:`While your ${u.from||`plan`} plan runs, your account opens its pages: this opens once it ends.`})]}),c?(0,G.jsx)(`span`,{className:`shrink-0 px-2.5 py-1 rounded-full bg-foreground/10 text-[11.5px] font-bold text-foreground/70`,children:`Yours`}):(0,G.jsx)(Ca,{product:e,item:t,className:`shrink-0 px-5 py-2.5 text-[14px] font-bold`,children:`Buy`})]})}function Xc(e){let{user:t,methods:n}=e;if(!t)return null;if(!e.roleResolved||!e.profileReady)return`wait`;if(!o.h(t))return`/verify`;if(Wn(t)){if(n.loading)return`wait`;if(Yn(t,n.on.sms2fa,n.twoStepOptional))return`/two-step`}return N.S(e.profile,{skippable:!0,perRole:!0})!==`member`&&n.loading?`wait`:N.f(e.profile,e.userRole,n.finishRegistration,t.uid)?`/your-details`:zr(t.uid)?Mr:null}var Zc=`/register`,Qc=300*1e3,$c=e=>{if(typeof window>`u`)return null;try{let t=localStorage.getItem(`fbos_route_${e}`);if(!t)return null;let{cachedAt:n,...r}=JSON.parse(t);return{config:r,cachedAt:typeof n==`number`?n:0}}catch{return null}},el=(e,t)=>{try{localStorage.setItem(e,t)}catch{}},tl=e=>{try{localStorage.removeItem(e)}catch{}},nl=(e,t)=>{let n=t?o.L(e.pageType):`public`;return{...e,pageType:n,isPrivate:t,isAdmin:n===`admin`,isInternal:n===`internal`,isShared:n===`internal`}},rl=new Map,il=e=>{let t=rl.get(e);return t||(t={id:e,name:``,roles:[]},rl.set(e,t)),t};function al({onRetry:e=i.y}){return(0,G.jsx)(`div`,{className:`flex-1 flex flex-col items-center justify-center m-4 md:m-8 min-h-[40vh] z-10`,children:(0,G.jsxs)(`div`,{className:`w-full max-w-md glass-panel border border-[var(--panel-border)] rounded-2xl p-8 text-center`,children:[(0,G.jsx)(`p`,{className:`text-[15px] font-bold mb-1.5 text-foreground/80`,children:`This page could not open yet`}),(0,G.jsx)(`p`,{className:`text-[13px] font-medium text-foreground/55 leading-relaxed mb-6`,children:`The app could not check who this page is for. Check your connection, then try again.`}),(0,G.jsx)(`button`,{onClick:()=>e(),className:V.a,children:`Try again`})]})})}function ol({config:e}){let{userRole:t}=n.Q(),r=E.t(e);return(0,G.jsxs)(`div`,{className:`flex-1 flex flex-col items-center justify-center m-4 md:m-8 gap-6 min-h-[40vh]`,children:[(0,G.jsxs)(`div`,{className:`w-full max-w-lg glass-panel border border-[var(--panel-border)]/50 border-dashed rounded-2xl p-8 py-16 text-center opacity-70`,children:[(0,G.jsx)(`p`,{className:`text-[15px] font-bold mb-1.5 text-foreground/70`,children:`This page could not open`}),(0,G.jsx)(`p`,{className:`text-[13px] font-medium text-foreground/50 max-w-sm leading-relaxed mx-auto`,children:`Everything else here still works. Please come back to it a little later.`})]}),o.A(t)&&r&&(0,G.jsx)(`div`,{className:`w-full max-w-lg`,children:(0,G.jsx)(n.o,{compact:!0,title:`To put this page right, paste this to your assistant`,prompt:E.c(r.file,r.page,r.error)})})]})}function sl(){let e=(0,q.useLocation)(),{user:a,userRole:s,loading:l,roleResolved:u,roleConfirmed:f,userInactive:p,signOut:m,profile:h,profileReady:g}=n.Q(),v=n.Bt(),y=r.wt();r.st();let b=e=>{let n=$c(e);if(n)try{let e=n.config;if(e.form&&!e.formConfigOverride){let t=localStorage.getItem(`fbos_form_${e.form}`);t&&(e.formConfigOverride=JSON.parse(t))}return nl(e,e.isPrivate===!0)}catch{}let r=(typeof window<`u`?window.__FBOS_PAGES__:null)||{},i=e.replace(/^\//,``);for(let[t,n]of Object.entries(r)){let r=n.config,a=n.isPublic,o=r.route||`/`+t;if(o===e||t===i)return nl({...r,route:o,contentKey:r.pageId||t,pageId:t},!a)}return e===`/contact`?{route:`/contact`,template:`popup_form`,form:`contact`,pageId:`contact`,contentKey:`contact`,pageName:`Contact`,formConfigOverride:y.defaultConfigs?.contactForm||t.a}:e===`/support`?{route:`/support`,template:`popup_form`,form:`support`,pageId:`support`,contentKey:`support`,pageName:`Support`,formConfigOverride:y.defaultConfigs?.supportForm||t.r}:null},[x,S]=(0,W.useState)(()=>b(e.pathname)),[C,w]=(0,W.useState)(()=>!b(e.pathname)),T=(0,W.useRef)(e.pathname),[D,O]=(0,W.useState)(``),[k,A]=(0,W.useState)(``),[j,ee]=(0,W.useState)(0),M=x&&x!==`not-found`&&typeof x==`object`&&x.isPrivate?o.z(x):``,P=i.S(!!M),F=f!==!1&&o.A(s);(0,W.useEffect)(()=>{let n=!0;A(``);let i=b(e.pathname);if(i){S(i),w(!1);let e=i.pageName||i.tabName||i.title;e&&(document.title=e)}else T.current!==e.pathname&&(S(null),w(!0));T.current=e.pathname;let a=$c(e.pathname),o=!!a&&!F&&Date.now()-a.cachedAt<Qc;if(o&&a.config?.isPrivate!==!0)return()=>{n=!1};let s=o&&a.config?.isPrivate===!0?String(a.config?.pageId||``).trim():``;return(async()=>{try{let a=e.pathname;a.startsWith(`/`)&&(a=a.substring(1));let o=null,c=null;if(s)try{let e=await(0,K.getDoc)((0,K.doc)(r.bt,`sys_tabs`,s)),t=String(e.exists()&&e.data()?.route||``).replace(/^\/+/,``);e.exists()&&t===a&&(o=nl(e.data(),!0),c=e.id)}catch{}let[l,u,d,f,p,m]=o?[]:await Promise.allSettled([(0,K.getDoc)((0,K.doc)(r.bt,`sys_pages`,a)),(0,K.getDoc)((0,K.doc)(r.bt,`sys_tabs`,a)),(0,K.getDocs)((0,K.query)((0,K.collection)(r.bt,`sys_pages`),(0,K.where)(`route`,`==`,e.pathname),(0,K.limit)(1))),(0,K.getDocs)((0,K.query)((0,K.collection)(r.bt,`sys_pages`),(0,K.where)(`route`,`==`,a),(0,K.limit)(1))),(0,K.getDocs)((0,K.query)((0,K.collection)(r.bt,`sys_tabs`),(0,K.where)(`route`,`==`,e.pathname),(0,K.limit)(1))),(0,K.getDocs)((0,K.query)((0,K.collection)(r.bt,`sys_tabs`),(0,K.where)(`route`,`==`,a),(0,K.limit)(1)))]),h=(e,t)=>{o||!e||e.status===`fulfilled`&&(e.value.exists&&e.value.exists()?(o=nl(e.value.data(),t),c=e.value.id):e.value.docs&&e.value.docs.length>0&&(o=nl(e.value.docs[0].data(),t),c=e.value.docs[0].id))};h(l,!1),h(d,!1),h(f,!1),h(u,!0),h(p,!0),h(m,!0);let g=!o&&[l,u,d,f,p,m].some(e=>e?.status===`rejected`);if(!o){let t=(typeof window<`u`?window.__FBOS_PAGES__:null)||{};for(let[n,r]of Object.entries(t)){let t=r.config,i=r.isPublic,s=t.route||`/`+n;if(s===e.pathname||n===a){o=nl({...t,route:s,contentKey:t.pageId||n,pageId:n},!i),c=n;break}}}if(o||(e.pathname===`/contact`?(o={route:`/contact`,template:`popup_form`,form:`contact`,pageName:`Contact`},c=`contact`):e.pathname===`/support`&&(o={route:`/support`,template:`popup_form`,form:`support`,pageName:`Support`},c=`support`)),!n)return;if(g&&(!o||o.isPrivate)){if(!o&&i&&!i.isPrivate){O(e.pathname);return}A(e.pathname),w(!1);return}if(o){if((c===`contact`||c===`support`)&&!o.form&&(o.form=c),o.contentKey||=o.pageId||c,o.pageId=c,el(`fbos_route_${e.pathname}`,JSON.stringify({...o,cachedAt:Date.now()})),o.form){let e=(typeof window<`u`?window.__FBOS_FORMS__:null)||{},i=n=>y.defaultConfigs?.[n]||y.defaultConfigs?.[`${n}Form`]||e[n]||(n===`contact`?t.a:n===`support`?t.r:null),a=null;try{a=localStorage.getItem(`fbos_custom_form_${o.form}`)}catch{}if(a){try{let e=localStorage.getItem(`fbos_form_${o.form}`);e&&(o.formConfigOverride=JSON.parse(e))}catch{}(0,K.getDoc)((0,K.doc)(r.bt,`sys_forms`,o.form)).then(async e=>{if(n)if(e.exists()){let t={...e.data(),id:e.id};S(e=>({...e,formConfigOverride:t})),el(`fbos_form_${o.form}`,JSON.stringify(t))}else{let e=i(o.form);e&&(S(t=>({...t,formConfigOverride:e})),el(`fbos_form_${o.form}`,JSON.stringify(e)),tl(`fbos_custom_form_${o.form}`))}}).catch(()=>{})}else{let e=i(o.form);e&&(o.formConfigOverride=e)}}let i=o.pageName||o.tabName||o.title;i&&(document.title=i),S(o),w(!1),O(e.pathname)}else S(`not-found`),w(!1),O(e.pathname),tl(`fbos_route_${e.pathname}`)}catch{if(!n)return;!i||i.isPrivate?(A(e.pathname),w(!1)):O(e.pathname)}})(),()=>{n=!1}},[e.pathname,F,j]);let I=()=>{A(``),(!x||x===`not-found`)&&(S(null),w(!0)),ee(e=>e+1)},L=(0,W.useRef)(I);L.current=I;let R=k===e.pathname;(0,W.useEffect)(()=>{if(!R||typeof window>`u`)return;let e=()=>L.current();return window.addEventListener(`online`,e),()=>window.removeEventListener(`online`,e)},[R]);let[ne,re]=(0,W.useState)(!1),z=E.f(),[B,ae]=(0,W.useState)(null),[H,oe]=(0,W.useState)(!1),U=x&&x!==`not-found`&&typeof x==`object`?[x.contentKey,x.tabName,x.pageId,x.pageName].filter(Boolean).join(`|`):``;(0,W.useEffect)(()=>{if(ae(null),!z)return;if(!U||E.r(x)){oe(!1);return}let e=!1;oe(!0),E.n(x).then(t=>{e||(t&&ae(()=>t),oe(!1))});let t=setTimeout(()=>{e||oe(!1)},4e3);return()=>{e=!0,clearTimeout(t)}},[U,z]);let se=!!a&&f===!1&&!!x&&typeof x==`object`&&x.isPrivate===!0,ce=n.bn(a?.uid),J=Uc(x,P.groups)&&(!a||!o.w(s,x,P.groups)),Y=Wc(J?x:null,P.groups),X=(0,W.useRef)(``),le=X.current===e.pathname&&J&&Y.products.length>0,Z=!!a&&v.loading&&!!x&&typeof x==`object`&&(x.pageId===`support`||x.isPrivate===!0)&&N.S(h,{skippable:!0,perRole:!0})!==`member`,ue=!u&&!!x&&typeof x==`object`&&(x.pageId===`support`||!!x.isPrivate),de=!!a&&!!x&&typeof x==`object`&&x.isPrivate===!0&&D!==e.pathname,fe=!a&&!l&&!!x&&typeof x==`object`&&x.isPrivate===!0&&!R&&(D===e.pathname?J&&(Y.loading||!!M&&!P.live&&!P.stalled):o.L(x.pageType)===`user`);(0,W.useEffect)(()=>{let e;return C||l||ue||se||Z||de||fe||H||!z?e=setTimeout(()=>re(!0),150):re(!1),()=>clearTimeout(e)},[C,l,ue,se,Z,de,fe,H,z]);let pe=()=>(X.current=e.pathname,(0,G.jsx)(qc,{wall:Y,pageName:x?.tabName||x?.pageName||x?.title,path:e.pathname,signedIn:!!a}));if(R&&!l&&(a||!x||x===`not-found`||!x.isPrivate))return(0,G.jsx)(al,{onRetry:I});if(C||l||ue||se||Z||de||fe||H||!z)return le?pe():ne?a?(0,G.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,G.jsxs)(`div`,{className:`mb-6`,children:[(0,G.jsx)(`div`,{className:`h-10 w-56 rounded-xl bg-foreground/5 animate-pulse mt-1`}),(0,G.jsx)(`div`,{className:`h-3 w-24 rounded bg-foreground/5 animate-pulse mt-3`})]}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-6 flex-1 pb-16`,children:[(0,G.jsx)(i.t,{}),(0,G.jsx)(`div`,{className:`flex-1 fbos-tab-fill glass-panel border border-[var(--panel-border)] rounded-3xl flex items-center justify-center min-h-[400px] bg-background shadow-2xl`,children:(0,G.jsx)(_.n,{className:`w-6 h-6 animate-spin text-accent`})})]})]}):(0,G.jsx)(`div`,{className:`flex-1 flex items-center justify-center min-h-[40vh] z-10`,children:(0,G.jsxs)(`div`,{className:`p-4 rounded-2xl glass-panel border border-[var(--panel-border)]/40 bg-background/80 shadow-md flex items-center gap-3`,children:[(0,G.jsx)(_.n,{className:`w-4 h-4 animate-spin text-accent`}),(0,G.jsx)(`span`,{className:`text-[12px] font-medium text-foreground/60 tracking-wide`,children:`Loading page...`})]})}):null;if(x===`not-found`)return(0,G.jsx)(`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,G.jsxs)(`div`,{className:`flex flex-col items-center justify-center flex-1 text-center`,children:[(0,G.jsx)(`div`,{className:`w-16 h-16 bg-red-500/10 text-red-500 rounded-full flex items-center justify-center mb-6`,children:(0,G.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`w-8 h-8`,children:[(0,G.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,G.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`12`}),(0,G.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12.01`,y2:`16`})]})}),(0,G.jsx)(`h2`,{className:`text-2xl sm:text-3xl font-bold mb-3 text-foreground`,children:`Page Not Found`}),(0,G.jsx)(`p`,{className:`text-foreground/60 max-w-md`,children:`The route you are looking for does not exist or has been removed.`}),o.A(s)&&(()=>{let t=Ra();return(0,G.jsxs)(`div`,{className:`mt-8 w-full max-w-lg text-left flex flex-col gap-4`,children:[(0,G.jsxs)(`div`,{className:`rounded-2xl border border-[var(--panel-border)] bg-[var(--panel-bg)] px-5 py-4`,children:[(0,G.jsx)(`p`,{className:`text-[12px] font-extrabold tracking-tight text-gradient mb-1.5`,children:`Pages the app can see`}),(0,G.jsx)(`p`,{className:`text-[13px] text-foreground/70 font-medium leading-relaxed`,children:t.length?t.join(` · `):`None yet. If your assistant says it created a page, the app has not picked its file up.`})]}),(0,G.jsx)(n.o,{title:`If your assistant just made this page, paste this`,prompt:Ua(e.pathname)})]})})()]})});if((x.pageId===`support`||x.isPrivate)&&!a)return J&&(!M||P.live)&&Y.products.length?pe():(0,G.jsx)(q.Navigate,{to:`/login?from=${encodeURIComponent(e.pathname)}`,replace:!0});let me=(x.pageId===`support`||x.isPrivate)&&a?Xc({user:a,profile:h,userRole:s,roleResolved:u,profileReady:g,methods:v}):null;if(me===`wait`||me&&J&&Y.loading)return le?pe():(0,G.jsx)(`div`,{className:`flex-1 flex items-center justify-center min-h-[40vh] z-10`,children:(0,G.jsx)(_.n,{className:`w-6 h-6 animate-spin text-accent`})});if((x.pageId===`support`||x.isPrivate)&&a&&p)return h?.removed===!0?(0,G.jsx)(q.Navigate,{to:Zc,replace:!0}):(0,G.jsx)(V.t,{tone:`red`,title:`Access Denied`,message:`You don't have access to this app. Please contact the administrator.`,action:(0,G.jsx)(`button`,{onClick:()=>m(),className:V.a,children:`Sign Out`})});let he=J&&(!M||P.live)&&n.hn(h)&&!ce&&Y.products.length>0;if(me&&!he)return(0,G.jsx)(q.Navigate,{to:me,replace:!0});let ge=o.A(s)&&new URLSearchParams(e.search).has(`preview`);if(x.isPrivate&&!ge&&M&&!o.A(s)&&!P.live)return P.stalled?(0,G.jsx)(al,{}):(0,G.jsx)(`div`,{className:`flex-1 flex items-center justify-center min-h-[40vh] z-10`,children:(0,G.jsx)(_.n,{className:`w-6 h-6 animate-spin text-accent`})});if(x.isPrivate&&!ge&&!o.w(s,x,P.groups)){if(ce)return(0,G.jsx)(`div`,{className:`flex-1 flex items-center justify-center min-h-[40vh] z-10`,children:(0,G.jsx)(_.n,{className:`w-6 h-6 animate-spin text-accent`})});if(J&&n.hn(h)){if(Y.loading)return(0,G.jsx)(`div`,{className:`flex-1 flex items-center justify-center min-h-[40vh] z-10`,children:(0,G.jsx)(_.n,{className:`w-6 h-6 animate-spin text-accent`})});if(Y.products.length)return pe()}return(0,G.jsx)(V.i,{})}X.current=``;let _e=x.isPrivate?M&&!P.live?il(M):o.D(x,P.groups):null,Q=y.customRoutes?.[e.pathname]||(x&&x.route?y.customRoutes?.[x.route]:null),ve=`pub_${ie.i(x,!1)}`,ye=x.isPrivate?`${o.R(x)}${ie.i(x,!0)}`:ve,be=y.microcomponents||(typeof window<`u`?window.__FBOS_MICROCOMPONENTS__:void 0),xe=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,`_`).replace(/^_|_$/g,``),$=[x.contentKey,x.tabName,x.pageId,x.pageName,x.pageName?.replace(/\s+/g,`_`)].filter(Boolean).map(e=>xe(e)).reduce((e,t)=>e||be?.[t],void 0),Se=Q||$||B||(ie.c(x.template,!1)&&E.t(x)?ol:void 0),Ce=x.route||x.pageId||`custom`,we=e=>x.isPrivate?(0,G.jsx)(te.t,{group:_e,children:e}):e;return ie.c(x.template,!!Se)?x.isAdmin?we((0,G.jsx)(Io,{config:x,customContent:Se},Ce)):x.isInternal?we((0,G.jsx)(Ro,{config:x,customContent:Se},Ce)):x.isPrivate?we((0,G.jsx)(Po,{config:x,customContent:Se},Ce)):we((0,G.jsx)(po,{config:x,customContent:Se},Ce)):x.template===`board`?we((0,G.jsx)(y.components?.TemplateBoard||ts,{title:x.tabTitle||x.tabName||x.title||x.pageName||`Board`,subtitle:x.route,tasksCollection:`${ye}_tasks`,categoriesCollection:`${ye}_categories`,config:x,customContent:Se},Ce)):x.template===`table`?we((0,G.jsx)(y.components?.TemplateTable||jc,{title:x.tabTitle||x.tabName||x.title||x.pageName||`Table`,subtitle:x.route,tableCollection:`${ye}_table`,config:x,customContent:Se},Ce)):x.template===`calendar`?we((0,G.jsx)(y.components?.TemplateCalendar||Ic,{title:x.tabTitle||x.tabName||x.title||x.pageName||`Calendar`,subtitle:x.route,eventsCollection:`${ye}_events`,defaultTimeFormat:x.defaultTimeFormat||x.defaulttimeformat||`12h`,config:x,customContent:Se},Ce)):x.template===`drive`?we((0,G.jsx)(y.components?.TemplateDrive||c.t,{title:x.tabTitle||x.tabName||x.title||x.pageName||`Drive`,subtitle:x.route,filesCollection:`${ye}_files`,config:x,customContent:Se},Ce)):x.template===`inline_form`?we((0,G.jsx)(`div`,{className:`flex-1 flex flex-col items-center justify-start mt-8 relative z-10 w-full min-h-[60vh]`,children:(0,G.jsx)(d.t,{isInline:!0,formId:x.form,formConfig:x.formConfigOverride})})):we((0,G.jsx)(`div`,{className:`flex-1 flex flex-col items-center justify-center relative z-10 w-full min-h-[60vh]`,children:(0,G.jsx)(d.t,{formId:x.form,formConfig:x.formConfigOverride,onClose:()=>window.history.back()})}))}var cl=e=>e.error?`error`:e.paid?`paid`:n.an(e)?`clearing`:`unpaid`,ll={checking:{icon:qe,tint:`text-accent`,title:`Checking your payment…`},paid:{icon:Ve,tint:`text-accent`,title:`Thank you — your order is placed`},clearing:{icon:qe,tint:`text-accent`,title:`Your payment is on its way`},unpaid:{icon:qe,tint:`text-foreground/50`,title:`Not confirmed yet`},error:{icon:ze,tint:`text-foreground/50`,title:`We could not confirm this payment`},cancelled:{icon:Ge,tint:`text-foreground/50`,title:`Payment cancelled`}};function ul({cancelled:e=!1}){let[t]=(0,q.useSearchParams)(),i=t.get(`session_id`)||``,{user:a}=n.Q(),[o,s]=(0,W.useState)(`checking`),[c,l]=(0,W.useState)(null);(0,W.useEffect)(()=>{if(e)return;let t=!1;return n.Qt(i).then(e=>{t||(l(e),s(cl(e)))}),()=>{t=!0}},[e,i]);let u=async()=>{s(`checking`);let e=await n.Qt(i);l(e),s(cl(e))},d=ll[e?`cancelled`:o],f=d.icon,p=c?.mode===`subscription`,m=String(c?.metadata?.plan||``).trim(),h=!e&&o===`paid`&&p?m?`You are subscribed to ${m}`:`You are subscribed`:d.title;return(0,G.jsx)(`div`,{className:`flex-1 flex items-center justify-center w-full z-10 px-4 mb-16`,children:(0,G.jsxs)(r.k.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.5},className:`w-full max-w-[480px] p-6 md:p-8 lg:p-10 rounded-3xl glass-panel relative glow-hover text-center shadow-[0_8px_32px_rgba(0,0,0,0.08)]`,children:[(0,G.jsx)(`div`,{className:`absolute -inset-[1px] bg-gradient-to-br from-[var(--primary-glow)] to-transparent opacity-30 blur-[20px] rounded-3xl -z-10`}),(0,G.jsx)(`div`,{className:`w-14 h-14 md:w-16 md:h-16 rounded-2xl glass-panel border border-[var(--panel-border)] flex items-center justify-center mx-auto mb-5 md:mb-6 shadow-xl`,children:(0,G.jsx)(f,{className:`w-7 h-7 md:w-8 md:h-8 ${d.tint} ${!e&&o===`checking`?`animate-pulse`:``}`})}),(0,G.jsx)(`h1`,{className:`text-2xl md:text-3xl font-bold mb-3 text-foreground tracking-tight`,children:h}),(0,G.jsxs)(`div`,{className:`text-[14px] md:text-[15px] text-foreground/60 mb-6 md:mb-8 leading-[1.6] tracking-wide`,children:[e&&(0,G.jsx)(`p`,{children:`Nothing was charged. You can try again whenever you like.`}),!e&&o===`checking`&&(0,G.jsx)(`p`,{children:`One moment — confirming with the payment provider.`}),!e&&o===`paid`&&(0,G.jsxs)(`p`,{children:[c?.amountTotal!=null&&c?.currency?`Your ${p?`first `:``}payment of ${n.xr(c.amountTotal,c.currency)} went through.`:`Your ${p?`first `:``}payment went through.`,c?.receipt&&c.customerEmail?` A receipt is on its way to ${c.customerEmail}.`:``,a?p?` Your plan is under Billing, where you can change or cancel it.`:` Your order is under Billing, and the bell will tell you if anything changes.`:c?.customerEmail?` Sign in with ${c.customerEmail} any time to see your ${p?`plan`:`order`} under Billing.`:``]}),!e&&o===`clearing`&&(0,G.jsxs)(`p`,{children:[`Your bank is still sending it, which can take a few days. Your order is in: there is nothing more to do, and please do not pay again.`,c?.receiptLater&&c.customerEmail?` We will email a receipt to ${c.customerEmail} once it arrives.`:``]}),!e&&o===`unpaid`&&(0,G.jsx)(`p`,{children:`The payment provider has not confirmed this payment yet. Some payment methods take a minute — check again shortly.`}),!e&&o===`error`&&(0,G.jsxs)(`p`,{children:[c?.error,` If you finished paying, your order is safe — please do not pay again.`]})]}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-3 max-w-[360px] mx-auto`,children:[!e&&o===`paid`&&a&&(0,G.jsx)(q.Link,{to:`/billing`,className:`w-full block py-2.5 md:py-3 btn-primary text-[14px] font-bold rounded-xl transition-colors text-center`,children:p?`Open your plan`:`See your order`}),!e&&(o===`unpaid`||o===`error`)&&(0,G.jsx)(O.t,{variant:`primary`,onClick:u,className:`w-full py-2.5 md:py-3 text-[14px] font-bold tracking-wide rounded-xl`,children:`Check again`}),(0,G.jsx)(q.Link,{to:`/`,className:`w-full block py-2.5 md:py-3 bg-foreground/5 hover:bg-foreground/10 text-foreground text-[14px] font-bold rounded-xl transition-colors`,children:`Back to the site`})]})]})})}var dl={contentKey:`dashboard`};function fl(){let{user:e,profile:t}=n.Q(),a=r.wt();r.st();let o=(0,q.useNavigate)(),[s]=(0,q.useSearchParams)(),[c]=(0,W.useState)(()=>s.get(N.n)===`1`);(0,W.useEffect)(()=>{if(!c)return;let e=new URLSearchParams(s);e.delete(N.n);let t=e.toString();o(`/dashboard${t?`?${t}`:``}`,{replace:!0})},[c]);let l=c&&N.h(t),[u,d]=(0,W.useState)(null),[f,p]=(0,W.useState)(()=>typeof window<`u`&&!E.r(dl));(0,W.useEffect)(()=>{if(E.r(dl))return;let e=!1;E.n(dl).then(t=>{e||(t&&d(()=>t),p(!1))});let t=setTimeout(()=>{e||p(!1)},4e3);return()=>{e=!0,clearTimeout(t)}},[]);let m=a.microcomponents?.dashboard||(typeof window<`u`?window.__FBOS_MICROCOMPONENTS__?.dashboard:void 0)||u||void 0,h=(String(t?.displayName||``).trim()||e?.displayName||e?.email?.split(`@`)[0]||`there`).split(` `)[0],g=h.charAt(0).toUpperCase()+h.slice(1),v=`${l?`Welcome`:`Welcome back`}, ${g}.`;return(0,G.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,G.jsxs)(r.k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-8`,children:[(0,G.jsx)(n.t,{children:v}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,G.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),`/dashboard`]})]}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-4 flex-1 min-h-[500px]`,children:[(0,G.jsx)(`div`,{className:`flex justify-start`,children:(0,G.jsx)(i.t,{})}),m?(0,G.jsx)(`div`,{className:`fbos-content-slot fbos-tab-fill relative w-full flex-1`,children:(0,G.jsx)(E.p,{size:`part`,children:(0,G.jsx)(m,{})})}):(0,G.jsxs)(`div`,{className:`w-full flex-1 glass-panel rounded-3xl relative overflow-hidden border border-[var(--panel-border)] shadow-2xl bg-[var(--panel-bg)] p-8 md:p-12 flex items-center justify-center`,children:[(0,G.jsx)(`div`,{className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-64 h-64 bg-accent/10 blur-[100px] rounded-full pointer-events-none`}),f?(0,G.jsx)(_.n,{className:`w-6 h-6 text-accent animate-spin relative z-10`}):(0,G.jsx)(r.A,{mode:`wait`,children:(0,G.jsxs)(r.k.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.3},className:`text-center z-10`,children:[(0,G.jsx)(`div`,{className:`w-16 h-16 rounded-3xl bg-accent/10 border border-accent/20 flex items-center justify-center text-accent mx-auto mb-6 shadow-inner`,children:(0,G.jsx)(Ye,{className:`w-6 h-6`})}),(0,G.jsx)(`h2`,{className:`text-2xl font-bold text-foreground mb-2`,children:`No data added here yet`}),(0,G.jsx)(`p`,{className:`text-foreground/40 font-medium`,children:`Keep moving forward, your data will appear here.`})]})})]})]})]})}var pl=8e3,ml=2e4;function hl(e){let[t,n]=(0,W.useState)(()=>e<=0);return(0,W.useEffect)(()=>{if(e<=0)return;let t=setTimeout(()=>n(!0),e);return()=>clearTimeout(t)},[e]),t}function gl(){return{slow:hl(pl),stuck:hl(ml)}}var _l=e=>e&&/^\/(?![/\\])/.test(e)?e:null,vl=`Still trying to connect`,yl=`The app has not heard back. This is almost always the connection rather than anything you did — reloading usually picks it up.`,bl=`No connection`,xl=`This device is not online, so the app cannot finish opening. It will carry on by itself the moment you are back.`,Sl=()=>{let{slow:e,stuck:t}=gl(),n=r.lt();return t||e&&n?(0,G.jsx)(a.n,{override:{title:n?bl:vl,message:n?xl:yl,next:`reload`}}):(0,G.jsxs)(`div`,{className:`flex-1 flex flex-col items-center justify-center min-h-[60vh] z-10 fbos-fade-in`,children:[(0,G.jsx)(`div`,{className:`w-12 h-12 rounded-xl glass-panel border border-[var(--panel-border)] flex items-center justify-center mb-6 shadow-xl`,children:(0,G.jsx)(Ye,{className:`w-6 h-6 text-accent animate-pulse`})}),(0,G.jsxs)(`div`,{className:`flex items-center gap-3 glass-panel px-5 py-2.5 rounded-full border border-[var(--panel-border)]`,children:[(0,G.jsx)(`div`,{className:`w-4 h-4 border-2 border-accent border-t-transparent rounded-full animate-spin`}),(0,G.jsx)(`span`,{className:`text-[13px] font-bold tracking-widest uppercase text-foreground/70`,children:`Connecting`})]}),e&&(0,G.jsxs)(`div`,{className:`mt-6 max-w-xs w-full px-4 text-center fbos-fade-in`,children:[(0,G.jsx)(`p`,{className:`text-[13px] font-semibold text-foreground/60 leading-relaxed mb-3`,children:`This is taking longer than it should.`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>{typeof window<`u`&&window.location.reload()},className:`w-full flex items-center justify-center gap-2 py-2.5 bg-foreground/5 hover:bg-foreground/10 text-foreground text-[14px] font-bold rounded-xl transition-colors`,children:`Reload the page`})]})]})};function Cl({level:e,children:t}){let{user:r,userRole:i,loading:a,userInactive:s,signOut:c,roleResolved:l,profile:u,profileReady:d}=n.Q(),f=(0,q.useLocation)(),p=n.Bt();if(a||!l)return(0,G.jsx)(Sl,{});if(!r)return(0,G.jsx)(q.Navigate,{to:`/login?from=${encodeURIComponent(f.pathname)}`,replace:!0});if(!d)return(0,G.jsx)(Sl,{});if(s)return u?.removed===!0?(0,G.jsx)(q.Navigate,{to:Zc,replace:!0}):(0,G.jsx)(V.t,{tone:`red`,title:`Access Denied`,message:`You don't have access to this app. Please contact the administrator.`,action:(0,G.jsx)(`button`,{onClick:()=>c(),className:V.a,children:`Sign Out`})});let m=Xc({user:r,profile:u,userRole:i,roleResolved:l,profileReady:d,methods:p});return m===`wait`?(0,G.jsx)(Sl,{}):m?(0,G.jsx)(q.Navigate,{to:m}):e===`admin`&&!o.A(i)?(0,G.jsx)(V.n,{}):e===`internal`&&!o.O(i)?(0,G.jsx)(V.r,{}):(0,G.jsx)(G.Fragment,{children:t})}var wl=({children:e})=>(0,G.jsx)(Cl,{level:`signed-in`,children:e}),Tl=({children:e})=>(0,G.jsx)(Cl,{level:`admin`,children:e});function El({tab:e,children:t}){let{userRole:r}=n.Q(),{audience:a,live:s}=i.o(e),c=ne.i(r,a);return!c&&!s&&!o.A(r)?(0,G.jsx)(Sl,{}):(0,G.jsx)(Cl,{level:c?`signed-in`:`admin`,children:t})}function Dl({children:e,landing:t}){let{user:r,loading:i,roleResolved:a,profileReady:s,profile:c,userRole:l}=n.Q(),u=n.Bt(),[d]=(0,q.useSearchParams)(),[f]=(0,W.useState)(()=>n.rt()),[p,m]=(0,W.useState)(!1);if(!i&&!r&&!p&&m(!0),i)return f?(0,G.jsx)(G.Fragment,{children:e}):(0,G.jsx)(Sl,{});if(d.has(`preview`)||r&&s&&c?.removed===!0)return(0,G.jsx)(G.Fragment,{children:e});if(r&&o.h(r)){let n=Xc({user:r,profile:c,userRole:l,roleResolved:a,profileReady:s,methods:u});return n===`wait`||u.loading?p?(0,G.jsx)(G.Fragment,{children:e}):(0,G.jsx)(Sl,{}):(0,G.jsx)(q.Navigate,{to:n??_l(d.get(`from`))??t??`/dashboard`,replace:!0})}return(0,G.jsx)(G.Fragment,{children:e})}function Ol({children:e}){let{user:t,loading:r,roleResolved:i,profile:a,profileReady:s}=n.Q();if(r||!i)return(0,G.jsx)(Sl,{});if(!t)return(0,G.jsx)(q.Navigate,{to:`/`});if(o.h(t)){if(!s)return(0,G.jsx)(Sl,{});if(!o.g(t,a))return(0,G.jsx)(q.Navigate,{to:`/dashboard`})}return(0,G.jsx)(G.Fragment,{children:e})}function kl({children:e}){let{user:t,loading:r,roleResolved:i}=n.Q(),a=n.Bt();return r||!i?(0,G.jsx)(Sl,{}):t?o.h(t)?a.loading?(0,G.jsx)(Sl,{}):!a.on.sms2fa||!Wn(t)?(0,G.jsx)(q.Navigate,{to:`/dashboard`}):(0,G.jsx)(G.Fragment,{children:e}):(0,G.jsx)(q.Navigate,{to:`/verify`}):(0,G.jsx)(q.Navigate,{to:`/`})}function Al({children:e}){let{user:t,userRole:r,loading:i,roleResolved:a,roleConfirmed:s,profile:c,profileReady:l}=n.Q(),u=n.Bt();return i||!a?(0,G.jsx)(Sl,{}):t?o.h(t)?!s||!l||u.loading?(0,G.jsx)(Sl,{}):N.v(c,r,u.finishRegistration)?(0,G.jsx)(G.Fragment,{children:e}):(0,G.jsx)(q.Navigate,{to:`/dashboard`}):(0,G.jsx)(q.Navigate,{to:`/verify`}):(0,G.jsx)(q.Navigate,{to:`/`})}function jl({road:e}){let{error:t}=I.c(e.collection,{formId:e.formId,paid:e.paid,roles:e.roles,page:e.page});return(0,W.useEffect)(()=>{t&&a.d(r.ft(t,`none`))},[t]),null}function Ml(){return(0,G.jsx)(G.Fragment,{children:g.i().map(e=>(0,G.jsx)(jl,{road:e},`${e.collection}|${e.formId}`))})}function Nl(){let{pathname:e,hash:t}=(0,q.useLocation)(),n=(0,q.useNavigationType)();return(0,W.useLayoutEffect)(()=>{if(!(n===`POP`||t))try{window.scrollTo({top:0,left:0,behavior:`instant`})}catch{}},[e,t,n]),null}Nl.displayName=`ScrollToTop`;var Pl=()=>Promise.resolve().then(()=>require(`./Users-59fJdROR.cjs`)).then(e=>({default:e.UsersTab})),Fl=()=>Promise.resolve().then(()=>require(`./SignInAdmin-kki-wXWs.cjs`)).then(e=>({default:e.SignInAdmin})),Il=()=>Promise.resolve().then(()=>require(`./Inbox-C1AXX_2V.cjs`)).then(e=>({default:e.Inbox})),Ll=()=>Promise.resolve().then(()=>require(`./Assets-B1FnTxqI.cjs`)).then(e=>({default:e.Assets})),Rl=()=>Promise.resolve().then(()=>require(`./ThemeAdmin-DC2O-s0n.cjs`)).then(e=>({default:e.ThemeAdmin})),zl=()=>Promise.resolve().then(()=>require(`./PagesAdmin-C7Fg3VeH.cjs`)).then(e=>({default:e.PagesAdmin})),Bl=()=>Promise.resolve().then(()=>require(`./FormsAdmin-D2CBoiJA.cjs`)).then(e=>({default:e.FormsAdmin})),Vl=()=>Promise.resolve().then(()=>require(`./PaymentsAdmin-D23wudSo.cjs`)).then(e=>({default:e.PaymentsAdmin})),Hl=()=>Promise.resolve().then(()=>require(`./TransactionsAdmin-BBI8c9x4.cjs`)).then(e=>({default:e.TransactionsAdmin})),Ul=()=>Promise.resolve().then(()=>require(`./EmailAdmin-NGGPiMN_.cjs`)).then(e=>({default:e.EmailAdmin})),Wl=()=>Promise.resolve().then(()=>require(`./SetupPayments-DXaFcOo3.cjs`)).then(e=>({default:e.SetupPayments})),Gl=()=>Promise.resolve().then(()=>require(`./PublishApp-BcVnci2y.cjs`)).then(e=>({default:e.PublishApp})),Kl=()=>Promise.resolve().then(()=>require(`./Billing-ByNlippy.cjs`)).then(e=>({default:e.Billing})),ql=r._t(Pl),Jl=r._t(Fl),Yl=r._t(Il),Xl=r._t(Ll),Zl=r._t(Rl),Ql=r._t(zl),$l=r._t(Bl),eu=r._t(Vl),tu=r._t(Hl),nu=r._t(Ul),ru=r._t(Wl),iu=r._t(Gl),au=r._t(Kl),ou=[Kl],su=[Pl,Il,Hl],cu=[zl,...[],Rl,Fl,Ll,Vl,Ul,Gl,Wl];function lu(){let{user:e,isAdmin:t,isInternal:r}=n.Q();return(0,W.useEffect)(()=>{if(!e)return;let n=[...ou,...t||r?su:[],...t?cu:[]],i=!1,a,o=e=>typeof window.requestIdleCallback==`function`?window.requestIdleCallback(e,{timeout:4e3}):window.setTimeout(e,1500),s=e=>typeof window.cancelIdleCallback==`function`?window.cancelIdleCallback(e):window.clearTimeout(e),c=()=>{let e=n.shift();!e||i||(a=o(()=>{e().catch(()=>{}).finally(c)}))};return c(),()=>{i=!0,a!==void 0&&s(a)}},[e,t,r]),null}function uu(){return(0,G.jsxs)(`div`,{className:`fixed top-0 left-0 w-full h-full pointer-events-none -z-0 overflow-hidden`,children:[(0,G.jsx)(`div`,{className:`fbos-orb-1 absolute -top-[30%] md:-top-[400px] -right-[10%] md:-right-[200px] w-[500px] md:w-[800px] h-[500px] md:h-[800px] rounded-full bg-decorator-1 blur-[80px] md:blur-[120px]`}),(0,G.jsx)(`div`,{className:`fbos-orb-2 absolute -bottom-[20%] md:-bottom-[300px] -left-[10%] md:-left-[100px] w-[400px] md:w-[600px] h-[400px] md:h-[600px] rounded-full bg-decorator-2 blur-[60px] md:blur-[100px]`})]})}var du={pageId:`home`};function fu({Page:e}){return tn(),r.st(),(0,G.jsx)(`div`,{className:`fbos-home-slot contents`,children:(0,G.jsx)(E.p,{size:`part`,children:(0,G.jsx)(ee.t,{config:du,children:e===Cn?(0,G.jsx)(e,{}):(0,G.jsx)(Kt,{which:`home`,fallback:(0,G.jsx)(Cn,{}),onlyMissing:!0,neverPutAside:!Gt(e),children:(0,G.jsx)(e,{})})})})})}function pu(){let{isAdmin:e}=n.Q();return(0,G.jsx)(Xt,{isAdmin:!!e})}function mu(){let e=r.wt().components?.Home||Cn,t=(0,q.useNavigate)(),i=(0,q.useLocation)();return(0,G.jsx)(n.X,{onSignedOut:()=>t(`/`,{replace:!0}),onRemoved:()=>t(Zc,{replace:!0}),children:(0,G.jsxs)(`div`,{className:`min-h-screen relative flex flex-col overflow-x-clip`,children:[(0,G.jsxs)(Qt,{children:[(0,G.jsx)(E.p,{size:`part`,children:(0,G.jsx)(xn,{})}),(0,G.jsx)(Nl,{}),(0,G.jsx)(Ai,{}),(0,G.jsx)(Ri,{}),(0,G.jsxs)(E.p,{resetKey:i.pathname,children:[(0,G.jsx)(lu,{}),(0,G.jsx)(W.Suspense,{fallback:(0,G.jsx)(Sl,{}),children:(0,G.jsxs)(q.Routes,{children:[(0,G.jsx)(q.Route,{path:`/`,element:(0,G.jsx)(Dl,{children:(0,G.jsx)(fu,{Page:e})})}),(0,G.jsx)(q.Route,{path:`/register`,element:(0,G.jsx)(Dl,{landing:`/dashboard?${N.n}=1`,children:(0,G.jsx)(kr,{})})}),(0,G.jsx)(q.Route,{path:`/login`,element:(0,G.jsx)(Dl,{children:(0,G.jsx)(Ar,{})})}),(0,G.jsx)(q.Route,{path:`/reset-password`,element:(0,G.jsx)(Dl,{children:(0,G.jsx)(Oi,{})})}),(0,G.jsx)(q.Route,{path:`/verify`,element:(0,G.jsx)(Ol,{children:(0,G.jsx)(Yr,{})})}),(0,G.jsx)(q.Route,{path:`/confirm-email`,element:(0,G.jsx)(Qr,{})}),(0,G.jsx)(q.Route,{path:`/two-step`,element:(0,G.jsx)(kl,{children:(0,G.jsx)(ci,{})})}),(0,G.jsx)(q.Route,{path:`/your-details`,element:(0,G.jsx)(Al,{children:(0,G.jsx)(hi,{})})}),(0,G.jsx)(q.Route,{path:`/book/:id`,element:(0,G.jsx)(q.Navigate,{to:`/`,replace:!0})}),(0,G.jsx)(q.Route,{path:`/book`,element:(0,G.jsx)(q.Navigate,{to:`/`,replace:!0})}),(0,G.jsx)(q.Route,{path:`/booking`,element:(0,G.jsx)(q.Navigate,{to:`/`,replace:!0})}),(0,G.jsx)(q.Route,{path:`/pay/:id`,element:(0,G.jsx)(Ia,{})}),(0,G.jsx)(q.Route,{path:`/payment-complete`,element:(0,G.jsx)(ul,{})}),(0,G.jsx)(q.Route,{path:`/payment-cancelled`,element:(0,G.jsx)(ul,{cancelled:!0})}),(0,G.jsx)(q.Route,{path:`/guide`,element:(0,G.jsx)(q.Navigate,{to:`/`,replace:!0})}),(0,G.jsx)(q.Route,{path:`/templates`,element:(0,G.jsx)(q.Navigate,{to:`/`,replace:!0})}),(0,G.jsx)(q.Route,{path:`/users`,element:(0,G.jsx)(El,{tab:`users`,children:(0,G.jsx)(ql,{})})}),(0,G.jsx)(q.Route,{path:`/users/:id`,element:(0,G.jsx)(El,{tab:`users`,children:(0,G.jsx)(ql,{})})}),(0,G.jsx)(q.Route,{path:`/sign-in`,element:(0,G.jsx)(Tl,{children:(0,G.jsx)(Jl,{})})}),(0,G.jsx)(q.Route,{path:`/inbox`,element:(0,G.jsx)(El,{tab:`inbox`,children:(0,G.jsx)(Yl,{})})}),(0,G.jsx)(q.Route,{path:`/payments`,element:(0,G.jsx)(Tl,{children:(0,G.jsx)(eu,{})})}),(0,G.jsx)(q.Route,{path:`/transactions`,element:(0,G.jsx)(El,{tab:`transactions`,children:(0,G.jsx)(tu,{})})}),(0,G.jsx)(q.Route,{path:`/schedule`,element:(0,G.jsx)(q.Navigate,{to:`/dashboard`,replace:!0})}),(0,G.jsx)(q.Route,{path:`/my-bookings`,element:(0,G.jsx)(q.Navigate,{to:`/dashboard`,replace:!0})}),(0,G.jsx)(q.Route,{path:`/calendar`,element:(0,G.jsx)(q.Navigate,{to:`/dashboard`,replace:!0})}),(0,G.jsx)(q.Route,{path:`/bookings`,element:(0,G.jsx)(q.Navigate,{to:`/dashboard`,replace:!0})}),(0,G.jsx)(q.Route,{path:`/email`,element:(0,G.jsx)(Tl,{children:(0,G.jsx)(nu,{})})}),(0,G.jsx)(q.Route,{path:`/submissions`,element:(0,G.jsx)(q.Navigate,{to:`/inbox`,replace:!0})}),(0,G.jsx)(q.Route,{path:`/requests`,element:(0,G.jsx)(q.Navigate,{to:`/inbox`,replace:!0})}),(0,G.jsx)(q.Route,{path:`/assets`,element:(0,G.jsx)(Tl,{children:(0,G.jsx)(Xl,{})})}),(0,G.jsx)(q.Route,{path:`/drive`,element:(0,G.jsx)(q.Navigate,{to:`/assets`,replace:!0})}),(0,G.jsx)(q.Route,{path:`/drive/:rest`,element:(0,G.jsx)(q.Navigate,{to:`/assets`,replace:!0})}),(0,G.jsx)(q.Route,{path:`/theme`,element:(0,G.jsx)(Tl,{children:(0,G.jsx)(Zl,{})})}),(0,G.jsx)(q.Route,{path:`/pages/*`,element:(0,G.jsx)(Tl,{children:(0,G.jsx)(Ql,{})})}),(0,G.jsx)(q.Route,{path:`/forms/*`,element:(0,G.jsx)(Tl,{children:(0,G.jsx)($l,{})})}),(0,G.jsx)(q.Route,{path:`/settings`,element:(0,G.jsx)(q.Navigate,{to:`/pages`,replace:!0})}),(0,G.jsx)(q.Route,{path:`/profile`,element:(0,G.jsx)(wl,{children:(0,G.jsx)(Di,{})})}),(0,G.jsx)(q.Route,{path:`/billing`,element:(0,G.jsx)(wl,{children:(0,G.jsx)(au,{})})}),(0,G.jsx)(q.Route,{path:`/dashboard`,element:(0,G.jsx)(wl,{children:(0,G.jsx)(fl,{})})}),(0,G.jsx)(q.Route,{path:`/publish`,element:(0,G.jsx)(Tl,{children:(0,G.jsx)(iu,{})})}),(0,G.jsx)(q.Route,{path:`/setup`,element:(0,G.jsx)(H.r,{})}),(0,G.jsx)(q.Route,{path:`/setup/payments`,element:(0,G.jsx)(ru,{})}),(0,G.jsx)(q.Route,{path:`*`,element:(0,G.jsx)(sl,{})})]})})]})]}),(0,G.jsx)(uu,{}),(0,G.jsx)(Ne,{}),(0,G.jsx)(pu,{}),(0,G.jsx)(Ml,{}),(0,G.jsx)(C.t,{})]})})}function hu(){return(0,G.jsxs)(E.p,{children:[(0,G.jsx)(q.BrowserRouter,{children:(0,G.jsx)(gu,{})}),(0,G.jsx)(a.r,{})]})}function gu(){let e=r.wt();return e.firebaseConfig&&e.firebaseConfig.apiKey&&e.firebaseConfig.apiKey.trim()!==``&&e.firebaseConfig.projectId&&e.firebaseConfig.projectId.trim()!==``||H.i()?(0,G.jsx)(mu,{}):(0,G.jsxs)(`div`,{className:`min-h-screen relative flex flex-col overflow-x-clip`,children:[(0,G.jsx)(xn,{standalone:!0}),(0,G.jsx)(H.r,{standalone:!0}),(0,G.jsx)(uu,{})]})}function _u(e){return(0,G.jsx)(`div`,{className:`firebase-os flex-1 flex flex-col min-h-screen`,style:{background:`var(--bg-gradient)`,color:`var(--fg-color)`},children:(0,G.jsx)(E.p,{children:(0,G.jsx)(vu,{...e})})})}function vu(e){Oe();let t=e.firebaseConfig;return t&&t.apiKey&&t.apiKey.trim()!==``&&t.projectId&&t.projectId.trim()!==``&&r.xt(t),E.a(e.pageFiles),(0,G.jsx)(r.Ct,{config:{firebaseConfig:e.firebaseConfig,basename:e.basename,onAuthChange:e.onAuthChange,themeConfig:e.themeConfig,components:e.components,customRoutes:e.customRoutes,microcomponents:e.microcomponents,pageFiles:e.pageFiles,defaultConfigs:e.defaultConfigs},children:(0,G.jsx)(i.I,{children:(0,G.jsx)(hu,{})})})}var yu=[`views`,`added`,`clicks`,`saves`,`shares`,`downloads`],bu=`mem_tallies`,xu=`Needs the rules pasted from /setup at 1.14.66 or later.`,Su=Object.freeze({views:0,added:0,clicks:0,saves:0,shares:0,downloads:0}),Cu=e=>String(e??``).trim().toLowerCase().replace(/[^a-z0-9_-]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,40),wu=e=>String(e??``).trim().replace(/\//g,`_`).slice(0,120),Tu=(e,t)=>{let n=Cu(e),r=wu(t);return n&&r?`${n}_${r}`:null};function Eu(e){let t={...Su};for(let n of yu){let r=Math.floor(Number(e?.[n]));Number.isFinite(r)&&r>0&&(t[n]=r)}return t}var Du=new Set,Ou=e=>{if(Du.has(e))return!0;try{return window.sessionStorage.getItem(e)===`1`}catch{return!1}},ku=e=>{Du.add(e);try{window.sessionStorage.setItem(e,`1`)}catch{}},Au=()=>{let e=r.yt?.currentUser?.uid;if(!e)return!1;try{let t=window.localStorage.getItem(n.Z(e));return t===`admin`||t===`internal`}catch{return!1}},ju=!1;async function Mu(e,t,n=`views`){try{let i=Tu(e,t);if(!i||!yu.includes(n))return console.error(`tally('${e}', '${t}', '${n}'): a tally needs what is counted ('products'), the record's id, and one of ${yu.join(`, `)}.`),!1;let a=`fbos.tally.${i}.${n}`;return Ou(a)||Au()?!1:(ku(a),await(0,K.setDoc)((0,K.doc)(r.bt,bu,i),{thing:Cu(e),of:wu(t),[n]:(0,K.increment)(1)},{merge:!0}),!0)}catch(e){return!ju&&e?.code===`permission-denied`&&(ju=!0,console.warn(`tally(): the database refused the count. ${xu}`)),!1}}function Nu(e){let{accessLevel:t}=n.Q(),i=t===`admin`||t===`internal`,a=Cu(e),[o,s]=(0,W.useState)(new Map),[c,l]=(0,W.useState)(!0),[u,d]=(0,W.useState)(null);return(0,W.useEffect)(()=>{if(!i||!a){s(new Map),l(!1);return}return l(!0),d(null),(0,K.onSnapshot)((0,K.query)((0,K.collection)(r.bt,bu),(0,K.where)(`thing`,`==`,a)),e=>{let t=new Map;e.docs.forEach(e=>{let n=e.data()||{};t.set(String(n.of??``),Eu(n))}),s(t),l(!1)},e=>{d(r.mt(e,`The counts could not be read.`)),l(!1)})},[i,a]),(0,W.useMemo)(()=>{let e={...Su};for(let t of o.values())for(let n of yu)e[n]+=t[n];return{loading:c,error:u,of:e=>o.get(wu(e))||Su,total:e}},[o,c,u])}var Pu=e=>{let t=Math.floor(Number(e));return Number.isFinite(t)&&t>0?t:0},Fu=e=>String(e.variantId??e.variant??``).trim();function Iu(e,t,n){let r=n.filter(t=>String(t.id??``)===e&&Pu(t.quantity)>0);if(!r.length)return null;let i=String(t?.name??t?.title??r[0].name??``),a=[],o=Array.isArray(t?.variants)?t.variants.map(e=>({...e})):null,s=typeof t?.stock==`number`?t.stock:null,c=!1,l=!1;for(let t of r){let n=Pu(t.quantity),r=Fu(t),u=o&&r?o.findIndex(e=>String(e?.id??``)===r):-1;if(o&&u>=0&&typeof o[u].stock==`number`){let t=o[u].stock,s=Math.max(0,t-n);o[u].stock=s,c=!0,a.push({id:e,variantId:r,name:i,variantName:String(o[u].name??``),quantity:n,from:t,to:s})}else if(s!==null){let t=s,r=Math.max(0,t-n);s=r,l=!0,a.push({id:e,name:i,quantity:n,from:t,to:r})}}if(!a.length)return null;let u={};return c&&(u.variants=o),l&&(u.stock=s),{fields:u,changes:a}}var Lu=e=>({id:e.id,who:{name:String(e.name||e.submitterName||``),email:String(e.email||e.submitterEmail||``)},at:I.a(e.submittedAt)||Date.now(),items:Ki(e.items)}),Ru=e=>e?.code===`permission-denied`?`The orders could not be read to take their stock. The security rules may need pasting again from the Setup screen.`:`The stock for what was sold could not be updated just now.`;function zu(e,t,n){let{formId:i}=t(),a=!0,o=new Map,s=new Map,c=new Set,l=!1,u=!1,d=async n=>{let i=Lu(n),a=[...new Set(i.items.map(e=>String(e.id??``)).filter(Boolean))],o=[];try{await(0,K.runTransaction)(r.bt,async t=>{o=[];let s=(0,K.doc)(r.bt,n.from,n.id),c=await t.get(s);if(!c.exists()||I.i(c.data()?.stockTakenIn).includes(e))return;let l=[];for(let n of a){let i=await t.get((0,K.doc)(r.bt,e,n));l.push({id:n,data:i.exists()?i.data():null})}for(let{id:n,data:a}of l){let s=a?Iu(n,a,i.items):null;s&&(t.update((0,K.doc)(r.bt,e,n),{...s.fields,editedName:i.who.name||`A customer`,editedAt:i.at}),o.push(...s.changes))}t.update(s,{stockTakenIn:(0,K.arrayUnion)(e)})})}catch(e){return Ru(e)}if(o.length)try{t().onTaken?.(i,o)}catch{}return``},f=async()=>{if(l){u=!0;return}l=!0;try{let e=[...o.values()].flatMap(e=>[...e.values()]).filter(e=>!c.has(e.id));if(!e.length)return;let t=[...s.values()].flat(),r=await I.s(e.map(e=>e.id),t);if(!a)return;let i=r.error;for(let n of e){if(!I.o(n.id,r.sales,n,t))continue;let e=await d(n);if(!a)return;e?i||=e:c.add(n.id)}n(i)}finally{l=!1,u&&a&&(u=!1,f())}},p=I.n.map(t=>(0,K.onSnapshot)((0,K.query)((0,K.collection)(r.bt,t),(0,K.where)(`formId`,`==`,i)),n=>{let r=new Map,a=[];for(let o of n.docs){let n=o.data()||{},s={...n,id:o.id,uid:String(n.uid||`guest`),formId:i,from:t};a.push(s),!I.i(n.stockTakenIn).includes(e)&&r.set(o.id,s)}o.set(t,r),s.set(t,a),f()},e=>{a&&n(Ru(e))})),m=()=>[...o.values()].some(e=>[...e.values()].some(e=>!c.has(e.id)&&Date.now()-(I.a(e.submittedAt)||Date.now())<72e5)),h=setInterval(()=>{m()&&f()},I.t),g=()=>{document.visibilityState===`visible`&&m()&&f()};return document.addEventListener(`visibilitychange`,g),()=>{a=!1,p.forEach(e=>e()),clearInterval(h),document.removeEventListener(`visibilitychange`,g)}}var Bu=/^(?:mem|admin|role_[a-z][a-z0-9]*)_[A-Za-z0-9_]+$/;function Vu(e,t){let{user:r,isAdmin:i,roleConfirmed:a}=n.Q(),o=r?.uid||``,{formId:s}=t,c=(0,W.useRef)(t);(0,W.useEffect)(()=>{c.current=t});let[l,u]=(0,W.useState)(``),d=Bu.test(String(e||``)),f=!!o&&i&&a&&d&&!!s;return(0,W.useEffect)(()=>{d||console.error(`useStockFromOrders('${e}'): stock is kept by the page that keeps the products — a mem_, admin_ or role_<id>_ collection. Never a pub_ one: that is the app's own copy (usePublicCopy), and it follows the record by itself.`)},[d,e]),(0,W.useEffect)(()=>{if(f)return zu(e,()=>c.current,u)},[f,e,s,o]),{error:f?l:``}}var Hu=`flex items-baseline justify-between gap-4 text-[14px]`,Uu=`w-full py-3.5 text-[15px] font-bold tracking-wide`;function Wu({formId:e,items:t,collection:i,extras:a,currency:s,phone:c,address:l,carry:u,productName:d,metadata:f,successPath:p,cancelPath:m,summary:h=!0,payLabel:g=`Pay`,className:_=``}){let{loading:v,configured:y,mode:b}=n.cn(),x=r.st(),S=s||x||`usd`,{userRole:C}=n.Q(),{pathname:w,search:T}=(0,q.useLocation)(),[E,D]=(0,W.useState)(null),[k,A]=(0,W.useState)(!1),[j,ee]=(0,W.useState)(``),M=(0,W.useMemo)(()=>Ki(t),[t]),N=(0,W.useMemo)(()=>qi(a),[a]),P=Yi(M,N);if(v)return null;if(!y)return o.A(C)?(0,G.jsx)(`span`,{className:`text-[12.5px] font-medium text-foreground/50 leading-snug`,children:`Only admins see this: payments are not on yet, so the checkout is hidden. Connect Stripe and switch payments on at /payments and it appears here.`}):null;if(!M.length)return(0,G.jsx)(`p`,{className:`text-[14px] text-foreground/55 ${_}`,children:`There is nothing in your basket yet.`});let F=M.some(e=>!!e.picture),te=`${g} ${n.xr(P,S)}`,I=async t=>{if(k||!t||P<=0)return;let a=t;A(!0),ee(``);let o=await r.ot(!0).catch(()=>null);if(!s&&!x&&r.nt()!==null){ee(r.tt),A(!1);return}let c=o?.mode?o.mode===`test`:b===`test`,h=``;try{h=await ca(e,ea(M,N,S,a,u,{test:c}))}catch(e){ee(r.mt(e,`Your order could not be saved, so no payment was taken. Please try again.`)),A(!1);return}oa(a.guest?a.email:``);let g=await n.in({amount:P,currency:S,productName:d||Zi(M),buyer:await Qi(l?a:{...a,addressParts:null}),lines:M.map(e=>({name:e.name,amount:e.price,quantity:e.quantity,record:e.id?String(e.id):void 0,variant:e.variantId==null?e.variant==null?void 0:String(e.variant):String(e.variantId),options:e.options,collection:e.collection?String(e.collection):i||void 0})),extras:N,metadata:{page:w,...f,...a.metadata,orderEntryId:h,items:Xi(M,S),total:String(P)},successPath:p||w,cancelPath:m||`${w}${T}`});g&&(ee(g),A(!1))};return(0,G.jsxs)(`div`,{className:`flex flex-col gap-8 ${_}`,children:[h&&(0,G.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[M.map((e,t)=>F?(0,G.jsxs)(`div`,{className:`flex items-center gap-3 text-[14px]`,children:[(0,G.jsx)(`div`,{className:`relative w-12 h-12 shrink-0 rounded-xl overflow-hidden bg-foreground/5`,children:e.picture&&(0,G.jsx)(r.t,{src:e.picture,alt:``,fit:`cover`,className:`absolute inset-0`})}),(0,G.jsxs)(`span`,{className:`min-w-0 flex-1 flex flex-col leading-snug`,children:[(0,G.jsx)(`span`,{className:`truncate font-medium text-foreground/85`,children:e.name}),(0,G.jsx)(`span`,{className:`truncate text-[13px] text-foreground/50`,children:[e.options,e.quantity>1?`× ${e.quantity}`:``].filter(Boolean).join(` · `)})]}),(0,G.jsx)(`span`,{className:`shrink-0 tabular-nums text-foreground/80`,children:n.xr(e.price*e.quantity,S)})]},`${e.id||e.name}-${t}`):(0,G.jsxs)(`div`,{className:Hu,children:[(0,G.jsxs)(`span`,{className:`min-w-0 text-foreground/80`,children:[e.quantity,` × `,e.name,e.options&&(0,G.jsxs)(`span`,{className:`text-foreground/50`,children:[` — `,e.options]})]}),(0,G.jsx)(`span`,{className:`shrink-0 tabular-nums text-foreground/80`,children:n.xr(e.price*e.quantity,S)})]},`${e.id||e.name}-${t}`)),N.length>0&&(0,G.jsxs)(`div`,{className:`${Hu} text-foreground/55`,children:[(0,G.jsx)(`span`,{children:`Subtotal`}),(0,G.jsx)(`span`,{className:`tabular-nums`,children:n.xr(Ji(M),S)})]}),N.map(e=>(0,G.jsxs)(`div`,{className:`${Hu} text-foreground/55`,children:[(0,G.jsx)(`span`,{children:e.label}),(0,G.jsx)(`span`,{className:`tabular-nums`,children:n.xr(e.amount,S)})]},e.label)),(0,G.jsxs)(`div`,{className:`${Hu} pt-3 border-t border-[var(--panel-border)] font-semibold text-foreground`,children:[(0,G.jsx)(`span`,{children:`Total`}),(0,G.jsx)(`span`,{className:`tabular-nums`,children:n.xr(P,S)})]})]}),(0,G.jsx)(ya,{phone:c,address:l,wide:!0,continueLabel:te,onReady:(e,t)=>{D(e),t?.pressed&&I(e)},onEditing:()=>D(null)}),E&&(0,G.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,G.jsx)(O.t,{onClick:()=>I(E),isLoading:k,disabled:k||P<=0,className:Uu,children:te}),!j&&(0,G.jsx)(`span`,{className:`text-[12.5px] text-foreground/45 leading-snug text-center`,children:k?`Opening the secure payment page…`:`Secure payment. Your card is entered on the next page.`}),j&&(0,G.jsx)(`span`,{role:`alert`,className:`text-[13px] font-semibold text-foreground/80 leading-snug`,children:j})]}),(0,G.jsx)(Vi,{className:`text-center -mt-5`})]})}var Gu=e=>`${String(e.id||e.name||``).trim()}|${String(e.options||``).trim()}`,Ku=e=>{let t=Math.floor(Number(e.max));return Number.isFinite(t)&&t>0?t:1/0};function qu(e){return Ki(e).map(e=>{let t=Ku(e);return e.quantity>t?{...e,quantity:t}:e})}function Ju(e,t){let[n]=qu([{...t,quantity:t.quantity??1}]);if(!n)return e;let r=Gu(n),i=e.findIndex(e=>Gu(e)===r);if(i<0)return[...e,n];let a={...e[i],...n,quantity:e[i].quantity+n.quantity};return qu(e.map((e,t)=>t===i?a:e))}function Yu(e,t,n){let r=Math.floor(Number(n));return!Number.isFinite(r)||r<1?e.filter(e=>Gu(e)!==t):qu(e.map(e=>Gu(e)===t?{...e,quantity:r}:e))}var Xu=e=>e.variantId==null?e.variant==null?``:String(e.variant):String(e.variantId),Zu=(e,t)=>{if(!t)return!0;let n=(Array.isArray(e.variants)?e.variants:[]).map(e=>e&&typeof e==`object`?e.id:void 0);return!n.length||n.some(e=>e==null||e===``)?!0:n.some(e=>String(e)===t)};function Qu(e,t,n,r){if(!t)return{lines:e,gone:[]};let i=!1,a=[],o=[];for(let s of e){if(String(s.id??``)!==t||s.collection&&String(s.collection)!==r){o.push(s);continue}if(!n||!Zu(n,Xu(s))){i=!0,a.push(String(s.name||``));continue}let e=oe.t(n,Xu(s));if(e==null||e===Number(s.price)){o.push(s);continue}i=!0,o.push({...s,price:e})}return{lines:i?o:e,gone:a}}function $u(e,t,n,r){let i=rd(e),a=[];i.setLines(e=>{let i=Qu(e,t,n,r);return a=i.gone,i.lines}),a.length&&i.setGone(a)}var ed=new Map,td={lines:[],open:!1,gone:[]};function nd(e){try{return qu(JSON.parse(window.localStorage.getItem(d.a(e))||`[]`))}catch{return[]}}function rd(e){let t=ed.get(e);if(t)return t;let n={lines:nd(e),open:!1,gone:[]},r=new Set,i=e=>{n=e,r.forEach(e=>e())},a=t=>{t.detail===e&&i({lines:[],open:!1,gone:[]})},o=t=>{t.key===d.a(e)&&i({...n,lines:nd(e)})},s={get:()=>n,subscribe(e){return r.size||(window.addEventListener(d.r,a),window.addEventListener(`storage`,o)),r.add(e),()=>{r.delete(e),!r.size&&(window.removeEventListener(d.r,a),window.removeEventListener(`storage`,o))}},setLines(t){let r=t(n.lines);if(r!==n.lines){try{r.length?window.localStorage.setItem(d.a(e),JSON.stringify(r)):window.localStorage.removeItem(d.a(e))}catch{}i({...n,lines:r})}},setOpen(e){e!==n.open&&i({...n,open:e,gone:e?n.gone:[]})},setGone(e){let t=[...new Set([...n.gone,...e.filter(Boolean)])];t.length!==n.gone.length&&i({...n,gone:t})},added:null};return ed.set(e,s),s}function id(e,t){let n=rd(e);return n.added=t,()=>{n.added===t&&(n.added=null)}}function ad(e=`basket`){let t=rd(e),n=(0,W.useSyncExternalStore)(t.subscribe,t.get,()=>td);return(0,W.useMemo)(()=>{let r=e=>typeof e==`string`?e:Gu(e);return{name:e,lines:n.lines,count:n.lines.reduce((e,t)=>e+t.quantity,0),subtotal:Ji(n.lines),open:n.open,gone:n.gone,add(e,n){t.setLines(t=>Ju(t,e)),n?.quiet||t.setOpen(!0);try{t.added?.(e)}catch{}},setQuantity:(e,n)=>t.setLines(t=>Yu(t,r(e),n)),remove:e=>t.setLines(t=>Yu(t,r(e),0)),clear:()=>t.setLines(e=>e.length?[]:e),show:()=>t.setOpen(!0),hide:()=>t.setOpen(!1)}},[e,n,t])}var od=`bag`,sd=`flex items-baseline justify-between gap-4 text-[14px]`,cd=`w-10 h-10 inline-flex items-center justify-center rounded-full text-foreground/70 hover:text-foreground hover:bg-foreground/5 transition-colors cursor-pointer disabled:opacity-25 disabled:cursor-default disabled:hover:bg-transparent`,ld=e=>e.length<2?e.join(``):`${e.slice(0,-1).join(`, `)} and ${e[e.length-1]}`;function ud({subtotal:e,extras:t,total:r,currency:i,count:a}){return(0,G.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(t.length>0||a!=null)&&(0,G.jsxs)(`div`,{className:`${sd} text-foreground/55`,children:[(0,G.jsx)(`span`,{children:a==null?`Subtotal`:`${a} ${a===1?`item`:`items`}`}),(0,G.jsx)(`span`,{className:`tabular-nums`,children:n.xr(e,i)})]}),t.map(e=>(0,G.jsxs)(`div`,{className:`${sd} text-foreground/55`,children:[(0,G.jsx)(`span`,{children:e.label}),(0,G.jsx)(`span`,{className:`tabular-nums`,children:n.xr(e.amount,i)})]},e.label)),(0,G.jsxs)(`div`,{className:`${sd} font-semibold text-foreground`,children:[(0,G.jsx)(`span`,{children:t.length?`Total`:`Subtotal`}),(0,G.jsx)(`span`,{className:`tabular-nums text-[16px]`,children:n.xr(r,i)})]})]})}function dd({name:e=`basket`,formId:t,collection:i,extras:a,currency:s,phone:c,address:u,carry:f,productName:p,metadata:m,successPath:h,payLabel:g,send:_,title:v=_?`Your list`:`Your bag`,checkoutTitle:y=_?`Your details`:`Checkout`,checkoutLabel:x=_?`Send my list`:`Checkout`,emptyWords:S=_?`Your list is empty`:`Your bag is empty`,note:w,onOpenLine:T,tally:E,sentWords:k=`Sent — thank you`,onSent:A}){let j=ad(e),ee=r.st(),M=s||ee||`usd`;(0,W.useEffect)(()=>{if(E)return id(e,e=>{e.id&&Mu(E,String(e.id),`added`)})},[e,E]);let N=i?[...new Set(j.lines.filter(e=>e.id&&(!e.collection||e.collection===i)).map(e=>String(e.id)))].sort().join(`
|
|
19
|
+
`):``;(0,W.useEffect)(()=>{if(!i||!N)return;let t=N.split(`
|
|
20
|
+
`).map(t=>{try{return(0,K.onSnapshot)((0,K.doc)(r.bt,i,t),n=>{n.metadata.fromCache||$u(e,t,n.exists()?n.data():null,i)},()=>{})}catch{return()=>{}}});return()=>t.forEach(e=>e())},[e,i,N]);let{loading:P,configured:F}=n.cn(),{userRole:te}=n.Q(),{pathname:I,search:L}=(0,q.useLocation)(),[R,ne]=(0,q.useSearchParams)(),[re,ie]=(0,W.useState)(`bag`),[z,B]=(0,W.useState)(!1),ae=R.get(od);(0,W.useEffect)(()=>{ae&&(j.lines.length&&(ie(ae===`checkout`?`checkout`:`bag`),j.show()),ne(e=>{let t=new URLSearchParams(e);return t.delete(od),t},{replace:!0}))},[ae]),(0,W.useEffect)(()=>{if(j.open)return;let e=window.setTimeout(()=>{ie(`bag`),B(!1)},300);return()=>window.clearTimeout(e)},[j.open]);let V=j.lines,H=V.length?re:`bag`,oe=qi(a),U=Yi(V,oe),se=V.some(e=>!!e.picture),ce=j.gone.length>0?(0,G.jsx)(`p`,{role:`status`,className:`text-[13px] text-foreground/55 leading-snug pb-3 mb-1 border-b border-[var(--panel-border)]`,children:`${ld(j.gone)} ${j.gone.length===1?`is`:`are`} no longer for sale, so ${j.gone.length===1?`it has`:`they have`} been taken out of your ${_?`list`:`bag`}.`}):null,J=!_&&!P&&!F&&!o.A(te),Y=!_||V.some(e=>Number(e.price)>0);(0,W.useEffect)(()=>{V.length&&B(!1)},[V.length]);let X=_?{...f||{},items:Ki(V),...Y?{extras:oe,subtotal:j.subtotal,total:U,currency:M.toLowerCase()}:{}}:void 0,le=(()=>{let e=new URLSearchParams(L);return e.set(od,`checkout`),`${I}?${e.toString()}`})(),Z=T?e=>{j.hide(),T(e)}:null,ue=H===`bag`&&V.length>0?(0,G.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[Y&&(0,G.jsx)(ud,{subtotal:j.subtotal,extras:oe,total:U,currency:M}),w&&(0,G.jsx)(`p`,{className:`text-[13px] text-foreground/50 leading-snug`,children:w}),J?(0,G.jsx)(`p`,{className:`text-[13px] text-foreground/55 leading-snug text-center`,children:`Ordering is not open yet.`}):_?(0,G.jsx)(O.t,{onClick:()=>ie(`checkout`),className:`w-full py-3.5 text-[15px] font-bold tracking-wide`,children:x}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(O.t,{onClick:()=>ie(`checkout`),disabled:U<=0,className:`w-full py-3.5 text-[15px] font-bold tracking-wide`,children:`${x} · ${n.xr(U,M)}`}),(0,G.jsx)(Vi,{className:`text-center -mt-2`})]})]}):void 0;return(0,G.jsxs)(D.t,{open:j.open,onClose:j.hide,side:`right`,title:H===`checkout`?y:v,sub:H===`checkout`?(0,G.jsxs)(`button`,{type:`button`,onClick:()=>ie(`bag`),className:`inline-flex items-center gap-1.5 -ml-1 px-1 py-1 text-[13px] font-semibold text-foreground/55 hover:text-foreground transition-colors cursor-pointer`,children:[(0,G.jsx)(l.t,{className:`w-3.5 h-3.5`}),` `,_?`Back to your list`:`Back to your bag`]}):void 0,footer:ue,children:[!(z&&!V.length)&&ce,z&&!V.length?(0,G.jsxs)(`div`,{role:`status`,className:`flex flex-col items-center text-center gap-3 py-16`,children:[(0,G.jsx)(r.et,{className:`w-9 h-9 text-accent`,strokeWidth:1.75}),(0,G.jsx)(`p`,{className:`text-[15px] font-semibold text-foreground/80`,children:k}),(0,G.jsx)(`p`,{className:`text-[13px] text-foreground/50 leading-snug`,children:`We have your list and will be in touch.`}),(0,G.jsx)(O.t,{variant:`secondary`,onClick:j.hide,className:`mt-3`,children:`Keep looking`})]}):V.length?H===`checkout`&&_?(0,G.jsxs)(`div`,{className:`flex flex-col gap-6 pt-2`,children:[Y?(0,G.jsx)(ud,{subtotal:j.subtotal,extras:oe,total:U,currency:M,count:j.count}):(0,G.jsx)(`p`,{className:`${sd} text-foreground/55`,children:`${j.count} ${j.count===1?`item`:`items`} on your list`}),(0,G.jsx)(d.t,{formId:t,isInline:!0,bare:!0,extra:X,onSubmitted:(e,t)=>{B(!0),j.clear(),A?.(e,t)}})]}):H===`checkout`?(0,G.jsxs)(`div`,{className:`flex flex-col gap-7 pt-2`,children:[(0,G.jsx)(ud,{subtotal:j.subtotal,extras:oe,total:U,currency:M,count:j.count}),(0,G.jsx)(Wu,{formId:t,collection:i,items:V,extras:a,currency:s,phone:c,address:u,carry:f,productName:p,metadata:m,successPath:h,cancelPath:le,payLabel:g,summary:!1})]}):(0,G.jsx)(`ul`,{"aria-label":`In your bag`,className:`flex flex-col`,children:(0,G.jsx)(r.A,{initial:!1,children:V.map(e=>{let t=Gu(e),i=Number(e.max)>0?Math.floor(Number(e.max)):1/0,a=(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{className:`text-[14.5px] font-semibold text-foreground/90 leading-snug line-clamp-2`,children:e.name}),e.options&&(0,G.jsx)(`span`,{className:`text-[13px] text-foreground/50 leading-snug truncate`,children:e.options})]});return(0,G.jsx)(r.k.li,{layout:!0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,height:0},transition:{duration:.2},className:`overflow-hidden border-b border-[var(--panel-border)] last:border-b-0`,children:(0,G.jsxs)(`div`,{className:`flex gap-4 py-4`,children:[se&&(0,G.jsxs)(`div`,{className:`relative w-[72px] h-[72px] shrink-0 rounded-2xl overflow-hidden bg-foreground/5`,children:[e.picture&&(0,G.jsx)(r.t,{src:e.picture,alt:``,fit:`cover`,className:`absolute inset-0`}),Z&&(0,G.jsx)(`button`,{type:`button`,"aria-label":`Open ${e.name}`,onClick:()=>Z(e),className:`absolute inset-0 cursor-pointer`})]}),(0,G.jsxs)(`div`,{className:`min-w-0 flex-1 flex flex-col gap-1`,children:[(0,G.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[Z?(0,G.jsx)(`button`,{type:`button`,onClick:()=>Z(e),className:`min-w-0 flex flex-col gap-0.5 text-left cursor-pointer`,children:a}):(0,G.jsx)(`span`,{className:`min-w-0 flex flex-col gap-0.5`,children:a}),Y&&(0,G.jsxs)(`span`,{className:`shrink-0 flex flex-col items-end leading-snug`,children:[(0,G.jsx)(`span`,{className:`text-[14.5px] tabular-nums text-foreground/85`,children:n.xr(e.price*e.quantity,M)}),e.quantity>1&&(0,G.jsxs)(`span`,{className:`text-[12px] tabular-nums text-foreground/45`,children:[n.xr(e.price,M),` each`]})]})]}),(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3 -ml-2.5 mt-0.5`,children:[(0,G.jsxs)(`div`,{className:`inline-flex items-center`,children:[(0,G.jsx)(`button`,{type:`button`,"aria-label":`One less ${e.name}`,disabled:e.quantity<=1,onClick:()=>j.setQuantity(t,e.quantity-1),className:cd,children:(0,G.jsx)(st,{className:`w-4 h-4`})}),(0,G.jsx)(`span`,{"aria-live":`polite`,"aria-label":`${e.quantity} of ${e.name}`,className:`w-7 text-center text-[14.5px] font-semibold tabular-nums text-foreground/85`,children:e.quantity}),(0,G.jsx)(`button`,{type:`button`,"aria-label":`One more ${e.name}`,disabled:e.quantity>=i,onClick:()=>j.setQuantity(t,e.quantity+1),className:cd,children:(0,G.jsx)(b.t,{className:`w-4 h-4`})})]}),(0,G.jsx)(`button`,{type:`button`,"aria-label":`Remove ${e.name}`,onClick:()=>j.remove(t),className:`px-2 py-2 text-[13px] font-semibold text-foreground/45 hover:text-foreground transition-colors cursor-pointer`,children:`Remove`})]}),e.quantity>=i&&(0,G.jsx)(`span`,{className:`text-[12.5px] text-foreground/50 leading-snug`,children:`That is all there is of it.`})]})]})},t)})})}):(0,G.jsxs)(`div`,{className:`flex flex-col items-center text-center gap-3 py-16`,children:[(0,G.jsx)(C.l,{className:`w-9 h-9 text-foreground/20`,strokeWidth:1.5}),(0,G.jsx)(`p`,{className:`text-[15px] font-semibold text-foreground/80`,children:S}),(0,G.jsx)(`p`,{className:`text-[13px] text-foreground/50 leading-snug`,children:`What you add waits here until you are ready.`}),(0,G.jsx)(O.t,{variant:`secondary`,onClick:j.hide,className:`mt-3`,children:`Keep looking`})]})]})}dd.displayName=`Basket`;var fd=e=>(0,W.isValidElement)(e)&&(e.type===`svg`||/^(?:Shopping|Lucide)?(?:Bag|Basket|Cart)\w*$/.test(String(e.type.displayName||``)));function pd({name:e=`basket`,label:t=`Bag`,className:n,children:i}){let a=ad(e),o=a.count,s=W.Children.toArray(i).filter(e=>!fd(e));return(0,G.jsxs)(`button`,{type:`button`,onClick:a.show,"aria-label":`${t}, ${o} ${o===1?`item`:`items`}`,className:r.E(`relative inline-flex items-center justify-center gap-2 h-11 min-w-11 px-2.5 rounded-full text-foreground/75 hover:text-foreground hover:bg-foreground/5 transition-colors cursor-pointer`,n),children:[(0,G.jsx)(C.l,{className:`w-[22px] h-[22px]`,strokeWidth:1.75}),s,(0,G.jsx)(r.A,{children:o>0&&(0,G.jsx)(r.k.span,{initial:{scale:.6,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.6,opacity:0},transition:{duration:.18},className:`absolute top-0.5 right-0 min-w-[18px] h-[18px] px-1 inline-flex items-center justify-center rounded-full bg-accent text-[var(--button-fg,#fff)] text-[11px] font-bold tabular-nums leading-none`,children:(0,G.jsx)(r.k.span,{initial:{scale:1.5},animate:{scale:1},transition:{duration:.2},children:o>99?`99+`:o},o)},`count`)})]})}pd.displayName=`BasketButton`;var md=`text-[12.5px] font-medium text-foreground/50 leading-snug`,hd=(e,t)=>String(e||``).trim().toLowerCase()===String(t||``).trim().toLowerCase(),gd=(e,t)=>!t.loading&&C.a(e.id,t.subscriptions).some(t=>{let n=e.plans.find(e=>hd(e.name,t.plan));return n?!n.roleId:e.plans.every(e=>!e.roleId)});function _d({plan:e,children:t,instead:i,className:a}){let{user:s,userRole:c,loading:l,roleResolved:u,roleConfirmed:d}=n.Q(),f=n.bn(s?.uid),p=Hc(!0,!1),m=n.sn(),h=p?.find(t=>t.id===String(e||``).trim())||null,{roles:g,roleless:_}=Gc(h),v=()=>i===void 0?h?.kind===`once`?(0,G.jsx)(Jc,{product:h,className:a}):(0,G.jsx)(Ta,{product:e,className:a}):(0,G.jsx)(G.Fragment,{children:i});if(!l&&!s)return v();if(!(!l&&p&&(!s||u!==!1&&d!==!1&&!f)&&(!s||!_||!m.loading)))return(0,G.jsx)(`div`,{"aria-hidden":!0,className:r.E(`w-full min-h-40 rounded-3xl glass-panel animate-pulse`,a)});let y=!!s&&o.A(c);return s&&(y||o.$(c).some(e=>g.includes(e))||_&&h&&gd(h,m))?(0,G.jsxs)(G.Fragment,{children:[y&&(0,G.jsx)(`span`,{className:md,children:h?.kind===`once`&&!g.length?`Only admins see this: nothing in ${n.tr(h)} makes its buyer one of your roles, so nobody else sees anything here. On Payments, choose who buying it makes them.`:h?.kind===`once`?`Only admins see this: whoever has bought ${n.tr(h)} sees what is below; everybody else sees how to buy it here.`:h?`Only admins see this: members of ${h.name.trim()||`this subscription`} see what is below; everybody else sees its plans here.`:`Only admins see this: this part names a subscription you do not have, so nobody else sees anything here. Ask your assistant to name the one this page sells.`}),t]}):v()}_d.displayName=`MembersOnly`;var vd=[{id:`write`,label:`Write`},{id:`preview`,label:`Preview`},{id:`sent`,label:`Sent`}],yd=5e3,bd=4500,xd=e=>e.trim().length<=254&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()),Sd=e=>String(e||``).trim().split(/\s+/)[0]||``,Cd=`fbos:email-draft:`,wd=e=>{try{let t=JSON.parse(sessionStorage.getItem(Cd+e)||`null`);return t&&typeof t==`object`?t:{}}catch{return{}}},Td=(e,t)=>{try{t&&(t.subject||t.message)?sessionStorage.setItem(Cd+e,JSON.stringify(t)):sessionStorage.removeItem(Cd+e)}catch{}},Ed=e=>Object.entries(e||{}).map(([e,t])=>[e,t==null?``:String(t).trim()]).filter(([e,t])=>e.trim()&&t);function Dd({to:e,name:t,subject:i=``,message:a=``,details:o,look:s,label:c,variant:f=`secondary`,className:p,open:m,onClose:h,onSent:g}){let{isAdmin:_,isInternal:v}=n.Q(),b=!!(_||v),S=m!==void 0,[C,w]=(0,W.useState)(!1),T=S?!!m:C,E=String(e||``).trim(),k=(E||`anyone`).toLowerCase(),[A,j]=(0,W.useState)(`write`),[ee,N]=(0,W.useState)(``),[P,F]=(0,W.useState)(i),[te,I]=(0,W.useState)(a),[L,R]=(0,W.useState)(!1),[ne,re]=(0,W.useState)(null),[ie,z]=(0,W.useState)(!1),[B,ae]=(0,W.useState)(!1),[V,H]=(0,W.useState)(``),[oe,U]=(0,W.useState)(null),[se,K]=(0,W.useState)(``),ce=(0,W.useRef)(null),q=T?k:``,[J,Y]=(0,W.useState)(``);if(q!==J&&(Y(q),q)){let e=wd(k);j(`write`),N(E?``:String(e.to||``)),F(String(e.subject??i)),I(String(e.message??a)),R(!1),re(null),H(``)}(0,W.useEffect)(()=>{if(!T)return;let e=!0;return M.o().then(t=>{e&&U(t)}),()=>{e=!1}},[T]);let X=E||ee.trim();(0,W.useEffect)(()=>{!T||A!==`write`||Td(k,ee.trim()!==``||P!==i||te!==a?{to:ee,subject:P,message:te}:null)},[T,A,k,ee,P,te]),(0,W.useEffect)(()=>{ce.current?.scrollIntoView?.({block:`start`})},[A]);let le=(0,W.useCallback)(()=>{S?h?.():w(!1)},[S,h]),Z=X?xd(X)?``:`That does not look like an email address.`:`Who is it for?`,ue=P.trim()?``:`Give it a subject.`,de=te.trim()?te.trim().length>yd?`Keep it under ${yd.toLocaleString(`en`)} characters.`:``:`Write the message first.`,fe=!Z&&!ue&&!de,pe=oe&&!oe.error&&!oe.configured?oe.connected?`Email is switched off for this app. An admin switches it on, on the Email screen.`:`Email is not set up for this app yet. An admin sets it up on the Email screen.`:``,me={...s?{look:s}:{},...o?{details:o}:{}},he=async()=>{R(!0),!(!fe||pe)&&(H(``),re(null),z(!0),j(`preview`),re(await M.a({subject:P.trim(),message:te.trim(),...me})),z(!1))},ge=async()=>{if(B)return;ae(!0),H(``);let e=await M.t(X,P.trim(),te.trim(),me);if(ae(!1),e){H(e);return}Td(k,null),K(X),j(`sent`),g?.(X)},_e=()=>{F(i),I(a),N(``),R(!1),re(null),j(`write`)};if(!b)return null;let Q=Sd(t),ve=Ed(o),ye=yd-te.trim().length,be;return be=A===`write`?(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,G.jsx)(O.t,{variant:`ghost`,onClick:le,children:`Cancel`}),(0,G.jsxs)(O.t,{onClick:he,disabled:!!pe,children:[`Preview`,(0,G.jsx)(u.n,{className:`h-4 w-4`,"aria-hidden":`true`})]})]}):A===`preview`?(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,G.jsxs)(O.t,{variant:`secondary`,onClick:()=>{H(``),j(`write`)},disabled:B,children:[(0,G.jsx)(l.t,{className:`h-4 w-4`,"aria-hidden":`true`}),`Back`]}),(0,G.jsxs)(O.t,{onClick:ge,isLoading:B,disabled:ie||!!ne?.error,children:[(0,G.jsx)(x.t,{className:`h-4 w-4`,"aria-hidden":`true`}),`Send email`]})]}):(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,G.jsx)(O.t,{variant:`secondary`,onClick:_e,children:`Write another`}),(0,G.jsx)(O.t,{onClick:le,children:`Done`})]}),(0,G.jsxs)(G.Fragment,{children:[!S&&(0,G.jsxs)(O.t,{variant:f,className:p,onClick:()=>w(!0),children:[(0,G.jsx)(n.H,{className:`h-4 w-4`,"aria-hidden":`true`}),c||(Q?`Email ${Q}`:`Write an email`)]}),(0,G.jsx)(D.t,{open:T,onClose:le,busy:B,size:`lg`,title:Q?`Email ${Q}`:`Write an email`,sub:E||void 0,footer:be,children:(0,G.jsxs)(`div`,{ref:ce,className:`flex flex-col gap-5 pt-1`,"data-email-window":A,children:[(0,G.jsx)(y.i,{steps:vd,current:A,onGo:A===`preview`?e=>{e===`write`&&j(`write`)}:void 0}),A===`write`&&(0,G.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[pe?(0,G.jsx)(y.n,{children:pe}):null,!pe&&oe?.senderVerified===!1?(0,G.jsx)(y.n,{children:`Until your domain is verified on the Email screen, email reaches only the address your Resend account was made with.`}):null,!E&&(0,G.jsx)(d.c,{type:`email`,label:`To`,"aria-label":`To`,autoComplete:`off`,placeholder:`name@example.com`,value:ee,onChange:e=>N(e.target.value),error:L?Z:``}),(0,G.jsx)(d.c,{label:`Subject`,"aria-label":`Subject`,placeholder:`Your order is ready`,maxLength:200,value:P,onChange:e=>F(e.target.value),error:L?ue:``}),(0,G.jsx)(d.s,{label:`Message`,"aria-label":`Message`,rows:6,placeholder:Q?`Hi ${Q},`:`Hi,`,value:te,onChange:e=>I(e.target.value),error:L||ye<0?de:``}),ye>=0&&te.trim().length>=bd?(0,G.jsxs)(`p`,{className:`-mt-2 text-[12px] font-medium text-foreground/50`,children:[ye.toLocaleString(`en`),` characters left`]}):null,ve.length>0&&(0,G.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,G.jsx)(`span`,{className:`text-[13px] font-medium text-foreground/70`,children:`Sent with it`}),(0,G.jsx)(`dl`,{className:`rounded-2xl border border-[var(--panel-border)] bg-foreground/[0.03] px-4 py-1`,children:ve.map(([e,t],n)=>(0,G.jsxs)(`div`,{className:r.E(`flex items-baseline gap-4 py-2.5`,n>0&&`border-t border-[var(--panel-border)]`),children:[(0,G.jsx)(`dt`,{className:`w-28 shrink-0 text-[12.5px] text-foreground/50`,children:e}),(0,G.jsx)(`dd`,{className:`min-w-0 break-words text-[14px] font-semibold text-foreground`,children:t})]},e))})]}),(0,G.jsx)(`p`,{className:`text-[12.5px] leading-relaxed text-foreground/50`,children:`It goes out in your app’s own look, with your logo and colours. The next step shows it.`})]}),A===`preview`&&(0,G.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,G.jsx)(y.t,{html:ne?.html||``,subject:ne?.subject||P.trim(),from:ne?.from,to:X,loading:ie,error:ne?.error}),V?(0,G.jsxs)(y.n,{tone:`error`,children:[`It did not send. `,V]}):null]}),A===`sent`&&(0,G.jsx)(y.r,{title:`Sent to ${se}`,children:`It went out just as the preview showed it. A reply to it comes to the owner of this app.`})]})})]})}Dd.displayName=`EmailWindow`;var Od=Object.assign({}),kd={};for(let e in Od){let t=Od[e];if(!t?.default)continue;let n=e.replace(`./`,``).replace(`.tsx`,``);if(n===`registry`)continue;let r=n.replace(/Content$/,``).replace(/([a-z0-9])([A-Z])/g,`$1_$2`).toLowerCase();kd[r]=t.default,kd[r.replace(/_/g,``)]=t.default}if(typeof window<`u`){let e=window.__FBOS_MICROCOMPONENTS__||{};window.__FBOS_MICROCOMPONENTS__={...kd,...e}}var Ad=(e,t)=>{let n=e.toLowerCase().replace(/[^a-z0-9]+/g,`_`),r=n.replace(/_/g,``);if(kd[n]=t,kd[r]=t,typeof window<`u`){let e=window.__FBOS_MICROCOMPONENTS__||{};window.__FBOS_MICROCOMPONENTS__={...e,[n]:t,[r]:t}}},jd=({title:e,className:t,children:n,...i})=>(0,G.jsxs)(`div`,{className:r.E(`border border-[var(--panel-border)] bg-[var(--panel-bg)] px-5 py-4`,t),style:{borderRadius:`var(--card-radius, 1rem)`},...i,children:[e?(0,G.jsx)(`p`,{className:`text-[12px] font-extrabold tracking-tight text-gradient mb-1.5`,children:e}):null,n]});jd.displayName=`Card`;var Md=({sub:e,className:t,children:n,...i})=>(0,G.jsxs)(`div`,{className:r.E(`mb-4`,t),children:[(0,G.jsx)(`h2`,{className:`text-xl md:text-2xl font-bold tracking-tight text-foreground`,...i,children:n}),e?(0,G.jsx)(`p`,{className:`text-[13px] text-foreground/60 font-medium leading-relaxed mt-1`,children:e}):null]});Md.displayName=`SectionHeading`;var Nd=`button, a, input, textarea, select, label, [role="button"], [role="listbox"], [role="option"]`,Pd=`[&>:is(div,section,article):only-child:not([class*=inline],[class*=w-fit],[class*=w-max],[class*=rounded-full],[class*=text-white],[class*=text-background],:has(>:is(img,video,[data-picture]):only-child))]:!p-0 [&>:is(div,section,article):only-child:not([class*=inline],[class*=w-fit],[class*=w-max],[class*=rounded-full],[class*=text-white],[class*=text-background],:has(>:is(img,video,[data-picture]):only-child))]:!m-0 [&>:is(div,section,article):only-child:not([class*=inline],[class*=w-fit],[class*=w-max],[class*=rounded-full],[class*=text-white],[class*=text-background],:has(>:is(img,video,[data-picture]):only-child))]:!border-0 [&>:is(div,section,article):only-child:not([class*=inline],[class*=w-fit],[class*=w-max],[class*=rounded-full],[class*=text-white],[class*=text-background],:has(>:is(img,video,[data-picture]):only-child))]:!rounded-none [&>:is(div,section,article):only-child:not([class*=inline],[class*=w-fit],[class*=w-max],[class*=rounded-full],[class*=text-white],[class*=text-background],:has(>:is(img,video,[data-picture]):only-child))]:!bg-transparent [&>:is(div,section,article):only-child:not([class*=inline],[class*=w-fit],[class*=w-max],[class*=rounded-full],[class*=text-white],[class*=text-background],:has(>:is(img,video,[data-picture]):only-child))]:!shadow-none`,Fd=`flex h-8 w-6 shrink-0 items-center justify-center rounded-md text-foreground/40 transition-[opacity,color,background-color] duration-150 hover:bg-foreground/[0.07] hover:text-foreground/80 [@media(hover:hover)]:opacity-0 group-hover:opacity-100 group-focus-within:opacity-100`;function Id({stages:e,items:t,stageOf:n,keyOf:i,card:a,onMove:o,onOpen:s,canMove:c,loading:l=!1,empty:u=`Nothing here yet`,className:d}){let f=(0,W.useRef)(null),p=e=>i?i(e):String(e.id??``),m=e[0]?.id??``,h=t=>e.some(e=>e.id===t)?t:m,[g,_]=(0,W.useState)({}),[v,y]=(0,W.useState)(null),b=(0,W.useRef)(null),x=e=>{b.current=e,y(e)},S=(0,W.useMemo)(()=>new Map(t.map(e=>[p(e),e])),[t]);(0,W.useEffect)(()=>{let e=Object.entries(g).filter(([e,t])=>{let r=S.get(e);return!r||t.settled&&h(n(r))===t.stage});e.length&&_(t=>{let n={...t};for(let[t]of e)delete n[t];return n})},[g,S]);let w=(0,W.useMemo)(()=>{let r=new Map(e.map(e=>[e.id,[]]));for(let e of t)g[p(e)]||r.get(h(n(e)))?.push(e);for(let[e,t]of Object.entries(g)){let n=S.get(e),i=r.get(t.stage);n&&i&&i.splice(Math.min(t.index,i.length),0,n)}return r},[t,g,e]),T=(e,t,i)=>{let a=p(e),s=h(n(e));if(t===s&&i===(w.get(s)||[]).findIndex(e=>p(e)===a)||c&&t!==s&&!c(e,t))return;_(e=>({...e,[a]:{stage:t,index:i,settled:!1}}));let l=()=>_(e=>e[a]?{...e,[a]:{...e[a],settled:!0}}:e),u=()=>_(e=>{let t={...e};return delete t[a],t}),d;try{d=o(e,t,i)}catch(e){u(),C.n(r.mt(e,`That could not be moved.`));return}d&&typeof d.then==`function`?d.then(()=>{l(),setTimeout(u,1500)},e=>{u(),C.n(r.mt(e,`That could not be moved.`))}):(l(),setTimeout(u,5e3))},{dragging:E,bind:D}=Yo({disabled:l,scroller:()=>f.current,onMove:({x:e,y:t},r)=>{let i=f.current,a=S.get(r);if(!i||!a)return;let o=Array.from(i.querySelectorAll(`[data-pipeline-stage]`)),s=null,l=1/0;for(let t of o){let n=t.getBoundingClientRect(),r=e<n.left?n.left-e:e>n.right?e-n.right:0;r<l&&(l=r,s=t)}let u=s?.dataset.pipelineStage;if(!s||!u){x(null);return}if(c&&u!==h(n(a))&&!c(a,u)){x(null);return}let d=Array.from(s.querySelectorAll(`[data-drag-key]`)).filter(e=>e.dataset.dragKey!==r).filter(e=>{let n=e.getBoundingClientRect();return t>n.top+n.height/2}).length,p=b.current;(!p||p.stage!==u||p.index!==d)&&x({stage:u,index:d})},onDrop:e=>{let t=S.get(e),n=b.current;x(null),t&&n&&T(t,n.stage,n.index)},onCancel:()=>x(null)}),O=E?S.get(E.key):void 0,A=`rounded-xl border border-[var(--panel-border)] bg-[var(--panel-bg)] p-3 text-left`,j=e=>t=>{let n=t.target.closest?.(Nd);n&&n!==t.currentTarget||s?.(e)},ee=e=>t=>{t.target===t.currentTarget&&(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),s?.(e))};return(0,G.jsxs)(`div`,{ref:f,className:r.E(`flex w-full items-start gap-3 overflow-x-auto pb-3 md:gap-4`,E?`snap-none`:`snap-x snap-mandatory sm:snap-none`,d),children:[e.map(t=>{let i=w.get(t.id)||[],o=E?i.findIndex(e=>p(e)===E.key):-1,d=!!E&&v?.stage===t.id,f=d&&o>-1&&v.index===o,m=d&&E&&!f?(0,G.jsx)(`div`,{"aria-hidden":`true`,className:`rounded-xl border-2 border-dashed border-accent/50 bg-accent/5`,style:{height:E.height}},`__slot`):null,g=i.map(t=>{let i=p(t),o=h(n(t)),l=e.filter(e=>e.id===o||!c||c(t,e.id));return(0,G.jsxs)(`div`,{...D(i),...s?{role:`button`,tabIndex:0,"data-drag-ok":``,onClick:j(t),onKeyDown:ee(t)}:{"data-drag-ok":``},className:r.E(A,`group relative cursor-grab transition-[border-color,box-shadow,opacity] duration-200 hover:border-accent/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/40`,E?.key===i&&`opacity-30`),children:[(0,G.jsx)(`div`,{className:r.E(`min-w-0`,Pd),children:a(t)}),(0,G.jsxs)(`div`,{className:`-mb-1.5 mt-2.5 flex items-center justify-between gap-2 border-t border-[var(--panel-border)] pt-1.5`,children:[l.length>1?(0,G.jsx)(`div`,{className:`-ml-2 flex min-w-0 items-center [&_[role=button]]:!h-8 [&_[role=button]]:!px-2`,"data-no-drag":``,children:(0,G.jsx)(r.w,{compact:!0,portal:!0,direction:`auto`,variant:`ghost`,ariaLabel:`Move to another stage`,value:o,options:l.map(e=>({value:e.id,label:e.label})),onChange:e=>{e!==o&&T(t,e,0)}})}):(0,G.jsx)(`span`,{className:`min-w-0 truncate py-1.5 text-[12.5px] font-semibold leading-5 text-foreground/60`,children:e.find(e=>e.id===o)?.label}),(0,G.jsx)(`span`,{...Xo,"aria-hidden":`true`,"data-pipeline-grip":``,className:r.E(Fd,`-mr-1.5`),children:(0,G.jsx)($e,{className:`h-4 w-4`})})]})]},i)});if(m){let e=v.index;g.splice(Math.min(o>-1&&e>o?e+1:e,g.length),0,m)}return(0,G.jsxs)(`section`,{"data-pipeline-stage":t.id,"aria-label":t.label,className:r.E(`flex w-[84%] shrink-0 snap-start flex-col rounded-2xl border p-3 transition-colors duration-200 sm:w-auto sm:min-w-[15rem] sm:flex-1`,d?`border-accent/60 bg-accent/5`:`border-[var(--panel-border)] bg-background/40`),children:[(0,G.jsxs)(`header`,{className:`mb-3 flex items-center justify-between gap-2 px-1`,children:[(0,G.jsx)(`h3`,{className:`truncate text-sm font-bold text-foreground`,children:t.label}),!l&&(0,G.jsx)(`span`,{className:`flex h-6 min-w-6 items-center justify-center rounded-full border border-[var(--panel-border)] px-1.5 text-xs font-bold text-foreground/70`,children:i.length})]}),t.hint&&(0,G.jsx)(`p`,{className:`-mt-2 mb-3 px-1 text-xs leading-snug text-foreground/50`,children:t.hint}),(0,G.jsx)(`div`,{className:`flex min-h-16 flex-col gap-2.5`,children:l?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(k.n,{className:`h-24 rounded-xl`}),(0,G.jsx)(k.n,{className:`h-24 rounded-xl`})]}):g.length?g:(0,G.jsx)(`div`,{className:r.E(`rounded-xl border border-dashed border-[var(--panel-border)] px-3 py-5 text-center text-xs text-foreground/40`,Pd),children:u})})]},t.id)}),E&&O!==void 0&&typeof document<`u`&&(0,J.createPortal)((0,G.jsx)(`div`,{"aria-hidden":`true`,"data-pipeline-ghost":``,className:`pointer-events-none fixed z-[9995] rotate-[1.5deg] rounded-xl bg-background opacity-95 shadow-2xl`,style:{left:E.x-E.offsetX,top:E.y-E.offsetY,width:E.width},children:(0,G.jsx)(`div`,{className:A,children:(0,G.jsx)(`div`,{className:r.E(`min-w-0`,Pd),children:a(O)})})}),document.body)]})}Id.displayName=`Pipeline`;var Ld=new WeakMap,Rd=0,zd=e=>{let t=Ld.get(e);return t||(t=`\u0000item${++Rd}`,Ld.set(e,t)),t},Bd=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]);function Vd({items:e,keyOf:t,item:n,onReorder:i,label:a,grip:o,disabled:s=!1,className:c}){let l=(0,W.useRef)(null),u=e=>{if(t)return String(t(e)??``);if(typeof e==`string`||typeof e==`number`)return String(e);let n=e?.id;return n!=null&&n!==``?String(n):e&&typeof e==`object`?zd(e):``},d=(o??(/\b(?:grid|columns-\d)/.test(c||``)?`corner`:`end`))===`corner`,f=new Map,p=e.map(e=>{let t=u(e),n=f.get(t)??0;return f.set(t,n+1),n===0?t:`${t}\u0000${n}`}),m=new Map(e.map((e,t)=>[p[t],e])),h=p.join(`\0`),[g,_]=(0,W.useState)(null),v=(0,W.useRef)(null),y=e=>{v.current=e,_(e?{keys:e,from:h}:null)},b=(0,W.useRef)(0),x=(0,W.useRef)(null);(0,W.useEffect)(()=>{let e=x.current;e&&(x.current=null,l.current?.querySelector(`[data-drag-key="${CSS.escape(e)}"] [data-drag-handle]`)?.focus())});let S=()=>Array.from(l.current?.querySelectorAll(`:scope > [data-drag-key]`)||[]).map(e=>e.dataset.dragKey||``),w=e=>{if(Bd(e,p)){y(null);return}y(e);let t=()=>{v.current===e&&y(null)},n;try{n=i(e.map(e=>m.get(e)))}catch(e){t(),C.n(r.mt(e,`The new order could not be saved.`));return}n&&typeof n.then==`function`?n.then(()=>setTimeout(t,1500),e=>{t(),C.n(r.mt(e,`The new order could not be saved.`))}):setTimeout(t,3e3)},{dragging:T,bind:E}=Yo({disabled:s,onStart:()=>y(S()),onMove:({x:e,y:t,at:n},r)=>{let i=l.current;if(!i||n<b.current)return;let a=null,o=1/0;for(let n of Array.from(i.querySelectorAll(`:scope > [data-drag-key]`))){let r=n.getBoundingClientRect(),i=Math.hypot(e-(r.left+r.width/2),t-(r.top+r.height/2));i<o&&(o=i,a=n.dataset.dragKey||null)}let s=v.current||S();if(!a||a===r)return;let c=s.filter(e=>e!==r);c.splice(s.indexOf(a),0,r),b.current=n+140,y(c)},onDrop:()=>w(v.current||S()),onCancel:()=>y(null)}),D=g&&(T||g.from===h)?g.keys:null,O=(D||p).filter(e=>m.has(e));for(let e of p)O.includes(e)||O.push(e);let k=e=>t=>{let n=t.key===`ArrowUp`||t.key===`ArrowLeft`?-1:+(t.key===`ArrowDown`||t.key===`ArrowRight`);if(!n)return;t.preventDefault();let r=O.indexOf(e),i=r+n;if(i<0||i>=O.length)return;let a=[...O];a.splice(r,1),a.splice(i,0,e),x.current=e,w(a)},A=T?m.get(T.key):void 0;return(0,G.jsxs)(`div`,{ref:l,className:r.E(c||`flex flex-col gap-2`),children:[O.map((e,t)=>{let i=m.get(e),o=a?a(i,t):`item ${t+1} of ${O.length}`,c=s?null:(0,G.jsx)(`button`,{type:`button`,...Xo,onKeyDown:k(e),"aria-label":`Move ${o} — drag, or use the arrow keys`,className:r.E(`flex h-10 w-8 shrink-0 items-center justify-center rounded-lg text-foreground/40 transition-colors hover:text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/40`,d&&`absolute right-1.5 top-1.5 w-10 border border-[var(--panel-border)] bg-background/80 text-foreground/70 backdrop-blur-sm`),children:(0,G.jsx)($e,{className:`h-4 w-4`,"aria-hidden":`true`})});return(0,G.jsxs)(r.k.div,{layout:!!T||!!D,transition:{type:`spring`,stiffness:500,damping:40},...E(e),className:r.E(`relative min-w-0`,!d&&`flex items-center gap-2`,!s&&`cursor-grab`,T?.key===e&&`opacity-30`),children:[d?n(i,t):(0,G.jsx)(`div`,{className:`min-w-0 flex-1`,children:n(i,t)}),c]},e)}),T&&A!==void 0&&typeof document<`u`&&(0,J.createPortal)((0,G.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none fixed z-[9995] rotate-[1.5deg] opacity-95 shadow-2xl`,style:{left:T.x-T.offsetX,top:T.y-T.offsetY,width:T.width},children:d?n(A,O.indexOf(T.key)):(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(`div`,{className:`min-w-0 flex-1`,children:n(A,O.indexOf(T.key))}),(0,G.jsx)(`span`,{className:`w-8 shrink-0`})]})}),document.body)]})}Vd.displayName=`Sortable`;var Hd=`button, a, input, textarea, select, label, [role="button"], [role="listbox"], [role="option"]`,Ud=e=>{if(e==null||e===``)return null;if(e instanceof Date)return e.getTime();if(typeof e==`boolean`)return+!!e;let t=e;return typeof t.toMillis==`function`?t.toMillis():e},Wd=e=>{if(e==null)return``;if(e instanceof Date)return e.toLocaleDateString();let t=e;return typeof t.toDate==`function`?t.toDate().toLocaleDateString():String(e)},Gd=`(min-width: 768px)`;function Kd(){let[e,t]=(0,W.useState)(()=>typeof window>`u`||typeof window.matchMedia!=`function`?!0:window.matchMedia(Gd).matches);return(0,W.useEffect)(()=>{if(typeof window>`u`||typeof window.matchMedia!=`function`)return;let e=window.matchMedia(Gd),n=()=>t(e.matches);return n(),e.addEventListener?.(`change`,n),()=>e.removeEventListener?.(`change`,n)},[]),e}function qd({rows:e,columns:t,keyOf:i,onOpen:a,actions:o,loading:s=!1,empty:c=`Nothing here yet`,search:l=!1,sort:u,className:d}){let f=(e,t)=>i?i(e):String(e.id??t),[p,m]=(0,W.useState)(u?{key:u.key,dir:u.dir||`asc`}:null),[h,g]=(0,W.useState)(``),v=Kd(),y=(0,W.useMemo)(()=>{let n=h.trim().toLowerCase(),r=n?e.filter(e=>t.some(t=>t.value&&Wd(t.value(e)).toLowerCase().includes(n))):e,i=p&&t.find(e=>e.key===p.key);if(i&&i.value){let e=i.value,t=p.dir===`asc`?1:-1;r=[...r].sort((n,r)=>{let i=Ud(e(n)),a=Ud(e(r));return i===null||a===null?i===a?0:i===null?1:-1:typeof i==`number`&&typeof a==`number`?(i-a)*t:String(i).localeCompare(String(a),void 0,{numeric:!0,sensitivity:`base`})*t})}return r},[e,t,p,h]),b=e=>m(t=>t?.key===e?t.dir===`asc`?{key:e,dir:`desc`}:null:{key:e,dir:`asc`}),x=(e,t)=>e.cell?e.cell(t):e.value?Wd(e.value(t)):null,S=e=>t=>{let n=t.target.closest?.(Hd);n&&n!==t.currentTarget||a?.(e)},C=e=>t=>{t.target===t.currentTarget&&(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),a?.(e))},[w,...T]=t,E=T.find(e=>e.align===`right`&&e.phone!==!1),D=T.filter(e=>e!==E&&e.phone!==!1),O=!s&&y.length===0,A=h.trim()&&e.length?`Nothing matches “${h.trim()}”`:c;return(0,G.jsxs)(`div`,{className:r.E(`w-full`,d),children:[l&&(0,G.jsxs)(`label`,{className:`relative mb-4 flex w-full items-center sm:max-w-xs`,children:[(0,G.jsx)(_.t,{className:`pointer-events-none absolute left-3.5 z-10 h-4 w-4 text-foreground/40`,"aria-hidden":`true`}),(0,G.jsx)(`input`,{type:`search`,value:h,onChange:e=>g(e.target.value),placeholder:typeof l==`string`?l:`Search`,"aria-label":typeof l==`string`?l:`Search`,className:`glass-panel glow-focus block h-11 w-full pl-10 pr-4 text-sm text-foreground placeholder:text-foreground/40 focus:border-accent focus:outline-none`,style:{borderRadius:`var(--input-radius, 0.75rem)`}})]}),v&&(0,G.jsx)(`div`,{className:`overflow-hidden rounded-2xl border border-[var(--panel-border)] bg-background/30`,children:(0,G.jsxs)(`table`,{className:`w-full border-collapse text-left text-sm`,children:[(0,G.jsx)(`thead`,{children:(0,G.jsxs)(`tr`,{className:`border-b border-[var(--panel-border)] bg-background/50`,children:[t.map(e=>{let t=!!e.value&&e.sortable!==!1,i=p?.key===e.key?p.dir:null;return(0,G.jsx)(`th`,{scope:`col`,"aria-sort":i===`asc`?`ascending`:i===`desc`?`descending`:void 0,className:r.E(`px-4 py-3 text-xs font-semibold uppercase tracking-wide text-foreground/50`,e.align===`right`&&`text-right`),children:t?(0,G.jsxs)(`button`,{type:`button`,onClick:()=>b(e.key),className:r.E(`inline-flex items-center gap-1 uppercase tracking-wide transition-colors hover:text-foreground focus:outline-none focus-visible:text-foreground`,i&&`text-foreground`),children:[e.label,i===`asc`&&(0,G.jsx)(n.J,{className:`h-3 w-3`,"aria-hidden":`true`}),i===`desc`&&(0,G.jsx)(n.Y,{className:`h-3 w-3`,"aria-hidden":`true`})]}):e.label},e.key)}),o&&(0,G.jsx)(`th`,{scope:`col`,className:`px-4 py-3`,children:(0,G.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,G.jsxs)(`tbody`,{className:`divide-y divide-[var(--panel-border)]`,children:[s&&[0,1,2,3].map(e=>(0,G.jsxs)(`tr`,{children:[t.map(e=>(0,G.jsx)(`td`,{className:`px-4 py-3.5`,children:(0,G.jsx)(k.n,{className:`h-4 w-3/4 rounded-md`})},e.key)),o&&(0,G.jsx)(`td`,{className:`px-4 py-3.5`})]},e)),O&&(0,G.jsx)(`tr`,{children:(0,G.jsx)(`td`,{colSpan:t.length+ +!!o,className:`px-4 py-12 text-center text-sm text-foreground/50`,children:A})}),!s&&y.map((e,n)=>(0,G.jsxs)(`tr`,{onClick:a?S(e):void 0,className:r.E(`transition-colors`,a&&`cursor-pointer hover:bg-foreground/[0.03]`),children:[t.map((t,n)=>(0,G.jsx)(`td`,{className:r.E(`px-4 py-3.5 align-middle text-foreground/80`,t.align===`right`&&`text-right tabular-nums`,n===0&&`font-semibold text-foreground`),children:n===0&&a?(0,G.jsx)(`button`,{type:`button`,onClick:()=>a(e),className:`text-left font-semibold hover:underline focus:outline-none focus-visible:underline`,children:x(t,e)}):x(t,e)},t.key)),o&&(0,G.jsx)(`td`,{className:`px-4 py-2.5 text-right`,children:(0,G.jsx)(`div`,{className:`flex items-center justify-end gap-2`,children:o(e)})})]},f(e,n)))]})]})}),!v&&(0,G.jsxs)(`div`,{className:`flex flex-col gap-2.5`,children:[s&&[0,1,2].map(e=>(0,G.jsx)(k.n,{className:`h-24`},e)),O&&(0,G.jsx)(`p`,{className:`rounded-2xl border border-dashed border-[var(--panel-border)] px-4 py-10 text-center text-sm text-foreground/50`,children:A}),!s&&y.map((e,t)=>(0,G.jsxs)(`div`,{...a?{role:`button`,tabIndex:0,onClick:S(e),onKeyDown:C(e)}:{},className:r.E(`rounded-2xl border border-[var(--panel-border)] bg-[var(--panel-bg)] p-4 text-left`,a&&`cursor-pointer transition-colors hover:border-accent/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/40`),children:[(0,G.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,G.jsx)(`div`,{className:`min-w-0 text-[15px] font-semibold text-foreground`,children:w?x(w,e):null}),E&&(0,G.jsx)(`div`,{className:`shrink-0 text-[15px] font-semibold tabular-nums text-foreground`,children:x(E,e)})]}),D.length>0&&(0,G.jsx)(`dl`,{className:`mt-2.5 grid grid-cols-[auto_1fr] gap-x-4 gap-y-1.5 text-sm`,children:D.map(t=>(0,G.jsxs)(`div`,{className:`contents`,children:[(0,G.jsx)(`dt`,{className:`text-foreground/50`,children:t.label}),(0,G.jsx)(`dd`,{className:`min-w-0 text-right text-foreground/80`,children:x(t,e)})]},t.key))}),o&&(0,G.jsx)(`div`,{className:`mt-3 flex flex-wrap items-center gap-2 border-t border-[var(--panel-border)] pt-3`,children:o(e)})]},f(e,t)))]})]})}qd.displayName=`DataTable`;var Jd=/^(?:mem|admin|role_[a-z][a-z0-9]*)_[A-Za-z0-9_]+$/,Yd=e=>Jd.test(String(e||``))&&!/_history$/.test(e)?`${e}_history`:null,Xd=e=>e==null||e===``?void 0:String(e);function Zd(e,t,n={},r=null,i=Date.now()){let a=vi(r),o=!!n.by?.name,s={recordId:String(e),what:String(t||``).trim(),creatorName:o?String(n.by.name):a.creatorName||`Somebody`,creatorAvatar:o?String(n.by.avatar||``):a.creatorAvatar,uid:r?.uid||``,createdAt:o&&Number.isFinite(n.at)&&n.at>0?n.at:i},c=Xd(n.from),l=Xd(n.to);return c!==void 0&&(s.from=c),l!==void 0&&(s.to=l),s}async function Qd(e,t,n,i={}){let a=Yd(e);if(!a||!t||!String(n||``).trim()){console.error(`logHistory('${e}', '${t}', '${n}'): a history line needs the record's own collection (mem_, admin_ or role_<id>_ — never an admin_ one when the team makes the changes), the record's id, and what was done.`);return}try{await(0,K.addDoc)((0,K.collection)(r.bt,a),Zd(t,n,i,r.yt?.currentUser||null))}catch(e){console.warn(`logHistory: the line "${n}" could not be saved — ${r.mt(e,`the database refused it.`)}`)}}function $d(e,t){let n=Yd(e),i=String(t||``),[a,o]=(0,W.useState)({loading:!0,error:null,lines:[]});return(0,W.useEffect)(()=>{if(!n||!i){o({loading:!1,error:null,lines:[]});return}return o({loading:!0,error:null,lines:[]}),(0,K.onSnapshot)((0,K.query)((0,K.collection)(r.bt,n),(0,K.where)(`recordId`,`==`,i)),e=>{let t=e.docs.map(e=>({...e.data()||{},id:e.id}));t.sort((e,t)=>Number(t.createdAt||0)-Number(e.createdAt||0)),o({loading:!1,error:null,lines:t})},e=>o({loading:!1,error:r.mt(e,`The history could not be read.`),lines:[]}))},[n,i]),a}var ef=e=>{if(!e)return 0;if(typeof e==`number`)return e;if(e instanceof Date)return e.getTime();let t=e;if(typeof t.toMillis==`function`)return t.toMillis();if(typeof t.seconds==`number`)return t.seconds*1e3;let n=Date.parse(String(e));return Number.isFinite(n)?n:0},tf=(e,t)=>`${e} ${t}${e===1?``:`s`} ago`,nf=(e,t=Date.now())=>{let n=ef(e);if(!n)return``;let r=Math.floor(Math.max(0,t-n)/6e4);if(r<1)return`just now`;if(r<60)return tf(r,`minute`);let i=Math.floor(r/60);if(i<24)return tf(i,`hour`);let a=Math.floor(i/24);return a===1?`yesterday`:a<7?tf(a,`day`):new Date(n).toLocaleDateString(void 0,{day:`numeric`,month:`short`,year:`numeric`})},rf=(e,t=!1)=>{if(!e)return null;if(t){let t=String(e.editedName||``).trim();return t?{name:t,avatar:String(e.editedAvatar||``),at:e.editedAt}:null}let n=String(e.creatorName||``).trim()||String(e.creatorEmail||``).split(`@`)[0];return n?{name:n,avatar:String(e.creatorAvatar||``),at:e.createdAt}:null},af=e=>e.split(/\s+/).filter(Boolean).map(e=>e[0]).join(``).toUpperCase().slice(0,2);function of({name:e,avatar:t,size:n=`sm`}){let i=n===`md`?`w-7 h-7 text-[10px]`:`w-5 h-5 text-[8px]`;return t?(0,G.jsx)(r.t,{src:t,alt:``,className:r.E(i,`rounded-full shrink-0`)}):(0,G.jsx)(`span`,{"aria-hidden":`true`,className:r.E(i,`rounded-full bg-accent/15 text-accent flex items-center justify-center font-extrabold shrink-0`),children:af(e)})}function sf({record:e,edited:t=!1,label:n,noTime:i=!1,size:a=`sm`,className:o}){let s=rf(e,t);if(!s)return null;let c=n??(t?`Edited by`:``),l=i?``:nf(s.at);return(0,G.jsxs)(`span`,{className:r.E(`inline-flex items-center gap-2 min-w-0 max-w-full align-middle`,o),children:[(0,G.jsx)(of,{name:s.name,avatar:s.avatar,size:a}),(0,G.jsxs)(`span`,{className:r.E(`truncate font-semibold text-foreground/55`,a===`md`?`text-[13px]`:`text-[11px]`),children:[c&&(0,G.jsxs)(`span`,{className:`font-medium text-foreground/40`,children:[c,` `]}),s.name,l&&(0,G.jsxs)(`span`,{className:`font-medium text-foreground/35`,children:[` · `,l]})]})]})}var cf=e=>{let t=new Date(e),n=new Date,r=new Date(n.getFullYear(),n.getMonth(),n.getDate()-1),i=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate();return i(t,n)?`Today`:i(t,r)?`Yesterday`:t.toLocaleDateString(void 0,{day:`numeric`,month:`long`,year:t.getFullYear()===n.getFullYear()?void 0:`numeric`})};function lf(e){let t=[];for(let n of e){let e=cf(Number(n.createdAt||0)),r=t[t.length-1];r&&r.day===e?r.lines.push(n):t.push({day:e,lines:[n]})}return t}function uf({collection:e,of:t,empty:n=`Nothing has happened to this yet.`,max:i,className:a}){let{loading:o,error:s,lines:c}=$d(e,t);return o?(0,G.jsx)(`div`,{className:r.E(`py-6 flex justify-center`,a),children:(0,G.jsx)(k.t,{})}):s?(0,G.jsx)(`p`,{className:r.E(`text-[14px] text-foreground/60`,a),children:s}):c.length?(0,G.jsx)(`div`,{className:r.E(`flex flex-col gap-6`,a),children:lf(i?c.slice(0,i):c).map(e=>(0,G.jsxs)(`section`,{className:`flex flex-col gap-1`,children:[(0,G.jsx)(`h4`,{className:`text-[12px] font-semibold text-foreground/40 mb-1`,children:e.day}),(0,G.jsx)(`ul`,{className:`flex flex-col divide-y divide-[var(--panel-border)]`,children:e.lines.map(e=>(0,G.jsxs)(`li`,{className:`py-3 flex flex-col gap-1.5 min-w-0`,children:[(0,G.jsxs)(`p`,{className:`text-[14px] text-foreground leading-snug break-words`,children:[e.what,(e.from!==void 0||e.to!==void 0)&&(0,G.jsxs)(`span`,{className:`text-foreground/55`,children:[`: `,e.from!==void 0&&(0,G.jsx)(`span`,{children:e.from}),e.from!==void 0&&e.to!==void 0&&(0,G.jsx)(u.n,{className:`inline w-3.5 h-3.5 mx-1.5 -mt-0.5`,"aria-label":`to`}),e.to!==void 0&&(0,G.jsx)(`span`,{className:`font-semibold text-foreground`,children:e.to})]})]}),(0,G.jsx)(sf,{record:e})]},e.id))})]},e.day))}):(0,G.jsx)(`p`,{className:r.E(`text-[14px] text-foreground/45`,a),children:n})}var df=/^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;function ff(e){let t=String(e??``).trim().toLowerCase(),n=t.startsWith(`#`)?t:`#${t}`;return df.test(n)?n.length===4?`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}`:n:``}function pf(e){let t=Array.isArray(e)?e:e?[e]:[],n=[];for(let e of t){let t=ff(e);t&&!n.includes(t)&&n.push(t)}return n}var mf={sm:`w-5 h-5`,md:`w-7 h-7`,lg:`w-10 h-10`},hf=`shadow-[inset_0_0_0_2px_var(--bg-color),inset_0_0_0_4px_var(--fg-color)]`;function gf({color:e,name:t,size:n=`md`,selected:i,onClick:a,className:o}){let s=ff(e),c=t||s||`No colour`,l=r.E(`inline-block rounded-full shrink-0 border border-foreground/20 transition-shadow`,mf[n],i&&hf,o);return a?(0,G.jsx)(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),a()},"aria-label":c,"aria-pressed":!!i,title:c,className:r.E(l,`cursor-pointer hover:border-foreground/60 focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`),style:{backgroundColor:s||void 0}}):(0,G.jsx)(`span`,{role:`img`,"aria-label":c,title:c,"data-swatch":``,className:l,style:{backgroundColor:s||void 0}})}function _f({color:e,onPicked:t,label:n,title:i,className:a,children:o}){let s=(0,W.useRef)(null),[c,l]=(0,W.useState)(e),u=(0,W.useRef)(t);return(0,W.useEffect)(()=>{u.current=t}),(0,W.useEffect)(()=>{l(e)},[e]),(0,W.useEffect)(()=>{let e=s.current;if(!e)return;let t=()=>u.current(e.value);return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),(0,G.jsxs)(`label`,{className:r.E(`relative inline-flex items-center justify-center cursor-pointer`,a),title:i,children:[o,(0,G.jsx)(`input`,{type:`color`,value:c,"aria-label":n,ref:s,onChange:e=>l(e.target.value),className:`absolute inset-0 w-full h-full opacity-0 cursor-pointer`})]})}function vf({label:e,value:t,onChange:n,multiple:i,max:a=12,error:o,disabled:s}){let c=(0,W.useId)(),l=pf(t),[u,d]=(0,W.useState)(``),f=i?l.length>=a:!1,p=e=>n(i?e:e[0]||``),m=e=>{let t=ff(e);t&&(p(i?l.includes(t)?l:[...l,t].slice(0,a):[t]),d(``))},h=ff(u),g=(e,t)=>{let n=ff(t);!n||n===e||p(l.includes(n)?l.filter(t=>t!==e):l.map(t=>t===e?n:t))};return(0,G.jsxs)(`div`,{className:`flex flex-col w-full`,children:[e&&(0,G.jsx)(`span`,{id:`${c}-label`,className:`text-[13px] font-medium text-foreground/50 select-none mb-1.5 ml-1`,children:e}),(0,G.jsxs)(`div`,{role:`group`,"aria-labelledby":e?`${c}-label`:void 0,className:r.E(`glass-panel flex flex-wrap items-center gap-3 px-4 py-3`,o&&`border-red-500/50`,s&&`opacity-50 pointer-events-none`),style:{borderRadius:`var(--input-radius, 0.75rem)`},children:[l.map(e=>(0,G.jsxs)(`span`,{className:`relative inline-flex group`,children:[(0,G.jsx)(_f,{color:e,onPicked:t=>g(e,t),label:`Change ${e}`,title:`${e} — press to change it`,className:`rounded-full`,children:(0,G.jsx)(gf,{color:e,size:`lg`})}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>p(l.filter(t=>t!==e)),"aria-label":`Remove ${e}`,className:`absolute -top-1.5 -right-1.5 w-5 h-5 inline-flex items-center justify-center rounded-full bg-background text-foreground/70 border border-[var(--panel-border)] cursor-pointer hover:text-foreground`,children:(0,G.jsx)(T.t,{className:`w-3 h-3`,"aria-hidden":!0})})]},e)),!f&&(0,G.jsxs)(`span`,{className:`inline-flex items-center gap-2 min-w-0`,children:[(0,G.jsx)(_f,{color:`#c8b6a6`,onPicked:m,label:i?`Pick a colour to add`:`Pick a colour`,title:`Pick a colour`,className:`w-10 h-10 rounded-full border border-dashed border-foreground/30 text-foreground/50 hover:text-foreground hover:border-foreground/60 transition-colors overflow-hidden`,children:(0,G.jsx)(b.t,{className:`w-4 h-4 pointer-events-none`,"aria-hidden":!0})}),(0,G.jsx)(`input`,{type:`text`,inputMode:`text`,value:u,placeholder:`#d8c3a5`,"aria-label":`Or type a hex colour`,onChange:e=>d(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),m(u))},onBlur:()=>m(u),className:`w-24 bg-transparent text-[14px] text-foreground placeholder:text-foreground/30 focus:outline-none border-b border-transparent focus:border-accent py-1`}),h&&(0,G.jsx)(gf,{color:h,size:`sm`})]})]}),o&&(0,G.jsx)(`p`,{className:`text-xs text-red-500 font-medium mt-1`,children:o})]})}var yf=700,bf=e=>{let t=String(e),n=t.indexOf(`.`);return n<0?0:t.length-n-1};function xf(e,{min:t=0,max:n,step:r=1}={}){let i=String(e??``).trim().replace(`,`,`.`);if(!i)return null;let a=Number(i);if(!Number.isFinite(a))return null;let o=bf(r),s=Number(a.toFixed(o)),c=n!=null&&Number.isFinite(Number(n))?Number(n):1/0;return Math.min(c,Math.max(t,s))}var Sf={sm:{button:`w-9 h-9`,icon:`w-3.5 h-3.5`,box:`text-[14px]`},md:{button:`w-10 h-10`,icon:`w-4 h-4`,box:`text-[15px]`}};function Cf({label:e,name:t,value:n,onChange:i,onSettled:a,min:o=0,max:s,step:c=1,size:l=`md`,error:u,disabled:d,className:f}){let p=(0,W.useId)(),m={min:o,max:s,step:c},h=xf(n,m)??o,[g,_]=(0,W.useState)(null),[v,y]=(0,W.useState)(null),[x,S]=(0,W.useState)(n);n!==x&&(S(n),y(null));let C=v??h,w=(0,W.useRef)(null),T=(0,W.useRef)(h),E=(0,W.useRef)(null),D=(0,W.useRef)(a);(0,W.useEffect)(()=>{D.current=a});let O=()=>{E.current!=null&&window.clearTimeout(E.current),E.current=null;let e=w.current;w.current=null,e!=null&&e!==T.current&&D.current?.(T.current,e)};(0,W.useEffect)(()=>O,[]);let k=e=>{y(e),e!==(w.current==null?h:T.current)&&(w.current??=h,T.current=e,i(e),E.current!=null&&window.clearTimeout(E.current),E.current=window.setTimeout(O,yf))},A=()=>(g==null?null:xf(g,m))??C,j=e=>{let t=xf(A()+e,m);t!=null&&(_(null),k(t))},ee=bf(c)>0,M=ee?/[^0-9.,-]/g:/[^0-9-]/g,N=e=>{let t=e.replace(M,``);_(t);let n=Number(t.replace(`,`,`.`));t&&Number.isFinite(n)&&xf(t,m)===n&&k(n)},P=()=>{let e=g==null?null:xf(g,m);_(null),e!=null&&k(e),O()},F=g??String(C),te=t||e||``,I=C<=o,L=s!=null&&C>=Number(s),R=Sf[l],ne=r.E(R.button,`inline-flex items-center justify-center rounded-full shrink-0 text-foreground/70 hover:text-foreground hover:bg-foreground/5 transition-colors cursor-pointer`,`focus:outline-none focus-visible:ring-2 focus-visible:ring-accent disabled:opacity-25 disabled:cursor-default disabled:hover:bg-transparent`);return(0,G.jsxs)(`div`,{className:r.E(`inline-flex flex-col`,f),children:[e&&(0,G.jsx)(`span`,{id:`${p}-label`,className:`text-[13px] font-medium text-foreground/50 select-none mb-1.5 ml-1`,children:e}),(0,G.jsxs)(`div`,{role:`group`,"aria-labelledby":e?`${p}-label`:void 0,className:r.E(`glass-panel inline-flex items-center self-start rounded-full p-0.5`,u&&`border-red-500/50`,d&&`opacity-50 pointer-events-none`),children:[(0,G.jsx)(`button`,{type:`button`,"aria-label":`One less ${te}`.trim(),disabled:d||I,onClick:()=>j(-c),className:ne,children:(0,G.jsx)(st,{className:R.icon,"aria-hidden":!0})}),(0,G.jsx)(`input`,{type:`text`,inputMode:ee?`decimal`:`numeric`,role:`spinbutton`,"aria-label":te||`How many`,"aria-valuenow":C,"aria-valuemin":o,"aria-valuemax":s==null?void 0:Number(s),"aria-invalid":u?!0:void 0,disabled:d,value:F,onChange:e=>N(e.target.value),onFocus:e=>e.target.select(),onBlur:P,onKeyDown:e=>{e.key===`Enter`?(e.preventDefault(),e.currentTarget.blur()):e.key===`ArrowUp`?(e.preventDefault(),j(c)):e.key===`ArrowDown`&&(e.preventDefault(),j(-c))},style:{width:`${Math.max(2,F.length)+1}ch`},className:r.E(`bg-transparent text-center font-semibold tabular-nums text-foreground/85 focus:outline-none`,R.box)}),(0,G.jsx)(`button`,{type:`button`,"aria-label":`One more ${te}`.trim(),disabled:d||L,onClick:()=>j(c),className:ne,children:(0,G.jsx)(b.t,{className:R.icon,"aria-hidden":!0})})]}),u&&(0,G.jsx)(`p`,{className:`text-xs text-red-500 font-medium mt-1`,children:u})]})}Cf.displayName=`NumberStepper`;var wf=e=>{let t=Number(e);return Number.isFinite(t)&&t>0?t:0};function Tf(e,t){let n=e.map(wf),r=Math.max(wf(t),...n,0);return r?n.map(e=>e?Math.max(1,Math.round(e/r*1e3)/10):0):n.map(()=>0)}var Ef=e=>e.toLocaleString();function Df({items:e,max:t,format:n=Ef,size:i=`md`,label:a,className:o}){let[s,c]=(0,W.useState)(!1);(0,W.useEffect)(()=>{let e=requestAnimationFrame(()=>c(!0));return()=>cancelAnimationFrame(e)},[]);let l=Tf(e.map(e=>e.value),t),u=i===`sm`;return(0,G.jsx)(`ul`,{"aria-label":a,className:r.E(`flex flex-col min-w-0`,u?`gap-2`:`gap-3.5`,o),children:e.map((e,t)=>(0,G.jsxs)(`li`,{className:`group/bar flex flex-col gap-1 min-w-0`,children:[(0,G.jsxs)(`div`,{className:r.E(`flex items-baseline justify-between gap-3 min-w-0`,u?`text-[12px]`:`text-[14px]`),children:[(0,G.jsx)(`span`,{className:`text-foreground/60 truncate`,children:e.label}),(0,G.jsxs)(`span`,{className:`shrink-0 tabular-nums`,children:[(0,G.jsx)(`span`,{className:`font-semibold text-foreground`,children:n(wf(e.value))}),e.note&&(0,G.jsxs)(`span`,{className:`text-foreground/45`,children:[` · `,e.note]})]})]}),(0,G.jsx)(`div`,{"aria-hidden":!0,className:r.E(`w-full`,u?`h-1.5`:`h-2.5`),children:(0,G.jsx)(`div`,{className:`h-full rounded-r bg-accent/70 group-hover/bar:bg-accent transition-[width,background-color] duration-700 ease-out motion-reduce:transition-none`,style:{width:`${s?l[t]:0}%`}})})]},`${e.label}-${t}`))})}var Of=(...e)=>{for(let t of e)if(typeof t==`string`&&t.trim())return t.trim();return``},kf=[`assigneeUid`,`assigneeId`,`assigneeName`,`assigneeEmail`,`assigneePhoto`,`assigneeAvatar`,`assignedToUid`,`assignedToName`],Af=e=>{if(!e)return null;let t=`heldByUid`in e||`heldByName`in e,n=t?Of(e.heldByUid):Of(e.assigneeUid,e.assignedToUid,e.assigneeId),r=t?Of(e.heldByName):Of(e.assigneeName,e.assignedToName);return!n&&!r?null:{uid:n,name:r,photo:t?Of(e.heldByPhoto):Of(e.assigneePhoto,e.assigneeAvatar)}},jf=e=>Array.isArray(e)?e.filter(e=>typeof e==`string`&&!!e):null;function Mf(e,t,n=Date.now()){let r=Af(e),i=r?.uid&&r.uid!==t?.uid&&r.uid!==e.uid?F.a(r.uid):``,a=t?.uid?F.a(t.uid):``,o=jf(e.access),s=jf(e.editors),c=e=>[...new Set([...e.filter(e=>e!==i),...a?[a]:[]])],l={};for(let t of kf)t in e&&(l[t]=(0,K.deleteField)());return{...l,...o&&s?{access:c(o),editors:c(s)}:a?{access:(0,K.arrayUnion)(a),editors:(0,K.arrayUnion)(a)}:i?{access:(0,K.arrayRemove)(i),editors:(0,K.arrayRemove)(i)}:{},heldByUid:t?.uid||``,heldByName:t?.name||``,heldByPhoto:t?.photo||``,heldAt:n}}var Nf=``;function Pf({person:e,small:t}){return(0,G.jsxs)(`span`,{className:`inline-flex min-w-0 max-w-full items-center gap-2 align-middle`,children:[(0,G.jsx)(of,{name:e.name,avatar:e.photo,size:t?`sm`:`md`}),(0,G.jsxs)(`span`,{className:`flex min-w-0 flex-col text-left leading-tight`,children:[(0,G.jsx)(`span`,{className:`truncate`,children:e.name}),e.email&&e.email!==e.name&&(0,G.jsx)(`span`,{"data-handover-email":``,className:`truncate text-xs font-medium text-foreground/45`,children:e.email})]})]})}function Ff({entry:e,collection:t,role:i=`internal`,name:a=``,link:s,label:c,compact:l=!1,readOnly:u=!1,onHanded:d,className:f}){let{user:p,userRole:m,isAdmin:h}=n.Q(),g=String(p?.uid||``),_=(0,W.useMemo)(()=>g?F.c(g,m):[],[g,m]),v=o.j(t),y=!u&&!!e?.id&&v&&!!g&&(h||F.n(e,_))&&ae.f(e,h?`admin`:m),b=L.r(y?i:``),[x,S]=(0,W.useState)(void 0),w=Af(e),T=x===void 0?w:x,E=T?.uid?b.people.find(e=>e.uid===T.uid):void 0,D=T?{uid:T.uid,name:E?.name||T.name||`Somebody`,photo:E?.photo||T.photo}:null;if(!e)return null;let O=!!c&&!l,k=O&&(0,G.jsx)(`span`,{className:`text-[13px] font-medium text-foreground/70`,children:c});if(!y){let e=(0,G.jsx)(`span`,{"data-handover":`holder`,className:r.E(`inline-flex min-w-0 max-w-full items-center font-semibold text-foreground/70`,l?`text-xs`:`text-sm`,O?``:f),children:D?(0,G.jsx)(Pf,{person:D,small:l}):(0,G.jsx)(`span`,{className:`font-medium text-foreground/40`,children:`Nobody yet`})});return O?(0,G.jsxs)(`div`,{className:r.E(`flex min-w-0 flex-col gap-1.5`,f),children:[k,e]}):e}let A=async n=>{if(n===(T?.uid||Nf)||x!==void 0)return;let i=n?b.people.find(e=>e.uid===n):null;if(n&&!i)return;let o=i?{uid:i.uid,name:i.name,photo:i.photo}:null;S(o);try{let n=(0,K.doc)(r.bt,t,String(e.id));await(0,K.runTransaction)(r.bt,async t=>{let r=await t.get(n);if(!r.exists())throw Object.assign(Error(`That one is not there any more.`),{code:`not-found`});t.update(n,{...yi(p),...Mf({...r.data(),id:e.id},o)})}),C.n(o?`Handed to ${o.name}`:`Taken back`),o&&o.uid!==g&&I.m({toUid:o.uid,title:a?`${a} is yours now`:`Something was handed to you`,body:`${Of(p?.displayName,String(p?.email||``).split(`@`)[0])||`Somebody`} handed it to you.`,link:s||(typeof window<`u`?window.location.pathname:``)}),d?.(o)}catch(e){let t=e?.code;C.n(r.mt(e,t===`permission-denied`?`That one is not yours to hand over.`:t===`not-found`?`That one is not there any more.`:`That could not be handed over just now.`))}finally{S(void 0)}},j=n.jr(i),ee=!b.loading&&!b.people.length;if(b.error||ee)return(0,G.jsxs)(`div`,{"data-handover":`nobody`,className:r.E(`flex min-w-0 flex-col gap-1.5`,f),children:[k,D&&(0,G.jsx)(`span`,{className:`text-sm font-semibold text-foreground/70`,children:(0,G.jsx)(Pf,{person:D,small:l})}),(0,G.jsx)(`p`,{className:`text-xs leading-snug text-foreground/50`,children:b.error||(i===`internal`?`Nobody is on your team yet — people are put on it on the Users screen.`:`Nobody is marked ${j} yet — people are marked on the Users screen.`)})]});let M=[...D?[{value:Nf,label:(0,G.jsx)(`span`,{className:`text-foreground/60`,children:`Nobody`})}]:[],...D&&D.uid&&!E?[{value:D.uid,label:(0,G.jsx)(Pf,{person:D,small:!0}),disabled:!0}]:[],...b.people.map(e=>({value:e.uid,label:(0,G.jsx)(Pf,{person:e,small:!0})}))];return(0,G.jsx)(`div`,{"data-handover":`picker`,"data-no-drag":``,className:r.E(`min-w-0 [&_[role=button]_[data-handover-email]]:hidden`,l?`inline-flex max-w-full`:`w-full`,f),onClick:e=>e.stopPropagation(),children:(0,G.jsx)(r.w,{compact:l,portal:!0,direction:`auto`,label:l?void 0:c,ariaLabel:c||`Hand to somebody`,value:D?.uid||Nf,disabled:b.loading||x!==void 0,placeholder:(0,G.jsx)(`span`,{className:`text-foreground/50`,children:b.loading?`Loading people…`:`Hand to…`}),options:b.loading&&D?[{value:D.uid,label:(0,G.jsx)(Pf,{person:D,small:!0})}]:M,onChange:A})})}Ff.displayName=`HandOver`;var If=e=>e.replace(/[-_]+/g,` `).replace(/^./,e=>e.toUpperCase());function Lf(e,t={}){let n=t.param||`step`,[r,i]=(0,q.useSearchParams)(),a=(0,W.useMemo)(()=>e.map(e=>typeof e==`string`?{id:e,label:If(e)}:e),[e.map(e=>typeof e==`string`?e:`${e.id}:${e.label}`).join(`|`)]),o=r.get(n),s=a.findIndex(e=>e.id===o),l=s<0?0:s,u=a[l]?.id??``,d=c.x(),f=(0,W.useRef)(d);f.current=d;let p=(0,W.useCallback)(e=>{let t=f.current;if(t>0){C.n(t===1?`One file is still going up. One moment.`:`${t} files are still going up. One moment.`);return}i(t=>{let r=new URLSearchParams(t);return r.set(n,e),r})},[n,i]),m=(0,W.useCallback)(()=>{let e=a[Math.min(l+1,a.length-1)];e&&e.id!==u&&p(e.id)},[p,l,a,u]),h=(0,W.useCallback)(()=>{let e=a[Math.max(l-1,0)];e&&e.id!==u&&p(e.id)},[p,l,a,u]),g=(0,W.useCallback)(()=>{i(e=>{let t=new URLSearchParams(e);return t.delete(n),t},{replace:!0})},[n,i]);return{step:u,index:l,count:a.length,isFirst:l===0,isLast:l===a.length-1,next:m,back:h,goTo:p,reset:g,waiting:d>0,bar:{steps:a,current:u,onGo:p}}}var Rf=48,zf=8,Bf=2.5,Vf=5;function Hf(e,t){if(!t||t.width<=0||t.height<=0||e.width<=0||e.height<=0)return{x:[0,1],y:[0,1]};let n=Math.min(e.width/t.width,e.height/t.height),r=t.width*n/e.width,i=t.height*n/e.height;return{x:[(1-r)/2,(1+r)/2],y:[(1-i)/2,(1+i)/2]}}function Uf(e,[t,n]){if(e<=1)return[.5,.5];if(e*(n-t)>=1)return[e*t/(e-1),(e*n-1)/(e-1)];let r=(e*((t+n)/2)-.5)/(e-1);return[r,r]}var Wf=(e,[t,n])=>Math.min(n,Math.max(t,e));function Gf({pictures:e,index:t,onIndex:i,onClose:a,zoom:o=!1}){let s=(Array.isArray(e)?e:[]).map(e=>typeof e==`string`?{src:e}:e&&typeof e==`object`&&typeof e.src==`string`?e:{src:``}),c=t!==null&&t>=0&&t<s.length,l=c?t:0,u=s.length>1,d=r.O(),p=(0,W.useRef)(()=>{}),m=(0,W.useRef)(null);(0,W.useEffect)(()=>{p.current=e=>{u&&i((l+e+s.length)%s.length)}}),(0,W.useEffect)(()=>{if(!c)return;let e=()=>{m.current=null};return window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},[c]),(0,W.useEffect)(()=>{if(!c)return;let e=e=>{e.key===`ArrowLeft`&&(e.preventDefault(),p.current(-1)),e.key===`ArrowRight`&&(e.preventDefault(),p.current(1))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[c]);let h=s[l],g=()=>({s:1,x:.5,y:.5,by:`press`}),[_,v]=(0,W.useState)(g),y=c?`${l}:${h?.src}`:null;(0,W.useEffect)(()=>{m.current=null},[y]);let[b,x]=(0,W.useState)(y);y!==b&&(x(y),v(g()));let S=_.s>1,C=(0,W.useRef)(null),w=(0,W.useRef)(new Map),T=(0,W.useRef)(null),E=()=>{let e=m.current;if(e&&e.exact)return e;let t=C.current?.getBoundingClientRect(),n={left:t?.left||0,top:t?.top||0,width:t?.width||0,height:t?.height||0},i=[...C.current?.querySelectorAll(`img`)||[]].reverse().find(e=>e.naturalWidth>0),a=h&&r.n(h.src)||(h?.width&&h?.height?{width:h.width,height:h.height}:void 0)||(i?{width:i.naturalWidth,height:i.naturalHeight}:void 0),o={box:n,span:Hf(n,a),exact:!!a&&n.width>0&&n.height>0};return m.current=o,o},O=()=>{m.current=null},k=(e,t,n,r)=>{if(e<=1)return{s:1,x:t,y:n,by:r};let{span:i}=E();return{s:e,x:Wf(t,Uf(e,i.x)),y:Wf(n,Uf(e,i.y)),by:r}},A=(e,t,n,r)=>{let{box:i,span:a}=E(),o=i.width?Math.min(1,Math.max(0,(e-i.left)/i.width)):.5,s=i.height?Math.min(1,Math.max(0,(t-i.top)/i.height)):.5,[c,l]=Uf(n,a.x),[u,d]=Uf(n,a.y);return{s:n,x:c+o*(l-c),y:u+s*(d-u),by:r}},j=()=>{let[e,t]=[...w.current.values()];return Math.hypot(e.x-t.x,e.y-t.y)||1},ee=e=>{if(!(e.pointerType===`mouse`&&e.button!==0)){O(),w.current.set(e.pointerId,{x:e.clientX,y:e.clientY});try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}if(w.current.size===1)T.current={x:e.clientX,y:e.clientY,last:{x:e.clientX,y:e.clientY},moved:!1,pinched:!1};else if(w.current.size===2&&T.current&&(T.current.moved=!0,T.current.pinched=!0,T.current.pinch={dist:j(),s:_.s},!S)){let{box:e}=E(),[t,n]=[...w.current.values()];v({s:1,x:e.width?((t.x+n.x)/2-e.left)/e.width:.5,y:e.height?((t.y+n.y)/2-e.top)/e.height:.5,by:`finger`})}}},M=e=>{if(!w.current.has(e.pointerId)){e.pointerType===`mouse`&&S&&v(A(e.clientX,e.clientY,_.s,`mouse`));return}w.current.set(e.pointerId,{x:e.clientX,y:e.clientY});let t=T.current;if(!t)return;if(t.pinch&&w.current.size>=2){v(k(Math.min(Vf,Math.max(1,t.pinch.s*j()/t.pinch.dist)),_.x,_.y,`finger`));return}let n=e.clientX-t.last.x,r=e.clientY-t.last.y;if(t.last={x:e.clientX,y:e.clientY},Math.hypot(e.clientX-t.x,e.clientY-t.y)>zf&&(t.moved=!0),!S)return;if(e.pointerType===`mouse`){v(A(e.clientX,e.clientY,_.s,`mouse`));return}let{box:i}=E();!i.width||!i.height||v(k(_.s,_.x-n/i.width/(_.s-1),_.y-r/i.height/(_.s-1),`finger`))},N=e=>{if(!w.current.delete(e.pointerId))return;let t=T.current;if(w.current.size>0){if(t){t.pinch=void 0;let[e]=[...w.current.values()];t.last=e}return}if(T.current=null,!t)return;if(t.pinched){_.s<1.15&&v({..._,s:1,by:`press`});return}if(!t.moved&&Math.hypot(e.clientX-t.x,e.clientY-t.y)<=zf){v(S?{..._,s:1,by:`press`}:A(e.clientX,e.clientY,Bf,`press`));return}if(S)return;let n=e.clientX-t.x;Math.abs(n)>Rf&&Math.abs(n)>Math.abs(e.clientY-t.y)*1.5&&p.current(n<0?1:-1)},P=e=>{w.current.delete(e.pointerId),w.current.size||(T.current=null)},F=`cubic-bezier(0.22, 1, 0.36, 1)`,te=d||_.by===`finger`||_.by===`mouse`?`none`:`transform 350ms ${F}, transform-origin 350ms ${F}`,I=`absolute z-10 flex h-11 w-11 items-center justify-center rounded-full border border-[var(--panel-border)] bg-background/80 text-foreground backdrop-blur-sm transition-colors hover:bg-background focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/40 cursor-pointer`;return(0,G.jsx)(D.t,{open:c,onClose:a,size:`xl`,title:u?`${l+1} of ${s.length}`:void 0,className:`px-3 pb-4 sm:px-5 sm:pb-5`,children:h&&(0,G.jsxs)(`figure`,{className:`select-none`,children:[(0,G.jsxs)(`div`,{className:`relative`,children:[(0,G.jsx)(`div`,{ref:C,"data-lightbox-stage":!0,className:`relative overflow-hidden rounded-xl`,style:{touchAction:`none`,cursor:S?`zoom-out`:`zoom-in`},onPointerDown:ee,onPointerMove:M,onPointerUp:N,onPointerCancel:P,children:(0,G.jsx)(`div`,{className:`h-[62dvh] w-full sm:h-[72vh]`,style:{transform:`scale(${_.s})`,transformOrigin:`${_.x*100}% ${_.y*100}%`,transition:te,willChange:S?`transform`:void 0},children:(0,G.jsx)(r.t,{src:h.src,alt:h.alt||h.caption||``,fit:`contain`,priority:!0,draggable:!1,className:`h-full w-full`,preload:u?[s[(l+1)%s.length].src,s[(l-1+s.length)%s.length].src].filter(Boolean):void 0})})}),u&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{type:`button`,"aria-label":`Previous picture`,onClick:()=>p.current(-1),className:`${I} left-2 top-1/2 -translate-y-1/2`,children:(0,G.jsx)(f.p,{className:`h-5 w-5`,"aria-hidden":`true`})}),(0,G.jsx)(`button`,{type:`button`,"aria-label":`Next picture`,onClick:()=>p.current(1),className:`${I} right-2 top-1/2 -translate-y-1/2`,children:(0,G.jsx)(n.q,{className:`h-5 w-5`,"aria-hidden":`true`})})]}),(0,G.jsx)(`button`,{type:`button`,"aria-label":S?`Zoom out`:`Zoom in`,onClick:()=>v(S?{..._,s:1,by:`press`}:k(Bf,.5,.5,`press`)),className:`${I} bottom-3 right-3`,children:S?(0,G.jsx)(f.o,{className:`h-5 w-5`,"aria-hidden":`true`}):(0,G.jsx)(f.a,{className:`h-5 w-5`,"aria-hidden":`true`})})]}),h.caption&&(0,G.jsx)(`figcaption`,{className:`mt-3 text-center text-sm text-foreground/70`,children:h.caption})]})})}Gf.displayName=`Lightbox`;var Kf=/^(?:https?:\/\/|mailto:|tel:|\/(?!\/))/i,qf=/\*\*([^*]+)\*\*|\*([^*\n]+)\*|\[([^\]]+)\]\(([^)\s]+)\)|(https?:\/\/[^\s<>()]+[^\s<>().,;:!?'"])/g;function Jf(e,t){let n=[],r=0,i=0;for(let a of e.matchAll(qf)){let o=a.index??0;o>r&&n.push(e.slice(r,o));let s=`${t}-${i++}`;if(a[1]!=null)n.push((0,G.jsx)(`strong`,{className:`font-semibold text-foreground`,children:a[1]},s));else if(a[2]!=null)n.push((0,G.jsx)(`em`,{children:a[2]},s));else{let e=a[4]??a[5],t=a[3]??a[5];if(e&&Kf.test(e)){let r=/^https?:/i.test(e);n.push((0,G.jsx)(`a`,{href:e,...r?{target:`_blank`,rel:`noopener noreferrer`}:{},className:`font-medium text-accent underline decoration-accent/40 underline-offset-4 transition-colors hover:decoration-accent`,children:t},s))}else n.push(t)}r=o+a[0].length}return r<e.length&&n.push(e.slice(r)),n}var Yf=(e,t)=>e.map((e,n)=>(0,G.jsxs)(W.Fragment,{children:[n>0&&(0,G.jsx)(`br`,{}),Jf(e,`${t}-l${n}`)]},`${t}-l${n}`)),Xf=/^!\[([^\]]*)\]\((https?:\/\/[^)\s]+)\)$/;function Zf({text:e,className:t}){let n=String(e??``).replace(/\r\n?/g,`
|
|
21
21
|
`).trim();if(!n)return null;let i=n.split(/\n{2,}/).map(e=>e.split(`
|
|
22
|
-
`).map(e=>e.trimEnd()).filter(e=>e.trim()!==``)),a=[];return i.forEach((e,t)=>{if(!e.length)return;let n=`b${t}`,i=e[0].trim(),o=e.length===1&&i.match(/^(#{1,3})\s+(.+)$/),s=e.length===1&&i.match(
|
|
23
|
-
`),j=(0,
|
|
24
|
-
`):[]},[A]);let
|
|
22
|
+
`).map(e=>e.trimEnd()).filter(e=>e.trim()!==``)),a=[];return i.forEach((e,t)=>{if(!e.length)return;let n=`b${t}`,i=e[0].trim(),o=e.length===1&&i.match(/^(#{1,3})\s+(.+)$/),s=e.length===1&&i.match(Xf);if(o){let e=o[1].length>1;a.push(e?(0,G.jsx)(`h3`,{className:`mt-10 text-xl font-bold tracking-tight text-foreground first:mt-0`,children:Jf(o[2],n)},n):(0,G.jsx)(`h2`,{className:`mt-12 text-2xl font-bold tracking-tight text-foreground first:mt-0 md:text-3xl`,children:Jf(o[2],n)},n))}else s?a.push((0,G.jsx)(r.t,{src:s[2],alt:s[1],className:`my-2 w-full overflow-hidden rounded-2xl`},n)):e.every(e=>/^\s*[-*•]\s+/.test(e))?a.push((0,G.jsx)(`ul`,{className:`list-disc space-y-2 pl-6 marker:text-foreground/40`,children:e.map((e,t)=>(0,G.jsx)(`li`,{children:Jf(e.replace(/^\s*[-*•]\s+/,``),`${n}-${t}`)},t))},n)):e.every(e=>/^\s*\d+[.)]\s+/.test(e))?a.push((0,G.jsx)(`ol`,{className:`list-decimal space-y-2 pl-6 marker:font-semibold marker:text-foreground/50`,children:e.map((e,t)=>(0,G.jsx)(`li`,{children:Jf(e.replace(/^\s*\d+[.)]\s+/,``),`${n}-${t}`)},t))},n)):e.every(e=>/^\s*>\s?/.test(e))?a.push((0,G.jsx)(`blockquote`,{className:`border-l-2 border-accent/50 pl-5 text-foreground/70 italic`,children:Yf(e.map(e=>e.replace(/^\s*>\s?/,``)),n)},n)):a.push((0,G.jsx)(`p`,{children:Yf(e,n)},n))}),(0,G.jsx)(`div`,{className:r.E(`flex w-full max-w-[70ch] flex-col gap-5 text-[17px] leading-8 text-foreground/80 break-words`,t),children:a})}Zf.displayName=`Article`;var Qf=`relative w-[88px] h-[88px] shrink-0 rounded-[var(--card-radius,1rem)] overflow-hidden border border-[var(--panel-border)] bg-[var(--panel-bg)]`,$f=Qf.replace(`w-[88px] h-[88px]`,`w-[112px] h-[112px]`),ep=(e,t=``)=>t.startsWith(`image/`)||e.startsWith(`data:image/`)||/\.(?:jpe?g|png|gif|webp|avif|svg)(?:[?#]|$)/i.test(e),tp=e=>{try{return A.x(decodeURIComponent(new URL(e).pathname.split(`/o/`)[1]||new URL(e).pathname).split(`/`).pop()||``).replace(/^\d{10,}_[a-z0-9]+_/,``)||`Your file`}catch{return`Your file`}};function np({item:e,onStop:t,tile:n=Qf}){return(0,G.jsxs)(`div`,{className:n,children:[e.file.type.startsWith(`image/`)?(0,G.jsx)(c.n,{file:e.file,className:`w-full h-full object-cover opacity-60`}):(0,G.jsxs)(`span`,{className:`flex flex-col items-center justify-center gap-1 w-full h-full p-2 text-center`,children:[(0,G.jsx)(f.d,{className:`w-5 h-5 text-accent/40`,"aria-hidden":!0}),(0,G.jsx)(`span`,{className:`text-[10px] font-semibold text-foreground/40 leading-tight line-clamp-2 break-all`,children:e.file.name})]}),(0,G.jsx)(`span`,{role:`progressbar`,"aria-label":`Uploading ${e.file.name}`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(e.progress*100),className:`absolute left-2 right-2 bottom-2 h-1 rounded-full bg-foreground/15 overflow-hidden`,children:(0,G.jsx)(`span`,{className:`block h-full rounded-full bg-accent transition-[width] duration-200`,style:{width:`${Math.max(4,e.progress*100)}%`}})}),(0,G.jsx)(`button`,{type:`button`,onClick:t,"aria-label":`Stop ${e.file.name}`,title:`Stop`,className:`absolute top-1 right-1 w-6 h-6 rounded-lg flex items-center justify-center bg-background/85 text-foreground/60 hover:text-red-500 transition-colors cursor-pointer`,children:(0,G.jsx)(T.t,{className:`w-3.5 h-3.5`})})]})}function rp({value:e,onChange:t,label:i,hint:a,accept:s=`image/*`,multiple:l=!1,max:u,sortable:d=!1,shared:p=!1,disabled:m=!1,className:h}){let{user:g,userRole:_,isAdmin:v}=n.Q(),y=c._(),x=y.prefix||(g?`user_`:`pub_`),[S,C]=(0,W.useState)(``),[w,E]=(0,W.useState)([]),D=(0,W.useRef)([]),O=(0,W.useRef)(new Map),k=Array.isArray(e)?e.filter(Boolean):e?[e]:[],A=k.join(`
|
|
23
|
+
`),j=(0,W.useRef)(k);(0,W.useEffect)(()=>{j.current=A?A.split(`
|
|
24
|
+
`):[]},[A]);let ee=e=>{j.current=e;let n=e.map(e=>D.current.find(t=>t.url===e)).filter(Boolean);l?t(e,n):t(e[0]||``,n[0]||null)},M=e=>{let t=D.current.find(t=>t.url===e);t&&c.m(t.storagePath)},N=c.b({stopOnUnmount:!0,upload:(e,t)=>c.g(e,{prefix:x,shared:p,user:g?{uid:g.uid,internal:o.O(_),admin:!!v||o.A(_)}:null,onProgress:t.progress,signal:t.signal,collection:y.collection,recordId:y.recordId}),onUploaded:(e,t)=>{D.current=[...D.current,e],E(D.current),O.current.set(e.url,t.seq),N.remove(t.id),l?ee(c.v([...j.current,e.url],O.current)):(j.current.forEach(M),ee([e.url]))},onFailed:e=>{C(l?`${e.file.name}: ${e.error}`:e.error||``),N.remove(e.id)}}),P=N.items.filter(e=>e.state===`waiting`||e.state===`uploading`),F=P.length>0,te=l&&!!u&&k.length+P.length>=u,I=e=>{if(m)return;let t=e;l?u&&(t=e.slice(0,Math.max(0,u-j.current.length-P.length))):(P.forEach(e=>N.remove(e.id)),t=e.slice(0,1)),t.length&&(C(``),N.add(t))},L=e=>{let t=Array.from(e.target.files||[]);e.target.value=``,t.length&&I(t)},R=e=>{e.forEach(e=>O.current.delete(e)),ee(e)},ne=e=>{C(``),M(e),ee(j.current.filter(t=>t!==e))},{over:re,dropProps:ie}=r.r({accept:s,multiple:l,disabled:m||te,onFiles:I,onReject:()=>C(s.startsWith(`image`)?`That is not a picture — drop a JPG or a PNG.`:`That kind of file does not go here.`)}),z=(0,G.jsx)(`input`,{type:`file`,accept:s,multiple:l,disabled:m||te,onChange:L,"aria-label":i?`Upload ${i}`:`Upload a file`,className:`sr-only`}),B=d&&l,ae=(e,t)=>{let n=w.find(t=>t.url===e);return(0,G.jsxs)(`div`,{className:B?$f:Qf,children:[ep(e,n?.type)?(0,G.jsx)(r.t,{src:e,alt:i||tp(e),className:`absolute inset-0`}):(0,G.jsxs)(`span`,{className:`flex flex-col items-center justify-center gap-1 w-full h-full p-2 text-center`,children:[(0,G.jsx)(f.d,{className:`w-5 h-5 text-accent/60`,"aria-hidden":!0}),(0,G.jsx)(`span`,{className:`text-[10px] font-semibold text-foreground/50 leading-tight line-clamp-2 break-all`,children:n?.name||tp(e)})]}),!m&&(0,G.jsx)(`button`,{type:`button`,onClick:()=>ne(e),"aria-label":`Remove ${i||tp(e)}`,title:`Remove`,className:r.E(`absolute top-1 w-6 h-6 rounded-lg flex items-center justify-center bg-background/85 text-foreground/60 hover:text-red-500 transition-colors cursor-pointer`,B?`left-1`:`right-1`),children:(0,G.jsx)(T.t,{className:`w-3.5 h-3.5`})}),B&&(t===0?(0,G.jsx)(`span`,{className:`absolute bottom-1 left-1 px-2 py-0.5 rounded-md bg-foreground text-background text-[10px] font-bold`,children:`Main`}):!m&&(0,G.jsx)(`button`,{type:`button`,disabled:F,title:F?`Once every picture has landed`:`Make this the main picture`,onClick:()=>R([e,...j.current.filter(t=>t!==e)]),className:`absolute bottom-1 left-1 px-2 py-0.5 rounded-md bg-background/85 text-foreground/70 hover:text-foreground text-[10px] font-bold cursor-pointer backdrop-blur-sm disabled:opacity-40 disabled:cursor-default disabled:hover:text-foreground/70`,children:`Make main`}))]})},V=re?l?`Drop them here`:`Drop it here`:a||(s.startsWith(`image`)?`Upload ${l?`pictures`:`a picture`}, or drop ${l?`them`:`one`} here`:`Upload ${l?`files`:`a file`}, or drop ${l?`them`:`one`} here`);return(0,G.jsxs)(`div`,{className:r.E(`flex flex-col gap-2 min-w-0`,h),...ie,children:[i&&(0,G.jsx)(`span`,{className:`text-[12px] font-extrabold tracking-tight text-foreground/60`,children:i}),(0,G.jsxs)(`div`,{className:`flex flex-wrap items-start gap-2`,children:[B&&k.length>0?(0,G.jsx)(Vd,{items:k,onReorder:R,grip:`corner`,disabled:m||F,className:`flex flex-wrap items-start gap-2`,label:(e,t)=>`${i||tp(e)} ${t+1} of ${k.length}`,item:(e,t)=>ae(e,t)}):k.map((e,t)=>(0,G.jsx)(W.default.Fragment,{children:ae(e,t)},e)),P.map(e=>(0,G.jsx)(np,{item:e,onStop:()=>N.remove(e.id),tile:B?$f:Qf},e.id)),!te&&(0,G.jsxs)(`label`,{title:i?`Upload ${i}`:`Upload a file`,className:r.E(`group flex items-center gap-3 min-w-0 transition-colors`,k.length||P.length?r.E(B?$f:Qf,`flex-col items-center justify-center gap-1 text-foreground/40 hover:text-accent hover:border-accent/40`):r.E(`flex-1 w-full px-4 py-4 rounded-[var(--card-radius,1rem)] border border-dashed`,re?`border-accent bg-accent/[0.04]`:`border-[var(--panel-border)] hover:border-accent/40`),m?`opacity-50 pointer-events-none`:`cursor-pointer`),children:[k.length||P.length?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(b.t,{className:`w-5 h-5`,"aria-hidden":!0}),(0,G.jsx)(`span`,{className:`text-[10px] font-bold`,children:re?`Drop`:l?`Add`:`Swap`})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{"aria-hidden":!0,className:r.E(`w-10 h-10 shrink-0 rounded-xl flex items-center justify-center border transition-colors`,re?`border-accent text-accent`:`border-[var(--panel-border)] text-foreground/40 group-hover:text-accent group-hover:border-accent/40`),children:(0,G.jsx)(n.K,{className:`w-4 h-4`})}),(0,G.jsx)(`span`,{className:r.E(`text-[13px] font-semibold truncate`,re?`text-accent`:`text-foreground/50`),children:V})]}),z]})]}),S&&(0,G.jsx)(`span`,{className:`text-[12px] font-semibold text-red-500`,children:S})]})}var ip=r._t(()=>Promise.resolve().then(()=>require(`./AddressField-DagGSeja.cjs`)).then(e=>({default:e.AddressField}))),ap=({label:e,required:t})=>(0,G.jsxs)(`div`,{className:`flex flex-col w-full`,children:[(0,G.jsxs)(`span`,{className:`text-[13px] font-medium text-foreground/50 select-none mb-1.5 ml-1`,children:[e,` `,t&&(0,G.jsx)(`span`,{className:`text-red-500`,children:`*`})]}),(0,G.jsx)(`div`,{className:`h-12 w-full glass-panel opacity-60`,style:{borderRadius:`var(--input-radius, 0.75rem)`}})]});function op(e){return(0,G.jsx)(W.Suspense,{fallback:(0,G.jsx)(ap,{label:e.label,required:e.required}),children:(0,G.jsx)(ip,{...e})})}exports.AddressField=op,exports.AdminNotifications=Pt,exports.Article=Zf,exports.Bars=Df,exports.Basket=dd,exports.BasketButton=pd,exports.Button=O.t,exports.BuyButton=Ca,exports.BuyerDetails=ya,exports.Card=jd,exports.Checkout=Wu,exports.CheckoutReturn=Fa,exports.ConfirmModal=re.t,exports.ContactPopup=d.t,exports.CustomSelect=r.w,exports.DashboardNav=i.t,exports.DataTable=qd,exports.EMPTY_ADDRESS=j.n,exports.EVERYONE=F.t,exports.EmailWindow=Dd,exports.FileViewer=f.n,exports.FileViewerPopup=f.t,exports.FirebaseOS=_u,exports.HandOver=Ff,exports.History=uf,exports.Input=d.c,exports.Lightbox=Gf,exports.Loader=k.t,exports.MadeBy=sf,exports.ManagePlanButton=z.t,exports.MembersOnly=_d,exports.Navbar=xn,exports.NumberStepper=Cf,exports.PayButton=Hi,exports.PhoneInputField=U.t,exports.Picture=r.t,exports.Pipeline=Id,exports.Plans=Ta,exports.Popup=D.t,exports.PublicMenu=Ht,exports.Reveal=n.P,exports.RevealList=n.F,exports.SectionHeading=Md,exports.Skeleton=k.n,exports.Sortable=Vd,exports.StepBar=y.i,exports.Swap=n.I,exports.Swatch=gf,exports.SwatchField=vf,exports.TALLY_COUNTERS=yu,exports.TextArea=d.s,exports.TutorialVideo=p.n,exports.UploadBox=rp,exports.VideoPlayer=a.t,Object.defineProperty(exports,`auth`,{enumerable:!0,get:function(){return r.yt}}),exports.barShares=Tf,exports.canEdit=F.n,exports.canSee=F.r,exports.composeAddress=j.s,exports.confirmPayment=n.Qt,exports.countOf=xf,Object.defineProperty(exports,`db`,{enumerable:!0,get:function(){return r.bt}}),exports.emailAnyone=M.t,exports.emailOwner=M.r,exports.emailPerson=M.i,exports.emailStatus=M.o,exports.forPerson=F.a,exports.forRole=F.o,exports.hasAddress=j.c,exports.historyCollection=Yd,exports.holderOf=Af,exports.isPublished=F.s,exports.keysOf=F.c,exports.logHistory=Qd,exports.madeBy=rf,exports.money=n.xr,exports.notify=I.m,exports.openBillingPortal=n.tn,exports.payPath=n.nn,exports.publish=F.l,exports.registerMicrocomponent=Ad,exports.say=C.n,exports.sendTo=F.u,exports.shadeOf=ff,exports.shadesOf=pf,exports.startCheckout=n.in,Object.defineProperty(exports,`storage`,{enumerable:!0,get:function(){return r.St}}),exports.takeBack=F.d,exports.tally=Mu,exports.timeZoneLabel=n.n,exports.troubleSentence=r.mt,exports.unpublish=F.f,exports.unsay=C.r,exports.useAuth=n.Q,exports.useBasket=ad,exports.useCase=F.p,exports.useCases=F.m,exports.useCasesFromForm=I.l,exports.useConfig=r.wt,exports.useHistory=$d,exports.useMyPayments=n.sn,exports.usePaymentsEnabled=n.cn,exports.usePeople=L.r,exports.usePlans=C.o,exports.usePublicCopy=g.g,exports.usePublished=F.h,exports.useSales=n.ln,exports.useSteps=Lf,exports.useStock=No,exports.useStockFromOrders=Vu,exports.useTallies=Nu,exports.useTheme=i.L,exports.useVisitorState=d.o,exports.whenWords=nf,exports.withAccess=F.g,exports.withStockSetAt=Oo;
|