1 line
18 KiB
JavaScript
1 line
18 KiB
JavaScript
|
(window.tawkJsonp=window.tawkJsonp||[]).push([["chunk-48f3b594"],{"3bc8":function(t,e,i){"use strict";(function(t){var a=i("5a60"),s=i("2f62"),n=i("f0b0"),r=i("2966"),o=i("87dd");function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(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}))),i.push.apply(i,a)}return i}function h(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?c(Object(i),!0).forEach((function(e){g(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function g(t,e,i){return(e=function(t){var e=function(t,e){if("object"!==l(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var a=i.call(t,e||"default");if("object"!==l(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===l(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}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-495d98f9").then(i.bind(null,"bcae"))},TawkEmoji:n.TawkEmoji,SurveyOptions:r.a,TawkChatBubble:n.TawkChatBubble},directives:{TawkTooltip:n.TawkTooltip},mixins:[o.a],computed:h(h({},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",isPrechatEnabled:"widget/isPrechatEnabled"})),{},{xOffset:function(){return t.Tawk_Window.widgetSettings.xOffset()},yOffset:function(){return t.Tawk_Window.widgetSettings.yOffset()},xOffsetMobile:function(){return t.Tawk_Window.widgetSettings.xOffsetMobile()},yOffsetMobile:function(){return t.Tawk_Window.widgetSettings.yOffsetMobile()},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},frameWidth:function(){var t=this.width*this.zoomRatio;return this.previewXOffset+t>window.innerWidth&&(t=window.innerWidth-this.previewXOffset),"".concat(t,"px")},frameHeight:function(){return"".concat((this.height+45)*this.zoomRatio,"px")},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},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},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:":"".conca
|