@abtnode/blocklet-services 1.16.29-beta-112566d5 → 1.16.29-beta-cbfd116d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/libs/connect/session.js +79 -5
- package/api/routes/user.js +34 -0
- package/api/services/auth/connect/switch-profile.js +1 -0
- package/api/services/auth/session.js +2 -1
- package/api/state/profile.js +84 -0
- package/dist/assets/{Add-CY4Vajpf.js → Add-DUVzKYFm.js} +1 -1
- package/dist/assets/{AddBox-DeNDC_On.js → AddBox-CT33z_Zw.js} +1 -1
- package/dist/assets/{Alert-X8Tf_Ya2.js → Alert-bNqYhcqn.js} +1 -1
- package/dist/assets/{ArrowDropDown-B1ERiCZ6.js → ArrowDropDown-D8Cz7Mn2.js} +1 -1
- package/dist/assets/{Avatar-DzypDi2F.js → Avatar-BOUPLUwk.js} +1 -1
- package/dist/assets/{ButtonGroup-Yl1SMoBq.js → ButtonGroup-D4mZO4Fl.js} +1 -1
- package/dist/assets/{CheckCircle-lTVG_pn6.js → CheckCircle-Ocnhk6Zm.js} +1 -1
- package/dist/assets/{ChevronRight-yT0593W6.js → ChevronRight-DTp0tWJx.js} +1 -1
- package/dist/assets/{Close-DJPwlagN.js → Close-Dv0WBlnZ.js} +1 -1
- package/dist/assets/CloseOutlined-D-KrmlLZ.js +1 -0
- package/dist/assets/{Delete-LnXfw8II.js → Delete-DVuHYKCF.js} +1 -1
- package/dist/assets/{DeleteOutline-yfbdyPMw.js → DeleteOutline-Djc7fx6t.js} +1 -1
- package/dist/assets/{Done-CegxfXGS.js → Done-hVgZPg46.js} +1 -1
- package/dist/assets/{Download-CbdL3-JP.js → Download-CaohbVSv.js} +1 -1
- package/dist/assets/{Edit-mj0warXM.js → Edit-B6Q6agid.js} +1 -1
- package/dist/assets/{EditIcon-BWMMTTyf.js → EditIcon-CoTYxPVa.js} +1 -1
- package/dist/assets/{Error-CnzO6x6f.js → Error-DPX7wzQI.js} +1 -1
- package/dist/assets/{ExpandMore-BoZqCbU8.js → ExpandMore-Dlsr2tPH.js} +1 -1
- package/dist/assets/{FilterList-C75puMMo.js → FilterList-CxPULTD0.js} +4 -4
- package/dist/assets/{FormControl-02YkGBiU.js → FormControl-DS4KaFHq.js} +1 -1
- package/dist/assets/{FormControlLabel-BZuIe-KU.js → FormControlLabel-C0hZddbx.js} +1 -1
- package/dist/assets/{FormGroup-CUYWiNiM.js → FormGroup-C3fjarrl.js} +1 -1
- package/dist/assets/{Google-D6M8c4go.js → Google-BlxdY2rj.js} +3 -3
- package/dist/assets/{Hidden-BtwYfeyy.js → Hidden-B431iBU_.js} +1 -1
- package/dist/assets/{InfoOutlined-DzWheCe4.js → InfoOutlined-v3x0TY6V.js} +1 -1
- package/dist/assets/{InputAdornment-B3Ml-Pew.js → InputAdornment-DobS7Kox.js} +1 -1
- package/dist/assets/{InputLabel-D_H-0SoX.js → InputLabel-B1CW0pkO.js} +1 -1
- package/dist/assets/{LastPage-D-3vv4wE.js → LastPage-C4NAdMRF.js} +1 -1
- package/dist/assets/{Launch-B0EjmiiU.js → Launch-ByMOsCzr.js} +1 -1
- package/dist/assets/{LaunchOutlined-sgP85ul9.js → LaunchOutlined-D4Flylz3.js} +1 -1
- package/dist/assets/{Link-1nuQkwqf.js → Link-C3mczvyl.js} +1 -1
- package/dist/assets/{ListItemText-Bn_r5n_z.js → ListItemText-CgBEGXWT.js} +1 -1
- package/dist/assets/{LoadingButton-D9fUIMmf.js → LoadingButton-Dlsz1Ms3.js} +1 -1
- package/dist/assets/{LockIcon-CkuBg3Hn.js → LockIcon-sRezRxDg.js} +1 -1
- package/dist/assets/{Loop-CIkJKfB9.js → Loop-B8_3BEHM.js} +1 -1
- package/dist/assets/{MoreVert-DhDSKiqk.js → MoreVert-a-kv_ER7.js} +1 -1
- package/dist/assets/{OpenInNew-DUIHrnXo.js → OpenInNew-CzbN8XuL.js} +1 -1
- package/dist/assets/{Pagination-BlS75-dT.js → Pagination-DFx6ff11.js} +1 -1
- package/dist/assets/{PlayArrow-MoLzECrB.js → PlayArrow-aNY7jbBC.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-D2W4KMR_.js → QuestionMarkCircle-B_rw-f43.js} +1 -1
- package/dist/assets/{RadioGroup-C3L5xJaa.js → RadioGroup-BfWqVp9t.js} +1 -1
- package/dist/assets/{Search-DTUqGlmf.js → Search-M7JhBg8T.js} +1 -1
- package/dist/assets/{Select-DCbRxmUU.js → Select-D9POEHyN.js} +2 -2
- package/dist/assets/{ServerLogo-BhzjzHzD.js → ServerLogo-CmEIITqo.js} +1 -1
- package/dist/assets/{Skeleton-5Ejh8uW9.js → Skeleton-DSmw4PBH.js} +5 -5
- package/dist/assets/{Slider-Cl86dPUi.js → Slider-DwSRUy4d.js} +1 -1
- package/dist/assets/{Stepper-BFMAEaBf.js → Stepper-LW_MLyom.js} +1 -1
- package/dist/assets/{TextField-BHSEV3Ac.js → TextField-tzVHCyGP.js} +1 -1
- package/dist/assets/{Toolbar-D3YIXjSy.js → Toolbar-DJupn0f9.js} +1 -1
- package/dist/assets/{ViewList-cURATctI.js → ViewList-C1U7sxhd.js} +1 -1
- package/dist/assets/{access-control-D8X_8z7A.js → access-control-DOWWWYql.js} +1 -1
- package/dist/assets/{actions-CbsTrVFd.js → actions-BVhLyZpR.js} +1 -1
- package/dist/assets/{add-component-core-CATRvviC.js → add-component-core-DDx1WDjh.js} +20 -20
- package/dist/assets/add-resource-CBt30k1E.js +1 -0
- package/dist/assets/{addon-D0jt9co0.js → addon-B0cj0mfg.js} +1 -1
- package/dist/assets/{analytics-wO1onAqc.js → analytics-Ct3JnUhl.js} +9 -9
- package/dist/assets/api-CkjkeCdA.js +1 -0
- package/dist/assets/audit-logs-CfrqWHnt.js +58 -0
- package/dist/assets/{blocklet-storage-Bbhcz6In.js → blocklet-storage-DHTHeqHC.js} +1 -1
- package/dist/assets/{button-DTeWpy9g.js → button-BTJqPnHF.js} +1 -1
- package/dist/assets/{click-to-copy-CaJFO5Kq.js → click-to-copy-eJ8KblZ5.js} +1 -1
- package/dist/assets/{complete-3uapgH3n.js → complete-C1e5FlMJ.js} +4 -4
- package/dist/assets/{component-BCvhjsjE.js → component-BacRXbI5.js} +1 -1
- package/dist/assets/{config-DJ2yOOMa.js → config-7HPh0OPK.js} +1 -1
- package/dist/assets/{config-DRVy3XZK.js → config-BKEljyRy.js} +2 -2
- package/dist/assets/{config-navigation-DRALpukx.js → config-navigation-9PNvdTi2.js} +2 -2
- package/dist/assets/confirm-BUGn-2W8.js +7 -0
- package/dist/assets/{connect-BSe0CQFh.js → connect-C-nA2wuT.js} +1 -1
- package/dist/assets/{connect-BegmDQRh.js → connect-Cis6vi3E.js} +1 -1
- package/dist/assets/{connect-to-CsUlyY6l.js → connect-to-CmyzTb62.js} +2 -2
- package/dist/assets/{content-layout-7iVGY_ud.js → content-layout-DimpCafz.js} +1 -1
- package/dist/assets/{dashboard-Dy_5eyk1.js → dashboard--jZHvPJB.js} +7 -7
- package/dist/assets/{did-address-01PnQBPQ.js → did-address-2bWEhCPb.js} +1 -1
- package/dist/assets/{domain-BXr1Jxdg.js → domain-C7z_PdCP.js} +1 -1
- package/dist/assets/{domain-list-DRd4BKdS.js → domain-list-SF-C3yfn.js} +2 -2
- package/dist/assets/{exchange-passport-DBlhf64U.js → exchange-passport-bFf5UOyl.js} +1 -1
- package/dist/assets/{fallback-D4IbwHOh.js → fallback-26RC6JHo.js} +1 -1
- package/dist/assets/{format-error-BLTYbOE0.js → format-error-HsQXURX_.js} +1 -1
- package/dist/assets/{fuel-BFrr131p.js → fuel-BTmuGQUQ.js} +1 -1
- package/dist/assets/{fullpage-o_U-2IGS.js → fullpage-Cjsv3Wf9.js} +1 -1
- package/dist/assets/{home--rxR-cTY.js → home-C5blY9H6.js} +1 -1
- package/dist/assets/{iframe-DAPuN1dW.js → iframe-B-dRGYkN.js} +1 -1
- package/dist/assets/{index-BRzBZXpP.js → index-24yb3A6v.js} +4 -4
- package/dist/assets/{index-Bf4S7Fg9.js → index-B-WWT0RB.js} +1 -1
- package/dist/assets/{index-BCLn-9S9.js → index-B0FNhvZR.js} +1 -1
- package/dist/assets/index-B0pqmro3.js +1 -0
- package/dist/assets/{index-DW7MULcX.js → index-BDw9WR4Y.js} +1 -1
- package/dist/assets/{index-BrXFspW6.js → index-BRh4m4iG.js} +1 -1
- package/dist/assets/{index-7PLdtDxY.js → index-BhroV0sn.js} +1 -1
- package/dist/assets/{index-DHRl1pLr.js → index-BnDpXkQD.js} +1 -1
- package/dist/assets/index-Bo6_cvnJ.js +4 -0
- package/dist/assets/{index-CHegi_Ee.js → index-BvABiWhK.js} +1 -1
- package/dist/assets/index-C8pZezDf.js +11 -0
- package/dist/assets/{index-Cd20iNJ4.js → index-C97B1afx.js} +18 -18
- package/dist/assets/{index-l8yj4zzE.js → index-CBouf4h_.js} +1 -1
- package/dist/assets/{index-BB-3C_7E.js → index-CEIhpkQ8.js} +1 -1
- package/dist/assets/{index-CptRhWH5.js → index-CEzHaZQX.js} +61 -30
- package/dist/assets/{index-CbcN4v3T.js → index-CIjX7CkA.js} +1 -1
- package/dist/assets/index-CM5JeGjL.js +54 -0
- package/dist/assets/{index-DZWxxu-P.js → index-Cj8_nBBf.js} +7 -7
- package/dist/assets/{index-CyUODU0b.js → index-CrOnhTCB.js} +1 -1
- package/dist/assets/{index-1I7IXhML.js → index-Cs_U4e7a.js} +1 -1
- package/dist/assets/{index-CzsxjdeJ.js → index-D03FwDOh.js} +1 -1
- package/dist/assets/{index-Diwtza0T.js → index-DATcoDW2.js} +8 -8
- package/dist/assets/{index-Dvf9hLBW.js → index-DTwcC2c1.js} +6 -6
- package/dist/assets/{index-Cf2_yBdK.js → index-DhM5yf8I.js} +1 -1
- package/dist/assets/{index-B0KUbTqG.js → index-DuTXpR60.js} +1 -1
- package/dist/assets/index-DzOteYvH.js +1 -0
- package/dist/assets/{index-B_Mn_6jy.js → index-Hr_Wbh6L.js} +1 -1
- package/dist/assets/{index-CZq1iuqc.js → index-IcQQOgM-.js} +196 -196
- package/dist/assets/{index-Bs7XqsZf.js → index-JXy24O4H.js} +1 -1
- package/dist/assets/index-UfxSCCrt.js +16 -0
- package/dist/assets/{index-ClrMer_1.js → index-XJYhE0w4.js} +1 -1
- package/dist/assets/{index-CmmFWW8f.js → index-lx_CUTL7.js} +1 -1
- package/dist/assets/{index-NKypbT5t.js → index-p63x9Zq5.js} +5 -5
- package/dist/assets/{index.es-DIBj3Jq4.js → index.es-CM1Yp6_h.js} +2 -2
- package/dist/assets/{index.esm-N7xOi6VN.js → index.esm-ChzwWoAD.js} +1 -1
- package/dist/assets/info-outline-rounded-DSoVZkGR.js +1 -0
- package/dist/assets/{invitation-Hu8jHCIo.js → invitation-DrXYTbOJ.js} +1 -1
- package/dist/assets/{invite-tCvD1Emp.js → invite-DuTRLxo9.js} +1 -1
- package/dist/assets/{issue-passport-BQo4G1nz.js → issue-passport-BlE3WUbc.js} +1 -1
- package/dist/assets/{item-DbGtGKeZ.js → item-CADE3Q1i.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-DvQhW7jP.js → jss-plugin-props-sort.esm-BLFIN_3Q.js} +1 -1
- package/dist/assets/{launch-result-message-Bur7t6_c.js → launch-result-message-ePDZL2vD.js} +1 -1
- package/dist/assets/{layout-B0uAwIQe.js → layout-FpvhR73S.js} +1 -1
- package/dist/assets/{list-header-DFekr1NL.js → list-header-DXsvXmu-.js} +1 -1
- package/dist/assets/localization-SCjgzakh.js +1 -0
- package/dist/assets/{log-CjsiT4t8.js → log-BRlbvBGI.js} +1 -1
- package/dist/assets/{login-1J5BbYVV.js → login-CWtJouqB.js} +1 -1
- package/dist/assets/{login-oauth-callback-Blrq-pTH.js → login-oauth-callback-BZ0EO56v.js} +1 -1
- package/dist/assets/logo-uploader-CmT8ckaw.js +122 -0
- package/dist/assets/{lost-passport-B-xv32w5.js → lost-passport-YsMU9JSe.js} +3 -3
- package/dist/assets/{lottie-DHZm2Pp-.js → lottie-BoxmSqiv.js} +1 -1
- package/dist/assets/notifications-W8YDjym1.js +62 -0
- package/dist/assets/{open-window-C6VjWW94.js → open-window-CocULKZD.js} +1 -1
- package/dist/assets/overview-DFBre46m.js +12 -0
- package/dist/assets/{page-header-Doy1SeXs.js → page-header-DHrt0NLM.js} +1 -1
- package/dist/assets/{permission-BWAp0U1U.js → permission-DC5jJJsJ.js} +1 -1
- package/dist/assets/{preferences-C-rgtZ7Y.js → preferences-CeJNU9ax.js} +1 -1
- package/dist/assets/publish-resource-Bv1oefVi.js +1 -0
- package/dist/assets/react-Bq9Lc-LH.js +379 -0
- package/dist/assets/{redux-DJ4kW5cs.js → redux-BxhlcuLd.js} +1 -1
- package/dist/assets/resource-dialog-DFiUROrY.js +57 -0
- package/dist/assets/{selector-CoXEpXpq.js → selector-Bgt80Coe.js} +3 -3
- package/dist/assets/session-CxUjHNzI.js +1 -0
- package/dist/assets/setup-DQJXHOhw.js +14 -0
- package/dist/assets/{shorten-label-FpBR8oOW.js → shorten-label-Cykg6Lz7.js} +1 -1
- package/dist/assets/{slicedToArray-D6tWlK6Z.js → slicedToArray-BZ87qXGO.js} +2 -2
- package/dist/assets/{spaces-Dxw-EmTw.js → spaces-fGVCv7ID.js} +1 -1
- package/dist/assets/{start-D1WI9rVf.js → start-DHS9hXkS.js} +1 -1
- package/dist/assets/{step-actions-D3Bgjg32.js → step-actions-O0ph47PU.js} +1 -1
- package/dist/assets/{studio-SFi0TZqU.js → studio-DVDs4sAk.js} +1 -1
- package/dist/assets/{switch-control-D_6oISXT.js → switch-control-PRHugKgV.js} +1 -1
- package/dist/assets/{toUpper-DA5F5eP3.js → toUpper-BfLoBzn-.js} +1 -1
- package/dist/assets/{transfer-YRbXZ2oQ.js → transfer-NH0JDMM6.js} +1 -1
- package/dist/assets/{uniqBy-moVi8I9O.js → uniqBy-5dSXPjpT.js} +1 -1
- package/dist/assets/{unsubscribe-B-8N_G1A.js → unsubscribe-DHLJvqL7.js} +1 -1
- package/dist/assets/{url-join-BUXfHAG-.js → url-join-slhKS0RS.js} +1 -1
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-CGcx0VhM.js +1 -0
- package/dist/assets/{use-mobile-C_ONEjf6.js → use-mobile-D7_VFCeM.js} +1 -1
- package/dist/assets/{useAsync-BLjRrBya.js → useAsync-xzt4qFZd.js} +1 -1
- package/dist/assets/{useFormControl-BrCPFkZH.js → useFormControl-DzLIycge.js} +1 -1
- package/dist/assets/{useLocalStorage-DrhIkVxO.js → useLocalStorage-C42lOP94.js} +1 -1
- package/dist/assets/{useSetState-CbQrbQss.js → useSetState-Cg2fSW48.js} +1 -1
- package/dist/assets/{useSlot-BSk477LF.js → useSlot-D6gCQKPz.js} +1 -1
- package/dist/assets/user-center-BPr1Hwe7.js +1 -0
- package/dist/assets/{util-Do8cOsC3.js → util-DEsBTM-7.js} +1 -1
- package/dist/assets/{wrap-locale-D6fNmzs0.js → wrap-locale-HDcgra7k.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +27 -26
- package/dist/assets/CloseOutlined-D1ZA66gd.js +0 -1
- package/dist/assets/add-resource-B0nzFGxn.js +0 -1
- package/dist/assets/api-BFSOae_v.js +0 -1
- package/dist/assets/audit-logs-DDUnfrlt.js +0 -58
- package/dist/assets/confirm-BzNK2mDA.js +0 -7
- package/dist/assets/index-CLFX4mT1.js +0 -11
- package/dist/assets/index-Cy3QGaUZ.js +0 -54
- package/dist/assets/index-K7xQGL1m.js +0 -16
- package/dist/assets/index-Wy8tXmp4.js +0 -4
- package/dist/assets/localization-Dyeek5nb.js +0 -1
- package/dist/assets/logo-uploader-KJa3kg20.js +0 -122
- package/dist/assets/notifications-D9-n_25q.js +0 -62
- package/dist/assets/overview-DkYsGUOj.js +0 -12
- package/dist/assets/publish-resource-C5iQ3qEW.js +0 -1
- package/dist/assets/react-CT3HMgMp.js +0 -56
- package/dist/assets/resource-dialog-Dyf09u0L.js +0 -57
- package/dist/assets/session-Ci3gpI0a.js +0 -1
- package/dist/assets/setup-D47fcxKa.js +0 -14
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-DhpD5O4W.js +0 -1
- package/dist/assets/user-center-BYfQOHt3.js +0 -1
- package/dist/assets/user-sessions-CAX_hHjv.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aC as Pe,aB as ze,aD as Z,ae as Ne,aE as _,aG as $,r as p,aK as Ce,aF as re,j as n,aI as R,aJ as Me,
|
|
1
|
+
import{aC as Pe,aB as ze,aD as Z,ae as Ne,aE as _,aG as $,r as p,aK as Ce,aF as re,j as n,aI as R,aJ as Me,de as no,d0 as ro,bh as ee,cN as to,df as ao,V as so,dg as io,dh as lo,U as co,c2 as po,ao as se,P as r,X as ie,Y as le,br as y,ac as uo,ay as de,L as K,T as D,b as ho,az as Re,B as C,bs as xo,F as q,di as Ie,H as Te,$ as mo,N as Be,f as te,dj as fo,h as X,dk as go,dl as bo}from"./index-IcQQOgM-.js";import{T as vo}from"./Toolbar-DJupn0f9.js";import{H as Le}from"./Hidden-B431iBU_.js";const ae={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"};function yo(e){return Pe("MuiAppBar",e)}ze("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const jo=["className","color","enableColorOnDark","position"],wo=e=>{const{color:o,position:t,classes:a}=e,l={root:["root",`color${_(o)}`,`position${_(t)}`]};return Me(l,yo,a)},J=(e,o)=>e?`${e==null?void 0:e.replace(")","")}, ${o})`:o,ko=Z(Ne,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[`position${_(t.position)}`],o[`color${_(t.color)}`]]}})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return $({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},o.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},o.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},o.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},o.position==="static"&&{position:"static"},o.position==="relative"&&{position:"relative"},!e.vars&&$({},o.color==="default"&&{backgroundColor:t,color:e.palette.getContrastText(t)},o.color&&o.color!=="default"&&o.color!=="inherit"&&o.color!=="transparent"&&{backgroundColor:e.palette[o.color].main,color:e.palette[o.color].contrastText},o.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!o.enableColorOnDark&&{backgroundColor:null,color:null},o.color==="transparent"&&$({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&$({},o.color==="default"&&{"--AppBar-background":o.enableColorOnDark?e.vars.palette.AppBar.defaultBg:J(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":o.enableColorOnDark?e.vars.palette.text.primary:J(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},o.color&&!o.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":o.enableColorOnDark?e.vars.palette[o.color].main:J(e.vars.palette.AppBar.darkBg,e.vars.palette[o.color].main),"--AppBar-color":o.enableColorOnDark?e.vars.palette[o.color].contrastText:J(e.vars.palette.AppBar.darkColor,e.vars.palette[o.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:o.color==="inherit"?"inherit":"var(--AppBar-color)"},o.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),$o=p.forwardRef(function(o,t){const a=Ce({props:o,name:"MuiAppBar"}),{className:l,color:c="primary",enableColorOnDark:d=!1,position:i="fixed"}=a,u=re(a,jo),s=$({},a,{color:c,position:i,enableColorOnDark:d}),x=wo(s);return n.jsx(ko,$({square:!0,component:"header",ownerState:s,elevation:4,className:R(x.root,l,i==="fixed"&&"mui-fixed"),ref:t},u))}),Po=$o;function zo(e){return Pe("MuiDrawer",e)}ze("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const No=["BackdropProps"],Co=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Ae=(e,o)=>{const{ownerState:t}=e;return[o.root,(t.variant==="permanent"||t.variant==="persistent")&&o.docked,o.modal]},Mo=e=>{const{classes:o,anchor:t,variant:a}=e,l={root:["root"],docked:[(a==="permanent"||a==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${_(t)}`,a!=="temporary"&&`paperAnchorDocked${_(t)}`]};return Me(l,zo,o)},Ro=Z(no,{name:"MuiDrawer",slot:"Root",overridesResolver:Ae})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),ke=Z("div",{shouldForwardProp:ro,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Ae})({flex:"0 0 auto"}),Io=Z(Ne,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.paper,o[`paperAnchor${_(t.anchor)}`],t.variant!=="temporary"&&o[`paperAnchorDocked${_(t.anchor)}`]]}})(({theme:e,ownerState:o})=>$({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},o.anchor==="left"&&{left:0},o.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},o.anchor==="right"&&{right:0},o.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},o.anchor==="left"&&o.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},o.anchor==="top"&&o.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},o.anchor==="right"&&o.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},o.anchor==="bottom"&&o.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),De={left:"right",right:"left",top:"down",bottom:"up"};function To(e){return["left","right"].indexOf(e)!==-1}function Bo({direction:e},o){return e==="rtl"&&To(o)?De[o]:o}const Lo=p.forwardRef(function(o,t){const a=Ce({props:o,name:"MuiDrawer"}),l=ee(),c=to(),d={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:u,children:s,className:x,elevation:m=16,hideBackdrop:j=!1,ModalProps:{BackdropProps:w}={},onClose:P,open:b=!1,PaperProps:f={},SlideProps:z,TransitionComponent:M=ao,transitionDuration:L=d,variant:I="temporary"}=a,N=re(a.ModalProps,No),g=re(a,Co),k=p.useRef(!1);p.useEffect(()=>{k.current=!0},[]);const A=Bo({direction:c?"rtl":"ltr"},i),F=$({},a,{anchor:i,elevation:m,open:b,variant:I},g),T=Mo(F),h=n.jsx(Io,$({elevation:I==="temporary"?m:0,square:!0},f,{className:R(T.paper,f.className),ownerState:F,children:s}));if(I==="permanent")return n.jsx(ke,$({className:R(T.root,T.docked,x),ownerState:F,ref:t},g,{children:h}));const v=n.jsx(M,$({in:b,direction:De[A],timeout:L,appear:k.current},z,{children:h}));return I==="persistent"?n.jsx(ke,$({className:R(T.root,T.docked,x),ownerState:F,ref:t},g,{children:v})):n.jsx(Ro,$({BackdropProps:$({},u,w,{transitionDuration:L}),className:R(T.root,T.modal,x),open:b,ownerState:F,onClose:P,hideBackdrop:j,ref:t},g,N,{children:v}))}),_e=Lo;function Ao(e,o){var t,a=so(e),l=(t=o==null?void 0:o.wait)!==null&&t!==void 0?t:1e3,c=p.useMemo(function(){return io(function(){for(var d=[],i=0;i<arguments.length;i++)d[i]=arguments[i];return a.current.apply(a,lo([],co(d),!1))},l,o)},[]);return po(function(){c.cancel()}),{run:c,cancel:c.cancel,flush:c.flush}}const Do=se(n.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),_o=se(n.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),Fo=se(n.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz"),Fe=p.createContext(),Wo=e=>{const o=p.useContext(Fe);return p.useLayoutEffect(()=>{e&&o.configure(e)},[]),o};function We({children:e,...o}){const[t,a]=p.useState({inFullPage:!1,showToggleButton:!1,headerVisibleInFullPage:!0,footerVisibleInFullPage:!1,sidebarVisibleInFullPage:!1}),l=()=>{a(d=>({...d,inFullPage:!d.inFullPage}))},c=p.useMemo(()=>({...t,headerVisible:!t.inFullPage||t.headerVisibleInFullPage,footerVisible:!t.inFullPage||t.footerVisibleInFullPage,sidebarVisible:!t.inFullPage||t.sidebarVisibleInFullPage,toggleFullPage:l,configure:d=>a(i=>({...i,...d}))}),[t]);return n.jsx(Fe.Provider,{value:c,...o,children:e})}We.propTypes={children:r.node.isRequired};var ce={},Ho=le;Object.defineProperty(ce,"__esModule",{value:!0});var He=ce.default=void 0,Oo=Ho(ie()),Vo=n;He=ce.default=(0,Oo.default)((0,Vo.jsx)("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull");var pe={},Eo=le;Object.defineProperty(pe,"__esModule",{value:!0});var Oe=pe.default=void 0,qo=Eo(ie()),Uo=n;Oe=pe.default=(0,qo.default)((0,Uo.jsx)("path",{d:"M22 3.41 16.71 8.7 20 12h-8V4l3.29 3.29L20.59 2zM3.41 22l5.29-5.29L12 20v-8H4l3.29 3.29L2 20.59z"}),"CloseFullscreen");function ue({name:e,size:o,alt:t,color:a,style:l,prefix:c,showBadge:d,...i}){const u=`${c}/${e}-${a.replace(/^#/,"")}.png`;return n.jsxs(So,{style:{width:o,height:o},children:[n.jsx(uo,{width:o,height:o,alt:t||e,src:u,style:Object.assign({width:o},l),...i}),d&&n.jsx("i",{className:"badge-point"})]})}ue.propTypes={name:r.string.isRequired,size:r.number,color:r.string,alt:r.string,style:r.object,prefix:r.string,showBadge:r.bool};ue.defaultProps={size:36,color:"#000000",alt:"",style:{},prefix:"/images",showBadge:!1};const So=y("div")`
|
|
2
2
|
position: relative;
|
|
3
3
|
.badge-point {
|
|
4
4
|
position: absolute;
|
|
@@ -230,7 +230,7 @@ import{aC as Pe,aB as ze,aD as Z,ae as Ne,aE as _,aG as $,r as p,aK as Ce,aF as
|
|
|
230
230
|
box-shadow: 2px 16px 10px 0 rgba(0, 0, 0, ${e=>e.theme.mode==="light"?.05:.5});
|
|
231
231
|
border: 0;
|
|
232
232
|
}
|
|
233
|
-
`;function ge({children:e,title:o,brand:t,description:a,brandAddon:l,headerAddon:c,images:d,links:i,prefix:u,fullWidth:s,contentLayout:x,className:m,homeUrl:j,logo:w,...P}){const f=Ie(document.body),z=(f==null?void 0:f.width)||0,[M,L]=p.useState(z>=960?"permanent":"temporary"),[I,N]=p.useState(M==="permanent");p.useEffect(()=>{const A=z>=960?"permanent":"temporary";L(A),N(A!=="temporary")},[z]);const
|
|
233
|
+
`;function ge({children:e,title:o,brand:t,description:a,brandAddon:l,headerAddon:c,images:d,links:i,prefix:u,fullWidth:s,contentLayout:x,className:m,homeUrl:j,logo:w,...P}){const f=Ie(document.body),z=(f==null?void 0:f.width)||0,[M,L]=p.useState(z>=960?"permanent":"temporary"),[I,N]=p.useState(M==="permanent");p.useEffect(()=>{const A=z>=960?"permanent":"temporary";L(A),N(A!=="temporary")},[z]);const g=()=>{N(!I)},k=s||x==="row";return n.jsxs(on,{className:`dashboard ${m}`,...P,children:[n.jsx(Te,{title:`${o}-${t}`}),n.jsx(fe,{className:"dashboard__header",onToggleMenu:g,brand:t,brandAddon:l,description:a,addons:c,homeUrl:j,logo:w}),n.jsxs(C,{display:"flex",className:"dashboard__body",children:[n.jsx(_e,{variant:M,className:"drawer",classes:{paper:"drawerPaper"},open:I,onClose:g,ModalProps:{disablePortal:!0,keepMounted:!0},children:n.jsx(he,{className:"dashboard__sidebar",images:d,links:i,prefix:u,logo:w})}),n.jsxs(C,{className:"dashboard__main",children:[n.jsx(q,{maxWidth:k?!1:"lg",className:"dashboard__content",children:e}),n.jsx(O,{})]})]})]})}ge.propTypes={children:r.any.isRequired,title:r.string,brand:r.string.isRequired,links:r.array.isRequired,images:r.object.isRequired,brandAddon:r.object,description:r.any.isRequired,headerAddon:r.any,prefix:r.string,contentLayout:r.oneOf(["row","column"]),fullWidth:r.bool,className:r.string,homeUrl:r.string,logo:r.any};ge.defaultProps={title:"Home",contentLayout:"column",headerAddon:null,brandAddon:null,prefix:"/images",fullWidth:!1,className:"",homeUrl:"/",logo:null};function Se({height:e,...o}){return n.jsx(nn,{height:e,...o})}Se.propTypes={height:r.oneOfType([r.number,r.string]).isRequired};const nn=y(C)`
|
|
234
234
|
overflow: hidden;
|
|
235
235
|
&:before {
|
|
236
236
|
content: '';
|
|
@@ -243,7 +243,7 @@ import{aC as Pe,aB as ze,aD as Z,ae as Ne,aE as _,aG as $,r as p,aK as Ce,aF as
|
|
|
243
243
|
float: left;
|
|
244
244
|
white-space: nowrap;
|
|
245
245
|
}
|
|
246
|
-
`;function V({logo:e,brand:o,brandAddon:t,description:a,children:l,addons:c,prepend:d,align:i,maxWidth:u,homeLink:s,...x}){const m=p.useRef(),[j,w]=p.useState("0px"),P={minWidth:j};p.useEffect(()=>{m.current&&w(`${m.current.offsetWidth}px`)},[]);const b=()=>{const f=n.jsxs(n.Fragment,{children:[e&&n.jsx("div",{className:"header-logo",ref:m,children:e}),o&&n.jsx(Se,{height:44,sx:{flexShrink:{xs:1}},children:n.jsxs("div",{className:"header-brand",children:[n.jsx("div",{className:"header-brand-title",children:n.jsx("h2",{children:o})}),n.jsx("div",{className:"header-brand-desc",children:a})]})})]});return typeof s=="function"?s(f):n.jsx("a",{href:s,children:f})};return n.jsx(rn,{...x,children:n.jsxs(q,{maxWidth:u,className:"header-container",children:[d,n.jsx("div",{className:"header-brand-wrapper",style:P,children:b()}),n.jsx("div",{className:"header-brand-addon",children:t}),i==="right"&&n.jsx(C,{display:"inline-block",flexGrow:1}),l,i==="left"&&n.jsx(C,{display:"inline-block",flexGrow:1}),n.jsx("div",{className:"header-addons",children:c})]})})}V.propTypes={logo:r.node,brand:r.node,brandAddon:r.node,description:r.node,children:r.node,addons:r.node,prepend:r.node,align:r.oneOf(["left","right"]),maxWidth:r.oneOfType([r.string,r.oneOf(["xs","sm","md","lg","xl",!1])]),homeLink:r.oneOfType([r.string,r.func])};V.defaultProps={logo:null,brand:null,brandAddon:null,description:null,children:null,addons:null,prepend:null,align:"left",maxWidth:void 0,homeLink:"/"};const rn=y(
|
|
246
|
+
`;function V({logo:e,brand:o,brandAddon:t,description:a,children:l,addons:c,prepend:d,align:i,maxWidth:u,homeLink:s,...x}){const m=p.useRef(),[j,w]=p.useState("0px"),P={minWidth:j};p.useEffect(()=>{m.current&&w(`${m.current.offsetWidth}px`)},[]);const b=()=>{const f=n.jsxs(n.Fragment,{children:[e&&n.jsx("div",{className:"header-logo",ref:m,children:e}),o&&n.jsx(Se,{height:44,sx:{flexShrink:{xs:1}},children:n.jsxs("div",{className:"header-brand",children:[n.jsx("div",{className:"header-brand-title",children:n.jsx("h2",{children:o})}),n.jsx("div",{className:"header-brand-desc",children:a})]})})]});return typeof s=="function"?s(f):n.jsx("a",{href:s,children:f})};return n.jsx(rn,{...x,children:n.jsxs(q,{maxWidth:u,className:"header-container",children:[d,n.jsx("div",{className:"header-brand-wrapper",style:P,children:b()}),n.jsx("div",{className:"header-brand-addon",children:t}),i==="right"&&n.jsx(C,{display:"inline-block",flexGrow:1}),l,i==="left"&&n.jsx(C,{display:"inline-block",flexGrow:1}),n.jsx("div",{className:"header-addons",children:c})]})})}V.propTypes={logo:r.node,brand:r.node,brandAddon:r.node,description:r.node,children:r.node,addons:r.node,prepend:r.node,align:r.oneOf(["left","right"]),maxWidth:r.oneOfType([r.string,r.oneOf(["xs","sm","md","lg","xl",!1])]),homeLink:r.oneOfType([r.string,r.func])};V.defaultProps={logo:null,brand:null,brandAddon:null,description:null,children:null,addons:null,prepend:null,align:"left",maxWidth:void 0,homeLink:"/"};const rn=y(C)`
|
|
247
247
|
position: relative;
|
|
248
248
|
z-index: ${e=>e.theme.zIndex.appBar};
|
|
249
249
|
font-size: 14px;
|
|
@@ -339,7 +339,7 @@ import{aC as Pe,aB as ze,aD as Z,ae as Ne,aE as _,aG as $,r as p,aK as Ce,aF as
|
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
`;function be({menu:e,prepend:o,children:t,...a}){const l=ee(),c=mo(l.breakpoints.down("md")),[d,i]=p.useState(!1),u=typeof t=="function"?t({isMobile:c,closeMenu:()=>i(!1)}):t,s=Be({changed:!1,value:"",priority:""});return te(()=>{var x;if((x=document.documentElement)!=null&&x.style){const m=()=>{s.changed&&(s.value?document.documentElement.style.setProperty("overflow",s.value,s.priority):document.documentElement.style.removeProperty("overflow"),s.value="",s.priority="",s.changed=!1)};return d?(s.changed=!0,s.value=document.documentElement.style.getPropertyValue("overflow"),s.priority=document.documentElement.style.getPropertyPriority("overflow"),document.documentElement.style.setProperty("overflow","
|
|
342
|
+
`;function be({menu:e,prepend:o,children:t,...a}){const l=ee(),c=mo(l.breakpoints.down("md")),[d,i]=p.useState(!1),u=typeof t=="function"?t({isMobile:c,closeMenu:()=>i(!1)}):t,s=Be({changed:!1,value:"",priority:""});return te(()=>{var x;if((x=document.documentElement)!=null&&x.style){const m=()=>{s.changed&&(s.value?document.documentElement.style.setProperty("overflow",s.value,s.priority):document.documentElement.style.removeProperty("overflow"),s.value="",s.priority="",s.changed=!1)};return d?(s.changed=!0,s.value=document.documentElement.style.getPropertyValue("overflow"),s.priority=document.documentElement.style.getPropertyPriority("overflow"),document.documentElement.style.setProperty("overflow","revert","important")):m(),m}return()=>{}},[d]),t?n.jsxs(tn,{prepend:o||n.jsx(Re,{sx:{color:l.palette.grey[500]},edge:"start",className:"header-menu","aria-label":"header menu button",onClick:()=>i(!d),children:d?n.jsx(fo,{}):n.jsx(me,{})}),...a,children:[!c&&u,c&&n.jsx(_e,{open:d,onClose:()=>i(!1),ModalProps:{disablePortal:!1,keepMounted:!0,BackdropComponent:null},anchor:"top",sx:{top:64,zIndex:l.zIndex.appBar-1},PaperProps:{style:{top:64,bottom:0,boxShadow:"none"}},children:n.jsx(an,{children:u})})]}):n.jsx(V,{prepend:o,...a})}be.propTypes={...V.PropTypes,children:r.oneOfType([r.node,r.func])};be.defaultProps={...V.defaultProps};const tn=y(V)`
|
|
343
343
|
.header-menu {
|
|
344
344
|
display: none;
|
|
345
345
|
}
|
|
@@ -536,7 +536,7 @@ import{aC as Pe,aB as ze,aD as Z,ae as Ne,aE as _,aG as $,r as p,aK as Ce,aF as
|
|
|
536
536
|
.navmenu-sub--opened > .navmenu-sub-container {
|
|
537
537
|
display: block;
|
|
538
538
|
}
|
|
539
|
-
`,ve=p.createContext();function Ye(e){return e?p.Children.toArray(e).filter(o=>o.type===G||o.type===H):null}function Xe(e){return p.useRef(e||`navmenu-item-id-${Math.random().toString(36).slice(2)}`).current}function S({items:e,mode:o,children:t,activeId:a,textColor:l,activeTextColor:c,bgColor:d,onSelected:i,...u}){var T;if(t=Ye(t),!(e!=null&&e.length)&&!(t!=null&&t.length))throw new Error("One of 'items' or 'children' is required by NavMenu component.");const s=Be({activeId:a,openedIds:[],hiddenItemCount:0}),x=X(h=>{s.activeId=h,i==null||i(h)}),m=X(h=>{s.openedIds.push(h)}),j=X(h=>{s.openedIds=s.openedIds.filter(
|
|
539
|
+
`,ve=p.createContext();function Ye(e){return e?p.Children.toArray(e).filter(o=>o.type===G||o.type===H):null}function Xe(e){return p.useRef(e||`navmenu-item-id-${Math.random().toString(36).slice(2)}`).current}function S({items:e,mode:o,children:t,activeId:a,textColor:l,activeTextColor:c,bgColor:d,onSelected:i,...u}){var T;if(t=Ye(t),!(e!=null&&e.length)&&!(t!=null&&t.length))throw new Error("One of 'items' or 'children' is required by NavMenu component.");const s=Be({activeId:a,openedIds:[],hiddenItemCount:0}),x=X(h=>{s.activeId=h,i==null||i(h)}),m=X(h=>{s.openedIds.push(h)}),j=X(h=>{s.openedIds=s.openedIds.filter(v=>v!==h)}),w=te(()=>({...s,mode:o,activate:x,open:m,close:j}),[s.activeId,s.hiddenItemCount,s.openedIds,o,x,m,j]),P=p.useRef(),b=p.useRef([]),f=p.useRef(),z=s.hiddenItemCount===((T=b.current)==null?void 0:T.length),M=z?{marginLeft:"0px"}:void 0,L=te(()=>z?n.jsx(_o,{}):n.jsx(Fo,{}),[z]),I=h=>p.Children.map(h,(v,W)=>p.cloneElement(v,{ref:B=>{b.current[W]=B}})),N=Ie(P.current),{run:g}=Ao(X(()=>{let h=0,v=0,W=!1;const B=(N==null?void 0:N.width)||0,ne=f.current?f.current.offsetWidth+parseFloat(window.getComputedStyle(f.current).marginLeft):0;b.current.forEach((E,eo)=>{if(E){E.style.display="flex";const oo=eo>0?parseFloat(window.getComputedStyle(E).marginLeft):0,we=E.offsetWidth+oo;B-ne>=h+we&&!W?h+=we:(E.style.display="none",W=!0,v++)}}),v!==s.hiddenItemCount&&(s.hiddenItemCount=v)}),{wait:100});p.useLayoutEffect(()=>{o==="horizontal"&&g()},[N==null?void 0:N.width,o]),p.useEffect(()=>{if(o==="horizontal")return g(),window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g)}},[o,e]),p.useEffect(()=>{a!=null&&(s.activeId=a)},[a]);const k=R("navmenu",`navmenu--${o}`,u.className),A=(h,v,W=!1)=>h!=null&&h.children?n.jsx(H,{id:h.id,icon:h.icon,label:h.label,ref:W?B=>{b.current[v]=B}:void 0,children:h.children.map((B,ne)=>A(B,ne,!1))},h.id):n.jsx(G,{id:h.id,icon:h.icon,label:h.label,active:h.active,ref:W?B=>{b.current[v]=B}:void 0},h.id),je=e?e==null?void 0:e.slice(-s.hiddenItemCount).map((h,v)=>A(h,v)):t==null?void 0:t.slice(-s.hiddenItemCount),F=o==="inline"?ln:sn;return n.jsx(ve.Provider,{value:w,children:n.jsx(F,{...u,className:k,$textColor:l,$activeTextColor:c,$bgColor:d,children:n.jsxs("ul",{className:"navmenu-root",ref:P,children:[e?e.map((h,v)=>A(h,v,!0)):I(t),s.hiddenItemCount>0&&n.jsx(H,{expandIcon:!1,icon:L,label:"",ref:f,style:M,children:je})]})})})}S.propTypes={items:r.array,mode:r.oneOf(["horizontal","vertical","inline"]),children:r.array,activeId:r.string,textColor:r.string,activeTextColor:r.string,bgColor:r.string,onSelected:r.func};S.defaultProps={items:null,mode:"horizontal",children:null,activeId:null,textColor:"#9397a1",activeTextColor:"#25292f",bgColor:"#fff",onSelected:null};const G=p.forwardRef(({id:e,icon:o,label:t,active:a,onClick:l,...c},d)=>{const i=Xe(e),{activeId:u,activate:s}=p.useContext(ve),x=R("navmenu-item",{"navmenu-item--active":u===i},c.className);p.useEffect(()=>{a&&s(i)},[a]);const m=()=>{l==null||l(),s(i)};return n.jsxs("li",{...c,className:x,onClick:m,ref:d,children:[o&&n.jsx("span",{className:"navmenu-item-icon",children:o}),n.jsx("span",{className:"navmenu-item-label",children:t})]})});G.propTypes={id:r.string,icon:r.element,label:r.node,active:r.bool,onClick:r.func};G.defaultProps={id:null,icon:null,label:"",active:!1,onClick:null};const H=p.forwardRef(({id:e,icon:o,label:t,children:a,expandIcon:l,...c},d)=>{const i=Xe(e),{openedIds:u,open:s,close:x,mode:m}=p.useContext(ve),j=u.includes(i),w=R("navmenu-sub",{"navmenu-sub--opened":j},c.className),P=m==="inline",b=P?{onClick:()=>{u.includes(i)?x(i):s(i)}}:{onMouseEnter:()=>s(i),onMouseLeave:()=>x(i)},f=P?{onClick:z=>z.stopPropagation()}:{};return n.jsxs("li",{...c,className:w,...b,ref:d,children:[o&&n.jsx("span",{className:"navmenu-sub-icon",children:o}),n.jsx("span",{className:"navmenu-sub-label",children:t}),l&&n.jsx("span",{className:"navmenu-sub-expand-icon",children:(l==null?void 0:l({isOpen:j}))||l}),n.jsx("div",{className:"navmenu-sub-container",...f,children:n.jsx("ul",{className:"navmenu-sub-list",children:Ye(a)})})]})});H.propTypes={id:r.string,icon:r.element,label:r.node.isRequired,children:r.array.isRequired,expandIcon:r.oneOfType([r.node,r.func])};H.defaultProps={id:null,icon:null,expandIcon:({isOpen:e})=>n.jsx(Do,{style:{transform:`rotate(${e?180:0}deg)`}})};S.Item=G;S.Sub=H;function oe({children:e,routerLinkComponent:o,to:t,external:a,...l}){return a?n.jsx("a",{href:t,...l,children:e}):n.jsx(o,{to:t,...l,children:e})}oe.propTypes={children:r.any.isRequired,routerLinkComponent:r.elementType.isRequired,external:r.bool,to:r.oneOfType([r.string,r.object]).isRequired};oe.defaultProps={external:!1};function Je(e){return n.jsx(oe,{routerLinkComponent:K,...e})}function ye({className:e,...o}){const t=o.external&&typeof e=="function"?e({}):e;return n.jsx(oe,{routerLinkComponent:go,className:t,...o})}ye.propTypes={className:r.oneOfType([r.string,r.func])};ye.defaultProps={className:""};function Ke(e,o){var u;if((u=e.children)!=null&&u.length)return dn(e,o);const{url:t,icon:a,title:l,showBadge:c,external:d,active:i}=e;return n.jsx("li",{className:"layout-sidebar-item",children:n.jsxs(ye,{external:d,to:t,className:({isActive:s})=>R("layout-sidebar-link",{"layout-sidebar-link--active":d?i:s}),children:[a&&n.jsx("span",{className:`layout-sidebar-icon ${c?"layout-sidebar-badge":""}`,children:a}),n.jsx(D,{component:"span",className:"layout-sidebar-link-text",children:l})]})},`${t}-${o}`)}function dn(e,o){return n.jsxs("li",{className:"layout-sidebar-group",children:[n.jsx("span",{className:"layout-sidebar-group-title",children:e.title}),n.jsx("ul",{children:e.children.map(Ke)})]},`group-${e.title}-${o}`)}function Q({links:e,addons:o,dense:t,...a}){return n.jsxs(pn,{...a,className:R({"layout-sidebar-dense":t}),children:[n.jsx("ul",{children:e.map(Ke)}),n.jsx("div",{style:{flex:1}}),o]})}Q.propTypes={links:r.array.isRequired,addons:r.any,dense:r.bool};Q.defaultProps={addons:null,dense:!1};const cn="linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))",pn=y("div")`
|
|
540
540
|
display: flex;
|
|
541
541
|
flex-direction: column;
|
|
542
542
|
ul {
|
|
@@ -661,7 +661,7 @@ import{aC as Pe,aB as ze,aD as Z,ae as Ne,aE as _,aG as $,r as p,aK as Ce,aF as
|
|
|
661
661
|
margin-top: 16px;
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
|
-
`;function un({closeMenu:e,...o}){const t=de();return p.useEffect(()=>{e()},[t]),n.jsx(S,{...o})}function Qe(e,o){return e.map(t=>{var a;return(a=t.children)!=null&&a.length?{...t,label:t.title,children:Qe(t.children,o)}:{...t,label:n.jsx(Je,{to:t.url,external:t.external,children:t.title}),active:t.external?t.active:!!bo({path:t.url,end:!1},o.pathname)}})}function Y({children:e,title:o,headerProps:t,links:a=[],fullWidth:l,dense:c,footerProps:d,...i}){const u=ee(),{inFullPage:s,showToggleButton:x,headerVisible:m,footerVisible:j,sidebarVisible:w,toggleFullPage:P}=Wo(),b=de(),f=p.useMemo(()=>Qe(a,b),[b,a]),z=f.some(
|
|
664
|
+
`;function un({closeMenu:e,...o}){const t=de();return p.useEffect(()=>{e()},[t]),n.jsx(S,{...o})}function Qe(e,o){return e.map(t=>{var a;return(a=t.children)!=null&&a.length?{...t,label:t.title,children:Qe(t.children,o)}:{...t,label:n.jsx(Je,{to:t.url,external:t.external,children:t.title}),active:t.external?t.active:!!bo({path:t.url,end:!1},o.pathname)}})}function Y({children:e,title:o,headerProps:t,links:a=[],fullWidth:l,dense:c,footerProps:d,...i}){const u=ee(),{inFullPage:s,showToggleButton:x,headerVisible:m,footerVisible:j,sidebarVisible:w,toggleFullPage:P}=Wo(),b=de(),f=p.useMemo(()=>Qe(a,b),[b,a]),z=f.some(g=>{var k;return!!((k=g.children)!=null&&k.length)}),M=c==="auto"?f.length>=8||z:c,L=R("dashboard",{"dashboard-dense":M},i.className),N={homeLink:g=>{var k;return n.jsx(Je,{to:((k=window.blocklet)==null?void 0:k.prefix)||"/",children:g})},...t};return n.jsxs(hn,{...i,className:L,children:[n.jsx(Te,{title:o},o),m&&n.jsx(xn,{...N,className:"dashboard-header",children:a!=null&&a.length?({isMobile:g,closeMenu:k})=>g?n.jsx(un,{mode:"inline",items:f,closeMenu:k,bgColor:"transparent",activeTextColor:u.palette.primary.main}):null:null}),n.jsxs(C,{display:"flex",className:"dashboard-body",children:[n.jsx(Le,{mdDown:!0,children:!!(a!=null&&a.length)&&w&&n.jsx(C,{className:"dashboard-sidebar",children:M?n.jsx(Q,{links:a,dense:M}):n.jsx(C,{className:"dashboard-sidebar-container",children:n.jsx(Q,{links:a,dense:M})})})}),n.jsxs(C,{className:"dashboard-main",children:[x&&n.jsx(C,{sx:{position:"absolute",top:4,right:4,display:"flex",justifyContent:"center",alignItems:"center",width:24,height:24,color:"#fff",bgcolor:"rgba(158,158,158, 0.6);",borderRadius:1,cursor:"pointer"},onClick:P,children:s?n.jsx(Oe,{style:{fontSize:18}}):n.jsx(He,{style:{fontSize:18}})}),n.jsx(q,{className:"dashboard-content",...l&&{maxWidth:!1},children:e}),j&&n.jsx(O,{...d})]})]})]})}Y.propTypes={children:r.any.isRequired,title:r.string,links:r.array.isRequired,headerProps:r.object,fullWidth:r.bool,sidebarWidth:r.number,dense:r.oneOf([!0,!1,"auto"])};Y.defaultProps={title:"Home",headerProps:{},fullWidth:!1,sidebarWidth:120,dense:"auto"};const hn=y("div",{shouldForwardProp:e=>e!=="sidebarWidth"})`
|
|
665
665
|
&.dashboard {
|
|
666
666
|
display: flex;
|
|
667
667
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aB as $,aC as x,aD as d,aE as e,
|
|
1
|
+
import{aB as $,aC as x,aD as d,aE as e,ch as k,cb as y,ca as m,r as C,aF as M,aG as l,j as s,aI as z,aJ as j,br as R,P as B}from"./index-IcQQOgM-.js";import{a as T,F as E}from"./FormControlLabel-C0hZddbx.js";import{c as P}from"./useSlot-D6gCQKPz.js";function D(t){return x("MuiSwitch",t)}const o=$("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),I=["className","color","edge","size","sx"],N=P(),O=t=>{const{classes:a,edge:i,size:r,color:p,checked:u,disabled:h}=t,g={root:["root",i&&`edge${e(i)}`,`size${e(r)}`],switchBase:["switchBase",`color${e(p)}`,u&&"checked",h&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},b=j(g,D,a);return l({},a,b)},_=d("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:i}=t;return[a.root,i.edge&&a[`edge${e(i.edge)}`],a[`size${e(i.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${o.thumb}`]:{width:16,height:16},[`& .${o.switchBase}`]:{padding:4,[`&.${o.checked}`]:{transform:"translateX(16px)"}}}}]}),U=d(T,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,a)=>{const{ownerState:i}=t;return[a.switchBase,{[`& .${o.input}`]:a.input},i.color!=="default"&&a[`color${e(i.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${o.checked}`]:{transform:"translateX(20px)"},[`&.${o.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${o.checked} + .${o.track}`]:{opacity:.5},[`&.${o.disabled} + .${o.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${o.input}`]:{left:"-100%",width:"300%"}}),({theme:t})=>({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:k(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(([,a])=>a.main&&a.light).map(([a])=>({props:{color:a},style:{[`&.${o.checked}`]:{color:(t.vars||t).palette[a].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:k(t.palette[a].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${o.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${a}DisabledColor`]:`${t.palette.mode==="light"?y(t.palette[a].main,.62):m(t.palette[a].main,.55)}`}},[`&.${o.checked} + .${o.track}`]:{backgroundColor:(t.vars||t).palette[a].main}}}))]})),A=d("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,a)=>a.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),F=d("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,a)=>a.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),L=C.forwardRef(function(a,i){const r=N({props:a,name:"MuiSwitch"}),{className:p,color:u="primary",edge:h=!1,size:g="medium",sx:b}=r,f=M(r,I),c=l({},r,{color:u,edge:h,size:g}),n=O(c),w=s.jsx(F,{className:n.thumb,ownerState:c});return s.jsxs(_,{className:z(n.root,p),sx:b,ownerState:c,children:[s.jsx(U,l({type:"checkbox",icon:w,checkedIcon:w,ref:i,ownerState:c},f,{classes:l({},n,{root:n.switchBase})})),s.jsx(A,{className:n.track,ownerState:c})]})}),V=L,v=R(t=>s.jsx(V,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:t.palette.mode==="dark"?"#2ECA45":"#65C466",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:t.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:t.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}));function S({labelProps:t,...a}){return t?s.jsx(E,{control:s.jsx(v,{...a}),...t}):s.jsx(v,{...a})}S.propTypes={labelProps:B.object};S.defaultProps={labelProps:null};export{S,V as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{gx as V,r as x,gy as W,V as P,eJ as $,gz as S,gA as j,R as B,bw as Q,dF as U}from"./index-IcQQOgM-.js";var X=function(i,e){return i===void 0&&(i=[]),e===void 0&&(e=[]),V(i,e)},Y=function(i,e,r){var n=x.useRef(),t=x.useRef(0);X(e,n.current)||(n.current=e,t.current+=1),W(i,[t.current],r)},Z=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),D={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:Z?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},R={ctrl:function(i){return i.ctrlKey},shift:function(i){return i.shiftKey},alt:function(i){return i.altKey},meta:function(i){return i.type==="keyup"?D.meta.includes(i.keyCode):i.metaKey}};function G(i){return j(i)||B(i)}function p(i){var e=Object.keys(R).reduce(function(r,n){return R[n](i)?r+1:r},0);return[16,17,18,91,92].includes(i.keyCode)?e:e+1}function z(i,e,r){var n,t;if(!i.key)return!1;if(B(e))return i.keyCode===e?e:!1;var l=e.split("."),a=0;try{for(var f=S(l),o=f.next();!o.done;o=f.next()){var c=o.value,s=R[c],u=D[c.toLowerCase()];(s&&s(i)||u&&u===i.keyCode)&&a++}}catch(b){n={error:b}}finally{try{o&&!o.done&&(t=f.return)&&t.call(f)}finally{if(n)throw n.error}}return r?a===l.length&&p(i)===l.length?e:!1:a===l.length?e:!1}function N(i,e){return Q(i)?i:G(i)?function(r){return z(r,i,e)}:Array.isArray(i)?function(r){return i.find(function(n){return z(r,n,e)})}:function(){return!!i}}var O=["keydown"];function _(i,e,r){var n=r||{},t=n.events,l=t===void 0?O:t,a=n.target,f=n.exactMatch,o=f===void 0?!1:f,c=n.useCapture,s=c===void 0?!1:c,u=P(e),b=P(i);Y(function(){var A,m,L,v=$(a,window);if(v){var T=function(g){var C,E=N(b.current,o),y=E(g),h=G(y)?y:g.key;if(y)return(C=u.current)===null||C===void 0?void 0:C.call(u,g,h)};try{for(var K=S(l),k=K.next();!k.done;k=K.next()){var H=k.value;(L=v==null?void 0:v.addEventListener)===null||L===void 0||L.call(v,H,T,s)}}catch(g){A={error:g}}finally{try{k&&!k.done&&(m=K.return)&&m.call(K)}finally{if(A)throw A.error}}return function(){var g,C,E;try{for(var y=S(l),h=y.next();!h.done;h=y.next()){var J=h.value;(E=v==null?void 0:v.removeEventListener)===null||E===void 0||E.call(v,J,T,s)}}catch(M){g={error:M}}finally{try{h&&!h.done&&(C=y.return)&&C.call(y)}finally{if(g)throw g.error}}}}},[l],a)}function d(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function q(i,e){for(var r="",n=0,t=-1,l=0,a,f=0;f<=i.length;++f){if(f<i.length)a=i.charCodeAt(f);else{if(a===47)break;a=47}if(a===47){if(!(t===f-1||l===1))if(t!==f-1&&l===2){if(r.length<2||n!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var o=r.lastIndexOf("/");if(o!==r.length-1){o===-1?(r="",n=0):(r=r.slice(0,o),n=r.length-1-r.lastIndexOf("/")),t=f,l=0;continue}}else if(r.length===2||r.length===1){r="",n=0,t=f,l=0;continue}}e&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+i.slice(t+1,f):r=i.slice(t+1,f),n=f-t-1;t=f,l=0}else a===46&&l!==-1?++l:l=-1}return r}function I(i,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+i+n:n}var w={resolve:function(){for(var e="",r=!1,n,t=arguments.length-1;t>=-1&&!r;t--){var l;t>=0?l=arguments[t]:(n===void 0&&(n=U.cwd()),l=n),d(l),l.length!==0&&(e=l+"/"+e,r=l.charCodeAt(0)===47)}return e=q(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(d(e),e.length===0)return".";var r=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=q(e,!r),e.length===0&&!r&&(e="."),e.length>0&&n&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return d(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var n=arguments[r];d(n),n.length>0&&(e===void 0?e=n:e+="/"+n)}return e===void 0?".":w.normalize(e)},relative:function(e,r){if(d(e),d(r),e===r||(e=w.resolve(e),r=w.resolve(r),e===r))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===47;++n);for(var t=e.length,l=t-n,a=1;a<r.length&&r.charCodeAt(a)===47;++a);for(var f=r.length,o=f-a,c=l<o?l:o,s=-1,u=0;u<=c;++u){if(u===c){if(o>c){if(r.charCodeAt(a+u)===47)return r.slice(a+u+1);if(u===0)return r.slice(a+u)}else l>c&&(e.charCodeAt(n+u)===47?s=u:u===0&&(s=0));break}var b=e.charCodeAt(n+u),A=r.charCodeAt(a+u);if(b!==A)break;b===47&&(s=u)}var m="";for(u=n+s+1;u<=t;++u)(u===t||e.charCodeAt(u)===47)&&(m.length===0?m+="..":m+="/..");return m.length>0?m+r.slice(a+s):(a+=s,r.charCodeAt(a)===47&&++a,r.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(d(e),e.length===0)return".";for(var r=e.charCodeAt(0),n=r===47,t=-1,l=!0,a=e.length-1;a>=1;--a)if(r=e.charCodeAt(a),r===47){if(!l){t=a;break}}else l=!1;return t===-1?n?"/":".":n&&t===1?"//":e.slice(0,t)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');d(e);var n=0,t=-1,l=!0,a;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var f=r.length-1,o=-1;for(a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(c===47){if(!l){n=a+1;break}}else o===-1&&(l=!1,o=a+1),f>=0&&(c===r.charCodeAt(f)?--f===-1&&(t=a):(f=-1,t=o))}return n===t?t=o:t===-1&&(t=e.length),e.slice(n,t)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!l){n=a+1;break}}else t===-1&&(l=!1,t=a+1);return t===-1?"":e.slice(n,t)}},extname:function(e){d(e);for(var r=-1,n=0,t=-1,l=!0,a=0,f=e.length-1;f>=0;--f){var o=e.charCodeAt(f);if(o===47){if(!l){n=f+1;break}continue}t===-1&&(l=!1,t=f+1),o===46?r===-1?r=f:a!==1&&(a=1):r!==-1&&(a=-1)}return r===-1||t===-1||a===0||a===1&&r===t-1&&r===n+1?"":e.slice(r,t)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return I("/",e)},parse:function(e){d(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var n=e.charCodeAt(0),t=n===47,l;t?(r.root="/",l=1):l=0;for(var a=-1,f=0,o=-1,c=!0,s=e.length-1,u=0;s>=l;--s){if(n=e.charCodeAt(s),n===47){if(!c){f=s+1;break}continue}o===-1&&(c=!1,o=s+1),n===46?a===-1?a=s:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||o===-1||u===0||u===1&&a===o-1&&a===f+1?o!==-1&&(f===0&&t?r.base=r.name=e.slice(1,o):r.base=r.name=e.slice(f,o)):(f===0&&t?(r.name=e.slice(1,a),r.base=e.slice(1,o)):(r.name=e.slice(f,a),r.base=e.slice(f,o)),r.ext=e.slice(a,o)),f>0?r.dir=e.slice(0,f-1):t&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};w.posix=w;var ee=w;export{ee as p,_ as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{P as r,r as b,bA as W,u as C,j as d,aA as _,_ as F,y as $}from"./index-IcQQOgM-.js";import{S as q}from"./index-C8pZezDf.js";import{D as B}from"./index-DTwcC2c1.js";import{L as V}from"./selector-Bgt80Coe.js";const G=r.shape({appLogo:r.node,appName:r.string,theme:r.shape({background:r.string}),enableConnect:r.bool,enableLocale:r.bool,navigation:r.arrayOf(r.shape({title:r.oneOfType([r.string,r.object]),link:r.oneOfType([r.string,r.object]),icon:r.string,items:r.arrayOf(r.shape({title:r.oneOfType([r.string,r.object]),link:r.oneOfType([r.string,r.object])}))}))}),D=r.shape({showText:r.bool,showRole:r.bool,switchDid:r.bool,switchProfile:r.bool,switchPassport:r.bool,disableLogout:r.bool,onLogin:r.func,onLogout:r.func,onSwitchDid:r.func,onSwitchProfile:r.func,onSwitchPassport:r.func,menu:r.array,menuRender:r.func,dark:r.bool,size:r.number}),A=(n,o,t="children")=>n.map(s=>Array.isArray(s[t])?o({...s,[t]:A(s[t],o,t)}):o(s)),J=(n,o="children")=>{const t=[];return A(n,s=>t.push(s),o),t},S=(n,o,t="children")=>n.map(s=>({...s})).filter(s=>{const e=s[t];if(Array.isArray(e)){const c=S(e,o,t);s[t]=c!=null&&c.length?c:void 0}const a={filteredChildren:s[t],isLeaf:!(e!=null&&e.length)};return o(s,a)}),Q=n=>/^https?:\/\//.test(n),ie=n=>/^[\w-]+:[\w-]+$/.test(n),X=n=>{if(!n||!(n!=null&&n.startsWith("/")))return!1;const o=e=>e.endsWith("/")?e:`${e}/`,t=o(window.location.pathname),s=o(new URL(n,window.location.origin).pathname);return t.startsWith(s)},Y=(n=[])=>{const o=n.map((s,e)=>({path:s,index:e})).filter(s=>X(s.path));return o!=null&&o.length?o.slice(1).reduce((s,e)=>s.path.length>=e.path.length?s:e,o[0]).index:-1};var z,E;const N=((z=window==null?void 0:window.blocklet)==null?void 0:z.groupPrefix)||((E=window==null?void 0:window.blocklet)==null?void 0:E.prefix)||"/",Z=n=>{const o={...n},t=n==null?void 0:n.background;return typeof t=="string"?o.background={header:t,footer:t,default:t}:t&&typeof t=="object"&&(o.background={header:t.header||t.default,footer:t.footer||t.default,default:t.default}),o},I=(n,o="en")=>{if(!(n!=null&&n.length))return n;const t=(e,a)=>typeof e=="string"?e:typeof e=="object"?e[a]||(e==null?void 0:e.en)||(e==null?void 0:e.zh):e,s=(e,a)=>{if(typeof e=="string"){if(Q(e)){const h=new URL(e);return h.searchParams.set("locale",a),h.href}const c=new URL(e,window.location.origin);return c.searchParams.set("locale",a),c.pathname+c.search}return typeof e=="object"?e[a]||(e==null?void 0:e.en)||(e==null?void 0:e.zh):e};return A(n,e=>{var a;return{...e,title:t(e.title,o),link:(a=e.items)!=null&&a.length?e.link:s(e.link,o),_rawLink:e.link}},"items")},K=n=>A(n,o=>o.role?{...o,role:Array.isArray(o.role)?o.role:[o.role]}:o,"items"),ee=n=>{if(!(n!=null&&n.length))return null;const o=K(n),t={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return o.forEach(s=>{var e;s.section?Array.isArray(s.section)?s.section.forEach(a=>{var c;(c=t[a])==null||c.push(s)}):typeof s.section=="string"&&((e=t[s.section])==null||e.push(s)):t.header.push(s)}),t},oe=n=>{if(!n)return null;const o={...n};return o.theme=Z(o.theme),o.navigation=ee(ne(o.navigation)),o},ne=(n=[])=>S(n,(o,t)=>{var s;return!!o.link||((s=t.filteredChildren)==null?void 0:s.length)},"items"),U=(n,o)=>S(n,(t,s)=>{var a;const e=!t.role||o&&t.role.includes(o);return s.isLeaf?e:e&&((a=s.filteredChildren)==null?void 0:a.length)},"items");function M({formattedBlocklet:n,addons:o,sessionManagerProps:t}){var L,l,m,j;const s=b.useContext(W),{locale:e}=C()||{},{enableConnect:a=!0,enableLocale:c=!0}=n,h=!!((L=s==null?void 0:s.session)!=null&&L.user);let i=I((l=n==null?void 0:n.navigation)==null?void 0:l.sessionManager,e)||[];i=U(i,(j=(m=s==null?void 0:s.session)==null?void 0:m.user)==null?void 0:j.role);const w=(()=>{if(o&&typeof o!="function")return Array.isArray(o)?o:[o];let g=[];if(c&&e&&g.push(d.jsx(V,{showText:!1},"locale-selector")),a&&s){const x=[];h&&(i?i.slice(0,5):[]).forEach(y=>{x.push({label:y.title,icon:y.icon?d.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),g.push(d.jsx(q,{session:s.session,locale:e},"session-blocklet")),g.push(d.jsx(_,{session:s.session,locale:e,menu:x,showRole:!0,...t},"session-user"))}return typeof o=="function"&&(g=o(g)||[]),g})();return b.createElement(d.Fragment,null,...Array.isArray(w)?w:[w])}M.propTypes={formattedBlocklet:r.object.isRequired,addons:r.oneOfType([r.func,r.node]),sessionManagerProps:D};M.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const re=()=>{const n=F();b.useEffect(()=>{n.wallet&&$.call("arcHideTopBar","{}")},[n])};function H({meta:n,fallbackUrl:o,invalidPathFallback:t,headerAddons:s,sessionManagerProps:e,links:a,...c}){var O;re();const h=b.useContext(W),i=(O=h==null?void 0:h.session)==null?void 0:O.user,R=i==null?void 0:i.role,{locale:w}=C()||{},p=b.useMemo(()=>{const u=Object.assign({},window.blocklet,n);try{return oe(u)}catch(P){return console.error("Failed to format blocklet info",P,u),u}},[n]),{localizedNav:L,flattened:l,matchedIndex:m}=b.useMemo(()=>{var k;let u=I((k=p==null?void 0:p.navigation)==null?void 0:k.dashboard,w)||[];u=U(u,R),u=A(u,f=>({title:f.title,url:f.link,icon:f.icon?d.jsx("iconify-icon",{height:"100%",width:"100%",icon:f.icon}):null,external:!0,children:f.items}),"items");const P=J(u).filter(f=>!!f.url),T=Y(P.map(f=>f.url));return T!==-1&&(P[T].active=!0),{localizedNav:u,flattened:P,matchedIndex:T}},[p,w,R]),j=typeof a=="function"?a(L):[...L,...a];if(b.useLayoutEffect(()=>{i&&!(l!=null&&l.length)&&o&&(window.location.href=o)},[o]),b.useLayoutEffect(()=>{i&&(l!=null&&l.length)&&m===-1&&t&&t()},[t,l,m]),!p.appName)return null;const{appLogo:g,appLogoRect:x,appName:v}=p,y=d.jsx(M,{formattedBlocklet:p,addons:s,sessionManagerProps:e});return d.jsx(B,{title:v,fullWidth:!0,sidebarWidth:128,legacy:!1,links:j,...c,headerProps:{homeLink:N,logo:d.jsx("img",{src:x||g,alt:"logo"}),addons:y,...c.headerProps}})}H.propTypes={meta:G,fallbackUrl:r.string,invalidPathFallback:r.func,headerAddons:r.oneOfType([r.func,r.node]),sessionManagerProps:D,links:r.oneOfType([r.array,r.func])};H.defaultProps={meta:{},fallbackUrl:N,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=N}},links:[]};export{G as B,H as D,M as H,ie as a,J as b,Y as c,oe as f,I as g,Q as i,A as m,N as p,re as u};
|