"use strict";(self["webpackChunkcarabi_x2"]=self["webpackChunkcarabi_x2"]||[]).push([[1347],{1352:function(a,t,o){o.r(t),o.d(t,{default:function(){return m}});var s=function(){var a=this,t=a._self._c;return a.data?t("div",{staticClass:"pos-call-info"},[t("div",{staticClass:"pos-call-info-header"},[t("div",{staticClass:"pos-call-info-header-ident"},[t("div",{staticClass:"pos-call-info-header-ident__name",domProps:{textContent:a._s(a.data.from.name)}}),t("div",{staticClass:"pos-call-info-header-ident__org",domProps:{textContent:a._s(a.data.from.info)}})]),t("span",{staticClass:"pos-call-info-header-arrow"},[a._v("⟶")]),t("div",{staticClass:"pos-call-info-header-ident"},[t("div",{staticClass:"pos-call-info-header-ident__name",domProps:{textContent:a._s(a.data.to.name)}}),t("div",{staticClass:"pos-call-info-header-ident__org",domProps:{textContent:a._s(a.data.to.info)}})])]),a.data?t("div",{staticClass:"pos-call-info-body"},[t("div",{staticClass:"pos-call-info-body__title"},[a.data.detail.org?t("span",{staticClass:"uk-link",domProps:{textContent:a._s(a.data.detail.org)},on:{click:function(t){return a.openDocument(a.data.detail.callerId)}}}):t("span",[a._v("Не найден в базе")])]),a.data.detail.info?t("div",{staticClass:"pos-call-info-body-row"},[t("div",{staticClass:"pos-call-info-body-row__label"},[a._v("Информация")]),t("div",{staticClass:"pos-call-info-body-row__val",domProps:{textContent:a._s(a.data.detail.info)}})]):a._e(),a.data.detail.contact?t("div",{staticClass:"pos-call-info-body-row"},[t("div",{staticClass:"pos-call-info-body-row__label"},[a._v("Контакт")]),t("div",{staticClass:"pos-call-info-body-row__val",domProps:{textContent:a._s(a.data.detail.contact)}})]):a._e(),a.data.detail.callerId?t("div",{staticClass:"pos-call-info-body-row"},[t("div",{staticClass:"pos-call-info-body-row__label"},[a._v("ID Звонка")]),t("div",{staticClass:"pos-call-info-body-row__val",domProps:{textContent:a._s(a.data.detail.callerId)}})]):a._e(),a.data.detail.manager?t("div",{staticClass:"pos-call-info-body-row"},[t("div",{staticClass:"pos-call-info-body-row__label"},[t("span",[a._v("Менеджер")]),t("span",{staticClass:"pos-call-info-body-row__status",class:{online:1===a.data.detail.managerStatus}})]),t("div",{staticClass:"pos-call-info-body-row__val"},[t("span",{domProps:{textContent:a._s(a.data.detail.manager)}}),a.data.detail.managerDepartment?t("span",{domProps:{textContent:a._s(` (${a.data.detail.managerDepartment})`)}}):a._e(),1===this.data.info.MANAGER_NETWORK_STATE?t("a",{on:{click:function(t){return a.calltransfer()}}},[t("i",{staticClass:"fas fa-arrow-right",staticStyle:{color:"#ffa600","margin-left":"auto"}})]):a._e()])]):a._e(),t("div",{staticClass:"pos-call-info-body__label"},[a._v("Комментарий к разговору:")]),t("textarea",{directives:[{name:"model",rawName:"v-model",value:a.comment,expression:"comment"},{name:"focus",rawName:"v-focus"}],staticClass:"pos-call-info-body__comment uk-textarea",attrs:{placeholder:"Ваш комментарий"},domProps:{value:a.comment},on:{change:a.updateComment,input:function(t){t.target.composing||(a.comment=t.target.value)}}})]):a._e()]):a._e()},e=[],l=o(5512),i=o(3216),n=o(2779),d={name:"callPanelInfo",props:{data:{type:Object}},mounted(){this.comment=this.data.detail?.comment},data(){return{comment:""}},beforeDestroy(){this.updateComment()},methods:{openDocument(a){l.A.openDocument(a)},updateComment(){this.$emit("comment",this.comment)},async calltransfer(){let a=await i.vd.select("GET_PHONES_NODES_CS",{},1e3),t=a.find((a=>a.REDIRECT_ID===this.data.info.MANAGER_ID));void 0!==t?this.$emit("redirectionwithinfo",t):n.modal.alert("Ошибка! Выбранный менеджер не в сети.")}}},c=d,r=o(1656),_=(0,r.A)(c,s,e,!1,null,null,null),m=_.exports}}]);
//# sourceMappingURL=CallPanelInfo.984adad7.js.map