@abtnode/webapp 1.16.18 → 1.16.19-beta-e6aac665
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 +20 -20
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/static/js/{1005.3f7c0424.chunk.js → 1005.3959beea.chunk.js} +1 -1
- package/build/static/js/{1366.9080fc67.chunk.js → 1366.da5d2cf5.chunk.js} +2 -2
- package/build/static/js/1371.d1c1b823.chunk.js +1 -0
- package/build/static/js/{2334.f691dca3.chunk.js → 2334.66fda96c.chunk.js} +1 -1
- package/build/static/js/{2960.a86a7714.chunk.js → 2960.5edbdf92.chunk.js} +1 -1
- package/build/static/js/{3389.5c09050b.chunk.js → 3389.01128c14.chunk.js} +1 -1
- package/build/static/js/3826.3d90fb73.chunk.js +2 -0
- package/build/static/js/3883.8ebeea7c.chunk.js +1 -0
- package/build/static/js/{4448.347d2a50.chunk.js → 4448.240f547f.chunk.js} +1 -1
- package/build/static/js/{4471.bd184c41.chunk.js → 4471.7cf10167.chunk.js} +1 -1
- package/build/static/js/{5804.d39dd5d0.chunk.js → 5804.911e6040.chunk.js} +1 -1
- package/build/static/js/{6511.4138727a.chunk.js → 6511.63e6ee73.chunk.js} +1 -1
- package/build/static/js/6950.d8ef81ea.chunk.js +1 -0
- package/build/static/js/6960.f90b97b2.chunk.js +1 -0
- package/build/static/js/{7913.0cf3724f.chunk.js → 7913.fbdbed84.chunk.js} +1 -1
- package/build/static/js/{8382.4ef915cd.chunk.js → 8382.ab859900.chunk.js} +1 -1
- package/build/static/js/{9041.1ee0f39d.chunk.js → 9041.cfebb881.chunk.js} +1 -1
- package/build/static/js/{9249.38caee59.chunk.js → 9249.d1ca2237.chunk.js} +1 -1
- package/build/static/js/main.bd846fb6.js +2 -0
- package/package.json +1 -1
- package/build/static/js/1371.5b72f904.chunk.js +0 -1
- package/build/static/js/3826.1e61fa69.chunk.js +0 -2
- package/build/static/js/3883.2b7cf953.chunk.js +0 -1
- package/build/static/js/6950.71452861.chunk.js +0 -1
- package/build/static/js/6960.8b12dfb5.chunk.js +0 -1
- package/build/static/js/main.d4387066.js +0 -2
- /package/build/static/js/{1366.9080fc67.chunk.js.LICENSE.txt → 1366.da5d2cf5.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3826.1e61fa69.chunk.js.LICENSE.txt → 3826.3d90fb73.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{main.d4387066.js.LICENSE.txt → main.bd846fb6.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6950],{16950:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return Ze}});var t,r=i(71171),o=i(33028),a=i(32723),s=i(34795),c=i(96234),l=i(5057),p=i(33518),u=i(85493),d=i(10458),v=i.n(d),f=i(6352),m=i.n(f),x=i(43681),h=i.n(x),g=i(26796),_=i(55898),Z=i.n(_),w=i(79366),j=i(44846),y=i(35474),b=i(68420),k=i(13128),S=i(57471),C=i(96266),P=(0,S.Z)((0,C.jsx)("path",{d:"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"}),"Inbox");function z(e){var n=e.invitation,i=e.createPassportSvg,t=e.passportColor,r=(0,l.useState)(!1),o=(0,c.Z)(r,2),a=o[0],s=o[1],p=(0,l.useContext)(b.RD).t,u=(0,l.useMemo)((function(){return(n.role.title||n.role.name).toUpperCase()}),[n.role.title,n.role.name]),d=(0,l.useMemo)((function(){return i({title:u,issuer:n.info.name,issuerDid:n.info.appDid,ownerName:"Your Name",ownerDid:n.info.appDid,preferredColor:n.info.passportColor||t})}),[n,u]),v=(0,l.useCallback)((function(){s(!0)}),[]),f=(0,l.useCallback)((function(){s(!1)}),[]);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(R,{children:(0,C.jsx)("div",{className:"invite-passport__card",onClick:v,children:(0,C.jsx)("div",{className:"invite-passport__cover",dangerouslySetInnerHTML:{__html:d}})})}),(0,C.jsx)(k.ZP,{open:a,title:p("invite.viewPermission"),PaperProps:{style:{minHeight:"auto",paddingBottom:"20px"}},onClose:f,children:n.role.permissions&&n.role.permissions.length>0?(0,C.jsx)("ul",{style:{listStyle:"circle",padding:"0 20px"},children:n.role.permissions.map((function(e){return(0,C.jsx)("li",{style:{listStyle:"circle"},children:e.description},e.name)}))}):(0,C.jsxs)("div",{style:{color:"#999",textAlign:"center"},children:[(0,C.jsx)(P,{style:{width:"30px",height:"30px"}}),(0,C.jsx)("div",{children:p("invite.emptyPermission")})]})})]})}z.propTypes={invitation:Z().object.isRequired,createPassportSvg:Z().func.isRequired,passportColor:Z().string},z.defaultProps={passportColor:"auto"};var N,R=p.Z.div(t||(t=(0,r.Z)(["\n display: flex;\n max-width: 350px;\n margin: 30px auto;\n .invite-passport__card {\n margin: 0 auto;\n width: 228px;\n height: 258px;\n flex-shrink: 0;\n .invite-passport__cover {\n cursor: pointer;\n width: 100%;\n height: 100%;\n }\n }\n .invite-passport__content {\n flex: 1;\n display: flex;\n flex-direction: column;\n }\n .invite-passport__title {\n font-weight: 700;\n font-size: 16px;\n }\n .invite-passport__description {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n height: 3em;\n color: #999;\n font-size: 14px;\n }\n .invite-passport__view-permission {\n cursor: pointer;\n font-size: 14px;\n font-weight: 600;\n line-height: 18px;\n color: ",";\n }\n"])),(function(e){return e.theme.palette.primary.main})),T=z,L=i(92459),F=i(74958),I=i(14491),E=i(70284),D=i(73545);function U(e){var n,i,t,r=e.invitation,o=e.onLogin,a=e.onReceive,s=e.inService,c=(0,b.PE)(),p=c.t,u=c.locale,d=(0,D.T)().connectApi,v=(0,E.Z)().getPassportId;"undefined"!==typeof window&&(n=null===(i=window)||void 0===i||null===(t=i.blocklet)||void 0===t?void 0:t.componentId);var f={passportId:v(),inviteId:r.inviteId,baseUrl:window.location.origin,componentId:n},x=(0,l.useCallback)((function(){d.close()}),[d]),h=(0,l.useCallback)((function(){d.close(),o.apply(void 0,arguments)}),[o,d]),g=(0,l.useCallback)((function(){"function"!==typeof a?s?d.openPopup({action:"invite",className:"connect",forceConnected:!1,autoConnect:!1,locale:u,extraParams:f,baseUrl:window.location.origin,prefix:m()(window.location.origin,F.Bu,F.nC),messages:{title:p("receive.dialog.title"),scan:p("receive.dialog.scan"),confirm:p("receive.dialog.confirm"),success:p("receive.dialog.success")},onSuccess:h,onClose:x},{locale:u}):d.open({action:"invite",className:"connect",forceConnected:!1,autoConnect:!1,locale:u,extraParams:f,messages:{title:p("receive.dialog.title"),scan:p("receive.dialog.scan"),confirm:p("receive.dialog.confirm"),success:p("receive.dialog.success")},onSuccess:h,onClose:x}):a()}),[d.openPopup]);return(0,C.jsxs)(q,{children:[(0,C.jsx)(L.Z,{size:"large",variant:"contained",className:"invite-receive__button","data-cy":"invite-receive-passport",color:"primary",onClick:g,children:p("invite.receive")}),(0,C.jsxs)("div",{className:"invite-receive__until",children:[p("invite.validUntil"),(0,I.o0)(r.expireDate,u)]})]})}U.propTypes={invitation:Z().object.isRequired,onLogin:Z().func,onReceive:Z().func,inService:Z().bool},U.defaultProps={onLogin:function(){},onReceive:null,inService:!1};var M,q=p.Z.div(N||(N=(0,r.Z)(["\n text-align: center;\n .invite-receive__logo-wrapper {\n display: inline-flex;\n align-items: center;\n color: #9397a1;\n font-size: 14px;\n }\n .invite-receive__logo {\n height: 16px;\n margin-left: 8px;\n }\n .invite-receive__button {\n width: 100%;\n margin: 16px 0;\n white-space: nowrap;\n }\n .invite-receive__until {\n text-align: center;\n font-size: 14px;\n }\n .invite-receive__description {\n color: #999;\n text-align: left;\n list-style: decimal;\n padding: 0;\n padding-left: 1.2em;\n margin: 40px 0;\n }\n .invite-receive__description-item {\n list-style: decimal;\n }\n .invite-receive__link {\n color: ",";\n }\n"])),(function(e){return e.theme.palette.primary.main})),H=U;function O(e){var n=e.onLogin,i=(0,b.PE)().t;return(0,C.jsx)(A,{children:(0,C.jsx)(L.Z,{size:"large",variant:"contained",className:"invite-receive__button","data-cy":"invite-receive-passport",color:"primary",onClick:function(){return n()},children:i("common.connect")})})}O.propTypes={onLogin:Z().func},O.defaultProps={onLogin:function(){}};var W,A=p.Z.div(M||(M=(0,r.Z)(["\n text-align: center;\n .invite-receive__logo-wrapper {\n display: inline-flex;\n align-items: center;\n color: #9397a1;\n font-size: 14px;\n }\n .invite-receive__logo {\n height: 16px;\n margin-left: 8px;\n }\n .invite-receive__button {\n width: 100%;\n margin: 16px 0;\n white-space: nowrap;\n }\n .invite-receive__until {\n text-align: center;\n font-size: 14px;\n }\n .invite-receive__description {\n color: #999;\n text-align: left;\n list-style: decimal;\n padding: 0;\n padding-left: 1.2em;\n margin: 40px 0;\n }\n .invite-receive__description-item {\n list-style: decimal;\n }\n .invite-receive__link {\n color: ",";\n }\n"])),(function(e){return e.theme.palette.primary.main})),B=O,V=i(72333);function Y(e){var n=e.invitation,i=(0,b.PE)().t,t=(0,l.useMemo)((function(){return(n.role.title||n.role.name).toUpperCase()}),[n.role.title,n.role.name]),r=(0,l.useMemo)((function(){return i("invite.message",{name:"{{name}}",role:t,dapp:"{{dapp}}"})}),[i,t]),o=(0,I.E8)(n.info.chainHost,n.inviter.did,"account"),a=(0,I.Zp)(r,{name:function(){return o?(0,C.jsx)("a",{target:"_blank",href:o,className:"invite-user__link",rel:"noreferrer",children:n.inviter.fullName},"name"):n.inviter.fullName},dapp:function(){return(0,C.jsx)("a",{target:"_blank",href:n.info.url,className:"invite-user__link",rel:"noreferrer",children:n.info.name},"dapp")}});return(0,C.jsxs)(K,{children:[(0,C.jsx)(V.Z,{did:n.inviter.did,src:encodeURI(n.inviter.avatar),size:80,shape:"circle",variant:"circle"}),(0,C.jsx)("div",{className:"invite-user__message",children:a})]})}Y.propTypes={invitation:Z().object.isRequired};var J,K=p.Z.div(W||(W=(0,r.Z)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n .invite-user__name {\n font-weight: 700;\n font-size: 16px;\n margin: 8px 0 2px 0;\n }\n .invite-user__address {\n font-size: 12px;\n }\n .invite-user__message {\n margin-top: 20px;\n font-weight: 700;\n /* width: 90%; */\n text-align: center;\n font-size: 18px;\n }\n .invite-user__link {\n color: ",";\n }\n"])),(function(e){return e.theme.palette.primary.main})),G=Y,Q=i(39948),X=i(76005);function $(e){var n=e.invitation,i=e.type,t=(0,b.PE)().t,r=(0,l.useMemo)((function(){return t("invite.success",{dapp:"{{dapp}}"})}),[t]),o=(0,I.E8)(n.info.chainHost,n.inviter.did,"account"),a="receiver"===i?n.receiver:n.inviter,s=(0,I.Zp)(r,{name:function(){return o?(0,C.jsx)("a",{target:"_blank",href:o,className:"invite-user__link",rel:"noreferrer",children:a.fullName},"name"):a.fullName},dapp:function(){return(0,C.jsx)("a",{target:"_blank",href:n.info.url,className:"invite-user__link",rel:"noreferrer",children:n.info.name},"dapp")}});return(0,C.jsxs)(ne,{children:[(0,C.jsx)(Q.Z,{pt:1,color:"success.main",children:(0,C.jsx)(X.Z,{style:{fontSize:80}})}),(0,C.jsx)("div",{className:"invite-user__message",children:s})]})}$.propTypes={invitation:Z().object.isRequired,type:Z().oneOf("inviter","receiver")},$.defaultProps={type:"inviter"};var ee,ne=p.Z.div(J||(J=(0,r.Z)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n .invite-user__name {\n font-weight: 700;\n font-size: 16px;\n margin: 8px 0 2px 0;\n }\n .invite-user__address {\n font-size: 12px;\n }\n .invite-user__message {\n margin-top: 20px;\n font-weight: 700;\n /* width: 90%; */\n text-align: center;\n font-size: 18px;\n }\n .invite-user__link {\n color: ",";\n }\n"])),(function(e){return e.theme.palette.primary.main})),ie=$,te=i(59740),re=["invitation"];function oe(e){var n=e.invitation,i=(0,te.Z)(e,re);return(0,C.jsxs)(se,(0,o.Z)((0,o.Z)({},i),{},{children:[(0,C.jsx)(V.Z,{did:n.info.did,src:n.info.logo,style:{flexShrink:0}}),(0,C.jsxs)("div",{className:"invite-app__content",children:[(0,C.jsx)("div",{className:"invite-app__title",children:n.info.name}),(0,C.jsx)("div",{className:"invite-app__description",children:n.info.description})]})]}))}oe.propTypes={invitation:Z().object.isRequired};var ae,se=p.Z.div(ee||(ee=(0,r.Z)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n overflow: hidden;\n .invite-app__content {\n flex: 1;\n margin: 0 12px;\n font-weight: 700;\n overflow: hidden;\n }\n .invite-app__title {\n line-height: 1;\n margin-bottom: 2px;\n overflow: hidden;\n }\n .invite-app__description {\n font-size: 12px;\n white-space: nowrap;\n text-overflow: ellipsis;\n height: 1.3em;\n color: #999;\n overflow: hidden;\n }\n"]))),ce=oe,le=i(35820);function pe(e){var n,i,t=e.getDataFn,r=e.passportColor,o=e.createPassportSvg,a=e.onLoginSuccess,s=e.checkFn,c=e.onReceive,l=e.inService,p=(0,w.Z)(t);if(p.loading)return(0,C.jsx)(j.Z,{});if(p.error)return(0,C.jsx)(y.Z,{status:"404",title:null===(n=p.error)||void 0===n||null===(i=n.response)||void 0===i?void 0:i.data,description:""});var u="success"===p.data.status,d=u?ie:G,v=u?B:H;return(0,C.jsxs)(de,{className:"page-invite__wrapper",children:[(0,C.jsx)(ce,{invitation:p.data}),(0,C.jsxs)("div",{className:"page-invite__card",children:[(0,C.jsx)(d,{invitation:p.data}),(0,C.jsx)(T,{invitation:p.data,createPassportSvg:o,passportColor:r}),(0,C.jsx)(v,{invitation:p.data,onLogin:a,checkFn:s,onReceive:c,inService:l})]})]})}pe.propTypes={getDataFn:Z().func.isRequired,checkFn:Z().func.isRequired,createPassportSvg:Z().func.isRequired,onLoginSuccess:Z().func,onReceive:Z().func,passportColor:Z().string,inService:Z().bool},pe.defaultProps={onLoginSuccess:function(){},passportColor:"auto",onReceive:null,inService:!1};var ue,de=p.Z.div(ae||(ae=(0,r.Z)(["\n max-width: 460px;\n max-height: 650px;\n min-height: 450px;\n width: 90%;\n height: 80%;\n display: flex;\n flex-direction: column;\n .page-invite__card {\n background-color: #fff;\n border-radius: 4px;\n flex: 1;\n padding: 20px 30px;\n margin-top: 10px;\n }\n .page-invite__app {\n margin-top: 20px;\n }\n"]))),ve=(0,le.Z)(pe),fe=i(49983),me=i(25339),xe=i(75793),he=i(19762);function ge(e){var n=(0,me.Tt)(),i=n.api,t=n.session,r=(0,xe.h6)().info,p=(0,u.useLocation)(),d=(0,u.useNavigate)(),f=(0,b.PE)(),x=f.t,_=f.locale,Z=(0,fe.R)(),w=Z.encryptKey,y=Z.decrypt,k=(0,l.useState)(!1),S=(0,c.Z)(k,2),P=S[0],z=S[1],N=(0,l.useMemo)((function(){return new URLSearchParams(p.search).get("inviteId")}),[p]),R=(0,g.default)((0,s.Z)((0,a.Z)().mark((function e(){var n,t,o,s,c,l,p;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(N){e.next=2;break}return e.abrupt("return",null);case 2:return e.next=4,i.get("/api/invitation",{params:{inviteId:N}});case 4:if(t=e.sent,o=t.data,!(s=!!h()(r,"ownerNft.did")&&"owner"===o.role.name)){e.next=17;break}return(c=new URL(window.location.href)).pathname=m()((0,he.Y5)(),"/api/did/invite/token"),c.searchParams.set("_ek_",w),c.searchParams.set("inviteId",N),e.next=14,i.get(c.href);case 14:l=e.sent,p=l.data,n=p;case 17:return e.abrupt("return",{invitation:o,nextWorkflow:n,needReceiveNFT:s});case 18:case"end":return e.stop()}}),e)})))),T=(0,l.useCallback)((function(){z(!0)}),[]),L=(0,l.useCallback)((function(){if(R.error)throw R.error;return R.value.invitation}),[R]),F=(0,l.useCallback)(function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n){var i,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n&&(0,he.ZB)(y(n.sessionToken)),(i=new URLSearchParams(p.search)).delete("inviteId"),r=i.toString(),e.next=6,t.refresh();case 6:d("/".concat(r?"?".concat(r):r),{replace:!0});case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),[p,d,t]);if(R.loading)return(0,C.jsx)(j.Z,{});return(0,C.jsxs)(_e,{className:"page-invite",children:[h()(R,"value.needReceiveNFT")&&(0,C.jsx)(fe.Z,{action:"login",popup:!0,className:"connect",open:P,locale:_,baseUrl:r.launcher.url,checkFn:v().create({baseURL:r.launcher.url}).get,onSuccess:function(){var e=new URL(window.location.href);e.pathname=m()((0,he.Y5)(),"/api/did/invite/status"),e.searchParams.set("_t_",R.value.nextWorkflow.token),e.searchParams.set("locale",_);var n=setInterval((0,s.Z)((0,a.Z)().mark((function r(){var o,s;return(0,a.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,i.get(e.href);case 2:o=r.sent,"succeed"===(s=o.data).status&&(clearInterval(n),t.updateConnectedInfo(s),F(s));case 5:case"end":return r.stop()}}),r)}))),2e3)},onClose:function(){z(!1)},checkTimeout:3e5,webWalletUrl:(0,he.yP)(r),extraParams:{nw:h()(R,"value.nextWorkflow.url")},messages:{title:x("invite.transferNFTDialog.title",{name:r.name}),scan:x("invite.transferNFTDialog.scan"),confirm:x("invite.transferNFTDialog.confirm"),success:x("invite.transferNFTDialog.success")},prefix:"/.well-known/service/api/did"}),(0,C.jsx)(ve,(0,o.Z)((0,o.Z)({},e),{},{getDataFn:L,createPassportSvg:function(e){return(0,he.Ju)(e,r)},checkFn:i.get,onLoginSuccess:F,passportColor:"default",onReceive:h()(R,"value.needReceiveNFT")?T:null}))]})}var _e=p.Z.div(ue||(ue=(0,r.Z)(["\n width: 100vw;\n height: 100%;\n min-height: 100vh;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: #f6f8fa;\n overflow: auto;\n padding: 20px;\n"])));function Ze(){return(0,xe.h6)().loading?(0,C.jsx)(j.Z,{}):(0,C.jsx)(ge,{})}},51281:function(e,n,i){var t=i(77668),r=i(2586),o=i(56944);e.exports={translations:{zh:t(o),en:t(r)}}},35820:function(e,n,i){"use strict";i.d(n,{Z:function(){return s}});var t=i(33028),r=i(68420),o=i(51281),a=i(96266);function s(e){return function(n){return(0,a.jsx)(r.Iw,{translations:o.translations,children:(0,a.jsx)(e,(0,t.Z)({},n))})}}},92459:function(e,n,i){"use strict";i.d(n,{Z:function(){return u}});var t=i(33028),r=i(59740),o=i(55898),a=i.n(o),s=i(28726),c=i(81089),l=i(96266),p=["children"];function u(e){var n=e.children,i=(0,r.Z)(e,p);return(0,l.jsxs)(s.Z,(0,t.Z)((0,t.Z)({color:"did",variant:"contained"},i),{},{children:[(0,l.jsx)("span",{style:{fontWeight:400},children:n||"Continue With"}),(0,l.jsx)(c.Z,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]}))}u.propTypes={children:a().any},u.defaultProps={children:""}},35474:function(e,n,i){"use strict";i.d(n,{Z:function(){return H}});var t={};i.r(t),i.d(t,{ComingSoon:function(){return F},Error:function(){return T},Forbidden:function(){return N},Info:function(){return I},InternalServerError:function(){return R},Maintenance:function(){return L},PageNotFound:function(){return z}});var r,o=i(59740),a=i(56666),s=i(33028),c=i(55898),l=i.n(c),p=i(71171),u=i(39948),d=i(47685),v=i(96266),f=["icon","title","description","extra"];function m(e){var n=e.icon,i=e.title,t=e.description,r=e.extra,a=(0,o.Z)(e,f);return(0,v.jsxs)(x,(0,s.Z)((0,s.Z)({},a),{},{children:[n,"string"===typeof i?(0,v.jsx)(u.Z,{mt:3,fontSize:22,fontWeight:400,color:"#47494E",textAlign:"center",children:i}):i,"string"===typeof t?(0,v.jsx)(u.Z,{mt:1,fontSize:14,color:"#7F828B",textAlign:"center",children:t}):t,(0,v.jsx)(u.Z,{mt:3,children:r})]}))}m.propTypes={icon:l().element,title:l().oneOfType([l().string,l().element]),description:l().oneOfType([l().string,l().element]),actions:l().any,extra:l().element},m.defaultProps={icon:void 0,title:"",description:"",actions:null,extra:void 0};var x=(0,d.zo)("div")(r||(r=(0,p.Z)(["\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 100%;\n padding: 16px;\n\n background-color: #f7f8fb;\n"]))),h=m,g=i(36134),_=i(11532),Z={en:{404:{title:"404 - Page Not Found",description:"Sorry about that, the page you are looking for does not exist or has been moved."},403:{title:"403 \u2013 Forbidden",description:"Sorry, you are not authorized to access this page."},500:{title:"500 - Internal Server Error",description:"An internal server error has occurred. Please try again later."},error:{title:"Application Error",description:"Something went wrong. Please try again later."},maintenance:{title:"Offline for maintenance",description:"This app is undergoing maintenance right now. Please check back later."},comingSoon:{title:"Coming Soon",description:"Our website is under construction. We'll be here soon with our new website."}},zh:{404:{title:"404 - \u9875\u9762\u672a\u627e\u5230",description:"\u5f88\u62b1\u6b49\uff0c\u60a8\u6b63\u5728\u5bfb\u627e\u7684\u9875\u9762\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u79fb\u52a8\u3002"},403:{title:"403 \u2013 \u7981\u6b62\u8bbf\u95ee",description:"\u5f88\u62b1\u6b49\uff0c\u60a8\u6ca1\u6709\u6743\u9650\u8bbf\u95ee\u6b64\u9875\u9762\u3002"},500:{title:"500 - \u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef",description:"\u53d1\u751f\u4e86\u4e00\u4e2a\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\u3002\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002"},error:{title:"Application Error",description:"\u51fa\u9519\u4e86, \u8bf7\u7a0d\u540e\u518d\u8bd5\u3002"},maintenance:{title:"\u7ef4\u62a4\u4e2d",description:"\u5e94\u7528\u7a0b\u5e8f\u6b63\u5728\u8fdb\u884c\u7ef4\u62a4\u3002\u8bf7\u7a0d\u540e\u518d\u67e5\u770b\u3002"},comingSoon:{title:"\u5373\u5c06\u4e0a\u7ebf",description:"\u6211\u4eec\u7684\u7f51\u7ad9\u6b63\u5728\u5efa\u8bbe\u4e2d\u3002\u6211\u4eec\u5f88\u5feb\u5c31\u4f1a\u5728\u8fd9\u91cc\u63a8\u51fa\u6211\u4eec\u7684\u65b0\u7f51\u7ad9\u3002"}}},w=i(68420),j=["locale"],y=["locale"],b=["locale"],k=["locale"],S=["locale"],C=["locale"],P=function(e){e=["zh","en"].includes(e)?e:"";var n=((0,w.PE)()||{locale:"en"}).locale,i=e||n;return Z[i]?i:"en"};function z(e){var n=e.locale,i=(0,o.Z)(e,j);return n=P(n),(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(E,{}),title:Z[n][404].title,description:Z[n][404].description},i))}function N(e){var n=e.locale,i=(0,o.Z)(e,y);return n=P(n),(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(E,{}),title:Z[n][403].title,description:Z[n][403].description},i))}function R(e){var n=e.locale,i=(0,o.Z)(e,b);return n=P(n),(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(E,{}),title:Z[n][500].title,description:Z[n][500].description},i))}function T(e){var n=e.locale,i=(0,o.Z)(e,k);return n=P(n),(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(E,{}),title:Z[n].error.title,description:Z[n].error.description},i))}function L(e){var n=e.locale,i=(0,o.Z)(e,S);return n=P(n),(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(D,{}),title:Z[n].maintenance.title,description:Z[n].maintenance.description},i))}function F(e){var n=e.locale,i=(0,o.Z)(e,C);return n=P(n),(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(D,{}),title:Z[n].comingSoon.title,description:Z[n].comingSoon.description},i))}function I(e){return(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(D,{})},e))}function E(e){var n=(0,d.Fg)();return(0,v.jsx)(_.Z,(0,s.Z)({style:{color:n.palette.error.main,fontSize:72}},e))}function D(e){var n=(0,d.Fg)();return(0,v.jsx)(g.Z,(0,s.Z)({style:{color:n.palette.info.main,fontSize:72}},e))}z.status="404",N.status="403",R.status="500",T.status="error",L.status="maintenance",F.status="comingSoon",I.status="info";var U=["status"],M=Object.keys(t).reduce((function(e,n){return(0,s.Z)((0,s.Z)({},e),{},(0,a.Z)({},t[n].status||n,t[n]))}),{});function q(e){var n=e.status,i=(0,o.Z)(e,U);if(n){if(M[n]){var t=M[n];return(0,v.jsx)(t,(0,s.Z)({},i))}throw new Error("Please provide a valid status for Result.status. Valid values are: ".concat(Object.keys(M).join(", ")))}return(0,v.jsx)(h,(0,s.Z)({},i))}q.propTypes=(0,s.Z)({status:l().oneOfType([l().string,l().number])},h.propTypes),q.defaultProps={status:""};var H=q},11532:function(e,n,i){"use strict";var t=i(71600);n.Z=void 0;var r=t(i(56930)),o=i(96266),a=(0,r.default)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm4.3 14.3c-.39.39-1.02.39-1.41 0L12 13.41 9.11 16.3c-.39.39-1.02.39-1.41 0a.9959.9959 0 0 1 0-1.41L10.59 12 7.7 9.11a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L12 10.59l2.89-2.89c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41L13.41 12l2.89 2.89c.38.38.38 1.02 0 1.41z"}),"CancelRounded");n.Z=a},76005:function(e,n,i){"use strict";var t=i(71600);n.Z=void 0;var r=t(i(56930)),o=i(96266),a=(0,r.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");n.Z=a},36134:function(e,n,i){"use strict";var t=i(71600);n.Z=void 0;var r=t(i(56930)),o=i(96266),a=(0,r.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");n.Z=a}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6960],{16960:function(e,n,t){t.r(n),t.d(n,{default:function(){return qe}});var r,a=t(71171),i=t(33028),l=t(85493),o=t(6352),s=t.n(o),c=t(21371),d=t(72904),u=t(33518),p=t(68420),h=t(63902),m=t(51703),f=t(12073),x=t(15959),v=t(10866),g=t(4456),b=t(28864),k=t(99641),j=t(44846),w=t(88574),y=t(35966),Z=t(75793),P=t(38242),C=t(55309),N=t(59740),O=t(55898),B=t.n(O),E=t(96266),D=["children"];function L(e){var n=e.children,t=(0,N.Z)(e,D);return(0,E.jsx)(z,(0,i.Z)((0,i.Z)({},t),{},{children:n}))}L.propTypes={children:B().any.isRequired};var U,R,z=u.Z.div(r||(r=(0,a.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n height: 100%;\n\n .header {\n text-align: center;\n }\n\n .body {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-top: 30px;\n width: 100%;\n min-height: 200px;\n flex: 1;\n\n "," {\n padding: 24px;\n }\n\n "," {\n padding: 0 16px 16px;\n }\n }\n\n .footer {\n display: flex;\n justify-content: center;\n\n "," {\n padding-bottom: 34px;\n }\n\n "," {\n margin-top: auto;\n padding-bottom: 10px;\n }\n }\n"])),(function(e){return e.theme.breakpoints.up("md")}),(function(e){return e.theme.breakpoints.down("md")}),(function(e){return e.theme.breakpoints.up("sm")}),(function(e){return e.theme.breakpoints.down("md")})),_=t(77609),I=t(23484);var S=u.Z.a(U||(U=(0,a.Z)(["\n display: block;\n height: 36px;\n color: ",";\n"])),(function(e){return e.theme.palette.primary.main})),T=(0,u.Z)(L)(R||(R=(0,a.Z)(["\n .app-info_desc {\n font-weight: 400;\n margin-top: 40px;\n font-size: 18px;\n line-height: 21px;\n color: #222222;\n }\n\n .body {\n text-align: center;\n }\n\n "," {\n .app-info_desc {\n font-size: 16px;\n }\n }\n\n .circle_icon {\n font-size: 58px;\n color: ",";\n }\n"])),(function(e){return e.theme.breakpoints.down("md")}),(function(e){return"error"===e.variant?e.theme.palette.error.main:e.theme.palette.success.main})),M=function(){var e=(0,p.PE)().t,n=(0,Z.h6)().info,t=(0,I.Z)(),r=decodeURIComponent(t.get("accessUrl")||""),a=(0,_.H0)().meta;return(0,E.jsx)(T,{children:(0,E.jsx)("div",{className:"body",children:(0,E.jsx)(C.Z,{variant:"success",title:(0,P.getDisplayName)({meta:a},!0),subTitle:e("launchBlocklet.installSuccess",{serverName:n.name}),footer:(0,E.jsx)(S,{href:r,rel:"noreferrer","data-cy":"open-blocklet",children:e("common.open")})})})})},V=t(32723),A=t(34795),F=t(96234),H=t(39463),G=t(4651),W=t(86229),K=t(14491),q=t(60344),Y=t(17450),Q=t(49983),X=t(35266),J=t(76811),$=t(2660),ee=t(77429),ne=t(48086),te=t(38898),re=t(75506),ae=t.n(re),ie=t(50482),le=t.n(ie),oe=t(5057),se=t(15849),ce=t(67654),de=t(31853),ue=t(11397),pe=t.n(ue),he=t(52581),me=t(11476),fe=t(25339),xe=t(19762),ve=t(13455),ge=t(28726),be=["children"];function ke(e){var n=e.children,t=(0,N.Z)(e,be);return(0,E.jsx)(ge.Z,(0,i.Z)((0,i.Z)({variant:"contained",color:"primary"},t),{},{children:n}))}var je,we,ye,Ze,Pe=(0,oe.forwardRef)((function(e,n){return(0,E.jsx)(ke,(0,i.Z)((0,i.Z)({},e),{},{forwardedRef:n}))})),Ce=t(13932),Ne=t(93040),Oe=t(66436),Be=pe()("@abtnode/webapp:launch-blocklet:step-install"),Ee=function(e,n){return!n.statusChanged&&("installed"===e||"running"===e)&&!n.launching},De=function(e,n,t){return t("nft"===n?e?"launchBlocklet.dialog.nftFreeDescription":"launchBlocklet.dialog.nftPaidDescription":e?"launchBlocklet.dialog.freeDescription":"launchBlocklet.dialog.paidDescription")};function Le(){var e=(0,I.Z)(),n=(0,p.PE)(),t=n.t,r=n.locale,a=(0,Z.h6)(),i=a.api,o=a.info,c=(0,fe.Tt)(),d=c.session,u=c.api,h=(0,l.useNavigate)(),m=(0,_.H0)(),f=m.meta,x=m.isFree,v=m.appDid,g=m.sessionId,b=m.storeUrl,k=m.blockletMetaUrl,w=m.isExternal,C=m.setAppDid,N=m.launcherUrl,O=m.launcherSessionId,B=m.isInstalled,D=f?(0,P.getDisplayName)({meta:f},!0):null,L=(0,xe.VO)(),U=e.get("launchType"),R=e.get("chainHost"),z=e.get("nftId"),S=(0,oe.useRef)(null),T=(0,Q.R)(),M=T.decrypt,re=T.encryptKey,ie=(0,ce.Z)("skip-blocklet-setup",!1),ue=(0,F.Z)(ie,1)[0],pe=(0,de.Z)({launching:!1,visiting:!1,statusChanged:!1,isConnectOpen:!1,nextAccessUrl:"",loaded:!1,installError:null,progressIndex:0,connectData:{action:"",baseUrl:"",checkFn:function(){},extraParams:{}}}),ge=(0,F.Z)(pe,2),be=ge[0],ke=ge[1],je=(0,Ne.Iq)({user:d.user,launchType:U,nftId:z}),we=(0,H.getServerAuthMethod)(o,U,O,je),ye=(0,me.Z)(je?v:""),Ze=ye.status,Le=ye.eventName,Ue=e.get("from");(0,oe.useEffect)((function(){B||Te(),ke({loaded:!0})}),[]);var Re=function(){var e=(0,A.Z)((0,V.Z)().mark((function e(){var n,t,r;return(0,V.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(0,xe.bQ)(b,o.blockletRegistryList),t=n.isNew,r=n.decoded,!t){e.next=4;break}return e.next=4,i.addBlockletStore({input:{teamDid:o.did,url:r}});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Te=function(){var e=(0,A.Z)((0,V.Z)().mark((function e(){var n,t,r,a,i,l,c,u,p,h,m;return(0,V.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ke({installError:null}),null===d||void 0===d||!d.user||w||"serverless"===U){e.next=10;break}return e.prev=2,e.next=5,Re();case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),console.error("addNewRegistryToRegistryList error:",e.t0);case 10:if(!x){e.next=15;break}a="launch-free-blocklet-by-".concat(we),ke({isConnectOpen:!0,connectData:{action:a,baseUrl:"",checkFn:q.od.create({baseURL:null!==(n=null===(t=window)||void 0===t||null===(r=t.env)||void 0===r?void 0:r.apiPrefix)&&void 0!==n?n:"/"}).get,extraParams:{wt:(0,G.iK)(f),title:L,blockletMetaUrl:k,launchType:U,nftId:z,chainHost:decodeURIComponent(R),launcherUrl:N,launcherSessionId:O}}}),e.next=32;break;case 15:return u="launch-paid-blocklet-by-".concat(we),(p=new URL(window.location.href)).pathname=s()(null!==(i=null===(l=window)||void 0===l||null===(c=l.env)||void 0===c?void 0:c.apiPrefix)&&void 0!==i?i:"/","/api/did/".concat(u,"/token")),p.searchParams.set("wt",(0,G.iK)(f)),p.searchParams.set("_ek_",re),p.searchParams.set("title",L),p.searchParams.set("autoConnect",!1),p.searchParams.set("blockletMetaUrl",k),U&&p.searchParams.set("launchType",U),z&&p.searchParams.set("nftId",z),N&&p.searchParams.set("launcherUrl",N),O&&p.searchParams.set("launcherSessionId",O),e.next=29,q.hi.get(p.href);case 29:h=e.sent,m=h.data,ke({isConnectOpen:!0,connectData:{action:"verify-purchase-blocklet",baseUrl:new URL(k).origin,checkFn:q.od.create({baseURL:new URL(k).origin}).get,extraParams:{serverDid:o.did,blockletDid:null===f||void 0===f?void 0:f.did,nw:m.url}}});case 32:case"end":return e.stop()}}),e,null,[[2,7]])})));return function(){return e.apply(this,arguments)}}(),Me=function(){var e=(0,A.Z)((0,V.Z)().mark((function e(n){var r,a;return(0,V.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(W.Z.success(t("launchBlocklet.dialog.success")),!(r=Array.isArray(n)?n[n.length-1]:n).sessionToken){e.next=6;break}return(0,xe.ZB)(M(r.sessionToken)),e.next=6,d.refresh();case 6:ke({launching:!r.isInstalled,isConnectOpen:!1}),r.appDid&&(C(r.appDid,r.sessionId),(a=new URL(window.location.href)).searchParams.set("appDid",r.appDid),a.searchParams.set("sessionId",r.sessionId),window.history.replaceState(null,"",a.toString()));case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Ve=function(n){var t="/".concat(o.routing.adminPath,"/blocklets/").concat(n.meta.did,"/configuration").replace(/\/+/g,"/"),r="/launch-blocklet/complete?status=installed&name=".concat(encodeURIComponent(D),"&accessUrl=").concat(encodeURIComponent(t),"&blocklet_meta_url=").concat(k),a=e.get("fromLauncher");a&&(r+="&fromLauncher=".concat(a)),U&&(r+="&launchType=".concat(U)),R&&(r+="&chainHost=".concat(R)),h(r)},Ae=function(){var n=(0,A.Z)((0,V.Z)().mark((function n(t){var r,a,i,l,s,c,d;return(0,V.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(Be("visitBlocklet",{status:Ze,state:be,appDid:v}),!be.visiting){n.next=3;break}return n.abrupt("return");case 3:return ke({visiting:!0}),r=(0,K.A6)({blocklet:t}),n.next=7,(0,xe.D)(r);case 7:if(a=n.sent,!(ae()(a)&&"serverless"!==U||ue)){n.next=12;break}return ke({visiting:!1}),setTimeout((function(){Ve(t)}),1e3),n.abrupt("return");case 12:if(!ae()(a)){n.next=15;break}return ke({visiting:!1}),n.abrupt("return");case 15:if(!1!==Ee(Ze,be)){n.next=27;break}return n.prev=16,n.next=19,u.post("/api/launch/".concat(g));case 19:l=n.sent,s=l.data,i=s.setupToken,n.next=27;break;case 24:n.prev=24,n.t0=n.catch(16),W.Z.error((0,xe.Z)(n.t0));case 27:(c=new URL(a)).searchParams.set("serverUrl",(0,G.RU)(o)),"running"!==t.status&&c.searchParams.set("__start__","1"),(d=e.get("fromLauncher"))&&c.searchParams.set("fromLauncher",d),U&&c.searchParams.set("launchType",U),z&&c.searchParams.set("nftId",z),R&&c.searchParams.set("chainHost",R),i&&c.searchParams.set("setupToken",i),ke({nextAccessUrl:c.href,visiting:!1}),setTimeout((function(){window.location.href=c.href}),1e3);case 38:case"end":return n.stop()}}),n,null,[[16,24]])})));return function(e){return n.apply(this,arguments)}}(),Fe=[t("launchBlocklet.waiting.verifying"),t("launchBlocklet.waiting.downloading"),t("launchBlocklet.waiting.extracting"),t("upgrading"===Ze?"common.upgrading":"launchBlocklet.waiting.installing"),t("launchBlocklet.waiting.done")],He=function(){Be("handleInstalledProgress",{status:Ze,state:be}),Ze&&(ke({progressIndex:4}),S.current&&(clearTimeout(S.current),S.current=null),S.current=setTimeout((function(){i.getBlocklet({input:{did:v,attachRuntimeInfo:!0}}).then((function(e){e.blocklet&&Ae(e.blocklet)}))}),500))};if((0,oe.useEffect)((function(){if("serverless"!==U||Le!==J.BlockletEvents.nftConsumed)switch(Ze){case"waiting":ke({progressIndex:1,statusChanged:!0});break;case"downloading":ke({progressIndex:2,statusChanged:!0});break;case"installing":case"upgrading":ke({progressIndex:3,statusChanged:!0});break;case"installed":if("serverless"===U&&!(0,Ne.MZ)(ye))break;He();break;case"starting":case"running":case"stopped":He();break;case"corrupted":case"error":var e,n={message:ye.error.message,name:ye.eventName};if([J.BlockletEvents.downloadFailed,J.BlockletEvents.installFailed].includes(ye.eventName)?n.action="retry":"error"!==Ze&&"corrupted"!==Ze||(n.action="view"),!le()(n,be.installError))null!==ye&&void 0!==ye&&null!==(e=ye.error)&&void 0!==e&&e.message&&W.Z.error((0,xe.Z)(ye.error))}else He()}),[Ze,Le,ye]),Be("render",{status:Ze,eventName:Le,launchType:U,runtimeBlockletState:ye,state:be}),d.user&&null===Ze||ae()(f))return(0,E.jsx)(y.Z,{relative:"parent",children:(0,E.jsx)(j.Z,{})});if(be.installError){var Ge={view:!w&&(0,E.jsx)(Pe,{className:"bottom-button",component:se.Link,to:"/blocklets/".concat(v,"/overview"),"data-cy":"view-blocklet",color:"primary",variant:"contained",children:t("launchBlocklet.viewApplication")}),retry:(0,E.jsxs)(Ie,{children:[Ue&&(0,E.jsx)(Pe,{variant:"text",className:"bottom-button","data-cy":"go-back",disabled:be.isConnectOpen,onClick:function(){window.location.href=Ue},children:t("common.back")}),(0,E.jsxs)(Pe,{className:"bottom-button","data-cy":"retry-install",disabled:be.isConnectOpen,onClick:Te,children:[be.isConnectOpen&&(0,E.jsx)(j.Z,{size:16}),t("common.retry")]})]})},We=be.installError.name?be.installError.name.replace("blocklet.",""):"installFailed";return(0,E.jsx)(Se,{variant:"error",title:D,subTitle:(0,E.jsxs)(_e,{children:[(0,E.jsx)("div",{children:t("launchBlocklet.error.".concat(We))}),be.installError.message&&(0,E.jsx)("div",{className:"error-desc",children:t("common.errorMessage")+be.installError.message})]}),footer:Ge[be.installError.action]})}if(Ee(Ze,be))return Be("alreadyExists",{status:Ze,state:be,runtimeBlockletState:ye}),(0,E.jsx)(Se,{variant:"info",title:t("common.reminder"),subTitle:t("launchBlocklet.alreadyExists",{name:(0,P.getDisplayName)({meta:f},!0)}),footer:(0,E.jsxs)("div",{children:[!be.nextAccessUrl&&(0,E.jsx)(j.Z,{size:16}),be.nextAccessUrl&&(0,E.jsx)(te.Z,{href:be.nextAccessUrl,"data-cy":"open-blocklet",children:t("launchBlocklet.redirect")})]})});var Ke=!be.launching&&!Ze;return(0,E.jsxs)(ze,{children:[(0,E.jsx)("div",{className:"header",children:(0,E.jsx)($.Z,{title:t(Ke?"common.install":"common.installing"),subTitle:Ke?t("launchBlocklet.subTitle",{appName:D,serverName:o.name}):""})}),(0,E.jsxs)("div",{className:"body",children:[Ke&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{className:"illustrations",children:[(0,E.jsx)("div",{className:"ills-block ills-block-left",children:(0,E.jsxs)("div",{className:"ills-block-inner",children:[(0,E.jsx)(ve.Z,{className:"i-icon",blocklet:{meta:f},blockletMetaUrl:k}),(0,E.jsx)("div",{className:"i-name",children:D})]})}),(0,E.jsx)(ne.Z,{className:"arrow-icon"}),(0,E.jsx)("div",{className:"ills-block ills-block-right",children:(0,E.jsxs)("div",{className:"ills-block-inner",children:[(0,E.jsx)("img",{width:"64",height:"64",src:he.Z,alt:""}),(0,E.jsx)("div",{className:"i-name",children:o.name}),(0,E.jsx)(Y.Z,{size:12,responsive:!1,compact:!0,did:o.did})]})})]}),be.loaded&&!B&&!be.launching&&(0,E.jsxs)(Pe,{className:"bottom-button","data-cy":"start-launch",disabled:be.isConnectOpen,onClick:Te,children:[be.isConnectOpen&&(0,E.jsx)(j.Z,{size:16}),t("launchBlocklet.confirmInstall")]})]}),be.launching&&(0,E.jsxs)(Oe.Z,{children:[(0,E.jsx)(X.Z,{increaseSpeed:.3,messageLoop:!1,message:(0,E.jsx)(ee.Z,{steps:Fe,stepIndex:be.progressIndex,autoGrowth:4===be.progressIndex?1e3:4e3})}),[1,2].includes(be.progressIndex)&&(0,E.jsx)(Ce.Z,{appDid:v})]})]}),be.isConnectOpen&&(0,E.jsx)(Ce.Z,{appDid:v,visible:!1}),(0,E.jsx)(Q.Z,{open:be.isConnectOpen,popup:!0,saveConnect:!1,className:"connect",baseUrl:be.connectData.baseUrl,action:be.connectData.action,checkFn:be.connectData.checkFn,extraParams:be.connectData.extraParams,checkTimeout:6e5,webWalletUrl:(0,xe.yP)(o),onSuccess:Me,onClose:function(){return ke({isConnectOpen:!1})},locale:r,messages:{title:"".concat(t("launchBlocklet.dialog.title")),scan:De(x,we,t),confirm:t("launchBlocklet.dialog.confirm"),success:t("launchBlocklet.dialog.success")}})]})}var Ue,Re,ze=(0,u.Z)(L)(je||(je=(0,a.Z)(["\n .body {\n align-items: center;\n animation: fadein ease 0.3s;\n }\n\n .illustrations {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: start;\n text-align: center;\n margin-top: 16px;\n margin-bottom: 40px;\n width: 100%;\n }\n\n .ills-block,\n .ills-block-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-shrink: 0;\n flex: 1;\n }\n .ills-block {\n max-width: 220px;\n .i-icon {\n width: 64px;\n height: 64px;\n }\n\n .i-name {\n margin-top: 16px;\n font-weight: 400;\n font-size: 16px;\n color: #222222;\n }\n\n .i-sub-name {\n color: #999999;\n }\n }\n\n .arrow-icon {\n align-self: start;\n color: #c4c5ca;\n font-size: 30px;\n margin: 16px 0 0;\n "," {\n margin: 25px 24px 0;\n }\n }\n\n @keyframes fadein {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n"])),(function(e){return e.theme.breakpoints.down("md")})),_e=u.Z.div(we||(we=(0,a.Z)(["\n line-height: 1.4em;\n .error-desc {\n margin-top: 8px;\n word-wrap: break-word;\n color: ",";\n }\n"])),(function(e){return e.theme.palette.grey[500]})),Ie=u.Z.div(ye||(ye=(0,a.Z)(["\n display: flex;\n justify-content: space-around;\n flex-wrap: wrap;\n button {\n margin: 0 10px 18px;\n }\n"]))),Se=(0,u.Z)(C.Z)(Ze||(Ze=(0,a.Z)(["\n .result-footer {\n height: auto;\n }\n"]))),Te=t(31440),Me=t(35432),Ve=t(32828);function Ae(e){var n,t=e.onClickNext,r=e.handleDescEle,a=e.showPageHeader,i=(0,l.useNavigate)(),o=(0,oe.useState)(null),s=(0,F.Z)(o,2),c=s[0],d=s[1],u=(0,oe.useState)(!1),h=(0,F.Z)(u,2),m=h[0],f=h[1],x=(0,p.PE)().t,v=(0,Z.h6)(),g=v.info,b=v.api,k=(0,_.H0)(),w=k.meta,N=k.isRunning,O=k.isInstalled,B=k.appDid,D=k.isExternal,L=(0,oe.useMemo)((function(){if(!D)return"/blocklets/".concat(B,"/overview");if(!c)return"";var e=new URL(c);return"".concat(e.origin).concat(Me.WELLKNOWN_SERVICE_PATH_PREFIX,"/admin")}),[c,D,B]),U=t||function(){i("/launch-blocklet/install".concat(window.location.search))},R=function(){var e=(0,A.Z)((0,V.Z)().mark((function e(){var n,t,r,a;return(0,V.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,f(!0),e.next=4,b.getBlocklet({input:{did:w.did,attachRuntimeInfo:!0}});case 4:return n=e.sent,t=n.blocklet,r=(0,K.A6)({blocklet:t}),e.next=9,(0,xe.D)(r);case 9:if((a=e.sent)||!ae()(a)){e.next=13;break}return d(null),e.abrupt("return");case 13:d(new URL(a).href),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(0),W.Z.error(e.t0.message);case 19:return e.prev=19,f(!1),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[0,16,19,22]])})));return function(){return e.apply(this,arguments)}}();if((0,oe.useEffect)((function(){(N||O&&D)&&R()}),[N,D,O]),O){var z=N?"alreadyRunning":"alreadyInstalled";return(0,E.jsx)(C.Z,{variant:"info",title:x("common.reminder"),subTitle:x("launchBlocklet.".concat(z),{name:(0,P.getDisplayName)({meta:w},!0)}),footer:(0,E.jsxs)(Ke,{children:[(0,E.jsx)(Pe,{loading:!L,"data-cy":"view-blocklet",component:D?void 0:se.Link,to:L,href:L,variant:N?"outlined":"contained",color:"primary",children:x("launchBlocklet.viewApplication")}),N&&(0,E.jsx)(Pe,{loading:m,className:"last-button",disabled:!c,href:c,"data-cy":"open-blocklet",children:x("common.open")})]})})}return g?(0,Ve.default)(w)||null!==w&&void 0!==w&&null!==(n=w.components)&&void 0!==n&&n.length?(0,E.jsxs)(We,{children:[a&&(0,E.jsx)($.Z,{title:x("launchBlocklet.introduction"),subTitle:x("launchBlocklet.welcome")}),(0,E.jsx)(Te.Z,{meta:w,onClickNext:U,handleDescEle:r})]}):(0,E.jsx)(We,{className:"center",children:(0,E.jsx)(C.Z,{variant:"error",subTitle:x("launchBlocklet.error.resourceBlocklet")})}):(0,E.jsx)(y.Z,{relative:"parent",children:(0,E.jsx)(j.Z,{})})}Ae.defaultProps={onClickNext:null,handleDescEle:"",showPageHeader:!0};var Fe,He,Ge,We=u.Z.div(Ue||(Ue=(0,a.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n height: 100%;\n &.center {\n justify-content: center;\n }\n"]))),Ke=u.Z.div(Re||(Re=(0,a.Z)(["\n .MuiButton-root {\n "," {\n min-width: 200px;\n }\n }\n .last-button {\n margin-left: ",";\n }\n"])),(function(e){return e.theme.breakpoints.up("md")}),(function(e){return e.theme.spacing(2)}));function qe(){var e=(0,d.Z)((function(e){return e.breakpoints.down("md")})),n=(0,p.PE)(),t=n.t,r=n.locale,a=(0,Z.h6)().info,o=(0,xe.yP)(a),u=(0,_.H0)(),P=u.serverUrl,C=u.fromLauncher,N=u.meta,O=u.isFree,B=u.loading,D=u.error,L=u.storeUrl,U=s()((0,xe.Y5)(),"/launch-blocklet"),R=[{key:"install",name:t("launchBlocklet.steps.installApp"),path:s()(U,"install")},{key:"setup",name:t("setup.steps.launchApp")}],z=[{key:"agreement",name:t("launchBlocklet.introduction"),path:s()(U,"agreement")}].concat(R),I=function(){P&&window.open(P)},S=(0,E.jsx)(Xe,{className:"".concat(P?"logo-can-click":""),children:(0,E.jsx)(k.Z,{onClick:I,logo:e?(0,E.jsx)(v.Z,{width:"32",height:"32"}):(0,E.jsx)(g.Z,{width:"128",height:"48"})})});C&&(z=[{key:"purchase-space",name:t("launchBlocklet.steps.purchaseSpace")},{key:"prepare-space",name:t("launchBlocklet.steps.prepareSpace")}].concat(R),S=(0,E.jsx)(Xe,{className:"".concat(P?"logo-can-click":""),children:(0,E.jsx)(k.Z,{logo:e?(0,E.jsx)(v.Z,{onClick:I,width:"32",height:"32"}):(0,E.jsx)(g.Z,{onClick:I,width:"128",height:"48"}),previousData:{logo:e?(0,E.jsx)(x.Z,{width:"32",height:"32"}):(0,E.jsx)(b.Z,{width:"145",height:"48"})}})}));var T={meta:N,isFree:O};return(0,E.jsx)(m.W,{steps:z,children:(0,E.jsx)(h.Z,{locale:r,loading:B,blockletMeta:(0,i.Z)((0,i.Z)({},N),{},{isFree:O}),useOfSkeleton:!1,navLogo:S,headerEndAddons:(0,E.jsx)(f.Z,{webWalletUrl:o,SessionContext:fe.B3}),pcWidth:"80%",style:{height:"100%"},logoUrl:N&&N.logo?(0,xe.aZ)({did:N.did,baseUrl:L,logoPath:N.logo}):null,children:(0,E.jsxs)(Qe,{children:[(0,E.jsx)(c.Global,{styles:Ye}),B&&(0,E.jsx)(y.Z,{relative:"parent",children:(0,E.jsx)(j.Z,{})}),!B&&D&&(0,E.jsx)(y.Z,{relative:"parent",children:(0,E.jsx)(w.Z,{style:{wordBreak:"break-all"},variant:"icon",type:"error",children:D})}),!B&&!D&&(0,E.jsxs)(l.Routes,{children:[(0,E.jsx)(l.Route,{path:"agreement",element:(0,E.jsx)(Ae,{})}),(0,E.jsx)(l.Route,{path:"install",element:(0,E.jsx)(Le,{})}),(0,E.jsx)(l.Route,{path:"complete",element:(0,E.jsx)(M,{blocklet:T})}),(0,E.jsx)(l.Route,{path:"*",element:(0,E.jsx)(l.Navigate,{to:"agreement".concat(window.location.search),replace:!0})})]})]})})})}var Ye=(0,c.css)(Fe||(Fe=(0,a.Z)(["\n html,\n body,\n #root,\n #root > .wrapper {\n height: 100%;\n }\n"]))),Qe=u.Z.div(He||(He=(0,a.Z)(["\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n\n .bottom-button {\n min-width: 200px;\n }\n"]))),Xe=u.Z.div(Ge||(Ge=(0,a.Z)(["\n margin-top: -1px;\n &.logo-can-click {\n cursor: pointer;\n }\n"])))},31440:function(e,n,t){t.d(n,{Z:function(){return v}});var r,a=t(71171),i=t(55898),l=t.n(i),o=t(85493),s=t(33518),c=t(68420),d=t(40265),u=t(44566),p=t(33028),h=t(33665),m=t(35432),f=t(96266);function x(e){var n=Object.assign({},((0,h.Z)(e),e));return(0,f.jsxs)("div",(0,p.Z)((0,p.Z)({},n),{},{style:{width:"100%"},children:[(0,f.jsx)("h3",{children:"End User License Agreement for Application"}),(0,f.jsxs)("p",{children:["Blocklet Server License Agreement ",m.COPYRIGHT_OWNER," version 2020-08-28"]}),(0,f.jsx)("p",{children:"BLOCKLET SERVER LICENSE AGREEMENT"}),(0,f.jsx)("p",{children:"\u6682\u65e0"})]}))}function v(e){var n=e.meta,t=e.onClickNext,r=e.handleDescEle,a=(0,o.useNavigate)(),i=(0,c.PE)(),l=i.t,s=i.locale,p=t||function(){a("/launch-blocklet/install".concat(window.location.search))};return(0,f.jsxs)(g,{children:[(0,f.jsx)("div",{className:"app-content",children:(0,f.jsx)("div",{className:"agreement",children:(0,f.jsx)("div",{className:"agreement-content",children:(0,f.jsx)(u.Z,{blockletMeta:{data:n},locale:s,handleDescEle:r})})})}),(0,f.jsx)("div",{className:"button-container","data-cy":"agree-all",children:(0,f.jsx)(d.Z,{onContinue:p,description:(0,f.jsx)(x,{}),texts:{listenName:l("launchBlocklet.license"),buttonNext:l("launchBlocklet.next")}})})]})}v.propTypes={meta:l().object.isRequired,onClickNext:l().func,handleDescEle:l().node},v.defaultProps={onClickNext:null,handleDescEle:""};var g=s.Z.div(r||(r=(0,a.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n height: 100%;\n flex: 1;\n .app-content {\n padding: 2px 24px 24px;\n "," {\n padding-top: 10px;\n }\n width: 100%;\n flex: 1;\n letter-spacing: normal;\n }\n .agreement {\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n border: 1px solid ",";\n border-radius: 12px;\n "," {\n margin-top: 24px;\n }\n "," {\n margin-top: 16px;\n }\n .agreement-content {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n font-size: 14px;\n overflow-y: auto;\n "," {\n padding: 0 24px;\n }\n "," {\n padding: 0 16px;\n }\n &:after {\n display: block;\n content: '';\n height: 24px;\n }\n }\n }\n .button-container {\n padding-top: 24px;\n padding-bottom: 34px;\n "," {\n padding-right: 24px;\n margin-left: auto;\n }\n "," {\n padding-top: 0;\n padding-bottom: 16px;\n }\n }\n"])),(function(e){return e.theme.breakpoints.down("md")}),(function(e){return e.theme.palette.grey[100]}),(function(e){return e.theme.breakpoints.up("md")}),(function(e){return e.theme.breakpoints.down("md")}),(function(e){return e.theme.breakpoints.up("md")}),(function(e){return e.theme.breakpoints.down("md")}),(function(e){return e.theme.breakpoints.up("md")}),(function(e){return e.theme.breakpoints.down("md")}))},28864:function(e,n,t){n.Z=void 0;(r=t(5057))&&r.__esModule;var r,a=t(96266);function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function o(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var s=function(e){return(0,a.jsxs)("svg",l(l({},e),{},{children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.005 25.994V10h7.737a3.79 3.79 0 0 1 3.79 3.79v1.149a3.777 3.777 0 0 1-1.035 2.602 3.788 3.788 0 0 1 1.901 3.286v1.377a3.79 3.79 0 0 1-3.79 3.79h-8.603zm1.684-8.957h6.226a2.105 2.105 0 0 0 1.932-2.098v-1.15a2.105 2.105 0 0 0-2.105-2.105h-6.053v5.353zm0 7.273v-5.582l6.92-.007c1.163 0 2.105.943 2.105 2.106v1.377a2.105 2.105 0 0 1-2.105 2.106h-6.92zM97.255 10v15.994h-1.762V10h1.762zm8.733 4.319h-1.827a3.81 3.81 0 0 0-3.811 3.81v4.054a3.81 3.81 0 0 0 3.811 3.81h1.827a3.811 3.811 0 0 0 3.811-3.81V18.13a3.811 3.811 0 0 0-3.811-3.81zm-1.827 1.762a2.05 2.05 0 0 0-2.049 2.048v4.054a2.05 2.05 0 0 0 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049V18.13a2.048 2.048 0 0 0-2.048-2.048h-1.827zM125.204 26v-5.754h2.148L130.674 26h2.035l-3.821-6.618 2.993-5.184h-2.035l-2.474 4.286h-2.168V10h-1.762v16h1.762zm-5.556-7.56v-.31a2.048 2.048 0 0 0-2.048-2.05h-1.827a2.048 2.048 0 0 0-2.049 2.05v4.053c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.312h-1.762zm17.918 7.554V10h-1.762v15.994h1.762zm4.989-5.357v1.546c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.746h.001v1.762h-7.687zm5.924-1.762h-5.924v-.746c0-1.131.917-2.048 2.049-2.048h1.827c1.131 0 2.048.917 2.048 2.048v.746zm5.489-1.912H152.4v-1.762h1.568v-2.848h1.684v2.848h4.077v1.762h-4.077v5.677a1.669 1.669 0 1 0 3.339 0v-.35h1.684v.35a3.353 3.353 0 1 1-6.707 0v-5.677z",fill:"#121319"}),(0,a.jsx)("path",{d:"M92.112 50.259v3.108H80.254V33.123h3.766v17.136h8.092zM101.843 47.235c-.999.047-1.839.135-2.52.266-.681.121-1.227.28-1.638.476-.41.196-.705.425-.882.686a1.49 1.49 0 0 0-.266.854c0 .606.177 1.04.532 1.302.364.261.835.392 1.414.392.71 0 1.32-.126 1.834-.378.523-.261 1.031-.654 1.526-1.176v-2.422zm-7.924-6.23c1.652-1.512 3.64-2.268 5.964-2.268.84 0 1.591.14 2.254.42.663.27 1.223.653 1.68 1.148a4.765 4.765 0 0 1 1.036 1.75c.243.681.364 1.428.364 2.24v9.072h-1.568c-.327 0-.579-.047-.756-.14-.177-.103-.317-.303-.42-.602l-.308-1.036c-.364.327-.719.616-1.064.868a6.54 6.54 0 0 1-1.078.616 5.498 5.498 0 0 1-1.204.378c-.42.093-.887.14-1.4.14-.607 0-1.167-.08-1.68-.238a3.775 3.775 0 0 1-1.33-.742 3.297 3.297 0 0 1-.868-1.218c-.206-.486-.308-1.05-.308-1.694a3.308 3.308 0 0 1 .77-2.114 5.12 5.12 0 0 1 1.078-.924c.438-.29.975-.541 1.61-.756a13.74 13.74 0 0 1 2.24-.518c.85-.14 1.82-.224 2.912-.252v-.84c0-.962-.205-1.67-.616-2.128-.411-.467-1.003-.7-1.778-.7-.56 0-1.027.065-1.4.196-.364.13-.686.28-.966.448-.28.159-.537.303-.77.434-.224.13-.476.196-.756.196-.243 0-.448-.06-.616-.182a1.67 1.67 0 0 1-.406-.448l-.616-1.106zM120.85 39.003v14.364h-2.114c-.458 0-.747-.21-.868-.63l-.238-1.148a7.862 7.862 0 0 1-1.946 1.456c-.71.364-1.545.546-2.506.546-.784 0-1.48-.13-2.086-.392a4.236 4.236 0 0 1-1.512-1.134 5.016 5.016 0 0 1-.938-1.722 7.52 7.52 0 0 1-.308-2.212v-9.128h3.458v9.128c0 .877.2 1.559.602 2.044.41.476 1.022.714 1.834.714.597 0 1.157-.13 1.68-.392a6.037 6.037 0 0 0 1.484-1.106V39.003h3.458zM127.512 40.767c.29-.29.593-.556.91-.798a5.623 5.623 0 0 1 2.184-1.036 5.542 5.542 0 0 1 1.344-.154c.784 0 1.48.135 2.086.406a3.957 3.957 0 0 1 1.512 1.12 4.69 4.69 0 0 1 .924 1.722c.215.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.2-1.554-.602-2.03-.401-.486-1.012-.728-1.834-.728-.597 0-1.157.135-1.68.406-.522.27-1.017.64-1.484 1.106v10.388h-3.458V39.003h2.114c.448 0 .742.21.882.63l.238 1.134zM150.373 42.04c-.103.132-.205.234-.308.309-.093.075-.233.112-.42.112a.982.982 0 0 1-.518-.154 9.315 9.315 0 0 0-.602-.364 3.902 3.902 0 0 0-.84-.364c-.317-.112-.714-.168-1.19-.168-.607 0-1.139.112-1.596.336-.457.215-.84.527-1.148.938-.299.41-.523.91-.672 1.498-.149.578-.224 1.236-.224 1.974 0 .765.079 1.447.238 2.044.168.597.406 1.101.714 1.512.308.401.681.71 1.12.924.439.205.933.308 1.484.308.551 0 .994-.066 1.33-.196.345-.14.635-.29.868-.448.233-.168.434-.318.602-.448a.925.925 0 0 1 .588-.21c.28 0 .49.107.63.322l.994 1.26a6.449 6.449 0 0 1-1.246 1.134 7.144 7.144 0 0 1-1.4.728 7.208 7.208 0 0 1-1.484.378 10.3 10.3 0 0 1-1.512.112 6.448 6.448 0 0 1-2.506-.49 6 6 0 0 1-2.058-1.456c-.588-.635-1.055-1.41-1.4-2.324-.336-.924-.504-1.974-.504-3.15 0-1.055.149-2.03.448-2.926.308-.906.756-1.685 1.344-2.338a6.09 6.09 0 0 1 2.184-1.554c.868-.373 1.867-.56 2.996-.56 1.073 0 2.011.172 2.814.518.812.345 1.54.84 2.184 1.484l-.91 1.26zM157.049 40.543a7.51 7.51 0 0 1 1.848-1.274c.672-.327 1.46-.49 2.366-.49.784 0 1.479.135 2.086.406.606.261 1.11.634 1.512 1.12.41.476.718 1.05.924 1.722.214.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.201-1.554-.602-2.03-.402-.486-1.013-.728-1.834-.728-.598 0-1.158.135-1.68.406-.523.27-1.018.64-1.484 1.106v10.388h-3.458V32.563h3.458v7.98zM178.649 44.533a3.95 3.95 0 0 0-.196-1.26 2.908 2.908 0 0 0-.559-1.05 2.562 2.562 0 0 0-.967-.7c-.382-.178-.83-.266-1.343-.266-.999 0-1.788.285-2.367.854-.569.57-.933 1.377-1.091 2.422h6.523zm-6.593 2.086c.056.737.186 1.377.392 1.918.205.532.475.975.811 1.33.336.345.733.607 1.191.784.466.168.98.252 1.54.252s1.04-.066 1.442-.196c.41-.13.765-.276 1.063-.434.308-.159.575-.304.799-.434.233-.13.457-.196.671-.196.29 0 .504.107.644.322l.995 1.26a5.93 5.93 0 0 1-1.289 1.134 7.641 7.641 0 0 1-1.498.728 8.291 8.291 0 0 1-1.581.378c-.532.074-1.05.112-1.554.112a7.766 7.766 0 0 1-2.786-.49 6.352 6.352 0 0 1-2.24-1.47c-.635-.653-1.134-1.456-1.498-2.408-.364-.962-.546-2.072-.546-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.462 6.462 0 0 1 2.17-1.526c.858-.373 1.824-.56 2.898-.56.905 0 1.74.144 2.506.434a5.41 5.41 0 0 1 1.973 1.274c.551.55.981 1.232 1.289 2.044.317.803.475 1.722.475 2.758 0 .523-.055.877-.167 1.064-.112.177-.327.266-.644.266h-8.89zM187.615 41.495c.448-.859.98-1.53 1.596-2.016.616-.495 1.344-.742 2.184-.742.662 0 1.194.145 1.596.434l-.224 2.59c-.047.168-.117.29-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.023-.63-.07a4.704 4.704 0 0 0-.798-.07c-.383 0-.724.056-1.022.168-.299.112-.57.275-.812.49a3.359 3.359 0 0 0-.63.756c-.178.298-.346.64-.504 1.022v8.848h-3.458V39.003h2.03c.354 0 .602.065.742.196.14.121.233.345.28.672l.21 1.624z",fill:"#121319"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 10.642L30.72 0 12.288 10.642v14.152L0 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L61.44 53.172V31.89l-12.288-7.095V10.642zM59.52 32.997l-12.288-7.094V11.75L30.72 2.217 14.208 11.75v14.153L1.92 32.997v19.067l16.512 9.533L30.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#paint0_linear_615_416)"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 24.83L30.72 14.19 12.288 24.831v21.283L30.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L30.72 54.539l-16.512-9.533V25.939zm14.52-3.756l.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762l.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L28.725 46.33l-5.819-3.384zm4.04-12.717l1.442-.827L37.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133l-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#paint1_linear_615_416)"}),(0,a.jsxs)("defs",{children:[(0,a.jsxs)("linearGradient",{id:"paint0_linear_615_416",x1:"30.72",y1:"95.721",x2:"94.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#0FA4B7"}),(0,a.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,a.jsxs)("linearGradient",{id:"paint1_linear_615_416",x1:"27.437",y1:"99.246",x2:"97.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#0FA4B7"}),(0,a.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};s.defaultProps={width:"193",height:"64",viewBox:"0 0 193 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.displayName="launcher-logo";var c=s;n.Z=c},15959:function(e,n,t){n.Z=void 0;(r=t(5057))&&r.__esModule;var r,a=t(96266);function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function o(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var s=function(e){return(0,a.jsxs)("svg",l(l({},e),{},{children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 10.642L31.72 0 13.288 10.642v14.152L1 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L62.44 53.172V31.89l-12.288-7.095V10.642zM60.52 32.997l-12.288-7.094V11.75L31.72 2.217 15.208 11.75v14.153L2.92 32.997v19.067l16.512 9.533L31.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#paint0_linear_615_428)"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 24.83L31.72 14.19 13.288 24.831v21.283L31.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L31.72 54.539l-16.512-9.533V25.939zm14.52-3.756l.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762l.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L29.725 46.33l-5.819-3.384zm4.04-12.717l1.442-.827L38.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133l-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#paint1_linear_615_428)"}),(0,a.jsxs)("defs",{children:[(0,a.jsxs)("linearGradient",{id:"paint0_linear_615_428",x1:"31.72",y1:"95.721",x2:"95.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#0FA4B7"}),(0,a.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,a.jsxs)("linearGradient",{id:"paint1_linear_615_428",x1:"28.437",y1:"99.246",x2:"98.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#0FA4B7"}),(0,a.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};s.defaultProps={width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.displayName="launcher-logo-notext";var c=s;n.Z=c}}]);
|