@abtnode/webapp 1.16.20 → 1.16.21-beta-edf184e1
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 +27 -26
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/static/js/1294.5b08d5e3.chunk.js +1 -0
- package/build/static/js/{1667.3001639f.chunk.js → 1667.488a600b.chunk.js} +1 -1
- package/build/static/js/2183.e57ce8a2.chunk.js +1 -0
- package/build/static/js/2435.88762f30.chunk.js +1 -0
- package/build/static/js/2443.00426c01.chunk.js +1 -0
- package/build/static/js/{3389.72b7e591.chunk.js → 3389.282a0683.chunk.js} +1 -1
- package/build/static/js/4382.bd7f7f72.chunk.js +2 -0
- package/build/static/js/4471.a41284d9.chunk.js +1 -0
- package/build/static/js/{6490.8f3553c2.chunk.js → 4509.231da63f.chunk.js} +2 -2
- package/build/static/js/4549.5fda7728.chunk.js +1 -0
- package/build/static/js/{4775.b0cede7b.chunk.js → 4775.19ec4c25.chunk.js} +1 -1
- package/build/static/js/4906.aced1b76.chunk.js +1 -0
- package/build/static/js/5059.b85795c1.chunk.js +1 -0
- package/build/static/js/{5672.b32c024f.chunk.js → 5672.19e3e3e6.chunk.js} +1 -1
- package/build/static/js/{5804.996e83bb.chunk.js → 5804.c02bc104.chunk.js} +2 -2
- package/build/static/js/{5979.bd3d3c0f.chunk.js → 5979.4e4ebbf1.chunk.js} +1 -1
- package/build/static/js/6230.b1753197.chunk.js +1 -0
- package/build/static/js/6511.623f368a.chunk.js +1 -0
- package/build/static/js/{6580.8cdb4aa4.chunk.js → 6580.fc3c74eb.chunk.js} +1 -1
- package/build/static/js/{6931.e9297d29.chunk.js → 6931.a2586ea5.chunk.js} +1 -1
- package/build/static/js/{7022.02d74e90.chunk.js → 7022.9d96c66f.chunk.js} +1 -1
- package/build/static/js/7706.74e51876.chunk.js +2 -0
- package/build/static/js/{9552.82c09530.chunk.js → 9552.3effa95b.chunk.js} +1 -1
- package/build/static/js/main.e3082f6b.js +2 -0
- package/package.json +1 -1
- package/build/static/js/1294.8ccea539.chunk.js +0 -1
- package/build/static/js/1633.5c43bf43.chunk.js +0 -2
- package/build/static/js/3826.d40f6fa7.chunk.js +0 -2
- package/build/static/js/4435.5212440d.chunk.js +0 -1
- package/build/static/js/4448.d67840f3.chunk.js +0 -1
- package/build/static/js/4471.c2380391.chunk.js +0 -1
- package/build/static/js/4906.b8af826c.chunk.js +0 -1
- package/build/static/js/6511.978080d1.chunk.js +0 -1
- package/build/static/js/8382.e1c429ed.chunk.js +0 -1
- package/build/static/js/8973.639c0cf3.chunk.js +0 -1
- package/build/static/js/9277.babc5673.chunk.js +0 -1
- package/build/static/js/main.c88b220e.js +0 -2
- /package/build/static/css/{3826.a5e3e6d6.chunk.css → 4382.a5e3e6d6.chunk.css} +0 -0
- /package/build/static/css/{8973.9cab926a.chunk.css → 6230.9cab926a.chunk.css} +0 -0
- /package/build/static/js/{3826.d40f6fa7.chunk.js.LICENSE.txt → 4382.bd7f7f72.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{5804.996e83bb.chunk.js.LICENSE.txt → 4509.231da63f.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{6490.8f3553c2.chunk.js.LICENSE.txt → 5804.c02bc104.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1633.5c43bf43.chunk.js.LICENSE.txt → 7706.74e51876.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{main.c88b220e.js.LICENSE.txt → main.e3082f6b.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[1667],{13455:(e,n,t)=>{t.d(n,{Z:()=>d});var a=t(55898),l=t.n(a),o=t(95081),s=t(72333);const i="data:image/png;base64,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";var r=t(74094),c=t(96266);function d(e){let{blocklet:n,blockletMetaUrl:t}=e;const{did:a,logo:l}=n.meta;let d;return d=l?(0,c.jsx)(o.Z,{src:(0,r.aZ)({did:a,logoPath:l,baseUrl:new URL(t).origin}),fallback:i,width:64,size:"contain",placeholder:"application logo"}):(0,c.jsx)(s.Z,{did:a,size:64}),d}d.propTypes={blocklet:l().object.isRequired,blockletMetaUrl:l().string.isRequired}},13932:(e,n,t)=>{t.d(n,{Z:()=>p});var a,l=t(71171),o=t(68420),s=t(76811),i=t(33518),r=t(39948),c=t(5057),d=t(34937),u=t(96266);const h=(e,n)=>{console.info("getDownloadBundleStep",e);return(e||[]).map((e=>{var t;const a=n("launchBlocklet.waiting.".concat("extracting"===e.status?"extractingComponent":"downloadingComponent"),{name:(null===(t=e.component)||void 0===t?void 0:t.title)||""}),l=e.total&&e.current?": ".concat(Math.floor(e.current/e.total*100)," %"):"";let o=e.name?": ".concat(e.name):"";return l||(o+="..."),"".concat(a).concat(l).concat(o)})).join("\n")};function p(e){let{appDid:n,visible:t}=e;const{t:a}=(0,o.PE)(),l=function(e){let{appDid:n}=e;const[t,a]=(0,c.useState)([]),l=(0,d.ZP)();return(0,c.useEffect)((()=>(l.on(s.BlockletEvents.downloadBundleProgress,(e=>{n&&n===(null===e||void 0===e?void 0:e.appDid)&&a((n=>{const t=[...n],a=t.findIndex((n=>{var t,a;return(null===(t=n.component)||void 0===t?void 0:t.did)===(null===(a=e.component)||void 0===a?void 0:a.did)}));return"completed"===e.status?-1!==a&&t.splice(a,1):-1!==a?t[a]=e:t.push(e),[...t]}))})),()=>{l.off(s.BlockletEvents.downloadBundleProgress)})),[n,l]),t}({appDid:n});return(0,u.jsx)(m,{style:{display:t?"block":"none"},children:h(l,a)})}p.defaultProps={appDid:"",visible:!0};const m=(0,i.Z)(r.Z)(a||(a=(0,l.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 a,l=t(71171),o=t(33518),s=t(96266);function i(e){let{children:n}=e;return(0,s.jsx)(r,{children:n})}const r=o.Z.div(a||(a=(0,l.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 a=t(5057),l=t(76811),o=t(31853),s=t(11397),i=t.n(s),r=t(34937),c=t(10155);const d=i()("@abtnode/webapp:launch-blocklet:runtime-state"),u=Object.keys(l.BlockletStatus),h=Object.values(l.BlockletStatus),p=Object.values(l.BlockletEvents).filter((e=>![l.BlockletEvents.purchaseChange,l.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)(),l=(0,a.useRef)(null),s=()=>{e&&!l.current&&(l.current=setInterval((()=>{e&&(d("polling blocklet state"),v())}),f))},[i,x]=(0,o.Z)({status:null,eventName:"",runtimeBlocklet:null,error:"",isGetBlocklet:!1,startPolling:s,stopPolling:()=>{l.current&&clearInterval(l.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,a.useEffect)((()=>{let n=null;return e&&(d("schedule polling blocklet state"),n=setTimeout((()=>{s()}),g)),()=>{n&&clearInterval(n)}}),[e]),(0,a.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 a=u[h.indexOf(t.status)];d("blocklet event",{blockletEventName:n,status:a}),a&&(e.status=a)}x(e)}};for(const o of p)(0,a.useEffect)((()=>{const n=b(o);return e&&t.on(o,n),()=>{e&&t.off(o,n)}}),[e]);return i}},71667:(e,n,t)=>{t.r(n),t.d(n,{default:()=>Ue});var a,l,o=t(71171),s=t(85493),i=t(6352),r=t.n(i),c=t(21371),d=t(72904),u=t(33518),h=t(68420),p=t(63902),m=t(51703),g=t(12073),f=t(15959),x=t(10866),v=t(4456),b=t(28864),k=t(99641),y=t(44846),j=t(88574),w=t(35966),A=t(75793),E=t(38242),C=t(55309),Z=t(8790),B=t(77609),L=t(23484),N=t(96266);const M=u.Z.a(a||(a=(0,o.Z)(["\n display: block;\n height: 36px;\n color: ",";\n"])),(e=>e.theme.palette.primary.main)),P=(0,u.Z)(Z.Z)(l||(l=(0,o.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)),D=function(){const{t:e}=(0,h.PE)(),{info:n}=(0,A.h6)(),t=(0,L.Z)(),a=decodeURIComponent(t.get("accessUrl")||""),{meta:l}=(0,B.H0)();return(0,N.jsx)(P,{children:(0,N.jsx)("div",{className:"body",children:(0,N.jsx)(C.Z,{variant:"success",title:(0,E.getDisplayName)({meta:l},!0),subTitle:e("launchBlocklet.installSuccess",{serverName:n.name}),footer:(0,N.jsx)(M,{href:a,rel:"noreferrer","data-cy":"open-blocklet",children:e("common.open")})})})})};var I=t(39463),R=t(4651),Q=t(86229),T=t(14491),O=t(60344),S=t(17450),z=t(49983),U=t(35266),J=t(76811),F=t(2660),H=t(77429),X=t(48086),K=t(38898),V=t(75506),G=t.n(V),Y=t(50482),W=t.n(Y),_=t(5057),q=t(15849),$=t(67654),ee=t(31853),ne=t(11397),te=t.n(ne),ae=t(52581),le=t(11476),oe=t(25339),se=t(74094),ie=t(13455),re=t(28726);function ce(e){let{children:n,...t}=e;return(0,N.jsx)(re.Z,{variant:"contained",color:"primary",...t,children:n})}const de=(0,_.forwardRef)(((e,n)=>(0,N.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 Ee(){const e=(0,L.Z)(),{t:n,locale:t}=(0,h.PE)(),{api:a,info:l}=(0,A.h6)(),{session:o,api:i}=(0,oe.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:C,isInstalled:Z}=(0,B.H0)(),M=u?(0,E.getDisplayName)({meta:u},!0):null,P=e.get("launchType"),D=e.get("chainHost"),V=e.get("nftId"),Y=(0,_.useRef)(null),{decrypt:ne,encryptKey:te}=(0,z.R)(),[re]=(0,$.Z)("skip-blocklet-setup",!1),[ce,ue]=(0,ee.Z)({launching:!1,visiting:!1,statusChanged:!1,isConnectOpen:!1,nextAccessUrl:"",loaded:!1,installError:null,progressIndex:0,connectData:{action:"",baseUrl:"",checkFn:()=>{},extraParams:{}}}),he=(0,fe.Iq)({user:o.user,launchType:P,nftId:V}),pe=(0,I.getServerAuthMethod)(l,P,j,he),me=(0,le.Z)(he?m:""),{status:ye,eventName:Ee}=me,Ne=e.get("from");(0,_.useEffect)((()=>{d||(Z||C||Me(),ue({loaded:!0}))}),[d]);const Me=async()=>{const e=o.user?"".concat(o.user.fullName,"'s ").concat(M):M;if(ue({installError:null}),null!==o&&void 0!==o&&o.user&&!v&&"serverless"!==P)try{await(async()=>{const{isNew:e,decoded:n}=(0,se.bQ)(f,l.blockletRegistryList);e&&await a.addBlockletStore({input:{teamDid:l.did,url:n}})})()}catch(h){console.error("addNewRegistryToRegistryList error:",h)}if(p){var n,t,s;const a="launch-free-blocklet-by-".concat(pe);ue({isConnectOpen:!0,connectData:{action:a,baseUrl:"",checkFn:O.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,R.iK)(u),title:e,blockletMetaUrl:x,launchType:P,nftId:V,chainHost:decodeURIComponent(D),launcherUrl:k,launcherSessionId:j}}})}else{var i,c,d;const n="launch-paid-blocklet-by-".concat(pe),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,R.iK)(u)),t.searchParams.set("_ek_",te),t.searchParams.set("title",e),t.searchParams.set("autoConnect",!1),t.searchParams.set("blockletMetaUrl",x),P&&t.searchParams.set("launchType",P),V&&t.searchParams.set("nftId",V),k&&t.searchParams.set("launcherUrl",k),j&&t.searchParams.set("launcherSessionId",j);const{data:a}=await O.hi.get(t.href);ue({isConnectOpen:!0,connectData:{action:"verify-purchase-blocklet",baseUrl:new URL(x).origin,checkFn:O.od.create({baseURL:new URL(x).origin}).get,extraParams:{serverDid:l.did,blockletDid:null===u||void 0===u?void 0:u.did,nw:a.url}}})}},Pe=async n=>{if(ve("visitBlocklet",{status:ye,state:ce,appDid:m}),ce.visiting)return;ue({visiting:!0});const t=(0,T.A6)({blocklet:n}),a=await(0,se.D)(t);if(G()(a)&&"serverless"!==P||re)return ue({visiting:!1}),void setTimeout((()=>{(n=>{const t="/".concat(l.routing.adminPath,"/blocklets/").concat(n.meta.did,"/configuration").replace(/\/+/g,"/");let a="/launch-blocklet/complete?status=installed&name=".concat(encodeURIComponent(M),"&accessUrl=").concat(encodeURIComponent(t),"&blocklet_meta_url=").concat(x);const o=e.get("fromLauncher");o&&(a+="&fromLauncher=".concat(o)),P&&(a+="&launchType=".concat(P)),D&&(a+="&chainHost=".concat(D)),c(a)})(n)}),1e3);if(G()(a))return void ue({visiting:!1});if(!1===be(ye,ce))try{await i.post("/api/launch/".concat(g))}catch(d){ve("end launch failed",{error:(0,se.Z)(d)})}const o=new URL(a);o.searchParams.set("serverUrl",(0,R.RU)(l)),"running"!==n.status&&o.searchParams.set("__start__","1");const s=e.get("fromLauncher");s&&o.searchParams.set("fromLauncher",s),P&&o.searchParams.set("launchType",P),V&&o.searchParams.set("nftId",V),D&&o.searchParams.set("chainHost",D);const r=Ae();r&&o.searchParams.set("setupToken",r),ue({nextAccessUrl:o.href,visiting:!1}),setTimeout((()=>{we(),window.location.href=o.href}),1e3)},De=[n("launchBlocklet.waiting.verifying"),n("launchBlocklet.waiting.downloading"),n("launchBlocklet.waiting.extracting"),n("upgrading"===ye?"common.upgrading":"launchBlocklet.waiting.installing"),n("launchBlocklet.waiting.done")],Ie=()=>{ve("handleInstalledProgress",{status:ye,state:ce}),ye&&(ue({progressIndex:4}),Y.current&&(clearTimeout(Y.current),Y.current=null),Y.current=setTimeout((()=>{a.getBlocklet({input:{did:m,attachRuntimeInfo:!0}}).then((e=>{e.blocklet&&Pe(e.blocklet)}))}),500))};if((0,_.useEffect)((()=>{C&&ue({launching:!0}),Z&&Ie()}),[Z,C]),(0,_.useEffect)((()=>{if("serverless"!==P||Ee!==J.BlockletEvents.nftConsumed)switch(ye){case"waiting":ue({progressIndex:1,statusChanged:!0});break;case"downloading":ue({progressIndex:2,statusChanged:!0});break;case"installing":case"upgrading":ue({progressIndex:3,statusChanged:!0});break;case"installed":if("serverless"===P&&!(0,fe.MZ)(me))break;Ie();break;case"starting":case"running":case"stopped":Ie();break;case"corrupted":case"error":{const n={message:me.error.message,name:me.eventName};var e;if([J.BlockletEvents.downloadFailed,J.BlockletEvents.installFailed].includes(me.eventName)?n.action="retry":"error"!==ye&&"corrupted"!==ye||(n.action="view"),!W()(n,ce.installError))null!==me&&void 0!==me&&null!==(e=me.error)&&void 0!==e&&e.message&&Q.Z.error((0,se.Z)(me.error))}}else Ie()}),[ye,Ee,me]),ve("render",{status:ye,eventName:Ee,launchType:P,runtimeBlockletState:me,state:ce}),d||o.user&&null===ye||G()(u))return(0,N.jsx)(w.Z,{relative:"parent",children:(0,N.jsx)(y.Z,{})});if(ce.installError){const e={view:!v&&(0,N.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,N.jsxs)(Be,{children:[Ne&&(0,N.jsx)(de,{variant:"text",className:"bottom-button","data-cy":"go-back",disabled:ce.isConnectOpen,onClick:()=>{window.location.href=Ne},children:n("common.back")}),(0,N.jsxs)(de,{className:"bottom-button","data-cy":"retry-install",disabled:ce.isConnectOpen,onClick:Me,children:[ce.isConnectOpen&&(0,N.jsx)(y.Z,{size:16}),n("common.retry")]})]})},t=ce.installError.name?ce.installError.name.replace("blocklet.",""):"installFailed";return(0,N.jsx)(Le,{variant:"error",title:M,subTitle:(0,N.jsxs)(Ze,{children:[(0,N.jsx)("div",{children:n("launchBlocklet.error.".concat(t))}),ce.installError.message&&(0,N.jsx)("div",{className:"error-desc",children:n("common.errorMessage")+ce.installError.message})]}),footer:e[ce.installError.action]})}if(be(ye,ce))return ve("alreadyExists",{status:ye,state:ce,runtimeBlockletState:me}),(0,N.jsx)(Le,{variant:"info",title:n("common.reminder"),subTitle:n("launchBlocklet.alreadyExists",{name:(0,E.getDisplayName)({meta:u},!0)}),footer:(0,N.jsxs)("div",{children:[!ce.nextAccessUrl&&(0,N.jsx)(y.Z,{size:16}),ce.nextAccessUrl&&(0,N.jsx)(K.Z,{href:ce.nextAccessUrl,"data-cy":"open-blocklet",children:n("launchBlocklet.redirect")})]})});const Re=!ce.launching&&!ye;return(0,N.jsxs)(Ce,{children:[(0,N.jsx)("div",{className:"header",children:(0,N.jsx)(F.Z,{title:n(Re?"common.install":"common.installing"),subTitle:Re?n("launchBlocklet.subTitle",{appName:M,serverName:l.name}):""})}),(0,N.jsxs)("div",{className:"body",children:[Re&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("div",{className:"illustrations",children:[(0,N.jsx)("div",{className:"ills-block ills-block-left",children:(0,N.jsxs)("div",{className:"ills-block-inner",children:[(0,N.jsx)(ie.Z,{className:"i-icon",blocklet:{meta:u},blockletMetaUrl:x}),(0,N.jsx)("div",{className:"i-name",children:M})]})}),(0,N.jsx)(X.Z,{className:"arrow-icon"}),(0,N.jsx)("div",{className:"ills-block ills-block-right",children:(0,N.jsxs)("div",{className:"ills-block-inner",children:[(0,N.jsx)("img",{width:"64",height:"64",src:ae.Z,alt:""}),(0,N.jsx)("div",{className:"i-name",children:l.name}),(0,N.jsx)(S.Z,{size:12,responsive:!1,compact:!0,did:l.did})]})})]}),ce.loaded&&!Z&&!ce.launching&&(0,N.jsxs)(de,{className:"bottom-button","data-cy":"start-launch",disabled:ce.isConnectOpen,onClick:Me,children:[ce.isConnectOpen&&(0,N.jsx)(y.Z,{size:16}),n("launchBlocklet.confirmInstall")]})]}),ce.launching&&(0,N.jsxs)(xe.Z,{children:[(0,N.jsx)(U.Z,{increaseSpeed:.3,messageLoop:!1,message:(0,N.jsx)(H.Z,{steps:De,stepIndex:ce.progressIndex,autoGrowth:4===ce.progressIndex?1e3:4e3})}),[1,2].includes(ce.progressIndex)&&(0,N.jsx)(ge.Z,{appDid:m})]})]}),ce.isConnectOpen&&(0,N.jsx)(ge.Z,{appDid:m,visible:!1}),(0,N.jsx)(z.Z,{open:ce.isConnectOpen,popup:!0,saveConnect:!1,className:"connect",baseUrl:ce.connectData.baseUrl,action:ce.connectData.action,checkFn:ce.connectData.checkFn,extraParams:ce.connectData.extraParams,checkTimeout:6e5,webWalletUrl:(0,se.yP)(l),onSuccess:async e=>{Q.Z.success(n("launchBlocklet.dialog.success"));const t=Array.isArray(e)?e[e.length-1]:e;if(t.sessionToken&&((0,se.ZB)(ne(t.sessionToken)),await o.refresh()),t.setupToken&&je(t.setupToken),ue({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:()=>ue({isConnectOpen:!1}),locale:t,messages:{title:"".concat(n("launchBlocklet.dialog.title")),scan:ke(p,pe,n),confirm:n("launchBlocklet.dialog.confirm"),success:n("launchBlocklet.dialog.success")}})]})}const Ce=(0,u.Z)(Z.Z)(ue||(ue=(0,o.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,o.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,o.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)(C.Z)(me||(me=(0,o.Z)(["\n .result-footer {\n height: auto;\n }\n"])));var Ne,Me,Pe=t(31440),De=t(35432),Ie=t(32828);function Re(e){var n;let{onClickNext:t,handleDescEle:a,showPageHeader:l}=e;const o=(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=(0,_.useMemo)((()=>{if(!j)return"/blocklets/".concat(k,"/overview");if(!i)return"";const e=new URL(i);return"".concat(e.origin).concat(De.WELLKNOWN_SERVICE_PATH_PREFIX,"/admin")}),[i,j,k]),L=()=>{o("/launch-blocklet/install".concat(window.location.search))},M=t||L;if((0,_.useEffect)((()=>{g||(b?L():(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){Q.Z.error(e.message)}finally{d(!1)}})())}),[x,j,v,b]),v){const e=x?"alreadyRunning":"alreadyInstalled";return(0,N.jsx)(C.Z,{variant:"info",title:u("common.reminder"),subTitle:u("launchBlocklet.".concat(e),{name:(0,E.getDisplayName)({meta:f},!0)}),footer:(0,N.jsxs)(Te,{children:[(0,N.jsx)(de,{loading:!Z,"data-cy":"view-blocklet",component:j?void 0:q.Link,to:Z,href:Z,variant:x?"outlined":"contained",color:"primary",children:u("launchBlocklet.viewApplication")}),x&&(0,N.jsx)(de,{loading:c,className:"last-button",disabled:!i,href:i,"data-cy":"open-blocklet",children:u("common.open")})]})})}return p?(0,Ie.default)(f)||null!==f&&void 0!==f&&null!==(n=f.components)&&void 0!==n&&n.length?(0,N.jsxs)(Qe,{children:[l&&(0,N.jsx)(F.Z,{title:u("launchBlocklet.introduction"),subTitle:u("launchBlocklet.welcome")}),(0,N.jsx)(Pe.Z,{meta:f,onClickNext:M,handleDescEle:a})]}):(0,N.jsx)(Qe,{className:"center",children:(0,N.jsx)(C.Z,{variant:"error",subTitle:u("launchBlocklet.error.resourceBlocklet")})}):(0,N.jsx)(w.Z,{relative:"parent",children:(0,N.jsx)(y.Z,{})})}Re.defaultProps={onClickNext:null,handleDescEle:"",showPageHeader:!0};const Qe=u.Z.div(Ne||(Ne=(0,o.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(Me||(Me=(0,o.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 Oe,Se,ze;function Ue(){const e=(0,d.Z)((e=>e.breakpoints.down("md"))),{t:n,locale:t}=(0,h.PE)(),{info:a}=(0,A.h6)(),l=(0,se.yP)(a),{serverUrl:o,fromLauncher:i,meta:u,isFree:E,loading:C,error:Z,storeUrl:L}=(0,B.H0)(),M=r()((0,se.Y5)(),"/launch-blocklet"),P=[{key:"install",name:n("launchBlocklet.steps.installApp"),path:r()(M,"install")},{key:"setup",name:n("setup.steps.launchApp")}];let I=[{key:"agreement",name:n("launchBlocklet.introduction"),path:r()(M,"agreement")},...P];const R=()=>{o&&window.open(o)};let Q=(0,N.jsx)(He,{className:"".concat(o?"logo-can-click":""),children:(0,N.jsx)(k.Z,{onClick:R,logo:e?(0,N.jsx)(x.Z,{width:"32",height:"32"}):(0,N.jsx)(v.Z,{width:"128",height:"48"})})});i&&(I=[{key:"purchase-space",name:n("launchBlocklet.steps.purchaseSpace")},{key:"prepare-space",name:n("launchBlocklet.steps.prepareSpace")},...P],Q=(0,N.jsx)(He,{className:"".concat(o?"logo-can-click":""),children:(0,N.jsx)(k.Z,{logo:e?(0,N.jsx)(x.Z,{onClick:R,width:"32",height:"32"}):(0,N.jsx)(v.Z,{onClick:R,width:"128",height:"48"}),previousData:{logo:e?(0,N.jsx)(f.Z,{width:"32",height:"32"}):(0,N.jsx)(b.Z,{width:"145",height:"48"})}})}));const T={meta:u,isFree:E};return(0,N.jsx)(m.W,{steps:I,children:(0,N.jsx)(p.Z,{locale:t,loading:C,blockletMeta:{...u,isFree:E},useOfSkeleton:!1,navLogo:Q,headerEndAddons:(0,N.jsx)(g.Z,{webWalletUrl:l,SessionContext:oe.B3}),pcWidth:"80%",style:{height:"100%"},logoUrl:u&&u.logo?(0,se.aZ)({did:u.did,baseUrl:L,logoPath:u.logo}):null,children:(0,N.jsxs)(Fe,{children:[(0,N.jsx)(c.Global,{styles:Je}),C&&(0,N.jsx)(w.Z,{relative:"parent",children:(0,N.jsx)(y.Z,{})}),!C&&Z&&(0,N.jsx)(w.Z,{relative:"parent",children:(0,N.jsx)(j.Z,{style:{wordBreak:"break-all"},variant:"icon",type:"error",children:Z})}),!C&&!Z&&(0,N.jsxs)(s.Routes,{children:[(0,N.jsx)(s.Route,{path:"agreement",element:(0,N.jsx)(Re,{})}),(0,N.jsx)(s.Route,{path:"install",element:(0,N.jsx)(Ee,{})}),(0,N.jsx)(s.Route,{path:"complete",element:(0,N.jsx)(D,{blocklet:T})}),(0,N.jsx)(s.Route,{path:"*",element:(0,N.jsx)(s.Navigate,{to:"agreement".concat(window.location.search),replace:!0})})]})]})})})}const Je=(0,c.css)(Oe||(Oe=(0,o.Z)(["\n html,\n body,\n #root,\n #root > .wrapper {\n height: 100%;\n }\n"]))),Fe=u.Z.div(Se||(Se=(0,o.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"]))),He=u.Z.div(ze||(ze=(0,o.Z)(["\n margin-top: -1px;\n &.logo-can-click {\n cursor: pointer;\n }\n"])))},31440:(e,n,t)=>{t.d(n,{Z:()=>g});var a,l=t(71171),o=t(55898),s=t.n(o),i=t(85493),r=t(33518),c=t(68420),d=t(40265),u=t(44566),h=t(35432),p=t(96266);function m(e){let{...n}=e;return(0,p.jsxs)("div",{...n,style:{width:"100%"},children:[(0,p.jsx)("h3",{children:"End User License Agreement for Application"}),(0,p.jsxs)("p",{children:["Blocklet Server License Agreement ",h.COPYRIGHT_OWNER," version 2020-08-28"]}),(0,p.jsx)("p",{children:"BLOCKLET SERVER LICENSE AGREEMENT"}),(0,p.jsx)("p",{children:"\u6682\u65e0"})]})}function g(e){let{meta:n,onClickNext:t,handleDescEle:a}=e;const l=(0,i.useNavigate)(),{t:o,locale:s}=(0,c.PE)(),r=t||(()=>{l("/launch-blocklet/install".concat(window.location.search))});return(0,p.jsxs)(f,{children:[(0,p.jsx)("div",{className:"app-content",children:(0,p.jsx)("div",{className:"agreement",children:(0,p.jsx)("div",{className:"agreement-content",children:(0,p.jsx)(u.Z,{blockletMeta:{data:n},locale:s,handleDescEle:a})})})}),(0,p.jsx)("div",{className:"button-container","data-cy":"agree-all",children:(0,p.jsx)(d.Z,{onContinue:r,description:(0,p.jsx)(m,{}),texts:{listenName:o("launchBlocklet.license"),buttonNext:o("launchBlocklet.next")}})})]})}g.propTypes={meta:s().object.isRequired,onClickNext:s().func,handleDescEle:s().node},g.defaultProps={onClickNext:null,handleDescEle:""};const f=r.Z.div(a||(a=(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 .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"])),(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")))},8790:(e,n,t)=>{t.d(n,{Z:()=>c});var a,l=t(71171),o=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=o.Z.div(a||(a=(0,l.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")))},99641:(e,n,t)=>{t.d(n,{Z:()=>d});var a,l,o=t(71171),s=t(55898),i=t.n(s),r=t(33518),c=t(96266);function d(e){let{logo:n,name:t,subname:a,previousData:l,...o}=e,s=(0,c.jsx)(u,{logo:n}),i=t,r=a;return l.logo&&(s=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(u,{logo:n,className:"left-fade-in-ele"}),(0,c.jsx)(u,{logo:l.logo,className:"postion-abs left-fade-out-ele"})]})),l.name&&l.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:l.name})]})),l.subname&&l.subname!==a&&(r=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"right-fade-in-ele",style:{display:"inline-block"},children:a}),(0,c.jsx)("span",{className:"postion-abs right-fade-out-ele",children:l.subname})]})),(0,c.jsx)(p,{...o,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||a?"":"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(a||(a=(0,o.Z)(["\n display: block;\n > * {\n display: block;\n }\n"]))),p=r.Z.div(l||(l=(0,o.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"])))},60344:(e,n,t)=>{t.d(n,{hi:()=>o,od:()=>l.a});var a=t(10458),l=t.n(a);l().defaults.timeout=1e4;const o=l().create()},28864:(e,n,t)=>{n.Z=void 0;(a=t(5057))&&a.__esModule;var a,l=t(96266);function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(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||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,n||"default");if("object"!==typeof a)return a;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,l.jsxs)("svg",s(s({},e),{},{children:[(0,l.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,l.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,l.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,l.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,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"paint0_linear_615_416",x1:"30.72",y1:"95.721",x2:"94.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,l.jsxs)("linearGradient",{id:"paint1_linear_615_416",x1:"27.437",y1:"99.246",x2:"97.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.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";var c=r;n.Z=c},15959:(e,n,t)=>{n.Z=void 0;(a=t(5057))&&a.__esModule;var a,l=t(96266);function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(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||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,n||"default");if("object"!==typeof a)return a;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,l.jsxs)("svg",s(s({},e),{},{children:[(0,l.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,l.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,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"paint0_linear_615_428",x1:"31.72",y1:"95.721",x2:"95.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,l.jsxs)("linearGradient",{id:"paint1_linear_615_428",x1:"28.437",y1:"99.246",x2:"98.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.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";var c=r;n.Z=c}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[1667],{13455:(e,n,t)=>{t.d(n,{Z:()=>d});var a=t(55898),l=t.n(a),o=t(95081),s=t(72333);const i="data:image/png;base64,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";var r=t(74094),c=t(96266);function d(e){let{blocklet:n,blockletMetaUrl:t}=e;const{did:a,logo:l}=n.meta;let d;return d=l?(0,c.jsx)(o.Z,{src:(0,r.aZ)({did:a,logoPath:l,baseUrl:new URL(t).origin}),fallback:i,width:64,size:"contain",placeholder:"application logo"}):(0,c.jsx)(s.Z,{did:a,size:64}),d}d.propTypes={blocklet:l().object.isRequired,blockletMetaUrl:l().string.isRequired}},13932:(e,n,t)=>{t.d(n,{Z:()=>p});var a,l=t(71171),o=t(68420),s=t(77277),i=t(33518),r=t(39948),c=t(5057),d=t(34937),u=t(96266);const h=(e,n)=>{console.info("getDownloadBundleStep",e);return(e||[]).map((e=>{var t;const a=n("launchBlocklet.waiting.".concat("extracting"===e.status?"extractingComponent":"downloadingComponent"),{name:(null===(t=e.component)||void 0===t?void 0:t.title)||""}),l=e.total&&e.current?": ".concat(Math.floor(e.current/e.total*100)," %"):"";let o=e.name?": ".concat(e.name):"";return l||(o+="..."),"".concat(a).concat(l).concat(o)})).join("\n")};function p(e){let{appDid:n,visible:t}=e;const{t:a}=(0,o.PE)(),l=function(e){let{appDid:n}=e;const[t,a]=(0,c.useState)([]),l=(0,d.ZP)();return(0,c.useEffect)((()=>(l.on(s.BlockletEvents.downloadBundleProgress,(e=>{n&&n===(null===e||void 0===e?void 0:e.appDid)&&a((n=>{const t=[...n],a=t.findIndex((n=>{var t,a;return(null===(t=n.component)||void 0===t?void 0:t.did)===(null===(a=e.component)||void 0===a?void 0:a.did)}));return"completed"===e.status?-1!==a&&t.splice(a,1):-1!==a?t[a]=e:t.push(e),[...t]}))})),()=>{l.off(s.BlockletEvents.downloadBundleProgress)})),[n,l]),t}({appDid:n});return(0,u.jsx)(m,{style:{display:t?"block":"none"},children:h(l,a)})}p.defaultProps={appDid:"",visible:!0};const m=(0,i.Z)(r.Z)(a||(a=(0,l.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 a,l=t(71171),o=t(33518),s=t(96266);function i(e){let{children:n}=e;return(0,s.jsx)(r,{children:n})}const r=o.Z.div(a||(a=(0,l.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 a=t(5057),l=t(77277),o=t(31853),s=t(11397),i=t.n(s),r=t(34937),c=t(10155);const d=i()("@abtnode/webapp:launch-blocklet:runtime-state"),u=Object.keys(l.BlockletStatus),h=Object.values(l.BlockletStatus),p=Object.values(l.BlockletEvents).filter((e=>![l.BlockletEvents.purchaseChange,l.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)(),l=(0,a.useRef)(null),s=()=>{e&&!l.current&&(l.current=setInterval((()=>{e&&(d("polling blocklet state"),v())}),f))},[i,x]=(0,o.Z)({status:null,eventName:"",runtimeBlocklet:null,error:"",isGetBlocklet:!1,startPolling:s,stopPolling:()=>{l.current&&clearInterval(l.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,a.useEffect)((()=>{let n=null;return e&&(d("schedule polling blocklet state"),n=setTimeout((()=>{s()}),g)),()=>{n&&clearInterval(n)}}),[e]),(0,a.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 a=u[h.indexOf(t.status)];d("blocklet event",{blockletEventName:n,status:a}),a&&(e.status=a)}x(e)}};for(const o of p)(0,a.useEffect)((()=>{const n=b(o);return e&&t.on(o,n),()=>{e&&t.off(o,n)}}),[e]);return i}},71667:(e,n,t)=>{t.r(n),t.d(n,{default:()=>Ue});var a,l,o=t(71171),s=t(85493),i=t(6352),r=t.n(i),c=t(21371),d=t(72904),u=t(33518),h=t(68420),p=t(63902),m=t(51703),g=t(12073),f=t(15959),x=t(10866),v=t(4456),b=t(28864),k=t(99641),y=t(44846),j=t(88574),w=t(35966),A=t(75793),E=t(38242),C=t(55309),Z=t(8790),B=t(77609),L=t(23484),N=t(96266);const M=u.Z.a(a||(a=(0,o.Z)(["\n display: block;\n height: 36px;\n color: ",";\n"])),(e=>e.theme.palette.primary.main)),P=(0,u.Z)(Z.Z)(l||(l=(0,o.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)),D=function(){const{t:e}=(0,h.PE)(),{info:n}=(0,A.h6)(),t=(0,L.Z)(),a=decodeURIComponent(t.get("accessUrl")||""),{meta:l}=(0,B.H0)();return(0,N.jsx)(P,{children:(0,N.jsx)("div",{className:"body",children:(0,N.jsx)(C.Z,{variant:"success",title:(0,E.getDisplayName)({meta:l},!0),subTitle:e("launchBlocklet.installSuccess",{serverName:n.name}),footer:(0,N.jsx)(M,{href:a,rel:"noreferrer","data-cy":"open-blocklet",children:e("common.open")})})})})};var I=t(39463),R=t(4651),Q=t(86229),T=t(14491),O=t(60344),S=t(17450),z=t(49983),U=t(35266),J=t(77277),F=t(2660),H=t(77429),X=t(48086),K=t(38898),V=t(75506),G=t.n(V),Y=t(50482),W=t.n(Y),_=t(5057),q=t(15849),$=t(67654),ee=t(31853),ne=t(11397),te=t.n(ne),ae=t(52581),le=t(11476),oe=t(25339),se=t(74094),ie=t(13455),re=t(28726);function ce(e){let{children:n,...t}=e;return(0,N.jsx)(re.Z,{variant:"contained",color:"primary",...t,children:n})}const de=(0,_.forwardRef)(((e,n)=>(0,N.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 Ee(){const e=(0,L.Z)(),{t:n,locale:t}=(0,h.PE)(),{api:a,info:l}=(0,A.h6)(),{session:o,api:i}=(0,oe.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:C,isInstalled:Z}=(0,B.H0)(),M=u?(0,E.getDisplayName)({meta:u},!0):null,P=e.get("launchType"),D=e.get("chainHost"),V=e.get("nftId"),Y=(0,_.useRef)(null),{decrypt:ne,encryptKey:te}=(0,z.R)(),[re]=(0,$.Z)("skip-blocklet-setup",!1),[ce,ue]=(0,ee.Z)({launching:!1,visiting:!1,statusChanged:!1,isConnectOpen:!1,nextAccessUrl:"",loaded:!1,installError:null,progressIndex:0,connectData:{action:"",baseUrl:"",checkFn:()=>{},extraParams:{}}}),he=(0,fe.Iq)({user:o.user,launchType:P,nftId:V}),pe=(0,I.getServerAuthMethod)(l,P,j,he),me=(0,le.Z)(he?m:""),{status:ye,eventName:Ee}=me,Ne=e.get("from");(0,_.useEffect)((()=>{d||(Z||C||Me(),ue({loaded:!0}))}),[d]);const Me=async()=>{const e=o.user?"".concat(o.user.fullName,"'s ").concat(M):M;if(ue({installError:null}),null!==o&&void 0!==o&&o.user&&!v&&"serverless"!==P)try{await(async()=>{const{isNew:e,decoded:n}=(0,se.bQ)(f,l.blockletRegistryList);e&&await a.addBlockletStore({input:{teamDid:l.did,url:n}})})()}catch(h){console.error("addNewRegistryToRegistryList error:",h)}if(p){var n,t,s;const a="launch-free-blocklet-by-".concat(pe);ue({isConnectOpen:!0,connectData:{action:a,baseUrl:"",checkFn:O.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,R.iK)(u),title:e,blockletMetaUrl:x,launchType:P,nftId:V,chainHost:decodeURIComponent(D),launcherUrl:k,launcherSessionId:j}}})}else{var i,c,d;const n="launch-paid-blocklet-by-".concat(pe),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,R.iK)(u)),t.searchParams.set("_ek_",te),t.searchParams.set("title",e),t.searchParams.set("autoConnect",!1),t.searchParams.set("blockletMetaUrl",x),P&&t.searchParams.set("launchType",P),V&&t.searchParams.set("nftId",V),k&&t.searchParams.set("launcherUrl",k),j&&t.searchParams.set("launcherSessionId",j);const{data:a}=await O.hi.get(t.href);ue({isConnectOpen:!0,connectData:{action:"verify-purchase-blocklet",baseUrl:new URL(x).origin,checkFn:O.od.create({baseURL:new URL(x).origin}).get,extraParams:{serverDid:l.did,blockletDid:null===u||void 0===u?void 0:u.did,nw:a.url}}})}},Pe=async n=>{if(ve("visitBlocklet",{status:ye,state:ce,appDid:m}),ce.visiting)return;ue({visiting:!0});const t=(0,T.A6)({blocklet:n}),a=await(0,se.D)(t);if(G()(a)&&"serverless"!==P||re)return ue({visiting:!1}),void setTimeout((()=>{(n=>{const t="/".concat(l.routing.adminPath,"/blocklets/").concat(n.meta.did,"/configuration").replace(/\/+/g,"/");let a="/launch-blocklet/complete?status=installed&name=".concat(encodeURIComponent(M),"&accessUrl=").concat(encodeURIComponent(t),"&blocklet_meta_url=").concat(x);const o=e.get("fromLauncher");o&&(a+="&fromLauncher=".concat(o)),P&&(a+="&launchType=".concat(P)),D&&(a+="&chainHost=".concat(D)),c(a)})(n)}),1e3);if(G()(a))return void ue({visiting:!1});if(!1===be(ye,ce))try{await i.post("/api/launch/".concat(g))}catch(d){ve("end launch failed",{error:(0,se.Z)(d)})}const o=new URL(a);o.searchParams.set("serverUrl",(0,R.RU)(l)),"running"!==n.status&&o.searchParams.set("__start__","1");const s=e.get("fromLauncher");s&&o.searchParams.set("fromLauncher",s),P&&o.searchParams.set("launchType",P),V&&o.searchParams.set("nftId",V),D&&o.searchParams.set("chainHost",D);const r=Ae();r&&o.searchParams.set("setupToken",r),ue({nextAccessUrl:o.href,visiting:!1}),setTimeout((()=>{we(),window.location.href=o.href}),1e3)},De=[n("launchBlocklet.waiting.verifying"),n("launchBlocklet.waiting.downloading"),n("launchBlocklet.waiting.extracting"),n("upgrading"===ye?"common.upgrading":"launchBlocklet.waiting.installing"),n("launchBlocklet.waiting.done")],Ie=()=>{ve("handleInstalledProgress",{status:ye,state:ce}),ye&&(ue({progressIndex:4}),Y.current&&(clearTimeout(Y.current),Y.current=null),Y.current=setTimeout((()=>{a.getBlocklet({input:{did:m,attachRuntimeInfo:!0}}).then((e=>{e.blocklet&&Pe(e.blocklet)}))}),500))};if((0,_.useEffect)((()=>{C&&ue({launching:!0}),Z&&Ie()}),[Z,C]),(0,_.useEffect)((()=>{if("serverless"!==P||Ee!==J.BlockletEvents.nftConsumed)switch(ye){case"waiting":ue({progressIndex:1,statusChanged:!0});break;case"downloading":ue({progressIndex:2,statusChanged:!0});break;case"installing":case"upgrading":ue({progressIndex:3,statusChanged:!0});break;case"installed":if("serverless"===P&&!(0,fe.MZ)(me))break;Ie();break;case"starting":case"running":case"stopped":Ie();break;case"corrupted":case"error":{const n={message:me.error.message,name:me.eventName};var e;if([J.BlockletEvents.downloadFailed,J.BlockletEvents.installFailed].includes(me.eventName)?n.action="retry":"error"!==ye&&"corrupted"!==ye||(n.action="view"),!W()(n,ce.installError))null!==me&&void 0!==me&&null!==(e=me.error)&&void 0!==e&&e.message&&Q.Z.error((0,se.Z)(me.error))}}else Ie()}),[ye,Ee,me]),ve("render",{status:ye,eventName:Ee,launchType:P,runtimeBlockletState:me,state:ce}),d||o.user&&null===ye||G()(u))return(0,N.jsx)(w.Z,{relative:"parent",children:(0,N.jsx)(y.Z,{})});if(ce.installError){const e={view:!v&&(0,N.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,N.jsxs)(Be,{children:[Ne&&(0,N.jsx)(de,{variant:"text",className:"bottom-button","data-cy":"go-back",disabled:ce.isConnectOpen,onClick:()=>{window.location.href=Ne},children:n("common.back")}),(0,N.jsxs)(de,{className:"bottom-button","data-cy":"retry-install",disabled:ce.isConnectOpen,onClick:Me,children:[ce.isConnectOpen&&(0,N.jsx)(y.Z,{size:16}),n("common.retry")]})]})},t=ce.installError.name?ce.installError.name.replace("blocklet.",""):"installFailed";return(0,N.jsx)(Le,{variant:"error",title:M,subTitle:(0,N.jsxs)(Ze,{children:[(0,N.jsx)("div",{children:n("launchBlocklet.error.".concat(t))}),ce.installError.message&&(0,N.jsx)("div",{className:"error-desc",children:n("common.errorMessage")+ce.installError.message})]}),footer:e[ce.installError.action]})}if(be(ye,ce))return ve("alreadyExists",{status:ye,state:ce,runtimeBlockletState:me}),(0,N.jsx)(Le,{variant:"info",title:n("common.reminder"),subTitle:n("launchBlocklet.alreadyExists",{name:(0,E.getDisplayName)({meta:u},!0)}),footer:(0,N.jsxs)("div",{children:[!ce.nextAccessUrl&&(0,N.jsx)(y.Z,{size:16}),ce.nextAccessUrl&&(0,N.jsx)(K.Z,{href:ce.nextAccessUrl,"data-cy":"open-blocklet",children:n("launchBlocklet.redirect")})]})});const Re=!ce.launching&&!ye;return(0,N.jsxs)(Ce,{children:[(0,N.jsx)("div",{className:"header",children:(0,N.jsx)(F.Z,{title:n(Re?"common.install":"common.installing"),subTitle:Re?n("launchBlocklet.subTitle",{appName:M,serverName:l.name}):""})}),(0,N.jsxs)("div",{className:"body",children:[Re&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("div",{className:"illustrations",children:[(0,N.jsx)("div",{className:"ills-block ills-block-left",children:(0,N.jsxs)("div",{className:"ills-block-inner",children:[(0,N.jsx)(ie.Z,{className:"i-icon",blocklet:{meta:u},blockletMetaUrl:x}),(0,N.jsx)("div",{className:"i-name",children:M})]})}),(0,N.jsx)(X.Z,{className:"arrow-icon"}),(0,N.jsx)("div",{className:"ills-block ills-block-right",children:(0,N.jsxs)("div",{className:"ills-block-inner",children:[(0,N.jsx)("img",{width:"64",height:"64",src:ae.Z,alt:""}),(0,N.jsx)("div",{className:"i-name",children:l.name}),(0,N.jsx)(S.Z,{size:12,responsive:!1,compact:!0,did:l.did})]})})]}),ce.loaded&&!Z&&!ce.launching&&(0,N.jsxs)(de,{className:"bottom-button","data-cy":"start-launch",disabled:ce.isConnectOpen,onClick:Me,children:[ce.isConnectOpen&&(0,N.jsx)(y.Z,{size:16}),n("launchBlocklet.confirmInstall")]})]}),ce.launching&&(0,N.jsxs)(xe.Z,{children:[(0,N.jsx)(U.Z,{increaseSpeed:.3,messageLoop:!1,message:(0,N.jsx)(H.Z,{steps:De,stepIndex:ce.progressIndex,autoGrowth:4===ce.progressIndex?1e3:4e3})}),[1,2].includes(ce.progressIndex)&&(0,N.jsx)(ge.Z,{appDid:m})]})]}),ce.isConnectOpen&&(0,N.jsx)(ge.Z,{appDid:m,visible:!1}),(0,N.jsx)(z.Z,{open:ce.isConnectOpen,popup:!0,saveConnect:!1,className:"connect",baseUrl:ce.connectData.baseUrl,action:ce.connectData.action,checkFn:ce.connectData.checkFn,extraParams:ce.connectData.extraParams,checkTimeout:6e5,webWalletUrl:(0,se.yP)(l),onSuccess:async e=>{Q.Z.success(n("launchBlocklet.dialog.success"));const t=Array.isArray(e)?e[e.length-1]:e;if(t.sessionToken&&((0,se.ZB)(ne(t.sessionToken)),await o.refresh()),t.setupToken&&je(t.setupToken),ue({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:()=>ue({isConnectOpen:!1}),locale:t,messages:{title:"".concat(n("launchBlocklet.dialog.title")),scan:ke(p,pe,n),confirm:n("launchBlocklet.dialog.confirm"),success:n("launchBlocklet.dialog.success")}})]})}const Ce=(0,u.Z)(Z.Z)(ue||(ue=(0,o.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,o.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,o.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)(C.Z)(me||(me=(0,o.Z)(["\n .result-footer {\n height: auto;\n }\n"])));var Ne,Me,Pe=t(31440),De=t(35432),Ie=t(32828);function Re(e){var n;let{onClickNext:t,handleDescEle:a,showPageHeader:l}=e;const o=(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=(0,_.useMemo)((()=>{if(!j)return"/blocklets/".concat(k,"/overview");if(!i)return"";const e=new URL(i);return"".concat(e.origin).concat(De.WELLKNOWN_SERVICE_PATH_PREFIX,"/admin")}),[i,j,k]),L=()=>{o("/launch-blocklet/install".concat(window.location.search))},M=t||L;if((0,_.useEffect)((()=>{g||(b?L():(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){Q.Z.error(e.message)}finally{d(!1)}})())}),[x,j,v,b]),v){const e=x?"alreadyRunning":"alreadyInstalled";return(0,N.jsx)(C.Z,{variant:"info",title:u("common.reminder"),subTitle:u("launchBlocklet.".concat(e),{name:(0,E.getDisplayName)({meta:f},!0)}),footer:(0,N.jsxs)(Te,{children:[(0,N.jsx)(de,{loading:!Z,"data-cy":"view-blocklet",component:j?void 0:q.Link,to:Z,href:Z,variant:x?"outlined":"contained",color:"primary",children:u("launchBlocklet.viewApplication")}),x&&(0,N.jsx)(de,{loading:c,className:"last-button",disabled:!i,href:i,"data-cy":"open-blocklet",children:u("common.open")})]})})}return p?(0,Ie.default)(f)||null!==f&&void 0!==f&&null!==(n=f.components)&&void 0!==n&&n.length?(0,N.jsxs)(Qe,{children:[l&&(0,N.jsx)(F.Z,{title:u("launchBlocklet.introduction"),subTitle:u("launchBlocklet.welcome")}),(0,N.jsx)(Pe.Z,{meta:f,onClickNext:M,handleDescEle:a})]}):(0,N.jsx)(Qe,{className:"center",children:(0,N.jsx)(C.Z,{variant:"error",subTitle:u("launchBlocklet.error.resourceBlocklet")})}):(0,N.jsx)(w.Z,{relative:"parent",children:(0,N.jsx)(y.Z,{})})}Re.defaultProps={onClickNext:null,handleDescEle:"",showPageHeader:!0};const Qe=u.Z.div(Ne||(Ne=(0,o.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(Me||(Me=(0,o.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 Oe,Se,ze;function Ue(){const e=(0,d.Z)((e=>e.breakpoints.down("md"))),{t:n,locale:t}=(0,h.PE)(),{info:a}=(0,A.h6)(),l=(0,se.yP)(a),{serverUrl:o,fromLauncher:i,meta:u,isFree:E,loading:C,error:Z,storeUrl:L}=(0,B.H0)(),M=r()((0,se.Y5)(),"/launch-blocklet"),P=[{key:"install",name:n("launchBlocklet.steps.installApp"),path:r()(M,"install")},{key:"setup",name:n("setup.steps.launchApp")}];let I=[{key:"agreement",name:n("launchBlocklet.introduction"),path:r()(M,"agreement")},...P];const R=()=>{o&&window.open(o)};let Q=(0,N.jsx)(He,{className:"".concat(o?"logo-can-click":""),children:(0,N.jsx)(k.Z,{onClick:R,logo:e?(0,N.jsx)(x.Z,{width:"32",height:"32"}):(0,N.jsx)(v.Z,{width:"128",height:"48"})})});i&&(I=[{key:"purchase-space",name:n("launchBlocklet.steps.purchaseSpace")},{key:"prepare-space",name:n("launchBlocklet.steps.prepareSpace")},...P],Q=(0,N.jsx)(He,{className:"".concat(o?"logo-can-click":""),children:(0,N.jsx)(k.Z,{logo:e?(0,N.jsx)(x.Z,{onClick:R,width:"32",height:"32"}):(0,N.jsx)(v.Z,{onClick:R,width:"128",height:"48"}),previousData:{logo:e?(0,N.jsx)(f.Z,{width:"32",height:"32"}):(0,N.jsx)(b.Z,{width:"145",height:"48"})}})}));const T={meta:u,isFree:E};return(0,N.jsx)(m.W,{steps:I,children:(0,N.jsx)(p.Z,{locale:t,loading:C,blockletMeta:{...u,isFree:E},useOfSkeleton:!1,navLogo:Q,headerEndAddons:(0,N.jsx)(g.Z,{webWalletUrl:l,SessionContext:oe.B3}),pcWidth:"80%",style:{height:"100%"},logoUrl:u&&u.logo?(0,se.aZ)({did:u.did,baseUrl:L,logoPath:u.logo}):null,children:(0,N.jsxs)(Fe,{children:[(0,N.jsx)(c.Global,{styles:Je}),C&&(0,N.jsx)(w.Z,{relative:"parent",children:(0,N.jsx)(y.Z,{})}),!C&&Z&&(0,N.jsx)(w.Z,{relative:"parent",children:(0,N.jsx)(j.Z,{style:{wordBreak:"break-all"},variant:"icon",type:"error",children:Z})}),!C&&!Z&&(0,N.jsxs)(s.Routes,{children:[(0,N.jsx)(s.Route,{path:"agreement",element:(0,N.jsx)(Re,{})}),(0,N.jsx)(s.Route,{path:"install",element:(0,N.jsx)(Ee,{})}),(0,N.jsx)(s.Route,{path:"complete",element:(0,N.jsx)(D,{blocklet:T})}),(0,N.jsx)(s.Route,{path:"*",element:(0,N.jsx)(s.Navigate,{to:"agreement".concat(window.location.search),replace:!0})})]})]})})})}const Je=(0,c.css)(Oe||(Oe=(0,o.Z)(["\n html,\n body,\n #root,\n #root > .wrapper {\n height: 100%;\n }\n"]))),Fe=u.Z.div(Se||(Se=(0,o.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"]))),He=u.Z.div(ze||(ze=(0,o.Z)(["\n margin-top: -1px;\n &.logo-can-click {\n cursor: pointer;\n }\n"])))},31440:(e,n,t)=>{t.d(n,{Z:()=>g});var a,l=t(71171),o=t(55898),s=t.n(o),i=t(85493),r=t(33518),c=t(68420),d=t(40265),u=t(44566),h=t(35432),p=t(96266);function m(e){let{...n}=e;return(0,p.jsxs)("div",{...n,style:{width:"100%"},children:[(0,p.jsx)("h3",{children:"End User License Agreement for Application"}),(0,p.jsxs)("p",{children:["Blocklet Server License Agreement ",h.COPYRIGHT_OWNER," version 2020-08-28"]}),(0,p.jsx)("p",{children:"BLOCKLET SERVER LICENSE AGREEMENT"}),(0,p.jsx)("p",{children:"\u6682\u65e0"})]})}function g(e){let{meta:n,onClickNext:t,handleDescEle:a}=e;const l=(0,i.useNavigate)(),{t:o,locale:s}=(0,c.PE)(),r=t||(()=>{l("/launch-blocklet/install".concat(window.location.search))});return(0,p.jsxs)(f,{children:[(0,p.jsx)("div",{className:"app-content",children:(0,p.jsx)("div",{className:"agreement",children:(0,p.jsx)("div",{className:"agreement-content",children:(0,p.jsx)(u.Z,{blockletMeta:{data:n},locale:s,handleDescEle:a})})})}),(0,p.jsx)("div",{className:"button-container","data-cy":"agree-all",children:(0,p.jsx)(d.Z,{onContinue:r,description:(0,p.jsx)(m,{}),texts:{listenName:o("launchBlocklet.license"),buttonNext:o("launchBlocklet.next")}})})]})}g.propTypes={meta:s().object.isRequired,onClickNext:s().func,handleDescEle:s().node},g.defaultProps={onClickNext:null,handleDescEle:""};const f=r.Z.div(a||(a=(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 .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"])),(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")))},8790:(e,n,t)=>{t.d(n,{Z:()=>c});var a,l=t(71171),o=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=o.Z.div(a||(a=(0,l.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")))},99641:(e,n,t)=>{t.d(n,{Z:()=>d});var a,l,o=t(71171),s=t(55898),i=t.n(s),r=t(33518),c=t(96266);function d(e){let{logo:n,name:t,subname:a,previousData:l,...o}=e,s=(0,c.jsx)(u,{logo:n}),i=t,r=a;return l.logo&&(s=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(u,{logo:n,className:"left-fade-in-ele"}),(0,c.jsx)(u,{logo:l.logo,className:"postion-abs left-fade-out-ele"})]})),l.name&&l.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:l.name})]})),l.subname&&l.subname!==a&&(r=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"right-fade-in-ele",style:{display:"inline-block"},children:a}),(0,c.jsx)("span",{className:"postion-abs right-fade-out-ele",children:l.subname})]})),(0,c.jsx)(p,{...o,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||a?"":"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(a||(a=(0,o.Z)(["\n display: block;\n > * {\n display: block;\n }\n"]))),p=r.Z.div(l||(l=(0,o.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"])))},60344:(e,n,t)=>{t.d(n,{hi:()=>o,od:()=>l.a});var a=t(10458),l=t.n(a);l().defaults.timeout=1e4;const o=l().create()},28864:(e,n,t)=>{n.Z=void 0;(a=t(5057))&&a.__esModule;var a,l=t(96266);function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(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||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,n||"default");if("object"!==typeof a)return a;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,l.jsxs)("svg",s(s({},e),{},{children:[(0,l.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,l.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,l.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,l.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,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"paint0_linear_615_416",x1:"30.72",y1:"95.721",x2:"94.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,l.jsxs)("linearGradient",{id:"paint1_linear_615_416",x1:"27.437",y1:"99.246",x2:"97.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.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";var c=r;n.Z=c},15959:(e,n,t)=>{n.Z=void 0;(a=t(5057))&&a.__esModule;var a,l=t(96266);function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(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||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,n||"default");if("object"!==typeof a)return a;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,l.jsxs)("svg",s(s({},e),{},{children:[(0,l.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,l.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,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"paint0_linear_615_428",x1:"31.72",y1:"95.721",x2:"95.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,l.jsxs)("linearGradient",{id:"paint1_linear_615_428",x1:"28.437",y1:"99.246",x2:"98.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.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";var c=r;n.Z=c}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[2183],{96499:(e,t,i)=>{i.r(t),i.d(t,{default:()=>S});var n,a=i(71171),s=i(5057),r=i(33518),o=i(15849),l=i(55898),d=i.n(l),c=i(5609),p=i(19577),f=i(2478),m=i(44067),u=i(44846),g=i(42761),x=i(75239),h=i(62681),j=i(29034),y=i(11750),Z=i(88092),b=i(26174),v=i(83580),N=i(67680),w=i(39529),k=i(39948),C=i(59662),z=i(28726),M=i(68420),R=i(7403),D=i(14491),L=i(63406),A=i(58238),_=i(96266);function U(e){let{api:t,paging:i,loading:n,notifications:a,updateNotifications:r,teamDid:l}=e;const{inService:d}=(0,A.h6)(),[U,P]=(0,s.useState)(!0),[S,T]=(0,s.useState)(!1),{t:F,locale:I}=(0,s.useContext)(M.RD),$=async e=>{d?await t.readBlockletNotifications({input:{id:e,teamDid:l}}):await t.readNotifications({input:{id:e}}),r()},B=U?a:a.filter((e=>!1===e.read)),O=a.filter((e=>!1===e.read)).length>0,W=e=>(0,_.jsxs)("div",{className:"title",children:[e.title," ",(0,_.jsx)("span",{className:"time-ago",title:(0,D.B2)(e.createdAt,I),children:(0,c.WU)(new Date(e.createdAt),(0,D.FF)(I))})]});return(0,_.jsxs)(q,{children:[(0,_.jsxs)(y.Z,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:[F("notification.title"),(0,_.jsxs)(y.Z,{component:"span",className:"notification-actions",children:[(0,_.jsx)(b.Z,{control:(0,_.jsx)(Z.Z,{checked:U,onChange:()=>P(!U),name:"showRead",color:"primary"}),label:F("notification.showRead")}),(0,_.jsx)(L.Z,{permission:d?"":"mutate_notification",role:d?D.Wf:[],children:O&&(0,_.jsxs)(z.Z,{disabled:S,onClick:async()=>{T(!0);const e=a.filter((e=>!1===e.read)).map((e=>e.id)).join(",");d?await t.readBlockletNotifications({input:{id:e,teamDid:l}}):await t.readNotifications({input:{id:e}}),r(),T(!1)},className:"",children:[S&&(0,_.jsx)(u.Z,{size:16,style:{marginRight:"1em"}}),F("notification.markAllAsRead")]})})]})]}),(0,_.jsx)(j.Z,{}),(0,_.jsxs)(p.Z,{className:"notification-list",children:[n&&(0,_.jsx)(u.Z,{size:[32,20],style:{opacity:"0.8",zIndex:1e4,position:"fixed",top:30,left:"50%",marginLeft:-16}}),0===B.length&&(0,_.jsx)(y.Z,{component:"p",variant:"body1",className:"notification-tip",children:F("notification.empty")}),B.length>0&&B.map((e=>e.action?(0,_.jsxs)(f.ZP,{component:o.Link,to:e.action,alignItems:"flex-start",disabled:e.read,children:[(0,_.jsx)(g.Z,{className:"list-item-avatar",children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(h.Z,{children:e.entityType.substr(0,1).toUpperCase()}),(0,_.jsx)(R.Z,{className:"notification-tag",status:e.severity})]})}),(0,_.jsx)(m.Z,{className:"list-item-text",classes:{secondary:"list-item-secondary-text"},primary:W(e),secondary:e.description}),!1===e.read&&(0,_.jsx)(v.Z,{children:(0,_.jsx)(x.Z,{title:F("notification.markAsRead"),children:(0,_.jsx)(N.Z,{edge:"end","aria-label":"delete",onClick:()=>$(e.id),size:"large",children:(0,_.jsx)(w.Z,{})})})})]},e.id):(0,_.jsxs)(f.ZP,{alignItems:"flex-start",disabled:e.read,children:[(0,_.jsx)(g.Z,{className:"list-item-avatar",children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(h.Z,{children:e.entityType.substr(0,1).toUpperCase()}),(0,_.jsx)(R.Z,{className:"notification-tag",status:e.severity})]})}),(0,_.jsx)(m.Z,{className:"list-item-text",classes:{secondary:"list-item-secondary-text"},primary:W(e),secondary:e.description}),!1===e.read&&(0,_.jsx)(v.Z,{children:(0,_.jsx)(x.Z,{title:F("notification.markAsRead"),children:(0,_.jsx)(N.Z,{edge:"end","aria-label":"delete",onClick:()=>$(e.id),size:"large",children:(0,_.jsx)(w.Z,{})})})})]},e.id)))]}),!!B.length&&i.pageCount>1&&(0,_.jsx)(k.Z,{mt:2,display:"flex",justifyContent:"flex-end",children:(0,_.jsx)(C.Z,{disabled:n,count:i.pageCount,page:i.page,onChange:(e,t)=>{r({page:t})}})})]})}const q=r.Z.div(n||(n=(0,a.Z)(["\n min-height: 60vh;\n\n .page-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n .notification-actions {\n width: auto;\n display: flex;\n justify-content: space-between;\n }\n }\n\n .page-content {\n margin-top: 16px;\n }\n\n .list-item-avatar {\n display: flex;\n flex-direction: column;\n align-items: center;\n min-width: 80px;\n\n .notification-tag {\n margin-top: 4px;\n }\n }\n\n .MuiListItem-root:not(.Mui-disabled) {\n .MuiAvatar-root {\n background: ",";\n }\n }\n\n .list-item-text {\n .title {\n display: flex;\n align-items: center;\n .time-ago {\n background: #bdbdbd;\n font-size: 11px;\n margin-left: 8px;\n color: #f7f8f8;\n border-radius: 3px;\n padding: 1px 4px;\n }\n }\n }\n .Mui-disabled .list-item-text .title .time-ago {\n background: #666;\n }\n\n .list-item-secondary-text {\n word-break: break-word;\n }\n"])),(e=>e.theme.palette.primary.light));U.propTypes={loading:d().bool,paging:d().objectOf(d().any),api:d().shape({readNotifications:d().func.isRequired,readBlockletNotifications:d().func.isRequired}).isRequired,notifications:d().arrayOf(d().shape({id:d().string,read:d().bool,entityType:d().string,title:d().string,createdAt:d().string,description:d().string}).isRequired).isRequired,updateNotifications:d().func.isRequired,teamDid:d().string},U.defaultProps={paging:!1,loading:!1,teamDid:""};var P=i(27690);function S(){const{api:e,data:t,paging:i,refresh:n,loading:a}=(0,P.nw)();return(0,_.jsx)(U,{paging:i,loading:a,api:e,notifications:t,updateNotifications:n})}},39529:(e,t,i)=>{var n=i(71600);t.Z=void 0;var a=n(i(56930)),s=i(96266),r=(0,a.default)((0,s.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");t.Z=r},96646:(e,t,i)=>{i.d(t,{Z:()=>s});i(5057);var n=i(57471),a=i(96266);const s=(0,n.Z)((0,a.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage")},54665:(e,t,i)=>{i.d(t,{Z:()=>s});i(5057);var n=i(57471),a=i(96266);const s=(0,n.Z)((0,a.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage")},5609:(e,t,i)=>{i.d(t,{WU:()=>d});var n=["second","minute","hour","day","week","month","year"];var a=["\u79d2","\u5206\u949f","\u5c0f\u65f6","\u5929","\u5468","\u4e2a\u6708","\u5e74"];var s={},r=function(e,t){s[e]=t},o=[60,60,24,7,365/7/12,12];function l(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}var d=function(e,t,i){var n=function(e,t){return(+(t?l(t):new Date)-+l(e))/1e3}(e,i&&i.relativeDate);return function(e,t){for(var i=e<0?1:0,n=e=Math.abs(e),a=0;e>=o[a]&&a<o.length;a++)e/=o[a];return(e=Math.floor(e))>(0===(a*=2)?9:1)&&(a+=1),t(e,a,n)[i].replace("%s",e.toString())}(n,function(e){return s[e]||s.en_US}(t))};r("en_US",(function(e,t){if(0===t)return["just now","right now"];var i=n[Math.floor(t/2)];return e>1&&(i+="s"),[e+" "+i+" ago","in "+e+" "+i]})),r("zh_CN",(function(e,t){if(0===t)return["\u521a\u521a","\u7247\u523b\u540e"];var i=a[~~(t/2)];return[e+" "+i+"\u524d",e+" "+i+"\u540e"]}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[2435],{18067:(e,t,r)=>{"use strict";t.Z=void 0;(n=r(5057))&&n.__esModule;var n,o=r(96266);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c=function(e){return(0,o.jsx)("svg",i(i({},e),{},{children:(0,o.jsx)("path",{d:"M11.78 2.25c-2.767 0-5.019 2.271-5.019 5.063v3.037H5.758a2.018 2.018 0 0 0-2.008 2.025v8.1c0 1.117.9 2.025 2.008 2.025h12.045a2.018 2.018 0 0 0 2.007-2.025v-8.1c0-1.117-.9-2.025-2.007-2.025h-1.004V7.313c0-2.792-2.251-5.063-5.019-5.063zm6.023 10.125l.002 8.1H5.758v-8.1h12.045zM8.769 10.35V7.313c0-1.675 1.35-3.038 3.011-3.038 1.66 0 3.011 1.363 3.011 3.037v3.038H8.77z"})}))};c.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},c.displayName="lock";var d=c;t.Z=d},64886:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n,o=r(71171),a=r(55898),i=r.n(a),s=r(51540),c=r.n(s),d=r(26538),p=r.n(d),h=r(11750),l=r(47685),u=r(96266);function f(e){let{name:t,nameFormatter:r,layout:n,children:o,valueComponent:a,nameWidth:i,...s}=e;return(0,u.jsxs)(v,{layout:n,width:i,...s,children:[(0,u.jsx)(h.Z,{color:"textSecondary",className:"info-row__name",children:r(t)}),o&&(0,u.jsx)(h.Z,{color:"textPrimary",component:a,className:"info-row__value",children:o})]})}f.propTypes={name:i().any.isRequired,layout:i().oneOf(["horizontal","vertical"]),children:i().any,nameFormatter:i().func,valueComponent:i().string,nameWidth:i().number},f.defaultProps={children:null,nameWidth:90,nameFormatter:e=>{const t=e.split(" ").map((e=>p()(c()(e)))).join(" ");return"string"===typeof e?t:e},valueComponent:"div",layout:"horizontal"};const v=(0,l.zo)("div")(n||(n=(0,o.Z)(["\n display: flex;\n flex-direction: ",";\n justify-content: flex-start;\n align-items: ",";\n margin-bottom: 16px;\n\n .info-row__name {\n width: ","px;\n margin-right: ",";\n margin-bottom: ",";\n text-transform: capitalize;\n }\n\n .info-row__value {\n flex: 1;\n overflow: auto;\n word-wrap: break-word;\n font-weight: 500;\n }\n\n @media (max-width: ","px) {\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n .info-row__name {\n font-weight: bold;\n }\n\n .info-row__value {\n width: 100%;\n font-size: 12px;\n margin-top: 8px;\n }\n }\n"])),(e=>"vertical"===e.layout?"column":"row"),(e=>"vertical"===e.layout?"flex-start":"center"),(e=>e.width),(e=>"vertical"===e.layout?"0":"8px"),(e=>"vertical"===e.layout?"8px":"0"),(e=>e.theme.breakpoints.values.md)),m=f},44919:(e,t,r)=>{"use strict";var n=r(71600);t.Z=void 0;var o=n(r(56930)),a=r(96266),i=(0,o.default)((0,a.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.Z=i},11593:(e,t,r)=>{"use strict";var n=r(71600);t.Z=void 0;var o=n(r(56930)),a=r(96266),i=(0,o.default)((0,a.jsx)("path",{d:"M17 20.41 18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"}),"CallMerge");t.Z=i},76416:(e,t,r)=>{"use strict";var n=r(71600);t.Z=void 0;var o=n(r(56930)),a=r(96266),i=(0,o.default)((0,a.jsx)("path",{d:"M12.16 3h-.32L9.21 8.25h5.58zm4.3 5.25h5.16L19 3h-5.16zm4.92 1.5h-8.63V20.1zM11.25 20.1V9.75H2.62zM7.54 8.25 10.16 3H5L2.38 8.25z"}),"Diamond");t.Z=i},17655:(e,t,r)=>{"use strict";var n=r(71600);t.Z=void 0;var o=n(r(56930)),a=r(96266),i=(0,o.default)((0,a.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");t.Z=i},31942:(e,t,r)=>{"use strict";var n=r(71600);t.Z=void 0;var o=n(r(56930)),a=r(96266),i=(0,o.default)((0,a.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}),"Https");t.Z=i},34966:(e,t,r)=>{"use strict";var n=r(71600);t.Z=void 0;var o=n(r(56930)),a=r(96266),i=(0,o.default)((0,a.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");t.Z=i},45267:(e,t,r)=>{"use strict";var n=r(71600);t.Z=void 0;var o=n(r(56930)),a=r(96266),i=(0,o.default)((0,a.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");t.Z=i},96538:(e,t,r)=>{"use strict";var n=r(71600);t.Z=void 0;var o=n(r(56930)),a=r(96266),i=(0,o.default)((0,a.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNew");t.Z=i},75392:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n=r(7896),o=r(31461),a=r(5057),i=r(9978),s=r(91213),c=r(62773),d=r(42908),p=r(31821),h=r(18561);function l(e){return(0,h.Z)("MuiCardContent",e)}(0,p.Z)("MuiCardContent",["root"]);var u=r(96266);const f=["className","component"],v=(0,c.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),m=a.forwardRef((function(e,t){const r=(0,d.Z)({props:e,name:"MuiCardContent"}),{className:a,component:c="div"}=r,p=(0,o.Z)(r,f),h=(0,n.Z)({},r,{component:c}),m=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},l,t)})(h);return(0,u.jsx)(v,(0,n.Z)({as:c,className:(0,i.Z)(m.root,a),ownerState:h,ref:t},p))}))},48191:(e,t,r)=>{var n=r(54305);e.exports=function(e,t){for(var r=-1,o=e.length;++r<o&&n(t,e[r],0)>-1;);return r}},11854:(e,t,r)=>{var n=r(57333),o=r(39594),a=r(69123),i=r(38828),s=r(48191),c=r(38554),d=r(26849);e.exports=function(e,t,r){if((e=d(e))&&(r||void 0===t))return o(e);if(!e||!(t=n(t)))return e;var p=c(e),h=c(t),l=s(p,h),u=i(p,h)+1;return a(p,l,u).join("")}},46422:(e,t,r)=>{"use strict";r.r(t),r.d(t,{base32:()=>p,base32hex:()=>f,base32hexpad:()=>m,base32hexpadupper:()=>b,base32hexupper:()=>v,base32pad:()=>l,base32padupper:()=>u,base32upper:()=>h,base32z:()=>x});new Uint8Array(0);class n{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return"".concat(this.prefix).concat(this.baseEncode(e));throw Error("Unknown type, must be binary type")}}class o{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"===typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error("Unable to decode multibase string ".concat(JSON.stringify(e),", ").concat(this.name," decoder only supports inputs prefixed with ").concat(this.prefix));return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return i(this,e)}}class a{constructor(e){this.decoders=e}or(e){return i(this,e)}decode(e){const t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError("Unable to decode multibase string ".concat(JSON.stringify(e),", only inputs prefixed with ").concat(Object.keys(this.decoders)," are supported"))}}const i=(e,t)=>new a({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class s{constructor(e,t,r,a){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=a,this.encoder=new n(e,t,r),this.decoder=new o(e,t,a)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const c=e=>{let{name:t,prefix:r,encode:n,decode:o}=e;return new s(t,r,n,o)},d=e=>{let{name:t,prefix:r,bitsPerChar:n,alphabet:o}=e;return c({prefix:r,name:t,encode:e=>((e,t,r)=>{const n="="===t[t.length-1],o=(1<<r)-1;let a="",i=0,s=0;for(let c=0;c<e.length;++c)for(s=s<<8|e[c],i+=8;i>r;)i-=r,a+=t[o&s>>i];if(i&&(a+=t[o&s<<r-i]),n)for(;a.length*r&7;)a+="=";return a})(e,o,n),decode:e=>((e,t,r,n)=>{const o={};for(let p=0;p<t.length;++p)o[t[p]]=p;let a=e.length;for(;"="===e[a-1];)--a;const i=new Uint8Array(a*r/8|0);let s=0,c=0,d=0;for(let p=0;p<a;++p){const t=o[e[p]];if(void 0===t)throw new SyntaxError("Non-".concat(n," character"));c=c<<r|t,s+=r,s>=8&&(s-=8,i[d++]=255&c>>s)}if(s>=r||255&c<<8-s)throw new SyntaxError("Unexpected end of data");return i})(e,o,n,t)})},p=d({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),h=d({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),l=d({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),u=d({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),f=d({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),v=d({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),m=d({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),b=d({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),x=d({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[2443],{63769:(e,t,o)=>{"use strict";o.d(t,{Z:()=>ae});var n=o(31461),a=o(7896),r=o(5057),i=o(9978),l=o(91213),c=o(32852),s=o(62663),p=o(77590),u=o(2534),d=o(98038);function g(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function f(e,t){for(let o=0;o<e.length;o+=1)if(t(e[o]))return o;return-1}const h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{ignoreAccents:t=!0,ignoreCase:o=!0,limit:n,matchFrom:a="any",stringify:r,trim:i=!1}=e;return(e,l)=>{let{inputValue:c,getOptionLabel:s}=l,p=i?c.trim():c;o&&(p=p.toLowerCase()),t&&(p=g(p));const u=p?e.filter((e=>{let n=(r||s)(e);return o&&(n=n.toLowerCase()),t&&(n=g(n)),"start"===a?0===n.indexOf(p):n.indexOf(p)>-1})):e;return"number"===typeof n?u.slice(0,n):u}}(),m=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function b(e){const{unstable_isActiveElementInListbox:t=m,unstable_classNamePrefix:o="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:l=!1,blurOnSelect:g=!1,clearOnBlur:b=!e.freeSolo,clearOnEscape:v=!1,componentName:x="useAutocomplete",defaultValue:Z=(e.multiple?[]:null),disableClearable:y=!1,disableCloseOnSelect:O=!1,disabled:I,disabledItemsFocusable:S=!1,disableListWrap:P=!1,filterOptions:C=h,filterSelectedOptions:k=!1,freeSolo:w=!1,getOptionDisabled:L,getOptionKey:A,getOptionLabel:T=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:R,handleHomeEndKeys:N=!e.freeSolo,id:M,includeInputInList:D=!1,inputValue:z,isOptionEqualToValue:E=((e,t)=>e===t),multiple:F=!1,onChange:H,onClose:W,onHighlightChange:j,onInputChange:V,onOpen:B,open:q,openOnFocus:G=!1,options:K,readOnly:U=!1,selectOnFocus:_=!e.freeSolo,value:J}=e,Q=(0,c.Z)(M);let X=T;X=e=>{const t=T(e);return"string"!==typeof t?String(t):t};const Y=r.useRef(!1),$=r.useRef(!0),ee=r.useRef(null),te=r.useRef(null),[oe,ne]=r.useState(null),[ae,re]=r.useState(-1),ie=i?0:-1,le=r.useRef(ie),[ce,se]=(0,s.Z)({controlled:J,default:Z,name:x}),[pe,ue]=(0,s.Z)({controlled:z,default:"",name:x,state:"inputValue"}),[de,ge]=r.useState(!1),fe=r.useCallback(((e,t)=>{if(!(F?ce.length<t.length:null!==t)&&!b)return;let o;if(F)o="";else if(null==t)o="";else{const e=X(t);o="string"===typeof e?e:""}pe!==o&&(ue(o),V&&V(e,o,"reset"))}),[X,pe,F,V,ue,b,ce]),[he,me]=(0,s.Z)({controlled:q,default:!1,name:x,state:"open"}),[be,ve]=r.useState(!0),xe=!F&&null!=ce&&pe===X(ce),Ze=he&&!U,ye=Ze?C(K.filter((e=>!k||!(F?ce:[ce]).some((t=>null!==t&&E(e,t))))),{inputValue:xe&&be?"":pe,getOptionLabel:X}):[],Oe=(0,p.Z)({filteredOptions:ye,value:ce,inputValue:pe});r.useEffect((()=>{const e=ce!==Oe.value;de&&!e||w&&!e||fe(null,ce)}),[ce,fe,de,Oe.value,w]);const Ie=he&&ye.length>0&&!U;const Se=(0,u.Z)((e=>{-1===e?ee.current.focus():oe.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));r.useEffect((()=>{F&&ae>ce.length-1&&(re(-1),Se(-1))}),[ce,F,ae,Se]);const Pe=(0,u.Z)((e=>{let{event:t,index:n,reason:a="auto"}=e;if(le.current=n,-1===n?ee.current.removeAttribute("aria-activedescendant"):ee.current.setAttribute("aria-activedescendant","".concat(Q,"-option-").concat(n)),j&&j(t,-1===n?null:ye[n],a),!te.current)return;const r=te.current.querySelector('[role="option"].'.concat(o,"-focused"));r&&(r.classList.remove("".concat(o,"-focused")),r.classList.remove("".concat(o,"-focusVisible")));let i=te.current;if("listbox"!==te.current.getAttribute("role")&&(i=te.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===n)return void(i.scrollTop=0);const l=te.current.querySelector('[data-option-index="'.concat(n,'"]'));if(l&&(l.classList.add("".concat(o,"-focused")),"keyboard"===a&&l.classList.add("".concat(o,"-focusVisible")),i.scrollHeight>i.clientHeight&&"mouse"!==a&&"touch"!==a)){const e=l,t=i.clientHeight+i.scrollTop,o=e.offsetTop+e.offsetHeight;o>t?i.scrollTop=o-i.clientHeight:e.offsetTop-e.offsetHeight*(R?1.3:0)<i.scrollTop&&(i.scrollTop=e.offsetTop-e.offsetHeight*(R?1.3:0))}})),Ce=(0,u.Z)((e=>{let{event:t,diff:o,direction:a="next",reason:r="auto"}=e;if(!Ze)return;const i=function(e,t){if(!te.current||e<0||e>=ye.length)return-1;let o=e;for(;;){const n=te.current.querySelector('[data-option-index="'.concat(o,'"]')),a=!S&&(!n||n.disabled||"true"===n.getAttribute("aria-disabled"));if(n&&n.hasAttribute("tabindex")&&!a)return o;if(o="next"===t?(o+1)%ye.length:(o-1+ye.length)%ye.length,o===e)return-1}}((()=>{const e=ye.length-1;if("reset"===o)return ie;if("start"===o)return 0;if("end"===o)return e;const t=le.current+o;return t<0?-1===t&&D?-1:P&&-1!==le.current||Math.abs(o)>1?0:e:t>e?t===e+1&&D?-1:P||Math.abs(o)>1?e:0:t})(),a);if(Pe({index:i,reason:r,event:t}),n&&"reset"!==o)if(-1===i)ee.current.value=pe;else{const e=X(ye[i]);ee.current.value=e;0===e.toLowerCase().indexOf(pe.toLowerCase())&&pe.length>0&&ee.current.setSelectionRange(pe.length,e.length)}})),ke=r.useCallback((()=>{if(!Ze)return;if((()=>{if(-1!==le.current&&Oe.filteredOptions&&Oe.filteredOptions.length!==ye.length&&Oe.inputValue===pe&&(F?ce.length===Oe.value.length&&Oe.value.every(((e,t)=>X(ce[t])===X(e))):(e=Oe.value,t=ce,(e?X(e):"")===(t?X(t):"")))){const e=Oe.filteredOptions[le.current];if(e&&ye.some((t=>X(t)===X(e))))return!0}var e,t;return!1})())return;const e=F?ce[0]:ce;if(0!==ye.length&&null!=e){if(te.current)if(null==e)le.current>=ye.length-1?Pe({index:ye.length-1}):Pe({index:le.current});else{const t=ye[le.current];if(F&&t&&-1!==f(ce,(e=>E(t,e))))return;const o=f(ye,(t=>E(t,e)));-1===o?Ce({diff:"reset"}):Pe({index:o})}}else Ce({diff:"reset"})}),[ye.length,!F&&ce,k,Ce,Pe,Ze,pe,F]),we=(0,u.Z)((e=>{(0,d.Z)(te,e),e&&ke()}));r.useEffect((()=>{ke()}),[ke]);const Le=e=>{he||(me(!0),ve(!0),B&&B(e))},Ae=(e,t)=>{he&&(me(!1),W&&W(e,t))},Te=(e,t,o,n)=>{if(F){if(ce.length===t.length&&ce.every(((e,o)=>e===t[o])))return}else if(ce===t)return;H&&H(e,t,o,n),se(t)},Re=r.useRef(!1),Ne=function(e,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",a=t;if(F){a=Array.isArray(ce)?ce.slice():[];const e=f(a,(e=>E(t,e)));-1===e?a.push(t):"freeSolo"!==o&&(a.splice(e,1),n="removeOption")}fe(e,a),Te(e,a,n,{option:t}),O||e&&(e.ctrlKey||e.metaKey)||Ae(e,n),(!0===g||"touch"===g&&Re.current||"mouse"===g&&!Re.current)&&ee.current.blur()};const Me=(e,t)=>{if(!F)return;""===pe&&Ae(e,"toggleInput");let o=ae;-1===ae?""===pe&&"previous"===t&&(o=ce.length-1):(o+="next"===t?1:-1,o<0&&(o=0),o===ce.length&&(o=-1)),o=function(e,t){if(-1===e)return-1;let o=e;for(;;){if("next"===t&&o===ce.length||"previous"===t&&-1===o)return-1;const e=oe.querySelector('[data-tag-index="'.concat(o,'"]'));if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return o;o+="next"===t?1:-1}}(o,t),re(o),Se(o)},De=e=>{Y.current=!0,ue(""),V&&V(e,"","clear"),Te(e,F?[]:null,"clear")},ze=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==ae&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(re(-1),Se(-1)),229!==t.which))switch(t.key){case"Home":Ze&&N&&(t.preventDefault(),Ce({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":Ze&&N&&(t.preventDefault(),Ce({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Ce({diff:-5,direction:"previous",reason:"keyboard",event:t}),Le(t);break;case"PageDown":t.preventDefault(),Ce({diff:5,direction:"next",reason:"keyboard",event:t}),Le(t);break;case"ArrowDown":t.preventDefault(),Ce({diff:1,direction:"next",reason:"keyboard",event:t}),Le(t);break;case"ArrowUp":t.preventDefault(),Ce({diff:-1,direction:"previous",reason:"keyboard",event:t}),Le(t);break;case"ArrowLeft":Me(t,"previous");break;case"ArrowRight":Me(t,"next");break;case"Enter":if(-1!==le.current&&Ze){const e=ye[le.current],o=!!L&&L(e);if(t.preventDefault(),o)return;Ne(t,e,"selectOption"),n&&ee.current.setSelectionRange(ee.current.value.length,ee.current.value.length)}else w&&""!==pe&&!1===xe&&(F&&t.preventDefault(),Ne(t,pe,"createOption","freeSolo"));break;case"Escape":Ze?(t.preventDefault(),t.stopPropagation(),Ae(t,"escape")):v&&(""!==pe||F&&ce.length>0)&&(t.preventDefault(),t.stopPropagation(),De(t));break;case"Backspace":if(F&&!U&&""===pe&&ce.length>0){const e=-1===ae?ce.length-1:ae,o=ce.slice();o.splice(e,1),Te(t,o,"removeOption",{option:ce[e]})}break;case"Delete":if(F&&!U&&""===pe&&ce.length>0&&-1!==ae){const e=ae,o=ce.slice();o.splice(e,1),Te(t,o,"removeOption",{option:ce[e]})}}},Ee=e=>{ge(!0),G&&!Y.current&&Le(e)},Fe=e=>{t(te)?ee.current.focus():(ge(!1),$.current=!0,Y.current=!1,l&&-1!==le.current&&Ze?Ne(e,ye[le.current],"blur"):l&&w&&""!==pe?Ne(e,pe,"blur","freeSolo"):b&&fe(e,ce),Ae(e,"blur"))},He=e=>{const t=e.target.value;pe!==t&&(ue(t),ve(!1),V&&V(e,t,"input")),""===t?y||F||Te(e,null,"clear"):Le(e)},We=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));le.current!==t&&Pe({event:e,index:t,reason:"mouse"})},je=e=>{Pe({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Re.current=!0},Ve=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Ne(e,ye[t],"selectOption"),Re.current=!1},Be=e=>t=>{const o=ce.slice();o.splice(e,1),Te(t,o,"removeOption",{option:ce[e]})},qe=e=>{he?Ae(e,"toggleInput"):Le(e)},Ge=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==Q&&e.preventDefault()},Ke=e=>{e.currentTarget.contains(e.target)&&(ee.current.focus(),_&&$.current&&ee.current.selectionEnd-ee.current.selectionStart===0&&ee.current.select(),$.current=!1)},Ue=e=>{I||""!==pe&&he||qe(e)};let _e=w&&pe.length>0;_e=_e||(F?ce.length>0:null!==ce);let Je=ye;if(R){new Map;Je=ye.reduce(((e,t,o)=>{const n=R(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:o,index:o,group:n,options:[t]}),e}),[])}return I&&de&&Fe(),{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.Z)({"aria-owns":Ie?"".concat(Q,"-listbox"):null},e,{onKeyDown:ze(e),onMouseDown:Ge,onClick:Ke})},getInputLabelProps:()=>({id:"".concat(Q,"-label"),htmlFor:Q}),getInputProps:()=>({id:Q,value:pe,onBlur:Fe,onFocus:Ee,onChange:He,onMouseDown:Ue,"aria-activedescendant":Ze?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Ie?"".concat(Q,"-listbox"):void 0,"aria-expanded":Ie,autoComplete:"off",ref:ee,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:I}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:De}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:qe}),getTagProps:e=>{let{index:t}=e;return(0,a.Z)({key:t,"data-tag-index":t,tabIndex:-1},!U&&{onDelete:Be(t)})},getListboxProps:()=>({role:"listbox",id:"".concat(Q,"-listbox"),"aria-labelledby":"".concat(Q,"-label"),ref:we,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:e=>{let{index:t,option:o}=e;var n;const a=(F?ce:[ce]).some((e=>null!=e&&E(o,e))),r=!!L&&L(o);return{key:null!=(n=null==A?void 0:A(o))?n:X(o),tabIndex:-1,role:"option",id:"".concat(Q,"-option-").concat(t),onMouseMove:We,onClick:Ve,onTouchStart:je,"data-option-index":t,"aria-disabled":r,"aria-selected":a}},id:Q,inputValue:pe,value:ce,dirty:_e,expanded:Ze&&oe,popupOpen:Ze,focused:de||-1!==ae,anchorEl:oe,setAnchorEl:ne,focusedTag:ae,groupedOptions:Je}}var v=o(66685),x=o(24202),Z=o(62773),y=o(42908),O=o(6285),I=o(31821),S=o(18561);function P(e){return(0,S.Z)("MuiListSubheader",e)}(0,I.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var C=o(96266);const k=["className","color","component","disableGutters","disableSticky","inset"],w=(0,Z.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"default"!==o.color&&t["color".concat((0,O.Z)(o.color))],!o.disableGutters&&t.gutters,o.inset&&t.inset,!o.disableSticky&&t.sticky]}})((e=>{let{theme:t,ownerState:o}=e;return(0,a.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===o.color&&{color:(t.vars||t).palette.primary.main},"inherit"===o.color&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),L=r.forwardRef((function(e,t){const o=(0,y.Z)({props:e,name:"MuiListSubheader"}),{className:r,color:c="default",component:s="li",disableGutters:p=!1,disableSticky:u=!1,inset:d=!1}=o,g=(0,n.Z)(o,k),f=(0,a.Z)({},o,{color:c,component:s,disableGutters:p,disableSticky:u,inset:d}),h=(e=>{const{classes:t,color:o,disableGutters:n,inset:a,disableSticky:r}=e,i={root:["root","default"!==o&&"color".concat((0,O.Z)(o)),!n&&"gutters",a&&"inset",!r&&"sticky"]};return(0,l.Z)(i,P,t)})(f);return(0,C.jsx)(w,(0,a.Z)({as:s,className:(0,i.Z)(h.root,r),ref:t,ownerState:f},g))}));L.muiSkipListHighlight=!0;const A=L;var T,R,N=o(25228),M=o(67680),D=o(19654),z=o(46234),E=o(9243),F=o(82226),H=o(75623),W=o(74235),j=o(60473),V=o(43897),B=o(2286);const q=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],G=["ref"],K=["key"],U=(0,Z.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{fullWidth:n,hasClearIcon:a,hasPopupIcon:r,inputFocused:i,size:l}=o;return[{["& .".concat(V.Z.tag)]:t.tag},{["& .".concat(V.Z.tag)]:t["tagSize".concat((0,O.Z)(l))]},{["& .".concat(V.Z.inputRoot)]:t.inputRoot},{["& .".concat(V.Z.input)]:t.input},{["& .".concat(V.Z.input)]:i&&t.inputFocused},t.root,n&&t.fullWidth,r&&t.hasPopupIcon,a&&t.hasClearIcon]}})((e=>{let{ownerState:t}=e;return(0,a.Z)({["&.".concat(V.Z.focused," .").concat(V.Z.clearIndicator)]:{visibility:"visible"},"@media (pointer: fine)":{["&:hover .".concat(V.Z.clearIndicator)]:{visibility:"visible"}}},t.fullWidth&&{width:"100%"},{["& .".concat(V.Z.tag)]:(0,a.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===t.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),["& .".concat(V.Z.inputRoot)]:{flexWrap:"wrap",[".".concat(V.Z.hasPopupIcon,"&, .").concat(V.Z.hasClearIcon,"&")]:{paddingRight:30},[".".concat(V.Z.hasPopupIcon,".").concat(V.Z.hasClearIcon,"&")]:{paddingRight:56},["& .".concat(V.Z.input)]:{width:0,minWidth:30}},["& .".concat(z.Z.root)]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},["& .".concat(z.Z.root,".").concat(E.Z.sizeSmall)]:{["& .".concat(z.Z.input)]:{padding:"2px 4px 3px 0"}},["& .".concat(F.Z.root)]:{padding:9,[".".concat(V.Z.hasPopupIcon,"&, .").concat(V.Z.hasClearIcon,"&")]:{paddingRight:39},[".".concat(V.Z.hasPopupIcon,".").concat(V.Z.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(V.Z.input)]:{padding:"7.5px 4px 7.5px 5px"},["& .".concat(V.Z.endAdornment)]:{right:9}},["& .".concat(F.Z.root,".").concat(E.Z.sizeSmall)]:{paddingTop:6,paddingBottom:6,paddingLeft:6,["& .".concat(V.Z.input)]:{padding:"2.5px 4px 2.5px 8px"}},["& .".concat(H.Z.root)]:{paddingTop:19,paddingLeft:8,[".".concat(V.Z.hasPopupIcon,"&, .").concat(V.Z.hasClearIcon,"&")]:{paddingRight:39},[".".concat(V.Z.hasPopupIcon,".").concat(V.Z.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(H.Z.input)]:{padding:"7px 4px"},["& .".concat(V.Z.endAdornment)]:{right:9}},["& .".concat(H.Z.root,".").concat(E.Z.sizeSmall)]:{paddingBottom:1,["& .".concat(H.Z.input)]:{padding:"2.5px 4px"}},["& .".concat(E.Z.hiddenLabel)]:{paddingTop:8},["& .".concat(H.Z.root,".").concat(E.Z.hiddenLabel)]:{paddingTop:0,paddingBottom:0,["& .".concat(V.Z.input)]:{paddingTop:16,paddingBottom:17}},["& .".concat(H.Z.root,".").concat(E.Z.hiddenLabel,".").concat(E.Z.sizeSmall)]:{["& .".concat(V.Z.input)]:{paddingTop:8,paddingBottom:9}},["& .".concat(V.Z.input)]:(0,a.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},t.inputFocused&&{opacity:1})})})),_=(0,Z.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),J=(0,Z.ZP)(M.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Q=(0,Z.ZP)(M.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:o}=e;return(0,a.Z)({},t.popupIndicator,o.popupOpen&&t.popupIndicatorOpen)}})((e=>{let{ownerState:t}=e;return(0,a.Z)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})})),X=(0,Z.ZP)(x.Z,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{["& .".concat(V.Z.option)]:t.option},t.popper,o.disablePortal&&t.popperDisablePortal]}})((e=>{let{theme:t,ownerState:o}=e;return(0,a.Z)({zIndex:(t.vars||t).zIndex.modal},o.disablePortal&&{position:"absolute"})})),Y=(0,Z.ZP)(N.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{theme:t}=e;return(0,a.Z)({},t.typography.body1,{overflow:"auto"})})),$=(0,Z.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),ee=(0,Z.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),te=(0,Z.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((e=>{let{theme:t}=e;return{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",["& .".concat(V.Z.option)]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},["&.".concat(V.Z.focused)]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["&.".concat(V.Z.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,v.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(V.Z.focused)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,v.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},["&.".concat(V.Z.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,v.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}}})),oe=(0,Z.ZP)(A,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),ne=(0,Z.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,["& .".concat(V.Z.option)]:{paddingLeft:24}}),ae=r.forwardRef((function(e,t){var o,c,s,p;const u=(0,y.Z)({props:e,name:"MuiAutocomplete"}),{autoComplete:d=!1,autoHighlight:g=!1,autoSelect:f=!1,blurOnSelect:h=!1,ChipProps:m,className:v,clearIcon:Z=T||(T=(0,C.jsx)(W.Z,{fontSize:"small"})),clearOnBlur:I=!u.freeSolo,clearOnEscape:S=!1,clearText:P="Clear",closeText:k="Close",componentsProps:w={},defaultValue:L=(u.multiple?[]:null),disableClearable:A=!1,disableCloseOnSelect:M=!1,disabled:z=!1,disabledItemsFocusable:E=!1,disableListWrap:F=!1,disablePortal:H=!1,filterSelectedOptions:ae=!1,forcePopupIcon:re="auto",freeSolo:ie=!1,fullWidth:le=!1,getLimitTagsText:ce=(e=>"+".concat(e)),getOptionLabel:se,groupBy:pe,handleHomeEndKeys:ue=!u.freeSolo,includeInputInList:de=!1,limitTags:ge=-1,ListboxComponent:fe="ul",ListboxProps:he,loading:me=!1,loadingText:be="Loading\u2026",multiple:ve=!1,noOptionsText:xe="No options",openOnFocus:Ze=!1,openText:ye="Open",PaperComponent:Oe=N.Z,PopperComponent:Ie=x.Z,popupIcon:Se=R||(R=(0,C.jsx)(j.Z,{})),readOnly:Pe=!1,renderGroup:Ce,renderInput:ke,renderOption:we,renderTags:Le,selectOnFocus:Ae=!u.freeSolo,size:Te="medium",slotProps:Re={}}=u,Ne=(0,n.Z)(u,q),{getRootProps:Me,getInputProps:De,getInputLabelProps:ze,getPopupIndicatorProps:Ee,getClearProps:Fe,getTagProps:He,getListboxProps:We,getOptionProps:je,value:Ve,dirty:Be,expanded:qe,id:Ge,popupOpen:Ke,focused:Ue,focusedTag:_e,anchorEl:Je,setAnchorEl:Qe,inputValue:Xe,groupedOptions:Ye}=b((0,a.Z)({},u,{componentName:"Autocomplete"})),$e=!A&&!z&&Be&&!Pe,et=(!ie||!0===re)&&!1!==re,{onMouseDown:tt}=De(),{ref:ot}=null!=he?he:{},nt=We(),{ref:at}=nt,rt=(0,n.Z)(nt,G),it=(0,B.Z)(at,ot),lt=se||(e=>{var t;return null!=(t=e.label)?t:e}),ct=(0,a.Z)({},u,{disablePortal:H,expanded:qe,focused:Ue,fullWidth:le,getOptionLabel:lt,hasClearIcon:$e,hasPopupIcon:et,inputFocused:-1===_e,popupOpen:Ke,size:Te}),st=(e=>{const{classes:t,disablePortal:o,expanded:n,focused:a,fullWidth:r,hasClearIcon:i,hasPopupIcon:c,inputFocused:s,popupOpen:p,size:u}=e,d={root:["root",n&&"expanded",a&&"focused",r&&"fullWidth",i&&"hasClearIcon",c&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag","tagSize".concat((0,O.Z)(u))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",o&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,l.Z)(d,V.q,t)})(ct);let pt;if(ve&&Ve.length>0){const e=e=>(0,a.Z)({className:st.tag,disabled:z},He(e));pt=Le?Le(Ve,e,ct):Ve.map(((t,o)=>(0,C.jsx)(D.Z,(0,a.Z)({label:lt(t),size:Te},e({index:o}),m))))}if(ge>-1&&Array.isArray(pt)){const e=pt.length-ge;!Ue&&e>0&&(pt=pt.splice(0,ge),pt.push((0,C.jsx)("span",{className:st.tag,children:ce(e)},pt.length)))}const ut=Ce||(e=>(0,C.jsxs)("li",{children:[(0,C.jsx)(oe,{className:st.groupLabel,ownerState:ct,component:"div",children:e.group}),(0,C.jsx)(ne,{className:st.groupUl,ownerState:ct,children:e.children})]},e.key)),dt=we||((e,t)=>{const{key:o}=e,r=(0,n.Z)(e,K);return(0,C.jsx)("li",(0,a.Z)({},r,{children:lt(t)}),o)}),gt=(e,t)=>{const o=je({option:e,index:t});return dt((0,a.Z)({},o,{className:st.option}),e,{selected:o["aria-selected"],index:t,inputValue:Xe},ct)},ft=null!=(o=Re.clearIndicator)?o:w.clearIndicator,ht=null!=(c=Re.paper)?c:w.paper,mt=null!=(s=Re.popper)?s:w.popper,bt=null!=(p=Re.popupIndicator)?p:w.popupIndicator;return(0,C.jsxs)(r.Fragment,{children:[(0,C.jsx)(U,(0,a.Z)({ref:t,className:(0,i.Z)(st.root,v),ownerState:ct},Me(Ne),{children:ke({id:Ge,disabled:z,fullWidth:!0,size:"small"===Te?"small":void 0,InputLabelProps:ze(),InputProps:(0,a.Z)({ref:Qe,className:st.inputRoot,startAdornment:pt,onClick:e=>{e.target===e.currentTarget&&tt(e)}},($e||et)&&{endAdornment:(0,C.jsxs)(_,{className:st.endAdornment,ownerState:ct,children:[$e?(0,C.jsx)(J,(0,a.Z)({},Fe(),{"aria-label":P,title:P,ownerState:ct},ft,{className:(0,i.Z)(st.clearIndicator,null==ft?void 0:ft.className),children:Z})):null,et?(0,C.jsx)(Q,(0,a.Z)({},Ee(),{disabled:z,"aria-label":Ke?k:ye,title:Ke?k:ye,ownerState:ct},bt,{className:(0,i.Z)(st.popupIndicator,null==bt?void 0:bt.className),children:Se})):null]})}),inputProps:(0,a.Z)({className:st.input,disabled:z,readOnly:Pe},De())})})),Je?(0,C.jsx)(X,(0,a.Z)({as:Ie,disablePortal:H,style:{width:Je?Je.clientWidth:null},ownerState:ct,role:"presentation",anchorEl:Je,open:Ke},mt,{className:(0,i.Z)(st.popper,null==mt?void 0:mt.className),children:(0,C.jsxs)(Y,(0,a.Z)({ownerState:ct,as:Oe},ht,{className:(0,i.Z)(st.paper,null==ht?void 0:ht.className),children:[me&&0===Ye.length?(0,C.jsx)($,{className:st.loading,ownerState:ct,children:be}):null,0!==Ye.length||ie||me?null:(0,C.jsx)(ee,{className:st.noOptions,ownerState:ct,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:xe}),Ye.length>0?(0,C.jsx)(te,(0,a.Z)({as:fe,className:st.listbox,ownerState:ct},rt,he,{ref:it,children:Ye.map(((e,t)=>pe?ut({key:e.key,group:e.group,children:e.options.map(((t,o)=>gt(t,e.index+o)))}):gt(e,t)))})):null]}))})):null]})}))},43897:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i,q:()=>r});var n=o(31821),a=o(18561);function r(e){return(0,a.Z)("MuiAutocomplete",e)}const i=(0,n.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"])},50482:(e,t,o)=>{var n=o(23800);e.exports=function(e,t){return n(e,t)}}}]);
|