1
(window.tawkJsonp=window.tawkJsonp||[]).push([["chunk-48f46bef"],{6775:function(t,e,i){"use strict";(function(t){var a=i("5a60"),s=i("2f62"),n=i("f0b0"),r=i("87dd");function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}
2
))),i.push.apply(i,a)}
3
return i}
4
function l(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{}
5
;e%2?o(Object(i),!0).forEach((function(e){c(t,e,i[e])}
6
)):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}
7
))}
8
return t}
9
function c(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}
10
):t[e]=i,t}
11
e.a={name:"MessagePreview",components:{"i-frame":a.a,TawkChatInput:n.TawkChatInput,TawkCard:n.TawkCard,TawkIcon:n.TawkIcon,TawkAvatar:n.TawkAvatar,TawkVideo:n.TawkVideo,TawkImage:n.TawkImage,CallWidget:function(){return i.e("chunk-495e3f59").then(i.bind(null,"bcae"))}
12
,TawkEmoji:n.TawkEmoji}
13
,directives:{TawkTooltip:n.TawkTooltip}
14
,mixins:[r.a],computed:l(l({}
15
,Object(s.c)({minDesktop:"widget/minDesktop",minMobile:"widget/minMobile",pageStatus:"session/pageStatus",chatWindowState:"session/chatWindowState",showMessagePreview:"widget/showMessagePreview",isRight:"widget/isRight",isBottom:"widget/isBottom",isCenter:"widget/isCenter",features:"widget/features",isRoundWidget:"widget/isRoundWidget",incomingMessage:"chat/incomingMessage",chatVersion:"chat/chatVersion",states:"widget/states",prechatFormSubmitted:"session/prechatFormSubmitted",agentProfile:"chat/agentProfile",incomingCall:"chat/incomingCall",hasLiveChat:"widget/hasLiveChat",zoomRatio:"widget/zoomRatio",mobileBrowserName:"browserData/mobileBrowserName",hasChatStarted:"chat/hasChatStarted",agentsCount:"chat/agentsCount",emojiEnabled:"widget/emojiEnabled"}
16
)),{}
17
,{xOffset:function(){return t.Tawk_Window.widgetSettings.xOffset()}
18
,yOffset:function(){return t.Tawk_Window.widgetSettings.yOffset()}
19
,xOffsetMobile:function(){return t.Tawk_Window.widgetSettings.xOffsetMobile()}
20
,yOffsetMobile:function(){return t.Tawk_Window.widgetSettings.yOffsetMobile()}
21
,width:function(){var t=360;return this.mobileBrowserName&&(t=.6*window.screen.availWidth),t<360&&(t=360),window.innerWidth<=t+2*this.padding&&(t=window.innerWidth-2*this.padding),t}
22
,frameWidth:function(){var t=this.width*this.zoomRatio;return this.previewXOffset+t>window.innerWidth&&(t=window.innerWidth-this.previewXOffset),"".concat(t,"px")}
23
,frameHeight:function(){return"".concat((this.height+45)*this.zoomRatio,"px")}
24
,previewYOffset:function(){var t=this.mobileBrowserName?this.minMobile:this.minDesktop,e=this.mobileBrowserName?this.yOffsetMobile:this.yOffset;return this.isCenter?e:(t.height+this.padding+e)*this.zoomRatio}
25
,previewXOffset:function(){var t=this.mobileBrowserName?this.minMobile:this.minDesktop,e=this.mobileBrowserName?this.xOffsetMobile:this.xOffset;return this.isCenter?(t.height+this.padding+e)*this.zoomRatio:e*this.zoomRatio}
26
,styleObject:function(){var t={"position:":"fixed !important;","height:":"".concat(this.frameHeight," !important;"),"width:":"".concat(this.frameWidth," !important;"),"min-height:":"".concat(this.frameHeight," !important;"),"min-width:":"".concat(this.frameWidth," !important;"),"max-height:":"".concat(this.frameHeight," !important;"),"max-width:":"".concat(this.frameWidth," !important;")}
27
;return this.isCenter?(t["top:"]="calc(50% + ".concat(this.previewYOffset,"px);"),t["transform:"]="translate(0, -50%) !important;",t["-webkit-transform:"]="translate(0, -50%) !important;"):this.isBottom?t["bottom:"]="".concat(this.previewYOffset,"px;"):t["top:"]="".concat(this.previewYOffset,"px;"),this.isRight?t["right:"]="".concat(this.previewXOffset,"px !important;"):t["left:"]="".concat(this.previewXOffset,"px !important;"),this.isVisible?t["display:"]="block !important;":t["display:"]="none !important;",l(l({}
28
,this.genericStyles),t)}
29
,inputPlaceholder:function(){var t,e=this.states[this.pageStatus];if(e&&e.body&&e.body.length)for(var i=0;i<e.body.length;i++){var a=e.body[i];if("chat"===a.type){t=a.content.inputPlaceholder;break}
30
}
31
return t}
32
,showInputField:function(){return!(this.states.prechat&&this.states.prechat.handlers&&this.states.prechat.handlers.form&&!this.prechatFormSubmitted)}
33
,isLiveChatFeatureEnabled:function(){return!!(this.hasLiveChat||this.hasChatStarted&&this.agentsCount>0)}
34
}
35
),data:function(){return{backgroundColor:this.$store.getters["widget/headerBgColor"],cssLink:"".concat("https://embed.tawk.to/_s/v4/app/63b77dcd282","/css/message-preview.css"),isVisible:!1,messages:[],isDuration:!0,height:100,isLive:!0,padding:20,isDraggedOver:!1,textAreaHeight:18}
36
}
37
,watch:{incomingMessage:function(t,e){"min"===this.chatWindowState&&t&&"v"!==t.senderType&&(!e||e.cver&&e.cver<t.cver)&&(this.displayMessage(t),this.isVisible=!0)}
38
,chatWindowState:function(t){"max"===t&&this.clearMessages()}
39
,isVisible:function(e){t.Tawk_Window.eventBus.$emit("mpIsVisible",e)}
40
,incomingCall:function(t){"min"===this.chatWindowState&&(this.isVisible=!!t||0!==this.messages.length)}
...
</html>