{"version":3,"sources":["webpack:///./src/components/mixins/inputHelper.js","webpack:///./src/views/programs/kof/RegionsCatalog.vue","webpack:///./src/views/programs/kof/modals/CreateRegionControl.vue","webpack:///src/views/programs/kof/modals/CreateRegionControl.vue","webpack:///./src/views/programs/kof/modals/CreateRegionControl.vue?9a32","webpack:///./src/views/programs/kof/modals/CreateRegionControl.vue?24f6","webpack:///./src/views/programs/kof/modals/CreateZoneControl.vue","webpack:///src/views/programs/kof/modals/CreateZoneControl.vue","webpack:///./src/views/programs/kof/modals/CreateZoneControl.vue?a5fb","webpack:///./src/views/programs/kof/modals/CreateZoneControl.vue?0068","webpack:///./src/views/programs/kof/modals/CreateSubregionManagerControl.vue","webpack:///src/views/programs/kof/modals/CreateSubregionManagerControl.vue","webpack:///./src/views/programs/kof/modals/CreateSubregionManagerControl.vue?b978","webpack:///./src/views/programs/kof/modals/CreateSubregionManagerControl.vue?4238","webpack:///src/views/programs/kof/RegionsCatalog.vue","webpack:///./src/views/programs/kof/RegionsCatalog.vue?2f09","webpack:///./src/views/programs/kof/RegionsCatalog.vue?0a97"],"names":["methods","reg","value","caps","trim","this","upper","trimSpaces","cleanTildes","toUpperCase","s","r","toLowerCase","replace","RegExp","uppercase","render","_vm","_c","_self","attrs","staticClass","_v","ref","zonesList","zonesPerPage","scopedSlots","_u","key","fn","data","_l","tableRow","index","id","_s","name","zone_manager","getFullName","user","personal","staticStyle","on","$event","stopPropagation","openZoneViewModal","zoneModalTitle","handleRemoveZone","slot","isCreateZoneModalOpened","getUsersList","isMounted","zonesPage","length","queriedZonesItems","itemsPerPageDefinitions","it","_e","regionsList","regionsPerPage","region_manager","zone","openRegionViewModal","regionModalTitle","handleRemoveRegion","refInFor","subregion_managers","tableRowSub","email","phone","openSubregionViewModel","isCreateSubregionModalOpened","currentRegion","isCreateRegionModalOpened","regionsPage","queriedRegionsItems","userList","getUserListOptions","getZonesListOptions","handleOnSaveRegion","currentZone","getRegionsListOptions","handleOnSaveZone","user_id","subregionModalTitle","currentSubregionManager","handleOnSaveSubregion","staticRenderFns","directives","rawName","ruleRequired","expression","text","model","zone_id","callback","$$v","$set","hasError","getErrorText","_g","isSuccessful","input","e","errorMessage","handleSave","handleClose","mixins","inputHelper","props","required","type","field","msg","console","clear","component","region_id","currentSubregion","components","CreateRegionControl","CreateZoneControl","CreateSubregionManagerControl","watch","color","title","acceptText","cancelText","accept","fullName","computed"],"mappings":"kHAAe,QACbA,QAAS,CACPC,IAAIC,EAAOC,GAAO,EAAOC,GAAO,GAC9B,OAAY,MAATF,GAA0B,IAATA,EACX,GAGNC,EACME,KAAKC,MAAMJ,EAAOE,GAEnBA,EACCC,KAAKE,WAAWL,GAGhBA,GAGXI,MAAMJ,EAAOE,GAAO,GAClB,OAAa,MAATF,GAA0B,IAATA,EACZ,GAEFG,KAAKG,YAAYN,EAAOE,GAAMK,eAEvCD,YAAYE,EAAGN,GAAO,GACpB,IAAIO,EAAID,EAAEE,cAiBV,OAhBAD,EAAIA,EAAEE,QAAQ,IAAIC,OAAO,WAAY,KAAK,KAC1CH,EAAIA,EAAEE,QAAQ,IAAIC,OAAO,IAAK,KAAK,MACnCH,EAAIA,EAAEE,QAAQ,IAAIC,OAAO,IAAK,KAAK,KACnCH,EAAIA,EAAEE,QAAQ,IAAIC,OAAO,SAAU,KAAK,KACxCH,EAAIA,EAAEE,QAAQ,IAAIC,OAAO,SAAU,KAAK,KAExCH,EAAIA,EAAEE,QAAQ,IAAIC,OAAO,UAAW,KAAK,KACzCH,EAAIA,EAAEE,QAAQ,IAAIC,OAAO,IAAK,KAAK,MAEnCH,EAAIA,EAAEE,QAAQ,IAAIC,OAAO,QAAS,KAAK,KACvCH,EAAIA,EAAEE,QAAQ,IAAIC,OAAO,OAAQ,KAAK,KAEnCV,IACDO,EAAIA,EAAEE,QAAQ,MAAM,KAGfF,GAETJ,WAAWG,GACT,OAAOA,EAAEG,QAAQ,MAAM,KAEzBE,UAAUb,GACR,OAAa,MAATA,GAA0B,IAATA,EACZ,GAE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lG,SAAA,2CACA,aAIA,aAHA,4BACA,yBACA,qBAGA,4GAEA,SACA,qBACAoF,eACA,oCAIA,0BACA,iBACAH,eACAa,eACAC,sBACAjC,4DACAkC,qBACAC,sBACAC,iCAGA,oBACA,IACA,WAAAlG,SAAA,yCACA,aAGA,aAFA,iCACA,oBAGA,oGAEA,SACAoF,eACA,oCAGAnC,qBACA,kCACA,uBAEAG,mBACA,kBACA7C,cACA8C,eAGA,gCACA,qBAEAG,wBACA,qCACA,uBAEA,uBACA,IACA,WAAAxD,SAAA,uEACA,aAEA,YADA,4BAKA,SACAoF,eAEA,mCAEA,qBACA,IACA,WAAApF,SAAA,qEACA,aAEA,YADA,0BAKA,SACAoF,eAEA,mCAEA,2BACA,IACA,qBACA,iBACA,IACA,kBACA7E,cACA8C,eAGA,oBACAvB,gBACAuB,eAGA,8BACAA,eAGA,WAAArD,SAAA,qDACA,cAGA,OAFA,qBACA,qBAKA,SACAoF,eAEA,qBACA,mCAEApD,uBACA,qBACA,qCACA,mFACA,mCACAqB,eAGA,mCAEAtC,qBACA,mCACA,mBACA,wEACA,+BACAsC,eAGA,iCAEAb,4BACA,wCACA,qBACA,+BACA,sCAEAhC,eACA,mBAUA,OARA,gBACA2F,sBAEAA,qBAEA,gBACAA,sBAEA,IAGAC,UACAxD,cACA,sBACA,iCACA,GAEAC,sBACA,sGAEAvB,YACA,sBACA,+BACA,GAEAE,oBACA,gGAEA2B,wBACA,iCAAA/E,WAAA0F,gBAEAd,sBACA,+BAAA5E,WAAA0F,gBAEAf,qBACA,+BACA,uBAAA3E,WAAA0F,sBAEA,MC9fsX,ICOlX,EAAY,eACd,EACA5E,EACAuE,GACA,EACA,KACA,KACA,MAIa,e","file":"js/chunk-6062650a.f78772ab.js","sourcesContent":["export default {\n methods: {\n reg(value, caps = false, trim = false){\n if(value == null || value == ''){\n return \"\";\n }\n\n if(caps){\n return this.upper(value, trim);\n }\n else if(trim) {\n return this.trimSpaces(value);\n }\n else {\n return value;\n }\n },\n upper(value, trim = false) {\n if (value == null || value == '') {\n return \"\";\n }\n return this.cleanTildes(value, trim).toUpperCase();\n },\n cleanTildes(s, trim = false){\n var r = s.toLowerCase();\n r = r.replace(new RegExp(\"[àáâãäå]\", 'g'),\"a\");\n r = r.replace(new RegExp(\"æ\", 'g'),\"ae\");\n r = r.replace(new RegExp(\"ç\", 'g'),\"c\");\n r = r.replace(new RegExp(\"[èéêë]\", 'g'),\"e\");\n r = r.replace(new RegExp(\"[ìíîï]\", 'g'),\"i\");\n //r = r.replace(new RegExp(\"ñ\", 'g'),\"n\"); \n r = r.replace(new RegExp(\"[òóôõö]\", 'g'),\"o\");\n r = r.replace(new RegExp(\"œ\", 'g'),\"oe\");\n //r = r.replace(new RegExp(\"[ùúûü]\", 'g'),\"u\");\n r = r.replace(new RegExp(\"[ùúû]\", 'g'),\"u\");\n r = r.replace(new RegExp(\"[ýÿ]\", 'g'),\"y\");\n \n if(trim){\n r = r.replace(/\\s/g,'');\n }\n\n return r;\n },\n trimSpaces(s){\n return s.replace(/\\s/g,'');\n },\n uppercase(value){\n if (value == null || value == '') {\n return \"\";\n }\n return value.toUpperCase();\n }\n }\n}","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{\"id\":\"kof-tools\"}},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full mb-6\"},[_c('vx-card',{staticClass:\"big-title-card-bg-black h-auto\"},[_c('h1',{staticClass:\"rg-big-title extrabold rg-title\"},[_vm._v(\" Catálogo de \"),_c('span',[_vm._v(\"zonas\")]),_vm._v(\" y \"),_c('span',[_vm._v(\"regiones\")]),_vm._v(\". \")])])],1),_c('div',{staticClass:\"vx-col w-full mb-6\"},[_c('vx-card',{attrs:{\"title\":\"Gestiona zonas y regiones\"}},[_c('p',{staticClass:\"mb-4\"},[_vm._v(\"En este apartado podrás administrar las zonas y regiones dentro de tu programa\")])])],1),_c('div',{staticClass:\"vx-col w-full mb-6\"},[_c('vx-card',{attrs:{\"title\":\"Zonas\"}},[_c('vs-table',{ref:\"zonesTable\",attrs:{\"stripe\":\"\",\"search\":\"\",\"noDataText\":\"No se han generado registros\",\"data\":_vm.zonesList,\"pagination\":\"\",\"max-items\":_vm.zonesPerPage},scopedSlots:_vm._u([{key:\"default\",fn:function({data}){return _vm._l((data),function(tableRow,index){return _c('vs-tr',{key:index},[_c('vs-td',{attrs:{\"data\":data[index].id}},[_vm._v(\" \"+_vm._s(data[index].id)+\" \")]),_c('vs-td',{attrs:{\"data\":data[index].name}},[_vm._v(\" \"+_vm._s(data[index].name)+\" \")]),_c('vs-td',[_vm._v(\" \"+_vm._s(data[index].zone_manager ? _vm.getFullName(data[index].zone_manager.user.personal) : 'Sin asignar')+\" \")]),_c('vs-td',{attrs:{\"data\":data[index].id}},[_c('vx-tooltip',{staticClass:\"mt-1\",staticStyle:{\"float\":\"left\",\"cursor\":\"pointer\",\"margin-top\":\"-8px\"},attrs:{\"title\":\"Editar zona.\",\"color\":\"dark\",\"text\":\"Edita la información básica de la zona.\"}},[_c('vs-button',{staticClass:\"rgred\",attrs:{\"type\":\"flat\",\"icon\":\"edit\"},on:{\"click\":function($event){$event.stopPropagation();_vm.openZoneViewModal(data[index]), _vm.zoneModalTitle='Editar zona'}}})],1),_c('vx-tooltip',{staticClass:\"mt-1\",staticStyle:{\"float\":\"left\",\"cursor\":\"pointer\",\"margin-top\":\"-8px\"},attrs:{\"title\":\"Eliminar zona.\",\"color\":\"dark\",\"text\":\"Elimina la zona seleccionada.\"}},[_c('vs-button',{staticClass:\"rgred\",attrs:{\"type\":\"flat\",\"icon\":\"delete\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.handleRemoveZone(data[index])}}})],1)],1)],1)})}}])},[_c('div',{staticClass:\"flex flex-wrap-reverse items-center flex-grow justify-between mt-4 ml-4 mb-4\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('vs-button',{staticClass:\"w-1/3\",attrs:{\"color\":\"dark\"},on:{\"click\":function($event){_vm.isCreateZoneModalOpened = true,_vm.getUsersList('zone_managers', true),_vm.zoneModalTitle='Crear zona'}}},[_vm._v(\"Crear zona\")]),(_vm.isMounted)?_c('vs-dropdown',{staticClass:\"cursor-pointer mr-4 items-per-page-handler\",attrs:{\"vs-trigger-click\":\"\"}},[_c('div',{staticClass:\"p-3 border border-solid d-theme-border-grey-light rounded-full d-theme-dark-bg cursor-pointer flex items-center justify-between font-medium\"},[_c('span',{staticClass:\"mr-2\"},[_vm._v(\" \"+_vm._s(_vm.zonesPage * _vm.zonesPerPage - (_vm.zonesPerPage - 1))+\" - \"+_vm._s(_vm.zonesList.length - _vm.zonesPage * _vm.zonesPerPage > 0 ? _vm.zonesPage * _vm.zonesPerPage : _vm.zonesList.length)+\" de \"+_vm._s(_vm.queriedZonesItems)+\" \")]),_c('feather-icon',{attrs:{\"icon\":\"ChevronDownIcon\",\"svgClasses\":\"h-4 w-4\"}})],1),_c('vs-dropdown-menu',_vm._l((_vm.itemsPerPageDefinitions),function(it){return _c('vs-dropdown-item',{key:it,on:{\"click\":function($event){_vm.zonesPerPage = it}}},[_c('span',[_vm._v(_vm._s(it))])])}),1)],1):_vm._e()],1),_c('template',{slot:\"thead\"},[_c('vs-th',{staticClass:\"bold\",attrs:{\"sort-key\":\"id\"}},[_vm._v(\"ID_ZONA\")]),_c('vs-th',{staticClass:\"bold\",attrs:{\"sort-key\":\"name\"}},[_vm._v(\"ZONA\")]),_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"GERENTE DE ZONA\")]),_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"ACCIONES\")])],1)],2)],1)],1),_c('div',{staticClass:\"vx-col w-full mb-6\"},[_c('vx-card',{attrs:{\"title\":\"Regiones\"}},[_c('vs-table',{ref:\"regionsTable\",attrs:{\"search\":\"\",\"stripe\":\"\",\"noDataText\":\"No se han generado registros\",\"data\":_vm.regionsList,\"pagination\":\"\",\"max-items\":_vm.regionsPerPage},scopedSlots:_vm._u([{key:\"default\",fn:function({data}){return _vm._l((data),function(tableRow,index){return _c('vs-tr',{key:index},[_c('vs-td',{attrs:{\"data\":data[index].id}},[_vm._v(\" \"+_vm._s(data[index].id)+\" \")]),_c('vs-td',{attrs:{\"data\":data[index].name}},[_vm._v(\" \"+_vm._s(data[index].name)+\" \")]),_c('vs-td',[_vm._v(\" \"+_vm._s(data[index].region_manager ? _vm.getFullName(data[index].region_manager.user.personal) : 'Sin asignar')+\" \")]),_c('vs-td',[_vm._v(\" \"+_vm._s(data[index].zone ? data[index].zone.name : 'Sin asignar')+\" \")]),_c('vs-td',{attrs:{\"data\":data[index].id}},[_c('vx-tooltip',{staticClass:\"mt-1\",staticStyle:{\"float\":\"left\",\"cursor\":\"pointer\",\"margin-top\":\"-8px\"},attrs:{\"title\":\"Editar región.\",\"color\":\"dark\",\"text\":\"Edita la información básica de la región.\"}},[_c('vs-button',{staticClass:\"rgred\",attrs:{\"type\":\"flat\",\"icon\":\"edit\"},on:{\"click\":function($event){$event.stopPropagation();_vm.openRegionViewModal(data[index]), _vm.regionModalTitle='Editar región'}}})],1),_c('vx-tooltip',{staticClass:\"mt-1\",staticStyle:{\"float\":\"left\",\"cursor\":\"pointer\",\"margin-top\":\"-8px\"},attrs:{\"title\":\"Eliminar región.\",\"color\":\"dark\",\"text\":\"Elimina la región seleccionada.\"}},[_c('vs-button',{staticClass:\"rgred\",attrs:{\"type\":\"flat\",\"icon\":\"delete\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.handleRemoveRegion(data[index])}}})],1)],1),_c('template',{slot:\"expand\"},[(data[index].region_manager)?_c('div',{staticClass:\"w-full\"},[_c('vs-table',{ref:\"subregionsTable\",refInFor:true,attrs:{\"search\":\"\",\"stripe\":\"\",\"noDataText\":\"No se han generado registros\",\"data\":data[index].region_manager.subregion_managers,\"pagination\":\"\",\"max-items\":\"25\"},scopedSlots:_vm._u([{key:\"default\",fn:function({data}){return _vm._l((data),function(tableRowSub,index){return _c('vs-tr',{key:index},[_c('vs-td',{attrs:{\"data\":data[index].id}},[_c('strong',[_vm._v(_vm._s(data[index].id))])]),_c('vs-td',{attrs:{\"data\":_vm.getFullName(data[index].user.id)}},[_c('strong',[_vm._v(_vm._s(_vm.getFullName(data[index].user.personal)))])]),_c('vs-td',{attrs:{\"data\":_vm.getFullName(data[index].user.personal)}},[_vm._v(\" \"+_vm._s(data[index].user.email)+\" \"),_c('br'),_vm._v(\" tel. \"+_vm._s(data[index].user.personal.phone)+\" \")]),_c('vs-td',[_c('vx-tooltip',{staticClass:\"mt-1\",staticStyle:{\"float\":\"left\",\"cursor\":\"pointer\",\"margin-top\":\"-8px\"},attrs:{\"title\":\"Editar líder de venta.\",\"color\":\"dark\",\"text\":\"Edita el líder de venta seleccionado.\"}},[_c('vs-button',{staticClass:\"rgred\",attrs:{\"type\":\"flat\",\"icon\":\"edit\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.openSubregionViewModel(data[index], tableRow)}}})],1)],1)],1)})}}],null,true)},[_c('div',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('h4',{staticClass:\"mb-2 ml-2\"},[_vm._v(\"Líderes de venta.\")]),_c('vs-button',{staticClass:\"mb-2\",attrs:{\"color\":\"dark\"},on:{\"click\":function($event){_vm.isCreateSubregionModalOpened = true, _vm.getUsersList('subregion_managers',true), _vm.currentRegion = data[index]}}},[_vm._v(\"Agregar líder de venta\")])],1),_c('template',{slot:\"thead\"},[_c('vs-th',{staticClass:\"bold\",attrs:{\"sort-key\":\"id\"}},[_vm._v(\"LIDER ID\")]),_c('vs-th',{staticClass:\"bold\",attrs:{\"sort-key\":\"name\"}},[_vm._v(\"LÍDER DE VENTA\")]),_c('vs-th',{staticClass:\"bold\",attrs:{\"sort-key\":\"name\"}},[_vm._v(\"CONTACTO\")]),_c('vs-th',{staticClass:\"bold\",attrs:{\"sort-key\":\"name\"}},[_vm._v(\"ACCIONES\")])],1)],2)],1):_vm._e()])],2)})}}])},[_c('div',{staticClass:\"flex flex-wrap-reverse items-center flex-grow justify-between mt-4 ml-4 mb-4\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('vs-button',{staticClass:\"w-1/3\",attrs:{\"color\":\"dark\"},on:{\"click\":function($event){_vm.isCreateRegionModalOpened = true, _vm.getUsersList('region_managers', true),_vm.regionModalTitle='Crear región'}}},[_vm._v(\"Crear región\")]),(_vm.isMounted)?_c('vs-dropdown',{staticClass:\"cursor-pointer mr-4 items-per-page-handler\",attrs:{\"vs-trigger-click\":\"\"}},[_c('div',{staticClass:\"p-3 border border-solid d-theme-border-grey-light rounded-full d-theme-dark-bg cursor-pointer flex items-center justify-between font-medium\"},[_c('span',{staticClass:\"mr-2\"},[_vm._v(\" \"+_vm._s(_vm.regionsPage * _vm.regionsPerPage - (_vm.regionsPerPage - 1))+\" - \"+_vm._s(_vm.regionsList.length - _vm.regionsPage * _vm.regionsPerPage > 0 ? _vm.regionsPage * _vm.regionsPerPage : _vm.regionsList.length)+\" de \"+_vm._s(_vm.queriedRegionsItems)+\" \")]),_c('feather-icon',{attrs:{\"icon\":\"ChevronDownIcon\",\"svgClasses\":\"h-4 w-4\"}})],1),_c('vs-dropdown-menu',_vm._l((_vm.itemsPerPageDefinitions),function(it){return _c('vs-dropdown-item',{key:it,on:{\"click\":function($event){_vm.regionsPerPage = it}}},[_c('span',[_vm._v(_vm._s(it))])])}),1)],1):_vm._e()],1),_c('template',{slot:\"thead\"},[_c('vs-th',{staticClass:\"bold\",attrs:{\"sort-key\":\"id\"}},[_vm._v(\"ID_REGIÓN\")]),_c('vs-th',{staticClass:\"bold\",attrs:{\"sort-key\":\"name\"}},[_vm._v(\"REGIÓN\")]),_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"GERENTE DE REGIÓN\")]),_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"ZONA\")]),_c('vs-th',{staticClass:\"bold\"},[_vm._v(\"ACCIONES\")])],1)],2)],1)],1)]),_c('vs-popup',{attrs:{\"active\":_vm.isCreateRegionModalOpened,\"title\":_vm.regionModalTitle},on:{\"update:active\":function($event){_vm.isCreateRegionModalOpened=$event}}},[(_vm.userList.length > 0)?_c('create-region-control',{ref:\"createRegionControl\",attrs:{\"userList\":_vm.getUserListOptions,\"currentRegion\":_vm.currentRegion,\"zonesList\":_vm.getZonesListOptions},on:{\"on-save\":function($event){return _vm.handleOnSaveRegion()},\"on-close\":function($event){_vm.isCreateRegionModalOpened = false}}}):_vm._e()],1),_c('vs-popup',{attrs:{\"active\":_vm.isCreateZoneModalOpened,\"title\":_vm.zoneModalTitle},on:{\"update:active\":function($event){_vm.isCreateZoneModalOpened=$event}}},[(_vm.userList.length > 0)?_c('create-zone-control',{ref:\"createZoneControl\",attrs:{\"currentZone\":_vm.currentZone,\"regionsList\":_vm.getRegionsListOptions,\"userList\":_vm.getUserListOptions},on:{\"on-save\":function($event){return _vm.handleOnSaveZone()},\"on-close\":function($event){_vm.isCreateZoneModalOpened = false, _vm.currentZone = {\n zone_manager: {\n user_id: null\n }\n }}}}):_vm._e()],1),_c('vs-popup',{attrs:{\"active\":_vm.isCreateSubregionModalOpened,\"title\":_vm.subregionModalTitle},on:{\"update:active\":function($event){_vm.isCreateSubregionModalOpened=$event}}},[_c('create-subregion-manager-control',{attrs:{\"currentSubregionManager\":_vm.currentSubregionManager,\"user-list\":_vm.getUserListOptions,\"currentRegion\":_vm.currentRegion},on:{\"on-save\":function($event){return _vm.handleOnSaveSubregion()},\"on-close\":function($event){_vm.isCreateSubregionModalOpened = false}}})],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"vx-row mb-4\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('label',{staticClass:\"vs-input--label\"},[_vm._v(\"Zona\")]),_c('v-select',{directives:[{name:\"validate\",rawName:\"v-validate\",value:(_vm.ruleRequired),expression:\"ruleRequired\"}],staticClass:\"vs-custom w-full\",attrs:{\"name\":\"region_id\",\"label\":\"text\",\"options\":_vm.zonesList,\"reduce\":text => text.value,\"clearable\":false,\"searchable\":true,\"placeholder\":\"Seleccione una opción\"},model:{value:(_vm.currentRegion.zone_id),callback:function ($$v) {_vm.$set(_vm.currentRegion, \"zone_id\", $$v)},expression:\"currentRegion.zone_id\"}},[_c('div',{attrs:{\"slot\":\"no-options\"},slot:\"no-options\"},[_vm._v(\"No hay coincidencias\")])]),(_vm.hasError('region_id'))?_c('v-error',{attrs:{\"error\":_vm.getErrorText('region_id')}}):_vm._e()],1)]),_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('vs-input',_vm._g({directives:[{name:\"validate\",rawName:\"v-validate\",value:(_vm.ruleRequired),expression:\"ruleRequired\"}],staticClass:\"w-full mb-4\",attrs:{\"name\":\"name\",\"label\":\"Nombre de región *\",\"placeholder\":\"Requerido\",\"icon-pack\":\"feather\",\"danger\":_vm.hasError('name'),\"danger-text\":_vm.getErrorText('name'),\"success\":_vm.isSuccessful('name')},model:{value:(_vm.currentRegion.name),callback:function ($$v) {_vm.$set(_vm.currentRegion, \"name\", $$v)},expression:\"currentRegion.name\"}},{ input: e => { _vm.currentRegion.name = _vm.upper(e) } }))],1)]),_c('div',{staticClass:\"vx-col w-full\"},[_c('label',{staticClass:\"vs-input--label\"},[_vm._v(\"Usuarios *\")]),_c('v-select',{staticClass:\"vs-custom w-full\",attrs:{\"name\":\"user_id\",\"label\":\"text\",\"options\":_vm.userList,\"reduce\":text => text.value,\"clearable\":true,\"searchable\":true,\"placeholder\":\"Seleccione una opción\"},model:{value:(_vm.currentRegion.region_manager.user_id),callback:function ($$v) {_vm.$set(_vm.currentRegion.region_manager, \"user_id\", $$v)},expression:\"currentRegion.region_manager.user_id\"}},[_c('div',{attrs:{\"slot\":\"no-options\"},slot:\"no-options\"},[_vm._v(\"No hay coincidencias\")])]),(_vm.hasError('users'))?_c('v-error',{attrs:{\"error\":_vm.getErrorText('users')}}):_vm._e()],1),_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[(_vm.errorMessage)?_c('vs-alert',{attrs:{\"color\":\"danger\"}},[_c('span',[_vm._v(_vm._s(_vm.errorMessage))])]):_vm._e()],1)]),_c('div',{staticClass:\"vx-row my-5\"},[_c('div',{staticClass:\"vx-col w-1/2\"},[_c('vs-button',{staticClass:\"w-full\",attrs:{\"color\":\"dark\"},on:{\"click\":function($event){return _vm.handleSave()}}},[_vm._v(\"Guardar\")])],1),_c('div',{staticClass:\"vx-col w-1/2\"},[_c('vs-button',{staticClass:\"w-full\",attrs:{\"type\":\"border\",\"color\":\"dark\"},on:{\"click\":function($event){return _vm.handleClose()}}},[_vm._v(\"Cerrar\")])],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n Zona\n text.value\"\n :clearable=\"false\"\n :searchable=\"true\"\n placeholder=\"Seleccione una opción\">\n No hay coincidencias\n \n\t\t\t\t\n \n \n \n \n { currentRegion.name = upper(e) } }\"\n />\n \n \n \n Usuarios *\n text.value\"\n :clearable=\"true\"\n :searchable=\"true\"\n placeholder=\"Seleccione una opción\">\n No hay coincidencias\n \n\t\t\t\t\n \n \n \n \n {{ errorMessage }}\n \n \n \n \n \n Guardar\n \n \n Cerrar\n \n \n \n\n\n\n\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CreateRegionControl.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CreateRegionControl.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CreateRegionControl.vue?vue&type=template&id=8f1fe0c0&\"\nimport script from \"./CreateRegionControl.vue?vue&type=script&lang=js&\"\nexport * from \"./CreateRegionControl.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('vs-input',_vm._g({directives:[{name:\"validate\",rawName:\"v-validate\",value:(_vm.ruleRequired),expression:\"ruleRequired\"}],staticClass:\"w-full mb-4\",attrs:{\"name\":\"name\",\"label\":\"Nombre de zona *\",\"placeholder\":\"Requerido\",\"icon-pack\":\"feather\",\"danger\":_vm.hasError('name'),\"danger-text\":_vm.getErrorText('name'),\"success\":_vm.isSuccessful('name')},model:{value:(_vm.currentZone.name),callback:function ($$v) {_vm.$set(_vm.currentZone, \"name\", $$v)},expression:\"currentZone.name\"}},{ input: e => { _vm.currentZone.name = _vm.upper(e) } }))],1),_c('div',{staticClass:\"vx-col w-full\"},[_c('label',{staticClass:\"vs-input--label\"},[_vm._v(\"Usuarios *\")]),_c('v-select',{staticClass:\"vs-custom w-full\",attrs:{\"name\":\"user_id\",\"label\":\"text\",\"options\":_vm.userList,\"reduce\":text => text.value,\"clearable\":true,\"searchable\":true,\"placeholder\":\"Seleccione una opción\"},model:{value:(_vm.currentZone.zone_manager.user_id),callback:function ($$v) {_vm.$set(_vm.currentZone.zone_manager, \"user_id\", $$v)},expression:\"currentZone.zone_manager.user_id\"}},[_c('div',{attrs:{\"slot\":\"no-options\"},slot:\"no-options\"},[_vm._v(\"No hay coincidencias\")])]),(_vm.hasError('users'))?_c('v-error',{attrs:{\"error\":_vm.getErrorText('users')}}):_vm._e()],1)]),_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[(_vm.errorMessage)?_c('vs-alert',{attrs:{\"color\":\"danger\"}},[_c('span',[_vm._v(_vm._s(_vm.errorMessage))])]):_vm._e()],1)]),_c('div',{staticClass:\"vx-row my-5\"},[_c('div',{staticClass:\"vx-col w-1/2\"},[_c('vs-button',{staticClass:\"w-full\",attrs:{\"color\":\"dark\"},on:{\"click\":function($event){return _vm.handleSave()}}},[_vm._v(\"Guardar\")])],1),_c('div',{staticClass:\"vx-col w-1/2\"},[_c('vs-button',{staticClass:\"w-full\",attrs:{\"type\":\"border\",\"color\":\"dark\"},on:{\"click\":function($event){return _vm.handleClose()}}},[_vm._v(\"Cerrar\")])],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n { currentZone.name = upper(e) } }\"\n />\n \n \n Usuarios *\n text.value\"\n :clearable=\"true\"\n :searchable=\"true\"\n placeholder=\"Seleccione una opción\">\n No hay coincidencias\n \n\t\t\t\t\n \n \n \n \n \n {{ errorMessage }}\n \n \n \n \n \n Guardar\n \n \n Cerrar\n \n \n \n\n\n\n\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CreateZoneControl.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CreateZoneControl.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CreateZoneControl.vue?vue&type=template&id=c46265ae&\"\nimport script from \"./CreateZoneControl.vue?vue&type=script&lang=js&\"\nexport * from \"./CreateZoneControl.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{\"id\":\"subregion-control\"}},[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[_c('vs-input',_vm._g({directives:[{name:\"validate\",rawName:\"v-validate\",value:(_vm.ruleRequired),expression:\"ruleRequired\"}],staticClass:\"w-full mb-4\",attrs:{\"disabled\":\"\",\"name\":\"name\",\"label\":\"Nombre de región *\",\"placeholder\":\"Requerido\",\"icon-pack\":\"feather\",\"danger\":_vm.hasError('name'),\"danger-text\":_vm.getErrorText('name'),\"success\":_vm.isSuccessful('name')},model:{value:(_vm.currentRegion.name),callback:function ($$v) {_vm.$set(_vm.currentRegion, \"name\", $$v)},expression:\"currentRegion.name\"}},{ input: e => { _vm.currentRegion.name = _vm.upper(e) } }))],1),_c('div',{staticClass:\"vx-col w-full\"},[_c('label',{staticClass:\"vs-input--label\"},[_vm._v(\"Usuarios *\")]),_c('v-select',{staticClass:\"vs-custom w-full\",attrs:{\"name\":\"user_id\",\"label\":\"text\",\"options\":_vm.userList,\"reduce\":text => text.value,\"clearable\":true,\"searchable\":true,\"placeholder\":\"Seleccione una opción\"},model:{value:(_vm.currentSubregionManager.user_id),callback:function ($$v) {_vm.$set(_vm.currentSubregionManager, \"user_id\", $$v)},expression:\"currentSubregionManager.user_id\"}},[_c('div',{attrs:{\"slot\":\"no-options\"},slot:\"no-options\"},[_vm._v(\"No hay coincidencias\")])]),(_vm.hasError('users'))?_c('v-error',{attrs:{\"error\":_vm.getErrorText('users')}}):_vm._e(),_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-full\"},[(_vm.errorMessage)?_c('vs-alert',{attrs:{\"color\":\"danger\"}},[_c('span',[_vm._v(_vm._s(_vm.errorMessage))])]):_vm._e()],1)]),_c('div',{staticClass:\"vx-row my-5\"},[_c('div',{staticClass:\"vx-col w-1/2\"},[_c('vs-button',{staticClass:\"w-full\",attrs:{\"color\":\"dark\"},on:{\"click\":function($event){return _vm.handleSave()}}},[_vm._v(\"Guardar\")])],1),_c('div',{staticClass:\"vx-col w-1/2\"},[_c('vs-button',{staticClass:\"w-full\",attrs:{\"type\":\"border\",\"color\":\"dark\"},on:{\"click\":function($event){return _vm.handleClose()}}},[_vm._v(\"Cerrar\")])],1)])],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n\n \n { currentRegion.name = upper(e) } }\"\n />\n \n\n \n Usuarios *\n text.value\"\n :clearable=\"true\"\n :searchable=\"true\"\n placeholder=\"Seleccione una opción\">\n No hay coincidencias\n \n\t\t\t\t\n \n \n \n {{ errorMessage }}\n \n \n \n \n \n Guardar\n \n \n Cerrar\n \n \n \n \n \n\n\n\n\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CreateSubregionManagerControl.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CreateSubregionManagerControl.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CreateSubregionManagerControl.vue?vue&type=template&id=7225d211&\"\nimport script from \"./CreateSubregionManagerControl.vue?vue&type=script&lang=js&\"\nexport * from \"./CreateSubregionManagerControl.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n \n \n\n \n \n \n Catálogo de zonas y regiones.\n \n \n \n\n \n \n En este apartado podrás administrar las zonas y regiones dentro de tu programa\n \n \n\n \n \n \n \n Crear zona\n\n \n \n \n {{ zonesPage * zonesPerPage - (zonesPerPage - 1) }} - \n {{ zonesList.length - zonesPage * zonesPerPage > 0 ? zonesPage * zonesPerPage : zonesList.length }} de {{ queriedZonesItems }}\n \n \n \n \n \n {{it}}\n \n \n \n \n\n \n\t\t\t\t\t\tID_ZONA\n\t\t\t\t\t\tZONA\n\t\t\t\t\t\tGERENTE DE ZONA\n\t\t\t\t\t\tACCIONES\n\t\t\t\t\t\n\n \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{{ data[index].id }}\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{{ data[index].name }}\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\n {{ data[index].zone_manager ? getFullName(data[index].zone_manager.user.personal) : 'Sin asignar' }}\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\n \n \n \n \n \n \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n \n \n \n\n \n \n \n \n Crear región\n\n \n \n \n {{ regionsPage * regionsPerPage - (regionsPerPage - 1) }} - \n {{ regionsList.length - regionsPage * regionsPerPage > 0 ? regionsPage * regionsPerPage : regionsList.length }} de {{ queriedRegionsItems }}\n \n \n \n \n \n {{it}}\n \n \n \n \n\n \n\t\t\t\t\t\tID_REGIÓN\n\t\t\t\t\t\tREGIÓN\n\t\t\t\t\t\tGERENTE DE REGIÓN\n\t\t\t\t\t\tZONA\n\t\t\t\t\t\tACCIONES\n\t\t\t\t\t\n\n \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{{ data[index].id }}\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{{ data[index].name }}\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{{ data[index].region_manager ? getFullName(data[index].region_manager.user.personal) : 'Sin asignar' }}\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{{ data[index].zone ? data[index].zone.name : 'Sin asignar' }}\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\n \n \n \n \n \n \n\t\t\t\t\t\t\t\t\n \n\t\t\t\t\t\t\t\n\n \n \n \n \n Líderes de venta.\n Agregar líder de venta\n \n\n \n LIDER ID\n LÍDER DE VENTA\n CONTACTO\n ACCIONES\n \n\n \n \n \n {{ data[index].id }}\n \n\n \n {{ getFullName(data[index].user.personal) }}\n \n\n \n {{data[index].user.email}}\n tel. {{data[index].user.personal.phone}}\n \n \n \n \n \n \n \n \n\n \n \n \n\t\t\t\t\t\t\n\t\t\t\t\t\n \n \n \n \n\n \n 0\"\n :userList=\"getUserListOptions\"\n ref=\"createRegionControl\"\n :currentRegion=\"currentRegion\"\n :zonesList=\"getZonesListOptions\"\n @on-save=\"handleOnSaveRegion()\"\n @on-close=\"isCreateRegionModalOpened = false\"\n />\n \n\n \n 0\"\n ref=\"createZoneControl\"\n :currentZone=\"currentZone\"\n :regionsList=\"getRegionsListOptions\"\n :userList=\"getUserListOptions\"\n @on-save=\"handleOnSaveZone()\"\n @on-close=\"isCreateZoneModalOpened = false, currentZone = {\n zone_manager: {\n user_id: null\n }\n }\"\n />\n \n \n \n \n \n\n \n\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RegionsCatalog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RegionsCatalog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./RegionsCatalog.vue?vue&type=template&id=2310da18&\"\nimport script from \"./RegionsCatalog.vue?vue&type=script&lang=js&\"\nexport * from \"./RegionsCatalog.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
En este apartado podrás administrar las zonas y regiones dentro de tu programa