PageSourceSearch

https://app-theflowops.web.app/assets/MainLayout-MICx7WzL.js

js app-theflowops.web.app collected 2026-10-03 12:17:50 UTC 60,982 bytes, 3 lines download raw bytes

1import{j as a}from"./chunk-maps-BwFKK2ai.js";import{r as x,R as s}from"./chunk-state-Be9ntrKz.js";import{t as H,K as pe,a0 as ot,$ as it,A as G,m as st,e as lt,O as Ht,q as Ye}from"./hooks-CPHcGIez.js";import{B as Oe}from"./Button-BI-t7qVy.js";import{M as At}from"./index-DrunSFER.js";import{U as Pt,D as It,a as _t,S as Ze,b as Vt,d as qe}from"./dropdown-menu-Dcr-F1jA.js";import{t as Xe}from"./toDate-SX-ecmdR.js";import{a as Ft,b as Ut,P as Bt,O as zt}from"./check-DwHlYSiF.js";import{d as ut,a as Ge,b as Ke,c as Je}from"./FullAppShell-C0W-pIWt.js";import{a as Wt,F as Yt,P as Zt}from"./ProfileModal-C7qhdvcf.js";import{L as qt,H as Xt,A as Gt,C as Kt,P as Jt,R as Qt}from"./rocket-DDC7D6cz.js";import{C as en}from"./chevron-right-9Z1vsMFh.js";import"./chunk-dnd-C-C9ODMl.js";import"./index-CVxwXLTi.js";import"./createLucideIcon-Bo0fN4yp.js";import"./hooks-BnohG-P7.js";import"./404-BZkptLOD.js";import"./arrow-left-Ct-Dc9_A.js";import"./info-Po1ePkhg.js";import"./triangle-alert-CM5PntgU.js";import"./hooks-OqaOer_w.js";import"./Spinner-BFRgV1nR.js";function tn(e,n){return+Xe(e)>+Xe(n)}const nn=e=>x.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("path",{d:"M10.625 9.875V17.375C10.625 17.5408 10.5592 17.6997 10.4419 17.8169C10.3247 17.9342 10.1658 18 10 18C9.83424 18 9.67527 17.9342 9.55806 17.8169C9.44085 17.6997 9.375 17.5408 9.375 17.375V9.875C9.375 9.70924 9.44085 9.55027 9.55806 9.43306C9.67527 9.31585 9.83424 9.25 10 9.25C10.1658 9.25 10.3247 9.31585 10.4419 9.43306C10.5592 9.55027 10.625 9.70924 10.625 9.875ZM15.625 15.5C15.4592 15.5 15.3003 15.5658 15.1831 15.6831C15.0658 15.8003 15 15.9592 15 16.125V17.375C15 17.5408 15.0658 17.6997 15.1831 17.8169C15.3003 17.9342 15.4592 18 15.625 18C15.7908 18 15.9497 17.9342 16.0669 17.8169C16.1842 17.6997 16.25 17.5408 16.25 17.375V16.125C16.25 15.9592 16.1842 15.8003 16.0669 15.6831C15.9497 15.5658 15.7908 15.5 15.625 15.5ZM17.5 13H16.25V3.625C16.25 3.45924 16.1842 3.30027 16.0669 3.18306C15.9497 3.06585 15.7908 3 15.625 3C15.4592 3 15.3003 3.06585 15.1831 3.18306C15.0658 3.30027 15 3.45924 15 3.625V13H13.75C13.5842 13 13.4253 13.0658 13.3081 13.1831C13.1908 13.3003 13.125 13.4592 13.125 13.625C13.125 13.7908 13.1908 13.9497 13.3081 14.0669C13.4253 14.1842 13.5842 14.25 13.75 14.25H17.5C17.6658 14.25 17.8247 14.1842 17.9419 14.0669C18.0592 13.9497 18.125 13.7908 18.125 13.625C18.125 13.4592 18.0592 13.3003 17.9419 13.1831C17.8247 13.0658 17.6658 13 17.5 13ZM4.375 13C4.20924 13 4.05027 13.0658 3.93306 13.1831C3.81585 13.3003 3.75 13.4592 3.75 13.625V17.375C3.75 17.5408 3.81585 17.6997 3.93306 17.8169C4.05027 17.9342 4.20924 18 4.375 18C4.54076 18 4.69973 17.9342 4.81694 17.8169C4.93415 17.6997 5 17.5408 5 17.375V13.625C5 13.4592 4.93415 13.3003 4.81694 13.1831C4.69973 13.0658 4.54076 13 4.375 13ZM6.25 10.5H5V3.625C5 3.45924 4.93415 3.30027 4.81694 3.18306C4.69973 3.06585 4.54076 3 4.375 3C4.20924 3 4.05027 3.06585 3.93306 3.18306C3.81585 3.30027 3.75 3.45924 3.75 3.625V10.5H2.5C2.33424 10.5 2.17527 10.5658 2.05806 10.6831C1.94085 10.8003 1.875 10.9592 1.875 11.125C1.875 11.2908 1.94085 11.4497 2.05806 11.5669C2.17527 11.6842 2.33424 11.75 2.5 11.75H6.25C6.41576 11.75 6.57473 11.6842 6.69194 11.5669C6.80915 11.4497 6.875 11.2908 6.875 11.125C6.875 10.9592 6.80915 10.8003 6.69194 10.6831C6.57473 10.5658 6.41576 10.5 6.25 10.5ZM11.875 6.75H10.625V3.625C10.625 3.45924 10.5592 3.30027 10.4419 3.18306C10.3247 3.06585 10.1658 3 10 3C9.83424 3 9.67527 3.06585 9.55806 3.18306C9.44085 3.30027 9.375 3.45924 9.375 3.625V6.75H8.125C7.95924 6.75 7.80027 6.81585 7.68306 6.93306C7.56585 7.05027 7.5 7.20924 7.5 7.375C7.5 7.54076 7.56585 7.69973 7.68306 7.81694C7.80027 7.93415 7.95924 8 8.125 8H11.875C12.0408 8 12.1997 7.93415 12.3169 7.81694C12.4342 7.69973 12.5 7.54076 12.5 7.375C12.5 7.20924 12.4342 7.05027 12.3169 6.93306C12.1997 6.81585 12.0408 6.75 11.875 6.75Z",fill:"#111928"})),an=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:130,height:24,viewBox:"0 0 130 24",fill:"none",...e},x.createElement("mask",{id:"mask0_1_2703",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:24,height:25},x.createElement("path",{d:"M11.9235 24.0003C18.5087 24.0003 23.847 18.6277 23.847 12.0003C23.847 5.37287 18.5087 0.000289917 11.9235 0.000289917C5.33834 0.000289917 0 5.37287 0 12.0003C0 18.6277 5.33834 24.0003 11.9235 24.0003Z",fill:"white"})),x.createElement("g",{mask:"url(#mask0_1_2703)"},x.createElement("path",{d:"M11.9235 24.0245C18.5087 24.0245 23.847 18.6519 23.847 12.0245C23.847 5.39707 18.5087 0.0244904 11.9235 0.0244904C5.33834 0.0244904 0 5.39707 0 12.0245C0 18.6519 5.33834 24.0245 11.9235 24.0245Z",fill:"#0078E5"}),x.createElement("path",{d:"M8.55604 7.3582C6.57729 7.3582 4.6856 9.05732 4.32107 11.1696C4.19008 11.924 4.27545 12.6287 4.52991 13.2222C3.09691 14.5835 0.885474 13.9357 -0.699865 13.0764C-1.36614 12.7154 -1.96085 13.7369 -1.29332 14.0987C0.66659 15.1609 3.4267 15.8306 5.2146 14.209C5.7298 14.6926 6.42663 14.9807 7.23687 14.9807C9.19804 14.9807 11.0897 13.2655 11.4543 11.1696C11.8188 9.05774 10.5168 7.3582 8.55562 7.3582H8.55604ZM9.97899 11.1696C9.75341 12.5196 8.62509 13.6151 7.47961 13.6151C6.31656 13.6151 5.58792 12.5196 5.8135 11.1696C6.05666 9.8
1197 7.14982 8.72373 8.31288 8.72373C9.45836 8.72373 10.2221 9.8197 9.97899 11.1696Z",fill:"white"}),x.createElement("path",{d:"M19.9788 13.5127C19.5683 13.5401 19.115 13.4971 18.7128 13.3704C18.6467 13.3493 18.6195 13.2697 18.6559 13.2099C18.7773 13.0102 18.892 12.8072 18.9836 12.5941C19.0326 12.4955 19.0799 12.3961 19.1238 12.295C19.1426 12.2516 19.187 12.2251 19.2339 12.2306C19.2937 12.2373 19.3314 12.2407 19.4226 12.2407L19.5549 12.2394L19.8922 12.2268C22.9361 12.0242 25.2103 10.2156 27.3929 8.45031C27.9775 7.97731 28.8146 8.81002 28.2244 9.28724C25.8556 11.2029 23.5722 13.2537 20.4434 13.4841",fill:"white"}),x.createElement("path",{d:"M18.9635 12.1346C19.2025 11.5656 19.3615 10.9519 19.459 10.3491C19.7746 8.37961 19.2318 7.10927 18.0579 7.10927C17.0731 7.10927 16.5554 8.62096 16.442 9.43429C16.3537 9.99323 16.2779 11.0605 16.7831 11.9758C16.8592 12.1291 17.0563 12.3852 17.2166 12.5626C17.2535 12.603 17.3183 12.5996 17.3485 12.5537C17.4573 12.389 17.5615 12.2016 17.6598 12.0125C17.7528 11.8335 17.7749 11.8065 17.9097 11.51C17.9223 11.4826 17.921 11.4497 17.9043 11.4249C17.7749 11.2295 17.5891 10.9889 17.541 10.7303C17.4401 10.2224 17.4527 9.61246 17.5916 9.05353C17.7013 8.6555 17.8402 8.39182 17.9323 8.25493C17.9536 8.22292 17.9942 8.20607 18.029 8.22208C18.1646 8.28315 18.2713 8.44152 18.3491 8.69761C18.4881 9.10407 18.4881 9.6887 18.3868 10.3496C18.3295 10.7632 18.2186 11.1861 18.0675 11.5833C18.0449 11.6536 18.0181 11.7227 17.9896 11.7909C17.9896 11.793 17.9896 11.7951 17.9896 11.7976C17.9758 11.8469 17.9407 11.9029 17.9227 11.9501C17.7574 12.2744 17.5979 12.5845 17.4029 12.8915C17.4004 12.8928 17.3983 12.8953 17.3958 12.8961C17.3075 13.0259 17.2171 13.1446 17.1246 13.2478C17.12 13.2546 17.1154 13.2613 17.1108 13.2681C17.1015 13.2815 17.0902 13.2904 17.0785 13.2971C16.7349 13.6602 16.3654 13.8443 15.9887 13.8443C15.913 13.8443 15.8247 13.8316 15.7363 13.7171C15.6351 13.5646 15.4082 13.0436 15.61 11.4552C15.7221 10.6971 15.8832 10.013 15.9481 9.76999C15.9615 9.72029 15.928 9.67059 15.877 9.66427L14.9868 9.55771C14.9458 9.55265 14.9077 9.57792 14.8964 9.61794C14.6193 10.5804 13.5006 13.8438 12.4665 13.8438C12.1509 13.8438 12.0626 13.3102 12.0371 13.1451C11.8747 11.8128 12.7502 9.27424 14.7491 8.11299C14.7863 8.09151 14.8014 8.04602 14.7838 8.00643L14.4364 7.2331C14.4159 7.18719 14.3594 7.16908 14.3163 7.19393C12.89 8.02032 12.0794 9.26118 11.6332 10.1714C11.0904 11.2893 10.838 12.5091 10.964 13.4365C11.0778 14.3893 11.5575 14.9356 12.2894 14.9356C13.0131 14.9356 13.7036 14.4529 14.3393 13.509C14.382 13.4454 14.4787 13.4652 14.4917 13.5406C14.6164 14.2638 14.9742 14.9356 15.8117 14.9356C16.7458 14.9356 17.6423 14.364 18.3366 13.322C18.3655 13.2933 18.3784 13.2702 18.3889 13.2449C18.3914 13.2462 18.3939 13.247 18.3964 13.2483C18.4847 13.1008 18.5701 12.9522 18.6517 12.8009C18.7049 12.6999 18.758 12.5992 18.8087 12.4968C18.8384 12.4366 18.8664 12.376 18.8924 12.314C18.8982 
112.2997 18.9066 12.2829 18.9146 12.2664",fill:"white"}),x.createElement("path",{d:"M15.275 15.8195C12.8631 17.4285 9.72797 17.3923 7.33741 15.7618C6.76111 15.3688 6.2455 16.3245 6.81636 16.7137C9.50658 18.5489 13.1393 18.5476 15.8433 16.7436C16.4213 16.3582 15.8563 15.4316 15.275 15.8195Z",fill:"white"})),x.createElement("path",{d:"M26.5767 12.2279C26.5767 8.02058 29.9666 4.5183 34.192 4.49597C34.9826 4.49597 35.7284 4.63202 36.4515 4.85947C39.5477 5.86024 41.7847 8.77116 41.7847 12.2275C41.7847 16.4349 38.4177 19.9149 34.1924 19.9603C30.0344 19.9149 26.5771 16.5036 26.5771 12.2275L26.5767 12.2279ZM39.0501 12.2279C39.0501 9.72686 36.7001 7.65708 34.192 7.61159C31.6608 7.65708 29.3108 9.72686 29.3108 12.2279C29.3108 14.7526 31.6834 16.7992 34.192 16.8447C36.6775 16.7992 39.0501 14.7526 39.0501 12.2279Z",fill:"black"}),x.createElement("path",{d:"M49.8059 19.9608V13.2292H46.1221V19.9608H43.0264V4.49641H46.1221V11.2049H49.8059V4.49641H52.9017V19.9608H49.8059Z",fill:"black"}),x.createElement("path",{d:"M60.9222 19.9608V13.2292H57.2392V19.9608H54.1431V4.49641H57.2392V11.2049H60.9222V4.49641H64.018V19.9608H60.9222Z",fill:"black"}),x.createElement("path",{d:"M84.9922 19.9605V4.54288H94.8143V7.64881H88.0787V11.2307H93.7781V13.2491H88.0787V16.8537H94.8143V19.9601L84.9922 19.9605Z",fill:"black"}),x.createElement("path",{d:"M96.0527 19.9605V4.54288H99.1389V16.8537H103.397V19.9601L96.0527 19.9605Z",fill:"black"}),x.createElement("path",{d:"M104.635 19.9605V4.54288H107.721V16.8537H111.979V19.9601L104.635 19.9605Z",fill:"black"}),x.createElement("path",{d:"M118.467 19.9372C117.679 19.8466 116.935 19.6427 116.237 19.3479C115.178 18.8951 114.232 18.1921 113.489 17.3303L113.376 17.1716C112.745 16.4235 112.272 15.5617 111.979 14.6094L114.48 13.2493C114.75 14.2467 115.404 15.1532 116.26 15.8111C116.981 16.3553 
1117.837 16.7411 118.76 16.8312C118.986 16.854 119.368 16.8995 119.842 16.8995C120.945 16.8995 122.432 16.6724 122.883 15.4029C122.928 15.29 122.95 15.1536 122.95 15.063C122.95 13.9068 120.608 13.6802 120.067 13.5892C118.715 13.385 116.373 12.9991 114.525 11.8434C113.533 11.2086 112.993 9.96144 112.993 8.80525C112.993 8.28338 113.105 7.7851 113.331 7.37696C114.277 5.72206 115.921 5.10964 117.611 4.74698C118.13 4.61093 118.67 4.56544 119.233 4.56544C119.458 4.56544 119.684 4.56545 119.909 4.58861C120.698 4.67917 121.441 4.86071 122.116 5.15513C123.288 5.65425 124.279 6.44737 125.045 7.40012L122.342 8.89665C121.576 8.23873 120.63 7.78552 119.616 7.67222H118.782C116.935 7.67222 115.313 8.48808 115.313 9.39535C115.313 10.1434 116.327 10.9374 119.075 11.4811C120.81 11.7991 122.59 11.8893 123.941 12.5472C125.27 13.2043 125.721 14.2472 125.721 15.245C125.721 15.7668 125.586 16.2651 125.383 16.6733C124.504 18.3513 122.792 19.0312 122.59 19.1221H122.567C122.004 19.417 121.395 19.644 120.764 19.7792C120.201 19.8925 119.616 19.9607 119.03 19.9607L118.466 19.9376L118.467 19.9372Z",fill:"black"}),x.createElement("path",{d:"M130 18.3955C130 19.2342 129.324 19.9371 128.468 19.9371C127.634 19.9371 126.958 19.2342 126.958 18.3955C126.958 17.5569 127.634 16.8535 128.468 16.8535C129.324 16.8535 130 17.5565 130 18.3955Z",fill:"black"}),x.createElement("path",{d:"M85.0172 15.2981C84.3815 15.3415 83.2632 15.1954 82.8305 14.9418C82.8225 14.9372 82.8129 14.9359 82.8054 14.9313C82.7916 14.9254 82.7769 14.9207 82.7644 14.9136C82.7049 14.8803 82.6501 14.8323 82.6007 14.7851C82.5999 14.7843 82.5995 14.783 82.5986 14.7822L82.589 14.7746C82.589 14.7746 82.5869 14.7729 82.5861 14.7721C82.5844 14.7708 82.5832 14.7691 82.5815 14.7674C82.5367 14.7219 82.5053 14.668 82.4881 14.6061V14.6036C82.4254 14.4591 82.4371 14.2245 82.4718 14.0703C82.7267 12.9432 82.8539 11.7428 82.8539 10.5638C82.8539 6.36363 81.2657 3.65363 78.7617 3.65363C76.6076 3.65363 76.0962 6.98701 76.0962 8.61242C76.0962 11.0996 77.2015 13.7039 79.1275 15.3171C79.2107 15.3866 79.3413 15.3563 79.3895 15.259C79.6954 14.6377 79.8996 14.0733 80.0587 13.4002C80.0854 13.2869 80.0725 13.2292 79.9775 13.1635C79.89 13.1033 79.7603 12.9668 79.7247 12.9217C79.3786 12.4887 79.0998 11.9711 78.8969 11.3768C78.493 10.293 78.331 8.99192 78.439 7.7995C78.4641 7.57205 78.4963 7.36566 78.5336 7.17949C78.6704 6.48915 79.6301 6.37795 79.9118 7.02239C79.9143 7.0287 79.9172 7.0346 79.9197 7.04092C80.3508 7.90817 80.5663 9.1545 80.5663 10.5634C80.5663 11.2609 80.5697 11.5507 80.4596 12.2368C80.4688 12.2655 80.4131 12.7174 80.4085 12.7524C80.3257 13.353 80.2842 13.6832 80.1708 14.0847C80.088 14.3765 79.967 14.7333 79.7644 15.1238L79.4079 15.8208C78.6809 17.2841 77.7116 18.0153 76.608 18.0153C75.2081 18.0153 75.0465 13.6799 75.0193 12.9213C75.0013 11.5625 75.0817 10.3158 75.1361 9.64478C75.1595 9.35542 74.9515 9.10059 74.6648 9.06647L73.413 8.91821C73.1255 8.88409 72.8644 9.085 72.8208 9.37268C72.4651 11.7264 71.2024 18.0153 69.0965 18.0153C68.4231 18.0153 68.0732 16.8776 67.9656 16.5251C67.1864 13.7553 68.1351 8.54123 71.7528 5.98581C71.9834 5.82281 72.0391 5.50185 71.8938 5.25882L71.2656 4.21003C71.11 3.95015 70.7672 3.86423 70.5178 4.03523C67.9535 5.79332 66.718 8.31547 66.1074 10.1843C65.3265 12.5692 65.1917 15.1705 65.7575 17.1485C66.323 19.1812 67.5346 20.3462 69.0965 20.3462C70.465 20.3462 71.6469 19.5371 72.6258 17.9504C72.8543 17.5798 73.3976 17.6131 73.5721 18.0123C74.13 19.2886 75.0737 20.3462 76.6084 20.3462C78.601 20.3462 80.324 19.1268 81.4548 16.905C81.5088 16.8233 81.5356 16.7694 81.5624 16.6885C82.0814 16.8241 84.1526 17.5044 85.0306 17.5865C85.2621 17.6084 85.0604 17.0908 85.0361 16.8583C84.9913 16.4303 85.1378 15.7282 85.0997 15.2274C85.0972 15.1928 85.0532 15.296 85.0189 15.2986L85.0172 15.2981Z",fill:"black"})),ke=e=>{const{className:n,children:t}=e;return t?a.jsxs("div",{className:"flex flex-row w-full items-center space-x-2.5 my-5",children:[a.jsx(ke,{className:"flex-1"}),t,a.jsx(ke,{className:"flex-1"})]}):a.jsx("div",{...e,className:H(["border-t-2",n])})},rn=({handleToggleDrawer:e})=>
1{const[n,t]=x.useState(!1),r=x.useRef(null);return x.useEffect(()=>{const o=i=>{r.current&&!r.current.contains(i.target)&&t(!1)};return n&&document.addEventListener("mousedown",o),()=>{document.removeEventListener("mousedown",o)}},[n]),a.jsxs("div",{className:"bg-stone-50 lg:w-[250px] w-full min-w-[250px] z-[60] relative border-r border-r-stone-200",children:[a.jsxs("div",{className:"flex p-4 gap-4 items-center",children:[a.jsxs("button",{onClick:e,className:"sm:hidden flex flex-col gap-1 p-2",children:[a.jsx("span",{className:"w-5 h-0.5 bg-stone-500"}),a.jsx("span",{className:"w-5 h-0.5 bg-stone-500"}),a.jsx("span",{className:"w-5 h-0.5 bg-stone-500"})]}),a.jsx(pe,{className:"block",to:"https://app.ohhwells.com/",target:"_blank",children:a.jsx(an,{className:"h-6","data-id":"website-logo"})})]}),a.jsx(ke,{className:"border-stone-200 border-t"})]})},on="/assets/central-park-D5DoptEd.png",sn=({className:e,children:n,contentAlignment:t="center",onAfterClose:r})=>{const[o,i]=x.useState(!0),d=()=>{i(!1),r==null||r()},p={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",padding:0,borderRadius:12,border:"none",overflow:"visible"},overlay:{zIndex:300,backgroundColor:"#3C3C434D"}},v=(b,l)=>a.jsx("div",{...b,children:l});return a.jsx(At,{style:p,contentElement:v,isOpen:o,onRequestClose:d,children:a.jsxs("div",{className:H("relative max-h-[calc(100vh-2rem)] rounded-xl flex flex-col gap-y-[25px] overflow-hidden w-[360px]",e),"data-id":"free-trial-modal-body",children:[a.jsx("img",{src:on,alt:"Free Trial Modal",width:350,height:350,className:"object-cover rounded-xl max-w-[350px] m-auto mt-[5px]"}),a.jsx("div",{className:H("ohw-modal-scroll flex flex-col gap-y-5 justify-center min-h-0 overflow-y-auto pb-[30px]",t==="stretch"?"items-stretch text-left":"items-center text-center"),"data-id":"free-trial-modal-body",children:n({onClose:d})})]})})},ln=()=>{const{handlePlanClick:e}=ot();return a.jsx(sn,{children:({onClose:n})=>{const t=()=>{e(),n()};return a.jsxs(s.Fragment,{children:[a.jsxs("div",{className:"flex flex-col gap-y-3 items-center justify-center",children:[a.jsx("h2",{className:"text-xl font-bold max-w-[320px] font-charlie-display","data-id":"free-trial-modal-title",children:"Your premium trial is over"}),a.jsx("p",{className:"text-sm text-stone-600 font-figtree","data-id":"free-trial-modal-text",children:"Upgrade to unlock more features."})]}),a.jsxs("div",{className:"flex gap-1 items-center font-figtree",children:[a.jsx(Oe,{onClick:n,className:"px-4 py-2 rounded-lg border-slate-300 border bg-transparent text-slate-950 w-auto leading-normal",children:"Maybe later"}),a.jsx(Oe,{className:"bg-primary-500 text-white text-sm leading-normal font-medium rounded-lg w-fit px-4 py-2",onClick:t,"data-id":"free-trial-modal-button",children:"Upgrade Now"})]})]})}})},un=({isLoading:e,isSubscriptionActive:n,data:t,isTrialEnded:r,shouldShowUpgradeModal:o})=>{const i=!e&&!n&&t&&tn(t==null?void 0:t.registeredAt,"07.20.2025")&&r;return a.jsxs(a.Fragment,{children:[i?a.jsx(ln,{}):null,o?a.jsx(Pt,{}):null]})};function cn(e){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css",n.appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}const ct=s.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),he=()=>{const e=s.useContext(ct);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};cn(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
2[data-state=closed]
3){opacity:0}
3[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function dn(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function fn(){return He(/^Mac/)}function mn(){return He(/^iPhone/)}function Qe(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function pn(){return He(/^iPad/)||fn()&&navigator.maxTouchPoints>1}function dt(){return mn()||pn()}function He(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const hn=24,gn=typeof window<"u"?x.useLayoutEffect:x.useEffect;function et(...e){return(...n)=>{for(let t of e)typeof t=="function"&&t(...n)}}const Ne=typeof document<"u"&&window.visualViewport;function tt(e){let n=window.getComputedStyle(e);return/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY)}function ft(e){for(tt(e)&&(e=e.parentElement);e&&!tt(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const wn=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Ce=0,Re;function vn(e={}){let{isDisabled:n}=e;gn(()=>{if(!n)return Ce++,Ce===1&&dt()&&(Re=Cn()),()=>{Ce--,Ce===0&&(Re==null||Re())}},[n])}function Cn(){let e,n=0,t=u=>{e=ft(u.target),!(e===document.documentElement&&e===document.body)&&(n=u.changedTouches[0].pageY)},r=u=>{if(!e||e===document.documentElement||e===document.body){u.preventDefault();return}let f=u.changedTouches[0].pageY,O=e.scrollTop,A=e.scrollHeight-e.clientHeight;A!==0&&((O<=0&&f>n||O>=A&&f<n)&&u.preventDefault(),n=f)},o=u=>{let f=u.target;Le(f)&&f!==document.activeElement&&(u.preventDefault(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""}))},i=u=>{let f=u.target;Le(f)&&(f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",Ne&&(Ne.height<window.innerHeight?requestAnimationFrame(()=>{nt(f)}):Ne.addEventListener("resize",()=>nt(f),{once:!0}))}))},d=()=>{window.scrollTo(0,0)},p=window.pageXOffset,v=window.pageYOffset,b=et(xn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let l=et(fe(document,"touchstart",t,{passive:!1,capture:!0}),fe(document,"touchmove",r,{passive:!1,capture:!0}),fe(document,"touchend",o,{passive:!1,capture:!0}),fe(document,"focus",i,!0),fe(window,"scroll",d));return()=>{b(),l(),window.scrollTo(p,v)}}function xn(e,n,t){let r=e.style[n];return e.style[n]=t,()=>{e.style[n]=r}}function fe(e,n,t,r){return e.addEventListener(n,t,r),()=>{e.removeEventListener(n,t,r)}}function nt(e){let n=document.scrollingElement||document.documentElement;for(;e&&e!==n;){let t=ft(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let r=t.getBoundingClientRect().top,o=e.getBoundingClientRect().top,i=e.getBoundingClientRect().bottom;const d=t.getBoundingClientRect().bottom+hn;i>d&&(t.scrollTop+=o-r)}e=t.parentElement}}function Le(e){return e instanceof HTMLInputElement&&!wn.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function bn(e,n){typeof e=="function"?e(n):e!=null&&(e.current=n)}function yn(...e){return n=>e.forEach(t=>bn(t,n))}function mt(...e){return x.useCallback(yn(...e),e)}const pt=new WeakMap;function $(e,n,t=!1){if(!e||!(e instanceof HTMLElement))return;let r={};
3Object.entries(n).forEach(([o,i])=>{if(o.startsWith("--")){e.style.setProperty(o,i);return}r[o]=e.style[o],e.style[o]=i}),!t&&pt.set(e,r)}function Sn(e,n){if(!e||!(e instanceof HTMLElement))return;let t=pt.get(e);t&&(e.style[n]=t[n])}const k=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function xe(e,n){if(!e)return null;const t=window.getComputedStyle(e),r=t.transform||t.webkitTransform||t.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[k(n)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[k(n)?5:4]):null)}function En(e){return 8*(Math.log(e+1)-2)}function De(e,n){if(!e)return()=>{};const t=e.style.cssText;return Object.assign(e.style,n),()=>{e.style.cssText=t}}function jn(...e){return(...n)=>{for(const t of e)typeof t=="function"&&t(...n)}}const R={DURATION:.5,EASE:[.32,.72,0,1]},ht=.4,Tn=.25,Nn=100,gt=8,ae=16,$e=26,Me="vaul-dragging";function wt(e){const n=s.useRef(e);return s.useEffect(()=>{n.current=e}),s.useMemo(()=>(...t)=>n.current==null?void 0:n.current.call(n,...t),[])}function Rn({defaultProp:e,onChange:n}){const t=s.useState(e),[r]=t,o=s.useRef(r),i=wt(n);return s.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),t}function vt({prop:e,defaultProp:n,onChange:t=()=>{}}){const[r,o]=Rn({defaultProp:n,onChange:t}),i=e!==void 0,d=i?e:r,p=wt(t),v=s.useCallback(b=>{if(i){const u=typeof b=="function"?b(e):b;u!==e&&p(u)}else o(b)},[i,e,o,p]);return[d,v]}function Dn({activeSnapPointProp:e,setActiveSnapPointProp:n,snapPoints:t,drawerRef:r,overlayRef:o,fadeFromIndex:i,onSnapPointChange:d,direction:p="bottom",container:v,snapToSequentialPoint:b}){const[l,u]=vt({prop:e,defaultProp:t==null?void 0:t[0],onChange:n}),[f,O]=s.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);s.useEffect(()=>{function h(){O({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[]);const A=s.useMemo(()=>l===(t==null?void 0:t[t.length-1])||null,[t,l]),T=s.useMemo(()=>{var h;return(h=t==null?void 0:t.findIndex(E=>E===l))!=null?h:null},[t,l]),_=t&&t.length>0&&(i||i===0)&&!Number.isNaN(i)&&t[i]===l||!t,C=s.useMemo(()=>{const h=v?{width:v.getBoundingClientRect().width,height:v.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var E;return(E=t==null?void 0:t.map(S=>{const V=typeof S=="string";let P=0;if(V&&(P=parseInt(S,10)),k(p)){const m=V?P:f?S*h.height:0;return f?p==="bottom"?h.height-m:-h.height+m:m}const W=V?P:f?S*h.width:0;return f?p==="right"?h.width-W:-h.width+W:W}))!=null?E:[]},[t,f,v]),L=s.useMemo(()=>T!==null?C==null?void 0:C[T]:null,[C,T]),D=s.useCallback(h=>{var E;const S=(E=C==null?void 0:C.findIndex(V=>V===h))!=null?E:null;d(S),$(r.current,{transition:`transform ${R.DURATION}s cubic-bezier(${R.EASE.join(",")})`,transform:k(p)?`translate3d(0, ${h}px, 0)`:`translate3d(${h}px, 0, 0)`}),C&&S!==C.length-1&&i!==void 0&&S!==i&&S<i?$(o.current,{transition:`opacity ${R.DURATION}s cubic-bezier(${R.EASE.join(",")})`,opacity:"0"}):$(o.current,{transition:`opacity ${R.DURATION}s cubic-bezier(${R.EASE.join(",")})`,opacity:"1"}),u(t==null?void 0:t[Math.max(S,0)])},[r.current,t,C,i,o,u]);s.useEffect(()=>{if(l||e){var h;const E=(h=t==null?void 0:t.findIndex(S=>S===e||S===l))!=null?h:-1;C&&E!==-1&&typeof C[E]=="number"&&D(C[E])}},[l,e,t,C,D]);function g({draggedDistance:h,closeDrawer:E,velocity:S,dismissible:V}){if(i===void 0)return;const P=p==="bottom"||p==="right"?(L??0)-h:(L??0)+h,W=T===i-1,m=T===0,z=h>0;if(W&&$(o.current,{transition:`opacity ${R.DURATION}s cubic-bezier(${R.EASE.join(",")})`}),!b&&S>2&&!z){V?E():D(C[0]);return}if(!b&&S>2&&z&&C&&t){D(C[t.length-1]);return}const F=C==null?void 0:C.reduce((I,K)=>typeof I!="number"||typeof K!="number"?I:Math.abs(K-P)<Math.abs(I-P)?K:I),Y=k(p)?window.innerHeight:window.innerWidth;if(S>ht&&Math.abs(h)<Y*.4){const I=z?1:-1;if(I>0&&A&&t){D(C[t.length-1]);return}if(m&&I<0&&V&&E(),T===null)return;D(C[T+I]);return}D(F)}function q({draggedDistance:h}){if(L===null)return;const E=p==="bottom"||p==="right"?L-h:L+h;(p==="bottom"||p==="right")&&E<C[C.length-1]||(p==="top"||p==="left")&&E>
3C[C.length-1]||$(r.current,{transform:k(p)?`translate3d(0, ${E}px, 0)`:`translate3d(${E}px, 0, 0)`})}function te(h,E){if(!t||typeof T!="number"||!C||i===void 0)return null;const S=T===i-1;if(T>=i&&E)return 0;if(S&&!E)return 1;if(!_&&!S)return null;const P=S?T+1:T-1,W=S?C[P]-C[P-1]:C[P+1]-C[P],m=h/Math.abs(W);return S?1-m:m}return{isLastSnapPoint:A,activeSnapPoint:l,shouldFade:_,getPercentageDragged:te,setActiveSnapPoint:u,activeSnapPointIndex:T,onRelease:g,onDrag:q,snapPointsOffset:C}}const Mn=()=>()=>{};function On(){const{direction:e,isOpen:n,shouldScaleBackground:t,setBackgroundColorOnScale:r,noBodyStyles:o}=he(),i=s.useRef(null),d=x.useMemo(()=>document.body.style.backgroundColor,[]);function p(){return(window.innerWidth-$e)/window.innerWidth}s.useEffect(()=>{if(n&&t){i.current&&clearTimeout(i.current);const v=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!v)return;jn(r&&!o?De(document.body,{background:"black"}):Mn,De(v,{transformOrigin:k(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${R.DURATION}s`,transitionTimingFunction:`cubic-bezier(${R.EASE.join(",")})`}));const b=De(v,{borderRadius:`${gt}px`,overflow:"hidden",...k(e)?{transform:`scale(${p()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${p()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{b(),i.current=window.setTimeout(()=>{d?document.body.style.background=d:document.body.style.removeProperty("background")},R.DURATION*1e3)}}},[n,t,d])}let me=null;function kn({isOpen:e,modal:n,nested:t,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:i}){const[d,p]=s.useState(()=>typeof window<"u"?window.location.href:""),v=s.useRef(0),b=s.useCallback(()=>{if(Qe()&&me===null&&e&&!i){me={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:u,innerHeight:f}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-v.current}px`,left:`${-u}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const O=f-window.innerHeight;O&&v.current>=f&&(document.body.style.top=`${-(v.current+O)}px`)}),300)}},[e]),l=s.useCallback(()=>{if(Qe()&&me!==null&&!i){const u=-parseInt(document.body.style.top,10),f=-parseInt(document.body.style.left,10);Object.assign(document.body.style,me),window.requestAnimationFrame(()=>{if(o&&d!==window.location.href){p(window.location.href);return}window.scrollTo(f,u)}),me=null}},[d]);return s.useEffect(()=>{function u(){v.current=window.scrollY}return u(),window.addEventListener("scroll",u),()=>{window.removeEventListener("scroll",u)}},[]),s.useEffect(()=>{if(n)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||l()}},[n,l]),s.useEffect(()=>{t||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&b(),n||window.setTimeout(()=>{l()},500)):l())},[e,r,d,n,t,b,l]),{restorePositionSetting:l}}function Ln({open:e,onOpenChange:n,children:t,onDrag:r,onRelease:o,snapPoints:i,shouldScaleBackground:d=!1,setBackgroundColorOnScale:p=!0,closeThreshold:v=Tn,scrollLockTimeout:b=Nn,dismissible:l=!0,handleOnly:u=!1,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:O,setActiveSnapPoint:A,fixed:T,modal:_=!0,onClose:C,nested:L,noBodyStyles:D=!1,direction:g="bottom",defaultOpen:q=!1,disablePreventScroll:te=!0,snapToSequentialPoint:h=!1,preventScrollRestoration:E=!1,repositionInputs:S=!0,onAnimationEnd:V,container:P,autoFocus:W=!1}){var m,z;const[F=!1,Y]=vt({defaultProp:q,prop:e,onChange:c=>{n==null||n(c),!c&&!L&&Nt(),setTimeout(()=>{V==null||V(c)},R.DURATION*1e3),c&&!_&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),c||(document.body.style.pointerEvents="auto")}}),[I,K]=s.useState(!1),[J,se]=s.useState(!1),[bt,Ae]=s.useState(!1),re=s.useRef(null),ge=s.useRef(null),ye=s.useRef(null),Se=s.useRef(null),le=s.useRef(null),ue=s.useRef(!1),Ee=s.useRef(null),je=s.useRef(0),oe=s.useRef(!1),Pe=s.useRef(!q),Ie=s.useRef(0),w=s.useRef(null),_e=s.useRef(((m=w.current)==null?void 0:m.getBoundingClientRect().height)||0),Ve=s.useRef(((z=w.current)==null?void 0:z.getBoundingClientRect().width)||0),Te=s.useRef(0),yt=s.useCallback(c=>
3{i&&c===ce.length-1&&(ge.current=new Date)},[]),{activeSnapPoint:St,activeSnapPointIndex:ie,setActiveSnapPoint:Fe,onRelease:Et,snapPointsOffset:ce,onDrag:jt,shouldFade:Ue,getPercentageDragged:Tt}=Dn({snapPoints:i,activeSnapPointProp:O,setActiveSnapPointProp:A,drawerRef:w,fadeFromIndex:f,overlayRef:re,onSnapPointChange:yt,direction:g,container:P,snapToSequentialPoint:h});vn({isDisabled:!F||J||!_||bt||!I||!S||!te});const{restorePositionSetting:Nt}=kn({isOpen:F,modal:_,nested:L??!1,hasBeenOpened:I,preventScrollRestoration:E,noBodyStyles:D});function we(){return(window.innerWidth-$e)/window.innerWidth}function Rt(c){var j,N;!l&&!i||w.current&&!w.current.contains(c.target)||(_e.current=((j=w.current)==null?void 0:j.getBoundingClientRect().height)||0,Ve.current=((N=w.current)==null?void 0:N.getBoundingClientRect().width)||0,se(!0),ye.current=new Date,dt()&&window.addEventListener("touchend",()=>ue.current=!1,{once:!0}),c.target.setPointerCapture(c.pointerId),je.current=k(g)?c.pageY:c.pageX)}function Be(c,j){var N;let y=c;const M=(N=window.getSelection())==null?void 0:N.toString(),B=w.current?xe(w.current,g):null,U=new Date;if(y.tagName==="SELECT"||y.hasAttribute("data-vaul-no-drag")||y.closest("[data-vaul-no-drag]"))return!1;if(g==="right"||g==="left")return!0;if(ge.current&&U.getTime()-ge.current.getTime()<500)return!1;if(B!==null&&(g==="bottom"?B>0:B<0))return!0;if(M&&M.length>0)return!1;if(le.current&&U.getTime()-le.current.getTime()<b&&B===0||j)return le.current=U,!1;for(;y;){if(y.scrollHeight>y.clientHeight){if(y.scrollTop!==0)return le.current=new Date,!1;if(y.getAttribute("role")==="dialog")return!0}y=y.parentNode}return!0}function Dt(c){if(w.current&&J){const j=g==="bottom"||g==="right"?1:-1,N=(je.current-(k(g)?c.pageY:c.pageX))*j,y=N>0,M=i&&!l&&!y;if(M&&ie===0)return;const B=Math.abs(N),U=document.querySelector("[data-vaul-drawer-wrapper]"),Q=g==="bottom"||g==="top"?_e.current:Ve.current;let Z=B/Q;const ne=Tt(B,y);if(ne!==null&&(Z=ne),M&&Z>=1||!ue.current&&!Be(c.target,y))return;if(w.current.classList.add(Me),ue.current=!0,$(w.current,{transition:"none"}),$(re.current,{transition:"none"}),i&&jt({draggedDistance:N}),y&&!i){const X=En(N),ve=Math.min(X*-1,0)*j;$(w.current,{transform:k(g)?`translate3d(0, ${ve}px, 0)`:`translate3d(${ve}px, 0, 0)`});return}const ee=1-Z;if((Ue||f&&ie===f-1)&&(r==null||r(c,Z),$(re.current,{opacity:`${ee}`,transition:"none"},!0)),U&&re.current&&d){const X=Math.min(we()+Z*(1-we()),1),ve=8-Z*8,We=Math.max(0,14-Z*14);$(U,{borderRadius:`${ve}px`,transform:k(g)?`scale(${X}) translate3d(0, ${We}px, 0)`:`scale(${X}) translate3d(${We}px, 0, 0)`,transition:"none"},!0)}if(!i){const X=B*j;$(w.current,{transform:k(g)?`translate3d(0, ${X}px, 0)`:`translate3d(${X}px, 0, 0)`})}}}s.useEffect(()=>{window.requestAnimationFrame(()=>{Pe.current=!0})},[]),s.useEffect(()=>{var c;function j(){if(!w.current||!S)return;const N=document.activeElement;if(Le(N)||oe.current){var y;const M=((y=window.visualViewport)==null?void 0:y.height)||0,B=window.innerHeight;let U=B-M;const Q=w.current.getBoundingClientRect().height||0,Z=Q>B*.8;Te.current||(Te.current=Q);const ne=w.current.getBoundingClientRect().top;if(Math.abs(Ie.current-U)>60&&(oe.current=!oe.current),i&&i.length>0&&ce&&ie){const ee=ce[ie]||0;U+=ee}if(Ie.current=U,Q>M||oe.current){const ee=w.current.getBoundingClientRect().height;let X=ee;ee>M&&(X=M-(Z?ne:$e)),T?w.current.style.height=`${ee-Math.max(U,0)}px`:w.current.style.height=`${Math.max(X,M-ne)}px`}else dn()||(w.current.style.height=`${Te.current}px`);i&&i.length>0&&!oe.current?w.current.style.bottom="0px":w.current.style.bottom=`${Math.max(U,0)}px`}}return(c=window.visualViewport)==null||c.addEventListener("resize",j),()=>{var N;return(N=window.visualViewport)==null?void 0:N.removeEventListener("resize",j)}},[ie,i,ce]);function de(c){Mt(),C==null||C(),c||Y(!1),setTimeout(()=>{i&&Fe(i[0])},R.DURATION*1e3)}function ze(){if(!w.current)return;const c=document.querySelector("[data-vaul-drawer-wrapper]"),j=xe(w.current,g);$(w.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${R.DURATION}s cubic-bezier(${R.EASE.join(",")})`}),$(re.current,{transition:`opacity ${R.DURATION}s cubic-bezier(${R.EASE.join(",")})`,opacity:"1"}),d&&j&&j>0&&F&&$(c,{borderRadius:`${gt}px`,overflow:"hidden",...k(g)?{transform:`scale(${we()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${we()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${R.DURATION}s`,transitionTimingFunction:`cubic-bezier(${R.EASE.join(",")})`},!0)}function Mt(){!J||!w.current||(w.current.classList.remove(Me),ue.current=!1,se(!1),Se.current=ne
3w Date)}function Ot(c){if(!J||!w.current)return;w.current.classList.remove(Me),ue.current=!1,se(!1),Se.current=new Date;const j=xe(w.current,g);if(!c||!Be(c.target,!1)||!j||Number.isNaN(j)||ye.current===null)return;const N=Se.current.getTime()-ye.current.getTime(),y=je.current-(k(g)?c.pageY:c.pageX),M=Math.abs(y)/N;if(M>.05&&(Ae(!0),setTimeout(()=>{Ae(!1)},200)),i){Et({draggedDistance:y*(g==="bottom"||g==="right"?1:-1),closeDrawer:de,velocity:M,dismissible:l}),o==null||o(c,!0);return}if(g==="bottom"||g==="right"?y>0:y<0){ze(),o==null||o(c,!0);return}if(M>ht){de(),o==null||o(c,!1);return}var B;const U=Math.min((B=w.current.getBoundingClientRect().height)!=null?B:0,window.innerHeight);var Q;const Z=Math.min((Q=w.current.getBoundingClientRect().width)!=null?Q:0,window.innerWidth),ne=g==="left"||g==="right";if(Math.abs(j)>=(ne?Z:U)*v){de(),o==null||o(c,!1);return}o==null||o(c,!0),ze()}s.useEffect(()=>(F&&($(document.documentElement,{scrollBehavior:"auto"}),ge.current=new Date),()=>{Sn(document.documentElement,"scrollBehavior")}),[F]);function kt(c){const j=c?(window.innerWidth-ae)/window.innerWidth:1,N=c?-ae:0;Ee.current&&window.clearTimeout(Ee.current),$(w.current,{transition:`transform ${R.DURATION}s cubic-bezier(${R.EASE.join(",")})`,transform:k(g)?`scale(${j}) translate3d(0, ${N}px, 0)`:`scale(${j}) translate3d(${N}px, 0, 0)`}),!c&&w.current&&(Ee.current=setTimeout(()=>{const y=xe(w.current,g);$(w.current,{transition:"none",transform:k(g)?`translate3d(0, ${y}px, 0)`:`translate3d(${y}px, 0, 0)`})},500))}function Lt(c,j){if(j<0)return;const N=(window.innerWidth-ae)/window.innerWidth,y=N+j*(1-N),M=-ae+j*ae;$(w.current,{transform:k(g)?`scale(${y}) translate3d(0, ${M}px, 0)`:`scale(${y}) translate3d(${M}px, 0, 0)`,transition:"none"})}function $t(c,j){const N=k(g)?window.innerHeight:window.innerWidth,y=j?(N-ae)/N:1,M=j?-ae:0;j&&$(w.current,{transition:`transform ${R.DURATION}s cubic-bezier(${R.EASE.join(",")})`,transform:k(g)?`scale(${y}) translate3d(0, ${M}px, 0)`:`scale(${y}) translate3d(${M}px, 0, 0)`})}return s.useEffect(()=>{_||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[_]),s.createElement(Ft,{defaultOpen:q,onOpenChange:c=>{!l&&!c||(c?K(!0):de(!0),Y(c))},open:F},s.createElement(ct.Provider,{value:{activeSnapPoint:St,snapPoints:i,setActiveSnapPoint:Fe,drawerRef:w,overlayRef:re,onOpenChange:n,onPress:Rt,onRelease:Ot,onDrag:Dt,dismissible:l,shouldAnimate:Pe,handleOnly:u,isOpen:F,isDragging:J,shouldFade:Ue,closeDrawer:de,onNestedDrag:Lt,onNestedOpenChange:kt,onNestedRelease:$t,keyboardIsOpen:oe,modal:_,snapPointsOffset:ce,activeSnapPointIndex:ie,direction:g,shouldScaleBackground:d,setBackgroundColorOnScale:p,noBodyStyles:D,container:P,autoFocus:W}},t))}const Ct=s.forwardRef(function({...e},n){const{overlayRef:t,snapPoints:r,onRelease:o,shouldFade:i,isOpen:d,modal:p,shouldAnimate:v}=he(),b=mt(n,t),l=r&&r.length>0;if(!p)return null;const u=s.useCallback(f=>o(f),[o]);return s.createElement(zt,{onMouseUp:u,ref:b,"data-vaul-overlay":"","data-vaul-snap-points":d&&l?"true":"false","data-vaul-snap-points-overlay":d&&i?"true":"false","data-vaul-animate":v!=null&&v.current?"true":"false",...e})});Ct.displayName="Drawer.Overlay";const xt=s.forwardRef(function({onPointerDownOutside:e,style:n,onOpenAutoFocus:t,...r},o){const{drawerRef:i,onPress:d,onRelease:p,onDrag:v,keyboardIsOpen:b,snapPointsOffset:l,activeSnapPointIndex:u,modal:f,isOpen:O,direction:A,snapPoints:T,container:_,handleOnly:C,shouldAnimate:L,autoFocus:D}=he(),[g,q]=s.useState(!1),te=mt(o,i),h=s.useRef(null),E=s.useRef(null),S=s.useRef(!1),V=T&&T.length>0;On();const P=(m,z,F=0)=>{if(S.current)return!0;const Y=Math.abs(m.y),I=Math.abs(m.x),K=I>Y,J=["bottom","right"].includes(z)?1:-1;if(z==="left"||z==="right"){if(!(m.x*J<0)&&I>=0&&I<=F)return K}else if(!(m.y*J<0)&&Y>=0&&Y<=F)return!K;return S.current=!0,!0};s.useEffect(()=>{V&&window.requestAnimationFrame(()=>{q(!0)})},[]);function W(m){h.current=null,S.current=!1,p(m)}return s.createElement(Ut,{"data-vaul-drawer-direction":A,"data-vaul-drawer":"","data-vaul-delayed-snap-points":g?"true":"false","data-vaul-snap-points":O&&V?"true":"false","data-vaul-custom-container":_?"true":"false","data-vaul-animate":L!=null&&L.current?"true":"false",...r,ref:te,style:l&&l.length>0?{"--snap-point-height":`${l[u??0]}px`,...n}:n,onPointerDown:m=>{C||(r.onPointerDown==null||r.onPointerDown.call(r,m),h.current={x:m.pageX,y:m.pageY},d(m))},onOpenAutoFocus:m=>{t==null||t(m),D||m.preventDefault()},onPointerDownOutside:m=>{if(e==null||e(m),!f||m.defaultPrevented){m.preventDefault();return}b.current&&(b.current=!1)},onFocusOutside:m=>{if(!f){m.preventDefault();return}},onPointerMove:m=>{if(E.current=m,C||(r.onPointerMove==null||r.onPointerMove.call(r,m),!h.current))return;const z=m.pageY-h.current.y,F=m.pageX-h.current.x,Y=m.pointerType==="touch"?10:2;P({x:F,y:z},A,Y)?v(m):(Math.abs(F)>Y||Math.abs(z)>Y)&&(h.current=null)},onPointerUp:m=>{r.onPointerUp==null||r.onPointerUp.call(r,m),h.current=null,S.current=!1,p(m)},onPointerOut:m=>{r.onPointerOut==null||r.onPointerOut.call(r,m),W(E.current)},onContextMenu:m=>{r.onContextMenu==null||r.onContextMenu.call(r,m),E.current&&W(E.current)}})});xt.displayName="Drawer.Content";const $n=250,Hn=120,An=s.forwardRef(function({preventCycle:e=!1,children:n,...t},r){const{closeDrawer:o,isDragging:i,snapPoints:d,activeSnapPoint:p,setActiveSnapPoint:v,dismissible:b,handleOnly:l,isOpen:u,onPress:f,onDrag:O}=he(),A=s.useRef(null),T=s.useRef(!1);function _(){if(T.current){D();return}window.setTimeout(()=>{C()},Hn)}function C(){if(i||e||T.current){D();return}if(D(),!d||d.length===0){b||o();return}if(p===d[d.length-1]&&b){o();return}const q=d.findIndex(h=>h===p);if(q===-1)return;const te=d[q+1];v(te)}function L(){A.current=window.setTimeout(()=>{T.current=!0},$n)}function D(){A.current&&window.clearTimeout(A.current),T.current=!1}return s.createElement("div",{onClick:_,onPointerCancel:D,onPointerDown:g=>{l&&f(g),L()},onPointerMove:g=>{l&&O(g)},ref:r,"data-vaul-drawer-visible":u?"true":"false","data-vaul-handle":"","aria-hidden":"true",...t},s.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},n))});An.displayName="Drawer.Handle";function Pn(e){const n=he(),{container:t=n.container,...r}=e;return s.createElement(Bt,{container:t,...r})}const be={Root:Ln,Content:xt,Overlay:Ct,Portal:Pn};function In({...e}){return a.jsx(be.Root,{"data-slot":"drawer",...e})}function _n({...e}){return a.jsx(be.Portal,{"data-slot":"drawer-portal",...e})}function Vn({className:e,...n}){return a.jsx(be.Overlay,{"data-slot":"drawer-overlay",className:ut("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 bg-black/30 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50",e),...n})}function Fn({className:e,children:n,...t}){return a.jsxs(_n,{"data-slot":"drawer-portal",children:[a.jsx(Vn,{className:"translate-y-16"}),a.jsxs(be.Content,{"data-slot":"drawer-content",className:ut("bg-background flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm group/drawer-content fixed z-50",e),...t,children:[a.jsx("div",{className:"bg-muted mt-4 h-1 w-[100px] rounded-full mx-auto hidden shrink-0 group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),n]})]})}const Un=(e,n=!1)=>{var t;return!(e!=null&&e.firstName)||!(e!=null&&e.lastName)?"Anonymous":n?(e==null?void 0:e.firstName)+" "+((t=e==null?void 0:e.lastName)==null?void 0:t.substring(0,1)):(e==null?void 0:e.firstName)+" "+(e==null?void 0:e.lastName)},at=({user:e,isUnderDrawer:n,className:t})=>{const[r,o]=x.useState(!1),{isSubscriptionActive:i,isSubscriptionEnterprise:d,planName:p}
3=it(),[v,b]=x.useState(!1),[l,u]=x.useState("profile"),f=O=>{o(O)};return a.jsxs("div",{className:t,children:[a.jsxs("div",{className:H("items-center lg:p-4 sm:p-2 p-4 cursor-pointer border-t border-stone-200",n?"flex":"hidden sm:flex"),children:[a.jsx("img",{className:"w-8 h-8 rounded-full",src:d?Wt:Yt,alt:"User avatar image","data-id":"user-avatar-image"}),a.jsxs("div",{className:H("w-full items-center",n?"flex":"hidden lg:flex"),children:[a.jsxs("div",{className:"ml-2",children:[a.jsx("p",{className:"text-slate-950 font-semibold font-[Figtree] min-h-4 text-[13px] cursor-pointer",children:Un(e,!0)}),a.jsx("p",{className:"text-xs text-stone-500 font-[Figtree] cursor-pointer",children:d?p:"Free"})]}),a.jsxs(It,{open:r,onOpenChange:f,children:[a.jsx(_t,{asChild:!0,children:a.jsx(Ze,{width:20,height:20,className:"ml-auto md:pr-0 pr-1",color:"#79716B"})}),a.jsxs(Vt,{alignOffset:-50,side:"right",className:"p-0 bg-white border-stone-200! border-1 ring-0",children:[a.jsx(qe,{className:"outline-none cursor-pointer",onClick:()=>f(!1),children:a.jsxs("div",{className:"flex items-center text-sm gap-2 text-stone-800 hover:bg-stone-100 w-full rounded-lg px-2 py-1 transition-all duration-200",onClick:()=>{u("profile"),b(!0),f(!1)},children:[a.jsx(Ze,{color:"#79716B"}),"Settings"]})}),a.jsx(qe,{className:"outline-none",onClick:()=>f(!1),children:a.jsxs(pe,{className:"flex items-center text-sm gap-2 text-stone-800 hover:bg-stone-100 w-full rounded-lg px-2 py-1 transition-all duration-200",to:G.LOGOUT,children:[a.jsx(qt,{color:"#79716B"}
3),"Logout"]})})]})]})]})]}),a.jsx(Zt,{isOpen:v,onClose:()=>b(!1),user:e,isSubscriptionActive:i,isSubscriptionEnterprise:d,initialTab:l})]})},Bn=({item:e})=>{const n=st(),t=e.name.toLowerCase().replace(/ /g,"-"),r=e.href.replace(/\/[^/]+$/,""),o=n.pathname===e.href||r.length>1&&n.pathname.startsWith(`${r}/`);return a.jsx("li",{className:"list-none","data-id":`${t}-submenu-item`,children:a.jsx(pe,{to:e.href,className:H("flex flex-row items-center rounded-lg py-1.5 px-4 hover:bg-stone-200 transition-all duration-200"),viewTransition:!0,"data-id":`${t}-submenu-link`,children:a.jsx("p",{className:H("text-gray-900 text-[15px] font-[Figtree] font-semibold",o&&"text-blue-600"),"data-id":`${t}-submenu-text`,children:e.name})})})},zn=({items:e,parentTestId:n,isOpen:t})=>t?a.jsx("ul",{className:"space-y-1.5 mt-2 pr-4 sm:pl-6 pl-5","data-id":`${n}-submenu-list`,children:e.map(r=>a.jsx(Bn,{item:r},r.name))}):null,Wn=({testId:e,icon:n,children:t,isOpen:r,onToggle:o,isActive:i})=>a.jsxs("button",{onClick:o,className:"flex flex-row items-center justify-between w-full space-x-2.5 rounded-lg hover:bg-stone-200 transition-all duration-200 px-[10px]","data-id":`${e}-menu-link`,children:[a.jsxs("div",{className:H("flex flex-row sm:justify-center lg:justify-start justify-start items-center space-x-2.5 flex-1 py-2 sm:py-1.5","sm:[&>svg]:w-5 sm:[&>svg]:h-5 [&>svg]:w-4 [&>svg]:h-4",i&&"[&>p]:text-blue-600 [&>svg]:stroke-blue-600"),children:[n,a.jsx("p",{className:"text-gray-900 text-base font-semibold font-[Figtree]","data-id":`${e}-menu-text`,children:t})]}),a.jsx(en,{className:H("transition-transform duration-200 shrink-0 h-5 w-5 text-stone-700",r?"rotate-90":""),"data-id":`${e}-menu-chevron`})]}),Yn=({className:e,icon:n,children:t,external:r,href:o,active:i,submenu:d,isUnderDrawer:p,...v})=>{const b=location.pathname.includes(o),l=t.toLowerCase().replace(/ /g,"-"),[u,f]=x.useState(b);return d?a.jsxs("li",{className:H(e,"list-none"),"data-id":`${l}-menu-item`,...v,children:[a.jsxs("div",{className:"sm:hidden block lg:block",children:[a.jsx(Wn,{isActive:b,testId:l,icon:n,isOpen:u,onToggle:()=>f(!u),children:t}),a.jsx(zn,{items:d,parentTestId:l,isOpen:u})]}),a.jsx("div",{className:"hidden lg:hidden sm:block",children:a.jsxs(Ge,{children:[a.jsx(Ke,{className:"w-full",children:a.jsxs(pe,{to:o,target:r?"_blank":"_self",className:H("flex flex-row sm:justify-center lg:justify-start justify-start items-center w-full space-x-2.5 rounded-lg py-2 px-[10px]","lg:[&>svg]:w-5 lg:[&>svg]:h-5 [&>svg]:w-4 [&>svg]:h-4",i&&"[&>p]:text-blue-600 [&>svg]:stroke-blue-600"),viewTransition:!0,"data-id":`${l}-menu-link`,children:[n,a.jsx("p",{className:H("text-stone-800 text-base font-[Figtree]",!p&&"lg:block hidden"),"data-id":`${l}-menu-text`,style:{fontWeight:600},children:t})]})}),a.jsx(Je,{style:{boxShadow:"var(--sds-size-depth-0) var(--sds-size-depth-025) var(--sds-size-depth-100) var(--sds-size-depth-0) var(--sds-color-black-100)"},sideOffset:5,className:"bg-white lg:hidden sm:flex hidden flex-col gap-[14px] px-1 py-3 items-start",hideArrow:!0,align:"start",side:"right",children:d.map(O=>a.jsx("p",{className:"font-medium text-sm font-[Figtree] px-2 hover:text-stone-500 text-stone-800",children:O.name}))})]})})]}):a.jsx("li",{className:H(e,"list-none cursor-pointer"),"data-id":`${l}-menu-item`,...v,children:a.jsxs(Ge,{children:[a.jsx(Ke,{className:"w-full",children:a.jsxs(pe,{to:o,target:r?"_blank":"_self",className:H("flex flex-row items-center space-x-2.5 rounded-lg px-[10px]","py-2","justify-start sm:justify-center lg:justify-start","lg:hover:bg-stone-200 transition-all duration-200","lg:[&>svg]:w-5 lg:[&>svg]:h-5 [&>svg]:w-4 [&>svg]:h-4",i&&"[&>p]:text-blue-600 [&>svg]:stroke-blue-600"),viewTransition:!0,"data-id":`${l}-menu-link`,children:[n,a.jsx("p",{style:{fontWeight:600},className:H("text-stone-800 text-base font-[Figtree]",!p&&"lg:block hidden"),"data-id":`${l}-menu-text`,children:t})]})}),a.jsx(Je,{style:{boxShadow:"var(--sds-size-depth-0) var(--sds-size-depth-025) var(--sds-size-depth-100) var(--sds-size-depth-0) var(--sds-color-black-100)"},sideOffset:5,className:"bg-white lg:hidden sm:block hidden p-3",hideArrow:!0,side:"right",children:a.jsx("p",{className:"text-slate-950 text-[13px] font-medium font-[Figtree]",children:t})})]})})},Zn=({title:e,children:n})=>a.jsxs("div",{className:"py-2 lg:px-2 sm:px-0 px-3","data-id":"menu-container",children:[e?a.jsx("h3",{className:"text-base font-bold text-grayish-800","data-id":"menu-title",children:e}):null,a.jsx("ul",{className:"space-y-3","data-id":"menu-item-list",children:n})]}),rt=({menus:e,checkActive:n,isUnderDrawer:t})=>e.map(r=>a.jsx(Zn,{title:r.title,children:r.items.map(o=>{const i="submenu"in o,d="external"in o;return a.jsx(Yn,{icon:o.icon,href:o.href,isUnderDrawer:!!t,active:n(o.href),...i&&{submenu:o.submenu},...d&&{external:o.external},children:o.name},o.name)})},r.items[0].name)),qn=({menus:e,handleCloseDrawer:n,openDrawer:t,checkActive:r})=>{const{user:o}=lt(i=>i.user);return a.jsxs("div",{className:H("lg:w-[250px] lg:min-w-60 sm:w-12 h-[calc(100vh-60px)] flex justify-between flex-col border-r border-stone-200 bg-stone-50"),children:[a.jsx("div",{className:"hidden sm:block",children:a.jsx(rt,{checkActive:r,menus:e})}),a.jsx("div",{children:a.jsx(at,{user:o})}),a.jsx(In,{direction:"left",open:t,onClose:n,children:a.jsxs(Fn,{className:"bg-white mt-16 !rounded-none",children:[a.jsx(rt,{isUnderDrawer:!0,checkActive:r,menus:e}),a.jsx("div",{className:"mt-auto",children:a.jsx(at,{isUnderDrawer:!0,user:o})})]})})]})},Xn=e=>x.createElement("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("path",{d:"M13.9906 3.44501C13.9758 3.20121 13.8723 2.97127 13.6996 2.79856C13.5269 2.62585 13.2969 2.52232 13.0531 2.50751C12.2669 2.46063 10.2575 2.53251 8.58999 4.19938L8.29312 4.50001H4.64749C4.51567 4.49926 4.38501 4.52474 4.26312 4.57496C4.14123 4.62517 4.03054 4.69912 3.93749 4.79251L1.79374 6.93751C1.66227 7.06889 1.57002 7.23431 1.52734 7.4152C1.48465 7.5961 1.49323 7.78531 1.5521 7.96161C1.61097 8.1379 1.71781 8.2943 1.86063 8.41324C2.00345 8.53219 2.17659 8.60899 2.36062 8.63501L4.76499 8.97063L7.52812 11.7338L7.86374 14.1394C7.88955 14.3234 7.96633 14.4966 8.08539 14.6393C8.20445 14.782 8.36105 14.8885 8.53749 14.9469C8.64026 14.9812 8.7479 14.9987 8.85624 14.9988C8.98744 14.999 9.11739 14.9733 9.2386 14.9231C9.35981 14.8729 9.46989 14.7992 9.56249 14.7063L11.7075 12.5625C11.8009 12.4695 11.8748 12.3588 11.925 12.2369C11.9753 12.115 12.0007 11.9843 12 11.8525V8.20688L12.2981 7.90876C13.9656 6.24126 14.0375 4.23188 13.9906 3.44501ZM4.64749 5.50001H7.29312L4.82249 7.97001L2.49999 7.64626L4.64749 5.50001ZM9.29812 4.90938C9.77857 4.42597 10.3566 4.05064 10.9937 3.80846C11.6308 3.56628 12.3122 3.46282 12.9925 3.50501C13.0363 4.18562 12.9339 4.86772 12.6922 5.50548C12.4505 6.14324 12.0751 6.72188 11.5912 7.20251L7.99999 10.7925L5.70749 8.50001L9.29812 4.90938ZM11 11.8525L8.85437 14L8.52999 11.6769L11 9.20688V11.8525ZM6.36499 12.4463C6.08374 13.0625 5.14312 14.5 2.49999 14.5C2.36739 14.5 2.24021 14.4473 2.14644 14.3536C2.05267 14.2598 1.99999 14.1326 1.99999 14C1.99999 11.3569 3.43749 10.4163 4.05374 10.1344C4.1135 10.1071 4.17803 10.0919 4.24366 10.0896C4.30929 10.0873 4.37473 10.0979 4.43625 10.1209C4.49777 10.1439 4.55416 10.1788 4.6022 10.2236C4.65024 10.2683 4.68899 10.3221 4.71624 10.3819C4.74349 10.4416 4.75871 10.5062 4.76102 10.5
3718C4.76333 10.6374 4.75269 10.7029 4.7297 10.7644C4.70672 10.8259 4.67185 10.8823 4.62707 10.9303C4.5823 10.9784 4.5285 11.0171 4.46874 11.0444C4.06687 11.2275 3.17999 11.8169 3.02374 13.4763C4.68312 13.32 5.27374 12.4331 5.45562 12.0313C5.48287 11.9715 5.52162 11.9177 5.56966 11.8729C5.6177 11.8282 5.67409 11.7933 5.73561 11.7703C5.79713 11.7473 5.86257 11.7367 5.9282 11.739C5.99383 11.7413 6.05837 11.7565 6.11812 11.7838C6.17787 11.811 6.23167 11.8498 6.27645 11.8978C6.32122 11.9458 6.35609 12.0022 6.37908 12.0637C6.40206 12.1253 6.4127 12.1907 6.41039 12.2563C6.40808 12.322 6.39287 12.3865 6.36562 12.4463H6.36499Z",fill:"white"})),Gn=({isSubscriptionActive:e,isTrialEnded:n,isTrialActive:t,daysLeftInTrial:r,handlePlanClick:o})=>!e||e&&!n?a.jsx("section",{"data-id":"free-trial-footer",className:"fixed bottom-0 left-0 py-2 px-3 z-[40] m-2.5 sm:ml-[88px] lg:ml-[290px] w-full",children:a.jsxs("div",{className:"w-full flex items-center rounded-lg h-full justify-center gap-3 md:gap-5 bg-[linear-gradient(70.92deg,theme(colors.primary.500)_-0.53%,theme(colors.primary.disabled)_102.36%)] p-4 sm:max-w-[60%]",children:[a.jsx("p",{className:H("font-medium md:text-base text-sm text-white"),"data-id":"free-trial-footer-text",children:t?`Your Pro trial ends in ${r} day${r>1?"s":""}.`:"You're on our free plan"}),a.jsxs(Oe,{"data-id":"free-trial-footer-button",className:"flex items-center gap-2 w-fit h-[34px] py-2 px-3 bg-white hover:bg-white/90",onClick:o,children:[a.jsx(Xn,{className:"[&_path]:fill-primary-500"}),a.jsx("p",{className:"text-primary-500 text-xs font-medium",children:"Upgrade Now"})]})]})}):null,Kn=[{title:void 0,items:[{name:"Home",icon:a.jsx(Xt,{color:"#292524"}),href:G.MY_SITES},{name:"Website",icon:a.jsx(Gt,{color:"#292524"}),href:G.SETTINGS_PAGE,submenu:[{name:"Site Settings",icon:a.jsx(nn,{}),href:Ye(G.SETTINGS,{tab:"general"})}]},{name:"Schedule",icon:a.jsx(Kt,{color:"#292524"}),href:G.MY_SCHEDULES,submenu:[{name:"Schedules",href:G.MY_SCHEDULES},{name:"Hosts",href:G.MY_HOSTS}]},{name:"Integrations",icon:a.jsx(Jt,{color:"#000"}),href:Ye(G.INTEGRATIONS)},{name:"Marketing",icon:a.jsx(Qt,{color:"#000"}),href:G.MY_FORMS,submenu:[{name:"Forms",href:G.MY_FORMS}]}]}],xa=({children:e})=>{var L;
3const n=st(),[t,r]=x.useState(!1),o=()=>{r(!t)},i=()=>{r(!1)},d=D=>n.pathname.startsWith(D),{planName:p,isSubscriptionActive:v,isTrialActive:b,daysLeftInTrial:l,isTrialEnded:u,data:f}=it(),{isVisible:O}=lt(D=>D.loading),{handleUpgradeClick:A}=ot(),T=!v||v&&!u,_=v&&u,C=!O&&!!((L=n.state)!=null&&L.subscriptionUpgradeModal);return x.useEffect(()=>{i()},[n]),a.jsxs("div",{className:"w-full h-full bg-stone-100",children:[a.jsx(rn,{handleToggleDrawer:o}),a.jsxs("div",{className:H("w-full h-[calc(100vh-60px)] flex flex-row"),children:[a.jsx(qn,{openDrawer:t,handleCloseDrawer:i,menus:Kn,checkActive:d,shouldDisplayTrialFooter:T,showPremiumIndicator:_,planName:p}),a.jsx("main",{className:H("flex flex-1 max-h-[calc(100vh-60px)] overflow-y-auto pt-4",T?"pb-[120px]":""),children:e??a.jsx(Ht,{})}),a.jsx(Gn,{isSubscriptionActive:v,isTrialEnded:u,isTrialActive:b,daysLeftInTrial:l,handlePlanClick:A}),a.jsx(un,{isLoading:O,isSubscriptionActive:v,data:f,isTrialEnded:u,shouldShowUpgradeModal:C})]})]})};export{xa as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.