@abtnode/blocklet-services 1.16.24 → 1.16.25-beta-fe54d1bc
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/emails/components/compose.js +3 -7
- package/api/services/auth/connect/lost-passport-issue.js +3 -1
- package/api/util/federated.js +7 -35
- package/dist/assets/{Add-WDdJdEqG.js → Add-cHlB2aT1.js} +1 -1
- package/dist/assets/{Alert-AQRW7zNs.js → Alert-MdJYBFVy.js} +1 -1
- package/dist/assets/{ArrowDropDown-N58JuiJA.js → ArrowDropDown-BvBvwG40.js} +1 -1
- package/dist/assets/{Avatar-bKSuWUG4.js → Avatar-fSw3xwrG.js} +1 -1
- package/dist/assets/{ButtonGroup-BheXsRUE.js → ButtonGroup-rkDf74jq.js} +1 -1
- package/dist/assets/{CheckCircle-dfA-M42a.js → CheckCircle-zEocFWjW.js} +1 -1
- package/dist/assets/Checkbox--mmHc71j.js +1 -0
- package/dist/assets/{ChevronRight-CoK1SGl3.js → ChevronRight-fbb5cYZ4.js} +1 -1
- package/dist/assets/{CloseOutlined-YQzGZU8J.js → CloseOutlined-9i0XEqO_.js} +1 -1
- package/dist/assets/{DeleteOutline-HO4NdxVI.js → DeleteOutline-Zyru4y8C.js} +1 -1
- package/dist/assets/{Done-H_M3FDkD.js → Done-aCKUu1sE.js} +1 -1
- package/dist/assets/{Download-0HfKuvbD.js → Download-wIqjcRIP.js} +1 -1
- package/dist/assets/{Edit-auVFqHC5.js → Edit-VGLT5fsM.js} +1 -1
- package/dist/assets/{EditIcon--hpbGL_h.js → EditIcon-OYkqAblR.js} +1 -1
- package/dist/assets/{ExpandMore-PEPV9-2G.js → ExpandMore-byZ1bCvM.js} +1 -1
- package/dist/assets/{FilterList-Er8pwcj5.js → FilterList-aeaSrubq.js} +4 -4
- package/dist/assets/FormControl-oOR29lpJ.js +1 -0
- package/dist/assets/{FormControlLabel-iyjq-H6q.js → FormControlLabel-L3cnXbG5.js} +1 -1
- package/dist/assets/FormGroup-7rC8tk9C.js +1 -0
- package/dist/assets/{Google-CyLS4e2D.js → Google-SlAlwx1t.js} +1 -1
- package/dist/assets/{Grid-4NezTuja.js → Grid-7TNNvUm7.js} +1 -1
- package/dist/assets/{Hidden-gPTA9v6p.js → Hidden-gMCEevUV.js} +1 -1
- package/dist/assets/{InfoOutlined-E9hxjK4I.js → InfoOutlined-IFjNFHvN.js} +1 -1
- package/dist/assets/{InputAdornment-52lrqq5P.js → InputAdornment-JqnRRMW5.js} +1 -1
- package/dist/assets/{InputLabel-Rit5LKW4.js → InputLabel-tixiiB_7.js} +1 -1
- package/dist/assets/{LastPage-_LfJFUyH.js → LastPage-SxjDnWfh.js} +1 -1
- package/dist/assets/{Launch-w2hHzRWy.js → Launch-AGhMgMzI.js} +1 -1
- package/dist/assets/{LaunchOutlined-Gf4Wy15g.js → LaunchOutlined-wEhMyxOq.js} +1 -1
- package/dist/assets/Link-kO4yy9NY.js +1 -0
- package/dist/assets/{ListItem-BmjU5hv3.js → ListItem-22rMJzrR.js} +1 -1
- package/dist/assets/{LockIcon-deCGylbt.js → LockIcon-Zvlt6Ez7.js} +1 -1
- package/dist/assets/{Loop-1sThEXxk.js → Loop-eMhEddk0.js} +1 -1
- package/dist/assets/{MoreHoriz-kicvNBtb.js → MoreHoriz-wD31dy4A.js} +1 -1
- package/dist/assets/{MoreVert-n2KuIRxb.js → MoreVert-y0nkhqA-.js} +2 -2
- package/dist/assets/{OpenInNew-MbSwpJPa.js → OpenInNew-lS0r1wSf.js} +1 -1
- package/dist/assets/{Pagination-mbc9idZ7.js → Pagination-BpRx0SAK.js} +2 -2
- package/dist/assets/{PlayArrow-xdwdtCB6.js → PlayArrow-OaVVr0ni.js} +1 -1
- package/dist/assets/{RadioGroup-InHu6p9z.js → RadioGroup-37HVwVTv.js} +1 -1
- package/dist/assets/{RevokeIcon-NoCCXIIG.js → RevokeIcon-Y9PaByDx.js} +1 -1
- package/dist/assets/{Search-d8bEjbts.js → Search-u7box4_Y.js} +1 -1
- package/dist/assets/{Select-qzM-1CaZ.js → Select-pRXRwWUr.js} +2 -2
- package/dist/assets/{ServerLogo-N9e0WK8a.js → ServerLogo-jwHh0IgF.js} +1 -1
- package/dist/assets/{Skeleton-UZ9sv-rw.js → Skeleton-f2FtQiax.js} +5 -5
- package/dist/assets/{Slider-MQnZlZaX.js → Slider-H4XrXpoV.js} +1 -1
- package/dist/assets/{Stepper-1JZ54zA0.js → Stepper-VaR1-5O8.js} +1 -1
- package/dist/assets/{TableRow-AIJnMrKF.js → TableRow-Cj_2GgNk.js} +2 -2
- package/dist/assets/{TextField-dcpyNAKs.js → TextField-ZyGIim97.js} +1 -1
- package/dist/assets/{Toolbar-sCKpHBcq.js → Toolbar-doxZSzMe.js} +1 -1
- package/dist/assets/{access-control-G1bMCp6w.js → access-control-aK8P4gb0.js} +1 -1
- package/dist/assets/actions-xNOsUM5q.js +1 -0
- package/dist/assets/{add-component-core-MYHqqDji.js → add-component-core-zbwQZ7Gj.js} +1 -1
- package/dist/assets/add-resource-hfRO6Rgs.js +1 -0
- package/dist/assets/{addon-Nph8ufEK.js → addon-64NahJ__.js} +1 -1
- package/dist/assets/{analytics-1mKBrMrj.js → analytics-g0Vfj2hE.js} +6 -6
- package/dist/assets/api-oD_O5CWe.js +1 -0
- package/dist/assets/{ar-nkLJluso.js → ar-fO-TQQ5n.js} +1 -1
- package/dist/assets/{audit-logs-NH5dHOq6.js → audit-logs-uyu3rQip.js} +1 -1
- package/dist/assets/{button-rkwI1ngi.js → button-MCw_QfXz.js} +1 -1
- package/dist/assets/{click-to-copy-MvvPjD8U.js → click-to-copy-LXhBTX9X.js} +1 -1
- package/dist/assets/{complete-2f1z508v.js → complete-P7vW9Q6f.js} +4 -4
- package/dist/assets/{component-rgliY6Pu.js → component-DzlvVteR.js} +17 -17
- package/dist/assets/{config-BpDr7O4J.js → config-80unJZu-.js} +1 -1
- package/dist/assets/{config-tDO5CgOu.js → config-Ea6I9v5o.js} +2 -2
- package/dist/assets/{config-navigation-nBT4p__2.js → config-navigation-bW1alqTf.js} +5 -5
- package/dist/assets/{config-space-vCzS4ed7.js → config-space-1m3dkUIH.js} +1 -1
- package/dist/assets/confirm-yrg6H3m3.js +7 -0
- package/dist/assets/{connect-OtRdoyy_.js → connect-YLbdrcyy.js} +1 -1
- package/dist/assets/{connect-bfcQu1JF.js → connect-flk1UIKu.js} +1 -1
- package/dist/assets/connect-to-khFlOoo3.js +54 -0
- package/dist/assets/{content-layout-TCQuAKXw.js → content-layout-ffAMA0Xk.js} +1 -1
- package/dist/assets/{dashboard-x--y9YOr.js → dashboard-D4mJn4NA.js} +3 -3
- package/dist/assets/{de-qGd7v1gt.js → de-zOtstEWG.js} +1 -1
- package/dist/assets/{did-address-zJ7PBjAZ.js → did-address-ECHkrvY7.js} +1 -1
- package/dist/assets/domain-k9a3yDA2.js +9 -0
- package/dist/assets/{domain-list-OAuyIrNp.js → domain-list-2PxYmwNK.js} +2 -2
- package/dist/assets/{es-F3sh3G2W.js → es-g-0bak_e.js} +1 -1
- package/dist/assets/{exchange-passport-btSO3tNg.js → exchange-passport-yCBnyVYx.js} +1 -1
- package/dist/assets/{fallback-O1lsZgQY.js → fallback-IjAJjezW.js} +1 -1
- package/dist/assets/{fr-EzFmAe1s.js → fr-mfXzaX-g.js} +1 -1
- package/dist/assets/{fuel-K4yOk5ZT.js → fuel-MtoIUvUC.js} +1 -1
- package/dist/assets/{fullpage-dePogILv.js → fullpage-YNLC3IT8.js} +1 -1
- package/dist/assets/{hi-bWjQ_L7j.js → hi-xGBcNE3I.js} +1 -1
- package/dist/assets/{home-Zs5sYLpU.js → home-vKdVJ5HF.js} +1 -1
- package/dist/assets/{id-845FTb9K.js → id-BgfK1i1u.js} +1 -1
- package/dist/assets/{iframe-2i65LTvr.js → iframe--DDyxCFe.js} +1 -1
- package/dist/assets/index-26PglcEO.js +1 -0
- package/dist/assets/{index-xGBgy5mk.js → index-8IYt6Tm_.js} +1 -1
- package/dist/assets/{index-OXBhEli5.js → index-8VBxs9u3.js} +4 -4
- package/dist/assets/{index-zyKqbtMn.js → index-BV6xFdZD.js} +1 -1
- package/dist/assets/{index-v7vHeeBi.js → index-EXmerWmJ.js} +9 -9
- package/dist/assets/{index-PL_5tYPX.js → index-G9GF7vbH.js} +5 -5
- package/dist/assets/{index-_WXD8Ful.js → index-IpFMsnoW.js} +1 -1
- package/dist/assets/{index-usRYrac9.js → index-JYhe2G5y.js} +1 -1
- package/dist/assets/{index-Kgn8faxm.js → index-Lh9Yvtax.js} +2 -2
- package/dist/assets/index-MKqHQU8x.js +1 -0
- package/dist/assets/{index-Ks4VoWho.js → index-OUA4hTDF.js} +11 -11
- package/dist/assets/{index-6wHErAp8.js → index-S-si__X3.js} +1 -1
- package/dist/assets/{index-uDFpsjON.js → index-UgzUFIZC.js} +12 -12
- package/dist/assets/{index-mfX4Z_ob.js → index-VFmj_3nK.js} +1 -1
- package/dist/assets/index-WWDbv1Eq.js +4 -0
- package/dist/assets/{index-kwi95das.js → index-YVfYKQPA.js} +8 -8
- package/dist/assets/{index-HsYtPyEF.js → index-Ym1-gm8d.js} +2 -2
- package/dist/assets/index-ZiUiRdOB.js +1 -0
- package/dist/assets/{index-DRjSsBKa.js → index-bXBQKCg5.js} +1 -1
- package/dist/assets/{index-9mrU0Rmp.js → index-ccjgq6fd.js} +5 -5
- package/dist/assets/index-hh07q2GE.js +57 -0
- package/dist/assets/{index-6f4t6ujr.js → index-mn6jUdgx.js} +12 -11
- package/dist/assets/{index-pGibhFau.js → index-o710KUFS.js} +141 -141
- package/dist/assets/{index-pgNk2i1k.js → index-oxQd4nva.js} +1 -1
- package/dist/assets/{index-l5Q5BeBV.js → index-pdBeVTGN.js} +1 -1
- package/dist/assets/{index-oifRmMCD.js → index-r3XMu1Ks.js} +4 -4
- package/dist/assets/{index-rJiiERiq.js → index-rqKNtf3z.js} +1 -1
- package/dist/assets/{index-y1gwx_LD.js → index-saPuhMhh.js} +1 -1
- package/dist/assets/{index-ohCfeVhJ.js → index-yvk_oh1_.js} +3 -3
- package/dist/assets/{index.es-_4Sgm88Y.js → index.es-lbwZYV-L.js} +2 -2
- package/dist/assets/{index.esm-SW2OggIB.js → index.esm-HKU4eQVx.js} +1 -1
- package/dist/assets/{invitation-nJ3vg-pt.js → invitation-e2c4kSlx.js} +6 -6
- package/dist/assets/invite-hdpCzq3L.js +10 -0
- package/dist/assets/{issue-passport-hKIijQTd.js → issue-passport-gmkPNmza.js} +1 -1
- package/dist/assets/{ja-Hi127O_D.js → ja-Eluc4XiC.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-ECn5Vx9S.js → jss-plugin-props-sort.esm-ovOeGd-o.js} +6 -6
- package/dist/assets/{ko-NzlB4eSS.js → ko-EwGJOqZn.js} +1 -1
- package/dist/assets/{launch-result-message-ktr5H9XK.js → launch-result-message-eVOyvqSH.js} +1 -1
- package/dist/assets/{layout-Lyx6RmLO.js → layout-PpqpyJ6o.js} +2 -2
- package/dist/assets/{list-header-VMPHF9iU.js → list-header-YBNntNYI.js} +1 -1
- package/dist/assets/localization-4OUgsdII.js +1 -0
- package/dist/assets/{log-8RunlAgG.js → log-rzr7eADS.js} +1 -1
- package/dist/assets/{login-21ECJ74z.js → login-kqUJ5Zy_.js} +1 -1
- package/dist/assets/{logo-uploader-BDadbd3h.js → logo-uploader-BdVu_wfY.js} +3 -3
- package/dist/assets/lost-passport-e2_Aixuz.js +169 -0
- package/dist/assets/{lottie-wlqJWst3.js → lottie-VSBLQIsZ.js} +1 -1
- package/dist/assets/{notifications-nKf9_FFI.js → notifications-Gd9Mk4s-.js} +2 -2
- package/dist/assets/overview-0Vyc0Cwy.js +12 -0
- package/dist/assets/{page-header-U2CVgkWR.js → page-header-o4M2G8PP.js} +1 -1
- package/dist/assets/{permission-WNFD5_nx.js → permission--6GIxgou.js} +2 -2
- package/dist/assets/{preferences--Q6D_dka.js → preferences-q4lQqOmp.js} +1 -1
- package/dist/assets/{pt-fZqsedoE.js → pt-zZ8uqGF1.js} +1 -1
- package/dist/assets/publish-resource-Fe3acGXx.js +1 -0
- package/dist/assets/{react-AhHGsWwr.js → react-9qdY2BUq.js} +3 -3
- package/dist/assets/{ru-FzT6EXgI.js → ru--w8Oaf3o.js} +1 -1
- package/dist/assets/{selector-P96nc_Ap.js → selector-xIZpkZZH.js} +6 -6
- package/dist/assets/session-QnPtqbmu.js +1 -0
- package/dist/assets/setup-hZt95TOJ.js +19 -0
- package/dist/assets/{slicedToArray-kPPS54-k.js → slicedToArray-TwNvqSQp.js} +1 -1
- package/dist/assets/{spaces-1CPV591v.js → spaces-qMnDTN0_.js} +1 -1
- package/dist/assets/start-PVNjbt4-.js +186 -0
- package/dist/assets/{step-actions-N7zwwohe.js → step-actions-W8kQwGcm.js} +1 -1
- package/dist/assets/{studio-CxghSruL.js → studio-RndkT_vD.js} +1 -1
- package/dist/assets/{switch-control-WXJ8qMfw.js → switch-control-ivJ4ll4x.js} +1 -1
- package/dist/assets/{th-Zhif6a7b.js → th-OrOXPFh7.js} +1 -1
- package/dist/assets/{toUpper-C86DgVZ_.js → toUpper-CIY0cVrY.js} +1 -1
- package/dist/assets/transfer-Plp5xICV.js +16 -0
- package/dist/assets/{uniqBy-6KZ934sX.js → uniqBy-WQM1t37b.js} +1 -1
- package/dist/assets/{unsubscribe-dqwT8FF9.js → unsubscribe-xGN5x3Qn.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-aXvEcXr-.js → use-blocklet-info-for-connect-did-spaces-MBXLKWI5.js} +1 -1
- package/dist/assets/{useAsync-JjBWssv2.js → useAsync-cflFULKW.js} +1 -1
- package/dist/assets/{useFormControl-VOgEaleJ.js → useFormControl-FTiWn0ol.js} +1 -1
- package/dist/assets/{useLocalStorage-9VC3gs0q.js → useLocalStorage-ieO-IiCr.js} +1 -1
- package/dist/assets/{useSetState-SMV74L5M.js → useSetState-LqZ6-yZ8.js} +1 -1
- package/dist/assets/useSlot-Q68JwoxM.js +1 -0
- package/dist/assets/user-center-Mc5H24-C.js +1 -0
- package/dist/assets/{util-w4bxwhzQ.js → util-6HXJO81-.js} +1 -1
- package/dist/assets/{vi-5KnZNH-9.js → vi-CGk_Fm4W.js} +1 -1
- package/dist/assets/wrap-locale-02wmIj1x.js +7 -0
- package/dist/assets/{zh-csjW3oJT.js → zh-WcR_AFSw.js} +1 -1
- package/dist/assets/{zh-tw-F9MX2n79.js → zh-tw-qY9ZK7Oa.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +33 -34
- package/dist/assets/Checkbox-B5XdNNJl.js +0 -1
- package/dist/assets/FormControl-hHMT3-Fx.js +0 -1
- package/dist/assets/FormGroup-2rV9ElQK.js +0 -1
- package/dist/assets/Link-wgdQ9RHW.js +0 -1
- package/dist/assets/actions-AboOBR4u.js +0 -1
- package/dist/assets/add-resource-5KEcnW0a.js +0 -1
- package/dist/assets/api-H2qig1CO.js +0 -1
- package/dist/assets/confirm-UmCyuAls.js +0 -7
- package/dist/assets/connect-to-Cf1HNMp8.js +0 -54
- package/dist/assets/domain-AL-U05SM.js +0 -9
- package/dist/assets/index-Da1M-4E9.js +0 -1
- package/dist/assets/index-GejfSwCZ.js +0 -57
- package/dist/assets/index-Q80op6vp.js +0 -4
- package/dist/assets/index-x3COoYvm.js +0 -1
- package/dist/assets/index-yIAmVrGY.js +0 -1
- package/dist/assets/invite-7ZZe0giN.js +0 -10
- package/dist/assets/localization-0qEiSRTW.js +0 -1
- package/dist/assets/lost-passport-V1SJHiiI.js +0 -169
- package/dist/assets/overview-KNchIefB.js +0 -12
- package/dist/assets/publish-resource-UoicBA3C.js +0 -1
- package/dist/assets/session-HctTv_0n.js +0 -1
- package/dist/assets/setup-JZnnrQPa.js +0 -19
- package/dist/assets/start-6orxb8J0.js +0 -186
- package/dist/assets/transfer-Ili2Y2Qy.js +0 -16
- package/dist/assets/useSlot-TM11Rdy-.js +0 -1
- package/dist/assets/user-center-5mg_Pkp4.js +0 -1
- package/dist/assets/wrap-locale-mXuYvA_K.js +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aT as a}from"./index-o710KUFS.js";var e=i,s=/^(?:\w+:)?\/\/(\S+)$/,l=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,n=/^[^\s\.]+\.\S{2,}$/;function i(t){if(typeof t!="string")return!1;var o=t.match(s);if(!o)return!1;var r=o[1];return r?!!(l.test(r)||n.test(r)):!1}const c=a(e);export{c as i};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{an as At,j as l,aC as K,co as _t,aF as $,e6 as ot,aE as se,aA as _e,aB as Le,T as L,r as x,az as Oe,aG as ht,aH as Me,aI as Ve,B as j,S as we,P,u as ne,aY as be,aZ as xe,by as ge,L as W,W as F,bB as bt,ax as Se,o as w,R as q,e as xt,y as Lt,b3 as Ot,dc as Mt,a5 as z,c as me,x as pe,b$ as gt,cj as Vt,cr as he,cs as kt,bo as Ft,cJ as zt,cn as Ne,e7 as yt,bz as Wt,bO as lt,e8 as Fe,bG as Ut,cB as Kt,Y as qt,e9 as Ie,aw as Ht,ak as Gt,al as Te}from"./index-o710KUFS.js";import{d as jt,_ as Jt}from"./useSetState-LqZ6-yZ8.js";import{D as ze}from"./index-8VBxs9u3.js";import{T as Ct}from"./MoreVert-y0nkhqA-.js";import{W as Xt}from"./did-address-ECHkrvY7.js";import{C as Nt}from"./confirm-yrg6H3m3.js";import{B as We,d as Yt}from"./ChevronRight-fbb5cYZ4.js";import{_ as Qt}from"./useLocalStorage-ieO-IiCr.js";import{u as Zt}from"./session-QnPtqbmu.js";import{T as X}from"./TextField-ZyGIim97.js";import{M as $e}from"./InputAdornment-JqnRRMW5.js";import{d as st}from"./Download-wIqjcRIP.js";import{d as eo}from"./DeleteOutline-Zyru4y8C.js";import{T as to}from"./index-IpFMsnoW.js";import{A as oo,f as Ee}from"./index-r3XMu1Ks.js";import{C as lo}from"./click-to-copy-LXhBTX9X.js";import{c as Ue}from"./index-bXBQKCg5.js";import{i as so}from"./index-BV6xFdZD.js";import{d as no}from"./ExpandMore-byZ1bCvM.js";import{d as ro}from"./OpenInNew-lS0r1wSf.js";import{F as io}from"./FormControlLabel-L3cnXbG5.js";import{C as De}from"./Checkbox--mmHc71j.js";import"./api-oD_O5CWe.js";import{A as co}from"./Avatar-fSw3xwrG.js";import"./FilterList-aeaSrubq.js";import"./TableRow-Cj_2GgNk.js";import"./toPropertyKey-NzAT2yhV.js";import"./FormControl-oOR29lpJ.js";import"./useFormControl-FTiWn0ol.js";import"./FormGroup-7rC8tk9C.js";import"./InputLabel-tixiiB_7.js";import"./Select-pRXRwWUr.js";import"./LastPage-SxjDnWfh.js";import"./Toolbar-doxZSzMe.js";import"./index-JYhe2G5y.js";import"./redux-XOuz_cVf.js";import"./Grid-7TNNvUm7.js";import"./Search-u7box4_Y.js";import"./Link-kO4yy9NY.js";import"./Alert-MdJYBFVy.js";import"./useSlot-Q68JwoxM.js";const ao=At(l.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),uo=["slots","slotProps"],po=K(_t)(({theme:e})=>$({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":$({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":$({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:ot(e.palette.grey[200],.12)}:{backgroundColor:ot(e.palette.grey[600],.12)})})),fo=K(ao)({width:24,height:16});function mo(e){const{slots:t={},slotProps:o={}}=e,n=se(e,uo),d=e;return l.jsx("li",{children:l.jsx(po,$({focusRipple:!0},n,{ownerState:d,children:l.jsx(fo,$({as:t.CollapsedIcon,ownerState:d},o.collapsedIcon))}))})}function ho(e){return Le("MuiBreadcrumbs",e)}const bo=_e("MuiBreadcrumbs",["root","ol","li","separator"]),xo=bo,go=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],ko=e=>{const{classes:t}=e;return Ve({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},ho,t)},yo=K(L,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${xo.li}`]:t.li},t.root]})({}),jo=K("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),Co=K("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function No(e,t,o,n){return e.reduce((d,a,p)=>(p<e.length-1?d=d.concat(a,l.jsx(Co,{"aria-hidden":!0,className:t,ownerState:n,children:o},`separator-${p}`)):d.push(a),d),[])}const To=x.forwardRef(function(t,o){const n=Oe({props:t,name:"MuiBreadcrumbs"}),{children:d,className:a,component:p="nav",slots:c={},slotProps:h={},expandText:u="Show path",itemsAfterCollapse:b=1,itemsBeforeCollapse:m=1,maxItems:g=8,separator:r="/"}=n,s=se(n,go),[i,f]=x.useState(!1),k=$({},n,{component:p,expanded:i,expandText:u,itemsAfterCollapse:b,itemsBeforeCollapse:m,maxItems:g,separator:r}),C=ko(k),y=ht({elementType:c.CollapsedIcon,externalSlotProps:h.collapsedIcon,ownerState:k}),T=x.useRef(null),E=R=>{const D=()=>{f(!0);const I=T.current.querySelector("a[href],button,[tabindex]");I&&I.focus()};return m+b>=R.length?R:[...R.slice(0,m),l.jsx(mo,{"aria-label":u,slots:{CollapsedIcon:c.CollapsedIcon},slotProps:{collapsedIcon:y},onClick:D},"ellipsis"),...R.slice(R.length-b,R.length)]},S=x.Children.toArray(d).filter(R=>x.isValidElement(R)).map((R,D)=>l.jsx("li",{className:C.li,children:R},`child-${D}`));return l.jsx(yo,$({ref:o,component:p,color:"text.secondary",className:Me(C.root,a),ownerState:k},s,{children:l.jsx(jo,{className:C.ol,ref:T,ownerState:k,children:No(i||g&&S.length<=g?S:E(S),C.separator,r,k)})}))}),Ke=To;function ke({size:e,...t}){return l.jsx(j,{display:"flex",mt:4,...t,children:l.jsx(we,{size:e})})}ke.propTypes={size:P.number};ke.defaultProps={size:24};function Tt(){const{t:e,locale:t}=ne(),{api:o}=be(),[n,d]=x.useState(!0),{blocklet:a}=xe(),[p,c]=x.useState(null),{componentDid:h=""}=ge(),[u,b]=x.useState(null),m=()=>{o.getProjects({input:{did:a.meta.did,componentDid:h}}).then(i=>{const f=(i==null?void 0:i.projects)||[];d(!1),b(f)}).catch(i=>{d(!1),w.error(i.message)})},g=i=>{c(i)},r=()=>{d(!1);const i=p.id;o.deleteProject({input:{did:a.meta.did,projectId:i}}).then(()=>{d(!1),m(),w.success(e("common.removeSuccess")),c(null)}).catch(f=>{d(!1),w.error(f.message)})};if(x.useEffect(()=>{m()},[]),!u&&n)return l.jsx(ke,{});if(!u)return null;if(!u.length)return l.jsxs(j,{display:"flex",flexDirection:"column",alignItems:"center",pt:10,children:[l.jsx(j,{sx:{fontSize:20,fontWeight:"bold",mb:3},children:e("blocklet.publish.blockletEmptyTip")}),l.jsx(j,{sx:{fontSize:14,color:"text.secondary",mb:3},children:e("blocklet.publish.createBlockletTip")}),l.jsx(W,{to:"create",children:l.jsx(F,{variant:"contained",children:e("blocklet.publish.createBlocklet")})})]});const s=[{label:"Blocklet",name:"blockletTitle",options:{customBodyRenderLite:i=>{const f=u[i];return l.jsx(W,{to:`${f.id}`,children:f.blockletTitle||"/"})}}},{label:"DID",name:"blockletDid",options:{customBodyRender:i=>l.jsx(Xt,{size:14,responsive:!0,did:i})}},{label:"Version",name:"blockletVersion",options:{customBodyRender:i=>i?l.jsx(Ct,{type:"success",children:i}):""}},h?null:{label:e("common.scope"),name:"componentDid",options:{customBodyRender:i=>{const f=(a.children||[]).find(k=>k.meta.did===i);return f?l.jsxs(j,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[l.jsx(We,{size:14,blocklet:f,ancestors:[a]}),l.jsx(j,{ml:.5,sx:{ml:.5,color:"text.primary",fontSize:14},children:f.meta.title})]},i):""}}},{label:e("common.updatedAt"),name:"updatedAt",options:{customBodyRender:i=>l.jsx(bt,{value:Number(i),locale:t})}},{label:e("common.actions"),name:"actions",options:{customBodyRenderLite:i=>{const f=u[i];return l.jsx(j,{display:"flex",children:l.jsx(Se,{color:"error","aria-label":"delete",onClick:()=>g(f),children:l.jsx(jt,{sx:{fontSize:18}})})})}}}].filter(Boolean);return l.jsxs(Io,{children:[l.jsx(j,{sx:{textAlign:"right"},children:l.jsx(W,{to:"create",children:l.jsx(F,{variant:"contained",children:e("blocklet.publish.createBlocklet")})})}),l.jsx(ze,{className:"main-table",locale:t,data:u,columns:s,options:{sort:!1,download:!1,filter:!1,print:!1,search:!1}}),p&&l.jsx(Nt,{title:`${e("common.delete")} ${p.blockletTitle}`,description:e("blocklet.publish.deleteBlockletTip"),confirm:e("common.confirm"),onConfirm:r,onCancel:()=>c(null)})]})}Tt.propTypes={};const Io=q(j)`
|
|
2
2
|
.main-table > div:first-child {
|
|
3
3
|
display: none;
|
|
4
4
|
}
|
|
5
|
-
`,So=[{label:{en:"Resource",zh:"资源"},value:"resource"},{label:{en:"Application",zh:"应用"},value:"pack"}];function qe({...e}){const t=xt(),{t:o,locale:n}=ne(),{blocklet:d}=xe(),[a,p]=x.useState(""),[c,h]=x.useState(!1),[u,b]=x.useState("resource"),{api:m}=Zt(),{api:g}=be(),[r,s]=x.useState(),[i,f]=x.useState(!1),[k]=
|
|
5
|
+
`,So=[{label:{en:"Resource",zh:"资源"},value:"resource"},{label:{en:"Application",zh:"应用"},value:"pack"}];function qe({...e}){const t=xt(),{t:o,locale:n}=ne(),{blocklet:d}=xe(),[a,p]=x.useState(""),[c,h]=x.useState(!1),[u,b]=x.useState("resource"),{api:m}=Zt(),{api:g}=be(),[r,s]=x.useState(),[i,f]=x.useState(!1),[k]=Qt("manual-create-blocklet-did",!1),{componentDid:C=""}=ge(),y=S=>{w.error(S.message),f(!1)},T=S=>{var D;const R=(D=S==null?void 0:S.blockletWallet)==null?void 0:D.address;R?s(R):w.error("Empty Blocklet DID"),f(!1)},E=()=>{if(!r){w.error(o("blocklet.publish.errorTip.noDid"));return}if(!a){w.error(o("blocklet.publish.errorTip.noTitle"));return}h(!0),g.createProject({input:{did:d.meta.did,blockletTitle:a||"",blockletDid:r,type:u,componentDid:C}}).then(()=>{h(!1),t("../",{replace:!0})}).catch(S=>{h(!1),w.error(S.message)})};return l.jsxs(Eo,{...e,children:[l.jsxs(Ke,{className:"breadcrumbs","aria-label":"breadcrumb",children:[l.jsx(W,{to:"..",children:o("common.publish")}),l.jsxs(L,{color:"text.primary",children:[o("common.create")," Blocklet"]})]}),l.jsxs(j,{style:{maxWidth:500},children:[l.jsx(X,{required:!0,sx:{mb:4},label:"Blocklet DID",fullWidth:!0,readonly:!0,autoComplete:"off",variant:"outlined",onChange:S=>k&&s(S.target.value),onClick:()=>!k&&!r&&f(!0),InputProps:{"data-cy":"export-blocklet-did",endAdornment:!k&&l.jsx($e,{position:"end",children:l.jsx(F,{onClick:()=>f(!0),children:o(r?"common.update":"common.create")})})},helperText:"",value:r||""}),i&&l.jsx(Lt,{open:!0,popup:!0,onClose:()=>f(!1),action:"gen-blocklet-key-pair",locale:n,checkFn:m.get,saveConnect:!1,forceConnected:!1,checkTimeout:5*60*1e3,onSuccess:T,onError:y,extraParams:{did:d.meta.did},messages:{title:o("blocklet.publish.connect.title"),scan:o("blocklet.publish.connect.scan"),confirm:o("blocklet.publish.connect.confirm"),success:o("blocklet.publish.connect.success")}}),l.jsx(X,{required:!0,label:`Blocklet ${o("common.title")}`,autoComplete:"off",variant:"outlined",InputProps:{"data-cy":"export-blocklet-title"},fullWidth:!0,helperText:"",value:a||"",onChange:S=>{p(S.target.value)}}),l.jsx(X,{sx:{my:4},id:"blocklet-type",select:!0,label:`Blocklet ${o("common.type")}`,helperText:"",fullWidth:!0,value:u,onChange:S=>b(S.target.value),children:So.map(S=>l.jsx(Ot,{value:S.value,disabled:S.disabled,children:S.label[n]||S.label.en},S.value))})]}),l.jsx(F,{variant:"contained",disabled:c,onClick:E,children:o("common.create")})]})}qe.propTypes={};qe.defaultProps={};const Eo=q.div`
|
|
6
6
|
.breadcrumbs {
|
|
7
7
|
margin-bottom: 24px;
|
|
8
8
|
}
|
|
9
|
-
`;function It(){const{t:e,locale:t}=ne(),{projectId:o}=ge(),{api:n}=be(),[d,a]=x.useState(!0),{blocklet:p}=xe(),[c,h]=x.useState(null),[u,b]=x.useState(null),[m,g]=x.useState(null),r=()=>{n.getReleases({input:{did:p.meta.did,projectId:o}}).then(y=>{const T=(y==null?void 0:y.releases)||[];a(!1),h(T)}).catch(y=>{a(!1),w.error(y.message)})},s=()=>{n.doBatchQuery({getProject:{input:{did:p.meta.did,projectId:o}},getReleases:{input:{did:p.meta.did,projectId:o}}}).then(y=>{b(y.getProject.project||{}),h(y.getReleases.releases||[]),a(!1)}).catch(y=>{a(!1),w.error(y.message)})};x.useEffect(()=>{s()},[]);const i=()=>{a(!1);const y=m.id;n.deleteRelease({input:{did:p.meta.did,projectId:o,releaseId:y}}).then(()=>{a(!1),r(),w.success(e("common.removeSuccess")),g(null)}).catch(T=>{a(!1),w.error(T.message)})},f=y=>{g(y)};if(!c&&d)return l.jsx(ke,{});if(!c)return null;const k=l.jsxs(Ke,{className:"breadcrumbs","aria-label":"breadcrumb",children:[l.jsx(W,{to:"..",children:e("common.publish")}),l.jsx(L,{color:"text.primary",children:u.blockletTitle})]});if(!c.length)return l.jsxs(l.Fragment,{children:[k,l.jsxs(j,{display:"flex",flexDirection:"column",alignItems:"center",pt:10,children:[l.jsx(j,{sx:{fontSize:20,fontWeight:"bold",mb:3},children:e("blocklet.publish.releaseEmptyTip")}),l.jsx(j,{sx:{fontSize:14,color:"text.secondary",mb:3},children:e("blocklet.publish.createReleaseTip")}),l.jsx(W,{to:"create",children:l.jsx(F,{variant:"contained",children:e("blocklet.publish.createRelease")})})]})]});const C=[{label:e("common.version"),name:"blockletVersion",options:{customBodyRenderLite:y=>{const T=c[y];return l.jsx(W,{to:`${T.id}`,children:T.blockletVersion||"/"})}}},{label:e("blocklet.publish.releaseNote"),name:"note",options:{customBodyRenderLite:y=>{const T=c[y];return l.jsx(L,{className:"note",children:T.note||""})}}},{label:e("common.status"),name:"status",options:{customBodyRender:y=>l.jsx(Ct,{type:y==="published"?"success":"warning",children:Mt(y)})}},{label:e("common.lastPublishedAt"),name:"updatedAt",options:{customBodyRenderLite:y=>{const T=c[y];return T.status!==z.PROJECT.RELEASE_STATUS.published?"":l.jsx(bt,{value:Number(T.updatedAt),locale:t})}}},{label:e("common.actions"),name:"actions",options:{customBodyRenderLite:y=>{const T=c[y];return l.jsxs(j,{display:"flex",alignItems:"center",children:[l.jsx(Se,{color:"primary","aria-label":"download",disabled:T.status!=="published",children:T.status==="published"?l.jsx("a",{style:{display:"flex"},href:me(`${pe.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${u.id}/${T.id}/download/${(T.files||[])[0]}`),children:l.jsx(st,{sx:{fontSize:18}})}):l.jsx(st,{sx:{fontSize:18}})}),l.jsx(Se,{color:"error","aria-label":"delete",onClick:()=>f(T),children:l.jsx(jt,{sx:{fontSize:18}})})]})}}}];return l.jsxs(
|
|
9
|
+
`;function It(){const{t:e,locale:t}=ne(),{projectId:o}=ge(),{api:n}=be(),[d,a]=x.useState(!0),{blocklet:p}=xe(),[c,h]=x.useState(null),[u,b]=x.useState(null),[m,g]=x.useState(null),r=()=>{n.getReleases({input:{did:p.meta.did,projectId:o}}).then(y=>{const T=(y==null?void 0:y.releases)||[];a(!1),h(T)}).catch(y=>{a(!1),w.error(y.message)})},s=()=>{n.doBatchQuery({getProject:{input:{did:p.meta.did,projectId:o}},getReleases:{input:{did:p.meta.did,projectId:o}}}).then(y=>{b(y.getProject.project||{}),h(y.getReleases.releases||[]),a(!1)}).catch(y=>{a(!1),w.error(y.message)})};x.useEffect(()=>{s()},[]);const i=()=>{a(!1);const y=m.id;n.deleteRelease({input:{did:p.meta.did,projectId:o,releaseId:y}}).then(()=>{a(!1),r(),w.success(e("common.removeSuccess")),g(null)}).catch(T=>{a(!1),w.error(T.message)})},f=y=>{g(y)};if(!c&&d)return l.jsx(ke,{});if(!c)return null;const k=l.jsxs(Ke,{className:"breadcrumbs","aria-label":"breadcrumb",children:[l.jsx(W,{to:"..",children:e("common.publish")}),l.jsx(L,{color:"text.primary",children:u.blockletTitle})]});if(!c.length)return l.jsxs(l.Fragment,{children:[k,l.jsxs(j,{display:"flex",flexDirection:"column",alignItems:"center",pt:10,children:[l.jsx(j,{sx:{fontSize:20,fontWeight:"bold",mb:3},children:e("blocklet.publish.releaseEmptyTip")}),l.jsx(j,{sx:{fontSize:14,color:"text.secondary",mb:3},children:e("blocklet.publish.createReleaseTip")}),l.jsx(W,{to:"create",children:l.jsx(F,{variant:"contained",children:e("blocklet.publish.createRelease")})})]})]});const C=[{label:e("common.version"),name:"blockletVersion",options:{customBodyRenderLite:y=>{const T=c[y];return l.jsx(W,{to:`${T.id}`,children:T.blockletVersion||"/"})}}},{label:e("blocklet.publish.releaseNote"),name:"note",options:{customBodyRenderLite:y=>{const T=c[y];return l.jsx(L,{className:"note",children:T.note||""})}}},{label:e("common.status"),name:"status",options:{customBodyRender:y=>l.jsx(Ct,{type:y==="published"?"success":"warning",children:Mt(y)})}},{label:e("common.lastPublishedAt"),name:"updatedAt",options:{customBodyRenderLite:y=>{const T=c[y];return T.status!==z.PROJECT.RELEASE_STATUS.published?"":l.jsx(bt,{value:Number(T.updatedAt),locale:t})}}},{label:e("common.actions"),name:"actions",options:{customBodyRenderLite:y=>{const T=c[y];return l.jsxs(j,{display:"flex",alignItems:"center",children:[l.jsx(Se,{color:"primary","aria-label":"download",disabled:T.status!=="published",children:T.status==="published"?l.jsx("a",{style:{display:"flex"},href:me(`${pe.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${u.id}/${T.id}/download/${(T.files||[])[0]}`),children:l.jsx(st,{sx:{fontSize:18}})}):l.jsx(st,{sx:{fontSize:18}})}),l.jsx(Se,{color:"error","aria-label":"delete",onClick:()=>f(T),children:l.jsx(jt,{sx:{fontSize:18}})})]})}}}];return l.jsxs(Ro,{children:[l.jsxs(j,{className:"header",children:[k,l.jsx(W,{to:"create",children:l.jsx(F,{variant:"contained",children:e("blocklet.publish.createRelease")})})]}),l.jsx(ze,{className:"main-table",verticalKeyWidth:100,locale:t,data:c,columns:C,options:{sort:!1,download:!1,filter:!1,print:!1,search:!1}}),m&&l.jsx(Nt,{title:e(`${e("common.delete")} ${m.blockletVersion}`),description:e("blocklet.publish.deleteReleaseTip"),confirm:e("common.confirm"),onConfirm:i,onCancel:()=>g(null)})]})}It.propTypes={};const Ro=q(j)`
|
|
10
10
|
.header {
|
|
11
11
|
display: flex;
|
|
12
12
|
align-items: center;
|
|
@@ -19,7 +19,7 @@ import{ai as At,j as l,ax as K,ci as _t,aA as $,e2 as ot,az as se,av as _e,aw as
|
|
|
19
19
|
word-break: break-all;
|
|
20
20
|
white-space: pre-line;
|
|
21
21
|
}
|
|
22
|
-
`;function Ro(e){return Le("MuiTreeView",e)}_e("MuiTreeView",["root"]);const St={instance:null,multiSelect:!1,disabledItemsFocusable:!1,treeId:void 0,icons:{defaultCollapseIcon:null,defaultExpandIcon:null,defaultParentIcon:null,defaultEndIcon:null}},vt=x.createContext(St),Po=(e,t)=>{const o=x.useRef({}),[n,d]=x.useState(()=>{const p={};return e.forEach(c=>{c.models&&Object.entries(c.models).forEach(([h,u])=>{o.current[h]={controlledProp:u.controlledProp,defaultProp:u.defaultProp,isControlled:t[u.controlledProp]!==void 0},p[h]=t[u.defaultProp]})}),p});return Object.fromEntries(Object.entries(o.current).map(([p,c])=>{const h=c.isControlled?t[c.controlledProp]:n[p];return[p,{value:h,setValue:u=>{c.isControlled||d(b=>$({},b,{[p]:u}))}}]}))};class wo{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,o,n={}){let d=this.events[t];d||(d={highPriority:new Map,regular:new Map},this.events[t]=d),n.isFirst?d.highPriority.set(o,!0):d.regular.set(o,!0)}removeListener(t,o){this.events[t]&&(this.events[t].regular.delete(o),this.events[t].highPriority.delete(o))}removeAllListeners(){this.events={}}emit(t,...o){const n=this.events[t];if(!n)return;const d=Array.from(n.highPriority.keys()),a=Array.from(n.regular.keys());for(let p=d.length-1;p>=0;p-=1){const c=d[p];n.highPriority.has(c)&&c.apply(this,o)}for(let p=0;p<a.length;p+=1){const c=a[p];n.regular.has(c)&&c.apply(this,o)}}once(t,o){const n=this;this.on(t,function d(...a){n.removeListener(t,d),o.apply(n,a)})}}const Ee=(e,t)=>{const o=e.getNode(t),n=e.getNavigableChildrenIds(o.parentId),d=n.indexOf(t);if(d===0)return o.parentId;let a=n[d-1];for(;e.isNodeExpanded(a)&&e.getNavigableChildrenIds(a).length>0;)a=e.getNavigableChildrenIds(a).pop();return a},fe=(e,t)=>{if(e.isNodeExpanded(t)&&e.getNavigableChildrenIds(t).length>0)return e.getNavigableChildrenIds(t)[0];let o=e.getNode(t);for(;o!=null;){const n=e.getNavigableChildrenIds(o.parentId),d=n[n.indexOf(o.id)+1];if(d)return d;o=e.getNode(o.parentId)}return null},Be=e=>{let t=e.getNavigableChildrenIds(null).pop();for(;e.isNodeExpanded(t);)t=e.getNavigableChildrenIds(t).pop();return t},Ae=e=>e.getNavigableChildrenIds(null)[0],re=(e,t)=>{Object.assign(e,t)},$o=e=>e.isPropagationStopped!==void 0,Do=({instance:e})=>{const[t]=x.useState(()=>new wo),o=x.useCallback((...d)=>{const[a,p,c={}]=d;c.defaultMuiPrevented=!1,!($o(c)&&c.isPropagationStopped())&&t.emit(a,p,c)},[t]),n=x.useCallback((d,a)=>(t.on(d,a),()=>{t.removeListener(d,a)}),[t]);re(e,{$$publishEvent:o,$$subscribeEvent:n})},Bo=[Do],Ao=e=>{const t=[...Bo,...e.plugins],o=t.reduce((s,i)=>i.getDefaultizedParams?i.getDefaultizedParams(s):s,e),n=Po(t,o),a=x.useRef({}).current,p=x.useRef(null),c=gt(p,e.rootRef),[h,u]=x.useState(()=>{const s={};return t.forEach(i=>{i.getInitialState&&Object.assign(s,i.getInitialState(o))}),s}),b=[];let m=St;const g=s=>{const i=s({instance:a,params:o,state:h,setState:u,rootRef:p,models:n})||{};i.getRootProps&&b.push(i.getRootProps),i.contextValue&&(m=i.contextValue)};return t.forEach(g),{getRootProps:(s={})=>{const i=$({role:"tree",tabIndex:0},s,{ref:c});return b.forEach(f=>{Object.assign(i,f(s))}),i},rootRef:c,contextValue:m}},_o=["element"];function Lo(e,t){for(let o=0;o<e.length;o+=1)if(t(e[o]))return o;return-1}function Oo(e,t){let o=0,n=e.length-1;for(;o<=n;){const d=Math.floor((o+n)/2);if(e[d].element===t)return d;e[d].element.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING?n=d-1:o=d+1}return o}const Et=x.createContext({});function Mo(e){const t=x.useRef(null);return x.useEffect(()=>{t.current=e},[e]),t.current}const nt=()=>{};function Vo(e){const[,t]=x.useState(),{registerDescendant:o=nt,unregisterDescendant:n=nt,descendants:d=[],parentId:a=null}=x.useContext(Et),p=Lo(d,u=>u.element===e.element),c=Mo(d),h=d.some((u,b)=>c&&c[b]&&c[b].element!==u.element);return Vt(()=>{if(e.element)return o($({},e,{index:p})),()=>{n(e.element)};t({})},[o,n,p,h,e]),{parentId:a,index:p}}function Rt(e){const{children:t,id:o}=e,[n,d]=x.useState([]),a=x.useCallback(h=>{let{element:u}=h,b=se(h,_o);d(m=>{if(m.length===0)return[$({},b,{element:u,index:0})];const g=Oo(m,u);let r;if(m[g]&&m[g].element===u)r=m;else{const s=$({},b,{element:u,index:g});r=m.slice(),r.splice(g,0,s)}return r.forEach((s,i)=>{s.index=i}),r})},[]),p=x.useCallback(h=>{d(u=>u.filter(b=>h!==b.element))},[]),c=x.useMemo(()=>({descendants:n,registerDescendant:a,unregisterDescendant:p,parentId:o}),[n,a,p,o]);return l.jsx(Et.Provider,{value:c,children:t})}function Fo(e){const{value:t,children:o}=e;return l.jsx(vt.Provider,{value:t,children:l.jsx(Rt,{children:o})})}const zo=(e,t,o)=>{e.$$publishEvent(t,o)},Wo=({instance:e,params:t})=>{const o=x.useRef({}),n=x.useCallback(u=>o.current[u],[]),d=x.useCallback(u=>{o.current[u.id]=u},[]),a=x.useCallback(u=>{const b=$({},o.current);delete b[u],o.current=b,zo(e,"removeNode",{id:u})},[e]),p=x.useCallback(u=>{if(u==null)return!1;let b=e.getNode(u);if(!b)return!1;if(b.disabled)return!0;for(;b.parentId!=null;)if(b=e.getNode(b.parentId),b.disabled)return!0;return!1},[e]),c=he(u=>Object.values(o.current).filter(b=>b.parentId===u).sort((b,m)=>b.index-m.index).map(b=>b.id));re(e,{getNode:n,updateNode:d,removeNode:a,getChildrenIds:c,getNavigableChildrenIds:u=>{let b=e.getChildrenIds(u);return t.disabledItemsFocusable||(b=b.filter(m=>!e.isNodeDisabled(m))),b},isNodeDisabled:p})},He=({instance:e,params:t,models:o})=>{const n=x.useCallback(c=>Array.isArray(o.expanded.value)?o.expanded.value.indexOf(c)!==-1:!1,[o.expanded.value]),d=x.useCallback(c=>{var h;return!!((h=e.getNode(c))!=null&&h.expandable)},[e]),a=he((c,h)=>{if(h==null)return;let u;o.expanded.value.indexOf(h)!==-1?u=o.expanded.value.filter(b=>b!==h):u=[h].concat(o.expanded.value),t.onNodeToggle&&t.onNodeToggle(c,u),o.expanded.setValue(u)});re(e,{isNodeExpanded:n,isNodeExpandable:d,toggleNodeExpansion:a,expandAllSiblings:(c,h)=>{const u=e.getNode(h),m=e.getChildrenIds(u.parentId).filter(r=>e.isNodeExpandable(r)&&!e.isNodeExpanded(r)),g=o.expanded.value.concat(m);m.length>0&&(o.expanded.setValue(g),t.onNodeToggle&&t.onNodeToggle(c,g))}})};He.models={expanded:{controlledProp:"expanded",defaultProp:"defaultExpanded"}};const Uo=[];He.getDefaultizedParams=e=>{var t;return $({},e,{defaultExpanded:(t=e.defaultExpanded)!=null?t:Uo})};const Ko=(e,t,o)=>{if(t===o)return[t,o];const n=e.getNode(t),d=e.getNode(o);if(n.parentId===d.id||d.parentId===n.id)return d.parentId===n.id?[n.id,d.id]:[d.id,n.id];const a=[n.id],p=[d.id];let c=n.parentId,h=d.parentId,u=p.indexOf(c)!==-1,b=a.indexOf(h)!==-1,m=!0,g=!0;for(;!b&&!u;)m&&(a.push(c),u=p.indexOf(c)!==-1,m=c!==null,!u&&m&&(c=e.getNode(c).parentId)),g&&!u&&(p.push(h),b=a.indexOf(h)!==-1,g=h!==null,!b&&g&&(h=e.getNode(h).parentId));const r=u?c:h,s=e.getChildrenIds(r),i=a[a.indexOf(r)-1],f=p[p.indexOf(r)-1];return s.indexOf(i)<s.indexOf(f)?[t,o]:[o,t]},Je=({instance:e,params:t,models:o})=>{const n=x.useRef(null),d=x.useRef(!1),a=x.useRef([]),p=s=>Array.isArray(o.selected.value)?o.selected.value.indexOf(s)!==-1:o.selected.value===s,c=(s,i,f=!1)=>{if(!t.disableSelection){if(f){if(Array.isArray(o.selected.value)){let k;o.selected.value.indexOf(i)!==-1?k=o.selected.value.filter(C=>C!==i):k=[i].concat(o.selected.value),t.onNodeSelect&&t.onNodeSelect(s,k),o.selected.setValue(k)}}else{const k=t.multiSelect?[i]:i;t.onNodeSelect&&t.onNodeSelect(s,k),o.selected.setValue(k)}n.current=i,d.current=!1,a.current=[]}},h=(s,i)=>{const[f,k]=Ko(e,s,i),C=[f];let y=f;for(;y!==k;)y=fe(e,y),C.push(y);return C},u=(s,i)=>{let f=o.selected.value.slice();const{start:k,next:C,current:y}=i;!C||!y||(a.current.indexOf(y)===-1&&(a.current=[]),d.current?a.current.indexOf(C)!==-1?(f=f.filter(T=>T===k||T!==y),a.current=a.current.filter(T=>T===k||T!==y)):(f.push(C),a.current.push(C)):(f.push(C),a.current.push(y,C)),t.onNodeSelect&&t.onNodeSelect(s,f),o.selected.setValue(f))},b=(s,i)=>{let f=o.selected.value.slice();const{start:k,end:C}=i;d.current&&(f=f.filter(v=>a.current.indexOf(v)===-1));let y=h(k,C);y=y.filter(v=>!e.isNodeDisabled(v)),a.current=y;let T=f.concat(y);T=T.filter((v,S)=>T.indexOf(v)===S),t.onNodeSelect&&t.onNodeSelect(s,T),o.selected.setValue(T)};return re(e,{isNodeSelected:p,selectNode:c,selectRange:(s,i,f=!1)=>{if(t.disableSelection)return;const{start:k=n.current,end:C,current:y}=i;f?u(s,{start:k,next:C,current:y}):k!=null&&C!=null&&b(s,{start:k,end:C}),d.current=!0},rangeSelectToLast:(s,i)=>{n.current||(n.current=i);const f=d.current?n.current:i;e.selectRange(s,{start:f,end:Be(e)})},rangeSelectToFirst:(s,i)=>{n.current||(n.current=i);const f=d.current?n.current:i;e.selectRange(s,{start:f,end:Ae(e)})}}),{getRootProps:()=>({"aria-multiselectable":t.multiSelect})}};Je.models={selected:{controlledProp:"selected",defaultProp:"defaultSelected"}};const qo=[];Je.getDefaultizedParams=e=>{var t,o,n;return $({},e,{disableSelection:(t=e.disableSelection)!=null?t:!1,multiSelect:(o=e.multiSelect)!=null?o:!1,defaultSelected:(n=e.defaultSelected)!=null?n:e.multiSelect?qo:null})};const rt=1e3;class Ho{constructor(t=rt){this.timeouts=new Map,this.cleanupTimeout=rt,this.cleanupTimeout=t}register(t,o,n){this.timeouts||(this.timeouts=new Map);const d=setTimeout(()=>{typeof o=="function"&&o(),this.timeouts.delete(n.cleanupToken)},this.cleanupTimeout);this.timeouts.set(n.cleanupToken,d)}unregister(t){const o=this.timeouts.get(t.cleanupToken);o&&(this.timeouts.delete(t.cleanupToken),clearTimeout(o))}reset(){this.timeouts&&(this.timeouts.forEach((t,o)=>{this.unregister({cleanupToken:o})}),this.timeouts=void 0)}}class Jo{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,o,n){this.registry.register(t,o,n)}unregister(t){this.registry.unregister(t)}reset(){}}class Xo{}function Go(e){let t=0;return function(n,d,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new Jo:new Ho);const[p]=x.useState(new Xo),c=x.useRef(null),h=x.useRef();h.current=a;const u=x.useRef(null);if(!c.current&&h.current){const b=(m,g)=>{if(!g.defaultMuiPrevented){var r;(r=h.current)==null||r.call(h,m,g)}};c.current=n.$$subscribeEvent(d,b),t+=1,u.current={cleanupToken:t},e.registry.register(p,()=>{var m;(m=c.current)==null||m.call(c),c.current=null,u.current=null},u.current)}else!h.current&&c.current&&(c.current(),c.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));x.useEffect(()=>{if(!c.current&&h.current){const b=(m,g)=>{if(!g.defaultMuiPrevented){var r;(r=h.current)==null||r.call(h,m,g)}};c.current=n.$$subscribeEvent(d,b)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{var b;(b=c.current)==null||b.call(c),c.current=null}},[n,d])}}const Qo={registry:null},Yo=Go(Qo),Xe=({instance:e,params:t,state:o,setState:n,models:d,rootRef:a})=>{const p=he(r=>{const s=typeof r=="function"?r(o.focusedNodeId):r;n(i=>$({},i,{focusedNodeId:s}))}),c=x.useCallback(r=>o.focusedNodeId===r,[o.focusedNodeId]),h=he((r,s)=>{s&&(p(s),t.onNodeFocus&&t.onNodeFocus(r,s))});re(e,{isNodeFocused:c,focusNode:h}),Yo(e,"removeNode",({id:r})=>{p(s=>s===r&&a.current===kt(a.current).activeElement?e.getChildrenIds(null)[0]:s)});const u=r=>s=>{var i;if((i=r.onFocus)==null||i.call(r,s),s.target===s.currentTarget){const f=C=>{const y=e.getNode(C);return y&&(y.parentId==null||e.isNodeExpanded(y.parentId))};let k;Array.isArray(d.selected.value)?k=d.selected.value.find(f):d.selected.value!=null&&f(d.selected.value)&&(k=d.selected.value),k==null&&(k=e.getNavigableChildrenIds(null)[0]),e.focusNode(s,k)}},b=r=>s=>{var i;(i=r.onBlur)==null||i.call(r,s),p(null)},m=e.getNode(o.focusedNodeId),g=m?m.idAttribute:null;return{getRootProps:r=>({onFocus:u(r),onBlur:b(r),"aria-activedescendant":g??void 0})}};Xe.getInitialState=()=>({focusedNodeId:null});Xe.getDefaultizedParams=e=>{var t;return $({},e,{disabledItemsFocusable:(t=e.disabledItemsFocusable)!=null?t:!1})};function Zo(e){return e&&e.length===1&&e.match(/\S/)}function it(e,t,o){for(let n=t;n<e.length;n+=1)if(o===e[n])return n;return-1}const el=({instance:e,params:t,state:o})=>{const d=Ft().direction==="rtl",a=x.useRef({}),p=he((r,s)=>(a.current[r]=s,()=>{const i=$({},a.current);delete i[r],a.current=i}));re(e,{mapFirstChar:p});const c=r=>(o.focusedNodeId!=null&&e.isNodeExpandable(o.focusedNodeId)&&(e.isNodeExpanded(o.focusedNodeId)?e.focusNode(r,fe(e,o.focusedNodeId)):e.isNodeDisabled(o.focusedNodeId)||e.toggleNodeExpansion(r,o.focusedNodeId)),!0),h=r=>{if(o.focusedNodeId==null)return!1;if(e.isNodeExpanded(o.focusedNodeId)&&!e.isNodeDisabled(o.focusedNodeId))return e.toggleNodeExpansion(r,o.focusedNodeId),!0;const s=e.getNode(o.focusedNodeId).parentId;return s?(e.focusNode(r,s),!0):!1},u=(r,s,i)=>{let f,k;const C=i.toLowerCase(),y=[],T=[];Object.keys(a.current).forEach(v=>{const S=e.getNode(v),E=S.parentId?e.isNodeExpanded(S.parentId):!0,D=t.disabledItemsFocusable?!1:e.isNodeDisabled(v);E&&!D&&(y.push(v),T.push(a.current[v]))}),f=y.indexOf(s)+1,f>=y.length&&(f=0),k=it(T,f,C),k===-1&&(k=it(T,0,C)),k>-1&&e.focusNode(r,y[k])},b=(r,s)=>{e.isNodeDisabled(fe(e,s))||e.selectRange(r,{end:fe(e,s),current:s},!0)},m=(r,s)=>{e.isNodeDisabled(Ee(e,s))||e.selectRange(r,{end:Ee(e,s),current:s},!0)},g=r=>s=>{var i;(i=r.onKeyDown)==null||i.call(r,s);let f=!1;const k=s.key;if(s.altKey||s.currentTarget!==s.target||o.focusedNodeId==null)return;const C=s.ctrlKey||s.metaKey;switch(k){case" ":!t.disableSelection&&!e.isNodeDisabled(o.focusedNodeId)&&(f=!0,t.multiSelect&&s.shiftKey?e.selectRange(s,{end:o.focusedNodeId}):t.multiSelect?e.selectNode(s,o.focusedNodeId,!0):e.selectNode(s,o.focusedNodeId)),s.stopPropagation();break;case"Enter":e.isNodeDisabled(o.focusedNodeId)||(e.isNodeExpandable(o.focusedNodeId)?(e.toggleNodeExpansion(s,o.focusedNodeId),f=!0):t.disableSelection||(f=!0,t.multiSelect?e.selectNode(s,o.focusedNodeId,!0):e.selectNode(s,o.focusedNodeId))),s.stopPropagation();break;case"ArrowDown":t.multiSelect&&s.shiftKey&&!t.disableSelection&&b(s,o.focusedNodeId),e.focusNode(s,fe(e,o.focusedNodeId)),f=!0;break;case"ArrowUp":t.multiSelect&&s.shiftKey&&!t.disableSelection&&m(s,o.focusedNodeId),e.focusNode(s,Ee(e,o.focusedNodeId)),f=!0;break;case"ArrowRight":d?f=h(s):f=c(s);break;case"ArrowLeft":d?f=c(s):f=h(s);break;case"Home":t.multiSelect&&C&&s.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(o.focusedNodeId)&&e.rangeSelectToFirst(s,o.focusedNodeId),e.focusNode(s,Ae(e)),f=!0;break;case"End":t.multiSelect&&C&&s.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(o.focusedNodeId)&&e.rangeSelectToLast(s,o.focusedNodeId),e.focusNode(s,Be(e)),f=!0;break;default:k==="*"?(e.expandAllSiblings(s,o.focusedNodeId),f=!0):t.multiSelect&&C&&k.toLowerCase()==="a"&&!t.disableSelection?(e.selectRange(s,{start:Ae(e),end:Be(e)}),f=!0):!C&&!s.shiftKey&&Zo(k)&&(u(s,o.focusedNodeId,k),f=!0)}f&&(s.preventDefault(),s.stopPropagation())};return{getRootProps:r=>({onKeyDown:g(r)})}},tl=({instance:e,params:t})=>{const o=zt(t.id);return{getRootProps:()=>({id:o}),contextValue:{treeId:o,instance:e,multiSelect:t.multiSelect,disabledItemsFocusable:t.disabledItemsFocusable,icons:{defaultCollapseIcon:t.defaultCollapseIcon,defaultEndIcon:t.defaultEndIcon,defaultExpandIcon:t.defaultExpandIcon,defaultParentIcon:t.defaultParentIcon}}}},ol=[Wo,He,Je,Xe,el,tl],ll=["disabledItemsFocusable","expanded","defaultExpanded","onNodeToggle","onNodeFocus","disableSelection","defaultSelected","selected","multiSelect","onNodeSelect","id","defaultCollapseIcon","defaultEndIcon","defaultExpandIcon","defaultParentIcon","children"],sl=e=>{const{classes:t}=e;return Ve({root:["root"]},Ro,t)},ct=K("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0}),nl=x.forwardRef(function(t,o){const n=Oe({props:t,name:"MuiTreeView"}),d=n,a=n,{disabledItemsFocusable:p,expanded:c,defaultExpanded:h,onNodeToggle:u,onNodeFocus:b,disableSelection:m,defaultSelected:g,selected:r,multiSelect:s,onNodeSelect:i,id:f,defaultCollapseIcon:k,defaultEndIcon:C,defaultExpandIcon:y,defaultParentIcon:T,children:v}=a,S=se(a,ll),{getRootProps:E,contextValue:D}=Ao({disabledItemsFocusable:p,expanded:c,defaultExpanded:h,onNodeToggle:u,onNodeFocus:b,disableSelection:m,defaultSelected:g,selected:r,multiSelect:s,onNodeSelect:i,id:f,defaultCollapseIcon:k,defaultEndIcon:C,defaultExpandIcon:y,defaultParentIcon:T,plugins:ol,rootRef:o}),I=sl(n),B=ht({elementType:ct,externalSlotProps:{},externalForwardedProps:S,className:I.root,getSlotProps:E,ownerState:d});return l.jsx(Fo,{value:D,children:l.jsx(ct,$({},B,{children:v}))})}),Pt=()=>x.useContext(vt);function rl(e){const{instance:t,multiSelect:o}=Pt(),n=t?t.isNodeExpandable(e):!1,d=t?t.isNodeExpanded(e):!1,a=t?t.isNodeFocused(e):!1,p=t?t.isNodeSelected(e):!1,c=t?t.isNodeDisabled(e):!1;return{disabled:c,expanded:d,selected:p,focused:a,handleExpansion:m=>{if(t&&!c){a||t.focusNode(m,e);const g=o&&(m.shiftKey||m.ctrlKey||m.metaKey);n&&!(g&&t.isNodeExpanded(e))&&t.toggleNodeExpansion(m,e)}},handleSelection:m=>{t&&!c&&(a||t.focusNode(m,e),o&&(m.shiftKey||m.ctrlKey||m.metaKey)?m.shiftKey?t.selectRange(m,{end:e}):t.selectNode(m,e,!0):t.selectNode(m,e))},preventSelection:m=>{(m.shiftKey||m.ctrlKey||m.metaKey||c)&&m.preventDefault()}}}const il=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],wt=x.forwardRef(function(t,o){const{classes:n,className:d,displayIcon:a,expansionIcon:p,icon:c,label:h,nodeId:u,onClick:b,onMouseDown:m}=t,g=se(t,il),{disabled:r,expanded:s,selected:i,focused:f,handleExpansion:k,handleSelection:C,preventSelection:y}=rl(u),T=c||p||a,v=E=>{y(E),m&&m(E)},S=E=>{k(E),C(E),b&&b(E)};return l.jsxs("div",$({},g,{className:Me(d,n.root,s&&n.expanded,i&&n.selected,f&&n.focused,r&&n.disabled),onClick:S,onMouseDown:v,ref:o,children:[l.jsx("div",{className:n.iconContainer,children:T}),l.jsx("div",{className:n.label,children:h})]}))});function cl(e){return Le("MuiTreeItem",e)}const X=_e("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),al=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],dl=e=>{const{classes:t}=e;return Ve({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},cl,t)},ul=K("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),pl=K(wt,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${X.iconContainer}`]:t.iconContainer},t.label&&{[`& .${X.label}`]:t.label}]})(({theme:e})=>({padding:"0 8px",width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${X.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${X.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${X.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne(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})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${X.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${X.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${X.label}`]:$({paddingLeft:4,width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),fl=K(yt,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),ml=x.forwardRef(function(t,o){const n=Oe({props:t,name:"MuiTreeItem"}),{children:d,className:a,collapseIcon:p,ContentComponent:c=wt,ContentProps:h,endIcon:u,expandIcon:b,disabled:m,icon:g,id:r,label:s,nodeId:i,onClick:f,onMouseDown:k,TransitionComponent:C=yt,TransitionProps:y}=n,T=se(n,al),{icons:v,multiSelect:S,disabledItemsFocusable:E,treeId:D,instance:I}=Pt();let B;r!=null?B=r:D&&i&&(B=`${D}-${i}`);const[H,ye]=x.useState(null),je=x.useRef(null),te=gt(ye,o),O=x.useMemo(()=>({element:H,id:i}),[i,H]),{index:oe,parentId:ie}=Vo(O),J=!!(Array.isArray(d)?d.length:d),Q=I?I.isNodeExpanded(i):!1,ce=I?I.isNodeFocused(i):!1,le=I?I.isNodeSelected(i):!1,ae=I?I.isNodeDisabled(i):!1,Y=$({},n,{expanded:Q,focused:ce,selected:le,disabled:ae}),V=dl(Y);let de,ue;J&&(Q?ue=p||v.defaultCollapseIcon:ue=b||v.defaultExpandIcon),J?de=v.defaultParentIcon:de=u||v.defaultEndIcon,x.useEffect(()=>{if(I&&oe!==-1)return I.updateNode({id:i,idAttribute:B,index:oe,parentId:ie,expandable:J,disabled:m}),()=>I.removeNode(i)},[I,ie,oe,i,J,m,B]),x.useEffect(()=>{if(I&&s){var _,ee;return I.mapFirstChar(i,((_=(ee=je.current)==null?void 0:ee.textContent)!=null?_:"").substring(0,1).toLowerCase())}},[I,i,s]);let Z;S?Z=le:le&&(Z=!0);function Ce(_){if(_.target===_.currentTarget){let N;typeof _.target.getRootNode=="function"?N=_.target.getRootNode():N=kt(_.target),N.getElementById(D).focus({preventScroll:!0})}const ee=!E&&ae;I&&!ce&&_.currentTarget===_.target&&!ee&&I.focusNode(_,i)}return l.jsxs(ul,$({className:Me(V.root,a),role:"treeitem","aria-expanded":J?Q:void 0,"aria-selected":Z,"aria-disabled":ae||void 0,id:B,tabIndex:-1},T,{ownerState:Y,onFocus:Ce,ref:te,children:[l.jsx(pl,$({as:c,ref:je,classes:{root:V.content,expanded:V.expanded,selected:V.selected,focused:V.focused,disabled:V.disabled,iconContainer:V.iconContainer,label:V.label},label:s,nodeId:i,onClick:f,onMouseDown:k,icon:g,expansionIcon:ue,displayIcon:de,ownerState:Y},h)),d&&l.jsx(Rt,{id:i,children:l.jsx(fl,$({as:C,unmountOnExit:!0,className:V.group,in:Q,component:"ul",role:"group"},y,{children:d}))})]}))});function Ge({data:e,...t}){return!e||!e.length?null:l.jsx(hl,{...t,children:e.map(o=>l.jsx("a",{href:o.url,target:"_blank",rel:"noreferrer",children:l.jsx("img",{src:o.url,alt:o.alt||""})},o.url))})}Ge.propTypes={data:P.arrayOf(P.shape({url:P.string,alt:P.string}))};Ge.defaultProps={data:[]};const hl=q(j)`
|
|
22
|
+
`;function vo(e){return Le("MuiTreeView",e)}_e("MuiTreeView",["root"]);const St={instance:null,multiSelect:!1,disabledItemsFocusable:!1,treeId:void 0,icons:{defaultCollapseIcon:null,defaultExpandIcon:null,defaultParentIcon:null,defaultEndIcon:null}},Et=x.createContext(St),Po=(e,t)=>{const o=x.useRef({}),[n,d]=x.useState(()=>{const p={};return e.forEach(c=>{c.models&&Object.entries(c.models).forEach(([h,u])=>{o.current[h]={controlledProp:u.controlledProp,defaultProp:u.defaultProp,isControlled:t[u.controlledProp]!==void 0},p[h]=t[u.defaultProp]})}),p});return Object.fromEntries(Object.entries(o.current).map(([p,c])=>{const h=c.isControlled?t[c.controlledProp]:n[p];return[p,{value:h,setValue:u=>{c.isControlled||d(b=>$({},b,{[p]:u}))}}]}))};class wo{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,o,n={}){let d=this.events[t];d||(d={highPriority:new Map,regular:new Map},this.events[t]=d),n.isFirst?d.highPriority.set(o,!0):d.regular.set(o,!0)}removeListener(t,o){this.events[t]&&(this.events[t].regular.delete(o),this.events[t].highPriority.delete(o))}removeAllListeners(){this.events={}}emit(t,...o){const n=this.events[t];if(!n)return;const d=Array.from(n.highPriority.keys()),a=Array.from(n.regular.keys());for(let p=d.length-1;p>=0;p-=1){const c=d[p];n.highPriority.has(c)&&c.apply(this,o)}for(let p=0;p<a.length;p+=1){const c=a[p];n.regular.has(c)&&c.apply(this,o)}}once(t,o){const n=this;this.on(t,function d(...a){n.removeListener(t,d),o.apply(n,a)})}}const Re=(e,t)=>{const o=e.getNode(t),n=e.getNavigableChildrenIds(o.parentId),d=n.indexOf(t);if(d===0)return o.parentId;let a=n[d-1];for(;e.isNodeExpanded(a)&&e.getNavigableChildrenIds(a).length>0;)a=e.getNavigableChildrenIds(a).pop();return a},fe=(e,t)=>{if(e.isNodeExpanded(t)&&e.getNavigableChildrenIds(t).length>0)return e.getNavigableChildrenIds(t)[0];let o=e.getNode(t);for(;o!=null;){const n=e.getNavigableChildrenIds(o.parentId),d=n[n.indexOf(o.id)+1];if(d)return d;o=e.getNode(o.parentId)}return null},Be=e=>{let t=e.getNavigableChildrenIds(null).pop();for(;e.isNodeExpanded(t);)t=e.getNavigableChildrenIds(t).pop();return t},Ae=e=>e.getNavigableChildrenIds(null)[0],re=(e,t)=>{Object.assign(e,t)},$o=e=>e.isPropagationStopped!==void 0,Do=({instance:e})=>{const[t]=x.useState(()=>new wo),o=x.useCallback((...d)=>{const[a,p,c={}]=d;c.defaultMuiPrevented=!1,!($o(c)&&c.isPropagationStopped())&&t.emit(a,p,c)},[t]),n=x.useCallback((d,a)=>(t.on(d,a),()=>{t.removeListener(d,a)}),[t]);re(e,{$$publishEvent:o,$$subscribeEvent:n})},Bo=[Do],Ao=e=>{const t=[...Bo,...e.plugins],o=t.reduce((s,i)=>i.getDefaultizedParams?i.getDefaultizedParams(s):s,e),n=Po(t,o),a=x.useRef({}).current,p=x.useRef(null),c=gt(p,e.rootRef),[h,u]=x.useState(()=>{const s={};return t.forEach(i=>{i.getInitialState&&Object.assign(s,i.getInitialState(o))}),s}),b=[];let m=St;const g=s=>{const i=s({instance:a,params:o,state:h,setState:u,rootRef:p,models:n})||{};i.getRootProps&&b.push(i.getRootProps),i.contextValue&&(m=i.contextValue)};return t.forEach(g),{getRootProps:(s={})=>{const i=$({role:"tree",tabIndex:0},s,{ref:c});return b.forEach(f=>{Object.assign(i,f(s))}),i},rootRef:c,contextValue:m}},_o=["element"];function Lo(e,t){for(let o=0;o<e.length;o+=1)if(t(e[o]))return o;return-1}function Oo(e,t){let o=0,n=e.length-1;for(;o<=n;){const d=Math.floor((o+n)/2);if(e[d].element===t)return d;e[d].element.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING?n=d-1:o=d+1}return o}const Rt=x.createContext({});function Mo(e){const t=x.useRef(null);return x.useEffect(()=>{t.current=e},[e]),t.current}const nt=()=>{};function Vo(e){const[,t]=x.useState(),{registerDescendant:o=nt,unregisterDescendant:n=nt,descendants:d=[],parentId:a=null}=x.useContext(Rt),p=Lo(d,u=>u.element===e.element),c=Mo(d),h=d.some((u,b)=>c&&c[b]&&c[b].element!==u.element);return Vt(()=>{if(e.element)return o($({},e,{index:p})),()=>{n(e.element)};t({})},[o,n,p,h,e]),{parentId:a,index:p}}function vt(e){const{children:t,id:o}=e,[n,d]=x.useState([]),a=x.useCallback(h=>{let{element:u}=h,b=se(h,_o);d(m=>{if(m.length===0)return[$({},b,{element:u,index:0})];const g=Oo(m,u);let r;if(m[g]&&m[g].element===u)r=m;else{const s=$({},b,{element:u,index:g});r=m.slice(),r.splice(g,0,s)}return r.forEach((s,i)=>{s.index=i}),r})},[]),p=x.useCallback(h=>{d(u=>u.filter(b=>h!==b.element))},[]),c=x.useMemo(()=>({descendants:n,registerDescendant:a,unregisterDescendant:p,parentId:o}),[n,a,p,o]);return l.jsx(Rt.Provider,{value:c,children:t})}function Fo(e){const{value:t,children:o}=e;return l.jsx(Et.Provider,{value:t,children:l.jsx(vt,{children:o})})}const zo=(e,t,o)=>{e.$$publishEvent(t,o)},Wo=({instance:e,params:t})=>{const o=x.useRef({}),n=x.useCallback(u=>o.current[u],[]),d=x.useCallback(u=>{o.current[u.id]=u},[]),a=x.useCallback(u=>{const b=$({},o.current);delete b[u],o.current=b,zo(e,"removeNode",{id:u})},[e]),p=x.useCallback(u=>{if(u==null)return!1;let b=e.getNode(u);if(!b)return!1;if(b.disabled)return!0;for(;b.parentId!=null;)if(b=e.getNode(b.parentId),b.disabled)return!0;return!1},[e]),c=he(u=>Object.values(o.current).filter(b=>b.parentId===u).sort((b,m)=>b.index-m.index).map(b=>b.id));re(e,{getNode:n,updateNode:d,removeNode:a,getChildrenIds:c,getNavigableChildrenIds:u=>{let b=e.getChildrenIds(u);return t.disabledItemsFocusable||(b=b.filter(m=>!e.isNodeDisabled(m))),b},isNodeDisabled:p})},He=({instance:e,params:t,models:o})=>{const n=x.useCallback(c=>Array.isArray(o.expanded.value)?o.expanded.value.indexOf(c)!==-1:!1,[o.expanded.value]),d=x.useCallback(c=>{var h;return!!((h=e.getNode(c))!=null&&h.expandable)},[e]),a=he((c,h)=>{if(h==null)return;let u;o.expanded.value.indexOf(h)!==-1?u=o.expanded.value.filter(b=>b!==h):u=[h].concat(o.expanded.value),t.onNodeToggle&&t.onNodeToggle(c,u),o.expanded.setValue(u)});re(e,{isNodeExpanded:n,isNodeExpandable:d,toggleNodeExpansion:a,expandAllSiblings:(c,h)=>{const u=e.getNode(h),m=e.getChildrenIds(u.parentId).filter(r=>e.isNodeExpandable(r)&&!e.isNodeExpanded(r)),g=o.expanded.value.concat(m);m.length>0&&(o.expanded.setValue(g),t.onNodeToggle&&t.onNodeToggle(c,g))}})};He.models={expanded:{controlledProp:"expanded",defaultProp:"defaultExpanded"}};const Uo=[];He.getDefaultizedParams=e=>{var t;return $({},e,{defaultExpanded:(t=e.defaultExpanded)!=null?t:Uo})};const Ko=(e,t,o)=>{if(t===o)return[t,o];const n=e.getNode(t),d=e.getNode(o);if(n.parentId===d.id||d.parentId===n.id)return d.parentId===n.id?[n.id,d.id]:[d.id,n.id];const a=[n.id],p=[d.id];let c=n.parentId,h=d.parentId,u=p.indexOf(c)!==-1,b=a.indexOf(h)!==-1,m=!0,g=!0;for(;!b&&!u;)m&&(a.push(c),u=p.indexOf(c)!==-1,m=c!==null,!u&&m&&(c=e.getNode(c).parentId)),g&&!u&&(p.push(h),b=a.indexOf(h)!==-1,g=h!==null,!b&&g&&(h=e.getNode(h).parentId));const r=u?c:h,s=e.getChildrenIds(r),i=a[a.indexOf(r)-1],f=p[p.indexOf(r)-1];return s.indexOf(i)<s.indexOf(f)?[t,o]:[o,t]},Ge=({instance:e,params:t,models:o})=>{const n=x.useRef(null),d=x.useRef(!1),a=x.useRef([]),p=s=>Array.isArray(o.selected.value)?o.selected.value.indexOf(s)!==-1:o.selected.value===s,c=(s,i,f=!1)=>{if(!t.disableSelection){if(f){if(Array.isArray(o.selected.value)){let k;o.selected.value.indexOf(i)!==-1?k=o.selected.value.filter(C=>C!==i):k=[i].concat(o.selected.value),t.onNodeSelect&&t.onNodeSelect(s,k),o.selected.setValue(k)}}else{const k=t.multiSelect?[i]:i;t.onNodeSelect&&t.onNodeSelect(s,k),o.selected.setValue(k)}n.current=i,d.current=!1,a.current=[]}},h=(s,i)=>{const[f,k]=Ko(e,s,i),C=[f];let y=f;for(;y!==k;)y=fe(e,y),C.push(y);return C},u=(s,i)=>{let f=o.selected.value.slice();const{start:k,next:C,current:y}=i;!C||!y||(a.current.indexOf(y)===-1&&(a.current=[]),d.current?a.current.indexOf(C)!==-1?(f=f.filter(T=>T===k||T!==y),a.current=a.current.filter(T=>T===k||T!==y)):(f.push(C),a.current.push(C)):(f.push(C),a.current.push(y,C)),t.onNodeSelect&&t.onNodeSelect(s,f),o.selected.setValue(f))},b=(s,i)=>{let f=o.selected.value.slice();const{start:k,end:C}=i;d.current&&(f=f.filter(E=>a.current.indexOf(E)===-1));let y=h(k,C);y=y.filter(E=>!e.isNodeDisabled(E)),a.current=y;let T=f.concat(y);T=T.filter((E,S)=>T.indexOf(E)===S),t.onNodeSelect&&t.onNodeSelect(s,T),o.selected.setValue(T)};return re(e,{isNodeSelected:p,selectNode:c,selectRange:(s,i,f=!1)=>{if(t.disableSelection)return;const{start:k=n.current,end:C,current:y}=i;f?u(s,{start:k,next:C,current:y}):k!=null&&C!=null&&b(s,{start:k,end:C}),d.current=!0},rangeSelectToLast:(s,i)=>{n.current||(n.current=i);const f=d.current?n.current:i;e.selectRange(s,{start:f,end:Be(e)})},rangeSelectToFirst:(s,i)=>{n.current||(n.current=i);const f=d.current?n.current:i;e.selectRange(s,{start:f,end:Ae(e)})}}),{getRootProps:()=>({"aria-multiselectable":t.multiSelect})}};Ge.models={selected:{controlledProp:"selected",defaultProp:"defaultSelected"}};const qo=[];Ge.getDefaultizedParams=e=>{var t,o,n;return $({},e,{disableSelection:(t=e.disableSelection)!=null?t:!1,multiSelect:(o=e.multiSelect)!=null?o:!1,defaultSelected:(n=e.defaultSelected)!=null?n:e.multiSelect?qo:null})};const rt=1e3;class Ho{constructor(t=rt){this.timeouts=new Map,this.cleanupTimeout=rt,this.cleanupTimeout=t}register(t,o,n){this.timeouts||(this.timeouts=new Map);const d=setTimeout(()=>{typeof o=="function"&&o(),this.timeouts.delete(n.cleanupToken)},this.cleanupTimeout);this.timeouts.set(n.cleanupToken,d)}unregister(t){const o=this.timeouts.get(t.cleanupToken);o&&(this.timeouts.delete(t.cleanupToken),clearTimeout(o))}reset(){this.timeouts&&(this.timeouts.forEach((t,o)=>{this.unregister({cleanupToken:o})}),this.timeouts=void 0)}}class Go{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,o,n){this.registry.register(t,o,n)}unregister(t){this.registry.unregister(t)}reset(){}}class Jo{}function Xo(e){let t=0;return function(n,d,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new Go:new Ho);const[p]=x.useState(new Jo),c=x.useRef(null),h=x.useRef();h.current=a;const u=x.useRef(null);if(!c.current&&h.current){const b=(m,g)=>{if(!g.defaultMuiPrevented){var r;(r=h.current)==null||r.call(h,m,g)}};c.current=n.$$subscribeEvent(d,b),t+=1,u.current={cleanupToken:t},e.registry.register(p,()=>{var m;(m=c.current)==null||m.call(c),c.current=null,u.current=null},u.current)}else!h.current&&c.current&&(c.current(),c.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));x.useEffect(()=>{if(!c.current&&h.current){const b=(m,g)=>{if(!g.defaultMuiPrevented){var r;(r=h.current)==null||r.call(h,m,g)}};c.current=n.$$subscribeEvent(d,b)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{var b;(b=c.current)==null||b.call(c),c.current=null}},[n,d])}}const Yo={registry:null},Qo=Xo(Yo),Je=({instance:e,params:t,state:o,setState:n,models:d,rootRef:a})=>{const p=he(r=>{const s=typeof r=="function"?r(o.focusedNodeId):r;n(i=>$({},i,{focusedNodeId:s}))}),c=x.useCallback(r=>o.focusedNodeId===r,[o.focusedNodeId]),h=he((r,s)=>{s&&(p(s),t.onNodeFocus&&t.onNodeFocus(r,s))});re(e,{isNodeFocused:c,focusNode:h}),Qo(e,"removeNode",({id:r})=>{p(s=>s===r&&a.current===kt(a.current).activeElement?e.getChildrenIds(null)[0]:s)});const u=r=>s=>{var i;if((i=r.onFocus)==null||i.call(r,s),s.target===s.currentTarget){const f=C=>{const y=e.getNode(C);return y&&(y.parentId==null||e.isNodeExpanded(y.parentId))};let k;Array.isArray(d.selected.value)?k=d.selected.value.find(f):d.selected.value!=null&&f(d.selected.value)&&(k=d.selected.value),k==null&&(k=e.getNavigableChildrenIds(null)[0]),e.focusNode(s,k)}},b=r=>s=>{var i;(i=r.onBlur)==null||i.call(r,s),p(null)},m=e.getNode(o.focusedNodeId),g=m?m.idAttribute:null;return{getRootProps:r=>({onFocus:u(r),onBlur:b(r),"aria-activedescendant":g??void 0})}};Je.getInitialState=()=>({focusedNodeId:null});Je.getDefaultizedParams=e=>{var t;return $({},e,{disabledItemsFocusable:(t=e.disabledItemsFocusable)!=null?t:!1})};function Zo(e){return e&&e.length===1&&e.match(/\S/)}function it(e,t,o){for(let n=t;n<e.length;n+=1)if(o===e[n])return n;return-1}const el=({instance:e,params:t,state:o})=>{const d=Ft().direction==="rtl",a=x.useRef({}),p=he((r,s)=>(a.current[r]=s,()=>{const i=$({},a.current);delete i[r],a.current=i}));re(e,{mapFirstChar:p});const c=r=>(o.focusedNodeId!=null&&e.isNodeExpandable(o.focusedNodeId)&&(e.isNodeExpanded(o.focusedNodeId)?e.focusNode(r,fe(e,o.focusedNodeId)):e.isNodeDisabled(o.focusedNodeId)||e.toggleNodeExpansion(r,o.focusedNodeId)),!0),h=r=>{if(o.focusedNodeId==null)return!1;if(e.isNodeExpanded(o.focusedNodeId)&&!e.isNodeDisabled(o.focusedNodeId))return e.toggleNodeExpansion(r,o.focusedNodeId),!0;const s=e.getNode(o.focusedNodeId).parentId;return s?(e.focusNode(r,s),!0):!1},u=(r,s,i)=>{let f,k;const C=i.toLowerCase(),y=[],T=[];Object.keys(a.current).forEach(E=>{const S=e.getNode(E),R=S.parentId?e.isNodeExpanded(S.parentId):!0,D=t.disabledItemsFocusable?!1:e.isNodeDisabled(E);R&&!D&&(y.push(E),T.push(a.current[E]))}),f=y.indexOf(s)+1,f>=y.length&&(f=0),k=it(T,f,C),k===-1&&(k=it(T,0,C)),k>-1&&e.focusNode(r,y[k])},b=(r,s)=>{e.isNodeDisabled(fe(e,s))||e.selectRange(r,{end:fe(e,s),current:s},!0)},m=(r,s)=>{e.isNodeDisabled(Re(e,s))||e.selectRange(r,{end:Re(e,s),current:s},!0)},g=r=>s=>{var i;(i=r.onKeyDown)==null||i.call(r,s);let f=!1;const k=s.key;if(s.altKey||s.currentTarget!==s.target||o.focusedNodeId==null)return;const C=s.ctrlKey||s.metaKey;switch(k){case" ":!t.disableSelection&&!e.isNodeDisabled(o.focusedNodeId)&&(f=!0,t.multiSelect&&s.shiftKey?e.selectRange(s,{end:o.focusedNodeId}):t.multiSelect?e.selectNode(s,o.focusedNodeId,!0):e.selectNode(s,o.focusedNodeId)),s.stopPropagation();break;case"Enter":e.isNodeDisabled(o.focusedNodeId)||(e.isNodeExpandable(o.focusedNodeId)?(e.toggleNodeExpansion(s,o.focusedNodeId),f=!0):t.disableSelection||(f=!0,t.multiSelect?e.selectNode(s,o.focusedNodeId,!0):e.selectNode(s,o.focusedNodeId))),s.stopPropagation();break;case"ArrowDown":t.multiSelect&&s.shiftKey&&!t.disableSelection&&b(s,o.focusedNodeId),e.focusNode(s,fe(e,o.focusedNodeId)),f=!0;break;case"ArrowUp":t.multiSelect&&s.shiftKey&&!t.disableSelection&&m(s,o.focusedNodeId),e.focusNode(s,Re(e,o.focusedNodeId)),f=!0;break;case"ArrowRight":d?f=h(s):f=c(s);break;case"ArrowLeft":d?f=c(s):f=h(s);break;case"Home":t.multiSelect&&C&&s.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(o.focusedNodeId)&&e.rangeSelectToFirst(s,o.focusedNodeId),e.focusNode(s,Ae(e)),f=!0;break;case"End":t.multiSelect&&C&&s.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(o.focusedNodeId)&&e.rangeSelectToLast(s,o.focusedNodeId),e.focusNode(s,Be(e)),f=!0;break;default:k==="*"?(e.expandAllSiblings(s,o.focusedNodeId),f=!0):t.multiSelect&&C&&k.toLowerCase()==="a"&&!t.disableSelection?(e.selectRange(s,{start:Ae(e),end:Be(e)}),f=!0):!C&&!s.shiftKey&&Zo(k)&&(u(s,o.focusedNodeId,k),f=!0)}f&&(s.preventDefault(),s.stopPropagation())};return{getRootProps:r=>({onKeyDown:g(r)})}},tl=({instance:e,params:t})=>{const o=zt(t.id);return{getRootProps:()=>({id:o}),contextValue:{treeId:o,instance:e,multiSelect:t.multiSelect,disabledItemsFocusable:t.disabledItemsFocusable,icons:{defaultCollapseIcon:t.defaultCollapseIcon,defaultEndIcon:t.defaultEndIcon,defaultExpandIcon:t.defaultExpandIcon,defaultParentIcon:t.defaultParentIcon}}}},ol=[Wo,He,Ge,Je,el,tl],ll=["disabledItemsFocusable","expanded","defaultExpanded","onNodeToggle","onNodeFocus","disableSelection","defaultSelected","selected","multiSelect","onNodeSelect","id","defaultCollapseIcon","defaultEndIcon","defaultExpandIcon","defaultParentIcon","children"],sl=e=>{const{classes:t}=e;return Ve({root:["root"]},vo,t)},ct=K("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0}),nl=x.forwardRef(function(t,o){const n=Oe({props:t,name:"MuiTreeView"}),d=n,a=n,{disabledItemsFocusable:p,expanded:c,defaultExpanded:h,onNodeToggle:u,onNodeFocus:b,disableSelection:m,defaultSelected:g,selected:r,multiSelect:s,onNodeSelect:i,id:f,defaultCollapseIcon:k,defaultEndIcon:C,defaultExpandIcon:y,defaultParentIcon:T,children:E}=a,S=se(a,ll),{getRootProps:R,contextValue:D}=Ao({disabledItemsFocusable:p,expanded:c,defaultExpanded:h,onNodeToggle:u,onNodeFocus:b,disableSelection:m,defaultSelected:g,selected:r,multiSelect:s,onNodeSelect:i,id:f,defaultCollapseIcon:k,defaultEndIcon:C,defaultExpandIcon:y,defaultParentIcon:T,plugins:ol,rootRef:o}),I=sl(n),B=ht({elementType:ct,externalSlotProps:{},externalForwardedProps:S,className:I.root,getSlotProps:R,ownerState:d});return l.jsx(Fo,{value:D,children:l.jsx(ct,$({},B,{children:E}))})}),Pt=()=>x.useContext(Et);function rl(e){const{instance:t,multiSelect:o}=Pt(),n=t?t.isNodeExpandable(e):!1,d=t?t.isNodeExpanded(e):!1,a=t?t.isNodeFocused(e):!1,p=t?t.isNodeSelected(e):!1,c=t?t.isNodeDisabled(e):!1;return{disabled:c,expanded:d,selected:p,focused:a,handleExpansion:m=>{if(t&&!c){a||t.focusNode(m,e);const g=o&&(m.shiftKey||m.ctrlKey||m.metaKey);n&&!(g&&t.isNodeExpanded(e))&&t.toggleNodeExpansion(m,e)}},handleSelection:m=>{t&&!c&&(a||t.focusNode(m,e),o&&(m.shiftKey||m.ctrlKey||m.metaKey)?m.shiftKey?t.selectRange(m,{end:e}):t.selectNode(m,e,!0):t.selectNode(m,e))},preventSelection:m=>{(m.shiftKey||m.ctrlKey||m.metaKey||c)&&m.preventDefault()}}}const il=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],wt=x.forwardRef(function(t,o){const{classes:n,className:d,displayIcon:a,expansionIcon:p,icon:c,label:h,nodeId:u,onClick:b,onMouseDown:m}=t,g=se(t,il),{disabled:r,expanded:s,selected:i,focused:f,handleExpansion:k,handleSelection:C,preventSelection:y}=rl(u),T=c||p||a,E=R=>{y(R),m&&m(R)},S=R=>{k(R),C(R),b&&b(R)};return l.jsxs("div",$({},g,{className:Me(d,n.root,s&&n.expanded,i&&n.selected,f&&n.focused,r&&n.disabled),onClick:S,onMouseDown:E,ref:o,children:[l.jsx("div",{className:n.iconContainer,children:T}),l.jsx("div",{className:n.label,children:h})]}))});function cl(e){return Le("MuiTreeItem",e)}const J=_e("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),al=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],dl=e=>{const{classes:t}=e;return Ve({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},cl,t)},ul=K("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),pl=K(wt,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${J.iconContainer}`]:t.iconContainer},t.label&&{[`& .${J.label}`]:t.label}]})(({theme:e})=>({padding:"0 8px",width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${J.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${J.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${J.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne(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})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${J.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${J.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${J.label}`]:$({paddingLeft:4,width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),fl=K(yt,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),ml=x.forwardRef(function(t,o){const n=Oe({props:t,name:"MuiTreeItem"}),{children:d,className:a,collapseIcon:p,ContentComponent:c=wt,ContentProps:h,endIcon:u,expandIcon:b,disabled:m,icon:g,id:r,label:s,nodeId:i,onClick:f,onMouseDown:k,TransitionComponent:C=yt,TransitionProps:y}=n,T=se(n,al),{icons:E,multiSelect:S,disabledItemsFocusable:R,treeId:D,instance:I}=Pt();let B;r!=null?B=r:D&&i&&(B=`${D}-${i}`);const[H,ye]=x.useState(null),je=x.useRef(null),te=gt(ye,o),O=x.useMemo(()=>({element:H,id:i}),[i,H]),{index:oe,parentId:ie}=Vo(O),G=!!(Array.isArray(d)?d.length:d),Y=I?I.isNodeExpanded(i):!1,ce=I?I.isNodeFocused(i):!1,le=I?I.isNodeSelected(i):!1,ae=I?I.isNodeDisabled(i):!1,Q=$({},n,{expanded:Y,focused:ce,selected:le,disabled:ae}),V=dl(Q);let de,ue;G&&(Y?ue=p||E.defaultCollapseIcon:ue=b||E.defaultExpandIcon),G?de=E.defaultParentIcon:de=u||E.defaultEndIcon,x.useEffect(()=>{if(I&&oe!==-1)return I.updateNode({id:i,idAttribute:B,index:oe,parentId:ie,expandable:G,disabled:m}),()=>I.removeNode(i)},[I,ie,oe,i,G,m,B]),x.useEffect(()=>{if(I&&s){var _,ee;return I.mapFirstChar(i,((_=(ee=je.current)==null?void 0:ee.textContent)!=null?_:"").substring(0,1).toLowerCase())}},[I,i,s]);let Z;S?Z=le:le&&(Z=!0);function Ce(_){if(_.target===_.currentTarget){let N;typeof _.target.getRootNode=="function"?N=_.target.getRootNode():N=kt(_.target),N.getElementById(D).focus({preventScroll:!0})}const ee=!R&&ae;I&&!ce&&_.currentTarget===_.target&&!ee&&I.focusNode(_,i)}return l.jsxs(ul,$({className:Me(V.root,a),role:"treeitem","aria-expanded":G?Y:void 0,"aria-selected":Z,"aria-disabled":ae||void 0,id:B,tabIndex:-1},T,{ownerState:Q,onFocus:Ce,ref:te,children:[l.jsx(pl,$({as:c,ref:je,classes:{root:V.content,expanded:V.expanded,selected:V.selected,focused:V.focused,disabled:V.disabled,iconContainer:V.iconContainer,label:V.label},label:s,nodeId:i,onClick:f,onMouseDown:k,icon:g,expansionIcon:ue,displayIcon:de,ownerState:Q},h)),d&&l.jsx(vt,{id:i,children:l.jsx(fl,$({as:C,unmountOnExit:!0,className:V.group,in:Y,component:"ul",role:"group"},y,{children:d}))})]}))});function Xe({data:e,...t}){return!e||!e.length?null:l.jsx(hl,{...t,children:e.map(o=>l.jsx("a",{href:o.url,target:"_blank",rel:"noreferrer",children:l.jsx("img",{src:o.url,alt:o.alt||""})},o.url))})}Xe.propTypes={data:P.arrayOf(P.shape({url:P.string,alt:P.string}))};Xe.defaultProps={data:[]};const hl=q(j)`
|
|
23
23
|
display: flex;
|
|
24
24
|
justify-content: flex-start;
|
|
25
25
|
flex-wrap: wrap;
|
|
@@ -33,7 +33,7 @@ import{ai as At,j as l,ax as K,ci as _t,aA as $,e2 as ot,az as se,av as _e,aw as
|
|
|
33
33
|
margin-right: 12px;
|
|
34
34
|
margin-bottom: 12px;
|
|
35
35
|
}
|
|
36
|
-
`,
|
|
36
|
+
`,ve=(e,t)=>{const o=[...e];for(;o.length>0;){const n=o.shift();if(n.id===t)return n;n.children&&o.push(...n.children)}return[]};function Ye({icon:e}){return e?so(e)?l.jsx("img",{className:"resource-icon",src:e,alt:"icon"}):l.jsx(Wt,{className:"resource-icon",icon:e}):null}Ye.propTypes={icon:P.string};Ye.defaultProps={icon:""};function Qe({disabled:e,data:t,onChange:o,value:n}){const d=n;function a(r,s=[]){return s.push(r.id),r.children&&r.children.forEach(i=>a(i,s)),s}const p=r=>a(ve(t,r)),c=(r,s=[])=>{const i=ve(t,r);return i.parent?(s.push(i.parent),c(i.parent,s)):s};function h(r,s){const i=p(r.id),f=i.indexOf(r.id);return i.splice(f,1),i.every(k=>d.concat(s).includes(k))}const u=(r,s)=>{r.stopPropagation();const i=p(s),f=c(s);if(d.includes(s)){const k=d.filter(C=>!i.concat(f).includes(C));o(k)}else{const k=i;for(let C=0;C<f.length;++C)h(ve(t,f[C]),k)&&k.push(f[C]);o([...d].concat(k))}},b=r=>{r.stopPropagation()},m=t.some(r=>{var s;return((s=r.children)==null?void 0:s.length)>0}),g=r=>{var s;return l.jsx(ml,{nodeId:r.id,label:l.jsx(io,{onClick:b,control:l.jsx(De,{size:"small",checked:d.indexOf(r.id)!==-1,tabIndex:-1,disableRipple:!0,onClick:i=>u(i,r.id),disabled:e}),label:l.jsxs(j,{className:"content",children:[l.jsxs(j,{display:"flex",alignItems:"center",children:[r.icon&&l.jsx(Ye,{icon:r.icon}),l.jsx(j,{className:"name",children:r.name}),r.url&&l.jsx("a",{href:r.url,target:"_blank",rel:"noreferrer",className:"link",children:l.jsx(ro,{className:"link-icon"})})]}),!!r.description&&l.jsx(j,{className:"description",children:r.description}),!!((s=r.images)!=null&&s.length)&&l.jsx(Xe,{className:"images",data:r.images})]})}),children:Array.isArray(r.children)?r.children.map(g):null},r.id)};return l.jsx(bl,{className:Ue(!m&&"no-children"),multiSelect:!0,defaultCollapseIcon:l.jsx(no,{}),defaultExpandIcon:l.jsx(Yt,{}),selected:d,children:t.map(r=>g(r))})}Qe.propTypes={data:P.array,value:P.array,onChange:P.func,disabled:P.bool};Qe.defaultProps={data:[],value:[],onChange:()=>{},disabled:!1};const bl=q(nl)`
|
|
37
37
|
&.no-children {
|
|
38
38
|
.MuiTreeItem-content {
|
|
39
39
|
padding: 0;
|
|
@@ -88,7 +88,7 @@ import{ai as At,j as l,ax as K,ci as _t,aA as $,e2 as ot,az as se,av as _e,aw as
|
|
|
88
88
|
font-size: 14px;
|
|
89
89
|
color: ${({theme:e})=>e.palette.text.secondary};
|
|
90
90
|
}
|
|
91
|
-
`,$t=(e,t)=>(e.forEach(o=>{t&&(o.parent=t),(o.children||[]).forEach(n=>{n.parent=o.id,$t(n.children||[],n.id)})}),e);function xl(e,t){return e.length!==t.length?!1:e.every((o,n)=>o===t[n])}function Ze({app:e,component:t,projectId:o,release:n,error:d,onSave:a}){const{t:p,locale:c}=ne(),{api:h}=be(),[u,b]=x.useState([]),[m,g]=x.useState([]),[r,s]=x.useState([]),[i,f]=x.useState(!1),k=x.useMemo(()=>xl(m,r)?null:p("blocklet.publish.resourceChangedWarning"),[m,r,p]),C=n.id,y=n.status==="published",{exportApi:T="/"}=(t==null?void 0:t.meta.resource)||{},
|
|
91
|
+
`,$t=(e,t)=>(e.forEach(o=>{t&&(o.parent=t),(o.children||[]).forEach(n=>{n.parent=o.id,$t(n.children||[],n.id)})}),e);function xl(e,t){return e.length!==t.length?!1:e.every((o,n)=>o===t[n])}function Ze({app:e,component:t,projectId:o,release:n,error:d,onSave:a}){const{t:p,locale:c}=ne(),{api:h}=be(),[u,b]=x.useState([]),[m,g]=x.useState([]),[r,s]=x.useState([]),[i,f]=x.useState(!1),k=x.useMemo(()=>xl(m,r)?null:p("blocklet.publish.resourceChangedWarning"),[m,r,p]),C=n.id,y=n.status==="published",{exportApi:T="/"}=(t==null?void 0:t.meta.resource)||{},E=new URL(me("http://127.0.0.1",t.mountPoint,T||"/").replace(/\/+/g,"/"));E.searchParams.set("projectId",o),E.searchParams.set("releaseId",C),E.searchParams.set("local",c);const S=`${E.pathname}${E.search}`,R=async I=>{try{await h.updateSelectedResources({input:{did:e.meta.did,projectId:o,releaseId:C,componentDid:t.meta.did,resources:I}})}catch(B){w.error(B.message)}},D=async()=>{const I=m;try{f(!0),await lt.post(S,{resources:I,projectId:o,releaseId:C,locale:c}),w.success(p("common.saveSuccess")),f(!1),R(m),s(m),a(m)}catch(B){f(!1),w.error(B.message)}};return x.useEffect(()=>{lt.get(S).then(I=>{var H;const B=$t(((H=I.data)==null?void 0:H.resources)||[]);b(B)}).catch(I=>{w.error(I.message)}),h.getSelectedResources({input:{did:e.meta.did,projectId:o,releaseId:C,componentDid:t.meta.did}}).then(I=>{const B=(I==null?void 0:I.resources)||[];g(B),s(B)}).catch(I=>{w.error(I.message)})},[S]),t.status!=="running"?l.jsx(at,{children:l.jsx(j,{pt:6,children:p("blocklet.publish.componentNotRunning",{name:t.meta.title})})}):[l.jsx(at,{className:Ue(d&&"error"),children:l.jsxs(j,{children:[l.jsx(Qe,{data:u,value:m,onChange:I=>{g(I)},disabled:i||y}),!y&&l.jsx(j,{className:"footer",children:l.jsx(F,{variant:"contained",disabled:i,onClick:()=>D(),children:p("common.save")})})]})}),!!k&&l.jsx(j,{color:"warning.main",mt:1,fontSize:14,children:k}),!!d&&l.jsx(j,{color:"error.main",mt:1,fontSize:14,children:d})]}Ze.propTypes={component:P.object.isRequired,app:P.object.isRequired,projectId:P.string.isRequired,error:P.string,release:P.shape({id:P.string.isRequired,status:P.string}),onSave:P.func};Ze.defaultProps={error:"",release:{id:""},onSave:()=>{}};const at=q(j)`
|
|
92
92
|
border: 1px solid #ccc;
|
|
93
93
|
&.error {
|
|
94
94
|
border-color: ${e=>e.theme.palette.error.main};
|
|
@@ -132,7 +132,7 @@ import{ai as At,j as l,ax as K,ci as _t,aA as $,e2 as ot,az as se,av as _e,aw as
|
|
|
132
132
|
display: none;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
`,dt=["image/*",".jpg",".jpeg",".png",".gif",".svg"],ut=1024*1024*10;var mt;const Pe=(mt=window.env)==null?void 0:mt.serverEndpoint,pt=x.lazy(()=>qt(()=>import("./react-AhHGsWwr.js").then(e=>e.r),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29])).then(e=>({default:e.Uploader}))),kl=(e,t,o)=>{const n=[];return e.blockletTitle||n.push({param:"blockletTitle",message:o("blocklet.publish.errorTip.noTitle")}),e.blockletVersion?Ie.valid(e.blockletVersion)||n.push({param:"blockletVersion",message:"Invalid Blocklet Version"}):n.push({param:"blockletVersion",message:o("blocklet.publish.errorTip.noVersion")}),t===z.PROJECT.RELEASE_STATUS.published&&(e.blockletDescription||n.push({param:"blockletDescription",message:o("blocklet.publish.errorTip.noDescription")}),e.note||n.push({param:"note",message:o("blocklet.publish.errorTip.noNote")})),n.length?n:null},yl=({tabs:e,blocklet:t,ancestors:o=[]})=>{const n=t.meta.did;e.push({label:l.jsxs(j,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[l.jsx(We,{size:24,blocklet:t,ancestors:o}),l.jsx(j,{ml:"4px",className:"text",children:l.jsx(j,{children:t.meta.title})})]},n),value:n})},ft=(e,t)=>{const o=Fe(e,["blockletVersion","blockletTitle","blockletDescription","blockletLogo","blockletIntroduction","blockletScreenshots","blockletComponents","note"]);return o.blockletScreenshots||(o.blockletScreenshots=[]),o.blockletComponents?o.blockletComponents=o.blockletComponents.map(n=>({...n,included:!0})):o.blockletComponents=(t.children||[]).map(n=>({did:n.meta.did,included:!0,required:!0})),o};function tt({...e}){var Ce,_,ee;const t=xt(),{projectId:o,releaseId:n,componentDid:d}=ge(),{t:a}=ne(),{blocklet:p}=xe(),[c,h]=Xt(null),[u,b]=x.useState({}),[m,g]=x.useState(!1),[r,s]=x.useState(!1),[i,f]=x.useState(null),{api:k}=be(),C=x.useRef(null),y=x.useRef(null),[T,v]=x.useState(),[S,E]=x.useState(),D=n==="create"?"":n,I=n==="create"?"create":"edit",B=[],H=((p==null?void 0:p.children)||[]).filter(N=>{var A;return(A=N.meta.resource)==null?void 0:A.exportApi}).filter(N=>!d||N.meta.did===d);H.forEach(N=>{yl({tabs:B,blocklet:N,t:a,ancestors:[p]})});const[ye,je]=x.useState((Ce=B[0])==null?void 0:Ce.value),te=(i==null?void 0:i.status)==="published",O=te,oe=({typeOnly:N}={})=>{k.getProject({input:{did:p.meta.did,projectId:o}}).then(A=>{g(!1);const R=A.project||{};if(N){v(R.type);return}R.blockletVersion?Ie.valid(R.blockletVersion)&&(R.blockletVersion=Ie.inc(R.blockletVersion,"patch")):R.blockletVersion="1.0.0",h(ft(R,p)),v(R.type)}).catch(A=>{g(!1),w.error(ve(A))})},ie=()=>{k.getRelease({input:{did:p.meta.did,projectId:o,releaseId:D}}).then(N=>{g(!1),h(ft(N==null?void 0:N.release,p)),f(N==null?void 0:N.release)}).catch(N=>{g(!1),w.error(ve(N))})},J=x.useCallback(()=>{if(I==="edit"){if(!D){w.error("Empty release id");return}ie(),oe({typeOnly:!0})}I==="create"&&oe()},[I,D]);x.useEffect(()=>{J()},[J]);const Q=N=>{const A=kl(c,N,a);if(A){w.error(A.map(M=>M.message).join("; ")),b(A.reduce((M,U)=>({...M,[U.param]:U.message}),{}));return}const R={...c};if(R.blockletVersion=Ie.valid(R.blockletVersion),!R.blockletVersion){w.error("Invalid Blocklet Version"),b({blockletVersion:"Invalid Blocklet Version"});return}R.blockletTitle=(R.blockletTitle||"").trim(),R.blockletDescription=(R.blockletDescription||"").trim(),R.blockletIntroduction=(R.blockletIntroduction||"").trim(),R.note=(R.note||"").trim(),T==="pack"?R.blockletComponents=(R.blockletComponents||[]).filter(M=>M.included).map(M=>Fe(M,["did","required"])).map(JSON.stringify):delete R.blockletComponents,s(N),g(!0),k.createRelease({input:{...R,did:p.meta.did,projectId:o,releaseId:D,status:N}}).then(M=>{var U;if(s(!1),g(!1),N==="draft"?w.success(a("blocklet.publish.saveDraftSuccess")):w.success(a("blocklet.publish.createReleaseSuccess")),I==="create"){const Bt=(U=M==null?void 0:M.release)==null?void 0:U.id;t(`../${o}/${Bt}`,{replace:!0})}else ie()}).catch(M=>{s(!1),g(!1);const U=ve(M);w.error(U),/resource.*empty/.test(U)&&b({blockletResource:U})})};if(!c&&m)return l.jsx(ke,{});if(!c)return null;const ce=`${pe.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/logo/upload`,le=`${pe.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/screenshot/upload`,ae=c!=null&&c.blockletLogo?`${ce}/${c.blockletLogo}`:`${pe.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images/logo.png`,Y=((c==null?void 0:c.blockletScreenshots)||[]).filter(Boolean).map(N=>`${le}/${N}`),V=H.find(N=>N.meta.did===ye),de=V?l.jsx(j,{children:l.jsx(Ze,{error:u.blockletResource,app:p,component:V,projectId:o,release:{...i,id:D},onSave:N=>{N.length&&b({blockletResource:""})}})}):l.jsx(j,{display:"flex",mt:-3,children:l.jsx(Ut,{children:a("common.empty")})}),ue=N=>{je(N)};let Z=null;if(te&&Pe){const N=me(Pe,`/api/project/${p.meta.did}/${o}/${D}/release/blocklet.json`);if(T==="pack"){const A=new URL(Pe);A.pathname=me(A.pathname,"/launch-blocklet/agreement"),A.searchParams.set("blocklet_meta_url",N),Z=l.jsx(F,{variant:"outlined",style:{marginRight:8},children:l.jsx("a",{href:A.href,target:"_blank",rel:"noreferrer",children:a("common.install")})})}else Z=l.jsxs(l.Fragment,{children:[l.jsx(F,{variant:"outlined",style:{marginRight:8},onClick:()=>E(N),children:a("common.install")}),l.jsx(Kt,{fullWidth:!0,maxWidth:"sm",open:S,onClose:()=>E(""),children:l.jsxs(j,{sx:{py:5,px:4,wordBreak:"break-all"},children:[l.jsx(L,{variant:"h6",sx:{mb:2},children:a("blocklet.publish.installResourceTip")}),l.jsx(lo,{children:S}),l.jsxs(L,{sx:{mt:2},children:[a("blocklet.publish.installResourceTip2"),l.jsx("a",{style:{marginLeft:4},href:"https://www.arcblock.io/docs/blocklet-developer/R3weqCy7WPI8ggudt0C2alWv",target:"_blank",rel:"noreferrer",children:a("blocklet.publish.installResourceHelp")})]})]})})]})}return l.jsxs(jl,{...e,children:[l.jsxs(j,{className:"sticky-header",children:[l.jsxs(Ke,{className:"breadcrumbs","aria-label":"breadcrumb",children:[l.jsx(W,{to:"../",children:a("common.publish")}),l.jsx(W,{to:`../${o}`,children:(c==null?void 0:c.blockletTitle)||"Blocklet"}),l.jsx(L,{color:"text.primary",children:I==="create"?a("common.create"):(c==null?void 0:c.blockletVersion)||a("common.edit")})]}),l.jsxs(j,{display:"flex",children:[!te&&l.jsxs(l.Fragment,{children:[l.jsxs(F,{variant:"outlined",disabled:m||r,onClick:()=>Q(z.PROJECT.RELEASE_STATUS.draft),style:{marginRight:12},children:[r===z.PROJECT.RELEASE_STATUS.draft&&l.jsx(we,{size:14,sx:{mr:.5}}),a("blocklet.publish.saveDraft")]}),l.jsxs(F,{variant:"contained",disabled:m||r,onClick:()=>Q(z.PROJECT.RELEASE_STATUS.published),children:[r===z.PROJECT.RELEASE_STATUS.published&&l.jsx(we,{size:14,sx:{mr:.5},color:"inherit"}),a("common.release")]})]}),te&&l.jsxs(l.Fragment,{children:[Z,l.jsx(F,{variant:"contained",children:l.jsx("a",{href:me(`${pe.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/${D}/download/${(i.files||[])[0]}`),children:a("common.download")})})]})]})]}),l.jsxs(j,{children:[T==="pack"&&l.jsx(oo,{type:"info",style:{width:"100%"},children:a("blocklet.publish.packTip")}),l.jsx(j,{pt:3}),l.jsxs(j,{display:"flex",className:"section",children:[l.jsx(L,{variant:"h3",className:"left",children:a("blocklet.publish.productTitle")}),l.jsxs(j,{sx:{flex:1},children:[l.jsx(G,{label:`Blocklet ${a("common.title")}`,placeholder:`Blocklet ${a("common.title")}`,InputProps:{"data-cy":"blocklet-title",readOnly:O},autoComplete:"off",variant:"outlined",fullWidth:!0,required:!0,value:c.blockletTitle||"",onChange:N=>{b({blockletTitle:""}),h({blockletTitle:N.target.value})},error:!!u.blockletTitle,helperText:u.blockletTitle||""}),l.jsx(G,{label:`Blocklet ${a("common.description")}`,placeholder:`Blocklet ${a("common.description")}`,InputProps:{"data-cy":"blocklet-description",readOnly:O},required:!0,autoComplete:"off",variant:"outlined",fullWidth:!0,value:c.blockletDescription||"",onChange:N=>{b({blockletDescription:""}),h({blockletDescription:N.target.value})},error:!!u.blockletDescription,helperText:u.blockletDescription||"",sx:{mt:3}}),l.jsx(G,{label:`Blocklet ${a("common.introduction")}`,placeholder:`Blocklet ${a("common.introduction")}`,InputProps:{"data-cy":"export-blocklet-introduction",readOnly:O,endAdornment:l.jsxs($e,{position:"end",children:[((_=c==null?void 0:c.blockletIntroduction)==null?void 0:_.length)||0," / ",z.PROJECT.MAX_INTRO_LENGTH]})},autoComplete:"off",variant:"outlined",fullWidth:!0,multiline:!0,minRows:4,value:c.blockletIntroduction||"",onChange:N=>{b({blockletIntroduction:""}),h({blockletIntroduction:N.target.value.slice(0,z.PROJECT.MAX_INTRO_LENGTH)})},error:!!u.blockletIntroduction,helperText:u.blockletIntroduction||"",sx:{mt:3}})]})]}),l.jsxs(j,{display:"flex",mt:3,className:"section",children:[l.jsx(L,{variant:"h3",className:"left",children:a("blocklet.publish.versionTitle")}),l.jsxs(j,{sx:{flex:1},children:[l.jsx(G,{required:!0,label:`Blocklet ${a("common.version")}`,placeholder:`Blocklet ${a("common.version")}`,InputProps:{"data-cy":"blocklet-version",readOnly:O},autoComplete:"off",variant:"outlined",fullWidth:!0,value:c.blockletVersion,onChange:N=>{b({blockletVersion:""}),h({blockletVersion:N.target.value})},error:!!u.blockletVersion,helperText:u.blockletVersion||""}),l.jsx(G,{label:a("blocklet.publish.releaseNote"),autoComplete:"off",variant:"outlined",InputProps:{"data-cy":"release-note",readOnly:O,endAdornment:l.jsxs($e,{position:"end",children:[((ee=c==null?void 0:c.note)==null?void 0:ee.length)||0," / ",z.PROJECT.MAX_NOTE_LENGTH]})},fullWidth:!0,multiline:!0,minRows:4,required:!0,value:c.note,onChange:N=>{b({note:""}),h({note:N.target.value.slice(0,z.PROJECT.MAX_NOTE_LENGTH)})},error:!!u.note,helperText:u.note||"",sx:{mt:3}})]})]}),l.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[l.jsx(L,{variant:"h3",className:"left",children:a("blocklet.publish.imgTitle")}),l.jsxs(j,{sx:{flex:1},children:[l.jsxs(j,{display:"flex",children:[l.jsx(L,{variant:"subtitle1",sx:{mr:2},children:a("common.logo")}),l.jsx(j,{sx:{flex:1,cursor:O?"default":"pointer"},children:l.jsx(co,{variant:"square",sx:{width:80,height:80},alt:"Blocklet Logo",src:ae,onClick:()=>!O&&C.current.open()})})]}),l.jsxs(j,{display:"flex",mt:3,children:[l.jsx(L,{variant:"subtitle1",sx:{mr:2},children:a("common.screenshot")}),l.jsxs(j,{display:"flex",alignItems:"center",sx:{flex:1,flexWrap:"wrap"},children:[Y.map((N,A)=>l.jsxs(j,{className:"screenshot",children:[l.jsx("img",{alt:"screenshot",src:N}),!O&&l.jsx(Se,{className:"action",onClick:()=>{const R=[...c.blockletScreenshots];R.splice(A,1),h({blockletScreenshots:R})},children:l.jsx(eo,{})})]})),Y.length<5&&l.jsx(j,{sx:{width:200,height:140,background:"#eee",cursor:O?"default":"pointer",color:"#999",mb:2},display:"flex",justifyContent:"center",alignItems:"center",fontSize:40,onClick:()=>!O&&y.current.open(),children:"+"})]})]})]}),l.jsx(pt,{id:"uploader-logo",ref:C,popup:!0,onUploadFinish:N=>{h({blockletLogo:N.data.filename}),C.current.close()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:ce,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:dt,maxFileSize:ut,maxNumberOfFiles:1}}},"uploader-logo"),l.jsx(pt,{id:"uploader-screenshot",ref:y,popup:!0,onUploadFinish:N=>{var R;const A=c.blockletScreenshots||[];A.push((R=N.data)==null?void 0:R.filename),h({blockletScreenshots:A}),y.current.close()},plugins:["ImageEditor"],apiPathProps:{uploader:le,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:dt,maxFileSize:ut,maxNumberOfFiles:5-Y.length}}},"uploader-screenshot")]}),l.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[l.jsx(j,{className:"left",children:l.jsx(L,{variant:"h3",children:a("blocklet.publish.resourceTitle")})}),l.jsxs(j,{sx:{flex:1},children:[l.jsx(to,{tabs:B,current:ye,onChange:ue,sx:{ml:-2,mt:-1.5}}),l.jsx(j,{children:de})]})]}),T==="pack"&&l.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[l.jsx(j,{className:"left",children:l.jsx(L,{variant:"h3",children:a("common.components")})}),l.jsx(j,{sx:{flex:1},children:l.jsx(et,{disabled:m||O,app:p,value:c.blockletComponents,onChange:N=>{h({blockletComponents:N})}})})]})]})]})}tt.propTypes={};tt.defaultProps={};const jl=q.div`
|
|
135
|
+
`,dt=["image/*",".jpg",".jpeg",".png",".gif",".svg"],ut=1024*1024*10;var mt;const Pe=(mt=window.env)==null?void 0:mt.serverEndpoint,pt=x.lazy(()=>qt(()=>import("./react-9qdY2BUq.js").then(e=>e.r),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29])).then(e=>({default:e.Uploader}))),kl=(e,t,o)=>{const n=[];return e.blockletTitle||n.push({param:"blockletTitle",message:o("blocklet.publish.errorTip.noTitle")}),e.blockletVersion?Ie.valid(e.blockletVersion)||n.push({param:"blockletVersion",message:"Invalid Blocklet Version"}):n.push({param:"blockletVersion",message:o("blocklet.publish.errorTip.noVersion")}),t===z.PROJECT.RELEASE_STATUS.published&&(e.blockletDescription||n.push({param:"blockletDescription",message:o("blocklet.publish.errorTip.noDescription")}),e.note||n.push({param:"note",message:o("blocklet.publish.errorTip.noNote")})),n.length?n:null},yl=({tabs:e,blocklet:t,ancestors:o=[]})=>{const n=t.meta.did;e.push({label:l.jsxs(j,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[l.jsx(We,{size:24,blocklet:t,ancestors:o}),l.jsx(j,{ml:"4px",className:"text",children:l.jsx(j,{children:t.meta.title})})]},n),value:n})},ft=(e,t)=>{const o=Fe(e,["blockletVersion","blockletTitle","blockletDescription","blockletLogo","blockletIntroduction","blockletScreenshots","blockletComponents","note"]);return o.blockletScreenshots||(o.blockletScreenshots=[]),o.blockletComponents?o.blockletComponents=o.blockletComponents.map(n=>({...n,included:!0})):o.blockletComponents=(t.children||[]).map(n=>({did:n.meta.did,included:!0,required:!0})),o};function tt({...e}){var Ce,_,ee;const t=xt(),{projectId:o,releaseId:n,componentDid:d}=ge(),{t:a}=ne(),{blocklet:p}=xe(),[c,h]=Jt(null),[u,b]=x.useState({}),[m,g]=x.useState(!1),[r,s]=x.useState(!1),[i,f]=x.useState(null),{api:k}=be(),C=x.useRef(null),y=x.useRef(null),[T,E]=x.useState(),[S,R]=x.useState(),D=n==="create"?"":n,I=n==="create"?"create":"edit",B=[],H=((p==null?void 0:p.children)||[]).filter(N=>{var A;return(A=N.meta.resource)==null?void 0:A.exportApi}).filter(N=>!d||N.meta.did===d);H.forEach(N=>{yl({tabs:B,blocklet:N,t:a,ancestors:[p]})});const[ye,je]=x.useState((Ce=B[0])==null?void 0:Ce.value),te=(i==null?void 0:i.status)==="published",O=te,oe=({typeOnly:N}={})=>{k.getProject({input:{did:p.meta.did,projectId:o}}).then(A=>{g(!1);const v=A.project||{};if(N){E(v.type);return}v.blockletVersion?Ie.valid(v.blockletVersion)&&(v.blockletVersion=Ie.inc(v.blockletVersion,"patch")):v.blockletVersion="1.0.0",h(ft(v,p)),E(v.type)}).catch(A=>{g(!1),w.error(Ee(A))})},ie=()=>{k.getRelease({input:{did:p.meta.did,projectId:o,releaseId:D}}).then(N=>{g(!1),h(ft(N==null?void 0:N.release,p)),f(N==null?void 0:N.release)}).catch(N=>{g(!1),w.error(Ee(N))})},G=x.useCallback(()=>{if(I==="edit"){if(!D){w.error("Empty release id");return}ie(),oe({typeOnly:!0})}I==="create"&&oe()},[I,D]);x.useEffect(()=>{G()},[G]);const Y=N=>{const A=kl(c,N,a);if(A){w.error(A.map(M=>M.message).join("; ")),b(A.reduce((M,U)=>({...M,[U.param]:U.message}),{}));return}const v={...c};if(v.blockletVersion=Ie.valid(v.blockletVersion),!v.blockletVersion){w.error("Invalid Blocklet Version"),b({blockletVersion:"Invalid Blocklet Version"});return}v.blockletTitle=(v.blockletTitle||"").trim(),v.blockletDescription=(v.blockletDescription||"").trim(),v.blockletIntroduction=(v.blockletIntroduction||"").trim(),v.note=(v.note||"").trim(),T==="pack"?v.blockletComponents=(v.blockletComponents||[]).filter(M=>M.included).map(M=>Fe(M,["did","required"])).map(JSON.stringify):delete v.blockletComponents,s(N),g(!0),k.createRelease({input:{...v,did:p.meta.did,projectId:o,releaseId:D,status:N}}).then(M=>{var U;if(s(!1),g(!1),N==="draft"?w.success(a("blocklet.publish.saveDraftSuccess")):w.success(a("blocklet.publish.createReleaseSuccess")),I==="create"){const Bt=(U=M==null?void 0:M.release)==null?void 0:U.id;t(`../${o}/${Bt}`,{replace:!0})}else ie()}).catch(M=>{s(!1),g(!1);const U=Ee(M);w.error(U),/resource.*empty/.test(U)&&b({blockletResource:U})})};if(!c&&m)return l.jsx(ke,{});if(!c)return null;const ce=`${pe.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/logo/upload`,le=`${pe.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/screenshot/upload`,ae=c!=null&&c.blockletLogo?`${ce}/${c.blockletLogo}`:`${pe.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images/logo.png`,Q=((c==null?void 0:c.blockletScreenshots)||[]).filter(Boolean).map(N=>`${le}/${N}`),V=H.find(N=>N.meta.did===ye),de=V?l.jsx(j,{children:l.jsx(Ze,{error:u.blockletResource,app:p,component:V,projectId:o,release:{...i,id:D},onSave:N=>{N.length&&b({blockletResource:""})}})}):l.jsx(j,{display:"flex",mt:-3,children:l.jsx(Ut,{children:a("common.empty")})}),ue=N=>{je(N)};let Z=null;if(te&&Pe){const N=me(Pe,`/api/project/${p.meta.did}/${o}/${D}/release/blocklet.json`);if(T==="pack"){const A=new URL(Pe);A.pathname=me(A.pathname,"/launch-blocklet/agreement"),A.searchParams.set("blocklet_meta_url",N),Z=l.jsx(F,{variant:"outlined",style:{marginRight:8},children:l.jsx("a",{href:A.href,target:"_blank",rel:"noreferrer",children:a("common.install")})})}else Z=l.jsxs(l.Fragment,{children:[l.jsx(F,{variant:"outlined",style:{marginRight:8},onClick:()=>R(N),children:a("common.install")}),l.jsx(Kt,{fullWidth:!0,maxWidth:"sm",open:S,onClose:()=>R(""),children:l.jsxs(j,{sx:{py:5,px:4,wordBreak:"break-all"},children:[l.jsx(L,{variant:"h6",sx:{mb:2},children:a("blocklet.publish.installResourceTip")}),l.jsx(lo,{children:S}),l.jsxs(L,{sx:{mt:2},children:[a("blocklet.publish.installResourceTip2"),l.jsx("a",{style:{marginLeft:4},href:"https://www.arcblock.io/docs/blocklet-developer/R3weqCy7WPI8ggudt0C2alWv",target:"_blank",rel:"noreferrer",children:a("blocklet.publish.installResourceHelp")})]})]})})]})}return l.jsxs(jl,{...e,children:[l.jsxs(j,{className:"sticky-header",children:[l.jsxs(Ke,{className:"breadcrumbs","aria-label":"breadcrumb",children:[l.jsx(W,{to:"../",children:a("common.publish")}),l.jsx(W,{to:`../${o}`,children:(c==null?void 0:c.blockletTitle)||"Blocklet"}),l.jsx(L,{color:"text.primary",children:I==="create"?a("common.create"):(c==null?void 0:c.blockletVersion)||a("common.edit")})]}),l.jsxs(j,{display:"flex",children:[!te&&l.jsxs(l.Fragment,{children:[l.jsxs(F,{variant:"outlined",disabled:m||r,onClick:()=>Y(z.PROJECT.RELEASE_STATUS.draft),style:{marginRight:12},children:[r===z.PROJECT.RELEASE_STATUS.draft&&l.jsx(we,{size:14,sx:{mr:.5}}),a("blocklet.publish.saveDraft")]}),l.jsxs(F,{variant:"contained",disabled:m||r,onClick:()=>Y(z.PROJECT.RELEASE_STATUS.published),children:[r===z.PROJECT.RELEASE_STATUS.published&&l.jsx(we,{size:14,sx:{mr:.5},color:"inherit"}),a("common.release")]})]}),te&&l.jsxs(l.Fragment,{children:[Z,l.jsx(F,{variant:"contained",children:l.jsx("a",{href:me(`${pe.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/${D}/download/${(i.files||[])[0]}`),children:a("common.download")})})]})]})]}),l.jsxs(j,{children:[T==="pack"&&l.jsx(oo,{type:"info",style:{width:"100%"},children:a("blocklet.publish.packTip")}),l.jsx(j,{pt:3}),l.jsxs(j,{display:"flex",className:"section",children:[l.jsx(L,{variant:"h3",className:"left",children:a("blocklet.publish.productTitle")}),l.jsxs(j,{sx:{flex:1},children:[l.jsx(X,{label:`Blocklet ${a("common.title")}`,placeholder:`Blocklet ${a("common.title")}`,InputProps:{"data-cy":"blocklet-title",readOnly:O},autoComplete:"off",variant:"outlined",fullWidth:!0,required:!0,value:c.blockletTitle||"",onChange:N=>{b({blockletTitle:""}),h({blockletTitle:N.target.value})},error:!!u.blockletTitle,helperText:u.blockletTitle||""}),l.jsx(X,{label:`Blocklet ${a("common.description")}`,placeholder:`Blocklet ${a("common.description")}`,InputProps:{"data-cy":"blocklet-description",readOnly:O},required:!0,autoComplete:"off",variant:"outlined",fullWidth:!0,value:c.blockletDescription||"",onChange:N=>{b({blockletDescription:""}),h({blockletDescription:N.target.value})},error:!!u.blockletDescription,helperText:u.blockletDescription||"",sx:{mt:3}}),l.jsx(X,{label:`Blocklet ${a("common.introduction")}`,placeholder:`Blocklet ${a("common.introduction")}`,InputProps:{"data-cy":"export-blocklet-introduction",readOnly:O,endAdornment:l.jsxs($e,{position:"end",children:[((_=c==null?void 0:c.blockletIntroduction)==null?void 0:_.length)||0," / ",z.PROJECT.MAX_INTRO_LENGTH]})},autoComplete:"off",variant:"outlined",fullWidth:!0,multiline:!0,minRows:4,value:c.blockletIntroduction||"",onChange:N=>{b({blockletIntroduction:""}),h({blockletIntroduction:N.target.value.slice(0,z.PROJECT.MAX_INTRO_LENGTH)})},error:!!u.blockletIntroduction,helperText:u.blockletIntroduction||"",sx:{mt:3}})]})]}),l.jsxs(j,{display:"flex",mt:3,className:"section",children:[l.jsx(L,{variant:"h3",className:"left",children:a("blocklet.publish.versionTitle")}),l.jsxs(j,{sx:{flex:1},children:[l.jsx(X,{required:!0,label:`Blocklet ${a("common.version")}`,placeholder:`Blocklet ${a("common.version")}`,InputProps:{"data-cy":"blocklet-version",readOnly:O},autoComplete:"off",variant:"outlined",fullWidth:!0,value:c.blockletVersion,onChange:N=>{b({blockletVersion:""}),h({blockletVersion:N.target.value})},error:!!u.blockletVersion,helperText:u.blockletVersion||""}),l.jsx(X,{label:a("blocklet.publish.releaseNote"),autoComplete:"off",variant:"outlined",InputProps:{"data-cy":"release-note",readOnly:O,endAdornment:l.jsxs($e,{position:"end",children:[((ee=c==null?void 0:c.note)==null?void 0:ee.length)||0," / ",z.PROJECT.MAX_NOTE_LENGTH]})},fullWidth:!0,multiline:!0,minRows:4,required:!0,value:c.note,onChange:N=>{b({note:""}),h({note:N.target.value.slice(0,z.PROJECT.MAX_NOTE_LENGTH)})},error:!!u.note,helperText:u.note||"",sx:{mt:3}})]})]}),l.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[l.jsx(L,{variant:"h3",className:"left",children:a("blocklet.publish.imgTitle")}),l.jsxs(j,{sx:{flex:1},children:[l.jsxs(j,{display:"flex",children:[l.jsx(L,{variant:"subtitle1",sx:{mr:2},children:a("common.logo")}),l.jsx(j,{sx:{flex:1,cursor:O?"default":"pointer"},children:l.jsx(co,{variant:"square",sx:{width:80,height:80},alt:"Blocklet Logo",src:ae,onClick:()=>!O&&C.current.open()})})]}),l.jsxs(j,{display:"flex",mt:3,children:[l.jsx(L,{variant:"subtitle1",sx:{mr:2},children:a("common.screenshot")}),l.jsxs(j,{display:"flex",alignItems:"center",sx:{flex:1,flexWrap:"wrap"},children:[Q.map((N,A)=>l.jsxs(j,{className:"screenshot",children:[l.jsx("img",{alt:"screenshot",src:N}),!O&&l.jsx(Se,{className:"action",onClick:()=>{const v=[...c.blockletScreenshots];v.splice(A,1),h({blockletScreenshots:v})},children:l.jsx(eo,{})})]})),Q.length<5&&l.jsx(j,{sx:{width:200,height:140,background:"#eee",cursor:O?"default":"pointer",color:"#999",mb:2},display:"flex",justifyContent:"center",alignItems:"center",fontSize:40,onClick:()=>!O&&y.current.open(),children:"+"})]})]})]}),l.jsx(pt,{id:"uploader-logo",ref:C,popup:!0,onUploadFinish:N=>{h({blockletLogo:N.data.filename}),C.current.close()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:ce,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:dt,maxFileSize:ut,maxNumberOfFiles:1}}},"uploader-logo"),l.jsx(pt,{id:"uploader-screenshot",ref:y,popup:!0,onUploadFinish:N=>{var v;const A=c.blockletScreenshots||[];A.push((v=N.data)==null?void 0:v.filename),h({blockletScreenshots:A}),y.current.close()},plugins:["ImageEditor"],apiPathProps:{uploader:le,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:dt,maxFileSize:ut,maxNumberOfFiles:5-Q.length}}},"uploader-screenshot")]}),l.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[l.jsx(j,{className:"left",children:l.jsx(L,{variant:"h3",children:a("blocklet.publish.resourceTitle")})}),l.jsxs(j,{sx:{flex:1},children:[l.jsx(to,{tabs:B,current:ye,onChange:ue,sx:{ml:-2,mt:-1.5}}),l.jsx(j,{children:de})]})]}),T==="pack"&&l.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[l.jsx(j,{className:"left",children:l.jsx(L,{variant:"h3",children:a("common.components")})}),l.jsx(j,{sx:{flex:1},children:l.jsx(et,{disabled:m||O,app:p,value:c.blockletComponents,onChange:N=>{h({blockletComponents:N})}})})]})]})]})}tt.propTypes={};tt.defaultProps={};const jl=q.div`
|
|
136
136
|
.sticky-header {
|
|
137
137
|
margin-top: -12px;
|
|
138
138
|
padding: 12px 0;
|
|
@@ -212,14 +212,14 @@ import{ai as At,j as l,ax as K,ci as _t,aA as $,e2 as ot,az as se,av as _e,aw as
|
|
|
212
212
|
}
|
|
213
213
|
font-size: 0.8rem;
|
|
214
214
|
}
|
|
215
|
-
`;function Dt({padding:e}){const{blocklet:t}=xe(),o=Ht(),{componentDid:n}=ge();if(x.useEffect(()=>{if(n&&window.parent){const a=`${o.pathname}${o.search}`;window.parent.postMessage({event:"popstate",page:"publish",componentDid:n,path:a},"*")}},[n,o]),!t)return null;const d={};return e&&(d.padding=e),l.jsx(Cl,{style:d,children:l.jsxs(
|
|
215
|
+
`;function Dt({padding:e}){const{blocklet:t}=xe(),o=Ht(),{componentDid:n}=ge();if(x.useEffect(()=>{if(n&&window.parent){const a=`${o.pathname}${o.search}`;window.parent.postMessage({event:"popstate",page:"publish",componentDid:n,path:a},"*")}},[n,o]),!t)return null;const d={};return e&&(d.padding=e),l.jsx(Cl,{style:d,children:l.jsxs(Gt,{children:[l.jsx(Te,{path:"/",element:l.jsx(Tt,{})}),l.jsx(Te,{path:"/create",element:l.jsx(qe,{})}),l.jsx(Te,{path:"/:projectId",element:l.jsx(It,{})}),l.jsx(Te,{path:"/:projectId/:releaseId",element:l.jsx(tt,{})})]})})}Dt.propTypes={padding:P.oneOfType([P.string,P.number])};Dt.defaultProps={padding:""};const Cl=q(j)`
|
|
216
216
|
a {
|
|
217
217
|
color: ${({theme:e})=>e.palette.primary.main};
|
|
218
218
|
}
|
|
219
219
|
`;export{Dt as default};
|
|
220
220
|
function __vite__mapDeps(indexes) {
|
|
221
221
|
if (!__vite__mapDeps.viteFileDeps) {
|
|
222
|
-
__vite__mapDeps.viteFileDeps = ["assets/react-
|
|
222
|
+
__vite__mapDeps.viteFileDeps = ["assets/react-9qdY2BUq.js","assets/index-o710KUFS.js","assets/index-TCTrVMXW.css","assets/index-ZiUiRdOB.js","assets/preact.module-lMgcnEc-.js","assets/index-oxQd4nva.js","assets/index-bXBQKCg5.js","assets/toUpper-CIY0cVrY.js","assets/index-YVfYKQPA.js","assets/fallback-IjAJjezW.js","assets/index-OUA4hTDF.js","assets/Toolbar-doxZSzMe.js","assets/Hidden-gMCEevUV.js","assets/MoreHoriz-wD31dy4A.js","assets/ExpandMore-byZ1bCvM.js","assets/index-yvk_oh1_.js","assets/ListItem-22rMJzrR.js","assets/selector-xIZpkZZH.js","assets/Avatar-fSw3xwrG.js","assets/useSlot-Q68JwoxM.js","assets/index-hh07q2GE.js","assets/RevokeIcon-Y9PaByDx.js","assets/index-fjKBcmH5.js","assets/CloseOutlined-9i0XEqO_.js","assets/index-IpFMsnoW.js","assets/index-rqKNtf3z.js","assets/FormControlLabel-L3cnXbG5.js","assets/useFormControl-FTiWn0ol.js","assets/uniqBy-WQM1t37b.js","assets/react-i1f7jPtW.css"]
|
|
223
223
|
}
|
|
224
224
|
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
225
225
|
}
|