{"version":3,"sources":["webpack:///./src/pages/planificacion/agenda/Agenda.vue?3bb5","webpack:///./src/pages/planificacion/agenda/components/AgendaLegend.vue?2a48","webpack:///src/pages/planificacion/agenda/components/AgendaLegend.vue","webpack:///./src/pages/planificacion/agenda/components/AgendaLegend.vue?f046","webpack:///./src/pages/planificacion/agenda/components/AgendaLegend.vue","webpack:///./src/pages/planificacion/agenda/Agenda.vue?b994","webpack:///./src/pages/planificacion/agenda/AgendaData.js","webpack:///src/pages/planificacion/agenda/Agenda.vue","webpack:///./src/pages/planificacion/agenda/Agenda.vue?7da9","webpack:///./src/pages/planificacion/agenda/Agenda.vue?7e4a"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","internalShowing","on","$event","slot","scopedSlots","_u","key","fn","_l","CITA","item","estados","staticClass","coloresEstado","_v","_s","descripcionesEstado","OPERACIONCRM","index","coloresPrioridad","$options","filters","lowercase","descripcionesPrioridad","color","descripcion","proxy","staticRenderFns","mixins","props","tiposDeActuacionLegend","type","required","data","component","VChip","VSimpleTable","title","toolbarOptions","clickToolbarOption","showingDialogs","legends","$set","directives","name","rawName","value","expression","sinFechaFijada","_f","mesAnio","clickVerSinFechaFijada","ref","formattedEventos","changeCalendar","clickEvento","clickDay","event","style","textColor","formatEventTime","start","end","date","week","class","first","top","nowY","model","callback","$$v","fecha","$vuetify","icons","values","prev","$refs","calendar","next","selectedEvento","subtitle","_e","selectAgenda","Vue","idempleado","idtecnico","apiCalls","apiFilterCita","APIFilter","fdesde","firstDayOfMonth","fhasta","lastDayOfMonth","addExact","addGTE","addLTE","push","method","params","filter","apiFilterOperacionCRM","apiFilterParteTrabajo","setOperator","API_FILTER_OPERATORS","AND","endOfDay","PARTE_TRABAJO","pendiente","$api","batchCall","components","AgendaLegend","beforeRouteLeave","to","from","legend","visible","icon","addCita","addOperacionCRM","irAHoy","verAgendaDia","verAgendaSemana","verAgendaMes","evento","TACTUACION","AGENDA","ready","format24h","tipoEvento","cita","operacioncrm","parteTrabajo","inIdsPartesOffline","computed","eventos","usuarioIdtecnico","usuarioIdempleado","appComerciales","cal","titulo","allDay","id","timed","fechaFin","toReturn","watch","handler","new_type","prev_type","mounted","created","methods","getCurrentTime","scrollToTime","updateTime","setInterval","setToday","loadPage","Data","resp","loadOfflineStatus","idcita","idoperacioncrm","idparte_trabajo","console","day","option","query","_filter","conFfijada","options","fixed","tecnico","VAlert","VBtn","VCalendar","VCard","VCardSubtitle","VCardTitle","VCol","VDialog","VRow","VSheet"],"mappings":"iIAAA,W,2CCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,aAAa,CAACE,MAAM,CAAC,QAAUN,EAAIO,iBAAiBC,GAAG,CAAC,iBAAiB,SAASC,GAAQT,EAAIO,gBAAgBE,KAAU,CAACL,EAAG,WAAW,CAACM,KAAK,UAAU,CAACN,EAAG,iBAAiB,CAACO,YAAYX,EAAIY,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,WAAW,MAAO,CAACV,EAAG,QAAQ,CAACJ,EAAIe,GAAIf,EAAIgB,KAAW,QAAE,SAASC,GAAM,OAAOb,EAAG,KAAK,CAACS,IAAII,EAAKC,SAAS,CAACd,EAAG,KAAK,CAACA,EAAG,SAAS,CAACe,YAAY,OAAOb,MAAM,CAAC,MAAQN,EAAIgB,KAAKI,cAAcH,GAAM,KAAO,GAAG,MAAQ,GAAG,MAAQ,KAAK,CAACb,EAAG,SAAS,CAACJ,EAAIqB,GAAG,aAAa,GAAGjB,EAAG,KAAK,CAACJ,EAAIqB,GAAG,IAAIrB,EAAIsB,GAAGtB,EAAIgB,KAAKO,oBAAoBN,IAAO,YAAWjB,EAAIe,GAAIf,EAAIwB,aAAsB,WAAE,SAASP,EAAKQ,GAAO,OAAOrB,EAAG,KAAK,CAACS,IAAIY,GAAO,CAACrB,EAAG,KAAK,CAACA,EAAG,SAAS,CAACe,YAAY,OAAOb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WACAC,wBAEAM,cACAvF,2BACAgF,WACAC,sBAIA9E,gBACAqF,UACApF,YAEAuC,oBACAvE,YACAQ,oBACA6G,mBACAC,cACAC,SACAC,aACAC,YACAC,OACAC,eACAC,gBAEAC,wBAGAC,UACA/D,4CACAgE,gDACAzG,0CACA0G,qDACAC,uDACAC,wDACAzF,QAPA,WAQA,2EAEA0F,IAVA,WAWA,4CAEAxE,KAbA,WAcA,mEAEAtC,uBAhBA,WAgBA,MACA,KACA,8DACA,MACA,EAFI,EAAJ,iBAGA,gDAHA,IAGA,0CACA+G,0FACArH,8BACA,kBACAM,EACA,CACAN,QACAC,gBAGA,GACAK,QACAN,QACAC,iBAhBA,+BAqBA,UAEA4B,iBAzCA,WAyCA,UAEA,EACA,EACA,EAHA,KAKA,uGAAI,EAAJ,iBACA,wCADA,IACA,0CACAyF,qFACAtH,oCACAgH,QACAO,YACAnG,cACAqC,gBACApB,cACAC,WACAkF,QACAxH,QACA0G,gCACAvE,+BAbA,+BAkBA,0IAAI,EAAJ,iBACA,gDADA,IACA,0CACAnC,oDACAgH,QACAO,oBACAnG,uCACAqC,4CACApB,yBACAC,SACAkF,SACAxH,QACA0G,wCACAvE,+BAZA,+BAiBA,6HAAI,EAAJ,iBACA,gDADA,IACA,0CACA,aACA,gBAEAsF,EADA,gBACAA,gBAEAA,uCAGAzH,8BACAgH,QACAO,qBACAnG,6FACAqC,+BACApB,QACAC,MACAkF,SACAxH,QACA0G,wCACAvE,gCApBA,+BAyBA,UAEAX,eA7GA,WA6GA,MACA,IACA,kEAAI,EAAJ,iBACA,gDADA,IACA,0CACA,UACAkG,KAHA,+BAOA,WAGAC,OAEApH,MACAqH,QADA,SACAC,EAAAC,GAAA,WACA,YACA,2BACA,uBAMAC,QA7MA,WA8MA,cACA,oBACA,mBAEAC,QAlNA,WAkNA,wKACA,cADA,uBAEA,aAFA,8CAIAC,SACAC,eADA,WAEA,wEAEAC,aAJA,WAKA,4BACA,wBACA,0BAEAC,WATA,WASA,WACAC,wBAAA,mCAEAC,SAZA,WAaA,cACA,6BAEAC,SAhBA,WAgBA,qKACA,sBACA,UACA,0BAEA,yGACA,yEANA,SAOAC,iFAPA,OAOAC,EAPA,OAQA,iBARA,8CAUAC,kBA1BA,WA0BA,wKACA,6CADA,OACA,qBADA,qDAGA5G,eA7BA,WA6BA,wKACA,aADA,OAEA,oCAFA,8CAIAC,YAjCA,SAiCAsE,GAGA,OAFA,sBACA,4BACA,oBACA,0BACA,sBACAjF,wBACAuD,QACAgE,qBAGA,MACA,kCACA,sBACAvH,yCACAuD,QACAiE,6BAGA,MACA,kCACA,gDACA,sBACA,uBACA,sBACAxH,mCACAuD,QACAkE,gCAIA,sBACA,uBACA,sBACAzH,kCACAuD,QACAkE,+BAIA,MACA,QACAC,gFAGA9G,SA9EA,SA8EA+G,GACA,kCACA,mBAEA3G,gBAlFA,SAkFAG,GACA,2CAEAxB,mBArFA,SAqFAiI,GACA,UACA,gCACA,+BACA,MACA,iCACA,sBACA5H,uBACA6H,OACAjG,oCAGA,MACA,yCACA,sBACA5B,wCACA6H,OACAjG,oCAGA,MACA,gCACA,gBACA,MACA,sCACA,kCACA,MACA,yCACA,mCACA,MACA,sCACA,mCACA,MACA,QACA8F,+DAGAnH,uBA1HA,WA2HA,sBACA,uBACA,sBACAP,oCACA6H,OACAC,wBACAC,YACA7H,SACA8H,SAAAC,WAEAnF,QACA5C,iCACA8H,SAAAC,WAEAjF,QACA9C,mDACA8H,SAAAC,WAEAC,SACAhI,4BACA8H,SAAAC,mBCjd8W,I,yJCQ1W3I,EAAY,eACd,EACA1C,EACAmC,GACA,EACA,KACA,KACA,MAIa,aAAAO,EAAiB,QAchC,IAAkBA,EAAW,CAAC6I,SAAA,KAAOC,OAAA,KAAKC,YAAA,KAAUC,QAAA,KAAMC,cAAA,OAAcC,WAAA,OAAWC,OAAA,KAAKC,UAAA,KAAQC,OAAA,KAAKC,SAAA","file":"js/chunk-39d29245.7a8d7c19.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Agenda.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b10-legend',{attrs:{\"showing\":_vm.internalShowing},on:{\"update:showing\":function($event){_vm.internalShowing=$event}}},[_c('template',{slot:\"legend\"},[_c('v-simple-table',{scopedSlots:_vm._u([{key:\"default\",fn:function(){return [_c('tbody',[_vm._l((_vm.CITA.estado),function(item){return _c('tr',{key:item.estados},[_c('td',[_c('v-chip',{staticClass:\"mr-1\",attrs:{\"color\":_vm.CITA.coloresEstado[item],\"dark\":\"\",\"small\":\"\",\"label\":\"\"}},[_c('strong',[_vm._v(\"Cita\")])])],1),_c('td',[_vm._v(\" \"+_vm._s(_vm.CITA.descripcionesEstado[item])+\" \")])])}),_vm._l((_vm.OPERACIONCRM.prioridad),function(item,index){return _c('tr',{key:index},[_c('td',[_c('v-chip',{staticClass:\"mr-1\",attrs:{\"color\":_vm.OPERACIONCRM.coloresPrioridad[item],\"dark\":\"\",\"small\":\"\",\"label\":\"\"}},[_c('strong',[_vm._v(\"Operaciones\")])])],1),_c('td',[_vm._v(\" Prioridad \"+_vm._s(_vm.$options.filters.lowercase(_vm.OPERACIONCRM.descripcionesPrioridad[item]))+\" \")])])}),_vm._l((_vm.tiposDeActuacionLegend),function(item,index){return _c('tr',{key:index},[_c('td',[_c('v-chip',{staticClass:\"mr-1\",attrs:{\"color\":item.color,\"dark\":\"\",\"small\":\"\",\"label\":\"\"}},[_c('strong',[_vm._v(\"Parte de trabajo\")])])],1),_c('td',[_vm._v(\" \"+_vm._s(item.descripcion)+\" \")])])})],2)]},proxy:true}])})],1)],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n \r\n\r\n\r\n\r\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!./AgendaLegend.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!./AgendaLegend.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AgendaLegend.vue?vue&type=template&id=aac574c0&\"\nimport script from \"./AgendaLegend.vue?vue&type=script&lang=js&\"\nexport * from \"./AgendaLegend.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/* vuetify-loader */\nimport installComponents from \"!../../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VChip } from 'vuetify/lib/components/VChip';\nimport { VSimpleTable } from 'vuetify/lib/components/VDataTable';\ninstallComponents(component, {VChip,VSimpleTable})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b10-base',[_c('b10-toolbar',{attrs:{\"title\":_vm.title,\"options\":_vm.toolbarOptions,\"back\":\"\"},on:{\"click-option\":_vm.clickToolbarOption}}),_c('b10-page-content',[_c('agenda-legend',{attrs:{\"showing\":_vm.showingDialogs.legends,\"tipos-de-actuacion-legend\":_vm.tiposDeActuacionLegend,\"name\":\"AgendaLegend\"},on:{\"update:showing\":function($event){return _vm.$set(_vm.showingDialogs, \"legends\", $event)}}}),_c('v-alert',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.sinFechaFijada),expression:\"sinFechaFijada\"}],staticClass:\"ma-2\",attrs:{\"type\":\"warning\",\"value\":true,\"dismissible\":\"\"}},[_c('v-row',{attrs:{\"align\":\"center\"}},[_c('v-col',{staticClass:\"grow pa-0\"},[_vm._v(\" Tienes asignados \"+_vm._s(_vm.sinFechaFijada)+\" \"+_vm._s(_vm._f(\"pluralize\")('parte',_vm.sinFechaFijada, 's'))+\" de trabajo sin fecha fijada (\"+_vm._s(_vm._f(\"pluralize\")('creado',_vm.sinFechaFijada, 's'))+\" durante \"+_vm._s(_vm.mesAnio)+\") \")]),_c('v-col',{staticClass:\"shrink\"},[_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":_vm.clickVerSinFechaFijada}},[_vm._v(\" Ver \")])],1)],1)],1),_c('v-sheet',{staticClass:\"ma-2\",attrs:{\"height\":700}},[_c('v-calendar',{ref:\"calendar\",attrs:{\"type\":_vm.type,\"events\":_vm.formattedEventos,\"weekdays\":[1, 2, 3, 4, 5, 6, 0]},on:{\"change\":_vm.changeCalendar,\"click:event\":_vm.clickEvento,\"click:date\":_vm.clickDay,\"click:more\":_vm.clickDay},scopedSlots:_vm._u([{key:\"event\",fn:function(ref){\nvar event = ref.event;\nreturn [_c('div',{staticClass:\"pl-1 v-event-summary\"},[_c('strong',{style:({color: event.textColor})},[_vm._v(_vm._s(event.name))]),_c('br'),_vm._v(\" \"+_vm._s(_vm.formatEventTime(event.start))+\" - \"+_vm._s(_vm.formatEventTime(event.end))+\" \")])]}},{key:\"day-body\",fn:function(ref){\nvar date = ref.date;\nvar week = ref.week;\nreturn [_c('div',{staticClass:\"v-current-time\",class:{ first: date === week[0].date },style:({ top: _vm.nowY })})]}}]),model:{value:(_vm.fecha),callback:function ($$v) {_vm.fecha=$$v},expression:\"fecha\"}})],1),_c('b10-fab-button',{attrs:{\"left\":\"\",\"icon\":_vm.$vuetify.icons.values.prev},on:{\"click\":function($event){return _vm.$refs.calendar.prev()}}}),_c('b10-fab-button',{attrs:{\"icon\":_vm.$vuetify.icons.values.next},on:{\"click\":function($event){return _vm.$refs.calendar.next()}}})],1),_c('v-dialog',{model:{value:(_vm.showingDialogs.evento),callback:function ($$v) {_vm.$set(_vm.showingDialogs, \"evento\", $$v)},expression:\"showingDialogs.evento\"}},[(_vm.selectedEvento)?_c('v-card',[_c('v-card-title',[_vm._v(\" \"+_vm._s(_vm.selectedEvento.name)+\" \")]),_c('v-card-subtitle',[_vm._v(\" \"+_vm._s(_vm.selectedEvento.subtitle)+\" \")])],1):_vm._e()],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { APIFilter, API_FILTER_OPERATORS } from '@/utils/api'\r\nimport { firstDayOfMonth, lastDayOfMonth, endOfDay } from '@/utils/date'\r\nimport { PARTE_TRABAJO } from '@/utils/consts'\r\n\r\nexport default {\r\n async selectAgenda (Vue, idempleado, fecha, idtecnico) {\r\n let apiCalls = []\r\n const apiFilterCita = new APIFilter()\r\n const fdesde = firstDayOfMonth(fecha)\r\n const fhasta = lastDayOfMonth(fecha)\r\n apiFilterCita\r\n .addExact('idempleado', idempleado)\r\n .addGTE('fcita', fdesde)\r\n .addLTE('fcita', fhasta)\r\n apiCalls.push({ name: 'selectCita', method: 'cita.select', params: { filter: apiFilterCita } })\r\n const apiFilterOperacionCRM = new APIFilter()\r\n apiFilterOperacionCRM\r\n .addExact('idempleado_responsable', idempleado)\r\n .addExact('abierta', true)\r\n .addGTE('fproximarevision', fdesde)\r\n .addLTE('fproximarevision', fhasta)\r\n apiCalls.push({ name: 'selectOperacionCRM', method: 'operacioncrm.selectList', params: { filter: apiFilterOperacionCRM } })\r\n const apiFilterParteTrabajo = new APIFilter()\r\n apiFilterParteTrabajo\r\n .setOperator(API_FILTER_OPERATORS.AND)\r\n .addGTE('fparte', firstDayOfMonth(fecha))\r\n .addLTE('fparte', endOfDay(lastDayOfMonth(fecha)))\r\n .addExact('estado', PARTE_TRABAJO.estados.pendiente)\r\n .addExact('idtecnico', idtecnico)\r\n apiCalls.push({ name: 'selectParteTrabajo', method: 'parteTrabajo.selectAsignados', params: { filter: apiFilterParteTrabajo } })\r\n return await Vue.$api.batchCall(apiCalls)\r\n }\r\n}\r\n","\r\n\r\n\r\n\r\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!./Agenda.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!./Agenda.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Agenda.vue?vue&type=template&id=d4b17c6e&\"\nimport script from \"./Agenda.vue?vue&type=script&lang=js&\"\nexport * from \"./Agenda.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Agenda.vue?vue&type=style&index=0&lang=scss&\"\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/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAlert } from 'vuetify/lib/components/VAlert';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCalendar } from 'vuetify/lib/components/VCalendar';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardSubtitle } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSheet } from 'vuetify/lib/components/VSheet';\ninstallComponents(component, {VAlert,VBtn,VCalendar,VCard,VCardSubtitle,VCardTitle,VCol,VDialog,VRow,VSheet})\n"],"sourceRoot":""}