(self.webpackChunk_unfolded_jupyter_map_sdk=self.webpackChunk_unfolded_jupyter_map_sdk||[]).push([[4],{82004:function(e,n,t){"use strict";var o=this&&this.__awaiter||function(e,n,t,o){return new(t||(t=Promise))((function(d,s){function i(e){try{r(o.next(e))}catch(e){s(e)}}function a(e){try{r(o.throw(e))}catch(e){s(e)}}function r(e){var n;e.done?d(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,a)}r((o=o.apply(e,n||[])).next())}))};Object.defineProperty(n,"__esModule",{value:!0}),n.unfoldedRendererFactory=void 0;const d=t(23706),s=t(30022),i="application/geo+json",a="text/csv",r=[i,a];class u extends d.Widget{constructor(e){super(),this.addClass("unfolded-rendermime"),this.options=e}renderModel(e){return o(this,void 0,void 0,(function*(){if(this.hasMapElement())return;const n=e.data[this.options.mimeType],t=new s.UnfoldedMap({mapUrl:"https://studio.unfolded.ai/incognito",appendToDocument:!1,width:"100%",height:"100%",embed:!0,onLoad:()=>{var e,o;n&&t.addDataset({uuid:"d406c4ef-b570-4832-9e47-9c4a0a0dfe2e",label:(null===(o=null===(e=this.options)||void 0===e?void 0:e.resolver)||void 0===o?void 0:o.path)||"Dataset",data:n},!0)}});t.render(this.node)}))}hasMapElement(){return null!==this.node.querySelector("iframe#unfolded_iframe")}}n.unfoldedRendererFactory={safe:!0,mimeTypes:r,createRenderer:e=>new u(e)};const l=[{id:"@unfolded/jupyter-map-sdk:rendermime-plugin",rendererFactory:n.unfoldedRendererFactory,rank:0,dataType:"string",fileTypes:[{name:"geojson",mimeTypes:[i],extensions:[".geojson",".json"]},{name:"csv",mimeTypes:[a],extensions:[".csv"]}],documentWidgetFactoryOptions:{name:"Unfolded Studio",primaryFileType:"geojson",fileTypes:["geojson","json","csv"],defaultFor:["geojson"]}}];n.default=l}}]);