{"version":3,"sources":["webpack:///./src/views/document/DocumentPreview.vue?bad1","webpack:///./src/views/document/DocumentPreview.vue","webpack:///src/views/document/DocumentPreview.vue","webpack:///./src/views/document/DocumentPreview.vue?ed49","webpack:///./src/views/document/DocumentPreview.vue?fdce"],"names":["render","_vm","this","_c","_self","attrs","alertType","error","model","value","hasError","callback","$$v","expression","domProps","_s","currentError","isLoading","_v","loadingText","_e","staticClass","pdfSrc","staticRenderFns","mapActions","createNamespacedHelpers","name","mixins","baseComponentMixin","downloadableMixin","principalMixin","components","BaseAlert","ProgressDisplay","props","record","open","type","Boolean","default","isViewOnly","data","methods","downloadPdfFileVersion","downloadCompoundAsPdf","downloadEmptyRecordWipAsPdf","downloadFileWipAsPdf","downloadFileVersionAsPdf","downloadFileEditAsPdf","downloadImageFileVersionAsPdf","_this$record$id","_this$record","_this$record$version","_this$record2","_this$record$recordTy","_this$record3","clearError","canPreview","undefined","id","version","recordTypeId","response","recordType","FILE","localFileExists","payload","downloadOptions","AnnotationOptionQueryModel","isCheckedOutByPrincipal","principal","RECORD","DOCUMENT","createCompoundDocumentDownloadPayload","blob","createBlob","window","URL","createObjectURL","console","log","$options","e","computed","recordId","_this$record$id2","_this$record4","preview","watch","newValue","component"],"mappings":"kHAAA,W,yCCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,aAAa,CAACE,MAAM,CAAC,aAAc,EAAM,KAAOJ,EAAIK,UAAUC,OAAOC,MAAM,CAACC,MAAOR,EAAIS,SAAUC,SAAS,SAAUC,GAAMX,EAAIS,SAASE,GAAKC,WAAW,aAAa,CAACV,EAAG,OAAO,CAACW,SAAS,CAAC,UAAYb,EAAIc,GAAGd,EAAIe,mBAAoBf,EAAIgB,UAAWd,EAAG,mBAAmB,CAACF,EAAIiB,GAAG,IAAIjB,EAAIc,GAAGd,EAAIkB,aAAa,OAAOlB,EAAImB,KAAOnB,EAA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kB,SACA,KAAApB,qBAAAoB,OACA,CACA,MAAAA,EAAA,CACAP,KACAC,UACAO,gBAAA,MAEAL,QAAA,KAAAb,8BAAAiB,GAEA,MAEA,KAAAH,OAAAQ,OAAA,CACA,MAAAL,EAAA,CACAP,KACAC,QAAA,EACAO,gBAAAC,kBAEAN,QAAA,KAAAjB,4BAAAqB,GACA,MAEA,KAAAH,OAAAS,SACAV,QAAA,KAAAlB,sBACA,KAAA6B,sCACAd,GACA,GACA,GACA,GACA,GACA,GACA,IAGA,MAIA,IAAAG,EAAA,OACA,IAAAA,EAAArB,KAAA,OAEA,MAAAiC,EAAAC,eAAAb,EAAArB,MAEA,KAAAnB,OAAAsD,OAAAC,IAAAC,gBAAAJ,GAEAK,QAAAC,IACA,KAAAC,SAAAvD,KAAA,0BACA,KAAAJ,QAEA,MAAA4D,GACAH,QAAAxE,MAAA2E,GACA,KAAAlE,aAAAkE,EACA,QACA,KAAAjE,WAAA,KAIAkE,SAAA,CAKAC,WAAA,IAAAC,EAAAC,EACA,eAAAD,EAAA,QAAAC,EAAA,KAAAnD,cAAA,IAAAmD,OAAA,EAAAA,EAAA3B,UAAA,IAAA0B,KAAA,GAOAlE,cACA,oDAAAiE,gBAOA3B,aACA,OAAAA,eAAA,KAAAtB,UAGA,gBACA4C,QAAAC,IAAA,KAAAC,SAAAvD,KAAA,4BAAA0D,UAEA,KAAAhD,YACA,KAAAmD,WAGAC,MAAA,CAMA,eAAAC,GACAV,QAAAC,IACA,QAAAC,SAAAvD,0CAAA+D,IACA,cAAArD,MAGA,KAAAA,YACA,KAAAmD,WAGA,WAAAE,GACAV,QAAAC,IACA,QAAAC,SAAAvD,uCAAA+D,IACA,cAAArD,MAGA,KAAAA,YACA,KAAAmD,aCnOuW,I,wBCQnWG,EAAY,eACd,EACA1F,EACAuB,GACA,EACA,KACA,KACA,MAIa,aAAAmE,E","file":"js/chunk-a997ba0a.04e8d946.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DocumentPreview.vue?vue&type=style&index=0&id=18a9c790&prod&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('base-alert',{attrs:{\"dismissible\":false,\"type\":_vm.alertType.error},model:{value:(_vm.hasError),callback:function ($$v) {_vm.hasError=$$v},expression:\"hasError\"}},[_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.currentError)}})]),(_vm.isLoading)?_c('progress-display',[_vm._v(\" \"+_vm._s(_vm.loadingText)+\" \")]):_vm._e(),(!_vm.isLoading)?_c('iframe',{staticClass:\"iframeClass\",attrs:{\"src\":_vm.pdfSrc}},[_vm._v(\"Couldn't preview file\")]):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n
\r\n \r\n \r\n\r\n \r\n
\r\n {{ loadingText }}\r\n \r\n\r\n \r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DocumentPreview.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DocumentPreview.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./DocumentPreview.vue?vue&type=template&id=18a9c790\"\nimport script from \"./DocumentPreview.vue?vue&type=script&lang=js\"\nexport * from \"./DocumentPreview.vue?vue&type=script&lang=js\"\nimport style0 from \"./DocumentPreview.vue?vue&type=style&index=0&id=18a9c790&prod&lang=css\"\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"],"sourceRoot":""}