From fd5a4e40ad5fef05795378f0274bbaba53d0edd8 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 30 Apr 2026 13:18:51 +0800 Subject: [PATCH] Fix CSRF login/logout issues and conditionally hide SaaS routes --- .../Auth/AuthenticatedSessionController.php | 2 +- app/Http/Controllers/DashboardController.php | 12 +- ...boutUs-vWjz2UwH.js => AboutUs-2CL2_Tux.js} | 2 +- ...CkFTBtM_.js => ContactSection-icl9AjBi.js} | 2 +- ...uPL.js => CookieConsentBanner-ClQ8u3uz.js} | 2 +- ...ZYIfzYh.js => CrudDeleteModal-Cp7ocOVS.js} | 2 +- ...-Bvh5mDoK.js => CrudFormModal-DCZgATgD.js} | 2 +- ...able-Dq-7DrKt.js => CrudTable-B-FIe3nV.js} | 2 +- ...ion-BY-x8sGl.js => FaqSection-HoNaK4yf.js} | 2 +- ...zYebja-.js => FeaturesSection-B6CHzUe8.js} | 2 +- ...{Footer-DYzWJxz2.js => Footer-BEwrIUid.js} | 2 +- ...{Header-DSpFBPRg.js => Header-CmqM50N6.js} | 2 +- ...on-DA1v_MUl.js => HeroSection-bvc33kmm.js} | 2 +- ...al-B8aH6xsY.js => ImportModal-B_zOuLRY.js} | 2 +- ...ew-C_sBOW22.js => LivePreview-DReKJrbx.js} | 2 +- ...q1Z7c.js => NewsletterSection-BNofaMxt.js} | 2 +- ...n-DtxabAxJ.js => PlansSection-BTPa4b7t.js} | 2 +- ...R3ba.js => ScreenshotsSection-BCnA1d8s.js} | 2 +- ...HeZF8.js => SectionNavigation-oX9C_bHT.js} | 2 +- ...on-BE8y5fxy.js => TeamSection-BdxqrDzN.js} | 2 +- ...BBz.js => TestimonialsSection-U3C_55LZ.js} | 2 +- ...Us-D0Z3Iwda.js => WhyChooseUs-A9JhvS2S.js} | 2 +- .../{alert-D597ov4s.js => alert-Ds-hX2lu.js} | 2 +- .../{app-BSYHJZwU.js => app-sDOUnh17.js} | 30 +- .../{apply-BHdZAFij.js => apply-C0dbHXim.js} | 2 +- ...GlOp0UN.js => arrow-down-left-C5TMFWGe.js} | 2 +- ...eft-a7Nt3e5S.js => arrow-left-BQ77BzPY.js} | 2 +- ...ht-DUqjyG5g.js => arrow-right-9tTXNXlb.js} | 2 +- ...mu8K2j.js => arrow-right-left-Don28rGd.js} | 2 +- ...-CONKUAPq.js => arrow-up-down-Cl2YZAM0.js} | 2 +- ...on-C6ccRUsj.js => auth-button-BFWhyaSK.js} | 2 +- ...ut--hm5sqIA.js => auth-layout-BOm8sOvJ.js} | 2 +- .../{award-CjMubtHH.js => award-BaptGUZ1.js} | 2 +- .../{ban-DQn-PTEr.js => ban-DinbdSvY.js} | 2 +- .../{bell-DYicqpcQ.js => bell-CcbGsywu.js} | 2 +- ...open-BzmGBaRl.js => book-open-BhjQGuB4.js} | 2 +- .../{boxes-OutTNwlM.js => boxes-tio4i4uc.js} | 2 +- ...case-BKgf-yb0.js => briefcase-D2sJld6m.js} | 2 +- ...g-2-DadP8PRU.js => building-2-BEwcWTvs.js} | 2 +- ...lding-DW_9GQwt.js => building-XUeqS1lU.js} | 2 +- ...DlnknrQc.js => cache-settings-DRMKs1YM.js} | 2 +- ...tor-CeuHG_lv.js => calculator-SgflQyFn.js} | 2 +- ...endar-gcQNJrck.js => calendar-BLP58tly.js} | 2 +- ...endar-BIYI0UEN.js => calendar-BTKv_MgL.js} | 2 +- ...endar-Bm9jB1WP.js => calendar-Cm8wKXsu.js} | 2 +- ...endar-D8J8oqH5.js => calendar-D7aGe8G9.js} | 2 +- ...9E1RtXCZ.js => calendar-check-Da8212lu.js} | 2 +- ...-D37GabpP.js => calendar-days-BNWdabEQ.js} | 2 +- ...endar-DfNCnpLa.js => calendar-yeJg2hyJ.js} | 2 +- ...{camera-SPl73Xmu.js => camera-NVygL-q9.js} | 2 +- ...n-DHEl_xzN.js => chart-column-DIh64NZ8.js} | 2 +- ...3B.js => chart-no-axes-column-iCNIq9Y5.js} | 2 +- ...art-no-axes-column-increasing-BpUCpHgK.js} | 2 +- ...o-Cr4vxwqx.js => chatgpt-demo-CcUqtwBN.js} | 2 +- ...5NWhoC.js => chatgpt-settings-Dbo6FgSB.js} | 2 +- ...ckbox-CYQIGzbl.js => checkbox-DFcaeUTK.js} | 2 +- ...t-CRrX0kFZ.js => chevron-left-BopwdMwM.js} | 2 +- ...-Cj9vWq5q.js => chevron-right-DMFzxmwK.js} | 2 +- ...-up-DucaKQ3-.js => chevron-up-Dxy_p0e6.js} | 2 +- ...{circle-1_M8zNqP.js => circle-CLsBtL0H.js} | 2 +- ...t-B8ayxgAl.js => circle-alert-Ck-LaTXK.js} | 2 +- ...k-CTcXcmw_.js => circle-check-CTsvEZR1.js} | 2 +- ...6KKeWO.js => circle-check-big-CqmCWPTH.js} | 2 +- ...lp-BGaaZlKa.js => circle-help-zFpStH4x.js} | 2 +- ...cle-x-CfKsm7H3.js => circle-x-SWsZ3P0j.js} | 2 +- ...BZ7Kqeso.js => clipboard-list-Bg0Euj4T.js} | 2 +- .../{clock-BVZQtYUP.js => clock-DzOBoPIM.js} | 2 +- .../{code-CD7oUh2D.js => code-C2paiy7V.js} | 2 +- .../{coins-B2297ctz.js => coins-DtJBEZgX.js} | 2 +- ...onduct-DAFAM9iB.js => conduct-DaFQRRj_.js} | 2 +- ...AD8iPK.js => confirm-password-DyPQInAj.js} | 2 +- ...azV.js => convert-to-employee-gsy02vxV.js} | 2 +- ...BpxEGLW.js => cookie-settings-CMKIMSVG.js} | 2 +- .../{copy-D6lZoFYl.js => copy-CBjnbQSL.js} | 2 +- public/build/assets/create-BTtKhE3F.js | 1 + ...{create-C96OUMiY.js => create-BpjYPDaT.js} | 2 +- ...{create-DxVIA8J6.js => create-BzeAsre7.js} | 2 +- public/build/assets/create-CBwPB0be.js | 1 - ...{create-Ccp_V9mw.js => create-CoesjaCe.js} | 2 +- ...{create-BheCj4ym.js => create-Cv39m6NM.js} | 2 +- ...{create-DLtpyYjA.js => create-Dfc5s_2A.js} | 2 +- ...{create-BfpiSaku.js => create-DmulFufT.js} | 2 +- ...{create-PRpJJyoZ.js => create-IJV7bYPl.js} | 2 +- ...rd-D8zG-MvI.js => credit-card-ljzAPDue.js} | 2 +- ...hair-CzV0fWxp.js => crosshair-DTyhBZE5.js} | 2 +- .../{crown-CMz9BX1H.js => crown-zfumIcj8.js} | 2 +- ...ttdXI.js => currency-settings-DXT94vDS.js} | 2 +- ...ge-DBXfKFuz.js => custom-page-BREaGbUA.js} | 2 +- ...oard-C5mQYanM.js => dashboard-BVIc6BjL.js} | 2 +- ...oard-kWskLSjf.js => dashboard-DU6W7T4d.js} | 2 +- ...oard-B3T0iVde.js => dashboard-DnagTfE8.js} | 2 +- ...oard-CjWJLvWy.js => dashboard-JQSPqd8y.js} | 2 +- ...oard-BOQZLNO7.js => dashboard-fZfDwyV2.js} | 2 +- ...H-9.js => depreciation-report-BDSHb4JZ.js} | 2 +- ...gn-DEPMZ3f5.js => dollar-sign-bcdEMzYN.js} | 2 +- ...nload-L-j3Hs25.js => download-CkX-hJtI.js} | 2 +- .../{edit-CM-a4lBT.js => edit-BJQX5ozP.js} | 2 +- public/build/assets/edit-BJnyqyj3.js | 1 - .../{edit-BBwZ0zMn.js => edit-BPHA78f6.js} | 2 +- .../{edit-DAWk3oUj.js => edit-BUZQ4s84.js} | 2 +- .../{edit-DjsKec_P.js => edit-BecZL15J.js} | 2 +- .../{edit-QebnXdA4.js => edit-BtZ_w5Ac.js} | 2 +- public/build/assets/edit-DA9FZpsZ.js | 1 + .../{edit-fUQsVg8H.js => edit-MPT2FiPl.js} | 2 +- ...> email-notification-settings-BnITUOP0.js} | 2 +- ...Cuv3rkBL.js => email-settings-CGvyJWHG.js} | 2 +- ...X0rf.js => employee-dashboard-DJlCfwMN.js} | 2 +- ...enses-CmzvyRgK.js => expenses-ByvKCAcv.js} | 2 +- ...perience-certificate-settings-DReYOZHJ.js} | 2 +- ...-BqhSWP4p.js => external-link-CPuLEUpp.js} | 2 +- .../{eye-TLkxKnCq.js => eye-VTFCyTyM.js} | 2 +- ...ye-off-CJzPLzeN.js => eye-off-DF2kXudZ.js} | 2 +- ...down-B-va8ah6.js => file-down-DlHbhy9s.js} | 2 +- ...ile-up-DtFy3z5R.js => file-up-Cfkysag-.js} | 2 +- ...{filter-CBRiM0r4.js => filter-DOMq0Vrh.js} | 2 +- ...zqhiqp3.js => forgot-password-BPT-ezm1.js} | 2 +- .../{form-B1XmHAuS.js => form-YWiTxg8R.js} | 2 +- ...erate-CB7Sk7MO.js => generate-Dx0TC-gF.js} | 2 +- ...erate-DIfBLiBv.js => generate-J5WeT2oj.js} | 2 +- ...erate-B31RGNdb.js => generate-XlXDyud1.js} | 2 +- .../{gift-CVFNrX_x.js => gift-DcCNc2X1.js} | 2 +- ...nch-I6o8eTUM.js => git-branch-BdRBSyt1.js} | 2 +- .../{globe-BV-V8u_6.js => globe-Ceg_d9rk.js} | 2 +- ...s => google-calendar-settings-BnCxrvl6.js} | 2 +- ...-WVbAwevM.js => grip-vertical-BpYYgNc-.js} | 2 +- ...ive-CiD0YEwE.js => hard-drive-CupXEOAu.js} | 2 +- .../{hash-_aMK0MDt.js => hash-CYPNE7ur.js} | 2 +- .../{heart-BQ0S5x0g.js => heart-KpdhBjuF.js} | 2 +- .../{house-8TaxZb3W.js => house-BOwCWhG8.js} | 2 +- .../{i18n-CqJ5YDxB.js => i18n-Bi_NK1S8.js} | 2 +- .../{index-B7zZTUAa.js => index--VZI32Cq.js} | 2 +- .../{index-FenZt1ms.js => index-11h-aj2V.js} | 2 +- .../{index-CXXnLIHW.js => index-8BAwIjL_.js} | 2 +- .../{index-CcDUOEzw.js => index-B755XBPw.js} | 2 +- .../{index-ByuNyjEv.js => index-BBAoGz7U.js} | 2 +- .../{index-DzgYuGP6.js => index-BBdC92q0.js} | 2 +- .../{index-DyE5rLn4.js => index-BDNe2mdo.js} | 2 +- .../{index-GZ54y5X8.js => index-BEanUgmV.js} | 2 +- .../{index-BhPwG8C7.js => index-BFC78hUF.js} | 2 +- .../{index-H0cP0TB0.js => index-BH6-Tlka.js} | 2 +- .../{index-bfe9RyLm.js => index-BL4T4RyH.js} | 2 +- public/build/assets/index-BLZUrdxj.js | 1 + .../{index-CAowLqrd.js => index-BNiwE0Fp.js} | 2 +- .../{index-0GAojLJl.js => index-BR6zGgmf.js} | 2 +- .../{index-DV4iBZq-.js => index-BRpboxkw.js} | 2 +- .../{index-3X5mHxbO.js => index-BXPXf6N4.js} | 2 +- .../{index-Ca7SrcNc.js => index-BXflnxA4.js} | 2 +- .../{index-CliuML5d.js => index-Bbabih5b.js} | 2 +- public/build/assets/index-Bdw73x7p.js | 1 + .../{index-CHloav9X.js => index-Be6VOdbf.js} | 2 +- .../{index-BPdOUF8f.js => index-BgmoGRxl.js} | 2 +- .../{index-DNfX7OxP.js => index-BuzyUWp5.js} | 2 +- .../{index-sjApNaPR.js => index-BvqHLXWK.js} | 2 +- .../{index-DgeuSlBw.js => index-BxLH2RCN.js} | 2 +- .../{index-DQ3aRve8.js => index-C4iM31GB.js} | 2 +- .../{index-DDy2R2CQ.js => index-CAKXvOgP.js} | 2 +- .../{index-BjrkEKEA.js => index-CBz26uqh.js} | 2 +- .../{index-BnrVyf3u.js => index-CGT89XQk.js} | 2 +- .../{index-DK5SahFx.js => index-CJfGbMwt.js} | 2 +- public/build/assets/index-CLVZMvGP.js | 1 + public/build/assets/index-COW26pQl.js | 1 - .../{index-C7q-L0oK.js => index-COXWlc3t.js} | 2 +- .../{index-oIkgdc0P.js => index-CRNpFF_n.js} | 2 +- public/build/assets/index-CSAVlAvr.js | 1 - .../{index-BOnqcQkQ.js => index-CU6V7CYD.js} | 2 +- .../{index-CUAmS3rZ.js => index-CUXAckq2.js} | 2 +- .../{index-EOsPyvdY.js => index-CapdoKqP.js} | 2 +- .../{index-DEIax7CG.js => index-Cbi44iY-.js} | 2 +- .../{index-BBK-kjUi.js => index-CdX82MsK.js} | 2 +- .../{index-Dfebjmv3.js => index-Chyv0mY7.js} | 2 +- .../{index-B54oPsu0.js => index-CiWqTkMF.js} | 2 +- .../{index-DzDPF5C1.js => index-ClXtFTIn.js} | 2 +- .../{index-a-k5V4FO.js => index-ClxqhoTZ.js} | 2 +- .../{index-u3ofBdMa.js => index-CoQfto9i.js} | 2 +- .../{index-BC1kFOcB.js => index-Cpr6RtCR.js} | 2 +- .../{index-nO5j15RX.js => index-Cs7A4UWR.js} | 2 +- .../{index-C3VhZ7X5.js => index-CwtBB618.js} | 2 +- .../{index-DZxpwqgL.js => index-CzQtE-QV.js} | 2 +- .../{index-zE36TbXZ.js => index-D-8GK7eA.js} | 2 +- .../{index-D_RurNX8.js => index-D-xgAnex.js} | 2 +- .../{index-Cwqj726J.js => index-D0wRpQWt.js} | 2 +- .../{index-dYs88eYh.js => index-D1Gdjfsi.js} | 2 +- .../{index-v5nL27Eh.js => index-D30KEL0Y.js} | 2 +- .../{index-CtgTfJON.js => index-D5LCQhOk.js} | 2 +- .../{index-Bb0VZA8d.js => index-D7QFm6ow.js} | 2 +- .../{index-CAWuQvTp.js => index-DArmrTh5.js} | 2 +- .../{index-x3wba7f8.js => index-DDnWCRAn.js} | 2 +- .../{index-ns4FHn0d.js => index-DEoZyQ5Q.js} | 2 +- .../{index-DZQhmO6B.js => index-DFVBApy6.js} | 2 +- .../{index-nVvQbnsy.js => index-DH4GyNs9.js} | 2 +- .../{index-S2QcHmMs.js => index-DJMsZNyz.js} | 2 +- .../{index-BHtSSY7W.js => index-DJPU9zQ3.js} | 2 +- .../{index-BsHF30au.js => index-DKBPgdXW.js} | 2 +- .../{index-CKXbF-SV.js => index-DLGZ_DYh.js} | 2 +- .../{index-DM1kqK-p.js => index-DM4Oj__f.js} | 2 +- .../{index-bCz1xu17.js => index-DMmyOYVq.js} | 2 +- .../{index-CXSPyDtE.js => index-DNXUWM6g.js} | 2 +- .../{index-eU-Za_AM.js => index-DSLsSPMC.js} | 2 +- .../{index-CJG3F0yR.js => index-DUgWOpRq.js} | 2 +- .../{index-eDqhVXXo.js => index-DYx6nKLu.js} | 2 +- .../{index-BUnAbu-P.js => index-DbmQTH1X.js} | 2 +- .../{index-DqStkUQ1.js => index-DdJOnkle.js} | 2 +- .../{index-DIWCFN1w.js => index-DgNS5uUX.js} | 2 +- .../{index-BO1GfKKH.js => index-Dgl2mUPF.js} | 2 +- .../{index-C4w9ZFWv.js => index-DuBPeDQp.js} | 2 +- .../{index-B_KXJsn8.js => index-Dv459ww2.js} | 2 +- public/build/assets/index-DxAVfdjC.js | 1 - public/build/assets/index-J18ScBGo.js | 1 + .../{index-HArAULev.js => index-LjpcQkRu.js} | 2 +- .../{index-DzBfNGWk.js => index-LlzROJkV.js} | 2 +- .../{index-Do91iPNV.js => index-NKO_kP8Y.js} | 2 +- .../{index-CjzWk_ZJ.js => index-OgWTVve3.js} | 2 +- .../{index-Czr4BnA0.js => index-Qk13jrcT.js} | 2 +- .../{index-CZ__vnbw.js => index-X1a4nGDO.js} | 2 +- .../{index-SaJtqg5u.js => index-ZFgnofk7.js} | 2 +- .../{index-CKLb641f.js => index-b3U4dZdL.js} | 2 +- .../{index-xIo19lnh.js => index-bM93g6cK.js} | 2 +- .../{index-C5HX2syJ.js => index-dwbNnc1R.js} | 2 +- .../{index-6LTDn-UU.js => index-fZNEfasl.js} | 2 +- .../{index-FYsS30Ex.js => index-i57UnYJI.js} | 2 +- public/build/assets/index-jeUcLTYI.js | 1 - .../{index-DF1ZwPCc.js => index-nY3rpbjZ.js} | 2 +- .../{index-C54nT5Yz.js => index-s6xH2F55.js} | 2 +- .../{index-BHdDT3Pw.js => index-t-pIbL3y.js} | 2 +- .../{index-lKVtPyMa.js => index-zFDEKwxM.js} | 2 +- .../{index-6lrcnwMJ.js => index-zVLGijAy.js} | 2 +- .../{index-LirCRkvz.js => index-zsIB66zk.js} | 2 +- ...e-Cnxg20SR.js => indian-rupee-GA3CPXl8.js} | 2 +- .../{info-CUVFT_b2.js => info-ByWc-Tkz.js} | 2 +- public/build/assets/input-error-CUHeOipv.js | 1 + public/build/assets/input-error-Dgw6n-fk.js | 1 - ...gram-C45NAPrj.js => instagram-C9DDA_wX.js} | 2 +- .../ip-restriction-settings-BSbH37-A.js | 1 - .../ip-restriction-settings-BzN6pza_.js | 1 + ...ls-DoZ-tkKC.js => job-details-BhLHhnEV.js} | 2 +- ...js => joining-letter-settings-ClfVxh07.js} | 2 +- .../{key-BxQnrFAw.js => key-CxoRUnrO.js} | 2 +- ...{layers-D6Sv_aBW.js => layers-D56AD4XE.js} | 2 +- ...id-Dlu7hxHb.js => layout-grid-DKMvB0ii.js} | 2 +- ...st-B84oZX48.js => layout-list-LN3aqIJU.js} | 2 +- ...bulb-CmXpZA2a.js => lightbulb-oXJOGzgJ.js} | 2 +- ...{link-2-B9k0XRLv.js => link-2-CcHZf5rl.js} | 2 +- .../{link-B3wNGiM9.js => link-IOaY_KQH.js} | 2 +- .../{list-BwOh69td.js => list-D59g-ZkY.js} | 2 +- ...-ifydYLPc.js => loader-circle-BvvBEWYy.js} | 2 +- .../{lock-6O4sRSlL.js => lock-CYwz-bJT.js} | 2 +- ...open-ZWo1f94L.js => lock-open-dsRhF5Lb.js} | 2 +- ...{log-in-BHGk9WKF.js => log-in-2pdXU4mi.js} | 2 +- ...og-out-rZ-6N8el.js => log-out-BehrvNLQ.js} | 2 +- .../{login-261plrD0.js => login-CaDh5DP6.js} | 2 +- .../{mail-DxVHYF7N.js => mail-DeK8bIPR.js} | 2 +- ...GYdLx1S.js => manage-language-C3M1U8-i.js} | 2 +- ...ap-pin-IdpREju-.js => map-pin-M1W6OuY8.js} | 2 +- ...-3f5QZM0Y.js => media-library-BFf9DanD.js} | 2 +- .../{menu-D0MrC3-G.js => menu-B-BT0CdI.js} | 2 +- ...Ck5hHwt6.js => message-square-Br5CUSIj.js} | 2 +- ....js => message-square-warning-DnqzWQ5p.js} | 2 +- ...onitor-MMlreZ6a.js => monitor-DLOwEyU3.js} | 2 +- ..._7PP.js => multi-select-field-BiZLl9zF.js} | 2 +- ...s-aVEP8XAZ.js => noc-settings-CoSJjO4U.js} | 2 +- ...ackage-BgGG9D7B.js => package-ChaJccWz.js} | 2 +- ...-B2ntYrLT.js => page-template-CmmfDheW.js} | 4 +- ...ion-BtZgOD-s.js => pagination-mZZqnAdX.js} | 2 +- ...ioH_Ui.js => payment-settings-BJCx_NVB.js} | 2 +- ...PWxRqD3.js => payout-requests-qnzRuAuu.js} | 2 +- ...LkY.js => payroll-calculation-C6GEV48O.js} | 2 +- ...ercent-t1PnhZvQ.js => percent-9X2V9HRo.js} | 2 +- .../{phone-C6oVC2rb.js => phone-CgD68jaL.js} | 2 +- ...rs-4mko7r2G.js => plan-orders-DLfOZDf1.js} | 2 +- ...t-Bu_hbxlK.js => plan-request-lMI6ZlZQ.js} | 2 +- .../{plane-BDHK1wP4.js => plane-Dpgo7KLo.js} | 2 +- .../{play-Bcyp9ITy.js => play-B4Idjg2U.js} | 2 +- ...T2qk8P.js => profile-settings-Blz8Q_Q1.js} | 2 +- ...gress-BZ116p-e.js => progress-DiaVZTq1.js} | 2 +- ...r-code-DxYbVEkr.js => qr-code-BkoTlVt-.js} | 2 +- .../{quote-CjYpK6AJ.js => quote-CGCdNvLE.js} | 2 +- ...up-BQIr4fyd.js => radio-group-DQy4AAqY.js} | 2 +- ...tcha-BxllrQqt.js => recaptcha-DMMyS6Qp.js} | 2 +- ...jKNi.js => recaptcha-settings-BgDq3wau.js} | 2 +- ...geQy.js => referral-dashboard-CSWrNA_m.js} | 2 +- ...mGjH9.js => referral-settings-Ac0_qUlS.js} | 2 +- ...B8GSmKWl.js => referred-users-D2rQoDEq.js} | 2 +- ....js => referred-users-section-DMO2mEZd.js} | 2 +- ...-cw-gcM_kYqC.js => refresh-cw-iWo6guvA.js} | 2 +- ...ister-BbEohUIG.js => register-bBKk_2DQ.js} | 2 +- ...CPEdHaZN.js => reset-password-BCbpRiZz.js} | 2 +- ...wwmZhQ.js => rich-text-editor-BCRa1oy-.js} | 2 +- .../{ruler-DKtnIiXK.js => ruler-Bk0JkgeM.js} | 2 +- .../{scale-D0KxNj3C.js => scale-C38oQYZf.js} | 2 +- ...ea-9uHad1Z9.js => scroll-area-DQH04JYa.js} | 2 +- ...k.js => search-and-filter-bar-BVfmjxmk.js} | 2 +- ...{select-CbXk1R0B.js => select-B2ZD_9zU.js} | 2 +- .../{send-Bj7h8rUg.js => send-D4zuFg21.js} | 2 +- ...s-DADArMYw.js => seo-settings-WotwtILU.js} | 2 +- ...{server-B6FbzqEM.js => server-D_NIhtO0.js} | 2 +- ...tings-Bk77v2EW.js => settings-B0BY5VRr.js} | 2 +- ...tings-CX6nvi-t.js => settings-I4rcMQaX.js} | 2 +- ...JX2fIJfN.js => settings-about-BpN7tcBh.js} | 2 +- ...DnZmJY.js => settings-contact-Dd5uUy5M.js} | 2 +- ...R7qBn.js => settings-features-Cb2U2fxH.js} | 2 +- ...Lozz.js => settings-templates-BJ2z1IIi.js} | 2 +- ...{shield-Bbpddci_.js => shield-BqrBIhc5.js} | 2 +- ...k-CsujthUX.js => shield-check-DHmF5sx9.js} | 2 +- .../{show-CykoYY0n.js => show-Bd9RU3Qh.js} | 2 +- .../{show-y34A_Zg6.js => show-BdmAIiPX.js} | 2 +- .../{show-DbSPEPnC.js => show-Bk0x1175.js} | 2 +- .../{show-4LtFUIo1.js => show-BlK05xNM.js} | 2 +- .../{show-BzG2DqVT.js => show-C6fAkbW0.js} | 2 +- .../{show-9-h59xby.js => show-C9mOFrP4.js} | 2 +- .../{show-BpwqVyM7.js => show-CP9j64dv.js} | 2 +- .../{show-BE2j4mXH.js => show-CZ0F1m2b.js} | 2 +- .../{show-BvoZ3OZw.js => show-CeblwC3S.js} | 2 +- .../{show-DjwI4OmG.js => show-CkXzhnZv.js} | 2 +- .../{show-DQG0on2g.js => show-DFsEAZhs.js} | 2 +- .../{show-BymPKoVk.js => show-DNRTvKXb.js} | 2 +- .../{show-BycAc_7C.js => show-DaoJn9NW.js} | 2 +- .../{show-CybCj4bb.js => show-Dm3dA7an.js} | 2 +- .../{show-CNC2pJ3N.js => show-DpRAiwkB.js} | 2 +- .../{show-D4ZygB4-.js => show-YRhT2roN.js} | 2 +- .../{show-DTOozyWT.js => show-azsbwSDT.js} | 2 +- .../{show-Cdv4T-GE.js => show-vU31GPhr.js} | 2 +- ...rkles-CfR7lDao.js => sparkles-BDzJtFsV.js} | 2 +- ...vPz894.js => square-check-big-DxDUf-Aa.js} | 2 +- ...pen-T7rpryAv.js => square-pen-CpGBZMVD.js} | 2 +- .../{star-GU5Kax9a.js => star-CtzRKCrZ.js} | 2 +- ...ics-C7YCguot.js => statistics-BgwJOdu0.js} | 2 +- ...WvEwNu.js => storage-settings-D3HYQV9r.js} | 2 +- ...HPxg0Ji.js => stripe-settings-D81kPoV1.js} | 2 +- .../{sun-BpQuVj2K.js => sun-BaGWxMs2.js} | 2 +- ...{switch-DhleYvkr.js => switch-BRQPJ0Pu.js} | 2 +- ...Ms7wpF8.js => system-settings-B_Pv5iL1.js} | 2 +- .../{table-DSvwhwjx.js => table-nCURXzDr.js} | 2 +- .../{tabs-DgQbH2iG.js => tabs-CS3jN4OA.js} | 2 +- .../{tag-NmFgBZB4.js => tag-BmKAiPKb.js} | 2 +- ...nput-CYFtvuye.js => tag-input-B2ez7fAB.js} | 2 +- ...{target-Bp0PaO6Q.js => target-BuKzCkjr.js} | 2 +- ...link-y2Q-vHOE.js => text-link-BzfuBc0h.js} | 2 +- ...tarea-B_SndWQW.js => textarea-C8D0rCZ6.js} | 2 +- ...s-up-CYBIkoHv.js => thumbs-up-DHtl3Mos.js} | 2 +- ...{ticket-Ctf1RIBL.js => ticket-DrGRTpoY.js} | 2 +- .../{timer-DwjTxvPw.js => timer-CNgqxzyP.js} | 2 +- ...rash-2-BsMHtHjz.js => trash-2-wljzifn4.js} | 2 +- .../{trash-D2EVoYgr.js => trash-CJoQcrZu.js} | 2 +- ...-DZWO8D7U.js => trending-down-B7wOtvgI.js} | 2 +- ...up-BjdLenQE.js => trending-up-0HtI1vzT.js} | 2 +- ...D2ry1q_6.js => triangle-alert-Df_6fR0i.js} | 2 +- ...{trophy-DTrPg_CC.js => trophy-DO2fuFhC.js} | 2 +- ...witter-D-kIxaKd.js => twitter-CUSTR7Ss.js} | 2 +- .../{type-BSvyGCKj.js => type-1_MWEX62.js} | 2 +- ...{unlink-Ch49KwjM.js => unlink-CBDWT229.js} | 2 +- ...KMMFWJY.js => use-brand-theme-DGv0OiAq.js} | 2 +- ...on-BZ62yh4h.js => use-favicon-T7ztUL14.js} | 2 +- .../{user-9XcFVF9J.js => user-JMXMKzLO.js} | 2 +- ...eck-DssH9IY_.js => user-check-NBLK0jLx.js} | 2 +- ...plus-x5edR71k.js => user-plus-BwF0GBPk.js} | 2 +- ...{user-x-D4abRW9M.js => user-x-BjPRk-FF.js} | 2 +- .../{users-BSBktdVT.js => users-CxIavEVE.js} | 2 +- ...l-BulRRua_.js => verify-email-DE5xcTnp.js} | 2 +- .../{view-D8N-kcaK.js => view-BDxEtxS6.js} | 2 +- .../{view-CCoroCS-.js => view-BERT5YL6.js} | 2 +- .../{view-DCcIYGV3.js => view-BMi_YusZ.js} | 2 +- .../{view-a7UyCy6W.js => view-BPHKMvDx.js} | 2 +- .../{view-CuRWg6Vy.js => view-BSjWxmVX.js} | 2 +- .../{view-IV1m7h3B.js => view-BTCX2V6T.js} | 2 +- .../{view-DD7Q_Z1z.js => view-BXR9pn6t.js} | 2 +- .../{view-MxhBhecU.js => view-BZvlUFBL.js} | 2 +- .../{view-D20nYCWu.js => view-BbPBAXYq.js} | 2 +- .../{view-kpOUAJWu.js => view-BhK6nOyC.js} | 2 +- .../{view-CVkBhXON.js => view-BhYW2TZ0.js} | 2 +- .../{view-uS6KDj7X.js => view-C22imGCX.js} | 2 +- .../{view-B4Ouh6W1.js => view-C27PT4HH.js} | 2 +- .../{view-Bcp_B_rB.js => view-C4KxQzUa.js} | 2 +- .../{view-BY0bGGk_.js => view-CDDeQu5w.js} | 2 +- .../{view-IrdKyccW.js => view-CEjvD-Af.js} | 2 +- .../{view-3cayeoOE.js => view-CFEf4o1G.js} | 2 +- .../{view-DutQTG04.js => view-CGas47vR.js} | 2 +- .../{view-CoGYbDLD.js => view-CJwBOhfr.js} | 2 +- .../{view-Dk3LMVy_.js => view-CMKaOMct.js} | 2 +- .../{view-B3rUpN41.js => view-CMbRaZK2.js} | 2 +- .../{view-BCx9zldz.js => view-CVR5ts7O.js} | 2 +- .../{view-BZunHddR.js => view-CXUksOnt.js} | 2 +- .../{view-WvrCOVgC.js => view-CjvT1ljb.js} | 2 +- .../{view-CaB7pEA9.js => view-Clo0at4w.js} | 2 +- .../{view-LEy-lHpT.js => view-CmDmBwYn.js} | 2 +- .../{view-B9Mk3uSh.js => view-Cntuc1IO.js} | 2 +- .../{view-DBnZKk3X.js => view-Cza81iQQ.js} | 2 +- .../{view-DRyLo1AQ.js => view-DF_8JCdo.js} | 2 +- .../{view-CYPT8osd.js => view-DGDQ4HZY.js} | 2 +- .../{view-CFsC5zrj.js => view-DHPYn0VQ.js} | 2 +- .../{view-Dj9oYHfh.js => view-DHzyT076.js} | 2 +- .../{view-DeUPN3Lm.js => view-DJ52lB4x.js} | 2 +- .../{view-CkmEcIa6.js => view-DRbHfqmf.js} | 2 +- .../{view-DMlNKBVi.js => view-DS5ZK_x3.js} | 2 +- .../{view-CyQ_SFfs.js => view-DYY-ksnX.js} | 2 +- .../{view-DWGa739J.js => view-Dc_X_XNp.js} | 2 +- .../{view-CIRx8bkP.js => view-Di0mhlnC.js} | 2 +- .../{view-Ccyzpc7x.js => view-DmJvBR-A.js} | 2 +- .../{view-BQgk2vf2.js => view-DzMCwEss.js} | 2 +- .../{view-DY0KOFwa.js => view-lmC-x0A5.js} | 2 +- .../{view-QPEhvTas.js => view-o0OdEJIM.js} | 2 +- .../{view-B6y6UoLc.js => view-sOoJ1ey9.js} | 2 +- .../{view-D0UOO-Zv.js => view-xaD-T1fQ.js} | 2 +- .../{view-tmsSxp-b.js => view-xjI50fJk.js} | 2 +- .../{view-mwV3d2_J.js => view-zuxcKHpJ.js} | 2 +- ...{wallet-fB7Qgro5.js => wallet-OryIaI-o.js} | 2 +- ...1l7aci.js => webhook-settings-B_IkYPdW.js} | 2 +- ...elcome-Cf4lUqR6.js => welcome-q6oW0iIO.js} | 2 +- .../{wifi-DpQfK6Cq.js => wifi-scuq7I1o.js} | 2 +- ...b.js => working-days-settings-DOiLeMG3.js} | 2 +- ...{wrench-DAJxHt41.js => wrench-BnEu3Y-c.js} | 2 +- .../{zap-Dm4IzKeS.js => zap-Ctg1ccsK.js} | 2 +- ...KS2SY6n4.js => zekto-settings-AptxC9VD.js} | 2 +- public/build/manifest.json | 27820 ++++++++-------- resources/js/components/app-sidebar.tsx | 8 +- resources/js/utils/axios-config.ts | 37 +- storage/logs/laravel.log | 180 + 416 files changed, 14522 insertions(+), 14371 deletions(-) rename public/build/assets/{AboutUs-vWjz2UwH.js => AboutUs-2CL2_Tux.js} (94%) rename public/build/assets/{ContactSection-CkFTBtM_.js => ContactSection-icl9AjBi.js} (97%) rename public/build/assets/{CookieConsentBanner-Byo3zuPL.js => CookieConsentBanner-ClQ8u3uz.js} (98%) rename public/build/assets/{CrudDeleteModal-DZYIfzYh.js => CrudDeleteModal-Cp7ocOVS.js} (90%) rename public/build/assets/{CrudFormModal-Bvh5mDoK.js => CrudFormModal-DCZgATgD.js} (97%) rename public/build/assets/{CrudTable-Dq-7DrKt.js => CrudTable-B-FIe3nV.js} (99%) rename public/build/assets/{FaqSection-BY-x8sGl.js => FaqSection-HoNaK4yf.js} (97%) rename public/build/assets/{FeaturesSection-BzYebja-.js => FeaturesSection-B6CHzUe8.js} (89%) rename public/build/assets/{Footer-DYzWJxz2.js => Footer-BEwrIUid.js} (95%) rename public/build/assets/{Header-DSpFBPRg.js => Header-CmqM50N6.js} (97%) rename public/build/assets/{HeroSection-DA1v_MUl.js => HeroSection-bvc33kmm.js} (96%) rename public/build/assets/{ImportModal-B8aH6xsY.js => ImportModal-B_zOuLRY.js} (96%) rename public/build/assets/{LivePreview-C_sBOW22.js => LivePreview-DReKJrbx.js} (96%) rename public/build/assets/{NewsletterSection-_PPq1Z7c.js => NewsletterSection-BNofaMxt.js} (98%) rename public/build/assets/{PlansSection-DtxabAxJ.js => PlansSection-BTPa4b7t.js} (98%) rename public/build/assets/{ScreenshotsSection-D2ZPR3ba.js => ScreenshotsSection-BCnA1d8s.js} (97%) rename public/build/assets/{SectionNavigation-DfvHeZF8.js => SectionNavigation-oX9C_bHT.js} (77%) rename public/build/assets/{TeamSection-BE8y5fxy.js => TeamSection-BdxqrDzN.js} (95%) rename public/build/assets/{TestimonialsSection-BBK5hBBz.js => TestimonialsSection-U3C_55LZ.js} (95%) rename public/build/assets/{WhyChooseUs-D0Z3Iwda.js => WhyChooseUs-A9JhvS2S.js} (87%) rename public/build/assets/{alert-D597ov4s.js => alert-Ds-hX2lu.js} (92%) rename public/build/assets/{app-BSYHJZwU.js => app-sDOUnh17.js} (84%) rename public/build/assets/{apply-BHdZAFij.js => apply-C0dbHXim.js} (97%) rename public/build/assets/{arrow-down-left-nGlOp0UN.js => arrow-down-left-C5TMFWGe.js} (87%) rename public/build/assets/{arrow-left-a7Nt3e5S.js => arrow-left-BQ77BzPY.js} (87%) rename public/build/assets/{arrow-right-DUqjyG5g.js => arrow-right-9tTXNXlb.js} (87%) rename public/build/assets/{arrow-right-left-UUmu8K2j.js => arrow-right-left-Don28rGd.js} (89%) rename public/build/assets/{arrow-up-down-CONKUAPq.js => arrow-up-down-Cl2YZAM0.js} (89%) rename public/build/assets/{auth-button-C6ccRUsj.js => auth-button-BFWhyaSK.js} (89%) rename public/build/assets/{auth-layout--hm5sqIA.js => auth-layout-BOm8sOvJ.js} (93%) rename public/build/assets/{award-CjMubtHH.js => award-BaptGUZ1.js} (90%) rename public/build/assets/{ban-DQn-PTEr.js => ban-DinbdSvY.js} (87%) rename public/build/assets/{bell-DYicqpcQ.js => bell-CcbGsywu.js} (90%) rename public/build/assets/{book-open-BzmGBaRl.js => book-open-BhjQGuB4.js} (90%) rename public/build/assets/{boxes-OutTNwlM.js => boxes-tio4i4uc.js} (95%) rename public/build/assets/{briefcase-BKgf-yb0.js => briefcase-D2sJld6m.js} (89%) rename public/build/assets/{building-2-DadP8PRU.js => building-2-BEwcWTvs.js} (93%) rename public/build/assets/{building-DW_9GQwt.js => building-XUeqS1lU.js} (94%) rename public/build/assets/{cache-settings-DlnknrQc.js => cache-settings-DRMKs1YM.js} (93%) rename public/build/assets/{calculator-CeuHG_lv.js => calculator-SgflQyFn.js} (94%) rename public/build/assets/{calendar-gcQNJrck.js => calendar-BLP58tly.js} (90%) rename public/build/assets/{calendar-BIYI0UEN.js => calendar-BTKv_MgL.js} (80%) rename public/build/assets/{calendar-Bm9jB1WP.js => calendar-Cm8wKXsu.js} (93%) rename public/build/assets/{calendar-D8J8oqH5.js => calendar-D7aGe8G9.js} (89%) rename public/build/assets/{calendar-check-9E1RtXCZ.js => calendar-check-Da8212lu.js} (91%) rename public/build/assets/{calendar-days-D37GabpP.js => calendar-days-BNWdabEQ.js} (93%) rename public/build/assets/{calendar-DfNCnpLa.js => calendar-yeJg2hyJ.js} (73%) rename public/build/assets/{camera-SPl73Xmu.js => camera-NVygL-q9.js} (89%) rename public/build/assets/{chart-column-DHEl_xzN.js => chart-column-DIh64NZ8.js} (90%) rename public/build/assets/{chart-no-axes-column-BFfQ0y3B.js => chart-no-axes-column-iCNIq9Y5.js} (90%) rename public/build/assets/{chart-no-axes-column-increasing-SxKAr_7S.js => chart-no-axes-column-increasing-BpUCpHgK.js} (90%) rename public/build/assets/{chatgpt-demo-Cr4vxwqx.js => chatgpt-demo-CcUqtwBN.js} (85%) rename public/build/assets/{chatgpt-settings-Zg5NWhoC.js => chatgpt-settings-Dbo6FgSB.js} (89%) rename public/build/assets/{checkbox-CYQIGzbl.js => checkbox-DFcaeUTK.js} (99%) rename public/build/assets/{chevron-left-CRrX0kFZ.js => chevron-left-BopwdMwM.js} (86%) rename public/build/assets/{chevron-right-Cj9vWq5q.js => chevron-right-DMFzxmwK.js} (86%) rename public/build/assets/{chevron-up-DucaKQ3-.js => chevron-up-Dxy_p0e6.js} (92%) rename public/build/assets/{circle-1_M8zNqP.js => circle-CLsBtL0H.js} (86%) rename public/build/assets/{circle-alert-B8ayxgAl.js => circle-alert-Ck-LaTXK.js} (90%) rename public/build/assets/{circle-check-CTcXcmw_.js => circle-check-CTsvEZR1.js} (87%) rename public/build/assets/{circle-check-big-Bg6KKeWO.js => circle-check-big-CqmCWPTH.js} (88%) rename public/build/assets/{circle-help-BGaaZlKa.js => circle-help-zFpStH4x.js} (89%) rename public/build/assets/{circle-x-CfKsm7H3.js => circle-x-SWsZ3P0j.js} (88%) rename public/build/assets/{clipboard-list-BZ7Kqeso.js => clipboard-list-Bg0Euj4T.js} (92%) rename public/build/assets/{clock-BVZQtYUP.js => clock-DzOBoPIM.js} (88%) rename public/build/assets/{code-CD7oUh2D.js => code-C2paiy7V.js} (88%) rename public/build/assets/{coins-B2297ctz.js => coins-DtJBEZgX.js} (90%) rename public/build/assets/{conduct-DAFAM9iB.js => conduct-DaFQRRj_.js} (84%) rename public/build/assets/{confirm-password-neAD8iPK.js => confirm-password-DyPQInAj.js} (69%) rename public/build/assets/{convert-to-employee-CO9VcazV.js => convert-to-employee-gsy02vxV.js} (94%) rename public/build/assets/{cookie-settings-BBpxEGLW.js => cookie-settings-CMKIMSVG.js} (95%) rename public/build/assets/{copy-D6lZoFYl.js => copy-CBjnbQSL.js} (89%) create mode 100644 public/build/assets/create-BTtKhE3F.js rename public/build/assets/{create-C96OUMiY.js => create-BpjYPDaT.js} (80%) rename public/build/assets/{create-DxVIA8J6.js => create-BzeAsre7.js} (94%) delete mode 100644 public/build/assets/create-CBwPB0be.js rename public/build/assets/{create-Ccp_V9mw.js => create-CoesjaCe.js} (81%) rename public/build/assets/{create-BheCj4ym.js => create-Cv39m6NM.js} (78%) rename public/build/assets/{create-DLtpyYjA.js => create-Dfc5s_2A.js} (89%) rename public/build/assets/{create-BfpiSaku.js => create-DmulFufT.js} (79%) rename public/build/assets/{create-PRpJJyoZ.js => create-IJV7bYPl.js} (83%) rename public/build/assets/{credit-card-D8zG-MvI.js => credit-card-ljzAPDue.js} (88%) rename public/build/assets/{crosshair-CzV0fWxp.js => crosshair-DTyhBZE5.js} (91%) rename public/build/assets/{crown-CMz9BX1H.js => crown-zfumIcj8.js} (92%) rename public/build/assets/{currency-settings-DhsttdXI.js => currency-settings-DXT94vDS.js} (95%) rename public/build/assets/{custom-page-DBXfKFuz.js => custom-page-BREaGbUA.js} (89%) rename public/build/assets/{dashboard-C5mQYanM.js => dashboard-BVIc6BjL.js} (80%) rename public/build/assets/{dashboard-kWskLSjf.js => dashboard-DU6W7T4d.js} (91%) rename public/build/assets/{dashboard-B3T0iVde.js => dashboard-DnagTfE8.js} (99%) rename public/build/assets/{dashboard-CjWJLvWy.js => dashboard-JQSPqd8y.js} (84%) rename public/build/assets/{dashboard-BOQZLNO7.js => dashboard-fZfDwyV2.js} (87%) rename public/build/assets/{depreciation-report-BpgOeH-9.js => depreciation-report-BDSHb4JZ.js} (69%) rename public/build/assets/{dollar-sign-DEPMZ3f5.js => dollar-sign-bcdEMzYN.js} (89%) rename public/build/assets/{download-L-j3Hs25.js => download-CkX-hJtI.js} (90%) rename public/build/assets/{edit-CM-a4lBT.js => edit-BJQX5ozP.js} (84%) delete mode 100644 public/build/assets/edit-BJnyqyj3.js rename public/build/assets/{edit-BBwZ0zMn.js => edit-BPHA78f6.js} (81%) rename public/build/assets/{edit-DAWk3oUj.js => edit-BUZQ4s84.js} (80%) rename public/build/assets/{edit-DjsKec_P.js => edit-BecZL15J.js} (78%) rename public/build/assets/{edit-QebnXdA4.js => edit-BtZ_w5Ac.js} (90%) create mode 100644 public/build/assets/edit-DA9FZpsZ.js rename public/build/assets/{edit-fUQsVg8H.js => edit-MPT2FiPl.js} (95%) rename public/build/assets/{email-notification-settings-kvAQXxww.js => email-notification-settings-BnITUOP0.js} (95%) rename public/build/assets/{email-settings-Cuv3rkBL.js => email-settings-CGvyJWHG.js} (93%) rename public/build/assets/{employee-dashboard-CJdOX0rf.js => employee-dashboard-DJlCfwMN.js} (90%) rename public/build/assets/{expenses-CmzvyRgK.js => expenses-ByvKCAcv.js} (68%) rename public/build/assets/{experience-certificate-settings-ehBlvMWz.js => experience-certificate-settings-DReYOZHJ.js} (90%) rename public/build/assets/{external-link-BqhSWP4p.js => external-link-CPuLEUpp.js} (90%) rename public/build/assets/{eye-TLkxKnCq.js => eye-VTFCyTyM.js} (90%) rename public/build/assets/{eye-off-CJzPLzeN.js => eye-off-DF2kXudZ.js} (93%) rename public/build/assets/{file-down-B-va8ah6.js => file-down-DlHbhy9s.js} (91%) rename public/build/assets/{file-up-DtFy3z5R.js => file-up-Cfkysag-.js} (91%) rename public/build/assets/{filter-CBRiM0r4.js => filter-DOMq0Vrh.js} (87%) rename public/build/assets/{forgot-password-Dzqhiqp3.js => forgot-password-BPT-ezm1.js} (74%) rename public/build/assets/{form-B1XmHAuS.js => form-YWiTxg8R.js} (84%) rename public/build/assets/{generate-CB7Sk7MO.js => generate-Dx0TC-gF.js} (95%) rename public/build/assets/{generate-DIfBLiBv.js => generate-J5WeT2oj.js} (95%) rename public/build/assets/{generate-B31RGNdb.js => generate-XlXDyud1.js} (95%) rename public/build/assets/{gift-CVFNrX_x.js => gift-DcCNc2X1.js} (92%) rename public/build/assets/{git-branch-I6o8eTUM.js => git-branch-BdRBSyt1.js} (90%) rename public/build/assets/{globe-BV-V8u_6.js => globe-Ceg_d9rk.js} (89%) rename public/build/assets/{google-calendar-settings-D-cPcwJW.js => google-calendar-settings-BnCxrvl6.js} (95%) rename public/build/assets/{grip-vertical-WVbAwevM.js => grip-vertical-BpYYgNc-.js} (92%) rename public/build/assets/{hard-drive-CiD0YEwE.js => hard-drive-CupXEOAu.js} (92%) rename public/build/assets/{hash-_aMK0MDt.js => hash-CYPNE7ur.js} (91%) rename public/build/assets/{heart-BQ0S5x0g.js => heart-KpdhBjuF.js} (89%) rename public/build/assets/{house-8TaxZb3W.js => house-BOwCWhG8.js} (96%) rename public/build/assets/{i18n-CqJ5YDxB.js => i18n-Bi_NK1S8.js} (95%) rename public/build/assets/{index-B7zZTUAa.js => index--VZI32Cq.js} (71%) rename public/build/assets/{index-FenZt1ms.js => index-11h-aj2V.js} (67%) rename public/build/assets/{index-CXXnLIHW.js => index-8BAwIjL_.js} (66%) rename public/build/assets/{index-CcDUOEzw.js => index-B755XBPw.js} (87%) rename public/build/assets/{index-ByuNyjEv.js => index-BBAoGz7U.js} (68%) rename public/build/assets/{index-DzgYuGP6.js => index-BBdC92q0.js} (74%) rename public/build/assets/{index-DyE5rLn4.js => index-BDNe2mdo.js} (70%) rename public/build/assets/{index-GZ54y5X8.js => index-BEanUgmV.js} (90%) rename public/build/assets/{index-BhPwG8C7.js => index-BFC78hUF.js} (65%) rename public/build/assets/{index-H0cP0TB0.js => index-BH6-Tlka.js} (58%) rename public/build/assets/{index-bfe9RyLm.js => index-BL4T4RyH.js} (92%) create mode 100644 public/build/assets/index-BLZUrdxj.js rename public/build/assets/{index-CAowLqrd.js => index-BNiwE0Fp.js} (64%) rename public/build/assets/{index-0GAojLJl.js => index-BR6zGgmf.js} (69%) rename public/build/assets/{index-DV4iBZq-.js => index-BRpboxkw.js} (74%) rename public/build/assets/{index-3X5mHxbO.js => index-BXPXf6N4.js} (69%) rename public/build/assets/{index-Ca7SrcNc.js => index-BXflnxA4.js} (69%) rename public/build/assets/{index-CliuML5d.js => index-Bbabih5b.js} (69%) create mode 100644 public/build/assets/index-Bdw73x7p.js rename public/build/assets/{index-CHloav9X.js => index-Be6VOdbf.js} (63%) rename public/build/assets/{index-BPdOUF8f.js => index-BgmoGRxl.js} (92%) rename public/build/assets/{index-DNfX7OxP.js => index-BuzyUWp5.js} (90%) rename public/build/assets/{index-sjApNaPR.js => index-BvqHLXWK.js} (54%) rename public/build/assets/{index-DgeuSlBw.js => index-BxLH2RCN.js} (88%) rename public/build/assets/{index-DQ3aRve8.js => index-C4iM31GB.js} (70%) rename public/build/assets/{index-DDy2R2CQ.js => index-CAKXvOgP.js} (70%) rename public/build/assets/{index-BjrkEKEA.js => index-CBz26uqh.js} (66%) rename public/build/assets/{index-BnrVyf3u.js => index-CGT89XQk.js} (66%) rename public/build/assets/{index-DK5SahFx.js => index-CJfGbMwt.js} (91%) create mode 100644 public/build/assets/index-CLVZMvGP.js delete mode 100644 public/build/assets/index-COW26pQl.js rename public/build/assets/{index-C7q-L0oK.js => index-COXWlc3t.js} (69%) rename public/build/assets/{index-oIkgdc0P.js => index-CRNpFF_n.js} (92%) delete mode 100644 public/build/assets/index-CSAVlAvr.js rename public/build/assets/{index-BOnqcQkQ.js => index-CU6V7CYD.js} (79%) rename public/build/assets/{index-CUAmS3rZ.js => index-CUXAckq2.js} (62%) rename public/build/assets/{index-EOsPyvdY.js => index-CapdoKqP.js} (71%) rename public/build/assets/{index-DEIax7CG.js => index-Cbi44iY-.js} (74%) rename public/build/assets/{index-BBK-kjUi.js => index-CdX82MsK.js} (60%) rename public/build/assets/{index-Dfebjmv3.js => index-Chyv0mY7.js} (74%) rename public/build/assets/{index-B54oPsu0.js => index-CiWqTkMF.js} (69%) rename public/build/assets/{index-DzDPF5C1.js => index-ClXtFTIn.js} (61%) rename public/build/assets/{index-a-k5V4FO.js => index-ClxqhoTZ.js} (90%) rename public/build/assets/{index-u3ofBdMa.js => index-CoQfto9i.js} (72%) rename public/build/assets/{index-BC1kFOcB.js => index-Cpr6RtCR.js} (56%) rename public/build/assets/{index-nO5j15RX.js => index-Cs7A4UWR.js} (91%) rename public/build/assets/{index-C3VhZ7X5.js => index-CwtBB618.js} (72%) rename public/build/assets/{index-DZxpwqgL.js => index-CzQtE-QV.js} (61%) rename public/build/assets/{index-zE36TbXZ.js => index-D-8GK7eA.js} (95%) rename public/build/assets/{index-D_RurNX8.js => index-D-xgAnex.js} (92%) rename public/build/assets/{index-Cwqj726J.js => index-D0wRpQWt.js} (59%) rename public/build/assets/{index-dYs88eYh.js => index-D1Gdjfsi.js} (65%) rename public/build/assets/{index-v5nL27Eh.js => index-D30KEL0Y.js} (65%) rename public/build/assets/{index-CtgTfJON.js => index-D5LCQhOk.js} (65%) rename public/build/assets/{index-Bb0VZA8d.js => index-D7QFm6ow.js} (53%) rename public/build/assets/{index-CAWuQvTp.js => index-DArmrTh5.js} (90%) rename public/build/assets/{index-x3wba7f8.js => index-DDnWCRAn.js} (76%) rename public/build/assets/{index-ns4FHn0d.js => index-DEoZyQ5Q.js} (63%) rename public/build/assets/{index-DZQhmO6B.js => index-DFVBApy6.js} (62%) rename public/build/assets/{index-nVvQbnsy.js => index-DH4GyNs9.js} (93%) rename public/build/assets/{index-S2QcHmMs.js => index-DJMsZNyz.js} (77%) rename public/build/assets/{index-BHtSSY7W.js => index-DJPU9zQ3.js} (91%) rename public/build/assets/{index-BsHF30au.js => index-DKBPgdXW.js} (71%) rename public/build/assets/{index-CKXbF-SV.js => index-DLGZ_DYh.js} (74%) rename public/build/assets/{index-DM1kqK-p.js => index-DM4Oj__f.js} (67%) rename public/build/assets/{index-bCz1xu17.js => index-DMmyOYVq.js} (79%) rename public/build/assets/{index-CXSPyDtE.js => index-DNXUWM6g.js} (67%) rename public/build/assets/{index-eU-Za_AM.js => index-DSLsSPMC.js} (70%) rename public/build/assets/{index-CJG3F0yR.js => index-DUgWOpRq.js} (73%) rename public/build/assets/{index-eDqhVXXo.js => index-DYx6nKLu.js} (69%) rename public/build/assets/{index-BUnAbu-P.js => index-DbmQTH1X.js} (71%) rename public/build/assets/{index-DqStkUQ1.js => index-DdJOnkle.js} (91%) rename public/build/assets/{index-DIWCFN1w.js => index-DgNS5uUX.js} (69%) rename public/build/assets/{index-BO1GfKKH.js => index-Dgl2mUPF.js} (66%) rename public/build/assets/{index-C4w9ZFWv.js => index-DuBPeDQp.js} (68%) rename public/build/assets/{index-B_KXJsn8.js => index-Dv459ww2.js} (62%) delete mode 100644 public/build/assets/index-DxAVfdjC.js create mode 100644 public/build/assets/index-J18ScBGo.js rename public/build/assets/{index-HArAULev.js => index-LjpcQkRu.js} (74%) rename public/build/assets/{index-DzBfNGWk.js => index-LlzROJkV.js} (74%) rename public/build/assets/{index-Do91iPNV.js => index-NKO_kP8Y.js} (56%) rename public/build/assets/{index-CjzWk_ZJ.js => index-OgWTVve3.js} (91%) rename public/build/assets/{index-Czr4BnA0.js => index-Qk13jrcT.js} (92%) rename public/build/assets/{index-CZ__vnbw.js => index-X1a4nGDO.js} (72%) rename public/build/assets/{index-SaJtqg5u.js => index-ZFgnofk7.js} (60%) rename public/build/assets/{index-CKLb641f.js => index-b3U4dZdL.js} (61%) rename public/build/assets/{index-xIo19lnh.js => index-bM93g6cK.js} (65%) rename public/build/assets/{index-C5HX2syJ.js => index-dwbNnc1R.js} (98%) rename public/build/assets/{index-6LTDn-UU.js => index-fZNEfasl.js} (62%) rename public/build/assets/{index-FYsS30Ex.js => index-i57UnYJI.js} (65%) delete mode 100644 public/build/assets/index-jeUcLTYI.js rename public/build/assets/{index-DF1ZwPCc.js => index-nY3rpbjZ.js} (54%) rename public/build/assets/{index-C54nT5Yz.js => index-s6xH2F55.js} (63%) rename public/build/assets/{index-BHdDT3Pw.js => index-t-pIbL3y.js} (65%) rename public/build/assets/{index-lKVtPyMa.js => index-zFDEKwxM.js} (62%) rename public/build/assets/{index-6lrcnwMJ.js => index-zVLGijAy.js} (67%) rename public/build/assets/{index-LirCRkvz.js => index-zsIB66zk.js} (91%) rename public/build/assets/{indian-rupee-Cnxg20SR.js => indian-rupee-GA3CPXl8.js} (94%) rename public/build/assets/{info-CUVFT_b2.js => info-ByWc-Tkz.js} (88%) create mode 100644 public/build/assets/input-error-CUHeOipv.js delete mode 100644 public/build/assets/input-error-Dgw6n-fk.js rename public/build/assets/{instagram-C45NAPrj.js => instagram-C9DDA_wX.js} (94%) delete mode 100644 public/build/assets/ip-restriction-settings-BSbH37-A.js create mode 100644 public/build/assets/ip-restriction-settings-BzN6pza_.js rename public/build/assets/{job-details-DoZ-tkKC.js => job-details-BhLHhnEV.js} (95%) rename public/build/assets/{joining-letter-settings-BBPSdfoB.js => joining-letter-settings-ClfVxh07.js} (90%) rename public/build/assets/{key-BxQnrFAw.js => key-CxoRUnrO.js} (90%) rename public/build/assets/{layers-D6Sv_aBW.js => layers-D56AD4XE.js} (92%) rename public/build/assets/{layout-grid-Dlu7hxHb.js => layout-grid-DKMvB0ii.js} (91%) rename public/build/assets/{layout-list-B84oZX48.js => layout-list-LN3aqIJU.js} (92%) rename public/build/assets/{lightbulb-CmXpZA2a.js => lightbulb-oXJOGzgJ.js} (90%) rename public/build/assets/{link-2-B9k0XRLv.js => link-2-CcHZf5rl.js} (89%) rename public/build/assets/{link-B3wNGiM9.js => link-IOaY_KQH.js} (90%) rename public/build/assets/{list-BwOh69td.js => list-D59g-ZkY.js} (91%) rename public/build/assets/{loader-circle-ifydYLPc.js => loader-circle-BvvBEWYy.js} (86%) rename public/build/assets/{lock-6O4sRSlL.js => lock-CYwz-bJT.js} (88%) rename public/build/assets/{lock-open-ZWo1f94L.js => lock-open-dsRhF5Lb.js} (97%) rename public/build/assets/{log-in-BHGk9WKF.js => log-in-2pdXU4mi.js} (90%) rename public/build/assets/{log-out-rZ-6N8el.js => log-out-BehrvNLQ.js} (90%) rename public/build/assets/{login-261plrD0.js => login-CaDh5DP6.js} (92%) rename public/build/assets/{mail-DxVHYF7N.js => mail-DeK8bIPR.js} (89%) rename public/build/assets/{manage-language-CGYdLx1S.js => manage-language-C3M1U8-i.js} (81%) rename public/build/assets/{map-pin-IdpREju-.js => map-pin-M1W6OuY8.js} (90%) rename public/build/assets/{media-library-3f5QZM0Y.js => media-library-BFf9DanD.js} (94%) rename public/build/assets/{menu-D0MrC3-G.js => menu-B-BT0CdI.js} (89%) rename public/build/assets/{message-square-Ck5hHwt6.js => message-square-Br5CUSIj.js} (87%) rename public/build/assets/{message-square-warning-DUuO2thx.js => message-square-warning-DnqzWQ5p.js} (90%) rename public/build/assets/{monitor-MMlreZ6a.js => monitor-DLOwEyU3.js} (90%) rename public/build/assets/{multi-select-field-Dvho_7PP.js => multi-select-field-BiZLl9zF.js} (96%) rename public/build/assets/{noc-settings-aVEP8XAZ.js => noc-settings-CoSJjO4U.js} (89%) rename public/build/assets/{package-BgGG9D7B.js => package-ChaJccWz.js} (92%) rename public/build/assets/{page-template-B2ntYrLT.js => page-template-CmmfDheW.js} (75%) rename public/build/assets/{pagination-BtZgOD-s.js => pagination-mZZqnAdX.js} (95%) rename public/build/assets/{payment-settings-BNioH_Ui.js => payment-settings-BJCx_NVB.js} (98%) rename public/build/assets/{payout-requests-CPWxRqD3.js => payout-requests-qnzRuAuu.js} (55%) rename public/build/assets/{payroll-calculation-CQRbLLkY.js => payroll-calculation-C6GEV48O.js} (93%) rename public/build/assets/{percent-t1PnhZvQ.js => percent-9X2V9HRo.js} (89%) rename public/build/assets/{phone-C6oVC2rb.js => phone-CgD68jaL.js} (92%) rename public/build/assets/{plan-orders-4mko7r2G.js => plan-orders-DLfOZDf1.js} (60%) rename public/build/assets/{plan-request-Bu_hbxlK.js => plan-request-lMI6ZlZQ.js} (56%) rename public/build/assets/{plane-BDHK1wP4.js => plane-Dpgo7KLo.js} (91%) rename public/build/assets/{play-Bcyp9ITy.js => play-B4Idjg2U.js} (86%) rename public/build/assets/{profile-settings-D3T2qk8P.js => profile-settings-Blz8Q_Q1.js} (87%) rename public/build/assets/{progress-BZ116p-e.js => progress-DiaVZTq1.js} (96%) rename public/build/assets/{qr-code-DxYbVEkr.js => qr-code-BkoTlVt-.js} (94%) rename public/build/assets/{quote-CjYpK6AJ.js => quote-CGCdNvLE.js} (92%) rename public/build/assets/{radio-group-BQIr4fyd.js => radio-group-DQy4AAqY.js} (98%) rename public/build/assets/{recaptcha-BxllrQqt.js => recaptcha-DMMyS6Qp.js} (96%) rename public/build/assets/{recaptcha-settings-CL9cjKNi.js => recaptcha-settings-BgDq3wau.js} (93%) rename public/build/assets/{referral-dashboard-C2g4geQy.js => referral-dashboard-CSWrNA_m.js} (97%) rename public/build/assets/{referral-settings-BKCmGjH9.js => referral-settings-Ac0_qUlS.js} (93%) rename public/build/assets/{referred-users-B8GSmKWl.js => referred-users-D2rQoDEq.js} (81%) rename public/build/assets/{referred-users-section-Dgvsv0rM.js => referred-users-section-DMO2mEZd.js} (94%) rename public/build/assets/{refresh-cw-gcM_kYqC.js => refresh-cw-iWo6guvA.js} (91%) rename public/build/assets/{register-BbEohUIG.js => register-bBKk_2DQ.js} (87%) rename public/build/assets/{reset-password-CPEdHaZN.js => reset-password-BCbpRiZz.js} (83%) rename public/build/assets/{rich-text-editor-DrwwmZhQ.js => rich-text-editor-BCRa1oy-.js} (99%) rename public/build/assets/{ruler-DKtnIiXK.js => ruler-Bk0JkgeM.js} (92%) rename public/build/assets/{scale-D0KxNj3C.js => scale-C38oQYZf.js} (98%) rename public/build/assets/{scroll-area-9uHad1Z9.js => scroll-area-DQH04JYa.js} (99%) rename public/build/assets/{search-and-filter-bar-CdwwN0hk.js => search-and-filter-bar-BVfmjxmk.js} (92%) rename public/build/assets/{select-CbXk1R0B.js => select-B2ZD_9zU.js} (99%) rename public/build/assets/{send-Bj7h8rUg.js => send-D4zuFg21.js} (90%) rename public/build/assets/{seo-settings-DADArMYw.js => seo-settings-WotwtILU.js} (98%) rename public/build/assets/{server-B6FbzqEM.js => server-D_NIhtO0.js} (91%) rename public/build/assets/{settings-Bk77v2EW.js => settings-B0BY5VRr.js} (98%) rename public/build/assets/{settings-CX6nvi-t.js => settings-I4rcMQaX.js} (95%) rename public/build/assets/{settings-about-JX2fIJfN.js => settings-about-BpN7tcBh.js} (97%) rename public/build/assets/{settings-contact-BxDnZmJY.js => settings-contact-Dd5uUy5M.js} (95%) rename public/build/assets/{settings-features-D5tR7qBn.js => settings-features-Cb2U2fxH.js} (96%) rename public/build/assets/{settings-templates-CcxILozz.js => settings-templates-BJ2z1IIi.js} (97%) rename public/build/assets/{shield-Bbpddci_.js => shield-BqrBIhc5.js} (90%) rename public/build/assets/{shield-check-CsujthUX.js => shield-check-DHmF5sx9.js} (91%) rename public/build/assets/{show-CykoYY0n.js => show-Bd9RU3Qh.js} (90%) rename public/build/assets/{show-y34A_Zg6.js => show-BdmAIiPX.js} (83%) rename public/build/assets/{show-DbSPEPnC.js => show-Bk0x1175.js} (75%) rename public/build/assets/{show-4LtFUIo1.js => show-BlK05xNM.js} (82%) rename public/build/assets/{show-BzG2DqVT.js => show-C6fAkbW0.js} (81%) rename public/build/assets/{show-9-h59xby.js => show-C9mOFrP4.js} (89%) rename public/build/assets/{show-BpwqVyM7.js => show-CP9j64dv.js} (84%) rename public/build/assets/{show-BE2j4mXH.js => show-CZ0F1m2b.js} (93%) rename public/build/assets/{show-BvoZ3OZw.js => show-CeblwC3S.js} (70%) rename public/build/assets/{show-DjwI4OmG.js => show-CkXzhnZv.js} (84%) rename public/build/assets/{show-DQG0on2g.js => show-DFsEAZhs.js} (91%) rename public/build/assets/{show-BymPKoVk.js => show-DNRTvKXb.js} (86%) rename public/build/assets/{show-BycAc_7C.js => show-DaoJn9NW.js} (81%) rename public/build/assets/{show-CybCj4bb.js => show-Dm3dA7an.js} (81%) rename public/build/assets/{show-CNC2pJ3N.js => show-DpRAiwkB.js} (91%) rename public/build/assets/{show-D4ZygB4-.js => show-YRhT2roN.js} (83%) rename public/build/assets/{show-DTOozyWT.js => show-azsbwSDT.js} (82%) rename public/build/assets/{show-Cdv4T-GE.js => show-vU31GPhr.js} (92%) rename public/build/assets/{sparkles-CfR7lDao.js => sparkles-BDzJtFsV.js} (98%) rename public/build/assets/{square-check-big-fDvPz894.js => square-check-big-DxDUf-Aa.js} (89%) rename public/build/assets/{square-pen-T7rpryAv.js => square-pen-CpGBZMVD.js} (91%) rename public/build/assets/{star-GU5Kax9a.js => star-CtzRKCrZ.js} (93%) rename public/build/assets/{statistics-C7YCguot.js => statistics-BgwJOdu0.js} (85%) rename public/build/assets/{storage-settings-BfWvEwNu.js => storage-settings-D3HYQV9r.js} (97%) rename public/build/assets/{stripe-settings-DHPxg0Ji.js => stripe-settings-D81kPoV1.js} (94%) rename public/build/assets/{sun-BpQuVj2K.js => sun-BaGWxMs2.js} (93%) rename public/build/assets/{switch-DhleYvkr.js => switch-BRQPJ0Pu.js} (98%) rename public/build/assets/{system-settings-MMs7wpF8.js => system-settings-B_Pv5iL1.js} (97%) rename public/build/assets/{table-DSvwhwjx.js => table-nCURXzDr.js} (96%) rename public/build/assets/{tabs-DgQbH2iG.js => tabs-CS3jN4OA.js} (98%) rename public/build/assets/{tag-NmFgBZB4.js => tag-BmKAiPKb.js} (91%) rename public/build/assets/{tag-input-CYFtvuye.js => tag-input-B2ez7fAB.js} (93%) rename public/build/assets/{target-Bp0PaO6Q.js => target-BuKzCkjr.js} (89%) rename public/build/assets/{text-link-y2Q-vHOE.js => text-link-BzfuBc0h.js} (82%) rename public/build/assets/{textarea-B_SndWQW.js => textarea-C8D0rCZ6.js} (87%) rename public/build/assets/{thumbs-up-CYBIkoHv.js => thumbs-up-DHtl3Mos.js} (95%) rename public/build/assets/{ticket-Ctf1RIBL.js => ticket-DrGRTpoY.js} (91%) rename public/build/assets/{timer-DwjTxvPw.js => timer-CNgqxzyP.js} (89%) rename public/build/assets/{trash-2-BsMHtHjz.js => trash-2-wljzifn4.js} (92%) rename public/build/assets/{trash-D2EVoYgr.js => trash-CJoQcrZu.js} (89%) rename public/build/assets/{trending-down-DZWO8D7U.js => trending-down-B7wOtvgI.js} (88%) rename public/build/assets/{trending-up-BjdLenQE.js => trending-up-0HtI1vzT.js} (88%) rename public/build/assets/{triangle-alert-D2ry1q_6.js => triangle-alert-Df_6fR0i.js} (90%) rename public/build/assets/{trophy-DTrPg_CC.js => trophy-DO2fuFhC.js} (93%) rename public/build/assets/{twitter-D-kIxaKd.js => twitter-CUSTR7Ss.js} (94%) rename public/build/assets/{type-BSvyGCKj.js => type-1_MWEX62.js} (89%) rename public/build/assets/{unlink-Ch49KwjM.js => unlink-CBDWT229.js} (98%) rename public/build/assets/{use-brand-theme-xKMMFWJY.js => use-brand-theme-DGv0OiAq.js} (98%) rename public/build/assets/{use-favicon-BZ62yh4h.js => use-favicon-T7ztUL14.js} (78%) rename public/build/assets/{user-9XcFVF9J.js => user-JMXMKzLO.js} (88%) rename public/build/assets/{user-check-DssH9IY_.js => user-check-NBLK0jLx.js} (90%) rename public/build/assets/{user-plus-x5edR71k.js => user-plus-BwF0GBPk.js} (91%) rename public/build/assets/{user-x-D4abRW9M.js => user-x-BjPRk-FF.js} (91%) rename public/build/assets/{users-BSBktdVT.js => users-CxIavEVE.js} (91%) rename public/build/assets/{verify-email-BulRRua_.js => verify-email-DE5xcTnp.js} (66%) rename public/build/assets/{view-D8N-kcaK.js => view-BDxEtxS6.js} (90%) rename public/build/assets/{view-CCoroCS-.js => view-BERT5YL6.js} (94%) rename public/build/assets/{view-DCcIYGV3.js => view-BMi_YusZ.js} (92%) rename public/build/assets/{view-a7UyCy6W.js => view-BPHKMvDx.js} (90%) rename public/build/assets/{view-CuRWg6Vy.js => view-BSjWxmVX.js} (93%) rename public/build/assets/{view-IV1m7h3B.js => view-BTCX2V6T.js} (94%) rename public/build/assets/{view-DD7Q_Z1z.js => view-BXR9pn6t.js} (92%) rename public/build/assets/{view-MxhBhecU.js => view-BZvlUFBL.js} (94%) rename public/build/assets/{view-D20nYCWu.js => view-BbPBAXYq.js} (90%) rename public/build/assets/{view-kpOUAJWu.js => view-BhK6nOyC.js} (92%) rename public/build/assets/{view-CVkBhXON.js => view-BhYW2TZ0.js} (94%) rename public/build/assets/{view-uS6KDj7X.js => view-C22imGCX.js} (92%) rename public/build/assets/{view-B4Ouh6W1.js => view-C27PT4HH.js} (91%) rename public/build/assets/{view-Bcp_B_rB.js => view-C4KxQzUa.js} (93%) rename public/build/assets/{view-BY0bGGk_.js => view-CDDeQu5w.js} (94%) rename public/build/assets/{view-IrdKyccW.js => view-CEjvD-Af.js} (94%) rename public/build/assets/{view-3cayeoOE.js => view-CFEf4o1G.js} (92%) rename public/build/assets/{view-DutQTG04.js => view-CGas47vR.js} (92%) rename public/build/assets/{view-CoGYbDLD.js => view-CJwBOhfr.js} (91%) rename public/build/assets/{view-Dk3LMVy_.js => view-CMKaOMct.js} (96%) rename public/build/assets/{view-B3rUpN41.js => view-CMbRaZK2.js} (93%) rename public/build/assets/{view-BCx9zldz.js => view-CVR5ts7O.js} (93%) rename public/build/assets/{view-BZunHddR.js => view-CXUksOnt.js} (94%) rename public/build/assets/{view-WvrCOVgC.js => view-CjvT1ljb.js} (94%) rename public/build/assets/{view-CaB7pEA9.js => view-Clo0at4w.js} (92%) rename public/build/assets/{view-LEy-lHpT.js => view-CmDmBwYn.js} (92%) rename public/build/assets/{view-B9Mk3uSh.js => view-Cntuc1IO.js} (94%) rename public/build/assets/{view-DBnZKk3X.js => view-Cza81iQQ.js} (94%) rename public/build/assets/{view-DRyLo1AQ.js => view-DF_8JCdo.js} (92%) rename public/build/assets/{view-CYPT8osd.js => view-DGDQ4HZY.js} (96%) rename public/build/assets/{view-CFsC5zrj.js => view-DHPYn0VQ.js} (93%) rename public/build/assets/{view-Dj9oYHfh.js => view-DHzyT076.js} (94%) rename public/build/assets/{view-DeUPN3Lm.js => view-DJ52lB4x.js} (93%) rename public/build/assets/{view-CkmEcIa6.js => view-DRbHfqmf.js} (91%) rename public/build/assets/{view-DMlNKBVi.js => view-DS5ZK_x3.js} (91%) rename public/build/assets/{view-CyQ_SFfs.js => view-DYY-ksnX.js} (91%) rename public/build/assets/{view-DWGa739J.js => view-Dc_X_XNp.js} (95%) rename public/build/assets/{view-CIRx8bkP.js => view-Di0mhlnC.js} (93%) rename public/build/assets/{view-Ccyzpc7x.js => view-DmJvBR-A.js} (90%) rename public/build/assets/{view-BQgk2vf2.js => view-DzMCwEss.js} (94%) rename public/build/assets/{view-DY0KOFwa.js => view-lmC-x0A5.js} (94%) rename public/build/assets/{view-QPEhvTas.js => view-o0OdEJIM.js} (94%) rename public/build/assets/{view-B6y6UoLc.js => view-sOoJ1ey9.js} (94%) rename public/build/assets/{view-D0UOO-Zv.js => view-xaD-T1fQ.js} (94%) rename public/build/assets/{view-tmsSxp-b.js => view-xjI50fJk.js} (93%) rename public/build/assets/{view-mwV3d2_J.js => view-zuxcKHpJ.js} (95%) rename public/build/assets/{wallet-fB7Qgro5.js => wallet-OryIaI-o.js} (90%) rename public/build/assets/{webhook-settings-Dt1l7aci.js => webhook-settings-B_IkYPdW.js} (92%) rename public/build/assets/{welcome-Cf4lUqR6.js => welcome-q6oW0iIO.js} (99%) rename public/build/assets/{wifi-DpQfK6Cq.js => wifi-scuq7I1o.js} (96%) rename public/build/assets/{working-days-settings-CrWUGleb.js => working-days-settings-DOiLeMG3.js} (95%) rename public/build/assets/{wrench-DAJxHt41.js => wrench-BnEu3Y-c.js} (90%) rename public/build/assets/{zap-Dm4IzKeS.js => zap-Ctg1ccsK.js} (90%) rename public/build/assets/{zekto-settings-KS2SY6n4.js => zekto-settings-AptxC9VD.js} (95%) diff --git a/app/Http/Controllers/Auth/AuthenticatedSessionController.php b/app/Http/Controllers/Auth/AuthenticatedSessionController.php index 652d6bfcf..87ccee3f6 100644 --- a/app/Http/Controllers/Auth/AuthenticatedSessionController.php +++ b/app/Http/Controllers/Auth/AuthenticatedSessionController.php @@ -158,6 +158,6 @@ class AuthenticatedSessionController extends Controller $request->session()->invalidate(); $request->session()->regenerateToken(); - return redirect('/'); + return Inertia::location('/'); } } diff --git a/app/Http/Controllers/DashboardController.php b/app/Http/Controllers/DashboardController.php index aaccd05a4..f741636ad 100644 --- a/app/Http/Controllers/DashboardController.php +++ b/app/Http/Controllers/DashboardController.php @@ -49,16 +49,18 @@ class DashboardController extends Controller { $user = auth()->user(); - // Define available routes with their permissions $routes = [ ['route' => 'users.index', 'permission' => 'manage-users'], ['route' => 'roles.index', 'permission' => 'manage-roles'], - - ['route' => 'plans.index', 'permission' => 'manage-plans'], - ['route' => 'referral.index', 'permission' => 'manage-referral'], - ['route' => 'settings.index', 'permission' => 'manage-settings'], ]; + if (isSaas()) { + $routes[] = ['route' => 'plans.index', 'permission' => 'manage-plans']; + $routes[] = ['route' => 'referral.index', 'permission' => 'manage-referral']; + } + + $routes[] = ['route' => 'settings.index', 'permission' => 'manage-settings']; + // Find first available route foreach ($routes as $routeData) { if ($user->hasPermissionTo($routeData['permission'])) { diff --git a/public/build/assets/AboutUs-vWjz2UwH.js b/public/build/assets/AboutUs-2CL2_Tux.js similarity index 94% rename from public/build/assets/AboutUs-vWjz2UwH.js rename to public/build/assets/AboutUs-2CL2_Tux.js index 7df7d44f4..b5b382c0d 100644 --- a/public/build/assets/AboutUs-vWjz2UwH.js +++ b/public/build/assets/AboutUs-2CL2_Tux.js @@ -1 +1 @@ -import{r as g,j as e}from"./ui-Z445SNHD.js";import{u as R}from"./useScrollAnimation-B_bDsIuD.js";import{u as S,g as _}from"./app-BSYHJZwU.js";import{Z as A}from"./zap-Dm4IzKeS.js";import{U as z}from"./users-BSBktdVT.js";import{S as M}from"./shield-Bbpddci_.js";import{S as $}from"./star-GU5Kax9a.js";import{L as E}from"./lightbulb-CmXpZA2a.js";import{A as I}from"./award-CjMubtHH.js";import{H as T}from"./heart-BQ0S5x0g.js";import{T as b}from"./target-Bp0PaO6Q.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";const U={target:b,heart:T,award:I,lightbulb:E,star:$,shield:M,users:z,zap:A};function X({settings:L,sectionData:t,brandColor:p="#3b82f6"}){const{t:s}=S(),{ref:j,isVisible:h}=R(),r=_(t.image),v=t.background_color||"#f9fafb",f=t.layout||"image-right",n=t.image_position||"right",i=t.parallax===!0,o=g.useRef(null),[m,y]=g.useState(0);g.useEffect(()=>{if(!i||!r)return;const a=()=>{if(!o.current)return;const l=o.current.getBoundingClientRect(),c=l.top+l.height/2-window.innerHeight/2;y(c*.2)};return window.addEventListener("scroll",a,{passive:!0}),a(),()=>window.removeEventListener("scroll",a)},[i,r]);const N=[{icon:"target",title:s("Our Mission"),description:s("To empower businesses with smart HR solutions that simplify employee management, payroll, attendance, and performance tracking.")},{icon:"heart",title:s("Our Values"),description:s("We prioritize innovation, efficiency, and creating a workplace ecosystem that nurtures growth and collaboration.")},{icon:"award",title:s("Our Commitment"),description:s("Providing reliable, intuitive HR tools backed by exceptional support to help organizations optimize their workforce.")},{icon:"lightbulb",title:s("Our Vision"),description:s("A future where HR management is fully automated, transparent, and enables organizations to focus on people, not paperwork.")}],w=[{value:s("3+ Years"),label:s("Experience"),color:"blue"},{value:"500+",label:s("Companies Served"),color:"green"},{value:"20K+",label:s("Employees Managed"),color:"purple"}],H=t.values&&t.values.length>0?t.values:N,d=t.stats&&t.stats.length>0?t.stats:w,x=()=>e.jsx("div",{className:"bg-white rounded-xl p-8 border border-gray-200 h-96 flex items-center justify-center overflow-hidden",children:r?e.jsx("img",{src:r,alt:"About Us",className:"max-w-full max-h-full object-contain rounded-lg",style:i?{transform:`translateY(${m}px)`,transition:"transform 0.1s linear"}:void 0}):e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-24 h-24 bg-gray-100 rounded-full mx-auto mb-6 flex items-center justify-center",children:e.jsx("span",{className:"text-3xl",children:t.image_icon||"🚀"})}),e.jsx("h4",{className:"text-xl font-semibold text-gray-900 mb-2",children:t.image_title||s("Innovation Driven")}),e.jsx("p",{className:"text-gray-600",children:t.image_subtitle||s("Building the future of networking")})]})}),u=({centered:a=!1})=>e.jsxs("div",{className:a?"text-center":"",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-6",children:t.story_title||s("We are passionate about simplifying HR management for businesses of all sizes.")}),e.jsx("div",{className:"text-gray-600 mb-8 leading-relaxed",dangerouslySetInnerHTML:{__html:(t.story_content||s("Founded by HR and tech enthusiasts, HRMGo was created to replace cumbersome spreadsheets and manual processes with a modern, all-in-one HR platform.")).replace(/\n/g,'

')}}),d.length>0&&e.jsx("div",{className:`flex items-center gap-8 ${a?"justify-center":""}`,children:d.map((l,c)=>e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-gray-900",children:l.value}),e.jsx("div",{className:"text-sm text-gray-600",children:l.label})]},c))})]}),k=()=>f==="centered"?n==="background"&&r?e.jsxs("div",{ref:o,className:"relative rounded-xl overflow-hidden mb-8 sm:mb-12 lg:mb-16",children:[e.jsx("img",{src:r,alt:"About Us",className:"w-full h-96 object-cover",style:i?{transform:`translateY(${m}px)`,transition:"transform 0.1s linear",height:"110%",top:"-5%",position:"relative"}:void 0}),e.jsx("div",{className:"absolute inset-0 bg-black/50 flex items-center justify-center p-8",children:e.jsxs("div",{className:"text-center text-white max-w-2xl",children:[e.jsx("h3",{className:"text-2xl font-bold mb-4",children:t.story_title||s("We are passionate about simplifying HR management for businesses of all sizes.")}),e.jsx("div",{className:"mb-6 leading-relaxed opacity-90",dangerouslySetInnerHTML:{__html:(t.story_content||s("Founded by HR and tech enthusiasts, HRMGo was created to replace cumbersome spreadsheets and manual processes with a modern, all-in-one HR platform.")).replace(/\n/g,'

')}}),d.length>0&&e.jsx("div",{className:"flex items-center justify-center gap-8",children:d.map((a,l)=>e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold",children:a.value}),e.jsx("div",{className:"text-sm opacity-80",children:a.label})]},l))})]})})]}):e.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-8 sm:mb-12 lg:mb-16",children:[e.jsx(u,{centered:!0}),(n==="left"||n==="right")&&e.jsx("div",{className:"mt-8",children:e.jsx(x,{})})]}):f==="image-left"?e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 sm:gap-12 lg:gap-16 items-center mb-8 sm:mb-12 lg:mb-16",children:[n==="background"&&r?e.jsxs("div",{ref:o,className:"relative rounded-xl overflow-hidden h-96",children:[e.jsx("img",{src:r,alt:"About Us",className:"w-full object-cover",style:i?{transform:`translateY(${m}px)`,transition:"transform 0.1s linear",height:"120%",top:"-10%",position:"relative"}:{height:"100%"}}),e.jsx("div",{className:"absolute inset-0 bg-black/30 rounded-xl"})]}):e.jsx(x,{}),e.jsx(u,{})]}):e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 sm:gap-12 lg:gap-16 items-center mb-8 sm:mb-12 lg:mb-16",children:[e.jsx(u,{}),n==="background"&&r?e.jsxs("div",{ref:o,className:"relative rounded-xl overflow-hidden h-96",children:[e.jsx("img",{src:r,alt:"About Us",className:"w-full object-cover",style:i?{transform:`translateY(${m}px)`,transition:"transform 0.1s linear",height:"120%",top:"-10%",position:"relative"}:{height:"100%"}}),e.jsx("div",{className:"absolute inset-0 bg-black/30 rounded-xl"})]}):e.jsx(x,{})]});return e.jsx("section",{id:"about",className:"py-12 sm:py-16 lg:py-20",style:{backgroundColor:v},ref:j,children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:`text-center mb-8 sm:mb-12 lg:mb-16 transition-all duration-700 ${h?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:t.title||s("About HRM SaaS")}),e.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto leading-relaxed font-medium",children:t.description||s("We are passionate about simplifying HR management for businesses of all sizes.")})]}),k(),e.jsx("div",{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 sm:gap-8 transition-all duration-700 delay-500 ${h?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:H.map((a,l)=>{const c=U[a.icon]||b;return e.jsxs("div",{className:"text-center bg-white p-6 rounded-xl border border-gray-200",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg flex items-center justify-center mx-auto mb-4",style:{backgroundColor:`${p}15`},children:e.jsx(c,{className:"w-6 h-6",style:{color:p}})}),e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-3",children:a.title}),e.jsx("p",{className:"text-gray-600 text-sm leading-relaxed",children:a.description})]},l)})})]})})}export{X as default}; +import{r as g,j as e}from"./ui-Z445SNHD.js";import{u as R}from"./useScrollAnimation-B_bDsIuD.js";import{u as S,g as _}from"./app-sDOUnh17.js";import{Z as A}from"./zap-Ctg1ccsK.js";import{U as z}from"./users-CxIavEVE.js";import{S as M}from"./shield-BqrBIhc5.js";import{S as $}from"./star-CtzRKCrZ.js";import{L as E}from"./lightbulb-oXJOGzgJ.js";import{A as I}from"./award-BaptGUZ1.js";import{H as T}from"./heart-KpdhBjuF.js";import{T as b}from"./target-BuKzCkjr.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";const U={target:b,heart:T,award:I,lightbulb:E,star:$,shield:M,users:z,zap:A};function X({settings:L,sectionData:t,brandColor:p="#3b82f6"}){const{t:s}=S(),{ref:j,isVisible:h}=R(),r=_(t.image),v=t.background_color||"#f9fafb",f=t.layout||"image-right",n=t.image_position||"right",i=t.parallax===!0,o=g.useRef(null),[m,y]=g.useState(0);g.useEffect(()=>{if(!i||!r)return;const a=()=>{if(!o.current)return;const l=o.current.getBoundingClientRect(),c=l.top+l.height/2-window.innerHeight/2;y(c*.2)};return window.addEventListener("scroll",a,{passive:!0}),a(),()=>window.removeEventListener("scroll",a)},[i,r]);const N=[{icon:"target",title:s("Our Mission"),description:s("To empower businesses with smart HR solutions that simplify employee management, payroll, attendance, and performance tracking.")},{icon:"heart",title:s("Our Values"),description:s("We prioritize innovation, efficiency, and creating a workplace ecosystem that nurtures growth and collaboration.")},{icon:"award",title:s("Our Commitment"),description:s("Providing reliable, intuitive HR tools backed by exceptional support to help organizations optimize their workforce.")},{icon:"lightbulb",title:s("Our Vision"),description:s("A future where HR management is fully automated, transparent, and enables organizations to focus on people, not paperwork.")}],w=[{value:s("3+ Years"),label:s("Experience"),color:"blue"},{value:"500+",label:s("Companies Served"),color:"green"},{value:"20K+",label:s("Employees Managed"),color:"purple"}],H=t.values&&t.values.length>0?t.values:N,d=t.stats&&t.stats.length>0?t.stats:w,x=()=>e.jsx("div",{className:"bg-white rounded-xl p-8 border border-gray-200 h-96 flex items-center justify-center overflow-hidden",children:r?e.jsx("img",{src:r,alt:"About Us",className:"max-w-full max-h-full object-contain rounded-lg",style:i?{transform:`translateY(${m}px)`,transition:"transform 0.1s linear"}:void 0}):e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-24 h-24 bg-gray-100 rounded-full mx-auto mb-6 flex items-center justify-center",children:e.jsx("span",{className:"text-3xl",children:t.image_icon||"🚀"})}),e.jsx("h4",{className:"text-xl font-semibold text-gray-900 mb-2",children:t.image_title||s("Innovation Driven")}),e.jsx("p",{className:"text-gray-600",children:t.image_subtitle||s("Building the future of networking")})]})}),u=({centered:a=!1})=>e.jsxs("div",{className:a?"text-center":"",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-6",children:t.story_title||s("We are passionate about simplifying HR management for businesses of all sizes.")}),e.jsx("div",{className:"text-gray-600 mb-8 leading-relaxed",dangerouslySetInnerHTML:{__html:(t.story_content||s("Founded by HR and tech enthusiasts, HRMGo was created to replace cumbersome spreadsheets and manual processes with a modern, all-in-one HR platform.")).replace(/\n/g,'

')}}),d.length>0&&e.jsx("div",{className:`flex items-center gap-8 ${a?"justify-center":""}`,children:d.map((l,c)=>e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-gray-900",children:l.value}),e.jsx("div",{className:"text-sm text-gray-600",children:l.label})]},c))})]}),k=()=>f==="centered"?n==="background"&&r?e.jsxs("div",{ref:o,className:"relative rounded-xl overflow-hidden mb-8 sm:mb-12 lg:mb-16",children:[e.jsx("img",{src:r,alt:"About Us",className:"w-full h-96 object-cover",style:i?{transform:`translateY(${m}px)`,transition:"transform 0.1s linear",height:"110%",top:"-5%",position:"relative"}:void 0}),e.jsx("div",{className:"absolute inset-0 bg-black/50 flex items-center justify-center p-8",children:e.jsxs("div",{className:"text-center text-white max-w-2xl",children:[e.jsx("h3",{className:"text-2xl font-bold mb-4",children:t.story_title||s("We are passionate about simplifying HR management for businesses of all sizes.")}),e.jsx("div",{className:"mb-6 leading-relaxed opacity-90",dangerouslySetInnerHTML:{__html:(t.story_content||s("Founded by HR and tech enthusiasts, HRMGo was created to replace cumbersome spreadsheets and manual processes with a modern, all-in-one HR platform.")).replace(/\n/g,'

')}}),d.length>0&&e.jsx("div",{className:"flex items-center justify-center gap-8",children:d.map((a,l)=>e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold",children:a.value}),e.jsx("div",{className:"text-sm opacity-80",children:a.label})]},l))})]})})]}):e.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-8 sm:mb-12 lg:mb-16",children:[e.jsx(u,{centered:!0}),(n==="left"||n==="right")&&e.jsx("div",{className:"mt-8",children:e.jsx(x,{})})]}):f==="image-left"?e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 sm:gap-12 lg:gap-16 items-center mb-8 sm:mb-12 lg:mb-16",children:[n==="background"&&r?e.jsxs("div",{ref:o,className:"relative rounded-xl overflow-hidden h-96",children:[e.jsx("img",{src:r,alt:"About Us",className:"w-full object-cover",style:i?{transform:`translateY(${m}px)`,transition:"transform 0.1s linear",height:"120%",top:"-10%",position:"relative"}:{height:"100%"}}),e.jsx("div",{className:"absolute inset-0 bg-black/30 rounded-xl"})]}):e.jsx(x,{}),e.jsx(u,{})]}):e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 sm:gap-12 lg:gap-16 items-center mb-8 sm:mb-12 lg:mb-16",children:[e.jsx(u,{}),n==="background"&&r?e.jsxs("div",{ref:o,className:"relative rounded-xl overflow-hidden h-96",children:[e.jsx("img",{src:r,alt:"About Us",className:"w-full object-cover",style:i?{transform:`translateY(${m}px)`,transition:"transform 0.1s linear",height:"120%",top:"-10%",position:"relative"}:{height:"100%"}}),e.jsx("div",{className:"absolute inset-0 bg-black/30 rounded-xl"})]}):e.jsx(x,{})]});return e.jsx("section",{id:"about",className:"py-12 sm:py-16 lg:py-20",style:{backgroundColor:v},ref:j,children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:`text-center mb-8 sm:mb-12 lg:mb-16 transition-all duration-700 ${h?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:t.title||s("About HRM SaaS")}),e.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto leading-relaxed font-medium",children:t.description||s("We are passionate about simplifying HR management for businesses of all sizes.")})]}),k(),e.jsx("div",{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 sm:gap-8 transition-all duration-700 delay-500 ${h?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:H.map((a,l)=>{const c=U[a.icon]||b;return e.jsxs("div",{className:"text-center bg-white p-6 rounded-xl border border-gray-200",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg flex items-center justify-center mx-auto mb-4",style:{backgroundColor:`${p}15`},children:e.jsx(c,{className:"w-6 h-6",style:{color:p}})}),e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-3",children:a.title}),e.jsx("p",{className:"text-gray-600 text-sm leading-relaxed",children:a.description})]},l)})})]})})}export{X as default}; diff --git a/public/build/assets/ContactSection-CkFTBtM_.js b/public/build/assets/ContactSection-icl9AjBi.js similarity index 97% rename from public/build/assets/ContactSection-CkFTBtM_.js rename to public/build/assets/ContactSection-icl9AjBi.js index 239b2cc5b..acd6bcc84 100644 --- a/public/build/assets/ContactSection-CkFTBtM_.js +++ b/public/build/assets/ContactSection-icl9AjBi.js @@ -1 +1 @@ -import{j as e}from"./ui-Z445SNHD.js";import{u as j,b as y,t as u}from"./app-BSYHJZwU.js";import{M as f}from"./mail-DxVHYF7N.js";import{P as N}from"./phone-C6oVC2rb.js";import{M as v}from"./map-pin-IdpREju-.js";import{S as w}from"./send-Bj7h8rUg.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function T({flash:S,settings:a,sectionData:s,brandColor:d="#3b82f6"}){const{t:r}=j(),{data:n,setData:c,post:g,processing:o,errors:t,reset:h}=y({name:"",email:"",subject:"",message:""}),b=l=>{l.preventDefault(),g(route("landing-page.contact"),{onSuccess:m=>{var x;h();const i=((x=m.props.flash)==null?void 0:x.success)||"Thank you for your message. We will get back to you soon!";u.success(i)},onError:m=>{const i=Object.values(m).join(", ");u.error(i||"Failed to send message. Please try again.")}})},p=[{icon:f,title:r("Email Us"),content:(a==null?void 0:a.contact_email)||"support@hrm.com"},{icon:N,title:r("Call Us"),content:(a==null?void 0:a.contact_phone)||"+1 (555) 123-4567"},{icon:v,title:r("Visit Us"),content:(a==null?void 0:a.contact_address)||"123 Business Ave, Suite 100"}].filter(l=>l.content);return e.jsx("section",{id:"contact",className:"py-12 sm:py-16 lg:py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-8 sm:mb-12 lg:mb-16",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:(s==null?void 0:s.title)||r("Get in Touch")}),e.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto leading-relaxed font-medium",children:(s==null?void 0:s.subtitle)||r("Have questions about HRM SaaS? We'd love to hear from you.. Send us a message and we'll respond as soon as possible.")})]}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 sm:gap-12 lg:gap-16",children:[e.jsx("div",{children:e.jsxs("div",{className:"bg-white border border-gray-200 rounded-xl p-8",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-6",children:(s==null?void 0:s.form_title)||r("Send us a Message")}),e.jsxs("form",{onSubmit:b,className:"space-y-6",role:"form","aria-label":"Contact form",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 sm:gap-6",children:[e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700 mb-2",children:[r("Full Name")," ",e.jsx("span",{className:"text-red-500","aria-label":"required",children:"*"})]}),e.jsx("input",{type:"text",id:"name",value:n.name,onChange:l=>c("name",l.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 disabled:bg-gray-100 disabled:cursor-not-allowed",style:{"--tw-ring-color":d},placeholder:r("Your full name"),required:!0,disabled:o}),t.name&&e.jsx("p",{className:"text-red-600 text-sm mt-1",children:t.name})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-2",children:[r("Email Address")," ",e.jsx("span",{className:"text-red-500","aria-label":"required",children:"*"})]}),e.jsx("input",{type:"email",id:"email",value:n.email,onChange:l=>c("email",l.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 disabled:bg-gray-100 disabled:cursor-not-allowed",style:{"--tw-ring-color":d},placeholder:r("your@email.com"),required:!0,disabled:o}),t.email&&e.jsx("p",{className:"text-red-600 text-sm mt-1",children:t.email})]})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"subject",className:"block text-sm font-medium text-gray-700 mb-2",children:[r("Subject")," ",e.jsx("span",{className:"text-red-500","aria-label":"required",children:"*"})]}),e.jsx("input",{type:"text",id:"subject",value:n.subject,onChange:l=>c("subject",l.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 disabled:bg-gray-100 disabled:cursor-not-allowed",style:{"--tw-ring-color":d},placeholder:r("What's this about?"),required:!0,disabled:o}),t.subject&&e.jsx("p",{className:"text-red-600 text-sm mt-1",children:t.subject})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"message",className:"block text-sm font-medium text-gray-700 mb-2",children:[r("Message")," ",e.jsx("span",{className:"text-red-500","aria-label":"required",children:"*"})]}),e.jsx("textarea",{id:"message",rows:6,value:n.message,onChange:l=>c("message",l.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 resize-none disabled:bg-gray-100 disabled:cursor-not-allowed",style:{"--tw-ring-color":d},placeholder:r("Tell us more about your inquiry..."),required:!0,disabled:o}),t.message&&e.jsx("p",{className:"text-red-600 text-sm mt-1",children:t.message})]}),e.jsx("button",{type:"submit",disabled:o,className:"cursor-pointer w-full text-white px-8 py-4 rounded-lg transition-colors font-semibold disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",style:{backgroundColor:d},"aria-label":o?"Sending message":"Send contact message",children:o?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}),r("Sending...")]}):e.jsxs(e.Fragment,{children:[e.jsx(w,{className:"w-5 h-5"}),r("Send Message")]})})]})]})}),e.jsx("div",{children:e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-6",children:(s==null?void 0:s.info_title)||r("Contact Information")}),e.jsx("p",{className:"text-gray-600 mb-8",children:(s==null?void 0:s.info_description)||r("We're here to help and answer any questions you might have about managing your HR processes efficiently. We look forward to hearing from you.")})]}),e.jsx("div",{className:"space-y-6",children:p.map((l,m)=>{const i=l.icon;return e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg flex items-center justify-center flex-shrink-0",style:{backgroundColor:`${d}15`},children:e.jsx(i,{className:"w-6 h-6",style:{color:d}})}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-lg font-semibold text-gray-900 mb-1",children:l.title}),e.jsx("p",{className:"text-gray-900 font-medium mb-1",children:l.content}),e.jsx("p",{className:"text-gray-600 text-sm",children:l.description})]})]},m)})}),(s==null?void 0:s.faqs)&&s.faqs.length>0&&e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-200",children:[e.jsx("h4",{className:"text-lg font-semibold text-gray-900 mb-4",children:r("Frequently Asked Questions")}),e.jsx("div",{className:"space-y-4",children:s.faqs.map((l,m)=>e.jsxs("div",{children:[e.jsx("h5",{className:"font-medium text-gray-900 mb-1",children:l.question}),e.jsx("p",{className:"text-gray-600 text-sm",children:l.answer})]},m))})]})]})})]})]})})}export{T as default}; +import{j as e}from"./ui-Z445SNHD.js";import{u as j,b as y,t as u}from"./app-sDOUnh17.js";import{M as f}from"./mail-DeK8bIPR.js";import{P as N}from"./phone-CgD68jaL.js";import{M as v}from"./map-pin-M1W6OuY8.js";import{S as w}from"./send-D4zuFg21.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function T({flash:S,settings:a,sectionData:s,brandColor:d="#3b82f6"}){const{t:r}=j(),{data:n,setData:c,post:g,processing:o,errors:t,reset:h}=y({name:"",email:"",subject:"",message:""}),b=l=>{l.preventDefault(),g(route("landing-page.contact"),{onSuccess:m=>{var x;h();const i=((x=m.props.flash)==null?void 0:x.success)||"Thank you for your message. We will get back to you soon!";u.success(i)},onError:m=>{const i=Object.values(m).join(", ");u.error(i||"Failed to send message. Please try again.")}})},p=[{icon:f,title:r("Email Us"),content:(a==null?void 0:a.contact_email)||"support@hrm.com"},{icon:N,title:r("Call Us"),content:(a==null?void 0:a.contact_phone)||"+1 (555) 123-4567"},{icon:v,title:r("Visit Us"),content:(a==null?void 0:a.contact_address)||"123 Business Ave, Suite 100"}].filter(l=>l.content);return e.jsx("section",{id:"contact",className:"py-12 sm:py-16 lg:py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-8 sm:mb-12 lg:mb-16",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:(s==null?void 0:s.title)||r("Get in Touch")}),e.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto leading-relaxed font-medium",children:(s==null?void 0:s.subtitle)||r("Have questions about HRM SaaS? We'd love to hear from you.. Send us a message and we'll respond as soon as possible.")})]}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 sm:gap-12 lg:gap-16",children:[e.jsx("div",{children:e.jsxs("div",{className:"bg-white border border-gray-200 rounded-xl p-8",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-6",children:(s==null?void 0:s.form_title)||r("Send us a Message")}),e.jsxs("form",{onSubmit:b,className:"space-y-6",role:"form","aria-label":"Contact form",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 sm:gap-6",children:[e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700 mb-2",children:[r("Full Name")," ",e.jsx("span",{className:"text-red-500","aria-label":"required",children:"*"})]}),e.jsx("input",{type:"text",id:"name",value:n.name,onChange:l=>c("name",l.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 disabled:bg-gray-100 disabled:cursor-not-allowed",style:{"--tw-ring-color":d},placeholder:r("Your full name"),required:!0,disabled:o}),t.name&&e.jsx("p",{className:"text-red-600 text-sm mt-1",children:t.name})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-2",children:[r("Email Address")," ",e.jsx("span",{className:"text-red-500","aria-label":"required",children:"*"})]}),e.jsx("input",{type:"email",id:"email",value:n.email,onChange:l=>c("email",l.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 disabled:bg-gray-100 disabled:cursor-not-allowed",style:{"--tw-ring-color":d},placeholder:r("your@email.com"),required:!0,disabled:o}),t.email&&e.jsx("p",{className:"text-red-600 text-sm mt-1",children:t.email})]})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"subject",className:"block text-sm font-medium text-gray-700 mb-2",children:[r("Subject")," ",e.jsx("span",{className:"text-red-500","aria-label":"required",children:"*"})]}),e.jsx("input",{type:"text",id:"subject",value:n.subject,onChange:l=>c("subject",l.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 disabled:bg-gray-100 disabled:cursor-not-allowed",style:{"--tw-ring-color":d},placeholder:r("What's this about?"),required:!0,disabled:o}),t.subject&&e.jsx("p",{className:"text-red-600 text-sm mt-1",children:t.subject})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"message",className:"block text-sm font-medium text-gray-700 mb-2",children:[r("Message")," ",e.jsx("span",{className:"text-red-500","aria-label":"required",children:"*"})]}),e.jsx("textarea",{id:"message",rows:6,value:n.message,onChange:l=>c("message",l.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 resize-none disabled:bg-gray-100 disabled:cursor-not-allowed",style:{"--tw-ring-color":d},placeholder:r("Tell us more about your inquiry..."),required:!0,disabled:o}),t.message&&e.jsx("p",{className:"text-red-600 text-sm mt-1",children:t.message})]}),e.jsx("button",{type:"submit",disabled:o,className:"cursor-pointer w-full text-white px-8 py-4 rounded-lg transition-colors font-semibold disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",style:{backgroundColor:d},"aria-label":o?"Sending message":"Send contact message",children:o?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}),r("Sending...")]}):e.jsxs(e.Fragment,{children:[e.jsx(w,{className:"w-5 h-5"}),r("Send Message")]})})]})]})}),e.jsx("div",{children:e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-6",children:(s==null?void 0:s.info_title)||r("Contact Information")}),e.jsx("p",{className:"text-gray-600 mb-8",children:(s==null?void 0:s.info_description)||r("We're here to help and answer any questions you might have about managing your HR processes efficiently. We look forward to hearing from you.")})]}),e.jsx("div",{className:"space-y-6",children:p.map((l,m)=>{const i=l.icon;return e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg flex items-center justify-center flex-shrink-0",style:{backgroundColor:`${d}15`},children:e.jsx(i,{className:"w-6 h-6",style:{color:d}})}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-lg font-semibold text-gray-900 mb-1",children:l.title}),e.jsx("p",{className:"text-gray-900 font-medium mb-1",children:l.content}),e.jsx("p",{className:"text-gray-600 text-sm",children:l.description})]})]},m)})}),(s==null?void 0:s.faqs)&&s.faqs.length>0&&e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-200",children:[e.jsx("h4",{className:"text-lg font-semibold text-gray-900 mb-4",children:r("Frequently Asked Questions")}),e.jsx("div",{className:"space-y-4",children:s.faqs.map((l,m)=>e.jsxs("div",{children:[e.jsx("h5",{className:"font-medium text-gray-900 mb-1",children:l.question}),e.jsx("p",{className:"text-gray-600 text-sm",children:l.answer})]},m))})]})]})})]})]})})}export{T as default}; diff --git a/public/build/assets/CookieConsentBanner-Byo3zuPL.js b/public/build/assets/CookieConsentBanner-ClQ8u3uz.js similarity index 98% rename from public/build/assets/CookieConsentBanner-Byo3zuPL.js rename to public/build/assets/CookieConsentBanner-ClQ8u3uz.js index 9fe572a0d..1c9db32d4 100644 --- a/public/build/assets/CookieConsentBanner-Byo3zuPL.js +++ b/public/build/assets/CookieConsentBanner-ClQ8u3uz.js @@ -1 +1 @@ -import{r as v,j as e,z as B,B as $,E as K,F as V,I as W,S as Q,G as Y,L as Z}from"./ui-Z445SNHD.js";import{R as P}from"./react-country-flag.esm-Bs2jngHP.js";import{u as A,c as I,D as ee,h as te,j as se,k as ae,L as M,I as z,o as j,J as T,e as F,K as _,N as O,P as oe,O as U,Q as ne,r as q,R as J,a as re,C as G,X as H,T as ie,t as X}from"./app-BSYHJZwU.js";import{R as ce}from"./refresh-cw-gcM_kYqC.js";import{G as le}from"./globe-BV-V8u_6.js";import{S as de}from"./settings-CX6nvi-t.js";import{S as ue}from"./switch-DhleYvkr.js";function me({open:s,onOpenChange:l,onSuccess:c}){var o;const{t}=A(),{props:p}=I(),b=((o=p.globalSettings)==null?void 0:o.is_demo)||!1,[n,u]=v.useState({code:"",name:"",countryCode:""}),[x,D]=v.useState(!1),f=async d=>{var C;d.preventDefault(),D(!0);try{const y=await fetch(route("languages.create"),{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":((C=document.querySelector('meta[name="csrf-token"]'))==null?void 0:C.getAttribute("content"))||"",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(n)}),h=await y.json();y.ok&&h.success?(T.success(h.message||t("Language created successfully")),u({code:"",name:"",countryCode:""}),l(!1),c==null||c(),window.location.reload()):(console.error("Create language error:",h),b&&h.message?T.error(h.message):T.error(h.error||t("Failed to create language")))}catch(y){console.error("Network error:",y),T.error(t("Failed to create language"))}finally{D(!1)}};return e.jsx(ee,{open:s,onOpenChange:l,children:e.jsxs(te,{className:"sm:max-w-md",children:[e.jsx(se,{children:e.jsx(ae,{children:t("Create Language")})}),e.jsxs("form",{onSubmit:f,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(M,{htmlFor:"code",children:t("Language Code")}),e.jsx(z,{id:"code",placeholder:t("e.g., fr, de, ja"),value:n.code,onChange:d=>u({...n,code:d.target.value}),required:!0})]}),e.jsxs("div",{children:[e.jsx(M,{htmlFor:"name",children:t("Language Name")}),e.jsx(z,{id:"name",placeholder:t("e.g., Français, Deutsch, 日本語"),value:n.name,onChange:d=>u({...n,name:d.target.value}),required:!0})]}),e.jsxs("div",{children:[e.jsx(M,{htmlFor:"countryCode",children:t("Country Code")}),e.jsx(z,{id:"countryCode",placeholder:t("e.g., FR, DE, JP"),maxLength:2,value:n.countryCode,onChange:d=>u({...n,countryCode:d.target.value.toUpperCase()}),required:!0})]}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(j,{type:"button",variant:"outline",onClick:()=>l(!1),children:t("Cancel")}),e.jsx(j,{type:"submit",disabled:x,children:x?e.jsxs(e.Fragment,{children:[e.jsx(ce,{className:"h-4 w-4 animate-spin mr-2"}),t("Creating...")]}):t("Create Language")})]})]})]})})}function ge({...s}){return e.jsx(B,{"data-slot":"dropdown-menu",...s})}function fe({...s}){return e.jsx($,{"data-slot":"dropdown-menu-trigger",...s})}function pe({className:s,sideOffset:l=4,...c}){return e.jsx(K,{children:e.jsx(V,{"data-slot":"dropdown-menu-content",sideOffset:l,className:F("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",s),...c})})}function he({...s}){return e.jsx(Y,{"data-slot":"dropdown-menu-group",...s})}function R({className:s,inset:l,variant:c="default",...t}){return e.jsx(W,{"data-slot":"dropdown-menu-item","data-inset":l,"data-variant":c,className:F("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s),...t})}function Ne({className:s,inset:l,...c}){return e.jsx(Z,{"data-slot":"dropdown-menu-label","data-inset":l,className:F("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",s),...c})}function xe({className:s,...l}){return e.jsx(Q,{"data-slot":"dropdown-menu-separator",className:F("bg-border -mx-1 my-1 h-px",s),...l})}function De(){var g,N;const{i18n:s,t:l}=A(),{auth:c,globalSettings:t,userLanguage:p}=I().props,{setPosition:b}=_(),{updatePosition:n}=_(),[u,x]=v.useState(()=>{const a=((t==null?void 0:t.availableLanguages)||[]).filter(r=>r.enabled!==!1);if(p){const r=a.find(i=>i.code===p);if(r)return r}return a[0]||null}),[D,f]=v.useState(!1),o=(t==null?void 0:t.availableLanguages)||[],d=(t==null?void 0:t.is_saas)||!1,C=!!(c!=null&&c.user),y=((N=(g=c==null?void 0:c.user)==null?void 0:g.roles)==null?void 0:N.map(a=>a.name))||[],h=C&&O("superadmin",y),S=C&&O("company",y),m=d?h:S;v.useEffect(()=>{const a=(o||[]).filter(r=>r.enabled!==!1);if(p&&s.language!==p)s.changeLanguage(p,()=>{const r=a.find(i=>i.code===p)||a[0];x(r)});else{const r=a.find(i=>i.code===s.language)||a[0];x(r)}},[o,p]),v.useEffect(()=>{const a=(o||[]).filter(i=>i.enabled!==!1),r=a.find(i=>i.code===s.language)||a[0];x(r)},[s.language,o]);const k=["ar","he"],w=async a=>{const r=o.find(i=>i.code===a);if(r){x(r);try{await s.changeLanguage(a);const i=k.includes(a);let L;U()?L=i?"right":ne("layoutPosition")||"left":L=i?"right":(t==null?void 0:t.layoutDirection)||"left",document.documentElement.dir="ltr",document.documentElement.setAttribute("dir","ltr"),n(L),C&&!U()?q.post(route("languages.change"),{language:a},{preserveScroll:!0,onSuccess:()=>{(i||!i&&(t==null?void 0:t.layoutDirection)==="right")&&q.post(route("settings.brand.update"),{settings:{layoutDirection:L}},{preserveScroll:!0,onError:E=>{console.error("Failed to update layout direction:",E)}})},onError:E=>{console.error("Failed to change language:",E)}}):(J("app_language",a),J("layoutPosition",L)),window.dispatchEvent(new CustomEvent("languageChanged",{detail:{language:a,direction:L}})),window.dispatchEvent(new Event("resize"))}catch(i){console.error("Error changing language:",i)}}};return e.jsxs(e.Fragment,{children:[e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsxs(j,{variant:"ghost",className:"flex items-center gap-2 rounded-md border shadow-sm bg-white",children:[e.jsx(le,{className:"h-4 w-4"}),u&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-sm font-medium hidden md:inline-block",children:u.name}),e.jsx(P,{countryCode:u.countryCode,svg:!0,style:{width:"1.2em",height:"1.2em"}})]})]})}),e.jsxs(pe,{className:"w-56",align:"end",forceMount:!0,children:[e.jsx(he,{children:e.jsx("div",{className:"max-h-48 overflow-y-auto",children:(o||[]).filter(a=>a.enabled!==!1).map(a=>e.jsxs(R,{onClick:()=>w(a.code),className:`flex items-center gap-2 ${(u==null?void 0:u.code)===a.code?"bg-accent":""}`,children:[e.jsx(P,{countryCode:a.countryCode,svg:!0,style:{width:"1.2em",height:"1.2em"}}),e.jsx("span",{children:a.name})]},a.code))})}),m&&e.jsxs(e.Fragment,{children:[e.jsx(xe,{}),e.jsxs(R,{onClick:()=>f(!0),className:"justify-center text-primary font-semibold cursor-pointer",children:[e.jsx(oe,{className:"h-4 w-4 mr-2"}),l("Create Language")]}),e.jsx(R,{asChild:!0,className:"justify-center text-primary font-semibold cursor-pointer",children:e.jsxs("a",{href:route("manage-language"),rel:"noopener noreferrer",children:[e.jsx(de,{className:"h-4 w-4 mr-2"}),l("Manage Language")]})})]})]})]}),e.jsx(me,{open:D,onOpenChange:f,onSuccess:()=>f(!1)})]})}function Le(){const{t:s}=A(),{props:l}=I(),[c,t]=v.useState(!1),[p,b]=v.useState(!1),[n,u]=v.useState(!1),{themeColor:x,customColor:D}=re(),f=x==="custom"?D:ie[x],o=l.globalSettings||{},d={cookieTitle:o.cookieTitle||"Cookie Consent",cookieDescription:o.cookieDescription||"We use cookies to enhance your browsing experience and provide personalized content.",strictlyCookieTitle:o.strictlyCookieTitle||"Strictly Necessary Cookies",strictlyCookieDescription:o.strictlyCookieDescription||"These cookies are essential for the website to function properly.",contactUsDescription:o.contactUsDescription||"If you have any questions about our cookie policy, please contact us.",contactUsUrl:o.contactUsUrl||"#"};v.useEffect(()=>{var N,a;const m=o.enableLogging==="1"||o.enableLogging===1||o.enableLogging===!0,k=o.is_demo==="1"||o.is_demo===1||o.is_demo===!0,w=window.location.pathname==="/dashboard"||window.location.pathname.includes("/dashboard"),g=(a=(N=l.auth)==null?void 0:N.user)==null?void 0:a.type;if(m){if(k&&(!w||g!=="company"))return;localStorage.getItem("cookie-consent")||t(!0)}},[]);const C=async()=>{try{const m=new AbortController,k=setTimeout(()=>m.abort(),5e3),w=await fetch("https://ipapi.co/json/",{signal:m.signal,headers:{Accept:"application/json"}});if(clearTimeout(k),!w.ok)throw new Error(`HTTP error! status: ${w.status}`);const g=await w.json();return{ip:g.ip||"unknown",country:g.country_name||"unknown",city:g.city||"unknown",region:g.region||"unknown",...g}}catch(m){return console.warn("Failed to get location data:",m.message),{ip:"unknown",country:"unknown",city:"unknown",region:"unknown",error:m.message||"Location fetch failed"}}},y=async(m,k)=>{var w;try{const g=await C(),N={...k,timestamp:new Date().toISOString(),consentType:m,userAgent:navigator.userAgent||"unknown",language:navigator.language||"unknown",url:window.location.href,...g};localStorage.setItem("cookie-consent",JSON.stringify({accepted:!0,timestamp:Date.now()}));const a=(w=document.querySelector('meta[name="csrf-token"]'))==null?void 0:w.getAttribute("content");if(!a){console.warn("CSRF token not found");return}const r=await fetch(route("cookie.consent.store"),{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":a,Accept:"application/json"},body:JSON.stringify(N)});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);if(!(await r.json()).success)throw new Error("Server returned error")}catch(g){throw console.error("Failed to save cookie consent:",g),localStorage.setItem("cookie-consent",JSON.stringify({accepted:!0,timestamp:Date.now()})),g}},h=async()=>{if(!n){u(!0);try{await y("accept_all",{necessary:!0,analytics:!0,marketing:!0}),t(!1)}catch{X.error(s("Failed to save cookie preferences"))}finally{u(!1)}}},S=async()=>{if(!n){u(!0);try{await y("necessary_only",{necessary:!0,analytics:!1,marketing:!1}),t(!1)}catch{X.error(s("Failed to save cookie preferences"))}finally{u(!1)}}};return c?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed bottom-4 left-1/2 transform -translate-x-1/2 z-50 max-w-md w-full mx-4",children:e.jsxs(G,{className:"p-4 shadow-lg border",children:[e.jsxs("div",{className:"flex justify-between items-start mb-3",children:[e.jsx("h3",{className:"font-semibold text-sm",children:d.cookieTitle}),e.jsx(j,{variant:"ghost",size:"sm",onClick:()=>t(!1),className:"h-6 w-6 p-0",children:e.jsx(H,{className:"h-4 w-4"})})]}),e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:d.cookieDescription}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(j,{onClick:h,size:"sm",className:"flex-1 text-white hover:opacity-90",style:{backgroundColor:f},disabled:n,children:s(n?"Saving...":"Accept All")}),e.jsx(j,{onClick:S,variant:"outline",size:"sm",className:"flex-1",style:{borderColor:f,color:f},disabled:n,children:s(n?"Saving...":"Necessary Only")})]}),e.jsx(j,{onClick:()=>b(!0),variant:"ghost",size:"sm",className:"text-sm underline",children:s("Let me choose")})]}),e.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:[d.contactUsDescription," ",e.jsx("a",{href:d.contactUsUrl,className:"underline",children:s("Contact us")})]})]})}),p&&e.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center p-4",children:e.jsx(G,{className:"w-full max-w-md max-h-[80vh] overflow-y-auto",children:e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsx("h3",{className:"text-lg font-semibold",children:d.cookieTitle}),e.jsx(j,{variant:"ghost",size:"sm",onClick:()=>b(!1),className:"h-6 w-6 p-0",children:e.jsx(H,{className:"h-4 w-4"})})]}),e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:"font-medium text-sm",children:d.strictlyCookieTitle}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:d.strictlyCookieDescription})]}),e.jsx(ue,{checked:!0,disabled:!0})]})}),e.jsxs("div",{className:"flex gap-2 mt-6",children:[e.jsx(j,{onClick:async()=>{await S(),b(!1)},variant:"outline",size:"sm",className:"flex-1",style:{borderColor:f,color:f},disabled:n,children:s(n?"Saving...":"Save Preferences")}),e.jsx(j,{onClick:async()=>{await h(),b(!1)},size:"sm",className:"flex-1 text-white hover:opacity-90",style:{backgroundColor:f},disabled:n,children:s(n?"Saving...":"Accept All")})]})]})})})]}):null}export{Le as C,ge as D,De as L,fe as a,pe as b,R as c,xe as d,Ne as e,he as f}; +import{r as v,j as e,z as B,B as $,E as K,F as V,I as W,S as Q,G as Y,L as Z}from"./ui-Z445SNHD.js";import{R as P}from"./react-country-flag.esm-Bs2jngHP.js";import{u as A,c as I,D as ee,h as te,j as se,k as ae,L as M,I as z,o as j,J as T,e as F,K as _,N as O,P as oe,O as U,Q as ne,r as q,R as J,a as re,C as G,X as H,T as ie,t as X}from"./app-sDOUnh17.js";import{R as ce}from"./refresh-cw-iWo6guvA.js";import{G as le}from"./globe-Ceg_d9rk.js";import{S as de}from"./settings-I4rcMQaX.js";import{S as ue}from"./switch-BRQPJ0Pu.js";function me({open:s,onOpenChange:l,onSuccess:c}){var o;const{t}=A(),{props:p}=I(),b=((o=p.globalSettings)==null?void 0:o.is_demo)||!1,[n,u]=v.useState({code:"",name:"",countryCode:""}),[x,D]=v.useState(!1),f=async d=>{var C;d.preventDefault(),D(!0);try{const y=await fetch(route("languages.create"),{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":((C=document.querySelector('meta[name="csrf-token"]'))==null?void 0:C.getAttribute("content"))||"",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(n)}),h=await y.json();y.ok&&h.success?(T.success(h.message||t("Language created successfully")),u({code:"",name:"",countryCode:""}),l(!1),c==null||c(),window.location.reload()):(console.error("Create language error:",h),b&&h.message?T.error(h.message):T.error(h.error||t("Failed to create language")))}catch(y){console.error("Network error:",y),T.error(t("Failed to create language"))}finally{D(!1)}};return e.jsx(ee,{open:s,onOpenChange:l,children:e.jsxs(te,{className:"sm:max-w-md",children:[e.jsx(se,{children:e.jsx(ae,{children:t("Create Language")})}),e.jsxs("form",{onSubmit:f,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(M,{htmlFor:"code",children:t("Language Code")}),e.jsx(z,{id:"code",placeholder:t("e.g., fr, de, ja"),value:n.code,onChange:d=>u({...n,code:d.target.value}),required:!0})]}),e.jsxs("div",{children:[e.jsx(M,{htmlFor:"name",children:t("Language Name")}),e.jsx(z,{id:"name",placeholder:t("e.g., Français, Deutsch, 日本語"),value:n.name,onChange:d=>u({...n,name:d.target.value}),required:!0})]}),e.jsxs("div",{children:[e.jsx(M,{htmlFor:"countryCode",children:t("Country Code")}),e.jsx(z,{id:"countryCode",placeholder:t("e.g., FR, DE, JP"),maxLength:2,value:n.countryCode,onChange:d=>u({...n,countryCode:d.target.value.toUpperCase()}),required:!0})]}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(j,{type:"button",variant:"outline",onClick:()=>l(!1),children:t("Cancel")}),e.jsx(j,{type:"submit",disabled:x,children:x?e.jsxs(e.Fragment,{children:[e.jsx(ce,{className:"h-4 w-4 animate-spin mr-2"}),t("Creating...")]}):t("Create Language")})]})]})]})})}function ge({...s}){return e.jsx(B,{"data-slot":"dropdown-menu",...s})}function fe({...s}){return e.jsx($,{"data-slot":"dropdown-menu-trigger",...s})}function pe({className:s,sideOffset:l=4,...c}){return e.jsx(K,{children:e.jsx(V,{"data-slot":"dropdown-menu-content",sideOffset:l,className:F("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",s),...c})})}function he({...s}){return e.jsx(Y,{"data-slot":"dropdown-menu-group",...s})}function R({className:s,inset:l,variant:c="default",...t}){return e.jsx(W,{"data-slot":"dropdown-menu-item","data-inset":l,"data-variant":c,className:F("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s),...t})}function Ne({className:s,inset:l,...c}){return e.jsx(Z,{"data-slot":"dropdown-menu-label","data-inset":l,className:F("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",s),...c})}function xe({className:s,...l}){return e.jsx(Q,{"data-slot":"dropdown-menu-separator",className:F("bg-border -mx-1 my-1 h-px",s),...l})}function De(){var g,N;const{i18n:s,t:l}=A(),{auth:c,globalSettings:t,userLanguage:p}=I().props,{setPosition:b}=_(),{updatePosition:n}=_(),[u,x]=v.useState(()=>{const a=((t==null?void 0:t.availableLanguages)||[]).filter(r=>r.enabled!==!1);if(p){const r=a.find(i=>i.code===p);if(r)return r}return a[0]||null}),[D,f]=v.useState(!1),o=(t==null?void 0:t.availableLanguages)||[],d=(t==null?void 0:t.is_saas)||!1,C=!!(c!=null&&c.user),y=((N=(g=c==null?void 0:c.user)==null?void 0:g.roles)==null?void 0:N.map(a=>a.name))||[],h=C&&O("superadmin",y),S=C&&O("company",y),m=d?h:S;v.useEffect(()=>{const a=(o||[]).filter(r=>r.enabled!==!1);if(p&&s.language!==p)s.changeLanguage(p,()=>{const r=a.find(i=>i.code===p)||a[0];x(r)});else{const r=a.find(i=>i.code===s.language)||a[0];x(r)}},[o,p]),v.useEffect(()=>{const a=(o||[]).filter(i=>i.enabled!==!1),r=a.find(i=>i.code===s.language)||a[0];x(r)},[s.language,o]);const k=["ar","he"],w=async a=>{const r=o.find(i=>i.code===a);if(r){x(r);try{await s.changeLanguage(a);const i=k.includes(a);let L;U()?L=i?"right":ne("layoutPosition")||"left":L=i?"right":(t==null?void 0:t.layoutDirection)||"left",document.documentElement.dir="ltr",document.documentElement.setAttribute("dir","ltr"),n(L),C&&!U()?q.post(route("languages.change"),{language:a},{preserveScroll:!0,onSuccess:()=>{(i||!i&&(t==null?void 0:t.layoutDirection)==="right")&&q.post(route("settings.brand.update"),{settings:{layoutDirection:L}},{preserveScroll:!0,onError:E=>{console.error("Failed to update layout direction:",E)}})},onError:E=>{console.error("Failed to change language:",E)}}):(J("app_language",a),J("layoutPosition",L)),window.dispatchEvent(new CustomEvent("languageChanged",{detail:{language:a,direction:L}})),window.dispatchEvent(new Event("resize"))}catch(i){console.error("Error changing language:",i)}}};return e.jsxs(e.Fragment,{children:[e.jsxs(ge,{children:[e.jsx(fe,{asChild:!0,children:e.jsxs(j,{variant:"ghost",className:"flex items-center gap-2 rounded-md border shadow-sm bg-white",children:[e.jsx(le,{className:"h-4 w-4"}),u&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-sm font-medium hidden md:inline-block",children:u.name}),e.jsx(P,{countryCode:u.countryCode,svg:!0,style:{width:"1.2em",height:"1.2em"}})]})]})}),e.jsxs(pe,{className:"w-56",align:"end",forceMount:!0,children:[e.jsx(he,{children:e.jsx("div",{className:"max-h-48 overflow-y-auto",children:(o||[]).filter(a=>a.enabled!==!1).map(a=>e.jsxs(R,{onClick:()=>w(a.code),className:`flex items-center gap-2 ${(u==null?void 0:u.code)===a.code?"bg-accent":""}`,children:[e.jsx(P,{countryCode:a.countryCode,svg:!0,style:{width:"1.2em",height:"1.2em"}}),e.jsx("span",{children:a.name})]},a.code))})}),m&&e.jsxs(e.Fragment,{children:[e.jsx(xe,{}),e.jsxs(R,{onClick:()=>f(!0),className:"justify-center text-primary font-semibold cursor-pointer",children:[e.jsx(oe,{className:"h-4 w-4 mr-2"}),l("Create Language")]}),e.jsx(R,{asChild:!0,className:"justify-center text-primary font-semibold cursor-pointer",children:e.jsxs("a",{href:route("manage-language"),rel:"noopener noreferrer",children:[e.jsx(de,{className:"h-4 w-4 mr-2"}),l("Manage Language")]})})]})]})]}),e.jsx(me,{open:D,onOpenChange:f,onSuccess:()=>f(!1)})]})}function Le(){const{t:s}=A(),{props:l}=I(),[c,t]=v.useState(!1),[p,b]=v.useState(!1),[n,u]=v.useState(!1),{themeColor:x,customColor:D}=re(),f=x==="custom"?D:ie[x],o=l.globalSettings||{},d={cookieTitle:o.cookieTitle||"Cookie Consent",cookieDescription:o.cookieDescription||"We use cookies to enhance your browsing experience and provide personalized content.",strictlyCookieTitle:o.strictlyCookieTitle||"Strictly Necessary Cookies",strictlyCookieDescription:o.strictlyCookieDescription||"These cookies are essential for the website to function properly.",contactUsDescription:o.contactUsDescription||"If you have any questions about our cookie policy, please contact us.",contactUsUrl:o.contactUsUrl||"#"};v.useEffect(()=>{var N,a;const m=o.enableLogging==="1"||o.enableLogging===1||o.enableLogging===!0,k=o.is_demo==="1"||o.is_demo===1||o.is_demo===!0,w=window.location.pathname==="/dashboard"||window.location.pathname.includes("/dashboard"),g=(a=(N=l.auth)==null?void 0:N.user)==null?void 0:a.type;if(m){if(k&&(!w||g!=="company"))return;localStorage.getItem("cookie-consent")||t(!0)}},[]);const C=async()=>{try{const m=new AbortController,k=setTimeout(()=>m.abort(),5e3),w=await fetch("https://ipapi.co/json/",{signal:m.signal,headers:{Accept:"application/json"}});if(clearTimeout(k),!w.ok)throw new Error(`HTTP error! status: ${w.status}`);const g=await w.json();return{ip:g.ip||"unknown",country:g.country_name||"unknown",city:g.city||"unknown",region:g.region||"unknown",...g}}catch(m){return console.warn("Failed to get location data:",m.message),{ip:"unknown",country:"unknown",city:"unknown",region:"unknown",error:m.message||"Location fetch failed"}}},y=async(m,k)=>{var w;try{const g=await C(),N={...k,timestamp:new Date().toISOString(),consentType:m,userAgent:navigator.userAgent||"unknown",language:navigator.language||"unknown",url:window.location.href,...g};localStorage.setItem("cookie-consent",JSON.stringify({accepted:!0,timestamp:Date.now()}));const a=(w=document.querySelector('meta[name="csrf-token"]'))==null?void 0:w.getAttribute("content");if(!a){console.warn("CSRF token not found");return}const r=await fetch(route("cookie.consent.store"),{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":a,Accept:"application/json"},body:JSON.stringify(N)});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);if(!(await r.json()).success)throw new Error("Server returned error")}catch(g){throw console.error("Failed to save cookie consent:",g),localStorage.setItem("cookie-consent",JSON.stringify({accepted:!0,timestamp:Date.now()})),g}},h=async()=>{if(!n){u(!0);try{await y("accept_all",{necessary:!0,analytics:!0,marketing:!0}),t(!1)}catch{X.error(s("Failed to save cookie preferences"))}finally{u(!1)}}},S=async()=>{if(!n){u(!0);try{await y("necessary_only",{necessary:!0,analytics:!1,marketing:!1}),t(!1)}catch{X.error(s("Failed to save cookie preferences"))}finally{u(!1)}}};return c?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed bottom-4 left-1/2 transform -translate-x-1/2 z-50 max-w-md w-full mx-4",children:e.jsxs(G,{className:"p-4 shadow-lg border",children:[e.jsxs("div",{className:"flex justify-between items-start mb-3",children:[e.jsx("h3",{className:"font-semibold text-sm",children:d.cookieTitle}),e.jsx(j,{variant:"ghost",size:"sm",onClick:()=>t(!1),className:"h-6 w-6 p-0",children:e.jsx(H,{className:"h-4 w-4"})})]}),e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:d.cookieDescription}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(j,{onClick:h,size:"sm",className:"flex-1 text-white hover:opacity-90",style:{backgroundColor:f},disabled:n,children:s(n?"Saving...":"Accept All")}),e.jsx(j,{onClick:S,variant:"outline",size:"sm",className:"flex-1",style:{borderColor:f,color:f},disabled:n,children:s(n?"Saving...":"Necessary Only")})]}),e.jsx(j,{onClick:()=>b(!0),variant:"ghost",size:"sm",className:"text-sm underline",children:s("Let me choose")})]}),e.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:[d.contactUsDescription," ",e.jsx("a",{href:d.contactUsUrl,className:"underline",children:s("Contact us")})]})]})}),p&&e.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center p-4",children:e.jsx(G,{className:"w-full max-w-md max-h-[80vh] overflow-y-auto",children:e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsx("h3",{className:"text-lg font-semibold",children:d.cookieTitle}),e.jsx(j,{variant:"ghost",size:"sm",onClick:()=>b(!1),className:"h-6 w-6 p-0",children:e.jsx(H,{className:"h-4 w-4"})})]}),e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:"font-medium text-sm",children:d.strictlyCookieTitle}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:d.strictlyCookieDescription})]}),e.jsx(ue,{checked:!0,disabled:!0})]})}),e.jsxs("div",{className:"flex gap-2 mt-6",children:[e.jsx(j,{onClick:async()=>{await S(),b(!1)},variant:"outline",size:"sm",className:"flex-1",style:{borderColor:f,color:f},disabled:n,children:s(n?"Saving...":"Save Preferences")}),e.jsx(j,{onClick:async()=>{await h(),b(!1)},size:"sm",className:"flex-1 text-white hover:opacity-90",style:{backgroundColor:f},disabled:n,children:s(n?"Saving...":"Accept All")})]})]})})})]}):null}export{Le as C,ge as D,De as L,fe as a,pe as b,R as c,xe as d,Ne as e,he as f}; diff --git a/public/build/assets/CrudDeleteModal-DZYIfzYh.js b/public/build/assets/CrudDeleteModal-Cp7ocOVS.js similarity index 90% rename from public/build/assets/CrudDeleteModal-DZYIfzYh.js rename to public/build/assets/CrudDeleteModal-Cp7ocOVS.js index ae0341e03..f0b538d4e 100644 --- a/public/build/assets/CrudDeleteModal-DZYIfzYh.js +++ b/public/build/assets/CrudDeleteModal-Cp7ocOVS.js @@ -1 +1 @@ -import{j as e}from"./ui-Z445SNHD.js";import{u as r,D as c,h as d,j as u,k as h,p as j,q as x,o as a}from"./app-BSYHJZwU.js";function p({isOpen:o,onClose:n,onConfirm:i,itemName:l,entityName:t}){const{t:s}=r();return e.jsx(c,{open:o,onOpenChange:n,children:e.jsxs(d,{className:"sm:max-w-md",children:[e.jsxs(u,{children:[e.jsxs(h,{children:[s("Delete")," ",t]}),e.jsxs(j,{children:[s("Are you sure you want to delete")," ",l||`this ${t}`,"? ",s("This action cannot be undone.")]})]}),e.jsxs(x,{className:"sm:justify-end",children:[e.jsx(a,{type:"button",variant:"outline",onClick:n,children:s("Cancel")}),e.jsx(a,{type:"button",variant:"destructive",onClick:i,children:s("Delete")})]})]})})}export{p as C}; +import{j as e}from"./ui-Z445SNHD.js";import{u as r,D as c,h as d,j as u,k as h,p as j,q as x,o as a}from"./app-sDOUnh17.js";function p({isOpen:o,onClose:n,onConfirm:i,itemName:l,entityName:t}){const{t:s}=r();return e.jsx(c,{open:o,onOpenChange:n,children:e.jsxs(d,{className:"sm:max-w-md",children:[e.jsxs(u,{children:[e.jsxs(h,{children:[s("Delete")," ",t]}),e.jsxs(j,{children:[s("Are you sure you want to delete")," ",l||`this ${t}`,"? ",s("This action cannot be undone.")]})]}),e.jsxs(x,{className:"sm:justify-end",children:[e.jsx(a,{type:"button",variant:"outline",onClick:n,children:s("Cancel")}),e.jsx(a,{type:"button",variant:"destructive",onClick:i,children:s("Delete")})]})]})})}export{p as C}; diff --git a/public/build/assets/CrudFormModal-Bvh5mDoK.js b/public/build/assets/CrudFormModal-DCZgATgD.js similarity index 97% rename from public/build/assets/CrudFormModal-Bvh5mDoK.js rename to public/build/assets/CrudFormModal-DCZgATgD.js index fae6dd0bb..68fbb69d7 100644 --- a/public/build/assets/CrudFormModal-Bvh5mDoK.js +++ b/public/build/assets/CrudFormModal-DCZgATgD.js @@ -1 +1 @@ -import{r as O,j as a,R as ue}from"./ui-Z445SNHD.js";import{c as pe,u as de,D as xe,h as he,j as be,k as ye,p as ge,L as U,q as je,o as X,I as Z,M as ve}from"./app-BSYHJZwU.js";import{T as we}from"./textarea-B_SndWQW.js";import{S as Se,a as Ne,b as Fe,c as $e,d as te}from"./select-CbXk1R0B.js";import{R as Oe,a as qe}from"./radio-group-BQIr4fyd.js";import{C as Ae}from"./checkbox-CYQIGzbl.js";import{S as Ve}from"./switch-DhleYvkr.js";import{M as Me}from"./multi-select-field-Dvho_7PP.js";import{S as Ce}from"./scroll-area-9uHad1Z9.js";function Ee({fields:u,values:M,onChange:q,disabled:p=!1}){const{base_url:h}=pe().props,[N,i]=O.useState(()=>{const l={};return u.forEach((n,x)=>{x===0?l[n.name]=n.options||[]:l[n.name]=[]}),l}),[C,F]=O.useState({}),H=async(l,n)=>{var x;if(!l.apiEndpoint)return[];F(r=>({...r,[l.name]:!0}));try{let r=l.apiEndpoint;if(n){const d=encodeURIComponent(String(n)),m=(x=u[u.indexOf(l)-1])==null?void 0:x.name;m&&(r=r.replace(`{${m}}`,d))}const g=await fetch(`${h}${r}`);if(!g.ok)throw new Error(`HTTP error! status: ${g.status}`);const j=await g.json();return Array.isArray(j)?j.map(d=>({value:String(d.id||d.value||""),label:String(d.name||d.label||"Unknown")})):[]}catch{return[]}finally{F(r=>({...r,[l.name]:!1}))}};O.useEffect(()=>{(async()=>{const n={};for(let x=0;x{u.slice(x+1).forEach(m=>{q(m.name,"")});const r=u.find(m=>m.name===l),j=(N[l]||(r==null?void 0:r.options)||[]).find(m=>String(m.value)===String(n)),A=j?{id:n,name:j.label}:null,d=u[x+1];if(d&&n){if(d.apiEndpoint){const m=await H(d,n);i(P=>({...P,[d.name]:m})),d.selectFirstOption&&m.length>0&&setTimeout(()=>{q(d.name,m[0].value)},100),q(l,n,{selectedInfo:A,loadedOptions:m});return}else if(d.dependencies){const m=d.dependencies[n]||[];i(P=>({...P,[d.name]:m})),q(l,n,{selectedInfo:A,loadedOptions:m});return}}q(l,n,{selectedInfo:A,loadedOptions:[]})};return a.jsx("div",{className:"space-y-4",children:u.map((l,n)=>{const x=n===0,r=x?null:u[n-1],g=p||!x&&!M[r.name],j=N[l.name]||[],A=C[l.name];return a.jsxs("div",{className:"space-y-2",children:[a.jsx("label",{className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:l.label}),a.jsxs("select",{value:M[l.name]||"",onChange:d=>_(l.name,d.target.value,n),disabled:g||A||l.disabled,className:"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[a.jsx("option",{value:"",className:"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none text-muted-foreground",children:A?"Loading...":`Select ${l.label.toLowerCase()}`}),j.map(d=>a.jsx("option",{value:d.value,className:"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",children:d.label},d.value))]})]},l.name)})})}function ke({field:u,dateValue:M,handleChange:q,errors:p,mode:h}){const N=ue.useRef(null),i=()=>{var C,F;if(!u.disabled&&h!=="view"&&N.current)try{(F=(C=N.current).showPicker)==null||F.call(C)}catch{N.current.focus()}};return a.jsx("div",{className:"relative cursor-pointer",onClick:i,children:a.jsx("input",{ref:N,id:u.name,name:u.name,type:"date",placeholder:u.placeholder,value:M,onChange:C=>q(u.name,C.target.value),required:!!u.required,className:`border-input flex h-9 w-full rounded-md border bg-transparent px-3 py-1 text-base shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-primary md:text-sm cursor-pointer disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 ${p[u.name]?"border-red-500":""}`,disabled:u.disabled||h==="view",readOnly:u.readOnly})})}function _e({isOpen:u,onClose:M,onSubmit:q,formConfig:p,initialData:h={},title:N,mode:i,description:C,errors:F={},submitButtonText:H,onEdit:_}){const{t:l}=de(),[n,x]=O.useState({}),[r,g]=O.useState({}),[j,A]=O.useState({}),d=()=>{if(!p.priceSummary)return 0;const e=n[p.priceSummary.quantityFieldName||"quantity"]||p.priceSummary.quantity||1;return p.priceSummary.unitPrice*e};O.useEffect(()=>{if(u){const e={...h};p.fields.forEach(c=>{c.type==="multi-select"&&e[c.name]&&!Array.isArray(e[c.name])&&(e[c.name]=Array.isArray(e[c.name])?e[c.name]:e[c.name]?[e[c.name].toString()]:[]),i==="create"&&(e[c.name]===void 0||e[c.name]===null)&&c.defaultValue!==void 0&&(e[c.name]=c.defaultValue)}),x(e||{}),g({}),p.fields.forEach(c=>{c.relation&&c.relation.endpoint&&fetch(c.relation.endpoint).then(s=>s.json()).then(s=>{A(v=>({...v,[c.name]:Array.isArray(s)?s:s.data||[]}))}).catch(s=>{})})}},[u,h,p.fields,i]),O.useEffect(()=>{if(F&&Object.keys(F).length>0){const e={};Object.entries(F).forEach(([c,s])=>{e[c]=Array.isArray(s)?s[0]:s}),g(e)}},[F]);const m=(e,c)=>{x(s=>({...s,[e]:c})),r[e]&&g(s=>{const v={...s};return delete v[e],v})},P=e=>{e.preventDefault();const c={...n};p.fields.forEach(o=>{o.type==="multi-select"&&c[o.name]&&(Array.isArray(c[o.name])||(c[o.name]=[c[o.name].toString()]))}),x(c);const s={};if(p.fields.forEach(o=>{if(o.type==="file"&&i==="edit")return;const B=o.conditional?o.conditional(i,n):!0,I=n[o.name],R=I==null||I==="";if((typeof o.required=="function"?o.required(n):o.required)&&B&&R&&(s[o.name]=`${o.label} is required`),o.type==="file"&&n[o.name]&&o.fileValidation){const $=n[o.name];if(o.fileValidation.maxSize&&$.size>o.fileValidation.maxSize){const S=o.fileValidation.maxSize/1048576;s[o.name]=`File size must be less than ${S}MB`}if(o.fileValidation.mimeTypes&&o.fileValidation.mimeTypes.length>0&&(o.fileValidation.mimeTypes.includes($.type)||(s[o.name]=`File type must be one of: ${o.fileValidation.mimeTypes.join(", ")}`)),o.fileValidation.extensions&&o.fileValidation.extensions.length>0){const S=$.name,z=S.substring(S.lastIndexOf(".")).toLowerCase();o.fileValidation.extensions.includes(z)||(s[o.name]=`File extension must be one of: ${o.fileValidation.extensions.join(", ")}`)}}}),Object.keys(s).length>0){g(s);return}const v={...n};p.fields.forEach(o=>{o.type==="multi-select"&&v[o.name]&&(Array.isArray(v[o.name])||(v[o.name]=[v[o.name].toString()]))}),q(v)},Q=e=>{var c,s,v,o,B,I;if(e.conditional&&!e.conditional(i,n))return null;if(e.render)return e.render(e,n,m);if(i==="view"){if(e.type==="multi-select"){const k=(Array.isArray(n[e.name])?n[e.name]:[]).map($=>{var z;const S=(z=e.options)==null?void 0:z.find(Y=>Y.value===$);return S?S.label:$}).join(", ");return a.jsx("div",{className:"p-2 border rounded-md bg-gray-50",children:k||"-"})}return a.jsx("div",{className:"p-2 border rounded-md bg-gray-50",children:e.type==="select"&&e.options?((c=e.options.find(R=>R.value===String(n[e.name])))==null?void 0:c.label)||n[e.name]||"-":e.type==="checkbox"?n[e.name]===!0||n[e.name]===1||n[e.name]==="1"?l("Yes"):l("No"):n[e.name]||"-"})}switch(e.type){case"text":case"email":case"password":case"color":return a.jsx(Z,{id:e.name,name:e.name,type:e.type,placeholder:e.placeholder,value:n[e.name]??"",onChange:t=>m(e.name,t.target.value),required:e.required,className:r[e.name]?"border-red-500":"",disabled:e.disabled||i==="view",readOnly:e.readOnly});case"time":{const t=n[e.name]??"",L=e.disabled||i==="view",J=!!r[e.name];let E="",D="",V="AM";if(t&&t.includes(":")){const[y,w]=t.split(":"),b=parseInt(y,10);D=w.padStart(2,"0"),b===0?(E="12",V="AM"):b===12?(E="12",V="PM"):b>12?(E=String(b-12).padStart(2,"0"),V="PM"):(E=String(b).padStart(2,"0"),V="AM")}const W=(y,w,b)=>{if(!y||!w)return"";let G=parseInt(y,10);return b==="AM"&&G===12?G=0:b==="PM"&&G!==12&&(G+=12),`${String(G).padStart(2,"0")}:${w}`},T=(y,w)=>{const ne=W(y==="hour"?w:E||"12",y==="minute"?w:D||"00",y==="period"?w:V);ne&&m(e.name,ne)},K=`h-9 rounded-md border bg-transparent px-2 py-1 text-sm shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50 ${J?"border-red-500":"border-input"}`;return a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsxs("select",{id:`${e.name}-hour`,value:E,onChange:y=>T("hour",y.target.value),disabled:L,className:`${K} w-[62px]`,children:[a.jsx("option",{value:"",children:l("HH")}),Array.from({length:12},(y,w)=>{const b=String(w+1).padStart(2,"0");return a.jsx("option",{value:b,children:b},b)})]}),a.jsx("span",{className:"text-gray-400 font-bold text-lg",children:":"}),a.jsxs("select",{id:`${e.name}-minute`,value:D,onChange:y=>T("minute",y.target.value),disabled:L,className:`${K} w-[62px]`,children:[a.jsx("option",{value:"",children:l("MM")}),Array.from({length:60},(y,w)=>{const b=String(w).padStart(2,"0");return a.jsx("option",{value:b,children:b},b)})]}),a.jsxs("select",{id:`${e.name}-period`,value:V,onChange:y=>T("period",y.target.value),disabled:L,className:`${K} w-[62px]`,children:[a.jsx("option",{value:"AM",children:"AM"}),a.jsx("option",{value:"PM",children:"PM"})]})]})}case"date":const R=n[e.name]?n[e.name]instanceof Date?n[e.name].toISOString().split("T")[0]:typeof n[e.name]=="string"&&n[e.name].includes("T")?n[e.name].split("T")[0]:n[e.name]:"";return a.jsx(ke,{field:e,dateValue:R,handleChange:m,errors:r,mode:i});case"number":return a.jsx(Z,{id:e.name,name:e.name,type:"number",placeholder:e.placeholder,value:n[e.name]??"",onChange:t=>m(e.name,t.target.value!==""?parseFloat(t.target.value):""),required:e.required,className:r[e.name]?"border-red-500":"",disabled:e.disabled||i==="view",readOnly:e.readOnly});case"textarea":return a.jsx(we,{id:e.name,name:e.name,placeholder:e.placeholder,value:n[e.name]??"",onChange:t=>m(e.name,t.target.value),required:e.required,className:r[e.name]?"border-red-500":"",disabled:e.disabled||i==="view",readOnly:e.readOnly});case"select":const k=e.relation?j[e.name]||[]:e.options||[],$=String(n[e.name]||""),S=e.relation?k.find(t=>String(t[e.relation.valueField])===$):k.find(t=>String(t.value)===$),z=S?e.relation?S[e.relation.labelField]:S.label:"";return a.jsxs(Se,{value:$,onValueChange:t=>m(e.name,t),disabled:i==="view",children:[a.jsx(Ne,{className:r[e.name]?"border-red-500":"",children:a.jsx(Fe,{placeholder:e.placeholder||`Select ${e.label}`,children:z||e.placeholder||`Select ${e.label}`})}),a.jsx($e,{className:"z-[60000]",searchable:e.searchable,children:e.relation?k.map(t=>a.jsx(te,{value:String(t[e.relation.valueField]),children:t[e.relation.labelField]},t[e.relation.valueField])):k.map(t=>a.jsx(te,{value:String(t.value),children:t.label},t.value))})]});case"radio":return a.jsx(Oe,{value:n[e.name]||"",onValueChange:t=>m(e.name,t),disabled:i==="view",className:"flex gap-4",children:(s=e.options)==null?void 0:s.map(t=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(qe,{value:t.value,id:`${e.name}-${t.value}`}),a.jsx(U,{htmlFor:`${e.name}-${t.value}`,children:t.label})]},t.value))});case"checkbox":return a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Ae,{id:e.name,checked:!!n[e.name],onCheckedChange:t=>m(e.name,t),disabled:i==="view"}),a.jsx(U,{htmlFor:e.name,children:e.placeholder||e.label})]});case"switch":return a.jsx(Ve,{id:e.name,checked:!!n[e.name],onCheckedChange:t=>m(e.name,t),disabled:i==="view"});case"multi-select":return a.jsx(Me,{field:e,formData:n,handleChange:m});case"media-picker":const Y=n[e.name]||(i==="edit"&&h[e.name]?h[e.name].startsWith("http")?h[e.name]:`/storage/${h[e.name]}`:"");return a.jsx(ve,{value:Y,onChange:t=>m(e.name,t),placeholder:e.placeholder||`Select ${e.label}`,showPreview:!0});case"file":const ee=((v=e.fileValidation)==null?void 0:v.accept)||"",me=ee.includes("image")||(((B=(o=e.fileValidation)==null?void 0:o.mimeTypes)==null?void 0:B.some(t=>t.startsWith("image/")))??!1);return a.jsxs(a.Fragment,{children:[a.jsx(Z,{id:e.name,name:e.name,type:"file",accept:ee,onChange:t=>{t.target.files&&t.target.files[0]&&m(e.name,t.target.files[0])},className:r[e.name]?"border-red-500":"",disabled:i==="view"}),i==="edit"&&h[e.name]&&a.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:["Current file: ",h.featured_image_original_name||h[e.name]]}),e.fileValidation&&a.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:[e.fileValidation.extensions&&a.jsxs("span",{children:[l("Allowed extensions"),": ",e.fileValidation.extensions.join(", ")," "]}),e.fileValidation.maxSize&&a.jsxs("span",{children:[l("Max size"),": ",(e.fileValidation.maxSize/(1024*1024)).toFixed(1),"MB"]})]}),me&&a.jsx("div",{className:"mt-2",children:n[e.name]&&n[e.name]instanceof File?a.jsxs("div",{className:"mt-2",children:[a.jsxs("p",{className:"text-xs text-gray-500 mb-1",children:[l("Preview"),":"]}),a.jsx("img",{src:URL.createObjectURL(n[e.name]),alt:"Preview",className:"h-24 w-auto rounded-md object-cover shadow-sm"})]}):i==="edit"&&h[e.name]&&a.jsxs("div",{className:"mt-2",children:[a.jsxs("p",{className:"text-xs text-gray-500 mb-1",children:[l("Current image"),":"]}),a.jsx("img",{src:typeof h[e.name]=="string"&&h[e.name].startsWith&&h[e.name].startsWith("http")?h[e.name]:`/storage/${h[e.name]}`,alt:"Current",className:"h-24 w-auto rounded-md object-cover shadow-sm",onError:t=>{t.currentTarget.src="https://placehold.co/200x150?text=Image+Not+Found"}})]})})]});case"dependent-dropdown":const ae={};return(I=e.dependentConfig)==null||I.forEach(t=>{ae[t.name]=n[t.name]||""}),a.jsx(Ee,{fields:e.dependentConfig||[],values:ae,onChange:(t,L,J)=>{x(E=>{var W;const D={...E,[t]:L},V=((W=e.dependentConfig)==null?void 0:W.findIndex(T=>T.name===t))??-1;return V!==-1&&e.dependentConfig&&e.dependentConfig.slice(V+1).forEach(T=>{D[T.name]=""}),D}),e.onDependentChange&&e.onDependentChange(t,L,n,J)}});default:return null}},se=()=>{const e={sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl","3xl":"sm:max-w-3xl","4xl":"sm:max-w-4xl","5xl":"sm:max-w-5xl",full:"sm:max-w-full"};return p.modalSize?e[p.modalSize]:"sm:max-w-md"},re=()=>{const e={};return p.fields.forEach(c=>{const s=c.row||0;e[s]||(e[s]=[]),e[s].push(c)}),Object.entries(e).sort(([c],[s])=>parseInt(c)-parseInt(s))},f=p.layout||"default",oe=p.columns||1,ce=`crud-modal-${i}-${N.replace(/\s+/g,"-").toLowerCase()}-${Date.now()}`,[ie,le]=O.useState(!1);return O.useEffect(()=>{const e=()=>{const s=document.querySelector("[data-chatgpt-modal]");le(!!s)},c=new MutationObserver(e);return c.observe(document.body,{childList:!0,subtree:!0}),()=>c.disconnect()},[]),a.jsx(xe,{open:u,onOpenChange:e=>{e||M()},modal:!ie,children:a.jsxs(he,{className:`${se()} max-h-[90vh]`,modalId:ce,children:[a.jsxs(be,{children:[a.jsx(ye,{children:N}),a.jsx(ge,{children:C||" "})]}),a.jsx(Ce,{className:"max-h-[70vh] pr-4",children:a.jsxs("form",{onSubmit:P,className:"space-y-4",children:[p.priceSummary&&a.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg mb-4",children:[a.jsxs("div",{className:"flex justify-between items-center mb-2",children:[a.jsxs("span",{className:"text-sm text-gray-600",children:[l("Unit Price"),":"]}),a.jsxs("span",{className:"font-medium",children:["$",p.priceSummary.unitPrice.toFixed(2)]})]}),a.jsxs("div",{className:"flex justify-between items-center mb-2",children:[a.jsxs("span",{className:"text-sm text-gray-600",children:[l("Quantity"),":"]}),a.jsx("span",{className:"font-medium",children:n[p.priceSummary.quantityFieldName||"quantity"]||p.priceSummary.quantity||1})]}),a.jsx("div",{className:"border-t pt-2",children:a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsxs("span",{className:"font-semibold",children:[l("Total Price"),":"]}),a.jsxs("span",{className:"font-bold text-lg text-primary",children:["$",d().toFixed(2)]})]})})]}),f==="grid"?a.jsx("div",{style:{display:"grid",gridTemplateColumns:`repeat(${oe}, 1fr)`,gap:"1rem"},children:p.fields.map(e=>e.conditional&&!e.conditional(i,n)?null:a.jsxs("div",{className:"space-y-2",style:{gridColumn:e.colSpan?`span ${e.colSpan}`:"span 1",width:"100%"},children:[e.type!=="checkbox"&&e.type!=="switch"||i==="view"?a.jsxs(U,{htmlFor:e.name,className:"text-sm font-medium",children:[e.label," ",(typeof e.required=="function"?e.required(n):e.required)&&(e.conditional?e.conditional(i,n):!0)&&!(e.type==="file"&&i==="edit")&&a.jsx("span",{className:"text-red-500",children:"*"})]}):null,Q(e),r[e.name]&&a.jsx("p",{className:"text-xs text-red-500",children:r[e.name]})]},e.name))}):f==="flex"?a.jsx("div",{className:"flex flex-wrap gap-4",children:p.fields.map(e=>e.conditional&&!e.conditional(i,n)?null:a.jsxs("div",{className:"space-y-2",style:{width:e.width||"100%",flexGrow:e.width?0:1},children:[e.type!=="checkbox"&&e.type!=="switch"||i==="view"?a.jsxs(U,{htmlFor:e.name,className:"text-sm font-medium",children:[e.label," ",(typeof e.required=="function"?e.required(n):e.required)&&(e.conditional?e.conditional(i,n):!0)&&!(e.type==="file"&&i==="edit")&&a.jsx("span",{className:"text-red-500",children:"*"})]}):null,Q(e),r[e.name]&&a.jsx("p",{className:"text-xs text-red-500",children:r[e.name]})]},e.name))}):re().map(([e,c])=>a.jsx("div",{className:"flex flex-wrap gap-4 mb-4",children:c.map(s=>s.conditional&&!s.conditional(i,n)?null:a.jsxs("div",{className:"space-y-2",style:{width:s.width||"100%"},children:[s.type!=="checkbox"||i==="view"?a.jsxs(U,{htmlFor:s.name,className:"text-sm font-medium",children:[s.label," ",(typeof s.required=="function"?s.required(n):s.required)&&(s.conditional?s.conditional(i,n):!0)&&!(s.type==="file"&&i==="edit")&&a.jsx("span",{className:"text-red-500",children:"*"})]}):null,Q(s),r[s.name]&&a.jsx("p",{className:"text-xs text-red-500",children:r[s.name]})]},s.name))},e))]})}),a.jsxs(je,{className:"sm:justify-end",children:[a.jsx(X,{type:"button",variant:"outline",onClick:M,children:l("Cancel")}),i==="view"&&_&&a.jsx(X,{type:"button",onClick:_,children:l("Edit Record")}),i!=="view"&&a.jsx(X,{type:"button",onClick:P,children:H||l("Save")})]})]})})}export{_e as C}; +import{r as O,j as a,R as ue}from"./ui-Z445SNHD.js";import{c as pe,u as de,D as xe,h as he,j as be,k as ye,p as ge,L as U,q as je,o as X,I as Z,M as ve}from"./app-sDOUnh17.js";import{T as we}from"./textarea-C8D0rCZ6.js";import{S as Se,a as Ne,b as Fe,c as $e,d as te}from"./select-B2ZD_9zU.js";import{R as Oe,a as qe}from"./radio-group-DQy4AAqY.js";import{C as Ae}from"./checkbox-DFcaeUTK.js";import{S as Ve}from"./switch-BRQPJ0Pu.js";import{M as Me}from"./multi-select-field-BiZLl9zF.js";import{S as Ce}from"./scroll-area-DQH04JYa.js";function Ee({fields:u,values:M,onChange:q,disabled:p=!1}){const{base_url:h}=pe().props,[N,i]=O.useState(()=>{const l={};return u.forEach((n,x)=>{x===0?l[n.name]=n.options||[]:l[n.name]=[]}),l}),[C,F]=O.useState({}),H=async(l,n)=>{var x;if(!l.apiEndpoint)return[];F(r=>({...r,[l.name]:!0}));try{let r=l.apiEndpoint;if(n){const d=encodeURIComponent(String(n)),m=(x=u[u.indexOf(l)-1])==null?void 0:x.name;m&&(r=r.replace(`{${m}}`,d))}const g=await fetch(`${h}${r}`);if(!g.ok)throw new Error(`HTTP error! status: ${g.status}`);const j=await g.json();return Array.isArray(j)?j.map(d=>({value:String(d.id||d.value||""),label:String(d.name||d.label||"Unknown")})):[]}catch{return[]}finally{F(r=>({...r,[l.name]:!1}))}};O.useEffect(()=>{(async()=>{const n={};for(let x=0;x{u.slice(x+1).forEach(m=>{q(m.name,"")});const r=u.find(m=>m.name===l),j=(N[l]||(r==null?void 0:r.options)||[]).find(m=>String(m.value)===String(n)),A=j?{id:n,name:j.label}:null,d=u[x+1];if(d&&n){if(d.apiEndpoint){const m=await H(d,n);i(P=>({...P,[d.name]:m})),d.selectFirstOption&&m.length>0&&setTimeout(()=>{q(d.name,m[0].value)},100),q(l,n,{selectedInfo:A,loadedOptions:m});return}else if(d.dependencies){const m=d.dependencies[n]||[];i(P=>({...P,[d.name]:m})),q(l,n,{selectedInfo:A,loadedOptions:m});return}}q(l,n,{selectedInfo:A,loadedOptions:[]})};return a.jsx("div",{className:"space-y-4",children:u.map((l,n)=>{const x=n===0,r=x?null:u[n-1],g=p||!x&&!M[r.name],j=N[l.name]||[],A=C[l.name];return a.jsxs("div",{className:"space-y-2",children:[a.jsx("label",{className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:l.label}),a.jsxs("select",{value:M[l.name]||"",onChange:d=>_(l.name,d.target.value,n),disabled:g||A||l.disabled,className:"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[a.jsx("option",{value:"",className:"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none text-muted-foreground",children:A?"Loading...":`Select ${l.label.toLowerCase()}`}),j.map(d=>a.jsx("option",{value:d.value,className:"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",children:d.label},d.value))]})]},l.name)})})}function ke({field:u,dateValue:M,handleChange:q,errors:p,mode:h}){const N=ue.useRef(null),i=()=>{var C,F;if(!u.disabled&&h!=="view"&&N.current)try{(F=(C=N.current).showPicker)==null||F.call(C)}catch{N.current.focus()}};return a.jsx("div",{className:"relative cursor-pointer",onClick:i,children:a.jsx("input",{ref:N,id:u.name,name:u.name,type:"date",placeholder:u.placeholder,value:M,onChange:C=>q(u.name,C.target.value),required:!!u.required,className:`border-input flex h-9 w-full rounded-md border bg-transparent px-3 py-1 text-base shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-primary md:text-sm cursor-pointer disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 ${p[u.name]?"border-red-500":""}`,disabled:u.disabled||h==="view",readOnly:u.readOnly})})}function _e({isOpen:u,onClose:M,onSubmit:q,formConfig:p,initialData:h={},title:N,mode:i,description:C,errors:F={},submitButtonText:H,onEdit:_}){const{t:l}=de(),[n,x]=O.useState({}),[r,g]=O.useState({}),[j,A]=O.useState({}),d=()=>{if(!p.priceSummary)return 0;const e=n[p.priceSummary.quantityFieldName||"quantity"]||p.priceSummary.quantity||1;return p.priceSummary.unitPrice*e};O.useEffect(()=>{if(u){const e={...h};p.fields.forEach(c=>{c.type==="multi-select"&&e[c.name]&&!Array.isArray(e[c.name])&&(e[c.name]=Array.isArray(e[c.name])?e[c.name]:e[c.name]?[e[c.name].toString()]:[]),i==="create"&&(e[c.name]===void 0||e[c.name]===null)&&c.defaultValue!==void 0&&(e[c.name]=c.defaultValue)}),x(e||{}),g({}),p.fields.forEach(c=>{c.relation&&c.relation.endpoint&&fetch(c.relation.endpoint).then(s=>s.json()).then(s=>{A(v=>({...v,[c.name]:Array.isArray(s)?s:s.data||[]}))}).catch(s=>{})})}},[u,h,p.fields,i]),O.useEffect(()=>{if(F&&Object.keys(F).length>0){const e={};Object.entries(F).forEach(([c,s])=>{e[c]=Array.isArray(s)?s[0]:s}),g(e)}},[F]);const m=(e,c)=>{x(s=>({...s,[e]:c})),r[e]&&g(s=>{const v={...s};return delete v[e],v})},P=e=>{e.preventDefault();const c={...n};p.fields.forEach(o=>{o.type==="multi-select"&&c[o.name]&&(Array.isArray(c[o.name])||(c[o.name]=[c[o.name].toString()]))}),x(c);const s={};if(p.fields.forEach(o=>{if(o.type==="file"&&i==="edit")return;const B=o.conditional?o.conditional(i,n):!0,I=n[o.name],R=I==null||I==="";if((typeof o.required=="function"?o.required(n):o.required)&&B&&R&&(s[o.name]=`${o.label} is required`),o.type==="file"&&n[o.name]&&o.fileValidation){const $=n[o.name];if(o.fileValidation.maxSize&&$.size>o.fileValidation.maxSize){const S=o.fileValidation.maxSize/1048576;s[o.name]=`File size must be less than ${S}MB`}if(o.fileValidation.mimeTypes&&o.fileValidation.mimeTypes.length>0&&(o.fileValidation.mimeTypes.includes($.type)||(s[o.name]=`File type must be one of: ${o.fileValidation.mimeTypes.join(", ")}`)),o.fileValidation.extensions&&o.fileValidation.extensions.length>0){const S=$.name,z=S.substring(S.lastIndexOf(".")).toLowerCase();o.fileValidation.extensions.includes(z)||(s[o.name]=`File extension must be one of: ${o.fileValidation.extensions.join(", ")}`)}}}),Object.keys(s).length>0){g(s);return}const v={...n};p.fields.forEach(o=>{o.type==="multi-select"&&v[o.name]&&(Array.isArray(v[o.name])||(v[o.name]=[v[o.name].toString()]))}),q(v)},Q=e=>{var c,s,v,o,B,I;if(e.conditional&&!e.conditional(i,n))return null;if(e.render)return e.render(e,n,m);if(i==="view"){if(e.type==="multi-select"){const k=(Array.isArray(n[e.name])?n[e.name]:[]).map($=>{var z;const S=(z=e.options)==null?void 0:z.find(Y=>Y.value===$);return S?S.label:$}).join(", ");return a.jsx("div",{className:"p-2 border rounded-md bg-gray-50",children:k||"-"})}return a.jsx("div",{className:"p-2 border rounded-md bg-gray-50",children:e.type==="select"&&e.options?((c=e.options.find(R=>R.value===String(n[e.name])))==null?void 0:c.label)||n[e.name]||"-":e.type==="checkbox"?n[e.name]===!0||n[e.name]===1||n[e.name]==="1"?l("Yes"):l("No"):n[e.name]||"-"})}switch(e.type){case"text":case"email":case"password":case"color":return a.jsx(Z,{id:e.name,name:e.name,type:e.type,placeholder:e.placeholder,value:n[e.name]??"",onChange:t=>m(e.name,t.target.value),required:e.required,className:r[e.name]?"border-red-500":"",disabled:e.disabled||i==="view",readOnly:e.readOnly});case"time":{const t=n[e.name]??"",L=e.disabled||i==="view",J=!!r[e.name];let E="",D="",V="AM";if(t&&t.includes(":")){const[y,w]=t.split(":"),b=parseInt(y,10);D=w.padStart(2,"0"),b===0?(E="12",V="AM"):b===12?(E="12",V="PM"):b>12?(E=String(b-12).padStart(2,"0"),V="PM"):(E=String(b).padStart(2,"0"),V="AM")}const W=(y,w,b)=>{if(!y||!w)return"";let G=parseInt(y,10);return b==="AM"&&G===12?G=0:b==="PM"&&G!==12&&(G+=12),`${String(G).padStart(2,"0")}:${w}`},T=(y,w)=>{const ne=W(y==="hour"?w:E||"12",y==="minute"?w:D||"00",y==="period"?w:V);ne&&m(e.name,ne)},K=`h-9 rounded-md border bg-transparent px-2 py-1 text-sm shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50 ${J?"border-red-500":"border-input"}`;return a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsxs("select",{id:`${e.name}-hour`,value:E,onChange:y=>T("hour",y.target.value),disabled:L,className:`${K} w-[62px]`,children:[a.jsx("option",{value:"",children:l("HH")}),Array.from({length:12},(y,w)=>{const b=String(w+1).padStart(2,"0");return a.jsx("option",{value:b,children:b},b)})]}),a.jsx("span",{className:"text-gray-400 font-bold text-lg",children:":"}),a.jsxs("select",{id:`${e.name}-minute`,value:D,onChange:y=>T("minute",y.target.value),disabled:L,className:`${K} w-[62px]`,children:[a.jsx("option",{value:"",children:l("MM")}),Array.from({length:60},(y,w)=>{const b=String(w).padStart(2,"0");return a.jsx("option",{value:b,children:b},b)})]}),a.jsxs("select",{id:`${e.name}-period`,value:V,onChange:y=>T("period",y.target.value),disabled:L,className:`${K} w-[62px]`,children:[a.jsx("option",{value:"AM",children:"AM"}),a.jsx("option",{value:"PM",children:"PM"})]})]})}case"date":const R=n[e.name]?n[e.name]instanceof Date?n[e.name].toISOString().split("T")[0]:typeof n[e.name]=="string"&&n[e.name].includes("T")?n[e.name].split("T")[0]:n[e.name]:"";return a.jsx(ke,{field:e,dateValue:R,handleChange:m,errors:r,mode:i});case"number":return a.jsx(Z,{id:e.name,name:e.name,type:"number",placeholder:e.placeholder,value:n[e.name]??"",onChange:t=>m(e.name,t.target.value!==""?parseFloat(t.target.value):""),required:e.required,className:r[e.name]?"border-red-500":"",disabled:e.disabled||i==="view",readOnly:e.readOnly});case"textarea":return a.jsx(we,{id:e.name,name:e.name,placeholder:e.placeholder,value:n[e.name]??"",onChange:t=>m(e.name,t.target.value),required:e.required,className:r[e.name]?"border-red-500":"",disabled:e.disabled||i==="view",readOnly:e.readOnly});case"select":const k=e.relation?j[e.name]||[]:e.options||[],$=String(n[e.name]||""),S=e.relation?k.find(t=>String(t[e.relation.valueField])===$):k.find(t=>String(t.value)===$),z=S?e.relation?S[e.relation.labelField]:S.label:"";return a.jsxs(Se,{value:$,onValueChange:t=>m(e.name,t),disabled:i==="view",children:[a.jsx(Ne,{className:r[e.name]?"border-red-500":"",children:a.jsx(Fe,{placeholder:e.placeholder||`Select ${e.label}`,children:z||e.placeholder||`Select ${e.label}`})}),a.jsx($e,{className:"z-[60000]",searchable:e.searchable,children:e.relation?k.map(t=>a.jsx(te,{value:String(t[e.relation.valueField]),children:t[e.relation.labelField]},t[e.relation.valueField])):k.map(t=>a.jsx(te,{value:String(t.value),children:t.label},t.value))})]});case"radio":return a.jsx(Oe,{value:n[e.name]||"",onValueChange:t=>m(e.name,t),disabled:i==="view",className:"flex gap-4",children:(s=e.options)==null?void 0:s.map(t=>a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(qe,{value:t.value,id:`${e.name}-${t.value}`}),a.jsx(U,{htmlFor:`${e.name}-${t.value}`,children:t.label})]},t.value))});case"checkbox":return a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(Ae,{id:e.name,checked:!!n[e.name],onCheckedChange:t=>m(e.name,t),disabled:i==="view"}),a.jsx(U,{htmlFor:e.name,children:e.placeholder||e.label})]});case"switch":return a.jsx(Ve,{id:e.name,checked:!!n[e.name],onCheckedChange:t=>m(e.name,t),disabled:i==="view"});case"multi-select":return a.jsx(Me,{field:e,formData:n,handleChange:m});case"media-picker":const Y=n[e.name]||(i==="edit"&&h[e.name]?h[e.name].startsWith("http")?h[e.name]:`/storage/${h[e.name]}`:"");return a.jsx(ve,{value:Y,onChange:t=>m(e.name,t),placeholder:e.placeholder||`Select ${e.label}`,showPreview:!0});case"file":const ee=((v=e.fileValidation)==null?void 0:v.accept)||"",me=ee.includes("image")||(((B=(o=e.fileValidation)==null?void 0:o.mimeTypes)==null?void 0:B.some(t=>t.startsWith("image/")))??!1);return a.jsxs(a.Fragment,{children:[a.jsx(Z,{id:e.name,name:e.name,type:"file",accept:ee,onChange:t=>{t.target.files&&t.target.files[0]&&m(e.name,t.target.files[0])},className:r[e.name]?"border-red-500":"",disabled:i==="view"}),i==="edit"&&h[e.name]&&a.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:["Current file: ",h.featured_image_original_name||h[e.name]]}),e.fileValidation&&a.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:[e.fileValidation.extensions&&a.jsxs("span",{children:[l("Allowed extensions"),": ",e.fileValidation.extensions.join(", ")," "]}),e.fileValidation.maxSize&&a.jsxs("span",{children:[l("Max size"),": ",(e.fileValidation.maxSize/(1024*1024)).toFixed(1),"MB"]})]}),me&&a.jsx("div",{className:"mt-2",children:n[e.name]&&n[e.name]instanceof File?a.jsxs("div",{className:"mt-2",children:[a.jsxs("p",{className:"text-xs text-gray-500 mb-1",children:[l("Preview"),":"]}),a.jsx("img",{src:URL.createObjectURL(n[e.name]),alt:"Preview",className:"h-24 w-auto rounded-md object-cover shadow-sm"})]}):i==="edit"&&h[e.name]&&a.jsxs("div",{className:"mt-2",children:[a.jsxs("p",{className:"text-xs text-gray-500 mb-1",children:[l("Current image"),":"]}),a.jsx("img",{src:typeof h[e.name]=="string"&&h[e.name].startsWith&&h[e.name].startsWith("http")?h[e.name]:`/storage/${h[e.name]}`,alt:"Current",className:"h-24 w-auto rounded-md object-cover shadow-sm",onError:t=>{t.currentTarget.src="https://placehold.co/200x150?text=Image+Not+Found"}})]})})]});case"dependent-dropdown":const ae={};return(I=e.dependentConfig)==null||I.forEach(t=>{ae[t.name]=n[t.name]||""}),a.jsx(Ee,{fields:e.dependentConfig||[],values:ae,onChange:(t,L,J)=>{x(E=>{var W;const D={...E,[t]:L},V=((W=e.dependentConfig)==null?void 0:W.findIndex(T=>T.name===t))??-1;return V!==-1&&e.dependentConfig&&e.dependentConfig.slice(V+1).forEach(T=>{D[T.name]=""}),D}),e.onDependentChange&&e.onDependentChange(t,L,n,J)}});default:return null}},se=()=>{const e={sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl","3xl":"sm:max-w-3xl","4xl":"sm:max-w-4xl","5xl":"sm:max-w-5xl",full:"sm:max-w-full"};return p.modalSize?e[p.modalSize]:"sm:max-w-md"},re=()=>{const e={};return p.fields.forEach(c=>{const s=c.row||0;e[s]||(e[s]=[]),e[s].push(c)}),Object.entries(e).sort(([c],[s])=>parseInt(c)-parseInt(s))},f=p.layout||"default",oe=p.columns||1,ce=`crud-modal-${i}-${N.replace(/\s+/g,"-").toLowerCase()}-${Date.now()}`,[ie,le]=O.useState(!1);return O.useEffect(()=>{const e=()=>{const s=document.querySelector("[data-chatgpt-modal]");le(!!s)},c=new MutationObserver(e);return c.observe(document.body,{childList:!0,subtree:!0}),()=>c.disconnect()},[]),a.jsx(xe,{open:u,onOpenChange:e=>{e||M()},modal:!ie,children:a.jsxs(he,{className:`${se()} max-h-[90vh]`,modalId:ce,children:[a.jsxs(be,{children:[a.jsx(ye,{children:N}),a.jsx(ge,{children:C||" "})]}),a.jsx(Ce,{className:"max-h-[70vh] pr-4",children:a.jsxs("form",{onSubmit:P,className:"space-y-4",children:[p.priceSummary&&a.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg mb-4",children:[a.jsxs("div",{className:"flex justify-between items-center mb-2",children:[a.jsxs("span",{className:"text-sm text-gray-600",children:[l("Unit Price"),":"]}),a.jsxs("span",{className:"font-medium",children:["$",p.priceSummary.unitPrice.toFixed(2)]})]}),a.jsxs("div",{className:"flex justify-between items-center mb-2",children:[a.jsxs("span",{className:"text-sm text-gray-600",children:[l("Quantity"),":"]}),a.jsx("span",{className:"font-medium",children:n[p.priceSummary.quantityFieldName||"quantity"]||p.priceSummary.quantity||1})]}),a.jsx("div",{className:"border-t pt-2",children:a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsxs("span",{className:"font-semibold",children:[l("Total Price"),":"]}),a.jsxs("span",{className:"font-bold text-lg text-primary",children:["$",d().toFixed(2)]})]})})]}),f==="grid"?a.jsx("div",{style:{display:"grid",gridTemplateColumns:`repeat(${oe}, 1fr)`,gap:"1rem"},children:p.fields.map(e=>e.conditional&&!e.conditional(i,n)?null:a.jsxs("div",{className:"space-y-2",style:{gridColumn:e.colSpan?`span ${e.colSpan}`:"span 1",width:"100%"},children:[e.type!=="checkbox"&&e.type!=="switch"||i==="view"?a.jsxs(U,{htmlFor:e.name,className:"text-sm font-medium",children:[e.label," ",(typeof e.required=="function"?e.required(n):e.required)&&(e.conditional?e.conditional(i,n):!0)&&!(e.type==="file"&&i==="edit")&&a.jsx("span",{className:"text-red-500",children:"*"})]}):null,Q(e),r[e.name]&&a.jsx("p",{className:"text-xs text-red-500",children:r[e.name]})]},e.name))}):f==="flex"?a.jsx("div",{className:"flex flex-wrap gap-4",children:p.fields.map(e=>e.conditional&&!e.conditional(i,n)?null:a.jsxs("div",{className:"space-y-2",style:{width:e.width||"100%",flexGrow:e.width?0:1},children:[e.type!=="checkbox"&&e.type!=="switch"||i==="view"?a.jsxs(U,{htmlFor:e.name,className:"text-sm font-medium",children:[e.label," ",(typeof e.required=="function"?e.required(n):e.required)&&(e.conditional?e.conditional(i,n):!0)&&!(e.type==="file"&&i==="edit")&&a.jsx("span",{className:"text-red-500",children:"*"})]}):null,Q(e),r[e.name]&&a.jsx("p",{className:"text-xs text-red-500",children:r[e.name]})]},e.name))}):re().map(([e,c])=>a.jsx("div",{className:"flex flex-wrap gap-4 mb-4",children:c.map(s=>s.conditional&&!s.conditional(i,n)?null:a.jsxs("div",{className:"space-y-2",style:{width:s.width||"100%"},children:[s.type!=="checkbox"||i==="view"?a.jsxs(U,{htmlFor:s.name,className:"text-sm font-medium",children:[s.label," ",(typeof s.required=="function"?s.required(n):s.required)&&(s.conditional?s.conditional(i,n):!0)&&!(s.type==="file"&&i==="edit")&&a.jsx("span",{className:"text-red-500",children:"*"})]}):null,Q(s),r[s.name]&&a.jsx("p",{className:"text-xs text-red-500",children:r[s.name]})]},s.name))},e))]})}),a.jsxs(je,{className:"sm:justify-end",children:[a.jsx(X,{type:"button",variant:"outline",onClick:M,children:l("Cancel")}),i==="view"&&_&&a.jsx(X,{type:"button",onClick:_,children:l("Edit Record")}),i!=="view"&&a.jsx(X,{type:"button",onClick:P,children:H||l("Save")})]})]})})}export{_e as C}; diff --git a/public/build/assets/CrudTable-Dq-7DrKt.js b/public/build/assets/CrudTable-B-FIe3nV.js similarity index 99% rename from public/build/assets/CrudTable-Dq-7DrKt.js rename to public/build/assets/CrudTable-B-FIe3nV.js index ec99cd48e..c86cb5ce7 100644 --- a/public/build/assets/CrudTable-Dq-7DrKt.js +++ b/public/build/assets/CrudTable-B-FIe3nV.js @@ -1,4 +1,4 @@ -import{j as a}from"./ui-Z445SNHD.js";import{G as e,V as E2,F as X2,ac as K2,ai as J2,ad as Q2,aj as k,E as p,P as Y2,y as e0,S as a0,U as o0,X as c0,ak as qm,u as bm,x as km,e as U2,d as pm,B as $m,al as sm,s as lm,v as um,o as Mm,w as vm}from"./app-BSYHJZwU.js";import{T as Am,a as Hm,b as nm,c as dm,d as zm,e as W2}from"./table-DSvwhwjx.js";import{A as t0,a as n0,b as d0,B as i0,I as h0,L as y0,R as r0,S as k0,U as p0,c as s0}from"./unlink-Ch49KwjM.js";import{A as l0,B as u0,G as M0,I as v0,S as m0}from"./scale-D0KxNj3C.js";import{A as _0}from"./arrow-down-left-nGlOp0UN.js";import{A as g0}from"./arrow-left-a7Nt3e5S.js";import{A as L0}from"./arrow-right-left-UUmu8K2j.js";import{A as x0}from"./arrow-right-DUqjyG5g.js";import{A as w0}from"./arrow-up-down-CONKUAPq.js";import{A as f0,H as C0,K as I0,L as s}from"./lock-open-ZWo1f94L.js";import{A as N0}from"./award-CjMubtHH.js";import{B as S0}from"./ban-DQn-PTEr.js";import{B as q0,I as b0}from"./indian-rupee-Cnxg20SR.js";import{B as $0}from"./bell-DYicqpcQ.js";import{B as A0}from"./book-open-BzmGBaRl.js";import{B as H0}from"./boxes-OutTNwlM.js";import{B as z0,a as P0,F as j0,S as l}from"./sparkles-CfR7lDao.js";import{B as V0}from"./briefcase-BKgf-yb0.js";import{B as B0}from"./building-2-DadP8PRU.js";import{B as F0}from"./building-DW_9GQwt.js";import{C as D0}from"./calculator-CeuHG_lv.js";import{C as R0}from"./calendar-check-9E1RtXCZ.js";import{C as T0}from"./calendar-days-D37GabpP.js";import{C as U0}from"./calendar-gcQNJrck.js";import{C as O0}from"./camera-SPl73Xmu.js";import{C as u}from"./chart-column-DHEl_xzN.js";import{C as M}from"./chart-no-axes-column-increasing-SxKAr_7S.js";import{C as v}from"./chart-no-axes-column-BFfQ0y3B.js";import{C as O2,a as Z2}from"./chevron-up-DucaKQ3-.js";import{C as Z0}from"./chevron-left-CRrX0kFZ.js";import{C as G0}from"./chevron-right-Cj9vWq5q.js";import{C as m}from"./circle-alert-B8ayxgAl.js";import{C as _}from"./circle-check-big-Bg6KKeWO.js";import{C as g}from"./circle-check-CTcXcmw_.js";import{C as L}from"./circle-help-BGaaZlKa.js";import{C as x}from"./circle-x-CfKsm7H3.js";import{C as W0}from"./circle-1_M8zNqP.js";import{C as E0}from"./clipboard-list-BZ7Kqeso.js";import{C as X0}from"./clock-BVZQtYUP.js";import{C as K0}from"./code-CD7oUh2D.js";import{C as J0}from"./coins-B2297ctz.js";import{C as Q0}from"./copy-D6lZoFYl.js";import{C as Y0}from"./credit-card-D8zG-MvI.js";import{C as ea}from"./crosshair-CzV0fWxp.js";import{C as aa}from"./crown-CMz9BX1H.js";import{D as oa}from"./dollar-sign-DEPMZ3f5.js";import{D as ca}from"./download-L-j3Hs25.js";import{E as ta}from"./external-link-BqhSWP4p.js";import{E as na}from"./eye-off-CJzPLzeN.js";import{E as da}from"./eye-TLkxKnCq.js";import{F as ia,I as ha}from"./instagram-C45NAPrj.js";import{F as ya}from"./file-down-B-va8ah6.js";import{F as ra}from"./file-up-DtFy3z5R.js";import{F as ka}from"./filter-CBRiM0r4.js";import{F as pa,G as d,H as w}from"./house-8TaxZb3W.js";import{G as sa}from"./gift-CVFNrX_x.js";import{G as la}from"./git-branch-I6o8eTUM.js";import{G as ua}from"./globe-BV-V8u_6.js";import{G as Ma}from"./grip-vertical-WVbAwevM.js";import{H as va}from"./hard-drive-CiD0YEwE.js";import{H as ma}from"./hash-_aMK0MDt.js";import{H as _a}from"./heart-BQ0S5x0g.js";import{I as ga}from"./info-CUVFT_b2.js";import{K as La}from"./key-BxQnrFAw.js";import{L as f}from"./layers-D6Sv_aBW.js";import{L as xa}from"./layout-grid-Dlu7hxHb.js";import{L as wa}from"./layout-list-B84oZX48.js";import{L as fa}from"./lightbulb-CmXpZA2a.js";import{L as Ca}from"./link-2-B9k0XRLv.js";import{L as Ia}from"./link-B3wNGiM9.js";import{L as Na,T as Sa}from"./twitter-D-kIxaKd.js";import{L as qa}from"./list-BwOh69td.js";import{L as C}from"./loader-circle-ifydYLPc.js";import{L as ba}from"./lock-6O4sRSlL.js";import{L as $a}from"./log-in-BHGk9WKF.js";import{L as Aa}from"./log-out-rZ-6N8el.js";import{M as Ha}from"./mail-DxVHYF7N.js";import{M as za}from"./map-pin-IdpREju-.js";import{M as Pa}from"./menu-D0MrC3-G.js";import{M as ja}from"./message-square-warning-DUuO2thx.js";import{M as Va}from"./message-square-Ck5hHwt6.js";import{M as Ba}from"./monitor-MMlreZ6a.js";import{P as Fa}from"./package-BgGG9D7B.js";import{P as Da}from"./percent-t1PnhZvQ.js";import{P as Ra}from"./phone-C6oVC2rb.js";import{P as Ta}from"./plane-BDHK1wP4.js";import{P as Ua}from"./play-Bcyp9ITy.js";import{Q as Oa}from"./qr-code-DxYbVEkr.js";import{Q as Za}from"./quote-CjYpK6AJ.js";import{R as Ga}from"./refresh-cw-gcM_kYqC.js";import{R as Wa}from"./ruler-DKtnIiXK.js";import{S as Ea}from"./send-Bj7h8rUg.js";import{S as Xa}from"./server-B6FbzqEM.js";import{S as Ka}from"./settings-CX6nvi-t.js";import{S as Ja,a as Qa,W as Ya}from"./wifi-DpQfK6Cq.js";import{S as eo}from"./shield-check-CsujthUX.js";import{S as ao}from"./shield-Bbpddci_.js";import{S as I}from"./square-check-big-fDvPz894.js";import{S as n}from"./square-pen-T7rpryAv.js";import{S as oo}from"./star-GU5Kax9a.js";import{S as co}from"./sun-BpQuVj2K.js";import{T as to}from"./tag-NmFgBZB4.js";import{T as no}from"./target-Bp0PaO6Q.js";import{T as io,a as ho}from"./thumbs-up-CYBIkoHv.js";import{T as yo}from"./ticket-Ctf1RIBL.js";import{T as ro}from"./timer-DwjTxvPw.js";import{T as ko}from"./trash-2-BsMHtHjz.js";import{T as po}from"./trash-D2EVoYgr.js";import{T as so}from"./trending-down-DZWO8D7U.js";import{T as lo}from"./trending-up-BjdLenQE.js";import{T as N}from"./triangle-alert-D2ry1q_6.js";import{T as uo}from"./trophy-DTrPg_CC.js";import{T as Mo}from"./type-BSvyGCKj.js";import{U as vo}from"./user-check-DssH9IY_.js";import{U as mo}from"./user-plus-x5edR71k.js";import{U as _o}from"./user-x-D4abRW9M.js";import{U as go}from"./user-9XcFVF9J.js";import{U as Lo}from"./users-BSBktdVT.js";import{W as xo}from"./wallet-fB7Qgro5.js";import{W as wo}from"./wrench-DAJxHt41.js";import{Z as fo}from"./zap-Dm4IzKeS.js";/** +import{j as a}from"./ui-Z445SNHD.js";import{G as e,V as E2,F as X2,ac as K2,ai as J2,ad as Q2,aj as k,E as p,P as Y2,y as e0,S as a0,U as o0,X as c0,ak as qm,u as bm,x as km,e as U2,d as pm,B as $m,al as sm,s as lm,v as um,o as Mm,w as vm}from"./app-sDOUnh17.js";import{T as Am,a as Hm,b as nm,c as dm,d as zm,e as W2}from"./table-nCURXzDr.js";import{A as t0,a as n0,b as d0,B as i0,I as h0,L as y0,R as r0,S as k0,U as p0,c as s0}from"./unlink-CBDWT229.js";import{A as l0,B as u0,G as M0,I as v0,S as m0}from"./scale-C38oQYZf.js";import{A as _0}from"./arrow-down-left-C5TMFWGe.js";import{A as g0}from"./arrow-left-BQ77BzPY.js";import{A as L0}from"./arrow-right-left-Don28rGd.js";import{A as x0}from"./arrow-right-9tTXNXlb.js";import{A as w0}from"./arrow-up-down-Cl2YZAM0.js";import{A as f0,H as C0,K as I0,L as s}from"./lock-open-dsRhF5Lb.js";import{A as N0}from"./award-BaptGUZ1.js";import{B as S0}from"./ban-DinbdSvY.js";import{B as q0,I as b0}from"./indian-rupee-GA3CPXl8.js";import{B as $0}from"./bell-CcbGsywu.js";import{B as A0}from"./book-open-BhjQGuB4.js";import{B as H0}from"./boxes-tio4i4uc.js";import{B as z0,a as P0,F as j0,S as l}from"./sparkles-BDzJtFsV.js";import{B as V0}from"./briefcase-D2sJld6m.js";import{B as B0}from"./building-2-BEwcWTvs.js";import{B as F0}from"./building-XUeqS1lU.js";import{C as D0}from"./calculator-SgflQyFn.js";import{C as R0}from"./calendar-check-Da8212lu.js";import{C as T0}from"./calendar-days-BNWdabEQ.js";import{C as U0}from"./calendar-BLP58tly.js";import{C as O0}from"./camera-NVygL-q9.js";import{C as u}from"./chart-column-DIh64NZ8.js";import{C as M}from"./chart-no-axes-column-increasing-BpUCpHgK.js";import{C as v}from"./chart-no-axes-column-iCNIq9Y5.js";import{C as O2,a as Z2}from"./chevron-up-Dxy_p0e6.js";import{C as Z0}from"./chevron-left-BopwdMwM.js";import{C as G0}from"./chevron-right-DMFzxmwK.js";import{C as m}from"./circle-alert-Ck-LaTXK.js";import{C as _}from"./circle-check-big-CqmCWPTH.js";import{C as g}from"./circle-check-CTsvEZR1.js";import{C as L}from"./circle-help-zFpStH4x.js";import{C as x}from"./circle-x-SWsZ3P0j.js";import{C as W0}from"./circle-CLsBtL0H.js";import{C as E0}from"./clipboard-list-Bg0Euj4T.js";import{C as X0}from"./clock-DzOBoPIM.js";import{C as K0}from"./code-C2paiy7V.js";import{C as J0}from"./coins-DtJBEZgX.js";import{C as Q0}from"./copy-CBjnbQSL.js";import{C as Y0}from"./credit-card-ljzAPDue.js";import{C as ea}from"./crosshair-DTyhBZE5.js";import{C as aa}from"./crown-zfumIcj8.js";import{D as oa}from"./dollar-sign-bcdEMzYN.js";import{D as ca}from"./download-CkX-hJtI.js";import{E as ta}from"./external-link-CPuLEUpp.js";import{E as na}from"./eye-off-DF2kXudZ.js";import{E as da}from"./eye-VTFCyTyM.js";import{F as ia,I as ha}from"./instagram-C9DDA_wX.js";import{F as ya}from"./file-down-DlHbhy9s.js";import{F as ra}from"./file-up-Cfkysag-.js";import{F as ka}from"./filter-DOMq0Vrh.js";import{F as pa,G as d,H as w}from"./house-BOwCWhG8.js";import{G as sa}from"./gift-DcCNc2X1.js";import{G as la}from"./git-branch-BdRBSyt1.js";import{G as ua}from"./globe-Ceg_d9rk.js";import{G as Ma}from"./grip-vertical-BpYYgNc-.js";import{H as va}from"./hard-drive-CupXEOAu.js";import{H as ma}from"./hash-CYPNE7ur.js";import{H as _a}from"./heart-KpdhBjuF.js";import{I as ga}from"./info-ByWc-Tkz.js";import{K as La}from"./key-CxoRUnrO.js";import{L as f}from"./layers-D56AD4XE.js";import{L as xa}from"./layout-grid-DKMvB0ii.js";import{L as wa}from"./layout-list-LN3aqIJU.js";import{L as fa}from"./lightbulb-oXJOGzgJ.js";import{L as Ca}from"./link-2-CcHZf5rl.js";import{L as Ia}from"./link-IOaY_KQH.js";import{L as Na,T as Sa}from"./twitter-CUSTR7Ss.js";import{L as qa}from"./list-D59g-ZkY.js";import{L as C}from"./loader-circle-BvvBEWYy.js";import{L as ba}from"./lock-CYwz-bJT.js";import{L as $a}from"./log-in-2pdXU4mi.js";import{L as Aa}from"./log-out-BehrvNLQ.js";import{M as Ha}from"./mail-DeK8bIPR.js";import{M as za}from"./map-pin-M1W6OuY8.js";import{M as Pa}from"./menu-B-BT0CdI.js";import{M as ja}from"./message-square-warning-DnqzWQ5p.js";import{M as Va}from"./message-square-Br5CUSIj.js";import{M as Ba}from"./monitor-DLOwEyU3.js";import{P as Fa}from"./package-ChaJccWz.js";import{P as Da}from"./percent-9X2V9HRo.js";import{P as Ra}from"./phone-CgD68jaL.js";import{P as Ta}from"./plane-Dpgo7KLo.js";import{P as Ua}from"./play-B4Idjg2U.js";import{Q as Oa}from"./qr-code-BkoTlVt-.js";import{Q as Za}from"./quote-CGCdNvLE.js";import{R as Ga}from"./refresh-cw-iWo6guvA.js";import{R as Wa}from"./ruler-Bk0JkgeM.js";import{S as Ea}from"./send-D4zuFg21.js";import{S as Xa}from"./server-D_NIhtO0.js";import{S as Ka}from"./settings-I4rcMQaX.js";import{S as Ja,a as Qa,W as Ya}from"./wifi-scuq7I1o.js";import{S as eo}from"./shield-check-DHmF5sx9.js";import{S as ao}from"./shield-BqrBIhc5.js";import{S as I}from"./square-check-big-DxDUf-Aa.js";import{S as n}from"./square-pen-CpGBZMVD.js";import{S as oo}from"./star-CtzRKCrZ.js";import{S as co}from"./sun-BaGWxMs2.js";import{T as to}from"./tag-BmKAiPKb.js";import{T as no}from"./target-BuKzCkjr.js";import{T as io,a as ho}from"./thumbs-up-DHtl3Mos.js";import{T as yo}from"./ticket-DrGRTpoY.js";import{T as ro}from"./timer-CNgqxzyP.js";import{T as ko}from"./trash-2-wljzifn4.js";import{T as po}from"./trash-CJoQcrZu.js";import{T as so}from"./trending-down-B7wOtvgI.js";import{T as lo}from"./trending-up-0HtI1vzT.js";import{T as N}from"./triangle-alert-Df_6fR0i.js";import{T as uo}from"./trophy-DO2fuFhC.js";import{T as Mo}from"./type-1_MWEX62.js";import{U as vo}from"./user-check-NBLK0jLx.js";import{U as mo}from"./user-plus-BwF0GBPk.js";import{U as _o}from"./user-x-BjPRk-FF.js";import{U as go}from"./user-JMXMKzLO.js";import{U as Lo}from"./users-CxIavEVE.js";import{W as xo}from"./wallet-OryIaI-o.js";import{W as wo}from"./wrench-BnEu3Y-c.js";import{Z as fo}from"./zap-Ctg1ccsK.js";/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. diff --git a/public/build/assets/FaqSection-BY-x8sGl.js b/public/build/assets/FaqSection-HoNaK4yf.js similarity index 97% rename from public/build/assets/FaqSection-BY-x8sGl.js rename to public/build/assets/FaqSection-HoNaK4yf.js index 70a1dbb4c..32f9fd6a7 100644 --- a/public/build/assets/FaqSection-BY-x8sGl.js +++ b/public/build/assets/FaqSection-HoNaK4yf.js @@ -1 +1 @@ -import{r as f,j as t}from"./ui-Z445SNHD.js";import{c as b,O as w,Q as v}from"./app-BSYHJZwU.js";import{a as j,C as k}from"./chevron-up-DucaKQ3-.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function F({faqs:o,settings:N,sectionData:r,brandColor:a="#3b82f6"}){var d,g;const[n,p]=f.useState(null),{props:i}=b(),u=w(i);let l="light";if(u){const e=v("themeSettings");if(e)try{l=JSON.parse(e).appearance||"light"}catch{l="light"}}else l=((d=i.globalSettings)==null?void 0:d.themeMode)||"light";const s=l==="dark",c=[{id:1,question:"How does HRM work?",answer:"HRM is an all-in-one HR platform that helps you manage employees, payroll, attendance, recruitment, and performance efficiently."},{id:2,question:"Can I automate payroll and leave tracking?",answer:"Yes! HRM allows you to automate payroll calculations, generate payslips, and track employee leaves and attendance seamlessly."},{id:3,question:"Is my employee data secure?",answer:"Absolutely. HRM uses enterprise-grade security measures to keep all sensitive HR data safe and confidential."},{id:4,question:"Can I manage recruitment and onboarding?",answer:"Yes, HRM provides applicant tracking, interview management, and digital onboarding tools to simplify hiring."},{id:5,question:"Does HRM support performance evaluations?",answer:"Yes, you can set goals, track KPIs, and run performance reviews directly within the platform."},{id:6,question:"Can HRM generate HR reports?",answer:"HRM offers advanced analytics and reporting features to give insights on attendance, payroll, and workforce performance."},{id:7,question:"What plans are available and can I upgrade anytime?",answer:"We offer flexible plans for different team sizes. You can start with the free plan and upgrade as your organization grows."}],x=((g=r==null?void 0:r.faqs)==null?void 0:g.map((e,m)=>({id:m+1,...e})))||c,y=o.length>0?o:x,h=e=>{p(n===e?null:e)};return t.jsx("section",{className:`py-12 sm:py-16 lg:py-20 ${s?"bg-gray-900":"bg-white"}`,children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs("div",{className:"text-center mb-8 sm:mb-12 lg:mb-16",children:[t.jsx("h2",{className:`text-3xl md:text-4xl font-bold ${s?"text-white":"text-gray-900"} mb-4`,children:(r==null?void 0:r.title)||"Frequently Asked Questions"}),t.jsx("p",{className:`text-lg ${s?"text-gray-300":"text-gray-600"} leading-relaxed font-medium`,children:(r==null?void 0:r.subtitle)||"Got questions? We've got answers. If you can't find what you're looking for, feel free to contact our support team."})]}),t.jsx("div",{className:"space-y-2 sm:space-y-3",children:y.map(e=>t.jsxs("div",{className:`${s?"bg-gray-800 border-gray-700":"bg-gray-50 border-gray-200"} border rounded-lg`,children:[t.jsxs("button",{onClick:()=>h(e.id),className:`w-full px-6 py-4 text-left flex justify-between items-center ${s?"hover:bg-gray-700":"hover:bg-gray-100"} transition-colors`,"aria-expanded":n===e.id,"aria-controls":`faq-answer-${e.id}`,"aria-describedby":`faq-question-${e.id}`,children:[t.jsx("h3",{className:`text-lg font-semibold ${s?"text-white":"text-gray-900"} pr-4`,id:`faq-question-${e.id}`,children:e.question}),n===e.id?t.jsx(j,{className:`w-5 h-5 ${s?"text-gray-400":"text-gray-600"} flex-shrink-0`,"aria-hidden":"true"}):t.jsx(k,{className:`w-5 h-5 ${s?"text-gray-400":"text-gray-600"} flex-shrink-0`,"aria-hidden":"true"})]}),n===e.id&&t.jsx("div",{className:`px-6 pb-4 border-t ${s?"border-gray-700":"border-gray-200"}`,id:`faq-answer-${e.id}`,role:"region","aria-labelledby":`faq-question-${e.id}`,children:t.jsx("p",{className:`${s?"text-gray-300":"text-gray-600"} leading-relaxed pt-4`,children:e.answer})})]},e.id))}),((r==null?void 0:r.cta_text)||(r==null?void 0:r.button_text))&&t.jsxs("div",{className:"text-center mt-8 sm:mt-12",children:[t.jsx("p",{className:`${s?"text-gray-300":"text-gray-600"} mb-4`,children:(r==null?void 0:r.cta_text)||"Still have questions?"}),t.jsx("a",{href:"#contact",className:"inline-flex items-center gap-2 px-6 py-3 rounded-lg transition-all font-semibold border",style:{backgroundColor:a,color:"white",borderColor:a},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="white",e.currentTarget.style.color=a},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=a,e.currentTarget.style.color="white"},children:(r==null?void 0:r.button_text)||"Contact Support"})]})]})})}export{F as default}; +import{r as f,j as t}from"./ui-Z445SNHD.js";import{c as b,O as w,Q as v}from"./app-sDOUnh17.js";import{a as j,C as k}from"./chevron-up-Dxy_p0e6.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function F({faqs:o,settings:N,sectionData:r,brandColor:a="#3b82f6"}){var d,g;const[n,p]=f.useState(null),{props:i}=b(),u=w(i);let l="light";if(u){const e=v("themeSettings");if(e)try{l=JSON.parse(e).appearance||"light"}catch{l="light"}}else l=((d=i.globalSettings)==null?void 0:d.themeMode)||"light";const s=l==="dark",c=[{id:1,question:"How does HRM work?",answer:"HRM is an all-in-one HR platform that helps you manage employees, payroll, attendance, recruitment, and performance efficiently."},{id:2,question:"Can I automate payroll and leave tracking?",answer:"Yes! HRM allows you to automate payroll calculations, generate payslips, and track employee leaves and attendance seamlessly."},{id:3,question:"Is my employee data secure?",answer:"Absolutely. HRM uses enterprise-grade security measures to keep all sensitive HR data safe and confidential."},{id:4,question:"Can I manage recruitment and onboarding?",answer:"Yes, HRM provides applicant tracking, interview management, and digital onboarding tools to simplify hiring."},{id:5,question:"Does HRM support performance evaluations?",answer:"Yes, you can set goals, track KPIs, and run performance reviews directly within the platform."},{id:6,question:"Can HRM generate HR reports?",answer:"HRM offers advanced analytics and reporting features to give insights on attendance, payroll, and workforce performance."},{id:7,question:"What plans are available and can I upgrade anytime?",answer:"We offer flexible plans for different team sizes. You can start with the free plan and upgrade as your organization grows."}],x=((g=r==null?void 0:r.faqs)==null?void 0:g.map((e,m)=>({id:m+1,...e})))||c,y=o.length>0?o:x,h=e=>{p(n===e?null:e)};return t.jsx("section",{className:`py-12 sm:py-16 lg:py-20 ${s?"bg-gray-900":"bg-white"}`,children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs("div",{className:"text-center mb-8 sm:mb-12 lg:mb-16",children:[t.jsx("h2",{className:`text-3xl md:text-4xl font-bold ${s?"text-white":"text-gray-900"} mb-4`,children:(r==null?void 0:r.title)||"Frequently Asked Questions"}),t.jsx("p",{className:`text-lg ${s?"text-gray-300":"text-gray-600"} leading-relaxed font-medium`,children:(r==null?void 0:r.subtitle)||"Got questions? We've got answers. If you can't find what you're looking for, feel free to contact our support team."})]}),t.jsx("div",{className:"space-y-2 sm:space-y-3",children:y.map(e=>t.jsxs("div",{className:`${s?"bg-gray-800 border-gray-700":"bg-gray-50 border-gray-200"} border rounded-lg`,children:[t.jsxs("button",{onClick:()=>h(e.id),className:`w-full px-6 py-4 text-left flex justify-between items-center ${s?"hover:bg-gray-700":"hover:bg-gray-100"} transition-colors`,"aria-expanded":n===e.id,"aria-controls":`faq-answer-${e.id}`,"aria-describedby":`faq-question-${e.id}`,children:[t.jsx("h3",{className:`text-lg font-semibold ${s?"text-white":"text-gray-900"} pr-4`,id:`faq-question-${e.id}`,children:e.question}),n===e.id?t.jsx(j,{className:`w-5 h-5 ${s?"text-gray-400":"text-gray-600"} flex-shrink-0`,"aria-hidden":"true"}):t.jsx(k,{className:`w-5 h-5 ${s?"text-gray-400":"text-gray-600"} flex-shrink-0`,"aria-hidden":"true"})]}),n===e.id&&t.jsx("div",{className:`px-6 pb-4 border-t ${s?"border-gray-700":"border-gray-200"}`,id:`faq-answer-${e.id}`,role:"region","aria-labelledby":`faq-question-${e.id}`,children:t.jsx("p",{className:`${s?"text-gray-300":"text-gray-600"} leading-relaxed pt-4`,children:e.answer})})]},e.id))}),((r==null?void 0:r.cta_text)||(r==null?void 0:r.button_text))&&t.jsxs("div",{className:"text-center mt-8 sm:mt-12",children:[t.jsx("p",{className:`${s?"text-gray-300":"text-gray-600"} mb-4`,children:(r==null?void 0:r.cta_text)||"Still have questions?"}),t.jsx("a",{href:"#contact",className:"inline-flex items-center gap-2 px-6 py-3 rounded-lg transition-all font-semibold border",style:{backgroundColor:a,color:"white",borderColor:a},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="white",e.currentTarget.style.color=a},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=a,e.currentTarget.style.color="white"},children:(r==null?void 0:r.button_text)||"Contact Support"})]})]})})}export{F as default}; diff --git a/public/build/assets/FeaturesSection-BzYebja-.js b/public/build/assets/FeaturesSection-B6CHzUe8.js similarity index 89% rename from public/build/assets/FeaturesSection-BzYebja-.js rename to public/build/assets/FeaturesSection-B6CHzUe8.js index b7c51095c..eda9157bb 100644 --- a/public/build/assets/FeaturesSection-BzYebja-.js +++ b/public/build/assets/FeaturesSection-B6CHzUe8.js @@ -1 +1 @@ -import{j as e}from"./ui-Z445SNHD.js";import{u as w}from"./useScrollAnimation-B_bDsIuD.js";import{u as b}from"./app-BSYHJZwU.js";import{C as j}from"./chart-no-axes-column-BFfQ0y3B.js";import{A as v}from"./award-CjMubtHH.js";import{U as N}from"./user-plus-x5edR71k.js";import{C as k}from"./clock-BVZQtYUP.js";import{D as S}from"./dollar-sign-DEPMZ3f5.js";import{H as $}from"./heart-BQ0S5x0g.js";import{W as C,S as A,a as I}from"./wifi-DpQfK6Cq.js";import{L as U}from"./lock-6O4sRSlL.js";import{U as M}from"./users-BSBktdVT.js";import{Z as E}from"./zap-Dm4IzKeS.js";import{S as R}from"./star-GU5Kax9a.js";import{S as _}from"./shield-Bbpddci_.js";import{G}from"./globe-BV-V8u_6.js";import{C as H}from"./chart-column-DHEl_xzN.js";import{Q as c}from"./qr-code-DxYbVEkr.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";const x={"qr-code":c,smartphone:I,share:A,"bar-chart":H,globe:G,shield:_,star:R,zap:E,users:M,lock:U,wifi:C,heart:$,"dollar-sign":S,clock:k,"user-plus":N,award:v,"bar-chart-2":j};function le({settings:P,sectionData:a,brandColor:r="#3b82f6"}){const{t:s}=b(),{ref:u,isVisible:n}=w(),h=(t=>t?t.startsWith("http")?t:`${window.appSettings.imageUrl}${t}`:null)(a.image),y=a.background_color||"#f9fafb",o=a.columns||3,d=a.layout||"grid",m=a.show_icons!==!1,f=[{icon:"users",title:s("Employee Management"),description:s("Centralized profiles with personal, job, and document details. Perfect for business cards, flyers, and networking events.")},{icon:"dollar-sign",title:s("Payroll Automation"),description:s("Generate accurate payslips with tax, allowances, and deductions. Modern networking made simple and professional.")},{icon:"share",title:s("Easy Sharing"),description:s("Share your digital card via email, SMS, social media, or direct links. Multiple sharing options available.")},{icon:"clock",title:s("Leave & Attendance"),description:s("Smart tracking of leaves, shifts, and attendance logs. Understand how your network interacts with your card.")},{icon:"user-plus",title:s("Recruitment & Onboarding"),description:s("Streamline hiring with applicant tracking and digital onboarding.")},{icon:"award",title:s("Performance Management"),description:s("Set goals, run evaluations, and track employee growth.")},{icon:"bar-chart-2",title:s("Reports & Analytics"),description:s("Get actionable insights on workforce productivity and HR metrics.")}],p=a.features_list&&a.features_list.length>0?a.features_list:f;return e.jsx("section",{id:"features",className:"py-12 sm:py-16 lg:py-20",style:{backgroundColor:y},ref:u,children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:`text-center mb-8 sm:mb-12 lg:mb-16 transition-all duration-700 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:a.title||s("Empowering Businesses with Smart HR Solutions")}),e.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto leading-relaxed font-medium",children:a.description||s("All-in-one platform to manage employees, payroll, attendance, and performance with ease. Built for professionals who value efficiency and innovation.")})]}),h&&e.jsx("div",{className:"mb-8 sm:mb-12 text-center",children:e.jsx("img",{src:h,alt:"Features",className:"max-w-full h-auto rounded-xl shadow-lg mx-auto"})}),d==="grid"&&e.jsx("div",{className:`grid grid-cols-1 ${o>=2?"sm:grid-cols-2":""} ${o>=3?"lg:grid-cols-3":""} ${o>=4?"xl:grid-cols-4":""} gap-6 sm:gap-8 transition-all duration-700 delay-200 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:p.map((t,i)=>{const l=x[t.icon]||c;return e.jsxs("div",{className:"bg-white p-8 rounded-xl border border-gray-200 hover:border-gray-300 hover:shadow-lg transition-all duration-200",children:[m&&e.jsx("div",{className:"w-12 h-12 rounded-lg flex items-center justify-center mb-6",style:{backgroundColor:`${r}15`},children:e.jsx(l,{className:"w-6 h-6",style:{color:r}})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:t.title}),e.jsx("p",{className:"text-gray-600 leading-relaxed",children:t.description})]},i)})}),d==="list"&&e.jsx("div",{className:`space-y-4 transition-all duration-700 delay-200 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:p.map((t,i)=>{const l=x[t.icon]||c;return e.jsxs("div",{className:"bg-white p-6 rounded-xl border border-gray-200 hover:border-gray-300 hover:shadow-md transition-all duration-200 flex items-start gap-5",children:[m&&e.jsx("div",{className:"w-12 h-12 rounded-lg flex-shrink-0 flex items-center justify-center",style:{backgroundColor:`${r}15`},children:e.jsx(l,{className:"w-6 h-6",style:{color:r}})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-1",children:t.title}),e.jsx("p",{className:"text-gray-600 leading-relaxed",children:t.description})]})]},i)})}),d==="cards"&&e.jsx("div",{className:`grid grid-cols-1 ${o>=2?"sm:grid-cols-2":""} ${o>=3?"lg:grid-cols-3":""} ${o>=4?"xl:grid-cols-4":""} gap-6 sm:gap-8 transition-all duration-700 delay-200 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:p.map((t,i)=>{const l=x[t.icon]||c;return e.jsxs("div",{className:"bg-white rounded-xl shadow-md hover:shadow-xl transition-all duration-200 overflow-hidden",children:[e.jsx("div",{className:"h-2 w-full",style:{backgroundColor:r}}),e.jsxs("div",{className:"p-6",children:[m&&e.jsx("div",{className:"w-14 h-14 rounded-full flex items-center justify-center mb-4",style:{backgroundColor:`${r}15`},children:e.jsx(l,{className:"w-7 h-7",style:{color:r}})}),e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:t.title}),e.jsx("p",{className:"text-gray-600 text-sm leading-relaxed",children:t.description})]})]},i)})}),d==="alternating"&&e.jsx("div",{className:`space-y-6 transition-all duration-700 delay-200 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:p.map((t,i)=>{const l=x[t.icon]||c,g=i%2===0;return e.jsxs("div",{className:`flex flex-col lg:flex-row items-center gap-6 bg-white/15 backdrop-blur-sm border border-white/25 rounded-2xl p-6 hover:bg-white/25 transition-all duration-200 ${g?"":"lg:flex-row-reverse"}`,children:[m&&e.jsx("div",{className:"flex-shrink-0 w-16 h-16 rounded-xl flex items-center justify-center shadow-md",style:{backgroundColor:r},children:e.jsx(l,{className:"w-8 h-8 text-white"})}),e.jsxs("div",{className:`flex-1 ${g?"":"lg:text-right"}`,children:[e.jsx("h3",{className:"text-xl font-bold text-white mb-2",children:t.title}),e.jsx("p",{className:"text-white/80 leading-relaxed",children:t.description})]})]},i)})})]})})}export{le as default}; +import{j as e}from"./ui-Z445SNHD.js";import{u as w}from"./useScrollAnimation-B_bDsIuD.js";import{u as b}from"./app-sDOUnh17.js";import{C as j}from"./chart-no-axes-column-iCNIq9Y5.js";import{A as v}from"./award-BaptGUZ1.js";import{U as N}from"./user-plus-BwF0GBPk.js";import{C as k}from"./clock-DzOBoPIM.js";import{D as S}from"./dollar-sign-bcdEMzYN.js";import{H as $}from"./heart-KpdhBjuF.js";import{W as C,S as A,a as I}from"./wifi-scuq7I1o.js";import{L as U}from"./lock-CYwz-bJT.js";import{U as M}from"./users-CxIavEVE.js";import{Z as E}from"./zap-Ctg1ccsK.js";import{S as R}from"./star-CtzRKCrZ.js";import{S as _}from"./shield-BqrBIhc5.js";import{G}from"./globe-Ceg_d9rk.js";import{C as H}from"./chart-column-DIh64NZ8.js";import{Q as c}from"./qr-code-BkoTlVt-.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";const x={"qr-code":c,smartphone:I,share:A,"bar-chart":H,globe:G,shield:_,star:R,zap:E,users:M,lock:U,wifi:C,heart:$,"dollar-sign":S,clock:k,"user-plus":N,award:v,"bar-chart-2":j};function le({settings:P,sectionData:a,brandColor:r="#3b82f6"}){const{t:s}=b(),{ref:u,isVisible:n}=w(),h=(t=>t?t.startsWith("http")?t:`${window.appSettings.imageUrl}${t}`:null)(a.image),y=a.background_color||"#f9fafb",o=a.columns||3,d=a.layout||"grid",m=a.show_icons!==!1,f=[{icon:"users",title:s("Employee Management"),description:s("Centralized profiles with personal, job, and document details. Perfect for business cards, flyers, and networking events.")},{icon:"dollar-sign",title:s("Payroll Automation"),description:s("Generate accurate payslips with tax, allowances, and deductions. Modern networking made simple and professional.")},{icon:"share",title:s("Easy Sharing"),description:s("Share your digital card via email, SMS, social media, or direct links. Multiple sharing options available.")},{icon:"clock",title:s("Leave & Attendance"),description:s("Smart tracking of leaves, shifts, and attendance logs. Understand how your network interacts with your card.")},{icon:"user-plus",title:s("Recruitment & Onboarding"),description:s("Streamline hiring with applicant tracking and digital onboarding.")},{icon:"award",title:s("Performance Management"),description:s("Set goals, run evaluations, and track employee growth.")},{icon:"bar-chart-2",title:s("Reports & Analytics"),description:s("Get actionable insights on workforce productivity and HR metrics.")}],p=a.features_list&&a.features_list.length>0?a.features_list:f;return e.jsx("section",{id:"features",className:"py-12 sm:py-16 lg:py-20",style:{backgroundColor:y},ref:u,children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:`text-center mb-8 sm:mb-12 lg:mb-16 transition-all duration-700 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:a.title||s("Empowering Businesses with Smart HR Solutions")}),e.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto leading-relaxed font-medium",children:a.description||s("All-in-one platform to manage employees, payroll, attendance, and performance with ease. Built for professionals who value efficiency and innovation.")})]}),h&&e.jsx("div",{className:"mb-8 sm:mb-12 text-center",children:e.jsx("img",{src:h,alt:"Features",className:"max-w-full h-auto rounded-xl shadow-lg mx-auto"})}),d==="grid"&&e.jsx("div",{className:`grid grid-cols-1 ${o>=2?"sm:grid-cols-2":""} ${o>=3?"lg:grid-cols-3":""} ${o>=4?"xl:grid-cols-4":""} gap-6 sm:gap-8 transition-all duration-700 delay-200 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:p.map((t,i)=>{const l=x[t.icon]||c;return e.jsxs("div",{className:"bg-white p-8 rounded-xl border border-gray-200 hover:border-gray-300 hover:shadow-lg transition-all duration-200",children:[m&&e.jsx("div",{className:"w-12 h-12 rounded-lg flex items-center justify-center mb-6",style:{backgroundColor:`${r}15`},children:e.jsx(l,{className:"w-6 h-6",style:{color:r}})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:t.title}),e.jsx("p",{className:"text-gray-600 leading-relaxed",children:t.description})]},i)})}),d==="list"&&e.jsx("div",{className:`space-y-4 transition-all duration-700 delay-200 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:p.map((t,i)=>{const l=x[t.icon]||c;return e.jsxs("div",{className:"bg-white p-6 rounded-xl border border-gray-200 hover:border-gray-300 hover:shadow-md transition-all duration-200 flex items-start gap-5",children:[m&&e.jsx("div",{className:"w-12 h-12 rounded-lg flex-shrink-0 flex items-center justify-center",style:{backgroundColor:`${r}15`},children:e.jsx(l,{className:"w-6 h-6",style:{color:r}})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-1",children:t.title}),e.jsx("p",{className:"text-gray-600 leading-relaxed",children:t.description})]})]},i)})}),d==="cards"&&e.jsx("div",{className:`grid grid-cols-1 ${o>=2?"sm:grid-cols-2":""} ${o>=3?"lg:grid-cols-3":""} ${o>=4?"xl:grid-cols-4":""} gap-6 sm:gap-8 transition-all duration-700 delay-200 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:p.map((t,i)=>{const l=x[t.icon]||c;return e.jsxs("div",{className:"bg-white rounded-xl shadow-md hover:shadow-xl transition-all duration-200 overflow-hidden",children:[e.jsx("div",{className:"h-2 w-full",style:{backgroundColor:r}}),e.jsxs("div",{className:"p-6",children:[m&&e.jsx("div",{className:"w-14 h-14 rounded-full flex items-center justify-center mb-4",style:{backgroundColor:`${r}15`},children:e.jsx(l,{className:"w-7 h-7",style:{color:r}})}),e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:t.title}),e.jsx("p",{className:"text-gray-600 text-sm leading-relaxed",children:t.description})]})]},i)})}),d==="alternating"&&e.jsx("div",{className:`space-y-6 transition-all duration-700 delay-200 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:p.map((t,i)=>{const l=x[t.icon]||c,g=i%2===0;return e.jsxs("div",{className:`flex flex-col lg:flex-row items-center gap-6 bg-white/15 backdrop-blur-sm border border-white/25 rounded-2xl p-6 hover:bg-white/25 transition-all duration-200 ${g?"":"lg:flex-row-reverse"}`,children:[m&&e.jsx("div",{className:"flex-shrink-0 w-16 h-16 rounded-xl flex items-center justify-center shadow-md",style:{backgroundColor:r},children:e.jsx(l,{className:"w-8 h-8 text-white"})}),e.jsxs("div",{className:`flex-1 ${g?"":"lg:text-right"}`,children:[e.jsx("h3",{className:"text-xl font-bold text-white mb-2",children:t.title}),e.jsx("p",{className:"text-white/80 leading-relaxed",children:t.description})]})]},i)})})]})})}export{le as default}; diff --git a/public/build/assets/Footer-DYzWJxz2.js b/public/build/assets/Footer-BEwrIUid.js similarity index 95% rename from public/build/assets/Footer-DYzWJxz2.js rename to public/build/assets/Footer-BEwrIUid.js index abeb4dfc5..ae6902bc9 100644 --- a/public/build/assets/Footer-DYzWJxz2.js +++ b/public/build/assets/Footer-BEwrIUid.js @@ -1 +1 @@ -import{j as e}from"./ui-Z445SNHD.js";import{u as L,c as F,b as T,d as C,g as k,t as n}from"./app-BSYHJZwU.js";import{M as I}from"./mail-DxVHYF7N.js";import{P as M}from"./phone-C6oVC2rb.js";import{M as E}from"./map-pin-IdpREju-.js";import{I as R,F as u}from"./instagram-C45NAPrj.js";import{L as S,T as A}from"./twitter-D-kIxaKd.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function K({settings:i,sectionData:l={},brandColor:g="#3b82f6"}){var x,h,p,f;const{t:r}=L(),{globalSettings:t}=F().props,y=new Date().getFullYear();t!=null&&t.themeMode;const j=(t==null?void 0:t.logoLight)||"logo/logo-light.png";t!=null&&t.logoDark;const{data:b,setData:N,post:w,processing:o,errors:m,reset:v}=T({email:""}),_=s=>{s.preventDefault(),n.loading(r("Subscribing to newsletter...")),w(route("landing-page.subscribe"),{onSuccess:a=>{v(),n.dismiss(),a.props.flash.success?n.success(r(a.props.flash.success)):a.props.flash.error&&n.error(r(a.props.flash.error))},onError:a=>{n.dismiss(),typeof a=="string"?n.error(r(a)):n.error(r("Failed to subscribe: {{errors}}",{errors:Object.values(a).join(", ")}))}})},c=l.links||{product:[{name:"Features",href:"#features"},{name:"Pricing",href:"#pricing"},{name:"Templates",href:"#"},{name:"Integrations",href:"#"}],company:[{name:"About Us",href:"#about"},{name:"Careers",href:"#"},{name:"Press",href:"#"},{name:"Contact",href:"#contact"}],support:[{name:"Help Center",href:"#"},{name:"Documentation",href:"#"},{name:"API Reference",href:"#"},{name:"Status",href:"#"}],legal:[{name:"Privacy Policy",href:"#"},{name:"Terms of Service",href:"#"},{name:"Cookie Policy",href:"#"},{name:"GDPR",href:"#"}]},P={Facebook:u,Twitter:A,Linkedin:S,Instagram:R},d=l.social_links||[{name:"Facebook",icon:"Facebook",href:"#"},{name:"Twitter",icon:"Twitter",href:"#"},{name:"LinkedIn",icon:"LinkedIn",href:"#"}];return e.jsx("footer",{className:"bg-gray-900 text-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx("div",{className:"py-12 sm:py-16",children:e.jsxs("div",{className:"grid lg:grid-cols-6 gap-8 sm:gap-12",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsxs(C,{href:"/",className:"flex items-center mb-6 hover:opacity-80 transition-opacity",children:[e.jsx("img",{src:k(j),alt:i.company_name,className:"h-8 w-auto",onError:s=>{var a;s.currentTarget.style.display="none",(a=s.currentTarget.nextElementSibling)==null||a.classList.remove("hidden")}}),e.jsx("span",{className:"hidden text-2xl font-bold text-white",children:i.company_name})]}),e.jsx("p",{className:"text-gray-400 mb-8 leading-relaxed",children:l.description||r("Simplifying HR management with an all-in-one modern platform. Connect, share, and grow your network effortlessly.")}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(I,{className:"w-4 h-4 text-gray-400"}),e.jsx("span",{className:"text-gray-400 text-sm",children:i.contact_email})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(M,{className:"w-4 h-4 text-gray-400"}),e.jsx("span",{className:"text-gray-400 text-sm",children:i.contact_phone})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(E,{className:"w-4 h-4 text-gray-400"}),e.jsx("span",{className:"text-gray-400 text-sm",children:i.contact_address})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-4",children:((x=l.section_titles)==null?void 0:x.product)||r("Product")}),e.jsx("ul",{className:"space-y-3",children:(c.product||[]).map(s=>e.jsx("li",{children:e.jsx("a",{href:s.href,className:"text-gray-400 hover:text-white transition-colors text-sm",children:s.name})},s.name))})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-4",children:((h=l.section_titles)==null?void 0:h.company)||r("Company")}),e.jsx("ul",{className:"space-y-3",children:(c.company||[]).map(s=>e.jsx("li",{children:e.jsx("a",{href:s.href,className:"text-gray-400 hover:text-white transition-colors text-sm",children:s.name})},s.name))})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-4",children:((p=l.section_titles)==null?void 0:p.support)||r("Support")}),e.jsx("ul",{className:"space-y-3",children:(c.support||[]).map(s=>e.jsx("li",{children:e.jsx("a",{href:s.href,className:"text-gray-400 hover:text-white transition-colors text-sm",children:s.name})},s.name))})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-4",children:((f=l.section_titles)==null?void 0:f.legal)||r("Legal")}),e.jsx("ul",{className:"space-y-3",children:(c.legal||[]).map(s=>e.jsx("li",{children:e.jsx("a",{href:s.href,className:"text-gray-400 hover:text-white transition-colors text-sm",children:s.name})},s.name))})]})]})}),(l.newsletter_title||l.newsletter_subtitle)&&e.jsx("div",{className:"border-t border-gray-800 py-8 sm:py-12",children:e.jsxs("div",{className:"text-center max-w-2xl mx-auto",children:[e.jsx("h3",{className:"text-xl font-bold text-white mb-4",children:l.newsletter_title||r("Stay Updated with Our Latest Features")}),e.jsx("p",{className:"text-gray-400 mb-6",children:l.newsletter_subtitle||r("Join our newsletter for HR tips and product updates")}),e.jsxs("form",{onSubmit:_,className:"flex flex-col sm:flex-row gap-4 max-w-md mx-auto",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("input",{type:"email",value:b.email,onChange:s=>N("email",s.target.value),placeholder:r("Enter your email"),className:"w-full px-4 py-3 bg-gray-800 border border-gray-700 rounded-lg text-white placeholder-gray-400 focus:ring-2 focus:ring-gray-600 focus:border-gray-600 disabled:opacity-50 disabled:cursor-not-allowed",required:!0,disabled:o}),m.email&&e.jsx("p",{className:"text-red-400 text-sm mt-1",children:m.email})]}),e.jsxs("button",{type:"submit",disabled:o,className:"cursor-pointer text-white px-6 py-3 rounded-lg transition-colors font-semibold disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2 min-w-[120px]",style:{backgroundColor:g},children:[o&&e.jsx("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),r(o?"Subscribing...":"Subscribe")]})]})]})}),e.jsx("div",{className:"border-t border-gray-800 py-4 sm:py-6",children:e.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-3 sm:gap-4",children:[e.jsx("div",{className:"text-gray-400 text-sm",children:(t==null?void 0:t.footerText)||`© ${y} ${i.company_name}. ${r("All rights reserved.")}.`}),d.length>0&&e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("span",{className:"text-gray-400 text-sm",children:r("Follow us:")}),e.jsx("div",{className:"flex gap-3",children:d.map(s=>{const a=P[s.icon]||u;return e.jsx("a",{href:s.href,className:"w-8 h-8 bg-gray-800 rounded-lg flex items-center justify-center hover:bg-gray-700 transition-colors","aria-label":s.name,children:e.jsx(a,{className:"w-4 h-4 text-gray-400"})},s.name)})})]})]})})]})})}export{K as default}; +import{j as e}from"./ui-Z445SNHD.js";import{u as L,c as F,b as T,d as C,g as k,t as n}from"./app-sDOUnh17.js";import{M as I}from"./mail-DeK8bIPR.js";import{P as M}from"./phone-CgD68jaL.js";import{M as E}from"./map-pin-M1W6OuY8.js";import{I as R,F as u}from"./instagram-C9DDA_wX.js";import{L as S,T as A}from"./twitter-CUSTR7Ss.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function K({settings:i,sectionData:l={},brandColor:g="#3b82f6"}){var x,h,p,f;const{t:r}=L(),{globalSettings:t}=F().props,y=new Date().getFullYear();t!=null&&t.themeMode;const j=(t==null?void 0:t.logoLight)||"logo/logo-light.png";t!=null&&t.logoDark;const{data:b,setData:N,post:w,processing:o,errors:m,reset:v}=T({email:""}),_=s=>{s.preventDefault(),n.loading(r("Subscribing to newsletter...")),w(route("landing-page.subscribe"),{onSuccess:a=>{v(),n.dismiss(),a.props.flash.success?n.success(r(a.props.flash.success)):a.props.flash.error&&n.error(r(a.props.flash.error))},onError:a=>{n.dismiss(),typeof a=="string"?n.error(r(a)):n.error(r("Failed to subscribe: {{errors}}",{errors:Object.values(a).join(", ")}))}})},c=l.links||{product:[{name:"Features",href:"#features"},{name:"Pricing",href:"#pricing"},{name:"Templates",href:"#"},{name:"Integrations",href:"#"}],company:[{name:"About Us",href:"#about"},{name:"Careers",href:"#"},{name:"Press",href:"#"},{name:"Contact",href:"#contact"}],support:[{name:"Help Center",href:"#"},{name:"Documentation",href:"#"},{name:"API Reference",href:"#"},{name:"Status",href:"#"}],legal:[{name:"Privacy Policy",href:"#"},{name:"Terms of Service",href:"#"},{name:"Cookie Policy",href:"#"},{name:"GDPR",href:"#"}]},P={Facebook:u,Twitter:A,Linkedin:S,Instagram:R},d=l.social_links||[{name:"Facebook",icon:"Facebook",href:"#"},{name:"Twitter",icon:"Twitter",href:"#"},{name:"LinkedIn",icon:"LinkedIn",href:"#"}];return e.jsx("footer",{className:"bg-gray-900 text-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx("div",{className:"py-12 sm:py-16",children:e.jsxs("div",{className:"grid lg:grid-cols-6 gap-8 sm:gap-12",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsxs(C,{href:"/",className:"flex items-center mb-6 hover:opacity-80 transition-opacity",children:[e.jsx("img",{src:k(j),alt:i.company_name,className:"h-8 w-auto",onError:s=>{var a;s.currentTarget.style.display="none",(a=s.currentTarget.nextElementSibling)==null||a.classList.remove("hidden")}}),e.jsx("span",{className:"hidden text-2xl font-bold text-white",children:i.company_name})]}),e.jsx("p",{className:"text-gray-400 mb-8 leading-relaxed",children:l.description||r("Simplifying HR management with an all-in-one modern platform. Connect, share, and grow your network effortlessly.")}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(I,{className:"w-4 h-4 text-gray-400"}),e.jsx("span",{className:"text-gray-400 text-sm",children:i.contact_email})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(M,{className:"w-4 h-4 text-gray-400"}),e.jsx("span",{className:"text-gray-400 text-sm",children:i.contact_phone})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(E,{className:"w-4 h-4 text-gray-400"}),e.jsx("span",{className:"text-gray-400 text-sm",children:i.contact_address})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-4",children:((x=l.section_titles)==null?void 0:x.product)||r("Product")}),e.jsx("ul",{className:"space-y-3",children:(c.product||[]).map(s=>e.jsx("li",{children:e.jsx("a",{href:s.href,className:"text-gray-400 hover:text-white transition-colors text-sm",children:s.name})},s.name))})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-4",children:((h=l.section_titles)==null?void 0:h.company)||r("Company")}),e.jsx("ul",{className:"space-y-3",children:(c.company||[]).map(s=>e.jsx("li",{children:e.jsx("a",{href:s.href,className:"text-gray-400 hover:text-white transition-colors text-sm",children:s.name})},s.name))})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-4",children:((p=l.section_titles)==null?void 0:p.support)||r("Support")}),e.jsx("ul",{className:"space-y-3",children:(c.support||[]).map(s=>e.jsx("li",{children:e.jsx("a",{href:s.href,className:"text-gray-400 hover:text-white transition-colors text-sm",children:s.name})},s.name))})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-4",children:((f=l.section_titles)==null?void 0:f.legal)||r("Legal")}),e.jsx("ul",{className:"space-y-3",children:(c.legal||[]).map(s=>e.jsx("li",{children:e.jsx("a",{href:s.href,className:"text-gray-400 hover:text-white transition-colors text-sm",children:s.name})},s.name))})]})]})}),(l.newsletter_title||l.newsletter_subtitle)&&e.jsx("div",{className:"border-t border-gray-800 py-8 sm:py-12",children:e.jsxs("div",{className:"text-center max-w-2xl mx-auto",children:[e.jsx("h3",{className:"text-xl font-bold text-white mb-4",children:l.newsletter_title||r("Stay Updated with Our Latest Features")}),e.jsx("p",{className:"text-gray-400 mb-6",children:l.newsletter_subtitle||r("Join our newsletter for HR tips and product updates")}),e.jsxs("form",{onSubmit:_,className:"flex flex-col sm:flex-row gap-4 max-w-md mx-auto",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("input",{type:"email",value:b.email,onChange:s=>N("email",s.target.value),placeholder:r("Enter your email"),className:"w-full px-4 py-3 bg-gray-800 border border-gray-700 rounded-lg text-white placeholder-gray-400 focus:ring-2 focus:ring-gray-600 focus:border-gray-600 disabled:opacity-50 disabled:cursor-not-allowed",required:!0,disabled:o}),m.email&&e.jsx("p",{className:"text-red-400 text-sm mt-1",children:m.email})]}),e.jsxs("button",{type:"submit",disabled:o,className:"cursor-pointer text-white px-6 py-3 rounded-lg transition-colors font-semibold disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2 min-w-[120px]",style:{backgroundColor:g},children:[o&&e.jsx("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),r(o?"Subscribing...":"Subscribe")]})]})]})}),e.jsx("div",{className:"border-t border-gray-800 py-4 sm:py-6",children:e.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-3 sm:gap-4",children:[e.jsx("div",{className:"text-gray-400 text-sm",children:(t==null?void 0:t.footerText)||`© ${y} ${i.company_name}. ${r("All rights reserved.")}.`}),d.length>0&&e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("span",{className:"text-gray-400 text-sm",children:r("Follow us:")}),e.jsx("div",{className:"flex gap-3",children:d.map(s=>{const a=P[s.icon]||u;return e.jsx("a",{href:s.href,className:"w-8 h-8 bg-gray-800 rounded-lg flex items-center justify-center hover:bg-gray-700 transition-colors","aria-label":s.name,children:e.jsx(a,{className:"w-4 h-4 text-gray-400"})},s.name)})})]})]})})]})})}export{K as default}; diff --git a/public/build/assets/Header-DSpFBPRg.js b/public/build/assets/Header-CmqM50N6.js similarity index 97% rename from public/build/assets/Header-DSpFBPRg.js rename to public/build/assets/Header-CmqM50N6.js index ab12a4e6c..016646077 100644 --- a/public/build/assets/Header-DSpFBPRg.js +++ b/public/build/assets/Header-CmqM50N6.js @@ -1 +1 @@ -import{r as b,j as r}from"./ui-Z445SNHD.js";import{u as C,c as H,O as I,Q as z,d as a,g as F,i as N,X as G}from"./app-BSYHJZwU.js";import{M as P}from"./menu-D0MrC3-G.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function q({settings:y,sectionData:s,customPages:w=[],brandColor:t="#3b82f6"}){var M;const{t:i}=C(),[u,h]=b.useState(!1),[p,T]=b.useState(!1),{props:g}=H(),j=(M=g.globalSettings)==null?void 0:M.is_saas,d=g.auth,x=g.globalSettings||{},E=I(g),L=x.logoLight||"logo/logo-light.png",S=x.logoDark||"logo/logo-dark.png";let m="light";if(E){const e=z("themeSettings");if(e)try{m=JSON.parse(e).appearance||"light"}catch{m="light"}}else m=x.themeMode||"light";const c=m==="dark";b.useEffect(()=>{const e=()=>{T(window.scrollY>20)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]);const v=w.map(e=>({name:e.title,href:route("custom-page.show",e.slug)})),f=s==null?void 0:s.transparent,k=(s==null?void 0:s.background_color)||"#ffffff",O=(s==null?void 0:s.button_style)||"filled",o=(s==null?void 0:s.text_color)||""||(c?"#d1d5db":"#4b5563"),l=e=>O==="outline"?e?{backgroundColor:t,color:"white",borderColor:t}:{backgroundColor:"transparent",color:t,borderColor:t}:e?{backgroundColor:"white",color:t,borderColor:t}:{backgroundColor:t,color:"white",borderColor:t},$=()=>f?p?`bg-white/95 ${c?"dark:bg-gray-900/95":""} backdrop-blur-xl shadow-lg border-b border-gray-200/50 ${c?"dark:border-gray-700/50":""}`:"bg-transparent":p?`shadow-lg border-b border-gray-200/50 ${c?"dark:border-gray-700/50":""}`:"",_=()=>f?{}:{backgroundColor:k};return r.jsx("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${$()}`,style:_(),children:r.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[r.jsxs("div",{className:"flex justify-between items-center h-16",children:[r.jsx("div",{className:"flex-shrink-0",children:r.jsxs(a,{href:route("home"),className:"flex items-center",children:[r.jsx("img",{src:F(c?L:S),alt:y.company_name,className:"h-8 w-auto",onError:e=>{var n;e.currentTarget.style.display="none",(n=e.currentTarget.nextElementSibling)==null||n.classList.remove("hidden")}}),r.jsx("span",{className:`hidden text-2xl font-bold ${c?"text-white":"text-gray-900"} transition-colors`,children:y.company_name})]})}),r.jsxs("nav",{className:"hidden md:flex items-center space-x-8",role:"navigation","aria-label":"Main navigation",children:[r.jsxs(a,{href:route("home"),className:"text-sm font-medium transition-colors relative group",style:{color:o},onMouseEnter:e=>e.currentTarget.style.color=t,onMouseLeave:e=>e.currentTarget.style.color=o,children:[i("Home"),r.jsx("span",{className:"absolute -bottom-1 left-0 w-0 h-0.5 transition-all group-hover:w-full",style:{backgroundColor:t},"aria-hidden":"true"})]}),v.map(e=>r.jsxs(a,{href:e.href,className:"text-sm font-medium transition-colors relative group",style:{color:o},onMouseEnter:n=>n.currentTarget.style.color=t,onMouseLeave:n=>n.currentTarget.style.color=o,children:[e.name,r.jsx("span",{className:"absolute -bottom-1 left-0 w-0 h-0.5 transition-all group-hover:w-full",style:{backgroundColor:t},"aria-hidden":"true"})]},e.name))]}),r.jsx("div",{className:"hidden md:flex items-center gap-4",children:d!=null&&d.user?r.jsx(a,{href:route("dashboard"),className:"px-6 py-2.5 rounded-lg text-sm font-semibold transition-colors border",style:l(!1),onMouseEnter:e=>Object.assign(e.currentTarget.style,l(!0)),onMouseLeave:e=>Object.assign(e.currentTarget.style,l(!1)),children:i("Dashboard")}):r.jsxs(r.Fragment,{children:[r.jsx(a,{href:route("login"),className:"text-sm font-medium transition-colors",style:{color:o},onMouseEnter:e=>e.currentTarget.style.color=t,onMouseLeave:e=>e.currentTarget.style.color=o,children:i("Login")}),j&&N()&&r.jsx(a,{href:route("register"),className:"px-6 py-2.5 rounded-lg text-sm font-semibold transition-colors border",style:l(!1),onMouseEnter:e=>Object.assign(e.currentTarget.style,l(!0)),onMouseLeave:e=>Object.assign(e.currentTarget.style,l(!1)),children:i("Get Started")})]})}),r.jsx("div",{className:"md:hidden",children:r.jsx("button",{onClick:()=>h(!u),className:`p-2 ${c?"text-gray-300 hover:text-white hover:bg-gray-800":"text-gray-600 hover:text-gray-900 hover:bg-gray-100"} rounded-lg transition-colors`,"aria-label":u?"Close navigation menu":"Open navigation menu","aria-expanded":u,"aria-controls":"mobile-menu",children:u?r.jsx(G,{size:20}):r.jsx(P,{size:20})})})]}),u&&r.jsx("div",{className:`md:hidden border-t ${c?"border-gray-700":"border-gray-200"}`,id:"mobile-menu",children:r.jsxs("div",{className:`px-4 py-6 space-y-4 ${c?"bg-gray-900":"bg-white"}`,style:f?{}:{backgroundColor:k},children:[r.jsx(a,{href:route("home"),className:"block text-base font-medium transition-colors",style:{color:o},onClick:()=>h(!1),onMouseEnter:e=>e.currentTarget.style.color=t,onMouseLeave:e=>e.currentTarget.style.color=o,children:i("Home")}),v.map(e=>r.jsx(a,{href:e.href,className:"block text-base font-medium transition-colors",style:{color:o},onClick:()=>h(!1),onMouseEnter:n=>n.currentTarget.style.color=t,onMouseLeave:n=>n.currentTarget.style.color=o,children:e.name},e.name)),r.jsx("div",{className:`pt-4 space-y-3 border-t ${c?"border-gray-700":"border-gray-200"}`,children:d!=null&&d.user?r.jsx(a,{href:route("dashboard"),className:"block w-full text-center py-2.5 rounded-lg text-sm font-semibold transition-colors border",style:l(!1),onMouseEnter:e=>Object.assign(e.currentTarget.style,l(!0)),onMouseLeave:e=>Object.assign(e.currentTarget.style,l(!1)),children:i("Dashboard")}):r.jsxs(r.Fragment,{children:[r.jsx(a,{href:route("login"),className:"block w-full text-center py-2.5 text-sm font-medium transition-colors",style:{color:o},onMouseEnter:e=>e.currentTarget.style.color=t,onMouseLeave:e=>e.currentTarget.style.color=o,children:i("Login")}),j&&N()&&r.jsx(a,{href:route("register"),className:"block w-full text-center py-2.5 rounded-lg text-sm font-semibold transition-colors border",style:l(!1),onMouseEnter:e=>Object.assign(e.currentTarget.style,l(!0)),onMouseLeave:e=>Object.assign(e.currentTarget.style,l(!1)),children:i("Get Started")})]})})]})})]})})}export{q as default}; +import{r as b,j as r}from"./ui-Z445SNHD.js";import{u as C,c as H,O as I,Q as z,d as a,g as F,i as N,X as G}from"./app-sDOUnh17.js";import{M as P}from"./menu-B-BT0CdI.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function q({settings:y,sectionData:s,customPages:w=[],brandColor:t="#3b82f6"}){var M;const{t:i}=C(),[u,h]=b.useState(!1),[p,T]=b.useState(!1),{props:g}=H(),j=(M=g.globalSettings)==null?void 0:M.is_saas,d=g.auth,x=g.globalSettings||{},E=I(g),L=x.logoLight||"logo/logo-light.png",S=x.logoDark||"logo/logo-dark.png";let m="light";if(E){const e=z("themeSettings");if(e)try{m=JSON.parse(e).appearance||"light"}catch{m="light"}}else m=x.themeMode||"light";const c=m==="dark";b.useEffect(()=>{const e=()=>{T(window.scrollY>20)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]);const v=w.map(e=>({name:e.title,href:route("custom-page.show",e.slug)})),f=s==null?void 0:s.transparent,k=(s==null?void 0:s.background_color)||"#ffffff",O=(s==null?void 0:s.button_style)||"filled",o=(s==null?void 0:s.text_color)||""||(c?"#d1d5db":"#4b5563"),l=e=>O==="outline"?e?{backgroundColor:t,color:"white",borderColor:t}:{backgroundColor:"transparent",color:t,borderColor:t}:e?{backgroundColor:"white",color:t,borderColor:t}:{backgroundColor:t,color:"white",borderColor:t},$=()=>f?p?`bg-white/95 ${c?"dark:bg-gray-900/95":""} backdrop-blur-xl shadow-lg border-b border-gray-200/50 ${c?"dark:border-gray-700/50":""}`:"bg-transparent":p?`shadow-lg border-b border-gray-200/50 ${c?"dark:border-gray-700/50":""}`:"",_=()=>f?{}:{backgroundColor:k};return r.jsx("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${$()}`,style:_(),children:r.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[r.jsxs("div",{className:"flex justify-between items-center h-16",children:[r.jsx("div",{className:"flex-shrink-0",children:r.jsxs(a,{href:route("home"),className:"flex items-center",children:[r.jsx("img",{src:F(c?L:S),alt:y.company_name,className:"h-8 w-auto",onError:e=>{var n;e.currentTarget.style.display="none",(n=e.currentTarget.nextElementSibling)==null||n.classList.remove("hidden")}}),r.jsx("span",{className:`hidden text-2xl font-bold ${c?"text-white":"text-gray-900"} transition-colors`,children:y.company_name})]})}),r.jsxs("nav",{className:"hidden md:flex items-center space-x-8",role:"navigation","aria-label":"Main navigation",children:[r.jsxs(a,{href:route("home"),className:"text-sm font-medium transition-colors relative group",style:{color:o},onMouseEnter:e=>e.currentTarget.style.color=t,onMouseLeave:e=>e.currentTarget.style.color=o,children:[i("Home"),r.jsx("span",{className:"absolute -bottom-1 left-0 w-0 h-0.5 transition-all group-hover:w-full",style:{backgroundColor:t},"aria-hidden":"true"})]}),v.map(e=>r.jsxs(a,{href:e.href,className:"text-sm font-medium transition-colors relative group",style:{color:o},onMouseEnter:n=>n.currentTarget.style.color=t,onMouseLeave:n=>n.currentTarget.style.color=o,children:[e.name,r.jsx("span",{className:"absolute -bottom-1 left-0 w-0 h-0.5 transition-all group-hover:w-full",style:{backgroundColor:t},"aria-hidden":"true"})]},e.name))]}),r.jsx("div",{className:"hidden md:flex items-center gap-4",children:d!=null&&d.user?r.jsx(a,{href:route("dashboard"),className:"px-6 py-2.5 rounded-lg text-sm font-semibold transition-colors border",style:l(!1),onMouseEnter:e=>Object.assign(e.currentTarget.style,l(!0)),onMouseLeave:e=>Object.assign(e.currentTarget.style,l(!1)),children:i("Dashboard")}):r.jsxs(r.Fragment,{children:[r.jsx(a,{href:route("login"),className:"text-sm font-medium transition-colors",style:{color:o},onMouseEnter:e=>e.currentTarget.style.color=t,onMouseLeave:e=>e.currentTarget.style.color=o,children:i("Login")}),j&&N()&&r.jsx(a,{href:route("register"),className:"px-6 py-2.5 rounded-lg text-sm font-semibold transition-colors border",style:l(!1),onMouseEnter:e=>Object.assign(e.currentTarget.style,l(!0)),onMouseLeave:e=>Object.assign(e.currentTarget.style,l(!1)),children:i("Get Started")})]})}),r.jsx("div",{className:"md:hidden",children:r.jsx("button",{onClick:()=>h(!u),className:`p-2 ${c?"text-gray-300 hover:text-white hover:bg-gray-800":"text-gray-600 hover:text-gray-900 hover:bg-gray-100"} rounded-lg transition-colors`,"aria-label":u?"Close navigation menu":"Open navigation menu","aria-expanded":u,"aria-controls":"mobile-menu",children:u?r.jsx(G,{size:20}):r.jsx(P,{size:20})})})]}),u&&r.jsx("div",{className:`md:hidden border-t ${c?"border-gray-700":"border-gray-200"}`,id:"mobile-menu",children:r.jsxs("div",{className:`px-4 py-6 space-y-4 ${c?"bg-gray-900":"bg-white"}`,style:f?{}:{backgroundColor:k},children:[r.jsx(a,{href:route("home"),className:"block text-base font-medium transition-colors",style:{color:o},onClick:()=>h(!1),onMouseEnter:e=>e.currentTarget.style.color=t,onMouseLeave:e=>e.currentTarget.style.color=o,children:i("Home")}),v.map(e=>r.jsx(a,{href:e.href,className:"block text-base font-medium transition-colors",style:{color:o},onClick:()=>h(!1),onMouseEnter:n=>n.currentTarget.style.color=t,onMouseLeave:n=>n.currentTarget.style.color=o,children:e.name},e.name)),r.jsx("div",{className:`pt-4 space-y-3 border-t ${c?"border-gray-700":"border-gray-200"}`,children:d!=null&&d.user?r.jsx(a,{href:route("dashboard"),className:"block w-full text-center py-2.5 rounded-lg text-sm font-semibold transition-colors border",style:l(!1),onMouseEnter:e=>Object.assign(e.currentTarget.style,l(!0)),onMouseLeave:e=>Object.assign(e.currentTarget.style,l(!1)),children:i("Dashboard")}):r.jsxs(r.Fragment,{children:[r.jsx(a,{href:route("login"),className:"block w-full text-center py-2.5 text-sm font-medium transition-colors",style:{color:o},onMouseEnter:e=>e.currentTarget.style.color=t,onMouseLeave:e=>e.currentTarget.style.color=o,children:i("Login")}),j&&N()&&r.jsx(a,{href:route("register"),className:"block w-full text-center py-2.5 rounded-lg text-sm font-semibold transition-colors border",style:l(!1),onMouseEnter:e=>Object.assign(e.currentTarget.style,l(!0)),onMouseLeave:e=>Object.assign(e.currentTarget.style,l(!1)),children:i("Get Started")})]})})]})})]})})}export{q as default}; diff --git a/public/build/assets/HeroSection-DA1v_MUl.js b/public/build/assets/HeroSection-bvc33kmm.js similarity index 96% rename from public/build/assets/HeroSection-DA1v_MUl.js rename to public/build/assets/HeroSection-bvc33kmm.js index a54f18cc8..c49b73dee 100644 --- a/public/build/assets/HeroSection-DA1v_MUl.js +++ b/public/build/assets/HeroSection-bvc33kmm.js @@ -1 +1 @@ -import{j as e}from"./ui-Z445SNHD.js";import{u as $,c as M,O as R,Q as P,i as T,d as j,g as z}from"./app-BSYHJZwU.js";import{A as H}from"./arrow-right-DUqjyG5g.js";import{P as I}from"./play-Bcyp9ITy.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function J({settings:L,sectionData:t,brandColor:r="#3b82f6"}){const{t:i}=$(),{globalSettings:l}=M().props,v=l==null?void 0:l.is_saas,w=R();let n="light";if(w){const s=P("themeSettings");if(s)try{n=JSON.parse(s).appearance||"light"}catch{n="light"}}else n=(l==null?void 0:l.themeMode)||"light";const m=n==="dark",N=t.background_color||(m?"#111827":"#f9fafb"),x=t.text_color||(m?"#ffffff":"#111827"),f=t.text_color||(m?"#d1d5db":"#4b5563"),k=t.height?`${t.height}px`:"100vh",o=t.layout||"image-right",h=t.overlay===!0,p=t.overlay_color||"rgba(0,0,0,0.45)",a=t.image_position||"center",y=s=>s?s.startsWith("/screenshots/")?`${window.appSettings.imageUrl}${s}`:z(s):null,g=y(t.image),u=y(l!=null&&l.is_saas?"/screenshots/saas/hero-default.png":"/screenshots/non-saas/hero-default.png"),c=e.jsxs("div",{className:`space-y-6 sm:space-y-8 ${o==="centered"||o==="full-width"?"text-center":"text-center lg:text-left"}`,children:[t.announcement_text&&e.jsx("div",{className:"inline-flex items-center px-4 py-2 rounded-full text-sm font-medium border",style:{borderColor:r,color:r,backgroundColor:`${r}15`},children:t.announcement_text}),e.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold leading-tight",style:{color:x},role:"banner","aria-label":"Main heading",children:t.title||i("Create Your Digital Business Card")}),e.jsx("p",{className:`text-lg md:text-xl leading-relaxed font-medium ${o==="centered"||o==="full-width"?"mx-auto max-w-2xl":"max-w-2xl"}`,style:{color:f,opacity:.85},children:t.subtitle||i("Manage employees, payroll, attendance, and more in one powerful platform.")}),e.jsxs("div",{className:`flex flex-col sm:flex-row gap-3 sm:gap-4 ${o==="centered"||o==="full-width"?"justify-center":"justify-center lg:justify-start"}`,children:[v&&T()&&e.jsxs(j,{href:route("register"),className:"px-8 py-4 rounded-lg transition-all font-semibold text-base flex items-center justify-center gap-2 border",style:{backgroundColor:r,color:"white",borderColor:r},onMouseEnter:s=>{s.currentTarget.style.backgroundColor="white",s.currentTarget.style.color=r},onMouseLeave:s=>{s.currentTarget.style.backgroundColor=r,s.currentTarget.style.color="white"},"aria-label":"Start free trial - Register for HRM",children:[t.primary_button_text||i("Start Free Trial"),e.jsx(H,{size:18})]}),e.jsxs(j,{href:route("login"),className:"border px-8 py-4 rounded-lg transition-colors font-semibold text-base flex items-center justify-center gap-2 hover:bg-white/10",style:{borderColor:r,color:r},"aria-label":"Login to existing HRM account",children:[e.jsx(I,{size:18}),t.secondary_button_text||i("Login")]})]}),t.stats&&t.stats.length>0&&e.jsx("div",{className:`grid grid-cols-3 gap-4 sm:gap-6 lg:gap-8 pt-8 sm:pt-12 ${o==="centered"||o==="full-width"?"max-w-lg mx-auto":""}`,children:t.stats.map((s,b)=>e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-3xl md:text-4xl font-bold",style:{color:x},children:s.value}),e.jsx("div",{className:"text-sm font-medium",style:{color:f,opacity:.8},children:s.label})]},b))})]}),_=a==="left"?"mr-auto":a==="right"?"ml-auto":"mx-auto",d=a==="background"?null:e.jsxs("div",{className:`relative ${_}`,children:[e.jsx("img",{src:g||u,alt:"Hero",className:"w-full h-auto rounded-2xl shadow-xl"}),e.jsx("div",{className:"absolute -top-4 -right-4 w-16 h-16 bg-gray-200 rounded-full opacity-50"}),e.jsx("div",{className:"absolute -bottom-4 -left-4 w-12 h-12 bg-gray-300 rounded-full opacity-40"})]}),C=()=>{switch(o){case"centered":return e.jsxs("div",{className:"flex flex-col items-center gap-10",children:[c,e.jsx("div",{className:"w-full max-w-3xl",children:d})]});case"full-width":return e.jsxs("div",{className:"flex flex-col gap-10",children:[c,e.jsx("div",{className:"w-full",children:d})]});case"image-left":return e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 sm:gap-12 lg:gap-16 items-center",children:[d,c]});case"image-right":default:return e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 sm:gap-12 lg:gap-16 items-center",children:[c,d]})}};return e.jsxs("section",{id:"hero",className:"pt-16 flex items-center relative",style:{backgroundColor:h?p:N,minHeight:k,...a==="background"&&(g||u)?{backgroundImage:`url(${g||u})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}},children:[h&&a==="background"&&e.jsx("div",{className:"absolute inset-0 z-0",style:{backgroundColor:p}}),e.jsx("div",{className:"relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12 sm:py-16 lg:py-20 w-full",children:C()})]})}export{J as default}; +import{j as e}from"./ui-Z445SNHD.js";import{u as $,c as M,O as R,Q as P,i as T,d as j,g as z}from"./app-sDOUnh17.js";import{A as H}from"./arrow-right-9tTXNXlb.js";import{P as I}from"./play-B4Idjg2U.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function J({settings:L,sectionData:t,brandColor:r="#3b82f6"}){const{t:i}=$(),{globalSettings:l}=M().props,v=l==null?void 0:l.is_saas,w=R();let n="light";if(w){const s=P("themeSettings");if(s)try{n=JSON.parse(s).appearance||"light"}catch{n="light"}}else n=(l==null?void 0:l.themeMode)||"light";const m=n==="dark",N=t.background_color||(m?"#111827":"#f9fafb"),x=t.text_color||(m?"#ffffff":"#111827"),f=t.text_color||(m?"#d1d5db":"#4b5563"),k=t.height?`${t.height}px`:"100vh",o=t.layout||"image-right",h=t.overlay===!0,p=t.overlay_color||"rgba(0,0,0,0.45)",a=t.image_position||"center",y=s=>s?s.startsWith("/screenshots/")?`${window.appSettings.imageUrl}${s}`:z(s):null,g=y(t.image),u=y(l!=null&&l.is_saas?"/screenshots/saas/hero-default.png":"/screenshots/non-saas/hero-default.png"),c=e.jsxs("div",{className:`space-y-6 sm:space-y-8 ${o==="centered"||o==="full-width"?"text-center":"text-center lg:text-left"}`,children:[t.announcement_text&&e.jsx("div",{className:"inline-flex items-center px-4 py-2 rounded-full text-sm font-medium border",style:{borderColor:r,color:r,backgroundColor:`${r}15`},children:t.announcement_text}),e.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold leading-tight",style:{color:x},role:"banner","aria-label":"Main heading",children:t.title||i("Create Your Digital Business Card")}),e.jsx("p",{className:`text-lg md:text-xl leading-relaxed font-medium ${o==="centered"||o==="full-width"?"mx-auto max-w-2xl":"max-w-2xl"}`,style:{color:f,opacity:.85},children:t.subtitle||i("Manage employees, payroll, attendance, and more in one powerful platform.")}),e.jsxs("div",{className:`flex flex-col sm:flex-row gap-3 sm:gap-4 ${o==="centered"||o==="full-width"?"justify-center":"justify-center lg:justify-start"}`,children:[v&&T()&&e.jsxs(j,{href:route("register"),className:"px-8 py-4 rounded-lg transition-all font-semibold text-base flex items-center justify-center gap-2 border",style:{backgroundColor:r,color:"white",borderColor:r},onMouseEnter:s=>{s.currentTarget.style.backgroundColor="white",s.currentTarget.style.color=r},onMouseLeave:s=>{s.currentTarget.style.backgroundColor=r,s.currentTarget.style.color="white"},"aria-label":"Start free trial - Register for HRM",children:[t.primary_button_text||i("Start Free Trial"),e.jsx(H,{size:18})]}),e.jsxs(j,{href:route("login"),className:"border px-8 py-4 rounded-lg transition-colors font-semibold text-base flex items-center justify-center gap-2 hover:bg-white/10",style:{borderColor:r,color:r},"aria-label":"Login to existing HRM account",children:[e.jsx(I,{size:18}),t.secondary_button_text||i("Login")]})]}),t.stats&&t.stats.length>0&&e.jsx("div",{className:`grid grid-cols-3 gap-4 sm:gap-6 lg:gap-8 pt-8 sm:pt-12 ${o==="centered"||o==="full-width"?"max-w-lg mx-auto":""}`,children:t.stats.map((s,b)=>e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-3xl md:text-4xl font-bold",style:{color:x},children:s.value}),e.jsx("div",{className:"text-sm font-medium",style:{color:f,opacity:.8},children:s.label})]},b))})]}),_=a==="left"?"mr-auto":a==="right"?"ml-auto":"mx-auto",d=a==="background"?null:e.jsxs("div",{className:`relative ${_}`,children:[e.jsx("img",{src:g||u,alt:"Hero",className:"w-full h-auto rounded-2xl shadow-xl"}),e.jsx("div",{className:"absolute -top-4 -right-4 w-16 h-16 bg-gray-200 rounded-full opacity-50"}),e.jsx("div",{className:"absolute -bottom-4 -left-4 w-12 h-12 bg-gray-300 rounded-full opacity-40"})]}),C=()=>{switch(o){case"centered":return e.jsxs("div",{className:"flex flex-col items-center gap-10",children:[c,e.jsx("div",{className:"w-full max-w-3xl",children:d})]});case"full-width":return e.jsxs("div",{className:"flex flex-col gap-10",children:[c,e.jsx("div",{className:"w-full",children:d})]});case"image-left":return e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 sm:gap-12 lg:gap-16 items-center",children:[d,c]});case"image-right":default:return e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 sm:gap-12 lg:gap-16 items-center",children:[c,d]})}};return e.jsxs("section",{id:"hero",className:"pt-16 flex items-center relative",style:{backgroundColor:h?p:N,minHeight:k,...a==="background"&&(g||u)?{backgroundImage:`url(${g||u})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}},children:[h&&a==="background"&&e.jsx("div",{className:"absolute inset-0 z-0",style:{backgroundColor:p}}),e.jsx("div",{className:"relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12 sm:py-16 lg:py-20 w-full",children:C()})]})}export{J as default}; diff --git a/public/build/assets/ImportModal-B8aH6xsY.js b/public/build/assets/ImportModal-B_zOuLRY.js similarity index 96% rename from public/build/assets/ImportModal-B8aH6xsY.js rename to public/build/assets/ImportModal-B_zOuLRY.js index 8dc7797f8..b34509d6e 100644 --- a/public/build/assets/ImportModal-B8aH6xsY.js +++ b/public/build/assets/ImportModal-B_zOuLRY.js @@ -1 +1 @@ -import{r as x,j as e}from"./ui-Z445SNHD.js";import{u as O,D as P,h as R,j as T,k as U,q as A,o as k,t as r,r as G,c as K,L as W,I as $}from"./app-BSYHJZwU.js";import{S as J,a as Q,b as Y,c as Z,d as L}from"./select-CbXk1R0B.js";import{A as ee,a as se}from"./alert-D597ov4s.js";import{I as te}from"./info-CUVFT_b2.js";import{D as ae}from"./download-L-j3Hs25.js";function re({isOpen:w,onClose:b,excelColumns:g,databaseFields:h,importRoute:_,data:u,previewData:C=[]}){const{t:o}=O(),[c,n]=x.useState({}),[i,y]=x.useState(!1);x.useEffect(()=>{if(w&&g.length>0){const a={};h.forEach(t=>{const l=g.find(s=>s.toLowerCase().replace(/[_\s]/g,"")===t.key.toLowerCase().replace(/[_\s]/g,""));l&&(a[t.key]=l)}),n(a)}},[w,g,h]);const N=()=>{if(!u||u.length===0){r.error(o("No data available for import"));return}const t=h.filter(s=>s.required).filter(s=>!c[s.key]);if(t.length>0){r.error(o("Please map all required fields: {{fields}}",{fields:t.map(s=>s.key).join(", ")}));return}const l=(u||[]).map(s=>{const f={};return Object.entries(c).forEach(([D,I])=>{f[D]=s[I]}),f});y(!0),r.loading(o("Importing...")),G.post(route(_),{data:l},{preserveState:!0,onSuccess:s=>{b(),y(!1),r.dismiss(),s.props.flash.success?r.success(o(s.props.flash.success)):s.props.flash.error&&r.error(o(s.props.flash.error))},onError:s=>{y(!1),r.dismiss(),typeof s=="string"?r.error(s):r.error(o("Failed to import"))}})};return e.jsx(P,{open:w,onOpenChange:a=>!a&&b(),modal:!1,children:e.jsxs(R,{className:"max-w-7xl max-h-[85vh] overflow-hidden flex flex-col",children:[e.jsx(T,{children:e.jsx(U,{children:o("Map Columns")})}),e.jsxs(ee,{className:"bg-amber-50 border-amber-200",children:[e.jsx(te,{className:"h-4 w-4 text-amber-600"}),e.jsx(se,{className:"text-amber-800",children:o("Map your CSV columns to database fields")})]}),e.jsxs("div",{className:"flex-1 overflow-auto",children:[e.jsx("h3",{className:"text-base font-semibold mb-3",children:o("Column Mapping & Preview")}),e.jsx("div",{className:"border rounded-lg overflow-x-auto",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"bg-gray-50 border-b sticky top-0",children:e.jsx("tr",{children:h.map(a=>e.jsx("th",{className:"px-4 py-3 text-left font-medium text-gray-700 min-w-[180px]",children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"text-sm font-semibold",children:[a.key.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase()),a.required&&e.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),e.jsxs(J,{value:c[a.key]||"__unselect__",onValueChange:t=>{n(l=>{const s={...l};return t==="__unselect__"?delete s[a.key]:(Object.keys(s).forEach(f=>{s[f]===t&&delete s[f]}),s[a.key]=t),s})},children:[e.jsx(Q,{className:"h-9 text-sm w-full bg-white",children:e.jsx(Y,{placeholder:o("Select...")})}),e.jsxs(Z,{position:"popper",className:"z-[9999]",children:[e.jsx(L,{value:"__unselect__",children:o("-- Not Mapped --")}),g.map(t=>{const l=Object.values(c).includes(t)&&c[a.key]!==t;return e.jsx(L,{value:t,disabled:l,children:t},t)})]})]})]})},a.key))})}),e.jsx("tbody",{children:C.map((a,t)=>e.jsx("tr",{className:"border-b hover:bg-gray-50",children:h.map(l=>e.jsx("td",{className:"px-4 py-3 text-gray-700 text-sm",children:e.jsx("div",{className:"truncate max-w-[200px]",title:c[l.key]?a[c[l.key]]:"",children:c[l.key]?a[c[l.key]]||e.jsx("span",{className:"text-gray-400 italic text-xs",children:"empty"}):e.jsx("span",{className:"text-gray-400",children:"-"})})},l.key))},t))})]})}),e.jsx("p",{className:"text-sm text-gray-500 mt-3",children:o("Showing all {{count}} rows",{count:C.length})})]}),e.jsxs(A,{children:[e.jsx(k,{type:"button",variant:"outline",onClick:b,disabled:i,children:o("Back")}),e.jsx(k,{type:"button",onClick:N,disabled:i,children:o("Import Data")})]})]})})}function me({isOpen:w,onClose:b,title:g,importRoute:h,parseRoute:_,sampleRoute:u,importNotes:C,databaseFields:o,modalSize:c="lg"}){const{t:n}=O(),{globalSettings:i}=K().props,[y,N]=x.useState(null),[a,t]=x.useState(!1),[l,s]=x.useState(!1),[f,D]=x.useState([]),[I,M]=x.useState([]),[z,q]=x.useState([]),V=async()=>{if(u)try{const p=await fetch(route(u),{method:"GET",headers:{"X-Requested-With":"XMLHttpRequest"}});if(!p.ok){const S=await p.json().catch(()=>({}));r.error(n(S.error||"Failed to download template"));return}const j=await p.blob(),v=window.URL.createObjectURL(j),d=document.createElement("a");d.href=v;const m=p.headers.get("Content-Disposition");let F="sample-template.xlsx";if(m){const S=m.match(/filename="?(.+?)"?$/i);S&&(F=S[1])}d.download=F,document.body.appendChild(d),d.click(),window.URL.revokeObjectURL(v),document.body.removeChild(d)}catch{r.error(n("Failed to download template"))}},X=async p=>{var v;if(p.preventDefault(),!y){r.error(n("Please select a file to import"));return}const j=new FormData;j.append("file",y),t(!0),i!=null&&i.is_demo||r.loading(n("Parsing file..."));try{const m=await(await fetch(route(_),{method:"POST",body:j,headers:{"X-CSRF-TOKEN":((v=document.querySelector('meta[name="csrf-token"]'))==null?void 0:v.getAttribute("content"))||""}})).json();m.excelColumns&&m.previewData?(D(m.excelColumns),M(m.previewData),q(m.previewData||[]),i!=null&&i.is_demo||r.dismiss(),b(),s(!0)):(i!=null&&i.is_demo||r.dismiss(),m.message?r.error(n(m.message)):r.error(n("Failed to parse file")))}catch(d){i!=null&&i.is_demo||r.dismiss(),d!=null&&d.message?r.error(n(d.message)):r.error(n("Network error or invalid response"))}finally{t(!1)}},B=()=>{s(!1),N(null),D([]),M([]),q([])},E=()=>{!a&&!l&&(N(null),b())},H={sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl"}[c];return e.jsxs(e.Fragment,{children:[e.jsx(P,{open:w,onOpenChange:E,children:e.jsxs(R,{className:H,children:[e.jsx(T,{children:e.jsx(U,{children:g})}),e.jsxs("div",{className:"space-y-4",children:[u&&e.jsxs("div",{className:"flex items-center justify-between p-3 border border-gray-200 rounded-md",children:[e.jsx("p",{className:"text-sm text-gray-700",children:n("Download sample template for required format")}),e.jsx(k,{type:"button",variant:"ghost",size:"sm",onClick:V,className:"ml-3 text-blue-600 hover:text-blue-800",children:e.jsx(ae,{className:"h-4 w-4"})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(W,{htmlFor:"file",children:[n("Select File")," ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx($,{id:"file",type:"file",accept:".xlsx,.xls,.csv",onChange:p=>{var j;return N(((j=p.target.files)==null?void 0:j[0])||null)},disabled:a,required:!0})]}),e.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-md p-3",children:[e.jsx("h4",{className:"text-sm font-medium text-blue-800 mb-2",children:n("Import Notes:")}),e.jsx("p",{className:"text-xs text-blue-700",children:C})]})]}),e.jsxs(A,{children:[e.jsx(k,{type:"button",variant:"outline",onClick:E,disabled:a,children:n("Cancel")}),e.jsx(k,{type:"button",onClick:X,disabled:a,children:n("Import")})]})]})}),e.jsx(re,{isOpen:l,onClose:B,excelColumns:f,databaseFields:o,importRoute:h,data:I,previewData:z})]})}export{me as I}; +import{r as x,j as e}from"./ui-Z445SNHD.js";import{u as O,D as P,h as R,j as T,k as U,q as A,o as k,t as r,r as G,c as K,L as W,I as $}from"./app-sDOUnh17.js";import{S as J,a as Q,b as Y,c as Z,d as L}from"./select-B2ZD_9zU.js";import{A as ee,a as se}from"./alert-Ds-hX2lu.js";import{I as te}from"./info-ByWc-Tkz.js";import{D as ae}from"./download-CkX-hJtI.js";function re({isOpen:w,onClose:b,excelColumns:g,databaseFields:h,importRoute:_,data:u,previewData:C=[]}){const{t:o}=O(),[c,n]=x.useState({}),[i,y]=x.useState(!1);x.useEffect(()=>{if(w&&g.length>0){const a={};h.forEach(t=>{const l=g.find(s=>s.toLowerCase().replace(/[_\s]/g,"")===t.key.toLowerCase().replace(/[_\s]/g,""));l&&(a[t.key]=l)}),n(a)}},[w,g,h]);const N=()=>{if(!u||u.length===0){r.error(o("No data available for import"));return}const t=h.filter(s=>s.required).filter(s=>!c[s.key]);if(t.length>0){r.error(o("Please map all required fields: {{fields}}",{fields:t.map(s=>s.key).join(", ")}));return}const l=(u||[]).map(s=>{const f={};return Object.entries(c).forEach(([D,I])=>{f[D]=s[I]}),f});y(!0),r.loading(o("Importing...")),G.post(route(_),{data:l},{preserveState:!0,onSuccess:s=>{b(),y(!1),r.dismiss(),s.props.flash.success?r.success(o(s.props.flash.success)):s.props.flash.error&&r.error(o(s.props.flash.error))},onError:s=>{y(!1),r.dismiss(),typeof s=="string"?r.error(s):r.error(o("Failed to import"))}})};return e.jsx(P,{open:w,onOpenChange:a=>!a&&b(),modal:!1,children:e.jsxs(R,{className:"max-w-7xl max-h-[85vh] overflow-hidden flex flex-col",children:[e.jsx(T,{children:e.jsx(U,{children:o("Map Columns")})}),e.jsxs(ee,{className:"bg-amber-50 border-amber-200",children:[e.jsx(te,{className:"h-4 w-4 text-amber-600"}),e.jsx(se,{className:"text-amber-800",children:o("Map your CSV columns to database fields")})]}),e.jsxs("div",{className:"flex-1 overflow-auto",children:[e.jsx("h3",{className:"text-base font-semibold mb-3",children:o("Column Mapping & Preview")}),e.jsx("div",{className:"border rounded-lg overflow-x-auto",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"bg-gray-50 border-b sticky top-0",children:e.jsx("tr",{children:h.map(a=>e.jsx("th",{className:"px-4 py-3 text-left font-medium text-gray-700 min-w-[180px]",children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"text-sm font-semibold",children:[a.key.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase()),a.required&&e.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),e.jsxs(J,{value:c[a.key]||"__unselect__",onValueChange:t=>{n(l=>{const s={...l};return t==="__unselect__"?delete s[a.key]:(Object.keys(s).forEach(f=>{s[f]===t&&delete s[f]}),s[a.key]=t),s})},children:[e.jsx(Q,{className:"h-9 text-sm w-full bg-white",children:e.jsx(Y,{placeholder:o("Select...")})}),e.jsxs(Z,{position:"popper",className:"z-[9999]",children:[e.jsx(L,{value:"__unselect__",children:o("-- Not Mapped --")}),g.map(t=>{const l=Object.values(c).includes(t)&&c[a.key]!==t;return e.jsx(L,{value:t,disabled:l,children:t},t)})]})]})]})},a.key))})}),e.jsx("tbody",{children:C.map((a,t)=>e.jsx("tr",{className:"border-b hover:bg-gray-50",children:h.map(l=>e.jsx("td",{className:"px-4 py-3 text-gray-700 text-sm",children:e.jsx("div",{className:"truncate max-w-[200px]",title:c[l.key]?a[c[l.key]]:"",children:c[l.key]?a[c[l.key]]||e.jsx("span",{className:"text-gray-400 italic text-xs",children:"empty"}):e.jsx("span",{className:"text-gray-400",children:"-"})})},l.key))},t))})]})}),e.jsx("p",{className:"text-sm text-gray-500 mt-3",children:o("Showing all {{count}} rows",{count:C.length})})]}),e.jsxs(A,{children:[e.jsx(k,{type:"button",variant:"outline",onClick:b,disabled:i,children:o("Back")}),e.jsx(k,{type:"button",onClick:N,disabled:i,children:o("Import Data")})]})]})})}function me({isOpen:w,onClose:b,title:g,importRoute:h,parseRoute:_,sampleRoute:u,importNotes:C,databaseFields:o,modalSize:c="lg"}){const{t:n}=O(),{globalSettings:i}=K().props,[y,N]=x.useState(null),[a,t]=x.useState(!1),[l,s]=x.useState(!1),[f,D]=x.useState([]),[I,M]=x.useState([]),[z,q]=x.useState([]),V=async()=>{if(u)try{const p=await fetch(route(u),{method:"GET",headers:{"X-Requested-With":"XMLHttpRequest"}});if(!p.ok){const S=await p.json().catch(()=>({}));r.error(n(S.error||"Failed to download template"));return}const j=await p.blob(),v=window.URL.createObjectURL(j),d=document.createElement("a");d.href=v;const m=p.headers.get("Content-Disposition");let F="sample-template.xlsx";if(m){const S=m.match(/filename="?(.+?)"?$/i);S&&(F=S[1])}d.download=F,document.body.appendChild(d),d.click(),window.URL.revokeObjectURL(v),document.body.removeChild(d)}catch{r.error(n("Failed to download template"))}},X=async p=>{var v;if(p.preventDefault(),!y){r.error(n("Please select a file to import"));return}const j=new FormData;j.append("file",y),t(!0),i!=null&&i.is_demo||r.loading(n("Parsing file..."));try{const m=await(await fetch(route(_),{method:"POST",body:j,headers:{"X-CSRF-TOKEN":((v=document.querySelector('meta[name="csrf-token"]'))==null?void 0:v.getAttribute("content"))||""}})).json();m.excelColumns&&m.previewData?(D(m.excelColumns),M(m.previewData),q(m.previewData||[]),i!=null&&i.is_demo||r.dismiss(),b(),s(!0)):(i!=null&&i.is_demo||r.dismiss(),m.message?r.error(n(m.message)):r.error(n("Failed to parse file")))}catch(d){i!=null&&i.is_demo||r.dismiss(),d!=null&&d.message?r.error(n(d.message)):r.error(n("Network error or invalid response"))}finally{t(!1)}},B=()=>{s(!1),N(null),D([]),M([]),q([])},E=()=>{!a&&!l&&(N(null),b())},H={sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl"}[c];return e.jsxs(e.Fragment,{children:[e.jsx(P,{open:w,onOpenChange:E,children:e.jsxs(R,{className:H,children:[e.jsx(T,{children:e.jsx(U,{children:g})}),e.jsxs("div",{className:"space-y-4",children:[u&&e.jsxs("div",{className:"flex items-center justify-between p-3 border border-gray-200 rounded-md",children:[e.jsx("p",{className:"text-sm text-gray-700",children:n("Download sample template for required format")}),e.jsx(k,{type:"button",variant:"ghost",size:"sm",onClick:V,className:"ml-3 text-blue-600 hover:text-blue-800",children:e.jsx(ae,{className:"h-4 w-4"})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(W,{htmlFor:"file",children:[n("Select File")," ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx($,{id:"file",type:"file",accept:".xlsx,.xls,.csv",onChange:p=>{var j;return N(((j=p.target.files)==null?void 0:j[0])||null)},disabled:a,required:!0})]}),e.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-md p-3",children:[e.jsx("h4",{className:"text-sm font-medium text-blue-800 mb-2",children:n("Import Notes:")}),e.jsx("p",{className:"text-xs text-blue-700",children:C})]})]}),e.jsxs(A,{children:[e.jsx(k,{type:"button",variant:"outline",onClick:E,disabled:a,children:n("Cancel")}),e.jsx(k,{type:"button",onClick:X,disabled:a,children:n("Import")})]})]})}),e.jsx(re,{isOpen:l,onClose:B,excelColumns:f,databaseFields:o,importRoute:h,data:I,previewData:z})]})}export{me as I}; diff --git a/public/build/assets/LivePreview-C_sBOW22.js b/public/build/assets/LivePreview-DReKJrbx.js similarity index 96% rename from public/build/assets/LivePreview-C_sBOW22.js rename to public/build/assets/LivePreview-DReKJrbx.js index a2dbe8a53..682a6114b 100644 --- a/public/build/assets/LivePreview-C_sBOW22.js +++ b/public/build/assets/LivePreview-DReKJrbx.js @@ -1 +1 @@ -import{j as e}from"./ui-Z445SNHD.js";import{u as _,a as C,T as S,E as P,ad as E}from"./app-BSYHJZwU.js";import{E as T}from"./eye-TLkxKnCq.js";import{C as A}from"./circle-check-big-Bg6KKeWO.js";import{C as F}from"./circle-alert-B8ayxgAl.js";import{P as N}from"./phone-C6oVC2rb.js";import{M as D}from"./mail-DxVHYF7N.js";import{G as H}from"./globe-BV-V8u_6.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function K({data:r,activeSection:v}){var m,g,h,y,b,p;const{t:s}=_(),{themeColor:n,customColor:f}=C(),d=n==="custom"?f:S[n],i=t=>{var l,a;return((a=(l=r.config_sections)==null?void 0:l.sections)==null?void 0:a.find(c=>c.key===t))||{}},o=(()=>{const t=[{key:"company_name",value:r.company_name,label:s("Company Name")},{key:"hero_title",value:i("hero").title,label:s("Hero Title")},{key:"contact_email",value:r.contact_email,label:s("Contact Email")}];return{completed:t.filter(a=>a.value).length,total:t.length,fields:t}})(),x=Math.round(o.completed/o.total*100),k=()=>{var t,l;switch(v){case"hero":const a=i("hero");return e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:s("Hero Section")}),e.jsxs("div",{className:"p-3 bg-gray-50 dark:bg-gray-700 rounded-lg border dark:border-gray-600",children:[e.jsx("div",{className:"text-xs font-semibold text-gray-900 dark:text-gray-100 mb-1",children:a.title||"Your Hero Title"}),e.jsx("div",{className:"text-xs text-gray-600 dark:text-gray-300 mb-2",children:a.subtitle||"Your hero subtitle will appear here..."}),e.jsxs("div",{className:"flex gap-1",children:[e.jsx("div",{className:"px-2 py-1 text-xs rounded",style:{backgroundColor:((l=(t=r.config_sections)==null?void 0:t.theme)==null?void 0:l.primary_color)||"#3b82f6",color:"white"},children:a.primary_button_text||"Primary Button"}),e.jsx("div",{className:"px-2 py-1 text-xs border rounded",children:a.secondary_button_text||"Secondary"})]})]})]});case"features":const c=i("features");return e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:s("Features Section")}),e.jsxs("div",{className:"p-3 bg-gray-50 dark:bg-gray-700 rounded-lg border dark:border-gray-600",children:[e.jsx("div",{className:"text-xs font-semibold text-gray-900 dark:text-gray-100 mb-1",children:c.title||"Features Title"}),e.jsx("div",{className:"text-xs text-gray-600 dark:text-gray-300 mb-2",children:c.description||"Features description..."}),e.jsx("div",{className:"grid grid-cols-2 gap-1",children:(c.features_list||[]).slice(0,4).map((w,j)=>e.jsx("div",{className:"p-1 bg-white dark:bg-gray-800 rounded text-xs dark:text-gray-300",children:w.title||`Feature ${j+1}`},j))})]})]});case"about":const u=i("about");return e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:s("About Section")}),e.jsxs("div",{className:"p-3 bg-gray-50 dark:bg-gray-700 rounded-lg border dark:border-gray-600",children:[e.jsx("div",{className:"text-xs font-semibold text-gray-900 dark:text-gray-100 mb-1",children:u.title||"About Title"}),e.jsx("div",{className:"text-xs text-gray-600 dark:text-gray-300",children:u.description||"About description..."})]})]});default:return e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"text-sm font-medium text-gray-700",children:s("Section Preview")}),e.jsx("div",{className:"p-3 bg-gray-50 dark:bg-gray-700 rounded-lg border dark:border-gray-600 text-center",children:e.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("Select a section to see live preview")})})]})}};return e.jsxs("div",{className:"sticky top-20 space-y-6",children:[e.jsxs("div",{className:"bg-gradient-to-br rounded-xl p-6 shadow-sm border",style:{backgroundColor:d+"10",borderColor:d+"30"},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"p-2 rounded-lg",style:{backgroundColor:d+"20"},children:e.jsx(T,{className:"h-5 w-5",style:{color:d}})}),e.jsx("h3",{className:"font-semibold text-gray-900 dark:text-gray-100",children:s("Setup Progress")})]}),e.jsxs("div",{className:"mb-4",children:[e.jsxs("div",{className:"flex justify-between items-center mb-2",children:[e.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:s("Completion")}),e.jsxs("span",{className:"text-sm font-medium text-gray-900 dark:text-gray-100",children:[x,"%"]})]}),e.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:e.jsx("div",{className:"h-2 rounded-full transition-all duration-300",style:{width:`${x}%`,backgroundColor:d}})})]}),e.jsx("div",{className:"space-y-2",children:o.fields.map((t,l)=>e.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[t.value?e.jsx(A,{className:"h-3 w-3 text-green-600"}):e.jsx(F,{className:"h-3 w-3 text-red-500"}),e.jsx("span",{className:t.value?"text-green-700":"text-red-600",children:t.label})]},l))})]}),e.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-6 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"p-2 bg-purple-100 rounded-lg",children:e.jsx(P,{className:"h-5 w-5 text-purple-600"})}),e.jsx("h3",{className:"font-semibold text-gray-900 dark:text-gray-100",children:s("Live Preview")})]}),k()]}),e.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-6 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"p-2 bg-pink-100 rounded-lg",children:e.jsx(E,{className:"h-5 w-5 text-pink-600"})}),e.jsx("h3",{className:"font-semibold text-gray-900 dark:text-gray-100",children:s("Color Scheme")})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg shadow-sm border-2 border-white",style:{backgroundColor:((g=(m=r.config_sections)==null?void 0:m.theme)==null?void 0:g.primary_color)||"#3b82f6"}}),e.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("Primary")})]}),e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg shadow-sm border-2 border-white",style:{backgroundColor:((y=(h=r.config_sections)==null?void 0:h.theme)==null?void 0:y.secondary_color)||"#8b5cf6"}}),e.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("Secondary")})]}),e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg shadow-sm border-2 border-white",style:{backgroundColor:((p=(b=r.config_sections)==null?void 0:b.theme)==null?void 0:p.accent_color)||"#10b77f"}}),e.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("Accent")})]})]})]}),e.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-6 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"p-2 bg-green-100 rounded-lg",children:e.jsx(N,{className:"h-5 w-5 text-green-600"})}),e.jsx("h3",{className:"font-semibold text-gray-900 dark:text-gray-100",children:s("Contact Info")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[e.jsx(D,{className:"h-3 w-3 text-gray-400"}),e.jsx("span",{className:r.contact_email?"text-gray-700 dark:text-gray-300":"text-red-500",children:r.contact_email||"Email not set"})]}),e.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[e.jsx(N,{className:"h-3 w-3 text-gray-400"}),e.jsx("span",{className:r.contact_phone?"text-gray-700 dark:text-gray-300":"text-red-500",children:r.contact_phone||"Phone not set"})]}),e.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[e.jsx(H,{className:"h-3 w-3 text-gray-400"}),e.jsx("span",{className:r.contact_address?"text-gray-700 dark:text-gray-300":"text-red-500",children:r.contact_address||"Address not set"})]})]})]})]})}export{K as default}; +import{j as e}from"./ui-Z445SNHD.js";import{u as _,a as C,T as S,E as P,ad as E}from"./app-sDOUnh17.js";import{E as T}from"./eye-VTFCyTyM.js";import{C as A}from"./circle-check-big-CqmCWPTH.js";import{C as F}from"./circle-alert-Ck-LaTXK.js";import{P as N}from"./phone-CgD68jaL.js";import{M as D}from"./mail-DeK8bIPR.js";import{G as H}from"./globe-Ceg_d9rk.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function K({data:r,activeSection:v}){var m,g,h,y,b,p;const{t:s}=_(),{themeColor:n,customColor:f}=C(),d=n==="custom"?f:S[n],i=t=>{var l,a;return((a=(l=r.config_sections)==null?void 0:l.sections)==null?void 0:a.find(c=>c.key===t))||{}},o=(()=>{const t=[{key:"company_name",value:r.company_name,label:s("Company Name")},{key:"hero_title",value:i("hero").title,label:s("Hero Title")},{key:"contact_email",value:r.contact_email,label:s("Contact Email")}];return{completed:t.filter(a=>a.value).length,total:t.length,fields:t}})(),x=Math.round(o.completed/o.total*100),k=()=>{var t,l;switch(v){case"hero":const a=i("hero");return e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:s("Hero Section")}),e.jsxs("div",{className:"p-3 bg-gray-50 dark:bg-gray-700 rounded-lg border dark:border-gray-600",children:[e.jsx("div",{className:"text-xs font-semibold text-gray-900 dark:text-gray-100 mb-1",children:a.title||"Your Hero Title"}),e.jsx("div",{className:"text-xs text-gray-600 dark:text-gray-300 mb-2",children:a.subtitle||"Your hero subtitle will appear here..."}),e.jsxs("div",{className:"flex gap-1",children:[e.jsx("div",{className:"px-2 py-1 text-xs rounded",style:{backgroundColor:((l=(t=r.config_sections)==null?void 0:t.theme)==null?void 0:l.primary_color)||"#3b82f6",color:"white"},children:a.primary_button_text||"Primary Button"}),e.jsx("div",{className:"px-2 py-1 text-xs border rounded",children:a.secondary_button_text||"Secondary"})]})]})]});case"features":const c=i("features");return e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:s("Features Section")}),e.jsxs("div",{className:"p-3 bg-gray-50 dark:bg-gray-700 rounded-lg border dark:border-gray-600",children:[e.jsx("div",{className:"text-xs font-semibold text-gray-900 dark:text-gray-100 mb-1",children:c.title||"Features Title"}),e.jsx("div",{className:"text-xs text-gray-600 dark:text-gray-300 mb-2",children:c.description||"Features description..."}),e.jsx("div",{className:"grid grid-cols-2 gap-1",children:(c.features_list||[]).slice(0,4).map((w,j)=>e.jsx("div",{className:"p-1 bg-white dark:bg-gray-800 rounded text-xs dark:text-gray-300",children:w.title||`Feature ${j+1}`},j))})]})]});case"about":const u=i("about");return e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:s("About Section")}),e.jsxs("div",{className:"p-3 bg-gray-50 dark:bg-gray-700 rounded-lg border dark:border-gray-600",children:[e.jsx("div",{className:"text-xs font-semibold text-gray-900 dark:text-gray-100 mb-1",children:u.title||"About Title"}),e.jsx("div",{className:"text-xs text-gray-600 dark:text-gray-300",children:u.description||"About description..."})]})]});default:return e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"text-sm font-medium text-gray-700",children:s("Section Preview")}),e.jsx("div",{className:"p-3 bg-gray-50 dark:bg-gray-700 rounded-lg border dark:border-gray-600 text-center",children:e.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("Select a section to see live preview")})})]})}};return e.jsxs("div",{className:"sticky top-20 space-y-6",children:[e.jsxs("div",{className:"bg-gradient-to-br rounded-xl p-6 shadow-sm border",style:{backgroundColor:d+"10",borderColor:d+"30"},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"p-2 rounded-lg",style:{backgroundColor:d+"20"},children:e.jsx(T,{className:"h-5 w-5",style:{color:d}})}),e.jsx("h3",{className:"font-semibold text-gray-900 dark:text-gray-100",children:s("Setup Progress")})]}),e.jsxs("div",{className:"mb-4",children:[e.jsxs("div",{className:"flex justify-between items-center mb-2",children:[e.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:s("Completion")}),e.jsxs("span",{className:"text-sm font-medium text-gray-900 dark:text-gray-100",children:[x,"%"]})]}),e.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:e.jsx("div",{className:"h-2 rounded-full transition-all duration-300",style:{width:`${x}%`,backgroundColor:d}})})]}),e.jsx("div",{className:"space-y-2",children:o.fields.map((t,l)=>e.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[t.value?e.jsx(A,{className:"h-3 w-3 text-green-600"}):e.jsx(F,{className:"h-3 w-3 text-red-500"}),e.jsx("span",{className:t.value?"text-green-700":"text-red-600",children:t.label})]},l))})]}),e.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-6 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"p-2 bg-purple-100 rounded-lg",children:e.jsx(P,{className:"h-5 w-5 text-purple-600"})}),e.jsx("h3",{className:"font-semibold text-gray-900 dark:text-gray-100",children:s("Live Preview")})]}),k()]}),e.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-6 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"p-2 bg-pink-100 rounded-lg",children:e.jsx(E,{className:"h-5 w-5 text-pink-600"})}),e.jsx("h3",{className:"font-semibold text-gray-900 dark:text-gray-100",children:s("Color Scheme")})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg shadow-sm border-2 border-white",style:{backgroundColor:((g=(m=r.config_sections)==null?void 0:m.theme)==null?void 0:g.primary_color)||"#3b82f6"}}),e.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("Primary")})]}),e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg shadow-sm border-2 border-white",style:{backgroundColor:((y=(h=r.config_sections)==null?void 0:h.theme)==null?void 0:y.secondary_color)||"#8b5cf6"}}),e.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("Secondary")})]}),e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg shadow-sm border-2 border-white",style:{backgroundColor:((p=(b=r.config_sections)==null?void 0:b.theme)==null?void 0:p.accent_color)||"#10b77f"}}),e.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("Accent")})]})]})]}),e.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-6 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"p-2 bg-green-100 rounded-lg",children:e.jsx(N,{className:"h-5 w-5 text-green-600"})}),e.jsx("h3",{className:"font-semibold text-gray-900 dark:text-gray-100",children:s("Contact Info")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[e.jsx(D,{className:"h-3 w-3 text-gray-400"}),e.jsx("span",{className:r.contact_email?"text-gray-700 dark:text-gray-300":"text-red-500",children:r.contact_email||"Email not set"})]}),e.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[e.jsx(N,{className:"h-3 w-3 text-gray-400"}),e.jsx("span",{className:r.contact_phone?"text-gray-700 dark:text-gray-300":"text-red-500",children:r.contact_phone||"Phone not set"})]}),e.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[e.jsx(H,{className:"h-3 w-3 text-gray-400"}),e.jsx("span",{className:r.contact_address?"text-gray-700 dark:text-gray-300":"text-red-500",children:r.contact_address||"Address not set"})]})]})]})]})}export{K as default}; diff --git a/public/build/assets/NewsletterSection-_PPq1Z7c.js b/public/build/assets/NewsletterSection-BNofaMxt.js similarity index 98% rename from public/build/assets/NewsletterSection-_PPq1Z7c.js rename to public/build/assets/NewsletterSection-BNofaMxt.js index fcb6766a7..45ba229bd 100644 --- a/public/build/assets/NewsletterSection-_PPq1Z7c.js +++ b/public/build/assets/NewsletterSection-BNofaMxt.js @@ -1 +1 @@ -import{j as e}from"./ui-Z445SNHD.js";import{u as f,b,t as d}from"./app-BSYHJZwU.js";import{M as h}from"./mail-DxVHYF7N.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function M({flash:y,settings:j,sectionData:s,globalSettings:i,brandColor:a="#3b82f6"}){const{t:r}=f(),{data:o,setData:x,post:n,processing:m,errors:c,reset:u}=b({email:""}),p=t=>{t.preventDefault(),i!=null&&i.is_demo||d.loading(r("Subscribing to newsletter...")),n(route("landing-page.subscribe"),{onSuccess:l=>{u(),i!=null&&i.is_demo||d.dismiss(),l.props.flash.success?d.success(r(l.props.flash.success)):l.props.flash.error&&d.error(r(l.props.flash.error))},onError:l=>{i!=null&&i.is_demo||d.dismiss(),typeof l=="string"?d.error(r(l)):d.error(r("Failed to subscribe: {{errors}}",{errors:Object.values(l).join(", ")}))}})};return e.jsx("section",{className:"py-12 sm:py-16 lg:py-20 bg-gray-50",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs("div",{className:"bg-white rounded-xl p-8 md:p-12 border border-gray-200",children:[e.jsx("div",{className:"w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-6",style:{backgroundColor:`${a}15`},children:e.jsx(h,{className:"w-8 h-8",style:{color:a}})}),e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:(s==null?void 0:s.title)||r("Stay Updated with HRM")}),e.jsx("p",{className:"text-lg text-gray-600 mb-8 max-w-2xl mx-auto leading-relaxed font-medium",id:"newsletter-description",children:(s==null?void 0:s.subtitle)||r("Get the latest updates, HR tips, and feature announcements.")}),e.jsx("form",{onSubmit:p,className:"max-w-md mx-auto",children:e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("input",{type:"email",value:o.email,onChange:t=>x("email",t.target.value),placeholder:r("Enter your email address"),className:"w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:border-gray-500 disabled:bg-gray-100 disabled:cursor-not-allowed",style:{"--tw-ring-color":a},required:!0,disabled:m,"aria-label":"Email address for newsletter subscription","aria-describedby":"newsletter-description"}),c.email&&e.jsx("p",{className:"text-red-600 text-sm mt-1",children:c.email})]}),e.jsxs("button",{type:"submit",disabled:m,className:"text-white px-8 py-3 rounded-lg transition-colors font-semibold cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2 min-w-[120px]",style:{backgroundColor:a},"aria-label":m?"Subscribing to newsletter":"Subscribe to newsletter",children:[m&&e.jsx("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),r(m?"Subscribing...":"Subscribe")]})]})}),e.jsx("p",{className:"text-gray-500 text-sm mt-4",children:(s==null?void 0:s.privacy_text)||r("No spam, unsubscribe at any time. We respect your privacy.")}),(s==null?void 0:s.benefits)&&s.benefits.length>0&&e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 sm:gap-6 mt-8 sm:mt-12",children:s.benefits.map((t,l)=>e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-3",children:e.jsx("span",{className:"text-gray-700 text-xl",children:t.icon})}),e.jsx("h3",{className:"text-gray-900 font-semibold mb-2",children:t.title}),e.jsx("p",{className:"text-gray-600 text-sm",children:t.description})]},l))})]})})})}export{M as default}; +import{j as e}from"./ui-Z445SNHD.js";import{u as f,b,t as d}from"./app-sDOUnh17.js";import{M as h}from"./mail-DeK8bIPR.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function M({flash:y,settings:j,sectionData:s,globalSettings:i,brandColor:a="#3b82f6"}){const{t:r}=f(),{data:o,setData:x,post:n,processing:m,errors:c,reset:u}=b({email:""}),p=t=>{t.preventDefault(),i!=null&&i.is_demo||d.loading(r("Subscribing to newsletter...")),n(route("landing-page.subscribe"),{onSuccess:l=>{u(),i!=null&&i.is_demo||d.dismiss(),l.props.flash.success?d.success(r(l.props.flash.success)):l.props.flash.error&&d.error(r(l.props.flash.error))},onError:l=>{i!=null&&i.is_demo||d.dismiss(),typeof l=="string"?d.error(r(l)):d.error(r("Failed to subscribe: {{errors}}",{errors:Object.values(l).join(", ")}))}})};return e.jsx("section",{className:"py-12 sm:py-16 lg:py-20 bg-gray-50",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs("div",{className:"bg-white rounded-xl p-8 md:p-12 border border-gray-200",children:[e.jsx("div",{className:"w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-6",style:{backgroundColor:`${a}15`},children:e.jsx(h,{className:"w-8 h-8",style:{color:a}})}),e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:(s==null?void 0:s.title)||r("Stay Updated with HRM")}),e.jsx("p",{className:"text-lg text-gray-600 mb-8 max-w-2xl mx-auto leading-relaxed font-medium",id:"newsletter-description",children:(s==null?void 0:s.subtitle)||r("Get the latest updates, HR tips, and feature announcements.")}),e.jsx("form",{onSubmit:p,className:"max-w-md mx-auto",children:e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("input",{type:"email",value:o.email,onChange:t=>x("email",t.target.value),placeholder:r("Enter your email address"),className:"w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:border-gray-500 disabled:bg-gray-100 disabled:cursor-not-allowed",style:{"--tw-ring-color":a},required:!0,disabled:m,"aria-label":"Email address for newsletter subscription","aria-describedby":"newsletter-description"}),c.email&&e.jsx("p",{className:"text-red-600 text-sm mt-1",children:c.email})]}),e.jsxs("button",{type:"submit",disabled:m,className:"text-white px-8 py-3 rounded-lg transition-colors font-semibold cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2 min-w-[120px]",style:{backgroundColor:a},"aria-label":m?"Subscribing to newsletter":"Subscribe to newsletter",children:[m&&e.jsx("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),r(m?"Subscribing...":"Subscribe")]})]})}),e.jsx("p",{className:"text-gray-500 text-sm mt-4",children:(s==null?void 0:s.privacy_text)||r("No spam, unsubscribe at any time. We respect your privacy.")}),(s==null?void 0:s.benefits)&&s.benefits.length>0&&e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 sm:gap-6 mt-8 sm:mt-12",children:s.benefits.map((t,l)=>e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-3",children:e.jsx("span",{className:"text-gray-700 text-xl",children:t.icon})}),e.jsx("h3",{className:"text-gray-900 font-semibold mb-2",children:t.title}),e.jsx("p",{className:"text-gray-600 text-sm",children:t.description})]},l))})]})})})}export{M as default}; diff --git a/public/build/assets/PlansSection-DtxabAxJ.js b/public/build/assets/PlansSection-BTPa4b7t.js similarity index 98% rename from public/build/assets/PlansSection-DtxabAxJ.js rename to public/build/assets/PlansSection-BTPa4b7t.js index f8855b216..0507c4e36 100644 --- a/public/build/assets/PlansSection-DtxabAxJ.js +++ b/public/build/assets/PlansSection-BTPa4b7t.js @@ -1,4 +1,4 @@ -import{R as w,r as B,j as e}from"./ui-Z445SNHD.js";import{u as I,c as L,O as U,Q,V as v,i as q,d as _}from"./app-BSYHJZwU.js";import{u as z}from"./useScrollAnimation-B_bDsIuD.js";import{A as C}from"./arrow-right-DUqjyG5g.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";const G=m=>{const x="vCardGo2024",a=m.toString();let l="";for(let r=0;rt+1,0),[i,S]=B.useState("monthly"),{ref:k,isVisible:h}=z(),{props:y}=L(),A=(f=y.globalSettings)==null?void 0:f.is_saas,P=U(y);let o="light";if(P){const t=Q("themeSettings");if(t)try{o=JSON.parse(t).appearance||"light"}catch{o="light"}}else o=((b=y.globalSettings)==null?void 0:b.themeMode)||"light";const s=o==="dark";w.useEffect(()=>{const t=()=>{$()};return g.on("languageChanged",t),()=>g.off("languageChanged",t)},[g]);const u=m.filter(t=>t.is_plan_enable==="on"),R=[{id:1,name:"Starter",description:"Perfect for individuals getting started with digital networking",price:0,yearly_price:0,duration:"month",features:["1 Digital Business Card","Basic QR Code","Contact Form","Basic Analytics","Email Support"],is_popular:!1,is_plan_enable:"on"},{id:2,name:"Professional",description:"Ideal for professionals and small businesses",price:19,yearly_price:190,duration:"month",features:["5 Digital Business Cards","Custom QR Codes","NFC Support","Advanced Analytics","Custom Branding","Priority Support","Lead Capture"],is_popular:!0,is_plan_enable:"on"},{id:3,name:"Enterprise",description:"For teams and large organizations",price:49,yearly_price:490,duration:"month",features:["Unlimited Digital Cards","Team Management","Custom Domain","White Label Solution","API Access","Dedicated Support","Advanced Integrations","Custom Features"],is_popular:!1,is_plan_enable:"on"}],E=u.length>0?u:R,p=t=>{var n;if(typeof window<"u"&&((n=window.appSettings)!=null&&n.formatCurrency)){const d=typeof t=="number"?t:parseFloat(t);return window.appSettings.formatCurrency(d,{showSymbol:!0})}return t},c=t=>i==="yearly"&&t.yearly_price?t.yearly_price:t.price;return e.jsx("section",{id:"pricing",className:`py-12 sm:py-16 lg:py-20 ${s?"bg-gray-900":"bg-white"}`,ref:k,children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:`text-center mb-8 sm:mb-12 lg:mb-16 transition-all duration-700 ${h?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[e.jsx("h2",{className:`text-3xl md:text-4xl font-bold ${s?"text-white":"text-gray-900"} mb-4`,children:(a==null?void 0:a.title)||r("Choose Your HRM Plan")}),e.jsx("p",{className:`text-lg ${s?"text-gray-300":"text-gray-600"} max-w-3xl mx-auto mb-8 leading-relaxed font-medium`,children:(a==null?void 0:a.subtitle)||r("Start with our free plan and upgrade as your team grows.")}),e.jsxs("div",{className:"flex items-center justify-center gap-4",children:[e.jsx("span",{className:`text-sm ${i==="monthly"?(s?"text-white":"text-gray-900")+" font-semibold":s?"text-gray-400":"text-gray-500"}`,children:r("Monthly")}),e.jsx("button",{onClick:()=>S(i==="monthly"?"yearly":"monthly"),className:"relative inline-flex h-6 w-11 items-center rounded-full transition-colors cursor-pointer",style:{backgroundColor:i==="yearly"?l:s?"#374151":"#e5e7eb",direction:"ltr"},children:e.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${i==="yearly"?"translate-x-6":"translate-x-1"}`})}),e.jsx("span",{className:`text-sm ${i==="yearly"?(s?"text-white":"text-gray-900")+" font-semibold":s?"text-gray-400":"text-gray-500"}`,children:r("Yearly")})]})]}),e.jsx("div",{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 transition-all duration-700 delay-300 ${h?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:E.map(t=>{var n,d,j,N;return e.jsx("div",{className:`relative h-full transition-all duration-200 ${t.is_popular?"transform scale-105":""}`,children:e.jsxs("div",{className:` +import{R as w,r as B,j as e}from"./ui-Z445SNHD.js";import{u as I,c as L,O as U,Q,V as v,i as q,d as _}from"./app-sDOUnh17.js";import{u as z}from"./useScrollAnimation-B_bDsIuD.js";import{A as C}from"./arrow-right-9tTXNXlb.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";const G=m=>{const x="vCardGo2024",a=m.toString();let l="";for(let r=0;rt+1,0),[i,S]=B.useState("monthly"),{ref:k,isVisible:h}=z(),{props:y}=L(),A=(f=y.globalSettings)==null?void 0:f.is_saas,P=U(y);let o="light";if(P){const t=Q("themeSettings");if(t)try{o=JSON.parse(t).appearance||"light"}catch{o="light"}}else o=((b=y.globalSettings)==null?void 0:b.themeMode)||"light";const s=o==="dark";w.useEffect(()=>{const t=()=>{$()};return g.on("languageChanged",t),()=>g.off("languageChanged",t)},[g]);const u=m.filter(t=>t.is_plan_enable==="on"),R=[{id:1,name:"Starter",description:"Perfect for individuals getting started with digital networking",price:0,yearly_price:0,duration:"month",features:["1 Digital Business Card","Basic QR Code","Contact Form","Basic Analytics","Email Support"],is_popular:!1,is_plan_enable:"on"},{id:2,name:"Professional",description:"Ideal for professionals and small businesses",price:19,yearly_price:190,duration:"month",features:["5 Digital Business Cards","Custom QR Codes","NFC Support","Advanced Analytics","Custom Branding","Priority Support","Lead Capture"],is_popular:!0,is_plan_enable:"on"},{id:3,name:"Enterprise",description:"For teams and large organizations",price:49,yearly_price:490,duration:"month",features:["Unlimited Digital Cards","Team Management","Custom Domain","White Label Solution","API Access","Dedicated Support","Advanced Integrations","Custom Features"],is_popular:!1,is_plan_enable:"on"}],E=u.length>0?u:R,p=t=>{var n;if(typeof window<"u"&&((n=window.appSettings)!=null&&n.formatCurrency)){const d=typeof t=="number"?t:parseFloat(t);return window.appSettings.formatCurrency(d,{showSymbol:!0})}return t},c=t=>i==="yearly"&&t.yearly_price?t.yearly_price:t.price;return e.jsx("section",{id:"pricing",className:`py-12 sm:py-16 lg:py-20 ${s?"bg-gray-900":"bg-white"}`,ref:k,children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:`text-center mb-8 sm:mb-12 lg:mb-16 transition-all duration-700 ${h?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[e.jsx("h2",{className:`text-3xl md:text-4xl font-bold ${s?"text-white":"text-gray-900"} mb-4`,children:(a==null?void 0:a.title)||r("Choose Your HRM Plan")}),e.jsx("p",{className:`text-lg ${s?"text-gray-300":"text-gray-600"} max-w-3xl mx-auto mb-8 leading-relaxed font-medium`,children:(a==null?void 0:a.subtitle)||r("Start with our free plan and upgrade as your team grows.")}),e.jsxs("div",{className:"flex items-center justify-center gap-4",children:[e.jsx("span",{className:`text-sm ${i==="monthly"?(s?"text-white":"text-gray-900")+" font-semibold":s?"text-gray-400":"text-gray-500"}`,children:r("Monthly")}),e.jsx("button",{onClick:()=>S(i==="monthly"?"yearly":"monthly"),className:"relative inline-flex h-6 w-11 items-center rounded-full transition-colors cursor-pointer",style:{backgroundColor:i==="yearly"?l:s?"#374151":"#e5e7eb",direction:"ltr"},children:e.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${i==="yearly"?"translate-x-6":"translate-x-1"}`})}),e.jsx("span",{className:`text-sm ${i==="yearly"?(s?"text-white":"text-gray-900")+" font-semibold":s?"text-gray-400":"text-gray-500"}`,children:r("Yearly")})]})]}),e.jsx("div",{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 transition-all duration-700 delay-300 ${h?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:E.map(t=>{var n,d,j,N;return e.jsx("div",{className:`relative h-full transition-all duration-200 ${t.is_popular?"transform scale-105":""}`,children:e.jsxs("div",{className:` relative h-full flex flex-col rounded-lg border-2 transition-all duration-200 ${t.is_popular?"shadow-xl":"hover:shadow-lg"} `,style:{borderColor:t.is_popular?l:s?"rgb(75 85 99)":"rgb(229 231 235)",background:(t.is_popular,s?"rgb(17 24 39)":"white")},children:[t.is_popular&&e.jsx("div",{className:"absolute -top-4 left-1/2 transform -translate-x-1/2 z-10",children:e.jsx("div",{className:"text-white px-4 py-1 rounded-full text-sm font-semibold",style:{backgroundColor:l},children:r("Recommended")})}),e.jsxs("div",{className:`p-6 text-center border-b ${s?"border-gray-700":"border-gray-100"}`,children:[e.jsx("h3",{className:`text-xl font-bold mb-2 ${s?"text-white":"text-gray-900"}`,children:t.name}),e.jsxs("div",{className:"mb-4",children:[e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsx("span",{className:`text-4xl font-bold ${s?"text-white":"text-gray-900"}`,children:c(t)===0?"$0":p(c(t))}),e.jsxs("span",{className:`ml-1 ${s?"text-gray-400":"text-gray-500"}`,children:["/",r(i==="yearly"?"year":"month")]})]}),i==="yearly"&&c(t)>0&&e.jsxs("div",{className:"flex items-center justify-center gap-1 mt-1 text-sm",style:{color:l},children:[e.jsx(v,{className:"h-3.5 w-3.5"}),r("Save")," ",p(Math.round((t.price*12-c(t))*100)/100)," ",r("annually")]})]}),e.jsx("p",{className:`text-sm mb-4 ${s?"text-gray-400":"text-gray-600"}`,children:t.description})]}),e.jsxs("div",{className:"flex flex-col flex-1 p-6",children:[t.stats&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h4",{className:`text-sm font-semibold mb-3 uppercase tracking-wide ${s?"text-gray-400":"text-gray-900"}`,children:r("What's Included")}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:`text-sm ${s?"text-gray-300":"text-gray-700"}`,children:r("Users")}),e.jsx("span",{className:`text-sm font-semibold ${s?"text-white":"text-gray-900"}`,children:((n=t.stats)==null?void 0:n.users)||"N/A"})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:`text-sm ${s?"text-gray-300":"text-gray-700"}`,children:r("Employees")}),e.jsx("span",{className:`text-sm font-semibold ${s?"text-white":"text-gray-900"}`,children:((d=t.stats)==null?void 0:d.employees)||"N/A"})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:`text-sm ${s?"text-gray-300":"text-gray-700"}`,children:r("Storage")}),e.jsx("span",{className:`text-sm font-semibold ${s?"text-white":"text-gray-900"}`,children:((j=t.stats)==null?void 0:j.storage)||"N/A"})]})]})]}),((N=t.features)==null?void 0:N.length)>0&&e.jsxs("div",{className:"mb-6 flex-1",children:[e.jsx("h4",{className:`text-sm font-semibold mb-3 uppercase tracking-wide ${s?"text-gray-400":"text-gray-900"}`,children:r("Features")}),e.jsx("ul",{className:"space-y-2",children:t.features.map((F,M)=>e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center",style:{backgroundColor:`${l}20`,color:l},children:e.jsx(v,{className:"h-3 w-3"})}),e.jsx("span",{className:`text-sm ${s?"text-gray-300":"text-gray-700"}`,children:F})]},M))})]}),e.jsx("div",{className:`mt-auto pt-4 border-t ${s?"border-gray-700":"border-gray-200"}`,children:A&&q()?e.jsxs(_,{href:route("register",{plan:G(t.id)}),className:"block w-full text-center py-3 px-6 rounded-lg font-semibold transition-colors hover:opacity-90",style:{backgroundColor:t.is_popular?l:s?"#374151":"#f3f4f6",color:t.is_popular?"white":s?"#f9fafb":"#111827"},children:[t.price===0?r("Start Free"):r("Get Started"),e.jsx(C,{className:"w-4 h-4 inline-block ml-2"})]}):e.jsxs(_,{href:route("login"),className:"block w-full text-center py-3 px-6 rounded-lg font-semibold transition-colors hover:opacity-90",style:{backgroundColor:t.is_popular?l:s?"#374151":"#f3f4f6",color:t.is_popular?"white":s?"#f9fafb":"#111827"},children:[r("Login"),e.jsx(C,{className:"w-4 h-4 inline-block ml-2"})]})})]})]})},t.id)})}),(a==null?void 0:a.faq_text)&&e.jsx("div",{className:"text-center mt-8 sm:mt-12",children:e.jsx("p",{className:s?"text-gray-300":"text-gray-600",children:a.faq_text})})]})})}export{K as default}; diff --git a/public/build/assets/ScreenshotsSection-D2ZPR3ba.js b/public/build/assets/ScreenshotsSection-BCnA1d8s.js similarity index 97% rename from public/build/assets/ScreenshotsSection-D2ZPR3ba.js rename to public/build/assets/ScreenshotsSection-BCnA1d8s.js index f62b80c33..dc69bdd5c 100644 --- a/public/build/assets/ScreenshotsSection-D2ZPR3ba.js +++ b/public/build/assets/ScreenshotsSection-BCnA1d8s.js @@ -1 +1 @@ -import{j as a}from"./ui-Z445SNHD.js";import{u}from"./useScrollAnimation-B_bDsIuD.js";import{u as x,g as h}from"./app-BSYHJZwU.js";import{M as m}from"./monitor-MMlreZ6a.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function S({brandColor:l="#3b82f6",settings:f,globalSettings:i,sectionData:r}){const{t}=x(),{ref:p,isVisible:n}=u(),o=e=>e?e.startsWith("/screenshots/")?`${window.appSettings.imageUrl}${e}`:h(e):null,s=(i==null?void 0:i.is_saas)?"/screenshots/saas/":"/screenshots/non-saas/",y=[{src:`${s}hero.png`,alt:t("HRMGo Dashboard Overview"),title:t("Dashboard Overview"),description:t("Get a complete overview of employee data, payroll, and HR activities in one unified dashboard.")},{src:`${s}employee-management.png`,alt:t("Employee Management Module"),title:t("Employee Management"),description:t("Centralized employee profiles with personal details, documents, and job history.")},{src:`${s}payroll-payslip.png`,alt:t("Payroll Automation"),title:t("Payroll & Payslips"),description:t("Automated payroll processing with tax calculations, allowances, and downloadable payslips.")},{src:`${s}leave.png`,alt:t("Leave Management"),title:t("Leave Management"),description:t("Easily apply, approve, and track employee leave requests with proper workflows and policies.")},{src:`${s}attendance.png`,alt:t("Attendance Tracking"),title:t("Attendance Tracking"),description:t("Monitor employee check-ins, check-outs, and shifts with automated attendance logs.")},{src:`${s}recruitment.png`,alt:t("Recruitment & Onboarding"),title:t("Recruitment & Onboarding"),description:t("Streamline hiring with applicant tracking and digital onboarding.")}],c=r!=null&&r.screenshots_list&&r.screenshots_list.length>0?r.screenshots_list.map(e=>({...e,src:o(e.src)})).filter(e=>e.src):y.map(e=>({...e,src:o(e.src)})).filter(e=>e.src);return a.jsx("section",{id:"screenshots",className:"py-12 sm:py-16 lg:py-20 bg-white",ref:p,children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs("div",{className:`text-center mb-8 sm:mb-12 lg:mb-16 transition-all duration-700 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:(r==null?void 0:r.title)||t("See HRM Saas in Action")}),a.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto leading-relaxed font-medium",children:(r==null?void 0:r.subtitle)||t("Discover how our modern HRM SaaS platform helps you manage employees, payroll, attendance, and performance — all in one place.")})]}),c.length>0?a.jsx("div",{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 sm:gap-8 transition-all duration-700 delay-200 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:c.map((e,g)=>a.jsxs("div",{className:"group bg-white rounded-xl border border-gray-200 overflow-hidden hover:shadow-xl transition-all duration-300 hover:-translate-y-1",children:[a.jsxs("div",{className:"aspect-video overflow-hidden bg-gray-100",children:[e.src?a.jsx("img",{src:e.src,alt:e.alt,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300",loading:"lazy",onError:d=>{d.currentTarget.style.display="none",d.currentTarget.nextElementSibling.style.display="flex"}}):null,a.jsx("div",{className:"w-full h-full flex items-center justify-center text-gray-400",style:{display:e.src?"none":"flex"},children:a.jsx(m,{className:"w-12 h-12"})})]}),a.jsxs("div",{className:"p-6",children:[a.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:e.title}),a.jsx("p",{className:"text-gray-600 text-sm leading-relaxed",children:e.description})]})]},g))}):a.jsxs("div",{className:`text-center py-12 transition-all duration-700 delay-200 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[a.jsx("div",{className:"text-gray-400 mb-4",children:a.jsx(m,{className:"w-16 h-16 mx-auto"})}),a.jsx("p",{className:"text-gray-500",children:t("No screenshots configured yet. Add some in the admin settings.")})]}),a.jsx("div",{className:`text-center mt-12 transition-all duration-700 delay-400 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:a.jsx("a",{href:"#contact",className:"inline-flex items-center px-6 py-3 rounded-full text-sm font-medium border-2 transition-all",style:{borderColor:l,color:l,backgroundColor:"transparent"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=l,e.currentTarget.style.color="white"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.color=l},children:t("✨ And many more features to discover")})})]})})}export{S as default}; +import{j as a}from"./ui-Z445SNHD.js";import{u}from"./useScrollAnimation-B_bDsIuD.js";import{u as x,g as h}from"./app-sDOUnh17.js";import{M as m}from"./monitor-DLOwEyU3.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function S({brandColor:l="#3b82f6",settings:f,globalSettings:i,sectionData:r}){const{t}=x(),{ref:p,isVisible:n}=u(),o=e=>e?e.startsWith("/screenshots/")?`${window.appSettings.imageUrl}${e}`:h(e):null,s=(i==null?void 0:i.is_saas)?"/screenshots/saas/":"/screenshots/non-saas/",y=[{src:`${s}hero.png`,alt:t("HRMGo Dashboard Overview"),title:t("Dashboard Overview"),description:t("Get a complete overview of employee data, payroll, and HR activities in one unified dashboard.")},{src:`${s}employee-management.png`,alt:t("Employee Management Module"),title:t("Employee Management"),description:t("Centralized employee profiles with personal details, documents, and job history.")},{src:`${s}payroll-payslip.png`,alt:t("Payroll Automation"),title:t("Payroll & Payslips"),description:t("Automated payroll processing with tax calculations, allowances, and downloadable payslips.")},{src:`${s}leave.png`,alt:t("Leave Management"),title:t("Leave Management"),description:t("Easily apply, approve, and track employee leave requests with proper workflows and policies.")},{src:`${s}attendance.png`,alt:t("Attendance Tracking"),title:t("Attendance Tracking"),description:t("Monitor employee check-ins, check-outs, and shifts with automated attendance logs.")},{src:`${s}recruitment.png`,alt:t("Recruitment & Onboarding"),title:t("Recruitment & Onboarding"),description:t("Streamline hiring with applicant tracking and digital onboarding.")}],c=r!=null&&r.screenshots_list&&r.screenshots_list.length>0?r.screenshots_list.map(e=>({...e,src:o(e.src)})).filter(e=>e.src):y.map(e=>({...e,src:o(e.src)})).filter(e=>e.src);return a.jsx("section",{id:"screenshots",className:"py-12 sm:py-16 lg:py-20 bg-white",ref:p,children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs("div",{className:`text-center mb-8 sm:mb-12 lg:mb-16 transition-all duration-700 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:(r==null?void 0:r.title)||t("See HRM Saas in Action")}),a.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto leading-relaxed font-medium",children:(r==null?void 0:r.subtitle)||t("Discover how our modern HRM SaaS platform helps you manage employees, payroll, attendance, and performance — all in one place.")})]}),c.length>0?a.jsx("div",{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 sm:gap-8 transition-all duration-700 delay-200 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:c.map((e,g)=>a.jsxs("div",{className:"group bg-white rounded-xl border border-gray-200 overflow-hidden hover:shadow-xl transition-all duration-300 hover:-translate-y-1",children:[a.jsxs("div",{className:"aspect-video overflow-hidden bg-gray-100",children:[e.src?a.jsx("img",{src:e.src,alt:e.alt,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300",loading:"lazy",onError:d=>{d.currentTarget.style.display="none",d.currentTarget.nextElementSibling.style.display="flex"}}):null,a.jsx("div",{className:"w-full h-full flex items-center justify-center text-gray-400",style:{display:e.src?"none":"flex"},children:a.jsx(m,{className:"w-12 h-12"})})]}),a.jsxs("div",{className:"p-6",children:[a.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:e.title}),a.jsx("p",{className:"text-gray-600 text-sm leading-relaxed",children:e.description})]})]},g))}):a.jsxs("div",{className:`text-center py-12 transition-all duration-700 delay-200 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[a.jsx("div",{className:"text-gray-400 mb-4",children:a.jsx(m,{className:"w-16 h-16 mx-auto"})}),a.jsx("p",{className:"text-gray-500",children:t("No screenshots configured yet. Add some in the admin settings.")})]}),a.jsx("div",{className:`text-center mt-12 transition-all duration-700 delay-400 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:a.jsx("a",{href:"#contact",className:"inline-flex items-center px-6 py-3 rounded-full text-sm font-medium border-2 transition-all",style:{borderColor:l,color:l,backgroundColor:"transparent"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=l,e.currentTarget.style.color="white"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.color=l},children:t("✨ And many more features to discover")})})]})})}export{S as default}; diff --git a/public/build/assets/SectionNavigation-DfvHeZF8.js b/public/build/assets/SectionNavigation-oX9C_bHT.js similarity index 77% rename from public/build/assets/SectionNavigation-DfvHeZF8.js rename to public/build/assets/SectionNavigation-oX9C_bHT.js index b4155fe7a..1714d1e71 100644 --- a/public/build/assets/SectionNavigation-DfvHeZF8.js +++ b/public/build/assets/SectionNavigation-oX9C_bHT.js @@ -1 +1 @@ -import{j as e}from"./ui-Z445SNHD.js";import{ac as c,E as d,o as b}from"./app-BSYHJZwU.js";import{S as p}from"./settings-CX6nvi-t.js";import{A as y}from"./arrow-up-down-CONKUAPq.js";import{C as h}from"./code-CD7oUh2D.js";import{T as f}from"./type-BSvyGCKj.js";import{G as k}from"./globe-BV-V8u_6.js";import{M as x}from"./monitor-MMlreZ6a.js";import{A as i}from"./award-CjMubtHH.js";import{I as u}from"./info-CUVFT_b2.js";import{U as g}from"./users-BSBktdVT.js";import{C as v}from"./credit-card-D8zG-MvI.js";import{C as j}from"./circle-help-BGaaZlKa.js";import{M as w}from"./mail-DxVHYF7N.js";import{P as C}from"./phone-C6oVC2rb.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";const n=[{title:"Setup",sections:[{key:"general",label:"General",icon:p},{key:"order",label:"Order",icon:y},{key:"advanced",label:"Advanced",icon:h}]},{title:"Layout",sections:[{key:"header",label:"Header",icon:f},{key:"hero",label:"Hero",icon:c},{key:"footer",label:"Footer",icon:d}]},{title:"Content",sections:[{key:"features",label:"Features",icon:k},{key:"screenshots",label:"Screenshots",icon:x},{key:"whychooseus",label:"Why Us",icon:i},{key:"about",label:"About",icon:u}]},{title:"Social",sections:[{key:"team",label:"Team",icon:g},{key:"testimonials",label:"Reviews",icon:i},{key:"plans",label:"Plans",icon:v}]},{title:"Engagement",sections:[{key:"faq",label:"FAQ",icon:j},{key:"newsletter",label:"Newsletter",icon:w},{key:"contact",label:"Contact",icon:C}]}];function O({activeSection:t,onSectionChange:l,t:s}){return e.jsxs("div",{className:"mb-8",children:[e.jsx("div",{className:"block lg:hidden mb-4",children:e.jsx("select",{value:t,onChange:a=>l(a.target.value),className:"w-full p-3 border border-gray-300 rounded-lg bg-white",children:n.map(a=>e.jsx("optgroup",{label:a.title,children:a.sections.map(o=>e.jsx("option",{value:o.key,children:s(o.label)},o.key))},a.title))})}),e.jsx("div",{className:"hidden lg:block space-y-4",children:n.map(a=>e.jsxs("div",{children:[e.jsx("div",{className:"text-xs font-medium text-gray-500 mb-2 px-2",children:a.title}),e.jsx("div",{className:"flex flex-wrap gap-2",children:a.sections.map(o=>{const m=o.icon,r=t===o.key;return e.jsxs(b,{variant:r?"default":"ghost",size:"sm",className:`transition-all duration-200 ${r?"bg-blue-600 text-white shadow-sm hover:bg-blue-700":"text-gray-700 hover:bg-gray-100 hover:text-gray-900"}`,onClick:()=>l(o.key),children:[e.jsx(m,{className:"h-4 w-4 mr-2"}),s(o.label)]},o.key)})})]},a.title))})]})}export{O as default}; +import{j as e}from"./ui-Z445SNHD.js";import{ac as c,E as d,o as b}from"./app-sDOUnh17.js";import{S as p}from"./settings-I4rcMQaX.js";import{A as y}from"./arrow-up-down-Cl2YZAM0.js";import{C as h}from"./code-C2paiy7V.js";import{T as f}from"./type-1_MWEX62.js";import{G as k}from"./globe-Ceg_d9rk.js";import{M as x}from"./monitor-DLOwEyU3.js";import{A as i}from"./award-BaptGUZ1.js";import{I as u}from"./info-ByWc-Tkz.js";import{U as g}from"./users-CxIavEVE.js";import{C as v}from"./credit-card-ljzAPDue.js";import{C as j}from"./circle-help-zFpStH4x.js";import{M as w}from"./mail-DeK8bIPR.js";import{P as C}from"./phone-CgD68jaL.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";const n=[{title:"Setup",sections:[{key:"general",label:"General",icon:p},{key:"order",label:"Order",icon:y},{key:"advanced",label:"Advanced",icon:h}]},{title:"Layout",sections:[{key:"header",label:"Header",icon:f},{key:"hero",label:"Hero",icon:c},{key:"footer",label:"Footer",icon:d}]},{title:"Content",sections:[{key:"features",label:"Features",icon:k},{key:"screenshots",label:"Screenshots",icon:x},{key:"whychooseus",label:"Why Us",icon:i},{key:"about",label:"About",icon:u}]},{title:"Social",sections:[{key:"team",label:"Team",icon:g},{key:"testimonials",label:"Reviews",icon:i},{key:"plans",label:"Plans",icon:v}]},{title:"Engagement",sections:[{key:"faq",label:"FAQ",icon:j},{key:"newsletter",label:"Newsletter",icon:w},{key:"contact",label:"Contact",icon:C}]}];function O({activeSection:t,onSectionChange:l,t:s}){return e.jsxs("div",{className:"mb-8",children:[e.jsx("div",{className:"block lg:hidden mb-4",children:e.jsx("select",{value:t,onChange:a=>l(a.target.value),className:"w-full p-3 border border-gray-300 rounded-lg bg-white",children:n.map(a=>e.jsx("optgroup",{label:a.title,children:a.sections.map(o=>e.jsx("option",{value:o.key,children:s(o.label)},o.key))},a.title))})}),e.jsx("div",{className:"hidden lg:block space-y-4",children:n.map(a=>e.jsxs("div",{children:[e.jsx("div",{className:"text-xs font-medium text-gray-500 mb-2 px-2",children:a.title}),e.jsx("div",{className:"flex flex-wrap gap-2",children:a.sections.map(o=>{const m=o.icon,r=t===o.key;return e.jsxs(b,{variant:r?"default":"ghost",size:"sm",className:`transition-all duration-200 ${r?"bg-blue-600 text-white shadow-sm hover:bg-blue-700":"text-gray-700 hover:bg-gray-100 hover:text-gray-900"}`,onClick:()=>l(o.key),children:[e.jsx(m,{className:"h-4 w-4 mr-2"}),s(o.label)]},o.key)})})]},a.title))})]})}export{O as default}; diff --git a/public/build/assets/TeamSection-BE8y5fxy.js b/public/build/assets/TeamSection-BdxqrDzN.js similarity index 95% rename from public/build/assets/TeamSection-BE8y5fxy.js rename to public/build/assets/TeamSection-BdxqrDzN.js index 6a885948a..0e739b950 100644 --- a/public/build/assets/TeamSection-BE8y5fxy.js +++ b/public/build/assets/TeamSection-BdxqrDzN.js @@ -1 +1 @@ -import{j as r}from"./ui-Z445SNHD.js";import{u as n}from"./app-BSYHJZwU.js";import{L as a,T as x}from"./twitter-D-kIxaKd.js";import{M as c}from"./mail-DxVHYF7N.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function N({settings:g,sectionData:e,brandColor:t="#3b82f6"}){const{t:s}=n(),i=[{name:"John Doe",role:s("CEO & Founder"),bio:s("Experienced HR tech entrepreneur passionate about building intuitive HR solutions."),image:"",linkedin:"#",email:"john@example.com"},{name:"Jane Smith",role:s("CTO"),bio:s("Leads the tech team to create scalable and secure HR platforms."),image:"",linkedin:"#",email:"jane@example.com"},{name:"Michael Lee",role:s("Head of Product"),bio:s("Designs user-centric features to simplify HR processes."),image:"",linkedin:"#",email:"michael@example.com"},{name:"Emily Davis",role:s("HR Manager"),bio:s("Oversees employee engagement, recruitment, and HR operations."),image:"",linkedin:"#",email:"emily@example.com"}],m=e!=null&&e.members&&e.members.length>0?e.members:i;return r.jsx("section",{className:"py-12 sm:py-16 lg:py-20 bg-white",children:r.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[r.jsxs("div",{className:"text-center mb-8 sm:mb-12 lg:mb-16",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:(e==null?void 0:e.title)||s("Meet Our Team")}),r.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto leading-relaxed font-medium",children:(e==null?void 0:e.subtitle)||s("We're a dedicated team of HR and technology experts.")})]}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 sm:gap-8",children:m.map((l,d)=>r.jsxs("div",{className:"bg-gray-50 rounded-xl p-6 border border-gray-200 hover:border-gray-300 transition-colors",children:[r.jsx("div",{className:"w-20 h-20 rounded-full mx-auto mb-4 flex items-center justify-center",style:{backgroundColor:t},children:r.jsx("span",{className:"text-white text-lg font-bold",children:l.name.split(" ").map(o=>o[0]).join("")})}),r.jsxs("div",{className:"text-center",children:[r.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-1",children:l.name}),r.jsx("p",{className:"text-gray-700 font-medium mb-3",children:l.role}),r.jsx("p",{className:"text-gray-600 text-sm leading-relaxed mb-4",children:l.bio}),r.jsxs("div",{className:"flex justify-center gap-2",children:[l.linkedin&&r.jsx("a",{href:l.linkedin,className:"w-8 h-8 bg-white rounded-full flex items-center justify-center border border-gray-200 hover:border-gray-300 transition-colors",children:r.jsx(a,{className:"w-4 h-4 text-gray-600"})}),l.twitter&&r.jsx("a",{href:l.twitter,className:"w-8 h-8 bg-white rounded-full flex items-center justify-center border border-gray-200 hover:border-gray-300 transition-colors",children:r.jsx(x,{className:"w-4 h-4 text-gray-600"})}),l.email&&r.jsx("a",{href:`mailto:${l.email}`,className:"w-8 h-8 bg-white rounded-full flex items-center justify-center border border-gray-200 hover:border-gray-300 transition-colors",children:r.jsx(c,{className:"w-4 h-4 text-gray-600"})})]})]})]},d))}),((e==null?void 0:e.cta_title)||(e==null?void 0:e.cta_description)||(e==null?void 0:e.cta_button_text))&&r.jsx("div",{className:"text-center mt-8 sm:mt-12 lg:mt-16",children:r.jsxs("div",{className:"bg-gray-50 rounded-xl p-8 border border-gray-200 max-w-2xl mx-auto",children:[r.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-4",children:(e==null?void 0:e.cta_title)||s("Want to Join Our Team?")}),r.jsx("p",{className:"text-gray-600 mb-6",children:(e==null?void 0:e.cta_description)||s("We're always looking for talented individuals to shape the future of HR management.")}),r.jsx("a",{href:"#contact",className:"inline-flex items-center px-8 py-3 rounded-lg transition-all font-semibold border",style:{backgroundColor:t,color:"white",borderColor:t},onMouseEnter:l=>{l.currentTarget.style.backgroundColor="white",l.currentTarget.style.color=t},onMouseLeave:l=>{l.currentTarget.style.backgroundColor=t,l.currentTarget.style.color="white"},children:(e==null?void 0:e.cta_button_text)||s("View Open Positions")})]})})]})})}export{N as default}; +import{j as r}from"./ui-Z445SNHD.js";import{u as n}from"./app-sDOUnh17.js";import{L as a,T as x}from"./twitter-CUSTR7Ss.js";import{M as c}from"./mail-DeK8bIPR.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function N({settings:g,sectionData:e,brandColor:t="#3b82f6"}){const{t:s}=n(),i=[{name:"John Doe",role:s("CEO & Founder"),bio:s("Experienced HR tech entrepreneur passionate about building intuitive HR solutions."),image:"",linkedin:"#",email:"john@example.com"},{name:"Jane Smith",role:s("CTO"),bio:s("Leads the tech team to create scalable and secure HR platforms."),image:"",linkedin:"#",email:"jane@example.com"},{name:"Michael Lee",role:s("Head of Product"),bio:s("Designs user-centric features to simplify HR processes."),image:"",linkedin:"#",email:"michael@example.com"},{name:"Emily Davis",role:s("HR Manager"),bio:s("Oversees employee engagement, recruitment, and HR operations."),image:"",linkedin:"#",email:"emily@example.com"}],m=e!=null&&e.members&&e.members.length>0?e.members:i;return r.jsx("section",{className:"py-12 sm:py-16 lg:py-20 bg-white",children:r.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[r.jsxs("div",{className:"text-center mb-8 sm:mb-12 lg:mb-16",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:(e==null?void 0:e.title)||s("Meet Our Team")}),r.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto leading-relaxed font-medium",children:(e==null?void 0:e.subtitle)||s("We're a dedicated team of HR and technology experts.")})]}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 sm:gap-8",children:m.map((l,d)=>r.jsxs("div",{className:"bg-gray-50 rounded-xl p-6 border border-gray-200 hover:border-gray-300 transition-colors",children:[r.jsx("div",{className:"w-20 h-20 rounded-full mx-auto mb-4 flex items-center justify-center",style:{backgroundColor:t},children:r.jsx("span",{className:"text-white text-lg font-bold",children:l.name.split(" ").map(o=>o[0]).join("")})}),r.jsxs("div",{className:"text-center",children:[r.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-1",children:l.name}),r.jsx("p",{className:"text-gray-700 font-medium mb-3",children:l.role}),r.jsx("p",{className:"text-gray-600 text-sm leading-relaxed mb-4",children:l.bio}),r.jsxs("div",{className:"flex justify-center gap-2",children:[l.linkedin&&r.jsx("a",{href:l.linkedin,className:"w-8 h-8 bg-white rounded-full flex items-center justify-center border border-gray-200 hover:border-gray-300 transition-colors",children:r.jsx(a,{className:"w-4 h-4 text-gray-600"})}),l.twitter&&r.jsx("a",{href:l.twitter,className:"w-8 h-8 bg-white rounded-full flex items-center justify-center border border-gray-200 hover:border-gray-300 transition-colors",children:r.jsx(x,{className:"w-4 h-4 text-gray-600"})}),l.email&&r.jsx("a",{href:`mailto:${l.email}`,className:"w-8 h-8 bg-white rounded-full flex items-center justify-center border border-gray-200 hover:border-gray-300 transition-colors",children:r.jsx(c,{className:"w-4 h-4 text-gray-600"})})]})]})]},d))}),((e==null?void 0:e.cta_title)||(e==null?void 0:e.cta_description)||(e==null?void 0:e.cta_button_text))&&r.jsx("div",{className:"text-center mt-8 sm:mt-12 lg:mt-16",children:r.jsxs("div",{className:"bg-gray-50 rounded-xl p-8 border border-gray-200 max-w-2xl mx-auto",children:[r.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-4",children:(e==null?void 0:e.cta_title)||s("Want to Join Our Team?")}),r.jsx("p",{className:"text-gray-600 mb-6",children:(e==null?void 0:e.cta_description)||s("We're always looking for talented individuals to shape the future of HR management.")}),r.jsx("a",{href:"#contact",className:"inline-flex items-center px-8 py-3 rounded-lg transition-all font-semibold border",style:{backgroundColor:t,color:"white",borderColor:t},onMouseEnter:l=>{l.currentTarget.style.backgroundColor="white",l.currentTarget.style.color=t},onMouseLeave:l=>{l.currentTarget.style.backgroundColor=t,l.currentTarget.style.color="white"},children:(e==null?void 0:e.cta_button_text)||s("View Open Positions")})]})})]})})}export{N as default}; diff --git a/public/build/assets/TestimonialsSection-BBK5hBBz.js b/public/build/assets/TestimonialsSection-U3C_55LZ.js similarity index 95% rename from public/build/assets/TestimonialsSection-BBK5hBBz.js rename to public/build/assets/TestimonialsSection-U3C_55LZ.js index 9f341f277..7d189dd79 100644 --- a/public/build/assets/TestimonialsSection-BBK5hBBz.js +++ b/public/build/assets/TestimonialsSection-U3C_55LZ.js @@ -1 +1 @@ -import{j as e}from"./ui-Z445SNHD.js";import{u as h}from"./useScrollAnimation-B_bDsIuD.js";import{u}from"./app-BSYHJZwU.js";import{Q as g}from"./quote-CjYpK6AJ.js";import{S as y}from"./star-GU5Kax9a.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function T({testimonials:o,settings:f,sectionData:s,brandColor:a="#3b82f6"}){var i;const{t:n}=u(),{ref:c,isVisible:m}=h(),d=((i=s==null?void 0:s.testimonials)==null?void 0:i.map((r,t)=>({id:t+1,...r})))||[{name:"Alice Johnson",role:"HR Manager",company:"GlobalTech Ltd.",content:"HRMGo has made managing employee records and attendance effortless. Our HR team saves hours every week!",rating:5},{name:"Robert Smith",role:"Operations Head",company:"Innovate Solutions",content:"The payroll automation is incredibly accurate and easy to use. No more manual calculations or errors!",rating:5},{name:"Maria Davis",role:"CEO",company:"BrightFuture Corp.",content:"From recruitment to performance management, HRMGo covers everything we need in one platform.",rating:5},{name:"David Lee",role:"Talent Acquisition Lead",company:"NextGen Enterprises",content:"Recruitment and onboarding have never been smoother. HRMGo’s platform is intuitive and efficient.",rating:5},{name:"Samantha Green",role:"Payroll Specialist",company:"BrightSolutions Inc.",content:"Payroll processing is now quick and error-free thanks to HRMGo. It has transformed our monthly workflow.",rating:5},{name:"Michael Brown",role:"HR Coordinator",company:"TechWave Ltd.",content:"The performance management module helps us track employee goals and progress effortlessly.",rating:5}],x=o.length>0?o:d,p=r=>Array.from({length:5},(t,l)=>e.jsx(y,{className:`w-4 h-4 ${le.jsxs("div",{className:"bg-white border border-gray-200 rounded-xl p-6 hover:border-gray-300 transition-colors relative",children:[e.jsx("div",{className:"absolute -top-3 left-6",children:e.jsx("div",{className:"w-6 h-6 rounded-full flex items-center justify-center",style:{backgroundColor:a},children:e.jsx(g,{className:"w-3 h-3 text-white"})})}),e.jsx("div",{className:"flex items-center gap-1 mb-4 pt-2",children:p(r.rating)}),e.jsxs("p",{className:"text-gray-700 mb-6 leading-relaxed",children:['"',r.content,'"']}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-full flex items-center justify-center flex-shrink-0",style:{backgroundColor:a},children:r.avatar?e.jsx("img",{src:r.avatar,alt:r.name,className:"w-12 h-12 rounded-full object-cover"}):e.jsx("span",{className:"text-white font-semibold",children:r.name.split(" ").map(t=>t[0]).join("")})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-gray-900",children:r.name}),e.jsxs("p",{className:"text-sm text-gray-600",children:[r.role,r.company&&e.jsxs("span",{className:"text-gray-400",children:[" • ",r.company]})]})]})]})]},r.id))}),(s==null?void 0:s.trust_stats)&&s.trust_stats.length>0&&e.jsx("div",{className:"mt-8 sm:mt-12 lg:mt-16 text-center",children:e.jsxs("div",{className:"bg-white rounded-xl p-8 border border-gray-200",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-6",children:(s==null?void 0:s.trust_title)||n("Trusted by HR Professionals Worldwide")}),e.jsx("div",{className:"flex justify-center items-center gap-8 flex-wrap",children:s.trust_stats.map((r,t)=>e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-3xl font-bold text-gray-900",children:r.value}),e.jsx("div",{className:"text-gray-600",children:r.label})]},t))})]})})]})})}export{T as default}; +import{j as e}from"./ui-Z445SNHD.js";import{u as h}from"./useScrollAnimation-B_bDsIuD.js";import{u}from"./app-sDOUnh17.js";import{Q as g}from"./quote-CGCdNvLE.js";import{S as y}from"./star-CtzRKCrZ.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";function T({testimonials:o,settings:f,sectionData:s,brandColor:a="#3b82f6"}){var i;const{t:n}=u(),{ref:c,isVisible:m}=h(),d=((i=s==null?void 0:s.testimonials)==null?void 0:i.map((r,t)=>({id:t+1,...r})))||[{name:"Alice Johnson",role:"HR Manager",company:"GlobalTech Ltd.",content:"HRMGo has made managing employee records and attendance effortless. Our HR team saves hours every week!",rating:5},{name:"Robert Smith",role:"Operations Head",company:"Innovate Solutions",content:"The payroll automation is incredibly accurate and easy to use. No more manual calculations or errors!",rating:5},{name:"Maria Davis",role:"CEO",company:"BrightFuture Corp.",content:"From recruitment to performance management, HRMGo covers everything we need in one platform.",rating:5},{name:"David Lee",role:"Talent Acquisition Lead",company:"NextGen Enterprises",content:"Recruitment and onboarding have never been smoother. HRMGo’s platform is intuitive and efficient.",rating:5},{name:"Samantha Green",role:"Payroll Specialist",company:"BrightSolutions Inc.",content:"Payroll processing is now quick and error-free thanks to HRMGo. It has transformed our monthly workflow.",rating:5},{name:"Michael Brown",role:"HR Coordinator",company:"TechWave Ltd.",content:"The performance management module helps us track employee goals and progress effortlessly.",rating:5}],x=o.length>0?o:d,p=r=>Array.from({length:5},(t,l)=>e.jsx(y,{className:`w-4 h-4 ${le.jsxs("div",{className:"bg-white border border-gray-200 rounded-xl p-6 hover:border-gray-300 transition-colors relative",children:[e.jsx("div",{className:"absolute -top-3 left-6",children:e.jsx("div",{className:"w-6 h-6 rounded-full flex items-center justify-center",style:{backgroundColor:a},children:e.jsx(g,{className:"w-3 h-3 text-white"})})}),e.jsx("div",{className:"flex items-center gap-1 mb-4 pt-2",children:p(r.rating)}),e.jsxs("p",{className:"text-gray-700 mb-6 leading-relaxed",children:['"',r.content,'"']}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-full flex items-center justify-center flex-shrink-0",style:{backgroundColor:a},children:r.avatar?e.jsx("img",{src:r.avatar,alt:r.name,className:"w-12 h-12 rounded-full object-cover"}):e.jsx("span",{className:"text-white font-semibold",children:r.name.split(" ").map(t=>t[0]).join("")})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-gray-900",children:r.name}),e.jsxs("p",{className:"text-sm text-gray-600",children:[r.role,r.company&&e.jsxs("span",{className:"text-gray-400",children:[" • ",r.company]})]})]})]})]},r.id))}),(s==null?void 0:s.trust_stats)&&s.trust_stats.length>0&&e.jsx("div",{className:"mt-8 sm:mt-12 lg:mt-16 text-center",children:e.jsxs("div",{className:"bg-white rounded-xl p-8 border border-gray-200",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-6",children:(s==null?void 0:s.trust_title)||n("Trusted by HR Professionals Worldwide")}),e.jsx("div",{className:"flex justify-center items-center gap-8 flex-wrap",children:s.trust_stats.map((r,t)=>e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-3xl font-bold text-gray-900",children:r.value}),e.jsx("div",{className:"text-gray-600",children:r.label})]},t))})]})})]})})}export{T as default}; diff --git a/public/build/assets/WhyChooseUs-D0Z3Iwda.js b/public/build/assets/WhyChooseUs-A9JhvS2S.js similarity index 87% rename from public/build/assets/WhyChooseUs-D0Z3Iwda.js rename to public/build/assets/WhyChooseUs-A9JhvS2S.js index f55f7b38c..df25e17fc 100644 --- a/public/build/assets/WhyChooseUs-D0Z3Iwda.js +++ b/public/build/assets/WhyChooseUs-A9JhvS2S.js @@ -1 +1 @@ -import{j as e}from"./ui-Z445SNHD.js";import{u as g}from"./useScrollAnimation-B_bDsIuD.js";import{u as h}from"./app-BSYHJZwU.js";import{C as u}from"./chart-no-axes-column-increasing-SxKAr_7S.js";import{L as f}from"./layers-D6Sv_aBW.js";import{A as y}from"./award-CjMubtHH.js";import{H as b}from"./heart-BQ0S5x0g.js";import{S as j}from"./shield-Bbpddci_.js";import{S as v}from"./star-GU5Kax9a.js";import{C as N}from"./circle-check-big-Bg6KKeWO.js";import{Z as w}from"./zap-Dm4IzKeS.js";import{U as C}from"./users-BSBktdVT.js";import{C as o}from"./clock-BVZQtYUP.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";const S={clock:o,users:C,zap:w,"check-circle":N,star:v,shield:j,heart:b,award:y,layers:f,"bar-chart":u};function z({settings:k,sectionData:t,brandColor:a="#3b82f6"}){const{t:s}=h(),{ref:n,isVisible:l}=g(),c=[{icon:"layers",title:s("All-in-One HR Solution"),description:s("Manage employees, payroll, attendance, recruitment, and performance from a single platform. No technical skills required.")},{icon:"clock",title:s("Time-Saving Automation"),description:s("Automate repetitive HR tasks to focus on strategic decision-making.")},{icon:"bar-chart",title:s("Data-Driven Insights"),description:s("Make informed decisions with advanced analytics and reports.")},{icon:"shield",title:s("Secure & Reliable"),description:s("Keep sensitive HR data safe with enterprise-grade security.")}],d=[{value:"500+",label:s("Companies Using HRM"),color:"blue"},{value:"20K+",label:s("Employees Managed"),color:"green"},{value:"98%",label:s("Customer Satisfaction"),color:"orange"}],m=t.reasons&&t.reasons.length>0?t.reasons:c,p=t.stats&&t.stats.length>0?t.stats:d;return e.jsx("section",{className:"py-12 sm:py-16 lg:py-20 bg-white",ref:n,children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 sm:gap-12 lg:gap-16 items-center",children:[e.jsxs("div",{className:`transition-all duration-700 ${l?"opacity-100 translate-x-0":"opacity-0 -translate-x-8"}`,children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-6",children:t.title||s("Why Choose HRM SaaS ?")}),e.jsx("p",{className:"text-lg text-gray-600 mb-8 leading-relaxed font-medium",children:t.subtitle||s("Smart, simple, and powerful HR solutions for every business. We're your partner in building meaningful professional connections that drive business growth.")}),e.jsx("div",{className:"space-y-4 sm:space-y-6",children:m.map((r,i)=>{const x=S[r.icon]||o;return e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center flex-shrink-0",style:{backgroundColor:`${a}15`},children:e.jsx(x,{className:"w-5 h-5",style:{color:a}})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:r.title}),e.jsx("p",{className:"text-gray-600",children:r.description})]})]},i)})})]}),e.jsxs("div",{className:`bg-gray-50 rounded-xl p-8 border border-gray-200 transition-all duration-700 delay-300 ${l?"opacity-100 translate-x-0":"opacity-0 translate-x-8"}`,children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:t.stats_title||s("Trusted by Industry Leaders")}),e.jsx("p",{className:"text-gray-600",children:t.stats_subtitle||s("Join the growing community of professionals")})]}),e.jsx("div",{className:"grid grid-cols-2 gap-4 sm:gap-6",children:p.map((r,i)=>e.jsxs("div",{className:"text-center p-6 bg-white rounded-lg border border-gray-200",children:[e.jsx("div",{className:"text-3xl font-bold text-gray-900 mb-2",children:r.value}),e.jsx("div",{className:"text-gray-600 font-medium",children:r.label})]},i))}),(t.cta_title||t.cta_subtitle)&&e.jsxs("div",{className:"mt-8 p-6 rounded-lg text-white text-center",style:{backgroundColor:a},children:[e.jsx("div",{className:"text-xl font-bold mb-2",children:t.cta_title||s("Ready to get started?")}),e.jsx("div",{className:"text-gray-300",children:t.cta_subtitle||s("Join thousands of satisfied users today")})]})]})]})})})}export{z as default}; +import{j as e}from"./ui-Z445SNHD.js";import{u as g}from"./useScrollAnimation-B_bDsIuD.js";import{u as h}from"./app-sDOUnh17.js";import{C as u}from"./chart-no-axes-column-increasing-BpUCpHgK.js";import{L as f}from"./layers-D56AD4XE.js";import{A as y}from"./award-BaptGUZ1.js";import{H as b}from"./heart-KpdhBjuF.js";import{S as j}from"./shield-BqrBIhc5.js";import{S as v}from"./star-CtzRKCrZ.js";import{C as N}from"./circle-check-big-CqmCWPTH.js";import{Z as w}from"./zap-Ctg1ccsK.js";import{U as C}from"./users-CxIavEVE.js";import{C as o}from"./clock-DzOBoPIM.js";/* empty css *//* empty css */import"./utils-BWxnHGCV.js";const S={clock:o,users:C,zap:w,"check-circle":N,star:v,shield:j,heart:b,award:y,layers:f,"bar-chart":u};function z({settings:k,sectionData:t,brandColor:a="#3b82f6"}){const{t:s}=h(),{ref:n,isVisible:l}=g(),c=[{icon:"layers",title:s("All-in-One HR Solution"),description:s("Manage employees, payroll, attendance, recruitment, and performance from a single platform. No technical skills required.")},{icon:"clock",title:s("Time-Saving Automation"),description:s("Automate repetitive HR tasks to focus on strategic decision-making.")},{icon:"bar-chart",title:s("Data-Driven Insights"),description:s("Make informed decisions with advanced analytics and reports.")},{icon:"shield",title:s("Secure & Reliable"),description:s("Keep sensitive HR data safe with enterprise-grade security.")}],d=[{value:"500+",label:s("Companies Using HRM"),color:"blue"},{value:"20K+",label:s("Employees Managed"),color:"green"},{value:"98%",label:s("Customer Satisfaction"),color:"orange"}],m=t.reasons&&t.reasons.length>0?t.reasons:c,p=t.stats&&t.stats.length>0?t.stats:d;return e.jsx("section",{className:"py-12 sm:py-16 lg:py-20 bg-white",ref:n,children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 sm:gap-12 lg:gap-16 items-center",children:[e.jsxs("div",{className:`transition-all duration-700 ${l?"opacity-100 translate-x-0":"opacity-0 -translate-x-8"}`,children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-6",children:t.title||s("Why Choose HRM SaaS ?")}),e.jsx("p",{className:"text-lg text-gray-600 mb-8 leading-relaxed font-medium",children:t.subtitle||s("Smart, simple, and powerful HR solutions for every business. We're your partner in building meaningful professional connections that drive business growth.")}),e.jsx("div",{className:"space-y-4 sm:space-y-6",children:m.map((r,i)=>{const x=S[r.icon]||o;return e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center flex-shrink-0",style:{backgroundColor:`${a}15`},children:e.jsx(x,{className:"w-5 h-5",style:{color:a}})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:r.title}),e.jsx("p",{className:"text-gray-600",children:r.description})]})]},i)})})]}),e.jsxs("div",{className:`bg-gray-50 rounded-xl p-8 border border-gray-200 transition-all duration-700 delay-300 ${l?"opacity-100 translate-x-0":"opacity-0 translate-x-8"}`,children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:t.stats_title||s("Trusted by Industry Leaders")}),e.jsx("p",{className:"text-gray-600",children:t.stats_subtitle||s("Join the growing community of professionals")})]}),e.jsx("div",{className:"grid grid-cols-2 gap-4 sm:gap-6",children:p.map((r,i)=>e.jsxs("div",{className:"text-center p-6 bg-white rounded-lg border border-gray-200",children:[e.jsx("div",{className:"text-3xl font-bold text-gray-900 mb-2",children:r.value}),e.jsx("div",{className:"text-gray-600 font-medium",children:r.label})]},i))}),(t.cta_title||t.cta_subtitle)&&e.jsxs("div",{className:"mt-8 p-6 rounded-lg text-white text-center",style:{backgroundColor:a},children:[e.jsx("div",{className:"text-xl font-bold mb-2",children:t.cta_title||s("Ready to get started?")}),e.jsx("div",{className:"text-gray-300",children:t.cta_subtitle||s("Join thousands of satisfied users today")})]})]})]})})})}export{z as default}; diff --git a/public/build/assets/alert-D597ov4s.js b/public/build/assets/alert-Ds-hX2lu.js similarity index 92% rename from public/build/assets/alert-D597ov4s.js rename to public/build/assets/alert-Ds-hX2lu.js index 5bf01ba6b..398d1ee94 100644 --- a/public/build/assets/alert-D597ov4s.js +++ b/public/build/assets/alert-Ds-hX2lu.js @@ -1 +1 @@ -import{j as a}from"./ui-Z445SNHD.js";import{e,an as i}from"./app-BSYHJZwU.js";const o=i("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-background text-foreground",destructive:"text-destructive-foreground [&>svg]:text-current *:data-[slot=alert-description]:text-destructive-foreground/80"}},defaultVariants:{variant:"default"}});function l({className:t,variant:r,...s}){return a.jsx("div",{"data-slot":"alert",role:"alert",className:e(o({variant:r}),t),...s})}function c({className:t,...r}){return a.jsx("div",{"data-slot":"alert-description",className:e("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",t),...r})}export{l as A,c as a}; +import{j as a}from"./ui-Z445SNHD.js";import{e,an as i}from"./app-sDOUnh17.js";const o=i("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-background text-foreground",destructive:"text-destructive-foreground [&>svg]:text-current *:data-[slot=alert-description]:text-destructive-foreground/80"}},defaultVariants:{variant:"default"}});function l({className:t,variant:r,...s}){return a.jsx("div",{"data-slot":"alert",role:"alert",className:e(o({variant:r}),t),...s})}function c({className:t,...r}){return a.jsx("div",{"data-slot":"alert-description",className:e("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",t),...r})}export{l as A,c as a}; diff --git a/public/build/assets/app-BSYHJZwU.js b/public/build/assets/app-sDOUnh17.js similarity index 84% rename from public/build/assets/app-BSYHJZwU.js rename to public/build/assets/app-sDOUnh17.js index 8dcb6fea7..5b74485f8 100644 --- a/public/build/assets/app-BSYHJZwU.js +++ b/public/build/assets/app-sDOUnh17.js @@ -1,13 +1,13 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./browser-ponyfill-B2OCLxrH.js","./ui-Z445SNHD.js","./confirm-password-neAD8iPK.js","./input-error-Dgw6n-fk.js","./auth-layout--hm5sqIA.js","./CookieConsentBanner-Byo3zuPL.js","./react-country-flag.esm-Bs2jngHP.js","./refresh-cw-gcM_kYqC.js","./globe-BV-V8u_6.js","./settings-CX6nvi-t.js","./switch-DhleYvkr.js","./index-9MclThM-.js","./use-favicon-BZ62yh4h.js","./credit-card-D8zG-MvI.js","./auth-button-C6ccRUsj.js","./loader-circle-ifydYLPc.js","./lock-6O4sRSlL.js","./utils-BWxnHGCV.js","./app-Blv9dda-.css","./dark-mode-CbIfkZ9G.css","./forgot-password-Dzqhiqp3.js","./text-link-y2Q-vHOE.js","./recaptcha-BxllrQqt.js","./mail-DxVHYF7N.js","./login-261plrD0.js","./checkbox-CYQIGzbl.js","./register-BbEohUIG.js","./reset-password-CPEdHaZN.js","./verify-email-BulRRua_.js","./index-DV4iBZq-.js","./page-template-B2ntYrLT.js","./textarea-B_SndWQW.js","./select-CbXk1R0B.js","./index-BdQq_4o_.js","./chevron-up-DucaKQ3-.js","./language-BbwPiY59.js","./sparkles-CfR7lDao.js","./copy-D6lZoFYl.js","./chevron-right-Cj9vWq5q.js","./layout-grid-Dlu7hxHb.js","./briefcase-BKgf-yb0.js","./gift-CVFNrX_x.js","./users-BSBktdVT.js","./calendar-gcQNJrck.js","./calendar-days-D37GabpP.js","./clock-BVZQtYUP.js","./timer-DwjTxvPw.js","./dollar-sign-DEPMZ3f5.js","./coins-B2297ctz.js","./index-BFT_C1pH.js","./user-9XcFVF9J.js","./log-out-rZ-6N8el.js","./index-DrmIhGnK.js","./apply-BHdZAFij.js","./use-brand-theme-xKMMFWJY.js","./arrow-left-a7Nt3e5S.js","./index-zE36TbXZ.js","./star-GU5Kax9a.js","./filter-CBRiM0r4.js","./building-DW_9GQwt.js","./map-pin-IdpREju-.js","./chevron-left-CRrX0kFZ.js","./job-details-DoZ-tkKC.js","./index-Czr4BnA0.js","./pagination-BtZgOD-s.js","./search-and-filter-bar-CdwwN0hk.js","./list-BwOh69td.js","./use-initials-BK4eRgYY.js","./CrudFormModal-Bvh5mDoK.js","./radio-group-BQIr4fyd.js","./circle-1_M8zNqP.js","./multi-select-field-Dvho_7PP.js","./scroll-area-9uHad1Z9.js","./CrudDeleteModal-DZYIfzYh.js","./circle-check-CTcXcmw_.js","./view-LEy-lHpT.js","./building-2-DadP8PRU.js","./lock-open-ZWo1f94L.js","./info-CUVFT_b2.js","./square-pen-T7rpryAv.js","./trash-2-BsMHtHjz.js","./index-v5nL27Eh.js","./CrudTable-Dq-7DrKt.js","./table-DSvwhwjx.js","./unlink-Ch49KwjM.js","./scale-D0KxNj3C.js","./arrow-down-left-nGlOp0UN.js","./arrow-right-left-UUmu8K2j.js","./arrow-right-DUqjyG5g.js","./arrow-up-down-CONKUAPq.js","./award-CjMubtHH.js","./ban-DQn-PTEr.js","./indian-rupee-Cnxg20SR.js","./bell-DYicqpcQ.js","./book-open-BzmGBaRl.js","./boxes-OutTNwlM.js","./calculator-CeuHG_lv.js","./calendar-check-9E1RtXCZ.js","./camera-SPl73Xmu.js","./chart-column-DHEl_xzN.js","./chart-no-axes-column-increasing-SxKAr_7S.js","./chart-no-axes-column-BFfQ0y3B.js","./circle-alert-B8ayxgAl.js","./circle-check-big-Bg6KKeWO.js","./circle-help-BGaaZlKa.js","./circle-x-CfKsm7H3.js","./clipboard-list-BZ7Kqeso.js","./code-CD7oUh2D.js","./crosshair-CzV0fWxp.js","./crown-CMz9BX1H.js","./download-L-j3Hs25.js","./external-link-BqhSWP4p.js","./eye-off-CJzPLzeN.js","./eye-TLkxKnCq.js","./instagram-C45NAPrj.js","./file-down-B-va8ah6.js","./file-up-DtFy3z5R.js","./house-8TaxZb3W.js","./git-branch-I6o8eTUM.js","./grip-vertical-WVbAwevM.js","./hard-drive-CiD0YEwE.js","./hash-_aMK0MDt.js","./heart-BQ0S5x0g.js","./key-BxQnrFAw.js","./layers-D6Sv_aBW.js","./layout-list-B84oZX48.js","./lightbulb-CmXpZA2a.js","./link-2-B9k0XRLv.js","./link-B3wNGiM9.js","./twitter-D-kIxaKd.js","./log-in-BHGk9WKF.js","./menu-D0MrC3-G.js","./message-square-warning-DUuO2thx.js","./message-square-Ck5hHwt6.js","./monitor-MMlreZ6a.js","./package-BgGG9D7B.js","./percent-t1PnhZvQ.js","./phone-C6oVC2rb.js","./plane-BDHK1wP4.js","./play-Bcyp9ITy.js","./qr-code-DxYbVEkr.js","./quote-CjYpK6AJ.js","./ruler-DKtnIiXK.js","./send-Bj7h8rUg.js","./server-B6FbzqEM.js","./wifi-DpQfK6Cq.js","./shield-check-CsujthUX.js","./shield-Bbpddci_.js","./square-check-big-fDvPz894.js","./sun-BpQuVj2K.js","./tag-NmFgBZB4.js","./target-Bp0PaO6Q.js","./thumbs-up-CYBIkoHv.js","./ticket-Ctf1RIBL.js","./trash-D2EVoYgr.js","./trending-down-DZWO8D7U.js","./trending-up-BjdLenQE.js","./triangle-alert-D2ry1q_6.js","./trophy-DTrPg_CC.js","./type-BSvyGCKj.js","./user-check-DssH9IY_.js","./user-plus-x5edR71k.js","./user-x-D4abRW9M.js","./wallet-fB7Qgro5.js","./wrench-DAJxHt41.js","./zap-Dm4IzKeS.js","./index-B54oPsu0.js","./show-y34A_Zg6.js","./index-sjApNaPR.js","./view-Ccyzpc7x.js","./dashboard-B3T0iVde.js","./index-C3VhZ7X5.js","./show-DTOozyWT.js","./tabs-DgQbH2iG.js","./rich-text-editor-DrwwmZhQ.js","./employee-dashboard-CJdOX0rf.js","./chatgpt-demo-Cr4vxwqx.js","./dashboard-C5mQYanM.js","./index-CJG3F0yR.js","./show-D4ZygB4-.js","./progress-BZ116p-e.js","./statistics-C7YCguot.js","./dashboard-kWskLSjf.js","./depreciation-report-BpgOeH-9.js","./index-S2QcHmMs.js","./ImportModal-B8aH6xsY.js","./alert-D597ov4s.js","./show-Cdv4T-GE.js","./index-CAWuQvTp.js","./index-CcDUOEzw.js","./view-CoGYbDLD.js","./calendar-Bm9jB1WP.js","./index-DNfX7OxP.js","./view-BY0bGGk_.js","./index-GZ54y5X8.js","./view-kpOUAJWu.js","./index-nO5j15RX.js","./index-CHloav9X.js","./view-DD7Q_Z1z.js","./index-BC1kFOcB.js","./view-WvrCOVgC.js","./index-Cwqj726J.js","./view-a7UyCy6W.js","./index-BOnqcQkQ.js","./view-DY0KOFwa.js","./index-DzgYuGP6.js","./create-C96OUMiY.js","./edit-BBwZ0zMn.js","./generate-DIfBLiBv.js","./index-DM1kqK-p.js","./show-BzG2DqVT.js","./index-BhPwG8C7.js","./view-DBnZKk3X.js","./index-BsHF30au.js","./view-IrdKyccW.js","./index-DzDPF5C1.js","./view-CkmEcIa6.js","./index-DZxpwqgL.js","./view-D8N-kcaK.js","./index-DK5SahFx.js","./index-EOsPyvdY.js","./view-CFsC5zrj.js","./index-BPdOUF8f.js","./create-PRpJJyoZ.js","./edit-CM-a4lBT.js","./generate-CB7Sk7MO.js","./index-ByuNyjEv.js","./show-4LtFUIo1.js","./index-3X5mHxbO.js","./view-CIRx8bkP.js","./index-CKXbF-SV.js","./view-mwV3d2_J.js","./payroll-calculation-CQRbLLkY.js","./create-DxVIA8J6.js","./edit-fUQsVg8H.js","./index-bCz1xu17.js","./show-BE2j4mXH.js","./calendar-BIYI0UEN.js","./index-C4w9ZFWv.js","./view-BQgk2vf2.js","./index-C7q-L0oK.js","./view-MxhBhecU.js","./index-BjrkEKEA.js","./view-CuRWg6Vy.js","./index-BHdDT3Pw.js","./view-B6y6UoLc.js","./index-oIkgdc0P.js","./index-CliuML5d.js","./show-BvoZ3OZw.js","./index-Do91iPNV.js","./index-CXSPyDtE.js","./view-DutQTG04.js","./conduct-DAFAM9iB.js","./create-Ccp_V9mw.js","./index-CXXnLIHW.js","./show-BpwqVyM7.js","./index-a-k5V4FO.js","./index-BBK-kjUi.js","./view-BCx9zldz.js","./index-B_KXJsn8.js","./view-DMlNKBVi.js","./index-D_RurNX8.js","./index-Ca7SrcNc.js","./view-BZunHddR.js","./index-CAowLqrd.js","./view-tmsSxp-b.js","./index-FenZt1ms.js","./show-BycAc_7C.js","./index-LirCRkvz.js","./convert-to-employee-CO9VcazV.js","./index-CtgTfJON.js","./show-CNC2pJ3N.js","./index-dYs88eYh.js","./view-QPEhvTas.js","./index-DF1ZwPCc.js","./view-CaB7pEA9.js","./index-BUnAbu-P.js","./view-CCoroCS-.js","./index-CUAmS3rZ.js","./view-B4Ouh6W1.js","./index-DqStkUQ1.js","./index-eDqhVXXo.js","./view-3cayeoOE.js","./index-BHtSSY7W.js","./index-CKLb641f.js","./view-Bcp_B_rB.js","./create-DLtpyYjA.js","./tag-input-CYFtvuye.js","./edit-QebnXdA4.js","./index-C54nT5Yz.js","./show-DQG0on2g.js","./index-BnrVyf3u.js","./index-CjzWk_ZJ.js","./create-BheCj4ym.js","./edit-DjsKec_P.js","./generate-B31RGNdb.js","./index-DZQhmO6B.js","./show-DbSPEPnC.js","./index-eU-Za_AM.js","./show-BymPKoVk.js","./index-6LTDn-UU.js","./view-DCcIYGV3.js","./index-DQ3aRve8.js","./view-CVkBhXON.js","./index-nVvQbnsy.js","./calendar-D8J8oqH5.js","./index-DgeuSlBw.js","./view-DWGa739J.js","./index-Bb0VZA8d.js","./index-DyE5rLn4.js","./view-B3rUpN41.js","./index-DDy2R2CQ.js","./view-uS6KDj7X.js","./index-SaJtqg5u.js","./show-CybCj4bb.js","./dashboard-CjWJLvWy.js","./index-CZ__vnbw.js","./show-CykoYY0n.js","./index-BO1GfKKH.js","./show-DjwI4OmG.js","./calendar-DfNCnpLa.js","./index-DIWCFN1w.js","./show-9-h59xby.js","./index-lKVtPyMa.js","./view-D20nYCWu.js","./index-HArAULev.js","./view-DeUPN3Lm.js","./expenses-CmzvyRgK.js","./index-DzBfNGWk.js","./view-Dk3LMVy_.js","./index-x3wba7f8.js","./view-CYPT8osd.js","./AboutUs-vWjz2UwH.js","./useScrollAnimation-B_bDsIuD.js","./ContactSection-CkFTBtM_.js","./FaqSection-BY-x8sGl.js","./FeaturesSection-BzYebja-.js","./Footer-DYzWJxz2.js","./Header-DSpFBPRg.js","./HeroSection-DA1v_MUl.js","./LivePreview-C_sBOW22.js","./NewsletterSection-_PPq1Z7c.js","./PlansSection-DtxabAxJ.js","./ScreenshotsSection-D2ZPR3ba.js","./SectionNavigation-DfvHeZF8.js","./TeamSection-BE8y5fxy.js","./TestimonialsSection-BBK5hBBz.js","./WhyChooseUs-D0Z3Iwda.js","./custom-page-DBXfKFuz.js","./create-BfpiSaku.js","./toaster-Bc5RPjCT.js","./edit-DAWk3oUj.js","./index-COW26pQl.js","./index-Dfebjmv3.js","./settings-about-JX2fIJfN.js","./settings-contact-BxDnZmJY.js","./settings-features-D5tR7qBn.js","./settings-templates-CcxILozz.js","./settings-Bk77v2EW.js","./index-H0cP0TB0.js","./manage-language-CGYdLx1S.js","./media-library-3f5QZM0Y.js","./index-B7zZTUAa.js","./view-IV1m7h3B.js","./index-u3ofBdMa.js","./view-Dj9oYHfh.js","./index-FYsS30Ex.js","./view-B9Mk3uSh.js","./index-xIo19lnh.js","./view-DRyLo1AQ.js","./index-bfe9RyLm.js","./index-0GAojLJl.js","./view-D0UOO-Zv.js","./index-jeUcLTYI.js","./index-DxAVfdjC.js","./i18n-CqJ5YDxB.js","./create-CBwPB0be.js","./form-B1XmHAuS.js","./edit-BJnyqyj3.js","./index-C5HX2syJ.js","./index-DHgWAWKP.css","./plan-orders-4mko7r2G.js","./plan-request-Bu_hbxlK.js","./payout-requests-CPWxRqD3.js","./referral-dashboard-C2g4geQy.js","./referral-settings-BKCmGjH9.js","./referred-users-section-Dgvsv0rM.js","./index-CSAVlAvr.js","./referred-users-B8GSmKWl.js","./index-ns4FHn0d.js","./cache-settings-DlnknrQc.js","./chatgpt-settings-Zg5NWhoC.js","./cookie-settings-BBpxEGLW.js","./currency-settings-DhsttdXI.js","./email-notification-settings-kvAQXxww.js","./email-settings-Cuv3rkBL.js","./experience-certificate-settings-ehBlvMWz.js","./google-calendar-settings-D-cPcwJW.js","./ip-restriction-settings-BSbH37-A.js","./joining-letter-settings-BBPSdfoB.js","./noc-settings-aVEP8XAZ.js","./payment-settings-BNioH_Ui.js","./recaptcha-settings-CL9cjKNi.js","./seo-settings-DADArMYw.js","./storage-settings-BfWvEwNu.js","./stripe-settings-DHPxg0Ji.js","./system-settings-MMs7wpF8.js","./webhook-settings-Dt1l7aci.js","./working-days-settings-CrWUGleb.js","./zekto-settings-KS2SY6n4.js","./index-6lrcnwMJ.js","./profile-settings-D3T2qk8P.js","./dashboard-BOQZLNO7.js","./index-DEIax7CG.js","./view-CyQ_SFfs.js","./welcome-Cf4lUqR6.js"])))=>i.map(i=>d[i]); -import{g as rw,c as hv,r as A,R as fe,a as aw,b as iw,d as ow,j as x,e as sw,f as $p,h as ex,T as Fp,D as Gp,C as Yp,i as tx,P as nx,O as Xp,u as lw,k as uw,l as cw,m as rx,A as fw,n as Hi,o as ax,p as dw,q as pw,s as ix,t as mw,v as hw,w as gw,x as yw}from"./ui-Z445SNHD.js";/* empty css *//* empty css */import{c as ox}from"./utils-BWxnHGCV.js";const vw="modulepreload",bw=function(t,r){return new URL(t,r).href},gv={},O=function(r,a,o){let l=Promise.resolve();if(a&&a.length>0){let f=function(y){return Promise.all(y.map(g=>Promise.resolve(g).then(S=>({status:"fulfilled",value:S}),S=>({status:"rejected",reason:S}))))};const p=document.getElementsByTagName("link"),m=document.querySelector("meta[property=csp-nonce]"),h=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));l=f(a.map(y=>{if(y=bw(y,o),y in gv)return;gv[y]=!0;const g=y.endsWith(".css"),S=g?'[rel="stylesheet"]':"";if(!!o)for(let _=p.length-1;_>=0;_--){const E=p[_];if(E.href===y&&(!g||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${y}"]${S}`))return;const b=document.createElement("link");if(b.rel=g?"stylesheet":vw,g||(b.as="script"),b.crossOrigin="",b.href=y,h&&b.setAttribute("nonce",h),document.head.appendChild(b),g)return new Promise((_,E)=>{b.addEventListener("load",_),b.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${y}`)))})}))}function u(f){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=f,window.dispatchEvent(p),!p.defaultPrevented)throw f}return l.then(f=>{for(const p of f||[])p.status==="rejected"&&u(p.reason);return r().catch(u)})};var sx=typeof global=="object"&&global&&global.Object===Object&&global,xw=typeof self=="object"&&self&&self.Object===Object&&self,sr=sx||xw||Function("return this")(),_r=sr.Symbol,lx=Object.prototype,Sw=lx.hasOwnProperty,_w=lx.toString,Ko=_r?_r.toStringTag:void 0;function Ew(t){var r=Sw.call(t,Ko),a=t[Ko];try{t[Ko]=void 0;var o=!0}catch{}var l=_w.call(t);return o&&(r?t[Ko]=a:delete t[Ko]),l}var ww=Object.prototype,Tw=ww.toString;function Aw(t){return Tw.call(t)}var Ow="[object Null]",Rw="[object Undefined]",yv=_r?_r.toStringTag:void 0;function ei(t){return t==null?t===void 0?Rw:Ow:yv&&yv in Object(t)?Ew(t):Aw(t)}function Er(t){return t!=null&&typeof t=="object"}var Cw="[object Symbol]";function Eu(t){return typeof t=="symbol"||Er(t)&&ei(t)==Cw}function Dw(t,r){for(var a=-1,o=t==null?0:t.length,l=Array(o);++a0){if(++r>=aT)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}function lT(t){return function(){return t}}var su=(function(){try{var t=ni(Object,"defineProperty");return t({},"",{}),t}catch{}})(),uT=su?function(t,r){return su(t,"toString",{configurable:!0,enumerable:!1,value:lT(r),writable:!0})}:cx,cT=sT(uT);function fT(t,r){for(var a=-1,o=t==null?0:t.length;++a-1&&t%1==0&&t-1&&t%1==0&&t<=bT}function Tu(t){return t!=null&&Jp(t.length)&&!Kp(t)}function xT(t,r,a){if(!Ln(a))return!1;var o=typeof r;return(o=="number"?Tu(a)&&wu(r,a.length):o=="string"&&r in a)?_s(a[r],t):!1}function ST(t){return vT(function(r,a){var o=-1,l=a.length,u=l>1?a[l-1]:void 0,f=l>2?a[2]:void 0;for(u=t.length>3&&typeof u=="function"?(l--,u):void 0,f&&xT(a[0],a[1],f)&&(u=l<3?void 0:u,l=1),r=Object(r);++o-1}function jA(t,r){var a=this.__data__,o=Au(a,t);return o<0?(++this.size,a.push([t,r])):a[o][1]=r,this}function Yr(t){var r=-1,a=t==null?0:t.length;for(this.clear();++rp))return!1;var h=u.get(t),y=u.get(r);if(h&&y)return h==r&&y==t;var g=-1,S=!0,T=a&NR?new cu:void 0;for(u.set(t,r),u.set(r,t);++g=r||D<0||g&&P>=u}function C(){var U=Wf();if(E(U))return L(U);p=setTimeout(C,_(U))}function L(U){return p=void 0,S&&o?T(U):(o=l=void 0,f)}function z(){p!==void 0&&clearTimeout(p),h=0,o=m=l=p=void 0}function F(){return p===void 0?f:L(Wf())}function ee(){var U=Wf(),D=E(U);if(o=arguments,l=this,m=U,D){if(p===void 0)return b(m);if(g)return clearTimeout(p),p=setTimeout(C,r),T(m)}return p===void 0&&(p=setTimeout(C,r)),f}return ee.cancel=z,ee.flush=F,ee}function yp(t,r,a){(a!==void 0&&!_s(t[r],a)||a===void 0&&!(r in t))&&Qp(t,r,a)}function lC(t){return Er(t)&&Tu(t)}function vp(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}function uC(t){return gT(t,gx(t))}function cC(t,r,a,o,l,u,f){var p=vp(t,a),m=vp(r,a),h=f.get(m);if(h){yp(t,a,h);return}var y=u?u(p,m,a+"",t,r,f):void 0,g=y===void 0;if(g){var S=ir(m),T=!S&&ds(m),b=!S&&!T&&tm(m);y=m,S||T||b?ir(p)?y=p:lC(p)?y=rT(p):T?(g=!1,y=Sx(m,!0)):b?(g=!1,y=_x(m,!0)):y=[]:WA(m)||lu(m)?(y=p,lu(p)?y=uC(p):(!Ln(p)||Kp(p))&&(y=Ex(m))):g=!1}g&&(f.set(m,y),l(y,m,o,u,f),f.delete(m)),yp(t,a,y)}function Cx(t,r,a,o,l){t!==r&&rC(r,function(u,f){if(l||(l=new Sr),Ln(u))cC(t,r,f,a,Cx,o,l);else{var p=o?o(vp(t,f),u,f+"",t,r,l):void 0;p===void 0&&(p=u),yp(t,f,p)}},gx)}var fC={"&":"&","<":"<",">":">",'"':""","'":"'"},dC=eO(fC),Dx=/[&<>"']/g,pC=RegExp(Dx.source);function mC(t){return t=yx(t),t&&pC.test(t)?t.replace(Dx,dC):t}var hC=Object.prototype,gC=hC.hasOwnProperty;function yC(t,r){return t!=null&&gC.call(t,r)}function Nx(t,r){return t!=null&&tC(t,r,yC)}function Ea(t,r){return Rx(t,r)}var bp=ST(function(t,r,a){Cx(t,r,a)});function vC(t,r,a,o){if(!Ln(t))return t;r=rm(r,t);for(var l=-1,u=r.length,f=u-1,p=t;p!=null&&++l-1e3&&H<1e3||U.call(/e/,Z))return Z;var Be=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof H=="number"){var ke=H<0?-ne(-H):ne(H);if(ke!==H){var We=String(ke),Le=L.call(Z,We.length+1);return z.call(We,Be,"$&_")+"."+z.call(z.call(Le,/([0-9]{3})/g,"$&_"),/_$/,"")}}return z.call(Z,Be,"$&_")}var Y=SC,le=Y.custom,de=Qe(le)?le:null,Q={__proto__:null,double:'"',single:"'"},J={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};td=function H(Z,Be,ke,We){var Le=Be||{};if(pt(Le,"quoteStyle")&&!pt(Q,Le.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(pt(Le,"maxStringLength")&&(typeof Le.maxStringLength=="number"?Le.maxStringLength<0&&Le.maxStringLength!==1/0:Le.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var sn=pt(Le,"customInspect")?Le.customInspect:!0;if(typeof sn!="boolean"&&sn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(pt(Le,"indent")&&Le.indent!==null&&Le.indent!==" "&&!(parseInt(Le.indent,10)===Le.indent&&Le.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(pt(Le,"numericSeparator")&&typeof Le.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Yt=Le.numericSeparator;if(typeof Z>"u")return"undefined";if(Z===null)return"null";if(typeof Z=="boolean")return Z?"true":"false";if(typeof Z=="string")return _e(Z,Le);if(typeof Z=="number"){if(Z===0)return 1/0/Z>0?"0":"-0";var we=String(Z);return Yt?j(Z,we):we}if(typeof Z=="bigint"){var Ze=String(Z)+"n";return Yt?j(Z,Ze):Ze}var Rt=typeof Le.depth>"u"?5:Le.depth;if(typeof ke>"u"&&(ke=0),ke>=Rt&&Rt>0&&typeof Z=="object")return Oe(Z)?"[Array]":"[Object]";var At=Pn(Le,ke);if(typeof We>"u")We=[];else if(kt(We,Z)>=0)return"[Circular]";function Mt(wr,fr,io){if(fr&&(We=k.call(We),We.push(fr)),io){var Tr={depth:Le.depth};return pt(Le,"quoteStyle")&&(Tr.quoteStyle=Le.quoteStyle),H(wr,Tr,ke+1,We)}return H(wr,Le,ke+1,We)}if(typeof Z=="function"&&!Ae(Z)){var gt=it(Z),Wt=on(Z,Mt);return"[Function"+(gt?": "+gt:" (anonymous)")+"]"+(Wt.length>0?" { "+P.call(Wt,", ")+" }":"")}if(Qe(Z)){var ur=ae?z.call(String(Z),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(Z);return typeof Z=="object"&&!ae?Ke(ur):ur}if(Pe(Z)){for(var zt="<"+ee.call(String(Z.nodeName)),Xt=Z.attributes||[],Kn=0;Kn",zt}if(Oe(Z)){if(Z.length===0)return"[]";var un=on(Z,Mt);return At&&!Jt(un)?"["+It(un,At)+"]":"[ "+P.call(un,", ")+" ]"}if(he(Z)){var Oa=on(Z,Mt);return!("cause"in Error.prototype)&&"cause"in Z&&!R.call(Z,"cause")?"{ ["+String(Z)+"] "+P.call(D.call("[cause]: "+Mt(Z.cause),Oa),", ")+" }":Oa.length===0?"["+String(Z)+"]":"{ ["+String(Z)+"] "+P.call(Oa,", ")+" }"}if(typeof Z=="object"&&sn){if(de&&typeof Z[de]=="function"&&Y)return Y(Z,{depth:Rt-ke});if(sn!=="symbol"&&typeof Z.inspect=="function")return Z.inspect()}if(Ot(Z)){var ro=[];return o&&o.call(Z,function(wr,fr){ro.push(Mt(fr,Z,!0)+" => "+Mt(wr,Z))}),nt("Map",a.call(Z),ro,At)}if(Ue(Z)){var Qn=[];return p&&p.call(Z,function(wr){Qn.push(Mt(wr,Z))}),nt("Set",f.call(Z),Qn,At)}if(ht(Z))return Nt("WeakMap");if(ye(Z))return Nt("WeakSet");if(Tt(Z))return Nt("WeakRef");if(ue(Z))return Ke(Mt(Number(Z)));if(bt(Z))return Ke(Mt(q.call(Z)));if(ze(Z))return Ke(b.call(Z));if(ce(Z))return Ke(Mt(String(Z)));if(typeof window<"u"&&Z===window)return"{ [object Window] }";if(typeof globalThis<"u"&&Z===globalThis||typeof hv<"u"&&Z===hv)return"{ [object globalThis] }";if(!Se(Z)&&!Ae(Z)){var Lt=on(Z,Mt),en=B?B(Z)===Object.prototype:Z instanceof Object||Z.constructor===Object,cr=Z instanceof Object?"":"null prototype",ri=!en&&pe&&Object(Z)===Z&&pe in Z?L.call(at(Z),8,-1):cr?"Object":"",Bu=en||typeof Z.constructor!="function"?"":Z.constructor.name?Z.constructor.name+" ":"",ao=Bu+(ri||cr?"["+P.call(D.call([],ri||[],cr||[]),": ")+"] ":"");return Lt.length===0?ao+"{}":At?ao+"{"+It(Lt,At)+"}":ao+"{ "+P.call(Lt,", ")+" }"}return String(Z)};function se(H,Z,Be){var ke=Be.quoteStyle||Z,We=Q[ke];return We+H+We}function me(H){return z.call(String(H),/"/g,""")}function Te(H){return!pe||!(typeof H=="object"&&(pe in H||typeof H[pe]<"u"))}function Oe(H){return at(H)==="[object Array]"&&Te(H)}function Se(H){return at(H)==="[object Date]"&&Te(H)}function Ae(H){return at(H)==="[object RegExp]"&&Te(H)}function he(H){return at(H)==="[object Error]"&&Te(H)}function ce(H){return at(H)==="[object String]"&&Te(H)}function ue(H){return at(H)==="[object Number]"&&Te(H)}function ze(H){return at(H)==="[object Boolean]"&&Te(H)}function Qe(H){if(ae)return H&&typeof H=="object"&&H instanceof Symbol;if(typeof H=="symbol")return!0;if(!H||typeof H!="object"||!I)return!1;try{return I.call(H),!0}catch{}return!1}function bt(H){if(!H||typeof H!="object"||!q)return!1;try{return q.call(H),!0}catch{}return!1}var Ye=Object.prototype.hasOwnProperty||function(H){return H in this};function pt(H,Z){return Ye.call(H,Z)}function at(H){return _.call(H)}function it(H){if(H.name)return H.name;var Z=C.call(E.call(H),/^function\s*([\w$]+)/);return Z?Z[1]:null}function kt(H,Z){if(H.indexOf)return H.indexOf(Z);for(var Be=0,ke=H.length;BeZ.maxStringLength){var Be=H.length-Z.maxStringLength,ke="... "+Be+" more character"+(Be>1?"s":"");return _e(L.call(H,0,Z.maxStringLength),Z)+ke}var We=J[Z.quoteStyle||"single"];We.lastIndex=0;var Le=z.call(z.call(H,We,"\\$1"),/[\x00-\x1f]/g,Ce);return se(Le,"single",Z)}function Ce(H){var Z=H.charCodeAt(0),Be={8:"b",9:"t",10:"n",12:"f",13:"r"}[Z];return Be?"\\"+Be:"\\x"+(Z<16?"0":"")+F.call(Z.toString(16))}function Ke(H){return"Object("+H+")"}function Nt(H){return H+" { ? }"}function nt(H,Z,Be,ke){var We=ke?It(Be,ke):P.call(Be,", ");return H+" ("+Z+") {"+We+"}"}function Jt(H){for(var Z=0;Zi.map(i=>d[i]); +import{g as rw,c as hv,r as A,R as fe,a as aw,b as iw,d as ow,j as x,e as sw,f as $p,h as ex,T as Fp,D as Gp,C as Yp,i as tx,P as nx,O as Xp,u as lw,k as uw,l as cw,m as rx,A as fw,n as Hi,o as ax,p as dw,q as pw,s as ix,t as mw,v as hw,w as gw,x as yw}from"./ui-Z445SNHD.js";/* empty css *//* empty css */import{c as ox}from"./utils-BWxnHGCV.js";const vw="modulepreload",bw=function(t,r){return new URL(t,r).href},gv={},O=function(r,a,o){let l=Promise.resolve();if(a&&a.length>0){let f=function(y){return Promise.all(y.map(h=>Promise.resolve(h).then(S=>({status:"fulfilled",value:S}),S=>({status:"rejected",reason:S}))))};const p=document.getElementsByTagName("link"),m=document.querySelector("meta[property=csp-nonce]"),g=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));l=f(a.map(y=>{if(y=bw(y,o),y in gv)return;gv[y]=!0;const h=y.endsWith(".css"),S=h?'[rel="stylesheet"]':"";if(!!o)for(let _=p.length-1;_>=0;_--){const E=p[_];if(E.href===y&&(!h||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${y}"]${S}`))return;const b=document.createElement("link");if(b.rel=h?"stylesheet":vw,h||(b.as="script"),b.crossOrigin="",b.href=y,g&&b.setAttribute("nonce",g),document.head.appendChild(b),h)return new Promise((_,E)=>{b.addEventListener("load",_),b.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${y}`)))})}))}function u(f){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=f,window.dispatchEvent(p),!p.defaultPrevented)throw f}return l.then(f=>{for(const p of f||[])p.status==="rejected"&&u(p.reason);return r().catch(u)})};var sx=typeof global=="object"&&global&&global.Object===Object&&global,xw=typeof self=="object"&&self&&self.Object===Object&&self,sr=sx||xw||Function("return this")(),_r=sr.Symbol,lx=Object.prototype,Sw=lx.hasOwnProperty,_w=lx.toString,Ko=_r?_r.toStringTag:void 0;function Ew(t){var r=Sw.call(t,Ko),a=t[Ko];try{t[Ko]=void 0;var o=!0}catch{}var l=_w.call(t);return o&&(r?t[Ko]=a:delete t[Ko]),l}var ww=Object.prototype,Tw=ww.toString;function Aw(t){return Tw.call(t)}var Ow="[object Null]",Rw="[object Undefined]",yv=_r?_r.toStringTag:void 0;function ei(t){return t==null?t===void 0?Rw:Ow:yv&&yv in Object(t)?Ew(t):Aw(t)}function Er(t){return t!=null&&typeof t=="object"}var Cw="[object Symbol]";function Eu(t){return typeof t=="symbol"||Er(t)&&ei(t)==Cw}function Dw(t,r){for(var a=-1,o=t==null?0:t.length,l=Array(o);++a0){if(++r>=aT)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}function lT(t){return function(){return t}}var su=(function(){try{var t=ni(Object,"defineProperty");return t({},"",{}),t}catch{}})(),uT=su?function(t,r){return su(t,"toString",{configurable:!0,enumerable:!1,value:lT(r),writable:!0})}:cx,cT=sT(uT);function fT(t,r){for(var a=-1,o=t==null?0:t.length;++a-1&&t%1==0&&t-1&&t%1==0&&t<=bT}function Tu(t){return t!=null&&Jp(t.length)&&!Kp(t)}function xT(t,r,a){if(!Ln(a))return!1;var o=typeof r;return(o=="number"?Tu(a)&&wu(r,a.length):o=="string"&&r in a)?_s(a[r],t):!1}function ST(t){return vT(function(r,a){var o=-1,l=a.length,u=l>1?a[l-1]:void 0,f=l>2?a[2]:void 0;for(u=t.length>3&&typeof u=="function"?(l--,u):void 0,f&&xT(a[0],a[1],f)&&(u=l<3?void 0:u,l=1),r=Object(r);++o-1}function jA(t,r){var a=this.__data__,o=Au(a,t);return o<0?(++this.size,a.push([t,r])):a[o][1]=r,this}function Yr(t){var r=-1,a=t==null?0:t.length;for(this.clear();++rp))return!1;var g=u.get(t),y=u.get(r);if(g&&y)return g==r&&y==t;var h=-1,S=!0,T=a&NR?new cu:void 0;for(u.set(t,r),u.set(r,t);++h=r||D<0||h&&P>=u}function C(){var U=Wf();if(E(U))return L(U);p=setTimeout(C,_(U))}function L(U){return p=void 0,S&&o?T(U):(o=l=void 0,f)}function z(){p!==void 0&&clearTimeout(p),g=0,o=m=l=p=void 0}function F(){return p===void 0?f:L(Wf())}function ee(){var U=Wf(),D=E(U);if(o=arguments,l=this,m=U,D){if(p===void 0)return b(m);if(h)return clearTimeout(p),p=setTimeout(C,r),T(m)}return p===void 0&&(p=setTimeout(C,r)),f}return ee.cancel=z,ee.flush=F,ee}function yp(t,r,a){(a!==void 0&&!_s(t[r],a)||a===void 0&&!(r in t))&&Qp(t,r,a)}function lC(t){return Er(t)&&Tu(t)}function vp(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}function uC(t){return gT(t,gx(t))}function cC(t,r,a,o,l,u,f){var p=vp(t,a),m=vp(r,a),g=f.get(m);if(g){yp(t,a,g);return}var y=u?u(p,m,a+"",t,r,f):void 0,h=y===void 0;if(h){var S=ir(m),T=!S&&ds(m),b=!S&&!T&&tm(m);y=m,S||T||b?ir(p)?y=p:lC(p)?y=rT(p):T?(h=!1,y=Sx(m,!0)):b?(h=!1,y=_x(m,!0)):y=[]:WA(m)||lu(m)?(y=p,lu(p)?y=uC(p):(!Ln(p)||Kp(p))&&(y=Ex(m))):h=!1}h&&(f.set(m,y),l(y,m,o,u,f),f.delete(m)),yp(t,a,y)}function Cx(t,r,a,o,l){t!==r&&rC(r,function(u,f){if(l||(l=new Sr),Ln(u))cC(t,r,f,a,Cx,o,l);else{var p=o?o(vp(t,f),u,f+"",t,r,l):void 0;p===void 0&&(p=u),yp(t,f,p)}},gx)}var fC={"&":"&","<":"<",">":">",'"':""","'":"'"},dC=eO(fC),Dx=/[&<>"']/g,pC=RegExp(Dx.source);function mC(t){return t=yx(t),t&&pC.test(t)?t.replace(Dx,dC):t}var hC=Object.prototype,gC=hC.hasOwnProperty;function yC(t,r){return t!=null&&gC.call(t,r)}function Nx(t,r){return t!=null&&tC(t,r,yC)}function Ea(t,r){return Rx(t,r)}var bp=ST(function(t,r,a){Cx(t,r,a)});function vC(t,r,a,o){if(!Ln(t))return t;r=rm(r,t);for(var l=-1,u=r.length,f=u-1,p=t;p!=null&&++l-1e3&&H<1e3||U.call(/e/,Z))return Z;var Be=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof H=="number"){var ke=H<0?-ne(-H):ne(H);if(ke!==H){var We=String(ke),Le=L.call(Z,We.length+1);return z.call(We,Be,"$&_")+"."+z.call(z.call(Le,/([0-9]{3})/g,"$&_"),/_$/,"")}}return z.call(Z,Be,"$&_")}var Y=SC,le=Y.custom,de=Qe(le)?le:null,Q={__proto__:null,double:'"',single:"'"},J={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};td=function H(Z,Be,ke,We){var Le=Be||{};if(pt(Le,"quoteStyle")&&!pt(Q,Le.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(pt(Le,"maxStringLength")&&(typeof Le.maxStringLength=="number"?Le.maxStringLength<0&&Le.maxStringLength!==1/0:Le.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var sn=pt(Le,"customInspect")?Le.customInspect:!0;if(typeof sn!="boolean"&&sn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(pt(Le,"indent")&&Le.indent!==null&&Le.indent!==" "&&!(parseInt(Le.indent,10)===Le.indent&&Le.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(pt(Le,"numericSeparator")&&typeof Le.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Yt=Le.numericSeparator;if(typeof Z>"u")return"undefined";if(Z===null)return"null";if(typeof Z=="boolean")return Z?"true":"false";if(typeof Z=="string")return _e(Z,Le);if(typeof Z=="number"){if(Z===0)return 1/0/Z>0?"0":"-0";var we=String(Z);return Yt?j(Z,we):we}if(typeof Z=="bigint"){var Ze=String(Z)+"n";return Yt?j(Z,Ze):Ze}var Rt=typeof Le.depth>"u"?5:Le.depth;if(typeof ke>"u"&&(ke=0),ke>=Rt&&Rt>0&&typeof Z=="object")return Oe(Z)?"[Array]":"[Object]";var At=Pn(Le,ke);if(typeof We>"u")We=[];else if(kt(We,Z)>=0)return"[Circular]";function Mt(wr,fr,io){if(fr&&(We=k.call(We),We.push(fr)),io){var Tr={depth:Le.depth};return pt(Le,"quoteStyle")&&(Tr.quoteStyle=Le.quoteStyle),H(wr,Tr,ke+1,We)}return H(wr,Le,ke+1,We)}if(typeof Z=="function"&&!Ae(Z)){var gt=it(Z),Wt=on(Z,Mt);return"[Function"+(gt?": "+gt:" (anonymous)")+"]"+(Wt.length>0?" { "+P.call(Wt,", ")+" }":"")}if(Qe(Z)){var ur=ae?z.call(String(Z),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(Z);return typeof Z=="object"&&!ae?Ke(ur):ur}if(Pe(Z)){for(var zt="<"+ee.call(String(Z.nodeName)),Xt=Z.attributes||[],Kn=0;Kn",zt}if(Oe(Z)){if(Z.length===0)return"[]";var un=on(Z,Mt);return At&&!Jt(un)?"["+It(un,At)+"]":"[ "+P.call(un,", ")+" ]"}if(he(Z)){var Oa=on(Z,Mt);return!("cause"in Error.prototype)&&"cause"in Z&&!R.call(Z,"cause")?"{ ["+String(Z)+"] "+P.call(D.call("[cause]: "+Mt(Z.cause),Oa),", ")+" }":Oa.length===0?"["+String(Z)+"]":"{ ["+String(Z)+"] "+P.call(Oa,", ")+" }"}if(typeof Z=="object"&&sn){if(de&&typeof Z[de]=="function"&&Y)return Y(Z,{depth:Rt-ke});if(sn!=="symbol"&&typeof Z.inspect=="function")return Z.inspect()}if(Ot(Z)){var ro=[];return o&&o.call(Z,function(wr,fr){ro.push(Mt(fr,Z,!0)+" => "+Mt(wr,Z))}),nt("Map",a.call(Z),ro,At)}if(Ue(Z)){var Qn=[];return p&&p.call(Z,function(wr){Qn.push(Mt(wr,Z))}),nt("Set",f.call(Z),Qn,At)}if(ht(Z))return Nt("WeakMap");if(ye(Z))return Nt("WeakSet");if(Tt(Z))return Nt("WeakRef");if(ue(Z))return Ke(Mt(Number(Z)));if(bt(Z))return Ke(Mt(q.call(Z)));if(ze(Z))return Ke(b.call(Z));if(ce(Z))return Ke(Mt(String(Z)));if(typeof window<"u"&&Z===window)return"{ [object Window] }";if(typeof globalThis<"u"&&Z===globalThis||typeof hv<"u"&&Z===hv)return"{ [object globalThis] }";if(!Se(Z)&&!Ae(Z)){var Lt=on(Z,Mt),en=B?B(Z)===Object.prototype:Z instanceof Object||Z.constructor===Object,cr=Z instanceof Object?"":"null prototype",ri=!en&&pe&&Object(Z)===Z&&pe in Z?L.call(at(Z),8,-1):cr?"Object":"",Bu=en||typeof Z.constructor!="function"?"":Z.constructor.name?Z.constructor.name+" ":"",ao=Bu+(ri||cr?"["+P.call(D.call([],ri||[],cr||[]),": ")+"] ":"");return Lt.length===0?ao+"{}":At?ao+"{"+It(Lt,At)+"}":ao+"{ "+P.call(Lt,", ")+" }"}return String(Z)};function se(H,Z,Be){var ke=Be.quoteStyle||Z,We=Q[ke];return We+H+We}function me(H){return z.call(String(H),/"/g,""")}function Te(H){return!pe||!(typeof H=="object"&&(pe in H||typeof H[pe]<"u"))}function Oe(H){return at(H)==="[object Array]"&&Te(H)}function Se(H){return at(H)==="[object Date]"&&Te(H)}function Ae(H){return at(H)==="[object RegExp]"&&Te(H)}function he(H){return at(H)==="[object Error]"&&Te(H)}function ce(H){return at(H)==="[object String]"&&Te(H)}function ue(H){return at(H)==="[object Number]"&&Te(H)}function ze(H){return at(H)==="[object Boolean]"&&Te(H)}function Qe(H){if(ae)return H&&typeof H=="object"&&H instanceof Symbol;if(typeof H=="symbol")return!0;if(!H||typeof H!="object"||!I)return!1;try{return I.call(H),!0}catch{}return!1}function bt(H){if(!H||typeof H!="object"||!q)return!1;try{return q.call(H),!0}catch{}return!1}var Ye=Object.prototype.hasOwnProperty||function(H){return H in this};function pt(H,Z){return Ye.call(H,Z)}function at(H){return _.call(H)}function it(H){if(H.name)return H.name;var Z=C.call(E.call(H),/^function\s*([\w$]+)/);return Z?Z[1]:null}function kt(H,Z){if(H.indexOf)return H.indexOf(Z);for(var Be=0,ke=H.length;BeZ.maxStringLength){var Be=H.length-Z.maxStringLength,ke="... "+Be+" more character"+(Be>1?"s":"");return _e(L.call(H,0,Z.maxStringLength),Z)+ke}var We=J[Z.quoteStyle||"single"];We.lastIndex=0;var Le=z.call(z.call(H,We,"\\$1"),/[\x00-\x1f]/g,Ce);return se(Le,"single",Z)}function Ce(H){var Z=H.charCodeAt(0),Be={8:"b",9:"t",10:"n",12:"f",13:"r"}[Z];return Be?"\\"+Be:"\\x"+(Z<16?"0":"")+F.call(Z.toString(16))}function Ke(H){return"Object("+H+")"}function Nt(H){return H+" { ? }"}function nt(H,Z,Be,ke){var We=ke?It(Be,ke):P.call(Be,", ");return H+" ("+Z+") {"+We+"}"}function Jt(H){for(var Z=0;Z=0)return!1;return!0}function Pn(H,Z){var Be;if(H.indent===" ")Be=" ";else if(typeof H.indent=="number"&&H.indent>0)Be=P.call(Array(H.indent+1)," ");else return null;return{base:Be,prev:P.call(Array(Z+1),Be)}}function It(H,Z){if(H.length===0)return"";var Be=` `+Z.prev+Z.base;return Be+P.call(H,","+Be)+` -`+Z.prev}function on(H,Z){var Be=Oe(H),ke=[];if(Be){ke.length=H.length;for(var We=0;We"u"||!D?t:D(Uint8Array),ae={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":U&&D?D([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":K,"%AsyncGenerator%":K,"%AsyncGeneratorFunction%":K,"%AsyncIteratorPrototype%":K,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":E,"%GeneratorFunction%":K,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":U&&D?D(D([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!U||!D?t:D(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":L,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":l,"%ReferenceError%":u,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!U||!D?t:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":U&&D?D(""[Symbol.iterator]()):t,"%Symbol%":U?Symbol:t,"%SyntaxError%":f,"%ThrowTypeError%":ee,"%TypedArray%":I,"%TypeError%":p,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":m,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":q,"%Function.prototype.apply%":ne,"%Object.defineProperty%":z,"%Object.getPrototypeOf%":P,"%Math.abs%":h,"%Math.floor%":y,"%Math.max%":g,"%Math.min%":S,"%Math.pow%":T,"%Math.round%":b,"%Math.sign%":_,"%Reflect.getPrototypeOf%":k};if(D)try{null.error}catch(Ae){var pe=D(D(Ae));ae["%Error.prototype%"]=pe}var R=function Ae(he){var ce;if(he==="%AsyncFunction%")ce=C("async function () {}");else if(he==="%GeneratorFunction%")ce=C("function* () {}");else if(he==="%AsyncGeneratorFunction%")ce=C("async function* () {}");else if(he==="%AsyncGenerator%"){var ue=Ae("%AsyncGeneratorFunction%");ue&&(ce=ue.prototype)}else if(he==="%AsyncIteratorPrototype%"){var ze=Ae("%AsyncGenerator%");ze&&D&&(ce=D(ze.prototype))}return ae[he]=ce,ce},B={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},j=Cu(),Y=GC(),le=j.call(q,Array.prototype.concat),de=j.call(ne,Array.prototype.splice),Q=j.call(q,String.prototype.replace),J=j.call(q,String.prototype.slice),se=j.call(q,RegExp.prototype.exec),me=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Te=/\\(\\)?/g,Oe=function(he){var ce=J(he,0,1),ue=J(he,-1);if(ce==="%"&&ue!=="%")throw new f("invalid intrinsic syntax, expected closing `%`");if(ue==="%"&&ce!=="%")throw new f("invalid intrinsic syntax, expected opening `%`");var ze=[];return Q(he,me,function(Qe,bt,Ye,pt){ze[ze.length]=Ye?Q(pt,Te,"$1"):bt||Qe}),ze},Se=function(he,ce){var ue=he,ze;if(Y(B,ue)&&(ze=B[ue],ue="%"+ze[0]+"%"),Y(ae,ue)){var Qe=ae[ue];if(Qe===K&&(Qe=R(ue)),typeof Qe>"u"&&!ce)throw new p("intrinsic "+he+" exists, but is not available. Please file an issue!");return{alias:ze,name:ue,value:Qe}}throw new f("intrinsic "+he+" does not exist!")};return Md=function(he,ce){if(typeof he!="string"||he.length===0)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ce!="boolean")throw new p('"allowMissing" argument must be a boolean');if(se(/^%?[^%]*%?$/,he)===null)throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ue=Oe(he),ze=ue.length>0?ue[0]:"",Qe=Se("%"+ze+"%",ce),bt=Qe.name,Ye=Qe.value,pt=!1,at=Qe.alias;at&&(ze=at[0],de(ue,le([0,1],at)));for(var it=1,kt=!0;it=ue.length){var Ue=L(Ye,Ot);kt=!!Ue,kt&&"get"in Ue&&!("originalValue"in Ue.get)?Ye=Ue.get:Ye=Ye[Ot]}else kt=Y(Ye,Ot),Ye=Ye[Ot];kt&&!pt&&(ae[bt]=Ye)}}return Ye},Md}var zd,Rb;function Vx(){if(Rb)return zd;Rb=1;var t=sm(),r=Ux(),a=r([t("%String.prototype.indexOf%")]);return zd=function(l,u){var f=t(l,!!u);return typeof f=="function"&&a(l,".prototype.")>-1?r([f]):f},zd}var Ud,Cb;function qx(){if(Cb)return Ud;Cb=1;var t=sm(),r=Vx(),a=Ru(),o=Wi(),l=t("%Map%",!0),u=r("Map.prototype.get",!0),f=r("Map.prototype.set",!0),p=r("Map.prototype.has",!0),m=r("Map.prototype.delete",!0),h=r("Map.prototype.size",!0);return Ud=!!l&&function(){var g,S={assert:function(T){if(!S.has(T))throw new o("Side channel does not contain "+a(T))},delete:function(T){if(g){var b=m(g,T);return h(g)===0&&(g=void 0),b}return!1},get:function(T){if(g)return u(g,T)},has:function(T){return g?p(g,T):!1},set:function(T,b){g||(g=new l),f(g,T,b)}};return S},Ud}var Vd,Db;function YC(){if(Db)return Vd;Db=1;var t=sm(),r=Vx(),a=Ru(),o=qx(),l=Wi(),u=t("%WeakMap%",!0),f=r("WeakMap.prototype.get",!0),p=r("WeakMap.prototype.set",!0),m=r("WeakMap.prototype.has",!0),h=r("WeakMap.prototype.delete",!0);return Vd=u?function(){var g,S,T={assert:function(b){if(!T.has(b))throw new l("Side channel does not contain "+a(b))},delete:function(b){if(u&&b&&(typeof b=="object"||typeof b=="function")){if(g)return h(g,b)}else if(o&&S)return S.delete(b);return!1},get:function(b){return u&&b&&(typeof b=="object"||typeof b=="function")&&g?f(g,b):S&&S.get(b)},has:function(b){return u&&b&&(typeof b=="object"||typeof b=="function")&&g?m(g,b):!!S&&S.has(b)},set:function(b,_){u&&b&&(typeof b=="object"||typeof b=="function")?(g||(g=new u),p(g,b,_)):o&&(S||(S=o()),S.set(b,_))}};return T}:o,Vd}var qd,Nb;function Hx(){if(Nb)return qd;Nb=1;var t=Wi(),r=Ru(),a=_C(),o=qx(),l=YC(),u=l||o||a;return qd=function(){var p,m={assert:function(h){if(!m.has(h))throw new t("Side channel does not contain "+r(h))},delete:function(h){return!!p&&p.delete(h)},get:function(h){return p&&p.get(h)},has:function(h){return!!p&&p.has(h)},set:function(h,y){p||(p=u()),p.set(h,y)}};return m},qd}var Hd,Lb;function lm(){if(Lb)return Hd;Lb=1;var t=String.prototype.replace,r=/%20/g,a={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Hd={default:a.RFC3986,formatters:{RFC1738:function(o){return t.call(o,r,"+")},RFC3986:function(o){return String(o)}},RFC1738:a.RFC1738,RFC3986:a.RFC3986},Hd}var Bd,jb;function Bx(){if(jb)return Bd;jb=1;var t=lm(),r=Hx(),a=Object.prototype.hasOwnProperty,o=Array.isArray,l=r(),u=function(D,P){return l.set(D,P),D},f=function(D){return l.has(D)},p=function(D){return l.get(D)},m=function(D,P){l.set(D,P)},h=(function(){for(var U=[],D=0;D<256;++D)U.push("%"+((D<16?"0":"")+D.toString(16)).toUpperCase());return U})(),y=function(D){for(;D.length>1;){var P=D.pop(),k=P.obj[P.prop];if(o(k)){for(var ne=[],q=0;q=_?K.slice(ae,ae+_):K,R=[],B=0;B=48&&j<=57||j>=65&&j<=90||j>=97&&j<=122||q===t.RFC1738&&(j===40||j===41)){R[R.length]=pe.charAt(B);continue}if(j<128){R[R.length]=h[j];continue}if(j<2048){R[R.length]=h[192|j>>6]+h[128|j&63];continue}if(j<55296||j>=57344){R[R.length]=h[224|j>>12]+h[128|j>>6&63]+h[128|j&63];continue}B+=1,j=65536+((j&1023)<<10|pe.charCodeAt(B)&1023),R[R.length]=h[240|j>>18]+h[128|j>>12&63]+h[128|j>>6&63]+h[128|j&63]}I+=R.join("")}return I},C=function(D){for(var P=[{obj:{o:D},prop:"o"}],k=[],ne=0;nek?u(g(K,{plainObjects:ne}),K.length-1):K},ee=function(D,P){if(o(D)){for(var k=[],ne=0;ne"u"&&(le=0)}if(typeof k=="function"?j=k(C,j):j instanceof Date?j=K(j):L==="comma"&&u(j)&&(j=r.maybeMap(j,function(bt){return bt instanceof Date?K(bt):bt})),j===null){if(ee)return P&&!pe?P(C,y.encoder,R,"key",I):C;j=""}if(g(j)||r.isBuffer(j)){if(P){var J=pe?C:P(C,y.encoder,R,"key",I);return[ae(J)+"="+ae(P(j,y.encoder,R,"value",I))]}return[ae(C)+"="+ae(String(j))]}var se=[];if(typeof j>"u")return se;var me;if(L==="comma"&&u(j))pe&&P&&(j=r.maybeMap(j,P)),me=[{value:j.length>0?j.join(",")||null:void 0}];else if(u(k))me=k;else{var Te=Object.keys(j);me=ne?Te.sort(ne):Te}var Oe=D?String(C).replace(/\./g,"%2E"):String(C),Se=z&&u(j)&&j.length===1?Oe+"[]":Oe;if(F&&u(j)&&j.length===0)return Se+"[]";for(var Ae=0;Ae"u"?E.encodeDotInKeys===!0?!0:y.allowDots:!!E.allowDots;return{addQueryPrefix:typeof E.addQueryPrefix=="boolean"?E.addQueryPrefix:y.addQueryPrefix,allowDots:U,allowEmptyArrays:typeof E.allowEmptyArrays=="boolean"?!!E.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:ee,charset:C,charsetSentinel:typeof E.charsetSentinel=="boolean"?E.charsetSentinel:y.charsetSentinel,commaRoundTrip:!!E.commaRoundTrip,delimiter:typeof E.delimiter>"u"?y.delimiter:E.delimiter,encode:typeof E.encode=="boolean"?E.encode:y.encode,encodeDotInKeys:typeof E.encodeDotInKeys=="boolean"?E.encodeDotInKeys:y.encodeDotInKeys,encoder:typeof E.encoder=="function"?E.encoder:y.encoder,encodeValuesOnly:typeof E.encodeValuesOnly=="boolean"?E.encodeValuesOnly:y.encodeValuesOnly,filter:F,format:L,formatter:z,serializeDate:typeof E.serializeDate=="function"?E.serializeDate:y.serializeDate,skipNulls:typeof E.skipNulls=="boolean"?E.skipNulls:y.skipNulls,sort:typeof E.sort=="function"?E.sort:null,strictNullHandling:typeof E.strictNullHandling=="boolean"?E.strictNullHandling:y.strictNullHandling}};return kd=function(_,E){var C=_,L=b(E),z,F;typeof L.filter=="function"?(F=L.filter,C=F("",C)):u(L.filter)&&(F=L.filter,z=F);var ee=[];if(typeof C!="object"||C===null)return"";var U=l[L.arrayFormat],D=U==="comma"&&L.commaRoundTrip;z||(z=Object.keys(C)),L.sort&&z.sort(L.sort);for(var P=t(),k=0;k0?I+K:""},kd}var Id,Mb;function KC(){if(Mb)return Id;Mb=1;var t=Bx(),r=Object.prototype.hasOwnProperty,a=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},l=function(T){return T.replace(/&#(\d+);/g,function(b,_){return String.fromCharCode(parseInt(_,10))})},u=function(T,b,_){if(T&&typeof T=="string"&&b.comma&&T.indexOf(",")>-1)return T.split(",");if(b.throwOnLimitExceeded&&_>=b.arrayLimit)throw new RangeError("Array limit exceeded. Only "+b.arrayLimit+" element"+(b.arrayLimit===1?"":"s")+" allowed in an array.");return T},f="utf8=%26%2310003%3B",p="utf8=%E2%9C%93",m=function(b,_){var E={__proto__:null},C=_.ignoreQueryPrefix?b.replace(/^\?/,""):b;C=C.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var L=_.parameterLimit===1/0?void 0:_.parameterLimit,z=C.split(_.delimiter,_.throwOnLimitExceeded?L+1:L);if(_.throwOnLimitExceeded&&z.length>L)throw new RangeError("Parameter limit exceeded. Only "+L+" parameter"+(L===1?"":"s")+" allowed.");var F=-1,ee,U=_.charset;if(_.charsetSentinel)for(ee=0;ee-1&&(q=a(q)?[q]:q),ne!==null){var K=r.call(E,ne);K&&_.duplicates==="combine"?E[ne]=t.combine(E[ne],q,_.arrayLimit,_.plainObjects):(!K||_.duplicates==="last")&&(E[ne]=q)}}return E},h=function(T,b,_,E){var C=0;if(T.length>0&&T[T.length-1]==="[]"){var L=T.slice(0,-1).join("");C=Array.isArray(b)&&b[L]?b[L].length:0}for(var z=E?b:u(b,_,C),F=T.length-1;F>=0;--F){var ee,U=T[F];if(U==="[]"&&_.parseArrays)t.isOverflow(z)?ee=z:ee=_.allowEmptyArrays&&(z===""||_.strictNullHandling&&z===null)?[]:t.combine([],z,_.arrayLimit,_.plainObjects);else{ee=_.plainObjects?{__proto__:null}:{};var D=U.charAt(0)==="["&&U.charAt(U.length-1)==="]"?U.slice(1,-1):U,P=_.decodeDotInKeys?D.replace(/%2E/g,"."):D,k=parseInt(P,10);!_.parseArrays&&P===""?ee={0:z}:!isNaN(k)&&U!==P&&String(k)===P&&k>=0&&_.parseArrays&&k<=_.arrayLimit?(ee=[],ee[k]=z):P!=="__proto__"&&(ee[P]=z)}z=ee}return z},y=function(b,_){var E=_.allowDots?b.replace(/\.([^.[]+)/g,"[$1]"):b;if(_.depth<=0)return!_.plainObjects&&r.call(Object.prototype,E)&&!_.allowPrototypes?void 0:[E];var C=/(\[[^[\]]*])/,L=/(\[[^[\]]*])/g,z=C.exec(E),F=z?E.slice(0,z.index):E,ee=[];if(F){if(!_.plainObjects&&r.call(Object.prototype,F)&&!_.allowPrototypes)return;ee.push(F)}for(var U=0;(z=L.exec(E))!==null&&U<_.depth;){U+=1;var D=z[1].slice(1,-1);if(!_.plainObjects&&r.call(Object.prototype,D)&&!_.allowPrototypes)return;ee.push(z[1])}if(z){if(_.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+_.depth+" and strictDepth is true");ee.push("["+E.slice(z.index)+"]")}return ee},g=function(b,_,E,C){if(b){var L=y(b,E);if(L)return h(L,_,E,C)}},S=function(b){if(!b)return o;if(typeof b.allowEmptyArrays<"u"&&typeof b.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof b.decodeDotInKeys<"u"&&typeof b.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(b.decoder!==null&&typeof b.decoder<"u"&&typeof b.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof b.charset<"u"&&b.charset!=="utf-8"&&b.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof b.throwOnLimitExceeded<"u"&&typeof b.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var _=typeof b.charset>"u"?o.charset:b.charset,E=typeof b.duplicates>"u"?o.duplicates:b.duplicates;if(E!=="combine"&&E!=="first"&&E!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var C=typeof b.allowDots>"u"?b.decodeDotInKeys===!0?!0:o.allowDots:!!b.allowDots;return{allowDots:C,allowEmptyArrays:typeof b.allowEmptyArrays=="boolean"?!!b.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:typeof b.allowPrototypes=="boolean"?b.allowPrototypes:o.allowPrototypes,allowSparse:typeof b.allowSparse=="boolean"?b.allowSparse:o.allowSparse,arrayLimit:typeof b.arrayLimit=="number"?b.arrayLimit:o.arrayLimit,charset:_,charsetSentinel:typeof b.charsetSentinel=="boolean"?b.charsetSentinel:o.charsetSentinel,comma:typeof b.comma=="boolean"?b.comma:o.comma,decodeDotInKeys:typeof b.decodeDotInKeys=="boolean"?b.decodeDotInKeys:o.decodeDotInKeys,decoder:typeof b.decoder=="function"?b.decoder:o.decoder,delimiter:typeof b.delimiter=="string"||t.isRegExp(b.delimiter)?b.delimiter:o.delimiter,depth:typeof b.depth=="number"||b.depth===!1?+b.depth:o.depth,duplicates:E,ignoreQueryPrefix:b.ignoreQueryPrefix===!0,interpretNumericEntities:typeof b.interpretNumericEntities=="boolean"?b.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:typeof b.parameterLimit=="number"?b.parameterLimit:o.parameterLimit,parseArrays:b.parseArrays!==!1,plainObjects:typeof b.plainObjects=="boolean"?b.plainObjects:o.plainObjects,strictDepth:typeof b.strictDepth=="boolean"?!!b.strictDepth:o.strictDepth,strictNullHandling:typeof b.strictNullHandling=="boolean"?b.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:typeof b.throwOnLimitExceeded=="boolean"?b.throwOnLimitExceeded:!1}};return Id=function(T,b){var _=S(b);if(T===""||T===null||typeof T>"u")return _.plainObjects?{__proto__:null}:{};for(var E=typeof T=="string"?m(T,_):T,C=_.plainObjects?{__proto__:null}:{},L=Object.keys(E),z=0;zr=>{const a=ZC.call(r);return t[a]||(t[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),lr=t=>(t=t.toLowerCase(),r=>Nu(r)===t),Lu=t=>r=>typeof r===t,{isArray:eo}=Array,Ki=Lu("undefined");function Es(t){return t!==null&&!Ki(t)&&t.constructor!==null&&!Ki(t.constructor)&&En(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const $x=lr("ArrayBuffer");function JC(t){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(t):r=t&&t.buffer&&$x(t.buffer),r}const WC=Lu("string"),En=Lu("function"),Fx=Lu("number"),ws=t=>t!==null&&typeof t=="object",e2=t=>t===!0||t===!1,Wl=t=>{if(Nu(t)!=="object")return!1;const r=um(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Ix in t)&&!(Du in t)},t2=t=>{if(!ws(t)||Es(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},n2=lr("Date"),r2=lr("File"),a2=lr("Blob"),i2=lr("FileList"),o2=t=>ws(t)&&En(t.pipe),s2=t=>{let r;return t&&(typeof FormData=="function"&&t instanceof FormData||En(t.append)&&((r=Nu(t))==="formdata"||r==="object"&&En(t.toString)&&t.toString()==="[object FormData]"))},l2=lr("URLSearchParams"),[u2,c2,f2,d2]=["ReadableStream","Request","Response","Headers"].map(lr),p2=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ts(t,r,{allOwnKeys:a=!1}={}){if(t===null||typeof t>"u")return;let o,l;if(typeof t!="object"&&(t=[t]),eo(t))for(o=0,l=t.length;o0;)if(l=a[o],r===l.toLowerCase())return l;return null}const Ga=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Yx=t=>!Ki(t)&&t!==Ga;function xp(){const{caseless:t,skipUndefined:r}=Yx(this)&&this||{},a={},o=(l,u)=>{if(u==="__proto__"||u==="constructor"||u==="prototype")return;const f=t&&Gx(a,u)||u;Wl(a[f])&&Wl(l)?a[f]=xp(a[f],l):Wl(l)?a[f]=xp({},l):eo(l)?a[f]=l.slice():(!r||!Ki(l))&&(a[f]=l)};for(let l=0,u=arguments.length;l(Ts(r,(l,u)=>{a&&En(l)?Object.defineProperty(t,u,{value:kx(l,a),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,u,{value:l,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),t),h2=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),g2=(t,r,a,o)=>{t.prototype=Object.create(r.prototype,o),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:r.prototype}),a&&Object.assign(t.prototype,a)},y2=(t,r,a,o)=>{let l,u,f;const p={};if(r=r||{},t==null)return r;do{for(l=Object.getOwnPropertyNames(t),u=l.length;u-- >0;)f=l[u],(!o||o(f,t,r))&&!p[f]&&(r[f]=t[f],p[f]=!0);t=a!==!1&&um(t)}while(t&&(!a||a(t,r))&&t!==Object.prototype);return r},v2=(t,r,a)=>{t=String(t),(a===void 0||a>t.length)&&(a=t.length),a-=r.length;const o=t.indexOf(r,a);return o!==-1&&o===a},b2=t=>{if(!t)return null;if(eo(t))return t;let r=t.length;if(!Fx(r))return null;const a=new Array(r);for(;r-- >0;)a[r]=t[r];return a},x2=(t=>r=>t&&r instanceof t)(typeof Uint8Array<"u"&&um(Uint8Array)),S2=(t,r)=>{const o=(t&&t[Du]).call(t);let l;for(;(l=o.next())&&!l.done;){const u=l.value;r.call(t,u[0],u[1])}},_2=(t,r)=>{let a;const o=[];for(;(a=t.exec(r))!==null;)o.push(a);return o},E2=lr("HTMLFormElement"),w2=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,l){return o.toUpperCase()+l}),Vb=(({hasOwnProperty:t})=>(r,a)=>t.call(r,a))(Object.prototype),T2=lr("RegExp"),Xx=(t,r)=>{const a=Object.getOwnPropertyDescriptors(t),o={};Ts(a,(l,u)=>{let f;(f=r(l,u,t))!==!1&&(o[u]=f||l)}),Object.defineProperties(t,o)},A2=t=>{Xx(t,(r,a)=>{if(En(t)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const o=t[a];if(En(o)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},O2=(t,r)=>{const a={},o=l=>{l.forEach(u=>{a[u]=!0})};return eo(t)?o(t):o(String(t).split(r)),a},R2=()=>{},C2=(t,r)=>t!=null&&Number.isFinite(t=+t)?t:r;function D2(t){return!!(t&&En(t.append)&&t[Ix]==="FormData"&&t[Du])}const N2=t=>{const r=new Array(10),a=(o,l)=>{if(ws(o)){if(r.indexOf(o)>=0)return;if(Es(o))return o;if(!("toJSON"in o)){r[l]=o;const u=eo(o)?[]:{};return Ts(o,(f,p)=>{const m=a(f,l+1);!Ki(m)&&(u[p]=m)}),r[l]=void 0,u}}return o};return a(t,0)},L2=lr("AsyncFunction"),j2=t=>t&&(ws(t)||En(t))&&En(t.then)&&En(t.catch),Kx=((t,r)=>t?setImmediate:r?((a,o)=>(Ga.addEventListener("message",({source:l,data:u})=>{l===Ga&&u===a&&o.length&&o.shift()()},!1),l=>{o.push(l),Ga.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",En(Ga.postMessage)),P2=typeof queueMicrotask<"u"?queueMicrotask.bind(Ga):typeof process<"u"&&process.nextTick||Kx,M2=t=>t!=null&&En(t[Du]),W={isArray:eo,isArrayBuffer:$x,isBuffer:Es,isFormData:s2,isArrayBufferView:JC,isString:WC,isNumber:Fx,isBoolean:e2,isObject:ws,isPlainObject:Wl,isEmptyObject:t2,isReadableStream:u2,isRequest:c2,isResponse:f2,isHeaders:d2,isUndefined:Ki,isDate:n2,isFile:r2,isBlob:a2,isRegExp:T2,isFunction:En,isStream:o2,isURLSearchParams:l2,isTypedArray:x2,isFileList:i2,forEach:Ts,merge:xp,extend:m2,trim:p2,stripBOM:h2,inherits:g2,toFlatObject:y2,kindOf:Nu,kindOfTest:lr,endsWith:v2,toArray:b2,forEachEntry:S2,matchAll:_2,isHTMLForm:E2,hasOwnProperty:Vb,hasOwnProp:Vb,reduceDescriptors:Xx,freezeMethods:A2,toObjectSet:O2,toCamelCase:w2,noop:R2,toFiniteNumber:C2,findKey:Gx,global:Ga,isContextDefined:Yx,isSpecCompliantForm:D2,toJSONObject:N2,isAsyncFn:L2,isThenable:j2,setImmediate:Kx,asap:P2,isIterable:M2};let Ne=class Qx extends Error{static from(r,a,o,l,u,f){const p=new Qx(r.message,a||r.code,o,l,u);return p.cause=r,p.name=r.name,f&&Object.assign(p,f),p}constructor(r,a,o,l,u){super(r),this.name="AxiosError",this.isAxiosError=!0,a&&(this.code=a),o&&(this.config=o),l&&(this.request=l),u&&(this.response=u,this.status=u.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}};Ne.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Ne.ERR_BAD_OPTION="ERR_BAD_OPTION";Ne.ECONNABORTED="ECONNABORTED";Ne.ETIMEDOUT="ETIMEDOUT";Ne.ERR_NETWORK="ERR_NETWORK";Ne.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Ne.ERR_DEPRECATED="ERR_DEPRECATED";Ne.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Ne.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Ne.ERR_CANCELED="ERR_CANCELED";Ne.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Ne.ERR_INVALID_URL="ERR_INVALID_URL";const z2=null;function Sp(t){return W.isPlainObject(t)||W.isArray(t)}function Zx(t){return W.endsWith(t,"[]")?t.slice(0,-2):t}function qb(t,r,a){return t?t.concat(r).map(function(l,u){return l=Zx(l),!a&&u?"["+l+"]":l}).join(a?".":""):r}function U2(t){return W.isArray(t)&&!t.some(Sp)}const V2=W.toFlatObject(W,{},null,function(r){return/^is[A-Z]/.test(r)});function ju(t,r,a){if(!W.isObject(t))throw new TypeError("target must be an object");r=r||new FormData,a=W.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,E){return!W.isUndefined(E[_])});const o=a.metaTokens,l=a.visitor||y,u=a.dots,f=a.indexes,m=(a.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(r);if(!W.isFunction(l))throw new TypeError("visitor must be a function");function h(b){if(b===null)return"";if(W.isDate(b))return b.toISOString();if(W.isBoolean(b))return b.toString();if(!m&&W.isBlob(b))throw new Ne("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(b)||W.isTypedArray(b)?m&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function y(b,_,E){let C=b;if(b&&!E&&typeof b=="object"){if(W.endsWith(_,"{}"))_=o?_:_.slice(0,-2),b=JSON.stringify(b);else if(W.isArray(b)&&U2(b)||(W.isFileList(b)||W.endsWith(_,"[]"))&&(C=W.toArray(b)))return _=Zx(_),C.forEach(function(z,F){!(W.isUndefined(z)||z===null)&&r.append(f===!0?qb([_],F,u):f===null?_:_+"[]",h(z))}),!1}return Sp(b)?!0:(r.append(qb(E,_,u),h(b)),!1)}const g=[],S=Object.assign(V2,{defaultVisitor:y,convertValue:h,isVisitable:Sp});function T(b,_){if(!W.isUndefined(b)){if(g.indexOf(b)!==-1)throw Error("Circular reference detected in "+_.join("."));g.push(b),W.forEach(b,function(C,L){(!(W.isUndefined(C)||C===null)&&l.call(r,C,W.isString(L)?L.trim():L,_,S))===!0&&T(C,_?_.concat(L):[L])}),g.pop()}}if(!W.isObject(t))throw new TypeError("data must be an object");return T(t),r}function Hb(t){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(o){return r[o]})}function cm(t,r){this._pairs=[],t&&ju(t,this,r)}const Jx=cm.prototype;Jx.append=function(r,a){this._pairs.push([r,a])};Jx.toString=function(r){const a=r?function(o){return r.call(this,o,Hb)}:Hb;return this._pairs.map(function(l){return a(l[0])+"="+a(l[1])},"").join("&")};function q2(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Wx(t,r,a){if(!r)return t;const o=a&&a.encode||q2,l=W.isFunction(a)?{serialize:a}:a,u=l&&l.serialize;let f;if(u?f=u(r,l):f=W.isURLSearchParams(r)?r.toString():new cm(r,l).toString(o),f){const p=t.indexOf("#");p!==-1&&(t=t.slice(0,p)),t+=(t.indexOf("?")===-1?"?":"&")+f}return t}class Bb{constructor(){this.handlers=[]}use(r,a,o){return this.handlers.push({fulfilled:r,rejected:a,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){W.forEach(this.handlers,function(o){o!==null&&r(o)})}}const fm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},H2=typeof URLSearchParams<"u"?URLSearchParams:cm,B2=typeof FormData<"u"?FormData:null,k2=typeof Blob<"u"?Blob:null,I2={isBrowser:!0,classes:{URLSearchParams:H2,FormData:B2,Blob:k2},protocols:["http","https","file","blob","url","data"]},dm=typeof window<"u"&&typeof document<"u",_p=typeof navigator=="object"&&navigator||void 0,$2=dm&&(!_p||["ReactNative","NativeScript","NS"].indexOf(_p.product)<0),F2=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",G2=dm&&window.location.href||"http://localhost",Y2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:dm,hasStandardBrowserEnv:$2,hasStandardBrowserWebWorkerEnv:F2,navigator:_p,origin:G2},Symbol.toStringTag,{value:"Module"})),ln={...Y2,...I2};function X2(t,r){return ju(t,new ln.classes.URLSearchParams,{visitor:function(a,o,l,u){return ln.isNode&&W.isBuffer(a)?(this.append(o,a.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)},...r})}function K2(t){return W.matchAll(/\w+|\[(\w*)]/g,t).map(r=>r[0]==="[]"?"":r[1]||r[0])}function Q2(t){const r={},a=Object.keys(t);let o;const l=a.length;let u;for(o=0;o=a.length;return f=!f&&W.isArray(l)?l.length:f,m?(W.hasOwnProp(l,f)?l[f]=[l[f],o]:l[f]=o,!p):((!l[f]||!W.isObject(l[f]))&&(l[f]=[]),r(a,o,l[f],u)&&W.isArray(l[f])&&(l[f]=Q2(l[f])),!p)}if(W.isFormData(t)&&W.isFunction(t.entries)){const a={};return W.forEachEntry(t,(o,l)=>{r(K2(o),l,a,0)}),a}return null}function Z2(t,r,a){if(W.isString(t))try{return(r||JSON.parse)(t),W.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(a||JSON.stringify)(t)}const As={transitional:fm,adapter:["xhr","http","fetch"],transformRequest:[function(r,a){const o=a.getContentType()||"",l=o.indexOf("application/json")>-1,u=W.isObject(r);if(u&&W.isHTMLForm(r)&&(r=new FormData(r)),W.isFormData(r))return l?JSON.stringify(eS(r)):r;if(W.isArrayBuffer(r)||W.isBuffer(r)||W.isStream(r)||W.isFile(r)||W.isBlob(r)||W.isReadableStream(r))return r;if(W.isArrayBufferView(r))return r.buffer;if(W.isURLSearchParams(r))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let p;if(u){if(o.indexOf("application/x-www-form-urlencoded")>-1)return X2(r,this.formSerializer).toString();if((p=W.isFileList(r))||o.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return ju(p?{"files[]":r}:r,m&&new m,this.formSerializer)}}return u||l?(a.setContentType("application/json",!1),Z2(r)):r}],transformResponse:[function(r){const a=this.transitional||As.transitional,o=a&&a.forcedJSONParsing,l=this.responseType==="json";if(W.isResponse(r)||W.isReadableStream(r))return r;if(r&&W.isString(r)&&(o&&!this.responseType||l)){const f=!(a&&a.silentJSONParsing)&&l;try{return JSON.parse(r,this.parseReviver)}catch(p){if(f)throw p.name==="SyntaxError"?Ne.from(p,Ne.ERR_BAD_RESPONSE,this,null,this.response):p}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ln.classes.FormData,Blob:ln.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],t=>{As.headers[t]={}});const J2=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),W2=t=>{const r={};let a,o,l;return t&&t.split(` -`).forEach(function(f){l=f.indexOf(":"),a=f.substring(0,l).trim().toLowerCase(),o=f.substring(l+1).trim(),!(!a||r[a]&&J2[a])&&(a==="set-cookie"?r[a]?r[a].push(o):r[a]=[o]:r[a]=r[a]?r[a]+", "+o:o)}),r},kb=Symbol("internals");function Qo(t){return t&&String(t).trim().toLowerCase()}function eu(t){return t===!1||t==null?t:W.isArray(t)?t.map(eu):String(t)}function eD(t){const r=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=a.exec(t);)r[o[1]]=o[2];return r}const tD=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Fd(t,r,a,o,l){if(W.isFunction(o))return o.call(this,r,a);if(l&&(r=a),!!W.isString(r)){if(W.isString(o))return r.indexOf(o)!==-1;if(W.isRegExp(o))return o.test(r)}}function nD(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,a,o)=>a.toUpperCase()+o)}function rD(t,r){const a=W.toCamelCase(" "+r);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+a,{value:function(l,u,f){return this[o].call(this,r,l,u,f)},configurable:!0})})}let wn=class{constructor(r){r&&this.set(r)}set(r,a,o){const l=this;function u(p,m,h){const y=Qo(m);if(!y)throw new Error("header name must be a non-empty string");const g=W.findKey(l,y);(!g||l[g]===void 0||h===!0||h===void 0&&l[g]!==!1)&&(l[g||m]=eu(p))}const f=(p,m)=>W.forEach(p,(h,y)=>u(h,y,m));if(W.isPlainObject(r)||r instanceof this.constructor)f(r,a);else if(W.isString(r)&&(r=r.trim())&&!tD(r))f(W2(r),a);else if(W.isObject(r)&&W.isIterable(r)){let p={},m,h;for(const y of r){if(!W.isArray(y))throw TypeError("Object iterator must return a key-value pair");p[h=y[0]]=(m=p[h])?W.isArray(m)?[...m,y[1]]:[m,y[1]]:y[1]}f(p,a)}else r!=null&&u(a,r,o);return this}get(r,a){if(r=Qo(r),r){const o=W.findKey(this,r);if(o){const l=this[o];if(!a)return l;if(a===!0)return eD(l);if(W.isFunction(a))return a.call(this,l,o);if(W.isRegExp(a))return a.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,a){if(r=Qo(r),r){const o=W.findKey(this,r);return!!(o&&this[o]!==void 0&&(!a||Fd(this,this[o],o,a)))}return!1}delete(r,a){const o=this;let l=!1;function u(f){if(f=Qo(f),f){const p=W.findKey(o,f);p&&(!a||Fd(o,o[p],p,a))&&(delete o[p],l=!0)}}return W.isArray(r)?r.forEach(u):u(r),l}clear(r){const a=Object.keys(this);let o=a.length,l=!1;for(;o--;){const u=a[o];(!r||Fd(this,this[u],u,r,!0))&&(delete this[u],l=!0)}return l}normalize(r){const a=this,o={};return W.forEach(this,(l,u)=>{const f=W.findKey(o,u);if(f){a[f]=eu(l),delete a[u];return}const p=r?nD(u):String(u).trim();p!==u&&delete a[u],a[p]=eu(l),o[p]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const a=Object.create(null);return W.forEach(this,(o,l)=>{o!=null&&o!==!1&&(a[l]=r&&W.isArray(o)?o.join(", "):o)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,a])=>r+": "+a).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...a){const o=new this(r);return a.forEach(l=>o.set(l)),o}static accessor(r){const o=(this[kb]=this[kb]={accessors:{}}).accessors,l=this.prototype;function u(f){const p=Qo(f);o[p]||(rD(l,f),o[p]=!0)}return W.isArray(r)?r.forEach(u):u(r),this}};wn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);W.reduceDescriptors(wn.prototype,({value:t},r)=>{let a=r[0].toUpperCase()+r.slice(1);return{get:()=>t,set(o){this[a]=o}}});W.freezeMethods(wn);function Gd(t,r){const a=this||As,o=r||a,l=wn.from(o.headers);let u=o.data;return W.forEach(t,function(p){u=p.call(a,u,l.normalize(),r?r.status:void 0)}),l.normalize(),u}function tS(t){return!!(t&&t.__CANCEL__)}let Os=class extends Ne{constructor(r,a,o){super(r??"canceled",Ne.ERR_CANCELED,a,o),this.name="CanceledError",this.__CANCEL__=!0}};function nS(t,r,a){const o=a.config.validateStatus;!a.status||!o||o(a.status)?t(a):r(new Ne("Request failed with status code "+a.status,[Ne.ERR_BAD_REQUEST,Ne.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function aD(t){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}function iD(t,r){t=t||10;const a=new Array(t),o=new Array(t);let l=0,u=0,f;return r=r!==void 0?r:1e3,function(m){const h=Date.now(),y=o[u];f||(f=h),a[l]=m,o[l]=h;let g=u,S=0;for(;g!==l;)S+=a[g++],g=g%t;if(l=(l+1)%t,l===u&&(u=(u+1)%t),h-f{a=y,l=null,u&&(clearTimeout(u),u=null),t(...h)};return[(...h)=>{const y=Date.now(),g=y-a;g>=o?f(h,y):(l=h,u||(u=setTimeout(()=>{u=null,f(l)},o-g)))},()=>l&&f(l)]}const fu=(t,r,a=3)=>{let o=0;const l=iD(50,250);return oD(u=>{const f=u.loaded,p=u.lengthComputable?u.total:void 0,m=f-o,h=l(m),y=f<=p;o=f;const g={loaded:f,total:p,progress:p?f/p:void 0,bytes:m,rate:h||void 0,estimated:h&&p&&y?(p-f)/h:void 0,event:u,lengthComputable:p!=null,[r?"download":"upload"]:!0};t(g)},a)},Ib=(t,r)=>{const a=t!=null;return[o=>r[0]({lengthComputable:a,total:t,loaded:o}),r[1]]},$b=t=>(...r)=>W.asap(()=>t(...r)),sD=ln.hasStandardBrowserEnv?((t,r)=>a=>(a=new URL(a,ln.origin),t.protocol===a.protocol&&t.host===a.host&&(r||t.port===a.port)))(new URL(ln.origin),ln.navigator&&/(msie|trident)/i.test(ln.navigator.userAgent)):()=>!0,lD=ln.hasStandardBrowserEnv?{write(t,r,a,o,l,u,f){if(typeof document>"u")return;const p=[`${t}=${encodeURIComponent(r)}`];W.isNumber(a)&&p.push(`expires=${new Date(a).toUTCString()}`),W.isString(o)&&p.push(`path=${o}`),W.isString(l)&&p.push(`domain=${l}`),u===!0&&p.push("secure"),W.isString(f)&&p.push(`SameSite=${f}`),document.cookie=p.join("; ")},read(t){if(typeof document>"u")return null;const r=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return r?decodeURIComponent(r[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function uD(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function cD(t,r){return r?t.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):t}function rS(t,r,a){let o=!uD(r);return t&&(o||a==!1)?cD(t,r):r}const Fb=t=>t instanceof wn?{...t}:t;function Za(t,r){r=r||{};const a={};function o(h,y,g,S){return W.isPlainObject(h)&&W.isPlainObject(y)?W.merge.call({caseless:S},h,y):W.isPlainObject(y)?W.merge({},y):W.isArray(y)?y.slice():y}function l(h,y,g,S){if(W.isUndefined(y)){if(!W.isUndefined(h))return o(void 0,h,g,S)}else return o(h,y,g,S)}function u(h,y){if(!W.isUndefined(y))return o(void 0,y)}function f(h,y){if(W.isUndefined(y)){if(!W.isUndefined(h))return o(void 0,h)}else return o(void 0,y)}function p(h,y,g){if(g in r)return o(h,y);if(g in t)return o(void 0,h)}const m={url:u,method:u,data:u,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:p,headers:(h,y,g)=>l(Fb(h),Fb(y),g,!0)};return W.forEach(Object.keys({...t,...r}),function(y){if(y==="__proto__"||y==="constructor"||y==="prototype")return;const g=W.hasOwnProp(m,y)?m[y]:l,S=g(t[y],r[y],y);W.isUndefined(S)&&g!==p||(a[y]=S)}),a}const aS=t=>{const r=Za({},t);let{data:a,withXSRFToken:o,xsrfHeaderName:l,xsrfCookieName:u,headers:f,auth:p}=r;if(r.headers=f=wn.from(f),r.url=Wx(rS(r.baseURL,r.url,r.allowAbsoluteUrls),t.params,t.paramsSerializer),p&&f.set("Authorization","Basic "+btoa((p.username||"")+":"+(p.password?unescape(encodeURIComponent(p.password)):""))),W.isFormData(a)){if(ln.hasStandardBrowserEnv||ln.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if(W.isFunction(a.getHeaders)){const m=a.getHeaders(),h=["content-type","content-length"];Object.entries(m).forEach(([y,g])=>{h.includes(y.toLowerCase())&&f.set(y,g)})}}if(ln.hasStandardBrowserEnv&&(o&&W.isFunction(o)&&(o=o(r)),o||o!==!1&&sD(r.url))){const m=l&&u&&lD.read(u);m&&f.set(l,m)}return r},fD=typeof XMLHttpRequest<"u",dD=fD&&function(t){return new Promise(function(a,o){const l=aS(t);let u=l.data;const f=wn.from(l.headers).normalize();let{responseType:p,onUploadProgress:m,onDownloadProgress:h}=l,y,g,S,T,b;function _(){T&&T(),b&&b(),l.cancelToken&&l.cancelToken.unsubscribe(y),l.signal&&l.signal.removeEventListener("abort",y)}let E=new XMLHttpRequest;E.open(l.method.toUpperCase(),l.url,!0),E.timeout=l.timeout;function C(){if(!E)return;const z=wn.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),ee={data:!p||p==="text"||p==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:z,config:t,request:E};nS(function(D){a(D),_()},function(D){o(D),_()},ee),E=null}"onloadend"in E?E.onloadend=C:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(C)},E.onabort=function(){E&&(o(new Ne("Request aborted",Ne.ECONNABORTED,t,E)),E=null)},E.onerror=function(F){const ee=F&&F.message?F.message:"Network Error",U=new Ne(ee,Ne.ERR_NETWORK,t,E);U.event=F||null,o(U),E=null},E.ontimeout=function(){let F=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const ee=l.transitional||fm;l.timeoutErrorMessage&&(F=l.timeoutErrorMessage),o(new Ne(F,ee.clarifyTimeoutError?Ne.ETIMEDOUT:Ne.ECONNABORTED,t,E)),E=null},u===void 0&&f.setContentType(null),"setRequestHeader"in E&&W.forEach(f.toJSON(),function(F,ee){E.setRequestHeader(ee,F)}),W.isUndefined(l.withCredentials)||(E.withCredentials=!!l.withCredentials),p&&p!=="json"&&(E.responseType=l.responseType),h&&([S,b]=fu(h,!0),E.addEventListener("progress",S)),m&&E.upload&&([g,T]=fu(m),E.upload.addEventListener("progress",g),E.upload.addEventListener("loadend",T)),(l.cancelToken||l.signal)&&(y=z=>{E&&(o(!z||z.type?new Os(null,t,E):z),E.abort(),E=null)},l.cancelToken&&l.cancelToken.subscribe(y),l.signal&&(l.signal.aborted?y():l.signal.addEventListener("abort",y)));const L=aD(l.url);if(L&&ln.protocols.indexOf(L)===-1){o(new Ne("Unsupported protocol "+L+":",Ne.ERR_BAD_REQUEST,t));return}E.send(u||null)})},pD=(t,r)=>{const{length:a}=t=t?t.filter(Boolean):[];if(r||a){let o=new AbortController,l;const u=function(h){if(!l){l=!0,p();const y=h instanceof Error?h:this.reason;o.abort(y instanceof Ne?y:new Os(y instanceof Error?y.message:y))}};let f=r&&setTimeout(()=>{f=null,u(new Ne(`timeout of ${r}ms exceeded`,Ne.ETIMEDOUT))},r);const p=()=>{t&&(f&&clearTimeout(f),f=null,t.forEach(h=>{h.unsubscribe?h.unsubscribe(u):h.removeEventListener("abort",u)}),t=null)};t.forEach(h=>h.addEventListener("abort",u));const{signal:m}=o;return m.unsubscribe=()=>W.asap(p),m}},mD=function*(t,r){let a=t.byteLength;if(a{const l=hD(t,r);let u=0,f,p=m=>{f||(f=!0,o&&o(m))};return new ReadableStream({async pull(m){try{const{done:h,value:y}=await l.next();if(h){p(),m.close();return}let g=y.byteLength;if(a){let S=u+=g;a(S)}m.enqueue(new Uint8Array(y))}catch(h){throw p(h),h}},cancel(m){return p(m),l.return()}},{highWaterMark:2})},Yb=64*1024,{isFunction:Il}=W,yD=(({Request:t,Response:r})=>({Request:t,Response:r}))(W.global),{ReadableStream:Xb,TextEncoder:Kb}=W.global,Qb=(t,...r)=>{try{return!!t(...r)}catch{return!1}},vD=t=>{t=W.merge.call({skipUndefined:!0},yD,t);const{fetch:r,Request:a,Response:o}=t,l=r?Il(r):typeof fetch=="function",u=Il(a),f=Il(o);if(!l)return!1;const p=l&&Il(Xb),m=l&&(typeof Kb=="function"?(b=>_=>b.encode(_))(new Kb):async b=>new Uint8Array(await new a(b).arrayBuffer())),h=u&&p&&Qb(()=>{let b=!1;const _=new a(ln.origin,{body:new Xb,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!_}),y=f&&p&&Qb(()=>W.isReadableStream(new o("").body)),g={stream:y&&(b=>b.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!g[b]&&(g[b]=(_,E)=>{let C=_&&_[b];if(C)return C.call(_);throw new Ne(`Response type '${b}' is not supported`,Ne.ERR_NOT_SUPPORT,E)})});const S=async b=>{if(b==null)return 0;if(W.isBlob(b))return b.size;if(W.isSpecCompliantForm(b))return(await new a(ln.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(W.isArrayBufferView(b)||W.isArrayBuffer(b))return b.byteLength;if(W.isURLSearchParams(b)&&(b=b+""),W.isString(b))return(await m(b)).byteLength},T=async(b,_)=>{const E=W.toFiniteNumber(b.getContentLength());return E??S(_)};return async b=>{let{url:_,method:E,data:C,signal:L,cancelToken:z,timeout:F,onDownloadProgress:ee,onUploadProgress:U,responseType:D,headers:P,withCredentials:k="same-origin",fetchOptions:ne}=aS(b),q=r||fetch;D=D?(D+"").toLowerCase():"text";let K=pD([L,z&&z.toAbortSignal()],F),I=null;const ae=K&&K.unsubscribe&&(()=>{K.unsubscribe()});let pe;try{if(U&&h&&E!=="get"&&E!=="head"&&(pe=await T(P,C))!==0){let de=new a(_,{method:"POST",body:C,duplex:"half"}),Q;if(W.isFormData(C)&&(Q=de.headers.get("content-type"))&&P.setContentType(Q),de.body){const[J,se]=Ib(pe,fu($b(U)));C=Gb(de.body,Yb,J,se)}}W.isString(k)||(k=k?"include":"omit");const R=u&&"credentials"in a.prototype,B={...ne,signal:K,method:E.toUpperCase(),headers:P.normalize().toJSON(),body:C,duplex:"half",credentials:R?k:void 0};I=u&&new a(_,B);let j=await(u?q(I,ne):q(_,B));const Y=y&&(D==="stream"||D==="response");if(y&&(ee||Y&&ae)){const de={};["status","statusText","headers"].forEach(me=>{de[me]=j[me]});const Q=W.toFiniteNumber(j.headers.get("content-length")),[J,se]=ee&&Ib(Q,fu($b(ee),!0))||[];j=new o(Gb(j.body,Yb,J,()=>{se&&se(),ae&&ae()}),de)}D=D||"text";let le=await g[W.findKey(g,D)||"text"](j,b);return!Y&&ae&&ae(),await new Promise((de,Q)=>{nS(de,Q,{data:le,headers:wn.from(j.headers),status:j.status,statusText:j.statusText,config:b,request:I})})}catch(R){throw ae&&ae(),R&&R.name==="TypeError"&&/Load failed|fetch/i.test(R.message)?Object.assign(new Ne("Network Error",Ne.ERR_NETWORK,b,I,R&&R.response),{cause:R.cause||R}):Ne.from(R,R&&R.code,b,I,R&&R.response)}}},bD=new Map,iS=t=>{let r=t&&t.env||{};const{fetch:a,Request:o,Response:l}=r,u=[o,l,a];let f=u.length,p=f,m,h,y=bD;for(;p--;)m=u[p],h=y.get(m),h===void 0&&y.set(m,h=p?new Map:vD(r)),y=h;return h};iS();const pm={http:z2,xhr:dD,fetch:{get:iS}};W.forEach(pm,(t,r)=>{if(t){try{Object.defineProperty(t,"name",{value:r})}catch{}Object.defineProperty(t,"adapterName",{value:r})}});const Zb=t=>`- ${t}`,xD=t=>W.isFunction(t)||t===null||t===!1;function SD(t,r){t=W.isArray(t)?t:[t];const{length:a}=t;let o,l;const u={};for(let f=0;f`adapter ${m} `+(h===!1?"is not supported by the environment":"is not available in the build"));let p=a?f.length>1?`since : +`+Z.prev}function on(H,Z){var Be=Oe(H),ke=[];if(Be){ke.length=H.length;for(var We=0;We"u"||!D?t:D(Uint8Array),ae={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":U&&D?D([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":K,"%AsyncGenerator%":K,"%AsyncGeneratorFunction%":K,"%AsyncIteratorPrototype%":K,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":E,"%GeneratorFunction%":K,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":U&&D?D(D([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!U||!D?t:D(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":L,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":l,"%ReferenceError%":u,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!U||!D?t:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":U&&D?D(""[Symbol.iterator]()):t,"%Symbol%":U?Symbol:t,"%SyntaxError%":f,"%ThrowTypeError%":ee,"%TypedArray%":I,"%TypeError%":p,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":m,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":q,"%Function.prototype.apply%":ne,"%Object.defineProperty%":z,"%Object.getPrototypeOf%":P,"%Math.abs%":g,"%Math.floor%":y,"%Math.max%":h,"%Math.min%":S,"%Math.pow%":T,"%Math.round%":b,"%Math.sign%":_,"%Reflect.getPrototypeOf%":k};if(D)try{null.error}catch(Ae){var pe=D(D(Ae));ae["%Error.prototype%"]=pe}var R=function Ae(he){var ce;if(he==="%AsyncFunction%")ce=C("async function () {}");else if(he==="%GeneratorFunction%")ce=C("function* () {}");else if(he==="%AsyncGeneratorFunction%")ce=C("async function* () {}");else if(he==="%AsyncGenerator%"){var ue=Ae("%AsyncGeneratorFunction%");ue&&(ce=ue.prototype)}else if(he==="%AsyncIteratorPrototype%"){var ze=Ae("%AsyncGenerator%");ze&&D&&(ce=D(ze.prototype))}return ae[he]=ce,ce},B={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},j=Cu(),Y=GC(),le=j.call(q,Array.prototype.concat),de=j.call(ne,Array.prototype.splice),Q=j.call(q,String.prototype.replace),J=j.call(q,String.prototype.slice),se=j.call(q,RegExp.prototype.exec),me=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Te=/\\(\\)?/g,Oe=function(he){var ce=J(he,0,1),ue=J(he,-1);if(ce==="%"&&ue!=="%")throw new f("invalid intrinsic syntax, expected closing `%`");if(ue==="%"&&ce!=="%")throw new f("invalid intrinsic syntax, expected opening `%`");var ze=[];return Q(he,me,function(Qe,bt,Ye,pt){ze[ze.length]=Ye?Q(pt,Te,"$1"):bt||Qe}),ze},Se=function(he,ce){var ue=he,ze;if(Y(B,ue)&&(ze=B[ue],ue="%"+ze[0]+"%"),Y(ae,ue)){var Qe=ae[ue];if(Qe===K&&(Qe=R(ue)),typeof Qe>"u"&&!ce)throw new p("intrinsic "+he+" exists, but is not available. Please file an issue!");return{alias:ze,name:ue,value:Qe}}throw new f("intrinsic "+he+" does not exist!")};return Md=function(he,ce){if(typeof he!="string"||he.length===0)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ce!="boolean")throw new p('"allowMissing" argument must be a boolean');if(se(/^%?[^%]*%?$/,he)===null)throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ue=Oe(he),ze=ue.length>0?ue[0]:"",Qe=Se("%"+ze+"%",ce),bt=Qe.name,Ye=Qe.value,pt=!1,at=Qe.alias;at&&(ze=at[0],de(ue,le([0,1],at)));for(var it=1,kt=!0;it=ue.length){var Ue=L(Ye,Ot);kt=!!Ue,kt&&"get"in Ue&&!("originalValue"in Ue.get)?Ye=Ue.get:Ye=Ye[Ot]}else kt=Y(Ye,Ot),Ye=Ye[Ot];kt&&!pt&&(ae[bt]=Ye)}}return Ye},Md}var zd,Rb;function Vx(){if(Rb)return zd;Rb=1;var t=sm(),r=Ux(),a=r([t("%String.prototype.indexOf%")]);return zd=function(l,u){var f=t(l,!!u);return typeof f=="function"&&a(l,".prototype.")>-1?r([f]):f},zd}var Ud,Cb;function qx(){if(Cb)return Ud;Cb=1;var t=sm(),r=Vx(),a=Ru(),o=Wi(),l=t("%Map%",!0),u=r("Map.prototype.get",!0),f=r("Map.prototype.set",!0),p=r("Map.prototype.has",!0),m=r("Map.prototype.delete",!0),g=r("Map.prototype.size",!0);return Ud=!!l&&function(){var h,S={assert:function(T){if(!S.has(T))throw new o("Side channel does not contain "+a(T))},delete:function(T){if(h){var b=m(h,T);return g(h)===0&&(h=void 0),b}return!1},get:function(T){if(h)return u(h,T)},has:function(T){return h?p(h,T):!1},set:function(T,b){h||(h=new l),f(h,T,b)}};return S},Ud}var Vd,Db;function YC(){if(Db)return Vd;Db=1;var t=sm(),r=Vx(),a=Ru(),o=qx(),l=Wi(),u=t("%WeakMap%",!0),f=r("WeakMap.prototype.get",!0),p=r("WeakMap.prototype.set",!0),m=r("WeakMap.prototype.has",!0),g=r("WeakMap.prototype.delete",!0);return Vd=u?function(){var h,S,T={assert:function(b){if(!T.has(b))throw new l("Side channel does not contain "+a(b))},delete:function(b){if(u&&b&&(typeof b=="object"||typeof b=="function")){if(h)return g(h,b)}else if(o&&S)return S.delete(b);return!1},get:function(b){return u&&b&&(typeof b=="object"||typeof b=="function")&&h?f(h,b):S&&S.get(b)},has:function(b){return u&&b&&(typeof b=="object"||typeof b=="function")&&h?m(h,b):!!S&&S.has(b)},set:function(b,_){u&&b&&(typeof b=="object"||typeof b=="function")?(h||(h=new u),p(h,b,_)):o&&(S||(S=o()),S.set(b,_))}};return T}:o,Vd}var qd,Nb;function Hx(){if(Nb)return qd;Nb=1;var t=Wi(),r=Ru(),a=_C(),o=qx(),l=YC(),u=l||o||a;return qd=function(){var p,m={assert:function(g){if(!m.has(g))throw new t("Side channel does not contain "+r(g))},delete:function(g){return!!p&&p.delete(g)},get:function(g){return p&&p.get(g)},has:function(g){return!!p&&p.has(g)},set:function(g,y){p||(p=u()),p.set(g,y)}};return m},qd}var Hd,Lb;function lm(){if(Lb)return Hd;Lb=1;var t=String.prototype.replace,r=/%20/g,a={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Hd={default:a.RFC3986,formatters:{RFC1738:function(o){return t.call(o,r,"+")},RFC3986:function(o){return String(o)}},RFC1738:a.RFC1738,RFC3986:a.RFC3986},Hd}var Bd,jb;function Bx(){if(jb)return Bd;jb=1;var t=lm(),r=Hx(),a=Object.prototype.hasOwnProperty,o=Array.isArray,l=r(),u=function(D,P){return l.set(D,P),D},f=function(D){return l.has(D)},p=function(D){return l.get(D)},m=function(D,P){l.set(D,P)},g=(function(){for(var U=[],D=0;D<256;++D)U.push("%"+((D<16?"0":"")+D.toString(16)).toUpperCase());return U})(),y=function(D){for(;D.length>1;){var P=D.pop(),k=P.obj[P.prop];if(o(k)){for(var ne=[],q=0;q=_?K.slice(ae,ae+_):K,R=[],B=0;B=48&&j<=57||j>=65&&j<=90||j>=97&&j<=122||q===t.RFC1738&&(j===40||j===41)){R[R.length]=pe.charAt(B);continue}if(j<128){R[R.length]=g[j];continue}if(j<2048){R[R.length]=g[192|j>>6]+g[128|j&63];continue}if(j<55296||j>=57344){R[R.length]=g[224|j>>12]+g[128|j>>6&63]+g[128|j&63];continue}B+=1,j=65536+((j&1023)<<10|pe.charCodeAt(B)&1023),R[R.length]=g[240|j>>18]+g[128|j>>12&63]+g[128|j>>6&63]+g[128|j&63]}I+=R.join("")}return I},C=function(D){for(var P=[{obj:{o:D},prop:"o"}],k=[],ne=0;nek?u(h(K,{plainObjects:ne}),K.length-1):K},ee=function(D,P){if(o(D)){for(var k=[],ne=0;ne"u"&&(le=0)}if(typeof k=="function"?j=k(C,j):j instanceof Date?j=K(j):L==="comma"&&u(j)&&(j=r.maybeMap(j,function(bt){return bt instanceof Date?K(bt):bt})),j===null){if(ee)return P&&!pe?P(C,y.encoder,R,"key",I):C;j=""}if(h(j)||r.isBuffer(j)){if(P){var J=pe?C:P(C,y.encoder,R,"key",I);return[ae(J)+"="+ae(P(j,y.encoder,R,"value",I))]}return[ae(C)+"="+ae(String(j))]}var se=[];if(typeof j>"u")return se;var me;if(L==="comma"&&u(j))pe&&P&&(j=r.maybeMap(j,P)),me=[{value:j.length>0?j.join(",")||null:void 0}];else if(u(k))me=k;else{var Te=Object.keys(j);me=ne?Te.sort(ne):Te}var Oe=D?String(C).replace(/\./g,"%2E"):String(C),Se=z&&u(j)&&j.length===1?Oe+"[]":Oe;if(F&&u(j)&&j.length===0)return Se+"[]";for(var Ae=0;Ae"u"?E.encodeDotInKeys===!0?!0:y.allowDots:!!E.allowDots;return{addQueryPrefix:typeof E.addQueryPrefix=="boolean"?E.addQueryPrefix:y.addQueryPrefix,allowDots:U,allowEmptyArrays:typeof E.allowEmptyArrays=="boolean"?!!E.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:ee,charset:C,charsetSentinel:typeof E.charsetSentinel=="boolean"?E.charsetSentinel:y.charsetSentinel,commaRoundTrip:!!E.commaRoundTrip,delimiter:typeof E.delimiter>"u"?y.delimiter:E.delimiter,encode:typeof E.encode=="boolean"?E.encode:y.encode,encodeDotInKeys:typeof E.encodeDotInKeys=="boolean"?E.encodeDotInKeys:y.encodeDotInKeys,encoder:typeof E.encoder=="function"?E.encoder:y.encoder,encodeValuesOnly:typeof E.encodeValuesOnly=="boolean"?E.encodeValuesOnly:y.encodeValuesOnly,filter:F,format:L,formatter:z,serializeDate:typeof E.serializeDate=="function"?E.serializeDate:y.serializeDate,skipNulls:typeof E.skipNulls=="boolean"?E.skipNulls:y.skipNulls,sort:typeof E.sort=="function"?E.sort:null,strictNullHandling:typeof E.strictNullHandling=="boolean"?E.strictNullHandling:y.strictNullHandling}};return kd=function(_,E){var C=_,L=b(E),z,F;typeof L.filter=="function"?(F=L.filter,C=F("",C)):u(L.filter)&&(F=L.filter,z=F);var ee=[];if(typeof C!="object"||C===null)return"";var U=l[L.arrayFormat],D=U==="comma"&&L.commaRoundTrip;z||(z=Object.keys(C)),L.sort&&z.sort(L.sort);for(var P=t(),k=0;k0?I+K:""},kd}var Id,Mb;function KC(){if(Mb)return Id;Mb=1;var t=Bx(),r=Object.prototype.hasOwnProperty,a=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},l=function(T){return T.replace(/&#(\d+);/g,function(b,_){return String.fromCharCode(parseInt(_,10))})},u=function(T,b,_){if(T&&typeof T=="string"&&b.comma&&T.indexOf(",")>-1)return T.split(",");if(b.throwOnLimitExceeded&&_>=b.arrayLimit)throw new RangeError("Array limit exceeded. Only "+b.arrayLimit+" element"+(b.arrayLimit===1?"":"s")+" allowed in an array.");return T},f="utf8=%26%2310003%3B",p="utf8=%E2%9C%93",m=function(b,_){var E={__proto__:null},C=_.ignoreQueryPrefix?b.replace(/^\?/,""):b;C=C.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var L=_.parameterLimit===1/0?void 0:_.parameterLimit,z=C.split(_.delimiter,_.throwOnLimitExceeded?L+1:L);if(_.throwOnLimitExceeded&&z.length>L)throw new RangeError("Parameter limit exceeded. Only "+L+" parameter"+(L===1?"":"s")+" allowed.");var F=-1,ee,U=_.charset;if(_.charsetSentinel)for(ee=0;ee-1&&(q=a(q)?[q]:q),ne!==null){var K=r.call(E,ne);K&&_.duplicates==="combine"?E[ne]=t.combine(E[ne],q,_.arrayLimit,_.plainObjects):(!K||_.duplicates==="last")&&(E[ne]=q)}}return E},g=function(T,b,_,E){var C=0;if(T.length>0&&T[T.length-1]==="[]"){var L=T.slice(0,-1).join("");C=Array.isArray(b)&&b[L]?b[L].length:0}for(var z=E?b:u(b,_,C),F=T.length-1;F>=0;--F){var ee,U=T[F];if(U==="[]"&&_.parseArrays)t.isOverflow(z)?ee=z:ee=_.allowEmptyArrays&&(z===""||_.strictNullHandling&&z===null)?[]:t.combine([],z,_.arrayLimit,_.plainObjects);else{ee=_.plainObjects?{__proto__:null}:{};var D=U.charAt(0)==="["&&U.charAt(U.length-1)==="]"?U.slice(1,-1):U,P=_.decodeDotInKeys?D.replace(/%2E/g,"."):D,k=parseInt(P,10);!_.parseArrays&&P===""?ee={0:z}:!isNaN(k)&&U!==P&&String(k)===P&&k>=0&&_.parseArrays&&k<=_.arrayLimit?(ee=[],ee[k]=z):P!=="__proto__"&&(ee[P]=z)}z=ee}return z},y=function(b,_){var E=_.allowDots?b.replace(/\.([^.[]+)/g,"[$1]"):b;if(_.depth<=0)return!_.plainObjects&&r.call(Object.prototype,E)&&!_.allowPrototypes?void 0:[E];var C=/(\[[^[\]]*])/,L=/(\[[^[\]]*])/g,z=C.exec(E),F=z?E.slice(0,z.index):E,ee=[];if(F){if(!_.plainObjects&&r.call(Object.prototype,F)&&!_.allowPrototypes)return;ee.push(F)}for(var U=0;(z=L.exec(E))!==null&&U<_.depth;){U+=1;var D=z[1].slice(1,-1);if(!_.plainObjects&&r.call(Object.prototype,D)&&!_.allowPrototypes)return;ee.push(z[1])}if(z){if(_.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+_.depth+" and strictDepth is true");ee.push("["+E.slice(z.index)+"]")}return ee},h=function(b,_,E,C){if(b){var L=y(b,E);if(L)return g(L,_,E,C)}},S=function(b){if(!b)return o;if(typeof b.allowEmptyArrays<"u"&&typeof b.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof b.decodeDotInKeys<"u"&&typeof b.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(b.decoder!==null&&typeof b.decoder<"u"&&typeof b.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof b.charset<"u"&&b.charset!=="utf-8"&&b.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof b.throwOnLimitExceeded<"u"&&typeof b.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var _=typeof b.charset>"u"?o.charset:b.charset,E=typeof b.duplicates>"u"?o.duplicates:b.duplicates;if(E!=="combine"&&E!=="first"&&E!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var C=typeof b.allowDots>"u"?b.decodeDotInKeys===!0?!0:o.allowDots:!!b.allowDots;return{allowDots:C,allowEmptyArrays:typeof b.allowEmptyArrays=="boolean"?!!b.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:typeof b.allowPrototypes=="boolean"?b.allowPrototypes:o.allowPrototypes,allowSparse:typeof b.allowSparse=="boolean"?b.allowSparse:o.allowSparse,arrayLimit:typeof b.arrayLimit=="number"?b.arrayLimit:o.arrayLimit,charset:_,charsetSentinel:typeof b.charsetSentinel=="boolean"?b.charsetSentinel:o.charsetSentinel,comma:typeof b.comma=="boolean"?b.comma:o.comma,decodeDotInKeys:typeof b.decodeDotInKeys=="boolean"?b.decodeDotInKeys:o.decodeDotInKeys,decoder:typeof b.decoder=="function"?b.decoder:o.decoder,delimiter:typeof b.delimiter=="string"||t.isRegExp(b.delimiter)?b.delimiter:o.delimiter,depth:typeof b.depth=="number"||b.depth===!1?+b.depth:o.depth,duplicates:E,ignoreQueryPrefix:b.ignoreQueryPrefix===!0,interpretNumericEntities:typeof b.interpretNumericEntities=="boolean"?b.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:typeof b.parameterLimit=="number"?b.parameterLimit:o.parameterLimit,parseArrays:b.parseArrays!==!1,plainObjects:typeof b.plainObjects=="boolean"?b.plainObjects:o.plainObjects,strictDepth:typeof b.strictDepth=="boolean"?!!b.strictDepth:o.strictDepth,strictNullHandling:typeof b.strictNullHandling=="boolean"?b.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:typeof b.throwOnLimitExceeded=="boolean"?b.throwOnLimitExceeded:!1}};return Id=function(T,b){var _=S(b);if(T===""||T===null||typeof T>"u")return _.plainObjects?{__proto__:null}:{};for(var E=typeof T=="string"?m(T,_):T,C=_.plainObjects?{__proto__:null}:{},L=Object.keys(E),z=0;zr=>{const a=ZC.call(r);return t[a]||(t[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),lr=t=>(t=t.toLowerCase(),r=>Nu(r)===t),Lu=t=>r=>typeof r===t,{isArray:eo}=Array,Ki=Lu("undefined");function Es(t){return t!==null&&!Ki(t)&&t.constructor!==null&&!Ki(t.constructor)&&En(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const $x=lr("ArrayBuffer");function JC(t){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(t):r=t&&t.buffer&&$x(t.buffer),r}const WC=Lu("string"),En=Lu("function"),Fx=Lu("number"),ws=t=>t!==null&&typeof t=="object",e2=t=>t===!0||t===!1,Wl=t=>{if(Nu(t)!=="object")return!1;const r=um(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Ix in t)&&!(Du in t)},t2=t=>{if(!ws(t)||Es(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},n2=lr("Date"),r2=lr("File"),a2=lr("Blob"),i2=lr("FileList"),o2=t=>ws(t)&&En(t.pipe),s2=t=>{let r;return t&&(typeof FormData=="function"&&t instanceof FormData||En(t.append)&&((r=Nu(t))==="formdata"||r==="object"&&En(t.toString)&&t.toString()==="[object FormData]"))},l2=lr("URLSearchParams"),[u2,c2,f2,d2]=["ReadableStream","Request","Response","Headers"].map(lr),p2=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ts(t,r,{allOwnKeys:a=!1}={}){if(t===null||typeof t>"u")return;let o,l;if(typeof t!="object"&&(t=[t]),eo(t))for(o=0,l=t.length;o0;)if(l=a[o],r===l.toLowerCase())return l;return null}const Ga=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Yx=t=>!Ki(t)&&t!==Ga;function xp(){const{caseless:t,skipUndefined:r}=Yx(this)&&this||{},a={},o=(l,u)=>{if(u==="__proto__"||u==="constructor"||u==="prototype")return;const f=t&&Gx(a,u)||u;Wl(a[f])&&Wl(l)?a[f]=xp(a[f],l):Wl(l)?a[f]=xp({},l):eo(l)?a[f]=l.slice():(!r||!Ki(l))&&(a[f]=l)};for(let l=0,u=arguments.length;l(Ts(r,(l,u)=>{a&&En(l)?Object.defineProperty(t,u,{value:kx(l,a),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,u,{value:l,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),t),h2=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),g2=(t,r,a,o)=>{t.prototype=Object.create(r.prototype,o),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:r.prototype}),a&&Object.assign(t.prototype,a)},y2=(t,r,a,o)=>{let l,u,f;const p={};if(r=r||{},t==null)return r;do{for(l=Object.getOwnPropertyNames(t),u=l.length;u-- >0;)f=l[u],(!o||o(f,t,r))&&!p[f]&&(r[f]=t[f],p[f]=!0);t=a!==!1&&um(t)}while(t&&(!a||a(t,r))&&t!==Object.prototype);return r},v2=(t,r,a)=>{t=String(t),(a===void 0||a>t.length)&&(a=t.length),a-=r.length;const o=t.indexOf(r,a);return o!==-1&&o===a},b2=t=>{if(!t)return null;if(eo(t))return t;let r=t.length;if(!Fx(r))return null;const a=new Array(r);for(;r-- >0;)a[r]=t[r];return a},x2=(t=>r=>t&&r instanceof t)(typeof Uint8Array<"u"&&um(Uint8Array)),S2=(t,r)=>{const o=(t&&t[Du]).call(t);let l;for(;(l=o.next())&&!l.done;){const u=l.value;r.call(t,u[0],u[1])}},_2=(t,r)=>{let a;const o=[];for(;(a=t.exec(r))!==null;)o.push(a);return o},E2=lr("HTMLFormElement"),w2=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,l){return o.toUpperCase()+l}),Vb=(({hasOwnProperty:t})=>(r,a)=>t.call(r,a))(Object.prototype),T2=lr("RegExp"),Xx=(t,r)=>{const a=Object.getOwnPropertyDescriptors(t),o={};Ts(a,(l,u)=>{let f;(f=r(l,u,t))!==!1&&(o[u]=f||l)}),Object.defineProperties(t,o)},A2=t=>{Xx(t,(r,a)=>{if(En(t)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const o=t[a];if(En(o)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},O2=(t,r)=>{const a={},o=l=>{l.forEach(u=>{a[u]=!0})};return eo(t)?o(t):o(String(t).split(r)),a},R2=()=>{},C2=(t,r)=>t!=null&&Number.isFinite(t=+t)?t:r;function D2(t){return!!(t&&En(t.append)&&t[Ix]==="FormData"&&t[Du])}const N2=t=>{const r=new Array(10),a=(o,l)=>{if(ws(o)){if(r.indexOf(o)>=0)return;if(Es(o))return o;if(!("toJSON"in o)){r[l]=o;const u=eo(o)?[]:{};return Ts(o,(f,p)=>{const m=a(f,l+1);!Ki(m)&&(u[p]=m)}),r[l]=void 0,u}}return o};return a(t,0)},L2=lr("AsyncFunction"),j2=t=>t&&(ws(t)||En(t))&&En(t.then)&&En(t.catch),Kx=((t,r)=>t?setImmediate:r?((a,o)=>(Ga.addEventListener("message",({source:l,data:u})=>{l===Ga&&u===a&&o.length&&o.shift()()},!1),l=>{o.push(l),Ga.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",En(Ga.postMessage)),P2=typeof queueMicrotask<"u"?queueMicrotask.bind(Ga):typeof process<"u"&&process.nextTick||Kx,M2=t=>t!=null&&En(t[Du]),W={isArray:eo,isArrayBuffer:$x,isBuffer:Es,isFormData:s2,isArrayBufferView:JC,isString:WC,isNumber:Fx,isBoolean:e2,isObject:ws,isPlainObject:Wl,isEmptyObject:t2,isReadableStream:u2,isRequest:c2,isResponse:f2,isHeaders:d2,isUndefined:Ki,isDate:n2,isFile:r2,isBlob:a2,isRegExp:T2,isFunction:En,isStream:o2,isURLSearchParams:l2,isTypedArray:x2,isFileList:i2,forEach:Ts,merge:xp,extend:m2,trim:p2,stripBOM:h2,inherits:g2,toFlatObject:y2,kindOf:Nu,kindOfTest:lr,endsWith:v2,toArray:b2,forEachEntry:S2,matchAll:_2,isHTMLForm:E2,hasOwnProperty:Vb,hasOwnProp:Vb,reduceDescriptors:Xx,freezeMethods:A2,toObjectSet:O2,toCamelCase:w2,noop:R2,toFiniteNumber:C2,findKey:Gx,global:Ga,isContextDefined:Yx,isSpecCompliantForm:D2,toJSONObject:N2,isAsyncFn:L2,isThenable:j2,setImmediate:Kx,asap:P2,isIterable:M2};let Ne=class Qx extends Error{static from(r,a,o,l,u,f){const p=new Qx(r.message,a||r.code,o,l,u);return p.cause=r,p.name=r.name,f&&Object.assign(p,f),p}constructor(r,a,o,l,u){super(r),this.name="AxiosError",this.isAxiosError=!0,a&&(this.code=a),o&&(this.config=o),l&&(this.request=l),u&&(this.response=u,this.status=u.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}};Ne.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Ne.ERR_BAD_OPTION="ERR_BAD_OPTION";Ne.ECONNABORTED="ECONNABORTED";Ne.ETIMEDOUT="ETIMEDOUT";Ne.ERR_NETWORK="ERR_NETWORK";Ne.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Ne.ERR_DEPRECATED="ERR_DEPRECATED";Ne.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Ne.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Ne.ERR_CANCELED="ERR_CANCELED";Ne.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Ne.ERR_INVALID_URL="ERR_INVALID_URL";const z2=null;function Sp(t){return W.isPlainObject(t)||W.isArray(t)}function Zx(t){return W.endsWith(t,"[]")?t.slice(0,-2):t}function qb(t,r,a){return t?t.concat(r).map(function(l,u){return l=Zx(l),!a&&u?"["+l+"]":l}).join(a?".":""):r}function U2(t){return W.isArray(t)&&!t.some(Sp)}const V2=W.toFlatObject(W,{},null,function(r){return/^is[A-Z]/.test(r)});function ju(t,r,a){if(!W.isObject(t))throw new TypeError("target must be an object");r=r||new FormData,a=W.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,E){return!W.isUndefined(E[_])});const o=a.metaTokens,l=a.visitor||y,u=a.dots,f=a.indexes,m=(a.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(r);if(!W.isFunction(l))throw new TypeError("visitor must be a function");function g(b){if(b===null)return"";if(W.isDate(b))return b.toISOString();if(W.isBoolean(b))return b.toString();if(!m&&W.isBlob(b))throw new Ne("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(b)||W.isTypedArray(b)?m&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function y(b,_,E){let C=b;if(b&&!E&&typeof b=="object"){if(W.endsWith(_,"{}"))_=o?_:_.slice(0,-2),b=JSON.stringify(b);else if(W.isArray(b)&&U2(b)||(W.isFileList(b)||W.endsWith(_,"[]"))&&(C=W.toArray(b)))return _=Zx(_),C.forEach(function(z,F){!(W.isUndefined(z)||z===null)&&r.append(f===!0?qb([_],F,u):f===null?_:_+"[]",g(z))}),!1}return Sp(b)?!0:(r.append(qb(E,_,u),g(b)),!1)}const h=[],S=Object.assign(V2,{defaultVisitor:y,convertValue:g,isVisitable:Sp});function T(b,_){if(!W.isUndefined(b)){if(h.indexOf(b)!==-1)throw Error("Circular reference detected in "+_.join("."));h.push(b),W.forEach(b,function(C,L){(!(W.isUndefined(C)||C===null)&&l.call(r,C,W.isString(L)?L.trim():L,_,S))===!0&&T(C,_?_.concat(L):[L])}),h.pop()}}if(!W.isObject(t))throw new TypeError("data must be an object");return T(t),r}function Hb(t){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(o){return r[o]})}function cm(t,r){this._pairs=[],t&&ju(t,this,r)}const Jx=cm.prototype;Jx.append=function(r,a){this._pairs.push([r,a])};Jx.toString=function(r){const a=r?function(o){return r.call(this,o,Hb)}:Hb;return this._pairs.map(function(l){return a(l[0])+"="+a(l[1])},"").join("&")};function q2(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Wx(t,r,a){if(!r)return t;const o=a&&a.encode||q2,l=W.isFunction(a)?{serialize:a}:a,u=l&&l.serialize;let f;if(u?f=u(r,l):f=W.isURLSearchParams(r)?r.toString():new cm(r,l).toString(o),f){const p=t.indexOf("#");p!==-1&&(t=t.slice(0,p)),t+=(t.indexOf("?")===-1?"?":"&")+f}return t}class Bb{constructor(){this.handlers=[]}use(r,a,o){return this.handlers.push({fulfilled:r,rejected:a,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){W.forEach(this.handlers,function(o){o!==null&&r(o)})}}const fm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},H2=typeof URLSearchParams<"u"?URLSearchParams:cm,B2=typeof FormData<"u"?FormData:null,k2=typeof Blob<"u"?Blob:null,I2={isBrowser:!0,classes:{URLSearchParams:H2,FormData:B2,Blob:k2},protocols:["http","https","file","blob","url","data"]},dm=typeof window<"u"&&typeof document<"u",_p=typeof navigator=="object"&&navigator||void 0,$2=dm&&(!_p||["ReactNative","NativeScript","NS"].indexOf(_p.product)<0),F2=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",G2=dm&&window.location.href||"http://localhost",Y2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:dm,hasStandardBrowserEnv:$2,hasStandardBrowserWebWorkerEnv:F2,navigator:_p,origin:G2},Symbol.toStringTag,{value:"Module"})),ln={...Y2,...I2};function X2(t,r){return ju(t,new ln.classes.URLSearchParams,{visitor:function(a,o,l,u){return ln.isNode&&W.isBuffer(a)?(this.append(o,a.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)},...r})}function K2(t){return W.matchAll(/\w+|\[(\w*)]/g,t).map(r=>r[0]==="[]"?"":r[1]||r[0])}function Q2(t){const r={},a=Object.keys(t);let o;const l=a.length;let u;for(o=0;o=a.length;return f=!f&&W.isArray(l)?l.length:f,m?(W.hasOwnProp(l,f)?l[f]=[l[f],o]:l[f]=o,!p):((!l[f]||!W.isObject(l[f]))&&(l[f]=[]),r(a,o,l[f],u)&&W.isArray(l[f])&&(l[f]=Q2(l[f])),!p)}if(W.isFormData(t)&&W.isFunction(t.entries)){const a={};return W.forEachEntry(t,(o,l)=>{r(K2(o),l,a,0)}),a}return null}function Z2(t,r,a){if(W.isString(t))try{return(r||JSON.parse)(t),W.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(a||JSON.stringify)(t)}const As={transitional:fm,adapter:["xhr","http","fetch"],transformRequest:[function(r,a){const o=a.getContentType()||"",l=o.indexOf("application/json")>-1,u=W.isObject(r);if(u&&W.isHTMLForm(r)&&(r=new FormData(r)),W.isFormData(r))return l?JSON.stringify(eS(r)):r;if(W.isArrayBuffer(r)||W.isBuffer(r)||W.isStream(r)||W.isFile(r)||W.isBlob(r)||W.isReadableStream(r))return r;if(W.isArrayBufferView(r))return r.buffer;if(W.isURLSearchParams(r))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let p;if(u){if(o.indexOf("application/x-www-form-urlencoded")>-1)return X2(r,this.formSerializer).toString();if((p=W.isFileList(r))||o.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return ju(p?{"files[]":r}:r,m&&new m,this.formSerializer)}}return u||l?(a.setContentType("application/json",!1),Z2(r)):r}],transformResponse:[function(r){const a=this.transitional||As.transitional,o=a&&a.forcedJSONParsing,l=this.responseType==="json";if(W.isResponse(r)||W.isReadableStream(r))return r;if(r&&W.isString(r)&&(o&&!this.responseType||l)){const f=!(a&&a.silentJSONParsing)&&l;try{return JSON.parse(r,this.parseReviver)}catch(p){if(f)throw p.name==="SyntaxError"?Ne.from(p,Ne.ERR_BAD_RESPONSE,this,null,this.response):p}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ln.classes.FormData,Blob:ln.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],t=>{As.headers[t]={}});const J2=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),W2=t=>{const r={};let a,o,l;return t&&t.split(` +`).forEach(function(f){l=f.indexOf(":"),a=f.substring(0,l).trim().toLowerCase(),o=f.substring(l+1).trim(),!(!a||r[a]&&J2[a])&&(a==="set-cookie"?r[a]?r[a].push(o):r[a]=[o]:r[a]=r[a]?r[a]+", "+o:o)}),r},kb=Symbol("internals");function Qo(t){return t&&String(t).trim().toLowerCase()}function eu(t){return t===!1||t==null?t:W.isArray(t)?t.map(eu):String(t)}function eD(t){const r=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=a.exec(t);)r[o[1]]=o[2];return r}const tD=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Fd(t,r,a,o,l){if(W.isFunction(o))return o.call(this,r,a);if(l&&(r=a),!!W.isString(r)){if(W.isString(o))return r.indexOf(o)!==-1;if(W.isRegExp(o))return o.test(r)}}function nD(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,a,o)=>a.toUpperCase()+o)}function rD(t,r){const a=W.toCamelCase(" "+r);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+a,{value:function(l,u,f){return this[o].call(this,r,l,u,f)},configurable:!0})})}let wn=class{constructor(r){r&&this.set(r)}set(r,a,o){const l=this;function u(p,m,g){const y=Qo(m);if(!y)throw new Error("header name must be a non-empty string");const h=W.findKey(l,y);(!h||l[h]===void 0||g===!0||g===void 0&&l[h]!==!1)&&(l[h||m]=eu(p))}const f=(p,m)=>W.forEach(p,(g,y)=>u(g,y,m));if(W.isPlainObject(r)||r instanceof this.constructor)f(r,a);else if(W.isString(r)&&(r=r.trim())&&!tD(r))f(W2(r),a);else if(W.isObject(r)&&W.isIterable(r)){let p={},m,g;for(const y of r){if(!W.isArray(y))throw TypeError("Object iterator must return a key-value pair");p[g=y[0]]=(m=p[g])?W.isArray(m)?[...m,y[1]]:[m,y[1]]:y[1]}f(p,a)}else r!=null&&u(a,r,o);return this}get(r,a){if(r=Qo(r),r){const o=W.findKey(this,r);if(o){const l=this[o];if(!a)return l;if(a===!0)return eD(l);if(W.isFunction(a))return a.call(this,l,o);if(W.isRegExp(a))return a.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,a){if(r=Qo(r),r){const o=W.findKey(this,r);return!!(o&&this[o]!==void 0&&(!a||Fd(this,this[o],o,a)))}return!1}delete(r,a){const o=this;let l=!1;function u(f){if(f=Qo(f),f){const p=W.findKey(o,f);p&&(!a||Fd(o,o[p],p,a))&&(delete o[p],l=!0)}}return W.isArray(r)?r.forEach(u):u(r),l}clear(r){const a=Object.keys(this);let o=a.length,l=!1;for(;o--;){const u=a[o];(!r||Fd(this,this[u],u,r,!0))&&(delete this[u],l=!0)}return l}normalize(r){const a=this,o={};return W.forEach(this,(l,u)=>{const f=W.findKey(o,u);if(f){a[f]=eu(l),delete a[u];return}const p=r?nD(u):String(u).trim();p!==u&&delete a[u],a[p]=eu(l),o[p]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const a=Object.create(null);return W.forEach(this,(o,l)=>{o!=null&&o!==!1&&(a[l]=r&&W.isArray(o)?o.join(", "):o)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,a])=>r+": "+a).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...a){const o=new this(r);return a.forEach(l=>o.set(l)),o}static accessor(r){const o=(this[kb]=this[kb]={accessors:{}}).accessors,l=this.prototype;function u(f){const p=Qo(f);o[p]||(rD(l,f),o[p]=!0)}return W.isArray(r)?r.forEach(u):u(r),this}};wn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);W.reduceDescriptors(wn.prototype,({value:t},r)=>{let a=r[0].toUpperCase()+r.slice(1);return{get:()=>t,set(o){this[a]=o}}});W.freezeMethods(wn);function Gd(t,r){const a=this||As,o=r||a,l=wn.from(o.headers);let u=o.data;return W.forEach(t,function(p){u=p.call(a,u,l.normalize(),r?r.status:void 0)}),l.normalize(),u}function tS(t){return!!(t&&t.__CANCEL__)}let Os=class extends Ne{constructor(r,a,o){super(r??"canceled",Ne.ERR_CANCELED,a,o),this.name="CanceledError",this.__CANCEL__=!0}};function nS(t,r,a){const o=a.config.validateStatus;!a.status||!o||o(a.status)?t(a):r(new Ne("Request failed with status code "+a.status,[Ne.ERR_BAD_REQUEST,Ne.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function aD(t){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}function iD(t,r){t=t||10;const a=new Array(t),o=new Array(t);let l=0,u=0,f;return r=r!==void 0?r:1e3,function(m){const g=Date.now(),y=o[u];f||(f=g),a[l]=m,o[l]=g;let h=u,S=0;for(;h!==l;)S+=a[h++],h=h%t;if(l=(l+1)%t,l===u&&(u=(u+1)%t),g-f{a=y,l=null,u&&(clearTimeout(u),u=null),t(...g)};return[(...g)=>{const y=Date.now(),h=y-a;h>=o?f(g,y):(l=g,u||(u=setTimeout(()=>{u=null,f(l)},o-h)))},()=>l&&f(l)]}const fu=(t,r,a=3)=>{let o=0;const l=iD(50,250);return oD(u=>{const f=u.loaded,p=u.lengthComputable?u.total:void 0,m=f-o,g=l(m),y=f<=p;o=f;const h={loaded:f,total:p,progress:p?f/p:void 0,bytes:m,rate:g||void 0,estimated:g&&p&&y?(p-f)/g:void 0,event:u,lengthComputable:p!=null,[r?"download":"upload"]:!0};t(h)},a)},Ib=(t,r)=>{const a=t!=null;return[o=>r[0]({lengthComputable:a,total:t,loaded:o}),r[1]]},$b=t=>(...r)=>W.asap(()=>t(...r)),sD=ln.hasStandardBrowserEnv?((t,r)=>a=>(a=new URL(a,ln.origin),t.protocol===a.protocol&&t.host===a.host&&(r||t.port===a.port)))(new URL(ln.origin),ln.navigator&&/(msie|trident)/i.test(ln.navigator.userAgent)):()=>!0,lD=ln.hasStandardBrowserEnv?{write(t,r,a,o,l,u,f){if(typeof document>"u")return;const p=[`${t}=${encodeURIComponent(r)}`];W.isNumber(a)&&p.push(`expires=${new Date(a).toUTCString()}`),W.isString(o)&&p.push(`path=${o}`),W.isString(l)&&p.push(`domain=${l}`),u===!0&&p.push("secure"),W.isString(f)&&p.push(`SameSite=${f}`),document.cookie=p.join("; ")},read(t){if(typeof document>"u")return null;const r=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return r?decodeURIComponent(r[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function uD(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function cD(t,r){return r?t.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):t}function rS(t,r,a){let o=!uD(r);return t&&(o||a==!1)?cD(t,r):r}const Fb=t=>t instanceof wn?{...t}:t;function Za(t,r){r=r||{};const a={};function o(g,y,h,S){return W.isPlainObject(g)&&W.isPlainObject(y)?W.merge.call({caseless:S},g,y):W.isPlainObject(y)?W.merge({},y):W.isArray(y)?y.slice():y}function l(g,y,h,S){if(W.isUndefined(y)){if(!W.isUndefined(g))return o(void 0,g,h,S)}else return o(g,y,h,S)}function u(g,y){if(!W.isUndefined(y))return o(void 0,y)}function f(g,y){if(W.isUndefined(y)){if(!W.isUndefined(g))return o(void 0,g)}else return o(void 0,y)}function p(g,y,h){if(h in r)return o(g,y);if(h in t)return o(void 0,g)}const m={url:u,method:u,data:u,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:p,headers:(g,y,h)=>l(Fb(g),Fb(y),h,!0)};return W.forEach(Object.keys({...t,...r}),function(y){if(y==="__proto__"||y==="constructor"||y==="prototype")return;const h=W.hasOwnProp(m,y)?m[y]:l,S=h(t[y],r[y],y);W.isUndefined(S)&&h!==p||(a[y]=S)}),a}const aS=t=>{const r=Za({},t);let{data:a,withXSRFToken:o,xsrfHeaderName:l,xsrfCookieName:u,headers:f,auth:p}=r;if(r.headers=f=wn.from(f),r.url=Wx(rS(r.baseURL,r.url,r.allowAbsoluteUrls),t.params,t.paramsSerializer),p&&f.set("Authorization","Basic "+btoa((p.username||"")+":"+(p.password?unescape(encodeURIComponent(p.password)):""))),W.isFormData(a)){if(ln.hasStandardBrowserEnv||ln.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if(W.isFunction(a.getHeaders)){const m=a.getHeaders(),g=["content-type","content-length"];Object.entries(m).forEach(([y,h])=>{g.includes(y.toLowerCase())&&f.set(y,h)})}}if(ln.hasStandardBrowserEnv&&(o&&W.isFunction(o)&&(o=o(r)),o||o!==!1&&sD(r.url))){const m=l&&u&&lD.read(u);m&&f.set(l,m)}return r},fD=typeof XMLHttpRequest<"u",dD=fD&&function(t){return new Promise(function(a,o){const l=aS(t);let u=l.data;const f=wn.from(l.headers).normalize();let{responseType:p,onUploadProgress:m,onDownloadProgress:g}=l,y,h,S,T,b;function _(){T&&T(),b&&b(),l.cancelToken&&l.cancelToken.unsubscribe(y),l.signal&&l.signal.removeEventListener("abort",y)}let E=new XMLHttpRequest;E.open(l.method.toUpperCase(),l.url,!0),E.timeout=l.timeout;function C(){if(!E)return;const z=wn.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),ee={data:!p||p==="text"||p==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:z,config:t,request:E};nS(function(D){a(D),_()},function(D){o(D),_()},ee),E=null}"onloadend"in E?E.onloadend=C:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(C)},E.onabort=function(){E&&(o(new Ne("Request aborted",Ne.ECONNABORTED,t,E)),E=null)},E.onerror=function(F){const ee=F&&F.message?F.message:"Network Error",U=new Ne(ee,Ne.ERR_NETWORK,t,E);U.event=F||null,o(U),E=null},E.ontimeout=function(){let F=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const ee=l.transitional||fm;l.timeoutErrorMessage&&(F=l.timeoutErrorMessage),o(new Ne(F,ee.clarifyTimeoutError?Ne.ETIMEDOUT:Ne.ECONNABORTED,t,E)),E=null},u===void 0&&f.setContentType(null),"setRequestHeader"in E&&W.forEach(f.toJSON(),function(F,ee){E.setRequestHeader(ee,F)}),W.isUndefined(l.withCredentials)||(E.withCredentials=!!l.withCredentials),p&&p!=="json"&&(E.responseType=l.responseType),g&&([S,b]=fu(g,!0),E.addEventListener("progress",S)),m&&E.upload&&([h,T]=fu(m),E.upload.addEventListener("progress",h),E.upload.addEventListener("loadend",T)),(l.cancelToken||l.signal)&&(y=z=>{E&&(o(!z||z.type?new Os(null,t,E):z),E.abort(),E=null)},l.cancelToken&&l.cancelToken.subscribe(y),l.signal&&(l.signal.aborted?y():l.signal.addEventListener("abort",y)));const L=aD(l.url);if(L&&ln.protocols.indexOf(L)===-1){o(new Ne("Unsupported protocol "+L+":",Ne.ERR_BAD_REQUEST,t));return}E.send(u||null)})},pD=(t,r)=>{const{length:a}=t=t?t.filter(Boolean):[];if(r||a){let o=new AbortController,l;const u=function(g){if(!l){l=!0,p();const y=g instanceof Error?g:this.reason;o.abort(y instanceof Ne?y:new Os(y instanceof Error?y.message:y))}};let f=r&&setTimeout(()=>{f=null,u(new Ne(`timeout of ${r}ms exceeded`,Ne.ETIMEDOUT))},r);const p=()=>{t&&(f&&clearTimeout(f),f=null,t.forEach(g=>{g.unsubscribe?g.unsubscribe(u):g.removeEventListener("abort",u)}),t=null)};t.forEach(g=>g.addEventListener("abort",u));const{signal:m}=o;return m.unsubscribe=()=>W.asap(p),m}},mD=function*(t,r){let a=t.byteLength;if(a{const l=hD(t,r);let u=0,f,p=m=>{f||(f=!0,o&&o(m))};return new ReadableStream({async pull(m){try{const{done:g,value:y}=await l.next();if(g){p(),m.close();return}let h=y.byteLength;if(a){let S=u+=h;a(S)}m.enqueue(new Uint8Array(y))}catch(g){throw p(g),g}},cancel(m){return p(m),l.return()}},{highWaterMark:2})},Yb=64*1024,{isFunction:Il}=W,yD=(({Request:t,Response:r})=>({Request:t,Response:r}))(W.global),{ReadableStream:Xb,TextEncoder:Kb}=W.global,Qb=(t,...r)=>{try{return!!t(...r)}catch{return!1}},vD=t=>{t=W.merge.call({skipUndefined:!0},yD,t);const{fetch:r,Request:a,Response:o}=t,l=r?Il(r):typeof fetch=="function",u=Il(a),f=Il(o);if(!l)return!1;const p=l&&Il(Xb),m=l&&(typeof Kb=="function"?(b=>_=>b.encode(_))(new Kb):async b=>new Uint8Array(await new a(b).arrayBuffer())),g=u&&p&&Qb(()=>{let b=!1;const _=new a(ln.origin,{body:new Xb,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!_}),y=f&&p&&Qb(()=>W.isReadableStream(new o("").body)),h={stream:y&&(b=>b.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!h[b]&&(h[b]=(_,E)=>{let C=_&&_[b];if(C)return C.call(_);throw new Ne(`Response type '${b}' is not supported`,Ne.ERR_NOT_SUPPORT,E)})});const S=async b=>{if(b==null)return 0;if(W.isBlob(b))return b.size;if(W.isSpecCompliantForm(b))return(await new a(ln.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(W.isArrayBufferView(b)||W.isArrayBuffer(b))return b.byteLength;if(W.isURLSearchParams(b)&&(b=b+""),W.isString(b))return(await m(b)).byteLength},T=async(b,_)=>{const E=W.toFiniteNumber(b.getContentLength());return E??S(_)};return async b=>{let{url:_,method:E,data:C,signal:L,cancelToken:z,timeout:F,onDownloadProgress:ee,onUploadProgress:U,responseType:D,headers:P,withCredentials:k="same-origin",fetchOptions:ne}=aS(b),q=r||fetch;D=D?(D+"").toLowerCase():"text";let K=pD([L,z&&z.toAbortSignal()],F),I=null;const ae=K&&K.unsubscribe&&(()=>{K.unsubscribe()});let pe;try{if(U&&g&&E!=="get"&&E!=="head"&&(pe=await T(P,C))!==0){let de=new a(_,{method:"POST",body:C,duplex:"half"}),Q;if(W.isFormData(C)&&(Q=de.headers.get("content-type"))&&P.setContentType(Q),de.body){const[J,se]=Ib(pe,fu($b(U)));C=Gb(de.body,Yb,J,se)}}W.isString(k)||(k=k?"include":"omit");const R=u&&"credentials"in a.prototype,B={...ne,signal:K,method:E.toUpperCase(),headers:P.normalize().toJSON(),body:C,duplex:"half",credentials:R?k:void 0};I=u&&new a(_,B);let j=await(u?q(I,ne):q(_,B));const Y=y&&(D==="stream"||D==="response");if(y&&(ee||Y&&ae)){const de={};["status","statusText","headers"].forEach(me=>{de[me]=j[me]});const Q=W.toFiniteNumber(j.headers.get("content-length")),[J,se]=ee&&Ib(Q,fu($b(ee),!0))||[];j=new o(Gb(j.body,Yb,J,()=>{se&&se(),ae&&ae()}),de)}D=D||"text";let le=await h[W.findKey(h,D)||"text"](j,b);return!Y&&ae&&ae(),await new Promise((de,Q)=>{nS(de,Q,{data:le,headers:wn.from(j.headers),status:j.status,statusText:j.statusText,config:b,request:I})})}catch(R){throw ae&&ae(),R&&R.name==="TypeError"&&/Load failed|fetch/i.test(R.message)?Object.assign(new Ne("Network Error",Ne.ERR_NETWORK,b,I,R&&R.response),{cause:R.cause||R}):Ne.from(R,R&&R.code,b,I,R&&R.response)}}},bD=new Map,iS=t=>{let r=t&&t.env||{};const{fetch:a,Request:o,Response:l}=r,u=[o,l,a];let f=u.length,p=f,m,g,y=bD;for(;p--;)m=u[p],g=y.get(m),g===void 0&&y.set(m,g=p?new Map:vD(r)),y=g;return g};iS();const pm={http:z2,xhr:dD,fetch:{get:iS}};W.forEach(pm,(t,r)=>{if(t){try{Object.defineProperty(t,"name",{value:r})}catch{}Object.defineProperty(t,"adapterName",{value:r})}});const Zb=t=>`- ${t}`,xD=t=>W.isFunction(t)||t===null||t===!1;function SD(t,r){t=W.isArray(t)?t:[t];const{length:a}=t;let o,l;const u={};for(let f=0;f`adapter ${m} `+(g===!1?"is not supported by the environment":"is not available in the build"));let p=a?f.length>1?`since : `+f.map(Zb).join(` `):" "+Zb(f[0]):"as no adapter specified";throw new Ne("There is no suitable adapter to dispatch the request "+p,"ERR_NOT_SUPPORT")}return l}const oS={getAdapter:SD,adapters:pm};function Yd(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Os(null,t)}function Jb(t){return Yd(t),t.headers=wn.from(t.headers),t.data=Gd.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),oS.getAdapter(t.adapter||As.adapter,t)(t).then(function(o){return Yd(t),o.data=Gd.call(t,t.transformResponse,o),o.headers=wn.from(o.headers),o},function(o){return tS(o)||(Yd(t),o&&o.response&&(o.response.data=Gd.call(t,t.transformResponse,o.response),o.response.headers=wn.from(o.response.headers))),Promise.reject(o)})}const sS="1.13.5",Pu={};["object","boolean","number","function","string","symbol"].forEach((t,r)=>{Pu[t]=function(o){return typeof o===t||"a"+(r<1?"n ":" ")+t}});const Wb={};Pu.transitional=function(r,a,o){function l(u,f){return"[Axios v"+sS+"] Transitional option '"+u+"'"+f+(o?". "+o:"")}return(u,f,p)=>{if(r===!1)throw new Ne(l(f," has been removed"+(a?" in "+a:"")),Ne.ERR_DEPRECATED);return a&&!Wb[f]&&(Wb[f]=!0,console.warn(l(f," has been deprecated since v"+a+" and will be removed in the near future"))),r?r(u,f,p):!0}};Pu.spelling=function(r){return(a,o)=>(console.warn(`${o} is likely a misspelling of ${r}`),!0)};function _D(t,r,a){if(typeof t!="object")throw new Ne("options must be an object",Ne.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let l=o.length;for(;l-- >0;){const u=o[l],f=r[u];if(f){const p=t[u],m=p===void 0||f(p,u,t);if(m!==!0)throw new Ne("option "+u+" must be "+m,Ne.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new Ne("Unknown option "+u,Ne.ERR_BAD_OPTION)}}const tu={assertOptions:_D,validators:Pu},Fn=tu.validators;let Ya=class{constructor(r){this.defaults=r||{},this.interceptors={request:new Bb,response:new Bb}}async request(r,a){try{return await this._request(r,a)}catch(o){if(o instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const u=l.stack?l.stack.replace(/^.+\n/,""):"";try{o.stack?u&&!String(o.stack).endsWith(u.replace(/^.+\n.+\n/,""))&&(o.stack+=` -`+u):o.stack=u}catch{}}throw o}}_request(r,a){typeof r=="string"?(a=a||{},a.url=r):a=r||{},a=Za(this.defaults,a);const{transitional:o,paramsSerializer:l,headers:u}=a;o!==void 0&&tu.assertOptions(o,{silentJSONParsing:Fn.transitional(Fn.boolean),forcedJSONParsing:Fn.transitional(Fn.boolean),clarifyTimeoutError:Fn.transitional(Fn.boolean),legacyInterceptorReqResOrdering:Fn.transitional(Fn.boolean)},!1),l!=null&&(W.isFunction(l)?a.paramsSerializer={serialize:l}:tu.assertOptions(l,{encode:Fn.function,serialize:Fn.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),tu.assertOptions(a,{baseUrl:Fn.spelling("baseURL"),withXsrfToken:Fn.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let f=u&&W.merge(u.common,u[a.method]);u&&W.forEach(["delete","get","head","post","put","patch","common"],b=>{delete u[b]}),a.headers=wn.concat(f,u);const p=[];let m=!0;this.interceptors.request.forEach(function(_){if(typeof _.runWhen=="function"&&_.runWhen(a)===!1)return;m=m&&_.synchronous;const E=a.transitional||fm;E&&E.legacyInterceptorReqResOrdering?p.unshift(_.fulfilled,_.rejected):p.push(_.fulfilled,_.rejected)});const h=[];this.interceptors.response.forEach(function(_){h.push(_.fulfilled,_.rejected)});let y,g=0,S;if(!m){const b=[Jb.bind(this),void 0];for(b.unshift(...p),b.push(...h),S=b.length,y=Promise.resolve(a);g{if(!o._listeners)return;let u=o._listeners.length;for(;u-- >0;)o._listeners[u](l);o._listeners=null}),this.promise.then=l=>{let u;const f=new Promise(p=>{o.subscribe(p),u=p}).then(l);return f.cancel=function(){o.unsubscribe(u)},f},r(function(u,f,p){o.reason||(o.reason=new Os(u,f,p),a(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const a=this._listeners.indexOf(r);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const r=new AbortController,a=o=>{r.abort(o)};return this.subscribe(a),r.signal.unsubscribe=()=>this.unsubscribe(a),r.signal}static source(){let r;return{token:new lS(function(l){r=l}),cancel:r}}};function wD(t){return function(a){return t.apply(null,a)}}function TD(t){return W.isObject(t)&&t.isAxiosError===!0}const Ep={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ep).forEach(([t,r])=>{Ep[r]=t});function uS(t){const r=new Ya(t),a=kx(Ya.prototype.request,r);return W.extend(a,Ya.prototype,r,{allOwnKeys:!0}),W.extend(a,r,null,{allOwnKeys:!0}),a.create=function(l){return uS(Za(t,l))},a}const dt=uS(As);dt.Axios=Ya;dt.CanceledError=Os;dt.CancelToken=ED;dt.isCancel=tS;dt.VERSION=sS;dt.toFormData=ju;dt.AxiosError=Ne;dt.Cancel=dt.CanceledError;dt.all=function(r){return Promise.all(r)};dt.spread=wD;dt.isAxiosError=TD;dt.mergeConfig=Za;dt.AxiosHeaders=wn;dt.formToJSON=t=>eS(W.isHTMLForm(t)?new FormData(t):t);dt.getAdapter=oS.getAdapter;dt.HttpStatusCode=Ep;dt.default=dt;const{Axios:c4,AxiosError:f4,CanceledError:d4,isCancel:cS,CancelToken:p4,VERSION:m4,all:h4,Cancel:g4,isAxiosError:fS,spread:y4,toFormData:v4,AxiosHeaders:b4,HttpStatusCode:x4,formToJSON:S4,getAdapter:_4,mergeConfig:AD}=dt;var OD=class{constructor(t){this.config={},this.defaults=t}extend(t){return t&&(this.defaults={...this.defaults,...t}),this}replace(t){this.config=t}get(t){return Nx(this.config,t)?or(this.config,t):or(this.defaults,t)}set(t,r){typeof t=="string"?ar(this.config,t,r):Object.entries(t).forEach(([a,o])=>{ar(this.config,a,o)})}},Ja=new OD({form:{recentlySuccessfulDuration:2e3,forceIndicesArrayFormatInFormData:!0},future:{preserveEqualProps:!1,useDataInertiaHeadAttribute:!1,useDialogForErrorModal:!1,useScriptElementForInitialPage:!1},prefetch:{cacheFor:3e4,hoverDelay:75}});function hs(t,r){let a;return function(...o){clearTimeout(a),a=setTimeout(()=>t.apply(this,o),r)}}function jn(t,r){return document.dispatchEvent(new CustomEvent(`inertia:${t}`,r))}var e0=t=>jn("before",{cancelable:!0,detail:{visit:t}}),RD=t=>jn("error",{detail:{errors:t}}),CD=t=>jn("exception",{cancelable:!0,detail:{exception:t}}),DD=t=>jn("finish",{detail:{visit:t}}),ND=t=>jn("invalid",{cancelable:!0,detail:{response:t}}),LD=t=>jn("beforeUpdate",{detail:{page:t}}),ss=t=>jn("navigate",{detail:{page:t}}),jD=t=>jn("progress",{detail:{progress:t}}),PD=t=>jn("start",{detail:{visit:t}}),MD=t=>jn("success",{detail:{page:t}}),zD=(t,r)=>jn("prefetched",{detail:{fetchedAt:Date.now(),response:t.data,visit:r}}),UD=t=>jn("prefetching",{detail:{visit:t}}),du=t=>jn("flash",{detail:{flash:t}}),fn=class{static set(t,r){typeof window<"u"&&window.sessionStorage.setItem(t,JSON.stringify(r))}static get(t){if(typeof window<"u")return JSON.parse(window.sessionStorage.getItem(t)||"null")}static merge(t,r){const a=this.get(t);a===null?this.set(t,r):this.set(t,{...a,...r})}static remove(t){typeof window<"u"&&window.sessionStorage.removeItem(t)}static removeNested(t,r){const a=this.get(t);a!==null&&(delete a[r],this.set(t,a))}static exists(t){try{return this.get(t)!==null}catch{return!1}}static clear(){typeof window<"u"&&window.sessionStorage.clear()}};fn.locationVisitKey="inertiaLocationVisit";var VD=async t=>{if(typeof window>"u")throw new Error("Unable to encrypt history");const r=dS(),a=await pS(),o=await $D(a);if(!o)throw new Error("Unable to encrypt history");return await HD(r,o,t)},Qi={key:"historyKey",iv:"historyIv"},qD=async t=>{const r=dS(),a=await pS();if(!a)throw new Error("Unable to decrypt history");return await BD(r,a,t)},HD=async(t,r,a)=>{if(typeof window>"u")throw new Error("Unable to encrypt history");if(typeof window.crypto.subtle>"u")return console.warn("Encryption is not supported in this environment. SSL is required."),Promise.resolve(a);const o=new TextEncoder,l=JSON.stringify(a),u=new Uint8Array(l.length*3),f=o.encodeInto(l,u);return window.crypto.subtle.encrypt({name:"AES-GCM",iv:t},r,u.subarray(0,f.written))},BD=async(t,r,a)=>{if(typeof window.crypto.subtle>"u")return console.warn("Decryption is not supported in this environment. SSL is required."),Promise.resolve(a);const o=await window.crypto.subtle.decrypt({name:"AES-GCM",iv:t},r,a);return JSON.parse(new TextDecoder().decode(o))},dS=()=>{const t=fn.get(Qi.iv);if(t)return new Uint8Array(t);const r=window.crypto.getRandomValues(new Uint8Array(12));return fn.set(Qi.iv,Array.from(r)),r},kD=async()=>typeof window.crypto.subtle>"u"?(console.warn("Encryption is not supported in this environment. SSL is required."),Promise.resolve(null)):window.crypto.subtle.generateKey({name:"AES-GCM",length:256},!0,["encrypt","decrypt"]),ID=async t=>{if(typeof window.crypto.subtle>"u")return console.warn("Encryption is not supported in this environment. SSL is required."),Promise.resolve();const r=await window.crypto.subtle.exportKey("raw",t);fn.set(Qi.key,Array.from(new Uint8Array(r)))},$D=async t=>{if(t)return t;const r=await kD();return r?(await ID(r),r):null},pS=async()=>{const t=fn.get(Qi.key);return t?await window.crypto.subtle.importKey("raw",new Uint8Array(t),{name:"AES-GCM",length:256},!0,["encrypt","decrypt"]):null},mS=(t,r,a)=>{if(t===r)return!0;for(const o in t)if(!a.includes(o)&&t[o]!==r[o]&&!FD(t[o],r[o]))return!1;for(const o in r)if(!a.includes(o)&&!(o in t))return!1;return!0},FD=(t,r)=>{switch(typeof t){case"object":return mS(t,r,[]);case"function":return t.toString()===r.toString();default:return t===r}},GD={ms:1,s:1e3,m:1e3*60,h:1e3*60*60,d:1e3*60*60*24},t0=t=>{if(typeof t=="number")return t;for(const[r,a]of Object.entries(GD))if(t.endsWith(r))return parseFloat(t)*a;return parseInt(t)},YD=class{constructor(){this.cached=[],this.inFlightRequests=[],this.removalTimers=[],this.currentUseId=null}add(t,r,{cacheFor:a,cacheTags:o}){if(this.findInFlight(t))return Promise.resolve();const u=this.findCached(t);if(!t.fresh&&u&&u.staleTimestamp>Date.now())return Promise.resolve();const[f,p]=this.extractStaleValues(a),m=new Promise((h,y)=>{r({...t,onCancel:()=>{this.remove(t),t.onCancel(),y()},onError:g=>{this.remove(t),t.onError(g),y()},onPrefetching(g){t.onPrefetching(g)},onPrefetched(g,S){t.onPrefetched(g,S)},onPrefetchResponse(g){h(g)},onPrefetchError(g){yr.removeFromInFlight(t),y(g)}})}).then(h=>{this.remove(t);const y=h.getPageResponse();ge.mergeOncePropsIntoResponse(y),this.cached.push({params:{...t},staleTimestamp:Date.now()+f,expiresAt:Date.now()+p,response:m,singleUse:p===0,timestamp:Date.now(),inFlight:!1,tags:Array.isArray(o)?o:[o]});const g=this.getShortestOncePropTtl(y);return this.scheduleForRemoval(t,g?Math.min(p,g):p),this.removeFromInFlight(t),h.handlePrefetch(),h});return this.inFlightRequests.push({params:{...t},response:m,staleTimestamp:null,inFlight:!0}),m}removeAll(){this.cached=[],this.removalTimers.forEach(t=>{clearTimeout(t.timer)}),this.removalTimers=[]}removeByTags(t){this.cached=this.cached.filter(r=>!r.tags.some(a=>t.includes(a)))}remove(t){this.cached=this.cached.filter(r=>!this.paramsAreEqual(r.params,t)),this.clearTimer(t)}removeFromInFlight(t){this.inFlightRequests=this.inFlightRequests.filter(r=>!this.paramsAreEqual(r.params,t))}extractStaleValues(t){const[r,a]=this.cacheForToStaleAndExpires(t);return[t0(r),t0(a)]}cacheForToStaleAndExpires(t){if(!Array.isArray(t))return[t,t];switch(t.length){case 0:return[0,0];case 1:return[t[0],t[0]];default:return[t[0],t[1]]}}clearTimer(t){const r=this.removalTimers.find(a=>this.paramsAreEqual(a.params,t));r&&(clearTimeout(r.timer),this.removalTimers=this.removalTimers.filter(a=>a!==r))}scheduleForRemoval(t,r){if(!(typeof window>"u")&&(this.clearTimer(t),r>0)){const a=window.setTimeout(()=>this.remove(t),r);this.removalTimers.push({params:t,timer:a})}}get(t){return this.findCached(t)||this.findInFlight(t)}use(t,r){const a=`${r.url.pathname}-${Date.now()}-${Math.random().toString(36).substring(7)}`;return this.currentUseId=a,t.response.then(o=>{if(this.currentUseId===a)return o.mergeParams({...r,onPrefetched:()=>{}}),this.removeSingleUseItems(r),o.handle()})}removeSingleUseItems(t){this.cached=this.cached.filter(r=>this.paramsAreEqual(r.params,t)?!r.singleUse:!0)}findCached(t){return this.cached.find(r=>this.paramsAreEqual(r.params,t))||null}findInFlight(t){return this.inFlightRequests.find(r=>this.paramsAreEqual(r.params,t))||null}withoutPurposePrefetchHeader(t){const r=nr(t);return r.headers.Purpose==="prefetch"&&delete r.headers.Purpose,r}paramsAreEqual(t,r){return mS(this.withoutPurposePrefetchHeader(t),this.withoutPurposePrefetchHeader(r),["showProgress","replace","prefetch","preserveScroll","preserveState","onBefore","onBeforeUpdate","onStart","onProgress","onFinish","onCancel","onSuccess","onError","onFlash","onPrefetched","onCancelToken","onPrefetching","async","viewTransition"])}updateCachedOncePropsFromCurrentPage(){this.cached.forEach(t=>{t.response.then(r=>{const a=r.getPageResponse();ge.mergeOncePropsIntoResponse(a,{force:!0});for(const[f,p]of Object.entries(a.deferredProps??{})){const m=p.filter(h=>a.props[h]===void 0);m.length>0?a.deferredProps[f]=m:delete a.deferredProps[f]}const o=this.getShortestOncePropTtl(a);if(o===null)return;const l=t.expiresAt-Date.now(),u=Math.min(l,o);u>0?this.scheduleForRemoval(t.params,u):this.remove(t.params)})})}getShortestOncePropTtl(t){const r=Object.values(t.onceProps??{}).map(a=>a.expiresAt).filter(a=>!!a);return r.length===0?null:Math.min(...r)-Date.now()}},yr=new YD,Xd=t=>{if(t.offsetParent===null)return!1;const r=t.getBoundingClientRect(),a=r.top=0,o=r.left=0;return a&&o},XD=t=>{const r=u=>{const f=window.getComputedStyle(u);return["scroll","overlay"].includes(f.overflowY)?!0:f.overflowY!=="auto"?!1:["visible","clip"].includes(f.overflowX)?!0:o(f.maxHeight,u.style.height)},a=u=>{const f=window.getComputedStyle(u);return["scroll","overlay"].includes(f.overflowX)?!0:f.overflowX!=="auto"?!1:["visible","clip"].includes(f.overflowY)?!0:o(f.maxWidth,u.style.width)},o=(u,f)=>!!(u&&u!=="none"&&u!=="0px"||f&&f!=="auto"&&f!=="0");let l=t==null?void 0:t.parentElement;for(;l;){const u=r(l)||a(l);if(window.getComputedStyle(l).display!=="contents"&&u)return l;l=l.parentElement}return null},hS=(t,r)=>{if(!r)return t.filter(u=>Xd(u));const a=t.indexOf(r),o=[],l=[];for(let u=a;u>=0;u--){const f=t[u];if(Xd(f))o.push(f);else break}for(let u=a+1;u{window.requestAnimationFrame(()=>{r>1?ls(t,r-1):t()})},KD=(t,r=!1)=>{if(typeof window>"u")return null;if(!r){const o=document.getElementById(t);if(o!=null&&o.dataset.page)return JSON.parse(o.dataset.page)}const a=document.querySelector(`script[data-page="${t}"][type="application/json"]`);return a!=null&&a.textContent?JSON.parse(a.textContent):null},rs=typeof window>"u",QD=!rs&&/Firefox/i.test(window.navigator.userAgent),bn=class{static save(){Je.saveScrollPositions(this.getScrollRegions())}static getScrollRegions(){return Array.from(this.regions()).map(t=>({top:t.scrollTop,left:t.scrollLeft}))}static regions(){return document.querySelectorAll("[scroll-region]")}static scrollToTop(){if(QD&&getComputedStyle(document.documentElement).scrollBehavior==="smooth")return ls(()=>window.scrollTo(0,0),2);window.scrollTo(0,0)}static reset(){(rs?null:window.location.hash)||this.scrollToTop(),this.regions().forEach(r=>{typeof r.scrollTo=="function"?r.scrollTo(0,0):(r.scrollTop=0,r.scrollLeft=0)}),this.save(),this.scrollToAnchor()}static scrollToAnchor(){const t=rs?null:window.location.hash;t&&setTimeout(()=>{const r=document.getElementById(t.slice(1));r?r.scrollIntoView():this.scrollToTop()})}static restore(t){rs||window.requestAnimationFrame(()=>{this.restoreDocument(),this.restoreScrollRegions(t)})}static restoreScrollRegions(t){rs||this.regions().forEach((r,a)=>{const o=t[a];o&&(typeof r.scrollTo=="function"?r.scrollTo(o.left,o.top):(r.scrollTop=o.top,r.scrollLeft=o.left))})}static restoreDocument(){const t=Je.getDocumentScrollPosition();window.scrollTo(t.left,t.top)}static onScroll(t){const r=t.target;typeof r.hasAttribute=="function"&&r.hasAttribute("scroll-region")&&this.save()}static onWindowScroll(){Je.saveDocumentScrollPosition({top:window.scrollY,left:window.scrollX})}},mm=t=>typeof File<"u"&&t instanceof File||t instanceof Blob||typeof FileList<"u"&&t instanceof FileList&&t.length>0;function wp(t){return mm(t)||t instanceof FormData&&Array.from(t.values()).some(r=>wp(r))||typeof t=="object"&&t!==null&&Object.values(t).some(r=>wp(r))}var Tp=t=>t instanceof FormData;function gS(t,r=new FormData,a=null,o="brackets"){t=t||{};for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&vS(r,yS(a,l,"indices"),t[l],o);return r}function yS(t,r,a){return t?a==="brackets"?`${t}[]`:`${t}[${r}]`:r}function vS(t,r,a,o){if(Array.isArray(a))return Array.from(a.keys()).forEach(l=>vS(t,yS(r,l.toString(),o),a[l],o));if(a instanceof Date)return t.append(r,a.toISOString());if(a instanceof File)return t.append(r,a,a.name);if(a instanceof Blob)return t.append(r,a);if(typeof a=="boolean")return t.append(r,a?"1":"0");if(typeof a=="string")return t.append(r,a);if(typeof a=="number")return t.append(r,`${a}`);if(a==null)return t.append(r,"");gS(a,t,r,o)}function Yn(t){return new URL(t.toString(),typeof window>"u"?void 0:window.location.toString())}var ZD=(t,r,a,o,l)=>{let u=typeof t=="string"?Yn(t):t;if((wp(r)||o)&&!Tp(r)&&(Ja.get("form.forceIndicesArrayFormatInFormData")&&(l="indices"),r=gS(r,new FormData,null,l)),Tp(r))return[u,r];const[f,p]=hm(a,u,r,l);return[Yn(f),p]};function hm(t,r,a,o="brackets"){const l=t==="get"&&!Tp(a)&&Object.keys(a).length>0,u=bS(r.toString()),f=u||r.toString().startsWith("/")||r.toString()==="",p=!f&&!r.toString().startsWith("#")&&!r.toString().startsWith("?"),m=/^[.]{1,2}([/]|$)/.test(r.toString()),h=r.toString().includes("?")||l,y=r.toString().includes("#"),g=new URL(r.toString(),typeof window>"u"?"http://localhost":window.location.toString());if(l){const S=/\[\d+\]/.test(decodeURIComponent(g.search)),T={ignoreQueryPrefix:!0,allowSparse:!0};g.search=Ub.stringify({...Ub.parse(g.search,T),...a},{encodeValuesOnly:!0,arrayFormat:S?"indices":o})}return[[u?`${g.protocol}//${g.host}`:"",f?g.pathname:"",p?g.pathname.substring(m?0:1):"",h?g.search:"",y?g.hash:""].join(""),l?{}:a]}function pu(t){return t=new URL(t.href),t.hash="",t}var n0=(t,r)=>{t.hash&&!r.hash&&pu(t).href===r.href&&(r.hash=t.hash)},mu=(t,r)=>pu(t).href===pu(r).href,JD=(t,r)=>t.origin===r.origin&&t.pathname===r.pathname;function Gr(t){return t!==null&&typeof t=="object"&&t!==void 0&&"url"in t&&"method"in t}function bS(t){return/^([a-z][a-z0-9+.-]*:)?\/\/[^/]/i.test(t)}function WD(t,r){const a=typeof t=="string"?Yn(t):t;return r?`${a.protocol}//${a.host}${a.pathname}${a.search}${a.hash}`:`${a.pathname}${a.search}${a.hash}`}var eN=class{constructor(){this.componentId={},this.listeners=[],this.isFirstPageLoad=!0,this.cleared=!1,this.pendingDeferredProps=null,this.historyQuotaExceeded=!1}init({initialPage:t,swapComponent:r,resolveComponent:a,onFlash:o}){return this.page={...t,flash:t.flash??{}},this.swapComponent=r,this.resolveComponent=a,this.onFlashCallback=o,br.on("historyQuotaExceeded",()=>{this.historyQuotaExceeded=!0}),this}set(t,{replace:r=!1,preserveScroll:a=!1,preserveState:o=!1,viewTransition:l=!1}={}){Object.keys(t.deferredProps||{}).length&&(this.pendingDeferredProps={deferredProps:t.deferredProps,component:t.component,url:t.url},t.initialDeferredProps===void 0&&(t.initialDeferredProps=t.deferredProps)),this.componentId={};const u=this.componentId;return t.clearHistory&&Je.clear(),this.resolve(t.component).then(f=>{if(u!==this.componentId)return;t.rememberedState??(t.rememberedState={});const p=typeof window>"u",m=p?new URL(t.url):window.location,h=!p&&a?bn.getScrollRegions():[];r=r||mu(Yn(t.url),m);const y={...t,flash:{}};return new Promise(g=>r?Je.replaceState(y,g):Je.pushState(y,g)).then(()=>{const g=!this.isTheSame(t);if(!g&&Object.keys(t.props.errors||{}).length>0&&(l=!1),this.page=t,this.cleared=!1,this.hasOnceProps()&&yr.updateCachedOncePropsFromCurrentPage(),g&&this.fireEventsFor("newComponent"),this.isFirstPageLoad&&this.fireEventsFor("firstLoad"),this.isFirstPageLoad=!1,this.historyQuotaExceeded){this.historyQuotaExceeded=!1;return}return this.swap({component:f,page:t,preserveState:o,viewTransition:l}).then(()=>{a?window.requestAnimationFrame(()=>bn.restoreScrollRegions(h)):bn.reset(),this.pendingDeferredProps&&this.pendingDeferredProps.component===t.component&&this.pendingDeferredProps.url===t.url&&br.fireInternalEvent("loadDeferredProps",this.pendingDeferredProps.deferredProps),this.pendingDeferredProps=null,r||ss(t)})})})}setQuietly(t,{preserveState:r=!1}={}){return this.resolve(t.component).then(a=>(this.page=t,this.cleared=!1,Je.setCurrent(t),this.swap({component:a,page:t,preserveState:r,viewTransition:!1})))}clear(){this.cleared=!0}isCleared(){return this.cleared}get(){return this.page}getWithoutFlashData(){return{...this.page,flash:{}}}hasOnceProps(){return Object.keys(this.page.onceProps??{}).length>0}merge(t){this.page={...this.page,...t}}setFlash(t){var r;this.page={...this.page,flash:t},(r=this.onFlashCallback)==null||r.call(this,t)}setUrlHash(t){this.page.url.includes(t)||(this.page.url+=t)}remember(t){this.page.rememberedState=t}swap({component:t,page:r,preserveState:a,viewTransition:o}){const l=()=>this.swapComponent({component:t,page:r,preserveState:a});if(!o||!(document!=null&&document.startViewTransition))return l();const u=typeof o=="boolean"?()=>null:o;return new Promise(f=>{const p=document.startViewTransition(()=>l().then(f));u(p)})}resolve(t){return Promise.resolve(this.resolveComponent(t))}isTheSame(t){return this.page.component===t.component}on(t,r){return this.listeners.push({event:t,callback:r}),()=>{this.listeners=this.listeners.filter(a=>a.event!==t&&a.callback!==r)}}fireEventsFor(t){this.listeners.filter(r=>r.event===t).forEach(r=>r.callback())}mergeOncePropsIntoResponse(t,{force:r=!1}={}){Object.entries(t.onceProps??{}).forEach(([a,o])=>{var u;const l=(u=this.page.onceProps)==null?void 0:u[a];l!==void 0&&(r||t.props[o.prop]===void 0)&&(t.props[o.prop]=this.page.props[l.prop],t.onceProps[a].expiresAt=l.expiresAt)})}},ge=new eN,Mu=class{constructor(){this.items=[],this.processingPromise=null}add(t){return this.items.push(t),this.process()}process(){return this.processingPromise??(this.processingPromise=this.processNext().finally(()=>{this.processingPromise=null})),this.processingPromise}processNext(){const t=this.items.shift();return t?Promise.resolve(t()).then(()=>this.processNext()):Promise.resolve()}},Gi=typeof window>"u",Zo=new Mu,r0=!Gi&&/CriOS/.test(window.navigator.userAgent),tN=class{constructor(){this.rememberedState="rememberedState",this.scrollRegions="scrollRegions",this.preserveUrl=!1,this.current={},this.initialState=null}remember(t,r){var a;this.replaceState({...ge.getWithoutFlashData(),rememberedState:{...((a=ge.get())==null?void 0:a.rememberedState)??{},[r]:t}})}restore(t){var r,a,o,l;if(!Gi)return((r=this.current[this.rememberedState])==null?void 0:r[t])!==void 0?(a=this.current[this.rememberedState])==null?void 0:a[t]:(l=(o=this.initialState)==null?void 0:o[this.rememberedState])==null?void 0:l[t]}pushState(t,r=null){if(!Gi){if(this.preserveUrl){r&&r();return}this.current=t,Zo.add(()=>this.getPageData(t).then(a=>{const o=()=>this.doPushState({page:a},t.url).then(()=>r==null?void 0:r());return r0?new Promise(l=>{setTimeout(()=>o().then(l))}):o()}))}}clonePageProps(t){try{return structuredClone(t.props),t}catch{return{...t,props:nr(t.props)}}}getPageData(t){const r=this.clonePageProps(t);return new Promise(a=>t.encryptHistory?VD(r).then(a):a(r))}processQueue(){return Zo.process()}decrypt(t=null){var a;if(Gi)return Promise.resolve(t??ge.get());const r=t??((a=window.history.state)==null?void 0:a.page);return this.decryptPageData(r).then(o=>{if(!o)throw new Error("Unable to decrypt history");return this.initialState===null?this.initialState=o??void 0:this.current=o??{},o})}decryptPageData(t){return t instanceof ArrayBuffer?qD(t):Promise.resolve(t)}saveScrollPositions(t){Zo.add(()=>Promise.resolve().then(()=>{var r;if((r=window.history.state)!=null&&r.page&&!Ea(this.getScrollRegions(),t))return this.doReplaceState({page:window.history.state.page,scrollRegions:t})}))}saveDocumentScrollPosition(t){Zo.add(()=>Promise.resolve().then(()=>{var r;if((r=window.history.state)!=null&&r.page&&!Ea(this.getDocumentScrollPosition(),t))return this.doReplaceState({page:window.history.state.page,documentScrollPosition:t})}))}getScrollRegions(){var t;return((t=window.history.state)==null?void 0:t.scrollRegions)||[]}getDocumentScrollPosition(){var t;return((t=window.history.state)==null?void 0:t.documentScrollPosition)||{top:0,left:0}}replaceState(t,r=null){if(Ea(this.current,t)){r&&r();return}if(ge.merge(t),!Gi){if(this.preserveUrl){r&&r();return}this.current=t,Zo.add(()=>this.getPageData(t).then(a=>{const o=()=>this.doReplaceState({page:a},t.url).then(()=>r==null?void 0:r());return r0?new Promise(l=>{setTimeout(()=>o().then(l))}):o()}))}}isHistoryThrottleError(t){return t instanceof Error&&t.name==="SecurityError"&&(t.message.includes("history.pushState")||t.message.includes("history.replaceState"))}isQuotaExceededError(t){return t instanceof Error&&t.name==="QuotaExceededError"}withThrottleProtection(t){return Promise.resolve().then(()=>{try{return t()}catch(r){if(!this.isHistoryThrottleError(r))throw r;console.error(r.message)}})}doReplaceState(t,r){return this.withThrottleProtection(()=>{var a,o;window.history.replaceState({...t,scrollRegions:t.scrollRegions??((a=window.history.state)==null?void 0:a.scrollRegions),documentScrollPosition:t.documentScrollPosition??((o=window.history.state)==null?void 0:o.documentScrollPosition)},"",r)})}doPushState(t,r){return this.withThrottleProtection(()=>{try{window.history.pushState(t,"",r)}catch(a){if(!this.isQuotaExceededError(a))throw a;br.fireInternalEvent("historyQuotaExceeded",r)}})}getState(t,r){var a;return((a=this.current)==null?void 0:a[t])??r}deleteState(t){this.current[t]!==void 0&&(delete this.current[t],this.replaceState(this.current))}clearInitialState(t){this.initialState&&this.initialState[t]!==void 0&&delete this.initialState[t]}browserHasHistoryEntry(){var t;return!Gi&&!!((t=window.history.state)!=null&&t.page)}clear(){fn.remove(Qi.key),fn.remove(Qi.iv)}setCurrent(t){this.current=t}isValidState(t){return!!t.page}getAllState(){return this.current}};typeof window<"u"&&window.history.scrollRestoration&&(window.history.scrollRestoration="manual");var Je=new tN,nN=class{constructor(){this.internalListeners=[]}init(){typeof window<"u"&&(window.addEventListener("popstate",this.handlePopstateEvent.bind(this)),window.addEventListener("scroll",hs(bn.onWindowScroll.bind(bn),100),!0)),typeof document<"u"&&document.addEventListener("scroll",hs(bn.onScroll.bind(bn),100),!0)}onGlobalEvent(t,r){const a=(o=>{const l=r(o);o.cancelable&&!o.defaultPrevented&&l===!1&&o.preventDefault()});return this.registerListener(`inertia:${t}`,a)}on(t,r){return this.internalListeners.push({event:t,listener:r}),()=>{this.internalListeners=this.internalListeners.filter(a=>a.listener!==r)}}onMissingHistoryItem(){ge.clear(),this.fireInternalEvent("missingHistoryItem")}fireInternalEvent(t,...r){this.internalListeners.filter(a=>a.event===t).forEach(a=>a.listener(...r))}registerListener(t,r){return document.addEventListener(t,r),()=>document.removeEventListener(t,r)}handlePopstateEvent(t){const r=t.state||null;if(r===null){const a=Yn(ge.get().url);a.hash=window.location.hash,Je.replaceState({...ge.getWithoutFlashData(),url:a.href}),bn.reset();return}if(!Je.isValidState(r))return this.onMissingHistoryItem();Je.decrypt(r.page).then(a=>{if(ge.get().version!==a.version){this.onMissingHistoryItem();return}wt.cancelAll({prefetch:!1}),ge.setQuietly(a,{preserveState:!1}).then(()=>{bn.restore(Je.getScrollRegions()),ss(ge.get());const o={},l=ge.get().props;for(const[u,f]of Object.entries(a.initialDeferredProps??a.deferredProps??{})){const p=f.filter(m=>l[m]===void 0);p.length>0&&(o[u]=p)}Object.keys(o).length>0&&this.fireInternalEvent("loadDeferredProps",o)})}).catch(()=>{this.onMissingHistoryItem()})}},br=new nN,rN=class{constructor(){this.type=this.resolveType()}resolveType(){return typeof window>"u"?"navigate":window.performance&&window.performance.getEntriesByType&&window.performance.getEntriesByType("navigation").length>0?window.performance.getEntriesByType("navigation")[0].type:"navigate"}get(){return this.type}isBackForward(){return this.type==="back_forward"}isReload(){return this.type==="reload"}},Kd=new rN,aN=class{static handle(){this.clearRememberedStateOnReload(),[this.handleBackForward,this.handleLocation,this.handleDefault].find(r=>r.bind(this)())}static clearRememberedStateOnReload(){Kd.isReload()&&(Je.deleteState(Je.rememberedState),Je.clearInitialState(Je.rememberedState))}static handleBackForward(){if(!Kd.isBackForward()||!Je.browserHasHistoryEntry())return!1;const t=Je.getScrollRegions();return Je.decrypt().then(r=>{ge.set(r,{preserveScroll:!0,preserveState:!0}).then(()=>{bn.restore(t),ss(ge.get())})}).catch(()=>{br.onMissingHistoryItem()}),!0}static handleLocation(){if(!fn.exists(fn.locationVisitKey))return!1;const t=fn.get(fn.locationVisitKey)||{};return fn.remove(fn.locationVisitKey),typeof window<"u"&&ge.setUrlHash(window.location.hash),Je.decrypt(ge.get()).then(()=>{const r=Je.getState(Je.rememberedState,{}),a=Je.getScrollRegions();ge.remember(r),ge.set(ge.get(),{preserveScroll:t.preserveScroll,preserveState:!0}).then(()=>{t.preserveScroll&&bn.restore(a),ss(ge.get())})}).catch(()=>{br.onMissingHistoryItem()}),!0}static handleDefault(){typeof window<"u"&&ge.setUrlHash(window.location.hash),ge.set(ge.get(),{preserveScroll:!0,preserveState:!0}).then(()=>{Kd.isReload()?bn.restore(Je.getScrollRegions()):bn.scrollToAnchor();const t=ge.get();ss(t);const r=t.flash;Object.keys(r).length>0&&queueMicrotask(()=>du(r))})}},iN=class{constructor(t,r,a){this.id=null,this.throttle=!1,this.keepAlive=!1,this.cbCount=0,this.keepAlive=a.keepAlive??!1,this.cb=r,this.interval=t,(a.autoStart??!0)&&this.start()}stop(){this.id&&clearInterval(this.id)}start(){typeof window>"u"||(this.stop(),this.id=window.setInterval(()=>{(!this.throttle||this.cbCount%10===0)&&this.cb(),this.throttle&&this.cbCount++},this.interval))}isInBackground(t){this.throttle=this.keepAlive?!1:t,this.throttle&&(this.cbCount=0)}},oN=class{constructor(){this.polls=[],this.setupVisibilityListener()}add(t,r,a){const o=new iN(t,r,a);return this.polls.push(o),{stop:()=>o.stop(),start:()=>o.start()}}clear(){this.polls.forEach(t=>t.stop()),this.polls=[]}setupVisibilityListener(){typeof document>"u"||document.addEventListener("visibilitychange",()=>{this.polls.forEach(t=>t.isInBackground(document.hidden))},!1)}},sN=new oN,Ap=class nu{constructor(r){if(this.callbacks=[],!r.prefetch)this.params=r;else{const a={onBefore:this.wrapCallback(r,"onBefore"),onBeforeUpdate:this.wrapCallback(r,"onBeforeUpdate"),onStart:this.wrapCallback(r,"onStart"),onProgress:this.wrapCallback(r,"onProgress"),onFinish:this.wrapCallback(r,"onFinish"),onCancel:this.wrapCallback(r,"onCancel"),onSuccess:this.wrapCallback(r,"onSuccess"),onError:this.wrapCallback(r,"onError"),onFlash:this.wrapCallback(r,"onFlash"),onCancelToken:this.wrapCallback(r,"onCancelToken"),onPrefetched:this.wrapCallback(r,"onPrefetched"),onPrefetching:this.wrapCallback(r,"onPrefetching")};this.params={...r,...a,onPrefetchResponse:r.onPrefetchResponse||(()=>{}),onPrefetchError:r.onPrefetchError||(()=>{})}}}static create(r){return new nu(r)}data(){return this.params.method==="get"?null:this.params.data}queryParams(){return this.params.method==="get"?this.params.data:{}}isPartial(){return this.params.only.length>0||this.params.except.length>0||this.params.reset.length>0}isPrefetch(){return this.params.prefetch===!0}isDeferredPropsRequest(){return this.params.deferredProps===!0}onCancelToken(r){this.params.onCancelToken({cancel:r})}markAsFinished(){this.params.completed=!0,this.params.cancelled=!1,this.params.interrupted=!1}markAsCancelled({cancelled:r=!0,interrupted:a=!1}){this.params.onCancel(),this.params.completed=!1,this.params.cancelled=r,this.params.interrupted=a}wasCancelledAtAll(){return this.params.cancelled||this.params.interrupted}onFinish(){this.params.onFinish(this.params)}onStart(){this.params.onStart(this.params)}onPrefetching(){this.params.onPrefetching(this.params)}onPrefetchResponse(r){this.params.onPrefetchResponse&&this.params.onPrefetchResponse(r)}onPrefetchError(r){this.params.onPrefetchError&&this.params.onPrefetchError(r)}all(){return this.params}headers(){const r={...this.params.headers};this.isPartial()&&(r["X-Inertia-Partial-Component"]=ge.get().component);const a=this.params.only.concat(this.params.reset);return a.length>0&&(r["X-Inertia-Partial-Data"]=a.join(",")),this.params.except.length>0&&(r["X-Inertia-Partial-Except"]=this.params.except.join(",")),this.params.reset.length>0&&(r["X-Inertia-Reset"]=this.params.reset.join(",")),this.params.errorBag&&this.params.errorBag.length>0&&(r["X-Inertia-Error-Bag"]=this.params.errorBag),r}setPreserveOptions(r){this.params.preserveScroll=nu.resolvePreserveOption(this.params.preserveScroll,r),this.params.preserveState=nu.resolvePreserveOption(this.params.preserveState,r)}runCallbacks(){this.callbacks.forEach(({name:r,args:a})=>{this.params[r](...a)})}merge(r){this.params={...this.params,...r}}wrapCallback(r,a){return(...o)=>{this.recordCallback(a,o),r[a](...o)}}recordCallback(r,a){this.callbacks.push({name:r,args:a})}static resolvePreserveOption(r,a){return typeof r=="function"?r(a):r==="errors"?Object.keys(a.props.errors||{}).length>0:r}},xS={modal:null,listener:null,createIframeAndPage(t){typeof t=="object"&&(t=`All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.


${JSON.stringify(t)}`);const r=document.createElement("html");r.innerHTML=t,r.querySelectorAll("a").forEach(o=>o.setAttribute("target","_top"));const a=document.createElement("iframe");return a.style.backgroundColor="white",a.style.borderRadius="5px",a.style.width="100%",a.style.height="100%",{iframe:a,page:r}},show(t){const{iframe:r,page:a}=this.createIframeAndPage(t);if(this.modal=document.createElement("div"),this.modal.style.position="fixed",this.modal.style.width="100vw",this.modal.style.height="100vh",this.modal.style.padding="50px",this.modal.style.boxSizing="border-box",this.modal.style.backgroundColor="rgba(0, 0, 0, .6)",this.modal.style.zIndex=2e5,this.modal.addEventListener("click",()=>this.hide()),this.modal.appendChild(r),document.body.prepend(this.modal),document.body.style.overflow="hidden",!r.contentWindow)throw new Error("iframe not yet ready.");r.contentWindow.document.open(),r.contentWindow.document.write(a.outerHTML),r.contentWindow.document.close(),this.listener=this.hideOnEscape.bind(this),document.addEventListener("keydown",this.listener)},hide(){this.modal.outerHTML="",this.modal=null,document.body.style.overflow="visible",document.removeEventListener("keydown",this.listener)},hideOnEscape(t){t.keyCode===27&&this.hide()}},lN={show(t){const{iframe:r,page:a}=xS.createIframeAndPage(t);r.style.boxSizing="border-box",r.style.display="block";const o=document.createElement("dialog");o.id="inertia-error-dialog",Object.assign(o.style,{width:"calc(100vw - 100px)",height:"calc(100vh - 100px)",padding:"0",margin:"auto",border:"none",backgroundColor:"transparent"});const l=document.createElement("style");if(l.textContent=` +`+u):o.stack=u}catch{}}throw o}}_request(r,a){typeof r=="string"?(a=a||{},a.url=r):a=r||{},a=Za(this.defaults,a);const{transitional:o,paramsSerializer:l,headers:u}=a;o!==void 0&&tu.assertOptions(o,{silentJSONParsing:Fn.transitional(Fn.boolean),forcedJSONParsing:Fn.transitional(Fn.boolean),clarifyTimeoutError:Fn.transitional(Fn.boolean),legacyInterceptorReqResOrdering:Fn.transitional(Fn.boolean)},!1),l!=null&&(W.isFunction(l)?a.paramsSerializer={serialize:l}:tu.assertOptions(l,{encode:Fn.function,serialize:Fn.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),tu.assertOptions(a,{baseUrl:Fn.spelling("baseURL"),withXsrfToken:Fn.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let f=u&&W.merge(u.common,u[a.method]);u&&W.forEach(["delete","get","head","post","put","patch","common"],b=>{delete u[b]}),a.headers=wn.concat(f,u);const p=[];let m=!0;this.interceptors.request.forEach(function(_){if(typeof _.runWhen=="function"&&_.runWhen(a)===!1)return;m=m&&_.synchronous;const E=a.transitional||fm;E&&E.legacyInterceptorReqResOrdering?p.unshift(_.fulfilled,_.rejected):p.push(_.fulfilled,_.rejected)});const g=[];this.interceptors.response.forEach(function(_){g.push(_.fulfilled,_.rejected)});let y,h=0,S;if(!m){const b=[Jb.bind(this),void 0];for(b.unshift(...p),b.push(...g),S=b.length,y=Promise.resolve(a);h{if(!o._listeners)return;let u=o._listeners.length;for(;u-- >0;)o._listeners[u](l);o._listeners=null}),this.promise.then=l=>{let u;const f=new Promise(p=>{o.subscribe(p),u=p}).then(l);return f.cancel=function(){o.unsubscribe(u)},f},r(function(u,f,p){o.reason||(o.reason=new Os(u,f,p),a(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const a=this._listeners.indexOf(r);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const r=new AbortController,a=o=>{r.abort(o)};return this.subscribe(a),r.signal.unsubscribe=()=>this.unsubscribe(a),r.signal}static source(){let r;return{token:new lS(function(l){r=l}),cancel:r}}};function wD(t){return function(a){return t.apply(null,a)}}function TD(t){return W.isObject(t)&&t.isAxiosError===!0}const Ep={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ep).forEach(([t,r])=>{Ep[r]=t});function uS(t){const r=new Ya(t),a=kx(Ya.prototype.request,r);return W.extend(a,Ya.prototype,r,{allOwnKeys:!0}),W.extend(a,r,null,{allOwnKeys:!0}),a.create=function(l){return uS(Za(t,l))},a}const dt=uS(As);dt.Axios=Ya;dt.CanceledError=Os;dt.CancelToken=ED;dt.isCancel=tS;dt.VERSION=sS;dt.toFormData=ju;dt.AxiosError=Ne;dt.Cancel=dt.CanceledError;dt.all=function(r){return Promise.all(r)};dt.spread=wD;dt.isAxiosError=TD;dt.mergeConfig=Za;dt.AxiosHeaders=wn;dt.formToJSON=t=>eS(W.isHTMLForm(t)?new FormData(t):t);dt.getAdapter=oS.getAdapter;dt.HttpStatusCode=Ep;dt.default=dt;const{Axios:c4,AxiosError:f4,CanceledError:d4,isCancel:cS,CancelToken:p4,VERSION:m4,all:h4,Cancel:g4,isAxiosError:fS,spread:y4,toFormData:v4,AxiosHeaders:b4,HttpStatusCode:x4,formToJSON:S4,getAdapter:_4,mergeConfig:AD}=dt;var OD=class{constructor(t){this.config={},this.defaults=t}extend(t){return t&&(this.defaults={...this.defaults,...t}),this}replace(t){this.config=t}get(t){return Nx(this.config,t)?or(this.config,t):or(this.defaults,t)}set(t,r){typeof t=="string"?ar(this.config,t,r):Object.entries(t).forEach(([a,o])=>{ar(this.config,a,o)})}},Ja=new OD({form:{recentlySuccessfulDuration:2e3,forceIndicesArrayFormatInFormData:!0},future:{preserveEqualProps:!1,useDataInertiaHeadAttribute:!1,useDialogForErrorModal:!1,useScriptElementForInitialPage:!1},prefetch:{cacheFor:3e4,hoverDelay:75}});function hs(t,r){let a;return function(...o){clearTimeout(a),a=setTimeout(()=>t.apply(this,o),r)}}function jn(t,r){return document.dispatchEvent(new CustomEvent(`inertia:${t}`,r))}var e0=t=>jn("before",{cancelable:!0,detail:{visit:t}}),RD=t=>jn("error",{detail:{errors:t}}),CD=t=>jn("exception",{cancelable:!0,detail:{exception:t}}),DD=t=>jn("finish",{detail:{visit:t}}),ND=t=>jn("invalid",{cancelable:!0,detail:{response:t}}),LD=t=>jn("beforeUpdate",{detail:{page:t}}),ss=t=>jn("navigate",{detail:{page:t}}),jD=t=>jn("progress",{detail:{progress:t}}),PD=t=>jn("start",{detail:{visit:t}}),MD=t=>jn("success",{detail:{page:t}}),zD=(t,r)=>jn("prefetched",{detail:{fetchedAt:Date.now(),response:t.data,visit:r}}),UD=t=>jn("prefetching",{detail:{visit:t}}),du=t=>jn("flash",{detail:{flash:t}}),fn=class{static set(t,r){typeof window<"u"&&window.sessionStorage.setItem(t,JSON.stringify(r))}static get(t){if(typeof window<"u")return JSON.parse(window.sessionStorage.getItem(t)||"null")}static merge(t,r){const a=this.get(t);a===null?this.set(t,r):this.set(t,{...a,...r})}static remove(t){typeof window<"u"&&window.sessionStorage.removeItem(t)}static removeNested(t,r){const a=this.get(t);a!==null&&(delete a[r],this.set(t,a))}static exists(t){try{return this.get(t)!==null}catch{return!1}}static clear(){typeof window<"u"&&window.sessionStorage.clear()}};fn.locationVisitKey="inertiaLocationVisit";var VD=async t=>{if(typeof window>"u")throw new Error("Unable to encrypt history");const r=dS(),a=await pS(),o=await $D(a);if(!o)throw new Error("Unable to encrypt history");return await HD(r,o,t)},Qi={key:"historyKey",iv:"historyIv"},qD=async t=>{const r=dS(),a=await pS();if(!a)throw new Error("Unable to decrypt history");return await BD(r,a,t)},HD=async(t,r,a)=>{if(typeof window>"u")throw new Error("Unable to encrypt history");if(typeof window.crypto.subtle>"u")return console.warn("Encryption is not supported in this environment. SSL is required."),Promise.resolve(a);const o=new TextEncoder,l=JSON.stringify(a),u=new Uint8Array(l.length*3),f=o.encodeInto(l,u);return window.crypto.subtle.encrypt({name:"AES-GCM",iv:t},r,u.subarray(0,f.written))},BD=async(t,r,a)=>{if(typeof window.crypto.subtle>"u")return console.warn("Decryption is not supported in this environment. SSL is required."),Promise.resolve(a);const o=await window.crypto.subtle.decrypt({name:"AES-GCM",iv:t},r,a);return JSON.parse(new TextDecoder().decode(o))},dS=()=>{const t=fn.get(Qi.iv);if(t)return new Uint8Array(t);const r=window.crypto.getRandomValues(new Uint8Array(12));return fn.set(Qi.iv,Array.from(r)),r},kD=async()=>typeof window.crypto.subtle>"u"?(console.warn("Encryption is not supported in this environment. SSL is required."),Promise.resolve(null)):window.crypto.subtle.generateKey({name:"AES-GCM",length:256},!0,["encrypt","decrypt"]),ID=async t=>{if(typeof window.crypto.subtle>"u")return console.warn("Encryption is not supported in this environment. SSL is required."),Promise.resolve();const r=await window.crypto.subtle.exportKey("raw",t);fn.set(Qi.key,Array.from(new Uint8Array(r)))},$D=async t=>{if(t)return t;const r=await kD();return r?(await ID(r),r):null},pS=async()=>{const t=fn.get(Qi.key);return t?await window.crypto.subtle.importKey("raw",new Uint8Array(t),{name:"AES-GCM",length:256},!0,["encrypt","decrypt"]):null},mS=(t,r,a)=>{if(t===r)return!0;for(const o in t)if(!a.includes(o)&&t[o]!==r[o]&&!FD(t[o],r[o]))return!1;for(const o in r)if(!a.includes(o)&&!(o in t))return!1;return!0},FD=(t,r)=>{switch(typeof t){case"object":return mS(t,r,[]);case"function":return t.toString()===r.toString();default:return t===r}},GD={ms:1,s:1e3,m:1e3*60,h:1e3*60*60,d:1e3*60*60*24},t0=t=>{if(typeof t=="number")return t;for(const[r,a]of Object.entries(GD))if(t.endsWith(r))return parseFloat(t)*a;return parseInt(t)},YD=class{constructor(){this.cached=[],this.inFlightRequests=[],this.removalTimers=[],this.currentUseId=null}add(t,r,{cacheFor:a,cacheTags:o}){if(this.findInFlight(t))return Promise.resolve();const u=this.findCached(t);if(!t.fresh&&u&&u.staleTimestamp>Date.now())return Promise.resolve();const[f,p]=this.extractStaleValues(a),m=new Promise((g,y)=>{r({...t,onCancel:()=>{this.remove(t),t.onCancel(),y()},onError:h=>{this.remove(t),t.onError(h),y()},onPrefetching(h){t.onPrefetching(h)},onPrefetched(h,S){t.onPrefetched(h,S)},onPrefetchResponse(h){g(h)},onPrefetchError(h){yr.removeFromInFlight(t),y(h)}})}).then(g=>{this.remove(t);const y=g.getPageResponse();ge.mergeOncePropsIntoResponse(y),this.cached.push({params:{...t},staleTimestamp:Date.now()+f,expiresAt:Date.now()+p,response:m,singleUse:p===0,timestamp:Date.now(),inFlight:!1,tags:Array.isArray(o)?o:[o]});const h=this.getShortestOncePropTtl(y);return this.scheduleForRemoval(t,h?Math.min(p,h):p),this.removeFromInFlight(t),g.handlePrefetch(),g});return this.inFlightRequests.push({params:{...t},response:m,staleTimestamp:null,inFlight:!0}),m}removeAll(){this.cached=[],this.removalTimers.forEach(t=>{clearTimeout(t.timer)}),this.removalTimers=[]}removeByTags(t){this.cached=this.cached.filter(r=>!r.tags.some(a=>t.includes(a)))}remove(t){this.cached=this.cached.filter(r=>!this.paramsAreEqual(r.params,t)),this.clearTimer(t)}removeFromInFlight(t){this.inFlightRequests=this.inFlightRequests.filter(r=>!this.paramsAreEqual(r.params,t))}extractStaleValues(t){const[r,a]=this.cacheForToStaleAndExpires(t);return[t0(r),t0(a)]}cacheForToStaleAndExpires(t){if(!Array.isArray(t))return[t,t];switch(t.length){case 0:return[0,0];case 1:return[t[0],t[0]];default:return[t[0],t[1]]}}clearTimer(t){const r=this.removalTimers.find(a=>this.paramsAreEqual(a.params,t));r&&(clearTimeout(r.timer),this.removalTimers=this.removalTimers.filter(a=>a!==r))}scheduleForRemoval(t,r){if(!(typeof window>"u")&&(this.clearTimer(t),r>0)){const a=window.setTimeout(()=>this.remove(t),r);this.removalTimers.push({params:t,timer:a})}}get(t){return this.findCached(t)||this.findInFlight(t)}use(t,r){const a=`${r.url.pathname}-${Date.now()}-${Math.random().toString(36).substring(7)}`;return this.currentUseId=a,t.response.then(o=>{if(this.currentUseId===a)return o.mergeParams({...r,onPrefetched:()=>{}}),this.removeSingleUseItems(r),o.handle()})}removeSingleUseItems(t){this.cached=this.cached.filter(r=>this.paramsAreEqual(r.params,t)?!r.singleUse:!0)}findCached(t){return this.cached.find(r=>this.paramsAreEqual(r.params,t))||null}findInFlight(t){return this.inFlightRequests.find(r=>this.paramsAreEqual(r.params,t))||null}withoutPurposePrefetchHeader(t){const r=nr(t);return r.headers.Purpose==="prefetch"&&delete r.headers.Purpose,r}paramsAreEqual(t,r){return mS(this.withoutPurposePrefetchHeader(t),this.withoutPurposePrefetchHeader(r),["showProgress","replace","prefetch","preserveScroll","preserveState","onBefore","onBeforeUpdate","onStart","onProgress","onFinish","onCancel","onSuccess","onError","onFlash","onPrefetched","onCancelToken","onPrefetching","async","viewTransition"])}updateCachedOncePropsFromCurrentPage(){this.cached.forEach(t=>{t.response.then(r=>{const a=r.getPageResponse();ge.mergeOncePropsIntoResponse(a,{force:!0});for(const[f,p]of Object.entries(a.deferredProps??{})){const m=p.filter(g=>a.props[g]===void 0);m.length>0?a.deferredProps[f]=m:delete a.deferredProps[f]}const o=this.getShortestOncePropTtl(a);if(o===null)return;const l=t.expiresAt-Date.now(),u=Math.min(l,o);u>0?this.scheduleForRemoval(t.params,u):this.remove(t.params)})})}getShortestOncePropTtl(t){const r=Object.values(t.onceProps??{}).map(a=>a.expiresAt).filter(a=>!!a);return r.length===0?null:Math.min(...r)-Date.now()}},yr=new YD,Xd=t=>{if(t.offsetParent===null)return!1;const r=t.getBoundingClientRect(),a=r.top=0,o=r.left=0;return a&&o},XD=t=>{const r=u=>{const f=window.getComputedStyle(u);return["scroll","overlay"].includes(f.overflowY)?!0:f.overflowY!=="auto"?!1:["visible","clip"].includes(f.overflowX)?!0:o(f.maxHeight,u.style.height)},a=u=>{const f=window.getComputedStyle(u);return["scroll","overlay"].includes(f.overflowX)?!0:f.overflowX!=="auto"?!1:["visible","clip"].includes(f.overflowY)?!0:o(f.maxWidth,u.style.width)},o=(u,f)=>!!(u&&u!=="none"&&u!=="0px"||f&&f!=="auto"&&f!=="0");let l=t==null?void 0:t.parentElement;for(;l;){const u=r(l)||a(l);if(window.getComputedStyle(l).display!=="contents"&&u)return l;l=l.parentElement}return null},hS=(t,r)=>{if(!r)return t.filter(u=>Xd(u));const a=t.indexOf(r),o=[],l=[];for(let u=a;u>=0;u--){const f=t[u];if(Xd(f))o.push(f);else break}for(let u=a+1;u{window.requestAnimationFrame(()=>{r>1?ls(t,r-1):t()})},KD=(t,r=!1)=>{if(typeof window>"u")return null;if(!r){const o=document.getElementById(t);if(o!=null&&o.dataset.page)return JSON.parse(o.dataset.page)}const a=document.querySelector(`script[data-page="${t}"][type="application/json"]`);return a!=null&&a.textContent?JSON.parse(a.textContent):null},rs=typeof window>"u",QD=!rs&&/Firefox/i.test(window.navigator.userAgent),bn=class{static save(){Je.saveScrollPositions(this.getScrollRegions())}static getScrollRegions(){return Array.from(this.regions()).map(t=>({top:t.scrollTop,left:t.scrollLeft}))}static regions(){return document.querySelectorAll("[scroll-region]")}static scrollToTop(){if(QD&&getComputedStyle(document.documentElement).scrollBehavior==="smooth")return ls(()=>window.scrollTo(0,0),2);window.scrollTo(0,0)}static reset(){(rs?null:window.location.hash)||this.scrollToTop(),this.regions().forEach(r=>{typeof r.scrollTo=="function"?r.scrollTo(0,0):(r.scrollTop=0,r.scrollLeft=0)}),this.save(),this.scrollToAnchor()}static scrollToAnchor(){const t=rs?null:window.location.hash;t&&setTimeout(()=>{const r=document.getElementById(t.slice(1));r?r.scrollIntoView():this.scrollToTop()})}static restore(t){rs||window.requestAnimationFrame(()=>{this.restoreDocument(),this.restoreScrollRegions(t)})}static restoreScrollRegions(t){rs||this.regions().forEach((r,a)=>{const o=t[a];o&&(typeof r.scrollTo=="function"?r.scrollTo(o.left,o.top):(r.scrollTop=o.top,r.scrollLeft=o.left))})}static restoreDocument(){const t=Je.getDocumentScrollPosition();window.scrollTo(t.left,t.top)}static onScroll(t){const r=t.target;typeof r.hasAttribute=="function"&&r.hasAttribute("scroll-region")&&this.save()}static onWindowScroll(){Je.saveDocumentScrollPosition({top:window.scrollY,left:window.scrollX})}},mm=t=>typeof File<"u"&&t instanceof File||t instanceof Blob||typeof FileList<"u"&&t instanceof FileList&&t.length>0;function wp(t){return mm(t)||t instanceof FormData&&Array.from(t.values()).some(r=>wp(r))||typeof t=="object"&&t!==null&&Object.values(t).some(r=>wp(r))}var Tp=t=>t instanceof FormData;function gS(t,r=new FormData,a=null,o="brackets"){t=t||{};for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&vS(r,yS(a,l,"indices"),t[l],o);return r}function yS(t,r,a){return t?a==="brackets"?`${t}[]`:`${t}[${r}]`:r}function vS(t,r,a,o){if(Array.isArray(a))return Array.from(a.keys()).forEach(l=>vS(t,yS(r,l.toString(),o),a[l],o));if(a instanceof Date)return t.append(r,a.toISOString());if(a instanceof File)return t.append(r,a,a.name);if(a instanceof Blob)return t.append(r,a);if(typeof a=="boolean")return t.append(r,a?"1":"0");if(typeof a=="string")return t.append(r,a);if(typeof a=="number")return t.append(r,`${a}`);if(a==null)return t.append(r,"");gS(a,t,r,o)}function Yn(t){return new URL(t.toString(),typeof window>"u"?void 0:window.location.toString())}var ZD=(t,r,a,o,l)=>{let u=typeof t=="string"?Yn(t):t;if((wp(r)||o)&&!Tp(r)&&(Ja.get("form.forceIndicesArrayFormatInFormData")&&(l="indices"),r=gS(r,new FormData,null,l)),Tp(r))return[u,r];const[f,p]=hm(a,u,r,l);return[Yn(f),p]};function hm(t,r,a,o="brackets"){const l=t==="get"&&!Tp(a)&&Object.keys(a).length>0,u=bS(r.toString()),f=u||r.toString().startsWith("/")||r.toString()==="",p=!f&&!r.toString().startsWith("#")&&!r.toString().startsWith("?"),m=/^[.]{1,2}([/]|$)/.test(r.toString()),g=r.toString().includes("?")||l,y=r.toString().includes("#"),h=new URL(r.toString(),typeof window>"u"?"http://localhost":window.location.toString());if(l){const S=/\[\d+\]/.test(decodeURIComponent(h.search)),T={ignoreQueryPrefix:!0,allowSparse:!0};h.search=Ub.stringify({...Ub.parse(h.search,T),...a},{encodeValuesOnly:!0,arrayFormat:S?"indices":o})}return[[u?`${h.protocol}//${h.host}`:"",f?h.pathname:"",p?h.pathname.substring(m?0:1):"",g?h.search:"",y?h.hash:""].join(""),l?{}:a]}function pu(t){return t=new URL(t.href),t.hash="",t}var n0=(t,r)=>{t.hash&&!r.hash&&pu(t).href===r.href&&(r.hash=t.hash)},mu=(t,r)=>pu(t).href===pu(r).href,JD=(t,r)=>t.origin===r.origin&&t.pathname===r.pathname;function Gr(t){return t!==null&&typeof t=="object"&&t!==void 0&&"url"in t&&"method"in t}function bS(t){return/^([a-z][a-z0-9+.-]*:)?\/\/[^/]/i.test(t)}function WD(t,r){const a=typeof t=="string"?Yn(t):t;return r?`${a.protocol}//${a.host}${a.pathname}${a.search}${a.hash}`:`${a.pathname}${a.search}${a.hash}`}var eN=class{constructor(){this.componentId={},this.listeners=[],this.isFirstPageLoad=!0,this.cleared=!1,this.pendingDeferredProps=null,this.historyQuotaExceeded=!1}init({initialPage:t,swapComponent:r,resolveComponent:a,onFlash:o}){return this.page={...t,flash:t.flash??{}},this.swapComponent=r,this.resolveComponent=a,this.onFlashCallback=o,br.on("historyQuotaExceeded",()=>{this.historyQuotaExceeded=!0}),this}set(t,{replace:r=!1,preserveScroll:a=!1,preserveState:o=!1,viewTransition:l=!1}={}){Object.keys(t.deferredProps||{}).length&&(this.pendingDeferredProps={deferredProps:t.deferredProps,component:t.component,url:t.url},t.initialDeferredProps===void 0&&(t.initialDeferredProps=t.deferredProps)),this.componentId={};const u=this.componentId;return t.clearHistory&&Je.clear(),this.resolve(t.component).then(f=>{if(u!==this.componentId)return;t.rememberedState??(t.rememberedState={});const p=typeof window>"u",m=p?new URL(t.url):window.location,g=!p&&a?bn.getScrollRegions():[];r=r||mu(Yn(t.url),m);const y={...t,flash:{}};return new Promise(h=>r?Je.replaceState(y,h):Je.pushState(y,h)).then(()=>{const h=!this.isTheSame(t);if(!h&&Object.keys(t.props.errors||{}).length>0&&(l=!1),this.page=t,this.cleared=!1,this.hasOnceProps()&&yr.updateCachedOncePropsFromCurrentPage(),h&&this.fireEventsFor("newComponent"),this.isFirstPageLoad&&this.fireEventsFor("firstLoad"),this.isFirstPageLoad=!1,this.historyQuotaExceeded){this.historyQuotaExceeded=!1;return}return this.swap({component:f,page:t,preserveState:o,viewTransition:l}).then(()=>{a?window.requestAnimationFrame(()=>bn.restoreScrollRegions(g)):bn.reset(),this.pendingDeferredProps&&this.pendingDeferredProps.component===t.component&&this.pendingDeferredProps.url===t.url&&br.fireInternalEvent("loadDeferredProps",this.pendingDeferredProps.deferredProps),this.pendingDeferredProps=null,r||ss(t)})})})}setQuietly(t,{preserveState:r=!1}={}){return this.resolve(t.component).then(a=>(this.page=t,this.cleared=!1,Je.setCurrent(t),this.swap({component:a,page:t,preserveState:r,viewTransition:!1})))}clear(){this.cleared=!0}isCleared(){return this.cleared}get(){return this.page}getWithoutFlashData(){return{...this.page,flash:{}}}hasOnceProps(){return Object.keys(this.page.onceProps??{}).length>0}merge(t){this.page={...this.page,...t}}setFlash(t){var r;this.page={...this.page,flash:t},(r=this.onFlashCallback)==null||r.call(this,t)}setUrlHash(t){this.page.url.includes(t)||(this.page.url+=t)}remember(t){this.page.rememberedState=t}swap({component:t,page:r,preserveState:a,viewTransition:o}){const l=()=>this.swapComponent({component:t,page:r,preserveState:a});if(!o||!(document!=null&&document.startViewTransition))return l();const u=typeof o=="boolean"?()=>null:o;return new Promise(f=>{const p=document.startViewTransition(()=>l().then(f));u(p)})}resolve(t){return Promise.resolve(this.resolveComponent(t))}isTheSame(t){return this.page.component===t.component}on(t,r){return this.listeners.push({event:t,callback:r}),()=>{this.listeners=this.listeners.filter(a=>a.event!==t&&a.callback!==r)}}fireEventsFor(t){this.listeners.filter(r=>r.event===t).forEach(r=>r.callback())}mergeOncePropsIntoResponse(t,{force:r=!1}={}){Object.entries(t.onceProps??{}).forEach(([a,o])=>{var u;const l=(u=this.page.onceProps)==null?void 0:u[a];l!==void 0&&(r||t.props[o.prop]===void 0)&&(t.props[o.prop]=this.page.props[l.prop],t.onceProps[a].expiresAt=l.expiresAt)})}},ge=new eN,Mu=class{constructor(){this.items=[],this.processingPromise=null}add(t){return this.items.push(t),this.process()}process(){return this.processingPromise??(this.processingPromise=this.processNext().finally(()=>{this.processingPromise=null})),this.processingPromise}processNext(){const t=this.items.shift();return t?Promise.resolve(t()).then(()=>this.processNext()):Promise.resolve()}},Gi=typeof window>"u",Zo=new Mu,r0=!Gi&&/CriOS/.test(window.navigator.userAgent),tN=class{constructor(){this.rememberedState="rememberedState",this.scrollRegions="scrollRegions",this.preserveUrl=!1,this.current={},this.initialState=null}remember(t,r){var a;this.replaceState({...ge.getWithoutFlashData(),rememberedState:{...((a=ge.get())==null?void 0:a.rememberedState)??{},[r]:t}})}restore(t){var r,a,o,l;if(!Gi)return((r=this.current[this.rememberedState])==null?void 0:r[t])!==void 0?(a=this.current[this.rememberedState])==null?void 0:a[t]:(l=(o=this.initialState)==null?void 0:o[this.rememberedState])==null?void 0:l[t]}pushState(t,r=null){if(!Gi){if(this.preserveUrl){r&&r();return}this.current=t,Zo.add(()=>this.getPageData(t).then(a=>{const o=()=>this.doPushState({page:a},t.url).then(()=>r==null?void 0:r());return r0?new Promise(l=>{setTimeout(()=>o().then(l))}):o()}))}}clonePageProps(t){try{return structuredClone(t.props),t}catch{return{...t,props:nr(t.props)}}}getPageData(t){const r=this.clonePageProps(t);return new Promise(a=>t.encryptHistory?VD(r).then(a):a(r))}processQueue(){return Zo.process()}decrypt(t=null){var a;if(Gi)return Promise.resolve(t??ge.get());const r=t??((a=window.history.state)==null?void 0:a.page);return this.decryptPageData(r).then(o=>{if(!o)throw new Error("Unable to decrypt history");return this.initialState===null?this.initialState=o??void 0:this.current=o??{},o})}decryptPageData(t){return t instanceof ArrayBuffer?qD(t):Promise.resolve(t)}saveScrollPositions(t){Zo.add(()=>Promise.resolve().then(()=>{var r;if((r=window.history.state)!=null&&r.page&&!Ea(this.getScrollRegions(),t))return this.doReplaceState({page:window.history.state.page,scrollRegions:t})}))}saveDocumentScrollPosition(t){Zo.add(()=>Promise.resolve().then(()=>{var r;if((r=window.history.state)!=null&&r.page&&!Ea(this.getDocumentScrollPosition(),t))return this.doReplaceState({page:window.history.state.page,documentScrollPosition:t})}))}getScrollRegions(){var t;return((t=window.history.state)==null?void 0:t.scrollRegions)||[]}getDocumentScrollPosition(){var t;return((t=window.history.state)==null?void 0:t.documentScrollPosition)||{top:0,left:0}}replaceState(t,r=null){if(Ea(this.current,t)){r&&r();return}if(ge.merge(t),!Gi){if(this.preserveUrl){r&&r();return}this.current=t,Zo.add(()=>this.getPageData(t).then(a=>{const o=()=>this.doReplaceState({page:a},t.url).then(()=>r==null?void 0:r());return r0?new Promise(l=>{setTimeout(()=>o().then(l))}):o()}))}}isHistoryThrottleError(t){return t instanceof Error&&t.name==="SecurityError"&&(t.message.includes("history.pushState")||t.message.includes("history.replaceState"))}isQuotaExceededError(t){return t instanceof Error&&t.name==="QuotaExceededError"}withThrottleProtection(t){return Promise.resolve().then(()=>{try{return t()}catch(r){if(!this.isHistoryThrottleError(r))throw r;console.error(r.message)}})}doReplaceState(t,r){return this.withThrottleProtection(()=>{var a,o;window.history.replaceState({...t,scrollRegions:t.scrollRegions??((a=window.history.state)==null?void 0:a.scrollRegions),documentScrollPosition:t.documentScrollPosition??((o=window.history.state)==null?void 0:o.documentScrollPosition)},"",r)})}doPushState(t,r){return this.withThrottleProtection(()=>{try{window.history.pushState(t,"",r)}catch(a){if(!this.isQuotaExceededError(a))throw a;br.fireInternalEvent("historyQuotaExceeded",r)}})}getState(t,r){var a;return((a=this.current)==null?void 0:a[t])??r}deleteState(t){this.current[t]!==void 0&&(delete this.current[t],this.replaceState(this.current))}clearInitialState(t){this.initialState&&this.initialState[t]!==void 0&&delete this.initialState[t]}browserHasHistoryEntry(){var t;return!Gi&&!!((t=window.history.state)!=null&&t.page)}clear(){fn.remove(Qi.key),fn.remove(Qi.iv)}setCurrent(t){this.current=t}isValidState(t){return!!t.page}getAllState(){return this.current}};typeof window<"u"&&window.history.scrollRestoration&&(window.history.scrollRestoration="manual");var Je=new tN,nN=class{constructor(){this.internalListeners=[]}init(){typeof window<"u"&&(window.addEventListener("popstate",this.handlePopstateEvent.bind(this)),window.addEventListener("scroll",hs(bn.onWindowScroll.bind(bn),100),!0)),typeof document<"u"&&document.addEventListener("scroll",hs(bn.onScroll.bind(bn),100),!0)}onGlobalEvent(t,r){const a=(o=>{const l=r(o);o.cancelable&&!o.defaultPrevented&&l===!1&&o.preventDefault()});return this.registerListener(`inertia:${t}`,a)}on(t,r){return this.internalListeners.push({event:t,listener:r}),()=>{this.internalListeners=this.internalListeners.filter(a=>a.listener!==r)}}onMissingHistoryItem(){ge.clear(),this.fireInternalEvent("missingHistoryItem")}fireInternalEvent(t,...r){this.internalListeners.filter(a=>a.event===t).forEach(a=>a.listener(...r))}registerListener(t,r){return document.addEventListener(t,r),()=>document.removeEventListener(t,r)}handlePopstateEvent(t){const r=t.state||null;if(r===null){const a=Yn(ge.get().url);a.hash=window.location.hash,Je.replaceState({...ge.getWithoutFlashData(),url:a.href}),bn.reset();return}if(!Je.isValidState(r))return this.onMissingHistoryItem();Je.decrypt(r.page).then(a=>{if(ge.get().version!==a.version){this.onMissingHistoryItem();return}wt.cancelAll({prefetch:!1}),ge.setQuietly(a,{preserveState:!1}).then(()=>{bn.restore(Je.getScrollRegions()),ss(ge.get());const o={},l=ge.get().props;for(const[u,f]of Object.entries(a.initialDeferredProps??a.deferredProps??{})){const p=f.filter(m=>l[m]===void 0);p.length>0&&(o[u]=p)}Object.keys(o).length>0&&this.fireInternalEvent("loadDeferredProps",o)})}).catch(()=>{this.onMissingHistoryItem()})}},br=new nN,rN=class{constructor(){this.type=this.resolveType()}resolveType(){return typeof window>"u"?"navigate":window.performance&&window.performance.getEntriesByType&&window.performance.getEntriesByType("navigation").length>0?window.performance.getEntriesByType("navigation")[0].type:"navigate"}get(){return this.type}isBackForward(){return this.type==="back_forward"}isReload(){return this.type==="reload"}},Kd=new rN,aN=class{static handle(){this.clearRememberedStateOnReload(),[this.handleBackForward,this.handleLocation,this.handleDefault].find(r=>r.bind(this)())}static clearRememberedStateOnReload(){Kd.isReload()&&(Je.deleteState(Je.rememberedState),Je.clearInitialState(Je.rememberedState))}static handleBackForward(){if(!Kd.isBackForward()||!Je.browserHasHistoryEntry())return!1;const t=Je.getScrollRegions();return Je.decrypt().then(r=>{ge.set(r,{preserveScroll:!0,preserveState:!0}).then(()=>{bn.restore(t),ss(ge.get())})}).catch(()=>{br.onMissingHistoryItem()}),!0}static handleLocation(){if(!fn.exists(fn.locationVisitKey))return!1;const t=fn.get(fn.locationVisitKey)||{};return fn.remove(fn.locationVisitKey),typeof window<"u"&&ge.setUrlHash(window.location.hash),Je.decrypt(ge.get()).then(()=>{const r=Je.getState(Je.rememberedState,{}),a=Je.getScrollRegions();ge.remember(r),ge.set(ge.get(),{preserveScroll:t.preserveScroll,preserveState:!0}).then(()=>{t.preserveScroll&&bn.restore(a),ss(ge.get())})}).catch(()=>{br.onMissingHistoryItem()}),!0}static handleDefault(){typeof window<"u"&&ge.setUrlHash(window.location.hash),ge.set(ge.get(),{preserveScroll:!0,preserveState:!0}).then(()=>{Kd.isReload()?bn.restore(Je.getScrollRegions()):bn.scrollToAnchor();const t=ge.get();ss(t);const r=t.flash;Object.keys(r).length>0&&queueMicrotask(()=>du(r))})}},iN=class{constructor(t,r,a){this.id=null,this.throttle=!1,this.keepAlive=!1,this.cbCount=0,this.keepAlive=a.keepAlive??!1,this.cb=r,this.interval=t,(a.autoStart??!0)&&this.start()}stop(){this.id&&clearInterval(this.id)}start(){typeof window>"u"||(this.stop(),this.id=window.setInterval(()=>{(!this.throttle||this.cbCount%10===0)&&this.cb(),this.throttle&&this.cbCount++},this.interval))}isInBackground(t){this.throttle=this.keepAlive?!1:t,this.throttle&&(this.cbCount=0)}},oN=class{constructor(){this.polls=[],this.setupVisibilityListener()}add(t,r,a){const o=new iN(t,r,a);return this.polls.push(o),{stop:()=>o.stop(),start:()=>o.start()}}clear(){this.polls.forEach(t=>t.stop()),this.polls=[]}setupVisibilityListener(){typeof document>"u"||document.addEventListener("visibilitychange",()=>{this.polls.forEach(t=>t.isInBackground(document.hidden))},!1)}},sN=new oN,Ap=class nu{constructor(r){if(this.callbacks=[],!r.prefetch)this.params=r;else{const a={onBefore:this.wrapCallback(r,"onBefore"),onBeforeUpdate:this.wrapCallback(r,"onBeforeUpdate"),onStart:this.wrapCallback(r,"onStart"),onProgress:this.wrapCallback(r,"onProgress"),onFinish:this.wrapCallback(r,"onFinish"),onCancel:this.wrapCallback(r,"onCancel"),onSuccess:this.wrapCallback(r,"onSuccess"),onError:this.wrapCallback(r,"onError"),onFlash:this.wrapCallback(r,"onFlash"),onCancelToken:this.wrapCallback(r,"onCancelToken"),onPrefetched:this.wrapCallback(r,"onPrefetched"),onPrefetching:this.wrapCallback(r,"onPrefetching")};this.params={...r,...a,onPrefetchResponse:r.onPrefetchResponse||(()=>{}),onPrefetchError:r.onPrefetchError||(()=>{})}}}static create(r){return new nu(r)}data(){return this.params.method==="get"?null:this.params.data}queryParams(){return this.params.method==="get"?this.params.data:{}}isPartial(){return this.params.only.length>0||this.params.except.length>0||this.params.reset.length>0}isPrefetch(){return this.params.prefetch===!0}isDeferredPropsRequest(){return this.params.deferredProps===!0}onCancelToken(r){this.params.onCancelToken({cancel:r})}markAsFinished(){this.params.completed=!0,this.params.cancelled=!1,this.params.interrupted=!1}markAsCancelled({cancelled:r=!0,interrupted:a=!1}){this.params.onCancel(),this.params.completed=!1,this.params.cancelled=r,this.params.interrupted=a}wasCancelledAtAll(){return this.params.cancelled||this.params.interrupted}onFinish(){this.params.onFinish(this.params)}onStart(){this.params.onStart(this.params)}onPrefetching(){this.params.onPrefetching(this.params)}onPrefetchResponse(r){this.params.onPrefetchResponse&&this.params.onPrefetchResponse(r)}onPrefetchError(r){this.params.onPrefetchError&&this.params.onPrefetchError(r)}all(){return this.params}headers(){const r={...this.params.headers};this.isPartial()&&(r["X-Inertia-Partial-Component"]=ge.get().component);const a=this.params.only.concat(this.params.reset);return a.length>0&&(r["X-Inertia-Partial-Data"]=a.join(",")),this.params.except.length>0&&(r["X-Inertia-Partial-Except"]=this.params.except.join(",")),this.params.reset.length>0&&(r["X-Inertia-Reset"]=this.params.reset.join(",")),this.params.errorBag&&this.params.errorBag.length>0&&(r["X-Inertia-Error-Bag"]=this.params.errorBag),r}setPreserveOptions(r){this.params.preserveScroll=nu.resolvePreserveOption(this.params.preserveScroll,r),this.params.preserveState=nu.resolvePreserveOption(this.params.preserveState,r)}runCallbacks(){this.callbacks.forEach(({name:r,args:a})=>{this.params[r](...a)})}merge(r){this.params={...this.params,...r}}wrapCallback(r,a){return(...o)=>{this.recordCallback(a,o),r[a](...o)}}recordCallback(r,a){this.callbacks.push({name:r,args:a})}static resolvePreserveOption(r,a){return typeof r=="function"?r(a):r==="errors"?Object.keys(a.props.errors||{}).length>0:r}},xS={modal:null,listener:null,createIframeAndPage(t){typeof t=="object"&&(t=`All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.
${JSON.stringify(t)}`);const r=document.createElement("html");r.innerHTML=t,r.querySelectorAll("a").forEach(o=>o.setAttribute("target","_top"));const a=document.createElement("iframe");return a.style.backgroundColor="white",a.style.borderRadius="5px",a.style.width="100%",a.style.height="100%",{iframe:a,page:r}},show(t){const{iframe:r,page:a}=this.createIframeAndPage(t);if(this.modal=document.createElement("div"),this.modal.style.position="fixed",this.modal.style.width="100vw",this.modal.style.height="100vh",this.modal.style.padding="50px",this.modal.style.boxSizing="border-box",this.modal.style.backgroundColor="rgba(0, 0, 0, .6)",this.modal.style.zIndex=2e5,this.modal.addEventListener("click",()=>this.hide()),this.modal.appendChild(r),document.body.prepend(this.modal),document.body.style.overflow="hidden",!r.contentWindow)throw new Error("iframe not yet ready.");r.contentWindow.document.open(),r.contentWindow.document.write(a.outerHTML),r.contentWindow.document.close(),this.listener=this.hideOnEscape.bind(this),document.addEventListener("keydown",this.listener)},hide(){this.modal.outerHTML="",this.modal=null,document.body.style.overflow="visible",document.removeEventListener("keydown",this.listener)},hideOnEscape(t){t.keyCode===27&&this.hide()}},lN={show(t){const{iframe:r,page:a}=xS.createIframeAndPage(t);r.style.boxSizing="border-box",r.style.display="block";const o=document.createElement("dialog");o.id="inertia-error-dialog",Object.assign(o.style,{width:"calc(100vw - 100px)",height:"calc(100vh - 100px)",padding:"0",margin:"auto",border:"none",backgroundColor:"transparent"});const l=document.createElement("style");if(l.textContent=` dialog#inertia-error-dialog::backdrop { background-color: rgba(0, 0, 0, 0.6); } @@ -15,7 +15,7 @@ import{g as rw,c as hv,r as A,R as fe,a as aw,b as iw,d as ow,j as x,e as sw,f a dialog#inertia-error-dialog:focus { outline: none; } - `,document.head.appendChild(l),o.addEventListener("click",u=>{u.target===o&&o.close()}),o.addEventListener("close",()=>{l.remove(),o.remove()}),o.appendChild(r),document.body.prepend(o),o.showModal(),o.focus(),!r.contentWindow)throw new Error("iframe not yet ready.");r.contentWindow.document.open(),r.contentWindow.document.write(a.outerHTML),r.contentWindow.document.close()}},uN=new Mu,a0=class SS{constructor(r,a,o){this.requestParams=r,this.response=a,this.originatingPage=o,this.wasPrefetched=!1}static create(r,a,o){return new SS(r,a,o)}async handlePrefetch(){mu(this.requestParams.all().url,window.location)&&this.handle()}async handle(){return uN.add(()=>this.process())}async process(){if(this.requestParams.all().prefetch)return this.wasPrefetched=!0,this.requestParams.all().prefetch=!1,this.requestParams.all().onPrefetched(this.response,this.requestParams.all()),zD(this.response,this.requestParams.all()),Promise.resolve();if(this.requestParams.runCallbacks(),!this.isInertiaResponse())return this.handleNonInertiaResponse();await Je.processQueue(),Je.preserveUrl=this.requestParams.all().preserveUrl;const r=ge.get().flash;await this.setPage();const a=ge.get().props.errors||{};if(Object.keys(a).length>0){const l=this.getScopedErrors(a);return RD(l),this.requestParams.all().onError(l)}wt.flushByCacheTags(this.requestParams.all().invalidateCacheTags||[]),this.wasPrefetched||wt.flush(ge.get().url);const{flash:o}=ge.get();Object.keys(o).length>0&&(!this.requestParams.isPartial()||!Ea(o,r))&&(du(o),this.requestParams.all().onFlash(o)),MD(ge.get()),await this.requestParams.all().onSuccess(ge.get()),Je.preserveUrl=!1}mergeParams(r){this.requestParams.merge(r)}getPageResponse(){const r=this.getDataFromResponse(this.response.data);return typeof r=="object"?this.response.data={...r,flash:r.flash??{}}:this.response.data=r}async handleNonInertiaResponse(){if(this.isLocationVisit()){const a=Yn(this.getHeader("x-inertia-location"));return n0(this.requestParams.all().url,a),this.locationVisit(a)}const r={...this.response,data:this.getDataFromResponse(this.response.data)};if(ND(r))return Ja.get("future.useDialogForErrorModal")?lN.show(r.data):xS.show(r.data)}isInertiaResponse(){return this.hasHeader("x-inertia")}hasStatus(r){return this.response.status===r}getHeader(r){return this.response.headers[r]}hasHeader(r){return this.getHeader(r)!==void 0}isLocationVisit(){return this.hasStatus(409)&&this.hasHeader("x-inertia-location")}locationVisit(r){try{if(fn.set(fn.locationVisitKey,{preserveScroll:this.requestParams.all().preserveScroll===!0}),typeof window>"u")return;mu(window.location,r)?window.location.reload():window.location.href=r.href}catch{return!1}}async setPage(){const r=this.getPageResponse();return this.shouldSetPage(r)?(this.mergeProps(r),ge.mergeOncePropsIntoResponse(r),this.preserveEqualProps(r),await this.setRememberedState(r),this.requestParams.setPreserveOptions(r),r.url=Je.preserveUrl?ge.get().url:this.pageUrl(r),this.requestParams.all().onBeforeUpdate(r),LD(r),ge.set(r,{replace:this.requestParams.all().replace,preserveScroll:this.requestParams.all().preserveScroll,preserveState:this.requestParams.all().preserveState,viewTransition:this.requestParams.all().viewTransition})):Promise.resolve()}getDataFromResponse(r){if(typeof r!="string")return r;try{return JSON.parse(r)}catch{return r}}shouldSetPage(r){if(!this.requestParams.all().async||this.originatingPage.component!==r.component)return!0;if(this.originatingPage.component!==ge.get().component)return!1;const a=Yn(this.originatingPage.url),o=Yn(ge.get().url);return a.origin===o.origin&&a.pathname===o.pathname}pageUrl(r){const a=Yn(r.url);return n0(this.requestParams.all().url,a),a.pathname+a.search+a.hash}preserveEqualProps(r){if(r.component!==ge.get().component||Ja.get("future.preserveEqualProps")!==!0)return;const a=ge.get().props;Object.entries(r.props).forEach(([o,l])=>{Ea(l,a[o])&&(r.props[o]=a[o])})}mergeProps(r){if(!this.requestParams.isPartial()||r.component!==ge.get().component)return;const a=r.mergeProps||[],o=r.prependProps||[],l=r.deepMergeProps||[],u=r.matchPropsOn||[],f=(m,h)=>{const y=or(ge.get().props,m),g=or(r.props,m);if(Array.isArray(g)){const S=this.mergeOrMatchItems(y||[],g,m,u,h);ar(r.props,m,S)}else if(typeof g=="object"&&g!==null){const S={...y||{},...g};ar(r.props,m,S)}};if(a.forEach(m=>f(m,!0)),o.forEach(m=>f(m,!1)),l.forEach(m=>{const h=ge.get().props[m],y=r.props[m],g=(S,T,b)=>Array.isArray(T)?this.mergeOrMatchItems(S,T,b,u):typeof T=="object"&&T!==null?Object.keys(T).reduce((_,E)=>(_[E]=g(S?S[E]:void 0,T[E],`${b}.${E}`),_),{...S}):T;r.props[m]=g(h,y,m)}),r.props={...ge.get().props,...r.props},this.requestParams.isDeferredPropsRequest()){const m=ge.get().props.errors;m&&Object.keys(m).length>0&&(r.props.errors=m)}ge.get().scrollProps&&(r.scrollProps={...ge.get().scrollProps||{},...r.scrollProps||{}}),ge.hasOnceProps()&&(r.onceProps={...ge.get().onceProps||{},...r.onceProps||{}}),r.flash={...ge.get().flash,...this.requestParams.isDeferredPropsRequest()?{}:r.flash};const p=ge.get().initialDeferredProps;p&&Object.keys(p).length>0&&(r.initialDeferredProps=p)}mergeOrMatchItems(r,a,o,l,u=!0){const f=Array.isArray(r)?r:[],p=l.find(y=>y.split(".").slice(0,-1).join(".")===o);if(!p)return u?[...f,...a]:[...a,...f];const m=p.split(".").pop()||"",h=new Map;return a.forEach(y=>{this.hasUniqueProperty(y,m)&&h.set(y[m],y)}),u?this.appendWithMatching(f,a,h,m):this.prependWithMatching(f,a,h,m)}appendWithMatching(r,a,o,l){const u=r.map(p=>this.hasUniqueProperty(p,l)&&o.has(p[l])?o.get(p[l]):p),f=a.filter(p=>this.hasUniqueProperty(p,l)?!r.some(m=>this.hasUniqueProperty(m,l)&&m[l]===p[l]):!0);return[...u,...f]}prependWithMatching(r,a,o,l){const u=r.filter(f=>this.hasUniqueProperty(f,l)?!o.has(f[l]):!0);return[...a,...u]}hasUniqueProperty(r,a){return r&&typeof r=="object"&&a in r}async setRememberedState(r){const a=await Je.getState(Je.rememberedState,{});this.requestParams.all().preserveState&&a&&r.component===ge.get().component&&(r.rememberedState=a)}getScopedErrors(r){return this.requestParams.all().errorBag?r[this.requestParams.all().errorBag||""]||{}:r}},i0=class _S{constructor(r,a){this.page=a,this.requestHasFinished=!1,this.requestParams=Ap.create(r),this.cancelToken=new AbortController}static create(r,a){return new _S(r,a)}isPrefetch(){return this.requestParams.isPrefetch()}async send(){this.requestParams.onCancelToken(()=>this.cancel({cancelled:!0})),PD(this.requestParams.all()),this.requestParams.onStart(),this.requestParams.all().prefetch&&(this.requestParams.onPrefetching(),UD(this.requestParams.all()));const r=this.requestParams.all().prefetch;return dt({method:this.requestParams.all().method,url:pu(this.requestParams.all().url).href,data:this.requestParams.data(),params:this.requestParams.queryParams(),signal:this.cancelToken.signal,headers:this.getHeaders(),onUploadProgress:this.onProgress.bind(this),responseType:"text"}).then(a=>(this.response=a0.create(this.requestParams,a,this.page),this.response.handle())).catch(a=>a!=null&&a.response?(this.response=a0.create(this.requestParams,a.response,this.page),this.response.handle()):Promise.reject(a)).catch(a=>{if(!dt.isCancel(a)&&CD(a))return r&&this.requestParams.onPrefetchError(a),Promise.reject(a)}).finally(()=>{this.finish(),r&&this.response&&this.requestParams.onPrefetchResponse(this.response)})}finish(){this.requestParams.wasCancelledAtAll()||(this.requestParams.markAsFinished(),this.fireFinishEvents())}fireFinishEvents(){this.requestHasFinished||(this.requestHasFinished=!0,DD(this.requestParams.all()),this.requestParams.onFinish())}cancel({cancelled:r=!1,interrupted:a=!1}){this.requestHasFinished||(this.cancelToken.abort(),this.requestParams.markAsCancelled({cancelled:r,interrupted:a}),this.fireFinishEvents())}onProgress(r){this.requestParams.data()instanceof FormData&&(r.percentage=r.progress?Math.round(r.progress*100):0,jD(r),this.requestParams.all().onProgress(r))}getHeaders(){const r={...this.requestParams.headers(),Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0},a=ge.get();a.version&&(r["X-Inertia-Version"]=a.version);const o=Object.entries(a.onceProps||{}).filter(([,l])=>a.props[l.prop]===void 0?!1:!l.expiresAt||l.expiresAt>Date.now()).map(([l])=>l);return o.length>0&&(r["X-Inertia-Except-Once-Props"]=o.join(",")),r}},o0=class{constructor({maxConcurrent:t,interruptible:r}){this.requests=[],this.maxConcurrent=t,this.interruptible=r}send(t){this.requests.push(t),t.send().then(()=>{this.requests=this.requests.filter(r=>r!==t)})}interruptInFlight(){this.cancel({interrupted:!0},!1)}cancelInFlight({prefetch:t=!0}={}){this.requests.filter(r=>t||!r.isPrefetch()).forEach(r=>r.cancel({cancelled:!0}))}cancel({cancelled:t=!1,interrupted:r=!1}={},a=!1){if(!a&&!this.shouldCancel())return;const o=this.requests.shift();o==null||o.cancel({cancelled:t,interrupted:r})}shouldCancel(){return this.interruptible&&this.requests.length>=this.maxConcurrent}},cN=class{constructor(){this.syncRequestStream=new o0({maxConcurrent:1,interruptible:!0}),this.asyncRequestStream=new o0({maxConcurrent:1/0,interruptible:!1}),this.clientVisitQueue=new Mu}init({initialPage:t,resolveComponent:r,swapComponent:a,onFlash:o}){ge.init({initialPage:t,resolveComponent:r,swapComponent:a,onFlash:o}),aN.handle(),br.init(),br.on("missingHistoryItem",()=>{typeof window<"u"&&this.visit(window.location.href,{preserveState:!0,preserveScroll:!0,replace:!0})}),br.on("loadDeferredProps",l=>{this.loadDeferredProps(l)}),br.on("historyQuotaExceeded",l=>{window.location.href=l})}get(t,r={},a={}){return this.visit(t,{...a,method:"get",data:r})}post(t,r={},a={}){return this.visit(t,{preserveState:!0,...a,method:"post",data:r})}put(t,r={},a={}){return this.visit(t,{preserveState:!0,...a,method:"put",data:r})}patch(t,r={},a={}){return this.visit(t,{preserveState:!0,...a,method:"patch",data:r})}delete(t,r={}){return this.visit(t,{preserveState:!0,...r,method:"delete"})}reload(t={}){return this.doReload(t)}doReload(t={}){if(!(typeof window>"u"))return this.visit(window.location.href,{...t,preserveScroll:!0,preserveState:!0,async:!0,headers:{...t.headers||{},"Cache-Control":"no-cache"}})}remember(t,r="default"){Je.remember(t,r)}restore(t="default"){return Je.restore(t)}on(t,r){return typeof window>"u"?()=>{}:br.onGlobalEvent(t,r)}cancel(){this.syncRequestStream.cancelInFlight()}cancelAll({async:t=!0,prefetch:r=!0,sync:a=!0}={}){t&&this.asyncRequestStream.cancelInFlight({prefetch:r}),a&&this.syncRequestStream.cancelInFlight()}poll(t,r={},a={}){return sN.add(t,()=>this.reload(r),{autoStart:a.autoStart??!0,keepAlive:a.keepAlive??!1})}visit(t,r={}){const a=this.getPendingVisit(t,{...r,showProgress:r.showProgress??!r.async}),o=this.getVisitEvents(r);if(o.onBefore(a)===!1||!e0(a))return;const l=Yn(ge.get().url);(a.only.length>0||a.except.length>0||a.reset.length>0?JD(a.url,l):mu(a.url,l))||this.asyncRequestStream.cancelInFlight({prefetch:!1}),a.async||this.syncRequestStream.interruptInFlight(),!ge.isCleared()&&!a.preserveUrl&&bn.save();const p={...a,...o},m=yr.get(p);m?(_n.reveal(m.inFlight),yr.use(m,p)):(_n.reveal(!0),(a.async?this.asyncRequestStream:this.syncRequestStream).send(i0.create(p,ge.get())))}getCached(t,r={}){return yr.findCached(this.getPrefetchParams(t,r))}flush(t,r={}){yr.remove(this.getPrefetchParams(t,r))}flushAll(){yr.removeAll()}flushByCacheTags(t){yr.removeByTags(Array.isArray(t)?t:[t])}getPrefetching(t,r={}){return yr.findInFlight(this.getPrefetchParams(t,r))}prefetch(t,r={},a={}){if((r.method??(Gr(t)?t.method:"get"))!=="get")throw new Error("Prefetch requests must use the GET method");const l=this.getPendingVisit(t,{...r,async:!0,showProgress:!1,prefetch:!0,viewTransition:!1}),u=l.url.origin+l.url.pathname+l.url.search,f=window.location.origin+window.location.pathname+window.location.search;if(u===f)return;const p=this.getVisitEvents(r);if(p.onBefore(l)===!1||!e0(l))return;_n.hide(),this.asyncRequestStream.interruptInFlight();const m={...l,...p};new Promise(y=>{const g=()=>{ge.get()?y():setTimeout(g,50)};g()}).then(()=>{yr.add(m,y=>{this.asyncRequestStream.send(i0.create(y,ge.get()))},{cacheFor:Ja.get("prefetch.cacheFor"),cacheTags:[],...a})})}clearHistory(){Je.clear()}decryptHistory(){return Je.decrypt()}resolveComponent(t){return ge.resolve(t)}replace(t){this.clientVisit(t,{replace:!0})}replaceProp(t,r,a){this.replace({preserveScroll:!0,preserveState:!0,props(o){const l=typeof r=="function"?r(or(o,t),o):r;return ar(nr(o),t,l)},...a||{}})}appendToProp(t,r,a){this.replaceProp(t,(o,l)=>{const u=typeof r=="function"?r(o,l):r;return Array.isArray(o)||(o=o!==void 0?[o]:[]),[...o,u]},a)}prependToProp(t,r,a){this.replaceProp(t,(o,l)=>{const u=typeof r=="function"?r(o,l):r;return Array.isArray(o)||(o=o!==void 0?[o]:[]),[u,...o]},a)}push(t){this.clientVisit(t)}flash(t,r){const a=ge.get().flash;let o;if(typeof t=="function")o=t(a);else if(typeof t=="string")o={...a,[t]:r};else if(t&&Object.keys(t).length)o={...a,...t};else return;ge.setFlash(o),Object.keys(o).length&&du(o)}clientVisit(t,{replace:r=!1}={}){this.clientVisitQueue.add(()=>this.performClientVisit(t,{replace:r}))}performClientVisit(t,{replace:r=!1}={}){const a=ge.get(),o=typeof t.props=="function"?Object.fromEntries(Object.values(a.onceProps??{}).map(_=>[_.prop,a.props[_.prop]])):{},l=typeof t.props=="function"?t.props(a.props,o):t.props??a.props,u=typeof t.flash=="function"?t.flash(a.flash):t.flash,{viewTransition:f,onError:p,onFinish:m,onFlash:h,onSuccess:y,...g}=t,S={...a,...g,flash:u??{},props:l},T=Ap.resolvePreserveOption(t.preserveScroll??!1,S),b=Ap.resolvePreserveOption(t.preserveState??!1,S);return ge.set(S,{replace:r,preserveScroll:T,preserveState:b,viewTransition:f}).then(()=>{const _=ge.get().flash;Object.keys(_).length>0&&(du(_),h==null||h(_));const E=ge.get().props.errors||{};if(Object.keys(E).length===0){y==null||y(ge.get());return}const C=t.errorBag?E[t.errorBag||""]||{}:E;p==null||p(C)}).finally(()=>m==null?void 0:m(t))}getPrefetchParams(t,r){return{...this.getPendingVisit(t,{...r,async:!0,showProgress:!1,prefetch:!0,viewTransition:!1}),...this.getVisitEvents(r)}}getPendingVisit(t,r,a={}){if(Gr(t)){const h=t;t=h.url,r.method=r.method??h.method}const o=Ja.get("visitOptions"),l=o?o(t.toString(),nr(r))||{}:{},u={method:"get",data:{},replace:!1,preserveScroll:!1,preserveState:!1,only:[],except:[],headers:{},errorBag:"",forceFormData:!1,queryStringArrayFormat:"brackets",async:!1,showProgress:!0,fresh:!1,reset:[],preserveUrl:!1,prefetch:!1,invalidateCacheTags:[],viewTransition:!1,...r,...l},[f,p]=ZD(t,u.data,u.method,u.forceFormData,u.queryStringArrayFormat),m={cancelled:!1,completed:!1,interrupted:!1,...u,...a,url:f,data:p};return m.prefetch&&(m.headers.Purpose="prefetch"),m}getVisitEvents(t){return{onCancelToken:t.onCancelToken||(()=>{}),onBefore:t.onBefore||(()=>{}),onBeforeUpdate:t.onBeforeUpdate||(()=>{}),onStart:t.onStart||(()=>{}),onProgress:t.onProgress||(()=>{}),onFinish:t.onFinish||(()=>{}),onCancel:t.onCancel||(()=>{}),onSuccess:t.onSuccess||(()=>{}),onError:t.onError||(()=>{}),onFlash:t.onFlash||(()=>{}),onPrefetched:t.onPrefetched||(()=>{}),onPrefetching:t.onPrefetching||(()=>{})}}loadDeferredProps(t){t&&Object.entries(t).forEach(([r,a])=>{this.doReload({only:a,deferredProps:!0})})}},ru=class{static createWayfinderCallback(...t){return()=>t.length===1?Gr(t[0])?t[0]:t[0]():{method:typeof t[0]=="function"?t[0]():t[0],url:typeof t[1]=="function"?t[1]():t[1]}}static parseUseFormArguments(...t){return t.length===0?{rememberKey:null,data:{},precognitionEndpoint:null}:t.length===1?{rememberKey:null,data:t[0],precognitionEndpoint:null}:t.length===2?typeof t[0]=="string"?{rememberKey:t[0],data:t[1],precognitionEndpoint:null}:{rememberKey:null,data:t[1],precognitionEndpoint:this.createWayfinderCallback(t[0])}:{rememberKey:null,data:t[2],precognitionEndpoint:this.createWayfinderCallback(t[0],t[1])}}static parseSubmitArguments(t,r){return t.length===3||t.length===2&&typeof t[0]=="string"?{method:t[0],url:t[1],options:t[2]??{}}:Gr(t[0])?{...t[0],options:t[1]??{}}:{...r(),options:t[0]??{}}}static mergeHeadersForValidation(t,r,a){const o=l=>(l.headers={...a??{},...l.headers??{}},l);return t&&typeof t=="object"&&!("target"in t)?t=o(t):r&&typeof r=="object"?r=o(r):typeof t=="string"?r=o(r??{}):t=o(t??{}),[t,r]}};function fN(t){if(!t.includes("."))return t;const r=a=>a.startsWith("[")&&a.endsWith("]")?a:a.split(".").reduce((o,l,u)=>u===0?l:`${o}[${l}]`);return t.replace(/\\\./g,"__ESCAPED_DOT__").split(/(\[[^\]]*\])/).filter(Boolean).map(r).join("").replace(/__ESCAPED_DOT__/g,".")}function dN(t){const r=[],a=/([^\[\]]+)|\[(\d*)\]/g;let o;for(;(o=a.exec(t))!==null;)o[1]!==void 0?r.push(o[1]):o[2]!==void 0&&r.push(o[2]===""?"":Number(o[2]));return r}function pN(t,r,a){let o=t;for(let l=0;l/^\d+$/.test(o)).map(Number).sort((o,l)=>o-l);return r.length===a.length&&a.length>0&&a[0]===0&&a.every((o,l)=>o===l)}function au(t){if(Array.isArray(t))return t.map(au);if(typeof t!="object"||t===null||mm(t))return t;if(mN(t)){const a=[];for(let o=0;o/^\d+$/.test(m)).map(Number).sort((m,h)=>m-h);ar(r,u,p.length>0?[...p.map(m=>f[m]),o]:[o])}else ar(r,u,[o]);continue}pN(r,l.map(String),o)}return au(r)}var Qd={preferredAttribute(){return Ja.get("future.useDataInertiaHeadAttribute")?"data-inertia":"inertia"},buildDOMElement(t){const r=document.createElement("template");r.innerHTML=t;const a=r.content.firstChild;if(!t.startsWith("