text: (window.webpackJsonp=window.webpackJsonp||[]).push([[14],{1066:function(e,t,n){},1102:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),o=n(1),i=n.n(o),c=n(8),s=n.n(c),l=(n(1066),n(6)),u=n.n(l);function f(e,t){if(null!==e)return parseFloat(e).toFixed(t)}var d=n(18),p=n.n(d),m=n(19),y=n(85),v=n(78);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var E,O,S,x=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),g(this,I(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.imageId,n=e.scale,r=e.windowWidth,o=e.windowCenter,i=e.inconsistencyWarnings;if(!t)return null;var c,l=f(100*n,0),d=s.a.metaData.get("generalSeriesModule",t)||{},h=s.a.metaData.get("imagePlaneModule",t)||{},b=h.rows,g=h.columns,I=h.sliceThickness,w=h.sliceLocation,E=d.seriesNumber,O=d.seriesDescription,S=s.a.metaData.get("generalStudyModule",t)||{},x=S.studyDate,P=S.studyTime,D=S.studyDescription,k=s.a.metaData.get("patientModule",t)||{},T=k.patientId,R=k.patientName,j=(s.a.metaData.get("generalImageModule",t)||{}).instanceNumber,C=f(1e3/(s.a.metaData.get("cineModule",t)||{}).frameTime,1),L=function(e){var t=cornerstone.metaData.get("generalImageModule",e)||{},n=t.lossyImageCompression,r=t.lossyImageCompressionRatio,a=t.lossyImageCompressionMethod;return"01"===n&&""!==r?(a||"Lossy: ")+f(r,2)+" : 1":"Lossless / Uncompressed"}(t),M="W: ".concat(r.toFixed?r.toFixed(0):r," L: ").concat(r.toFixed?o.toFixed(0):o),F="".concat(g," x ").concat(b),N=this.props,A=N.imageIndex,U=N.stackSize,_=!(!i||0===i.length),Y=function(e){if(Array.isArray(e)){var t=e.map((function(e,t){return a.a.createElement("li",{key:t},e)}));return a.a.createElement("ol",null,t)}return a.a.createElement(a.a.Fragment,null,e)},q=a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"top-left overlay-element"},a.a.createElement("div",null,function(e){if(e)return e.replace("^",", ").replace(/\^/g," ").trim()}(R)),a.a.createElement("div",null,T)),a.a.createElement("div",{className:"top-right overlay-element"},a.a.createElement("div",null,D),a.a.createElement("div",null,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MMM D, YYYY";return u()(e,"YYYYMMDD").format(t)}(x)," ",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HH:mm:ss";return u()(e,"HH:mm:ss").format(t)}(P))),a.a.createElement("div",{className:"bottom-right overlay-element"},a.a.createElement("div",null,"Zoom: ",l,"%"),a.a.createElement("div",null,M),a.a.createElement("div",{className:"compressionIndicator"},L)),a.a.createElement("div",{className:"bottom-left2 warning"},a.a.createElement("div",null,_?function(e,t){return a.a.createElement(a.a.Fragment,null,0!=t.length?a.a.createElement(v.a,{key:e,placement:"left",overlay:a.a.createElement(y.a,{placement:"left",className:"in tooltip-warning",id:"tooltip-left"},a.a.createElement("div",{className:"warningTitle"},"Series Inconsistencies"),a.a.createElement("div",{className:"warningContent"},Y(t)))},a.a.createElement("div",{className:p()("warning")},a.a.createElement("span",{className:"warning-icon"},a.a.createElement(m.a,{name:"exclamation-triangle"})))):a.a.createElement(a.a.Fragment,null))}(E,i):"")),a.a.createElement("div",{className:"bottom-left overlay-element"},a.a.createElement("div",null,E>=0?"Ser: ".concat(E):""),a.a.createElement("div",null,U>1?"Img: ".concat(j," ").concat(A,"/").concat(U):""),a.a.createElement("div",null,C>=0?"".concat(f(C,2)," FPS"):"",a.a.createElement("div",null,F),a.a.createElement("div",null,"number"!=typeof(c=w)||isNaN(c)?"":"Loc: ".concat(f(w,2)," mm "),I?"Thick: ".concat(f(I,2)," mm"):""),a.a.createElement("div",null,O))));return a.a.createElement("div",{className:"OHIFCornerstoneViewportOverlay"},q)}}])&&b(n.prototype,r),o&&b(n,o),t}(r.PureComponent);E=x,O="propTypes",S={scale:i.a.number.isRequired,windowWidth:i.a.oneOfType([i.a.number.isRequired,i.a.string.isRequired]),windowCenter:i.a.oneOfType([i.a.number.isRequired,i.a.string.isRequired]),imageId:i.a.string.isRequired,imageIndex:i.a.number.isRequired,stackSize:i.a.number.isRequired,inconsistencyWarnings:i.a.array.isRequired},O in E?Object.defineProperty(E,O,{value:S,enumerable:!0,configurable:!0,writable:!0}):E[O]=S;var P=x,D=n(1067),k=n.n(D),T=n(16),R=n(62),j=n(143),C=n.n(j),L=n(61),M=n(7),F=n.n(M),N={DICOM_SR_DISPLAY_TOOL:"DICOMSRDisplayTool"},A={POINT:"POINT",MULTIPOINT:"MULTIPOINT",POLYLINE:"POLYLINE",CIRCLE:"CIRCLE",ELLIPSE:"ELLIPSE",POLYGON:"POLYGON"},U=n(275);function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function B(e,t){return!t||"object"!==_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var H=Object(M.importInternal)("drawing/draw"),G=Object(M.importInternal)("drawing/drawJoinedLines"),J=Object(M.importInternal)("drawing/drawCircle"),Z=Object(M.importInternal)("drawing/drawEllipse"),z=Object(M.importInternal)("drawing/drawHandles"),X=Object(M.importInternal)("drawing/drawArrow"),K=Object(M.importInternal)("drawing/getNewContext"),Q=Object(M.importInternal)("base/BaseTool"),$=Object(M.importInternal)("drawing/drawLinkedTextBox"),ee=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r={mixins:["enabledOrDisabledBinaryTool"],name:N.DICOM_SR_DISPLAY_TOOL},a=Object.assign(r,n);return(e=B(this,V(t).call(this,a)))._module=F.a.getModule(U.a),e}var n,r,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&W(e,t)}(t,e),n=t,(r=[{key:"renderToolData",value:function(e){var t=this,n=e.detail,r=n.element,a=this._module,o=Object(M.getToolState)(r,this.name);if(o)for(var i=a.getters.trackingUniqueIdentifiersForElement(r),c=i.activeIndex,s=i.trackingUniqueIdentifiers,l=s[c],u=o.data.filter((function(e){return s.includes(e.TrackingUniqueIdentifier)})),f=function(e){var r=u[e],a=r.renderableData,o=r.labels,i=r.TrackingUniqueIdentifier===l?M.toolColors.getActiveColor():M.toolColors.getToolColor(),c={color:i,lineWidth:2,handleRadius:6};Object.keys(a).forEach((function(e){var r=a[e];switch(e){case A.POINT:t.renderPoint(r,n,c);break;case A.MULTIPOINT:t.renderMultipoint(r,n,c);break;case A.POLYGON:case A.POLYLINE:t.renderPolyLine(r,n,c);break;case A.CIRCLE:t.renderCircle(r,n,c);break;case A.ELLIPSE:t.renderEllipse(r,n,c)}}));var s=n.element,f=K(n.canvasContext.canvas);if(!r.handles||!r.handles.textBox){var d={active:!1,hasMoved:!0,movesIndependently:!1,drawnIndependently:!0,allowedOutsideImage:!0,hasBoundingBox:!0},p=function(e,t){var n=[];return Object.keys(e).forEach((function(r){var a=e[r];switch(r){case A.POINT:a.forEach((function(e){n=[].concat(Y(n),Y(e));var r=t.image,a=r.rows,o=r.columns/10,i=a/10,c=e[0];n.push({x:c.x+o,y:c.y+i})}));break;case A.MULTIPOINT:case A.POLYLINE:case A.POLYGON:a.forEach((function(e){n=[].concat(Y(n),Y(e))}));break;case A.CIRCLE:a.forEach((function(e){var t=e.center,r=e.radius;n.push({x:t.x+r,y:t.y}),n.push({x:t.x-r,y:t.y}),n.push({x:t.x,y:t.y+r}),n.push({x:t.x,y:t.y-r})}));break;case A.ELLIPSE:a.forEach((function(e){var t=e.corner1,r=e.corner2,a=Math.abs(t.x-r.x)/2,o=Math.abs(t.y-r.y)/2,i={x:(t.x+r.x)/2,y:(t.y+r.y)/2};n.push({x:i.x+a,y:i.y}),n.push({x:i.x-a,y:i.y}),n.push({x:i.x,y:i.y+o}),n.push({x:i.x,y:i.y-o})}))}})),n}(a,n);d.anchorPoints=p;var m={x:Math.max.apply(Math,Y(p.map((function(e){return e.x})))),y:Math.max.apply(Math,Y(p.map((function(e){return e.y}))))};d.x=m.x,d.y=m.y,r.handles={},r.handles.textBox=d}var y=function(e){for(var t=Math.min(e.length,3),n=[],r=0;r<t;r++){var a=e[r];n.push("".concat(ne(a.label)).concat(a.value))}return n}(o);function v(){return r.handles.textBox.anchorPoints}H(f,(function(e){$(e,s,r.handles.textBox,y,r.handles,v,i,2,0,!0)}))},d=0;d<u.length;d++)f(d)}},{key:"renderPolyLine",value:function(e,t,n){var r=t.element,a=K(t.canvasContext.canvas);e.forEach((function(e){H(a,(function(t){G(t,r,e[0],e,n)}))}))}},{key:"renderMultipoint",value:function(e,t,n){var r=K(t.canvasContext.canvas);e.forEach((function(e){H(r,(function(r){z(r,t,e,n)}))}))}},{key:"renderPoint",value:function(e,t,n){var r=t.element,a=t.image,o=a.rows,i=a.columns,c=K(t.canvasContext.canvas),l=n.color,u=n.lineWidth,f=i/10,d=o/10;e.forEach((function(e){var t=e[0];H(c,(function(e){var n=s.a.pixelToCanvas(r,t),a=s.a.pixelToCanvas(r,{x:t.x+f,y:t.y+d});X(e,a,n,l,u,!1)}))}))}},{key:"renderCircle",value:function(e,t,n){var r=t.element,a=K(t.canvasContext.canvas);e.forEach((function(e){var t=e.center,o=e.radius;J(a,r,t,o,n)}))}},{key:"renderEllipse",value:function(e,t,n){var r=t.element,a=K(t.canvasContext.canvas);e.forEach((function(e){var t=e.corner1,o=e.corner2;Z(a,r,t,o,n,"pixel",0)}))}}])&&q(n.prototype,r),a&&q(n,a),t}(Q);var te={"Short Axis":"W ","Long Axis":"L ",AREA:"Area ",Length:"",CORNERSTONEFREETEXT:""};function ne(e){var t=te[e];return void 0!==t?t:e}var re=function(e){var t=function(e){var t=e;switch(e){case"Length":t="SRLength";break;case"Bidirectional":t="SRBidirectional";break;case"ArrowAnnotate":t="SRArrowAnnotate";break;case"EllipticalRoi":t="SREllipticalRoi";break;case"FreehandRoi":t="SRFreehandRoi";break;case"RectangleRoi":t="SRRectangleRoi"}return t}("Wwwc");F.a.addToolForElement(e,ee),F.a.setToolEnabledForElement(e,N.DICOM_SR_DISPLAY_TOOL),F.a.addToolForElement(e,F.a.LengthTool,{name:"SRLength",configuration:{renderDashed:!0}}),F.a.addToolForElement(e,F.a.ArrowAnnotateTool,{name:"SRArrowAnnotate",configuration:{renderDashed:!0}}),F.a.addToolForElement(e,F.a.BidirectionalTool,{name:"SRBidirectional",configuration:{renderDashed:!0}}),F.a.addToolForElement(e,F.a.EllipticalRoiTool,{name:"SREllipticalRoi",configuration:{renderDashed:!0}}),F.a.addToolForElement(e,F.a.RectangleRoiTool,{name:"SRRectangleRoi",configuration:{renderDashed:!0}}),F.a.addToolForElement(e,F.a.FreehandRoiTool,{name:"SRFreehandRoi",configuration:{renderDashed:!0}}),F.a.setToolActiveForElement(e,"PanMultiTouch",{pointers:2}),F.a.setToolActiveForElement(e,"ZoomTouchPinch",{}),F.a.setToolActiveForElement(e,t,{mouseButtonMask:1}),F.a.setToolActiveForElement(e,"Pan",{mouseButtonMask:4}),F.a.setToolActiveForElement(e,"Zoom",{mouseButtonMask:2}),F.a.setToolActiveForElement(e,"StackScrollMouseWheel",{})};function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ie=T.a.redux.actions,ce=ie.setViewportActive,se=ie.setViewportSpecificData,le=T.a.measurements.MeasurementHandlers,ue=le.onAdded,fe=le.onRemoved,de=le.onModified,pe={added:ue,removed:fe,modified:C()((function(e){return de(e)}),300)},me=Object(R.b)((function(e,t){var n;e.extensions&&e.extensions.cornerstone&&(n=e.extensions.cornerstone);var r=t.viewportIndex,a=r===e.viewports.activeViewportIndex,o=e.viewports.viewportSpecificData[r]||{},i=!1,c=24;if(o&&o.cine){var s=o.cine;i=!0===s.isPlaying,c=s.cineFrameRate||c}return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(n,!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({isActive:a},n,{isStackPrefetchEnabled:t.hasOwnProperty("isStackPrefetchEnabled")?t.isStackPrefetchEnabled:t.stackPrefetch?t.stackPrefetch.enabled:a,isPlaying:i,frameRate:c})}),(function(e,t){var n=t.viewportIndex;return{setViewportActive:function(){e(ce(n))},setViewportSpecificData:function(t){e(se(n,t))},onElementEnabled:function(t){var r=t.detail.element;Object(L.b)(n,r),e(se(n,{plugin:"cornerstone"})),re(r)},onMeasurementsChanged:function(e,t){return pe[t](e)}}}))(k.a),ye=T.a.utils.studyMetadataManager,ve=function(e){var t=e.viewportIndex,n=e.displaySet,r=F.a.getModule(U.a),a=Object(L.a)(t);if(a){var o=n.StudyInstanceUID,i=ye.get(o);if(i){var c=i.getDisplaySets().filter((function(e){return"SR"===e.Modality}));if(0!==c.length){var l=c[0].measurements;if(l&&!(l.length<1)){var u=l.filter((function(e){return!0===e.loaded})),f=u[0];if(f){r.setters.trackingUniqueIdentifiersForElement(a,u.map((function(e){return e.TrackingUniqueIdentifier})),f);var d=f.TrackingUniqueIdentifier;r.setters.activeTrackingUniqueIdentifierForElement(a,d),s.a.updateImage(a)}}}}}};function he(e){return(he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function be(){return(be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ge(e,t,n,r,a,o,i){try{var c=e[o](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,a)}function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function we(e){return(we=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ee(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oe(e,t){return(Oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xe=T.a.utils.StackManager,Pe=function(e){function t(){var e,n,r,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=new Array(o),c=0;c<o;c++)i[c]=arguments[c];return r=this,n=!(a=(e=we(t)).call.apply(e,[this].concat(i)))||"object"!==he(a)&&"function"!=typeof a?Ee(r):a,Se(Ee(n),"state",{viewportData:null}),Se(Ee(n),"getViewportData",function(){var e,n=(e=regeneratorRuntime.mark((function e(n,r,a,o,i){var c,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=t.getCornerstoneStack(n,r,a,o,i),c={StudyInstanceUID:r,displaySetInstanceUID:a,stack:s},e.abrupt("return",c);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){ge(o,r,a,i,c,"next",e)}function c(e){ge(o,r,a,i,c,"throw",e)}i(void 0)}))});return function(e,t,r,a,o){return n.apply(this,arguments)}}()),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Oe(e,t)}(t,e),n=t,o=[{key:"init",value:function(){console.log("OHIFCornerstoneViewport init()")}},{key:"destroy",value:function(){console.log("OHIFCornerstoneViewport destroy()"),xe.clearStacks()}},{key:"getCornerstoneStack",value:function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!e||!e.length)throw new Error("Studies not provided.");if(!t)throw new Error("StudyInstanceUID not provided.");if(!n)throw new Error("StudyInstanceUID not provided.");var o=e.find((function(e){return e.StudyInstanceUID===t}));if(!o)throw new Error("Study not found.");var i=o.displaySets.find((function(e){return e.displaySetInstanceUID===n}));if(!i)throw new Error("Display Set not found.");var c=xe.findOrCreateStack(o,i),l=Object.assign({},c);if(l.currentImageIdIndex=a,r){var u=l.imageIds.findIndex((function(e){return s.a.metaData.get("SOPInstanceUID",e)===r}));u>-1?l.currentImageIdIndex=u:console.warn("SOPInstanceUID provided was not found in specified DisplaySet")}return l}}],(r=[{key:"setStateFromProps",value:function(){var e=this,t=this.props.viewportData,n=t.studies,r=t.displaySet,a=r.StudyInstanceUID,o=r.displaySetInstanceUID,i=r.sopClassUIDs,c=r.SOPInstanceUID,s=r.frameIndex;a&&o&&(i&&i.length>1&&console.warn("More than one SOPClassUID in the same series is not yet supported."),this.getViewportData(n,a,o,c,s).then((function(t){e.setState({viewportData:t})})))}},{key:"componentDidMount",value:function(){this.setStateFromProps()}},{key:"componentDidUpdate",value:function(e){var t=this.props.viewportData.displaySet,n=e.viewportData.displaySet;if(t.displaySetInstanceUID!==n.displaySetInstanceUID||t.SOPInstanceUID!==n.SOPInstanceUID||t.frameIndex!==n.frameIndex){var r=this.props.viewportIndex;ve({displaySet:t,viewportIndex:r}),this.setStateFromProps()}}},{key:"render",value:function(){var e=this,t=null;if(!this.state.viewportData)return null;var n=this.props.viewportIndex,r=this.props.viewportData.displaySet.inconsistencyWarnings,o=this.state.viewportData.stack,i=o.imageIds,c=o.currentImageIdIndex;return this.props.children&&this.props.children.length&&(t=this.props.children.map((function(t,n){return t&&a.a.cloneElement(t,{viewportIndex:e.props.viewportIndex,key:n})}))),a.a.createElement(a.a.Fragment,null,a.a.createElement(me,be({viewportIndex:n,imageIds:i,imageIdIndex:c,onNewImageDebounced:function(t){var r=t.currentImageIdIndex,a=t.sopInstanceUid,o=e.props.viewportData.displaySet.StudyInstanceUID;r>=0&&e.props.onNewImage({StudyInstanceUID:o,SOPInstanceUID:a,frameIndex:r,activeViewportIndex:n})},onNewImageDebounceTime:300,viewportOverlayComponent:function(e){return a.a.createElement(P,be({},e,{inconsistencyWarnings:r}))},stackPrefetch:this.props.stackPrefetch,isStackPrefetchEnabled:this.props.isStackPrefetchEnabled},this.props.customProps)),t)}}])&&Ie(n.prototype,r),o&&Ie(n,o),t}(r.Component);Se(Pe,"defaultProps",{customProps:{},isStackPrefetchEnabled:!0}),Se(Pe,"propTypes",{studies:i.a.object,displaySet:i.a.object,viewportIndex:i.a.number,children:i.a.node,customProps:i.a.object,stackPrefetch:i.a.object,isStackPrefetchEnabled:i.a.bool}),Se(Pe,"id","OHIFCornerstoneViewport");t.default=Pe}}]);
  //# sourceMappingURL=14.bundle.ab1c6f476c81e5c3512d.js.map