@abtnode/blocklet-services 1.16.27-beta-43a3bbb2 → 1.16.27-beta-c450492a
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/routes/user.js +1 -1
- package/dist/assets/{Add-CkUvZ8ne.js → Add-BZttmyNg.js} +1 -1
- package/dist/assets/{AddBox-CYLniHTg.js → AddBox-CHOk-LLm.js} +1 -1
- package/dist/assets/{Alert-DSAK-6uk.js → Alert-Ckg3vS56.js} +1 -1
- package/dist/assets/{ArrowDropDown-eEIvnybw.js → ArrowDropDown-DEVXo93w.js} +1 -1
- package/dist/assets/{Avatar-6cyEgEIs.js → Avatar-X0tgeEge.js} +1 -1
- package/dist/assets/{ButtonGroup-CbL72-oE.js → ButtonGroup-Dal5_Jr_.js} +1 -1
- package/dist/assets/{CheckCircle-CCtR5Xg1.js → CheckCircle-BZqbdkWZ.js} +1 -1
- package/dist/assets/{ChevronRight-D4XRflu9.js → ChevronRight-RrMmYqUi.js} +1 -1
- package/dist/assets/{CloseOutlined-Cpeesg_y.js → CloseOutlined-dEzqvnqT.js} +1 -1
- package/dist/assets/{Delete-FnPlSebw.js → Delete-D1YGRCcL.js} +1 -1
- package/dist/assets/{DeleteOutline-DeZPaQ1S.js → DeleteOutline-DsXL7Jea.js} +1 -1
- package/dist/assets/{Done-DMoT8ohA.js → Done-D2z6QRfe.js} +1 -1
- package/dist/assets/{Download-MLK9k-QI.js → Download-OoE75Hc9.js} +1 -1
- package/dist/assets/{Edit-DS1Mq3Qj.js → Edit-C4MWAGmd.js} +1 -1
- package/dist/assets/{EditIcon-_ZF4_H7O.js → EditIcon-Pmh1csLM.js} +1 -1
- package/dist/assets/{Error-CNGdEO62.js → Error-BE0NYRsd.js} +1 -1
- package/dist/assets/{ExpandMore-BLVLjrZd.js → ExpandMore-GvAP3Sct.js} +1 -1
- package/dist/assets/{FilterList-rsX_pJAI.js → FilterList-BS0PF827.js} +4 -4
- package/dist/assets/{FormControl-BGBxSpFa.js → FormControl-CRhE0qrI.js} +1 -1
- package/dist/assets/{FormControlLabel-D8u6upQ1.js → FormControlLabel-9jmTPhZq.js} +1 -1
- package/dist/assets/{FormGroup-B459wuGu.js → FormGroup-D6O334g7.js} +1 -1
- package/dist/assets/{Google-BTJavqUA.js → Google-CN1Fv11c.js} +4 -4
- package/dist/assets/{Grid-D5J6kvn0.js → Grid-DPNicfYt.js} +1 -1
- package/dist/assets/{Hidden-Bq2dXlPY.js → Hidden-DEczlGmO.js} +1 -1
- package/dist/assets/{InfoOutlined-D1P8n7sX.js → InfoOutlined-ByEED39n.js} +1 -1
- package/dist/assets/{InputAdornment-jSW0lrBI.js → InputAdornment-DIogchVN.js} +1 -1
- package/dist/assets/{InputLabel-D4si6vrM.js → InputLabel-BRpaNIwA.js} +1 -1
- package/dist/assets/{LastPage-B7zYSdUl.js → LastPage-BJrH3K4h.js} +1 -1
- package/dist/assets/{Launch-SkQPO1Cm.js → Launch-nUjmwaU5.js} +1 -1
- package/dist/assets/{LaunchOutlined-eC9MCH8e.js → LaunchOutlined-DrXnxCLi.js} +1 -1
- package/dist/assets/{Link-DpjXpC6x.js → Link-lqn1KsiX.js} +1 -1
- package/dist/assets/{ListItemText-CVS1G1s8.js → ListItemText-DS01I0yF.js} +1 -1
- package/dist/assets/{LockIcon-BbYgfgXm.js → LockIcon-CHgUD4HH.js} +1 -1
- package/dist/assets/{Loop-BsAnzeYJ.js → Loop-aisoDTHE.js} +1 -1
- package/dist/assets/{MoreHoriz-DtO97ZT3.js → MoreHoriz-gjLgNH50.js} +1 -1
- package/dist/assets/{MoreVert-BbEIKsYw.js → MoreVert-BYNRnRg2.js} +1 -1
- package/dist/assets/{OpenInNew-B1iaT2eN.js → OpenInNew-UFJfnuEy.js} +1 -1
- package/dist/assets/{Pagination-DwyeABpM.js → Pagination-C016Iel4.js} +2 -2
- package/dist/assets/{PlayArrow-C7kIbjaf.js → PlayArrow-DTsZGA_R.js} +1 -1
- package/dist/assets/{RadioGroup-DiqmtEFh.js → RadioGroup-D41CHRvB.js} +1 -1
- package/dist/assets/{Search-Cjqsb3on.js → Search-yXbvRtDa.js} +1 -1
- package/dist/assets/{Select-hmsiR_HX.js → Select-BTl2FGLc.js} +2 -2
- package/dist/assets/{ServerLogo-D5qdDd4G.js → ServerLogo-Tal6vANl.js} +1 -1
- package/dist/assets/{Skeleton-BuWYKZPB.js → Skeleton-VHLZJGD0.js} +1 -1
- package/dist/assets/{Slider-DetOb1T0.js → Slider-Dwz7dN9i.js} +1 -1
- package/dist/assets/{Stepper-BXkIeY17.js → Stepper-Cbp3yjSb.js} +1 -1
- package/dist/assets/{TableRow-DSPkF0eX.js → TableRow-Ci1kqNSI.js} +1 -1
- package/dist/assets/{TextField-CebHGT3J.js → TextField-DZHIlBQU.js} +1 -1
- package/dist/assets/{Toolbar-Bjp831p7.js → Toolbar-yXKlaxrE.js} +1 -1
- package/dist/assets/{ViewList-DOozyS6f.js → ViewList-Bt8D8io5.js} +1 -1
- package/dist/assets/{access-control-Dl0vyv1s.js → access-control-DdCYirmE.js} +1 -1
- package/dist/assets/{actions-CxX91LLq.js → actions-Cxf-gFNJ.js} +1 -1
- package/dist/assets/{add-component-core-Bzv7N-Un.js → add-component-core-CrSvDeM3.js} +1 -1
- package/dist/assets/add-resource-IO-rMC5s.js +1 -0
- package/dist/assets/{addon-HBcPW1Xp.js → addon-DP8VedWZ.js} +1 -1
- package/dist/assets/{analytics-BtlQhyh7.js → analytics-DSyuCkmK.js} +5 -5
- package/dist/assets/api-gz7hB8CA.js +1 -0
- package/dist/assets/ar-DL3sDfSw.js +1 -0
- package/dist/assets/{audit-logs-BAcaHWVK.js → audit-logs-D6FXtNz6.js} +1 -1
- package/dist/assets/{button-pUiVMawE.js → button-DP4OytkE.js} +1 -1
- package/dist/assets/{click-to-copy-BepxNu11.js → click-to-copy-DUYzs1_1.js} +1 -1
- package/dist/assets/{complete-smm50XPQ.js → complete-CBjdLPQ6.js} +1 -1
- package/dist/assets/{component-bFEpkQ2Z.js → component-C-XUlYj_.js} +48 -48
- package/dist/assets/{config-jV7-yCc5.js → config-B0Vctccu.js} +2 -2
- package/dist/assets/{config-DW9gTUAf.js → config-B1Th1shn.js} +1 -1
- package/dist/assets/{config-navigation-CtD1VQtq.js → config-navigation-QiU387Te.js} +3 -3
- package/dist/assets/{config-space-B6jPcEh3.js → config-space-BpCzSSmJ.js} +1 -1
- package/dist/assets/{confirm-Cv8oxTtx.js → confirm-GetbIDgC.js} +1 -1
- package/dist/assets/{connect-BkABc5e9.js → connect-C3YQjgHn.js} +1 -1
- package/dist/assets/connect-CrXlg5Al.js +1 -0
- package/dist/assets/{connect-to-BFFR-hu4.js → connect-to-BAg1Tftb.js} +2 -2
- package/dist/assets/{content-layout-D4_5Ol4a.js → content-layout-COiyxy5a.js} +1 -1
- package/dist/assets/dashboard-hjV9J_IP.js +134 -0
- package/dist/assets/de-DGwiigKp.js +1 -0
- package/dist/assets/{did-address-BKaFzmkz.js → did-address-DOMlLbG2.js} +1 -1
- package/dist/assets/{domain-EaFE1hEt.js → domain-bGO7mc2H.js} +1 -1
- package/dist/assets/domain-list-DwWKqE7G.js +12 -0
- package/dist/assets/es-9mruY9lq.js +1 -0
- package/dist/assets/{exchange-passport-Bb9jxKJg.js → exchange-passport-D_xCodwU.js} +1 -1
- package/dist/assets/{fallback-BrnkKdFy.js → fallback-BBqe0Pch.js} +1 -1
- package/dist/assets/fr-B_Ky4Dm0.js +1 -0
- package/dist/assets/{fuel-XE5N0qRF.js → fuel-BxGvzdJn.js} +1 -1
- package/dist/assets/fullpage-DX4CRWPM.js +1 -0
- package/dist/assets/hi-CRoTjeqt.js +1 -0
- package/dist/assets/{home-RpZEfl3g.js → home-BB0e9IFh.js} +1 -1
- package/dist/assets/id-Cdg6kALM.js +1 -0
- package/dist/assets/{iframe-CFCNJ5tP.js → iframe-DQsArr7o.js} +1 -1
- package/dist/assets/{index-DrNjQoSO.js → index-6XeAIRdc.js} +1 -1
- package/dist/assets/{index-DmzTP_a0.js → index-8HI1a5Zo.js} +1 -1
- package/dist/assets/{index-DMLGvPCM.js → index-B2EZpUou.js} +1 -1
- package/dist/assets/{index-DwHEm9HC.js → index-BJVCBhY9.js} +1 -1
- package/dist/assets/{index-D3pN0lCt.js → index-BZUKYJyW.js} +1 -1
- package/dist/assets/{index-D6iVBQb2.js → index-BnE3zvyI.js} +1 -1
- package/dist/assets/{index-D8noUWUC.js → index-ByXpe3-E.js} +2 -2
- package/dist/assets/{index-CHtMZbHk.js → index-C6aIiNgu.js} +1 -1
- package/dist/assets/{index-CdqltrPb.js → index-CA9nXqmw.js} +4 -4
- package/dist/assets/index-CCnRu-N_.js +262 -0
- package/dist/assets/{index-B_hqIPlg.js → index-CK8UlDvD.js} +1 -1
- package/dist/assets/{index-C5w04FB_.js → index-CVO-HMQm.js} +1 -1
- package/dist/assets/{index-DNMd4Dac.js → index-CfimVh0y.js} +9 -9
- package/dist/assets/{index-ChfbTLYd.js → index-Ci-Rw-gx.js} +1 -1
- package/dist/assets/{index-CAl1tFNE.js → index-CjmWpUPE.js} +1 -1
- package/dist/assets/{index-CPMqUyRS.js → index-CkF4wlJd.js} +1 -1
- package/dist/assets/{index-D5eD8XJz.js → index-CsdbJ0Hp.js} +1 -1
- package/dist/assets/{index-fG25goIy.js → index-DCUaLmts.js} +192 -192
- package/dist/assets/{index-CtDBvr1Q.js → index-DIwxXXKp.js} +3 -3
- package/dist/assets/{index-DBnR7IpU.js → index-DOy0gjrT.js} +18 -18
- package/dist/assets/{index-3brZtWZ9.js → index-DSs0suVa.js} +1 -1
- package/dist/assets/{index-BfeaSLaW.js → index-DTE_Bz9Y.js} +3 -3
- package/dist/assets/{index-sr139pC0.js → index-D_Ya--j_.js} +1 -1
- package/dist/assets/{index-B5c-C1vn.js → index-Drt_hQO9.js} +1 -1
- package/dist/assets/{index-DlqvRRPO.js → index-DsoZgff_.js} +1 -1
- package/dist/assets/{index-Dh7JA33-.js → index-DvByrxEc.js} +1 -1
- package/dist/assets/{index-ZsDQ0ZLD.js → index-J6z7t1rF.js} +1 -1
- package/dist/assets/{index-D6RSvNSn.js → index-avgOJfqZ.js} +1 -1
- package/dist/assets/{index-CwpOap00.js → index-dnbUeKRC.js} +1 -1
- package/dist/assets/index-pwY4fC-n.js +221 -0
- package/dist/assets/{index.es-C3322V-z.js → index.es-BOzJDe64.js} +3 -3
- package/dist/assets/{index.esm-6YbQ5Xmm.js → index.esm-B4B5rQ31.js} +1 -1
- package/dist/assets/{info-outline-rounded-D7wKMY9w.js → info-outline-rounded-CAhEU6pm.js} +3 -3
- package/dist/assets/{invitation-LN6puB5A.js → invitation-B-IXWaam.js} +1 -1
- package/dist/assets/{invite-DG9H2Iba.js → invite-CeEfMNQm.js} +1 -1
- package/dist/assets/{issue-passport-Bdq9kbMM.js → issue-passport-BdP4taEE.js} +1 -1
- package/dist/assets/{item-bwoWUlt2.js → item-CM-hXL-W.js} +1 -1
- package/dist/assets/ja-CwLZhkj9.js +1 -0
- package/dist/assets/{jss-plugin-props-sort.esm-w0rgdWJs.js → jss-plugin-props-sort.esm-DnZrBWk6.js} +1 -1
- package/dist/assets/ko-BFVUmw7n.js +1 -0
- package/dist/assets/{launch-result-message-D5ZsOjgY.js → launch-result-message-BKKPMDWQ.js} +1 -1
- package/dist/assets/{layout-h5rjnmBP.js → layout-DJDsp2G7.js} +1 -1
- package/dist/assets/{list-header-DVDeNCcp.js → list-header-rs7a9q3k.js} +1 -1
- package/dist/assets/localization-DUs8Q6OC.js +1 -0
- package/dist/assets/{log-WkhWt2QZ.js → log-IDCCHpAQ.js} +1 -1
- package/dist/assets/{login-BSuT77Wh.js → login-DdbRTvnW.js} +1 -1
- package/dist/assets/{login-oauth-callback-CQlWtNf7.js → login-oauth-callback-DCvcaJmb.js} +1 -1
- package/dist/assets/{logo-uploader-DZbF5KOt.js → logo-uploader-C5fSo0yS.js} +3 -3
- package/dist/assets/{lost-passport-yVMXzR1w.js → lost-passport-CpkrM-6x.js} +3 -3
- package/dist/assets/{lottie-DRoeX_V2.js → lottie-DxLWcG77.js} +1 -1
- package/dist/assets/{notifications-Bs8gH_Rc.js → notifications-BOEc-QfI.js} +1 -1
- package/dist/assets/{overview-BtkTCsvo.js → overview-DjCI13uR.js} +1 -1
- package/dist/assets/{page-header-B22lXwng.js → page-header-DwcpJYHw.js} +1 -1
- package/dist/assets/{permission-C9iOC8zT.js → permission-DKuEG024.js} +1 -1
- package/dist/assets/{preferences-BfZm39fz.js → preferences-BO-naVRn.js} +1 -1
- package/dist/assets/pt-Bl558Q8f.js +1 -0
- package/dist/assets/publish-resource-DJOICdzH.js +1 -0
- package/dist/assets/react-MvlIfZoz.js +66 -0
- package/dist/assets/{redux-DTC_Jkdb.js → redux-CwWRdYOF.js} +1 -1
- package/dist/assets/ru-DW2Muzmc.js +1 -0
- package/dist/assets/{selector-DBqg7pjs.js → selector--W6Jex9G.js} +3 -3
- package/dist/assets/session-BpbmMS81.js +1 -0
- package/dist/assets/{setup-DSA4pIg-.js → setup-D2wkCrU2.js} +3 -3
- package/dist/assets/{slicedToArray-DkIYLQKw.js → slicedToArray-CkMFS5XA.js} +1 -1
- package/dist/assets/{spaces-XGQ-YXCR.js → spaces-CcRRr9K0.js} +1 -1
- package/dist/assets/{start-QP4aPp-U.js → start-C2hqjqRq.js} +1 -1
- package/dist/assets/{step-actions-CSDiPZmH.js → step-actions-BdLKQeyK.js} +1 -1
- package/dist/assets/{studio-CbYn5e_F.js → studio-f_FAcr3i.js} +1 -1
- package/dist/assets/{switch-control-Djddi9nC.js → switch-control-CpG2nz1G.js} +1 -1
- package/dist/assets/th-Cl2SEEys.js +1 -0
- package/dist/assets/{toUpper-BD8ypjwq.js → toUpper-l8wz7Xo9.js} +1 -1
- package/dist/assets/{transfer-DE81ajwE.js → transfer-BLjF8MWR.js} +1 -1
- package/dist/assets/{uniqBy-BnSlopG4.js → uniqBy-D8F_rJ-g.js} +1 -1
- package/dist/assets/{unsubscribe-DRfe4T8a.js → unsubscribe-B2Ts_74Y.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-6A-Z6p1J.js → use-blocklet-info-for-connect-did-spaces-C3RxgAqo.js} +1 -1
- package/dist/assets/useAsync-C4TKK0Ew.js +1 -0
- package/dist/assets/{useFormControl-C1fGK9Rc.js → useFormControl-D504I9HW.js} +1 -1
- package/dist/assets/useLocalStorage-BrO8kLso.js +1 -0
- package/dist/assets/{useSetState-GffjrhKI.js → useSetState-sVaM9BDZ.js} +1 -1
- package/dist/assets/{useSlot-fHevRUkf.js → useSlot-Cr01FlCA.js} +1 -1
- package/dist/assets/user-center-BGsAWS8V.js +1 -0
- package/dist/assets/{user-sessions-IlcyV7kJ.js → user-sessions-CrKF9wGz.js} +1 -1
- package/dist/assets/{util-DPyJsqCR.js → util--ARej0uw.js} +1 -1
- package/dist/assets/vi-VvyUa6XN.js +1 -0
- package/dist/assets/wrap-locale-D35Cvmxt.js +1 -0
- package/dist/assets/zh-ZhlP18zk.js +2 -0
- package/dist/assets/zh-tw-C4sv03Lw.js +1 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +36 -36
- package/dist/assets/add-resource-C6SMzogG.js +0 -1
- package/dist/assets/api-sAuPzOF6.js +0 -1
- package/dist/assets/ar-09Xjw0Rv.js +0 -1
- package/dist/assets/connect-DInxHa0g.js +0 -1
- package/dist/assets/dashboard-D_A_KYtx.js +0 -134
- package/dist/assets/de-DcQQJyPL.js +0 -1
- package/dist/assets/domain-list-DbawBpg2.js +0 -12
- package/dist/assets/es-BeIAX-S9.js +0 -1
- package/dist/assets/fr-Cpkj57fT.js +0 -1
- package/dist/assets/fullpage-D8hlUpG8.js +0 -1
- package/dist/assets/hi-BDydYemk.js +0 -1
- package/dist/assets/id-B2LO1Omn.js +0 -1
- package/dist/assets/index-D_ysrxYq.js +0 -221
- package/dist/assets/index-bBRdRgYN.js +0 -262
- package/dist/assets/ja-Bd2vEi-1.js +0 -1
- package/dist/assets/ko-oVImxtsY.js +0 -1
- package/dist/assets/localization-BYhlULmq.js +0 -1
- package/dist/assets/pt-BQMW_pAE.js +0 -1
- package/dist/assets/publish-resource-D8qngMjX.js +0 -1
- package/dist/assets/react-FdGZpLIJ.js +0 -60
- package/dist/assets/ru-P4_Ej5QC.js +0 -1
- package/dist/assets/session-BRLUzB_V.js +0 -1
- package/dist/assets/th-DbeEat3N.js +0 -1
- package/dist/assets/useAsync-QgQb6KwU.js +0 -1
- package/dist/assets/useLocalStorage-Ba50FLbS.js +0 -1
- package/dist/assets/user-center-i4kFtCbT.js +0 -1
- package/dist/assets/vi-DW7ezJTH.js +0 -1
- package/dist/assets/wrap-locale-uy_hreR6.js +0 -1
- package/dist/assets/zh-C6Y_lrJ4.js +0 -2
- package/dist/assets/zh-tw-BVMltmnh.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aB as Pe,aA as ze,aC as ee,ae as Ne,aD as W,aF as P,r as
|
|
1
|
+
import{aB as Pe,aA as ze,aC as ee,ae as Ne,aD as W,aF as P,r as c,aJ as Ce,aE as ae,j as o,aH as T,aI as Me,d8 as eo,cW as oo,bn as oe,cH as ro,d9 as to,P as t,W as ie,X as le,c2 as v,ab as no,ax as de,L as Z,T as F,b as ao,ay as Re,B as C,c3 as so,y as S,da as io,H as Te,Z as lo,M as co,f as po,db as uo,h as ho,dc as xo,dd as mo}from"./index-DCUaLmts.js";import{T as fo}from"./Toolbar-yXKlaxrE.js";import{H as Be}from"./Hidden-DEczlGmO.js";import{d as go}from"./MoreHoriz-gjLgNH50.js";import{d as bo}from"./ExpandMore-GvAP3Sct.js";const se={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 vo(e){return Pe("MuiAppBar",e)}ze("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const yo=["className","color","enableColorOnDark","position"],jo=e=>{const{color:r,position:n,classes:a}=e,s={root:["root",`color${W(r)}`,`position${W(n)}`]};return Me(s,vo,a)},Q=(e,r)=>e?`${e==null?void 0:e.replace(")","")}, ${r})`:r,wo=ee(Ne,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.root,r[`position${W(n.position)}`],r[`color${W(n.color)}`]]}})(({theme:e,ownerState:r})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return P({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},r.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},r.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},r.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},r.position==="static"&&{position:"static"},r.position==="relative"&&{position:"relative"},!e.vars&&P({},r.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},r.color&&r.color!=="default"&&r.color!=="inherit"&&r.color!=="transparent"&&{backgroundColor:e.palette[r.color].main,color:e.palette[r.color].contrastText},r.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!r.enableColorOnDark&&{backgroundColor:null,color:null},r.color==="transparent"&&P({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&P({},r.color==="default"&&{"--AppBar-background":r.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Q(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?e.vars.palette.text.primary:Q(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?e.vars.palette[r.color].main:Q(e.vars.palette.AppBar.darkBg,e.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?e.vars.palette[r.color].contrastText:Q(e.vars.palette.AppBar.darkColor,e.vars.palette[r.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:r.color==="inherit"?"inherit":"var(--AppBar-color)"},r.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),ko=c.forwardRef(function(r,n){const a=Ce({props:r,name:"MuiAppBar"}),{className:s,color:p="primary",enableColorOnDark:d=!1,position:i="fixed"}=a,u=ae(a,yo),l=P({},a,{color:p,position:i,enableColorOnDark:d}),h=jo(l);return o.jsx(wo,P({square:!0,component:"header",ownerState:l,elevation:4,className:T(h.root,s,i==="fixed"&&"mui-fixed"),ref:n},u))}),$o=ko;function Po(e){return Pe("MuiDrawer",e)}ze("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const zo=["BackdropProps"],No=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Ae=(e,r)=>{const{ownerState:n}=e;return[r.root,(n.variant==="permanent"||n.variant==="persistent")&&r.docked,r.modal]},Co=e=>{const{classes:r,anchor:n,variant:a}=e,s={root:["root"],docked:[(a==="permanent"||a==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${W(n)}`,a!=="temporary"&&`paperAnchorDocked${W(n)}`]};return Me(s,Po,r)},Mo=ee(eo,{name:"MuiDrawer",slot:"Root",overridesResolver:Ae})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),ke=ee("div",{shouldForwardProp:oo,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Ae})({flex:"0 0 auto"}),Ro=ee(Ne,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.paper,r[`paperAnchor${W(n.anchor)}`],n.variant!=="temporary"&&r[`paperAnchorDocked${W(n.anchor)}`]]}})(({theme:e,ownerState:r})=>P({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},r.anchor==="left"&&{left:0},r.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},r.anchor==="right"&&{right:0},r.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},r.anchor==="left"&&r.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},r.anchor==="top"&&r.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},r.anchor==="right"&&r.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},r.anchor==="bottom"&&r.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Le={left:"right",right:"left",top:"down",bottom:"up"};function To(e){return["left","right"].indexOf(e)!==-1}function Bo({direction:e},r){return e==="rtl"&&To(r)?Le[r]:r}const Ao=c.forwardRef(function(r,n){const a=Ce({props:r,name:"MuiDrawer"}),s=oe(),p=ro(),d={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:u,children:l,className:h,elevation:m=16,hideBackdrop:j=!1,ModalProps:{BackdropProps:y}={},onClose:z,open:g=!1,PaperProps:b={},SlideProps:N,TransitionComponent:w=to,transitionDuration:M=d,variant:R="temporary"}=a,I=ae(a.ModalProps,zo),k=ae(a,No),$=c.useRef(!1);c.useEffect(()=>{$.current=!0},[]);const _=Bo({direction:p?"rtl":"ltr"},i),B=P({},a,{anchor:i,elevation:m,open:g,variant:R},k),A=Co(B),J=o.jsx(Ro,P({elevation:R==="temporary"?m:0,square:!0},b,{className:T(A.paper,b.className),ownerState:B,children:l}));if(R==="permanent")return o.jsx(ke,P({className:T(A.root,A.docked,h),ownerState:B,ref:n},k,{children:J}));const q=o.jsx(w,P({in:g,direction:Le[_],timeout:M,appear:$.current},N,{children:J}));return R==="persistent"?o.jsx(ke,P({className:T(A.root,A.docked,h),ownerState:B,ref:n},k,{children:q})):o.jsx(Mo,P({BackdropProps:P({},u,y,{transitionDuration:M}),className:T(A.root,A.modal,h),open:g,ownerState:B,onClose:z,hideBackdrop:j,ref:n},k,I,{children:q}))}),De=Ao,Ie=c.createContext(),Lo=e=>{const r=c.useContext(Ie);return c.useLayoutEffect(()=>{e&&r.configure(e)},[]),r};function _e({children:e,...r}){const[n,a]=c.useState({inFullPage:!1,showToggleButton:!1,headerVisibleInFullPage:!0,footerVisibleInFullPage:!1,sidebarVisibleInFullPage:!1}),s=()=>{a(d=>({...d,inFullPage:!d.inFullPage}))},p=c.useMemo(()=>({...n,headerVisible:!n.inFullPage||n.headerVisibleInFullPage,footerVisible:!n.inFullPage||n.footerVisibleInFullPage,sidebarVisible:!n.inFullPage||n.sidebarVisibleInFullPage,toggleFullPage:s,configure:d=>a(i=>({...i,...d}))}),[n]);return o.jsx(Ie.Provider,{value:p,...r,children:e})}_e.propTypes={children:t.node.isRequired};var ce={},Do=le;Object.defineProperty(ce,"__esModule",{value:!0});var Fe=ce.default=void 0,Io=Do(ie()),_o=o;Fe=ce.default=(0,Io.default)((0,_o.jsx)("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull");var pe={},Fo=le;Object.defineProperty(pe,"__esModule",{value:!0});var We=pe.default=void 0,Wo=Fo(ie()),Oo=o;We=pe.default=(0,Wo.default)((0,Oo.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:r,alt:n,color:a,style:s,prefix:p,showBadge:d,...i}){const u=`${p}/${e}-${a.replace(/^#/,"")}.png`;return o.jsxs(Ho,{style:{width:r,height:r},children:[o.jsx(no,{width:r,height:r,alt:n||e,src:u,style:Object.assign({width:r},s),...i}),d&&o.jsx("i",{className:"badge-point"})]})}ue.propTypes={name:t.string.isRequired,size:t.number,color:t.string,alt:t.string,style:t.object,prefix:t.string,showBadge:t.bool};ue.defaultProps={size:36,color:"#000000",alt:"",style:{},prefix:"/images",showBadge:!1};const Ho=v("div")`
|
|
2
2
|
position: relative;
|
|
3
3
|
.badge-point {
|
|
4
4
|
position: absolute;
|
|
@@ -10,7 +10,7 @@ import{aB as Pe,aA as ze,aC as ee,ae as Ne,aD as W,aF as P,r as l,aJ as Ce,aE as
|
|
|
10
10
|
top: 0;
|
|
11
11
|
box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.3), 0px 0px 20px rgba(0, 0, 0, 0.1);
|
|
12
12
|
}
|
|
13
|
-
`;var Oe=function(r){return o.jsx("svg",{...r,children:o.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#FFF",children:[o.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),o.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Oe.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var He=function(r){return o.jsx("svg",{...r,children:o.jsx("path",{fill:"#FFF",fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};He.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};var Ve=function(r){return o.jsx("svg",{...r,children:o.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#000",children:[o.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),o.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Ve.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var qe=function(r){return o.jsx("svg",{...r,children:o.jsx("path",{fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};qe.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};function U({showText:e,showLogo:r,mode:
|
|
13
|
+
`;var Oe=function(r){return o.jsx("svg",{...r,children:o.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#FFF",children:[o.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),o.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Oe.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var He=function(r){return o.jsx("svg",{...r,children:o.jsx("path",{fill:"#FFF",fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};He.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};var Ve=function(r){return o.jsx("svg",{...r,children:o.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#000",children:[o.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),o.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Ve.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var qe=function(r){return o.jsx("svg",{...r,children:o.jsx("path",{fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};qe.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};function U({showText:e,showLogo:r,mode:n,layout:a,...s}){const p=n==="light"?o.jsx(Oe,{}):o.jsx(Ve,{}),d=n==="light"?o.jsx(He,{className:"logo-text"}):o.jsx(qe,{className:"logo-text"});return o.jsxs(Vo,{layout:a,...s,children:[r&&p,e&&d]})}U.propTypes={mode:t.oneOf(["light","dark"]),layout:t.oneOf(["vertical","horizontal"]),showText:t.bool,showLogo:t.bool};U.defaultProps={mode:"dark",layout:"vertical",showText:!0,showLogo:!0};const Vo=v("span")`
|
|
14
14
|
display: inline-flex;
|
|
15
15
|
flex-direction: ${e=>e.layout==="horizontal"?"row":"column"};
|
|
16
16
|
justify-content: center;
|
|
@@ -20,7 +20,7 @@ import{aB as Pe,aA as ze,aC as ee,ae as Ne,aD as W,aF as P,r as l,aJ as Ce,aE as
|
|
|
20
20
|
${e=>e.layout==="vertical"?"margin-top: 8px;":""}
|
|
21
21
|
${e=>e.layout==="vertical"?"":"margin-left: 8px;"};
|
|
22
22
|
}
|
|
23
|
-
`;function he({images:e,links:r,prefix:
|
|
23
|
+
`;function he({images:e,links:r,prefix:n,addons:a,logo:s,...p}){const d=oe(),i=de(),u=(l,h)=>new RegExp(`/${h}`).test(i.pathname);return o.jsxs(qo,{...p,children:[o.jsx(Z,{to:"/",className:"sidebar-logo",children:s||o.jsx(U,{showText:!1,size:20})}),r.map(({url:l,name:h,title:m,showBadge:j})=>{const y=u(l,h);return o.jsxs(Eo,{component:Z,selected:y,to:l,children:[o.jsx(ue,{name:e[h],size:36,color:y?"#00c2c4":d.typography.color.main,prefix:n,showBadge:j}),o.jsx(F,{component:"span",className:"menu-title",children:m})]},l)}),o.jsx("div",{style:{flex:1}}),a]})}he.propTypes={images:t.object.isRequired,links:t.array.isRequired,prefix:t.string,addons:t.any,logo:t.any};he.defaultProps={prefix:"/images",addons:null,logo:null};const qo=c.memo(v("div")`
|
|
24
24
|
flex: 1;
|
|
25
25
|
display: flex;
|
|
26
26
|
flex-direction: column;
|
|
@@ -41,7 +41,7 @@ import{aB as Pe,aA as ze,aC as ee,ae as Ne,aD as W,aF as P,r as l,aJ as Ce,aE as
|
|
|
41
41
|
display: block;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
`),$e="linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))",
|
|
44
|
+
`),$e="linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))",Eo=v(ao)`
|
|
45
45
|
&& {
|
|
46
46
|
display: flex;
|
|
47
47
|
flex-direction: column;
|
|
@@ -70,7 +70,7 @@ import{aB as Pe,aA as ze,aC as ee,ae as Ne,aD as W,aF as P,r as l,aJ as Ce,aE as
|
|
|
70
70
|
color: ${e=>e.theme.palette.text.primary};
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
`;var xe={},
|
|
73
|
+
`;var xe={},So=le;Object.defineProperty(xe,"__esModule",{value:!0});var re=xe.default=void 0,Uo=So(ie()),Go=o;re=xe.default=(0,Uo.default)((0,Go.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");const Yo=v($o)`
|
|
74
74
|
&& {
|
|
75
75
|
z-index: ${e=>e.theme.zIndex.drawer};
|
|
76
76
|
background: ${e=>e.theme.palette.background.default};
|
|
@@ -140,7 +140,7 @@ import{aB as Pe,aA as ze,aC as ee,ae as Ne,aD as W,aF as P,r as l,aJ as Ce,aE as
|
|
|
140
140
|
display: block;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
`;function me({children:e,brand:r,brandAddon:
|
|
143
|
+
`;function me({children:e,brand:r,brandAddon:n,description:a,addons:s,onToggleMenu:p,homeUrl:d,logo:i,...u}){return o.jsx(Yo,{position:"sticky",className:"header",...u,children:o.jsxs(fo,{disableGutters:!1,className:"header-toolbar",children:[o.jsx(Re,{color:"inherit","aria-label":"open drawer",edge:"start",className:"header-menu","aira-label":"header menu button",onClick:p,children:o.jsx(re,{})}),o.jsxs(Z,{to:d,className:"header-link",children:[o.jsx(Be,{mdDown:!0,children:o.jsx("div",{className:"header-logo",children:i||o.jsx(U,{showText:!1})})}),o.jsxs("div",{className:"header-title",children:[o.jsxs(F,{component:"h2",noWrap:!0,className:"header-title__primary",children:[r,n]}),o.jsx(F,{component:"p",noWrap:!0,className:"header-title__secondary",children:a})]})]}),o.jsx(C,{flexGrow:1}),!!e&&o.jsx("div",{className:"header-children",children:e}),o.jsx("div",{className:"header-addons",children:s})]})})}me.propTypes={onToggleMenu:t.func.isRequired,brand:t.string.isRequired,brandAddon:t.object,description:t.any.isRequired,children:t.any,addons:t.any,homeUrl:t.string,logo:t.any};me.defaultProps={children:null,addons:null,brandAddon:null,homeUrl:"/",logo:null};function H(e){var m;const r=so(e,H,["dark","style"]),{className:n,copyStart:a,style:s,brand:p,dark:d,addon:i}=r,u=`${new Date().getFullYear()}`,l=`${a}`,h=u===l?u:`${l}-${u}`;return o.jsxs(Xo,{className:n,style:s,dark:d,children:[o.jsx(S,{maxWidth:!1,children:o.jsxs(F,{component:"div",className:"footer",children:[o.jsxs(F,{component:"p",className:"footer-item",children:[o.jsxs("span",{className:"footer-copy",children:["Copyright © ",h," "]}),o.jsx("span",{className:"footer-brand",children:p})]}),i&&o.jsx(F,{component:"div",className:"footer-item",sx:{order:{xs:"-1",md:"initial"},ml:{xs:0,md:"auto"},width:{xs:"100%",md:"auto"}},children:i}),o.jsxs(F,{component:"p",className:"footer-item",style:{justifyContent:"flex-end",flexShrink:0},children:["Powered by",o.jsx(U,{mode:d?"light":"dark",layout:"horizontal",className:"logo-container"})]})]})}),o.jsx(C,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:(m=window==null?void 0:window.blocklet)==null?void 0:m.version})]})}H.propTypes={dark:t.bool,className:t.string,copyStart:t.oneOfType([t.string,t.number]),brand:t.string,style:t.object,addon:t.node};H.defaultProps={dark:!1,brand:"ArcBlock",copyStart:"2017",className:"",style:{},addon:null};const Xo=v("div",{shouldForwardProp:e=>e!=="dark"})`
|
|
144
144
|
position: relative;
|
|
145
145
|
margin-top: 64px;
|
|
146
146
|
padding: 24px 0 32px;
|
|
@@ -200,7 +200,7 @@ import{aB as Pe,aA as ze,aC as ee,ae as Ne,aD as W,aF as P,r as l,aJ as Ce,aE as
|
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
`,
|
|
203
|
+
`,Jo=v("div")`
|
|
204
204
|
&.dashboard {
|
|
205
205
|
display: flex;
|
|
206
206
|
flex-direction: column;
|
|
@@ -228,7 +228,7 @@ import{aB as Pe,aA as ze,aC as ee,ae as Ne,aD as W,aF as P,r as l,aJ as Ce,aE as
|
|
|
228
228
|
box-shadow: 2px 16px 10px 0 rgba(0, 0, 0, ${e=>e.theme.mode==="light"?.05:.5});
|
|
229
229
|
border: 0;
|
|
230
230
|
}
|
|
231
|
-
`;function fe({children:e,title:r,brand:
|
|
231
|
+
`;function fe({children:e,title:r,brand:n,description:a,brandAddon:s,headerAddon:p,images:d,links:i,prefix:u,fullWidth:l,contentLayout:h,className:m,homeUrl:j,logo:y,...z}){const b=io(document.body),N=(b==null?void 0:b.width)||0,[w,M]=c.useState(N>=960?"permanent":"temporary"),[R,I]=c.useState(w==="permanent");c.useEffect(()=>{const _=N>=960?"permanent":"temporary";M(_),I(_!=="temporary")},[N]);const k=()=>{I(!R)},$=l||h==="row";return o.jsxs(Jo,{className:`dashboard ${m}`,...z,children:[o.jsx(Te,{title:`${r}-${n}`}),o.jsx(me,{className:"dashboard__header",onToggleMenu:k,brand:n,brandAddon:s,description:a,addons:p,homeUrl:j,logo:y}),o.jsxs(C,{display:"flex",className:"dashboard__body",children:[o.jsx(De,{variant:w,className:"drawer",classes:{paper:"drawerPaper"},open:R,onClose:k,ModalProps:{disablePortal:!0,keepMounted:!0},children:o.jsx(he,{className:"dashboard__sidebar",images:d,links:i,prefix:u,logo:y})}),o.jsxs(C,{className:"dashboard__main",children:[o.jsx(S,{maxWidth:$?!1:"lg",className:"dashboard__content",children:e}),o.jsx(H,{})]})]})]})}fe.propTypes={children:t.any.isRequired,title:t.string,brand:t.string.isRequired,links:t.array.isRequired,images:t.object.isRequired,brandAddon:t.object,description:t.any.isRequired,headerAddon:t.any,prefix:t.string,contentLayout:t.oneOf(["row","column"]),fullWidth:t.bool,className:t.string,homeUrl:t.string,logo:t.any};fe.defaultProps={title:"Home",contentLayout:"column",headerAddon:null,brandAddon:null,prefix:"/images",fullWidth:!1,className:"",homeUrl:"/",logo:null};function Ee({height:e,...r}){return o.jsx(Qo,{height:e,...r})}Ee.propTypes={height:t.oneOfType([t.number,t.string]).isRequired};const Qo=v(C)`
|
|
232
232
|
overflow: hidden;
|
|
233
233
|
&:before {
|
|
234
234
|
content: '';
|
|
@@ -241,7 +241,7 @@ import{aB as Pe,aA as ze,aC as ee,ae as Ne,aD as W,aF as P,r as l,aJ as Ce,aE as
|
|
|
241
241
|
float: left;
|
|
242
242
|
white-space: nowrap;
|
|
243
243
|
}
|
|
244
|
-
`;function V({logo:e,brand:r,brandAddon:
|
|
244
|
+
`;function V({logo:e,brand:r,brandAddon:n,description:a,children:s,addons:p,prepend:d,align:i,maxWidth:u,homeLink:l,...h}){const m=c.useRef(),[j,y]=c.useState("0px"),z={minWidth:j};c.useEffect(()=>{m.current&&y(`${m.current.offsetWidth}px`)},[]);const g=()=>{const b=o.jsxs(o.Fragment,{children:[e&&o.jsx("div",{className:"header-logo",ref:m,children:e}),r&&o.jsx(Ee,{height:44,sx:{flexShrink:{xs:1}},children:o.jsxs("div",{className:"header-brand",children:[o.jsx("div",{className:"header-brand-title",children:o.jsx("h2",{children:r})}),o.jsx("div",{className:"header-brand-desc",children:a})]})})]});return typeof l=="function"?l(b):o.jsx("a",{href:l,children:b})};return o.jsx(Zo,{...h,children:o.jsxs(S,{maxWidth:u,className:"header-container",children:[d,o.jsx("div",{className:"header-brand-wrapper",style:z,children:g()}),o.jsx("div",{className:"header-brand-addon",children:n}),i==="right"&&o.jsx(C,{flexGrow:1}),s,i==="left"&&o.jsx(C,{flexGrow:1}),o.jsx("div",{className:"header-addons",children:p})]})})}V.propTypes={logo:t.node,brand:t.node,brandAddon:t.node,description:t.node,children:t.node,addons:t.node,prepend:t.node,align:t.oneOf(["left","right"]),maxWidth:t.oneOfType([t.string,t.oneOf(["xs","sm","md","lg","xl",!1])]),homeLink:t.oneOfType([t.string,t.func])};V.defaultProps={logo:null,brand:null,brandAddon:null,description:null,children:null,addons:null,prepend:null,align:"left",maxWidth:void 0,homeLink:"/"};const Zo=v("div")`
|
|
245
245
|
position: relative;
|
|
246
246
|
z-index: ${e=>e.theme.zIndex.appBar};
|
|
247
247
|
font-size: 14px;
|
|
@@ -337,7 +337,7 @@ import{aB as Pe,aA as ze,aC as ee,ae as Ne,aD as W,aF as P,r as l,aJ as Ce,aE as
|
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
`;function ge({menu:e,prepend:r,children:
|
|
340
|
+
`;function ge({menu:e,prepend:r,children:n,...a}){const s=oe(),p=lo(s.breakpoints.down("md")),[d,i]=c.useState(!1),u=typeof n=="function"?n({isMobile:p,closeMenu:()=>i(!1)}):n,l=co({changed:!1,value:"",priority:""});return po(()=>{var h;if((h=document.documentElement)!=null&&h.style){const m=()=>{l.changed&&(l.value?document.documentElement.style.setProperty("overflow",l.value,l.priority):document.documentElement.style.removeProperty("overflow"),l.value="",l.priority="",l.changed=!1)};return d?(l.changed=!0,l.value=document.documentElement.style.getPropertyValue("overflow"),l.priority=document.documentElement.style.getPropertyPriority("overflow"),document.documentElement.style.setProperty("overflow","hidden","important")):m(),m}return()=>{}},[d]),n?o.jsxs(Ko,{prepend:r||o.jsx(Re,{sx:{color:s.palette.grey[500]},edge:"start",className:"header-menu","aria-label":"header menu button",onClick:()=>i(!d),children:d?o.jsx(uo,{}):o.jsx(re,{})}),...a,children:[!p&&u,p&&o.jsx(De,{open:d,onClose:()=>i(!1),ModalProps:{disablePortal:!1,keepMounted:!0,BackdropComponent:null},anchor:"top",sx:{top:64,zIndex:s.zIndex.appBar-1},PaperProps:{style:{top:64,bottom:0,boxShadow:"none"}},children:o.jsx(er,{children:u})})]}):o.jsx(V,{prepend:r,...a})}ge.propTypes={...V.PropTypes,children:t.oneOfType([t.node,t.func])};ge.defaultProps={...V.defaultProps};const Ko=v(V)`
|
|
341
341
|
.header-menu {
|
|
342
342
|
display: none;
|
|
343
343
|
}
|
|
@@ -347,7 +347,7 @@ import{aB as Pe,aA as ze,aC as ee,ae as Ne,aD as W,aF as P,r as l,aJ as Ce,aE as
|
|
|
347
347
|
margin-right: 12px;
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
`,
|
|
350
|
+
`,er=v(S)`
|
|
351
351
|
padding-top: 8px;
|
|
352
352
|
padding-bottom: 16px;
|
|
353
353
|
.navmenu {
|
|
@@ -433,7 +433,7 @@ import{aB as Pe,aA as ze,aC as ee,ae as Ne,aD as W,aF as P,r as l,aJ as Ce,aE as
|
|
|
433
433
|
transition: transform 0.2s ease-in-out;
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
`,
|
|
436
|
+
`,or=v(Se)`
|
|
437
437
|
padding: 8px 16px;
|
|
438
438
|
min-width: 50px;
|
|
439
439
|
flex-grow: 1;
|
|
@@ -480,7 +480,7 @@ import{aB as Pe,aA as ze,aC as ee,ae as Ne,aD as W,aF as P,r as l,aJ as Ce,aE as
|
|
|
480
480
|
display: block;
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
`,
|
|
483
|
+
`,rr=v(Se)`
|
|
484
484
|
font-size: 16px;
|
|
485
485
|
.navmenu-root {
|
|
486
486
|
display: flex;
|
|
@@ -532,7 +532,7 @@ import{aB as Pe,aA as ze,aC as ee,ae as Ne,aD as W,aF as P,r as l,aJ as Ce,aE as
|
|
|
532
532
|
.navmenu-sub--opened > .navmenu-sub-container {
|
|
533
533
|
display: block;
|
|
534
534
|
}
|
|
535
|
-
`,be=
|
|
535
|
+
`,be=c.createContext();function Ue(e){return e?c.Children.toArray(e).filter(r=>r.type===Y||r.type===O):null}function Ge(e){return c.useRef(e||`navmenu-item-id-${Math.random().toString(36).slice(2)}`).current}function G({items:e,mode:r,children:n,activeId:a,textColor:s,activeTextColor:p,bgColor:d,onSelected:i,...u}){var q;if(n=Ue(n),!(e!=null&&e.length)&&!(n!=null&&n.length))throw new Error("One of 'items' or 'children' is required by NavMenu component.");const[l,h]=c.useState({activeId:a,openedIds:[]}),m=c.useCallback(x=>{h(f=>({...f,activeId:x})),i==null||i(x)},[i]),j=c.useCallback(x=>{h(f=>({...f,openedIds:[...f.openedIds,x]}))},[]),y=c.useCallback(x=>{h(f=>({...f,openedIds:f.openedIds.filter(L=>L!==x)}))},[]),z=c.useMemo(()=>({...l,mode:r,activate:m,open:j,close:y}),[l,r,m,j,y]),[g,b]=c.useState(0),N=c.useRef(),w=c.useRef([]),M=c.useRef(),R=g===((q=w.current)==null?void 0:q.length),I=R?o.jsx(re,{}):o.jsx(go,{}),k=R?{marginLeft:"0px"}:void 0,$=x=>c.Children.map(x,(f,L)=>c.cloneElement(f,{ref:D=>{w.current[L]=D}})),_=ho(()=>{var je;let x=0,f=0,L=!1;const D=((je=N.current)==null?void 0:je.offsetWidth)||0,ne=M.current?M.current.offsetWidth+parseFloat(window.getComputedStyle(M.current).marginLeft):0;w.current.forEach((E,Ze)=>{if(E){E.style.display="flex";const Ke=Ze>0?parseFloat(window.getComputedStyle(E).marginLeft):0,we=E.offsetWidth+Ke;D-ne>=x+we&&!L?x+=we:(E.style.display="none",L=!0,f++)}}),f!==g&&b(f)});c.useEffect(()=>{if(r==="horizontal")return _(),window.addEventListener("resize",_),()=>{window.removeEventListener("resize",_)}},[r]),c.useEffect(()=>{a!=null&&h(x=>({...x,activeId:a}))},[a]);const ye=T("navmenu",`navmenu--${r}`,u.className),B=(x,f,L=!1)=>x!=null&&x.children?o.jsx(O,{id:x.id,icon:x.icon,label:x.label,ref:L?D=>{w.current[f]=D}:void 0,children:x.children.map((D,ne)=>B(D,ne,!1))},f):o.jsx(Y,{id:x.id,icon:x.icon,label:x.label,active:x.active,ref:L?D=>{w.current[f]=D}:void 0},f),A=e?e==null?void 0:e.slice(-g).map((x,f)=>B(x,f)):n==null?void 0:n.slice(-g),J=r==="inline"?rr:or;return o.jsx(be.Provider,{value:z,children:o.jsx(J,{...u,className:ye,$textColor:s,$activeTextColor:p,$bgColor:d,children:o.jsxs("ul",{className:"navmenu-root",ref:N,children:[e?e.map((x,f)=>B(x,f,!0)):$(n),g>0&&o.jsx(O,{expandIcon:!1,icon:I,label:"",ref:M,style:k,children:A})]})})})}G.propTypes={items:t.array,mode:t.oneOf(["horizontal","vertical","inline"]),children:t.array,activeId:t.string,textColor:t.string,activeTextColor:t.string,bgColor:t.string,onSelected:t.func};G.defaultProps={items:null,mode:"horizontal",children:null,activeId:null,textColor:"#9397a1",activeTextColor:"#25292f",bgColor:"#fff",onSelected:null};const Y=c.forwardRef(({id:e,icon:r,label:n,active:a,onClick:s,...p},d)=>{const i=Ge(e),{activeId:u,activate:l}=c.useContext(be),h=T("navmenu-item",{"navmenu-item--active":u===i},p.className);c.useEffect(()=>{a&&l(i)},[a]);const m=()=>{s==null||s(),l(i)};return o.jsxs("li",{...p,className:h,onClick:m,ref:d,children:[r&&o.jsx("span",{className:"navmenu-item-icon",children:r}),o.jsx("span",{className:"navmenu-item-label",children:n})]})});Y.propTypes={id:t.string,icon:t.element,label:t.node,active:t.bool,onClick:t.func};Y.defaultProps={id:null,icon:null,label:"",active:!1,onClick:null};const O=c.forwardRef(({id:e,icon:r,label:n,children:a,expandIcon:s,...p},d)=>{const i=Ge(e),{openedIds:u,open:l,close:h,mode:m}=c.useContext(be),j=u.includes(i),y=T("navmenu-sub",{"navmenu-sub--opened":j},p.className),z=m==="inline",g=z?{onClick:()=>u.includes(i)?h(i):l(i)}:{onMouseEnter:()=>l(i),onMouseLeave:()=>h(i)},b=z?{onClick:N=>N.stopPropagation()}:{};return o.jsxs("li",{...p,className:y,...g,ref:d,children:[r&&o.jsx("span",{className:"navmenu-sub-icon",children:r}),o.jsx("span",{className:"navmenu-sub-label",children:n}),s&&o.jsx("span",{className:"navmenu-sub-expand-icon",children:(s==null?void 0:s({isOpen:j}))||s}),o.jsx("div",{className:"navmenu-sub-container",...b,children:o.jsx("ul",{className:"navmenu-sub-list",children:Ue(a)})})]})});O.propTypes={id:t.string,icon:t.element,label:t.node.isRequired,children:t.array.isRequired,expandIcon:t.oneOfType([t.node,t.func])};O.defaultProps={id:null,icon:null,expandIcon:({isOpen:e})=>o.jsx(bo,{style:{transform:`rotate(${e?180:0}deg)`}})};G.Item=Y;G.Sub=O;function te({children:e,routerLinkComponent:r,to:n,external:a,...s}){return a?o.jsx("a",{href:n,...s,children:e}):o.jsx(r,{to:n,...s,children:e})}te.propTypes={children:t.any.isRequired,routerLinkComponent:t.elementType.isRequired,external:t.bool,to:t.oneOfType([t.string,t.object]).isRequired};te.defaultProps={external:!1};function Ye(e){return o.jsx(te,{routerLinkComponent:Z,...e})}function ve({className:e,...r}){const n=r.external&&typeof e=="function"?e({}):e;return o.jsx(te,{routerLinkComponent:xo,className:n,...r})}ve.propTypes={className:t.oneOfType([t.string,t.func])};ve.defaultProps={className:""};function tr(e,r){return o.jsxs("li",{className:"layout-sidebar-group",children:[o.jsx("span",{className:"layout-sidebar-group-title",children:e.title}),o.jsx("ul",{children:e.children.map(Xe)})]},`group-${e.title}-${r}`)}function Xe(e,r){var u;if((u=e.children)!=null&&u.length)return tr(e,r);const{url:n,icon:a,title:s,showBadge:p,external:d,active:i}=e;return o.jsx("li",{className:"layout-sidebar-item",children:o.jsxs(ve,{external:d,to:n,className:({isActive:l})=>T("layout-sidebar-link",{"layout-sidebar-link--active":d?i:l}),children:[a&&o.jsx("span",{className:`layout-sidebar-icon ${p?"layout-sidebar-badge":""}`,children:a}),o.jsx(F,{component:"span",className:"layout-sidebar-link-text",children:s})]})},`${n}-${r}`)}function K({links:e,addons:r,dense:n,...a}){return o.jsxs(ar,{...a,className:T({"layout-sidebar-dense":n}),children:[o.jsx("ul",{children:e.map(Xe)}),o.jsx("div",{style:{flex:1}}),r]})}K.propTypes={links:t.array.isRequired,addons:t.any,dense:t.bool};K.defaultProps={addons:null,dense:!1};const nr="linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))",ar=v("div")`
|
|
536
536
|
display: flex;
|
|
537
537
|
flex-direction: column;
|
|
538
538
|
ul {
|
|
@@ -551,7 +551,7 @@ import{aB as Pe,aA as ze,aC as ee,ae as Ne,aD as W,aF as P,r as l,aJ as Ce,aE as
|
|
|
551
551
|
&:hover,
|
|
552
552
|
&.layout-sidebar-link--active {
|
|
553
553
|
color: ${e=>e.theme.palette.primary.main};
|
|
554
|
-
background: ${
|
|
554
|
+
background: ${nr};
|
|
555
555
|
border-left-color: ${se.A700};
|
|
556
556
|
}
|
|
557
557
|
}
|
|
@@ -655,7 +655,7 @@ import{aB as Pe,aA as ze,aC as ee,ae as Ne,aD as W,aF as P,r as l,aJ as Ce,aE as
|
|
|
655
655
|
margin-top: 16px;
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
|
-
`;function
|
|
658
|
+
`;function sr({closeMenu:e,...r}){const n=de();return c.useEffect(()=>{e()},[n]),o.jsx(G,{...r})}function Je(e,r){return e.map(n=>{var a;return(a=n.children)!=null&&a.length?{...n,label:n.title,children:Je(n.children,r)}:{...n,label:o.jsx(Ye,{to:n.url,external:n.external,children:n.title}),active:n.external?n.active:!!mo({path:n.url,end:!1},r.pathname)}})}function X({children:e,title:r,headerProps:n,links:a=[],fullWidth:s,dense:p,footerProps:d,...i}){const u=oe(),{inFullPage:l,showToggleButton:h,headerVisible:m,footerVisible:j,sidebarVisible:y,toggleFullPage:z}=Lo(),g=de(),b=c.useMemo(()=>Je(a,g),[g,a]),N=b.some(k=>{var $;return!!(($=k.children)!=null&&$.length)}),w=p==="auto"?b.length>=8||N:p,M=T("dashboard",{"dashboard-dense":w},i.className),I={homeLink:k=>{var $;return o.jsx(Ye,{to:(($=window.blocklet)==null?void 0:$.prefix)||"/",children:k})},...n};return o.jsxs(ir,{...i,className:M,children:[o.jsx(Te,{title:r},r),m&&o.jsx(lr,{...I,className:"dashboard-header",children:a!=null&&a.length?({isMobile:k,closeMenu:$})=>k?o.jsx(sr,{mode:"inline",items:b,closeMenu:$,bgColor:"transparent",activeTextColor:u.palette.primary.main}):null:null}),o.jsxs(C,{display:"flex",className:"dashboard-body",children:[o.jsx(Be,{mdDown:!0,children:!!(a!=null&&a.length)&&y&&o.jsx(C,{className:"dashboard-sidebar",children:w?o.jsx(K,{links:a,dense:w}):o.jsx(C,{className:"dashboard-sidebar-container",children:o.jsx(K,{links:a,dense:w})})})}),o.jsxs(C,{className:"dashboard-main",children:[h&&o.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:z,children:l?o.jsx(We,{style:{fontSize:18}}):o.jsx(Fe,{style:{fontSize:18}})}),o.jsx(S,{className:"dashboard-content",...s&&{maxWidth:!1},children:e}),j&&o.jsx(H,{...d})]})]})]})}X.propTypes={children:t.any.isRequired,title:t.string,links:t.array.isRequired,headerProps:t.object,fullWidth:t.bool,sidebarWidth:t.number,dense:t.oneOf([!0,!1,"auto"])};X.defaultProps={title:"Home",headerProps:{},fullWidth:!1,sidebarWidth:120,dense:"auto"};const ir=v("div",{shouldForwardProp:e=>e!=="sidebarWidth"})`
|
|
659
659
|
&.dashboard {
|
|
660
660
|
display: flex;
|
|
661
661
|
flex-direction: column;
|
|
@@ -708,8 +708,8 @@ import{aB as Pe,aA as ze,aC as ee,ae as Ne,aD as W,aF as P,r as l,aJ as Ce,aE as
|
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
-
`,
|
|
711
|
+
`,lr=v(ge)`
|
|
712
712
|
.header-container {
|
|
713
713
|
max-width: 100%;
|
|
714
714
|
}
|
|
715
|
-
`;function Qe({legacy:e,...r}){return e?o.jsx(fe,{...r}):o.jsx(_e,{children:o.jsx(X,{...r})})}Qe.propTypes={...X.propTypes,legacy:
|
|
715
|
+
`;function Qe({legacy:e,...r}){return e?o.jsx(fe,{...r}):o.jsx(_e,{children:o.jsx(X,{...r})})}Qe.propTypes={...X.propTypes,legacy:t.bool,footerProps:t.shape(H.propTypes)};Qe.defaultProps={...X.defaultProps,legacy:!0};export{Qe as D,G as N,ge as R,Lo as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aA as vt,aB as mt,aC as D,cD as jt,aD as Ht,aF as p,r as d,aJ as St,aE as at,aH as N,j as u,aI as gt,ao as At,cy as ae,cE as Ot,cF as Dt,cG as Xt,aG as st,bm as ie,cH as ft,cI as ce,c1 as de,K as $,P as W}from"./index-fG25goIy.js";let U;function _t(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ue(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(_t()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function be(t){return mt("MuiTab",t)}const pe=vt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),O=pe,fe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],he=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:n,icon:a,label:v,selected:h,disabled:b}=t,g={root:["root",a&&v&&"labelIcon",`textColor${Ht(l)}`,s&&"fullWidth",n&&"wrapped",h&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return gt(g,be,e)},ve=D(jt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${Ht(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>p({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${O.iconWrapper}`]:p({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${O.selected}`]:{opacity:1},[`&.${O.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${O.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${O.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${O.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${O.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),me=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:v=!1,fullWidth:h,icon:b,iconPosition:g="top",indicator:B,label:y,onChange:m,onClick:T,onFocus:L,selected:w,selectionFollowsFocus:x,textColor:X="inherit",value:R,wrapped:it=!1}=s,_=at(s,fe),V=p({},s,{disabled:a,disableFocusRipple:v,selected:w,icon:!!b,iconPosition:g,label:!!y,fullWidth:h,textColor:X,wrapped:it}),q=he(V),F=b&&y&&d.isValidElement(b)?d.cloneElement(b,{className:N(q.iconWrapper,b.props.className)}):b,tt=E=>{!w&&m&&m(E,R),T&&T(E)},K=E=>{x&&!w&&m&&m(E,R),L&&L(E)};return u.jsxs(ve,p({focusRipple:!v,className:N(q.root,n),ref:l,role:"tab","aria-selected":w,disabled:a,onClick:tt,onFocus:K,ownerState:V,tabIndex:w?0:-1},_,{children:[g==="top"||g==="start"?u.jsxs(d.Fragment,{children:[F,y]}):u.jsxs(d.Fragment,{children:[y,F]}),B]}))}),xt=me,Se=At(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ge=At(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function xe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ye(t,e,l,s={},n=()=>{}){const{ease:a=xe,duration:v=300}=s;let h=null;const b=e[t];let g=!1;const B=()=>{g=!0},y=m=>{if(g){n(new Error("Animation cancelled"));return}h===null&&(h=m);const T=Math.min(1,(m-h)/v);if(e[t]=a(T)*(l-b)+b,T>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(y)};return b===l?(n(new Error("Element already at target position")),B):(requestAnimationFrame(y),B)}const Ce=["onChange"],Be={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Te(t){const{onChange:e}=t,l=at(t,Ce),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return ae(()=>{const v=Ot(()=>{const b=s.current;a(),b!==s.current&&e(s.current)}),h=Dt(n.current);return h.addEventListener("resize",v),()=>{v.clear(),h.removeEventListener("resize",v)}},[e]),d.useEffect(()=>{a(),e(s.current)},[e]),u.jsx("div",p({style:Be,ref:n},l))}function we(t){return mt("MuiTabScrollButton",t)}const Me=vt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Ie=Me,Re=["className","slots","slotProps","direction","orientation","disabled"],Ee=t=>{const{classes:e,orientation:l,disabled:s}=t;return gt({root:["root",l,s&&"disabled"]},we,e)},ze=D(jt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>p({width:40,flexShrink:0,opacity:.8,[`&.${Ie.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),We=d.forwardRef(function(e,l){var s,n;const a=St({props:e,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:b={},direction:g}=a,B=at(a,Re),y=Xt(),m=p({isRtl:y},a),T=Ee(m),L=(s=h.StartScrollButtonIcon)!=null?s:Se,w=(n=h.EndScrollButtonIcon)!=null?n:ge,x=st({elementType:L,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),X=st({elementType:w,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return u.jsx(ze,p({component:"div",className:N(T.root,v),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:g==="left"?u.jsx(L,p({},x)):u.jsx(w,p({},X))}))}),Pe=We;function ke(t){return mt("MuiTabs",t)}const Ne=vt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ht=Ne,$e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Nt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,$t=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,nt=(t,e,l)=>{let s=!1,n=l(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(t,n);else{n.focus();return}}},Le=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:v,scrollButtonsHideMobile:h,classes:b}=t;return gt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},ke,b)},Fe=D("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${ht.scrollButtons}`]:e.scrollButtons},{[`& .${ht.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>p({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${ht.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),je=D("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>p({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),He=D("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>p({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),Ae=D("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>p({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),Oe=D(Te)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Lt={},De=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTabs"}),n=ie(),a=Xt(),{"aria-label":v,"aria-labelledby":h,action:b,centered:g=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:T=!1,indicatorColor:L="primary",onChange:w,orientation:x="horizontal",ScrollButtonComponent:X=Pe,scrollButtons:R="auto",selectionFollowsFocus:it,slots:_={},slotProps:V={},TabIndicatorProps:q={},TabScrollButtonProps:F={},textColor:tt="primary",value:K,variant:E="standard",visibleScrollbar:ct=!1}=s,Ut=at(s,$e),M=E==="scrollable",C=x==="vertical",G=C?"scrollTop":"scrollLeft",et=C?"top":"left",ot=C?"bottom":"right",dt=C?"clientHeight":"clientWidth",J=C?"height":"width",j=p({},s,{component:m,allowScrollButtonsMobile:T,indicatorColor:L,orientation:x,vertical:C,scrollButtons:R,textColor:tt,variant:E,visibleScrollbar:ct,fixed:!M,hideScrollbar:M&&!ct,scrollableX:M&&!C,scrollableY:M&&C,centered:g&&!M,scrollButtonsHideMobile:!T}),P=Le(j),Yt=st({elementType:_.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:j}),Vt=st({elementType:_.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:j}),[Ct,Gt]=d.useState(!1),[H,Bt]=d.useState(Lt),[Tt,Jt]=d.useState(!1),[wt,Qt]=d.useState(!1),[Mt,Zt]=d.useState(!1),[It,te]=d.useState({overflow:"hidden",scrollbarWidth:0}),Rt=new Map,z=d.useRef(null),A=d.useRef(null),Et=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ue(o,a?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&K!==!1){const i=A.current.children;if(i.length>0){const f=i[Rt.get(K)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},Q=ft(()=>{const{tabsMeta:o,tabMeta:r}=Et();let c=0,i;if(C)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=a?"right":"left",r&&o){const S=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(r[i]-o[i]+S)}const f={[i]:c,[J]:r?r[J]:0};if(isNaN(H[i])||isNaN(H[J]))Bt(f);else{const S=Math.abs(H[i]-f[i]),I=Math.abs(H[J]-f[J]);(S>=1||I>=1)&&Bt(f)}}),ut=(o,{animation:r=!0}={})=>{r?ye(G,z.current,o,{duration:n.transitions.duration.standard}):z.current[G]=o},zt=o=>{let r=z.current[G];C?r+=o:(r+=o*(a?-1:1),r*=a&&_t()==="reverse"?-1:1),ut(r)},Wt=()=>{const o=z.current[dt];let r=0;const c=Array.from(A.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(r+f[dt]>o){i===0&&(r=o);break}r+=f[dt]}return r},ee=()=>{zt(-1*Wt())},oe=()=>{zt(Wt())},le=d.useCallback(o=>{te({overflow:null,scrollbarWidth:o})},[]),re=()=>{const o={};o.scrollbarSizeListener=M?u.jsx(Oe,{onChange:le,className:N(P.scrollableX,P.hideScrollbar)}):null;const c=M&&(R==="auto"&&(Tt||wt)||R===!0);return o.scrollButtonStart=c?u.jsx(X,p({slots:{StartScrollButtonIcon:_.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Yt},orientation:x,direction:a?"right":"left",onClick:ee,disabled:!Tt},F,{className:N(P.scrollButtons,F.className)})):null,o.scrollButtonEnd=c?u.jsx(X,p({slots:{EndScrollButtonIcon:_.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Vt},orientation:x,direction:a?"left":"right",onClick:oe,disabled:!wt},F,{className:N(P.scrollButtons,F.className)})):null,o},Pt=ft(o=>{const{tabsMeta:r,tabMeta:c}=Et();if(!(!c||!r)){if(c[et]<r[et]){const i=r[G]+(c[et]-r[et]);ut(i,{animation:o})}else if(c[ot]>r[ot]){const i=r[G]+(c[ot]-r[ot]);ut(i,{animation:o})}}}),lt=ft(()=>{M&&R!==!1&&Zt(!Mt)});d.useEffect(()=>{const o=Ot(()=>{z.current&&Q()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(Z=>{var k;(k=r)==null||k.unobserve(Z)}),I.addedNodes.forEach(Z=>{var k;(k=r)==null||k.observe(Z)})}),o(),lt()},i=Dt(z.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(A.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(A.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=f)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[Q,lt]),d.useEffect(()=>{const o=Array.from(A.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&R!==!1){const c=o[0],i=o[r-1],f={root:z.current,threshold:.99},S=pt=>{Jt(!pt[0].isIntersecting)},I=new IntersectionObserver(S,f);I.observe(c);const Z=pt=>{Qt(!pt[0].isIntersecting)},k=new IntersectionObserver(Z,f);return k.observe(i),()=>{I.disconnect(),k.disconnect()}}},[M,R,Mt,B==null?void 0:B.length]),d.useEffect(()=>{Gt(!0)},[]),d.useEffect(()=>{Q()}),d.useEffect(()=>{Pt(Lt!==H)},[Pt,H]),d.useImperativeHandle(b,()=>({updateIndicator:Q,updateScrollButtons:lt}),[Q,lt]);const kt=u.jsx(Ae,p({},q,{className:N(P.indicator,q.className),ownerState:j,style:p({},H,q.style)}));let rt=0;const ne=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?rt:o.props.value;Rt.set(r,rt);const c=r===K;return rt+=1,d.cloneElement(o,p({fullWidth:E==="fullWidth",indicator:c&&!Ct&&kt,selected:c,selectionFollowsFocus:it,onChange:w,textColor:tt,value:r},rt===1&&K===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),se=o=>{const r=A.current,c=ce(r).activeElement;if(c.getAttribute("role")!=="tab")return;let f=x==="horizontal"?"ArrowLeft":"ArrowUp",S=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(f="ArrowRight",S="ArrowLeft"),o.key){case f:o.preventDefault(),nt(r,c,$t);break;case S:o.preventDefault(),nt(r,c,Nt);break;case"Home":o.preventDefault(),nt(r,null,Nt);break;case"End":o.preventDefault(),nt(r,null,$t);break}},bt=re();return u.jsxs(Fe,p({className:N(P.root,y),ownerState:j,ref:l,as:m},Ut,{children:[bt.scrollButtonStart,bt.scrollbarSizeListener,u.jsxs(je,{className:P.scroller,ownerState:j,style:{overflow:It.overflow,[C?`margin${a?"Left":"Right"}`:"marginBottom"]:ct?void 0:-It.scrollbarWidth},ref:z,children:[u.jsx(He,{"aria-label":v,"aria-labelledby":h,"aria-orientation":x==="vertical"?"vertical":null,className:P.flexContainer,ownerState:j,onKeyDown:se,ref:A,role:"tablist",children:ne}),Ct&&kt]}),bt.scrollButtonEnd]}))}),yt=De,Ft="index",Y={tabs:`${Ft}-tabs`,tab:`${Ft}-tab`},Xe=de(yt)(({theme:t})=>({[`& .${Y.tabs}`]:{},[`& .${Y.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function qt({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:$.backgroundsBgComponent,padding:.5,display:"inline-flex",columnGap:.25},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:$.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:$.lineBorderBase,color:$.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}qt.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function Kt({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{"&::after":{content:'""',display:"block",width:"100%",height:"1px",backgroundColor:$.strokeBorderStrong,bottom:0}},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:$.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:$.foregroundsFgBase}},".MuiTabs-indicator":{height:"1px",backgroundColor:$.foregroundsFgBase},...s.sx},children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}Kt.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function _e({tabs:t,current:e,onChange:l,...s}){return s.variant==="card"?u.jsx(qt,{...s,tabs:t,current:e,onChange:l}):s.variant==="line"?u.jsx(Kt,{...s,tabs:t,current:e,onChange:l}):u.jsx(Xe,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(n,a)=>l(a),indicatorColor:"primary",...s,className:[Y.tabs,s.className||""].join(" "),children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}_e.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};export{ge as K,_e as T,Se as a,yt as b,xt as c,ht as t};
|
|
1
|
+
import{aA as vt,aB as mt,aC as X,cE as jt,aD as Ht,aF as p,r as d,aJ as St,aE as at,aH as N,j as u,aI as gt,ao as At,cz as ae,cF as Ot,cG as Xt,cH as Dt,aG as st,bn as ie,cI as ft,cJ as ce,c2 as de,K as $,P as W}from"./index-DCUaLmts.js";let U;function _t(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ue(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(_t()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function be(t){return mt("MuiTab",t)}const pe=vt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),O=pe,fe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],he=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:n,icon:a,label:v,selected:h,disabled:b}=t,g={root:["root",a&&v&&"labelIcon",`textColor${Ht(l)}`,s&&"fullWidth",n&&"wrapped",h&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return gt(g,be,e)},ve=X(jt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${Ht(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>p({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${O.iconWrapper}`]:p({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${O.selected}`]:{opacity:1},[`&.${O.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${O.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${O.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${O.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${O.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),me=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:v=!1,fullWidth:h,icon:b,iconPosition:g="top",indicator:B,label:y,onChange:m,onClick:T,onFocus:L,selected:w,selectionFollowsFocus:x,textColor:D="inherit",value:R,wrapped:it=!1}=s,_=at(s,fe),V=p({},s,{disabled:a,disableFocusRipple:v,selected:w,icon:!!b,iconPosition:g,label:!!y,fullWidth:h,textColor:D,wrapped:it}),q=he(V),F=b&&y&&d.isValidElement(b)?d.cloneElement(b,{className:N(q.iconWrapper,b.props.className)}):b,tt=E=>{!w&&m&&m(E,R),T&&T(E)},K=E=>{x&&!w&&m&&m(E,R),L&&L(E)};return u.jsxs(ve,p({focusRipple:!v,className:N(q.root,n),ref:l,role:"tab","aria-selected":w,disabled:a,onClick:tt,onFocus:K,ownerState:V,tabIndex:w?0:-1},_,{children:[g==="top"||g==="start"?u.jsxs(d.Fragment,{children:[F,y]}):u.jsxs(d.Fragment,{children:[y,F]}),B]}))}),xt=me,Se=At(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ge=At(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function xe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ye(t,e,l,s={},n=()=>{}){const{ease:a=xe,duration:v=300}=s;let h=null;const b=e[t];let g=!1;const B=()=>{g=!0},y=m=>{if(g){n(new Error("Animation cancelled"));return}h===null&&(h=m);const T=Math.min(1,(m-h)/v);if(e[t]=a(T)*(l-b)+b,T>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(y)};return b===l?(n(new Error("Element already at target position")),B):(requestAnimationFrame(y),B)}const Ce=["onChange"],Be={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Te(t){const{onChange:e}=t,l=at(t,Ce),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return ae(()=>{const v=Ot(()=>{const b=s.current;a(),b!==s.current&&e(s.current)}),h=Xt(n.current);return h.addEventListener("resize",v),()=>{v.clear(),h.removeEventListener("resize",v)}},[e]),d.useEffect(()=>{a(),e(s.current)},[e]),u.jsx("div",p({style:Be,ref:n},l))}function we(t){return mt("MuiTabScrollButton",t)}const Me=vt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Ie=Me,Re=["className","slots","slotProps","direction","orientation","disabled"],Ee=t=>{const{classes:e,orientation:l,disabled:s}=t;return gt({root:["root",l,s&&"disabled"]},we,e)},ze=X(jt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>p({width:40,flexShrink:0,opacity:.8,[`&.${Ie.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),We=d.forwardRef(function(e,l){var s,n;const a=St({props:e,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:b={},direction:g}=a,B=at(a,Re),y=Dt(),m=p({isRtl:y},a),T=Ee(m),L=(s=h.StartScrollButtonIcon)!=null?s:Se,w=(n=h.EndScrollButtonIcon)!=null?n:ge,x=st({elementType:L,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),D=st({elementType:w,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return u.jsx(ze,p({component:"div",className:N(T.root,v),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:g==="left"?u.jsx(L,p({},x)):u.jsx(w,p({},D))}))}),Pe=We;function ke(t){return mt("MuiTabs",t)}const Ne=vt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ht=Ne,$e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Nt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,$t=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,nt=(t,e,l)=>{let s=!1,n=l(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(t,n);else{n.focus();return}}},Le=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:v,scrollButtonsHideMobile:h,classes:b}=t;return gt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},ke,b)},Fe=X("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${ht.scrollButtons}`]:e.scrollButtons},{[`& .${ht.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>p({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${ht.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),je=X("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>p({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),He=X("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>p({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),Ae=X("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>p({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),Oe=X(Te)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Lt={},Xe=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTabs"}),n=ie(),a=Dt(),{"aria-label":v,"aria-labelledby":h,action:b,centered:g=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:T=!1,indicatorColor:L="primary",onChange:w,orientation:x="horizontal",ScrollButtonComponent:D=Pe,scrollButtons:R="auto",selectionFollowsFocus:it,slots:_={},slotProps:V={},TabIndicatorProps:q={},TabScrollButtonProps:F={},textColor:tt="primary",value:K,variant:E="standard",visibleScrollbar:ct=!1}=s,Ut=at(s,$e),M=E==="scrollable",C=x==="vertical",G=C?"scrollTop":"scrollLeft",et=C?"top":"left",ot=C?"bottom":"right",dt=C?"clientHeight":"clientWidth",J=C?"height":"width",j=p({},s,{component:m,allowScrollButtonsMobile:T,indicatorColor:L,orientation:x,vertical:C,scrollButtons:R,textColor:tt,variant:E,visibleScrollbar:ct,fixed:!M,hideScrollbar:M&&!ct,scrollableX:M&&!C,scrollableY:M&&C,centered:g&&!M,scrollButtonsHideMobile:!T}),P=Le(j),Yt=st({elementType:_.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:j}),Vt=st({elementType:_.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:j}),[Ct,Gt]=d.useState(!1),[H,Bt]=d.useState(Lt),[Tt,Jt]=d.useState(!1),[wt,Qt]=d.useState(!1),[Mt,Zt]=d.useState(!1),[It,te]=d.useState({overflow:"hidden",scrollbarWidth:0}),Rt=new Map,z=d.useRef(null),A=d.useRef(null),Et=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ue(o,a?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&K!==!1){const i=A.current.children;if(i.length>0){const f=i[Rt.get(K)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},Q=ft(()=>{const{tabsMeta:o,tabMeta:r}=Et();let c=0,i;if(C)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=a?"right":"left",r&&o){const S=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(r[i]-o[i]+S)}const f={[i]:c,[J]:r?r[J]:0};if(isNaN(H[i])||isNaN(H[J]))Bt(f);else{const S=Math.abs(H[i]-f[i]),I=Math.abs(H[J]-f[J]);(S>=1||I>=1)&&Bt(f)}}),ut=(o,{animation:r=!0}={})=>{r?ye(G,z.current,o,{duration:n.transitions.duration.standard}):z.current[G]=o},zt=o=>{let r=z.current[G];C?r+=o:(r+=o*(a?-1:1),r*=a&&_t()==="reverse"?-1:1),ut(r)},Wt=()=>{const o=z.current[dt];let r=0;const c=Array.from(A.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(r+f[dt]>o){i===0&&(r=o);break}r+=f[dt]}return r},ee=()=>{zt(-1*Wt())},oe=()=>{zt(Wt())},le=d.useCallback(o=>{te({overflow:null,scrollbarWidth:o})},[]),re=()=>{const o={};o.scrollbarSizeListener=M?u.jsx(Oe,{onChange:le,className:N(P.scrollableX,P.hideScrollbar)}):null;const c=M&&(R==="auto"&&(Tt||wt)||R===!0);return o.scrollButtonStart=c?u.jsx(D,p({slots:{StartScrollButtonIcon:_.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Yt},orientation:x,direction:a?"right":"left",onClick:ee,disabled:!Tt},F,{className:N(P.scrollButtons,F.className)})):null,o.scrollButtonEnd=c?u.jsx(D,p({slots:{EndScrollButtonIcon:_.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Vt},orientation:x,direction:a?"left":"right",onClick:oe,disabled:!wt},F,{className:N(P.scrollButtons,F.className)})):null,o},Pt=ft(o=>{const{tabsMeta:r,tabMeta:c}=Et();if(!(!c||!r)){if(c[et]<r[et]){const i=r[G]+(c[et]-r[et]);ut(i,{animation:o})}else if(c[ot]>r[ot]){const i=r[G]+(c[ot]-r[ot]);ut(i,{animation:o})}}}),lt=ft(()=>{M&&R!==!1&&Zt(!Mt)});d.useEffect(()=>{const o=Ot(()=>{z.current&&Q()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(Z=>{var k;(k=r)==null||k.unobserve(Z)}),I.addedNodes.forEach(Z=>{var k;(k=r)==null||k.observe(Z)})}),o(),lt()},i=Xt(z.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(A.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(A.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=f)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[Q,lt]),d.useEffect(()=>{const o=Array.from(A.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&R!==!1){const c=o[0],i=o[r-1],f={root:z.current,threshold:.99},S=pt=>{Jt(!pt[0].isIntersecting)},I=new IntersectionObserver(S,f);I.observe(c);const Z=pt=>{Qt(!pt[0].isIntersecting)},k=new IntersectionObserver(Z,f);return k.observe(i),()=>{I.disconnect(),k.disconnect()}}},[M,R,Mt,B==null?void 0:B.length]),d.useEffect(()=>{Gt(!0)},[]),d.useEffect(()=>{Q()}),d.useEffect(()=>{Pt(Lt!==H)},[Pt,H]),d.useImperativeHandle(b,()=>({updateIndicator:Q,updateScrollButtons:lt}),[Q,lt]);const kt=u.jsx(Ae,p({},q,{className:N(P.indicator,q.className),ownerState:j,style:p({},H,q.style)}));let rt=0;const ne=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?rt:o.props.value;Rt.set(r,rt);const c=r===K;return rt+=1,d.cloneElement(o,p({fullWidth:E==="fullWidth",indicator:c&&!Ct&&kt,selected:c,selectionFollowsFocus:it,onChange:w,textColor:tt,value:r},rt===1&&K===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),se=o=>{const r=A.current,c=ce(r).activeElement;if(c.getAttribute("role")!=="tab")return;let f=x==="horizontal"?"ArrowLeft":"ArrowUp",S=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(f="ArrowRight",S="ArrowLeft"),o.key){case f:o.preventDefault(),nt(r,c,$t);break;case S:o.preventDefault(),nt(r,c,Nt);break;case"Home":o.preventDefault(),nt(r,null,Nt);break;case"End":o.preventDefault(),nt(r,null,$t);break}},bt=re();return u.jsxs(Fe,p({className:N(P.root,y),ownerState:j,ref:l,as:m},Ut,{children:[bt.scrollButtonStart,bt.scrollbarSizeListener,u.jsxs(je,{className:P.scroller,ownerState:j,style:{overflow:It.overflow,[C?`margin${a?"Left":"Right"}`:"marginBottom"]:ct?void 0:-It.scrollbarWidth},ref:z,children:[u.jsx(He,{"aria-label":v,"aria-labelledby":h,"aria-orientation":x==="vertical"?"vertical":null,className:P.flexContainer,ownerState:j,onKeyDown:se,ref:A,role:"tablist",children:ne}),Ct&&kt]}),bt.scrollButtonEnd]}))}),yt=Xe,Ft="index",Y={tabs:`${Ft}-tabs`,tab:`${Ft}-tab`},De=de(yt)(({theme:t})=>({[`& .${Y.tabs}`]:{},[`& .${Y.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function qt({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:$.backgroundsBgComponent,padding:.5,display:"inline-flex",columnGap:.25,maxWidth:"100%",overflowX:"auto"},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:$.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:$.lineBorderBase,color:$.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}qt.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function Kt({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{"&::after":{content:'""',display:"block",width:"100%",height:"1px",backgroundColor:$.strokeBorderStrong,bottom:0}},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:$.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:$.foregroundsFgBase}},".MuiTabs-indicator":{height:"1px",backgroundColor:$.foregroundsFgBase},...s.sx},children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}Kt.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function _e({tabs:t,current:e,onChange:l,...s}){return s.variant==="card"?u.jsx(qt,{...s,tabs:t,current:e,onChange:l}):s.variant==="line"?u.jsx(Kt,{...s,tabs:t,current:e,onChange:l}):u.jsx(De,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(n,a)=>l(a),indicatorColor:"primary",...s,className:[Y.tabs,s.className||""].join(" "),children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}_e.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};export{ge as K,_e as T,Se as a,yt as b,xt as c,ht as t};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{r,aS as d,j as e,b as
|
|
1
|
+
import{r,aS as d,j as e,b as p,ae as M,br as I,ck as z,P as o,bB as S,c2 as m,bq as E}from"./index-DCUaLmts.js";import{d as O}from"./ExpandMore-GvAP3Sct.js";import{B as v}from"./ButtonGroup-Dal5_Jr_.js";function u(s){const{size:f,color:i,menu:a,children:l,variant:h,onClick:x,menuButtonProps:y,...g}=s,[j,c]=r.useState(!1),t=r.useRef(null),k=Array.isArray(a)?a.map((n,b)=>r.isValidElement(n)?n:r.createElement(d,{...n,key:b})):a,B=()=>{c(n=>!n)},C=n=>{t.current&&t.current.contains(n.target)||c(!1)},P=n=>{n.target.closest(".MuiMenuItem-root")&&c(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(A,{variant:h,size:f,color:i,ref:t,...g,children:[typeof l=="function"?l():e.jsx(p,{onClick:x,color:i,children:l}),e.jsx(p,{onClick:B,color:i,...y,"aria-label":"more functions",children:e.jsx(O,{})})]}),e.jsx(L,{open:j,anchorEl:t.current,placement:"bottom-end",disablePortal:!1,children:e.jsx(M,{children:e.jsx(I,{onClickAway:C,children:e.jsx(z,{onClick:P,children:k})})})})]})}u.propTypes={size:o.oneOf(["small","medium","large"]),color:o.oneOf(["primary","secondary","inherit"]),menu:o.oneOfType([o.node,o.array]),children:o.node,variant:o.oneOf(["outlined","contained"]),onClick:o.func,menuButtonProps:o.object};u.defaultProps={size:"medium",color:"primary",menu:[],children:null,variant:"contained",onClick:S,menuButtonProps:{}};u.Item=d;const A=m(v)`
|
|
2
2
|
> .MuiButtonBase-root:last-of-type {
|
|
3
3
|
min-width: 2em;
|
|
4
4
|
padding-left: 0;
|
|
5
5
|
padding-right: 0;
|
|
6
6
|
}
|
|
7
|
-
`,L=m(
|
|
7
|
+
`,L=m(E)`
|
|
8
8
|
z-index: ${s=>s.theme.zIndex.tooltip};
|
|
9
9
|
.MuiList-root {
|
|
10
10
|
padding: 4px 0;
|
|
@@ -13,4 +13,4 @@ import{r,aS as d,j as e,b as u,ae as M,bq as I,cj as z,P as o,bA as S,c1 as m,bp
|
|
|
13
13
|
padding-top: 4px;
|
|
14
14
|
padding-bottom: 4px;
|
|
15
15
|
}
|
|
16
|
-
`;export{
|
|
16
|
+
`;export{u as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b8 as j,
|
|
1
|
+
import{b8 as j,cp as O}from"./index-DCUaLmts.js";function J(i,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const e in a)if(e!=="default"&&!(e in i)){const s=Object.getOwnPropertyDescriptor(a,e);s&&Object.defineProperty(i,e,s.get?s:{enumerable:!0,get:()=>a[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var d={default:O,call:function(i,t,r){var a="";typeof t=="function"&&(r=t,t={});var e={data:t===void 0?null:t};if(typeof r=="function"){var s="dscb"+window.dscb++;window[s]=r,e._dscbstub=s}return e=JSON.stringify(e),window._dsbridge?a=_dsbridge.call(i,e):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(a=prompt("_dsbridge="+i,e)),JSON.parse(a||"{}").data},register:function(i,t,r){var a=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){d.call("_dsb.dsinit")},0)),typeof t=="object"?a._obs[i]=t:a[i]=t},registerAsyn:function(i,t){this.register(i,t,!0)},hasNativeMethod:function(i,t){return this.call("_dsb.hasNativeMethod",{name:i,type:t||"all"})},disableJavascriptDialogBlock:function(i){this.call("_dsb.disableJavascriptDialogBlock",{disable:i!==!1})}};(function(){if(!window._dsf){var i={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:d,close:function(){d.call("_dsb.closePage")},_handleMessageFromNative:function(r){var a=JSON.parse(r.data),e={id:r.callbackId,complete:!0},s=this._dsf[r.method],o=this._dsaf[r.method],p=function(u,_){e.data=u.apply(_,a),d.call("_dsb.returnValue",e)},v=function(u,_){a.push(function(w,y){e.data=w,e.complete=y!==!1,d.call("_dsb.returnValue",e)}),u.apply(_,a)};if(s)p(s,this._dsf);else if(o)v(o,this._dsaf);else{var l=r.method.split(".");if(l.length<2)return;var b=l.pop(),g=l.join("."),c=this._dsf._obs,f=c[g]||{},n=f[b];if(n&&typeof n=="function"){p(n,f);return}if(c=this._dsaf._obs,f=c[g]||{},n=f[b],n&&typeof n=="function"){v(n,f);return}}}};for(var t in i)window[t]=i[t];d.register("_hasJavascriptMethod",function(r,a){var e=r.split(".");if(e.length<2)return!!(_dsf[e]||_dsaf[e]);var r=e.pop(),s=e.join("."),o=_dsf._obs[s]||_dsaf._obs[s];return o&&!!o[r]})}})();var h=d;const N=j(h),k=J({__proto__:null,default:N},[h]);export{k as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b8 as y}from"./index-
|
|
1
|
+
import{b8 as y}from"./index-DCUaLmts.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as o,j as n,
|
|
1
|
+
import{P as o,j as n,dj as z,dk as Z,dl as U,c2 as b,K as q,u as B,r as $,dm as _,aH as C,bn as ee,B as w,y as W}from"./index-DCUaLmts.js";import{E as D}from"./fallback-BBqe0Pch.js";import{R as oe,N as ne}from"./index-DOy0gjrT.js";import{i as te,a as re,B as K,S as ie,u as ae,f as G,g as R,p as se,m as V,b as le,c as pe,H as de}from"./index-ByXpe3-E.js";import{d as ce}from"./ExpandMore-GvAP3Sct.js";import{A}from"./Avatar-X0tgeEge.js";function N({icon:e,size:t,sx:r,...a}){const i=[...Array.isArray(r)?r:[r]];if(t&&i.push({width:t,height:t}),a.variant||i.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),te(e))return n.jsx(A,{as:"span",...a,src:e,sx:i});if(re(e)){const u=t?.6*t+4:0;return n.jsx(A,{as:"span",...a,sx:i,children:n.jsx("iconify-icon",{icon:e,height:u||void 0})})}return e&&typeof e=="string"?(i.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),n.jsx(A,{as:"span",...a,sx:i,children:Array.from(e)[0]})):null}N.propTypes={icon:o.string.isRequired,size:o.number,sx:o.oneOfType([o.array,o.func,o.object])};N.defaultProps={size:null,sx:null};const ue=z();function S({theme:e,children:t}){const r=e?z(e):ue;return n.jsx(Z,{theme:r,children:t})}S.propTypes={children:o.any.isRequired,theme:o.object};S.defaultProps={theme:null};const fe=e=>{if(!(e!=null&&e.length))return{navItems:[],activeId:null};let t=1;const a=V(e,s=>{var d,c;const p=s.icon?n.jsx(N,{icon:s.icon}):null;if(s.items)return{id:`${t++}`,label:s.title,icon:p,children:s.items};let l={};return((d=s.link)!=null&&d.startsWith("http://")||(c=s.link)!=null&&c.startsWith("https://"))&&(l={target:"_blank",rel:"noreferrer"}),{id:`${t++}`,label:n.jsx("a",{href:s.link,...l,children:s.title}),icon:p,link:s.link}},"items"),i=le(a),u=pe(i.map(s=>s.link));return{navItems:a,activeId:u>=0?i[u].id:null}};function P({meta:e,addons:t,sessionManagerProps:r,homeLink:a,theme:i,hideNavMenu:u,...s}){var m,M;ae();const{locale:p}=B()||{},l=$.useMemo(()=>{const j=Object.assign({},window.blocklet,e);try{return G(j)}catch(X){return console.error("Failed to format blocklet info",X,j),j}},[e]);if(!l.appName)return null;const{appLogo:d,appLogoRect:c,theme:h}=l,f=R((m=l==null?void 0:l.navigation)==null?void 0:m.header,p),y=fe(f),{navItems:g,activeId:k}=y,v=typeof t=="function"?j=>t(j,{navigation:y}):t,x=n.jsx(de,{formattedBlocklet:l,addons:v,sessionManagerProps:r});return n.jsx(S,{theme:i,children:n.jsx(me,{homeLink:a,logo:n.jsx("img",{src:c||d,alt:"logo"}),addons:x,..._(s,["bordered"]),$bordered:s==null?void 0:s.bordered,$bgcolor:(M=h==null?void 0:h.background)==null?void 0:M.header,children:u||!(g!=null&&g.length)?null:({isMobile:j})=>n.jsx(ne,{mode:j?"inline":"horizontal",activeId:k,items:g,className:"header-nav",bgColor:"transparent",textColor:"#777"})})})}P.propTypes={meta:K,addons:o.oneOfType([o.func,o.node]),sessionManagerProps:ie,homeLink:o.string,theme:o.object,hideNavMenu:o.bool};P.defaultProps={meta:{},addons:null,sessionManagerProps:{showRole:!0},homeLink:se,theme:null,hideNavMenu:!1};const me=b(oe)`
|
|
2
2
|
${({$bgcolor:e})=>`background-color: ${e||"#fff"};`}
|
|
3
3
|
font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
|
|
4
4
|
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|