1
(window.tawkJsonp=window.tawkJsonp||[]).push([["chunk-f163fcd0"],{3519:function(e,t,a){"use strict";var s=a("f25b").a,i=a("2877"),n=Object(i.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:!e.isLoading,expression:"!isLoading"}
2
],ref:"tawk-chat-message-container",staticClass:"tawk-chat-message-container tawk-margin-small-top"}
3
,[a("transition-group",{attrs:{name:"list"}
4
}
5
,e._l(e.messageBlocks,(function(t){return a("div",{key:t.blockId,ref:t.blockId,refInFor:!0,staticClass:"tawk-margin-small-bottom tawk-flex tawk-flex-bottom tawk-message-block",attrs:{id:"blockId-"+t.blockId}
6
}
7
,["call"===t.messageType?[t.callData&&!t.callData.hasError?a("tawk-alert",{staticStyle:{width:"100%"}
8
,attrs:{status:e.callStatus(t.callData),title:e.callTitle(t.callData),description:e.callDescription(t.callData),icon:e.callIcon(t.callData)}
9
}
10
):a("tawk-alert",{staticStyle:{width:"100%"}
11
,attrs:{status:"danger",title:e.$i18n("chat","error_title"),description:e.$i18n("chat","call_error_load"),icon:"call"}
12
}
13
)]:["c"===t.messageType&&"v"!==t.senderType?a("tawk-avatar",{staticClass:"tawk-message-profile tawk-flex-none",class:Object.keys(e.agents).length>1?"tawk-margin-bottom":"",attrs:{size:"small",src:t.profileImage,alt:""+e.$i18n("chat","agent_profile_image")}
14
}
15
):e._e(),a("div",{staticClass:"tawk-message-group tawk-flex-1",class:["v"==t.senderType?"tawk-margin-auto-left":""]}
16
,[e._l(t.messages,(function(t){return a("div",{key:t.messageId,ref:t.messageId,refInFor:!0,staticClass:"tawk-message-bubble",attrs:{id:"messageId-"+t.messageId}
17
}
18
,[t.showBar&&e.barMessageRerence?a("div",{staticStyle:{position:"relative"}
19
}
20
,[a("div",[a("span",{staticStyle:{position:"absolute",right:"0",background:"#fff",transform:"translate(0, -50%)",padding:"0 10px"}
21
}
22
,[e._v(e._s(e.$i18n("chat","newMessages")))]),a("hr")])]):e._e(),"c"===t.type?[a("div",{staticClass:"tawk-flex tawk-flex-bottom",class:["v"==t.senderType?"tawk-visitor-chat":"tawk-agent-chat"],on:{mouseenter:e.onMouseEnter}
23
}
24
,["v"===t.senderType?a("div",{staticClass:"tawk-flex-none",staticStyle:{"min-width":"40px"}
25
}
26
,[t.time?a("tawk-timeago",{staticClass:"tawk-time-display",attrs:{datetime:t.time,isLive:!1,timeOnly:!0}
27
}
28
):e._e()],1):e._e(),a("div",{staticClass:"tawk-message-body tawk-margin-xsmall-left ",class:["v"!==t.senderType?"tawk-margin-xsmall-right":""]}
29
,[t.isUpload?a("tawk-card",{class:["v"==t.senderType?"tawk-visitor-chat-bubble":"tawk-agent-chat-bubble"],attrs:{color:"inverse",size:"small"}
30
}
31
,[t.fileType?["image"===t.fileType?a("tawk-image",{attrs:{src:t.fileLink,name:t.fileName,position:"center"}
32
,on:{imageLoaded:e.imageLoaded}
33
}
34
):e._e(),"video"===t.fileType?a("tawk-video",{attrs:{content:{source:"selfhosted",url:t.fileLink,options:{controls:"",mute:!0,loop:!1,startTime:"0"}
35
}
36
}
37
}
38
):e._e(),"audio"===t.fileType?a("audio",{staticStyle:{width:"100%",height:"30px"}
39
,attrs:{controls:""}
40
}
...
</html>