{"version":3,"sources":["webpack:///./src/Rechtsgutachten/Add-rechtsgutachten.vue?3b7f","webpack:///./src/Rechtsgutachten/Add-rechtsgutachten.vue?7300","webpack:///./src/Rechtsgutachten/Add-rechtsgutachten.vue?e6f0","webpack:///./src/Rechtsgutachten/Add-rechtsgutachten.vue","webpack:///./src/Rechtsgutachten/Add-rechtsgutachten.vue?9614","webpack:///./src/Rechtsgutachten/api-rechtsgutachten.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","status_loading","status_failed","on","save_changes","$t","directives","name","rawName","value","required","expression","staticClass","laender","model","callback","$$v","land","ref","editorOptionsDe","textDe","editorOptionsEn","textEn","_v","_s","can_save","staticRenderFns","api","placeholder","theme","modules","toolbar","load","guard_status","Laender_ohne","data","filter","_","HatGutachten","map","id","Id","text","Key","isValid","e","stopPropagation","preventDefault","guard_save","Aktualisieren","forceClean","$router","push","components","component","controller","Liste","Promise","a","get","apiUrl","apiHeaders","response","Get","landId","RechtsgutachtenDe","RechtsgutachtenEn","put"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,iBAAiB,CAACE,MAAM,CAAC,MAAQ,+BAA+B,CAACF,EAAG,yBAAyB,CAACE,MAAM,CAAC,QAAUN,EAAIO,eAAe,OAASP,EAAIQ,gBAAgB,CAACJ,EAAG,OAAO,CAACK,GAAG,CAAC,OAAST,EAAIU,eAAe,CAACN,EAAG,gBAAgB,CAACE,MAAM,CAAC,MAAQN,EAAIW,GAAG,2BAA2B,CAACP,EAAG,gBAAgB,CAACQ,WAAW,CAAC,CAACC,KAAK,WAAWC,QAAQ,aAAaC,MAAM,CAAEC,UAAS,GAAOC,WAAW,oBAAoBC,YAAY,eAAeZ,MAAM,CAAC,WAAY,EAAK,QAAUN,EAAImB,QAAQ,KAAO,QAAQC,MAAM,CAACL,MAAOf,EAAQ,KAAEqB,SA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AM,EAAAC,EAAMC,IAAO,OAAOC,OAAM,IAAIL,EAAU,oBAAoBS,EAAU,OAAOH,a,OACpG,OADMC,EAAW,SACV,CAAP,EAAOA,EAAS3B,cAGP,YAAAD,aAAb,W,qBAA6BuB,SAAO,W,wDACf,SAAM,EAAAC,EAAMC,IAAO,OAAOC,OAAM,IAAIL,EAAU,gCAAiC,OAAOM,a,OACvG,OADMC,EAAW,SACV,CAAP,EAAOA,EAAS3B,cAGP,YAAAc,cAAb,SAA2BhC,EAAcgD,EAAkCC,G,qBAAmCT,SAAO,W,wDAChG,SAAM,EAAAC,EAAMS,IAAO,OAAOP,OAAM,IAAIL,EAAU,oBAAoBtC,EAAQ,CAACgD,kBAAiB,EAAEC,kBAAiB,GAAG,OAAOL,a,OAC1I,OADMC,EAAW,SACV,CAAP,EAAOA,EAAS3B,cAExB,EA3BA,I","file":"js/chunk-67445708.46fc68b5.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('guardileo-page',{attrs:{\"title\":\"Rechtsgutachten.Add.Action\"}},[_c('guardileo-page-content',{attrs:{\"loading\":_vm.status_loading,\"failed\":_vm.status_failed}},[_c('form',{on:{\"submit\":_vm.save_changes}},[_c('guardileo-box',{attrs:{\"title\":_vm.$t('Rechtsgutachten.Add.1')}},[_c('chosen-select',{directives:[{name:\"validate\",rawName:\"v-validate\",value:({required:true}),expression:\"{required:true}\"}],staticClass:\"form-control\",attrs:{\"translate\":true,\"options\":_vm.laender,\"name\":\"land\"},model:{value:(_vm.land),callback:function ($$v) {_vm.land=$$v},expression:\"land\"}})],1),_c('guardileo-box',{attrs:{\"title\":_vm.$t('Rechtsgutachten.Add.2')+' '+_vm.$t('Deutsch')}},[_c('quill-editor',{ref:\"gutachten_de\",attrs:{\"options\":_vm.editorOptionsDe},model:{value:(_vm.textDe),callback:function ($$v) {_vm.textDe=$$v},expression:\"textDe\"}})],1),_c('guardileo-box',{attrs:{\"title\":_vm.$t('Rechtsgutachten.Add.2')+' '+_vm.$t('Englisch')}},[_c('quill-editor',{ref:\"gutachten_en\",attrs:{\"options\":_vm.editorOptionsEn},model:{value:(_vm.textEn),callback:function ($$v) {_vm.textEn=$$v},expression:\"textEn\"}})],1),_c('div',{staticClass:\"d-flex justify-content-between mt-3\"},[_c('div'),_c('div',{staticClass:\"d-flex mr-first\"},[_c('ics-button',{attrs:{\"id\":\"btnCancel\",\"type\":\"back\",\"to\":{name: 'administration-einstellungen-rechtsgutachten'}}},[_vm._v(_vm._s(_vm.$t('Zurück')))]),_c('ics-button',{attrs:{\"type\":\"submit\",\"id\":\"btnSubmit\",\"disabled\":!_vm.can_save}},[_vm._v(_vm._s(_vm.$t('Eingaben speichern')))])],1)])],1)])],1)}\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\n\n\n\n\n import { Component } from 'vue-property-decorator';\n import { GuardileoEditComponent } from '@/lib';\n import { RechtsgutachtenApi, Rechtsgutachten_Drittland_Info, LandInfo } from './api-rechtsgutachten';\n\n @Component({\ncomponents: { },})\n export default class extends GuardileoEditComponent {\n private api: RechtsgutachtenApi = new RechtsgutachtenApi();\n\n private laender: any[] = [];\n private land: number | null = null;\n private textDe: string = \"\";\n private textEn: string = \"\";\n\n private editorOptionsDe = {\n placeholder: \"Bitte geben Sie das Rechtsgutachten in deutscher Sprache ein...\", \n theme: 'snow',\n modules: {\n toolbar: [['bold', 'italic', 'underline']]\n },\n };\n\n private editorOptionsEn = {\n placeholder: \"Bitte geben Sie das Rechtsgutachten in englischer Sprache ein...\", \n theme: 'snow',\n modules: {\n toolbar: [['bold', 'italic', 'underline']]\n },\n };\n\n async load() {\n const data = await this.guard_status(async () => await this.api.Laender_ohne());\n this.laender = \n data\n .filter((_: LandInfo) => !_.HatGutachten)\n .map((_: LandInfo) => ({id: _.Id, text: _.Key}));\n } \n\n get isDirty(): boolean {\n return this.isValid;\n }\n\n get isValid(): boolean {\n return this.land != null && this.textDe != null && this.textDe != \"\";\n }\n\n async save_changes(e: Event) {\n e.stopPropagation();\n e.preventDefault();\n if (!this.can_save) return;\n const land = this.land;\n if (!land) return;\n await this.guard_save(() => this.api.Aktualisieren(land, this.textDe, this.textEn));\n this.forceClean();\n this.$router.push({name: 'administration-einstellungen-rechtsgutachten'});\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/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Add-rechtsgutachten.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Add-rechtsgutachten.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Add-rechtsgutachten.vue?vue&type=template&id=008cb07d&\"\nimport script from \"./Add-rechtsgutachten.vue?vue&type=script&lang=ts&\"\nexport * from \"./Add-rechtsgutachten.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Add-rechtsgutachten.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","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.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!./Add-rechtsgutachten.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/index.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!./Add-rechtsgutachten.vue?vue&type=style&index=0&lang=css&\"","import axios from \"axios\";\r\nimport {config} from \"@/appconfig\";\r\n\r\nconst controller = 'einstellungen';\r\n\r\nexport interface LandInfo {\r\n Id: number;\r\n Key: string;\r\n HatGutachten: boolean;\r\n}\r\n\r\nexport interface Rechtsgutachten_Drittland_Info {\r\n LandId: number;\r\n LandKey: string;\r\n Bearbeiter: string;\r\n Datum: string;\r\n _keywords: string;\r\n RechtsgutachtenDe: boolean;\r\n RechtsgutachtenEn: boolean;\r\n}\r\n\r\nexport interface Rechtsgutachten_Drittland {\r\n LandId: number;\r\n LandKey: string;\r\n Bearbeiter: string;\r\n Datum: string;\r\n RechtsgutachtenDe: string;\r\n RechtsgutachtenEn: string;\r\n}\r\n\r\nexport class RechtsgutachtenApi {\r\n // public async get_infos(land_ids: number[]): Promise{\r\n // let q = land_ids.join(',');\r\n // if (q.length > 1024) throw new Error('Maxiumum query string length exceeded. Please add paging.');\r\n // const response = await axios.get(`${config.apiUrl}/${controller}/infos?ids=${ids}`, config.apiHeaders);\r\n // return response.data.sort((a:VTaetigkeit_info,b:VTaetigkeit_info) => b.Lfd-a.Lfd);\r\n // }\r\n \r\n public async Liste(): Promise{\r\n const response = await axios.get(`${config.apiUrl}/${controller}/rechtsgutachten`, config.apiHeaders);\r\n return response.data;\r\n }\r\n\r\n public async Get(landId: number): Promise{\r\n const response = await axios.get(`${config.apiUrl}/${controller}/rechtsgutachten/${landId}`, config.apiHeaders);\r\n return response.data;\r\n }\r\n\r\n public async Laender_ohne(): Promise{\r\n const response = await axios.get(`${config.apiUrl}/${controller}/rechtsgutachten/laender_ohne`, config.apiHeaders);\r\n return response.data;\r\n }\r\n\r\n public async Aktualisieren(land: number, RechtsgutachtenDe: string | null, RechtsgutachtenEn: string | null): Promise{\r\n const response = await axios.put(`${config.apiUrl}/${controller}/rechtsgutachten/${land}`, {RechtsgutachtenDe, RechtsgutachtenEn}, config.apiHeaders);\r\n return response.data;\r\n }\r\n}\r\n"],"sourceRoot":""}