!function(){var e,t,n,i,r,o,a,s={55575:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(78978)},20772:function(e,t,n){"use strict";n.r(t);var i=n(73235),r=n(1149),o=n(11636),a=n(13418);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)}})})},1149:function(e,t,n){"use strict";n.r(t);var i=n(83335),r=n(13418);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)}})},44053:function(e,t,n){"use strict";n.r(t);var i=n(73235),r=n(1149),o=n(11636),a=n(13418);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)}})},87496:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var i=n(34645),r=n(58678),o=n(55411),a=n(79833);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(33036).default)},22592:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var i=n(34645),r=n(58678),o=n(55411),a=n(79833);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(33036).default)},33036:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var i,r,o,a,s=n(10935),l=n(34645),u=n(5660),c=n(69049),d=n(58678),f=n(55411),h=n(79833),p=n(52626),m=n(13256),g=n(35235),v=n(16493);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))}})},46202:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var i=n(34645),r=n(58678),o=n(55411),a=n(79833);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(33036).default)},47131:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=n(34645),r=n(5660),o=n(28433),a=n(58678),s=n(55411),l=n(79833),u=n(73235),c=n(1149),d=n(13418);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))},86441:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=n(34645),r=n(5660),o=n(28433),a=n(58678),s=n(55411),l=n(79833),u=n(73235),c=n(1149),d=n(13418);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))},10833: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(10935),f=n(34645),h=n(5660),p=n(69049),m=n(58678),g=n(55411),v=n(79833),b=n(52626),y=n(13256),E=n(35235),Z=n(50317),w=n(42410);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 Ne.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,s,l;(0,Ie.Z)((0,Ae.Z)(n.prototype),"didInsertElement",this).apply(this,arguments);var u=null===(e=this.hotline)||void 0===e||null===(t=e.ui)||void 0===t?void 0:t.config;u&&u.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);var c=null===(s=this.hotlineUI)||void 0===s||null===(l=s.config)||void 0===l?void 0:l.betaFeatures;c&&c[He.default.haystackBetaFeature]&&(this.set("handleBeforeUnloadEvent",this.addBeforeUnloadEvent.bind(this)),window.addEventListener("beforeunload",this.handleBeforeUnloadEvent))}},{key:"willDestroyElement",value:function(){(0,Ie.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),this.handleBeforeUnloadEvent&&window.removeEventListener("beforeunload",this.handleBeforeUnloadEvent)}},{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&&this.totalUnreadCount;return i&&(i=i&&-1===[He.default.CONVERSATION.MESSAGE_TYPE.SCREEN_SHARING.ACCEPTED,He.default.CONVERSATION.MESSAGE_TYPE.SCREEN_SHARING.ENDED,He.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,Ee.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===He.default.KEYCODES.TAB&&(this.isInitialRender&&(this.set("isInitialRender",!1),Ke.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!==He.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:He.default.FrameState.INITIALIZED}})}},{key:"addBeforeUnloadEvent",value:function(){this.logger.sendLogs()}},{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=Pe.default.webpush,m=p.domain[Pe.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(He.default.CRM.DOMAIN_PATH)&&(m=p.domain.crm[Pe.default.hotlineEnv.type].replace("{appName}",f)+"/index.html"),g!==f&&this.subscription.clearSubscription(),this.processPushNotifications(),m=p.protocol+m,this.logger.setAppsSession(this.session),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,Ee.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=this.getkey,h=e.data;if(h){var p,m,g=!1;if(h.isWebViewMessage)g=(0,We.isTrustedDomain)(r,null===(p=this.hotline)||void 0===p||null===(m=p.ui)||void 0===m?void 0:m.whiteListedDomains);else g=r===s||this.session.appHost===r;if(g){var v=h.action?h.action:h.event_id;switch(v){case He.default.TAKE_SCREENSHOT:this.postMessage.post({action:"take_screenshot"});break;case He.default.BOT_ACTIONS.OPEN_URL:this.localds&&this.localds.save();break;case He.default.BOT_ACTIONS.TRIGGER_JS_FUNCTION:var b,y,E=(null===(b=h.data)||void 0===b?void 0:b.value)||"undefined";this.botActionEvents.triggerEvent({name:v,data:{message:E,channelId:null===(y=h.data)||void 0===y?void 0:y.channelId}});break;case"push_subscribe_destroy":var Z;l.sendSubscribeOnUnload(),null!=h&&null!==(Z=h.payload)&&void 0!==Z&&Z.isClearIndexDB?window.localforage.removeItem(f).then(function(){(0,Ee.Z)(this,i),this.postMessage.post({action:"push_subscribe_destroy_response"})}.bind(this)):this.postMessage.post({action:"push_subscribe_destroy_response"});break;case"widget_blur":this.set("hotline.ui.widgetFocussed",!1),this.set("hotline.ui.parentTitle",h.payload.title),this.set("hotline.ui.parentLocation",h.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",h.payload.title),this.set("hotline.ui.parentLocation",h.payload.location);break;case"load_widget":var w,T=h.payload.config,S=null==T||null===(w=T.headerProperty)||void 0===w?void 0:w.customUserAgent;S&&"string"==typeof S&&"CNA"!==S.toUpperCase()&&(this.set("hotline.ui.isTablet",null),this.postMessage.post({action:"notify_frame",data:"mobile-view"}),Ember.set(this,"isMobileView",!0)),l.playEmptySound(T),this.send("loadWidget",h.payload);break;case"set_bot_config":var I=h.payload,R=I.flowId,C=I.flowVersionId,A=I.isPostAgentResolutionEnabled,O=void 0!==A&&A,_=I.isTemplateBot,k=void 0!==_&&_;Ember.set(this,"session.flowId",R),Ember.set(this,"session.flowVersionId",C),Ember.set(this,"session.isTemplateBot",k),Ember.set(this,"session.isPostAgentResolutionEnabled",O);break;case"push_user_meta":this.processPushNotifications(h.data);break;case"update_cookie":this.send("updateCookie",h.payload);break;case"restore_cookie":this.send("restoreCookie",h.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",h.payload);break;case"set_prop":this.send("setProp",h.payload);break;case"set_faq_tags":this.send("setFaqTags",h.payload);break;case"load_rules":Fe.Z.create({scope:this}).populate(),this.send("save",!1);var M=(new Date).getTime(),N=!0;c&&(c.get("hasLocationRule")||c.get("hasLocationKeyInRuleContent"))&&(!c.get("userGeolocation")||M-c.get("locationRuleFetchMillis")>He.default.GeolocationCacheDuration)&&(N=!1,this.axios.makeRequest({method:"GET",url:He.default.EmberModelUrl.geolocation.url.replace("{token}",d)}).then(function(e){(0,Ee.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))),N&&this.postMessage.post({action:"rules_loaded"});var P=this.cache.decache("track_events");P&&P.forEach(function(e){(0,Ee.Z)(this,i),this.updateEvent(e.eventName,e.eventProperties)}.bind(this));break;case"set_external_id":this.send("setExternalId",h.payload,function(e,t,n){(0,Ee.Z)(this,i),this.postMessage.post({action:h.action+"_ack",success:e,status:t,data:n})}.bind(this));break;case"user_exists":this.send("isUserCreated",function(e,t,n){(0,Ee.Z)(this,i),this.postMessage.post({action:h.action+"_ack",success:e,status:t,data:n})}.bind(this));break;case"set_user_properties":this.send("setUserProperties",h.payload,function(e,t,n){(0,Ee.Z)(this,i),this.postMessage.post({action:h.action+"_ack",success:e,status:t,data:n})}.bind(this));break;case"set_bots_properties":this.send("setBotsProperties",h.payload,function(e,t,n){(0,Ee.Z)(this,i),this.postMessage.post({action:h.action+"_ack",success:e,status:t,data:n})}.bind(this));break;case"set_conversation_properties":var D,L;(null===(D=this.hotlineUI)||void 0===D||null===(L=D.config)||void 0===L?void 0:L.betaFeatures)[He.default.conversationPropertiesBetaFeature]&&this.send("setConversationProperties",h.payload);break;case"set_custom_config":this.send("loadConfig",h.payload);break;case"get_user":a?this.postMessage.post({action:h.action+"_ack",success:!0,status:200,data:o}):this.postMessage.post({action:h.action+"_ack",success:!1,status:401});break;case"update_user":var U=h&&h.payload;a?U?(Ember.set(this,"resultDifference",this.getPayloadDiff(U)),!this.shouldUpdateUserProperty&&this.enabledBetaFeatures[He.default.disableMultipleUpdateCalls]||(this.enabledBetaFeatures&&this.enabledBetaFeatures[He.default.haystackBetaFeature]&&this.logger.addInfo("Update User",U),this.send("updateUser",U))):this.postMessage.post({action:h.action+"_ack",success:!1,status:400}):this.postMessage.post({action:h.action+"_ack",success:!1,status:401});break;case"reset_user":this.resetUserSession(h.action);break;case"create_user":this.send("createUser",h.payload,function(e,t,n){(0,Ee.Z)(this,i),this.postMessage.post({action:h.action+"_ack",success:e,status:t,data:n})}.bind(this));break;case"clone_user":this.send("loadUserByAlias",h.payload,function(e,t,n){(0,Ee.Z)(this,i),this.postMessage.post({action:h.action+"_ack",success:e,status:t,data:n})}.bind(this));break;case"authenticate_user":if(this.jwt.isEnabled){var B=h&&h.payload,x=B&&this.getJWTMeta(B),F=x&&x.reference_id;a||this.jwt.auth.app?this.send("verifyJWT",{jwtAuthToken:h.payload},function(e){(0,Ee.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)&&F?(this.jwt.auth.app=!1,Ember.set(this.jwt.auth,"user",!1),Ember.set(this,"session.jwtAuthToken",h.payload),this.send("getUser")):this.send("verifyJWT",{jwtAuthToken:h.payload},function(e){(0,Ee.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,Ee.Z)(this,i),this.postMessage.post({action:h.action+"_ack",success:!0,status:200,data:{uuid:e}})}.bind(this)):this.postMessage.post({action:h.action+"_ack",success:!1,status:401});break;case"generate_user_uuid":this.jwt.isEnabled?this.send("generateUserUUID",function(e){(0,Ee.Z)(this,i),this.postMessage.post({action:h.action+"_ack",success:!0,status:200,data:{uuid:e}})}.bind(this)):this.postMessage.post({action:h.action+"_ack",success:!1,status:401});break;case"open_channel":this.send("triggerOpenClose",!0),this.gotoChannel(h.payload);break;case"track_location":this.updateLocation(h.payload.pageUrl);break;case"track_event":this.updateEvent(h.payload.eventName,h.payload.data);break;case"track_activity":this.send("triggerActivity",h.payload);break;case"startScreenShare":var j=h.cb_data;j&&this.screenshare.startCoBrowsing(j);break;case"endScreenShare":this.screenshare.endCoBrowsing(h);break;case"acceptedAudioCall":this.screenshare.acceptAudioCall(h);break;case"deniedAudioCall":this.screenshare.denyAudioCall(h);break;case"stacked_max_height":this.set("stackMaxHeight",h.payload.height);break;case"collapse_all":var z,G=null===(z=this.hotline)||void 0===z?void 0:z.ui;G.modal&&(Ember.set(G,"modalOpen",!1),Ember.set(G,"openArticleFromMessage",!1),(0,Ye.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,Ee.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,Ee.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,Ee.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(this.isHaystackFELogsEnabled){var s,l=null===(s=this.conversations)||void 0===s?void 0:s.toArray();if(Array.isArray(l)){var u=null==l?void 0:l.reduce(function(e,n){var i=n.channelId,r=n.conversationId;return(0,Ee.Z)(this,t),null!==r&&(e[i]=e[i]||[],e[i].push(r),e[i].length>1&&(e.result[i]=e[i])),e}.bind(this),{result:{}}).result;u&&Object.keys(u).length>0&&this.logger.addInfo(u)}}if(o&&"category"===o.filterType&&(a=Ember.isPresent(r&&r.find(function(e){return(0,Ee.Z)(this,t),(0,We.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 c=this.session&&this.session.config;c&&c.showFAQOnOpen?this.router.replaceWith(this.session.isKbaseEnabled?"home.kbase-faq":"home.faqs"):c&&c.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,Ee.Z)(this,n);var t=e.src;e.src="",e.src=t}.bind(this)),this.set("isInitialRender",!1),Ke.default.unTrapFocus(".webchat")}else this.set("isInitialRender",!0),Ke.default.moveFocusTo(".hotline-launcher");var r=document.querySelector("html");((0,Ye.hasClass)(r,"expanded-article-view")||(0,Ye.hasClass)(r,"collapsed-article-view"))&&((0,Ye.removeClass)(r,"expanded-article-view"),(0,Ye.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!==He.default.KEYCODES.TAB||document.querySelector(".csat-rating")&&(event.preventDefault(),Ke.default.moveFocusTo(".csat-rating"))}},{key:"toggleNotification",value:function(e){var t=e===He.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",He.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=He.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,Ee.Z)(this,t)}.bind(this),function(e){(0,Ee.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,Ee.Z)(this,c),this.set("startAnimate",!0)}.bind(this),1),this.postMessage.post(d)}else this.set("startAnimate",!1),setTimeout(function(){(0,Ee.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(je.default,ze.default,De.default,Be.default,xe.default,Le.default,Ue.default,Ge.default)),se=(0,_e.Z)(ae.prototype,"screenshare",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),le=(0,_e.Z)(ae.prototype,"ruleEngine",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ue=(0,_e.Z)(ae.prototype,"notification",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ce=(0,_e.Z)(ae.prototype,"messageStacker",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),de=(0,_e.Z)(ae.prototype,"localStorage",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fe=(0,_e.Z)(ae.prototype,"postMessage",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),he=(0,_e.Z)(ae.prototype,"subscription",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=(0,_e.Z)(ae.prototype,"botActionEvents",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),me=(0,_e.Z)(ae.prototype,"isAndroid",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ge=(0,_e.Z)(ae.prototype,"isIOS",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ve=(0,_e.Z)(ae.prototype,"showBusinessClosedBanner",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,_e.Z)(ae.prototype,"replaceTags",[v],Object.getOwnPropertyDescriptor(ae.prototype,"replaceTags"),ae.prototype),(0,_e.Z)(ae.prototype,"isWidgetLauncherIconType",[b],Object.getOwnPropertyDescriptor(ae.prototype,"isWidgetLauncherIconType"),ae.prototype),(0,_e.Z)(ae.prototype,"getWidgetLauncherText",[y],Object.getOwnPropertyDescriptor(ae.prototype,"getWidgetLauncherText"),ae.prototype),(0,_e.Z)(ae.prototype,"getWidgetLauncherIcon",[E],Object.getOwnPropertyDescriptor(ae.prototype,"getWidgetLauncherIcon"),ae.prototype),(0,_e.Z)(ae.prototype,"getTextInfoIcon",[Z],Object.getOwnPropertyDescriptor(ae.prototype,"getTextInfoIcon"),ae.prototype),(0,_e.Z)(ae.prototype,"ariaLabelForUnreadCount",[w],Object.getOwnPropertyDescriptor(ae.prototype,"ariaLabelForUnreadCount"),ae.prototype),(0,_e.Z)(ae.prototype,"cssTemplate",[T],Object.getOwnPropertyDescriptor(ae.prototype,"cssTemplate"),ae.prototype),(0,_e.Z)(ae.prototype,"getRole",[S],Object.getOwnPropertyDescriptor(ae.prototype,"getRole"),ae.prototype),(0,_e.Z)(ae.prototype,"customCSS",[I],Object.getOwnPropertyDescriptor(ae.prototype,"customCSS"),ae.prototype),(0,_e.Z)(ae.prototype,"fontProperties",[R],Object.getOwnPropertyDescriptor(ae.prototype,"fontProperties"),ae.prototype),(0,_e.Z)(ae.prototype,"isOpen",[C],Object.getOwnPropertyDescriptor(ae.prototype,"isOpen"),ae.prototype),(0,_e.Z)(ae.prototype,"ariaLive",[A],Object.getOwnPropertyDescriptor(ae.prototype,"ariaLive"),ae.prototype),(0,_e.Z)(ae.prototype,"isFullscreen",[O],Object.getOwnPropertyDescriptor(ae.prototype,"isFullscreen"),ae.prototype),(0,_e.Z)(ae.prototype,"showMinimizeIconInsideWidget",[_],Object.getOwnPropertyDescriptor(ae.prototype,"showMinimizeIconInsideWidget"),ae.prototype),(0,_e.Z)(ae.prototype,"isRemoveCloseIcon",[k],Object.getOwnPropertyDescriptor(ae.prototype,"isRemoveCloseIcon"),ae.prototype),(0,_e.Z)(ae.prototype,"currentRouteName",[M],Object.getOwnPropertyDescriptor(ae.prototype,"currentRouteName"),ae.prototype),(0,_e.Z)(ae.prototype,"messageCB",[N],Object.getOwnPropertyDescriptor(ae.prototype,"messageCB"),ae.prototype),be=(0,_e.Z)(ae.prototype,"lastAgentMessages",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ye=(0,_e.Z)(ae.prototype,"enabledBetaFeatures",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,_e.Z)(ae.prototype,"displayNotification",[L],Object.getOwnPropertyDescriptor(ae.prototype,"displayNotification"),ae.prototype),(0,_e.Z)(ae.prototype,"multipleTabsUserObserver",[U],Object.getOwnPropertyDescriptor(ae.prototype,"multipleTabsUserObserver"),ae.prototype),(0,_e.Z)(ae.prototype,"multipleTabsUserClearObserver",[B],Object.getOwnPropertyDescriptor(ae.prototype,"multipleTabsUserClearObserver"),ae.prototype),(0,_e.Z)(ae.prototype,"unreadObserver",[x],Object.getOwnPropertyDescriptor(ae.prototype,"unreadObserver"),ae.prototype),(0,_e.Z)(ae.prototype,"onEnlargeImage",[F],Object.getOwnPropertyDescriptor(ae.prototype,"onEnlargeImage"),ae.prototype),(0,_e.Z)(ae.prototype,"setTags",[j],Object.getOwnPropertyDescriptor(ae.prototype,"setTags"),ae.prototype),(0,_e.Z)(ae.prototype,"sendMessageOnEnter",[z],Object.getOwnPropertyDescriptor(ae.prototype,"sendMessageOnEnter"),ae.prototype),(0,_e.Z)(ae.prototype,"setFaqTags",[G],Object.getOwnPropertyDescriptor(ae.prototype,"setFaqTags"),ae.prototype),(0,_e.Z)(ae.prototype,"setProp",[H],Object.getOwnPropertyDescriptor(ae.prototype,"setProp"),ae.prototype),(0,_e.Z)(ae.prototype,"loadHomeView",[V],Object.getOwnPropertyDescriptor(ae.prototype,"loadHomeView"),ae.prototype),(0,_e.Z)(ae.prototype,"toggleChat",[q],Object.getOwnPropertyDescriptor(ae.prototype,"toggleChat"),ae.prototype),(0,_e.Z)(ae.prototype,"updateView",[W],Object.getOwnPropertyDescriptor(ae.prototype,"updateView"),ae.prototype),(0,_e.Z)(ae.prototype,"setNextFocus",[Y],Object.getOwnPropertyDescriptor(ae.prototype,"setNextFocus"),ae.prototype),(0,_e.Z)(ae.prototype,"toggleNotification",[K],Object.getOwnPropertyDescriptor(ae.prototype,"toggleNotification"),ae.prototype),(0,_e.Z)(ae.prototype,"toggleDialog",[J],Object.getOwnPropertyDescriptor(ae.prototype,"toggleDialog"),ae.prototype),(0,_e.Z)(ae.prototype,"closeNotification",[Q],Object.getOwnPropertyDescriptor(ae.prototype,"closeNotification"),ae.prototype),(0,_e.Z)(ae.prototype,"triggerActivity",[X],Object.getOwnPropertyDescriptor(ae.prototype,"triggerActivity"),ae.prototype),(0,_e.Z)(ae.prototype,"triggerShowHide",[$],Object.getOwnPropertyDescriptor(ae.prototype,"triggerShowHide"),ae.prototype),(0,_e.Z)(ae.prototype,"updateCookie",[ee],Object.getOwnPropertyDescriptor(ae.prototype,"updateCookie"),ae.prototype),(0,_e.Z)(ae.prototype,"restoreCookie",[te],Object.getOwnPropertyDescriptor(ae.prototype,"restoreCookie"),ae.prototype),(0,_e.Z)(ae.prototype,"triggerOpenClose",[ne],Object.getOwnPropertyDescriptor(ae.prototype,"triggerOpenClose"),ae.prototype),(0,_e.Z)(ae.prototype,"notifyUnread",[ie],Object.getOwnPropertyDescriptor(ae.prototype,"notifyUnread"),ae.prototype),(0,_e.Z)(ae.prototype,"reloadWidget",[re],Object.getOwnPropertyDescriptor(ae.prototype,"reloadWidget"),ae.prototype),oe=ae))||oe)||oe)||oe)},1796:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(61142)},16876: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(35235),b=n(10935),y=n(34645),E=n(5660),Z=n(69049),w=n(28433),T=n(58678),S=n(55411),I=n(79833),R=n(52626),C=n(13256),A=n(18006),O=n(60534),_=n(70387),k=n.p+"page-not-found.5b02da7f25228bd06bc39c09fe0e9510.svg",M=n(67946),N=n(34175);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,A.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,A.Z)(n.prototype),"didInsertElement",this).apply(this,arguments),Ember.run.scheduleOnce("afterRender",this,this.renderFunction)}},{key:"didUpdateAttrs",value:function(){(0,I.Z)((0,A.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.intl.t(this.placeholder);return 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((0,U.sanitizeHTML)(this,t,!0)))):(t=e.clipboardData.getData("text/plain"),document.execCommand("insertHTML",!1,(0,U.sanitizeHTML)(this,t,!0))),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,A.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.isContentEmpty?this.hasValueInEditor&&this.hasValueInEditor(!1):this.hasValueInEditor&&this.hasValueInEditor(!0),this.set("value",this.element.innerHTML))}},{key:"focusOut",value:function(){this.onBlur&&this.onBlur()}},{key:"focusIn",value:function(){this.onFocus&&this.onFocus()}},{key:"parseEditorContentForSafari",value:function(){var e=this,t=this.editor,n=Array.from(t.querySelectorAll("p"));if(n.length>1){var i=n.map(function(t){return(0,E.Z)(this,e),t.textContent.trim()}.bind(this)).filter(function(t){return(0,E.Z)(this,e),t.length>0}.bind(this)).join("\n"),r=document.createElement("p");r.innerHTML=i,this.editor.innerHTML="",this.editor.innerHTML=r.outerHTML,this.set("value",r.outerHTML)}}},{key:"keyDown",value:function(e){if(13===e.which){if(!e.shiftKey&&(e.preventDefault(),this.onKeyDown)){if(this.hotline.ui.isChannelReplyText&&Ember.isBlank(this.value)){var t=e.target.innerText;this.value=t,this.set("hotline.ui.isChannelReplyText",!1)}this.isSafari&&this.parseEditorContentForSafari(),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)},81578: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,R,C,A,O,_,k,M,N,P,D,L=n(35235),U=n(10935),B=n(34645),x=n(5660),F=n(69049),j=n(28433),z=n(58678),G=n(55411),H=n(79833),V=n(13256),q=n(76144);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,B.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",R,(0,F.Z)(r)),(0,U.Z)((0,F.Z)(r),"session",C,(0,F.Z)(r)),(0,U.Z)((0,F.Z)(r),"hotline",A,(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,x.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}),R=(0,V.Z)(S.prototype,"rts",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,V.Z)(S.prototype,"session",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(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)},72936: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(10935),f=n(34645),h=n(5660),p=n(69049),m=n(58678),g=n(55411),v=n(79833),b=n(52626),y=n(13256),E=n(13418),Z=n(11731),w=n(50660),T=n(71259),S=n(89567),I=n(72857),R=n(62309),C=n(8495);function A(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=A(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)},70819: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,R,C,A,O,_,k,M,N,P,D,L,U,B=n(35235),x=n(25046),F=n(10935),j=n(34645),z=n(5660),G=n(69049),H=n(28433),V=n(58678),q=n(55411),W=n(79833),Y=n(52626),K=n(13256),J=n(18006),Q=n(13418),X=n(42410),$=n(1053),ee=n(44229),te=n(34175),ne=n(22126),ie=n(60534),re=n(70387),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,R=Ember._action,C=Ember._action,i(A=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,B.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,B.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",[R],Object.getOwnPropertyDescriptor(O.prototype,"frameLoaded"),O.prototype),(0,K.Z)(O.prototype,"handleSectionScrolling",[C],Object.getOwnPropertyDescriptor(O.prototype,"handleSectionScrolling"),O.prototype),A=O))||A)||A)},60416:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return R}});var i,r,o,a,s,l,u,c,d=n(35235),f=n(10935),h=n(34645),p=n(5660),m=n(69049),g=n(28433),v=n(58678),b=n(55411),y=n(79833),E=n(52626),Z=n(13256),w=n(18006),T=n(76144),S=n(34350);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 R=(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)},84388: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,R,C,A,O,_,k,M,N,P,D=n(89313),L=n(35235),U=n(10935),B=n(34645),x=n(5660),F=n(69049),j=n(28433),z=n(58678),G=n(55411),H=n(79833),V=n(52626),q=n(13256),W=n(18006),Y=n(13418),K=n(22126),J=n(42410),Q=n(96064),X=n(70387),$=n(27378);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,R=Ember._action,C=Ember._action,A=Ember._action,i((_=function(e){(0,z.Z)(n,e);var t=ee(n);function n(){var e;(0,B.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",[R],Object.getOwnPropertyDescriptor(_.prototype,"performClickAction"),_.prototype),(0,q.Z)(_.prototype,"openExternalLink",[C],Object.getOwnPropertyDescriptor(_.prototype,"openExternalLink"),_.prototype),(0,q.Z)(_.prototype,"showMoreArticles",[A],Object.getOwnPropertyDescriptor(_.prototype,"showMoreArticles"),_.prototype),O=_))||O)},15112:function(e,t,n){"use strict";n.r(t);var i=n(35235),r=n(13418);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")}}),isFreddyLiveTranslateEnabled:Ember.computed("hotline.ui.config.freddyLiveTranslationConfig.enabled",{get:function(){var e,t,n,i;return null===(e=this.hotline)||void 0===e||null===(t=e.ui)||void 0===t||null===(n=t.config)||void 0===n||null===(i=n.freddyLiveTranslationConfig)||void 0===i?void 0:i.enabled}}),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")})},62471: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},22838:function(e,t,n){"use strict";n.r(t);var i=n(35235),r=n(22126);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()}}}})},59743:function(e,t,n){"use strict";n.r(t),t.default=Ember.Controller},62121:function(e,t,n){"use strict";n.r(t),t.default=Ember.Controller},17606:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(98638)},96612: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}}}},24328:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(47968)},48692: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(44494)},93521:function(e,t,n){"use strict";n.r(t),n.d(t,{arrayIncludes:function(){return o}});var i=n(35235),r=n(29436);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)},51996: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)},26207: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)},4961:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var i=n(35235),r=n(13418),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&&(o=r.default.RuleMetricKeys.sent),i=s.url.replace("{token}",l).replace("{ruleId}",e).replace("{keys}",o),u&&(i+="&siteId=".concat(u)),this.scope.get("ruleEngine.isCampaignHistoryRequired")){var c=a&&a.get("session.omniCookie");i+="&userAlias=".concat(c)}if(this.scope.get("ruleEngine.isFMJourneyEnabled")){var d=a.get("session.referrer");window.parent.postMessage({campaignAck:!0,campaignId:e,visitorId:this.scope.get("session.omniCookie")},d&&atob(d))}a.axios.makeRequest({method:"PUT",url:i,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,replied:!1}),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},52310:function(e,t,n){"use strict";n.r(t),n.d(t,{containValidTextFragment:function(){return o}});var i=n(35235),r=n(13418);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)},84296: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)},84683:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.EnsureSafeComponentHelper}});var i=n(56979)},19390: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(30873)},29994:function(e,t,n){"use strict";var i=n(35235),r=n(42410),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}},12592:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(35235);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}},68601:function(e,t,n){"use strict";n.r(t);var i,r,o=n(54291),a=n(62471);a.default.APP&&(i=a.default.APP.name,r=a.default.APP.version),t.default={name:"App Version",initialize:(0,o.default)(i,r)}},76614: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}},51960:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(35235);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}},82882:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(35235);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}},78884:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(35235);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}},36438: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}},81223:function(e,t,n){"use strict";n.r(t);var i=n(3932);t.default={name:"container-debug-adapter",initialize:function(){var e=arguments[1]||arguments[0];e.register("container-debug-adapter:main",i.default)}}},50992:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(79077);function r(){var e=i.default.inflector;e.uncountable("days"),e.uncountable("operating-hours")}t.default={name:"custom-inflector-rules",initialize:r}},8241:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(2760)},40900:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(49637)},80218:function(e,t,n){"use strict";n.r(t);n(11145);var i=n(35725);t.default={name:"ember-data",initialize:i.default}},92454:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(62471);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}},31892:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(35235);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}},89154:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(35235);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}},17530:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(35235);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}},35887:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(35235);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}},98991:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(35235);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}},84346:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(35235);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}},97024:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(35235);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}},5090:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(35235);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}},53300:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(35235);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}},74013:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(35235);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}},68155:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(35235);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}},31687: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})}}},87403:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(35235);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}},77224:function(e,t,n){"use strict";n.r(t),t.default={name:"ember-data",initialize:function(){}}},59437:function(e,t,n){"use strict";n.r(t),n.d(t,{initialize:function(){return r}});var i=n(13418);function r(e){var t=e.lookup("service:logger"),n=e.lookup("service:hotline");Ember.onerror=function(e){var r,o;if(Ember.testing)throw e;console.error(e);var a=null==n||null===(r=n.ui)||void 0===r||null===(o=r.config)||void 0===o?void 0:o.betaFeatures;a&&a[i.default.haystackBetaFeature]&&t.captureException(e)}}t.default={initialize:r}},7259:function(e,t,n){"use strict";n.r(t);var i=n(52626),r=n(89313),o=n(35235),a=n(13418),s=n(42410),l=n(89866),u=n(79956),c=n(90123),d=n(65489),f=n(60534),h=n(70387),p=n(475);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(),E=n.localds,Z=E&&E.get("userBehaviour"),w=Z&&Z.get("executedRules"),T=[],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(k=null===(S=n.hotline)||void 0===S||null===(I=S.ui)||void 0===I?void 0:I.conversationReferenceId,n.conversation&&n.conversation.conversationId&&-1!==n.conversation.conversationId||!n.hasFirstUserMessageBeenSent){i.next=18;break}return i.abrupt("return");case 18:for(M=e.messageFragments?e.messageFragments:[],N=M.length,P=N-1;P>=0;P--)M[P].fragmentType===a.default.CONVERSATION.FRAGMENT_TYPE.IMAGE&&-1!==M[P].content.indexOf("data:image")&&M.splice(P,1);if(e.messageFragments=M,g&&(e.triggeredRuleIds=g.reduce(function(e,t){if((0,o.Z)(this,x),(t.get("autoRuleId")||t.get("flowId"))&&!t.get("hasBeenRepliedTo")){var i,r,s,l=e&&(e.findBy("ruleId",t.get("autoRuleId"))||e.findBy("flowId",t.get("flowId"))),u=w&&w.findBy("ruleId",t.get("autoRuleId")),c=u&&(null==u?void 0:u.replied),d=T.length>a.default.MINIMUM_TRIGGERED_RULES&&T.includes(t.get("autoRuleId")),f=null===(i=n.hotline)||void 0===i||null===(r=i.ui)||void 0===r||null===(s=r.config)||void 0===s?void 0:s.sales360App,h={};l&&e.removeObject(l),d&&!t.get("flowId")||(h.timeDiffInMillis=y-t.get("createdMillis"),t.get("autoRuleId")&&T.push(t.get("autoRuleId"))),t.get("autoRuleId")&&(!c||l&&l.ruleId===t.get("autoRuleId")&&c)&&(h.ruleId=t.get("autoRuleId"),h.timeDiffInMillis=y-t.get("createdMillis"),!f&&(u.replied=!0)),t.get("flowId")&&(h.flowId=t.get("flowId"),h.flowVersionId=t.get("flowVersionId"),h.serviceAccountId=t.get("messageUserId")),!n.lastMessage.messageId&&Object.keys(h).length>a.default.MINIMUM_TRIGGERED_RULES&&e.push(h),t.set("hasBeenRepliedTo",!0)}return e}.bind(this),[])),g&&(e.conversationProperties=n.getBotsConversationProperties(g)),null!==(R=n.localds)&&void 0!==R&&null!==(C=R.conversationPropertiesMeta)&&void 0!==C&&C.properties&&(e.chatConversationProperties=n.localds.conversationPropertiesMeta.properties),g){for(D=b-1;D>=0;D--)(L=v[D]).get("marketingId")&&0!==L.get("messageUserType")&&!L.get("hasBeenRepliedTo")&&(e.marketingReplyId||(e.marketingReplyId=L.get("marketingId")),L.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)),k&&(e.conversationReferenceId=k),null!==(A=n.model)&&void 0!==A&&A.conversationId||null!==(O=n.hotline)&&void 0!==O&&null!==(_=O.ui)&&void 0!==_&&_.parallelConversationId?e.conversationId=(null===(U=n.hotline)||void 0===U||null===(B=U.ui)||void 0===B?void 0:B.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,x),u?n.send("updateMessage",e.data,!0):(n.getFirstMessage(e.data),n.send("updateMessage",e.data)),n.didMessageSent&&n.didMessageSent()}.bind(this),function(t){(0,o.Z)(this,x);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,s,l,u,c,d,f,h=null===(n=this.hotline)||void 0===n||null===(i=n.ui)||void 0===i||null===(r=i.config)||void 0===r||null===(o=r.enabledFeatures)||void 0===o?void 0:o.indexOf(a.default.widgetReOpenEvent),p=null===(s=this.hotline)||void 0===s||null===(l=s.ui)||void 0===l?void 0:l.parentLocation,m=null===(u=this.hotline)||void 0===u||null===(c=u.ui)||void 0===c?void 0:c.parentTitle,g={msgHopId:e+"_"+(null===(d=this.hotline)||void 0===d||null===(f=d.ui)||void 0===f?void 0:f.hop),messageType:t&&t.messageType||y.MESSAGE_TYPE.NORMAL,messageUserType:y.USER_TYPE.USER,location:JSON.stringify({url:p,title:m}),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};return h&&null!=t&&t.isWidgetOpenEvent&&(g.isWidgetOpenEvent=null==t?void 0:t.isWidgetOpenEvent),g},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,n=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()}null!==(t=this.ruleEngine)&&void 0!==t&&t.isFMJourneyEnabled&&this.rts.healthCheck();var i=this.session,r=i&&i.user,s=i&&i.siteId,l=a.default.EmberModelUrl.offlineMessage.url.replace("{token}",i.token).replace("{userAlias}",r.alias);s&&(l+="?siteId=".concat(s)),this.axios.makeRequest({method:"POST",url:l,data:e,cache:!1,dataType:"json",contentType:"application/json; charset=utf-8",processData:!1}).then(function(e){var t=this;(0,o.Z)(this,n);var i=this.lastOfflineMessage,r=e.data;i&&i.set("hasBeenRepliedToOffline",!0),i.save(),r.forEach(function(e){var n,i;(0,o.Z)(this,t),null!==(n=this.hotline)&&void 0!==n&&null!==(i=n.ui)&&void 0!==i&&i.shouldShowSentEvent&&(this.send("showSentEvent",e,"message_from_user",this.conversation),this.set("hotline.ui.shouldShowSentEvent",!1)),this.send("updateMessage",e)}.bind(this))}.bind(this),function(e){(0,o.Z)(this,n),this.set("extraParams.isOfflineSendingFailed",!0);var t=e&&e.response.status||400,i=e&&e.response&&e.response.data||null;410===t&&(this.user.delete(),this.send("reset",null,!0)),412===t&&(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,u,c=t.get("autoRuleId"),d=this.localds,f=d&&d.get("userBehaviour"),h=f&&f.get("executedRules"),p=null==h?void 0:h.findBy("ruleId",c),m=p&&p.get("openedCount"),g=a.default.EmberModelUrl,v=null===(n=this.session)||void 0===n?void 0:n.token,b=null===(i=this.session)||void 0===i?void 0:i.siteId;if(m=m?m+1:1,p&&p.set("openedCount",m),l=m>1?a.default.RuleMetricKeys.clicked:a.default.RuleMetricKeys.uniqueClicked,s=g.tattletale.url.replace("{token}",v).replace("{ruleId}",c).replace("{keys}",l),b&&(s+="&siteId=".concat(b)),null!==(r=this.ruleEngine)&&void 0!==r&&r.isCampaignHistoryRequired)s+="&userAlias=".concat(null===(u=this.session)||void 0===u?void 0:u.omniCookie);this.axios.makeRequest({method:"PUT",url:s,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,R,C=(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===(R=E)||void 0===R?void 0:R.inputType;E=g(g({},E),a.default.VALIDATION_PLACEHOLDER_MESSAGE[C])}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 A=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(A[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 R="FILE_ALIAS_"+(new Date).getTime();if(u===a.default.FILETYPE.FILE)T={fileAlias:R,fileContentType:c.type,fileName:c.name,fileSize:c.size,fragmentType:y.FRAGMENT_TYPE.FILE};else if(u===a.default.FILETYPE.IMAGE){var C,A,O,_;T={fileAlias:R,contentType:"image/png",fragmentType:y.FRAGMENT_TYPE.IMAGE,content:null===(C=this.data)||void 0===C||null===(A=C.fileContent)||void 0===A?void 0:A.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:R},S):this.set("pendingFile",{file:c,fileType:u,fileAlias:R})}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,p,m=this,g=arguments.length>1&&void 0!==arguments[1]&&arguments[1],v=this.localds,b=this.store,y=this.conversations,E=this.conversation,Z=this.messages,w=e&&e.messageId,T=e&&e.msgHopId,S=!1,I=null===(t=this.hotlineUI)||void 0===t||null===(n=t.config)||void 0===n?void 0:n.betaFeatures,R=I&&I[a.default.conversationTestingFeature];g&&(Z=(E=e.conversationId&&(null===(f=this.localds)||void 0===f?void 0:f.conversations.findBy("conversationId",e.conversationId))||e.conversationChannelId&&(null===(p=this.localds)||void 0===p?void 0:p.conversations.findBy("channelId",e.conversationChannelId)))&&E.get("messages"));if(!e||3!==e.messageType&&5!==e.messageType||(0,s.resizeImage)(e),E){Z=Z||[],-1!==E.get("conversationId")&&E.get("conversationId")||(E.set("conversationId",e.conversationId),S=!0),E.get("status")===a.default.CONVERSATION.CONVERSATION_STATUS.RESOLVED&&e.messageUserType===a.default.CONVERSATION.USER_TYPE.USER&&E.set("status",0),Ember.set(e,"status",a.default.MESSAGE_STATUS.SENT),u=w&&Z.findBy("messageId",w)||T&&Z.findBy("msgHopId",T),c=Z.reduce(function(t,n){(0,o.Z)(this,m);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),d=Z.reduce(function(t,n){return(0,o.Z)(this,m),e.flowStepId&&n.get("flowStepId")===e.flowStepId&&!n.get("messageId")&&(t=n),t}.bind(this),void 0);var C=Z.filterBy("offlineMessage",!0).filterBy("hasBeenRepliedToOffline",!1);if(e&&e.autoRuleId&&C.length&&C[C.length-1].set("hasBeenRepliedToOffline",!0),u&&!g){var A=T&&Z.findBy("msgHopId",T),O=e.conversationId&&e.messageId&&A&&A.conversationId!==e.conversationId&&A.messageId!==e.messageId,_=u.conversationId===e.conversationId&&u.messageId===e.messageId&&!u.msgHopId;if(O&&_&&(Z.removeObject(A),this.logger.log("Deleted first message duplicated.")),R&&(null==e||!e.conversationReferenceId)&&!this.isParallelConversationEnabled){var k=y&&(null==y?void 0:y.filter(function(t){return(0,o.Z)(this,m),t.channelId===e.conversationChannelId&&t.conversationId!==e.conversationId}.bind(this)));null==k||k.forEach(function(e){(0,o.Z)(this,m),y.removeObject(e)}.bind(this))}b.cloneRecord(u,e),this.logger.log("Updating Message"),h.default.readOutDynamicUpdates(this.intl.t("aria_labels.message_sent"))}else if(c)(0,s.checkAndUpdateReadMillis)(c.get("createdMillis"),e.createdMillis,E),b.cloneRecord(c,e),this.logger.log("Updating Auto Rule Message");else if(d)(0,s.checkAndUpdateReadMillis)(d.get("createdMillis"),e.createdMillis,E),b.cloneRecord(d,e),this.logger.log("Updating Flow Message");else{g&&(Z.removeObject(u),u.destroyRecord(),this.logger.log("Deleted old resent message."));var M=b.createRecord("message",e),N=Z.lastObject;if(Z.firstObject&&Z.firstObject.messageId&&Z.firstObject.createdMillis>e.createdMillis)Z.unshiftObjects([M]);else if(Ember.isEmpty(N)||Ember.isEmpty(N.messageId))Z.pushObject(M);else{for(var P=Z.length-1;P>=0;P--){var D=Z.objectAt(P);if(D.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)},showSentEvent:function(e,t,n){var i=this.session,r=n&&n.channelId,o=n&&(null==n?void 0:n.conversationReferenceId),s=i&&i.config,l=s&&s.agent,u=l&&l.hideName,c=i&&i.appDisplayName||i.appName,d=e.messageUserName;a.default.CONVERSATION.MESSAGE_TYPE.BOT!==e.messageType&&a.default.CONVERSATION.MESSAGE_TYPE.FREDDY_BOT!==e.messageType&&(d=u||!d?c:d.split(" ")[0]),this.postMessage.post({action:t,data:{message:g(g({},o&&{conversationReferenceId:o}),{},{messageFragments:e.messageFragments,messageUserName:d,appName:c,createdMillis:e.createdMillis,channelId:r,conversationId:e.conversationId,stepId:e.flowStepId,conversationAlias:e.conversationAlias})}})}}})},71725:function(e,t,n){"use strict";n.r(t);var i=n(35235),r=n(13418);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"),a=n&&n.displayCode;o||(this.set("hotline.ui.lastLocaleId",n&&n.localeId),this.loadLunrLanguage(a)),r||this.set("hotline.ui.lastModifiedFaqsAt",e.get("lastModifiedAt")),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)}})},11731:function(e,t,n){"use strict";n.r(t);var i=n(35235),r=n(89567),o=n(72857),a=n(13418),s=n(50660),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 R={date:(0,r.default)(o.default.convert(w,u)).format("LL"),weekday:this.convertMillisToWeekday(w,u),slots:T};l.push(R)}}else{var C=c+1,A=this.endOfDayInMillis(C,u),O=this.transformSlotToSubslots(C,A,s,u),_=this.getDaySlotsWithDate(l,C,u);if(O&&O.length>0&&_){var k={date:(0,r.default)(o.default.convert(C,u)).format("LL"),weekday:this.convertMillisToWeekday(C,u),slots:O};l.push(k)}else if(O&&O.length>0){var M={date:(0,r.default)(o.default.convert(C,u)).format("LL"),weekday:this.convertMillisToWeekday(C,u),slots:O};l.push(M)}c=A}}},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 x=(u=l&&l.get("messages")||Ember.A([])).filterBy("offlineMessage",!0).filterBy("hasBeenRepliedToOffline",!1),F=x&&x.length,j=F&&x[F-1]?x[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&&x[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()})}}}})},50660:function(e,t,n){"use strict";n.r(t);var i=n(35235),r=n(22126),o=n(13418),a=n(60534),s=n(96064),l=n(32583);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=this.getReadMillisValue(this.conversation),t=this.messages,n=this.messagesCount,i=0;if(n)if(e)for(var r=n-1;r>=0;r--){var a,s=t.objectAt(r),l=s&&s.get("messageUserType"),u=s&&s.get("createdMillis");if(((null==s?void 0:s.messageType)!==o.default.CONVERSATION.MESSAGE_TYPE.FREDDY_BOT||null!=s&&null!==(a=s.messageFragments[0])&&void 0!==a&&a.content)&&l){if(!(u>e))break;i+=1}}else i=n;return i},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)}}),placeCursorAtEnd:function(e){if(!Ember.isEmpty(e)){var t=e.textContent.length,n=document.createRange();n.setStart(e.childNodes[0]||e,t),n.collapse(!0);var i=window.getSelection();i.removeAllRanges(),i.addRange(n)}},focusPrePopulateText:function(e){var t=e.element.querySelector(".editable p:last-child");e.send("focusIn"),e.placeCursorAtEnd(t)}})},22126:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var i=n(52626),r=n(35235),o=n(42410),a=n(13418),s=n(30309),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(32583);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:""}}),getkey:Ember.computed("session.{appId,siteId}",{get:function(){var e,t,n=null===(e=this.session)||void 0===e?void 0:e.appId,i=null===(t=this.session)||void 0===t?void 0:t.siteId;return n&&(n=n.toString()),i?"".concat(n,"_").concat(i):n}}),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;g--){var v,b,y;if(((null===(v=n=t.objectAt(g))||void 0===v?void 0:v.messageType)!==a.default.CONVERSATION.MESSAGE_TYPE.FREDDY_BOT||null!==(b=n)&&void 0!==b&&null!==(y=b.messageFragments[0])&&void 0!==y&&y.content)&&(i=n&&n.get("messageUserType"),r=n&&n.get("createdMillis"),i)){if(!(r>h))break;p+=1}}return p}}),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},getUserLastMsgCreatedMillisValue:function(e){var t,n,i,o=this;return(i=(n=(t=null==e?void 0:e.filter(function(e){return(0,r.Z)(this,o),e.messageUserType===a.default.CONVERSATION.USER_TYPE.USER}.bind(this)))&&t.length)?t[n-1]:null)?i.createdMillis:null},getReadMillisValue:function(e){var t=this.getUserLastMsgCreatedMillisValue(null==e?void 0:e.messages);return t>(null==e?void 0:e.readMillis)?t:e&&e.get("channelId")&&e.get("readMillis")||0},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")}}})},50913:function(e,t,n){"use strict";n.r(t);var i=n(35235),r=n(42410),o=n(13418),a=n(60534),s=n(70387),l=n(33329),u=n.n(l),c=n(90607),d=n(76441);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&&(Math.floor(e.scrollHeight-e.scrollTop-e.clientHeight)<=1?(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()}}})},90123:function(e,t,n){"use strict";n.r(t);var i=n(35235),r=n(13418),o=n(65489);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")}})})},1053:function(e,t,n){"use strict";n.r(t);var i=n(35235),r=n(22126),o=n(13418),a=n(29994),s=n(4961);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})}})},79956:function(e,t,n){"use strict";n.r(t);var i=n(35235),r=n(13418),o=n(42410),a=n(89866);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))}}})},65489:function(e,t,n){"use strict";n.r(t);var i=n(44229);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},getPayloadDiff:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.isObjectEmpty(this.initialPayload))return this.set("initialPayload",e),e;var t=this.getUserPropertiesDiff(e,this.initialPayload),n=this.getUserPropertiesDiff(e.meta,this.initialPayload.meta);return this.isObjectEmpty(n)||(t.meta=n),this.isObjectEmpty(t)||this.set("initialPayload",t),t},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)},shouldUpdateUserProperty:Ember.computed("hotline.ui.config.betaFeatures","resultDifference",{get:function(){return this.enabledBetaFeatures[a.default.disableMultipleUpdateCalls]&&this.resultDifference&&0!==Object.keys(this.resultDifference).length}}),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,R=i&&i.config&&i.config.pushToFreshSales,C={},A=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}),C.siteId=c),R&&(C.pushToFreshSales=!0),N=(0,s.addQueryParams)(N,C),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)):A(i)}.bind(this),function(e){(0,o.Z)(this,n),A(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,s=o&&o.id,l=o&&o.alias,u=this.localds.get("properties"),c=this.getUpdatedUserProperties(e);if(this.set("resultDifference",this.getPayloadDiff(e)),r)if(l&&s)!this.shouldUpdateUserProperty&&this.enabledBetaFeatures[a.default.disableMultipleUpdateCalls]||0===Object.keys(c).length?t&&t.constructor===Function&&t(!0,200):(this.enabledBetaFeatures&&this.enabledBetaFeatures[a.default.haystackBetaFeature]&&this.logger.addInfo("Update User Properties",e),this.set("updatingUser",!0),this.send("updateUserProperties",e,t));else{if(this.jwt.isEnabled&&e&&e.jwtAuthToken)Ember.set(n,"jwtAuthToken",e.jwtAuthToken);else{if(e){var d=e.firstName||i&&i.firstName||u&&u.get("firstName"),f=e.lastName||i&&i.lastName||u&&u.get("lastName");(d||f)&&(e.firstName=d,e.lastName=f,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"),R=b&&b.meta||l.get("meta"),C=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 A=l&&l.get("meta")||{},O=s&&s.meta;if(O)for(var _ in O)O.hasOwnProperty(_)&&(A[_]=O[_]);A.fc_user_timezone=f.default.guess(),l.set("meta",A),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:A,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),C?b.email&&b.email!=v&&v.get("email")&&(k.email=T):k.email=T),S&&S!==s.phone&&(Ember.set(u.prop,"phone",S),C?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=R&&this.getUserPropertiesDiff(R,s.meta);M&&0!==Object.keys(M).length&&(Ember.set(u.prop,"meta",R),k.meta=R),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)}}}})},89866:function(e,t,n){"use strict";n.r(t);var i=n(35235),r=n(13418),o=n(42410),a=n(90607),s=n(90123),l=n(22126),u=n(72857),c=n(98682);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.set("hotline.ui.shouldShowSentEvent",!0),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.set("hotline.ui.shouldShowSentEvent",!0),this.postMessageAPI(e.serialize()))}}.bind(this))}null!==(n=this.hotline)&&void 0!==n&&null!==(o=n.ui)&&void 0!==o&&o.offlineMessagesFragments&&(this.set("hotline.ui.shouldShowSentEvent",!0),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")}}}})},11370:function(e,t,n){"use strict";n.r(t);var i=n(89313),r=n(35235),o=n(25046),a=n(42410),s=n(98682),l=n(13418),u=n(79956),c=n(8869);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"),ruleEngine:Ember.inject.service("rule-engine"),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,o,u,c=this,d=l.default.EmberModelUrl,f=d.user,h=d.userToken,p=this.session,m=p&&p.siteId,g=p&&p.jwtAuthToken,v=f.url.replace("{token}",null===(e=this.session)||void 0===e?void 0:e.token),b=h.url.replace("{token}",null===(t=this.session)||void 0===t?void 0:t.token),y=null===(n=this.hotline)||void 0===n||null===(o=n.ui)||void 0===o?void 0:o.config,E=null==y?void 0:y.betaFeatures,Z="botflow"===(null===(u=this.session)||void 0===u?void 0:u.previewMode);m&&(v+="?siteId=".concat(m),b+="?siteId=".concat(m));var w=function(){var e=(0,i.Z)(regeneratorRuntime.mark((function e(t){var n,i,o,s,u,d,f,h,m,v;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,r.Z)(this,c),!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 n=t.nameGenerated?void 0:t.firstName,i=t.nameGenerated?void 0:t.lastName,o=n?i?"".concat(n," ").concat(i).trim():n.trim():"Unknown",t.name=o,Ember.set(p,"user",t),e.next=12,this.locale.updateAppLocale();case 12:t.errorCode?t.errors=t:this.isJWTStrictMode&&g&&t.alias&&this.send("updateUser",{jwtAuthToken:g});case 13:this.jwt.isEnabled&&(s=!(!t||!t.success&&!t.alias),u=s||t&&t.errorCode>=1&&t.errorCode<=2,d=g&&u,this.jwt.authenticateApp(d),g&&(f=g.split("."),h=f&&3===f.length?(0,a.safelyParseJSON)(atob(f[1])):null,(m=h&&h.reference_id)&&Ember.set(p,"externalId",m)),this.jwt.isStrict&&(v=!!(t&&t.success||t.alias),t&&t.alias&&(this.user.updateTokenAlias({token:t.wcfcToken||p&&p.wcfcToken,alias:t.alias}),this.localds.set("wcfcToken",t.wcfcToken||p&&p.wcfcToken),this.localds.set("alias",t.alias)),this.postMessage.post({action:"frame_state_change",success:v,status:v?200:401,data:{frameState:u?l.default.FrameState.LOADED:l.default.FrameState.NOT_AUTHENTICATED}}),d&&this.postMessage.post({action:"frame_state_change",success:!0,status:200,data:{frameState:l.default.FrameState.AUTHENTICATED}}))),this.send("fetchInfo"),E&&E[l.default.removeResponseTimeHolder]&&!Z&&this.send("loadResponseTime");case 16: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&&g){var T={jwtAuthToken:g};this.store.postRequest(h.model,b,T).then(w,w)}else{var S,I,R,C,A;if(!(0,s.getWCFCToken)()&&null!==(S=this.hotlineUI)&&void 0!==S&&null!==(I=S.config)&&void 0!==I&&I.sales360App&&null!==(R=this.session)&&void 0!==R&&R.omniCookie)return null!==(C=this.ruleEngine)&&void 0!==C&&C.isFMJourneyEnabled&&this.rts.create(),this.send("loadUserByAlias",null===(A=this.session)||void 0===A?void 0:A.omniCookie,function(e,t,n){(0,r.Z)(this,c),w(n,e,t)}.bind(this)),!1;this.store.getRequest(f.model,v).then(w)}},fetchInfo:function(){var e,t,n,i,o,a=this,s=l.default.EmberModelUrl.widgetInfo,u=this.locale.currentLocaleString(),c=null===(e=this.hotline)||void 0===e||null===(t=e.ui)||void 0===t?void 0:t.config,d=null==c?void 0:c.betaFeatures,f=null==d?void 0:d[l.default.widgetChannelFilter],h=null==d?void 0:d[l.default.WidgetCategoriesFilter],p=(null==c?void 0:c.widgetUUID)||"default",m=s.url.replace("{token}",null===(n=this.session)||void 0===n?void 0:n.token).replace("{locale}",u),g="botflow"===(null===(i=this.session)||void 0===i?void 0:i.previewMode);g&&(m+="&previewMode=true"),!f&&!h||g||(m+="&widgetUuid=".concat(p)),null!==(o=this.hotlineUI)&&void 0!==o&&o.channels?this.send("loadUser"):this.store.getRequest(s.model,m).then(function(e){if((0,r.Z)(this,a),e){var t=this.hotlineUI,n=e.channelResponse,i=e.categoryResponse,o=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),i&&Ember.set(t,"categories",i.categories),o&&(o.operatingHours&&(o.operatingHours.clientTimeInMillis=(new Date).getTime()),Ember.set(t,"hours",o)),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))},loadResponseTime:function(){var e,t=this,n=l.default.EmberModelUrl.responseTime.url.replace("{token}",null===(e=this.session)||void 0===e?void 0:e.token);this.store.getRequest("GET",n).then(function(e){(0,r.Z)(this,t),e&&this.set("hotline.ui.rspTime",e)}.bind(this),function(e){(0,r.Z)(this,t),this.logger.log(e)}.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)}}}})},88335:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return x}});var i,r,o,a,s,l,u,c,d,f,h,p,m,g,v,b,y,E,Z,w,T,S,I,R,C,A,O=n(10935),_=n(34645),k=n(5660),M=n(69049),N=n(58678),P=n(55411),D=n(79833),L=n(13256),U=n(37624);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,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 x=(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=B(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))},25748:function(e,t,n){"use strict";n.r(t);var i=n(29436),r=n(9577);t.default=(0,r.modifier)((function(e,t){(0,i.Z)(t,1)[0]&&e.focus()}))},20567:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(74991)},93512:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(52590)},68536:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(18817)},21287:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(28509)},21768:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var i=n(34645),r=n(69049),o=n(58678),a=n(55411),s=n(79833),l=n(52626),u=n(78824),c=n(62471);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)},68994:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return S}});var i,r,o,a,s,l=n(35235),u=n(10935),c=n(34645),d=n(5660),f=n(69049),h=n(58678),p=n(55411),m=n(79833),g=n(52626),v=n(13256),b=n(55726),y=n.n(b),E=n(42410),Z=n(98682);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)},15143:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i,r,o,a=n(10935),s=n(34645),l=n(5660),u=n(69049),c=n(58678),d=n(55411),f=n(79833),h=n(13256);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()}}})},89601:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var i,r,o,a=n(35235),s=n(89313),l=n(10935),u=n(34645),c=n(5660),d=n(69049),f=n(58678),h=n(55411),p=n(79833),m=n(13256),g=n(64652),v=n(90607);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)},33135:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var i,r,o,a=n(10935),s=n(34645),l=n(5660),u=n(69049),c=n(58678),d=n(55411),f=n(79833),h=n(13256),p=n(13418);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)},67440:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return E}});var i,r,o,a,s,l=n(89313),u=n(10935),c=n(34645),d=n(5660),f=n(69049),h=n(58678),p=n(55411),m=n(79833),g=n(13256),v=n(51127),b=n(90607);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]:[];return 0===e.length?Promise.reject("Nothing to push"):null!==c.default&&void 0!==c.default&&c.default.haystackConfig&&null!==c.default&&void 0!==c.default&&c.default.haystackConfig[c.default.hotlineEnv.type]?this._logRequest({meta:this.getMetaInfo(),events:e}):Promise.reject("Haystack config is not yet set")}},{key:"captureException",value:function(e){var t=this;this.exception(e).then(function(e){return(0,i.Z)(this,t),e&&this.add(e)}.bind(this))}},{key:"sendLogs",value:function(){var e,t;return(null===(e=this.logs)||void 0===e?void 0:e.length)>0?fetch(this.url,{method:"POST",headers:this.headers,body:JSON.stringify({meta:this.getMetaInfo(),events:this.logs}),keepalive:!0}):(null===(t=this.info)||void 0===t?void 0:t.length)>0?fetch(this.url,{method:"POST",headers:this.headers,body:JSON.stringify({meta:this.getMetaInfo(),events:this.info}),keepalive:!0}):void 0}},{key:"addInfo",value:function(e,t){this.info.push(f({msg:f(f({},t),{},{desc:e})},this.getCustomEventInfo())),this.deBounceInfoSend()}},{key:"cleanInfo",value:function(){this.info=[]}},{key:"sendInfo",value:function(){var e=this;this.haystackLogsTransporter&&this.haystackLogsTransporter(this.info).then(function(){(0,i.Z)(this,e),this.cleanInfo()}.bind(this)).catch(function(){(0,i.Z)(this,e),this.deBounceInfoSend()}.bind(this))}},{key:"deBounceInfoSend",value:function(){var e=this;null===this.infoTimeout&&(this.infoTimeout=setTimeout(function(){(0,i.Z)(this,e),clearTimeout(this.infoTimeout),this.infoTimeout=null,this.sendInfo()}.bind(this),this.DELAYFORINFO))}}]),n}(Ember.Service)},2014:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var i,r,o,a=n(35235),s=n(10935),l=n(34645),u=n(5660),c=n(69049),d=n(58678),f=n(55411),h=n(79833),p=n(13256);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,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 g=(i=Ember.computed.gt("lastAgentMessages.length",0),r=function(e){(0,d.Z)(n,e);var t=m(n);function n(e,i){var r;return(0,l.Z)(this,n),r=t.call(this,e,i),(0,s.Z)((0,c.Z)(r),"hasMessages",o,(0,c.Z)(r)),Ember.setProperties((0,c.Z)(r),{showUnreadMessage:!1,lastAgentMessages:[],unreadMessagesCount:0}),r}return(0,u.Z)(n,[{key:"setLastAgentMessage",value:function(e){var t,n,i,r,o,s,l,u,c=this,d=e&&e.channelId,f=e&&e.conversationId,h=e&&e.conversationReferenceId,p=(null===(t=this.lastAgentMessages)||void 0===t||null===(n=t.lastObject)||void 0===n?void 0:n.channelId)===d;d&&(null===(i=this.lastAgentMessages)||void 0===i||null===(r=i.lastObject)||void 0===r?void 0:r.channelId)!==d||(null===(o=this.lastAgentMessages)||void 0===o||null===(s=o.lastObject)||void 0===s?void 0:s.conversationReferenceId)!==h||p&&f&&(null===(l=this.lastAgentMessages)||void 0===l||null===(u=l.lastObject)||void 0===u?void 0:u.conversationId)!==f?this.resetLastAgentMessages():this.showUnreadMessage&&this.toggleUnreadMessagesCount(this.unreadMessagesCount+1);var m,g=this.lastAgentMessages;Ember.isEmpty(g)||(m=e.flowId?g.find(function(t){return(0,a.Z)(this,c),e.ruleId&&t.ruleId===e.ruleId&&e.flowStepId===t.flowStepId}.bind(this)):g.find(function(t){return(0,a.Z)(this,c),e.ruleId&&t.ruleId===e.ruleId&&t.campaignMessageId===e.campaignMessageId}.bind(this)))&&g.removeAt(g.indexOf(m));g.pushObject(e)}},{key:"toggleUnreadMessagesCount",value:function(){var e=arguments.length>0&&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)},76594:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return R}});var i,r,o,a,s,l,u,c,d,f,h=n(35235),p=n(10935),m=n(34645),g=n(5660),v=n(69049),b=n(58678),y=n(55411),E=n(79833),Z=n(13256),w=n(13418),T=n(60534),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 R=(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)},97952:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(93381)},43610:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(30761)},32804:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return R}});var i,r,o,a,s,l,u,c=n(35235),d=n(10935),f=n(34645),h=n(5660),p=n(69049),m=n(28433),g=n(58678),v=n(55411),b=n(79833),y=n(13256),E=n(84010),Z=n(13418),w=n(22126),T=n(79956),S=n(56940);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 R=(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)},1971:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=n(34645),r=n(5660),o=n(69049),a=n(58678),s=n(55411),l=n(79833),u=n(52626);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)},72786:function(e,t,n){"use strict";n.r(t);var i=n(89313),r=n(35235),o=n(13418),a=n(22126),s=n(62471),l=n(8653),u=n(42410),c=n(60534);t.default=Ember.Service.extend(a.default,{postMessage:Ember.inject.service("post-message"),ruleEngine:Ember.inject.service("rule-engine"),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=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.RTS){t.next=3;break}return e.invokeCreateAfterLoad=!0,t.abrupt("return");case 3:if(null===(n=e.session)||void 0===n||null===(i=n.user)||void 0===i||!i.id){t.next=22;break}if(!e.userToken){t.next=8;break}e._create(),t.next=20;break;case 8:return d=null===(l=e.session)||void 0===l?void 0:l.token,f=null===(u=e.session)||void 0===u?void 0:u.siteId,h=o.default.EmberModelUrl.webSocket,p=h.url.replace("{token}",d).replace("{isd2c}",(null===(c=e.session.integrations)||void 0===c?void 0:c.shopify)||!1),m=e.store,f&&(p+="&siteId=".concat(f)),t.prev=10,t.next=13,m.getRequest(h.model,p);case 13:(g=t.sent)&&!g.errorCode&&g.privateToken?(Ember.set(e,"userToken",g),e._create()):e.onAfterDisconnect(6),t.next=20;break;case 17:t.prev=17,t.t0=t.catch(10),e.onAfterDisconnect(6);case 20:t.next=23;break;case 22:void 0===(null===(a=e.session)||void 0===a?void 0:a.user.id)&&null!==(s=e.ruleEngine)&&void 0!==s&&s.isFMJourneyEnabled&&(null===(v=window.zargetCookie)||void 0===v||v.setCookie(e.session.omniCookie),e.axios.makeRequest({method:"GET",withCredentials:!0,url:o.default.EmberModelUrl.campaignSocket.url.replace("{token}",null===(b=e.session)||void 0===b?void 0:b.token).replace("{userAlias}",e.session.omniCookie),contentType:"application/json; charset=UTF-8"}).then(function(t){(0,r.Z)(this,y),e.setProperties({userToken:t.data,campaignChannelName:t.data.campaignChannelName}),e._create()}.bind(this)));case 23:case"end":return t.stop()}}),t,this,[[10,17]])})))()},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;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!==(e=this.ruleEngine)&&void 0!==e&&e.isFMJourneyEnabled?this.connectCampaignChannel():this.connectVisitorChannel(),null!==(t=this.user)&&void 0!==t&&t.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))}})},99321: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=n(35235),d=n(10935),f=n(34645),h=n(5660),p=n(69049),m=n(58678),g=n(55411),v=n(79833),b=n(13256),y=n(42410),E=n(90607),Z=n(22126),w=n(79956),T=n(89567),S=n(13418),I=n(72857);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,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 C=(i=Ember.inject.service,r=Ember.inject.service("local-storage"),o=Ember.computed("session.{previewMode,integrations}","hotline.ui.config.{betaFeatures,journeyEnabledApp}"),a=Ember.computed("hotline.ui.config.{betaFeatures,sales360App,isD2cApp}","hotline.ui.userBehaviour"),s=function(e){(0,m.Z)(n,e);var t=R(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],o=this.userBehaviour,a=o&&o.get("eventConditions"),s=a.findBy("eventConditionId",e),l=!!s;return s||(s=Ember.Object.create({occurrenceCount:0})),t=t||[],s&&(n=t.reduce(function(e,t){(0,c.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,y.checkCondition)(t.dataType,t.conditionType,s.get("occurrenceCount"),t.value)}return r?e&&n:e||n}.bind(this),r)),t.length?n:l}},{key:"evaluateEventConditions",value:function(e,t){var n,i=this;return n=(e=e||[]).reduce(function(e,n){(0,c.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=l:e.command.delay=0,e.command.ruleId=e.ruleId}.bind(this)),n(r)}.bind(this),function(e){(0,c.Z)(this,i),console.log(e)}.bind(this))}.bind(this))}},{key:"processRules",value:function(e,t){var n,i,r,o=this,a=null===(n=this.hotline)||void 0===n||null===(i=n.ui)||void 0===i?void 0:i.userBehaviour,s=this.isFMJourneyEnabled?[]:a&&a.eventRules||[];return null!==(r=this.session)&&void 0!==r&&r.campaignRuleIds&&(s=s.filter(function(e){var t;return(0,c.Z)(this,o),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,c.Z)(this,o);var r=[];s.forEach(function(n){var o;if((0,c.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))}},{key:"isFMJourneyEnabled",get:function(){var e,t,n,i,r,o,a,s,l,u=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,c=u&&u[S.default.enableFmJourneyBetaFeature];return!(null!==(i=this.session)&&void 0!==i&&i.previewMode)&&(c&&(null===(r=this.hotline)||void 0===r||null===(o=r.ui)||void 0===o||null===(a=o.config)||void 0===a?void 0:a.journeyEnabledApp)||(null===(s=this.session)||void 0===s||null===(l=s.integrations)||void 0===l?void 0:l.shopify))}},{key:"isCampaignHistoryRequired",get:function(){var e,t,n,i,r,o,a=null===(e=this.hotline)||void 0===e||null===(t=e.ui)||void 0===t?void 0:t.config,s=null==a?void 0:a.betaFeatures,l=s&&s[S.default.enableFmJourneyBetaFeature],u=s&&s[S.default.historyStoreForFmJourneyCampaigns],c=null==a?void 0:a.sales360App,d=null==a?void 0:a.isD2cApp,f=(null===(n=this.hotline)||void 0===n||null===(i=n.ui)||void 0===i||null===(r=i.userBehaviour)||void 0===r||null===(o=r.eventRules)||void 0===o?void 0:o.length)>0;return l&&u&&c&&!d&&f}}]),n}(Ember.Service.extend(Z.default,w.default)),l=(0,b.Z)(s.prototype,"axios",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,b.Z)(s.prototype,"localStorage",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,b.Z)(s.prototype,"isFMJourneyEnabled",[o],Object.getOwnPropertyDescriptor(s.prototype,"isFMJourneyEnabled"),s.prototype),(0,b.Z)(s.prototype,"isCampaignHistoryRequired",[a],Object.getOwnPropertyDescriptor(s.prototype,"isCampaignHistoryRequired"),s.prototype),s)},62496: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(35235),v=n(10935),b=n(34645),y=n(5660),E=n(69049),Z=n(58678),w=n(55411),T=n(79833),S=n(52626),I=n(13256),R=n(13418),C=n(42410);function A(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=A(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",R.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:R.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:R.default.CONVERSATION.MESSAGE_TYPE.SCREEN_SHARING.ENDED,messageUserType:R.default.CONVERSATION.USER_TYPE.USER,channelId:e.data.channelId,createdMillis:(new Date).getTime(),cobrowsingId:w,messageFragments:[{fragmentType:R.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:R.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:R.default.CONVERSATION.MESSAGE_TYPE.SCREEN_SHARING.ENDED,messageUserType:R.default.CONVERSATION.USER_TYPE.USER,channelId:e.channelId,createdMillis:(new Date).getTime(),cobrowsingId:r,messageFragments:[{fragmentType:R.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:R.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=R.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,C.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)},30143:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var i,r,o,a=n(10935),s=n(34645),l=n(5660),u=n(69049),c=n(58678),d=n(55411),f=n(79833),h=n(13256),p=n(62471);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)},30787: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=n(35235),h=n(10935),p=n(34645),m=n(5660),g=n(69049),v=n(58678),b=n(55411),y=n(79833),E=n(52626),Z=n(13256),w=n(22126),T=n(75920),S=n(13418),I=n(32583),R=n(50660);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,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=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=C(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,R.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)},26768:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(32696)},6104: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(10935),h=n(34645),p=n(5660),m=n(69049),g=n(58678),v=n(55411),b=n(79833),y=n(13256);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'}},37289:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(92330)},2353:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(47063)},98765:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.BooleanTransform}});var i=n(80311)},82785:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.DateTransform}});var i=n(80311)},27331:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.NumberTransform}});var i=n(80311)},37843:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.StringTransform}});var i=n(80311)},96064: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},28226: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"}},8448:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.default}});var i=n(61065)},13418:function(e,t,n){"use strict";n.r(t);var i=n(35235),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",MESSAGE_RECEIVED:"MESSAGE_RECEIVED",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:12e4,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,USER_PRIVATE_MESSAGE:1e3,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},BOT_REOPENED:1e3,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(5640).then(n.t.bind(n,25640,23))}.bind(void 0),de:function(){return(0,i.Z)(this,r),n.e(7911).then(n.t.bind(n,97911,23))}.bind(void 0),du:function(){return(0,i.Z)(this,r),n.e(3614).then(n.t.bind(n,93614,23))}.bind(void 0),es:function(){return(0,i.Z)(this,r),n.e(4481).then(n.t.bind(n,14481,23))}.bind(void 0),fi:function(){return(0,i.Z)(this,r),n.e(3313).then(n.t.bind(n,33313,23))}.bind(void 0),fr:function(){return(0,i.Z)(this,r),n.e(3435).then(n.t.bind(n,33435,23))}.bind(void 0),hu:function(){return(0,i.Z)(this,r),n.e(1906).then(n.t.bind(n,91906,23))}.bind(void 0),it:function(){return(0,i.Z)(this,r),n.e(9416).then(n.t.bind(n,99416,23))}.bind(void 0),no:function(){return(0,i.Z)(this,r),n.e(1196).then(n.t.bind(n,51196,23))}.bind(void 0),pt:function(){return(0,i.Z)(this,r),n.e(6588).then(n.t.bind(n,36588,23))}.bind(void 0),ro:function(){return(0,i.Z)(this,r),n.e(1055).then(n.t.bind(n,11055,23))}.bind(void 0),ru:function(){return(0,i.Z)(this,r),n.e(1892).then(n.t.bind(n,41892,23))}.bind(void 0),sv:function(){return(0,i.Z)(this,r),n.e(9043).then(n.t.bind(n,49043,23))}.bind(void 0),tr:function(){return(0,i.Z)(this,r),n.e(225).then(n.t.bind(n,20225,23))}.bind(void 0)},Browsers:["Chrome","Firefox","Safari","Trident","WebView","Edge"],smartPollingBetaFeature:"WIDGET_SMART_POLLING",conversationPropertiesBetaFeature:"CONVERSATION_PROPERTIES",haystackBetaFeature:"HAYSTACK_FE_LOGS",parallelConversationsEnabled:"PARALLEL_CONVERSATIONS_ENABLED",unifedBotBuilderEnabled:"UNIFIED_BOT_BUILDER",parallelConvEnabledFeatures:"PARALLEL_CONVERSATIONS",widgetInitLoadEnabled:"WIDGET_INIT_LOAD_ENABLED",helpWidgetBetaFeature:"TICKET_FORMS_IN_WIDGET_ENABLED",conversationTestingFeature:"CONVERSATION_TESTING",disableMultipleUpdateCalls:"DISABLE_MULTIPLE_UPDATE_CALLS",enableFmJourneyBetaFeature:"ENABLE_FM_JOURNEYS_FOR_CAMPAIGNS",historyStoreForFmJourneyCampaigns:"HISTORY_STORE_FOR_FM_JOURNEY_CAMPAIGNS",privacyPolicyFeature:"WIDGET_PRIVACY_POLICY",widgetHideInputWithFlag:"GLOBAL_KEY_FOR_WIDGET_HIDE_INPUT",privateNodeHideInputFlag:"BOT_PRIVATE_INPUT_DISABLE",widgetReOpenEvent:"WIDGET_REOPEN_EVENT",enabledisplayorder:"ENABLE_DISPLAY_ORDER",removeResponseTimeHolder:"REMOVE_RESPONSE_TIME_FROM_WIDGET_INFO_API",widgetChannelFilter:"WIDGET_CHANNEL_FILTER",skipJWTAuth:"SKIP_JWT_AUTH_FOR_BOT_PREVIEW",WidgetCategoriesFilter:"FILTER_CATEGORIES_BY_WIDGET",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"},campaignHistory:{model:"campaign-history",url:"/app/services/app/webchat/{token}/user/{userAlias}/campaign/history"},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}"},responseTime:{model:"rsp-time",url:"/app/services/app/webchat/{token}/response_time"}},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",MINIMUM_TRIGGERED_RULES:0}},32583:function(e,t,n){"use strict";n.r(t),n.d(t,{isHideResolvedConversationEnabled:function(){return o},canHideConversation:function(){return a}});var i=n(35235),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)},56940: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"}},89567:function(e,t,n){"use strict";n.r(t);var i=n(94485),r=n.n(i),o=n(29093),a=n.n(o),s=n(75523),l=n.n(s),u=n(55234),c=n.n(u),d=n(92510),f=n.n(d),h=n(66338),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()},60534: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(4386).then(n.t.bind(n,64386,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(9728).then(n.t.bind(n,39728,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(8960).then(n.t.bind(n,78960,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(3616).then(n.t.bind(n,23616,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(1047).then(n.t.bind(n,41047,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(6176).then(n.t.bind(n,66176,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(5450).then(n.t.bind(n,35450,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(9137).then(n.t.bind(n,29137,23))}.bind(void 0)},da:{id:"da",text:"dansk",json:function(){return(0,i.Z)(this,r),n.e(3756).then(n.t.bind(n,61196,19))}.bind(void 0),dateId:"da",dateScript:function(){return(0,i.Z)(this,r),n.e(1221).then(n.t.bind(n,1221,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(5976).then(n.t.bind(n,5976,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(7620).then(n.t.bind(n,47620,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(8384).then(n.t.bind(n,38384,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(8384).then(n.t.bind(n,38384,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(4592).then(n.t.bind(n,64592,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(3420).then(n.t.bind(n,23420,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(6282).then(n.t.bind(n,66282,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(3138).then(n.t.bind(n,63138,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(1354).then(n.t.bind(n,61354,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(5289).then(n.t.bind(n,95289,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(334).then(n.t.bind(n,70334,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(4919).then(n.t.bind(n,94919,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(8591).then(n.t.bind(n,78591,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(3826).then(n.t.bind(n,43826,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(4969).then(n.t.bind(n,44969,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(4042).then(n.t.bind(n,14042,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(226).then(n.t.bind(n,80226,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(7595).then(n.t.bind(n,97595,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(6644).then(n.t.bind(n,26644,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(8320).then(n.t.bind(n,48320,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(1513).then(n.t.bind(n,61513,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(7563).then(n.t.bind(n,96282,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(8567).then(n.t.bind(n,8567,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(4199).then(n.t.bind(n,14199,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(9897).then(n.t.bind(n,19897,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(4034).then(n.t.bind(n,64034,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(8248).then(n.t.bind(n,38248,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(8142).then(n.t.bind(n,48142,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,51026,19))}.bind(void 0),dateId:"pa-in",dateScript:function(){return(0,i.Z)(this,r),n.e(4808).then(n.t.bind(n,74808,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(9266).then(n.t.bind(n,49266,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(5174).then(n.t.bind(n,25174,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(1424).then(n.t.bind(n,21424,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(1977).then(n.t.bind(n,1977,23))}.bind(void 0)},ru:{id:"ru",text:"русский",json:function(){return(0,i.Z)(this,r),n.e(4494).then(n.t.bind(n,92730,19))}.bind(void 0),dateId:"ru",dateScript:function(){return(0,i.Z)(this,r),n.e(6375).then(n.t.bind(n,56375,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(9697).then(n.t.bind(n,49697,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(6735).then(n.t.bind(n,46735,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(3034).then(n.t.bind(n,83034,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(8384).then(n.t.bind(n,38384,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(4879).then(n.t.bind(n,14879,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(9507).then(n.t.bind(n,99507,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(8906).then(n.t.bind(n,68906,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(5844).then(n.t.bind(n,35844,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(9531).then(n.t.bind(n,59531,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(7723).then(n.t.bind(n,77723,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(2300).then(n.t.bind(n,52300,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(9069).then(n.t.bind(n,99069,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(2743).then(n.t.bind(n,2743,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(454).then(n.t.bind(n,50454,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(860).then(n.t.bind(n,80860,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(2928).then(n.t.bind(n,42928,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(8384).then(n.t.bind(n,38384,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(8384).then(n.t.bind(n,38384,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"}}},84010: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"}},44229: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}()},87589:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var i=n(52626),r=n(98682);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}},475:function(e,t,n){"use strict";n.r(t),n.d(t,{isSlashCmdMenuVisible:function(){return o}});var i=n(35235),r=n(13418),o=function(){return(0,i.Z)(this,undefined),!!document.getElementById(r.default.DOM_ID.slashCommands)}.bind(void 0)},97051:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var i=n(13418);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}},72857:function(e,t,n){"use strict";n.r(t),n.d(t,{getAllTimeZones:function(){return s}});var i=n(76791),r=n(35235),o=n(12193),a=n(89567);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},51127:function(e,t,n){"use strict";n.r(t);var i=n(35235),r=n(89567),o=n(90607),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},42410: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 R},coercer:function(){return C},addQueryParams:function(){return A},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 B},subsetOfArray:function(){return x},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(52626),r=n(25046),o=n(35235),a=n(89567),s=n(44229),l=n(90607),u=n(13418);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&&(null==e?void 0:e.conversationPropertiesVersion)!==(null==t?void 0: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}},71742: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(48964)},43217:function(e){var t=window.requirejs;t.default&&!t.__esModule&&(t.__esModule=!0),e.exports=t},14629:function(e){var t=window.require("uri-templates");t.default&&!t.__esModule&&(t.__esModule=!0),e.exports=t},70234:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(83973))&&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},56848:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(83973))&&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},23985: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},46303:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=y(n(83973)),r=y(n(19390)),o=y(n(52310)),a=y(n(12076)),s=y(n(48692)),l=y(n(71259)),u=y(n(26207)),c=y(n(51996)),d=y(n(98661)),f=y(n(12688)),h=y(n(15112)),p=y(n(23985)),m=y(n(56848)),g=y(n(22923)),v=y(n(66171)),b=y(n(83057));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:"f5CG65Dz",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,["hideAgentPic"]]],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},74843:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=f(n(48692)),r=f(n(12076)),o=f(n(83973)),a=f(n(66227)),s=f(n(81578)),l=f(n(46303)),u=f(n(9406)),c=f(n(92945)),d=f(n(66171));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},9389:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(70234)),r=a(n(83973)),o=a(n(98661));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},51546:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l(n(19390)),r=l(n(92945)),o=l(n(12076)),a=l(n(83973)),s=l(n(98661));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},86923:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=u(n(83973)),r=u(n(19390)),o=u(n(51546)),a=u(n(38009)),s=u(n(93521)),l=u(n(63398));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},11342: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},66227:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(12076)),r=o(n(83973));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},88880:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=c(n(19390)),r=c(n(83973)),o=c(n(48692)),a=c(n(12076)),s=c(n(26207)),l=c(n(51996)),u=c(n(98661));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},62502:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=h(n(83973)),r=h(n(70234)),o=h(n(9389)),a=h(n(16876)),s=h(n(12076)),l=h(n(98661)),u=h(n(92945)),c=h(n(61807)),d=h(n(60416)),f=h(n(48692));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},63398:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(83973)),r=o(n(19390));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},61807:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=u(n(92945)),r=u(n(83973)),o=u(n(26207)),a=u(n(51996)),s=u(n(98661)),l=u(n(20943));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},48596:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=v(n(19390)),r=v(n(83973)),o=v(n(11342)),a=v(n(51929)),s=v(n(51546)),l=v(n(38009)),u=v(n(66171)),c=v(n(48692)),d=v(n(12076)),f=v(n(98661)),h=v(n(92945)),p=v(n(13316)),m=v(n(88880)),g=v(n(72936));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},12688:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=m(n(88880)),r=m(n(72936)),o=m(n(86923)),a=m(n(93829)),s=m(n(83973)),l=m(n(48692)),u=m(n(92945)),c=m(n(19390)),d=m(n(12076)),f=m(n(48596)),h=m(n(84388)),p=m(n(84296));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:"VzYTT5Lf",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"]],[52,[28,[37,4],[[30,0,["isFreddyLiveTranslateEnabled"]],[30,0,["displayTranslatedContent"]]],null],[30,6,["content"]],[30,6,["translatedContent"]]],"false",[30,0,["showInBothLocales"]],[30,0,["isOpen"]],[30,5]]],null],[1,"\\n"]],[]],null]],[6,7]],null],[1,"\\n"],[41,[28,[37,4],[[30,0,["displayTranslatedContent"]],[28,[37,7],[[30,0,["isFreddyLiveTranslateEnabled"]]],null]],null],[[[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},32025:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l(n(12076)),r=l(n(62502)),o=l(n(70819)),a=l(n(74843)),s=l(n(18962));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},20943:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(83973)),r=o(n(92945));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},85331:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(83973))&&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},97495:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(83973))&&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},59497:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(83973))&&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},34350:function(e,t,n){"use strict";t.Z=n.p+"Empty_faqs.441b3c2e6ad93e3dbd8dc3b26f03c836.svg"},62309:function(e,t,n){"use strict";t.Z=n.p+"agent_default.0d0386baed83377ce9311261d2938c94.svg"},8495:function(e,t,n){"use strict";t.Z=n.p+"cal_user.8afddaa53041400b2ae2ab754272aba2.svg"},67946:function(e,t,n){"use strict";t.Z=n.p+"external-link.611c2af4dbad5f5f131b1eedc20d2a4d.svg"},68024:function(e,t,n){"use strict";t.Z=n.p+"fc-carousel-card-selected.aec28aa13776c30904c071b1626c3929.svg"},76441:function(e,t,n){"use strict";t.Z=n.p+"freshchat-line.7327fc2a43ff6a857c38e96ffa7e00f2.svg"},27378:function(e,t,n){"use strict";t.Z=n.p+"ic_article.e2675db2e0a79665fc82f84bc064bb1f.svg"},22342: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."+{98:"d926c8c11ebb23a5a7b5",180:"84619d6d0fa45b7e4b5e",184:"b83cefaa682fd80ec3c4",225:"bd148e021e6c38f200b5",226:"ee50c48e7b77d033dc26",334:"a07554e7aada218076a5",391:"b9eadbccb111dcf4a8a6",454:"b34b47514cfb9449e576",560:"b17d7c00704eb9525975",623:"fbc623af0fea1ea69e34",633:"40a7cc497f9cd21401e3",645:"11c333ab9d3909c46cc3",741:"84a95fe8164fb0f3a833",860:"0b7dcc9047c6648ad386",1047:"b8f64e31b2f4c201195f",1055:"534a1d4f2739ab933bcf",1159:"cef13af6657fe504a7ef",1196:"213ebadc9453000b311a",1202:"c0ef0e16166baa6d1083",1221:"02b6a3cfe04a38990f87",1259:"a9d65f552456c6875c4a",1354:"ea59e7ef3527097edb1b",1370:"ea67177279b6e23afe80",1424:"3755395d09b2cb708adc",1472:"7d97f1e931a42ea84cb7",1473:"76d899ea348cc24de0c9",1513:"f962f8b1cc12a1c26552",1573:"20b48e235a32951b535f",1694:"6a332109bc605c54cbca",1769:"1faf4cd44752764a9f87",1892:"031897b76f2691e8af01",1906:"44610a078f784df10453",1977:"ffe81e1b018eb0cd2031",2163:"8a6e4f35be5814dc78be",2222:"6fcd47a1caed99217ffe",2270:"2bc4db22b5098cedaaff",2300:"a94db200bb7e10f0c1fa",2473:"f345f7806bb81198c0fb",2743:"f957caaafc0a59f73f64",2842:"0ea2da088fc363f387b5",2928:"d889f655d57206f4cf4d",3034:"b128d31652614ff1cfeb",3138:"7eeff6202701472c12b5",3186:"a996b2eaf410dcfb30b0",3230:"304127aa9ba406759edb",3313:"7aae0db51699afc314dd",3375:"6477a80e0e5e417077fb",3420:"2daeb75dc313cc6e393e",3435:"c3252ad0080926a1d5c5",3436:"49d0c3088c87233fec2b",3478:"4cdc7a29ae0705dafbef",3614:"1364555b72b69fcfa736",3616:"5dd6aef2d32cf3830e2c",3756:"ff6aced196821c718852",3826:"8e455dfc1e5d11f90c3e",4034:"7819b7ce1e788116dd43",4042:"e7de6d8b809a40f23f48",4048:"d516777b5f0194ed89b0",4199:"7dcff528325670acf88f",4209:"6cc5217df85a6c722716",4332:"87bbfc583c02ffc4a370",4386:"e184d5da3bd722b6c72b",4481:"26940f98d1a1e6448f4a",4494:"ed8cb2cb431549773b67",4527:"41ddc837daeda45a8265",4567:"bcbb84097f8e26bcd2c7",4572:"7be603f8fb2482fb972b",4592:"b1a16efa2a03f3ac027e",4808:"3b6ab0991c6ff2547e00",4879:"56d999188e0502143d1a",4919:"430951c216a6c5c0362b",4969:"93e44732a0c18d7246f2",5174:"a31f74f5dd927231990b",5193:"4eb90fb20b80990647e2",5289:"d05e31e399717d56376c",5450:"24df34ddbfad3fcc36fe",5525:"1509e80d3afe58252d34",5640:"8a9e240e42749404a132",5683:"33a547d5a72c186f23c5",5743:"1a89c17f3c8b151513d4",5844:"f890a94ddcc2e3e49f47",5976:"1e17b10ea9b207ef3e1e",6076:"f548103197bfe5f83e1c",6176:"a2d92e00afaf9ca4ee78",6282:"6fe7b0db4e191132c50b",6338:"16935caa31505263204b",6375:"53af7ae6af4c638acec7",6419:"5d78080f08f4c46fec8a",6499:"927053ee2e0ba47450ec",6577:"3b43564ce1646d6dafce",6588:"ce9738157dcbfccf3086",6644:"3f2cac52a240ef42d81a",6653:"0b0a0701eb5f36ce9dc1",6735:"9c093ae1534fb843afdb",6928:"2f8a0229b52a8268c6b8",7067:"581958742cd2918e4140",7126:"76fd79dd3ab98d4ba757",7323:"1649eec4cb182a7ce0ab",7409:"5e092498457f6ffe4e31",7447:"7666bb96e853b25284a7",7563:"2a69b171a34a5ac1fb55",7595:"281392f8e19af780f013",7620:"08367e606f83ae23a00c",7717:"daebaeb3ae893c22f74e",7723:"a4c9a28d2d204ab0aed8",7747:"ebe0f1cdd2d4f79d85ad",7748:"af4df2ef256a560cdd0b",7873:"4fc32950b83b5e3b39d6",7911:"149533b16ad337824919",8040:"b20365cf6818959887b6",8126:"e996ebf66acd50e0f5a0",8142:"720360d9b46cbba51f99",8195:"53bcdcfad2337df4ba0a",8214:"acab191b8b90c6643b0a",8248:"3f5fa84e2508c534da64",8320:"7798de73cb69f40ed539",8331:"34cfff3ffac50d1dc19b",8384:"3ea021433fc555dd47c2",8468:"70b8f6af2e39c83c1f46",8567:"90591e9836684a6f29e3",8591:"520d2ba91baa8785183b",8636:"ab6b8267deb7713d120d",8906:"23170b1db8e71cefe0a5",8918:"030943ed48a21c0258e6",8960:"ab1d871075ca52889c89",9017:"cf656ce817d8fd2243c6",9043:"ecd725a4f9065545579a",9063:"9894711a13fa419bb165",9069:"4482fb81cab39e01157b",9137:"f11e9d548a9076d0eb45",9196:"5699f6c18ebf1e9ccb32",9266:"9897b0897066ab001c0d",9323:"9633145dbe579dbda261",9349:"a581b9f8fe3f02e3b8a7",9416:"0c8627edb039dbfed92c",9507:"ea7857a7e57c1279e687",9531:"e3cf755af4489daa17cf",9554:"a8830f8880c6bf85d451",9681:"c1411403118b4e425c3a",9697:"47bc021545f603d2b38d",9728:"9c59f9e5ae020c459156",9809:"d40c96471c7aea9a2cad",9897:"1e1928c6117b5a677506",9969:"2d9e3469a4151073ec47"}[e]+".js"},u.miniCssF=function(e){return"chunk."+{6824:"41f1cbc5466392339aa2",7873:"4fc32950b83b5e3b39d6"}[e]+".css"},u.miniCssF=function(e){return 6824===e?"../fd-messaging.97f2cd2a6bb6d0a2efe6.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