/*! For license information please see twk-chunk-49c2962f.js.LICENSE */ (window.tawkJsonp=window.tawkJsonp||[]).push([["chunk-49c2962f"],{3519:function(t,e,a){"use strict";var i=a("2f62"),r=a("f0b0"),s={name:"TawkSpinner"},n=a("2877"),o=Object(n.a)(s,(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).exports,l=a("bdd0"),c=a("5868");function u(t){return(u="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 d(){d=function(){return e};var t,e={},a=Object.prototype,i=a.hasOwnProperty,r=Object.defineProperty||function(t,e,a){t[e]=a.value},s="function"==typeof Symbol?Symbol:{},n=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,a){return t[e]=a}}function m(t,e,a,i){var s=e&&e.prototype instanceof w?e:w,n=Object.create(s.prototype),o=new F(i||[]);return r(n,"_invoke",{value:$(t,a,o)}),n}function h(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(t){return{type:"throw",arg:t}}}e.wrap=m;var f="suspendedStart",p="executing",g="completed",b={};function w(){}function v(){}function y(){}var k={};c(k,n,(function(){return this}));var S=Object.getPrototypeOf,O=S&&S(S(B([])));O&&O!==a&&i.call(O,n)&&(k=O);var x=y.prototype=w.prototype=Object.create(k);function C(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function a(r,s,n,o){var l=h(t[r],t,s);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==u(d)&&i.call(d,"__await")?e.resolve(d.__await).then((function(t){a("next",t,n,o)}),(function(t){a("throw",t,n,o)})):e.resolve(d).then((function(t){c.value=t,n(c)}),(function(t){return a("throw",t,n,o)}))}o(l.arg)}var s;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){a(t,i,e,r)}))}return s=s?s.then(r,r):r()}})}function $(e,a,i){var r=f;return function(s,n){if(r===p)throw Error("Generator is already running");if(r===g){if("throw"===s)throw n;return{value:t,done:!0}}for(i.method=s,i.arg=n;;){var o=i.delegate;if(o){var l=_(o,i);if(l){if(l===b)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===f)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var c=h(e,a,i);if("normal"===c.type){if(r=i.done?g:"suspendedYield",c.arg===b)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(r=g,i.method="throw",i.arg=c.arg)}}}function _(e,a){var i=a.method,r=e.iterator[i];if(r===t)return a.delegate=null,"throw"===i&&e.iterator.return&&(a.method="return",a.arg=t,_(e,a),"throw"===a.method)||"return"!==i&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+i+"' method")),b;var s=h(r,e.iterator,a.arg);if("throw"===s.type)return a.method="throw",a.arg=s.arg,a.delegate=null,b;var n=s.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,b):n:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,b)}function j(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,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 r=-1,s=function a(){for(;++r=0;--s){var n=this.tryEntries[s],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var l=i.call(n,"catchLoc"),c=i.call(n,"finallyLoc");if(l&&c){if(this.prev=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var a=this.tryEntries[e];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),P(a),b}},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 r=i.arg;P(a)}return r}}throw 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),b}},e}function m(t,e,a,i,r,s,n){try{var o=t[s](n),l=o.value}catch(t){return void a(t)}o.done?e(l):Promise.resolve(l).then(i,r)}function h(t){return function(){var e=this,a=arguments;return new Promise((function(i,r){var s=t.apply(e,a);function n(t){m(s,i,r,n,o,"next",t)}function o(t){m(s,i,r,n,o,"throw",t)}n(void 0)}))}}function f(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 p(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,n=!0,o=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return n=t.done,t},e:function(t){o=!0,s=t},f:function(){try{n||null==a.return||a.return()}finally{if(o)throw s}}}}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=Array(e);a=l?(r=Math.round(c/l),n="hours"):c>=o?(r=Math.round(c/o),n="minutes"):(r=Math.round(c/1e3),n="seconds"),s=this.$i18n("chat",n,{num:r}),this.$i18n("chat","call_end_details",{startedOn:"".concat(a,":").concat(i),duration:s})}return""},callIcon:function(t){return t.isVideo?"video-chat":t.isScreenshare?"screenshare":"call"},submitSurvey:function(t){var e=this;this.isHistory||(this.$TawkChatManager.sendMessage({message:t}),this.showSurveryOptions=!1,this.$nextTick((function(){e.$eventBus.$emit("updateScrollPosition")})))},imageLoaded:function(){this.$emit("imageLoaded",!0)},resendMessage:function(t){for(var e=0;e1?"tawk-margin-bottom":"",attrs:{size:"small",src:a.profileImage,alt:"".concat(t.$i18n("chat","agent_profile_image"))}}):t._e(),e("div",{staticClass:"tawk-message-group tawk-flex-1",class:["v"==a.senderType?"tawk-margin-auto-left":""]},[e("div",{staticClass:"tawk-messages"},t._l(a.messages,(function(a){return e("div",{key:a.messageId,class:"v"===a.senderType?"tawk-visitor":"tawk-agent"},[a.message&&a.message.length||a.ticketFormRef||a.leadFormRef||a.attchs?e("chat-message-bubble",{attrs:{msg:a,emojiEnabled:t.emojiEnabled,barMessageRerence:t.barMessageRerence},on:{onMouseEnter:t.onMouseEnter,resendMessage:t.resendMessage}}):t._e()],1)})),0),"v"!=a.senderType?e("p",{directives:[{name:"show",rawName:"v-show",value:Object.keys(t.agents).length>1&&t.showSender(a.messages),expression:"Object.keys(agents).length > 1 &&\n\t\t\t\t\t\t\tshowSender(block.messages)"}],staticClass:"tawk-margin-xsmall-left tawk-text-regular-2 tawk-text-truncate"},[t._v(" "+t._s(a.messages[0].name)+" ")]):t._e()])]],2)})),0),!t.isHistory&&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=$.exports},"38d6":function(t,e,a){"use strict";a.r(e);var i=a("2f62"),r=a("7f46"),s=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 l(t){for(var e=1;e0&&"c"===s.type&&((e=d[d.length-1]).ownerId===s.ownerId?(s.blockId=e.blockId,e.messages.push(s)):e=null),s.timeStamp>this.lastMessageTimestamp&&("v"===s.senderType?this.$store.dispatch("session/updateVisitorChatSeen",s.timeStamp):(this.unseenMessages.push(s),"chat"===this.currentRoute&&u&&!this.isLoading||this.barMessageId||(s.showBar=!0,this.barMessageId=s.messageId,this.barMessageRerence=s))),o&&"a"===s.senderType&&s.data&&s.data.rsc&&this.removeAgentIsTyping(s.data.rsc),s.isCallView){r.a.callStatusUpdate({clid:s.callId,f:{}});var h={ownerId:s.callId,callData:s.callData,messageType:"call",blockId:i.Helper.generateUUID(),callId:s.callId};c?this.$store.dispatch("chat/addMessageBlock",h):this.$store.dispatch("history/addMessageBlock",h)}else if(!e){if(void 0===s.ownerId&&"n"===s.type)return;var f={ownerId:s.ownerId,messages:[s],senderType:s.senderType,messageType:s.type,blockId:i.Helper.generateUUID(),profileImage:s.profileImage};s.blockId=f.blockId,c?this.$store.dispatch("chat/addMessageBlock",f):this.$store.dispatch("history/addMessageBlock",f)}o&&("v"===s.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}}}}},"4b3e":function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var i=a("2f62");function r(t){return(r="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 s(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"!=r(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var i=a.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e: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)},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:l(l({},Object(i.b)({routerPush:"router/routerPush",routerBack:"router/routerBack",toggleLocalSound:"widget/toggleLocalSound",toggleWidget:"session/toggleWidget",showOverlay:"overlay/showOverlay"})),{},{initiateCall:function(t,e){this.$TawkChatManager.initiateCall(t,e)},popoutWidget:function(){this.$TawkWindow.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 t=this;this.$eventBus.$on("widgetOnFocus",(function(e){t.$refs["toolbar-button"]&&!t.$refs["toolbar-button"].$el.contains(e.target)&&(t.isOpen=!1)}))}},d=a("2877"),m=Object(d.a)(u,(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"),tabindex:"0"},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","voice_call"),"data-text":t.$i18n("rollover","voice_call"),tabindex:"0"},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","video_call"),"data-text":t.$i18n("rollover","video_call"),tabindex:"0"},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","screen_share"),"data-text":t.$i18n("rollover","screen_share"),tabindex:"0"},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"},on:{"update:isOpen":function(e){t.isOpen=e},"update:is-open":function(e){t.isOpen=e}}},[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","chat_menu"),"data-text":t.$i18n("rollover","chat_menu"),tabindex:"0"},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:{label:t.$i18n("menu","change_name"),isText:!0,size:"small",role:"button",tabindex:t.isOpen?0:-1},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:{label:t.$i18n("menu","email_transcript"),isText:!0,size:"small",role:"button",tabindex:t.isOpen?0:-1},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:{label:t.$i18n("menu","sound_on"),isText:!0,size:"small",role:"button",tabindex:t.isOpen?0:-1},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:{label:t.$i18n("menu","popout_widget"),isText:!0,size:"small",role:"button",tabindex:t.isOpen?0:-1},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:{label:t.$i18n("menu","end_chat_session"),isText:!0,size:"small",role:"button",tabindex:t.isOpen?0:-1},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:{label:t.$i18n("menu","add_chat_to_your_website"),href:t.branding.url,target:"blank",isText:!0,size:"small",role:"button",tabindex:t.isOpen?0:-1}},[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).exports,h=a("7f46");function f(t){return(f="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 p(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 g(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?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","message_queued_text_other",{count: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).exports,G=a("3519"),J=a("3f09"),X={name:"progress-bar",props:{handle:{type:String,default:""},fileName:{type:String,default:""},fileSize:{type:String,default:""},percentage:{type:Number,default:0}},computed:{progressWidth:function(){return"width : ".concat(this.percentage,"%")}},methods:{beautifyFilename:function(t,e){var a=t.lastIndexOf("."),i=t.substring(0,a),r=".".concat(t.substring(a+1));return i.length>7&&(r=i.substring(i.length-3)+r,i=i.substring(0,i.length-3)),''.concat(i,'').concat(r,' (').concat(e,")")}}},K=Object(d.a)(X,(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).exports;function Y(t){return(Y="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 Q(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 tt(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:function(){};if(t){var a=this.$refs["chat-body"],i=a?a.$refs[t]:null,r=this.$refs["tawk-chat-panel"];i&&i.length&&r?(void 0!==i[0].offsetTop?r.scrollTop=i[0].offsetTop-40:r.scrollTop=i[0].offsetTop,this.$refs["tawk-chat-panel"]&&this.$refs["tawk-chat-panel"].$scrollbar&&this.$refs["tawk-chat-panel"].$scrollbar.update(),e()):e(i)}},clearBarMessageId:function(){var t=this;clearTimeout(this.clearBarTimeout),this.clearBarTimeout=setTimeout((function(){t.barMessageId=null,t.barMessageRerence&&(t.barMessageRerence.showBar=!1),t.showNotification=!1,t.barMessageRerence=null}),1e3)},checkSeenMessageViewport:function(){var t,e=-1,a=this.$refs["chat-body"];if(0!==this.unseenMessages.length&&a&&this.isFocus){for(var i=0;ithis.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/4?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":t0)for(var a=0,r=t.formData.questions.length;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:ht(ht({},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 t=document.querySelector("meta[name=viewport]")||document.querySelector("meta[name=VIEWPORT]");this.$TawkWindow.isMobileOptimizedWebsite||null===this.noZoomMetaTag||(this.$TawkWindow.metaContent||""!==this.noZoomMetaTag.content?this.$TawkWindow.metaContent&&!this.$TawkWindow.hasNoScale&&t&&t.setAttribute("content",this.$TawkWindow.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 e=document.body;this.originalBodyStyle=e.style.cssText;for(var a=["height","min-height","max-height","width","min-width","max-width"],i=0;ii+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 t=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),this.$eventBus.$on("switchWidget",(function(){t.key=r.Helper.generateUUID(),t.calculateIframeSize(),t.$nextTick((function(){t.injectStyleNode()}))})),this.$eventBus.$on("forceUpdate",(function(){t.initialized=!1,t.$nextTick((function(){t.initialized=!0}))})),this.injectStyleNode(),this.$eventBus.$on("updateWidgetSettings",(function(){t.removeStyleNode(),t.$nextTick((function(){t.injectStyleNode()}))}))},beforeDestroy:function(){this.$el.contentWindow.removeEventListener("focus",this.handleFocus),this.$el.contentWindow.removeEventListener("blur",this.handleBlur),window.removeEventListener("resize",this.calculateIframeSize)}},gt=Object(d.a)(pt,(function(){var t=this,e=t._self._c;return e("i-frame",{key:t.key,ref:"max-widget",attrs:{width:t.iframe.width,height:t.iframe.height,cssLink:t.cssLink,styleObject:t.styleObject,classString:t.classString}},[e("transition",{attrs:{tag:"div",name:"tawk-max-slide"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}]},[t.initialized?e("div",{staticClass:"tawk-max-container tawk-flex tawk-flex-column",class:[!t.isToolbarElementsVisible&&"tawk-no-toolbar-elements"],style:{borderRadius:t.borderRadius},on:{click:t.widgetFocus,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.widgetFocus.apply(null,arguments)}}},[e("toolbar",{ref:"main-toolbar",attrs:{borderRadiusTop:t.borderRadiusTop,showBackButton:t.showBackButton,currentView:t.currentView,showWebRtcButtons:!0,showAgentAvatars:!0},on:{showEndChat:function(e){t.showEndChat=!0}}}),t.isWebrtcEnabled?e("call-widget"):t._e(),e("tawk-overlay",{ref:"view-overlay",style:{borderRadius:t.borderRadius},attrs:{isOpen:t.isOverlayOpen,title:t.currentView&&t.currentView.title?t.currentView.title():"",backTooltipText:t.$i18n("rollover","back"),headerClass:"tawk-custom-color"},on:{goBack:t.handleOverlayBack}},[e("div",{attrs:{slot:"options"},slot:"options"},[t.isOverlayOpen?e("toolbar",{attrs:{borderRadiusTop:t.borderRadiusTop,currentView:t.currentView},on:{showEndChat:function(e){t.showEndChat=!0}}}):t._e()],1),e("div",{staticClass:"tawk-flex tawk-flex-column",staticStyle:{height:"100%",overflow:"hidden"}},[e("div",{staticClass:"tawk-flex tawk-flex-column tawk-flex-1 tawk-custom-flex-1"},[e("div",{staticClass:"tawk-router-view tawk-flex tawk-flex-1 tawk-custom-flex-1"},[e("tawk-router-view",{ref:"router-view"})],1),e("maximize-footer",{directives:[{name:"show",rawName:"v-show",value:t.isOverlayOpen,expression:"isOverlayOpen"}],ref:"overlay-footer"})],1)])]),t.isInactive?e("inactive-overlay"):t._e(),t.showEndChat&&!t.hasChatEnded?e("end-chat",{on:{cancelEnd:function(e){t.showEndChat=!1}}}):t._e(),e("div",{staticClass:"tawk-flex tawk-flex-column tawk-flex-1"},[e("div",{staticClass:"tawk-router-view tawk-flex tawk-flex-1"},[t.isLoaded?t._e():e("div",{staticClass:"tawk-flex tawk-flex-middle tawk-flex-center",style:{width:"100%",height:"100%",left:0,top:0,position:"absolute"}},[e("div",{staticClass:"tawk-spinner-loader",style:{margin:"1px"}})]),e("transition",{attrs:{name:"slide-fade",mode:"out-in"}},[!t.hasLiveChat||t.needConsent||!t.chatOrder&&!t.hasChatStarted&&t.hasHomeView?t._e():e("chat-view",{directives:[{name:"show",rawName:"v-show",value:"chat"===t.currentRoute||"agents"===t.currentRoute,expression:"currentRoute === 'chat' || currentRoute === 'agents'"}],ref:"chat-view"})],1),e("transition",{attrs:{name:"slide-fade",mode:"out-in"}},[t.hasLiveChat&&!t.needConsent&&t.isPrechatEnabled&&t.isReady&&!t.prechatFormSubmitted&&("prechat"===t.currentRoute||!t.hasHomeView||t.hasPrechatHistory&&!t.prechatFormSubmitted)?e("prechat-view",{ref:"prechat-view"}):t._e()],1),e("transition",{attrs:{name:"slide-fade",mode:"out-in"}},[t.hasHomeView||t.needConsent?e("home-view",{directives:[{name:"show",rawName:"v-show",value:t.isHomeViewVisible,expression:"isHomeViewVisible"}],ref:"home-view",attrs:{isVisible:t.isHomeViewVisible&&!t.isOverlayOpen}}):t._e()],1)],1),e("maximize-footer",{ref:"main-footer"})],1),e("transition",{attrs:{name:"slide-fade"}},[t.isReconnecting?e("tawk-alert",{staticStyle:{position:"absolute",bottom:"16px",left:"16px",right:"16px",width:"auto","z-index":"10"},attrs:{title:t.$i18n("notifications","reconnecting"),status:"danger",description:"",icon:"error"}}):t._e()],1)],1):t._e()])])],1)}),[],!1,null,null,null);e.default=gt.exports},e49c:function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var i=a("f0b0"),r=a("7f46"),s={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:r.label,type:r.context,isRequired:r.required,selections:o||[],id:i.Helper.generateUUID(),errorMessage:s,isError:!1,invalidTypeValue:""})}else e.push({label:r.label,type:r.context||r.type,isRequired:r.required,selections:r.options?this.formatOptions(r.options,r.type):null,value:"checkbox"===r.type?[]:n,id:i.Helper.generateUUID(),errorMessage:s,invalidTypeValue:""})}return e},formatOptions:function(t,e){var a,r=[];"radio"===e&&(a=i.Helper.generateUUID());for(var s=0;s0)s=s.replace(/[- )(]/g,""),t.phone=s;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:r.a.rawDecode(i.label),answer:r.a.rawDecode(this.selectedDepartment.rawText)})}i.isRequired&&0===s.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:s&&s.length&&("string"==typeof s?t.questions.push({label:r.a.rawDecode(i.label),answer:s}):t.questions.push({label:r.a.rawDecode(i.label),answer:s.join(", ")}))}return{formData:t,hasError:e}}}}}}]); //# sourceMappingURL=twk-chunk-49c2962f.js.map