@abtnode/webapp 1.16.16-beta-d8a9fb09 → 1.16.16-beta-740ea329
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 +37 -36
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/static/js/1366.4c0caad2.chunk.js +2 -0
- package/build/static/js/1371.b6f470dc.chunk.js +1 -0
- package/build/static/js/2291.f7b42545.chunk.js +1 -0
- package/build/static/js/{2334.390f073a.chunk.js → 2334.2277b9a2.chunk.js} +1 -1
- package/build/static/js/3389.bbd62a76.chunk.js +1 -0
- package/build/static/js/{373.f3b27d9c.chunk.js → 373.1bcf03f8.chunk.js} +1 -1
- package/build/static/js/4362.ca3fb274.chunk.js +1 -0
- package/build/static/js/{4407.61ba5c61.chunk.js → 4407.723415c4.chunk.js} +2 -2
- package/build/static/js/{4448.f8411651.chunk.js → 4448.240f547f.chunk.js} +1 -1
- package/build/static/js/4718.cb2b5d99.chunk.js +2 -0
- package/build/static/js/{4906.f594c3a7.chunk.js → 4906.c2c01c10.chunk.js} +1 -1
- package/build/static/js/5509.245431ce.chunk.js +1 -0
- package/build/static/js/{5526.fd2c4f9a.chunk.js → 5526.d759de88.chunk.js} +2 -2
- package/build/static/js/{5804.d00d4267.chunk.js → 5804.911e6040.chunk.js} +1 -1
- package/build/static/js/{5808.699d12fc.chunk.js → 5808.c81d46a7.chunk.js} +1 -1
- package/build/static/js/5953.5bc549e1.chunk.js +1 -0
- package/build/static/js/{5979.f3310ab6.chunk.js → 5979.d89e3302.chunk.js} +1 -1
- package/build/static/js/{6412.e1281d1a.chunk.js → 6412.e559c8f4.chunk.js} +1 -1
- package/build/static/js/6511.20b2bda0.chunk.js +1 -0
- package/build/static/js/6580.a36ef27c.chunk.js +1 -0
- package/build/static/js/{6591.a18bd50c.chunk.js → 6591.7817c32d.chunk.js} +1 -1
- package/build/static/js/{6950.ea661eae.chunk.js → 6950.39b50c6e.chunk.js} +1 -1
- package/build/static/js/{6960.15f4fcbf.chunk.js → 6960.ed78ea9f.chunk.js} +1 -1
- package/build/static/js/7126.0c31d5ce.chunk.js +1 -0
- package/build/static/js/7327.523610c0.chunk.js +1 -0
- package/build/static/js/7534.ab4d9f6e.chunk.js +1 -0
- package/build/static/js/{7913.d2d51ce2.chunk.js → 7913.df3492dc.chunk.js} +1 -1
- package/build/static/js/{8382.232e3b29.chunk.js → 8382.94b3ec45.chunk.js} +1 -1
- package/build/static/js/875.f12224ef.chunk.js +1 -0
- package/build/static/js/{8973.6b8d2a7e.chunk.js → 8973.b052330c.chunk.js} +1 -1
- package/build/static/js/{9041.2a0b2bc1.chunk.js → 9041.84c1ff27.chunk.js} +1 -1
- package/build/static/js/{9249.fddf03b3.chunk.js → 9249.c3058bf3.chunk.js} +1 -1
- package/build/static/js/9272.1db6e724.chunk.js +2 -0
- package/build/static/js/984.f6cf6d38.chunk.js +1 -0
- package/build/static/js/main.eff23305.js +2 -0
- package/package.json +1 -1
- package/build/static/js/1366.035996e1.chunk.js +0 -2
- package/build/static/js/17.07b2c6ce.chunk.js +0 -1
- package/build/static/js/2113.7430fbc7.chunk.js +0 -1
- package/build/static/js/287.436815b1.chunk.js +0 -1
- package/build/static/js/3245.f859c2c5.chunk.js +0 -1
- package/build/static/js/3936.50626cb7.chunk.js +0 -1
- package/build/static/js/4301.d30d43e8.chunk.js +0 -2
- package/build/static/js/542.f9ed38ac.chunk.js +0 -1
- package/build/static/js/5928.a3e4f24e.chunk.js +0 -1
- package/build/static/js/6511.d3acc514.chunk.js +0 -1
- package/build/static/js/6580.59ebe9b2.chunk.js +0 -1
- package/build/static/js/7126.10e43092.chunk.js +0 -1
- package/build/static/js/7327.33c2d17b.chunk.js +0 -1
- package/build/static/js/7534.e41084cc.chunk.js +0 -1
- package/build/static/js/9272.ba198b07.chunk.js +0 -2
- package/build/static/js/main.56a3da7f.js +0 -2
- /package/build/static/css/{542.f696fdbf.chunk.css → 1371.f696fdbf.chunk.css} +0 -0
- /package/build/static/js/{1366.035996e1.chunk.js.LICENSE.txt → 1366.4c0caad2.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4407.61ba5c61.chunk.js.LICENSE.txt → 4407.723415c4.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4301.d30d43e8.chunk.js.LICENSE.txt → 4718.cb2b5d99.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{5526.fd2c4f9a.chunk.js.LICENSE.txt → 5526.d759de88.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9272.ba198b07.chunk.js.LICENSE.txt → 9272.1db6e724.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{main.56a3da7f.js.LICENSE.txt → main.eff23305.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[7327],{77327:function(e,n,t){t.r(n),t.d(n,{BlockletList:function(){return me},default:function(){return ue}});var o,l,a=t(71171),i=t(33028),r=t(96234),c=t(5057),s=t(33518),d=t(75506),u=t.n(d),m=t(85493),p=t(15849),f=t(67654),h=t(11750),x=t(80576),b=t(51177),v=t(74490),k=t(39948),g=t(72904),Z=t(75760),j=t(49384),y=t(44846),C=t(35966),w=t(25710),S=t(88574),P=t(28726),L=t(68420),T=t(35432),A=t(86229),B=t(81010),D=t(87363),R=t(22228),U=t(32349),_=t(1722),I=t(38242),F=t(75793),N=t(52926),E=t(74094),O=t(78123),W=t(59740),z=t(38898),M=t(24138),q=t(96266),K=["blocklet","skipAccessibilityCheck"];function V(e){var n=e.blocklet,t=e.skipAccessibilityCheck,o=void 0!==t&&t,l=(0,W.Z)(e,K),a=(0,c.useContext)(L.RD).t,r=(0,M.BZ)(n),s=r.urls,d=r.loading,u=r.recommendedUrl;if(d&&!o)return(0,q.jsx)(y.Z,(0,i.Z)({size:12},l));var m=o?s[0]:u;return m?(0,q.jsx)($,(0,i.Z)((0,i.Z)({},l),{},{children:(0,q.jsx)(J,{children:(0,q.jsx)(z.Z,{href:m,target:"_blank",className:"blocklet-interface",underline:"hover",children:a("common.open")})})})):a("blocklet.router.noAccessibleUrl")}var J=s.Z.div(o||(o=(0,a.Z)(["\n display: flex;\n margin: 4px 0;\n"]))),$=s.Z.div(l||(l=(0,a.Z)(["\n .blocklet-interface {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n white-space: nowrap;\n\n img {\n margin-right: 4px;\n }\n }\n"])));V.defaultProps={skipAccessibilityCheck:!1};var G=t(44919),H=t(17682),Q=t(61813),X=t(31853),Y=t(13128),ee=t(55372),ne=t(47020),te=t(96501),oe=t(73545);function le(e){var n=e.onCancel,t=e.onSuccess,o=(0,F.h6)().info,l=(0,L.PE)().t,a=(0,oe.T)().api,i=(0,X.Z)({loading:!1,error:"",title:"",description:"",isConnectOpen:!1}),c=(0,r.Z)(i,2),s=c[0],d=c[1];return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(Y.ZP,{title:l("blocklet.installFromCreate"),fullWidth:!0,maxWidth:"sm",onClose:function(){return n()},showCloseButton:!0,open:!0,actions:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(P.Z,{onClick:function(e){e.stopPropagation(),n()},color:"inherit",children:l("common.cancel")}),(0,q.jsxs)(P.Z,{onClick:function(e){e.stopPropagation(),d({loading:!0,isConnectOpen:!0})},color:"primary","data-cy":"install-blocklet-next-step",variant:"contained",disabled:s.loading||s.error||!s.title||!s.description,style:{marginLeft:8},children:[s.loading&&(0,q.jsx)(y.Z,{size:16}),l("common.create")]})]}),children:[(0,q.jsx)(ee.Z,{component:"div",children:(0,q.jsxs)(h.Z,{component:"div",children:[(0,q.jsx)(ne.Z,{style:{marginBottom:24},label:"Blocklet ".concat(l("common.title")),autoComplete:"off",variant:"outlined",fullWidth:!0,autoFocus:!0,value:s.title,onChange:function(e){d({error:"",title:e.target.value})},disabled:s.loading}),(0,q.jsx)(ne.Z,{label:"Blocklet ".concat(l("common.description")),autoComplete:"off",variant:"outlined",fullWidth:!0,value:s.description,onChange:function(e){d({error:"",description:e.target.value})},disabled:s.loading})]})}),!!s.error&&(0,q.jsx)(S.Z,{type:"error",style:{width:"100%",marginTop:8},children:s.error})]}),(0,q.jsx)(te.default,{popup:!0,open:s.isConnectOpen,forceConnected:!1,className:"launch-from-create-auth",action:"launch-free-blocklet-by-session",checkFn:a.get,checkTimeout:3e5,webWalletUrl:(0,E.yP)(o),onSuccess:function(e){d({loading:!1,isConnectOpen:!1}),t(e)},extraParams:{title:s.title,description:s.description},messages:{title:l("setup.keyPair.title"),scan:l("setup.keyPair.scan"),confirm:l("setup.keyPair.confirm"),success:l("setup.keyPair.success")},onClose:function(){d({loading:!1,isConnectOpen:!1})}})]})}function ae(e){var n=e.onCreate,t=(0,m.useNavigate)(),o=(0,L.PE)().t,l=(0,c.useState)(""),a=(0,r.Z)(l,2),i=a[0],s=a[1],d=(0,c.useState)(""),u=(0,r.Z)(d,2),p=u[0],f=u[1],h=(0,c.useState)(null),x=(0,r.Z)(h,2),b=x[0],v=x[1],k=(0,c.useState)(null),g=(0,r.Z)(k,2),Z=g[0],j=g[1],y=function(){v(null)};return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(H.Z,{onClick:function(){return t("/store")},menuButtonProps:{"data-cy":"open-install-menu"},menu:[(0,q.jsx)(H.Z.Item,{"data-cy":"open-install-form",onClick:function(){v({onCancel:function(){y(),v(null)},onSuccess:function(){y()}})},children:o("blocklet.installFromUrl")},"1"),(0,q.jsx)(H.Z.Item,{"data-cy":"open-create-form",onClick:function(){j({onCancel:function(){j(null)},onSuccess:function(){j(null),n.apply(void 0,arguments)}})},children:o("blocklet.installFromCreate")},"2"),(0,q.jsx)(H.Z.Item,{"data-cy":"open-install-from-spaces",onClick:function(){t("/blocklets/restore")},children:o("blocklet.restoreFromSpaces.title")},"3"),(0,q.jsx)(H.Z.Item,{"data-cy":"open-install-from-spaces",onClick:function(){return function(){var e=new URL("http://localhost");e.searchParams.set("restoreFrom","server"),e.searchParams.set("serverUrl",window.location.href),t("/blocklets/restore".concat(e.search))}()},children:o("blocklet.installFromDiskBackup")},"3")].filter(Boolean),children:[(0,q.jsx)(G.Z,{}),o("blocklet.installFromMarket")]}),!!i&&(0,q.jsx)(A.Z,{variant:"error",message:i,onClose:function(){return s("")}}),!!p&&(0,q.jsx)(A.Z,{variant:"success",duration:3e3,message:p,onClose:function(){return f("")}}),b&&(0,q.jsx)(Q.Z,{onCancel:b.onCancel,onSuccess:b.onSuccess}),Z&&(0,q.jsx)(le,{onCancel:Z.onCancel,onSuccess:Z.onSuccess})]})}le.defaultProps={},ae.defaultProps={onCreate:function(){}};var ie,re,ce=t(7199),se="internal",de="external";function ue(){return(0,q.jsx)(D.g,{children:(0,q.jsx)(me,{})})}function me(){var e=(0,m.useNavigate)(),n=(0,F.h6)(),t=(0,p.useSearchParams)(),o=(0,r.Z)(t,2),l=o[0],a=o[1],s=(0,N.RJ)(),d=s.data,W=s.externalData,z=s.error,M=s.refresh,K=s.loading,J=(0,D.K)(),$=J.deletingBlocklets,G=J.addDeletingDid,H=J.removeDeletingDid,Q=J.matchDeletingDid,X=(0,L.PE)(),Y=X.t,ee=X.locale,ne=(0,c.useState)(l.get("searchText")),te=(0,r.Z)(ne,2),oe=te[0],le=te[1],ie=(0,f.Z)("show-external-blocklet-actions",!1),re=(0,r.Z)(ie,1)[0],ue=[{id:se,name:Y("blocklet.internal")},{id:de,name:Y("blocklet.external")}],me=(0,f.Z)("blocklet-type-filter",se),he=(0,r.Z)(me,2),xe=he[0],be=he[1],ve=xe===se?d:W,ke=(null===n||void 0===n?void 0:n.info.mode)!==T.NODE_MODES.SERVERLESS;Q(ve.map((function(e){return e.meta.did})));var ge=function(e){var n=e.action,t=e.blocklet;"remove"===n&&G(t.meta.did)},Ze=function(e){if(e.error)return A.Z.error(e.error.message),void("remove"===e.action&&H(e.blocklet.meta.did));"remove"===e.action&&n.refresh({silent:!0})},je=(0,g.Z)((function(e){return e.breakpoints.up("md")})),ye=null,Ce=ve||[];if(z)ye=(0,q.jsx)(S.Z,{type:"error",variant:"icon",children:(0,q.jsxs)("div",{children:[(0,E.Z)(z),(0,q.jsx)(P.Z,{onClick:function(){return M({silent:!1})},children:(0,q.jsx)("span",{style:{color:"#44cdc6",textDecoration:"underline"},children:Y("common.retry")})})]})});else if(Ce.length>0||K){var we=["installedAt","startedAt","stoppedAt","createdAt"],Se=function(e){if("starting"===e.status)return new Date("2199").getTime();if("running"===e.status){if(e.appRuntimeInfo)return e.appRuntimeInfo.startAt;if(e.startedAt)return e.startedAt.getTime()}return 0},Pe=Ce.map((function(e){return we.forEach((function(n){if(e[n]){var t=new Date(e[n]);e[n]=t}})),e})).sort((function(e,n){var t=Se(e);return Se(n)-t}));oe&&(Pe=Pe.filter((function(e){var n,t=(0,I.getDisplayName)(e)||"",o=(null===(n=e.site)||void 0===n?void 0:n.domainAliases)||[],l=oe.trim().toLocaleLowerCase();return t.toLocaleLowerCase().includes(l)||o.some((function(e){var n;return null===(n=e.value)||void 0===n?void 0:n.toLocaleLowerCase().includes(l)}))})));var Le=(0,Z.$)("blocklets-list");Le.searchText&&!oe&&le(Le.searchText);var Te=[{label:Y("common.name"),name:"meta.title",options:{customBodyRenderLite:function(e){var n=Pe[e],t=(0,I.getAppMissingConfigs)(n).length>0?"components":"overview";return(0,q.jsx)(p.Link,{to:"/blocklets/".concat(n.meta.did,"/").concat(t),className:"blocklet-name-wrapper",children:(0,q.jsxs)(h.Z,{component:"strong",variant:"body1",className:"blocklet-name",children:[(0,q.jsx)(_.Z,{blocklet:n,style:{marginRight:8}}),(0,q.jsxs)(k.Z,{children:[(0,q.jsx)(k.Z,{children:(0,I.getDisplayName)(n)}),(0,q.jsxs)(k.Z,{children:[(0,q.jsx)(U.Z,{mode:n.mode||""}),!u()(n.controller)&&(0,q.jsx)(R.Z,{type:"primary",children:Y("blocklet.external")})]})]})]})},n.meta.did)}}},xe===se?{label:Y("common.visit"),name:"runtimeInfo.pid",align:"left",options:{sort:!1,customBodyRenderLite:function(e){var n=Pe[e];return(0,q.jsx)(V,{blocklet:n},n.meta.did)}}}:null,{label:Y("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite:function(e){var n=Pe[e];return"running"===n.status&&n.appRuntimeInfo?(0,q.jsx)(j.Z,{value:n.appRuntimeInfo.startAt,locale:ee},n.meta.did):""}}},{label:Y("common.installedAt"),name:"installedAt",options:{customBodyRenderLite:function(e){var n=Pe[e];return n.installedAt?(0,q.jsx)(j.Z,{value:n.installedAt.getTime(),locale:ee},n.meta.did):n.createdAt?(0,q.jsx)(j.Z,{value:n.createdAt.getTime(),locale:ee},n.meta.did):""}}},{label:Y("common.updatedAt"),name:"updatedAt",options:{customBodyRenderLite:function(e){var n=Pe[e];return(0,q.jsx)(j.Z,{value:n.updatedAt,locale:ee},n.meta.did)}}},{label:Y("common.status"),name:"status",width:120,align:"center",options:{customBodyRenderLite:function(e){var n=Pe[e];return(0,q.jsx)(B.Z,{"data-cy":"blocklet-status","status-blocklet-did":n.meta.did,status:$.includes(n.meta.did)?"deleting":n.status,source:n.source},n.meta.did)}}},xe===se||re?{label:Y("common.actions"),name:"",width:90,options:{sort:!1,customBodyRenderLite:function(e){var n=Pe[e];return(0,q.jsx)(O.Z,{blocklet:n,variant:"menu",onStart:ge,onComplete:Ze},n.meta.did)}}}:null].filter(Boolean),Ae={};je||(Ae.TableBody=function(e){if(K)return(0,q.jsx)(C.Z,{relative:"parent",children:(0,q.jsx)(y.Z,{})});var n=e.page,t=e.rowsPerPage,o=Pe.slice(n*t,(n+1)*t);return o.length?(0,q.jsx)("div",{children:o.map((function(e){var n=(0,I.getAppMissingConfigs)(e).length>0?"components":"overview";return(0,q.jsxs)(k.Z,{className:"blocklet-item--mobile",display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,q.jsx)(_.Z,{className:"blocklet__avatar",blocklet:e,size:je?40:60}),(0,q.jsxs)(p.Link,{className:"blocklet__content",to:"/blocklets/".concat(e.meta.did,"/").concat(n),children:[(0,q.jsxs)(k.Z,{display:"flex",justifyContent:"space-between",alignItems:"flex-start",children:[(0,q.jsx)(h.Z,{component:"strong",variant:"body1",className:"blocklet__name",children:(0,I.getDisplayName)(e,!0)}),(0,q.jsx)(O.Z,{blocklet:e,variant:"menu",onStart:ge,onComplete:Ze},e.meta.did)]}),(0,q.jsxs)(h.Z,{component:"small",className:"blocklet__addons",children:[(0,q.jsx)(k.Z,{display:"flex",alignItems:"center",children:(0,q.jsx)(V,{blocklet:e,style:{marginLeft:16,fontSize:14}})}),(0,q.jsx)(B.Z,{"status-blocklet-did":e.meta.did,status:e.status,source:e.source},e.meta.did)]})]})]})}))}):(0,q.jsx)(w.Z,{children:Y("common.empty")})}),ye=(0,q.jsx)(pe,{children:(0,q.jsx)(Z.Z,{loading:K,className:"blocklet-list",title:(0,q.jsx)(k.Z,{display:"flex",alignItems:"center",children:Y("blocklet.index.tableTitle")}),locale:ee,data:Pe,columns:Te,durable:"blocklets-list",options:(0,i.Z)((0,i.Z)({download:!1,filter:!1,print:!1,searchPlaceholder:Y("common.search"),searchAlwaysOpen:!1,sortOrder:{name:"uptime",direction:"desc"},searchDebounceTime:300,onSearchChange:function(e){le(e),a({searchText:null!==e&&void 0!==e?e:""})},customSearch:function(){return!0}},Le),{},{searchText:oe}),components:Ae})})}else 0===Ce.length&&(ye=(0,q.jsx)(S.Z,{type:"warning",variant:"icon",children:Y("blocklet.index.noBlocklet")}));var Be=W&&W.length>0;return(0,q.jsxs)(fe,{children:[(0,q.jsxs)(h.Z,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:[(0,q.jsxs)(k.Z,{display:"flex",alignItems:"center",children:[Y("common.blocklets"),(Be||xe===de)&&(0,q.jsx)(x.Z,{sx:{ml:1},children:(0,q.jsx)(b.Z,{value:xe,onChange:function(e){return be(e.target.value)},size:"small",children:ue.map((function(e){return(0,q.jsx)(v.Z,{value:e.id,children:Y(e.name)},e.id)}))})})]}),(0,q.jsx)(ce.Z,{permission:"mutate_blocklets",children:ke&&(0,q.jsx)(ae,{onCreate:function(n){e("/blocklets/".concat(n.appDid,"/components"))}})})]}),ye]})}var pe=s.Z.div(ie||(ie=(0,a.Z)(["\n .blocklet-item--mobile {\n padding: 16px 0;\n }\n"]))),fe=s.Z.main(re||(re=(0,a.Z)(["\n .page-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .blocklet-list {\n .blocklet-item--mobile {\n .blocklet__avatar {\n margin-right: -60px;\n }\n .blocklet__content {\n padding-left: 68px;\n flex: 1;\n display: flex;\n flex-direction: column;\n z-index: 1;\n }\n .blocklet__name {\n font-weight: bold;\n text-decoration: none;\n white-space: normal;\n word-break: break-all;\n }\n .blocklet__addons {\n display: flex;\n justify-content: space-between;\n margin-top: 5px;\n margin-bottom: -10px;\n }\n }\n .blocklet-name-wrapper {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n }\n .blocklet-name {\n font-weight: bold;\n text-decoration: underline;\n display: flex;\n align-items: center;\n white-space: normal;\n word-break: break-all;\n }\n\n .blocklet-interface {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n\n img {\n margin-right: 4px;\n }\n }\n\n .MuiToolbar-root {\n display: flex;\n }\n }\n"])))},61813:function(e,n,t){t.d(n,{Z:function(){return A}});var o=t(33028),l=t(32723),a=t(34795),i=t(96234),r=t(5057),c=t(55898),s=t.n(c),d=t(13128),u=t(44846),m=t(55372),p=t(11750),f=t(47020),h=t(20870),x=t(31089),b=t(71767),v=t(64886),k=t(96501),g=t(68420),Z=t(28726),j=t(88574),y=t(38242),C=t(58238),w=t(73545),S=t(14491),P=t(4651),L=t(92816),T=t(96266);function A(e){var n=e.defaultUrl,t=e.onCancel,c=e.onSuccess,s=e.onError,A=e.mode,B=e.handleText,D=(0,C.h6)().api,R=(0,w.T)().api,U=(0,r.useState)(!1),_=(0,i.Z)(U,2),I=_[0],F=_[1],N=(0,r.useState)(""),E=(0,i.Z)(N,2),O=E[0],W=E[1],z=(0,g.PE)().t,M={dist:{}},q=(0,r.useState)(n),K=(0,i.Z)(q,2),V=K[0],J=K[1],$=(0,r.useState)(n?1:0),G=(0,i.Z)($,2),H=G[0],Q=G[1],X=(0,r.useState)(M),Y=(0,i.Z)(X,2),ee=Y[0],ne=Y[1],te=(0,r.useState)(!1),oe=(0,i.Z)(te,2),le=oe[0],ae=oe[1],ie=(0,r.useState)({}),re=(0,i.Z)(ie,2),ce=re[0],se=re[1],de="component"===A,ue=!!de||!n,me=function(){var e=(0,a.Z)((0,l.Z)().mark((function e(){var n,t,o,a,i,r;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ne(M),W(null),F(!0),e.prev=3,n=decodeURIComponent(V.trim()),e.prev=5,new URL(n),e.next=12;break;case 9:throw e.prev=9,e.t0=e.catch(5),new Error("Invalid URL");case 12:return e.next=14,D.getBlockletMetaFromUrl({input:{url:n}});case 14:t=e.sent,o=t.meta,a=t.inStore,i=t.registryUrl,ne(o),se({inStore:a,registryUrl:i,inputUrl:V.trim()}),e.next=28;break;case 22:e.prev=22,e.t1=e.catch(3),console.error(e.t1),r="Blocklet Install failed: ".concat((0,S.Z)(e.t1)),W(r),s(e.t1);case 28:return e.prev=28,F(!1),e.finish(28);case 31:case"end":return e.stop()}}),e,null,[[3,22,28,31],[5,9]])})));return function(){return e.apply(this,arguments)}}();(0,r.useEffect)((function(){n&&me()}),[n]);var pe=[{name:z("common.name"),value:(0,y.getDisplayName)({meta:ee},!0)},{name:z("common.version"),value:ee.version},{name:z("common.did"),value:(0,T.jsx)(L.Z,{did:ee.did})},{name:z("common.author"),value:(0,S.rq)(ee.author)},{name:z("blocklet.dist.downloadLink"),value:ee.dist.tarball}],fe=[{label:z("blocklet.fromUrl.step0"),body:(0,T.jsx)(p.Z,{component:"div",children:(0,T.jsx)(f.Z,{label:z("blocklet.fromUrl.label"),autoComplete:"off",variant:"outlined",name:"url","data-cy":"blocklet-url-input",fullWidth:!0,autoFocus:!0,style:{marginBottom:32},margin:"dense",helperText:z("blocklet.fromUrl.description"),value:V,onChange:function(e){W(null),J(e.target.value)},disabled:I,onKeyPress:function(e){"Enter"===e.key&&(e.preventDefault(),me(),Q(1))}})}),cancel:z("common.cancel"),confirm:z("common.next"),onCancel:t,onConfirm:function(){me(),Q(1)}},{label:z("blocklet.fromUrl.step1"),body:I?(0,T.jsx)("div",{style:{height:200,width:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:(0,T.jsx)(u.Z,{})}):ee.did?(0,T.jsx)("div",{style:{paddingLeft:"10%"},children:pe.map((function(e){return e.name===z("common.did")?(0,T.jsx)(v.Z,{valueComponent:"div",nameWidth:120,name:e.name,nameFormatter:function(){return z("common.did")},children:e.value},e.name):(0,T.jsx)(v.Z,{valueComponent:"div",nameWidth:120,name:e.name,children:e.value},e.name)}))}):null,cancel:z(ue?"common.pre":"common.cancel"),confirm:(null===B||void 0===B?void 0:B.confirm)||z("blocklet.fromUrl.confirm"),onCancel:function(){ue?Q((function(e){return e-1})):t()},onConfirm:function(){!function(){if(de)return c((0,o.Z)({meta:ee},ce)),void t();F(!0),ae(!0)}()}}],he=fe[H];return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(d.ZP,{title:(null===B||void 0===B?void 0:B.title)||z("blocklet.fromUrl.title"),fullWidth:!0,maxWidth:"md",onClose:function(){return he.onCancel()},showCloseButton:0===H,disableEscapeKeyDown:!0,open:!0,actions:(0,T.jsxs)(T.Fragment,{children:[he.cancel&&(0,T.jsx)(Z.Z,{onClick:function(e){e.stopPropagation(),W(null),he.onCancel()},color:"inherit",children:he.cancel||z("common.cancel")}),(0,T.jsxs)(Z.Z,{onClick:function(e){e.stopPropagation(),he.onConfirm()},color:"primary","data-cy":"install-blocklet-next-step",disabled:I||!V||O,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[I&&0===H&&(0,T.jsx)(u.Z,{size:16}),he.confirm]})]}),children:[ue&&(0,T.jsx)(h.Z,{alternativeLabel:!0,activeStep:H,children:fe.map((function(e){var n=e.label;return(0,T.jsx)(x.Z,{children:(0,T.jsx)(b.Z,{children:n})},n)}))}),(0,T.jsx)(m.Z,{component:"div",style:{marginTop:24},children:he.body}),!!O&&(0,T.jsx)(j.Z,{type:"error",style:{width:"100%",marginTop:8},children:O})]}),ee&&le&&(0,T.jsx)(k.default,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:R.get,checkTimeout:3e5,onSuccess:function(){F(!1),ae(!1),c((0,o.Z)({meta:ee},ce)),t()},extraParams:{title:ee.title,wt:(0,P.iK)(ee),blockletMetaUrl:decodeURIComponent(V.trim())},messages:{title:z("setup.keyPair.title"),scan:z("setup.keyPair.scan"),confirm:z("setup.keyPair.confirm"),success:z("setup.keyPair.success")},onClose:function(){F(!1),ae(!1)}})]})}A.propTypes={defaultUrl:s().string,onCancel:s().func.isRequired,onSuccess:s().func.isRequired,onError:s().func,mode:s().oneOf(["install","component"]),handleText:s().object},A.defaultProps={onError:function(){},defaultUrl:"",mode:"install",handleText:{}}},32349:function(e,n,t){t.d(n,{Z:function(){return d}});var o=t(33028),l=t(59740),a=t(55898),i=t.n(a),r=t(22228),c=t(96266),s=["mode"];function d(e){var n=e.mode,t=(0,l.Z)(e,s);return"development"===n?(0,c.jsx)(r.Z,(0,o.Z)((0,o.Z)({type:"primary"},t),{},{children:"DEV"})):null}d.propTypes={mode:i().string.isRequired}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[7534],{844:function(e,t,n){n.d(t,{Z:function(){return f}});var r,o=n(71171),i=n(33028),a=n(55898),s=n.n(a),c=n(33518),l=n(38763),u=n(75392),d=n(11750),m=n(39948),p=n(96266);function f(e){var t=e.style,n=e.title,r=e.value,o=e.graph,a=e.description;return(0,p.jsx)(v,{children:(0,p.jsxs)(u.Z,{style:(0,i.Z)({},t),children:[(0,p.jsx)(d.Z,{sx:{fontSize:14},color:"text.secondary",children:n}),(0,p.jsx)(d.Z,{variant:"h5",component:"div",mt:1,children:r}),o,!!a&&(0,p.jsx)(m.Z,{display:"flex",sx:{fontSize:12,marginTop:3},color:"text.secondary",children:a})]})})}f.propTypes={style:s().object,title:s().node,value:s().node,graph:s().node,description:s().any},f.defaultProps={style:{},title:null,value:null,graph:null,description:null};var v=(0,c.Z)(l.Z)(r||(r=(0,o.Z)(["\n .card-content {\n height: 150px;\n }\n\n .card-sparkline {\n flex: 2;\n display: flex;\n position: relative;\n *[hidden] {\n display: none;\n }\n }\n .sparkline {\n stroke: ",";\n fill: ","1A;\n }\n .tooltip {\n position: absolute;\n background: rgba(0, 0, 0, 0.7);\n color: #fff;\n padding: 2px 5px;\n font-size: 12px;\n white-space: nowrap;\n z-index: 9999;\n }\n .sparkline--cursor {\n stroke: orange;\n }\n\n .sparkline--spot {\n fill: red;\n stroke: red;\n }\n"])),(function(e){return e.theme.palette.primary.main}),(function(e){return e.theme.palette.primary.main}))},52959:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(33028),o=n(96234),i=n(5057),a=n(55898),s=n.n(a),c=n(12673),l=n(28563),u=n(26089),d=n(844),m=n(96266);function p(e){var t=e.id,n=e.title,a=e.current,s=e.description,p=e.data,f=e.dateFn,v=e.valueFn,h=(0,i.useRef)(null),y=(0,i.useRef)(null),x=(0,c.Z)({style:{top:0,left:0},hidden:!0,textContent:""}),Z=(0,i.useState)(null),b=(0,o.Z)(Z,2),g=b[0],k=b[1],j=(0,l.Z)(g),C={onmousemove:function(e,t){var n=t.date,r=t.value;x.textContent="".concat(f(n),": ").concat(v(r)),x.style.top=-30,x.style.left=80,x.hidden=!1},onmouseout:function(){x.hidden=!0}};return(0,i.useEffect)((function(){setTimeout((function(){k(document.querySelector(".".concat(t))),setTimeout((function(){h.current&&(0,u.Z)(h.current,p||[],C)}),400)}))}),[p]),(0,m.jsx)(d.Z,{title:n,value:a,graph:(0,m.jsxs)("div",{className:"card-sparkline ".concat(t),style:{marginTop:16},children:[(0,m.jsx)("svg",{ref:h,className:"sparkline",width:(null===j||void 0===j?void 0:j.width)||100,height:30,strokeWidth:"2"}),(0,m.jsx)("span",{className:"tooltip",ref:y,hidden:x.hidden,style:(0,r.Z)({},x.style),children:x.textContent})]}),description:s})}p.propTypes={id:s().string.isRequired,title:s().string.isRequired,current:s().any.isRequired,description:s().any,data:s().array,dateFn:s().func,valueFn:s().func},p.defaultProps={description:null,data:[],dateFn:function(e){return e},valueFn:function(e){return e}}},56169:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(5057),o=n(55898),i=n.n(o),a=n(68420),s=n(52959),c=n(14491),l=n(96266),u=function(e){return"".concat(e,"%")};function d(e){var t=e.cpus,n=e.currentLoad,o=e.history,i=(0,r.useContext)(a.RD),d=i.t,m=i.locale;return(0,l.jsx)(s.Z,{id:"cpu-sparkline",title:d("common.cpu"),current:"".concat(Math.floor(n||0),"%"),data:o,description:"".concat(d("system.cores"),": ").concat((null===t||void 0===t?void 0:t.length)||0),dateFn:function(e){return(0,c.mr)(e,"HH:mm",m)},valueFn:u})}d.propTypes={cpus:i().array,currentLoad:i().number,history:i().array},d.defaultProps={cpus:[],currentLoad:0,history:[]}},1979:function(e,t,n){n.d(t,{Z:function(){return m}});var r=n(55898),o=n.n(r),i=n(90049),a=n.n(i),s=n(39948),c=n(68420),l=n(52959),u=n(14491),d=n(96266);function m(e){var t=e.instanceCount,n=e.title,r=e.total,o=e.used,i=e.history,m=(0,c.PE)(),p=m.t,f=m.locale,v=!!r,h=r-o,y=v?"(".concat(Math.floor(o/r*100),"%)"):"",x=[];return t&&x.push({title:p("system.instances"),metric:t}),x.push({title:p("system.used"),metric:a()(o)}),v&&x.push({title:p("system.free"),metric:a()(h)},{title:p("system.total"),metric:a()(r)}),(0,d.jsx)(l.Z,{id:"mem-sparkline",title:n||p("common.memory"),current:"".concat(a()(Math.floor(o||0))," ").concat(y),data:i,description:x.map((function(e,t){return(0,d.jsxs)(s.Z,{sx:{marginLeft:0===t?0:2},children:[e.title,": ",e.metric]},e.title)})),dateFn:function(e){return(0,u.mr)(e,"HH:mm",f)},valueFn:a()})}m.propTypes={title:o().string,instanceCount:o().number,total:o().number,used:o().number,history:o().array},m.defaultProps={title:"",instanceCount:null,total:null,used:null,history:[]}},87534:function(e,t,n){n.r(t),n.d(t,{default:function(){return M}});var r,o=n(71171),i=n(5057),a=n(33518),s=n(90049),c=n.n(s),l=n(45603),u=n.n(l),d=n(39948),m=n(75760),p=n(11750),f=n(38242),v=n(68420),h=n(29054),y=n(14491),x=n(33028),Z=n(59740),b=n(55898),g=n.n(b),k=n(55402),j=n(56169),C=n(1979),w=n(96266),R=["blocklet","cpuHistory","memoryHistory"];function I(e){var t=e.blocklet,n=e.cpuHistory,r=e.memoryHistory,o=(0,Z.Z)(e,R),i=t.appRuntimeInfo||{};return(0,w.jsx)(P,(0,x.Z)((0,x.Z)({component:"div"},o),{},{children:(0,w.jsxs)(k.ZP,{className:"page-metrics",container:!0,spacing:5,children:[(0,w.jsx)(k.ZP,{item:!0,lg:4,md:6,sm:6,xs:12,children:!!n.length&&(0,w.jsx)(j.Z,{currentLoad:i.cpuUsage||0,history:n,style:{height:150}})},"cpu"),(0,w.jsx)(k.ZP,{item:!0,lg:4,md:6,sm:6,xs:12,children:!!r.length&&(0,w.jsx)(C.Z,{used:i.memoryUsage||0,history:r,style:{height:150}})},"memory")]})}))}I.propTypes={blocklet:g().object.isRequired,cpuHistory:g().arrayOf(g().shape({date:g().number,value:g().number})),memoryHistory:g().arrayOf(g().shape({date:g().number,value:g().number}))},I.defaultProps={cpuHistory:[],memoryHistory:[]};var F,P=(0,a.Z)(p.Z)(r||(r=(0,o.Z)([""]))),N=n(80378);function M(){var e=(0,v.PE)(),t=e.t,n=e.locale,r=(0,h.y0)(),o=r.blocklet,a=r.runtimeHistory,s=r.actions.refreshBlocklet,l=(0,i.useMemo)((function(){var e=[];return(0,f.forEachBlockletSync)(o,(function(t,n){var r=n.ancestors,i=n.id,a=n.level;t.runtimeInfo&&e.push({type:"blocklet",groupId:o.meta.did,groupName:(0,f.getDisplayName)(o),id:i,name:(0,f.getDisplayName)(t,!0),blocklet:o,component:t,level:a-1>=0?a-1:0,runtimeInfo:t.runtimeInfo,ancestors:r})})),e}),[o]);(0,i.useEffect)((function(){var e=setInterval((function(){s()}),1e4);return function(){clearInterval(e)}}),[]);var x=[{label:t("common.name"),name:"name",options:{customBodyRenderLite:function(e){var t=l[e],n=t.name,r=t.component,o=t.level,i=t.ancestors;return(0,w.jsxs)(d.Z,{display:"flex",alignItems:"center",pl:2*o,children:[(0,w.jsx)(N.Z,{size:14,blocklet:r,ancestors:i}),(0,w.jsx)(d.Z,{ml:1,children:n})]})}}},{label:t("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite:function(e){var t,r=l[e].runtimeInfo;return t=r.uptime,u()(Number(t||0),{locale:(0,y.FF)(n)})}}},{label:t("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite:function(e){var t=l[e].runtimeInfo;return c()((null===t||void 0===t?void 0:t.memoryUsage)||0)}}},{label:t("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite:function(e){var t=l[e].runtimeInfo;return"".concat((t.cpuUsage||0).toFixed(1),"%")}}},{label:t("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid"}];return(0,w.jsxs)(H,{component:"div",children:[(0,w.jsx)(p.Z,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mb:2,children:t("analytics.trend")}),"running"===o.status?[(0,w.jsx)(d.Z,{children:(0,w.jsx)(I,{blocklet:o,cpuHistory:a.cpu,memoryHistory:a.memory})}),(0,w.jsx)(d.Z,{mt:3,children:(0,w.jsx)(m.Z,{title:t("analytics.detail"),className:"monitor-table",locale:n,data:l,columns:x,options:{search:!1,download:!1,filter:!1,print:!1,viewColumns:!1,pagination:!1,rowsPerPage:100}})})]:(0,w.jsx)(p.Z,{children:t("blocklet.runtimeInfo.noRunning")})]})}M.propTypes={};var H=(0,a.Z)(p.Z)(F||(F=(0,o.Z)([""])))},80378:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(33028),o=n(59740),i=n(55898),a=n.n(i),s=n(62681),c=n(72333),l=n(6352),u=n.n(l),d=n(35432),m=n(58238),p=n(14491);var f=n(96266),v=["blocklet","style","size","ancestors"];function h(e){var t=e.blocklet,n=e.style,i=e.size,a=e.ancestors,l=(0,o.Z)(e,v),h=(0,m.h6)(),y=function(e){var t,n=e.blocklet,r=e.ancestors,o=void 0===r?[]:r,i=(0,m.h6)(),a=i.inService,s="?v=".concat(null===n||void 0===n||null===(t=n.meta)||void 0===t?void 0:t.version).concat((0,p.XN)(null===n||void 0===n?void 0:n.status)?"~":""),c=a?u()(p.zn,d.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-bundle",s):u()(i.imgPrefix,"blocklet.png");if("registry"===n.source&&n.deployedFrom&&n.meta.logo)c=u()(n.deployedFrom,(0,p.lk)(n.meta.bundleDid,n.meta.logo),s);else{var l=window.env.apiPrefix||"/",f=o.concat(n),v=a?f.slice(1):f;c=u()(l,"/blocklet/logo-bundle".concat(v.map((function(e){return"/".concat(e.meta.did)})).join("")),s)}return{logoUrl:c,inService:a}}({blocklet:t,ancestors:a}),x=y.logoUrl,Z=y.inService,b=l.variant,g=Z?function(){}:function(e){e.target.src="".concat(h.imgPrefix,"/blocklet.png")},k=(0,f.jsx)("img",{src:x,onError:g,alt:t.meta.name,style:{width:i}});return t.meta.logo||(k=(0,f.jsx)(c.Z,{did:t.meta.did||"",responsive:!0})),(0,f.jsx)(s.Z,(0,r.Z)((0,r.Z)({variant:b||"square",style:Object.assign({backgroundColor:"transparent",width:i,height:i,borderRadius:10},n)},l),{},{children:k}))}h.propTypes={blocklet:a().object.isRequired,style:a().object,size:a().oneOfType([a().number,a().string]),ancestors:a().array},h.defaultProps={style:{},size:40,ancestors:[]}},26089:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(68079);function o(e,t,n,r){return parseFloat((t-r*t/e+n).toFixed(2))}function i(e){return e.value}function a(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg",e);for(var r in t)n.setAttribute(r,t[r]);return n}function s(e,t,n){if(function(e){(0,r.Z)(e.querySelectorAll("*")).forEach((function(t){return e.removeChild(t)}))}(e),!(t.length<=1)){n=n||{},"number"===typeof t[0]&&(t=t.map((function(e){return{value:e}})));var s=n.onmousemove,c=n.onmouseout,l="interactive"in n?n.interactive:!!s,u=n.spotRadius||2,d=2*u,m=n.cursorWidth||2,p=parseFloat(e.attributes["stroke-width"].value),f=n.fetch||i,v=t.map((function(e){return f(e)})),h=parseFloat(e.attributes.width.value)-2*d,y=parseFloat(e.attributes.height.value),x=y-2*p-d,Z=0===Math.max.apply(Math,(0,r.Z)(v))?1:Math.max.apply(Math,(0,r.Z)(v)),b=-1e3,g=v.length-1,k=h/g,j=[],C=o(Z,x,p+u,v[0]),w="M".concat(d," ").concat(C);v.forEach((function(e,n){var r=n*k+d,i=o(Z,x,p+u,e);j.push(Object.assign({},t[n],{index:n,x:r,y:i})),w+=" L ".concat(r," ").concat(i)}));var R=a("path",{class:"sparkline--line",d:w,fill:"none"}),I=a("path",{class:"sparkline--fill",d:"".concat(w," V ").concat(y," L ").concat(d," ").concat(y," Z"),stroke:"none"});if(e.appendChild(I),e.appendChild(R),l){var F=a("line",{class:"sparkline--cursor",x1:b,x2:b,y1:0,y2:y,"stroke-width":m}),P=a("circle",{class:"sparkline--spot",cx:b,cy:b,r:u});e.appendChild(F),e.appendChild(P);var N=a("rect",{width:e.attributes.width.value,height:e.attributes.height.value,style:"fill: transparent; stroke: transparent",class:"sparkline--interaction-layer"});e.appendChild(N),N.addEventListener("mouseout",(function(e){F.setAttribute("x1",b),F.setAttribute("x2",b),P.setAttribute("cx",b),c&&c(e)})),N.addEventListener("mousemove",(function(e){var t=e.offsetX,n=j.find((function(e){return e.x>=t}));n||(n=j[g]);var r,o,i=j[j.indexOf(n)-1];i?(o=i.x+(n.x-i.x)/2,r=t>=o?n:i):r=n;var a=r.x,c=r.y;P.setAttribute("cx",a),P.setAttribute("cy",c),F.setAttribute("x1",a),F.setAttribute("x2",a),s&&s(e,r)}))}}}},38763:function(e,t,n){n.d(t,{Z:function(){return y}});var r=n(7896),o=n(31461),i=n(5057),a=n(8271),s=n(91213),c=n(62773),l=n(42908),u=n(25228),d=n(31821),m=n(18561);function p(e){return(0,m.Z)("MuiCard",e)}(0,d.Z)("MuiCard",["root"]);var f=n(96266),v=["className","raised"],h=(0,c.ZP)(u.Z,{name:"MuiCard",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(){return{overflow:"hidden"}})),y=i.forwardRef((function(e,t){var n=(0,l.Z)({props:e,name:"MuiCard"}),i=n.className,c=n.raised,u=void 0!==c&&c,d=(0,o.Z)(n,v),m=(0,r.Z)({},n,{raised:u}),y=function(e){var t=e.classes;return(0,s.Z)({root:["root"]},p,t)}(m);return(0,f.jsx)(h,(0,r.Z)({className:(0,a.Z)(y.root,i),elevation:u?8:void 0,ref:t,ownerState:m},d))}))},75392:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(7896),o=n(31461),i=n(5057),a=n(8271),s=n(91213),c=n(62773),l=n(42908),u=n(31821),d=n(18561);function m(e){return(0,d.Z)("MuiCardContent",e)}(0,u.Z)("MuiCardContent",["root"]);var p=n(96266),f=["className","component"],v=(0,c.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(){return{padding:16,"&:last-child":{paddingBottom:24}}})),h=i.forwardRef((function(e,t){var n=(0,l.Z)({props:e,name:"MuiCardContent"}),i=n.className,c=n.component,u=void 0===c?"div":c,d=(0,o.Z)(n,f),h=(0,r.Z)({},n,{component:u}),y=function(e){var t=e.classes;return(0,s.Z)({root:["root"]},m,t)}(h);return(0,p.jsx)(v,(0,r.Z)({as:u,className:(0,a.Z)(y.root,i),ownerState:h,ref:t},d))}))}}]);
|