{"version":3,"sources":["webpack:///./src/components/SignaturePad.vue?90b6","webpack:///./src/components/SignaturePad.vue?a7a6","webpack:///./node_modules/@babel/runtime/helpers/esm/readOnlyError.js","webpack:///src/components/SignaturePad.vue","webpack:///./src/components/SignaturePad.vue?efe2","webpack:///./src/components/SignaturePad.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_m","_v","_s","description","_e","on","$event","setBackground","save","clear","successMessage","noAlert","errorMessage","staticRenderFns","_readOnlyError","name","Error","components","props","model","Object","String","Array","backgroundImage","useLandscape","Boolean","w","Number","h","signatureLabel","changeBackground","objectName","recordId","portal","filename","upload","data","canvas","fileSelector","maxWidth","maxHeight","ready","mounted","cssVars","wrapper","querySelector","document","getElementById","addEventListener","signaturePad","SignaturePad","backgroundColor","getImageDataURL","beforeDestroy","methods","r","style","setProperty","drawBackground","canvasWidth","canvasHeight","ctx","translate","scale","img","width","height","rotate","Math","PI","drawImage","getMimeType","signature","resizeCanvas","offsetWidth","ratio","offsetHeight","getContext","fReader","onloadend","e","target","readyState","FileReader","DONE","uint","forEach","alert","file","value","test","navigator","userAgent","type","fromDataURL","dataURL","readAsArrayBuffer","slice","undo","pop","fromData","dataURLToBlob","uInt8Array","i","raw","charCodeAt","Blob","download","fd","object_name","record_id","console","log","response","fileName","preventDefault","stopPropagation","isEmpty","$emit","Image","that","onload","src","url","component","VAlert","VBtn","VSpacer","VToolbar"],"mappings":"kHAAA,yBAAmd,EAAG,G,2CCAtd,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,YAAY,CAACF,EAAG,MAAM,CAACE,YAAY,gBAAgBC,MAAM,CAAC,GAAK,kBAAkB,CAACP,EAAIQ,GAAG,GAAGJ,EAAG,MAAM,CAACE,YAAY,yBAAyB,CAAEN,EAAe,YAAEI,EAAG,MAAM,CAACE,YAAY,eAAe,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ACArI,EACAsB,GACA,EACA,KACA,KACA,MAIa,aAAA+G,EAAiB,QAQhC,IAAkBA,EAAW,CAACC,SAAA,KAAOC,OAAA,KAAKC,UAAA,KAAQC,WAAA,Q","file":"js/chunk-c5aa8d00.c29ac9a9.js","sourcesContent":["import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SignaturePad.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SignaturePad.vue?vue&type=style&index=0&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"main-pad\"},[_c('div',{staticClass:\"signature-pad\",attrs:{\"id\":\"signature-pad\"}},[_vm._m(0),_c('div',{staticClass:\"signature-pad--footer\"},[(_vm.description)?_c('div',{staticClass:\"description\"},[_vm._v(_vm._s(_vm.description))]):_vm._e(),_c('div',{staticClass:\"signature-pad--actions\"},[_c('form',{attrs:{\"action\":\"#\",\"enctype\":\"multipart/form-data\"}},[_c('label',{attrs:{\"for\":\"fileupload\",\"id\":\"buttonlabel\"}},[(_vm.changeBackground)?_c('v-btn',{staticClass:\"ma-2\",attrs:{\"color\":\"info\"},on:{\"click\":function($event){return _vm.setBackground()}}},[_vm._v(\"Choose a background image\")]):_vm._e()],1),_c('input',{attrs:{\"type\":\"file\",\"id\":\"fileupload\",\"accept\":\"image/*\"}})]),_c('v-toolbar',{attrs:{\"flat\":\"\"}},[_c('v-spacer'),_c('v-btn',{staticClass:\"ma-2\",attrs:{\"color\":\"success\"},on:{\"click\":_vm.save}},[_vm._v(\"Save\")]),_c('v-btn',{staticClass:\"ma-2\",attrs:{\"color\":\"warning\"},on:{\"click\":function($event){return _vm.clear()}}},[_vm._v(\"Clear\")])],1)],1)]),(_vm.successMessage != '' && !_vm.noAlert)?_c('v-alert',{staticClass:\"ma-4\",attrs:{\"dismissible\":\"\",\"timeout\":\"3000\",\"type\":\"success\"}},[_vm._v(\" \"+_vm._s(_vm.successMessage)+\" \")]):_vm._e(),(_vm.errorMessage != '' && _vm.errorMessage)?_c('v-alert',{staticClass:\"ma-4\",attrs:{\"timeout\":\"3000\",\"dismissible\":\"\",\"type\":\"error\"}},[_vm._v(\" \"+_vm._s(_vm.errorMessage)+\" \")]):_vm._e()],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"signature-pad--body\"},[_c('canvas',[_vm._v(\" Update your browser to support the canvas element! \")])])}]\n\nexport { render, staticRenderFns }","export default function _readOnlyError(name) {\n throw new Error(\"\\\"\" + name + \"\\\" is read-only\");\n}","\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!./SignaturePad.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!./SignaturePad.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SignaturePad.vue?vue&type=template&id=a1e40abc&\"\nimport script from \"./SignaturePad.vue?vue&type=script&lang=js&\"\nexport * from \"./SignaturePad.vue?vue&type=script&lang=js&\"\nimport style0 from \"./SignaturePad.vue?vue&type=style&index=0&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\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAlert } from 'vuetify/lib/components/VAlert';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\ninstallComponents(component, {VAlert,VBtn,VSpacer,VToolbar})\n"],"sourceRoot":""}