{"version":3,"sources":["webpack:///./src/components/Fields/PDFUploader/examples/index.vue?0a2a","webpack:///src/components/Fields/PDFUploader/examples/index.vue","webpack:///./src/components/Fields/PDFUploader/examples/index.vue?70f3","webpack:///./src/components/Fields/PDFUploader/examples/index.vue","webpack:///./src/components/Fields/PDFUploader/index.vue?ac4f","webpack:///src/components/Fields/PDFUploader/index.vue","webpack:///./src/components/Fields/PDFUploader/index.vue?3ab9","webpack:///./src/components/Fields/PDFUploader/index.vue","webpack:///./src/components/Fields/PDFUploader/index.vue?a909"],"names":["render","_vm","this","_h","$createElement","_c","_self","style","padding","_v","attrs","documentsUpdated","staticRenderFns","components","PDFUploader","methods","console","log","component","ref","staticClass","multiple","model","value","callback","$$v","attachments","expression","_t","_e","Array","isArray","pdfs","length","_s","position","display","flexWrap","width","_l","pdf","index","_g","key","Object","assign","pdfOnClick","cursor","alignItems","height","overflow","background","palette","tile","borderRadius","margin","boxShadow","click","staticStyle","base64pdf","on","$event","pageCount","page","refInFor","opacity","loading","transition","top","right","deleteAttachment","PDF","props","update","type","Function","default","updateV2","Boolean","data","tileShadow","previews","uploadDescription","watch"],"mappings":"8HAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,MAAM,CAAGC,QAAS,gBAAkB,CAACH,EAAG,MAAM,CAACA,EAAG,KAAK,CAACJ,EAAIQ,GAAG,kBAAkBJ,EAAG,cAAc,CAACK,MAAM,CAAC,OAAST,EAAIU,qBAAqB,MAClPC,EAAkB,G,YCYtB,GACEC,WAAY,CACVC,YAAJ,QAEEC,QAAS,CACPJ,iBADJ,YACA,kBACMK,QAAQC,IAAI,mBAAoB,CAAtC,iBCnB4X,I,YCOxXC,EAAY,eACd,EACAlB,EACAY,GACA,EACA,KACA,KACA,MAIa,aAAAM,E,2CClBf,IAAIlB,EAAS,WAAa,IAAIC,EAAIC,KAASC,E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IIvD,SAAU,CACRqD,KAAMI,QACNF,SAAS,GAEX9B,WAAY,CACV4B,KAAM,CAACI,QAASH,UAChBC,SAAS,IAGbG,KAtBF,WAuBI,MAAO,CACL3B,QAAS,CACPC,KAAM,OACN2B,WAAY,WAEdtD,YAAa,GACbuD,SAAU,GACVjD,KAAM,GACNkC,SAAS,EACTC,YAAY,EACZe,kBAAmB,GACnBpB,UAAW,KAGf/C,QAAS,CACP,iBADJ,SACA,2KACA,yBACA,aAEA,uBACA,MACA,QANA,OASA,WACA,0BAEA,iBAGA,mBAEA,uBAjBA,+CAoBEoE,MAAO,CACL,YADJ,WACA,qKACA,8BACA,4BAGA,MACA,WANA,oBAOA,uDAPA,uBAQA,+BACA,YACA,eAVA,0BAeA,gBAfA,4BAiBA,uDAjBA,wBAkBA,uDACA,YACA,eApBA,2BAyBA,kBAzBA,YA4BA,cA5BA,kCA6BA,yBACA,aAEA,uBACA,MACA,QAlCA,QA0CA,IAJA,UACA,cAvCA,WA0CA,GACA,WACA,mBAEA,0BACA,qBACA,qBAIA,0CACA,kBAGA,4BAEA,gBAhBA,wBAoBA,uBACA,eACA,KAEA,8BACA,iCAGA,YACA,cAvEA,iDCvL6W,I,wBCQzWjE,EAAY,eACd,EACAlB,EACAY,GACA,EACA,KACA,KACA,MAIa,OAAAM,E,kECnBf,yBAAojB,EAAG","file":"js/_guides.PDFUploader.fc4020c1.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{style:({ padding: '200px 100px' })},[_c('div',[_c('h4',[_vm._v(\"PDF Uploader\")]),_c('PDFUploader',{attrs:{\"update\":_vm.documentsUpdated}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\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!./index.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!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=0353416a&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"uploader\",staticClass:\"PDFUploader\",attrs:{\"pdf-uploader\":\"\"}},[_c('b-upload',{attrs:{\"multiple\":_vm.multiple,\"drag-drop\":\"\",\"expanded\":\"\",\"accept\":\"application/pdf\"},model:{value:(_vm.attachments),callback:function ($$v) {_vm.attachments=$$v},expression:\"attachments\"}},[_c('section',{staticClass:\"section\"},[_c('div',{staticClass:\"content has-text-centered\"},[_c('p',[_c('b-icon',{attrs:{\"icon\":\"upload\",\"size\":\"is-large\"}})],1),_vm._t(\"default\"),(_vm.multiple)?_c('p',[_vm._v(\"Drop the PDFs here or click to choose.\")]):_vm._e(),(!_vm.multiple)?_c('div',[(Array.isArray(_vm.pdfs) && _vm.pdfs.length === 1)?_c('p',[_vm._v(\" To replace the selected PDF, Drop another PDF here or click to choose. \")]):_c('p',[_vm._v(\"Drop a PDF here or click to choose.\")])]):_vm._e()],2)])]),(_vm.multiple)?_c('div',{style:({ padding: '8px' })},[_vm._v(\" \"+_vm._s(_vm.attachments.length)+\" PDF's selected for upload \")]):_vm._e(),_c('div',{style:({ position: 'relative', display: 'flex', flexWrap: 'wrap', width: '100%' })},[_vm._l((_vm.pdfs),function(pdf,index){return _c('div',_vm._g({key:index,style:(Object.assign({}, (typeof _vm.pdfOnClick === 'function' ? { cursor: 'pointer' } : {}),\n {position: 'relative',\n display: 'flex',\n alignItems: 'center',\n width: '200px',\n height: '200px',\n overflow: 'hidden',\n background: _vm.palette.tile,\n borderRadius: '4px',\n margin: '10px',\n boxShadow: (\"0 0 4px 1px \" + (_vm.palette.tileShadow))}))},\n typeof _vm.pdfOnClick === 'function'\n ? {\n click: function () {\n _vm.pdfOnClick({ index: index, pdf: pdf })\n }\n }\n : {}\n ),[_c('PDF',{staticStyle:{\"display\":\"none\"},attrs:{\"src\":_vm.base64pdf},on:{\"num-pages\":function($event){_vm.pageCount = new Array($event)}}}),_vm._l((_vm.pageCount),function(page,index){return _c('PDF',{key:index,ref:'pdf-' + index,refInFor:true,style:({\n margin: 'auto',\n width: ((100 * 1) + \"%\"),\n opacity: _vm.loading ? 0 : 1,\n transition: _vm.transition ? '.2s opacity' : ''\n }),attrs:{\"src\":pdf,\"scale\":1,\"resize\":true,\"page\":index + 1}})}),_c('button',{staticClass:\"delete is-medium\",style:({\n position: 'absolute',\n top: '10px',\n right: '10px'\n }),attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.deleteAttachment(index)}}})],2)}),_c('b-loading',{attrs:{\"is-full-page\":false},model:{value:(_vm.loading),callback:function ($$v) {_vm.loading=$$v},expression:\"loading\"}})],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\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!./index.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!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=161b617a&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&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","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.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/dist/cjs.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!./index.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.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/dist/cjs.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!./index.vue?vue&type=style&index=0&lang=scss&\""],"sourceRoot":""}