{"version":3,"sources":["webpack:///./src/router/views/TeleconsultationRequest/UploadSale.vue?d067","webpack:///./src/components/view/UploadSaleDicomMatches.vue?0ae8","webpack:///src/components/view/UploadSaleDicomMatches.vue","webpack:///./src/components/view/UploadSaleDicomMatches.vue?36e2","webpack:///./src/components/view/UploadSaleDicomMatches.vue","webpack:///src/router/views/TeleconsultationRequest/UploadSale.vue","webpack:///./src/router/views/TeleconsultationRequest/UploadSale.vue?8307","webpack:///./src/router/views/TeleconsultationRequest/UploadSale.vue","webpack:///./src/components/SingleUploadForm.vue?42d4","webpack:///./src/components/SingleUploadForm.vue","webpack:///./src/components/SingleUploadForm.vue?3c4d","webpack:///./src/components/SingleUploadForm.vue?e36b","webpack:///./src/router/views/TeleconsultationRequest/UploadSale.vue?017c","webpack:///./src/components/StudyCard.vue?86b7","webpack:///./src/components/StudyCard.vue?1536","webpack:///src/components/StudyCard.vue","webpack:///./src/components/StudyCard.vue?0dd3","webpack:///./src/components/StudyCard.vue","webpack:///./src/components/SingleUploadForm.vue?f919"],"names":["render","_vm","this","_h","$createElement","_c","_self","ids","staticClass","_v","_s","translate","saleEntry","patientId","sale","name","attrs","_l","studyId","key","on","$event","removeStudy","requireConfirmation","validateStudy","dicomMatches","_e","staticStyle","nativeOn","selectFromExisting","ref","length","imageDrop","imageUploads","excludedFiles","file","i","tag","slot","clearExcludedFiles","batchId","getUploadsInBatch","removeBatch","addUploadedBatch","attachments","attachmentHeading","canAddImages","attachment","reportTemplateImageViewId","allowedExtensions","imageId","imageViewId","isRequired","attachmentPatientId","attachmentStudyId","staticRenderFns","class","messageClass","icon","message","props","matches","type","Object","required","data","created","_this","matchCount","keys","reduce","a","k","concat","toLowerCase","didMatch","didNotMatch","friendlyStrings","label","hip","sire","dam","forEach","push","formatList","wrongHip","component","components","AstButton","AstUploadForm","DicomMatches","SingleUploadForm","StudyCard","UploadItemFile","UploadItemBatch","Array","consultantId","String","batchValidationDebounce","undefined","haveImagesFromStudy","uploadedStudyIds","uploadedBatchIds","salesService","uploadData","computed","_objectSpread","mapState","saleHipStore","state","filter","context","uploads","saleEntryStatus","areImagesRequired","allowAttachmentOnly","images","some","image","upload","isAttachment","imageBatchIds","_toConsumableArray","Set","map","batchIds","Boolean","studyIds","isProcessing","get","sortIsRequiredFirst","b","slice","sort","set","requiredAttachments","optionalAttachments","code","join","canGoNext","isUploadingImage","studyInstanceUid","isAttachmentDone","_ref","uploadIsForThisAttachment","requiredAttachmentsArePopulated","every","isUploading","isUploadError","watch","handler","updateNextRoute","workflow","immediate","oldBatchIds","_this2","includes","clearTimeout","setTimeout","validateImageBatches","deep","mounted","clearAttachmentImageIds","$refs","methods","CLEAR_UPLOAD_EXCLUDED_FILES","_ref2","find","study","_this3","_asyncToGenerator","_regeneratorRuntime","mark","_callee","_yield$_this3$validat","errors","canUseImages","addedAttachments","newIds","query","wrap","_context","prev","next","studyUid","validateMetadata","sent","imageData","thumbnails","$set","addAttachmentsFromStudy","abrupt","$route","$router","replace","showAlert","stop","_this4","_callee3","createBatchValidation","batches","failedBatches","_context3","batch","metadata","validate","Promise","_ref3","_callee2","resolve","_yield$_this4$validat","localStudyDate","_context2","$options","filters","localizeDate","studyDateTime","forceUTC","showTime","error","_x","apply","arguments","all","_ref4","_ref5","_ref6","_this5","_callee4","acquisitionDate","patientName","ownerName","accessionNumber","saleEntryId","saleId","_context4","id","revalidateStudies","_this6","_callee5","_yield$_this6$$api$vi","studies","_context5","isLoading","$api","viewer","getStudy","finish","_ref7","_this7","_callee6","_ref7$requireConfirma","warning","_context6","t0","showConfirm","$nextTick","_ref8","_this8","_callee7","_ref8$requireConfirma","reportAttachment","_context7","stopUploads","_this9","hadUsableAttachments","_ret","_loop","j","_this10","_callee8","openDialog","_context8","$store","getters","isCommunityUser","openUserStudiesDlg","openStudiesDlg","nextRoute","isDragging","preventDefault","iconClass","iconName","description","_f","size","status","errorMessages","errorMessage","cancelUpload","acceptString","selectFile","default","pollInterval","extension","isUploaded","isFailedUpload","fileCount","completeCount","isComplete","isSaleDayMedicationAlert","previousUpload","getUploadStatus","setInterval","clearInterval","imageIds","$emit","assign","toggleDropListeners","$el","destroyed","errorCount","UPDATE_UPLOAD","dropTarget","isAdding","addOrRemove","setIsDragging","setIsNotDragging","dropFile","$once","toggleIsDragging","e","stopPropagation","target","files","queueUpload","dataTransfer","validateExtension","serializeDate","Date","queueFilesForUpload","allowAttachments","startUpload","getExtension","split","pop","isAllowedExtension","saleAttachmentDescription","imageAndAttachmentCounts","totalSize","modality","_t","progressPercent","progressStatus","showCloseButton","ProgressBar","showDetails","Number","imageCount","sizes","modalityById","static","modalities","m","counts","friendlyName","newVal","oldVal","_yield$_this2$$api$vi","deletedStudies"],"mappings":"2LAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAAEJ,EAAIM,IAAU,OAAEF,EAAG,MAAM,CAACG,YAAY,WAAW,CAACH,EAAG,KAAK,CAACJ,EAAIQ,GAAG,gDAAgDR,EAAIS,GAAGT,EAAIU,UAAU,mBAAmB,IAAIV,EAAIS,GAAGT,EAAIW,UAAUC,WAAW,cAAcZ,EAAIS,GAAGT,EAAIa,KAAKC,MAAM,aAAaV,EAAG,mBAAmB,CAACW,MAAM,CAAC,KAAO,WAAWf,EAAIgB,GAAIhB,EAAO,KAAE,SAASiB,GAAS,OAAOb,EAAG,aAAa,CAACc,IAAID,EAAQV,YAAY,aAAaQ,MAAM,CAAC,MAAQ,CAAEE,QAASA,IAAWE,GAAG,CAAC,cAAc,SAASC,GAAQ,OAAOpB,EAAIqB,YAAY,CAAEJ,QAASA,EAASK,qBAAqB,KAAU,MAAQ,SAASF,GAAQ,OAAOpB,EAAIqB,YAAY,CAAEJ,QAASA,KAAY,YAAYjB,EAAIuB,gBAAgB,CAAEvB,EAAIwB,aAAaP,GAAUb,EAAG,gBAAgB,CAACW,MAAM,CAAC,QAAUf,EAAIwB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AA/I,aAAA,GACA+G,EAAA2E,YAAA9D,EAAA8D,YACA3E,EAAA9I,UAAA2J,EAAA3J,UACA8I,EAAAgC,UAAAnB,EAAAmB,UACAhC,EAAAiM,WAAApL,EAAAoL,WAAAhT,EAAAb,OACA4H,EAAA6D,cAAAhD,EAAAgD,cACA7D,EAAAuJ,MAAA,YAAA1I,IACA+L,KAAAxU,QACA4H,EAAAuJ,MAAA,eACA/G,eACA,wFAGAxC,EAAAuJ,MAAA,eACA/G,eAAA,+CACA,OAEA,OAFAd,EAAAC,KAAA,EAEA3B,EAAAwF,WAAA,EAAA9D,EAAAkE,OAAA,4BAAAlE,EAAAe,UAAAvB,EAAA,qBA1BAH,MCpKkV,I,wBCQ9UpF,EAAY,eACd,EACAtF,EACAuD,GACA,EACA,KACA,WACA,MAIa,OAAA+B,E,2CCnBf","file":"js/teleconsultationsRequestUploadSale.0530b7f8a10419c16025.bundle.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.ids.length)?_c('div',{staticClass:\"studies\"},[_c('h3',[_vm._v(\"\\n\\t\\t\\tThese studies have been imported for \"+_vm._s(_vm.translate('consignerStudy'))+\" \"+_vm._s(_vm.saleEntry.patientId)+\" in\\n\\t\\t\\t\"+_vm._s(_vm.sale.name)+\".\\n\\t\\t\")]),_c('transition-group',{attrs:{\"name\":\"expand\"}},_vm._l((_vm.ids),function(studyId){return _c('study-card',{key:studyId,staticClass:\"study-card\",attrs:{\"study\":{ studyId: studyId }},on:{\"force-close\":function($event){return _vm.removeStudy({ studyId: studyId, requireConfirmation: false })},\"close\":function($event){return _vm.removeStudy({ studyId: studyId })},\"get-study\":_vm.validateStudy}},[(_vm.dicomMatches[studyId])?_c('dicom-matches',{attrs:{\"matches\":_vm.dicomMatches[studyId]}}):_vm._e()],1)}),1),_c('p',{staticStyle:{\"margin-bottom\":\"16px\"}},[_c('ast-button',{attrs:{\"type\":\"success\"},nativeOn:{\"click\":function($event){return _vm.selectFromExisting($event)}}},[_c('span',{staticClass:\"plus\"},[_vm._v(\"+\")]),_vm._v(\"\\n\\t\\t\\t\\tAdd a previously uploaded study\\n\\t\\t\\t\")])],1)],1):_vm._e(),(_vm.canAddImages)?_c('div',{ref:\"imageDrop\",staticClass:\"upload-section\"},[(!_vm.ids.length)?[_c('h3',[_vm._v(\"\\n\\t\\t\\t\\tAdd the images you would like to submit to \"+_vm._s(_vm.sale.name)+\" for \"+_vm._s(_vm.translate('consignerStudy'))+\"\\n\\t\\t\\t\\t\"+_vm._s(_vm.saleEntry.patientId)+\".\\n\\t\\t\\t\")]),_c('p',{staticStyle:{\"margin-bottom\":\"16px\"}},[_c('ast-button',{attrs:{\"type\":\"success\"},nativeOn:{\"click\":function($event){return _vm.selectFromExisting($event)}}},[_c('span',{staticClass:\"plus\"},[_vm._v(\"+\")]),_vm._v(\"\\n\\t\\t\\t\\t\\tAdd a previously uploaded study\\n\\t\\t\\t\\t\")])],1)]:_vm._e(),(_vm.canAddImages)?_c('ast-upload-form',{staticClass:\"upload-form\",attrs:{\"context\":\"teleconsultation-request\",\"drop-target\":_vm.imageDrop,\"allow-dicoms\":true,\"allow-jpegs\":false,\"allow-attachments\":false}}):_vm._e(),(_vm.imageUploads.length || _vm.excludedFiles.length)?_c('div',{staticClass:\"upload-items\"},[_c('transition',{attrs:{\"name\":\"expand\"}},[(_vm.excludedFiles.length)?_c('ol',{staticClass:\"excluded-files\"},[_vm._l((_vm.excludedFiles),function(file,i){return _c(\"UploadItemFile\",{key:i,tag:\"li\",attrs:{\"upload\":file}},[_c('template',{slot:\"jpeg-error\"},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\tThis sale only accepts DICOM images; JPEG and PNG images are not allowed.\\n\\t\\t\\t\\t\\t\\t\")])],2)}),_c('ast-button',{staticClass:\"close\",nativeOn:{\"click\":function($event){return _vm.clearExcludedFiles('teleconsultation-request')}}},[_c('svg-icon',{attrs:{\"icon\":\"close\"}})],1)],2):_vm._e()]),_c('transition-group',{attrs:{\"name\":\"expand\"}},_vm._l((_vm.imageBatchIds),function(batchId){return _c('upload-item-batch',{key:batchId ? batchId : 'jpeg-form',attrs:{\"uploads\":_vm.getUploadsInBatch(batchId)},on:{\"remove-batch\":_vm.removeBatch,\"study-complete\":_vm.addUploadedBatch}},[(_vm.dicomMatches[batchId])?_c('dicom-matches',{attrs:{\"matches\":_vm.dicomMatches[batchId]}}):_vm._e()],1)}),1)],1):_vm._e()],2):_vm._e(),(_vm.attachments.length)?_c('div',{staticClass:\"upload-section\",staticStyle:{\"max-width\":\"1000px\"}},[_c('h3',[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.attachmentHeading)+\"\\n\\t\\t\\t\"),(!_vm.ids.length && !_vm.canAddImages)?_c('span',[_vm._v(\"\\n\\t\\t\\t\\tto \"+_vm._s(_vm.sale.name)+\" for \"+_vm._s(_vm.translate('consignerStudy'))+\" \"+_vm._s(_vm.saleEntry.patientId)+\".\\n\\t\\t\\t\")]):_vm._e()]),(!_vm.ids.length && !_vm.canAddImages)?_c('p',{staticStyle:{\"margin-bottom\":\"16px\"}},[_c('ast-button',{attrs:{\"type\":\"success\"},nativeOn:{\"click\":function($event){return _vm.selectFromExisting($event)}}},[_c('span',{staticClass:\"plus\"},[_vm._v(\"+\")]),_vm._v(\"\\n\\t\\t\\t\\tAdd a previously uploaded study\\n\\t\\t\\t\")])],1):_vm._e(),_c('div',{staticClass:\"attachments\"},_vm._l((_vm.attachments),function(attachment){return _c('single-upload-form',{key:attachment.reportTemplateImageViewId,staticClass:\"attachment\",attrs:{\"context\":\"teleconsultation-request\",\"allowed-extensions\":attachment.allowedExtensions,\"description\":attachment.name,\"image-id\":attachment.imageId,\"image-view-id\":attachment.imageViewId,\"report-template-image-view-id\":attachment.reportTemplateImageViewId,\"is-required\":attachment.isRequired,\"patient-id\":_vm.attachmentPatientId,\"study-id\":_vm.attachmentStudyId},on:{\"remove-batch\":_vm.removeBatch,\"study-complete\":_vm.addUploadedBatch}})}),1)]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{class:_vm.messageClass,staticStyle:{\"margin\":\"16px 0 0 40px\"}},[_c('svg-icon',{staticStyle:{\"margin-right\":\"4px\"},attrs:{\"icon\":_vm.icon}}),_vm._v(\"\\n\\t\"+_vm._s(_vm.message)+\"\\n\")],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UploadSaleDicomMatches.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UploadSaleDicomMatches.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./UploadSaleDicomMatches.vue?vue&type=template&id=7dcd5da8\"\nimport script from \"./UploadSaleDicomMatches.vue?vue&type=script&lang=js\"\nexport * from \"./UploadSaleDicomMatches.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UploadSale.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UploadSale.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./UploadSale.vue?vue&type=template&id=7f0b4f52&scoped=true\"\nimport script from \"./UploadSale.vue?vue&type=script&lang=js\"\nexport * from \"./UploadSale.vue?vue&type=script&lang=js\"\nimport style0 from \"./UploadSale.vue?vue&type=style&index=0&id=7f0b4f52&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7f0b4f52\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"single-upload-form upload\",class:{ 'is-dragging': _vm.isDragging }},[_c('form',{staticClass:\"upload-form\",on:{\"submit\":function($event){$event.preventDefault();}}},[_c('div',{staticClass:\"upload-info\"},[_c('svg-icon',{staticClass:\"status-icon\",class:_vm.iconClass,attrs:{\"icon\":_vm.iconName,\"fixed\":\"\",\"pulse\":_vm.iconName === 'spinner'}}),_c('p',{staticClass:\"description\"},[_vm._v(_vm._s(_vm.description))]),(_vm.upload)?[_c('p',[_vm._v(_vm._s(_vm.upload.file.name))]),_c('p',[_vm._v(_vm._s(_vm._f(\"fileSize\")(_vm.upload.file.size)))]),(_vm.upload.isFailedUpload)?_c('p',{staticClass:\"error is-danger\"},[(_vm.status.errorMessages && _vm.status.errorMessages.length)?[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.status.errorMessages[0].errorMessage)+\"\\n\\t\\t\\t\\t\\t\")]:[_vm._v(\"\\n\\t\\t\\t\\t\\t\\tUpload failed. Please check your network connection and try again later.\\n\\t\\t\\t\\t\\t\")]],2):_vm._e(),(_vm.upload.sopInstanceUid)?_c('svg-icon',{staticClass:\"cancel\",attrs:{\"icon\":\"close\"},nativeOn:{\"click\":function($event){return _vm.cancelUpload($event)}}}):_vm._e()]:_vm._e(),(!_vm.upload && !_vm.imageId)?[(_vm.isSaleDayMedicationAlert)?_c('em',{staticClass:\"is-danger\"},[_vm._v(\"(Only use this if medication has been administered after 6pm on the day prior to sale)\")]):(_vm.isRequired)?_c('em',{staticClass:\"is-danger\"},[_vm._v(\"(Required)\")]):(!_vm.isRequired)?_c('em',{staticClass:\"is-warning\"},[_vm._v(\"(Optional)\")]):_vm._e(),_c('input',{ref:\"fileInput\",attrs:{\"accept\":_vm.acceptString,\"type\":\"file\",\"disabled\":_vm.upload !== undefined},on:{\"change\":_vm.selectFile}})]:_vm._e()],2),(!_vm.upload && !_vm.imageId)?_c('p',{staticClass:\"drop-or-select-message\"},[_vm._v(\"\\n\\t\\t\\tDrop file here or\\n\\t\\t\\t\"),_c('a',[_vm._v(\"browse\")])]):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { mapState } from 'vuex'\nimport { showAlert } from '@dialogs/MessageDlg.vue'\nimport { showConfirm } from '@dialogs/ConfirmDlg.vue'\nimport { uploadData } from '@services/uploads'\nimport { serializeDate } from '@services/api'\n\nexport default {\n\tname: 'SingleUploadForm',\n\tprops: {\n\t\tallowedExtensions: {\n\t\t\ttype: Array,\n\t\t\trequired: true,\n\t\t},\n\t\tcontext: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\tdescription: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t\timageId: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\timageViewId: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t\treportTemplateImageViewId: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t\tisRequired: {\n\t\t\ttype: Boolean,\n\t\t\trequired: true,\n\t\t},\n\t\tpatientId: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t\tstudyId: {\n\t\t\ttype: String,\n\t\t\trequired: false,\n\t\t},\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tisDragging: false,\n\t\t\tstatus: {},\n\t\t\tpollInterval: undefined,\n\t\t\tuploadData,\n\t\t}\n\t},\n\tcomputed: {\n\t\tupload() {\n\t\t\treturn this.uploadData.uploads.find(\n\t\t\t\tupload =>\n\t\t\t\t\tupload.reportTemplateImageViewId === this.reportTemplateImageViewId &&\n\t\t\t\t\t(!this.context || upload.context === this.context)\n\t\t\t)\n\t\t},\n\t\tacceptString() {\n\t\t\tif (!this.allowedExtensions.length) return '*'\n\t\t\treturn this.allowedExtensions.map(extension => '.' + extension).join(',')\n\t\t},\n\t\tisProcessing() {\n\t\t\treturn (\n\t\t\t\tthis.upload &&\n\t\t\t\tthis.upload.isUploaded &&\n\t\t\t\t!this.upload.isFailedUpload &&\n\t\t\t\tthis.status.fileCount &&\n\t\t\t\tthis.status.completeCount !== this.status.fileCount\n\t\t\t)\n\t\t},\n\t\tisComplete() {\n\t\t\treturn (\n\t\t\t\tthis.upload &&\n\t\t\t\tthis.upload.isUploaded &&\n\t\t\t\t!this.upload.isFailedUpload &&\n\t\t\t\tthis.status.fileCount &&\n\t\t\t\tthis.status.completeCount === this.status.fileCount\n\t\t\t)\n\t\t},\n\t\ticonName() {\n\t\t\tif (this.imageId) return 'check-circle'\n\t\t\tif (this.upload) {\n\t\t\t\tif (this.upload.isUploading) return 'spinner'\n\t\t\t\tif (this.isProcessing) return 'spinner'\n\t\t\t\tif (this.upload.isFailedUpload) return 'exclamation-circle'\n\t\t\t\tif (this.isComplete) return 'check-circle'\n\t\t\t\tif (this.upload.isUploaded) return 'spinner'\n\t\t\t\treturn 'clock-o'\n\t\t\t}\n\t\t\tif (this.isSaleDayMedicationAlert) return 'exclamation-triangle'\n\t\t\tif (this.isRequired) return 'file-upload'\n\t\t\treturn 'file-upload'\n\t\t},\n\t\ticonClass() {\n\t\t\tif (this.imageId) return 'is-success'\n\t\t\tif (this.upload) {\n\t\t\t\tif (this.upload.isUploading) return 'is-muted'\n\t\t\t\tif (this.isProcessing) return 'is-muted'\n\t\t\t\tif (this.upload.isFailedUpload) return 'is-danger'\n\t\t\t\tif (this.isComplete) return 'is-success'\n\t\t\t\tif (this.upload.isUploaded) return 'is-muted'\n\t\t\t\treturn 'is-muted'\n\t\t\t}\n\t\t\tif (this.isRequired) return 'is-danger'\n\t\t\treturn 'is-muted'\n\t\t},\n\t\tisSaleDayMedicationAlert(){\n\t\t\treturn (this.description === 'Sale Day Medication Alert')\n\t\t}\n\t},\n\twatch: {\n\t\tupload: {\n\t\t\thandler(upload, previousUpload) {\n\t\t\t\tif (upload && !previousUpload) {\n\t\t\t\t\tthis.getUploadStatus()\n\t\t\t\t\tthis.pollInterval = setInterval(this.getUploadStatus, 2000)\n\t\t\t\t}\n\t\t\t\tif (previousUpload && !upload) {\n\t\t\t\t\tclearInterval(this.pollInterval)\n\t\t\t\t}\n\t\t\t},\n\t\t\timmediate: true,\n\t\t},\n\t\t'status.study': function() {\n\t\t\tif (!this.isComplete) return\n\t\t\tconst imageId = this.status.study.imageIds.length ? this.status.study.imageIds[0] : null\n\t\t\tthis.$emit('study-complete', { ...this.upload, ...this.status.study, imageId })\n\t\t},\n\t},\n\tmounted() {\n\t\tthis.toggleDropListeners(this.$el, true)\n\t},\n\tdestroyed() {\n\t\tclearInterval(this.pollInterval)\n\t},\n\tmethods: {\n\t\tasync getUploadStatus() {\n\t\t\tif (this.upload && (this.isComplete || this.upload.isFailedUpload)) {\n\t\t\t\tclearInterval(this.pollInterval)\n\t\t\t\treturn\n\t\t\t}\n\t\t\tif (this.upload && this.upload.isUploaded) {\n\t\t\t\tthis.status = await uploadData.getUploadStatus(this.upload.batchId)\n\t\t\t\tif (this.status.errorCount > 0) uploadData.UPDATE_UPLOAD({ ...this.upload, isFailedUpload: true })\n\t\t\t}\n\t\t},\n\t\tasync cancelUpload() {\n\t\t\tif (await showConfirm('Are you sure you want to cancel this file?')) {\n\t\t\t\tthis.$emit('remove-batch', {\n\t\t\t\t\t...this.upload,\n\t\t\t\t\t...this.status.study,\n\t\t\t\t\trequireConfirmation: false,\n\t\t\t\t})\n\n\t\t\t\tthis.status = {}\n\t\t\t}\n\t\t},\n\t\ttoggleDropListeners(dropTarget, isAdding) {\n\t\t\tconst addOrRemove = isAdding ? 'addEventListener' : 'removeEventListener'\n\t\t\tdropTarget[addOrRemove]('dragover', this.setIsDragging)\n\t\t\tdropTarget[addOrRemove]('dragenter', this.setIsDragging)\n\t\t\tdropTarget[addOrRemove]('dragend', this.setIsNotDragging)\n\t\t\tdropTarget[addOrRemove]('dragleave', this.setIsNotDragging)\n\t\t\tdropTarget[addOrRemove]('drop', this.dropFile)\n\t\t\tif (isAdding)\n\t\t\t\tthis.$once('hook:beforeDestroy', () => {\n\t\t\t\t\tthis.toggleDropListeners(dropTarget, false)\n\t\t\t\t})\n\t\t},\n\t\ttoggleIsDragging(e, isDragging) {\n\t\t\tthis.isDragging = isDragging\n\t\t\te.preventDefault()\n\t\t\te.stopPropagation()\n\t\t},\n\t\tsetIsDragging(e) {\n\t\t\tthis.toggleIsDragging(e, true)\n\t\t},\n\t\tsetIsNotDragging(e) {\n\t\t\tthis.toggleIsDragging(e, false)\n\t\t},\n\t\t/**\n\t\t * Handles a change event on the file input\n\t\t *\n\t\t * @param {Object} e - change event\n\t\t * @param {Object} e.target - the target element\n\t\t */\n\t\tasync selectFile({ target }) {\n\t\t\tif (!target.files.length) return\n\t\t\tawait this.queueUpload(target.files)\n\t\t},\n\t\t/**\n\t\t * Handles a drop event on the modal\n\t\t *\n\t\t * @param {Object} e - drop event\n\t\t */\n\t\tasync dropFile(e) {\n\t\t\te.preventDefault()\n\t\t\te.stopPropagation()\n\t\t\tthis.isDragging = false\n\t\t\tawait this.queueUpload(e.dataTransfer.files)\n\t\t},\n\t\tasync queueUpload(files: FileList) {\n\t\t\tif (this.validateExtension(files)) {\n\t\t\t\tlet study: IUploadStudy = {\n\t\t\t\t\t// set the patientId, patientName, and ownerName to the same value;\n\t\t\t\t\t// this may need be changed if this component is ever used for non-sale\n\t\t\t\t\t// attachments\n\t\t\t\t\tpatientId: this.patientId,\n\t\t\t\t\tpatientName: this.patientId,\n\t\t\t\t\townerName: this.patientId,\n\t\t\t\t\taccessionNumber: this.patientId,\n\t\t\t\t\tstudyDateTime: serializeDate(new Date())\n\t\t\t\t}\n\t\t\t\tif(this.studyId){\n\t\t\t\tlet studies = await this.$api.viewer.getStudy({ ids: [this.studyId] }, false)\n\t\t\t\tstudy.studyInstanceUid = studies.studies[0].studyUid\n\t\t\t}\n\t\t\t\tawait uploadData.queueFilesForUpload({\n\t\t\t\t\tcontext: this.context,\n\t\t\t\t\tallowAttachments: true,\n\t\t\t\t\tfiles: [files[0]],\n\t\t\t\t\tdescription: this.description,\n\t\t\t\t\timageViewId: this.imageViewId,\n\t\t\t\t\treportTemplateImageViewId: this.reportTemplateImageViewId,\n\t\t\t\t})\n\t\t\t\tawait uploadData.startUpload(this.context, study)\n\t\t\t} else {\n\t\t\t\tawait showAlert(`This file type is not allowed for ${this.description} (${this.allowedExtensions.join(', ')}).`)\n\t\t\t}\n\t\t},\n\t\tvalidateExtension(files) {\n\t\t\tconst getExtension = file =>\n\t\t\t\tfile.name\n\t\t\t\t\t.split('.')\n\t\t\t\t\t.pop()\n\t\t\t\t\t.toLowerCase()\n\t\t\tconst isAllowedExtension = file => this.allowedExtensions.includes(getExtension(file))\n\t\t\t// should only be one file, but check entire FileList to be safe\n\t\t\t// FileList is not an array, so can't do files.every or files.some\n\t\t\tfor (let i = 0; i < files.length; i++) {\n\t\t\t\tif (!isAllowedExtension(files[i])) return false\n\t\t\t}\n\t\t\treturn true\n\t\t},\n\t},\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleUploadForm.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleUploadForm.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./SingleUploadForm.vue?vue&type=template&id=031980cc\"\nimport script from \"./SingleUploadForm.vue?vue&type=script&lang=ts\"\nexport * from \"./SingleUploadForm.vue?vue&type=script&lang=ts\"\nimport style0 from \"./SingleUploadForm.vue?vue&type=style&index=0&id=031980cc&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UploadSale.vue?vue&type=style&index=0&id=7f0b4f52&prod&lang=scss&scoped=true\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StudyCard.vue?vue&type=style&index=0&id=b88f63a8&prod&lang=scss&scoped=true\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"study-card\"},[(_vm.showDetails)?_c('div',{staticClass:\"study-details\"},[(_vm.isLoading)?[_c('svg-icon',{attrs:{\"icon\":\"spinner\",\"pulse\":\"\",\"fixed\":\"\"}})]:[_c('div',{staticClass:\"status-icon\"},[_c('svg-icon',{class:_vm.iconClass,attrs:{\"icon\":_vm.icon,\"fixed\":\"\",\"pulse\":_vm.icon === 'spinner'}})],1),_c('div',[(_vm.saleAttachmentDescription)?[_c('p',[_c('strong',[_vm._v(_vm._s(_vm.saleAttachmentDescription))])])]:[(_vm.patientName)?_c('p',[_c('strong',[_vm._v(_vm._s(_vm.patientName))])]):_vm._e(),(_vm.patientId)?_c('p',[_vm._v(\"ID: \"+_vm._s(_vm.patientId))]):_vm._e()],(_vm.uploads && _vm.uploads.length === 1 && _vm.uploads[0].isAttachment)?_c('p',[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.uploads[0].file.name)+\"\\n\\t\\t\\t\\t\")]):_vm._e(),_c('p',{staticClass:\"study-date\"},[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm._f(\"localizeDate\")(_vm.studyDateTime,{ forceUTC: false, showTime: false }))+\"\\n\\t\\t\\t\\t\")]),(_vm.imageData)?_c('p',[_vm._v(_vm._s(_vm.imageAndAttachmentCounts))]):_vm._e(),(_vm.uploads && _vm.uploads.length)?_c('p',[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.uploads.length)+\" file\"+_vm._s(_vm.uploads.length > 1 ? 's' : '')+\" (\"+_vm._s(_vm._f(\"fileSize\")(_vm.totalSize))+\")\\n\\t\\t\\t\\t\\t\"),(_vm.study.modality)?_c('span',{staticClass:\"modality\"},[_vm._v(_vm._s(_vm.modality))]):_vm._e()]):_vm._e()],2)]],2):_vm._e(),_vm._t(\"default\"),(_vm.progressPercent != null && _vm.progressPercent < 100)?_c('div',{staticClass:\"study-progress\"},[_c('p',{staticClass:\"progress-status\"},[_vm._v(_vm._s(_vm.progressStatus)+\" …\")]),_c('progress-bar',{attrs:{\"width\":_vm.progressPercent}}),_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.progressPercent)+\"%\\n\\t\")],1):_vm._e(),(_vm.showCloseButton && !_vm.isLoading)?_c('ast-button',{staticClass:\"close\",nativeOn:{\"click\":function($event){$event.stopPropagation();return _vm.$emit('close')}}},[_c('svg-icon',{attrs:{\"icon\":\"close\"}})],1):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StudyCard.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StudyCard.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./StudyCard.vue?vue&type=template&id=b88f63a8&scoped=true\"\nimport script from \"./StudyCard.vue?vue&type=script&lang=js\"\nexport * from \"./StudyCard.vue?vue&type=script&lang=js\"\nimport style0 from \"./StudyCard.vue?vue&type=style&index=0&id=b88f63a8&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"b88f63a8\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleUploadForm.vue?vue&type=style&index=0&id=031980cc&prod&lang=scss\""],"sourceRoot":""}