/*! * messenger * @version: 2.6.2 * @license: Genesys Telecom Labs */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("__Messenger",[],t):"object"==typeof exports?exports.__Messenger=t():e.__Messenger=t()}("undefined"!=typeof self?self:this,(function(){return function(e){function t(t){for(var r,a,s=t[0],u=t[1],c=t[2],d=0,p=[];die.current.clientWidth?ee(!0):ee(!1)};if(Object(b.useEffect)((function(){window.addEventListener("resize",ue),re||setTimeout((function(){oe(!0)}),50)}),[re]),Object(b.useEffect)((function(){return setTimeout((function(){if(t&&t.current&&re){var e=t.current.clientHeight+17;u&&u(e),t.current.children[0]&&(t.current.children[0].style.maxHeight=e+"px"),a&&n&&!p&&a.command("MessengerHelper.setDimension",{toaster:{height:e,width:P.O,addClass:["genesys-mxg-toaster"]}}),ue()}})),function(){window.removeEventListener("resize",ue)}})),U)switch(U){case"right":ae;break;case"left":se;break;case"auto":L&&("ltr"===L&&ae,"rtl"===L&&se)}c();var ce=function(e){13!==e.which&&32!==e.which||e.ctrlKey||e.shiftKey||(l(e),e.preventDefault())};return _=Object(M.p)()?"mxg-mobile-"+R.toLowerCase()+"-"+B.toLowerCase():"mxg-desktop-"+R.toLowerCase()+"-"+B.toLowerCase(),g||m||v?y.a.createElement(H,{props:e},y.a.createElement(q,{props:e,className:z.toasterContainer+" "+_},y.a.createElement(S.a,{open:n,ref:t,role:"alert",key:r,style:{right:"0px",left:"0px"},className:"".concat(z.root+" "+(p?"mxg-expanded-toaster":""))},y.a.createElement(j.a,{severity:"info",onClose:d,classes:{message:z.message,root:z.alertRoot},componentsProps:{closeIcon:{sx:{width:"26px",height:"26px"}}}},g&&y.a.createElement(F.a,null,y.a.createElement(A.a,{componentsProps:{tooltip:{sx:{width:"93%",maxHeight:"100px",overflowY:"auto",margin:"10px 0"}}},title:g,PopperProps:{container:t&&t.current},disableHoverListener:!Z,disableFocusListener:!Z,disableTouchListener:!Z},y.a.createElement(k.a,{variant:"subtitle1",variantMapping:{subtitle1:"h1"},gutterBottom:!0,"aria-label":g,dir:"auto",tabIndex:0,ref:ie},g))),m&&y.a.createElement(k.a,{style:V,className:"mxg-toaster-body",dir:"auto",variant:"subtitle2",variantMapping:{subtitle2:"h2"},tabIndex:0,"aria-label":m},m),v&&y.a.createElement("div",{className:z.buttonContainer},x&&"binary"===x&&y.a.createElement(y.a.Fragment,null,y.a.createElement(T.a,{className:z.button,variant:"contained",size:"small",dir:"auto",color:s,tabIndex:0,"aria-label":w||G+". "+J,onKeyPress:ce,onClick:l},w||G),y.a.createElement(T.a,{className:"mxg-decline-button ".concat(z.button),variant:"contained",color:"secondary",size:"small",dir:"auto",tabIndex:0,"aria-label":C||K+". "+Y,onKeyPress:function(e){13!==e.which&&32!==e.which||e.ctrlKey||e.shiftKey||(d(e),e.preventDefault())},onClick:d},C||K)),x&&"unary"===x&&y.a.createElement(y.a.Fragment,null,y.a.createElement(T.a,{className:z.button+" "+z.unaryButton,variant:"contained",size:"small",dir:"auto",color:s,tabIndex:0,"aria-label":w||G+". "+J,onKeyPress:ce,onClick:l},w||G))))))):null}));U.propTypes={open:w.a.bool.isRequired,handleClose:w.a.func,config:w.a.object,showBottom:w.a.bool,key:w.a.any,color:w.a.string.isRequired,content:w.a.object};var W=y.a.memo(U,I),G=n(46);function K(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,r=h()(e);if(t){var o=h()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var J=function(e){l()(n,e);var t=K(n);function n(e){var r;o()(this,n),r=t.call(this,e),m()(u()(r),"handleToasterAccept",(function(e){var t=r.props||{},n=t.setToasterState,o=t.bToaster;"function"==typeof r.pToaster.resolve&&(r.pToaster.resolve("accepted"),r.pToaster=""),o&&(n&&n(!1),r.oToaster.publish("accepted"),"function"==typeof e.resolve&&e.resolve())})),m()(u()(r),"handleToasterDecline",(function(e){var t=r.props||{},n=t.setToasterState,o=t.bToaster;"function"==typeof r.pToaster.resolve&&(r.pToaster.resolve("declined"),r.pToaster=""),o&&(n&&n(!1),r.oToaster.publish("declined"),"function"==typeof e.resolve&&e.resolve())})),m()(u()(r),"initialize",(function(){var e=(r.props.config.headlessMode||{}).enabled,t=u()(r);r.oToaster&&Object.keys(r.oToaster).length&&(r.oToaster.registerCommand("open",(function(n){e&&Object.keys(t.pToaster).length?t.rejectToaster(n,"Toaster already exists"):t.openToaster(n,t)})),r.oToaster.registerCommand("accept",(function(n){e?Object.keys(t.pToaster).length?t.acceptToaster(n,t):t.rejectToaster(n,"Toaster not exists"):t.acceptToaster(n,t)})),r.oToaster.registerCommand("decline",(function(n){e?Object.keys(t.pToaster).length?t.declineToaster(n,t):t.rejectToaster(n,"Toaster not exists"):t.declineToaster(n,t)})),r.oToaster.ready())})),m()(u()(r),"setToasterPosition",(function(e){var t=r.props||{},n=t.expandLauncher,o=t.messengerClosed,i=t.config,a=t.bFabVisible,s=t.bInvite,u=(i||{}).position.sideSpace,c=0;if(o&&r.toasterRef&&r.toasterRef.current){if(r.toasterRef.current.style.bottom=n||s?"calc(88% - "+r.toasterRef.current.clientHeight+"px)":"0px",e&&e.type&&"orientationchange"===e.type&&(c=n?114:a?98:12,(Object(M.p)()||Object(M.n)())&&r.toasterRef.current.clientHeight+c>window.outerHeight&&!r.state.bUpdateToasterBodyHeight?r.setState({bUpdateToasterBodyHeight:!0}):r.setState({bUpdateToasterBodyHeight:!1})),u){var l=((r.toasterRef.current||{}).parentElement||{}).parentElement,d="calc(".concat(P.N,"% - ").concat(u,"px)");window.outerWidth-u<100*Math.round(P.O/P.N)&&(l?(r.toasterRef.current.parentElement.parentElement.style.maxWidth=d,r.toasterRef.current.parentElement.parentElement.style.position="relative",r.toasterRef.current.parentElement.parentElement.style.left="".concat(u,"px")):r.toasterRef.current.style.maxWidth=d)}r.toasterRef.current.style.right=n?(window.innerWidth-r.toasterRef.current.clientWidth)/2+"px":"0px"}}));var i=(e||{}).oPlugins;return r.state={bUpdateToasterBodyHeight:!1},r.sPluginName="Toaster",r.oToaster=i[r.sPluginName],r.pToaster="",r.position="top",r.mode="relative",r.toasterRef=Object(b.createRef)(),r}return a()(n,[{key:"handleToasterOpen",value:function(e,t){var n=this.props||{},r=n.setToasterState,o=n.bToaster,i=n.setToasterContent;Object.keys(e.data).length?(i(e.data),o||(r&&r(!0),t.oToaster.publish("opened"),e.resolve())):e.reject("Send Valid data.")}},{key:"rejectToaster",value:function(e,t){this.oToaster.publish("error",t),e.reject(t)}},{key:"openToaster",value:function(e,t){var n=this.props,r=n.bToaster,o=((n.config||{}).launcherButton||{}).visibility;r?t.rejectToaster(e,"Toaster already exists"):(t.pToaster=e,t.handleToasterOpen(e,t),o&&"ondemand"===o.toLowerCase()&&this.oToaster.command("Launcher.show"))}},{key:"acceptToaster",value:function(e,t){this.props.bToaster?(t.pToaster=e,t.handleToasterAccept(e)):t.rejectToaster(e,"Toaster not exists")}},{key:"declineToaster",value:function(e,t){this.props.bToaster?(t.pToaster=e,t.handleToasterDecline(e)):t.rejectToaster(e,"Toaster not exists")}},{key:"componentDidMount",value:function(){var e=this;this.initialize(),window.addEventListener("orientationchange",(function(t){setTimeout((function(){e.setToasterPosition(t)}),100)})),window.addEventListener("resize",this.setToasterPosition)}},{key:"componentDidUpdate",value:function(e){(((e||{}).config||{}).headlessMode||{}).enabled||!this.props.bToaster&&e.bToaster&&this.oToaster.command("MessengerHelper.setDimension",{toaster:{height:0,width:0}})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("orientationchange",this.setToasterPosition),window.removeEventListener("resize",this.setToasterPosition)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.bFabVisible,r=e.expandedArticle,o=e.expandLauncher,i=e.view,a=e.messengerClosed,s=e.bToaster,u=e.oToasterContent,c=t.theme.main,l=(t.headlessMode||{}).enabled;return"search"===i||"article"===i||"category"===i||"connect"===i||"sharing"===i?(this.mode="overflow",this.position="bottom"):(this.mode="relative",this.position="top"),y.a.createElement("div",null,!l&&s&&y.a.createElement(W,{open:s,bInvite:this.props.bInvite,expandLauncher:o,messengerClosed:a,color:c,content:u,config:t,handleAcceptAction:this.handleToasterAccept,handleDeclineAction:this.handleToasterDecline,ref:this.toasterRef,oToaster:this.oToaster,iToasterHeight:this.props.iToasterHeight,setToasterHeight:this.props.setToasterHeight,setToasterPosition:this.setToasterPosition,bFabVisible:n,expandedArticle:r,updateToasterBodyHeight:this.state.bUpdateToasterBodyHeight,view:i,mode:this.mode,position:this.position}))}}]),n}(y.a.Component);J.propTypes={oPlugins:w.a.object.isRequired,config:w.a.object.isRequired,bFabVisible:w.a.bool.isRequired};var Y;t.default=(Y=J,function(e){return y.a.createElement(G.a.Consumer,null,(function(t){var n=t.oPlugins,r=t.expandLauncher,o=t.toggleLauncher,i=t.setToasterHeight,a=t.setToasterState,s=t.setToasterContent,u=t.oToasterContent,c=t.bToaster,l=t.bFabVisible,d=t.iToasterHeight,p=t.bInvite,f=t.expandedArticle,h=t.view,g=t.messengerClosed;return y.a.createElement(Y,D()({},e,{oPlugins:n,expandLauncher:r,toggleLauncher:o,iToasterHeight:d,setToasterHeight:i,setToasterState:a,setToasterContent:s,oToasterContent:u,bToaster:c,bFabVisible:l,bInvite:p,expandedArticle:f,view:h,messengerClosed:g}))}))})},129:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(17),o=n.n(r),i={"en-us":"en",cs:"cs",da:"da",de:"de",es:"es",fi:"fi",it:"it",ko:"ko",nl:"nl",no:"nb",pl:"pl","pt-br":"pt-br",ru:"ru",sv:"sv",th:"th",tr:"tr","zh-cn":"zh-cn","zh-tw":"zh-tw",fr:"fr",ja:"ja",ar:"ar",he:"he","pt-pt":"pt-pt"};function a(e){return new Promise((function(t,r){switch(i[e]){case"pl":n.e(20).then(n.t.bind(null,440,7)).then((function(e){o.a.locale("pl"),t(o.a)}));break;case"fr":n.e(13).then(n.t.bind(null,441,7)).then((function(e){o.a.locale("fr"),t(o.a)}));break;case"ja":n.e(16).then(n.t.bind(null,442,7)).then((function(e){o.a.locale("ja"),t(o.a)}));break;case"cs":n.e(7).then(n.t.bind(null,443,7)).then((function(e){o.a.locale("cs"),t(o.a)}));break;case"da":n.e(8).then(n.t.bind(null,444,7)).then((function(e){o.a.locale("da"),t(o.a)}));break;case"de":n.e(9).then(n.t.bind(null,445,7)).then((function(e){o.a.locale("de"),t(o.a)}));break;case"es":n.e(11).then(n.t.bind(null,446,7)).then((function(e){o.a.locale("es"),t(o.a)}));break;case"fi":n.e(12).then(n.t.bind(null,447,7)).then((function(e){o.a.locale("fi"),t(o.a)}));break;case"it":n.e(15).then(n.t.bind(null,448,7)).then((function(e){o.a.locale("it"),t(o.a)}));break;case"ko":n.e(17).then(n.t.bind(null,449,7)).then((function(e){o.a.locale("ko"),t(o.a)}));break;case"nl":n.e(19).then(n.t.bind(null,450,7)).then((function(e){o.a.locale("nl"),t(o.a)}));break;case"nb":n.e(18).then(n.t.bind(null,451,7)).then((function(e){o.a.locale("nb"),t(o.a)}));break;case"pt-br":n.e(22).then(n.t.bind(null,452,7)).then((function(e){o.a.locale("pt-br"),t(o.a)}));break;case"ru":n.e(23).then(n.t.bind(null,453,7)).then((function(e){o.a.locale("ru"),t(o.a)}));break;case"ar":n.e(6).then(n.t.bind(null,454,7)).then((function(e){o.a.locale("ar"),t(o.a)}));break;case"sv":n.e(24).then(n.t.bind(null,455,7)).then((function(e){o.a.locale("sv"),t(o.a)}));break;case"th":n.e(25).then(n.t.bind(null,456,7)).then((function(e){o.a.locale("th"),t(o.a)}));break;case"tr":n.e(26).then(n.t.bind(null,457,7)).then((function(e){o.a.locale("tr"),t(o.a)}));break;case"zh-cn":n.e(27).then(n.t.bind(null,458,7)).then((function(e){o.a.locale("zh-cn"),t(o.a)}));break;case"zh-tw":n.e(28).then(n.t.bind(null,459,7)).then((function(e){o.a.locale("zh-tw"),t(o.a)}));break;case"he":n.e(14).then(n.t.bind(null,460,7)).then((function(e){o.a.locale("he"),t(o.a)}));break;case"pt-pt":n.e(21).then(n.t.bind(null,461,7)).then((function(e){o.a.locale("pt"),t(o.a)}));break;default:n.e(10).then(n.t.bind(null,462,7)).then((function(e){o.a.locale("en"),t(o.a)}))}}))}},13:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},130:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(12),o=window.newrelic||{},i=o&&Object.keys(o).length;function a(){return{launcherOpened:function(){if(i)return o.addPageAction(r.z)},launcherMinimized:function(){if(i)return o.addPageAction(r.y)},messengerClosed:function(){if(i)return o.addPageAction(r.I)},attachmentFromUser:function(){if(i)return o.addPageAction(r.d)},attachmentFromAgent:function(){if(i)return o.addPageAction(r.c)},attachmentremoved:function(){if(i)return o.addPageAction(r.e)},attachmentClicked:function(){if(i)return o.addPageAction(r.a)},attachmentDownloaded:function(){if(i)return o.addPageAction(r.b)},historyFetched:function(){if(i)return o.addPageAction(r.n)},desktopMode:function(){if(i)return o.addPageAction(r.l)},mobileMode:function(){if(i)return o.addPageAction(r.L)},messageOnHover:function(){if(i)return o.addPageAction(r.B)},messageOnTouch:function(){if(i)return o.addPageAction(r.C)},messageOnFocus:function(){if(i)return o.addPageAction(r.A)},sessionCleared:function(){if(i)return o.addPageAction(r.N)},serviceCommandAction:function(e){if(i)return o.addPageAction(e)}}}},147:function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},148:function(e,t,n){"use strict";e.exports=n(149)},149:function(e,t,n){"use strict"; /** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,D=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case p:case a:case u:case s:case h:return e;default:switch(e=e&&e.$$typeof){case l:case f:case v:case m:case c:return e;default:return t}}case i:return t}}}function C(e){return w(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=c,t.Element=o,t.ForwardRef=f,t.Fragment=a,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=u,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return C(e)||w(e)===d},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===u},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===u||e===s||e===h||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===D)},t.typeOf=w},15:function(e,t,n){"use strict";n.d(t,"q",(function(){return i})),n.d(t,"o",(function(){return a})),n.d(t,"n",(function(){return s})),n.d(t,"p",(function(){return u})),n.d(t,"i",(function(){return c})),n.d(t,"m",(function(){return l})),n.d(t,"h",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"r",(function(){return f})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return g})),n.d(t,"s",(function(){return m})),n.d(t,"e",(function(){return v})),n.d(t,"l",(function(){return D})),n.d(t,"c",(function(){return b})),n.d(t,"g",(function(){return y})),n.d(t,"d",(function(){return x})),n.d(t,"j",(function(){return w})),n.d(t,"k",(function(){return C}));var r=n(26),o=n.n(r);function i(){var e={},t=!1,n=0;"boolean"==typeof(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);for(var r=function(n){for(var r in n)n.hasOwnProperty(r)&&(t&&"[object Object]"===Object.prototype.toString.call(n[r])?e[r]=i(e[r],n[r]):e[r]=n[r])};nwindow.screen.height),e}function s(){var e=!1,t=document.getElementById("full-screen-indicator");window.getComputedStyle&&t&&(e="block"===window.getComputedStyle(t).display);return e}function u(){var e,t=!1,n=!1,r=document.getElementById("full-screen-indicator");window.getComputedStyle&&r?n="block"===window.getComputedStyle(r).display:n=!0;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))||/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e))&&(t=!0),t&&n}function c(){var e,t,n,r=window.navigator.userAgent,o=window.navigator.platform,i=window.navigator.maxTouchPoints;return/MSIE/.test(r)||/Edge/.test(r)||/Trident\/7\./.test(r)?e="Internet Explorer":/Chrome/.test(r)?(/CrOS/.test(r)&&(o="CrOS"),e="Chrome"):/Opera/.test(r)?e="Opera":/Firefox/.test(r)?e="Firefox":/Safari/.test(r)?(e="Safari",(/iPhone/.test(r)||/iPad/.test(r)||/iPod/.test(r))&&(t="iOS",/FxiOS/.test(r)?e="Firefox":/CriOS/.test(r)&&(e="Chrome"))):/Android/.test(r)&&(e="Android Webkit Browser",(n=/Android\s[\.\d]+/.exec(r)||[]).length&&(t=n[0])),"MacIntel"===o||"MacPPC"===o?t=i&&i>2?"iOS":"Mac OS X":"CrOS"===o?t="ChromeOS":"Win32"===o||"Win64"==o?t="Windows":!t&&/Android/.test(r)?t="Android":!t&&/Linux/.test(o)?t="Linux":!t&&/Windows/.test(r)&&(t="Windows"),{browser:e||"",os:t||""}}function l(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}function d(){var e=navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage;return e&&"string"==typeof e?e.toLowerCase():""}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";var n=t<0?0:t,r=Math.floor(Math.log(e)/Math.log(1e3));return parseFloat((e/Math.pow(1e3,r)).toFixed(n))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]}function f(e,t){var n=e.indexOf(t);return-1!==n&&e.splice(n,1),e}var h={"en-us":"en",cs:"cs",da:"da",de:"de",es:"es",fi:"fi",it:"it",ko:"ko",nl:"nl",no:"nb",pl:"pl","pt-br":"pt-BR",ru:"ru",sv:"sv",th:"th",tr:"tr","zh-cn":"zh-CN","zh-tw":"zh-TW",fr:"fr",ja:"ja",ar:"ar",he:"he","pt-pt":"pt-PT"},g={"conversations.home":{showHeaderTitle:!0,showHeaderSubTitle:!0,expandHeader:!0,backButton:!1,deleteButton:!1,closeButton:!1},"conversations.conversations":{showHeaderTitle:!0,showHeaderSubTitle:!1,expandHeader:!1,backButton:!0,deleteButton:!0,closeButton:!1},"knowledge.search":{showHeaderTitle:!1,showHeaderSubTitle:!1,expandHeader:!1,backButton:!0,deleteButton:!1,closeButton:!1},"knowledge.article":{showHeaderTitle:!1,showHeaderSubTitle:!1,expandHeader:!1,backButton:!0,deleteButton:!1,closeButton:!1},"knowledge.category":{showHeaderTitle:!1,showHeaderSubTitle:!1,expandHeader:!1,backButton:!0,deleteButton:!1,closeButton:!1},"conversations.filePreview":{showHeaderTitle:!0,showHeaderSubTitle:!1,expandHeader:!1,backButton:!0,deleteButton:!0,closeButton:!1},"cobrowse.connect":{showHeaderTitle:!0,showHeaderSubTitle:!1,expandHeader:!1,backButton:!0,closeButton:!1},"cobrowse.sharing":{showHeaderTitle:!0,showHeaderSubTitle:!1,expandHeader:!1,backButton:!0,closeButton:!1}};function m(e,t){var n={text:e,truncated:!1};return e.length>t&&(n.text=e.slice(0,t)+"...",n.truncated=!0),n}function v(){return/^(\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F?|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD]))+$/g}function D(e){return e.storage||"LocalStorage"}function b(e,t){var n="";if("video"===e.toLowerCase())n=document.createElement("video").canPlayType(t);else if("audio"===e.toLowerCase()){n=document.createElement("audio").canPlayType(t)}return n}function y(e){var t=e.split("/"),n=o()(t,2),r=n[0],i=n[1];i&&-1!==i.indexOf("vnd.openxmlformats-officedocument.wordprocessingml.")?i="vnd.openxmlformats-officedocument.wordprocessingml.*":i&&-1!==i.indexOf("vnd.openxmlformats-officedocument.presentationml.")?i="vnd.openxmlformats-officedocument.presentationml.*":i&&-1!==i.indexOf("vnd.openxmlformats-officedocument.spreadsheetml.")&&(i="vnd.openxmlformats-officedocument.spreadsheetml.*");return!(r=r.toLowerCase())||"image"!==r&&"audio"!==r&&"video"!==r&&"text"!==r?i&&"pdf"===i?i.toUpperCase():i&&["vnd.openxmlformats-officedocument.wordprocessingml.*","msword","vnd.google-apps.document","vnd.oasis.opendocument.text","vnd.oasis.opendocument.text-master","application/vnd.oasis.opendocument.text-template"].includes(i)?"Document":i&&["vnd.ms-powerpoint","vnd.openxmlformats-officedocument.presentationml.*","vnd.google-apps.presentation","vnd.oasis.opendocument.presentation","vnd.oasis.opendocument.presentation-template"].includes(i)?"Presentation":i&&["vnd.google-apps.spreadsheet","vnd.ms-excel","vnd.openxmlformats-officedocument.spreadsheetml.*","vnd.oasis.opendocument.spreadsheet","vnd.oasis.opendocument.spreadsheet-template"].includes(i)?"Spreadsheet":"File":r.charAt(0).toUpperCase()+r.slice(1)}function x(e){var t=!1;if(["image/jpeg","image/png","image/gif","image/svg+xml"].includes(e))t=!0;else{var n=document.createElement("canvas");n.width=n.height=1,t=null!==n.toDataURL(e).match(e)}return t}function w(e){return(e||{}).preview?"":"genesys-mxg-conversation"}function C(e){return(e||{}).preview?"":"genesys-mxg-homescreen"}},150:function(e,t,n){"use strict";var r=n(151);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},151:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},156:function(e,t,n){"use strict";n.r(t);var r=n(26),o=n.n(r),i=n(39),a=n.n(i),s=n(40),u=n.n(s),c=n(13),l=n.n(c),d=n(42),p=n.n(d),f=n(43),h=n.n(f),g=n(32),m=n.n(g),v=n(11),D=n.n(v),b=n(41),y=n.n(b),x=(n(94),n(0)),w=n.n(x),C=n(6),O=n.n(C),E=n(4),S=n(199),j=n.n(S),F=n(276),A=n(418),k=n(18),T="Engage",P={root:"".concat(T,"-root"),rootBottom:"".concat(T,"-rootBottom"),snackbarContent:"".concat(T,"-snackbarContent"),content:"".concat(T,"-content"),snackbarMessage:"".concat(T,"-snackbarMessage"),snackbarAction:"".concat(T,"-snackbarAction"),iconButton:"".concat(T,"-iconButton")},M=Object(E.a)("div")((function(e){var t;e.theme;return t={},D()(t,"& .".concat(P.root),{maxWidth:"96%",minWidth:"40%",position:"absolute",bottom:"6px",height:"auto",minHeight:"50px",left:"auto"}),D()(t,"& .".concat(P.rootBottom),{bottom:"12px"}),D()(t,"& .".concat(P.snackbarContent),{padding:"0px",height:"auto",maxHeight:"120px",overflow:"hidden",boxShadow:"0px 3px 1px -2px rgb(0 0 0 / 20%), 0px 1px 1px 1px rgb(0 0 0 / 14%), 0px 1px 5px 1px rgb(0 0 0 / 12%)"}),D()(t,"& .".concat(P.content),{cursor:"pointer",padding:"14px 0px 14px 18px",fontSize:"1.05em",wordBreak:"break-word",boxSizing:"border-box"}),D()(t,"& .".concat(P.snackbarMessage),{maxWidth:"84%",padding:"4px 0"}),D()(t,"& .".concat(P.snackbarAction),{padding:"0px",margin:"0px"}),D()(t,"& .".concat(P.iconButton),{color:"#444444cf"}),t}));function I(e,t){return w.a.createElement(F.a,{className:P.iconButton,onClick:e,"aria-label":t.ariaClose},w.a.createElement(j.a,{alt:"",sx:{width:"26px",height:"26px",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}))}var B=w.a.forwardRef((function(e,t){var n=e.open,r=e.handleClose,o=e.key,i=e.message,a=e.handleClick,s=e.showBottom,u=e.config,c=e.oEngage,l=u||{},d=l.position,p=l.documentDirection,f=d.alignment,h=d.sideSpace,g="right",m={},v={left:"auto"},D={right:"auto"};if(Object(x.useEffect)((function(){setTimeout((function(){if(t&&t.current){var e=t.current.clientHeight+11;t.current.children[0].style.maxHeight=e+"px",c&&n&&c.command("MessengerHelper.setDimension",{engage:{height:e,width:k.r}})}}),100)})),f){switch(f){case"right":m=v,g="right";break;case"left":m=D,g="left";break;case"auto":p&&("ltr"===p&&(m=v,g="right"),"rtl"===p&&(m=D,g="left"))}h&&window.outerWidth-h<100*Math.round(k.r/k.q)&&(m.maxWidth="calc(".concat(k.q,"% - ").concat(h,"px)"))}return w.a.createElement(M,null,w.a.createElement(A.a,{ref:t,open:n,anchorOrigin:{vertical:"bottom",horizontal:g},action:I(r,e),transitionDuration:400,role:"alert",message:w.a.createElement("div",{className:P.content,role:"button",onClick:a,onKeyPress:function(e){13!==e.which&&32!==e.which||e.ctrlKey||e.shiftKey||(a(),e.preventDefault())},tabIndex:0,dir:"auto"},i),key:o,style:m,classes:{root:P.root},className:"".concat(s?P.rootBottom:""),ContentProps:{classes:{root:P.snackbarContent,message:P.snackbarMessage,action:P.snackbarAction}}}))}));B.propTypes={open:O.a.bool.isRequired,handleClose:O.a.func,handleClick:O.a.func,config:O.a.object,ariaClose:O.a.string,showBottom:O.a.bool,key:O.a.any,color:O.a.string.isRequired,message:O.a.string.isRequired};var R=B,L=n(46),N=n(15);function _(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,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var H=function(e){p()(n,e);var t=_(n);function n(e){var r;a()(this,n),r=t.call(this,e),D()(l()(r),"resetMetadata",(function(){r.oMetaData.inviteOffered="",r.oMetaData.inviteAccepted="",r.oMetaData.inviteRejected="",r.oMetaData.inviteIgnored="",r.oMetaData.inviteError="",r.oMetaData.journeyContext=""})),D()(l()(r),"checkPersistentChat",(function(){r.bNewConversation||r.oEngage.command(r.storage+".get",{name:r.storagePrefix+r.subConversationStorage}).then((function(e){if(e){var t=e.split(" "),n=o()(t,1)[0];r.bConversationActive=!(!n||"string"!=typeof n||"true"!==n)}else r.bConversationActive=!1}))})),D()(l()(r),"checkAuthentication",(function(){return(r.props.config.auth||{}).enabled?new Promise((function(e,t){r.oEngage.command(r.storage+".get",{names:[k.c]}).then((function(n){var r=n[k.c];r&&"undefined"!==r?e():t()})).catch((function(){t()}))})):Promise.resolve()})),D()(l()(r),"inviteAccepted",(function(){r.setState({bShowInvite:!1}),r.oMetaData.inviteAccepted=(new Date).getTime(),"function"==typeof r.oEngageInvitePromise.resolve&&(r.oEngageInvitePromise.resolve("accepted"),r.oEngageInvitePromise=""),r.oEngageAcceptPromise&&"function"==typeof r.oEngageAcceptPromise.resolve&&r.oEngageAcceptPromise.resolve(r.oMetaData),r.oEngage.publish("inviteAccepted",r.oMetaData)})),D()(l()(r),"handleEngageClose",(function(e){r.setState({bShowInvite:!1}),r.props.setInviteState(!1),r.oMetaData.inviteRejected=(new Date).getTime(),"function"==typeof r.oEngageInvitePromise.resolve&&(r.oEngageInvitePromise.resolve("rejected"),r.oEngageInvitePromise=""),r.oEngageRejectPromise&&"function"==typeof r.oEngageRejectPromise.resolve&&r.oEngageRejectPromise.resolve(r.oMetaData),r.oEngage.publish("inviteRejected",r.oMetaData),setTimeout((function(){r.resetMetadata()}),0)})),D()(l()(r),"handleEngageClick",(function(e){(0,r.props.handleEngageClick)({journeyContext:r.oMetaData.journeyContext}),r.inviteAccepted()})),D()(l()(r),"showInvite",(function(e){var t=((r.props.config||{}).launcherButton||{}).visibility;e.setState({bShowInvite:!0}),t&&"ondemand"===t.toLowerCase()&&r.oEngage.command("Launcher.show"),e.props.setInviteState(!0),r.oMetaData.inviteOffered=(new Date).getTime(),r.oEngage.publish("inviteOffered",r.oMetaData)})),D()(l()(r),"initialize",(function(){var e=(r.props.config.headlessMode||{}).enabled,t=l()(r);r.oEngage&&Object.keys(r.oEngage).length&&(r.oEngage.registerCommand("invite",(function(n){e&&Object.keys(t.oEngageInvitePromise).length?t.rejectInvite(n,{code:"INVITEACTIVE",reason:"There is active invite already exits"}):t.registerInvite(n,t)})),r.oEngage.registerCommand("accept",(function(e){if(Object.keys(t.oEngageInvitePromise).length)t.oEngageAcceptPromise=e,t.handleEngageClick();else{t.rejectInvite(e,{code:"NOACTIVEINVITE",reason:"There is no active invite to accept"})}})),r.oEngage.registerCommand("reject",(function(e){if(Object.keys(t.oEngageInvitePromise).length)t.oEngageRejectPromise=e,t.handleEngageClose();else{t.rejectInvite(e,{code:"NOACTIVEINVITE",reason:"There is no active invite to reject"})}})),r.oEngage.subscribe("Messenger.visibilityChanged",(function(e){e.data.hidden&&t.state.bShowInvite&&(t.oMetaData.inviteIgnored=(new Date).getTime(),t.oEngage.publish("inviteIgnored",t.oMetaData))})),r.oEngage.subscribe("Identifiers.ready",(function(e){t.oEngage.command("Identifiers.getJourneyContext").then((function(e){var n=e.customer,r=e.customerSession;n&&Object.keys(n).length&&(t.oJourneyContext.customer=n),r&&Object.keys(r).length&&(t.oJourneyContext.customerSession=r),t.props.setJourneyContext(t.oJourneyContext)}))})),r.oEngage.subscribe("Journey.qualifiedWebMessagingOffer",(function(e){t.handleInvite(e,t)})),r.oEngage.subscribe("MessagingService.started",(function(e){if(t.bConversationActive=!0,e.data&&Object.keys(e.data).length){var n=(e.data||{}).newSession;t.bNewConversation=!!n}})),r.oEngage.subscribe("MessagingService.sessionExpired",(function(e){t.bNewConversation=!1,setTimeout((function(){t.checkPersistentChat()}),1e3)})),r.oEngage.subscribe("Auth.loggedOut",(function(){t.state.bShowInvite&&t.setState({bShowInvite:!1})})),r.oEngage.subscribe("Auth.data.authenticated",(function(e){(e.data||{}).value||t.state.bShowInvite&&t.setState({bShowInvite:!1})})),r.oEngage.subscribe("MessagingService.messagesReceived",(function(e){if(t.bNewConversation&&e.data&&Object.keys(e.data).length){var n=(e.data||{}).messages;n&&Object.keys(n).length&&(t.bNewConversation=!1)}})),r.oEngage.ready())})),r.state={bShowInvite:!1},r.sPluginName="Engage",r.oEngage=e.plugin,r.oEngageInvitePromise="",r.oEngageAcceptPromise="",r.oEngageRejectPromise="",r.oJourneyContext={},r.oMetaData={journeyContext:"",inviteOffered:"",inviteAccepted:"",inviteRejected:"",inviteIgnored:"",inviteError:"",customOfferText:""};var i=e.config,s=i.deploymentId;return r.storagePrefix=s?s+":gcmc":"_gcmc",r.subConversationStorage="sessionActive",r.bConversationActive=!1,r.bNewConversation=!1,r.maxMessageLength=70,r.engageRef=Object(x.createRef)(),r.storage=Object(N.l)(i),r}return u()(n,[{key:"rejectInvite",value:function(e,t){this.oMetaData.inviteError=t,this.oEngage.publish("inviteError",this.oMetaData),e.reject(t)}},{key:"registerInvite",value:function(e,t){t.oEngageInvitePromise=e,t.handleInvite(e,t)}},{key:"handleInvite",value:function(e,t){var n=this,r=this,o=this.props,i=o.expandLauncher,a=o.config,s=((a||{}).auth||{}).enabled,u=this.state.bShowInvite,c=e.data,l=c.journeyContext,d=(c.engageContent||{}).offerText,p=a.i18n[a.lang].launcher.inviteMessage,f=!1;this.checkPersistentChat(),this.checkAuthentication().then((function(){d&&!u?d.length>n.maxMessageLength||!d.trim()?(n.oMetaData.inviteError={code:"INVALIDOFFERTEXT",reason:"Custom offer message is invalid. Default invite message used instead"},n.oEngage.publish("inviteError",n.oMetaData),n.oMetaData.customOfferText=""):(n.oMetaData.customOfferText=d.trim(),f=!0):n.oMetaData.customOfferText&&!u&&(n.oMetaData.customOfferText=""),p&&(f=!(p.length>n.maxMessageLength)),n.oJourneyContext&&n.oJourneyContext.triggeringAction&&!u&&(n.oJourneyContext.triggeringAction={}),l&&(n.oJourneyContext=Object(N.q)(n.oJourneyContext,l),n.oMetaData.journeyContext=n.oJourneyContext),n.props.setJourneyContext(n.oJourneyContext),u?(n.oMetaData.inviteError={code:"INVITEACTIVE",reason:"There is active invite already exits"},n.oEngage.publish("inviteError",n.oMetaData)):f?i||n.bConversationActive&&!n.bNewConversation?n.bConversationActive?s&&!i&&n.bNewConversation?n.showInvite(t):n.bNewConversation?(n.oMetaData.inviteError={code:"ALREADYOPEN",reason:"Conversation application is already open"},n.oEngage.publish("inviteError",n.oMetaData)):(n.oMetaData.inviteError={code:"CONVERSATIONACTIVE",reason:"There is an active chat already exists"},n.oEngage.publish("inviteError",n.oMetaData)):(n.oMetaData.inviteError={code:"ALREADYOPEN",reason:"Conversation application is already open"},n.oEngage.publish("inviteError",n.oMetaData)):n.showInvite(t):(n.oMetaData.inviteError={code:"INVALIDINVITEMESSAGE",reason:"Offer message length exceeds 70 characters"},n.oEngage.publish("inviteError",n.oMetaData))}),(function(){r.oMetaData.inviteError={code:"UNAUTHENTICATED_USER",reason:"User must be authenticated to receive the offer"},r.oEngage.publish("inviteError",r.oMetaData),"function"==typeof e.reject&&e.reject("User must be authenticated to receive the offer")}))}},{key:"componentDidMount",value:function(){this.initialize(),this.props.setInviteAccepted(this.inviteAccepted),this.checkPersistentChat()}},{key:"componentDidUpdate",value:function(e,t){var n=(((e||{}).config||{}).headlessMode||{}).enabled;this.checkPersistentChat(),n||!this.state.bShowInvite&&t.bShowInvite&&this.oEngage.command("MessengerHelper.setDimension",{engage:{height:0,width:0}})}},{key:"render",value:function(){var e=this.state.bShowInvite,t=this.props,n=t.expandLauncher,r=t.config,o=r.i18n,i=r.lang,a=r.theme.main,s=(r.headlessMode||{}).enabled,u=o[i].launcher,c=u.inviteMessage,l=u.ariaCloseInvite;return w.a.createElement("div",null,!s&&w.a.createElement(R,{open:e&&!n,showBottom:!this.props.bFabVisible,color:a,message:this.oMetaData.customOfferText||c,config:r,handleClose:this.handleEngageClose,handleClick:this.handleEngageClick,ariaClose:l,ref:this.engageRef,oEngage:this.oEngage}))}}]),n}(w.a.Component);H.propTypes={plugin:O.a.object.isRequired,config:O.a.object.isRequired,setInviteAccepted:O.a.func.isRequired,bFabVisible:O.a.bool.isRequired};var $;t.default=($=H,function(e){return w.a.createElement(L.a.Consumer,null,(function(t){var n=t.expandLauncher,r=t.toggleLauncher,o=t.setInviteState,i=t.bFabVisible,a=t.setJourneyContext,s=t.handleEngageClick;return w.a.createElement($,y()({},e,{expandLauncher:n,toggleLauncher:r,setInviteState:o,bFabVisible:i,setJourneyContext:a,handleEngageClick:s}))}))})},160:function(e,t,n){"use strict";var r=n(5),o=n(62),i=n(0),a=n.n(i),s=n(38),u=n.n(s),c=!1,l=n(44),d="unmounted",p="exited",f="entering",h="entered",g="exiting",m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=p,r.appearStatus=f):o=h:o=t.unmountOnExit||t.mountOnEnter?d:p,r.state={status:o},r.nextCallback=null,r}Object(o.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===d?{status:p}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==f&&n!==h&&(t=f):n!==f&&n!==h||(t=g)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:d})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[u.a.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||c?this.safeSetState({status:h},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:f},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:h},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u.a.findDOMNode(this);t&&!c?(this.props.onExit(r),this.safeSetState({status:g},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:p},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:p},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===d)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(r.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.a.createElement(l.a.Provider,{value:null},"function"==typeof n?n(e,o):a.a.cloneElement(a.a.Children.only(n),o))},t}(a.a.Component);function v(){}m.contextType=l.a,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v,onEntering:v,onEntered:v,onExit:v,onExiting:v,onExited:v},m.UNMOUNTED=d,m.EXITED=p,m.ENTERING=f,m.ENTERED=h,m.EXITING=g;t.a=m},17:function(e,t,n){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",s="day",u="week",c="month",l="quarter",d="year",p="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},D={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var s=t.name;y[s]=t,o=s}return!r&&o&&(b=o),o||!r&&b},C=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},O=D;O.l=w,O.i=x,O.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function m(e){this.$L=w(e.locale,null,!0),this.parse(e)}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(O.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return O},v.isValid=function(){return!(this.$d.toString()===f)},v.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return C(e)96?p:f},g=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Object(c.c)(t,n,r);Object(d.a)((function(){return Object(c.b)(t,n,r)}));return null},v=function e(t,n){var o,i,a=t.__emotion_real===t,d=a&&t.__emotion_base||t;void 0!==n&&(o=n.label,i=n.target);var p=g(t,n,a),f=p||h(d),v=!f("as");return function(){var D=arguments,b=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==D[0]||void 0===D[0].raw)b.push.apply(b,D);else{0,b.push(D[0][0]);for(var y=D.length,x=1;x|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",v="(?!"+h+a+"\\))",D="(?="+h+a+"\\))",b="(\\s*(?:!important\\s*)?[;}])",y=/`TMP`/g,x=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),w=new RegExp("("+u+m+"[^;}]+;?)","gi"),C=new RegExp("("+u+"[^\\}]*?})","gi"),O=new RegExp("("+i+")ltr","gi"),E=new RegExp("("+i+")rtl","gi"),S=new RegExp(s+"(left)"+g+v+m,"gi"),j=new RegExp(s+"(right)"+g+v+m,"gi"),F=new RegExp(s+"(left)"+D,"gi"),A=new RegExp(s+"(right)"+D,"gi"),k=new RegExp(s+"(ltr)"+D,"gi"),T=new RegExp(s+"(rtl)"+D,"gi"),P=new RegExp(s+"([ns]?)e-resize","gi"),M=new RegExp(s+"([ns]?)w-resize","gi"),I=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+b,"gi"),B=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+b,"gi"),R=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),L=new RegExp("(background-position-x\\s*:\\s*)(-?"+r+"%)","gi"),N=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+b,"gi"),_=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),z=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),q=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),V=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function U(e,t,n){var r,o;return"%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n}function W(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function G(e,t){var n=[].slice.call(arguments),r=n.slice(2,6).filter((function(e){return e})),o=n.slice(6,10).filter((function(e){return e})),i=n[10]||"";return t+(o.length?W(r)+" / "+W(o):W(r))+i}function K(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function J(e,t,n){return t+K(n)}function Y(e,t,n,r,o){return t+n+K(r)+o}function Q(e,t,n,r,o){return t+n+r+K(o)}return{transform:function(n,r){var i=new o(w,"`NOFLIP_SINGLE`"),a=new o(C,"`NOFLIP_CLASS`"),s=new o(x,t);return n=s.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),r.transformDirInUrl&&(n=n.replace(k,"$1"+e).replace(T,"$1ltr").replace(y,"rtl")),r.transformEdgeInUrl&&(n=n.replace(F,"$1"+e).replace(A,"$1left").replace(y,"right")),n=n.replace(O,"$1"+e).replace(E,"$1ltr").replace(y,"rtl").replace(S,"$1"+e).replace(j,"$1left").replace(y,"right").replace(P,"$1$2"+e).replace(M,"$1$2e-resize").replace(y,"w-resize").replace(N,G).replace(_,J).replace(H,Q).replace($,Q).replace(z,J).replace(q,Y).replace(V,Y).replace(I,"$1$2$3$8$5$6$7$4$9").replace(B,"$1$2$3$8$5$6$7$4$9").replace(R,U).replace(L,U),n=i.detokenize(a.detokenize(s.detokenize(n)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)},239:function(e,t,n){"use strict";var r=n(26),o=n.n(r),i=n(39),a=n.n(i),s=n(40),u=n.n(s),c=n(13),l=n.n(c),d=n(42),p=n.n(d),f=n(43),h=n.n(f),g=n(32),m=n.n(g),v=n(11),D=n.n(v),b=n(0),y=n.n(b),x=n(6),w=n.n(x),C=n(629),O=n(560),E=n(110),S=n(567),j=n(46),F=n(41),A=n.n(F),k=(n(94),n(411)),T=n(230),P=n(206),M=n(283),I=n.n(M),B=n(282),R=n.n(B),L=n(4),N=n(205),_={width:"1px",height:"1px",overflow:"hidden",textIndent:"-9999px",border:"0"};function H(e){var t,n=e.i18n,r=e.lang,o=e.appName,i=e.showStatus,a=n[r][o],s=a.ariaMessengerOpenStatus,u=a.ariaMessengerMinimizeStatus;return y.a.createElement("div",{style:_,className:"cx-status","aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",tabIndex:-1,dangerouslySetInnerHTML:{__html:Object(N.b)((t="",i&&("true"==i?t=s:"false"==i&&(t=u)),t))}})}H.propTypes={i18n:w.a.object.isRequired,lang:w.a.string.isRequired,appName:w.a.string.isRequired,showStatus:w.a.string};var $=n(15),z=n(12),q=n(28),V=n(18),U=n(231);n(244);function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t0?setTimeout((function(){e.oLauncher.command("MessengerHelper.setDimension",e.oDimensions)}),F):e.oLauncher.command("MessengerHelper.setDimension",e.oDimensions)}})),D()(l()(r),"resetDimensions",(function(){if(r.oLauncher){var e=(r.props.config||{}).position;Object($.p)()&&r.oLauncher.command("MessengerHelper.setDirection",{position:e}),r.oLauncher.command("MessengerHelper.setDimension",{launcher:{height:0,width:0,removeClass:[r.sConversationClassName,r.sHomeClassName]}})}})),D()(l()(r),"showLauncher",(function(){((r.props.config||{}).headlessMode||{}).enabled||(r.setState({fabVisibility:"on"}),r.props.iframeOrigin||(window.launcher.fabVisibility="on"),r.setDimensions(),r.props.setFabVisibility(!0),r.oLauncher&&(r.oLauncher.command("MessengerHelper.setPositions",{showLauncher:!0}),r.oLauncher.publish("visible",{journeyContext:r.oJourneyContext})))})),D()(l()(r),"hideLauncher",(function(){r.setState({fabVisibility:"off"}),r.props.iframeOrigin||(window.launcher.fabVisibility="off"),r.resetDimensions(),r.props.setFabVisibility(!1),r.oLauncher&&(r.oLauncher.command("MessengerHelper.setPositions",{showLauncher:!1}),r.oLauncher.publish("hidden",{journeyContext:r.oJourneyContext}))})),D()(l()(r),"loadChatServicePlugin",(function(e){var t=e||r.props,n=t.config,o=t.oPlugins,i=t.iframeOrigin,a=(n.headlessMode||{}).enabled;!o.MessagingService&&i&&"MessengerFrame"===i&&Genesys("loadPlugin","MessagingService",n,(function(){r.props.setPlugin("MessagingService",{}),a||r.setState({bConversationActive:!0})}))})),D()(l()(r),"initKnowledgeServicePlugin",(function(){var e=r.props,t=e.config;e.oPlugins.KnowledgeService||Object(U.initKnowledgeServicePlugin)(t).then((function(e){r.props.setPlugin("KnowledgeService",e)}))})),D()(l()(r),"checkActiveConversation",(function(e){var t=l()(r),n=r.props,i=n.config,a=i.preview,s=i.apps,u=n.oPlugins,c=n.iframeOrigin,d=((s||{}).conversations||{}).enabled;!r.oLauncher&&u&&u[r.sPluginName]&&(r.oLauncher=u[r.sPluginName]),r.oLauncher||c&&"MessengerFrame"===c&&u&&u.Messenger&&(r.oLauncher=u.Messenger);var p=Object($.l)(r.props.config);return new Promise((function(n,i){r.oLauncher.command(p+".get",{name:r.storagePrefix+r.subConversationStorage}).then((function(i){if(i){var s=i.split(" "),u=o()(s,1)[0];u&&"string"==typeof u&&"true"===u?(d?(t.previousConversationExpired=!1,r.loadChatServicePlugin(e||r.props)):a||(t.previousConversationExpired=!0),n({previousSessionInActive:t.previousConversationExpired})):(a||(t.previousConversationExpired=!0),n({previousSessionInActive:t.previousConversationExpired}))}else a||(t.previousConversationExpired=!0),n({previousSessionInActive:t.previousConversationExpired})}),(function(e){}))}))})),D()(l()(r),"openConversation",(function(e){var t=(r.messengerProps||{}).openConversation;t&&t(e)})),D()(l()(r),"openSearch",(function(e){var t=(r.messengerProps||{}).openSearch;t&&t(e)})),D()(l()(r),"openCobrowseConnect",(function(e){var t=(r.messengerProps||{}).openCobrowseConnect;t&&t(e)})),D()(l()(r),"openCobrowseSharing",(function(e){var t=(r.messengerProps||{}).openCobrowseSharing;t&&t(e)})),D()(l()(r),"onCobrowseVoiceSessionStart",(function(){var e=(r.messengerProps||{}).onCobrowseVoiceSessionStart;e&&e()})),D()(l()(r),"onCobrowseVoiceSessionEnd",(function(){var e=(r.messengerProps||{}).onCobrowseVoiceSessionEnd;e&&e(),r.setState({bActiveCobrowseSession:!1})})),D()(l()(r),"launcherPlugin",(function(){var e=r.props.config,t=e.launcherButton.visibility,n=e.auth,o=e.apps,i=(n||{}).enabled,a=((o||{}).conversations||{}).enabled;Genesys("registerPlugin","Launcher",(function(e){r.oLauncher=e,r.oLauncher&&("on"==t&&r.oLauncher.publish("visible"),r.oLauncher.registerCommand("show",(function(e){if("ondemand"===t.toLowerCase())if("on"===r.state.fabVisibility){var n={errorName:z.x,errorMessage:z.x};Object(q.a)(n),e.resolve()}else r.showLauncher(),e.resolve();else{var o={errorName:z.s,errorMessage:z.s};Object(q.a)(o),e.reject("Invalid configuration of Launcher button")}})),r.oLauncher.registerCommand("hide",(function(e){if("ondemand"===t.toLowerCase()||i)if("off"===r.state.fabVisibility){var n={errorName:z.w,errorMessage:z.w};Object(q.a)(n),e.reject("Launcher button is already hidden")}else r.hideLauncher(),e.resolve();else{var o={errorName:z.s,errorMessage:z.s};Object(q.a)(o),e.reject("Invalid configuration of Launcher button")}})),a&&r.checkActiveConversation(),r.determineDimensions(),i&&a&&r.loadChatServicePlugin(r.props),r.oLauncher.ready(),r.props.setPlugin("Launcher",r.oLauncher))}))}));var i=e.config,s=i.launcherButton.visibility,u=i.deploymentId,c=(i.auth||{}).enabled;r.state={ExternalComponent:"",fabVisibility:s||"on",bConversationActive:!1,bActiveCobrowseSession:!1},r.sPluginName="Launcher",r.oLauncher="",r.oJourneyContext=e.journeyContext||{},r.customerId="",r.sessionId="",r.previousConversationExpired=!1,r.previousConversationCleared=!1,r.oConversationPlugin={},r.store={},r.oDisableInputs=e.oDisableInputs||{},r.sConversationClassName=Object($.j)(e.config),r.sHomeClassName=Object($.k)(e.config),r.launcherBtnRef=Object(b.createRef)(),r.statusRef=Object(b.createRef)(),r.messengerProps="",r.storagePrefix=u+":gcmc",r.subConversationStorage="sessionActive";var d=l()(r);return Genesys("subscribe","Identifiers.ready",(function(){Genesys("command","Identifiers.getAll",{},(function(e){e&&(e.customerId&&(d.customerId=e.customerId),e.sessionId&&(d.sessionId=e.sessionId))}))})),Genesys("subscribe","Auth.authenticated",(function(){if(c){var e=r.state.fabVisibility;"on"===s&&"off"===e&&r.showLauncher()}})),Genesys("subscribe","CobrowseService.sessionStarted",(function(e){((e||{}).data||{}).joinCode;r.onCobrowseVoiceSessionStart(),r.setState({bActiveCobrowseSession:!0}),r.props.setCobrowseSessionStatus(!0)})),Genesys("subscribe","CobrowseService.sessionEnded",(function(e){r.onCobrowseVoiceSessionEnd(),r.props.setCobrowseSessionStatus(!1)})),Genesys("subscribe","MessagingService.conversationCleared",(function(){r.previousConversationCleared=!0})),r}return u()(n,[{key:"componentDidMount",value:function(){var e=this.props.iframeOrigin,t=this.props.config,n=(t.launcherButton.visibility,t.auth),r=t.headlessMode,o=t.apps,i=(t.home,(n||{}).enabled),a=(r||{}).enabled,s=o||{},u=s.knowledge,c=s.conversations,l=(u||{}).enabled,d=(c||{}).enabled;this.props.getComponentMethods(this),a?e&&"MessengerFrame"===e&&(d&&this.loadChatServicePlugin(),l&&this.initKnowledgeServicePlugin()):(window.addEventListener("resize",this.determinePosition),window.addEventListener("orientationchange",this.determinePosition),e&&"MessengerFrame"===e&&this.checkActiveConversation(),i&&d&&this.loadChatServicePlugin(this.props),this.props.oPlugins&&this.props.oPlugins[this.sPluginName]?(this.oLauncher=this.props.oPlugins[this.sPluginName],this.checkActiveConversation(),this.determineDimensions()):e||this.launcherPlugin())}},{key:"componentDidUpdate",value:function(){var e=this.state.fabVisibility,t=this.props,n=t.sMessengerOpen,r=t.headlessMode,o=t.iframeOrigin,i=t.expandLauncher,a=t.config,s=(r||{}).enabled;this.sConversationClassName=Object($.j)(a),this.sHomeClassName=Object($.k)(a),s||("on"==e||"ondemand"==e&&i?o&&"MessengerFrame"===o&&this.setDimensions():"off"==e&&"true"==n?o&&"MessengerFrame"===o&&this.setConvDimension():o&&"MessengerFrame"===o&&this.resetDimensions())}},{key:"getSnapshotBeforeUpdate",value:function(e,t){var n=this.props,r=n.bInvite,o=n.expandLauncher,i=n.bToaster,a=this.state,s=a.fabVisibility,u=a.bConversationActive;return this.oLauncher&&"ondemand"===s&&(i||r||o)&&this.showLauncher(),o&&u&&"off"!==s&&this.oLauncher.command("SubMessenger.expandLauncher"),null}},{key:"shouldComponentUpdate",value:function(e,t){var n=this.props,r=n.bInvite,o=n.expandLauncher,i=n.bToaster,a=e.config||{},s=a.launcherButton,u=a.headlessMode,c=a.apps,l=this.props.config||{},d=l.launcherButton,p=l.headlessMode,f=l.apps,h=(l.preview,(u||{}).enabled),g=(p||{}).enabled,m=(f||{}).conversations,v=(c||{}).conversations,D=(m||{}).enabled,b=(v||{}).enabled,y=(te().state||{}).expandLauncher;if(b&&b!==D&&(g?this.loadChatServicePlugin(e):this.checkActiveConversation(e)),!g&&s&&d){var x=d.visibility,w=s.visibility;if(w===x)return!0;if(w&&"on"===w.toLowerCase())return this.showLauncher(),!0;if(w&&"off"===w.toLowerCase())return this.hideLauncher(),!0;if(w&&"ondemand"===w.toLowerCase())return r||o||i||y?(this.showLauncher(),!0):(this.hideLauncher(),!0)}return"boolean"==typeof h&&"boolean"==typeof g&&h!==g&&(this.props.iframeOrigin||this.launcherPlugin(),!0)}},{key:"componentWillUnmount",value:function(){this.props.setPlugin("Launcher",this.oLauncher),this.props.getComponentMethods(null),window.removeEventListener("orientationchange",this.determineDimensions),window.removeEventListener("resize",this.determineDimensions)}},{key:"render",value:function(){var e=this,t=this.props,n=t.config,r=t.color,o=t.expandLauncher,i=t.journeyContext,a=t.oPlugins,s=t.sMessengerOpen,u=t.messengerClosed,c=t.closeMessenger,l=t.store,d=t.iframeOrigin,p=t.Toaster,f=(t.bToaster,this.state),h=f.fabVisibility,g=f.bConversationActive,m=n.i18n,v=n.lang,D=n.position,x=n.documentDirection,w=n.home,C=n.headlessMode,O=n.apps,E=n.cobrowse,S=O||{},j=S.conversations,F=(S.knowledge||{}).enabled,A=(j||{}).enabled,M=(C||{}).enabled,B=m[v][this.sPluginName.toLowerCase()],L=B.ariaOpenButton,N=B.ariaMinimizeButton,_=D.alignment,z=E||{},q=z.enabled,V=z.channels,U=!!(q&&V&&V.length)&&V.includes("voice"),W=!!F||!!A||!!U,K={},X=(this.state.ExternalComponent,"on"===h),te={right:"unset",left:"8px"},ne={right:"8px",left:"unset"};if(_)switch(_){case"right":K=ne;break;case"left":K=te;break;case"auto":x&&("ltr"===x&&(K=ne),"rtl"===x&&(K=te))}i&&(this.oJourneyContext=G(G({},this.oJourneyContext),i)),this.customerId&&(this.oJourneyContext.customer=G(G({},this.oJourneyContext.customer),{},{id:this.customerId})),this.sessionId&&(this.oJourneyContext.customerSession=G(G({},this.oJourneyContext.customerSession),{},{id:this.sessionId})),Z=Object($.p)()?"mxg-mobile-"+Y.toLowerCase()+"-"+Q.toLowerCase():"mxg-desktop-"+Y.toLowerCase()+"-"+Q.toLowerCase();return y.a.createElement(y.a.Fragment,null,!M&&W&&y.a.createElement(ee,{className:"".concat(Z)},y.a.createElement(b.Suspense,{fallback:y.a.createElement("div",{className:"mxg-skeleton"},o&&y.a.createElement(T.a,{rows:2,heights:[60,180]}))},d&&"MessengerFrame"===d&&(o||g)&&y.a.createElement(J,{open:o,activePreviousConversation:g,previousConversationExpired:this.previousConversationExpired,previousConversationCleared:this.previousConversationCleared,fResetConversationCleared:this.fResetConversationCleared,messengerClosed:u,closeMessenger:c,fabVisible:X,color:r,config:n,setClick:function(t){return e.fCLauncherClose=t},setConvPluginRef:this.fcStoreConvPluginRef,convPluginRef:this.oConversationPlugin,data:{journeyContext:this.oJourneyContext},fStore:this.fStore,store:l||this.store,Toaster:p,oLauncher:this.oLauncher,oMessenger:a.Messenger,launcherRef:this.launcherBtnRef,enableFocusControls:this.enableFocusControls,disableFocusControls:this.disableFocusControls,oDisableInputs:this.oDisableInputs,getComponentMethods:function(t){return e.messengerProps=t},sOSBrowser:Z,cobrowseActiveSession:this.state.bActiveCobrowseSession})),X&&!d&&y.a.createElement(k.a,{ref:this.launcherBtnRef,className:"mxg-launcher-btn",color:r,style:K,onClick:this.handleLauncherClick,onKeyDown:this.handleLauncherKeyDown,"aria-expanded":!!o,"aria-label":o?N:L,title:o?N:L},o?y.a.createElement(I.a,{fontSize:"large",alt:"",className:"mxg-expand-more-icon"}):y.a.createElement(P.a,{icon:R.a,customStyle:{width:"26px",height:"26px",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},alt:""})),y.a.createElement(H,{i18n:m,lang:v,appName:"conversations",showStatus:!s||w||F?"false":"true"})))}}]),n}(y.a.Component);re.propTypes={color:w.a.string.isRequired,config:w.a.object,expandLauncher:w.a.bool.isRequired,toggleLauncher:w.a.func.isRequired,Toaster:w.a.elementType.isRequired,oPlugins:w.a.object.isRequired,setPlugin:w.a.func.isRequired,bInvite:w.a.bool.isRequired,inviteAccepted:w.a.func.isRequired,setFabVisibility:w.a.func.isRequired,journeyContext:w.a.object,oDisableInputs:w.a.object.isRequired,enableFocusControls:w.a.func,disableFocusControls:w.a.func,getComponentMethods:w.a.func};var oe,ie,ae,se=(oe=re,function(e){return y.a.createElement(j.a.Consumer,null,(function(t){var n=t.expandLauncher,r=t.messengerClosed,o=t.closeMessenger,i=t.sMessengerOpen,a=t.toggleLauncher,s=t.logoutMessenger,u=t.oPlugins,c=t.setPlugin,l=t.bInvite,d=t.inviteAccepted,p=t.setFabVisibility,f=t.journeyContext,h=t.oDisableInputs,g=t.disableFocusControls,m=t.enableFocusControls,v=t.setArticleExpanded,D=t.expandedArticle,b=t.store,x=t.iHomeScreenHeight,w=t.view,C=t.bAddTransition,O=t.bToaster,E=t.iToasterHeight,S=t.setCobrowseSessionStatus;return y.a.createElement(oe,A()({},e,{store:b,expandLauncher:n,sMessengerOpen:i,messengerClosed:r,closeMessenger:o,toggleLauncher:a,logoutMessenger:s,oPlugins:u,setPlugin:c,bInvite:l,bToaster:O,iToasterHeight:E,inviteAccepted:d,setFabVisibility:p,journeyContext:f,oDisableInputs:h,setArticleExpanded:v,expandedArticle:D,disableFocusControls:g,enableFocusControls:m,iHomeScreenHeight:x,view:w,bAddTransition:C,setCobrowseSessionStatus:S}))}))}),ue=n(156),ce=n(122),le="#0165A7",de="#D2ECFD",pe="#FFFFFC",fe="#B0B0B0",he="#ECECEC",ge="0px 3px 1px -2px rgba(0,0,0,0.2), 0px 1px 1px 1px rgba(0,0,0,0.14), 0px 1px 5px 1px rgba(0,0,0,0.12)",me="#7575754f",ve="rgba(0, 0, 0, 0.87)",De=Object($.p)(),be="0.938rem",ye={palette:{mode:"dark",common:{blue:"".concat(le),red:"".concat(de),white:"".concat(pe),darkGrey:"".concat("#A1A1A1"),mediumGrey:"".concat(fe),lightGrey:"".concat(he),boxShadow:"".concat(ge),smokeGrey:"".concat(me),textColor:"".concat(ve)},primary:{main:"".concat(le)},secondary:{main:"".concat(de)},error:{main:"".concat("#B00020")}},typography:{fontSize:15,fontFamily:'"-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Open Sans", "Helvetica Neue", "sans-serif";',body1:{fontSize:be,color:"textSecondary",fontWeight:400},body2:{fontSize:be,fontWeight:400,"& pre":{fontSize:"0.813rem"}},h1:{fontSize:"1.3392857142857142rem",lineHeight:"1.6"},h2:{fontWeight:"300",fontSize:"1.25rem"},h3:{fontWeight:"300",fontSize:"1.1rem"},h6:{fontWeight:"300"}},components:(ie={MuiCard:{defaultProps:{elevation:2}},MuiAutocomplete:{styleOverrides:{root:D()({transition:"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 2ms"},"transition","opacity 700ms cubic-bezier(0.4, 0, 0.2, 1) 2ms"),elevation2:{boxShadow:"".concat(ge)}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"unset",transition:"none!important"},elevation2:{boxShadow:"".concat(ge)}}},MuiTypography:{styleOverrides:{subtitle2:{fontWeight:"400"}}},MuiButton:{styleOverrides:{root:{},containedPrimary:{margin:"0 auto 12px auto",display:"block"},containedSecondary:{margin:"0 auto 12px auto",display:"block",backgroundColor:"".concat(he,"!important"),boxShadow:"0px 3px 1px -3px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12)","&:hover":{backgroundColor:"".concat(me,"!important")}},outlinedInherit:{backgroundColor:"".concat(he,"!important"),borderColor:"transparent!important"}}},MuiChip:{styleOverrides:{outlinedPrimary:{"&:hover":{backgroundColor:"".concat(he,"!important")},"&:focus":{backgroundColor:"".concat(he,"!important")}}}},MuiLinearProgress:{styleOverrides:{root:{height:"5px"},query:{transform:"rotate(0deg)"},colorPrimary:{backgroundColor:"".concat(fe)},barColorPrimary:{backgroundColor:"".concat(he)}}},MuiIconButton:{styleOverrides:{root:{padding:"12px"}}},MuiAlert:{styleOverrides:{icon:{width:"1em",height:"1em"}}},MuiFab:{styleOverrides:{root:{borderRadius:"50%!important"}}},MuiTextField:{styleOverrides:{root:{backgroundColor:"".concat(pe),borderRadius:"4px"}}}},D()(ie,"MuiAutocomplete",{styleOverrides:{option:{minHeight:"30px!important"},popper:{color:"".concat(ve)}}}),D()(ie,"MuiInputBase",{styleOverrides:{root:{fontSize:De?"1rem":be,lineHeight:"1.1876em"}}}),ie),breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536}}},xe="#0165A7",we="#D2ECFD",Ce="#FFFFFC",Oe="#444444d9",Ee="#757575",Se="#ECECEC",je="0px 3px 1px -2px rgba(0,0,0,0.2), 0px 1px 1px 1px rgba(0,0,0,0.14), 0px 1px 5px 1px rgba(0,0,0,0.12)",Fe="#7575754f",Ae="rgba(0, 0, 0, 0.87)",ke=Object($.p)(),Te="0.938rem",Pe={palette:{mode:"light",common:{blue:"".concat(xe),red:"".concat(we),white:"".concat(Ce),darkGrey:"".concat(Oe),mediumGrey:"".concat(Ee),lightGrey:"".concat(Se),boxShadow:"".concat(je),smokeGrey:"".concat(Fe),textColor:"".concat(Ae)},primary:{main:"".concat(xe)},secondary:{main:"".concat(we)},info:{main:"".concat(Ce)},error:{main:"".concat("#B00020")}},typography:{fontSize:15,fontFamily:'"-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Open Sans", "Helvetica Neue", "sans-serif";',body1:{fontSize:Te,color:"textSecondary",fontWeight:400},body2:{fontSize:Te,fontWeight:400,"& pre":{fontSize:"0.813rem"}},h1:{fontSize:"1.3392857142857142rem",lineHeight:"1.6",fontWeight:"400"},h2:{fontWeight:"300",fontSize:"1.25rem"},h3:{fontWeight:"400",fontSize:"1.1rem"},h6:{fontWeight:"300"}},components:(ae={MuiCard:{defaultProps:{elevation:2}},MuiAutocomplete:{styleOverrides:{root:D()({transition:"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 2ms"},"transition","opacity 700ms cubic-bezier(0.4, 0, 0.2, 1) 2ms"),elevation2:{boxShadow:"".concat(je)}}},MuiPaper:{styleOverrides:{root:{transition:"none!important"},elevation2:{boxShadow:"".concat(je)}}},MuiTypography:{styleOverrides:{subtitle2:{fontWeight:"400"}}},MuiSnackbarContent:{styleOverrides:{root:{color:Oe,backgroundColor:"#fff"}}},MuiButton:{styleOverrides:{root:{textTransform:"none"},containedPrimary:{margin:"0 auto 12px auto",display:"block"},containedSecondary:{margin:"0 auto 12px auto",display:"block",backgroundColor:"".concat(Se,"!important"),boxShadow:"0px 3px 1px -3px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12)","&:hover":{backgroundColor:"".concat(Fe,"!important")}},outlinedInherit:{backgroundColor:"".concat(Se,"!important"),borderColor:"transparent!important"}}},MuiChip:{styleOverrides:{outlinedPrimary:{"&:hover":{backgroundColor:"".concat(Se,"!important")},"&:focus":{backgroundColor:"".concat(Se,"!important")}}}},MuiLinearProgress:{styleOverrides:{root:{height:"5px"},query:{transform:"rotate(0deg)"},colorPrimary:{backgroundColor:"".concat(Ee)},barColorPrimary:{backgroundColor:"".concat(Se)}}},MuiIconButton:{styleOverrides:{root:{padding:"12px"}}},MuiAlert:{styleOverrides:{icon:{width:"1em",height:"1em"}}},MuiFab:{styleOverrides:{root:{borderRadius:"50%!important"}}},MuiTextField:{styleOverrides:{root:{backgroundColor:"".concat(Ce),borderRadius:"4px"}}}},D()(ae,"MuiAutocomplete",{styleOverrides:{option:{minHeight:"30px!important"},popper:{color:"".concat(Ae)}}}),D()(ae,"MuiInputBase",{styleOverrides:{root:{fontSize:ke?"1rem":Te,lineHeight:"1.1876em"}}}),ae),breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536}}},Me=(n(338),n(130)),Ie=n(238),Be=n.n(Ie),Re=n(3);function Le(e,t,n){switch(e.type){case Re.c:case Re.b:case Re.a:return e.return=e.return||e.value;case Re.h:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===Re.a&&(e.children=e.value)}))}var r=Object(Re.B)(Array.prototype.concat(e.children),Le);return Object(Re.E)(r)?e.return=e.value+"{"+r+"}":""}function Ne(e,t,n,r){if(e.type===Re.d||e.type===Re.i||e.type===Re.h&&(!e.parent||e.parent.type===Re.e||e.parent.type===Re.h)){var o=Be.a.transform(Le(e));e.children=o?Object(Re.n)(o)[0].children:[],e.return=""}}Object.defineProperty(Ne,"name",{value:"stylisRTLPlugin"});var _e=Ne,He=n(20),$e=n(50);function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t-1){var a=(r.launcherProps||{}).checkActiveConversation;if(s){var c={errorName:z.H,errorMessage:z.H};Object(q.a)(c),r.pOpenCmdReject&&(r.pOpenCmdReject(),r.pOpenCmdReject=""),e.reject("Messenger is already opened.")}else a&&a().then((function(){u&&r.inviteAccepted(),i&&n.command("SubMessenger.expandLauncher"),r.setState((function(e){return{expandLauncher:!0,sMessengerOpen:"true",messengerClosed:!1,config:qe(qe({},e.config),{},{apps:Object($.q)(!0,e.config.apps,D()({},t,qe(qe({},e.config.apps[t]),o)))})}})),d&&"ondemand"===d.toLowerCase()&&!l&&n.command("Launcher.show"),n.command(r.storage+".set",{name:r.messengerStorage+r.subOpenStorage,value:"true"}),r.pOpenCmdResolve&&(r.pOpenCmdResolve(),r.pOpenCmdResolve=""),e.resolve()}))}else{var p={errorName:z.u,errorMessage:z.u};Object(q.a)(p),r.pOpenCmdReject&&(r.pOpenCmdReject(),r.pOpenCmdReject=""),e.reject("Invalid open command. Should specify supported plugin name.")}}else{var h={errorName:z.t,errorMessage:z.t};Object(q.a)(h),r.pOpenCmdReject&&(r.pOpenCmdReject(),r.pOpenCmdReject=""),e.reject("Invalid open command. Should specify plugin name.")}}),(function(){var t={errorName:z.Q,errorMessage:z.Q};Object(q.a)(t),r.pOpenCmdReject&&(r.pOpenCmdReject(),r.pOpenCmdReject=""),e.reject("User is not authenticated")}))})),D()(l()(r),"configure",(function(e){r.configureStyles(e),e&&(e.direction&&"rtl"===e.direction?r.selectedCache=r.emotionCache.RTL:r.selectedCache=r.emotionCache.LTR),e&&Object.keys(e).length&&r.setState((function(t){var n;return{config:qe(qe(qe({},t.config),e),{},{styles:qe(qe(qe({},t.config.styles),e.styles),{},{companyLogoSmall:qe(qe({},t.config.styles.companyLogoSmall),e.styles&&e.styles.companyLogoSmall)}),theme:qe(qe(qe({},t.config.theme),e.theme),{},{direction:e&&e.direction?e.direction:"ltr",palette:qe(qe(qe({},We.palette),e.theme&&e.theme.palette),{},{primary:qe(qe({},We.palette.primary),e.theme&&e.theme.palette&&e.theme.palette.primary)})}),launcherButton:qe(qe(qe({},t.config.launcherButton),e.launcherButton),{},{visibility:e.launcherButton&&e.launcherButton.visibility&&e.launcherButton.visibility.toLowerCase()||t.config.launcherButton.visibility,icon:qe(qe({},t.config.launcherButton.icon),e.launcherButton&&e.launcherButton.icon)}),position:qe(qe(qe({},t.config.position),e.position),{},{alignment:e.position&&e.position.alignment&&e.position.alignment.toLowerCase()||t.config.position.alignment}),apps:qe(qe(qe({},t.config.apps),e.apps),{},{conversations:qe(qe(qe({},t.config.apps.conversations),e.apps.conversations),{},{markdown:{enabled:null!==(n=e.apps.conversations.markdown.enabled)&&void 0!==n?n:t.config.apps.conversations.markdown.enabled}})})}),store:qe({},e.store),messengerClosed:t.messengerClosed}}))}));var i=e.oConfig,s=e.oMessenger,u=e.iframeOrigin,c=i.styles,d=i.launcherButton,p={visibility:"on",location:"right"},f=i.deploymentId;(r.emotionCache={LTR:Object($e.a)({key:"cx-messenger",prepend:!0}),RTL:Object($e.a)({key:"cx-messenger-rtl",stylisPlugins:[_e],prepend:!0})},r.selectedCache=r.emotionCache.LTR,r.iHeaderHeight="",r.journeyContext={},r.oToasterContent={},r.sRejectedSessionId=[],r.expandedArticle=!1,r.bPublishedReady=!1,r.bLauncherReady=!1,r.inviteAccepted=function(){},r.sConversationClassName=Object($.j)(i),r.sHomeClassName=Object($.k)(i),r.pOpenCmdResolve="",r.pOpenCmdReject="",r.launcherProps="",r.oCobrowseEvents={active:V.h,accepted:V.g,rejected:V.j,expired:V.i},r.storage=Object($.l)(i),r.messengerStorage=f?f+":gcmc":"_gcmc",r.subOpenStorage="opn",c&&c.modeType&&"auto"===c.modeType)&&(window.matchMedia("(prefers-color-scheme: dark)").matches&&(We=ye));if(d){var h=d.visibility,g=d.location;"string"==typeof h&&(p.visibility=h.toLowerCase()),g&&"string"==typeof g&&(p.location=g.toLowerCase())}return Ge?Qe.mobileMode():Qe.desktopMode(),r.toggleLauncher=function(t,n){return new Promise((function(o,i){var a=n&&n.type?n.type:null;r.checkAuthentication().then((function(){var n=t||{},i=n.journeyContext,u=n.launcherRef,c=n.route,l=(r.props||{}).iframeOrigin;i&&(r.journeyContext=i),e.oMessenger.command(r.storage+".set",{name:r.messengerStorage+r.subOpenStorage,value:r.state.expandLauncher?"false":"true"}),r.state.expandLauncher?Qe.launcherMinimized():Qe.launcherOpened(),r.setState((function(e){return{expandLauncher:!e.expandLauncher,sMessengerOpen:e.expandLauncher?"false":"true",messengerClosed:!e.messengerClosed,bInvite:!e.bInvite&&e.bInvite,route:c||""}})),"keypress"==a&&u.current&&e.oMessenger.command(r.storage+".get",{name:r.messengerStorage+r.subOpenStorage}).then((function(e){e&&"string"==typeof e&&"false"===e&&r.state.bFabVisible&&u.current.focus()})),r.state.expandLauncher?s.command("Messenger.open"):(l||s.command("Messenger.close"),setTimeout((function(){s.command("MessengerHelper.setDimension",{conversations:{height:0,width:0,removeClass:[r.sConversationClassName,r.sHomeClassName]}})}),50)),o()})).catch((function(e){i(e)}))}))},r.checkAuthentication=function(){return(r.state.config.auth||{}).enabled?new Promise((function(e,t){s.command(r.storage+".get",{names:[V.c]}).then((function(n){var r=n[V.c];r&&"undefined"!==r?e():t()})).catch((function(){t()}))})):Promise.resolve()},r.logoutMessenger=function(){e.oMessenger.command(r.storage+".set",{name:r.messengerStorage+r.subOpenStorage,value:"false"}),Qe.launcherMinimized(),r.setState((function(){return{messengerClosed:!0,expandLauncher:!1,sMessengerOpen:"false",bFabVisible:!1}}))},r.handleEngageClick=function(t){var n=(r.launcherProps||{}).checkActiveConversation,o=(r.state||{}).config||{},i=o.home,a=o.headlessMode,s=o.apps,u=(o.cobrowse,(a||{}).enabled),c=((s||{}).conversations||{}).enabled;n&&!u&&c&&n().then((function(){i?r.toggleLauncher(qe({route:"conversations.conversations"},t)):r.toggleLauncher(t||{}),e.oMessenger.command("SubMessenger.expandLauncher")}))},r.closeMessenger=function(e){r.setState((function(){return{messengerClosed:e,expandLauncher:!e,sMessengerOpen:e?"false":"true"}})),e&&s.command("SubMessenger.collapseLauncher").then((function(){s.command(r.storage+".set",{name:r.messengerStorage+r.subOpenStorage,value:"false"})})),setTimeout((function(){s.command("MessengerHelper.setDimension",{conversations:{height:0,width:0,removeClass:[r.sConversationClassName,r.sHomeClassName]}})}),50)},r.setInviteState=function(e){r.setState((function(){return{bInvite:e}}))},r.setToasterState=function(e){r.setState((function(){return{bToaster:e,iToasterHeight:e?r.state.iToasterHeight:0}}))},r.setToasterHeight=function(e){r.setState((function(){return{iToasterHeight:e}}))},r.storeConversationProps=function(e){var t=(r.launcherProps||{}).checkActiveConversation,n=e||{},o=n.autoClosed,i=n.status,a=((((r.state||{}).config||{}).apps||{}).conversations||{}).enabled;t&&a&&t().then((function(e){var t=(e||{}).previousSessionInActive;r.state.previousSessionInActive!==t&&r.state.autoClosed!==o&&r.state.prevConversationStatus!==i&&r.setState({previousSessionInActive:t,autoClosed:o,prevConversationStatus:i})}))},r.setToasterContent=function(e){r.oToasterContent=e},r.setCobrowseRejectedSessionId=function(e){r.sRejectedSessionId.push(e)},r.getCobrowseRejectedSessionId=function(){return r.sRejectedSessionId},r.setCobrowseSessionStatus=function(e){r.setState((function(){return{bCobrowseSessionStatus:e}}))},r.setFabVisibility=function(e){r.setState((function(){return{bFabVisible:e}}))},r.setHomeScreenHeight=function(e){var t=e||{},n=t.homeScreenHeight,o=t.bAddTransition;r.state.iHomeScreenHeight===n&&r.state.bAddTransition===o||r.setState((function(){return{iHomeScreenHeight:n,bAddTransition:o}}))},r.markdownMessages=[],r.setMarkdownMessages=function(e){r.markdownMessages=e},r.aFocusMngtMsgIds=[],r.setFocusMngtMsgIds=function(e){r.aFocusMngtMsgIds=e},r.getCobrowseOfferState=function(t){var n=new Promise((function(n,o){var i=t||{},a=i.sessionId,s=i.sessionJoinToken;s?e.oMessenger.command("CobrowseService.offerState",{sessionId:a||"",joinCode:s}).then((function(t){if(t){var o=(t||{}).offerState;o&&e.oMessenger.publish(r.oCobrowseEvents[o],t),n(t)}}),(function(e){Object(q.a)(e),o(e)})).catch((function(e){Object(q.a)(e),o(e)})):o("SessionJoinToken are required")}));return n},r.acceptCobrowseSession=function(t){return new Promise((function(n,r){var o=t||{},i=o.sessionId,a=o.sessionJoinToken;a?e.oMessenger.command("CobrowseService.acceptSession",{sessionId:i||"",joinToken:a}).then((function(e){n(e)}),(function(e){Object(q.a)(e),r(e)})):r("Session Join code is mandatory to connect cobrowse session")}))},r.declineCobrowseSession=function(t){return new Promise((function(n,r){var o=t||{},i=o.sessionId,a=o.sessionJoinToken;i&&a?(e.oMessenger.command("CobrowseService.declineSession",{sessionId:i,joinToken:a}),n()):r()}))},r.setJourneyContext=function(e){r.journeyContext=e},r.setArticleExpanded=function(e){r.expandedArticle=e},r.onHeaderUpdated=function(e){r.iHeaderHeight=e.height},r.oPlugins={Messenger:e.oMessenger,Toaster:e.oToaster},r.setPlugin=function(e,t){r.oPlugins[e]=t},r.oContextStore={},r.setContextStore=function(e){r.oContextStore=e},r.setHeaderDeleteButtonClick=function(e){return"function"==typeof e&&(r.setState((function(){return{onHeaderDeleteButtonClick:e}})),!0)},r.currentAlertDialog={},r.showAlertDialog=function(e){if(!e||e==={})return!1;var t=function(){};r.state.bShowAlertDialog=!0,r.setState((function(){return{bShowAlertDialog:!0,sAlertDialogMessage:e.message||"",sAlertDialogButtonPrimary:e.primary||"",sAlertDialogButtonSecondary:e.secondary||"",sAlertDialogType:e.alertType||"",onAlertDialogEntering:e.onEntering||t,onAlertDialogEntered:e.onEntered||t,onAlertDialogExiting:e.onExiting||t,onAlertDialogExited:e.onExited||t,onAlertDialogButtonPrimary:e.onPrimary||t,onAlertDialogButtonSecondary:e.onSecondary||t,sAlertDialogButtonPrimaryVariant:e.primaryVariant||"contained",sAlertDialogButtonPrimaryColor:e.primaryColor||"primary"}})),r.currentAlertDialog=e,r.disableFocusControls()},r.closeAlertDialog=function(){if(!0===r.state.bShowAlertDialog){r.state.bShowAlertDialog=!1;var e=function(){};r.setState((function(){return{bShowAlertDialog:!1,sAlertDialogStatus:"",onAlertDialogEntering:e,onAlertDialogEntered:e,onAlertDialogExiting:e,onAlertDialogExited:e,onAlertDialogButtonPrimary:e,onAlertDialogButtonSecondary:e}})),r.state.aAlertDialogBuffer.length>0?r.showAlertDialog(r.getBufferedAlertDialog()):r.currentAlertDialog={},r.enableFocusControls()}},r.setAlertDialogStatus=function(e){return!!r.state.bShowAlertDialog&&(e||(e=""),r.setState((function(){return{sAlertDialogStatus:e}})),!0)},r.bufferAlertDialog=function(e){var t=r.state.aAlertDialogBuffer.slice(),n=t[t.length-1]||{};return!r.compareAlertObjects(r.currentAlertDialog,e)&&!r.compareAlertObjects(n,e)&&(t.push(e),r.setState((function(){return{aAlertDialogBuffer:t}})),!0)},r.getBufferedAlertDialog=function(){var e=r.state.aAlertDialogBuffer.slice();if(e.length>0){var t=e.shift();return t.buffered=!0,r.setState((function(){return{aAlertDialogBuffer:e}})),t}return!1},r.compareAlertObjects=function(e,t){if(!e||!t)return!1;var n=Object.assign({},e),r=Object.assign({},t),o=Object.keys(n).length>=Object.keys(r).length?n:r;for(var i in o)if("function"==typeof n[i]&&(n[i]=n[i].toString()),"function"==typeof r[i]&&(r[i]=r[i].toString()),n[i]!=r[i])return!1;return!0},r.enableFocusControls=function(){r.setState((function(){return{oDisableInputs:{bHeaderMinimizeIcon:0,bHeaderDeleteIcon:0,bHeaderBackIcon:0,bTextField:!1,bAttachFileButton:!1,bSendIcon:!1,bMessageFocus:!1}}}))},r.disableFocusControls=function(){r.setState((function(){return{oDisableInputs:{bHeaderMinimizeIcon:-1,bHeaderDeleteIcon:-1,bHeaderBackIcon:-1,bTextField:!0,bAttachFileButton:!0,bSendIcon:!0,bMessageFocus:!0}}}))},r.configureStyles(i),i&&i.direction&&(r.selectedCache="rtl"!==i.direction?r.emotionCache.LTR:r.emotionCache.RTL),r.state={config:qe(qe({},i),{},{theme:qe(qe(qe({},We),i.theme),{},{direction:i&&i.direction?i.direction:"ltr",main:i.theme&&i.theme.main||"primary",palette:qe(qe(qe({},We.palette),i.theme&&i.theme.palette),{},{primary:qe(qe({},We.palette.primary),i.theme&&i.theme.palette&&i.theme.palette.primary)})}),styles:qe(qe({},i.styles),{},{companyLogoSmall:qe({},i.styles&&i.styles.companyLogoSmall)}),launcherButton:qe(qe(qe({},p),i.launcherButton),{},{visibility:i.launcherButton&&i.launcherButton.visibility&&i.launcherButton.visibility.toLowerCase()||"on"}),position:qe(qe({},i.position),{},{alignment:i.position&&i.position.alignment&&i.position.alignment.toLowerCase()||"auto"}),apps:qe(qe({},i.apps),{},{conversations:qe(qe({},i.apps.conversations),{},{markdown:{enabled:i.apps.conversations.markdown.enabled||!1}})})}),expandLauncher:!1,sMessengerOpen:"",route:"",bInvite:!1,bToaster:!1,iToasterHeight:0,oDisableInputs:{bHeaderMinimizeIcon:0,bTextField:!1,bAttachFileButton:!1,bSendIcon:!1,bMessageFocus:!1},bFabVisible:"on"===p.visibility,iHomeScreenHeight:0,bAddTransition:!1,view:"",toggleLauncher:r.toggleLauncher,logoutMessenger:r.logoutMessenger,messengerClosed:!0,closeMessenger:r.closeMessenger,getCobrowseOfferState:r.getCobrowseOfferState,acceptCobrowseSession:r.acceptCobrowseSession,declineCobrowseSession:r.declineCobrowseSession,bCobrowseSessionStatus:!1,store:i.store||{},bShowAlertDialog:!1,sAlertDialogStatus:"",aAlertDialogBuffer:[],sAlertDialogMessage:"",sAlertDialogButtonPrimary:"",sAlertDialogButtonPrimaryVariant:"",sAlertDialogButtonPrimaryColor:"",sAlertDialogButtonSecondary:"",sAlertDialogType:"",onAlertDialogEntering:function(){},onAlertDialogEntered:function(){},onAlertDialogExiting:function(){},onAlertDialogExited:function(){},onAlertDialogButtonPrimary:function(){},onAlertDialogButtonSecondary:function(){},previousSessionInActive:!0,autoClosed:!1,prevConversationStatus:""},u&&"MessengerFrame"===u&&(s.registerCommand("showAlertDialog",(function(e){r.showAlertDialog({message:e.data.message,primary:e.data.primary,secondary:e.data.secondary,onEntering:function(){},onEntered:function(){},onExiting:function(){},onExited:function(){},onPrimary:function(){},onSecondary:function(){}}),e.resolve()})),s.registerCommand("closeAlertDialog",(function(e){r.closeAlertDialog(),e.resolve()})),s.registerCommand("setAlertDialogStatus",(function(e){r.setAlertDialogStatus(e.data.status),e.resolve()})),r.registerOpenCommand=function(e){return new Promise((function(t,n){var o=r.state||{},a=o.messengerClosed,u=(o.sMessengerOpen,i||{}),c=u.headlessMode,l=u.apps,d=(u.home,u.cobrowse),p=(c||{}).enabled,f=l||{},h=f.conversations,g=(f.knowledge||{}).enabled,m=(h||{}).enabled,v=d||{},D=v.enabled,b=v.channels,y=!!(D&&b&&b.length)&&b.includes("voice"),x=!!g||!!m||!!y;r.pOpenCmdResolve=t,r.pOpenCmdReject=n,p?e.reject("Messenger user interface must be enabled in your configuration."):x?r.bLauncherReady?r.openCommand(e):s.subscribe("Launcher.ready",(function(){var t=setTimeout((function(){r.bLauncherReady=!0,a&&r.openCommand(e),clearTimeout(t)}),200)})):e.reject("Atleast one app like conversation, knowledge, cobrowseVoice must be enabled in your configuration")}))},s.registerCommand("openConversation",(function(e){var t=r.launcherProps.openConversation,n=r.state,o=n.sMessengerOpen,i=n.config||{},a=i.headlessMode,u=((i.apps||{}).conversations||{}).enabled,c=(a||{}).enabled,l=(r.props||{}).iframeOrigin;!c&&u?t&&"function"==typeof t?("true"===o?(r.setState({route:""}),t({route:"conversations.conversations"}),l&&s.command("SubMessenger.expandLauncher")):r.verifyStorageAndRemove().then((function(){r.toggleLauncher({route:"conversations.conversations"}),l&&s.command("SubMessenger.expandLauncher")})),e.resolve()):(r.setState({route:""}),e.reject()):u?e.reject("Messenger user interface must be enabled in your configuration."):e.reject("Conversation app must be enabled in your configuration.")})),s.registerCommand("openSearch",(function(e){var t=r.state,n=t.sMessengerOpen,o=t.config||{},i=o.apps,a=o.headlessMode,u=((i||{}).knowledge||{}).enabled,c=r.launcherProps.openSearch,l=(a||{}).enabled,d=(r.props||{}).iframeOrigin;l?e.reject("Messenger user interface must be enabled in your configuration."):u&&c?("true"===n?(r.setState({route:""}),c({route:"knowledge.search"}),d&&s.command("SubMessenger.expandLauncher")):r.verifyStorageAndRemove().then((function(){r.toggleLauncher({route:"knowledge.search"}),d&&s.command("SubMessenger.expandLauncher")})),e.resolve()):(r.setState({route:""}),e.reject("Knowledge must be enabled in your configuration."))})),s.registerCommand("close",(function(e){var t=r.state,n=t.expandLauncher,o=(t.sMessengerOpen,((t.config||{}).headlessMode||{}).enabled),i=(r.props||{}).iframeOrigin;if(o)e.reject("Messenger user interface must be enabled in your configuration.");else if(n)r.setState((function(){return{expandLauncher:!1,sMessengerOpen:"false",messengerClosed:!0}})),i&&s.command("SubMessenger.collapseLauncher"),setTimeout((function(){s.command("MessengerHelper.setDimension",{conversations:{height:0,width:0,removeClass:[r.sConversationClassName,r.sHomeClassName]}})}),50),s.command(r.storage+".set",{name:r.messengerStorage+r.subOpenStorage,value:"false"}),e.resolve();else{var a={errorName:z.G,errorMessage:z.G};Object(q.a)(a),e.reject("Messenger is already closed.")}})),s.registerCommand("openCobrowse",(function(e){var t=r.state,n=t.sMessengerOpen,o=t.config,i=((r.oContextStore||{}).messengerStore||{}).cobrowseConnectStatus,a=o||{},u=a.cobrowse,c=a.headlessMode,l=u||{},d=l.enabled,p=l.channels,f=!!(d&&p&&p.length)&&p.includes("voice"),h=r.launcherProps,g=h.openCobrowseConnect,m=h.openCobrowseSharing,v=(c||{}).enabled,D=(r.props||{}).iframeOrigin;f?v?e.reject("Messenger user interface must be enabled in your configuration."):("true"===n?(r.setState({route:""}),i&&"sharing"==i?m({route:"cobrowse.sharing"}):g({route:"cobrowse.connect"}),D&&s.command("SubMessenger.expandLauncher")):r.verifyStorageAndRemove().then((function(){r.verifyCobrowseVoiceSessionAndConnect(),D&&s.command("SubMessenger.expandLauncher")})),e.resolve()):e.reject("Co-browse voice must be enabled in your configuration.")}))),r}return u()(n,[{key:"configureStyles",value:function(e){if(e&&e.styles){var t=e.styles,n=t.primaryColor,r=t.secondaryColor,o=t.modeType,i=t.fontSize,a=t.fontFamily;t.companyLogoSmall;n&&"string"==typeof n&&(We.palette.primary.main=n),r&&"string"==typeof r&&(We.palette.secondary.main=r),o&&"string"==typeof o&&(We.palette.mode=o.toLowerCase()),i&&"string"==typeof i&&(We.typography.fontSize=Number(i.split("px")[0])),i&&"number"==typeof i&&(We.typography.fontSize=i),a&&"string"==typeof a&&(We.typography.fontFamily=a)}}},{key:"componentDidMount",value:function(){var e=this,t=(window._genesys?window._genesys.messenger:{}).onReady,n=this.props.oMessenger;t&&t(window.parent.Genesys),this.bPublishedReady||(n.ready(),this.bPublishedReady=!0),this.inviteAccepted=function(){"function"==typeof e.fInviteAccepted&&e.fInviteAccepted()}}},{key:"render",value:function(){var e=this,t=(this.state.config||{}).fullScreen,n=this.props.iframeOrigin,r=this.state||{},o=r.expandLauncher,i=(r.bInvite,r.messengerClosed);return Ye=Object($.p)()?"mxg-mobile-"+Ke.toLowerCase()+"-"+Je.toLowerCase():"mxg-desktop-"+Ke.toLowerCase()+"-"+Je.toLowerCase(),y.a.createElement(O.a,{injectFirst:!0},y.a.createElement(C.a,{theme:Object(E.b)(this.state.config.theme)},y.a.createElement(He.a,{value:this.selectedCache},y.a.createElement(j.a.Provider,{value:qe(qe({},this.state),{},{oPlugins:this.oPlugins,setPlugin:this.setPlugin,oContextStore:this.oContextStore,setContextStore:this.setContextStore,bInvite:this.state.bInvite,bToaster:this.state.bToaster,oToasterContent:this.oToasterContent,iToasterHeight:this.state.iToasterHeight,setInviteState:this.setInviteState,setToasterState:this.setToasterState,setToasterHeight:this.setToasterHeight,setToasterContent:this.setToasterContent,inviteAccepted:this.inviteAccepted,bFabVisible:this.state.bFabVisible,setFabVisibility:this.setFabVisibility,markdownMessages:this.markdownMessages,setMarkdownMessages:this.setMarkdownMessages,setFocusMngtMsgIds:this.setFocusMngtMsgIds,aFocusMngtMsgIds:this.aFocusMngtMsgIds,journeyContext:this.journeyContext,setJourneyContext:this.setJourneyContext,setArticleExpanded:this.setArticleExpanded,expandedArticle:this.expandedArticle,oDisableInputs:this.state.oDisableInputs,disableFocusControls:this.disableFocusControls,enableFocusControls:this.enableFocusControls,handleEngageClick:this.handleEngageClick,iHeaderHeight:this.iHeaderHeight,onHeaderUpdated:this.onHeaderUpdated,resetRoute:this.resetRoute,verifyStorageAndRemove:this.verifyStorageAndRemove,iHomeScreenHeight:this.state.iHomeScreenHeight,bAddTransition:this.state.bAddTransition,setHomeScreenHeight:this.setHomeScreenHeight,view:this.state.view,setView:this.setView,setCobrowseRejectedSessionId:this.setCobrowseRejectedSessionId,getCobrowseRejectedSessionId:this.getCobrowseRejectedSessionId,bCobrowseSessionStatus:this.state.bCobrowseSessionStatus,setCobrowseSessionStatus:this.setCobrowseSessionStatus,storeConversationProps:this.storeConversationProps,previousSessionInActive:this.state.previousSessionInActive,autoClosed:this.state.autoClosed,prevConversationStatus:this.state.prevConversationStatus,setHeaderDeleteButtonClick:this.setHeaderDeleteButtonClick,showAlertDialog:this.showAlertDialog,closeAlertDialog:this.closeAlertDialog,setAlertDialogStatus:this.setAlertDialogStatus,aAlertDialogBuffer:this.state.aAlertDialogBuffer,bShowAlertDialog:this.state.bShowAlertDialog,sAlertDialogStatus:this.state.sAlertDialogStatus,sAlertDialogMessage:this.state.sAlertDialogMessage,sAlertDialogButtonPrimary:this.state.sAlertDialogButtonPrimary,sAlertDialogButtonPrimaryVariant:this.state.sAlertDialogButtonPrimaryVariant,sAlertDialogButtonPrimaryColor:this.state.sAlertDialogButtonPrimaryColor,sAlertDialogButtonSecondary:this.state.sAlertDialogButtonSecondary,sAlertDialogType:this.state.sAlertDialogType,onAlertDialogEntering:this.state.onAlertDialogEntering,onAlertDialogEntered:this.state.onAlertDialogEntered,onAlertDialogExiting:this.state.onAlertDialogExiting,onAlertDialogExited:this.state.onAlertDialogExited,onAlertDialogButtonPrimary:this.state.onAlertDialogButtonPrimary,onAlertDialogButtonSecondary:this.state.onAlertDialogButtonSecondary})},n&&"MessengerFrame"===n&&!o&&i&&y.a.createElement(ce.default,{plugin:this.props.oToaster,config:this.state.config}),n&&"MessengerFrame"===n&&y.a.createElement(ue.default,{plugin:this.props.oEngage,config:this.state.config,setInviteAccepted:function(t){return e.fInviteAccepted=t}}),y.a.createElement(se,{color:this.state.config.theme.main,config:this.state.config,iframeOrigin:n||"",getComponentMethods:function(t){return e.launcherProps=t},Toaster:ce.default}),y.a.createElement("div",{tabIndex:-1,id:"full-screen-indicator",className:"".concat(Ye," ").concat(t?"mxg-fullscreen-indicator":"")})))))}}]),n}(y.a.Component);t.a=Xe;Xe.propTypes={oMessenger:w.a.object.isRequired,oEngage:w.a.object,oConfig:w.a.object.isRequired}},244:function(e,t,n){var r=n(208),o=n(337);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},26:function(e,t,n){var r=n(98),o=n(99),i=n(92),a=n(100);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=window.newrelic||{},o=r&&Object.keys(r).length;function i(e){if(o){var t=e||{},n=t.errorName,i={error:t.errorMessage};return r.noticeError(n,i)}}},291:function(e,t,n){var r=n(334)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},292:function(e,t){function n(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,u,"next",e)}function u(e){n(a,o,i,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},3:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return r})),n.d(t,"h",(function(){return s})),n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return i})),n.d(t,"k",(function(){return H})),n.d(t,"l",(function(){return x})),n.d(t,"m",(function(){return S})),n.d(t,"n",(function(){return K})),n.d(t,"o",(function(){return I})),n.d(t,"p",(function(){return $})),n.d(t,"q",(function(){return z})),n.d(t,"r",(function(){return h})),n.d(t,"s",(function(){return m})),n.d(t,"t",(function(){return y})),n.d(t,"u",(function(){return D})),n.d(t,"v",(function(){return te})),n.d(t,"w",(function(){return B})),n.d(t,"x",(function(){return R})),n.d(t,"y",(function(){return k})),n.d(t,"z",(function(){return b})),n.d(t,"A",(function(){return ne})),n.d(t,"B",(function(){return Z})),n.d(t,"C",(function(){return N})),n.d(t,"D",(function(){return ee})),n.d(t,"E",(function(){return C})),n.d(t,"F",(function(){return _}));var r="-ms-",o="-moz-",i="-webkit-",a="comm",s="rule",u="decl",c="@media",l="@import",d="@supports",p="@keyframes",f=Math.abs,h=String.fromCharCode,g=Object.assign;function m(e,t){return 45^x(e,0)?(((t<<2^x(e,0))<<2^x(e,1))<<2^x(e,2))<<2^x(e,3):0}function v(e){return e.trim()}function D(e,t){return(e=t.exec(e))?e[0]:e}function b(e,t,n){return e.replace(t,n)}function y(e,t){return e.indexOf(t)}function x(e,t){return 0|e.charCodeAt(t)}function w(e,t,n){return e.slice(t,n)}function C(e){return e.length}function O(e){return e.length}function E(e,t){return t.push(e),e}function S(e,t){return e.map(t).join("")}var j=1,F=1,A=0,k=0,T=0,P="";function M(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:j,column:F,length:a,return:""}}function I(e,t){return g(M("",null,null,"",null,null,0),e,{length:-e.length},t)}function B(){return T=k2||_(T)>3?"":" "}function V(e,t){for(;--t&&B()&&!(T<48||T>102||T>57&&T<65||T>70&&T<97););return N(e,L()+(t<6&&32==R()&&32==B()))}function U(e){for(;B();)switch(T){case e:return k;case 34:case 39:34!==e&&39!==e&&U(T);break;case 40:41===e&&U(e);break;case 92:B()}return k}function W(e,t){for(;B()&&e+T!==57&&(e+T!==84||47!==R()););return"/*"+N(t,k-1)+"*"+h(47===e?e:B())}function G(e){for(;!_(R());)B();return N(e,k)}function K(e){return $(J("",null,null,null,[""],e=H(e),0,[0],e))}function J(e,t,n,r,o,i,a,s,u){for(var c=0,l=0,d=a,p=0,f=0,g=0,m=1,v=1,D=1,w=0,O="",S=o,A=i,M=r,I=O;v;)switch(g=w,w=B()){case 40:if(108!=g&&58==x(I,d-1)){-1!=y(I+=b(z(w),"&","&\f"),"&\f")&&(D=-1);break}case 34:case 39:case 91:I+=z(w);break;case 9:case 10:case 13:case 32:I+=q(g);break;case 92:I+=V(L()-1,7);continue;case 47:switch(R()){case 42:case 47:E(Q(W(B(),L()),t,n),u);break;default:I+="/"}break;case 123*m:s[c++]=C(I)*D;case 125*m:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+l:f>0&&C(I)-d&&E(f>32?X(I+";",r,n,d-1):X(b(I," ","")+";",r,n,d-2),u);break;case 59:I+=";";default:if(E(M=Y(I,t,n,c,l,o,s,O,S=[],A=[],d),i),123===w)if(0===l)J(I,t,M,M,S,i,d,s,A);else switch(99===p&&110===x(I,3)?100:p){case 100:case 109:case 115:J(e,M,M,r&&E(Y(e,M,M,0,0,o,s,O,o,S=[],d),A),o,A,d,s,r?S:A);break;default:J(I,M,M,M,[""],A,0,s,A)}}c=l=f=0,m=D=1,O=I="",d=a;break;case 58:d=1+C(I),f=g;default:if(m<1)if(123==w)--m;else if(125==w&&0==m++&&125==(T=k>0?x(P,--k):0,F--,10===T&&(F=1,j--),T))continue;switch(I+=h(w),w*m){case 38:D=l>0?1:(I+="\f",-1);break;case 44:s[c++]=(C(I)-1)*D,D=1;break;case 64:45===R()&&(I+=z(B())),p=R(),l=d=C(O=I+=G(L())),w++;break;case 45:45===g&&2==C(I)&&(m=0)}}return i}function Y(e,t,n,r,o,i,a,u,c,l,d){for(var p=o-1,h=0===o?i:[""],g=O(h),m=0,D=0,y=0;m0?h[x]+" "+C:b(C,/&\f/g,h[x])))&&(c[y++]=E);return M(e,t,n,0===o?s:u,c,l,d)}function Q(e,t,n){return M(e,t,n,a,h(T),w(e,2,-2),0)}function X(e,t,n,r){return M(e,t,n,u,w(e,0,r),w(e,r+1,-1),r)}function Z(e,t){for(var n="",r=O(e),o=0;o=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},335:function(e,t,n){var r=n(336);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},336:function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},337:function(e,t,n){(t=n(209)(!1)).push([e.i,'body{overscroll-behavior-y:none;-webkit-text-size-adjust:none;text-size-adjust:none;overflow-x:hidden}#full-screen-indicator{display:none}.cx-messenger-container{position:absolute;top:0px;bottom:6px;right:0;left:0}.cx-messenger{position:absolute;height:100%;right:8px;min-height:195px;bottom:0px;width:96%;box-sizing:border-box;display:flex;flex-direction:column-reverse;transition:all 200ms cubic-bezier(0.4, 0, 0.2, 1) 2ms !important}.cx-messenger-preview{max-height:550px}.cx-messenger-open{display:block}.cx-messenger-close{display:none}.cx-messenger-screen-reader{width:1px;height:1px;overflow:hidden;text-indent:-9999px;border:0}.mxg-transcript a:-moz-focusring{outline-style:solid}.mxg-fullscreen.cx-messenger-container{z-index:99999;height:99.9%;width:99.5%;max-width:100% !important}.mxg-fullscreen .cx-messenger{bottom:0;right:0;left:0px;height:100%;width:100%}.mxg-fullscreen .cx-messenger .mxg-container-card{height:100%}.mxg-fullscreen .cx-messenger .mxg-input-container .Cx-MuiInputBase-formControl{padding:"12px 12px 1px!important"}.mxg-fullscreen-indicator{display:block !important}@media screen and (max-device-width: 600px),screen and (max-device-width: 600px)and (orientation: landscape),screen and (max-device-width: 711px)and (orientation: landscape),screen and (max-device-height: 428px)and (orientation: landscape),screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (-webkit-min-device-pixel-ratio: 6)and (min-resolution: 192dpi),screen and (max-height: 240.5px)and (-ms-high-contrast: none),(-ms-high-contrast: active){.Cx-MuiContainer-root{z-index:999999;position:fixed}.cx-messenger-container{z-index:99999;height:100%;width:100%;max-width:100% !important}.cx-messenger-tablet{height:auto;width:96%}.cx-mxg-tablet-landscape{height:96%}.cx-messenger{bottom:0;right:0;left:0;height:100%;width:100%}.cx-messenger .mxg-container-card{height:100%}.cx-messenger .mxg-input-container .Cx-MuiInputBase-formControl{padding:"12px 12px 1px!important"}#full-screen-indicator{display:block}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (-webkit-min-device-pixel-ratio: 3.5)and (min-resolution: 192dpi){.mxg-desktop-windows-chrome .Cx-MuiContainer-root{z-index:999999;position:fixed}.mxg-desktop-windows-chrome .cx-messenger-container{z-index:99999;height:100%;width:100%;max-width:100% !important}.mxg-desktop-windows-chrome .cx-messenger{bottom:0;right:0;left:0;height:100%;width:100%}.mxg-desktop-windows-chrome .cx-messenger .mxg-container-card{height:100%}.mxg-desktop-windows-chrome .cx-messenger .mxg-input-container .Cx-MuiInputBase-formControl{padding:"12px 12px 1px!important"}#full-screen-indicator.mxg-desktop-windows-chrome{display:block}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (-webkit-min-device-pixel-ratio: 2)and (min-resolution: 192dpi){.mxg-desktop-windows-chrome .mxg-search-header{max-height:75%}.mxg-desktop-windows-chrome .mxg-home-header{max-height:75%}.mxg-desktop-windows-chrome .mxg-header-logo-img{max-height:30px !important;padding:0}.mxg-desktop-windows-chrome #searchInput-popup.Cx-MuiAutocomplete-listbox{max-height:18vh}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (-webkit-min-device-pixel-ratio: 4){.mxg-desktop-mac-chrome .mxg-search-header{max-height:75%}.mxg-desktop-mac-chrome .mxg-home-header{max-height:75%}.mxg-desktop-mac-chrome .mxg-header-logo-img{max-height:30px}.mxg-desktop-mac-chrome #searchInput-popup.Cx-MuiAutocomplete-listbox{max-height:18vh}}@-moz-document url-prefix(){@media screen and (min--moz-device-pixel-ratio: 2)and (orientation: landscape){.mxg-desktop-windows-firefox .mxg-header-logo-img{max-height:30px !important;padding:0}}@media screen and (min--moz-device-pixel-ratio: 3)and (orientation: landscape){.mxg-file-preview{max-height:69%}.mxg-file-preview-footer{max-height:50%}.mxg-search-header{max-height:75%}.mxg-home-header{max-height:75%}#searchInput-popup.Cx-MuiAutocomplete-listbox{max-height:20vh}.mxg-header-logo-img{max-height:30px !important;padding:0}}@media all and (-moz-device-pixel-ratio: 5){.cx-messenger{min-height:176px !important}.mxg-home-header{max-height:85%}.mxg-home-header .mxg-header-logo-img{margin-top:2px !important;padding-top:2px !important}.mxg-home-header .mxg-heading{margin-top:2px !important}.mxg-header-logo-img{max-height:30px !important;padding:0}}}@media screen and (-ms-high-contrast: none)and (max-height: 365px),screen and (-ms-high-contrast: active)and (max-height: 365px){.mxg-file-preview{max-height:65%}.mxg-file-preview-footer{max-height:50%}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (-webkit-min-device-pixel-ratio: 1.75)and (orientation: portrait){.mxg-file-preview{max-height:65%}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (-webkit-min-device-pixel-ratio: 2)and (min-resolution: 192dpi){.mxg-file-preview{max-height:65%}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px){@media not all and (min-resolution: 0.001dpcm){@supports(-webkit-appearance: none){@media screen and (max-height: 390px){.mxg-file-preview{max-height:55%}.mxg-home-header{max-height:85%}.mxg-search-header{max-height:75%}.mxg-search-header .mxg-header-logo-container{padding-top:24px !important}#searchInput-popup.Cx-MuiAutocomplete-listbox{max-height:18vh}.mxg-header-logo-img{max-height:30px !important;padding:0}}}}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (min-resolution: 192dpi)and (-webkit-device-pixel-ratio: 3){.cx-messenger{min-height:176px !important}.mxg-file-preview{max-height:65%}.mxg-file-preview-footer{max-height:50%}.mxg-toaster-body{max-height:36px !important}.mxg-toaster-message{padding:0}.toaster-button-container{padding-top:12px !important}.toaster-button{margin:0 !important}.mxg-desktop-windows-chrome #searchInput-popup.Cx-MuiAutocomplete-listbox{max-height:14vh}.mxg-desktop-windows-chrome .mxg-home-header{max-height:85% !important}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (min-resolution: 192dpi)and (-webkit-device-pixel-ratio: 3.125){.mxg-home-header{max-height:85% !important}.mxg-home-header .mxg-header-logo-img{margin-top:2px !important;padding-top:2px !important}.mxg-home-header .mxg-heading{margin-top:2px !important}#searchInput-popup.Cx-MuiAutocomplete-listbox{max-height:13vh !important}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (min-resolution: 192dpi)and (-webkit-device-pixel-ratio: 5){.cx-messenger{min-height:176px !important}.mxg-home-header{max-height:85% !important}.mxg-home-header .mxg-header-logo-img{margin-top:2px !important;padding-top:2px !important}.mxg-home-header .mxg-heading{margin-top:2px !important}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (min-resolution: 192dpi)and (-webkit-device-pixel-ratio: 3.125){.cx-messenger{min-height:176px !important}.mxg-file-preview{max-height:65%}.mxg-file-preview-footer{max-height:50%}}@media only screen and (min-device-width: 1792px)and (-webkit-min-device-pixel-ratio: 1.75)and (-webkit-max-device-pixel-ratio: 4)and (min-resolution: 192dpi){.mxg-desktop-mac-chrome .mxg-multiple-files{max-height:84% !important}}@media only screen and (min-device-width: 1792px)and (-webkit-min-device-pixel-ratio: 2)and (orientation: portrait){.mxg-desktop-mac-safari .mxg-multiple-files{max-height:84% !important}}',""]),e.exports=t},338:function(e,t,n){var r=n(208),o=n(339);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},339:function(e,t,n){(t=n(209)(!1)).push([e.i,"/* Apply a default color scheme */\n/* @media (prefers-color-scheme: no-preference) {\n html {\n background-color: green;\n }\n} */\n/* Apply a light color scheme */\n/* @media (prefers-color-scheme: light) {\n html {\n background-color: orange;\n }\n} */\n/* Apply a dark color scheme */\n/* @media (prefers-color-scheme: dark) {\n html {\n background-color: yellowgreen;\n }\n} */\n",""]),e.exports=t},34:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(0),o=!!r.useInsertionEffect&&r.useInsertionEffect,i=o||function(e){return e()},a=o||r.useLayoutEffect},340:function(e,t,n){"use strict";var r=n(5),o=n(1);var i=n(62),a=n(0),s=n.n(a),u=n(44);function c(e,t){var n=Object.create(null);return e&&a.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(a.isValidElement)(e)?t(e):e}(e)})),n}function l(e,t,n){return null!=n[t]?n[t]:e.props[t]}function d(e,t,n){var r=c(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var u in t){if(o[u])for(r=0;r=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(49),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},l=Object(i.a)((function(e){return u(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,n){return f={name:t,styles:n,next:f},t}))}return 1===o[e]||u(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return f={name:n.name,styles:n.styles,next:f},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)f={name:r.name,styles:r.styles,next:f},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o0&&c(a.width)/e.offsetWidth||1,u=e.offsetHeight>0&&c(a.height)/e.offsetHeight||1);var l=(o(e)?r(e):window).visualViewport,p=!d()&&n,f=(a.left+(p&&l?l.offsetLeft:0))/s,h=(a.top+(p&&l?l.offsetTop:0))/u,g=a.width/s,m=a.height/u;return{width:g,height:m,top:h,right:f+g,bottom:h+m,left:f,x:f,y:h}}function f(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function g(e){return((o(e)?e.ownerDocument:e.document)||window.document).documentElement}function m(e){return p(g(e)).left+f(e).scrollLeft}function v(e){return r(e).getComputedStyle(e)}function D(e){var t=v(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function b(e,t,n){void 0===n&&(n=!1);var o,a,s=i(t),u=i(t)&&function(e){var t=e.getBoundingClientRect(),n=c(t.width)/e.offsetWidth||1,r=c(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=g(t),d=p(e,u,n),v={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(s||!s&&!n)&&(("body"!==h(t)||D(l))&&(v=(o=t)!==r(o)&&i(o)?{scrollLeft:(a=o).scrollLeft,scrollTop:a.scrollTop}:f(o)),i(t)?((b=p(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):l&&(b.x=m(l))),{x:d.left+v.scrollLeft-b.x,y:d.top+v.scrollTop-b.y,width:d.width,height:d.height}}function y(e){var t=p(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function x(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(a(e)?e.host:null)||g(e)}function w(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:i(e)&&D(e)?e:w(x(e))}function C(e,t){var n;void 0===t&&(t=[]);var o=w(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=r(o),s=i?[a].concat(a.visualViewport||[],D(o)?o:[]):o,u=t.concat(s);return i?u:u.concat(C(x(s)))}function O(e){return["table","td","th"].indexOf(h(e))>=0}function E(e){return i(e)&&"fixed"!==v(e).position?e.offsetParent:null}function S(e){for(var t=r(e),n=E(e);n&&O(n)&&"static"===v(n).position;)n=E(n);return n&&("html"===h(n)||"body"===h(n)&&"static"===v(n).position)?t:n||function(e){var t=/firefox/i.test(l());if(/Trident/i.test(l())&&i(e)&&"fixed"===v(e).position)return null;var n=x(e);for(a(n)&&(n=n.host);i(n)&&["html","body"].indexOf(h(n))<0;){var r=v(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var j="top",F="bottom",A="right",k="left",T="auto",P=[j,F,A,k],M="start",I="end",B="clippingParents",R="viewport",L="popper",N="reference",_=P.reduce((function(e,t){return e.concat([t+"-"+M,t+"-"+I])}),[]),H=[].concat(P,[T]).reduce((function(e,t){return e.concat([t,t+"-"+M,t+"-"+I])}),[]),$=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function z(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var q={placement:"bottom",modifiers:[],strategy:"absolute"};function V(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function Y(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?G(o):null,a=o?K(o):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case j:t={x:s,y:n.y-r.height};break;case F:t={x:s,y:n.y+n.height};break;case A:t={x:n.x+n.width,y:u};break;case k:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=i?J(i):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case M:t[c]=t[c]-(n[l]/2-r[l]/2);break;case I:t[c]=t[c]+(n[l]/2-r[l]/2)}}return t}var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X(e){var t,n=e.popper,o=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,u=e.position,l=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,f=e.isFixed,h=s.x,m=void 0===h?0:h,D=s.y,b=void 0===D?0:D,y="function"==typeof p?p({x:m,y:b}):{x:m,y:b};m=y.x,b=y.y;var x=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),C=k,O=j,E=window;if(d){var T=S(n),P="clientHeight",M="clientWidth";if(T===r(n)&&"static"!==v(T=g(n)).position&&"absolute"===u&&(P="scrollHeight",M="scrollWidth"),i===j||(i===k||i===A)&&a===I)O=F,b-=(f&&T===E&&E.visualViewport?E.visualViewport.height:T[P])-o.height,b*=l?1:-1;if(i===k||(i===j||i===F)&&a===I)C=A,m-=(f&&T===E&&E.visualViewport?E.visualViewport.width:T[M])-o.width,m*=l?1:-1}var B,R=Object.assign({position:u},d&&Q),L=!0===p?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:c(t*r)/r||0,y:c(n*r)/r||0}}({x:m,y:b}):{x:m,y:b};return m=L.x,b=L.y,l?Object.assign({},R,((B={})[O]=w?"0":"",B[C]=x?"0":"",B.transform=(E.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",B)):Object.assign({},R,((t={})[O]=w?b+"px":"",t[C]=x?m+"px":"",t.transform="",t))}var Z={left:"right",right:"left",bottom:"top",top:"bottom"};function ee(e){return e.replace(/left|right|bottom|top/g,(function(e){return Z[e]}))}var te={start:"end",end:"start"};function ne(e){return e.replace(/start|end/g,(function(e){return te[e]}))}function re(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function oe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ie(e,t,n){return t===R?oe(function(e,t){var n=r(e),o=g(e),i=n.visualViewport,a=o.clientWidth,s=o.clientHeight,u=0,c=0;if(i){a=i.width,s=i.height;var l=d();(l||!l&&"fixed"===t)&&(u=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:u+m(e),y:c}}(e,n)):o(t)?function(e,t){var n=p(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):oe(function(e){var t,n=g(e),r=f(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=s(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=s(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+m(e),c=-r.scrollTop;return"rtl"===v(o||n).direction&&(u+=s(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:c}}(g(e)))}function ae(e,t,n,r){var a="clippingParents"===t?function(e){var t=C(x(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&i(e)?S(e):e;return o(n)?t.filter((function(e){return o(e)&&re(e,n)&&"body"!==h(e)})):[]}(e):[].concat(t),c=[].concat(a,[n]),l=c[0],d=c.reduce((function(t,n){var o=ie(e,n,r);return t.top=s(o.top,t.top),t.right=u(o.right,t.right),t.bottom=u(o.bottom,t.bottom),t.left=s(o.left,t.left),t}),ie(e,l,r));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function se(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ue(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ce(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,a=n.strategy,s=void 0===a?e.strategy:a,u=n.boundary,c=void 0===u?B:u,l=n.rootBoundary,d=void 0===l?R:l,f=n.elementContext,h=void 0===f?L:f,m=n.altBoundary,v=void 0!==m&&m,D=n.padding,b=void 0===D?0:D,y=se("number"!=typeof b?b:ue(b,P)),x=h===L?N:L,w=e.rects.popper,C=e.elements[v?x:h],O=ae(o(C)?C:C.contextElement||g(e.elements.popper),c,d,s),E=p(e.elements.reference),S=Y({reference:E,element:w,strategy:"absolute",placement:i}),k=oe(Object.assign({},w,S)),T=h===L?k:E,M={top:O.top-T.top+y.top,bottom:T.bottom-O.bottom+y.bottom,left:O.left-T.left+y.left,right:T.right-O.right+y.right},I=e.modifiersData.offset;if(h===L&&I){var _=I[i];Object.keys(M).forEach((function(e){var t=[A,F].indexOf(e)>=0?1:-1,n=[j,F].indexOf(e)>=0?"y":"x";M[e]+=_[n]*t}))}return M}function le(e,t,n){return s(e,u(t,n))}function de(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function pe(e){return[j,A,F,k].some((function(t){return e[t]>=0}))}var fe=U({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,i=o.scroll,a=void 0===i||i,s=o.resize,u=void 0===s||s,c=r(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,W)})),u&&c.addEventListener("resize",n.update,W),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,W)})),u&&c.removeEventListener("resize",n.update,W)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Y({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,u=void 0===s||s,c={placement:G(t.placement),variation:K(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,X(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,X(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];i(o)&&h(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});i(r)&&h(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=H.reduce((function(e,n){return e[n]=function(e,t,n){var r=G(e),o=[k,j].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[k,A].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],u=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,c=n.padding,l=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,g=n.allowedAutoPlacements,m=t.options.placement,v=G(m),D=u||(v===m||!h?[ee(m)]:function(e){if(G(e)===T)return[];var t=ee(e);return[ne(e),t,ne(t)]}(m)),b=[m].concat(D).reduce((function(e,n){return e.concat(G(n)===T?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?H:u,l=K(r),d=l?s?_:_.filter((function(e){return K(e)===l})):P,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=ce(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[G(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:l,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:g}):n)}),[]),y=t.rects.reference,x=t.rects.popper,w=new Map,C=!0,O=b[0],E=0;E=0,L=R?"width":"height",N=ce(t,{placement:S,boundary:l,rootBoundary:d,altBoundary:p,padding:c}),$=R?B?A:k:B?F:j;y[L]>x[L]&&($=ee($));var z=ee($),q=[];if(i&&q.push(N[I]<=0),s&&q.push(N[$]<=0,N[z]<=0),q.every((function(e){return e}))){O=S,C=!1;break}w.set(S,q)}if(C)for(var V=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},U=h?3:1;U>0;U--){if("break"===V(U))break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0!==a&&a,l=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.padding,h=n.tether,g=void 0===h||h,m=n.tetherOffset,v=void 0===m?0:m,D=ce(t,{boundary:l,rootBoundary:d,padding:f,altBoundary:p}),b=G(t.placement),x=K(t.placement),w=!x,C=J(b),O="x"===C?"y":"x",E=t.modifiersData.popperOffsets,T=t.rects.reference,P=t.rects.popper,I="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,B="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(E){if(i){var N,_="y"===C?j:k,H="y"===C?F:A,$="y"===C?"height":"width",z=E[C],q=z+D[_],V=z-D[H],U=g?-P[$]/2:0,W=x===M?T[$]:P[$],Y=x===M?-P[$]:-T[$],Q=t.elements.arrow,X=g&&Q?y(Q):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Z[_],te=Z[H],ne=le(0,T[$],X[$]),re=w?T[$]/2-U-ne-ee-B.mainAxis:W-ne-ee-B.mainAxis,oe=w?-T[$]/2+U+ne+te+B.mainAxis:Y+ne+te+B.mainAxis,ie=t.elements.arrow&&S(t.elements.arrow),ae=ie?"y"===C?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(N=null==R?void 0:R[C])?N:0,ue=z+oe-se,de=le(g?u(q,z+re-se-ae):q,z,g?s(V,ue):V);E[C]=de,L[C]=de-z}if(c){var pe,fe="x"===C?j:k,he="x"===C?F:A,ge=E[O],me="y"===O?"height":"width",ve=ge+D[fe],De=ge-D[he],be=-1!==[j,k].indexOf(b),ye=null!=(pe=null==R?void 0:R[O])?pe:0,xe=be?ve:ge-T[me]-P[me]-ye+B.altAxis,we=be?ge+T[me]+P[me]-ye-B.altAxis:De,Ce=g&&be?function(e,t,n){var r=le(e,t,n);return r>n?n:r}(xe,ge,we):le(g?xe:ve,ge,g?we:De);E[O]=Ce,L[O]=Ce-ge}t.modifiersData[r]=L}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=G(n.placement),u=J(s),c=[k,A].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return se("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ue(e,P))}(o.padding,n),d=y(i),p="y"===u?j:k,f="y"===u?F:A,h=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],g=a[u]-n.rects.reference[u],m=S(i),v=m?"y"===u?m.clientHeight||0:m.clientWidth||0:0,D=h/2-g/2,b=l[p],x=v-d[c]-l[f],w=v/2-d[c]/2+D,C=le(b,w,x),O=u;n.modifiersData[r]=((t={})[O]=C,t.centerOffset=C-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&re(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ce(t,{elementContext:"reference"}),s=ce(t,{altBoundary:!0}),u=de(a,r),c=de(s,o,i),l=pe(u),d=pe(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]})},43:function(e,t,n){var r=n(47).default,o=n(13);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},44:function(e,t,n){"use strict";var r=n(0),o=n.n(r);t.a=o.a.createContext(null)},46:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),o=n.n(r).a.createContext({expandLauncher:!1,toggleLauncher:function(){},logoutMessenger:function(){},messengerClosed:!1,closeMessenger:function(){},journeyContext:{},setJourneyContext:function(){},oPlugins:{},setPlugin:function(){},oContextStore:{},setContextStore:function(){},bInvite:!1,setInviteState:function(){},inviteAccepted:function(){},handleEngageClick:function(){},bToaster:!1,iToasterHeight:0,oToasterContent:{},setToasterState:function(){},setToasterHeight:function(){},setToasterContent:function(){},bFabVisible:!0,setFabVisibility:function(){},expandedArticle:!1,setArticleExpanded:function(){},markdownMessages:{},setMarkdownMessages:function(){},setFocusMngtMsgIds:function(){},aFocusMngtMsgIds:[],oDisableInputs:{bHeaderMinimizeIcon:0,bTextField:!1,bAttachFileButton:!1,bSendIcon:!1,bMessageFocus:!1},enableFocusControls:function(){},disableFocusControls:function(){},getCobrowseOfferState:function(){},acceptCobrowseSession:function(){},declineCobrowseSession:function(){},setHeaderDeleteButtonClick:function(){},onHeaderDeleteButtonClick:function(){},showAlertDialog:function(){},closeAlertDialog:function(){},setAlertDialogState:function(){},aAlertDialogBuffer:[],bShowAlertDialog:!1,sAlertDialogStatus:"",sAlertDialogMessage:"",sAlertDialogButtonPrimary:"",sAlertDialogButtonSecondary:"",onAlertDialogEntering:function(){},onAlertDialogEntered:function(){},onAlertDialogExiting:function(){},onAlertDialogExited:function(){},onAlertDialogButtonPrimary:function(){},onAlertDialogButtonSecondary:function(){}})},47:function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},48:function(e,t,n){"use strict";t.a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}},49:function(e,t,n){"use strict";t.a=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},5:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},50:function(e,t,n){"use strict";var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t6)switch(Object(o.l)(e,t+1)){case 109:if(45!==Object(o.l)(e,t+4))break;case 102:return Object(o.z)(e,/(.+:)(.+)-([^]+)/,"$1"+o.j+"$2-$3$1"+o.f+(108==Object(o.l)(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Object(o.t)(e,"stretch")?l(Object(o.z)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Object(o.l)(e,t+1))break;case 6444:switch(Object(o.l)(e,Object(o.E)(e)-3-(~Object(o.t)(e,"!important")&&10))){case 107:return Object(o.z)(e,":",":"+o.j)+e;case 101:return Object(o.z)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+o.j+(45===Object(o.l)(e,14)?"inline-":"")+"box$3$1"+o.j+"$2$3$1"+o.g+"$2box$3")+e}break;case 5936:switch(Object(o.l)(e,t+11)){case 114:return o.j+e+o.g+Object(o.z)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return o.j+e+o.g+Object(o.z)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return o.j+e+o.g+Object(o.z)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return o.j+e+o.g+e+e}return e}var d=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case o.b:e.return=l(e.value,e.length);break;case o.d:return Object(o.B)([Object(o.o)(e,{value:Object(o.z)(e.value,"@","@"+o.j)})],r);case o.h:if(e.length)return Object(o.m)(e.props,(function(t){switch(Object(o.u)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Object(o.B)([Object(o.o)(e,{props:[Object(o.z)(t,/:(read-\w+)/,":"+o.f+"$1")]})],r);case"::placeholder":return Object(o.B)([Object(o.o)(e,{props:[Object(o.z)(t,/:(plac\w+)/,":"+o.j+"input-$1")]}),Object(o.o)(e,{props:[Object(o.z)(t,/:(plac\w+)/,":"+o.f+"$1")]}),Object(o.o)(e,{props:[Object(o.z)(t,/:(plac\w+)/,o.g+"input-$1")]})],r)}return""}))}}];t.a=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||d;var a,s,l={},p=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{appTypes:()=>u,commandFactory:()=>we,genesysService:()=>E,initKnowledgeServicePlugin:()=>be,knowledgeServiceCommands:()=>h,knowledgeServiceEvents:()=>g});const r=JSON.parse('{"B":{"u":"KnowledgeService","i":60000}}');var o;!function(e){e.CONFIG_NOT_FOUND_ERROR="config.not.found",e.CONSTRAINT_VALIDATION_ERROR="constraint.validation",e.SESSION_NOT_FOUND_ERROR="session.not.found",e.APP_NOT_FOUND="app.not.found",e.KNOWLEDGE_BASE_NOT_ENABLED="messenger.knowledgeBase.not.enabled",e.KNOWLEDGE_BASE_ID_MISSING="messenger.knowledgeBase.id.not.set",e.NOT_FOUND="not.found",e.BAD_REQUEST="bad.request",e.PLUGIN_NAME_TAKEN="plugin.name.is.already.taken",e.UNKNOWN_ERROR="unknown.error"}(o||(o={}));var i=function(e){return-1!==(null==e?void 0:e.indexOf("The query for the search must contain at least 3 characters."))?"Your search must contain at least 3 characters.":-1!==(null==e?void 0:e.indexOf("not allowed to be empty"))?"Search query was empty. It must contain at least 3 characters.":"Something went wrong. Please try again later."},a=function(e){if(!e.data)return{code:o.UNKNOWN_ERROR,message:"Something went wrong. Please try again later."};var t=e.data,n=t.code,r=void 0===n?o.UNKNOWN_ERROR:n,a=t.message;switch(r){case o.CONFIG_NOT_FOUND_ERROR:return{code:o.CONFIG_NOT_FOUND_ERROR,message:"Config not found."};case o.CONSTRAINT_VALIDATION_ERROR:return{code:o.CONSTRAINT_VALIDATION_ERROR,message:i(a)};case o.SESSION_NOT_FOUND_ERROR:return{code:o.SESSION_NOT_FOUND_ERROR,message:"Invalid session please refresh."};case o.APP_NOT_FOUND:return{code:o.APP_NOT_FOUND,message:"Something went wrong. Please try again later."};case o.KNOWLEDGE_BASE_NOT_ENABLED:return{code:o.KNOWLEDGE_BASE_NOT_ENABLED,message:"Something went wrong. Please try again later."};case o.KNOWLEDGE_BASE_ID_MISSING:return{code:o.KNOWLEDGE_BASE_ID_MISSING,message:"Something went wrong. Please try again later."};case o.NOT_FOUND:return{code:o.NOT_FOUND,message:"Entity not found."};case o.BAD_REQUEST:return{code:o.BAD_REQUEST,message:a};case o.PLUGIN_NAME_TAKEN:return{code:o.PLUGIN_NAME_TAKEN,message:"Can't register plugin, name is already taken"};default:return{code:r,message:"Something went wrong. Please try again later."}}};const s=function(e,t,n){void 0===t&&(t=""),E.log({message:e,data:t,pluginName:n})};var u,c,l,d=r.B.u,p=function(e){return function(t){return"".concat(e,".").concat(t)}}(d);!function(e){e.supportCenter="SupportCenter",e.messenger="MessengerKnowledgeApp"}(u||(u={})),function(e){e.search="search",e.getSuggestions="getSuggestions",e.getCategories="getCategories",e.getArticle="getArticle",e.getArticlesByCategory="getArticlesByCategory",e.getTopViewedArticles="getTopViewedArticles",e.getSession="getSession",e.sendFeedback="sendFeedback"}(c||(c={})),function(e){e.error="error",e.suggestions="suggestions",e.noSuggestionsFound="noSuggestionsFound",e.searchResults="searchResults",e.noSearchResultsFound="noSearchResultsFound",e.article="article",e.noArticleFound="noArticleFound",e.categories="categories",e.noCategoriesFound="noCategoriesFound",e.articlesByCategory="articlesByCategory",e.noArticlesByCategoryFound="noArticlesByCategoryFound",e.topViewedArticles="topViewedArticles",e.noTopViewedArticlesFound="noTopViewedArticlesFound",e.feedbackSent="feedbackSent"}(l||(l={}));var f,h={search:p(c.search),getSuggestions:p(c.getSuggestions),getCategories:p(c.getCategories),getArticle:p(c.getArticle),getArticlesByCategory:p(c.getArticlesByCategory),getTopViewedArticles:p(c.getTopViewedArticles),getSession:p(c.getSession),sendFeedback:p(c.sendFeedback)},g={error:p(l.error),suggestions:p(l.suggestions),noSuggestionsFound:p(l.noSuggestionsFound),searchResults:p(l.searchResults),noSearchResultsFound:p(l.noSearchResultsFound),article:p(l.article),noArticleFound:p(l.noArticleFound),categories:p(l.categories),noCategoriesFound:p(l.noCategoriesFound),articlesByCategory:p(l.articlesByCategory),topViewedArticles:p(l.topViewedArticles),noArticlesByCategoryFound:p(l.noArticlesByCategoryFound),noTopViewedArticlesFound:p(l.noTopViewedArticlesFound),feedbackSent:p(l.feedbackSent)},m=function(){if(!f)throw a({data:{code:o.CONFIG_NOT_FOUND_ERROR}});return s("[service] get config",f,d),f};const v=function(){var e;return"".concat(null===(e=m())||void 0===e?void 0:e.apiEndpoint,"/api")},D=m;var b=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},y=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x.plugin.name;y.genesysService.log({message:e,data:t,pluginName:n})},C=function(){var e=v()(b.a.mark((function e(t){var n,r,o,i;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.deploymentId,r=t.apiEndpoint,o=t.appType,!t.preview){e.next=4;break}return w("Abort plugin initialization in preview mode."),e.abrupt("return");case 4:return e.next=6,y.genesysService.initPlugin(x.plugin.name);case 6:return i=e.sent,e.prev=7,e.next=10,Object(y.initKnowledgeServicePlugin)({deploymentId:n,apiEndpoint:r,appType:o||y.appTypes.messenger});case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(7),w("Failed to load KnowledgeServicePlugin",e.t0);case 15:return e.abrupt("return",i);case 16:case"end":return e.stop()}}),e,null,[[7,12]])})));return function(t){return e.apply(this,arguments)}}(),O=function(e){var t=Object(c.useState)(null),n=u()(t,2),r=n[0],o=n[1],i=Object(c.useRef)(!0);return Object(c.useEffect)((function(){e&&!r&&v()(b.a.mark((function t(){var n;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C(e);case 2:n=t.sent,i.current&&o(n);case 5:case"end":return t.stop()}}),t)})))()}),[e,r]),Object(c.useEffect)((function(){return function(){i.current=!1}}),[]),{pluginState:{plugin:r}}},E={container:{padding:"16px",width:"100%",boxSizing:"border-box",backgroundColor:"transparent!important"},searchBar:{marginTop:"16px",width:"100%"},searchInput:{width:"100%"},searchLabel:{display:"flex",flexDirection:"row"},searchIconStartAdorment:{paddingLeft:"8px",position:"relative"},cardContent:{position:"relative"},inputAdornedStart:{position:"relative",zIndex:1}},S=n(7);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t".concat(n,""):"
    ".concat(n,"
")},P=function(e){return"Text"===e.type?function(e){var t=e.text,n=e.marks,r=e.hyperlink,o=!1;r&&(o=function(e){var t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol||"mailto:"===t.protocol||"tel:"===t.protocol||"ftp:"===t.protocol}(r));var i=n?n.reduce((function(e,t){return"Bold"===t?"".concat(e,""):"Italic"===t?"".concat(e,""):"Underline"===t?"".concat(e,""):e}),t):t;return o?'').concat(i,""):i}(e.text):"Image"===e.type?(n=e.image,'')):"Video"===e.type?(t=e.video,'')):"Paragraph"===e.type?function(e){var t=e.blocks.map((function(e){return P(e)})).join("");return"

".concat(t,"

")}(e.paragraph):"OrderedList"===e.type?T(e.list,!0):"UnorderedList"===e.type?T(e.list,!1):"ListItem"===e.type?function(e){var t=e.blocks.map((function(e){return P(e)})).join("");return"
  • ".concat(t,"
  • ")}(e):null;var t,n},M=n(13),I=n.n(M),B=["errorCb","successCb"];function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t0&&void 0!==u[0]?u[0]:{}).errorCb,i=n.successCb,a=I()(n,B),o(L(L({},N),{},{pending:!0})),t.prev=3,t.next=6,y.genesysService.sendCommand({command:e,data:a,pluginName:x.plugin.name});case 6:return s=t.sent,o(L(L({},N),{},{data:s.result})),i&&i(s),t.abrupt("return",s.result);case 12:t.prev=12,t.t0=t.catch(3),o(L(L({},N),{},{error:t.t0})),r&&r(t.t0);case 16:case"end":return t.stop()}}),t,null,[[3,12]])})));return function(){return t.apply(this,arguments)}}(),clear:function(){o(N)},setData:function(e){o((function(t){return L(L({},t),{},{data:e})}))}}}},H=function(e,t){w(e,t,x.plugin.name)},$={},z=function(){var e=_(y.knowledgeServiceCommands.getArticle),t=e.state,n=e.actions,r=_(y.knowledgeServiceCommands.getArticlesByCategory),o=r.state,i=r.actions,a=function(){var e=v()(b.a.mark((function e(t){var r,o,i;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.articleId,o=t.queryType,i=t.searchId,e.next=3,n.execute({articleId:r,queryType:o,searchId:i});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),s=function(){var e=v()(b.a.mark((function e(t){var n,r,o;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.categoryId,!(r=$["".concat(n)])){e.next=5;break}return i.setData(r),e.abrupt("return");case 5:return i.clear(),e.next=8,i.execute({categoryId:n});case 8:o=e.sent,H("[hooks] getArticlesByCategory result",o),$["".concat(n)]=o;case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return{articleState:{articlePending:t.pending,articleError:t.error,article:t.data,articlesByCategoryPending:o.pending,articlesByCategoryError:o.error,articlesByCategory:o.data},articleActions:{getArticleById:a,getArticlesByCategory:s}}},q=function(e){var t=e.error,n=e.errorCallback;Object(c.useEffect)((function(){if(t&&n)if(t.code&&t.message)if("function"==typeof n){var e,r={type:"error",errorKey:(e=t).code,errorMessage:e.message};H("Error reported ".concat(JSON.stringify(r))),n(r)}else H("Invalid error callback");else H("Invalid error format to report")}),[t,n])},V={padding:"0px 16px",overflow:"auto",wordBreak:"break-word","& img":{width:"100%"},"& iframe":{width:"100%",border:"none"}};function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var W=function(e){var t=e.data,n=e.stopProgress,r=e.showProgress,o=e.openArticle,i=e.config,s=e.onError,d=e.store,p=e.setStore,h=t.documentId,g=z(),m=g.articleState,v=g.articleActions,D=m.article,b=Object(c.useState)(""),y=u()(b,2),x=y[0],w=y[1],C=O(i).pluginState,E=d.queryType,j=void 0===E?"Article":E,F=d.searchId,A=Object(S.styled)("div")((function(){return function(e){for(var t=1;t",n.length).replace("<%searchInputText%>",t):""}({inputText:null==C?void 0:C.inputText,autocompleteResult:F});Object(c.useEffect)((function(){S?f():h()}),[S]),Object(c.useEffect)((function(){null===C.inputText&&null!=d&&d.inputValue?E.setInputText(null==d?void 0:d.inputValue):C.inputText!==(null==d?void 0:d.inputValue)&&p({inputValue:null==C?void 0:C.inputText})}),[C.inputText]),Object(c.useEffect)((function(){T.plugin&&d.inputValue&&(!C.inputText&&d.inputValue&&W({searchQuery:k,queryType:"ManualSearch",isUserAction:!1}),E.setInputText({text:k}))}),[T.plugin]);var Y=null!==(t=null==F?void 0:F.map((function(e){return e.matchedPhrase})))&&void 0!==t?t:[],Q=!!C.autocompleteQuery&&!!Y.length;return l.a.createElement(l.a.Fragment,null,l.a.createElement(J.a,o()({id:"searchInput",value:C.inputText,sx:{"& .MuiAutocomplete-inputRoot":ee.autoCompleteInputRoot,"& .MuiAutocomplete-endAdornment":ee.autoCompleteEndAdorment},componentsProps:{paper:{sx:Ce({},ee.autoCompletePaper)},clearIndicator:{sx:Ce({},ee.autoCompleteClearIndicator)},option:{sx:Ce({},ee.autoCompleteOption)}},loading:j,options:Y,onInputChange:G,onHighlightChange:function(e,t,n){"keyboard"===n&&L(t)},ref:m,renderInput:function(e){return l.a.createElement(re,{params:e,muiTextFieldProps:s,i18n:r,isLoading:j,onInputChange:V,onSearch:U,onClear:G,isAreaDescrptionEnabled:Q,handleSearchBoxNavigation:D,clearIconRef:P,utility:x})},renderOption:function(e,t,n){var r=n.inputValue;return l.a.createElement("li",e,l.a.createElement(le,{displayedText:t,highlightedText:r,isActive:R===t,onClick:function(){W({searchQuery:t,pageSize:1,queryType:"Suggestion"})}}))}},Oe,a,{open:Q})),Q&&l.a.createElement(ve,{region:fe,role:he,content:K,delay:2e3}))};Ee.propTypes={showResults:p.a.func.isRequired,i18n:p.a.object.isRequired,config:p.a.object.isRequired,muiAutoCompleteProps:p.a.object,muiTextFieldProps:p.a.object,store:p.a.object.isRequired,setStore:p.a.func.isRequired,showProgress:p.a.func.isRequired,stopProgress:p.a.func.isRequired,onError:p.a.func.isRequired};var Se=Ee,je=n(12),Fe=n.n(je),Ae={display:"flex",boxSizing:"border-box",padding:"12px",flexGrow:"1",alignItems:"center",justifyContent:"center","& .message":{display:"flex",textAlign:"center",flexDirection:"column",flex:"1 1 0%"}};function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Te=function(e){var t=e.message,n=Object(S.styled)("div")((function(){return function(e){for(var t=1;t",h.length).replace("<%searchQuery%>",g);b(e)}}),[n,g]),Object(c.useEffect)((function(){if(1===(null==h?void 0:h.length)){var e,t={documentId:null===(e=h[0].document)||void 0===e?void 0:e.id};t.documentId&&null!=s&&s.shouldAutoOpenArticle&&(d&&d({shouldAutoOpenArticle:!1}),r({route:"knowledge.article",data:t,showProgress:!0}))}}),[h]);var y=Object(S.styled)("div")((function(){return _e({},Le.searchResults)})),x=function(e){var t=e.searchResult;return t&&o.searchResultSummary?o.searchResultSummary.replace("<%resultsCount%>",t.length):""}({searchQuery:g,searchResult:h});return null!=i&&i.length?l.a.createElement(f.List,{dense:!0},i.map((function(e){return l.a.createElement(He,{key:e.id,document:e,openArticle:r,config:a})}))):!h||h.length<1?g?l.a.createElement(y,null,l.a.createElement(Te,{message:o.searchResultsEmpty})):null:l.a.createElement(y,null,l.a.createElement("div",null,l.a.createElement(f.Typography,{className:"search-result-summary",variant:"caption"},x),l.a.createElement(f.Typography,{className:"search-result-inputText",variant:"caption"},g)),l.a.createElement(f.List,{dense:!0},h.map((function(e){var t=e.document;return l.a.createElement(He,{key:t.id,document:t,openArticle:r,config:a})}))),l.a.createElement(ve,{region:fe,role:he,content:D,delay:2e3}))};$e.propTypes={config:p.a.object.isRequired,data:p.a.object.isRequired,openArticle:p.a.func.isRequired,i18n:p.a.object.isRequired,articles:p.a.array,store:p.a.object,setStore:p.a.func};var ze=$e;function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ve(e){for(var t=1;t",'"'.concat(B,'"'));$(e),k.getArticlesByCategory({categoryId:I})}}),[I,B]);var W=Object(S.styled)("div")((function(){return Ge({},Ue.categories)})),G=Object(S.styled)("div")((function(){return Ge({},Ue.categories)})),K=Object(S.styled)("div")((function(){return Ge({},Ue.categoriesContainer)})),J=null!=V&&V.length?l.a.createElement(W,null,l.a.createElement(f.Typography,{variant:"h5",className:"search-categories-title"},a.searchCategoriesTitle),l.a.createElement(f.List,{dense:!0},V.map((function(e){var t=(e||"").id,n=Ke({categories:E,parentCategoryId:t});return l.a.createElement(Je,{category:e,key:e.id,i18n:a,count:n.length,openCategory:p})})))):null,Y=I&&null!=U&&U.length?l.a.createElement(G,null,l.a.createElement(f.Typography,{variant:"h5",className:"search-categories-title"},a.searchArticlesTitle),l.a.createElement(ze,{openArticle:function(e){D({queryType:"Category"}),d(e)},data:s,articles:U,i18n:a,config:m})):null;return!P&&null!=E&&E.length?l.a.createElement(K,null,s&&l.a.createElement(f.Typography,{className:"categories-result-summary",variant:"caption"},N),J||Y?l.a.createElement(l.a.Fragment,null,l.a.createElement("div",null,J),l.a.createElement("div",null,Y)):l.a.createElement(Te,{message:a.searchResultsEmpty})):null};Ye.propTypes={config:p.a.object.isRequired,i18n:p.a.object.isRequired,data:p.a.object,openCategory:p.a.func.isRequired,openArticle:p.a.func.isRequired,setPlugin:p.a.func,plugin:p.a.object,showProgress:p.a.func.isRequired,stopProgress:p.a.func.isRequired,onError:p.a.func.isRequired,setStore:p.a.func.isRequired};var Qe=Ye;const Xe=({deploymentId:e,apiEndpoint:t})=>Object(y.initKnowledgeServicePlugin)({deploymentId:e,apiEndpoint:t,appType:y.appTypes.messenger})}])},77:function(e,t,n){"use strict";var r=n(148),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var a=l(n);d&&(a=a.concat(d(n)));for(var s=u(t),g=u(n),m=0;me.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},98:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},99:function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}},e.exports.__esModule=!0,e.exports.default=e.exports}})}));