(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[0],{"11f2":function(e,t,a){var n={"./DefaultDynamic":["ff18",2],"./DefaultDynamic.vue":["ff18",2],"./IBox":["5c52",3],"./IBox.vue":["5c52",3]};function r(e){if(!a.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],r=t[0];return a.e(t[1]).then((function(){return a(r)}))}r.keys=function(){return Object.keys(n)},r.id="11f2",e.exports=r},"179e":function(e,t,a){"use strict";var n=a("967e"),r=a.n(n),s=(a("96cf"),a("fa84")),o=a.n(s),i=a("20ea");t["a"]={register:function(){var e=arguments;return o()(r.a.mark((function t(){var a;return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:{},t.next=3,i["a"].post("api/v1/register",a);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})))()},updateUser:function(){var e=arguments;return o()(r.a.mark((function t(){var a;return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:{},t.next=3,i["a"].post("api/v1/users/resource",a);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})))()}}},"3a5e":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("q-inner-loading",{attrs:{showing:e.loading}},[a("q-spinner-gears",{attrs:{size:"50px",color:"primary"}})],1)},r=[],s={name:"Loading",components:{},props:{loading:{type:Boolean,default:!1,required:!0}},data:function(){return{showModal:!1}},methods:{},events:{}},o=s,i=a("2877"),c=Object(i["a"])(o,n,r,!1,null,"369092a0",null);t["default"]=c.exports},4678:function(e,t,a){var n={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"73332","./en-il.js":"73332","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df48","./fa.js":"8df48","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b46","./gd.js":"f6b46","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function r(e){var t=s(e);return a(t)}function s(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}r.keys=function(){return Object.keys(n)},r.resolve=s,e.exports=r,r.id="4678"},"525e":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.propClass},[e.component?a(e.component,e._b({tag:"component",attrs:{type:e.type,name:e.name,index:e.index,value:e.value,"main-filter-ref":e.mainFilterRef,label:e.label},on:{"update:filters":function(t){return e.$emit("update:filters",t)}}},"component",e.compProps,!1)):e._e()],1)},r=[],s={name:"DynamicComponent",props:{value:{},type:{type:String,required:!0},compProps:{default:function(){}},index:{required:!0},mainFilterRef:{required:!0},propClass:{type:String,required:!1},label:{type:String,required:!0},name:{type:String,required:!0}},data:function(){return{component:null}},computed:{loader:function(){var e=this;return this.type?function(){return a("ce68")("./".concat(e.type))}:null}},mounted:function(){var e=this;this.loader().then((function(){e.component=function(){return e.loader()}})).catch((function(){e.component=function(){return a.e(2).then(a.bind(null,"ff18"))}}))}},o=s,i=a("2877"),c=Object(i["a"])(o,n,r,!1,null,null,null);t["default"]=c.exports},"6df6":function(e,t,a){"use strict";var n=a("8719"),r=a.n(n);r.a},8719:function(e,t,a){},"915e":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("q-select",{attrs:{dense:"","use-input":"","input-debounce":"200",clearable:"",label:e.placeholder,options:e.mappedData,filled:"",value:e.value,disable:e.disable,error:e.hasError},on:{filter:e.filterFn,input:function(t){return e.$emit("update:"+e.propKey,t)}}})},r=[],s=(a("7f7f"),a("6762"),a("2fdb"),a("ddd8")),o={components:{QSelect:s["a"]},data:function(){return{optionsData:[]}},props:{disable:{type:Boolean,default:!1,required:!1},hasError:{default:!1,required:!1},placeholder:{type:String,required:!1,default:"Seleccionar"},propKey:{type:String,required:!0},options:{required:!1,type:Array,default:function(){return[]}},value:{required:!1}},computed:{mappedData:function(){return this.optionsData.length?this.optionsData:this.options}},methods:{filterFn:function(e,t){var a=this;t(""!==e?function(){a.optionsData=a.options.filter((function(t){return t.name.toLowerCase().includes(e.toLowerCase())}))}:function(){a.optionsData=a.options})}}},i=o,c=a("2877"),l=Object(c["a"])(i,n,r,!1,null,"08d7bb38",null);t["default"]=l.exports},b185:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"row"},[a("div",{staticClass:"col-12"},[a("q-card",{staticClass:"my-card full-width"},[a("q-card-section",{staticClass:"q-pa-sm"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-4"},[a("h3",{staticClass:"q-ma-xs text-h5"},[e._v(e._s(e.title))])]),a("div",{staticClass:"col-md-8 text-right"},[e.createRoute?a("q-btn",{staticClass:"q-mb-md",attrs:{icon:"add",color:"primary",label:e.createLabel},on:{click:function(t){return e.$events.fire("create-treatment")}}}):e._e()],1)])]),a("q-card-section",{staticClass:"q-pa-sm"},[a("main-filter",{attrs:{"main-filter-ref":e.tableName,"filters-bag":e.filtersBag},on:{"update:filters":e.filterUpdate}})],1)],1),a("q-table",{staticClass:"q-mt-md",attrs:{data:e.playersData,dense:"",loading:e.loading,"loading-label":"Cargando resultados...",columns:e.columns,"rows-per-page-label":"Resultados por página","row-key":"id",pagination:e.moreParams,selection:"multiple",selected:e.moreParams.selected},on:{"update:pagination":function(t){e.moreParams=t},"update:selected":function(t){return e.$set(e.moreParams,"selected",t)},request:e.changePagination},scopedSlots:e._u([{key:"body",fn:function(t){return[a("q-tr",{attrs:{props:t}},[a("q-td",[a("q-checkbox",{model:{value:t.selected,callback:function(a){e.$set(t,"selected",a)},expression:"props.selected"}})],1),e._l(e.columns,(function(n){return a("q-td",{key:n.field,style:n.col_style,attrs:{props:t}},["text"===n.type?a("span",{domProps:{textContent:e._s(t.row[n.field])}}):e._e(),"image"===n.type?a("img",{staticStyle:{width:"50px"},style:n.style,attrs:{alt:"we",src:t.row[n.field]}}):e._e(),"badge"===n.type?a("span",[a("q-badge",{staticClass:"q-pa-sm",attrs:{transparent:"",align:"middle",color:"Tratamiento"===t.row[n.field]?"indigo":"blue"}},[e._v("\n                 "+e._s(t.row[n.field])+"\n              ")])],1):e._e(),"actions"===n.type?a("span",e._l(n.buttons,(function(n,r){return a("q-btn",{key:r+" "+t.row.id,attrs:{color:n.color,size:n.size,icon:n.icon,flat:n.flat},on:{click:function(a){return e.$emit(n.event,n.eventParams,t.row)}}})})),1):e._e()])}))],2)]}}])},[a("template",{slot:"pagination"},[a("q-btn",{attrs:{icon:"chevron_left",color:"grey-8",round:"",dense:"",flat:""},on:{click:e.restPage}}),a("q-btn",{attrs:{icon:"chevron_right",color:"grey-8",round:"",dense:"",flat:""},on:{click:e.addPage}})],1)],2)],1)])},r=[],s=(a("8e6e"),a("8a81"),a("ac6a"),a("cadf"),a("06db"),a("456d"),a("967e")),o=a.n(s),i=a("c47a"),c=a.n(i),l=(a("7f7f"),a("96cf"),a("fa84")),u=a.n(l),f=a("eaac"),d=a("bd08"),p=a("58a8"),m=a("8f8e"),b=a("db86"),g=a("dfcf");function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function v(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?h(Object(a),!0).forEach((function(t){c()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):h(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var j={name:"ReusableTable",components:{QTable:f["a"],QTr:d["a"],QCheckbox:m["a"],QBadge:p["a"],QTd:b["a"],MainFilter:g["default"]},props:{title:{String:String,required:!0},createRoute:{type:String,required:!1},createLabel:{type:String,required:!1},tableName:{String:String,required:!0},apiUrl:{type:String,required:!0}},data:function(){return{loading:!1,filtersBag:[],playersData:[],columns:[],moreParams:{selected:[],sortBy:"desc",descending:!1,page:1,rowsNumber:10,rowsPerPage:10,total:100}}},mounted:function(){this.getTableStructure()},methods:{getData:function(){var e=this;return u()(o.a.mark((function t(){var a,n,r,s;return o.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:for(t.prev=0,a={},n=0;n<e.filtersBag.length;n+=1)a[e.filtersBag[n].name]=e.filtersBag[n].value;return r=v(v({},e.moreParams),a),e.loading=!0,t.next=7,e.$axios.get(e.apiUrl,{params:r});case 7:s=t.sent,e.playersData=s.data.data,e.moreParams.total=s.data.last_page,t.next=14;break;case 12:t.prev=12,t.t0=t["catch"](0);case 14:return t.prev=14,e.loading=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[0,12,14,17]])})))()},filterUpdate:function(e,t){this.filtersBag[e].value=t,this.getData()},changePagination:function(e){this.moreParams.rowsNumber=e.pagination.rowsPerPage,this.moreParams.rowsPerPage=e.pagination.rowsPerPage,this.getData()},addPage:function(){this.moreParams.page+=1,this.getData()},restPage:function(){1!==this.moreParams.page&&(this.moreParams.page-=1,this.getData())},getTableStructure:function(){var e=this;return u()(o.a.mark((function t(){var a;return o.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.$axios.get("api/v1/getTableStructure",{params:{table_name:e.tableName}});case 3:a=t.sent,e.columns=a.data.columns,e.filtersBag=a.data.filters,e.getData(),t.next=11;break;case 9:t.prev=9,t.t0=t["catch"](0);case 11:case"end":return t.stop()}}),t,null,[[0,9]])})))()}},events:{"get-data":function(){this.getData()}}},y=j,O=a("2877"),C=Object(O["a"])(y,n,r,!1,null,null,null);t["default"]=C.exports},ce68:function(e,t,a){var n={"./DatePicker":["e94a",1,6],"./DatePicker.vue":["e94a",1,6],"./DefaultDynamic":["9121",7],"./DefaultDynamic.vue":["9121",7],"./DynamicComponent":["525e"],"./DynamicComponent.vue":["525e"],"./EssentialLink":["37c0",8],"./EssentialLink.vue":["37c0",8],"./GoogleMapLine":["33f0",0,9],"./GoogleMapLine.vue":["33f0",0,9],"./GoogleMapLoader":["012a",1,4],"./GoogleMapLoader.vue":["012a",1,4],"./GoogleMapMarker":["9018",0,10],"./GoogleMapMarker.vue":["9018",0,10],"./InnerLoading":["196b",1,5],"./InnerLoading.vue":["196b",1,5],"./Loading":["3a5e",0],"./Loading.vue":["3a5e",0],"./MainFilter":["dfcf"],"./MainFilter.vue":["dfcf"],"./Nexarg/NaSelect":["915e",0],"./Nexarg/NaSelect.vue":["915e",0],"./SelectCategory":["4bbf",0,11],"./SelectCategory.vue":["4bbf",0,11],"./SelectLocation":["cec4",0,12],"./SelectLocation.vue":["cec4",0,12],"./charts/ChartsMagic":["14e1",0,13],"./charts/ChartsMagic.vue":["14e1",0,13],"./charts/DynamicChartsComponent":["fa6c",0],"./charts/DynamicChartsComponent.vue":["fa6c",0],"./charts/chartComponents/DefaultDynamic":["ff18",2],"./charts/chartComponents/DefaultDynamic.vue":["ff18",2],"./charts/chartComponents/IBox":["5c52",3],"./charts/chartComponents/IBox.vue":["5c52",3],"./table/ReusableTable":["b185"],"./table/ReusableTable.vue":["b185"]};function r(e){if(!a.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],r=t[0];return Promise.all(t.slice(1).map(a.e)).then((function(){return a(r)}))}r.keys=function(){return Object.keys(n)},r.id="ce68",e.exports=r},dfcf:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"row q-col-gutter-sm q-mb-xs"},[a("div",{staticClass:"col-xs-11"},[a("div",{staticClass:"row q-col-gutter-sm"},e._l(e.filtersBag,(function(t,n){return a("div",{key:n+" "+t.name,staticClass:"col",class:t.class},["select"!==t.type||t.externalComp?e._e():a("q-select",{attrs:{dense:"",name:t.name,disabled:!t.options.length,options:t.options,label:t.label,filled:"",tabindex:"-1",value:t.value},on:{input:function(t){return e.$emit("update:filters",n,t)}}}),"select"===t.type&&!t.externalComp&&t.secondCombo&&t.value?a("q-select",{attrs:{dense:"",name:t.name,disable:!t.value,options:t.value.secondComboData.options,label:t.labelSecond,tabindex:"-1",value:t.value}}):e._e(),"button"!==t.type||t.externalComp?e._e():a("q-btn",{attrs:{size:t.size,color:t.color,disable:t.disable,label:t.label,tabindex:"-1",icon:t.icon||null},on:{click:function(a){return e.$events.fire(t.event)}}}),"date"!==t.type||t.externalComp?e._e():a("q-input",{attrs:{dense:"",label:t.label,tabindex:"-1",name:t.name,filled:"",value:t.value},on:{input:function(t){return e.$emit("update:filters",n,t)}},scopedSlots:e._u([{key:"append",fn:function(){return[a("q-icon",{staticClass:"cursor-pointer",attrs:{name:"event"}},[a("q-popup-proxy",{ref:"qDateProxy"+t.name,refInFor:!0,attrs:{"transition-show":"scale","transition-hide":"scale"}},[a("q-date",{attrs:{value:t.value,mask:"DD-MM-YYYY"},on:{input:function(t){return e.$emit("update:filters",n,t)}}})],1)],1)]},proxy:!0}],null,!0)}),"input"===t.type||"number"===t.type?a("q-input",{attrs:{name:t.name,dense:"",filled:"",type:"number"===t.type?"number":"text",label:t.label,value:t.value},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){return e.$emit("update:filters",n,t.target.value)}(t)}}}):e._e(),"radio"!==t.type||t.externalComp?e._e():a("div",{staticClass:"q-gutter-sm"},e._l(t.options,(function(r){return a("q-radio",{key:r.value,attrs:{size:"sm",value:t.value,val:r.value,label:r.label},on:{input:function(t){return e.$emit("update:filters",n,t)}}})})),1),"checkbox"!==t.type||t.externalComp?e._e():a("div",{staticClass:"q-gutter-sm"},e._l(t.options,(function(e){return a("q-checkbox",{key:e.value,attrs:{value:e.value,label:e.label}})})),1),t.externalComp?a("dynamic-component",{attrs:{index:n,"main-filter-ref":e.mainFilterRef,"prop-class":t.class,value:t.value,type:t.type,name:t.name,multiple:t.multiple||!1,label:t.label,"comp-props":t.props},on:{"update:filters":function(t){return e.$emit("update:filters",n,t)}}}):e._e()],1)})),0)]),e.filtersBag.length?a("div",{staticClass:"col-xs-1"}):e._e()])},r=[],s=a("3786"),o=a("8f8e"),i=a("52ee"),c=a("525e"),l=(a("7f7f"),a("967e")),u=a.n(l),f=(a("96cf"),a("fa84")),d=a.n(f),p=(a("6762"),a("2fdb"),a("a481"),a("14b9"),a("6b54"),a("06db"),a("c1df")),m=a.n(p);m.a.locale("es");var b={methods:{focusOn:function(e){document.getElementById(e)&&document.getElementById(e).focus()},zfill:function(e,t){var a=Math.abs(e),n=e.toString().length,r="0";return t<=n?e<0?"-".concat(a.toString()):a.toString():e<0?"-".concat(r.repeat(t-n)+a.toString()):r.repeat(t-n)+a.toString()},currencyFormat:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return"string"===typeof e&&(e=parseFloat(e)),e||0===e?e.toFixed(t).replace(".",",").replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1."):""},convertToNumber:function(e){return"number"===typeof e?e:(e.includes(",")&&(e=e.replace(",",".")),parseFloat(e))},getDataFromSection:function(e){var t=arguments,a=this;return d()(u.a.mark((function n(){var r,s,o,i,c;return u.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.length>1&&void 0!==t[1]?t[1]:[],n.prev=1,a.loading=!0,n.next=5,a.$axios.get("api/v1/parameters/fromSection/".concat(e),{params:{fields:r}});case 5:if(s=n.sent,r.length)for(o=0;o<s.data.section_data.length;o+=1){for(i=0;i<r.length;i+=1)r[i]===s.data.section_data[o].description&&(a.form[r[i]]=s.data.section_data[o].value);"undefined"!==typeof a.form[s.data.section_data[o].description]&&(a.form[s.data.section_data[o].description]=s.data.section_data[o].value)}else for(c=0;c<s.data.section_data.length;c+=1)"undefined"!==typeof a.form[s.data.section_data[c].description]&&(a.form[s.data.section_data[c].description]=s.data.section_data[c].value);n.next=11;break;case 9:n.prev=9,n.t0=n["catch"](1);case 11:return n.prev=11,a.loading=!1,n.finish(11);case 14:case"end":return n.stop()}}),n,null,[[1,9,11,14]])})))()},momentPlusFrom:function(e){return e?"".concat(m()(e).format("DD/MM/YYYY HH:mm")):""},toDate:function(e){return e?m()(e).format("DD/MM/YYYY"):""},parseDesc:function(e,t,a){return e?e.length>t?"".concat(e.substr(0,t)," ..."):e:a},parsedText:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:27;if(!e)return"";var a=e;return a.length>t&&(a=e.substr(0,t),a="".concat(a," ...")),a},filterChange:function(e,t){this.filtersBag[e].value=t,"undefined"!==typeof this.moreParams[this.filtersBag[e].name]&&(this.moreParams[this.filtersBag[e].name]=t),this.pagination&&this.pagination.page&&(this.pagination.page=1),this.$events.fire("reload-table","".concat(this.model,"-table"))},toTime:function(e){return m()(e).format("HH:mm:ss")}},filters:{momentPlusFrom:function(e){return e?"".concat(m()(e).format("DD/MM/YYYY")," <br><small> ").concat(m()(e).fromNow(),"</small>"):""}},events:{}},g={name:"MainFilter",components:{QDate:i["a"],QRadio:s["a"],QCheckbox:o["a"],DynamicComponent:c["default"]},mixins:[b],props:{mainFilterRef:{type:String,required:!0},filtersBag:{type:Array,required:!0}},data:function(){return{form:{from:null,to:null,filter:null,value:null}}},mounted:function(){},methods:{reloadTable:function(){this.$emit("reload-table")},resetFilters:function(){var e=this;this.filtersBag.forEach((function(t,a){return e.$emit("update:filters",a,null)})),this.reloadTable()}},events:{}},h=g,v=(a("6df6"),a("2877")),j=Object(v["a"])(h,n,r,!1,null,"08d6ed86",null);t["default"]=j.exports},ebd65:function(e,t,a){"use strict";a.d(t,"a",(function(){return p})),a.d(t,"b",(function(){return f}));var n={COLOR_POINT:"rgb(243,114,114)",COLOR_POINT_FILL:"rgb(255,255,255)",COLOR_LANDSCAPE:"#FFAD00",COLOR_BORDERS:"rgb(195,230,255)",COLOR_LINE:"rgb(255,255,255)",COLOR_SELECTED_POINT:"rgb(0,184,83)",COLOR_BROWN:"rgb(139,69,19)",COLOR_BLACK:"rgb(0,0,0)",COLOR_BLUE:"rgb(77,109,155)",COLOR_LIGHT_BLUE:"rgb(124,156,201)",COLOR_WHITE:"rgb(255,255,255)",COLOR_WHITEY:"rgb(240,240,240)",COLOR_GREEN:"rgb(0,155,77)",COLOR_TOMATO:"rgb(243,114,114)"},r=n.COLOR_LANDSCAPE,s=n.COLOR_BORDERS,o=n.COLOR_WATER,i=n.COLOR_LINE,c=n.COLOR_POINT_FILL,l=n.COLOR_SELECTED_POINT,u={BORDERS:s,LANDSCAPE:r,LINE:i,POINT:l,POINT_FILL:c,WATER:o},f={path:"M 0, 0 m -5, 0 a 5,5 0 1,0 10,0 a 5,5 0 1,0 -10,0",strokeOpacity:.3,strokeWeight:40,strokeColor:u.POINT,fillColor:u.POINT_FILL,fillOpacity:.8,scale:1},d={path:"M 0,-2 0,2",strokeOpacity:1,strokeWeight:2,scale:1},p={clickable:!1,geodesic:!1,strokeOpacity:0,strokeColor:u.LINE,icons:[{icon:d,repeat:"10px"}]};u.LANDSCAPE},fa6c:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.propClass},[e.component?a(e.component,e._b({tag:"component",attrs:{type:e.type}},"component",e.compProps,!1)):e._e()],1)},r=[],s={name:"DynamicChartsComponent",props:{value:{},type:{type:String,required:!0},compProps:{default:function(){}},propClass:{type:String,required:!1}},data:function(){return{component:null}},computed:{loader:function(){var e=this;return this.type?function(){return a("11f2")("./".concat(e.type))}:null}},mounted:function(){var e=this;this.loader().then((function(){e.component=function(){return e.loader()}})).catch((function(){e.component=function(){return a.e(2).then(a.bind(null,"ff18"))}}))}},o=s,i=a("2877"),c=Object(i["a"])(o,n,r,!1,null,null,null);t["default"]=c.exports}}]);