<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["admin~18338e9c"],{"09c0":function(t,e,n){"use strict";var a=function(){var t=this,e=t._self._c;return e("div",[e("b-dropdown",{ref:"dropdown",staticClass:"notifications",attrs:{size:"sm",id:"dropdown-notificaciones",dropleft:"","no-caret":"","no-flip":""},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("i",{staticClass:"fas fa-bell",staticStyle:{"font-size":"20px"}}),t.notificaciones&amp;&amp;t.notificaciones.length&gt;0?e("div",{staticClass:"notifications-menu"},[e("b-badge",[t._v(t._s(t.notificaciones.length))])],1):t._e()]},proxy:!0}])},[e("b-dropdown-header",{staticClass:"text-center border-bottom"},[t._v("Nuevas notificaciones: "),e("span",{staticClass:"red"},[t._v(t._s(t.notificaciones.length))])]),t.notificaciones&amp;&amp;t.notificaciones.length&gt;0?e("div",[t._l(t.notificaciones,(function(n){return[e("div",{key:n.id,staticClass:"d-flex align-items-center p-2"},[e("i",{staticClass:"fas fa-bell mr-2",staticStyle:{cursor:"pointer"},on:{click:function(e){return t.marcarComoLeida(n)}}}),e("div",{staticStyle:{width:"300px"}},[e("b-dropdown-text",{domProps:{innerHTML:t._s(n.data.mensaje)}}),e("span",{staticClass:"red",staticStyle:{"font-size":"13px"}},[t._v(t._s(t.formaterFecha(n.created_at)))])],1)])]})),e("div",{staticClass:"border-top pt-2 text-center"},[e("span",{staticStyle:{color:"rgb(108, 117, 125)"},attrs:{role:"button"},on:{click:function(e){return t.marcarComoLeidas()}}},[t._v("MARCAR COMO LEIDAS")])])],2):e("b-dropdown-text",{staticClass:"p-2"},[t._v("No tienes notificaciones.")])],1)],1)},s=[],i=(n("14d9"),n("4d90"),n("99af"),{data:function(){return{notificaciones:[]}},computed:{user:function(){return this.$store.getters.getUser}},created:function(){this.getNotificaciones()},mounted:function(){var t=this;this.user&amp;&amp;this.user.id&amp;&amp;this.$echo.channel("manager.user."+this.user.id).on("new.notification",(function(e){t.notificaciones.push(e)}))},methods:{getNotificaciones:function(){var t=this,e={filters:{}};this.$store.dispatch(this.config.getVuexAlias("back.notificaciones.get"),e).then((function(e){t.notificaciones=e.data.data}))},marcarComoLeida:function(t){var e=this,n={filters:{},notificacion_id:t.id};this.$store.dispatch(this.config.getVuexAlias("back.notificaciones.marcar-como-leida"),n).then((function(t){e.getNotificaciones(),e.notificaciones==[]&amp;&amp;e.$refs.dropdown.hide(),e.$toast.success("Notificación leída correctamente")})).catch((function(t){e.$toast.error(t.response.data.message)}))},marcarComoLeidas:function(){var t=this,e={filters:{}};this.$store.dispatch(this.config.getVuexAlias("back.notificaciones.marcar-como-leidas"),e).then((function(e){t.notificaciones=[],t.$refs.dropdown.hide(),t.$toast.success("Notificaciónes leídas correctamente")})).catch((function(e){t.$toast.error(e.response.data.message)}))},formaterFecha:function(t){if(!t)return"";var e=new Date(t),n=String(e.getDate()).padStart(2,"0"),a=String(e.getMonth()+1).padStart(2,"0"),s=e.getFullYear(),i=String(e.getHours()).padStart(2,"0"),c=String(e.getMinutes()).padStart(2,"0");return"".concat(n,"-").concat(a,"-").concat(s," ").concat(i,":").concat(c)}}}),c=i,o=(n("b8cf"),n("2877")),r=Object(o["a"])(c,a,s,!1,null,null,null);e["a"]=r.exports},1056:function(t,e,n){"use strict";var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pt-5"},[e("ValidationObserver",{ref:"observer",attrs:{tag:"form"},on:{submit:function(e){return e.preventDefault(),t.submit()}}},[e("ValidationProvider",{attrs:{name:"mensaje",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(n){var a=n.errors;return[e("CkEditorComponent",{attrs:{id:"mensaje"},model:{value:t.mensaje,callback:function(e){t.mensaje=e},expression:"mensaje"}}),e("span",{staticClass:"error invalid-feedback",attrs:{id:"exampleInputEmail1-error"}},[t._v(t._s(a[0]))])]}}])}),e("div",{staticClass:"d-flex justify-content-end pt-3 pb-3"},[e("Button",{attrs:{type:"submit",name:"crear",id:"crear"}},[t._v("Enviar")])],1)],1)],1)},s=[],i=n("c7eb"),c=n("1da1"),o=n("0bfa"),r={props:["incidencia_id"],data:function(){return{conf:{},mensaje:""}},methods:{submit:function(){var t=this;return Object(c["a"])(Object(i["a"])().mark((function e(){var n,a;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$refs.observer.validate();case 2:n=e.sent,n&amp;&amp;(a={filters:{},mensaje:t.mensaje,incidencia_id:t.incidencia_id},t.$store.dispatch(t.config.getVuexAlias("back.mensajeria.create.mensaje"),a).then((function(e){t.$toast.success(e.data.message),t.$emit("refresh")})));case 4:case"end":return e.stop()}}),e)})))()}},components:{CkEditorComponent:o["a"]}},d=r,u=n("2877"),f=Object(u["a"])(d,a,s,!1,null,null,null);e["a"]=f.exports},"12a9":function(t,e,n){},b8cf:function(t,e,n){"use strict";n("12a9")},dbc55:function(t,e,n){"use strict";n("b0c0");var a=function(){var t=this,e=t._self._c;return e("b-card",{staticClass:"rounded",attrs:{"no-body":""}},[e("b-card-text",{staticClass:"p-2",style:"background-color:"+t.color},[e("div",[e("div",{staticClass:"d-flex justify-content-between"},[e("h6",[t._v(t._s(t.mensaje.user.name+" "+t.mensaje.user.surnames))]),e("h6",{staticClass:"pl-5"},[t._v(t._s(t.mensaje.user.email))])])])]),e("b-card-text",[e("div",{staticClass:"p-2"},[e("span",{domProps:{innerHTML:t._s(t.mensaje.mensaje)}})])]),e("b-card-text",{staticClass:"p-2",style:"background-color:"+t.color},[t._v("\n        "+t._s(t.mensaje.created_at)+"\n    ")])],1)},s=[],i={props:["mensaje","color"]},c=i,o=n("2877"),r=Object(o["a"])(c,a,s,!1,null,null,null);e["a"]=r.exports}}]);
//# sourceMappingURL=admin~18338e9c.37662107.js.map</pre></body></html>