1"use strict";(self["webpackChunkrigardo_webapp"]=self["webpackChunkrigardo_webapp"]||[]).push([[6076],{1196076:function(e,t,a){a.r(t),a.d(t,{default:function(){return c}});var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("b-container",{staticClass:"my-4"},[a("h4",[e._v(e._s(e.name))]),a("form-builder",{attrs:{element:e.formSchema,model:e.model,"external-model":e.externalModel}}),a("flapper",{ref:"flapper",attrs:{open:"",data:e.model,back:"/companies/"+e.companyId+"/templates",save:e.submit}})],1)},r=[],m=a(4932659),o=a(9205754),d=a(5127171),i=a(8249954),s={components:{Flapper:d.A,FormBuilder:i["default"]},props:{action:String,companyId:String,templateId:String,initialName:String},data(){return{name:this.initialName,documentId:"",changedDateTime:"",formSchema:{},model:{},externalModel:{}}},methods:{submit(){return"add"===this.action||"copy"===this.action?o.b.postGenerateCreateTemplate(this.templateId,this.name,this.model).then(e=>(this.$refs.flapper.reset(),e)):o.b.postGenerateUpdate(this.documentId,this.model)},load(){"add"===this.action?o.b.get(this.templateId).then(({data:e})=>{this.formSchema=JSON.parse(e.formSchema),this.name=e.name}):m.D.getDocument(this.$route.params.id).then(e=>{const t=e.data;this.model=JSON.parse(t.data),this.documentId=t.id,o.b.get(t.documentTemplateId).then(({data:e})=>{this.formSchema=JSON.parse(e.formSchema)})})}},created(){this.load()},watch:{$route:"load"}},l=s,p=a(5281656),h=(0,p.A)(l,n,r,!1,null,null,null),c=h.exports}}]); 2//# sourceMappingURL=6076.c538ca2e.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.