@abtnode/blocklet-services 1.16.37-beta-20250107-235521-f1778ec0 → 1.16.37-beta-20250108-010153-e4bcd256
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/dist/assets/Add-WwBlcqNF.js +1 -0
- package/dist/assets/{ArrowDropDown-BPjEGMbu.js → ArrowDropDown-B6VSNrNX.js} +1 -1
- package/dist/assets/{CheckCircle-B4plT5R4.js → CheckCircle-n23HoB1l.js} +1 -1
- package/dist/assets/{ChevronLeft-B9PQ366h.js → ChevronLeft-DV-sPxhr.js} +1 -1
- package/dist/assets/{ChevronRight-D6hU6q5w.js → ChevronRight-UF0hSKpL.js} +1 -1
- package/dist/assets/{DeleteOutline-CW6vHyu2.js → DeleteOutline-1Utxk_IX.js} +1 -1
- package/dist/assets/{Done-CbA_lc17.js → Done-BbnQSLvu.js} +1 -1
- package/dist/assets/{Download-D114STME.js → Download-DRJvwpLt.js} +1 -1
- package/dist/assets/{Error-CspIR8wP.js → Error-CL8m4Xu6.js} +1 -1
- package/dist/assets/{Google-Bzqa7SGD.js → Google-CSKRQW0F.js} +1 -1
- package/dist/assets/{InfoOutlined-CQX14YIV.js → InfoOutlined-7hC78o3_.js} +1 -1
- package/dist/assets/{Launch-C1MUjdbY.js → Launch-D9iyATKb.js} +1 -1
- package/dist/assets/{LaunchOutlined-CeuwA75K.js → LaunchOutlined-D37WOXmf.js} +1 -1
- package/dist/assets/{Loop-CRiiMs26.js → Loop-Clmz6DRv.js} +1 -1
- package/dist/assets/{MoreHoriz-CyRd8YYN.js → MoreHoriz-CtnQ7uqf.js} +1 -1
- package/dist/assets/{PlayArrow-CpIW2rO1.js → PlayArrow-IJdeSlbo.js} +1 -1
- package/dist/assets/{ViewList-VFshTvAg.js → ViewList-B-HVv7GT.js} +1 -1
- package/dist/assets/_createAggregator-BgG70oKG.js +1 -0
- package/dist/assets/{access-control-CaDZstFX.js → access-control-BP0rhxZ_.js} +1 -1
- package/dist/assets/{actions-BQfRapcY.js → actions-DsY16tuf.js} +1 -1
- package/dist/assets/{add-component-core-B6O0kJAO.js → add-component-core-C8hvHJq0.js} +4 -4
- package/dist/assets/{add-resource-DVAwgArl.js → add-resource-DZFTdNIy.js} +1 -1
- package/dist/assets/{addon-B934EFnq.js → addon-DUnQ9eC0.js} +1 -1
- package/dist/assets/{analytics-DxPeznyU.js → analytics-Cym7YiQM.js} +3 -3
- package/dist/assets/{audit-logs-Cw_LCWlO.js → audit-logs-DtJdynVz.js} +2 -2
- package/dist/assets/base32-DZ5GWnEl.js +1 -0
- package/dist/assets/{branding-CVf-84lW.js → branding-DEKXfpdd.js} +2 -2
- package/dist/assets/{bundle-avatar-CZnIDw9E.js → bundle-avatar-CtN88KlG.js} +1 -1
- package/dist/assets/button-CPeDg26t.js +1 -0
- package/dist/assets/{click-to-copy-DPKm1p6d.js → click-to-copy-D-rDpTU1.js} +1 -1
- package/dist/assets/{complete-Bf8ALY2S.js → complete-DfhluUOU.js} +1 -1
- package/dist/assets/{component-ChxoGFx9.js → component-DET9TWBv.js} +1 -1
- package/dist/assets/{config-BUjuVbbC.js → config-Bh1NLHps.js} +1 -1
- package/dist/assets/{config-D3mUi5yh.js → config-Dx3rVqe3.js} +2 -2
- package/dist/assets/{config-navigation-Bjlh79gM.js → config-navigation-Cn0fwBBG.js} +3 -3
- package/dist/assets/{config-space-B_9C2jTG.js → config-space-CT9a0s7Q.js} +1 -1
- package/dist/assets/{confirm-CVFWPron.js → confirm-DhCXP8vW.js} +1 -1
- package/dist/assets/connect-CA2-olTo.js +5 -0
- package/dist/assets/connect-GHQ2pLWc.js +1 -0
- package/dist/assets/connect-to-kYFiSkqc.js +1 -0
- package/dist/assets/{dashboard-Dff3slpj.js → dashboard-B3UhGh-u.js} +7 -7
- package/dist/assets/{did-address-DqD0tKOY.js → did-address-B-umhomj.js} +1 -1
- package/dist/assets/domain-DzFcoe7i.js +9 -0
- package/dist/assets/{domain-list-jO4zHESZ.js → domain-list-C9eJrdcx.js} +2 -2
- package/dist/assets/email-BEr-8TYu.js +18 -0
- package/dist/assets/{exchange-passport-BMjrpZst.js → exchange-passport-DGUT_ZCy.js} +1 -1
- package/dist/assets/{form-text-input-ClGC4JKP.js → form-text-input-E0Z0s35O.js} +2 -2
- package/dist/assets/{fuel-2t6oVtfW.js → fuel-alylOU0b.js} +1 -1
- package/dist/assets/{fullpage-BiUo6gQd.js → fullpage-DZPI7F_L.js} +1 -1
- package/dist/assets/{get-safe-url-BtfNFuK0.js → get-safe-url-ByH0hntp.js} +1 -1
- package/dist/assets/{get-safe-url-CV9wUymi.js → get-safe-url-yHkHYeNB.js} +1 -1
- package/dist/assets/{home-BpXMOH1X.js → home-DG81Vlwd.js} +1 -1
- package/dist/assets/{iframe-03f6PMsP.js → iframe-BB-pL0gd.js} +1 -1
- package/dist/assets/{index-C89HTHWf.js → index-B-0OFwWF.js} +1 -1
- package/dist/assets/{index-DOWnRwIi.js → index-B8B9jSby.js} +7 -7
- package/dist/assets/{index-BvpWi6M_.js → index-BaA1-UNL.js} +1 -1
- package/dist/assets/{index-D3rhPCZn.js → index-CU_Y2Ics.js} +41 -41
- package/dist/assets/{index-XlyOkzy1.js → index-CYh2QqLk.js} +1 -1
- package/dist/assets/{index-1yj7N3BD.js → index-CxWy6IEg.js} +1 -1
- package/dist/assets/{index-BgE0mEyw.js → index-DHmJ4NAw.js} +8 -8
- package/dist/assets/{index-DQR2LIPC.js → index-DNd_40WG.js} +2 -2
- package/dist/assets/{index-kGLQpRJK.js → index-DjDooCTg.js} +14 -14
- package/dist/assets/{index-DPyw3Xwp.js → index-Dk8-Ibsd.js} +1 -1
- package/dist/assets/{index-CTEk7-E8.js → index-SrY9WLdy.js} +1 -1
- package/dist/assets/{index-BqtzbaK6.js → index-e4kRKwa5.js} +1 -1
- package/dist/assets/index-jViTGvBx.js +5 -0
- package/dist/assets/{index-ChdU5l0G.js → index-tDqjC_e2.js} +38 -38
- package/dist/assets/{invitation-C8ZNSJG7.js → invitation-BNOVM03D.js} +7 -7
- package/dist/assets/invite-CDXZxcmB.js +5 -0
- package/dist/assets/{issue-passport-CIaz_hk6.js → issue-passport-1v1d15DW.js} +1 -1
- package/dist/assets/{item-wwVikGMU.js → item-DoetJFaA.js} +1 -1
- package/dist/assets/{layout-DBXEc_NJ.js → layout-PlCf3Rtw.js} +1 -1
- package/dist/assets/{list-header-BA3DiTcf.js → list-header-DdT6PG1D.js} +1 -1
- package/dist/assets/localization-Cm0dNj2B.js +1 -0
- package/dist/assets/{log-Dc1jxENK.js → log-B5iPDWZ_.js} +1 -1
- package/dist/assets/login-DvM79Mfd.js +1 -0
- package/dist/assets/{login-oauth-callback-nhEQq-XX.js → login-oauth-callback-CO19RzCL.js} +1 -1
- package/dist/assets/{logo-uploader-yBugHtcG.js → logo-uploader-CNnYMPxh.js} +3 -3
- package/dist/assets/{lost-passport-DAsg20NY.js → lost-passport-DsG6aS5u.js} +2 -2
- package/dist/assets/{open-window-CVrMznBr.js → open-window-Km_9DMrz.js} +1 -1
- package/dist/assets/{overview-Dc2oVKWy.js → overview-Dc_26DuW.js} +1 -1
- package/dist/assets/{page-header-Htib6ejn.js → page-header-B3m4UCOV.js} +1 -1
- package/dist/assets/{permission-Bz0PVI3J.js → permission-C7OYX2OJ.js} +1 -1
- package/dist/assets/{preferences-BVtsOmzg.js → preferences-Ci4dS6YC.js} +1 -1
- package/dist/assets/publish-resource-BumbS1yx.js +1 -0
- package/dist/assets/{react-beautiful-dnd.esm-BPPmOpgZ.js → react-beautiful-dnd.esm-D6d5Zfr8.js} +4 -4
- package/dist/assets/{relative-time-D13g3uDZ.js → relative-time-BHAJs1ji.js} +1 -1
- package/dist/assets/sdk-0UwYHc-i.js +1 -0
- package/dist/assets/session-UImnJahL.js +1 -0
- package/dist/assets/{setup-B2Eq0dKO.js → setup-LHpIYQbe.js} +3 -3
- package/dist/assets/{start-DcyUXnHe.js → start-DxAs4dHz.js} +1 -1
- package/dist/assets/{step-actions-BdC024Vn.js → step-actions-FdD-71wr.js} +1 -1
- package/dist/assets/{studio-BSlFbK1F.js → studio-g2uaz9WG.js} +1 -1
- package/dist/assets/{switch-control-DOeNAipI.js → switch-control-BMO1MVhi.js} +1 -1
- package/dist/assets/{toUpper-CPtwa1LG.js → toUpper-DUImrX4s.js} +1 -1
- package/dist/assets/{transfer-l-kgY192.js → transfer-Bq5kjW_S.js} +1 -1
- package/dist/assets/{unsubscribe-Bn1ZPibc.js → unsubscribe-DUmfJRPR.js} +1 -1
- package/dist/assets/{useAsync-Barwm_ml.js → useAsync-BfmmMB4I.js} +1 -1
- package/dist/assets/{useAsyncRetry-Ct0h3JKq.js → useAsyncRetry-m5oMMmVh.js} +1 -1
- package/dist/assets/{useLocalStorage-Bkgi6BS3.js → useLocalStorage-ganqTrK6.js} +1 -1
- package/dist/assets/user-center-CYnDNkIf.js +202 -0
- package/dist/assets/{util-Cd3QOWLR.js → util-CmcVraD_.js} +1 -1
- package/dist/assets/{vendor-arcblock-oreSqNjg.js → vendor-arcblock-Dn16DH88.js} +209 -206
- package/dist/assets/{vendor-hooks-DHHsWSqV.js → vendor-hooks-DzETutIU.js} +1 -1
- package/dist/assets/{wrap-locale-Dajt8i2A.js → wrap-locale-DTO386nY.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/service-worker.js +1 -1
- package/package.json +39 -39
- package/dist/assets/Add-XINWD-cR.js +0 -1
- package/dist/assets/_createAggregator-sgAa2ai2.js +0 -1
- package/dist/assets/base32-CdGlYCm2.js +0 -1
- package/dist/assets/button-DSj-WxvW.js +0 -1
- package/dist/assets/connect-Bw02nhZ6.js +0 -5
- package/dist/assets/connect-to-DL42-aQK.js +0 -1
- package/dist/assets/connect-whKFDq3K.js +0 -1
- package/dist/assets/domain-CI3XUHBW.js +0 -9
- package/dist/assets/email-DZG9lqBd.js +0 -18
- package/dist/assets/index-qpaXqEVJ.js +0 -5
- package/dist/assets/invite-wHYq3NmE.js +0 -5
- package/dist/assets/localization-DHa_wuSk.js +0 -1
- package/dist/assets/login-BSMkjZ2F.js +0 -1
- package/dist/assets/publish-resource-6mtBRA7-.js +0 -1
- package/dist/assets/sdk-BU36VFtK.js +0 -1
- package/dist/assets/session-6sDuFWud.js +0 -1
- package/dist/assets/user-center-tko9eOwU.js +0 -202
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as B}from"./vendor-react-D-afvo_7.js";import{g as x,bo as R,z as m,bp as J,v as O,bq as F,br as M}from"./vendor-arcblock-Dn16DH88.js";import{j as e,a3 as g,T as u,E as r,I as D,aw as Z}from"./vendor-mui-core-COxJgW9_.js";import"./vendor-hooks-DzETutIU.js";import{u as Q}from"./config-space-CT9a0s7Q.js";import{f as j,h as T,B as k,y as L,$ as w,ab as V}from"./index-tDqjC_e2.js";import{d as H}from"./DeleteOutline-1Utxk_IX.js";import{f as y}from"./format-error-C0Ke3VXF.js";import{a as G,j as N}from"./vendor-utils-CV7RLr7b.js";import"./api-C7qcY4XU.js";var S=function(c){return e.jsxs("svg",{...c,children:[e.jsxs("g",{filter:"url(#a)",children:[e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#DDD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m49.192 6.222-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222Zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97Z",fill:"#000",fillOpacity:".08"}),e.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#D9D9D9"})}),e.jsxs("g",{mask:"url(#b)",children:[e.jsx("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),e.jsx("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),e.jsx("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699Zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm11.546-10.102V169h-1.756v-11.636h1.756ZM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699Zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693Zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08Zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591Zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21Zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319Zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381Zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29Z",fill:"#fff"}),e.jsx("path",{d:"M117.604 47.263 121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847Z",fill:"url(#e)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047Z",fill:"url(#f)"}),e.jsxs("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[e.jsx("path",{d:"m50.928 216.089 1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737Zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072Zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266Zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189Zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384Zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911Zm2.439.564h-1.13v1.193h1.13v-1.193Zm-1.13 2.983h1.13v1.193h-1.13v-1.193Z",fillOpacity:".8"}),e.jsx("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762ZM36.355 214h-1.011v7.783h1.01V214Zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75ZM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894Zm6.946 1.803h1.13v1.193h-1.13v-1.193Zm1.13 2.983h-1.13v1.193h1.13v-1.193Zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751Z"})]}),e.jsx("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),e.jsx("path",{d:"m192.064 213.333.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46Z",fill:"#fff"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26Z",fill:"#fff"})]})]}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#101010"}),e.jsx("stop",{offset:"1",stopColor:"#272727"})]}),e.jsxs("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff",stopOpacity:".4"}),e.jsx("stop",{offset:"1",stopColor:"#fff"})]}),e.jsxs("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),e.jsxs("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[e.jsx("stop",{stopColor:"#016BED"}),e.jsx("stop",{offset:".699",stopColor:"#4498FB"}),e.jsx("stop",{offset:"1",stopColor:"#9DFFE8"})]}),e.jsx("clipPath",{id:"g",children:e.jsx("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),e.jsx("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:e.jsx("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),e.jsxs("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feOffset",{dy:"2"}),e.jsx("feGaussianBlur",{stdDeviation:"2"}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),e.jsx("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9DObSBouqN9cidZyusonzWtGJO13phLebEn6xKEnlYyXe5hnySc53Ym9Abn7crTse8r7BMeIB8yBOVZK0trMjxT5S/cgc9G63BQqZoF3xSYZYeRk2hoIvEBFA7XMtaaF8TdY1GjiDDqgEswRDlWnRtmYzl5zRUq3sx3I+JL7sBJKXchDGJY9D+SfHAIoA+TuHCyYYYFjkhNB8tO5hhju0ANjdCITLx4/JDL+yyP0ErZR+m3M322bY8OKHzoOcAXLQMBHiIh+X59pv6udCJ7MAV9HARPtTEuFSdAzNVn7uPmkk3TpBGHb8DJZ3p36ScsuJVFQP6CUBXimN3BABZJUiEwBOMsHUisZiXU8k3bVSTrPcHsKEEg8gV/vP7U26vRWhl2UnfEbX3VlVbRHgSwmcy2tWTjsxmIb4YjgbAkmpyEOINs1gCtSC4YsjwnY9l1MJYRz1NMk5NAC3MffnLwiHnNH7IoyER5VEI6S4Um++uKyho0B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2AwZUXHswFw0IhIUlwmaTdQtlKJUpbAArh1IONYy6WQkAc9+ZocJMnELtCFNKLySGLwUIuW1fJLBKOoydII6+sDlhy8xYI1vchhF6qZnM0/oZSUzcd5By2cDzUtH3ng8PHIzAKL25wuSv+gDBsggYWWkvLT27f2dhwRULpny5D5yKI7vD/4iAW9KWHB7JsEZeCE1E/mdgVHZTOci8X+YIanJt7+aBd2k8f2RL45Z2puefelcXjUWbKdMSYwr58dAPaHymSU0o9/zjFt7/VoGmNAwCyvrKe2L1hYJqtd5gh6FGiCAGzqFk6on9pQdSAQzkctDTtXGbDih5iRPVIk9TwCJGwP3tpATkHsNwloUilnNMFce7twgDgrgWhsE8jWW+EBLlTDMn9pmtJOefTJc6Cxld039TN4XiwL4pMtU+8tXJ4g/LghG5APdF7/e3FSi4v8vnEBiIEm+5LlZtsk2LbbbY5hN9JkkJkd5BjQFPoUcwjJdTm0mx0024NmOvVgxASvU9TonFxUqG8cUTy3m5s3i7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]})};S.defaultProps={width:"228",height:"258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function b(){const{t}=x();return e.jsx(g,{children:e.jsxs(g,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(S,{style:{width:250,height:250}}),e.jsx(u,{marginTop:"24px",children:t("storage.spaces.connect.providerForStorage")})]})})}b.propTypes={};function C({spaceGateway:t,onDeleteSpace:c}){const{t:o}=x(),[l,i]=B.useState(!1),[a,p]=B.useState(!1),d=(s,h)=>{s==null||s.stopPropagation(),i(h)},f=async s=>{try{s==null||s.stopPropagation(),p(!0),await c(t),i(!1)}catch(h){console.error(h),m.error(`${o("storage.spaces.gateway.delete.failed")}: ${y(h)}`)}finally{p(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(D,{size:"small",onClick:s=>d(s,!0),children:e.jsx(H,{})}),e.jsx(R,{title:o("storage.spaces.gateway.delete.title"),open:l,confirmButton:{text:o("common.confirm"),props:{size:"small",variant:"contained",color:"error",loading:a}},cancelButton:{text:o("common.cancel"),props:{size:"small",variant:"outlined"}},onConfirm:f,onCancel:s=>d(s,!1),children:e.jsx(u,{sx:{wordWrap:"break-word"},children:o("storage.spaces.gateway.delete.descForStorage",{name:`${t==null?void 0:t.name}`})})})]})}C.propTypes={onDeleteSpace:r.func,spaceGateway:r.shape({name:r.string.isRequired,url:r.string.isRequired,protected:r.bool}).isRequired};C.defaultProps={onDeleteSpace:()=>{}};function v({spaceGateway:t,onDisconnect:c}){const{t:o}=x(),l=async()=>{try{await c(),m.success(o("storage.spaces.gateway.delete.succeeded",{name:t.name}))}catch(i){console.error(i),m.error(y(i))}};return e.jsx(C,{spaceGateway:t,onDeleteSpace:l})}v.propTypes={spaceGateway:r.shape({did:r.string.isRequired,name:r.string.isRequired,url:r.string.isRequired,endpoint:r.string.isRequired}).isRequired,onDisconnect:r.func};v.defaultProps={onDisconnect:()=>{}};function s1(){const{t}=x(),{spaceGateway:c,settingStorageEndpoint:o}=Q();return e.jsxs(g,{display:"flex",flexDirection:"column",children:[e.jsx(g,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",children:e.jsx(u,{fontSize:"1rem",fontWeight:"bold",children:t("storage.spaces.connected.title")})}),e.jsx(g,{children:e.jsx(J,{sx:{marginTop:2},endpoint:c.endpoint,selected:!0,action:l=>e.jsx(v,{...l,onDisconnect:()=>o(null)})})})]})}function X({blocklet:t}){var f,s,h;if(O(t))return{};const{appDid:c}=t,o=j.getAppName(t),l=j.getAppDescription(t),i=(h=(s=(f=t==null?void 0:t.site)==null?void 0:f.domainAliases)==null?void 0:s.sort((n,A)=>n.accessibility.accessible&&A.accessibility.accessible?+n.isProtected-+A.isProtected:+A.accessibility.accessible-+n.accessibility.accessible))==null?void 0:h.map(n=>{var I;const A=(I=n==null?void 0:n.domainStatus)!=null&&I.isHttps?"https://":"http://",E=n==null?void 0:n.value;return`${A}${E}`}).filter(Boolean),a=i==null?void 0:i[0],p=T.DID_SPACES.AUTHORIZE.DEFAULT_SCOPE,d=window.location.href;return{appDid:c,appName:o,appDescription:l,appUrl:a,scopes:p,referrer:d,isReady:!!a}}function U({onConnect:t,...c}){const{blocklet:o}=k(),{info:l}=L(),{t:i}=x(),a=X({blocklet:o}),p=w(l),d={checkFn:G.create({baseURL:N(window.location.origin,V())}).get,webWalletUrl:p,extraParams:{appPid:o.appPid,appDid:a.appDid,appName:a.appName,appDescription:a.appDescription,appUrl:a.appUrl,referrer:a.referrer,scopes:a.scopes,nodeDid:l.did}},f=async(s,h)=>{try{const n=M(s,h);await t(n),m.success(i("storage.spaces.connectedWithName",{name:n.name}))}catch(n){console.error(n),m.error(y(n))}};return e.jsx(F,{...c,options:d,onSuccess:f})}U.propTypes={onConnect:Z.func};U.defaultProps={onConnect:()=>{}};export{s1 as C,b as D,U as a,X as u};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/overview-
|
|
2
|
-
import{y as Ne,f as k,h as Z,z as qe,A as Er,b as Ir,B as Lr,C as Tr,D as hn,E as le,F as mn,G as Pr,o as ye,H as Dr,I as Rr,k as Ft,g as Ar,j as Or,m as zt,l as Mr,n as $r,J as De,e as Le,K as kr,_ as K,L as Ht,N as Br,c as Vt}from"./index-ChdU5l0G.js";import{a1 as N,j as a,E as _,aa as lt,I as gn,ak as Nr,ad as vn,ah as Ur,al as Fr,bp as zr,a2 as ee,bq as Hr,aR as Vr,T as ue,bx as qr,aN as qt,by as Kt,a3 as R,a4 as Xe,bz as yn,bA as xn,bB as bn,aQ as Sn,t as Ue,A as oe,aj as wn,aK as Kr}from"./vendor-mui-core-COxJgW9_.js";import{ah as U,as as Wr,aj as jn,at as Gr,ak as ut,d as M,ae as Wt,z as q,g as J,af as Qr,au as Xr,av as Zr,aw as Jr,ax as Yr,ay as eo,az as to,aA as no,aB as ro,q as oo,aC as so,aD as io,aE as ao,aF as co,aG as lo,C as Oe,aH as uo,aa as fo,aI as po,aJ as ho,W as mo,aK as go}from"./vendor-arcblock-oreSqNjg.js";import{r as x,L as _n,g as vo,f as yo,k as xo,l as bo}from"./vendor-react-D-afvo_7.js";import{_ as Gt}from"./useLocalStorage-Bkgi6BS3.js";import{C as Qt}from"./confirm-CVFWPron.js";import{d as So}from"./PlayArrow-CpIW2rO1.js";import{j as Cn}from"./vendor-utils-CV7RLr7b.js";import{g as Xt}from"./get-safe-url-BtfNFuK0.js";import{f as dt}from"./format-error-C0Ke3VXF.js";import{p as En,B as wo}from"./index-XlyOkzy1.js";import{u as jo}from"./session-6sDuFWud.js";import{D as _o,_ as In}from"./useAsyncRetry-Ct0h3JKq.js";import{_ as Ln}from"./useSetState-Crt4S51m.js";import{I as Co}from"./vendor-hooks-DHHsWSqV.js";var ft={},Eo=N;Object.defineProperty(ft,"__esModule",{value:!0});var Tn=ft.default=void 0,Io=Eo(U()),Lo=a;Tn=ft.default=(0,Io.default)((0,Lo.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var pt={},To=N;Object.defineProperty(pt,"__esModule",{value:!0});var Pn=pt.default=void 0,Po=To(U()),Do=a;Pn=pt.default=(0,Po.default)((0,Do.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var ht={},Ro=N;Object.defineProperty(ht,"__esModule",{value:!0});var Dn=ht.default=void 0,Ao=Ro(U()),Oo=a;Dn=ht.default=(0,Ao.default)((0,Oo.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var mt={},Mo=N;Object.defineProperty(mt,"__esModule",{value:!0});var Rn=mt.default=void 0,$o=Mo(U()),ko=a;Rn=mt.default=(0,$o.default)((0,ko.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var gt={},Bo=N;Object.defineProperty(gt,"__esModule",{value:!0});var An=gt.default=void 0,No=Bo(U()),Uo=a;An=gt.default=(0,No.default)((0,Uo.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var vt={},Fo=N;Object.defineProperty(vt,"__esModule",{value:!0});var On=vt.default=void 0,zo=Fo(U()),Ho=a;On=vt.default=(0,zo.default)((0,Ho.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var yt={},Vo=N;Object.defineProperty(yt,"__esModule",{value:!0});var Mn=yt.default=void 0,qo=Vo(U()),Ko=a;Mn=yt.default=(0,qo.default)((0,Ko.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"NotInterested");var xt={};Object.defineProperty(xt,"__esModule",{value:!0});var $n=xt.default=void 0;Wo(x);var Zt=a;function Wo(e){return e&&e.__esModule?e:{default:e}}function Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jt(Object(n),!0).forEach(function(r){Go(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jt(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Go(e,t,n){return(t=Qo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qo(e){var t=Xo(e,"string");return typeof t=="symbol"?t:t+""}function Xo(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bt=function(t){return(0,Zt.jsx)("svg",Yt(Yt({},t),{},{children:(0,Zt.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.32989 8.20744C11.2787 6.82349 13.6098 6.08 16 6.08C18.3902 6.08 20.7213 6.82349 22.6701 8.20744C24.6189 9.59139 26.089 11.5473 26.8766 13.804C27.6642 16.0607 27.7304 18.5066 27.0659 20.8026C26.4419 22.9587 25.2026 24.8823 23.5044 26.3404H8.49555C6.79735 24.8823 5.55809 22.9587 4.9341 20.8026C4.26961 18.5066 4.33575 16.0607 5.12337 13.804C5.91098 11.5473 7.38107 9.59139 9.32989 8.20744ZM16 3.52C13.0786 3.52 10.2295 4.42871 7.84764 6.1202C5.46575 7.81169 3.66898 10.2022 2.70634 12.9604C1.7437 15.7187 1.66286 18.708 2.47501 21.5143C3.28717 24.3205 4.95211 26.8046 7.23909 28.6224C7.46554 28.8024 7.74628 28.9004 8.03554 28.9004H23.9644C24.2537 28.9004 24.5344 28.8024 24.7609 28.6224C27.0479 26.8046 28.7128 24.3205 29.5249 21.5143C30.3371 18.708 30.2563 15.7187 29.2936 12.9604C28.331 10.2022 26.5342 7.81169 24.1523 6.1202C21.7704 4.42871 18.9214 3.52 16 3.52ZM21.8829 13.5921C22.3827 13.0923 22.3827 12.2818 21.8829 11.7819C21.383 11.2821 20.5725 11.2821 20.0727 11.7819L17.868 13.9866C17.3072 13.7012 16.6724 13.5404 16 13.5404C13.7221 13.5404 11.8755 15.3869 11.8755 17.6648C11.8755 19.9427 13.7221 21.7892 16 21.7892C18.2779 21.7892 20.1244 19.9427 20.1244 17.6648C20.1244 16.9924 19.9635 16.3576 19.6782 15.7968L21.8829 13.5921ZM14.4355 17.6648C14.4355 16.8008 15.136 16.1004 16 16.1004C16.864 16.1004 17.5644 16.8008 17.5644 17.6648C17.5644 18.5288 16.864 19.2292 16 19.2292C15.136 19.2292 14.4355 18.5288 14.4355 17.6648Z",fill:"currentColor"})}))};bt.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};bt.displayName="dashboard";$n=xt.default=bt;var St={},Zo=N;Object.defineProperty(St,"__esModule",{value:!0});var kn=St.default=void 0,Jo=Zo(U()),Yo=a;kn=St.default=(0,Jo.default)((0,Yo.jsx)("path",{d:"m18.25 7.6-5.5-3.18c-.46-.27-1.04-.27-1.5 0L5.75 7.6c-.46.27-.75.76-.75 1.3v6.35c0 .54.29 1.03.75 1.3l5.5 3.18c.46.27 1.04.27 1.5 0l5.5-3.18c.46-.27.75-.76.75-1.3V8.9c0-.54-.29-1.03-.75-1.3M7 14.96v-4.62l4 2.32v4.61zm5-4.03L8 8.61l4-2.31 4 2.31zm1 6.34v-4.61l4-2.32v4.62zM7 2H3.5C2.67 2 2 2.67 2 3.5V7h2V4h3zm10 0h3.5c.83 0 1.5.67 1.5 1.5V7h-2V4h-3zM7 22H3.5c-.83 0-1.5-.67-1.5-1.5V17h2v3h3zm10 0h3.5c.83 0 1.5-.67 1.5-1.5V17h-2v3h-3z"}),"ViewInAr");const ce={Start:So,Stop:Tn,Restart:Pn,Reload:Dn,Remove:Wr,Config:Rn,Log:An,Group:On,Cancel:Mn,Dashboard:$n,Overview:kn},es=(e,t)=>{if(!e)return"";const n=new URL(e),r=new URLSearchParams(n.searchParams),o=new URL(Cn(n.origin,t));return o.search=r.toString(),o.toString()},ts="internal",ns="external";function wt({blocklet:e,onStart:t,onComplete:n,variant:r,hasPermission:o,getComponentUrl:s,useBlockletUrlEvaluation:i,...c}){const l=Ne(),[d,u]=x.useState(null),[f,p]=x.useState(null),[y,b]=x.useState(!1),[h,L]=x.useState(null),{t:g}=x.useContext(jn),[I]=Gt("skip-blocklet-setup",!1),{loading:j,recommendedUrl:T}=i(e),[$]=Gt("blocklet-type-filter",ts),v=k.isInProgress(e.status),[C,S]=x.useState(!1);x.useEffect(()=>{var D,B;if(!(e!=null&&e.controller))return;S(((B=(D=e==null?void 0:e.controller)==null?void 0:D.status)==null?void 0:B.value)===Z.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var z,X,ne;try{const H=await l.api.getLauncherSession({input:{launcherSessionId:(z=e==null?void 0:e.controller)==null?void 0:z.launcherSessionId,launcherUrl:(X=e==null?void 0:e.controller)==null?void 0:X.launcherUrl}});if(H!=null&&H.error){console.error("get launcher session failed",H.error);return}S([M.LAUNCH_SESSION_STATUS.overdue,M.LAUNCH_SESSION_STATUS.canceled,M.LAUNCH_SESSION_STATUS.terminated].includes((ne=H==null?void 0:H.launcherSession)==null?void 0:ne.status))}catch(H){console.error("call getLauncherSession error",H)}})()},[]);const{inService:w}=l,E=(m,D,B=!1)=>async()=>{const z=async Ce=>{var Ie;t({action:m,blocklet:e}),b(!0),p(m);let Ee=!1;try{if(m==="remove")await D(Ce);else if(m==="start"){if(!k.hasRunnableComponent(e)){q.error(g("blocklet.noComponent"));return}if(!w&&!I&&!((Ie=e.settings)!=null&&Ie.initialized)&&e.mode!==Z.BLOCKLET_MODES.DEVELOPMENT){if(!T||!Wt(T)){q.error(g("blocklet.gotoVisitError"));return}const W=Er(l.info),Ut=new URL(T);Ut.searchParams.set("serverUrl",W),window.open(Xt(Ut.href,{allowDomains:null})),n({action:m,blocklet:e});return}const re=e.children.filter(W=>!k.isInProgress(W.status)&&W.status!=="running").map(W=>W.meta.did),ae={did:e.meta.did,componentDids:re};await D({input:ae})}else if(["stop","restart","reload"].includes(m)){const re=e.children.filter(W=>W.status==="running").map(W=>W.meta.did),ae={did:e.meta.did,componentDids:re};await D({input:ae})}else{const re={did:e.meta.did};await D({input:re})}m==="remove"?Ee=!0:await Ir(1e3),m==="reload"&&q.success(g("blocklet.reloadSuccess")),L(null),n({action:m,blocklet:e})}catch(re){const ae=`Blocklet ${m} failed: ${dt(re)}`;throw n({action:m,blocklet:e,error:new Error(ae)}),new Error(ae)}finally{Ee||b(!1)}},X=()=>{b(!1),L(null)},ne=k.getDisplayName(e,!0),H=e.mode===Z.BLOCKLET_MODES.DEVELOPMENT?{description:()=>a.jsx(ue,{component:"div",children:a.jsx(ue,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(Ce,Ee)=>a.jsxs(ue,{component:"div",children:[a.jsx(ue,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")}),a.jsxs(qr,{name:"removeType",value:Ce.removeType,onChange:Ie=>Ee({...Ce,removeType:Ie.target.value}),children:[a.jsx(qt,{value:"backup",control:a.jsx(Kt,{}),label:g("blocklet.action.removeApplicationAfterBackup")}),a.jsx(qt,{value:"complete",control:a.jsx(Kt,{}),label:g("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},Cr={stop:{title:`${g("common.stop")} ${ne}`,description:g("blocklet.action.stopDescription"),confirm:g("blocklet.action.confirmStop"),cancel:g("common.cancel"),onConfirm:z,onCancel:X},restart:{title:`${g("common.restart")} ${ne}`,description:g("blocklet.action.restartDescription"),confirm:g("blocklet.action.confirmRestart"),cancel:g("common.cancel"),onConfirm:z,onCancel:X},remove:{title:`${g("common.remove")} ${ne}`,confirm:g("blocklet.action.confirmRemove"),cancel:g("common.cancel"),onConfirm:z,onCancel:X,...H},cancelDownload:{title:`${g("common.cancel")}`,description:g("blocklet.action.cancelDownloadDescription",{name:ne}),confirm:g("common.confirm"),cancel:g("common.cancel"),onConfirm:z,onCancel:X}};B?L(Cr[m]):await z()},P=!!d,Q=m=>{try{m.stopPropagation(),m.preventDefault()}catch{}u(m.currentTarget)},F=m=>{try{m.stopPropagation(),m.preventDefault()}catch{}u(null)},je=async(m,D)=>{try{D.stopPropagation(),D.preventDefault()}catch{}if(typeof m.handler=="function")try{b(!0),p(m.action),await m.handler()}catch(B){console.error(`Blocklet ${m.name} failed: `,B)}finally{b(!1),u(null)}else u(null)},Sr=!w&&k.isDeletableBlocklet(e)?{action:"remove",icon:ce.Remove,name:g("common.remove"),handler:E("remove",async({removeType:m})=>{m==="backup"&&await l.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await l.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:v}:null,wr={action:"remove",icon:({sx:m,...D})=>a.jsx(ce.Cancel,{sx:{...m,paddingRight:"2px",zoom:.95},...D}),name:g("common.cancel"),handler:E("cancelDownload",l.api.cancelDownloadBlocklet,!0)},jr=k.getAppMissingConfigs(e),_r=()=>{var z;const m=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),D=s==null?void 0:s({mountPoint:m,blocklet:e});if(!D||!Wt(D)){q.error(g("blocklet.gotoVisitError"));return}const B=(z=e==null?void 0:e.site)==null?void 0:z.domainAliases;window.open(Xt(es(D,".well-known/service/admin"),{allowDomains:B==null?void 0:B.map(X=>X.value)}))};let _e=[{action:"start",icon:ce.Start,inExternal:!0,name:g("common.start"),handler:E("start",l.api.startBlocklet),disabled:C||e.children.every(m=>m.status==="running")||qe(e.status)||j||v},{action:"stop",icon:ce.Stop,inExternal:!0,name:g("common.stop"),handler:E("stop",l.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",inExternal:!0,icon:ce.Restart,name:g("common.restart"),handler:E("restart",l.api.restartBlocklet,!0),disabled:C||e.status!=="running"},qe(e.status)?wr:Sr,{separator:!0},w?null:{action:"dashboard",icon:({style:m,...D})=>a.jsx(ce.Dashboard,{...D,style:{...m,width:"26px",height:"26px",paddingRight:"3px"}}),name:g("sidebar.dashboard"),handler:_r}].filter(Boolean);return $===ns&&(_e=_e.filter(m=>m.inExternal)),r==="menu"?a.jsxs(en,{"data-cy":"blocklet-actions",children:[a.jsx(gn,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:Q,size:"small",disabled:!o||!qe(e.status)&&y,children:a.jsx(Gr,{})}),a.jsxs(Nr,{id:"actions-menu",anchorEl:d,keepMounted:!0,open:P,onClose:F,PaperProps:{},children:[jr.length>0&&a.jsxs(vn,{style:{maxWidth:"400px"},severity:"error",children:[g("blocklet.config.missingRequired"),a.jsx("br",{}),a.jsx(_n,{to:`/blocklets/${e.meta.did}/components`,children:g("blocklet.config.gotoFix")})]}),_e.map((m,D)=>m.separator?a.jsx(Ur,{},`separator-${D}`):a.jsxs(Fr,{dense:!0,onClick:B=>je(m,B),disabled:y||m.disabled,"data-cy":`${m.action}-blocklet`,children:[a.jsx(zr,{style:{minWidth:24},children:f===m.action&&y?a.jsx(ee,{size:16,sx:{marginRight:1}}):a.jsx(m.icon,{fontSize:"small"})}),a.jsx(Hr,{primary:m.name})]},m.name))]}),h&&a.jsx(Qt,{title:h.title,description:h.description,confirm:h.confirm,cancel:h.cancel,params:h.params,onConfirm:h.onConfirm,onCancel:h.onCancel})]}):a.jsxs(en,{"data-cy":"blocklet-actions",...c,children:[a.jsx(Vr,{children:_e.filter(m=>!m.separator&&!m.onlyInMenu).map(m=>a.jsxs(ut,{title:m.name,"data-cy":`${m.action}-blocklet`,onClick:()=>je(m),disabled:!!m.disabled||y,children:[f===m.action&&y?a.jsx(ee,{size:16,sx:{marginRight:1}}):a.jsx(m.icon,{}),a.jsx("span",{className:"blocklet-action-text",children:m.name})]},m.name))}),h&&a.jsx(Qt,{title:h.title,description:h.description,confirm:h.confirm,cancel:h.cancel,params:h.params,onConfirm:h.onConfirm,onCancel:h.onCancel})]})}wt.propTypes={getComponentUrl:_.func,blocklet:_.object.isRequired,onStart:_.func.isRequired,onComplete:_.func.isRequired,variant:_.oneOf(["menu","group"]),hasPermission:_.bool,useBlockletUrlEvaluation:_.func};wt.defaultProps={getComponentUrl:null,variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const en=lt.div`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/overview-Dc_26DuW.js","assets/vendor-mui-core-COxJgW9_.js","assets/vendor-react-D-afvo_7.js","assets/vendor-arcblock-Dn16DH88.js","assets/vendor-utils-CV7RLr7b.js","assets/vendor-hooks-DzETutIU.js","assets/vendor-arcblock-DhgPdlEj.css","assets/keyboard-arrow-down-rounded-DadBVmpO.js","assets/index-Dk8-Ibsd.js","assets/index-tDqjC_e2.js","assets/did-address-B-umhomj.js","assets/domain-list-C9eJrdcx.js","assets/Add-WwBlcqNF.js","assets/base32-DZ5GWnEl.js","assets/LockIcon-BIlUQ2kd.js","assets/CheckCircle-n23HoB1l.js","assets/util-CmcVraD_.js","assets/useSetState-Crt4S51m.js","assets/permission-C7OYX2OJ.js","assets/session-UImnJahL.js","assets/useAsyncRetry-m5oMMmVh.js","assets/useAsync-BfmmMB4I.js","assets/confirm-DhCXP8vW.js","assets/format-error-C0Ke3VXF.js","assets/InfoOutlined-7hC78o3_.js","assets/api-C7qcY4XU.js","assets/actions-DsY16tuf.js","assets/MoreHoriz-CtnQ7uqf.js","assets/useLocalStorage-ganqTrK6.js","assets/PlayArrow-IJdeSlbo.js","assets/get-safe-url-ByH0hntp.js","assets/index-CYh2QqLk.js","assets/index-CU_Y2Ics.js","assets/index-DoZ2YM4T.js","assets/Loop-Clmz6DRv.js","assets/ViewList-B-HVv7GT.js","assets/list-header-DdT6PG1D.js","assets/click-to-copy-D-rDpTU1.js","assets/DeleteOutline-1Utxk_IX.js","assets/sdk-0UwYHc-i.js","assets/index-e4kRKwa5.js","assets/shorten-label-CKNjZbhF.js","assets/index-B8B9jSby.js","assets/EditIcon-DDucSncy.js","assets/Google-CSKRQW0F.js","assets/index-B-0OFwWF.js","assets/iframe-BB-pL0gd.js","assets/config-Bh1NLHps.js","assets/form-text-input-E0Z0s35O.js","assets/Done-BbnQSLvu.js","assets/logo-uploader-CNnYMPxh.js","assets/ArrowDropDown-B6VSNrNX.js","assets/ChevronRight-UF0hSKpL.js","assets/bundle-avatar-CtN88KlG.js","assets/simple-select-BMYrmYam.js","assets/isEmail-BWNRBSAy.js","assets/switch-control-BMO1MVhi.js","assets/audit-logs-DtJdynVz.js","assets/index-7gknQYQQ.js","assets/index-D4PP6P2d.css","assets/relative-time-BHAJs1ji.js","assets/index-CEyrfuix.js","assets/log-B5iPDWZ_.js","assets/Download-DRJvwpLt.js","assets/log-D33dFtt_.css","assets/index-DHmJ4NAw.js","assets/Error-CL8m4Xu6.js","assets/react-beautiful-dnd.esm-D6d5Zfr8.js","assets/raf-schd.esm-Cxhj8umC.js","assets/QuestionMarkCircle-2fDrHopp.js","assets/index-CcsFwEG1.js","assets/vendor-mui-x-Be0GxtOJ.js","assets/item-DoetJFaA.js","assets/Launch-D9iyATKb.js","assets/config-navigation-Cn0fwBBG.js","assets/slicedToArray-BPEJIbVV.js","assets/index-Cp3ZCh7o.js","assets/_createAggregator-BgG70oKG.js","assets/index-jViTGvBx.js","assets/use-mobile-DOkke39c.js","assets/connect-to-kYFiSkqc.js","assets/config-space-CT9a0s7Q.js","assets/component-DET9TWBv.js","assets/index-DcfIKM1A.js","assets/index-BRPzwIuP.js","assets/ChevronLeft-DV-sPxhr.js","assets/add-component-core-C8hvHJq0.js","assets/launch-result-message-BEuCq9h1.js","assets/page-header-B3m4UCOV.js","assets/index-DNd_40WG.js","assets/content-layout-C8ThavEP.js","assets/add-component-core-D-IRi6XF.css","assets/toUpper-DUImrX4s.js","assets/analytics-Cym7YiQM.js","assets/LaunchOutlined-D37WOXmf.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{y as Ne,f as k,h as Z,z as qe,A as Er,b as Ir,B as Lr,C as Tr,D as hn,E as le,F as mn,G as Pr,o as ye,H as Dr,I as Rr,k as Ft,g as Ar,j as Or,m as zt,l as Mr,n as $r,J as De,e as Le,K as kr,_ as K,L as Ht,N as Br,c as Vt}from"./index-tDqjC_e2.js";import{a1 as N,j as a,E as _,aa as lt,I as gn,ak as Nr,ad as vn,ah as Ur,al as Fr,bp as zr,a2 as ee,bq as Hr,aR as Vr,T as ue,bx as qr,aN as qt,by as Kt,a3 as R,a4 as Xe,bz as yn,bA as xn,bB as bn,aQ as Sn,t as Ue,A as oe,aj as wn,aK as Kr}from"./vendor-mui-core-COxJgW9_.js";import{ad as U,ao as Wr,af as jn,ap as Gr,ag as ut,d as M,aa as Wt,z as q,g as Y,ab as Qr,aq as Xr,ar as Zr,as as Yr,at as Jr,au as eo,av as to,aw as no,ax as ro,q as oo,ay as so,az as io,aA as ao,aB as co,aC as lo,C as Oe,aD as uo,a6 as fo,aE as po,aF as ho,P as mo,aG as go}from"./vendor-arcblock-Dn16DH88.js";import{r as x,L as _n,g as vo,f as yo,k as xo,l as bo}from"./vendor-react-D-afvo_7.js";import{_ as Gt}from"./useLocalStorage-ganqTrK6.js";import{C as Qt}from"./confirm-DhCXP8vW.js";import{d as So}from"./PlayArrow-IJdeSlbo.js";import{j as Cn}from"./vendor-utils-CV7RLr7b.js";import{g as Xt}from"./get-safe-url-ByH0hntp.js";import{f as dt}from"./format-error-C0Ke3VXF.js";import{p as En,B as wo}from"./index-CYh2QqLk.js";import{u as jo}from"./session-UImnJahL.js";import{D as _o,_ as In}from"./useAsyncRetry-m5oMMmVh.js";import{_ as Ln}from"./useSetState-Crt4S51m.js";import{I as Co}from"./vendor-hooks-DzETutIU.js";var ft={},Eo=N;Object.defineProperty(ft,"__esModule",{value:!0});var Tn=ft.default=void 0,Io=Eo(U()),Lo=a;Tn=ft.default=(0,Io.default)((0,Lo.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var pt={},To=N;Object.defineProperty(pt,"__esModule",{value:!0});var Pn=pt.default=void 0,Po=To(U()),Do=a;Pn=pt.default=(0,Po.default)((0,Do.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var ht={},Ro=N;Object.defineProperty(ht,"__esModule",{value:!0});var Dn=ht.default=void 0,Ao=Ro(U()),Oo=a;Dn=ht.default=(0,Ao.default)((0,Oo.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var mt={},Mo=N;Object.defineProperty(mt,"__esModule",{value:!0});var Rn=mt.default=void 0,$o=Mo(U()),ko=a;Rn=mt.default=(0,$o.default)((0,ko.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var gt={},Bo=N;Object.defineProperty(gt,"__esModule",{value:!0});var An=gt.default=void 0,No=Bo(U()),Uo=a;An=gt.default=(0,No.default)((0,Uo.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var vt={},Fo=N;Object.defineProperty(vt,"__esModule",{value:!0});var On=vt.default=void 0,zo=Fo(U()),Ho=a;On=vt.default=(0,zo.default)((0,Ho.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var yt={},Vo=N;Object.defineProperty(yt,"__esModule",{value:!0});var Mn=yt.default=void 0,qo=Vo(U()),Ko=a;Mn=yt.default=(0,qo.default)((0,Ko.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"NotInterested");var xt={};Object.defineProperty(xt,"__esModule",{value:!0});var $n=xt.default=void 0;Wo(x);var Zt=a;function Wo(e){return e&&e.__esModule?e:{default:e}}function Yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yt(Object(n),!0).forEach(function(r){Go(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yt(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Go(e,t,n){return(t=Qo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qo(e){var t=Xo(e,"string");return typeof t=="symbol"?t:t+""}function Xo(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bt=function(t){return(0,Zt.jsx)("svg",Jt(Jt({},t),{},{children:(0,Zt.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.32989 8.20744C11.2787 6.82349 13.6098 6.08 16 6.08C18.3902 6.08 20.7213 6.82349 22.6701 8.20744C24.6189 9.59139 26.089 11.5473 26.8766 13.804C27.6642 16.0607 27.7304 18.5066 27.0659 20.8026C26.4419 22.9587 25.2026 24.8823 23.5044 26.3404H8.49555C6.79735 24.8823 5.55809 22.9587 4.9341 20.8026C4.26961 18.5066 4.33575 16.0607 5.12337 13.804C5.91098 11.5473 7.38107 9.59139 9.32989 8.20744ZM16 3.52C13.0786 3.52 10.2295 4.42871 7.84764 6.1202C5.46575 7.81169 3.66898 10.2022 2.70634 12.9604C1.7437 15.7187 1.66286 18.708 2.47501 21.5143C3.28717 24.3205 4.95211 26.8046 7.23909 28.6224C7.46554 28.8024 7.74628 28.9004 8.03554 28.9004H23.9644C24.2537 28.9004 24.5344 28.8024 24.7609 28.6224C27.0479 26.8046 28.7128 24.3205 29.5249 21.5143C30.3371 18.708 30.2563 15.7187 29.2936 12.9604C28.331 10.2022 26.5342 7.81169 24.1523 6.1202C21.7704 4.42871 18.9214 3.52 16 3.52ZM21.8829 13.5921C22.3827 13.0923 22.3827 12.2818 21.8829 11.7819C21.383 11.2821 20.5725 11.2821 20.0727 11.7819L17.868 13.9866C17.3072 13.7012 16.6724 13.5404 16 13.5404C13.7221 13.5404 11.8755 15.3869 11.8755 17.6648C11.8755 19.9427 13.7221 21.7892 16 21.7892C18.2779 21.7892 20.1244 19.9427 20.1244 17.6648C20.1244 16.9924 19.9635 16.3576 19.6782 15.7968L21.8829 13.5921ZM14.4355 17.6648C14.4355 16.8008 15.136 16.1004 16 16.1004C16.864 16.1004 17.5644 16.8008 17.5644 17.6648C17.5644 18.5288 16.864 19.2292 16 19.2292C15.136 19.2292 14.4355 18.5288 14.4355 17.6648Z",fill:"currentColor"})}))};bt.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};bt.displayName="dashboard";$n=xt.default=bt;var St={},Zo=N;Object.defineProperty(St,"__esModule",{value:!0});var kn=St.default=void 0,Yo=Zo(U()),Jo=a;kn=St.default=(0,Yo.default)((0,Jo.jsx)("path",{d:"m18.25 7.6-5.5-3.18c-.46-.27-1.04-.27-1.5 0L5.75 7.6c-.46.27-.75.76-.75 1.3v6.35c0 .54.29 1.03.75 1.3l5.5 3.18c.46.27 1.04.27 1.5 0l5.5-3.18c.46-.27.75-.76.75-1.3V8.9c0-.54-.29-1.03-.75-1.3M7 14.96v-4.62l4 2.32v4.61zm5-4.03L8 8.61l4-2.31 4 2.31zm1 6.34v-4.61l4-2.32v4.62zM7 2H3.5C2.67 2 2 2.67 2 3.5V7h2V4h3zm10 0h3.5c.83 0 1.5.67 1.5 1.5V7h-2V4h-3zM7 22H3.5c-.83 0-1.5-.67-1.5-1.5V17h2v3h3zm10 0h3.5c.83 0 1.5-.67 1.5-1.5V17h-2v3h-3z"}),"ViewInAr");const ce={Start:So,Stop:Tn,Restart:Pn,Reload:Dn,Remove:Wr,Config:Rn,Log:An,Group:On,Cancel:Mn,Dashboard:$n,Overview:kn},es=(e,t)=>{if(!e)return"";const n=new URL(e),r=new URLSearchParams(n.searchParams),o=new URL(Cn(n.origin,t));return o.search=r.toString(),o.toString()},ts="internal",ns="external";function wt({blocklet:e,onStart:t,onComplete:n,variant:r,hasPermission:o,getComponentUrl:s,useBlockletUrlEvaluation:i,...c}){const l=Ne(),[d,u]=x.useState(null),[f,p]=x.useState(null),[y,b]=x.useState(!1),[h,L]=x.useState(null),{t:g}=x.useContext(jn),[I]=Gt("skip-blocklet-setup",!1),{loading:j,recommendedUrl:T}=i(e),[$]=Gt("blocklet-type-filter",ts),v=k.isInProgress(e.status),[C,S]=x.useState(!1);x.useEffect(()=>{var D,B;if(!(e!=null&&e.controller))return;S(((B=(D=e==null?void 0:e.controller)==null?void 0:D.status)==null?void 0:B.value)===Z.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var z,X,ne;try{const H=await l.api.getLauncherSession({input:{launcherSessionId:(z=e==null?void 0:e.controller)==null?void 0:z.launcherSessionId,launcherUrl:(X=e==null?void 0:e.controller)==null?void 0:X.launcherUrl}});if(H!=null&&H.error){console.error("get launcher session failed",H.error);return}S([M.LAUNCH_SESSION_STATUS.overdue,M.LAUNCH_SESSION_STATUS.canceled,M.LAUNCH_SESSION_STATUS.terminated].includes((ne=H==null?void 0:H.launcherSession)==null?void 0:ne.status))}catch(H){console.error("call getLauncherSession error",H)}})()},[]);const{inService:w}=l,E=(m,D,B=!1)=>async()=>{const z=async Ce=>{var Ie;t({action:m,blocklet:e}),b(!0),p(m);let Ee=!1;try{if(m==="remove")await D(Ce);else if(m==="start"){if(!k.hasRunnableComponent(e)){q.error(g("blocklet.noComponent"));return}if(!w&&!I&&!((Ie=e.settings)!=null&&Ie.initialized)&&e.mode!==Z.BLOCKLET_MODES.DEVELOPMENT){if(!T||!Wt(T)){q.error(g("blocklet.gotoVisitError"));return}const W=Er(l.info),Ut=new URL(T);Ut.searchParams.set("serverUrl",W),window.open(Xt(Ut.href,{allowDomains:null})),n({action:m,blocklet:e});return}const re=e.children.filter(W=>!k.isInProgress(W.status)&&W.status!=="running").map(W=>W.meta.did),ae={did:e.meta.did,componentDids:re};await D({input:ae})}else if(["stop","restart","reload"].includes(m)){const re=e.children.filter(W=>W.status==="running").map(W=>W.meta.did),ae={did:e.meta.did,componentDids:re};await D({input:ae})}else{const re={did:e.meta.did};await D({input:re})}m==="remove"?Ee=!0:await Ir(1e3),m==="reload"&&q.success(g("blocklet.reloadSuccess")),L(null),n({action:m,blocklet:e})}catch(re){const ae=`Blocklet ${m} failed: ${dt(re)}`;throw n({action:m,blocklet:e,error:new Error(ae)}),new Error(ae)}finally{Ee||b(!1)}},X=()=>{b(!1),L(null)},ne=k.getDisplayName(e,!0),H=e.mode===Z.BLOCKLET_MODES.DEVELOPMENT?{description:()=>a.jsx(ue,{component:"div",children:a.jsx(ue,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(Ce,Ee)=>a.jsxs(ue,{component:"div",children:[a.jsx(ue,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")}),a.jsxs(qr,{name:"removeType",value:Ce.removeType,onChange:Ie=>Ee({...Ce,removeType:Ie.target.value}),children:[a.jsx(qt,{value:"backup",control:a.jsx(Kt,{}),label:g("blocklet.action.removeApplicationAfterBackup")}),a.jsx(qt,{value:"complete",control:a.jsx(Kt,{}),label:g("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},Cr={stop:{title:`${g("common.stop")} ${ne}`,description:g("blocklet.action.stopDescription"),confirm:g("blocklet.action.confirmStop"),cancel:g("common.cancel"),onConfirm:z,onCancel:X},restart:{title:`${g("common.restart")} ${ne}`,description:g("blocklet.action.restartDescription"),confirm:g("blocklet.action.confirmRestart"),cancel:g("common.cancel"),onConfirm:z,onCancel:X},remove:{title:`${g("common.remove")} ${ne}`,confirm:g("blocklet.action.confirmRemove"),cancel:g("common.cancel"),onConfirm:z,onCancel:X,...H},cancelDownload:{title:`${g("common.cancel")}`,description:g("blocklet.action.cancelDownloadDescription",{name:ne}),confirm:g("common.confirm"),cancel:g("common.cancel"),onConfirm:z,onCancel:X}};B?L(Cr[m]):await z()},P=!!d,Q=m=>{try{m.stopPropagation(),m.preventDefault()}catch{}u(m.currentTarget)},F=m=>{try{m.stopPropagation(),m.preventDefault()}catch{}u(null)},je=async(m,D)=>{try{D.stopPropagation(),D.preventDefault()}catch{}if(typeof m.handler=="function")try{b(!0),p(m.action),await m.handler()}catch(B){console.error(`Blocklet ${m.name} failed: `,B)}finally{b(!1),u(null)}else u(null)},Sr=!w&&k.isDeletableBlocklet(e)?{action:"remove",icon:ce.Remove,name:g("common.remove"),handler:E("remove",async({removeType:m})=>{m==="backup"&&await l.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await l.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:v}:null,wr={action:"remove",icon:({sx:m,...D})=>a.jsx(ce.Cancel,{sx:{...m,paddingRight:"2px",zoom:.95},...D}),name:g("common.cancel"),handler:E("cancelDownload",l.api.cancelDownloadBlocklet,!0)},jr=k.getAppMissingConfigs(e),_r=()=>{var z;const m=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),D=s==null?void 0:s({mountPoint:m,blocklet:e});if(!D||!Wt(D)){q.error(g("blocklet.gotoVisitError"));return}const B=(z=e==null?void 0:e.site)==null?void 0:z.domainAliases;window.open(Xt(es(D,".well-known/service/admin"),{allowDomains:B==null?void 0:B.map(X=>X.value)}))};let _e=[{action:"start",icon:ce.Start,inExternal:!0,name:g("common.start"),handler:E("start",l.api.startBlocklet),disabled:C||e.children.every(m=>m.status==="running")||qe(e.status)||j||v},{action:"stop",icon:ce.Stop,inExternal:!0,name:g("common.stop"),handler:E("stop",l.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",inExternal:!0,icon:ce.Restart,name:g("common.restart"),handler:E("restart",l.api.restartBlocklet,!0),disabled:C||e.status!=="running"},qe(e.status)?wr:Sr,{separator:!0},w?null:{action:"dashboard",icon:({style:m,...D})=>a.jsx(ce.Dashboard,{...D,style:{...m,width:"26px",height:"26px",paddingRight:"3px"}}),name:g("sidebar.dashboard"),handler:_r}].filter(Boolean);return $===ns&&(_e=_e.filter(m=>m.inExternal)),r==="menu"?a.jsxs(en,{"data-cy":"blocklet-actions",children:[a.jsx(gn,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:Q,size:"small",disabled:!o||!qe(e.status)&&y,children:a.jsx(Gr,{})}),a.jsxs(Nr,{id:"actions-menu",anchorEl:d,keepMounted:!0,open:P,onClose:F,PaperProps:{},children:[jr.length>0&&a.jsxs(vn,{style:{maxWidth:"400px"},severity:"error",children:[g("blocklet.config.missingRequired"),a.jsx("br",{}),a.jsx(_n,{to:`/blocklets/${e.meta.did}/components`,children:g("blocklet.config.gotoFix")})]}),_e.map((m,D)=>m.separator?a.jsx(Ur,{},`separator-${D}`):a.jsxs(Fr,{dense:!0,onClick:B=>je(m,B),disabled:y||m.disabled,"data-cy":`${m.action}-blocklet`,children:[a.jsx(zr,{style:{minWidth:24},children:f===m.action&&y?a.jsx(ee,{size:16,sx:{marginRight:1}}):a.jsx(m.icon,{fontSize:"small"})}),a.jsx(Hr,{primary:m.name})]},m.name))]}),h&&a.jsx(Qt,{title:h.title,description:h.description,confirm:h.confirm,cancel:h.cancel,params:h.params,onConfirm:h.onConfirm,onCancel:h.onCancel})]}):a.jsxs(en,{"data-cy":"blocklet-actions",...c,children:[a.jsx(Vr,{children:_e.filter(m=>!m.separator&&!m.onlyInMenu).map(m=>a.jsxs(ut,{title:m.name,"data-cy":`${m.action}-blocklet`,onClick:()=>je(m),disabled:!!m.disabled||y,children:[f===m.action&&y?a.jsx(ee,{size:16,sx:{marginRight:1}}):a.jsx(m.icon,{}),a.jsx("span",{className:"blocklet-action-text",children:m.name})]},m.name))}),h&&a.jsx(Qt,{title:h.title,description:h.description,confirm:h.confirm,cancel:h.cancel,params:h.params,onConfirm:h.onConfirm,onCancel:h.onCancel})]})}wt.propTypes={getComponentUrl:_.func,blocklet:_.object.isRequired,onStart:_.func.isRequired,onComplete:_.func.isRequired,variant:_.oneOf(["menu","group"]),hasPermission:_.bool,useBlockletUrlEvaluation:_.func};wt.defaultProps={getComponentUrl:null,variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const en=lt.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ import{y as Ne,f as k,h as Z,z as qe,A as Er,b as Ir,B as Lr,C as Tr,D as hn,E a
|
|
|
9
9
|
font-size: 10px;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
`,rs=x.memo(wt),os=e=>{const t={};let n=null;return k.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=k.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},ss=(e,t,n)=>{var s;const{hostname:r,href:o}=e;if(!t)return o;if(n){const c=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!c)return o;const l=c[0],u=((((s=t.site)==null?void 0:s.domainAliases)||[]).map(f=>f.value).filter(Boolean).find(f=>f.endsWith(M.DEFAULT_DID_DOMAIN))||"").replace(`.${M.DEFAULT_DID_DOMAIN}`,"");return u?o.replace(r,`${u}-${l}.${M.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Bn(){const{t:e}=
|
|
12
|
+
`,rs=x.memo(wt),os=e=>{const t={};let n=null;return k.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=k.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},ss=(e,t,n)=>{var s;const{hostname:r,href:o}=e;if(!t)return o;if(n){const c=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!c)return o;const l=c[0],u=((((s=t.site)==null?void 0:s.domainAliases)||[]).map(f=>f.value).filter(Boolean).find(f=>f.endsWith(M.DEFAULT_DID_DOMAIN))||"").replace(`.${M.DEFAULT_DID_DOMAIN}`,"");return u?o.replace(r,`${u}-${l}.${M.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Bn(){const{t:e}=Y(),{api:t}=jo(),{blocklet:n}=Lr(),{inService:r}=Ne(),[o,s]=x.useState(!1),[i,c]=x.useState(5),l=n&&n.structVersion!==M.APP_STRUCT_VERSION,d=()=>{try{if(n.status==="running"){q.error(e("blocklet.migrate.tip.running"));return}const p=os(n);if(p){q.error(e("blocklet.migrate.tip.duplicate",{name:p}));return}s(!0)}catch(p){q.error(dt(p))}},u=()=>{const p=ss(window.location,n,r);setTimeout(()=>{window.location.href=p},5e3),c(5),setInterval(()=>{c(y=>y-1)},1e3)},f=()=>s(!1);return[l&&a.jsxs(vn,{severity:"warning",style:{margin:"12px 0"},children:[a.jsxs(R,{display:"flex",alignItems:"center",children:[a.jsx(ut,{variant:"contained",size:"small",color:"primary",onClick:()=>d(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),a.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(p=>a.jsx(R,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${p}`)},p))]},"alert"),n&&a.jsx(Qr,{popup:!0,open:o,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:Tr(n,!0),title:k.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:f},"connect")]}Bn.propTypes={};function jt({children:e,style:t,...n}){return a.jsx(Xr,{style:t,...n,children:e})}jt.propTypes={children:_.any.isRequired,style:_.object};jt.defaultProps={style:{}};const A={yellow:"#FFCF71",grey:"#aaaaaa",reverse:"#444",success:"#3ab39d",running:"#34BE74",error:"#D0021B",primary:"#1DC1C7"};function _t({isResource:e,status:t,variant:n,source:r,progress:o,...s}){const{t:i}=x.useContext(jn),c={added:"primary",waiting:"warning",downloading:"warning",extracting:"warning",downloaded:"primary",installing:"warning",installed:"primary",starting:"warning",running:"success",stopping:"warning",stopped:"reverse",error:"error",upgrading:"warning",restarting:"warning",corrupted:"error",deleting:"warning",resource:"primary"},l={added:A.grey,waiting:A.yellow,downloading:A.yellow,extracting:A.yellow,downloaded:A.grey,installing:A.yellow,installed:A.grey,starting:A.yellow,running:A.running,stopping:A.yellow,stopped:A.reverse,error:A.error,upgrading:A.yellow,restarting:A.yellow,corrupted:A.error,deleting:A.yellow,resource:A.primary},d=k.isInProgress(t),u=e&&t==="stopped"?"resource":t,f=i(`blocklet.status.${u}`);return n==="pin"?a.jsx(Xe,{title:i("blocklet.statusTip",{status:f}),children:a.jsxs(R,{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center",...s,children:[a.jsx(R,{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:l[u],style:{opacity:.15}}),a.jsx(R,{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:l[u]})]})}):n==="dot"?a.jsx(Xe,{title:i("blocklet.statusTip",{status:f}),children:a.jsx(_o,{color:l[u],...s})}):a.jsxs(jt,{type:c[u],...s,children:[d&&a.jsx(ee,{size:12,color:"inherit",style:{marginRight:5}}),f,u==="downloading"&&o?a.jsx("div",{style:{marginLeft:5},children:`${o} %`}):null]})}_t.propTypes={status:_.string.isRequired,variant:_.oneOf(["dot","tag","pin"]),source:_.string,progress:_.number,isResource:_.bool};_t.defaultProps={isResource:!1,variant:"tag",source:"",progress:0};var is=Zr,as=eo,cs=to,ls=Yr,us=Jr,ds=no,fs=200;function ps(e,t,n,r){var o=-1,s=as,i=!0,c=e.length,l=[],d=t.length;if(!c)return l;n&&(t=ls(t,us(n))),r?(s=cs,i=!1):t.length>=fs&&(s=ds,i=!1,t=new is(t));e:for(;++o<c;){var u=e[o],f=n==null?u:n(u);if(u=r||u!==0?u:0,i&&f===f){for(var p=d;p--;)if(t[p]===f)continue e;l.push(u)}else s(t,f,r)||l.push(u)}return l}var hs=ps,ms=hs,gs=ro,tn=oo;function vs(e,t,n){var r=e.length;if(r<2)return r?tn(e[0]):[];for(var o=-1,s=Array(r);++o<r;)for(var i=e[o],c=-1;++c<r;)c!=o&&(s[o]=ms(s[o]||i,e[c],t,n));return tn(gs(s,1),t,n)}var ys=vs,xs=io,bs=so,Ss=ys,ws=co,js=ao,_s=bs(function(e){var t=js(e);return t=typeof t=="function"?t:void 0,Ss(xs(e,ws),void 0,t)}),Cs=_s;const Es=vo(Cs),Nn=x.createContext({});function Ct({children:e,type:t}){const[n,r]=x.useState([]),o=x.useRef([]),s=l=>{if(!o.current.includes(l)){const d=[...o.current,l];r(d),o.current=d}},i=l=>{if(o.current.includes(l)){const d=o.current.filter(u=>u!==l);r(d),o.current=d}},c=l=>{const d=n.filter(f=>l.find(p=>p===f));Es(d,n).forEach(f=>i(f))};return a.jsx(Nn.Provider,{value:{type:t,deletingBlocklets:n,addDeletingDid:s,removeDeletingDid:i,matchDeletingDid:c},children:e})}Ct.propTypes={type:_.string,children:_.node.isRequired};Ct.defaultProps={type:"blocklets"};function Xa(){return x.useContext(Nn)}function O(e,t,n){return yn.call(t,"css")?a.jsx(xn,bn(e,t),n):a.jsx(e,t,n)}function Ke(e,t,n){return yn.call(t,"css")?a.jsxs(xn,bn(e,t),n):a.jsxs(e,t,n)}/**
|
|
13
13
|
* (c) Iconify
|
|
14
14
|
*
|
|
15
15
|
* For the full copyright and license information, please view the license.txt or license.gpl.txt
|
|
@@ -19,7 +19,7 @@ import{y as Ne,f as k,h as Z,z as qe,A as Er,b as Ir,B as Lr,C as Tr,D as hn,E a
|
|
|
19
19
|
*
|
|
20
20
|
* @license MIT
|
|
21
21
|
* @version 3.1.1
|
|
22
|
-
*/const Un=Object.freeze({left:0,top:0,width:16,height:16}),Me=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),xe=Object.freeze({...Un,...Me}),Ze=Object.freeze({...xe,body:"",hidden:!1});function Is(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function nn(e,t){const n=Is(e,t);for(const r in Ze)r in Me?r in e&&!(r in n)&&(n[r]=Me[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Ls(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,l=c&&s(c);l&&(o[i]=[c].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function Ts(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=nn(r[c]||o[c],s)}return i(t),n.forEach(i),nn(e,s)}function Ps(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=Ls(e);for(const o in r){const s=r[o];s&&(t(o,Ts(e,o,s)),n.push(o))}return n}const he=/^[a-z0-9]+(-[a-z0-9]+)*$/,fe=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),d={provider:o.length>0?o[0]:r,prefix:l,name:c};return t&&!Re(d)?null:d}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Re(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!Re(c,n)?null:c}return null},Re=(e,t)=>e?!!((e.provider===""||e.provider.match(he))&&(t&&e.prefix===""||e.prefix.match(he))&&e.name.match(he)):!1,Ds={provider:"",aliases:{},not_found:{},...Un};function We(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Rs(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!We(e,Ds))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(he)||typeof s.body!="string"||!We(s,Ze))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(he)||typeof i!="string"||!n[i]&&!r[i]||!We(s,Ze))return null}return t}const $e=Object.create(null);function As(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function G(e,t){const n=$e[e]||($e[e]=Object.create(null));return n[t]||(n[t]=As(e,t))}function Et(e,t){return Rs(t)?Ps(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Os(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function Ms(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys($e)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys($e[o]||{})).forEach(i=>{const c=G(o,i);n=n.concat(Object.keys(c.icons).map(l=>(o!==""?"@"+o+":":"")+i+":"+l))})}),n}let It=!1;function $s(e){return It}function be(e){const t=typeof e=="string"?fe(e,!0,It):e;if(t){const n=G(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function ks(e,t){const n=fe(e,!0,It);if(!n)return!1;const r=G(n.provider,n.prefix);return Os(r,n.name,t)}function Fn(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!Re({provider:t,prefix:n,name:"a"}))return!1;const r=G(t,n);return!!Et(r,e)}function Bs(e){return!!be(e)}function Ns(e){const t=be(e);return t?{...xe,...t}:null}const zn=Object.freeze({width:null,height:null}),Hn=Object.freeze({...zn,...Me}),Us=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Fs=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Je(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Us);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=Fs.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const zs=e=>e==="unset"||e==="undefined"||e==="none";function Fe(e,t){const n={...xe,...e},r={...Hn,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(b=>{const h=[],L=b.hFlip,g=b.vFlip;let I=b.rotate;L?g?I+=2:(h.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),h.push("scale(-1 1)"),o.top=o.left=0):g&&(h.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),h.push("scale(1 -1)"),o.top=o.left=0);let j;switch(I<0&&(I-=Math.floor(I/4)*4),I=I%4,I){case 1:j=o.height/2+o.top,h.unshift("rotate(90 "+j.toString()+" "+j.toString()+")");break;case 2:h.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:j=o.width/2+o.left,h.unshift("rotate(-90 "+j.toString()+" "+j.toString()+")");break}I%2===1&&(o.left!==o.top&&(j=o.left,o.left=o.top,o.top=j),o.width!==o.height&&(j=o.width,o.width=o.height,o.height=j)),h.length&&(s='<g transform="'+h.join(" ")+'">'+s+"</g>")});const i=r.width,c=r.height,l=o.width,d=o.height;let u,f;i===null?(f=c===null?"1em":c==="auto"?d:c,u=Je(f,l/d)):(u=i==="auto"?l:i,f=c===null?Je(u,d/l):c==="auto"?d:c);const p={},y=(b,h)=>{zs(h)||(p[b]=h.toString())};return y("width",u),y("height",f),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+d.toString(),{attributes:p,body:s}}const Hs=/\sid="(\S+)"/g,Vs="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let qs=0;function Vn(e,t=Vs){const n=[];let r;for(;r=Hs.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(qs++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const se={local:!0,session:!0},qn={local:new Set,session:new Set};let Lt=!1;function Ks(e){Lt=e}const rn="iconify2",ve="iconify",Kn=ve+"-count",on=ve+"-version",Wn=36e5,Ws=168;function Ye(e,t){try{return e.getItem(t)}catch{}}function Tt(e,t,n){try{return e.setItem(t,n),!0}catch{}}function sn(e,t){try{e.removeItem(t)}catch{}}function et(e,t){return Tt(e,Kn,t.toString())}function tt(e){return parseInt(Ye(e,Kn))||0}let Te=typeof window>"u"?{}:window;function Gn(e){const t=e+"Storage";try{if(Te&&Te[t]&&typeof Te[t].length=="number")return Te[t]}catch{}se[e]=!1}function Qn(e,t){const n=Gn(e);if(!n)return;const r=Ye(n,on);if(r!==rn){if(r){const c=tt(n);for(let l=0;l<c;l++)sn(n,ve+l.toString())}Tt(n,on,rn),et(n,0);return}const o=Math.floor(Date.now()/Wn)-Ws,s=c=>{const l=ve+c.toString(),d=Ye(n,l);if(typeof d=="string"){try{const u=JSON.parse(d);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}sn(n,l)}};let i=tt(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,et(n,i)):qn[e].add(c))}function Xn(){if(!Lt){Ks(!0);for(const e in se)Qn(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=G(r,o);if(!Et(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function Zn(e,t){switch(e){case"local":case"session":se[e]=t;break;case"all":for(const n in se)se[n]=t;break}}const nt=Object.create(null);function Jn(e,t){nt[e]=t}function rt(e){return nt[e]||nt[""]}function Pt(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ze=Object.create(null),pe=["https://api.simplesvg.com","https://api.unisvg.com"],Ae=[];for(;pe.length>0;)pe.length===1||Math.random()>.5?Ae.push(pe.shift()):Ae.push(pe.pop());ze[""]=Pt({resources:["https://api.iconify.design"].concat(Ae)});function Yn(e,t){const n=Pt(t);return n===null?!1:(ze[e]=n,!0)}function He(e){return ze[e]}function Gs(){return Object.keys(ze)}const Qs=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ke=Qs();function Xs(e){ke=e}function Zs(){return ke}function Js(e,t){const n=He(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Ys(e){return e===404}const ei=(e,t,n)=>{const r=[],o=Js(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,d)=>{c+=l.length+1,c>=o&&d>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),r.push(i),r};function ti(e){if(typeof e=="string"){const t=He(e);if(t)return t.path}return"/"}const ni=(e,t,n)=>{if(!ke){n("abort",424);return}let r=ti(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;ke(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Ys(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},ri={prepare:ei,send:ni};function oi(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,l=n[s]||(n[s]=Object.create(null)),d=l[i]||(l[i]=G(s,i));let u;c in d.icons?u=t.loaded:i===""||d.missing.has(c)?u=t.missing:u=t.pending;const f={provider:s,prefix:i,name:c};u.push(f)}),t}function er(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function si(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const d=l.name;if(e.icons[d])i.loaded.push({provider:r,prefix:o,name:d});else if(e.missing.has(d))i.missing.push({provider:r,prefix:o,name:d});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||er([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let ii=0;function ai(e,t,n){const r=ii++,o=er.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function ci(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?fe(o,t,n):o;s&&r.push(s)}),r}var li={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ui(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let v=e.resources.slice(0);for(i=[];v.length>1;){const C=Math.floor(Math.random()*v.length);i.push(v[C]),v=v.slice(0,C).concat(v.slice(C+1))}i=i.concat(v)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",d=0,u,f=null,p=[],y=[];typeof r=="function"&&y.push(r);function b(){f&&(clearTimeout(f),f=null)}function h(){l==="pending"&&(l="aborted"),b(),p.forEach(v=>{v.status==="pending"&&(v.status="aborted")}),p=[]}function L(v,C){C&&(y=[]),typeof v=="function"&&y.push(v)}function g(){return{startTime:c,payload:t,status:l,queriesSent:d,queriesPending:p.length,subscribe:L,abort:h}}function I(){l="failed",y.forEach(v=>{v(void 0,u)})}function j(){p.forEach(v=>{v.status==="pending"&&(v.status="aborted")}),p=[]}function T(v,C,S){const w=C!=="success";switch(p=p.filter(E=>E!==v),l){case"pending":break;case"failed":if(w||!e.dataAfterTimeout)return;break;default:return}if(C==="abort"){u=S,I();return}if(w){u=S,p.length||(i.length?$():I());return}if(b(),j(),!e.random){const E=e.resources.indexOf(v.resource);E!==-1&&E!==e.index&&(e.index=E)}l="completed",y.forEach(E=>{E(S)})}function $(){if(l!=="pending")return;b();const v=i.shift();if(v===void 0){if(p.length){f=setTimeout(()=>{b(),l==="pending"&&(j(),I())},e.timeout);return}I();return}const C={status:"pending",resource:v,callback:(S,w)=>{T(C,S,w)}};p.push(C),d++,f=setTimeout($,e.rotate),n(v,t,C.callback)}return setTimeout($),g}function tr(e){const t={...li,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,d){const u=ui(t,c,l,(f,p)=>{r(),d&&d(f,p)});return n.push(u),u}function s(c){return n.find(l=>c(l))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function an(){}const Ge=Object.create(null);function di(e){if(!Ge[e]){const t=He(e);if(!t)return;const n=tr(t),r={config:t,redundancy:n};Ge[e]=r}return Ge[e]}function nr(e,t,n){let r,o;if(typeof e=="string"){const s=rt(e);if(!s)return n(void 0,424),an;o=s.send;const i=di(e);i&&(r=i.redundancy)}else{const s=Pt(e);if(s){r=tr(s);const i=e.resources?e.resources[0]:"",c=rt(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),an):r.query(t,o,n)().abort}function fi(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in se)Qn(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function pi(e,t){Lt||Xn();function n(r){let o;if(!se[r]||!(o=Gn(r)))return;const s=qn[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=tt(o),!et(o,i+1))return;const c={cached:Math.floor(Date.now()/Wn),provider:e.provider,data:t};return Tt(o,ve+i.toString(),JSON.stringify(c))}t.lastModified&&!fi(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function cn(){}function hi(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,si(e)}))}function mi(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=rt(n)))return;s.prepare(n,r,o).forEach(c=>{nr(n,c,l=>{if(typeof l!="object")c.icons.forEach(d=>{e.missing.add(d)});else try{const d=Et(e,l);if(!d.length)return;const u=e.pendingIcons;u&&d.forEach(f=>{u.delete(f)}),pi(e,l)}catch(d){console.error(d)}hi(e)})})}))}const gi=e=>{const n=G(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Dt=(e,t)=>{const n=ci(e,!0,$s()),r=oi(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,cn)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(l=>{const{provider:d,prefix:u}=l;if(u===c&&d===i)return;i=d,c=u,s.push(G(d,u));const f=o[d]||(o[d]=Object.create(null));f[u]||(f[u]=[])}),r.pending.forEach(l=>{const{provider:d,prefix:u,name:f}=l,p=G(d,u),y=p.pendingIcons||(p.pendingIcons=new Set);y.has(f)||(y.add(f),o[d][u].push(f))}),s.forEach(l=>{const{provider:d,prefix:u}=l;o[d][u].length&&mi(l,o[d][u])}),t?ai(t,r,s):cn},vi=e=>new Promise((t,n)=>{const r=typeof e=="string"?fe(e,!0):e;if(!r){n(e);return}Dt([r||e],o=>{if(o.length&&r){const s=be(r);if(s){t({...xe,...s});return}}n(e)})});function rr(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in zn?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const Ve={...Hn,inline:!1},Qe="iconify",ot="iconify-inline",te="iconifyData"+Date.now();let ie=[];function Se(e){for(let t=0;t<ie.length;t++){const n=ie[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function or(e,t=!1){let n=Se(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},ie.push(n),n)}function yi(){if(document.documentElement)return or(document.documentElement);ie.push({node:()=>document.documentElement})}function xi(e){ie=ie.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function we(){return ie}function bi(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let me=null;const Si={childList:!0,subtree:!0,attributes:!0};function sr(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,me&&me(e)}))}function wi(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const o=t[r];if(o.addedNodes&&o.addedNodes.length>0||o.type==="attributes"&&o.target[te]!==void 0){n.paused||sr(e);return}}}function ir(e,t){e.observer.instance.observe(t,Si)}function Be(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(wi.bind(null,e)),ir(e,n),t.paused||sr(e))}function ln(){we().forEach(Be)}function ar(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function ji(e){const t=me!==null;if(me!==e&&(me=e,t&&we().forEach(ar)),t){ln();return}bi(ln)}function st(e){(e?[e]:we()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function _i(e){if(e){const t=Se(e);t&&st(t)}else st()}function it(e){(e?[e]:we()).forEach(t=>{if(!t.observer){Be(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?ir(t,r):Be(t);else return}})}function Ci(e){if(e){const t=Se(e);t&&it(t)}else it()}function cr(e,t=!1){const n=or(e,t);return Be(n),n}function lr(e){const t=Se(e);t&&(ar(t),xi(e))}function Ei(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in Ve)if(n[o]!==r[o])return!0;return!1}function Ii(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const Li=/[\s,]+/;function Ti(e,t){t.split(Li).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Pi=["width","height"],Di=["inline","hFlip","vFlip"];function Ri(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function Ai(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&fe(t,!0);if(!n)return null;const r={...Ve,inline:e.classList&&e.classList.contains(ot)};Pi.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=Ii(o));const s=e.getAttribute("data-flip");typeof s=="string"&&Ti(r,s),Di.forEach(c=>{const l="data-"+c,d=Ri(e.getAttribute(l),l);typeof d=="boolean"&&(r[c]=d)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:i}}const Oi="svg."+Qe+", i."+Qe+", span."+Qe+", i."+ot+", span."+ot;function Mi(e){const t=[];return e.querySelectorAll(Oi).forEach(n=>{const r=n[te]||n.tagName.toLowerCase()!=="svg"?Ai(n):null;r&&t.push({node:n,props:r})}),t}function ur(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let ge;function $i(){try{ge=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{ge=null}}function ki(e){return ge===void 0&&$i(),ge?ge.createHTML(e):e}function dr(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function fr(e,t,n,r){const o=e.classList;if(r){const i=r.classList;Array.from(i).forEach(c=>{o.add(c)})}const s=[];return t.forEach(i=>{o.contains(i)?n.has(i)&&s.push(i):(o.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||o.remove(i)}),s}function pr(e,t,n){const r=e.style;(n||[]).forEach(s=>{r.removeProperty(s)});const o=[];for(const s in t)r.getPropertyValue(s)||(o.push(s),r.setProperty(s,t[s]));return o}function hr(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,s=Fe(n,o),i=e[te],c=ur(Vn(s.body),{"aria-hidden":"true",role:"img",...s.attributes});r.innerHTML=ki(c);const l=r.childNodes[0],d=e.attributes;for(let b=0;b<d.length;b++){const h=d.item(b),L=h.name;L!=="class"&&!l.hasAttribute(L)&&l.setAttribute(L,h.value)}const u=dr(t.icon),f=fr(l,u,new Set(i&&i.addedClasses),e),p=pr(l,o.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),y={...t,status:"loaded",addedClasses:f,addedStyles:p};return l[te]=y,e.parentNode&&e.parentNode.replaceChild(l,e),l}function Bi(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ni(e){return"data:image/svg+xml,"+Bi(e)}function Ui(e){return'url("'+Ni(e)+'")'}const Fi={display:"inline-block"},at={"background-color":"currentColor"},mr={"background-color":"transparent"},un={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},dn={"-webkit-mask":at,mask:at,background:mr};for(const e in dn){const t=dn[e];for(const n in un)t[e+"-"+n]=un[n]}function fn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function zi(e,t,n,r){const o=t.customisations,s=Fe(n,o),i=s.attributes,c=e[te],l=ur(s.body,{...i,width:n.width+"",height:n.height+""}),d=dr(t.icon),u=fr(e,d,new Set(c&&c.addedClasses)),p={"--svg":Ui(l),width:fn(i.width),height:fn(i.height),...Fi,...r?at:mr};o.inline&&(p["vertical-align"]="-0.125em");const y=pr(e,p,c&&c.addedStyles),b={...t,status:"loaded",addedClasses:u,addedStyles:y};return e[te]=b,e}let Pe=!1;function Hi(){Pe||(Pe=!0,setTimeout(()=>{Pe&&(Pe=!1,de())}))}function de(e,t=!1){const n=Object.create(null);function r(o,s){const{provider:i,prefix:c,name:l}=o,d=G(i,c),u=d.icons[l];if(u)return{status:"loaded",icon:u};if(d.missing.has(l))return{status:"missing"};if(s&&!gi(o)){const f=n[i]||(n[i]=Object.create(null));(f[c]||(f[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:we()).forEach(o=>{const s=typeof o.node=="function"?o.node():o.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(d,u,f){if(c||(c=!0,st(o)),d.tagName.toUpperCase()!=="SVG"){const p=u.mode,y=p==="mask"||(p==="bg"?!1:p==="style"?f.body.indexOf("currentColor")!==-1:null);if(typeof y=="boolean"){zi(d,u,{...xe,...f},y);return}}hr(d,u,f)}Mi(s).forEach(({node:d,props:u})=>{const f=d[te];if(!f){const{status:y,icon:b}=r(u.icon,!0);if(b){l(d,u,b);return}i=i||y==="loading",d[te]={...u,status:y};return}let p;if(Ei(f,u)){if(p=r(u.icon,f.name!==u.name),!p.icon){i=i||p.status==="loading",Object.assign(f,{...u,status:p.status});return}}else{if(f.status!=="loading")return;if(p=r(u.icon,!1),!p.icon){f.status=p.status;return}}l(d,u,p.icon)}),o.temporary&&!i?lr(s):t&&i?cr(s,!0):c&&o.observer&&it(o)});for(const o in n){const s=n[o];for(const i in s){const c=s[i];Dt(Array.from(c).map(l=>({provider:o,prefix:i,name:l})),Hi)}}}function Vi(e){const t=Se(e);t?de(t):de({node:e,temporary:!0},!0)}function gr(e,t,n=!1){const r=be(e);if(!r)return null;const o=fe(e),s=rr(Ve,t||{}),i=hr(document.createElement("span"),{name:e,icon:o,customisations:s},r);return n?i.outerHTML:i}function qi(){return"3.1.1"}function Ki(e,t){return gr(e,t,!1)}function Wi(e,t){return gr(e,t,!0)}function Gi(e,t){const n=be(e);if(!n)return null;const r=rr(Ve,t||{});return Fe(n,r)}function Qi(e){e?Vi(e):de()}if(typeof document<"u"&&typeof window<"u"){yi();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Fn(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{ji(de),de()})}function Xi(e,t){Zn(e,t!==!1)}function Zi(e){Zn(e,!0)}Jn("",ri);if(typeof document<"u"&&typeof window<"u"){Xn();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;Yn(n,o)||console.error(r)}catch{console.error(r)}}}}const Ji={getAPIConfig:He,setAPIModule:Jn,sendAPIQuery:nr,setFetch:Xs,getFetch:Zs,listAPIProviders:Gs},Yi={_api:Ji,addAPIProvider:Yn,loadIcons:Dt,loadIcon:vi,iconExists:Bs,getIcon:Ns,listIcons:Ms,addIcon:ks,addCollection:Fn,replaceIDs:Vn,calculateSize:Je,buildIcon:Fe,getVersion:qi,renderSVG:Ki,renderHTML:Wi,renderIcon:Gi,scan:Qi,observe:cr,stopObserving:lr,pauseObserver:_i,resumeObserver:Ci,enableCache:Xi,disableCache:Zi};try{self.Iconify===void 0&&(self.Iconify=Yi)}catch{}var Rt={},ea=N;Object.defineProperty(Rt,"__esModule",{value:!0});var vr=Rt.default=void 0,ta=ea(U()),na=a;vr=Rt.default=(0,ta.default)((0,na.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");function At({infos:e}){const{t}=J(),n=new URL("https://community.arcblock.io/discussions/add");e.forEach(o=>{n.searchParams.set(o.label,o.value)});const r=e.map(o=>`* ${o.label}: ${o.value}`).join(`
|
|
22
|
+
*/const Un=Object.freeze({left:0,top:0,width:16,height:16}),Me=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),xe=Object.freeze({...Un,...Me}),Ze=Object.freeze({...xe,body:"",hidden:!1});function Is(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function nn(e,t){const n=Is(e,t);for(const r in Ze)r in Me?r in e&&!(r in n)&&(n[r]=Me[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Ls(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,l=c&&s(c);l&&(o[i]=[c].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function Ts(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=nn(r[c]||o[c],s)}return i(t),n.forEach(i),nn(e,s)}function Ps(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=Ls(e);for(const o in r){const s=r[o];s&&(t(o,Ts(e,o,s)),n.push(o))}return n}const he=/^[a-z0-9]+(-[a-z0-9]+)*$/,fe=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),d={provider:o.length>0?o[0]:r,prefix:l,name:c};return t&&!Re(d)?null:d}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Re(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!Re(c,n)?null:c}return null},Re=(e,t)=>e?!!((e.provider===""||e.provider.match(he))&&(t&&e.prefix===""||e.prefix.match(he))&&e.name.match(he)):!1,Ds={provider:"",aliases:{},not_found:{},...Un};function We(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Rs(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!We(e,Ds))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(he)||typeof s.body!="string"||!We(s,Ze))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(he)||typeof i!="string"||!n[i]&&!r[i]||!We(s,Ze))return null}return t}const $e=Object.create(null);function As(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function G(e,t){const n=$e[e]||($e[e]=Object.create(null));return n[t]||(n[t]=As(e,t))}function Et(e,t){return Rs(t)?Ps(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Os(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function Ms(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys($e)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys($e[o]||{})).forEach(i=>{const c=G(o,i);n=n.concat(Object.keys(c.icons).map(l=>(o!==""?"@"+o+":":"")+i+":"+l))})}),n}let It=!1;function $s(e){return It}function be(e){const t=typeof e=="string"?fe(e,!0,It):e;if(t){const n=G(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function ks(e,t){const n=fe(e,!0,It);if(!n)return!1;const r=G(n.provider,n.prefix);return Os(r,n.name,t)}function Fn(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!Re({provider:t,prefix:n,name:"a"}))return!1;const r=G(t,n);return!!Et(r,e)}function Bs(e){return!!be(e)}function Ns(e){const t=be(e);return t?{...xe,...t}:null}const zn=Object.freeze({width:null,height:null}),Hn=Object.freeze({...zn,...Me}),Us=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Fs=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ye(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Us);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=Fs.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const zs=e=>e==="unset"||e==="undefined"||e==="none";function Fe(e,t){const n={...xe,...e},r={...Hn,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(b=>{const h=[],L=b.hFlip,g=b.vFlip;let I=b.rotate;L?g?I+=2:(h.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),h.push("scale(-1 1)"),o.top=o.left=0):g&&(h.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),h.push("scale(1 -1)"),o.top=o.left=0);let j;switch(I<0&&(I-=Math.floor(I/4)*4),I=I%4,I){case 1:j=o.height/2+o.top,h.unshift("rotate(90 "+j.toString()+" "+j.toString()+")");break;case 2:h.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:j=o.width/2+o.left,h.unshift("rotate(-90 "+j.toString()+" "+j.toString()+")");break}I%2===1&&(o.left!==o.top&&(j=o.left,o.left=o.top,o.top=j),o.width!==o.height&&(j=o.width,o.width=o.height,o.height=j)),h.length&&(s='<g transform="'+h.join(" ")+'">'+s+"</g>")});const i=r.width,c=r.height,l=o.width,d=o.height;let u,f;i===null?(f=c===null?"1em":c==="auto"?d:c,u=Ye(f,l/d)):(u=i==="auto"?l:i,f=c===null?Ye(u,d/l):c==="auto"?d:c);const p={},y=(b,h)=>{zs(h)||(p[b]=h.toString())};return y("width",u),y("height",f),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+d.toString(),{attributes:p,body:s}}const Hs=/\sid="(\S+)"/g,Vs="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let qs=0;function Vn(e,t=Vs){const n=[];let r;for(;r=Hs.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(qs++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const se={local:!0,session:!0},qn={local:new Set,session:new Set};let Lt=!1;function Ks(e){Lt=e}const rn="iconify2",ve="iconify",Kn=ve+"-count",on=ve+"-version",Wn=36e5,Ws=168;function Je(e,t){try{return e.getItem(t)}catch{}}function Tt(e,t,n){try{return e.setItem(t,n),!0}catch{}}function sn(e,t){try{e.removeItem(t)}catch{}}function et(e,t){return Tt(e,Kn,t.toString())}function tt(e){return parseInt(Je(e,Kn))||0}let Te=typeof window>"u"?{}:window;function Gn(e){const t=e+"Storage";try{if(Te&&Te[t]&&typeof Te[t].length=="number")return Te[t]}catch{}se[e]=!1}function Qn(e,t){const n=Gn(e);if(!n)return;const r=Je(n,on);if(r!==rn){if(r){const c=tt(n);for(let l=0;l<c;l++)sn(n,ve+l.toString())}Tt(n,on,rn),et(n,0);return}const o=Math.floor(Date.now()/Wn)-Ws,s=c=>{const l=ve+c.toString(),d=Je(n,l);if(typeof d=="string"){try{const u=JSON.parse(d);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}sn(n,l)}};let i=tt(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,et(n,i)):qn[e].add(c))}function Xn(){if(!Lt){Ks(!0);for(const e in se)Qn(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=G(r,o);if(!Et(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function Zn(e,t){switch(e){case"local":case"session":se[e]=t;break;case"all":for(const n in se)se[n]=t;break}}const nt=Object.create(null);function Yn(e,t){nt[e]=t}function rt(e){return nt[e]||nt[""]}function Pt(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ze=Object.create(null),pe=["https://api.simplesvg.com","https://api.unisvg.com"],Ae=[];for(;pe.length>0;)pe.length===1||Math.random()>.5?Ae.push(pe.shift()):Ae.push(pe.pop());ze[""]=Pt({resources:["https://api.iconify.design"].concat(Ae)});function Jn(e,t){const n=Pt(t);return n===null?!1:(ze[e]=n,!0)}function He(e){return ze[e]}function Gs(){return Object.keys(ze)}const Qs=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ke=Qs();function Xs(e){ke=e}function Zs(){return ke}function Ys(e,t){const n=He(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Js(e){return e===404}const ei=(e,t,n)=>{const r=[],o=Ys(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,d)=>{c+=l.length+1,c>=o&&d>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),r.push(i),r};function ti(e){if(typeof e=="string"){const t=He(e);if(t)return t.path}return"/"}const ni=(e,t,n)=>{if(!ke){n("abort",424);return}let r=ti(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;ke(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Js(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},ri={prepare:ei,send:ni};function oi(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,l=n[s]||(n[s]=Object.create(null)),d=l[i]||(l[i]=G(s,i));let u;c in d.icons?u=t.loaded:i===""||d.missing.has(c)?u=t.missing:u=t.pending;const f={provider:s,prefix:i,name:c};u.push(f)}),t}function er(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function si(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const d=l.name;if(e.icons[d])i.loaded.push({provider:r,prefix:o,name:d});else if(e.missing.has(d))i.missing.push({provider:r,prefix:o,name:d});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||er([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let ii=0;function ai(e,t,n){const r=ii++,o=er.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function ci(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?fe(o,t,n):o;s&&r.push(s)}),r}var li={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ui(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let v=e.resources.slice(0);for(i=[];v.length>1;){const C=Math.floor(Math.random()*v.length);i.push(v[C]),v=v.slice(0,C).concat(v.slice(C+1))}i=i.concat(v)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",d=0,u,f=null,p=[],y=[];typeof r=="function"&&y.push(r);function b(){f&&(clearTimeout(f),f=null)}function h(){l==="pending"&&(l="aborted"),b(),p.forEach(v=>{v.status==="pending"&&(v.status="aborted")}),p=[]}function L(v,C){C&&(y=[]),typeof v=="function"&&y.push(v)}function g(){return{startTime:c,payload:t,status:l,queriesSent:d,queriesPending:p.length,subscribe:L,abort:h}}function I(){l="failed",y.forEach(v=>{v(void 0,u)})}function j(){p.forEach(v=>{v.status==="pending"&&(v.status="aborted")}),p=[]}function T(v,C,S){const w=C!=="success";switch(p=p.filter(E=>E!==v),l){case"pending":break;case"failed":if(w||!e.dataAfterTimeout)return;break;default:return}if(C==="abort"){u=S,I();return}if(w){u=S,p.length||(i.length?$():I());return}if(b(),j(),!e.random){const E=e.resources.indexOf(v.resource);E!==-1&&E!==e.index&&(e.index=E)}l="completed",y.forEach(E=>{E(S)})}function $(){if(l!=="pending")return;b();const v=i.shift();if(v===void 0){if(p.length){f=setTimeout(()=>{b(),l==="pending"&&(j(),I())},e.timeout);return}I();return}const C={status:"pending",resource:v,callback:(S,w)=>{T(C,S,w)}};p.push(C),d++,f=setTimeout($,e.rotate),n(v,t,C.callback)}return setTimeout($),g}function tr(e){const t={...li,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,d){const u=ui(t,c,l,(f,p)=>{r(),d&&d(f,p)});return n.push(u),u}function s(c){return n.find(l=>c(l))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function an(){}const Ge=Object.create(null);function di(e){if(!Ge[e]){const t=He(e);if(!t)return;const n=tr(t),r={config:t,redundancy:n};Ge[e]=r}return Ge[e]}function nr(e,t,n){let r,o;if(typeof e=="string"){const s=rt(e);if(!s)return n(void 0,424),an;o=s.send;const i=di(e);i&&(r=i.redundancy)}else{const s=Pt(e);if(s){r=tr(s);const i=e.resources?e.resources[0]:"",c=rt(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),an):r.query(t,o,n)().abort}function fi(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in se)Qn(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function pi(e,t){Lt||Xn();function n(r){let o;if(!se[r]||!(o=Gn(r)))return;const s=qn[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=tt(o),!et(o,i+1))return;const c={cached:Math.floor(Date.now()/Wn),provider:e.provider,data:t};return Tt(o,ve+i.toString(),JSON.stringify(c))}t.lastModified&&!fi(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function cn(){}function hi(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,si(e)}))}function mi(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=rt(n)))return;s.prepare(n,r,o).forEach(c=>{nr(n,c,l=>{if(typeof l!="object")c.icons.forEach(d=>{e.missing.add(d)});else try{const d=Et(e,l);if(!d.length)return;const u=e.pendingIcons;u&&d.forEach(f=>{u.delete(f)}),pi(e,l)}catch(d){console.error(d)}hi(e)})})}))}const gi=e=>{const n=G(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Dt=(e,t)=>{const n=ci(e,!0,$s()),r=oi(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,cn)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(l=>{const{provider:d,prefix:u}=l;if(u===c&&d===i)return;i=d,c=u,s.push(G(d,u));const f=o[d]||(o[d]=Object.create(null));f[u]||(f[u]=[])}),r.pending.forEach(l=>{const{provider:d,prefix:u,name:f}=l,p=G(d,u),y=p.pendingIcons||(p.pendingIcons=new Set);y.has(f)||(y.add(f),o[d][u].push(f))}),s.forEach(l=>{const{provider:d,prefix:u}=l;o[d][u].length&&mi(l,o[d][u])}),t?ai(t,r,s):cn},vi=e=>new Promise((t,n)=>{const r=typeof e=="string"?fe(e,!0):e;if(!r){n(e);return}Dt([r||e],o=>{if(o.length&&r){const s=be(r);if(s){t({...xe,...s});return}}n(e)})});function rr(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in zn?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const Ve={...Hn,inline:!1},Qe="iconify",ot="iconify-inline",te="iconifyData"+Date.now();let ie=[];function Se(e){for(let t=0;t<ie.length;t++){const n=ie[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function or(e,t=!1){let n=Se(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},ie.push(n),n)}function yi(){if(document.documentElement)return or(document.documentElement);ie.push({node:()=>document.documentElement})}function xi(e){ie=ie.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function we(){return ie}function bi(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let me=null;const Si={childList:!0,subtree:!0,attributes:!0};function sr(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,me&&me(e)}))}function wi(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const o=t[r];if(o.addedNodes&&o.addedNodes.length>0||o.type==="attributes"&&o.target[te]!==void 0){n.paused||sr(e);return}}}function ir(e,t){e.observer.instance.observe(t,Si)}function Be(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(wi.bind(null,e)),ir(e,n),t.paused||sr(e))}function ln(){we().forEach(Be)}function ar(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function ji(e){const t=me!==null;if(me!==e&&(me=e,t&&we().forEach(ar)),t){ln();return}bi(ln)}function st(e){(e?[e]:we()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function _i(e){if(e){const t=Se(e);t&&st(t)}else st()}function it(e){(e?[e]:we()).forEach(t=>{if(!t.observer){Be(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?ir(t,r):Be(t);else return}})}function Ci(e){if(e){const t=Se(e);t&&it(t)}else it()}function cr(e,t=!1){const n=or(e,t);return Be(n),n}function lr(e){const t=Se(e);t&&(ar(t),xi(e))}function Ei(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in Ve)if(n[o]!==r[o])return!0;return!1}function Ii(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const Li=/[\s,]+/;function Ti(e,t){t.split(Li).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Pi=["width","height"],Di=["inline","hFlip","vFlip"];function Ri(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function Ai(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&fe(t,!0);if(!n)return null;const r={...Ve,inline:e.classList&&e.classList.contains(ot)};Pi.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=Ii(o));const s=e.getAttribute("data-flip");typeof s=="string"&&Ti(r,s),Di.forEach(c=>{const l="data-"+c,d=Ri(e.getAttribute(l),l);typeof d=="boolean"&&(r[c]=d)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:i}}const Oi="svg."+Qe+", i."+Qe+", span."+Qe+", i."+ot+", span."+ot;function Mi(e){const t=[];return e.querySelectorAll(Oi).forEach(n=>{const r=n[te]||n.tagName.toLowerCase()!=="svg"?Ai(n):null;r&&t.push({node:n,props:r})}),t}function ur(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let ge;function $i(){try{ge=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{ge=null}}function ki(e){return ge===void 0&&$i(),ge?ge.createHTML(e):e}function dr(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function fr(e,t,n,r){const o=e.classList;if(r){const i=r.classList;Array.from(i).forEach(c=>{o.add(c)})}const s=[];return t.forEach(i=>{o.contains(i)?n.has(i)&&s.push(i):(o.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||o.remove(i)}),s}function pr(e,t,n){const r=e.style;(n||[]).forEach(s=>{r.removeProperty(s)});const o=[];for(const s in t)r.getPropertyValue(s)||(o.push(s),r.setProperty(s,t[s]));return o}function hr(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,s=Fe(n,o),i=e[te],c=ur(Vn(s.body),{"aria-hidden":"true",role:"img",...s.attributes});r.innerHTML=ki(c);const l=r.childNodes[0],d=e.attributes;for(let b=0;b<d.length;b++){const h=d.item(b),L=h.name;L!=="class"&&!l.hasAttribute(L)&&l.setAttribute(L,h.value)}const u=dr(t.icon),f=fr(l,u,new Set(i&&i.addedClasses),e),p=pr(l,o.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),y={...t,status:"loaded",addedClasses:f,addedStyles:p};return l[te]=y,e.parentNode&&e.parentNode.replaceChild(l,e),l}function Bi(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ni(e){return"data:image/svg+xml,"+Bi(e)}function Ui(e){return'url("'+Ni(e)+'")'}const Fi={display:"inline-block"},at={"background-color":"currentColor"},mr={"background-color":"transparent"},un={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},dn={"-webkit-mask":at,mask:at,background:mr};for(const e in dn){const t=dn[e];for(const n in un)t[e+"-"+n]=un[n]}function fn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function zi(e,t,n,r){const o=t.customisations,s=Fe(n,o),i=s.attributes,c=e[te],l=ur(s.body,{...i,width:n.width+"",height:n.height+""}),d=dr(t.icon),u=fr(e,d,new Set(c&&c.addedClasses)),p={"--svg":Ui(l),width:fn(i.width),height:fn(i.height),...Fi,...r?at:mr};o.inline&&(p["vertical-align"]="-0.125em");const y=pr(e,p,c&&c.addedStyles),b={...t,status:"loaded",addedClasses:u,addedStyles:y};return e[te]=b,e}let Pe=!1;function Hi(){Pe||(Pe=!0,setTimeout(()=>{Pe&&(Pe=!1,de())}))}function de(e,t=!1){const n=Object.create(null);function r(o,s){const{provider:i,prefix:c,name:l}=o,d=G(i,c),u=d.icons[l];if(u)return{status:"loaded",icon:u};if(d.missing.has(l))return{status:"missing"};if(s&&!gi(o)){const f=n[i]||(n[i]=Object.create(null));(f[c]||(f[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:we()).forEach(o=>{const s=typeof o.node=="function"?o.node():o.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(d,u,f){if(c||(c=!0,st(o)),d.tagName.toUpperCase()!=="SVG"){const p=u.mode,y=p==="mask"||(p==="bg"?!1:p==="style"?f.body.indexOf("currentColor")!==-1:null);if(typeof y=="boolean"){zi(d,u,{...xe,...f},y);return}}hr(d,u,f)}Mi(s).forEach(({node:d,props:u})=>{const f=d[te];if(!f){const{status:y,icon:b}=r(u.icon,!0);if(b){l(d,u,b);return}i=i||y==="loading",d[te]={...u,status:y};return}let p;if(Ei(f,u)){if(p=r(u.icon,f.name!==u.name),!p.icon){i=i||p.status==="loading",Object.assign(f,{...u,status:p.status});return}}else{if(f.status!=="loading")return;if(p=r(u.icon,!1),!p.icon){f.status=p.status;return}}l(d,u,p.icon)}),o.temporary&&!i?lr(s):t&&i?cr(s,!0):c&&o.observer&&it(o)});for(const o in n){const s=n[o];for(const i in s){const c=s[i];Dt(Array.from(c).map(l=>({provider:o,prefix:i,name:l})),Hi)}}}function Vi(e){const t=Se(e);t?de(t):de({node:e,temporary:!0},!0)}function gr(e,t,n=!1){const r=be(e);if(!r)return null;const o=fe(e),s=rr(Ve,t||{}),i=hr(document.createElement("span"),{name:e,icon:o,customisations:s},r);return n?i.outerHTML:i}function qi(){return"3.1.1"}function Ki(e,t){return gr(e,t,!1)}function Wi(e,t){return gr(e,t,!0)}function Gi(e,t){const n=be(e);if(!n)return null;const r=rr(Ve,t||{});return Fe(n,r)}function Qi(e){e?Vi(e):de()}if(typeof document<"u"&&typeof window<"u"){yi();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Fn(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{ji(de),de()})}function Xi(e,t){Zn(e,t!==!1)}function Zi(e){Zn(e,!0)}Yn("",ri);if(typeof document<"u"&&typeof window<"u"){Xn();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;Jn(n,o)||console.error(r)}catch{console.error(r)}}}}const Yi={getAPIConfig:He,setAPIModule:Yn,sendAPIQuery:nr,setFetch:Xs,getFetch:Zs,listAPIProviders:Gs},Ji={_api:Yi,addAPIProvider:Jn,loadIcons:Dt,loadIcon:vi,iconExists:Bs,getIcon:Ns,listIcons:Ms,addIcon:ks,addCollection:Fn,replaceIDs:Vn,calculateSize:Ye,buildIcon:Fe,getVersion:qi,renderSVG:Ki,renderHTML:Wi,renderIcon:Gi,scan:Qi,observe:cr,stopObserving:lr,pauseObserver:_i,resumeObserver:Ci,enableCache:Xi,disableCache:Zi};try{self.Iconify===void 0&&(self.Iconify=Ji)}catch{}var Rt={},ea=N;Object.defineProperty(Rt,"__esModule",{value:!0});var vr=Rt.default=void 0,ta=ea(U()),na=a;vr=Rt.default=(0,ta.default)((0,na.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");function At({infos:e}){const{t}=Y(),n=new URL("https://community.arcblock.io/discussions/add");e.forEach(o=>{n.searchParams.set(o.label,o.value)});const r=e.map(o=>`* ${o.label}: ${o.value}`).join(`
|
|
23
23
|
`);return n.searchParams.set("report","server"),n.searchParams.set("context",`[Enter feedback here]
|
|
24
24
|
|
|
25
25
|
|
|
@@ -29,7 +29,7 @@ import{y as Ne,f as k,h as Z,z as qe,A as Er,b as Ir,B as Lr,C as Tr,D as hn,E a
|
|
|
29
29
|
${r}
|
|
30
30
|
* Page: ${window.location.href}
|
|
31
31
|
-->
|
|
32
|
-
`),O(R,{sx:{mx:{xs:0,md:2}},children:O(Sn,{sx:{color:"text.primary"},target:"_blank",href:n.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}At.propTypes={infos:_.arrayOf(_.shape({label:_.string,value:_.string}))};At.defaultProps={infos:[]};var Ot={},ra=N;Object.defineProperty(Ot,"__esModule",{value:!0});var ct=Ot.default=void 0,oa=ra(U()),pn=a;ct=Ot.default=(0,oa.default)([(0,pn.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,pn.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function
|
|
32
|
+
`),O(R,{sx:{mx:{xs:0,md:2}},children:O(Sn,{sx:{color:"text.primary"},target:"_blank",href:n.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}At.propTypes={infos:_.arrayOf(_.shape({label:_.string,value:_.string}))};At.defaultProps={infos:[]};var Ot={},ra=N;Object.defineProperty(Ot,"__esModule",{value:!0});var ct=Ot.default=void 0,oa=ra(U()),pn=a;ct=Ot.default=(0,oa.default)([(0,pn.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,pn.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function J({children:e}){return Ue(n=>n.breakpoints.down("md"))?a.jsx(Xe,{enterDelay:500,leaveDelay:2e3,title:typeof e=="string"?e:"",children:a.jsx(R,{sx:{display:"flex",alignItems:"center",gap:1},children:a.jsx(ct,{fontSize:"small"})})}):a.jsxs(R,{sx:{display:"flex",alignItems:"center",gap:1},children:[a.jsx(ct,{fontSize:"small"}),e]})}J.propTypes={children:_.node.isRequired};const sa="https://launcher.arcblock.io/",ia=30*24*60*60*1e3;function Mt({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var $,v,C,S,w,E;const{t:s,locale:i}=Y(),c=Ne(),[l,d]=Ln({safeIframeRef:null,popoverAnchorEl:null}),u=x.useRef(null),f=Ue(P=>P.breakpoints.down("md")),{sx:p={},...y}=o,b=f?"mobile":"desktop",h=In(async()=>{const[P,Q]=await Promise.all([c.api.getLauncherSession({input:{launcherSessionId:r,launcherUrl:e}}),hn({launcherUrl:e||sa,nftDid:n,launcherSessionId:r,locale:i})]);if(P!=null&&P.error)throw new Error(P.error);return{launcherSession:P.launcherSession,subscriptionURL:Q}},[i]);if(h.loading)return a.jsx(oe,{label:a.jsxs(J,{children:[!f&&s("expiration.desktop.loading"),a.jsx(ee,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...y});if(h.error)return console.error(h.error),a.jsx(oe,{label:a.jsx(J,{children:s(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...y,onClick:()=>h.retry()});const L=P=>{d({popoverAnchorEl:P.currentTarget})},g=()=>{d({popoverAnchorEl:null})},I=($=h.value)==null?void 0:$.launcherSession;let j="success";[M.LAUNCH_SESSION_STATUS.overdue,M.LAUNCH_SESSION_STATUS.canceled,M.LAUNCH_SESSION_STATUS.terminated].includes((C=(v=h.value)==null?void 0:v.launcherSession)==null?void 0:C.status)&&(j="error");let T=null;if(I.expirationDate&&!I.subscription){const P=le(I.expirationDate).diff(le(),"ms");T=s(`expiration.${b}.tips.${j}`,{validity:En(P,{locale:mn(i),compact:!0,verbose:!0})}),P>0&&P<=ia&&(j="warning")}return a.jsxs(a.Fragment,{children:[a.jsx(oe,{label:a.jsx(J,{children:T||((w=(S=I==null?void 0:I.subscription)==null?void 0:S.product)==null?void 0:w.name)||s("common.subscription")}),color:j,variant:j!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...y,onClick:L}),a.jsx(wn,{id:"popover-info",open:!!l.popoverAnchorEl,anchorEl:l.popoverAnchorEl,onClose:g,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:a.jsx("iframe",{ref:u,title:s("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(E=h.value)==null?void 0:E.subscriptionURL})})]})}Mt.propTypes={chainHost:_.string.isRequired,nftId:_.string,launcherSessionId:_.string,sx:_.object,retention:_.number,launcherUrl:_.string.isRequired};Mt.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};const aa=30*24*60*60*1e3,ca="https://launcher.arcblock.io/";function $t({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var v,C,S,w,E,P,Q;const{t:s,locale:i}=Y(),[c,l]=Ln({safeIframeRef:null,popoverAnchorEl:null}),d=x.useRef(null),u=Ue(F=>F.breakpoints.down("md")),f=Ne(),{sx:p={},...y}=o,b=u?"mobile":"desktop",h=In(async()=>{const[F,je]=await Promise.all([f.api.getLauncherSession({input:{launcherSessionId:r||n,launcherUrl:e}}),hn({launcherUrl:e||ca,nftDid:n,launcherSessionId:r,locale:i})]);if(F!=null&&F.error)throw new Error(F.error);return{launcherSession:F.launcherSession,subscriptionURL:je}},[i]);if(h.loading)return a.jsx(oe,{label:a.jsxs(J,{children:[!u&&s("expiration.desktop.loading"),a.jsx(ee,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...y});if(h.error)return console.error(h.error),a.jsx(oe,{label:a.jsx(J,{children:s(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...y,onClick:()=>h.retry()});const L=(C=(v=h.value)==null?void 0:v.launcherSession)==null?void 0:C.expirationDate,g=le(L).isBefore(le()),I=le(L).diff(le(),"ms");let j="success";I<=aa&&(j="warning"),g&&(j="error");const T=F=>{l({popoverAnchorEl:F.currentTarget})},$=()=>{l({popoverAnchorEl:null})};return a.jsxs(a.Fragment,{children:[((w=(S=h.value)==null?void 0:S.launcherSession)==null?void 0:w.subscription)&&a.jsx(oe,{label:a.jsx(J,{children:s("expiration.desktop.nextInvoice",{date:Pr(L,i)})}),color:"success",variant:"outlined",sx:{cursor:"pointer",...p},...y,onClick:T}),!((P=(E=h.value)==null?void 0:E.launcherSession)!=null&&P.subscription)&&a.jsx(oe,{label:a.jsx(J,{children:s(`expiration.${b}.tips.${j}`,{validity:En(I,{locale:mn(i),compact:!0,verbose:!0})})}),color:j,variant:j!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...y,onClick:T}),a.jsx(wn,{id:"popover-info",open:!!c.popoverAnchorEl,anchorEl:c.popoverAnchorEl,onClose:$,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:a.jsx("iframe",{ref:d,title:s("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(Q=h.value)==null?void 0:Q.subscriptionURL})})]})}$t.propTypes={chainHost:_.string.isRequired,nftId:_.string,launcherSessionId:_.string,sx:_.object,retention:_.number,launcherUrl:_.string.isRequired};$t.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};var kt={},la=N;Object.defineProperty(kt,"__esModule",{value:!0});var yr=kt.default=void 0,ua=la(U()),da=a;yr=kt.default=(0,ua.default)((0,da.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");var Bt={},fa=N;Object.defineProperty(Bt,"__esModule",{value:!0});var xr=Bt.default=void 0,pa=fa(U()),ha=a;xr=Bt.default=(0,pa.default)((0,ha.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");function ma(){const{inFullPage:e,toggleFullPage:t}=po();return O(gn,{onClick:t,children:e?O(xr,{sx:{transform:"scale(1.3)"}}):O(yr,{sx:{transform:"scale(1.3)"}})})}function Nt({children:e}){var j,T,$;const{t}=Y(),{loading:n,error:r,actions:{refreshBlocklet:o},env:s,blocklet:i}=ye(),{info:c}=Dr(),l=yo(),d=Ue(v=>v.breakpoints.down("md")),[u,f]=x.useState(null),{appId:p,version:y}=s,b=[{label:"App ID",value:p},{label:"App Version",value:y},{label:"App Bundle Name",value:(j=i==null?void 0:i.meta)==null?void 0:j.bundleName},{label:"Server Id",value:c.did},{label:"Server Version",value:c.version}],h=v=>{var S,w,E,P;const C=Array.isArray(v)?v:[v];if(d||C.unshift(O(ma,{})),i){const Q={cursor:"pointer",marginRight:{xs:"8px",md:"48px"}};Rr(i)?C.unshift(O(Mt,{chainHost:(S=i==null?void 0:i.controller)==null?void 0:S.chainHost,nftId:(w=i==null?void 0:i.controller)==null?void 0:w.nftId,launcherSessionId:(E=i==null?void 0:i.controller)==null?void 0:E.launcherSessionId,launcherUrl:(P=i==null?void 0:i.controller)==null?void 0:P.launcherUrl,sx:Q})):c.ownerNft&&c.launcher&&C.unshift(O($t,{chainHost:c.launcher.chainHost,launcherUrl:c.launcher.url,nftId:c.ownerNft.did,launcherSessionId:c.ownerNft.launcherSessionId,sx:Q}))}return C},L=(T=((i==null?void 0:i.environments)||[]).find(v=>v.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:T.value,g=($=((i==null?void 0:i.environments)||[]).find(v=>v.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:$.value;return x.useEffect(()=>{if(d)f(null);else{const{appLogo:v,appLogoRect:C}=window.blocklet??{};(C||v)&&f(`${C||v}&v=${Date.now()}`)}},[L,g,d]),Ke(ga,{legacy:!1,fullWidth:!0,headerAddons:h,headerProps:{logo:u?O("img",{src:u,alt:"logo"}):null},isMobile:d,footerProps:{addon:O(At,{infos:b})},children:[!i&&n&&O(Oe,{relative:"parent",children:O(ee,{})}),!i&&r&&Ke(Oe,{relative:"parent",children:[Ke(R,{display:"flex",alignItems:"center",children:[O(vr,{color:"error",sx:{marginRight:1}}),dt(r)]}),O(ut,{onClick:()=>o(),children:O("span",{style:{textDecoration:"underline"},children:t("common.retry")})})]}),!!i&&O(R,{flex:1,padding:d?2:3,display:"flex",flexDirection:"column",children:O(uo,{FallbackComponent:fo,resetKeys:[l.pathname],children:e})})]})}Nt.propTypes={children:_.any};Nt.defaultProps={children:null};const ga=lt(lo)`
|
|
33
33
|
div.dashboard-content {
|
|
34
34
|
padding: 0;
|
|
35
35
|
}
|
|
@@ -37,7 +37,7 @@ ${r}
|
|
|
37
37
|
max-height: 400px;
|
|
38
38
|
overflow-y: auto;
|
|
39
39
|
}
|
|
40
|
-
`;function va(){const{t:e,locale:t}=
|
|
40
|
+
`;function va(){const{t:e,locale:t}=Y(),{blocklet:n,launcherSession:r}=ye(),[o,s]=Co({subscriptionURL:"#"});if(x.useEffect(()=>{var l,d;Ft(n,r)&&Ar({launcherSessionId:(l=n==null?void 0:n.controller)==null?void 0:l.launcherSessionId,launcherUrl:(d=n==null?void 0:n.controller)==null?void 0:d.launcherUrl,locale:t}).then(u=>{s({subscriptionURL:u})}).catch(u=>{console.error("get subscription url error:",u)})},[n,r]),!n||!r||!Or(n)||r.status===M.LAUNCH_SESSION_STATUS.installed)return"";let i=null,c="";return Ft(n,r)?(i=a.jsx(Sn,{href:o.subscriptionURL,children:e("blocklet.manageSubscription")}),c=e("blocklet.suspendedCausedByExpired",{deadline:zt(r==null?void 0:r.reservedUntil,t)})):Mr(n,r)&&(i=a.jsx(_n,{to:Cn(M.WELLKNOWN_BLOCKLET_ADMIN_PATH,"/did-spaces"),children:e("common.backup")}),c=e("blocklet.suspendedCausedByTerminated",{canceledAt:zt(r==null?void 0:r.terminatedAt,t),deadline:$r(r==null?void 0:r.terminatedAt,t)})),a.jsxs(R,{component:ho,type:"error",sx:{"&> .alert-content":{display:"block"}},children:[c,a.jsx(ue,{component:"span",sx:{marginLeft:"4px"},children:i})]})}const br=x.createContext({});function Za(){return x.useContext(br)}const{Provider:ya,Consumer:Ya}=br,{did:V,appId:xa}=window.env;function ba({children:e}){var v,C;const{t,locale:n}=Y(),{blocklet:r}=ye(),[o,s]=x.useState([]),[i,c]=x.useState([]),[l,d]=x.useState([]),u=k.getDisplayName(r),f=((v=((r==null?void 0:r.environments)||[]).find(S=>S.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR))==null?void 0:v.value)||"auto",p=(r==null?void 0:r.trustedPassports)||[],y=(r==null?void 0:r.trustedFactories)||[],b=(r==null?void 0:r.enablePassportIssuance)!==!1,h=async()=>{try{const S=await Le.doBatchQuery({getRoles:{input:{teamDid:V}},getPermissions:{input:{teamDid:V}},getInvitations:{input:{teamDid:V}}});c((S.getRoles.roles||[]).filter(w=>!M.RBAC_CONFIG.roles.some(E=>E.name===w.name&&(!E.passport||E.ci))).map(w=>(w.hasDescription=!!w.description,w.hasDescription||(w.description=t("team.passport.description",{teamName:u,title:w.title})),w))),d(S.getPermissions.permissions||[]),s(S.getInvitations.invitations||[])}catch(S){q.error(S.message)}},L=({did:S}={})=>{const w={teamDid:V,user:{did:S}};return Le.getUser({input:w})},g=({query:S,paging:w}={})=>{const E={teamDid:V};return w&&(E.paging=w),S&&(E.query=S),E.sort={lastLoginAt:-1},Le.getUsers({input:E})},I=()=>Le.getUsersCountPerRole({input:{teamDid:V}}),j=()=>h();x.useEffect(()=>{var S;(S=r==null?void 0:r.meta)!=null&&S.did&&h()},[(C=r==null?void 0:r.meta)==null?void 0:C.did]),x.useEffect(()=>{c(S=>S.map(w=>(w.hasDescription||(w.description=t("team.passport.description",{teamName:u,title:w.title})),{...w})))},[t,n]);const T=S=>{S.teamDid===V&&h()};De(Z.TeamEvents.userAdded,T,[V]),De(Z.TeamEvents.userRemoved,T,[V]),De(Z.TeamEvents.userUpdated,T,[V]);const $={teamDid:V,teamIssuerDid:xa,teamName:u,invitations:o,roles:i,permissions:l,trustedPassports:p,trustedFactories:y,isNodeTeam:!1,enablePassportIssuance:b,refresh:j,passportColor:f,endpoint:window.location.origin,blocklet:r,api:{getUser:L,getUsers:g,getUsersCountPerRole:I}};return a.jsx(ya,{value:$,children:e})}const Sa=x.lazy(()=>K(()=>import("./overview-Dc_26DuW.js"),__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,30,31]))),wa=x.lazy(()=>K(()=>import("./index-CU_Y2Ics.js"),__vite__mapDeps([32,2,1,3,4,5,6,33,12,34,35,36,9,10,18,19,37,23,21,8,38,22,39,40,26,27,41,28,29,30,31,20,17]))),ja=x.lazy(()=>K(()=>import("./index-B8B9jSby.js"),__vite__mapDeps([42,2,1,12,3,4,5,6,43,14,36,9,18,19,22,23,44,10,17,28,29,30,31,20,21]))),_a=x.lazy(()=>K(()=>import("./index-B-0OFwWF.js"),__vite__mapDeps([45,2,1,46,3,4,5,6,47,48,49,50,9,33,43,51,52,53,31,34,18,19,22,23,17,37,54,55,56,7,12,8,13,28,29,30,20,21]))),Ca=x.lazy(()=>K(()=>import("./audit-logs-DtJdynVz.js"),__vite__mapDeps([57,1,2,58,59,3,4,5,6,28,9,60,31,61]))),Ea=x.lazy(()=>K(()=>import("./log-B5iPDWZ_.js"),__vite__mapDeps([62,1,2,28,3,4,5,6,9,63,53,64]))),Ia=x.lazy(()=>K(()=>import("./index-DHmJ4NAw.js"),__vite__mapDeps([65,2,1,9,3,4,5,6,12,66,22,23,19,10,67,68,53,41,63,69,17,33,70,40,25,52,71,38,72,73,49,37,30,51,58,59,61]))),La=x.lazy(()=>K(()=>import("./config-navigation-Cn0fwBBG.js"),__vite__mapDeps([74,2,3,4,5,1,6,75,9,54,76,77,31,23,28,22,29,30,19,20,21,17]))),Ta=x.lazy(()=>K(()=>import("./index-jViTGvBx.js"),__vite__mapDeps([78,1,2,5,4,9,3,6,79,25,80,81,38,23,8,27,30,56]))),Pa=x.lazy(()=>K(()=>import("./component-DET9TWBv.js"),__vite__mapDeps([82,1,2,4,3,5,6,12,48,49,50,9,33,43,51,56,18,19,83,75,84,68,37,52,85,23,86,72,73,38,41,22,30,10,87,88,81,25,89,44,58,59,76,8,28,16,79,90,80,91,14,24,53,29,26,27,92,31,20,21,17]))),Da=x.lazy(()=>K(()=>import("./analytics-Cym7YiQM.js"),__vite__mapDeps([93,1,2,3,4,5,6,9,20,21,46,94,85,52,84,23,71,31,53,28,22,29,30,19,17])));function Ra(){var h,L;const e=xo(),{tab:t="overview"}=bo(),{blocklet:n,actions:{refreshBlocklet:r}}=ye(),{t:o}=Y(),s=(h=n==null?void 0:n.meta)==null?void 0:h.did,i=g=>{e(`${M.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${g}`)},c=()=>{r()},l=!n||Ht(n.status)?[]:k.getAppMissingConfigs(n),d=[{label:o("common.overview"),value:"overview"},{label:a.jsx(Kr,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!l.length,children:o("common.components")}),value:"components"}];Ht(n==null?void 0:n.status)||d.push({label:o("common.configuration"),value:"configuration"}),d.push({label:o("common.auditLogs"),value:"audit-logs"}),n&&((L=n.children)!=null&&L.length)&&n.structVersion===M.APP_STRUCT_VERSION&&d.push({label:o("common.logs"),value:"logs"}),d.push({label:o("common.configNavigation"),value:"navigation"});const u=a.jsx(Ca,{scope:s,categories:["blocklet","team","security","certificates","gateway"]});De(M.EVENTS.NOTIFICATION_BLOCKLET_CREATE,g=>{const{severity:I,title:j,description:T}=g||{};I==="error"?q.error(T||j):q.success(T||j)});const f={overview:a.jsx(Sa,{}),members:a.jsx(R,{mt:-5,children:a.jsx(wa,{type:"blocklet",createPassportSvg:Vt})}),passports:a.jsx(R,{mt:-4.5,children:a.jsx(ja,{createPassportSvg:Vt})}),components:Pa,configuration:a.jsx(_a,{blocklet:n,onUpdate:c}),"audit-logs":u,logs:Ea,navigation:La,"did-spaces":a.jsx(Ta,{navOrientation:"horizontal",sx:{mt:-4}}),analytics:a.jsx(R,{mt:-5,children:a.jsx(Da,{})}),publish:a.jsx(R,{mt:-3,children:a.jsx(Ia,{})})},p=f[t]||f.overview,y=!["members","passports","analytics","publish","notifications","did-spaces"].includes(t),b=n?a.jsxs(Ct,{type:"components",children:[y&&a.jsx(R,{pt:3,children:a.jsx(go,{tabs:d,current:t,onChange:i,scrollButtons:"auto"})}),a.jsx("div",{className:"page-content",children:a.jsx(x.Suspense,{fallback:a.jsx(Oe,{relative:"parent",children:a.jsx(ee,{})}),children:x.isValidElement(p)?p:a.jsx(p,{blocklet:n})})})]}):a.jsx(Oe,{relative:"parent",children:a.jsx(ee,{})});return a.jsx(Br,{children:a.jsx(ba,{children:a.jsx(Nt,{children:a.jsxs(Oa,{children:[y&&a.jsxs(R,{component:"div",className:"page-header",children:[a.jsxs(ue,{component:"h6",variant:"h6",className:"page-title",color:"textPrimary",children:[n?a.jsx(wo,{blocklet:n,style:{marginRight:16}}):null,n?a.jsxs(R,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[a.jsx(R,{children:k.getDisplayName(n)}),(n==null?void 0:n.status)!=="unknown"&&a.jsx(_t,{size:"12px",status:n.status,source:n.source,progress:n.progress})]}):`${o("common.blocklet")} ${o("common.detail")}`]}),n?a.jsx(rs,{className:"page-actions",hasPermission:!0,blocklet:n,onStart:()=>{},onComplete:({error:g}={})=>{g&&q.error(g.message)},variant:"group"}):null]}),a.jsx(Bn,{}),a.jsx(va,{}),b]})})})})}function Aa(){var r;const{blocklet:e}=ye(),{t}=Y(),n=(r=e==null?void 0:e.meta)==null?void 0:r.did;return x.useEffect(()=>{const o=kr();return n&&o.connect(),()=>{n&&o.isConnected()&&o.disconnect()}},[n]),a.jsxs(a.Fragment,{children:[a.jsx(mo,{children:a.jsx("title",{children:t("pageTitle.dashboard")})}),a.jsx(Ra,{})]})}const Oa=lt.main`
|
|
41
41
|
.page-header {
|
|
42
42
|
display: flex;
|
|
43
43
|
justify-content: space-between;
|
|
@@ -83,4 +83,4 @@ ${r}
|
|
|
83
83
|
margin-bottom: 15px;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
`,
|
|
86
|
+
`,Ja=Object.freeze(Object.defineProperty({__proto__:null,default:Aa},Symbol.toStringTag,{value:"Module"}));export{_t as B,jt as W,hs as _,On as a,ce as b,Tn as c,vr as d,Xa as e,Pn as f,Ja as g,Za as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s,aQ as p,E as r}from"./vendor-mui-core-COxJgW9_.js";import{L as d}from"./vendor-react-D-afvo_7.js";import{
|
|
1
|
+
import{j as s,aQ as p,E as r}from"./vendor-mui-core-COxJgW9_.js";import{L as d}from"./vendor-react-D-afvo_7.js";import{U as f}from"./vendor-arcblock-Dn16DH88.js";function o({did:a,href:t,external:n,avatarProps:l,...i}){const e=s.jsx(f,{did:a,...i});return t?n?s.jsx(p,{target:"_blank",href:t,underline:"hover",children:e}):s.jsx(d,{to:t,children:e}):e}o.propTypes={did:r.string.isRequired,to:r.string,href:r.string,avatarProps:r.object,external:r.bool};o.defaultProps={to:"",href:"",avatarProps:{},external:!1};export{o as W};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{a1 as E,j as t,a3 as i,T as j,I as _,C as w,E as y,aa as A}from"./vendor-mui-core-COxJgW9_.js";import{H as L,o as W,f as H,af as R,d as S}from"./index-tDqjC_e2.js";import{D as z,a as O,B as q,A as N}from"./domain-list-C9eJrdcx.js";import{ad as $,af as F,bB as K}from"./vendor-arcblock-Dn16DH88.js";import{P as M}from"./page-header-B3m4UCOV.js";import{r}from"./vendor-react-D-afvo_7.js";import{_ as U}from"./useSetState-Crt4S51m.js";import{S as l}from"./button-CPeDg26t.js";import{S as Y}from"./layout-PlCf3Rtw.js";import{S as G}from"./step-actions-FdD-71wr.js";import"./vendor-utils-CV7RLr7b.js";import"./vendor-hooks-DzETutIU.js";import"./Add-WwBlcqNF.js";import"./base32-DZ5GWnEl.js";import"./LockIcon-BIlUQ2kd.js";import"./CheckCircle-n23HoB1l.js";import"./util-CmcVraD_.js";import"./permission-C7OYX2OJ.js";import"./session-UImnJahL.js";import"./useAsyncRetry-m5oMMmVh.js";import"./useAsync-BfmmMB4I.js";import"./confirm-DhCXP8vW.js";import"./format-error-C0Ke3VXF.js";import"./InfoOutlined-7hC78o3_.js";import"./api-C7qcY4XU.js";import"./index-Dk8-Ibsd.js";import"./actions-DsY16tuf.js";import"./MoreHoriz-CtnQ7uqf.js";import"./content-layout-C8ThavEP.js";var p={},J=E;Object.defineProperty(p,"__esModule",{value:!0});var v=p.default=void 0,Q=J($()),V=t;v=p.default=(0,Q.default)((0,V.jsx)("path",{d:"M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2m6 9.8a.9.9 0 0 1-.1.5l-2.1 4.9a1.34 1.34 0 0 1-1.3.8H9a2 2 0 0 1-2-2v-5a1.28 1.28 0 0 1 .4-1L12 5l.69.69a1.08 1.08 0 0 1 .3.7v.2L12.41 10H17a1 1 0 0 1 1 1z"}),"Recommend");function c({onNext:s,onPrevious:g}){var h,D;const{t:o}=r.useContext(F),{info:C}=L(),[k,u]=r.useState(!1),{blocklet:a}=W(),[x,I]=r.useState(""),[d,P]=r.useState(!1),B=(((a==null?void 0:a.site)||{}).domainAliases||[]).map(e=>H.replaceSlotToIp(e.value,x)),[n,m]=U({domain:"",invalidDNSDomain:null,type:"",addDomainState:{text:""}}),f=(D=(h=a.environments)==null?void 0:h.find(e=>e.key==="BLOCKLET_APP_PK"))==null?void 0:D.value,T=B.find(e=>R.isDidDomain(e));return r.useEffect(()=>{S.get(`/dns-resolve?hostname=${window.location.hostname}`).then(({data:e})=>{I(e.address||"")}).catch(e=>{console.error(e.message)})},[]),t.jsxs(X,{children:[t.jsx("div",{className:"header",children:t.jsx(M,{title:o("setup.domain.title"),subTitle:o("setup.domain.subTitle"),onClickBack:g})}),t.jsxs(i,{className:"form",sx:{display:"flex",flexDirection:"column",gap:3,overflowY:"auto"},children:[t.jsxs(i,{children:[t.jsxs(i,{color:"text.primary",fontWeight:"fontWeightBold",fontSize:"1.125rem",children:[t.jsx(i,{display:"inline",children:o("setup.domain.skipStart")}),t.jsx(l,{variant:"text",size:"small",disabled:!!n.addDomainState.text,onClick:()=>s(),style:{paddingTop:0},children:t.jsx("span",{style:{textDecoration:"underline"},children:o("setup.domain.skip")})}),t.jsx(i,{display:"inline",children:o("setup.domain.skipEnd")})]}),t.jsx(i,{sx:{marginTop:"12px"},children:t.jsx(O,{listOnly:!0,inSetup:!0})})]}),t.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:2},children:[C.nftDomainUrl&&t.jsxs(t.Fragment,{children:[t.jsxs(i,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(v,{color:"primary"}),t.jsx(j,{fontWeight:"fontWeightBold",children:o("setup.domain.buyDIDDomainTitle")})]}),t.jsxs(i,{children:[t.jsx(q,{appPk:f,appId:a.appPid,siteId:a.site.id,teamDid:a.meta.did,title:o("common.buy"),inBlockletSetup:!0}),t.jsx(j,{sx:{marginTop:1},children:o("setup.domain.buyDIDDomainTips")})]})]}),t.jsxs(i,{children:[t.jsxs(i,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",overflow:"hidden",cursor:"pointer"},onClick:()=>P(!d),children:[t.jsx(i,{fontWeight:"fontWeightBold",fontSize:"1.125rem",children:o("setup.domain.addTitle")}),t.jsx(_,{sx:{transform:d?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s"},children:t.jsx(K,{})})]}),t.jsx(w,{in:d,timeout:"auto",unmountOnExit:!0,children:t.jsx(N,{autoFocus:!1,appPk:f,appId:a.appPid,siteId:a.site.id,teamDid:a.meta.did,cnameDomain:T,currentIp:x,inBlockletSetup:!0,shouldCheckDomain:!0,resolveDomain:e=>S.get(`/dns-resolve?hostname=${e}`),onInputDomain:e=>{m({domain:e.domain,type:e.type}),u(e.error)},onStateChange:e=>m({addDomainState:e}),onSuccess:e=>{const b={domain:e.domain,type:e.type,nftDid:e.nftDid,chainHost:e.chainHost};m(b),s()},onError:u})})]})]})]}),t.jsx(G,{mt:8,disabled:!!n.addDomainState.text,blocklet:a,onStartNow:()=>s("complete"),children:n.domain?t.jsx(l,{variant:"contained",loading:!!n.addDomainState.text,disabled:k||!!n.addDomainState.text||!n.domain,onClick:()=>s(),children:n.addDomainState.text||o("setup.next")}):t.jsx(l,{variant:"contained",disabled:!!n.addDomainState.text,onClick:()=>s(),children:o("setup.skip")})})]})}function Et(s){return t.jsx(z,{children:t.jsx(c,{...s})})}c.propTypes={onNext:y.func,onPrevious:y.func};c.defaultProps={onNext:()=>{},onPrevious:()=>{}};const X=A(Y)`
|
|
2
|
+
height: 100%;
|
|
3
|
+
overflow-y: hidden;
|
|
4
|
+
.form {
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
word-break: break-all;
|
|
8
|
+
}
|
|
9
|
+
`;export{Et as default};
|