(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8915ccd0"],{"10da":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("tr",[s("wi-list-data-table-actions",{attrs:{config:t.scheduleConfig,props:t.props},scopedSlots:t._u([{key:"actions",fn:function(){return[t.schedule.repeat?s("v-btn",{directives:[{name:"prms",rawName:"v-prms",value:{id:t.scheduleConfig.config.id["update"],mode:"disabled"},expression:"{'id': scheduleConfig.config.id['update'], mode: 'disabled'}"}],attrs:{icon:"",small:"",alt:"Desligar envio",disabled:5==t.schedule.status_id},on:{click:function(e){return t.disableScheduleRepeat()}}},[s("v-icon",{attrs:{color:"orange"}},[t._v(" power_settings_new ")])],1):t._e()]},proxy:!0}])}),s("td",{staticClass:"text-xs-left",staticStyle:{padding:"0px !important"}},[s("span",{staticClass:"contact-badge"},[t._v(" #"+t._s(t.schedule.id))])]),s("td",{staticClass:"text-xs-left",staticStyle:{padding:"0 10px !important"}},[s("TalkContactListItem",{attrs:{contact:t.schedule.contact}})],1),s("td",{staticClass:"text-xs-left",staticStyle:{padding:"0 10px !important"}},[t.schedule.name?s("strong",[t._v(" "+t._s(t._f("stringlength")(t.schedule.name,30))+" ")]):t._e(),t.schedule.name&&t.schedule.person?s("br"):t._e(),t.schedule.person&&t.schedule.person.name?s("span",[t._v(" "+t._s(t._f("stringlength")(t.schedule.person.name,30))+" ")]):t._e(),t.schedule.name||t.schedule.person?t._e():s("strong",[t._v("- - -")])]),s("td",{staticClass:"text-xs-left",staticStyle:{padding:"0 10px !important"}},[t.schedule.status?s("div",{staticStyle:{"text-align":"center"}},[s("v-icon",{attrs:{color:t.schedule.status.color}},[t._v(" "+t._s(t.schedule.status.icon)+" ")]),s("br"),s("strong",{domProps:{textContent:t._s(t.schedule.status.name)}})],1):s("strong",[t._v(t._s(t.schedule.status_id))])]),s("td",{staticClass:"text-xs-center",staticStyle:{padding:"0 10px !important","max-width":"240px","min-width":"240px"}},[s("strong",[t.schedule.repeat?s("span",{staticStyle:{color:"orange"}},[s("span",[t._v("Repetir ")]),1==t.schedule.repeat_type_id?s("span",[t._v(" todo mês")]):2==t.schedule.repeat_type_id?s("span",[t._v(" todo ano")]):3==t.schedule.repeat_type_id?s("span",[t._v(" toda semana")]):t._e()]):s("span",{staticStyle:{color:"blue"}},[t._v("Envio único")])]),s("br"),[4,5,7].includes(t.schedule.status_id)?s("span",[t._v(" Enviado em "),s("strong",[t._v(t._s(t._f("moment")(t.schedule.date_time,"DD/MM/YY HH:mm")))])]):s("span",[t.schedule.repeat?s("span",[t._v("Próximo envio em ")]):s("span",[t._v("Envio em ")]),s("strong",[t._v(t._s(t._f("moment")(t.schedule.next_date_time,"DD/MM/YY HH:mm")))])])])],1)},n=[],o=(s("38cf"),s("5530")),c=s("fe75"),i=s("b150"),l={name:"TalkSchedule",computed:{editData:function(){return delete this.props.item.status_id,this.props},schedule:function(){return this.props.item},scheduleConfig:function(){return Object(o["a"])(Object(o["a"])({},this.config),{},{config:Object(o["a"])(Object(o["a"])({},this.config.config),{},{actions:Object(o["a"])(Object(o["a"])({},this.config.config.actions),{},{delete:!this.schedule.repeat})})})}},methods:{disableScheduleRepeat:function(){var t=this;this.$WiApiPut({uri:"talks/schedule/".concat(this.schedule.id),data:{status_id:5},config:{msgLoad:{title:"Desligando agendamento...",text:"Não irá demorar mais que alguns segundos."},msgSucess:{title:"Agendamento desligado com sucesso.",text:"O agendamento será desligado e não será mais enviado."},msgError:{title:"Erro ao desligar agendamento",text:"Tente novamente ou contacte o suporte."},msgAsk:{title:"Tem certeza que deseja desligar o agendamento?",text:"Esta ação não poderá ser desfeita."}},callback:function(){t.config.refresh()}})}},props:{config:Object,props:Object},components:{TalkContactListItem:c["a"],WiListDataTableActions:i["a"]}},r=l,d=(s("e075"),s("2877")),u=Object(d["a"])(r,a,n,!1,null,"7805d8f2",null);e["default"]=u.exports},"13d9":function(t,e,s){},"3f56":function(t,e,s){"use strict";s("13d9")},"79f6":function(t,e,s){},e075:function(t,e,s){"use strict";s("79f6")},fe75:function(t,e,s){"use strict";var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-list",{staticClass:"talk-toolbar__title contact-info__list",attrs:{color:"transparent",two:"",dense:"",flat:""}},[s("v-list-tile",{staticClass:"talk-toolbar__title-text contact-info__tile",attrs:{avatar:"",flat:"",color:"transparent"}},[s("v-list-tile-avatar",{staticStyle:{"min-width":"45px",padding:"0px"}},[s("v-avatar",{staticClass:"contact-avatar",attrs:{size:"40"}},[t.contact.file&&t.contact.file.url?s("img",{attrs:{src:t.contact.file.url,alt:"Avatar"}}):1==t.contact.type?s("img",{attrs:{src:"static/icons/user_icon_1.png",alt:"Usuário"}}):s("group-icon")],1)],1),s("v-list-tile-content",[s("v-list-tile-title",{staticClass:"contact-name"},[2==t.contact.checked?s("v-tooltip",{attrs:{bottom:"",lazy:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on;return[s("v-icon",t._g({staticClass:"mr-1",staticStyle:{"font-size":"14px"},attrs:{color:"success",small:""}},a),[t._v("verified")])]}}],null,!1,2601306665)},[s("span",[t._v("Contato validado")])]):t._e(),3==t.contact.checked?s("v-tooltip",{attrs:{bottom:"",lazy:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on;return[s("v-icon",t._g({staticClass:"mr-1",staticStyle:{"font-size":"14px"},attrs:{color:"error",small:""}},a),[t._v("do_not_disturb_on")])]}}],null,!1,2115104347)},[s("span",[t._v("Contato inválido")])]):t._e(),t.contact.name?s("strong",[t._v(t._s(t._f("stringlength")(t.contact.name,30)))]):s("span",[t._v("Nome não definido")])],1),t.contact.person?s("v-list-tile-sub-title",{staticClass:"contact-profile"},[s("v-icon",{staticStyle:{"margin-right":"1px"},attrs:{small:""}},[t._v("person")]),s("strong",{staticStyle:{"font-size":"12px !important"}},[t._v(" "+t._s(t._f("stringlength")(t.contact.person.first_name,35))+" ")])],1):t._e(),s("v-list-tile-sub-title",{staticClass:"contact-details"},[s("span",{staticClass:"contact-phone"},[1==t.contact.type?[12==t.contact.number.toString().length?s("strong",[t._v(" "+t._s(t._f("mask")(t.contact.number,"+## (##) ####-####"))+" ")]):13==t.contact.number.toString().length?s("strong",[t._v(" "+t._s(t._f("mask")(t.contact.number,"+## (##) # ####-####"))+" ")]):s("span",[t._v(t._s(t.contact.number))])]:s("span",[t._v("---")])],2)])],1)],1)],1)},n=[],o=s("78a4"),c={name:"TalkContactListItem",props:{contact:{type:Object,required:!0}},components:{GroupIcon:o["a"]}},i=c,l=(s("3f56"),s("2877")),r=Object(l["a"])(i,a,n,!1,null,null,null);e["a"]=r.exports}}]); //# sourceMappingURL=chunk-8915ccd0.53166f3e.js.map