1import{bg as n,b3 as p,J as c,P as a}from"./PW_UF68a.js";import{a as u,m as f,j as i}from"./-W1VOijv.js";import{C as d}from"./DAZ5B5UQ.js";import"./Bz2dEcw7.js";import"./CIhhRri8.js";import"./Bs5_TFWz.js";import"./B_aewNsK.js";import"./fgnZjpTr.js";import"./CH7vd0UB.js";import"./206wqFYJ.js";import"./CBI4HadU.js";const h={name:"Edit",components:{CreateForm:d},data(){return{formData:null,isLoading:!0}},async mounted(){await this.getTenant();const o=(this.$auth?.user?.roles||[]).some(e=>e.name==="Super Admin"),r=!!(this.tenant?.has_form_permission||this.tenant?.hasFormPermission);if(!o&&!r)return this.$router.push("/");this.clearState({scope:"forms",val:{}});const s=(this._.provides[a]||this.$route).params.id;this.formData=await this.$store.dispatch("resources/fetchResource",{scope:"forms",id:s}),await this.editResource({scope:"forms",id:(this._.provides[a]||this.$route).params.id}),this.isLoading=!1},head(){return{title:"EditeazÄ Formular"}},computed:{...i("tenant",["tenant"]),...i("forms",["form","departments"])},methods:{...f("resources",["editResource","clearState","getTenant"])}};function l(t,o,r,s,e,_){const m=n("create-form");return p(),c(m,{"form-data":e.formData,"form-subtitle":t.$t("form_subtitle.create"),"form-title":t.$t("form.edit_form_title"),"is-edit":""},null,8,["form-data","form-subtitle","form-title"])}const F=u(h,[["render",l]]);export{F as default};
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.