@abtnode/webapp 1.16.27-beta-426c1690 → 1.16.27-beta-d27e19fa

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.
Files changed (75) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/build/asset-manifest.json +35 -36
  4. package/build/index.html +1 -1
  5. package/build/service-worker.js +1 -1
  6. package/build/static/js/1667.0305ed57.chunk.js +1 -0
  7. package/build/static/js/1685.7e872f73.chunk.js +2 -0
  8. package/build/static/js/1794.ff8418be.chunk.js +1 -0
  9. package/build/static/js/1869.958bc1ed.chunk.js +1 -0
  10. package/build/static/js/2226.183fdd58.chunk.js +1 -0
  11. package/build/static/js/2355.ed718f0c.chunk.js +1 -0
  12. package/build/static/js/2536.2c1f5173.chunk.js +1 -0
  13. package/build/static/js/2646.0f064d37.chunk.js +1 -0
  14. package/build/static/js/{5526.d2a1b8f0.chunk.js → 3047.2530c08d.chunk.js} +2 -2
  15. package/build/static/js/3108.ce45067a.chunk.js +1 -0
  16. package/build/static/js/3217.0647b52d.chunk.js +1 -0
  17. package/build/static/js/3595.f18b855e.chunk.js +1 -0
  18. package/build/static/js/3646.656a10a6.chunk.js +1 -0
  19. package/build/static/js/3815.bb373a04.chunk.js +1 -0
  20. package/build/static/js/3998.be52d2b0.chunk.js +1 -0
  21. package/build/static/js/4542.bf4b1ee9.chunk.js +1 -0
  22. package/build/static/js/{4804.9dc4ff41.chunk.js → 4804.4efecf89.chunk.js} +2 -2
  23. package/build/static/js/4906.ce938f60.chunk.js +1 -0
  24. package/build/static/js/{5083.ecb059e3.chunk.js → 5083.b86f0c1f.chunk.js} +2 -2
  25. package/build/static/js/5433.2b6a887c.chunk.js +1 -0
  26. package/build/static/js/5515.b6a25364.chunk.js +1 -0
  27. package/build/static/js/5760.4f263e0c.chunk.js +1 -0
  28. package/build/static/js/{592.c99306f8.chunk.js → 592.4624a4d2.chunk.js} +2 -2
  29. package/build/static/js/6129.bafd3307.chunk.js +1 -0
  30. package/build/static/js/{6234.42a5a205.chunk.js → 6234.93acfe87.chunk.js} +1 -1
  31. package/build/static/js/6399.d5c8f353.chunk.js +1 -0
  32. package/build/static/js/7702.059ea71f.chunk.js +1 -0
  33. package/build/static/js/8110.9889f226.chunk.js +1 -0
  34. package/build/static/js/8299.854a15c8.chunk.js +1 -0
  35. package/build/static/js/833.aaaf3519.chunk.js +1 -0
  36. package/build/static/js/8399.77b6358a.chunk.js +1 -0
  37. package/build/static/js/{9713.0f0a2355.chunk.js → 9713.6f7c47cb.chunk.js} +1 -1
  38. package/build/static/js/9779.7c1f5592.chunk.js +1 -0
  39. package/build/static/js/main.774f6320.js +2 -0
  40. package/package.json +1 -1
  41. package/build/static/js/1667.a0c1bd62.chunk.js +0 -1
  42. package/build/static/js/1685.8aa7ded2.chunk.js +0 -2
  43. package/build/static/js/1794.7f151439.chunk.js +0 -1
  44. package/build/static/js/1869.ca76ad10.chunk.js +0 -1
  45. package/build/static/js/2294.9e37053f.chunk.js +0 -1
  46. package/build/static/js/2355.fe9e5eaf.chunk.js +0 -1
  47. package/build/static/js/2646.7e958bf1.chunk.js +0 -1
  48. package/build/static/js/3108.430b8b4e.chunk.js +0 -1
  49. package/build/static/js/3217.1d7bfa2b.chunk.js +0 -1
  50. package/build/static/js/3351.be676eac.chunk.js +0 -1
  51. package/build/static/js/3595.763ef502.chunk.js +0 -1
  52. package/build/static/js/3646.97713153.chunk.js +0 -1
  53. package/build/static/js/3815.fa2cf47f.chunk.js +0 -1
  54. package/build/static/js/3998.505c54b8.chunk.js +0 -1
  55. package/build/static/js/4542.61cf3cd5.chunk.js +0 -1
  56. package/build/static/js/4906.fc570676.chunk.js +0 -1
  57. package/build/static/js/5433.56888945.chunk.js +0 -1
  58. package/build/static/js/5760.b43b20af.chunk.js +0 -1
  59. package/build/static/js/6129.b538b033.chunk.js +0 -1
  60. package/build/static/js/7702.65c33107.chunk.js +0 -1
  61. package/build/static/js/8110.446170f9.chunk.js +0 -1
  62. package/build/static/js/8139.b91619d0.chunk.js +0 -1
  63. package/build/static/js/8299.99b06bd6.chunk.js +0 -1
  64. package/build/static/js/833.ae2cf030.chunk.js +0 -1
  65. package/build/static/js/8399.d74f7fac.chunk.js +0 -1
  66. package/build/static/js/9085.2eba86ab.chunk.js +0 -1
  67. package/build/static/js/9733.35499d50.chunk.js +0 -1
  68. package/build/static/js/9779.c840728c.chunk.js +0 -1
  69. package/build/static/js/main.f04637c6.js +0 -2
  70. /package/build/static/js/{1685.8aa7ded2.chunk.js.LICENSE.txt → 1685.7e872f73.chunk.js.LICENSE.txt} +0 -0
  71. /package/build/static/js/{5526.d2a1b8f0.chunk.js.LICENSE.txt → 3047.2530c08d.chunk.js.LICENSE.txt} +0 -0
  72. /package/build/static/js/{4804.9dc4ff41.chunk.js.LICENSE.txt → 4804.4efecf89.chunk.js.LICENSE.txt} +0 -0
  73. /package/build/static/js/{5083.ecb059e3.chunk.js.LICENSE.txt → 5083.b86f0c1f.chunk.js.LICENSE.txt} +0 -0
  74. /package/build/static/js/{592.c99306f8.chunk.js.LICENSE.txt → 592.4624a4d2.chunk.js.LICENSE.txt} +0 -0
  75. /package/build/static/js/{main.f04637c6.js.LICENSE.txt → main.774f6320.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/webapp",
3
- "version": "1.16.27-beta-426c1690",
3
+ "version": "1.16.27-beta-d27e19fa",
4
4
  "keywords": [
5
5
  "arcblock",
6
6
  "react"
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[1667],{13455:(e,n,t)=>{t.d(n,{Z:()=>d});var l=t(55898),o=t.n(l),a=t(36687),s=t(72333);const i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAFACAYAAADNkKWqAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1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khPIyJbk0C2Ckh3I3BRm0C2LmM+8YZCB9BAIuI+MUGRWxSVA2hiS7bBLCgTC9VL8Fgg+sIYGG9h1D4uI0A0l0ITXTZlQDyt9ZDaLDBvgSQ72T9EILrCB+HEkCulXHf+LL4cIgnT54IHwcTQG6V6aVqgw2mJIDsbM0QCh9zEED2tmQIx2+piy9nEj6mJoAcbM4QGmywBAHkaFPuGwsfSxJAJnPMvrGJLmsQQGaxy0vVBhusTQCZVYTww4cPmy84iu/6iNDFqtr9+/eFj9UJIFCWH79AWQIIlCWAQFn/BizMxGSX68uEAAAAAElFTkSuQmCC";var r=t(74094),c=t(96266);function d(e){let{blocklet:n,blockletMetaUrl:t}=e;const{did:l,logo:o}=n.meta;let d;return d=o?(0,c.jsx)(a.Z,{src:(0,r.aZ)({did:l,logoPath:o,baseUrl:new URL(t).origin}),fallback:i,width:64,size:"contain",placeholder:"application logo"}):(0,c.jsx)(s.Z,{did:l,size:64}),d}d.propTypes={blocklet:o().object.isRequired,blockletMetaUrl:o().string.isRequired}},13932:(e,n,t)=>{t.d(n,{Z:()=>f});var l,o=t(71171),a=t(68420),s=t(77277),i=t(33518),r=t(39948),c=t(5057),d=t(11397),u=t.n(d),h=t(6202),p=t(96266);const m=u()("@abtnode/webapp:launch-blocklet:download-progress");const g=(e,n)=>{m("getDownloadBundleStep",e);return(e||[]).map((e=>{var t;const l=n("launchBlocklet.waiting.".concat("extracting"===e.status?"extractingComponent":"downloadingComponent"),{name:(null===(t=e.component)||void 0===t?void 0:t.title)||""}),o=e.total&&e.current?": ".concat(Math.floor(e.current/e.total*100)," %"):"";let a=e.name?": ".concat(e.name):"";return o||(a+="..."),"".concat(l).concat(o).concat(a)})).join("\n")};function f(e){let{appDid:n,visible:t}=e;const{t:l}=(0,a.PE)(),o=function(e){let{appDid:n}=e;const[t,l]=(0,c.useState)([]),o=(0,h.ZP)();return(0,c.useEffect)((()=>(o.on(s.BlockletEvents.downloadBundleProgress,(e=>{n&&n===(null===e||void 0===e?void 0:e.appDid)&&l((n=>{const t=[...n],l=t.findIndex((n=>{var t,l;return(null===(t=n.component)||void 0===t?void 0:t.did)===(null===(l=e.component)||void 0===l?void 0:l.did)}));return"completed"===e.status?-1!==l&&t.splice(l,1):-1!==l?t[l]=e:t.push(e),[...t]}))})),()=>{o.off(s.BlockletEvents.downloadBundleProgress)})),[n,o]),t}({appDid:n});return(0,p.jsx)(x,{style:{display:t?"block":"none"},children:g(o,l)})}f.defaultProps={appDid:"",visible:!0};const x=(0,i.Z)(r.Z)(l||(l=(0,o.Z)(["\n flex: 0 0 auto;\n white-space: pre;\n overflow-y: auto;\n overflow-x: auto;\n max-height: 10em;\n max-width: 500px;\n min-width: auto;\n @media (max-width: ","px) {\n max-width: 90%;\n max-height: 30vh;\n }\n"])),(e=>e.theme.breakpoints.values.md))},66436:(e,n,t)=>{t.d(n,{Z:()=>i});var l,o=t(71171),a=t(33518),s=t(96266);function i(e){let{children:n}=e;return(0,s.jsx)(r,{children:n})}const r=a.Z.div(l||(l=(0,o.Z)(["\n color: #1dc1c7;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n"])))},11476:(e,n,t)=>{t.d(n,{Z:()=>x});var l=t(5057),o=t(77277),a=t(31853),s=t(11397),i=t.n(s),r=t(6202),c=t(10155);const d=i()("@abtnode/webapp:launch-blocklet:runtime-state"),u=Object.keys(o.BlockletStatus),h=Object.values(o.BlockletStatus),p=Object.values(o.BlockletEvents).filter((e=>![o.BlockletEvents.purchaseChange,o.BlockletEvents.domainStatus].includes(e))),m=(e,n)=>{var t;return(null===e||void 0===e?void 0:e.appDid)===n||(null===e||void 0===e||null===(t=e.meta)||void 0===t?void 0:t.did)===n},g=8e3,f=2e3;function x(e){const n=(0,c.Z)(),t=(0,r.ZP)(),o=(0,l.useRef)(null),s=()=>{e&&!o.current&&(o.current=setInterval((()=>{e&&(d("polling blocklet state"),v())}),f))},[i,x]=(0,a.Z)({status:null,eventName:"",runtimeBlocklet:null,error:"",isGetBlocklet:!1,startPolling:s,stopPolling:()=>{o.current&&clearInterval(o.current)}}),v=()=>{n.getBlocklet({input:{did:e,attachRuntimeInfo:!0}}).then((e=>{x({status:e.blocklet?e.blocklet.status:"",eventName:"",runtimeBlocklet:e.blocklet,isGetBlocklet:!0})})).catch((e=>{console.error("get blocklet failed",e)}))};(0,l.useEffect)((()=>{let n=null;return e&&(d("schedule polling blocklet state"),n=setTimeout((()=>{s()}),g)),()=>{n&&clearInterval(n)}}),[e]),(0,l.useEffect)((()=>{e?null===i.status&&(d("polling blocklet state on start"),v()):x({status:"",eventName:"",runtimeBlocklet:null})}),[e,i.status]);const b=n=>t=>{if(m(t,e)){const e={status:null,eventName:n,runtimeBlocklet:t,isGetBlocklet:!1};if(t.error)d("blocklet error",{blockletEventName:n,error:t.error}),e.status="error",e.error=t.error;else{const l=u[h.indexOf(t.status)];d("blocklet event",{blockletEventName:n,status:l}),l&&(e.status=l)}x(e)}};for(const a of p)(0,l.useEffect)((()=>{const n=b(a);return e&&t.on(a,n),()=>{e&&t.off(a,n)}}),[e]);return i}},71667:(e,n,t)=>{t.r(n),t.d(n,{default:()=>Ue});var l,o,a=t(71171),s=t(85493),i=t(6352),r=t.n(i),c=t(21371),d=t(15715),u=t(33518),h=t(68420),p=t(63902),m=t(51703),g=t(66889),f=t(15959),x=t(10866),v=t(4456),b=t(28864),k=t(12332),y=t(44846),j=t(88574),w=t(35966),A=t(75793),C=t(38242),E=t(55309),Z=t(94494),B=t(77609),L=t(23484),D=t(96266);const P=u.Z.a(l||(l=(0,a.Z)(["\n display: block;\n height: 36px;\n color: ",";\n"])),(e=>e.theme.palette.primary.main)),N=(0,u.Z)(Z.Z)(o||(o=(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"])),(e=>e.theme.breakpoints.down("md")),(e=>"error"===e.variant?e.theme.palette.error.main:e.theme.palette.success.main)),M=function(){const{t:e}=(0,h.PE)(),{info:n}=(0,A.h6)(),t=(0,L.Z)(),l=decodeURIComponent(t.get("accessUrl")||""),{meta:o}=(0,B.H0)();return(0,D.jsx)(N,{children:(0,D.jsx)("div",{className:"body",children:(0,D.jsx)(E.Z,{variant:"success",title:(0,C.getDisplayName)({meta:o},!0),subTitle:e("launchBlocklet.installSuccess",{serverName:n.name}),footer:(0,D.jsx)(P,{href:l,rel:"noreferrer","data-cy":"open-blocklet",children:e("common.open")})})})})};var R=t(39463),I=t(47791),S=t(86229),T=t(64387),z=t(80676),O=t(69972),Q=t(88577),U=t(35266),J=t(77277),H=t(2660),F=t(77429),X=t(48086),K=t(38898),V=t(75506),G=t.n(V),W=t(50482),Y=t.n(W),_=t(5057),q=t(15849),$=t(67654),ee=t(31853),ne=t(11397),te=t.n(ne),le=t(52581),oe=t(11476),ae=t(25339),se=t(74094),ie=t(13455),re=t(28726);function ce(e){let{children:n,...t}=e;return(0,D.jsx)(re.Z,{variant:"contained",color:"primary",...t,children:n})}const de=(0,_.forwardRef)(((e,n)=>(0,D.jsx)(ce,{...e,forwardedRef:n})));var ue,he,pe,me,ge=t(13932),fe=t(93040),xe=t(66436);const ve=te()("@abtnode/webapp:launch-blocklet:step-install"),be=(e,n)=>!n.statusChanged&&("installed"===e||"running"===e)&&!n.launching,ke=(e,n,t)=>t("nft"===n?e?"launchBlocklet.dialog.nftFreeDescription":"launchBlocklet.dialog.nftPaidDescription":e?"launchBlocklet.dialog.freeDescription":"launchBlocklet.dialog.paidDescription"),ye="setup_token",je=e=>{sessionStorage.setItem(ye,e)},we=()=>{sessionStorage.removeItem(ye)},Ae=()=>sessionStorage.getItem(ye);function Ce(){const e=(0,L.Z)(),{t:n,locale:t}=(0,h.PE)(),{api:l,info:o}=(0,A.h6)(),{session:a,api:i}=(0,ae.Tt)(),c=(0,s.useNavigate)(),{loading:d,meta:u,isFree:p,appDid:m,sessionId:g,storeUrl:f,blockletMetaUrl:x,isExternal:v,setAppDid:b,launcherUrl:k,launcherSessionId:j,isInstalling:E,isInstalled:Z}=(0,B.H0)(),P=u?(0,C.getDisplayName)({meta:u},!0):null,N=e.get("launchType"),M=e.get("chainHost"),V=!!e.get("onlyRequired"),W=e.get("nftId"),ne=(0,_.useRef)(null),{decrypt:te,encryptKey:re}=(0,Q.R)(),[ce]=(0,$.Z)("skip-blocklet-setup",!1),[ue,he]=(0,ee.Z)({launching:!1,visiting:!1,statusChanged:!1,isConnectOpen:!1,nextAccessUrl:"",loaded:!1,installError:null,progressIndex:0,connectData:{action:"",baseUrl:"",checkFn:()=>{},extraParams:{}}}),pe=(0,fe.Iq)({user:a.user,launchType:N,nftId:W}),me=(0,R.getServerAuthMethod)(o,N,j,pe),ye=(0,oe.Z)(pe?m:""),{status:Ce,eventName:De}=ye,Pe=e.get("from");(0,_.useEffect)((()=>{d||(Z||E||Ne(),he({loaded:!0}))}),[d]);const Ne=async()=>{const e=a.user?"".concat(a.user.fullName,"'s ").concat(P):P;if(he({installError:null}),null!==a&&void 0!==a&&a.user&&!v&&"serverless"!==N)try{await(async()=>{const{isNew:e,decoded:n}=(0,se.bQ)(f,o.blockletRegistryList);e&&await l.addBlockletStore({input:{teamDid:o.did,url:n}})})()}catch(h){console.error("addNewRegistryToRegistryList error:",h)}if(p){var n,t,s;const l="launch-free-blocklet-by-".concat(me);he({isConnectOpen:!0,connectData:{action:l,baseUrl:"",checkFn:z.od.create({baseURL:null!==(n=null===(t=window)||void 0===t||null===(s=t.env)||void 0===s?void 0:s.apiPrefix)&&void 0!==n?n:"/"}).get,extraParams:{wt:(0,I.iK)(u),title:e,blockletMetaUrl:x,launchType:N,nftId:W,chainHost:decodeURIComponent(M),launcherUrl:k,launcherSessionId:j,onlyRequired:V}}})}else{var i,c,d;const n="launch-paid-blocklet-by-".concat(me),t=new URL(window.location.href);t.pathname=r()(null!==(i=null===(c=window)||void 0===c||null===(d=c.env)||void 0===d?void 0:d.apiPrefix)&&void 0!==i?i:"/","/api/did/".concat(n,"/token")),t.searchParams.set("wt",(0,I.iK)(u)),t.searchParams.set("_ek_",re),t.searchParams.set("title",e),t.searchParams.set("autoConnect",!1),t.searchParams.set("blockletMetaUrl",x),N&&t.searchParams.set("launchType",N),W&&t.searchParams.set("nftId",W),k&&t.searchParams.set("launcherUrl",k),j&&t.searchParams.set("launcherSessionId",j);const{data:l}=await z.hi.get(t.href);he({isConnectOpen:!0,connectData:{action:"verify-purchase-blocklet",baseUrl:new URL(x).origin,checkFn:z.od.create({baseURL:new URL(x).origin}).get,extraParams:{serverDid:o.did,blockletDid:null===u||void 0===u?void 0:u.did,nw:l.url}}})}},Me=async n=>{if(ve("visitBlocklet",{status:Ce,state:ue,appDid:m}),ue.visiting)return;he({visiting:!0});const t=(0,T.A6)({blocklet:n}),l=await(0,se.D)(t);if(G()(l)&&"serverless"!==N||ce)return he({visiting:!1}),void setTimeout((()=>{(n=>{const t="/".concat(o.routing.adminPath,"/blocklets/").concat(n.meta.did,"/configuration").replace(/\/+/g,"/");let l="/launch-blocklet/complete?status=installed&name=".concat(encodeURIComponent(P),"&accessUrl=").concat(encodeURIComponent(t),"&blocklet_meta_url=").concat(x);const a=e.get("fromLauncher");a&&(l+="&fromLauncher=".concat(a)),N&&(l+="&launchType=".concat(N)),M&&(l+="&chainHost=".concat(M)),c(l)})(n)}),1e3);if(G()(l))return void he({visiting:!1});if(!1===be(Ce,ue))try{await i.post("/api/launch/".concat(g))}catch(d){ve("end launch failed",{error:(0,se.Z)(d)})}const a=new URL(l);a.searchParams.set("serverUrl",(0,I.RU)(o)),"running"!==n.status&&a.searchParams.set("__start__","1");const s=e.get("fromLauncher");s&&a.searchParams.set("fromLauncher",s),N&&a.searchParams.set("launchType",N),W&&a.searchParams.set("nftId",W),M&&a.searchParams.set("chainHost",M);const r=Ae();r&&a.searchParams.set("setupToken",r),he({nextAccessUrl:a.href,visiting:!1}),setTimeout((()=>{we(),window.location.href=a.href}),1e3)},Re=[n("launchBlocklet.waiting.verifying"),n("launchBlocklet.waiting.downloading"),n("launchBlocklet.waiting.extracting"),n("upgrading"===Ce?"common.upgrading":"launchBlocklet.waiting.installing"),n("launchBlocklet.waiting.done")],Ie=()=>{ve("handleInstalledProgress",{status:Ce,state:ue}),Ce&&(he({progressIndex:4}),ne.current&&(clearTimeout(ne.current),ne.current=null),ne.current=setTimeout((()=>{l.getBlocklet({input:{did:m,attachRuntimeInfo:!0}}).then((e=>{e.blocklet&&Me(e.blocklet)}))}),500))};if((0,_.useEffect)((()=>{E&&he({launching:!0}),Z&&Ie()}),[Z,E]),(0,_.useEffect)((()=>{if("serverless"!==N||De!==J.BlockletEvents.nftConsumed)switch(Ce){case"waiting":he({progressIndex:1,statusChanged:!0});break;case"downloading":he({progressIndex:2,statusChanged:!0});break;case"installing":case"upgrading":he({progressIndex:3,statusChanged:!0});break;case"installed":if("serverless"===N&&!(0,fe.MZ)(ye))break;Ie();break;case"starting":case"running":case"stopped":Ie();break;case"corrupted":case"error":{const n={message:ye.error.message,name:ye.eventName};var e;if([J.BlockletEvents.downloadFailed,J.BlockletEvents.installFailed].includes(ye.eventName)?n.action="retry":"error"!==Ce&&"corrupted"!==Ce||(n.action="view"),!Y()(n,ue.installError))null!==ye&&void 0!==ye&&null!==(e=ye.error)&&void 0!==e&&e.message&&S.Z.error((0,se.Z)(ye.error))}}else Ie()}),[Ce,De,ye]),ve("render",{status:Ce,eventName:De,launchType:N,runtimeBlockletState:ye,state:ue}),d||a.user&&null===Ce||G()(u))return(0,D.jsx)(w.Z,{relative:"parent",children:(0,D.jsx)(y.Z,{})});if(ue.installError){const e={view:!v&&(0,D.jsx)(de,{className:"bottom-button",component:q.Link,to:"/blocklets/".concat(m,"/overview"),"data-cy":"view-blocklet",color:"primary",variant:"contained",children:n("launchBlocklet.viewApplication")}),retry:(0,D.jsxs)(Be,{children:[Pe&&(0,D.jsx)(de,{variant:"text",className:"bottom-button","data-cy":"go-back",disabled:ue.isConnectOpen,onClick:()=>{window.location.href=Pe},children:n("common.back")}),(0,D.jsxs)(de,{className:"bottom-button","data-cy":"retry-install",disabled:ue.isConnectOpen,onClick:Ne,children:[ue.isConnectOpen&&(0,D.jsx)(y.Z,{size:16}),n("common.retry")]})]})},t=ue.installError.name?ue.installError.name.replace("blocklet.",""):"installFailed";return(0,D.jsx)(Le,{variant:"error",title:P,subTitle:(0,D.jsxs)(Ze,{children:[(0,D.jsx)("div",{children:n("launchBlocklet.error.".concat(t))}),ue.installError.message&&(0,D.jsx)("div",{className:"error-desc",children:n("common.errorMessage")+ue.installError.message})]}),footer:e[ue.installError.action]})}if(be(Ce,ue))return ve("alreadyExists",{status:Ce,state:ue,runtimeBlockletState:ye}),(0,D.jsx)(Le,{variant:"info",title:n("common.reminder"),subTitle:n("launchBlocklet.alreadyExists",{name:(0,C.getDisplayName)({meta:u},!0)}),footer:(0,D.jsxs)("div",{children:[!ue.nextAccessUrl&&(0,D.jsx)(y.Z,{size:16}),ue.nextAccessUrl&&(0,D.jsx)(K.Z,{href:ue.nextAccessUrl,"data-cy":"open-blocklet",children:n("launchBlocklet.redirect")})]})});const Se=!ue.launching&&!Ce;return(0,D.jsxs)(Ee,{children:[(0,D.jsx)("div",{className:"header",children:(0,D.jsx)(H.Z,{title:n(Se?"common.install":"common.installing"),subTitle:Se?n("launchBlocklet.subTitle",{appName:P,serverName:o.name}):""})}),(0,D.jsxs)("div",{className:"body",children:[Se&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)("div",{className:"illustrations",children:[(0,D.jsx)("div",{className:"ills-block ills-block-left",children:(0,D.jsxs)("div",{className:"ills-block-inner",children:[(0,D.jsx)(ie.Z,{className:"i-icon",blocklet:{meta:u},blockletMetaUrl:x}),(0,D.jsx)("div",{className:"i-name",children:P})]})}),(0,D.jsx)(X.Z,{className:"arrow-icon"}),(0,D.jsx)("div",{className:"ills-block ills-block-right",children:(0,D.jsxs)("div",{className:"ills-block-inner",children:[(0,D.jsx)("img",{width:"64",height:"64",src:le.Z,alt:""}),(0,D.jsx)("div",{className:"i-name",children:o.name}),(0,D.jsx)(O.Z,{size:12,responsive:!1,compact:!0,did:o.did})]})})]}),ue.loaded&&!Z&&!ue.launching&&(0,D.jsxs)(de,{className:"bottom-button","data-cy":"start-launch",disabled:ue.isConnectOpen,onClick:Ne,children:[ue.isConnectOpen&&(0,D.jsx)(y.Z,{size:16}),n("launchBlocklet.confirmInstall")]})]}),ue.launching&&(0,D.jsxs)(xe.Z,{children:[(0,D.jsx)(U.Z,{increaseSpeed:.3,messageLoop:!1,message:(0,D.jsx)(F.Z,{steps:Re,stepIndex:ue.progressIndex,autoGrowth:4===ue.progressIndex?1e3:4e3})}),[1,2].includes(ue.progressIndex)&&(0,D.jsx)(ge.Z,{appDid:m})]})]}),ue.isConnectOpen&&(0,D.jsx)(ge.Z,{appDid:m,visible:!1}),(0,D.jsx)(Q.Z,{open:ue.isConnectOpen,popup:!0,saveConnect:!1,className:"connect",baseUrl:ue.connectData.baseUrl,action:ue.connectData.action,checkFn:ue.connectData.checkFn,extraParams:ue.connectData.extraParams,checkTimeout:6e5,webWalletUrl:(0,se.yP)(o),onSuccess:async e=>{S.Z.success(n("launchBlocklet.dialog.success"));const t=Array.isArray(e)?e[e.length-1]:e;if(t.sessionToken&&((0,se.ZB)(te(t.sessionToken)),await a.refresh()),t.setupToken&&je(t.setupToken),he({launching:!t.isInstalled,isConnectOpen:!1}),t.appDid){b(t.appDid,t.sessionId);const e=new URL(window.location.href);e.searchParams.set("appDid",t.appDid),e.searchParams.set("sessionId",t.sessionId),window.history.replaceState(null,"",e.toString())}},onClose:()=>he({isConnectOpen:!1}),locale:t,messages:{title:"".concat(n("launchBlocklet.dialog.title")),scan:ke(p,me,n),confirm:n("launchBlocklet.dialog.confirm"),success:n("launchBlocklet.dialog.success")}})]})}const Ee=(0,u.Z)(Z.Z)(ue||(ue=(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"])),(e=>e.theme.breakpoints.down("md"))),Ze=u.Z.div(he||(he=(0,a.Z)(["\n line-height: 1.4em;\n .error-desc {\n margin-top: 8px;\n word-wrap: break-word;\n color: ",";\n }\n"])),(e=>e.theme.palette.grey[500])),Be=u.Z.div(pe||(pe=(0,a.Z)(["\n display: flex;\n justify-content: space-around;\n flex-wrap: wrap;\n button {\n margin: 0 10px 18px;\n }\n"]))),Le=(0,u.Z)(E.Z)(me||(me=(0,a.Z)(["\n .result-footer {\n height: auto;\n }\n"])));var De,Pe,Ne=t(90845),Me=t(35432),Re=t(32828);function Ie(e){var n;let{onClickNext:t,handleDescEle:l,showPageHeader:o}=e;const a=(0,s.useNavigate)(),[i,r]=(0,_.useState)(null),[c,d]=(0,_.useState)(!1),{t:u}=(0,h.PE)(),{info:p,api:m}=(0,A.h6)(),{loading:g,meta:f,isRunning:x,isInstalled:v,isInstalling:b,appDid:k,isExternal:j}=(0,B.H0)(),[Z,L]=(0,_.useState)(!0),P=(0,_.useMemo)((()=>{if(!j)return"/blocklets/".concat(k,"/overview");if(!i)return"";const e=new URL(i);return"".concat(e.origin).concat(Me.WELLKNOWN_SERVICE_PATH_PREFIX,"/admin")}),[i,j,k]),N=()=>{const e=new URLSearchParams(window.location.search);Z||e.set("onlyRequired","1"),a("/launch-blocklet/install?".concat(e.toString()))},M=t||N;if((0,_.useEffect)((()=>{g||(b?N():(x||v&&j)&&(async()=>{try{d(!0);const{blocklet:e}=await m.getBlocklet({input:{did:f.did,attachRuntimeInfo:!0}}),n=(0,T.A6)({blocklet:e}),t=await(0,se.D)(n);if(!t&&G()(t))return void r(null);r(new URL(t).href)}catch(e){S.Z.error(e.message)}finally{d(!1)}})())}),[x,j,v,b]),v){const e=x?"alreadyRunning":"alreadyInstalled";return(0,D.jsx)(E.Z,{variant:"info",title:u("common.reminder"),subTitle:u("launchBlocklet.".concat(e),{name:(0,C.getDisplayName)({meta:f},!0)}),footer:(0,D.jsxs)(Te,{children:[(0,D.jsx)(de,{loading:!P,"data-cy":"view-blocklet",component:j?void 0:q.Link,to:P,href:P,variant:x?"outlined":"contained",color:"primary",children:u("launchBlocklet.viewApplication")}),x&&(0,D.jsx)(de,{loading:c,className:"last-button",disabled:!i,href:i,"data-cy":"open-blocklet",children:u("common.open")})]})})}return p?(0,Re.default)(f)||null!==f&&void 0!==f&&null!==(n=f.components)&&void 0!==n&&n.length?(0,D.jsxs)(Se,{children:[o&&(0,D.jsx)(H.Z,{title:u("launchBlocklet.introduction"),subTitle:u("launchBlocklet.welcome")}),(0,D.jsx)(Ne.Z,{installRelated:Z,onChangeInstallRelated:L,meta:f,onClickNext:M,handleDescEle:l})]}):(0,D.jsx)(Se,{className:"center",children:(0,D.jsx)(E.Z,{variant:"error",subTitle:u("launchBlocklet.error.resourceBlocklet")})}):(0,D.jsx)(w.Z,{relative:"parent",children:(0,D.jsx)(y.Z,{})})}Ie.defaultProps={onClickNext:null,handleDescEle:"",showPageHeader:!0};const Se=u.Z.div(De||(De=(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"]))),Te=u.Z.div(Pe||(Pe=(0,a.Z)(["\n .MuiButton-root {\n "," {\n min-width: 200px;\n }\n }\n .last-button {\n margin-left: ",";\n }\n"])),(e=>e.theme.breakpoints.up("md")),(e=>e.theme.spacing(2)));var ze,Oe,Qe;function Ue(){const e=(0,d.Z)((e=>e.breakpoints.down("md"))),{t:n,locale:t}=(0,h.PE)(),{info:l}=(0,A.h6)(),o=(0,se.yP)(l),{serverUrl:a,fromLauncher:i,meta:u,isFree:C,loading:E,error:Z,storeUrl:L}=(0,B.H0)(),P=r()((0,se.Y5)(),"/launch-blocklet"),N=[{key:"install",name:n("launchBlocklet.steps.installApp"),path:r()(P,"install")},{key:"setup",name:n("setup.steps.launchApp")}];let R=[{key:"agreement",name:n("launchBlocklet.introduction"),path:r()(P,"agreement")},...N];const I=()=>{a&&window.open(a)};let S=(0,D.jsx)(Fe,{className:"".concat(a?"logo-can-click":""),children:(0,D.jsx)(k.Z,{onClick:I,logo:e?(0,D.jsx)(x.Z,{width:"32",height:"32"}):(0,D.jsx)(v.Z,{width:"128",height:"48"})})});i&&(R=[{key:"purchase-space",name:n("launchBlocklet.steps.purchaseSpace")},{key:"prepare-space",name:n("launchBlocklet.steps.prepareSpace")},...N],S=(0,D.jsx)(Fe,{className:"".concat(a?"logo-can-click":""),children:(0,D.jsx)(k.Z,{logo:e?(0,D.jsx)(x.Z,{onClick:I,width:"32",height:"32"}):(0,D.jsx)(v.Z,{onClick:I,width:"128",height:"48"}),previousData:{logo:e?(0,D.jsx)(f.Z,{width:"32",height:"32"}):(0,D.jsx)(b.Z,{width:"145",height:"48"})}})}));const T={meta:u,isFree:C};return(0,D.jsx)(m.W,{steps:R,children:(0,D.jsx)(p.Z,{locale:t,loading:E,blockletMeta:{...u,isFree:C},useOfSkeleton:!1,navLogo:S,headerEndAddons:(0,D.jsx)(g.Z,{webWalletUrl:o,SessionContext:ae.B3}),pcWidth:"80%",style:{height:"100%"},logoUrl:u&&u.logo?(0,se.aZ)({did:u.did,baseUrl:L,logoPath:u.logo}):null,children:(0,D.jsxs)(He,{children:[(0,D.jsx)(c.Global,{styles:Je}),E&&(0,D.jsx)(w.Z,{relative:"parent",children:(0,D.jsx)(y.Z,{})}),!E&&Z&&(0,D.jsx)(w.Z,{relative:"parent",children:(0,D.jsx)(j.Z,{style:{wordBreak:"break-all"},variant:"icon",type:"error",children:Z})}),!E&&!Z&&(0,D.jsxs)(s.Routes,{children:[(0,D.jsx)(s.Route,{path:"agreement",element:(0,D.jsx)(Ie,{})}),(0,D.jsx)(s.Route,{path:"install",element:(0,D.jsx)(Ce,{})}),(0,D.jsx)(s.Route,{path:"complete",element:(0,D.jsx)(M,{blocklet:T})}),(0,D.jsx)(s.Route,{path:"*",element:(0,D.jsx)(s.Navigate,{to:"agreement".concat(window.location.search),replace:!0})})]})]})})})}const Je=(0,c.css)(ze||(ze=(0,a.Z)(["\n html,\n body,\n #root,\n #root > .wrapper {\n height: 100%;\n }\n"]))),He=u.Z.div(Oe||(Oe=(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"]))),Fe=u.Z.div(Qe||(Qe=(0,a.Z)(["\n margin-top: -1px;\n &.logo-can-click {\n cursor: pointer;\n }\n"])))},90845:(e,n,t)=>{t.d(n,{Z:()=>B});var l=t(71171),o=t(55898),a=t.n(o),s=t(85493),i=t(33518),r=t(68420),c=t(40265),d=t(54336),u=t(55498),h=t(39948),p=t(26174),m=t(88092),g=t(67680),f=t(5057),x=t(35432),v=t(96266);function b(e){let{...n}=e;return(0,v.jsxs)("div",{...n,style:{width:"100%"},children:[(0,v.jsx)("h3",{children:"End User License Agreement for Application"}),(0,v.jsxs)("p",{children:["Blocklet Server License Agreement ",x.COPYRIGHT_OWNER," version 2020-08-28"]}),(0,v.jsx)("p",{children:"BLOCKLET SERVER LICENSE AGREEMENT"}),(0,v.jsx)("p",{children:"\u6682\u65e0"})]})}var k=t(13128),y=t(15715);function j(e){var n,t,l,o;return"".concat((null===(n=e.bundleSource)||void 0===n?void 0:n.store)||e.meta.homepage,"/assets/").concat(null===(t=e.meta)||void 0===t?void 0:t.did,"/").concat((null===(l=e.meta)||void 0===l?void 0:l.logo)||"logo.png","?v=").concat(null===(o=e.meta)||void 0===o?void 0:o.version)}function w(e){let{installRelated:n,meta:t,show:l,onClose:o,components:a,loading:s}=e;const{t:i}=(0,r.PE)(),c=(0,y.Z)((e=>e.breakpoints.down("md")));if(!l)return null;const d=!s&&0===a.length,p=!s&&0!==a.length;return(0,v.jsxs)(k.ZP,{title:i("blocklet.component.relatedComponents",{name:t.title}),maxWidth:!1,fullWidth:!1,onClose:(e,n)=>{"backdropClick"!==n&&o(!1)},PaperProps:{style:c?{width:"100%",height:window.innerHeight}:{maxWidth:500,minWidth:300,width:"80%"}},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:[s&&(0,v.jsx)(h.Z,{sx:{marginTop:4,display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"},children:(0,v.jsx)(h.Z,{sx:{fontSize:32},color:"primary.main",component:u.JO,icon:"line-md:loading-loop"})}),d&&(0,v.jsx)(h.Z,{sx:{textAlign:"center"},children:i("blocklet.component.noDependencies",{name:t.title})}),p&&(0,v.jsx)(h.Z,{sx:{marginBottom:2},children:a.map((e=>{if(!e.meta)return null;const{required:t}=e;let l;return l=n||t?1:.5,(0,v.jsxs)(h.Z,{sx:{opacity:l,padding:"10px 0px",paddingBottom:.5,marginTop:0,display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"flex-start"},children:[(0,v.jsx)("img",{style:{width:40,height:40,minWidth:40,minHeight:40},src:j(e),alt:e.meta.title}),(0,v.jsxs)(h.Z,{sx:{display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"start",flex:1,marginLeft:2},children:[(0,v.jsxs)(h.Z,{sx:{display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"center",fontSize:"16px",fontWeight:"bold",cursor:"pointer",".link-icon":{opacity:0},":hover .link-icon":{opacity:1}},onClick:()=>{var n;window.open("".concat((null===(n=e.bundleSource)||void 0===n?void 0:n.store)||e.meta.homepage,"/blocklets/").concat(e.meta.did),"_blank")},children:[e.meta.title,(0,v.jsx)(h.Z,{sx:{display:t?"inline-block":"none",fontSize:"12px",fontWeight:"bold",marginLeft:1},children:i("blocklet.component.required")}),(0,v.jsxs)(h.Z,{sx:{paddingLeft:1,fontSize:"13px",fontWeight:"400"},component:"span",children:[e.meta.version,(0,v.jsx)(h.Z,{className:"link-icon",icon:"fluent:open-20-filled",component:u.JO,sx:{color:"primary.main",fontSize:16,transform:"translate(6px, 3px)",transition:"all 0.1s"}})]})]}),(0,v.jsx)(h.Z,{sx:{marginTop:0,opacity:.7},children:e.meta.description})]})]},e.meta.did)}))})]})}w.propTypes={meta:a().object,show:a().bool,onClose:a().func.isRequired,installRelated:a().func,components:a().array.isRequired,loading:a().bool.isRequired},w.defaultProps={meta:null,show:!1,installRelated:!1};var A=t(15849),C=t(22324);const E=function(e){const{api:n}=(0,C.h6)(),[t]=(0,A.useSearchParams)(),l=t.get("blocklet_meta_url")||function(e){return e&&(e.registryUrl||e.homepage)&&e.did?"".concat(e.registryUrl||e.homepage,"/api/blocklets/").concat(null===e||void 0===e?void 0:e.did,"/blocklet.json"):""}(e),[o,a]=(0,f.useState)([]),[s,i]=(0,f.useState)(!1);return(0,f.useEffect)((()=>{!l||null!==e&&void 0!==e&&e.inputUrl||(i(!0),n.getDynamicComponents({input:{url:l}}).then((e=>{a(e.components)})).finally((()=>{i(!1)})))}),[l]),{components:o,loading:s}};var Z;function B(e){let{installRelated:n,onChangeInstallRelated:t,meta:l,onClickNext:o,handleDescEle:a}=e;const i=(0,s.useNavigate)(),{t:x,locale:k}=(0,r.PE)(),[y,j]=(0,f.useState)(!1),{components:A,loading:C}=E(l),Z=o||(()=>{i("/launch-blocklet/install".concat(window.location.search))});return(0,v.jsxs)(L,{children:[(0,v.jsx)("div",{className:"app-content",children:(0,v.jsx)("div",{className:"agreement",children:(0,v.jsx)("div",{className:"agreement-content",children:(0,v.jsx)(d.Z,{blockletMeta:{data:l},locale:k,handleDescEle:a})})})}),(0,v.jsxs)(h.Z,{className:"agreement-bottom",sx:{"> .agreement-loading":{color:"primary.main"}},children:[C?(0,v.jsx)(u.JO,{className:"agreement-loading",icon:"line-md:loading-loop",style:{fontSize:42,transform:"scale(0.6)"}}):null,t&&null!==A&&void 0!==A&&A.length?(0,v.jsxs)(h.Z,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},children:[(0,v.jsx)(p.Z,{sx:{mr:.5},checked:n,onChange:e=>t(e.currentTarget.checked),control:(0,v.jsx)(m.Z,{}),label:(0,v.jsx)("span",{children:x("launchBlocklet.installRelatedComponents")})}),(0,v.jsx)(h.Z,{sx:{"> button svg":{color:"primary.main"}},children:(0,v.jsx)(g.Z,{size:"small",onClick:()=>{j(!0)},children:(0,v.jsx)(u.JO,{icon:"octicon:package-dependencies-16"})})})]}):null,(0,v.jsx)("div",{className:"button-container","data-cy":"agree-all",children:(0,v.jsx)(c.Z,{onContinue:Z,description:(0,v.jsx)(b,{}),texts:{listenName:x("launchBlocklet.license"),buttonNext:x("launchBlocklet.next")}})})]}),(0,v.jsx)(w,{installRelated:n,meta:l,show:y,onClose:()=>{j(!1)},components:A,loading:C})]})}B.propTypes={meta:a().object.isRequired,onClickNext:a().func,handleDescEle:a().node,installRelated:a().bool,onChangeInstallRelated:a().func},B.defaultProps={onClickNext:null,handleDescEle:"",installRelated:!0,onChangeInstallRelated:null};const L=i.Z.div(Z||(Z=(0,l.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 .agreement-bottom {\n display: flex;\n width: 100%;\n padding: 24px;\n "," {\n flex-direction: row;\n align-items: center;\n margin-left: auto;\n }\n "," {\n flex-direction: column;\n align-items: center;\n padding-top: 0;\n padding-bottom: 16px;\n }\n }\n .button-container {\n "," {\n margin-left: auto;\n }\n "," {\n padding-top: 0;\n padding-bottom: 16px;\n }\n }\n"])),(e=>e.theme.breakpoints.down("md")),(e=>e.theme.palette.grey[100]),(e=>e.theme.breakpoints.up("md")),(e=>e.theme.breakpoints.down("md")),(e=>e.theme.breakpoints.up("md")),(e=>e.theme.breakpoints.down("md")),(e=>e.theme.breakpoints.up("md")),(e=>e.theme.breakpoints.down("md")),(e=>e.theme.breakpoints.up("md")),(e=>e.theme.breakpoints.down("md")))},94494:(e,n,t)=>{t.d(n,{Z:()=>c});var l,o=t(71171),a=t(33518),s=t(55898),i=t.n(s),r=t(96266);function c(e){let{children:n,...t}=e;return(0,r.jsx)(d,{...t,children:n})}c.propTypes={children:i().any.isRequired};const d=a.Z.div(l||(l=(0,o.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"])),(e=>e.theme.breakpoints.up("md")),(e=>e.theme.breakpoints.down("md")),(e=>e.theme.breakpoints.up("sm")),(e=>e.theme.breakpoints.down("md")))},12332:(e,n,t)=>{t.d(n,{Z:()=>d});var l,o,a=t(71171),s=t(55898),i=t.n(s),r=t(33518),c=t(96266);function d(e){let{logo:n,name:t,subname:l,previousData:o,...a}=e,s=(0,c.jsx)(u,{logo:n}),i=t,r=l;return o.logo&&(s=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(u,{logo:n,className:"left-fade-in-ele"}),(0,c.jsx)(u,{logo:o.logo,className:"postion-abs left-fade-out-ele"})]})),o.name&&o.name!==t&&(i=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"right-fade-in-ele",style:{display:"inline-block"},children:t}),(0,c.jsx)("span",{className:"postion-abs right-fade-out-ele",children:o.name})]})),o.subname&&o.subname!==l&&(r=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"right-fade-in-ele",style:{display:"inline-block"},children:l}),(0,c.jsx)("span",{className:"postion-abs right-fade-out-ele",children:o.subname})]})),(0,c.jsx)(p,{...a,children:(0,c.jsxs)("div",{className:"logo-inner",children:[(0,c.jsx)("div",{className:"logo-img-content",children:s}),(0,c.jsxs)("div",{className:"logo-info ".concat(t||l?"":"zero-left"),children:[(0,c.jsx)("div",{className:"logo-name",children:i}),(0,c.jsx)("div",{className:"logo-subname",children:r})]})]})})}function u(e){let{logo:n,...t}=e;return(0,c.jsx)(h,{...t,children:n})}d.propTypes={logo:i().element.isRequired,name:i().string,subname:i().string,previousData:i().object},d.defaultProps={name:"",subname:"",previousData:{logo:"",name:"",subname:""}};const h=r.Z.div(l||(l=(0,a.Z)(["\n display: block;\n > * {\n display: block;\n }\n"]))),p=r.Z.div(o||(o=(0,a.Z)(["\n position: relative;\n display: block;\n\n .logo-inner {\n display: flex;\n align-items: center;\n height: 100%;\n .logo-img-content {\n position: relative;\n display: block;\n }\n .logo-info {\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin-left: 10px;\n letter-spacing: 0.1px;\n &.zero-left {\n margin-left: 0%;\n }\n .logo-name {\n position: relative;\n line-height: 16px;\n font-size: 16px;\n color: #121319;\n }\n .logo-subname {\n position: relative;\n line-height: 13px;\n font-size: 13px;\n color: #7d8085;\n }\n }\n }\n\n .postion-abs {\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n }\n\n .right-fade-out-ele {\n animation: right-fade-out ease 0.5s;\n animation-delay: 2s;\n animation-fill-mode: forwards;\n }\n\n .right-fade-in-ele {\n animation: right-fade-in ease 0.5s;\n animation-delay: 2s;\n animation-fill-mode: both;\n }\n\n @keyframes right-fade-out {\n 0% {\n opacity: 1;\n transform: translate(0, 0);\n }\n 100% {\n opacity: 0;\n transform: translate(8px, 0);\n }\n }\n\n @keyframes right-fade-in {\n 0% {\n opacity: 0;\n transform: translate(8px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate(0, 0);\n }\n }\n\n .left-fade-out-ele {\n animation: left-fade-out ease 0.5s;\n animation-delay: 2s;\n animation-fill-mode: forwards;\n }\n\n .left-fade-in-ele {\n animation: left-fade-in ease 0.5s;\n animation-delay: 2s;\n animation-fill-mode: both;\n }\n\n @keyframes left-fade-out {\n 0% {\n opacity: 1;\n transform: translate(0, 0);\n }\n 100% {\n opacity: 0;\n transform: translate(-8px, 0);\n }\n }\n\n @keyframes left-fade-in {\n 0% {\n opacity: 0;\n transform: translate(-8px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate(0, 0);\n }\n }\n"])))},80676:(e,n,t)=>{t.d(n,{hi:()=>a,od:()=>o.a});var l=t(10458),o=t.n(l);o().defaults.timeout=1e4;const a=o().create()},28864:(e,n,t)=>{n.Z=void 0;(l=t(5057))&&l.__esModule;var l,o=t(96266);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);n&&(l=l.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,l)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function i(e,n,t){return(n=function(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var l=t.call(e,n||"default");if("object"!=typeof l)return l;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 r=function(e){return(0,o.jsxs)("svg",s(s({},e),{},{children:[(0,o.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,o.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,o.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,o.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,o.jsxs)("defs",{children:[(0,o.jsxs)("linearGradient",{id:"paint0_linear_615_416",x1:"30.72",y1:"95.721",x2:"94.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#0FA4B7"}),(0,o.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,o.jsxs)("linearGradient",{id:"paint1_linear_615_416",x1:"27.437",y1:"99.246",x2:"97.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#0FA4B7"}),(0,o.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};r.defaultProps={width:"193",height:"64",viewBox:"0 0 193 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.displayName="launcher-logo";n.Z=r},15959:(e,n,t)=>{n.Z=void 0;(l=t(5057))&&l.__esModule;var l,o=t(96266);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);n&&(l=l.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,l)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function i(e,n,t){return(n=function(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var l=t.call(e,n||"default");if("object"!=typeof l)return l;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 r=function(e){return(0,o.jsxs)("svg",s(s({},e),{},{children:[(0,o.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,o.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,o.jsxs)("defs",{children:[(0,o.jsxs)("linearGradient",{id:"paint0_linear_615_428",x1:"31.72",y1:"95.721",x2:"95.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#0FA4B7"}),(0,o.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,o.jsxs)("linearGradient",{id:"paint1_linear_615_428",x1:"28.437",y1:"99.246",x2:"98.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#0FA4B7"}),(0,o.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};r.defaultProps={width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.displayName="launcher-logo-notext";n.Z=r}}]);