@abtnode/webapp 1.16.23-beta-06c3a221 → 1.16.23-beta-a2f9b088
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/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/build/asset-manifest.json +84 -74
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/static/js/1255.55dc5016.chunk.js +1 -0
- package/build/static/js/1279.3644d7cd.chunk.js +1 -0
- package/build/static/js/1366.d53a732c.chunk.js +2 -0
- package/build/static/js/1371.d5b7b2ae.chunk.js +1 -0
- package/build/static/js/{1667.c2e0f7d3.chunk.js → 1667.db634784.chunk.js} +1 -1
- package/build/static/js/1846.4b9fec13.chunk.js +1 -0
- package/build/static/js/{3732.d5b401f7.chunk.js → 1884.890fa2b0.chunk.js} +1 -1
- package/build/static/js/2201.071b5207.chunk.js +1 -0
- package/build/static/js/2251.442ccceb.chunk.js +1 -0
- package/build/static/js/{4494.765058da.chunk.js → 2365.a3571172.chunk.js} +1 -1
- package/build/static/js/2537.66c0f7e7.chunk.js +1 -0
- package/build/static/js/2611.e3589447.chunk.js +1 -0
- package/build/static/js/27.43967fa7.chunk.js +1 -0
- package/build/static/js/2739.2c4ef1d7.chunk.js +1 -0
- package/build/static/js/3003.47348306.chunk.js +1 -0
- package/build/static/js/318.f59bbed5.chunk.js +1 -0
- package/build/static/js/3239.21f53604.chunk.js +1 -0
- package/build/static/js/3389.b81683f9.chunk.js +1 -0
- package/build/static/js/3732.8f85738c.chunk.js +1 -0
- package/build/static/js/3748.897c3551.chunk.js +1 -0
- package/build/static/js/3910.7717fd80.chunk.js +2 -0
- package/build/static/js/4335.afdfe6af.chunk.js +2 -0
- package/build/static/js/4382.aa6ec982.chunk.js +2 -0
- package/build/static/js/4471.af415e19.chunk.js +1 -0
- package/build/static/js/4522.30555616.chunk.js +1 -0
- package/build/static/js/4549.d784c0dc.chunk.js +1 -0
- package/build/static/js/4775.36c4603d.chunk.js +1 -0
- package/build/static/js/4870.e20710f3.chunk.js +1 -0
- package/build/static/js/4906.b23f9eba.chunk.js +1 -0
- package/build/static/js/5015.4a15d35b.chunk.js +1 -0
- package/build/static/js/5059.7520ca24.chunk.js +1 -0
- package/build/static/js/{5074.217389e9.chunk.js → 5074.beb0a29b.chunk.js} +1 -1
- package/build/static/js/{6950.17ce7cb3.chunk.js → 5126.a0f7c984.chunk.js} +1 -1
- package/build/static/js/5165.7238a6aa.chunk.js +1 -0
- package/build/static/js/5217.3f129aac.chunk.js +1 -0
- package/build/static/js/5454.0ea3ca19.chunk.js +1 -0
- package/build/static/js/5522.de3357ec.chunk.js +1 -0
- package/build/static/js/5539.829c3ff0.chunk.js +1 -0
- package/build/static/js/5545.75c8138a.chunk.js +2 -0
- package/build/static/js/5672.913b0d63.chunk.js +1 -0
- package/build/static/js/5716.bdba5b4b.chunk.js +1 -0
- package/build/static/js/5941.054253be.chunk.js +1 -0
- package/build/static/js/5979.9ba4cc65.chunk.js +1 -0
- package/build/static/js/6019.8d8dc069.chunk.js +1 -0
- package/build/static/js/{7638.e427e7eb.chunk.js → 6076.ebfd327c.chunk.js} +1 -1
- package/build/static/js/6230.90c4c4f0.chunk.js +1 -0
- package/build/static/js/6296.0c2fd782.chunk.js +1 -0
- package/build/static/js/6448.4997f673.chunk.js +1 -0
- package/build/static/js/6499.6b17e117.chunk.js +1 -0
- package/build/static/js/6511.559f5478.chunk.js +1 -0
- package/build/static/js/6580.f68738f7.chunk.js +1 -0
- package/build/static/js/6771.5d826eed.chunk.js +1 -0
- package/build/static/js/6931.a2c645a5.chunk.js +1 -0
- package/build/static/js/6944.324ea8dc.chunk.js +1 -0
- package/build/static/js/6974.a54976fd.chunk.js +2 -0
- package/build/static/js/7096.3b166778.chunk.js +1 -0
- package/build/static/js/7131.e9b49104.chunk.js +2 -0
- package/build/static/js/7288.9408f652.chunk.js +1 -0
- package/build/static/js/730.6863aa68.chunk.js +1 -0
- package/build/static/js/7327.bd5ce26d.chunk.js +1 -0
- package/build/static/js/{744.74c12fbb.chunk.js → 744.3ca8c691.chunk.js} +1 -1
- package/build/static/js/7534.922dfbaf.chunk.js +1 -0
- package/build/static/js/{3135.38b886dd.chunk.js → 7558.10c2eb9c.chunk.js} +1 -1
- package/build/static/js/{7676.96ca7a9d.chunk.js → 7676.065418f9.chunk.js} +2 -2
- package/build/static/js/7880.3033e72c.chunk.js +1 -0
- package/build/static/js/{7913.2a92d95b.chunk.js → 7913.7536ae3f.chunk.js} +1 -1
- package/build/static/js/7998.1b37b898.chunk.js +1 -0
- package/build/static/js/{8219.6a609267.chunk.js → 8219.50ba71f3.chunk.js} +1 -1
- package/build/static/js/8342.53d61f70.chunk.js +1 -0
- package/build/static/js/8353.147d5d03.chunk.js +1 -0
- package/build/static/js/8387.c80dae7e.chunk.js +1 -0
- package/build/static/js/{9038.aa97e3e5.chunk.js → 9038.8440f044.chunk.js} +1 -1
- package/build/static/js/9147.1d34e02a.chunk.js +1 -0
- package/build/static/js/{9249.7f9c1c36.chunk.js → 9249.56a634fd.chunk.js} +1 -1
- package/build/static/js/9364.8a0a4d02.chunk.js +2 -0
- package/build/static/js/9534.e20c7fe7.chunk.js +1 -0
- package/build/static/js/9552.9a49abdd.chunk.js +1 -0
- package/build/static/js/9636.f68486b9.chunk.js +1 -0
- package/build/static/js/9760.ee24f252.chunk.js +1 -0
- package/build/static/js/9811.24d24075.chunk.js +2 -0
- package/build/static/js/9940.1532b9e6.chunk.js +1 -0
- package/build/static/js/main.f8c34aa4.js +2 -0
- package/package.json +1 -1
- package/build/static/js/1279.16c56464.chunk.js +0 -1
- package/build/static/js/1366.409596f3.chunk.js +0 -2
- package/build/static/js/1371.9dada426.chunk.js +0 -1
- package/build/static/js/1524.3b0ec35f.chunk.js +0 -1
- package/build/static/js/1685.5ad36577.chunk.js +0 -2
- package/build/static/js/1846.c065e8f3.chunk.js +0 -1
- package/build/static/js/2168.b50899db.chunk.js +0 -1
- package/build/static/js/2183.ddd3936e.chunk.js +0 -1
- package/build/static/js/2334.84a8e434.chunk.js +0 -1
- package/build/static/js/2365.f0c1d3f5.chunk.js +0 -1
- package/build/static/js/253.4a3aa017.chunk.js +0 -1
- package/build/static/js/2537.10cf10fb.chunk.js +0 -1
- package/build/static/js/2611.a6ba28ea.chunk.js +0 -1
- package/build/static/js/271.f6faf47d.chunk.js +0 -1
- package/build/static/js/2746.3c3fbc71.chunk.js +0 -1
- package/build/static/js/2880.9bfbce77.chunk.js +0 -2
- package/build/static/js/2960.d9d73c56.chunk.js +0 -1
- package/build/static/js/3058.361813c3.chunk.js +0 -1
- package/build/static/js/318.b12ac498.chunk.js +0 -2
- package/build/static/js/3216.04d7e546.chunk.js +0 -1
- package/build/static/js/3389.8123efdc.chunk.js +0 -1
- package/build/static/js/3883.5ba68533.chunk.js +0 -1
- package/build/static/js/406.35792759.chunk.js +0 -1
- package/build/static/js/436.f8d09df9.chunk.js +0 -1
- package/build/static/js/4382.2e63293f.chunk.js +0 -2
- package/build/static/js/4471.be33bf7f.chunk.js +0 -1
- package/build/static/js/4509.979a620a.chunk.js +0 -2
- package/build/static/js/4549.2d28f369.chunk.js +0 -1
- package/build/static/js/4775.0e4bd5d9.chunk.js +0 -1
- package/build/static/js/4852.b6d13b15.chunk.js +0 -1
- package/build/static/js/4901.639e63b2.chunk.js +0 -1
- package/build/static/js/4906.117d19c2.chunk.js +0 -1
- package/build/static/js/5015.43a32df6.chunk.js +0 -1
- package/build/static/js/5059.70e9adb7.chunk.js +0 -1
- package/build/static/js/5374.d9d1223d.chunk.js +0 -1
- package/build/static/js/5672.80be8e95.chunk.js +0 -1
- package/build/static/js/5760.25b1d70f.chunk.js +0 -1
- package/build/static/js/5887.aada06d9.chunk.js +0 -2
- package/build/static/js/5887.aada06d9.chunk.js.LICENSE.txt +0 -5
- package/build/static/js/5914.96b9321c.chunk.js +0 -2
- package/build/static/js/592.5e930c27.chunk.js +0 -2
- package/build/static/js/5979.f31629cc.chunk.js +0 -1
- package/build/static/js/6016.e15d85af.chunk.js +0 -1
- package/build/static/js/6230.b9d9b3f3.chunk.js +0 -1
- package/build/static/js/6511.2aee4cca.chunk.js +0 -1
- package/build/static/js/6931.d2496fd4.chunk.js +0 -1
- package/build/static/js/6944.c3ed8c6e.chunk.js +0 -1
- package/build/static/js/7020.9e86a0f7.chunk.js +0 -1
- package/build/static/js/7534.b8e625dd.chunk.js +0 -1
- package/build/static/js/7657.79be5056.chunk.js +0 -2
- package/build/static/js/7687.8a828ac5.chunk.js +0 -1
- package/build/static/js/7718.672877c0.chunk.js +0 -1
- package/build/static/js/8986.70b9952f.chunk.js +0 -1
- package/build/static/js/9041.9226982f.chunk.js +0 -1
- package/build/static/js/9327.93934827.chunk.js +0 -1
- package/build/static/js/95.a50db679.chunk.js +0 -1
- package/build/static/js/9552.eb2bee16.chunk.js +0 -1
- package/build/static/js/9662.5b1fd43c.chunk.js +0 -1
- package/build/static/js/9958.525b838c.chunk.js +0 -1
- package/build/static/js/main.d309c07d.js +0 -2
- /package/build/static/css/{7657.cc1ab277.chunk.css → 9811.cc1ab277.chunk.css} +0 -0
- /package/build/static/js/{1366.409596f3.chunk.js.LICENSE.txt → 1366.d53a732c.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2880.9bfbce77.chunk.js.LICENSE.txt → 3910.7717fd80.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1685.5ad36577.chunk.js.LICENSE.txt → 4335.afdfe6af.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4382.2e63293f.chunk.js.LICENSE.txt → 4382.aa6ec982.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{318.b12ac498.chunk.js.LICENSE.txt → 5545.75c8138a.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{592.5e930c27.chunk.js.LICENSE.txt → 6974.a54976fd.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{5914.96b9321c.chunk.js.LICENSE.txt → 7131.e9b49104.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7676.96ca7a9d.chunk.js.LICENSE.txt → 7676.065418f9.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4509.979a620a.chunk.js.LICENSE.txt → 9364.8a0a4d02.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7657.79be5056.chunk.js.LICENSE.txt → 9811.24d24075.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{main.d309c07d.js.LICENSE.txt → main.f8c34aa4.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6230],{80378:(e,n,t)=>{t.d(n,{Z:()=>u});var i=t(55898),o=t.n(i),a=t(62681),l=t(72333),r=t(6352),s=t.n(r),c=t(35432),d=t(58238),m=t(14491);var p=t(96266);function u(e){let{blocklet:n,style:t,size:i,ancestors:o,...r}=e;const u=(0,d.h6)(),{logoUrl:f,inService:h}=function(e){var n;let{blocklet:t,ancestors:i=[]}=e;const o=(0,d.h6)(),{inService:a}=o,l="?v=".concat(null===t||void 0===t||null===(n=t.meta)||void 0===n?void 0:n.version).concat((0,m.XN)(null===t||void 0===t?void 0:t.status)?"~":"");let r=a?s()(m.zn,c.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-bundle",l):s()(o.imgPrefix,"blocklet.png");if("registry"===t.source&&t.deployedFrom&&t.meta.logo)r=s()(t.deployedFrom,(0,m.lk)(t.meta.bundleDid,t.meta.logo),l);else{const e=window.env.apiPrefix||"/",n=i.concat(t),o=a?n.slice(1):n;r=s()(e,"/blocklet/logo-bundle".concat(o.map((e=>"/".concat(e.meta.did))).join("")),l)}return{logoUrl:r,inService:a}}({blocklet:n,ancestors:o}),{variant:g}=r,x=h?()=>{}:e=>{e.target.src="".concat(u.imgPrefix,"/blocklet.png")};let b=(0,p.jsx)("img",{src:f,onError:x,alt:n.meta.name,style:{width:i}});return n.meta.logo||(b=(0,p.jsx)(l.Z,{did:n.meta.did||"",responsive:!0})),(0,p.jsx)(a.Z,{variant:g||"square",style:Object.assign({backgroundColor:"transparent",width:i,height:i,borderRadius:10},t),...r,children:b})}u.propTypes={blocklet:o().object.isRequired,style:o().object,size:o().oneOfType([o().number,o().string]),ancestors:o().array},u.defaultProps={style:{},size:40,ancestors:[]}},74286:(e,n,t)=>{t.d(n,{Z:()=>r});var i=t(55898),o=t.n(i),a=t(39948),l=t(96266);function r(e){let{depth:n,className:t}=e;return(0,l.jsx)(a.Z,{ml:Math.max(2*(n-1),0),className:t,sx:{borderBottom:1,borderColor:"rgba(0,0,0,0.12)"}},"group-collapse-box")}r.propTypes={depth:o().number,className:o().string},r.defaultProps={depth:1,className:""}},44784:(e,n,t)=>{t.d(n,{Z:()=>d});var i,o=t(71171),a=t(33518),l=t(82790),r=t(96266);function s(e){let{labelProps:n,className:t,style:i,...o}=e;const a={...n,labelPlacement:(null===n||void 0===n?void 0:n.labelPlacement)||"start"};return(0,r.jsx)(c,{className:t,style:i,children:(0,r.jsx)(l.Z,{labelProps:a,...o})})}s.propTypes=l.Z.propTypes,s.defaultProps=l.Z.defaultProps;const c=a.Z.div(i||(i=(0,o.Z)(["\n max-width: 300px;\n > label {\n display: flex;\n justify-content: space-between;\n width: 100%;\n margin-left: 0;\n margin-right: 0;\n }\n "," {\n max-width: 100%;\n }\n"])),(e=>{let{theme:n}=e;return n.breakpoints.down("sm")})),d=s},59375:(e,n,t)=>{t.d(n,{Z:()=>Z});var i,o=t(71171),a=t(5057),l=t(55898),r=t.n(l),s=t(6352),c=t.n(s),d=t(33518),m=t(92706),p=t.n(m),u=t(39948),f=t(52277),h=t.n(f),g=t(68420),x=t(96266);const b=(0,a.lazy)((()=>Promise.all([t.e(1294),t.e(4382)]).then(t.bind(t,23826)).then((e=>({default:e.Uploader}))))),v="/blocklet/logo/upload";function Z(e){let{url:n,height:t,width:i,enabled:o,type:l,did:r,prefix:s,headers:d,onUploaded:m}=e;const{t:p}=(0,g.PE)(),f=(0,a.useRef)(null),Z={cursor:o?"pointer":"default","&::after":{content:'"'.concat(p("common.switch"),'"')}};return(0,x.jsxs)(j,{id:"uploader-".concat(r,"-").concat(l),children:[(0,x.jsx)(b,{ref:f,popup:!0,onUploadFinish:()=>{var e;m(),null===(e=f.current)||void 0===e||e.close()},plugins:["ImageEditor"],apiPathProps:{uploader:c()(s,v,l,r),disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:["image/*",".jpg",".jpeg",".png",".gif",".svg"],maxFileSize:10485760,maxNumberOfFiles:1}},tusProps:{headers:d}}),(0,x.jsx)(u.Z,{className:h()("uploader-wrapper",o&&"enabled"),sx:Z,onClick:()=>{var e;null===(e=f.current)||void 0===e||e.open()},children:(0,x.jsx)("img",{alt:"Logo",src:n,style:{height:t,width:i}})})]},"uploader-".concat(r,"-").concat(l))}Z.propTypes={url:r().string.isRequired,type:r().oneOf(["square","rect","favicon"]).isRequired,did:r().string.isRequired,prefix:r().string.isRequired,headers:r().func,onUploaded:r().func,height:r().number,width:r().any,enabled:r().bool},Z.defaultProps={height:80,width:"auto",enabled:!0,headers:()=>({}),onUploaded:p()};const j=d.Z.div(i||(i=(0,o.Z)(["\n .uploader-wrapper {\n display: inline-flex;\n position: relative;\n font-size: 0px;\n &.enabled {\n cursor: pointer;\n }\n &::after {\n display: none;\n }\n &.enabled::after {\n display: block;\n opacity: 0;\n position: absolute;\n bottom: 0;\n background: rgba(0, 0, 0, 0.2);\n left: 0;\n right: 0;\n height: 2.2em;\n color: white;\n text-align: center;\n font-size: 12px;\n line-height: 2em;\n transition: opacity 0.3s ease;\n }\n &:hover::after {\n opacity: 1;\n }\n }\n"])))},64558:(e,n,t)=>{t.r(n),t.d(n,{default:()=>mt});var i,o=t(71171),a=t(5057),l=t(33518),r=t(55898),s=t.n(r),c=t(96181),d=t(6352),m=t.n(d),p=t(35432),u=t(39948),f=t(55402),h=t(82275),g=t(96399),x=t(65688),b=t(37633),v=t(48037),Z=t(92273),j=t(76720),y=t(15849),C=t(68420),k=t(94464),w=t(38242),S=t(80378),E=t(1722),L=t(43681),P=t.n(L),R=t(50482),A=t.n(R),T=t(16147),_=t(29034),N=t(28726),O=t(80578),I=t(77277),F=t(86229),B=t(28641),z=t(44846),U=t(13727),D=t(56184),K=t(67680),W=t(19654),q=t(90067),G=t(39646),V=t(43897),H=t(47020),M=t(49020),Y=t(35406),J=t(11875),Q=t(95890),X=t(96266);function $(e){let{label:n,disabled:t,required:i,initialValue:o,onChange:l,style:r,onSubmit:s,triggers:c,options:d,formatterBeforeSubmit:m,helperText:p,placeholder:f,renderImage:h,renderLabel:g,filterKeys:x,noEmpty:b,...v}=e;const[Z,j]=(0,a.useState)(!1),[y,C]=(0,a.useState)(!1),[k,w]=a.useState(""),[S,E]=(0,a.useState)(o),[L,P]=(0,a.useState)(S),R=(0,a.useMemo)((()=>{if(!d)return{};const e={};return d.forEach((n=>{e[n.code]=n})),e}),[d]),A=Z?(0,X.jsx)(G.Z,{options:d,value:L,onChange:(e,n)=>{if(!Array.isArray(n))return P([]),void l([]);const t=n.filter((e=>R[e]));if(!t.length)return P([]),void l([]);P(t),l(t)},inputValue:k,onInputChange:(e,n)=>{w(n)},PopperComponent:ne,fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:()=>{if(!d)return[];if(!k)return d.map((e=>e.code));const e=new RegExp(k.toLowerCase());return d.filter((n=>{for(let i=0;i<x.length;i++){var t;const o=x[i];if(e.test(null===(t=n[o])||void 0===t?void 0:t.toLowerCase()))return!0}return!1})).map((e=>e.code))},getOptionLabel:e=>{var n;return null===(n=R[e])||void 0===n?void 0:n.name},renderInput:e=>(0,X.jsx)(H.Z,{...e,label:"",placeholder:f}),renderOption:(e,n)=>{var t;const i=-1!==L.indexOf(n);return(0,a.createElement)(ee,{component:"li",...e,key:n},h(R[n]||{}),(0,X.jsx)(u.Z,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:i?"700":"normal"},children:g(n,R[n])||(null===(t=R[n])||void 0===t?void 0:t.name)}),(0,X.jsx)(u.Z,{component:U.default,sx:{opacity:.5,width:18,height:18},style:{visibility:i?"visible":"hidden"}}))},...v}):(0,X.jsx)(u.Z,{px:1,className:"form-item-input slot",style:{whiteSpace:"pre-wrap"},children:L.filter((e=>d.some((n=>n.code===e)))).map((e=>(0,X.jsx)(W.Z,{label:d.find((n=>n.code===e)).name,style:{marginRight:8},size:"small"},e)))});return(0,X.jsx)(J.Z,{className:"form",style:r,children:(0,X.jsxs)(u.Z,{className:"form-item",children:[(0,X.jsxs)(u.Z,{className:"form-item-label",children:[n,i&&(0,X.jsx)(Y.Z,{})]}),(0,X.jsxs)(u.Z,{className:"form-item-body",children:[(0,X.jsx)(u.Z,{className:"form-item-input",children:A}),(0,X.jsx)(u.Z,{className:"form-item-action",children:Z?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(K.Z,{"data-cy":"schema-form-item-confirm",onClick:async()=>{C(!0);try{!1===await s("function"===typeof m?m(L):L)?P(S):b&&!L.length?(P(o),E(o)):(P(L),E(L))}catch(e){P(S)}finally{C(!1),j(!1)}},disabled:t||y,size:"large",children:y?(0,X.jsx)(z.Z,{size:24}):(0,X.jsx)(D.Z,{})}),(0,X.jsx)(K.Z,{"data-cy":"schema-form-item-cancel",onClick:()=>{P(S),j(!1)},disabled:t||y,size:"large",children:(0,X.jsx)(U.default,{})})]}):(0,X.jsx)(Q.Z,{triggers:c,onEnterEdit:()=>j(!0),disabled:t})})]}),Z&&p&&(0,X.jsx)(q.Z,{children:p})]})})}$.propTypes={style:s().object,onSubmit:s().func,onChange:s().func,label:s().string,initialValue:s().string,required:s().bool,disabled:s().bool,triggers:s().array,options:s().array,helperText:s().string,formatterBeforeSubmit:s().func,placeholder:s().string,renderImage:s().func,filterKeys:s().arrayOf(s().string),noEmpty:s().bool,renderLabel:s().func},$.defaultProps={style:{},onSubmit:()=>{},onChange:()=>{},label:"",initialValue:"",required:!1,disabled:!1,triggers:[],options:[],helperText:"",formatterBeforeSubmit:e=>e.join(","),placeholder:"",filterKeys:["name"],renderImage:()=>null,renderLabel:(e,n)=>"",noEmpty:!1};const ee=l.Z.div(i||(i=(0,o.Z)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 48px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n font-size: 1.1em;\n"]))),ne=(0,l.Z)(M.Z)((()=>({["& .".concat(V.Z.paper)]:{boxShadow:"0px 8px 12px rgba(92, 92, 92, 0.04), 0px -10px 12px rgba(92, 92, 92, 0.04)",borderRadius:"6px",width:"100%",border:"1px solid rgba(0, 0, 0, 0.12)",color:"inherit",fontSize:13,position:"absolute",left:0,top:0},["& .".concat(V.Z.listbox)]:{padding:0}})));var te,ie=t(58238),oe=t(14491),ae=t(54063),le=t(63406),re=t(78410),se=t(31853),ce=t(43316),de=t(70461),me=t(73545),pe=t(29054);function ue(e){let{initialValue:n,onChange:t,disabled:i,loading:o}=e;const{t:a}=(0,C.PE)(),{api:l}=(0,me.T)(),{blocklet:r}=(0,pe.y0)(),[s,c]=(0,se.Z)({newAppSk:"",isConnectOpen:!1}),d=()=>c({isConnectOpen:!1}),m=r.structVersion===p.APP_STRUCT_VERSION?[{key:"rotate-with-did-wallet",title:"Migrate with DID Wallet",handler:()=>{(0,oe.An)(r.status)?F.Z.error(a("blocklet.error.isRunning")):(0,w.isInProgress)(r.status)?F.Z.error(a("blocklet.error.isInProgress")):c({isConnectOpen:!0})}}]:[];return[(0,X.jsx)(B.Z,{disabled:i,loading:o,initialValue:n,onSubmit:e=>(c({newAppSk:e}),!1),triggers:m,secure:!0}),s.newAppSk&&(0,X.jsx)(de.Z,{title:a("blocklet.config.appSkTitle"),description:(0,X.jsxs)(u.Z,{children:[(0,X.jsx)(u.Z,{children:a("blocklet.config.appSkChangeTip")}),(0,X.jsx)(u.Z,{fontWeight:"bold",mt:2,children:a("blocklet.config.appDidChangeTip")}),(0,X.jsxs)(fe,{children:[(0,X.jsx)("li",{children:a("blocklet.config.appDidChangeTipL1")}),(0,X.jsx)("li",{children:a("blocklet.config.appDidChangeTipL2")})]})]}),confirm:a("confirm"),cancel:a("cancel"),onConfirm:()=>(async e=>{try{await t(e)}finally{c({newAppSk:""})}})(s.newAppSk),onCancel:()=>c({newAppSk:""})}),(0,X.jsx)(ce.Z,{popup:!0,open:s.isConnectOpen,forceConnected:!1,saveConnect:!1,action:"rotate-key-pair",checkFn:l.get,checkTimeout:3e5,onSuccess:d,extraParams:{appDid:r.appDid},messages:{title:a("setup.keyPair.title"),scan:a("setup.keyPair.scan"),confirm:a("setup.keyPair.confirm"),success:a("setup.keyPair.success")},onClose:d})]}ue.propTypes={initialValue:s().string,onChange:s().func,disabled:s().bool,loading:s().bool},ue.defaultProps={initialValue:"default",onChange:()=>{},disabled:!1,loading:!1};const fe=(0,l.Z)("ul")(te||(te=(0,o.Z)(["\n padding-left: 16px;\n li {\n margin-top: 8px;\n list-style: disk;\n font-weight: bold;\n }\n"])));var he,ge=t(44483),xe=t(55372),be=t(11750),ve=t(88574),Ze=t(26174),je=t(88092),ye=t(50185),Ce=t(17425);function ke(e){let{onCancel:n,onSuccess:t,onError:i}=e;const{api:o}=(0,a.useContext)(me.B),[l,r]=(0,a.useState)(!1),{t:s,locale:c}=(0,C.PE)(),[d,m]=(0,a.useState)(""),[p,f]=(0,a.useState)(!1),[h,g]=(0,a.useState)(0),[x,b]=(0,a.useState)(""),{endpoint:v}=(0,Ce.DJ)(),[Z,j]=(0,a.useState)(!1),y=e=>{m(null),r(!0);try{b(e.result),g(w.length-1)}catch(n){const e=(0,oe.Z)(n);m(e),i(n)}finally{r(!1)}},k=()=>{f(!1),g(0)},w=[{body:(0,X.jsxs)(u.Z,{children:[(0,X.jsx)(be.Z,{children:s("team.transferApp.transferDialog.tips.progress")}),(0,X.jsx)(be.Z,{mt:3,mb:2,children:s("team.transferApp.transferDialog.tips.newOwnerPermissions")})]}),cancel:s("common.cancel"),confirm:s("team.transferApp.transferDialog.createTransferLink"),onCancel:n,onConfirm:()=>{f(!0),g(1)}},{body:()=>(0,X.jsx)(ce.Z,{action:"transfer-app-owner",open:p,locale:c,checkFn:o.get,onClose:k,onSuccess:y,checkTimeout:3e5,extraParams:{},messages:{title:s("team.transferApp.connectDialog.title"),scan:s("team.transferApp.connectDialog.scan"),confirm:s("team.transferApp.connectDialog.confirm"),success:s("team.transferApp.connectDialog.success")},popup:!0})},{body:()=>{const e=(0,oe.VP)({transferId:x.transferId,endpoint:v});return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(u.Z,{component:we,dangerouslySetInnerHTML:{__html:s("team.transferApp.transferDialog.createSuccessTip1")}}),(0,X.jsx)(u.Z,{component:we,mt:2,children:(0,X.jsx)(we,{children:s("team.transferApp.transferDialog.createSuccessTip3")})}),(0,X.jsxs)(u.Z,{children:[(0,X.jsx)(u.Z,{component:we,mt:2,children:(0,X.jsx)(we,{children:s("team.transferApp.transferDialog.createSuccessTip2",{expireDate:(0,oe.B2)(x.expireDate,c)})})}),(0,X.jsx)(u.Z,{my:1,children:(0,X.jsx)(ye.Z,{children:e})})]}),(0,X.jsx)("div",{children:(0,X.jsx)(Ze.Z,{value:"end",control:(0,X.jsx)(je.Z,{checked:Z,onChange:e=>j(e.target.checked)}),label:s("team.transferApp.transferDialog.iKnow"),labelPlacement:"end"})})]})},confirm:s("common.confirm"),onConfirm:t}],S=w[h];return(0,X.jsxs)(ge.ZP,{title:(0,X.jsx)(we,{className:"title",children:s("team.transferApp.transferDialog.title")}),fullWidth:!0,open:!0,showCloseButton:!1,actions:(0,X.jsxs)(X.Fragment,{children:[S.cancel&&(0,X.jsx)(N.Z,{onClick:S.onCancel,color:"inherit",children:S.cancel}),(0,X.jsxs)(N.Z,{onClick:S.onConfirm,color:"error",disabled:l||h===w.length-1&&!Z,variant:"contained",autoFocus:!0,children:[l&&(0,X.jsx)(z.Z,{size:16}),S.confirm]})]}),children:[(0,X.jsx)(xe.Z,{component:"div",children:"function"===typeof S.body?S.body():S.body}),!!d&&(0,X.jsx)(ve.Z,{type:"error",variant:"icon",children:d})]})}ke.propTypes={onCancel:s().func.isRequired,onSuccess:s().func.isRequired,onError:s().func},ke.defaultProps={onError:()=>{}};const we=l.Z.div(he||(he=(0,o.Z)(["\n font-size: 16px;\n font-weight: bold;\n &.title {\n font-size: 20px;\n }\n"])));var Se,Ee=t(49522),Le=t(59375);const Pe=Object.keys(I.SUPPORTED_LANGUAGES).map((e=>({code:e,name:I.SUPPORTED_LANGUAGES[e].nativeName,enName:I.SUPPORTED_LANGUAGES[e].name}))),Re=["name","enName","code"];function Ae(e){var n;let{blocklet:t,onUpdate:i,hasPermission:o,...l}=e;const{api:r,inService:s,prefix:c,getSessionInHeader:d,ws:{useSubscription:m}}=(0,ie.h6)(),{t:f}=(0,a.useContext)(C.RD),[h,g]=(0,a.useState)(""),[x,b]=(0,a.useState)(""),[v,Z]=(0,a.useState)(!1),j=(0,w.getWhoCanAccess)(t),y=null===t||void 0===t||null===(n=t.settings)||void 0===n?void 0:n.publicToStore,k=x||!o,{logoUrl:S,rectLogoUrl:E,faviconUrl:L}=(0,Ee.Z)({blocklet:t}),{did:R}=t.meta,{site:z}=t,U=P()(t.meta,"capabilities.clusterMode",!1);if(m(p.EVENTS.NODE_RUNTIME_INFO,(e=>{U&&g(P()(e,"cpu.physicalCores",""))})),(0,oe.wS)(t.status))return null;const D=t.environments.find((e=>e.key===I.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_DELETABLE)),K=!D||"yes"===D.value,W=t.environments.find((e=>e.key===I.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LANGUAGES)),q=t.environments.find((e=>e.key===I.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL)),G=t.environments.find((e=>e.key===I.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_OWNER)),V=t.environments.find((e=>e.key===I.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_YEAR)),H=[{key:I.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_NAME,description:f("blocklet.config.name"),value:t.environments.find((e=>"BLOCKLET_APP_NAME"===e.key)).value},{key:I.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_DESCRIPTION,description:f("blocklet.config.description"),value:t.environments.find((e=>"BLOCKLET_APP_DESCRIPTION"===e.key)).value},{key:I.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL,description:f("blocklet.config.appUrl"),value:q?q.value:""},{key:I.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_OWNER,description:f("blocklet.config.copyrightOwner"),value:G?G.value:""},{key:I.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_YEAR,description:f("blocklet.config.copyrightYear"),value:V?V.value:""}];if(U){const e=t.configs.find((e=>e.key===I.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE)),n=e?e.value:h;H.push({key:I.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE,description:f("blocklet.config.clusterSize"),value:n,cpuCores:h})}const M=async(e,n)=>{if(e===I.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE){const e=(0,oe.I)({value:n,cpuCores:h});if(e)return void F.Z.error(e)}const o=[{key:e,value:n}];try{b(!0);const{blocklet:e}=await r.configBlocklet({input:{did:t.meta.did,configs:o}});i(e)}catch(a){F.Z.error(a.message)}finally{b(!1)}};return(0,X.jsxs)(Oe,{...l,children:[H.map((e=>(0,X.jsxs)(u.Z,{className:"config-form",mt:2,children:[(0,X.jsx)(u.Z,{className:"config-label",fontSize:14,mb:0,children:e.description}),(0,X.jsx)(B.Z,{style:{marginTop:0},disabled:x||k,loading:x,initialValue:e.value,onSubmit:n=>M(e.key,n)})]}))),(0,X.jsx)(u.Z,{className:"config-form",component:_.Z,my:3}),(0,X.jsx)(u.Z,{className:"config-label",fontSize:14,mb:1,sx:{flexGrow:0,width:"auto"},children:f("blocklet.config.logoSquare")}),(0,X.jsx)(Le.Z,{did:t.meta.did,height:80,width:80,type:"square",prefix:c,url:S,enabled:o,headers:d}),(0,X.jsx)(u.Z,{className:"config-label",fontSize:14,mt:4,children:f("blocklet.config.logoRect")}),(0,X.jsx)(u.Z,{mb:1.5,className:"config-desc",children:f("blocklet.config.logoRectDesc")}),(0,X.jsx)(Le.Z,{did:t.meta.did,height:80,type:"rect",prefix:c,url:E,enabled:o,headers:d}),(0,X.jsx)(u.Z,{className:"config-label",fontSize:14,mt:4,children:f("blocklet.config.logoFavicon")}),(0,X.jsx)(u.Z,{mb:1.5,className:"config-desc",children:f("blocklet.config.logoFaviconDesc")}),(0,X.jsx)(Le.Z,{did:t.meta.did,height:25,width:25,type:"favicon",prefix:c,url:L,enabled:o,headers:d}),(0,X.jsx)(u.Z,{className:"config-form",children:"all"===j&&"registry"===t.source&&(0,X.jsxs)(u.Z,{className:"config-item",children:[(0,X.jsxs)(u.Z,{className:"config-label",children:[f("blocklet.config.access.publicToStore"),(0,X.jsx)(u.Z,{className:"config-desc",children:f("blocklet.config.access.publicInstanceTip")})]}),(0,X.jsx)(T.Z,{disabled:k,checked:y,defaultChecked:!0,onChange:async e=>{if(!x){b(!0);try{const{checked:n}=e.target,{blocklet:o}=await r.configPublicToStore({input:{did:t.meta.did,publicToStore:n}});i(o)}catch(n){F.Z.error(n.message)}finally{b(!1)}}}})]})}),(0,X.jsx)(u.Z,{className:"config-form",component:_.Z,my:3}),(0,X.jsxs)(u.Z,{className:"config-form",mt:2,children:[(0,X.jsx)(u.Z,{className:"config-label",fontSize:14,mb:0,children:f("blocklet.config.languages")}),(0,X.jsx)($,{style:{marginTop:0},disabled:x||k,loading:x,options:Pe,noEmpty:!0,initialValue:W?W.value.split(","):["en","zh"],onSubmit:e=>M("BLOCKLET_APP_LANGUAGES",e),helperText:f("blocklet.config.selectLanguagesTip"),placeholder:f("blocklet.config.languagesSearch"),filterKeys:Re,renderLabel:(e,n)=>n.name===n.enName?"".concat(n.name," (").concat(e.toUpperCase(),")"):"".concat(n.name,", ").concat(n.enName," (").concat(e.toUpperCase(),")")})]}),(0,X.jsx)(u.Z,{className:"config-form",component:_.Z,my:3}),(0,X.jsx)(u.Z,{className:"config-form",mt:2,children:(0,X.jsx)(u.Z,{className:"config-label",mb:0,children:f("common.security")})}),(0,X.jsxs)(u.Z,{className:"config-form",mt:2,children:[(0,X.jsx)(u.Z,{className:"config-label",fontSize:14,mb:0,children:f("router.domainSecurity.cors.title")}),(0,X.jsx)(u.Z,{mb:1.5,className:"config-desc",children:f("router.domainSecurity.cors.description",{name:"the blocklet"})}),(0,X.jsx)(B.Z,{style:{marginTop:0},disabled:x||k,loading:x,initialValue:(z.corsAllowedOrigins||[]).join(", "),onSubmit:async e=>{const n=z.corsAllowedOrigins||[],i=e.split(",").map((e=>e.trim())).filter(Boolean);if(A()(n,i))return!1;try{b(!0);const e=i.length?i:["__none__"];await r.updateRoutingSite({input:{id:z.id,corsAllowedOrigins:e,teamDid:t.meta.did}}),b(!1)}catch(o){return F.Z.error(o.message),b(!1),!1}return!0}})]}),(0,X.jsx)(u.Z,{className:"config-form",component:_.Z,my:3}),(0,X.jsx)(u.Z,{mb:2,className:"config-label",fontSize:20,children:f("blocklet.config.dangerZone")}),(0,X.jsxs)(u.Z,{px:2,py:1,sx:{border:"1px solid red",borderRadius:2},children:[(0,X.jsx)(u.Z,{className:"config-form",mt:2,children:!s&&(0,X.jsxs)(u.Z,{className:"config-item",children:[(0,X.jsxs)(u.Z,{className:"config-label",children:[f("blocklet.config.deletable.name"),(0,X.jsx)(u.Z,{className:"config-desc",children:f(K?"blocklet.config.deletable.disable":"blocklet.config.deletable.enable")})]}),(0,X.jsx)(T.Z,{disabled:k,checked:!K,defaultChecked:!0,onChange:async e=>{if(!x){b(!0);try{const{checked:n}=e.target,{blocklet:o}=await r.configBlocklet({input:{did:t.meta.did,configs:[{key:I.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_DELETABLE,value:n?"no":"yes"}]}});i(o)}catch(n){F.Z.error(n.message)}finally{b(!1)}}}})]})}),(0,X.jsxs)(u.Z,{className:"config-form",mt:2,children:[(0,X.jsx)(u.Z,{className:"config-label",fontSize:14,mb:0,children:f("blocklet.config.sk")}),(0,X.jsx)(ue,{disabled:x||k,loading:x,initialValue:t.environments.find((e=>"BLOCKLET_APP_SK"===e.key)).value,onChange:async e=>{if(!x){b(!0);try{const{blocklet:n}=await r.configBlocklet({input:{did:t.meta.did,configs:[{key:I.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SK,value:e}]}});i(n)}catch(n){F.Z.error(n.message)}finally{b(!1)}}}})]}),s&&(0,X.jsx)(le.Z,{role:"owner",children:e=>(e||ae.C)&&(0,X.jsxs)(u.Z,{className:"config-form",mt:2,children:[(0,X.jsxs)(u.Z,{className:"config-item",children:[(0,X.jsx)(u.Z,{className:"config-label",mb:0,children:f("team.transferApp.name")}),(0,X.jsxs)(N.Z,{style:{flexShrink:0},variant:"contained",edge:"end",color:"error",size:"small","data-cy":"transfer-app",onClick:()=>Z(!0),children:[(0,X.jsx)(O.Z,{style:{fontSize:"1.3em",marginRight:4}}),f("team.transferApp.name")]})]}),v&&(0,X.jsx)(ke,{onCancel:()=>Z(!1),onSuccess:()=>Z(!1)})]})}),(0,X.jsx)(u.Z,{className:"config-form",mt:2,children:(0,X.jsxs)(u.Z,{className:"config-item",children:[(0,X.jsxs)(u.Z,{className:"config-label",children:[f("blocklet.config.clearCache.name"),(0,X.jsx)(u.Z,{className:"config-desc",children:f("blocklet.config.clearCache.purpose")})]}),(0,X.jsx)(re.Z,{teamDid:R})]})})]})]})}const Te=(0,le.V)(Ae,"mutate_blocklets"),_e=(0,le.V)(Ae,"",oe.Wf);function Ne(e){const{inService:n}=(0,ie.h6)();return n?(0,X.jsx)(_e,{...e}):(0,X.jsx)(Te,{...e})}Ae.propTypes={blocklet:s().object.isRequired,onUpdate:s().func,hasPermission:s().bool},Ae.defaultProps={onUpdate:()=>{},hasPermission:!1};const Oe=l.Z.div(Se||(Se=(0,o.Z)(["\n padding-top: 24px;\n .config-form {\n flex-grow: 1;\n overflow-y: auto;\n "," {\n width: 100%;\n flex-shrink: 0;\n padding: 0 24px;\n transform: translate(0, 0);\n }\n }\n\n .config-item {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 16px 0;\n }\n\n .config-label {\n font-weight: bold;\n }\n\n .config-desc {\n font-weight: normal;\n font-size: 12px;\n color: #666;\n }\n\n .form-item {\n margin-top: 0;\n }\n"])),(e=>e.theme.breakpoints.down("md")));var Ie=t(25710),Fe=t(93066),Be=t(80576),ze=t(8708),Ue=t.n(ze),De=t(12673),Ke=t(99360),We=t(80506),qe=t(766),Ge=t.n(qe),Ve=t(24529),He=t.n(Ve),Me=t(16727),Ye=t.n(Me),Je=t(92706),Qe=t.n(Je);const Xe=(0,a.forwardRef)(((e,n)=>{const{t:t}=(0,a.useContext)(C.RD),i=(0,De.Z)({show:!1,title:"",content:"",onConfirm:Qe(),onCancel:Qe(),loading:!1}),o=(0,Ke.Z)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i.show=!0,i.title=e.title,i.content=e.content,i.onConfirm=e.onConfirm||Qe(),i.onCancel=e.onCancel||Qe(),i.loading=!1})),l=(0,Ke.Z)((()=>{i.title="",i.content="",i.onConfirm=Qe(),i.onCancel=Qe()})),r=(0,Ke.Z)((()=>{i.show=!1,setTimeout((()=>{l()}),300)})),s=(0,Ke.Z)((()=>{r(),null===i||void 0===i||i.onCancel()}),[]),c=(0,Ke.Z)((async()=>{i.loading=!0;try{await(null===i||void 0===i?void 0:i.onConfirm(r))}finally{i.loading=!1}}),[]);return(0,a.useImperativeHandle)(n,(()=>({open:o,close:r})),[o,r]),(0,X.jsx)(ge.I4,{open:i.show,title:i.title,onConfirm:c,onCancel:s,confirmButton:{text:t("common.confirm"),props:{variant:"contained",color:"primary",loading:i.loading}},cancelButton:{text:t("common.cancel"),props:{variant:"outlined",color:"primary"}},children:i.content instanceof Function?i.content():i.content})}));function $e(){const e=(0,a.useRef)(null),n=(0,Ke.Z)((function(){for(var n,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];null===(n=e.current)||void 0===n||n.open(...i)})),t=(0,Ke.Z)((function(){for(var n,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];null===(n=e.current)||void 0===n||n.close(...i)})),i={open:n,close:t};return{confirmHolder:(0,X.jsx)(Xe,{ref:e}),confirmApi:i}}const en={enabled:!1,secure:!1,from:"",host:"",port:"",user:"",password:""};const nn=function(){var e,n,t;const{api:i}=(0,ie.h6)(),{blocklet:o}=(0,pe.y0)(),{t:a}=(0,C.PE)(),{confirmApi:l,confirmHolder:r}=$e(),s=null===o||void 0===o||null===(e=o.meta)||void 0===e?void 0:e.did,c=Object.assign({...en},(null===o||void 0===o||null===(n=o.settings)||void 0===n||null===(t=n.notification)||void 0===t?void 0:t.email)||{}),{handleSubmit:d,control:m,formState:p,watch:f,reset:h}=(0,We.cI)({defaultValues:Ue()(c,Object.keys(en))}),g=(0,De.Z)({testReceiver:"",testReceiverError:""}),x=f("enabled"),b=(0,Ke.Z)((async function(e,n){let t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{var o,l;const{blocklet:n}=await i.configNotification({input:{did:s,notification:JSON.stringify({email:e})}}),r=Object.assign({...en},(null===n||void 0===n||null===(o=n.settings)||void 0===o||null===(l=o.notification)||void 0===l?void 0:l.email)||{});h(r),t&&F.Z.success(a("oauth.saveSuccess"))}catch(r){if(!t)throw r;F.Z.error(r.message||a("oauth.saveFailed"))}})),v=(0,Ke.Z)((async(e,n,t)=>{try{p.isDirty&&await b(e,n,!1),await i.sendEmail({input:{did:s,receiver:t,email:JSON.stringify({body:"Your SMTP configuration is correct!",title:"Test email",type:"notification"})}}),F.Z.success(a("notification.email.testSuccess"))}catch(o){F.Z.error(o.message||a("notification.email.testfailed"))}})),Z=(0,Ke.Z)(((e,n)=>{g.testReceiver="",g.testReceiverError="",l.open({title:a("notification.email.testSendEmail"),content:()=>(0,X.jsx)(u.Z,{sx:{width:"300px"},children:(0,X.jsx)(H.Z,{fullWidth:!0,name:"testReceiver",label:a("notification.email.inputTestReceiver"),value:g.testReceiver,onChange:e=>{g.testReceiver=e.target.value},error:!!g.testReceiverError,helperText:g.testReceiverError||"\u3000"})}),async onConfirm(t){var i;const o=null===(i=g.testReceiver)||void 0===i?void 0:i.trim();o?Ge()(o)?(g.testReceiverError="",await v(e,n,o),t()):g.testReceiverError=a("notification.email.receiverInvalid"):g.testReceiverError=a("notification.email.receiverRequired")}})})),j=(0,Ke.Z)((e=>{const n=null===e||void 0===e?void 0:e.trim();return n?!!Ge()(n)||a("notification.email.fromInvalid"):a("notification.email.fromRequired")})),y=(0,Ke.Z)((e=>{const n=null===e||void 0===e?void 0:e.trim();return n?!!He()(n,{require_host:!1,protocols:[]})||a("notification.email.hostInvalid"):a("notification.email.hostRequired")})),k=(0,Ke.Z)((e=>e?!!Ye()(e)||a("notification.email.portInvalid"):a("notification.email.portRequired"))),w=(0,Ke.Z)((e=>!(null===e||void 0===e||!e.trim())||a("notification.email.userRequired"))),S=(0,Ke.Z)((e=>!(null===e||void 0===e||!e.trim())||a("notification.email.passwordRequired"))),E=(0,Ke.Z)((()=>!0));return(0,X.jsxs)(u.Z,{children:[(0,X.jsxs)("form",{onSubmit:d(b),disabled:!0,children:[(0,X.jsx)(We.Qr,{name:"enabled",control:m,render:e=>{let{field:n}=e;return(0,X.jsx)(Ze.Z,{control:(0,X.jsx)(T.Z,{checked:n.value,...n}),label:a("notification.email.enable"),sx:{marginBottom:"8px"}})}}),(0,X.jsx)(We.Qr,{name:"from",control:m,rules:{validate:x?j:E},render:e=>{var n;let{field:t}=e;return(0,X.jsx)(Be.Z,{fullWidth:!0,children:(0,X.jsx)(H.Z,{...t,label:a("notification.email.from"),error:!!p.errors[t.name],helperText:(null===(n=p.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!x})})}}),(0,X.jsx)(We.Qr,{name:"host",control:m,rules:{validate:x?y:E},render:e=>{var n;let{field:t}=e;return(0,X.jsx)(Be.Z,{fullWidth:!0,children:(0,X.jsx)(H.Z,{...t,error:!!p.errors[t.name],label:a("notification.email.host"),helperText:(null===(n=p.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!x})})}}),(0,X.jsx)(We.Qr,{name:"port",control:m,rules:{validate:x?k:E},render:e=>{var n;let{field:t}=e;return(0,X.jsx)(Be.Z,{fullWidth:!0,children:(0,X.jsx)(H.Z,{...t,type:"number",error:!!p.errors[t.name],label:a("notification.email.port"),helperText:(null===(n=p.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!x})})}}),(0,X.jsx)(We.Qr,{name:"user",control:m,rules:{validate:x?w:E},render:e=>{var n;let{field:t}=e;return(0,X.jsx)(Be.Z,{fullWidth:!0,children:(0,X.jsx)(H.Z,{...t,error:!!p.errors[t.name],label:a("notification.email.user"),helperText:(null===(n=p.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!x})})}}),(0,X.jsx)(We.Qr,{name:"password",control:m,rules:{validate:x?S:E},render:e=>{var n;let{field:t}=e;return(0,X.jsx)(Be.Z,{fullWidth:!0,children:(0,X.jsx)(H.Z,{...t,type:"password",error:!!p.errors[t.name],label:a("notification.email.password"),helperText:(null===(n=p.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!x})})}}),(0,X.jsx)(We.Qr,{name:"secure",control:m,rules:{validate:E},render:e=>{let{field:n}=e;return(0,X.jsx)(Be.Z,{fullWidth:!0,children:(0,X.jsx)(Ze.Z,{control:(0,X.jsx)(T.Z,{checked:n.value,...n,disabled:!x}),label:a("notification.email.secure"),style:{marginBottom:16}})})}}),(0,X.jsx)(N.Z,{variant:"outlined",color:"warning",onClick:d(Z),sx:{mr:2},disabled:!x,children:a("oauth.runTest")}),(0,X.jsx)(N.Z,{type:"submit",variant:"contained",disabled:!p.isDirty,children:a("oauth.save")})]}),r]})},tn=[{label:(0,X.jsx)(u.Z,{textAlign:"center",width:"100%",children:"Email"}),value:"email"},{label:(0,X.jsx)(u.Z,{textAlign:"center",width:"100%",children:"More"}),value:"more"}];const on=function(){const[e,n]=(0,a.useState)(tn[0].value),{t:t}=(0,a.useContext)(C.RD),i=(0,Fe.Z)((()=>({email:(0,X.jsx)(nn,{}),more:(0,X.jsx)(u.Z,{children:(0,X.jsx)(Ie.Z,{children:t("notification.comingSoon")})})})),[t]);return(0,X.jsxs)(u.Z,{children:[(0,X.jsx)(k.Z,{tabs:tn,current:e,onChange:n}),(0,X.jsx)(u.Z,{marginTop:"10px",children:i[e]})]})};var an=t(96366),ln=t(75239),rn=t(48342),sn=t(94552),cn=t(24558),dn=t(74286),mn=t(74490),pn=t(76667),un=t(70648),fn=t(44067),hn=t(7664),gn=t(44123),xn=t(53906);const bn=[{value:p.WHO_CAN_ACCESS.ALL,icon:xn.Z,title:{zh:"\u6240\u6709\u4eba\u53ef\u8bbf\u95ee",en:"Accessible to all"},description:{zh:"\u5411\u6240\u6709\u4eba\u5f00\u653e\uff0c\u65e0\u9700\u901a\u884c\u8bc1\u5373\u53ef\u8bbf\u95ee\u5e94\u7528",en:"Open to the world anyone can access without passport"}},{value:p.WHO_CAN_ACCESS.INVITED,icon:gn.Z,title:{zh:"\u53ea\u6709\u88ab\u9080\u8bf7\u7684\u4eba\u53ef\u4ee5\u8bbf\u95ee",en:"Only invited people can access"},description:{zh:"\u7a0d\u540e\u60a8\u53ef\u4ee5\u5728\u7ba1\u7406\u9875\u9762\u4e2d\u9080\u8bf7\u6210\u5458",en:"You can invite members later in the admin page"}},{value:p.WHO_CAN_ACCESS.OWNER,icon:hn.Z,title:{zh:"\u53ea\u6709\u5e94\u7528\u6240\u6709\u8005\u53ef\u4ee5\u8bbf\u95ee",en:"Only Owner of the blocklet can access"},description:{zh:"\u5fc5\u987b\u63d0\u4f9b\u6240\u6709\u8005\u901a\u884c\u8bc1\u624d\u80fd\u8bbf\u95ee\u5e94\u7528",en:"You must provide owner passport to access this application"}}];var vn,Zn;const jn="roles",yn=[...bn,{value:jn,icon:un.Z,title:{zh:"\u6307\u5b9a\u901a\u884c\u8bc1\u53ef\u8bbf\u95ee",en:"Accessible to selected passports"},description:{zh:"\u53ea\u6709\u6307\u5b9a\u7684\u901a\u884c\u8bc1\u53ef\u4ee5\u8bbf\u95ee",en:"Only specified passports can access"}}],Cn=(e,n)=>{if(e&&e.startsWith(p.WHO_CAN_ACCESS_PREFIX_ROLES)){const t=(0,w.getRolesFromAuthConfig)({whoCanAccess:e}),i=n.filter((e=>t.includes(e.name)));return{access:jn,roles:i}}return{access:e,roles:[]}},kn=function(e,n){let{roles:t=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=(e.configs||[]).find((e=>e.key===I.BLOCKLET_CONFIGURABLE_KEY.COMPONENT_ACCESS_WHO));if(i)return Cn(i.value,t);if(n&&P()(n,"settings.whoCanAccess")&&P()(n,"settings.whoCanAccess")!==p.WHO_CAN_ACCESS.ALL)return Cn(P()(n,"settings.whoCanAccess"),t);const o=(0,w.findServiceFromMeta)(e.meta,p.NODE_SERVICES.AUTH);return P()(o,"config.whoCanAccess")?Cn(o.config.whoCanAccess,t):{access:p.WHO_CAN_ACCESS.ALL,roles:[]}};function wn(e){let{blocklet:n,ancestors:t,children:i}=e;const o=(0,an.Z)(),[l,r]=(0,a.useState)(""),{t:s,locale:c}=(0,C.PE)(),{api:d}=(0,ie.h6)(),{roles:m}=(0,Ce.DJ)(),[f,h]=(0,a.useState)(""),g=t[0]||n,{access:x,roles:b}=kn(n,g,{roles:m}),[v,Z]=(0,a.useState)(x),[j,y]=(0,a.useState)(b),k=[...t.map((e=>e.meta.did)),n.meta.did],S={marginRight:4,fontSize:18,verticalAlign:"text-bottom",color:o.palette.text.secondary},E=t.concat(n).map((e=>(0,w.getDisplayName)(e,!0))).join(" / ");if((0,oe.wS)(n.status))return null;if("unknown"===n.status&&(0,oe.wS)(n.status))return null;const L=()=>{r(!1)},P=e=>{e.stopPropagation(),r(!0)},R=f||v===jn&&!j.length;return["function"===typeof i?i({open:P}):(0,X.jsx)(K.Z,{onClick:P,"data-cy":"action-config-component",children:(0,X.jsx)(pn.default,{})}),l&&(0,X.jsxs)(Sn,{open:!0,fullWidth:!0,title:E,onClose:L,PaperProps:{style:{minHeight:"auto"}},actions:(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(N.Z,{onClick:L,color:"inherit","data-cy":"config-access-cancel",children:s("common.cancel")}),(0,X.jsxs)(N.Z,{onClick:async()=>{if(!f){h(!0);try{let e=v;e===jn&&(e="".concat(p.WHO_CAN_ACCESS_PREFIX_ROLES).concat(j.map((e=>e.name)).join(","))),await d.updateWhoCanAccess({input:{did:k,whoCanAccess:e}}),F.Z.success(s("blocklet.config.access.updatedTip")),L(),h(!1)}catch(e){h(!1),F.Z.error((0,oe.Z)(e))}}},color:"primary",disabled:R,variant:"contained",autoFocus:!0,"data-cy":"config-access-confirm",children:[f&&(0,X.jsx)(z.Z,{size:16}),s("common.confirm")]})]}),children:[(0,X.jsx)(u.Z,{mt:4,mb:3,children:(0,X.jsx)(H.Z,{label:s("blocklet.config.access.description"),select:!0,fullWidth:!0,value:v,onChange:e=>{const{value:n}=e.target;Z(n)},"data-cy":"config-access-select",SelectProps:{renderValue:e=>{const n=yn.find((n=>n.value===e));return n?(0,X.jsxs)(u.Z,{children:[(0,X.jsx)(n.icon,{style:S}),n.title[c]]}):null}},children:yn.map((e=>(0,X.jsxs)(En,{value:e.value,sx:{display:"block"},"data-cy":"config-access-opt-".concat(e.value),children:[(0,X.jsxs)(u.Z,{display:"flex",alignItems:"center",children:[(0,X.jsx)(e.icon,{style:S}),(0,X.jsx)(u.Z,{children:e.title[c]})]}),(0,X.jsx)(u.Z,{children:(0,X.jsx)(u.Z,{className:"tip",children:e.description[c]})})]})))})}),v===jn&&(0,X.jsx)(u.Z,{mt:4,mb:3,children:(0,X.jsx)(H.Z,{label:s("blocklet.config.access.description"),select:!0,fullWidth:!0,value:j.map((e=>e.name)),onChange:e=>{y(m.filter((n=>(e.target.value||[]).includes(n.name))))},SelectProps:{multiple:!0,renderValue:e=>(0,X.jsx)(u.Z,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:e.map((e=>{const n=m.find((n=>n.name===e));return(0,X.jsx)(W.Z,{label:n.title},n.text)}))})},children:m.map((e=>{let{name:n,title:t}=e;return(0,X.jsxs)(mn.Z,{value:n,children:[(0,X.jsx)(je.Z,{checked:j.some((e=>e.name===n))}),(0,X.jsx)(fn.Z,{primary:t})]},n)}))})})]})]}wn.propTypes={blocklet:s().object.isRequired,ancestors:s().array,children:s().any},wn.defaultProps={ancestors:[],children:null};const Sn=(0,l.Z)(ge.ZP)(vn||(vn=(0,o.Z)(["\n .MuiDialogContent-root {\n padding-top: 0;\n margin-top: -32px;\n }\n .MuiToolbar-root {\n padding-right: 12px;\n }\n .ux-dialog_right {\n padding-right: 20px;\n }\n"]))),En=(0,l.Z)(mn.Z)(Zn||(Zn=(0,o.Z)(["\n .tip {\n font-size: 12px;\n color: ",";\n }\n"])),(e=>e.theme.palette.text.secondary));var Ln;function Pn(e){var n;let{blocklet:t,ancestors:i,depth:o}=e;const l=(0,an.Z)(),{t:r,locale:s}=(0,C.PE)(),{roles:c}=(0,Ce.DJ)(),[d,m]=(0,a.useState)(!0),{recommendedDomain:p}=(0,pe.y0)(),f=i[0]||t,h="/".concat(i.map((e=>e.mountPoint||"/")).join("/"),"/").concat(t.mountPoint||"/").replace(/\/+/g,"/"),g=(0,oe.vH)({blocklet:f,domain:{value:p},mountPoint:h,params:(0,oe.f0)(f,s)}),x={fill:l.palette.text.secondary},b=o>0&&t.children.length>0,v=(0,X.jsx)(K.Z,{size:"small",children:d?(0,X.jsx)(j.Z,{fontSize:"inherit"}):(0,X.jsx)(Z.default,{fontSize:"inherit"})}),{access:y,roles:k}=kn(t,f,{roles:c});let E;if("roles"!==y)E=bn.find((e=>e.value===y))||bn[2];else{const e=k.map((e=>e.title)).join("/");E={title:{zh:"\u53ea\u6709 ".concat(e," \u53ef\u4ee5\u8bbf\u95ee"),en:"Only ".concat(e," can access")}}}return[(o>0||"gateway"!==t.meta.group)&&(0,X.jsxs)(u.Z,{display:"flex",py:2,className:"component-item",justifyContent:"space-between",alignItems:"center",children:[(0,X.jsxs)(u.Z,{pl:Math.max(2*(o-1),0),width:{xs:300,md:400},display:"flex",alignItems:"center",style:{cursor:b?"pointer":"cursor"},onClick:()=>b&&m(!d),children:[b?v:(0,X.jsx)(u.Z,{width:28}),(0,X.jsx)(S.Z,{blocklet:t,ancestors:i}),(0,X.jsxs)(u.Z,{ml:"16px",children:[(0,X.jsx)(u.Z,{style:{color:"#222",fontSize:18},children:(0,w.getDisplayName)(t,!0)}),(0,X.jsx)(u.Z,{display:"flex",alignItems:"center",children:(0,X.jsx)(u.Z,{color:"text.secondary",children:E.title[s]})})]})]},t),(0,X.jsxs)(u.Z,{children:[(0,X.jsx)(ln.Z,{title:r("common.visit"),children:(0,X.jsx)("a",{target:"_blank",href:g,rel:"noopener noreferrer",title:g,children:(0,X.jsx)(K.Z,{children:(0,X.jsx)(sn.Z,{})})})}),(0,X.jsx)(wn,{blocklet:t,ancestors:i,children:e=>{let{open:n}=e;return(0,X.jsx)(ln.Z,{title:r("common.edit"),children:(0,X.jsx)(K.Z,{onClick:n,"data-cy":"btn-edit-".concat(t.meta.did),children:(0,X.jsx)(cn.Z,{style:x})})})}})]},"actions")]},"group-not-gateway-box"),(0,X.jsx)(dn.Z,{depth:o},"line"),null!==(n=t.children)&&void 0!==n&&n.length?(0,X.jsx)(rn.Z,{in:d,children:t.children.map((e=>(0,X.jsx)(Pn,{blocklet:e,ancestors:[...i,t],depth:o+1},"".concat(o+1,"-").concat(e.meta.did))))},"blocklet-collapse"):null]}function Rn(){const{t:e}=(0,C.PE)(),{blocklet:n}=(0,pe.y0)(),t=[...n.children]||[];return"gateway"!==n.meta.group&&t.unshift(n),(0,X.jsx)(An,{component:"div",children:t&&t.length?[(0,X.jsx)(u.Z,{mt:2,ml:{xs:"-12px",md:"-24px"},style:{maxWidth:1080},children:(0,X.jsx)(Pn,{blocklet:n},"0-".concat(n.meta.did))},"top-blocklet-".concat(n.meta.did))]:(0,X.jsx)(u.Z,{mt:8,children:(0,X.jsx)(Ie.Z,{children:e("blocklet.component.noComponent")})})})}Pn.propTypes={blocklet:s().object.isRequired,ancestors:s().array,depth:s().number},Pn.defaultProps={ancestors:[],depth:0},Rn.propTypes={};const An=(0,l.Z)(u.Z)(Ln||(Ln=(0,o.Z)(["\n .title {\n font-size: 1.2rem;\n font-weight: bold;\n margin-top: ",";\n margin-bottom: ",";\n &.first {\n margin-top: 0;\n }\n }\n"])),(e=>e.theme.spacing(5)),(e=>e.theme.spacing(3)));var Tn=t(56556),_n=t(44784);const Nn=function(){var e,n,t;const{api:i}=(0,ie.h6)(),{blocklet:o}=(0,pe.y0)(),{t:a}=(0,C.PE)(),l=null===o||void 0===o||null===(e=o.meta)||void 0===e?void 0:e.did,r=Object.assign({enabled:!1,domain:"",clientId:""},(null===o||void 0===o||null===(n=o.settings)||void 0===n||null===(t=n.oauth)||void 0===t?void 0:t.auth0)||{}),{handleSubmit:s,control:c,formState:d,watch:m,reset:p}=(0,We.cI)({defaultValues:Ue()(r,["domain","clientId","enabled"])}),f=m("enabled"),h=(0,Ke.Z)((async e=>{try{var n,t;const{blocklet:o}=await i.configOAuth({input:{did:l,oauth:JSON.stringify({auth0:e})}}),r=Object.assign({enabled:!1,domain:"",clientId:""},(null===o||void 0===o||null===(n=o.settings)||void 0===n||null===(t=n.oauth)||void 0===t?void 0:t.auth0)||{});p(r),F.Z.success(a("oauth.saveSuccess"))}catch(o){F.Z.error(o.message||a("oauth.saveFailed"))}})),g=(0,Ke.Z)((e=>!(null===e||void 0===e||!e.trim())||a("oauth.auth0.domainDescribe"))),x=(0,Ke.Z)((e=>!(null===e||void 0===e||!e.trim())||a("oauth.auth0.clientIdDescribe"))),b=(0,Ke.Z)((()=>!0));return(0,X.jsx)(u.Z,{children:(0,X.jsxs)("form",{onSubmit:s(h),disabled:!0,children:[(0,X.jsx)(We.Qr,{name:"enabled",control:c,render:e=>{let{field:n}=e;return(0,X.jsx)(Ze.Z,{control:(0,X.jsx)(_n.Z,{checked:n.value,style:{marginRight:"6px"},...n}),label:a("oauth.auth0.enable"),sx:{marginBottom:2,ml:1}})}}),(0,X.jsx)(We.Qr,{name:"domain",control:c,rules:{validate:f?g:b},render:e=>{var n;let{field:t}=e;return(0,X.jsx)(Be.Z,{fullWidth:!0,children:(0,X.jsx)(H.Z,{...t,label:a("oauth.auth0.domain"),error:!!d.errors[t.name],helperText:(null===(n=d.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!f})})}}),(0,X.jsx)(We.Qr,{name:"clientId",control:c,rules:{validate:f?x:b},render:e=>{var n;let{field:t}=e;return(0,X.jsx)(Be.Z,{fullWidth:!0,children:(0,X.jsx)(H.Z,{...t,error:!!d.errors[t.name],label:a("oauth.auth0.clientId"),helperText:(null===(n=d.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!f})})}}),(0,X.jsx)(Tn.Z,{type:"submit",variant:"contained",onSubmit:s(h),disabled:!d.isDirty,children:a("oauth.save")})]})})};var On=t(51279),In=t(24103);const Fn={ttl:604800};function Bn(e){const n=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?86400*e.ttl:e.ttl/86400;return{...e,ttl:n}}function zn(){var e,n;const{api:t}=(0,ie.h6)(),{blocklet:i}=(0,pe.y0)(),o=null===i||void 0===i||null===(e=i.meta)||void 0===e?void 0:e.did,a=Object.assign({},Fn,(null===i||void 0===i||null===(n=i.settings)||void 0===n?void 0:n.session)||{}),{handleSubmit:l,control:r,formState:s,reset:c}=(0,We.cI)({defaultValues:Ue()(Bn(a),["ttl"])}),{t:d}=(0,C.PE)(),m=(0,Ke.Z)((async e=>{try{var n;const{blocklet:i}=await t.updateAppSessionConfig({input:{did:o,config:Bn(e,!0)}}),a=Object.assign({},Fn,Ue()((null===i||void 0===i||null===(n=i.settings)||void 0===n?void 0:n.session)||{},["ttl"]));c(Bn(a)),F.Z.success(d("common.configSuccess"))}catch(i){F.Z.error(i.message)}}));return(0,X.jsx)(u.Z,{children:(0,X.jsxs)("form",{onSubmit:l(m),disabled:!0,children:[(0,X.jsx)(We.Qr,{name:"ttl",control:r,render:e=>{let{field:n}=e;return(0,X.jsx)(Be.Z,{fullWidth:!0,sx:{mb:2},children:(0,X.jsxs)(In.Z,{px:3,children:[(0,X.jsx)(u.Z,{mx:-3,my:.5,children:d("blocklet.config.session.ttl",{day:n.value})}),(0,X.jsx)(On.ZP,{...n,defaultValue:7,step:1,marks:[{value:1,label:d("blocklet.config.session.day",{day:1})},{value:7,label:d("blocklet.config.session.days",{day:7})},{value:14,label:d("blocklet.config.session.days",{day:14})},{value:21,label:d("blocklet.config.session.days",{day:21})},{value:30,label:d("blocklet.config.session.days",{day:30})}],min:1,max:30,valueLabelDisplay:"auto",style:{maxWidth:"360px"}})]})})}}),(0,X.jsx)(Tn.Z,{type:"submit",variant:"contained",onSubmit:l(m),disabled:!s.isDirty,children:d("oauth.save")})]})})}var Un=t(82555),Dn=t(30333),Kn=t(75760),Wn=t(97038),qn=t(64886),Gn=t(42080),Vn=t.n(Gn),Hn=t(75506),Mn=t.n(Hn),Yn=t(47685),Jn=t(13260),Qn=t(82434),Xn=t.n(Qn);const $n=(0,a.forwardRef)(((e,n)=>{var t,i;const{t:o}=(0,a.useContext)(C.RD),{blocklet:l}=(0,pe.y0)(),{api:r}=(0,ie.h6)(),s=(0,De.Z)({mode:"view",show:!1,data:{},callback:Qe()}),c=(0,Yn.Fg)(),d=(null===c||void 0===c||null===(t=c.transitions)||void 0===t||null===(i=t.duration)||void 0===i?void 0:i.leavingScreen)||300,p=(0,Ke.Z)((()=>{s.mode="view",s.data={},s.callback=Qe()}),[]),f=(0,Ke.Z)((()=>{s.show=!1,setTimeout((()=>{p()}),d)}),[]),h=(0,Ke.Z)((e=>{s.mode="view",s.show=!0,s.data=e}),[]),g=(0,Ke.Z)((function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qe();s.mode="approve",s.show=!0,s.data=e,s.callback=n}),[]);(0,a.useImperativeHandle)(n,(()=>({open:h,close:f,approve:g})),[h,f,g]);const x=(0,Fe.Z)((()=>{if(!s.show)return[];s.data.migratedFrom=[s.data.appId,s.data.appPid];const e=["appName","appLogo","appId","appPid","migratedFrom","appDescription","appUrl","version","appliedAt","status","serverId","serverVersion"];return!1!==s.data.isMaster&&Vn()(e,"appliedAt","status"),e.map((e=>{const n=o("federated.info.".concat(e));let t=s.data[e];if("appName"===e&&s.data.isMaster&&(t=(0,X.jsxs)(u.Z,{children:[(0,X.jsx)(Un.Z,{component:Dn.Z}),t]})),["appId","appPid","serverId"].includes(e)&&(t=(0,X.jsx)(Jn.kL,{children:t})),["appUrl"].includes(e)&&(t=(0,X.jsx)(u.Z,{component:"a",href:t,target:"_blank",children:t})),["appLogo"].includes(e)){const e=Xn()(t)?t:m()(s.data.appUrl||"",t||"");try{const n=new URL(e);n.searchParams.set("imageFilter","resize"),n.searchParams.set("w","80"),n.searchParams.set("h","80"),t=(0,X.jsx)("img",{src:n.href,width:"60",height:"60",alt:s.data.appName})}catch{t=(0,X.jsx)("img",{src:e,width:"60",height:"60",alt:s.data.appName})}}if("status"===e&&(t=t&&o("federated.status.".concat(t))),"migratedFrom"===e){t=(s.data.migratedFrom||[]).filter((e=>![s.data.appId,s.data.appPid].includes(e))).map((e=>(0,X.jsx)(Jn.kL,{children:e})))}return Mn()(t)&&(t="-"),{name:n,value:t}}))}),[s.data]),b="approve"===s.mode,v=(0,Ke.Z)((async()=>{await r.auditFederatedLogin({input:{memberPid:s.data.appPid,did:l.appPid,status:"rejected"}}),f(),null===s||void 0===s||s.callback(!1)})),Z=(0,Ke.Z)((async()=>{await r.auditFederatedLogin({input:{memberPid:s.data.appPid,did:l.appPid,status:"approved"}}),f(),null===s||void 0===s||s.callback(!0)}));return(0,X.jsx)(ge.ZP,{open:s.show,title:o(b?"federated.approveToJoinLogin":"federated.siteDetail"),onClose:f,actions:b?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Tn.Z,{color:"error",variant:"contained",onClick:v,children:o("common.reject")}),(0,X.jsx)(Tn.Z,{variant:"contained",onClick:Z,children:o("common.approve")})]}):(0,X.jsx)(Tn.Z,{variant:"outlined",onClick:f,children:o("common.close")}),children:x.map((e=>(0,X.jsx)(qn.Z,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:180,name:e.name,children:e.value},e.name)))})}));var et=t(79842),nt=t(85408),tt=t.n(nt);const it=(0,a.forwardRef)(((e,n)=>{var t,i;const o=(0,Yn.Fg)(),l=(null===o||void 0===o||null===(t=o.transitions)||void 0===t||null===(i=t.duration)||void 0===i?void 0:i.leavingScreen)||300,{t:r}=(0,a.useContext)(C.RD),s=(0,De.Z)({show:!1,data:{link:""}}),c=(0,Ke.Z)((()=>{s.data.link=""}),[]),d=(0,Ke.Z)((()=>{s.show=!1,setTimeout((()=>{c()}),l)}),[]),m=(0,Ke.Z)((e=>{let{link:n}=e;s.show=!0,s.data.link=n}),[]);(0,a.useImperativeHandle)(n,(()=>({open:m,close:d})),[m,d]);const p=(0,Ke.Z)((()=>{tt()(s.data.link),d()}),[d]);return(0,X.jsxs)(ge.ZP,{open:s.show,title:r("federated.joinFederatedLogin"),onClose:d,PaperProps:{style:{minHeight:"unset"}},actions:(0,X.jsx)(N.Z,{color:"primary",autoFocus:!0,variant:"contained",onClick:p,children:r("common.copyAndClose")}),children:[(0,X.jsx)(u.Z,{mb:1,children:r("federated.inviteJoinFederatedLoginDescription")}),(0,X.jsx)(u.Z,{sx:{"& .copy-button":{display:"none !important"}},children:(0,X.jsx)(et.Z,{language:"shell",style:{marginBottom:0},children:s.data.link})})]})}));function ot(e){var n,t,i,o,l;let{mode:r}=e;const s=(0,a.useRef)(null),c=(0,a.useRef)(null),{t:d,locale:m}=(0,a.useContext)(C.RD),{blocklet:p,actions:{refreshBlocklet:f}}=(0,pe.y0)(),{confirmApi:h,confirmHolder:g}=$e(),{api:x}=(0,ie.h6)(),b=(null===(n=p.settings.federated)||void 0===n?void 0:n.sites)||[],v=(null===(t=p.settings.federated)||void 0===t?void 0:t.config)||{},Z=!1!==v.isMaster,j=(0,Ke.Z)((e=>{var n;null===(n=c.current)||void 0===n||n.open(e)})),y=(0,Ke.Z)((e=>{var n;null===(n=c.current)||void 0===n||n.approve(e,f)})),k=(0,Ke.Z)((e=>{h.open({title:d("federated.disableFederatedLogin"),content:d("federated.disableFederatedLoginDescription"),async onConfirm(n){await x.auditFederatedLogin({input:{memberPid:e.appPid,did:p.appPid,status:"revoked"}}),n()}})})),w=(0,Ke.Z)((e=>{h.open({title:d("federated.enableFederatedLogin"),content:d("federated.enableFederatedLoginDescription"),async onConfirm(n){await x.auditFederatedLogin({input:{memberPid:e.appPid,did:p.appPid,status:"approved"}}),n()}})})),S=(0,Fe.Z)((()=>{const e=[{label:d("common.name"),name:"appName",options:{customBodyRenderLite:e=>{const n=b[e],t=!1!==n.isMaster;return(0,X.jsx)(u.Z,{display:"inline-block",children:(0,X.jsxs)(u.Z,{component:"a",display:"flex",alignItems:"center",href:n.appUrl,target:"_blank",onClick:e=>{e.stopPropagation()},children:[t&&(0,X.jsx)(Un.Z,{component:Dn.Z,style:{marginRight:"4px"}}),n.appName]})})}}},{label:d("common.did"),name:"appId",options:{customBodyRenderLite:e=>{const n=b[e];return(0,X.jsx)(Wn.Z,{children:n.appId})}}},{label:d("common.status"),name:"status",options:{customBodyRenderLite:e=>{const n=b[e],t=!1!==n.isMaster;return(0,X.jsx)(u.Z,{children:t?"-":d("federated.status.".concat(n.status))})}}}];return Z&&e.push({label:d("common.actions"),name:"actions",options:{customBodyRenderLite:e=>{const n=b[e],t=!1!==n.isMaster;return(0,X.jsx)(u.Z,{display:"flex",gap:1,children:t?(0,X.jsxs)(X.Fragment,{children:["rejected"===n.status&&(0,X.jsx)(N.Z,{variant:"contained",color:"error",size:"small",onClick:e=>{e.stopPropagation()},children:d("federated.status.rejected")}),"revoked"===n.status&&(0,X.jsx)(N.Z,{variant:"contained",color:"secondary",size:"small",onClick:e=>{e.stopPropagation()},children:d("federated.status.revoked")})]}):(0,X.jsxs)(X.Fragment,{children:["pending"===n.status&&(0,X.jsx)(N.Z,{variant:"contained",color:"primary",size:"small",onClick:e=>{e.stopPropagation(),y(n)},children:d("federated.status.pending")}),"approved"===n.status&&(0,X.jsx)(N.Z,{variant:"contained",color:"error",size:"small",onClick:e=>{e.stopPropagation(),k(n)},style:{whiteSpace:"nowrap"},children:d("federated.revoke")}),"revoked"===n.status&&(0,X.jsx)(N.Z,{variant:"contained",color:"warning",size:"small",onClick:e=>{e.stopPropagation(),w(n)},style:{whiteSpace:"nowrap"},children:d("federated.approve")})]})})}}}),e}),[v.appId,b,Z,d]),E=(0,Fe.Z)((()=>({sort:!0,download:!1,filter:!1,print:!1,expandableRowsOnClick:!0,onRowClick(e,n){let{dataIndex:t}=n;const i=b[t];j(i)}})),[]),L=(0,Ke.Z)((()=>{const e=p.environments.find((e=>e.key===I.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL));var n;null!==e&&void 0!==e&&e.value?null===(n=s.current)||void 0===n||n.open({link:e.value}):F.Z.error(d("federated.failedToGetFederatedLoginLink"))}),[null===(i=p.site)||void 0===i||null===(o=i.domainAliases)||void 0===o||null===(l=o[0])||void 0===l?void 0:l.href]),P=(0,Ke.Z)((()=>{h.open({title:d("federated.quitFederatedLogin"),content:d("federated.quitFederatedLoginDescription"),async onConfirm(e){await x.quitFederatedLogin({input:{did:p.appPid}}),e()}})})),R=(0,Ke.Z)((()=>{h.open({title:d("federated.disbandFederatedLogin"),content:d("federated.disbandFederatedLoginDescription"),async onConfirm(e){await x.disbandFederatedLogin({input:{did:p.appPid}}),e()}})})),A=[];return"master"!==r?A.push((0,X.jsx)(N.Z,{size:"small",variant:"contained",color:"error",onClick:P,sx:{ml:1},children:d("federated.quitFederatedLogin")},"quitFederatedLogin")):(A.push((0,X.jsx)(N.Z,{size:"small",variant:"contained",onClick:L,sx:{ml:1},children:d("federated.inviteJoinFederatedLogin")},"inviteJoinFederatedLogin")),A.push((0,X.jsx)(N.Z,{color:"error",size:"small",variant:"contained",onClick:R,sx:{ml:1},children:d("federated.disbandFederatedLogin")},"disbandFederatedLogin"))),(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Kn.Z,{className:"main-table",locale:m,data:b,columns:S,customButtons:A,title:(0,X.jsx)(u.Z,{className:"table-toolbar-left",children:d("oauth.federated")}),options:E}),g,(0,X.jsx)(it,{ref:s}),(0,X.jsx)($n,{ref:c})]})}ot.propTypes={mode:s().oneOf(["member","master"])},ot.defaultProps={mode:"member"};const at=ot,lt=(0,a.forwardRef)(((e,n)=>{var t,i;const{t:o}=(0,a.useContext)(C.RD),{api:l}=(0,ie.h6)(),{blocklet:r}=(0,pe.y0)(),s=null===r||void 0===r?void 0:r.appPid,c=(0,Yn.Fg)(),d=(null===c||void 0===c||null===(t=c.transitions)||void 0===t||null===(i=t.duration)||void 0===i?void 0:i.leavingScreen)||300,m=(0,De.Z)({show:!1,appUrl:"",appUrlError:"",callback:Qe()}),p=(0,Ke.Z)((()=>{m.appUrl="",m.appUrlError="",m.callback=Qe()}),[]),f=(0,Ke.Z)((()=>{m.show=!1,setTimeout((()=>{p()}),d)}),[]),h=(0,Ke.Z)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qe();m.show=!0,m.callback=e}),[]);(0,a.useImperativeHandle)(n,(()=>({open:h,close:f})),[h,f]);const g=(0,Ke.Z)((e=>{if(!e)throw new Error(o("federated.federatedJoinAppUrlRequired"));if(!Xn()(e))throw new Error(o("federated.federatedJoinAppUrlInvalid"))})),x=(0,Ke.Z)((async()=>{try{g(m.appUrl);const e=await l.joinFederatedLogin({input:{did:s,appUrl:m.appUrl}});m.show=!1,f(),null===m||void 0===m||m.callback(e)}catch(e){m.appUrlError=e.message}}),[f,s]);return(0,X.jsxs)(ge.ZP,{open:m.show,title:o("federated.joinFederatedLogin"),onClose:f,PaperProps:{style:{minHeight:"unset"}},actions:(0,X.jsx)(N.Z,{color:"primary",autoFocus:!0,variant:"contained",onClick:x,children:o("common.confirm")}),children:[(0,X.jsx)(u.Z,{mb:1,children:o("federated.joinFederatedLoginDescription")}),(0,X.jsx)(H.Z,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:o("federated.federatedJoinAppUrl"),label:o("federated.federatedJoinAppUrl"),value:m.appUrl,error:!!m.appUrlError,helperText:m.appUrlError||"eg: https://www.arcblock.io",onChange:e=>{m.appUrl=e.target.value}})]})}));function rt(){var e,n,t,i;const o=(0,a.useRef)(null),l=(0,a.useRef)(null),{t:r}=(0,a.useContext)(C.RD),{blocklet:s,actions:{refreshBlocklet:c}}=(0,pe.y0)(),d=(0,Ke.Z)((()=>{var e,n,t;const i=null===(e=s.site)||void 0===e||null===(n=e.domainAliases)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.href;if(i)try{var a;const e=new URL(i);null===(a=o.current)||void 0===a||a.open({link:e.origin})}catch{F.Z.error(r("federated.failedToGetFederatedLoginLink"))}}),[null===(e=s.site)||void 0===e||null===(n=e.domainAliases)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.href]),m=(0,Ke.Z)((()=>{var e;null===(e=l.current)||void 0===e||e.open((()=>{c()}))}),[c]);if((null===(i=s.settings.federated)||void 0===i?void 0:i.sites.length)>0){var p;const e=!1!==(null===(p=s.settings.federated)||void 0===p?void 0:p.config.isMaster);return(0,X.jsx)(at,{mode:e?"master":"member"})}return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(u.Z,{display:"flex",flexDirection:"column",gap:2,justifyContent:"center",alignItems:"center",minHeight:"200px",children:[(0,X.jsx)(N.Z,{variant:"contained",onClick:d,children:r("federated.inviteJoinFederatedLogin")}),(0,X.jsx)(_.Z,{sx:{width:"150px",color:"rgba(0, 0, 0, 0.3)"},children:"OR"}),(0,X.jsx)(N.Z,{variant:"outlined",onClick:m,children:r("federated.joinFederatedLogin")})]}),(0,X.jsx)(it,{ref:o}),(0,X.jsx)(lt,{ref:l})]})}const st=function(){const{t:e}=(0,a.useContext)(C.RD),n=[{label:(0,X.jsx)(u.Z,{textAlign:"center",width:"100%",children:e("oauth.commonSettings")}),value:"settings"},{label:(0,X.jsx)(u.Z,{textAlign:"center",width:"100%",children:e("oauth.federated")}),value:"federated"},{label:(0,X.jsx)(u.Z,{textAlign:"center",width:"100%",children:"Auth0"}),value:"auth0"},{label:(0,X.jsx)(u.Z,{textAlign:"center",width:"100%",children:e("oauth.moreLogin")}),value:"more"}],[t,i]=(0,a.useState)(n[0].value),o=(0,Fe.Z)((()=>({auth0:(0,X.jsx)(Nn,{}),federated:(0,X.jsx)(rt,{}),more:(0,X.jsx)(u.Z,{children:(0,X.jsx)(Ie.Z,{children:e("oauth.comingSoon")})}),settings:(0,X.jsx)(u.Z,{children:(0,X.jsx)(zn,{})})})),[e]);return(0,X.jsxs)(u.Z,{children:[(0,X.jsx)(k.Z,{tabs:n,current:t,onChange:i}),(0,X.jsx)(u.Z,{marginTop:"10px",children:o[t]})]})};var ct;const dt=e=>{let{tabs:n,blocklet:t,ancestors:i=[],depth:o=1,t:a}=e;const l=[...i.map((e=>e.meta.did)),t.meta.did].join("/"),r=!(null!==i&&void 0!==i&&i.length);n.push({label:(0,X.jsxs)(u.Z,{pl:2*Math.max(1,o-1),display:"flex",alignItems:"center",justifyContent:"flex-start",children:[r?(0,X.jsx)(E.Z,{size:24,blocklet:t}):(0,X.jsx)(S.Z,{size:24,blocklet:t,ancestors:i}),(0,X.jsx)(u.Z,{ml:"16px",children:(0,X.jsx)(u.Z,{style:{color:"#222"},children:r?a("blocklet.component.container"):(0,w.getDisplayName)(t,!0)})})]},l),value:l}),t.children.length>0&&t.children.forEach((e=>{dt({tabs:n,blocklet:e,ancestors:[...i,t],depth:o+1,t:a})}))};function mt(e){let{blocklet:n,onUpdate:t,...i}=e;const{t:o}=(0,a.useContext)(C.RD),{info:l,inService:r}=(0,ie.h6)(),[s,d]=(0,a.useState)(!0),[w,S]=(0,y.useSearchParams)(),E=w.get("tab")||"general",L=[{label:(0,X.jsxs)(u.Z,{display:"flex",alignItems:"center","data-cy":"configuration-tab-general",children:[(0,X.jsx)(h.Z,{sx:{fontSize:24}}),(0,X.jsx)(u.Z,{ml:"16px",children:(0,X.jsx)(u.Z,{style:{color:"#222"},children:o("common.general")})})]},"general"),value:"general"},{label:(0,X.jsxs)(u.Z,{display:"flex",alignItems:"center","data-cy":"configuration-tab-access",children:[(0,X.jsx)(g.Z,{sx:{fontSize:24}}),(0,X.jsx)(u.Z,{ml:"16px",children:(0,X.jsx)(u.Z,{style:{color:"#222"},children:o("common.access")})})]},"access"),value:"access"},{label:(0,X.jsxs)(u.Z,{display:"flex",alignItems:"center","data-cy":"configuration-tab-oauth",children:[(0,X.jsx)(x.Z,{sx:{fontSize:24}}),(0,X.jsx)(u.Z,{ml:"16px",children:(0,X.jsx)(u.Z,{style:{color:"#222"},children:o("common.login")})})]},"oauth"),value:"oauth"},{label:(0,X.jsxs)(u.Z,{display:"flex",alignItems:"center","data-cy":"configuration-tab-notification",children:[(0,X.jsx)(b.Z,{sx:{fontSize:24}}),(0,X.jsx)(u.Z,{ml:"16px",children:(0,X.jsx)(u.Z,{style:{color:"#222"},children:o("common.notification")})})]},"notification"),value:"notification"},{label:(0,X.jsxs)(u.Z,{display:"flex",alignItems:"center","data-cy":"configuration-tab-preference",children:[(0,X.jsx)(u.Z,{ml:-2,style:{transform:"translateY(2px)"},children:s?(0,X.jsx)(j.Z,{fontSize:"inherit"}):(0,X.jsx)(Z.default,{fontSize:"inherit"})}),(0,X.jsx)(v.Z,{sx:{fontSize:24}}),(0,X.jsx)(u.Z,{ml:"16px",children:(0,X.jsx)(u.Z,{style:{color:"#222"},children:o("common.preferences")})})]},"preference"),value:"preference"}];s&&dt({tabs:L,blocklet:n,t:o});let P=null;if("general"===E)P=(0,X.jsx)(Ne,{blocklet:n,onUpdate:t});else if("access"===E)P=(0,X.jsx)(Rn,{});else if("oauth"===E)P=(0,X.jsx)(st,{});else if("notification"===E)P=(0,X.jsx)(on,{});else{const e=r?p.WELLKNOWN_SERVICE_PATH_PREFIX:l.routing.adminPath,n=new URLSearchParams;r||n.set("authKey","__sst"),n.set("schemaKey",m()(window.location.origin,e,"/api/preferences?id=".concat(encodeURIComponent(E)))),P=(0,X.jsx)(c.Z,{url:"".concat(m()(window.location.origin,e,"/hosted/form-collector/"),"?").concat(n.toString()),width:"100%",height:"100%",frameBorder:0,styles:{border:0}})}return(0,X.jsx)(pt,{...i,children:(0,X.jsxs)(f.ZP,{container:!0,spacing:4,columns:24,children:[(0,X.jsx)(f.ZP,{item:!0,sm:7,md:5,children:(0,X.jsx)(k.Z,{tabs:L,current:E,orientation:"vertical",onChange:e=>{"preference"===e?d(!s):S((n=>("general"===e?n.delete("tab"):n.set("tab",e),n)))},sx:{borderRight:1,height:"100%",borderColor:"divider"}})}),(0,X.jsx)(f.ZP,{item:!0,sm:17,md:19,children:(0,X.jsx)(u.Z,{style:{minHeight:"66vh",height:"100%",position:"relative",overflow:"hidden"},children:P})})]})})}mt.propTypes={blocklet:s().object.isRequired,onUpdate:s().func},mt.defaultProps={onUpdate:()=>{}};const pt=l.Z.div(ct||(ct=(0,o.Z)(["\n .MuiTab-root {\n text-align: left;\n align-items: flex-start;\n font-weight: normal;\n }\n .Mui-selected {\n font-weight: bold;\n }\n"])))},78410:(e,n,t)=>{t.d(n,{Z:()=>p});var i=t(5057),o=t(86229),a=t(28726),l=t(44846),r=t(68420),s=t(14491),c=t(58238),d=t(70461),m=t(96266);function p(e){let{teamDid:n,size:t="small",...p}=e;const{t:u}=(0,r.PE)(),{api:f}=(0,c.h6)(),[h,g]=(0,i.useState)(!1),[x,b]=(0,i.useState)(null),v={title:u("blocklet.config.clearCache.title"),description:u("blocklet.config.clearCache.description"),confirm:u("common.confirm"),cancel:u("common.cancel"),onConfirm:async()=>{try{var e;g(!0);const t=await f.clearCache({input:{teamDid:n}});o.Z.success(u("blocklet.config.clearCache.success",{count:(null===(e=t.removed)||void 0===e?void 0:e.length)||0}))}catch(t){o.Z.error((0,s.Z)(t))}finally{g(!1),b(null)}},onCancel:()=>{g(!1),b(null)}};return(0,m.jsxs)("div",{...p,children:[(0,m.jsxs)(a.Z,{onClick:()=>b(v),color:"error",variant:"outlined",size:t,children:[h?(0,m.jsx)(l.Z,{size:16,style:{marginRight:5}}):null,u("blocklet.config.clearCache.action")]}),x&&(0,m.jsx)(d.Z,{title:x.title,description:x.description,confirm:x.confirm,cancel:x.cancel,onConfirm:x.onConfirm,onCancel:x.onCancel})]})}},50185:(e,n,t)=>{t.d(n,{Z:()=>c});var i=t(5057),o=t(55898),a=t.n(o),l=t(12937),r=t(68420),s=t(96266);function c(e){let{children:n,...t}=e;const{t:o}=(0,i.useContext)(r.RD);return(0,s.jsx)(l.Z,{tip:o("common.copyTip"),copiedTip:o("common.copiedTip"),...t,children:n})}c.propTypes={children:a().any.isRequired}},28641:(e,n,t)=>{t.d(n,{Z:()=>x});var i=t(5057),o=t(55898),a=t.n(o),l=t(39948),r=t(47020),s=t(44846),c=t(13727),d=t(56184),m=t(67680),p=t(35406),u=t(11875),f=t(95890),h=t(96266);const g=(e,n,t)=>null===e&&n&&t?"******":e?n?"******":e:"";function x(e){let{label:n,disabled:t,required:o,initialValue:a,onChange:x,placeholder:b,style:v,onSubmit:Z,secure:j,triggers:y,formatterBeforeSubmit:C,...k}=e;const[w,S]=(0,i.useState)(!1),[E,L]=(0,i.useState)(!1),[P,R]=(0,i.useState)(j&&"__encrypted__"===a?null:a),[A,T]=(0,i.useState)(P),_=async()=>{L(!0);try{if(!1===await Z(A))T(P);else{let e=A;"function"===typeof C&&(e=C(A)),T(e),R(e)}}catch(e){T(P)}finally{L(!1),S(!1)}},N=w?(0,h.jsx)(r.Z,{style:{flex:1},fullWidth:!0,value:A,onChange:e=>{var n;n=e.target.value,T(n),x(n)},autoFocus:!0,size:"small",variant:"outlined",placeholder:b,onKeyDown:e=>{"Enter"===e.key&&_()},disabled:t,type:j?"password":"text",...k}):(0,h.jsx)(l.Z,{px:1,className:"form-item-input slot",style:{whiteSpace:"pre-wrap"},children:g(A,j,a)});return(0,h.jsx)(u.Z,{className:"form",style:v,children:(0,h.jsxs)(l.Z,{className:"form-item",children:[(0,h.jsxs)(l.Z,{className:"form-item-label",children:[n,o&&(0,h.jsx)(p.Z,{})]}),(0,h.jsxs)(l.Z,{className:"form-item-body",children:[(0,h.jsx)(l.Z,{className:"form-item-input",children:N}),(0,h.jsx)(l.Z,{className:"form-item-action",children:w?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(m.Z,{"data-cy":"schema-form-item-confirm",onClick:_,disabled:t||E,size:"large",children:E?(0,h.jsx)(s.Z,{size:24}):(0,h.jsx)(d.Z,{})}),(0,h.jsx)(m.Z,{"data-cy":"schema-form-item-cancel",onClick:()=>{T(P),S(!1)},disabled:t||E,size:"large",children:(0,h.jsx)(c.default,{})})]}):(0,h.jsx)(f.Z,{triggers:y,onEnterEdit:()=>S(!0),disabled:t})})]})]})})}x.propTypes={style:a().object,onSubmit:a().func,onChange:a().func,label:a().string,initialValue:a().string,placeholder:a().string,required:a().bool,disabled:a().bool,secure:a().bool,triggers:a().array,formatterBeforeSubmit:a().func},x.defaultProps={style:{},onSubmit:()=>{},onChange:()=>{},label:"",initialValue:"",placeholder:"",required:!1,disabled:!1,secure:!1,triggers:[],formatterBeforeSubmit:null}},11875:(e,n,t)=>{t.d(n,{Z:()=>r});var i,o=t(71171),a=t(33518),l=t(39948);const r=(0,a.Z)(l.Z)(i||(i=(0,o.Z)(["\n width: 100%;\n flex-grow: 1;\n overflow-y: auto;\n "," {\n width: 100%;\n flex-shrink: 0;\n padding: 0 24px;\n transform: translate(0, 0);\n /* max-height: 60vh; */\n }\n\n .form-item {\n width: 100%;\n margin-bottom: 24px;\n position: relative;\n "," {\n flex-wrap: wrap;\n justify-content: space-between;\n width: 100%;\n flex-shrink: 0;\n }\n }\n\n .form-item-body {\n display: flex;\n align-items: center;\n width: 100%;\n margin-top: 4px;\n }\n\n .form-item-label {\n line-height: 1.2;\n font-size: 14px;\n color: #888;\n font-weight: bold;\n\n "," {\n text-align: left;\n width: auto;\n flex-grow: 1;\n }\n }\n\n .form-item-input {\n flex-grow: 1;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n &.slot {\n height: 40px;\n line-height: 40px;\n background: #f8f8f8;\n font-size: 16px;\n\n .MuiChip-root {\n margin-top: -4px;\n }\n }\n\n .MuiSelect-select {\n padding: 8px;\n }\n }\n\n .form-item-action {\n // width: 100px;\n text-align: left;\n margin-left: 12px;\n flex-shrink: 0;\n "," {\n width: auto;\n margin-left: 0px;\n }\n .MuiIconButton-root {\n padding: 8px;\n svg {\n fill: #888;\n }\n &.Mui-disabled {\n opacity: 0.4;\n }\n }\n }\n"])),(e=>e.theme.breakpoints.down("md")),(e=>e.theme.breakpoints.down("md")),(e=>e.theme.breakpoints.down("md")),(e=>e.theme.breakpoints.down("md")))},95890:(e,n,t)=>{t.d(n,{Z:()=>x});var i=t(5057),o=t(55898),a=t.n(o),l=t(24558),r=t(67680),s=t(56556),c=t(80633),d=t(49390),m=t(72113),p=t(25228),u=t(49020),f=t(74490),h=t(1733),g=t(96266);function x(e){let{triggers:n,onEnterEdit:t,disabled:o}=e;const a=i.useRef(null),[x,b]=i.useState(!1);return 0===n.length?(0,g.jsx)(r.Z,{"data-cy":"schema-form-item-edit",onClick:t,disabled:o,size:"large",children:(0,g.jsx)(l.Z,{})}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(c.Z,{variant:"outlined",ref:a,"aria-label":"split button",children:[(0,g.jsx)(s.Z,{"data-cy":"schema-form-item-edit",onClick:t,disabled:o,size:"large",children:(0,g.jsx)(l.Z,{})}),(0,g.jsx)(s.Z,{size:"small","aria-controls":x?"split-button-menu":void 0,"aria-expanded":x?"true":void 0,onClick:()=>{b((e=>!e))},children:(0,g.jsx)(d.Z,{})})]}),(0,g.jsx)(u.Z,{sx:{zIndex:9999},open:x,anchorEl:a.current,role:void 0,placement:"bottom-end",children:(0,g.jsx)(p.Z,{children:(0,g.jsx)(m.d,{onClickAway:e=>{a.current&&a.current.contains(e.target)||b(!1)},children:(0,g.jsx)(h.Z,{id:"split-button-menu",autoFocusItem:!0,children:n.map((e=>(0,g.jsx)(f.Z,{onClick:()=>{return n=e.handler,b(!1),void n();var n},children:e.title},e.key)))})})})})]})}x.propTypes={triggers:a().arrayOf(a().shape({key:a().string.isRequired,title:a().string.isRequired,handler:a().func.isRequired})),onEnterEdit:a().func.isRequired,disabled:a().bool.isRequired},x.defaultProps={triggers:[]}},35406:(e,n,t)=>{t.d(n,{Z:()=>a});var i,o=t(71171);const a=t(33518).Z.span(i||(i=(0,o.Z)(["\n color: ",";\n &::before {\n content: '*';\n }\n"])),(e=>e.theme.palette.error.main))},54063:(e,n,t)=>{t.d(n,{C:()=>i});const i="true"===localStorage.getItem("enableDebug")}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6511],{86511:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ne});var a=n(71171),i=n(5057),o=n(33518),l=n(85493),s=n(15849),c=n(68420),r=n(11750),d=n(39434),u=n(39948),p=n(83407),m=n(94464),v=n(88574),h=n(28726),g=n(38242),b=n(81010),f=n(87363),y=(n(5892),n(86229)),k=n(1722),x=n(35432),w=n(43316),P=n(58238),j=n(29054),S=n(73545),B=n(14491),Z=n(4651),C=n(96266);const E=e=>{const t={};let n=null;return(0,g.forEachBlockletSync)(e,(e=>{t[e.meta.bundleDid]?n=(0,g.getDisplayName)(e,!0):e.meta.bundleDid&&(t[e.meta.bundleDid]=!0)})),n},L=(e,t,n)=>{const{hostname:a,href:i}=e;if(!t)return i;if(n){var o;const e=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(a);if(!e)return i;const n=e[0],l=(((null===(o=t.site)||void 0===o?void 0:o.domainAliases)||[]).map((e=>e.value)).filter(Boolean).find((e=>e.endsWith(x.DEFAULT_DID_DOMAIN)))||"").replace(".".concat(x.DEFAULT_DID_DOMAIN),"");return l?i.replace(a,"".concat(l,"-").concat(n,".").concat(x.DEFAULT_IP_DOMAIN_SUFFIX)):i}return i.replace(t.meta.bundleDid,t.appPid)};function _(){const{t:e}=(0,c.PE)(),{api:t}=(0,S.T)(),{blocklet:n}=(0,j.y0)(),{inService:a}=(0,P.h6)(),[o,l]=(0,i.useState)(!1),[s,r]=(0,i.useState)(5),d=n&&n.structVersion!==x.APP_STRUCT_VERSION;return[d&&(0,C.jsxs)(v.Z,{type:"warning",style:{margin:"12px 0"},children:[(0,C.jsxs)(u.Z,{display:"flex",alignItems:"center",children:[(0,C.jsx)(h.Z,{variant:"contained",size:"small",color:"primary",onClick:()=>(()=>{try{if("running"===n.status)return void y.Z.error(e("blocklet.migrate.tip.running"));const t=E(n);if(t)return void y.Z.error(e("blocklet.migrate.tip.duplicate",{name:t}));l(!0)}catch(t){y.Z.error((0,B.Z)(t))}})(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),(0,C.jsx)("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map((t=>(0,C.jsx)(u.Z,{display:"flex",alignItems:"center",children:e("blocklet.migrate.intro.".concat(t))},t)))]},"alert"),n&&(0,C.jsx)(w.Z,{popup:!0,open:o,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:3e5,onSuccess:()=>{const e=L(window.location,n,a);setTimeout((()=>{window.location.href=e}),5e3),r(5),setInterval((()=>{r((e=>e-1))}),1e3)},extraParams:{appDid:n.appDid,did:n.meta.did,wt:(0,Z.iK)(n,!0),title:(0,g.getDisplayName)(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:s>=0?e("blocklet.migrate.success",{sec:s}):"Redirecting..."},onClose:()=>l(!1)},"connect")]}_.propTypes={};var D,A=n(35966),N=n(85531),G=n(44846),U=n(78123),T=n(75793),I=n(17022),O=n(93677),K=n(74094),z=n(7199);const R=(0,i.lazy)((()=>Promise.all([n.e(7718),n.e(7020),n.e(3058),n.e(4549)]).then(n.bind(n,64549)))),F=(0,i.lazy)((()=>Promise.all([n.e(7718),n.e(7020),n.e(8537),n.e(4631),n.e(2294),n.e(95),n.e(6547),n.e(5760),n.e(506),n.e(1279),n.e(4852),n.e(4509),n.e(6230)]).then(n.bind(n,64558)))),M=(0,i.lazy)((()=>Promise.all([n.e(7718),n.e(7020),n.e(4631),n.e(6547),n.e(506),n.e(4852),n.e(1294),n.e(5914),n.e(4775)]).then(n.bind(n,14775)))),V=(0,i.lazy)((()=>Promise.all([n.e(7718),n.e(442),n.e(9662),n.e(7676),n.e(8986)]).then(n.bind(n,13239)))),Y=(0,i.lazy)((()=>Promise.all([n.e(7718),n.e(7020),n.e(7687),n.e(5374),n.e(592),n.e(5979),n.e(2537)]).then(n.bind(n,75979)))),$=(0,i.lazy)((()=>Promise.all([n.e(7718),n.e(7020),n.e(8537),n.e(4631),n.e(2294),n.e(95),n.e(6547),n.e(5760),n.e(5887),n.e(5672),n.e(3216)]).then(n.bind(n,75672)))),W=(0,i.lazy)((()=>Promise.all([n.e(7718),n.e(7020),n.e(8537),n.e(4631),n.e(2294),n.e(95),n.e(4901),n.e(1685),n.e(5015)]).then(n.bind(n,85555)))),X=(0,i.lazy)((()=>Promise.all([n.e(7718),n.e(7020),n.e(8537),n.e(4631),n.e(2294),n.e(95),n.e(2911),n.e(4901),n.e(442),n.e(5526),n.e(7687),n.e(7638),n.e(1685),n.e(7657),n.e(3135),n.e(406),n.e(1846),n.e(318)]).then(n.bind(n,20318)))),J=(0,i.lazy)((()=>Promise.all([n.e(7718),n.e(9327),n.e(8219)]).then(n.bind(n,92379)))),Q=(0,i.lazy)((()=>Promise.all([n.e(7718),n.e(7020),n.e(8537),n.e(4631),n.e(2294),n.e(95),n.e(6547),n.e(5760),n.e(7534)]).then(n.bind(n,87534)))),q=(0,i.lazy)((()=>Promise.all([n.e(7718),n.e(7020),n.e(4901),n.e(9958),n.e(2611)]).then(n.bind(n,42611)))),H=(0,i.lazy)((()=>Promise.all([n.e(7718),n.e(7020),n.e(8537),n.e(4631),n.e(2294),n.e(95),n.e(6547),n.e(5760),n.e(406),n.e(1846),n.e(9552)]).then(n.bind(n,39552)))),ee=e=>{let{children:t}=e;return t};function te(){var e;const t=(0,l.useNavigate)(),{tab:n="overview"}=(0,l.useParams)(),{did:a,blocklet:o,error:w,client:P,actions:{setBlocklet:j,refreshBlocklet:S}}=(0,O.y0)(),{refresh:B}=(0,T.h6)(),{t:Z}=(0,c.PE)(),E=(0,i.useCallback)((()=>(0,C.jsx)(V,{scope:a})),[a]),L=(null===o||void 0===o||null===(e=o.environments.find((e=>"BLOCKLET_APP_URL"===e.key)))||void 0===e?void 0:e.value)||window.location.origin,D=e=>(0,K.bV)(e,L),N=e=>{t("/blocklets/".concat(a,"/").concat(e))},te=e=>{e&&j(e),S()},ne=!o||(0,K.wS)(o.status)?[]:(0,g.getAppMissingConfigs)(o);let ie=null;const oe=[{label:Z("common.overview"),value:"overview"},{breadcrumbsLabel:Z("common.components"),label:(0,C.jsx)(p.Z,{color:"error",variant:"dot",invisible:!ne.length,children:Z("common.components")}),value:"components"}];if(w)ie=(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(v.Z,{type:"error",variant:"icon",children:(0,K.Z)(w)}),(0,C.jsx)(h.Z,{onClick:()=>S(),children:(0,C.jsx)("span",{style:{textDecoration:"underline"},children:Z("common.retry")})})]});else if(o){var le;const e={overview:(0,C.jsx)(R,{}),configuration:F,navigation:M,services:W,members:(0,C.jsx)($,{type:"blocklet",createPassportSvg:D}),passports:Y,components:X,"audit-logs":E,logs:J,runtime:(0,C.jsx)(Q,{}),traffic:(0,C.jsx)(q,{client:P,did:a}),storage:(0,C.jsx)(H,{})};"configuration"===n&&(0,K.wS)(o.status)&&N("overview"),(0,K.wS)(o.status)||(oe.push({label:Z("common.members"),value:"members"}),oe.push({label:Z("common.passport"),value:"passports"}),oe.push({label:Z("common.configuration"),value:"configuration"})),oe.push({label:Z("common.auditLogs"),value:"audit-logs"}),o&&null!==(le=o.children)&&void 0!==le&&le.length&&o.structVersion===x.APP_STRUCT_VERSION&&oe.push({label:Z("common.logs"),value:"logs"}),oe.push({label:Z("common.configNavigation"),value:"navigation"}),oe.push({label:Z("common.runtime"),value:"runtime"}),oe.push({label:Z("common.traffic"),value:"traffic"}),oe.push({label:Z("common.storage"),value:"storage"});(0,g.getBlockletServices)(o).length&&oe.splice(2,0,{label:Z("blocklet.services"),value:"services"});const t=e[n]||e.overview;ie=(0,C.jsxs)(f.g,{type:"components",children:[!(0,g.isExternalBlocklet)(o)&&(0,C.jsx)(m.Z,{tabs:oe,current:n,onChange:N,scrollButtons:"auto"}),(0,C.jsx)("div",{className:"page-content",children:(0,C.jsx)(i.Suspense,{fallback:(0,C.jsx)(A.Z,{relative:"parent",children:(0,C.jsx)(G.Z,{})}),children:(0,i.isValidElement)(t)?t:(0,C.jsx)(t,{blocklet:o,onUpdate:te,createPassportSvg:D})})})]})}else ie=(0,C.jsx)(A.Z,{relative:"parent",children:(0,C.jsx)(G.Z,{})});const se=oe.find((e=>e.value===n)),ce=o?I.G6:ee;return(0,C.jsx)(ce,{teamDid:a,children:(0,C.jsxs)(ae,{children:[(0,C.jsxs)(d.Z,{separator:"\u203a","aria-label":"breadcrumb",className:"page-breadcrumb",children:[(0,C.jsx)(s.Link,{color:"textSecondary",to:"/blocklets",children:Z("common.blocklets")}),(0,C.jsx)(s.NavLink,{to:"/blocklets/".concat(a,"/overview"),style:e=>e?{color:"inherit"}:{},children:Z("common.detail")}),(0,C.jsx)(r.Z,{color:"textSecondary",children:se?se.breadcrumbsLabel||se.label:""})]}),(0,C.jsxs)(r.Z,{component:"div",className:"page-header",children:[(0,C.jsxs)(r.Z,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[o?(0,C.jsx)(k.Z,{blocklet:o,style:{marginRight:16}}):null,o?(0,C.jsxs)(u.Z,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[(0,C.jsx)(u.Z,{children:(0,g.getDisplayName)(o)}),"unknown"!==(null===o||void 0===o?void 0:o.status)&&(0,C.jsx)(b.Z,{size:"12px",status:o.status,source:o.source,progress:o.progress})]}):"".concat(Z("common.blocklet")," ").concat(Z("common.detail"))]}),(0,C.jsx)(z.Z,{permission:"mutate_blocklets",children:!!o&&!(0,g.isExternalBlocklet)(o)&&(0,C.jsx)(U.Z,{className:"page-actions",blocklet:o,onStart:()=>{},onComplete:e=>{let{action:n,error:a}=e;a?y.Z.error(a.message):"remove"===n?(B(),t("/blocklets")):S()},variant:"group"})})]}),(0,C.jsx)(_,{}),ie]})})}function ne(){const{did:e}=(0,l.useParams)();return e?(0,C.jsx)(O.$8,{did:e,children:(0,C.jsx)(N.wV,{children:(0,C.jsx)(te,{})})}):null}const ae=o.Z.main(D||(D=(0,a.Z)(["\n .page-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-wrap: wrap;\n gap: 16px;\n }\n\n .page-title {\n display: flex;\n align-items: center;\n\n .page-link {\n font-size: 15px;\n margin-top: 8px;\n margin-left: 8px;\n }\n }\n\n .page-content {\n margin-top: 16px;\n }\n\n @media (max-width: ","px) {\n .page-header {\n flex-direction: column;\n align-items: flex-start;\n .page-actions,\n .MuiButtonGroup-root {\n width: 100%;\n }\n .MuiButtonGroup-root {\n .MuiButtonBase-root {\n flex: 1;\n }\n .blocklet-action-text {\n display: none;\n }\n }\n }\n\n .page-title {\n margin-bottom: 15px;\n }\n }\n"])),(e=>e.theme.breakpoints.values.md))},85531:(e,t,n)=>{n.d(t,{wV:()=>w,XN:()=>P});var a=n(5057),i=n(55898),o=n.n(i),l=n(86229),s=n(68420),c=n(77277),r=n(29054),d=n(84584),u=n(41899),p=n(58238),m=n(65873);var v=n(14491);function h(){var e;let{setLoading:t,refresh:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{blocklet:i,actions:{refreshBlocklet:o}}=(0,r.y0)(),s=null===i||void 0===i||null===(e=i.meta)||void 0===e?void 0:e.did,[c,h]=(0,a.useState)([]),{api:g}=(0,p.h6)();return(0,u.Z)((async()=>{try{if(!s)return void h([]);null===t||void 0===t||t(!0);const{spaceGateways:e}=await g.getBlockletSpaceGateways({input:{did:s}}),n=await async function(e){let{blockletDid:t,nodeApi:n,spaceGateways:a}=e,i=!1;const o=await Promise.all(a.map((async e=>{let{name:t}=e;const n=await(0,d.nU)(e.endpoint);return(0,m.isEmpty)(n)||n===t||(t=n,i=!0),{...e,name:t}})));return i&&await Promise.all(o.filter((e=>e.did)).map((e=>n.updateBlockletSpaceGateway({input:{did:t,where:{did:e.did},spaceGateway:{...e}}})))),o}({blockletDid:s,nodeApi:g,spaceGateways:e});h(null!==n&&void 0!==n?n:[])}catch(e){console.error(e),l.Z.error((0,v.Z)(e))}finally{null===t||void 0===t||t(!1)}}),[s,o,n]),{spaceGateways:c}}function g(){var e;let{deps:t,setLoading:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{deps:[],setLoading:()=>{}};const{blocklet:i}=(0,r.y0)(),[o,s]=(0,a.useState)([]),{api:c}=(0,p.h6)(),d=(0,m.debounce)((async()=>{try{if(n(!0),!i)return void s([]);const{backups:e}=await c.getBlockletBackups({input:{did:i.meta.did}});s(null!==e&&void 0!==e?e:[])}catch(e){console.error(e),l.Z.error((0,v.Z)(e))}finally{n(!1)}}),2e3);return(0,u.Z)((async()=>{d()}),[null===i||void 0===i||null===(e=i.meta)||void 0===e?void 0:e.did].concat(t)),{backups:o}}const b=function(e){let{appDid:t}=e;const{backups:n}=g(),[i,o]=(0,a.useState)({message:"",progress:0,completed:!1}),l=(0,p.h6)(),{ws:{useSubscription:s}}=l;return s(c.BlockletEvents.backupProgress,(e=>{t===(null===e||void 0===e?void 0:e.appDid)&&o((()=>({...e})))}),[t]),(0,a.useEffect)((()=>{var e;if(null!==n&&void 0!==n&&n.length&&(0,m.isNull)(null===(e=n[0])||void 0===e?void 0:e.status)){const[e]=n;o((()=>({message:e.message,progress:e.progress,completed:Boolean(e.progress>=100)})))}}),[n]),i};var f=n(96266);const y=(0,a.createContext)({}),{Provider:k,Consumer:x}=y;function w(e){let{children:t}=e;const{t:n}=(0,s.PE)(),{api:i}=(0,p.h6)(),{blocklet:o}=(0,r.y0)(),[m,v]=(0,a.useState)(!1),[y,x]=(0,a.useState)(!1),{spaceGateways:w}=h({refresh:y,setLoading:v}),P=b({appDid:null===o||void 0===o?void 0:o.appDid}),[j,S]=(0,a.useState)(!1),B=(0,a.useMemo)((()=>(0,d.mo)(null===o||void 0===o?void 0:o.environments)),[o,y,j]),[Z,C]=(0,a.useState)(!1),{backups:E}=g({deps:[P],setLoading:C}),[L,_]=(0,a.useState)(null===w||void 0===w?void 0:w.find((e=>e.endpoint===B))),[D,A]=(0,a.useState)(!1),N=function(){var e;let{deps:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{deps:[]};const{blocklet:n}=(0,r.y0)(),{api:i}=(0,p.h6)(),[o,l]=(0,a.useState)(null);return(0,u.Z)((async()=>{var e;if(null!==n&&void 0!==n&&null!==(e=n.meta)&&void 0!==e&&e.did){const{autoBackup:e}=await i.getAutoBackup({input:{did:n.meta.did}});l(e)}}),[null===n||void 0===n||null===(e=n.meta)||void 0===e?void 0:e.did].concat(t)),o}({deps:[D]}),[G,U]=(0,a.useState)(!1),T=function(){var e;let{deps:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{deps:[]};const{blocklet:n}=(0,r.y0)(),{api:i}=(0,p.h6)(),[o,l]=(0,a.useState)(null);return(0,u.Z)((async()=>{var e;if(null!==n&&void 0!==n&&null!==(e=n.meta)&&void 0!==e&&e.did){const{autoCheckUpdate:e}=await i.getAutoCheckUpdate({input:{did:n.meta.did}});l(e)}}),[null===n||void 0===n||null===(e=n.meta)||void 0===e?void 0:e.did].concat(t)),o}({deps:[G]}),I=()=>{x((e=>!e))};return(0,f.jsx)(k,{value:{spaceGateways:w,selectedSpaceGateway:L,addSpaceGateway:async(e,t)=>{w.push({...e,loading:!0}),await i.addBlockletSpaceGateway({input:{did:o.meta.did,spaceGateway:e}}),B!==t&&await i.configBlocklet({input:{did:[o.meta.did],configs:[{key:c.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t}]}}),I(),_(e)},deleteSpaceGateway:async e=>{e&&(e.endpoint!==B?(await i.deleteBlockletSpaceGateway({input:{did:o.meta.did,spaceGatewayDid:null===e||void 0===e?void 0:e.did}}),I(),_(e)):l.Z.warning(n("storage.spaces.gateway.delete.failedForConnected")))},updateSpaceGateway:async e=>{var t;await i.updateBlockletSpaceGateway({input:{did:o.meta.did,where:{did:e.did},spaceGateway:e}}),B!==e.endpoint&&await i.configBlocklet({input:{did:[o.meta.did],configs:[{key:c.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:e.endpoint}]}}),l.Z.success(n("storage.spaces.connectedWithName",{name:null!==(t=null===e||void 0===e?void 0:e.name)&&void 0!==t?t:"DID Spaces"})),I()},refreshSpaceGateways:I,spaceGatewaysLoading:m,spaceGatewayIsSelected:e=>(null===e||void 0===e?void 0:e.endpoint)===B,updateAutoBackup:async e=>{await i.updateAutoBackup({input:{did:o.meta.did,autoBackup:e}}),A((e=>!e))},updateAutoCheckUpdate:async e=>{await i.updateAutoCheckUpdate({input:{did:o.meta.did,autoCheckUpdate:e}}),U((e=>!e))},autoCheckUpdate:T,backupEndpoint:B,backupProgress:P,backups:E,backupsLoading:Z,refreshBackupEndpoint:()=>{S((e=>!e))},autoBackup:N},children:t})}function P(){return(0,a.useContext)(y)}w.propTypes={children:o().any.isRequired},w.defaultProps={}},60344:(e,t,n)=>{n.d(t,{hi:()=>o,od:()=>i.a});var a=n(10458),i=n.n(a);i().defaults.timeout=1e4;const o=i().create()},84584:(e,t,n)=>{n.d(t,{EJ:()=>f,Jf:()=>b,LQ:()=>u,Nb:()=>p,UV:()=>y,Xv:()=>r,Z3:()=>k,ag:()=>v,mo:()=>m,nD:()=>d,nU:()=>g,w2:()=>h});var a=n(82434),i=n.n(a),o=n(77277),l=n(65873),s=n(2842),c=n(60344);function r(e){const t=e.replace(/\/api\/space\/.+/,""),n=e.replace(/\/$/,"").split("/"),a=n.at(-4),i=n.at(-2);return(0,s.xn)(t,"space",a,"apps",i,"explorer?key=/apps/".concat(i,"/.did-objects/").concat(i,"/"))}function d(e){const t=e.replace(/\/api\/space\/.+/,""),n=e.replace(/\/$/,"").split("/").at(-4);return(0,s.xn)(t,"space",n)}function u(e){return e.replace(/\/$/,"").split("/").at(-4)}async function p(e){try{if(!i()(e))return!1;const{headers:t}=await c.hi.head(e,{timeout:5e3});return"true"===t["x-listable"]&&"true"===t["x-readable"]&&"true"===t["x-writeable"]}catch(t){return console.error(t),!1}}function m(e){var t;return(null===e||void 0===e||null===(t=e.find((e=>e.key===o.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT)))||void 0===t?void 0:t.value)||""}function v(e){const t=new URL(e);return(0,s.xn)(t.origin,t.pathname)}async function h(e){try{if(!i()(e))return!1;const t=v(e),n=(0,s.xn)(t,"space/api/did/one-click-authorization/token"),{status:a,data:o}=await c.hi.get(n,{timeout:5e3});return 200===a&&(0,l.isObject)(o)}catch(t){return console.error(t),!1}}async function g(e){let{timeout:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeout:3e3};try{if(!i()(e))return"";const{headers:n}=await c.hi.head(e,{timeout:t}),a=n["x-space-name"];return a?decodeURIComponent(a):""}catch(n){return console.error(n),""}}function b(e){const t=e.replace(/\/api\/space\/.+/,""),n=e.replace(/\/$/,"").split("/").at(-4);return(0,s.xn)(t,"/api/space/nft/display?spaceDid=".concat(n))}const f=e=>{var t,n;return(null===e||void 0===e||null===(t=e.configs)||void 0===t||null===(n=t.find((e=>e.key===o.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT)))||void 0===n?void 0:n.value)||null};async function y(e){const t={};return t.did=u(e),t.name=await g(e),t.url=function(e){return null===e||void 0===e?void 0:e.replace(/\/api\/space\/.+/,"")}(e),t.endpoint=e,t}async function k(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeout:3e4,withSearchParams:!0};if(!(0,l.isString)(e))throw new Error("url(".concat(e,") must be a string"));const a=e.startsWith("http")?e:"https://".concat(e),i=new URL(a),{data:o}=await c.hi.get((0,s.xn)(i.origin,"/__blocklet__.js?type=json"),{timeout:n.timeout}),r=null===(t=o.componentMountPoints.findLast((e=>"z8iZnaYxnkMD5AKRjTKiCb8pQr1ut8UantAcf"===e.did)))||void 0===t?void 0:t.mountPoint;if(!r)throw new Error("MountPoint(".concat(r,") not found"));const d=(0,s.xn)(i.origin,r);return n.withSearchParams&&i.searchParams.get("spaceDid")?(0,s.xn)(d,"?spaceDid=".concat(i.searchParams.get("spaceDid"))):d}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6931],{78123:(e,n,t)=>{t.d(n,{Z:()=>z});var o,l=t(71171),i=t(5057),a=t(55898),r=t.n(a),c=t(33518),s=t(85493),d=t(15849),u=t(67654),m=t(67680),p=t(61533),v=t(29034),g=t(80633),f=t(44846),b=t(74490),h=t(83294),k=t(46954),y=t(44067),x=t(11750),Z=t(65140),w=t(87916),C=t(26174),E=t(93938),L=t(28726),j=t(38242),R=t(68420),B=t(77277),D=t(86229),O=t(14491),S=t(4651),P=t(58238),U=t(70461),_=t(55419),T=t(29054),A=t(96266);function N(e){var n,t,o,l;let{blocklet:a,onStart:r,onComplete:c,variant:N,hasPermission:I,useBlockletUrlEvaluation:M,...z}=e;const G=(0,s.useNavigate)(),F=(0,P.h6)(),[q,X]=(0,i.useState)(null),[V,W]=(0,i.useState)(null),[Y,Q]=(0,i.useState)(!1),[H,J]=(0,i.useState)(null),{t:$}=(0,i.useContext)(R.RD),[ee]=(0,u.Z)("skip-blocklet-setup",!1),{loading:ne,recommendedUrl:te}=M(a),{nftState:oe}=(0,T.y0)(),le=(0,j.isInProgress)(a.status);let ie=(null===a||void 0===a||null===(n=a.controller)||void 0===n||null===(t=n.status)||void 0===t?void 0:t.value)===B.BLOCKLET_CONTROLLER_STATUS.suspended;null!==oe&&void 0!==oe&&oe.expired||(null===a||void 0===a||null===(o=a.controller)||void 0===o||null===(l=o.status)||void 0===l?void 0:l.reason)!==B.SUSPENDED_REASON.expired||(ie=!1);const{inService:ae}=F,re=function(e,n){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return async()=>{const o=async t=>{r({action:e,blocklet:a}),Q(!0),W(e);let o=!1;try{if("remove"===e)await n(t);else if("start"===e){var l;if(!(0,j.hasRunnableComponent)(a))return void D.Z.error($("blocklet.noComponent"));if(!ae&&!ee&&(null===(l=a.settings)||void 0===l||!l.initialized)&&a.mode!==B.BLOCKLET_MODES.DEVELOPMENT){const n=(0,S.RU)(F.info),t=new URL(te);return t.searchParams.set("serverUrl",n),window.open(t.href),void c({action:e,blocklet:a})}const t=a.children.filter((e=>!(0,j.isInProgress)(e.status)&&"running"!==e.status)).map((e=>e.meta.did)),o={did:a.meta.did,componentDids:t};await n({input:o})}else if(["stop","restart","reload"].includes(e)){const e=a.children.filter((e=>"running"===e.status)).map((e=>e.meta.did)),t={did:a.meta.did,componentDids:e};await n({input:t})}else{const e={did:a.meta.did};await n({input:e})}"remove"===e?o=!0:await(0,O._v)(1e3),"reload"===e&&D.Z.success($("blocklet.reloadSuccess")),J(null),c({action:e,blocklet:a})}catch(i){const n="Blocklet ".concat(e," failed: ").concat((0,O.Z)(i));throw c({action:e,blocklet:a,error:new Error(n)}),new Error(n)}finally{o||Q(!1)}},l=()=>{Q(!1),J(null)},i=(0,j.getDisplayName)(a,!0),s=a.mode===B.BLOCKLET_MODES.DEVELOPMENT?{description:()=>(0,A.jsx)(x.Z,{component:"div",children:(0,A.jsx)(x.Z,{gutterBottom:!0,children:$("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(e,n)=>(0,A.jsxs)(x.Z,{component:"div",children:[(0,A.jsx)(x.Z,{gutterBottom:!0,children:$("blocklet.action.removeApplicationDescription")}),(0,A.jsxs)(w.Z,{name:"removeType",value:e.removeType,onChange:t=>n({...e,removeType:t.target.value}),children:[(0,A.jsx)(C.Z,{value:"backup",control:(0,A.jsx)(Z.Z,{}),label:$("blocklet.action.removeApplicationAfterBackup")}),(0,A.jsx)(C.Z,{value:"complete",control:(0,A.jsx)(Z.Z,{}),label:$("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},d={stop:{title:"".concat($("common.stop")," ").concat(i),description:$("blocklet.action.stopDescription"),confirm:$("blocklet.action.confirmStop"),cancel:$("common.cancel"),onConfirm:o,onCancel:l},restart:{title:"".concat($("common.restart")," ").concat(i),description:$("blocklet.action.restartDescription"),confirm:$("blocklet.action.confirmRestart"),cancel:$("common.cancel"),onConfirm:o,onCancel:l},remove:{title:"".concat($("common.remove")," ").concat(i),confirm:$("blocklet.action.confirmRemove"),cancel:$("common.cancel"),onConfirm:o,onCancel:l,...s},cancelDownload:{title:"".concat($("common.cancel")),description:$("blocklet.action.cancelDownloadDescription",{name:i}),confirm:$("common.confirm"),cancel:$("common.cancel"),onConfirm:o,onCancel:l}};t?J(d[e]):await o()}},ce=Boolean(q),se=e=>{try{e.stopPropagation(),e.preventDefault()}catch{}X(e.currentTarget)},de=e=>{try{e.stopPropagation(),e.preventDefault()}catch{}X(null)},ue=async(e,n)=>{try{n.stopPropagation(),n.preventDefault()}catch{}if("function"===typeof e.handler)try{Q(!0),W(e.action),await e.handler()}catch(t){console.error("Blocklet ".concat(e.name," failed: "),t)}finally{Q(!1),X(null)}else X(null)},me=!ae&&(0,j.isDeletableBlocklet)(a)?{action:"remove",icon:_.Z.Remove,name:$("common.remove"),handler:re("remove",(async e=>{let{removeType:n}=e;"backup"===n&&await F.api.backupBlocklet({input:{appDid:a.appDid,to:"disk"}}),await F.api.deleteBlocklet({input:{did:a.meta.did,keepData:!1}})}),!0),disabled:le}:null,pe={action:"remove",icon:_.Z.Remove,name:$("common.cancel"),handler:re("cancelDownload",F.api.cancelDownloadBlocklet,!0)},ve=(0,j.getAppMissingConfigs)(a),ge=[{action:"start",icon:_.Z.Start,name:$("common.start"),handler:re("start",F.api.startBlocklet),disabled:ie||a.children.every((e=>"running"===e.status))||(0,O.XN)(a.status)||ne||le},{action:"stop",icon:_.Z.Stop,name:$("common.stop"),handler:re("stop",F.api.stopBlocklet,!0),disabled:!["running","starting"].includes(a.status)},{action:"restart",icon:_.Z.Restart,name:$("common.restart"),handler:re("restart",F.api.restartBlocklet,!0),disabled:ie||"running"!==a.status},{action:"reload",icon:_.Z.Reload,name:$("common.reload"),handler:re("reload",F.api.reloadBlocklet),disabled:ie||"running"!==a.status},(0,O.XN)(a.status)?pe:me,{separator:!0},{onlyInMenu:!0,action:"config",icon:_.Z.Config,name:$("common.config"),handler:()=>{G("/blocklets/".concat(a.meta.did,"/configuration"))},disabled:(0,O.XN)(a.status)},{onlyInMenu:!0,action:"team",icon:_.Z.Group,name:$("common.manageTeam"),handler:()=>{G("/blocklets/".concat(a.meta.did,"/members"))},disabled:(0,O.XN)(a.status)},{onlyInMenu:!0,action:"log",icon:_.Z.Log,name:$("common.log"),handler:()=>{G("/logs/blocklet-".concat(a.meta.did))},disabled:(0,O.XN)(a.status)}].filter(Boolean);return"menu"===N?(0,A.jsxs)(K,{"data-cy":"blocklet-actions",children:[(0,A.jsx)(m.Z,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":a.meta.did,onClick:se,size:"small",disabled:!I||!(0,O.XN)(a.status)&&Y,children:(0,A.jsx)(h.Z,{})}),(0,A.jsxs)(p.Z,{id:"actions-menu",anchorEl:q,keepMounted:!0,open:ce,onClose:de,PaperProps:{},children:[ve.length>0&&(0,A.jsxs)(E.Z,{style:{maxWidth:"400px"},severity:"error",children:[$("blocklet.config.missingRequired"),(0,A.jsx)("br",{}),(0,A.jsx)(d.Link,{to:"/blocklets/".concat(a.meta.did,"/components"),children:$("blocklet.config.gotoFix")})]}),ge.map(((e,n)=>e.separator?(0,A.jsx)(v.Z,{},"separator-".concat(n)):(0,A.jsxs)(b.Z,{dense:!0,onClick:n=>ue(e,n),disabled:Y||e.disabled,"data-cy":"".concat(e.action,"-blocklet"),children:[(0,A.jsx)(k.Z,{style:{minWidth:24},children:V===e.action&&Y?(0,A.jsx)(f.Z,{size:16,sx:{marginRight:1}}):(0,A.jsx)(e.icon,{fontSize:"small"})}),(0,A.jsx)(y.Z,{primary:e.name})]},e.name)))]}),H&&(0,A.jsx)(U.Z,{title:H.title,description:H.description,confirm:H.confirm,cancel:H.cancel,params:H.params,onConfirm:H.onConfirm,onCancel:H.onCancel})]}):(0,A.jsxs)(K,{"data-cy":"blocklet-actions",...z,children:[(0,A.jsx)(g.Z,{children:ge.filter((e=>!e.separator&&!e.onlyInMenu)).map((e=>(0,A.jsxs)(L.Z,{title:e.name,"data-cy":"".concat(e.action,"-blocklet"),onClick:()=>ue(e),disabled:Boolean(e.disabled)||Y,children:[V===e.action&&Y?(0,A.jsx)(f.Z,{size:16,sx:{marginRight:1}}):(0,A.jsx)(e.icon,{}),(0,A.jsx)("span",{className:"blocklet-action-text",children:e.name})]},e.name)))}),H&&(0,A.jsx)(U.Z,{title:H.title,description:H.description,confirm:H.confirm,cancel:H.cancel,params:H.params,onConfirm:H.onConfirm,onCancel:H.onCancel})]})}N.propTypes={blocklet:r().object.isRequired,onStart:r().func.isRequired,onComplete:r().func.isRequired,variant:r().oneOf(["menu","group"]),hasPermission:r().bool,useBlockletUrlEvaluation:r().func},N.defaultProps={variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e,n;return{loading:!1,recommendedUrl:null===(e=window)||void 0===e||null===(n=e.location)||void 0===n?void 0:n.href}}};const K=c.Z.div(o||(o=(0,l.Z)(["\n display: flex;\n align-items: center;\n\n @media (max-width: ","px) {\n .MuiButton-root {\n padding: 4px;\n font-size: 10px;\n }\n }\n"])),(e=>e.theme.breakpoints.values.sm));var I=t(7199),M=t(24138);function z(e){let{...n}=e;const t=(0,I.V)(N,"mutate_blocklets");return(0,A.jsx)(t,{...n,useBlockletUrlEvaluation:M.BZ})}},7199:(e,n,t)=>{t.d(n,{V:()=>o.V,Z:()=>o.Z});var o=t(63406)},24138:(e,n,t)=>{t.d(n,{BZ:()=>b,ZN:()=>h});var o=t(5057),l=t(6352),i=t.n(l),a=t(35432),r=t(49714),c=t(41365),s=t.n(c),d=t(32243),u=t.n(d),m=t(68420),p=t(14491);const v=u()((e=>s()(i()(new URL(e).origin,a.WELLKNOWN_PING_PREFIX)))),g={};function f(e){let{urls:n,checkAccessible:t=s(),disableCache:l=!1}=e;const i=(0,o.useRef)(n.filter((e=>g[e])).map((e=>g[e]))),a=i.current.length===n.length,[c,d]=(0,o.useState)(a?i.current:[]),[u,m]=(0,o.useState)(!a),p=(0,o.useMemo)((()=>!u&&c.length?c[0]:null),[c,u]);return(0,o.useEffect)((()=>{if((null===n||void 0===n?void 0:n.length)>0&&!a){(async()=>{let e;if(m(!0),l)e=await(0,r.evaluateURLs)(n,{checkAccessible:t}),e.forEach((e=>{g[e.url]=e}));else{(await(0,r.evaluateURLs)(n.filter((e=>!g[e])),{checkAccessible:t})).forEach((e=>{g[e.url]=e})),e=n.map((e=>g[e])).sort(((e,n)=>n.score-e.score))}d(e),m(!1)})()}}),[n,l,a]),{urlsState:c,loading:u,recommendedUrlState:p,recommendedUrl:null===p||void 0===p?void 0:p.url}}function b(e){const{locale:n}=(0,o.useContext)(m.RD),t=(0,o.useMemo)((()=>e?(0,p.A6)({blocklet:e,params:(0,p.f0)(e,n)}):[]),[e,n]),{loading:l,recommendedUrlState:i,recommendedUrl:a}=f({urls:t,checkAccessible:v});return{urls:t,loading:l,recommendedUrlState:i,recommendedUrl:a}}function h(e){const n=(0,o.useMemo)((()=>e.map((e=>(0,p.Sk)(e)))),[e]),{urlsState:t,loading:l,recommendedUrl:i}=f({urls:n,checkAccessible:v});let a;if(l)a={domainsAccessibility:e.reduce(((e,n)=>({...e,[n]:{loading:!0}})),{}),recommendedDomain:null};else{var r;const e=t.reduce(((e,n)=>{const t=new URL(n.url).hostname;return e[t]={...n,domain:t},e}),{}),n=(null===(r=t.find((e=>e.accessible)))||void 0===r?void 0:r.url)||i;a={domainsAccessibility:e,recommendedDomain:n?new URL(n).hostname:null}}return a}},1722:(e,n,t)=>{t.d(n,{Z:()=>d});var o=t(55898),l=t.n(o),i=t(62681),a=t(72333),r=t(77277),c=t(49522),s=t(96266);function d(e){let{blocklet:n,style:t,size:o,...l}=e;const{logoUrl:d}=(0,c.Z)({blocklet:n}),{variant:u}=l;let m=(0,s.jsx)("img",{src:d,alt:"",style:{width:o}});if(!n.meta.logo){var p;(null===(p=(n.configs||[]).find((e=>e.key===r.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE)))||void 0===p?void 0:p.value)||(m=(0,s.jsx)(a.Z,{did:n.meta.did||"",responsive:!0}))}return(0,s.jsx)(i.Z,{variant:u||"square",style:Object.assign({backgroundColor:"transparent",width:o,height:o,borderRadius:10},t),...l,children:m})}d.propTypes={blocklet:l().object.isRequired,style:l().object,size:l().oneOfType([l().number,l().string])},d.defaultProps={style:{},size:40}},55419:(e,n,t)=>{t.d(n,{Z:()=>u});var o=t(27773),l=t(22754),i=t(98451),a=t(32207),r=t(35258),c=t(17545),s=t(49647),d=t(70648);const u={Start:l.Z,Stop:i.Z,Restart:a.default,Reload:r.Z,Remove:o.default,Config:c.Z,Log:s.Z,Group:d.Z}},81010:(e,n,t)=>{t.d(n,{Z:()=>v});var o=t(5057),l=t(55898),i=t.n(l),a=t(44846),r=t(75239),c=t(68420),s=t(38242),d=t(69569),u=t(22228),m=t(96266);const p={yellow:"#FFCF71",grey:"#888888"};function v(e){let{status:n,variant:t,source:l,progress:i,...v}=e;const{t:g}=(0,o.useContext)(c.RD),f={added:p.grey,waiting:p.yellow,downloading:p.yellow,extracting:p.yellow,downloaded:p.grey,installing:p.yellow,installed:p.grey,starting:p.yellow,running:"success",stopping:p.yellow,stopped:p.grey,error:"error",upgrading:p.yellow,restarting:p.yellow,corrupted:"error",deleting:p.yellow},b=(0,s.isInProgress)(n),h=g("blocklet.status.".concat(n));return"dot"===t?(0,m.jsx)(r.Z,{title:g("blocklet.statusTip",{status:h}),children:(0,m.jsx)(d.Z,{color:f[n],...v})}):(0,m.jsxs)(u.Z,{type:{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"}[n],...v,children:[b&&(0,m.jsx)(a.Z,{size:12,color:"inherit",style:{marginRight:5}}),h,"downloading"===n&&i?(0,m.jsx)("div",{style:{marginLeft:5},children:"".concat(i," %")}):null]})}v.propTypes={status:i().string.isRequired,variant:i().oneOf(["dot","tag"]),source:i().string,progress:i().number},v.defaultProps={variant:"tag",source:"",progress:0}},29054:(e,n,t)=>{t.d(n,{BlockletContext:()=>l,y0:()=>r});var o=t(5057);const l=(0,o.createContext)({}),{Provider:i,Consumer:a}=l;function r(){return(0,o.useContext)(l)}},87363:(e,n,t)=>{t.d(n,{K:()=>u,g:()=>d});var o=t(5057),l=t(55898),i=t.n(l),a=t(69163),r=t.n(a),c=t(96266);const s=(0,o.createContext)({});function d(e){let{children:n,type:t}=e;const[l,i]=(0,o.useState)([]),a=(0,o.useRef)([]),d=e=>{if(a.current.includes(e)){const n=a.current.filter((n=>n!==e));i(n),a.current=n}};return(0,c.jsx)(s.Provider,{value:{type:t,deletingBlocklets:l,addDeletingDid:e=>{if(!a.current.includes(e)){const n=[...a.current,e];i(n),a.current=n}},removeDeletingDid:d,matchDeletingDid:e=>{const n=l.filter((n=>e.find((e=>e===n))));r()(n,l).forEach((e=>d(e)))}},children:n})}function u(){return(0,o.useContext)(s)}d.propTypes={type:i().string,children:i().node.isRequired},d.defaultProps={type:"blocklets"}},69569:(e,n,t)=>{t.d(n,{Z:()=>c});var o,l=t(71171),i=t(33518);const a={success:"#3ab39d",error:"#D0021B"},r="10px",c=i.Z.div(o||(o=(0,l.Z)(["\n display: inline-block;\n min-width: ",";\n min-height: ",";\n background: ",";\n border-radius: 100%;\n"])),(e=>e.size||r),(e=>e.size||r),(e=>a[e.color]||e.color||a.success))},49522:(e,n,t)=>{t.d(n,{Z:()=>s});var o=t(6352),l=t.n(o),i=t(77277),a=t(58238),r=t(14491);const c=(e,n)=>{let t="?v=";var o;n?t+=(0,r.Qi)(n):t+="".concat(null===e||void 0===e||null===(o=e.meta)||void 0===o?void 0:o.version).concat((0,r.wS)(null===e||void 0===e?void 0:e.status)?"~":"");return t};function s(e){var n,t,o,r;let{blocklet:s}=e;const{inService:d}=(0,a.h6)(),u=null===(n=((null===s||void 0===s?void 0:s.environments)||[]).find((e=>e.key===i.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE)))||void 0===n?void 0:n.value,m=null===(t=((null===s||void 0===s?void 0:s.environments)||[]).find((e=>e.key===i.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT)))||void 0===t?void 0:t.value,p=null===(o=((null===s||void 0===s?void 0:s.environments)||[]).find((e=>e.key===i.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_FAVICON)))||void 0===o?void 0:o.value,v=(null===(r=window.env)||void 0===r?void 0:r.apiPrefix)||"/";return{logoUrl:l()(v,"/blocklet/logo/".concat(d?"":s.meta.did),c(s,u)),rectLogoUrl:l()(v,"/blocklet/logo-rect/".concat(d?"":s.meta.did),c(s,m)),faviconUrl:l()(v,"/blocklet/logo-favicon/".concat(d?"":s.meta.did),c(s,p))}}},22228:(e,n,t)=>{t.d(n,{Z:()=>r});var o=t(55898),l=t.n(o),i=t(19778),a=t(96266);function r(e){let{children:n,style:t,...o}=e;return(0,a.jsx)(i.Z,{style:t,...o,children:n})}r.propTypes={children:l().any.isRequired,style:l().object},r.defaultProps={style:{}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6944],{56944:(e,t,i)=>{i.r(t),i.d(t,{default:()=>a});const a={setup:{connect:{title:"\u626b\u7801\u7b7e\u540d",scan:"\u7528\u4f60\u7684 DID \u94b1\u5305\u626b\u63cf\u4e0b\u9762\u7684\u4e8c\u7ef4\u7801\u4ece\u800c\u6210\u4e3a\u672c\u8282\u70b9\u7684\u6240\u6709\u8005",confirm:"\u8bf7\u5728 DID \u94b1\u5305\u4e0a\u786e\u8ba4",success:"\u4f60\u5df2\u7ecf\u6210\u529f\u6210\u4e3a\u8282\u70b9\u7684\u6240\u6709\u8005"},keyPair:{title:"\u751f\u6210\u94a5\u5319\u5bf9",scan:"\u7528\u4f60\u7684 DID \u94b1\u5305\u626b\u7801\u4e3a\u8fd9\u4e2a\u5e94\u7528\u751f\u6210\u94a5\u5319\u5bf9",confirm:"\u8bf7\u5728 DID \u94b1\u5305\u4e0a\u786e\u8ba4",success:"\u4f60\u7684\u94a5\u5319\u5bf9\u5df2\u7ecf\u88ab\u5b89\u5168\u5b58\u50a8"},verify:{title:"\u9700\u8981\u8282\u70b9\u6240\u6709\u6743\u8bc1\u4e66",scan:"\u7528\u4f60\u7684 DID \u94b1\u5305\u626b\u63cf\u4e0b\u9762\u7684\u4e8c\u7ef4\u7801\u4ee5\u63d0\u4f9b\u6240\u6709\u6743\u8bc1\u4e66",confirm:"\u8bf7\u5728 DID \u94b1\u5305\u4e0a\u786e\u8ba4",success:"\u4f60\u5df2\u7ecf\u6210\u529f\u6210\u4e3a\u8282\u70b9\u7684\u6240\u6709\u8005"},accept:{title:"\u63a5\u6536\u8282\u70b9\u9700\u8981\u6240\u6709\u6743\u8bc1\u4e66",scan:"\u7528\u4f60\u7684 DID \u94b1\u5305\u626b\u63cf\u4e0b\u9762\u7684\u4e8c\u7ef4\u7801\u4ee5\u63d0\u4f9b\u6240\u6709\u6743\u8bc1\u4e66",confirm:"\u8bf7\u5728 DID \u94b1\u5305\u4e0a\u786e\u8ba4",success:"\u4f60\u5df2\u7ecf\u6210\u529f\u6210\u4e3a\u8282\u70b9\u7684\u6240\u6709\u8005"},title:"\u8bbe\u7f6e\u8282\u70b9",steps:{eula:"\u6700\u7ec8\u7528\u6237\u8bb8\u53ef\u534f\u8bae",eulaFooter:"\u6211\u5df2\u9605\u8bfb\u5e76\u540c\u610f\u6700\u7ec8\u7528\u6237\u8bb8\u53ef\u534f\u8bae\u7684\u6761\u6b3e",connect:"\u94fe\u63a5\u6240\u6709\u8005\u7684 DID \u94b1\u5305",verify:"\u9a8c\u8bc1\u6240\u6709\u6743",basicSettings:"\u57fa\u7840\u8bbe\u7f6e",launchApp:"\u542f\u52a8\u5e94\u7528",complete:"\u5b8c\u6210"},congratulation:"\u606d\u559c, \u60a8\u7684\u8282\u70b9\u5b89\u5168\u53ef\u7528!",redirectButton:"\u67e5\u770b\u8282\u70b9\u4eea\u8868\u76d8",form:{submit:"\u5b8c\u6210\u8bbe\u7f6e",title:"\u8bbe\u7f6e\u8282\u70b9\u7684\u540d\u79f0\u548c\u63cf\u8ff0\u4fe1\u606f"}},login:{loginTo:"\u8fde\u63a5 DID \u94b1\u5305",description:"\u53ea\u6709\u8282\u70b9\u7684\u6240\u6709\u8005\u548c approved \u6210\u5458\u53ef\u4ee5\u8bbf\u95ee\u4eea\u8868\u76d8",dialog:{title:"\u8bf7\u8fde\u63a5 DID \u94b1\u5305",scan:"\u7528\u60a8\u7684 DID \u94b1\u5305\u626b\u63cf\u4e0b\u9762\u7684\u4e8c\u7ef4\u7801",confirm:"\u5728\u60a8\u7684 DID \u94b1\u5305\u4e0a\u786e\u8ba4",success:"\u8fde\u63a5\u6210\u529f"}},acceptServer:{title:"\u4f7f\u7528 Owner NFT \u63a5\u6536\u8282\u70b9",tooltip:"\u5982\u679c\u4f60\u6536\u5230\u4e86 Owner NFT\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e2a\u94fe\u63a5\u7533\u8bf7\u4f60\u7684\u8282\u70b9\u6240\u6709\u8005\u901a\u884c\u8bc1"},exchangePassport:{title:"\u7528 NFT \u6765\u6362\u53d6\u901a\u884c\u8bc1",success:"\u4f60\u5df2\u7ecf\u6210\u529f\u6362\u53d6\u901a\u884c\u8bc1\uff0c\u5e76\u81ea\u52a8\u767b\u5f55",tooltip:"\u5982\u679c\u4f60\u62e5\u6709\u6765\u81ea {collections} \u96c6\u5408\u7684 NFT\uff0c\u70b9\u51fb\u8fd9\u91cc\u6362\u53d6\u901a\u884c\u8bc1",dialog:{title:"\u7528 NFT \u6765\u6362\u53d6\u901a\u884c\u8bc1",scan:"\u8fde\u63a5 DID \u94b1\u5305\u51fa\u793a NFT \u4ee5\u6362\u53d6\u901a\u884c\u8bc1",confirm:"\u5728\u94b1\u5305\u4e2d\u9009\u62e9 NFT",success:"\u901a\u884c\u8bc1\u6362\u53d6\u6210\u529f"},login:"\u767b\u5f55"},payablePassport:{title:"Purchase passport with payment",tooltip:"If you do not have a passport, you can purchase a passport with this link."},sidebar:{dashboard:"\u4eea\u8868\u76d8",blocklets:"\u57fa\u77f3\u7a0b\u5e8f",console:"\u8bd5\u9a8c\u53f0",settings:"\u8bbe\u7f6e"},system:{total:"\u603b\u8ba1",used:"\u5df2\u4f7f\u7528",free:"\u7a7a\u95f2",cores:"\u6838\u6570",instances:"\u5b9e\u4f8b\u6570"},common:{invalid:"\u65e0\u6548",about:"\u5173\u4e8e",access:"\u8bbf\u95ee",accessKey:"\u8bbf\u95ee\u79d8\u94a5",action:"\u64cd\u4f5c",actions:"\u64cd\u4f5c",add:"\u6dfb\u52a0",address:"\u5730\u5740",afterTime:"{time}\u540e",allow:"\u5141\u8bb8",alreadyExist:"\u5df2\u7ecf\u5b58\u5728",approve:"\u540c\u610f",approved:"Approved",appUrl:"APP \u94fe\u63a5",auditLogs:"\u5ba1\u8ba1\u8bb0\u5f55",author:"\u4f5c\u8005",avatar:"\u5934\u50cf",back:"\u8fd4\u56de",basic:"\u57fa\u7840",basicInfo:"\u57fa\u7840\u4fe1\u606f",profile:"\u4fe1\u606f",bind:"\u7ed1\u5b9a",blocklet:"\u57fa\u77f3\u7a0b\u5e8f",blocklets:"\u57fa\u77f3\u7a0b\u5e8f",blockletsStorage:"\u57fa\u77f3\u7a0b\u5e8f\u5b58\u50a8",cacheStorage:"\u7f13\u5b58\u5b58\u50a8",cancel:"\u53d6\u6d88",category:"\u65e5\u5fd7\u5206\u7c7b",certificate:"\u8bc1\u4e66",click:"\u70b9\u51fb\u590d\u5236",close:"\u5173\u95ed",collapseAll:"\u6536\u8d77\u5168\u90e8",community:"\u793e\u533a\u5730\u5740",complete:"\u5b8c\u6210",componentBasicInfo:"\u7ec4\u4ef6\u57fa\u7840\u4fe1\u606f",components:"\u7ec4\u4ef6",config:"\u914d\u7f6e",configuration:"\u914d\u7f6e",configNavigation:"\u5bfc\u822a",configSuccess:"\u8bbe\u7f6e\u6210\u529f",confirm:"\u786e\u8ba4",connect:"\u8fde\u63a5",console:"\u63a7\u5236\u53f0",continue:"\u7ee7\u7eed",continueWith:"\u786e\u8ba4\u7ee7\u7eed",copiedTip:"\u5df2\u590d\u5236",copyAndClose:"\u590d\u5236\u5e76\u5173\u95ed",copyTip:"\u70b9\u51fb\u590d\u5236",coreStorage:"\u6838\u5fc3\u5b58\u50a8",cpu:"CPU",create:"\u521b\u5efa",createSuccess:"\u521b\u5efa\u6210\u529f",created:"\u521b\u5efa\u4e8e",createdAt:"\u521b\u5efa\u65f6\u95f4",createdBy:"\u521b\u5efa\u4eba",dAddress:"\u53bb\u4e2d\u5fc3\u5316\u5730\u5740(DID)",dataStorage:"\u672c\u5730\u6570\u636e\u5b58\u50a8",delConfirm:"\u5220\u9664",delConfirmDescription:"\u786e\u8ba4\u5220\u9664 {data}\uff1f",delete:"\u5220\u9664",dependents:"\u88ab\u4f9d\u8d56",description:"\u63cf\u8ff0",detail:"\u8be6\u60c5",did:"DID",disabled:"\u5df2\u7981\u7528",disk:"\u78c1\u76d8",diskInfo:"\u78c1\u76d8\u4fe1\u606f",docker:"Docker\uff1f",documentation:"\u6587\u6863\u624b\u518c",domain:"\u57df\u540d",downgradeTo:"\u964d\u7ea7\u5230",download:"\u4e0b\u8f7d",downloading:"\u4e0b\u8f7d\u4e2d",edit:"\u7f16\u8f91",email:"\u90ae\u7bb1",phone:"\u7535\u8bdd",empty:"\u6682\u65e0",emptyData:"\u672a\u627e\u5230\u7ed3\u679c",enable:"\u542f\u7528",enabled:"\u5df2\u542f\u7528",engine:"\u5f15\u64ce",env:"\u73af\u5883",environment:"\u73af\u5883\u53d8\u91cf",expandAll:"\u5c55\u5f00\u5168\u90e8",expired:"\u5df2\u8fc7\u671f",expires:"\u8fc7\u671f\u65f6\u95f4",export:"\u5bfc\u51fa",externalIp:"\u516c\u7f51 IP",failed:"\u5931\u8d25",filter:"\u7b5b\u9009",fingerprint:"\u6307\u7eb9",finish:"\u5b8c\u6210",forbid:"\u7981\u6b62",free:"\u514d\u8d39",general:"\u901a\u7528",gitpod:"Gitpod\uff1f",goEULA:'\u70b9\u51fb\u67e5\u770b"\u6700\u7ec8\u7528\u6237\u8bb8\u53ef\u534f\u8bae"',group:"\u5206\u7ec4",image:"\u955c\u50cf\u5185?",install:"\u5b89\u88c5",installed:"\u5df2\u5b89\u88c5",installedAt:"\u5b89\u88c5\u65f6\u95f4",installSuccess:"\u5b89\u88c5\u6210\u529f",installing:"\u5b89\u88c5\u4e2d",internalIp:"\u5185\u7f51 IP",introduction:"\u4ecb\u7ecd",invite:"\u9080\u8bf7",inviting:"\u9080\u8bf7\u4e2d",ip:"IP",isPublic:"\u516c\u5f00",issue:"\u9881\u53d1",issuer:"\u9881\u53d1\u8005",item:"\u9879",joined:"\u5df2\u52a0\u5165",key:"\u952e",lastPublishedAt:"\u53d1\u5e03\u65f6\u95f4",launcher:"\u542f\u52a8\u5668\u4fe1\u606f",leavePageTip:"\u662f\u5426\u786e\u5b9a\u79bb\u5f00\u5f53\u524d\u9875\u9762\uff1f",link:"\u94fe\u63a5",loading:"\u52a0\u8f7d\u4e2d",log:"\u67e5\u770b\u65e5\u5fd7",logStorage:"\u65e5\u5fd7\u5b58\u50a8",login:"\u767b\u5f55",logo:"\u56fe\u6807",logout:"\u9000\u51fa",logs:"\u65e5\u5fd7",manageTeam:"\u7ba1\u7406\u56e2\u961f",marketplace:"\u5e02\u573a",member:"\u6210\u5458",members:"\u6210\u5458",memory:"\u5185\u5b58",meta:"\u5143\u6570\u636e",analytics:"\u7edf\u8ba1\u5206\u6790",runtime:"\u8fd0\u884c\u76d1\u63a7",traffic:"\u6d41\u91cf\u5206\u6790",more:"\u66f4\u591a",mountPoint:"\u6302\u8f7d\u70b9",name:"\u540d\u79f0",next:"\u4e0b\u4e00\u6b65",no:"\u5426",noData:"\u6682\u65e0\u6570\u636e",notice:"\u8bf7\u786e\u8ba4\u4e0b\u9762\u7684\u4fe1\u606f",noticeTitle:"\u63d0\u793a",notification:"\u901a\u77e5",open:"\u6253\u5f00",management:"\u7ba1\u7406",os:"\u64cd\u4f5c\u7cfb\u7edf",overview:"\u6982\u89c8",owner:"\u6240\u6709\u8005",page404:"404 \u9875\u9762",passport:"\u901a\u884c\u8bc1",permission:"\u6743\u9650",port:"\u7aef\u53e3",pre:"\u4e0a\u4e00\u6b65",preferences:"\u504f\u597d",preview:"\u9884\u89c8",protected:"\u53d7\u4fdd\u62a4",protocol:"\u534f\u8bae",publish:"\u53d1\u5e03",published:"\u53d1\u5e03\u4e8e",purchase:"\u8d2d\u4e70",readMore:"\u66f4\u591a",redirect:"\u91cd\u5b9a\u5411",redirectCode:"\u91cd\u5b9a\u5411\u72b6\u6001\u7801",redirectPermanently:"\u6c38\u4e45\u91cd\u5b9a\u5411",redirectTemporary:"\u4e34\u65f6\u91cd\u5b9a\u5411",redirectUrl:"\u91cd\u5b9a\u5411 URL",rewriteUrl:"\u91cd\u5199\u5230 URL",rewrite:"\u91cd\u5199",release:"\u53d1\u5e03",reject:"\u62d2\u7edd",reload:"\u4f18\u96c5\u91cd\u542f",remark:"\u5907\u6ce8",remove:"\u5220\u9664",removeSuccess:"\u5220\u9664\u6210\u529f",renew:"\u7eed\u671f",reportIssue:"\u95ee\u9898\u53cd\u9988",required:"\u5fc5\u9700\u7684",requiredErrorText:"{name}\u662f\u5fc5\u586b\u7684",resource:"\u8d44\u6e90",restart:"\u91cd\u542f",restore:"\u8fd8\u539f",retry:"\u91cd\u8bd5",revoke:"\u64a4\u9500",role:"\u89d2\u8272",running:"\u8fd0\u884c\u4e2d",runtimeInfo:"\u8fd0\u884c\u4fe1\u606f",save:"\u4fdd\u5b58",saveChanges:"\u4fdd\u5b58",saveSuccess:"\u4fdd\u5b58\u6210\u529f",scheduleFailed:"\u52a0\u5165\u4efb\u52a1\u961f\u5217\u5931\u8d25",scheduleSuccess:"\u6210\u529f\u52a0\u5165\u4efb\u52a1\u961f\u5217",scope:"\u8303\u56f4",screenshot:"\u622a\u56fe",search:"\u641c\u7d22",security:"\u5b89\u5168",serverDid:"\u670d\u52a1\u5668 DID",serverVersion:"\u670d\u52a1\u5668\u7248\u672c",setting:"\u8bbe\u7f6e",start:"\u542f\u52a8",status:"\u72b6\u6001",stop:"\u505c\u6b62",storage:"\u5b58\u50a8",backup:"\u5907\u4efd",store:"\u5546\u5e97",succeeded:"\u6210\u529f",subscription:"\u8ba2\u9605",support:"\u670d\u52a1\u652f\u6301",switch:"\u5207\u6362",team:"\u56e2\u961f",the:"\u6b64",timeAgo:"{time}\u524d",title:"\u540d\u79f0",type:"\u7c7b\u578b",unavailable:"\u4e0d\u53ef\u8bbf\u95ee",update:"\u66f4\u65b0",updateAvailable:"\u53ef\u5347\u7ea7\u5230\u65b0\u7248\u672c v{version}",updatedAt:"\u66f4\u65b0\u65f6\u95f4",updatedBy:"\u66f4\u65b0\u4eba",upgrade:"\u5347\u7ea7",upgradeTo:"\u5347\u7ea7\u5230",upgrading:"\u5347\u7ea7\u4e2d",uptime:"\u8fd0\u884c\u65f6\u957f",url:"URL",valid:"\u6709\u6548",value:"\u503c",version:"\u7248\u672c\u53f7",visit:"\u8bbf\u95ee",waiting:"\u7b49\u5f85\u4e2d",webhook:"\u5e94\u7528\u96c6\u6210",yes:"\u662f",invalidParam:"\u65e0\u6548\u7684\u53c2\u6570",launch:"\u542f\u52a8",price:"\u4ef7\u683c",redirecting:"\u8df3\u8f6c\u4e2d",error:"\u9519\u8bef",reminder:"\u63d0\u9192",normal:"\u6b63\u5e38",gateway:"\u7f51\u5173",verifyNFT:"\u9a8c\u8bc1\u51ed\u8bc1",errorMessage:"\u9519\u8bef\u4fe1\u606f\uff1a",slugifyHint:"\u6700\u7ec8\u751f\u6548\u7684\u6302\u8f7d\u70b9\u662f: {value}",strategy:"\u7b56\u7565",auto:"\u81ea\u52a8",manual:"\u624b\u52a8",progress:"\u8fdb\u884c\u4e2d",startTime:"\u5f00\u59cb\u65f6\u95f4",endTime:"\u7ed3\u675f\u65f6\u95f4",selected:"\u5df2\u9009\u4e2d",timeoutError:"\u8d85\u65f6\u9519\u8bef",tags:"\u6807\u7b7e"},blocklet:{external:"\u5916\u90e8",notFound:"\u5e94\u7528\u6ca1\u6709\u627e\u5230\uff0c\u53ef\u80fd\u5df2\u7ecf\u88ab\u5220\u9664",installFromMarket:"\u4ece\u5e94\u7528\u5546\u5e97\u5b89\u88c5",installFromUrl:"\u901a\u8fc7 URL \u5b89\u88c5",installFromCreate:"\u521b\u5efa\u57fa\u77f3\u7a0b\u5e8f",installFromDiskBackup:"\u4ece\u6b64 Server \u8fd8\u539f",installedAt:"\u5b89\u88c5\u65f6\u95f4",internal:"\u5185\u90e8",startedAt:"\u542f\u52a8\u65f6\u95f4",stoppedAt:"\u505c\u6b62\u65f6\u95f4",urlEmptyTip:"\u65e0\u8bbf\u95ee\u5730\u5740\uff0c",goToAddRule:"\u7acb\u5373\u6dfb\u52a0",services:"\u66b4\u9732\u7684\u670d\u52a1",upstreamPort:"\u4e0a\u6e38\u7aef\u53e3",noService:"\u6682\u65e0\u670d\u52a1",appId:"\u5e94\u7528 DID",appPid:"\u6c38\u4e45\u6027 DID",alsoKnownAs:"\u66fe\u7528 DID",skSource:"\u5b89\u88c5\u94b1\u5305",reloadSuccess:"\u5e94\u7528\u91cd\u542f\u6210\u529f",statusTip:"\u5e94\u7528{status}",initialUptime:"\u5c11\u4e8e1\u5206\u949f",dashboard:"\u5e94\u7528\u63a7\u5236\u53f0",noComponent:"\u5e94\u7528\u6ca1\u6709\u7ec4\u4ef6\uff0c\u65e0\u6cd5\u542f\u52a8",action:{stopDescription:"\u505c\u6b62\u8be5\u57fa\u77f3\u7a0b\u5e8f\u5c06\u4f1a\u4f7f\u9875\u9762\u4e0d\u53ef\u4ee5\u8bbf\u95ee\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4f7f\u7528\u5b83\u7684\u7528\u6237\u51fa\u73b0\u9519\u8bef",stopComponentDescription:"\u505c\u6b62\u8be5\u7ec4\u4ef6\u5c06\u4f1a\u4f7f\u9875\u9762\u4e0d\u53ef\u4ee5\u8bbf\u95ee\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4f7f\u7528\u5b83\u7684\u7528\u6237\u51fa\u73b0\u9519\u8bef",confirmStop:"\u662f\u7684\uff0c\u505c\u6b62",cancelDownloadDescription:"\u53d6\u6d88\u4e0b\u8f7d {name} \uff1f",removeApplicationDescription:"\u5982\u679c\u6ca1\u6709\u5907\u4efd\u6570\u636e\uff0c\u5220\u9664\u5e94\u7528\u5c06\u4f1a\u5220\u9664\u6240\u6709\u6570\u636e\uff0c\u5305\u62ec\u5e94\u7528\u8fd0\u884c\u65f6\u4ea7\u751f\u7684\u6240\u6709\u6570\u636e",removeApplicationAfterBackup:"\u5907\u4efd\u540e\u5220\u9664\u5e94\u7528\u3002 \u9700\u8981\u65f6\u60a8\u53ef\u4ee5\u4ece\u6b64\u670d\u52a1\u5668\u6062\u590d\u8be5\u5e94\u7528",removeApplicationComplete:"\u76f4\u63a5\u5220\u9664\u5e94\u7528\u7a0b\u5e8f\u548c\u6570\u636e",removeComponentDescription:"\u5982\u679c\u6ca1\u6709\u5907\u4efd\u6570\u636e\uff0c\u5220\u9664\u8be5\u7ec4\u4ef6\u5c06\u4f1a\u5220\u9664\u6240\u6709\u6570\u636e\uff0c\u5305\u62ec\u7ec4\u4ef6\u8fd0\u884c\u65f6\u4ea7\u751f\u7684\u6240\u6709\u6570\u636e",removeComponentKeepData:"\u4fdd\u7559\u8be5\u7ec4\u4ef6\u7684\u6570\u636e\uff0c\u53ea\u5220\u9664\u7ec4\u4ef6",removeComponentComplete:"\u5220\u9664\u7ec4\u4ef6\u548c\u6570\u636e",confirmRemove:"\u662f\u7684, \u5220\u9664",upgradeDescription:"\u5347\u7ea7\u57fa\u77f3\u7a0b\u5e8f\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5176\u77ed\u6682\u4e0d\u53ef\u7528\uff0c\u662f\u5426\u8981\u7ee7\u7eed\uff1f",confirmUpgrade:"\u662f\u7684\uff0c\u5347\u7ea7\u5427",confirmRestart:"\u662f\u7684\uff0c\u91cd\u542f\u5427",restartDescription:"\u670d\u52a1\u4f1a\u77ed\u6682\u6682\u505c\uff0c\u5e76\u4e14\u6709\u53ef\u80fd\u56e0\u4e3a\u53d8\u66f4\u4e86\u914d\u7f6e\u65e0\u6cd5\u542f\u52a8",confirmComponentRemove:"\u662f\u7684\uff0c\u522a\u9664\u5b83"},dev:{modeTip:"\u8bf7\u5c06\u8282\u70b9\u5207\u6362\u81f3 DEBUG \u6a21\u5f0f"},fromUrl:{title:"\u5b89\u88c5\u5e94\u7528",label:"\u5e94\u7528Meta URL",description:"URL \u5e94\u6307\u5411\u5e94\u7528\u7684 Meta \u6587\u4ef6\u3002\u5982\u679c\u9700\u8981\u6307\u5411\u672c\u5730\u6587\u4ef6\uff0c\u8bf7\u52a0\u4e0a file:// \u524d\u7f00\uff0c\u5982\uff1afile:///Users/foo/blocklet.json\u3002",confirm:"\u5b89\u88c5",step0:"\u8f93\u5165 URL",step1:"\u786e\u8ba4 Meta \u4fe1\u606f",existTipPrefix:"\u5df2\u5b58\u5728\u76f8\u540c DID \u7684\u5e94\u7528\uff0c \u7248\u672c\u4e3a",existTipSuffix:"\uff0c\u8bf7\u5b89\u88c5\u66f4\u9ad8\u7248\u672c\u3002"},index:{tableTitle:"\u7ba1\u7406\u5df2\u5b89\u88c5\u57fa\u77f3\u7a0b\u5e8f",noBlocklet:"\u8282\u70b9\u4e2d\u8fd8\u6ca1\u6709\u57fa\u77f3\u7a0b\u5e8f, \u60a8\u53ef\u4ee5\u4ece\u57fa\u77f3\u7a0b\u5e8f\u5e02\u573a\u4e2d\u5b89\u88c5."},admin:{iframeTitle:"\u57fa\u77f3\u7a0b\u5e8f\u7ba1\u7406\u754c\u9762",title:"\u7ba1\u7406\u754c\u9762",noContent:"\u8be5\u57fa\u77f3\u7a0b\u5e8f\u6ca1\u6709\u7ba1\u7406\u754c\u9762",securityError:"\u5b89\u5168\u9519\u8bef:\u65e0\u6cd5\u4ece\u8bbf\u95ee\u8de8\u6e90\u6846\u67b6\u4e2d\u6253\u5f00\u7ba1\u7406\u754c\u9762"},config:{name:"\u5e94\u7528\u540d\u79f0",description:"\u5e94\u7528\u63cf\u8ff0",sk:"\u5e94\u7528\u8d26\u6237\u79c1\u94a5",logoSquare:"\u5e94\u7528 Logo",logoRect:"\u6a2a\u7248 Logo",logoRectDesc:"\u901a\u5e38\u663e\u793a\u5728\u9875\u9762\u9876\u90e8\uff0c\u9ed8\u8ba4\u548c\u5e94\u7528 Logo \u76f8\u540c",logoFavicon:"Favicon",logoFaviconDesc:"\u901a\u5e38\u663e\u793a\u5728\u6d4f\u89c8\u5668\u7684\u5730\u5740\u680f\u6216\u6807\u7b7e\u9875\u4e2d\uff0c\u9ed8\u8ba4\u548c\u5e94\u7528 Logo \u76f8\u540c",clusterSize:"\u4ee5 Cluster \u6a21\u5f0f\u542f\u52a8\u65f6\u7684\u5b9e\u4f8b\u6570\u91cf",copyrightOwner:"\u7248\u6743\u6240\u6709\u8005 (\u5c55\u793a\u5728\u9875\u811a\u4e2d)",copyrightYear:"\u7248\u6743\u5e74\u4efd (\u5c55\u793a\u5728\u9875\u811a\u4e2d)",deletable:{name:"\u5220\u9664\u4fdd\u62a4",enable:"\u6b64\u5e94\u7528\u5f53\u524d\u4e0d\u53ef\u88ab\u5220\u9664",disable:"\u6b64\u5e94\u7528\u5f53\u524d\u53ef\u4ee5\u88ab\u5220\u9664"},walletType:{name:"\u94b1\u5305\u7c7b\u578b",description:"\u5e94\u7528\u94b1\u5305\u7c7b\u578b\uff0c\u4f1a\u5f71\u54cd\u6d3e\u751f\u51fa\u6765\u7684 DID"},languages:"\u652f\u6301\u7684\u8bed\u8a00",selectLanguagesTip:"\u901a\u8fc7\u5220\u9664\u518d\u6dfb\u52a0\u6765\u8c03\u6574\u987a\u5e8f",languagesSearch:"\u641c\u7d22\u56fd\u5bb6\u7684\u672c\u5730\u540d\u79f0\u3001\u82f1\u6587\u540d\u79f0\u6216ISO\u4ee3\u7801..",passportColor:"\u901a\u884c\u8bc1\u989c\u8272",appUrl:"\u5e94\u7528\u8bbf\u95ee\u5730\u5740",access:{title:"\u8c01\u53ef\u4ee5\u8bbf\u95ee",description:"\u8c01\u53ef\u4ee5\u8bbf\u95ee\u5e94\u7528",useDefault:"\u4f7f\u7528\u8be5\u5e94\u7528\u9ed8\u8ba4\u914d\u7f6e",invitedTip:"\u7a0d\u540e\u60a8\u53ef\u4ee5\u5728\u7ba1\u7406\u9875\u9762\u4e2d\u9080\u8bf7\u548c\u7ba1\u7406\u6210\u5458",defaultDescription:"\u4f7f\u7528\u5e94\u7528\u7684\u9ed8\u8ba4\u914d\u7f6e",whoCanAccess:{all:{title:"\u6240\u6709\u4eba\u53ef\u8bbf\u95ee",description:"\u5411\u6240\u6709\u4eba\u5f00\u653e\uff0c\u65e0\u9700\u901a\u884c\u8bc1\u5373\u53ef\u8bbf\u95ee\u5e94\u7528"},owner:{title:"\u53ea\u6709\u6211\u81ea\u5df1\u53ef\u8bbf\u95ee",description:"\u5fc5\u987b\u63d0\u4f9b\u6240\u6709\u8005\u901a\u884c\u8bc1\u624d\u80fd\u8bbf\u95ee\u5e94\u7528"},invited:{title:"\u53ea\u6709\u88ab\u9080\u8bf7\u7684\u4eba\u53ef\u4ee5\u8bbf\u95ee",description:"\u7a0d\u540e\u60a8\u53ef\u4ee5\u5728\u7ba1\u7406\u9875\u9762\u4e2d\u9080\u8bf7\u6210\u5458"}},publicToStore:"\u5728 Store \u516c\u5f00",publicInstanceTip:"\u6b64\u5e94\u7528\u7684\u8bbf\u95ee\u5730\u5740\u5c06\u5c55\u793a\u5728 Store \u4e2d\uff08\u540c\u65f6\u4e5f\u4f1a\u5c55\u793a\u4f60\u7684 DID\uff0c\u7528\u4e8e\u63a5\u53d7\u6350\u8d60\uff09",updatedTip:"\u8bbf\u95ee\u63a7\u5236\u5df2\u4fee\u6539"},changedTip:"\u914d\u7f6e\u5df2\u66f4\u65b0\uff0c\u8bf7\u91cd\u542f\u5e94\u7528",missingRequired:"\u7f3a\u5c11\u542f\u52a8\u5e94\u7528\u7684\u5fc5\u586b\u9879",gotoFix:"\u53bb\u4fee\u590d",environment:{key:"\u914d\u7f6e\u952e",value:"\u914d\u7f6e\u503c",keyValueRequired:"\u952e\u548c\u503c\u4e0d\u80fd\u4e3a\u7a7a",invalidKey:"\u952e\u4e0d\u80fd\u4ee5 BLOCKLET_ \u6216 COMPONENT_ \u5f00\u5934",deleteForbidden:"\u8be5\u914d\u7f6e\u9879\u662f\u5fc5\u586b\u9879\uff0c\u4e0d\u80fd\u5220\u9664",tip:"\u5305\u542b BWA_ \u524d\u7f00\u7684\u914d\u7f6e\u9879\u4e0d\u5e94\u8be5\u5305\u542b\u654f\u611f\u4fe1\u606f\uff0c\u56e0\u4e3a\u4ed6\u4eec\u4f1a\u88ab\u53d1\u9001\u5230\u524d\u7aef\u9875\u9762"},dangerZone:"\u5371\u9669\u64cd\u4f5c",blockletTypeChangeTip:"\u94b1\u5305\u7c7b\u578b\u5c06\u88ab\u4fee\u6539\u4e3a <b>{value}</b>",appDidChangeTip:"\u8be5\u64cd\u4f5c\u4f1a\u5bfc\u81f4\u5e94\u7528 DID \u53d1\u751f\u53d8\u5316\uff0c\u8fdb\u800c\u5bfc\u81f4\u5982\u4e0b\u95ee\u9898\uff0c\u8bf7\u4ed4\u7ec6\u8bc4\u4f30\u540e\u786e\u8ba4\uff1a",appDidChangeTipL1:"\u7528\u6237\u8fde\u63a5\u6b64\u5e94\u7528\u7684\u8d26\u6237\u4f1a\u53d1\u751f\u53d8\u5316",appDidChangeTipL2:"\u5e94\u7528\u7684 DID \u57df\u540d\u4f1a\u53d1\u751f\u53d8\u5316\uff0c\u539f\u57df\u540d\u5c06\u4f1a\u5931\u6548",appSkChangeTip:"\u4f60\u6b63\u5728\u4fee\u6539\u5e94\u7528\u79c1\u94a5",walletTypeTitle:"\u4fee\u6539\u94b1\u5305\u7c7b\u578b",appSkTitle:"\u4fee\u6539\u5e94\u7528\u79c1\u94a5",sharedToAllComponents:"\u5c06\u5171\u4eab\u7ed9\u6240\u6709\u7ec4\u4ef6",session:{ttl:"\u767b\u5f55\u4f1a\u8bdd\u6709\u6548\u671f\uff08\u5982\u679c\u7528\u6237 {day} \u5929\u5185\u5728\u6b64\u7ad9\u70b9\u6ca1\u6709\u4efb\u4f55\u6d3b\u52a8\uff0c\u5c06\u88ab\u8981\u6c42\u91cd\u65b0\u767b\u5f55\uff09",day:"{day} \u5929",days:"{day} \u5929"},clearCache:{name:"\u7f13\u5b58\u7ba1\u7406",purpose:"\u7ba1\u7406\u7f13\u5b58\u5728\u7f51\u5173\u548c\u670d\u52a1\u4e2d\u7684\u6587\u4ef6",title:"\u786e\u8ba4\u6e05\u9664\u7f13\u5b58\uff1f",action:"\u6e05\u9664\u7f13\u5b58",success:"\u6210\u529f\u6e05\u9664\u4e86 {count} \u4e2a\u7f13\u5b58\u6761\u76ee",description:"\u60a8\u786e\u5b9a\u8981\u6e05\u9664\u7f13\u5b58\u5728\u7f51\u5173\u548c\u670d\u52a1\u4e2d\u7684\u6587\u4ef6\u5417\uff1f\u6b64\u64cd\u4f5c\u53ef\u80fd\u4f1a\u5728\u77ed\u671f\u5185\u5bfc\u81f4\u8f7b\u5fae\u7684\u6027\u80fd\u964d\u4f4e\u3002"}},overview:{source:"\u6765\u6e90",deployedFrom:"\u90e8\u7f72\u6e90",accessControl:"\u8bbf\u95ee\u63a7\u5236",viewInStore:"\u5728\u5546\u5e97\u4e2d\u67e5\u770b",publicToStore:"\u5728 Store \u516c\u5f00\u6b64\u5e94\u7528",publicInstanceTip:"\u6b64\u5e94\u7528\u7684\u8bbf\u95ee\u5730\u5740\u5c06\u5c55\u793a\u5728 Store \u4e2d\uff08\u540c\u65f6\u4e5f\u4f1a\u5c55\u793a\u60a8\u7684 DID\uff0c\u7528\u4e8e\u63a5\u53d7\u6350\u8d60\uff09"},diskInfo:{empty:"\u65e0\u6cd5\u83b7\u5f97\u78c1\u76d8\u4fe1\u606f",appDir:"\u5e94\u7528\u76ee\u5f55",dataDir:"\u6570\u636e\u76ee\u5f55",logDir:"\u65e5\u5fd7\u76ee\u5f55",cacheDir:"\u7f13\u5b58\u76ee\u5f55"},runtimeInfo:{noRunning:"\u5f53\u5e94\u7528\u8fd0\u884c\u65f6\u624d\u53ef\u4ee5\u83b7\u5f97\u8fd0\u884c\u4fe1\u606f\uff01",memoryUsage:"\u5185\u5b58",cpuUsage:"CPU",uptime:"\u542f\u52a8\u65f6\u957f",port:"\u7aef\u53e3",processId:"\u8fdb\u7a0b ID"},dist:{downloadLink:"\u4e0b\u8f7d\u5730\u5740",verify:"\u6821\u9a8c\u4fe1\u606f"},status:{added:"\u5df2\u6dfb\u52a0",waiting:"\u7b49\u5f85\u4e2d",downloading:"\u4e0b\u8f7d\u4e2d",extracting:"\u63d0\u53d6\u4e2d",installing:"\u5b89\u88c5\u4e2d",upgrading:"\u5347\u7ea7\u4e2d",installed:"\u5df2\u5b89\u88c5",created:"\u5df2\u521b\u5efa",starting:"\u542f\u52a8\u4e2d",running:"\u8fd0\u884c\u4e2d",stopping:"\u505c\u6b62\u4e2d",stopped:"\u5df2\u505c\u6b62",error:"\u9519\u8bef",deleting:"\u5220\u9664\u4e2d",corrupted:"\u5df2\u635f\u574f",purchased:"\u5df2\u8d2d\u4e70",purchasing:"\u8d2d\u4e70\u4e2d...",verifying:"\u9a8c\u8bc1\u4e2d..."},list:{download:"\u4e0b\u8f7d\u6570",star:"\u6536\u85cf\u6570"},component:{container:"\u5168\u5c40\u914d\u7f6e",showContainer:"\u663e\u793a\u5168\u5c40\u914d\u7f6e",didSpaceConfig:"\u914d\u7f6e DID Spaces",didSpaceConfigTip:"\u5b8c\u6210\u4ee5\u4e0b\u6388\u6743\u6d41\u7a0b\uff0c\u5373\u53ef\u5c06\u5e94\u7528\u6570\u636e\u5b58\u50a8\u5230 DID Spaces \u4e2d",didSpaceConnected:"\u6b63\u5728\u6388\u6743\u5b58\u50a8\u5230\uff1a{endpoint}",checkUpdateTitle:"\u68c0\u67e5\u66f4\u65b0",updateTitle:"\u66f4\u65b0\u7ec4\u4ef6",noUpdate:"\u6ca1\u6709\u9700\u8981\u66f4\u65b0\u7684\u7ec4\u4ef6",add:"\u6dfb\u52a0\u7ec4\u4ef6",selectComponent:"\u9009\u62e9\u7ec4\u4ef6",selectRegistry:"\u9009\u62e9\u5e94\u7528\u5546\u5e97",selectRegistryTip:"\u60a8\u53ef\u4ee5\u5207\u6362\u5e94\u7528\u5546\u5e97\u4ee5\u67e5\u770b\u66f4\u591a\u7ec4\u4ef6",selectInstance:"\u9009\u62e9\u5b9e\u4f8b",selectInstanceTip:"\u60a8\u53ef\u4ee5\u9009\u62e9\u5df2\u6709\u5b9e\u4f8b \u6216 \u521b\u5efa\u65b0\u7684\u5b9e\u4f8b\u3002\u5df2\u6709\u5b9e\u4f8b\u5c06\u4f7f\u7528\u4e4b\u524d\u4fdd\u5b58\u7684\u914d\u7f6e\u548c\u6570\u636e",newInstance:"\u521b\u5efa\u65b0\u5b9e\u4f8b",noComponent:"\u6682\u65e0\u7ec4\u4ef6",mountPoint:"\u7ec4\u4ef6\u7684\u6302\u8f7d\u70b9\u662f\u4ec0\u4e48\uff1f",mountPointTip:"\u5982\u679c\u4f60\u586b\u5199\u4e86 '/my-prefix'\uff0c\u90a3\u4e48\u6240\u6709\u4ee5\u5176\u4e3a\u524d\u7f00\u7684\u8bf7\u6c42\u90fd\u4f1a\u88ab\u8f6c\u53d1\u5230\u914d\u7f6e\u7684\u7ec4\u4ef6",delete:"\u5220\u9664\u7ec4\u4ef6",deleteDescription:"\u5220\u9664\u540e\u6b64\u7ec4\u4ef6\u5c06\u65e0\u6cd5\u8bbf\u95ee\u3002\u786e\u8ba4\u5220\u9664\uff1f",purchase:"\u9700\u8981\u652f\u4ed8",tip:{stopBlocklet:"\u8bf7\u5148\u505c\u6b62\u8fd0\u884c\u5e94\u7528",requiredBy:"{name} \u9700\u8981\u8be5\u7ec4\u4ef6"},choose:"\u9009\u62e9",addWithName:"\u6dfb\u52a0\u7ec4\u4ef6\u5230 {name}",installingCanCloseWindowTip:"\u6b63\u5728\u540e\u53f0\u5b89\u88c5\u7ec4\u4ef6\u4e2d, \u60a8\u53ef\u4ee5\u653e\u5fc3\u5173\u6389\u6b64\u7a97\u53e3",installSuccessTip:"\u606d\u559c\u60a8\uff0c\u7ec4\u4ef6\u5b89\u88c5\u6210\u529f\uff01",missDownloadTokenTip:"\u7f3a\u5c11\u4e0b\u8f7d\u51ed\u8bc1\uff0c\u65e0\u6cd5\u4e0b\u8f7d",purchaseComponentSecondCheckTip:"\u8bf7\u5728 \u94b1\u5305 \u63d0\u4f9b\u5e94\u7528\u8d2d\u4e70\u51ed\u8bc1",installComponentError:"\u5b89\u88c5\u7ec4\u4ef6\u9047\u5230\u9519\u8bef\uff0c\u8bf7\u91cd\u8bd5",downloadComponentError:"\u4e0b\u8f7d\u7ec4\u4ef6\u9047\u5230\u9519\u8bef\uff0c\u8bf7\u91cd\u8bd5",addComponentTip:{introduction:"\u6b22\u8fce\u6765\u5230\u6dfb\u52a0\u7ec4\u4ef6\u5411\u5bfc",isFree:"\u60a8\u53ef\u4ee5\u514d\u8d39\u6dfb\u52a0 <b>{name}</b> \u4e3a\u7ec4\u4ef6\uff1b",isPurchase:"\u60a8\u9700\u8981\u9a8c\u8bc1\u51ed\u8bc1\u624d\u80fd\u6dfb\u52a0 <b>{name}</b> \u4e3a\u7ec4\u4ef6\uff1b",belowInformation:"\u4e0b\u9762\u4e3a\u8be5\u7ec4\u4ef6\u7684\u4fe1\u606f\uff1a",verifyNFT:"\u8bf7\u9009\u62e9\u9a8c\u8bc1\u51ed\u8bc1\u65b9\u5f0f",config:"\u8bf7\u586b\u5199\u7ec4\u4ef6\u7684\u76f8\u5173\u914d\u7f6e",environment:"\u8bf7\u586b\u5199\u7ec4\u4ef6\u7684\u73af\u5883\u53d8\u91cf",fromUrl:"\u901a\u8fc7 URL \u9009\u62e9\u7ec4\u4ef6"},addNext:"\u6dfb\u52a0 {name}",upgradeNext:"\u5347\u7ea7 {name}",setting:"\u53c2\u6570\u8bbe\u7f6e",components:"{name} \u7ec4\u4ef6\u7684\u4f9d\u8d56",noDependencies:"{name}\u6ca1\u6709\u4efb\u4f55\u4f9d\u8d56",relatedComponents:"\u76f8\u5173\u7ec4\u4ef6"},router:{urlPath:"URL \u8def\u5f84",securitySetting:"\u5b89\u5168\u8bbe\u7f6e",noRunning:"\u5e94\u7528\u5f53\u524d\u672a\u542f\u52a8\u3002\u65e0\u6cd5\u901a\u8fc7\u4ee5\u4e0b\u5730\u5740\u8bbf\u95ee\uff01",checkUrlAccessible:"\u68c0\u67e5\u5730\u5740\u7684\u662f\u5426\u53ef\u8bbf\u95ee",urlInaccessible:"\u53ef\u80fd\u56e0\u4e3a\u7f51\u7edc\u7684\u539f\u56e0\uff0c\u8be5\u5730\u5740\u6682\u65f6\u65e0\u6cd5\u8bbf\u95ee",noAccessibleUrl:"\u6ca1\u6709\u53ef\u8bbf\u95ee\u7684\u5730\u5740",domainLockTooltip:"\u65e0\u6cd5\u7f16\u8f91\u7531\u7cfb\u7edf\u751f\u6210\u7684 \u57df\u540d",urlLockTooltip:"\u65e0\u6cd5\u7f16\u8f91\u7531\u7cfb\u7edf\u751f\u6210\u7684 URL \u8def\u5f84",showAllDomains:"\u663e\u793a\u6240\u6709\u57df\u540d",showAllDIDs:"\u663e\u793a\u6240\u6709 DID",currentDomainTip:"\u4f60\u6b63\u5728\u901a\u8fc7\u8be5\u57df\u540d\u8bbf\u95ee\u5f53\u524d\u9875\u9762"},export:{title:"\u5bfc\u51fa\u5e94\u7528",name:"\u5305\u540d\u79f0",nameTip:'e.g. "my-blocklet-name" or "@my-scope/blocklet-name"',result:"\u63a5\u4e0b\u6765",exportSource:"\u5bfc\u51fa\u6e90\u4ee3\u7801",success:"\u5e94\u7528\u5bfc\u51fa\u6210\u529f",resultTipStart:"\u4f7f\u7528",resultTipEnd:"\u4f60\u53ef\u4ee5\u5728\u51e0\u5206\u949f\u5185\u6784\u5efa\u5e76\u53d1\u5e03\u8fd9\u4e2a\u5e94\u7528",uploadedComponentTip:"\u65e0\u6cd5\u5bfc\u51fa\u76f4\u63a5\u4e0a\u4f20\u7684\u7ec4\u4ef6\uff1a"},migrate:{title:"\u8fc1\u79fb\u5e94\u7528",scan:"\u7528\u4f60\u7684 DID \u94b1\u5305\u626b\u7801\u4e3a\u8fd9\u4e2a\u5e94\u7528\u751f\u6210\u94a5\u5319\u5bf9",confirm:"\u8bf7\u5728 DID \u94b1\u5305\u4e0a\u786e\u8ba4",success:"\u4f60\u7684\u5e94\u7528\u5df2\u8fc1\u79fb\u6210\u529f\uff0c\u9875\u9762\u5c06\u5728 {sec} \u79d2\u540e\u5237\u65b0",intro:{l1:"\u70b9\u51fb\u8fd9\u91cc",l2:"\u8fc1\u79fb\u5e94\u7528\u5230\u65b0\u7248\uff08\u8fc1\u79fb\u5b8c\u6210\u4e4b\u524d\u7ec4\u4ef6\u5347\u7ea7\u5c06\u88ab\u7981\u7528\uff09",l3:"1. \u5e94\u7528\u7684\u94a5\u5319\u5bf9\u5c06\u5b8c\u5168\u7531\u94b1\u5305\u7ba1\u7406",l4:"2. \u5e94\u7528\u7684\u6570\u636e\u5c06\u5e73\u6ed1\u8fc1\u79fb\uff0c\u4e0d\u4f1a\u4e22\u5931",l5:"3. \u65b0\u7684\u7ed3\u6784\u5c06\u4e3a\u4f60\u7ec4\u5408\u5e94\u7528\u63d0\u4f9b\u66f4\u5927\u7684\u7075\u6d3b\u6027",l6:"4. \u5728\u7ec4\u4ef6\u6709\u65b0\u7248\u4e4b\u524d\uff0c\u8bf7\u4e0d\u8981\u5728\u8fc1\u79fb\u4e4b\u540e\u968f\u610f\u53d8\u66f4\u7ec4\u4ef6\u6302\u8f7d\u70b9"},tip:{duplicate:"\u53d1\u73b0\u91cd\u590d\u7684\u7ec4\u4ef6 {name}\uff0c\u8bf7\u5220\u9664\u65e0\u7528\u7ec4\u4ef6\u5e76\u91cd\u65b0\u8fc1\u79fb",running:"\u8fc1\u79fb\u524d\u8bf7\u5148\u505c\u6b62\u5e94\u7528"}},error:{isRunning:"\u5e94\u7528\u6b63\u5728\u8fd0\u884c\uff0c\u8bf7\u5148\u505c\u6b62\u8fd0\u884c",isInProgress:"\u5e94\u7528\u6b63\u5728\u8fdb\u884c\u4e2d\uff0c\u8bf7\u7b49\u5f85\u5b8c\u6210"},publish:{createResource:"\u521b\u5efa\u8d44\u6e90",addResource:"\u6dfb\u52a0\u8d44\u6e90",productTitle:"Blocklet \u8be6\u60c5",versionTitle:"\u7248\u672c\u4fe1\u606f",imgTitle:"\u56fe\u7247\u8d44\u6e90",resourceTitle:"\u7ec4\u4ef6\u8d44\u6e90",blockletEmptyTip:"\u8fd9\u91cc\u6ca1\u6709\u4efb\u4f55 blocklet",createBlockletTip:"\u4f60\u53ef\u4ee5\u4f7f\u7528\u6b64\u5e94\u7528\u7684\u8d44\u6e90\uff0c\u7ec4\u4ef6\uff0c\u914d\u7f6e\u5236\u4f5c\u65b0\u7684 Blocklet",createBlocklet:"\u521b\u5efa Blocklet",deleteBlockletTip:"\u6b64 Blocklet \u5220\u9664\u540e\u4e0d\u53ef\u6062\u590d\uff0c\u662f\u5426\u7ee7\u7eed\uff1f",componentNotRunning:"\u7ec4\u4ef6 {name} \u672a\u8fd0\u884c",releaseEmptyTip:"\u8fd9\u91cc\u6ca1\u6709\u4efb\u4f55\u53d1\u5e03",createReleaseTip:"\u60a8\u53ef\u4ee5\u521b\u5efa Blocklet \u53d1\u5e03\uff0c\u5728\u53d1\u5e03\u4e2d\u5305\u542b\u8bf4\u660e\u548c\u8d44\u6e90\uff0c\u4ee5\u4f9b\u5176\u4ed6\u4eba\u4f7f\u7528",createRelease:"\u521b\u5efa\u65b0\u7684\u53d1\u5e03",deleteReleaseTip:"\u6b64\u53d1\u5e03\u5220\u9664\u540e\u4e0d\u53ef\u6062\u590d\uff0c\u662f\u5426\u7ee7\u7eed\uff1f",createBlockletDid:"\u901a\u8fc7 DID \u94b1\u5305\u521b\u5efa",createReleaseSuccess:"\u53d1\u5e03\u6210\u529f",saveDraftSuccess:"\u4fdd\u5b58\u6210\u529f",packTip:"Blocklet \u4e2d\u5c06\u81ea\u52a8\u5305\u542b\u7ec4\u4ef6\u548c\u5e94\u7528\u914d\u7f6e",resourceChangedWarning:"\u60a8\u4fee\u6539\u4e86\u8d44\u6e90\uff0c\u8bf7\u53ca\u65f6\u4fdd\u5b58",connect:{title:"\u521b\u5efa Blocklet DID",scan:"\u626b\u63cf\u4e0b\u9762\u7684\u4e8c\u7ef4\u7801\u6765\u751f\u6210 Blocklet DID",confirm:"\u4f7f\u7528 DID Wallet \u786e\u8ba4",success:"Blocklet DID \u5df2\u7ecf\u751f\u6210\uff0c\u8bf7\u7ee7\u7eed\u60a8\u7684\u64cd\u4f5c"},saveDraft:"\u4fdd\u5b58\u8349\u7a3f",releaseNote:"\u53d1\u5e03\u8bf4\u660e",errorTip:{noDid:"\u8bf7\u586b\u5199 Blocklet DID",noTitle:"\u8bf7\u586b\u5199 Blocklet \u540d\u79f0",noVersion:"\u8bf7\u586b\u5199 Blocklet \u7248\u672c\u53f7",noDescription:"\u8bf7\u586b\u5199 Blocklet \u63cf\u8ff0",noNote:"\u8bf7\u586b\u5199 \u53d1\u5e03\u8bf4\u660e"}}},dashboard:{nodeDid:"\u8282\u70b9\u5730\u5740",ownerDid:"\u6240\u6709\u8005\u5730\u5740",routingEngine:"\u8def\u7531\u5f15\u64ce",ownerNftURL:"\u6240\u6709\u8005 NFT",expirationLeft:"\u6709\u6548\u671f\u8fd8\u5269",startFromCrashTip:"\u5e94\u7528Server \u4e0a\u6b21\u672a\u6b63\u5e38\u9000\u51fa\uff0c\u8bf7\u624b\u52a8\u542f\u52a8\u9700\u8981\u8fd0\u884c\u7684 blocklet.",runtimeConfig:{blockletMaxMemoryLimit:"Blocklet \u6700\u5927\u5185\u5b58\u9650\u5236",daemonMaxMemoryLimit:"Server \u6700\u5927\u5185\u5b58\u9650\u5236",proxyMaxMemoryLimit:"\u6d88\u606f\u603b\u7ebf\u6700\u5927\u5185\u5b58\u9650\u5236"}},store:{nameSort:"\u540d\u79f0",popularSort:"\u4e0b\u8f7d\u91cf",headerDescription:"\u67e5\u627e\u3001\u5b89\u88c5\u57fa\u77f3\u7a0b\u5e8f",detail:{purchase:"\u8d2d\u4e70 {name}",open:"\u6253\u5f00 {name}",install:"\u5b89\u88c5 {name}",upgrade:"\u5347\u7ea7 {name}",empty:"\u6682\u65e0\u4ecb\u7ecd"},blockletRegistry:{changeFailed:"\u66f4\u6539\u5e94\u7528\u5546\u5e97\u5730\u5740\u5931\u8d25\uff1a",addFailed:"\u6dfb\u52a0\u5e94\u7528\u5546\u5e97\u5730\u5740\u5931\u8d25\uff1a",editFailed:"\u7f16\u8f91\u5e94\u7528\u5546\u5e97\u5730\u5740\u5931\u8d25\uff1a",switchRegistry:"\u9009\u62e9\u5e94\u7528\u5546\u5e97\u5730\u5740",addRegistry:"\u6dfb\u52a0\u5e94\u7528\u5546\u5e97\u5730\u5740",editRegistry:"\u7f16\u8f91\u5e94\u7528\u5546\u5e97\u5730\u5740",deleteRegistry:"\u5220\u9664\u5e94\u7528\u5546\u5e97\u5730\u5740",haveSameRegistry:"\u5b58\u5728\u76f8\u540c\u7684\u5e94\u7528\u5546\u5e97\u5730\u5740",registryName:"\u5e94\u7528\u5546\u5e97\u540d\u79f0",registryUrl:"\u5e94\u7528\u5546\u5e97\u5730\u5740",registryNameEmpty:"\u5e94\u7528\u5546\u5e97\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a",registryUrlEmpty:"\u5e94\u7528\u5546\u5e97\u5730\u5740\u4e0d\u80fd\u4e3a\u7a7a",deleteDesc:'\u786e\u8ba4\u5220\u9664\u5e94\u7528\u5546\u5e97\u5730\u5740 {name} \uff1f<br/><span style="color: {color}">*\u79fb\u9664\u8be5\u5546\u5e97\u4e4b\u540e\uff0c\u65e0\u6cd5\u66f4\u65b0\u4ece\u6b64\u5546\u5e97\u5b89\u88c5\u7684\u5e94\u7528\uff0c\u9664\u975e\u4f60\u518d\u6b21\u6dfb\u52a0\u3002</span>',confirmDesc:"\u8bf7\u8f93\u5165 {name} \u4ee5\u786e\u8ba4\u5220\u9664"},purchase:{title:"\u8d2d\u4e70 {name}",confirmed:"\u4f60\u7684\u8d2d\u4e70\u5df2\u7ecf\u9a8c\u8bc1\uff0c\u5b89\u88c5\u4e2d",declined:"\u4f60\u6ca1\u6709\u63d0\u4f9b\u6709\u6548\u7684\u8d2d\u4e70\u51ed\u8bc1",waiting:"\u7b49\u5f85\u8d2d\u4e70\u5b8c\u6210...",purchase:{title:"\u83b7\u53d6\u51ed\u8bc1",description:"\u5b89\u88c5\u6b64\u5e94\u7528\u4e4b\u524d\u4f60\u9700\u8981\u652f\u4ed8\u4e00\u5b9a\u6570\u91cf\u7684\u901a\u8bc1\u4ee5\u5b8c\u6210\u8d2d\u4e70"},verify:{title:"\u9a8c\u8bc1\u51ed\u8bc1",description:"\u5982\u679c\u4f60\u5df2\u7ecf\u8d2d\u4e70\u8fc7\u6b64\u5e94\u7528\uff0c\u63d0\u4f9b\u8d2d\u4e70\u51ed\u8bc1 NFT \u5373\u53ef\u5b8c\u6210\u5b89\u88c5",auth:{title:"\u9700\u8981\u9a8c\u8bc1\u8d2d\u4e70\u51ed\u8bc1",scan:"\u7528\u4f60\u7684 DID \u94b1\u5305\u626b\u63cf\u4e0b\u9762\u7684\u4e8c\u7ef4\u7801\u4ee5\u63d0\u4f9b\u8d2d\u4e70\u51ed\u8bc1",confirm:"\u8bf7\u5728 DID \u94b1\u5305\u4e0a\u786e\u8ba4",success:"\u4f60\u7684\u8d2d\u4e70\u51ed\u8bc1\u5df2\u7ecf\u9a8c\u8bc1\u901a\u8fc7\uff0c\u5e94\u7528\u6b63\u5728\u5b89\u88c5\u4e2d"}},auth:{title:"\u8d2d\u4e70 {name}",scan:"\u7528\u4f60\u7684 DID \u94b1\u5305\u626b\u63cf\u4e0b\u9762\u7684\u4e8c\u7ef4\u7801",confirm:"\u8bf7\u5728 DID \u94b1\u5305\u4e0a\u786e\u8ba4",success:"\u8d2d\u4e70\u51ed\u8bc1\u5df2\u7ecf\u53d1\u9001\u5230\u4f60\u94b1\u5305"},launch:"\u542f\u52a8 {name}",autoLaunch:"{name} \u8d2d\u4e70\u6210\u529f\uff0c\u6b63\u5728\u8df3\u8f6c\u5230\u542f\u52a8\u9875\u9762..."}},setting:{saveSuccess:"\u4fdd\u5b58\u8bbe\u7f6e\u6210\u529f",unSavedTip:"\u6709\u5c1a\u672a\u4fdd\u5b58\u7684\u66f4\u6539\uff0c\u8bf7\u5355\u51fb\u201c\u4fdd\u5b58\u201d\u4f7f\u66f4\u6539\u751f\u6548\u3002",unSavedLeaveTip:"\u6709\u5c1a\u672a\u4fdd\u5b58\u7684\u66f4\u6539\uff0c\u662f\u5426\u786e\u5b9a\u79bb\u5f00\u5f53\u524d\u9875\u9762\uff1f",form:{name:"\u8282\u70b9\u547d\u540d",nameRequired:"\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a",namePlaceholder:"\u8282\u70b9\u540d\u79f0",description:"\u8282\u70b9\u63cf\u8ff0",descriptionHolder:"\u8282\u70b9\u63cf\u8ff0",descriptionRequired:"\u8282\u70b9\u63cf\u8ff0\u4e0d\u80fd\u4e3a\u7a7a",domain:"\u8282\u70b9\u57df\u540d",domainPlaceholder:"\u8282\u70b9\u57df\u540d",registry:"\u5e94\u7528\u5546\u5e97\u5730\u5740",registryPlaceholder:"\u7528\u6765\u62c9\u53d6\u57fa\u77f3\u7a0b\u5e8f\u5217\u8868",registryRequired:"\u5e94\u7528\u5546\u5e97\u5730\u5740\u662f\u5fc5\u586b\u7684",registerUrl:"\u5e94\u7528\u542f\u52a8\u5668\u5730\u5740",registerUrlPlaceholder:'\u4f60\u53ef\u4ee5\u4f7f\u7528\u81ea\u5df1\u8fd0\u884c\u7684"\u5e94\u7528\u542f\u52a8\u5668", \u4e5f\u53ef\u4ee5\u4f7f\u7528\u5b98\u65b9\u63d0\u4f9b\u7684\u7248\u672c',webWalletUrl:"DID Wallet \u5730\u5740",webWalletUrlPlaceholder:'\u4f60\u53ef\u4ee5\u4f7f\u7528\u81ea\u5df1\u8fd0\u884c\u7684 "DID Wallet", \u4e5f\u53ef\u4ee5\u4f7f\u7528\u5b98\u65b9\u63d0\u4f9b\u7684\u7248\u672c',nftDomainUrl:"NFT Domain \u5730\u5740",nftDomainUrlPlaceholder:"\u4f60\u53ef\u4ee5\u9009\u62e9\u5176\u5b83\u7684 NFT Domain \u670d\u52a1\u5668, \u4e5f\u53ef\u4ee5\u4f7f\u7528\u5b98\u65b9\u63d0\u4f9b\u7684\u7248\u672c",upgrade:{title:"\u5347\u7ea7\u8282\u70b9 {version}",description:"\u5728\u5347\u7ea7\u671f\u95f4\uff0c\u8282\u70b9\u5c06\u4f1a\u8fdb\u5165\u7ef4\u62a4\u6a21\u5f0f\u51e0\u5206\u949f\u3002",dialog:"\u70b9\u51fb \u201c\u786e\u8ba4\u201d \u5b89\u88c5\u66f4\u65b0\u3002\u8282\u70b9\u5c06\u8fdb\u5165\u7ef4\u62a4\u6a21\u5f0f\uff0c\u76f4\u5230\u66f4\u65b0\u5b8c\u6210\u5e76\u81ea\u52a8\u8fd4\u56de\u751f\u4ea7\u6a21\u5f0f\u3002",confirm:"\u5347\u7ea7",switchLabel:"\u81ea\u52a8\u66f4\u65b0\u68c0\u67e5",enableBetaRelease:"\u5141\u8bb8\u5b89\u88c5\u6d4b\u8bd5\u7248",setup:"\u51c6\u5907\u5347\u7ea7\u4e2d",installing:"\u5b89\u88c5\u8282\u70b9\u65b0\u7248\u672c\uff08v{version}\uff09",restarting:"\u91cd\u65b0\u542f\u52a8\u8282\u70b9",cleanup:"\u8fc1\u79fb\u8282\u70b9\u6570\u636e",verifying:"\u9a8c\u8bc1\u8282\u70b9\u65b0\u7248\u672c v{version}",rollback:"\u56de\u6eda\u6b64\u6b21\u5347\u7ea7",complete:"\u5347\u7ea7\u5b8c\u6210!",progress:"\u6b63\u5728\u5347\u7ea7\u8282\u70b9 {version}",check:"\u68c0\u67e5\u66f4\u65b0",latest:"\u592a\u68d2\u4e86\uff0c\u4f60\u7684\u8282\u70b9\u5df2\u7ecf\u662f\u6700\u65b0\u7248\uff01"},restart:{title:"\u91cd\u65b0\u542f\u52a8\u8282\u70b9",description:"\u5728\u91cd\u542f\u671f\u95f4\uff0c\u8282\u70b9\u5c06\u4f1a\u8fdb\u5165\u7ef4\u62a4\u6a21\u5f0f\u51e0\u5341\u79d2\u949f\u3002",dialog:"\u70b9\u51fb \u201c\u786e\u8ba4\u201d \u5f00\u542f\u91cd\u542f\u3002\u8282\u70b9\u5c06\u8fdb\u5165\u7ef4\u62a4\u6a21\u5f0f\uff0c\u76f4\u5230\u66f4\u65b0\u5b8c\u6210\u5e76\u81ea\u52a8\u8fd4\u56de\u751f\u4ea7\u6a21\u5f0f\u3002",confirm:"\u91cd\u542f",setup:"\u51c6\u5907\u91cd\u542f\u4e2d",verifying:"\u9a8c\u8bc1\u8282\u70b9\u7248\u672c",restarting:"\u91cd\u542f\u8282\u70b9\u4e2d",cleanup:"\u9a8c\u8bc1\u91cd\u542f\u6210\u529f",rollback:"\u64a4\u9500\u91cd\u542f\u64cd\u4f5c",complete:"\u7ef4\u62a4\u5b8c\u6210",progress:"\u6b63\u5728\u91cd\u542f\u8282\u70b9"},welcome:{switchLabel:"Welcome \u9875\u9762"},register:{titleAdded:"\u5f53\u524d\u8282\u70b9\u5df2\u7ecf\u6dfb\u52a0\u5230\u5e94\u7528\u542f\u52a8\u5668",title:"\u6dfb\u52a0\u8282\u70b9\u5230\u5e94\u7528\u542f\u52a8\u5668",description:"\u6dfb\u52a0\u6210\u529f\u540e\uff0c\u4f60\u53ef\u4ee5\u5feb\u901f\u4ece {url} \u5b89\u88c5\u5e94\u7528\u5230\u6b64\u8282\u70b9",descriptionOnAdded:"\u4f60\u53ef\u4ee5\u5feb\u901f\u4ece {url} \u5b89\u88c5\u5e94\u7528\u5230\u6b64\u8282\u70b9",btn:"\u6dfb\u52a0",update:"\u66f4\u65b0",added:"\u5df2\u6dfb\u52a0",addSucceed:"\u6dfb\u52a0\u6210\u529f",updateSucceed:"\u66f4\u65b0\u6210\u529f",detecting:"\u68c0\u6d4b\u4e2d",timeout:"\u68c0\u6d4b\u8d85\u65f6\uff0c\u8bf7\u68c0\u67e5\u8282\u70b9\u542f\u52a8\u5668\u662f\u5426\u542f\u52a8"},monitor:{diskThreshold:"\u5f53\u78c1\u76d8\u4f7f\u7528\u7387\u8d85\u8fc7\uff08%\uff09\u65f6\u53d1\u9001\u62a5\u8b66",diskThresholdPlaceholder:"\u8bf7\u8bbe\u7f6e\u78c1\u76d8\u4f7f\u7528\u7387\u62a5\u8b66\u9608\u503c"},domainRequired:"\u670d\u52a1\u5668\u57df\u540d\u662f\u5fc5\u9700\u7684",ipPlaceholder:"IP",ipRequired:"IP\u662f\u5fc5\u9700\u7684",enableWelcomePage:"\u542f\u7528\u6b22\u8fce\u9875"},accessKey:{accessKeyId:"Access Key",lastUsed:"\u6700\u540e\u4f7f\u7528",tip:"\u8bf7\u7ed9 Access Key \u8d77\u4e2a\u540d\u5b57",saveSecretTip:"\u4f60\u7684 Access Secret \u53ea\u4f1a\u5c55\u793a\u4e00\u6b21\uff0c\u5173\u95ed\u6b64\u7a97\u53e3\u540e\u5c06\u65e0\u6cd5\u518d\u6b21\u67e5\u770b\uff0c\u4e0d\u8fc7\u4f60\u53ef\u4ee5\u968f\u65f6\u91cd\u65b0\u521b\u5efa\u65b0\u7684 Access Key",iKnow:"\u6211\u5df2\u590d\u5236\u4fdd\u5b58\u597d\u8be5 Access Secret",showSecret:"\u5c55\u793a Secret",hideSecret:"\u9690\u85cf Secret",title:"\u5220\u9664 Access Key",descriptionNoTime:"\u6b64\u64cd\u4f5c\u65e0\u6cd5\u64a4\u6d88\u3002\u8fd9\u5c06\u6c38\u4e45\u5220\u9664\u5907\u6ce8\u4e3a {name} \u5e76\u4e14 Id \u4e3a {key} \u7684 Access Key (\u6b64 Access Key \u4e4b\u524d\u6ca1\u6709\u88ab\u4f7f\u7528\u8fc7) ",description:"\u6b64\u64cd\u4f5c\u65e0\u6cd5\u64a4\u6d88\u3002\u8fd9\u5c06\u6c38\u4e45\u5220\u9664\u5907\u6ce8\u4e3a {name} \u5e76\u4e14 Id \u4e3a {key} \u7684 Access Key (\u6700\u540e\u7684\u4f7f\u7528\u65f6\u95f4\u4e3a {time}, {timeAge})",confirm_desc:"\u8bf7\u8f93\u5165 {name} \u4ee5\u786e\u8ba4\u5220\u9664",remark:"Access Key \u540d\u79f0",remarkInvalid:"Access Key \u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a"},webhook:{add:"\u6dfb\u52a0\u5e94\u7528\u96c6\u6210",delTitle:"\u5220\u9664\u5e94\u7528\u96c6\u6210",requiredError:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684 {type}",confirm_desc:"\u8bf7\u8f93\u5165 {name} \u4ee5\u786e\u8ba4\u5220\u9664",test:"\u6d4b\u8bd5",description:"\u6b64\u64cd\u4f5c\u65e0\u6cd5\u64a4\u6d88\u3002\u8fd9\u5c06\u6c38\u4e45\u5220\u9664 ID \u4e3a {id} \u7684\u5e94\u7528\u96c6\u6210",columns:{description:"ID",params:"\u53c2\u6570",createdAt:"\u521b\u5efa\u65f6\u95f4"}}},notification:{title:"\u52a8\u6001",empty:"\u6ca1\u6709\u52a8\u6001",viewAll:"\u67e5\u770b\u6240\u6709\u52a8\u6001",showRead:"\u663e\u793a\u5df2\u8bfb",markAllAsRead:"\u5168\u90e8\u6807\u8bb0\u4e3a\u5df2\u8bfb",markAsRead:"\u6807\u8bb0\u4e3a\u5df2\u8bfb",proceed:"\u5904\u7406",checkingForUpdates:"\u6b63\u5728\u68c0\u67e5\u66f4\u65b0...",email:{enable:"\u662f\u5426\u5f00\u542f Email \u901a\u77e5",from:"\u53d1\u4ef6\u4eba\u90ae\u7bb1",host:"SMTP \u670d\u52a1\u5730\u5740",port:"SMTP \u670d\u52a1\u7aef\u53e3",user:"SMTP \u670d\u52a1\u7528\u6237\u540d",secure:"\u4f7f\u7528\u5b89\u5168\u94fe\u63a5",password:"SMTP \u670d\u52a1\u7528\u6237\u5bc6\u7801",fromRequired:"\u8bf7\u8f93\u5165\u53d1\u4ef6\u4eba\u90ae\u7bb1",fromInvalid:"\u53d1\u4ef6\u4eba\u90ae\u7bb1\u683c\u5f0f\u4e0d\u6b63\u786e",receiverRequired:"\u8bf7\u8f93\u5165\u6536\u4ef6\u4eba\u90ae\u7bb1",receiverInvalid:"\u6536\u4ef6\u4eba\u90ae\u7bb1\u683c\u5f0f\u4e0d\u6b63\u786e",hostRequired:"\u8bf7\u8f93\u5165 SMTP \u670d\u52a1\u5730\u5740",hostInvalid:"\u8bf7\u8f93\u5165 SMTP \u670d\u52a1\u5730\u5740\u683c\u5f0f\u4e0d\u6b63\u786e",portRequired:"\u8bf7\u8f93\u5165 SMTP \u670d\u52a1\u7aef\u53e3",portInvalid:"\u8bf7\u8f93\u5165 SMTP \u670d\u52a1\u7aef\u53e3\uff0c\u7aef\u53e3\u53f7\u5e94\u8be5\u5728 0-65535 \u4e4b\u95f4",userRequired:"\u8bf7\u8f93\u5165 SMTP \u670d\u52a1\u7528\u6237\u540d",passwordRequired:"\u8bf7\u8f93\u5165 SMTP \u670d\u52a1\u7528\u6237\u5bc6\u7801",testSuccess:"\u6d4b\u8bd5\u90ae\u4ef6\u53d1\u9001\u6210\u529f",testFailed:"\u6d4b\u8bd5\u90ae\u4ef6\u53d1\u9001\u5931\u8d25",testReceiver:"\u6536\u4ef6\u4eba\u90ae\u7bb1",testSendEmail:"\u6d4b\u8bd5\u90ae\u4ef6\u53d1\u9001",inputTestReceiver:"\u8bf7\u8f93\u5165\u6d4b\u8bd5\u90ae\u4ef6\u63a5\u6536\u8005\u7684\u90ae\u7bb1\u5730\u5740",disable:"\u7981\u7528\u90ae\u4ef6\u901a\u77e5",disableDescription:"\u7981\u7528\u540e\u5c06\u4e0d\u518d\u6536\u5230\u90ae\u4ef6\u901a\u77e5\uff0c\u5982\u9700\u6536\u5230\u90ae\u4ef6\u901a\u77e5\uff0c\u53ef\u4ee5\u5728\u672c\u9875\u9762\u518d\u6b21\u5f00\u542f",unsubscribe:"\u53d6\u6d88\u90ae\u4ef6\u8ba2\u9605",unsubscribeDescription:"\u53d6\u6d88\u90ae\u4ef6\u8ba2\u9605\u540e\u5c06\u4e0d\u518d\u6536\u5230\u6240\u6709\u90ae\u4ef6\u901a\u77e5",subscribe:"\u8ba2\u9605\u90ae\u4ef6",subscribeDescription:"\u5982\u9700\u6536\u5230\u90ae\u4ef6\u901a\u77e5\uff0c\u53ef\u8fdb\u5165\u914d\u7f6e\u9875\u518d\u6b21\u5f00\u542f\u8ba2\u9605"},comingSoon:"\u66f4\u591a\u901a\u77e5\u65b9\u5f0f\u6b63\u5728\u5efa\u8bbe\u4e2d",unsubscribe:"\u53d6\u6d88\u8ba2\u9605",unsubscribeSucceed:"\u53d6\u6d88\u8ba2\u9605\u6210\u529f",unsubscribeFailed:"\u53d6\u6d88\u8ba2\u9605\u5931\u8d25",unsubscribeTokenRequired:"\u53d6\u6d88\u8ba2\u9605\u94fe\u63a5\u4e0d\u5b58\u5728",unsubscribeTokenExpired:"\u53d6\u6d88\u8ba2\u9605\u94fe\u63a5\u5df2\u8fc7\u671f",unsubscribeTokenInvalid:"\u53d6\u6d88\u8ba2\u9605\u94fe\u63a5\u6709\u8bef",installComponentError:"\u672a\u627e\u5230\u5378\u8f7d\u7684\u7ec4\u4ef6 {name}",installingComponent:"\u5b89\u88c5\u7ec4\u4ef6{name}"},router:{routerSetting:"\u57df\u540d\u548c\u7f51\u5740",certSetting:"SSL \u8bc1\u4e66",defaultSite:"\u9ed8\u8ba4",urlHelperText:"\u4e0d\u4ee5 HTTP/HTTPS \u5f00\u5934\u7684 URL \u5c06\u88ab\u8ba4\u4e3a\u662f\u76f8\u5bf9\u8def\u5f84",empty:"\u70b9\u51fb \u201c\u6dfb\u52a0 URL\u201d \u6765\u589e\u52a0\u6620\u5c04",healthy:{ok:"\u57fa\u77f3\u7a0b\u5e8f\u8fd0\u884c\u4e2d\uff0c\u53ef\u8bbf\u95ee",error:"\u57fa\u77f3\u7a0b\u5e8f\u672a\u5b89\u88c5\u6216\u672a\u8fd0\u884c\u4e2d\uff0c\u65e0\u6cd5\u8bbf\u95ee"},service:{select:"\u9009\u62e9\u548c\u914d\u7f6e\u670d\u52a1\uff08\u53ef\u9009\uff09",what:"\u670d\u52a1\u662f\u628a\u8bf7\u6c42\u8f6c\u4ea4\u7ed9\u57fa\u77f3\u7a0b\u5e8f\u524d\u6267\u884c\u7684\u903b\u8f91\uff0c\u6bd4\u5982\u8981\u6c42\u7528\u6237\u767b\u5f55\uff0c\u68c0\u67e5\u6743\u9650\u7b49"},nonProvider:{title:"\u53d8\u66f4\u5f15\u64ce\u8b66\u544a",description:"\u5982\u679c\u4f60\u5c06\u5f15\u64ce\u5207\u6362\u4e3a none\uff0c\u4f60\u5f53\u524d\u8bbf\u95ee\u7684\u9875\u9762\u53ef\u80fd\u4e0d\u518d\u53ef\u7528\uff0c\u56e0\u4e3a\u5b83\u53ef\u80fd\u662f\u7531\u5f15\u64ce\u6765\u63d0\u4f9b\u670d\u52a1\u7684\uff0c\u662f\u5426\u8981\u7ee7\u7eed\uff1f",confirm:"\u6211\u77e5\u9053\u98ce\u9669\uff0c\u7ee7\u7eed\u5427"},validation:{urlRequired:"URL \u662f\u5fc5\u586b\u7684",redirectCodeRequired:"\u91cd\u5b9a\u5411\u7801\u662f\u5fc5\u9009\u7684",didRequired:"\u5e94\u7528\u662f\u5fc5\u9009\u7684",pathPrefixTooLong:"\u8bf7\u6c42\u7684\u524d\u7f00\u4e0d\u80fd\u8d85\u8fc730\u4e2a\u5b57\u7b26",pathPrefixCannotBeEmpty:"\u8bf7\u6c42\u7684\u524d\u7f00\u4e0d\u80fd\u4e3a\u7a7a",domainRequired:"\u8282\u70b9\u57df\u540d\u4e0d\u80fd\u4e3a\u7a7a",invalidUrl:"\u8bf7\u586b\u5199\u6b63\u786e\u7684 URL",pathPrefixRequired:"URL \u524d\u7f00\u662f\u5fc5\u586b\u7684",redirectUrlRequired:"\u91cd\u5b9a\u5411 URL \u662f\u5fc5\u586b\u7684",rewriteUrlRequired:"\u91cd\u5199\u5230 URL \u662f\u5fc5\u586b\u7684"},domain:{addSite:"\u6dfb\u52a0\u7ad9\u70b9",validate:{emptyTip:"\u7ad9\u70b9\u57df\u540d\u4e0d\u80fd\u4e3a\u7a7a",suffixTip:"\u7ad9\u70b9\u57df\u540d\u4e0d\u80fd\u5305\u542b {suffix}"},add:{title:"\u6dfb\u52a0\u57df\u540d",description:"\u8bf7\u586b\u5199\u4f60\u6240\u62e5\u6709\u7684\u5408\u6cd5\u7684\u57df\u540d",confirm:"\u6dfb\u52a0",cancel:"\u53d6\u6d88",blocklet:"\u9009\u62e9\u57fa\u77f3\u7a0b\u5e8f",redirect:"\u91cd\u5b9a\u5411\u5230\u54ea\u91cc?",port:"\u8d1f\u8d23\u5904\u7406\u8bf7\u6c42\u7684\u670d\u52a1\u76d1\u542c\u5728\u54ea\u4e2a\u7aef\u53e3\uff1f",portTip:"\u4fdd\u6301\u9ed8\u8ba4\u503c\u5c31\u597d\uff0c\u5982\u679c\u4f60\u60f3\u628a\u8bf7\u6c42\u8f6c\u53d1\u5230\u975e\u9ed8\u8ba4\u7aef\u53e3\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u4fee\u6539",type:"\u670d\u52a1\u7c7b\u578b",component:"\u9009\u62e9\u7ec4\u4ef6",pageGroup:"\u8def\u7531\u5206\u7ec4",pageGroupTip:"\u8be5\u7ec4\u4ef6\u5177\u5907\u6e32\u67d3\u8fd9\u91cc\u5217\u51fa\u7684\u4efb\u4f55\u4e00\u7ec4\u9875\u9762\uff0c\u7559\u7a7a\u8868\u793a\u6e32\u67d3\u6240\u6709\u9875\u9762"},update:{title:"\u66f4\u65b0\u7ad9\u70b9\u57df\u540d",label:"\u7ad9\u70b9\u57df\u540d",description:"\u8bf7\u586b\u5199\u4f60\u6240\u62e5\u6709\u7684\u5408\u6cd5\u7684\u7ad9\u70b9\u57df\u540d"},setup:{tipStart:"\u8bf7\u5c06",tipEnd:"\u57df\u540d\u7684 DNS \u8bb0\u5f55\u6309\u7167\u4e0b\u9762\u7684\u63d0\u793a\u6dfb\u52a0",recordType:"\u8bb0\u5f55\u7c7b\u578b",recordValue:"\u8bb0\u5f55\u503c"},verify:{ok:"\u8be5\u57df\u540d\u89e3\u6790\u6b63\u5e38",notResolved:"\u8be5\u57df\u540d\u89e3\u6790\u5f02\u5e38\uff0c\u8bf7\u68c0\u67e5\u4f60\u57df\u540d\u670d\u52a1\u5546\u7684 DNS \u914d\u7f6e"},https:{ok:"\u8be5\u57df\u540d\u5df2\u542f\u7528 HTTPS",bad:"\u8be5\u57df\u540d\u5c1a\u672a\u542f\u7528 HTTPS"},delete:{title:"\u5220\u9664\u7ad9\u70b9",description:"\u786e\u8ba4\u4e4b\u540e\uff0c\u4f60\u4f1a\u5220\u9664\u6389 \u201c{name}\u201d \u7ad9\u70b9, \u5728\u4e0b\u9762\u8f93\u5165\u201c{name}\u201d\uff0c\u9009\u62e9\u5220\u9664\u6309\u94ae\u5b8c\u6210\u4fee\u6539\uff0c\u6216\u8005\u9009\u62e9\u53d6\u6d88\u6309\u94ae\u5173\u95ed\u5f53\u524d\u5f39\u7a97\u3002",confirm_desc:"\u8bf7\u8f93\u5165 {name} \u4ee5\u786e\u8ba4\u5220\u9664"}},domainAlias:{inputDomain:"\u624b\u52a8\u914d\u7f6e\u57df\u540d",nftDomain:"\u901a\u8fc7 DID Domain \u81ea\u52a8\u914d\u7f6e\u57df\u540d",showTipHint:"\u5982\u4f55\u914d\u7f6e\u57df\u540d\u89e3\u6790\uff1f",add:{title:"\u6dfb\u52a0\u989d\u5916\u57df\u540d",domainDescription:"\u8bf7\u586b\u5199\u6709\u6548\u7684\u57df\u540d",forceTip:"\u5f53\u57df\u540d\u5df2\u5b58\u5728\u65f6\u5f3a\u5236\u6dfb\u52a0",helperText:"\u5982\u679c\u8f93\u5165 HTTP \u6216\u8005 HTTPS URL, \u5219\u4f1a\u88ab\u81ea\u52a8\u8f6c\u6362\u4e3a\u57df\u540d\u3002",isDidDomainError:"\u8be5\u57df\u540d\u662f DID Domain, \u8bf7\u4f7f\u7528\u81ea\u52a8\u914d\u7f6e\u57df\u540d\u7684\u65b9\u5f0f\u6dfb\u52a0\u8be5\u57df\u540d\u3002"},addCustomDomain:{name:"\u81ea\u5b9a\u4e49\u57df\u540d"},addDomainNFT:{name:"NFT \u57df\u540d",showNFT:"\u81ea\u52a8\u914d\u7f6e\u57df\u540d",tips:"DID \u57df\u540d\u4f1a\u81ea\u52a8\u5b8c\u6210\u57df\u540d\u89e3\u6790\uff0c\u65e0\u9700\u624b\u52a8\u914d\u7f6e\uff0c\u5e76\u4e14\u5e94\u7528\u4f1a\u5728\u9700\u8981\u7684\u65f6\u5019\u81ea\u52a8\u66f4\u65b0\u8be5\u57df\u540d\u7684\u89e3\u6790\u8bb0\u5f55\u3002",connect:{title:"\u8bf7\u51fa\u793a\u57df\u540d NFT",scan:"\u7528 DID \u94b1\u5305\u626b\u63cf\u4e0b\u9762\u7684\u4e8c\u7ef4\u7801, \u51fa\u793a\u57df\u540d NFT",confirm:"\u5728\u60a8\u7684 DID \u94b1\u5305\u4e0a\u786e\u8ba4",success:"\u6388\u6743\u6210\u529f"},buyTip:"\u5982\u679c\u8fd8\u6ca1\u6709 DID \u57df\u540d NFT, ",buy:"\u73b0\u5728\u8d2d\u4e70!"},delete:{title:"\u5220\u9664",description:"\u5220\u9664\u522b\u540d\u5c06\u4f1a\u5220\u9664\u57df\u540d\u522b\u7528\u8be5\u7ad9\u70b9\u4e0b\u7684\u6240\u6709\u6d41\u91cf\u8f6c\u53d1\u89c4\u5219\uff0c\u662f\u5426\u7ee7\u7eed\uff1f"}},domainSecurity:{title:"\u7ad9\u70b9\u5b89\u5168\u8bbe\u7f6e",cors:{title:"CORS \u57df\u540d\u767d\u540d\u5355",description:'\u6b64\u767d\u540d\u5355\u663e\u793a\u7684\u58f0\u660e\u53ef\u4ee5\u5f80 {name} \u53d1\u9001\u8de8\u57df\u8bf7\u6c42\u7684\u57df\u540d, \u591a\u4e2a\u57df\u540d\u7528\u9017\u53f7\u5206\u9694, \u53ef\u4ee5\u7528 "*" \u6765\u5141\u8bb8\u4efb\u4f55\u57df\u540d\uff08\u6211\u4eec\u4e0d\u63a8\u8350\u8fd9\u4e48\u505a\uff09',domainInvalid:"\u8bf7\u8f93\u5165\u6709\u6548\u7684\u57df\u540d\u5217\u8868"}},rule:{add:{title:"\u6dfb\u52a0 URL",confirm:"\u6dfb\u52a0",pathPrefix:"\u8bf7\u6c42\u7684\u524d\u7f00\u662f\u4ec0\u4e48\uff1f",pathPrefixTip:"\u5982\u679c\u4f60\u586b\u5199\u4e86 '/prefix'\uff0c\u90a3\u4e48\u6240\u6709\u4ee5\u5176\u4e3a\u524d\u7f00\u7684\u8bf7\u6c42\u90fd\u4f1a\u88ab\u8f6c\u53d1\u5230\u914d\u7f6e\u7684\u57fa\u77f3\u7a0b\u5e8f",blocklet:"\u628a\u8bf7\u6c42\u4ee3\u7406\u5230\u54ea\u4e2a\u670d\u52a1\uff1f",port:"\u628a\u8bf7\u6c42\u4ee3\u7406\u5230\u54ea\u4e2a\u7aef\u53e3\uff1f",portTip:"\u8fd9\u91cc\u7684\u9ed8\u8ba4\u503c\u662f\u5e94\u7528\u9ed8\u8ba4\u76d1\u542c\u7684\u7aef\u53e3\uff0c\u5982\u679c\u4f60\u7684\u5e94\u7528\u4f1a\u542f\u7528\u591a\u4e2a\u7aef\u53e3\uff0c\u4f60\u53ef\u4ee5\u6839\u636e\u9700\u8981\u81ea\u5b9a\u4e49"},delete:{title:"\u5220\u9664\u89c4\u5219",description:"\u786e\u8ba4\u4e4b\u540e\uff0c\u4f60\u4f1a\u5220\u9664\u6389 \u201c{name}\u201d URL\u6620\u5c04, \u5728\u4e0b\u9762\u8f93\u5165\u201c{name}\u201d\uff0c\u9009\u62e9\u5220\u9664\u6309\u94ae\u5b8c\u6210\u4fee\u6539\uff0c\u6216\u8005\u9009\u62e9\u53d6\u6d88\u6309\u94ae\u5173\u95ed\u5f53\u524d\u5f39\u7a97\u3002",confirm_desc:"\u8bf7\u8f93\u5165 {name} \u4ee5\u786e\u8ba4\u5220\u9664",cancel:"\u53d6\u6d88"},update:{title:"\u66f4\u65b0\u89c4\u5219",confirm:"\u786e\u8ba4\uff0c\u66f4\u65b0\u5427",cancel:"\u53d6\u6d88"}},cert:{name:"\u8bc1\u4e66\u540d\u79f0",domain:"\u57df\u540d",commonName:"\u901a\u7528\u540d\u79f0",boundDomains:"\u57df\u540d",action:"\u64cd\u4f5c",expired:"\u5df2\u8fc7\u671f",leftDays:" \u5929 \u5269\u4f59",issuedOn:"\u7b7e\u53d1\u65f6\u95f4",expiryOn:"\u8fc7\u671f\u65f6\u95f4",fingerprintAlg:"\u6307\u7eb9\u7b97\u6cd5",validityPeriod:"\u6709\u6548\u671f",matchedSites:"\u5339\u914d\u7ad9\u70b9",source:"\u6dfb\u52a0\u65b9\u5f0f",upload:"\u624b\u52a8\u4e0a\u4f20",publicCertHelperText:"\u516c\u5f00\u8bc1\u4e66\u53ef\u4ee5\u4e0b\u8f7d",nonPublicCertHelperText:"\u975e\u516c\u5f00\u7684\u8bc1\u4e66\u4e0d\u80fd\u88ab\u4e0b\u8f7d",protectedCertHelperText:"\u53d7\u4fdd\u62a4\u7684\u8bc1\u4e66\u4e0d\u53ef\u4ee5\u7f16\u8f91",unprotectedCertHelperText:"\u4e0d\u53d7\u4fdd\u62a4\u7684\u8bc1\u4e66\u53ef\u4ee5\u7f16\u8f91",issuing:"\u6b63\u5728\u751f\u6210\u8bc1\u4e66",sourceTypes:{upload:"\u624b\u52a8\u4e0a\u4f20",lets_encrypt:"Let's Encrypt"},table:{nodata:"\u6682\u65e0\u6570\u636e"},delete:{title:"\u5220\u9664\u8bc1\u4e66",description:"\u786e\u8ba4\u5220\u9664\uff1f",confirm:"\u786e\u8ba4"},nginx:{title:"\u66f4\u65b0\u8bc1\u4e66",titleAdd:"\u6dfb\u52a0\u8bc1\u4e66",pem:"\u8bc1\u4e66\u6587\u4ef6",pemTip:'\u8bf7\u628a\u8bc1\u4e66\u6587\u4ef6\u62d6\u62fd\u5230\u8fd9\u91cc, \u5e94\u8be5\u4ee5 ".pem" \u6216 ".crt" \u7ed3\u5c3e',key:"\u8bc1\u4e66\u79c1\u94a5",keyTip:'\u8bf7\u628a\u8bc1\u4e66\u79c1\u94a5\u62d6\u62fd\u5230\u8fd9\u91cc\uff0c\u5e94\u8be5\u4ee5 ".pem" \u6216 ".key" \u7ed3\u5c3e',confirm:"\u63d0\u4ea4",cancel:"\u53d6\u6d88",invalidFile:"\u6240\u9009\u62e9\u7684\u6587\u4ef6\u65e0\u6548",empty:"\u5c1a\u672a\u9009\u62e9\u4efb\u4f55\u6587\u4ef6",sourceTypes:{upload:"\u901a\u8fc7\u4e0a\u4f20\u6587\u4ef6",lets_encrypt:"\u901a\u8fc7 Let's Encrypt \u81ea\u52a8\u751f\u6210"},source:"\u4f86\u6e90"},detail:{title:"\u8bc1\u4e66\u8be6\u60c5"},genLetsEncryptCert:{title:"\u751f\u6210 Let's Encrypt \u8bc1\u4e66",dnsTip:"\u8bf7\u786e\u4fdd\u8be5\u57df\u540d\u5df2\u7ecf\u89e3\u6790\u5230\u4e86\u5f53\u524d\u8282\u70b9\u3002",description:"\u6dfb\u52a0\u8bc1\u4e66\u4f1a\u8ba9\u670d\u52a1\u53d8\u5f97\u66f4\u5b89\u5168\uff0c\u8282\u70b9\u4f1a\u5728\u8bc1\u4e66\u8fc7\u671f\u524d\u81ea\u52a8\u66f4\u65b0\u8bc1\u4e66\u3002"}},gateway:{reqLimit:{status:{true:"\u5df2\u542f\u52a8",false:"\u5df2\u5173\u95ed"},switchLabel:"\u8bf7\u6c42\u9650\u6d41",rate:"\u9650\u6d41\u901f\u7387({rate} \u8bf7\u6c42/\u79d2)",ipHeaderLabel:"\u81ea\u5b9a\u4e49\u5ba2\u6237\u7aef IP \u5934\u90e8(\u53ef\u9009)",ipHeaderDesc:"\u5982\u679c\u5e94\u7528Server \u8fd0\u884c\u5728\u4e00\u4e9b\u4ee3\u7406\u540e\u9762\uff0c\u53ef\u4ee5\u5728\u8fd9\u91cc\u8bbe\u7f6e\u5ba2\u6237\u7aef\u771f\u5b9e IP \u7684\u5934\u90e8\uff1b\u53ef\u9009\uff0c\u5982\u679c\u4e0d\u586b\u5c06\u4f7f\u7528\u9ed8\u8ba4\u503c\u3002"},cacheEnabled:{switchLabel:"\u542f\u7528\u7f51\u5173\u7f13\u5b58"}}},noMatch:{desc:"\u6211\u4eec\u627e\u4e0d\u5230\u60a8\u8981\u627e\u7684\u9875\u9762"},health:{connectionErrorTip:"\u8282\u70b9\u670d\u52a1\u8282\u70b9\u7684\u8fde\u63a5\u5df2\u7ecf\u65ad\u5f00\uff0c\u53ef\u80fd\u662f\u51fa\u73b0\u4e86\u7f51\u7edc\u5f02\u5e38\u6216\u8005\u8282\u70b9\u670d\u52a1\u8282\u70b9\u6545\u969c",connectionRecoveryTip:"\u8282\u70b9\u670d\u52a1\u8282\u70b9\u7684\u8fde\u63a5\u521a\u521a\u6062\u590d\u6b63\u5e38",connectionStoppedTip:"\u8282\u70b9\u670d\u52a1\u8282\u70b9\u5df2\u7ecf\u88ab\u505c\u6b62",wrongAccessUrlTip:"\u8282\u70b9\u8bbf\u95ee\u5730\u5740\u9519\u8bef\uff0c\u8bf7\u4f7f\u7528\u6b63\u786e\u7684\u8bbf\u95ee\u5730\u5740"},debug:{title:"\u60a8\u7684\u8282\u70b9\u5df2\u542f\u52a8\u5e76\u6b63\u5728\u8fd0\u884c"},team:{invite:"\u9080\u8bf7",add:"\u6dfb\u52a0",member:{name:"\u59d3\u540d",passport:"\u901a\u884c\u8bc1",passports:"\u901a\u884c\u8bc1",lastLogin:"\u4e0a\u6b21\u767b\u5f55",lastLoginIp:"\u4e0a\u6b21\u767b\u9646 IP",source:"\u6ce8\u518c\u6765\u6e90",source_derived:"OAuth \u8d26\u6237\u6d3e\u751f",source_wallet:"DID Wallet",filter:"\u6761\u4ef6\u7b5b\u9009",forbidLogin:"\u7981\u6b62\u767b\u5f55",forbidLoginDescription:"\u8be5\u6210\u5458\u5c06\u65e0\u6cd5\u767b\u5f55\u6b64\u5e94\u7528",allowLogin:"\u5141\u8bb8\u767b\u5f55",allowLoginDescription:"\u8be5\u6210\u5458\u5c06\u53ef\u4ee5\u767b\u5f55\u6b64\u5e94\u7528",deleteUser:"\u5220\u9664\u6210\u5458",deleteUserDescription:"\u786e\u8ba4\u5220\u9664\u6210\u5458 \u201c{name}\u201d\uff1f",updateRole:"\u66f4\u65b0\u89d2\u8272",revokePassport:"\u64a4\u9500\u901a\u884c\u8bc1",revokePassportDescription:"\u901a\u884c\u8bc1\u4e00\u65e6\u88ab\u64a4\u9500\uff0c\u901a\u884c\u8bc1\u7684\u6301\u6709\u8005\u5c06\u65e0\u6cd5\u7528\u5176\u767b\u5f55\uff0c\u662f\u5426\u7ee7\u7eed\uff1f",enablePassport:"\u542f\u7528\u901a\u884c\u8bc1",enablePassportDescription:"\u64a4\u9500\u7684\u901a\u884c\u8bc1\u4e00\u65e6\u88ab\u91cd\u65b0\u542f\u7528\uff0c\u901a\u884c\u8bc1\u6301\u6709\u8005\u5c06\u53ef\u4ee5\u7ee7\u7eed\u767b\u9646\u5e94\u7528\uff0c\u662f\u5426\u7ee7\u7eed\uff1f",passportPermissionTitle:"\u8be5\u901a\u884c\u8bc1\u5177\u6709\u4ee5\u4e0b\u6743\u9650\uff1a",search:"\u641c\u7d22\u6210\u5458",hideBlockedMember:"\u9690\u85cf\u88ab\u7981\u6b62\u7684\u6210\u5458",inviteDialog:{createInviteLink:"\u751f\u6210\u9080\u8bf7\u94fe\u63a5",createSuccessTip:"\u521b\u5efa\u9080\u8bf7\u94fe\u63a5\u6210\u529f\uff0c\u8bf7\u590d\u5236\u5e76\u53d1\u9001\u7ed9\u88ab\u9080\u8bf7\u4eba\u3002\u8be5\u94fe\u63a5\u53ea\u80fd\u4f7f\u7528\u4e00\u6b21\uff0c\u5e76\u5c06\u5728 {expireDate} \u8fc7\u671f"},error:{passportEmpty:"\u901a\u884c\u8bc1\u4e0d\u80fd\u4e3a\u7a7a"},connectedAccounts:"\u5df2\u8fde\u63a5\u8d26\u53f7",connections:"\u8d26\u53f7\u7ed1\u5b9a",federated:"\u7edf\u4e00\u767b\u5f55",switch:{did:"\u6dfb\u52a0\u8d26\u6237",profile:"\u66f4\u65b0\u8eab\u4efd",passport:"\u5207\u6362\u901a\u884c\u8bc1"},settings:{notification:"\u901a\u77e5\u8bbe\u7f6e",email:"\u5f53\u6709\u52a8\u6001\u65f6\u7ed9\u6211\u53d1\u9001\u90ae\u4ef6",wallet:"\u5f53\u6709\u52a8\u6001\u65f6\u7ed9\u6211\u53d1\u9001\u94b1\u5305\u901a\u77e5",phone:"\u5f53\u6709\u52a8\u6001\u65f6\u7ed9\u6211\u53d1\u9001\u77ed\u4fe1",webhook:"\u5916\u90e8\u94a9\u5b50",add:"\u6dfb\u52a0\u65b0\u94a9\u5b50",url:"\u81ea\u5b9a\u4e49 URL",slack:"Slack \u901a\u77e5",tested:"\u6d4b\u8bd5\u6d88\u606f\u5df2\u7ecf\u53d1\u9001"}},transferNode:{name:"\u8f6c\u79fb\u6240\u6709\u8005",inviteDialog:{createInviteLink:"\u751f\u6210\u9080\u8bf7\u94fe\u63a5",title:"\u8f6c\u79fb\u8282\u70b9",tips:{progress:"\u8f6c\u79fb\u8282\u70b9\u9700\u8981\u5bf9\u65b9\u63a5\u53d7\u540e\u624d\u80fd\u5b8c\u6210\u8f6c\u79fb\u64cd\u4f5c\uff0c\u5bf9\u65b9\u4e00\u65e6\u63a5\u53d7\uff0c\u65e0\u6cd5\u518d\u4f7f\u7528\u5f53\u524d\u51ed\u636e\u767b\u5f55\u8282\u70b9\u3002",newOwnerPermissions:"\u65b0 Owner \u5c06\u6709\u6743\u7ba1\u7406\u6210\u5458\u3001\u901a\u884c\u8bc1\uff0c\u4ee5\u53ca\u5e94\u7528\u7b49\u6240\u6709\u64cd\u4f5c\u3002",revoke:'\u5982\u679c\u60f3\u6536\u56de\u8f6c\u79fb\u9080\u8bf7\uff0c\u5728"\u56e2\u961f -> \u6210\u5458 -> \u9080\u8bf7\u4e2d"\u9875\u9762\u5220\u9664\u9080\u8bf7\u94fe\u63a5\u5373\u53ef\u3002'},createSuccessTip:"\u521b\u5efa\u9080\u8bf7\u94fe\u63a5\u6210\u529f\uff0c\u8bf7\u590d\u5236\u5e76\u53d1\u9001\u7ed9\u88ab\u9080\u8bf7\u4eba\u3002\u8be5\u94fe\u63a5\u53ea\u80fd\u4f7f\u7528\u4e00\u6b21\uff0c\u5e76\u5c06\u5728 {expireDate} \u8fc7\u671f"},delegateDialog:{title:"\u9700\u8981\u6388\u6743",scan:"\u7528 DID \u94b1\u5305\u626b\u63cf\u4e0b\u9762\u7684\u4e8c\u7ef4\u7801\uff0c\u6388\u6743\u8282\u70b9\u8f6c\u8ba9\u8282\u70b9\u7684\u6240\u6709\u6743 NFT.",confirm:"\u5728\u60a8\u7684 DID \u94b1\u5305\u4e0a\u786e\u8ba4",success:"\u6388\u6743\u6210\u529f"}},transferApp:{name:"\u8f6c\u79fb\u6240\u6709\u8005",transferDialog:{title:"\u8f6c\u79fb\u5e94\u7528",tips:{progress:"\u8f6c\u79fb\u5e94\u7528\u9700\u8981\u5bf9\u65b9\u63a5\u53d7\u540e\u624d\u80fd\u5b8c\u6210\u8f6c\u79fb\u64cd\u4f5c\uff0c\u5bf9\u65b9\u4e00\u65e6\u63a5\u53d7\uff0c\u65e0\u6cd5\u518d\u4f7f\u7528\u5f53\u524d\u5e94\u7528\u6240\u6709\u8005\u51ed\u636e\u767b\u5f55\u5e94\u7528\u3002",newOwnerPermissions:"\u65b0 Owner \u5c06\u6709\u6743\u7ba1\u7406\u6210\u5458\u3001\u901a\u884c\u8bc1\uff0c\u4ee5\u53ca\u8bbe\u7f6e\u7b49\u6240\u6709\u64cd\u4f5c\u3002"},createTransferLink:"\u751f\u6210\u8f6c\u79fb\u94fe\u63a5",createSuccessTip1:'\u521b\u5efa\u8f6c\u79fb\u94fe\u63a5\u6210\u529f\uff0c\u88ab\u9080\u8bf7\u4eba\u5fc5\u987b\u4f7f\u7528 <a style="color: rgb(29, 193, 199)" target="_blank" href="https://www.didwallet.io/">DID Wallet</a> \u63a5\u6536\u5e94\u7528\u6240\u6709\u6743',createSuccessTip2:"\u8bf7\u590d\u5236\u5e76\u53d1\u9001\u7ed9\u88ab\u9080\u8bf7\u4eba\u3002\u8be5\u94fe\u63a5\u53ea\u80fd\u4f7f\u7528\u4e00\u6b21\uff0c\u5e76\u5c06\u5728 {expireDate} \u8fc7\u671f\u3002\u4f60\u7684\u8f6c\u79fb\u94fe\u63a5\u53ea\u4f1a\u5c55\u793a\u4e00\u6b21\uff0c\u5173\u95ed\u6b64\u7a97\u53e3\u540e\u5c06\u65e0\u6cd5\u518d\u6b21\u67e5\u770b",createSuccessTip3:"\u8f6c\u79fb\u6210\u529f\u4e4b\u540e\u5e94\u7528\u4f1a\u81ea\u52a8\u91cd\u542f\u4ee5\u4f7f\u53d8\u66f4\u751f\u6548",link:"\u9080\u8bf7\u94fe\u63a5",iKnow:"\u6211\u5df2\u590d\u5236\u4fdd\u5b58\u597d\u8be5\u94fe\u63a5"},connectDialog:{title:"\u9700\u8981\u6388\u6743",scan:"\u7528 DID \u94b1\u5305\u626b\u63cf\u4e0b\u9762\u7684\u4e8c\u7ef4\u7801\uff0c\u6388\u6743\u5e94\u7528\u8f6c\u8ba9\u6240\u6709\u6743",confirm:"\u5728\u60a8\u7684 DID \u94b1\u5305\u4e0a\u786e\u8ba4",success:"\u6388\u6743\u6210\u529f"},receiveDialog:{title:"\u63a5\u6536\u5e94\u7528\u7a0b\u5e8f\u6240\u6709\u6743",scan:"\u7528 DID \u94b1\u5305\u626b\u63cf\u4e0b\u9762\u7684\u4e8c\u7ef4\u7801\uff0c\u83b7\u5f97\u5e94\u7528\u7a0b\u5e8f\u6240\u6709\u6743\u3002",confirm:"\u5728\u60a8\u7684 DID \u94b1\u5305\u4e0a\u786e\u8ba4",success:"\u6210\u529f\u83b7\u5f97\u6240\u6709\u6743"},successTitle:"\u4f60\u5df2\u6210\u4e3a\u5e94\u7528\u7684\u6240\u6709\u8005",visitDashboard:"\u8bbf\u95ee\u5e94\u7528\u63a7\u5236\u53f0"},permission:{create:{title:"\u521b\u5efa\u6743\u9650",description:"\u683c\u5f0f\uff1a<\u64cd\u4f5c>_<\u8d44\u6e90>\n\u4e3e\u4f8b\uff1a'query_user', 'mutate_user'"},update:{title:"\u66f4\u65b0\u6743\u9650"},delete:{title:"\u5220\u9664\u6743\u9650",description:"\u786e\u8ba4\u5220\u9664 {name}\uff1f\uff08\u89d2\u8272\u4e2d\u5173\u8054\u7684 {name} \u5c06\u4f1a\u540c\u65f6\u88ab\u5220\u9664\uff09"},error:{actionEmpty:"\u64cd\u4f5c\u4e0d\u80fd\u4e3a\u7a7a",resourceEmpty:"\u8d44\u6e90\u4e0d\u80fd\u4e3a\u7a7a",permissionTooLong:"\u6743\u9650\u4e0d\u80fd\u8d85\u8fc7 {length} \u4e2a\u5b57\u7b26",descriptionTooLong:"\u63cf\u8ff0\u4e0d\u80fd\u8d85\u8fc7 {length} \u4e2a\u5b57\u7b26"}},passport:{create:{title:"\u521b\u5efa\u901a\u884c\u8bc1",titleTip:"\u540d\u79f0\u521b\u5efa\u540e\u4e0d\u53ef\u4fee\u6539\uff0c\u5efa\u8bae\u572814\u4e2a\u5b57\u6bcd\u5185"},bind:{title:"\u7ed1\u5b9a",roleTip:"\u7ed1\u5b9a\u540e\u5c06\u4f1a\u83b7\u5f97\u9009\u5b9a\u7684\u901a\u884c\u8bc1\u7684\u6240\u6709\u6743\u9650",permissionTip:"\u7ed1\u5b9a\u540e\u5c06\u4f1a\u83b7\u5f97\u9009\u5b9a\u7684\u6743\u9650",transferLeftTitle:"\u6240\u6709\u6743\u9650",transferRightTitle:"\u5df2\u6dfb\u52a0\u6743\u9650"},delete:{title:"\u5220\u9664\u901a\u884c\u8bc1",description:"\u5220\u9664\u540e\uff0c\u7528\u6237\u6301\u6709\u7684\u6b64\u901a\u884c\u8bc1\u7684\u5c06\u5931\u53bb\u6240\u6709\u6743\u9650\uff0c\u662f\u5426\u7ee7\u7eed\uff1f"},error:{titleEmpty:"\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a",titleTooLong:"\u540d\u79f0\u4e0d\u80fd\u8d85\u8fc7 {length} \u4e2a\u5b57\u7b26",descriptionEmpty:"\u63cf\u8ff0\u4e0d\u80fd\u4e3a\u7a7a"},issuance:{pending:"\u5f85\u9886\u53d6",create:{title:"\u751f\u6210\u94fe\u63a5"},delete:{title:"\u5220\u9664\u9886\u53d6\u94fe\u63a5",description:"\u786e\u8ba4\u5220\u9664 {link}\uff1f"}},issue:"\u9881\u53d1\u901a\u884c\u8bc1",disableIssuance:"\u7981\u6b62\u9881\u53d1\u901a\u884c\u8bc1",enableIssuance:"\u5141\u8bb8\u9881\u53d1\u901a\u884c\u8bc1",disableIssuanceTip:"\u201c\u9881\u53d1\u901a\u884c\u8bc1\u201d\uff0c\u201c\u9080\u8bf7\u6210\u5458\u201d \u7b49\u64cd\u4f5c\u5c06\u88ab\u7981\u6b62",enableIssuanceTip:"\u201c\u9881\u53d1\u901a\u884c\u8bc1\u201d\uff0c\u201c\u9080\u8bf7\u6210\u5458\u201d \u7b49\u64cd\u4f5c\u5c06\u88ab\u5141\u8bb8",trustedPassportIssuers:"\u4fe1\u4efb\u7684\u901a\u884c\u8bc1\u9881\u53d1\u8005",trustedIssuers:"\u4fe1\u4efb\u7684\u9881\u53d1\u8005",trustedFactories:"\u4fe1\u4efb\u7684 NFT \u96c6\u5408",trustedFactoriesTip:"\u7ba1\u7406\u4fe1\u4efb\u7684 NFT \u96c6\u5408\uff0c\u6301\u6709\u8fd9\u4e9b\u96c6\u5408\u4e2d NFT \u7684\u7528\u6237\u53ef\u4ee5\u9886\u53d6\u6307\u5b9a\u901a\u884c\u8bc1",searchFactoryAddress:"\u641c\u7d22\u96c6\u5408 DID",configFactories:"\u914d\u7f6e\u4fe1\u4efb\u7684 NFT \u96c6\u5408",configFactoriesTip:"\u5141\u8bb8\u7528\u6237\u7528\u7279\u5b9a NFT \u6765\u6362\u53d6\u901a\u884c\u8bc1",factoryAddress:"NFT \u96c6\u5408 DID",factory404:"NFT \u96c6\u5408\u672a\u627e\u5230",factoryAddressTip:"NFT \u96c6\u5408\u5fc5\u987b ArcBlock \u4e3b\u94fe\u4e0a\u7684",role:"\u901a\u884c\u8bc1\u7c7b\u578b",ttl:"\u901a\u884c\u8bc1\u8fc7\u671f\u7b56\u7565",ttlNever:"\u6c38\u4e0d\u8fc7\u671f",ttlMint:"\u4ece\u8d2d\u4e70\u65e5\u671f\u7b97\u8d77",ttlExchange:"\u4ece\u5151\u6362\u65e5\u671f\u7b97\u8d77",ttlTip:'"365d" \u610f\u601d\u662f 365 \u5929, \u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u7c7b\u4f3c "30 days" \u6216 "24h" \u7684',ttlNeverTip:"\u901a\u884c\u8bc1\u5c06\u6c38\u4e45\u6709\u6548\u76f4\u5230\u88ab\u540a\u9500",ttlMintTip:"\u901a\u884c\u8bc1\u6709\u6548\u671f\u5c06\u4ece NFT \u8d2d\u4e70\u65f6\u95f4\u5f00\u59cb\u8ba1\u7b97\uff0c\u76f4\u5230\u6307\u5b9a\u7684\u65f6\u95f4\u6216\u8005\u88ab\u540a\u9500",ttlExchangeTip:"\u901a\u884c\u6b63\u6709\u6548\u671f\u4ece\u7528\u6237\u5151\u6362\u65f6\u95f4\u5f00\u59cb\u8ba1\u7b97\uff0c\u76f4\u5230\u6307\u5b9a\u7684\u65f6\u95f4\u6216\u8005\u88ab\u540a\u9500",validUntil:"\u6709\u6548\u671f\u81f3: {date}",externalPassport:"\u5916\u90e8\u7684\u901a\u4fe1\u8bc1",notTrustedIssuerTip:"\u8be5\u901a\u884c\u8bc1\u65e0\u6cd5\u4f7f\u7528\uff0c\u56e0\u4e3a\u9881\u53d1\u8005\u672a\u5728\u4fe1\u4efb\u7684\u9881\u53d1\u8005\u5217\u8868\u4e2d",issuerDid:"\u9881\u53d1\u8005 DID",addNodeToTrustedIssuers:"\u6dfb\u52a0\u5f53\u524d node \u4e3a\u4fe1\u4efb\u7684\u901a\u884c\u8bc1\u9881\u53d1\u8005",revoked:"\u64a4\u9500",noPermission:"\u6ca1\u6709\u6743\u9650\u6267\u884c\u6b64\u64cd\u4f5c",shouldNotDeleteCurrent:"\u65e0\u6cd5\u5220\u9664\u5f53\u524d\u6b63\u5728\u4f7f\u7528\u7684\u901a\u884c\u8bc1",mappingRule:"\u6620\u5c04\u89c4\u5219",defaultRule:"\u9ed8\u8ba4\u89c4\u5219",search:"\u641c\u7d22\u901a\u884c\u8bc1",searchIssuerDid:"\u641c\u7d22\u9881\u53d1\u8005 DID",issueBy:"\u7531 {name} \u9881\u53d1",configColor:"\u8bbe\u7f6e\u901a\u884c\u8bc1\u989c\u8272",configColorTip:"\u901a\u8fc7\u8c03\u8272\u76d8\u6765\u81ea\u5b9a\u4e49\u901a\u884c\u8bc1\u7684\u4e3b\u8272\u8c03",color:"\u901a\u884c\u8bc1\u989c\u8272",description:"\u4f7f\u7528\u6b64\u901a\u884c\u8bc1\u4ee5 {title} \u8fde\u63a5 {teamName}"},inviting:{link:"\u9080\u8bf7\u94fe\u63a5",inviter:"\u9080\u8bf7\u4eba",delete:{title:"\u5220\u9664\u9080\u8bf7\u94fe\u63a5",description:"\u786e\u8ba4\u5220\u9664 {link}\uff1f"},disabledTip:"\u9080\u8bf7\u529f\u80fd\u672a\u5f00\u542f"},whoCanAccess:{all:{title:"\u6240\u6709\u4eba\u53ef\u8bbf\u95ee"},owner:{title:"\u53ea\u6709\u6211\u81ea\u5df1\u53ef\u8bbf\u95ee"},invited:{title:"\u53ea\u6709\u88ab\u9080\u8bf7\u7684\u4eba\u53ef\u4ee5\u8bbf\u95ee"}}},launcher:{provider:"\u4e91\u670d\u52a1\u5546",adminUrl:"Launcher \u7ba1\u7406\u9875\u9762"},session:{forbidLogin:"\u4f60\u5df2\u88ab\u7981\u6b62\u8bbf\u95ee\u6b64\u8282\u70b9"},launchBlocklet:{appInfo:"\u5e94\u7528\u4fe1\u606f",appInfoDesc:"\u786e\u8ba4\u5e94\u7528\u4fe1\u606f",author:"\u5e94\u7528\u4f5c\u8005\uff1a{author}",setup:"\u8bbe\u7f6e\u5e94\u7528",redirect:"\u8df3\u8f6c",alreadyRunning:"\u5e94\u7528 {name} \u5df2\u7ecf\u8fd0\u884c\u5728\u5f53\u524d\u8282\u70b9",alreadyInstalled:"\u5e94\u7528 {name} \u5df2\u7ecf\u5b89\u88c5\u5230\u5f53\u524d\u8282\u70b9\uff0c\u65e0\u9700\u91cd\u590d\u5b89\u88c5",alreadyExists:"\u8be5\u5e94\u7528\u5df2\u7ecf\u5b58\u5728\uff0c\u8df3\u8f6c\u4e2d...",launchSuccess:"{appName} \u5df2\u7ecf\u542f\u52a8\u6210\u529f\uff01",nextStep:"\u4e0b\u4e00\u6b65",purchased:"\u5df2\u8d2d\u4e70",purchase:"\u8d2d\u4e70",agreeAll:"\u540c\u610f\u5e76\u7ee7\u7eed",agreement:"\u8bb8\u53ef\u534f\u8bae",installing:" \u6b63\u5728\u8282\u70b9 {serverName} \u4e0a\u5b89\u88c5 {appName}\uff0c\u8bf7\u7a0d\u7b49\u7247\u523b",redirecting:"\u5b89\u88c5\u6210\u529f\uff0c\u73b0\u6b63\u5728\u542f\u52a8 {appName}",start:"\u542f\u52a8\u4e2d",launch:"\u5b89\u88c5\u5e94\u7528\u5230\u8282\u70b9",installSuccess:"\u5e94\u7528\u5df2\u7ecf\u6210\u529f\u5b89\u88c5\u5230\u8282\u70b9 {serverName} \u5e76\u542f\u52a8",openInRegistry:"\u5728\u5e94\u7528\u5546\u5e97\u4e2d\u6253\u5f00",subTitle:"\u51c6\u5907\u5728\u8282\u70b9 {serverName} \u4e0a\u5b89\u88c5 {appName}",installingSubTitle:"\u6b63\u5728\u5b89\u88c5 {appName}",access:"\u6253\u5f00\u5e94\u7528",viewApplication:"\u67e5\u770b\u5e94\u7528",newVersion:"\u65b0\u7248\u672c",newVersionDesc:"\u5e94\u7528\u5df2\u7ecf\u5b58\u5728\uff0c\u4f46\u5f53\u524d\u7248\u672c\u53ef\u66f4\u65b0",later:"\u7a0d\u540e",upgradeNow:"\u73b0\u5728\u66f4\u65b0",introduction:"\u7b80\u4ecb",welcome:"\u6b22\u8fce\u6765\u5230\u5e94\u7528\u542f\u52a8\u5411\u5bfc",accept:"\u8bb8\u53ef\u534f\u8bae",license:"\u5e94\u7528\u8bb8\u53ef",next:"\u540c\u610f\u534f\u8bae\u5e76\u7ee7\u7eed",purchaseApp:"\u8d2d\u4e70\u5e94\u7528",setupAppDesc:"\u521d\u59cb\u5316\u4f60\u7684\u5e94\u7528",launched:"\u542f\u52a8",confirmInstall:"\u786e\u8ba4\u5b89\u88c5",dialog:{title:"\u6210\u4e3a\u5e94\u7528\u6240\u6709\u8005",nftFreeDescription:"\u8bf7\u63d0\u7a7a\u95f4\u8d2d\u4e70\u51ed\u8bc1\u5e76\u521b\u5efa\u5e94\u7528\u8d26\u6237\u4ee5\u7ee7\u7eed",nftPaidDescription:"\u8bf7\u63d0\u7a7a\u95f4\u8d2d\u4e70\u51ed\u8bc1\u3001\u5e94\u7528\u8d2d\u4e70\u51ed\u8bc1\u3001\u521b\u5efa\u5e94\u7528\u8d26\u6237\u4ee5\u7ee7\u7eed",freeDescription:"\u8bf7\u521b\u5efa\u5e94\u7528\u8d26\u6237\u4ee5\u7ee7\u7eed",paidDescription:"\u8bf7\u63d0\u4f9b\u5e94\u7528\u8d2d\u4e70\u51ed\u8bc1\u3001\u5e76\u521b\u5efa\u5e94\u7528\u8d26\u6237\u4ee5\u7ee7\u7eed",confirm:"\u5728 DID \u94b1\u5305\u4e0a\u786e\u8ba4",success:"\u6388\u6743\u6210\u529f",authorizationTimeout:"\u6388\u6743\u8d85\u65f6"},waiting:{verifying:"\u9a8c\u8bc1\u5e94\u7528\u5143\u6570\u636e...",downloading:"\u4e0b\u8f7d\u5e94\u7528\u5305...",extracting:"\u63d0\u53d6\u5e94\u7528\u5305\u7684\u6570\u636e...",downloadingComponent:"\u4e0b\u8f7d {name}",extractingComponent:"\u63d0\u53d6 {name}",installing:"\u5b89\u88c5\u5e94\u7528\u7ec4\u4ef6...",installed:"\u5df2\u5b89\u88c5",starting:"\u6b63\u5728\u542f\u52a8\u5e94\u7528...",done:"\u7b49\u5f85\u5e94\u7528\u5c31\u7eea..."},error:{loadMetaFailed:"\u83b7\u53d6\u5e94\u7528\u4fe1\u606f\u51fa\u9519",appMetaNotFound:"\u6ca1\u6709\u627e\u5230\u8be5\u5e94\u7528\u7684\u4fe1\u606f",downloadFailed:"\u4e0b\u8f7d\u5e94\u7528\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5",installFailed:"\u5b89\u88c5\u5e94\u7528\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5",startFailed:"\u542f\u52a8\u5e94\u7528\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5",launchFailed:"\u542f\u52a8\u5e94\u7528\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5",installedButStopped:"\u5e94\u7528\u5b89\u88c5\u6210\u529f\uff0c\u4f46\u662f\u65e0\u6cd5\u542f\u52a8\uff0c\u89e3\u51b3\u542f\u52a8\u95ee\u9898\u4e4b\u540e\u540e\u53ef\u624b\u52a8\u542f\u52a8",installedButError:"\u5e94\u7528\u5df2\u7ecf\u5b89\u88c5\uff0c\u4f46\u662f\u8fd0\u884c\u51fa\u9519\u4e86",restoreFailed:"\u8fd8\u539f\u5e94\u7528\u5931\u8d25,\u8bf7\u91cd\u8bd5",resourceBlocklet:"\u8d44\u6e90 Blocklet \u65e0\u6cd5\u4f5c\u4e3a\u5e94\u7528\u88ab\u5b89\u88c5\uff0c\u4f60\u53ef\u4ee5\u5c06\u8be5 Blocklet \u6302\u8f7d\u5230\u73b0\u6709\u7684\u5e94\u7528\u4e2d\u3002"},steps:{introduction:"\u7b80\u4ecb",installApp:"\u5b89\u88c5\u5e94\u7528",purchaseSpace:"\u9009\u8d2d\u7a7a\u95f4",prepareSpace:"\u51c6\u5907\u7a7a\u95f4"},installRelatedDependencies:"\u5b89\u88c5\u76f8\u5173\u4f9d\u8d56",installRelatedComponents:"\u5b89\u88c5\u76f8\u5173\u7ec4\u4ef6"},issuePassport:{title:"\u9886\u53d6\u901a\u884c\u8bc1",description:"\u4f7f\u7528 DID \u94b1\u5305\u9886\u53d6 {name} \u9881\u53d1\u7684\u901a\u884c\u8bc1",dialog:{confirm:"\u5728\u60a8\u7684 DID \u94b1\u5305\u4e0a\u786e\u8ba4",success:"\u901a\u884c\u8bc1\u5df2\u6210\u529f\u6dfb\u52a0\u5230\u60a8\u7684 DID \u94b1\u5305",loginWithPassport:"\u7528\u6b64\u901a\u884c\u8bc1\u8fde\u63a5",scan:"\u4f7f\u7528\u60a8\u7684DID\u94b1\u5305\u6765\u7533\u9886\u62a4\u7167"}},lostPassport:{title:"\u627e\u56de\u901a\u884c\u8bc1",description:"{name} \u6240\u6709\u8005\u53ef\u626b\u63cf\u4e8c\u7ef4\u7801\u627e\u56de\u901a\u884c\u8bc1\uff0c\u6210\u5458\u8bf7\u8054\u7cfb\u6240\u6709\u8005\u91cd\u65b0\u9881\u53d1\u901a\u884c\u8bc1",dialog:{title:"\u627e\u56de\u901a\u884c\u8bc1",scan:"\u7528\u60a8\u7684 DID \u94b1\u5305\u626b\u63cf\u4e0b\u9762\u7684\u4e8c\u7ef4\u7801",confirm:"\u5728\u60a8\u7684 DID \u94b1\u5305\u4e0a\u786e\u8ba4",success:"\u901a\u884c\u8bc1\u5df2\u6210\u529f\u6dfb\u52a0\u5230\u60a8\u7684 DID \u94b1\u5305"},return:"\u4f7f\u7528\u901a\u884c\u8bc1\u767b\u5f55",selectPassport:"\u9009\u62e9\u901a\u884c\u8bc1",receivePassport:"\u9886\u53d6\u901a\u884c\u8bc1"},invite:{message:"{name} \u9080\u8bf7\u4f60\u6210\u4e3a {dapp} \u7684 {role}",success:"\u4f60\u5df2\u6210\u529f\u52a0\u5165 {dapp}",receive:"\u9886\u53d6\u901a\u884c\u8bc1",validUntil:"\u8fc7\u671f\u65f6\u95f4\uff1a",viewPermission:"\u67e5\u770b\u6743\u9650",emptyPermission:"\u6ca1\u6709\u6743\u9650",open:"\u6253\u5f00",description:{step1:"\u4e0b\u8f7d\u5e76\u8bbe\u7f6e\u597d\u60a8\u7684 {wallet}",step2:"\u70b9\u51fb\u4e0a\u9762\u7684\u6309\u94ae\u9886\u53d6\u901a\u884c\u8bc1",step3:"\u4f7f\u7528\u901a\u884c\u8bc1\u767b\u5f55 {dapp}"},transferNFTDialog:{title:"\u63a5\u53d7\u8282\u70b9 {name}",scan:"\u8fde\u63a5\u8282\u70b9\u542f\u52a8\u5668\uff0c\u4ee5\u5b8c\u6210\u8282\u70b9\u7684\u63a5\u6536\u3002",confirm:"\u8bf7\u5728 DID \u94b1\u5305\u4e0a\u786e\u8ba4",success:"\u8fde\u63a5\u6210\u529f\uff0c\u7b49\u5f85\u786e\u8ba4\u63a5\u6536\u8282\u70b9\u3002"}},receive:{dialog:{title:"\u8bf7\u8fde\u63a5 DID \u94b1\u5305\u9886\u53d6\u901a\u884c\u8bc1",scan:"\u7528\u60a8\u7684 DID \u94b1\u5305\u626b\u63cf\u4e0b\u9762\u7684\u4e8c\u7ef4\u7801\u9886\u53d6\u901a\u884c\u8bc1",confirm:"\u5728\u60a8\u7684 DID \u94b1\u5305\u4e0a\u786e\u8ba4",success:"\u8fde\u63a5\u6210\u529f"}},navigation:{actionFailed:"\u64cd\u4f5c\u5931\u8d25",navigation:"\u5bfc\u822a",form:{title:"\u6807\u9898",titlePlaceholder:"\u8bf7\u8f93\u5165\u5bfc\u822a\u6807\u9898",titleTooLong:"\u6807\u9898\u6700\u957f\u4e3a {len}",icon:"\u56fe\u6807",iconPlaceholder:"\u8bf7\u8f93\u5165\u5bfc\u822a\u56fe\u6807",invalidIcon:"\u5bfc\u822a\u56fe\u6807\u4e0d\u5b58\u5728",findMoreIcon:"\u627e\u5230\u66f4\u591a\u56fe\u6807",link:"\u94fe\u63a5",linkPlaceholder:"\u8bf7\u8f93\u5165\u5bfc\u822a\u94fe\u63a5",invalidLink:"\u94fe\u63a5\u683c\u5f0f\u4e0d\u6b63\u786e",component:"\u7ec4\u4ef6",componentPlaceholder:"\u8bf7\u9009\u62e9\u5bfc\u822a\u6240\u5c5e\u7684\u7ec4\u4ef6",role:"\u89d2\u8272",rolePlaceholder:"\u8bf7\u9009\u62e9\u5bfc\u822a\u53ef\u89c1\u7684\u89d2\u8272",locale:"\u8bed\u8a00",localePlaceholder:"\u8bf7\u8f93\u5165\u8981\u6dfb\u52a0\u7684\u591a\u8bed\u8a00\u6807\u8bc6\u7b26",localeExists:"{value} \u5df2\u7ecf\u5b58\u5728"},action:{add:"\u589e\u52a0\u5bfc\u822a",addSub:"\u589e\u52a0\u5b50\u5bfc\u822a",edit:"\u7f16\u8f91\u5bfc\u822a",hide:"\u9690\u85cf\u5bfc\u822a",show:"\u663e\u793a\u5bfc\u822a",del:"\u5220\u9664\u5bfc\u822a",new:"\u65b0\u5efa",noAddSub:"\u672a\u5b89\u88c5\u7ec4\u4ef6\u65e0\u6cd5\u6dfb\u52a0\u5b50\u5bfc\u822a",noEdit:"\u672a\u5b89\u88c5\u7ec4\u4ef6\u7684\u5bfc\u822a\u65e0\u6cd5\u7f16\u8f91",noDel:"\u5185\u7f6e\u7684\u5bfc\u822a\u65e0\u6cd5\u5220\u9664",reset:"\u91cd\u7f6e",restConfirmTitle:"\u662f\u5426\u6e05\u7a7a\u6240\u6709\u81ea\u5b9a\u4e49\u5bfc\u822a?",restConfirmDesc:"\u6e05\u7a7a\u540e\uff0c\u5bfc\u822a\u4f1a\u6062\u590d\u5230 Blocklet \u539f\u6709\u9ed8\u8ba4\u7684\u914d\u7f6e.",resetSuccessful:"\u91cd\u7f6e\u6210\u529f"}},storage:{spaces:{tips:"\u63d0\u793a",label:"\u8bf7\u8f93\u5165 DID Spaces \u670d\u52a1\u5730\u5740",connected:{title:"\u5df2\u8fde\u63a5\u7684 DID Spaces",tag:"\u5df2\u8fde\u63a5"},connectedWithName:"\u4f60\u5df2\u6210\u529f\u8fde\u63a5\u81f3 {name}",addedWithName:"\u4f60\u5df2\u6210\u529f\u6dfb\u52a0 {name}",connects:"\u8fde\u63a5",reconnect:"\u91cd\u65b0\u8fde\u63a5",addressCannotEmpty:"\u5730\u5740\u4e0d\u80fd\u4e3a\u7a7a",addressNotValid:"{url} \u4e0d\u662f\u4e00\u4e2a\u5408\u6cd5\u7684\u5730\u5740",authorize:{title:"\u8fde\u63a5 {appName} \u81f3 DID Spaces",scan:"\u4f7f\u7528\u4f60\u7684 DID Wallet \u626b\u63cf\u4e0b\u9762\u7684\u4e8c\u7ef4\u7801\u4ee5\u5141\u8bb8\u5e94\u7528 {appName} \u8fde\u63a5\u81f3 DID Spaces",success:"\u8fde\u63a5\u6210\u529f"},provideNFT:{title:"\u8bf7\u4e3a {appName} \u51fa\u793a DID Spaces NFT",scan:"\u4f7f\u7528\u4f60\u7684 DID Wallet \u626b\u63cf\u4e0b\u9762\u7684\u4e8c\u7ef4\u7801\u4e3a\u5e94\u7528 {appName} \u51fa\u793a DID Spaces NFT",success:"\u8fde\u63a5\u6210\u529f"},backup:{title:"\u5907\u4efd",records:"\u5907\u4efd\u8bb0\u5f55"},autoBackup:{title:"\u81ea\u52a8\u5907\u4efd",enabled:"\u81ea\u52a8\u5907\u4efd\u5df2\u5f00\u542f",disabled:"\u81ea\u52a8\u5907\u4efd\u5df2\u5173\u95ed"},autoCheckUpdate:{title:"\u81ea\u52a8\u68c0\u6d4b\u65b0\u7248\u672c\u63d0\u9192",enabled:"\u81ea\u52a8\u68c0\u6d4b\u65b0\u7248\u672c\u63d0\u9192\u5df2\u5f00\u542f",disabled:"\u81ea\u52a8\u68c0\u6d4b\u65b0\u7248\u672c\u63d0\u9192\u5df2\u5173\u95ed"},backupSuccessfully:"\u5907\u4efd\u6210\u529f",restore:"\u8fd8\u539f",restoreSuccessfully:"\u8fd8\u539f\u6210\u529f",gateway:{select:"\u9009\u62e9\u4e00\u4e2a DID Spaces",add:{title:"\u6dfb\u52a0 DID Spaces",label:"\u8f93\u5165 DID Spaces \u7684\u5730\u5740",failed:"\u6dfb\u52a0 DID Spaces \u5931\u8d25",invalidUrl:"\u65e0\u6548\u7684 DID Spaces \u7f51\u5173\u5730\u5740",duplicate:"DID Space({name}) \u5df2\u5b58\u5728"},delete:{title:"\u5220\u9664 DID Spaces",succeeded:"\u5220\u9664 DID Spaces{name} \u6210\u529f",failed:"\u5220\u9664 DID Spaces \u5931\u8d25",failedForConnected:"\u65e0\u6cd5\u5220\u9664\u4e00\u4e2a\u5df2\u8fde\u63a5\u7684 DID Spaces",failedForSelected:"\u65e0\u6cd5\u5220\u9664\u4e00\u4e2a\u5df2\u9009\u4e2d\u7684 DID Spaces"},connect:{title:"\u8fde\u63a5\u5230 DID Spaces",add:"\u7acb\u5373\u8fde\u63a5 DID Spaces",addTips:"\u4f60\u8fd8\u6ca1\u6709\u8fde\u63a5\u5230\u4efb\u4f55\u7684 DID Spaces",switch:"\u5207\u6362 DID Spaces",switchTips:"\u4f60\u5df2\u8fde\u63a5\u5230 {name}",connected:"\u5df2\u8fde\u63a5"},switch:{failedForMismatchSpace:"\u8bf7\u8fde\u63a5\u81f3\u6b63\u786e\u7684 Space{name}"},connectTo:"\u8fde\u63a5\u81f3 DID Spaces",title:"\u95e8\u6237"},strategy:{title:"\u5907\u4efd\u7b56\u7565",autoBackup:"\u81ea\u52a8\u5907\u4efd",backupNow:"\u7acb\u5373\u5907\u4efd",viewBackupFiles:"\u67e5\u770b\u5907\u4efd\u6587\u4ef6"},progress:{title:"\u5907\u4efd\u8fdb\u5ea6"},record:{title:"\u5907\u4efd\u8bb0\u5f55",emptyData:"\u6682\u65e0\u8bb0\u5f55"},notYet:"\u4f60\u8fd8\u6ca1\u6709\u6b63\u5728\u8fdb\u884c\u4e2d\u7684\u5907\u4efd...",connect:{now:"\u7acb\u5373\u8fde\u63a5",title:"\u4f7f\u7528 DID Wallet \u8fde\u63a5",provider:"\u63d0\u4f9b\u60a8\u7684 DID Spaces \u5f00\u59cb\u5907\u4efd",providerForStorage:"\u8bf7\u8fde\u63a5\u60a8\u7684 DID Spaces",useWallet:"\u4f7f\u7528 DID Wallet \u8fde\u63a5",useWalletReconnect:"\u4f7f\u7528 DID Wallet \u91cd\u65b0\u8fde\u63a5",useSpaceGateway:"\u4f7f\u7528 DID Spaces \u7f51\u5173\u8fde\u63a5",useSpaceGatewayReconnect:"\u4f7f\u7528 DID Spaces \u7f51\u5173\u91cd\u65b0\u8fde\u63a5",switchToSpace:"\u5207\u6362\u81f3 Space",switchToSpaceSucceeded:"\u5df2\u5207\u6362\u81f3 Space{name}",succeeded:"\u4f60\u5df2\u6210\u529f\u8fde\u63a5\u81f3 DID Spaces",disconnect:"\u65ad\u5f00\u8fde\u63a5"},disconnected:{tag:"\u8fde\u63a5\u5df2\u65ad\u5f00",reconnectNow:"\u7acb\u5373\u91cd\u8fde"}}},log:{lastDays:{1:"\u6700\u8fd1 1 \u5929",7:"\u6700\u8fd1 1 \u5468"}},oauth:{commonSettings:"\u901a\u7528\u8bbe\u7f6e",save:"\u4fdd\u5b58",saveSuccess:"\u4fdd\u5b58\u6210\u529f",saveFailed:"\u4fdd\u5b58\u5931\u8d25",issued:"\u9881\u53d1",thirdPartyLogin:"\u7b2c\u4e09\u65b9\u767b\u5f55",alreadyBindOAuth:"\u5df2\u7ed1\u5b9a\u7b2c\u4e09\u65b9\u767b\u5f55",alreadyBindWallet:"\u5df2\u7ed1\u5b9a DID Wallet",auth0:{enable:"\u662f\u5426\u5f00\u542f Auth0 \u767b\u5f55",domain:"Domain",domainDescription:"\u8bf7\u8f93\u5165 Auth0 \u7684 Domain",clientId:"ClientID",clientIdDescribe:"\u8bf7\u8f93\u5165 Auth0 \u7684 ClientID"},comingSoon:"\u66f4\u591a\u767b\u5f55\u65b9\u5f0f\u6b63\u5728\u5efa\u8bbe\u4e2d",moreLogin:"\u66f4\u591a\u767b\u5f55\u65b9\u5f0f",federated:"\u7edf\u4e00\u767b\u5f55",runTest:"\u6d4b\u8bd5"},expiration:{mobile:{tips:{success:"{validity}",warning:"{validity}",error:"\u8ba2\u9605\u5df2\u8fc7\u671f"},loadFailed:"\u8bf7\u91cd\u8bd5!"},desktop:{tips:{success:"\u8ba2\u9605\u5c06\u5728{validity}\u540e\u5230\u671f",warning:"\u8ba2\u9605\u5c06\u5728{validity}\u540e\u5230\u671f",error:"\u8ba2\u9605\u5df2\u8fc7\u671f"},loadFailed:"\u52a0\u8f7d\u8ba2\u9605\u4fe1\u606f\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5!",loading:"\u52a0\u8f7d\u8ba2\u9605\u4fe1\u606f..."}},analytics:{trend:"\u8d8b\u52bf",detail:"\u63a2\u7a76",traffic:{totalRequests:"\u603b\u8bf7\u6c42\u6570",validRequests:"\u6210\u529f\u8bf7\u6c42\u6570",failedRequests:"\u5931\u8d25\u8bf7\u6c42\u6570",uniqueVisitors:"\u8bbf\u5ba2\u6570\u91cf",uniqueFiles:"\u7f51\u5740\u6570\u91cf",uniqueReferrers:"\u6765\u6e90\u6570\u91cf",uniqueNotFound:"404 \u6570\u91cf",uniqueStaticFiles:"\u9759\u6001\u8d44\u6e90\u6570\u91cf",logSize:"\u65e5\u5fd7\u5927\u5c0f",bandwidth:"\u5e26\u5bbd\u6d88\u8017"}},federated:{inviteJoinFederatedLogin:"\u9080\u8bf7\u52a0\u5165\u7edf\u4e00\u767b\u5f55",inviteJoinFederatedLoginDescription:"\u590d\u5236\u4ee5\u4e0b\u5730\u5740\u5230\u9700\u8981\u52a0\u5165\u7684\u5e94\u7528\u4e2d\u586b\u5165\uff0c\u7533\u8bf7\u52a0\u5165\u7edf\u4e00\u767b\u5f55",federatedLogin:"\u7edf\u4e00\u767b\u5f55",joinFederatedLogin:"\u52a0\u5165\u7edf\u4e00\u767b\u5f55",joinFederatedLoginDescription:"\u8bf7\u8f93\u5165 Master Blocklet \u63d0\u4f9b\u7684\u7edf\u4e00\u767b\u5f55\u5730\u5740\u4ee5\u52a0\u5165\u7edf\u4e00\u767b\u5f55",quitFederatedLogin:"\u9000\u51fa\u7edf\u4e00\u767b\u5f55",quitFederatedLoginDescription:"\u9000\u51fa\u7edf\u4e00\u767b\u5f55\u540e\uff0c\u4f60\u4ecd\u53ef\u4ee5\u4f7f\u7528\u666e\u901a\u7684\u767b\u5f55\u65b9\u5f0f\u6765\u767b\u5f55",federatedJoinAppUrl:"\u7edf\u4e00\u767b\u5f55\u5730\u5740",federatedJoinAppUrlRequired:"\u8bf7\u8f93\u5165\u7edf\u4e00\u767b\u5f55\u5730\u5740",failedToGetFederatedLoginAppUrl:"\u83b7\u53d6\u7edf\u4e00\u767b\u5f55\u5730\u5740\u5931\u8d25",federatedJoinAppUrlInvalid:"\u7edf\u4e00\u767b\u5f55\u5730\u5740\u4e0d\u53ef\u7528",siteDetail:"\u7ad9\u70b9\u8be6\u60c5",approveToJoinLogin:"\u5ba1\u6838\u52a0\u5165\u7edf\u4e00\u767b\u5f55",approve:"\u6062\u590d\u767b\u5f55",revoke:"\u7981\u6b62\u767b\u5f55",enableFederatedLogin:"\u542f\u7528\u7edf\u4e00\u767b\u5f55",disableFederatedLogin:"\u7981\u7528\u7edf\u4e00\u767b\u5f55",enableFederatedLoginDescription:"\u542f\u7528\u7edf\u4e00\u767b\u5f55\u540e\uff0c\u8be5\u7ad9\u70b9\u5c06\u81ea\u52a8\u767b\u5f55",disableFederatedLoginDescription:"\u7981\u7528\u7edf\u4e00\u767b\u5f55\u540e\uff0c\u8be5\u7ad9\u70b9\u5c06\u65e0\u6cd5\u81ea\u52a8\u767b\u5f55",enableFederatedAutoLogin:"\u5f00\u542f\u81ea\u52a8\u767b\u5f55",enableFederatedAutoLoginDescription:"\u5f00\u542f\u81ea\u52a8\u767b\u5f55\u540e\uff0c\u5982\u679c\u5f53\u524d\u5b58\u5728\u7edf\u4e00\u767b\u5f55\u7684\u72b6\u6001\uff0c\u5219\u8be5\u7ad9\u70b9\u5c06\u81ea\u52a8\u767b\u5f55\u7edf\u4e00\u767b\u5f55\u7684\u8eab\u4efd",disableFederatedAutoLogin:"\u5173\u95ed\u81ea\u52a8\u767b\u5f55",disableFederatedAutoLoginDescription:"\u5173\u95ed\u81ea\u52a8\u767b\u5f55\u540e\uff0c\u8be5\u7ad9\u70b9\u5c06\u4e0d\u4f1a\u81ea\u52a8\u767b\u5f55\u7edf\u4e00\u767b\u5f55\u7684\u7528\u6237\u4fe1\u606f\uff0c\u60a8\u4ecd\u53ef\u9009\u62e9\u624b\u52a8\u70b9\u51fb\u767b\u5f55\u7edf\u4e00\u767b\u5f55\u7684\u8eab\u4efd",info:{appId:"\u5e94\u7528 DID",appPid:"\u6c38\u4e45 DID",migratedFrom:"\u66fe\u7528 DID",appName:"\u5e94\u7528\u540d\u79f0",appDescription:"\u5e94\u7528\u63cf\u8ff0",appUrl:"\u5e94\u7528\u5730\u5740",appLogo:"\u5e94\u7528\u56fe\u6807",did:"\u5e94\u7528 DID",serverId:"Blocklet Server ID",serverVersion:"Blocklet Server \u7248\u672c",version:"\u5e94\u7528\u7248\u672c",appliedAt:"\u7533\u8bf7\u65f6\u95f4",status:"\u72b6\u6001"},status:{pending:"\u5f85\u5ba1\u6838",approved:"\u5df2\u901a\u8fc7",rejected:"\u5df2\u62d2\u7edd",revoked:"\u5df2\u64a4\u9500"},disbandFederatedLogin:"\u89e3\u6563\u7edf\u4e00\u767b\u5f55",disbandFederatedLoginDescription:"\u89e3\u6563\u7edf\u4e00\u767b\u5f55\u540e\uff0c\u5c06\u81ea\u52a8\u8ba9\u6240\u6709\u6210\u5458\u7ad9\u70b9\u81ea\u52a8\u9000\u51fa\u7edf\u4e00\u767b\u5f55\u7ad9\u70b9\u7fa4"},optionsOrder:{1:"\u9009\u62e9\u4e00",2:"\u9009\u62e9\u4e8c"}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[7020],{90067:(e,r,o)=>{o.d(r,{Z:()=>x});var t,a=o(31461),s=o(7896),n=o(5057),i=o(9978),l=o(91213),d=o(43070),c=o(38038),u=o(62773),m=o(6285),p=o(44029),f=o(42908),Z=o(96266);const h=["children","className","component","disabled","error","filled","focused","margin","required","variant"],b=(0,u.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:o}=e;return[r.root,o.size&&r["size".concat((0,m.Z)(o.size))],o.contained&&r.contained,o.filled&&r.filled]}})((e=>{let{theme:r,ownerState:o}=e;return(0,s.Z)({color:(r.vars||r).palette.text.secondary},r.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(p.Z.disabled)]:{color:(r.vars||r).palette.text.disabled},["&.".concat(p.Z.error)]:{color:(r.vars||r).palette.error.main}},"small"===o.size&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})})),x=n.forwardRef((function(e,r){const o=(0,f.Z)({props:e,name:"MuiFormHelperText"}),{children:n,className:u,component:x="p"}=o,v=(0,a.Z)(o,h),w=(0,c.Z)(),k=(0,d.Z)({props:o,muiFormControl:w,states:["variant","size","disabled","error","filled","focused","required"]}),F=(0,s.Z)({},o,{component:x,contained:"filled"===k.variant||"outlined"===k.variant,variant:k.variant,size:k.size,disabled:k.disabled,error:k.error,filled:k.filled,focused:k.focused,required:k.required}),z=(e=>{const{classes:r,contained:o,size:t,disabled:a,error:s,filled:n,focused:i,required:d}=e,c={root:["root",a&&"disabled",s&&"error",t&&"size".concat((0,m.Z)(t)),o&&"contained",i&&"focused",n&&"filled",d&&"required"]};return(0,l.Z)(c,p.E,r)})(F);return(0,Z.jsx)(b,(0,s.Z)({as:x,ownerState:F,className:(0,i.Z)(z.root,u),ref:r},v,{children:" "===n?t||(t=(0,Z.jsx)("span",{className:"notranslate",children:"\u200b"})):n}))}))},44029:(e,r,o)=>{o.d(r,{E:()=>s,Z:()=>n});var t=o(31821),a=o(18561);function s(e){return(0,a.ZP)("MuiFormHelperText",e)}const n=(0,t.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"])},6041:(e,r,o)=>{o.d(r,{Z:()=>R});var t=o(31461),a=o(7896),s=o(5057),n=o(91213),i=o(9978),l=o(43070),d=o(38038),c=o(6285),u=o(42908),m=o(62773),p=o(31821),f=o(18561);function Z(e){return(0,f.ZP)("MuiFormLabel",e)}const h=(0,p.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);var b=o(96266);const x=["children","className","color","component","disabled","error","filled","focused","required"],v=(0,m.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:o}=e;return(0,a.Z)({},r.root,"secondary"===o.color&&r.colorSecondary,o.filled&&r.filled)}})((e=>{let{theme:r,ownerState:o}=e;return(0,a.Z)({color:(r.vars||r).palette.text.secondary},r.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&.".concat(h.focused)]:{color:(r.vars||r).palette[o.color].main},["&.".concat(h.disabled)]:{color:(r.vars||r).palette.text.disabled},["&.".concat(h.error)]:{color:(r.vars||r).palette.error.main}})})),w=(0,m.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})((e=>{let{theme:r}=e;return{["&.".concat(h.error)]:{color:(r.vars||r).palette.error.main}}})),k=s.forwardRef((function(e,r){const o=(0,u.Z)({props:e,name:"MuiFormLabel"}),{children:s,className:m,component:p="label"}=o,f=(0,t.Z)(o,x),h=(0,d.Z)(),k=(0,l.Z)({props:o,muiFormControl:h,states:["color","required","focused","disabled","error","filled"]}),F=(0,a.Z)({},o,{color:k.color||"primary",component:p,disabled:k.disabled,error:k.error,filled:k.filled,focused:k.focused,required:k.required}),z=(e=>{const{classes:r,color:o,focused:t,disabled:a,error:s,filled:i,required:l}=e,d={root:["root","color".concat((0,c.Z)(o)),a&&"disabled",s&&"error",i&&"filled",t&&"focused",l&&"required"],asterisk:["asterisk",s&&"error"]};return(0,n.Z)(d,Z,r)})(F);return(0,b.jsxs)(v,(0,a.Z)({as:p,ownerState:F,className:(0,i.Z)(z.root,m),ref:r},f,{children:[s,k.required&&(0,b.jsxs)(w,{ownerState:F,"aria-hidden":!0,className:z.asterisk,children:["\u2009","*"]})]}))}));var F=o(12823);const z=["disableAnimation","margin","shrink","variant","className"],q=(0,m.ZP)(k,{shouldForwardProp:e=>(0,m.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:o}=e;return[{["& .".concat(h.asterisk)]:r.asterisk},r.root,o.formControl&&r.formControl,"small"===o.size&&r.sizeSmall,o.shrink&&r.shrink,!o.disableAnimation&&r.animated,o.focused&&r.focused,r[o.variant]]}})((e=>{let{theme:r,ownerState:o}=e;return(0,a.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},o.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===o.size&&{transform:"translate(0, 17px) scale(1)"},o.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!o.disableAnimation&&{transition:r.transitions.create(["color","transform","max-width"],{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut})},"filled"===o.variant&&(0,a.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===o.size&&{transform:"translate(12px, 13px) scale(1)"},o.shrink&&(0,a.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===o.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===o.variant&&(0,a.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===o.size&&{transform:"translate(14px, 9px) scale(1)"},o.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),R=s.forwardRef((function(e,r){const o=(0,u.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:s=!1,shrink:m,className:p}=o,f=(0,t.Z)(o,z),Z=(0,d.Z)();let h=m;"undefined"===typeof h&&Z&&(h=Z.filled||Z.focused||Z.adornedStart);const x=(0,l.Z)({props:o,muiFormControl:Z,states:["size","variant","required","focused"]}),v=(0,a.Z)({},o,{disableAnimation:s,formControl:Z,shrink:h,size:x.size,variant:x.variant,required:x.required,focused:x.focused}),w=(e=>{const{classes:r,formControl:o,size:t,shrink:s,disableAnimation:i,variant:l,required:d}=e,u={root:["root",o&&"formControl",!i&&"animated",s&&"shrink",t&&"normal"!==t&&"size".concat((0,c.Z)(t)),l],asterisk:[d&&"asterisk"]},m=(0,n.Z)(u,F.Y,r);return(0,a.Z)({},r,m)})(v);return(0,b.jsx)(q,(0,a.Z)({"data-shrink":h,ownerState:v,ref:r,className:(0,i.Z)(w.root,p)},f,{classes:w}))}))},12823:(e,r,o)=>{o.d(r,{Y:()=>s,Z:()=>n});var t=o(31821),a=o(18561);function s(e){return(0,a.ZP)("MuiInputLabel",e)}const n=(0,t.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"])},47020:(e,r,o)=>{o.d(r,{Z:()=>z});var t=o(7896),a=o(31461),s=o(5057),n=o(9978),i=o(91213),l=o(32852),d=o(62773),c=o(42908),u=o(49083),m=o(91877),p=o(12594),f=o(6041),Z=o(80576),h=o(90067),b=o(51177),x=o(13421),v=o(96266);const w=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],k={standard:u.Z,filled:m.Z,outlined:p.Z},F=(0,d.ZP)(Z.Z,{name:"MuiTextField",slot:"Root",overridesResolver:(e,r)=>r.root})({}),z=s.forwardRef((function(e,r){const o=(0,c.Z)({props:e,name:"MuiTextField"}),{autoComplete:s,autoFocus:d=!1,children:u,className:m,color:p="primary",defaultValue:Z,disabled:z=!1,error:q=!1,FormHelperTextProps:R,fullWidth:g=!1,helperText:S,id:y,InputLabelProps:P,inputProps:C,InputProps:M,inputRef:N,label:T,maxRows:I,minRows:L,multiline:W=!1,name:j,onBlur:A,onChange:H,onFocus:E,placeholder:O,required:B=!1,rows:_,select:V=!1,SelectProps:Y,type:D,value:G,variant:J="outlined"}=o,K=(0,a.Z)(o,w),Q=(0,t.Z)({},o,{autoFocus:d,color:p,disabled:z,error:q,fullWidth:g,multiline:W,required:B,select:V,variant:J}),U=(e=>{const{classes:r}=e;return(0,i.Z)({root:["root"]},x.I,r)})(Q);const X={};"outlined"===J&&(P&&"undefined"!==typeof P.shrink&&(X.notched=P.shrink),X.label=T),V&&(Y&&Y.native||(X.id=void 0),X["aria-describedby"]=void 0);const $=(0,l.Z)(y),ee=S&&$?"".concat($,"-helper-text"):void 0,re=T&&$?"".concat($,"-label"):void 0,oe=k[J],te=(0,v.jsx)(oe,(0,t.Z)({"aria-describedby":ee,autoComplete:s,autoFocus:d,defaultValue:Z,fullWidth:g,multiline:W,name:j,rows:_,maxRows:I,minRows:L,type:D,value:G,id:$,inputRef:N,onBlur:A,onChange:H,onFocus:E,placeholder:O,inputProps:C},X,M));return(0,v.jsxs)(F,(0,t.Z)({className:(0,n.Z)(U.root,m),disabled:z,error:q,fullWidth:g,ref:r,required:B,color:p,variant:J,ownerState:Q},K,{children:[null!=T&&""!==T&&(0,v.jsx)(f.Z,(0,t.Z)({htmlFor:$,id:re},P,{children:T})),V?(0,v.jsx)(b.Z,(0,t.Z)({"aria-describedby":ee,id:$,labelId:re,value:G,input:te},Y,{children:u})):te,S&&(0,v.jsx)(h.Z,(0,t.Z)({id:ee},R,{children:S}))]}))}))},13421:(e,r,o)=>{o.d(r,{I:()=>s,Z:()=>n});var t=o(31821),a=o(18561);function s(e){return(0,a.ZP)("MuiTextField",e)}const n=(0,t.Z)("MuiTextField",["root"])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[7534],{844:(e,t,n)=>{n.d(t,{Z:()=>p});var o,r=n(71171),s=n(55898),a=n.n(s),i=n(33518),l=n(38763),c=n(75392),u=n(11750),d=n(39948),m=n(96266);function p(e){let{style:t,title:n,value:o,graph:r,description:s}=e;return(0,m.jsx)(h,{children:(0,m.jsxs)(c.Z,{style:{...t},children:[(0,m.jsx)(u.Z,{sx:{fontSize:14},color:"text.secondary",children:n}),(0,m.jsx)(u.Z,{variant:"h5",component:"div",mt:1,children:o}),r,!!s&&(0,m.jsx)(d.Z,{display:"flex",sx:{fontSize:12,marginTop:3},color:"text.secondary",children:s})]})})}p.propTypes={style:a().object,title:a().node,value:a().node,graph:a().node,description:a().any},p.defaultProps={style:{},title:null,value:null,graph:null,description:null};const h=(0,i.Z)(l.Z)(o||(o=(0,r.Z)(["\n .card-content {\n height: 150px;\n }\n\n .card-sparkline {\n flex: 2;\n display: flex;\n position: relative;\n *[hidden] {\n display: none;\n }\n }\n .sparkline {\n stroke: ",";\n fill: ","1A;\n }\n .tooltip {\n position: absolute;\n background: rgba(0, 0, 0, 0.7);\n color: #fff;\n padding: 2px 5px;\n font-size: 12px;\n white-space: nowrap;\n z-index: 9999;\n }\n .sparkline--cursor {\n stroke: orange;\n }\n\n .sparkline--spot {\n fill: red;\n stroke: red;\n }\n"])),(e=>e.theme.palette.primary.main),(e=>e.theme.palette.primary.main))},52959:(e,t,n)=>{n.d(t,{Z:()=>d});var o=n(5057),r=n(55898),s=n.n(r),a=n(12673),i=n(28563),l=n(26089),c=n(844),u=n(96266);function d(e){let{id:t,title:n,current:r,description:s,data:d,dateFn:m,valueFn:p}=e;const h=(0,o.useRef)(null),f=(0,o.useRef)(null),y=(0,a.Z)({style:{top:0,left:0},hidden:!0,textContent:""}),[v,x]=(0,o.useState)(null),b=(0,i.Z)(v),g={onmousemove(e,t){const{date:n,value:o}=t;y.textContent="".concat(m(n),": ").concat(p(o)),y.style.top=-30,y.style.left=80,y.hidden=!1},onmouseout(){y.hidden=!0}};return(0,o.useEffect)((()=>{setTimeout((()=>{x(document.querySelector(".".concat(t))),setTimeout((()=>{h.current&&(0,l.Z)(h.current,d||[],g)}),400)}))}),[d]),(0,u.jsx)(c.Z,{title:n,value:r,graph:(0,u.jsxs)("div",{className:"card-sparkline ".concat(t),style:{marginTop:16},children:[(0,u.jsx)("svg",{ref:h,className:"sparkline",width:(null===b||void 0===b?void 0:b.width)||100,height:30,strokeWidth:"2"}),(0,u.jsx)("span",{className:"tooltip",ref:f,hidden:y.hidden,style:{...y.style},children:y.textContent})]}),description:s})}d.propTypes={id:s().string.isRequired,title:s().string.isRequired,current:s().any.isRequired,description:s().any,data:s().array,dateFn:s().func,valueFn:s().func},d.defaultProps={description:null,data:[],dateFn:e=>e,valueFn:e=>e}},56169:(e,t,n)=>{n.d(t,{Z:()=>d});var o=n(5057),r=n(55898),s=n.n(r),a=n(68420),i=n(52959),l=n(14491),c=n(96266);const u=e=>"".concat(e,"%");function d(e){let{cpus:t,currentLoad:n,history:r}=e;const{t:s,locale:d}=(0,o.useContext)(a.RD);return(0,c.jsx)(i.Z,{id:"cpu-sparkline",title:s("common.cpu"),current:"".concat(Math.floor(n||0),"%"),data:r,description:"".concat(s("system.cores"),": ").concat((null===t||void 0===t?void 0:t.length)||0),dateFn:e=>(0,l.mr)(e,"HH:mm:ss",d),valueFn:u})}d.propTypes={cpus:s().array,currentLoad:s().number,history:s().array},d.defaultProps={cpus:[],currentLoad:0,history:[]}},1979:(e,t,n)=>{n.d(t,{Z:()=>m});var o=n(55898),r=n.n(o),s=n(90049),a=n.n(s),i=n(39948),l=n(68420),c=n(52959),u=n(14491),d=n(96266);function m(e){let{instanceCount:t,title:n,total:o,used:r,history:s}=e;const{t:m,locale:p}=(0,l.PE)(),h=!!o,f=o-r,y=h?"(".concat(Math.floor(r/o*100),"%)"):"",v=[];return t&&v.push({title:m("system.instances"),metric:t}),v.push({title:m("system.used"),metric:a()(r)}),h&&v.push({title:m("system.free"),metric:a()(f)},{title:m("system.total"),metric:a()(o)}),(0,d.jsx)(c.Z,{id:"mem-sparkline",title:n||m("common.memory"),current:"".concat(a()(Math.floor(r||0))," ").concat(y),data:s,description:v.map(((e,t)=>(0,d.jsxs)(i.Z,{sx:{marginLeft:0===t?0:2},children:[e.title,": ",e.metric]},e.title))),dateFn:e=>(0,u.mr)(e,"HH:mm:ss",p),valueFn:a()})}m.propTypes={title:r().string,instanceCount:r().number,total:r().number,used:r().number,history:r().array},m.defaultProps={title:"",instanceCount:null,total:null,used:null,history:[]}},87534:(e,t,n)=>{n.r(t),n.d(t,{default:()=>P});var o,r=n(71171),s=n(5057),a=n(33518),i=n(90049),l=n.n(i),c=n(45603),u=n.n(c),d=n(39948),m=n(75760),p=n(11750),h=n(38242),f=n(68420),y=n(29054),v=n(14491),x=n(55898),b=n.n(x),g=n(55402),Z=n(56169),k=n(1979),j=n(96266);function C(e){let{blocklet:t,cpuHistory:n,memoryHistory:o,...r}=e;const s=t.appRuntimeInfo||{};return(0,j.jsx)(w,{component:"div",...r,children:(0,j.jsxs)(g.ZP,{className:"page-metrics",container:!0,spacing:5,children:[(0,j.jsx)(g.ZP,{item:!0,lg:4,md:6,sm:6,xs:12,children:!!n.length&&(0,j.jsx)(Z.Z,{currentLoad:s.cpuUsage||0,history:n,style:{height:150}})},"cpu"),(0,j.jsx)(g.ZP,{item:!0,lg:4,md:6,sm:6,xs:12,children:!!o.length&&(0,j.jsx)(k.Z,{used:s.memoryUsage||0,history:o,style:{height:150}})},"memory")]})})}C.propTypes={blocklet:b().object.isRequired,cpuHistory:b().arrayOf(b().shape({date:b().number,value:b().number})),memoryHistory:b().arrayOf(b().shape({date:b().number,value:b().number}))},C.defaultProps={cpuHistory:[],memoryHistory:[]};const w=(0,a.Z)(p.Z)(o||(o=(0,r.Z)([""])));var I,R=n(80378);function P(){const{t:e,locale:t}=(0,f.PE)(),{blocklet:n,runtimeHistory:o,actions:{refreshBlocklet:r}}=(0,y.y0)(),a=(0,s.useMemo)((()=>{const e=[];return(0,h.forEachBlockletSync)(n,((t,o)=>{let{ancestors:r,id:s,level:a}=o;t.runtimeInfo&&e.push({type:"blocklet",groupId:n.meta.did,groupName:(0,h.getDisplayName)(n),id:s,name:(0,h.getDisplayName)(t,!0),blocklet:n,component:t,level:a-1>=0?a-1:0,runtimeInfo:t.runtimeInfo,ancestors:r})})),e}),[n]);(0,s.useEffect)((()=>{const e=setInterval((()=>{r()}),1e4);return()=>{clearInterval(e)}}),[]);const i=[{label:e("common.name"),name:"name",options:{customBodyRenderLite(e){const{name:t,component:n,level:o,ancestors:r}=a[e];return(0,j.jsxs)(d.Z,{display:"flex",alignItems:"center",pl:2*o,children:[(0,j.jsx)(R.Z,{size:14,blocklet:n,ancestors:r}),(0,j.jsx)(d.Z,{ml:1,children:t})]})}}},{label:e("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(e){const{runtimeInfo:n}=a[e];return o=n.uptime,u()(Number(o||0),{locale:(0,v.FF)(t)});var o}}},{label:e("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(e){const{runtimeInfo:t}=a[e];return l()((null===t||void 0===t?void 0:t.memoryUsage)||0)}}},{label:e("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(e){const{runtimeInfo:t}=a[e];return"".concat((t.cpuUsage||0).toFixed(1),"%")}}},{label:e("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid"},{label:e("blocklet.runtimeInfo.port"),name:"runtimeInfo.port"}];return(0,j.jsxs)(F,{component:"div",children:[(0,j.jsx)(p.Z,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mb:2,children:e("analytics.trend")}),"running"===n.status?[(0,j.jsx)(d.Z,{children:(0,j.jsx)(C,{blocklet:n,cpuHistory:o.cpu,memoryHistory:o.memory})}),(0,j.jsx)(d.Z,{mt:3,children:(0,j.jsx)(m.Z,{title:e("analytics.detail"),className:"monitor-table",locale:t,data:a,columns:i,options:{search:!1,download:!1,filter:!1,print:!1,viewColumns:!1,pagination:!1,rowsPerPage:100}})})]:(0,j.jsx)(p.Z,{children:e("blocklet.runtimeInfo.noRunning")})]})}P.propTypes={};const F=(0,a.Z)(p.Z)(I||(I=(0,r.Z)([""])))},80378:(e,t,n)=>{n.d(t,{Z:()=>p});var o=n(55898),r=n.n(o),s=n(62681),a=n(72333),i=n(6352),l=n.n(i),c=n(35432),u=n(58238),d=n(14491);var m=n(96266);function p(e){let{blocklet:t,style:n,size:o,ancestors:r,...i}=e;const p=(0,u.h6)(),{logoUrl:h,inService:f}=function(e){var t;let{blocklet:n,ancestors:o=[]}=e;const r=(0,u.h6)(),{inService:s}=r,a="?v=".concat(null===n||void 0===n||null===(t=n.meta)||void 0===t?void 0:t.version).concat((0,d.XN)(null===n||void 0===n?void 0:n.status)?"~":"");let i=s?l()(d.zn,c.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-bundle",a):l()(r.imgPrefix,"blocklet.png");if("registry"===n.source&&n.deployedFrom&&n.meta.logo)i=l()(n.deployedFrom,(0,d.lk)(n.meta.bundleDid,n.meta.logo),a);else{const e=window.env.apiPrefix||"/",t=o.concat(n),r=s?t.slice(1):t;i=l()(e,"/blocklet/logo-bundle".concat(r.map((e=>"/".concat(e.meta.did))).join("")),a)}return{logoUrl:i,inService:s}}({blocklet:t,ancestors:r}),{variant:y}=i,v=f?()=>{}:e=>{e.target.src="".concat(p.imgPrefix,"/blocklet.png")};let x=(0,m.jsx)("img",{src:h,onError:v,alt:t.meta.name,style:{width:o}});return t.meta.logo||(x=(0,m.jsx)(a.Z,{did:t.meta.did||"",responsive:!0})),(0,m.jsx)(s.Z,{variant:y||"square",style:Object.assign({backgroundColor:"transparent",width:o,height:o,borderRadius:10},n),...i,children:x})}p.propTypes={blocklet:r().object.isRequired,style:r().object,size:r().oneOfType([r().number,r().string]),ancestors:r().array},p.defaultProps={style:{},size:40,ancestors:[]}},26089:(e,t,n)=>{function o(e,t,n,o){return parseFloat((t-o*t/e+n).toFixed(2))}function r(e){return e.value}function s(e,t){const n=document.createElementNS("http://www.w3.org/2000/svg",e);for(const o in t)n.setAttribute(o,t[o]);return n}function a(e,t,n){if(function(e){[...e.querySelectorAll("*")].forEach((t=>e.removeChild(t)))}(e),t.length<=1)return;n=n||{},"number"===typeof t[0]&&(t=t.map((e=>({value:e}))));const{onmousemove:a}=n,{onmouseout:i}=n,l="interactive"in n?n.interactive:!!a,c=n.spotRadius||2,u=2*c,d=n.cursorWidth||2,m=parseFloat(e.attributes["stroke-width"].value),p=n.fetch||r,h=t.map((e=>p(e))),f=parseFloat(e.attributes.width.value)-2*u,y=parseFloat(e.attributes.height.value),v=y-2*m-u,x=0===Math.max(...h)?1:Math.max(...h),b=-1e3,g=h.length-1,Z=f/g,k=[],j=o(x,v,m+c,h[0]);let C="M".concat(u," ").concat(j);h.forEach(((e,n)=>{const r=n*Z+u,s=o(x,v,m+c,e);k.push(Object.assign({},t[n],{index:n,x:r,y:s})),C+=" L ".concat(r," ").concat(s)}));const w=s("path",{class:"sparkline--line",d:C,fill:"none"}),I=s("path",{class:"sparkline--fill",d:"".concat(C," V ").concat(y," L ").concat(u," ").concat(y," Z"),stroke:"none"});if(e.appendChild(I),e.appendChild(w),!l)return;const R=s("line",{class:"sparkline--cursor",x1:b,x2:b,y1:0,y2:y,"stroke-width":d}),P=s("circle",{class:"sparkline--spot",cx:b,cy:b,r:c});e.appendChild(R),e.appendChild(P);const F=s("rect",{width:e.attributes.width.value,height:e.attributes.height.value,style:"fill: transparent; stroke: transparent",class:"sparkline--interaction-layer"});e.appendChild(F),F.addEventListener("mouseout",(e=>{R.setAttribute("x1",b),R.setAttribute("x2",b),P.setAttribute("cx",b),i&&i(e)})),F.addEventListener("mousemove",(e=>{const t=e.offsetX;let n=k.find((e=>e.x>=t));n||(n=k[g]);const o=k[k.indexOf(n)-1];let r,s;o?(s=o.x+(n.x-o.x)/2,r=t>=s?n:o):r=n;const{x:i}=r,{y:l}=r;P.setAttribute("cx",i),P.setAttribute("cy",l),R.setAttribute("x1",i),R.setAttribute("x2",i),a&&a(e,r)}))}n.d(t,{Z:()=>a})},38763:(e,t,n)=>{n.d(t,{Z:()=>v});var o=n(7896),r=n(31461),s=n(5057),a=n(9978),i=n(91213),l=n(62773),c=n(42908),u=n(25228),d=n(31821),m=n(18561);function p(e){return(0,m.ZP)("MuiCard",e)}(0,d.Z)("MuiCard",["root"]);var h=n(96266);const f=["className","raised"],y=(0,l.ZP)(u.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),v=s.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiCard"}),{className:s,raised:l=!1}=n,u=(0,r.Z)(n,f),d=(0,o.Z)({},n,{raised:l}),m=(e=>{const{classes:t}=e;return(0,i.Z)({root:["root"]},p,t)})(d);return(0,h.jsx)(y,(0,o.Z)({className:(0,a.Z)(m.root,s),elevation:l?8:void 0,ref:t,ownerState:d},u))}))},75392:(e,t,n)=>{n.d(t,{Z:()=>y});var o=n(7896),r=n(31461),s=n(5057),a=n(9978),i=n(91213),l=n(62773),c=n(42908),u=n(31821),d=n(18561);function m(e){return(0,d.ZP)("MuiCardContent",e)}(0,u.Z)("MuiCardContent",["root"]);var p=n(96266);const h=["className","component"],f=(0,l.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),y=s.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiCardContent"}),{className:s,component:l="div"}=n,u=(0,r.Z)(n,h),d=(0,o.Z)({},n,{component:l}),y=(e=>{const{classes:t}=e;return(0,i.Z)({root:["root"]},m,t)})(d);return(0,p.jsx)(f,(0,o.Z)({as:l,className:(0,a.Z)(y.root,s),ownerState:d,ref:t},u))}))}}]);
|