/*! 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"),s=a("f0b0"),r=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;ethis.lastMessageTimestamp){e=i;break}}-1!==e&&((t=this.unseenMessages[this.unseenMessages.length-1])&&(this.unseenMessages=[],this.$store.dispatch("session/updateVisitorChatSeen",t.timeStamp)))}},chatElementInView:function(t){var e=this.$refs["tawk-chat-panel"];return!!e&&!!(t[0].offsetTop>=e.scrollTop&&t[0].offsetTop<=e.scrollTop+e.offsetHeight&&0!==t[0].clientWidth&&0!==t[0].clientHeight)},removeAgentIsTyping:function(t){this.$delete(this.agentTyping,t)},checkBarPosition:function(){var t=this;this.$nextTick((function(){if(t.showNotification=!1,t.barMessageRerence&&t.barMessageId){var e=t.$refs[t.barMessageId],a=t.$refs["chat-body"];if(a&&a.$refs[t.barMessageId]&&(e=a.$refs[t.barMessageId]),e)if(t.chatElementInView(e))t.clearBarMessageId();else{var i=t.$refs["tawk-chat-panel"];i&&i.scrollTopt?this.toggleAgentAvatarToolbar(!0):this.toggleAgentAvatarToolbar(!1)}},saveScrollPosition:function(){var t=this.$refs["tawk-chat-panel"];t&&this.$store.commit("chat/setLastScrollPosition",this.isScrollBarBottom()?9999999999:t.scrollTop)},convertFileSize:function(t){return t<1024?t+"B":t=c?(s=Math.round(l/c),n="hours"):l>=o?(s=Math.round(l/o),n="minutes"):(s=Math.round(l/1e3),n="seconds"),r=this.$i18n("chat",n,{num:s}),this.$i18n("chat","call_end_details",{startedOn:"".concat(a,":").concat(i),duration:r})}return""},callIcon:function(t){return t.isVideo?"video-chat":t.isScreenshare?"screenshare":"call"},submitSurvey:function(e){this.isHistory||(t.Tawk_Window.chatManager.sendMessage({message:e}),this.showSurveryOptions=!1,this.$nextTick((function(){t.Tawk_Window.eventBus.$emit("updateScrollPosition")})))},imageLoaded:function(){this.$emit("imageLoaded",!0)},resendMessage:function(e){for(var a=0;a1?"tawk-margin-bottom":"",attrs:{size:"small",src:a.profileImage,alt:"".concat(t.$i18n("chat","agent_profile_image"))}}),e("div",{staticClass:"tawk-message-group tawk-flex-1",class:["v"==a.senderType?"tawk-margin-auto-left":""]},[t._l(a.messages,(function(a){return e("div",{key:a.messageId},[a.surveyObj&&"v"!==a.senderType?[a.surveyObj.question.length?e("chat-message-bubble",{attrs:{msg:a,emojiEnabled:t.emojiEnabled,barMessageRerence:t.barMessageRerence},on:{onMouseEnter:t.onMouseEnter,resendMessage:t.resendMessage}}):t._e()]:e("chat-message-bubble",{attrs:{msg:a,emojiEnabled:t.emojiEnabled,barMessageRerence:t.barMessageRerence},on:{onMouseEnter:t.onMouseEnter,resendMessage:t.resendMessage}})],2)})),"v"!=a.senderType?e("p",{directives:[{name:"show",rawName:"v-show",value:Object.keys(t.agents).length>1,expression:"Object.keys(agents).length > 1"}],staticClass:"tawk-margin-xsmall-left tawk-text-regular-2 tawk-text-truncate"},[t._v(" "+t._s(a.messages[0].name)+" ")]):t._e()],2)]],2)})),0),Object.keys(t.getSurveyOptions).length&&"v"!==t.getSurveyOptions.senderType?e("div",{staticClass:"tawk-margin-top tawk-margin-small-bottom tawk-flex tawk-flex-bottom tawk-message-block"},[e("div",{staticClass:"tawk-message-group tawk-flex-1 tawk-margin-auto-left"},[e("div",{staticClass:"tawk-message-bubble"},[e("survey-options",{attrs:{options:t.getSurveyOptions.options},on:{selectSurvey:t.submitSurvey}})],1),e("div",{staticClass:"clearfix"})])]):t._e()],1)}),[],!1,null,null,null);e.a=r.exports},3558:function(t,e,a){"use strict";var i=a("0c08").a,s=a("2877"),r=Object(s.a)(i,(function(){var t=this,e=t._self._c;return e("base-frame",{staticClass:"tawk-chat-view",on:{"&scroll":function(e){return t.handleScrollProcess.apply(null,arguments)}}},[e("base-header",{ref:"tawk-base-header",staticClass:"tawk-padding-remove-bottom"},[e("chat-header",{ref:"tawk-home-header",staticClass:"tawk-flex-none"})],1),e("base-body",{ref:"tawk-base-body"},[e("chat-body",{ref:"chat-body",attrs:{isLoading:t.isLoading,messageBlocks:t.messageBlocks,barMessageRerence:t.barMessageId,emojiEnabled:t.emojiEnabled},on:{imageLoaded:t.imageLoaded}}),e("transition-group",{attrs:{name:"list"}},t._l(t.agentTyping,(function(a,i){return e("div",{key:i},[e("div",{staticClass:"tawk-flex tawk-flex-middle tawk-margin-small-bottom"},[e("tawk-avatar",{staticClass:"tawk-message-profile",attrs:{size:"small",src:a,alt:"".concat(t.$i18n("chat","agent_profile_image"))}}),e("div",{staticClass:"agentTypingIndicator tawk-margin-xsmall-left"},[e("div",{staticClass:"dot tawk-agent-chat-bubble-dots"}),e("div",{staticClass:"dot tawk-agent-chat-bubble-dots"}),e("div",{staticClass:"dot tawk-agent-chat-bubble-dots"})]),e("div",{staticClass:"clearfix"})],1)])})),0),e("transition-group",{staticStyle:{width:"100%",overflow:"hidden"},attrs:{tag:"div",name:"list"}},t._l(t.uploadFiles,(function(a,i){return e("div",{key:"key-".concat(i),staticClass:"tawk-margin-xsmall-top tawk-margin-xsmall-bottom"},[a.hasError?e("div",[e("tawk-alert",{attrs:{status:"danger",icon:"error",title:t.$i18n("chat","generalUploadErrorLabel"),description:t.$i18n("chat","generalUploadError",{fileName:a.fileName})}}),e("tawk-button",{staticClass:"tawk-text-red-1 tawk-margin-auto-left tawk-button tawk-button-text tawk-text-regular-2 tawk-margin-xsmall-top",staticStyle:{display:"block"},attrs:{isText:!0},on:{click:function(e){return t.retryUpload(a)}}},[t._v(" "+t._s(t.$i18n("chat","tryAgain"))+" ")])],1):e("progress-bar",{attrs:{handle:a.handle,fileName:a.fileName,fileSize:t.convertFileSize(a.fileData.file.size),percentage:a.percentage,"aria-busy":"true","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":a.percentage}})],1)})),0),t.tooBigFileList?e("div",[e("tawk-alert",{staticClass:"tawk-margin-xsmall-top tawk-margin-xsmall-bottom",attrs:{status:"danger",icon:"error",title:t.$i18n("notifications","maximum_size_upload_warning",{limitFileSize:"50MB"}),description:t.tooBigFileList}})],1):t._e()],1),e("div",{attrs:{slot:"unseen-message-count"},slot:"unseen-message-count"},[e("transition",{attrs:{name:"slide-fade"}},[t.showNotification&&t.unreadMessageCount?e("tawk-button",{staticClass:"tawk-new-messages-notification",attrs:{size:"small"},on:{click:function(e){return t.scrollToEl(t.barMessageId)}}},[t._v(" "+t._s(t.$i18n("chat","newMessage",{num:t.unreadMessageCount}))+" "),e("tawk-icon",{attrs:{type:"down-arrow-2",size:"xsmall"}})],1):t._e()],1)],1),e("div",{attrs:{slot:"unseen-message-count"},slot:"unseen-message-count"},[e("transition",{attrs:{name:"slide-fade"}},[t.showLatest?e("tawk-button",{staticClass:"tawk-new-messages-notification",attrs:{size:"small"},on:{click:function(e){return t.scrollToBottom()}}},[t._v(" "+t._s(t.$i18n("chat","goToLatest"))+" "),e("tawk-icon",{attrs:{type:"down-arrow-2",size:"xsmall"}})],1):t._e()],1)],1)],1)}),[],!1,null,null,null);e.a=r.exports},"38d6":function(t,e,a){"use strict";a.r(e);var i=a("2f62"),s=a("7f46"),r=a("f0b0");function n(t){return(n="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 o(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 c(t){for(var e=1;e0&&"c"===r.type&&((a=d[d.length-1]).ownerId===r.ownerId?(r.blockId=a.blockId,a.messages.push(r)):a=null),r.timeStamp>this.lastMessageTimestamp&&("v"===r.senderType?this.$store.dispatch("session/updateVisitorChatSeen",r.timeStamp):(this.unseenMessages.push(r),"chat"===this.currentRoute&&u&&!this.isLoading||this.barMessageId||(r.showBar=!0,this.barMessageId=r.messageId,this.barMessageRerence=r))),o&&"a"===r.senderType&&r.data&&r.data.rsc&&this.removeAgentIsTyping(r.data.rsc),r.isCallView){t.Tawk_Window.chatManager.callStatusUpdate({clid:r.callId,f:{}});var m={ownerId:r.callId,callData:r.callData,messageType:"call",blockId:i.Helper.generateUUID(),callId:r.callId};l?this.$store.dispatch("chat/addMessageBlock",m):this.$store.dispatch("history/addMessageBlock",m)}else if(!a){if(void 0===r.ownerId&&"n"===r.type)return;var f={ownerId:r.ownerId,messages:[r],senderType:r.senderType,messageType:r.type,blockId:i.Helper.generateUUID(),profileImage:r.profileImage};r.blockId=f.blockId,l?this.$store.dispatch("chat/addMessageBlock",f):this.$store.dispatch("history/addMessageBlock",f)}o&&("v"===r.senderType||u?this.scrollToBottom():this.checkBarPosition())},isScrollBarBottom:function(){var t=this.$refs["tawk-chat-panel"];if(t){var e=t.offsetHeight+10;return t.scrollHeight-(t.scrollTop+e)<30}}}}}).call(this,a("c8ba"))},"411f":function(t,e,a){"use strict";var i=a("9ff9").a,s=a("2877"),r=Object(s.a)(i,(function(){var t=this,e=t._self._c;return e("base-frame",{ref:"tawk-frame",staticClass:"tawk-prechat-view"},[e("base-header",{ref:"tawk-base-header",class:t.headerClass},[e("home-header",{ref:"tawk-prechat-header",attrs:{state:"prechat"}})],1),e("base-body",[e("div",{staticStyle:{width:"100%"}},[e("home-body",{ref:"tawk-prechat-body",attrs:{state:"prechat",overwriteSubmit:!0},on:{submitForm:t.submitForm,homeLoaded:t.homeLoaded}})],1)])],1)}),[],!1,null,null,null);e.a=r.exports},"4b3e":function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var i=a("2f62");function s(t){return(s="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 r(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 n(t,e,a){return(e=function(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var i=a.call(t,e||"default");if("object"!==s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===s(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var o={data:function(){return{offVideo:!0}},computed:function(t){for(var e=1;e0?e("home-header",{staticClass:"tawk-margin-bottom",attrs:{state:t.pageStatus}}):t._e(),t.hasChatStarted&&!t.agentHasMessaged&&t.showEstimatedWaitTime&&t.waitTime?e("p",{staticClass:"tawk-margin-xsmall-bottom",domProps:{innerHTML:t._s(t.$i18n("chat","messageQueuedText",{t:Math.ceil(t.waitTime/6e4),strongStart:"",strongEnd:""}))}}):t._e()]:e("chat-agents",{attrs:{profiles:t.activeProfiles,role:"button",tabindex:"0"},nativeOn:{click:function(e){return t.changeView.apply(null,arguments)}}})],2)}),[],!1,null,null,null);e.a=d.exports},5688:function(t,e,a){"use strict";var i=a("76a0").a,s=a("2877"),r=Object(s.a)(i,(function(){var t=this,e=t._self._c;return e("div",{ref:"adqe",class:t.wrapperClasses,style:{borderRadius:t.borderRadiusTop}},[e("div",{staticClass:"tawk-toolbar-nav",attrs:{role:"navigation","aria-label":"primary"}},[t.showBackButton?e("div",{staticClass:"tawk-route-back tawk-flex tawk-flex-middle"},[e("tawk-button",{directives:[{name:"tawk-tooltip",rawName:"v-tawk-tooltip"}],staticClass:"tawk-header-text tawk-button-hover",attrs:{isText:!0,inverse:!0,"data-text":t.$i18n("rollover","back"),"aria-label":t.$i18n("rollover","back")},on:{click:t.routerBack}},[e("tawk-icon",{attrs:{type:"left-arrow",size:"small"}})],1),t.currentView.title&&"agents"!==t.currentRoute?e("span",{staticClass:"tawk-toolbar-title tawk-text-regular-3 tawk-header-text tawk-margin-xsmall-left tawk-custom-text-color-inverse"},[t._v(" "+t._s(t.currentView.title())+" ")]):t._e()],1):t._e(),e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.isAgentAvatarsVisible?e("div",{directives:[{name:"show",rawName:"v-show",value:t.toolbarOptions.showAgentAvatars,expression:"toolbarOptions.showAgentAvatars"}],staticClass:"tawk-toolbar-agent-avatars",on:{click:t.toggleAgentsList}},[t._l(t.getActiveAgents,(function(a,i){return e("tawk-avatar",{key:i,attrs:{src:t.convertToAvatarLink(a.profileImage),alt:"".concat(t.$i18n("chat","agent_profile_image"))}})})),e("transition",{attrs:{name:"fade",mode:"out-in"}},[1===t.activeProfiles.length?e("div",{staticClass:"tawk-toolbar-agent-details"},[e("p",{staticClass:"tawk-toolbar-agent-name tawk-text-truncate"},[t._v(" "+t._s(t.getActiveAgents[0].displayName)+" ")]),e("p",{staticClass:"tawk-toolbar-agent-title tawk-text-truncate"},[t._v(" "+t._s(t.getActiveAgents[0].profileTitle)+" ")])]):e("tawk-avatar",{attrs:{count:t.activeProfiles.length-1}})],1)],2):t._e()])],1),e("div",{staticClass:"tawk-margin-auto-left tawk-flex-none tawk-flex tawk-flex-middle",attrs:{role:"navigation","aria-label":"secondary"}},[t.showWebrtcOptions&&!t.needConsent?e("div",[e("tawk-button",{directives:[{name:"tawk-tooltip",rawName:"v-tawk-tooltip"}],staticClass:"tawk-header-text tawk-button-hover",attrs:{isText:!0,inverse:!0,disabled:t.ongoingCall,"aria-label":t.$i18n("rollover","voiceCall"),"data-text":t.$i18n("rollover","voiceCall")},on:{click:t.initiateCall}},[e("tawk-icon",{attrs:{type:"call"}})],1),t.webrtcOptions.video?e("tawk-button",{directives:[{name:"tawk-tooltip",rawName:"v-tawk-tooltip"}],staticClass:"tawk-header-text tawk-button-hover",attrs:{isText:!0,inverse:!0,disabled:t.ongoingCall,"aria-label":t.$i18n("rollover","videoCall"),"data-text":t.$i18n("rollover","videoCall")},on:{click:function(e){return t.initiateCall(!0,!1)}}},[e("tawk-icon",{attrs:{type:"video-chat"}})],1):t._e(),t.webrtcOptions.screen?e("tawk-button",{directives:[{name:"tawk-tooltip",rawName:"v-tawk-tooltip"}],staticClass:"tawk-header-text tawk-button-hover",attrs:{isText:!0,inverse:!0,disabled:t.ongoingCall,"aria-label":t.$i18n("rollover","screenShare"),"data-text":t.$i18n("rollover","screenShare")},on:{click:function(e){return t.initiateCall(!1,!0)}}},[e("tawk-icon",{attrs:{type:"screenshare"}})],1):t._e()],1):t._e(),t.isHamburgerMenuVisible&&!t.needConsent?e("tawk-dropdown",{ref:"toolbar-menu",staticClass:"tawk-toolbar-menu",attrs:{isOpen:t.isOpen,position:t.isRTL?"left":"right",role:"menu"}},[e("tawk-button",{directives:[{name:"tawk-tooltip",rawName:"v-tawk-tooltip"}],ref:"toolbar-button",staticClass:"tawk-header-text tawk-margin-auto-left tawk-flex-none tawk-button-hover",attrs:{isText:!0,inverse:!0,"aria-label":t.$i18n("rollover","chatMenu"),"data-text":t.$i18n("rollover","chatMenu")},nativeOn:{click:function(e){return t.toggleDropdown.apply(null,arguments)}}},[e("tawk-icon",{attrs:{type:"hamburger-menu"}})],1),e("div",{attrs:{slot:"menu"},slot:"menu"},[e("tawk-button",{staticClass:"tawk-text-left tawk-flex tawk-flex-middle",attrs:{isText:!0,size:"small"},on:{click:t.nameForm}},[e("span",{staticStyle:{width:"25px"}},[e("tawk-icon",{staticStyle:{width:"20px"},attrs:{type:"change-name",size:"small"}})],1),t._v(" "+t._s(t.$i18n("menu","change_name"))+" ")]),t.emailTranscriptEnabled?e("tawk-button",{staticClass:"tawk-text-left tawk-flex tawk-flex-middle",attrs:{isText:!0,size:"small"},on:{click:t.emailTranscriptForm}},[e("span",{staticStyle:{width:"25px"}},[e("tawk-icon",{attrs:{type:"email-transcript",size:"small"}})],1),t._v(" "+t._s(t.$i18n("menu","email_transcript"))+" ")]):t._e(),e("tawk-button",{staticClass:"tawk-text-left tawk-flex tawk-flex-middle",attrs:{isText:!0,size:"small"},on:{click:t.toggleLocalSound}},[t.isSoundEnabled&&t.localSoundEnabled?e("div",[e("span",{staticStyle:{width:"1.6rem"}},[e("tawk-icon",{attrs:{type:"sound-on",size:"medium"}})],1),t._v(" "+t._s(t.$i18n("menu","sound_on"))+" ")]):e("div",[e("span",{staticStyle:{width:"1.6rem"}},[e("tawk-icon",{attrs:{type:"sound-off",size:"medium"}})],1),t._v(" "+t._s(t.$i18n("menu","sound_off"))+" ")])]),t.isWindowed?t._e():e("tawk-button",{staticClass:"tawk-text-left tawk-flex tawk-flex-middle",attrs:{isText:!0,size:"small"},on:{click:t.popoutWidget}},[e("span",{staticStyle:{width:"1.6rem"}},[e("tawk-icon",{attrs:{type:"pop-out",size:"medium"}})],1),t._v(t._s(t.$i18n("menu","popout_widget"))+" ")]),t.hasChatStarted?e("tawk-button",{staticClass:"tawk-text-left tawk-flex tawk-flex-middle",attrs:{isText:!0,size:"small"},on:{click:function(e){return t.$emit("showEndChat")}}},[e("span",{staticStyle:{width:"1.6rem"}},[e("tawk-icon",{attrs:{type:"end-chat",size:"small"}})],1),t._v(" "+t._s(t.$i18n("menu","end_chat_session"))+" ")]):t._e(),t.branding&&!t.branding.whitelabeled?e("tawk-button",{staticClass:"tawk-text-left tawk-flex tawk-flex-middle",attrs:{href:t.branding.url,target:"blank",isText:!0,size:"small"}},[e("span",{staticStyle:{width:"1.6rem"}},[e("tawk-icon",{attrs:{type:"message",size:"small"}})],1),t._v(" "+t._s(t.$i18n("menu","add_chat_to_your_website"))+" ")]):t._e()],1)],1):t._e(),t.isWindowed||t.isRoundWidget&&!t.mobileBrowserName&&"slide"!==this.onClick?t._e():e("tawk-button",{directives:[{name:"tawk-tooltip",rawName:"v-tawk-tooltip"}],staticClass:"tawk-header-text tawk-flex-none tawk-button-hover tawk-custom-color",attrs:{isText:!0,"data-text":t.$i18n("rollover","minimize"),"aria-label":t.$i18n("rollover","minimize")},nativeOn:{click:function(e){return t.toggleWidget.apply(null,arguments)}}},[e("tawk-icon",{attrs:{type:"close",size:"small"}})],1)],1)])}),[],!1,null,null,null);e.a=r.exports},"733e":function(t,e,a){"use strict";(function(t){var i=a("2f62"),s=a("f0b0"),r=a("9348"),n=a("bdd0");function o(t){return(o="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(){c=function(){return e};var t,e={},a=Object.prototype,i=a.hasOwnProperty,s=Object.defineProperty||function(t,e,a){t[e]=a.value},r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",u=r.toStringTag||"@@toStringTag";function d(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,a){return t[e]=a}}function h(t,e,a,i){var r=e&&e.prototype instanceof b?e:b,n=Object.create(r.prototype),o=new E(i||[]);return s(n,"_invoke",{value:j(t,a,o)}),n}function m(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var f="suspendedStart",p="executing",g="completed",w={};function b(){}function v(){}function y(){}var k={};d(k,n,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(B([])));S&&S!==a&&i.call(S,n)&&(k=S);var x=y.prototype=b.prototype=Object.create(k);function C(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function a(s,r,n,c){var l=m(t[s],t,r);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==o(d)&&i.call(d,"__await")?e.resolve(d.__await).then((function(t){a("next",t,n,c)}),(function(t){a("throw",t,n,c)})):e.resolve(d).then((function(t){u.value=t,n(u)}),(function(t){return a("throw",t,n,c)}))}c(l.arg)}var r;s(this,"_invoke",{value:function(t,i){function s(){return new e((function(e,s){a(t,i,e,s)}))}return r=r?r.then(s,s):s()}})}function j(e,a,i){var s=f;return function(r,n){if(s===p)throw new Error("Generator is already running");if(s===g){if("throw"===r)throw n;return{value:t,done:!0}}for(i.method=r,i.arg=n;;){var o=i.delegate;if(o){var c=P(o,i);if(c){if(c===w)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===f)throw s=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=p;var l=m(e,a,i);if("normal"===l.type){if(s=i.done?g:"suspendedYield",l.arg===w)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(s=g,i.method="throw",i.arg=l.arg)}}}function P(e,a){var i=a.method,s=e.iterator[i];if(s===t)return a.delegate=null,"throw"===i&&e.iterator.return&&(a.method="return",a.arg=t,P(e,a),"throw"===a.method)||"return"!==i&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+i+"' method")),w;var r=m(s,e.iterator,a.arg);if("throw"===r.type)return a.method="throw",a.arg=r.arg,a.delegate=null,w;var n=r.arg;return n?n.done?(a[e.resultName]=n.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,w):n:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,w)}function $(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function B(e){if(e||""===e){var a=e[n];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var s=-1,r=function a(){for(;++s=0;--r){var n=this.tryEntries[r],o=n.completion;if("root"===n.tryLoc)return s("end");if(n.tryLoc<=this.prev){var c=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(c&&l){if(this.prev=0;--a){var s=this.tryEntries[a];if(s.tryLoc<=this.prev&&i.call(s,"finallyLoc")&&this.prev=0;--e){var a=this.tryEntries[e];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),_(a),w}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc===t){var i=a.completion;if("throw"===i.type){var s=i.arg;_(a)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,i){return this.delegate={iterator:B(e),resultName:a,nextLoc:i},"next"===this.method&&(this.arg=t),w}},e}function l(t,e,a,i,s,r,n){try{var o=t[r](n),c=o.value}catch(t){return void a(t)}o.done?e(c):Promise.resolve(c).then(i,s)}function u(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 d(t){for(var e=1;e0)},isHamburgerMenuVisible:function(){return"offline"!==this.pageStatus&&("chat"===this.currentRoute||"agents"===this.currentRoute)},isAgentAvatarsVisible:function(){return!(!this.showAgentAvatars||"chat"!==this.currentRoute&&"agents"!==this.currentRoute||!(this.activeProfiles.length>0))},getActiveAgents:function(){var t=this.activeProfiles;return t<2?t:t.slice(0,1)}}),methods:o(o({},Object(i.b)({routerPush:"router/routerPush",routerBack:"router/routerBack",toggleLocalSound:"widget/toggleLocalSound",toggleWidget:"session/toggleWidget",showOverlay:"overlay/showOverlay"})),{},{initiateCall:function(e,a){t.Tawk_Window.chatManager.initiateCall(e,a)},popoutWidget:function(){t.Tawk_Window.popoutWidget()},toggleDropdown:function(){this.isOpen=!this.isOpen},nameForm:function(){this.isOpen=!1,this.routerPush("name-form"),this.showOverlay(!0)},emailTranscriptForm:function(){this.isOpen=!1,this.routerPush("email-transcript-form"),this.showOverlay(!0)},convertToAvatarLink:function(t){return t?0===t.indexOf("https://s3.amazonaws.com/tawk-to-pi")||0===t.indexOf("https://embed.tawk.to/_s/v4/assets")?t:"".concat("https://s3.amazonaws.com/tawk-to-pi","/").concat(t):"".concat("https://embed.tawk.to/_s/v4/assets","/images/default-profile.svg")},toggleAgentsList:function(){this.routerPush("agents"),this.showOverlay(!0)}}),mounted:function(){var e=this;t.Tawk_Window.eventBus.$on("widgetOnFocus",(function(t){e.$refs["toolbar-button"]&&!e.$refs["toolbar-button"].$el.contains(t.target)&&(e.isOpen=!1)}))}}}).call(this,a("c8ba"))},"7ea7":function(t,e,a){"use strict";var i=a("f187").a,s=a("2877"),r=Object(s.a)(i,(function(){var t=this,e=t._self._c;return e("div",{ref:"main-footer",class:t.mainFooterClasses,style:{borderRadius:t.borderRadiusBottom},on:{dragover:t.dragover,dragleave:t.dragleave,drop:t.drop,paste:t.paste}},[t.showStartChatButton?e("div",{staticClass:"tawk-max-footer-actions"},[e("tawk-button",{staticClass:"tawk-max-footer-actions-button",attrs:{isOutline:!0},on:{click:t.startChat}},[e("tawk-icon",{attrs:{type:"mobile-send"}}),t._v(" "+t._s(t.$i18n("home","chat_button"))+" ")],1)],1):t._e(),t.showReturnToLiveChatBtton?e("div",{staticClass:"tawk-max-footer-actions"},[e("tawk-button",{staticClass:"tawk-max-footer-actions-button",attrs:{isOutline:!0},on:{click:t.returnToLiveChat}},[e("tawk-icon",{attrs:{type:"message"}}),t._v(" "+t._s(t.$i18n("chat","return_to_live_chat"))+" ")],1)],1):t._e(),e("tawk-branding",{staticClass:"tawk-text-center tawk-padding-small",attrs:{whitelabel:t.whitelabel,imageUrl:t.imageUrl,tawkToUrl:t.branding.url}}),t.isDraggedOver?e("div",{staticClass:"tawk-flex tawk-flex-column tawk-flex-center tawk-flex-middle",attrs:{id:"tawk-dragover-container"}},[e("tawk-icon",{attrs:{type:"attach-file",size:"xlarge"}}),e("p",[t._v(t._s(t.$i18n("rollover","uploadFile")))])],1):t._e(),t.needConsent||"offline"===t.pageStatus||t.isPrechatEnabled&&!t.prechatFormSubmitted||!t.isLiveChatFeatureEnabled?t._e():e("div",{directives:[{name:"show",rawName:"v-show",value:t.showChatInput,expression:"showChatInput"}],ref:"tawk-chatinput-container",attrs:{id:"tawk-chatinput-container"}},[e("tawk-chat-input",{ref:"tawk-chatinput",attrs:{placeholder:t.inputPlaceholder,features:t.features},on:{messageTyping:t.messageTyping,sendMessage:t.sendMessage,ratingClicked:t.ratingClicked,focus:t.chatFocus,blur:t.chatBlur}})],1)],1)}),[],!1,null,null,null);e.a=r.exports},9348:function(t,e,a){"use strict";var i={name:"TawkSpinner"},s=a("2877"),r=Object(s.a)(i,(function(){return this._self._c,this._m(0)}),[function(){var t=this._self._c;return t("div",{staticClass:"lds-spinner loader",attrs:{role:"status"}},[t("div",{staticClass:"spin spin-1"}),t("div",{staticClass:"spin spin-2"}),t("div",{staticClass:"spin spin-3"}),t("div",{staticClass:"spin spin-4"}),t("div",{staticClass:"spin spin-5"}),t("div",{staticClass:"spin spin-6"}),t("div",{staticClass:"spin spin-7"}),t("div",{staticClass:"spin spin-8"}),t("div",{staticClass:"spin spin-9"}),t("div",{staticClass:"spin spin-10"}),t("div",{staticClass:"spin spin-11"}),t("div",{staticClass:"spin spin-12"})])}],!1,null,null,null);e.a=r.exports},"9ff9":function(t,e,a){"use strict";(function(t){var i=a("2f62"),s=a("9f3e"),r=a("31dd"),n=a("dbd1"),o=a("f0b4"),c=a("38d6");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 u(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 d(t){for(var e=1;e0)for(var i=0,r=e.formData.questions.length;i7&&(s=i.substring(i.length-3)+s,i=i.substring(0,i.length-3)),''.concat(i,'').concat(s,' (').concat(e,")")}}},s=a("2877"),r=Object(s.a)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"file-upload-progress"},[e("div",{staticClass:"tawk-flex tawk-flex-middle",domProps:{innerHTML:t._s(t.beautifyFilename(t.fileName,t.fileSize))}}),e("div",{staticClass:"progress active tawk-margin-small-top"},[e("div",{staticClass:"progress-bar",style:t.progressWidth,attrs:{role:"progressbar"}})])])}),[],!1,null,null,null);e.a=r.exports},e49c:function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));var i=a("f0b0"),s=a("7f46"),r={methods:{setError:function(t,e){e.isError=t},setValue:function(t,e){e.value=t;var a=e.value||"";"string"==typeof t&&(a=t.trim()),("text"===e.type||"phone"===e.type||"textarea"===e.type)&&e.isRequired&&a.length>0&&(e.invalidType="")},setInvalidType:function(t,e){e.invalidTypeValue=t},formatFields:function(t){for(var e=[],a=0;ai?1:0}));e.push({label:s.label,type:s.context,isRequired:s.required,selections:o||[],id:i.Helper.generateUUID(),errorMessage:r,isError:!1,invalidTypeValue:""})}else e.push({label:s.label,type:s.context||s.type,isRequired:s.required,selections:s.options?this.formatOptions(s.options,s.type):null,value:"checkbox"===s.type?[]:n,id:i.Helper.generateUUID(),errorMessage:r,invalidTypeValue:""})}return e},formatOptions:function(t,e){var a,s=[];"radio"===e&&(a=i.Helper.generateUUID());for(var r=0;r0)r=r.replace(/[- )(]/g,""),t.phone=r;else if("department"===i.type){if(i.isRequired&&!this.selectedDepartment){if(!i.selections||!i.selections.online.length&&!i.selections.offline.length)continue;i.isError=!0,e=!0;continue}if(i.isError=!1,!this.selectedDepartment)continue;t.department=this.selectedDepartment.value,t.questions.push({label:s.a.rawDecode(i.label),answer:s.a.rawDecode(this.selectedDepartment.rawText)})}i.isRequired&&0===r.length&&"department"!==i.type&&(this.$refs[i.id]&&this.$refs[i.id].length&&this.$refs[i.id][0]&&this.$refs[i.id][0].validate&&this.$refs[i.id][0].validate(),e=!0),i.isError?e=!0:r&&r.length&&("string"==typeof r?t.questions.push({label:s.a.rawDecode(i.label),answer:r}):t.questions.push({label:s.a.rawDecode(i.label),answer:r.join(", ")}))}return{formData:t,hasError:e}}}}},f0b4:function(t,e,a){"use strict";var i=a("a7bf").a,s=a("2877"),r=Object(s.a)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"tawk-form-width-100 tawk-flex tawk-flex-column"},[t.hasChatEnded&&"prechat"!==t.state&&"offline"!==t.state&&t.chatEndVersion?e("div",{staticClass:"card-container"},[e("restart-chat")],1):t._e(),!t.isHistoryCardEnabled&&t.chatOrder&&t.hasLiveChat&&"offline"!==t.pageStatus&&"prechat"!==t.state?e("div",{staticClass:"card-container tawk-flex-first"},[e("tawk-card",{staticClass:"tawk-home-kb-card",attrs:{color:"inverse",size:"xsmall"}},[e("conversations",{attrs:{historyEnabled:t.isHistoryCardEnabled}})],1)],1):t._e(),t._l(t.body,(function(a,i){return e("content-card",{key:i,attrs:{card:a,isSubmitting:t.submittingValue,submissionError:t.submissionError,body:t.body,state:t.state,hasConversationCard:t.hasConversationCard},on:{"update:isSubmitting":function(e){t.submittingValue=e},"update:is-submitting":function(e){t.submittingValue=e},"update:hasConversationCard":function(e){t.hasConversationCard=e},"update:has-conversation-card":function(e){t.hasConversationCard=e},submitForm:t.submitForm,contentCardLoaded:function(e){return t.$emit("homeLoaded")}}})})),t.noPrechatForm?e("div",{staticClass:"card-container"},[e("tawk-card",{staticClass:"tawk-box-shadow-xsmall",attrs:{color:"inverse",size:"small"}},[e("tawk-button",{staticClass:"tawk-form-width-100 tawk-button-hover tawk-custom-color tawk-custom-border-color",on:{click:function(e){return t.submitForm({formData:{}})}}},[e("tawk-icon",{attrs:{type:"mobile-send"}}),t._v(" "+t._s(t.$i18n("form","StartChatButton"))+" ")],1)],1)],1):t._e()],2)}),[],!1,null,null,null);e.a=r.exports},f187:function(t,e,a){"use strict";(function(t){var i=a("2f62"),s=a("f0b0"),r=a("7f46");function n(t){return(n="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 o(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 c(t){for(var e=1;etawk.to"===t&&(t=t.replace("U+26A1",''))),t&&":tawky: Add free live chat to your site"===t&&(t=t.replace(":tawky:",''))),{label:t,url:this.branding.url,textColor:this.branding.textColor}}},isChatInputBottom:function(){var t=!1,e=this.states[this.pageStatus];return e&&e.body.length&&(t="chat"===e.body[e.body.length-1].type),t},isLiveChatFeatureEnabled:function(){return!!(this.hasLiveChat||this.hasChatStarted&&this.agentsCount>0)},inputPlaceholder:function(){var t,e=this.states[this.pageStatus];if(e&&e.body&&e.body.length)for(var a=0;a0&&"max"!==this.chatWindowState&&this.updateChatWindowState("max"),!this.firstIncoming||this.mobileBrowserName||this.showMessagePreview||"max"===this.chatWindowState||this.updateChatWindowState("max"))},isReady:function(t,e){var a=this;t!==e&&(this.showConnected=!0,setTimeout((function(){a.showConnected=!1}),1e3))},isReconnecting:function(t,e){var a=this;t!==e&&(this.showConnected=!0,setTimeout((function(){a.showConnected=!1}),1e3))}},methods:f(f({},Object(i.b)({routerPush:"router/routerPush",updateRoute:"router/updateRoute",toggleWidget:"session/toggleWidget",toggleLocalSound:"widget/toggleLocalSound",showOverlay:"overlay/showOverlay",routerBack:"router/routerBack",clearHistory:"router/clearHistory",updateChatWindowState:"session/updateChatWindowState",toggleFocus:"widget/toggleFocus"})),{},{triggerClick:function(){this.$store.dispatch("session/toggleWidget")},openView:function(){if(this.initialized=!0,this.showMaxWidget(),this.mobileBrowserName){var e=document.querySelector("meta[name=viewport]")||document.querySelector("meta[name=VIEWPORT]");t.Tawk_Window.isMobileOptimizedWebsite||null===this.noZoomMetaTag||(t.Tawk_Window.metaContent||""!==this.noZoomMetaTag.content?t.Tawk_Window.metaContent&&!t.Tawk_Window.hasNoScale&&e&&e.setAttribute("content",t.Tawk_Window.metaContent+", user-scalable=no"):(this.noZoomMetaTag.content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no",this.noZoomMetaTag.parentNode||document.getElementsByTagName("head")[0].appendChild(this.noZoomMetaTag)));var a=document.body;this.originalBodyStyle=a.style.cssText;for(var i=["height","min-height","max-height","width","min-width","max-width"],s=0;si+10&&(t.resizeHeightTo=i+10)))}),300)},handleOverlayBack:function(){this.routerBack(),this.isDraggedOver=!1},checkRouteLoaded:function(){var t=this;clearTimeout(this.routeLoadedTimeout),void 0!==this.$refs["router-view"]?this.isLoaded=!0:this.routeLoadedTimeout=setTimeout((function(){t.checkRouteLoaded()}),1e3)},handleFocus:function(){this.toggleFocus(!0)},handleBlur:function(){this.toggleFocus(!1)},calculateHeight:function(){if(this.isWindowed||this.mobileBrowserName||this.isEmbedded||"slide"===this.onClick)this.iframe.height="100%";else if(this.resizeHeightTo)this.iframe.height=this.resizeHeightTo+"px";else{if(this.isRoundWidget){var t=this.minDesktop.height+this.yOffset+10;if(this.maxDimension.height+t>window.innerHeight)return void(this.iframe.height="".concat(window.innerHeight-t-10,"px"))}this.maxDimension.height>=window.innerHeight?this.iframe.height="".concat(window.innerHeight-10,"px"):this.iframe.height="".concat(this.maxDimension.height,"px")}},calculateWidth:function(){if(this.isWindowed||this.mobileBrowserName||this.isEmbedded)this.iframe.width="100%";else{if(this.isRoundWidget){var t=this.minDesktop.width+this.xOffset+10;if(this.maxDimension.width+t>window.innerWidth)return void(this.iframe.width="".concat(window.innerWidth-t-10,"px"))}this.maxDimension.width>=window.innerWidth?this.iframe.width="".concat(window.innerWidth-10,"px"):this.iframe.width=this.maxDimension.width+"px"}},calculateIframeSize:function(){this.calculateHeight(),this.calculateWidth()},showMaxWidget:function(){var t=this;this.$refs["max-widget"].$el.style.setProperty("display","block","important"),setTimeout((function(){t.isVisible=!0}),250)},hideMaxWidget:function(){var t=this;this.$nextTick((function(){t.$refs["max-widget"].$el.style.setProperty("display","block","important"),t.isVisible=!1})),setTimeout((function(){t.$refs["max-widget"].$el.style.setProperty("display","none","important")}),250)},injectStyleNode:function(){if(!this.mobileBrowserName&&"slide"===this.onClick){var t="-100%",e=this.$refs["max-widget"].$el.contentDocument,a=document.createElement("style");a.type="text/css",a.classList.add("tawk-dynamic-style"),this.isRight&&(t="100%"),a.appendChild(document.createTextNode("\n\t\t\t\t.tawk-max-slide-enter-active,\n\t\t\t\t.tawk-max-slide-leave-active {\n\t\t\t\t\ttransition: all 0.25s;\n\t\t\t\t\ttransition-timing-function: ease-in-out;\n\t\t\t\t}\n\n\t\t\t\t.tawk-max-slide-enter {\n\t\t\t\t\ttransform: translateX(".concat(t,");\n\t\t\t\t\topacity: 0;\n\t\t\t\t}\n\n\t\t\t\t.tawk-max-slide-enter-to {\n\t\t\t\t\ttransform: translateX(0%);\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\n\t\t\t\t.tawk-max-slide-leave {\n\t\t\t\t\ttransform: translateX(0%);\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\n\t\t\t\t.tawk-max-slide-leave-to {\n\t\t\t\t\ttransform: translateX(").concat(t,");\n\t\t\t\t\topacity: 0;\n\t\t\t\t}\n\t\t\t"))),e.head.appendChild(a)}},removeStyleNode:function(){var t=this.$refs["max-widget"].$el.contentDocument.querySelector(".tawk-dynamic-style");t&&t.parentNode.removeChild(t)}}),mounted:function(){var e=this;this.calculateIframeSize(),this.noZoomMetaTag=document.createElement("meta"),this.noZoomMetaTag.name="viewport",this.checkRouteLoaded(),this.$el.contentWindow.addEventListener("focus",this.handleFocus),this.$el.contentWindow.addEventListener("blur",this.handleBlur),window.addEventListener("resize",this.calculateIframeSize),t.Tawk_Window.eventBus.$on("switchWidget",(function(){e.key=s.Helper.generateUUID()})),t.Tawk_Window.eventBus.$on("forceUpdate",(function(){e.initialized=!1,e.$nextTick((function(){e.initialized=!0}))})),this.injectStyleNode(),t.Tawk_Window.eventBus.$on("updateWidgetSettings",(function(){e.removeStyleNode(),e.$nextTick((function(){e.injectStyleNode()}))}))},beforeDestroy:function(){this.$el.contentWindow.removeEventListener("focus",this.handleFocus),this.$el.contentWindow.removeEventListener("blur",this.handleBlur),window.removeEventListener("resize",this.calculateIframeSize)}}}).call(this,a("c8ba"))},fa12:function(t,e,a){"use strict";var i=a("733e").a,s=a("2877"),r=Object(s.a)(i,(function(){var t=this,e=t._self._c;return e("div",{ref:t.msg.messageId,staticClass:"tawk-message-bubble",attrs:{id:"messageId-".concat(t.msg.messageId)}},[t.msg.showBar&&t.barMessageRerence?e("div",{staticStyle:{position:"relative"}},[e("div",[e("span",{staticStyle:{position:"absolute",right:"0",background:"#fff",transform:"translate(0, -50%)",padding:"0 10px"}},[t._v(t._s(t.$i18n("chat","newMessages")))]),e("hr")])]):t._e(),"c"===t.msg.type?[e("div",{staticClass:"tawk-flex tawk-flex-bottom",class:["v"==t.msg.senderType?"tawk-visitor-chat":"tawk-agent-chat"],on:{mouseenter:function(e){return t.$emit("onMouseEnter")}}},["v"===t.msg.senderType?e("div",{staticClass:"tawk-flex-none",staticStyle:{"min-width":"40px"}},[t.msg.time?e("tawk-timeago",{staticClass:"tawk-time-display",attrs:{datetime:t.msg.time,isLive:!1,timeOnly:!0}}):t._e()],1):t._e(),e("div",{staticClass:"tawk-message-body tawk-margin-xsmall-left",class:["v"!==t.msg.senderType?"tawk-margin-xsmall-right":""]},[t.msg.isPending?e("tawk-spinner",{class:["v"!==t.msg.senderType?"lds-spinner-left":""]}):t._e(),[t.msg.rawMessage.md&&t.msg.rawMessage.md.rt?e("div",{staticClass:"tawk-chat-rating"},[e("tawk-icon",{attrs:{type:t.msg.message,size:"xxlarge"}})],1):t.msg.attchs||t.msg.surveyObj||t.msg.message?e("tawk-chat-bubble",{class:["v"==t.msg.senderType?"tawk-visitor-chat-bubble":"tawk-agent-chat-bubble","tawk-text-regular-3"],attrs:{attachments:t.msg.attchs}},[t.msg.surveyObj||t.msg.message?e("tawk-emoji",{attrs:{emoji:t.msg.surveyObj&&"v"!==t.msg.senderType?t.msg.surveyObj.question:t.msg.message,enabled:t.emojiEnabled}}):t._e()],1):t._e(),"a"===t.msg.senderType&&t.msg.ticketFormRef?e("div",{staticClass:"tawk-margin-small-top"},[t.hasTicketFormSubmit||t.submissionSuccess?[e("img",{staticStyle:{"max-width":"200px"},attrs:{src:t.getTicketImageUrl}}),e("p",{staticClass:"tawk-margin-small-top"},[t._v("Your request has been sent")])]:[e("tawk-input",{ref:"name-input",staticClass:"tawk-margin-small",attrs:{label:"Name",isRequired:!0,value:t.ticketForm.name,invalidType:t.invalidName,errorMessage:{required:t.$i18n("form","RequiredErrorMessage")}},on:{"update:invalidType":function(e){t.invalidName=e},"update:invalid-type":function(e){t.invalidName=e}},model:{value:t.ticketForm.name,callback:function(e){t.$set(t.ticketForm,"name",e)},expression:"ticketForm.name"}}),e("tawk-input",{ref:"email-input",staticClass:"tawk-margin-small",attrs:{label:"Email",isRequired:!0,value:t.ticketForm.email,invalidType:t.invalidEmail,errorMessage:{required:t.$i18n("form","RequiredErrorMessage"),email:t.$i18n("form","EmailErrorMessage")}},on:{"update:invalidType":function(e){t.invalidEmail=e},"update:invalid-type":function(e){t.invalidEmail=e}},model:{value:t.ticketForm.email,callback:function(e){t.$set(t.ticketForm,"email",e)},expression:"ticketForm.email"}}),e("tawk-input",{ref:"subject-input",staticClass:"tawk-margin-small",attrs:{label:"Subject",isRequired:!0,value:t.ticketForm.subject,invalidType:t.invalidSubject,errorMessage:{required:t.$i18n("form","RequiredErrorMessage")}},on:{"update:invalidType":function(e){t.invalidSubject=e},"update:invalid-type":function(e){t.invalidSubject=e}},model:{value:t.ticketForm.subject,callback:function(e){t.$set(t.ticketForm,"subject",e)},expression:"ticketForm.subject"}}),e("tawk-textarea",{ref:"message-input",staticClass:"tawk-margin-small",attrs:{label:"Message",isRequired:!0,value:t.ticketForm.message,invalidType:t.invalidMessage,errorMessage:{required:t.$i18n("form","RequiredErrorMessage")}},on:{"update:invalidType":function(e){t.invalidMessage=e},"update:invalid-type":function(e){t.invalidMessage=e}},model:{value:t.ticketForm.message,callback:function(e){t.$set(t.ticketForm,"message",e)},expression:"ticketForm.message"}}),t.submissionError?e("p",{staticClass:"tawk-margin-xsmall tawk-text-red-1 tawk-text-regular-1"},[t._v(t._s(t.submissionError))]):t._e(),e("tawk-button",{attrs:{disabled:t.isSubmitting},on:{click:function(e){return t.sendTicketForm()}}},[t.isSubmitting?e("div",{staticClass:"tawk-flex tawk-flex-center"},[e("div",{staticClass:"tawk-spinner-loader"})]):[e("tawk-icon",{attrs:{type:"mobile-send"}}),t._v(" "+t._s(t.$i18n("form","SubmitButton"))+" ")]],2)]],2):t._e()]],2),"v"!==t.msg.senderType?e("div",{staticClass:"tawk-flex-none",staticStyle:{"min-width":"40px"}},[t.msg.time?e("tawk-timeago",{staticClass:"tawk-time-display",attrs:{datetime:t.msg.time,isLive:!1,timeOnly:!0}}):t._e()],1):t._e()]),t.msg.sendFailed?e("div",{staticClass:"tawk-chat-resend"},[e("p",[e("tawk-icon",{attrs:{type:"error",size:"small"}}),e("span",[t._v("Failed")])],1),e("tawk-button",{attrs:{isText:!0},on:{click:function(e){return t.handleResendMessage(t.msg)}}},[t._v(" Resend ")])],1):t._e()]:t._e(),"v"===t.msg.senderType&&"n"===t.msg.type?e("div",[e("tawk-card",{attrs:{color:"inverse",size:"xsmall"}},[e("tawk-alert",{attrs:{title:t.msg.message,description:"",icon:"alert"}},[e("tawk-timeago",{staticClass:"tawk-time-display",attrs:{slot:"alert-description",datetime:t.msg.time,isLive:!1,timeOnly:!0},slot:"alert-description"})],1)],1)],1):t._e(),e("div",{staticClass:"clearfix"})],2)}),[],!1,null,null,null);e.a=r.exports}}]); //# sourceMappingURL=twk-chunk-24d8db78.js.map