"use strict";(self.webpackChunkoss_pasarela=self.webpackChunkoss_pasarela||[]).push([[530],{530:(e,a,t)=>{t.r(a),t.d(a,{default:()=>w});var n=t(510),s=t(279),r=t(591),o=t(271),c=t.n(o),l=t(130),i=t.n(l),d=t(731),u=t.n(d),m=t(886),p=t(258);const h=()=>{const[e,a]=(0,o.useState)("");return(0,o.useEffect)((()=>{(async()=>await async function(e="",a={}){const t=p.ServerConnection.makeSettings(),n=m.URLExt.join(t.baseUrl,"pasarela",e);let s;try{s=await p.ServerConnection.makeRequest(n,a,t)}catch(e){throw new p.ServerConnection.NetworkError(e)}let r=await s.text();if(r.length>0)try{r=JSON.parse(r)}catch(e){console.log("Not a JSON response body.",s)}if(!s.ok)throw new p.ServerConnection.ResponseError(s,r.message||r);return r}("usage"))().then(a).catch((e=>{console.log(e)}))}),[]),c().createElement("div",{className:"container"},c().createElement(i(),{children:e,remarkPlugins:[u()]}))};class g extends n.ReactWidget{constructor(){super(),this.addClass("jp-ReactWidget")}render(){return c().createElement(h,null)}}t(39);const w={id:"oss-pasarela:plugin",autoStart:!0,requires:[n.ICommandPalette,s.ILauncher],activate:(e,a,t)=>{const{commands:s}=e,o="pasarela:open";s.addCommand(o,{caption:"Pasarela help",label:"Pasarela help",icon:e=>e.isPalette?void 0:r.linkIcon,execute:()=>{const a=new g,t=new n.MainAreaWidget({content:a});t.title.label="Pasarela help",t.title.icon=r.linkIcon,e.shell.add(t,"main")}}),t&&t.add({command:o}),a.addItem({command:o,category:"OSS Extensions"})}}}}]);