(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ff60a3c2"],{"130b":function(e,i,n){"use strict";n("985b")},"985b":function(e,i,n){},c33e:function(e,i,n){"use strict";n.r(i);var t=n("7a23"),c=function(e){return Object(t["D"])("data-v-5da71a7a"),e=e(),Object(t["B"])(),e},a=c((function(){return Object(t["j"])("div",{class:"flex mb-3"},[Object(t["j"])("h1",null,"Configuraciones")],-1)})),l={class:""},o={class:""},u={class:"formgrid grid"},r={class:"field col-2"},s=c((function(){return Object(t["j"])("label",{for:"dolarvalue"},"Valor del Dolar",-1)})),d={class:""},f={class:""},j={class:"formgrid grid"},b={class:"field col-2"},O=c((function(){return Object(t["j"])("label",{for:"dolarvalue"},"CIF",-1)})),v={class:""},g={class:""},m={class:"formgrid grid"},p={class:"field col-2"},h=c((function(){return Object(t["j"])("label",{for:"dolarvalue"},"Materia Prima Indirecta",-1)})),V={class:""},w={class:""},C={class:"formgrid grid"},x={class:"field col-2"},y=c((function(){return Object(t["j"])("label",{for:"dolarvalue"},"Mano de Obra Indirecta",-1)})),I={class:""},U={class:""},k={class:"formgrid grid"},D={class:"field col-2"},M=c((function(){return Object(t["j"])("label",{for:"dolarvalue"},"Margen",-1)})),A=c((function(){return Object(t["j"])("div",null,null,-1)}));function B(e,i,n,c,B,J){var R=this,T=Object(t["I"])("Toast"),_=Object(t["I"])("InputText"),z=Object(t["I"])("Button");return Object(t["A"])(),Object(t["i"])(t["a"],null,[Object(t["j"])("div",null,[Object(t["n"])(T),a,Object(t["j"])("div",l,[Object(t["j"])("div",o,[Object(t["j"])("div",u,[Object(t["j"])("div",r,[s,Object(t["n"])(_,{modelValue:this.configuraciones.dolarvalue,"onUpdate:modelValue":i[0]||(i[0]=function(e){return R.configuraciones.dolarvalue=e}),id:"detail",type:"text",class:"inputfield w-full"},null,8,["modelValue"])])])])]),Object(t["j"])("div",d,[Object(t["j"])("div",f,[Object(t["j"])("div",j,[Object(t["j"])("div",b,[O,Object(t["n"])(_,{modelValue:this.configuraciones.ciif,"onUpdate:modelValue":i[1]||(i[1]=function(e){return R.configuraciones.ciif=e}),id:"detail",type:"text",class:"inputfield w-full"},null,8,["modelValue"])])])])]),Object(t["j"])("div",v,[Object(t["j"])("div",g,[Object(t["j"])("div",m,[Object(t["j"])("div",p,[h,Object(t["n"])(_,{modelValue:this.configuraciones.mpi,"onUpdate:modelValue":i[2]||(i[2]=function(e){return R.configuraciones.mpi=e}),id:"detail",type:"text",class:"inputfield w-full"},null,8,["modelValue"])])])])]),Object(t["j"])("div",V,[Object(t["j"])("div",w,[Object(t["j"])("div",C,[Object(t["j"])("div",x,[y,Object(t["n"])(_,{modelValue:this.configuraciones.moi,"onUpdate:modelValue":i[3]||(i[3]=function(e){return R.configuraciones.moi=e}),id:"detail",type:"text",class:"inputfield w-full"},null,8,["modelValue"])])])])]),Object(t["j"])("div",I,[Object(t["j"])("div",U,[Object(t["j"])("div",k,[Object(t["j"])("div",D,[M,Object(t["n"])(_,{modelValue:this.configuraciones.margen,"onUpdate:modelValue":i[4]||(i[4]=function(e){return R.configuraciones.margen=e}),id:"detail",type:"text",class:"inputfield w-full"},null,8,["modelValue"])])])])]),Object(t["n"])(z,{label:"Guardar",class:"btn btn-primary",onClick:i[5]||(i[5]=function(e){return J.saveConfiguraciones()})})]),A],64)}var J=n("ded6"),R={name:"Configuraciones",data:function(){return{showModal:!1,form:{nombre:"",valor:""},configuraciones:[]}},methods:{getConfiguraciones:function(){var e=this;J["a"].getCRUD("configuraciones").then((function(i){e.configuraciones=i}))},saveConfiguraciones:function(){var e=this;J["a"].updateCRUD("configuraciones","configuraciones",this.configuraciones).then((function(i){e.getConfiguraciones(),e.$toast.add({severity:"success",summary:"Éxito!",detail:"Actualizado correctamente.",life:3e3})}))}},mounted:function(){this.getConfiguraciones()}},T=(n("130b"),n("6b0d")),_=n.n(T);const z=_()(R,[["render",B],["__scopeId","data-v-5da71a7a"]]);i["default"]=z}}]);
//# sourceMappingURL=chunk-ff60a3c2.94a078e5.js.map