@abtnode/blocklet-services 1.16.21-beta-2e75c75c → 1.16.21-beta-da3f852a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/routes/blocklet.js +22 -16
- package/api/routes/user-session.js +68 -23
- package/dist/assets/{Add-aQrnrfzf.js → Add-Fa_jDVH4.js} +1 -1
- package/dist/assets/{Alert-TRn-W2uZ.js → Alert-CVBj6K_x.js} +1 -1
- package/dist/assets/{ArrowDropDown-CH040cMg.js → ArrowDropDown-eyRAz4BW.js} +1 -1
- package/dist/assets/{Autocomplete-tXxDeUFr.js → Autocomplete-JUBrNs2g.js} +1 -1
- package/dist/assets/{Avatar-rHHH0tYI.js → Avatar-phMyiuZN.js} +1 -1
- package/dist/assets/{ButtonGroup-wdx9FsdX.js → ButtonGroup-WpuCESRm.js} +1 -1
- package/dist/assets/CardContent-11p23WdN.js +1 -0
- package/dist/assets/{CheckCircle-n6sFL-ik.js → CheckCircle-TSCHhVSn.js} +1 -1
- package/dist/assets/Checkbox-E7hRdaZx.js +1 -0
- package/dist/assets/{ChevronRight-Z1HFANQM.js → ChevronRight-4XdBuB9J.js} +1 -1
- package/dist/assets/{DeleteOutline-W9qfFaBp.js → DeleteOutline-ldnn034A.js} +1 -1
- package/dist/assets/DialogContentText-GOi1cMCU.js +1 -0
- package/dist/assets/{Done-lojMP8XA.js → Done-QX8JUe6j.js} +1 -1
- package/dist/assets/{Download-zIigmX7y.js → Download-6axtZJsQ.js} +1 -1
- package/dist/assets/{Edit-9ZK8H_Fl.js → Edit-3QDIocJ_.js} +1 -1
- package/dist/assets/{EditIcon-yhAmfbJG.js → EditIcon-iEwSDmTg.js} +1 -1
- package/dist/assets/{ExpandMore-JKQWi6LF.js → ExpandMore-AjCxxobS.js} +1 -1
- package/dist/assets/{FilterList-4kCG8LRc.js → FilterList-2ERNRQaM.js} +4 -4
- package/dist/assets/FormControl-dd94hWMS.js +1 -0
- package/dist/assets/{FormControlLabel-mJkBkk_g.js → FormControlLabel-RXb6vK7s.js} +1 -1
- package/dist/assets/FormGroup--UBs69R8.js +1 -0
- package/dist/assets/{Google-VdMmJxwT.js → Google-IOajhpti.js} +1 -1
- package/dist/assets/{Grid-p48e3xhB.js → Grid-xUYHRi0b.js} +1 -1
- package/dist/assets/{Hidden-ETMkRLtp.js → Hidden-mWvmgc4A.js} +1 -1
- package/dist/assets/{Icon-44EJb3WR.js → Icon-Z3sa2o7_.js} +1 -1
- package/dist/assets/{InfoOutlined-6gb2VM7I.js → InfoOutlined-ASBaIOeG.js} +1 -1
- package/dist/assets/{InputAdornment-Aryxdlq1.js → InputAdornment-uDUcdmme.js} +1 -1
- package/dist/assets/{InputLabel-h-1ztqT6.js → InputLabel-TPtinWuK.js} +1 -1
- package/dist/assets/{LastPage-mfo1tUHa.js → LastPage-JHHCVMPH.js} +1 -1
- package/dist/assets/{Launch-AFmXeao0.js → Launch-Lgl-88-b.js} +1 -1
- package/dist/assets/{LaunchOutlined-Bq_DfYoo.js → LaunchOutlined-lL2bUPmR.js} +1 -1
- package/dist/assets/{ListItem-EJFW5_aw.js → ListItem-0o0I3uAI.js} +1 -1
- package/dist/assets/{LockIcon-D2isnori.js → LockIcon-JBIsvzZH.js} +1 -1
- package/dist/assets/{Loop-EkXTC6vo.js → Loop-xAh7ODfS.js} +1 -1
- package/dist/assets/{MoreHoriz-M3NU6QRD.js → MoreHoriz-CgcL_RUW.js} +1 -1
- package/dist/assets/{MoreVert-0G7nxjS1.js → MoreVert--r4YINap.js} +2 -2
- package/dist/assets/{OpenInNew-hRo2SIn6.js → OpenInNew-UCL6a4s2.js} +1 -1
- package/dist/assets/{Pagination-nXChL-n4.js → Pagination-Bv9Q6Zpr.js} +1 -1
- package/dist/assets/{PlayArrow-CyzooC2w.js → PlayArrow-lHMXu7Pu.js} +1 -1
- package/dist/assets/RadioGroup-7FTePFM-.js +1 -0
- package/dist/assets/{Search-k3UVP7sV.js → Search-iVqmV6Op.js} +1 -1
- package/dist/assets/{Select-SiGR5MWy.js → Select-S9JKyZyg.js} +2 -2
- package/dist/assets/{ServerLogo--wztj3ua.js → ServerLogo-q3dZeMtc.js} +1 -1
- package/dist/assets/{Skeleton-EToYSB3k.js → Skeleton-bZ_Miios.js} +4 -4
- package/dist/assets/{Slider-CNwMVLkd.js → Slider-55cYAWYh.js} +1 -1
- package/dist/assets/{Stepper-ycMUSRhL.js → Stepper-jB61m6gP.js} +1 -1
- package/dist/assets/{TableRow-0s5gqtkd.js → TableRow-NtkZR5qp.js} +2 -2
- package/dist/assets/TextField-mvaGVkiG.js +1 -0
- package/dist/assets/Toolbar-yH3XFZuP.js +1 -0
- package/dist/assets/access-control-btXZcun0.js +13 -0
- package/dist/assets/{actions-KV6_T4pn.js → actions-gHfHu3vC.js} +1 -1
- package/dist/assets/{add-component-core-j8O0sdKT.js → add-component-core-rFzl_VX2.js} +25 -25
- package/dist/assets/add-resource-WRcoBeLJ.js +1 -0
- package/dist/assets/{addon-PObek_gJ.js → addon-1QMy4IRG.js} +6 -1
- package/dist/assets/{analytics-yABECUBU.js → analytics-RDIHqtEC.js} +7 -7
- package/dist/assets/api-dJ8jWDqQ.js +1 -0
- package/dist/assets/{audit-logs-YVY6A7wy.js → audit-logs-UyvhmXR3.js} +1 -1
- package/dist/assets/{button-MNFZKmGM.js → button-t_AwvrL4.js} +1 -1
- package/dist/assets/{click-to-copy-vjabm7J5.js → click-to-copy-H6ULFxkd.js} +1 -1
- package/dist/assets/{complete-GGXUF0LK.js → complete-IuJpgYIr.js} +4 -4
- package/dist/assets/{component-4ZMFkbkH.js → component-G6qh7GXc.js} +8 -8
- package/dist/assets/{config-5i0Otxmz.js → config-4scj9ePp.js} +1 -1
- package/dist/assets/{config-d8eAy9AQ.js → config-TgYTBZTt.js} +2 -2
- package/dist/assets/{config-navigation-igDecGk9.js → config-navigation-Rn6Zod0O.js} +1 -1
- package/dist/assets/{confirm-McA4faDz.js → confirm-QgU1_PTp.js} +1 -1
- package/dist/assets/{confirm-YPm7YFIn.js → confirm-rTEv2cR4.js} +2 -2
- package/dist/assets/{connect-KuguHe9k.js → connect-Dl-8ETzY.js} +1 -1
- package/dist/assets/connect-QgYEXdVh.js +1 -0
- package/dist/assets/{content-layout-G5-XilZ6.js → content-layout-royTMDoy.js} +1 -1
- package/dist/assets/{dashboard-50D9Dr3p.js → dashboard-u9hZyLwN.js} +8 -4
- package/dist/assets/did-address-HLejxWfT.js +1 -0
- package/dist/assets/{did-utils-4YEK01Hu.js → did-utils-HUCV2HWu.js} +2 -2
- package/dist/assets/domain-GpRAPaIx.js +9 -0
- package/dist/assets/domain-list-lPrVUmAl.js +12 -0
- package/dist/assets/exchange-passport-IuC9VwEx.js +1 -0
- package/dist/assets/{fallback-qea1DwWv.js → fallback-b_zmsVbg.js} +1 -1
- package/dist/assets/{format-error-j9iyo8Yt.js → format-error-wlUtS96P.js} +1 -1
- package/dist/assets/fuel-TR64CTn1.js +32 -0
- package/dist/assets/fullpage-ErEPlrFR.js +1 -0
- package/dist/assets/{home-g-wTEPg3.js → home-3M89U2oU.js} +1 -1
- package/dist/assets/{iframe-Ssz096D4.js → iframe-tVY0Votd.js} +1 -1
- package/dist/assets/{index-tJTwzBb_.js → index--CyhSTyx.js} +8 -8
- package/dist/assets/{index-w1Cpmbnp.js → index--OWo39zO.js} +1 -1
- package/dist/assets/{index-F_S38T2q.js → index-0niAcafj.js} +1 -1
- package/dist/assets/{index-JUPNeZG5.js → index-21p4-hlH.js} +1 -1
- package/dist/assets/{index-jSUvqhlP.js → index-3wOALYwV.js} +1 -1
- package/dist/assets/index-7SG8bi1h.js +1 -0
- package/dist/assets/{index-Czx_Yp7n.js → index-BD3_xRrb.js} +7 -7
- package/dist/assets/{index-Gjml824M.js → index-BG8b7I-X.js} +1 -1
- package/dist/assets/{index-4gQJ4T4X.js → index-CLYRJvy9.js} +1 -1
- package/dist/assets/{index-BfVuEv33.js → index-Drj2DsEg.js} +1 -1
- package/dist/assets/index-FBVX6B9S.js +1443 -0
- package/dist/assets/{index-awu4CdLA.js → index-FN8xWpsb.js} +9 -9
- package/dist/assets/{index-tFlExYQQ.js → index-G8cwybdF.js} +1 -1
- package/dist/assets/{index-3vHCMpvy.js → index-H9IRRby9.js} +3 -3
- package/dist/assets/{index-CcwxHzov.js → index-HUMCtJ-F.js} +5 -5
- package/dist/assets/{index-CrzXvgtx.js → index-K2Ybm2pw.js} +1 -1
- package/dist/assets/{index-qZqgv8yB.js → index-KIoBUz9b.js} +1 -1
- package/dist/assets/index-O-lzERhh.js +16 -0
- package/dist/assets/{index-b19Yrn_0.js → index-O5NefLt1.js} +1 -1
- package/dist/assets/{index-Iq8E4Lsq.js → index-dmjAo0qH.js} +1 -1
- package/dist/assets/{index-5ZgcPEtO.js → index-evdoM2z3.js} +1 -1
- package/dist/assets/{index-GGXNmXwI.js → index-jXP9EjwJ.js} +1 -1
- package/dist/assets/{index-8eSZR55e.js → index-kA6bEgMs.js} +1 -1
- package/dist/assets/{index-wZvmUWED.js → index-l2b8-RX7.js} +1 -1
- package/dist/assets/index-l56g_CHP.js +54 -0
- package/dist/assets/{index-ORGg9jKv.js → index-pXkIJMvn.js} +1 -1
- package/dist/assets/{index-gaqdjuPF.js → index-xRHYRJ_7.js} +1 -1
- package/dist/assets/{index--kHy2X7X.js → index-y1vZ4I-c.js} +2 -2
- package/dist/assets/{index.es--c4ru_97.js → index.es-EW-0danM.js} +1 -1
- package/dist/assets/{index.esm-ShjBgrpC.js → index.esm-yzdsIZwH.js} +1 -1
- package/dist/assets/{invite-XWTjq6KS.js → invite-ZFnOF7D-.js} +7 -7
- package/dist/assets/{issue-passport-qvaKDelt.js → issue-passport-LI0vQTx6.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-zfUHJiac.js → jss-plugin-props-sort.esm-dCzWy4MH.js} +6 -6
- package/dist/assets/{launch-result-message-fsq6UHAu.js → launch-result-message-ZdZYSlup.js} +1 -1
- package/dist/assets/{layout-VUay_GRX.js → layout-EmhtrWaf.js} +1 -1
- package/dist/assets/{list-header-93nr5oB-.js → list-header-CQgHRvVE.js} +1 -1
- package/dist/assets/localization-57p2YRoa.js +1 -0
- package/dist/assets/{log-U6xlWa4y.js → log-z1RzeRR6.js} +1 -1
- package/dist/assets/{login-atHIgY1G.js → login-zL8w551q.js} +1 -1
- package/dist/assets/{logo-uploader-FMfBEamH.js → logo-uploader-zW337Go0.js} +3 -3
- package/dist/assets/{lost-passport-mht-nQzc.js → lost-passport-GLaDRSNa.js} +3 -3
- package/dist/assets/{lottie-ADPdpha1.js → lottie-jK27rNdj.js} +1 -1
- package/dist/assets/{memoize-one.esm-lesmZsqu.js → memoize-one.esm-t8vjaxPM.js} +1 -1
- package/dist/assets/{nav-menu-rYrXDg0l.js → nav-menu-Tl5mEfRm.js} +4 -4
- package/dist/assets/notifications-PlI3p8fj.js +62 -0
- package/dist/assets/overview-ysfYkE05.js +12 -0
- package/dist/assets/{page-header-zhjbpE4d.js → page-header-66OZD-k5.js} +1 -1
- package/dist/assets/{permission-_9JEBgjE.js → permission-hBdmK8vu.js} +4 -4
- package/dist/assets/preferences-h7aAXHWa.js +1 -0
- package/dist/assets/publish-resource-6bBVAn-l.js +1 -0
- package/dist/assets/{react-IpGwX7Xn.js → react-0H7F4HJd.js} +3 -3
- package/dist/assets/selector-MhbaknSB.js +46 -0
- package/dist/assets/session-UBJotivU.js +1 -0
- package/dist/assets/{setup-fevmOmkt.js → setup-sZd9bR8j.js} +4 -4
- package/dist/assets/{slicedToArray-lYfsf7tU.js → slicedToArray-k67ntm7h.js} +2 -2
- package/dist/assets/{spaces-uqF3-sWW.js → spaces-PqbUeoTO.js} +1 -1
- package/dist/assets/{start-t3LoVjvu.js → start-Zw90S5HQ.js} +1 -1
- package/dist/assets/{step-actions-FSJC0U6T.js → step-actions-ILFnVvrv.js} +1 -1
- package/dist/assets/{studio-DC0Wz_Lu.js → studio-o1cOhwh6.js} +1 -1
- package/dist/assets/switch-control-X6a6W1Im.js +13 -0
- package/dist/assets/transfer-ZLiabJcr.js +16 -0
- package/dist/assets/uniqBy-ngvp8e0L.js +1 -0
- package/dist/assets/{unsubscribe-TpNUimcc.js → unsubscribe-QliZKSwU.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-3VT2_Z5z.js → use-blocklet-info-for-connect-did-spaces-gdL1zKwo.js} +1 -1
- package/dist/assets/{useAsync-IU1dWu3c.js → useAsync-L140-N35.js} +1 -1
- package/dist/assets/{useFormControl-048JKEU7.js → useFormControl-pwVb7wu_.js} +1 -1
- package/dist/assets/{useLocalStorage-YCi9UL9H.js → useLocalStorage-UtHo1ezh.js} +1 -1
- package/dist/assets/{useSetState-UpmVsjwc.js → useSetState-qyJ6mTGB.js} +1 -1
- package/dist/assets/{user-DpBEcTCg.js → user-_XAxkLCw.js} +2 -2
- package/dist/assets/{util-YhTYpH34.js → util-Xu6BqTTW.js} +1 -1
- package/dist/assets/wallet-hidden-topbar-bqcwYNs3.js +17 -0
- package/dist/assets/wrap-locale-FLgJeXdD.js +1 -0
- package/dist/index.html +1 -1
- package/package.json +22 -22
- package/dist/assets/CardContent-aTkzcvcb.js +0 -1
- package/dist/assets/Checkbox-j_1e5eTr.js +0 -1
- package/dist/assets/DialogContentText-OScaEdVl.js +0 -1
- package/dist/assets/FormControl-PQjEXXGg.js +0 -1
- package/dist/assets/FormGroup-vpdPgGk-.js +0 -1
- package/dist/assets/RadioGroup-qU1ho8Ao.js +0 -1
- package/dist/assets/TextField-5mqig0lI.js +0 -1
- package/dist/assets/Toolbar-lPJJUJ1m.js +0 -1
- package/dist/assets/access-control-ydDah6D7.js +0 -13
- package/dist/assets/add-resource-qYTftMuf.js +0 -1
- package/dist/assets/api-taacukW-.js +0 -1
- package/dist/assets/connect-tJMWKdid.js +0 -1
- package/dist/assets/did-address-utn80azk.js +0 -1
- package/dist/assets/domain-l69EGiWi.js +0 -9
- package/dist/assets/domain-list-WIxoLqLh.js +0 -12
- package/dist/assets/exchange-passport-4MwJchuG.js +0 -14
- package/dist/assets/fuel-0OwtGCtK.js +0 -32
- package/dist/assets/fullpage-Oekyc1Xj.js +0 -6
- package/dist/assets/index-Pk6ACq9L.js +0 -54
- package/dist/assets/index-YtTdwnwX.js +0 -16
- package/dist/assets/index-pPYPIBlE.js +0 -1443
- package/dist/assets/localization-yv9kIu3G.js +0 -1
- package/dist/assets/notifications-fuSVFN6r.js +0 -62
- package/dist/assets/overview-iCb3XBvN.js +0 -12
- package/dist/assets/preferences-raGCxSAm.js +0 -1
- package/dist/assets/publish-resource-_xR0SqTQ.js +0 -1
- package/dist/assets/selector-jHLMIir9.js +0 -46
- package/dist/assets/session-_d807uES.js +0 -1
- package/dist/assets/switch-control-MAwqpbvg.js +0 -13
- package/dist/assets/transfer-FNwkS78F.js +0 -16
- package/dist/assets/uniqBy-09zFKL9T.js +0 -1
- package/dist/assets/wallet-hidden-topbar-PzOecHVw.js +0 -17
- package/dist/assets/wrap-locale-jESJ2pw3.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-pPYPIBlE.js";import{S as t}from"./studio-DC0Wz_Lu.js";import"./index-tJTwzBb_.js";import"./nav-menu-rYrXDg0l.js";import"./MoreHoriz-M3NU6QRD.js";import"./ExpandMore-JKQWi6LF.js";import"./Toolbar-lPJJUJ1m.js";import"./Hidden-ETMkRLtp.js";import"./fallback-qea1DwWv.js";function d(){return o.jsx(t,{children:"Coming soon..."})}export{d as default};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import{J as E,K as F,j as t,a9 as O,r as u,F as V,T as g,bo as Z,G,S as k,b1 as H,bn as J,L as K,a as A,ax as S,B as Y,bl as Q,y as P,P as s,gn as W,br as X}from"./index-pPYPIBlE.js";import{L as D,N as L}from"./dashboard-50D9Dr3p.js";import{P as ee}from"./permission-_9JEBgjE.js";import{F as te}from"./FormControlLabel-mJkBkk_g.js";import{C as ie}from"./Checkbox-j_1e5eTr.js";import{L as _,a as I}from"./ListItem-EJFW5_aw.js";import{A as T}from"./Avatar-rHHH0tYI.js";import{a as M}from"./confirm-YPm7YFIn.js";import{P as ae}from"./Pagination-nXChL-n4.js";import"./index-Gjml824M.js";import"./MoreVert-0G7nxjS1.js";import"./useLocalStorage-YCi9UL9H.js";import"./useSetState-UpmVsjwc.js";import"./PlayArrow-CyzooC2w.js";import"./Alert-TRn-W2uZ.js";import"./ButtonGroup-wdx9FsdX.js";import"./RadioGroup-qU1ho8Ao.js";import"./FormGroup-vpdPgGk-.js";import"./useFormControl-048JKEU7.js";import"./format-error-j9iyo8Yt.js";import"./index-b19Yrn_0.js";import"./session-_d807uES.js";import"./spaces-uqF3-sWW.js";import"./index-8eSZR55e.js";import"./api-taacukW-.js";import"./fallback-qea1DwWv.js";import"./wallet-hidden-topbar-PzOecHVw.js";import"./selector-jHLMIir9.js";import"./index-tJTwzBb_.js";import"./nav-menu-rYrXDg0l.js";import"./MoreHoriz-M3NU6QRD.js";import"./ExpandMore-JKQWi6LF.js";import"./Toolbar-lPJJUJ1m.js";import"./Hidden-ETMkRLtp.js";import"./useAsync-IU1dWu3c.js";import"./DialogContentText-OScaEdVl.js";import"./LastPage-mfo1tUHa.js";var re=["second","minute","hour","day","week","month","year"];function se(e,a){if(a===0)return["just now","right now"];var r=re[Math.floor(a/2)];return e>1&&(r+="s"),[e+" "+r+" ago","in "+e+" "+r]}var oe=["秒","分钟","小时","天","周","个月","年"];function ne(e,a){if(a===0)return["刚刚","片刻后"];var r=oe[~~(a/2)];return[e+" "+r+"前",e+" "+r+"后"]}var x={},q=function(e,a){x[e]=a},le=function(e){return x[e]||x.en_US},h=[60,60,24,7,365/7/12,12];function z(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}function ce(e,a){var r=e<0?1:0;e=Math.abs(e);for(var n=e,o=0;e>=h[o]&&o<h.length;o++)e/=h[o];return e=Math.floor(e),o*=2,e>(o===0?9:1)&&(o+=1),a(e,o,n)[r].replace("%s",e.toString())}function de(e,a){var r=a?z(a):new Date;return(+r-+z(e))/1e3}var me=function(e,a,r){var n=de(e,r&&r.relativeDate);return ce(n,le(a))};q("en_US",se);q("zh_CN",ne);var y={},pe=F;Object.defineProperty(y,"__esModule",{value:!0});var j=y.default=void 0,fe=pe(E()),ue=t,ge=(0,fe.default)((0,ue.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");j=y.default=ge;function v({api:e,paging:a,loading:r,notifications:n,updateNotifications:o,teamDid:d}){const{inService:m}=O(),[f,U]=u.useState(!0),[b,N]=u.useState(!1),{t:l,locale:C}=u.useContext(V),B=async()=>{N(!0);const i=n.filter(c=>c.read===!1).map(c=>c.id).join(",");m?await e.readBlockletNotifications({input:{id:i,teamDid:d}}):await e.readNotifications({input:{id:i}}),o(),N(!1)},w=async i=>{m?await e.readBlockletNotifications({input:{id:i,teamDid:d}}):await e.readNotifications({input:{id:i}}),o()},p=f?n:n.filter(i=>i.read===!1),$=n.filter(i=>i.read===!1).length>0,R=i=>t.jsxs("div",{className:"title",children:[i.title," ",t.jsx("span",{className:"time-ago",title:Q(i.createdAt,C),children:me(new Date(i.createdAt),W(C))})]});return t.jsxs(he,{children:[t.jsxs(g,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:[l("notification.title"),t.jsxs(g,{component:"span",className:"notification-actions",children:[t.jsx(te,{control:t.jsx(ie,{checked:f,onChange:()=>U(!f),name:"showRead",color:"primary"}),label:l("notification.showRead")}),t.jsx(ee,{permission:m?"":"mutate_notification",role:m?Z:[],children:$&&t.jsxs(G,{disabled:b,onClick:B,className:"",children:[b&&t.jsx(k,{size:16,style:{marginRight:"1em"}}),l("notification.markAllAsRead")]})})]})]}),t.jsx(H,{}),t.jsxs(J,{className:"notification-list",children:[r&&t.jsx(k,{size:[32,20],style:{opacity:"0.8",zIndex:1e4,position:"fixed",top:30,left:"50%",marginLeft:-16}}),p.length===0&&t.jsx(g,{component:"p",variant:"body1",className:"notification-tip",children:l("notification.empty")}),p.length>0&&p.map(i=>i.action?t.jsxs(_,{component:K,to:i.action,alignItems:"flex-start",disabled:i.read,children:[t.jsx(D,{className:"list-item-avatar",children:t.jsxs(t.Fragment,{children:[t.jsx(T,{children:i.entityType.substr(0,1).toUpperCase()}),t.jsx(L,{className:"notification-tag",status:i.severity})]})}),t.jsx(M,{className:"list-item-text",classes:{secondary:"list-item-secondary-text"},primary:R(i),secondary:i.description}),i.read===!1&&t.jsx(I,{children:t.jsx(A,{title:l("notification.markAsRead"),children:t.jsx(S,{edge:"end","aria-label":"delete",onClick:()=>w(i.id),size:"large",children:t.jsx(j,{})})})})]},i.id):t.jsxs(_,{alignItems:"flex-start",disabled:i.read,children:[t.jsx(D,{className:"list-item-avatar",children:t.jsxs(t.Fragment,{children:[t.jsx(T,{children:i.entityType.substr(0,1).toUpperCase()}),t.jsx(L,{className:"notification-tag",status:i.severity})]})}),t.jsx(M,{className:"list-item-text",classes:{secondary:"list-item-secondary-text"},primary:R(i),secondary:i.description}),i.read===!1&&t.jsx(I,{children:t.jsx(A,{title:l("notification.markAsRead"),children:t.jsx(S,{edge:"end","aria-label":"delete",onClick:()=>w(i.id),size:"large",children:t.jsx(j,{})})})})]},i.id))]}),!!p.length&&a.pageCount>1&&t.jsx(Y,{mt:2,display:"flex",justifyContent:"flex-end",children:t.jsx(ae,{disabled:r,count:a.pageCount,page:a.page,onChange:(i,c)=>{o({page:c})}})})]})}const he=P.div`
|
|
2
|
-
min-height: 60vh;
|
|
3
|
-
|
|
4
|
-
.page-header {
|
|
5
|
-
display: flex;
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
align-items: center;
|
|
8
|
-
|
|
9
|
-
.notification-actions {
|
|
10
|
-
width: auto;
|
|
11
|
-
display: flex;
|
|
12
|
-
justify-content: space-between;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.page-content {
|
|
17
|
-
margin-top: 16px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.list-item-avatar {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
align-items: center;
|
|
24
|
-
min-width: 80px;
|
|
25
|
-
|
|
26
|
-
.notification-tag {
|
|
27
|
-
margin-top: 4px;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.MuiListItem-root:not(.Mui-disabled) {
|
|
32
|
-
.MuiAvatar-root {
|
|
33
|
-
background: ${e=>e.theme.palette.primary.light};
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.list-item-text {
|
|
38
|
-
.title {
|
|
39
|
-
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
.time-ago {
|
|
42
|
-
background: #bdbdbd;
|
|
43
|
-
font-size: 11px;
|
|
44
|
-
margin-left: 8px;
|
|
45
|
-
color: #f7f8f8;
|
|
46
|
-
border-radius: 3px;
|
|
47
|
-
padding: 1px 4px;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
.Mui-disabled .list-item-text .title .time-ago {
|
|
52
|
-
background: #666;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.list-item-secondary-text {
|
|
56
|
-
word-break: break-word;
|
|
57
|
-
}
|
|
58
|
-
`;v.propTypes={loading:s.bool,paging:s.objectOf(s.any),api:s.shape({readNotifications:s.func.isRequired,readBlockletNotifications:s.func.isRequired}).isRequired,notifications:s.arrayOf(s.shape({id:s.string,read:s.bool,entityType:s.string,title:s.string,createdAt:s.string,description:s.string}).isRequired).isRequired,updateNotifications:s.func.isRequired,teamDid:s.string};v.defaultProps={paging:!1,loading:!1,teamDid:""};function tt(){const{did:e}=window.env,{api:a,data:r,paging:n,refresh:o,loading:d}=X();return t.jsx(xe,{className:"list",children:t.jsx(v,{paging:n,loading:d,api:a,notifications:r,updateNotifications:o,teamDid:e})})}const xe=P.div`
|
|
59
|
-
padding: 1em;
|
|
60
|
-
padding-top: 0px;
|
|
61
|
-
margin-top: -1em;
|
|
62
|
-
`;export{tt as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{u as I,a9 as w,r as y,aY as A,j as t,G as C,X as T,bu as b,ao as S,bl as B,cC as E,y as L,T as N}from"./index-pPYPIBlE.js";import{d as P,a as W}from"./domain-list-WIxoLqLh.js";import{d as _}from"./ExpandMore-JKQWi6LF.js";import{I as R}from"./index-wZvmUWED.js";import{T as $}from"./MoreVert-0G7nxjS1.js";import{W as r}from"./did-address-utn80azk.js";import{B as H}from"./dashboard-50D9Dr3p.js";import"./Add-aQrnrfzf.js";import"./LockIcon-D2isnori.js";import"./permission-_9JEBgjE.js";import"./useAsync-IU1dWu3c.js";import"./session-_d807uES.js";import"./index-b19Yrn_0.js";import"./confirm-YPm7YFIn.js";import"./DialogContentText-OScaEdVl.js";import"./Alert-TRn-W2uZ.js";import"./format-error-j9iyo8Yt.js";import"./useSetState-UpmVsjwc.js";import"./InfoOutlined-6gb2VM7I.js";import"./OpenInNew-hRo2SIn6.js";import"./api-taacukW-.js";import"./util-YhTYpH34.js";import"./TextField-5mqig0lI.js";import"./FormControl-PQjEXXGg.js";import"./useFormControl-048JKEU7.js";import"./InputLabel-h-1ztqT6.js";import"./Select-SiGR5MWy.js";import"./actions-KV6_T4pn.js";import"./MoreHoriz-M3NU6QRD.js";import"./CardContent-aTkzcvcb.js";import"./index-Gjml824M.js";import"./useLocalStorage-YCi9UL9H.js";import"./PlayArrow-CyzooC2w.js";import"./ButtonGroup-wdx9FsdX.js";import"./RadioGroup-qU1ho8Ao.js";import"./FormControlLabel-mJkBkk_g.js";import"./FormGroup-vpdPgGk-.js";import"./Avatar-rHHH0tYI.js";import"./spaces-uqF3-sWW.js";import"./index-8eSZR55e.js";import"./fallback-qea1DwWv.js";import"./wallet-hidden-topbar-PzOecHVw.js";import"./ListItem-EJFW5_aw.js";import"./selector-jHLMIir9.js";import"./index-tJTwzBb_.js";import"./nav-menu-rYrXDg0l.js";import"./Toolbar-lPJJUJ1m.js";import"./Hidden-ETMkRLtp.js";import"./Checkbox-j_1e5eTr.js";const K={arcblock:"ArcBlock",ethereum:"Ethereum"};function O(){var u,f,v,x,h;const{t:o,locale:j}=I(),{info:m,inService:g}=w(),[a,k]=y.useState(!1),{blocklet:e}=A(),{appDid:l,appPid:p,migratedFrom:s=[]}=e,c=(u=e.environments.find(i=>i.key==="BLOCKLET_APP_CHAIN_TYPE"))==null?void 0:u.value,d=[l?{name:o("blocklet.appId"),value:t.jsx(r,{did:l})}:null,p?{name:o("blocklet.appPid"),value:t.jsx(r,{did:p})}:null,(s==null?void 0:s.length)>1?{name:o("blocklet.alsoKnownAs"),value:t.jsxs("div",{children:[(a?s.slice(1):s.slice(1,2)).map(i=>t.jsx(r,{did:i.appDid})),s.length>2&&t.jsx(C,{style:{marginLeft:"18px"},endIcon:a?t.jsx(P,{}):t.jsx(_,{}),onClick:()=>k(!a),children:o(a?"common.collapseAll":"blocklet.router.showAllDIDs")})]})}:null,{name:o("common.name"),value:T(e,!0)},{name:o("common.status"),value:t.jsx(H,{status:e.status,source:e.source,progress:e.progress})},b(e)?{name:"NFT",value:t.jsx(r,{external:!0,href:S((f=e==null?void 0:e.controller)==null?void 0:f.chainHost,(v=e==null?void 0:e.controller)==null?void 0:v.nftId,"asset"),did:(x=e==null?void 0:e.controller)==null?void 0:x.nftId})}:null,{name:o("blocklet.installedAt"),value:B(e.installedAt,j)},{name:o("blocklet.overview.accessControl"),value:o(`team.whoCanAccess.${E(e)}.title`)},{name:o("common.owner"),value:(h=e.settings)!=null&&h.owner?t.jsx(r,{did:e.settings.owner.did}):"--"},{name:o("blocklet.config.walletType.name"),value:K[c||"arcblock"]||c},e.externalSkSource?{name:o("blocklet.skSource"),value:e.externalSkSource}:null].filter(Boolean);g&&d.push({name:o("common.serverDid"),value:t.jsx(r,{did:m.did})},{name:o("common.serverVersion"),value:t.jsx($,{children:m.version})});const D=i=>i.map(n=>t.jsx(R,{style:{display:"flex",alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:n.name,nameFormatter:()=>n.name,children:n.value},n.name));return t.jsxs(Y,{component:"div",children:[t.jsx(W,{}),t.jsx("div",{className:"title",children:t.jsx("span",{children:o("common.basicInfo")})}),t.jsx("div",{className:"basicInfo",children:D(d)})]})}O.propTypes={};const Y=L(N)`
|
|
2
|
-
.title {
|
|
3
|
-
font-size: 1.2rem;
|
|
4
|
-
font-weight: bold;
|
|
5
|
-
margin-top: ${o=>o.theme.spacing(5)};
|
|
6
|
-
margin-bottom: ${o=>o.theme.spacing(3)};
|
|
7
|
-
|
|
8
|
-
&.first {
|
|
9
|
-
margin-top: 0;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
`;export{O as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as o,w as t,j as i}from"./index-pPYPIBlE.js";import{I as s}from"./iframe-Ssz096D4.js";import{S as a}from"./studio-DC0Wz_Lu.js";import"./index-tJTwzBb_.js";import"./nav-menu-rYrXDg0l.js";import"./MoreHoriz-M3NU6QRD.js";import"./ExpandMore-JKQWi6LF.js";import"./Toolbar-lPJJUJ1m.js";import"./Hidden-ETMkRLtp.js";import"./fallback-qea1DwWv.js";function P(){const r=new URLSearchParams;r.set("title","Preference Builder"),r.set("schemaKey",o(window.location.origin,t.WELLKNOWN_SERVICE_PATH_PREFIX,"/api/studio/preferences"));const e=`${o(window.location.origin,t.WELLKNOWN_SERVICE_PATH_PREFIX,"/hosted/form-builder/")}?${r.toString()}`;return i.jsx(a,{children:i.jsx(s,{url:e,width:"100%",height:"100%",frameBorder:0,styles:{border:0}})})}export{P as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as n,bw as l,R as c,j as o,am as d,B as u}from"./index-pPYPIBlE.js";import h from"./index-Czx_Yp7n.js";import"./useSetState-UpmVsjwc.js";import"./index-BfVuEv33.js";import"./FilterList-4kCG8LRc.js";import"./TableRow-0s5gqtkd.js";import"./Checkbox-j_1e5eTr.js";import"./FormControlLabel-mJkBkk_g.js";import"./useFormControl-048JKEU7.js";import"./FormControl-PQjEXXGg.js";import"./FormGroup-vpdPgGk-.js";import"./InputLabel-h-1ztqT6.js";import"./confirm-YPm7YFIn.js";import"./DialogContentText-OScaEdVl.js";import"./Alert-TRn-W2uZ.js";import"./format-error-j9iyo8Yt.js";import"./Select-SiGR5MWy.js";import"./TextField-5mqig0lI.js";import"./index-Gjml824M.js";import"./LastPage-mfo1tUHa.js";import"./Toolbar-lPJJUJ1m.js";import"./index-ORGg9jKv.js";import"./redux-XOuz_cVf.js";import"./toPropertyKey-NzAT2yhV.js";import"./Grid-p48e3xhB.js";import"./Search-k3UVP7sV.js";import"./MoreVert-0G7nxjS1.js";import"./did-address-utn80azk.js";import"./ChevronRight-Z1HFANQM.js";import"./Avatar-rHHH0tYI.js";import"./useLocalStorage-YCi9UL9H.js";import"./session-_d807uES.js";import"./InputAdornment-Aryxdlq1.js";import"./Download-zIigmX7y.js";import"./DeleteOutline-W9qfFaBp.js";import"./index-w1Cpmbnp.js";import"./index-8eSZR55e.js";import"./ExpandMore-JKQWi6LF.js";import"./OpenInNew-hRo2SIn6.js";import"./api-taacukW-.js";const i=new URL(window.location.href),r=i.searchParams.get("mode")==="dialog",w=r?"":i.searchParams.get("padding")||"";function io(){const{t:e}=n(),{componentDid:s}=l(),m=c(a=>a.breakpoints.down("md")),p=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:s},"*")},t=o.jsx(h,{padding:w});return r?o.jsx(d,{className:"resource-dialog",title:e("blocklet.publish.createResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:m?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:p,showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:o.jsx(u,{sx:{height:"72vh",overflow:"auto",position:"relative"},children:t})}):t}export{io as default};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import{r as c,F as M,bm as S,j as o,bJ as m,bO as N,B as O,T as R,bq as A,bP as D,b2 as F,bQ as q,b as J,ax as Q,P as s,bD as G,bR as j,bS as y,bT as H,I as k,bp as K}from"./index-pPYPIBlE.js";function v(e){var g,b,f;const{showText:p,popperProps:C,popperType:P,icon:i,size:x,...T}=e,{locale:d,changeLocale:z,languages:u}=c.useContext(M),l=c.useRef(null),[h,r]=c.useState(!1),t=S(),w=((g=t==null?void 0:t.palette)==null?void 0:g.mode)==="dark",I=n=>{z(n),r(!1),typeof e.onChange=="function"&&e.onChange(n)},$=n=>{var a;(a=l.current)!=null&&a.contains(n.target)||r(!1)},L=p?J:Q,B=P==="hover"?{onMouseEnter:()=>{r(!0)},onMouseLeave:()=>{r(!1)}}:{onClick:()=>{r(!h)}},E=c.useMemo(()=>i?o.jsx(i,{}):o.jsx(m,{icon:N,fontSize:x,color:t.palette.text.secondary}),[i,(f=(b=t==null?void 0:t.palette)==null?void 0:b.text)==null?void 0:f.secondary,x]);return o.jsxs(U,{component:"div",dark:w,theme:t,...T,...B,children:[o.jsx(L,{ref:l,className:"trigger",role:"button","aria-label":"Locale selector button",children:o.jsxs(O,{display:"flex",alignItems:"center",children:[E,p?o.jsx(R,{component:"strong",className:"trigger-text",children:u.find(n=>n.code===d).name}):""]})}),o.jsx(V,{open:h,anchorEl:l.current,...C,disablePortal:!0,children:o.jsx("div",{className:"locales",children:o.jsx(A,{onClickAway:$,children:o.jsx(D,{children:u.map(({code:n,name:a})=>o.jsxs(F,{className:"locale-item",onClick:()=>I(n),children:[o.jsx(m,{icon:q,className:n===d?"check-icon check-icon-visible":"check-icon"}),a]},n))})})})})]})}v.propTypes={size:s.number,showText:s.bool,popperProps:s.object,onChange:s.func,popperType:s.oneOf(["hover","click"]),icon:s.any};v.defaultProps={showText:!0,size:24,popperProps:{},onChange:G,popperType:"click",icon:null};const U=j("div",{shouldForwardProp:e=>e!=="dark"})`
|
|
2
|
-
display: inline-block;
|
|
3
|
-
|
|
4
|
-
.trigger {
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
font-size: 14px;
|
|
9
|
-
white-space: nowrap;
|
|
10
|
-
|
|
11
|
-
.trigger-text {
|
|
12
|
-
margin-left: 5px;
|
|
13
|
-
font-size: 14px;
|
|
14
|
-
color: ${e=>y(e)};
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.locales {
|
|
19
|
-
background: ${e=>H(e)};
|
|
20
|
-
box-shadow: 0px 8px 16px 0px ${k.gray6}, 0px 0px 0px 1px ${k.gray6};
|
|
21
|
-
border-radius: 8px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.locale-item {
|
|
25
|
-
font-size: 16px;
|
|
26
|
-
font-style: normal;
|
|
27
|
-
font-stretch: normal;
|
|
28
|
-
line-height: normal;
|
|
29
|
-
letter-spacing: 2px;
|
|
30
|
-
text-align: center;
|
|
31
|
-
color: ${e=>y(e)};
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
display: flex;
|
|
34
|
-
padding: 16px;
|
|
35
|
-
align-items: center;
|
|
36
|
-
.check-icon {
|
|
37
|
-
visibility: hidden;
|
|
38
|
-
margin-right: 4px;
|
|
39
|
-
}
|
|
40
|
-
.check-icon-visible {
|
|
41
|
-
visibility: visible;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
`,V=j(K)`
|
|
45
|
-
z-index: ${({theme:e})=>e.zIndex.tooltip+10};
|
|
46
|
-
`;export{v as L};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,be as t}from"./index-pPYPIBlE.js";function s(){return o.useContext(t)}export{s as u};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{az as y,aA as S,aB as u,aC as e,aF as c,bG as v,cz as m,cy as C,r as M,aD as z,aE as j,j as s,aH as R,aI as B,bR as T,P as E,y as P}from"./index-pPYPIBlE.js";import{a as N,F as D}from"./FormControlLabel-mJkBkk_g.js";function I(t){return S("MuiSwitch",t)}const A=y("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),o=A,O=["className","color","edge","size","sx"],U=t=>{const{classes:a,edge:i,size:r,color:l,checked:h,disabled:g}=t,b={root:["root",i&&`edge${e(i)}`,`size${e(r)}`],switchBase:["switchBase",`color${e(l)}`,h&&"checked",g&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},w=B(b,I,a);return c({},a,w)},_=u("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:i}=t;return[a.root,i.edge&&a[`edge${e(i.edge)}`],a[`size${e(i.size)}`]]}})(({ownerState:t})=>c({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},t.edge==="start"&&{marginLeft:-8},t.edge==="end"&&{marginRight:-8},t.size==="small"&&{width:40,height:24,padding:7,[`& .${o.thumb}`]:{width:16,height:16},[`& .${o.switchBase}`]:{padding:4,[`&.${o.checked}`]:{transform:"translateX(16px)"}}})),F=u(N,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,a)=>{const{ownerState:i}=t;return[a.switchBase,{[`& .${o.input}`]:a.input},i.color!=="default"&&a[`color${e(i.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${o.checked}`]:{transform:"translateX(20px)"},[`&.${o.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${o.checked} + .${o.track}`]:{opacity:.5},[`&.${o.disabled} + .${o.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${o.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:a})=>c({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:v(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},a.color!=="default"&&{[`&.${o.checked}`]:{color:(t.vars||t).palette[a.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[a.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:v(t.palette[a.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${o.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${a.color}DisabledColor`]:`${t.palette.mode==="light"?m(t.palette[a.color].main,.62):C(t.palette[a.color].main,.55)}`}},[`&.${o.checked} + .${o.track}`]:{backgroundColor:(t.vars||t).palette[a.color].main}})),L=u("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,a)=>a.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),V=u("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,a)=>a.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),X=M.forwardRef(function(a,i){const r=z({props:a,name:"MuiSwitch"}),{className:l,color:h="primary",edge:g=!1,size:b="medium",sx:w}=r,$=j(r,O),n=c({},r,{color:h,edge:g,size:b}),d=U(n),k=s.jsx(V,{className:d.thumb,ownerState:n});return s.jsxs(_,{className:R(d.root,l),sx:w,ownerState:n,children:[s.jsx(F,c({type:"checkbox",icon:k,checkedIcon:k,ref:i,ownerState:n},$,{classes:c({},d,{root:d.switchBase})})),s.jsx(L,{className:d.track,ownerState:n})]})}),G=X,f=T(t=>s.jsx(G,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:t.palette.mode==="dark"?"#2ECA45":"#65C466",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:t.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:t.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}));function p({labelProps:t,...a}){return t?s.jsx(D,{control:s.jsx(f,{...a}),...t}):s.jsx(f,{...a})}p.propTypes={labelProps:E.object};p.defaultProps={labelProps:null};function x({labelProps:t,className:a,style:i,...r}){const l={...t,labelPlacement:(t==null?void 0:t.labelPlacement)||"start"};return s.jsx(H,{className:a,style:i,children:s.jsx(p,{labelProps:l,...r})})}x.propTypes=p.propTypes;x.defaultProps=p.defaultProps;const H=P.div`
|
|
2
|
-
max-width: 300px;
|
|
3
|
-
> label {
|
|
4
|
-
display: flex;
|
|
5
|
-
justify-content: space-between;
|
|
6
|
-
width: 100%;
|
|
7
|
-
margin-left: 0;
|
|
8
|
-
margin-right: 0;
|
|
9
|
-
}
|
|
10
|
-
${({theme:t})=>t.breakpoints.down("sm")} {
|
|
11
|
-
max-width: 100%;
|
|
12
|
-
}
|
|
13
|
-
`;export{G as S,x as a};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{u as C,d as T,r as o,U as k,aq as A,s as D,o as R,j as e,S as E,ar as b,E as I,B as F,T as L,w as P,G as _,x as B,y as p}from"./index-pPYPIBlE.js";import{d as H}from"./CheckCircle-n6sFL-ik.js";import{H as W}from"./addon-PObek_gJ.js";import"./selector-jHLMIir9.js";function K(){var i,c,l;const{t:s,locale:u}=C(),{api:m,session:x}=T(),{searchParams:h}=new URL(window.location.href),[g,j]=o.useState(!1),n=h.get("transferId"),S=(i=window==null?void 0:window.env)==null?void 0:i.appId,v=o.useCallback(async()=>{const{data:t}=await k.get("/blocklet/transfer",{params:{transferId:n}});return t},[n]),a=A(v),w=o.useCallback(async(t,d)=>{t&&(D(d(t.sessionToken)),R(d(t.refreshToken))),await x.refresh(),j(!0)},[]);if(a.loading)return e.jsx(E,{});if(a.error)return e.jsx(f,{children:e.jsx(b,{status:"404",title:(l=(c=a.error)==null?void 0:c.response)==null?void 0:l.data,description:""})});const y=a.data.status==="success";let r;return y||g?r=e.jsxs(e.Fragment,{children:[e.jsx(q,{children:e.jsx(W,{SessionContext:I})}),e.jsx(F,{pt:1,color:"success.main",children:e.jsx(H,{style:{fontSize:80}})}),e.jsx(L,{my:4,variant:"h5",children:s("team.transferApp.successTitle")}),e.jsx("a",{href:`${P.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,children:e.jsx(_,{variant:"contained",children:s("team.transferApp.visitDashboard")})})]}):r=e.jsx(B,{action:"receive-transfer-app-owner",checkFn:m.get,forceConnected:!1,autoConnect:!1,checkTimeout:10*60*1e3,onSuccess:w,onClose:()=>{},locale:u,messages:{title:s("team.transferApp.receiveDialog.title"),scan:s("team.transferApp.receiveDialog.scan"),confirm:s("team.transferApp.receiveDialog.confirm"),success:s("team.transferApp.receiveDialog.success")},extraParams:{transferId:n,appDid:S}}),e.jsx(f,{children:r})}const q=p.div`
|
|
2
|
-
position: fixed;
|
|
3
|
-
top: 16px;
|
|
4
|
-
right: 16px;
|
|
5
|
-
z-index: 9999;
|
|
6
|
-
`,f=p.div`
|
|
7
|
-
width: 100vw;
|
|
8
|
-
height: 100vh;
|
|
9
|
-
min-height: 100vh;
|
|
10
|
-
overflow: auto;
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
align-items: center;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
background-color: #f6f8fa;
|
|
16
|
-
`;export{K as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aT as a,ej as n,aR as s}from"./index-pPYPIBlE.js";var i=n,o=s;function r(e,t){return e&&e.length?o(e,i(t)):[]}var u=r;const b=a(u);export{b as u};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
var ut=Object.defineProperty;var ft=(e,t,n)=>t in e?ut(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var B=(e,t,n)=>(ft(e,typeof t!="symbol"?t+"":t,n),n);import{aB as dt,bE as pt,bF as ht,aF as D,bG as H,r as T,aD as gt,aE as bt,aJ as xe,bH as mt,bI as yt,j as m,aH as we,aI as xt,P as f,M as wt,f as vt,ax as It,bJ as ve,bp as Ct,bq as St,bK as Tt,a7 as At,I as S,bn as Pt,B as jt,bL as kt,T as Lt,bM as Mt,G as Ot,bN as Rt,be as _t,u as Et,ay as qt,_ as Nt,O as Ft}from"./index-pPYPIBlE.js";import{l as L,g as $t,L as Bt}from"./ListItem-EJFW5_aw.js";import{L as Ht}from"./selector-jHLMIir9.js";const zt=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Vt=(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]},Zt=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:s,divider:i,selected:a}=e,l=xt({root:["root",r&&"dense",!s&&"gutters",i&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},$t,n);return D({},n,l)},Dt=dt(pt,{shouldForwardProp:e=>ht(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Vt})(({theme:e,ownerState:t})=>D({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"}},[`&.${L.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:H(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${L.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:H(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${L.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:H(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})`:H(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${L.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${L.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})),Ut=T.forwardRef(function(t,n){const r=gt({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:x}=r,g=bt(r,zt),y=T.useContext(xe),v=T.useMemo(()=>({dense:c||y.dense||!1,alignItems:o,disableGutters:l}),[o,y.dense,c,l]),C=T.useRef(null);mt(()=>{s&&C.current&&C.current.focus()},[s]);const w=D({},r,{alignItems:o,dense:v.dense,disableGutters:l,divider:u,selected:p}),b=Zt(w),Y=yt(C,n);return m.jsx(xe.Provider,{value:v,children:m.jsx(Dt,D({ref:Y,href:g.href||g.to,component:(g.href||g.to)&&i==="div"?"button":i,focusVisibleClassName:we(b.focusVisible,d),ownerState:w,className:we(b.root,x)},g,{classes:b,children:a}))})}),Qt=Ut;/**
|
|
2
|
-
* (c) Iconify
|
|
3
|
-
*
|
|
4
|
-
* For the full copyright and license information, please view the license.txt
|
|
5
|
-
* files at https://github.com/iconify/iconify
|
|
6
|
-
*
|
|
7
|
-
* Licensed under MIT.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
* @version 1.0.8
|
|
11
|
-
*/const He=Object.freeze({left:0,top:0,width:16,height:16}),U=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),N=Object.freeze({...He,...U}),re=Object.freeze({...N,body:"",hidden:!1}),Gt=Object.freeze({width:null,height:null}),ze=Object.freeze({...Gt,...U});function Wt(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 Jt=/[\s,]+/;function Xt(e,t){t.split(Jt).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Ve={...ze,preserveAspectRatio:""};function Ie(e){const t={...Ve},n=(r,o)=>e.getAttribute(r)||o;return t.width=n("width",null),t.height=n("height",null),t.rotate=Wt(n("rotate","")),Xt(t,n("flip","")),t.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),t}function Yt(e,t){for(const n in Ve)if(e[n]!==t[n])return!0;return!1}const O=/^[a-z0-9]+(-[a-z0-9]+)*$/,F=(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&&!V(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&&!V(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!V(a,n)?null:a}return null},V=(e,t)=>e?!!((e.provider===""||e.provider.match(O))&&(t&&e.prefix===""||e.prefix.match(O))&&e.name.match(O)):!1;function Kt(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 Ce(e,t){const n=Kt(e,t);for(const r in re)r in U?r in e&&!(r in n)&&(n[r]=U[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function en(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 tn(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=Ce(r[a]||o[a],s)}return i(t),n.forEach(i),Ce(e,s)}function Ze(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=en(e);for(const o in r){const s=r[o];s&&(t(o,tn(e,o,s)),n.push(o))}return n}const nn={provider:"",aliases:{},not_found:{},...He};function ee(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function De(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ee(e,nn))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(O)||typeof s.body!="string"||!ee(s,re))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(O)||typeof i!="string"||!n[i]&&!r[i]||!ee(s,re))return null}return t}const Q=Object.create(null);function on(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function A(e,t){const n=Q[e]||(Q[e]=Object.create(null));return n[t]||(n[t]=on(e,t))}function de(e,t){return De(t)?Ze(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function rn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function sn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(Q)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(Q[o]||{})).forEach(i=>{const a=A(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let _=!1;function Ue(e){return typeof e=="boolean"&&(_=e),_}function E(e){const t=typeof e=="string"?F(e,!0,_):e;if(t){const n=A(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Qe(e,t){const n=F(e,!0,_);if(!n)return!1;const r=A(n.provider,n.prefix);return rn(r,n.name,t)}function Se(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),_&&!t&&!e.prefix){let o=!1;return De(e)&&(e.prefix="",Ze(e,(s,i)=>{i&&Qe(s,i)&&(o=!0)})),o}const n=e.prefix;if(!V({provider:t,prefix:n,name:"a"}))return!1;const r=A(t,n);return!!de(r,e)}function cn(e){return!!E(e)}function an(e){const t=E(e);return t?{...N,...t}:null}function ln(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]=A(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 Ge(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function un(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||Ge([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let fn=0;function dn(e,t,n){const r=fn++,o=Ge.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 se=Object.create(null);function Te(e,t){se[e]=t}function ie(e){return se[e]||se[""]}function pn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?F(o,t,n):o;s&&r.push(s)}),r}var hn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function gn(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=[],x=[];typeof r=="function"&&x.push(r);function g(){d&&(clearTimeout(d),d=null)}function y(){c==="pending"&&(c="aborted"),g(),p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function v(h,I){I&&(x=[]),typeof h=="function"&&x.push(h)}function C(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:p.length,subscribe:v,abort:y}}function w(){c="failed",x.forEach(h=>{h(void 0,u)})}function b(){p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function Y(h,I,k){const $=I!=="success";switch(p=p.filter(P=>P!==h),c){case"pending":break;case"failed":if($||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){u=k,w();return}if($){u=k,p.length||(i.length?K():w());return}if(g(),b(),!e.random){const P=e.resources.indexOf(h.resource);P!==-1&&P!==e.index&&(e.index=P)}c="completed",x.forEach(P=>{P(k)})}function K(){if(c!=="pending")return;g();const h=i.shift();if(h===void 0){if(p.length){d=setTimeout(()=>{g(),c==="pending"&&(b(),w())},e.timeout);return}w();return}const I={status:"pending",resource:h,callback:(k,$)=>{Y(I,k,$)}};p.push(I),l++,d=setTimeout(K,e.rotate),n(h,t,I.callback)}return setTimeout(K),C}function We(e){const t={...hn,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,l){const u=gn(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 pe(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 W=Object.create(null),M=["https://api.simplesvg.com","https://api.unisvg.com"],Z=[];for(;M.length>0;)M.length===1||Math.random()>.5?Z.push(M.shift()):Z.push(M.pop());W[""]=pe({resources:["https://api.iconify.design"].concat(Z)});function Ae(e,t){const n=pe(t);return n===null?!1:(W[e]=n,!0)}function J(e){return W[e]}function bn(){return Object.keys(W)}function Pe(){}const te=Object.create(null);function mn(e){if(!te[e]){const t=J(e);if(!t)return;const n=We(t),r={config:t,redundancy:n};te[e]=r}return te[e]}function Je(e,t,n){let r,o;if(typeof e=="string"){const s=ie(e);if(!s)return n(void 0,424),Pe;o=s.send;const i=mn(e);i&&(r=i.redundancy)}else{const s=pe(e);if(s){r=We(s);const i=e.resources?e.resources[0]:"",a=ie(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),Pe):r.query(t,o,n)().abort}const je="iconify2",q="iconify",Xe=q+"-count",ke=q+"-version",Ye=36e5,yn=168;function ce(e,t){try{return e.getItem(t)}catch{}}function he(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Le(e,t){try{e.removeItem(t)}catch{}}function ae(e,t){return he(e,Xe,t.toString())}function le(e){return parseInt(ce(e,Xe))||0}const j={local:!0,session:!0},Ke={local:new Set,session:new Set};let ge=!1;function xn(e){ge=e}let z=typeof window>"u"?{}:window;function et(e){const t=e+"Storage";try{if(z&&z[t]&&typeof z[t].length=="number")return z[t]}catch{}j[e]=!1}function tt(e,t){const n=et(e);if(!n)return;const r=ce(n,ke);if(r!==je){if(r){const a=le(n);for(let c=0;c<a;c++)Le(n,q+c.toString())}he(n,ke,je),ae(n,0);return}const o=Math.floor(Date.now()/Ye)-yn,s=a=>{const c=q+a.toString(),l=ce(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{}Le(n,c)}};let i=le(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ae(n,i)):Ke[e].add(a))}function nt(){if(!ge){xn(!0);for(const e in j)tt(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=A(r,o);if(!de(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function wn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in j)tt(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function vn(e,t){ge||nt();function n(r){let o;if(!j[r]||!(o=et(r)))return;const s=Ke[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=le(o),!ae(o,i+1))return;const a={cached:Math.floor(Date.now()/Ye),provider:e.provider,data:t};return he(o,q+i.toString(),JSON.stringify(a))}t.lastModified&&!wn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Me(){}function In(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,un(e)}))}function Cn(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=ie(n)))return;s.prepare(n,r,o).forEach(a=>{Je(n,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{e.missing.add(l)});else try{const l=de(e,c);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),vn(e,c)}catch(l){console.error(l)}In(e)})})}))}const be=(e,t)=>{const n=pn(e,!0,Ue()),r=ln(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,Me)}),()=>{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(A(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=A(l,u),x=p.pendingIcons||(p.pendingIcons=new Set);x.has(d)||(x.add(d),o[l][u].push(d))}),s.forEach(c=>{const{provider:l,prefix:u}=c;o[l][u].length&&Cn(c,o[l][u])}),t?dn(t,r,s):Me},Sn=e=>new Promise((t,n)=>{const r=typeof e=="string"?F(e,!0):e;if(!r){n(e);return}be([r||e],o=>{if(o.length&&r){const s=E(r);if(s){t({...N,...s});return}}n(e)})});function Tn(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(typeof t.body=="string")return{...t}}catch{}}function An(e,t){const n=typeof e=="string"?F(e,!0,!0):null;if(!n){const s=Tn(e);return{value:e,data:s}}const r=E(n);if(r!==void 0||!n.prefix)return{value:e,name:n,data:r};const o=be([n],()=>t(e,n,E(n)));return{value:e,name:n,loading:o}}function ne(e){return e.hasAttribute("inline")}let ot=!1;try{ot=navigator.vendor.indexOf("Apple")===0}catch{}function Pn(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(ot||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const jn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,kn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ue(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(jn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=kn.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 Ln=e=>e==="unset"||e==="undefined"||e==="none";function rt(e,t){const n={...N,...e},r={...ze,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(g=>{const y=[],v=g.hFlip,C=g.vFlip;let w=g.rotate;v?C?w+=2:(y.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),y.push("scale(-1 1)"),o.top=o.left=0):C&&(y.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),y.push("scale(1 -1)"),o.top=o.left=0);let b;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:b=o.height/2+o.top,y.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:y.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:b=o.width/2+o.left,y.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}w%2===1&&(o.left!==o.top&&(b=o.left,o.left=o.top,o.top=b),o.width!==o.height&&(b=o.width,o.width=o.height,o.height=b)),y.length&&(s='<g transform="'+y.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=ue(d,c/l)):(u=i==="auto"?c:i,d=a===null?ue(u,l/c):a==="auto"?l:a);const p={},x=(g,y)=>{Ln(y)||(p[g]=y.toString())};return x("width",u),x("height",d),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:p,body:s}}const Mn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let G=Mn();function On(e){G=e}function Rn(){return G}function _n(e,t){const n=J(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 En(e){return e===404}const qn=(e,t,n)=>{const r=[],o=_n(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 Nn(e){if(typeof e=="string"){const t=J(e);if(t)return t.path}return"/"}const Fn=(e,t,n)=>{if(!G){n("abort",424);return}let r=Nn(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;G(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(En(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)})},$n={prepare:qn,send:Fn};function Oe(e,t){switch(e){case"local":case"session":j[e]=t;break;case"all":for(const n in j)j[n]=t;break}}const oe="data-style";let st="";function Bn(e){st=e}function Re(e,t){let n=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(oe));n||(n=document.createElement("style"),n.setAttribute(oe,oe),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+st}function it(){Te("",$n),Ue(!0);let e;try{e=window}catch{}if(e){if(nt(),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"||!Se(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;Ae(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Oe(n,!0),disableCache:n=>Oe(n,!1),iconExists:cn,getIcon:an,listIcons:sn,addIcon:Qe,addCollection:Se,calculateSize:ue,buildIcon:rt,loadIcons:be,loadIcon:Sn,addAPIProvider:Ae,appendCustomStyle:Bn,_api:{getAPIConfig:J,setAPIModule:Te,sendAPIQuery:Je,setFetch:On,getFetch:Rn,listAPIProviders:bn}}}function ct(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 Hn(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function zn(e){return"data:image/svg+xml,"+Hn(e)}function Vn(e){return'url("'+zn(e)+'")'}const fe={"background-color":"currentColor"},at={"background-color":"transparent"},_e={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ee={"-webkit-mask":fe,mask:fe,background:at};for(const e in Ee){const t=Ee[e];for(const n in _e)t[e+"-"+n]=_e[n]}function qe(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function Zn(e,t,n){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=e.attributes,i=ct(o,{...s,width:t.width+"",height:t.height+""}),a=Vn(i),c=r.style,l={"--svg":a,width:qe(s.width),height:qe(s.height),...n?fe:at};for(const u in l)c.setProperty(u,l[u]);return r}let R;function Dn(){try{R=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{R=null}}function Un(e){return R===void 0&&Dn(),R?R.createHTML(e):e}function Qn(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=ct(e.body,n);return t.innerHTML=Un(o),t.firstChild}function Ne(e,t){const n=t.icon.data,r=t.customisations,o=rt(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=t.renderedMode;let i;switch(s){case"svg":i=Qn(o);break;default:i=Zn(o,{...N,...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 Fe(e,t,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:r}}function Gn(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();B(this,"_shadowRoot");B(this,"_state");B(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=ne(this);Re(c,l),this._state=Fe({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=ne(this),u=this._state;l!==u.inline&&(u.inline=l,Re(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 ne(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{}Ne(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=Ie(this);(c.attrMode!==u||Yt(c.customisations,d))&&this._renderIcon(c.icon,d,u)}_iconChanged(c){const l=An(c,(u,d,p)=>{const x=this._state;if(x.rendered||this.getAttribute("icon")!==u)return;const g={value:u,name:d,data:p};g.data?this._gotIconData(g):x.icon=g});l.data?this._gotIconData(l):this._state=Fe(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,Ie(this),this.getAttribute("mode"))}_renderIcon(c,l,u){const d=Pn(c.data.body,u),p=this._state.inline;Ne(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=it();for(const a in i)s[a]=s.prototype[a]=i[a];return t.define(e,s),s}Gn()||it();const uo=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])}))}))}),Wn=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}),X=(e,t,n="children")=>e.map(r=>Array.isArray(r[n])?t({...r,[n]:X(r[n],t,n)}):t(r)),fo=(e,t="children")=>{const n=[];return X(e,r=>n.push(r),t),n},me=(e,t,n="children")=>e.map(r=>({...r})).filter(r=>{const o=r[n];if(Array.isArray(o)){const i=me(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)}),Jn=e=>/^https?:\/\//.test(e),po=e=>/^[\w-]+:[\w-]+$/.test(e),Xn=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)},ho=(e=[])=>{const t=e.map((r,o)=>({path:r,index:o})).filter(r=>Xn(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 $e,Be;const go=(($e=window==null?void 0:window.blocklet)==null?void 0:$e.groupPrefix)||((Be=window==null?void 0:window.blocklet)==null?void 0:Be.prefix)||"/",Yn=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},Kn=(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(Jn(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 X(e,o=>{var s;return{...o,title:n(o.title,t),link:(s=o.items)!=null&&s.length?o.link:r(o.link,t)}},"items")},eo=e=>X(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),to=e=>{if(!(e!=null&&e.length))return null;const t=eo(e),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[]};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},bo=e=>{if(!e)return null;const t={...e};return t.theme=Yn(t.theme),t.navigation=to(no(t.navigation)),t},no=(e=[])=>me(e,(t,n)=>{var r;return!!t.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),oo=(e,t)=>me(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"),ro={width:24,height:24,body:'<path fill="currentColor" d="M13 8V4q0-.425.288-.713T14 3h6q.425 0 .713.288T21 4v4q0 .425-.288.713T20 9h-6q-.425 0-.713-.288T13 8ZM3 12V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v8q0 .425-.288.713T10 13H4q-.425 0-.713-.288T3 12Zm10 8v-8q0-.425.288-.713T14 11h6q.425 0 .713.288T21 12v8q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-4q0-.425.288-.713T4 15h6q.425 0 .713.288T11 16v4q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20Zm2-9h4V5H5v6Zm10 8h4v-6h-4v6Zm0-12h4V5h-4v2ZM5 19h4v-2H5v2Zm4-8Zm6-4Zm0 6Zm-6 4Z"/>'},so={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 ye({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=T.useRef(null),i=wt({open:!1}),a=vt((c=!i.open)=>{i.open=c});return o.length===0?null:m.jsxs(m.Fragment,{children:[m.jsx(It,{size:"medium",ref:s,onClick:()=>a(),children:m.jsx(ve,{icon:ro,fontSize:n})}),m.jsx(Ct,{open:i.open,onClose:()=>a(!1),anchorEl:s.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>m.jsx(St,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:m.jsx(Tt,{...c,timeout:350,children:m.jsxs(At,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:S.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${S.gray6}, 0px 0px 0px 1px ${S.gray6}`},children:[m.jsx(Pt,{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(Bt,{disablePadding:!0,children:m.jsxs(Qt,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:S.surfacePrimarySubtitle}},children:[(u=l==null?void 0:l.component)!=null&&u.did?m.jsx(jt,{component:"img",src:`${kt}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):m.jsx(ve,{fontSize:50,icon:l.icon||so,color:S.textSubtitle}),m.jsx(Lt,{sx:{fontSize:"12px",color:S.textBase,textAlign:"center",lineHeight:"normal"},children:((d=l.title)==null?void 0:d.zh)||l.title})]})},l.id)})}),m.jsx(Mt,{session:e,children:m.jsx(Ot,{variant:"outlined",fullWidth:!0,href:Rt,sx:{mt:1,borderRadius:2,color:S.textBase,borderColor:S.lineBorderStrong,"&:hover":{color:S.primaryBase,borderColor:S.primaryBase}},children:t==="zh"?"管理":"Manage"})})]})})})})]})}ye.propTypes={session:f.object.isRequired,locale:f.string,size:f.number};ye.defaultProps={locale:"en",size:24};function lt({formattedBlocklet:e,addons:t,sessionManagerProps:n}){var p,x,g,y;const r=T.useContext(_t),{locale:o}=Et()||{},{enableConnect:s=!0,enableLocale:i=!0}=e,a=!!((p=r==null?void 0:r.session)!=null&&p.user);let c=Kn((x=e==null?void 0:e.navigation)==null?void 0:x.sessionManager,o)||[];c=oo(c,(y=(g=r==null?void 0:r.session)==null?void 0:g.user)==null?void 0:y.role);const u=(()=>{if(t&&typeof t!="function")return Array.isArray(t)?t:[t];let v=[];if(i&&o&&v.push(m.jsx(Ht,{showText:!1},"locale-selector")),s&&r){const C=[];a&&(c?c.slice(0,5):[]).forEach(b=>{C.push({label:b.title,icon:b.icon?m.jsx("iconify-icon",{icon:b.icon,height:24,style:{marginRight:8}}):null,component:"a",href:b.link,key:b.link})}),v.push(m.jsx(ye,{session:r.session,locale:o},"session-blocklet")),v.push(m.jsx(qt,{session:r.session,locale:o,menu:C,showRole:!0,...n},"session-user"))}return typeof t=="function"&&(v=t(v)||[]),v})();return T.createElement(m.Fragment,null,...Array.isArray(u)?u:[u])}lt.propTypes={formattedBlocklet:f.object.isRequired,addons:f.oneOfType([f.func,f.node]),sessionManagerProps:Wn};lt.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const mo=()=>{const e=Nt();T.useEffect(()=>{e.wallet&&Ft(()=>import("./index-F_S38T2q.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])};export{lt as H,Qt as L,oo as a,uo as b,fo as c,ho as d,po as e,bo as f,Kn as g,Jn as i,X as m,go as p,Wn as s,mo as u};
|
|
12
|
-
function __vite__mapDeps(indexes) {
|
|
13
|
-
if (!__vite__mapDeps.viteFileDeps) {
|
|
14
|
-
__vite__mapDeps.viteFileDeps = ["assets/index-F_S38T2q.js","assets/index-pPYPIBlE.js","assets/index-Fay2ci-b.css"]
|
|
15
|
-
}
|
|
16
|
-
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{as as a,at as t,au as e,j as r,av as o}from"./index-pPYPIBlE.js";const i={zh:a(t),en:a(e)};function p(s){return function(n){return r.jsx(o,{translations:i,children:r.jsx(s,{...n})})}}export{p as w};
|