{"version":3,"sources":["webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFFieldCheckbox.vue?2393","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFTextSubfield.vue?8dd0","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFFieldPage.vue?23d8","webpack:///./node_modules/client-website-ts-library/types/Forms/FormConstructorData.ts","webpack:///./node_modules/client-website-ts-library/types/Forms/FormField.ts","webpack:///./node_modules/client-website-ts-library/types/Forms/FormValue.ts","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFField.vue","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFFieldPage.vue","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFSignatureField.vue","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFSignatureField.vue?35ab","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFSignatureField.vue?974c","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFSignatureField.vue?4886","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFSubfield.vue","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFTextSubfield.vue","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFTextSubfield.vue?e2b9","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFTextSubfield.vue?ced7","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFTextSubfield.vue?d44c","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFFieldCheckbox.vue","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFFieldCheckbox.vue?7e96","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFFieldCheckbox.vue?4f83","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFFieldCheckbox.vue?1677","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFSubfield.vue?fac0","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFSubfield.vue?61b8","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFSubfield.vue?5f18","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFFieldPage.vue?c257","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFFieldPage.vue?a1f4","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFFieldPage.vue?8fda","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFField.vue?5ca0","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFField.vue?2f58","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFField.vue?9b9e","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFSubfield.vue?dd35","webpack:///./src/components/Forms/FieldTypes/PDFs/FormGraphicalPDFSignatureField.vue?4cf7"],"names":["FormConstructorData","constructor","items","ClientWebsiteId","Config","Website","Id","this","Items","FormFieldType","FormValue","key","value","Key","Value","render","_vm","_c","_self","_setupProxy","staticClass","class","hasErrors","def","TypeName","_l","PageDefs","page","Number","attrs","formType","formContext","getSigFieldsForPage","errors","on","handleSubfieldChanged","staticRenderFns","style","Width","Height","ref","Fields","field","fieldKey","getErrorsForSubfield","sigFields","sig","Left","Bottom","previewWidth","previewHeight","openModal","modalActive","mode","$event","setMode","_v","directives","name","rawName","expression","canvasHeight","typedValue","length","canvasWidth","typedSelectedFont","domProps","target","composing","typedAvailableFonts","font","idx","_s","canvasHasContent","beginDrawing","endDrawing","trace","clearAll","closeModal","FormGraphicalPDFSignatureField","Vue","canvasScale","imageScale","ctx","isDrawing","drawnPoints","lastPoint","mounted","cnv","$refs","getContext","fillStyle","textAlign","lineWidth","lineCap","clearCanvas","clearRect","drawTypedText","fontSize","Math","floor","textMeasurement","maxWidth","i","measureText","width","round","console","log","fillText","transposeCanvas","img","previewImg","src","toDataURL","toBlob","blob","$emit","e","beginPath","point","x","offsetX","y","offsetY","push","moveTo","lineTo","stroke","__decorate","Prop","Component","component","Type","parentKey","handleChanged","_e","error","SubfieldKey","Message","isMultiline","inputType","isCombed","autocompleteType","Array","isArray","_i","$$a","$$el","$$c","checked","$$v","$$i","concat","slice","_q","FormGraphicalPDFTextSubfield","loweredKey","toLowerCase","getValue","setValue","Flags","indexOf","Format","isDate","isEmail","isTel","FormGraphicalPDFFieldCheckbox","FormGraphicalPDFSubfield","data","components","FormGraphicalPDFFieldPage","image","API","Forms","GetPDFFieldPage","then","imageData","blobData","URL","createObjectURL","filter","default","FormGraphicalPDFField","FieldId","kvps","Object","keys","map","File","Blob","file","lastModifiedDate","Date","JSON","stringify","SignatureFields","f","PageNumber","ErrorList"],"mappings":"uIAAA,W,oFCAA,W,2DCAA,W,wHCGA,MAAMA,EAIJC,YAAYC,GAHL,KAAAC,gBAA0BC,OAAOC,QAAQC,GAI9CC,KAAKC,MAAQN,GAAS,I,ICNrBO,E,WAAL,SAAKA,GAEDA,sBACAA,wBACAA,oBACAA,8BACAA,8BACAA,oCACAA,kCACAA,gDACAA,kCACAA,sBACAA,iCACAA,wCAbJ,CAAKA,MAAa,K,wCCClB,MAAMC,EAIFT,YAAYU,EAAaC,GACrBL,KAAKM,IAAMF,EACXJ,KAAKO,MAAQF,K,yCCTrB,IAAIG,EAAS,WAAkB,IAAIC,EAAIT,KAAKU,EAAGD,EAAIE,MAAMD,GAAUD,EAAIE,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,aAAaC,MAAM,CAAC,CAAC,aAAcL,EAAIM,WAAY,eAAiBN,EAAIO,IAAIC,WAAW,CAACP,EAAG,MAAM,CAACG,YAAY,aAAaJ,EAAIS,GAAIT,EAAIO,IAAIG,UAAU,SAASC,GAAM,OAAOV,EAAG,4BAA4B,CAACN,IAAIgB,EAAKC,OAAOC,MAAM,CAAC,YAAYb,EAAIc,SAAS,eAAed,EAAIe,YAAY,YAAYf,EAAIO,IAAI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sB,GAEjB,gBACX,OAAOL,KAAK0B,OAAO8B,OAAS,EAGpB,aACR,MAAO,SAASxD,KAAKgB,IAAIiK,QAG3BzB,WACE,MAAM0B,EAAqCC,OAAOC,KAAKpL,KAAKK,OACzDgL,IAAKjL,IAAD,CAAYE,IAAKF,EAAKG,MAAOP,KAAKK,MAAMD,MAC5CiL,IAAKnB,IACJ,GAAIA,aAAgBoB,KAClB,OAAOpB,EAGT,GAAIA,EAAK3J,iBAAiBgL,KAAM,CAC9B,MAAMC,EAAOtB,EAAK3J,MAKlB,OAHAiL,EAAKC,iBAAmB,IAAIC,KAC5BF,EAAKrI,KAAO,GAAGnD,KAAKgB,IAAIV,OAAO4J,EAAK5J,MAE7BkL,EAGT,OAAOG,KAAKC,UAAU1B,KAG1B,MAAO,CACL5J,IAAKN,KAAKgB,IAAIV,IACdC,MAAO2K,GAIXzB,SAASpJ,GACHA,EAAME,iBAAiBJ,SACzBH,KAAKK,MAAQA,EAAME,OAIvBqB,sBAAsBsI,GACnBlK,KAAKK,MAAuB6J,EAAKlJ,IAAIV,KAAO4J,EAAK7J,MAGpDoB,oBAAoBL,GAClB,OAAOpB,KAAKgB,IAAI6K,gBAAgBf,OAAQgB,GAAMA,EAAEC,aAAe3K,KA1DjEsG,GADCC,kBACD,+BAGAD,GADCC,kBACD,kCAGAD,GADCC,kBACD,0BAGAD,GADCC,kBACD,6BAXmBqD,EAAqB,GANzCpD,eAAU,CACTuC,WAAY,CACV6B,iBACA5B,gCAGiBY,WCvBib,ICOlc,EAAY,eACd,EACAxK,EACAqB,GACA,EACA,KACA,KACA,MAIa,e,yFClBf,W,yDCAA,W","file":"js/chunk-faae865e.cfa996d4.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!./FormGraphicalPDFFieldCheckbox.vue?vue&type=style&index=0&id=308d011c&prod&scoped=true&lang=css&\"","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!./FormGraphicalPDFTextSubfield.vue?vue&type=style&index=0&id=33169298&prod&scoped=true&lang=css&\"","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!./FormGraphicalPDFFieldPage.vue?vue&type=style&index=0&id=76a3570e&prod&scoped=true&lang=css&\"","import { Config } from \"../../services/Config\";\r\nimport { ContextItem } from \"../Context\";\r\n\r\nclass FormConstructorData {\r\n public ClientWebsiteId: string = Config.Website.Id;\r\n public Items: ContextItem[];\r\n\r\n constructor(items?: ContextItem[]) {\r\n this.Items = items || [];\r\n }\r\n}\r\n\r\nexport { FormConstructorData }\r\n","import { FormFieldLayoutOptions } from \"./FormFieldLayoutOptions\";\r\n\r\nenum FormFieldType\r\n{\r\n Text,\r\n Email,\r\n Tel,\r\n Dropdown,\r\n Textarea,\r\n VideoUpload,\r\n FileUpload,\r\n MultiFileUploader,\r\n StaticText,\r\n Date,\r\n Signature,\r\n GraphicalPDF\r\n}\r\n\r\ninterface FormField {\r\n FieldId: string;\r\n SectionId: string;\r\n Type: FormFieldType;\r\n TypeName: string;\r\n Key: string;\r\n Label: string;\r\n Placeholder: string;\r\n LayoutOptions: FormFieldLayoutOptions;\r\n Required: boolean;\r\n \r\n}\r\n\r\nexport { FormField, FormFieldType }\r\n","import { PDFFieldData } from \"./FieldTypes/PDFFieldData\";\r\nimport { PDFKeyValuePair } from \"./FieldTypes/IFormField\";\r\n\r\nclass FormValue {\r\n Key: string;\r\n Value: string | PDFFieldData | Blob | Blob[] | PDFKeyValuePair | (string | PDFKeyValuePair)[] | number | null;\r\n\r\n constructor(key: string, value: string | PDFFieldData | Blob | Blob[] | PDFKeyValuePair | (string | PDFKeyValuePair)[] | number | null) {\r\n this.Key = key;\r\n this.Value = value;\r\n }\r\n}\r\n\r\nexport { FormValue }\r\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"form-field\",class:[{'has-errors': _vm.hasErrors}, 'form-field--' + _vm.def.TypeName]},[_c('div',{staticClass:\"pdf-field\"},_vm._l((_vm.def.PageDefs),function(page){return _c('FormGraphicalPDFFieldPage',{key:page.Number,attrs:{\"form-type\":_vm.formType,\"form-context\":_vm.formContext,\"field-key\":_vm.def.Key,\"def\":page,\"sig-fields\":_vm.getSigFieldsForPage(page.Number),\"errors\":_vm.errors},on:{\"change\":_vm.handleSubfieldChanged}})}),1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"pdf-field__page\",style:({\n '--page-width': _vm.def.Width,\n '--page-height': _vm.def.Height\n })},[_c('img',{ref:\"image\",staticClass:\"pdf-field__page__image\"}),_c('div',{staticClass:\"pdf-field__inputs\"},_vm._l((_vm.def.Fields),function(field){return _c('FormGraphicalPDFSubfield',{key:_vm.def.Number + '_' + field.Key,attrs:{\"def\":field,\"parent-key\":_vm.fieldKey,\"errors\":_vm.getErrorsForSubfield(field)},on:{\"change\":_vm.handleSubfieldChanged}})}),1),_c('div',{staticClass:\"pdf-field__signatures\"},_vm._l((_vm.sigFields),function(sig){return _c('FormGraphicalPDFSignatureField',{key:sig.Key,attrs:{\"def\":sig},on:{\"signed\":_vm.handleSubfieldChanged}})}),1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"gpdf-sig\",style:({'--left': _vm.def.Left, '--bottom': _vm.def.Bottom, '--width': _vm.def.Width, '--height': _vm.def.Height})},[_c('img',{ref:\"previewImg\",staticClass:\"gpdf-sig__preview\",attrs:{\"width\":_vm.previewWidth,\"height\":_vm.previewHeight},on:{\"click\":_vm.openModal}}),_c('div',{staticClass:\"gpdf-sig__modal-wrap\",class:{'gpdf-sig__modal-wrap--active': _vm.modalActive}},[_c('div',{staticClass:\"gpdf-sig__modal\"},[_c('div',{staticClass:\"gpdf-sig__modal__modes\"},[_c('ul',[_c('li',{staticClass:\"gpdf-sig__input-mode\",class:{'gpdf-sig__input-mode--active': _vm.mode === 'type'},on:{\"click\":function($event){return _vm.setMode('type')}}},[_c('Icon',{attrs:{\"icon\":\"black-keyboard-with-white-keys\"}}),_c('span',{staticClass:\"gpdf-sign__input-mode__label\"},[_vm._v(\"Type\")])],1),_c('li',{staticClass:\"gpdf-sig__input-mode\",class:{'gpdf-sig__input-mode--active': _vm.mode === 'draw'},on:{\"click\":function($event){return _vm.setMode('draw')}}},[_c('Icon',{attrs:{\"icon\":\"edit\"}}),_c('span',{staticClass:\"gpdf-sign__input-mode__label\"},[_vm._v(\"Draw\")])],1)])]),_c('div',{staticClass:\"gpdf-sig__modal__content\"},[_c('div',{staticClass:\"gpdf-input-modes\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.mode === 'type'),expression:\"mode === 'type'\"}],staticClass:\"gpdf-input-mode gpdf-input-mode--type\",style:({'--font-size': (_vm.canvasHeight * 0.4) + 'px'})},[_c('div',{staticClass:\"gpdf-input-mode--type__input-wrap\"},[_c('div',{staticClass:\"gpdf-input-mode--type__input__line\"}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.typedValue.length === 0),expression:\"typedValue.length === 0\"}],staticClass:\"gpdf-input-mode--type__input__placeholder\"},[_vm._v(\"Type your signature\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.typedValue),expression:\"typedValue\"}],staticClass:\"gpdf-input-mode--type__input\",style:({\n 'width': _vm.canvasWidth + 'px',\n 'height': _vm.canvasHeight + 'px',\n 'font-family': _vm.typedSelectedFont\n }),attrs:{\"type\":\"text\",\"maxlength\":\"30\"},domProps:{\"value\":(_vm.typedValue)},on:{\"input\":function($event){if($event.target.composing)return;_vm.typedValue=$event.target.value}}})]),_c('div',{staticClass:\"gpdf-input-mode--type__fonts\"},[_c('h5',[_vm._v(\"Alternative Styles:\")]),_c('ul',_vm._l((_vm.typedAvailableFonts),function(font,idx){return _c('li',{key:font,on:{\"click\":function($event){_vm.typedSelectedFont = font}}},[_c('span',{staticClass:\"gpdf-input-mode--type__fonts__label\"},[_vm._v(\"Style \"+_vm._s(idx + 1))]),_c('span',{staticClass:\"gpdf-input-mode--type__fonts__sample\",style:({'font-family': font})},[_vm._v(_vm._s(_vm.typedValue || 'John Smith'))])])}),0)])]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.mode === 'draw'),expression:\"mode === 'draw'\"}],staticClass:\"gpdf-input-mode gpdf-input-mode--draw\"},[_c('div',{staticClass:\"gpdf-input-mode--draw__canvas-wrap\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.canvasHasContent),expression:\"!canvasHasContent\"}],staticClass:\"gpdf-input-mode--type__draw__placeholder\"},[_vm._v(\"Draw your signature\")]),_c('canvas',{ref:\"cnv\",staticClass:\"gpdf-input-mode--draw__canvas\",attrs:{\"width\":_vm.canvasWidth,\"height\":_vm.canvasHeight},on:{\"mousedown\":_vm.beginDrawing,\"mouseup\":_vm.endDrawing,\"mouseleave\":_vm.endDrawing,\"mousemove\":_vm.trace}})])])])]),_c('div',{staticClass:\"gpdf-sig__modal__buttons\"},[_c('Row',[_c('Column',{attrs:{\"width\":\"6\"}},[_c('Button',{attrs:{\"block\":\"true\",\"background-colour\":\"var(--brand-secondary)\",\"colour\":\"var(--brand-secondary-complement)\"},on:{\"click\":_vm.clearAll}},[_vm._v(\"Clear\")])],1),_c('Column',{attrs:{\"width\":\"6\"}},[_c('Button',{attrs:{\"block\":\"true\"},on:{\"click\":_vm.closeModal}},[_vm._v(\"Finished\")])],1)],1)],1)])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Component, Vue, Prop } from 'vue-property-decorator';\nimport { GraphicalPDFSignatureField } from 'client-website-ts-library/types/Forms/FieldTypes';\nimport { PDFFormSubfieldChangedData } from '@/app_code/Forms';\n\ninterface DrawnPoint {\n x: number;\n y: number;\n}\n\n@Component\nexport default class FormGraphicalPDFSignatureField extends Vue {\n @Prop()\n private readonly def!: GraphicalPDFSignatureField;\n\n private canvasScale = 12;\n\n private imageScale = 6;\n\n private ctx: CanvasRenderingContext2D | null = null;\n\n private modalActive = false;\n\n private isDrawing = false;\n\n private drawnPoints: DrawnPoint[] = [];\n\n private lastPoint: DrawnPoint | null = null;\n\n private mode = 'type';\n\n private typedValue = '';\n\n private typedSelectedFont = 'Dancing Script';\n\n private typedAvailableFonts: string[] = [\n 'Dancing Script',\n 'Shadows Into Light',\n 'Marck Script',\n ];\n\n mounted() {\n const cnv = this.$refs.cnv as HTMLCanvasElement;\n\n this.ctx = cnv.getContext('2d');\n\n this.ctx!.fillStyle = '#000';\n this.ctx!.textAlign = 'center';\n\n this.ctx!.lineWidth = 3;\n this.ctx!.lineCap = 'round';\n }\n\n get canvasWidth(): number {\n return this.def.Width * this.canvasScale;\n }\n\n get canvasHeight(): number {\n return this.def.Height * this.canvasScale;\n }\n\n get previewWidth(): number {\n return this.def.Width * this.imageScale;\n }\n\n get previewHeight(): number {\n return this.def.Height * this.imageScale;\n }\n\n private setMode(mode: string): void {\n this.clearCanvas();\n this.mode = mode;\n }\n\n private clearAll(): void {\n this.typedValue = '';\n this.clearCanvas();\n }\n\n private clearCanvas(): void {\n this.ctx!.clearRect(0, 0, this.canvasWidth, this.canvasHeight);\n }\n\n private drawTypedText(): void {\n let fontSize = Math.floor(this.canvasHeight * 0.8);\n\n // this.ctx!.font = 'bold 30px sans-serif';\n\n let textMeasurement = null;\n const maxWidth = this.canvasWidth * 0.9;\n\n for (let i = 0; i < 100; i += 1) {\n this.ctx!.font = `${fontSize}px \"${this.typedSelectedFont}\"`;\n\n textMeasurement = this.ctx!.measureText(this.typedValue);\n\n if (textMeasurement.width <= maxWidth) break;\n\n fontSize = Math.round(fontSize * 0.95 * 20) / 20;\n\n console.log(fontSize);\n }\n\n this.ctx!.fillText(this.typedValue, this.canvasWidth / 2, (this.canvasHeight / 2) + (fontSize / 3), this.canvasWidth * 0.9);\n }\n\n private transposeCanvas(): void {\n const img = this.$refs.previewImg as HTMLImageElement;\n const cnv = this.$refs.cnv as HTMLCanvasElement;\n\n img.src = cnv.toDataURL();\n\n cnv.toBlob((blob) => {\n this.$emit('signed', {\n def: this.def,\n value: blob,\n } as PDFFormSubfieldChangedData);\n }, 'image/png');\n }\n\n private openModal(): void {\n this.modalActive = true;\n }\n\n private closeModal(): void {\n if (this.mode === 'type') {\n // Draw the typed text onto the canvas\n\n this.clearCanvas();\n\n this.drawTypedText();\n }\n\n this.transposeCanvas();\n\n this.modalActive = false;\n }\n\n private beginDrawing(e: MouseEvent): void {\n this.isDrawing = true;\n\n this.ctx!.beginPath();\n\n const point: DrawnPoint = { x: e.offsetX, y: e.offsetY };\n\n this.drawnPoints = [\n point,\n ];\n\n this.lastPoint = point;\n }\n\n private endDrawing(): void {\n this.isDrawing = false;\n }\n\n private trace(e: MouseEvent): void {\n if (!this.isDrawing) return;\n\n const point: DrawnPoint = { x: e.offsetX, y: e.offsetY };\n\n this.drawnPoints.push(point);\n\n if (this.lastPoint === null) {\n this.ctx!.moveTo(point.x, point.y);\n } else {\n this.ctx!.lineTo(point.x, point.y);\n }\n\n this.lastPoint = point;\n\n this.ctx!.stroke();\n }\n\n get canvasHasContent(): boolean {\n return this.drawnPoints.length !== 0 || (this.mode === 'text' && this.typedValue.length !== 0);\n }\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormGraphicalPDFSignatureField.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormGraphicalPDFSignatureField.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FormGraphicalPDFSignatureField.vue?vue&type=template&id=b6ed7c7c&scoped=true&\"\nimport script from \"./FormGraphicalPDFSignatureField.vue?vue&type=script&lang=ts&\"\nexport * from \"./FormGraphicalPDFSignatureField.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./FormGraphicalPDFSignatureField.vue?vue&type=style&index=0&id=b6ed7c7c&prod&scoped=true&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 \"b6ed7c7c\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"gpdf-field\",class:{'has-errors': _vm.errors.length > 0},style:({'--left': _vm.def.Left, '--bottom': _vm.def.Bottom, '--width': _vm.def.Width, '--height': _vm.def.Height}),attrs:{\"data-key\":_vm.def.Key}},[(_vm.def.Type === 'Text')?_c('FormGraphicalPDFTextSubfield',{ref:\"field\",attrs:{\"def\":_vm.def,\"parent-key\":_vm.parentKey},on:{\"change\":_vm.handleChanged}}):(_vm.def.Type === 'Checkbox')?_c('FormGraphicalPDFFieldCheckbox',{ref:\"field\",attrs:{\"def\":_vm.def,\"parent-key\":_vm.parentKey},on:{\"change\":_vm.handleChanged}}):_vm._e(),_c('div',{staticClass:\"gpdf-field__errors\"},[_c('ul',_vm._l((_vm.errors),function(error){return _c('li',{key:error.Key + error.SubfieldKey},[_vm._v(_vm._s(error.Message))])}),0)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"gpdf-subfield\"},[(_vm.isMultiline)?_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.value),expression:\"value\"}],staticClass:\"gpdf-subfield__input gpdf-subfield__input--multiline\",domProps:{\"value\":(_vm.value)},on:{\"change\":_vm.handleChanged,\"input\":function($event){if($event.target.composing)return;_vm.value=$event.target.value}}}):((_vm.inputType)==='checkbox')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.value),expression:\"value\"}],staticClass:\"gpdf-subfield__input\",class:{'gpdf-subfield--combed': _vm.isCombed},attrs:{\"name\":_vm.parentKey + '_' + _vm.def.Key,\"autocomplete\":_vm.autocompleteType,\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.value)?_vm._i(_vm.value,null)>-1:(_vm.value)},on:{\"change\":[function($event){var $$a=_vm.value,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.value=$$a.concat([$$v]))}else{$$i>-1&&(_vm.value=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.value=$$c}},_vm.handleChanged]}}):((_vm.inputType)==='radio')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.value),expression:\"value\"}],staticClass:\"gpdf-subfield__input\",class:{'gpdf-subfield--combed': _vm.isCombed},attrs:{\"name\":_vm.parentKey + '_' + _vm.def.Key,\"autocomplete\":_vm.autocompleteType,\"type\":\"radio\"},domProps:{\"checked\":_vm._q(_vm.value,null)},on:{\"change\":[function($event){_vm.value=null},_vm.handleChanged]}}):_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.value),expression:\"value\"}],staticClass:\"gpdf-subfield__input\",class:{'gpdf-subfield--combed': _vm.isCombed},attrs:{\"name\":_vm.parentKey + '_' + _vm.def.Key,\"autocomplete\":_vm.autocompleteType,\"type\":_vm.inputType},domProps:{\"value\":(_vm.value)},on:{\"change\":_vm.handleChanged,\"input\":function($event){if($event.target.composing)return;_vm.value=$event.target.value}}})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Component, Vue, Prop } from 'vue-property-decorator';\nimport { IFormField, PDFFormField } from 'client-website-ts-library/types/Forms/FieldTypes';\nimport { PDFFormSubfieldChangedData } from '@/app_code/Forms';\nimport { FormValue } from 'client-website-ts-library/types/Forms';\n\n@Component\nexport default class FormGraphicalPDFTextSubfield extends Vue implements IFormField {\n private value: string | null = null;\n\n @Prop()\n private readonly parentKey!: string;\n\n @Prop()\n private readonly def!: PDFFormField;\n\n private loweredKey = this.def!.Key.toLowerCase();\n\n getValue(): FormValue {\n return {\n Key: this.def.Key,\n Value: this.value,\n };\n }\n\n setValue(value: FormValue) {\n if (typeof value.Value === 'string' || value.Value === null) {\n this.value = value.Value;\n }\n }\n\n get isMultiline(): boolean {\n return this.def.Flags.indexOf('Multiline') !== -1;\n }\n\n get isDate(): boolean {\n return this.def.Flags.indexOf('AFDate') !== -1 || this.def.Format.indexOf('AFDate') !== -1;\n }\n\n get isEmail(): boolean {\n return this.loweredKey.indexOf('email') !== -1;\n }\n\n get isTel(): boolean {\n return this.loweredKey.indexOf('phone') !== -1 || this.loweredKey.indexOf('mobile') !== -1;\n }\n\n get isCombed(): boolean {\n return this.def.Flags.indexOf('Comb') !== -1;\n }\n\n get inputType(): string {\n if (this.isDate) return 'date';\n if (this.isEmail) return 'email';\n if (this.isTel) return 'tel';\n\n return 'text';\n }\n\n get autocompleteType(): string {\n if (this.isEmail) return 'email';\n if (this.isTel) return 'tel';\n\n if (this.loweredKey.indexOf('name')) return 'name';\n\n return 'on';\n }\n\n handleChanged() {\n this.$emit('change', {\n def: this.def,\n value: this.value,\n } as PDFFormSubfieldChangedData);\n }\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormGraphicalPDFTextSubfield.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormGraphicalPDFTextSubfield.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FormGraphicalPDFTextSubfield.vue?vue&type=template&id=33169298&scoped=true&\"\nimport script from \"./FormGraphicalPDFTextSubfield.vue?vue&type=script&lang=ts&\"\nexport * from \"./FormGraphicalPDFTextSubfield.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./FormGraphicalPDFTextSubfield.vue?vue&type=style&index=0&id=33169298&prod&scoped=true&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 \"33169298\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"gpdf-subfield\"},[_c('label',{staticClass:\"gpdf__checkbox\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.value),expression:\"value\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.value)?_vm._i(_vm.value,null)>-1:(_vm.value)},on:{\"change\":[function($event){var $$a=_vm.value,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.value=$$a.concat([$$v]))}else{$$i>-1&&(_vm.value=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.value=$$c}},_vm.handleChanged]}}),_c('span',{staticClass:\"gpdf__checkbox__icon\"})])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Component, Vue, Prop } from 'vue-property-decorator';\nimport { IFormField, PDFFormField } from 'client-website-ts-library/types/Forms/FieldTypes';\nimport { PDFFormSubfieldChangedData } from '@/app_code/Forms';\nimport { FormValue } from 'client-website-ts-library/types/Forms';\n\n@Component\nexport default class FormGraphicalPDFFieldCheckbox extends Vue implements IFormField {\n private value: string | null = null;\n\n @Prop()\n private readonly def!: PDFFormField;\n\n getValue(): FormValue {\n return {\n Key: this.def.Key,\n Value: this.value,\n };\n }\n\n setValue(value: FormValue) {\n if (typeof value.Value === 'string' || value.Value === null) {\n this.value = value.Value;\n }\n }\n\n handleChanged() {\n this.$emit('change', {\n def: this.def,\n value: this.value,\n } as PDFFormSubfieldChangedData);\n }\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormGraphicalPDFFieldCheckbox.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormGraphicalPDFFieldCheckbox.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FormGraphicalPDFFieldCheckbox.vue?vue&type=template&id=308d011c&scoped=true&\"\nimport script from \"./FormGraphicalPDFFieldCheckbox.vue?vue&type=script&lang=ts&\"\nexport * from \"./FormGraphicalPDFFieldCheckbox.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./FormGraphicalPDFFieldCheckbox.vue?vue&type=style&index=0&id=308d011c&prod&scoped=true&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 \"308d011c\",\n null\n \n)\n\nexport default component.exports","\nimport { Component, Vue, Prop } from 'vue-property-decorator';\nimport { IFormField, PDFFormField } from 'client-website-ts-library/types/Forms/FieldTypes';\nimport { FormSubmissionValidationError, FormValue } from 'client-website-ts-library/types/Forms';\n\nimport { PDFFormSubfieldChangedData } from '@/app_code/Forms';\n\nimport FormGraphicalPDFTextSubfield from './FormGraphicalPDFTextSubfield.vue';\nimport FormGraphicalPDFFieldCheckbox from './FormGraphicalPDFFieldCheckbox.vue';\n\n@Component({\n components: {\n FormGraphicalPDFTextSubfield,\n FormGraphicalPDFFieldCheckbox,\n },\n})\nexport default class FormGraphicalPDFSubfield extends Vue implements IFormField {\n @Prop()\n private readonly def!: PDFFormField;\n\n @Prop()\n private readonly parentKey!: string;\n\n @Prop()\n private readonly errors!: FormSubmissionValidationError[];\n\n getValue(): FormValue {\n return (this.$refs.field as unknown as IFormField).getValue();\n }\n\n setValue(value: FormValue) {\n (this.$refs.field as unknown as IFormField).setValue(value);\n }\n\n handleChanged(data: PDFFormSubfieldChangedData): void {\n this.$emit('change', data);\n }\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormGraphicalPDFSubfield.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormGraphicalPDFSubfield.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FormGraphicalPDFSubfield.vue?vue&type=template&id=60ab4fda&scoped=true&\"\nimport script from \"./FormGraphicalPDFSubfield.vue?vue&type=script&lang=ts&\"\nexport * from \"./FormGraphicalPDFSubfield.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./FormGraphicalPDFSubfield.vue?vue&type=style&index=0&id=60ab4fda&prod&scoped=true&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 \"60ab4fda\",\n null\n \n)\n\nexport default component.exports","\nimport { Component, Vue, Prop } from 'vue-property-decorator';\nimport { PDFFormFieldPageDef, PDFFormField, GraphicalPDFSignatureField } from 'client-website-ts-library/types/Forms/FieldTypes';\nimport { PDFFormSubfieldChangedData } from '@/app_code/Forms';\nimport { FormSubmissionValidationError } from 'client-website-ts-library/types/Forms';\nimport { Context } from 'client-website-ts-library/types';\nimport { API } from 'client-website-ts-library/services';\n\nimport FormGraphicalPDFSignatureField from './FormGraphicalPDFSignatureField.vue';\nimport FormGraphicalPDFSubfield from './FormGraphicalPDFSubfield.vue';\n\n@Component({\n components: {\n FormGraphicalPDFSignatureField,\n FormGraphicalPDFSubfield,\n },\n})\nexport default class FormGraphicalPDFFieldPage extends Vue {\n @Prop()\n private readonly formType!: string;\n\n @Prop()\n private readonly formContext!: Context;\n\n @Prop()\n private readonly fieldKey!: string;\n\n @Prop()\n private readonly def!: PDFFormFieldPageDef;\n\n @Prop({ default: () => [] })\n private readonly errors!: FormSubmissionValidationError[];\n\n @Prop()\n private readonly sigFields!: GraphicalPDFSignatureField[];\n\n mounted() {\n const img = this.$refs.image as HTMLImageElement;\n\n API.Forms.GetPDFFieldPage(this.formType, this.formContext, this.fieldKey, this.def.Number).then((imageData) => {\n imageData.blob().then((blobData) => {\n img.src = URL.createObjectURL(blobData);\n });\n });\n }\n\n getErrorsForSubfield(field: PDFFormField): FormSubmissionValidationError[] {\n return this.errors.filter((e) => e.SubfieldKey === field.Key);\n }\n\n handleSubfieldChanged(data: PDFFormSubfieldChangedData) {\n this.$emit('change', data);\n }\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormGraphicalPDFFieldPage.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormGraphicalPDFFieldPage.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FormGraphicalPDFFieldPage.vue?vue&type=template&id=76a3570e&scoped=true&\"\nimport script from \"./FormGraphicalPDFFieldPage.vue?vue&type=script&lang=ts&\"\nexport * from \"./FormGraphicalPDFFieldPage.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./FormGraphicalPDFFieldPage.vue?vue&type=style&index=0&id=76a3570e&prod&scoped=true&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 \"76a3570e\",\n null\n \n)\n\nexport default component.exports","\nimport { Component, Vue, Prop } from 'vue-property-decorator';\nimport { FormSubmissionValidationError, FormValue } from 'client-website-ts-library/types/Forms';\nimport {\n IFormField,\n GraphicalPDFFormField,\n PDFFieldData,\n PDFKeyValuePair,\n GraphicalPDFSignatureField,\n} from 'client-website-ts-library/types/Forms/FieldTypes';\nimport { Context } from 'client-website-ts-library/types';\n\nimport { PDFFormSubfieldChangedData } from '@/app_code/Forms';\n\nimport ErrorList from '../../ErrorList.vue';\nimport FormGraphicalPDFFieldPage from './FormGraphicalPDFFieldPage.vue';\n\n@Component({\n components: {\n ErrorList,\n FormGraphicalPDFFieldPage,\n },\n})\nexport default class FormGraphicalPDFField extends Vue implements IFormField {\n @Prop()\n private readonly formType!: string;\n\n @Prop()\n private readonly formContext!: Context;\n\n @Prop()\n private readonly def!: GraphicalPDFFormField;\n\n @Prop()\n private readonly errors!: FormSubmissionValidationError[];\n\n private value: PDFFieldData = {};\n\n get hasErrors(): boolean {\n return this.errors.length > 0;\n }\n\n get elemId() {\n return `field_${this.def.FieldId}`;\n }\n\n getValue(): FormValue {\n const kvps: (string | PDFKeyValuePair)[] = Object.keys(this.value)\n .map((key) => ({ Key: key, Value: this.value[key] } as PDFKeyValuePair))\n .map((data) => {\n if (data instanceof File) {\n return data;\n }\n\n if (data.Value instanceof Blob) {\n const file = data.Value as any;\n\n file.lastModifiedDate = new Date();\n file.name = `${this.def.Key}_${data.Key}`;\n\n return file;\n }\n\n return JSON.stringify(data);\n });\n\n return {\n Key: this.def.Key,\n Value: kvps,\n };\n }\n\n setValue(value: FormValue) {\n if (value.Value instanceof FormValue) {\n this.value = value.Value as PDFFieldData;\n }\n }\n\n handleSubfieldChanged(data: PDFFormSubfieldChangedData) {\n (this.value as PDFFieldData)[data.def.Key] = data.value;\n }\n\n getSigFieldsForPage(page: number): GraphicalPDFSignatureField[] {\n return this.def.SignatureFields.filter((f) => f.PageNumber === page);\n }\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormGraphicalPDFField.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormGraphicalPDFField.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FormGraphicalPDFField.vue?vue&type=template&id=91aa7c7e&\"\nimport script from \"./FormGraphicalPDFField.vue?vue&type=script&lang=ts&\"\nexport * from \"./FormGraphicalPDFField.vue?vue&type=script&lang=ts&\"\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--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!./FormGraphicalPDFSubfield.vue?vue&type=style&index=0&id=60ab4fda&prod&scoped=true&lang=css&\"","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!./FormGraphicalPDFSignatureField.vue?vue&type=style&index=0&id=b6ed7c7c&prod&scoped=true&lang=css&\""],"sourceRoot":""}