"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[814],{92814:(e,n,t)=>{t.r(n),t.d(n,{default:()=>p});var a=t(43001);const s=JSON.parse('{"u2":"@ohif/extension-dicom-pdf"}').u2,r=`${s}.sopClassHandlerModule.dicom-pdf`;var i=t(71771);const{ImageSet:c}=i.classes,l=Object.values({ENCAPSULATED_PDF:"1.2.840.10008.5.1.4.1.1.104.1"});function d(){return d=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},d.apply(this,arguments)}const u=a.lazy((()=>t.e(125).then(t.bind(t,39125)))),o=e=>a.createElement(a.Suspense,{fallback:a.createElement("div",null,"Loading...")},a.createElement(u,e)),p={id:s,getViewportModule(e){let{servicesManager:n,extensionManager:t}=e;return[{name:"dicom-pdf",component:e=>a.createElement(o,d({servicesManager:n,extensionManager:t},e))}]},getSopClassHandlerModule:function(e){let{servicesManager:n,extensionManager:t}=e;return[{name:"dicom-pdf",sopClassUids:l,getDisplaySetsFromSeries:e=>((e,n,t)=>{const a=t.getActiveDataSource()[0];return e.map((e=>{const{Modality:n,SOPInstanceUID:t,EncapsulatedDocument:s}=e,{SeriesDescription:c="PDF",MIMETypeOfEncapsulatedDocument:d}=e,{SeriesNumber:u,SeriesDate:o,SeriesInstanceUID:p,StudyInstanceUID:m,SOPClassUID:S}=e,g=a.retrieve.directURL({instance:e,tag:"EncapsulatedDocument",defaultType:d||"application/pdf",singlepart:"pdf"});return{Modality:n,displaySetInstanceUID:i.utils.guid(),SeriesDescription:c,SeriesNumber:u,SeriesDate:o,SOPInstanceUID:t,SeriesInstanceUID:p,StudyInstanceUID:m,SOPClassHandlerId:r,SOPClassUID:S,referencedImages:null,measurements:null,pdfUrl:g,instances:[e],thumbnailSrc:a.retrieve.directURL({instance:e,defaultPath:"/thumbnail",defaultType:"image/jpeg",tag:"Absent"}),isDerivedDisplaySet:!0,isLoaded:!1,sopClassUids:l,numImageFrames:0,numInstances:1,instance:e}}))})(e,0,t)}]}}}}]);
//# sourceMappingURL=814.bundle.98cb45449347c08563de.js.map