"use strict";(self["webpackChunkcarabi_x2"]=self["webpackChunkcarabi_x2"]||[]).push([[1907],{8282:function(e,n,t){t.r(n),t.d(n,{default:function(){return r}});var o=function(){var e=this,n=e._self._c;return n("Modal",{ref:"modal",attrs:{title:"Настройки",autoOpen:!0,fullHeight:!1},on:{closed:function(n){return e.$emit("closed")}}},[n("div",{staticClass:"uk-padding-small",staticStyle:{"flex-grow":"1","min-height":"1px",overflow:"auto"}},e._l(e.model.configList,(function(t){return n("div",{key:t.name,staticClass:"uk-form-row"},[n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newConfig[t.name],expression:"newConfig[conf.name]"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.newConfig[t.name])?e._i(e.newConfig[t.name],null)>-1:e.newConfig[t.name]},on:{change:function(n){var o=e.newConfig[t.name],a=n.target,i=!!a.checked;if(Array.isArray(o)){var s=null,l=e._i(o,s);a.checked?l<0&&e.$set(e.newConfig,t.name,o.concat([s])):l>-1&&e.$set(e.newConfig,t.name,o.slice(0,l).concat(o.slice(l+1)))}else e.$set(e.newConfig,t.name,i)}}}),e._v(" "+e._s(t.title))])])})),0),n("div",{staticClass:"uk-modal-footer uk-text-center"},[n("button",{staticClass:"uk-button uk-button-success uk-border-rounded",on:{click:e.save}},[e._v("Сохранить")])])])},a=[],i={name:"MapConfig",props:{model:Object},components:{Modal:()=>t.e(8362).then(t.bind(t,2215))},data:()=>({newConfig:null}),computed:{},created(){this.newConfig={...this.model.config}},methods:{save(){this.model.config=this.newConfig,this.$refs.modal.close()}}},s=i,l=t(1656),c=(0,l.A)(s,o,a,!1,null,null,null),r=c.exports}}]);
//# sourceMappingURL=LogisticConfig.1bf0f481.js.map