"use strict";(self.webpackChunknbvv=self.webpackChunknbvv||[]).push([[174],{51568:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VolumeWidgetView=void 0;const o=l(n(76728)),r=n(33566),d=s(n(56271)),u=s(n(14456));n(26946),n(54840);var c=o.DOMWidgetView.extend({initialize:function(){this.model.get("metadata");const e=this.model.get("image"),t=(this.model.get("size"),this.model.get("density"),this.model.get("brightness"),this.model.get("dimensions"));e.shape[1],e.shape[2],e.shape[3],e.shape[0],e.shape[1];const n=d.default.createElement("div",{className:"cell-viewer"},d.default.createElement(r.ImageViewerApp,{rawData:e,rawDims:t,appHeight:"400px",renderConfig:{alphaMask:!0,autoRotateButton:!0,axisClipSliders:!0,brightnessSlider:!0,colorPicker:!0,colorPresetsDropdown:!0,densitySlider:!0,fovCellSwitchControls:!1,levelsSliders:!0,saveSurfaceButtons:!0,viewModeRadioButtons:!0},viewerChannelSettings:{groups:[{name:"Channels",channels:t.channel_names.map(((e,t)=>({match:e,enabled:t<3})))}]}},null)),i=document.createElement("div");u.default.render(n,i),this.el.append(i),setTimeout((()=>{window.dispatchEvent(new Event("resize"))}),200)}});t.VolumeWidgetView=c},12338:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(23645),a=n.n(i)()((function(e){return e[1]}));a.push([e.id,"/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.cell-viewer {\n  display: flex;\n  flex: 1;\n  width: 100%;\n  background: #ff0000;\n}\n.cell-viewer .ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow {\n  transform: translateY(-350%);\n}\n.cell-viewer .ant-layout-sider {\n  background: #ffffff;\n}\n",""]);const l=a},54840:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var i=n(93379),a=n.n(i),l=n(7795),s=n.n(l),o=n(90569),r=n.n(o),d=n(3565),u=n.n(d),c=n(19216),p=n.n(c),h=n(44589),f=n.n(h),A=n(12338),m={};m.styleTagTransform=f(),m.setAttributes=u(),m.insert=r().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=p(),a()(A.Z,m);const g=A.Z&&A.Z.locals?A.Z.locals:void 0},25145:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAoCAYAAACWwljjAAAABGdBTUEAALGPC/xhBQAAAbtJREFUWAntmMtKw0AUhhMvS5cuxILgQlRUpIggIoKIIoigG1eC+AA+jo+i6FIXBfeuXIgoeKVeitVWJX5HWhhDksnUpp3FDPyZk3Nm5nycmZKkXhAEOXSA3lG7muTeRzmfy6HneUvIhnYkQK+Q9NhAA0Opg0vBEhjBKHiyb8iGMyQMOYuK41BcBSypAL+MYXSKjtFAW7EAGEO3qN4uMQbbAkXiSfRQJ1H6a+yhlkKRcAoVFYiweYNjtCVQJJpBz2GCiPt7fBOZQpFgDpUikse5HgnkM4Fi4QX0Fpc5wf9EbLqpUCy4jMoJSXWhFwbMNgWKhVbRhy5jirhs9fy/oFhgHVVTJEs7RLZ8sSEoJm6iz7SZDMbJ+/OKERQTttCXQRLToRUmrKWCYuA2+jbN0MB4OQobYShfdTCgn/sL1K36M7TLrN3n+758aPy2rrpR6+/od5E8tf/A1uLS9aId5T7J3CNYihkQ4D9PiMdMC7mp4rjB9kjFjZp8BlnVHJBuO1yFXIV0FdDF3RlyFdJVQBdv5AxVdIsq8apiZ2PyYO1EVykesGfZEESsCkweyR8MUW+V8uJ1gkYipmpdP1pm2aJVPEGzAAAAAElFTkSuQmCC"}}]);