"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[12],{85012:(e,n,s)=>{s.r(n),s.d(n,{default:()=>u});var t=s(43001);const a=JSON.parse('{"u2":"@ohif/extension-dicom-video"}').u2,r=`${a}.sopClassHandlerModule.dicom-video`;var i=s(71771);const _={VIDEO_MICROSCOPIC_IMAGE_STORAGE:"1.2.840.10008.5.1.4.1.1.77.1.2.1",VIDEO_PHOTOGRAPHIC_IMAGE_STORAGE:"1.2.840.10008.5.1.4.1.1.77.1.4.1",VIDEO_ENDOSCOPIC_IMAGE_STORAGE:"1.2.840.10008.5.1.4.1.1.77.1.1.1",SECONDARY_CAPTURE_IMAGE_STORAGE:"1.2.840.10008.5.1.4.1.1.7",MULTIFRAME_TRUE_COLOR_SECONDARY_CAPTURE_IMAGE_STORAGE:"1.2.840.10008.5.1.4.1.1.7.4"},I=Object.values(_),E=[_.SECONDARY_CAPTURE_IMAGE_STORAGE,_.MULTIFRAME_TRUE_COLOR_SECONDARY_CAPTURE_IMAGE_STORAGE],O=Object.values({MPEG4_AVC_264_HIGH_PROFILE:"1.2.840.10008.1.2.4.102",MPEG4_AVC_264_BD_COMPATIBLE_HIGH_PROFILE:"1.2.840.10008.1.2.4.103",MPEG4_AVC_264_HIGH_PROFILE_FOR_2D_VIDEO:"1.2.840.10008.1.2.4.104",MPEG4_AVC_264_HIGH_PROFILE_FOR_3D_VIDEO:"1.2.840.10008.1.2.4.105",MPEG4_AVC_264_STEREO_HIGH_PROFILE:"1.2.840.10008.1.2.4.106",HEVC_265_MAIN_PROFILE:"1.2.840.10008.1.2.4.107",HEVC_265_MAIN_10_PROFILE:"1.2.840.10008.1.2.4.108"});function l(){return l=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var s=arguments[n];for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&(e[t]=s[t])}return e},l.apply(this,arguments)}const c=t.lazy((()=>s.e(686).then(s.bind(s,39686)))),o=e=>t.createElement(t.Suspense,{fallback:t.createElement("div",null,"Loading...")},t.createElement(c,e));const u={id:a,getViewportModule(e){let{servicesManager:n,extensionManager:s}=e;return[{name:"dicom-video",component:e=>t.createElement(o,l({servicesManager:n,extensionManager:s},e))}]},getSopClassHandlerModule:function(e){let{servicesManager:n,extensionManager:s}=e;return[{name:"dicom-video",sopClassUids:I,getDisplaySetsFromSeries:e=>((e,n,s)=>{const t=s.getActiveDataSource()[0];return e.filter((e=>{const n=e.AvailableTransferSyntaxUID||e.TransferSyntaxUID||e["00083002"];return!!O.includes(n)||e.SOPClassUID===_.VIDEO_PHOTOGRAPHIC_IMAGE_STORAGE||E.includes(e.SOPClassUID)&&e.NumberOfFrames>=90})).map((e=>{const{Modality:n,SOPInstanceUID:s,SeriesDescription:a="VIDEO"}=e,{SeriesNumber:_,SeriesDate:E,SeriesInstanceUID:O,StudyInstanceUID:l,NumberOfFrames:c}=e;return{Modality:n,displaySetInstanceUID:i.utils.guid(),SeriesDescription:a,SeriesNumber:_,SeriesDate:E,SOPInstanceUID:s,SeriesInstanceUID:O,StudyInstanceUID:l,SOPClassHandlerId:r,referencedImages:null,measurements:null,videoUrl:t.retrieve.directURL({instance:e,singlepart:"video",tag:"PixelData"}),instances:[e],thumbnailSrc:t.retrieve.directURL({instance:e,defaultPath:"/thumbnail",defaultType:"image/jpeg",tag:"Absent"}),isDerivedDisplaySet:!0,isLoaded:!1,sopClassUids:I,numImageFrames:c,instance:e}}))})(e,0,s)}]}}}}]);
//# sourceMappingURL=12.bundle.81eef81badc8d1242199.js.map