/*! 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 r=a("2f62"),i=a("f0b0"),n={name:"TawkSpinner"},s=a("2877"),o=Object(s.a)(n,(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;function c(t){return(c="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 l(){l=function(){return e};var t,e={},a=Object.prototype,r=a.hasOwnProperty,i=Object.defineProperty||function(t,e,a){t[e]=a.value},n="function"==typeof Symbol?Symbol:{},s=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",u=n.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,r){var n=e&&e.prototype instanceof w?e:w,s=Object.create(n.prototype),o=new E(r||[]);return i(s,"_invoke",{value:$(t,a,o)}),s}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",b={};function w(){}function v(){}function y(){}var k={};d(k,s,(function(){return this}));var x=Object.getPrototypeOf,O=x&&x(x(B([])));O&&O!==a&&r.call(O,s)&&(k=O);var S=y.prototype=w.prototype=Object.create(k);function T(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function a(i,n,s,o){var l=m(t[i],t,n);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==c(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){a("next",t,s,o)}),(function(t){a("throw",t,s,o)})):e.resolve(d).then((function(t){u.value=t,s(u)}),(function(t){return a("throw",t,s,o)}))}o(l.arg)}var n;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){a(t,r,e,i)}))}return n=n?n.then(i,i):i()}})}function $(e,a,r){var i=f;return function(n,s){if(i===p)throw Error("Generator is already running");if(i===g){if("throw"===n)throw s;return{value:t,done:!0}}for(r.method=n,r.arg=s;;){var o=r.delegate;if(o){var c=_(o,r);if(c){if(c===b)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var l=m(e,a,r);if("normal"===l.type){if(i=r.done?g:"suspendedYield",l.arg===b)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=g,r.method="throw",r.arg=l.arg)}}}function _(e,a){var r=a.method,i=e.iterator[r];if(i===t)return a.delegate=null,"throw"===r&&e.iterator.return&&(a.method="return",a.arg=t,_(e,a),"throw"===a.method)||"return"!==r&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var n=m(i,e.iterator,a.arg);if("throw"===n.type)return a.method="throw",a.arg=n.arg,a.delegate=null,b;var s=n.arg;return s?s.done?(a[e.resultName]=s.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,b):s:(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 E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function B(e){if(e||""===e){var a=e[s];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,n=function a(){for(;++i=0;--n){var s=this.tryEntries[n],o=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var c=r.call(s,"catchLoc"),l=r.call(s,"finallyLoc");if(c&&l){if(this.prev=0;--a){var i=this.tryEntries[a];if(i.tryLoc<=this.prev&&r.call(i,"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 r=a.completion;if("throw"===r.type){var i=r.arg;P(a)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,a,r){return this.delegate={iterator:B(e),resultName:a,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}function u(t,e,a,r,i,n,s){try{var o=t[n](s),c=o.value}catch(t){return void a(t)}o.done?e(c):Promise.resolve(c).then(r,i)}function d(t){return function(){var e=this,a=arguments;return new Promise((function(r,i){var n=t.apply(e,a);function s(t){u(n,r,i,s,o,"next",t)}function o(t){u(n,r,i,s,o,"throw",t)}s(void 0)}))}}function h(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function m(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var r=a.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var f={name:"InlineForm",mixins:[a("e49c").a],components:{TawkInput:i.TawkInput,TawkTextarea:i.TawkTextarea,TawkRadio:i.TawkRadio,TawkCheckbox:i.TawkCheckbox,TawkButton:i.TawkButton,TawkIcon:i.TawkIcon},props:{form:{type:Array,default:function(){return[]}},isSubmitting:{type:Boolean,default:!1},submissionError:{type:String,default:null}},data:function(){return{formFields:this.form,values:[]}},watch:{isNotValidEmail:function(t){var e=this;this.formFields.forEach((function(a){"email"===a.type&&null!=e.isNotValidEmail&&(a.invalidType=t)}))},name:function(t,e){t!==e&&this.updateFormValues()},email:function(t,e){t!==e&&this.updateFormValues()}},mounted:function(){this.updateFormValues()},computed:function(t){for(var e=1;e=0;--n){var s=this.tryEntries[n],o=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var c=r.call(s,"catchLoc"),l=r.call(s,"finallyLoc");if(c&&l){if(this.prev=0;--a){var i=this.tryEntries[a];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var a=this.tryEntries[e];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),P(a),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc===t){var r=a.completion;if("throw"===r.type){var i=r.arg;P(a)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,a,r){return this.delegate={iterator:B(e),resultName:a,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}function y(t,e,a,r,i,n,s){try{var o=t[n](s),c=o.value}catch(t){return void a(t)}o.done?e(c):Promise.resolve(c).then(r,i)}function k(t){return function(){var e=this,a=arguments;return new Promise((function(r,i){var n=t.apply(e,a);function s(t){y(n,r,i,s,o,"next",t)}function o(t){y(n,r,i,s,o,"throw",t)}s(void 0)}))}}function x(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function O(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 n,s=!0,o=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return s=t.done,t},e:function(t){o=!0,n=t},f:function(){try{s||null==a.return||a.return()}finally{if(o)throw n}}}}function F(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,r=Array(e);a=c?(i=Math.round(l/c),s="hours"):l>=o?(i=Math.round(l/o),s="minutes"):(i=Math.round(l/1e3),s="seconds"),n=this.$i18n("chat",s,{num:i}),this.$i18n("chat","call_end_details",{startedOn:"".concat(a,":").concat(r),duration:n})}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=M.exports},"38d6":function(t,e,a){"use strict";a.r(e);var r=a("2f62"),i=a("7f46"),n=a("f0b0");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 o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function c(t){for(var e=1;e0&&"c"===n.type&&((e=d[d.length-1]).ownerId===n.ownerId?(n.blockId=e.blockId,e.messages.push(n)):e=null),n.timeStamp>this.lastMessageTimestamp&&("v"===n.senderType?this.$store.dispatch("session/updateVisitorChatSeen",n.timeStamp):(this.unseenMessages.push(n),"chat"===this.currentRoute&&u&&!this.isLoading||this.barMessageId||(n.showBar=!0,this.barMessageId=n.messageId,this.barMessageRerence=n))),o&&"a"===n.senderType&&n.data&&n.data.rsc&&this.removeAgentIsTyping(n.data.rsc),n.isCallView){i.a.callStatusUpdate({clid:n.callId,f:{}});var m={ownerId:n.callId,callData:n.callData,messageType:"call",blockId:r.Helper.generateUUID(),callId:n.callId};l?this.$store.dispatch("chat/addMessageBlock",m):this.$store.dispatch("history/addMessageBlock",m)}else if(!e){if(void 0===n.ownerId&&"n"===n.type)return;var f={ownerId:n.ownerId,messages:[n],senderType:n.senderType,messageType:n.type,blockId:r.Helper.generateUUID(),profileImage:n.profileImage};n.blockId=f.blockId,l?this.$store.dispatch("chat/addMessageBlock",f):this.$store.dispatch("history/addMessageBlock",f)}o&&("v"===n.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 r=a("2f62");function i(t){return(i="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 n(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function s(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var r=a.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(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:c(c({},Object(r.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"),h=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,r){return e("tawk-avatar",{key:r,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,m=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 r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}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,Z=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("."),r=t.substring(0,a),i=".".concat(t.substring(a+1));return r.length>7&&(i=r.substring(r.length-3)+i,r=r.substring(0,r.length-3)),''.concat(r,'').concat(i,' (').concat(e,")")}}},Y=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 K(t){return(K="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 r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}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"],r=a?a.$refs[t]:null,i=this.$refs["tawk-chat-panel"];r&&r.length&&i?(void 0!==r[0].offsetTop?i.scrollTop=r[0].offsetTop-40:i.scrollTop=r[0].offsetTop,this.$refs["tawk-chat-panel"]&&this.$refs["tawk-chat-panel"].$scrollbar&&this.$refs["tawk-chat-panel"].$scrollbar.update(),e()):e(r)}},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 r=0;rthis.lastMessageTimestamp){e=r;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 r=t.$refs["tawk-chat-panel"];r&&r.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,i=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:mt(mt({},Object(r.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"],r=0;rr+10&&(t.resizeHeightTo=r+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=i.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()}))})),this.$store.dispatch("form/get")},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 n}));var r=a("f0b0"),i=a("7f46"),n={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;ar?1:0}));e.push({label:i.label,type:i.context,isRequired:i.required,selections:o||[],id:r.Helper.generateUUID(),errorMessage:n,isError:!1,invalidTypeValue:""})}else e.push({label:i.label,type:i.context||i.type,isRequired:i.required,selections:i.options?this.formatOptions(i.options,i.type):null,value:"checkbox"===i.type?[]:s,id:r.Helper.generateUUID(),errorMessage:n,invalidTypeValue:""})}return e},formatOptions:function(t,e){var a,i=[];"radio"===e&&(a=r.Helper.generateUUID());for(var n=0;n0)n=n.replace(/[- )(]/g,""),t.phone=n;else if("department"===r.type){if(r.isRequired&&!this.selectedDepartment){if(!r.selections||!r.selections.online.length&&!r.selections.offline.length)continue;r.isError=!0,e=!0;continue}if(r.isError=!1,!this.selectedDepartment)continue;t.department=this.selectedDepartment.value,t.questions.push({label:i.a.rawDecode(r.label),answer:i.a.rawDecode(this.selectedDepartment.rawText)})}r.isRequired&&0===n.length&&"department"!==r.type&&(this.$refs[r.id]&&this.$refs[r.id].length&&this.$refs[r.id][0]&&this.$refs[r.id][0].validate&&this.$refs[r.id][0].validate(),e=!0),r.isError?e=!0:n&&n.length&&("string"==typeof n?t.questions.push({label:i.a.rawDecode(r.label),answer:n}):t.questions.push({label:i.a.rawDecode(r.label),answer:n.join(", ")}))}return{formData:t,hasError:e}},formatInlineFormData:function(){for(var t={additionalInfo:[]},e=!1,a=null,r=0;r0&&(s=s.replace(/[- )(]/g,"")),t.phone=s.length?s:void 0;else if("message"===n.type)t.message=s.length?s:void 0;else{var o;null!==(o=s)&&void 0!==o&&o.length&&"string"==typeof s?n.value.length&&t.additionalInfo.push({label:i.a.rawDecode(n.label),type:n.type,value:s}):n.value.length&&t.additionalInfo.push({label:i.a.rawDecode(n.label),type:n.type,value:s.join(", ")})}n.isError&&(e=!0)}return{formData:t,error:{hasError:e,message:a}}}}}}}]); //# sourceMappingURL=twk-chunk-49c2962f.js.map