!function(){var e,t,n,i,r,o,a,s={90174:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(71030)},48035:function(e,t,n){"use strict";n.r(t);var i=n(35638),r=n(88632),o=n(18849),a=n(45652);t.default=r.default.extend(i.default,o.default,{shouldBackgroundReloadRecord:function(){return!1},URL:{default:a.default.EmberModelUrl.agent.url},urlTemplate:Ember.computed("token",{get:function(){return this.URL.default.replace("{token}",this.token)}})})},88632:function(e,t,n){"use strict";n.r(t);var i=n(86219),r=n(45652);t.default=i.default.extend({headers:{Accept:"application/json"},handleResponse:function(e,t,n,i){var o=r.default.HTTP_STATUS_CODES.RATE_LIMIT_ERROR;return e===o&&(n||(n={}),n.errors=[{retryAfter:parseInt(t["retry-after"]),status:o}]),this._super(e,t,n,i)}})},57090:function(e,t,n){"use strict";n.r(t);var i=n(35638),r=n(88632),o=n(18849),a=n(45652);t.default=r.default.extend(i.default,o.default,{URL:{public:a.default.EmberModelUrl.calendarData.url,default:a.default.EmberModelUrl.calendarData.url},findRecord:function(e,t,n,i){var r,o=null===(r=this.session)||void 0===r?void 0:r.token;if(!Ember.isBlank(n)){var a=this.URL.public.replace("{token}",o).replace("{userAlias}",n);return i&&i.adapterOptions&&i.adapterOptions.calendarProviderType&&(a+="?calendarProviderType="+i.adapterOptions.calendarProviderType),this.ajax(a,"GET")}this._super.apply(this,arguments)}})},48064:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var i=n(91392),r=n(18419),o=n(38461),a=n(94232);function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,a.Z)(e);if(t){var r=(0,a.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,o.Z)(this,n)}}var l=function(e){(0,r.Z)(n,e);var t=s(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return n}(n(36225).default)},21740:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var i=n(91392),r=n(18419),o=n(38461),a=n(94232);function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,a.Z)(e);if(t){var r=(0,a.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,o.Z)(this,n)}}var l=function(e){(0,r.Z)(n,e);var t=s(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return n}(n(36225).default)},36225:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var i,r,o,a,s=n(81190),l=n(91392),u=n(22081),c=n(18542),d=n(18419),f=n(38461),h=n(94232),p=n(76459),m=n(40990),g=n(64076),v=n(5980);function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,h.Z)(e);if(t){var r=(0,h.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,f.Z)(this,n)}}var y=(i=Ember.inject.service,r=Ember.computed("session.{appId,siteId}"),o=function(e){(0,d.Z)(n,e);var t=b(n);function n(){var e;(0,l.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o0?{categories:n.categories,contentLocale:n.contentLocale,lastModifiedAt:n.lastModifiedAt,status:200}:{categories:[],contentLocale:n.contentLocale,lastModifiedAt:n.lastModifiedAt,status:200},this._super(e,t,n,i))}})},85604:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var i=n(91392),r=n(18419),o=n(38461),a=n(94232);function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,a.Z)(e);if(t){var r=(0,a.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,o.Z)(this,n)}}var l=function(e){(0,r.Z)(n,e);var t=s(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return n}(n(36225).default)},48704:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=n(91392),r=n(22081),o=n(58204),a=n(18419),s=n(38461),l=n(94232),u=n(35638),c=n(88632),d=n(45652);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,l.Z)(e);if(t){var r=(0,l.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,s.Z)(this,n)}}var h=function(e){(0,a.Z)(n,e);var t=f(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n,[{key:"queryRecord",value:function(e,t,n){var i,r,o,a,s=n,l=s.locale,u=s.page,c=null===(i=this.session)||void 0===i?void 0:i.faqTags,f=null===(r=this.session)||void 0===r?void 0:r.widgetUuid;if(a=(a=s.term?d.default.EmberModelUrl.kbaseArticleSearch.url+"?term=".concat(s.term,"&"):d.default.EmberModelUrl.kbaseArticles.url.replace("{categoryId}",s.categoryId)+"?").replace("{token}",null===(o=this.session)||void 0===o?void 0:o.token),a+="per_page=".concat(d.default.KBASE_PAGINATION_LIMIT,"&platform=web&locale=").concat(l,"&page=").concat(u),c){var h="article"===String(c.filterType).toLowerCase()&&c.tags,p="category"===String(c.filterType).toLowerCase()&&c.tags;Ember.isArray(h)&&h.length&&(a+="&tags=".concat(h.toString())),Ember.isArray(p)&&p.length&&(a+="&categoryTags=".concat(p.toString()))}return f&&(a+="&widgetUuid=".concat(f)),this.ajax(a,"GET")}},{key:"handleResponse",value:function(e,t,i,r){return i&&i.articles?(i={articles:i.articles,nextPage:i.pagination.nextPage},(0,o.Z)((0,l.Z)(n.prototype),"handleResponse",this).call(this,e,t,i,r)):(0,o.Z)((0,l.Z)(n.prototype),"handleResponse",this).call(this,e,t,i,r)}}]),n}(c.default.extend(u.default))},68093:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=n(91392),r=n(22081),o=n(58204),a=n(18419),s=n(38461),l=n(94232),u=n(35638),c=n(88632),d=n(45652);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,l.Z)(e);if(t){var r=(0,l.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,s.Z)(this,n)}}var h=function(e){(0,a.Z)(n,e);var t=f(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n,[{key:"queryRecord",value:function(e,t,n){var i,r,o,a=n,s=d.default.EmberModelUrl.kbaseCategories.url,l=a.locale,u=a.page,c=null===(i=this.session)||void 0===i?void 0:i.faqTags,f=null===(r=this.session)||void 0===r?void 0:r.widgetUuid;if(s=s.replace("{token}",null===(o=this.session)||void 0===o?void 0:o.token),s+="?per_page=".concat(d.default.KBASE_PAGINATION_LIMIT,"&platform=web&locale=").concat(l,"&page=").concat(u),c){var h="category"===String(c.filterType).toLowerCase()&&c.tags;Ember.isArray(h)&&h.length&&(s+="&tags=".concat(h.toString()))}return f&&(s+="&widgetUuid=".concat(f)),this.ajax(s,"GET")}},{key:"handleResponse",value:function(e,t,i,r){return i&&i.categories?(i={categories:i.categories,nextPage:i.pagination.nextPage},(0,o.Z)((0,l.Z)(n.prototype),"handleResponse",this).call(this,e,t,i,r)):(0,o.Z)((0,l.Z)(n.prototype),"handleResponse",this).call(this,e,t,i,r)}}]),n}(c.default.extend(u.default))},67920:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return S}});var i,r,o,a,s,l,u,c,d=n(81190),f=n(91392),h=n(22081),p=n(18542),m=n(18419),g=n(38461),v=n(94232),b=n(76459),y=n(40990),E=n(64076),Z=n(31314),w=n(92759);function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,v.Z)(e);if(t){var r=(0,v.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,g.Z)(this,n)}}var S=(i=Ember.inject.service,r=Ember.inject.service,o=Ember.inject.service("post-message"),a=Ember.computed("session.{token,siteId}"),s=function(e){(0,m.Z)(n,e);var t=T(n);function n(){var e;(0,f.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;of&&!this.isDestroyed&&((0,u.addCSSInline)(this.wrapperElement,"maxHeight",f-s-l+"px"),this.set("scrollMessage",!0)),!(null!==(n=this.messageStacker)&&void 0!==n&&n.showUnreadMessage||this.isDestroyed))this.send("scrollToBottom",e?null===(r=this.BUBBLE_CONFIG)||void 0===r||null===(o=r.scrollToBottomSpeed)||void 0===o?void 0:o.low:null===(c=this.BUBBLE_CONFIG)||void 0===c||null===(d=c.scrollToBottomSpeed)||void 0===d?void 0:d.medium);this.checkScrollToBottom(this.wrapperElement)}}.bind(this),500),this.addBlurForTextExceeding()}},addBlurForTextExceeding:function(){var e=this;(0,u.forEach)(document.querySelectorAll("div.campaign-section"),function(t,n){(0,i.Z)(this,e);var r=t.querySelectorAll(".content"),o=t.querySelectorAll(".h-comment ");r&&r.length&&o&&o.length&&r[0].offsetHeight0&&void 0!==arguments[0]&&arguments[0];this.set("hideNotify",!0),this.set("previewMessages",[]),Ember.run.later(function(){(0,i.Z)(this,e),t?this.openChatWidget():(this.parentView.send("closeNotification"),this.parentView.send("toggleDialog",!1)),this.messageStacker.resetLastAgentMessages()}.bind(this),this.toggleDelays)},enlargeImage:function(e){this.openChatWidget(),this.enlargeImage&&this.enlargeImage(e)},keyPressUp:function(){var e=this,t=document.querySelector("#".concat(o.default.DOM_ID.previewWrapper)).offsetHeight;Ember.run.later(function(){(0,i.Z)(this,e);var n=this.stackMaxHeight-this.BUBBLE_CONFIG.widgetBubbleHeight;t1?this.intl.t("aria_labels.unread_msg_other",{count:this.displayUnreadCount}):this.intl.t("aria_labels.unread_msg_one")}},{key:"cssTemplate",get:function(){return ke.default[this.cssProp]}},{key:"getRole",get:function(){return this.isOpen?"dialog":null}},{key:"customCSS",get:function(){var e=this.cssTemplate,t=this.replaceTags;return e&&t?(t.forEach((function(t){e=e.replace(new RegExp(t.id,"g"),t.value)})),e):null}},{key:"fontProperties",get:function(){var e=this.defaultFontUrl;return{name:this.defaultFontName,url:e}}},{key:"isOpen",get:function(){return this._isOpen}},{key:"ariaLive",get:function(){return this._isOpen?"off":"polite"}},{key:"isFullscreen",get:function(){var e,t;return null===(e=this.session)||void 0===e||null===(t=e.config)||void 0===t?void 0:t.fullscreen}},{key:"showMinimizeIconInsideWidget",get:function(){var e,t,n,i=null===(e=this.session)||void 0===e||null===(t=e.config)||void 0===t||null===(n=t.headerProperty)||void 0===n?void 0:n.hideHeader,r=this.currentRouteName,o=r&&-1!==r.indexOf("channel");return(!i||!o)&&(this.isFullscreen||this.isMobileView)}},{key:"isRemoveCloseIcon",get:function(){var e,t,n=null===(e=this.session)||void 0===e?void 0:e.config;return(null==n||null===(t=n.headerProperty)||void 0===t?void 0:t.hideHeader)&&(null==n?void 0:n.fullscreen)}},{key:"currentRouteName",get:function(){var e;return null===(e=this.router)||void 0===e?void 0:e.currentRouteName}},{key:"didInsertElement",value:function(){var e,t,i,r,o,a;(0,Te.Z)((0,Ae.Z)(n.prototype),"didInsertElement",this).apply(this,arguments);var s=null===(e=this.hotline)||void 0===e||null===(t=e.ui)||void 0===t?void 0:t.config;s&&s.appId?this.addMessagingEvents():this.postMessage.post({action:"push_subscribe_destroy_response"}),null!==(i=this.hotline)&&void 0!==i&&null!==(r=i.ui)&&void 0!==r&&r.isDesktop||null!==(o=this.hotline)&&void 0!==o&&null!==(a=o.ui)&&void 0!==a&&a.isTablet||(this.postMessage.post({action:"notify_frame",data:"mobile-view"}),Ember.set(this,"isMobileView",!0)),this.set("focusIndicatorMouseEvent",this.removeFocusIndicator.bind(this)),document.addEventListener("click",this.focusIndicatorMouseEvent),this.set("focusIndicatorKeyboardEvent",this.addFocusIndicator.bind(this)),document.addEventListener("keydown",this.focusIndicatorKeyboardEvent)}},{key:"willDestroyElement",value:function(){(0,Te.Z)((0,Ae.Z)(n.prototype),"willDestroyElement",this).apply(this,arguments),this.removeMessagingEvents(),this.focusIndicatorMouseEvent&&document.removeEventListener("click",this.focusIndicatorMouseEvent),this.focusIndicatorKeyboardEvent&&document.removeEventListener("keydown",this.focusIndicatorKeyboardEvent)}},{key:"messageCB",get:function(){return this.onMessage.bind(this)}},{key:"displayNotification",get:function(){var e,t=this.isOpen,n=null===(e=this.lastAgentMessages)||void 0===e?void 0:e.lastObject,i=!t&&n;return i&&(i=i&&-1===[ze.default.CONVERSATION.MESSAGE_TYPE.SCREEN_SHARING.ACCEPTED,ze.default.CONVERSATION.MESSAGE_TYPE.SCREEN_SHARING.ENDED,ze.default.CONVERSATION.MESSAGE_TYPE.SCREEN_SHARING.CANCELLD].indexOf(n.messageType),this.send("toggleNotification")),i}},{key:"removeFocusIndicator",value:function(){document.body&&document.body.classList&&document.body.classList.contains("keyboard-focus")&&document.body.classList.remove("keyboard-focus")}},{key:"resetUserSession",value:function(e){var t=this;this.send("resetSession",function(n,i){(0,be.Z)(this,t),n&&this.send("userCleared"),this.postMessage.post({action:e+"_ack",success:n,status:i})}.bind(this))}},{key:"multipleTabsUserObserver",value:function(){var e;null!==(e=this.session)&&void 0!==e&&e.userCreated&&this.send("getUser")}},{key:"multipleTabsUserClearObserver",value:function(){var e;null!==(e=this.session)&&void 0!==e&&e.isUserClearedAcrossTab&&this.resetUserSession("reset_user")}},{key:"addFocusIndicator",value:function(e){e&&e.target&&"iti__selected-flag"!==e.target.className&&(e.keyCode===ze.default.KEYCODES.TAB&&(this.isInitialRender&&(this.set("isInitialRender",!1),We.default.trapFocus(".webchat",!1)),document.body&&document.body.classList&&!document.body.classList.contains("keyboard-focus")&&document.body.classList.add("keyboard-focus")),e.shiftKey||e.keyCode!==ze.default.KEYCODES.ENTER||e.target.classList.contains("editable")||e.target.hasAttribute("aria-disabled")||"0"!==e.target.getAttribute("tabindex")&&"-1"!==e.target.getAttribute("tabindex")&&"button"!==e.target.getAttribute("role")||!e.target.classList||e.target.classList.contains("ember-basic-dropdown-trigger")||!e.target.parentElement||!e.target.parentElement.classList||e.target.parentElement.classList.contains("ember-basic-dropdown-trigger")||(e.preventDefault(),e.target.click()))}},{key:"addMessagingEvents",value:function(){var e,t;window.addEventListener?window.addEventListener("message",this.messageCB,!1):window.detachEvent&&window.attachEvent("onmessage",this.messageCB),this.postMessage.post({action:"frame_state_change",settingsPayload:null===(e=this.hotline)||void 0===e||null===(t=e.ui)||void 0===t?void 0:t.config,data:{frameState:ze.default.FrameState.INITIALIZED}})}},{key:"removeMessagingEvents",value:function(){window.removeEventListener?window.removeEventListener("message",this.messageCB):window.detachEvent&&window.detachEvent("onmessage",this.messageCB)}},{key:"processFrame",value:function(){var e,t,n,i,r,o,a,s,l,u,c,d,f=(null===(e=this.hotline)||void 0===e||null===(t=e.ui)||void 0===t||null===(n=t.config)||void 0===n?void 0:n.appSubDomain)||(null===(i=this.hotline)||void 0===i||null===(r=i.ui)||void 0===r||null===(o=r.config)||void 0===o?void 0:o.appId),h=(null===(a=this.hotline)||void 0===a||null===(s=a.ui)||void 0===s||null===(l=s.config)||void 0===l?void 0:l.appLogoPath)||"",p=Me.default.webpush,m=p.domain[Me.default.hotlineEnv.type].replace("{appName}",f)+"/index.html",g=this.localStorage.getItemLS("subDomainName"),v=this.intl.get("locale")&&this.intl.get("locale").length>0?this.intl.get("locale")&&this.intl.get("locale")[0]:"",b=null===(u=this.hotline)||void 0===u||null===(c=u.ui)||void 0===c||null===(d=c.config)||void 0===d?void 0:d.sales360App;b&&-1!==window.location.host.indexOf(ze.default.CRM.DOMAIN_PATH)&&(m=p.domain.crm[Me.default.hotlineEnv.type].replace("{appName}",f)+"/index.html"),g!==f&&this.subscription.clearSubscription(),this.processPushNotifications(),m=p.protocol+m,this.postMessage.post({action:"widget_loaded",pushDomain:m,appLogoPath:h,locale:v,sales360App:b})}},{key:"updateLocation",value:function(e){var t,n,i=this.localds,r=(new Date).getTime();if(e.newValue){var o=i.get("userBehaviour"),a=o&&o.get("locations"),s=e.newValue&&e.newValue||"",l=a&&a.findBy("pageUrl",s),u={url:s,title:e.title,force:e.force};this.reportVisit(),l?l.set("viewCount",l.get("viewCount")+1):(l=this.store.createRecord("userLocation",{pageUrl:s,viewCount:1}),a.pushObject(l)),this.send("save",!1),Ember.setProperties(null===(t=this.hotline)||void 0===t||null===(n=t.ui)||void 0===n?void 0:n.userBehaviour,{currentUrl:s}),this.updateEvent("fc_page",u,r)}}},{key:"processPushNotifications",value:function(e){var t,n,i,r,o,a,s,l,u=this,c=null===(t=this.session)||void 0===t?void 0:t.user,d=c&&c.alias,f=this.notification,h=(null===(n=this.hotline)||void 0===n||null===(i=n.ui)||void 0===i||null===(r=i.config)||void 0===r?void 0:r.appSubDomain)||(null===(o=this.hotline)||void 0===o||null===(a=o.ui)||void 0===a||null===(s=a.config)||void 0===s?void 0:s.appId);this.localStorage.setItemLS("subDomainName",h),e?(this.localStorage.setItemLS("subscriptionInfo",e),l=e):l=this.localStorage.getItemLS("subscriptionInfo"),null!==l&&l&&l.subscription||!d||this.logger.log("subscriptionInfo missing"),this.set("hotline.ui.push",l),f.bindPushEvents(),setTimeout(function(){var e,t,n,i;(0,be.Z)(this,u),null!==(e=this.hotline)&&void 0!==e&&null!==(t=e.ui)&&void 0!==t&&t.focussed||null!==(n=this.hotline)&&void 0!==n&&null!==(i=n.ui)&&void 0!==i&&i.widgetFocussed?f.sendUnsubscribeToServer():f.sendSubscriptionToServer()}.bind(this),1e3)}},{key:"onMessage",value:function(e){var t,n,i=this,r=e.origin||e.originalEvent.origin,o=null===(t=this.session)||void 0===t?void 0:t.user,a=o&&o.alias,s=this.postMessage.origin,l=this.notification,u=this.localds,c=u&&u.get("userBehaviour"),d=null===(n=this.session)||void 0===n?void 0:n.token,f=e.data;if(f){var h,p,m=!1;if(f.isWebViewMessage)m=(0,Ve.isTrustedDomain)(r,null===(h=this.hotline)||void 0===h||null===(p=h.ui)||void 0===p?void 0:p.whiteListedDomains);else m=r===s||this.session.appHost===r;if(m){var g=f.action?f.action:f.event_id;switch(g){case ze.default.TAKE_SCREENSHOT:this.postMessage.post({action:"take_screenshot"});break;case ze.default.BOT_ACTIONS.TRIGGER_JS_FUNCTION:var v,b,y=(null===(v=f.data)||void 0===v?void 0:v.value)||"undefined";this.botActionEvents.triggerEvent({name:g,data:{message:y,channelId:null===(b=f.data)||void 0===b?void 0:b.channelId}});break;case"push_subscribe_destroy":l.sendSubscribeOnUnload(),this.postMessage.post({action:"push_subscribe_destroy_response"});break;case"widget_blur":this.set("hotline.ui.widgetFocussed",!1),this.set("hotline.ui.parentTitle",f.payload.title),this.set("hotline.ui.parentLocation",f.payload.location),l.sendSubscriptionToServer();break;case"widget_focus":this.set("hotline.ui.widgetFocussed",!0),l.sendUnsubscribeToServer();break;case"widget_location":this.set("hotline.ui.parentTitle",f.payload.title),this.set("hotline.ui.parentLocation",f.payload.location);break;case"load_widget":var E,Z=f.payload.config,w=null==Z||null===(E=Z.headerProperty)||void 0===E?void 0:E.customUserAgent;w&&"string"==typeof w&&"CNA"!==w.toUpperCase()&&(this.set("hotline.ui.isTablet",null),this.postMessage.post({action:"notify_frame",data:"mobile-view"}),Ember.set(this,"isMobileView",!0)),l.playEmptySound(Z),this.send("loadWidget",f.payload);break;case"set_bot_config":var T=f.payload,S=T.flowId,I=T.flowVersionId,A=T.isPostAgentResolutionEnabled,R=void 0!==A&&A,C=T.isTemplateBot,O=void 0!==C&&C;Ember.set(this,"session.flowId",S),Ember.set(this,"session.flowVersionId",I),Ember.set(this,"session.isTemplateBot",O),Ember.set(this,"session.isPostAgentResolutionEnabled",R);break;case"push_user_meta":this.processPushNotifications(f.data);break;case"update_cookie":this.send("updateCookie",f.payload);break;case"restore_cookie":this.send("restoreCookie",f.payload);break;case"open_chat":this.send("triggerOpenClose",!0);break;case"close_chat":this.send("triggerOpenClose",!1);break;case"show_chat":this.send("triggerShowHide",!0);break;case"hide_chat":this.send("triggerShowHide",!1);break;case"set_tags":this.send("setTags",f.payload);break;case"set_prop":this.send("setProp",f.payload);break;case"set_faq_tags":this.send("setFaqTags",f.payload);break;case"load_rules":xe.Z.create({scope:this}).populate(),this.send("save",!1);var _=(new Date).getTime(),k=!0;c&&(c.get("hasLocationRule")||c.get("hasLocationKeyInRuleContent"))&&(!c.get("userGeolocation")||_-c.get("locationRuleFetchMillis")>ze.default.GeolocationCacheDuration)&&(k=!1,this.axios.makeRequest({method:"GET",url:ze.default.EmberModelUrl.geolocation.url.replace("{token}",d)}).then(function(e){(0,be.Z)(this,i),Ember.set(c,"locationRuleFetchMillis",(new Date).getTime()),Ember.set(c,"userGeolocation",e.data),this.send("save",!1),this.postMessage.post({action:"rules_loaded"})}.bind(this))),k&&this.postMessage.post({action:"rules_loaded"});var M=this.cache.decache("track_events");M&&M.forEach(function(e){(0,be.Z)(this,i),this.updateEvent(e.eventName,e.eventProperties)}.bind(this));break;case"set_external_id":this.send("setExternalId",f.payload,function(e,t,n){(0,be.Z)(this,i),this.postMessage.post({action:f.action+"_ack",success:e,status:t,data:n})}.bind(this));break;case"user_exists":this.send("isUserCreated",function(e,t,n){(0,be.Z)(this,i),this.postMessage.post({action:f.action+"_ack",success:e,status:t,data:n})}.bind(this));break;case"set_user_properties":this.send("setUserProperties",f.payload,function(e,t,n){(0,be.Z)(this,i),this.postMessage.post({action:f.action+"_ack",success:e,status:t,data:n})}.bind(this));break;case"set_bots_properties":this.send("setBotsProperties",f.payload,function(e,t,n){(0,be.Z)(this,i),this.postMessage.post({action:f.action+"_ack",success:e,status:t,data:n})}.bind(this));break;case"set_conversation_properties":var N,P;(null===(N=this.hotlineUI)||void 0===N||null===(P=N.config)||void 0===P?void 0:P.betaFeatures)[ze.default.conversationPropertiesBetaFeature]&&this.send("setConversationProperties",f.payload);break;case"set_custom_config":this.send("loadConfig",f.payload);break;case"get_user":a?this.postMessage.post({action:f.action+"_ack",success:!0,status:200,data:o}):this.postMessage.post({action:f.action+"_ack",success:!1,status:401});break;case"update_user":var D=f&&f.payload;a?D?this.send("updateUser",D):this.postMessage.post({action:f.action+"_ack",success:!1,status:400}):this.postMessage.post({action:f.action+"_ack",success:!1,status:401});break;case"reset_user":this.resetUserSession(f.action);break;case"create_user":this.send("createUser",f.payload,function(e,t,n){(0,be.Z)(this,i),this.postMessage.post({action:f.action+"_ack",success:e,status:t,data:n})}.bind(this));break;case"clone_user":this.send("loadUserByAlias",f.payload,function(e,t,n){(0,be.Z)(this,i),this.postMessage.post({action:f.action+"_ack",success:e,status:t,data:n})}.bind(this));break;case"authenticate_user":if(this.jwt.isEnabled){var L=f&&f.payload,U=L&&this.getJWTMeta(L),x=U&&U.reference_id;a||this.jwt.auth.app?this.send("verifyJWT",{jwtAuthToken:f.payload},function(e){(0,be.Z)(this,i),this.jwt.isStrict&&this.jwt.auth.user&&e&&e.success&&(this.cache.findBy("post_message","widget_loaded")||this.send("trackActivity"))}.bind(this)):null===this.jwt.auth.app||null===this.jwt.auth.user||(!1===this.jwt.auth.app||!1===this.jwt.auth.user)&&x?(this.jwt.auth.app=!1,Ember.set(this.jwt.auth,"user",!1),Ember.set(this,"session.jwtAuthToken",f.payload),this.send("getUser")):this.send("verifyJWT",{jwtAuthToken:f.payload},function(e){(0,be.Z)(this,i),this.jwt.isStrict&&this.jwt.auth.app&&e&&e.success&&this.send("trackActivity"),this.postMessage.post(e)}.bind(this))}break;case"get_user_uuid":this.jwt.isEnabled?this.send("getUserUUID",function(e){(0,be.Z)(this,i),this.postMessage.post({action:f.action+"_ack",success:!0,status:200,data:{uuid:e}})}.bind(this)):this.postMessage.post({action:f.action+"_ack",success:!1,status:401});break;case"generate_user_uuid":this.jwt.isEnabled?this.send("generateUserUUID",function(e){(0,be.Z)(this,i),this.postMessage.post({action:f.action+"_ack",success:!0,status:200,data:{uuid:e}})}.bind(this)):this.postMessage.post({action:f.action+"_ack",success:!1,status:401});break;case"open_channel":this.send("triggerOpenClose",!0),this.gotoChannel(f.payload);break;case"track_location":this.updateLocation(f.payload.pageUrl);break;case"track_event":this.updateEvent(f.payload.eventName,f.payload.data);break;case"track_activity":this.send("triggerActivity",f.payload);break;case"startScreenShare":var B=f.cb_data;B&&this.screenshare.startCoBrowsing(B);break;case"endScreenShare":this.screenshare.endCoBrowsing(f);break;case"acceptedAudioCall":this.screenshare.acceptAudioCall(f);break;case"deniedAudioCall":this.screenshare.denyAudioCall(f);break;case"stacked_max_height":this.set("stackMaxHeight",f.payload.height);break;case"collapse_all":var F,j=null===(F=this.hotline)||void 0===F?void 0:F.ui;j.modal&&(Ember.set(j,"modalOpen",!1),Ember.set(j,"openArticleFromMessage",!1),(0,qe.removeClass)(document.querySelector("html"),"expanded-modal"),this.postMessage.post({action:"collapse_all"}))}}}}},{key:"unreadObserver",value:function(){var e=this.totalUnreadCount;e!==this.lastUnreadCount&&(this.send("notifyUnread"),this.set("lastUnreadCount",e))}},{key:"removeOfflineMessagesOutsideBusinessHours",value:function(e){var t=this,n=this.conversations,i=this.localds;e&&e.forEach(function(e){if((0,be.Z)(this,t),!e.awayMessage){var r=n&&n.findBy("channelId",e.channelId),o=r&&r.get("messages").toArray(),a=o&&o.filterBy("offlineMessage",!0).filterBy("hasBeenRepliedToOffline",!1);if(a&&a.length>0)if(o&&o.forEach((function(e){e&&e.get("offlineMessage")&&!1===e.get("hasBeenRepliedToOffline")&&(o.removeObject(e),e.destroyRecord())})),o&&o.length)r&&r.set("messages",o);else{var s=this.conversations;s&&s.removeObject(r)}i&&i.save()}}.bind(this))}},{key:"checkChannelsOutsideBusinessHours",value:function(){var e,t,n,i,r=this,o=null===(e=this.hotline)||void 0===e||null===(t=e.ui)||void 0===t?void 0:t.awayMessage,a=null===(n=this.hotline)||void 0===n||null===(i=n.ui)||void 0===i?void 0:i.channels,s=[];a&&a.forEach(function(e){(0,be.Z)(this,r);var t=o&&o.findBy("operatingHoursId",e.operatingHoursId);(!t||t&&!t.enabled)&&(t=o&&o.findBy("defaultBhr",!0));var n={channelId:e&&e.channelId,awayMessage:t&&t.awayMessage};s.push(n)}.bind(this)),this.removeOfflineMessagesOutsideBusinessHours(s)}},{key:"onEnlargeImage",value:function(e){var t=this;Ember.run.later(function(){var n;(0,be.Z)(this,t);var i=null===(n=this.hotline)||void 0===n?void 0:n.ui;Ember.set(i,"modalOpen",!0),Ember.set(i,"modal",{imageUrl:e}),parent.focus(),this.postMessage.post({action:"expand_all",picUrl:e})}.bind(this),500)}},{key:"setTags",value:function(e){var t=this.session,n=e&&e.tags,i=e&&e.force;t&&n&&n.length?Ember.set(t,"tags",n):Ember.set(t,"tags",void 0),i&&this.home()}},{key:"sendMessageOnEnter",value:function(e){var t,n,i,r;this.gotoChannel(e,null===(t=this.hotline)||void 0===t||null===(n=t.ui)||void 0===n?void 0:n.receivedMsgRefId,null===(i=this.hotline)||void 0===i||null===(r=i.ui)||void 0===r?void 0:r.parallelConversationId)}},{key:"setFaqTags",value:function(e){var t=this.session,n=e&&e.faqTags,i=e&&e.force;t&&n?Ember.set(t,"faqTags",n):Ember.set(t,"faqTags",void 0),i&&this.reloadRoute()}},{key:"setProp",value:function(e){var t=this.localds,n=e&&e.prop;t&&(n&&Object.keys(n).length>0?t.set("properties",this.store.createRecord("properties",n)):t.set("properties",void 0),this.send("save",!1))}},{key:"loadHomeView",value:function(){var e,t=this;this.processFrame();var n=this.displayChannels,i=null==n?void 0:n.length,r=this.getFaqCategories,o=null===(e=this.session)||void 0===e?void 0:e.faqTags,a=Ember.isPresent(r);if(o&&"category"===o.filterType&&(a=Ember.isPresent(r&&r.find(function(e){return(0,be.Z)(this,t),(0,Ve.subsetOfArray)(e.tags,o.tags)}.bind(this)))),n&&i>1)this.session&&this.session.config&&this.session.config.showFAQOnOpen&&a?this.router.replaceWith(this.session.isKbaseEnabled?"home.kbase-faq":"home.faqs"):this.router.replaceWith("home");else if(1===i)if(a){var s=this.session&&this.session.config;s&&s.showFAQOnOpen?this.router.replaceWith(this.session.isKbaseEnabled?"home.kbase-faq":"home.faqs"):s&&s.hideFAQ?this.displayHistoryConversations.length>0||this.isHelpWidgetAvailable?this.router.replaceWith("home"):this.router.replaceWith("home.channel",n[0].channelId):this.router.replaceWith("home")}else this.displayHistoryConversations.length>0||this.isHelpWidgetAvailable?this.router.replaceWith("home"):this.router.replaceWith("home.channel",n[0].channelId)}},{key:"toggleChat",value:function(){var e,t,n=this;if(this.isOpen){var i=document.querySelectorAll("iframe");i&&i.forEach(function(e){(0,be.Z)(this,n);var t=e.src;e.src="",e.src=t}.bind(this)),this.set("isInitialRender",!1),We.default.unTrapFocus(".webchat")}else this.set("isInitialRender",!0),We.default.moveFocusTo(".hotline-launcher");var r=document.querySelector("html");((0,qe.hasClass)(r,"expanded-article-view")||(0,qe.hasClass)(r,"collapsed-article-view"))&&((0,qe.removeClass)(r,"expanded-article-view"),(0,qe.removeClass)(r,"collapsed-article-view"),this.postMessage.post({action:"collapse_all_article_view"}));var o=this.hotline.ui.modal;o&&o.thirdPartyURL&&Ember.set(this.hotline.ui,"modalOpen",!this.isOpen),this.send("triggerOpenClose",!this.isOpen),null!==(e=this.session)&&void 0!==e&&null!==(t=e.config)&&void 0!==t&&t.eagerLoad&&this.set("session.config.eagerLoad",!1)}},{key:"updateView",value:function(e){this.set("currentView",e),this.send("checkJWTExpiry"),this.checkChannelsOutsideBusinessHours()}},{key:"setNextFocus",value:function(){event.shiftKey||event.keyCode!==ze.default.KEYCODES.TAB||document.querySelector(".csat-rating")&&(event.preventDefault(),We.default.moveFocusTo(".csat-rating"))}},{key:"toggleNotification",value:function(e){var t=e===ze.default.DialogState.CLOSE;t||this.isDialogOpen||this.send("toggleDialog",!0),this.set("isDialogOpen",!t),this.postMessage.post({action:"notify_frame",data:e})}},{key:"toggleDialog",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.postMessage.post({action:"toggle_dialog",data:e})}},{key:"closeNotification",value:function(){var e,t=null===(e=this.hotline)||void 0===e?void 0:e.ui,n=this.messageStacker;n.hasMessages&&(this.send("toggleNotification",ze.default.DialogState.CLOSE),n.resetLastAgentMessages(),Ember.setProperties(t,{lockAgentMessage:void 0}))}},{key:"triggerActivity",value:function(e){var t=this,n=this.session,i=n&&n.user,r=n&&n.siteId,o=i&&i.alias;if(o){var a=ze.default.EmberModelUrl.heartbeat.url;a=a.replace("{token}",n.token).replace("{userAlias}",o),r&&(a+="?siteId=".concat(r)),this.axios.makeRequest({method:"POST",url:a,data:e,contentType:"application/json; charset=UTF-8"}).then(function(){(0,be.Z)(this,t)}.bind(this),function(e){(0,be.Z)(this,t),this.logger.log(e)}.bind(this))}}},{key:"triggerShowHide",value:function(e){this.postMessage.post({action:"toggle_frame",show:e})}},{key:"updateCookie",value:function(e){var t=this.localds;this.set("session.omniCookie",e.omniCookie),t.set("alias",this.getUUID()),this.send("save",!1)}},{key:"restoreCookie",value:function(e){var t=this.localds;this.set("session.omniCookie",e.alias),t.set("alias",this.getUUID()),this.send("save",!1)}},{key:"triggerOpenClose",value:function(e){var t,n,i,r,o,a,s,l,u,c=this,d={action:"resize_frame",isOpen:e},f=this.currentView,h=null===(t=this.messageStacker)||void 0===t||null===(n=t.lastAgentMessages)||void 0===n||null===(i=n.lastObject)||void 0===i?void 0:i.channelId,p=null===(r=this.messageStacker)||void 0===r||null===(o=r.lastAgentMessages)||void 0===o||null===(a=o.lastObject)||void 0===a?void 0:a.conversationId,m=null===(s=this.messageStacker)||void 0===s||null===(l=s.lastAgentMessages)||void 0===l||null===(u=l.lastObject)||void 0===u?void 0:u.conversationReferenceId;if(this.send("closeNotification"),e){if(this.send("checkJWTExpiry"),this.checkChannelsOutsideBusinessHours(),h){if(this.set("hotline.ui.conversationReferenceId",m),this.set("hotline.ui.parallelConversationId",p),this.isParallelFeatureEnabled){var g=Ember.getOwner(this).lookup("route:".concat(this.router.currentRouteName));!Ember.testing&&g.refresh()}this.router.replaceWith("home.channel",h,{queryParams:{conversationId:p}})}this.set("_isOpen",!0),null!=f&&f.send&&f.send("onOpen"),setTimeout(function(){(0,be.Z)(this,c),this.set("startAnimate",!0)}.bind(this),1),this.postMessage.post(d)}else this.set("startAnimate",!1),setTimeout(function(){(0,be.Z)(this,c),this.set("_isOpen",!1),this.postMessage.post(d)}.bind(this),1)}},{key:"notifyUnread",value:function(){this.postMessage.post({action:"unread_count_notify",data:{count:this.totalUnreadCount}})}},{key:"reloadWidget",value:function(){var e,t;document.location.href=this.router.generate("widget",null===(e=this.session)||void 0===e?void 0:e.token,null===(t=this.session)||void 0===t?void 0:t.referrer)}}]),n}(Ember.Component.extend(Be.default,Fe.default,Ne.default,Le.default,Ue.default,Pe.default,De.default,je.default)),ae=(0,Ce.Z)(oe.prototype,"screenshare",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),se=(0,Ce.Z)(oe.prototype,"ruleEngine",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),le=(0,Ce.Z)(oe.prototype,"notification",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ue=(0,Ce.Z)(oe.prototype,"messageStacker",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ce=(0,Ce.Z)(oe.prototype,"localStorage",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),de=(0,Ce.Z)(oe.prototype,"postMessage",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fe=(0,Ce.Z)(oe.prototype,"subscription",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),he=(0,Ce.Z)(oe.prototype,"botActionEvents",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=(0,Ce.Z)(oe.prototype,"isAndroid",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),me=(0,Ce.Z)(oe.prototype,"isIOS",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ge=(0,Ce.Z)(oe.prototype,"showBusinessClosedBanner",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,Ce.Z)(oe.prototype,"replaceTags",[v],Object.getOwnPropertyDescriptor(oe.prototype,"replaceTags"),oe.prototype),(0,Ce.Z)(oe.prototype,"isWidgetLauncherIconType",[b],Object.getOwnPropertyDescriptor(oe.prototype,"isWidgetLauncherIconType"),oe.prototype),(0,Ce.Z)(oe.prototype,"getWidgetLauncherText",[y],Object.getOwnPropertyDescriptor(oe.prototype,"getWidgetLauncherText"),oe.prototype),(0,Ce.Z)(oe.prototype,"getWidgetLauncherIcon",[E],Object.getOwnPropertyDescriptor(oe.prototype,"getWidgetLauncherIcon"),oe.prototype),(0,Ce.Z)(oe.prototype,"getTextInfoIcon",[Z],Object.getOwnPropertyDescriptor(oe.prototype,"getTextInfoIcon"),oe.prototype),(0,Ce.Z)(oe.prototype,"ariaLabelForUnreadCount",[w],Object.getOwnPropertyDescriptor(oe.prototype,"ariaLabelForUnreadCount"),oe.prototype),(0,Ce.Z)(oe.prototype,"cssTemplate",[T],Object.getOwnPropertyDescriptor(oe.prototype,"cssTemplate"),oe.prototype),(0,Ce.Z)(oe.prototype,"getRole",[S],Object.getOwnPropertyDescriptor(oe.prototype,"getRole"),oe.prototype),(0,Ce.Z)(oe.prototype,"customCSS",[I],Object.getOwnPropertyDescriptor(oe.prototype,"customCSS"),oe.prototype),(0,Ce.Z)(oe.prototype,"fontProperties",[A],Object.getOwnPropertyDescriptor(oe.prototype,"fontProperties"),oe.prototype),(0,Ce.Z)(oe.prototype,"isOpen",[R],Object.getOwnPropertyDescriptor(oe.prototype,"isOpen"),oe.prototype),(0,Ce.Z)(oe.prototype,"ariaLive",[C],Object.getOwnPropertyDescriptor(oe.prototype,"ariaLive"),oe.prototype),(0,Ce.Z)(oe.prototype,"isFullscreen",[O],Object.getOwnPropertyDescriptor(oe.prototype,"isFullscreen"),oe.prototype),(0,Ce.Z)(oe.prototype,"showMinimizeIconInsideWidget",[_],Object.getOwnPropertyDescriptor(oe.prototype,"showMinimizeIconInsideWidget"),oe.prototype),(0,Ce.Z)(oe.prototype,"isRemoveCloseIcon",[k],Object.getOwnPropertyDescriptor(oe.prototype,"isRemoveCloseIcon"),oe.prototype),(0,Ce.Z)(oe.prototype,"currentRouteName",[M],Object.getOwnPropertyDescriptor(oe.prototype,"currentRouteName"),oe.prototype),(0,Ce.Z)(oe.prototype,"messageCB",[N],Object.getOwnPropertyDescriptor(oe.prototype,"messageCB"),oe.prototype),ve=(0,Ce.Z)(oe.prototype,"lastAgentMessages",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,Ce.Z)(oe.prototype,"displayNotification",[D],Object.getOwnPropertyDescriptor(oe.prototype,"displayNotification"),oe.prototype),(0,Ce.Z)(oe.prototype,"multipleTabsUserObserver",[L],Object.getOwnPropertyDescriptor(oe.prototype,"multipleTabsUserObserver"),oe.prototype),(0,Ce.Z)(oe.prototype,"multipleTabsUserClearObserver",[U],Object.getOwnPropertyDescriptor(oe.prototype,"multipleTabsUserClearObserver"),oe.prototype),(0,Ce.Z)(oe.prototype,"unreadObserver",[x],Object.getOwnPropertyDescriptor(oe.prototype,"unreadObserver"),oe.prototype),(0,Ce.Z)(oe.prototype,"onEnlargeImage",[B],Object.getOwnPropertyDescriptor(oe.prototype,"onEnlargeImage"),oe.prototype),(0,Ce.Z)(oe.prototype,"setTags",[F],Object.getOwnPropertyDescriptor(oe.prototype,"setTags"),oe.prototype),(0,Ce.Z)(oe.prototype,"sendMessageOnEnter",[j],Object.getOwnPropertyDescriptor(oe.prototype,"sendMessageOnEnter"),oe.prototype),(0,Ce.Z)(oe.prototype,"setFaqTags",[z],Object.getOwnPropertyDescriptor(oe.prototype,"setFaqTags"),oe.prototype),(0,Ce.Z)(oe.prototype,"setProp",[G],Object.getOwnPropertyDescriptor(oe.prototype,"setProp"),oe.prototype),(0,Ce.Z)(oe.prototype,"loadHomeView",[H],Object.getOwnPropertyDescriptor(oe.prototype,"loadHomeView"),oe.prototype),(0,Ce.Z)(oe.prototype,"toggleChat",[V],Object.getOwnPropertyDescriptor(oe.prototype,"toggleChat"),oe.prototype),(0,Ce.Z)(oe.prototype,"updateView",[q],Object.getOwnPropertyDescriptor(oe.prototype,"updateView"),oe.prototype),(0,Ce.Z)(oe.prototype,"setNextFocus",[W],Object.getOwnPropertyDescriptor(oe.prototype,"setNextFocus"),oe.prototype),(0,Ce.Z)(oe.prototype,"toggleNotification",[Y],Object.getOwnPropertyDescriptor(oe.prototype,"toggleNotification"),oe.prototype),(0,Ce.Z)(oe.prototype,"toggleDialog",[K],Object.getOwnPropertyDescriptor(oe.prototype,"toggleDialog"),oe.prototype),(0,Ce.Z)(oe.prototype,"closeNotification",[J],Object.getOwnPropertyDescriptor(oe.prototype,"closeNotification"),oe.prototype),(0,Ce.Z)(oe.prototype,"triggerActivity",[Q],Object.getOwnPropertyDescriptor(oe.prototype,"triggerActivity"),oe.prototype),(0,Ce.Z)(oe.prototype,"triggerShowHide",[X],Object.getOwnPropertyDescriptor(oe.prototype,"triggerShowHide"),oe.prototype),(0,Ce.Z)(oe.prototype,"updateCookie",[$],Object.getOwnPropertyDescriptor(oe.prototype,"updateCookie"),oe.prototype),(0,Ce.Z)(oe.prototype,"restoreCookie",[ee],Object.getOwnPropertyDescriptor(oe.prototype,"restoreCookie"),oe.prototype),(0,Ce.Z)(oe.prototype,"triggerOpenClose",[te],Object.getOwnPropertyDescriptor(oe.prototype,"triggerOpenClose"),oe.prototype),(0,Ce.Z)(oe.prototype,"notifyUnread",[ne],Object.getOwnPropertyDescriptor(oe.prototype,"notifyUnread"),oe.prototype),(0,Ce.Z)(oe.prototype,"reloadWidget",[ie],Object.getOwnPropertyDescriptor(oe.prototype,"reloadWidget"),oe.prototype),re=oe))||re)||re)||re)},41e3:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(44717)},51033:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return D}});var i,r,o,a,s,l,u,c,d,f,h,p,m,g,v=n(64076),b=n(81190),y=n(91392),E=n(22081),Z=n(18542),w=n(58204),T=n(18419),S=n(38461),I=n(94232),A=n(76459),R=n(40990),C=n(23771),O=n(59565),_=n(198),k=n.p+"page-not-found.5b02da7f25228bd06bc39c09fe0e9510.svg",M=n(10078),N=n(63028);function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,I.Z)(e);if(t){var r=(0,I.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,S.Z)(this,n)}}var D=(i=(0,C.classNames)("h-conv"),r=Ember.inject.service("external-article"),o=Ember.computed,a=Ember.computed,s=Ember.computed,l=Ember.computed,u=Ember.computed,c=Ember.computed,d=Ember._action,f=Ember._action,h=Ember._action,i((m=function(e){(0,T.Z)(n,e);var t=P(n);function n(){var e;(0,y.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o)?$/i.test(t.lastChild.innerHTML)&&t.removeChild(t.lastChild),t.appendChild(e))}}},{key:"didInsertElement",value:function(){(0,I.Z)((0,C.Z)(n.prototype),"didInsertElement",this).apply(this,arguments),Ember.run.scheduleOnce("afterRender",this,this.renderFunction)}},{key:"didUpdateAttrs",value:function(){(0,I.Z)((0,C.Z)(n.prototype),"didUpdateAttrs",this).apply(this,arguments),this.editorHasContent&&this.set("isContentEmpty",!1)}},{key:"getPlaceholderText",get:function(){var e,t,n,i,r,o,a,s,l;null!==(e=this.session)&&void 0!==e&&null!==(t=e.config)&&void 0!==t&&null!==(n=t.content)&&void 0!==n&&null!==(i=n.placeholders)&&void 0!==i&&i.reply_field?r=null===(o=this.session)||void 0===o||null===(a=o.config)||void 0===a||null===(s=a.content)||void 0===s||null===(l=s.placeholders)||void 0===l?void 0:l.reply_field:r=this.placeholder;return this.intl.t(r)}},{key:"renderFunction",value:function(){var e=this;this.editor=this.element,this.editor.setAttribute("contenteditable",this.contentEditable),this.autoFocus&&Ember.run.later(function(){(0,E.Z)(this,e),this.editor.focus()}.bind(this),150),(0,L.bindMutlipleEvents)(this.element,"blur keyup paste copy cut input",this.triggerChangeCB),(0,L.bindEvent)(this.element,"paste",this.pasteCallback.bind(this)),this.defaultContent()}},{key:"triggerChangeCB",get:function(){return this.triggerChange.bind(this)}},{key:"pasteCallback",value:function(e){var t,n=this,i=e.clipboardData;e.preventDefault();if(!i||-1===i.types.indexOf("text/html")&&-1===i.types.indexOf("text/plain")?window.clipboardData&&(t=window.clipboardData.getData("Text"),window.getSelection&&window.getSelection().getRangeAt(0).insertNode(document.createTextNode(t))):(t=e.clipboardData.getData("text/plain"),document.execCommand("insertHTML",!1,t)),this.set("isContentEmpty",/^(\s+|)?$/i.test(t)),this.hasValueInEditor(!!t),i&&i.types){if(-1!==i.types.indexOf("Files")&&(-1!==i.types.indexOf("text/html")||this.hideFileUpload))return;for(var r=0,o=i.types.length;o>r;r++)if(i.types[r].match(/image.*/)||i.items&&i.items[r].type.match(/image.*/)){var a,s=void 0;(a=i.items[r].getAsFile())&&((s=new FileReader).onload=function(e,t,i){var r=this;return(0,E.Z)(this,n),function(n){(0,E.Z)(this,r),e.set("content",{data:n.target.result,fileData:t,fileType:i,attr:{height:200,width:200}})}.bind(this)}.bind(this)(this,a,P.default.FILETYPE.IMAGE),s.readAsDataURL(a))}}}},{key:"willDestroyElement",value:function(){(0,I.Z)((0,C.Z)(n.prototype),"willDestroyElement",this).apply(this,arguments),(0,L.unbindMutlipleEvents)(this.element,"blur keyup paste copy cut input",this.triggerChangeCB),(0,L.unbindEvent)(this.element,"paste",this.pasteCallback.bind(this))}},{key:"change",value:function(){return this.set("isContentEmpty",/^(\s+|)?$/i.test(this.element.innerText)),this.isContentEmpty&&""===this.element.innerHTML?(this.defaultContent(),void this.focusOnTextarea()):this.set("value",this.element.innerHTML)}},{key:"focusOut",value:function(){this.onBlur&&this.onBlur()}},{key:"focusIn",value:function(){this.onFocus&&this.onFocus()}},{key:"keyDown",value:function(e){if(13===e.which)e.shiftKey||(e.preventDefault(),this.onKeyDown&&this.onKeyDown(this.value,e));else this.onKeyDown&&this.onKeyDown(this.value,e)}},{key:"click",value:function(){var e;null===(e=this.onClickEditor)||void 0===e||e.call(this)}},{key:"keyUp",value:function(e){var t=this.element?this.element.innerText:null,n=this.element?this.element.querySelectorAll("img").length:null;!Ember.isBlank(t)||n?this.hasValueInEditor&&this.hasValueInEditor(!0):this.hasValueInEditor&&this.hasValueInEditor(!1),this.onKeyUp&&this.onKeyUp(e,t),this.checkIfTextLengthExceedsLimit()}},{key:"valueDidChange",value:function(){this.set("height",this.element.offsetHeight)}},{key:"checkIfTextLengthExceedsLimit",value:function(){var e=this.getTextFromEditorForClosedOrOpenWidgetState();Ember.isBlank(e)||e&&e.length0&&e.length!==o&&r.push(e.slice(o)),r}},{key:"linkify",value:function(e){return v()(e,{attributes:{rel:"noreferrer noopener"},defaultProtocol:"https",nl2br:!0,target:{url:"_blank"}})}}]),n}(Ember.Component),(0,f.Z)(a.prototype,"generatedHTML",[r],Object.getOwnPropertyDescriptor(a.prototype,"generatedHTML"),a.prototype),o=a))||o)},38777:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Y}});var i,r,o,a,s,l,u,c,d,f,h,p,m,g,v,b,y,E,Z,w,T,S,I,A,R,C,O,_,k,M,N,P,D,L=n(64076),U=n(81190),x=n(91392),B=n(22081),F=n(18542),j=n(58204),z=n(18419),G=n(38461),H=n(94232),V=n(40990),q=n(55257);function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,H.Z)(e);if(t){var r=(0,H.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,G.Z)(this,n)}}var Y=(i=Ember.inject.service,r=Ember.inject.service,o=Ember.inject.service,a=Ember.inject.service,s=Ember.inject.service,l=Ember.inject.service,u=Ember.inject.service,c=Ember.inject.service("post-message"),d=Ember._tracked,f=Ember._tracked,h=Ember._tracked,p=Ember.computed("hotline.ui.{onLine,helpNote}","isReconnecting","isConnecting","isDisconnected","hasFlashMessage","isUserNotAuthenticated"),m=Ember.computed("jwt.auth.{expired,user}"),g=Ember.computed("flash.message"),v=Ember.computed,b=Ember.computed,y=Ember.computed,E=Ember.computed,Z=Ember.computed,w=Ember.computed,T=Ember._action,S=function(e){(0,z.Z)(n,e);var t=W(n);function n(e,i){var r;return(0,x.Z)(this,n),r=t.call(this,e,i),(0,U.Z)((0,F.Z)(r),"jwt",I,(0,F.Z)(r)),(0,U.Z)((0,F.Z)(r),"rts",A,(0,F.Z)(r)),(0,U.Z)((0,F.Z)(r),"session",R,(0,F.Z)(r)),(0,U.Z)((0,F.Z)(r),"hotline",C,(0,F.Z)(r)),(0,U.Z)((0,F.Z)(r),"flash",O,(0,F.Z)(r)),(0,U.Z)((0,F.Z)(r),"router",_,(0,F.Z)(r)),(0,U.Z)((0,F.Z)(r),"intl",k,(0,F.Z)(r)),(0,U.Z)((0,F.Z)(r),"postMessage",M,(0,F.Z)(r)),(0,U.Z)((0,F.Z)(r),"isReconnecting",N,(0,F.Z)(r)),(0,U.Z)((0,F.Z)(r),"isConnecting",P,(0,F.Z)(r)),(0,U.Z)((0,F.Z)(r),"isDisconnected",D,(0,F.Z)(r)),Ember.addListener(r.rts,"willConnect",r.willConnectCB),Ember.addListener(r.rts,"didClose",r.unbindAllRTSEventsCB),Ember.addListener(r.rts,"scriptLoadFailed",r.didDisconnectCB),r.bindAllRTSEvents(),r.rts.rtsScriptFailed&&r.didDisconnect(),r}return(0,B.Z)(n,[{key:"hidden",get:function(){return this.hotline.ui.onLine&&!(this.hotline.ui.helpNote||this.isReconnecting||this.isConnecting||this.isDisconnected||this.hasFlashMessage||this.isUserNotAuthenticated)}},{key:"isUserNotAuthenticated",get:function(){var e,t,n,i;return!(null===(e=this.jwt)||void 0===e||null===(t=e.auth)||void 0===t||!t.expired)||(null!==(n=this.jwt)&&void 0!==n&&null!==(i=n.auth)&&void 0!==i&&i.user,!1)}},{key:"jwtAuthErrorMsg",get:function(){var e,t,n,i;return(null===(e=this.session)||void 0===e||null===(t=e.config)||void 0===t||null===(n=t.headerProperty)||void 0===n||null===(i=n.jwtInvalidBanner)||void 0===i?void 0:i.msg)||this.intl.t("jwt.invalid")}},{key:"hasFlashMessage",get:function(){return!!this.flash.message}},{key:"willReconnectCB",get:function(){return this.willReconnect.bind(this)}},{key:"didReconnectCB",get:function(){return this.didReconnect.bind(this)}},{key:"willConnectCB",get:function(){return this.willConnect.bind(this)}},{key:"didConnectCB",get:function(){return this.didConnect.bind(this)}},{key:"didDisconnectCB",get:function(){return this.didDisconnect.bind(this)}},{key:"willDestroy",value:function(){(0,j.Z)((0,H.Z)(n.prototype),"willDestroy",this).apply(this,arguments),Ember.removeListener(this.rts,"willConnect",this.willConnectCB),Ember.removeListener(this.rts,"didClose",this.unbindAllRTSEventsCB),Ember.removeListener(this.rts,"scriptLoadFailed",this.didDisconnectCB),this.unbindAllRTSEvents()}},{key:"willConnect",value:function(){var e=this;this.connectTimer||(this.connectTimer=setInterval(function(){(0,L.Z)(this,e),this.isConnecting=!0,this.clearTimer()}.bind(this),1e4)),this.bindAllRTSEvents()}},{key:"clearTimer",value:function(){this.connectTimer&&(clearInterval(this.connectTimer),this.connectTimer=null)}},{key:"didConnect",value:function(){this.clearTimer(),this.resetAllRTSFlags(),this.postMessage.post({action:"rts_connected",status:200,success:!0,data:{connected:!0}})}},{key:"willReconnect",value:function(){this.isReconnecting=!0}},{key:"didReconnect",value:function(){this.clearTimer(),this.resetAllRTSFlags()}},{key:"didDisconnect",value:function(){this.isDisconnected=!0,this.isConnecting=!1,this.isReconnecting=!1}},{key:"unbindAllRTSEventsCB",get:function(){return this.unbindAllRTSEvents.bind(this)}},{key:"resetAllRTSFlags",value:function(){this.isDisconnected=!1,this.isReconnecting=!1,this.isConnecting=!1}},{key:"unbindAllRTSEvents",value:function(){this.rts.hasConnectionInitialized()&&(Ember.removeListener(this.rts,"didConnect",this.didConnectCB),Ember.removeListener(this.rts,"willReconnect",this.willReconnectCB),Ember.removeListener(this.rts,"didReconnect",this.didReconnectCB),Ember.removeListener(this.rts,"didDisconnect",this.didDisconnectCB)),this.resetAllRTSFlags(),this.clearTimer()}},{key:"bindAllRTSEvents",value:function(){this.rts.hasConnectionInitialized()&&(Ember.addListener(this.rts,"didConnect",this.didConnectCB),Ember.addListener(this.rts,"willReconnect",this.willReconnectCB),Ember.addListener(this.rts,"didReconnect",this.didReconnectCB),Ember.addListener(this.rts,"didDisconnect",this.didDisconnectCB))}},{key:"refreshRoute",value:function(e){e.preventDefault();var t=this.router.currentRouteName;t&&"home.faqs"===t?this.args.gotoHome&&this.args.gotoHome():this.args.reloadRoute&&this.args.reloadRoute()}}]),n}(q.default),I=(0,V.Z)(S.prototype,"jwt",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,V.Z)(S.prototype,"rts",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,V.Z)(S.prototype,"session",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,V.Z)(S.prototype,"hotline",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,V.Z)(S.prototype,"flash",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,V.Z)(S.prototype,"router",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,V.Z)(S.prototype,"intl",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,V.Z)(S.prototype,"postMessage",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,V.Z)(S.prototype,"isReconnecting",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),P=(0,V.Z)(S.prototype,"isConnecting",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),D=(0,V.Z)(S.prototype,"isDisconnected",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,V.Z)(S.prototype,"hidden",[p],Object.getOwnPropertyDescriptor(S.prototype,"hidden"),S.prototype),(0,V.Z)(S.prototype,"isUserNotAuthenticated",[m],Object.getOwnPropertyDescriptor(S.prototype,"isUserNotAuthenticated"),S.prototype),(0,V.Z)(S.prototype,"hasFlashMessage",[g],Object.getOwnPropertyDescriptor(S.prototype,"hasFlashMessage"),S.prototype),(0,V.Z)(S.prototype,"willReconnectCB",[v],Object.getOwnPropertyDescriptor(S.prototype,"willReconnectCB"),S.prototype),(0,V.Z)(S.prototype,"didReconnectCB",[b],Object.getOwnPropertyDescriptor(S.prototype,"didReconnectCB"),S.prototype),(0,V.Z)(S.prototype,"willConnectCB",[y],Object.getOwnPropertyDescriptor(S.prototype,"willConnectCB"),S.prototype),(0,V.Z)(S.prototype,"didConnectCB",[E],Object.getOwnPropertyDescriptor(S.prototype,"didConnectCB"),S.prototype),(0,V.Z)(S.prototype,"didDisconnectCB",[Z],Object.getOwnPropertyDescriptor(S.prototype,"didDisconnectCB"),S.prototype),(0,V.Z)(S.prototype,"unbindAllRTSEventsCB",[w],Object.getOwnPropertyDescriptor(S.prototype,"unbindAllRTSEventsCB"),S.prototype),(0,V.Z)(S.prototype,"refreshRoute",[T],Object.getOwnPropertyDescriptor(S.prototype,"refreshRoute"),S.prototype),S)},31393:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return O}});var i,r,o,a,s,l,u,c,d=n(81190),f=n(91392),h=n(22081),p=n(18542),m=n(18419),g=n(38461),v=n(94232),b=n(76459),y=n(40990),E=n(45652),Z=n(75729),w=n(14161),T=n(20668),S=n(68422),I=n(68103),A=n(72681),R=n(85338);function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,v.Z)(e);if(t){var r=(0,v.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,g.Z)(this,n)}}var O=(i=Ember.computed("fragment.{startMillis,endMillis,userTimeZone}"),r=Ember.computed("session.user.{profilePicThumbUrl,isNameGenerated}"),o=Ember.computed("hidePic","messageMeta.calendarMessageMeta.calendarAgentAlias"),a=Ember.computed("messageMeta.calendarMessageMeta.calendarAgentAlias"),s=Ember.computed("fragment.{isPendingCreation,eventId}"),l=Ember.computed.alias("messageMeta.calendarMessageMeta.calendarEventLink"),u=function(e){(0,m.Z)(n,e);var t=C(n);function n(){var e;(0,f.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;oi){var a=o-i,s=a&&a/1e3,l=(0,S.default)(I.default.convert(i,r)).format("LT")+" - "+(0,S.default)(I.default.convert(o,r)).format("LT"),u=(0,S.default)(I.default.convert(i,r)).format("LL");return{duration:this.intl.t("calendar.duration")+": "+this.getTimeDiffAsString(s),timeSlot:l,date:this.convertMillisToWeekday(i,r)+", "+u,userTimeZone:r}}return null}},{key:"userPicUrl",get:function(){var e,t,n,i;return null!==(e=this.session)&&void 0!==e&&null!==(t=e.user)&&void 0!==t&&t.isNameGenerated?null:null===(n=this.session)||void 0===n||null===(i=n.user)||void 0===i?void 0:i.profilePicThumbUrl}},{key:"agentData",get:function(){var e,t,n=null===(e=this.messageMeta)||void 0===e||null===(t=e.calendarMessageMeta)||void 0===t?void 0:t.calendarAgentAlias,i=this.shouldHideAgentPic;return n&&!i?this.agentService.getAgentInfo(n):null}},{key:"freshIdAgentPic",get:function(){var e,t,n,i,r,o=null===(e=this.messageMeta)||void 0===e||null===(t=e.calendarMessageMeta)||void 0===t?void 0:t.calendarAgentAlias;return null!==(n=this.hotlineUI)&&void 0!==n&&null!==(i=n.config)&&void 0!==i&&i.sales360App?(0,T.freshIdAgentPicUrl)(null===(r=this.session)||void 0===r?void 0:r.token,o):""}},{key:"eventCreationStatus",get:function(){var e,t;return null!==(e=this.fragment)&&void 0!==e&&e.eventId?E.default.CALENDAR.EVENT_STATUS.CREATED:null!==(t=this.fragment)&&void 0!==t&&t.isPendingCreation?E.default.CALENDAR.EVENT_STATUS.PENDING:E.default.CALENDAR.EVENT_STATUS.FAILED}}]),n}(Ember.Component.extend(Z.default,w.default)),(0,y.Z)(u.prototype,"eventDetails",[i],Object.getOwnPropertyDescriptor(u.prototype,"eventDetails"),u.prototype),(0,y.Z)(u.prototype,"userPicUrl",[r],Object.getOwnPropertyDescriptor(u.prototype,"userPicUrl"),u.prototype),(0,y.Z)(u.prototype,"agentData",[o],Object.getOwnPropertyDescriptor(u.prototype,"agentData"),u.prototype),(0,y.Z)(u.prototype,"freshIdAgentPic",[a],Object.getOwnPropertyDescriptor(u.prototype,"freshIdAgentPic"),u.prototype),(0,y.Z)(u.prototype,"eventCreationStatus",[s],Object.getOwnPropertyDescriptor(u.prototype,"eventCreationStatus"),u.prototype),c=(0,y.Z)(u.prototype,"calendarEventLink",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u)},55382:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return le}});var i,r,o,a,s,l,u,c,d,f,h,p,m,g,v,b,y,E,Z,w,T,S,I,A,R,C,O,_,k,M,N,P,D,L,U,x=n(64076),B=n(97231),F=n(81190),j=n(91392),z=n(22081),G=n(18542),H=n(58204),V=n(18419),q=n(38461),W=n(94232),Y=n(76459),K=n(40990),J=n(23771),Q=n(45652),X=n(92759),$=n(18640),ee=n(94035),te=n(63028),ne=n(82557),ie=n(59565),re=n(198),oe=n.p+"lock.c6d5d4a074a7a3ad7fd300603ebefed1.png",ae=n.p+"info-circle.9d1af4712d66f74639f1f7ca37ad2181.png";function se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,W.Z)(e);if(t){var r=(0,W.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,q.Z)(this,n)}}var le=(i=(0,J.classNameBindings)("modalOpen:fc_web_modal","isIframeModal:inside-widget","isExternalTemplate:h-chat-custom","isExternalTemplate:external-article","isMobileView:mobile-view","hiddenFAQ:no-tabs"),r=(0,J.classNames)("fc_web_modal_closed"),o=Ember.inject.service("local-storage"),a=Ember.inject.service("post-message"),s=Ember.computed.bool("hotline.ui.modalOpen"),l=Ember.computed.not("votedAlready"),u=Ember.computed.alias("session.isKbaseEnabled"),c=Ember.computed.bool("hotline.ui.modal.thirdPartyURL"),d=Ember.computed.bool("hotline.ui.modal.template"),f=Ember.computed.alias("hotline.ui.isTablet"),h=Ember.computed,p=Ember.computed("hotline.ui.modal.content"),m=Ember.computed,g=Ember.computed("hotline.ui.modal.thirdPartyURL"),v=Ember.computed("hotline.ui.modal.thirdPartyURL"),b=Ember.computed("hotline.ui.modal.thirdPartyURL"),y=Ember.computed("isFAQAvailable"),E=Ember.computed,Z=Ember.computed,w=Ember._action,T=Ember._action,S=Ember._action,I=Ember._action,A=Ember._action,R=Ember._action,i(C=r((O=function(e){(0,V.Z)(n,e);var t=se(n);function n(){var e;(0,j.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;oa)}}return!1}},{key:"getArticleVotingURL",value:function(e){var t,n,i,r=null===(t=this.hotline)||void 0===t?void 0:t.ui,o=r&&r.modal,a={token:null===(n=this.session)||void 0===n?void 0:n.token,categoryId:o.categoryId,articleId:o.articleId};this.isKbaseEnabled?(a.localeId=o.language,a.action=e?Q.default.KBASE_FAQ_ACTIONS.UPVOTE:Q.default.KBASE_FAQ_ACTIONS.DOWN_VOTE):(a.localeId=r&&r.lastLocaleId,a.siteId=null===(i=this.session)||void 0===i?void 0:i.siteId);return(0,te.getArticleAnalyticsURL)(this.isKbaseEnabled,a)}},{key:"saveArticleAnalytics",value:function(e,t,n){var i,r=this,o=null===(i=this.hotline)||void 0===i?void 0:i.ui,a=o&&o.modal,s=this.localStorage.getItemLS("articles"),l=s&&JSON.parse(s);s||(l=[]),this.axios.makeRequest({method:"PUT",url:e,data:t,contentType:"application/json; charset=UTF-8"}).then(function(e){if((0,x.Z)(this,r),!e.data||!e.errorCode){var t=Date.now(),i=a.articleId;l.push({articleId:i,lastVotedAt:t}),this.localStorage.setItemLS("articles",JSON.stringify(l)),n?this.set("upvoted",!0):this.set("downvoted",!0),this.set("votedSuccessfully",!0)}}.bind(this),(function(){}))}},{key:"closeModal",value:function(){var e,t=this,n=null===(e=this.hotline)||void 0===e?void 0:e.ui,i=n.modal,r=document.querySelector(".fc_web_modal");if(i){var o,a;if(Ember.set(n,"modalOpen",!1),Ember.set(n,"openArticleFromMessage",!1),Ember.set(n,"modal",void 0),null!==(o=this.session)&&void 0!==o&&null!==(a=o.config)&&void 0!==a&&a.faqPopupView){var s=this.element.querySelector(".search-input-text");s&&s.focus()}if(document.querySelector("html").classList.remove("expanded-modal"),this.postMessage.post({action:"collapse_all"}),r){var l=document.querySelector("#app-conversation-editor");re.default.changeFocusTrapping(".fc_web_modal",".webchat"),Ember.run.later(function(){(0,x.Z)(this,t),l&&l.focus()}.bind(this),100)}}}},{key:"gotoMessages",value:function(){this.home(),this.send("closeModal"),re.default.moveFocusTo(".hotline-launcher")}},{key:"upvoteDownvoteArticle",value:function(e){var t={},n=this.getArticleVotingURL(e);this.isKbaseEnabled||(e?t.upvote=1:t.downvote=1),this.saveArticleAnalytics(n,t,e)}},{key:"expandArticle",value:function(){var e=document.querySelector("html");(0,ie.hasClass)(e,"expanded-article-view")||(0,ie.hasClass)(e,"collapsed-article-view")||this.isExpandIcon||this.set("isExpandIcon",!0),this.toggleProperty("isExpandIcon"),this.isExpandIcon?((0,ie.removeClass)(e,"expanded-article-view"),(0,ie.addClass)(e,"collapsed-article-view"),this.postMessage.post({action:"collapse_article_view"})):(this.postMessage.post({action:"expand_article_view"}),(0,ie.removeClass)(e,"collapsed-article-view"),(0,ie.addClass)(e,"expanded-article-view"))}},{key:"frameLoaded",value:function(){this.set("isFrameLoaded",!0)}},{key:"handleSectionScrolling",value:function(){var e=event.target;(0,te.articleScrollHandle)(e,"faq-article-content-body")}},{key:"addHorizontalScroll",value:function(){var e=document.getElementById("faq-article-content-body");(null==e?void 0:e.scrollWidth)>(null==e?void 0:e.clientWidth)&&((0,ie.addClass)(e,"horizontal-scroll"),(0,ie.addCSSInline)(document.querySelector(".remove-gradient"),"display","none"))}}]),n}(Ember.Component.extend($.default,ne.default)),_=(0,K.Z)(O.prototype,"localStorage",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,K.Z)(O.prototype,"postMessage",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,K.Z)(O.prototype,"modalOpen",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,K.Z)(O.prototype,"shouldShowVoteIcons",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,K.Z)(O.prototype,"isKbaseEnabled",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,K.Z)(O.prototype,"isIframeModal",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,K.Z)(O.prototype,"isExternalTemplate",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,K.Z)(O.prototype,"isTabletView",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,K.Z)(O.prototype,"isMobileView",[h],Object.getOwnPropertyDescriptor(O.prototype,"isMobileView"),O.prototype),(0,K.Z)(O.prototype,"htmlSafeArticleContent",[p],Object.getOwnPropertyDescriptor(O.prototype,"htmlSafeArticleContent"),O.prototype),(0,K.Z)(O.prototype,"keyDownCB",[m],Object.getOwnPropertyDescriptor(O.prototype,"keyDownCB"),O.prototype),(0,K.Z)(O.prototype,"iframeDomainURL",[g],Object.getOwnPropertyDescriptor(O.prototype,"iframeDomainURL"),O.prototype),(0,K.Z)(O.prototype,"iframeHTTPS",[v],Object.getOwnPropertyDescriptor(O.prototype,"iframeHTTPS"),O.prototype),(0,K.Z)(O.prototype,"iframeURL",[b],Object.getOwnPropertyDescriptor(O.prototype,"iframeURL"),O.prototype),(0,K.Z)(O.prototype,"hiddenFAQ",[y],Object.getOwnPropertyDescriptor(O.prototype,"hiddenFAQ"),O.prototype),(0,K.Z)(O.prototype,"scrollCallback",[E],Object.getOwnPropertyDescriptor(O.prototype,"scrollCallback"),O.prototype),(0,K.Z)(O.prototype,"votedAlready",[Z],Object.getOwnPropertyDescriptor(O.prototype,"votedAlready"),O.prototype),(0,K.Z)(O.prototype,"closeModal",[w],Object.getOwnPropertyDescriptor(O.prototype,"closeModal"),O.prototype),(0,K.Z)(O.prototype,"gotoMessages",[T],Object.getOwnPropertyDescriptor(O.prototype,"gotoMessages"),O.prototype),(0,K.Z)(O.prototype,"upvoteDownvoteArticle",[S],Object.getOwnPropertyDescriptor(O.prototype,"upvoteDownvoteArticle"),O.prototype),(0,K.Z)(O.prototype,"expandArticle",[I],Object.getOwnPropertyDescriptor(O.prototype,"expandArticle"),O.prototype),(0,K.Z)(O.prototype,"frameLoaded",[A],Object.getOwnPropertyDescriptor(O.prototype,"frameLoaded"),O.prototype),(0,K.Z)(O.prototype,"handleSectionScrolling",[R],Object.getOwnPropertyDescriptor(O.prototype,"handleSectionScrolling"),O.prototype),C=O))||C)||C)},61357:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return A}});var i,r,o,a,s,l,u,c,d=n(64076),f=n(81190),h=n(91392),p=n(22081),m=n(18542),g=n(58204),v=n(18419),b=n(38461),y=n(94232),E=n(76459),Z=n(40990),w=n(23771),T=n(55257),S=n(50576);function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,y.Z)(e);if(t){var r=(0,y.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,b.Z)(this,n)}}var A=(i=(0,w.tagName)(""),r=Ember.inject.service,o=Ember._tracked,a=Ember.computed("retryAfterDelay","args.retryingRateLimitedUrl"),i((l=function(e){(0,v.Z)(n,e);var t=I(n);function n(e,i){var r;return(0,h.Z)(this,n),r=t.call(this,e,i),(0,f.Z)((0,m.Z)(r),"intl",u,(0,m.Z)(r)),(0,f.Z)((0,m.Z)(r),"retryAfterDelay",c,(0,m.Z)(r)),(0,E.Z)((0,m.Z)(r),"images",{EmptyFAQs:S.Z}),i.retryAfter&&(r.startTimer(),r.retryAfterDelay=i.retryAfter),r}return(0,p.Z)(n,[{key:"rateLimitErrorMessage",get:function(){return Ember.String.htmlSafe(this.intl.t("faqs.kbase_rate_limit_errors.message"))}},{key:"refreshMessage",get:function(){return this.args.retryingRateLimitedUrl?this.intl.t("faqs.kbase_rate_limit_errors.refreshing"):this.retryAfterDelay?this.intl.t("faqs.kbase_rate_limit_errors.refreshing_in",{secondsCount:this.retryAfterDelay}):this.intl.t("help_text.refresh")}},{key:"startTimer",value:function(){var e=this;this.retryCounter=setInterval(function(){(0,d.Z)(this,e),this.retryAfterDelay=this.retryAfterDelay-1,this.retryAfterDelay<=0&&clearInterval(this.retryCounter)}.bind(this),1e3)}},{key:"willDestroy",value:function(){(0,g.Z)((0,y.Z)(n.prototype),"willDestroy",this).apply(this,arguments),this.stopRetryCounter()}},{key:"stopRetryCounter",value:function(){this.retryCounter&&clearInterval(this.retryCounter)}}]),n}(T.default),u=(0,Z.Z)(l.prototype,"intl",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,Z.Z)(l.prototype,"retryAfterDelay",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),(0,Z.Z)(l.prototype,"refreshMessage",[a],Object.getOwnPropertyDescriptor(l.prototype,"refreshMessage"),l.prototype),s=l))||s)},44858:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return te}});var i,r,o,a,s,l,u,c,d,f,h,p,m,g,v,b,y,E,Z,w,T,S,I,A,R,C,O,_,k,M,N,P,D=n(5953),L=n(64076),U=n(81190),x=n(91392),B=n(22081),F=n(18542),j=n(58204),z=n(18419),G=n(38461),H=n(94232),V=n(76459),q=n(40990),W=n(23771),Y=n(45652),K=n(82557),J=n(92759),Q=n(61844),X=n(198),$=n(84587);function ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,H.Z)(e);if(t){var r=(0,H.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,G.Z)(this,n)}}var te=(i=(0,W.classNames)("fc-ui-unity-message-bubble"),r=Ember.inject.service("post-message"),o=Ember.computed("fragment.fileName"),a=Ember.computed("fragment"),s=Ember.computed("fragment.fileSize"),l=Ember.computed("fragment.fileExtension"),u=Ember.computed,c=Ember.computed,d=Ember.computed,f=Ember.computed.alias("fileSecurityData.fileSecurityStatus"),h=Ember.computed.equal("fileSecurityStatus",Y.default.FileSecurityStatus.AVPending),p=Ember.computed.equal("fileSecurityStatus",Y.default.FileSecurityStatus.MalwareFile),m=Ember.computed("fileSecurityStatus"),g=Ember.computed("fileSecurityStatus"),v=Ember.computed("message"),b=Ember.computed("fragment.fragments"),y=Ember.computed("fragment.fragments"),E=Ember.computed("isCalendarInviteMessage"),Z=Ember.computed("hideReplyFragments","isbubble"),w=Ember.computed("fragment"),T=Ember._action,S=Ember._action,I=Ember._action,A=Ember._action,R=Ember._action,C=Ember._action,i((_=function(e){(0,z.Z)(n,e);var t=ee(n);function n(){var e;(0,x.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o3?t.slice(0,3):t}},{key:"showMoreArticle",get:function(){var e,t=null===(e=this.fragment)||void 0===e?void 0:e.fragments;return t&&t.length>3}},{key:"isFlowCalendarInviteMessage",get:function(){var e;return this.isCalendarInviteMessage&&(null===(e=this.model)||void 0===e?void 0:e.flowStepId)}},{key:"showReplyFragments",get:function(){return this.isbubble&&!this.hideReplyFragments}},{key:"isFAQFragment",get:function(){var e=this.fragment;return!!e&&(e.content&&e.content.indexOf("freshchat://")>-1)}},{key:"downloadFileHelper",value:function(e){var t,n;if(null!==(t=this.hotline)&&void 0!==t&&null!==(n=t.ui)&&void 0!==n&&n.isIOS)window.open(e,"_blank");else{var i=document.createElement("a");i.href=e,i.id=Y.default.DownloadFileIframeId,document.body.appendChild(i),i.click(),document.body.removeChild(i)}this.postMessage.post({action:"download_file",status:200,success:!0,data:{url:e}})}},{key:"click",value:function(){var e,t,n=event&&event.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&n.href!==n.baseURI+"#"&&(null!==(e=this.session)&&void 0!==e&&null!==(t=e.config)&&void 0!==t&&t.isFCSDKWebView&&event.preventDefault(),this.postMessage.post({action:"anchor_link_clicked",status:200,success:!0,data:{url:n.href}}))}},{key:"downloadFile",value:function(){var e=this,t=this.fileSecurityData,n=(new Date).getTime();if(t&&n-t.fetchTime-1?this.send("openArticle",e.content,t):e.target&&"_blank"===e.target?window.open(e.content,"_blank"):e.target&&"_self"===e.target&&this.send("openExternalLink",e.content)}X.default.moveFocusTo(".ic-back")}},{key:"openExternalLink",value:function(e){var t,n=null===(t=this.hotline)||void 0===t?void 0:t.ui;Ember.set(n,"modalOpen",!0),Ember.set(n,"modal",{thirdPartyURL:e,title:""}),Ember.set(n,"openArticleFromMessage",!0)}},{key:"showMoreArticles",value:function(){var e,t=this,n=null===(e=this.fragment)||void 0===e?void 0:e.fragments,i=this.articleCollection;i=i.concat(n.slice(3,n.length)),this.set("articleCollection",i),this.set("showMoreArticle",!1);var r=document.querySelectorAll(".body .h-chat-window"),o=this.element.querySelector(".articles-listview").offsetHeight,a=r[0].scrollTop;Ember.run.later(function(){(0,L.Z)(this,t);var e=this.element.querySelector(".articles-listview").offsetHeight-o;Q.default.scrollTo(r[0],a+e,1)}.bind(this))}}]),n}(Ember.Component.extend(K.default)),k=(0,q.Z)(_.prototype,"postMessage",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,q.Z)(_.prototype,"fileName",[o],Object.getOwnPropertyDescriptor(_.prototype,"fileName"),_.prototype),(0,q.Z)(_.prototype,"getContent",[a],Object.getOwnPropertyDescriptor(_.prototype,"getContent"),_.prototype),(0,q.Z)(_.prototype,"fileSize",[s],Object.getOwnPropertyDescriptor(_.prototype,"fileSize"),_.prototype),(0,q.Z)(_.prototype,"fileExtension",[l],Object.getOwnPropertyDescriptor(_.prototype,"fileExtension"),_.prototype),(0,q.Z)(_.prototype,"imageUnicode",[u],Object.getOwnPropertyDescriptor(_.prototype,"imageUnicode"),_.prototype),(0,q.Z)(_.prototype,"faqUnicode",[c],Object.getOwnPropertyDescriptor(_.prototype,"faqUnicode"),_.prototype),(0,q.Z)(_.prototype,"fileUnicode",[d],Object.getOwnPropertyDescriptor(_.prototype,"fileUnicode"),_.prototype),M=(0,q.Z)(_.prototype,"fileSecurityStatus",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,q.Z)(_.prototype,"fileSecurityWarning",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,q.Z)(_.prototype,"fileSecurityError",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,q.Z)(_.prototype,"fileSecurityInfoTitle",[m],Object.getOwnPropertyDescriptor(_.prototype,"fileSecurityInfoTitle"),_.prototype),(0,q.Z)(_.prototype,"fileSecurityInfoDesc",[g],Object.getOwnPropertyDescriptor(_.prototype,"fileSecurityInfoDesc"),_.prototype),(0,q.Z)(_.prototype,"customFlowCalendarInvite",[v],Object.getOwnPropertyDescriptor(_.prototype,"customFlowCalendarInvite"),_.prototype),(0,q.Z)(_.prototype,"articleCollection",[b],Object.getOwnPropertyDescriptor(_.prototype,"articleCollection"),_.prototype),(0,q.Z)(_.prototype,"showMoreArticle",[y],Object.getOwnPropertyDescriptor(_.prototype,"showMoreArticle"),_.prototype),(0,q.Z)(_.prototype,"isFlowCalendarInviteMessage",[E],Object.getOwnPropertyDescriptor(_.prototype,"isFlowCalendarInviteMessage"),_.prototype),(0,q.Z)(_.prototype,"showReplyFragments",[Z],Object.getOwnPropertyDescriptor(_.prototype,"showReplyFragments"),_.prototype),(0,q.Z)(_.prototype,"isFAQFragment",[w],Object.getOwnPropertyDescriptor(_.prototype,"isFAQFragment"),_.prototype),(0,q.Z)(_.prototype,"downloadFile",[T],Object.getOwnPropertyDescriptor(_.prototype,"downloadFile"),_.prototype),(0,q.Z)(_.prototype,"enlargeImage",[S],Object.getOwnPropertyDescriptor(_.prototype,"enlargeImage"),_.prototype),(0,q.Z)(_.prototype,"openArticle",[I],Object.getOwnPropertyDescriptor(_.prototype,"openArticle"),_.prototype),(0,q.Z)(_.prototype,"performClickAction",[A],Object.getOwnPropertyDescriptor(_.prototype,"performClickAction"),_.prototype),(0,q.Z)(_.prototype,"openExternalLink",[R],Object.getOwnPropertyDescriptor(_.prototype,"openExternalLink"),_.prototype),(0,q.Z)(_.prototype,"showMoreArticles",[C],Object.getOwnPropertyDescriptor(_.prototype,"showMoreArticles"),_.prototype),O=_))||O)},2311:function(e,t,n){"use strict";n.r(t);var i=n(64076),r=n(45652);t.default=Ember.Component.extend({CONVERSATION:r.default.CONVERSATION,MESSAGE_STATUS:r.default.MESSAGE_STATUS,checkFragmentTypes:function(e){var t,n=this,o=null===(t=this.message)||void 0===t?void 0:t.messageFragments,a=!1;return null==o||o.forEach(function(t){var o,s;(0,i.Z)(this,n),a=t&&("media"===e&&[this.CONVERSATION.FRAGMENT_TYPE.IMAGE,this.CONVERSATION.FRAGMENT_TYPE.VIDEO].includes(t.fragmentType)||"file"===e&&t.fragmentType===this.CONVERSATION.FRAGMENT_TYPE.FILE||"readonly_carousel"===e&&t.templateType===r.default.TemplateType.CAROUSEL_READONLY||"article"===e&&t.fragmentType===this.CONVERSATION.FRAGMENT_TYPE.COLLECTION&&(null==t||null===(o=t.fragments)||void 0===o||null===(s=o.firstObject)||void 0===s?void 0:s.fragmentType)!==this.CONVERSATION.FRAGMENT_TYPE.CALLBACK)}.bind(this)),a},isArticleView:Ember.computed("message.messageFragments",{get:function(){return this.checkFragmentTypes("article")}}),isMedia:Ember.computed("message.messageFragments",{get:function(){return this.checkFragmentTypes("media")}}),isFileType:Ember.computed("message.messageFragments",{get:function(){return this.checkFragmentTypes("file")}}),meetingMessageFragment:Ember.computed("message.messageFragments",{get:function(){var e,t=null===(e=this.message)||void 0===e?void 0:e.messageFragments;if(t&&t.length>0){var n=t[0];if((n&&n.fragmentType)===r.default.CONVERSATION.FRAGMENT_TYPE.MEETING)return n}return!1}}),calendarSpecificFragment:Ember.computed("message.messageType",{get:function(){var e,t=null===(e=this.message)||void 0===e?void 0:e.messageType;return t===r.default.CONVERSATION.MESSAGE_TYPE.CALENDAR.FAILURE||t===r.default.CONVERSATION.MESSAGE_TYPE.CALENDAR.SUCCESS||t===r.default.CONVERSATION.MESSAGE_TYPE.CALENDAR.SENT_BY_AGENT}}),calendarSpecificFragmentContent:Ember.computed("calendarSpecificFragment",{get:function(){var e,t,n=null===(e=this.message)||void 0===e?void 0:e.messageType,i=null===(t=this.message)||void 0===t?void 0:t.messageFragments,o=i&&i[0];if(this.calendarSpecificFragment){var a,s,l,u;if(n===r.default.CONVERSATION.MESSAGE_TYPE.CALENDAR.SENT_BY_AGENT)return null!==(a=this.message)&&void 0!==a&&null!==(s=a.internalMeta)&&void 0!==s&&null!==(l=s.calendarMessageMeta)&&void 0!==l&&l.retryCalendarEvent?Ember.set(o,"content",this.intl.t("calendar.retry_calendar_message")):null!==(u=this.message)&&void 0!==u&&u.flowStepId||Ember.set(o,"content",this.intl.t("calendar.invitation_message")),o;if(n===r.default.CONVERSATION.MESSAGE_TYPE.CALENDAR.SUCCESS){var c,d,f,h=null===(c=this.message)||void 0===c||null===(d=c.internalMeta)||void 0===d||null===(f=d.calendarMessageMeta)||void 0===f?void 0:f.calendarBookingEmail;return Ember.set(o,"content",this.intl.t("calendar.success_message_pre",{email:h})),o}return n===r.default.CONVERSATION.MESSAGE_TYPE.CALENDAR.FAILURE?(Ember.set(o,"content",this.intl.t("calendar.failure_message")),o):null}return null}}),isCarouselCardFragment:Ember.computed("message.messageFragments",{get:function(){var e,t=null===(e=this.message)||void 0===e?void 0:e.messageFragments;if(t&&t.length>0){var n=t[0],i=n&&n.fragmentType,o=n&&n.templateType;return i===r.default.CONVERSATION.FRAGMENT_TYPE.DYNAMIC_TEMPLATE_CONTENT&&o===r.default.TemplateType.CAROUSEL_CARD.DEFAULT}return!1}}),carouselCardTitles:Ember.computed("isCarouselCardFragment",{get:function(){var e=this;return this.isCarouselCardFragment?this.message.messageFragments.firstObject.sections.find(function(t){var n=t.name;return(0,i.Z)(this,e),"title"===n}.bind(this)).fragments.firstObject.content:""}}),readOnlyCarouselCards:Ember.computed("message.messageFragments",{get:function(){var e=this;if(this.checkFragmentTypes("readonly_carousel")){var t,n,o=(null===(t=this.message)||void 0===t||null===(n=t.messageFragments)||void 0===n?void 0:n.find(function(t){var n=t.templateType;return(0,i.Z)(this,e),n===r.default.TemplateType.CAROUSEL_READONLY}.bind(this))).sections;return(null==o?void 0:o.find(function(t){var n=t.name;return(0,i.Z)(this,e),n===r.default.RICH_MESSAGES.SECTION_NAMES.CARDS}.bind(this))).fragments}return null}}),emojisCountClassBinding:Ember.computed("message.emojisCount",{get:function(){var e,t=null===(e=this.message)||void 0===e?void 0:e.emojisCount;return t>0&&t<=3?"emojis emojis-".concat(t):""}}),multiSelectButtons:Ember.computed("message.messageFragments",{get:function(){var e,t=this,n=null===(e=this.message)||void 0===e?void 0:e.messageFragments,o=[],a=r.default.CONVERSATION.FRAGMENT_TYPE.DYNAMIC_TEMPLATE_CONTENT;return n&&n.length&&n.forEach(function(e){var n,r=this;(0,i.Z)(this,t);var s=null==e||null===(n=e.sections)||void 0===n?void 0:n.find(function(e){return(0,i.Z)(this,r),"label"===e.name}.bind(this));(null==e?void 0:e.fragmentType)===a&&s&&o.push(s.fragments[0].content)}.bind(this)),o}}),translatedContentAvailable:Ember.computed("containsTranslations","message.emojisCount",{get:function(){var e;return this.containsTranslations&&!(null!==(e=this.message)&&void 0!==e&&e.emojisCount)}}),notSingleMediaContent:Ember.computed("message.messageFragments",{get:function(){var e,t,n,i,o;return!(1===(null===(e=this.message)||void 0===e||null===(t=e.messageFragments)||void 0===t?void 0:t.length)&&(null===(n=this.message)||void 0===n||null===(i=n.messageFragments)||void 0===i||null===(o=i.firstObject)||void 0===o?void 0:o.fragmentType)!==r.default.CONVERSATION.FRAGMENT_TYPE.TEXT)}}),translateStatus:Ember.computed.equal("message.shouldTranslate",r.default.liveTranslationSettings.translateStatusForMessage.yes),displayTranslatedContent:Ember.computed.and("showInBothLocales","translateStatus","notSingleMediaContent")})},66938:function(e,t,n){"use strict";n.r(t),t.default=function(){try{var e="hotline-web/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),n={default:JSON.parse(decodeURIComponent(t))};return Object.defineProperty(n,"__esModule",{value:!0}),n}catch(t){throw new Error('Could not read config from meta tag with name "'+e+'".')}}().default},14978:function(e,t,n){"use strict";n.r(t);var i=n(64076),r=n(82557);t.default=Ember.Controller.extend(r.default,{actions:{restoreConversation:function(){var e=this.target;"home.index"!==(e&&e.currentRouteName)&&this.replaceRoute("home")},gotoHome:function(e,t){var n=this.displayChannels,i=n&&n.length;e?this.replaceRoute("home.all-conversations",{queryParams:{fromPage:t}}):this.isFAQAvailable||i&&i>1||i&&1===i&&(this.isParallelFeatureEnabled||this.isHelpWidgetAvailable)?this.replaceRoute("home"):i&&1===i&&this.replaceRoute("home.channel",n[0].channelId,{queryParams:{conversationId:n[0].conversationId}})},gotoChannel:function(e,t,n){var r=this,o=this.displayChannels,a=e&&e.id,s=e&&e.name,l=t||e&&e.conversationReferenceId,u=n||(null==e?void 0:e.parallelConversationId),c=e&&!!e.send||!1,d=e&&e.replyText||"",f=a||s?o.findBy("channelId",a)||o.findBy("name",s):this.defaultChannel,h=o&&o.length;if(this.set("hotline.ui.conversationReferenceId",l),this.set("hotline.ui.parallelConversationId",u),"string"==typeof d&&((d=d.trim())&&this.isParallelFeatureEnabled?setTimeout(function(){(0,i.Z)(this,r),this.set("hotline.ui.channelSendMessage",c),this.set("hotline.ui.channelReplyText",d)}.bind(this),1e3):d&&(this.set("hotline.ui.channelSendMessage",c),this.set("hotline.ui.channelReplyText",d))),(l||u)&&void 0===f&&(f=this.defaultChannel),(l||u)&&!Ember.isBlank(f)){var p=Ember.getOwner(this).lookup("route:".concat(this.target.currentRouteName));!Ember.testing&&p.refresh(),this.replaceRoute("home.channel",f.channelId,{queryParams:{conversationId:f.conversationId}})}else h&&(h>1||this.isFAQAvailable)&&f&&this.replaceRoute("home.channel",f.channelId,{queryParams:{conversationId:f.conversationId}})},reloadRoute:function(){var e=this.target&&this.target.currentRouteName;if(e){e.indexOf("home")>-1&&(e="home");var t=Ember.getOwner(this).lookup("route:".concat(e));t&&t.refresh()}}}})},46907:function(e,t,n){"use strict";n.r(t),t.default=Ember.Controller},82281:function(e,t,n){"use strict";n.r(t),t.default=Ember.Controller},40669:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(95005)},32096:function(e,t,n){"use strict";n.r(t),t.default={time:{hhmmss:{hour:"numeric",minute:"numeric",second:"numeric"}},date:{hhmmss:{hour:"numeric",minute:"numeric",second:"numeric"}},number:{EUR:{style:"currency",currency:"EUR",minimumFractionDigits:2,maximumFractionDigits:2},USD:{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}}}},38445:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(37133)},26378:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default},and:function(){return i.and}});var i=n(10984)},50037:function(e,t,n){"use strict";n.r(t),n.d(t,{arrayIncludes:function(){return o}});var i=n(64076),r=n(89269);function o(e,t){var n=this,o=(0,r.Z)(e,2),a=o[0],s=o[1],l=t.property;return!!(a&&Array.isArray(a)&&s)&&(l?!!a.find(function(e){return(0,i.Z)(this,n),e[l]===s}.bind(this)):a.includes(s))}t.default=Ember.Helper.helper(o)},45726:function(e,t,n){"use strict";function i(e){var t=e&&e[0];if(t)return Ember.String.capitalize(t.substr(0,1))}n.r(t),n.d(t,{avatarContent:function(){return i}}),t.default=Ember.Helper.helper(i)},60515:function(e,t,n){"use strict";function i(e){var t=e&&e[0]&&e[0].toUpperCase().charAt(0);return"A"===t||"I"===t||"J"===t||"Q"===t||"Z"===t?"theme-1":"B"===t||"K"===t||"O"===t||"R"===t?"theme-2":"C"===t||"G"===t||"L"===t||"S"===t?"theme-3":"D"===t||"M"===t||"T"===t||"F"===t?"theme-4":"E"===t||"H"===t||"N"===t||"X"===t?"theme-5":"U"===t||"V"===t||"W"===t||"P"===t||"Y"===t?"theme-6":"theme-7"}n.r(t),n.d(t,{chooseTheme:function(){return i}}),t.default=Ember.Helper.helper(i)},49603:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var i=n(64076),r=n(45652),o=Ember.Object.extend({type:r.default.EventType.TIMER,state:r.default.EventType.SENT,handler:function(){},delay:3e4,trigger:function(){}});function a(){var e=(new Date).getTime(),t=this;setInterval((function(){var n=(new Date).getTime();n>e+1e4&&postMessage.call(t,"wakeup"),e=n}),5e3)}var s=Ember.Object.extend({worker:void 0,wakeUpCallbacks:void 0,addCallback:function(e,t){void 0===this.wakeUpCallbacks&&(this.wakeUpCallbacks=Ember.Object.create()),Ember.set(this.wakeUpCallbacks,"WW_"+e,t)},removeCallback:function(e){Ember.set(this.wakeUpCallbacks,"WW_"+e,void 0)},getWorker:function(){return void 0===this.worker&&this.startWorker(this),this.worker},startWorker:function(e){try{var t,n="("+a.toString()+")();";t=window.URL.createObjectURL(new Blob([n])),this.worker=new Worker(t),this.worker&&(this.worker.onmessage=function(t){t&&"wakeup"===t.data&&e.wakeUpHandler()})}catch(e){return null}},wakeUpHandler:function(){if(this.wakeUpCallbacks)for(var e,t,n=Object.keys(this.wakeUpCallbacks),i=0,r=n.length;i1&&(l=r.default.RuleMetricKeys.sent),s=c.url.replace("{token}",d).replace("{ruleId}",e).replace("{keys}",l),f&&(s+="&siteId=".concat(f)),!this.scope.get("session.previewMode")&&(h&&h[r.default.enableFmJourneyBetaFeature]&&this.scope.get("hotline.ui.config.journeyEnabledApp")||this.scope.get("session.integrations.shopify"))){var p=u.get("session.referrer");window.parent.postMessage({campaignAck:!0,campaignId:e,visitorId:this.scope.get("session.omniCookie")},p&&atob(p))}u.axios.makeRequest({method:"PUT",url:s,cache:!1,contentType:"application/json; charset=UTF-8"}).then((function(){}))}},updateExecutedRules:function(e,t){var n=this.scope,i=n.get("localds"),o=i&&i.get("userBehaviour"),a=o&&o.get("executedRules"),s=a.findBy("ruleId",e),l=s&&s.get("sentCount"),u=s&&s.get("sentCountSession")||0;t===r.default.EventState.OPENED&&(l=l?l+1:1,s?(s.set("sentCount",l),s.set("sentCountSession",u+1)):(s=n.get("store").createRecord("executedRule",{ruleId:e,sentCountSession:1,sentCount:1,openedCount:0}),a.pushObject(s)),n.send("save",!1),this.sendMetrics(e,t,s.get("sentCount")))},updateState:function(e,t){var n=this.fetchAll("timer").findBy("type",e),i=this.getRuleId(e);n&&Ember.set(n,"state",t),this.updateExecutedRules(i,t)},didTrigger:function(e){this.scope.logger.log("Triggered "+e),this.updateState(e,r.default.EventState.SENT)},didClear:function(e){this.scope.logger.log("Cleared "+e),this.updateState(e,r.default.EventState.CLEARED)},didFail:function(e){this.scope.logger.log("Failed "+e),this.updateState(e,r.default.EventState.ERROR)},didSleep:function(){var e=this,t=this.cache;Object.keys(t).map(function(n){return(0,i.Z)(this,e),t[n]}.bind(this)).forEach(function(t){(0,i.Z)(this,e),t.timer.state===r.default.EventState.SENT&&this.rerun(t)}.bind(this))},rerun:function(e){this.scope.timer.clear(e.timer),this.trigger(e.eventRule)},fetchAll:function(e){var t=this,n=this.cache;return Object.keys(n).map(function(r){return(0,i.Z)(this,t),n[r][e]}.bind(this))},getRuleId:function(e){var t=this,n=this.cache,r=Object.keys(n).map(function(e){return(0,i.Z)(this,t),n[e]}.bind(this)).filter((function(t){if(t&&t.timer&&t.timer.type===e)return!0}));if(r&&r.length)return r[0].eventRule.ruleId},trigger:function(e){var t=this,n=e&&e.command,a=n&&n.commandValue,s=this.scope,l=s&&s.store.peekAll("agent"),u=l&&l.findBy("alias",e.agent.alias),c=u&&u.get("firstName")||"",d=parseInt(a.channelId,10),f=o.create({type:r.default.EventType.TIMER+"_"+this.count++,state:r.default.EventState.SENT,handler:function(){(0,i.Z)(this,t),s.set("channelId",d);var n=s.get("lastMessage.messageType"),o=s.get("config.campaignSettings"),a=o&&o.shouldInterrupt,l=s.get("lastMessage.createdMillis"),u=s.get("lastMessage.autoRuleId"),f=s.get("displayChannels"),h=!0,p=!0;(f&&f.findBy("channelId",d)&&(p=!1),a&&!u)&&((new Date).getTime()-l<60*o.timeInterval*1e3&&(h=!1));n===r.default.CONVERSATION.MESSAGE_TYPE.BOT||!h||p?s.set("channelId",void 0):s.get("hasUnrepliedFlowMessages")||s.get("hasUnrepliedOfflineMessage")?s.canTriggerFlow()&&this.triggerCampaigns(e,c):s.get("currentConversationStatus")!==r.default.CONVERSATION.CONVERSATION_STATUS.FREDDY_BOT&&this.triggerCampaigns(e,c)}.bind(this),delay:this.getTriggerDelay(n.delay)});this.cache[n.ruleId]={eventRule:e,timer:f},s.timer.push(f)},getTriggerDelay:function(e){var t=this.scope;if(e){var n,i;if(null===(n=t.session)||void 0===n||null===(i=n.user)||void 0===i||!i.id)return 1e3*e;var r,o=null===(r=t.hotline)||void 0===r?void 0:r.ui,a=o.conversationLoadMillis-o.homeRouteLoadMillis;if(1e3*e>a)return 1e3*e-a}return 1},checkAndUpdatePlaceholders:function(e,t){var n=this;e.forEach(function(e){(0,i.Z)(this,n);var r=e.messageFragments,o=e.placeholderMeta;o&&t.updatePlaceholders(r,o)}.bind(this))},triggerCampaigns:function(e,t){var n,i,o,a,s=this.cache[e.ruleId],l=s&&s.timer,u=l&&l.type,c=null===(n=this.hotline)||void 0===n||null===(i=n.ui)||void 0===i||null===(o=i.config)||void 0===o||null===(a=o.enabledFeatures)||void 0===a?void 0:a.indexOf(r.default.unifedBotBuilderEnabled);this.updateState(u,r.default.EventState.OPENED);var d=e&&e.command,f=d&&d.commandValue,h=this.scope;if(h.get("hasUnrepliedFlowMessages")){var p=h.unrepliedFlowMessages.firstObject&&h.unrepliedFlowMessages.firstObject.autoRuleId;h.removeBotMessages(p)}if(h.get("hasUnrepliedOfflineMessage")&&h.removelastOfflineMessage(),f.campaignMessages&&this.checkAndUpdatePlaceholders(f.campaignMessages,h),f.flowMessages&&this.checkAndUpdatePlaceholders(f.flowMessages,h),f.flowId){if(h.isFdInitiatedWidget()&&-1===c)return;h.currentConversationStatus!==r.default.CONVERSATION.CONVERSATION_STATUS.RESOLVED&&h.messagesCountWithMessageId||(f.hasWelComeMessage&&this.displayMessages(e,t,f.campaignMessages),this.displayMessages(e,t,f.flowMessages))}else this.displayMessages(e,t,f.campaignMessages)},displayMessages:function(e,t,n){var o=this,a=e&&e.command,s=e.serviceAccount,l=a&&a.commandValue,u=this.scope,c=parseInt(l.channelId,10);n&&n.forEach(function(n){(0,i.Z)(this,o),u.get("messageStacker").setLastAgentMessage({messageUserName:l.flowId?s.firstName:t,messageFragments:n.messageFragments,replyFragments:n.replyFragments,channelId:c,ruleId:a.ruleId,flowId:n.flowStepId?l.flowId:null,flowStepId:n.flowStepId,messageType:n.messageType||l.flowId?r.default.CONVERSATION.MESSAGE_TYPE.FREDDY_BOT:1,messageUserId:l.flowId?s.id:l.agentId,messageUserAlias:l.flowId?s.alias:e.agent.alias,campaignMessageId:n.campaignMessageId,messageCategoryId:n.messageCategoryId,messageUserProfilePic:l.flowId?s.profilePicUrl:""}),u.send("updateMessage",{campaignMessageId:n.campaignMessageId,autoRuleId:a.ruleId,flowId:n.flowStepId?l.flowId:null,flowStepId:n.flowStepId,flowVersionId:n.flowStepId?l.flowVersionId:null,autoRuleRead:!1,hasBeenRepliedTo:!1,needsUpdation:u.getNeedUpdationValue(n),messageFragments:n.messageFragments,replyFragments:n.replyFragments,messageUserName:l.flowId?s.firstName:t,userFirstName:l.flowId?s.firstName:t,messageUserType:1,internalMeta:n.internalMeta,messageType:n.messageType||(l.flowId?r.default.CONVERSATION.MESSAGE_TYPE.FREDDY_BOT:1),messageUserId:l.flowId?s.id:l.agentId,messageUserAlias:l.flowId?s.alias:e.agent.alias,read:!1,createdMillis:(new Date).getTime(),messageUserProfilePic:l.flowId?s.profilePicUrl:""})}.bind(this))},execute:function(e,t){var n=this;t&&(this.scope.timer.clearAll(this.fetchAll("timer")),this.count=0,this.cache={}),this.worker||(this.worker=s.create()),this.worker.getWorker()&&this.worker.addCallback("rule_engine_commands",function(){(0,i.Z)(this,n),this.didSleep()}.bind(this)),e.forEach(function(e){(0,i.Z)(this,n),this.trigger(e)}.bind(this))}}),u=l},66791:function(e,t,n){"use strict";n.r(t),n.d(t,{containValidTextFragment:function(){return o}});var i=n(64076),r=n(45652);function o(e){var t=this;if(Ember.isBlank(e)||Ember.isBlank(e[0]))return!1;var n=e[0],o=!Ember.isBlank(n)&&Ember.isArray(n)?n.map(function(e){return(0,i.Z)(this,t),e}.bind(this)):null;Ember.isBlank(o)&&(o=[n]);for(var a=o.length;a>=0;a--){var s=o[a]&&o[a].messageFragments;if(!Ember.isBlank(s)){var l=s.filter(function(e){return(0,i.Z)(this,t),e&&e.fragmentType===r.default.CONVERSATION.FRAGMENT_TYPE.TEXT}.bind(this));if(l.length===s.length&&!Ember.isBlank(l)){var u=l.filter(function(e){return(0,i.Z)(this,t),e.content&&!Ember.isBlank(e.content)}.bind(this));Ember.isBlank(u)&&o.splice(a,1)}}}return o.length>0}t.default=Ember.Helper.helper(o)},96320:function(e,t,n){"use strict";function i(e,t){return t.isbubble&&t.content&&"\r\n"===t.content}n.r(t),n.d(t,{isContainsOnlyEndOfLine:function(){return i}}),t.default=Ember.Helper.helper(i)},25658:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.EnsureSafeComponentHelper}});var i=n(35319)},82750:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default},equal:function(){return i.equal}});var i=n(80550)},54399:function(e,t,n){"use strict";var i=n(64076),r=n(92759),o=Ember.Object.extend({update:function(e){var t=Ember.A([]);return t.pushObject(e),this.populate(t,!1)},populate:function(e){var t,n,o,a,s,l,u,c=this,d=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],f=this.scope,h=f.get("hotline.ui.userBehaviour"),p=h&&h.eventRules||[],m=f.get("userBehaviour"),g=e||m&&m.get("events"),v=m&&m.get("eventConditions"),b={};return d&&v.clear(),Ember.set(m,"hasLocationRule",!1),Ember.set(m,"hasLocationKeyInRuleContent",!1),p&&p.forEach(function(e){var d=this;if((0,i.Z)(this,c),u=e.ruleId,e&&e.segment&&e.segment.segments.forEach(function(e){var c=this;(0,i.Z)(this,d),t=e.eventConditions||[];var h=e.userConditions||[];if(h.length&&!m.get("hasLocationRule")){var p=h.filterBy("key","LOCATION"),y=h.filterBy("key","CITY");(p.length||y.length)&&Ember.set(m,"hasLocationRule",!0)}t.forEach(function(e){var t=this;(0,i.Z)(this,c),(n=(n=g.filterBy("name",e.eventName)).filter(function(n){var l=this;return(0,i.Z)(this,t),o=n.get("eventProperties"),!e.propertyConditions||!e.propertyConditions.length||(s=!0,e.propertyConditions.forEach(function(e){(0,i.Z)(this,l),a=o.findBy("key",e.key),s=!!a&&(s&&(0,r.checkCondition)(e.dataType,e.conditionType,a.get("value"),e.value,!0))}.bind(this)),s)}.bind(this))).length&&(n=n.sortBy("createdMillis"),l=v.findBy("eventConditionId",e.eventConditionId),b[u]=!0,l?Ember.setProperties(l,{occurrenceCount:l.get("occurrenceCount")+n.length,lastOccurredMillis:n.objectAt(n.length-1).get("createdMillis")}):v.pushObject(f.get("store").createRecord("eventCondition",{eventConditionId:e.eventConditionId,eventName:e.eventName,occurrenceCount:n.length,firstOccurredMillis:n.objectAt(0).get("createdMillis"),lastOccurredMillis:n.objectAt(n.length-1).get("createdMillis")})))}.bind(this))}.bind(this)),!m.get("hasLocationKeyInRuleContent")&&f.get("placeholderService")){var h=e&&e.command,p=h&&h.commandValue,y=p&&p.campaignMessages;if(y)for(var E=y.length,Z=0;Z2&&void 0!==arguments[2]?arguments[2]:{};return this.sendRequest(e,t,n,"GET").catch((function(e){return e}))},postRequest:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.sendRequest(e,t,n,"POST")},putRequest:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.sendRequest(e,t,n,"PUT")},sendRequest:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"GET";return(0,r.default)(this,e,t,{params:n,requestType:i})},cloneRecord:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&"id"!==n&&Ember.set(e,n,t[n])}})}t.default={name:"add-send-request-to-store",initialize:o}},9369:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(64076);function r(e){var t=this;["component"].forEach(function(n){(0,i.Z)(this,t),e.inject(n,"agentService","service:agent")}.bind(this))}t.default={name:"agent",initialize:r}},87574:function(e,t,n){"use strict";n.r(t);var i,r,o=n(11239),a=n(66938);a.default.APP&&(i=a.default.APP.name,r=a.default.APP.version),t.default={name:"App Version",initialize:(0,o.default)(i,r)}},17137:function(e,t,n){"use strict";function i(){Ember.TextSupport.reopen({attributeBindings:["aria-label"]}),Ember.LinkComponent.reopen({attributeBindings:["aria-label","role","tabindex","onfocus"]})}n.r(t),n.d(t,{initialize:function(){return i}}),t.default={initialize:i}},31227:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(64076);function r(e){var t=this;["component","controller","model","route","service:jwt","service:notification","service:screenshare"].forEach(function(n){(0,i.Z)(this,t),e.inject(n,"axios","service:axios")}.bind(this))}t.default={name:"axios",initialize:r}},37291:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(64076);function r(e){var t=this;["component","controller","model","route","service:rts"].forEach(function(n){(0,i.Z)(this,t),e.inject(n,"batch","service:batch")}.bind(this))}t.default={name:"batch",initialize:r}},6872:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(64076);function r(e){var t=this;["component","route","service:notification","service:rts"].forEach(function(n){(0,i.Z)(this,t),e.inject(n,"cache","service:cache")}.bind(this))}t.default={name:"cache",initialize:r}},6748:function(e,t,n){"use strict";function i(e){e.inject("component","router","router:main")}n.r(t),n.d(t,{initialize:function(){return i}}),t.default={name:"component-router-injector",initialize:i}},967:function(e,t,n){"use strict";n.r(t);var i=n(57387);t.default={name:"container-debug-adapter",initialize:function(){var e=arguments[1]||arguments[0];e.register("container-debug-adapter:main",i.default)}}},78329:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(55217);function r(){var e=i.default.inflector;e.uncountable("days"),e.uncountable("operating-hours")}t.default={name:"custom-inflector-rules",initialize:r}},56891:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(14460)},70509:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(42013)},85275:function(e,t,n){"use strict";n.r(t);n(70546);var i=n(85357);t.default={name:"ember-data",initialize:i.default}},8464:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(66938);function r(){var e=arguments[1]||arguments[0];if(!1!==i.default.exportApplicationGlobal){var t;if("undefined"!=typeof window)t=window;else if("undefined"!=typeof global)t=global;else{if("undefined"==typeof self)return;t=self}var n,r=i.default.exportApplicationGlobal;n="string"==typeof r?r:Ember.String.classify(i.default.modulePrefix),t[n]||(t[n]=e,e.reopen({willDestroy:function(){this._super.apply(this,arguments),delete t[n]}}))}}t.default={name:"export-application-global",initialize:r}},82809:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(64076);function r(e){var t=this;["component","controller","model","route"].forEach(function(n){(0,i.Z)(this,t),e.inject(n,"flash","service:flash")}.bind(this))}t.default={name:"flash",initialize:r}},91378:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(64076);function r(e){var t=this;["component","controller","adapter","route","service:ruleEngine","service:websocket","service:notification","service:rts"].forEach(function(n){(0,i.Z)(this,t),e.inject(n,"hotline","service:hotline")}.bind(this))}t.default={name:"hotline",initialize:r}},47202:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(64076);function r(e){var t=this;["component","controller","model","route"].forEach(function(n){(0,i.Z)(this,t),e.inject(n,"intl","service:intl")}.bind(this))}t.default={name:"intl",initialize:r}},52569:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(64076);function r(e){var t=this;["component","controller","service:rts"].forEach(function(n){(0,i.Z)(this,t),e.inject(n,"store","service:store")}.bind(this))}t.default={name:"inject-store",initialize:r}},94125:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(64076);function r(e){var t=this;["component","route","service:ruleEngine"].forEach(function(n){(0,i.Z)(this,t),e.inject(n,"jwt","service:jwt")}.bind(this))}t.default={name:"jwt",initialize:r}},14808:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(64076);function r(e){var t=this;["component","controller","route","service:websocket","service:notification","service:smart-polling","service:rts","service:batch"].forEach(function(n){(0,i.Z)(this,t),e.inject(n,"logger","service:logger")}.bind(this))}t.default={name:"logger",initialize:r}},75626:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(64076);function r(e){var t=this;["component","route"].forEach(function(n){(0,i.Z)(this,t),e.inject(n,"placeholderService","service:placeholder")}.bind(this))}t.default={name:"placeholder",initialize:r}},45924:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(64076);function r(e){var t=this;["component","controller","model","route","service:timer"].forEach(function(n){(0,i.Z)(this,t),e.inject(n,"queue","service:queue")}.bind(this))}t.default={name:"queue",initialize:r}},13664:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(64076);function r(e){var t=this;["component","controller","model","route","adapter","serializer","service:ajaxQueue"].forEach(function(n){(0,i.Z)(this,t),e.inject(n,"record","service:record")}.bind(this))}t.default={name:"record",initialize:r}},57441:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(64076);function r(e){var t=this;["component","controller","model","route","service:jwt"].forEach(function(n){(0,i.Z)(this,t),e.inject(n,"rts","service:rts")}.bind(this))}t.default={name:"rts",initialize:r}},29396:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(64076);function r(e){var t=this;["component","controller","adapter","route","service:ruleEngine","service:notification","service:rts","service:batch","service:windowListener"].forEach(function(n){(0,i.Z)(this,t),e.inject(n,"session","service:session")}.bind(this))}t.default={name:"session",initialize:r}},59881:function(e,t,n){"use strict";n.r(t),t.default={name:"ember-sanitize-setup-sanitizers",initialize:function(e){e.registerOptionsForType?e.registerOptionsForType("sanitizer",{instantiate:!1}):e.optionsForType("sanitizer",{instantiate:!1})}}},25193:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(64076);function r(e){var t=this;["component","controller","model","route"].forEach(function(n){(0,i.Z)(this,t),e.inject(n,"timer","service:timer")}.bind(this))}t.default={name:"timer",after:"queue",initialize:r}},67832:function(e,t,n){"use strict";n.r(t),t.default={name:"ember-data",initialize:function(){}}},42447:function(e,t,n){"use strict";n.r(t);var i=n(76459),r=n(5953),o=n(64076),a=n(45652),s=n(92759),l=n(17912),u=n(6937),c=n(92003),d=n(48220),f=n(59565),h=n(198),p=n(72973);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function g(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},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 o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n/gi,"");var t=document.createElement("div");return t?(t.innerHTML=e,(0,f.forEach)(t.children,(function(e,t){var n=e;switch(n.tagName){case"IMG":n.outerHTML=n.getAttribute("alt");break;case"BR":n.outerHTML="\r\n";break;case"G":case"P":n.outerHTML=n.innerHTML}})),t.innerHTML?"\r\n"===t.innerHTML?t.innerHTML:t.innerHTML.trim():""):null},emptyContentEditor:function(e){var t=document.getElementById(e||a.default.DOM_ID.appConversationEditor);t&&(t.innerHTML="")},getcurrentTextMessage:function(e){var t=e?this.element.querySelector("#".concat(e)):this.element.querySelector(".editable"),n=this,i=[];if(t)if(t.id===this.DOM_ID.phoneNumberWithCode){var r=t.value;i.push({fragmentType:y.FRAGMENT_TYPE.TEXT,contentType:"text/html",content:r})}else if(this.isAllEmoji(t)){var o=this.parseMessage(t.innerHTML);o&&i.push({fragmentType:y.FRAGMENT_TYPE.TEXT,contentType:"text/html",content:o})}else if(this.isAllBR(t)){var a=t.innerHTML,s=a&&a.split("
");if(s&&s.length)for(var l=0;l1&&void 0!==t[1]&&t[1],u=t.length>2&&void 0!==t[2]&&t[2],!n.isJWTStrictMode){i.next=10;break}if(!(n.jwt.auth.expiredAt||n.jwt.auth.scheduled||n.jwt.auth.expired)){i.next=7;break}return i.abrupt("return");case 7:if(!n.isJwtExpired()){i.next=10;break}return n.initiateSendingMode(),i.abrupt("return");case 10:if(c=n.session,d=c&&c.user,f=c&&c.siteId,h=c&&c.faqTags,p=h&&h.tags,m=a.default.EmberModelUrl.message.url.replace("{token}",c.token).replace("{userAlias}",d.alias),g=n.messages,v=g&&g.toArray(),b=v&&v.length,y=(new Date).getTime(),null!=e&&null!==(r=e.messageFragments)&&void 0!==r&&null!==(s=r[0])&&void 0!==s&&s.isFeedbackMessage&&(m=a.default.EmberModelUrl.botFeedback.url.replace("{token}",c.token).replace("{conversationId}",n.conversation.conversationId).replace("{userAlias}",d.alias)),e.faqTags=p,f&&(m+="?siteId=".concat(f)),!d.alias){i.next=45;break}if(R=null===(E=n.hotline)||void 0===E||null===(Z=E.ui)||void 0===Z?void 0:Z.conversationReferenceId,n.conversation&&n.conversation.conversationId&&-1!==n.conversation.conversationId||!n.hasFirstUserMessageBeenSent){i.next=18;break}return i.abrupt("return");case 18:for(C=e.messageFragments?e.messageFragments:[],O=C.length,_=O-1;_>=0;_--)C[_].fragmentType===a.default.CONVERSATION.FRAGMENT_TYPE.IMAGE&&-1!==C[_].content.indexOf("data:image")&&C.splice(_,1);if(e.messageFragments=C,g&&(e.triggeredRuleIds=g.reduce(function(e,t){if((0,o.Z)(this,D),(t.get("autoRuleId")||t.get("flowId"))&&!t.get("hasBeenRepliedTo")){var i=e&&(e.findBy("ruleId",t.get("autoRuleId"))||e.findBy("flowId",t.get("flowId")));i&&e.removeObject(i);var r={timeDiffInMillis:y-t.get("createdMillis")};t.get("autoRuleId")&&(r.ruleId=t.get("autoRuleId")),t.get("flowId")&&(r.flowId=t.get("flowId"),r.flowVersionId=t.get("flowVersionId"),r.serviceAccountId=t.get("messageUserId")),n.lastMessage.messageId||e.push(r),t.set("hasBeenRepliedTo",!0)}return e}.bind(this),[])),g&&(e.conversationProperties=n.getBotsConversationProperties(g)),null!==(w=n.localds)&&void 0!==w&&null!==(T=w.conversationPropertiesMeta)&&void 0!==T&&T.properties&&(e.chatConversationProperties=n.localds.conversationPropertiesMeta.properties),g){for(k=b-1;k>=0;k--)(M=v[k]).get("marketingId")&&0!==M.get("messageUserType")&&!M.get("hasBeenRepliedTo")&&(e.marketingReplyId||(e.marketingReplyId=M.get("marketingId")),M.set("hasBeenRepliedTo",!0));e.marketingReplyId&&n.send("save",!1)}return!l&&n.isResponseForBot()&&(e.isResponseForBot=!0),c&&c.previewMode&&(e.flowId=c.flowId,e.flowVersionId=c.flowVersionId,e.isTemplatePreview="true"===c.isTemplateBot,e.isPostAgentResolutionEnabled=c.isPostAgentResolutionEnabled),n.rts.healthCheck(),e.socketId=n.rts.getSocketId(),n.isQuickActionSelected&&(e.isQuickAction=n.isQuickActionSelected,n.set("isQuickActionSelected",!1)),R&&(e.conversationReferenceId=R),null!==(S=n.model)&&void 0!==S&&S.conversationId||null!==(I=n.hotline)&&void 0!==I&&null!==(A=I.ui)&&void 0!==A&&A.parallelConversationId?e.conversationId=(null===(N=n.hotline)||void 0===N||null===(P=N.ui)||void 0===P?void 0:P.parallelConversationId)||parseInt(n.model.conversationId,10):!n.hasFirstUserMessageBeenSent&&n.isParallelConversationEnabled&&(e.isParallelConversation=!0),n.isParallelConversationEnabled&&(e.isParallelConversationEnabled=!0),Ember.set(n,"hasFirstUserMessageBeenSent",!0),i.prev=34,i.next=37,n.axios.makeRequest({method:"POST",url:m,data:e,cache:!1,dataType:"json",contentType:"application/json; charset=utf-8",processData:!1}).then(function(e){(0,o.Z)(this,D),u?n.send("updateMessage",e.data,!0):n.send("updateMessage",e.data),n.didMessageSent&&n.didMessageSent()}.bind(this),function(t){(0,o.Z)(this,D);var i=t&&t.response.status||400,r=t&&t.response&&t.response.data||null;410===i&&(n.user.delete(),n.send("reset",null,!0)),412===i?26===r?n.initiateSendingMode():23===r&&(n.postMessage.post({action:"user_state_change",status:401,success:!1,data:{userState:a.default.userState.AUTH_INVALID}}),Ember.set(n.auth,"expired",!0),n.jwt.authenticateUser(!1)):n.updateMessageStatusUsingHopId({messageHopId:e.msgHopId,messageChannelId:e.channelId},a.default.MESSAGE_STATUS.NOT_SENT),Ember.set(n,"hasFirstUserMessageBeenSent",!1)}.bind(this));case 37:return i.abrupt("return",i.sent);case 40:i.prev=40,i.t0=i.catch(34),n.logger.log("Error while posting message ".concat(e),i.t0);case 43:i.next=46;break;case 45:Ember.set(n,"hasFirstUserMessageBeenSent",!1);case 46:case"end":return i.stop()}}),i,this,[[34,40]])})))()},sendPendingMessages:function(){var e=this;return(0,r.Z)(regeneratorRuntime.mark((function t(){var n,i,r,o,s,l,u,c,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(i=null===(n=e.localds)||void 0===n?void 0:n.conversations.findBy("channelId",e.channelId))){t.next=31;break}r=null,o=v(i.get("messages").toArray()),t.prev=4,o.s();case 6:if((s=o.n()).done){t.next=23;break}if((r=s.value).get("status")!==a.default.MESSAGE_STATUS.PENDING||0!==r.get("messageUserType")){t.next=21;break}for(e.jwt.auth.expiredAt||e.jwt.auth.scheduled||e.isJwtExpired()||Ember.set(r,"status",a.default.MESSAGE_STATUS.READY_TO_SEND),e.isJWTEnabled()&&e.isResponseForBot()&&Ember.set(r,"isResponseForBot",!0),l=r.serialize(),u=l.messageFragments?l.messageFragments:[],c=u.length,d=c-1;d>=0;d--)u[d].fragmentType===a.default.FILETYPE.IMAGE&&-1!==u[d].content.indexOf("data:image")&&u.splice(d,1);return t.prev=13,t.next=16,e.postMessageAPI(l,!0);case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(13),e.logger.log("Failed processing pending message ".concat(l," with error ").concat(t.t0));case 21:t.next=6;break;case 23:t.next=28;break;case 25:t.prev=25,t.t1=t.catch(4),o.e(t.t1);case 28:return t.prev=28,o.f(),t.finish(28);case 31:case"end":return t.stop()}}),t,null,[[4,25,28,31],[13,18]])})))()},setFocus:function(){var e,t;if(!this.isJWTStrictMode||!this.jwt.auth.expired){var n=null===(e=this.hotline)||void 0===e||null===(t=e.ui)||void 0===t?void 0:t.isDesktop,i=this.element.querySelector(".ce-textarea");i&&n&&i.focus()}},allFragmentsAreEmpty:function(e){return(e&&e.length?e:[]).every((function(e){return e.fragmentType===y.FRAGMENT_TYPE.MEETING?!e.startMillis:e.content&&""===e.content.trim()}))},handleEventFragment:function(e,t){e&&e.messageFragments&&t&&e.messageFragments.push(t)},createMessageObject:function(e,t){var n,i,r,o,a,s,l=null===(n=this.hotline)||void 0===n||null===(i=n.ui)||void 0===i?void 0:i.parentLocation,u=null===(r=this.hotline)||void 0===r||null===(o=r.ui)||void 0===o?void 0:o.parentTitle;return{msgHopId:e+"_"+(null===(a=this.hotline)||void 0===a||null===(s=a.ui)||void 0===s?void 0:s.hop),messageType:t&&t.messageType||y.MESSAGE_TYPE.NORMAL,messageUserType:y.USER_TYPE.USER,location:JSON.stringify({url:l,title:u}),channelId:(null==t?void 0:t.channelId)||this.channelId,createdMillis:(new Date).getTime(),messageFragments:[],internalMeta:t&&t.internalMeta,replyTo:t&&t.replyTo,isBotsPrivate:null==t?void 0:t.isBotsPrivate}},createOfflineMessageObject:function(e,t){var n,i,r=this,a=(new Date).getTime(),s=this.createMessageObject(a),l={},u={},c=this.messages,d=[];if(c&&(c.forEach(function(e){(0,o.Z)(this,r),e.get("autoRuleId")&&!e.get("hasBeenRepliedTo")&&(d.push({ruleId:e.get("autoRuleId"),timeDiffInMillis:a-e.get("createdMillis")}),e.set("hasBeenRepliedTo",!0)),e.get("marketingId")&&0!==e.get("messageUserType")&&!e.get("hasBeenRepliedTo")&&(s.marketingReplyId||(s.marketingReplyId=e.get("marketingId")),e.set("hasBeenRepliedTo",!0))}.bind(this)),this.send("save",!1),s.triggeredRuleIds=[],d.forEach(function(e){(0,o.Z)(this,r),s.triggeredRuleIds.findBy("ruleId",e.ruleId)||s.triggeredRuleIds.push(e)}.bind(this))),0===t){var f,h,p,m,g,v,b=this.lastOfflineMessageTriggeredTime;(null===(f=this.hotline)||void 0===f||null===(h=f.ui)||void 0===h||null===(p=h.offlineExperience)||void 0===p?void 0:p.contactInfo)===y.CONTACT_INFO.EMAIL?l.offlineReplyType=y.OFFLINE_MESSAGE_TYPE.EMAIL:l.offlineReplyType=y.OFFLINE_MESSAGE_TYPE.PHONE,l.offlineEnabled=!0,u.timeDiffInMillis=(new Date).getTime()-b,u.offlineLocaleId=null===(m=this.hotline)||void 0===m||null===(g=m.ui)||void 0===g||null===(v=g.offlineExperience)||void 0===v?void 0:v.localeId,this.isParallelConversationEnabled&&!this.conversation.conversationId&&(s.isParallelConversation=!0,Ember.set(this,"hasFirstUserMessageBeenSent",!0))}else{var E,Z,w,T,S;l.offlineEnabled=!0,u.offlineLocaleId=null===(E=this.hotline)||void 0===E||null===(Z=E.ui)||void 0===Z||null===(w=Z.offlineExperience)||void 0===w?void 0:w.localeId,s.msgHopId=(new Date).getTime()+2+"_"+(null===(T=this.hotline)||void 0===T||null===(S=T.ui)||void 0===S?void 0:S.hop),l.offlineReplyType=y.OFFLINE_MESSAGE_TYPE.COMMENT}return s.conversationReferenceId=null===(n=this.hotline)||void 0===n||null===(i=n.ui)||void 0===i?void 0:i.conversationReferenceId,s.conversationId=this.conversation.conversationId,s.internalMeta=l,s.offlineTriggerInfo=u,s.messageFragments.push(e),s},offlineMessageAPI:function(e){var t=this;if(this.isJWTStrictMode){if(this.jwt.auth.expiredAt||this.jwt.auth.scheduled||this.jwt.auth.expired)return;if(this.isJwtExpired())return void this.initiateSendingMode()}var n=this.session,i=n&&n.user,r=n&&n.siteId,s=a.default.EmberModelUrl.offlineMessage.url.replace("{token}",n.token).replace("{userAlias}",i.alias);r&&(s+="?siteId=".concat(r)),this.axios.makeRequest({method:"POST",url:s,data:e,cache:!1,dataType:"json",contentType:"application/json; charset=utf-8",processData:!1}).then(function(e){var n=this;(0,o.Z)(this,t);var i=this.lastOfflineMessage,r=e.data;i&&i.set("hasBeenRepliedToOffline",!0),i.save(),r.forEach(function(e){(0,o.Z)(this,n),this.send("updateMessage",e)}.bind(this))}.bind(this),function(e){(0,o.Z)(this,t),this.set("extraParams.isOfflineSendingFailed",!0);var n=e&&e.response.status||400,i=e&&e.response&&e.response.data||null;410===n&&(this.user.delete(),this.send("reset",null,!0)),412===n&&(26===i?this.initiateSendingMode():23===i&&(this.postMessage.post({action:"user_state_change",status:401,success:!1,data:{userState:a.default.userState.AUTH_INVALID}}),Ember.set(this.auth,"expired",!0),this.jwt.authenticateUser(!1)))}.bind(this))},hasFileAttachment:Ember.computed.equal("data.fileType",2),toggleBusinessClosedBanner:function(e){var t,n,i,r,s,l,u=this,c=(null===(t=this.hotline)||void 0===t||null===(n=t.ui)||void 0===n?void 0:n.triggerTimerForBusinessHours)===a.default.messengerVisibilityOptions.businessHours;(null!==(i=this.hotline)&&void 0!==i&&null!==(r=i.ui)&&void 0!==r&&r.isIOS||null!==(s=this.hotline)&&void 0!==s&&null!==(l=s.ui)&&void 0!==l&&l.isAndroid)&&c&&Ember.run.later(function(){(0,o.Z)(this,u),this.isDestroyed&&this.isDestroying||this.set("hotline.ui.showBusinessClosedBanner",e)}.bind(this),0)},getLatestNMessages:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.CONVERSATION.LIMIT;if(e){var n=e.length;return n<=t?e:e.slice(n-t,n)}return e},updatePlaceholders:function(e,t,n){var i=this,r=this.placeholderService.getPlaceholderStringWithValue(t,n);e.forEach(function(e){(0,o.Z)(this,i);var t=e.content,n=e.fragmentType;t&&n===a.default.CONVERSATION.FRAGMENT_TYPE.TEXT&&(e.content=this.placeholderService.replacePlaceholders(t,r))}.bind(this))},sendMessageToBot:function(e,t){var n,i,r=(null===(n=this.session)||void 0===n||null===(i=n.user)||void 0===i?void 0:i.alias)||this.localStorage.getItemLS("isUserCreateSent"),o=(new Date).getTime(),a=this.createMessageObject(o,t);a.messageFragments=[{fragmentType:y.FRAGMENT_TYPE.TEXT,contentType:"text/html",content:e}],r?this.postMessageAPI(a):this.send("createNewUser",this.postMessageAPI.bind(this,a))},getUpdatedFragments:function(e,t){var n,i=this,r=!1;return e&&(e.forEach(function(e){(0,o.Z)(this,i),"quickAction"in e?(n=!0,this.set("isQuickActionSelected",!0),delete e.quickAction):"shouldValidate"in e&&(r=!0,delete e.shouldValidate)}.bind(this)),n||!t||r||(n=t.some(function(e){return(0,o.Z)(this,i),e.templateType===a.default.TemplateType.QUICK_ACTIONS}.bind(this)))),(n||this.isPhoneNumberWithCode)&&this.showValidationMsg&&this.set("showValidationMsg",!1),{updatedFragments:e,isQuickAction:n}},sendMessageOnEnter:function(e,t){e===a.default.DOM_ID.appReplyEditor?this.willMessageSend&&this.willMessageSend({id:this.channelId,send:!0,replyText:t}):this.send("beforeSendMessage")},isNotTypedValue:function(e,t){var n,i;return t&&(0,s.isFeatureEnabled)(null===(n=this.hotline)||void 0===n||null===(i=n.ui)||void 0===i?void 0:i.config,"TYPING_INDICATOR")&&!this.isTyping&&e&&e!==this.typedValue},onKeyPressDefault:function(e){var t,n=this;this.set("showValidationMsg",!1);var i=null===(t=this.session)||void 0===t?void 0:t.user,r=i&&i.id;this.isNotTypedValue(e,r)&&(this.rts.sendMessage({userId:r.toString(),channelId:this.channelId,action:"is_typing"}),this.set("typedValue",e),this.set("isTyping",setTimeout(function(){(0,o.Z)(this,n),this.isDestroying||this.isDestroyed||this.set("isTyping",void 0)}.bind(this),2e3)))},actions:{sendReadManualCampaignReceipt:function(){var e,t,n,i=this,r=null===(e=this.session)||void 0===e?void 0:e.token,s=null===(t=this.session)||void 0===t?void 0:t.user,l=null===(n=this.session)||void 0===n?void 0:n.siteId,u=this.messages,c=this;u&&u.filter(function(e){return(0,o.Z)(this,i),e.get("marketingId")&&!e.get("manualCampaignRead")}.bind(this)).forEach(function(e){(0,o.Z)(this,i);var t=a.default.EmberModelUrl.updateCampaign,n=e.get("marketingId"),u=0!==e.get("messageUserType")&&n&&t.url.replace("{token}",r).replace("{userAlias}",s.alias).replace("{marketingId}",n);u&&(u+="?seen=1",l&&(u+="&siteId=".concat(l)),this.axios.makeRequest({method:"PUT",url:u}).then((function(t){t&&t.errorCode||(e.set("manualCampaignRead",!0),c.send("save"))})))}.bind(this))},sendReadCampaignMetric:function(){var e=this,t=this.messages;t&&(t.reduce(function(t,n){((0,o.Z)(this,e),n.get("autoRuleId")&&!n.get("autoRuleRead"))&&(t.findBy("autoRuleId",n.get("autoRuleId"))||t.push(n));return t}.bind(this),[]).forEach(function(t){if((0,o.Z)(this,e),t.get("autoRuleId")&&!t.get("autoRuleRead")){var n,i,r,s,l=t.get("autoRuleId"),u=this.localds,c=u&&u.get("userBehaviour"),d=(c&&c.get("executedRules")).findBy("ruleId",l),f=d&&d.get("openedCount"),h=a.default.EmberModelUrl,p=null===(n=this.session)||void 0===n?void 0:n.token,m=null===(i=this.session)||void 0===i?void 0:i.siteId;f=f?f+1:1,d&&d.set("openedCount",f),s=f>1?a.default.RuleMetricKeys.clicked:a.default.RuleMetricKeys.uniqueClicked,r=h.tattletale.url.replace("{token}",p).replace("{ruleId}",l).replace("{keys}",s),m&&(r+="&siteId=".concat(m)),this.axios.makeRequest({method:"PUT",url:r,cache:!1,contentType:"application/json; charset=UTF-8"}).then((function(){})),t.set("autoRuleRead",!0)}}.bind(this)),this.send("save"))},keyPressDown:function(e,t){var n,i,r=this.data;switch(r&&(n=r.fileData,i=r.fileType),t.which){case 13:if(!t.shiftKey&&(e||n&&i)){if(t.preventDefault(),(0,p.isSlashCmdMenuVisible)())break;this.sendMessageOnEnter(t.target.id,e)}break;default:this.onKeyPressDefault(e)}},beforeSendMessage:function(e,t){var n,i,r,l,u,c,d=this,f=arguments.length>2&&void 0!==arguments[2]&&arguments[2],h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(f&&this.set("isQuickActionSelected",!0),!this.disableHugeMessageSending&&null!==(n=this.hotline)&&void 0!==n&&null!==(i=n.ui)&&void 0!==i&&i.onLine){var p,m,v=this.getcurrentTextMessage(h),b=null!=v&&v.length?(0,s.singleMessageFromTextFragments)(v):(0,s.singleMessageFromTextFragments)(e),y=null,E={},Z=null===(r=this.lastMessage)||void 0===r?void 0:r.replyFragments,w=this.getUpdatedFragments(e,Z),T=w.isQuickAction,S=w.updatedFragments;if(null!=Z&&Z.length){var I,A,R=(null===(I=E=Z.find(function(e){return(0,o.Z)(this,d),a.default.VALIDATION_PLACEHOLDER_MESSAGE[e.inputType===a.default.PHONE_NUMBER_COUNTRY_CODE?"phone":null==e?void 0:e.inputType]}.bind(this)))||void 0===I?void 0:I.inputType)===a.default.PHONE_NUMBER_COUNTRY_CODE?"phone":null===(A=E)||void 0===A?void 0:A.inputType;E=g(g({},E),a.default.VALIDATION_PLACEHOLDER_MESSAGE[R])}if(null!==(l=E)&&void 0!==l&&l.inputType)y={validationtype:null===(p=E)||void 0===p?void 0:p.inputType,validations:"otp"!==(null===(m=E)||void 0===m?void 0:m.inputType)?[{validationErrorText:E.validationMessage}]:null};if(y&&y.validations){var C=y.validations,O=y.validationtype,_=this.intlPhoneInput&&this.intlPhoneInput.isValidNumber(),k=this.intlPhoneInput?_:(0,s.checkBotsInputValidation)(O,b);if(E.inputType===a.default.PHONE_NUMBER_COUNTRY_CODE&&T?!_&&O&&!k:!T&&!_&&O&&!k)return this.set("hotline.ui.validationMessage",this.intl.t(C[0].validationErrorText)),this.set("showValidationMsg",!0),!1}this.set("hotline.ui.validationMessage",void 0),null!==(u=this.session)&&void 0!==u&&null!==(c=u.user)&&void 0!==c&&c.alias||this.localStorage.getItemLS("isUserCreateSent")?(this.didReadReceiptSent&&this.send("updateReadReceipt"),this.clearPrivacyPolicy(),this.send("sendMessage",S,t,h)):(this.set("hasUserToCreate",!0),this.send("createUser",S),this.clearPrivacyPolicy())}},focusIn:function(){var e;this.toggleBusinessClosedBanner(!1),null===(e=this.focusOnTextarea)||void 0===e||e.call(this)},focusOut:function(){this.toggleBusinessClosedBanner(!0)},createMessage:function(e,t){var n,i,r,o,s,l,u=this.localds,c=this.conversations,d=this.conversation,f=this.messages,h=this.messagesCount,p=null===(n=this.hotline)||void 0===n||null===(i=n.ui)||void 0===i?void 0:i.conversationReferenceId,m=this.store;this.isJWTStrictMode&&this.jwt.auth.expired?Ember.set(t,"status",a.default.MESSAGE_STATUS.UNAUTHENTICATED):Ember.set(t,"status",a.default.MESSAGE_STATUS.PENDING),null!=t&&null!==(r=t.messageFragments)&&void 0!==r&&null!==(o=r[0])&&void 0!==o&&o.isFeedbackMessage&&Ember.set(t,"isFeedbackResponse",!0);var g=parseInt(null===(s=this.model)||void 0===s?void 0:s.conversationId,10);if(h||this.isParallelConversationEnabled&&0===h&&g===(null===(l=d)||void 0===l?void 0:l.conversationId))f.pushObject(m.createRecord("message",t)),d&&Ember.set(d,"conversationReferenceId",p),this.logger.log("Adding Message");else{var v=Ember.A([]);if(v.pushObject(m.createRecord("message",t)),d=m.createRecord("conversation",{conversationId:-1,channelId:this.channelId,messages:v,readMillis:e,conversationReferenceId:p}),c)c.pushObject(d);else{var b=Ember.A([]);b.pushObject(d),u.set("conversations",b)}}this.send("save")},sendBulkEvents:function(){var e,t,n,i,r=this;if(null===(e=this.session)||void 0===e||null===(t=e.config)||void 0===t||!t.disableEvents){var s=Ember.get(this,"userBehaviour.events").map(function(e){var t,n,i=this;(0,o.Z)(this,r);var a={};if(e.get("eventProperties").forEach(function(e){(0,o.Z)(this,i),a[e.get("key")]=e.get("value")}.bind(this)),"fc_page"!==e.get("name")||null===(t=this.session)||void 0===t||null===(n=t.config)||void 0===n||!n.disablePageTransition||a.force)return{occTime:e.get("createdMillis"),eventName:e.get("name"),properties:a}}.bind(this)),l=null===(n=this.session)||void 0===n?void 0:n.siteId,u=a.default.EmberModelUrl.newMultiEvent.url.replace("{token}",null===(i=this.session)||void 0===i?void 0:i.token);l&&(u+="?siteId=".concat(l)),this.axios.makeRequest({method:"POST",url:u,data:s,cache:!1,contentType:"application/json; charset=UTF-8"}).then((function(){}))}},sendMessage:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.data,s=(new Date).getTime(),l=e||this.getcurrentTextMessage(i),u=r&&r.fileType,c=r&&r.fileData,d=r&&r.attr,f=this.conversation,h=l.length,p=f&&-1!==f.get("conversationId"),m=this.session,g=m&&m.user,v=this.messages,b=this.createMessageObject(s,t);if(!this.saving&&(c&&u||0!==h&&!this.allFragmentsAreEmpty(l)))if(Ember.set(this,"saving",!0),l[0]&&l[0].fragmentType===y.FRAGMENT_TYPE.MEETING)this.handleEventFragment(b,l[0]),this.postMessageAPI(b),Ember.set(this,"saving",!1);else{var E=this.getTextFromEditorForClosedOrOpenWidgetState(),Z=E&&E.length>=a.default.MessageSpecs.maxLength,w="";if(c&&u){var T,S=function(e,t){if((0,o.Z)(this,n),e)b=this.updateMessageFragmentsAfterFileUpload(b,t),!this.assertThatAllAttachmentsHaveBeenUploaded(b)||!p&&this.isFirstMsgInitiatedForChannel||(Ember.set(this,"isFirstMsgInitiatedForChannel",!0),b=this.postMessage.updateNotAuthenticatedMessage(b),this.postMessageAPI(b));else{var i=this.intl,r=i.t("file_attachment_errors.error_uploading_file");t.error===a.default.FileSecurityStatus.MalwareFile&&(r=i.t("file_attachment_errors.file_contains_malware")),this.flash.showMessage(r),this.updateMessageStatusUsingHopId({messageHopId:b.msgHopId,messageChannelId:b.channelId},a.default.MESSAGE_STATUS.NOT_UPLOADED)}}.bind(this);if(Z){var I=this.getTextFilePreviewFragment(E);b.messageFragments.push(I),w=I.fileName}else h&&this.assertThatFragmentContentsAreNotNull(l)&&(b.messageFragments=this.maskTextForFragments(l));var A="FILE_ALIAS_"+(new Date).getTime();if(u===a.default.FILETYPE.FILE)T={fileAlias:A,fileContentType:c.type,fileName:c.name,fileSize:c.size,fragmentType:y.FRAGMENT_TYPE.FILE};else if(u===a.default.FILETYPE.IMAGE){var R,C,O,_;T={fileAlias:A,contentType:"image/png",fragmentType:y.FRAGMENT_TYPE.IMAGE,content:null===(R=this.data)||void 0===R||null===(C=R.fileContent)||void 0===C?void 0:C.dataUrl,height:d.height,width:d.width,thumbnail:{contentType:"image/png",content:null===(O=this.data)||void 0===O||null===(_=O.fileContent)||void 0===_?void 0:_.dataUrl,height:200,width:200}}}b.messageFragments.splice(0,0,T),g&&g.alias?this.uploadFile({file:c,fileType:u,fileAlias:A},S):this.set("pendingFile",{file:c,fileType:u,fileAlias:A})}else{if(Z){var k=this.getTextFilePreviewFragment(E);b.messageFragments.push(k),w=k.fileName}else h&&(b.messageFragments=this.maskTextForFragments(l));Z||(this.set("isFirstMsgInitiatedForChannel",!0),b=this.postMessage.updateNotAuthenticatedMessage(b),this.postMessageAPI(b))}var M=b.msgHopId&&v&&v.findBy("msgHopId",b.msgHopId);M||this.send("createMessage",s,b),Z&&(g&&g.alias?this.uploadTextAndGetFileHash(E,b,w):this.set("pendingUploadTextFileObject",{text:E,fileName:w})),this.set("isTextLimitExceeded",!1),this.emptyContentEditor(i),this.focusOnTextarea&&this.focusOnTextarea(),Ember.set(this,"saving",!1),this.send("clearImage"),this.willMessageSent&&this.willMessageSent()}},resendMessage:function(e){var t,n;if(null!==(t=this.hotline)&&void 0!==t&&null!==(n=t.ui)&&void 0!==n&&n.onLine){var i=this.session,r=i&&i.user,o=e.serialize(),s=this.assertThatAllAttachmentsHaveBeenUploaded(o);r&&r.alias&&s?(this.updateMessageStatusUsingHopId({messageHopId:e.get("msgHopId"),messageChannelId:e.get("channelId"),messageConversationId:e.get("conversationId")},a.default.MESSAGE_STATUS.RETRYING),this.postMessageAPI(o,!1,!0)):this.logger.log("No user exists or files not uploaded, can't retry sending the message.")}},updateMessage:function(e){var t,n,i,r,l,u,c,d,f=this,p=arguments.length>1&&void 0!==arguments[1]&&arguments[1],m=this.localds,g=this.store,v=this.conversations,b=this.conversation,y=this.messages,E=e&&e.messageId,Z=e&&e.msgHopId,w=!1;p&&(y=(b=e.conversationId&&(null===(c=this.localds)||void 0===c?void 0:c.conversations.findBy("conversationId",e.conversationId))||e.conversationChannelId&&(null===(d=this.localds)||void 0===d?void 0:d.conversations.findBy("channelId",e.conversationChannelId)))&&b.get("messages"));if(!e||3!==e.messageType&&5!==e.messageType||(0,s.resizeImage)(e),b){y=y||[],-1!==b.get("conversationId")&&b.get("conversationId")||(b.set("conversationId",e.conversationId),w=!0),b.get("status")===a.default.CONVERSATION.CONVERSATION_STATUS.RESOLVED&&e.messageUserType===a.default.CONVERSATION.USER_TYPE.USER&&b.set("status",0),Ember.set(e,"status",a.default.MESSAGE_STATUS.SENT),r=E&&y.findBy("messageId",E)||Z&&y.findBy("msgHopId",Z),l=y.reduce(function(t,n){(0,o.Z)(this,f);var i=e.autoRuleId&&n.get("autoRuleId")===e.autoRuleId||e.ruleId&&n.get("autoRuleId")===e.ruleId,r=e.campaignMessageId?n.get("campaignMessageId")===e.campaignMessageId:!e.flowStepId;return i&&r&&!n.get("messageId")&&(t=n),t}.bind(this),void 0),u=y.reduce(function(t,n){return(0,o.Z)(this,f),e.flowStepId&&n.get("flowStepId")===e.flowStepId&&!n.get("messageId")&&(t=n),t}.bind(this),void 0);var T=y.filterBy("offlineMessage",!0).filterBy("hasBeenRepliedToOffline",!1);if(e&&e.autoRuleId&&T.length&&T[T.length-1].set("hasBeenRepliedToOffline",!0),r&&!p){var S=Z&&y.findBy("msgHopId",Z),I=e.conversationId&&e.messageId&&S&&S.conversationId!==e.conversationId&&S.messageId!==e.messageId,A=r.conversationId===e.conversationId&&r.messageId===e.messageId&&!r.msgHopId;I&&A&&(y.removeObject(S),this.logger.log("Deleted first message duplicated.")),g.cloneRecord(r,e),this.logger.log("Updating Message"),h.default.readOutDynamicUpdates(this.intl.t("aria_labels.message_sent"))}else if(l)(0,s.checkAndUpdateReadMillis)(l.get("createdMillis"),e.createdMillis,b),g.cloneRecord(l,e),this.logger.log("Updating Auto Rule Message");else if(u)(0,s.checkAndUpdateReadMillis)(u.get("createdMillis"),e.createdMillis,b),g.cloneRecord(u,e),this.logger.log("Updating Flow Message");else{p&&(y.removeObject(r),r.destroyRecord(),this.logger.log("Deleted old resent message."));var R=g.createRecord("message",e),C=y.lastObject;if(y.firstObject&&y.firstObject.messageId&&y.firstObject.createdMillis>e.createdMillis)y.unshiftObjects([R]);else if(Ember.isEmpty(C)||Ember.isEmpty(C.messageId))y.pushObject(R);else{for(var O=y.length-1;O>=0;O--){var _=y.objectAt(O);if(_.createdMillis0&&(0,s.isFeatureEnabled)(null===(E=this.hotline)||void 0===E||null===(Z=E.ui)||void 0===Z?void 0:Z.config,"READ_RECEIPTS")){var w=h.url.replace("{token}",u.token).replace("{userAlias}",d.alias);f&&(w+="?siteId=".concat(f)),c.postRequest(h.model,w,e).then(function(){(0,o.Z)(this,t),this.postMessage.post({action:"read_receipts_update",status:200,success:!0,data:{read:{channelId:p,conversationId:m,userId:d.id,readUpto:v}}})}.bind(this))}l.needsUpdation&&(l.flowStepId||l.autoRuleId)?n.set("messageAfter",v-1e3):n.set("messageAfter",b),i.set("readMillis",v),i.set("markedReadMillis",v),this.send("save"),this.didReadReceiptSent&&this.didReadReceiptSent()}}},imageSelect:function(){this.element.querySelector("#"+this.fileId).click()},clearImage:function(){this.set("fileReset",null),this.set("content",null)}}})},70874:function(e,t,n){"use strict";n.r(t);var i=n(64076),r=n(45652);t.default=Ember.Mixin.create({loadFAQS:function(){var e=this.faqs;e&&e.get("lastModifiedAt")&&this.fetchFaqs||this.loadData()},loadLunrLanguage:function(e){var t=this;e&&r.default.LunrLanguage[e]&&(0,r.default.LunrLanguage[e])().then(function(){(0,i.Z)(this,t),this.logger.log("Lunr js loaded")}.bind(this),function(){(0,i.Z)(this,t),this.logger.log("Error in loading lunr js")}.bind(this))},loadData:function(){var e,t=this,n=null===(e=this.localds)||void 0===e?void 0:e.dsFaq,r=n&&n.get("lastModifiedAt"),o=n&&n.get("contentLocale"),a=(new Date).getTime().toString();r&&this.set("hotline.ui.lastModifiedFaqsAt",r),o&&(this.set("hotline.ui.lastLocaleId",o.localeId),this.loadLunrLanguage(o.displayCode)),this.store.findRecord("faq",a,{reload:!0}).then(function(e){(0,i.Z)(this,t);var n=e.get("contentLocale"),r=n&&n.displayCode;o||(this.set("hotline.ui.lastLocaleId",n&&n.localeId),this.loadLunrLanguage(r)),204!==e.get("status")&&(this.set("fetchFaqs",!0),200===e.get("status")&&this.processData(e))}.bind(this),function(e){(0,i.Z)(this,t),e.status}.bind(this))},processData:function(e){var t,n=this,r=e&&e.get("categories"),o=this.localds,a=null===(t=this.session)||void 0===t?void 0:t.user,s=Ember.A([]);Ember.set(e,"category",void 0),r.forEach(function(e){var t=this;(0,i.Z)(this,n);var r=e.serialize(),o=e.get("articles"),a=Ember.A([]);o.forEach(function(e){(0,i.Z)(this,t),a.pushObject(this.store.createRecord("dsArticle",e.serialize()))}.bind(this)),r.dsArticles=a,s.pushObject(this.store.createRecord("dsCategory",r))}.bind(this)),Ember.set(o,"dsFaq",this.store.createRecord("dsFaq",{dsCategories:s,contentLocale:e.get("contentLocale"),lastModifiedAt:e.get("lastModifiedAt")})),Ember.set(a,"dontfetchFaqsAgain",!0),this.send("save",!1)}})},75729:function(e,t,n){"use strict";n.r(t);var i=n(64076),r=n(68422),o=n(68103),a=n(45652),s=n(14161),l=a.default.CALENDAR.SESSIONS;t.default=Ember.Mixin.create(s.default,{firstFreeTimeSlots:Ember.computed("sessionalizedCalendarSlots",{get:function(){return this.sessionalizedCalendarSlots[0]}}),meetingLengthAsMillis:Ember.computed("meetingLength",{get:function(){return this.meetingLength&&1e3*this.meetingLength}}),userDefaultTimeZone:Ember.computed({get:function(){return o.default.guess()}}),userTimeZoneToUse:Ember.computed("userDefaultTimeZone","userCustomTimeZone",{get:function(){return this.userCustomTimeZone||this.userDefaultTimeZone}}),meetingLengthAsString:Ember.computed("meetingLength",{get:function(){var e=this.meetingLength,t=this.intl.t("calendar.duration");return e?t+": "+this.getTimeDiffAsString(e):""}}),getTimeDiffAsString:function(e){var t=Math.floor(e/3600),n=e%3600,i=Math.floor(n/60),r=this.intl.t("calendar.mins"),o=this.intl.t("calendar.hrs");return i>0&&t>0?t.toString()+" "+o+" "+i.toString()+" "+r:t>0?t.toString()+" "+o:i>0?i.toString()+" "+r:void 0},sessionalizedCalendarSlots:Ember.computed("serializedCalendarSlots","userTimeZoneToUse",{get:function(){var e=this.serializedCalendarSlots,t=this.userTimeZoneToUse;return e&&t?this.splitSlotsToSessions(e,t):[]}}),serializedCalendarSlots:Ember.computed("freeSlots","userTimeZoneToUse",{get:function(){var e=this.freeSlots,t=this.userTimeZoneToUse,n=this.meetingLengthAsMillis;return this.convertSlotsDaywise(e,n,t)}}),getDifferenceOfDaysOnMonthChange:function(e,t){var n=new Date(e),i=new Date(t);return Math.round(Math.abs((n.getTime()-i.getTime())/864e5))},convertSlotsDaywise:function(e,t,n){for(var i=[],a=e&&e.get("length"),s=-1,l=0;l0){var v=i[i.length-1],b=v.slots;v.slots=b.concat(g)}}else{var y=this.transformSlotToSubslots(c,d,t,n);if(y&&y.length>0){var E={date:(0,r.default)(o.default.convert(c,n)).format("LL"),weekday:this.convertMillisToWeekday(c,n),slots:y};i.push(E)}}}else{var Z=h-f;this.splitMultipleDaysToTimeSlots(Z,c,d,f,s,t,i,n)}s=h}return i},getDaySlotsWithDate:function(e,t,n){return e&&t?e.findBy("date",(0,r.default)(o.default.convert(t,n)).format("LL")):(this.logger.log("No given slot or date found to get calendar day for."),null)},splitMultipleDaysToTimeSlots:function(e,t,n,i,a,s,l,u){for(var c=-1,d=0;d0&&p){var m=l[l.length-1],g=m.slots;m.slots=g.concat(h)}else if(h&&h.length>0){var v={date:(0,r.default)(o.default.convert(t,u)).format("LL"),weekday:this.convertMillisToWeekday(t,u),slots:h};l.push(v)}}else{var b=this.transformSlotToSubslots(t,f,s,u),y=this.getDaySlotsWithDate(l,t,u);if(b&&b.length>0&&y){var E={date:(0,r.default)(o.default.convert(t,u)).format("LL"),weekday:this.convertMillisToWeekday(t,u),slots:b};l.push(E)}else if(b&&b.length>0){var Z={date:(0,r.default)(o.default.convert(t,u)).format("LL"),weekday:this.convertMillisToWeekday(t,u),slots:b};l.push(Z)}}c=f}if(d===e-1){var w=c+1,T=this.transformSlotToSubslots(w,n,s,u),S=this.getDaySlotsWithDate(l,w,u);if(T&&T.length>0&&S){var I={date:(0,r.default)(o.default.convert(w,u)).format("LL"),weekday:this.convertMillisToWeekday(w,u),slots:T};l.push(I)}else if(T&&T.length>0){var A={date:(0,r.default)(o.default.convert(w,u)).format("LL"),weekday:this.convertMillisToWeekday(w,u),slots:T};l.push(A)}}else{var R=c+1,C=this.endOfDayInMillis(R,u),O=this.transformSlotToSubslots(R,C,s,u),_=this.getDaySlotsWithDate(l,R,u);if(O&&O.length>0&&_){var k={date:(0,r.default)(o.default.convert(R,u)).format("LL"),weekday:this.convertMillisToWeekday(R,u),slots:O};l.push(k)}else if(O&&O.length>0){var M={date:(0,r.default)(o.default.convert(R,u)).format("LL"),weekday:this.convertMillisToWeekday(R,u),slots:O};l.push(M)}c=C}}},transformSlotToSubslots:function(e,t,n,i){e=this.roundOffMillisToNearestQuarter(e,!0),t=this.roundOffMillisToNearestQuarter(t,!1);for(var a=[];e+n<=t;)a.push({from:e,fromAsTime:(0,r.default)(o.default.convert(e,i)).format("LT")}),e+=n;return a},roundOffMillisToNearestQuarter:function(e,t){var n=a.default.CALENDAR.TIMESLOT_ROUNDOFF,i=e%n;return i!==n-1&&(e-=i),t&&i?e+9e5:e},endOfDayInMillis:function(e,t){return new Date((0,r.default)(o.default.convert(e,t)).add(1,"days").format("MM DD YYYY")).getTime()-1},convertMillisToWeekday:function(e,t){return e?(0,r.default)().format("l")===(0,r.default)(o.default.convert(e,t)).format("l")?this.intl.t("conversation.chat_headers.today"):(0,r.default)().add(1,"days").format("l")===(0,r.default)(o.default.convert(e,t)).format("l")?this.intl.t("conversation.chat_headers.tomorrow"):(0,r.default)(o.default.convert(e,t)).format("dddd"):null},scrollToBottomWithDelay:function(e){var t=this;e||(e=0),setTimeout(function(){(0,i.Z)(this,t),this.scrollToBottom()}.bind(this),e)},scrollToLastCalendarPicker:function(e){var t=this;e||(e=0),setTimeout(function(){(0,i.Z)(this,t);var e=document.getElementsByClassName("calendar-picker-minified"),n=e&&e.length;n>0&&e[n-1].scrollIntoView(!0)}.bind(this),e)},getSessionFromHour:function(e){if(e>=0&&e<=23)return e>=0&&e<=11?a.default.CALENDAR.SESSIONS.MORNING:e>=12&&e<=15?a.default.CALENDAR.SESSIONS.AFTERNOON:e>=16&&e<=19?a.default.CALENDAR.SESSIONS.EVENING:a.default.CALENDAR.SESSIONS.NIGHT},getCSSClassForSession:function(e){if(e){if(e===l.MORNING)return"ic-calendar-session morning icon-ic_morning";if(e===l.AFTERNOON)return"ic-calendar-session afternoon icon-ic_afternoon";if(e===l.EVENING)return"ic-calendar-session evening icon-ic_evening";if(e===l.NIGHT)return"ic-calendar-session night icon-ic_night"}},createAndPushSlotIntoSession:function(e,t,n){return t&&e&&n&&(e===a.default.CALENDAR.SESSIONS.MORNING?(t.morningSlots=[],t.morningSlots.push(n)):e===a.default.CALENDAR.SESSIONS.AFTERNOON?(t.afternoonSlots=[],t.afternoonSlots.push(n)):e===a.default.CALENDAR.SESSIONS.EVENING?(t.eveningSlots=[],t.eveningSlots.push(n)):e===a.default.CALENDAR.SESSIONS.NIGHT&&(t.nightSlots=[],t.nightSlots.push(n))),t},pushSlotIntoSession:function(e,t,n){return e&&t&&n&&(e===a.default.CALENDAR.SESSIONS.MORNING?t.morningSlots.push(n):e===a.default.CALENDAR.SESSIONS.AFTERNOON?t.afternoonSlots.push(n):e===a.default.CALENDAR.SESSIONS.EVENING?t.eveningSlots.push(n):e===a.default.CALENDAR.SESSIONS.NIGHT&&t.nightSlots.push(n)),t},splitSlotsToSessions:function(e,t){if(e){for(var n=[],i=e.length,a=0;aN&&(N=h);var B=(u=l&&l.get("messages")||Ember.A([])).filterBy("offlineMessage",!0).filterBy("hasBeenRepliedToOffline",!1),F=B&&B.length,j=F&&B[F-1]?B[F-1].createdMillis:0;if(F){var z=p&&p.filterBy("messageUserType",o.default.CONVERSATION.USER_TYPE.AGENT),G=z&&z.length;(G&&z[G-1]?z[G-1].createdMillis:0)>j&&F&&B[F-1].set("hasBeenRepliedToOffline",!0)}for(i=0;i=E.createdMillis)u.unshiftObjects([K]);else if(J&&J.messageId){for(var Q=u.length-1;Q>=0;Q--){if(u.objectAt(Q).createdMillisN&&(N=h),!f.readMillis)){var ee,te=p.length;for(u=Ember.A([]),f.readMillis=d||this.getUserLastMsgCreatedMillis(p),ee=0;ee0&&void 0!==arguments[0]?arguments[0]:"";if(e=(0,r.coercer)(e)){var t=o.default.EmberModelUrl,n=t.messageACK,i=this.session,a=i&&i.user,s=n.url.replace("{token}",i.token).replace("{userAlias}",a.alias),l=i&&i.siteId;l&&(s+="?siteId=".concat(l)),this.store.postRequest(n.model,s,{messageAlias:e,time:(new Date).getTime(),socketId:this.rts.getSocketId()})}}}})},14161:function(e,t,n){"use strict";n.r(t);var i=n(64076),r=n(82557),o=n(45652),a=n(59565),s=n(61844),l=n(44454);t.default=Ember.Mixin.create(r.default,{validationTextMessage:null,canShowChannelFlowForBusinessHourSetting:Ember.computed("channelInfo.flowBusinessHourType",{get:function(){var e,t=!1;switch(null===(e=this.channelInfo)||void 0===e?void 0:e.flowBusinessHourType){case o.default.CHANNEL_BOT_BUSINESS_HOURS.BUSINESS_HOUR_INSIDE:t=!this.isChannelOutsideBusinessHour;break;case o.default.CHANNEL_BOT_BUSINESS_HOURS.BUSINESS_HOUR_ALWAYS:t=!0;break;case o.default.CHANNEL_BOT_BUSINESS_HOURS.BUSINESS_HOUR_OUTSIDE:t=this.isChannelOutsideBusinessHour}return t}}),conversation:Ember.computed("conversations.[]","channelId","hotline.ui.{conversationReferenceId,parallelConversationId}","conversationId",{get:function(){var e,t,n,r,o=this,a=this.conversations,s=this.channelId,l=this.conversationId&&parseInt(this.conversationId,10)||(null===(e=this.hotline)||void 0===e||null===(t=e.ui)||void 0===t?void 0:t.parallelConversationId),u=s&&parseInt(s,10),c=null===(n=this.hotline)||void 0===n||null===(r=n.ui)||void 0===r?void 0:r.conversationReferenceId;if(c){var d=a.filter(function(e){return(0,i.Z)(this,o),e.conversationReferenceId===c}.bind(this));return 0!==(null==d?void 0:d.length)?d.findBy("channelId",u):void 0}return this.isParallelConversationEnabled&&l&&-1!==l?a&&(null==a?void 0:a.find(function(e){return(0,i.Z)(this,o),e.channelId===u&&!e.conversationReferenceId&&e.conversationId===l}.bind(this))):this.isParallelConversationEnabled?a&&(null==a?void 0:a.find(function(e){return(0,i.Z)(this,o),!(e.channelId!==u||e.conversationReferenceId||e.conversationId&&-1!==e.conversationId)}.bind(this))):a&&(null==a?void 0:a.find(function(e){return(0,i.Z)(this,o),e.channelId===u&&!e.conversationReferenceId}.bind(this)))}}),readMillis:Ember.computed("messages.[]","conversation.readMillis",{get:function(){var e;return null===(e=this.conversation)||void 0===e?void 0:e.readMillis}}),messages:Ember.computed("conversation.messages.[]",{get:function(){var e;return null===(e=this.conversation)||void 0===e?void 0:e.messages},set:function(e,t){var n=this.conversation;return n&&n.set("messages",t),t}}),messagesCount:Ember.computed("messages.[]",{get:function(){var e;return null===(e=this.messages)||void 0===e?void 0:e.length}}),messagesCountWithMessageId:Ember.computed("messages.[]",{get:function(){var e=this.messages&&this.messages.filterBy("messageId");return e&&e.length}}),lastMessage:Ember.computed("messages.[]",{get:function(){var e=this.messages,t=this.messagesCount;return e&&t?e.objectAt(t-1):null}}),isOngoingConversation:Ember.computed("conversation.status","messages.length",{get:function(){var e;if((null===(e=this.conversation)||void 0===e?void 0:e.status)===o.default.CONVERSATION.CONVERSATION_STATUS.FREDDY_BOT)return!0;var t,n,i=!1;if((this.currentConversationStatus===o.default.CONVERSATION.CONVERSATION_STATUS.RESOLVED||!this.messagesCountWithMessageId)&&this.messages&&null!==(t=this.messages)&&void 0!==t&&t.length&&(null===(n=this.messages)||void 0===n?void 0:n.length)>1){var r,a=this.messages.objectAt((null===(r=this.messages)||void 0===r?void 0:r.length)-2),s=this.messages.lastObject;a.autoRuleId&&s.messageUserType===o.default.CONVERSATION.USER_TYPE.USER&&(i=!0)}return i}}),hasUnrepliedFlowMessages:Ember.computed.gt("unrepliedFlowMessages.length",0),unrepliedFlowMessages:Ember.computed("messages.[]",{get:function(){var e=this;return this.messages&&this.messages.filter(function(t){return(0,i.Z)(this,e),t.flowId&&!t.messageId&&!t.hasBeenRepliedTo}.bind(this))}}),canTriggerFlow:function(){var e=(new Date).getTime(),t=this.lastMessage,n=t&&t.createdMillis;return n&&e-n>o.default.SessionTimeOut},removeBotMessages:function(e){var t,n=this,r=this.conversation,o=this.localds;(t=r.get("messages").toArray().filter(function(t){return(0,i.Z)(this,n),!(t.get("flowId")&&!t.get("messageId")||e&&t.get("autoRuleId")===e&&t.get("campaignMessageId")&&!t.get("messageId"))}.bind(this))).length?r.set("messages",t):this.conversations.removeObject(r);o.save()},isFdInitiatedWidget:function(){return(this.session.prop&&this.session.prop.meta&&this.session.prop.meta.fw_product)===o.default.FW_PRODUCTS.FRESHDESK},channelInfo:Ember.computed("channelId",{get:function(){var e=this.channelId,t=e&&parseInt(e,10),n=this.channels;return n&&n.findBy("channelId",t)}}),offlineMessages:Ember.computed("messages.[]",{get:function(){return this.messages&&this.messages.filterBy("offlineMessage",!0)}}),lastOfflineMessage:Ember.computed("offlineMessages.[]",{get:function(){var e=this.offlineMessages,t=e&&e.length;return e&&t?e.objectAt(t-1):null}}),lastUserMessage:Ember.computed("messages.[]",{get:function(){var e=this.messages&&this.messages.filterBy("messageUserType",0),t=e&&e.length;return e&&t?e.objectAt(t-1):null}}),lastOfflineMessageTriggeredTime:Ember.computed("lastOfflineMessage",{get:function(){var e=this.lastOfflineMessage;return e?e.get("createdMillis"):null}}),lastUserMessageTime:Ember.computed("lastUserMessage",{get:function(){var e=this.lastUserMessage;return e?e.get("createdMillis"):null}}),hasUnrepliedOfflineMessage:Ember.computed("repliedToLastOfflineMessage","conversationOfflineMessagesCount",{get:function(){return this.conversationOfflineMessagesCount&&!this.repliedToLastOfflineMessage}}),repliedToLastOfflineMessage:Ember.computed("lastOfflineMessage.hasBeenRepliedToOffline",{get:function(){var e=this.lastOfflineMessage;return!!e&&(e&&e.get("hasBeenRepliedToOffline"))}}),conversationOfflineMessagesCount:Ember.computed("offlineMessages.[]",{get:function(){var e=this.offlineMessages;return e&&e.length}}),removelastOfflineMessage:function(){var e=this.conversation,t=this.localds,n=e.get("messages").toArray();(n.forEach((function(e){!0===e.get("offlineMessage")&&!1===e.get("hasBeenRepliedToOffline")&&(n.removeObject(e),e.destroyRecord())})),n.length)?n&&n.length&&e.set("messages",n):this.conversations.removeObject(e);t.save()},removeResolveReopenConversation:function(){var e=this,t=this.conversations,n=this.channelId,r=this.localds,o=t&&(null==t?void 0:t.filter(function(t){return(0,i.Z)(this,e),t.channelId===n&&!t.conversationReferenceId&&-1===t.conversationId}.bind(this)));n&&o.length&&o.forEach(function(n){(0,i.Z)(this,e),t.removeObject(n)}.bind(this)),r.save()},lastServerSentMessage:Ember.computed("messages.[]",{get:function(){var e=this.messages,t=this.messagesCount,n=e&&e.toArray();if(n&&t)for(var i=n.length-1;i>=0;i--)if(!n[i].get("needsUpdation"))return n[i];return null}}),lastAgentMessage:Ember.computed("messages.@each.messageId",{get:function(){var e=this.messages,t=this.messagesCount;if(e&&t)for(var n=t-1;n>=0;n--){var i=e.objectAt(n);if(i&&i.get("messageUserType"))return i}return null}}),isLastUserMessageTimeExceeded:function(){var e=this.lastUserMessageTime,t=(new Date).getTime();return!!e&&t-e>=o.default.UserMessageTimeDifference.time},currentConversationStatus:Ember.computed("conversation.status",{get:function(){var e=this.conversation;return e&&e.status?e&&e.status:0}}),currentConversationhasPendingCsat:Ember.computed("conversation.hasPendingCsat",{get:function(){var e=this.conversation;return!(!e||!e.hasPendingCsat)&&e.hasPendingCsat}}),isBotConversation:Ember.computed("conversation.status","lastAgentMessage.messageType",{get:function(){var e,t=this.conversation,n=o.default.CONVERSATION.MESSAGE_TYPE,i=n.FREDDY_BOT,r=n.BOT,a=o.default.CONVERSATION.CONVERSATION_STATUS,s=a.FREDDY_BOT,l=a.BOT,u=null===(e=this.lastAgentMessage)||void 0===e?void 0:e.messageType,c=u===i||u===r,d=(null==t?void 0:t.status)===s||(null==t?void 0:t.status)===l||void 0===(null==t?void 0:t.status);return c&&d}}),conversationCalendarMessages:Ember.computed("messages.@each.internalMeta",{get:function(){return this.messages&&this.messages.filterBy("internalMeta.calendarInviteId")}}),unreadCount:Ember.computed("messages.[]","readMillis","conversation.channelId",{get:function(){var e,t=(null===(e=this.conversation)||void 0===e?void 0:e.channelId)&&this.readMillis||0,n=this.messages,i=this.messagesCount,r=0;if(i)if(t)for(var o=i-1;o>=0;o--){var a=n.objectAt(o),s=a&&a.get("messageUserType"),l=a&&a.get("createdMillis");if(s){if(!(l>t))break;r+=1}}else r=i;return r},set:function(e,t){return t}}),unreadMarketingMessages:Ember.computed("messages.[]","unreadCount","readMillis","conversation.conversationId",{get:function(){var e=this.unreadCount,t=[];if(e)for(var n=this.messages,i=this.messagesCount,r=1;r<=e;r++){var o=n.objectAt(i-r);o&&o.get("messageUserType")&&o.get("marketingId")&&t.push(o)}return t}}),unreadMarketingMessagesCount:Ember.computed("unreadMarketingMessages.[]",{get:function(){var e=this.unreadMarketingMessages;return e&&e.length}}),hideName:Ember.computed.alias("session.config.agent.hideName"),hidePic:Ember.computed.alias("session.config.agent.hidePic"),canShowFreshIdAgentPic:Ember.computed("freshIdAgentPic","hidePic",{get:function(){return this.freshIdAgentPic&&!this.hidePic}}),upcomingCalendarEventMessage:Ember.computed("messages.[]",{get:function(){var e=this,t=this.messages,n=t&&t.filterBy("messageFragments.firstObject.fragmentType",o.default.CONVERSATION.FRAGMENT_TYPE.MEETING);n=n&&n.filterBy("internalMeta.calendarMessageMeta.retryCalendarEvent",!1);var r=[];n&&n.forEach(function(t){(0,i.Z)(this,e),r.push(t.get("messageFragments")[0])}.bind(this)),r=r.sortBy("startMillis");for(var a=0;a(new Date).getTime())return n.findBy("messageFragments.firstObject.eventId",r[a].eventId)}return null}}),hideBio:Ember.computed.alias("session.config.agent.hideBio"),isArticleListType:Ember.computed("message.messageFragments",{get:function(){var e,t=null===(e=this.message)||void 0===e?void 0:e.messageFragments;if(t&&t.length>0)for(var n=0;n0)&&(e.lastObject.fragmentType===o.default.CONVERSATION.FRAGMENT_TYPE.COLLECTION&&e.lastObject.fragments&&e.lastObject.fragments.lastObject.fragmentType===o.default.CONVERSATION.FRAGMENT_TYPE.CALLBACK)},isDropDownMessage:function(e){var t=e&&e[0];return t&&t.fragmentType===o.default.CONVERSATION.FRAGMENT_TYPE.DYNAMIC_TEMPLATE_CONTENT&&t.templateType===o.default.TemplateType.QUIC_REPLY_DROPDOWN},isMultiSelectDropDownMessage:function(e){return!!this.isDropDownMessage(e)&&this.isMultiSelect(e)},isCarouselMessage:function(e){var t=e&&e[0],n=t&&t.fragmentType,i=t&&t.templateType;return n===o.default.CONVERSATION.FRAGMENT_TYPE.DYNAMIC_TEMPLATE_CONTENT&&i===o.default.TemplateType.CAROUSEL},isMultiSelect:function(e){var t=this,n=o.default.RICH_MESSAGES,r=n.SECTION_NAMES.SELECTION_TYPE,a=n.SELECTION_TYPE.MULTI_SELECT,s=e[0].sections.find(function(e){var n=e.name;return(0,i.Z)(this,t),n===r}.bind(this));return(null==s?void 0:s.fragments[0].content)===a},isCustomButtonComposer:function(e){var t=this,n=this.getReplyCollectionFragments(e);return null==n?void 0:n.filter(function(e){var n=e.fragmentType;return(0,i.Z)(this,t),n!==o.default.CONVERSATION.FRAGMENT_TYPE.TEXT&&n!==o.default.CONVERSATION.FRAGMENT_TYPE.HELP_TEXT}.bind(this))},getReplyCollectionFragments:function(e){if(e&&e.get("replyFragments")&&e.get("replyFragments").length>0)return e.get("replyFragments")[0].fragments},isCustomComposer:function(e,t){var n=this;return e&&e.length>0?e.some(function(e){return(0,i.Z)(this,n),e.fragmentType===this.CONVERSATION.FRAGMENT_TYPE.COLLECTION||!this.isQuickActionTemplate(e)&&e.fragmentType===this.CONVERSATION.FRAGMENT_TYPE.DYNAMIC_TEMPLATE_CONTENT}.bind(this)):!!this.isArticleFeedbackMessage(t)},isQuickActionTemplate:function(e){return e.fragmentType===o.default.CONVERSATION.FRAGMENT_TYPE.DYNAMIC_TEMPLATE_CONTENT&&e.templateType===o.default.TemplateType.QUICK_ACTIONS},getMessageQuickActions:function(e){var t=this;return null==e?void 0:e.find(function(e){return(0,i.Z)(this,t),this.isQuickActionTemplate(e)}.bind(this))},setPlaceholder:function(e){var t=this.element.querySelector(".editable");t&&(0,a.setAttr)(t,{"data-placeholder":e})},isPhoneNumberWithCode:Ember.computed("lastMessage",{get:function(){var e,t,n,i,r,a,s=this.lastMessage,l=s&&(null==s||null===(e=s.replyFragments)||void 0===e||null===(t=e.lastObject)||void 0===t?void 0:t.inputType);l||(null==s||null===(n=s.replyFragment)||void 0===n||null===(i=n.lastObject)||void 0===i?void 0:i.templateType)!==o.default.TemplateType.QUICK_ACTION||(l=s&&(null==s||null===(r=s.replyFragments)||void 0===r||null===(a=r.firstObject)||void 0===a?void 0:a.inputType));return l&&l===o.default.PHONE_NUMBER_COUNTRY_CODE}}),defaultComposer:Ember.computed("lastMessage",{get:function(){this.set("exampletextMessage",""),this.set("validationTextMessage",""),this.set("validations",null);var e=this.lastMessage,t=e&&this.isArticleFeedbackMessage(e.get("messageFragments"));if(null!=e&&e.isFeedbackResponse)return!1;if(e&&(e.get("replyFragments")||t||this.isAttachmentRequested)){if(this.isCustomComposer(e.get("replyFragments"),e.get("messageFragments"))||this.isAttachmentRequested)return!1;if(e&&e.get("replyFragments")&&e.get("replyFragments").length>0){var n=e.get("replyFragments")[0];n&&n.fragmentType===this.CONVERSATION.FRAGMENT_TYPE.INPUT&&(this.set("exampletextMessage",n.exampleText),this.set("validations",this.getValidations()))}return!0}var i,r,o,a,s=(null===(i=this.session)||void 0===i||null===(r=i.config)||void 0===r||null===(o=r.content)||void 0===o||null===(a=o.placeholders)||void 0===a?void 0:a.reply_field)||this.intl.t("conversation.ce.placeholders.default");return this.setPlaceholder(s),!0}}),getValidations:function(){var e=this.lastMessage;if(e&&e.get("replyFragments")&&e.get("replyFragments").length>0){var t=e.get("replyFragments")[0];if(t&&t.fragmentType===this.CONVERSATION.FRAGMENT_TYPE.INPUT)return{validations:t.validations,validationtype:t.inputType}}},setChatWindowHeight:function(e){var t=this,n=document.querySelector(".body .h-chat-window");n&&(e?((0,a.removeCSSInline)(n,"height"),this.scrollToBottom()):Ember.run.later(function(){(0,i.Z)(this,t);var e=this.element&&this.element.querySelector(".body .h-reply-wrapper .h-reply-button"),n=e&&e.offsetHeight+20;(0,a.addCSSInline)(this.element&&this.element.querySelector(".body .h-reply-wrapper"),"height","".concat(n,"px")),(0,a.addCSSInline)(this.element&&this.element.querySelector(".body .h-chat-window"),"height","calc(100% - ".concat(n,"px)")),this.scrollToBottom()}.bind(this)))},scrollToBottom:function(){var e=document.querySelectorAll(".body .h-chat-window");e&&e.length&&s.default.scrollTo(e[0],e[e.length-1].scrollHeight,1)},getNeedUpdationValue:function(e){var t,n=!0,i=(0,l.canHideConversation)(this.conversation,null===(t=this.hotlineUI)||void 0===t?void 0:t.config)?this.messagesCountWithMessageId:!this.messagesCountWithMessageId;return e.flowStepId&&i&&this.session&&this.session.user&&this.session.user.alias&&(n=!1),n},customButtonComposer:Ember.computed("lastMessage",{get:function(){return this.isCustomButtonComposer(this.lastMessage)}}),multiSelectButtons:Ember.computed("lastMessage",{get:function(){var e,t=this,n=null===(e=this.lastMessage)||void 0===e?void 0:e.replyFragments;if(null!=n&&n.length){var r=n[0],a=null==r?void 0:r.sections,s=r.fragmentType,l=r.templateType,u=o.default.CONVERSATION,c=o.default.TemplateType.BUTTON_MULTI_SELECT;if(s===u.FRAGMENT_TYPE.DYNAMIC_TEMPLATE_CONTENT&&l===c){var d=a&&a.find(function(e){return(0,i.Z)(this,t),"buttons"===e.name}.bind(this));if(d){var f=d.fragments.filter(function(e){return(0,i.Z)(this,t),"checked_button"===e.templateType}.bind(this));return f.sort(function(e,n){var r=this;(0,i.Z)(this,t);var o=function(e){var t=this;return(0,i.Z)(this,r),e.sections.find(function(e){return(0,i.Z)(this,t),"display_order"===e.name}.bind(this))}.bind(this);return o(e).fragments[0].content-o(n).fragments[0].content}.bind(this)),f}return[]}return[]}return[]}}),articleFeedbackComposer:Ember.computed("lastMessage",{get:function(){var e=this,t=this.getArticleFeedbackFragments();return null==t?void 0:t.filter(function(t){var n=t.fragmentType;return(0,i.Z)(this,e),n!==o.default.CONVERSATION.FRAGMENT_TYPE.TEXT&&n!==o.default.CONVERSATION.FRAGMENT_TYPE.TEMPLATE}.bind(this))}}),getArticleFeedbackFragments:function(){var e=this.lastMessage;if(e&&e.get("messageFragments")&&e.get("messageFragments").length>0&&e.get("messageFragments.lastObject.fragments")){var t=e.get("messageFragments.lastObject.fragments");return t.length>0?t:null}},carousel:Ember.computed("lastMessage",{get:function(){var e,t=this,n={title:null,cards:[]},r=null===(e=this.lastMessage)||void 0===e?void 0:e.replyFragments;if(null!=r&&r.length&&this.isCarouselMessage(r)){var a=r[0],s=null==a?void 0:a.sections;if(!s||!s.length)return n;var l=s.find(function(e){return(0,i.Z)(this,t),e.name===o.default.RICH_MESSAGES.SECTION_NAMES.CAROUSEL_TITLE}.bind(this)),u=s.find(function(e){return(0,i.Z)(this,t),e.name===o.default.RICH_MESSAGES.SECTION_NAMES.CARDS}.bind(this));n.title=null==l?void 0:l.fragments,n.cards=null==u?void 0:u.fragments,n.multiSelect=this.isMultiSelect(r)}return n}}),dateFragments:Ember.computed("lastMessage.replyFragments",{get:function(){var e,t,n,r,a,s=this,l=null===(e=this.lastMessage)||void 0===e?void 0:e.replyFragments,u=null==l||null===(t=l[0])||void 0===t?void 0:t.templateType,c=null==l||null===(n=l[0])||void 0===n||null===(r=n.sections)||void 0===r||null===(a=r[0])||void 0===a?void 0:a.fragments;if(null!=c&&c.length&&u===o.default.TemplateType.DATE_PICKER){var d={};return l[0].sections.forEach(function(e){(0,i.Z)(this,s),"from_date"===e.name?d.fromDate=e.fragments[0].content:"to_date"===e.name&&(d.toDate=e.fragments[0].content)}.bind(this)),d}return null}}),isInLineReplyFragments:Ember.computed("customButtonComposer","multiSelectButtons","articleFeedbackComposer","carousel","dateFragments",{get:function(){var e;return!!(this.carousel.cards.length||this.multiSelectButtons.length||this.customButtonComposer||null!==(e=this.articleFeedbackComposer)&&void 0!==e&&e.length||this.dateFragments)}})})},82557:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var i=n(76459),r=n(64076),o=n(92759),a=n(45652),s=n(77665),l=n.n(s),u=function(){var e={generate:function(){return l()()}};return e}(),c=Ember.Object.extend({interval:1e3,ready:!1,initialize:function(e,t,n){this.interval=t,this.promise=e,this.scope=n,this.ready=!0,Ember.run.later(this,this.run,this.interval)},run:function(){this.ready?(this.promise.call(this.scope),this.promise=void 0,this.scope=void 0):this.promise&&(this.ready=!0,Ember.run.later(this,this.run,this.interval))},delay:function(){return!!this.promise&&(this.ready=!1,!0)},reset:function(){this.promise=void 0,this.scope=void 0,this.ready=!1},queued:function(){return this.promise&&!this.ready}}),d=n(44454);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function h(e){for(var t=1;t0}}),dsNamespace:Ember.computed("isLSDS","isLFDS","session.{token,siteId,appId}",{get:function(){var e,t,n,i=null===(e=this.session)||void 0===e?void 0:e.appId.toString(),r=null===(t=this.session)||void 0===t?void 0:t.token.toString(),o=null===(n=this.session)||void 0===n?void 0:n.siteId;return this.isLSDS?o?"lsds_".concat(r,"_").concat(o):"lsds_".concat(r):this.isLFDS?o?"".concat(i,"_").concat(o):i:""}}),datastore:Ember.computed.alias("hotlineUI.datastore"),localds:Ember.computed("records","hotlineUI.localds",{get:function(){var e;return this.records||(null===(e=this.hotlineUI)||void 0===e?void 0:e.localds)}}),records:Ember.computed("datastore","session.appId",{get:function(){var e=this.datastore,t=this.session;return e&&e.findBy("appId",t.appId)},set:function(e,t){return t}}),conversations:Ember.computed.alias("localds.conversations"),categories:Ember.computed.alias("faqs.dsCategories"),articles:Ember.computed.alias("categories.dsArticles"),faqs:Ember.computed.alias("localds.dsFaq"),userBehaviour:Ember.computed.alias("localds.userBehaviour"),properties:Ember.computed.alias("localds.properties"),totalCount:Ember.computed("conversations.[]",{get:function(){var e;return null===(e=this.conversations)||void 0===e?void 0:e.length}}),channels:Ember.computed.alias("hotlineUI.channels"),getFaqCategories:Ember.computed("hotline.ui",{get:function(){var e,t,n,i=this,o=null==this||null===(e=this.hotline)||void 0===e?void 0:e.ui,a=null==o||null===(t=o.config)||void 0===t||null===(n=t.contentConfig)||void 0===n?void 0:n.categories,s=null==o?void 0:o.categories;return a&&(s=s.filter(function(e){return(0,r.Z)(this,i),a.includes(e.categoryId)}.bind(this))),s}}),isFAQAvailable:Ember.computed("localds.dsFaq.dsCategories.length","session.config.hideFAQ","session.isKbaseFaqAvailable","hotline.ui.isKbaseCategoryRateLimited",{get:function(){var e,t,n,i,r;return((null===(e=this.session)||void 0===e?void 0:e.isKbaseFaqAvailable)||(null===(t=this.hotline)||void 0===t||null===(n=t.ui)||void 0===n?void 0:n.isKbaseCategoryRateLimited)||Ember.get(this,"localds.dsFaq.dsCategories.length")>0)&&!(null!==(i=this.session)&&void 0!==i&&null!==(r=i.config)&&void 0!==r&&r.hideFAQ)}}),displayChannels:Ember.computed("channels","conversations","session.{didMessage,tags,isMultiWidget,previewMode}","totalCount",{get:function(){var e,t,n,i,a=this,s=this.channels,l=this.conversations,u=this.totalCount,c=this.session,d=c&&c.tags,f=c&&c.didMessage,h=d&&d.length,p=[],m=(null===(e=this.session)||void 0===e?void 0:e.isMultiWidget)&&(null===(t=this.hotline.ui)||void 0===t||null===(n=t.config)||void 0===n?void 0:n.contentConfig);if(s){if(m||(0,o.sortArray)(s),f||u){u?l.forEach(function(e){(0,r.Z)(this,a),e.set("messages",e.get("messages").sortBy("createdMillis"));var t=e.get("channelId"),n=e.get("messages"),i=e.get("conversationId"),l=n&&n.toArray(),u=l&&l.length&&l[l.length-1],c=u&&u.get("createdMillis");if(t&&c){var d=(0,o.findIndexByValueProperty)(s,t,"channelId"),f=-1!==d?s[d]:void 0,h=!0;if(f){if(s.removeAt(d),Ember.set(f,"conversationId",i),p&&p.length)for(var m=0,g=p.length;m=0;m--)if(i=(n=t.objectAt(m))&&n.get("messageUserType"),r=n&&n.get("createdMillis"),i){if(!(r>f))break;h+=1}return h}}),yet2BRead:Ember.computed("totalUnreadCount",{get:function(){return this.totalUnreadCount>0}}),displayUnreadCount:Ember.computed("intl","totalUnreadCount",{get:function(){var e=this.totalUnreadCount;return e>9?this.intl.t("common.numbers.nine")+"+":e}}),init_localds:function(){var e=this;return new Ember.RSVP.Promise((function(t,n){var i=e.get("localds"),r=e.get("session"),o=e.get("hotline.ui"),a=e.get("dsName");e.get("dsBrowserSupport")?i?t():(i=e.store.createRecord(a,{appId:r.appId,conversations:Ember.A([]),dsFaq:e.store.createRecord("dsFaq",{categories:Ember.A([]),lastModifiedAt:0}),userBehaviour:e.get("store").createRecord("userBehaviour",{visitsCount:0,viewsCount:0,lastLocationMillis:0,firstLocationMillis:0,locations:Ember.A([]),eventConditions:Ember.A([]),events:Ember.A([]),executedRules:Ember.A([]),hasLocationRule:!1,locationRuleFetchMillis:0,userGeolocation:{}}),alias:e.getUUID(),seq:{id:0,millis:void 0},conversationPropertiesMeta:r.conversationPropertiesMeta})).save().then((function(n){e.set("records",n),t()}),(function(e){n(e)})):(o.localds||Ember.set(o,"localds",e.store.createRecord(a,{appId:r.appId,conversations:Ember.A([]),messageAfter:void 0,dsFaq:e.get("store").createRecord("dsFaq",{dsCategories:Ember.A([]),contentLocale:null,lastModifiedAt:null}),userBehaviour:e.get("store").createRecord("userBehaviour",{visitsCount:0,viewsCount:0,firstLocationMillis:0,lastLocationMillis:0,locations:Ember.A([]),eventConditions:Ember.A([]),events:Ember.A([]),executedRules:Ember.A([]),hasLocationRule:!1,locationRuleFetchMillis:0,userGeolocation:{}}),alias:e.getUUID(),seq:{id:0,millis:void 0},conversationPropertiesMeta:r.conversationPropertiesMeta})),t())}))},doesConversationHaveOnlyGeneratedMessages:function(){var e=this,t=this.conversations,n=!0;return t&&t.forEach(function(t){var i=this;(0,r.Z)(this,e);var o=t.get("messages");o&&(o.filter(function(e){return(0,r.Z)(this,i),e.get("autoRuleId")||e.get("offlineMessage")||e.get("flowId")}.bind(this)).get("length")!==o.get("length")&&(n=!1))}.bind(this)),n},resetDsFaq:function(){this.isFAQAvailable&&this.store.unloadAll("dsFaq")},actions:{reset:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.localds,o=this.conversations;(r.get("alias")&&!i||r.set("userBehaviour",this.store.createRecord("userBehaviour",{visitsCount:0,viewsCount:0,firstLocationMillis:0,lastLocationMillis:0,locations:Ember.A([]),eventConditions:Ember.A([]),events:Ember.A([]),executedRules:Ember.A([]),hasLocationRule:!1,locationRuleFetchMillis:0,userGeolocation:{}})),o)?(!this.doesConversationHaveOnlyGeneratedMessages()||null!==(t=this.session)&&void 0!==t&&t.shouldClearConvsAndProps)&&(o.clear(),r&&r.set("properties",null),this.set("session.shouldClearConvsAndProps",!1)):r.set("conversations",Ember.A([]));r.set("messageAfter",void 0),r.set("seq",{id:0,millis:void 0}),r.set("conversationPropertiesMeta",null===(e=this.session)||void 0===e?void 0:e.conversationPropertiesMeta),n?n.send("save"):this.send("save")},save:function(){var e,t,n,i,o,a,s=this,l=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],u=this.localds,d=null===(e=this.hotline)||void 0===e||null===(t=e.ui)||void 0===t?void 0:t.collate,f=function(){(0,r.Z)(this,s);var e=this.localds,t=this.session,n=e&&e.get("messageAfter");this.isDestroyed&&this.isDestroying||Ember.set(t,"didMessage",n)}.bind(this);if(l)if(d){if(null===(n=this.hotline)||void 0===n||null===(i=n.ui)||void 0===i||!i.collate.queued()){var h,p,m,g;if(null===(h=this.hotline)||void 0===h||null===(p=h.ui)||void 0===p||!p.collate.delay())null===(m=this.hotline)||void 0===m||null===(g=m.ui)||void 0===g||g.collate.initialize(f,100,this)}}else this.set("hotline.ui.collate",c.create()),null===(o=this.hotline)||void 0===o||null===(a=o.ui)||void 0===a||a.collate.initialize(f,100,this);this.dsBrowserSupport&&u.save().then(function(){(0,r.Z)(this,s)}.bind(this),function(){var e=this;(0,r.Z)(this,s),this.isLFDS?window.localforage.clear(function(){var t;(0,r.Z)(this,e),null===(t=this.parentView)||void 0===t||t.send("reloadWidget")}.bind(this)):this.isLSDS}.bind(this))},goToAllTopicsRoute:function(e){var t=this.displayChannels,n=t&&t.length;if(n&&1===n){if(e){var i=Ember.getOwner(this).lookup("route:".concat(this.router.currentRouteName));!Ember.testing&&i.refresh()}this.router.replaceWith("home.channel",t[0].channelId)}else this.router.replaceWith("home.all-topics")},goToHelpWidgetRoute:function(){this.router.replaceWith("home.help-widget")}}})},31335:function(e,t,n){"use strict";n.r(t);var i=n(64076),r=n(92759),o=n(45652),a=n(59565),s=n(198),l=n(40230),u=n.n(l),c=n(50486),d=n(92423);t.default=Ember.Mixin.create({locale:Ember.inject.service(),brand:Ember.inject.service("brand-check"),postMessage:Ember.inject.service("post-message"),userLocale:Ember.computed({get:function(){return this.locale.currentLocale()}}),isKbaseEnabled:Ember.computed.alias("session.isKbaseEnabled"),isIPhone:Ember.computed.readOnly("hotline.ui.isIPhone"),get hidePoweredBy(){return this.brand.hidePoweredBy},fetchFaqData:function(){var e=this,t=Ember.get(this,"localds?.dsFaq?.lastModifiedAt"),n=Ember.get(this,"localds?.dsFaq?.contentLocale");t&&this.set("hotline.ui.lastModifiedFaqsAt",t),n&&this.set("hotline.ui.lastLocaleId",n.localeId);var r=(new Date).getTime().toString();return this.store.findRecord("faq",r,{reload:!0}).then((function(e){return e}),function(t){return(0,i.Z)(this,e),t}.bind(this))},buildFaqDataObject:function(e){var t=e&&e.get("status");if(t)switch(t){case 304:this.cachedDataObject(e);break;case 204:this.emptyDataObject(e);break;default:this.regularDataObject(e)}return e},regularDataObject:function(e){var t=this,n=e&&e.categories,r=this.localds,o=Ember.A([]);n.forEach(function(e){var n=this;(0,i.Z)(this,t);var r=e.serialize(),a=e.get("articles"),s=Ember.A([]);a.forEach(function(e){(0,i.Z)(this,n);var t=this.store.createRecord("dsArticle",e.serialize());s.pushObject(t)}.bind(this)),r.dsArticles=s,o.pushObject(this.store.createRecord("dsCategory",r))}.bind(this)),Ember.set(r,"dsFaq",this.store.createRecord("dsFaq",{dsCategories:o,contentLocale:e.contentLocale,lastModifiedAt:e.lastModifiedAt})),this.send("save",!1)},cachedDataObject:function(e){var t,n=this,r=null===(t=this.localds)||void 0===t?void 0:t.dsFaq,o=r&&r.content.serialize(),a=o.dsCategories,s=[];a.forEach(function(e){var t=this;(0,i.Z)(this,n);var r=e,o=e.dsArticles,a=[];o.forEach(function(e){(0,i.Z)(this,t);var n=e;n.id=void 0,a.push(this.store.createRecord("article",n))}.bind(this)),r.articles=a,r.id=void 0,s.push(this.store.createRecord("category",r))}.bind(this)),Ember.set(e,"categories",s),Ember.set(e,"contentLocale",o.contentLocale),Ember.set(e,"lastModifiedAt",o.lastModifiedAt)},emptyDataObject:function(e){Ember.set(e,"categories",[]),Ember.set(e,"contentLocale",null),Ember.set(e,"lastModifiedAt",null),Ember.set(e,"category",void 0)},filterFAQCategories:function(e,t){var n=this;if(e){var o,a,s,l,u,c,d,f=(null===(o=this.session)||void 0===o?void 0:o.isMultiWidget)&&(null===(a=this.hotline.ui)||void 0===a||null===(s=a.config)||void 0===s?void 0:s.contentConfig),h=[];if(f)null===(l=this.hotline.ui)||void 0===l||null===(u=l.config)||void 0===u||null===(c=u.contentConfig)||void 0===c||null===(d=c.categories)||void 0===d||d.forEach(function(t){var r=this;(0,i.Z)(this,n);var o=e.find(function(e){return(0,i.Z)(this,r),e.categoryId===t}.bind(this));o&&o.enabled&&h.pushObject(o)}.bind(this)),e=[].concat(h);return t&&("category"===t.filterType?e=e.filter(function(e){return(0,i.Z)(this,n),(0,r.subsetOfArray)(e.tags,t.tags)}.bind(this)):"article"===t.filterType&&(e=e.filter(function(e){var o=this;(0,i.Z)(this,n);var a=e.articles||e.dsArticles;return!!a&&a.filter(function(e){return(0,i.Z)(this,o),(0,r.subsetOfArray)(e.tags,t.tags)}.bind(this)).length>0}.bind(this)))),f?e:e.sortBy("position")}return[]},bindEvents:function(){(0,a.bindEvent)(this.element.querySelector(".scroll-section"),"scroll",this.scrollCallback)},unbindEvents:function(){(0,a.unbindEvent)(this.element.querySelector(".scroll-section"),"scroll",this.scrollCallback)},scrollCallback:Ember.computed({get:function(){return this.onScroll.bind(this)}}),onScroll:function(e){var t,n;if(null===(t=this.hotline)||void 0===t||null===(n=t.ui)||void 0===n||!n.isDesktop){var i=this.element.querySelector(".search-input-text");i&&i.blur()}var r=e&&e.target;(r&&r.scrollTop<=0?(0,a.addCSSInline)(this.element.querySelector(".shadow"),"box-shadow","none"):(0,a.addCSSInline)(this.element.querySelector(".shadow"),"box-shadow","0 2px 4px 0 rgba(156, 156, 156, .2)"),this.gradientDisplay(r),this.isKbaseEnabled&&r)&&((r.clientHeight+r.scrollTop)/r.scrollHeight>=.99&&!this.isLoadingOnScrollEnd&&!this.retryAfter&&this.fetchDataOnScroll())},gradientDisplay:function(e){e&&(e.scrollHeight-e.scrollTop-e.clientHeight<=0?(0,a.addCSSInline)(this.element.querySelector(".bottom-gradient"),"visibility","hidden"):(0,a.addCSSInline)(this.element.querySelector(".bottom-gradient"),"visibility","visible"))},setHeightForArticleHead:function(){var e=this;setTimeout(function(){(0,i.Z)(this,e);var t=document.getElementsByClassName("article-heading"),n=document.getElementsByClassName("list-section")[0];Ember.isBlank(t)||(t[0].style.height=t[0].offsetHeight+"px",n&&(n.style.height="calc(100% - "+t[0].offsetHeight+"px)"))}.bind(this),o.default.TRANSITION_DELAYS)},searchPH:Ember.computed("intl","session.config.content.placeholders.search_field",{get:function(){var e,t,n,i;return(null===(e=this.session)||void 0===e||null===(t=e.config)||void 0===t||null===(n=t.content)||void 0===n||null===(i=n.placeholders)||void 0===i?void 0:i.search_field)||this.intl.t("conversation.chat_headers.search_answer")}}),faqErrorMessage:Ember.computed("intl","modalCategoryTitle","query","session.config.content.headers.faq_search_not_available",{get:function(){var e,t,n,i,r=(this.query?u()(this.query):u()(this.modalCategoryTitle))||"",o=null===(e=this.session)||void 0===e||null===(t=e.config)||void 0===t||null===(n=t.content)||void 0===n||null===(i=n.headers)||void 0===i?void 0:i.faq_search_not_available,a=o?o.replace("{{query}}",r).replace("{!query!}",r):this.intl.t("faqs.no_search_results",{query:r});return Ember.String.htmlSafe(a)}}),isFaqPopupView:Ember.computed("session.config.faqPopupView",{get:function(){var e,t;return(null===(e=this.session)||void 0===e||null===(t=e.config)||void 0===t?void 0:t.faqPopupView)||!1}}),FAQ_CONTENT:Ember.computed({get:function(){return o.default.FAQ_CONTENT}}),logoUrl:Ember.computed("hotline.ui.config.{widgetLogoUrl,appearanceConfig.brandLogoURL}","session.isMultiWidget",{get:function(){var e,t,n,i,r,o,a,s;this.session.isMultiWidget?e=null===(t=this.hotline)||void 0===t||null===(n=t.ui)||void 0===n||null===(i=n.config)||void 0===i||null===(r=i.appearanceConfig)||void 0===r?void 0:r.brandLogoURL:e=null===(o=this.hotline)||void 0===o||null===(a=o.ui)||void 0===a||null===(s=a.config)||void 0===s?void 0:s.widgetLogoUrl;return e||d.Z}}),headerClass:Ember.computed("hotline.ui.modal","currentCategory","shouldShowArticlesNotByCategory",{get:function(){return this.hotline&&this.hotline.ui&&this.hotline.ui.modal?"article-view-header":this.currentCategory&&!this.shouldShowArticlesNotByCategory?"article-list-header":"category-list-header shadow"}}),bodyClass:Ember.computed("hotline.ui.modal","currentCategory","query","hidePoweredBy","isFAQAvailable","shouldShowArticlesNotByCategory",{get:function(){var e="";return this.hotline.ui.modal?e="article-view-section":(this.currentCategory||this.query)&&(e="article-lists-section"),this.hidePoweredBy&&(e="".concat(e," no-footer")),this.shouldShowArticlesNotByCategory&&(e="".concat(e," on-search")),this.isFAQAvailable||(e="".concat(e," no-articles")),e}}),shouldShowArticlesNotByCategory:Ember.computed("query","currentCategory","hotline.ui.modal","isKbaseEnabled",{get:function(){var e,t,n,i;return!(!this.isKbaseEnabled||!this.query||null!==(e=this.hotline)&&void 0!==e&&null!==(t=e.ui)&&void 0!==t&&t.modal)||this.query&&!this.currentCategory&&!(null!==(n=this.hotline)&&void 0!==n&&null!==(i=n.ui)&&void 0!==i&&i.modal)}}),displayType:Ember.computed("currentCategory","hotline.ui.modal","categories.[]","query","articles",{get:function(){var e,t,n=this.FAQ_CONTENT,i=this.currentCategory||this.query;return null!==(e=this.hotline)&&void 0!==e&&null!==(t=e.ui)&&void 0!==t&&t.modal?n.ARTICLE:Ember.isPresent(this.articles)&&i?n.ARTICLES:Ember.isPresent(this.categories)&&!i?n.CATEGORIES:null}}),isCategoryArticlesCached:function(e){return this.store.peekRecord("category",e).get("articles").length>0},expandModal:function(){var e;(0,a.addClass)(document.querySelector("html"),"expanded-modal"),Ember.set(null===(e=this.hotline)||void 0===e?void 0:e.ui,"modalOpen",!0),this.postMessage.post({action:"expand_all"})},getKbaseCategories:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,c.getfdLocaleId)(this.userLocale),n=e?1:this.categoryNextPage;return this.store.queryRecord("kbaseCategoryResponse",{locale:t,page:n})},getKbaseArticles:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,c.getfdLocaleId)(this.userLocale),i=t?1:this.articleNextPage;return this.store.queryRecord("kbaseArticleResponse",{locale:n,page:i,categoryId:e})},handleCategoryArticlesResponse:function(e){if(e&&e.categoryId){var t=this.store.peekRecord("category",e.categoryId);t.get("articles").pushObjects(e.articles),Ember.set(t,"categoryArticlesNextPage",e.nextPage)}},goToCategoryListPage:function(){this.set("currentCategoryId",null),(this.isCategoryArticlesView||!this.displayType&&!this.isCategoryArticlesView)&&this.router.replaceWith("/home")},actions:{toggleSearch:function(e){e?Ember.set(this,"openSearch",e):Ember.setProperties(this,{query:void 0,openSearch:e}),s.default.moveFocusTo(".search-input-text")},goBack:function(){var e=this.displayType,t=this.FAQ_CONTENT;if(this.isKbaseEnabled&&this.resetRateLimitError(),this.query&&e!==t.ARTICLE)this.set("query","");else if(e===t.ARTICLES)this.goToCategoryListPage();else if(e===t.ARTICLE){var n,i=this.channelId,r=this.conversationId;i&&this.router.replaceWith("home.channel",i,{queryParams:{conversationId:r}}),Ember.set(null===(n=this.hotline)||void 0===n?void 0:n.ui,"modal",null)}else e||this.goToCategoryListPage();var o=document.querySelector("html");((0,a.hasClass)(o,"expanded-article-view")||(0,a.hasClass)(o,"collapsed-article-view"))&&((0,a.removeClass)(o,"expanded-article-view"),(0,a.removeClass)(o,"collapsed-article-view"),this.postMessage.post({action:"collapse_all_article_view"})),this.setHeightForArticleHead(),s.default.moveFocusTo(".search-input-text")},gotoHome:function(){this.router.replaceWith("home")},setHeight:function(){this.query||this.setHeightForArticleHead()}}})},92003:function(e,t,n){"use strict";n.r(t);var i=n(64076),r=n(45652),o=n(48220);t.default=Ember.Mixin.create(o.default,{postMessage:Ember.inject.service("post-message"),assertThatAllAttachmentsHaveBeenUploaded:function(e){if(e&&e.messageFragments&&e.messageFragments.length){for(var t=e.messageFragments.length-1;t>=0;t--){if(e.messageFragments[t].fragmentType===r.default.CONVERSATION.FRAGMENT_TYPE.IMAGE&&!e.messageFragments[t].height)return!1;if(e.messageFragments[t].fragmentType===r.default.CONVERSATION.FRAGMENT_TYPE.FILE&&!e.messageFragments[t].fileHash)return!1}return!0}this.logger.log("Error while validating attachments for message: ",e)},updateMessageFragmentsAfterFileUpload:function(e,t){if(e&&e.messageFragments&&e.messageFragments.length&&t)for(var n=e.messageFragments.length-1;n>=0;n--)e.messageFragments[n].fragmentType===r.default.CONVERSATION.FRAGMENT_TYPE.IMAGE?Ember.setProperties(e.messageFragments[n],t.image):e.messageFragments[n].fragmentType===r.default.CONVERSATION.FRAGMENT_TYPE.FILE&&t.file&&e.messageFragments[n].fileAlias===t.name&&Ember.setProperties(e.messageFragments[n],t.file);else this.logger.log("Error while updating attachments for message: ",e);return e},getTextFromEditorForClosedOrOpenWidgetState:function(){var e=document.getElementById(r.default.DOM_ID.appReplyEditor),t=document.getElementById(r.default.DOM_ID.appReplyComposerEditor),n=document.getElementById(r.default.DOM_ID.appConversationEditor);return e&&e.innerText.length>0?e.innerText.trim():t&&t.innerText.length>0?t.innerText.trim():n&&n.innerText.length>0?n.innerText.trim():void 0},uploadTextAndGetFileHash:function(e,t,n){var o=this;e=this.maskText(e);var a=new Blob([e],{type:"text/plain"});a.lastModifiedDate=new Date,this.uploadFile({file:a,fileType:r.default.FILETYPE.FILE,fileName:n,fileAlias:n},function(e,n){(0,i.Z)(this,o),e?(this.set("pendingUploadTextFileObject",null),t=this.updateMessageFragmentsAfterFileUpload(t,n),this.assertThatAllAttachmentsHaveBeenUploaded(t)&&(t=this.postMessage.updateNotAuthenticatedMessage(t),this.postMessageAPI(t))):(this.logger.log("Error while uploading file: ",n),this.set("pendingUploadTextFileObject",null),this.updateMessageStatusUsingHopId({messageHopId:t.msgHopId,messageChannelId:t.channelId},r.default.MESSAGE_STATUS.NOT_UPLOADED))}.bind(this))},getTextFilePreviewFragment:function(e){e=this.maskText(e);var t="fc_message_"+(new Date).getTime()+".txt";return{fileContentType:"text/plain",fileName:t,fileAlias:t,fileSize:2*e.length,filePreview:{content:e.substring(0,800)},fileExtension:"txt",fragmentType:r.default.CONVERSATION.FRAGMENT_TYPE.FILE}},hideFileUpload:Ember.computed("session.{config.hideFileUpload,isMultiWidget}","hotline.ui.config.advancedOptionsConfig.enableAttachFile",{get:function(){var e,t,n,i,r;return(null===(e=this.session)||void 0===e||null===(t=e.config)||void 0===t?void 0:t.hideFileUpload)||(null===(n=this.session)||void 0===n?void 0:n.isMultiWidget)&&!(null!==(i=this.hotline.ui.config)&&void 0!==i&&null!==(r=i.advancedOptionsConfig)&&void 0!==r&&r.enableAttachFile)}}),disableHugeMessageSending:Ember.computed("isTextLimitExceeded","hideFileUpload","uploadFilesEnabled",{get:function(){return this.isTextLimitExceeded&&(this.hideFileUpload||!this.uploadFilesEnabled)}}),uploadFilesEnabled:Ember.computed("hotline.ui.config.enabledFeatures",{get:function(){var e,t=null===(e=this.hotline)||void 0===e?void 0:e.ui,n=t&&t.config;return-1!==(n&&n.enabledFeatures||[]).indexOf("APP_FILE_UPLOAD")}})})},18640:function(e,t,n){"use strict";n.r(t);var i=n(64076),r=n(82557),o=n(45652),a=n(54399),s=n(49603);t.default=Ember.Mixin.create(r.default,{ruleEngine:Ember.inject.service(),localStorage:Ember.inject.service(),commandHelper:Ember.computed({get:function(){return s.Z.create({scope:this})}}),isValidContact:function(){var e,t;return this.hotlineUI.isBERuleEngineWorking&&(null===(e=this.session)||void 0===e||null===(t=e.user)||void 0===t?void 0:t.alias)||this.localStorage.getItemLS("isUserCreateSent")},updateEvent:function(e,t,n){var r=this;if(this.cache.findBy("post_message","rules_loaded")){var o,s=this.localds.get("userBehaviour"),l=s&&s.get("firstLocationMillis")||0,u=s&&s.get("events"),c=Ember.A([]);for(var d in n=n||(new Date).getTime(),this.reportEvent(e,t),t)t.hasOwnProperty(d)&&c.pushObject(this.store.createRecord("eventProperty",{key:d,value:t[d]}));o=this.store.createRecord("event",{createdMillis:n,name:e,eventProperties:c}),u.pushObject(o);var f=a.Z.create({scope:this}).update(o);this.send("save",!1),this.isValidContact()?this.ruleEngine.processContactRules(e,f).then(function(e){(0,i.Z)(this,r),this.commandHelper.execute(e),n&&(l||s.set("firstLocationMillis",n),s.set("lastLocationMillis",n),this.send("save",!1))}.bind(this)):this.ruleEngine.processRules(e,f).then(function(e){(0,i.Z)(this,r),this.commandHelper.execute(e),n&&(l||s.set("firstLocationMillis",n),s.set("lastLocationMillis",n),this.send("save",!1))}.bind(this))}else this.cache.encache("track_events",{eventName:e,eventProperties:t})},reportEvent:function(e,t){var n,r,a,s,l,u,c,d=this;if((null===(n=this.session)||void 0===n||null===(r=n.config)||void 0===r||!r.disableEvents)&&("fc_page"!==e||null===(a=this.session)||void 0===a||null===(s=a.config)||void 0===s||!s.disablePageTransition||t.force)){var f=null===(l=this.session)||void 0===l?void 0:l.user,h=null===(u=this.session)||void 0===u?void 0:u.token,p=null===(c=this.session)||void 0===c?void 0:c.siteId,m={eventName:e,properties:t};if(f&&f.id)if(navigator.sendBeacon&&"function"==typeof navigator.sendBeacon)this.batch.enter({type:o.default.Batch.transactions.types.events,payload:m}).then(function(){(0,i.Z)(this,d),this.logger.log("Event Recorded")}.bind(this),function(e){(0,i.Z)(this,d),this.logger.log(e.message)}.bind(this));else{var g=o.default.EmberModelUrl.newEvent.url.replace("{token}",h).replace("{userAlias}",f&&f.alias);p&&(g+="?siteId=".concat(p)),this.axios.makeRequest({method:"POST",url:g,data:m,cache:!1,contentType:"application/json; charset=UTF-8"}).then((function(){}))}}},reportVisit:function(){var e,t,n,r=this,a=null===(e=this.session)||void 0===e?void 0:e.user,s=o.default.EmberModelUrl.newSession.url.replace("{token}",null===(t=this.session)||void 0===t?void 0:t.token),l=null===(n=this.session)||void 0===n?void 0:n.siteId,u=(new Date).getTime(),c=this.localds,d=c&&c.get("userBehaviour"),f=d&&d.get("executedRules"),h=d&&d.get("lastLocationMillis")||0,p=d&&d.get("visitsCount")||0,m=d&&d.get("viewsCount")||0;u-h>18e5?(f&&f.forEach(function(e){(0,i.Z)(this,r),e.set("sentCountSession",0)}.bind(this)),Ember.setProperties(d,{viewsCount:1,visitsCount:p+1}),this.send("save",!1),l&&(s+="?siteId=".concat(l)),a&&a.id&&this.axios.makeRequest({method:"POST",url:s,cache:!1,contentType:"application/json; charset=UTF-8"}).then((function(){}))):Ember.setProperties(d,{viewsCount:m+1})}})},6937:function(e,t,n){"use strict";n.r(t);var i=n(64076),r=n(45652),o=n(92759),a=n(17912);t.default=Ember.Mixin.create(a.default,{postMessage:Ember.inject.service("post-message"),user:Ember.inject.service(),isJWTStrictMode:Ember.computed({get:function(){return this.jwt.isJWTStrictMode()}}),isJWTEnabled:function(){return this.jwt.isEnabled&&this.jwt.auth.app},getJWTMeta:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=t||(null===(e=this.session)||void 0===e?void 0:e.jwtAuthToken),i=n&&n.split(".");return i&&3===i.length?(0,o.safelyParseJSON)(atob(i[1])):null},buildJWTResponse:function(e){this.send("userStateChange",{success:e.success,status:e.status,userState:e.success?r.default.UserState.AUTHENTICATED:r.default.UserState.NOT_AUTHENTICATED}),this.postMessage.post(e)},processJWTResponse:function(e){var t=e.success;this.jwt.auth.app?this.jwt.authenticateUser(t):this.jwt.authenticateApp(t),e.callback&&"function"==typeof e.callback&&e.callback({action:"frame_state_change",success:t,status:e.status,data:{frameState:t?r.default.FrameState.AUTHENTICATED:r.default.FrameState.NOT_AUTHENTICATED}}),this.buildJWTResponse({action:"user_authenticated",success:t,status:e.status,resp:e.resp})},isJwtExpired:function(){var e=this.getJWTMeta(),t=(new Date).getTime()/1e3;return e&&e.exp1&&void 0!==arguments[1]?arguments[1]:null,a=r.default.EmberModelUrl,s=a.verifyJWT,l=this.session,u=l&&l.siteId,c=s.url.replace("{token}",null===(t=this.session)||void 0===t?void 0:t.token),d=!0,f=200;u&&(e.siteId=u),this.jwt.validateJWT({url:c,payload:e}).then(function(t){if((0,i.Z)(this,n),t.validToken){var r=e&&e.jwtAuthToken&&this.getJWTMeta(e.jwtAuthToken),a=r&&r.freshchat_uuid;if(Ember.set(l,"externalId",r&&r.reference_id||void 0),this.jwt.isStrict&&(!this.jwt.auth.app||!this.jwt.auth.user)){var s=this.localds;!t.userAliasExists||l.user.alias&&l.user.alias===a?s&&a&&(this.validateAndResetUUID(a)?Ember.set(s,"alias",null):Ember.set(s,"alias",a),this.send("save",!1)):(s&&(this.validateAndResetUUID(a),Ember.set(s,"alias",null),this.send("save",!1)),f=304,d=!1)}}else d=!1,f=400;d?Ember.set(l,"jwtAuthToken",e.jwtAuthToken):Ember.set(l,"jwtAuthToken",null),this.processJWTResponse({callback:o,success:d,status:f,resp:t})}.bind(this),function(t){(0,i.Z)(this,n),d=t&&t.success||!1,429!==(f=t&&t.status||400)&&Ember.set(l,"jwtAuthToken",e.jwtAuthToken),this.processJWTResponse({callback:o,success:d,status:f,resp:t})}.bind(this))}}})},48220:function(e,t,n){"use strict";n.r(t);var i=n(94035);t.default=Ember.Mixin.create({maskText:function(e){var t,n,i,r,o,a,s,l;if(null==e||""===e)return this.logger.log("Error while masking text. Text is null."),null;var u=null===(t=this.hotline)||void 0===t||null===(n=t.ui)||void 0===n?void 0:n.backendMaskConfigData,c=null!==(i=this.session)&&void 0!==i&&null!==(r=i.config)&&void 0!==r&&r.mask_text&&(null===(o=this.session)||void 0===o||null===(a=o.config)||void 0===a?void 0:a.mask_text)instanceof Array?null===(s=this.session)||void 0===s||null===(l=s.config)||void 0===l?void 0:l.mask_text:[];return u&&u.length>0?this.doMaskingUsingBackendConfig(e,u):c&&c.length>0?this.doMaskingUsingFrontendConfig(e,c):e},maskTextForFragments:function(e){for(var t=e&&e.length,n=0;n0&&void 0!==arguments[0]?arguments[0]:{};return e&&e.constructor===Object},isObjectEmpty:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!!this.isObject(e)&&0===Object.keys(e).length},getUserPropertiesDiff:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.isObjectEmpty(e),i={};if(!n)for(var r in e){var o=e[r];if(!this.isObject(o)&&e.hasOwnProperty(r)&&Ember.isPresent(o)){var a=String(o).trim(),s=a&&a!==("function"==typeof t.get?t.get(r):t[r]);s&&(i[r]=o)}}return i},getUpdatedUserProperties:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.localds,n=this.getUserPropertiesDiff(e,this.session.user),i=this.getUserPropertiesDiff(e.meta,t.get("meta"));return this.isObjectEmpty(i)||(n.meta=i),n},resetTokenAlias:function(){this.user.resetTokenAlias(),this.localds.set("wcfcToken",void 0)},updateTokenAlias:function(e){var t=e&&e.token,n=e&&e.alias;this.user.updateTokenAlias(e),this.localds.set("wcfcToken",t),this.localds.set("alias",n)},actions:{isUserCreated:function(e){var t=this.isUserAvailable();e&&e(!0,200,t)},loadUser:function(){var e=this,t=this.session,n=t&&t.user,i=n&&n.alias,r=n&&n.identifier,s=n&&n.restoreId,l=n&&n.errors,u=l&&l.length?l[0]:l,c=t&&t.externalId,d=t&&t.restoreId,f=t&&t.jwtAuthToken,h=this.localds,p=this.jwt.isEnabled&&f&&this.jwt.auth.app,m=p&&c&&(1===n.errorCode||2===n.errorCode),g=p&&r&&n.alias;if(c&&d||g||m)if(r===c&&s===d||g)h.set("externalId",c),this.send("save",!1),this.send("trackActivity",i),this.send("userStateChange",{userState:a.default.UserState.LOADED}),this.isJWTEnabled()&&this.jwt.authenticateUser(!0),this.send("updateProperties",n);else{var v=this.localStorage.getItemLS("wcfcAlias",t.token);this.localStorage.getItemLS("wcfcMigrated",t.token)&&i&&v===i&&this.localStorage.setItemLS("wcfcMigrated",!1,t.token),Ember.set(t,"user",{}),h.set("externalId",void 0),h.set("properties",void 0),h.set("alias",void 0),h.set("meta",void 0);var b=a.default.EmberModelUrl,y=t&&t.siteId,E=t&&t.token,Z=b.reset,w=Z.url.replace("{token}",E);y&&(w+="?siteId=".concat(y)),this.resetTokenAlias();var T=function(){(0,o.Z)(this,e),this.send("reset"),this.subscription.clearSubscription(),this.send("locateUser")}.bind(this);this.store.postRequest(Z.model,w).then(T,T)}else c?u?this.send("handleUserError",u):i&&this.send("identifyUser",{externalId:c,jwtAuthToken:f},function(t,n,r){(0,o.Z)(this,e),this.postMessage.post({action:"user_created",success:t,status:n,data:r}),!1===t&&403===n&&this.isJWTStrictMode?this.send("userStateChange",{userState:a.default.UserState.NOT_LOADED,success:!1,status:404}):this.send("trackActivity",i)}.bind(this)):u?this.send("handleUserError",u):(this.send("userStateChange",{userState:a.default.UserState.LOADED}),this.isJWTEnabled()&&this.jwt.authenticateUser(!0),this.send("handleUserSuccess",n))},locateUser:function(){var e=this,t=this.session,n=t&&t.token,i=t&&t.siteId,r=t&&t.externalId,s=t&&t.restoreId,l=t&&t.jwtAuthToken,u=a.default.EmberModelUrl,c=u.user,d=u.renewJWT,f=c.url.replace("{token}",n),h="".concat(f,"/").concat(btoa(r),"/restore/").concat(s),p=d.url.replace("{token}",n),m=!0;i&&(h+="?siteId=".concat(i),p+="?siteId=".concat(i));var g=function(t){var n,i;((0,o.Z)(this,e),this.subscription.clearSubscription(),t&&!t.errorCode)?(this.send("userStateChange",{userState:a.default.UserState.RESTORED}),this.isJWTEnabled()&&this.jwt.authenticateUser(!0),null!==(n=this.hotlineUI)&&void 0!==n&&null!==(i=n.config)&&void 0!==i&&i.sales360App&&this.postMessage.post({action:"restore_user_cookie",alias:t.alias}),this.send("handleUserSuccess",t)):(t.updateUserStateChange=m,this.resetTokenAlias(),this.send("handleUserError",t))}.bind(this),v=function(t){(0,o.Z)(this,e),t.updateUserStateChange=m,this.resetTokenAlias(),this.send("handleUserError",t)}.bind(this);if(this.jwt.isEnabled&&l){var b={jwtAuthToken:l};m=!1,this.store.postRequest(d.model,p,b).then(g,v)}else this.store.getRequest(c.model,h).then(g,v)},trackActivity:function(){var e,t,n=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=null===(e=this.session)||void 0===e?void 0:e.token,s=this.localStorage.getItemLS("lastActivitySent"),l=s&&new Date(s),u=new Date;l&&l.getDate()===u.getDate()&&l.getMonth()===u.getMonth()&&l.getYear()===u.getYear()||this.axios.makeRequest({method:"PUT",url:a.default.EmberModelUrl.trackActivity.url.replace("{token}",r).replace("{userAlias}",i||(null===(t=this.localds)||void 0===t?void 0:t.alias))}).then(function(e){(0,o.Z)(this,n),e.data&&e.errorCode||this.localStorage.setItemLS("lastActivitySent",new Date)}.bind(this));this.session.userCreated||this.send("loadHomeView")},handleUserSuccess:function(e){if(e){var t,n=e.identifier,i=e.restoreId,r=e.alias,o=this.session,a=null===(t=this.localds)||void 0===t?void 0:t.messageAfter;this.postMessage.post({action:"user_created",success:!0,status:200,data:n?{externalId:n,restoreId:i}:null});var s=e.nameGenerated?void 0:e.firstName,l=e.nameGenerated?void 0:e.lastName,u=s?l?"".concat(s," ").concat(l).trim():s.trim():"Unknown";if(e.name=u,Ember.set(o,"user",e),o.token&&r){var c={token:e.wcfcToken||o&&o.wcfcToken,alias:r};this.updateTokenAlias(c)}this.send("updateProperties",e),a?Ember.set(o,"didMessage",a):Ember.set(o,"didMessage",0),this.send("trackActivity",r)}},handleUserError:function(e){var t=e&&e.errors,n=t&&t.length?t[0]:t,i=e&&e.errorCode||n&&n.errorCode,r=e&&e.status||n&&n.status,o=void 0===e.updateUserStateChange||e.updateUserStateChange,s=this.isJWTEnabled()&&"404"===r&&!o;if("502"===r&&this.router.replaceWith("503"),"401"===r||"404"===r||"412"===r||"428"===r||1===i||2===i||11===i){if(this.send("reset"),this.subscription.clearSubscription(),o){var l,u=null===(l=this.session)||void 0===l?void 0:l.jwtAuthToken,c=u&&this.getJWTMeta(u),d=c&&c.freshchat_uuid;if(this.validateAndResetUUID(d)){var f=this.localds;f&&(Ember.set(f,"alias",null),this.send("save",!1))}this.send("userStateChange",{userState:a.default.UserState.NOT_LOADED,success:!1,status:404})}else s&&this.jwt.authenticateUser(!0);this.postMessage.post({action:"user_created",success:!1,status:parseInt(r,10)}),this.isJWTStrictMode&&!s||this.send("trackActivity")}},resetSession:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.session,r=i&&i.user,s=i&&i.token,l=i&&i.siteId,u=this.store,c=a.default.EmberModelUrl,d=c.reset;if(s)if(r&&r.alias){var f=d.url.replace("{token}",s);l&&(f+="?siteId=".concat(l)),this.resetTokenAlias(),this.jwt.isEnabled&&(Ember.set(i,"jwtAuthToken",void 0),Ember.set(i,"externalId",void 0)),Ember.set(this.session,"externalId",void 0),Ember.set(this.session,"restoreId",void 0),u.postRequest(d.model,f).then(function(){(0,o.Z)(this,t);var r=this.localds;r&&(r.set("externalId",void 0),r.set("properties",void 0),r.set("alias",void 0),r.set("meta",void 0),r.set("conversationPropertiesMeta",void 0),this.postMessage.post({action:"reset_user_cookie"}),this.send("reset",null,!0),Ember.set(i,"user",{}),n&&Ember.set(i,"prop",{})),this.reloadRoute(),e(!0,200)}.bind(this),function(){(0,o.Z)(this,t),e(!1,400)}.bind(this))}else e(!1,401);else e(!1,404)},createUser:function(e,t){var n=this,i=this.session,r=i&&i.token,u=i&&i.user,c=i&&i.siteId,d=e&&e.externalId||i&&i.externalId,h=e&&e.firstName,p=e&&e.lastName,m=e&&e.email,g=e&&e.phone,v=e&&e.flowId,b=e&&e.flowVersionId,y=e&&e.isTemplateBot,E=e&&e.previewMode,Z=e&&e.phoneCountry,w=e&&e.locale||(0,l.getNavigatorLanguage)(),T=e&&e.meta,S=this.getUserParams(),I=a.default.EmberModelUrl.user,A=i&&i.config&&i.config.pushToFreshSales,R={},C=function(i){var r,a,s,l;if((0,o.Z)(this,n),this.localStorage.setItemLS("isUserCreateSent",!1),null===(r=this.session)||void 0===r||null===(a=r.user)||void 0===a||!a.wcfcToken)if(304===i)if(null!==(s=this.hotlineUI)&&void 0!==s&&null!==(l=s.config)&&void 0!==l&&l.sales360App){var u=this.localds.get("alias");this.send("loadUserByAlias",u,t)}else this.restoreAlias()&&this.send("createUser",e,t);else 400!==i&&409!==i||t(!1,i)}.bind(this);if(v&&Ember.set(S.user,"flowId",v),b&&Ember.set(S.user,"flowVersionId",b),y&&Ember.set(S.user,"isTemplateBot",y),E&&Ember.set(S.user,"previewMode",E),d&&Ember.set(S.user,"identifier",d),h&&Ember.set(S.user,"firstName",h),p&&Ember.set(S.user,"lastName",p),m&&Ember.set(S.user,"email",m),g&&Ember.set(S.user,"phone",g),Z&&Ember.set(S.user,"phoneCountry",Z),w&&Ember.set(S.user,"locale",w),T&&Ember.set(S.user,"meta",T),S.user.meta?Ember.set(S.user.meta,"fc_user_timezone",f.default.guess()):Ember.set(S.user,"meta",{fc_user_timezone:f.default.guess()}),Ember.set(S.user,"totalSessions",1),r)if(u&&u.alias||this.localStorage.getItemLS("isUserCreateSent")||this.isUserAvailable())t(!1,403);else{var O,_,k,M;this.localStorage.setItemLS("isUserCreateSent",!0);var N=I.url.replace("{token}",r),P=null===(O=this.hotline)||void 0===O||null===(_=O.ui)||void 0===_?void 0:_.browser;c&&(S.user.meta?Ember.set(S.user.meta,"siteId",c):Ember.set(S.user,"meta",{siteId:c}),R.siteId=c),A&&(R.pushToFreshSales=!0),N=(0,s.addQueryParams)(N,R),null!==(k=this.session)&&void 0!==k&&null!==(M=k.config)&&void 0!==M&&M.isFCSDKWebView||Ember.set(S.user,"deviceWebMeta",{browser:P.name,browserVersion:P.versionx,device:P.os,os:"Web"}),this.axios.makeRequest({method:"POST",url:N,data:S,cache:!1,contentType:"application/json; charset=UTF-8"}).then(function(e){(0,o.Z)(this,n),this.localStorage.setItemLS("isUserCreateSent",!1);var i=e&&e.status;i>=200&&i<=299?(this.logger.log("User Created"),this.send("setSessionUser",e.data,t)):C(i)}.bind(this),function(e){(0,o.Z)(this,n),C(e&&e.status)}.bind(this))}else t(!1,404)},userIdentified:function(e){var t=e&&e.alias,n={alias:t,externalId:e&&e.identifier,restoreId:e&&e.restoreId};t?(this.postMessage.post({action:"user_created",success:!0,status:200,data:n}),this.send("toggleExternalId",e.identifier)):this.postMessage.post({action:"user_created",success:!1,status:400})},getUserUUID:function(e){var t=this.getUserUUID();t&&(this.localds.set("alias",t),this.send("save",!1),e(t))},generateUserUUID:function(e){e&&e(this.generateUserUUID())},userStateChange:function(e){var t=!0,n=200;void 0!==e.success&&(t=e.success,delete e.success),void 0!==e.status&&(n=e.status,delete e.status),this.postMessage.post({action:"user_state_change",status:n,success:t,data:e})},userCleared:function(){var e,t;null===(e=this.smartPolling)||void 0===e||e.clearSmartPoll(),null===(t=this.smartPolling)||void 0===t||t.clearMessageAfterMillis(),this.postMessage.post({action:"user_cleared"})},updateUser:function(e){var t,n,i=this,r=a.default.EmberModelUrl.updateUser,s=this.session,l=this.store,u=null===(t=this.hotline)||void 0===t||null===(n=t.ui)||void 0===n?void 0:n.browser,c=s&&s.user,d=s&&s.token,f=c&&c.alias,p=c&&c.id,m=!(!this.jwt.isEnabled||!e.jwtAuthToken),g={browser:u.name,browserVersion:u.versionx,device:u.os,os:"Web"},v={};if(this.jwt.isEnabled){if(e.user?(e.user.id=p,v=e):(v.jwtAuthToken=e.jwtAuthToken||s.jwtAuthToken,delete e.jwtAuthToken,v.user=e,v.user.id=p),v.user.deviceWebMeta=g,!v.jwtAuthToken)return void this.postMessage.post({action:"update_user_ack",status:401,success:!1});if(this.jwt.auth.scheduled&&m)return void this.postMessage.post({action:"update_user_ack",status:429,success:!1});m&&(this.jwt.authenticateToken(),this.jwt.auth.scheduled=!0)}else Ember.setProperties(e,{alias:f,id:p,deviceWebMeta:g}),v.user=e;l.putRequest(r.model,(0,h.default)({url:r.url,token:d,alias:f},this.session,this.isJWTEnabled()),v).then(function(e){(0,o.Z)(this,i);var t=e&&e.alias&&!e.errorCode?200:400,n=200===t;n?(m&&(v.jwtAuthToken&&Ember.set(this,"session.jwtAuthToken",v.jwtAuthToken),this.send("updateJWTAuthToken",v.jwtAuthToken)),this.send("updateProperties",e)):m&&this.send("updateJWTAuthToken"),this.postMessage.post({action:"update_user_ack",status:t,success:n})}.bind(this),function(){(0,o.Z)(this,i),m&&this.send("updateJWTAuthToken"),this.postMessage.post({action:"update_user_ack",status:400,success:!1})}.bind(this))},updateJWTAuthToken:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.jwt.auth.scheduled=!1,e?(Ember.set(this,"session.jwtAuthToken",e),Ember.set(this.jwt.auth,"expired",!1),this.jwt.authenticateUser(!0)):(Ember.set(this,"session.jwtAuthToken",null),Ember.set(this.auth,"expired",!0),this.jwt.authenticateUser(!1))},identifyUser:function(e,t){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.session,s=this.store,l=this.localds,u=r&&r.user,c=r&&r.token,d=u&&u.alias,f=u&&u.id,p=u&&u.identifier,m=e&&e.externalId,g=e&&e.restoreId,v=e&&e.jwtAuthToken,b=a.default.EmberModelUrl,y=b.updateUser;if(Ember.set(r,"externalId",m),Ember.set(r,"restoreId",g),Ember.set(r,"jwtAuthToken",v),d)if(!p||v&&!g)if(g);else{var E,Z,w,T=null===(E=this.hotline)||void 0===E||null===(Z=E.ui)||void 0===Z?void 0:Z.browser;(m||v)&&(v?w={user:{id:f},jwtAuthToken:v}:(w=this.getUserParams(),Ember.setProperties(w.user,{identifier:m,alias:d,id:f,deviceWebMeta:{browser:T.name,browserVersion:T.versionx,device:T.os,os:"Web"}}))),s.putRequest(y.model,(0,h.default)({url:y.url,token:c,alias:d},this.session,this.isJWTEnabled()),w).then(function(e){(0,o.Z)(this,n);var i=e&&e.alias&&!e.errorCode,s=e&&e.identifier,u=e&&e.restoreId;i?(this.reloadRoute(),this.send("toggleExternalId",e.identifier),l.set("alias",i),this.send("save",!1),Ember.set(r,"restoreId",u),this.send("userStateChange",{userState:a.default.UserState.IDENTIFIED}),this.isJWTEnabled()&&this.jwt.authenticateUser(!0),t(!0,200,{externalId:s,restoreId:u})):t(!1,400)}.bind(this)).catch(function(){(0,o.Z)(this,n),t(!1,400)}.bind(this))}else p===m?(Ember.set(r,"restoreId",u.restoreId),this.send("userStateChange",{userState:a.default.UserState.LOADED}),this.isJWTEnabled()&&this.jwt.authenticateUser(!0),t(!0,200,{externalId:p,restoreId:u.restoreId})):i?this.send("resetSession",function(e){(0,o.Z)(this,n),e&&(t(!1,403),this.subscription.clearSubscription())}.bind(this),!1):t(!1,403);else g||this.send("toggleExternalId",m),t(!0,404)},setExternalId:function(e,t){var n=this.session;n&&n.token?this.send("identifyUser",e,t,!1):t(!0,404)},setBotsProperties:function(e){var t=this.session;Ember.set(t,"botsMeta",e)},setConversationProperties:function(e){if(e&&"object"===(0,r.Z)(e)&&Object.keys(e).length>0){var t=this.localds,n=null==t?void 0:t.get("conversationPropertiesMeta");n?(0,s.compareObjects)(e,n.properties)||Ember.set(t,"conversationPropertiesMeta",{version:n.version+1,properties:e}):Ember.set(t,"conversationPropertiesMeta",{version:1,properties:e}),this.send("save",!1)}},setUserProperties:function(e,t){var n=this.session,i=n&&n.prop,r=n&&n.token,o=n&&n.user,a=o&&o.id,s=o&&o.alias,l=this.localds.get("properties"),u=this.getUpdatedUserProperties(e);if(r)if(s&&a)0!==Object.keys(u).length?(this.set("updatingUser",!0),this.send("updateUserProperties",e,t)):t&&t.constructor===Function&&t(!0,200);else{if(this.jwt.isEnabled&&e&&e.jwtAuthToken)Ember.set(n,"jwtAuthToken",e.jwtAuthToken);else{if(e){var c=e.firstName||i&&i.firstName||l&&l.get("firstName"),d=e.lastName||i&&i.lastName||l&&l.get("lastName");(c||d)&&(e.firstName=c,e.lastName=d,e.nameChanged=!0)}this.send("updateProperties",e)}t(!0,200)}else t(!0,404)},toggleExternalId:function(e){var t=this.localds;t&&(e?t.set("externalId",e):t.set("externalId",void 0),this.send("save",!1))},updateProperties:function(){var e,t,n,i,r,o,a,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,l=this.localds,u=this.session,c=u&&u.user,d=u&&u.siteId,h=this.localStorage.getItemLS("wcfcMigrated",u.token),p=s&&s.meta&&s.meta.siteId,m=null===(e=this.hotline)||void 0===e||null===(t=e.ui)||void 0===t?void 0:t.browser,g={browser:m.name,browserVersion:m.versionx,device:m.os,os:"Web"},v=l.get("properties"),b=u&&u.prop,y=b&&b.locale||v&&v.get("locale"),E=b&&b.firstName||v&&v.get("firstName"),Z=b&&b.lastName||v&&v.get("lastName"),w=b&&b.nameChanged||v&&v.get("nameChanged")||s&&s.nameChanged,T=b&&b.email||v&&v.get("email"),S=b&&b.phone||v&&v.get("phone"),I=b&&b.phoneCountry||v&&v.get("phoneCountry"),A=b&&b.meta||l.get("meta"),R=null===(n=this.hotline)||void 0===n||null===(i=n.ui)||void 0===i||null===(r=i.config)||void 0===r?void 0:r.sales360App;if(s)if(o=s.nameGenerated?void 0:s.firstName||v.get("firstName"),a=s.nameGenerated?void 0:s.lastName||v.get("lastName"),v.get("id")){if(v.set("firstName",o),v.set("lastName",a),s.email&&v.set("email",s.email),s.phone&&v.set("phone",s.phone),s.phoneCountry&&v.set("phoneCountry",s.phoneCountry),s.locale&&v.set("locale",s.locale),s.meta){var C=l&&l.get("meta")||{},O=s&&s.meta;if(O)for(var _ in O)O.hasOwnProperty(_)&&(C[_]=O[_]);C.fc_user_timezone=f.default.guess(),l.set("meta",C),Ember.set(u,"prop",{firstName:o,lastName:a,nameChanged:w,email:v.get("email"),phone:v.get("phone"),phoneCountry:v.get("phoneCountry"),locale:v.get("locale"),meta:C,deviceWebMeta:g})}}else this.localds.set("properties",this.store.createRecord("properties",{firstName:o,lastName:a,nameChanged:w,email:s.email,phone:s.phone,phoneCountry:s.phoneCountry,locale:s.locale,deviceWebMeta:g})),s.meta.fc_user_timezone=f.default.guess(),this.localds.set("meta",s.meta),Ember.set(u,"prop",s);var k={};null===s&&(s=c),w&&E&&o&&E!==o&&(Ember.set(u.prop,"firstName",E),k.firstName=E),w&&Z&&a&&Z!==a&&(Ember.set(u.prop,"lastName",Z),k.lastName=Z),T&&T!==s.email&&(Ember.set(u.prop,"email",T),R?b.email&&b.email!=v&&v.get("email")&&(k.email=T):k.email=T),S&&S!==s.phone&&(Ember.set(u.prop,"phone",S),R?b.phone&&b.phone!=v&&v.get("phone")&&(k.phone=S):k.phone=S),I&&I!==s.phoneCountry&&(Ember.set(u.prop,"phoneCountry",I),k.phoneCountry=I),y&&y!==s.locale&&(Ember.set(u.prop,"locale",y),k.locale=y);var M=A&&this.getUserPropertiesDiff(A,s.meta);M&&0!==Object.keys(M).length&&(Ember.set(u.prop,"meta",A),k.meta=A),Object.keys(k).length?(h&&d!==p&&(k.meta||(k.meta={}),k.meta.siteId=d),this.send("processUserUpdate",k)):h&&d!==p&&this.send("processUserUpdate",{meta:{siteId:d}}),this.send("save",!1)},processUserUpdate:function(e){if(this.updatingUser)this.set("updatingUser",!1),this.logger.log("Updating user failed");else{var t,n=null===(t=this.session)||void 0===t?void 0:t.user;n&&n.id&&(this.set("updatingUser",!0),this.send("updateUserProperties",e))}},updateUserProperties:function(e,t){var n,r,s=this,l=a.default.EmberModelUrl.updateUser,u=this.session,c=this.store,d=null===(n=this.hotline)||void 0===n||null===(r=n.ui)||void 0===r?void 0:r.browser,f={browser:d.name,browserVersion:d.versionx,device:d.os,os:"Web"},p=u&&u.user,m=u&&u.token,g=p&&p.alias,v=p&&p.id,b={};this.jwt.isEnabled?(e.user?(e.user.id=v,b=e):(b.jwtAuthToken=e.jwtAuthToken||u.jwtAuthToken,delete e.jwtAuthToken,b.user=e,b.user.id=v),b.user.deviceWebMeta=f,b.jwtAuthToken||t(!1,401)):(Ember.setProperties(e,{alias:g,id:v,deviceWebMeta:f}),b.user=e),c.putRequest(l.model,(0,h.default)({url:l.url,token:m,alias:g},this.session,this.isJWTEnabled()),b).then(function(){var e=(0,i.Z)(regeneratorRuntime.mark((function e(n){var i,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,o.Z)(this,s),i=n&&n.alias&&!n.errorCode?200:400,!(r=200===i)){e.next=6;break}return e.next=5,this.locale.updateAppLocale(n.locale);case 5:this.send("updateProperties",n);case 6:t&&"function"==typeof t&&t(r,i,n);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}().bind(this))},updateDeviceProperties:function(){var e,t,n=this,i=a.default.EmberModelUrl.updateUser,r=this.session,s=this.store,l=null===(e=this.hotline)||void 0===e||null===(t=e.ui)||void 0===t?void 0:t.browser,u={browser:l.name,browserVersion:l.versionx,device:l.os,os:"Web"},c=r&&r.user,d=r&&r.token,f=c&&c.alias,p=c&&c.id,m={};m.user={alias:f,id:p,deviceWebMeta:u},s.putRequest(i.model,(0,h.default)({url:i.url,token:d,alias:f}),m).then(function(e){(0,o.Z)(this,n),200===(e&&e.alias&&!e.errorCode?200:400)&&this.send("updateProperties",e)}.bind(this))},loadUserByAlias:function(e,t){var n=this,i=this.localds;if(e){var r=this.session,s=a.default.EmberModelUrl.userAlias.url.replace("{token}",r.token).replace("{userAlias}",e);this.axios.makeRequest({method:"GET",url:s,cache:!1,contentType:"application/json; charset=UTF-8"}).then(function(r){(0,o.Z)(this,n),200===(r&&r.status)&&r.data.alias?(this.logger.log("User Get using user alais"),this.send("setSessionUser",r.data,t),r.data.deviceWebMeta&&0==Object.keys(r.data.deviceWebMeta).length&&this.send("updateDeviceProperties")):(this.set("session.user.errors",r.data),i.set("alias",e),this.send("save",!1),t&&"function"==typeof t&&t(!1,400,r.data))}.bind(this),function(r){(0,o.Z)(this,n),this.logger.log("Error while getting user with alias",r),i.set("alias",e),this.send("save",!1),t&&"function"==typeof t&&t(!1,400)}.bind(this))}},setSessionUser:function(e,t){if(e&&e.alias){var n=this.session,i=e.nameGenerated?void 0:e.firstName,r=e.nameGenerated?void 0:e.lastName,o=i?r?"".concat(i," ").concat(r).trim():i.trim():"Unknown",s=e&&e.restoreId;if(e.name=o,e.wcfcToken){var l={token:e.wcfcToken,alias:e.alias};this.updateTokenAlias(l)}Ember.set(n,"user",e),Ember.set(n,"restoreId",s),e.alias?(this.send("userStateChange",{userState:a.default.UserState.CREATED}),this.reloadRoute(),t(!0,200,e)):t(!1,400)}}}})},17912:function(e,t,n){"use strict";n.r(t);var i=n(64076),r=n(45652),o=n(92759),a=n(50486),s=n(92003),l=n(82557),u=n(68103),c=n(3228);t.default=Ember.Mixin.create(s.default,l.default,{maxLimit:5,tryCount:0,hasUserToCreate:!1,localStorage:Ember.inject.service("local-storage"),postMessage:Ember.inject.service("post-message"),user:Ember.inject.service(),getUserAlias:function(){var e=this.session;return this.localStorage.getItemLS("wcfcAlias")||this.localStorage.getItemLS("wcfcAlias",e.token)&&!this.localStorage.getItemLS("wcfcMigrated",e.token)},isUserAvailable:function(){return!!this.getUserAlias()},isUserCreated:function(e){var t=e&&e.status;return t>=200&&t<=299},checkUserStateChange:function(e,t){this.parentView&&this.isUserCreated(t)&&this.parentView.send("userStateChange",{userState:"GET"===e?r.default.UserState.LOADED:r.default.UserState.CREATED})},handleUserCreateSuccess:function(e){var t=e&&e.status;t>=200&&t<=299?this.send("createUserSuccess",e.data):this.send("createUserFailure",t)},handleUserCreateFailure:function(e){var t=e&&e.response&&e.response.status,n={success:!1,status:t};410===t&&(this.user.delete(),this.send("reset",null,!0),n.userState=r.default.UserState.DELETED),400!==t&&409!==t&&428!==t&&412!==t||(n.userState=r.default.UserState.NOT_CREATED),this.parentView&&this.parentView.send("userStateChange",n),this.send("createUserFailure",t)},getUserUUID:function(){var e=this.localds,t=e&&e.get("alias");if("string"!=typeof t||36!==t.length){var n=this.getUserAlias();if(n)return n;t=this.getUUID()}return t},generateUserUUID:function(){return this.getUUID()},getUserParams:function(){var e,t,n,i,r,o=this.localds,a=null===(e=this.session)||void 0===e?void 0:e.prop,s=!a||a.errors&&0!==a.errors.length?o&&o.get("properties"):a,l=this.getUserUUID(),u={user:{}};if((s&&(s.get&&s.get("id")?Ember.setProperties(u.user,{firstName:s.get("firstName"),lastName:s.get("lastName"),email:s.get("email"),phone:s.get("phone"),phoneCountry:s.get("phoneCountry"),locale:s.get("locale"),meta:o.get("meta")}):(Ember.setProperties(u.user,{firstName:s.firstName,lastName:s.lastName,email:s.email,phone:s.phone,phoneCountry:s.phoneCountry,locale:s.locale,meta:s.meta}),Object.keys(s).length>0?(o.set("meta",s.meta),o.set("properties",this.store.createRecord("properties",s))):(o.set("meta",void 0),o.set("properties",void 0)))),null!==(t=this.hotline)&&void 0!==t&&null!==(n=t.ui)&&void 0!==n&&n.calendarMessage&&!u.user.email)&&(null!==(i=this.hotline)&&void 0!==i&&null!==(r=i.ui)&&void 0!==r&&r.calendarMessage.customMessageProperties)){var c,d,f=null===(c=this.hotline)||void 0===c||null===(d=c.ui)||void 0===d?void 0:d.calendarMessage.customMessageProperties,h=f&&f.internalMeta&&f.internalMeta.calendarMessageMeta&&f.internalMeta.calendarMessageMeta.calendarBookingEmail;u.user.email=h}return Ember.set(u.user,"alias",l),o.set("alias",l),this.send("save",!1),u},restoreAlias:function(){var e,t=this.tryCount+1;if(t<=this.maxLimit&&(this.set("tryCount",t),null!==(e=this.session)&&void 0!==e&&e.token))return this.localds.set("alias",void 0),this.send("save",!1),!0;return!1},actions:{loadUserByAlias:function(e,t){var n=this,o=this.localds;if(e){var a=this.session,s=r.default.EmberModelUrl.userAlias.url.replace("{token}",a.token).replace("{userAlias}",e);this.axios.makeRequest({method:"GET",url:s,cache:!1,contentType:"application/json; charset=UTF-8"}).then(function(r){(0,i.Z)(this,n),200===(r&&r.status)&&r.data.alias?(this.logger.log("User Get using user alais"),this.send("createUserSuccess",r.data)):(o.set("alias",e),this.send("save",!1),t&&"function"==typeof t&&t(!1,400))}.bind(this),function(r){(0,i.Z)(this,n),this.logger.log("Error while getting user with alias",r),o.set("alias",e),this.send("save",!1),t&&"function"==typeof t&&t(!1,400)}.bind(this))}},createUser:function(e){var t=this;this.set("doesUserExists",!1),this.send("sendMessage",e),this.localStorage.setItemLS("isUserCreateSent",!0);var n={};if(this.isUserAvailable()){var a=r.default.EmberModelUrl,s=a.user,l=a.userToken,u=this.session,d=u&&u.siteId,f=u&&u.token,h=u&&u.jwtAuthToken,p=s.url.replace("{token}",f),m=l.url.replace("{token}",f);d&&(n.siteId=d,m+="?siteId=".concat(d)),p=(0,o.addQueryParams)(p,n);var g=this.localStorage.getItemLS("wcfcToken")||this.localStorage.getItemLS("wcfcToken",f);if(this.set("session.wcfcToken",g),(0,c.setWCFCToken)(g),this.jwt.isEnabled&&h){var v={jwtAuthToken:h};this.axios.makeRequest({method:"POST",url:m,data:v,cache:!1,contentType:"application/json; charset=UTF-8"}).then(function(e){(0,i.Z)(this,t),this.checkUserStateChange("GET",e),this.handleUserCreateSuccess(e)}.bind(this),this.handleUserCreateFailure.bind(this))}else this.axios.makeRequest({method:"GET",url:p,cache:!1,contentType:"application/json; charset=UTF-8"}).then(function(e){(0,i.Z)(this,t),this.checkUserStateChange("GET",e),this.handleUserCreateSuccess(e)}.bind(this),this.handleUserCreateFailure.bind(this))}else this.send("createNewUser")},createNewUser:function(e){var t,n,s,l,c,d=this,f=this.session,h=null===(t=this.hotline)||void 0===t||null===(n=t.ui)||void 0===n?void 0:n.browser,p=f&&f.siteId,m=f&&f.flowId,g=f&&f.flowVersionId,v=f&&f.previewMode,b=f&&f.externalId||(null===(s=this.localds)||void 0===s?void 0:s.externalId),y=r.default.EmberModelUrl.user.url.replace("{token}",f&&f.token),E=f&&f.config&&f.config.pushToFreshSales,Z={},w=this.jwt.isEnabled?{user:{},jwtAuthToken:f.jwtAuthToken}:this.getUserParams();if(b&&Ember.set(w.user,"identifier",b),Ember.set(w.user,"totalSessions",1),m&&Ember.set(w.user,"flowId",m),g&&Ember.set(w.user,"flowVersionId",g),v){var T=this.getUUID();Ember.set(w.user,"previewMode",v),Ember.set(w.user,"alias",T),this.localds.set("alias",T)}w.user.meta?Ember.set(w.user.meta,"fc_user_timezone",u.default.guess()):Ember.set(w.user,"meta",{fc_user_timezone:u.default.guess()}),p&&(this.jwt.isEnabled||!w.user.meta?Ember.set(w.user,"meta",{siteId:p}):Ember.set(w.user.meta,"siteId",p),Z.siteId=p),E&&(Z.pushToFreshSales=!0),y=(0,o.addQueryParams)(y,Z),Ember.set(w.user,"locale",w.user.locale||(0,a.getNavigatorLanguage)()),null!==(l=this.session)&&void 0!==l&&null!==(c=l.config)&&void 0!==c&&c.isFCSDKWebView||Ember.set(w.user,"deviceWebMeta",{browser:h.name,browserVersion:h.versionx,device:h.os,os:"Web"}),this.axios.makeRequest({method:"POST",url:y,data:w,cache:!1,contentType:"application/json; charset=UTF-8"}).then(function(t){(0,i.Z)(this,d),this.checkUserStateChange("POST",t),this.handleUserCreateSuccess(t),e&&e()}.bind(this),this.handleUserCreateFailure.bind(this))},createUserSuccess:function(e){var t,n,o,a,s,l=this;this.localStorage.setItemLS("isUserCreateSent",!1),this.set("hasUserToCreate",!1),this.logger.log("User Created");var u=this.session,c=e.firstName,d=e.lastName,f=c?d?"".concat(c," ").concat(d).trim():c.trim():"Unknown";e.name=f,e.wcfcToken&&(this.user.updateTokenAlias({token:e.wcfcToken,alias:e.alias}),this.localds.set("wcfcToken",e.wcfcToken),this.localds.set("alias",e.alias)),Ember.set(u,"user",e),this.jwt.isEnabled&&this.jwt.authenticateUser(!0);var h,p,m,g,v,b,y=null===(t=this.localds)||void 0===t?void 0:t.conversations.findBy("channelId",this.channelId);if(y){var E=!1;y.get("messages").filterBy("messageUserType",0).forEach(function(e){var t=this;if((0,i.Z)(this,l),!(e.get("status")!==r.default.MESSAGE_STATUS.PENDING||y.get("conversationId")&&-1!==y.get("conversationId")||E)){var n,o,a=this.pendingFile;if(E=!0,e.set("isResponseForBot",!0),a&&a.file&&a.fileType&&this.uploadFile(a,function(n,o){if((0,i.Z)(this,t),n){var a=e.serialize();a=this.updateMessageFragmentsAfterFileUpload(a,o),this.assertThatAllAttachmentsHaveBeenUploaded(a)&&(a=this.postMessage.updateNotAuthenticatedMessage(a),this.postMessageAPI(a)),this.set("pendingFile",null)}else this.logger.log("Error",o),this.set("pendingFile",null),this.updateMessageStatusUsingHopId({messageHopId:e.msgHopId,messageChannelId:e.channelId,messageConversationId:e.conversationId},r.default.MESSAGE_STATUS.NOT_UPLOADED)}.bind(this)),this.pendingUploadTextFileObject&&null!==(n=this.pendingUploadTextFileObject)&&void 0!==n&&n.text&&null!==(o=this.pendingUploadTextFileObject)&&void 0!==o&&o.fileName){var s,u,c=e.serialize();this.uploadTextAndGetFileHash(null===(s=this.pendingUploadTextFileObject)||void 0===s?void 0:s.text,c,null===(u=this.pendingUploadTextFileObject)||void 0===u?void 0:u.fileName)}else this.assertThatAllAttachmentsHaveBeenUploaded(e.serialize())&&(e=this.postMessage.updateNotAuthenticatedMessage(e),this.postMessageAPI(e.serialize()))}}.bind(this))}null!==(n=this.hotline)&&void 0!==n&&null!==(o=n.ui)&&void 0!==o&&o.offlineMessagesFragments&&(this.send("sendOfflineMessages",null===(h=this.hotline)||void 0===h||null===(p=h.ui)||void 0===p?void 0:p.offlineMessagesFragments),this.set("hotline.ui.offlineMessagesFragments",null));null!==(a=this.hotline)&&void 0!==a&&null!==(s=a.ui)&&void 0!==s&&s.calendarMessage&&(this.send("sendCalendarMessage",null===(m=this.hotline)||void 0===m||null===(g=m.ui)||void 0===g?void 0:g.calendarMessage.customFragments,null===(v=this.hotline)||void 0===v||null===(b=v.ui)||void 0===b?void 0:b.calendarMessage.customMessageProperties),this.set("hotline.ui.calendarMessage",null));e.alias&&(this.parentView&&this.parentView.send("userIdentified",e),this.send("sendBulkEvents"))},createUserFailure:function(e){var t,n;if(this.localStorage.setItemLS("isUserCreateSent",!1),null!==(t=this.session)&&void 0!==t&&null!==(n=t.user)&&void 0!==n&&n.wcfcToken){var i;this.send("createUserSuccess",null===(i=this.session)||void 0===i?void 0:i.user)}else{if(304===e){var r,o,a,s;if(null!==(r=this.hotline)&&void 0!==r&&null!==(o=r.ui)&&void 0!==o&&null!==(a=o.config)&&void 0!==a&&a.sales360App)return this.send("loadUserByAlias",null===(s=this.session)||void 0===s?void 0:s.omniCookie),!1;this.restoreAlias()&&this.send("createUser")}this.logger.log("User Not Created")}}}})},94517:function(e,t,n){"use strict";n.r(t);var i=n(5953),r=n(64076),o=n(97231),a=n(92759),s=n(3228),l=n(45652),u=n(6937),c=n(55639);t.default=Ember.Mixin.create(u.default,c.default,{locale:Ember.inject.service(),axios:Ember.inject.service(),localStorage:Ember.inject.service("local-storage"),rts:Ember.inject.service(),postMessage:Ember.inject.service("post-message"),user:Ember.inject.service(),loadPayload:function(e){var t=this.session;if(t){if(e.integrations&&Ember.set(t,"integrations",e.integrations),e.campaignRuleIds&&Ember.set(t,"campaignRuleIds",e.campaignRuleIds),e.externalId&&Ember.set(t,"externalId",e.externalId),e.restoreId&&Ember.set(t,"restoreId",e.restoreId),e.flowId&&Ember.set(t,"flowId",e.flowId),e.flowVersionId&&Ember.set(t,"flowVersionId",e.flowVersionId),e.previewMode&&Ember.set(t,"previewMode",e.previewMode),e.isPostAgentResolutionEnabled&&Ember.set(t,"isPostAgentResolutionEnabled",e.isPostAgentResolutionEnabled),Ember.set(t,"isTemplateBot",e.isTemplateBot),e.identifyByReferenceId&&Ember.set(t,"identifyByReferenceId",e.identifyByReferenceId),e.jwtAuthToken&&Ember.set(t,"jwtAuthToken",e.jwtAuthToken),e.referrer&&Ember.set(t,"referrer",e.referrer),e.siteId&&Ember.set(t,"siteId",e.siteId),e.properties&&((e.properties.firstName||e.properties.lastName)&&(e.properties.nameChanged=!0),Ember.set(t,"prop",e.properties),e.properties.locale&&this.locale.updateAppLocale()),e.botsMeta&&Ember.set(t,"botsMeta",e.botsMeta),e.conversationReferenceId&&this.set("hotline.ui.conversationReferenceId",e.conversationReferenceId),e.conversationPropertiesMeta&&"object"===(0,o.Z)(e.conversationPropertiesMeta)&&Object.keys(e.conversationPropertiesMeta).length>0&&Ember.set(t,"conversationPropertiesMeta",{version:1,properties:e.conversationPropertiesMeta}),e.tags&&Ember.set(t,"tags",e.tags),e.faqTags&&Ember.set(t,"faqTags",e.faqTags),e.omniCookie&&Ember.set(t,"omniCookie",e.omniCookie),Ember.set(t,"config",e.config),t.config&&t.config.headerProperty&&t.config.headerProperty.appName&&Ember.set(t,"appDisplayName",t.config.headerProperty.appName),e.host&&!t.appHost&&(Ember.set(t,"appHost",e.host),(0,s.setAppHost)(e.host)),e.storage){var n,i;this.set("hotline.ui.storage",{});var r=null===(n=this.hotline)||void 0===n||null===(i=n.ui)||void 0===i?void 0:i.storage;for(var l in e.storage)if(e.storage.hasOwnProperty(l)){var u=e.storage[l];u&&(r[l]=(0,a.safelyParseJSON)(u))}}else this.set("hotline.ui.storage",null);if(t.token){var c,d,f=this.localStorage.getItemLS("wcfcToken",t.token,!0),h=this.localStorage.getItemLS("wcfcAlias",t.token,!0),p=this.localStorage.getItemLS("wcfcMigrated",t.token,!0),m=this.localStorage.getItemLS("wcfcToken",null,!0);if(m?(this.set("session.wcfcToken",m),(0,s.setWCFCToken)(m)):!0===p||f&&(this.localStorage.setItemLS("wcfcMigrated",!0,t.token),this.localStorage.setItemLS("wcfcAlias",h,t.token),this.localStorage.setItemLS("wcfcToken",f),this.localStorage.setItemLS("wcfcAlias",h),this.set("session.wcfcToken",f),(0,s.setWCFCToken)(f)),null===(null===(c=this.hotline)||void 0===c||null===(d=c.ui)||void 0===d?void 0:d.storage)&&this.storageAvailable){var g,v;this.set("hotline.ui.storage",{});var b=null===(g=this.hotline)||void 0===g||null===(v=g.ui)||void 0===v?void 0:v.storage,y=e.siteId?"".concat(t.token,"_").concat(e.siteId):null,E=localStorage.getItem(t.token),Z=E?(0,a.safelyParseJSON)(E):null,w=y?localStorage.getItem(y):null,T=w?(0,a.safelyParseJSON)(w):null;Z?(this.postMessage.post({action:"set_storage_item",data:{key:t.token,value:Z}}),b[t.token]=Z):b[t.token]={},T?(this.postMessage.post({action:"set_storage_item",data:{key:y,value:T}}),b[y]=T):y&&(b[y]={})}}this.localStorage.setItemLS("isUserCreateSent",!1),e.userAgent&&Ember.set(t,"userAgent",e.userAgent)}},actions:{setWidgetSize:function(){var e,t,n,i,r,o,a,s,l,u,c,d="fc-widget-".concat(this.session.isMultiWidget?null===(e=this.hotline)||void 0===e||null===(t=e.ui)||void 0===t||null===(n=t.config)||void 0===n||null===(i=n.appearanceConfig)||void 0===i?void 0:i.widgetSize.toLowerCase():null===(r=this.hotline)||void 0===r||null===(o=r.ui)||void 0===o||null===(a=o.config)||void 0===a?void 0:a.widgetSize.toLowerCase()),f=document.getElementsByTagName("html")[0],h=this.session.isMultiWidget&&"BOTTOM_LEFT"===(null===(s=this.hotline)||void 0===s||null===(l=s.ui)||void 0===l||null===(u=l.config)||void 0===u||null===(c=u.appearanceConfig)||void 0===c?void 0:c.widgetPosition);this.session.isMultiWidget&&(d+=" multi-widget-ui"),h&&(d+=" fc-widget-left"),f.className=f.className?f.className+" "+d:d},loadWidget:function(e){this.loadPayload(e),this.send("loadDatastore",e),this.send("setWidgetSize")},loadDatastore:function(e){var t,n=null===(t=this.hotline)||void 0===t?void 0:t.ui;e.lsds?(Ember.set(n,"dsType",l.default.DatastoreTypes.LSDS.id),Ember.set(n,"lsds",e.lsds),e.migrateLFDS?(Ember.set(n,"dsMigration",!0),this.send("loadDS")):this.send("loadLSDatastore")):(this.set("hotline.ui.dsType",l.default.DatastoreTypes.LFDS.id),this.send("loadDS"))},loadLSDatastore:function(){var e=this;this.store.findAll("lsDatastore").then(function(t){var n;(0,r.Z)(this,e),Ember.set(null===(n=this.hotline)||void 0===n?void 0:n.ui,"datastore",t),this.send("initDS")}.bind(this))},loadDS:function(){var e,t=this,n=null===(e=this.hotline)||void 0===e?void 0:e.ui,i=n.dsMigration&&"lsds"===n.dsType,o=function(){(0,r.Z)(this,t),i?this.send("loadLSDatastore"):this.send("initDS")}.bind(this);this.dsBrowserSupport?this.store.findAll("datastore").then(function(e){var s=this;if((0,r.Z)(this,t),i)if(e){var l,u=e.findBy("appId",null===(l=this.session)||void 0===l?void 0:l.appId),c=u&&u.serialize();if(c)this.store.createRecord(this.dsName,(0,a.serializeRecord)(c,this.store)).save().then(function(e){(0,r.Z)(this,s),this.set("records",e),Ember.set(n,"localds",e),this.send("initDS")}.bind(this),function(){(0,r.Z)(this,s),this.send("initDS")}.bind(this));else o()}else o();else e&&Ember.set(n,"datastore",e),this.send("initDS")}.bind(this),o):o()},initDS:function(){var e=this;if(this.localds){var t;if(null!==(t=this.session)&&void 0!==t&&t.conversationPropertiesMeta){var n,i=null===(n=this.localds)||void 0===n?void 0:n.get("conversationPropertiesMeta");i?(0,a.compareObjects)(this.session.conversationPropertiesMeta.properties,i.properties)||Ember.set(this.localds,"conversationPropertiesMeta",{version:i.version+1,properties:this.session.conversationPropertiesMeta.properties}):Ember.set(this.localds,"conversationPropertiesMeta",this.session.conversationPropertiesMeta),this.send("save",!1)}this.send("findUser")}else this.init_localds().then(function(){(0,r.Z)(this,e),this.send("findUser")}.bind(this),function(){var t,n,i=this;((0,r.Z)(this,e),this.isLFDS)?window.localforage&&null!==(t=this.hotline)&&void 0!==t&&null!==(n=t.ui)&&void 0!==n&&n.storageAvailable?!0===this.localStorage.getItemLS("isReloaded")?(this.localStorage.removeItemLS("isReloaded"),this.set("dsBrowserSupport",!1),this.init_localds().then(function(){(0,r.Z)(this,i),this.send("findUser")}.bind(this))):(this.localStorage.setItemLS("isReloaded",!0),window.localforage.clear(function(){(0,r.Z)(this,i),this.send("reloadWidget")}.bind(this))):(this.set("dsBrowserSupport",!1),this.init_localds().then(function(){(0,r.Z)(this,i),this.send("findUser")}.bind(this))):this.isLSDS}.bind(this))},findUser:function(){var e,t,n,i,r=this.localds,o=r&&r.get("properties"),a=this.session,s=a&&a.prop,u=null===(e=this.hotline)||void 0===e||null===(t=e.ui)||void 0===t?void 0:t.browser,c={browser:u.name,browserVersion:u.versionx,device:u.os,os:"Web"};if(s&&o)if(o.get("id")){if(s.firstName&&o.set("firstName",s.firstName),s.lastName&&o.set("lastName",s.lastName),o.set("nameChanged",s.nameChanged),s.email&&o.set("email",s.email),s.phone&&o.set("phone",s.phone),s.phoneCountry&&o.set("phoneCountry",s.phoneCountry),s.locale&&o.set("locale",s.locale),s.meta){var d=r&&r.get("meta")||{},f=s&&s.meta;if(f)for(var h in f)f.hasOwnProperty(h)&&(d[h]=f[h]);r.set("meta",d)}}else this.localds.set("properties",this.store.createRecord("properties",{firstName:s.firstName,lastName:s.lastName,nameChanged:s.nameChanged,email:s.email,phone:s.phone,phoneCountry:s.phoneCountry,locale:s.locale,deviceWebMeta:c})),s.meta&&this.localds.set("meta",s.meta);if((a.externalId||null!==(n=this.localds)&&void 0!==n&&n.userExtId)&&a.externalId!==(null===(i=this.localds)||void 0===i?void 0:i.userExtId)&&this.set("session.shouldClearConvsAndProps",!0),this.localds.set("userExtId",a.externalId),this.isJWTStrictMode){var p=this.session,m=p.identifyByReferenceId?this.generateUserUUID():this.getUserAlias(),g=p&&p.jwtAuthToken;!m||g?this.send("getUser"):this.send("userStateChange",{userState:l.default.UserState.NOT_AUTHENTICATED,success:!1,status:401,freshchat_uuid:m})}else this.send("getUser")},getUser:function(){var e,t,n=this,o=l.default.EmberModelUrl,u=o.user,c=o.userToken,d=this.session,f=d&&d.siteId,h=d&&d.jwtAuthToken,p=u.url.replace("{token}",null===(e=this.session)||void 0===e?void 0:e.token),m=c.url.replace("{token}",null===(t=this.session)||void 0===t?void 0:t.token);f&&(p+="?siteId=".concat(f),m+="?siteId=".concat(f));var g=function(){var e=(0,i.Z)(regeneratorRuntime.mark((function e(t){var i,o,s,u,c,f,p,m,g,v;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,r.Z)(this,n),!t||!(t.errors&&"410"===t.errors[0].status||t.mcrStatus===l.default.CONTACT_STATUS.DELETED)){e.next=6;break}this.user.delete(),this.send("reset",null,!0),e.next=13;break;case 6:if(!t){e.next=13;break}return i=t.nameGenerated?void 0:t.firstName,o=t.nameGenerated?void 0:t.lastName,s=i?o?"".concat(i," ").concat(o).trim():i.trim():"Unknown",t.name=s,Ember.set(d,"user",t),e.next=12,this.locale.updateAppLocale();case 12:t.errorCode?t.errors=t:this.isJWTStrictMode&&h&&t.alias&&this.send("updateUser",{jwtAuthToken:h});case 13:this.jwt.isEnabled&&(u=!(!t||!t.success&&!t.alias),c=u||t&&t.errorCode>=1&&t.errorCode<=2,f=h&&c,this.jwt.authenticateApp(f),h&&(p=h.split("."),m=p&&3===p.length?(0,a.safelyParseJSON)(atob(p[1])):null,(g=m&&m.reference_id)&&Ember.set(d,"externalId",g)),this.jwt.isStrict&&(v=!!(t&&t.success||t.alias),t&&t.alias&&(this.user.updateTokenAlias({token:t.wcfcToken||d&&d.wcfcToken,alias:t.alias}),this.localds.set("wcfcToken",t.wcfcToken||d&&d.wcfcToken),this.localds.set("alias",t.alias)),this.postMessage.post({action:"frame_state_change",success:v,status:v?200:401,data:{frameState:c?l.default.FrameState.LOADED:l.default.FrameState.NOT_AUTHENTICATED}}),f&&this.postMessage.post({action:"frame_state_change",success:!0,status:200,data:{frameState:l.default.FrameState.AUTHENTICATED}}))),this.send("fetchInfo");case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}().bind(this);if(null!==this.jwt.auth.app&&null!==this.jwt.auth.user||(this.jwt.auth.app=!1,Ember.set(this.jwt.auth,"user",!1)),this.jwt.isEnabled&&h){var v={jwtAuthToken:h};this.store.postRequest(c.model,m,v).then(g,g)}else{var b,y,E,Z,w,T,S,I,A,R,C,O,_=null===(b=this.hotline)||void 0===b||null===(y=b.ui)||void 0===y||null===(E=y.config)||void 0===E?void 0:E.betaFeatures;if(!(0,s.getWCFCToken)()&&null!==(Z=this.hotlineUI)&&void 0!==Z&&null!==(w=Z.config)&&void 0!==w&&w.sales360App&&null!==(T=this.session)&&void 0!==T&&T.omniCookie)return null!==(S=this.session)&&void 0!==S&&S.previewMode||!(_&&_[l.default.enableFmJourneyBetaFeature]&&null!==(I=this.hotline)&&void 0!==I&&null!==(A=I.ui)&&void 0!==A&&null!==(R=A.config)&&void 0!==R&&R.journeyEnabledApp||null!==(C=this.session.integrations)&&void 0!==C&&C.shopify)||this.rts.create(),this.send("loadUserByAlias",null===(O=this.session)||void 0===O?void 0:O.omniCookie,function(e,t,i){(0,r.Z)(this,n),g(i,e,t)}.bind(this)),!1;this.store.getRequest(u.model,p).then(g)}},fetchInfo:function(){var e,t,n,i=this,o=l.default.EmberModelUrl.widgetInfo,a=this.locale.currentLocaleString(),s=o.url.replace("{token}",null===(e=this.session)||void 0===e?void 0:e.token).replace("{locale}",a);"botflow"===(null===(t=this.session)||void 0===t?void 0:t.previewMode)&&(s+="&previewMode=true"),null!==(n=this.hotlineUI)&&void 0!==n&&n.channels?this.send("loadUser"):this.store.getRequest(o.model,s).then(function(e){if((0,r.Z)(this,i),e){var t=this.hotlineUI,n=e.channelResponse,o=e.categoryResponse,a=e.operatingHoursResponse,s=e.responseTimeHolder,l=e.userRules,u=e.messageMaskConfigList,c=e.offlineExperienceResponse,d=e.requestsWhiteListedDomains,f=e.widgetInfoTraceId;n&&Ember.set(t,"channels",n.channels),o&&Ember.set(t,"categories",o.categories),a&&(a.operatingHours&&(a.operatingHours.clientTimeInMillis=(new Date).getTime()),Ember.set(t,"hours",a)),s&&Ember.set(t,"rspTime",s),l&&Ember.set(t,"userBehaviour",{eventRules:l}),u&&Ember.set(t,"backendMaskConfigData",u),c&&Ember.set(t,"offlineExperience",c),d&&Ember.set(t,"whiteListedDomains",d),f&&Ember.set(t,"widgetInfoTraceId",f),Ember.set(t,"isBERuleEngineWorking",e.isBERuleEngineWorking)}this.send("loadUser")}.bind(this))},loadConfig:function(e){if(e){var t;null!==(t=this.session)&&void 0!==t&&t.config||this.set("session.config",{}),void 0!==e.showFAQOnOpen&&this.set("session.config.showFAQOnOpen",e.showFAQOnOpen),void 0!==e.hideFAQ&&this.set("session.config.hideFAQ",e.hideFAQ),void 0!==e.faqPopupView&&this.set("session.config.faqPopupView",e.faqPopupView),void 0!==e.hideFileUpload&&this.set("session.config.hideFileUpload",e.hideFileUpload),void 0!==e.hidePoweredBy&&this.set("session.config.hidePoweredBy",e.hidePoweredBy),void 0!==e.content&&this.set("session.config.content",e.content),void 0!==e.disableEvents&&this.set("session.config.disableEvents",e.disableEvents),void 0!==e.disableNotifications&&this.set("session.config.disableNotifications",e.disableNotifications),void 0!==e.mask_text&&this.set("session.config.mask_text",e.mask_text),void 0!==e.disablePageTransition&&this.set("session.config.disablePageTransition",e.disablePageTransition),void 0!==e.widgetSize&&this.set("session.config.widgetSize",e.widgetSize),void 0!==e.fullscreen&&this.set("session.config.fullscreen",e.fullscreen),void 0!==e.isFCSDKWebView&&this.set("session.config.isFCSDKWebView",e.isFCSDKWebView),void 0!==e.openChannelId&&this.set("session.config.openChannelId",e.openChannelId);var n,i,r=e.agent;if(r)null!==(n=this.session)&&void 0!==n&&null!==(i=n.config)&&void 0!==i&&i.agent||this.set("session.config.agent",{}),void 0!==r.hideName&&this.set("session.config.agent.hideName",r.hideName),void 0!==r.hidePic&&this.set("session.config.agent.hidePic",r.hidePic),void 0!==r.hideBio&&this.set("session.config.agent.hideBio",r.hideBio);var o=e.headerProperty;if(o){var a,s,l,u,c,d,f=o.jwtInvalidBanner;if(null!==(a=this.session)&&void 0!==a&&null!==(s=a.config)&&void 0!==s&&s.headerProperty||this.set("session.config.headerProperty",{}),void 0!==o.backgroundColor&&this.set("session.config.headerProperty.backgroundColor",o.backgroundColor),void 0!==o.foregroundColor&&this.set("session.config.headerProperty.foregroundColor",o.foregroundColor),void 0!==o.backgroundImage&&this.set("session.config.headerProperty.backgroundImage",o.backgroundImage),void 0!==o.fontName&&this.set("session.config.headerProperty.fontName",o.fontName),void 0!==o.fontUrl&&this.set("session.config.headerProperty.fontUrl",o.fontUrl),void 0!==o.direction&&this.set("session.config.headerProperty.direction",o.direction),void 0!==o.hideChatButton&&this.set("session.config.headerProperty.hideChatButton",o.hideChatButton),void 0!==o.appLogo&&this.set("session.config.headerProperty.appLogo",o.appLogo),void 0!==o.hideHeader&&this.set("session.config.headerProperty.hideHeader",o.hideHeader),void 0!==o.appName)this.set("session.config.headerProperty.appName",o.appName),this.set("session.appDisplayName",o.appName||(null===(l=this.session)||void 0===l?void 0:l.appName));if(f)null!==(u=this.session)&&void 0!==u&&null!==(c=u.config)&&void 0!==c&&null!==(d=c.headerProperty)&&void 0!==d&&d.jwtInvalidBanner||this.set("session.config.headerProperty.jwtInvalidBanner",{}),void 0!==f.msg&&this.set("session.config.headerProperty.jwtInvalidBanner.msg",f.msg),void 0!==f.backgroundColor&&this.set("session.config.headerProperty.jwtInvalidBanner.backgroundColor",f.backgroundColor),void 0!==f.foregroundColor&&this.set("session.config.headerProperty.jwtInvalidBanner.foregroundColor",f.foregroundColor)}void 0!==e.pushToFreshSales&&this.set("session.config.pushToFreshSales",e.pushToFreshSales)}}}})},94857:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return B}});var i,r,o,a,s,l,u,c,d,f,h,p,m,g,v,b,y,E,Z,w,T,S,I,A,R,C,O=n(81190),_=n(91392),k=n(22081),M=n(18542),N=n(18419),P=n(38461),D=n(94232),L=n(40990),U=n(77821);function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,D.Z)(e);if(t){var r=(0,D.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,P.Z)(this,n)}}var B=(i=(0,U.attr)("string"),r=(0,U.attr)("string"),o=(0,U.attr)("number"),a=(0,U.attr)("string"),s=(0,U.attr)("number"),l=(0,U.attr)("string"),u=(0,U.attr)("string"),c=(0,U.attr)("string"),d=(0,U.attr)("string"),f=(0,U.attr)("string"),h=(0,U.attr)("string"),p=(0,U.attr)(),m=Ember.computed("firstName","lastName"),g=function(e){(0,N.Z)(n,e);var t=x(n);function n(){var e;(0,_.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o-1&&(t.stopPropagation(),u(c));else{var d=c+(r===s.default.KEYCODES.UPARROW?-1:1);if(d<0||d===a.length)return;c>-1&&(a[c].ariaSelected=!1,a[c].className=a[c].className.replace("active","")),a[d].ariaSelected=!0,a[d].className=a[d].className+" active",a[d].scrollIntoView()}}}return(0,o.Z)(this,undefined),document.addEventListener("keydown",c),function(){(0,o.Z)(this,n),document.removeEventListener("keydown",c)}.bind(this)}.bind(void 0))},28181:function(e,t,n){"use strict";n.r(t);var i=n(89269),r=n(89857);t.default=(0,r.modifier)((function(e,t){(0,i.Z)(t,1)[0]&&e.focus()}))},43209:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(32466)},66466:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(50354)},28920:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(46424)},54023:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(96424)},36862:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var i=n(91392),r=n(18542),o=n(18419),a=n(38461),s=n(94232),l=n(76459),u=n(29271),c=n(66938);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,s.Z)(e);if(t){var r=(0,s.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,a.Z)(this,n)}}var f=function(e){(0,o.Z)(n,e);var t=d(n);function n(){var e;(0,i.Z)(this,n);for(var o=arguments.length,a=new Array(o),s=0;s0&&void 0!==arguments[0]?arguments[0]:"";return!Ember.isBlank(e)&&this.store.findRecord("agent",e.toString())}}]),n}(Ember.Service),o=(0,h.Z)(r.prototype,"store",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},93017:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return S}});var i,r,o,a,s,l=n(64076),u=n(81190),c=n(91392),d=n(22081),f=n(18542),h=n(18419),p=n(38461),m=n(94232),g=n(76459),v=n(40990),b=n(95867),y=n.n(b),E=n(92759),Z=n(3228);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,m.Z)(e);if(t){var r=(0,m.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,p.Z)(this,n)}}var S=(i=Ember.inject.service,r=Ember.inject.service,o=function(e){(0,h.Z)(n,e);var t=T(n);function n(e,i){var r,o=this;return(0,c.Z)(this,n),r=t.call(this,e,i),(0,u.Z)((0,f.Z)(r),"session",a,(0,f.Z)(r)),(0,u.Z)((0,f.Z)(r),"hotline",s,(0,f.Z)(r)),(0,g.Z)((0,f.Z)(r),"wcfctoken",""),(0,g.Z)((0,f.Z)(r),"kubetoken",""),r.makeRequest=y().create(),r.makeRequest.interceptors.request.use(function(e){(0,l.Z)(this,o),e.url=(0,Z.getBaseURL)(e.url),e.params=e.params||{};try{e.params.widgetInfoTraceId=r.hotline.ui.widgetInfoTraceId}catch(e){r.logger.log(e,"err")}return(0,E.isTranslationsUrl)(e.url)||(e.headers.common=function(e){for(var t=1;t=l.default.AgentLastMessageTimeDifference.time}}]),n}(Ember.Service)},28903:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i,r,o,a=n(81190),s=n(91392),l=n(22081),u=n(18542),c=n(18419),d=n(38461),f=n(94232),h=n(40990);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,f.Z)(e);if(t){var r=(0,f.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,d.Z)(this,n)}}var m=(i=Ember.inject.service,r=function(e){(0,c.Z)(n,e);var t=p(n);function n(){var e;(0,s.Z)(this,n);for(var i=arguments.length,r=new Array(i),l=0;l1},isIPhone:function(){return/iPhone/i.test(navigator.userAgent)},isAndroid:function(){return/Android/i.test(navigator.userAgent)},isTablet:function(){return"function"==typeof this.md&&this.md().tablet()||this.isIPad()},init:function(){this._super.apply(this,arguments),this.set("ui",{hop:(new Date).getTime().toString(),sockets:{},onLine:!0,pushPermission:"default",parentTitle:"",parentLocation:"",widgetFocussed:!1,awayMessage:"",expandCollapse:!0,loading:!1,widget:window!==window.parent,isDesktop:!this.isMobile(),isIPhone:this.isIPhone(),isIOS:this.isIOS(),isIPad:this.isIPad(),isTablet:this.isTablet(),isAndroid:this.isAndroid(),browser:this.getBrowserInfo(),isFirefoxMobile:this.isFirefoxMobile(),storageAvailable:this.storageAvailable("localStorage"),isConversationsLoaded:!1})},md:(i=window.navigator.userAgent,function(){return r||(r=new(a())(i))}),storageAvailable:function(e){var t,n="__storage_test__";try{return(t=window[e]).setItem(n,n),t.removeItem(n),!0}catch(e){return e instanceof window.DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==t.length}},device:function(){var e=this.md();return e.phone()?"phone":e.tablet()||this.isIPadOS()?"tablet":"desktop"},isFirefoxMobile:function(){var e=this.md();return!("Firefox"!==this.getBrowserInfo().name||!e.phone()&&!e.tablet())},getBrowserInfo:function(){var e,t,n,i=navigator.appVersion,r=navigator.userAgent,o=navigator.appName,a=""+parseFloat(i),s=parseInt(i,10);return-1!==(t=r.indexOf("OPR"))||-1!==(t=r.indexOf("Opera"))?(o="Opera",a=r.substring(t+(r.includes("Opera")?6:4)),-1!==(t=r.indexOf("Version"))&&(a=r.substring(t+8))):-1!==(t=r.indexOf("MSIE"))?(o="Microsoft Internet Explorer",a=r.substring(t+5)):-1!==(t=r.indexOf("Edg"))?(o="Edge",a=r.substring(t+(r.includes("Edge")?5:4))):-1!==(t=r.indexOf("Trident"))?(o="Trident",a=r.substring(t+8)):-1!==(t=r.indexOf("Chrome"))?(o="Chrome",a=r.substring(t+7)):-1!==(t=r.indexOf("Safari"))?(o="Safari",a=r.substring(t+7),-1!==(t=r.indexOf("Version"))&&(a=r.substring(t+8))):-1!==(t=r.indexOf("Firefox"))?(o="Firefox",a=r.substring(t+8)):(e=r.lastIndexOf(" ")+1)<(t=r.lastIndexOf("/"))&&(o=r.substring(e,t),a=r.substring(t+1),o.toLowerCase()===o.toUpperCase()&&(o=navigator.appName)),-1!==(n=a.indexOf(";"))&&(a=a.substring(0,n)),-1!==(n=a.indexOf(" "))&&(a=a.substring(0,n)),s=parseInt(""+a,10),isNaN(s)&&(a=""+parseFloat(i),s=parseInt(i,10)),{name:o,version:s,versionx:a,os:this.device()}}})},66037:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var i,r,o,a=n(64076),s=n(5953),l=n(81190),u=n(91392),c=n(22081),d=n(18542),f=n(18419),h=n(38461),p=n(94232),m=n(40990),g=n(10440),v=n(50486);function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,p.Z)(e);if(t){var r=(0,p.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,h.Z)(this,n)}}var y=(i=Ember.inject.service,r=function(e){(0,f.Z)(i,e);var t,n=b(i);function i(){var e;(0,u.Z)(this,i);for(var t=arguments.length,r=new Array(t),a=0;a0&&void 0!==arguments[0]?arguments[0]:null;e?(this.setExpiry(e),this.setAuthTimer(),this.authenticateUser(this.auth.user)):(this.unsetExpiry(),this.resetAuthTimer())}},{key:"setAuthTimer",value:function(){var e=this;this.resetAuthTimer(),this.auth.timer=setTimeout(function(){(0,a.Z)(this,e),this.setExpiry(),this.resetAuthTimer(),Ember.set(this.auth,"expired",!0),this.authenticateUser(!1)}.bind(this),this.auth.timeoutInterval||3e4)}},{key:"resetAuthTimer",value:function(){this.auth.timer&&clearTimeout(this.auth.timer)}},{key:"setExpiry",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.auth.expiredAt=e||parseInt((new Date).getTime()/1e3,10)}},{key:"unsetExpiry",value:function(){this.auth.expiredAt=null}},{key:"validateJWT",value:function(e){var t=this;return new Ember.RSVP.Promise(function(n,i){var r=this;if((0,a.Z)(this,t),this.auth.scheduled)i({status:429,success:!1});else{this.authenticateToken(),this.auth.scheduled=!0;var o=function(e){(0,a.Z)(this,r),this.auth.scheduled=!1,e&&e.data&&e.data.validToken?(this.unsetExpiry(),Ember.set(this.auth,"expired",!1),n(e.data)):(this.setExpiry(),Ember.set(this.auth,"expired",!0),i())}.bind(this);this.axios.makeRequest({method:"POST",url:e.url,data:e.payload,dataType:"json",contentType:"application/json"}).then(o,o)}}.bind(this))}}]),n}(Ember.Service),o=(0,p.Z)(r.prototype,"axios",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},85302:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var i,r,o,a=n(81190),s=n(91392),l=n(22081),u=n(18542),c=n(18419),d=n(38461),f=n(94232),h=n(40990),p=n(45652);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,f.Z)(e);if(t){var r=(0,f.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,d.Z)(this,n)}}var g=(i=Ember.inject.service,r=function(e){(0,c.Z)(n,e);var t=m(n);function n(){var e;(0,s.Z)(this,n);for(var i=arguments.length,r=new Array(i),l=0;l2&&void 0!==arguments[2]?arguments[2]:null,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];null===n&&(n=this.namespace);var r=this.storageAvailable,o=this.getStorage(n);o&&(o[e]=t,r?localStorage.setItem(n,JSON.stringify(o)):i=!0,this.updateStorage(n,o),i&&t&&this.postMessage.post({action:"set_storage_item",data:{key:n,value:o}}))}},{key:"getItemLS",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];null===t&&(t=this.namespace);var i,r=this.storageAvailable,o=this.getStorage(t);if(o&&o.hasOwnProperty(e)&&(i=o[e]),r||(n=!0),n&&!i){var a,s,l=null===(a=this.hotline)||void 0===a||null===(s=a.ui)||void 0===s?void 0:s.storage,u=l?l[t]:null;u&&(i=u[e],Object.keys(u).length&&r&&localStorage.setItem(t,JSON.stringify(u)))}return i}},{key:"removeItemLS",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];null===t&&(t=this.namespace);var i=this.storageAvailable,r=this.getStorage(t);i||(n=!0),r&&(delete r[e],(0,E.isEmptyObject)(r)?(i&&localStorage.removeItem(t),this.updateStorage(t,{}),n&&this.postMessage.post({action:"remove_storage_item",data:{key:t}})):(i&&localStorage.setItem(t,JSON.stringify(r)),this.updateStorage(t,r),n&&this.postMessage.post({action:"set_storage_item",data:{key:t,value:r}})))}}]),n}(Ember.Service),u=(0,y.Z)(l.prototype,"session",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,y.Z)(l.prototype,"hotline",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,y.Z)(l.prototype,"postMessage",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,y.Z)(l.prototype,"namespace",[a],Object.getOwnPropertyDescriptor(l.prototype,"namespace"),l.prototype),(0,y.Z)(l.prototype,"storageAvailable",[s],Object.getOwnPropertyDescriptor(l.prototype,"storageAvailable"),l.prototype),l)},80549:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return E}});var i,r,o,a,s,l=n(5953),u=n(81190),c=n(91392),d=n(22081),f=n(18542),h=n(18419),p=n(38461),m=n(94232),g=n(40990),v=n(22327),b=n(50486);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,m.Z)(e);if(t){var r=(0,m.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,p.Z)(this,n)}}var E=(i=Ember.inject.service,r=Ember.inject.service,o=function(e){(0,h.Z)(i,e);var t,n=y(i);function i(){var e;(0,c.Z)(this,i);for(var t=arguments.length,r=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:0;Ember.set(this,"unreadMessagesCount",e)}},{key:"toggleShowUnreadMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Ember.set(this,"showUnreadMessage",e)}},{key:"resetLastAgentMessages",value:function(){Ember.set(this,"lastAgentMessages",[]),this.toggleUnreadMessagesCount(),this.toggleShowUnreadMessage()}},{key:"isSameAsLastAgentChannelId",value:function(e){var t,n,i;return(null===(t=this.lastAgentMessages)||void 0===t?void 0:t.length)&&(null===(n=this.lastAgentMessages)||void 0===n||null===(i=n.lastObject)||void 0===i?void 0:i.channelId)===e}}]),n}(Ember.Service),o=(0,p.Z)(r.prototype,"hasMessages",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},8320:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return A}});var i,r,o,a,s,l,u,c,d,f,h=n(64076),p=n(81190),m=n(91392),g=n(22081),v=n(18542),b=n(18419),y=n(38461),E=n(94232),Z=n(40990),w=n(45652),T=n(59565),S=n.p+"notif.da662fefc5060dabf2859ea199198b14.mp3";function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,E.Z)(e);if(t){var r=(0,E.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,y.Z)(this,n)}}var A=(i=Ember.inject.service("local-storage"),r=Ember.inject.service("post-message"),o=Ember.inject.service,a=Ember.computed,s=Ember.computed,l=Ember.computed,u=function(e){(0,b.Z)(n,e);var t=I(n);function n(e,i){var r;return(0,m.Z)(this,n),r=t.call(this,e,i),(0,p.Z)((0,v.Z)(r),"localStorage",c,(0,v.Z)(r)),(0,p.Z)((0,v.Z)(r),"postMessage",d,(0,v.Z)(r)),(0,p.Z)((0,v.Z)(r),"axios",f,(0,v.Z)(r)),r.isPushEventsBound=!1,r.lastAction=null,r}return(0,g.Z)(n,[{key:"requestPermission",value:function(){this.postMessage.post({action:"ask_permission"})}},{key:"clearPermission",value:function(){this.postMessage.post({action:"clear_subscription"})}},{key:"subscribeCB",get:function(){return this.sendSubscriptionToServer.bind(this)}},{key:"unsubscribeCB",get:function(){return this.sendUnsubscribeToServer.bind(this)}},{key:"unloadCB",get:function(){return this.sendSubscribeOnUnload.bind(this)}},{key:"bindPushEvents",value:function(){this.isPushEventsBound||(this.set("isPushEventsBound",!0),this.unbindPushEvents(),(0,T.bindEvent)(window,"focus",this.unsubscribeCB),(0,T.bindEvent)(window,"blur",this.subscribeCB),(0,T.bindEvent)(window,"beforeunload",this.unloadCB))}},{key:"unbindPushEvents",value:function(){(0,T.bindEvent)(window,"focus",this.unsubscribeCB),(0,T.bindEvent)(window,"blur",this.subscribeCB),(0,T.bindEvent)(window,"beforeunload",this.unloadCB)}},{key:"sendSubscribeOnUnload",value:function(e){this.sendSubscriptionToServer(e)}},{key:"sendSubscriptionToServer",value:function(e){var t,n,i,r,o,a,s=null===(t=this.hotline)||void 0===t||null===(n=t.ui)||void 0===n||null===(i=n.push)||void 0===i?void 0:i.subscription,l=null===(r=this.hotline)||void 0===r||null===(o=r.ui)||void 0===o||null===(a=o.config)||void 0===a?void 0:a.appSubDomain,u=this.session,c=u&&u.user,d=u&&u.siteId,f=c&&c.alias;if(s&&(s.appSubDomain=l,f)){if("subscribe"===this.lastAction)return;e&&e.type?this.logger.log("Webchat:subscribe"):this.logger.log("Widget:subscribe"),this.set("lastAction","subscribe");var h=w.default.EmberModelUrl.subscribePush.url.replace("{token}",u.token).replace("{userAlias}",f);d&&(h+="?siteId=".concat(d)),this.axios.makeRequest({method:"POST",url:h,data:s,cache:!1,contentType:"application/json; charset=UTF-8"}).then((function(){}),(function(){}))}}},{key:"sendUnsubscribeToServer",value:function(e){var t,n,i,r,o,a,s=this,l=null===(t=this.hotline)||void 0===t||null===(n=t.ui)||void 0===n||null===(i=n.push)||void 0===i?void 0:i.subscription,u=null===(r=this.hotline)||void 0===r||null===(o=r.ui)||void 0===o||null===(a=o.config)||void 0===a?void 0:a.appSubDomain,c=this.session,d=c&&c.user,f=c&&c.siteId,p=d&&d.alias;l&&(l.appSubDomain=u,p&&setTimeout(function(){if((0,h.Z)(this,s),"unsubscribe"!==this.lastAction){e&&e.type?this.logger.log("Webchat:unsubscribe"):this.logger.log("Widget:unsubscribe"),this.set("lastAction","unsubscribe");var t=w.default.EmberModelUrl.subscribePush.url.replace("{token}",c.token).replace("{userAlias}",d.alias);f&&(t+="?siteId=".concat(f)),this.axios.makeRequest({method:"DELETE",url:t,data:l,cache:!1,contentType:"application/json; charset=UTF-8"})}}.bind(this),300))}},{key:"playEmptySound",value:function(e){var t,n,i,r;if(!((null==e?void 0:e.disableNotifications)||this.session.isMultiWidget&&!(null!==(t=this.hotline.ui.config)&&void 0!==t&&null!==(n=t.advancedOptionsConfig)&&void 0!==n&&n.enableNotificationSound)||!("Audio"in window)||null!==(i=this.session)&&void 0!==i&&null!==(r=i.config)&&void 0!==r&&r.isFCSDKWebView))try{var o=new Audio;return o.canPlayType&&o.canPlayType("audio/mpeg;").replace(/no/,"")&&(o.volume=0,o.src=S),void(o.autoplay=!0)}catch(e){this.logger.log("Media Feature Pack may not been installed")}}},{key:"playSound",value:function(){var e,t,n,i,r,o,a,s;if(!((null===(e=this.session)||void 0===e||null===(t=e.config)||void 0===t?void 0:t.disableNotifications)||this.session.isMultiWidget&&!(null!==(n=this.hotline.ui.config)&&void 0!==n&&null!==(i=n.advancedOptionsConfig)&&void 0!==i&&i.enableNotificationSound))){var l,u,c=null===(r=this.hotline)||void 0===r||null===(o=r.ui)||void 0===o?void 0:o.hop,d=null===(a=this.session)||void 0===a?void 0:a.token,f=null===(s=this.session)||void 0===s?void 0:s.siteId,h=f?"hop-".concat(d,"-").concat(f):"hop-".concat(d);if(c===this.localStorage.getItemLS("hop",h))if("Audio"in window&&(null===(l=this.session)||void 0===l||null===(u=l.config)||void 0===u||!u.isFCSDKWebView))try{var p=new Audio;return p.canPlayType&&p.canPlayType("audio/mpeg;").replace(/no/,"")&&(p.src=S),void(p.autoplay=!0)}catch(e){this.logger.log("Media Feature Pack may not been installed")}}}},{key:"isPushSupportedByBrowser",value:function(){var e,t,n,i,r,o,a,s,l=!1,u=!1;i=window.navigator,r=i.vendor,o=i.userAgent&&i.userAgent.toLowerCase().indexOf("chrome")>-1,a=i.userAgent.indexOf("OPR")>-1,s=i.userAgent.indexOf("Edge")>-1,null!=o&&"Google Inc."===r&&!1===a&&!1===s&&(e=!!(n=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./))&&parseInt(n[2],10))&&(l=e>=50),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&(t=function(){var e=navigator.userAgent,t=e.indexOf("Firefox"),n=e.substring(t+8).split(".");return!(!n||!n.length)&&parseInt(n[0],10)}(),t&&(u=t>=44));var c="serviceWorker"in navigator,d=function(){var e=!1;try{window.ServiceWorkerRegistration&&"showNotification"in window.ServiceWorkerRegistration.prototype&&(e=!0)}catch(e){this.logger.log(e)}return e}(),f="PushManager"in window;return c&&d&&f&&(l||u)}}]),n}(Ember.Service),c=(0,Z.Z)(u.prototype,"localStorage",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,Z.Z)(u.prototype,"postMessage",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,Z.Z)(u.prototype,"axios",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,Z.Z)(u.prototype,"subscribeCB",[a],Object.getOwnPropertyDescriptor(u.prototype,"subscribeCB"),u.prototype),(0,Z.Z)(u.prototype,"unsubscribeCB",[s],Object.getOwnPropertyDescriptor(u.prototype,"unsubscribeCB"),u.prototype),(0,Z.Z)(u.prototype,"unloadCB",[l],Object.getOwnPropertyDescriptor(u.prototype,"unloadCB"),u.prototype),u)},20083:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(31659)},4173:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(27121)},37671:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return A}});var i,r,o,a,s,l,u,c=n(64076),d=n(81190),f=n(91392),h=n(22081),p=n(18542),m=n(58204),g=n(18419),v=n(38461),b=n(94232),y=n(40990),E=n(43958),Z=n(45652),w=n(82557),T=n(6937),S=n(81353);function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,b.Z)(e);if(t){var r=(0,b.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,v.Z)(this,n)}}var A=(i=Ember.inject.service,r=Ember.inject.service,o=Ember.inject.service,a=function(e){(0,g.Z)(n,e);var t=I(n);function n(){var e;(0,f.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o2&&void 0!==arguments[2]&&arguments[2];if(e&&t){if(-1===e.indexOf(l.default.EventType.TIMER)&&this.fired[e]&&n)return t();void 0===this.queue[e]&&(this.queue[e]=[]),this.queue[e].push(t)}}},{key:"clear",value:function(e){e&&-1!==e.indexOf(l.default.EventType.TIMER)&&(this.queue[e]?(this.queue[e]=void 0,Ember.sendEvent(this,"didClear",[e])):Ember.sendEvent(this,"didFail",[e]))}},{key:"deque",value:function(e){var t=this.queue[e];if(void 0!==t){for(;t.length;)t.shift()();-1===e.indexOf(l.default.EventType.TIMER)&&(this.fired[e]=!0),this.queue[e]=void 0,Ember.sendEvent(this,"didTrigger",[e])}}}]),n}(Ember.Service)},41618:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=n(91392),r=n(22081),o=n(18542),a=n(18419),s=n(38461),l=n(94232),u=n(76459);function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,l.Z)(e);if(t){var r=(0,l.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,s.Z)(this,n)}}var d=function(e){(0,a.Z)(n,e);var t=c(n);function n(e,r){var a;return(0,i.Z)(this,n),a=t.call(this,e,r),(0,u.Z)((0,o.Z)(a),"id",null),Ember.set((0,o.Z)(a),"id",0),a}return(0,r.Z)(n,[{key:"next",value:function(){return this.id+=1,this.id}}]),n}(Ember.Service)},31003:function(e,t,n){"use strict";n.r(t);var i=n(5953),r=n(64076),o=n(45652),a=n(82557),s=n(66938),l=n(67640),u=n(92759),c=n(59565);t.default=Ember.Service.extend(a.default,{postMessage:Ember.inject.service("post-message"),init:function(){this.campaignChannelName=void 0,this._super.apply(this,arguments);var e=s.default.socket;this.url=e.protocol+e.domain[s.default.hotlineEnv.type],this.connection=void 0,this.invokeCreateAfterLoad=!1,this.rtsScriptFailed=void 0,this._setDefaults(),this._loadRTSScript()},axios:Ember.inject.service(),getSocketId:function(){return this.connection&&this.connection.socket&&this.connection.socket.id},resetFlags:function(){this.connecting=!1,this.reconnecting=!1,this.didReconnect=!1,this.didConnect=!1,this.didDisconnect=!1,this.retryCounter=0},resetTimers:function(){this.stopPing(),this.stopConnectionTimer()},_setDefaults:function(){this.clientId=void 0,this.connectionError=null,this.resetFlags(),this.resetTimers()},_create:function(){var e=this.user,t=this.userToken,n=e&&e.id,i=t&&t.accountId,r=this.hotline.ui.config&&this.hotline.ui.config.rtsServiceId||"",o=t&&t.channelName,a=null==t?void 0:t.campaignChannelName,s=t&&t.privateToken;a&&this.set("campaignChannelName",a),this.connecting||(this.close(),i&&(o||a)&&s&&(this.clientId=n||this.session.omniCookie,this._createConnection(i,r,n,s)))},_loadRTSScript:function(){var e=this;return new Promise(function(t){var n=this;(0,r.Z)(this,e);var i=s.default.rtsCdnUrl&&s.default.rtsCdnUrl[s.default.hotlineEnv.type];if(i){var o=document.createElement("script");o.src=i,o.onload=function(){(0,r.Z)(this,n),this.rtsScriptFailed=!1,this.invokeCreateAfterLoad&&this.create(),t(!0)}.bind(this),o.onerror=function(){(0,r.Z)(this,n),this.rtsScriptFailed=!0,this.onAfterDisconnect(6),t(!1)}.bind(this),document.head.appendChild(o)}else this.rtsScriptFailed=!0,this.onAfterDisconnect(6),this.logger.log("there is no rts script url in config file"),t(!1)}.bind(this))},_createConnection:function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;if(s.default.socket.albDomain)if(s.default.socket.supportAppId){var a,l,u,d,f,h,p=(null===(a=this.hotline)||void 0===a||null===(l=a.ui)||void 0===l||null===(u=l.config)||void 0===u?void 0:u.appId)&&(null===(d=this.hotline)||void 0===d||null===(f=d.ui)||void 0===f||null===(h=f.config)||void 0===h?void 0:h.appId.toString()),m=s.default.socket.supportAppId.indexOf(p);m>-1&&(this.url=s.default.socket.protocol+s.default.socket.albDomain[s.default.hotlineEnv.type])}else this.url=s.default.socket.protocol+s.default.socket.albDomain[s.default.hotlineEnv.type];this.connecting=!0,this.onBeforeConnect(),this.connection=new window.RTS({accId:e,userId:(null==r?void 0:r.toString())||this.session.omniCookie,serviceId:i,token:o,origin:this.url,webURL:this.url,nocookie:!(null!==(t=this.hotline)&&void 0!==t&&null!==(n=t.ui)&&void 0!==n&&n.storageAvailable),onConnect:this.onConnect.bind(this),onConnectError:this.onConnectError.bind(this),onReconnect:this.onConnect.bind(this),onReconnecting:this.onReconnecting.bind(this),onDisconnect:this.onDisconnect.bind(this),onMessage:this.onMessage.bind(this),fetchToken:this.refreshToken.bind(this),isHealthCheckEnabled:!0}),Ember.sendEvent(this,"willConnect"),(0,c.bindEvent)(window,"beforeunload",this.onUnloadRTSCB)},user:Ember.computed("session.user",{get:function(){var e;return null===(e=this.session)||void 0===e?void 0:e.user}}),onUnloadRTSCB:Ember.computed({get:function(){return this.close.bind(this)}}),userToken:Ember.computed("user.token",{get:function(){},set:function(e,t){return t}}),create:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var n,i,a,s,l,u,c,d,f,h,p,m,g,v,b,y,E,Z,w,T,S,I,A,R=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=null===(n=e.hotline)||void 0===n||null===(i=n.ui)||void 0===i||null===(a=i.config)||void 0===a?void 0:a.betaFeatures,window.RTS){t.next=4;break}return e.invokeCreateAfterLoad=!0,t.abrupt("return");case 4:if(null===(s=e.session)||void 0===s||null===(l=s.user)||void 0===l||!l.id){t.next=23;break}if(!e.userToken){t.next=9;break}e._create(),t.next=21;break;case 9:return y=null===(g=e.session)||void 0===g?void 0:g.token,E=null===(v=e.session)||void 0===v?void 0:v.siteId,Z=o.default.EmberModelUrl.webSocket,w=Z.url.replace("{token}",y).replace("{isd2c}",(null===(b=e.session.integrations)||void 0===b?void 0:b.shopify)||!1),T=e.store,E&&(w+="&siteId=".concat(E)),t.prev=11,t.next=14,T.getRequest(Z.model,w);case 14:(S=t.sent)&&!S.errorCode&&S.privateToken?(Ember.set(e,"userToken",S),e._create()):e.onAfterDisconnect(6),t.next=21;break;case 18:t.prev=18,t.t0=t.catch(11),e.onAfterDisconnect(6);case 21:t.next=24;break;case 23:void 0!==(null===(u=e.session)||void 0===u?void 0:u.user.id)||null!==(c=e.session)&&void 0!==c&&c.previewMode||!(m&&m[o.default.enableFmJourneyBetaFeature]&&null!==(d=e.hotline)&&void 0!==d&&null!==(f=d.ui)&&void 0!==f&&null!==(h=f.config)&&void 0!==h&&h.journeyEnabledApp||null!==(p=e.session.integrations)&&void 0!==p&&p.shopify)||(null===(I=window.zargetCookie)||void 0===I||I.setCookie(e.session.omniCookie),e.axios.makeRequest({method:"GET",withCredentials:!0,url:o.default.EmberModelUrl.campaignSocket.url.replace("{token}",null===(A=e.session)||void 0===A?void 0:A.token).replace("{userAlias}",e.session.omniCookie),contentType:"application/json; charset=UTF-8"}).then(function(t){(0,r.Z)(this,R),e.setProperties({userToken:t.data,campaignChannelName:t.data.campaignChannelName}),e._create()}.bind(this)));case 24:case"end":return t.stop()}}),t,this,[[11,18]])})))()},close:function(){this.stopPing(),(0,c.unbindEvent)(window,"beforeunload",this.onUnloadRTSCB),this.connection&&(this.connection.close(),this.connection.disconnect(),Ember.sendEvent(this,"didClose")),this.connection=void 0,this._setDefaults()},onConnect:function(){var e,t,n,i,r,a,s,l,u,c=null===(e=this.hotline)||void 0===e||null===(t=e.ui)||void 0===t||null===(n=t.config)||void 0===n?void 0:n.betaFeatures;this.stopConnectionTimer(),this.didDisconnect=!1,this.connectionError=null,this.connecting?(this.connecting=!1,this.didConnect=!0,Ember.sendEvent(this,"didConnect"),this.logger.log("Connected")):(this.reconnecting=!1,this.didReconnect=!0,Ember.sendEvent(this,"didReconnect"),this.logger.log("Reconnected")),!this.session.omniCookie||null!==(i=this.session)&&void 0!==i&&i.previewMode||!(c&&c[o.default.enableFmJourneyBetaFeature]&&null!==(r=this.hotline)&&void 0!==r&&null!==(a=r.ui)&&void 0!==a&&null!==(s=a.config)&&void 0!==s&&s.journeyEnabledApp||null!==(l=this.session.integrations)&&void 0!==l&&l.shopify)?this.connectVisitorChannel():this.connectCampaignChannel(),null!==(u=this.user)&&void 0!==u&&u.id&&this.connectUserChannel()},onConnectError:function(e){this.connectionError?this.removeSocketListener("connect_error"):(this.logger.log("Connection Error"),e&&e.type&&(this.connectionError=e,this.onAfterDisconnect(0)))},removeSocketListener:function(e){this.connection&&e&&this.connection.removeSocketListeners(e)},onBeforeConnect:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e4;this.resetTimers(),this.notConnected=setInterval(function(){(0,r.Z)(this,e),this.onAfterDisconnect(t)}.bind(this),n)},stopConnectionTimer:function(){this.notConnected&&(clearInterval(this.notConnected),this.notConnected=null)},onAfterDisconnect:function(e){var t,n;this.logger.log("Unable to connect"),this.logger.log("Flag => ".concat(e)),this.resetFlags(),this.resetTimers(),this.didDisconnect=!0,6===e?Ember.sendEvent(this,"scriptLoadFailed"):(Ember.sendEvent(this,"didDisconnect"),this.isDestroyed&&this.isDestroying||this.postMessage.post({action:"rts_disconnected",status:200,success:!0,data:{connected:!1}})),null!==(t=this.hotline)&&void 0!==t&&null!==(n=t.ui)&&void 0!==n&&n.onLine},onDisconnect:function(e,t){if(!t||parseInt(t.userId,10)===parseInt(this.clientId,10))if(this.clientId)this.logger.log("Disconnected"),this.resetFlags(),this.resetTimers(),this.connecting=!0,Ember.sendEvent(this,"willConnect"),this.onBeforeConnect(1,5e3);else if(e&&"forced close"===e.toLocaleLowerCase()){var n,i;null!==(n=this.session)&&void 0!==n&&null!==(i=n.user)&&void 0!==i&&i.id&&this.onAfterDisconnect(5)}},onReconnecting:function(){this.logger.log("Reconnecting"),Ember.sendEvent(this,"didConnect"),this.resetFlags(),this.resetTimers(),this.reconnecting=!0,Ember.sendEvent(this,"willReconnect"),this.onBeforeConnect(2,5e3)},onMessage:function(e){e&&"PONG"===e.event&&this.onPong()},connectCampaignChannel:function(){this.connection&&this.open(null==this?void 0:this.campaignChannelName,this.onCampaignMessage,null,2)},connectVisitorChannel:function(){if(this.connection){var e,t,n,i=null===(e=this.hotline)||void 0===e||null===(t=e.ui)||void 0===t||null===(n=t.config)||void 0===n?void 0:n.publicChannelName;i&&this.open(i,null,null,640)}},connectUserChannel:function(){if(this.connection){var e=this.userToken;e&&e.channelName&&(this.open(e.channelName,this.onPrivate,this.onSubscription,2),this.open("typing.".concat(e.channelName),this.onPrivate,null,0))}},open:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3?arguments[3]:void 0;this.connection&&this.connection.subscribe(e,function(o,s){(0,r.Z)(this,n),o?(this.logger.log("Not Subscribed 🙁"),this.retryCounter++,1===this.retryCounter?this.open(e,t,i,a):this.onAfterDisconnect(4)):(this.logger.log("Subscribed 👍🏾"),this.executeConnectionHandler(i,s),this.handleSubscriptionWithDisconnect(this.userToken))}.bind(this),{messageHandler:function(e){(0,r.Z)(this,n);var i=e&&2===e.mtyp;e&&"ADVICE_PULL"===e.event?Ember.sendEvent(this,"didAdvicePull",[{channel:e.channel,reset:!0,src:o.default.CONVERSATION.FETCH.RTS_ADVICE_PULL}]):i&&t&&"function"==typeof t&&t.call(this,e.msg,e.id,e.seq)}.bind(this),opt:a})},executeConnectionHandler:function(e,t){e&&"function"==typeof e&&(e.call(this,t),this.startPing())},sendMessage:function(e,t){if(this.connection){var n,i,r=e&&"is_typing"===e.action,o=r?"typing.".concat(null==this||null===(n=this.userToken)||void 0===n?void 0:n.channelName):null==this||null===(i=this.userToken)||void 0===i?void 0:i.channelName;this.connection.publish(o,e,null,{msgType:r?1:0,traceId:t&&t.ti||void 0})}},sendAck:function(e,t,n){if(this.connection){var i,r=e&&e.messageId?{messageId:e.messageId,millis:e.createdMillis}:{};this.connection.sendAck(null===(i=this.userToken)||void 0===i?void 0:i.channelName,t.toString(),this.clientId.toString(),n,{message:r})}},onCampaignMessage:function(e,t,n){var i=(0,u.safelyParseJSON)(e)||{};i.userId||Ember.sendEvent(this,"didCampaignMessage",[i,t,n])},onPrivate:function(e,t,n){var i=(0,u.safelyParseJSON)(e)||{};Ember.sendEvent(this,"didRTSMessage",[i,t,n]),i.userId||Ember.sendEvent(this,"didUserMessage",[i,t,n])},onSubscription:function(e){var t,n;this.didReconnect?(this.didReconnect=!1,Ember.sendEvent(this,"didAdvicePull",[{channel:e.channel,reset:!1,src:o.default.CONVERSATION.FETCH.RTS_RECONNECT_SUCCESS}])):Ember.sendEvent(this,"didAdvicePull",[{channel:null!==(t=this.session)&&void 0!==t&&null!==(n=t.config)&&void 0!==n&&n.showFAQOnOpen?null:e.channel,reset:!1,src:o.default.CONVERSATION.FETCH.RTS_CONNECT_SUCCESS}])},startPing:function(){this.timer||(this.timer=l.Z.create({onPoll:this.onPing.bind(this),interval:12e4}),this.timer.start())},onPing:function(){var e=this;this.notPong||(this.notPong=setInterval(function(){(0,r.Z)(this,e),this.onAfterDisconnect(3)}.bind(this),5e3),this.connection.ping())},onPong:function(){this.notPong&&(clearInterval(this.notPong),this.notPong=null)},stopPing:function(){this.onPong(),this.timer&&(this.timer.stop(),this.timer=null)},healthCheck:function(){var e,t,n;this.user&&null!==(e=this.user)&&void 0!==e&&e.id&&null!==(t=this.hotline)&&void 0!==t&&null!==(n=t.ui)&&void 0!==n&&n.onLine&&(this.connecting||this.reconnecting||(this.connection&&this.connection.connected&&!this.didDisconnect?this.timer||(this.close(),this.create()):this.create()))},checkForSubscription:function(){if(this.connection){var e=this.userToken;if(e){var t,n,i;this.handleSubscriptionWithDisconnect(e);var r=null===(t=this.hotline)||void 0===t||null===(n=t.ui)||void 0===n||null===(i=n.config)||void 0===i?void 0:i.publicChannelName;this.connection.channels[r]&&this.connection.channels[r].connected&&!this.didDisconnect||this.connectVisitorChannel(),this.connection.channels[e.channelName]&&this.connection.channels[e.channelName].connected&&!this.didDisconnect||this.connectUserChannel()}}},handleSubscriptionWithDisconnect:function(e){if(e){var t,n,i,r=null===(t=this.hotline)||void 0===t||null===(n=t.ui)||void 0===n||null===(i=n.config)||void 0===i?void 0:i.publicChannelName;this.isBothChannelSubscribed(r,e)&&this.didDisconnect&&(this.didDisconnect=!1,this.reconnecting?this.didReconnect=!0:this.didConnect=!0,Ember.sendEvent(this,"didConnect"))}},isBothChannelSubscribed:function(e,t){return!!(this.connection.channels[e]&&this.connection.channels[e].connected&&this.connection.channels[t.channelName]&&this.connection.channels[t.channelName].connected)},reset:Ember.observer("hotline.ui.onLine",(function(){this.hotline.ui.onLine?this.logger.log("Online"):(this.resetFlags(),this.resetTimers(),this.logger.log("Offline"))})),hasConnectionInitialized:function(){return!!this.connection},refreshToken:function(e){var t,n,i=this,a=null===(t=this.session)||void 0===t?void 0:t.token,s=o.default.EmberModelUrl.rtsRefreshToken.url.replace("{token}",a).replace("{isd2c}",(null===(n=this.session.integrations)||void 0===n?void 0:n.shopify)||!1);this.axios.makeRequest({method:"POST",url:s}).then(function(t){(0,r.Z)(this,i);var n=t&&t.data&&t.data.privateToken;n?e(n):e()}.bind(this),function(){(0,r.Z)(this,i),e()}.bind(this))}})},43318:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return I}});var i,r,o,a,s,l=n(64076),u=n(81190),c=n(91392),d=n(22081),f=n(18542),h=n(18419),p=n(38461),m=n(94232),g=n(40990),v=n(92759),b=n(50486),y=n(82557),E=n(6937),Z=n(68422),w=n(45652),T=n(68103);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,m.Z)(e);if(t){var r=(0,m.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,p.Z)(this,n)}}var I=(i=Ember.inject.service,r=Ember.inject.service("local-storage"),o=function(e){(0,h.Z)(n,e);var t=S(n);function n(){var e;(0,c.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o2&&void 0!==arguments[2])||arguments[2],o=this.userBehaviour,a=o&&o.get("eventConditions"),s=a.findBy("eventConditionId",e),u=!!s;return s||(s=Ember.Object.create({occurrenceCount:0})),t=t||[],s&&(n=t.reduce(function(e,t){(0,l.Z)(this,i);var n=!1;switch(t.key){case"LAST_OCCURRED":n=this.checkDaterelativeCondition(t,s.get("lastOccurredMillis"));break;case"FIRST_OCCURRED":n=this.checkDaterelativeCondition(t,s.get("firstOccurredMillis"));break;case"COUNT":n=(0,v.checkCondition)(t.dataType,t.conditionType,s.get("occurrenceCount"),t.value)}return r?e&&n:e||n}.bind(this),r)),t.length?n:u}},{key:"evaluateEventConditions",value:function(e,t){var n,i=this;return n=(e=e||[]).reduce(function(e,n){(0,l.Z)(this,i);var r=this.evaluateOccurrenceConditions(n.eventConditionId,n.occurrenceConditions,!0);return t?e&&r:e||r}.bind(this),t),e.length?n:t}},{key:"processSegment",value:function(e){var t,n,i=e.userConditions||[],r=e.eventConditions||[],o="ALL"===e.conditionMatchType,a=o;return t=this.evaluateUserConditions(i,o),n=this.evaluateEventConditions(r,o),{isMatch:a=o?(a=a&&t.isMatch)&&n:(a=a||t.isMatch)||n,delay:t.delay}}},{key:"processRule",value:function(e){for(var t=e&&e.segments||[],n="ALL"===e.segmentMatchType,i=n,r=0,o=0,a=t.length;or?l.delay:r;else if(i=i||l.isMatch){r=l.delay||0;break}}return{isMatch:i,delay:r}}},{key:"canTriggerEventForRule",value:function(e,t,n){var i=!1;switch(n.triggerType){case"PAGE":i="fc_page"===e||!!t[n.ruleId];break;case"EVENT":i="fc_page"!==e&&!!t[n.ruleId];break;default:i=!0}return i}},{key:"maxTriggerCheck",value:function(e){var t=this.userBehaviour,n=t&&t.get("executedRules"),i=n&&n.findBy("ruleId",e.ruleId),r=i&&i.get("sentCount")||0,o=i&&i.get("sentCountSession")||0,a=e.command.commandValue;return!a.hasMaxTrigger||!a.maxTriggerCount||(r&&"FOREVER"===a.maxTriggerType?r-1?e.command.delay=u:e.command.delay=0,e.command.ruleId=e.ruleId}.bind(this)),n(r)}.bind(this),function(e){(0,l.Z)(this,i),console.log(e)}.bind(this))}.bind(this))}},{key:"processRules",value:function(e,t){var n,i,r,o,a,s,u,c,d,f,h,p=this,m=null===(n=this.hotline)||void 0===n||null===(i=n.ui)||void 0===i?void 0:i.userBehaviour,g=null===(r=this.hotline)||void 0===r||null===(o=r.ui)||void 0===o||null===(a=o.config)||void 0===a?void 0:a.betaFeatures,v=g&&g[w.default.enableFmJourneyBetaFeature],b=(null===(s=this.session)||void 0===s||!s.previewMode)&&v&&null!==(u=this.hotline)&&void 0!==u&&null!==(c=u.ui)&&void 0!==c&&null!==(d=c.config)&&void 0!==d&&d.journeyEnabledApp||null!==(f=this.session.integrations)&&void 0!==f&&f.shopify?[]:m&&m.eventRules||[];return null!==(h=this.session)&&void 0!==h&&h.campaignRuleIds&&(b=b.filter(function(e){var t;return(0,l.Z)(this,p),null===(t=this.session)||void 0===t?void 0:t.campaignRuleIds.includes(e.ruleId)}.bind(this))),new Ember.RSVP.Promise(function(n){var i=this;(0,l.Z)(this,p);var r=[];b.forEach(function(n){var o;if((0,l.Z)(this,i),null!==(o=this.session)&&void 0!==o&&o.campaignRuleIds){n.command.delay=0,n.command.ruleId=n.ruleId,r.push(n)}else{var a=!1;if(this.getAwayMessage(n)&&n&&n.command&&n.command.commandValue&&n.command.commandValue.skipBusinessHours&&(a=!0),n.enabled&&this.maxTriggerCheck(n)&&this.canTriggerEventForRule(e,t,n)&&!a){var s=this.processRule(n.segment);s.isMatch&&(n.command.delay=s.delay,n.command.ruleId=n.ruleId,r.push(n))}}}.bind(this)),n(r)}.bind(this))}}]),n}(Ember.Service.extend(y.default,E.default)),a=(0,g.Z)(o.prototype,"axios",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,g.Z)(o.prototype,"localStorage",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},31554:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return O}});var i,r,o,a,s,l,u,c,d,f,h,p,m,g=n(64076),v=n(81190),b=n(91392),y=n(22081),E=n(18542),Z=n(18419),w=n(38461),T=n(94232),S=n(76459),I=n(40990),A=n(45652),R=n(92759);function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,T.Z)(e);if(t){var r=(0,T.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,w.Z)(this,n)}}var O=(i=Ember.inject.service,r=Ember.inject.service,o=Ember.inject.service,a=Ember.inject.service,s=Ember.inject.service,l=Ember.inject.service("post-message"),u=function(e){(0,Z.Z)(n,e);var t=C(n);function n(e,i){var r,o=this;return(0,b.Z)(this,n),r=t.call(this,e,i),(0,S.Z)((0,E.Z)(r),"CONVERSATION",A.default.CONVERSATION),(0,v.Z)((0,E.Z)(r),"rts",c,(0,E.Z)(r)),(0,v.Z)((0,E.Z)(r),"session",d,(0,E.Z)(r)),(0,v.Z)((0,E.Z)(r),"logger",f,(0,E.Z)(r)),(0,v.Z)((0,E.Z)(r),"hotline",h,(0,E.Z)(r)),(0,v.Z)((0,E.Z)(r),"cache",p,(0,E.Z)(r)),(0,v.Z)((0,E.Z)(r),"postMessage",m,(0,E.Z)(r)),window.addEventListener("message",function(e){var t,n=this;(0,g.Z)(this,o);var i=null===(t=r.session)||void 0===t?void 0:t.token;if(e&&e.data&&"startScreenShare"===e.data.event_id){if(e.data.cb_data){var a=e.data.cb_data,s=a.room,l=a.conversationId,u=a.messageId,c=a.name,d=a.role,f=a.sdata,h=a.app_alias,p=a.viewerId,m=a.messageUserId,v=a.cobrowsingId,b=a.startTime;r.axios.makeRequest({url:"/app/services/app/webchat/".concat(i,"/cbstatus"),contentType:"application/json; charset=UTF-8",method:"PUT",data:{conversationId:l,messageId:u,messageType:A.default.CONVERSATION.MESSAGE_TYPE.SCREEN_SHARING.ACCEPTED,room:s,name:c,role:d,sdata:f,app_alias:h,messageUserId:m,viewerId:p,cobrowsingId:v}}).then(function(){(0,g.Z)(this,n),r.sendMessage("".concat(h,"-cobrowse-").concat(l),{event:"coBrowsingAccepted",room:s,conversationId:l,messageId:u,name:c,role:d,sdata:f,app_alias:h,viewerId:p,messageUserId:m,startTime:b})}.bind(this),function(){(0,g.Z)(this,n),r.sendMessage("".concat(h,"-cobrowse-").concat(l),{event:"coBrowsingError"})}.bind(this))}}else if(e&&e.data&&"endScreenShare"===e.data.event_id){var y,E,Z=(new Date).getTime(),w=sessionStorage.getItem("_fc_ongoing_cb_id"),T={msgHopId:Z+"_"+(null===(y=r.hotline)||void 0===y||null===(E=y.ui)||void 0===E?void 0:E.hop),messageType:A.default.CONVERSATION.MESSAGE_TYPE.SCREEN_SHARING.ENDED,messageUserType:A.default.CONVERSATION.USER_TYPE.USER,channelId:e.data.channelId,createdMillis:(new Date).getTime(),cobrowsingId:w,messageFragments:[{fragmentType:A.default.CONVERSATION.FRAGMENT_TYPE.TEXT,contentType:"text/html",content:"SCREEN SHARING ENDED"}]};r.createMessage(T)}}.bind(this)),r}return(0,y.Z)(n,[{key:"accept",value:function(e){window.parent.postMessage({event_id:"startScreenShare",cbData:e},"*")}},{key:"startCoBrowsing",value:function(e){var t,n=this,i=null===(t=this.session)||void 0===t?void 0:t.token,r=e.room,o=e.conversationId,a=e.messageId,s=e.name,l=e.role,u=e.sdata,c=e.app_alias,d=e.viewerId,f=e.messageUserId,h=e.cobrowsingId,p=e.startTime;this.axios.makeRequest({url:"/app/services/app/webchat/".concat(i,"/cbstatus"),contentType:"application/json; charset=UTF-8",method:"PUT",data:{conversationId:o,messageId:a,messageType:A.default.CONVERSATION.MESSAGE_TYPE.SCREEN_SHARING.ACCEPTED,room:r,name:s,role:l,sdata:u,app_alias:c,messageUserId:f,viewerId:d,cobrowsingId:h}}).then(function(){(0,g.Z)(this,n),this.sendMessage("".concat(c,"-cobrowse-").concat(o),{event:"coBrowsingAccepted",room:r,conversationId:o,messageId:a,name:s,role:l,sdata:u,app_alias:c,viewerId:d,messageUserId:f,startTime:p})}.bind(this),function(){(0,g.Z)(this,n),this.sendMessage("".concat(c,"-cobrowse-").concat(o),{event:"coBrowsingError"})}.bind(this))}},{key:"endCoBrowsing",value:function(e){var t,n,i=(new Date).getTime(),r=sessionStorage.getItem("_fc_ongoing_cb_id"),o={msgHopId:i+"_"+(null===(t=this.hotline)||void 0===t||null===(n=t.ui)||void 0===n?void 0:n.hop),messageType:A.default.CONVERSATION.MESSAGE_TYPE.SCREEN_SHARING.ENDED,messageUserType:A.default.CONVERSATION.USER_TYPE.USER,channelId:e.channelId,createdMillis:(new Date).getTime(),cobrowsingId:r,messageFragments:[{fragmentType:A.default.CONVERSATION.FRAGMENT_TYPE.TEXT,contentType:"text/html",content:"SCREEN SHARING ENDED"}]};this.createMessage(o)}},{key:"deny",value:function(e){var t=this;this.axios.makeRequest({url:"/app/services/app/webchat/".concat(e.token,"/cbstatus"),contentType:"application/json; charset=UTF-8",method:"PUT",data:{conversationId:e.conversationId,messageId:e.messageId,messageType:A.default.CONVERSATION.MESSAGE_TYPE.SCREEN_SHARING.DENIED}}).then(function(){(0,g.Z)(this,t),this.logger.log("Successfully denied the cobrowsing"),this.sendMessage("".concat(e.app_alias,"-cobrowse-").concat(e.conversationId),{event:"coBrowsingDenied"})}.bind(this),function(){(0,g.Z)(this,t),this.sendMessage("".concat(e.app_alias,"-cobrowse-").concat(e.conversationId),{event:"coBrowsingDenied"})}.bind(this))}},{key:"acceptAudioCall",value:function(e){var t=e.data;this.sendMessage("".concat(t.app_alias,"-cobrowse-").concat(t.conversationId),{event:"acceptAudioCall"})}},{key:"denyAudioCall",value:function(e){var t=e.data;this.sendMessage("".concat(t.app_alias,"-cobrowse-").concat(t.conversationId),{event:"denyAudioCall"})}},{key:"createMessage",value:function(e){var t=this,n=this.session,i=n&&n.user,r=n&&n.siteId,o=A.default.EmberModelUrl.message.url.replace("{token}",n.token).replace("{userAlias}",i.alias);r&&(o+="?siteId=".concat(r)),this.axios.makeRequest({method:"POST",url:o,data:e,contentType:"application/json; charset=utf-8"}).then(function(){(0,g.Z)(this,t),this.logger.log("message created successfully")}.bind(this),function(){(0,g.Z)(this,t),this.logger.log("Error in creating the messages")}.bind(this))}},{key:"sendMessage",value:function(e,t){var n=this,i=this.rts;i.connection.subscribe(e,function(r){(0,g.Z)(this,n),r&&this.logger.log("Error in subscribing to the channel",r),Ember.run.later((function(){i.connection.publish(e,t)}),3e3)}.bind(this),{messageHandler:function(e){(0,g.Z)(this,n),this.handleCobrowsingMessages(e)}.bind(this)})}},{key:"handleCobrowsingMessages",value:function(e){if("requestForAudioCall"===(0,R.safelyParseJSON)(e.msg).event)this.postMessage.post({action:"requestForAudioCall"})}}]),n}(Ember.Service),c=(0,I.Z)(u.prototype,"rts",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,I.Z)(u.prototype,"session",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,I.Z)(u.prototype,"logger",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,I.Z)(u.prototype,"hotline",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,I.Z)(u.prototype,"cache",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,I.Z)(u.prototype,"postMessage",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u)},60478:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var i,r,o,a=n(81190),s=n(91392),l=n(22081),u=n(18542),c=n(18419),d=n(38461),f=n(94232),h=n(40990),p=n(66938);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,f.Z)(e);if(t){var r=(0,f.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,d.Z)(this,n)}}var g=(i=Ember.inject.service,r=function(e){(0,c.Z)(n,e);var t=m(n);function n(e,i){var r;return(0,s.Z)(this,n),r=t.call(this,e,i),(0,a.Z)((0,u.Z)(r),"hotline",o,(0,u.Z)(r)),r.user={},r}return(0,l.Z)(n,[{key:"appLogoUrl",get:function(){if(!this.appLogoURL){var e,t,n,i,r,o,a,s,l,u,c,d=null===(e=this.hotline)||void 0===e||null===(t=e.ui)||void 0===t||null===(n=t.config)||void 0===n?void 0:n.appId,f=(null===(i=this.hotline)||void 0===i||null===(r=i.ui)||void 0===r||null===(o=r.config)||void 0===o?void 0:o.appSubDomain)||d,h=null===(a=this.hotline)||void 0===a||null===(s=a.ui)||void 0===s||null===(l=s.config)||void 0===l?void 0:l.appLogoPath,m=null===(u=this.config)||void 0===u||null===(c=u.headerProperty)||void 0===c?void 0:c.appLogo,g=h&&p.default.webpush.protocol+p.default.webpush.domain[p.default.hotlineEnv.type].replace("{appName}",f)+h;this.appLogoURL=m||g}return this.appLogoURL}}]),n}(Ember.Service),o=(0,h.Z)(r.prototype,"hotline",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},50760:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return C}});var i,r,o,a,s,l,u,c,d,f=n(64076),h=n(81190),p=n(91392),m=n(22081),g=n(18542),v=n(18419),b=n(38461),y=n(94232),E=n(76459),Z=n(40990),w=n(82557),T=n(56937),S=n(45652),I=n(44454),A=n(14161);function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,y.Z)(e);if(t){var r=(0,y.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,b.Z)(this,n)}}var C=(i=Ember.inject.service,r=Ember.inject.service,o=Ember.inject.service,a=Ember.inject.service("post-message"),s=function(e){(0,v.Z)(n,e);var t=R(n);function n(){var e;(0,p.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=S.default.EmberModelUrl,u=this.session,c=this.localds,d=u&&u.user,h=u&&u.siteId,p=u&&u.token,m=c&&c.messageAfter||u&&u.didMessage,g=l.conversations,v=g.url.replace("{token}",p).replace("{userAlias}",d.alias),b={src:a?S.default.CONVERSATION.FETCH.SMART_POLL_REQ:S.default.CONVERSATION.FETCH.CHANNELS_LOADED,limit:S.default.CONVERSATION.LIMIT},y=null===(t=this.hotline)||void 0===t||null===(n=t.ui)||void 0===n?void 0:n.conversationReferenceId;0!==this.messageAfterMillis.length?b.messageAfter=null===(r=this.messageAfterMillis[0])||void 0===r?void 0:r.createdMillis:m&&(b.messageAfter=m);if(b.src===S.default.CONVERSATION.FETCH.CHANNELS_LOADED&&this.isParallelFeatureEnabled&&(this.session.isMessageAfterSent||delete b.messageAfter,b.page=1,b.conversationsPerPage=S.default.CONVERSATION.PAGE_COUNT,b.isParallelConversation=!0),s){delete b.messageAfter;var E=this.session.currentPage||0;b.isParallelConversation=!0,b.conversationsPerPage=S.default.CONVERSATION.PAGE_COUNT,b.page=E+1}y&&(b.conversationReferenceId=y),b.hideResolvedConversation=(0,I.isHideResolvedConversationEnabled)(null===(i=this.hotlineUI)||void 0===i?void 0:i.config),h&&(v+="?siteId=".concat(h)),this.store.getRequest(g.model,v,b).then(function(t){var n=this;if((0,f.Z)(this,o),(!this.isDestroyed||!this.isDestroying)&&t&&t.conversations){var i,r,l,u;if((null===(i=this.hotline)||void 0===i||null===(r=i.ui)||void 0===r||null===(l=r.offlineExperience)||void 0===l||null===(u=l.awayMessage)||void 0===u?void 0:u.localeId)!==S.default.DefaultLocale&&this.replaceUnrepliedOfflineMessageWithCurrentLocaleMessage(),a){var c,d,h,p=null===(c=this.conversations)||void 0===c?void 0:c.objectAt(0).get("messages"),m=t.conversations&&(null===(d=t.conversations[0])||void 0===d?void 0:d.messages),g=[];null==m||m.forEach(function(e){var t=this;(0,f.Z)(this,n),p.find(function(n){return(0,f.Z)(this,t),(null==n?void 0:n.messageId)===e.id}.bind(this))||g.push(e)}.bind(this)),window.parent.postMessage({action:"smart_polling",unreadMessages:g,icon:"".concat(null===(h=this.session)||void 0===h?void 0:h.appHost,"/assets/freshchat_logo.png")},this.postMessage.origin)}this.set("session.isMessageAfterSent",!0),this.set("session.currentPage",t.page),e(t.conversations,s)}}.bind(this))}},{key:"setMessageAfterMillis",value:function(e,t){5===this.messageAfterMillis.length&&this.messageAfterMillis.shift(),this.messageAfterMillis.push({type:e,createdMillis:t})}},{key:"startSmartPoll",value:function(e){var t=this;this.smartPollThread||(this.logger.log("Smartpoll Started"),this.smartPollThread=Ember.run.later(function(){(0,f.Z)(this,t),this.fetchConversations(e,!0),this.logger.log("Executing Smartpoll")}.bind(this),S.default.FETCH_CONVERSATION_SMART_POLL_INTERVAL))}},{key:"clearMessageAfterMillis",value:function(){this.messageAfterMillis=[]}},{key:"clearSmartPoll",value:function(){this.smartPollThread&&(Ember.run.cancel(this.smartPollThread),this.smartPollThread=void 0,this.logger.log("Smartpoll Stopped"))}},{key:"replaceUnrepliedOfflineMessageWithCurrentLocaleMessage",value:function(){var e,t,n,i,r,o,a=this,s=this.conversations,l=this.localds,u=null===(e=this.hotline)||void 0===e||null===(t=e.ui)||void 0===t||null===(n=t.offlineExperience)||void 0===n||null===(i=n.awayMessage)||void 0===i||null===(r=i.messageFragments)||void 0===r||null===(o=r.firstObject)||void 0===o?void 0:o.content;s&&s.forEach(function(e){var t=this;(0,f.Z)(this,a);var n=e&&e.get("messages").toArray();n&&n.forEach(function(e){(0,f.Z)(this,t),e&&!0===e.get("offlineMessage")&&e&&!1===e.get("hasBeenRepliedToOffline")&&e.get("messageFragments.firstObject.content")!==u&&e.set("messageFragments.firstObject.content",u)}.bind(this))}.bind(this)),l&&l.save()}}]),n}(Ember.Service.extend(T.default,A.default,w.default)),l=(0,Z.Z)(s.prototype,"store",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,Z.Z)(s.prototype,"session",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,Z.Z)(s.prototype,"hotline",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,Z.Z)(s.prototype,"postMessage",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s)},69028:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(80005)},45468:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Z}});var i,r,o,a,s,l,u,c,d,f=n(81190),h=n(91392),p=n(22081),m=n(18542),g=n(18419),v=n(38461),b=n(94232),y=n(40990);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,b.Z)(e);if(t){var r=(0,b.Z)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,v.Z)(this,n)}}var Z=(i=Ember.inject.service("local-storage"),r=Ember.inject.service("post-message"),o=Ember.inject.service,a=Ember.inject.service,s=function(e){(0,g.Z)(n,e);var t=E(n);function n(){var e;(0,h.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o\n\n {{FONT_URL_IMPORT}}\n\n html, body {\n font-family: {{FONT_NAME}} !important;\n }\n .h-chat-custom .odd .h-conv .h-comment,\n .h-chat-custom .h-channel .h-header,\n .h-chat-custom .h-channel .dummy-bar,\n .h-chat-custom .h-conv .h-header,\n .h-chat-custom .odd .h-conv .h-comment,\n .h-chat-custom .h-conv div.body div.message-container.odd span.chat-msg,\n .iframe-modal .h-modal-notes .modal-header,\n .h-chat-custom .odd .h-conv .h-comment.file-attached .h-message-text,\n .h-chat-custom .odd .h-conv .h-comment.media-message .h-message-text {\n background-color: {{HD_BG_COLOR}} !important;\n }\n\n .h-chat-custom .odd .h-conv .h-comment .h-message-text a,\n .hotline-launcher.h-open .viewport .h-conv .faq-content .h-header.article-view-header .category-title .sub-title {\n color: {{HD_FG_COLOR}} !important;\n }\n\n .h-chat-custom .h-channel .h-header {\n border: 0.1px solid {{HD_BG_COLOR}} !important;\n }\n\n .h-chat-custom .h-channel .h-header .icon, .h-chat-custom .h-conv .h-header .icon,\n .h-chat-custom .h-channel .h-header .conv-title, .h-chat-custom .h-conv .h-header .conv-title,\n .h-chat-custom .h-channel .h-header .ic-back, .h-chat-custom .h-conv .h-header .ic-back,\n .h-chat-custom .h-channel .h-header .title, .h-chat-custom .h-conv .h-header .title,\n .h-chat-custom .odd .h-conv .h-comment,\n .h-chat-custom .h-conv div.body div.message-container.odd span.chat-msg,\n .iframe-modal .h-modal-notes .modal-header .frame-title,\n .iframe-modal .h-modal-notes .modal-header .h-close i,\n .preview-bubble {\n color: {{HD_FG_COLOR}} !important;\n }\n\n .h-chat-custom .h-conv div.body div.message-container.odd span.arrow.right {\n border-left-color: {{HD_BG_COLOR}} !important;\n }\n\n .h-chat-custom div.h-conv div.body div.h-conv-chat {\n background-image: url("{{ICON_URL}}") !important;\n }\n .preview-wrapper .top-border{\n border-top: 4px solid {{HD_BG_COLOR}};\n }\n\n .reply-options .reply-option-button,\n .h-reply-wrapper .h-reply-button .h-img-button,\n .actions-button-dropdown .h-img-button,\n .h-chat-custom .h-conv .in-line-reply-fragments .h-conv-chat .fc-carousel-wrapper .h-img-button,\n .h-chat-custom .h-conv .in-line-reply-fragments .h-conv-chat .button-region .h-img-button,\n .h-chat-custom .h-conv .in-line-reply-fragments .h-conv-chat .fc-carousel-cards .h-img-button,\n .hotline-launcher.h-open .viewport .h-channel .home-content .body.sections .card-layout .start-new-conversation button.h-img-button,\n .hotline-launcher.h-open .viewport .h-conv .start-new-conversation button.h-img-button,\n .h-chat-custom .h-conv .in-line-reply-fragments .h-conv-chat .fc-carousel-wrapper .fc-multi-select .button-region .h-img-button {\n border: 1px solid {{HD_BG_BTN_COLOR}};\n }\n\n .reply-options .reply-option-button:hover,\n .h-reply-wrapper .h-reply-button .h-img-button:hover:not([disabled]),\n .h-reply-wrapper .h-reply-button .h-img-button--selected,\n .actions-button-dropdown .h-img-button:hover:not([disabled]),\n .hotline-launcher.h-open .viewport .h-channel .home-content .body.sections .card-layout .start-new-conversation button.h-img-button:hover:not([disabled]),\n .hotline-launcher.h-open .viewport .h-conv .start-new-conversation button.h-img-button:hover:not([disabled]),\n .h-chat-custom .h-conv .in-line-reply-fragments .h-conv-chat .fc-carousel-wrapper .h-img-button:hover:not([disabled]),\n .h-chat-custom .h-conv .in-line-reply-fragments .h-conv-chat .button-region .h-img-button:hover:not([disabled]) {\n background-color: {{HD_BG_BTN_COLOR}} !important;\n color: {{HD_FG_BTN_COLOR}};\n }\n\n .h-reply-wrapper .h-reply-button .btn-selected,\n .h-chat-custom .h-conv .in-line-reply-fragments .h-conv-chat .fc-carousel-cards .h-img-button--selected,\n .h-chat-custom .h-conv .in-line-reply-fragments .h-conv-chat .h-img-button.btn-selected {\n background-color: {{HD_BG_BTN_COLOR}} !important;\n color: {{HD_FG_BTN_COLOR}};\n }\n\n .d-hotline {\n background-color: {{HD_BG_LAUNCHER_COLOR}} !important;\n color: {{HD_FG_LAUNCHER_COLOR}} !important;\n border-color: transparent {{HD_BG_LAUNCHER_COLOR}} transparent transparent;\n }\n\n #chat-icon {\n background: {{HD_FG_LAUNCHER_COLOR}} !important;\n }\n\n #chat-icon::before, #chat-icon::after {\n background-color: {{HD_BG_LAUNCHER_COLOR}} !important;\n }\n\n .loader {\n border-top: 1em solid rgba({{HD_BG_COLOR}}, 0.4);\n border-right: 1.05em solid {{HD_BG_COLOR}};\n border-bottom: 1.05em solid {{HD_BG_COLOR}};\n border-left: 1.05em solid {{HD_BG_COLOR}};\n }\n\n .article-modal .modal-footer .h-message-us-btn:hover,\n .article-modal .modal-footer .article_vote:hover {\n background-color: {{HD_BG_COLOR}} !important;\n color : {{HD_FG_COLOR}} !important;\n }\n\n /* .article-content .modal-footer .h-message-us-btn:hover,\n .article-content .modal-footer .article_vote:hover {\n background-color: {{HD_BG_COLOR}} !important;\n color : {{HD_FG_COLOR}} !important;\n } */\n\n .tabs .tabs-inner:after{\n background-color: {{HD_BG_COLOR}} !important;\n }\n\n .chat-btn:hover{\n background-color: {{HD_BG_BTN_COLOR}} !important;\n color: {{HD_FG_BTN_COLOR}} !important;\n border: 0 !important;\n }\n\n .submit-rating .submit.btn {\n background-color: {{HD_BG_BTN_COLOR}} !important;\n color: {{HD_FG_BTN_COLOR}} !important;\n }\n\n .send-offline-reply .send-message {\n background-color: {{HD_BG_BTN_COLOR}} !important;\n color: {{HD_FG_BTN_COLOR}} !important;\n }\n\n .h-comment.h-wrapped-article .articles-listview .article-showmore,\n .fc-conversation-view div.body .h-chat-window .fc-agent-profile .u-social-network div i{\n color: {{HD_BG_COLOR}} !important;\n }\n\n .h-chat-custom .odd .h-conv .h-comment.file-attached,\n .h-chat-custom .odd .h-conv .h-comment.media-message {\n background-color: unset !important;\n }\n\n .h-chat-custom .odd .h-conv .h-comment.file-attached .text-file-preview .text-haze-holder{\n background-color: {{HD_BG_COLOR}} !important;\n color: {{HD_FG_COLOR}} !important;\n }\n\n .h-chat-custom .odd .h-conv .h-comment.file-attached .text-file-preview .text-haze-holder .bottom-gradient {\n background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, {{HD_BG_COLOR}} 100%) !important;\n }\n\n .article-content .fc_web_modal_closed .article-header-section .progress-bar {\n background-color: {{HD_BG_COLOR}} !important;\n }\n\n .preview-container .h-reply-button .h-button-area button,\n .h-reply-wrapper .h-reply-button .h-img-button,\n .actions-button-dropdown .h-img-button {\n border-color: {{HD_BG_BTN_COLOR}} !important;\n }\n\n .h-header .jwt-error-message {\n color: {{JWT_FG_COLOR}} !important;\n background-color: {{JWT_BG_COLOR}} !important;\n }\n\n .cal-time-slot:hover {\n background-color: {{HD_BG_COLOR}};\n }\n .calendar-picker-minified .cal-picker-conf-view .confirm-button-holder .cal-confirm-button {\n background-color: {{HD_BG_COLOR}};\n }\n\n .meeting-frag-holder {\n background-color: {{HD_BG_COLOR}} !important;\n }\n .meeting-frag-holder .event-header {\n color: {{HD_FG_COLOR}};\n }\n .h-conv-chat .h-chat .h-conv .h-comment .event-fragment .event-body .event-timings.actionable a{\n color: {{HD_BG_COLOR}};\n }\n\n .h-conv-chat .h-chat .h-conv .h-comment.emojis-1,\n .h-conv-chat .h-chat .h-conv .h-comment.emojis-2,\n .h-conv-chat .h-chat .h-conv .h-comment.emojis-3 {\n background-color: transparent !important;;\n }\n\n .h-reply-wrapper .ui-agent-typing-indicator {\n background-color: {{HD_BG_COLOR}};\n }\n\n .h-reply-wrapper .ui-agent-typing-indicator .indicator-dot {\n background-color: {{HD_FG_COLOR}};\n }\n\n .fc-mobile-close.minimize i.icon-ic_close{\n color: {{HD_FG_COLOR}};\n }\n'}},39968:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(54308)},61949:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(84244)},99562:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.BooleanTransform}});var i=n(34006)},44773:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.DateTransform}});var i=n(34006)},70282:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.NumberTransform}});var i=n(34006)},30534:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.StringTransform}});var i=n(34006)},61844:function(e,t,n){"use strict";n.r(t);var i={scrollTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,i=e.scrollTop,r=t-i,o=+new Date,a=function(e,t,n,i){return(e/=i/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},s=function s(){var l=+new Date-o;e.scrollTop=parseInt(a(l,i,r,n)),l1&&(i=1);var s=r(i);o(s),i<1&&requestAnimationFrame(e)}))}};t.default=i},65144:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var i={1:n.p+"texture_background_1.aff96620ed7b5dfc8fbadb616251a75a.png",2:n.p+"texture_background_2.a5fb2f3967ff97b98617981d1424371a.png",3:n.p+"texture_background_3.164640dab787e681275f03fb2f3789c1.png",4:n.p+"texture_background_4.3f57282b1c113a66f21fa63ac5faf85f.png",5:n.p+"texture_background_5.b23e09acd1ed8b3af5b8a991be0d3d8b.png",6:n.p+"texture_background_6.f7fed526cf3f4713aeed18a8cec539af.png",7:n.p+"texture_background_7.2e32a5f5f11dd6501957d18778eb4d20.png",8:n.p+"texture_background_8.eefc14f6bd0b917c85208bf3e07fdf5f.png",9:n.p+"texture_background_9.2db3d023277c8fa9558720c48af6348a.png",10:n.p+"texture_background_10.7a68ebd3c37488c2310109d775d5ffc3.png",11:n.p+"texture_background_11.cd8f572d91fc48f1bbcfdfc2ff031cec.png"}},87315:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(73543)},45652:function(e,t,n){"use strict";n.r(t);var i=n(64076),r=void 0;t.default={PrivacyPolicy:{messageMaxLength:200,linkTextMaxLength:30},SessionTimeOut:18e5,Debounce:{SCROLL_DELAY:500},InputType:{file:"file"},PHONE_NUMBER_COUNTRY_CODE:"phoneWithCountryCode",BOT_TIMEOUT:"BOT_TIMEOUT",VALIDATION_PLACEHOLDER_MESSAGE:{email:{validationMessage:"conversation.ce.validation_message.email",placeholder:"conversation.ce.placeholders.email"},phone:{validationMessage:"conversation.ce.validation_message.mobile",placeholder:"conversation.ce.placeholders.mobile"},number:{validationMessage:"conversation.ce.validation_message.number",placeholder:"conversation.ce.placeholders.number"},time:{validationMessage:"conversation.ce.validation_message.time",placeholder:"conversation.ce.placeholders.time"},otp:{placeholder:"conversation.ce.placeholders.otp"}},CHANNEL_BOT_BUSINESS_HOURS:{BUSINESS_HOUR_INSIDE:"BUSINESS_HOUR_INSIDE",BUSINESS_HOUR_OUTSIDE:"BUSINESS_HOUR_OUTSIDE",BUSINESS_HOUR_ALWAYS:"BUSINESS_HOUR_ALWAYS"},TemplateType:{QUIC_REPLY_DROPDOWN:"quick_reply_dropdown",CAROUSEL:"carousel",CAROUSEL_READONLY:"carousel_read_only",CAROUSEL_CARD:{DEFAULT:"carousel_card_default"},QUICK_ACTIONS:"quick_actions",BUTTON_MULTI_SELECT:"button_multi_select",FEEDBACK_RATING:"feedback_rating",FEEDBACK_OPINION_POLL:"feedback_opinion_poll",FEEDBACK_COMMENT:"feedback_comment",TIME_PICKER:"time_picker",DATE_PICKER:"date_picker"},QUICK_ACTIONS_TYPE:{menu:"menu",slashCommand:"slash_command",resendOtpIdentifier:"Resend OTP"},FRESHID_PROFILEPIC_VARIANTS:{SMALL:"SMALL"},YEAR_IN_MS:31536e6,KEYCODES:{ENTER:13,ESC:27,UPARROW:38,DOWNARROW:40,LEFTARROW:37,RIGHTARROW:39,TAB:9},DownloadFileIframeId:"downloadFile",MaxFileAttachments:1,SAMPLE_TOKEN:"WEB_CHAT_TOKEN",DOM_ID:{appReplyEditor:"app-reply-dialog-editor",appReplyComposerEditor:"app-reply-composer-editor",appConversationEditor:"app-conversation-editor",slashCommands:"slash-commands",previewWrapper:"bubble-preview-wrapper",uploadAttachment:"app-attachment-upload",phoneNumberWithCode:"phone-number-code"},FILETYPE:{INVALID:0,IMAGE:1,FILE:2},FAQ_CONTENT:{CATEGORIES:1,ARTICLES:2,ARTICLE:3,ARTICLES_BY_QUERY:4},DEBOUNCE_MS:250,TRANSITION_DELAYS:800,PAGINATION_VIEW:{CATEGORIES:1,ARTICLES:2,ARTICLES_BY_QUERY:3},FileUrlValidityTimeout:3e5,FileSecurityStatus:{SafeFile:"SAFE_FILE",AVPending:"AV_PENDING",MalwareFile:"MALWARE_FILE",LargeFile:"TOO_LARGE_FOR_MALWARE_CHECK"},ExcludedFileExtensions:".cmd,.msi,.com,.exe,.hta,.html,.htm,.js,.jar,.vbs,.vb,.sfx,.bat,.ps1,.war,.sh,.bash,.command",SupportedImageFileExtensions:{".jpg":"image",".png":"image",".jpeg":"image",".gif":"image"},MessageSpecs:{maxLength:2e3},DefaultLocale:999,GeolocationCacheDuration:864e5,freshchatblue:"#45A4EC",Keys:{socket_msgs:"socket_messages"},RuleMetricKeys:{sent:"sent",uniqueSent:"unique_sent",clicked:"clicked",uniqueClicked:"unique_clicked"},EventState:{SENT:"sent",OPENED:"opened",CLICKED:"clicked",REPLIED:"replied",CLEARED:"cleared",ERROR:"error"},EventType:{CLICK:"click",LOAD:"load",TIMER:"timer"},FrameState:{INITIALIZED:"initialized",LOADED:"loaded",AUTHENTICATED:"authenticated",NOT_AUTHENTICATED:"not_authenticated",BLOCKED:"blocked"},UserState:{CREATED:"created",NOT_CREATED:"not_created",LOADED:"loaded",NOT_LOADED:"not_loaded",IDENTIFIED:"identified",RESTORED:"restored",AUTHENTICATED:"authenticated",NOT_AUTHENTICATED:"not_authenticated",AUTH_EXPIRED:"auth_expired",AUTH_INVALID:"auth_invalid",UUID_GENERATED:"uuid_generated",UNLOADED:"unloaded"},LauncherTextColor:"#3A4B67",DialogState:{OPEN:"open",CLOSE:"close"},ImageAttr:{size:26214400,source:"conversation"},FileAttr:{size:36700160},CALENDAR:{GOOGLE_EVENT_PREFIX:"https://www.google.com/calendar/event?eid=",DISPLAY_TRIPLETS:3,DISPLAY_QUADS:4,EVENT_STATUS:{PENDING:1,CREATED:2,FAILED:3},EVENT_SOURCE:{GOOGLE:1,FRESHSALES:2},SESSIONS:{MORNING:1,AFTERNOON:2,EVENING:3,NIGHT:4},TIMESLOT_ROUNDOFF:9e5},UserMessageTimeDifference:{time:18e5},StoreOnlyProperties:["job_title","last_contacted","last_contacted_via_sales_activity","lead_score","customer_fit","open_deals_amount","won_deals_amount","last_marketing_activity_date"],AgentLastMessageTimeDifference:{time:6e5},CONTACT_STATUS:{ACTIVE:1,DELETED:2,MERGED:3},FETCH_CONVERSATION_SMART_POLL_INTERVAL:18e4,CONVERSATION:{LIMIT:100,PAGE_COUNT:10,FETCH:{DEFAULT:100,USER_CREATED:101,CHANNELS_LOADED:102,CONVERSATION_RESTORED:103,CONVERSATION_RELOADED:104,RTS_CONNECT_SUCCESS:110,RTS_RECONNECT_SUCCESS:111,RTS_USER_CREATED:112,RTS_SEQ_ID_MISMATCH:113,RTS_ADVICE_PULL:114,SMART_POLL_REQ:115},MESSAGE_TYPE:{NORMAL:1,BOT:2,FREDDY_BOT:3,FEEDBACK_RESPONSE:1001,SCREEN_SHARING:{REQUESTED:8001,ACCEPTED:8002,DENIED:8003,CANCELLD:8004,ENDED:8005},CALENDAR:{SENT_BY_AGENT:9001,CANCELLED_BY_USER:9002,SUCCESS:9003,FAILURE:9004,USER_EMAIL_UPDATE:9005},IMAGE:[3,5]},USER_TYPE:{AGENT:1,USER:0,CHANNEL:9},FRAGMENT_TYPE:{TEXT:1,IMAGE:2,AUDIO:3,VIDEO:4,BUTTON:5,FILE:6,MEETING:7,QUICKREPLY:51,CALLBACK:52,INPUT:201,COLLECTION:1e3,DYNAMIC_TEMPLATE_CONTENT:1002,TEMPLATE:5e3,HELP_TEXT:8},OFFLINE_MESSAGE_TYPE:{EMAIL:"EMAIL",PHONE:"PHONE_NUMBER",COMMENT:"COMMENT"},CONTACT_INFO:{EMAIL:0,PHONE:1},PLACEHOLDERS:{EMAIL:"email",MOBILE:"mobile",NAME:"name",URL:"url"},MESSAGE_SOURCE:{BH_AWAY_MESSAGE:502,OFFLINE:503,OFFLINE_THANK_MESSAGE:504},CONVERSATION_STATUS:{RESOLVED:2,FREDDY_BOT:22,BOT:20}},MESSAGE_STATUS:{PENDING:0,READY_TO_SEND:1,SENT:2,UNAUTHENTICATED:3,NOT_SENT:4,NOT_UPLOADED:5,RETRYING:6},KBASE_PAGINATION_LIMIT:100,HTTP_STATUS_CODES:{RATE_LIMIT_ERROR:429},LunrLanguage:{da:function(){return(0,i.Z)(this,r),n.e(9060).then(n.t.bind(n,99060,23))}.bind(void 0),de:function(){return(0,i.Z)(this,r),n.e(4743).then(n.t.bind(n,44743,23))}.bind(void 0),du:function(){return(0,i.Z)(this,r),n.e(2620).then(n.t.bind(n,22620,23))}.bind(void 0),es:function(){return(0,i.Z)(this,r),n.e(1482).then(n.t.bind(n,90769,23))}.bind(void 0),fi:function(){return(0,i.Z)(this,r),n.e(427).then(n.t.bind(n,20427,23))}.bind(void 0),fr:function(){return(0,i.Z)(this,r),n.e(1538).then(n.t.bind(n,51538,23))}.bind(void 0),hu:function(){return(0,i.Z)(this,r),n.e(2014).then(n.t.bind(n,12014,23))}.bind(void 0),it:function(){return(0,i.Z)(this,r),n.e(2507).then(n.t.bind(n,32507,23))}.bind(void 0),no:function(){return(0,i.Z)(this,r),n.e(529).then(n.t.bind(n,529,23))}.bind(void 0),pt:function(){return(0,i.Z)(this,r),n.e(9755).then(n.t.bind(n,59755,23))}.bind(void 0),ro:function(){return(0,i.Z)(this,r),n.e(4515).then(n.t.bind(n,54515,23))}.bind(void 0),ru:function(){return(0,i.Z)(this,r),n.e(5355).then(n.t.bind(n,75355,23))}.bind(void 0),sv:function(){return(0,i.Z)(this,r),n.e(6355).then(n.t.bind(n,6355,23))}.bind(void 0),tr:function(){return(0,i.Z)(this,r),n.e(2211).then(n.t.bind(n,52211,23))}.bind(void 0)},Browsers:["Chrome","Firefox","Safari","Trident","WebView","Edge"],smartPollingBetaFeature:"WIDGET_SMART_POLLING",conversationPropertiesBetaFeature:"CONVERSATION_PROPERTIES",parallelConversationsEnabled:"PARALLEL_CONVERSATIONS_ENABLED",unifedBotBuilderEnabled:"UNIFIED_BOT_BUILDER",parallelConvEnabledFeatures:"PARALLEL_CONVERSATIONS",widgetInitLoadEnabled:"WIDGET_INIT_LOAD_ENABLED",helpWidgetBetaFeature:"TICKET_FORMS_IN_WIDGET_ENABLED",enableFmJourneyBetaFeature:"ENABLE_FM_JOURNEYS_FOR_CAMPAIGNS",privacyPolicyFeature:"WIDGET_PRIVACY_POLICY",widgetHideInputWithFlag:"GLOBAL_KEY_FOR_WIDGET_HIDE_INPUT",EmberModelUrl:{agent:{model:"agent",url:"/app/services/app/webchat/{token}/agents/{id}"},agentProfilePicFreshId:{model:"",url:"/app/services/app/webchat/{token}/agents/{id}/image"},config:{model:"config",url:"/app/services/app/webchat/{token}/config?domain={domainName}"},configV2:{model:"config",url:"/app/services/app/webchat/{token}/mw/config?domain={domainName}&widgetUuid={widgetUuid}"},widgetInfo:{model:"widget-info",url:"/app/services/app/webchat/{token}/widget_info_v2?locales={locale}&platform=web"},dynamicFlow:{model:"dynamic-flow",url:"/app/services/app/webchat/{token}/channel/{channelAlias}/dynamic-flow"},conversations:{model:"conversations",url:"/app/services/app/webchat/{token}/user/{userAlias}/conversations"},csatRating:{model:"csat",url:"/app/services/app/webchat/{token}/conversation/{conversationId}/csat/{csatId}/response"},botFeedback:{model:"",url:"/app/services/app/webchat/{token}/conversation/{conversationId}/bot_feedback/response"},cobrowsingSettings:{model:"cobrowsing",url:"/app/services/app/webchat/{token}/cobrowsing_settings"},fileDownload:{model:"",url:"/app/services/app/webchat/{token}/user/{userAlias}/file/{fileHash}/download"},newEvent:{model:"",url:"/app/services/app/webchat/{token}/events/new"},newMultiEvent:{model:"",url:"/app/services/app/webchat/{token}/events/new/multi"},newSBMultiEvent:{model:"",url:"/app/services/app/webchat/{token}/events/v2/new/multi"},newRecentEvent:{model:"",url:"/app/services/app/webchat/{token}/events/recent"},newSession:{model:"",url:"/app/services/app/webchat/{token}/session"},dataDog:{model:"",url:"/app/services/app/webchat/{token}/track/dd/multi"},dataDogSBMulti:{model:"",url:"/app/services/app/webchat/{token}/track/dd/v2/multi"},faqCategories:{model:"faqs",url:"/app/services/app/webchat/{token}/faq/category"},geolocation:{model:"geolocation",url:"/app/services/app/webchat/{token}/geolocation"},heartbeat:{model:"heartbeat",url:"/app/services/app/webchat/{token}/user/{userAlias}/heartbeat"},imageUpload:{model:"",url:"/app/services/app/webchat/{token}/user/{userAlias}/picture"},kbaseCategories:{model:"",url:"/app/services/app/webchat/{token}/omni/faq/categories"},kbaseArticles:{model:"",url:"/app/services/app/webchat/{token}/omni/faq/category/{categoryId}/articles"},kbaseArticle:{model:"",url:"/app/services/app/webchat/{token}/omni/faq/category/{categoryId}/article/{articleId}"},kbaseArticleVote:{model:"",url:"/app/services/app/webchat/{token}/omni/faq/category/{categoryId}/article/{articleId}/analytics/{action}?articleLocale={localeId}&platform=web"},kbaseArticleSearch:{model:"",url:"/app/services/app/webchat/{token}/omni/faq/articles/search"},message:{model:"messages",url:"/app/services/app/webchat/{token}/user/{userAlias}/message"},showHistory:{model:"",url:"/app/services/app/webchat/{token}/user/{userAlias}/showHistory"},offlineMessage:{model:"",url:"/app/services/app/webchat/{token}/user/{userAlias}/offline_message"},messageACK:{model:"messages",url:"/app/services/app/webchat/{token}/user/{userAlias}/delivered"},read:{model:"response",url:"/app/services/app/webchat/{token}/user/{userAlias}/conversation/read"},reset:{model:"response",url:"/app/services/app/webchat/{token}/logout"},subscribePush:{model:"",url:"/app/services/app/webchat/{token}/user/{userAlias}/register_push"},tattletale:{model:"",url:"/app/services/app/webchat/{token}/rules/metrics?ruleId={ruleId}&keys={keys}"},trackActivity:{model:"",url:"/app/services/app/webchat/{token}/user/{userAlias}/activity"},updateCampaign:{model:"response",url:"/app/services/app/webchat/{token}/user/{userAlias}/message/marketing/{marketingId}/status"},updateUser:{model:"user",url:"/app/services/app/webchat/{token}/user/{userAlias}/update"},updateUserJWT:{model:"user",url:"/app/services/app/webchat/{token}/user/{userAlias}/update/update-with-jwt"},upvoteDownvote:{model:"",url:"/app/services/app/webchat/{token}/faq/category/{categoryId}/article/{articleId}?localeId={localeId}&platform=web"},user:{model:"user",url:"/app/services/app/webchat/{token}/user"},userAlias:{model:"user",url:"/app/services/app/webchat/{token}/user/{userAlias}"},userToken:{model:"user",url:"/app/services/app/webchat/{token}/user/token"},verifyJWT:{model:"jwt",url:"/app/services/app/webchat/{token}/jwt/validate"},renewJWT:{model:"jwt",url:"/app/services/app/webchat/{token}/user/renew-by-jwt"},campaignSocket:{model:"campaignSocket",url:"/app/services/app/webchat/{token}/campaign/token/{userAlias}"},webSocket:{model:"rtsToken",url:"/app/services/app/webchat/{token}/token?d2c={isd2c}"},fileUpload:{model:"",url:"/app/services/app/webchat/{token}/user/{userAlias}/file/upload"},conversationStatus:{model:"conversations",url:"/app/services/app/webchat/{token}/user/{userAlias}/messages"},getTemplateArticle:{model:"external-article",url:"/app/services/app/webchat/{token}/template/content/{alias}",postBackURL:"/app/services/app/webchat/{token}/message/{messageAlias}/{referenceId}/postback"},calendarData:{model:"config",url:"/app/services/app/webchat/{token}/agents/{userAlias}/calendar/availability"},customUserPropUpdate:{model:"TriggeredRuleWithCustomUserProperties",url:"/app/services/app/webchat/{token}/user/{userAlias}/TriggeredRuleWithCustomUserProperties"},rtsRefreshToken:{model:"",url:"/app/services/app/webchat/{token}/rts/jwt/regenerate?d2c={isd2c}"}},EmberModelQueryParams:{SiteId:"siteId",IdentifyByReferenceId:"identifyByReferenceId"},EmberModelPathParams:{Token:"{token}",UserAlias:"{userAlias}",ConversationId:"{conversationId}"},DataDog:{tags:["accountId"],events:{connection:{key:"fe.track.user.ws.connection",tags:{connStatus:{key:"conn_status",value:{timeout:"1",pong_failed:"2"}},connFlag:{key:"conn_flag",value:{created:"0",disconnected:"1",reconnected:"2",connected:"3",subscribed:"4",forcedClosed:"5",scriptNotLoaded:"6"}},errFlag:{key:"err_flag"}}},connectionDropped:{key:"fe.track.user.ws.connectionDropped",tags:{dropStatus:{key:"drop_status",value:{no_ping_pong:"1",no_connection:"2",connection_retried:"3"}}}},subscription:{key:"fe.track.user.ws.subscription",tags:{subTimeout:{key:"sub_timeout"}}},dropEvent:{key:"fe.track.user.ws.dropEvent",tags:{eventStorePayload:{key:"event_store_payload"}}},advicePull:{key:"fe.track.user.ws.advicePull",tags:{pullStatus:{key:"adv_pull_status",value:{triggered:"0",called:"1",read:"2",readError:"3"}}}}}},DatastoreTypes:{LSDS:{id:"lsds",name:"Local Storage Datastore"},LFDS:{id:"lfds",name:"Local Forage IndexDB Datastore"}},Batch:{transactions:{types:{dd:{id:1,label:"Data Dog"},events:{id:2,label:"Event Store"}}},errors:{ERR_LOCKED:{code:1,message:"BATCH SERVICE IS FULL"},ERR_TRANS_INVALID:{code:2,message:"TRANSACTION IS INVALID"}}},FEATURES:{KUBE_CANARY_ENABLED_FLAG:"KUBE_CANARY_ENABLED_APPS"},MESSAGE_CATEGORIES:{text:1,image:2,video:3},BUBBLE_CONFIG:{scrollToBottomSpeed:{high:800,medium:50,low:3},contentHeight:91,contentHeightForMobile:70,widgetBubbleHeight:76,stackViewCountInMobile:2},liveTranslationSettings:{translateStatusForMessage:{no:0,yes:1,error:2}},VALUE_STRINGS:{NA:"N/A"},messengerVisibilityOptions:{always:"always",hidden:"hidden",businessHours:"business_hours"},CRM:{DOMAIN_PATH:"myfreshworks"},SUPPORT_URLS:{CO_BROWSING:"https://support.freshchat.com/en/support/solutions/articles/50000002809-why-does-an-agent-want-to-view-and-control-my-screen-"},KBASE_FAQ_ACTIONS:{UPVOTE:"thumbs_up",DOWN_VOTE:"thumbs_down",HIT:"hit"},FW_PRODUCTS:{FRESHDESK:"freshdesk"},TYPING_INDICATOR_DURATION:{AGENT:3e3,FREDDY_BOT:2e4},RICH_MESSAGES:{SECTION_NAMES:{OPTIONS:"options",SELECTION_TYPE:"selection_type",CARDS:"cards",CAROUSEL_TITLE:"carousel_title",ACTIONS:"actions"},SELECTION_TYPE:{MULTI_SELECT:"multi_select"}},BOT_ACTIONS:{TRIGGER_JS_FUNCTION:"TRIGGER_JS_FUNCTION",HIDE_WIDGET:"HIDE_WIDGET",MINIMIZE_WIDGET:"MINIMIZE_WIDGET",SEND_AS_CUSTOMER_MESSAGE:"SEND_AS_CUSTOMER_MESSAGE",OPEN_URL:"OPEN_URL",WIDGET_OPENED:"WIDGET_OPENED"},TAKE_SCREENSHOT:"take_screenshot",WIDGET_OPEN_MSG:"WIDGET_OPENED_BY_VISITOR",MIN_UNREAD_MSGS:1,impostor:{getFreshChatConfigs:"get_freshchat_configs"},updateConversationPropertiesUrl:"/app/services/app/webchat/{token}/conversation_properties/{conversationId}/update"}},44454:function(e,t,n){"use strict";n.r(t),n.d(t,{isHideResolvedConversationEnabled:function(){return o},canHideConversation:function(){return a}});var i=n(64076),r=void 0,o=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)(this,r),!(null===(e=t.advancedOptionsConfig)||void 0===e||!e.enableHideResolvedConversation)}.bind(void 0),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.Z)(this,r),o(t)&&(null==e?void 0:e.isResolved)}.bind(void 0)},81353:function(e,t,n){"use strict";n.r(t),t.default={BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BA:"Bosnia and Herzegovina",BB:"Barbados",WF:"Wallis and Futuna",BL:"Saint Barthelemy",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BT:"Bhutan",JM:"Jamaica",BV:"Bouvet Island",BW:"Botswana",WS:"Samoa",BQ:"Bonaire, Saint Eustatius and Saba ",BR:"Brazil",BS:"Bahamas",JE:"Jersey",BY:"Belarus",BZ:"Belize",RU:"Russia",RW:"Rwanda",RS:"Serbia",TL:"East Timor",RE:"Reunion",TM:"Turkmenistan",TJ:"Tajikistan",RO:"Romania",TK:"Tokelau",GW:"Guinea-Bissau",GU:"Guam",GT:"Guatemala",GS:"South Georgia and the South Sandwich Islands",GR:"Greece",GQ:"Equatorial Guinea",GP:"Guadeloupe",JP:"Japan",GY:"Guyana",GG:"Guernsey",GF:"French Guiana",GE:"Georgia",GD:"Grenada",GB:"United Kingdom",GA:"Gabon",SV:"El Salvador",GN:"Guinea",GM:"Gambia",GL:"Greenland",GI:"Gibraltar",GH:"Ghana",OM:"Oman",TN:"Tunisia",JO:"Jordan",HR:"Croatia",HT:"Haiti",HU:"Hungary",HK:"Hong Kong",HN:"Honduras",HM:"Heard Island and McDonald Islands",VE:"Venezuela",PR:"Puerto Rico",PS:"Palestinian Territory",PW:"Palau",PT:"Portugal",SJ:"Svalbard and Jan Mayen",PY:"Paraguay",IQ:"Iraq",PA:"Panama",PF:"French Polynesia",PG:"Papua New Guinea",PE:"Peru",PK:"Pakistan",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PM:"Saint Pierre and Miquelon",ZM:"Zambia",EH:"Western Sahara",EE:"Estonia",EG:"Egypt",ZA:"South Africa",EC:"Ecuador",IT:"Italy",VN:"Vietnam",SB:"Solomon Islands",ET:"Ethiopia",SO:"Somalia",ZW:"Zimbabwe",SA:"Saudi Arabia",ES:"Spain",ER:"Eritrea",ME:"Montenegro",MD:"Moldova",MG:"Madagascar",MF:"Saint Martin",MA:"Morocco",MC:"Monaco",UZ:"Uzbekistan",MM:"Myanmar",ML:"Mali",MO:"Macao",MN:"Mongolia",MH:"Marshall Islands",MK:"Macedonia",MU:"Mauritius",MT:"Malta",MW:"Malawi",MV:"Maldives",MQ:"Martinique",MP:"Northern Mariana Islands",MS:"Montserrat",MR:"Mauritania",IM:"Isle of Man",UG:"Uganda",TZ:"Tanzania",MY:"Malaysia",MX:"Mexico",IL:"Israel",FR:"France",IO:"British Indian Ocean Territory",SH:"Saint Helena",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Micronesia",FO:"Faroe Islands",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NA:"Namibia",VU:"Vanuatu",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NZ:"New Zealand",NP:"Nepal",NR:"Nauru",NU:"Niue",CK:"Cook Islands",XK:"Kosovo",CI:"Ivory Coast",CH:"Switzerland",CO:"Colombia",CN:"China",CM:"Cameroon",CL:"Chile",CC:"Cocos Islands",CA:"Canada",CG:"Republic of the Congo",CF:"Central African Republic",CD:"Democratic Republic of the Congo",CZ:"Czech Republic",CY:"Cyprus",CX:"Christmas Island",CR:"Costa Rica",CW:"Curacao",CV:"Cape Verde",CU:"Cuba",SZ:"Swaziland",SY:"Syria",SX:"Sint Maarten",KG:"Kyrgyzstan",KE:"Kenya",SS:"South Sudan",SR:"Suriname",KI:"Kiribati",KH:"Cambodia",KN:"Saint Kitts and Nevis",KM:"Comoros",ST:"Sao Tome and Principe",SK:"Slovakia",KR:"South Korea",SI:"Slovenia",KP:"North Korea",KW:"Kuwait",SN:"Senegal",SM:"San Marino",SL:"Sierra Leone",SC:"Seychelles",KZ:"Kazakhstan",KY:"Cayman Islands",SG:"Singapore",SE:"Sweden",SD:"Sudan",DO:"Dominican Republic",DM:"Dominica",DJ:"Djibouti",DK:"Denmark",VG:"British Virgin Islands",DE:"Germany",YE:"Yemen",DZ:"Algeria",US:"United States",UY:"Uruguay",YT:"Mayotte",UM:"United States Minor Outlying Islands",LB:"Lebanon",LC:"Saint Lucia",LA:"Laos",TV:"Tuvalu",TW:"Taiwan",TT:"Trinidad and Tobago",TR:"Turkey",LK:"Sri Lanka",LI:"Liechtenstein",LV:"Latvia",TO:"Tonga",LT:"Lithuania",LU:"Luxembourg",LR:"Liberia",LS:"Lesotho",TH:"Thailand",TF:"French Southern Territories",TG:"Togo",TD:"Chad",TC:"Turks and Caicos Islands",LY:"Libya",VA:"Vatican",VC:"Saint Vincent and the Grenadines",AE:"United Arab Emirates",AD:"Andorra",AG:"Antigua and Barbuda",AF:"Afghanistan",AI:"Anguilla",VI:"U.S. Virgin Islands",IS:"Iceland",IR:"Iran",AM:"Armenia",AL:"Albania",AO:"Angola",AQ:"Antarctica",AS:"American Samoa",AR:"Argentina",AU:"Australia",AT:"Austria",AW:"Aruba",IN:"India",AX:"Aland Islands",AZ:"Azerbaijan",IE:"Ireland",ID:"Indonesia",UA:"Ukraine",QA:"Qatar",MZ:"Mozambique"}},68422:function(e,t,n){"use strict";n.r(t);var i=n(59329),r=n.n(i),o=n(54402),a=n.n(o),s=n(88996),l=n.n(s),u=n(21076),c=n.n(u),d=n(21458),f=n.n(d),h=n(64496),p=n.n(h);r().extend(a()),r().extend(l()),r().extend(c()),r().extend(f()),r().extend(p()),window.dayjs=r(),t.default=r()},59565:function(e,t,n){"use strict";function i(e,t,n){e&&e.style.setProperty(t,n)}function r(e,t){e&&e.style.removeProperty(t)}function o(e,t){return u(e,t,"add")}function a(e,t){return u(e,t,"remove")}function s(e,t){return u(e,t,"toggle")}function l(e,t){return u(e,t,"contains")}function u(e,t,n){return e&&e.classList&&t&&e.classList[n](t)}function c(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e&&e.addEventListener&&e.addEventListener(t,n,i)}function d(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e&&e.removeEventListener&&e.removeEventListener(t,n,i)}function f(e,t,n){for(var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=t.split(" "),o=0;o3&&void 0!==arguments[3]&&arguments[3],r=t.split(" "),o=0;o=0;n--)if(-1!==t[n].indexOf(e))return t[n][0]}function a(e){var t=u.DefaultLocaleKey,n=Object.keys(u.AcceptedLocalizations),i=Ember.isBlank(e)?t:e;return i&&!Ember.isBlank(i)&&(i=o(i))&&-1!==n.indexOf(i)?i:t}function s(){return window.navigator.languages&&window.navigator.languages.length&&window.navigator.languages[0]||window.navigator.language}function l(e){var t,n=o(e)||e;return(null===(t=u.AcceptedLocalizations[n])||void 0===t?void 0:t.fdLocaleId)||n}var u={DefaultLocaleKey:"en-us",RTLBasedLanguages:["ar","he","ur","ku"],AcceptedLocalizations:{am:{id:"am",text:"አማርኛ",json:function(){return(0,i.Z)(this,r),n.e(2222).then(n.t.bind(n,92222,19))}.bind(void 0),dateId:"am",dateScript:function(){return(0,i.Z)(this,r),n.e(769).then(n.t.bind(n,10769,23))}.bind(void 0)},ar:{id:"ar",text:"عربى",json:function(){return(0,i.Z)(this,r),n.e(633).then(n.t.bind(n,633,19))}.bind(void 0),dateId:"ar",dateScript:function(){return(0,i.Z)(this,r),n.e(1920).then(n.t.bind(n,21920,23))}.bind(void 0)},bg:{id:"bg",text:"български",json:function(){return(0,i.Z)(this,r),n.e(1202).then(n.t.bind(n,21202,19))}.bind(void 0),dateId:"bg",dateScript:function(){return(0,i.Z)(this,r),n.e(7372).then(n.t.bind(n,7372,23))}.bind(void 0)},bn:{id:"bn",text:"বাংলা",json:function(){return(0,i.Z)(this,r),n.e(623).then(n.t.bind(n,40623,19))}.bind(void 0),dateId:"bn",dateScript:function(){return(0,i.Z)(this,r),n.e(6406).then(n.t.bind(n,96406,23))}.bind(void 0)},bs:{id:"bs",text:"bosanski",json:function(){return(0,i.Z)(this,r),n.e(8468).then(n.t.bind(n,58468,19))}.bind(void 0),dateId:"bs",dateScript:function(){return(0,i.Z)(this,r),n.e(2148).then(n.t.bind(n,42148,23))}.bind(void 0)},ca:{id:"ca",text:"Català",json:function(){return(0,i.Z)(this,r),n.e(1573).then(n.t.bind(n,31573,19))}.bind(void 0),dateId:"ca",dateScript:function(){return(0,i.Z)(this,r),n.e(2379).then(n.t.bind(n,22379,23))}.bind(void 0)},cs:{id:"cs",text:"čeština",json:function(){return(0,i.Z)(this,r),n.e(8918).then(n.t.bind(n,58918,19))}.bind(void 0),dateId:"cs",dateScript:function(){return(0,i.Z)(this,r),n.e(6816).then(n.t.bind(n,76816,23))}.bind(void 0)},cy:{id:"cy",text:"Cymraeg",json:function(){return(0,i.Z)(this,r),n.e(9063).then(n.t.bind(n,59063,19))}.bind(void 0),dateId:"cy",dateScript:function(){return(0,i.Z)(this,r),n.e(2199).then(n.t.bind(n,52199,23))}.bind(void 0)},da:{id:"da",text:"dansk",json:function(){return(0,i.Z)(this,r),n.e(1196).then(n.t.bind(n,61196,19))}.bind(void 0),dateId:"da",dateScript:function(){return(0,i.Z)(this,r),n.e(2134).then(n.t.bind(n,72134,23))}.bind(void 0)},de:{id:"de",text:"Deutsch",json:function(){return(0,i.Z)(this,r),n.e(7323).then(n.t.bind(n,87323,19))}.bind(void 0),dateId:"de",dateScript:function(){return(0,i.Z)(this,r),n.e(6946).then(n.t.bind(n,36946,23))}.bind(void 0)},el:{id:"el",text:"Ελληνικά",json:function(){return(0,i.Z)(this,r),n.e(6577).then(n.t.bind(n,6577,19))}.bind(void 0),dateId:"el",dateScript:function(){return(0,i.Z)(this,r),n.e(8863).then(n.t.bind(n,78863,23))}.bind(void 0)},"en-us":{id:"en-us",text:"English",json:function(){return(0,i.Z)(this,r),n.e(4572).then(n.t.bind(n,94572,19))}.bind(void 0),dateId:"en",dateScript:function(){return(0,i.Z)(this,r),n.e(4866).then(n.t.bind(n,74866,23))}.bind(void 0)},en:{id:"en-us",text:"English",json:function(){return(0,i.Z)(this,r),n.e(4572).then(n.t.bind(n,94572,19))}.bind(void 0),dateId:"en",dateScript:function(){return(0,i.Z)(this,r),n.e(4866).then(n.t.bind(n,74866,23))}.bind(void 0)},"es-mx":{id:"es-mx",text:"Español (Americas)",json:function(){return(0,i.Z)(this,r),n.e(5683).then(n.t.bind(n,25683,19))}.bind(void 0),dateId:"es-us",dateScript:function(){return(0,i.Z)(this,r),n.e(9087).then(n.t.bind(n,59087,23))}.bind(void 0),fdLocaleId:"es-LA"},es:{id:"es",text:"Español",json:function(){return(0,i.Z)(this,r),n.e(4567).then(n.t.bind(n,34567,19))}.bind(void 0),dateId:"es",dateScript:function(){return(0,i.Z)(this,r),n.e(9935).then(n.t.bind(n,89935,23))}.bind(void 0)},et:{id:"et",text:"Eestlane",json:function(){return(0,i.Z)(this,r),n.e(1473).then(n.t.bind(n,31473,19))}.bind(void 0),dateId:"et",dateScript:function(){return(0,i.Z)(this,r),n.e(620).then(n.t.bind(n,40620,23))}.bind(void 0)},fi:{id:"fi",text:"Suomi",json:function(){return(0,i.Z)(this,r),n.e(2163).then(n.t.bind(n,92163,19))}.bind(void 0),dateId:"fi",dateScript:function(){return(0,i.Z)(this,r),n.e(6377).then(n.t.bind(n,96377,23))}.bind(void 0)},fr:{id:"fr",text:"Français",json:function(){return(0,i.Z)(this,r),n.e(6419).then(n.t.bind(n,26419,19))}.bind(void 0),dateId:"fr",dateScript:function(){return(0,i.Z)(this,r),n.e(8978).then(n.t.bind(n,8978,23))}.bind(void 0)},he:{id:"he",text:"עברי",json:function(){return(0,i.Z)(this,r),n.e(2842).then(n.t.bind(n,92842,19))}.bind(void 0),dateId:"he",dateScript:function(){return(0,i.Z)(this,r),n.e(8925).then(n.t.bind(n,88925,23))}.bind(void 0)},hi:{id:"hi",text:"हिन्दी",json:function(){return(0,i.Z)(this,r),n.e(3186).then(n.t.bind(n,33186,19))}.bind(void 0),dateId:"hi",dateScript:function(){return(0,i.Z)(this,r),n.e(9604).then(n.t.bind(n,59604,23))}.bind(void 0)},hr:{id:"hr",text:"Hrvatski",json:function(){return(0,i.Z)(this,r),n.e(6076).then(n.t.bind(n,6076,19))}.bind(void 0),dateId:"hr",dateScript:function(){return(0,i.Z)(this,r),n.e(8554).then(n.t.bind(n,49655,23))}.bind(void 0)},hu:{id:"hu",text:"Magyar",json:function(){return(0,i.Z)(this,r),n.e(9196).then(n.t.bind(n,19196,19))}.bind(void 0),dateId:"hu",dateScript:function(){return(0,i.Z)(this,r),n.e(9832).then(n.t.bind(n,69832,23))}.bind(void 0)},id:{id:"id",text:"Bahasa Indonesia",json:function(){return(0,i.Z)(this,r),n.e(3478).then(n.t.bind(n,33478,19))}.bind(void 0),dateId:"id",dateScript:function(){return(0,i.Z)(this,r),n.e(4777).then(n.t.bind(n,14777,23))}.bind(void 0)},it:{id:"it",text:"Italiano",json:function(){return(0,i.Z)(this,r),n.e(8040).then(n.t.bind(n,38040,19))}.bind(void 0),dateId:"it",dateScript:function(){return(0,i.Z)(this,r),n.e(579).then(n.t.bind(n,80579,23))}.bind(void 0)},ja:{id:"ja",text:"日本人",json:function(){return(0,i.Z)(this,r),n.e(1694).then(n.t.bind(n,71694,19))}.bind(void 0),dateId:"ja",dateScript:function(){return(0,i.Z)(this,r),n.e(6171).then(n.t.bind(n,36171,23))}.bind(void 0),fdLocaleId:"ja-JP"},kk:{id:"kk",text:"қазақ",json:function(){return(0,i.Z)(this,r),n.e(1769).then(n.t.bind(n,41769,19))}.bind(void 0),dateId:"kk",dateScript:function(){return(0,i.Z)(this,r),n.e(3621).then(n.t.bind(n,73621,23))}.bind(void 0)},km:{id:"km",text:"ខ្មែរ",json:function(){return(0,i.Z)(this,r),n.e(4527).then(n.t.bind(n,64527,19))}.bind(void 0),dateId:"km",dateScript:function(){return(0,i.Z)(this,r),n.e(9936).then(n.t.bind(n,99936,23))}.bind(void 0)},kn:{id:"kn",text:"ಕನ್ನಡ",json:function(){return(0,i.Z)(this,r),n.e(9809).then(n.t.bind(n,99809,19))}.bind(void 0),dateId:"kn",dateScript:function(){return(0,i.Z)(this,r),n.e(9513).then(n.t.bind(n,99513,23))}.bind(void 0)},ko:{id:"ko",text:"한국어",json:function(){return(0,i.Z)(this,r),n.e(184).then(n.t.bind(n,50184,19))}.bind(void 0),dateId:"ko",dateScript:function(){return(0,i.Z)(this,r),n.e(3036).then(n.t.bind(n,83036,23))}.bind(void 0)},ku:{id:"ku",text:"Kurdî",json:function(){return(0,i.Z)(this,r),n.e(391).then(n.t.bind(n,70391,19))}.bind(void 0),dateId:"ku",dateScript:function(){return(0,i.Z)(this,r),n.e(6636).then(n.t.bind(n,26636,23))}.bind(void 0)},lt:{id:"lt",text:"lietuvis",json:function(){return(0,i.Z)(this,r),n.e(7748).then(n.t.bind(n,47748,19))}.bind(void 0),dateId:"lt",dateScript:function(){return(0,i.Z)(this,r),n.e(9313).then(n.t.bind(n,89313,23))}.bind(void 0)},lv:{id:"lv",text:"Latvietis",json:function(){return(0,i.Z)(this,r),n.e(5193).then(n.t.bind(n,45193,19))}.bind(void 0),dateId:"lv",dateScript:function(){return(0,i.Z)(this,r),n.e(3520).then(n.t.bind(n,43520,23))}.bind(void 0),fdLocaleId:"lv-LV"},ml:{id:"ml",text:"മലയാളം",json:function(){return(0,i.Z)(this,r),n.e(9017).then(n.t.bind(n,19017,19))}.bind(void 0),dateId:"ml",dateScript:function(){return(0,i.Z)(this,r),n.e(2378).then(n.t.bind(n,62378,23))}.bind(void 0)},ms:{id:"ms",text:"Melayu",json:function(){return(0,i.Z)(this,r),n.e(2473).then(n.t.bind(n,32473,19))}.bind(void 0),dateId:"ms",dateScript:function(){return(0,i.Z)(this,r),n.e(7553).then(n.t.bind(n,57553,23))}.bind(void 0)},ne:{id:"ne",text:"नेपाली",json:function(){return(0,i.Z)(this,r),n.e(9969).then(n.t.bind(n,69969,19))}.bind(void 0),dateId:"ne",dateScript:function(){return(0,i.Z)(this,r),n.e(4742).then(n.t.bind(n,24742,23))}.bind(void 0)},nl:{id:"nl",text:"Nederlands",json:function(){return(0,i.Z)(this,r),n.e(1472).then(n.t.bind(n,41472,19))}.bind(void 0),dateId:"nl",dateScript:function(){return(0,i.Z)(this,r),n.e(2708).then(n.t.bind(n,52708,23))}.bind(void 0)},no:{id:"no",text:"Norsk",json:function(){return(0,i.Z)(this,r),n.e(645).then(n.t.bind(n,70645,19))}.bind(void 0),dateId:"nb",dateScript:function(){return(0,i.Z)(this,r),n.e(9025).then(n.t.bind(n,38320,23))}.bind(void 0),fdLocaleId:"nb-NO"},pa:{id:"pa",text:"ਪੰਜਾਬੀ",json:function(){return(0,i.Z)(this,r),n.e(1259).then(n.t.bind(n,71259,19))}.bind(void 0),dateId:"pa-in",dateScript:function(){return(0,i.Z)(this,r),n.e(5752).then(n.t.bind(n,25752,23))}.bind(void 0)},pl:{id:"pl",text:"Polskie",json:function(){return(0,i.Z)(this,r),n.e(3230).then(n.t.bind(n,93230,19))}.bind(void 0),dateId:"pl",dateScript:function(){return(0,i.Z)(this,r),n.e(5885).then(n.t.bind(n,45885,23))}.bind(void 0)},"pt-br":{id:"pt-br",text:"Português - Brasil",json:function(){return(0,i.Z)(this,r),n.e(4209).then(n.t.bind(n,34209,19))}.bind(void 0),dateId:"pt-br",dateScript:function(){return(0,i.Z)(this,r),n.e(577).then(n.t.bind(n,577,23))}.bind(void 0),fdLocaleId:"pt-BR"},"pt-pt":{id:"pt-pt",text:"Português - Portugal",json:function(){return(0,i.Z)(this,r),n.e(560).then(n.t.bind(n,20560,19))}.bind(void 0),dateId:"pt",dateScript:function(){return(0,i.Z)(this,r),n.e(8320).then(n.t.bind(n,16096,23))}.bind(void 0),fdLocaleId:"pt-PT"},ro:{id:"ro",text:"Română",json:function(){return(0,i.Z)(this,r),n.e(8331).then(n.t.bind(n,28331,19))}.bind(void 0),dateId:"ro",dateScript:function(){return(0,i.Z)(this,r),n.e(2994).then(n.t.bind(n,92994,23))}.bind(void 0)},ru:{id:"ru",text:"русский",json:function(){return(0,i.Z)(this,r),n.e(4494).then(n.t.bind(n,44494,19))}.bind(void 0),dateId:"ru",dateScript:function(){return(0,i.Z)(this,r),n.e(4002).then(n.t.bind(n,74002,23))}.bind(void 0),fdLocaleId:"ru-RU"},si:{id:"si",text:"සිංහල",json:function(){return(0,i.Z)(this,r),n.e(3375).then(n.t.bind(n,53375,19))}.bind(void 0),dateId:"si",dateScript:function(){return(0,i.Z)(this,r),n.e(2336).then(n.t.bind(n,52336,23))}.bind(void 0)},sk:{id:"sk",text:"slovenský",json:function(){return(0,i.Z)(this,r),n.e(8126).then(n.t.bind(n,38126,19))}.bind(void 0),dateId:"sk",dateScript:function(){return(0,i.Z)(this,r),n.e(1946).then(n.t.bind(n,91946,23))}.bind(void 0)},sl:{id:"sl",text:"Slovenščina",json:function(){return(0,i.Z)(this,r),n.e(9349).then(n.t.bind(n,9349,19))}.bind(void 0),dateId:"sl",dateScript:function(){return(0,i.Z)(this,r),n.e(4247).then(n.t.bind(n,74247,23))}.bind(void 0)},so:{id:"so",text:"Soomaali",json:function(){return(0,i.Z)(this,r),n.e(7447).then(n.t.bind(n,47447,19))}.bind(void 0),dateId:"en",dateScript:function(){return(0,i.Z)(this,r),n.e(4866).then(n.t.bind(n,74866,23))}.bind(void 0)},sr:{id:"sr",text:"Српски",json:function(){return(0,i.Z)(this,r),n.e(9323).then(n.t.bind(n,79323,19))}.bind(void 0),dateId:"sr",dateScript:function(){return(0,i.Z)(this,r),n.e(5881).then(n.t.bind(n,45881,23))}.bind(void 0)},sv:{id:"sv",text:"Svenska",json:function(){return(0,i.Z)(this,r),n.e(6928).then(n.t.bind(n,16928,19))}.bind(void 0),dateId:"sv",dateScript:function(){return(0,i.Z)(this,r),n.e(7802).then(n.t.bind(n,37802,23))}.bind(void 0),fdLocaleId:"sv-SE"},sw:{id:"sw",text:"kiswahili",json:function(){return(0,i.Z)(this,r),n.e(180).then(n.t.bind(n,10180,19))}.bind(void 0),dateId:"sw",dateScript:function(){return(0,i.Z)(this,r),n.e(357).then(n.t.bind(n,40357,23))}.bind(void 0)},ta:{id:"ta",text:"தமிழ்",json:function(){return(0,i.Z)(this,r),n.e(7717).then(n.t.bind(n,17717,19))}.bind(void 0),dateId:"ta",dateScript:function(){return(0,i.Z)(this,r),n.e(4714).then(n.t.bind(n,64714,23))}.bind(void 0)},te:{id:"te",text:"తెలుగు",json:function(){return(0,i.Z)(this,r),n.e(741).then(n.t.bind(n,30741,19))}.bind(void 0),dateId:"te",dateScript:function(){return(0,i.Z)(this,r),n.e(9591).then(n.t.bind(n,99591,23))}.bind(void 0)},th:{id:"th",text:"Thai",json:function(){return(0,i.Z)(this,r),n.e(2270).then(n.t.bind(n,52270,19))}.bind(void 0),dateId:"th",dateScript:function(){return(0,i.Z)(this,r),n.e(415).then(n.t.bind(n,415,23))}.bind(void 0)},tr:{id:"tr",text:"Türk",json:function(){return(0,i.Z)(this,r),n.e(5743).then(n.t.bind(n,95743,19))}.bind(void 0),dateId:"tr",dateScript:function(){return(0,i.Z)(this,r),n.e(7147).then(n.t.bind(n,27147,23))}.bind(void 0)},uk:{id:"uk",text:"Укр",json:function(){return(0,i.Z)(this,r),n.e(8636).then(n.t.bind(n,38636,19))}.bind(void 0),dateId:"uk",dateScript:function(){return(0,i.Z)(this,r),n.e(557).then(n.t.bind(n,6747,23))}.bind(void 0)},ur:{id:"ur",text:"اردو",json:function(){return(0,i.Z)(this,r),n.e(8214).then(n.t.bind(n,68214,19))}.bind(void 0),dateId:"ur",dateScript:function(){return(0,i.Z)(this,r),n.e(5880).then(n.t.bind(n,15880,23))}.bind(void 0)},vi:{id:"vi",text:"Tiếng Việt",json:function(){return(0,i.Z)(this,r),n.e(7409).then(n.t.bind(n,7409,19))}.bind(void 0),dateId:"vi",dateScript:function(){return(0,i.Z)(this,r),n.e(40).then(n.t.bind(n,40040,23))}.bind(void 0)},"zh-cn":{id:"zh-cn",text:"简体中文",json:function(){return(0,i.Z)(this,r),n.e(1159).then(n.t.bind(n,91159,19))}.bind(void 0),dateId:"zh-cn",dateScript:function(){return(0,i.Z)(this,r),n.e(7716).then(n.t.bind(n,7716,23))}.bind(void 0),fdLocaleId:"zh-CN"},"zh-tw":{id:"zh-tw",text:"繁體中文",json:function(){return(0,i.Z)(this,r),n.e(6499).then(n.t.bind(n,36499,19))}.bind(void 0),dateId:"zh-tw",dateScript:function(){return(0,i.Z)(this,r),n.e(2962).then(n.t.bind(n,2962,23))}.bind(void 0),fdLocaleId:"zh-TW"},"fc-stretch":{id:"fc-stretch",text:"fc-stretch",json:function(){return(0,i.Z)(this,r),n.e(4332).then(n.t.bind(n,94332,19))}.bind(void 0),dateId:"en-us",dateScript:function(){return(0,i.Z)(this,r),n.e(4866).then(n.t.bind(n,74866,23))}.bind(void 0)},"fc-asterisk":{id:"fc-asterisk",text:"fc-asterisk",json:function(){return(0,i.Z)(this,r),n.e(8195).then(n.t.bind(n,98195,19))}.bind(void 0),dateId:"en-us",dateScript:function(){return(0,i.Z)(this,r),n.e(4866).then(n.t.bind(n,74866,23))}.bind(void 0)}},LocaleSubsets:[["en-us","en","en-gb","en-in","en-001","en-150","en-ag","en-ai","en-as","en-at","en-au","en-bb","en-be","en-bi","en-bm","en-bs","en-bw","en-bz","en-ca","en-cc","en-ch","en-ck","en-cm","en-cx","en-cy","en-de","en-dg","en-dk","en-dm","en-er","en-fi","en-fj","en-fk","en-fm","en-gd","en-gg","en-gh","en-gi","en-gm","en-gu","en-gy","en-hk","en-ie","en-il","en-im","en-io","en-je","en-jm","en-ke","en-ki","en-kn","en-ky","en-lc","en-lr","en-ls","en-mg","en-mh","en-mo","en-mp","en-ms","en-mt","en-mu","en-mw","en-my","en-na","en-nf","en-ng","en-nl","en-nr","en-nu","en-nz","en-pg","en-ph","en-pk","en-pn","en-pr","en-pw","en-rw","en-sb","en-sc","en-sd","en-se","en-sg","en-sh","en-si","en-sl","en-ss","en-sx","en-sz","en-tc","en-tk","en-to","en-tt","en-tv","en-tz","en-ug","en-um","en-us","en-us-posix","en-vc","en-vg","en-vi","en-vu","en-ws","en-za","en-zm","en-zw"],["am","am-et"],["ar","ar-ar","ar-ae","ar-bh","ar-dz","ar-eg","ar-iq","ar-jo","ar-kw","ar-lb","ar-ly","ar-ma","ar-om","ar-qa","ar-sa","ar-sy","ar-tn","ar-ye"],["bg"],["bn","bn-bd"],["bs"],["ca","ca-es"],["cs","cs-cz"],["cy","cy-gb"],["da","da-dk"],["de","de-de","de-at","de-li","de-lu","de-ch"],["el"],["es-mx","es-la","es-419","es-ar","es-bo","es-cl","es-co","es-cr","es-do","es-ec","es-sv","es-gt","es-hn","es-ni","es-pa","es-py","es-pe","es-pr","es-uy","es-ve"],["es","es-es"],["et","et-ee"],["fi","fi-fi"],["fr","fr-fr","fr-be","fr-ca","fr-lu","fr-ch"],["he","he-il"],["hi","hi-in"],["hr"],["hu","hu-hu"],["id","id-id"],["it","it-it","it-ch"],["ja","ja-jp"],["kk","kk-kz"],["km","km-kh"],["kn","kn-in"],["ko","ko-ko"],["ku","ku-tr"],["lt"],["lv","lv-lv"],["ml","ml-in"],["ms","ms-my","ms-bn"],["ne","ne-np"],["nl","nl-nl","nl-be"],["no","nb-no","no-no","nb","nn"],["pa","pa-in"],["pl","pl-pl"],["pt-br","pt"],["pt-pt"],["ro"],["ru","ru-ru","ru-mo"],["si","si-lk"],["sk","sk-sk"],["sl","sl-sl"],["so","so-so"],["sv","sv-sv","sv-fi","sv-se"],["sw","sw-ke"],["sr"],["ta","ta-in"],["te","te-in"],["th","th-th"],["tr","tr-tr"],["uk","uk-ua"],["ur","ur-in"],["vi","vi-vi"],["zh-cn","zh-hk","zh-mo","zh-sg","zh","zh-hans"],["zh-tw","zh-hant"],["fc-stretch"],["fc-asterisk"]],LocaleSpecificUrlPatterns:{translations:"translations","lunr-languages":"lunr-languages","moment-locales":"moment-locales"}}},43958:function(e,t,n){"use strict";n.r(t),n.d(t,{CATEGORIES:function(){return i},KEY_TYPES:function(){return r},USER_NAME_KEYS:function(){return o},GEOLOCATION_KEYS:function(){return a}});var i={USER:"user",CONVERSATION:"conversation",CHAT_CONVERSATION:"chat_conversation"},r={SYSTEM_TAG:"SYSTEM_TAG",CUSTOM_TAG:"CUSTOM_TAG",CUSTOM_CONV_TAG:"CUSTOM_CONV_TAG",CHAT_CUSTOM_CONV_TAG:"CHAT_CUSTOM_CONV_TAG"},o={firstName:"firstName",lastName:"lastName",name:"name"},a={country:"country",city:"city",state:"state"}},94035:function(e,t,n){"use strict";n.r(t);t.default={EMOJI_REGEX:/(?:[\xA9\xAE\u2122\u23E9-\u23EF\u23F3\u23F8-\u23FA\u24C2\u25B6\u2600-\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDE51\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFF]|\uD83E[\uDD00-\uDDFF])/g,HTTP_EMAIL:/.*http:\/\/(([-a-zA-Z0-9.'’&_%+]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,10})+)/g,ANCHOR_REGEX:/[\s]*]+)>((?:.(?!\<\/a\>))*.)<\/a>[\s]*/g,ANCHOR_WITH_TARGET://g,_EMAIL_REGEX:/^[-a-zA-Z0-9.'’&_%+]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,10}$/,_PHONE_REGEX:/^(?=.{6,}$)[+]*[0-9\s]{0,4}[(]{0,1}[0-9]{1,5}[)]{0,1}[-\s\./0-9]*$/,_PHONE_BOTS_REGEX:/^\+?(-?\d){9,15}$/,_DOMAIN_REGEX:/^https?\:\/\/([^\/:?#]+)(?:[\/:?#]|$)/i,_HTTPS_REGEX:/^((https):\/\/)/gim,_FILE_EXTENSION:/^\.[0-9a-zA-Z]+$/,_TIME_REGEX:/^([0-1]?\d|2[0-4]):([0-5]\d)(:[0-5]\d)?$/,get:function(e){return this["_"+e]},emailCheck:function(e){return!!e&&e.match(this._EMAIL_REGEX)},phoneCheck:function(e){return!!e&&this._PHONE_REGEX.test(e)},phoneCheckForBots:function(e){return!!e&&this._PHONE_BOTS_REGEX.test(e)},replaceText:function(e,t,n){return e.replace(t,n)},getDomainName:function(e){var t=e&&e.match(this._DOMAIN_REGEX);return t&&t[1]},checkHTTPSurl:function(e){return!!e&&e.match(this._HTTPS_REGEX)},timeFormatCheck:function(e){return!!e&&this._TIME_REGEX.test(e)},checkValidFileExtension:function(e){return!!e&&this._FILE_EXTENSION.test(e)},maskTextUsingSingleCharacter:function(e,t,n){var i=e.match(t),r=i&&i.length;if(r)for(var o=0;o1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}}]),e}()},19048:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var i=n(76459),r=n(3228);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{},o=e.adapterFor(t),s=i.params||{},l=i.requestType||"GET",u=(0,r.getHeaders)(),c=(0,r.getBaseURL)(n),d=o.ajax(c,l,{data:s,headers:a({},u)});return d}},72973:function(e,t,n){"use strict";n.r(t),n.d(t,{isSlashCmdMenuVisible:function(){return o}});var i=n(64076),r=n(45652),o=function(){return(0,i.Z)(this,undefined),!!document.getElementById(r.default.DOM_ID.slashCommands)}.bind(void 0)},29257:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var i=n(45652);function r(e,t,n){var r=t&&t.identifyByReferenceId,o=e&&e.token,a=e&&e.alias,s=(e&&e.url||i.default.EmberModelUrl.updateUser.url).replace(i.default.EmberModelPathParams.Token,o).replace(i.default.EmberModelPathParams.UserAlias,a);return n&&r&&(s+="?".concat(i.default.EmberModelQueryParams.IdentifyByReferenceId,"=true")),s=function(e,t){if(Ember.isBlank(e))return e;var n=t&&t.siteId;if(n){var r="".concat(i.default.EmberModelQueryParams.SiteId,"=").concat(n);e+=-1!==e.indexOf("?")?"&".concat(r):"?".concat(r)}return e}(s,t),s}},68103:function(e,t,n){"use strict";n.r(t),n.d(t,{getAllTimeZones:function(){return s}});var i=n(17552),r=n(64076),o=n(60934),a=n(68422);function s(){var e=this,t=[];return(0,o.Z)().forEach(function(n){(0,r.Z)(this,e),t.push.apply(t,(0,i.Z)(n.group))}.bind(this)),t.sort()}var l={convert:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&t)try{n&&(t.includes("+")?t=t.replace("+","-"):t.includes("-")&&(t=t.replace("-","+")));var i="YYYY-MM-DD HH:mm:ss",r=a.default.tz(e,t);return r.isValid()?r.format(i):e}catch(t){return e}return!1},listTimeZones:s,guess:function(){return a.default.tz.guess()}};t.default=l},22327:function(e,t,n){"use strict";n.r(t);var i=n(64076),r=n(68422),o=n(50486),a={locale:{},isLoading:!1,setLocaleToEN:function(){var e=this,t={name:"en-us",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,formats:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A",l:"M/D/YYYY",ll:"MMM D, YYYY",lll:"MMM D, YYYY h:mm A",llll:"ddd, MMM D, YYYY h:mm A"},relativeTime:{future:"%s",past:"%s",s:"now",m:"a minute ago",mm:"%d minutes ago",h:"an hour ago",hh:"%d hours ago",d:"a day ago",dd:"%d days ago",M:"a month ago",MM:"%d months ago",y:"a year ago",yy:"%d years ago"},ordinal:function(t){(0,i.Z)(this,e);var n=["th","st","nd","rd"],r=t%100;return"[".concat(t).concat(n[(r-20)%10]||n[r]||n[0],"]")}.bind(this)};r.default.locale(t,null,!0),r.default.locale(t)},addScript:function(e){var t=this;return this.isLoading=!1,e&&r.default.locale()!==e.locale&&"function"==typeof e.dateScript?e.dateScript().then(function(){return(0,i.Z)(this,t),r.default.locale(e.locale),r.default.locale()}.bind(this)).catch(function(e){return(0,i.Z)(this,t),this.setLocaleToEN(),r.default.locale()}.bind(this)):new Promise(function(e){(0,i.Z)(this,t),this.setLocaleToEN(),e(r.default.locale())}.bind(this))},updateLocaleWith:function(e){if(!this.isLoading){if(Ember.isBlank(e))return this.setLocaleToEN(),!1;var t=o.LocaleMapping.AcceptedLocalizations[e];return e===o.LocaleMapping.DefaultLocaleKey||Ember.isBlank(t&&t.dateId)?(this.setLocaleToEN(),!1):(this.isLoading=!0,this.addScript({locale:t.dateId,dateScript:t.dateScript}))}return!1}};t.default=a},92759:function(e,t,n){"use strict";n.r(t),n.d(t,{formatBytes:function(){return p},updateAndGetLastFlowMessage:function(){return m},updateAndGetLastAutoMessage:function(){return g},isTranslationsUrl:function(){return v},convertOperand:function(){return b},checkCondition:function(){return y},safelyParseJSON:function(){return E},resizeImage:function(){return Z},getKeys:function(){return w},findIndexByValueProperty:function(){return T},findObjectByValueProperty:function(){return S},sortArray:function(){return I},matchArray:function(){return A},coercer:function(){return R},addQueryParams:function(){return C},checkReplyValidation:function(){return O},checkBotsInputValidation:function(){return _},singleMessageFromTextFragments:function(){return k},getParameterByName:function(){return M},getArticleToShow:function(){return N},isEmptyObject:function(){return P},isTrustedDomain:function(){return D},serializeArrayObjectRecord:function(){return L},serializeRecord:function(){return U},bulidBetaFeatureFlagObject:function(){return x},subsetOfArray:function(){return B},isFeatureEnabled:function(){return F},isRTL:function(){return j},checkAndUpdateReadMillis:function(){return z},isConversationPropertiesUpdateNeeded:function(){return G},updateConversationProperties:function(){return H},compareObjects:function(){return V}});var i=n(76459),r=n(97231),o=n(64076),a=n(68422),s=n(94035),l=n(50486),u=n(45652);function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},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 o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n4&&void 0!==arguments[4]&&arguments[4],l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=b(e,n,l),c=b(e,i,l),d=!1,f=s?"day":"second";switch(t){case"CONDITION_EQUAL":"DATE"===e?u&&c&&(d=(0,a.default)(u).isSame((0,a.default)(c),f)):d="DROP_DOWN"===e?c&&c.find((function(e){return u&&Ember.isEqual(u,e)})):u===c;break;case"CONDITION_NOT_EQUAL":if(!u)return d;d="DROP_DOWN"===e?!(d=c&&c.find(function(e){return(0,o.Z)(this,r),Ember.isEqual(u,e)}.bind(this))):u!==c;break;case"CONDITION_GREATER_THAN":"DATE"===e?u&&c&&(d=(0,a.default)(u).isAfter(c,f)):d=u>c;break;case"CONDITION_LESS_THAN":if(!u)return d;d="DATE"===e?(0,a.default)(u).isBefore(c,f):u0)}return d}function E(e){var t;try{t=JSON.parse(e)}catch(e){}return t}function Z(e){var t=e.picThumbWidth||225,n=e.picThumbHeight||225;t>200&&(n*=200/t,t=200),n>200&&(t*=200/n,n=200),Ember.set(e,"picThumbWidth",Math.round(t)),Ember.set(e,"picThumbHeight",Math.round(n))}function w(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id",i=0;for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];if(o&&o[n]===t)return i;i++}return-1}function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r&&r[n]===t)return r}return null}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"position";e&&e.sort((function(e,n){var i=e[t],r=n[t];return"position"!==t&&(i=i.toLowerCase(),r=r.toLowerCase()),i>r?1:i0){var i=e.indexOf("#"),r=-1===i?"":e.substr(i),a=-1!==(e=-1===i?e:e.substr(0,i)).indexOf("?")?"&":"?",s=Object.keys(t).map(function(e){return(0,o.Z)(this,n),"".concat(e,"=").concat(t[e])}.bind(this));return"".concat(e).concat(a).concat(s.join("&")).concat(r)}return e}function O(e,t){if(e)switch(e){case"email":return s.default.emailCheck(t);case"phone":return s.default.phoneCheck(t);case"number":return!isNaN(Number(t))}return!1}function _(e,t){switch(e){case"email":return s.default.emailCheck(t);case"phone":return s.default.phoneCheckForBots(t);case"number":return!isNaN(Number(t));case"time":return s.default.timeFormatCheck(t);default:return!1}}function k(e){var t="";if(e&&e.length)for(var n=0,i=e.length;n0}function L(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=e&&t&&e[t],r="number"==typeof n&&n,o=i&&"Array"===i.constructor.name&&i.length,a=i&&"Object"===i.constructor.name&&Object.keys(i).length,s=o&&r-1}function j(){return"rtl"===document.body.getAttribute("dir")}function z(e,t,n){e===n.get("readMillis")&&n.set("readMillis",t)}function G(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return!(!(r&&i[u.default.conversationPropertiesBetaFeature]&&null!=e&&e.conversationId&&e.conversationPropertiesVersion!==t.version)||null!=n&&n.conversationPropertiesUpdating||!t)}function H(e,t,n,i,r,a){var s=this,l=u.default.updateConversationPropertiesUrl;l=l.replace(u.default.EmberModelPathParams.Token,null==n?void 0:n.token).replace(u.default.EmberModelPathParams.ConversationId,e.conversationId),Ember.set(n,"conversationPropertiesUpdating",!0),null==i||i.makeRequest({method:"PUT",url:l,data:{conversation:{properties:h({},t.properties)}}}).then(function(){(0,o.Z)(this,s),Ember.set(n,"conversationPropertiesUpdating",!1),Ember.set(e,"conversationPropertiesVersion",t.version),a&&a()}.bind(this),function(e){(0,o.Z)(this,s),Ember.set(n,"conversationPropertiesUpdating",!1),null==r||r.log("conversationPropertiesUpdating failed",e)}.bind(this))}function V(e,t){if(!e||!t)return!1;var n=Object.getOwnPropertyNames(e),i=Object.getOwnPropertyNames(t);if(n.length!==i.length)return!1;var r,o=c(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(JSON.stringify(e[a])!==JSON.stringify(t[a]))return!1}}catch(e){o.e(e)}finally{o.f()}return!0}},26475:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default},v4:function(){return i.v4},v1:function(){return i.v1},parse:function(){return i.parse},unparse:function(){return i.unparse}});var i=n(91859)},81203:function(e){var t=window.requirejs;t.default&&!t.__esModule&&(t.__esModule=!0),e.exports=t},5512:function(e){var t=window.require("uri-templates");t.default&&!t.__esModule&&(t.__esModule=!0),e.exports=t},66857:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(26915))&&i.__esModule?i:{default:i};window.define("hotline-web/helpers/t",(function(){return r.default}));var o=(0,Ember.HTMLBars.template)({id:"Os58dKmR",block:'[[[10,0],[14,0,"app-loader"],[12],[1,"\\n "],[10,0],[14,0,"loader-frame"],[12],[1,"\\n "],[10,0],[15,0,[29,["loader-wrap ",[52,[30,1],"loader-wrap-vertical"]]]],[12],[1,"\\n "],[10,0],[14,0,"lds-ring"],[12],[1,"\\n "],[10,0],[12],[13],[1,"\\n "],[10,0],[12],[13],[1,"\\n "],[10,0],[12],[13],[1,"\\n "],[10,0],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,"h4"],[14,0,"loader-text"],[12],[1,"\\n"],[41,[30,2],[[[1," "],[1,[30,2]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,1],["help_text.loading"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["@isVertical","@label"],false,["if","t"]]',moduleName:"hotline-web/components/app-loader/template.hbs",isStrictMode:!1});t.default=o},72762:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(26915))&&i.__esModule?i:{default:i};window.define("hotline-web/helpers/t",(function(){return r.default}));var o=(0,Ember.HTMLBars.template)({id:"IPIVzYTT",block:'[[[11,0],[24,0,"section campaign-section"],[24,"tabindex","0"],[24,"role","button"],[17,1],[4,[38,0],["click",[30,2]],null],[12],[1,"\\n "],[10,0],[14,0,"content"],[12],[1,"\\n "],[10,0],[14,0,"fc-carousel-sent-msg"],[12],[1,"\\n "],[10,0],[14,0,"fc-carousel-sent-msg__inner"],[12],[1,"\\n "],[10,0],[14,0,"fc-carousel-sent-msg__image"],[12],[1,"\\n "],[10,"img"],[14,0,"fc-carousel-sent-msg__icon"],[15,"src",[30,0,["images","FCCarouselSent"]]],[15,"alt",[28,[37,1],["alt.carousel_sent"],null]],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"fc-carousel-sent-msg__text"],[12],[1,"\\n "],[1,[30,3]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n"]],["&attrs","@openChatWidget","@message"],false,["on","t"]]',moduleName:"hotline-web/components/app-reply-dialog-carousel/template.hbs",isStrictMode:!1});t.default=o},27893:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,Ember.HTMLBars.template)({id:"HFufHck1",block:'[[[11,0],[24,0,"section campaign-section"],[24,"tabindex","0"],[24,"role","button"],[17,1],[4,[38,0],["click",[30,2]],null],[12],[1,"\\n "],[10,0],[14,0,"content"],[12],[1,"\\n "],[10,0],[14,0,"h-comment"],[12],[1,"\\n "],[10,0],[14,0,"fc-ui-unity-message-bubble"],[12],[1,"\\n "],[10,0],[14,0,"h-message-text "],[12],[1,"\\n "],[1,[30,3]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["&attrs","@openChatWidget","@message"],false,["on"]]',moduleName:"hotline-web/components/app-reply-dialog-selection/template.hbs",isStrictMode:!1});t.default=n},35130:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=y(n(26915)),r=y(n(82750)),o=y(n(66791)),a=y(n(24508)),s=y(n(26378)),l=y(n(20668)),u=y(n(60515)),c=y(n(45726)),d=y(n(52837)),f=y(n(82173)),h=y(n(2311)),p=y(n(27893)),m=y(n(72762)),g=y(n(476)),v=y(n(28383)),b=y(n(7392));function y(e){return e&&e.__esModule?e:{default:e}}window.define("hotline-web/helpers/t",(function(){return i.default})),window.define("hotline-web/helpers/eq",(function(){return r.default})),window.define("hotline-web/helpers/contain-valid-text-fragment",(function(){return o.default})),window.define("hotline-web/helpers/not",(function(){return a.default})),window.define("hotline-web/helpers/and",(function(){return s.default})),window.define("hotline-web/helpers/freshid-profile-pic",(function(){return l.default})),window.define("hotline-web/helpers/choose-theme",(function(){return u.default})),window.define("hotline-web/helpers/avatar-content",(function(){return c.default})),window.define("hotline-web/helpers/sanitize-html",(function(){return d.default})),window.define("hotline-web/components/ui-unity-message-fragment/template",(function(){return f.default})),window.define("hotline-web/components/ui-unity-message-fragment/component",(function(){return h.default})),window.define("hotline-web/components/app-reply-dialog-selection/template",(function(){return p.default})),window.define("hotline-web/components/app-reply-dialog-carousel/template",(function(){return m.default})),window.define("hotline-web/components/app-reply-dialog-carousel/component",(function(){return g.default})),window.define("hotline-web/helpers/gt",(function(){return v.default})),window.define("hotline-web/components/ui-editor/component",(function(){return b.default}));var E=(0,Ember.HTMLBars.template)({id:"EoFV3c84",block:'[[[10,0],[15,0,[29,["preview-wrapper ",[52,[30,0,["isTabletView"]],"tablet-view"]]]],[15,1,[30,0,["wrapperID"]]],[12],[1,"\\n "],[10,0],[14,0,"close-campaign scroll-shake-avoid"],[12],[1,"\\n"],[41,[30,0,["scrollMessage"]],[[[1," "],[11,0],[24,0,"close-text"],[24,"role","button"],[24,"tabindex","0"],[16,"aria-label",[28,[37,1],["aria_labels.close_notification"],null]],[4,[38,2],[[30,0],"closeNotification"],null],[12],[1,"\\n "],[10,1],[14,"aria-hidden","true"],[14,0,"icon-ic_close"],[12],[1," "],[1,[28,[35,1],["common.button.close"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[11,1],[24,0,"icon-ic_close"],[24,"role","button"],[24,"tabindex","0"],[16,"aria-label",[28,[37,1],["aria_labels.close_notification"],null]],[4,[38,2],[[30,0],"closeNotification"],null],[12],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[15,0,[29,["preview-wrapper-scroll ",[52,[30,0,["showMaskImage"]],"mask-image"]," ",[52,[30,0,["messageStacker","showUnreadMessage"]],"unread-message"]]]],[12],[1,"\\n "],[10,0],[14,0,"scroll-shake-avoid"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["stackedMessages"]]],null]],null],null,[[[41,[28,[37,5],[[30,1,["messageCategoryId"]],[30,0,["MESSAGE_CATEGORIES","image"]]],null],[[[1," "],[10,0],[14,0,"section campaign-header"],[12],[1,"\\n "],[11,"img"],[24,"width","320"],[24,"height","180"],[16,"src",[30,1,["messageFragments","firstObject","content"]]],[16,"alt",[28,[37,1],["alt.attached_img"],null]],[24,"tabindex","0"],[4,[38,2],[[30,0],"enlargeImage",[30,1,["messageFragments","firstObject","content"]]],null],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[28,[37,5],[[30,1,["messageCategoryId"]],[30,0,["MESSAGE_CATEGORIES","video"]]],null],[[[1," "],[10,0],[14,0,"section campaign-header"],[12],[1,"\\n "],[10,"iframe"],[14,"width","320"],[14,"height","180"],[15,"title",[30,1,["messageFragments","firstObject","content"]]],[15,"src",[30,1,["messageFragments","firstObject","content"]]],[14,"allowfullscreen","true"],[14,"webkitallowfullscreen","true"],[14,"mozallowfullscreen","true"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[28,[37,6],[[30,1]],null],[[[1," "],[11,0],[16,0,[29,["section campaign-section ",[52,[51,[30,1,["isSameAgent"]]],"top-border"]]]],[24,"role","button"],[24,"tabindex","0"],[4,[38,2],[[30,0],"openChatWidget"],null],[12],[1,"\\n"],[41,[28,[37,8],[[30,1,["isSameAgent"]]],null],[[[1," "],[10,0],[14,0,"profile-pic"],[12],[1,"\\n"],[41,[28,[37,9],[[30,1,["user","displayName"]],[28,[37,8],[[30,0,["hideAgentName"]]],null]],null],[[[41,[28,[37,10],[[30,1,["user","alias"]]],null],[[[1," "],[10,"img"],[15,"src",[28,[37,10],[[30,1,["user","alias"]]],null]],[15,"alt",[28,[37,1],["alt.user_profile_pic"],null]],[12],[13],[1,"\\n"]],[]],[[[41,[28,[37,9],[[30,1,["user","profilePicUrl"]],[28,[37,8],[[30,0,["hideAgentPic"]]],null]],null],[[[1," "],[10,"img"],[15,"src",[30,1,["user","profilePicUrl"]]],[14,"data-profile-pic-agent",""],[15,"alt",[28,[37,1],["alt.user_profile_pic"],null]],[12],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"avatar-content-wrap agent-circle pad-0"],[12],[1,"\\n "],[10,1],[15,0,[29,["theme-bg pad-0 ",[28,[37,11],[[30,1,["user","displayName"]]],null]]]],[12],[1,"\\n "],[10,1],[14,0,"avatar-content pad-0"],[12],[1,[28,[35,12],[[30,1,["user","displayName"]]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]],[]]]],[]],[[[41,[30,0,["session","appLogoUrl"]],[[[1," "],[10,"img"],[15,"src",[30,0,["session","appLogoUrl"]]],[15,"alt",[28,[37,1],["alt.app_logo"],null]],[12],[13],[1,"\\n"]],[]],[[[41,[30,0,["session","appDisplayName"]],[[[1," "],[10,1],[14,0,"avatar-content-wrap agent-circle pad-0"],[12],[1,"\\n "],[10,1],[15,0,[29,["theme-bg pad-0 ",[28,[37,11],[[30,0,["session","appDisplayName"]]],null]]]],[12],[1,"\\n "],[10,1],[14,0,"avatar-content pad-0"],[12],[1,[28,[35,12],[[30,0,["session","appDisplayName"]]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]]],[]]],[1," "],[10,1],[14,0,"agent-name"],[12],[1,"\\n"],[41,[30,0,["hideAgentName"]],[[[41,[30,0,["session","appDisplayName"]],[[[1," "],[1,[28,[35,13],[[30,0,["session","appDisplayName"]],"strict"],null]],[1,"\\n"]],[]],null]],[]],[[[41,[30,1,["user","firstName"]],[[[1," "],[1,[28,[35,13],[[30,1,["user","firstName"]],"strict"],null]],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"content"],[12],[1,"\\n"],[41,[30,1,["messageFragments","length"]],[[[41,[30,0,["isArticleListType"]],[[[1," "],[8,[39,14],null,[["@message","@isbubble","@isListView"],[[30,1],"true","true"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,14],null,[["@message","@isbubble","@hideReplyFragments"],[[30,1],"true",true]],null],[1,"\\n"]],[]]]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]],[]]]],[1]],null],[41,[30,0,["showDropDownFragmentSelection"]],[[[1," "],[8,[39,15],null,[["@message","@openChatWidget"],[[28,[37,1],["common.labels.click_here_to_select"],null],[28,[37,2],[[30,0],"openChatWidget"],null]]],null],[1,"\\n"]],[]],[[[41,[30,0,["showCarouselFragmentSelection"]],[[[1," "],[8,[39,16],null,[["@message","@openChatWidget"],[[28,[37,1],["common.labels.fc_carousel_view_options"],null],[28,[37,2],[[30,0],"openChatWidget"],null]]],null],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n"],[41,[28,[37,9],[[30,0,["messageStacker","showUnreadMessage"]],[28,[37,17],[[30,0,["messageStacker","unreadMessagesCount"]],0],null]],null],[[[1," "],[11,1],[24,0,"unread-message-bar"],[24,"role","button"],[24,"tabindex","0"],[4,[38,2],[[30,0],"scrollToBottom",[30,0,["BUBBLE_CONFIG","scrollToBottomSpeed","high"]]],null],[12],[1,"\\n"],[41,[28,[37,17],[[30,0,["messageStacker","unreadMessagesCount"]],1],null],[[[1," "],[1,[28,[35,1],["conversation.chat_headers.new_msg_other"],[["count"],[[30,0,["messageStacker","unreadMessagesCount"]]]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,1],["conversation.chat_headers.new_msg_one"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"scroll-shake-avoid"],[12],[1,"\\n"],[41,[30,0,["defaultComposer"]],[[[41,[51,[30,0,["shouldHideReplyEditor"]]],[[[1," "],[10,0],[14,0,"replay-section h-reply-wrapper"],[12],[1,"\\n"],[41,[30,0,["hotline","ui","isDesktop"]],[[[1," "],[10,0],[15,0,[29,["h-reply ",[52,[51,[30,0,["hotline","ui","onLine"]]],"is-disabled"]]]],[12],[1,"\\n"],[41,[51,[30,0,["hotline","ui","isDesktop"]]],[[[1," "],[11,3],[16,0,[29,["h-reply-container ",[52,[51,[30,0,["showPlaceholderText"]]],"show-highlight"]]]],[24,6,"#"],[4,[38,2],[[30,0],"beforeSendMessage"],null],[12],[1,"\\n "],[10,0],[14,0,"h-reply-send"],[12],[10,"i"],[14,0,"icons icon-ic_send"],[12],[13],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["isTextLimitExceeded"]],[[[1," "],[10,0],[14,0,"size-exceed-msg closed-state-message"],[12],[1,"\\n "],[10,"i"],[14,0,"icon-ic_alert"],[12],[13],[1,[28,[35,1],["size_exceeded_msg.infoMsg"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,18],null,[["@onBlur","@onFocus","@onKeyDown","@onKeyUp","@content","@isTextLimitExceeded","@exceedAction","@id","@contentEditable","@placeholder"],[[28,[37,2],[[30,0],"focusOut"],null],[28,[37,2],[[30,0],"focusIn"],null],[28,[37,2],[[30,0],"keyPressDown"],null],[28,[37,2],[[30,0],"keyPressUp"],null],[30,0,["content"]],[30,0,["isTextLimitExceeded"]],[28,[37,2],[[30,0],"setIsTextLimitExceeded"],null],[30,0,["DOM_ID","appReplyEditor"]],true,"conversation.ce.placeholders.default"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]],[[[1," "],[10,0],[14,0,"reply-options"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["replyFragment","fragments"]]],null]],null],null,[[[41,[30,2,["label"]],[[[1," "],[11,1],[24,0,"reply-option-button"],[24,"role","button"],[24,"tabindex","0"],[4,[38,2],[[30,0],"quickReplyOptionSelected",[30,2]],null],[12],[1,"\\n "],[1,[28,[35,13],[[30,2,["label"]],"strict"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[2]],null],[1," "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n"],[13]],["msg","fragment"],false,["if","t","action","each","-track-array","eq","contain-valid-text-fragment","unless","not","and","freshid-profile-pic","choose-theme","avatar-content","sanitize-html","ui-unity-message-fragment","app-reply-dialog-selection","app-reply-dialog-carousel","gt","ui-editor"]]',moduleName:"hotline-web/components/app-reply-dialog/template.hbs",isStrictMode:!1});t.default=E},64596:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=f(n(26378)),r=f(n(24508)),o=f(n(26915)),a=f(n(48644)),s=f(n(38777)),l=f(n(35130)),u=f(n(13367)),c=f(n(69385)),d=f(n(28383));function f(e){return e&&e.__esModule?e:{default:e}}window.define("hotline-web/helpers/and",(function(){return i.default})),window.define("hotline-web/helpers/not",(function(){return r.default})),window.define("hotline-web/helpers/t",(function(){return o.default})),window.define("hotline-web/components/ui-help-note/template",(function(){return a.default})),window.define("hotline-web/components/ui-help-note/component",(function(){return s.default})),window.define("hotline-web/components/app-reply-dialog/template",(function(){return l.default})),window.define("hotline-web/components/app-reply-dialog/component",(function(){return u.default})),window.define("hotline-web/helpers/or",(function(){return c.default})),window.define("hotline-web/helpers/gt",(function(){return d.default}));var h=(0,Ember.HTMLBars.template)({id:"4SrTdPL0",block:'[[[41,[28,[37,1],[[30,0,["isOpen"]],[28,[37,2],[[30,0,["session","previewMode"]]],null]],null],[[[1," "],[11,0],[16,0,[29,["d_hotline minimize ",[52,[30,0,["isRemoveCloseIcon"]],"hide-close-icon"]," ",[52,[30,0,["showMinimizeIconInsideWidget"]],"fc-mobile-close"]]]],[24,"role","button"],[24,"tabindex","0"],[16,"onkeydown",[28,[37,3],[[30,0],"setNextFocus"],null]],[16,"aria-label",[28,[37,4],["aria_labels.close_widget"],null]],[4,[38,3],[[30,0],"toggleChat"],null],[12],[1,"\\n "],[10,"i"],[14,0,"icon icon-ic_close mild"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[10,0],[15,0,[29,["hotline-launcher ",[52,[30,0,["l2r"]],"l2r"]," ",[52,[30,0,["isOpen"]],"h-open"]," ",[52,[30,0,["isFullscreen"]],"fc-fullscreen"]," ",[52,[30,0,["isMobileView"]],"fc-mobile-view"]]]],[14,"tabindex","-1"],[15,"role",[30,0,["getRole"]]],[12],[1,"\\n "],[10,0],[15,0,[29,["viewport h-chat-custom ",[52,[30,0,["startAnimate"]],"h-open"]]]],[12],[1,"\\n "],[10,0],[14,0,"widget-status animated fadeInUp faster"],[14,"aria-live","polite"],[12],[1,"\\n "],[8,[39,5],null,[["@reloadRoute","@gotoHome"],[[30,1],[30,2]]],null],[1,"\\n "],[13],[1,"\\n"],[1," "],[46,[28,[37,7],null,null],null,null,null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showBusinessClosedBanner"]],[[[1," "],[10,0],[14,0,"business-closed-banner"],[12],[1,"\\n "],[10,0],[14,0,"business-closed-content"],[12],[1,"\\n "],[1,[28,[35,4],["business_closed_banner"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[41,[28,[37,1],[[30,0,["displayNotification"]],[28,[37,2],[[30,0,["session","config","isFCSDKWebView"]]],null]],null],[[[1," "],[8,[39,8],null,[["@openChatWidget","@enlargeImage","@messageSendOnEnter","@stackMaxHeight"],[[28,[37,3],[[30,0],"toggleChat"],null],[28,[37,3],[[30,0],"onEnlargeImage"],null],[28,[37,3],[[30,0],"sendMessageOnEnter"],null],[30,0,["stackMaxHeight"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[11,0],[16,0,[29,["d-hotline h-btn animated zoomIn faster ",[52,[30,0,["eagerLoad"]],"eager-load"]," ",[52,[30,0,["l2r"]],"l2r"]," ",[52,[28,[37,9],[[30,0,["hideChatButton"]],[30,0,["isOpen"]]],null],"dn"]," ",[52,[30,0,["isOpen"]],"h-open"]," ",[52,[51,[30,0,["isWidgetLauncherIconType"]]],"d-hotline-text"]]]],[24,"tabindex","0"],[24,"role","button"],[4,[38,3],[[30,0],"toggleChat"],null],[12],[1,"\\n"],[41,[30,0,["isWidgetLauncherIconType"]],[[[41,[30,0,["getWidgetLauncherIcon"]],[[[1," "],[10,"img"],[14,0,"custom-icon"],[15,"src",[30,0,["getWidgetLauncherIcon"]]],[15,"alt",[29,[[28,[37,4],["alt.freshchat_logo"],null]]]],[12],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,1,"chat-icon"],[15,"aria-label",[28,[37,4],["aria_labels.chat"],null]],[12],[13],[1,"\\n"]],[]]]],[]],[[[1," "],[10,0],[14,1,"chat-text"],[12],[1,"\\n "],[10,"img"],[14,0,"help-icon"],[15,"src",[30,0,["getTextInfoIcon"]]],[15,"alt",[29,[[28,[37,4],["common.labels.help"],null]]]],[12],[13],[1,"\\n "],[10,1],[12],[1,[30,0,["getWidgetLauncherText"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[41,[51,[30,0,["displayNotification"]]],[[[1," "],[10,0],[15,0,[29,[[52,[30,0,["yet2BRead"]],"h-btn-notify animated zoomIn "]," ",[52,[28,[37,11],[[30,0,["totalUnreadCount"]],9],null],"unread-greater-than-9"]]]],[15,"aria-label",[52,[30,0,["yet2BRead"]],[30,0,["ariaLabelForUnreadCount"]]]],[12],[1,"\\n "],[10,1],[14,"aria-hidden","true"],[12],[1,"\\n "],[1,[52,[30,0,["yet2BRead"]],[30,0,["displayUnreadCount"]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n"],[2,[30,0,["customCSS"]]]],["@reloadRoute","@home"],false,["if","and","not","action","t","ui-help-note","component","-outlet","app-reply-dialog","or","unless","gt"]]',moduleName:"hotline-web/components/content-viewport/template.hbs",isStrictMode:!1});t.default=h},65673:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(66857)),r=a(n(26915)),o=a(n(52837));function a(e){return e&&e.__esModule?e:{default:e}}window.define("hotline-web/components/app-loader/template",(function(){return i.default})),window.define("hotline-web/helpers/t",(function(){return r.default})),window.define("hotline-web/helpers/sanitize-html",(function(){return o.default}));var s=(0,Ember.HTMLBars.template)({id:"qZku7FZ7",block:'[[[41,[30,0,["isLoading"]],[[[1," "],[10,0],[14,0,"loading-article"],[12],[1,"\\n "],[8,[39,1],null,null,null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"faq-content"],[12],[1,"\\n "],[10,0],[14,0,"h-header"],[12],[1,"\\n "],[10,0],[14,0,"article-view-header header fadeIn"],[12],[1,"\\n "],[10,0],[14,0,"logo header-section"],[12],[1,"\\n "],[11,0],[24,0,"ic-back"],[24,"role","button"],[24,"tabindex","0"],[16,"aria-label",[28,[37,2],["aria_labels.back"],null]],[4,[38,3],[[30,0],[30,0,["closeModal"]]],null],[12],[1,"\\n "],[10,"i"],[14,0,"icon icon-ic_back"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"category-title"],[12],[1,"\\n "],[10,0],[14,0,"title"],[12],[1,[30,0,["title"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"body sections faq-body-nobg no-footer article-lists-section article-view-section"],[12],[1,"\\n "],[10,0],[14,0,"articles-list hide-footer"],[12],[1,"\\n "],[10,0],[15,0,[29,["article-list-items animated fadeInUp faster ",[52,[30,0,["isEmptyState"]],"empty-state"]]]],[12],[1,"\\n"],[41,[30,0,["isEmptyState"]],[[[1," "],[10,0],[14,0,"empty-content"],[12],[1,"\\n "],[10,"img"],[15,"src",[30,0,["images","PNF"]]],[15,"alt",[28,[37,2],["alt.page_not_found"],null]],[12],[13],[1,"\\n "],[10,0],[14,0,"info"],[12],[1,[30,0,["emptyStatemessage"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"article-content animated fadeIn fast"],[12],[1,"\\n "],[10,0],[14,0,"fc_web_modal_closed"],[12],[1,"\\n "],[10,0],[14,0,"article-header-section"],[12],[1,"\\n "],[10,0],[14,0,"header shadow"],[12],[1,"\\n "],[10,0],[14,0,"article-name"],[12],[1,"\\n "],[1,[30,0,["title"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"progress-container"],[12],[1,"\\n "],[10,0],[14,0,"progress-bar"],[14,1,"myBar"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"animated fadeIn article-preview"],[12],[1,"\\n "],[10,0],[15,"onclick",[28,[37,3],[[30,0],"articleScrolling"],null]],[14,1,"article-body-content-scroll"],[14,0,"h-modal-notes scroll-section with-footer "],[12],[1,"\\n "],[10,0],[14,0,"modal-body"],[12],[1,"\\n "],[10,0],[14,0,"article-description"],[12],[1,[30,0,["description"]]],[13],[1,"\\n"],[41,[30,0,["link"]],[[[1," "],[10,0],[14,0,"article-external-link"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,2],["external_faqs.view_article"],null]],[13],[1,"\\n "],[11,"img"],[16,"src",[30,0,["images","ExternalLink"]]],[16,"alt",[28,[37,2],["alt.external_link"],null]],[24,"tabindex","0"],[4,[38,3],[[30,0],"openExternalLink",[30,0,["link"]]],null],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"bottom-gradient"],[12],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["buttonActions"]],[[[1," "],[10,0],[14,0,"modal-footer"],[12],[1,"\\n "],[10,0],[14,0,"article_vote_outer"],[12],[1,"\\n "],[10,1],[14,0,"article_vote_content"],[12],[1,"\\n"],[41,[30,0,["session","config","content","headers","custom_template_article_useful"]],[[[1," "],[1,[28,[35,4],[[30,0,["session","config","content","headers","custom_template_article_useful"]],"strict"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,2],["external_faqs.article_useful"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"voter-buttons"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["buttonActions"]]],null]],null],null,[[[1," "],[11,1],[24,0,"article_vote"],[24,"role","button"],[24,"tabindex","0"],[4,[38,3],[[30,0],"sendButtonAction",[30,1]],null],[12],[1,"\\n"],[41,[30,1,["icon"]],[[[1," "],[10,"img"],[15,"src",[30,1,["icon"]]],[15,"alt",[28,[37,2],["alt.article_vote_btn"],null]],[12],[13],[1,"\\n"]],[]],[[[1," "],[1,[30,1,["label"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],["btnAction"],false,["if","app-loader","t","action","sanitize-html","each","-track-array"]]',moduleName:"hotline-web/components/ui-article-modal/template.hbs",isStrictMode:!1});t.default=s},74407:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l(n(82750)),r=l(n(69385)),o=l(n(24508)),a=l(n(26915)),s=l(n(52837));function l(e){return e&&e.__esModule?e:{default:e}}window.define("hotline-web/helpers/eq",(function(){return i.default})),window.define("hotline-web/helpers/or",(function(){return r.default})),window.define("hotline-web/helpers/not",(function(){return o.default})),window.define("hotline-web/helpers/t",(function(){return a.default})),window.define("hotline-web/helpers/sanitize-html",(function(){return s.default}));var u=(0,Ember.HTMLBars.template)({id:"TOZTQGeV",block:'[[[44,[[30,0,["carouselCard","sections"]]],[[[41,[30,1],[[[1," "],[10,0],[15,0,[29,["fc-carousel-card\\n ",[52,[30,0,["isActive"]],"fc-carousel-card--active"],"\\n ",[52,[30,0,["isReadonly"]],"fc-carousel-card--readonly"]]]],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,1]],null]],null],null,[[[44,[[30,2,["fragments","firstObject"]]],[[[41,[30,3],[[[41,[28,[37,4],[[30,3,["fragmentType"]],[30,0,["FRAGMENT","IMAGE"]]],null],[[[41,[30,3,["content"]],[[[1," "],[10,0],[15,0,[29,["fc-carousel-card__image-container ",[52,[28,[37,5],[[30,0,["imageError"]],[28,[37,6],[[30,3,["content"]]],null]],null]," fc-carousel-card__image-container--error"]]]],[12],[1,"\\n"],[41,[30,0,["imageError"]],[[[1," "],[10,0],[14,0,"fc-carousel-card__image-error"],[12],[1,"\\n "],[10,"img"],[14,0,"fc-carousel-card__error-img"],[15,"src",[30,0,["images","FCCarCardImgErr"]]],[15,"alt",[28,[37,7],["alt.carousel_card_error"],null]],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"img"],[14,0,"fc-carousel-card__image"],[15,"src",[28,[37,8],[[30,3,["content"]],"strict"],null]],[15,"onerror",[28,[37,9],[[30,0],"handleImgError"],null]],[15,"alt",[28,[37,7],["alt.carousel_card"],null]],[12],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null]],[]],[[[41,[28,[37,4],[[30,3,["fragmentType"]],[30,0,["FRAGMENT","TEXT"]]],null],[[[41,[28,[37,4],[[30,2,["name"]],"title"],null],[[[1," "],[10,0],[14,0,"fc-carousel-card__title"],[15,"title",[28,[37,8],[[30,3,["content"]],"strict"],null]],[12],[1,"\\n "],[1,[28,[35,8],[[30,3,["content"]],"strict"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,2,["name"]],"subtitle"],null],[[[1," "],[10,0],[14,0,"fc-carousel-card__text fc-carousel-card__sub-title"],[15,"title",[28,[37,8],[[30,3,["content"]],"strict"],null]],[12],[1,"\\n "],[1,[28,[35,8],[[30,3,["content"]],"strict"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,2,["name"]],"description"],null],[[[1," "],[10,0],[15,0,[29,["fc-carousel-card__text ",[52,[30,0,["isReadonly"]],"fc-carousel-card__readonly-text"]]]],[15,"title",[28,[37,8],[[30,3,["content"]],"strict"],null]],[12],[1,"\\n "],[1,[28,[35,8],[[30,3,["content"]],"strict"],null]],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]]],[]]]],[]],[[[41,[28,[37,4],[[30,3,["fragmentType"]],[30,0,["FRAGMENT","CALLBACK"]]],null],[[[41,[51,[28,[37,5],[[28,[37,6],[[30,3,["label"]]],null],[30,0,["isReadonly"]]],null]],[[[1," "],[10,"button"],[15,0,[29,["fc-carousel-card__button h-img-button ",[52,[30,4],"h-img-button--selected"]," ",[52,[30,0,["isIPhone"]],"iphone-button"]]]],[15,"onclick",[28,[37,9],[[30,0],"handleOnSelect"],null]],[14,4,"button"],[12],[1,"\\n "],[10,1],[14,0,"btn-content"],[12],[1,"\\n"],[41,[30,4],[[[1," "],[10,"img"],[14,0,"fc-carousel-card__button-selected"],[15,"src",[30,0,["images","CheckIcon"]]],[15,"alt",[28,[37,7],["alt.carousel_card_selected"],null]],[12],[13],[1,"\\n"]],[]],null],[1," "],[1,[28,[35,8],[[30,3,["label"]],"strict"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],[[[41,[28,[37,4],[[30,3,["fragmentType"]],[30,0,["FRAGMENT","BUTTON"]]],null],[[[41,[28,[37,5],[[28,[37,4],[[30,3,["target"]],"_self"],null],[28,[37,6],[[30,3,["target"]]],null]],null],[[[1," "],[11,3],[16,6,[28,[37,8],[[30,3,["content"]],"strict"],null]],[16,"target",[28,[37,8],[[30,3,["target"]],"strict"],null]],[24,0,"fc-carousel-card__button fc-carousel-card__link"],[16,"title",[28,[37,8],[[30,3,["label"]],"strict"],null]],[4,[38,9],[[30,0],"openExternalLink",[28,[37,8],[[30,3,["content"]],"strict"],null]],null],[12],[1,"\\n "],[10,1],[14,0,"fc-carousel-card__link-text"],[12],[1,[28,[35,8],[[30,3,["label"]],"strict"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,3],[15,6,[28,[37,8],[[30,3,["content"]],"strict"],null]],[15,"target",[28,[37,8],[[30,3,["target"]],"strict"],null]],[14,0,"fc-carousel-card__button fc-carousel-card__link"],[15,"title",[28,[37,8],[[30,3,["label"]],"strict"],null]],[14,"rel","noopener noreferrer"],[12],[1,"\\n "],[10,1],[14,0,"fc-carousel-card__link-text"],[12],[1,[28,[35,8],[[30,3,["label"]],"strict"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],[]],null]],[]]]],[]]]],[]]]],[]],null]],[3]]]],[2]],null],[1," "],[13],[1,"\\n"]],[]],null]],[1]]]],["cardSections","section","card","@isSelected"],false,["let","if","each","-track-array","eq","or","not","t","sanitize-html","action","unless"]]',moduleName:"hotline-web/components/ui-carousel-card/template.hbs",isStrictMode:!1});t.default=u},41439:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=u(n(26915)),r=u(n(82750)),o=u(n(74407)),a=u(n(17448)),s=u(n(50037)),l=u(n(9715));function u(e){return e&&e.__esModule?e:{default:e}}window.define("hotline-web/helpers/t",(function(){return i.default})),window.define("hotline-web/helpers/eq",(function(){return r.default})),window.define("hotline-web/components/ui-carousel-card/template",(function(){return o.default})),window.define("hotline-web/components/ui-carousel-card/component",(function(){return a.default})),window.define("hotline-web/helpers/array-includes",(function(){return s.default})),window.define("hotline-web/components/ui-multi-select-footer/template",(function(){return l.default}));var c=(0,Ember.HTMLBars.template)({id:"CH5hCIUt",block:'[[[10,0],[14,0,"fc-carousel__viewport"],[12],[1,"\\n "],[10,0],[14,0,"fc-carousel__navigations"],[12],[1,"\\n"],[41,[30,0,["showLeftArrow"]],[[[1," "],[10,"button"],[14,0,"fc-carousel__navigation fc-carousel__navigation--left"],[15,"onclick",[28,[37,1],[[30,0],"slideLeft"],null]],[14,4,"button"],[12],[1,"\\n "],[10,"img"],[14,0,"fc-carousel__navigation--left-icon"],[15,"src",[30,0,["images","FCCarNavLeft"]]],[15,"alt",[28,[37,2],["alt.carousel_nav_left_icon"],null]],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showRightArrow"]],[[[1," "],[10,"button"],[14,0,"fc-carousel__navigation fc-carousel__navigation--right"],[15,"onclick",[28,[37,1],[[30,0],"slideRight"],null]],[14,4,"button"],[12],[1,"\\n "],[10,"img"],[14,0,"fc-carousel__navigation--right-icon"],[15,"src",[30,0,["images","FCCarNavLeft"]]],[15,"alt",[28,[37,2],["alt.carousel_nav_right_icon"],null]],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"fc-carousel-cards"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["cards"]]],null]],null],null,[[[1," "],[10,0],[14,0,"fc-carousel-card__wrapper"],[12],[1,"\\n"],[41,[28,[37,5],[[30,1,["templateType"]],[30,0,["TEMPLATE_TYPE","CAROUSEL_CARD","DEFAULT"]]],null],[[[1," "],[8,[39,6],null,[["@carouselCard","@isActive","@onCarouselSelect","@isReadonly","@isSelected"],[[30,1],[52,[28,[37,5],[[30,2],[30,0,["focusedCardIndex"]]],null],true],[28,[37,1],[[30,0],"onCarouselSelect"],null],[30,0,["isReadonly"]],[28,[37,7],[[30,0,["selectionModel","selected"]],[30,1]],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[1,2]],null],[1," "],[13],[1,"\\n"],[13],[1,"\\n"],[41,[30,3],[[[1," "],[8,[39,8],null,[["@selectedCount","@deselectSelection","@submitSelection"],[[30,0,["selectionModel","selected","length"]],[28,[37,1],[[30,0],[30,0,["deselectAll"]]],null],[28,[37,1],[[30,0],[30,0,["submitCarouselSelection"]]],null]]],null],[1,"\\n"]],[]],null]],["card","index","@isMultiple"],false,["if","action","t","each","-track-array","eq","ui-carousel-card","array-includes","ui-multi-select-footer"]]',moduleName:"hotline-web/components/ui-carousel/template.hbs",isStrictMode:!1});t.default=c},79559:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,Ember.HTMLBars.template)({id:"rYNFTvYO",block:'[[[2,[30,0,["generatedHTML"]]]],[],false,[]]',moduleName:"hotline-web/components/ui-emoji-text/template.hbs",isStrictMode:!1});t.default=n},48644:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(24508)),r=o(n(26915));function o(e){return e&&e.__esModule?e:{default:e}}window.define("hotline-web/helpers/not",(function(){return i.default})),window.define("hotline-web/helpers/t",(function(){return r.default}));var a=(0,Ember.HTMLBars.template)({id:"OMqxbA8Z",block:'[[[11,0],[16,0,[29,["help-text ",[52,[30,0,["hasFlashMessage"]],"flash-message"]," ",[52,[30,0,["hidden"]],"dn"]]]],[17,1],[12],[1,"\\n"],[41,[28,[37,1],[[30,0,["hotline","ui","onLine"]]],null],[[[1," "],[10,"i"],[14,0,"icon-ic_nointernet"],[12],[13],[1,[28,[35,2],["help_text.offline"],null]],[1,"\\n"]],[]],[[[41,[30,0,["isDisconnected"]],[[[1," "],[10,"i"],[14,0,"icon-ic_alert"],[12],[13],[1,[28,[35,2],["help_text.error"],null]],[1,"\\n "],[10,"br"],[12],[13],[1,"\\n "],[11,3],[24,6,"#"],[24,0,"refresh-btn"],[24,"role","button"],[4,[38,3],["click",[30,0,["refreshRoute"]]],null],[12],[1,"\\n "],[10,"i"],[14,0,"icon-ic_refresh"],[12],[13],[1," "],[1,[28,[35,2],["help_text.refresh"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["hotline","ui","helpNote"]],[[[1," "],[1,[30,0,["hotline","ui","helpNote"]]],[1,"\\n"]],[]],[[[41,[30,0,["isReconnecting"]],[[[1," "],[1,[28,[35,2],["help_text.reconnect"],null]],[1,"\\n"]],[]],[[[41,[30,0,["isConnecting"]],[[[1," "],[1,[28,[35,2],["help_text.connect"],null]],[1,"\\n"]],[]],[[[41,[30,0,["hasFlashMessage"]],[[[1," "],[1,[30,0,["flash","message"]]],[1,"\\n"]],[]],[[[41,[30,0,["isUserNotAuthenticated"]],[[[1," "],[1,[30,0,["jwtAuthErrorMsg"]]],[1,"\\n "]],[]],null]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]],[13],[1,"\\n"]],["&attrs"],false,["if","not","t","on"]]',moduleName:"hotline-web/components/ui-help-note/template.hbs",isStrictMode:!1});t.default=a},14067:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=c(n(82750)),r=c(n(26915)),o=c(n(26378)),a=c(n(24508)),s=c(n(60515)),l=c(n(45726)),u=c(n(52837));function c(e){return e&&e.__esModule?e:{default:e}}window.define("hotline-web/helpers/eq",(function(){return i.default})),window.define("hotline-web/helpers/t",(function(){return r.default})),window.define("hotline-web/helpers/and",(function(){return o.default})),window.define("hotline-web/helpers/not",(function(){return a.default})),window.define("hotline-web/helpers/choose-theme",(function(){return s.default})),window.define("hotline-web/helpers/avatar-content",(function(){return l.default})),window.define("hotline-web/helpers/sanitize-html",(function(){return u.default}));var d=(0,Ember.HTMLBars.template)({id:"vOk/gfYB",block:'[[[10,0],[14,0,"event-fragment"],[12],[1,"\\n "],[10,0],[14,0,"event-header"],[12],[1,"\\n "],[10,0],[14,0,"event-status"],[12],[1,"\\n "],[10,"i"],[14,0,"ic-calendar-scheduled icon-ic_scheduled cp-mini"],[12],[13],[1,"\\n "],[10,1],[14,0,"event-status-text"],[12],[1,"\\n"],[41,[28,[37,1],[[30,0,["eventCreationStatus"]],[30,0,["EVENT_STATUS","FAILED"]]],null],[[[1," "],[1,[28,[35,2],["calendar.status.failed"],null]],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["eventCreationStatus"]],[30,0,["EVENT_STATUS","CREATED"]]],null],[[[1," "],[1,[28,[35,2],["calendar.status.scheduled"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,2],["calendar.status.scheduling"],null]],[1,"\\n "]],[]]]],[]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"event-duration"],[12],[1,"\\n "],[1,[30,0,["eventDetails","duration"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"event-body"],[12],[1,"\\n "],[10,0],[14,0,"event-participants"],[12],[1,"\\n "],[10,0],[14,0,"agent-segment"],[12],[1,"\\n "],[10,0],[14,0,"cal-agent-pic"],[12],[1,"\\n"],[41,[30,0,["canShowFreshIdAgentPic"]],[[[1," "],[10,"img"],[15,"src",[30,0,["freshIdAgentPic"]]],[14,0,"event-participant-avatar"],[15,"alt",[28,[37,2],["aria-label.agent_profile_pic"],null]],[12],[13],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,0,["agentData","profilePicThumbUrl"]],[28,[37,4],[[30,0,["hideName"]]],null]],null],[[[41,[30,0,["hidePic"]],[[[41,[30,0,["agentData","firstName"]],[[[1," "],[10,1],[14,0,"event-participant-avatar"],[12],[1,"\\n "],[10,1],[14,0,"avatar-content-wrap agent-circle"],[12],[1,"\\n "],[10,1],[15,0,[29,["theme-bg ",[28,[37,5],[[30,0,["agentData","firstName"]]],null]]]],[12],[1,"\\n "],[10,1],[14,0,"avatar-content"],[12],[1,"\\n "],[1,[28,[35,6],[[30,0,["agentData","firstName"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["session","appDisplayName"]],[[[1," "],[10,1],[14,0,"event-participant-avatar"],[12],[1,"\\n "],[10,1],[14,0,"avatar-content-wrap agent-circle"],[12],[1,"\\n "],[10,1],[15,0,[29,["theme-bg ",[28,[37,5],[[30,0,["session","appDisplayName"]]],null]]]],[12],[1,"\\n "],[10,1],[14,0,"avatar-content"],[12],[1,"\\n "],[1,[28,[35,6],[[30,0,["session","appDisplayName"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]]],[]],[[[1," "],[10,"img"],[15,"src",[30,0,["agentData","profilePicThumbUrl"]]],[14,0,"event-participant-avatar"],[15,"alt",[28,[37,2],["alt.agent_profile_pic"],null]],[12],[13],[1,"\\n"]],[]]]],[]],[[[41,[30,0,["session","appLogoUrl"]],[[[1," "],[10,"img"],[15,"src",[30,0,["session","appLogoUrl"]]],[14,0,"event-participant-avatar"],[15,"alt",[28,[37,2],["alt.app_logo"],null]],[12],[13],[1,"\\n"]],[]],[[[1," "],[10,"img"],[15,"src",[30,0,["images","AgentDefault"]]],[14,0,"event-participant-avatar"],[15,"alt",[28,[37,2],["alt.participant_avatar"],null]],[12],[13],[1,"\\n "]],[]]]],[]]]],[]]],[41,[28,[37,3],[[30,0,["agentData","firstName"]],[28,[37,4],[[30,0,["hideName"]]],null]],null],[[[1," "],[10,0],[14,0,"cal-agent-name"],[12],[1,[30,0,["agentData","firstName"]]],[13],[1,"\\n"]],[]],[[[41,[30,0,["session","appDisplayName"]],[[[1," "],[10,0],[14,0,"cal-agent-name"],[12],[1,"\\n "],[1,[28,[35,7],[[30,0,["session","appDisplayName"]],"strict"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"user-segment"],[12],[1,"\\n "],[10,0],[14,0,"cal-user-pic"],[12],[1,"\\n"],[41,[30,0,["userPicUrl"]],[[[1," "],[10,"img"],[15,"src",[30,0,["userPicUrl"]]],[14,0,"event-participant-avatar"],[15,"alt",[28,[37,2],["alt.user_profile_pic"],null]],[12],[13],[1,"\\n"]],[]],[[[1," "],[10,"img"],[15,"src",[30,0,["images","CalUser"]]],[14,0,"event-participant-avatar"],[15,"alt",[28,[37,2],["alt.participant_avatar"],null]],[12],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"cal-user-name"],[12],[1,[28,[35,2],["calendar.you"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[13],[1,"\\n "],[10,0],[14,0,"event-date"],[12],[1,"\\n "],[1,[30,0,["eventDetails","date"]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[15,0,[29,["event-timings ",[52,[30,0,["calendarEventLink"]],"actionable"]]]],[12],[1,"\\n"],[41,[30,0,["calendarEventLink"]],[[[1," "],[10,3],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[15,6,[30,0,["calendarEventLink"]]],[15,"aria-label",[28,[37,2],["aria_labels.time_slot"],[["time"],[[30,0,["eventDetails","timeSlot"]]]]]],[12],[1,[30,0,["eventDetails","timeSlot"]]],[13],[1,"\\n"]],[]],[[[1," "],[1,[30,0,["eventDetails","timeSlot"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"event-footer"],[12],[1,"\\n "],[1,[30,0,["eventDetails","userTimeZone"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["if","eq","t","and","not","choose-theme","avatar-content","sanitize-html"]]',moduleName:"hotline-web/components/ui-meeting-message-fragment/template.hbs",isStrictMode:!1});t.default=d},34435:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=h(n(26915)),r=h(n(66857)),o=h(n(65673)),a=h(n(51033)),s=h(n(24508)),l=h(n(52837)),u=h(n(69385)),c=h(n(29502)),d=h(n(61357)),f=h(n(26378));function h(e){return e&&e.__esModule?e:{default:e}}window.define("hotline-web/helpers/t",(function(){return i.default})),window.define("hotline-web/components/app-loader/template",(function(){return r.default})),window.define("hotline-web/components/ui-article-modal/template",(function(){return o.default})),window.define("hotline-web/components/ui-article-modal/component",(function(){return a.default})),window.define("hotline-web/helpers/not",(function(){return s.default})),window.define("hotline-web/helpers/sanitize-html",(function(){return l.default})),window.define("hotline-web/helpers/or",(function(){return u.default})),window.define("hotline-web/components/ui-rate-limit-error/template",(function(){return c.default})),window.define("hotline-web/components/ui-rate-limit-error/component",(function(){return d.default})),window.define("hotline-web/helpers/and",(function(){return f.default}));var p=(0,Ember.HTMLBars.template)({id:"KCtndks0",block:'[[[41,[30,0,["hotline","ui","modal","imageUrl"]],[[[1," "],[10,0],[14,0,"image-wrapper"],[12],[1,"\\n "],[11,0],[24,0,"close icon icon-ic_close"],[24,"tabindex","0"],[24,"role","button"],[16,"aria-label",[28,[37,1],["aria_labels.close_image_preview"],null]],[4,[38,2],[[30,0],"closeModal"],null],[12],[13],[1,"\\n "],[10,0],[14,0,"image-cell"],[12],[1,"\\n "],[10,"img"],[15,"src",[30,0,["hotline","ui","modal","imageUrl"]]],[15,"alt",[30,0,["hotline","ui","modal","name"]]],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["hotline","ui","modal","thirdPartyURL"]],[[[1," "],[10,0],[15,0,[29,["animated fadeIn iframe-modal ",[52,[30,0,["isMobileView"]],"mobile-view"]]]],[12],[1,"\\n "],[10,0],[14,0,"h-modal-notes"],[12],[1,"\\n "],[10,0],[14,0,"modal-header"],[12],[1,"\\n "],[11,0],[24,0,"ic-back"],[24,"role","button"],[24,"tabindex","0"],[16,"aria-label",[28,[37,1],["aria_labels.back"],null]],[4,[38,2],[[30,0],"closeModal"],null],[12],[1,"\\n "],[10,"i"],[14,0,"icon icon-ic_back"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"frame-title"],[12],[1,"\\n"],[41,[30,0,["iframeHTTPS"]],[[[1," "],[10,"img"],[14,0,"proto-logo"],[15,"src",[30,0,["images","Lock"]]],[15,"alt",[28,[37,1],["alt.lock"],null]],[12],[13],[1,"\\n"]],[]],[[[1," "],[10,"img"],[14,0,"proto-logo"],[15,"src",[30,0,["images","InfoCircle"]]],[15,"alt",[28,[37,1],["alt.info_icon"],null]],[12],[13],[1,"\\n"]],[]]],[1," "],[1,[30,0,["iframeDomainURL"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"modal-body"],[12],[1,"\\n"],[41,[51,[30,0,["isFrameLoaded"]]],[[[1," "],[8,[39,4],null,null,null],[1,"\\n"]],[]],null],[1," "],[10,"iframe"],[15,"title",[30,0,["iframeURL"]]],[14,0,"external-iframe"],[15,"onload",[28,[37,2],[[30,0],"frameLoaded"],null]],[15,"src",[30,0,["iframeURL"]]],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["hotline","ui","modal","template"]],[[[1," "],[8,[39,5],null,[["@closeModal"],[[28,[37,2],[[30,0],"closeModal"],null]]],null],[1,"\\n"]],[]],[[[41,[30,0,["hotline","ui","modal","articleId"]],[[[41,[28,[37,6],[[30,0,["hotline","ui","modalOpen"]]],null],[[[1," "],[10,0],[14,0,"article-header-section"],[12],[1,"\\n "],[10,0],[14,0,"header"],[12],[1,"\\n "],[10,0],[14,0,"article-name"],[12],[1,"\\n "],[1,[28,[35,7],[[30,0,["hotline","ui","modal","title"]],"strict"],null]],[1,"\\n "],[13],[1,"\\n"],[41,[28,[37,8],[[30,0,["hotline","ui","isDesktop"]],[30,0,["isTabletView"]]],null],[[[1," "],[11,0],[24,0,"h-expand-modal-icon"],[24,"role","button"],[24,"tabindex","0"],[16,"aria-label",[52,[30,0,["isExpandIcon"]],[28,[37,1],["aria_labels.expand_article"],null],[28,[37,1],["aria_labels.shrink_article"],null]]],[4,[38,2],[[30,0],"expandArticle"],null],[12],[1,"\\n "],[10,"i"],[15,0,[29,["icon black ",[52,[30,0,["isExpandIcon"]],"icon-ic_expand_faq","icon-ic_shrink_faq"]]]],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"progress-container shadow"],[12],[1,"\\n "],[10,0],[14,0,"progress-bar"],[14,1,"myBar"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[15,0,[29,["animated fadeIn article-preview ",[52,[30,0,["hotline","ui","modalOpen"]],"article-modal"]]]],[12],[1,"\\n\\n"],[41,[30,0,["retryAfter"]],[[[1," "],[8,[39,9],null,[["@retryAfter","@retryingRateLimitedUrl","@retryCallback"],[[30,0,["retryAfter"]],[30,0,["retryingRateLimitedUrl"]],[30,0,["retryCallback"]]]],null],[1,"\\n"]],[]],[[[1," "],[11,0],[24,1,"faq-article-content-body"],[16,0,[29,["h-modal-notes ",[52,[28,[37,6],[[30,0,["hotline","ui","modalOpen"]]],null],"scroll-section"]," ",[52,[28,[37,6],[[30,0,["votedAlready"]]],null],"with-footer"]," ",[52,[30,0,["hotline","ui","modalOpen"]],"expandedModal"]]]],[4,[38,2],[[30,0],"handleSectionScrolling"],null],[12],[1,"\\n"],[41,[30,0,["hotline","ui","modalOpen"]],[[[1," "],[10,0],[14,0,"modal-header shadow"],[12],[1,"\\n "],[10,1],[14,0,"modal-title"],[12],[1,"\\n "],[1,[28,[35,7],[[30,0,["hotline","ui","modal","title"]],"strict"],null]],[1,"\\n "],[13],[1,"\\n "],[11,1],[24,0,"h-close"],[24,"tabindex","0"],[24,"role","button"],[16,"aria-label",[28,[37,1],["aria_labels.close"],null]],[4,[38,2],[[30,0],"closeModal"],null],[12],[1,"\\n "],[10,"i"],[14,0,"icon icon-ic_shrink_faq black"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[15,0,[29,["modal-body ",[52,[30,0,["hotline","ui","modalOpen"]],"scroll-section"]]]],[12],[1,"\\n"],[1," "],[2,[30,0,["htmlSafeArticleContent"]]],[1,"\\n\\n"],[41,[30,0,["hotline","ui","modalOpen"]],[[[1," "],[10,0],[15,0,[29,["bottom-gradient ",[52,[30,0,["votedAlready"]],"fix_btm"]]]],[12],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[28,[37,6],[[30,0,["hotline","ui","modalOpen"]]],null],[[[1," "],[10,0],[15,0,[29,["bottom-gradient remove-gradient ",[52,[30,0,["votedAlready"]],"fix_btm"]]]],[12],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["shouldShowVoteIcons"]],[[[1," "],[10,0],[14,0,"modal-footer"],[14,"aria-live","polite"],[12],[1,"\\n "],[10,0],[15,0,[29,["article_vote_outer ",[52,[30,0,["downvoted"]],"downVoted"]]]],[12],[1,"\\n"],[41,[28,[37,6],[[30,0,["votedSuccessfully"]]],null],[[[1," "],[10,0],[14,0,"article_vote_content"],[12],[1,"\\n"],[41,[30,0,["session","config","content","headers","faq_useful"]],[[[1," "],[1,[28,[35,7],[[30,0,["session","config","content","headers","faq_useful"]],"strict"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,1],["faqs.useful_question"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"like_dislike_vote"],[12],[1,"\\n "],[11,1],[24,0,"article_vote article_like"],[24,"role","button"],[24,"tabindex","0"],[16,"aria-label",[28,[37,1],["aria_labels.like"],null]],[4,[38,2],[[30,0],"upvoteDownvoteArticle",true],null],[12],[1,"\\n "],[10,"i"],[14,0,"icon-ic_thumps_up"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[11,1],[24,0,"article_vote article_dislike"],[24,"role","button"],[24,"tabindex","0"],[16,"aria-label",[28,[37,1],["aria_labels.dislike"],null]],[4,[38,2],[[30,0],"upvoteDownvoteArticle",false],null],[12],[1,"\\n "],[10,"i"],[14,0,"icon-ic_thumps_down"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["votedSuccessfully"]],[[[1," "],[10,1],[14,0,"thank_you animated fadeIn"],[12],[1,"\\n"],[41,[30,0,["session","config","content","headers","faq_thankyou"]],[[[1," "],[1,[28,[35,7],[[30,0,["session","config","content","headers","faq_thankyou"]],"strict"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,1],["faqs.thank_you_for_feedback"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[41,[28,[37,10],[[28,[37,6],[[30,0,["hotline","ui","openArticleFromMessage"]]],null],[30,0,["downvoted"]]],null],[[[1," "],[11,0],[24,0,"h-message-us animated fadeIn"],[24,"tabindex","0"],[24,"role","button"],[4,[38,2],[[30,0],"gotoMessages"],null],[12],[1,"\\n "],[10,0],[14,0,"h-message-us-btn"],[12],[1,"\\n "],[10,"i"],[14,0,"chat_double icon-ic_chat_icon"],[14,"aria-hidden","true"],[12],[13],[1,"\\n "],[10,1],[12],[1,"\\n"],[41,[30,0,["session","config","content","headers","faq_message_us"]],[[[1," "],[1,[28,[35,7],[[30,0,["session","config","content","headers","faq_message_us"]],"strict"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,1],["faqs.message_us_link"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],null]],[]]]],[]]]],[]]]],[],false,["if","t","action","unless","app-loader","ui-article-modal","not","sanitize-html","or","ui-rate-limit-error","and"]]',moduleName:"hotline-web/components/ui-modal/template.hbs",isStrictMode:!1});t.default=p},9715:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(26915)),r=o(n(82750));function o(e){return e&&e.__esModule?e:{default:e}}window.define("hotline-web/helpers/t",(function(){return i.default})),window.define("hotline-web/helpers/eq",(function(){return r.default}));var a=(0,Ember.HTMLBars.template)({id:"jp4gk2kE",block:'[[[10,0],[14,0,"fc-multi-select"],[12],[1,"\\n "],[10,1],[14,0,"fc-multi-select__selected"],[12],[1,"\\n "],[1,[28,[35,0],["conversation.fragment.multi_select.selected"],[["count"],[[30,1]]]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"fc-multi-select__actions button-region"],[12],[1,"\\n "],[10,"button"],[14,0,"h-img-button"],[15,"disabled",[28,[37,1],[[30,1],0],null]],[15,"onclick",[30,2]],[14,4,"button"],[12],[1,"\\n "],[10,1],[14,0,"btn-content"],[12],[1,"\\n "],[1,[28,[35,0],["conversation.fragment.multi_select.deselect"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"button"],[14,0,"h-img-button"],[15,"disabled",[28,[37,1],[[30,1],0],null]],[15,"onclick",[30,3]],[14,4,"button"],[12],[1,"\\n "],[10,1],[14,0,"btn-content"],[12],[1,"\\n "],[1,[28,[35,0],["common.button.submit"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["@selectedCount","@deselectSelection","@submitSelection"],false,["t","eq"]]',moduleName:"hotline-web/components/ui-multi-select-footer/template.hbs",isStrictMode:!1});t.default=a},29502:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=u(n(69385)),r=u(n(26915)),o=u(n(60515)),a=u(n(45726)),s=u(n(52837)),l=u(n(84033));function u(e){return e&&e.__esModule?e:{default:e}}window.define("hotline-web/helpers/or",(function(){return i.default})),window.define("hotline-web/helpers/t",(function(){return r.default})),window.define("hotline-web/helpers/choose-theme",(function(){return o.default})),window.define("hotline-web/helpers/avatar-content",(function(){return a.default})),window.define("hotline-web/helpers/sanitize-html",(function(){return s.default})),window.define("hotline-web/templates/components/ui-faq-error-message",(function(){return l.default}));var c=(0,Ember.HTMLBars.template)({id:"g0aXdzZP",block:'[[[41,[30,1],[[[1," "],[10,0],[14,0,"rate-limited-message"],[12],[1,"\\n "],[10,0],[14,0,"widget-status animated fadeInUp faster"],[12],[1,"\\n "],[10,0],[14,0,"help-text "],[12],[1,"\\n "],[10,"i"],[14,0,"icon-ic_alert"],[12],[13],[1,"\\n "],[1,[30,0,["rateLimitErrorMessage"]]],[1,"\\n "],[10,"br"],[12],[13],[1,"\\n "],[10,3],[14,6,"javascript:void(0);"],[15,0,[29,["refresh-btn\\n ",[52,[30,0,["retryAfterDelay"]],"refreshing-btn"]]]],[15,"onclick",[52,[51,[28,[37,2],[[30,0,["retryAfterDelay"]],[30,2]],null]],[28,[37,3],[[30,0],[30,3]],null],null]],[12],[1,"\\n\\n"],[41,[51,[30,2]],[[[1," "],[10,"i"],[14,0,"icon-ic_refresh"],[12],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[12],[1,[30,0,["refreshMessage"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,4],[[[1," "],[10,0],[14,0,"articles-list "],[12],[1,"\\n "],[10,"ul"],[14,0,"article-list-items animated fadeInUp faster"],[12],[1,"\\n "],[10,0],[14,0,"article-lists-sections animated fadeIn faster"],[12],[1,"\\n "],[10,0],[14,0,"article-heading"],[12],[1,"\\n "],[10,0],[14,0,"header-section shadow"],[12],[1,"\\n "],[10,0],[14,0,"category-logo"],[12],[1,"\\n"],[41,[30,4,["icon"]],[[[1," "],[10,0],[14,0,"category-icon"],[12],[1,"\\n "],[10,"img"],[15,"src",[30,4,["icon"]]],[14,0,"category-icon-img"],[15,"alt",[28,[37,4],["alt.category_icon"],null]],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"category-icon"],[12],[1,"\\n "],[10,1],[15,0,[29,["category-icon-inner ",[28,[37,5],[[30,4,["title"]]],null]]]],[12],[1,"\\n "],[1,[28,[35,6],[[30,4,["title"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"category-title animated fadeIn fast"],[12],[1,"\\n "],[10,0],[14,0,"title-content uppercase"],[12],[1,[28,[35,4],["faqs.category"],null]],[13],[1,"\\n "],[10,0],[14,0,"sub-title"],[12],[1,[28,[35,7],[[30,4,["title"]],"strict"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,8],null,[["@images","@refreshMessage","@isRateLimitError","@retryCallback","@retryingRateLimitedUrl","@faqErrorMessage","@retryAfterDelay"],[[30,0,["images"]],[30,0,["refreshMessage"]],"true",[30,3],[30,2],[30,0,["rateLimitErrorMessage"]],[30,0,["retryAfterDelay"]]]],null],[1,"\\n"]],[]]]],["@isRateLimitExceededOnScroll","@retryingRateLimitedUrl","@retryCallback","@currentCategory"],false,["if","unless","or","action","t","choose-theme","avatar-content","sanitize-html","ui-faq-error-message"]]',moduleName:"hotline-web/components/ui-rate-limit-error/template.hbs",isStrictMode:!1});t.default=c},5828:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=v(n(82750)),r=v(n(26915)),o=v(n(79559)),a=v(n(87656)),s=v(n(74407)),l=v(n(17448)),u=v(n(28383)),c=v(n(26378)),d=v(n(24508)),f=v(n(52837)),h=v(n(69385)),p=v(n(62961)),m=v(n(14067)),g=v(n(31393));function v(e){return e&&e.__esModule?e:{default:e}}window.define("hotline-web/helpers/eq",(function(){return i.default})),window.define("hotline-web/helpers/t",(function(){return r.default})),window.define("hotline-web/components/ui-emoji-text/template",(function(){return o.default})),window.define("hotline-web/components/ui-emoji-text/component",(function(){return a.default})),window.define("hotline-web/components/ui-carousel-card/template",(function(){return s.default})),window.define("hotline-web/components/ui-carousel-card/component",(function(){return l.default})),window.define("hotline-web/helpers/gt",(function(){return u.default})),window.define("hotline-web/helpers/and",(function(){return c.default})),window.define("hotline-web/helpers/not",(function(){return d.default})),window.define("hotline-web/helpers/sanitize-html",(function(){return f.default})),window.define("hotline-web/helpers/or",(function(){return h.default})),window.define("hotline-web/helpers/not-eq",(function(){return p.default})),window.define("hotline-web/components/ui-meeting-message-fragment/template",(function(){return m.default})),window.define("hotline-web/components/ui-meeting-message-fragment/component",(function(){return g.default}));var b=(0,Ember.HTMLBars.template)({id:"+1sICyFN",block:'[[[41,[28,[37,1],[[30,0,["messageType"]],[30,0,["MESSAGE_TYPE","SCREEN_SHARING","CANCELLD"]]],null],[[[1," "],[1,[28,[35,2],["screenShare.reqCancelled"],null]],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["messageType"]],[30,0,["MESSAGE_TYPE","SCREEN_SHARING","ENDED"]]],null],[[[1," "],[1,[28,[35,2],["screenShare.sessionEnd"],null]],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["fragment","fragmentType"]],[30,0,["FRAGMENT","DYNAMIC_TEMPLATE_CONTENT"]]],null],[[[41,[30,0,["multiSelectButton"]],[[[1," "],[10,0],[14,0,"h-message-text"],[12],[8,[39,3],null,[["@text"],[[30,0,["multiSelectButton"]]]],null],[13],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["fragment","templateType"]],[30,0,["TEMPLATE_TYPE","CAROUSEL_CARD","DEFAULT"]]],null],[[[1," "],[8,[39,4],null,[["@carouselCard","@isReadonly"],[[30,1],true]],null],[1,"\\n "]],[]],null]],[]]]],[]],[[[41,[28,[37,1],[[30,0,["fragment","fragmentType"]],[30,0,["FRAGMENT","QUICKREPLY"]]],null],[[[1," "],[10,0],[14,0,"h-message-text"],[12],[41,[30,0,["fragment","customReplyText"]],[[[8,[39,3],null,[["@text"],[[30,0,["fragment","customReplyText"]]]],null]],[]],[[[8,[39,3],null,[["@text"],[[30,0,["fragment","label"]]]],null]],[]]],[13],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["fragment","fragmentType"]],[30,0,["FRAGMENT","TEXT"]]],null],[[[1," "],[10,0],[15,0,[29,["h-message-text ",[52,[30,0,["msgFragmentIndex"]],"not-first-fragment"]]]],[12],[41,[30,0,["fragmentContent"]],[[[8,[39,3],null,[["@text"],[[30,0,["fragmentContent"]]]],null]],[]],[[[41,[30,0,["customFlowCalendarInvite"]],[[[10,0],[14,0,"bubble-attachment"],[12],[10,"i"],[14,0,"ic-calendar icon-ic_schedule_meeting"],[14,"aria-hidden","true"],[12],[13],[10,1],[12],[1,[28,[35,2],["common.labels.calendar_attached"],null]],[13],[13]],[]],[[[8,[39,3],null,[["@text"],[[30,0,["getContent"]]]],null]],[]]]],[]]],[13],[1,"\\n"],[41,[30,0,["showReplyFragments"]],[[[41,[30,0,["message","replyFragments"]],[[[1," "],[10,0],[14,0,"h-message-text"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["message","replyFragments","firstObject","fragments"]]],null]],null],null,[[[1," "],[8,[39,3],null,[["@text"],[[30,2,["label"]]]],null],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]],null]],[]],[[[41,[28,[37,1],[[30,0,["fragment","fragmentType"]],[30,0,["FRAGMENT","IMAGE"]]],null],[[[41,[30,0,["isbubble"]],[[[1," "],[10,0],[15,0,[29,["h-message-text ",[52,[30,0,["msgFragmentIndex"]],"not-first-fragment"]]]],[12],[1,"\\n "],[10,0],[14,0,"bubble-attachment"],[12],[1,"\\n "],[10,"i"],[14,0,"icon-ic_image icons"],[14,"aria-hidden","true"],[12],[13],[1,"\\n "],[10,1],[12],[1,[28,[35,2],["common.labels.image_attached"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[15,0,[29,["chat_img_wrp ",[52,[28,[37,7],[[30,0,["message","messageFragments","length"]],1],null],"file-with-text"]]]],[12],[1,"\\n "],[11,"img"],[16,"src",[30,0,["imageUrl","content"]]],[16,"width",[30,0,["fragment","width"]]],[24,"height","132"],[24,0,"chat_img chat_frame"],[16,"alt",[30,0,["getImageName"]]],[24,"tabindex","0"],[24,"loading","lazy"],[4,[38,8],[[30,0],"enlargeImage",[30,0,["imageUrl","content"]]],null],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],[[[41,[28,[37,1],[[30,0,["fragment","fragmentType"]],[30,0,["FRAGMENT","BUTTON"]]],null],[[[41,[30,0,["isbubble"]],[[[1," "],[10,0],[15,0,[29,["h-message-text ",[52,[30,0,["msgFragmentIndex"]],"not-first-fragment"]]]],[12],[1,"\\n "],[10,0],[14,0,"bubble-attachment"],[12],[1,"\\n "],[10,"i"],[14,0,"faq_black icon-ic_message"],[14,"aria-hidden","true"],[12],[13],[1,"\\n "],[10,1],[12],[1,[28,[35,2],["common.labels.FAQ_attached"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"img-content"],[12],[1,"\\n "],[11,3],[24,6,"#"],[24,"target","new"],[24,0,"chat-btn"],[24,"role","button"],[4,[38,8],[[30,0],"performClickAction",[30,0,["fragment"]],true],null],[12],[1,"\\n"],[41,[28,[37,9],[[30,0,["fragment","label"]],[28,[37,10],[[30,0,["isFAQFragment"]]],null]],null],[[[1," "],[1,[30,0,["fragment","label"]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,2],["conversation.ce.viewFAQ"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],[[[41,[28,[37,1],[[30,0,["fragment","fragmentType"]],[30,0,["FRAGMENT","FILE"]]],null],[[[41,[30,0,["isbubble"]],[[[1," "],[10,0],[15,0,[29,["h-message-text ",[52,[30,0,["msgFragmentIndex"]],"not-first-fragment"]]]],[12],[1,"\\n "],[10,0],[14,0,"bubble-attachment"],[12],[1,"\\n "],[10,"i"],[14,0,"icon-ic_attachment"],[14,"aria-hidden","true"],[12],[13],[1,"\\n "],[10,1],[12],[1,[28,[35,2],["common.labels.File_attached"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[28,[37,9],[[30,0,["fragment","filePreview"]],[30,0,["fragment","filePreview","content"]]],null],[[[1," "],[10,0],[14,0,"text-file-preview"],[12],[1,"\\n "],[10,0],[14,0,"text-haze-holder"],[12],[1,"\\n "],[1,[30,0,["fragment","filePreview","content"]]],[1,"\\n "],[10,0],[14,0,"bottom-gradient"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"file-haze"],[12],[13],[1,"\\n "],[10,0],[15,0,[29,["file-details-holder ",[52,[28,[37,7],[[30,0,["message","messageFragments","length"]],1],null],"file-with-text"]]]],[12],[1,"\\n "],[10,1],[14,0,"file-size-holder"],[12],[1,"\\n "],[1,[28,[35,11],[[30,0,["fileSize"]],"strict"],null]],[1," • "],[1,[28,[35,11],[[30,0,["fileExtension"]],"strict"],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["fragment","fileHash"]],[[[1," "],[10,1],[14,0,"file-download-button-holder"],[12],[1,"\\n "],[11,3],[24,6,"#"],[24,"role","button"],[16,"aria-label",[28,[37,2],["aria_labels.download_file"],null]],[4,[38,8],[[30,0],"downloadFile",[30,0,["fragment","fileHash"]],[30,0,["fileName"]]],null],[12],[1,"\\n "],[10,"i"],[14,0,"icon-download"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[15,0,[29,["file-attachment ",[52,[30,0,["fileSecurityWarning"]],"warning"]," ",[52,[30,0,["fileSecurityError"]],"error"]," ",[52,[28,[37,7],[[30,0,["message","messageFragments","length"]],1],null],"file-with-text"]]]],[12],[1,"\\n "],[10,0],[14,0,"file-data row"],[12],[1,"\\n "],[10,0],[14,0,"file-meta"],[12],[1,"\\n "],[10,0],[14,0,"file-name"],[12],[1,"\\n "],[10,"img"],[14,0,"file-icon"],[15,"src",[30,0,["images","ICArticle"]]],[15,"alt",[28,[37,2],["alt.article_icon"],null]],[12],[13],[1,"\\n "],[10,0],[14,0,"name"],[12],[1,[28,[35,11],[[30,0,["fileName"]],"strict"],null]],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["fragment","fileHash"]],[[[1," "],[10,0],[14,0,"file-size"],[12],[1,[28,[35,11],[[30,0,["fileSize"]],"strict"],null]],[1," • "],[1,[28,[35,11],[[30,0,["fileExtension"]],"strict"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"download-file"],[12],[1,"\\n"],[41,[30,0,["fileSecurityError"]],[[[1," "],[10,3],[14,6,"#"],[14,0,"download-icon"],[12],[1,"\\n "],[10,"i"],[14,0,"icon-ic_close"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["fragment","fileHash"]],[[[1," "],[11,3],[24,6,"#"],[24,0,"download-icon"],[24,"role","button"],[16,"aria-label",[28,[37,2],["aria_labels.download_file"],null]],[4,[38,8],[[30,0],"downloadFile"],null],[12],[1,"\\n "],[10,"i"],[14,0,"icon-download"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,3],[15,6,[30,0,["fragment","fileUrl"]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[14,0,"download-icon"],[14,"role","button"],[15,"aria-label",[28,[37,2],["aria_labels.download_file"],null]],[12],[1,"\\n "],[10,"i"],[14,0,"icon-download"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[28,[37,12],[[30,0,["fileSecurityWarning"]],[30,0,["fileSecurityError"]]],null],[[[1," "],[10,0],[14,0,"file-security-info"],[12],[1,"\\n "],[10,"b"],[12],[1,[30,0,["fileSecurityInfoTitle"]]],[13],[1," -\\n "],[1,[30,0,["fileSecurityInfoDesc"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]]],[]]]],[]],[[[41,[28,[37,1],[[30,0,["fragment","fragmentType"]],[30,0,["FRAGMENT","COLLECTION"]]],null],[[[1," "],[10,0],[14,0,"articles-listview"],[12],[1,"\\n "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["articleCollection"]]],null]],null],null,[[[41,[28,[37,13],[[30,3,["fragmentType"]],[30,0,["FRAGMENT","CALLBACK"]]],null],[[[1," "],[11,"li"],[24,0,"article-info"],[24,"tabindex","0"],[4,[38,8],[[30,0],"performClickAction",[30,3]],null],[12],[1,"\\n "],[10,1],[15,"title",[30,3,["label"]]],[12],[1,[30,3,["label"]]],[13],[1,"\\n "],[10,1],[14,0,"arrow-right"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[3]],null],[41,[30,0,["showMoreArticle"]],[[[1," "],[11,"li"],[24,0,"article-info article-showmore"],[24,"tabindex","0"],[4,[38,8],[[30,0],"showMoreArticles"],null],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,2],["conversation.fragment.showmore"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["fragment","fragmentType"]],[30,0,["FRAGMENT","AUDIO"]]],null],[[],[]],[[[41,[28,[37,1],[[30,0,["fragment","fragmentType"]],[30,0,["FRAGMENT","VIDEO"]]],null],[[[41,[30,0,["isbubble"]],[[[1," "],[10,0],[15,0,[29,["h-message-text ",[52,[30,0,["msgFragmentIndex"]],"not-first-fragment"]]]],[12],[1,"\\n "],[10,0],[14,0,"bubble-attachment"],[12],[1,"\\n "],[10,"i"],[14,0,"fa-video-camera icons"],[14,"aria-hidden","true"],[12],[13],[1,"\\n "],[10,1],[12],[1,[28,[35,2],["common.labels.video_attached"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[15,0,[29,["chat_img_wrp ",[52,[28,[37,7],[[30,0,["message","messageFragments","length"]],1],null],"file-with-text"]]]],[12],[1,"\\n"],[41,[30,0,["isOpen"]],[[[1," "],[10,"iframe"],[15,"src",[30,0,["fragment","content"]]],[15,"title",[30,0,["fragment","content"]]],[14,"height","132"],[14,0,"chat_img chat_frame"],[14,"allowfullscreen","true"],[14,"webkitallowfullscreen","true"],[14,"mozallowfullscreen","true"],[12],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]]],[]],[[[41,[28,[37,1],[[30,0,["fragment","fragmentType"]],[30,0,["FRAGMENT","MEETING"]]],null],[[[1," "],[8,[39,14],null,[["@messageMeta","@fragment"],[[30,0,["messageMeta"]],[30,1]]],null],[1,"\\n"]],[]],null]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],["@fragment","fragment","fragment"],false,["if","eq","t","ui-emoji-text","ui-carousel-card","each","-track-array","gt","action","and","not","sanitize-html","or","not-eq","ui-meeting-message-fragment"]]',moduleName:"hotline-web/components/ui-unity-message-bubble/template.hbs",isStrictMode:!1});t.default=b},82173:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=m(n(14067)),r=m(n(31393)),o=m(n(41439)),a=m(n(70304)),s=m(n(26915)),l=m(n(26378)),u=m(n(69385)),c=m(n(82750)),d=m(n(24508)),f=m(n(5828)),h=m(n(44858)),p=m(n(96320));function m(e){return e&&e.__esModule?e:{default:e}}window.define("hotline-web/components/ui-meeting-message-fragment/template",(function(){return i.default})),window.define("hotline-web/components/ui-meeting-message-fragment/component",(function(){return r.default})),window.define("hotline-web/components/ui-carousel/template",(function(){return o.default})),window.define("hotline-web/components/ui-carousel/component",(function(){return a.default})),window.define("hotline-web/helpers/t",(function(){return s.default})),window.define("hotline-web/helpers/and",(function(){return l.default})),window.define("hotline-web/helpers/or",(function(){return u.default})),window.define("hotline-web/helpers/eq",(function(){return c.default})),window.define("hotline-web/helpers/not",(function(){return d.default})),window.define("hotline-web/components/ui-unity-message-bubble/template",(function(){return f.default})),window.define("hotline-web/components/ui-unity-message-bubble/component",(function(){return h.default})),window.define("hotline-web/helpers/contains-only-end-of-line",(function(){return p.default}));var g=(0,Ember.HTMLBars.template)({id:"AuYuOBs/",block:'[[[41,[30,0,["meetingMessageFragment"]],[[[1," "],[10,0],[14,0,"meeting-frag-holder"],[12],[1,"\\n "],[8,[39,1],null,[["@messageMeta","@fragment"],[[30,0,["message","internalMeta"]],[30,0,["meetingMessageFragment"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["isCarouselCardFragment"]],[[[41,[30,0,["isListView"]],[[[1," "],[10,0],[14,0,"h-comment"],[12],[1,"\\n "],[1,[30,0,["carouselCardTitles"]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"h-comment fc-carousel-message-bubble"],[12],[1,"\\n "],[8,[39,2],null,[["@cards","@isReadonly"],[[30,0,["message","messageFragments"]],true]],null],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],[[[1," "],[10,0],[15,0,[29,["h-comment ",[52,[30,0,["isArticleView"]],"h-wrapped-article"]," ",[52,[30,0,["isFileType"]],"file-attached"]," ",[52,[30,0,["isMedia"]],"media-message"]," ",[52,[30,0,["message","emojisCount"]],[30,0,["emojisCountClassBinding"]]]]]],[12],[1,"\\n"],[41,[30,0,["isMessageUnauthenticated"]],[[[1," "],[10,"i"],[14,0,"ic-unauthenticated custom-tooltip"],[12],[1,"\\n "],[10,1],[14,0,"tooltiptext"],[12],[1,[28,[35,3],["message.not_authenticated"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[28,[37,4],[[28,[37,5],[[28,[37,6],[[30,0,["message","status"]],[30,0,["MESSAGE_STATUS","NOT_SENT"]]],null],[28,[37,6],[[30,0,["message","status"]],[30,0,["MESSAGE_STATUS","NOT_UPLOADED"]]],null]],null],[28,[37,7],[[30,0,["isListView"]]],null]],null],[[[1," "],[10,"i"],[14,0,"fc-ic-not-sent custom-tooltip"],[12],[1,"\\n "],[10,1],[14,0,"tooltiptext"],[12],[1,[28,[35,3],["message.not_sent"],null]],[13],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["isListView"]],[[[1," "],[8,[39,8],null,[["@message","@fragment","@messageType","@isbubble"],[[30,1],[30,0,["message","messageFragments","firstObject"]],[30,0,["message","messageType"]],"true"]],null],[1,"\\n"]],[]],[[[41,[30,0,["calendarSpecificFragment"]],[[[1," "],[8,[39,8],null,[["@message","@fragment","@messageType","@isbubble"],[[30,1],[30,0,["calendarSpecificFragmentContent"]],[30,0,["message","messageType"]],[30,0,["isbubble"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["multiSelectButtons","length"]],[[[42,[28,[37,10],[[28,[37,10],[[30,0,["message","messageFragments"]]],null]],null],null,[[[1," "],[8,[39,8],null,[["@message","@fragment","@messageType","@multiSelectButton"],[[30,1],[30,2],[30,0,["message","messageType"]],[28,[37,11],[[30,0,["multiSelectButtons"]],[30,3]],null]]],null],[1,"\\n"]],[2,3]],null]],[]],[[[41,[28,[37,5],[[30,0,["userMessage"]],[28,[37,7],[[30,0,["translatedContentAvailable"]]],null]],null],[[[42,[28,[37,10],[[28,[37,10],[[30,0,["message","messageFragments"]]],null]],null],null,[[[41,[51,[28,[37,13],null,[["content","isbubble"],[[30,4,["content"]],[30,0,["isbubble"]]]]]],[[[1," "],[8,[39,8],null,[["@message","@fragment","@messageType","@isbubble","@isOpen","@hideReplyFragments"],[[30,1],[30,4],[30,0,["message","messageType"]],[30,0,["isbubble"]],[30,0,["isOpen"]],[30,5]]],null],[1,"\\n"]],[]],null]],[4]],null]],[]],[[[42,[28,[37,10],[[28,[37,10],[[30,0,["message","messageFragments"]]],null]],null],null,[[[41,[51,[28,[37,13],null,[["content","isbubble"],[[30,6,["content"]],[30,0,["isbubble"]]]]]],[[[1," "],[8,[39,8],null,[["@message","@msgFragmentIndex","@fragment","@messageType","@isbubble","@fragmentContent","@secondaryLocale","@showInBothLocales","@isOpen","@hideReplyFragments"],[[30,1],[30,7],[30,6],[30,0,["message","messageType"]],[30,0,["isbubble"]],[30,6,["translatedContent"]],"false",[30,0,["showInBothLocales"]],[30,0,["isOpen"]],[30,5]]],null],[1,"\\n"]],[]],null]],[6,7]],null],[1,"\\n"],[41,[30,0,["displayTranslatedContent"]],[[[1," "],[10,0],[14,0,"original-content"],[12],[1,"\\n "],[10,"hr"],[12],[13],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,0,["message","messageFragments"]]],null]],null],null,[[[41,[51,[28,[37,13],null,[["content","isbubble"],[[30,8,["content"]],[30,0,["isbubble"]]]]]],[[[1," "],[8,[39,8],null,[["@message","@fragment","@messageType","@isbubble","@fragmentContent","@secondaryLocale","@showInBothLocales","@isOpen"],[[30,1],[30,8],[30,0,["message","messageType"]],[30,0,["isbubble"]],[30,8,["content"]],"true",[30,0,["showInBothLocales"]],[30,0,["isOpen"]]]],null],[1,"\\n"]],[]],null]],[8]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]]],[1,"\\n "]],[]]]],[]]]],[]]],[1," "],[1,"\\n"],[1," "],[13],[1,"\\n"],[41,[30,0,["readOnlyCarouselCards"]],[[[1," "],[10,0],[14,0,"h-comment fc-carousel-message-bubble fc-carousel-readonly"],[12],[1,"\\n "],[8,[39,2],null,[["@cards","@isReadonly"],[[30,0,["readOnlyCarouselCards"]],true]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]]],[]]]],["@message","fragment","index","fragment","@hideReplyFragments","fragment","index","fragment"],false,["if","ui-meeting-message-fragment","ui-carousel","t","and","or","eq","not","ui-unity-message-bubble","each","-track-array","get","unless","contains-only-end-of-line"]]',moduleName:"hotline-web/components/ui-unity-message-fragment/template.hbs",isStrictMode:!1});t.default=g},1880:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l(n(24508)),r=l(n(34435)),o=l(n(55382)),a=l(n(64596)),s=l(n(71066));function l(e){return e&&e.__esModule?e:{default:e}}window.define("hotline-web/helpers/not",(function(){return i.default})),window.define("hotline-web/components/ui-modal/template",(function(){return r.default})),window.define("hotline-web/components/ui-modal/component",(function(){return o.default})),window.define("hotline-web/components/content-viewport/template",(function(){return a.default})),window.define("hotline-web/components/content-viewport/component",(function(){return s.default}));var u=(0,Ember.HTMLBars.template)({id:"wWIlpv3m",block:'[[[41,[28,[37,1],[[30,0,["hotline","ui","config","hideMessenger"]]],null],[[[41,[30,0,["hotline","ui","modalOpen"]],[[[1," "],[8,[39,2],null,[["@home"],[[28,[37,3],[[30,0],"gotoHome"],null]]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,4],null,[["@config","@reloadRoute","@restore","@home","@gotoChannel"],[[30,0,["hotline","ui","config"]],[28,[37,3],[[30,0],"reloadRoute"],null],[28,[37,3],[[30,0],"restoreConversation"],null],[28,[37,3],[[30,0],"gotoHome"],null],[28,[37,3],[[30,0],"gotoChannel"],null]]],null],[1,"\\n"]],[]],null]],[],false,["if","not","ui-modal","action","content-viewport"]]',moduleName:"hotline-web/templates/application.hbs",isStrictMode:!1});t.default=u},84033:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(26915)),r=o(n(69385));function o(e){return e&&e.__esModule?e:{default:e}}window.define("hotline-web/helpers/t",(function(){return i.default})),window.define("hotline-web/helpers/or",(function(){return r.default}));var a=(0,Ember.HTMLBars.template)({id:"A3lNsqf/",block:'[[[10,0],[14,0,"empty-state animated fadeIn faster"],[12],[1,"\\n "],[10,1],[14,0,"empty-state-content"],[12],[1,"\\n "],[10,"img"],[14,0,"no-result"],[15,"src",[30,1,["EmptyFAQs"]]],[15,"alt",[28,[37,0],["alt.no_results"],null]],[12],[13],[1,"\\n "],[10,2],[14,0,"no-result-message"],[12],[1,"\\n "],[1,[30,2]],[1,"\\n "],[13],[1,"\\n"],[41,[30,3],[[[1," "],[10,"br"],[12],[13],[1,"\\n "],[10,3],[14,6,"javascript:void(0)"],[15,"onclick",[52,[51,[28,[37,3],[[30,4],[30,5]],null]],[28,[37,4],[[30,0],[30,6]],null]]],[15,0,[29,["refresh-btn ",[52,[28,[37,3],[[30,4],[30,5]],null],"refreshing-btn"]]]],[12],[1,"\\n "],[10,"i"],[14,0,"icon-ic_refresh"],[12],[13],[1," "],[10,1],[12],[1,[30,7]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],["@images","@faqErrorMessage","@isRateLimitError","@retryAfterDelay","@retryingRateLimitedUrl","@retryCallback","@refreshMessage"],false,["t","if","unless","or","action"]]',moduleName:"hotline-web/templates/components/ui-faq-error-message.hbs",isStrictMode:!1});t.default=a},33790:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(26915))&&i.__esModule?i:{default:i};window.define("hotline-web/helpers/t",(function(){return r.default}));var o=(0,Ember.HTMLBars.template)({id:"4EHThldU",block:'[[[10,0],[14,0,"error-page-wrap"],[12],[1,"\\n "],[10,"h3"],[12],[1,"\\n "],[1,[28,[35,0],["status_messages.access_denied.heading"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[12],[1,"\\n "],[1,[28,[35,0],["status_messages.access_denied.line1"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[12],[1,"\\n "],[1,[28,[35,0],["status_messages.access_denied.line2"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[12],[1,"\\n "],[1,[28,[35,0],["status_messages.access_denied.line3"],null]],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["t"]]',moduleName:"hotline-web/templates/error/access-denied.hbs",isStrictMode:!1});t.default=o},87219:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(26915))&&i.__esModule?i:{default:i};window.define("hotline-web/helpers/t",(function(){return r.default}));var o=(0,Ember.HTMLBars.template)({id:"P4nLWEKG",block:'[[[10,0],[14,0,"error-page-wrap"],[12],[1,"\\n "],[10,"h3"],[12],[1,"\\n "],[1,[28,[35,0],["status_messages.not_found.heading"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"h4"],[12],[1,"\\n "],[1,[28,[35,0],["status_messages.not_found.status"],null]],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["t"]]',moduleName:"hotline-web/templates/error/not-found.hbs",isStrictMode:!1});t.default=o},5744:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(26915))&&i.__esModule?i:{default:i};window.define("hotline-web/helpers/t",(function(){return r.default}));var o=(0,Ember.HTMLBars.template)({id:"yXZtJR1y",block:'[[[10,0],[14,0,"error-page-wrap"],[12],[1,"\\n "],[10,"h3"],[12],[1,"\\n "],[1,[28,[35,0],["status_messages.service_unavailable.heading"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"h4"],[12],[1,"\\n "],[1,[28,[35,0],["status_messages.service_unavailable.status"],null]],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["t"]]',moduleName:"hotline-web/templates/error/service-unavailable.hbs",isStrictMode:!1});t.default=o},50576:function(e,t,n){"use strict";t.Z=n.p+"Empty_faqs.441b3c2e6ad93e3dbd8dc3b26f03c836.svg"},72681:function(e,t,n){"use strict";t.Z=n.p+"agent_default.0d0386baed83377ce9311261d2938c94.svg"},85338:function(e,t,n){"use strict";t.Z=n.p+"cal_user.8afddaa53041400b2ae2ab754272aba2.svg"},10078:function(e,t,n){"use strict";t.Z=n.p+"external-link.611c2af4dbad5f5f131b1eedc20d2a4d.svg"},74447:function(e,t,n){"use strict";t.Z=n.p+"fc-carousel-card-selected.aec28aa13776c30904c071b1626c3929.svg"},92423:function(e,t,n){"use strict";t.Z=n.p+"freshchat-line.7327fc2a43ff6a857c38e96ffa7e00f2.svg"},84587:function(e,t,n){"use strict";t.Z=n.p+"ic_article.e2675db2e0a79665fc82f84bc064bb1f.svg"},61461:function(e,t,n){"use strict";t.Z=n.p+"ic_bot_dp.a992e8c51bb5cebd186fe230a6fc3202.svg"}},l={};function u(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={id:e,loaded:!1,exports:{}};return s[e].call(n.exports,n,n.exports,u),n.loaded=!0,n.exports}u.m=s,u.amdD=function(){throw new Error("define cannot be used indirect")},e=[],u.O=function(t,n,i,r){if(!n){var o=1/0;for(c=0;c=r)&&Object.keys(u.O).every((function(e){return u.O[e](n[s])}))?n.splice(s--,1):(a=!1,r0&&e[c-1][2]>r;c--)e[c]=e[c-1];e[c]=[n,i,r]},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},u.t=function(e,i){if(1&i&&(e=this(e)),8&i)return e;if("object"==typeof e&&e){if(4&i&&e.__esModule)return e;if(16&i&&"function"==typeof e.then)return e}var r=Object.create(null);u.r(r);var o={};t=t||[null,n({}),n([]),n(n)];for(var a=2&i&&e;"object"==typeof a&&!~t.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((function(t){o[t]=function(){return e[t]}}));return o.default=function(){return e},u.d(r,o),r},u.d=function(e,t){for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.f={},u.e=function(e){return Promise.all(Object.keys(u.f).reduce((function(t,n){return u.f[n](e,t),t}),[]))},u.u=function(e){return"chunk."+{40:"29d6e53ebdb34eaf34f0",180:"84619d6d0fa45b7e4b5e",184:"b83cefaa682fd80ec3c4",357:"bb3bd1c6a3d88a3fefd5",380:"ab8e8fc0689d15f5b454",391:"b9eadbccb111dcf4a8a6",415:"26cf473ae048ec0f3cac",427:"c044e5da81c5dc69e5f5",529:"270f919f848c96be470c",557:"49e664c958a1ff3df0a0",560:"b17d7c00704eb9525975",577:"fb6efbab037a4dd560a9",579:"366bf5562cb189d46033",620:"cab319d4a62827ce0392",623:"fbc623af0fea1ea69e34",633:"40a7cc497f9cd21401e3",645:"11c333ab9d3909c46cc3",658:"53225951580d96ba885c",741:"84a95fe8164fb0f3a833",769:"5e169353dc8b4f999f6f",1159:"cef13af6657fe504a7ef",1196:"dae9bcbcb4ec3075f89a",1202:"c0ef0e16166baa6d1083",1259:"3b71d136561abdc1508a",1292:"a02376ea459aa817f0b5",1472:"7d97f1e931a42ea84cb7",1473:"76d899ea348cc24de0c9",1482:"1f627776925dcc77add9",1538:"bd237639eeab964bb944",1573:"20b48e235a32951b535f",1619:"ce511d92cc159416783d",1694:"6a332109bc605c54cbca",1769:"1faf4cd44752764a9f87",1797:"06827f3d7532afd993b9",1920:"1cea9f533d9bd9cbf0cf",1946:"c665e512be7fb3fc5895",2014:"fb460ad9c178c8571604",2134:"2a7afe584389e427cfdd",2148:"4f6612038c5a743496e3",2163:"8a6e4f35be5814dc78be",2199:"5447299d7df4eeb95706",2211:"6f5a713f50f1769c3d26",2222:"6fcd47a1caed99217ffe",2270:"2bc4db22b5098cedaaff",2336:"c3eb9abb632336eb211a",2378:"dd70499c376f62a61254",2379:"89d6f5c48d0d9f8160b0",2473:"f345f7806bb81198c0fb",2507:"19c406feda87cbdd52fe",2620:"afc4dc2a751ff1bf0bd9",2708:"9aaf5631b7ab43d75a90",2842:"0ea2da088fc363f387b5",2962:"fada3531263c0c71be4e",2994:"1b246263d58249b8eea4",3036:"bf2e58a7372c1e303836",3186:"a996b2eaf410dcfb30b0",3230:"304127aa9ba406759edb",3375:"6477a80e0e5e417077fb",3478:"4cdc7a29ae0705dafbef",3520:"0624714dad37d60faab3",3621:"ad552ba7d937394e407b",4002:"a4a950f20cb50e8f3ce5",4209:"6cc5217df85a6c722716",4247:"a0e12bf469a4ab7a3dda",4332:"87bbfc583c02ffc4a370",4494:"a1e80df5b283f2335219",4515:"117ff4c64e7fe1f8a51c",4527:"41ddc837daeda45a8265",4567:"bcbb84097f8e26bcd2c7",4572:"7be603f8fb2482fb972b",4714:"7e432a3cfd415d2dd29b",4733:"5376c66d8cbb81c21709",4742:"db1ce7c21fdde9a35691",4743:"29f372710395813df1ff",4777:"344ace8ee04dee65c059",4866:"91000fc734c8bead264b",5193:"4eb90fb20b80990647e2",5355:"68f6352a8a97ebba7600",5530:"4d89e0e87087116aa1cf",5683:"33a547d5a72c186f23c5",5743:"1a89c17f3c8b151513d4",5752:"e1ca7fb79a020ccf89a2",5880:"7b2a89f5bda269124b6f",5881:"4f3da42ef028eccefb2e",5885:"6737ab8405aab1815258",6076:"f548103197bfe5f83e1c",6171:"ff4b230b9a4d2bd66ddf",6355:"9232973f38a7643fe1cb",6377:"11558d2c0a69d0a95ed6",6406:"0aa6a5da8827bf2bdfb3",6419:"5d78080f08f4c46fec8a",6499:"927053ee2e0ba47450ec",6577:"3b43564ce1646d6dafce",6607:"3ce1fa3ded9e71fc5d0f",6636:"b7b8bac8452b68ff68ef",6816:"952b1667c4cd88e0bf6b",6928:"2f8a0229b52a8268c6b8",6940:"025b5e3b9167224da98d",6946:"b43492cda486195b5fd1",7147:"80f6b3e688d6a36fc9a5",7323:"1649eec4cb182a7ce0ab",7372:"1343b8e8f5a8798d3c7d",7409:"5e092498457f6ffe4e31",7447:"7666bb96e853b25284a7",7553:"9c56956d97bee94d0149",7716:"d65e71d8f31591183d92",7717:"daebaeb3ae893c22f74e",7748:"af4df2ef256a560cdd0b",7802:"01b06682c1a7cf069cd3",8040:"b20365cf6818959887b6",8126:"e996ebf66acd50e0f5a0",8195:"53bcdcfad2337df4ba0a",8214:"acab191b8b90c6643b0a",8320:"e36171bfe86006229161",8331:"34cfff3ffac50d1dc19b",8468:"70b8f6af2e39c83c1f46",8554:"5d771738ee2f8fbd5a92",8636:"ab6b8267deb7713d120d",8863:"9bf51d752d082ccfe90c",8918:"030943ed48a21c0258e6",8925:"2bbeed68e3d8557cadcc",8978:"1964e4f32f35d6e83349",9017:"cf656ce817d8fd2243c6",9025:"233db8195a01c265d7b4",9060:"bce517b2d66a34a44d2e",9063:"9894711a13fa419bb165",9087:"fa5f4b9786296ecd6e9e",9196:"5699f6c18ebf1e9ccb32",9313:"b4eba288376a66a4ff36",9323:"9633145dbe579dbda261",9349:"a581b9f8fe3f02e3b8a7",9481:"cf2220b6d090e27b9496",9513:"aab458149cea36a7af5b",9553:"7fcac1ecff39eef7a4de",9591:"dafe6fbd3e1561f1851d",9604:"ba3cbd7920347965600e",9755:"63668f47b005193b95c4",9809:"d40c96471c7aea9a2cad",9832:"7db30a5697069bfe11e9",9849:"fd314e4ac1e6a45b6b94",9881:"3561f612b8f50d092cf9",9935:"4cbf0994e33302879911",9936:"81419f7ef9be49a02bbd",9969:"2d9e3469a4151073ec47"}[e]+".js"},u.miniCssF=function(e){return"chunk."+{6824:"675c515d181d5e71ad47",9849:"fd314e4ac1e6a45b6b94"}[e]+".css"},u.miniCssF=function(e){return 6824===e?"../fd-messaging.b06d3173a46f1f0dfdd0.css":e+".css"},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i={},r="hotline-web:",u.l=function(e,t,n,o){if(i[e])i[e].push(t);else{var a,s;if(void 0!==n)for(var l=document.getElementsByTagName("script"),c=0;c