stockbot-buyvm/tests/data/stock_files/twk-chunk-24d8db78.js

3 lines
108 KiB
JavaScript
Raw Permalink Normal View History

2023-12-02 19:49:13 +00:00
/*! For license information please see twk-chunk-24d8db78.js.LICENSE */
(window.tawkJsonp=window.tawkJsonp||[]).push([["chunk-24d8db78"],{"0c08":function(t,e,a){"use strict";(function(t){var i=a("2f62"),r=a("f0b0"),s=a("4cd0"),n=a("3519"),o=a("9f3e"),c=a("31dd"),l=a("dbd1"),u=a("3f09"),d=a("e375");function h(t){return(h="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 m(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function f(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?m(Object(a),!0).forEach((function(e){p(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):m(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function p(t,e,a){return(e=function(t){var e=function(t,e){if("object"!==h(t)||null===t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var i=a.call(t,e||"default");if("object"!==h(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===h(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}e.a={name:"chat-main",mixins:[u.a],components:{BaseFrame:o.a,BaseHeader:c.a,BaseBody:l.a,ChatHeader:s.a,ChatBody:n.a,TawkIcon:r.TawkIcon,TawkButton:r.TawkButton,TawkAvatar:r.TawkAvatar,ProgressBar:d.a,TawkAlert:r.TawkAlert},computed:f({},Object(i.c)({chatVersion:"chat/chatVersion",incomingMessage:"chat/incomingMessage",agentProfile:"chat/agentProfile",chatMessages:"chat/chatMessages",unreadMessageCount:"chat/unreadMessageCount",lastMessageTimestamp:"session/lastMessageTimestamp",showAgentTyping:"widget/showAgentTyping",hasChatEnded:"chat/hasChatEnded",uploadFiles:"chat/uploadFiles",lastScrollPositon:"chat/lastScrollPositon",outgoingMessage:"chat/outgoingMessage",historyProcessed:"chat/historyProcessed",messageBlocks:"chat/messageBlocks",emojiEnabled:"widget/emojiEnabled",currentRoute:"router/current",chatWindowState:"session/chatWindowState",isFocus:"widget/isFocus"})),data:function(){return{barMessageId:null,isLoading:!1,barMessageRerence:null,unseenMessages:[],showNotification:!1,agentTyping:{},clearBarTimeout:0,tooBigFileList:null,showLatest:!1}},watch:{incomingMessage:function(t){var e=this.isScrollBarBottom();this.displayMessages({message:t,isIncoming:!0}),this.updateScrollbar(),e&&this.scrollToBottom()},unreadMessageCount:function(t){0===t&&this.clearBarMessageId()},hasChatEnded:function(t){t&&this.clearData()},uploadFiles:function(){this.scrollToBottom()},outgoingMessage:function(t){this.isLoading||t&&(this.displayMessages({message:t,isIncoming:!0}),this.$store.commit("chat/setOutgoingMessage",null))},historyProcessed:function(t){t&&this.processChatMessages()},currentRoute:function(t,e){"chat"===t&&(this.$refs["tawk-chat-panel"]&&this.$refs["tawk-chat-panel"].$scrollbar&&this.$refs["tawk-chat-panel"].$scrollbar.update(),this.checkSeenMessageViewport(),this.checkBarPosition()),"chat"===e&&this.saveScrollPosition()},chatWindowState:function(t){"max"===t&&"chat"===this.currentRoute&&(this.toggleFocus(!0),this.checkSeenMessageViewport())},isFocus:function(t){t&&"chat"===this.currentRoute&&this.checkSeenMessageViewport()}},created:function(){var e=this;t.Tawk_Window.eventBus.$on("tooBigFileList",(function(t){e.tooBigFileList=t.join(", ")}))},mounted:function(){var e=this;this.processChatMessages(),this.showAgentTyping&&(t.Tawk_Window.eventBus.$on("agentIsTyping",(function(t){var a=e.agentProfile(t.rsc),i=e.isScrollBarBottom();a&&(e.updateAgentTyping(t,a),e.updateScrollbar()),i&&e.scrollToBottom()})),t.Tawk_Window.eventBus.$on("agentStopedTyping",(function(t){e.removeAgentIsTyping(t.rsc),e.updateScrollbar()}))),t.Tawk_Window.eventBus.$on("updateScrollPosition",(function
//# sourceMappingURL=twk-chunk-24d8db78.js.map