@abtnode/blocklet-services 1.16.25-beta-fe54d1bc → 1.16.25-beta-4f765cf3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/libs/email.js +1 -1
- package/api/services/dashboard/index.js +1 -2
- package/dist/assets/{Add-cHlB2aT1.js → Add-hE_y-3Pq.js} +1 -1
- package/dist/assets/{Alert-MdJYBFVy.js → Alert-N84_KD-3.js} +1 -1
- package/dist/assets/{ArrowDropDown-BvBvwG40.js → ArrowDropDown-wCnewKKe.js} +1 -1
- package/dist/assets/{Avatar-fSw3xwrG.js → Avatar-HEnEOozL.js} +1 -1
- package/dist/assets/{ButtonGroup-rkDf74jq.js → ButtonGroup-W_ITJpp0.js} +1 -1
- package/dist/assets/{CheckCircle-zEocFWjW.js → CheckCircle-cUnXZ7OP.js} +1 -1
- package/dist/assets/{Checkbox--mmHc71j.js → Checkbox-LXon8OOU.js} +1 -1
- package/dist/assets/{ChevronRight-fbb5cYZ4.js → ChevronRight-WBXU5ohU.js} +1 -1
- package/dist/assets/{CloseOutlined-9i0XEqO_.js → CloseOutlined-TVRW4CrE.js} +1 -1
- package/dist/assets/{DeleteOutline-Zyru4y8C.js → DeleteOutline-gdv3ewKz.js} +1 -1
- package/dist/assets/{Done-aCKUu1sE.js → Done-EASqrGRr.js} +1 -1
- package/dist/assets/{Download-wIqjcRIP.js → Download-qMR3c16e.js} +1 -1
- package/dist/assets/{Edit-VGLT5fsM.js → Edit-kLYyZhkN.js} +1 -1
- package/dist/assets/{EditIcon-OYkqAblR.js → EditIcon-n1Oun3aR.js} +1 -1
- package/dist/assets/{ExpandMore-byZ1bCvM.js → ExpandMore-WMRfZEqP.js} +1 -1
- package/dist/assets/{FilterList-aeaSrubq.js → FilterList-L4dRV2kI.js} +1 -1
- package/dist/assets/{FormControl-oOR29lpJ.js → FormControl-lU-7UxhW.js} +1 -1
- package/dist/assets/{FormControlLabel-L3cnXbG5.js → FormControlLabel-h1hvXlPm.js} +1 -1
- package/dist/assets/{FormGroup-7rC8tk9C.js → FormGroup-hZDn5b3E.js} +1 -1
- package/dist/assets/{Google-SlAlwx1t.js → Google-YsY_lMOh.js} +1 -1
- package/dist/assets/{Grid-7TNNvUm7.js → Grid-O2eaJZIs.js} +1 -1
- package/dist/assets/{Hidden-gMCEevUV.js → Hidden-8riRi-7w.js} +1 -1
- package/dist/assets/{InfoOutlined-IFjNFHvN.js → InfoOutlined-tz9WxS05.js} +1 -1
- package/dist/assets/{InputAdornment-JqnRRMW5.js → InputAdornment-gpcYuAGZ.js} +1 -1
- package/dist/assets/{InputLabel-tixiiB_7.js → InputLabel-nZyS3xY_.js} +1 -1
- package/dist/assets/{LastPage-SxjDnWfh.js → LastPage--aACjaLx.js} +1 -1
- package/dist/assets/{Launch-AGhMgMzI.js → Launch-JkzTfHAo.js} +1 -1
- package/dist/assets/{LaunchOutlined-wEhMyxOq.js → LaunchOutlined-pjiX1yYA.js} +1 -1
- package/dist/assets/{Link-kO4yy9NY.js → Link-4swwBDUU.js} +1 -1
- package/dist/assets/{ListItem-22rMJzrR.js → ListItem-DSIyD39f.js} +1 -1
- package/dist/assets/{LockIcon-Zvlt6Ez7.js → LockIcon-SkJSvCSd.js} +1 -1
- package/dist/assets/{Loop-eMhEddk0.js → Loop-nbHXfT5v.js} +1 -1
- package/dist/assets/{MoreHoriz-wD31dy4A.js → MoreHoriz-Ob-PdXvr.js} +1 -1
- package/dist/assets/{MoreVert-y0nkhqA-.js → MoreVert-JPy3cIzD.js} +1 -1
- package/dist/assets/{OpenInNew-lS0r1wSf.js → OpenInNew-ZUopA0lK.js} +1 -1
- package/dist/assets/{Pagination-BpRx0SAK.js → Pagination-DKPQNlbx.js} +1 -1
- package/dist/assets/{PlayArrow-OaVVr0ni.js → PlayArrow-lb0G2com.js} +1 -1
- package/dist/assets/{RadioGroup-37HVwVTv.js → RadioGroup-Pc6M6-Ta.js} +1 -1
- package/dist/assets/{RevokeIcon-Y9PaByDx.js → RevokeIcon-uaAHFtlr.js} +1 -1
- package/dist/assets/{Search-u7box4_Y.js → Search-uAWnirME.js} +1 -1
- package/dist/assets/{Select-pRXRwWUr.js → Select-zWmcTNCa.js} +1 -1
- package/dist/assets/{ServerLogo-jwHh0IgF.js → ServerLogo-aTuLKo2-.js} +1 -1
- package/dist/assets/{Skeleton-f2FtQiax.js → Skeleton-8CtJ4Efm.js} +1 -1
- package/dist/assets/{Slider-H4XrXpoV.js → Slider-onjTAkn6.js} +1 -1
- package/dist/assets/{Stepper-VaR1-5O8.js → Stepper-ClqLBUZn.js} +1 -1
- package/dist/assets/{TableRow-Cj_2GgNk.js → TableRow-sJQHVDVk.js} +1 -1
- package/dist/assets/{TextField-ZyGIim97.js → TextField-qykW02zP.js} +1 -1
- package/dist/assets/{Toolbar-doxZSzMe.js → Toolbar-U75uViNg.js} +1 -1
- package/dist/assets/{access-control-aK8P4gb0.js → access-control-84TFJPOW.js} +1 -1
- package/dist/assets/{actions-xNOsUM5q.js → actions-oIEoqVY9.js} +1 -1
- package/dist/assets/{add-component-core-zbwQZ7Gj.js → add-component-core-KW2dmt2S.js} +1 -1
- package/dist/assets/add-resource-xXtPPgi2.js +1 -0
- package/dist/assets/{addon-64NahJ__.js → addon-AhsSDW4t.js} +1 -1
- package/dist/assets/{analytics-g0Vfj2hE.js → analytics-ah1N_RmS.js} +1 -1
- package/dist/assets/api-JlWJcBe_.js +1 -0
- package/dist/assets/{audit-logs-uyu3rQip.js → audit-logs-BDEBHbGm.js} +1 -1
- package/dist/assets/{button-MCw_QfXz.js → button-uaT7Xd3G.js} +1 -1
- package/dist/assets/{click-to-copy-LXhBTX9X.js → click-to-copy-JQ1hcSA6.js} +1 -1
- package/dist/assets/{complete-P7vW9Q6f.js → complete-E5cWO82Y.js} +1 -1
- package/dist/assets/{component-DzlvVteR.js → component-ibdtKOi5.js} +1 -1
- package/dist/assets/{config-Ea6I9v5o.js → config-Fy4LmtXv.js} +1 -1
- package/dist/assets/{config-navigation-bW1alqTf.js → config-navigation-v-8UEsNh.js} +1 -1
- package/dist/assets/{config-80unJZu-.js → config-rPSf2CrR.js} +1 -1
- package/dist/assets/{config-space-1m3dkUIH.js → config-space-qrKrA2gA.js} +1 -1
- package/dist/assets/{confirm-yrg6H3m3.js → confirm-uc1Y33uD.js} +1 -1
- package/dist/assets/{connect-flk1UIKu.js → connect-frGRdhGh.js} +1 -1
- package/dist/assets/{connect-YLbdrcyy.js → connect-hxSEw-9U.js} +1 -1
- package/dist/assets/{connect-to-khFlOoo3.js → connect-to-aXc7wTCq.js} +1 -1
- package/dist/assets/{content-layout-ffAMA0Xk.js → content-layout-sw8mpR8E.js} +1 -1
- package/dist/assets/{dashboard-D4mJn4NA.js → dashboard-VBA06Iwv.js} +3 -3
- package/dist/assets/{did-address-ECHkrvY7.js → did-address-kM_Gj5GB.js} +1 -1
- package/dist/assets/{domain-list-2PxYmwNK.js → domain-list-RHpwjQ6u.js} +1 -1
- package/dist/assets/{domain-k9a3yDA2.js → domain-tImHfF3n.js} +1 -1
- package/dist/assets/{exchange-passport-yCBnyVYx.js → exchange-passport-yJcCPjmR.js} +1 -1
- package/dist/assets/{fallback-IjAJjezW.js → fallback-kvbxeOAh.js} +1 -1
- package/dist/assets/{fuel-MtoIUvUC.js → fuel-I4edEzsM.js} +1 -1
- package/dist/assets/{fullpage-YNLC3IT8.js → fullpage-Y5V_MGHE.js} +1 -1
- package/dist/assets/{home-vKdVJ5HF.js → home-x43lXk8b.js} +1 -1
- package/dist/assets/{iframe--DDyxCFe.js → iframe--DusxskT.js} +1 -1
- package/dist/assets/{index-ccjgq6fd.js → index-0Ap23gmc.js} +1 -1
- package/dist/assets/{index-yvk_oh1_.js → index-1RYLvd7a.js} +3 -3
- package/dist/assets/{index-mn6jUdgx.js → index-3jv088eq.js} +1 -1
- package/dist/assets/{index-MKqHQU8x.js → index-4FwYLGoA.js} +1 -1
- package/dist/assets/{index-ZiUiRdOB.js → index-4uoBZ4Km.js} +1 -1
- package/dist/assets/{index-YVfYKQPA.js → index-9kGH241X.js} +1 -1
- package/dist/assets/{index-o710KUFS.js → index-D7dMTham.js} +4 -4
- package/dist/assets/{index-UgzUFIZC.js → index-DBamhj5p.js} +1 -1
- package/dist/assets/{index-pdBeVTGN.js → index-EbJvsRfv.js} +1 -1
- package/dist/assets/{index-S-si__X3.js → index-FoQ3Q1RE.js} +1 -1
- package/dist/assets/{index-bXBQKCg5.js → index-HlcsGwyy.js} +1 -1
- package/dist/assets/{index-G9GF7vbH.js → index-JW3UP05k.js} +3 -3
- package/dist/assets/{index-rqKNtf3z.js → index-MW5XAWzK.js} +1 -1
- package/dist/assets/{index-Lh9Yvtax.js → index-NRx9SxtP.js} +1 -1
- package/dist/assets/{index-26PglcEO.js → index-VW3Fsku0.js} +1 -1
- package/dist/assets/{index-8IYt6Tm_.js → index-VcmnR0mp.js} +1 -1
- package/dist/assets/{index-Ym1-gm8d.js → index-WdoIow2K.js} +1 -1
- package/dist/assets/{index-EXmerWmJ.js → index-bcLu0M2u.js} +3 -3
- package/dist/assets/{index-IpFMsnoW.js → index-e_QDKVxH.js} +1 -1
- package/dist/assets/{index-r3XMu1Ks.js → index-k3rNNowK.js} +1 -1
- package/dist/assets/{index-8VBxs9u3.js → index-lTugDaC3.js} +1 -1
- package/dist/assets/{index-JYhe2G5y.js → index-mjo2fUfh.js} +1 -1
- package/dist/assets/{index-OUA4hTDF.js → index-oIFGwfmM.js} +1 -1
- package/dist/assets/{index-hh07q2GE.js → index-p2mJUcBg.js} +1 -1
- package/dist/assets/{index-saPuhMhh.js → index-sfLTpxKS.js} +1 -1
- package/dist/assets/{index-WWDbv1Eq.js → index-uLL8Vp7T.js} +1 -1
- package/dist/assets/{index-oxQd4nva.js → index-v3hymz3j.js} +1 -1
- package/dist/assets/{index-BV6xFdZD.js → index-vL9pFI1M.js} +1 -1
- package/dist/assets/{index-VFmj_3nK.js → index-yxXVaudE.js} +1 -1
- package/dist/assets/{index.es-lbwZYV-L.js → index.es-bqRJDylj.js} +1 -1
- package/dist/assets/{index.esm-HKU4eQVx.js → index.esm-t8g2Slly.js} +1 -1
- package/dist/assets/{invitation-e2c4kSlx.js → invitation-tMRZljsF.js} +1 -1
- package/dist/assets/{invite-hdpCzq3L.js → invite-WXG3A1XD.js} +1 -1
- package/dist/assets/{issue-passport-gmkPNmza.js → issue-passport-PWWWsMhT.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-ovOeGd-o.js → jss-plugin-props-sort.esm-7_btNtOg.js} +1 -1
- package/dist/assets/{launch-result-message-eVOyvqSH.js → launch-result-message-JRp4fsUm.js} +1 -1
- package/dist/assets/{layout-PpqpyJ6o.js → layout-fGWPkOEh.js} +1 -1
- package/dist/assets/{list-header-YBNntNYI.js → list-header-UfmVzXbI.js} +1 -1
- package/dist/assets/localization-1vbSMg9g.js +1 -0
- package/dist/assets/{log-rzr7eADS.js → log-lPZLyIpQ.js} +1 -1
- package/dist/assets/{login-kqUJ5Zy_.js → login-8jWdK1zF.js} +1 -1
- package/dist/assets/{logo-uploader-BdVu_wfY.js → logo-uploader-1AyeNZ0q.js} +3 -3
- package/dist/assets/{lost-passport-e2_Aixuz.js → lost-passport-JYHdz0yI.js} +3 -3
- package/dist/assets/{lottie-VSBLQIsZ.js → lottie-pnpc9RW1.js} +1 -1
- package/dist/assets/{notifications-Gd9Mk4s-.js → notifications-LaROgtr_.js} +1 -1
- package/dist/assets/{overview-0Vyc0Cwy.js → overview-ftrECyBu.js} +1 -1
- package/dist/assets/{page-header-o4M2G8PP.js → page-header-w9yhETXI.js} +1 -1
- package/dist/assets/{permission--6GIxgou.js → permission-RZL9x2kU.js} +1 -1
- package/dist/assets/{preferences-q4lQqOmp.js → preferences-pJUG2yrq.js} +1 -1
- package/dist/assets/publish-resource-rZcNx7fC.js +1 -0
- package/dist/assets/{react-9qdY2BUq.js → react-iBHDgDW5.js} +3 -3
- package/dist/assets/{selector-xIZpkZZH.js → selector-g3wjJR3o.js} +1 -1
- package/dist/assets/session-njvv4tO8.js +1 -0
- package/dist/assets/{setup-hZt95TOJ.js → setup-qpe6SzuC.js} +3 -3
- package/dist/assets/{slicedToArray-TwNvqSQp.js → slicedToArray-9fp4JHaL.js} +1 -1
- package/dist/assets/{spaces-qMnDTN0_.js → spaces-QwLXvIVF.js} +1 -1
- package/dist/assets/{start-PVNjbt4-.js → start-P2s1c0OH.js} +1 -1
- package/dist/assets/{step-actions-W8kQwGcm.js → step-actions-wtpUlz_n.js} +1 -1
- package/dist/assets/{studio-RndkT_vD.js → studio-zi78rIOG.js} +1 -1
- package/dist/assets/{switch-control-ivJ4ll4x.js → switch-control-6WrpIwmw.js} +1 -1
- package/dist/assets/{toUpper-CIY0cVrY.js → toUpper-3okjr7DL.js} +1 -1
- package/dist/assets/{transfer-Plp5xICV.js → transfer-OatqzcQh.js} +1 -1
- package/dist/assets/{uniqBy-WQM1t37b.js → uniqBy-E-w6tn5N.js} +1 -1
- package/dist/assets/unsubscribe-T77Y7MuB.js +1 -0
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-MBXLKWI5.js → use-blocklet-info-for-connect-did-spaces-8VklSTD-.js} +1 -1
- package/dist/assets/{useAsync-cflFULKW.js → useAsync-q9mkCv9v.js} +1 -1
- package/dist/assets/{useFormControl-FTiWn0ol.js → useFormControl-bdbmye_j.js} +1 -1
- package/dist/assets/{useLocalStorage-ieO-IiCr.js → useLocalStorage-slHq8u6M.js} +1 -1
- package/dist/assets/{useSetState-LqZ6-yZ8.js → useSetState-GR8fLZaJ.js} +1 -1
- package/dist/assets/{useSlot-Q68JwoxM.js → useSlot-VejfTAjg.js} +1 -1
- package/dist/assets/{user-center-Mc5H24-C.js → user-center-b2Piq6Oe.js} +1 -1
- package/dist/assets/{util-6HXJO81-.js → util-SGesDKnt.js} +1 -1
- package/dist/assets/{wrap-locale-02wmIj1x.js → wrap-locale-oqRLFt6z.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +18 -18
- package/dist/assets/add-resource-hfRO6Rgs.js +0 -1
- package/dist/assets/api-oD_O5CWe.js +0 -1
- package/dist/assets/localization-4OUgsdII.js +0 -1
- package/dist/assets/publish-resource-Fe3acGXx.js +0 -1
- package/dist/assets/session-QnPtqbmu.js +0 -1
- package/dist/assets/unsubscribe-xGN5x3Qn.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as l,U as N,ae as P,d as W,j as e,B as t,S as v,c as E,y as I,P as p,R as $}from"./index-
|
|
1
|
+
import{r as l,U as N,ae as P,d as W,j as e,B as t,S as v,c as E,y as I,P as p,R as $}from"./index-D7dMTham.js";import{d as D}from"./Launch-JkzTfHAo.js";import{W as L}from"./did-address-kM_Gj5GB.js";import{P as T}from"./page-header-w9yhETXI.js";import{S as z}from"./layout-fGWPkOEh.js";import{S as A}from"./step-actions-wtpUlz_n.js";import{S as u}from"./button-uaT7Xd3G.js";import{E as F}from"./Link-4swwBDUU.js";import"./content-layout-sw8mpR8E.js";function m({onNext:n,onPrevious:f}){const{locale:x,t:s}=l.useContext(N),{blocklet:a,gas:c,tokenInfo:h,actions:j}=P(),{api:y}=W(),[g,o]=l.useState(!1),{need:d="",current:S="",owe:r=99999,deficiency:k,symbol:b="",endpoint:i}=c||{},{origin:C="/"}=i?new URL(i):{};l.useEffect(()=>{const B=setInterval(()=>{j.refreshFuel()},2e3);return()=>{clearInterval(B)}},[]);const w=()=>{o(!1)};return c?e.jsxs(R,{children:[e.jsx("div",{className:"header",children:e.jsx(T,{title:s("setup.fuel.title"),onClickBack:f})}),e.jsxs(t,{className:"qr-body",children:[e.jsxs(t,{mb:6,className:"tip",children:[s("setup.fuel.tipStart").replace("slot",""),e.jsx("span",{className:"amount",children:`${d} ${b}`}),s("setup.fuel.tipEnd")]}),e.jsx(t,{fontSize:16,fontWeight:"fontWeightBold",mb:.5,children:s("setup.fuel.addressTitle")}),e.jsxs(t,{display:"flex",alignItems:"center",children:[e.jsx(L,{className:"address",did:a.appDid}),e.jsx(F,{style:{lineHeight:1},target:"_blank",href:E(C,"/explorer/accounts/",a.appDid),underline:"hover",children:e.jsx(D,{className:"icon-launch"})})]}),e.jsx(t,{my:2,children:e.jsx(u,{color:"primary",onClick:()=>o(!0),disabled:!r,children:s("setup.fuel.fuelApp")})}),e.jsx(I,{popup:!0,open:g,action:"fuel",checkFn:y.get,checkTimeout:10*60*1e3,onSuccess:w,onClose:()=>o(!1),locale:x,messages:{title:s("setup.connect.title"),scan:s("setup.connect.scan"),confirm:s("setup.connect.confirm"),success:s("setup.connect.success")},extraParams:{amount:k,...h,endpoint:i}}),e.jsxs(t,{display:"flex",color:"text.secondary",children:[e.jsxs(t,{display:"flex",children:[e.jsxs(t,{children:[s("setup.fuel.need"),":"]}),e.jsx(t,{ml:.5,color:"primary.main",fontWeight:"fontWeightBold",children:d})]}),e.jsxs(t,{display:"flex",ml:3,children:[e.jsxs(t,{children:[s("setup.fuel.current"),":"]}),e.jsx(t,{ml:.5,color:r>0?"error.main":"primary.main",fontWeight:"fontWeightBold",children:S})]})]})]}),e.jsx(A,{mt:8,children:e.jsx(u,{disabled:r>0,onClick:()=>n(),children:s("setup.next")})})]}):e.jsx(t,{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",children:e.jsx(v,{})})}m.propTypes={onNext:p.func,onPrevious:p.func};m.defaultProps={onNext:()=>{},onPrevious:()=>{}};const R=$(z)`
|
|
2
2
|
.qr-body {
|
|
3
3
|
width: 580px;
|
|
4
4
|
${n=>n.theme.breakpoints.down("md")} {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,T as x,P as t,F as v,B as r,A as w,G as a}from"./index-
|
|
1
|
+
import{j as e,T as x,P as t,F as v,B as r,A as w,G as a}from"./index-D7dMTham.js";import{E as h}from"./Link-4swwBDUU.js";function u({linkProps:o,...d}){return e.jsxs(x,{...d,children:["Powered by"," ",e.jsx(h,{href:"https://www.arcblock.io",target:"_blank",underline:"hover",...o,children:"ArcBlock"}),"'s"," ",e.jsx(h,{href:"https://www.blocklet.io",target:"_blank",underline:"hover",...o,children:"Blocklet Technology"}),", the decentralized web engine."]})}u.propTypes={linkProps:t.object};u.defaultProps={linkProps:{}};const k="/.well-known/service/static/assets/login-bg-m34fVHNm.png";function j({did:o,children:d,title:l,description:c,logo:n,logoSize:g,appUrl:i}){var f,p,m,y;if(!o)return d;let s;try{s=v(o)}catch{console.warn("Invalid did:",o)}const b=(globalThis==null?void 0:globalThis.blocklet)||(globalThis==null?void 0:globalThis.env)||{};return l===void 0&&(l=b.appName),c===void 0&&(c=b.appDescription),n===void 0&&(n=((f=globalThis==null?void 0:globalThis.blocklet)==null?void 0:f.appLogoRect)||((p=globalThis==null?void 0:globalThis.blocklet)==null?void 0:p.appLogo)||""),typeof n=="string"&&(n?n=e.jsx(r,{sx:{height:g,maxHeight:g,maxWidth:"50%",objectFit:"contain"},component:"img",src:n}):n=e.jsx(w,{size:g,did:o,src:n,variant:"rounded"})),typeof i=="string"&&(i=((m=globalThis==null?void 0:globalThis.blocklet)==null?void 0:m.appUrl)||"",!i&&(globalThis!=null&&globalThis.env)&&(i=(y=globalThis==null?void 0:globalThis.env)==null?void 0:y.baseUrl)),e.jsxs(r,{sx:{width:"100vw",height:"100vh",display:"flex",backgroundColor:a.backgroundsBgSubtile},children:[e.jsxs(r,{sx:{position:"relative",fontSize:0,flex:30,display:{xs:"none",lg:"flex"},minWidth:"400px",backgroundColor:a.surfaceBgSubtitle},children:[e.jsx(r,{sx:{position:"absolute",top:0,bottom:0,left:0,right:0,background:s?`linear-gradient(0deg, ${s} 0%, ${s} 100%), url(${k}), lightgray 50% / cover no-repeat`:`url(${k}), lightgray 50% / cover no-repeat`,backgroundPosition:"center",backgroundSize:"cover",backgroundBlendMode:s?"soft-light, normal":"unset",mask:"linear-gradient(172deg, rgba(0, 0, 0, 0.0) 24.62%, rgba(0, 0, 0, 0.80) 44.47%, #000 100%)"}}),e.jsxs(r,{sx:{display:"flex",flexDirection:"column",position:"absolute",top:0,left:0,width:"100%",p:3},children:[i?e.jsx(r,{children:e.jsx(h,{href:i,underline:"none",color:"inherit",children:n})}):n,l&&e.jsx(x,{variant:"h5",sx:{mt:3,mb:1,p:0,mx:0,fontWeight:"bold"},children:i?e.jsx(h,{href:i,underline:"none",color:"inherit",children:l}):l}),c&&e.jsx(x,{variant:"body2",sx:{m:0,p:0,color:a.foregroundsFgSubtile,fontSize:"12px",lineHeight:"20px"},children:c})]}),e.jsx(u,{linkProps:{underline:"always",color:a.textSubtitle},sx:{zIndex:10,position:"absolute",bottom:40,left:20,right:20,textAlign:"center",fontSize:"12px",color:a.textSubtitle}})]}),e.jsx(r,{sx:{display:"flex",justifyContent:"center",alignItems:"center",flex:70,maxWidth:{xs:"100%",md:"90%"},margin:"auto",height:"auto"},children:d})]})}j.propTypes={did:t.string.isRequired,children:t.any.isRequired,title:t.any,description:t.any,logo:t.any,logoSize:t.number,appUrl:t.string};j.defaultProps={title:void 0,description:void 0,logo:void 0,logoSize:40,appUrl:""};export{j as F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as o,B as e,W as t,L as r,x as i}from"./index-
|
|
1
|
+
import{j as o,B as e,W as t,L as r,x as i}from"./index-D7dMTham.js";import{S as n}from"./studio-zi78rIOG.js";import"./index-oIFGwfmM.js";import"./Toolbar-U75uViNg.js";import"./Hidden-8riRi-7w.js";import"./MoreHoriz-Ob-PdXvr.js";import"./ExpandMore-WMRfZEqP.js";import"./fallback-kvbxeOAh.js";function x(){return o.jsx(n,{children:o.jsxs(e,{m:4,children:[o.jsx(t,{component:r,to:`${i.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,size:"large",color:"primary",variant:"outlined",children:"Preference Builder"}),o.jsx(t,{component:r,style:{marginLeft:16},to:`${i.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,size:"large",color:"primary",variant:"outlined",children:"Localization"})]})})}export{x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d0 as x}from"./index-
|
|
1
|
+
import{d0 as x}from"./index-D7dMTham.js";import{o as E}from"./index-oIFGwfmM.js";const L=({url:o,allowFullScreen:r,position:a,display:i,height:u,width:c,overflow:f,styles:y,onLoad:p,onMouseOver:m,onMouseOut:d,scrolling:w,id:b,frameBorder:n,ariaHidden:O,sandbox:s,allow:j,className:g,title:h,ariaLabel:k,ariaLabelledby:I,name:P,target:v,loading:A,importance:F,referrerpolicy:M,allowpaymentrequest:S,src:$,key:q})=>{const t=E({src:$||o,target:v||null,style:{position:a||null,display:i||"initial",overflow:f||null},scrolling:w||null,allowpaymentrequest:S||null,importance:F||null,sandbox:s&&[...s].join(" ")||null,loading:A||null,styles:y||null,name:P||null,className:g||null,allowFullScreen:"allowFullScreen",referrerpolicy:M||null,title:h||null,allow:j||null,id:b||null,"aria-labelledby":I||null,"aria-hidden":O||null,"aria-label":k||null,width:c||null,height:u||null,onLoad:p||null,onMouseOver:m||null,onMouseOut:d||null,key:q||"iframe"});let l=Object.create(null);for(let e of Object.keys(t))t[e]!=null&&(l[e]=t[e]);for(let e of Object.keys(l.style))l.style[e]==null&&delete l.style[e];if(l.styles)for(let e of Object.keys(l.styles))l.styles.hasOwnProperty(e)&&(l.style[e]=l.styles[e]),Object.keys(l.styles).pop()==e&&delete l.styles;if(r)if("allow"in l){const e=l.allow.replace("fullscreen","");l.allow=`fullscreen ${e.trim()}`.trim()}else l.allow="fullscreen";return n>=0&&(l.style.hasOwnProperty("border")||(l.style.border=n)),x.createElement("iframe",Object.assign({},l))},z=L;export{z as I};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aA as _e,aB as Ae,r as b,aC as Oe,co as rt,aD as ie,aF as M,cn as oe,aE as xe,fE as ot,az as Me,j as e,aH as We,aI as Ee,aT as Ge,aY as L,u as H,T as K,ao as q,W as k,S as W,P as S,R as U,bq as Y,bN as Q,fF as He,ax as O,o as z,aZ as nt,bF as at,B as T,dR as it,a3 as lt,a5 as ct,O as dt,Q as ut,x as qe,b3 as Ue,bG as ve,b6 as se,fG as pt,fH as ft,a as he,U as mt,$ as ht}from"./index-o710KUFS.js";import{d as je}from"./Add-cHlB2aT1.js";import{S as ne}from"./index-pdBeVTGN.js";import{d as le}from"./EditIcon-OYkqAblR.js";import{d as gt}from"./LockIcon-Zvlt6Ez7.js";import{L as Ce,S as be,d as xt}from"./list-header-YBNntNYI.js";import{u as ee}from"./dashboard-D4mJn4NA.js";import{w as E,P as $e}from"./permission--6GIxgou.js";import{C as Te}from"./confirm-yrg6H3m3.js";import{D as yt,A as vt,f as te}from"./index-r3XMu1Ks.js";import{T as _,F as jt}from"./TextField-ZyGIim97.js";import{F as Ct}from"./FormControlLabel-L3cnXbG5.js";import{C as bt}from"./Checkbox--mmHc71j.js";import{C as Tt}from"./Google-SlAlwx1t.js";import{W as Ve}from"./did-address-ECHkrvY7.js";import{T as Bt}from"./MoreVert-y0nkhqA-.js";import{_ as St}from"./useSetState-LqZ6-yZ8.js";import{M as wt}from"./InputAdornment-JqnRRMW5.js";import{I as Pt}from"./InputLabel-tixiiB_7.js";import{g as Ft}from"./ButtonGroup-rkDf74jq.js";import{O as It}from"./Select-pRXRwWUr.js";import"./ExpandMore-byZ1bCvM.js";import"./Search-u7box4_Y.js";import"./index-IpFMsnoW.js";import"./useLocalStorage-ieO-IiCr.js";import"./PlayArrow-OaVVr0ni.js";import"./Alert-MdJYBFVy.js";import"./useSlot-Q68JwoxM.js";import"./RadioGroup-37HVwVTv.js";import"./FormGroup-7rC8tk9C.js";import"./useFormControl-FTiWn0ol.js";import"./Avatar-fSw3xwrG.js";import"./session-QnPtqbmu.js";import"./spaces-qMnDTN0_.js";import"./index-BV6xFdZD.js";import"./index-fjKBcmH5.js";import"./api-oD_O5CWe.js";import"./Link-kO4yy9NY.js";import"./fallback-IjAJjezW.js";import"./index-yvk_oh1_.js";import"./index-OUA4hTDF.js";import"./Toolbar-doxZSzMe.js";import"./Hidden-gMCEevUV.js";import"./MoreHoriz-wD31dy4A.js";import"./ListItem-22rMJzrR.js";import"./selector-xIZpkZZH.js";import"./useAsync-cflFULKW.js";import"./FormControl-oOR29lpJ.js";function Rt(t){return Ae("MuiToggleButton",t)}const $t=_e("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),V=$t,Dt=b.createContext({}),Ke=Dt,kt=b.createContext(void 0),Ye=kt;function zt(t,r){return r===void 0||t===void 0?!1:Array.isArray(r)?r.indexOf(t)>=0:t===r}const Nt=["value"],Lt=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],_t=t=>{const{classes:r,fullWidth:l,selected:d,disabled:f,size:u,color:h}=t,s={root:["root",d&&"selected",f&&"disabled",l&&"fullWidth",`size${ie(u)}`,h]};return Ee(s,Rt,r)},At=Oe(rt,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[r.root,r[`size${ie(l.size)}`]]}})(({theme:t,ownerState:r})=>{let l=r.color==="standard"?t.palette.text.primary:t.palette[r.color].main,d;return t.vars&&(l=r.color==="standard"?t.vars.palette.text.primary:t.vars.palette[r.color].main,d=r.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[r.color].mainChannel),M({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},r.fullWidth&&{width:"100%"},{[`&.${V.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:oe(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${V.selected}`]:{color:l,backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${d} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:oe(l,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity)}}}},r.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},r.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),Ot=b.forwardRef(function(r,l){const d=b.useContext(Ke),{value:f}=d,u=xe(d,Nt),h=b.useContext(Ye),s=ot(M({},u,{selected:zt(r.value,f)}),r),p=Me({props:s,name:"MuiToggleButton"}),{children:o,className:a,color:i="standard",disabled:n=!1,disableFocusRipple:c=!1,fullWidth:v=!1,onChange:x,onClick:m,selected:j,size:g="medium",value:C}=p,y=xe(p,Lt),B=M({},p,{color:i,disabled:n,disableFocusRipple:c,fullWidth:v,size:g}),P=_t(B),R=$=>{m&&(m($,C),$.defaultPrevented)||x&&x($,C)},F=h||"";return e.jsx(At,M({className:We(u.className,P.root,a,F),disabled:n,focusRipple:!c,ref:l,onClick:R,onChange:x,value:C,ownerState:B,"aria-pressed":j},y,{children:o}))}),ge=Ot;function Mt(t){return Ae("MuiToggleButtonGroup",t)}const Wt=_e("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),w=Wt,Et=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],Gt=t=>{const{classes:r,orientation:l,fullWidth:d,disabled:f}=t,u={root:["root",l==="vertical"&&"vertical",d&&"fullWidth"],grouped:["grouped",`grouped${ie(l)}`,f&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Ee(u,Mt,r)},Ht=Oe("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[{[`& .${w.grouped}`]:r.grouped},{[`& .${w.grouped}`]:r[`grouped${ie(l.orientation)}`]},{[`& .${w.firstButton}`]:r.firstButton},{[`& .${w.lastButton}`]:r.lastButton},{[`& .${w.middleButton}`]:r.middleButton},r.root,l.orientation==="vertical"&&r.vertical,l.fullWidth&&r.fullWidth]}})(({ownerState:t,theme:r})=>M({display:"inline-flex",borderRadius:(r.vars||r).shape.borderRadius},t.orientation==="vertical"&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${w.grouped}`]:M({},t.orientation==="horizontal"?{[`&.${w.selected} + .${w.grouped}.${w.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${w.selected} + .${w.grouped}.${w.selected}`]:{borderTop:0,marginTop:0}})},t.orientation==="horizontal"?{[`& .${w.firstButton},& .${w.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${w.lastButton},& .${w.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${w.firstButton},& .${w.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${w.lastButton},& .${w.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},t.orientation==="horizontal"?{[`& .${w.lastButton}.${V.disabled},& .${w.middleButton}.${V.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${w.lastButton}.${V.disabled},& .${w.middleButton}.${V.disabled}`]:{borderTop:"1px solid transparent"}})),qt=b.forwardRef(function(r,l){const d=Me({props:r,name:"MuiToggleButtonGroup"}),{children:f,className:u,color:h="standard",disabled:s=!1,exclusive:p=!1,fullWidth:o=!1,onChange:a,orientation:i="horizontal",size:n="medium",value:c}=d,v=xe(d,Et),x=M({},d,{disabled:s,fullWidth:o,orientation:i,size:n}),m=Gt(x),j=b.useCallback((R,F)=>{if(!a)return;const $=c&&c.indexOf(F);let A;c&&$>=0?(A=c.slice(),A.splice($,1)):A=c?c.concat(F):[F],a(R,A)},[a,c]),g=b.useCallback((R,F)=>{a&&a(R,c===F?null:F)},[a,c]),C=b.useMemo(()=>({className:m.grouped,onChange:p?g:j,value:c,size:n,fullWidth:o,color:h,disabled:s}),[m.grouped,p,g,j,c,n,o,h,s]),y=Ft(f),B=y.length,P=R=>{const F=R===0,$=R===B-1;return F&&$?"":F?m.firstButton:$?m.lastButton:m.middleButton};return e.jsx(Ht,M({role:"group",className:We(m.root,u),ref:l,ownerState:x},v,{children:e.jsx(Ke.Provider,{value:C,children:y.map((R,F)=>e.jsx(Ye.Provider,{value:P(F),children:R},F))})}))}),Ut=qt;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});var re=Be.default=void 0;Vt(b);var De=e;function Vt(t){return t&&t.__esModule?t:{default:t}}function ke(t,r){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);r&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),l.push.apply(l,d)}return l}function ze(t){for(var r=1;r<arguments.length;r++){var l=arguments[r]!=null?arguments[r]:{};r%2?ke(Object(l),!0).forEach(function(d){Kt(t,d,l[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):ke(Object(l)).forEach(function(d){Object.defineProperty(t,d,Object.getOwnPropertyDescriptor(l,d))})}return t}function Kt(t,r,l){return r=Yt(r),r in t?Object.defineProperty(t,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[r]=l,t}function Yt(t){var r=Qt(t,"string");return typeof r=="symbol"?r:String(r)}function Qt(t,r){if(typeof t!="object"||!t)return t;var l=t[Symbol.toPrimitive];if(l!==void 0){var d=l.call(t,r||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var Se=function(r){return(0,De.jsx)("svg",ze(ze({},r),{},{children:(0,De.jsx)("path",{d:"M8.438 4.313H8.25a.188.188 0 0 0 .188-.188v.188h7.124v-.188c0 .103.085.188.188.188h-.188V6h1.688V4.125c0-.827-.673-1.5-1.5-1.5h-7.5c-.827 0-1.5.673-1.5 1.5V6h1.688V4.312zM20.25 6H3.75a.75.75 0 0 0-.75.75v.75c0 .103.084.188.188.188h1.415l.579 12.257c.038.8.698 1.43 1.498 1.43h10.64c.802 0 1.46-.628 1.498-1.43l.579-12.258h1.416A.188.188 0 0 0 21 7.5v-.75a.75.75 0 0 0-.75-.75zm-3.11 13.688H6.86l-.567-12h11.414l-.567 12z"})}))};Se.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};Se.displayName="delete";re=Be.default=Se;var Qe={exports:{}},Ze={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(l,d){return l<<d|l>>>32-d},rotr:function(l,d){return l<<32-d|l>>>d},endian:function(l){if(l.constructor==Number)return r.rotl(l,8)&16711935|r.rotl(l,24)&4278255360;for(var d=0;d<l.length;d++)l[d]=r.endian(l[d]);return l},randomBytes:function(l){for(var d=[];l>0;l--)d.push(Math.floor(Math.random()*256));return d},bytesToWords:function(l){for(var d=[],f=0,u=0;f<l.length;f++,u+=8)d[u>>>5]|=l[f]<<24-u%32;return d},wordsToBytes:function(l){for(var d=[],f=0;f<l.length*32;f+=8)d.push(l[f>>>5]>>>24-f%32&255);return d},bytesToHex:function(l){for(var d=[],f=0;f<l.length;f++)d.push((l[f]>>>4).toString(16)),d.push((l[f]&15).toString(16));return d.join("")},hexToBytes:function(l){for(var d=[],f=0;f<l.length;f+=2)d.push(parseInt(l.substr(f,2),16));return d},bytesToBase64:function(l){for(var d=[],f=0;f<l.length;f+=3)for(var u=l[f]<<16|l[f+1]<<8|l[f+2],h=0;h<4;h++)f*8+h*6<=l.length*8?d.push(t.charAt(u>>>6*(3-h)&63)):d.push("=");return d.join("")},base64ToBytes:function(l){l=l.replace(/[^A-Z0-9+\/]/ig,"");for(var d=[],f=0,u=0;f<l.length;u=++f%4)u!=0&&d.push((t.indexOf(l.charAt(f-1))&Math.pow(2,-2*u+8)-1)<<u*2|t.indexOf(l.charAt(f))>>>6-u*2);return d}};Ze.exports=r})();var Zt=Ze.exports,ye={utf8:{stringToBytes:function(t){return ye.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(ye.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var r=[],l=0;l<t.length;l++)r.push(t.charCodeAt(l)&255);return r},bytesToString:function(t){for(var r=[],l=0;l<t.length;l++)r.push(String.fromCharCode(t[l]));return r.join("")}}},Ne=ye;/*!
|
|
1
|
+
import{aA as _e,aB as Ae,r as b,aC as Oe,co as rt,aD as ie,aF as M,cn as oe,aE as xe,fE as ot,az as Me,j as e,aH as We,aI as Ee,aT as Ge,aY as L,u as H,T as K,ao as q,W as k,S as W,P as S,R as U,bq as Y,bN as Q,fF as He,ax as O,o as z,aZ as nt,bF as at,B as T,dR as it,a3 as lt,a5 as ct,O as dt,Q as ut,x as qe,b3 as Ue,bG as ve,b6 as se,fG as pt,fH as ft,a as he,U as mt,$ as ht}from"./index-D7dMTham.js";import{d as je}from"./Add-hE_y-3Pq.js";import{S as ne}from"./index-EbJvsRfv.js";import{d as le}from"./EditIcon-n1Oun3aR.js";import{d as gt}from"./LockIcon-SkJSvCSd.js";import{L as Ce,S as be,d as xt}from"./list-header-UfmVzXbI.js";import{u as ee}from"./dashboard-VBA06Iwv.js";import{w as E,P as $e}from"./permission-RZL9x2kU.js";import{C as Te}from"./confirm-uc1Y33uD.js";import{D as yt,A as vt,f as te}from"./index-k3rNNowK.js";import{T as _,F as jt}from"./TextField-qykW02zP.js";import{F as Ct}from"./FormControlLabel-h1hvXlPm.js";import{C as bt}from"./Checkbox-LXon8OOU.js";import{C as Tt}from"./Google-YsY_lMOh.js";import{W as Ve}from"./did-address-kM_Gj5GB.js";import{T as Bt}from"./MoreVert-JPy3cIzD.js";import{_ as St}from"./useSetState-GR8fLZaJ.js";import{M as wt}from"./InputAdornment-gpcYuAGZ.js";import{I as Pt}from"./InputLabel-nZyS3xY_.js";import{g as Ft}from"./ButtonGroup-W_ITJpp0.js";import{O as It}from"./Select-zWmcTNCa.js";import"./ExpandMore-WMRfZEqP.js";import"./Search-uAWnirME.js";import"./index-e_QDKVxH.js";import"./useLocalStorage-slHq8u6M.js";import"./PlayArrow-lb0G2com.js";import"./Alert-N84_KD-3.js";import"./useSlot-VejfTAjg.js";import"./RadioGroup-Pc6M6-Ta.js";import"./FormGroup-hZDn5b3E.js";import"./useFormControl-bdbmye_j.js";import"./Avatar-HEnEOozL.js";import"./session-njvv4tO8.js";import"./spaces-QwLXvIVF.js";import"./index-vL9pFI1M.js";import"./index-fjKBcmH5.js";import"./api-JlWJcBe_.js";import"./Link-4swwBDUU.js";import"./fallback-kvbxeOAh.js";import"./index-1RYLvd7a.js";import"./index-oIFGwfmM.js";import"./Toolbar-U75uViNg.js";import"./Hidden-8riRi-7w.js";import"./MoreHoriz-Ob-PdXvr.js";import"./ListItem-DSIyD39f.js";import"./selector-g3wjJR3o.js";import"./useAsync-q9mkCv9v.js";import"./FormControl-lU-7UxhW.js";function Rt(t){return Ae("MuiToggleButton",t)}const $t=_e("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),V=$t,Dt=b.createContext({}),Ke=Dt,kt=b.createContext(void 0),Ye=kt;function zt(t,r){return r===void 0||t===void 0?!1:Array.isArray(r)?r.indexOf(t)>=0:t===r}const Nt=["value"],Lt=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],_t=t=>{const{classes:r,fullWidth:l,selected:d,disabled:f,size:u,color:h}=t,s={root:["root",d&&"selected",f&&"disabled",l&&"fullWidth",`size${ie(u)}`,h]};return Ee(s,Rt,r)},At=Oe(rt,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[r.root,r[`size${ie(l.size)}`]]}})(({theme:t,ownerState:r})=>{let l=r.color==="standard"?t.palette.text.primary:t.palette[r.color].main,d;return t.vars&&(l=r.color==="standard"?t.vars.palette.text.primary:t.vars.palette[r.color].main,d=r.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[r.color].mainChannel),M({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},r.fullWidth&&{width:"100%"},{[`&.${V.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:oe(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${V.selected}`]:{color:l,backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${d} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:oe(l,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity)}}}},r.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},r.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),Ot=b.forwardRef(function(r,l){const d=b.useContext(Ke),{value:f}=d,u=xe(d,Nt),h=b.useContext(Ye),s=ot(M({},u,{selected:zt(r.value,f)}),r),p=Me({props:s,name:"MuiToggleButton"}),{children:o,className:a,color:i="standard",disabled:n=!1,disableFocusRipple:c=!1,fullWidth:v=!1,onChange:x,onClick:m,selected:j,size:g="medium",value:C}=p,y=xe(p,Lt),B=M({},p,{color:i,disabled:n,disableFocusRipple:c,fullWidth:v,size:g}),P=_t(B),R=$=>{m&&(m($,C),$.defaultPrevented)||x&&x($,C)},F=h||"";return e.jsx(At,M({className:We(u.className,P.root,a,F),disabled:n,focusRipple:!c,ref:l,onClick:R,onChange:x,value:C,ownerState:B,"aria-pressed":j},y,{children:o}))}),ge=Ot;function Mt(t){return Ae("MuiToggleButtonGroup",t)}const Wt=_e("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),w=Wt,Et=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],Gt=t=>{const{classes:r,orientation:l,fullWidth:d,disabled:f}=t,u={root:["root",l==="vertical"&&"vertical",d&&"fullWidth"],grouped:["grouped",`grouped${ie(l)}`,f&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Ee(u,Mt,r)},Ht=Oe("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[{[`& .${w.grouped}`]:r.grouped},{[`& .${w.grouped}`]:r[`grouped${ie(l.orientation)}`]},{[`& .${w.firstButton}`]:r.firstButton},{[`& .${w.lastButton}`]:r.lastButton},{[`& .${w.middleButton}`]:r.middleButton},r.root,l.orientation==="vertical"&&r.vertical,l.fullWidth&&r.fullWidth]}})(({ownerState:t,theme:r})=>M({display:"inline-flex",borderRadius:(r.vars||r).shape.borderRadius},t.orientation==="vertical"&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${w.grouped}`]:M({},t.orientation==="horizontal"?{[`&.${w.selected} + .${w.grouped}.${w.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${w.selected} + .${w.grouped}.${w.selected}`]:{borderTop:0,marginTop:0}})},t.orientation==="horizontal"?{[`& .${w.firstButton},& .${w.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${w.lastButton},& .${w.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${w.firstButton},& .${w.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${w.lastButton},& .${w.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},t.orientation==="horizontal"?{[`& .${w.lastButton}.${V.disabled},& .${w.middleButton}.${V.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${w.lastButton}.${V.disabled},& .${w.middleButton}.${V.disabled}`]:{borderTop:"1px solid transparent"}})),qt=b.forwardRef(function(r,l){const d=Me({props:r,name:"MuiToggleButtonGroup"}),{children:f,className:u,color:h="standard",disabled:s=!1,exclusive:p=!1,fullWidth:o=!1,onChange:a,orientation:i="horizontal",size:n="medium",value:c}=d,v=xe(d,Et),x=M({},d,{disabled:s,fullWidth:o,orientation:i,size:n}),m=Gt(x),j=b.useCallback((R,F)=>{if(!a)return;const $=c&&c.indexOf(F);let A;c&&$>=0?(A=c.slice(),A.splice($,1)):A=c?c.concat(F):[F],a(R,A)},[a,c]),g=b.useCallback((R,F)=>{a&&a(R,c===F?null:F)},[a,c]),C=b.useMemo(()=>({className:m.grouped,onChange:p?g:j,value:c,size:n,fullWidth:o,color:h,disabled:s}),[m.grouped,p,g,j,c,n,o,h,s]),y=Ft(f),B=y.length,P=R=>{const F=R===0,$=R===B-1;return F&&$?"":F?m.firstButton:$?m.lastButton:m.middleButton};return e.jsx(Ht,M({role:"group",className:We(m.root,u),ref:l,ownerState:x},v,{children:e.jsx(Ke.Provider,{value:C,children:y.map((R,F)=>e.jsx(Ye.Provider,{value:P(F),children:R},F))})}))}),Ut=qt;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});var re=Be.default=void 0;Vt(b);var De=e;function Vt(t){return t&&t.__esModule?t:{default:t}}function ke(t,r){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);r&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),l.push.apply(l,d)}return l}function ze(t){for(var r=1;r<arguments.length;r++){var l=arguments[r]!=null?arguments[r]:{};r%2?ke(Object(l),!0).forEach(function(d){Kt(t,d,l[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):ke(Object(l)).forEach(function(d){Object.defineProperty(t,d,Object.getOwnPropertyDescriptor(l,d))})}return t}function Kt(t,r,l){return r=Yt(r),r in t?Object.defineProperty(t,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[r]=l,t}function Yt(t){var r=Qt(t,"string");return typeof r=="symbol"?r:String(r)}function Qt(t,r){if(typeof t!="object"||!t)return t;var l=t[Symbol.toPrimitive];if(l!==void 0){var d=l.call(t,r||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var Se=function(r){return(0,De.jsx)("svg",ze(ze({},r),{},{children:(0,De.jsx)("path",{d:"M8.438 4.313H8.25a.188.188 0 0 0 .188-.188v.188h7.124v-.188c0 .103.085.188.188.188h-.188V6h1.688V4.125c0-.827-.673-1.5-1.5-1.5h-7.5c-.827 0-1.5.673-1.5 1.5V6h1.688V4.312zM20.25 6H3.75a.75.75 0 0 0-.75.75v.75c0 .103.084.188.188.188h1.415l.579 12.257c.038.8.698 1.43 1.498 1.43h10.64c.802 0 1.46-.628 1.498-1.43l.579-12.258h1.416A.188.188 0 0 0 21 7.5v-.75a.75.75 0 0 0-.75-.75zm-3.11 13.688H6.86l-.567-12h11.414l-.567 12z"})}))};Se.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};Se.displayName="delete";re=Be.default=Se;var Qe={exports:{}},Ze={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(l,d){return l<<d|l>>>32-d},rotr:function(l,d){return l<<32-d|l>>>d},endian:function(l){if(l.constructor==Number)return r.rotl(l,8)&16711935|r.rotl(l,24)&4278255360;for(var d=0;d<l.length;d++)l[d]=r.endian(l[d]);return l},randomBytes:function(l){for(var d=[];l>0;l--)d.push(Math.floor(Math.random()*256));return d},bytesToWords:function(l){for(var d=[],f=0,u=0;f<l.length;f++,u+=8)d[u>>>5]|=l[f]<<24-u%32;return d},wordsToBytes:function(l){for(var d=[],f=0;f<l.length*32;f+=8)d.push(l[f>>>5]>>>24-f%32&255);return d},bytesToHex:function(l){for(var d=[],f=0;f<l.length;f++)d.push((l[f]>>>4).toString(16)),d.push((l[f]&15).toString(16));return d.join("")},hexToBytes:function(l){for(var d=[],f=0;f<l.length;f+=2)d.push(parseInt(l.substr(f,2),16));return d},bytesToBase64:function(l){for(var d=[],f=0;f<l.length;f+=3)for(var u=l[f]<<16|l[f+1]<<8|l[f+2],h=0;h<4;h++)f*8+h*6<=l.length*8?d.push(t.charAt(u>>>6*(3-h)&63)):d.push("=");return d.join("")},base64ToBytes:function(l){l=l.replace(/[^A-Z0-9+\/]/ig,"");for(var d=[],f=0,u=0;f<l.length;u=++f%4)u!=0&&d.push((t.indexOf(l.charAt(f-1))&Math.pow(2,-2*u+8)-1)<<u*2|t.indexOf(l.charAt(f))>>>6-u*2);return d}};Ze.exports=r})();var Zt=Ze.exports,ye={utf8:{stringToBytes:function(t){return ye.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(ye.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var r=[],l=0;l<t.length;l++)r.push(t.charCodeAt(l)&255);return r},bytesToString:function(t){for(var r=[],l=0;l<t.length;l++)r.push(String.fromCharCode(t[l]));return r.join("")}}},Ne=ye;/*!
|
|
2
2
|
* Determine if an object is a Buffer
|
|
3
3
|
*
|
|
4
4
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var bt=Object.defineProperty;var yt=(e,t,n)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var D=(e,t,n)=>(yt(e,typeof t!="symbol"?t+"":t,n),n);import{aC as xt,co as wt,cG as vt,aF as G,bZ as V,r as A,az as It,aE as Ct,aJ as ve,cj as St,b$ as Tt,j as m,aH as Ie,aI as At,P as f,H as Pt,h as jt,ax as kt,bz as Ce,br as Lt,bs as Mt,cV as Ot,ad as Rt,G as P,bp as _t,B as Et,cW as Nt,T as qt,cX as Ft,W as $t,cY as zt,bK as De,u as Ve,ay as Bt,V as Ht,Y as Dt}from"./index-
|
|
1
|
+
var bt=Object.defineProperty;var yt=(e,t,n)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var D=(e,t,n)=>(yt(e,typeof t!="symbol"?t+"":t,n),n);import{aC as xt,co as wt,cG as vt,aF as G,bZ as V,r as A,az as It,aE as Ct,aJ as ve,cj as St,b$ as Tt,j as m,aH as Ie,aI as At,P as f,H as Pt,h as jt,ax as kt,bz as Ce,br as Lt,bs as Mt,cV as Ot,ad as Rt,G as P,bp as _t,B as Et,cW as Nt,T as qt,cX as Ft,W as $t,cY as zt,bK as De,u as Ve,ay as Bt,V as Ht,Y as Dt}from"./index-D7dMTham.js";import{D as Vt}from"./index-oIFGwfmM.js";import{l as R,g as Ut,L as Qt}from"./ListItem-DSIyD39f.js";import{L as Wt}from"./selector-g3wjJR3o.js";const Gt=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Zt=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Jt=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:s,divider:i,selected:a}=e,l=At({root:["root",r&&"dense",!s&&"gutters",i&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},Ut,n);return G({},n,l)},Yt=xt(wt,{shouldForwardProp:e=>vt(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Zt})(({theme:e,ownerState:t})=>G({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${R.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:V(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${R.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:V(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${R.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:V(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:V(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${R.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${R.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),Xt=A.forwardRef(function(t,n){const r=It({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:i="div",children:a,dense:c=!1,disableGutters:l=!1,divider:u=!1,focusVisibleClassName:d,selected:p=!1,className:g}=r,b=Ct(r,Gt),x=A.useContext(ve),C=A.useMemo(()=>({dense:c||x.dense||!1,alignItems:o,disableGutters:l}),[o,x.dense,c,l]),T=A.useRef(null);St(()=>{s&&T.current&&T.current.focus()},[s]);const w=G({},r,{alignItems:o,dense:C.dense,disableGutters:l,divider:u,selected:p}),y=Jt(w),O=Tt(T,n);return m.jsx(ve.Provider,{value:C,children:m.jsx(Yt,G({ref:O,href:b.href||b.to,component:(b.href||b.to)&&i==="div"?"button":i,focusVisibleClassName:Ie(y.focusVisible,d),ownerState:w,className:Ie(y.root,g)},b,{classes:y,children:a}))})}),Kt=Xt;/**
|
|
2
2
|
* (c) Iconify
|
|
3
3
|
*
|
|
4
4
|
* For the full copyright and license information, please view the license.txt
|
|
@@ -8,10 +8,10 @@ var bt=Object.defineProperty;var yt=(e,t,n)=>t in e?bt(e,t,{enumerable:!0,config
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
* @version 1.0.8
|
|
11
|
-
*/const Ue=Object.freeze({left:0,top:0,width:16,height:16}),Z=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),z=Object.freeze({...Ue,...Z}),se=Object.freeze({...z,body:"",hidden:!1}),en=Object.freeze({width:null,height:null}),Qe=Object.freeze({...en,...Z});function tn(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const nn=/[\s,]+/;function on(e,t){t.split(nn).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const We={...Qe,preserveAspectRatio:""};function Se(e){const t={...We},n=(r,o)=>e.getAttribute(r)||o;return t.width=n("width",null),t.height=n("height",null),t.rotate=tn(n("rotate","")),on(t,n("flip","")),t.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),t}function rn(e,t){for(const n in We)if(e[n]!==t[n])return!0;return!1}const E=/^[a-z0-9]+(-[a-z0-9]+)*$/,B=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),l={provider:o.length>0?o[0]:r,prefix:c,name:a};return t&&!Q(l)?null:l}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Q(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!Q(a,n)?null:a}return null},Q=(e,t)=>e?!!((e.provider===""||e.provider.match(E))&&(t&&e.prefix===""||e.prefix.match(E))&&e.name.match(E)):!1;function sn(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Te(e,t){const n=sn(e,t);for(const r in se)r in Z?r in e&&!(r in n)&&(n[r]=Z[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function cn(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function an(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=Te(r[a]||o[a],s)}return i(t),n.forEach(i),Te(e,s)}function Ge(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=cn(e);for(const o in r){const s=r[o];s&&(t(o,an(e,o,s)),n.push(o))}return n}const ln={provider:"",aliases:{},not_found:{},...Ue};function te(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Ze(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!te(e,ln))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(E)||typeof s.body!="string"||!te(s,se))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(E)||typeof i!="string"||!n[i]&&!r[i]||!te(s,se))return null}return t}const J=Object.create(null);function un(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function k(e,t){const n=J[e]||(J[e]=Object.create(null));return n[t]||(n[t]=un(e,t))}function pe(e,t){return Ze(t)?Ge(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function fn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function dn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(J)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(J[o]||{})).forEach(i=>{const a=k(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let q=!1;function Je(e){return typeof e=="boolean"&&(q=e),q}function F(e){const t=typeof e=="string"?B(e,!0,q):e;if(t){const n=k(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Ye(e,t){const n=B(e,!0,q);if(!n)return!1;const r=k(n.provider,n.prefix);return fn(r,n.name,t)}function Ae(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),q&&!t&&!e.prefix){let o=!1;return Ze(e)&&(e.prefix="",Ge(e,(s,i)=>{i&&Ye(s,i)&&(o=!0)})),o}const n=e.prefix;if(!Q({provider:t,prefix:n,name:"a"}))return!1;const r=k(t,n);return!!pe(r,e)}function pn(e){return!!F(e)}function hn(e){const t=F(e);return t?{...z,...t}:null}function gn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,c=n[s]||(n[s]=Object.create(null)),l=c[i]||(c[i]=k(s,i));let u;a in l.icons?u=t.loaded:i===""||l.missing.has(a)?u=t.missing:u=t.pending;const d={provider:s,prefix:i,name:a};u.push(d)}),t}function Xe(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function mn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const l=c.name;if(e.icons[l])i.loaded.push({provider:r,prefix:o,name:l});else if(e.missing.has(l))i.missing.push({provider:r,prefix:o,name:l});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||Xe([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let bn=0;function yn(e,t,n){const r=bn++,o=Xe.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const ie=Object.create(null);function Pe(e,t){ie[e]=t}function ce(e){return ie[e]||ie[""]}function xn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?B(o,t,n):o;s&&r.push(s)}),r}var wn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function vn(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let h=e.resources.slice(0);for(i=[];h.length>1;){const I=Math.floor(Math.random()*h.length);i.push(h[I]),h=h.slice(0,I).concat(h.slice(I+1))}i=i.concat(h)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c="pending",l=0,u,d=null,p=[],g=[];typeof r=="function"&&g.push(r);function b(){d&&(clearTimeout(d),d=null)}function x(){c==="pending"&&(c="aborted"),b(),p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function C(h,I){I&&(g=[]),typeof h=="function"&&g.push(h)}function T(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:p.length,subscribe:C,abort:x}}function w(){c="failed",g.forEach(h=>{h(void 0,u)})}function y(){p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function O(h,I,j){const S=I!=="success";switch(p=p.filter(L=>L!==h),c){case"pending":break;case"failed":if(S||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){u=j,w();return}if(S){u=j,p.length||(i.length?v():w());return}if(b(),y(),!e.random){const L=e.resources.indexOf(h.resource);L!==-1&&L!==e.index&&(e.index=L)}c="completed",g.forEach(L=>{L(j)})}function v(){if(c!=="pending")return;b();const h=i.shift();if(h===void 0){if(p.length){d=setTimeout(()=>{b(),c==="pending"&&(y(),w())},e.timeout);return}w();return}const I={status:"pending",resource:h,callback:(j,S)=>{O(I,j,S)}};p.push(I),l++,d=setTimeout(v,e.rotate),n(h,t,I.callback)}return setTimeout(v),T}function Ke(e){const t={...wn,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,l){const u=vn(t,a,c,(d,p)=>{r(),l&&l(d,p)});return n.push(u),u}function s(a){return n.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function he(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const K=Object.create(null),_=["https://api.simplesvg.com","https://api.unisvg.com"],W=[];for(;_.length>0;)_.length===1||Math.random()>.5?W.push(_.shift()):W.push(_.pop());K[""]=he({resources:["https://api.iconify.design"].concat(W)});function je(e,t){const n=he(t);return n===null?!1:(K[e]=n,!0)}function ee(e){return K[e]}function In(){return Object.keys(K)}function ke(){}const ne=Object.create(null);function Cn(e){if(!ne[e]){const t=ee(e);if(!t)return;const n=Ke(t),r={config:t,redundancy:n};ne[e]=r}return ne[e]}function et(e,t,n){let r,o;if(typeof e=="string"){const s=ce(e);if(!s)return n(void 0,424),ke;o=s.send;const i=Cn(e);i&&(r=i.redundancy)}else{const s=he(e);if(s){r=Ke(s);const i=e.resources?e.resources[0]:"",a=ce(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),ke):r.query(t,o,n)().abort}const Le="iconify2",$="iconify",tt=$+"-count",Me=$+"-version",nt=36e5,Sn=168;function ae(e,t){try{return e.getItem(t)}catch{}}function ge(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Oe(e,t){try{e.removeItem(t)}catch{}}function le(e,t){return ge(e,tt,t.toString())}function ue(e){return parseInt(ae(e,tt))||0}const M={local:!0,session:!0},ot={local:new Set,session:new Set};let me=!1;function Tn(e){me=e}let U=typeof window>"u"?{}:window;function rt(e){const t=e+"Storage";try{if(U&&U[t]&&typeof U[t].length=="number")return U[t]}catch{}M[e]=!1}function st(e,t){const n=rt(e);if(!n)return;const r=ae(n,Me);if(r!==Le){if(r){const a=ue(n);for(let c=0;c<a;c++)Oe(n,$+c.toString())}ge(n,Me,Le),le(n,0);return}const o=Math.floor(Date.now()/nt)-Sn,s=a=>{const c=$+a.toString(),l=ae(n,c);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}Oe(n,c)}};let i=ue(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,le(n,i)):ot[e].add(a))}function it(){if(!me){Tn(!0);for(const e in M)st(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=k(r,o);if(!pe(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function An(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in M)st(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Pn(e,t){me||it();function n(r){let o;if(!M[r]||!(o=rt(r)))return;const s=ot[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ue(o),!le(o,i+1))return;const a={cached:Math.floor(Date.now()/nt),provider:e.provider,data:t};return ge(o,$+i.toString(),JSON.stringify(a))}t.lastModified&&!An(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Re(){}function jn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,mn(e)}))}function kn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=ce(n)))return;s.prepare(n,r,o).forEach(a=>{et(n,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{e.missing.add(l)});else try{const l=pe(e,c);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),Pn(e,c)}catch(l){console.error(l)}jn(e)})})}))}const be=(e,t)=>{const n=xn(e,!0,Je()),r=gn(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,Re)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===a&&l===i)return;i=l,a=u,s.push(k(l,u));const d=o[l]||(o[l]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(c=>{const{provider:l,prefix:u,name:d}=c,p=k(l,u),g=p.pendingIcons||(p.pendingIcons=new Set);g.has(d)||(g.add(d),o[l][u].push(d))}),s.forEach(c=>{const{provider:l,prefix:u}=c;o[l][u].length&&kn(c,o[l][u])}),t?yn(t,r,s):Re},Ln=e=>new Promise((t,n)=>{const r=typeof e=="string"?B(e,!0):e;if(!r){n(e);return}be([r||e],o=>{if(o.length&&r){const s=F(r);if(s){t({...z,...s});return}}n(e)})});function Mn(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(typeof t.body=="string")return{...t}}catch{}}function On(e,t){const n=typeof e=="string"?B(e,!0,!0):null;if(!n){const s=Mn(e);return{value:e,data:s}}const r=F(n);if(r!==void 0||!n.prefix)return{value:e,name:n,data:r};const o=be([n],()=>t(e,n,F(n)));return{value:e,name:n,loading:o}}function oe(e){return e.hasAttribute("inline")}let ct=!1;try{ct=navigator.vendor.indexOf("Apple")===0}catch{}function Rn(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(ct||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const _n=/(-?[0-9.]*[0-9]+[0-9.]*)/g,En=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function fe(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(_n);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=En.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const Nn=e=>e==="unset"||e==="undefined"||e==="none";function at(e,t){const n={...z,...e},r={...Qe,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(b=>{const x=[],C=b.hFlip,T=b.vFlip;let w=b.rotate;C?T?w+=2:(x.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),x.push("scale(-1 1)"),o.top=o.left=0):T&&(x.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),x.push("scale(1 -1)"),o.top=o.left=0);let y;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:y=o.height/2+o.top,x.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:x.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:y=o.width/2+o.left,x.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}w%2===1&&(o.left!==o.top&&(y=o.left,o.left=o.top,o.top=y),o.width!==o.height&&(y=o.width,o.width=o.height,o.height=y)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,l=o.height;let u,d;i===null?(d=a===null?"1em":a==="auto"?l:a,u=fe(d,c/l)):(u=i==="auto"?c:i,d=a===null?fe(u,l/c):a==="auto"?l:a);const p={},g=(b,x)=>{Nn(x)||(p[b]=x.toString())};return g("width",u),g("height",d),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:p,body:s}}const qn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Y=qn();function Fn(e){Y=e}function $n(){return Y}function zn(e,t){const n=ee(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Bn(e){return e===404}const Hn=(e,t,n)=>{const r=[],o=zn(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function Dn(e){if(typeof e=="string"){const t=ee(e);if(t)return t.path}return"/"}const Vn=(e,t,n)=>{if(!Y){n("abort",424);return}let r=Dn(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;Y(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Bn(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Un={prepare:Hn,send:Vn};function _e(e,t){switch(e){case"local":case"session":M[e]=t;break;case"all":for(const n in M)M[n]=t;break}}const re="data-style";let lt="";function Qn(e){lt=e}function Ee(e,t){let n=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(re));n||(n=document.createElement("style"),n.setAttribute(re,re),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+lt}function ut(){Pe("",Un),Je(!0);let e;try{e=window}catch{}if(e){if(it(),e.IconifyPreload!==void 0){const n=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Ae(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const n=e.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const o="IconifyProviders["+r+"] is invalid.";try{const s=n[r];if(typeof s!="object"||!s||s.resources===void 0)continue;je(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>_e(n,!0),disableCache:n=>_e(n,!1),iconExists:pn,getIcon:hn,listIcons:dn,addIcon:Ye,addCollection:Ae,calculateSize:fe,buildIcon:at,loadIcons:be,loadIcon:Ln,addAPIProvider:je,appendCustomStyle:Qn,_api:{getAPIConfig:ee,setAPIModule:Pe,sendAPIQuery:et,setFetch:Fn,getFetch:$n,listAPIProviders:In}}}function ft(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Wn(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Gn(e){return"data:image/svg+xml,"+Wn(e)}function Zn(e){return'url("'+Gn(e)+'")'}const de={"background-color":"currentColor"},dt={"background-color":"transparent"},Ne={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},qe={"-webkit-mask":de,mask:de,background:dt};for(const e in qe){const t=qe[e];for(const n in Ne)t[e+"-"+n]=Ne[n]}function Fe(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function Jn(e,t,n){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=e.attributes,i=ft(o,{...s,width:t.width+"",height:t.height+""}),a=Zn(i),c=r.style,l={"--svg":a,width:Fe(s.width),height:Fe(s.height),...n?de:dt};for(const u in l)c.setProperty(u,l[u]);return r}let N;function Yn(){try{N=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{N=null}}function Xn(e){return N===void 0&&Yn(),N?N.createHTML(e):e}function Kn(e){const t=document.createElement("span"),n=e.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const o=ft(e.body,n);return t.innerHTML=Xn(o),t.firstChild}function $e(e,t){const n=t.icon.data,r=t.customisations,o=at(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=t.renderedMode;let i;switch(s){case"svg":i=Kn(o);break;default:i=Jn(o,{...z,...n},s==="mask")}const a=Array.from(e.childNodes).find(c=>{const l=c.tagName&&c.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):e.replaceChild(i,a):e.appendChild(i)}function ze(e,t,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:r}}function eo(e="iconify-icon"){let t,n;try{t=window.customElements,n=window.HTMLElement}catch{return}if(!t||!n)return;const r=t.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends n{constructor(){super();D(this,"_shadowRoot");D(this,"_state");D(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=oe(this);Ee(c,l),this._state=ze({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=oe(this),u=this._state;l!==u.inline&&(u.inline=l,Ee(this._shadowRoot,l))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return oe(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const l=this._shadowRoot;if(c.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}$e(l,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,l=this.getAttribute("icon");if(l!==c.icon.value){this._iconChanged(l);return}if(!c.rendered)return;const u=this.getAttribute("mode"),d=Se(this);(c.attrMode!==u||rn(c.customisations,d))&&this._renderIcon(c.icon,d,u)}_iconChanged(c){const l=On(c,(u,d,p)=>{const g=this._state;if(g.rendered||this.getAttribute("icon")!==u)return;const b={value:u,name:d,data:p};b.data?this._gotIconData(b):g.icon=b});l.data?this._gotIconData(l):this._state=ze(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,Se(this),this.getAttribute("mode"))}_renderIcon(c,l,u){const d=Rn(c.data.body,u),p=this._state.inline;$e(this._shadowRoot,this._state={rendered:!0,icon:c,inline:p,customisations:l,attrMode:u,renderedMode:d})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=ut();for(const a in i)s[a]=s.prototype[a]=i[a];return t.define(e,s),s}eo()||ut();const to=f.shape({appLogo:f.node,appName:f.string,theme:f.shape({background:f.string}),enableConnect:f.bool,enableLocale:f.bool,navigation:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object]),icon:f.string,items:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object])}))}))}),pt=f.shape({showText:f.bool,showRole:f.bool,switchDid:f.bool,switchProfile:f.bool,switchPassport:f.bool,disableLogout:f.bool,onLogin:f.func,onLogout:f.func,onSwitchDid:f.func,onSwitchProfile:f.func,onSwitchPassport:f.func,menu:f.array,menuRender:f.func,dark:f.bool,size:f.number}),H=(e,t,n="children")=>e.map(r=>Array.isArray(r[n])?t({...r,[n]:H(r[n],t,n)}):t(r)),no=(e,t="children")=>{const n=[];return H(e,r=>n.push(r),t),n},ye=(e,t,n="children")=>e.map(r=>({...r})).filter(r=>{const o=r[n];if(Array.isArray(o)){const i=ye(o,t,n);r[n]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[n],isLeaf:!(o!=null&&o.length)};return t(r,s)}),oo=e=>/^https?:\/\//.test(e),wo=e=>/^[\w-]+:[\w-]+$/.test(e),ro=e=>{if(!e||!(e!=null&&e.startsWith("/")))return!1;const t=o=>o.endsWith("/")?o:`${o}/`,n=t(window.location.pathname),r=t(new URL(e,window.location.origin).pathname);return n.startsWith(r)},so=(e=[])=>{const t=e.map((r,o)=>({path:r,index:o})).filter(r=>ro(r.path));return t!=null&&t.length?t.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,t[0]).index:-1};var Be,He;const X=((Be=window==null?void 0:window.blocklet)==null?void 0:Be.groupPrefix)||((He=window==null?void 0:window.blocklet)==null?void 0:He.prefix)||"/",io=e=>{const t={...e},n=e==null?void 0:e.background;return typeof n=="string"?t.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(t.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),t},ht=(e,t="en")=>{if(!(e!=null&&e.length))return e;const n=(o,s)=>typeof o=="string"?o:typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,r=(o,s)=>{if(typeof o=="string"){if(oo(o)){const a=new URL(o);return a.searchParams.set("locale",s),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",s),i.pathname+i.search}return typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return H(e,o=>{var s;return{...o,title:n(o.title,t),link:(s=o.items)!=null&&s.length?o.link:r(o.link,t),_rawLink:o.link}},"items")},co=e=>H(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),ao=e=>{if(!(e!=null&&e.length))return null;const t=co(e),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return t.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=n[s])==null||i.push(r)}):typeof r.section=="string"&&((o=n[r.section])==null||o.push(r)):n.header.push(r)}),n},lo=e=>{if(!e)return null;const t={...e};return t.theme=io(t.theme),t.navigation=ao(uo(t.navigation)),t},uo=(e=[])=>ye(e,(t,n)=>{var r;return!!t.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),gt=(e,t)=>ye(e,(n,r)=>{var s;const o=!n.role||t&&n.role.includes(t);return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items"),fo={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},po={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function xe({session:e,locale:t,size:n}){const r=(window==null?void 0:window.blocklet)||{},o=(r.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var l;return!!((c==null?void 0:c.role)||[]).includes(((l=e==null?void 0:e.user)==null?void 0:l.role)||"guest")}).map(c=>{const l=((r==null?void 0:r.componentMountPoints)||[]).find(u=>c.component===u.name);return{...c,component:l}}),s=A.useRef(null),i=Pt({open:!1}),a=jt((c=!i.open)=>{i.open=c});return o.length===0||!(e!=null&&e.user)?null:m.jsxs(m.Fragment,{children:[m.jsx(kt,{size:"medium",ref:s,onClick:()=>a(),children:m.jsx(Ce,{icon:fo,fontSize:n,style:{transform:"scale(1.08)"}})}),m.jsx(Lt,{open:i.open,onClose:()=>a(!1),anchorEl:s.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>m.jsx(Mt,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:m.jsx(Ot,{...c,timeout:350,children:m.jsxs(Rt,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:P.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${P.gray6}, 0px 0px 0px 1px ${P.gray6}`},children:[m.jsx(_t,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:o.map(l=>{var u,d;return m.jsx(Qt,{disablePadding:!0,children:m.jsxs(Kt,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:P.surfacePrimarySubtitle}},children:[(u=l==null?void 0:l.component)!=null&&u.did?m.jsx(Et,{component:"img",src:`${Nt}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):m.jsx(Ce,{fontSize:50,icon:l.icon||po,color:P.textSubtitle}),m.jsx(qt,{sx:{fontSize:"12px",color:P.textBase,textAlign:"center",lineHeight:"normal"},children:((d=l.title)==null?void 0:d.zh)||l.title})]})},l.id)})}),m.jsx(Ft,{session:e,children:m.jsx($t,{variant:"outlined",fullWidth:!0,href:zt,sx:{mt:1,borderRadius:2,color:P.textBase,borderColor:P.lineBorderStrong,"&:hover":{color:P.primaryBase,borderColor:P.primaryBase}},children:t==="zh"?"管理":"Manage"})})]})})})})]})}xe.propTypes={session:f.object.isRequired,locale:f.string,size:f.number};xe.defaultProps={locale:"en",size:24};function we({formattedBlocklet:e,addons:t,sessionManagerProps:n}){var p,g,b,x;const r=A.useContext(De),{locale:o}=Ve()||{},{enableConnect:s=!0,enableLocale:i=!0}=e,a=!!((p=r==null?void 0:r.session)!=null&&p.user);let c=ht((g=e==null?void 0:e.navigation)==null?void 0:g.sessionManager,o)||[];c=gt(c,(x=(b=r==null?void 0:r.session)==null?void 0:b.user)==null?void 0:x.role);const u=(()=>{if(t&&typeof t!="function")return Array.isArray(t)?t:[t];let C=[];if(i&&o&&C.push(m.jsx(Wt,{showText:!1},"locale-selector")),s&&r){const T=[];a&&(c?c.slice(0,5):[]).forEach(y=>{T.push({label:y.title,icon:y.icon?m.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),C.push(m.jsx(xe,{session:r.session,locale:o},"session-blocklet")),C.push(m.jsx(Bt,{session:r.session,locale:o,menu:T,showRole:!0,...n},"session-user"))}return typeof t=="function"&&(C=t(C)||[]),C})();return A.createElement(m.Fragment,null,...Array.isArray(u)?u:[u])}we.propTypes={formattedBlocklet:f.object.isRequired,addons:f.oneOfType([f.func,f.node]),sessionManagerProps:pt};we.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const ho=()=>{const e=Ht();A.useEffect(()=>{e.wallet&&Dt(()=>import("./index-8IYt6Tm_.js").then(t=>t.i),__vite__mapDeps([0,1,2])).then(t=>{t.call||(t=t.default),t.call("arcHideTopBar","{}")}).catch(t=>{console.error("load dsbridge error",t)})},[e])};function mt({meta:e,fallbackUrl:t,invalidPathFallback:n,headerAddons:r,sessionManagerProps:o,links:s,...i}){var O;ho();const a=A.useContext(De),c=(O=a==null?void 0:a.session)==null?void 0:O.user,l=c==null?void 0:c.role,{locale:u}=Ve()||{},d=A.useMemo(()=>{const v=Object.assign({},window.blocklet,e);try{return lo(v)}catch(h){return console.error("Failed to format blocklet info",h,v),v}},[e]),{localizedNav:p,flattened:g,matchedIndex:b}=A.useMemo(()=>{var j;let v=ht((j=d==null?void 0:d.navigation)==null?void 0:j.dashboard,u)||[];v=gt(v,l),v=H(v,S=>({title:S.title,url:S.link,icon:S.icon?m.jsx("iconify-icon",{height:"100%",width:"100%",icon:S.icon}):null,external:!0,children:S.items}),"items");const h=no(v).filter(S=>!!S.url),I=so(h.map(S=>S.url));return I!==-1&&(h[I].active=!0),{localizedNav:v,flattened:h,matchedIndex:I}},[d,u,l]),x=typeof s=="function"?s(p):[...p,...s];if(A.useLayoutEffect(()=>{c&&!(g!=null&&g.length)&&t&&(window.location.href=t)},[t]),A.useLayoutEffect(()=>{var v;c&&(g!=null&&g.length)&&b===-1&&(n?n():window.location.href=((v=g[0])==null?void 0:v.url)||X)},[n,g,b]),!d.appName)return null;const{appLogo:C,appLogoRect:T,appName:w}=d,y=m.jsx(we,{formattedBlocklet:d,addons:r,sessionManagerProps:o});return m.jsx(Vt,{title:w,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:X,logo:m.jsx("img",{src:T||C,alt:"logo"}),addons:y,...i.headerProps}})}mt.propTypes={meta:to,fallbackUrl:f.string,invalidPathFallback:f.func,headerAddons:f.oneOfType([f.func,f.node]),sessionManagerProps:pt,links:f.oneOfType([f.array,f.func])};mt.defaultProps={meta:{},fallbackUrl:X,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=X}},links:[]};export{mt as D,we as H,Kt as L,wo as a,to as b,no as c,so as d,lo as f,ht as g,oo as i,H as m,X as p,pt as s,ho as u};
|
|
11
|
+
*/const Ue=Object.freeze({left:0,top:0,width:16,height:16}),Z=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),z=Object.freeze({...Ue,...Z}),se=Object.freeze({...z,body:"",hidden:!1}),en=Object.freeze({width:null,height:null}),Qe=Object.freeze({...en,...Z});function tn(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const nn=/[\s,]+/;function on(e,t){t.split(nn).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const We={...Qe,preserveAspectRatio:""};function Se(e){const t={...We},n=(r,o)=>e.getAttribute(r)||o;return t.width=n("width",null),t.height=n("height",null),t.rotate=tn(n("rotate","")),on(t,n("flip","")),t.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),t}function rn(e,t){for(const n in We)if(e[n]!==t[n])return!0;return!1}const E=/^[a-z0-9]+(-[a-z0-9]+)*$/,B=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),l={provider:o.length>0?o[0]:r,prefix:c,name:a};return t&&!Q(l)?null:l}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Q(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!Q(a,n)?null:a}return null},Q=(e,t)=>e?!!((e.provider===""||e.provider.match(E))&&(t&&e.prefix===""||e.prefix.match(E))&&e.name.match(E)):!1;function sn(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Te(e,t){const n=sn(e,t);for(const r in se)r in Z?r in e&&!(r in n)&&(n[r]=Z[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function cn(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function an(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=Te(r[a]||o[a],s)}return i(t),n.forEach(i),Te(e,s)}function Ge(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=cn(e);for(const o in r){const s=r[o];s&&(t(o,an(e,o,s)),n.push(o))}return n}const ln={provider:"",aliases:{},not_found:{},...Ue};function te(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Ze(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!te(e,ln))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(E)||typeof s.body!="string"||!te(s,se))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(E)||typeof i!="string"||!n[i]&&!r[i]||!te(s,se))return null}return t}const J=Object.create(null);function un(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function k(e,t){const n=J[e]||(J[e]=Object.create(null));return n[t]||(n[t]=un(e,t))}function pe(e,t){return Ze(t)?Ge(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function fn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function dn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(J)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(J[o]||{})).forEach(i=>{const a=k(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let q=!1;function Je(e){return typeof e=="boolean"&&(q=e),q}function F(e){const t=typeof e=="string"?B(e,!0,q):e;if(t){const n=k(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Ye(e,t){const n=B(e,!0,q);if(!n)return!1;const r=k(n.provider,n.prefix);return fn(r,n.name,t)}function Ae(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),q&&!t&&!e.prefix){let o=!1;return Ze(e)&&(e.prefix="",Ge(e,(s,i)=>{i&&Ye(s,i)&&(o=!0)})),o}const n=e.prefix;if(!Q({provider:t,prefix:n,name:"a"}))return!1;const r=k(t,n);return!!pe(r,e)}function pn(e){return!!F(e)}function hn(e){const t=F(e);return t?{...z,...t}:null}function gn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,c=n[s]||(n[s]=Object.create(null)),l=c[i]||(c[i]=k(s,i));let u;a in l.icons?u=t.loaded:i===""||l.missing.has(a)?u=t.missing:u=t.pending;const d={provider:s,prefix:i,name:a};u.push(d)}),t}function Xe(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function mn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const l=c.name;if(e.icons[l])i.loaded.push({provider:r,prefix:o,name:l});else if(e.missing.has(l))i.missing.push({provider:r,prefix:o,name:l});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||Xe([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let bn=0;function yn(e,t,n){const r=bn++,o=Xe.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const ie=Object.create(null);function Pe(e,t){ie[e]=t}function ce(e){return ie[e]||ie[""]}function xn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?B(o,t,n):o;s&&r.push(s)}),r}var wn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function vn(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let h=e.resources.slice(0);for(i=[];h.length>1;){const I=Math.floor(Math.random()*h.length);i.push(h[I]),h=h.slice(0,I).concat(h.slice(I+1))}i=i.concat(h)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c="pending",l=0,u,d=null,p=[],g=[];typeof r=="function"&&g.push(r);function b(){d&&(clearTimeout(d),d=null)}function x(){c==="pending"&&(c="aborted"),b(),p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function C(h,I){I&&(g=[]),typeof h=="function"&&g.push(h)}function T(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:p.length,subscribe:C,abort:x}}function w(){c="failed",g.forEach(h=>{h(void 0,u)})}function y(){p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function O(h,I,j){const S=I!=="success";switch(p=p.filter(L=>L!==h),c){case"pending":break;case"failed":if(S||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){u=j,w();return}if(S){u=j,p.length||(i.length?v():w());return}if(b(),y(),!e.random){const L=e.resources.indexOf(h.resource);L!==-1&&L!==e.index&&(e.index=L)}c="completed",g.forEach(L=>{L(j)})}function v(){if(c!=="pending")return;b();const h=i.shift();if(h===void 0){if(p.length){d=setTimeout(()=>{b(),c==="pending"&&(y(),w())},e.timeout);return}w();return}const I={status:"pending",resource:h,callback:(j,S)=>{O(I,j,S)}};p.push(I),l++,d=setTimeout(v,e.rotate),n(h,t,I.callback)}return setTimeout(v),T}function Ke(e){const t={...wn,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,l){const u=vn(t,a,c,(d,p)=>{r(),l&&l(d,p)});return n.push(u),u}function s(a){return n.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function he(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const K=Object.create(null),_=["https://api.simplesvg.com","https://api.unisvg.com"],W=[];for(;_.length>0;)_.length===1||Math.random()>.5?W.push(_.shift()):W.push(_.pop());K[""]=he({resources:["https://api.iconify.design"].concat(W)});function je(e,t){const n=he(t);return n===null?!1:(K[e]=n,!0)}function ee(e){return K[e]}function In(){return Object.keys(K)}function ke(){}const ne=Object.create(null);function Cn(e){if(!ne[e]){const t=ee(e);if(!t)return;const n=Ke(t),r={config:t,redundancy:n};ne[e]=r}return ne[e]}function et(e,t,n){let r,o;if(typeof e=="string"){const s=ce(e);if(!s)return n(void 0,424),ke;o=s.send;const i=Cn(e);i&&(r=i.redundancy)}else{const s=he(e);if(s){r=Ke(s);const i=e.resources?e.resources[0]:"",a=ce(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),ke):r.query(t,o,n)().abort}const Le="iconify2",$="iconify",tt=$+"-count",Me=$+"-version",nt=36e5,Sn=168;function ae(e,t){try{return e.getItem(t)}catch{}}function ge(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Oe(e,t){try{e.removeItem(t)}catch{}}function le(e,t){return ge(e,tt,t.toString())}function ue(e){return parseInt(ae(e,tt))||0}const M={local:!0,session:!0},ot={local:new Set,session:new Set};let me=!1;function Tn(e){me=e}let U=typeof window>"u"?{}:window;function rt(e){const t=e+"Storage";try{if(U&&U[t]&&typeof U[t].length=="number")return U[t]}catch{}M[e]=!1}function st(e,t){const n=rt(e);if(!n)return;const r=ae(n,Me);if(r!==Le){if(r){const a=ue(n);for(let c=0;c<a;c++)Oe(n,$+c.toString())}ge(n,Me,Le),le(n,0);return}const o=Math.floor(Date.now()/nt)-Sn,s=a=>{const c=$+a.toString(),l=ae(n,c);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}Oe(n,c)}};let i=ue(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,le(n,i)):ot[e].add(a))}function it(){if(!me){Tn(!0);for(const e in M)st(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=k(r,o);if(!pe(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function An(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in M)st(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Pn(e,t){me||it();function n(r){let o;if(!M[r]||!(o=rt(r)))return;const s=ot[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ue(o),!le(o,i+1))return;const a={cached:Math.floor(Date.now()/nt),provider:e.provider,data:t};return ge(o,$+i.toString(),JSON.stringify(a))}t.lastModified&&!An(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Re(){}function jn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,mn(e)}))}function kn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=ce(n)))return;s.prepare(n,r,o).forEach(a=>{et(n,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{e.missing.add(l)});else try{const l=pe(e,c);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),Pn(e,c)}catch(l){console.error(l)}jn(e)})})}))}const be=(e,t)=>{const n=xn(e,!0,Je()),r=gn(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,Re)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===a&&l===i)return;i=l,a=u,s.push(k(l,u));const d=o[l]||(o[l]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(c=>{const{provider:l,prefix:u,name:d}=c,p=k(l,u),g=p.pendingIcons||(p.pendingIcons=new Set);g.has(d)||(g.add(d),o[l][u].push(d))}),s.forEach(c=>{const{provider:l,prefix:u}=c;o[l][u].length&&kn(c,o[l][u])}),t?yn(t,r,s):Re},Ln=e=>new Promise((t,n)=>{const r=typeof e=="string"?B(e,!0):e;if(!r){n(e);return}be([r||e],o=>{if(o.length&&r){const s=F(r);if(s){t({...z,...s});return}}n(e)})});function Mn(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(typeof t.body=="string")return{...t}}catch{}}function On(e,t){const n=typeof e=="string"?B(e,!0,!0):null;if(!n){const s=Mn(e);return{value:e,data:s}}const r=F(n);if(r!==void 0||!n.prefix)return{value:e,name:n,data:r};const o=be([n],()=>t(e,n,F(n)));return{value:e,name:n,loading:o}}function oe(e){return e.hasAttribute("inline")}let ct=!1;try{ct=navigator.vendor.indexOf("Apple")===0}catch{}function Rn(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(ct||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const _n=/(-?[0-9.]*[0-9]+[0-9.]*)/g,En=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function fe(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(_n);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=En.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const Nn=e=>e==="unset"||e==="undefined"||e==="none";function at(e,t){const n={...z,...e},r={...Qe,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(b=>{const x=[],C=b.hFlip,T=b.vFlip;let w=b.rotate;C?T?w+=2:(x.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),x.push("scale(-1 1)"),o.top=o.left=0):T&&(x.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),x.push("scale(1 -1)"),o.top=o.left=0);let y;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:y=o.height/2+o.top,x.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:x.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:y=o.width/2+o.left,x.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}w%2===1&&(o.left!==o.top&&(y=o.left,o.left=o.top,o.top=y),o.width!==o.height&&(y=o.width,o.width=o.height,o.height=y)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,l=o.height;let u,d;i===null?(d=a===null?"1em":a==="auto"?l:a,u=fe(d,c/l)):(u=i==="auto"?c:i,d=a===null?fe(u,l/c):a==="auto"?l:a);const p={},g=(b,x)=>{Nn(x)||(p[b]=x.toString())};return g("width",u),g("height",d),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:p,body:s}}const qn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Y=qn();function Fn(e){Y=e}function $n(){return Y}function zn(e,t){const n=ee(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Bn(e){return e===404}const Hn=(e,t,n)=>{const r=[],o=zn(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function Dn(e){if(typeof e=="string"){const t=ee(e);if(t)return t.path}return"/"}const Vn=(e,t,n)=>{if(!Y){n("abort",424);return}let r=Dn(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;Y(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Bn(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Un={prepare:Hn,send:Vn};function _e(e,t){switch(e){case"local":case"session":M[e]=t;break;case"all":for(const n in M)M[n]=t;break}}const re="data-style";let lt="";function Qn(e){lt=e}function Ee(e,t){let n=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(re));n||(n=document.createElement("style"),n.setAttribute(re,re),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+lt}function ut(){Pe("",Un),Je(!0);let e;try{e=window}catch{}if(e){if(it(),e.IconifyPreload!==void 0){const n=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Ae(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const n=e.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const o="IconifyProviders["+r+"] is invalid.";try{const s=n[r];if(typeof s!="object"||!s||s.resources===void 0)continue;je(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>_e(n,!0),disableCache:n=>_e(n,!1),iconExists:pn,getIcon:hn,listIcons:dn,addIcon:Ye,addCollection:Ae,calculateSize:fe,buildIcon:at,loadIcons:be,loadIcon:Ln,addAPIProvider:je,appendCustomStyle:Qn,_api:{getAPIConfig:ee,setAPIModule:Pe,sendAPIQuery:et,setFetch:Fn,getFetch:$n,listAPIProviders:In}}}function ft(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Wn(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Gn(e){return"data:image/svg+xml,"+Wn(e)}function Zn(e){return'url("'+Gn(e)+'")'}const de={"background-color":"currentColor"},dt={"background-color":"transparent"},Ne={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},qe={"-webkit-mask":de,mask:de,background:dt};for(const e in qe){const t=qe[e];for(const n in Ne)t[e+"-"+n]=Ne[n]}function Fe(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function Jn(e,t,n){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=e.attributes,i=ft(o,{...s,width:t.width+"",height:t.height+""}),a=Zn(i),c=r.style,l={"--svg":a,width:Fe(s.width),height:Fe(s.height),...n?de:dt};for(const u in l)c.setProperty(u,l[u]);return r}let N;function Yn(){try{N=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{N=null}}function Xn(e){return N===void 0&&Yn(),N?N.createHTML(e):e}function Kn(e){const t=document.createElement("span"),n=e.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const o=ft(e.body,n);return t.innerHTML=Xn(o),t.firstChild}function $e(e,t){const n=t.icon.data,r=t.customisations,o=at(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=t.renderedMode;let i;switch(s){case"svg":i=Kn(o);break;default:i=Jn(o,{...z,...n},s==="mask")}const a=Array.from(e.childNodes).find(c=>{const l=c.tagName&&c.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):e.replaceChild(i,a):e.appendChild(i)}function ze(e,t,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:r}}function eo(e="iconify-icon"){let t,n;try{t=window.customElements,n=window.HTMLElement}catch{return}if(!t||!n)return;const r=t.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends n{constructor(){super();D(this,"_shadowRoot");D(this,"_state");D(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=oe(this);Ee(c,l),this._state=ze({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=oe(this),u=this._state;l!==u.inline&&(u.inline=l,Ee(this._shadowRoot,l))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return oe(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const l=this._shadowRoot;if(c.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}$e(l,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,l=this.getAttribute("icon");if(l!==c.icon.value){this._iconChanged(l);return}if(!c.rendered)return;const u=this.getAttribute("mode"),d=Se(this);(c.attrMode!==u||rn(c.customisations,d))&&this._renderIcon(c.icon,d,u)}_iconChanged(c){const l=On(c,(u,d,p)=>{const g=this._state;if(g.rendered||this.getAttribute("icon")!==u)return;const b={value:u,name:d,data:p};b.data?this._gotIconData(b):g.icon=b});l.data?this._gotIconData(l):this._state=ze(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,Se(this),this.getAttribute("mode"))}_renderIcon(c,l,u){const d=Rn(c.data.body,u),p=this._state.inline;$e(this._shadowRoot,this._state={rendered:!0,icon:c,inline:p,customisations:l,attrMode:u,renderedMode:d})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=ut();for(const a in i)s[a]=s.prototype[a]=i[a];return t.define(e,s),s}eo()||ut();const to=f.shape({appLogo:f.node,appName:f.string,theme:f.shape({background:f.string}),enableConnect:f.bool,enableLocale:f.bool,navigation:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object]),icon:f.string,items:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object])}))}))}),pt=f.shape({showText:f.bool,showRole:f.bool,switchDid:f.bool,switchProfile:f.bool,switchPassport:f.bool,disableLogout:f.bool,onLogin:f.func,onLogout:f.func,onSwitchDid:f.func,onSwitchProfile:f.func,onSwitchPassport:f.func,menu:f.array,menuRender:f.func,dark:f.bool,size:f.number}),H=(e,t,n="children")=>e.map(r=>Array.isArray(r[n])?t({...r,[n]:H(r[n],t,n)}):t(r)),no=(e,t="children")=>{const n=[];return H(e,r=>n.push(r),t),n},ye=(e,t,n="children")=>e.map(r=>({...r})).filter(r=>{const o=r[n];if(Array.isArray(o)){const i=ye(o,t,n);r[n]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[n],isLeaf:!(o!=null&&o.length)};return t(r,s)}),oo=e=>/^https?:\/\//.test(e),wo=e=>/^[\w-]+:[\w-]+$/.test(e),ro=e=>{if(!e||!(e!=null&&e.startsWith("/")))return!1;const t=o=>o.endsWith("/")?o:`${o}/`,n=t(window.location.pathname),r=t(new URL(e,window.location.origin).pathname);return n.startsWith(r)},so=(e=[])=>{const t=e.map((r,o)=>({path:r,index:o})).filter(r=>ro(r.path));return t!=null&&t.length?t.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,t[0]).index:-1};var Be,He;const X=((Be=window==null?void 0:window.blocklet)==null?void 0:Be.groupPrefix)||((He=window==null?void 0:window.blocklet)==null?void 0:He.prefix)||"/",io=e=>{const t={...e},n=e==null?void 0:e.background;return typeof n=="string"?t.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(t.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),t},ht=(e,t="en")=>{if(!(e!=null&&e.length))return e;const n=(o,s)=>typeof o=="string"?o:typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,r=(o,s)=>{if(typeof o=="string"){if(oo(o)){const a=new URL(o);return a.searchParams.set("locale",s),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",s),i.pathname+i.search}return typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return H(e,o=>{var s;return{...o,title:n(o.title,t),link:(s=o.items)!=null&&s.length?o.link:r(o.link,t),_rawLink:o.link}},"items")},co=e=>H(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),ao=e=>{if(!(e!=null&&e.length))return null;const t=co(e),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return t.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=n[s])==null||i.push(r)}):typeof r.section=="string"&&((o=n[r.section])==null||o.push(r)):n.header.push(r)}),n},lo=e=>{if(!e)return null;const t={...e};return t.theme=io(t.theme),t.navigation=ao(uo(t.navigation)),t},uo=(e=[])=>ye(e,(t,n)=>{var r;return!!t.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),gt=(e,t)=>ye(e,(n,r)=>{var s;const o=!n.role||t&&n.role.includes(t);return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items"),fo={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},po={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function xe({session:e,locale:t,size:n}){const r=(window==null?void 0:window.blocklet)||{},o=(r.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var l;return!!((c==null?void 0:c.role)||[]).includes(((l=e==null?void 0:e.user)==null?void 0:l.role)||"guest")}).map(c=>{const l=((r==null?void 0:r.componentMountPoints)||[]).find(u=>c.component===u.name);return{...c,component:l}}),s=A.useRef(null),i=Pt({open:!1}),a=jt((c=!i.open)=>{i.open=c});return o.length===0||!(e!=null&&e.user)?null:m.jsxs(m.Fragment,{children:[m.jsx(kt,{size:"medium",ref:s,onClick:()=>a(),children:m.jsx(Ce,{icon:fo,fontSize:n,style:{transform:"scale(1.08)"}})}),m.jsx(Lt,{open:i.open,onClose:()=>a(!1),anchorEl:s.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>m.jsx(Mt,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:m.jsx(Ot,{...c,timeout:350,children:m.jsxs(Rt,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:P.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${P.gray6}, 0px 0px 0px 1px ${P.gray6}`},children:[m.jsx(_t,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:o.map(l=>{var u,d;return m.jsx(Qt,{disablePadding:!0,children:m.jsxs(Kt,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:P.surfacePrimarySubtitle}},children:[(u=l==null?void 0:l.component)!=null&&u.did?m.jsx(Et,{component:"img",src:`${Nt}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):m.jsx(Ce,{fontSize:50,icon:l.icon||po,color:P.textSubtitle}),m.jsx(qt,{sx:{fontSize:"12px",color:P.textBase,textAlign:"center",lineHeight:"normal"},children:((d=l.title)==null?void 0:d.zh)||l.title})]})},l.id)})}),m.jsx(Ft,{session:e,children:m.jsx($t,{variant:"outlined",fullWidth:!0,href:zt,sx:{mt:1,borderRadius:2,color:P.textBase,borderColor:P.lineBorderStrong,"&:hover":{color:P.primaryBase,borderColor:P.primaryBase}},children:t==="zh"?"管理":"Manage"})})]})})})})]})}xe.propTypes={session:f.object.isRequired,locale:f.string,size:f.number};xe.defaultProps={locale:"en",size:24};function we({formattedBlocklet:e,addons:t,sessionManagerProps:n}){var p,g,b,x;const r=A.useContext(De),{locale:o}=Ve()||{},{enableConnect:s=!0,enableLocale:i=!0}=e,a=!!((p=r==null?void 0:r.session)!=null&&p.user);let c=ht((g=e==null?void 0:e.navigation)==null?void 0:g.sessionManager,o)||[];c=gt(c,(x=(b=r==null?void 0:r.session)==null?void 0:b.user)==null?void 0:x.role);const u=(()=>{if(t&&typeof t!="function")return Array.isArray(t)?t:[t];let C=[];if(i&&o&&C.push(m.jsx(Wt,{showText:!1},"locale-selector")),s&&r){const T=[];a&&(c?c.slice(0,5):[]).forEach(y=>{T.push({label:y.title,icon:y.icon?m.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),C.push(m.jsx(xe,{session:r.session,locale:o},"session-blocklet")),C.push(m.jsx(Bt,{session:r.session,locale:o,menu:T,showRole:!0,...n},"session-user"))}return typeof t=="function"&&(C=t(C)||[]),C})();return A.createElement(m.Fragment,null,...Array.isArray(u)?u:[u])}we.propTypes={formattedBlocklet:f.object.isRequired,addons:f.oneOfType([f.func,f.node]),sessionManagerProps:pt};we.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const ho=()=>{const e=Ht();A.useEffect(()=>{e.wallet&&Dt(()=>import("./index-VcmnR0mp.js").then(t=>t.i),__vite__mapDeps([0,1,2])).then(t=>{t.call||(t=t.default),t.call("arcHideTopBar","{}")}).catch(t=>{console.error("load dsbridge error",t)})},[e])};function mt({meta:e,fallbackUrl:t,invalidPathFallback:n,headerAddons:r,sessionManagerProps:o,links:s,...i}){var O;ho();const a=A.useContext(De),c=(O=a==null?void 0:a.session)==null?void 0:O.user,l=c==null?void 0:c.role,{locale:u}=Ve()||{},d=A.useMemo(()=>{const v=Object.assign({},window.blocklet,e);try{return lo(v)}catch(h){return console.error("Failed to format blocklet info",h,v),v}},[e]),{localizedNav:p,flattened:g,matchedIndex:b}=A.useMemo(()=>{var j;let v=ht((j=d==null?void 0:d.navigation)==null?void 0:j.dashboard,u)||[];v=gt(v,l),v=H(v,S=>({title:S.title,url:S.link,icon:S.icon?m.jsx("iconify-icon",{height:"100%",width:"100%",icon:S.icon}):null,external:!0,children:S.items}),"items");const h=no(v).filter(S=>!!S.url),I=so(h.map(S=>S.url));return I!==-1&&(h[I].active=!0),{localizedNav:v,flattened:h,matchedIndex:I}},[d,u,l]),x=typeof s=="function"?s(p):[...p,...s];if(A.useLayoutEffect(()=>{c&&!(g!=null&&g.length)&&t&&(window.location.href=t)},[t]),A.useLayoutEffect(()=>{var v;c&&(g!=null&&g.length)&&b===-1&&(n?n():window.location.href=((v=g[0])==null?void 0:v.url)||X)},[n,g,b]),!d.appName)return null;const{appLogo:C,appLogoRect:T,appName:w}=d,y=m.jsx(we,{formattedBlocklet:d,addons:r,sessionManagerProps:o});return m.jsx(Vt,{title:w,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:X,logo:m.jsx("img",{src:T||C,alt:"logo"}),addons:y,...i.headerProps}})}mt.propTypes={meta:to,fallbackUrl:f.string,invalidPathFallback:f.func,headerAddons:f.oneOfType([f.func,f.node]),sessionManagerProps:pt,links:f.oneOfType([f.array,f.func])};mt.defaultProps={meta:{},fallbackUrl:X,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=X}},links:[]};export{mt as D,we as H,Kt as L,wo as a,to as b,no as c,so as d,lo as f,ht as g,oo as i,H as m,X as p,pt as s,ho as u};
|
|
12
12
|
function __vite__mapDeps(indexes) {
|
|
13
13
|
if (!__vite__mapDeps.viteFileDeps) {
|
|
14
|
-
__vite__mapDeps.viteFileDeps = ["assets/index-
|
|
14
|
+
__vite__mapDeps.viteFileDeps = ["assets/index-VcmnR0mp.js","assets/index-D7dMTham.js","assets/index-TCTrVMXW.css"]
|
|
15
15
|
}
|
|
16
16
|
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
17
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as y,j as t,fz as $t,h as Bt,fA as zt,aY as W,u as H,T as te,b3 as Ie,fB as Ae,bn as ce,ao as X,W as $,S as ne,P as h,R as M,bK as Mt,dw as Oe,y as Wt,du as qt,d2 as Kt,U as de,B as E,bq as G,o as se,fC as Ht,a5 as le,dc as Vt,aZ as ft,x as z,a as pe,bG as gt,c as rt,H as Xt,fD as ht,bB as vt,b6 as Gt,i as Qt,A as Yt,dd as Zt}from"./index-o710KUFS.js";import{c as Jt}from"./index-bXBQKCg5.js";import{d as fe}from"./Add-cHlB2aT1.js";import{d as er}from"./Loop-eMhEddk0.js";import{L as tr,S as rr,d as xt}from"./list-header-YBNntNYI.js";import{D as yt,g as nr}from"./index-8VBxs9u3.js";import{u as V,d as nt,W as bt}from"./dashboard-D4mJn4NA.js";import{W as ke}from"./did-address-ECHkrvY7.js";import{P as K}from"./permission--6GIxgou.js";import{D as Ee,A as re,f as Q}from"./index-r3XMu1Ks.js";import{C as ve}from"./click-to-copy-LXhBTX9X.js";import{F as jt}from"./FormControl-oOR29lpJ.js";import{I as St}from"./InputLabel-tixiiB_7.js";import{S as Ct}from"./Select-pRXRwWUr.js";import{T as wt}from"./TextField-ZyGIim97.js";import{_ as sr}from"./useAsync-cflFULKW.js";import{T as or}from"./index-IpFMsnoW.js";import{I as De}from"./index-saPuhMhh.js";import{C as xe,L as ir,a as ar}from"./confirm-yrg6H3m3.js";import{d as Pt}from"./RevokeIcon-Y9PaByDx.js";import{u as Rt}from"./session-QnPtqbmu.js";import{A as cr}from"./Avatar-fSw3xwrG.js";import{d as lr}from"./useSetState-LqZ6-yZ8.js";import{A as dr}from"./actions-xNOsUM5q.js";import{F as mr}from"./FormControlLabel-L3cnXbG5.js";import{C as ur}from"./Checkbox--mmHc71j.js";import"./Search-u7box4_Y.js";import"./FilterList-aeaSrubq.js";import"./TableRow-Cj_2GgNk.js";import"./toPropertyKey-NzAT2yhV.js";import"./useFormControl-FTiWn0ol.js";import"./FormGroup-7rC8tk9C.js";import"./LastPage-SxjDnWfh.js";import"./Toolbar-doxZSzMe.js";import"./index-JYhe2G5y.js";import"./redux-XOuz_cVf.js";import"./Grid-7TNNvUm7.js";import"./MoreVert-y0nkhqA-.js";import"./useLocalStorage-ieO-IiCr.js";import"./PlayArrow-OaVVr0ni.js";import"./Alert-MdJYBFVy.js";import"./useSlot-Q68JwoxM.js";import"./ButtonGroup-rkDf74jq.js";import"./RadioGroup-37HVwVTv.js";import"./spaces-qMnDTN0_.js";import"./index-BV6xFdZD.js";import"./index-fjKBcmH5.js";import"./api-oD_O5CWe.js";import"./Link-kO4yy9NY.js";import"./fallback-IjAJjezW.js";import"./index-yvk_oh1_.js";import"./index-OUA4hTDF.js";import"./Hidden-gMCEevUV.js";import"./MoreHoriz-wD31dy4A.js";import"./ExpandMore-byZ1bCvM.js";import"./ListItem-22rMJzrR.js";import"./selector-xIZpkZZH.js";var Ne={};Object.defineProperty(Ne,"__esModule",{value:!0});var Ot=Ne.default=void 0;pr(y);var ee=t;function pr(e){return e&&e.__esModule?e:{default:e}}function st(e,n){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(e,g).enumerable})),s.push.apply(s,i)}return s}function ot(e){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?st(Object(s),!0).forEach(function(i){fr(e,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):st(Object(s)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(s,i))})}return e}function fr(e,n,s){return n=gr(n),n in e?Object.defineProperty(e,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[n]=s,e}function gr(e){var n=hr(e,"string");return typeof n=="symbol"?n:String(n)}function hr(e,n){if(typeof e!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var i=s.call(e,n||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var Fe=function(n){return(0,ee.jsxs)("svg",ot(ot({},n),{},{children:[(0,ee.jsx)("g",{clipPath:"url(#clip0)",children:(0,ee.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,ee.jsx)("defs",{children:(0,ee.jsx)("clipPath",{id:"clip0",children:(0,ee.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};Fe.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};Fe.displayName="person";Ot=Ne.default=Fe;var ue={},vr=e=>encodeURIComponent(e).replace(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`),Dt="%[a-f0-9]{2}",it=new RegExp("("+Dt+")|([^%]+?)","gi"),at=new RegExp("("+Dt+")+","gi");function Te(e,n){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;n=n||1;var s=e.slice(0,n),i=e.slice(n);return Array.prototype.concat.call([],Te(s),Te(i))}function xr(e){try{return decodeURIComponent(e)}catch{for(var n=e.match(it)||[],s=1;s<n.length;s++)e=Te(n,s).join(""),n=e.match(it)||[];return e}}function yr(e){for(var n={"%FE%FF":"��","%FF%FE":"��"},s=at.exec(e);s;){try{n[s[0]]=decodeURIComponent(s[0])}catch{var i=xr(s[0]);i!==s[0]&&(n[s[0]]=i)}s=at.exec(e)}n["%C2"]="�";for(var g=Object.keys(n),P=0;P<g.length;P++){var R=g[P];e=e.replace(new RegExp(R,"g"),n[R])}return e}var br=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return yr(e)}},jr=(e,n)=>{if(!(typeof e=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n==="")return[e];const s=e.indexOf(n);return s===-1?[e]:[e.slice(0,s),e.slice(s+n.length)]},Sr=function(e,n){for(var s={},i=Object.keys(e),g=Array.isArray(n),P=0;P<i.length;P++){var R=i[P],w=e[R];(g?n.indexOf(R)!==-1:n(R,w,e))&&(s[R]=w)}return s};(function(e){const n=vr,s=br,i=jr,g=Sr,P=r=>r==null;function R(r){switch(r.arrayFormat){case"index":return o=>(a,c)=>{const p=a.length;return c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:c===null?[...a,[v(o,r),"[",p,"]"].join("")]:[...a,[v(o,r),"[",v(p,r),"]=",v(c,r)].join("")]};case"bracket":return o=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:c===null?[...a,[v(o,r),"[]"].join("")]:[...a,[v(o,r),"[]=",v(c,r)].join("")];case"comma":case"separator":return o=>(a,c)=>c==null||c.length===0?a:a.length===0?[[v(o,r),"=",v(c,r)].join("")]:[[a,v(c,r)].join(r.arrayFormatSeparator)];default:return o=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:c===null?[...a,v(o,r)]:[...a,[v(o,r),"=",v(c,r)].join("")]}}function w(r){let o;switch(r.arrayFormat){case"index":return(a,c,p)=>{if(o=/\[(\d*)\]$/.exec(a),a=a.replace(/\[\d*\]$/,""),!o){p[a]=c;return}p[a]===void 0&&(p[a]={}),p[a][o[1]]=c};case"bracket":return(a,c,p)=>{if(o=/(\[\])$/.exec(a),a=a.replace(/\[\]$/,""),!o){p[a]=c;return}if(p[a]===void 0){p[a]=[c];return}p[a]=[].concat(p[a],c)};case"comma":case"separator":return(a,c,p)=>{const u=typeof c=="string"&&c.includes(r.arrayFormatSeparator),m=typeof c=="string"&&!u&&l(c,r).includes(r.arrayFormatSeparator);c=m?l(c,r):c;const f=u||m?c.split(r.arrayFormatSeparator).map(D=>l(D,r)):c===null?c:l(c,r);p[a]=f};default:return(a,c,p)=>{if(p[a]===void 0){p[a]=c;return}p[a]=[].concat(p[a],c)}}}function x(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function v(r,o){return o.encode?o.strict?n(r):encodeURIComponent(r):r}function l(r,o){return o.decode?s(r):r}function j(r){return Array.isArray(r)?r.sort():typeof r=="object"?j(Object.keys(r)).sort((o,a)=>Number(o)-Number(a)).map(o=>r[o]):r}function d(r){const o=r.indexOf("#");return o!==-1&&(r=r.slice(0,o)),r}function S(r){let o="";const a=r.indexOf("#");return a!==-1&&(o=r.slice(a)),o}function T(r){r=d(r);const o=r.indexOf("?");return o===-1?"":r.slice(o+1)}function I(r,o){return o.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):o.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function b(r,o){o=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},o),x(o.arrayFormatSeparator);const a=w(o),c=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return c;for(const p of r.split("&")){if(p==="")continue;let[u,m]=i(o.decode?p.replace(/\+/g," "):p,"=");m=m===void 0?null:["comma","separator"].includes(o.arrayFormat)?m:l(m,o),a(l(u,o),m,c)}for(const p of Object.keys(c)){const u=c[p];if(typeof u=="object"&&u!==null)for(const m of Object.keys(u))u[m]=I(u[m],o);else c[p]=I(u,o)}return o.sort===!1?c:(o.sort===!0?Object.keys(c).sort():Object.keys(c).sort(o.sort)).reduce((p,u)=>{const m=c[u];return m&&typeof m=="object"&&!Array.isArray(m)?p[u]=j(m):p[u]=m,p},Object.create(null))}e.extract=T,e.parse=b,e.stringify=(r,o)=>{if(!r)return"";o=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},o),x(o.arrayFormatSeparator);const a=m=>o.skipNull&&P(r[m])||o.skipEmptyString&&r[m]==="",c=R(o),p={};for(const m of Object.keys(r))a(m)||(p[m]=r[m]);const u=Object.keys(p);return o.sort!==!1&&u.sort(o.sort),u.map(m=>{const f=r[m];return f===void 0?"":f===null?v(m,o):Array.isArray(f)?f.reduce(c(m),[]).join("&"):v(m,o)+"="+v(f,o)}).filter(m=>m.length>0).join("&")},e.parseUrl=(r,o)=>{o=Object.assign({decode:!0},o);const[a,c]=i(r,"#");return Object.assign({url:a.split("?")[0]||"",query:b(T(r),o)},o&&o.parseFragmentIdentifier&&c?{fragmentIdentifier:l(c,o)}:{})},e.stringifyUrl=(r,o)=>{o=Object.assign({encode:!0,strict:!0},o);const a=d(r.url).split("?")[0]||"",c=e.extract(r.url),p=e.parse(c,{sort:!1}),u=Object.assign(p,r.query);let m=e.stringify(u,o);m&&(m=`?${m}`);let f=S(r.url);return r.fragmentIdentifier&&(f=`#${v(r.fragmentIdentifier,o)}`),`${a}${m}${f}`},e.pick=(r,o,a)=>{a=Object.assign({parseFragmentIdentifier:!0},a);const{url:c,query:p,fragmentIdentifier:u}=e.parseUrl(r,a);return e.stringifyUrl({url:c,query:g(p,o),fragmentIdentifier:u},a)},e.exclude=(r,o,a)=>{const c=Array.isArray(o)?p=>!o.includes(p):(p,u)=>!o(p,u);return e.pick(r,c,a)}})(ue);const ie=zt,Cr={parseNumbers:!1,parseBooleans:!1},wr={skipNull:!1,skipEmptyString:!1},Pr=(e,n)=>{var s,i;const{navigateMode:g="push",parseOptions:P,stringifyOptions:R}=n||{},w=Object.assign(Object.assign({},Cr),P),x=Object.assign(Object.assign({},wr),R),v=ie.useLocation(),l=(s=ie.useHistory)===null||s===void 0?void 0:s.call(ie),j=(i=ie.useNavigate)===null||i===void 0?void 0:i.call(ie),d=$t(),S=y.useRef(typeof e=="function"?e():e||{}),T=y.useMemo(()=>ue.parse(v.search,w),[v.search]),I=y.useMemo(()=>Object.assign(Object.assign({},S.current),T),[T]);return[I,Bt(r=>{const o=typeof r=="function"?r(I):r;d(),l&&l[g]({hash:v.hash,search:ue.stringify(Object.assign(Object.assign({},T),o),x)||"?"},v.state),j&&j({hash:v.hash,search:ue.stringify(Object.assign(Object.assign({},T),o),x)||"?"},{replace:g==="replace",state:v.state})})]},Rr=Pr;function Le({teamDid:e,roles:n,onCancel:s,onSuccess:i,onError:g,endpoint:P}){const{api:R}=W(),[w,x]=y.useState(!1),[v,l]=y.useState(""),{t:j,locale:d}=H(),[S,T]=y.useState(0),[I,b]=y.useState(""),[r,o]=y.useState(""),[a,c]=y.useState(""),p=async()=>{if(!r){l(j("team.member.error.passportEmpty"));return}const f=a.trim();l(null),x(!0);try{const{inviteInfo:D}=await R.createMemberInvitation({input:{teamDid:e,role:r,remark:f}});b(D),T(1)}catch(D){const B=Q(D);l(B),g(D)}finally{x(!1)}},m=[{body:t.jsxs(te,{component:"div",children:[t.jsxs(jt,{style:{width:"100%"},variant:"outlined",children:[t.jsx(St,{children:j("common.passport")}),t.jsx(Ct,{"data-cy":"invite-member-select-role",value:r,onChange:f=>{l(null),o(f.target.value)},fullWidth:!0,label:j("common.passport"),disabled:w,onKeyPress:f=>{f.key==="Enter"&&(f.preventDefault(),p())},children:n.filter(f=>f.name!=="owner").map(f=>t.jsx(Ie,{value:f.name,"data-cy":`invite-member-select-option-${f.name}`,children:t.jsx("span",{children:f.title||f.name})},f.name))})]}),t.jsx("div",{style:{marginTop:20,marginBottom:10}}),t.jsx(wt,{label:j("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:a,onChange:f=>{l(null),c(f.target.value)},disabled:w,"data-cy":"invite-member-input-remark"}),t.jsx("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:j("common.cancel"),confirm:j("team.member.inviteDialog.createInviteLink"),onCancel:s,onConfirm:p},{body:()=>{const f=Ae({inviteId:I.inviteId,endpoint:P});return t.jsxs("div",{children:[t.jsx(Or,{children:j("team.member.inviteDialog.createSuccessTip",{expireDate:ce(I.expireDate,d)})}),t.jsx("div",{style:{marginTop:"40px"}}),t.jsx(ve,{children:f})]})},confirm:j("common.confirm"),onConfirm:i}][S];return t.jsxs(X,{title:j("common.invite"),fullWidth:!0,open:!0,showCloseButton:!1,actions:t.jsxs(t.Fragment,{children:[m.cancel&&t.jsx($,{onClick:m.onCancel,color:"inherit",children:m.cancel}),t.jsxs($,{onClick:m.onConfirm,color:"primary",disabled:w||!r,variant:"contained",autoFocus:!0,children:[w&&t.jsx(ne,{size:16}),m.confirm]})]}),children:[t.jsx(Ee,{component:"div",children:typeof m.body=="function"?m.body():m.body}),!!v&&t.jsx(re,{type:"error",variant:"icon",children:v})]})}Le.propTypes={teamDid:h.string.isRequired,onCancel:h.func.isRequired,onSuccess:h.func.isRequired,onError:h.func,roles:h.array,endpoint:h.string};Le.defaultProps={onError:()=>{},roles:[],endpoint:""};const Or=M.div`
|
|
1
|
+
import{r as y,j as t,fz as $t,h as Bt,fA as zt,aY as W,u as H,T as te,b3 as Ie,fB as Ae,bn as ce,ao as X,W as $,S as ne,P as h,R as M,bK as Mt,dw as Oe,y as Wt,du as qt,d2 as Kt,U as de,B as E,bq as G,o as se,fC as Ht,a5 as le,dc as Vt,aZ as ft,x as z,a as pe,bG as gt,c as rt,H as Xt,fD as ht,bB as vt,b6 as Gt,i as Qt,A as Yt,dd as Zt}from"./index-D7dMTham.js";import{c as Jt}from"./index-HlcsGwyy.js";import{d as fe}from"./Add-hE_y-3Pq.js";import{d as er}from"./Loop-nbHXfT5v.js";import{L as tr,S as rr,d as xt}from"./list-header-UfmVzXbI.js";import{D as yt,g as nr}from"./index-lTugDaC3.js";import{u as V,d as nt,W as bt}from"./dashboard-VBA06Iwv.js";import{W as ke}from"./did-address-kM_Gj5GB.js";import{P as K}from"./permission-RZL9x2kU.js";import{D as Ee,A as re,f as Q}from"./index-k3rNNowK.js";import{C as ve}from"./click-to-copy-JQ1hcSA6.js";import{F as jt}from"./FormControl-lU-7UxhW.js";import{I as St}from"./InputLabel-nZyS3xY_.js";import{S as Ct}from"./Select-zWmcTNCa.js";import{T as wt}from"./TextField-qykW02zP.js";import{_ as sr}from"./useAsync-q9mkCv9v.js";import{T as or}from"./index-e_QDKVxH.js";import{I as De}from"./index-sfLTpxKS.js";import{C as xe,L as ir,a as ar}from"./confirm-uc1Y33uD.js";import{d as Pt}from"./RevokeIcon-uaAHFtlr.js";import{u as Rt}from"./session-njvv4tO8.js";import{A as cr}from"./Avatar-HEnEOozL.js";import{d as lr}from"./useSetState-GR8fLZaJ.js";import{A as dr}from"./actions-oIEoqVY9.js";import{F as mr}from"./FormControlLabel-h1hvXlPm.js";import{C as ur}from"./Checkbox-LXon8OOU.js";import"./Search-uAWnirME.js";import"./FilterList-L4dRV2kI.js";import"./TableRow-sJQHVDVk.js";import"./toPropertyKey-NzAT2yhV.js";import"./useFormControl-bdbmye_j.js";import"./FormGroup-hZDn5b3E.js";import"./LastPage--aACjaLx.js";import"./Toolbar-U75uViNg.js";import"./index-mjo2fUfh.js";import"./redux-XOuz_cVf.js";import"./Grid-O2eaJZIs.js";import"./MoreVert-JPy3cIzD.js";import"./useLocalStorage-slHq8u6M.js";import"./PlayArrow-lb0G2com.js";import"./Alert-N84_KD-3.js";import"./useSlot-VejfTAjg.js";import"./ButtonGroup-W_ITJpp0.js";import"./RadioGroup-Pc6M6-Ta.js";import"./spaces-QwLXvIVF.js";import"./index-vL9pFI1M.js";import"./index-fjKBcmH5.js";import"./api-JlWJcBe_.js";import"./Link-4swwBDUU.js";import"./fallback-kvbxeOAh.js";import"./index-1RYLvd7a.js";import"./index-oIFGwfmM.js";import"./Hidden-8riRi-7w.js";import"./MoreHoriz-Ob-PdXvr.js";import"./ExpandMore-WMRfZEqP.js";import"./ListItem-DSIyD39f.js";import"./selector-g3wjJR3o.js";var Ne={};Object.defineProperty(Ne,"__esModule",{value:!0});var Ot=Ne.default=void 0;pr(y);var ee=t;function pr(e){return e&&e.__esModule?e:{default:e}}function st(e,n){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(e,g).enumerable})),s.push.apply(s,i)}return s}function ot(e){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?st(Object(s),!0).forEach(function(i){fr(e,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):st(Object(s)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(s,i))})}return e}function fr(e,n,s){return n=gr(n),n in e?Object.defineProperty(e,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[n]=s,e}function gr(e){var n=hr(e,"string");return typeof n=="symbol"?n:String(n)}function hr(e,n){if(typeof e!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var i=s.call(e,n||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var Fe=function(n){return(0,ee.jsxs)("svg",ot(ot({},n),{},{children:[(0,ee.jsx)("g",{clipPath:"url(#clip0)",children:(0,ee.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,ee.jsx)("defs",{children:(0,ee.jsx)("clipPath",{id:"clip0",children:(0,ee.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};Fe.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};Fe.displayName="person";Ot=Ne.default=Fe;var ue={},vr=e=>encodeURIComponent(e).replace(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`),Dt="%[a-f0-9]{2}",it=new RegExp("("+Dt+")|([^%]+?)","gi"),at=new RegExp("("+Dt+")+","gi");function Te(e,n){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;n=n||1;var s=e.slice(0,n),i=e.slice(n);return Array.prototype.concat.call([],Te(s),Te(i))}function xr(e){try{return decodeURIComponent(e)}catch{for(var n=e.match(it)||[],s=1;s<n.length;s++)e=Te(n,s).join(""),n=e.match(it)||[];return e}}function yr(e){for(var n={"%FE%FF":"��","%FF%FE":"��"},s=at.exec(e);s;){try{n[s[0]]=decodeURIComponent(s[0])}catch{var i=xr(s[0]);i!==s[0]&&(n[s[0]]=i)}s=at.exec(e)}n["%C2"]="�";for(var g=Object.keys(n),P=0;P<g.length;P++){var R=g[P];e=e.replace(new RegExp(R,"g"),n[R])}return e}var br=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return yr(e)}},jr=(e,n)=>{if(!(typeof e=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n==="")return[e];const s=e.indexOf(n);return s===-1?[e]:[e.slice(0,s),e.slice(s+n.length)]},Sr=function(e,n){for(var s={},i=Object.keys(e),g=Array.isArray(n),P=0;P<i.length;P++){var R=i[P],w=e[R];(g?n.indexOf(R)!==-1:n(R,w,e))&&(s[R]=w)}return s};(function(e){const n=vr,s=br,i=jr,g=Sr,P=r=>r==null;function R(r){switch(r.arrayFormat){case"index":return o=>(a,c)=>{const p=a.length;return c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:c===null?[...a,[v(o,r),"[",p,"]"].join("")]:[...a,[v(o,r),"[",v(p,r),"]=",v(c,r)].join("")]};case"bracket":return o=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:c===null?[...a,[v(o,r),"[]"].join("")]:[...a,[v(o,r),"[]=",v(c,r)].join("")];case"comma":case"separator":return o=>(a,c)=>c==null||c.length===0?a:a.length===0?[[v(o,r),"=",v(c,r)].join("")]:[[a,v(c,r)].join(r.arrayFormatSeparator)];default:return o=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:c===null?[...a,v(o,r)]:[...a,[v(o,r),"=",v(c,r)].join("")]}}function w(r){let o;switch(r.arrayFormat){case"index":return(a,c,p)=>{if(o=/\[(\d*)\]$/.exec(a),a=a.replace(/\[\d*\]$/,""),!o){p[a]=c;return}p[a]===void 0&&(p[a]={}),p[a][o[1]]=c};case"bracket":return(a,c,p)=>{if(o=/(\[\])$/.exec(a),a=a.replace(/\[\]$/,""),!o){p[a]=c;return}if(p[a]===void 0){p[a]=[c];return}p[a]=[].concat(p[a],c)};case"comma":case"separator":return(a,c,p)=>{const u=typeof c=="string"&&c.includes(r.arrayFormatSeparator),m=typeof c=="string"&&!u&&l(c,r).includes(r.arrayFormatSeparator);c=m?l(c,r):c;const f=u||m?c.split(r.arrayFormatSeparator).map(D=>l(D,r)):c===null?c:l(c,r);p[a]=f};default:return(a,c,p)=>{if(p[a]===void 0){p[a]=c;return}p[a]=[].concat(p[a],c)}}}function x(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function v(r,o){return o.encode?o.strict?n(r):encodeURIComponent(r):r}function l(r,o){return o.decode?s(r):r}function j(r){return Array.isArray(r)?r.sort():typeof r=="object"?j(Object.keys(r)).sort((o,a)=>Number(o)-Number(a)).map(o=>r[o]):r}function d(r){const o=r.indexOf("#");return o!==-1&&(r=r.slice(0,o)),r}function S(r){let o="";const a=r.indexOf("#");return a!==-1&&(o=r.slice(a)),o}function T(r){r=d(r);const o=r.indexOf("?");return o===-1?"":r.slice(o+1)}function I(r,o){return o.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):o.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function b(r,o){o=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},o),x(o.arrayFormatSeparator);const a=w(o),c=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return c;for(const p of r.split("&")){if(p==="")continue;let[u,m]=i(o.decode?p.replace(/\+/g," "):p,"=");m=m===void 0?null:["comma","separator"].includes(o.arrayFormat)?m:l(m,o),a(l(u,o),m,c)}for(const p of Object.keys(c)){const u=c[p];if(typeof u=="object"&&u!==null)for(const m of Object.keys(u))u[m]=I(u[m],o);else c[p]=I(u,o)}return o.sort===!1?c:(o.sort===!0?Object.keys(c).sort():Object.keys(c).sort(o.sort)).reduce((p,u)=>{const m=c[u];return m&&typeof m=="object"&&!Array.isArray(m)?p[u]=j(m):p[u]=m,p},Object.create(null))}e.extract=T,e.parse=b,e.stringify=(r,o)=>{if(!r)return"";o=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},o),x(o.arrayFormatSeparator);const a=m=>o.skipNull&&P(r[m])||o.skipEmptyString&&r[m]==="",c=R(o),p={};for(const m of Object.keys(r))a(m)||(p[m]=r[m]);const u=Object.keys(p);return o.sort!==!1&&u.sort(o.sort),u.map(m=>{const f=r[m];return f===void 0?"":f===null?v(m,o):Array.isArray(f)?f.reduce(c(m),[]).join("&"):v(m,o)+"="+v(f,o)}).filter(m=>m.length>0).join("&")},e.parseUrl=(r,o)=>{o=Object.assign({decode:!0},o);const[a,c]=i(r,"#");return Object.assign({url:a.split("?")[0]||"",query:b(T(r),o)},o&&o.parseFragmentIdentifier&&c?{fragmentIdentifier:l(c,o)}:{})},e.stringifyUrl=(r,o)=>{o=Object.assign({encode:!0,strict:!0},o);const a=d(r.url).split("?")[0]||"",c=e.extract(r.url),p=e.parse(c,{sort:!1}),u=Object.assign(p,r.query);let m=e.stringify(u,o);m&&(m=`?${m}`);let f=S(r.url);return r.fragmentIdentifier&&(f=`#${v(r.fragmentIdentifier,o)}`),`${a}${m}${f}`},e.pick=(r,o,a)=>{a=Object.assign({parseFragmentIdentifier:!0},a);const{url:c,query:p,fragmentIdentifier:u}=e.parseUrl(r,a);return e.stringifyUrl({url:c,query:g(p,o),fragmentIdentifier:u},a)},e.exclude=(r,o,a)=>{const c=Array.isArray(o)?p=>!o.includes(p):(p,u)=>!o(p,u);return e.pick(r,c,a)}})(ue);const ie=zt,Cr={parseNumbers:!1,parseBooleans:!1},wr={skipNull:!1,skipEmptyString:!1},Pr=(e,n)=>{var s,i;const{navigateMode:g="push",parseOptions:P,stringifyOptions:R}=n||{},w=Object.assign(Object.assign({},Cr),P),x=Object.assign(Object.assign({},wr),R),v=ie.useLocation(),l=(s=ie.useHistory)===null||s===void 0?void 0:s.call(ie),j=(i=ie.useNavigate)===null||i===void 0?void 0:i.call(ie),d=$t(),S=y.useRef(typeof e=="function"?e():e||{}),T=y.useMemo(()=>ue.parse(v.search,w),[v.search]),I=y.useMemo(()=>Object.assign(Object.assign({},S.current),T),[T]);return[I,Bt(r=>{const o=typeof r=="function"?r(I):r;d(),l&&l[g]({hash:v.hash,search:ue.stringify(Object.assign(Object.assign({},T),o),x)||"?"},v.state),j&&j({hash:v.hash,search:ue.stringify(Object.assign(Object.assign({},T),o),x)||"?"},{replace:g==="replace",state:v.state})})]},Rr=Pr;function Le({teamDid:e,roles:n,onCancel:s,onSuccess:i,onError:g,endpoint:P}){const{api:R}=W(),[w,x]=y.useState(!1),[v,l]=y.useState(""),{t:j,locale:d}=H(),[S,T]=y.useState(0),[I,b]=y.useState(""),[r,o]=y.useState(""),[a,c]=y.useState(""),p=async()=>{if(!r){l(j("team.member.error.passportEmpty"));return}const f=a.trim();l(null),x(!0);try{const{inviteInfo:D}=await R.createMemberInvitation({input:{teamDid:e,role:r,remark:f}});b(D),T(1)}catch(D){const B=Q(D);l(B),g(D)}finally{x(!1)}},m=[{body:t.jsxs(te,{component:"div",children:[t.jsxs(jt,{style:{width:"100%"},variant:"outlined",children:[t.jsx(St,{children:j("common.passport")}),t.jsx(Ct,{"data-cy":"invite-member-select-role",value:r,onChange:f=>{l(null),o(f.target.value)},fullWidth:!0,label:j("common.passport"),disabled:w,onKeyPress:f=>{f.key==="Enter"&&(f.preventDefault(),p())},children:n.filter(f=>f.name!=="owner").map(f=>t.jsx(Ie,{value:f.name,"data-cy":`invite-member-select-option-${f.name}`,children:t.jsx("span",{children:f.title||f.name})},f.name))})]}),t.jsx("div",{style:{marginTop:20,marginBottom:10}}),t.jsx(wt,{label:j("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:a,onChange:f=>{l(null),c(f.target.value)},disabled:w,"data-cy":"invite-member-input-remark"}),t.jsx("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:j("common.cancel"),confirm:j("team.member.inviteDialog.createInviteLink"),onCancel:s,onConfirm:p},{body:()=>{const f=Ae({inviteId:I.inviteId,endpoint:P});return t.jsxs("div",{children:[t.jsx(Or,{children:j("team.member.inviteDialog.createSuccessTip",{expireDate:ce(I.expireDate,d)})}),t.jsx("div",{style:{marginTop:"40px"}}),t.jsx(ve,{children:f})]})},confirm:j("common.confirm"),onConfirm:i}][S];return t.jsxs(X,{title:j("common.invite"),fullWidth:!0,open:!0,showCloseButton:!1,actions:t.jsxs(t.Fragment,{children:[m.cancel&&t.jsx($,{onClick:m.onCancel,color:"inherit",children:m.cancel}),t.jsxs($,{onClick:m.onConfirm,color:"primary",disabled:w||!r,variant:"contained",autoFocus:!0,children:[w&&t.jsx(ne,{size:16}),m.confirm]})]}),children:[t.jsx(Ee,{component:"div",children:typeof m.body=="function"?m.body():m.body}),!!v&&t.jsx(re,{type:"error",variant:"icon",children:v})]})}Le.propTypes={teamDid:h.string.isRequired,onCancel:h.func.isRequired,onSuccess:h.func.isRequired,onError:h.func,roles:h.array,endpoint:h.string};Le.defaultProps={onError:()=>{},roles:[],endpoint:""};const Or=M.div`
|
|
2
2
|
font-size: 16px;
|
|
3
3
|
font-weight: bold;
|
|
4
4
|
`;function _e({teamDid:e,onCancel:n,onSuccess:s,onError:i,endpoint:g}){const{api:P,info:R}=W(),{api:w}=y.useContext(Mt),[x,v]=y.useState(!1),{t:l,locale:j}=H(),[d,S]=y.useState(""),[T,I]=y.useState(!1),[b,r]=y.useState(0),[o,a]=y.useState(""),[c,p]=y.useState(""),u=!!Oe(R,"ownerNft.did"),m=sr(async()=>{if(u){const{state:N}=await P.getDelegationState();return N}return{delegated:!0}});if(m.loading)return t.jsx(X,{title:l("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:n,children:t.jsx("div",{style:{display:"flex",justifyContent:"center"},children:t.jsx(ne,{})})});if(m.error)return t.jsx(X,{title:l("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:n,children:t.jsx(re,{type:"error",variant:"icon",children:Q(m.error)})});const f=async()=>{S(null),v(!0);try{const{inviteInfo:N}=await P.createTransferInvitation({input:{teamDid:e,role:"owner",remark:c.trim()}});a(N),r(Y.length-1)}catch(N){const Z=Q(N);S(Z),i(N)}finally{v(!1)}},D=()=>{I(!0),r(1)},B=()=>{I(!1),r(0)},Y=[{body:t.jsxs(te,{component:"div",children:[t.jsxs(re,{type:"warning",children:[t.jsx(te,{children:l("team.transferNode.inviteDialog.tips.progress")}),t.jsx(te,{children:l("team.transferNode.inviteDialog.tips.newOwnerPermissions")})]}),t.jsx(re,{type:"warning",children:t.jsx(te,{children:l("team.transferNode.inviteDialog.tips.revoke")})}),t.jsx("div",{style:{marginTop:20,marginBottom:10}}),t.jsx(wt,{label:l("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:c,onChange:N=>{S(null),p(N.target.value)},disabled:x,"data-cy":"transfer-node-input-remark"}),t.jsx("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:l("common.cancel"),confirm:l("team.transferNode.inviteDialog.createInviteLink"),onCancel:n,onConfirm:u&&!Oe(m,"value.delegated")?D:f},{body:()=>t.jsx(Wt,{action:"delegate-transfer-nft",open:T,locale:j,checkFn:w.get,onClose:B,onSuccess:f,checkTimeout:5*60*1e3,webWalletUrl:qt(R),extraParams:{targetDID:R.did},messages:{title:l("team.transferNode.delegateDialog.title"),scan:l("team.transferNode.delegateDialog.scan"),confirm:l("team.transferNode.delegateDialog.confirm"),success:l("team.transferNode.delegateDialog.success")},popup:!0})},{body:()=>{const N=Ae({inviteId:o.inviteId,endpoint:g});return t.jsxs("div",{children:[t.jsx(Dr,{children:l("team.transferNode.inviteDialog.createSuccessTip",{expireDate:ce(o.expireDate,j)})}),t.jsx("div",{style:{marginTop:"40px"}}),t.jsx(ve,{children:N})]})},confirm:l("common.confirm"),onConfirm:s}],_=Y[b];return t.jsxs(X,{title:l("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,showCloseButton:!1,actions:t.jsxs(t.Fragment,{children:[_.cancel&&t.jsx($,{onClick:_.onCancel,color:"inherit",children:_.cancel}),t.jsxs($,{onClick:_.onConfirm,color:"primary",disabled:x,variant:"contained",autoFocus:!0,children:[x&&t.jsx(ne,{size:16}),_.confirm]})]}),children:[t.jsx(Ee,{component:"div",children:typeof _.body=="function"?_.body():_.body}),!!d&&t.jsx(re,{type:"error",variant:"icon",children:d})]})}_e.propTypes={teamDid:h.string.isRequired,onCancel:h.func.isRequired,onSuccess:h.func.isRequired,onError:h.func,endpoint:h.string};_e.defaultProps={onError:()=>{},endpoint:""};const Dr=M.div`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,U as e,j as t,as as n,R as o}from"./index-
|
|
1
|
+
import{r as a,U as e,j as t,as as n,R as o}from"./index-D7dMTham.js";function p(){const{t:s}=a.useContext(e);return t.jsx(r,{style:{paddingTop:"25vh"},children:t.jsx(n,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const r=o.main``;export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fK as J,r as P,dk as V,M as x,dl as $,gb as S,gc as j,K as B,gd as Q,eg as U}from"./index-
|
|
1
|
+
import{fK as J,r as P,dk as V,M as x,dl as $,gb as S,gc as j,K as B,gd as Q,eg as U}from"./index-D7dMTham.js";var X=function(i,e){return i===void 0&&(i=[]),e===void 0&&(e=[]),J(i,e)},Y=function(i,e,r){var n=P.useRef(),t=P.useRef(0);X(e,n.current)||(n.current=e,t.current+=1),V(i,[t.current],r)},Z=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),M={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:Z?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},R={ctrl:function(i){return i.ctrlKey},shift:function(i){return i.shiftKey},alt:function(i){return i.altKey},meta:function(i){return i.type==="keyup"?M.meta.includes(i.keyCode):i.metaKey}};function D(i){return j(i)||B(i)}function p(i){var e=Object.keys(R).reduce(function(r,n){return R[n](i)?r+1:r},0);return[16,17,18,91,92].includes(i.keyCode)?e:e+1}function q(i,e,r){var n,t;if(!i.key)return!1;if(B(e))return i.keyCode===e?e:!1;var l=e.split("."),a=0;try{for(var f=S(l),o=f.next();!o.done;o=f.next()){var c=o.value,s=R[c],u=M[c.toLowerCase()];(s&&s(i)||u&&u===i.keyCode)&&a++}}catch(b){n={error:b}}finally{try{o&&!o.done&&(t=f.return)&&t.call(f)}finally{if(n)throw n.error}}return r?a===l.length&&p(i)===l.length?e:!1:a===l.length?e:!1}function N(i,e){return Q(i)?i:D(i)?function(r){return q(r,i,e)}:Array.isArray(i)?function(r){return i.find(function(n){return q(r,n,e)})}:function(){return!!i}}var O=["keydown"];function _(i,e,r){var n=r||{},t=n.events,l=t===void 0?O:t,a=n.target,f=n.exactMatch,o=f===void 0?!1:f,c=n.useCapture,s=c===void 0?!1:c,u=x(e),b=x(i);Y(function(){var k,m,L,v=$(a,window);if(v){var T=function(g){var C,K=N(b.current,o),h=K(g),y=D(h)?h:g.key;if(h)return(C=u.current)===null||C===void 0?void 0:C.call(u,g,y)};try{for(var E=S(l),A=E.next();!A.done;A=E.next()){var G=A.value;(L=v==null?void 0:v.addEventListener)===null||L===void 0||L.call(v,G,T,s)}}catch(g){k={error:g}}finally{try{A&&!A.done&&(m=E.return)&&m.call(E)}finally{if(k)throw k.error}}return function(){var g,C,K;try{for(var h=S(l),y=h.next();!y.done;y=h.next()){var H=y.value;(K=v==null?void 0:v.removeEventListener)===null||K===void 0||K.call(v,H,T,s)}}catch(W){g={error:W}}finally{try{y&&!y.done&&(C=h.return)&&C.call(h)}finally{if(g)throw g.error}}}}},[l],a)}function d(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function z(i,e){for(var r="",n=0,t=-1,l=0,a,f=0;f<=i.length;++f){if(f<i.length)a=i.charCodeAt(f);else{if(a===47)break;a=47}if(a===47){if(!(t===f-1||l===1))if(t!==f-1&&l===2){if(r.length<2||n!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var o=r.lastIndexOf("/");if(o!==r.length-1){o===-1?(r="",n=0):(r=r.slice(0,o),n=r.length-1-r.lastIndexOf("/")),t=f,l=0;continue}}else if(r.length===2||r.length===1){r="",n=0,t=f,l=0;continue}}e&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+i.slice(t+1,f):r=i.slice(t+1,f),n=f-t-1;t=f,l=0}else a===46&&l!==-1?++l:l=-1}return r}function I(i,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+i+n:n}var w={resolve:function(){for(var e="",r=!1,n,t=arguments.length-1;t>=-1&&!r;t--){var l;t>=0?l=arguments[t]:(n===void 0&&(n=U.cwd()),l=n),d(l),l.length!==0&&(e=l+"/"+e,r=l.charCodeAt(0)===47)}return e=z(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(d(e),e.length===0)return".";var r=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=z(e,!r),e.length===0&&!r&&(e="."),e.length>0&&n&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return d(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var n=arguments[r];d(n),n.length>0&&(e===void 0?e=n:e+="/"+n)}return e===void 0?".":w.normalize(e)},relative:function(e,r){if(d(e),d(r),e===r||(e=w.resolve(e),r=w.resolve(r),e===r))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===47;++n);for(var t=e.length,l=t-n,a=1;a<r.length&&r.charCodeAt(a)===47;++a);for(var f=r.length,o=f-a,c=l<o?l:o,s=-1,u=0;u<=c;++u){if(u===c){if(o>c){if(r.charCodeAt(a+u)===47)return r.slice(a+u+1);if(u===0)return r.slice(a+u)}else l>c&&(e.charCodeAt(n+u)===47?s=u:u===0&&(s=0));break}var b=e.charCodeAt(n+u),k=r.charCodeAt(a+u);if(b!==k)break;b===47&&(s=u)}var m="";for(u=n+s+1;u<=t;++u)(u===t||e.charCodeAt(u)===47)&&(m.length===0?m+="..":m+="/..");return m.length>0?m+r.slice(a+s):(a+=s,r.charCodeAt(a)===47&&++a,r.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(d(e),e.length===0)return".";for(var r=e.charCodeAt(0),n=r===47,t=-1,l=!0,a=e.length-1;a>=1;--a)if(r=e.charCodeAt(a),r===47){if(!l){t=a;break}}else l=!1;return t===-1?n?"/":".":n&&t===1?"//":e.slice(0,t)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');d(e);var n=0,t=-1,l=!0,a;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var f=r.length-1,o=-1;for(a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(c===47){if(!l){n=a+1;break}}else o===-1&&(l=!1,o=a+1),f>=0&&(c===r.charCodeAt(f)?--f===-1&&(t=a):(f=-1,t=o))}return n===t?t=o:t===-1&&(t=e.length),e.slice(n,t)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!l){n=a+1;break}}else t===-1&&(l=!1,t=a+1);return t===-1?"":e.slice(n,t)}},extname:function(e){d(e);for(var r=-1,n=0,t=-1,l=!0,a=0,f=e.length-1;f>=0;--f){var o=e.charCodeAt(f);if(o===47){if(!l){n=f+1;break}continue}t===-1&&(l=!1,t=f+1),o===46?r===-1?r=f:a!==1&&(a=1):r!==-1&&(a=-1)}return r===-1||t===-1||a===0||a===1&&r===t-1&&r===n+1?"":e.slice(r,t)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return I("/",e)},parse:function(e){d(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var n=e.charCodeAt(0),t=n===47,l;t?(r.root="/",l=1):l=0;for(var a=-1,f=0,o=-1,c=!0,s=e.length-1,u=0;s>=l;--s){if(n=e.charCodeAt(s),n===47){if(!c){f=s+1;break}continue}o===-1&&(c=!1,o=s+1),n===46?a===-1?a=s:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||o===-1||u===0||u===1&&a===o-1&&a===f+1?o!==-1&&(f===0&&t?r.base=r.name=e.slice(1,o):r.base=r.name=e.slice(f,o)):(f===0&&t?(r.name=e.slice(1,a),r.base=e.slice(1,o)):(r.name=e.slice(f,a),r.base=e.slice(f,o)),r.ext=e.slice(a,o)),f>0?r.dir=e.slice(0,f-1):t&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};w.posix=w;var ee=w;export{ee as p,_ as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as o,j as n,d8 as O,d9 as J,da as z,bQ as k,G as U,u as q,r as $,db as _,aH as P,bo as Z,B as w,X as B}from"./index-
|
|
1
|
+
import{P as o,j as n,d8 as O,d9 as J,da as z,bQ as k,G as U,u as q,r as $,db as _,aH as P,bo as Z,B as w,X as B}from"./index-D7dMTham.js";import{E as W}from"./fallback-kvbxeOAh.js";import{R as ee,N as oe}from"./index-oIFGwfmM.js";import{i as ne,a as te,b as D,s as re,u as ie,f as G,g as M,p as ae,m as K,c as se,d as le,H as pe}from"./index-1RYLvd7a.js";import{d as de}from"./ExpandMore-WMRfZEqP.js";import{A}from"./Avatar-HEnEOozL.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%"}}),ne(e))return n.jsx(A,{as:"span",...a,src:e,sx:i});if(te(e)){const c=t?.6*t+4:0;return n.jsx(A,{as:"span",...a,sx:i,children:n.jsx("iconify-icon",{icon:e,height:c||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 ce=O();function I({theme:e,children:t}){const r=e?O(e):ce;return n.jsx(J,{theme:r,children:t})}I.propTypes={children:o.any.isRequired,theme:o.object};I.defaultProps={theme:null};const ue=e=>{if(!(e!=null&&e.length))return{navItems:[],activeId:null};let t=1;const a=K(e,l=>{var d,u;const s=l.icon?n.jsx(N,{icon:l.icon}):null;if(l.items)return{id:`${t++}`,label:l.title,icon:s,children:l.items};let p={};return((d=l.link)!=null&&d.startsWith("http://")||(u=l.link)!=null&&u.startsWith("https://"))&&(p={target:"_blank",rel:"noreferrer"}),{id:`${t++}`,label:n.jsx("a",{href:l.link,...p,children:l.title}),icon:s,link:l.link}},"items"),i=se(a),c=le(i.map(l=>l.link));return{navItems:a,activeId:c>=0?i[c].id:null}};function S({meta:e,addons:t,sessionManagerProps:r,homeLink:a,theme:i,...c}){var g,m;ie();const{locale:l}=q()||{},s=$.useMemo(()=>{const y=Object.assign({},window.blocklet,e);try{return G(y)}catch(Y){return console.error("Failed to format blocklet info",Y,y),y}},[e]);if(!s.appName)return null;const{appLogo:p,appLogoRect:d,theme:u}=s,h=M((g=s==null?void 0:s.navigation)==null?void 0:g.header,l),f=ue(h),{navItems:x,activeId:b}=f,v=typeof t=="function"?y=>t(y,{navigation:f}):t,j=n.jsx(pe,{formattedBlocklet:s,addons:v,sessionManagerProps:r});return n.jsx(I,{theme:i,children:n.jsx(fe,{homeLink:a,logo:n.jsx("img",{src:d||p,alt:"logo"}),addons:j,..._(c,["bordered"]),$bordered:c==null?void 0:c.bordered,$bgcolor:(m=u==null?void 0:u.background)==null?void 0:m.header,children:x!=null&&x.length?({isMobile:y})=>n.jsx(oe,{mode:y?"inline":"horizontal",activeId:b,items:x,className:"header-nav",bgColor:"transparent",textColor:"#777"}):null})})}S.propTypes={meta:D,addons:o.oneOfType([o.func,o.node]),sessionManagerProps:re,homeLink:o.string,theme:o.object};S.defaultProps={meta:{},addons:null,sessionManagerProps:{showRole:!0},homeLink:ae,theme:null};const fe=k(ee)`
|
|
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';
|