apps.mypurecloud.com
Open in
urlscan Pro
54.146.67.30
Public Scan
URL:
https://apps.mypurecloud.com/messenger/messengerrenderer.min.js
Submission Tags: falconsandbox
Submission: On November 21 via api from US — Scanned from DE
Submission Tags: falconsandbox
Submission: On November 21 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
/*! * messenger * @version: 2.11.13 * @license: Genesys Cloud Services, Inc. */ !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=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(l&&l(t);p.length;)p.shift()();return i.push.apply(i,c||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(i.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},o={40:0,4:0,43:0},i=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.e=function(e){var t=[],n=o[e];if(0!==n)if(n)t.push(n[2]);else{var r=new Promise((function(t,r){n=o[e]=[t,r]}));t.push(n[2]=r);var i,s=document.createElement("script");s.charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.src=function(e){return a.p+""+({2:"messagingservicemiddleware",7:"i18n/vendors/date-ar",8:"i18n/vendors/date-cs",9:"i18n/vendors/date-da",10:"i18n/vendors/date-de",11:"i18n/vendors/date-en",12:"i18n/vendors/date-es",13:"i18n/vendors/date-et",14:"i18n/vendors/date-fi",15:"i18n/vendors/date-fr",16:"i18n/vendors/date-he",17:"i18n/vendors/date-hu",18:"i18n/vendors/date-it",19:"i18n/vendors/date-ja",20:"i18n/vendors/date-ko",21:"i18n/vendors/date-lt",22:"i18n/vendors/date-lv",23:"i18n/vendors/date-nb",24:"i18n/vendors/date-nl",25:"i18n/vendors/date-pl",26:"i18n/vendors/date-pt",27:"i18n/vendors/date-pt-br",28:"i18n/vendors/date-ru",29:"i18n/vendors/date-sv",30:"i18n/vendors/date-th",31:"i18n/vendors/date-tr",32:"i18n/vendors/date-uk",33:"i18n/vendors/date-vi",34:"i18n/vendors/date-zh-cn",35:"i18n/vendors/date-zh-tw",38:"messenger"}[e]||e)+".min.js"}(e);var u=new Error;i=function(t){s.onerror=s.onload=null,clearTimeout(c);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",u.name="ChunkLoadError",u.type=r,u.request=i,n[1](u)}o[e]=void 0}};var c=setTimeout((function(){i({type:"timeout",target:s})}),12e4);s.onerror=s.onload=i,document.head.appendChild(s)}return Promise.all(t)},a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var s=("undefined"!=typeof self?self:this).webpackJsonp_Messenger=("undefined"!=typeof self?self:this).webpackJsonp_Messenger||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var c=0;c<s.length;c++)t(s[c]);var l=u;return i.push([579,0,1]),n()}({1:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,"a",(function(){return r}))},100:function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new T(r||[]);return o(a,"_invoke",{value:S(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var p="suspendedStart",f="suspendedYield",g="executing",m="completed",h={};function v(){}function D(){}function b(){}var y={};c(y,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(M([])));w&&w!==n&&r.call(w,a)&&(y=w);var C=b.prototype=v.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,s){var u=d(e[o],e,i);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(l).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function S(e,t,n){var r=p;return function(o,i){if(r===g)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=j(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=g;var u=d(e,t,n);if("normal"===u.type){if(r=n.done?m:f,u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=m,n.method="throw",n.arg=u.arg)}}}function j(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=d(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function F(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(F,this),this.reset(!0)}function M(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:k}}function k(){return{value:t,done:!0}}return D.prototype=b,o(C,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:D,configurable:!0}),D.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===D||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,u,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},O(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(C),c(C,u,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=M,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=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<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(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;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:M(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},118:function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))o.call(n,c)&&(s[c]=n[c]);if(r){a=r(n);for(var l=0;l<a.length;l++)i.call(n,a[l])&&(s[a[l]]=n[a[l]])}}return s}},12:function(e,t,n){"use strict";n.d(t,"J",(function(){return r})),n.d(t,"r",(function(){return o})),n.d(t,"E",(function(){return i})),n.d(t,"F",(function(){return a})),n.d(t,"B",(function(){return s})),n.d(t,"C",(function(){return u})),n.d(t,"t",(function(){return c})),n.d(t,"s",(function(){return l})),n.d(t,"Q",(function(){return d})),n.d(t,"P",(function(){return p})),n.d(t,"x",(function(){return f})),n.d(t,"w",(function(){return g})),n.d(t,"K",(function(){return m})),n.d(t,"y",(function(){return h})),n.d(t,"c",(function(){return v})),n.d(t,"n",(function(){return D})),n.d(t,"o",(function(){return b})),n.d(t,"p",(function(){return y})),n.d(t,"f",(function(){return x})),n.d(t,"R",(function(){return w})),n.d(t,"G",(function(){return C})),n.d(t,"b",(function(){return O})),n.d(t,"a",(function(){return E})),n.d(t,"M",(function(){return S})),n.d(t,"u",(function(){return j})),n.d(t,"v",(function(){return F})),n.d(t,"m",(function(){return A})),n.d(t,"H",(function(){return T})),n.d(t,"I",(function(){return M})),n.d(t,"j",(function(){return k})),n.d(t,"i",(function(){return I})),n.d(t,"l",(function(){return P})),n.d(t,"k",(function(){return R})),n.d(t,"g",(function(){return B})),n.d(t,"z",(function(){return L})),n.d(t,"A",(function(){return N})),n.d(t,"O",(function(){return _})),n.d(t,"L",(function(){return H})),n.d(t,"q",(function(){return $})),n.d(t,"h",(function(){return z})),n.d(t,"D",(function(){return q})),n.d(t,"d",(function(){return V})),n.d(t,"N",(function(){return U})),n.d(t,"e",(function(){return G}));var r=1e3,o=5e3,i="70%",a=426,s="90%",u=600,c=410,l=96,d=410,p=100,f=105,g=506,m="outbound",h="inbound",v="gcatkn",D="card",b="carousel",y=1800,x="CoBrowse",w="Video",C="Offering",O="active",E="accepted",S="rejected",j="expired",F="failed",A="cobrowse",T="OfferingAccepted",M="OfferingRejected",k="CobrowseOfferActive",I="CobrowseOfferAccepted",P="CobrowseOfferRejected",R="CobrowseOfferExpired",B="cobrowseActive",L="joinFailure",N=":gcmk",_="aid",H="presence",$="disconnect",z="CobrowseFrame",q="MessengerFrame",V="M3SS3NG3R-PLUG1N-Br0adcastChanne1",U="signin",G="Messenger is cleared. Please reload the page to reinitialize."},122: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},128:function(e,t,n){"use strict";n.r(t);var r=n(92),o=n.n(r),i=n(27),a=n.n(i),s=n(28),u=n.n(s),c=n(40),l=n.n(c),d=n(32),p=n.n(d),f=n(34),g=n.n(f),m=n(8),h=n.n(m),v=n(39),D=n.n(v),b=n(67),y=n.n(b),x=(n(100),n(0)),w=n.n(x),C=n(6),O=n.n(C),E=n(20),S=n.n(E),j=n(4),F=n(430),A=n(437),T=n(407),M=n(431),k=n(150),I=n(439),P=n(12),R=n(13),B=n(94);function L(e,t){var n=e||{},r=n.open,o=n.iToasterHeight,i=n.expandLauncher,a=n.bInvite,s=n.bFabVisible,u=n.expandedArticle,c=n.updateToasterBodyHeight,l=n.view,d=t||{},p=d.open,f=d.iToasterHeight,g=d.expandLauncher,m=d.bInvite,h=d.bFabVisible,v=d.expandedArticle,D=d.updateToasterBodyHeight,b=d.view;return r===p&&o===f&&i===g&&a===m&&s===h&&u===v&&c===D&&l===b}var N=Object(R.k)().browser||"",_=Object(R.k)().os||"";"Mac OS X"===_&&(_="mac");var H=!(!N||"Safari"!==N),$="iOS"===_,z="",q=Object(j.a)("div")((function(e){var t=e.theme,n=e.props;return{overflow:H||$||!n.messengerClosed?"hidden":"clip",borderRadius:"4px",boxShadow:t.palette.common.boxShadow,transition:"none!important",width:"100%"}})),V="toaster",U={toasterContainer:"".concat(V,"-container"),root:"".concat(V,"-root"),button:"".concat(V,"-button"),unaryButton:"".concat(V,"-unary-button"),buttonContainer:"".concat(V,"-button-container"),message:"mxg-toaster-message",alertRoot:"mxg-alert-root"},G=Object(j.a)("div")((function(e){var t,n=e.theme,r=e.props;return t={},h()(h()(h()(h()(h()(h()(h()(h()(h()(h()(t,"& .".concat(U.root),{minWidth:"40%",width:"auto",zIndex:9999999,position:r.messengerClosed||"overflow"!==r.mode?"relative":"absolute",boxShadow:r.messengerClosed||"overflow"!==r.mode?"":n.palette.common.boxShadow,margin:r.messengerClosed||"overflow"!==r.mode?0:"16px",borderRadius:r.messengerClosed||"overflow"!==r.mode?0:"4px",maxWidth:"100%",bottom:r.expandLauncher?"bottom"===r.position?0:"initial":"12px",overflow:"hidden",height:"auto",flexDirection:"column-reverse"}),"& .".concat(U.buttonContainer),{float:"left",paddingTop:"16px",width:"100%"}),"& .".concat(U.button),{maxWidth:"46%",float:"left",marginRight:"16px",marginBottom:"0px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),"& .".concat(U.unaryButton),{maxWidth:"100%"}),"& .mxg-toaster-message",{height:"auto",minHeight:"80px",maxHeight:"192px",alignItems:"unset",overflow:"hidden",width:"100%",boxSizing:"border-box"}),"& .mxg-toaster-body",{pre:{display:"block",padding:"9px",margin:"5px auto",wordBreak:"break-word",wordWrap:"break-word",borderRadius:"4px",border:"1px solid",whiteSpace:"pre-wrap"},code:{padding:"0px 6px 2px 6px"},mark:{backgroundColor:n.palette.highlight.main,padding:"0px 2px",fontWeight:700,color:n.palette.getContrastText(n.palette.highlight.main)}}),"& .mxg-alert-root",{width:"100%",boxSizing:"border-box",color:n.palette.common.darkGrey}),"& .Cx-MuiButton-root",{"&:last-child":{marginRight:"0px"}}),"& .Cx-MuiTypography-subtitle1",{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),"& .Cx-MuiTypography-subtitle2",{maxHeight:"96px",overflow:"hidden auto",width:"100%"}),h()(h()(h()(t,"& .Cx-MuiAlert-action",{padding:"0px",marginTop:"-4px",button:{"&:focus-visible":{outlineColor:n.palette.common.outlineColor}}}),"& .mxg-decline-button",{"&:focus-visible":{outlineColor:n.palette.common.outlineColor}}),"& .Cx-MuiAlert-icon",{padding:"10px 0"})})),W={},K=w.a.forwardRef((function(e,t){var n=e.open,r=e.key,o=e.content,i=e.config,a=e.oToaster,s=e.color,u=e.setToasterHeight,c=e.setToasterPosition,l=e.handleAcceptAction,d=e.handleDeclineAction,p=e.handleCloseAction,f=e.expandLauncher,g=e.updateToasterBodyHeight,m=o||{},h=m.title,v=m.body,D=m.buttons,b=D||{},y=b.type,C=b.primary,O=b.secondary,E=i||{},j=E.position,L=E.documentDirection,H=E.i18n,$=E.lang,V=E.preview,K=j.alignment,J=H[$].toaster||{},Y=J.acceptButton,Q=J.rejectButton,X=J.ariaAcceptButton,Z=J.ariaRejectButton,ee=Object(x.useState)(!1),te=S()(ee,2),ne=te[0],re=te[1],oe=Object(x.useState)(!1),ie=S()(oe,2),ae=ie[0],se=ie[1],ue=Object(x.useState)(!1),ce=S()(ue,2),le=ce[0],de=ce[1],pe=Object(x.useState)(!1),fe=S()(pe,2),ge=fe[0],me=fe[1],he=Object(x.useState)(!1),ve=S()(he,2),De=ve[0],be=ve[1],ye=!V&&(e.autoFocus||!1),xe=Object(x.useRef)(null),we=Object(x.useRef)(null),Ce=Object(x.useRef)(null),Oe=Object(x.useRef)(null),Ee=Object(x.useRef)(null),Se=Object(x.useRef)(null),je={left:"unset",right:"0px"},Fe={right:"unset",left:"0px"};W=g?{maxHeight:"46px"}:{};var Ae=function(){xe&&xe.current&&xe.current.scrollWidth>xe.current.clientWidth?re(!0):re(!1),Oe&&Oe.current&&Oe.current.scrollWidth>Oe.current.clientWidth?se(!0):se(!1),we&&we.current&&we.current.scrollWidth>we.current.clientWidth?de(!0):de(!1),Ce&&Ce.current&&Ce.current.scrollWidth>Ce.current.clientWidth?me(!0):me(!1)};if(Object(x.useEffect)((function(){window.addEventListener("resize",Ae),De||setTimeout((function(){be(!0)}),50)}),[De]),Object(x.useEffect)((function(){return setTimeout((function(){if(t&&t.current&&De){var e=t.current.clientHeight+18;u&&u(e),t.current.children[0]&&(t.current.children[0].style.maxHeight=e+"px"),a&&n&&!f&&a.command("MessengerHelper.setDimension",{toaster:{height:e,width:P.Q,addClass:["genesys-mxg-toaster"]}}),Ae()}})),function(){window.removeEventListener("resize",Ae)}})),Object(x.useEffect)((function(){setTimeout((function(){ye&&t&&t.current&&De&&(Ee.current?Ee.current.focusVisible():Se.current&&Se.current.focusVisible())}),150)})),K)switch(K){case"right":je;break;case"left":Fe;break;case"auto":L&&("ltr"===L&&je,"rtl"===L&&Fe)}c();var Te=function(e){13!==e.which&&32!==e.which||e.ctrlKey||e.shiftKey||(l(e),e.preventDefault())};return z=Object(R.x)()?"mxg-mobile-"+_.toLowerCase()+"-"+N.toLowerCase():"mxg-desktop-"+_.toLowerCase()+"-"+N.toLowerCase(),h||v?w.a.createElement(q,{props:e},w.a.createElement(G,{props:e,className:U.toasterContainer+" "+z},w.a.createElement(F.a,{open:n,ref:t,role:"alert",key:r,style:{right:"0px",left:"0px"},className:"".concat(U.root+" "+(f?"mxg-expanded-toaster":""))},w.a.createElement(A.a,{severity:"info",onClose:p,onKeyPress:function(e){13!==e.which&&32!==e.which||e.ctrlKey||e.shiftKey||(p(e),e.preventDefault())},classes:{message:U.message,root:U.alertRoot},componentsProps:{closeIcon:{sx:{width:"26px",height:"26px"}}}},h&&w.a.createElement(T.a,null,w.a.createElement(M.a,{componentsProps:{tooltip:{sx:{width:"93%",maxHeight:"27px",overflowY:"auto",margin:"10px 0"}}},title:h,PopperProps:{container:t&&t.current},placement:"bottom",disableHoverListener:!ne,disableFocusListener:!ne,disableTouchListener:!ne},w.a.createElement(k.a,{variant:"subtitle1",variantMapping:{subtitle1:"h1"},gutterBottom:!0,"aria-label":h,dir:"auto",tabIndex:0,ref:xe},h))),v&&w.a.createElement(k.a,{style:W,className:"mxg-toaster-body",dir:"auto",variant:"subtitle2",variantMapping:{subtitle2:"h2"},tabIndex:0,"aria-label":v,dangerouslySetInnerHTML:{__html:Object(B.b)(v)}}),D&&y&&w.a.createElement("div",{className:U.buttonContainer},"binary"===y&&w.a.createElement(w.a.Fragment,null,w.a.createElement(M.a,{componentsProps:{tooltip:{sx:{width:"93%",maxHeight:"27px",overflowY:"auto",margin:"10px 0"}}},title:C||Y,PopperProps:{container:t&&t.current},placement:"top",disableHoverListener:!le,disableFocusListener:!le,disableTouchListener:!le},w.a.createElement(I.a,{ref:we,action:Ee,className:U.button,variant:"contained",size:"small",dir:"auto",color:s,tabIndex:0,"aria-label":C||Y+". "+X,onKeyPress:Te,onClick:l},C||Y)),w.a.createElement(M.a,{componentsProps:{tooltip:{sx:{width:"93%",maxHeight:"27px",overflowY:"auto",margin:"10px 0"}}},title:O||Q,PopperProps:{container:t&&t.current},placement:"top",disableHoverListener:!ge,disableFocusListener:!ge,disableTouchListener:!ge},w.a.createElement(I.a,{ref:Ce,className:"mxg-decline-button ".concat(U.button),variant:"contained",color:"secondary",size:"small",dir:"auto",tabIndex:0,"aria-label":O||Q+". "+Z,onKeyPress:function(e){13!==e.which&&32!==e.which||e.ctrlKey||e.shiftKey||(d(e),e.preventDefault())},onClick:d},O||Q))),"unary"===y&&w.a.createElement(w.a.Fragment,null,w.a.createElement(M.a,{componentsProps:{tooltip:{sx:{width:"93%",maxHeight:"27px",overflowY:"auto",margin:"10px 0"}},popper:{sx:{zIndex:99999}}},title:C||Y,PopperProps:{container:t&&t.current},placement:"top",disableHoverListener:!ae,disableFocusListener:!ae,disableTouchListener:!ae},w.a.createElement(I.a,{ref:Oe,action:Se,className:U.button+" "+U.unaryButton,variant:"contained",size:"small",dir:"auto",color:s,tabIndex:0,"aria-label":C||Y+". "+X,onKeyPress:Te,onClick:l},C||Y)))))))):null}));K.propTypes={open:O.a.bool.isRequired,handleClose:O.a.func,config:O.a.object,showBottom:O.a.bool,key:O.a.any,color:O.a.string.isRequired,content:O.a.object};var J=w.a.memo(K,L),Y=n(46);function Q(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 X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){h()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Z(e,t,n){return t=p()(t),l()(e,ee()?Reflect.construct(t,n||[],p()(e).constructor):t.apply(e,n))}function ee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ee=function(){return!!e})()}var te=function(e){function t(e){var n;a()(this,t),n=Z(this,t,[e]),h()(n,"getMarkdown",(function(e){return new Promise((function(t,n){Genesys("command","Markdown.getMarkdown",{text:e},(function(e){e&&t(e)}),(function(e){n(e)}))}))})),h()(n,"handleToasterAccept",(function(e){var t=n.props||{},r=t.setToasterState,o=t.bToaster;"function"==typeof n.pToaster.resolve&&(n.pToaster.resolve("accepted"),n.pToaster=""),o&&(r&&r(!1),n.oToaster.publish("accepted"),"function"==typeof e.resolve&&e.resolve())})),h()(n,"handleToasterDecline",(function(e){var t=n.props||{},r=t.setToasterState,o=t.bToaster;"function"==typeof n.pToaster.resolve&&(n.pToaster.resolve("declined"),n.pToaster=""),o&&(r&&r(!1),n.oToaster.publish("declined"),"function"==typeof e.resolve&&e.resolve())})),h()(n,"handleToasterClose",(function(e){var t=n.props||{},r=t.setToasterState,o=t.bToaster;"function"==typeof n.pToaster.resolve&&(n.pToaster.resolve("closed"),n.pToaster=""),o&&(r&&r(!1),n.oToaster.publish("closed"),"function"==typeof e.resolve&&e.resolve())})),h()(n,"initialize",(function(){var e=(n.props.config.headlessMode||{}).enabled,t=!1,r=n;n.oToaster&&Object.keys(n.oToaster).length&&(n.oToaster.registerCommand("open",(function(n){t?r.rejectToaster(n,P.e):e&&Object.keys(r.pToaster).length?r.rejectToaster(n,"Toaster already exists"):r.openToaster(n,r)})),n.oToaster.registerCommand("accept",(function(n){t?r.rejectToaster(n,P.e):e?Object.keys(r.pToaster).length?r.acceptToaster(n,r):r.rejectToaster(n,"Toaster not exists"):r.acceptToaster(n,r)})),n.oToaster.registerCommand("decline",(function(n){t?r.rejectToaster(n,P.e):e?Object.keys(r.pToaster).length?r.declineToaster(n,r):r.rejectToaster(n,"Toaster not exists"):r.declineToaster(n,r)})),n.oToaster.registerCommand("close",(function(n){t?r.rejectToaster(n,P.e):e?Object.keys(r.pToaster).length||r.rejectToaster(n,"Toaster not exists"):r.closeToaster(n,r)})),n.oToaster.registerCommand("clear",(function(e){e&&e.commander&&"Messenger"!==e.commander&&e.reject("".concat(e.commander," plugin does not have permission to access clear SubMessenger plugin command")),t=!0,r.oToaster.publish("cleared"),e.resolve()})))})),h()(n,"setToasterPosition",(function(e){var t=n.props||{},r=t.expandLauncher,o=t.messengerClosed,i=t.config,a=t.bFabVisible,s=t.bInvite,u=(i||{}).position.sideSpace,c=0;if(o&&n.toasterRef&&n.toasterRef.current){if(n.toasterRef.current.style.bottom=r||s?"calc(88% - "+n.toasterRef.current.clientHeight+"px)":"0px",e&&e.type&&"orientationchange"===e.type&&(c=r?114:a?98:12,(Object(R.x)()||Object(R.u)())&&n.toasterRef.current.clientHeight+c>window.outerHeight&&!n.state.bUpdateToasterBodyHeight?n.setState({bUpdateToasterBodyHeight:!0}):n.setState({bUpdateToasterBodyHeight:!1})),u){var l=((n.toasterRef.current||{}).parentElement||{}).parentElement,d="calc(".concat(P.P,"% - ").concat(u,"px)");window.outerWidth-u<100*Math.round(P.Q/P.P)&&(l?(n.toasterRef.current.parentElement.parentElement.style.maxWidth=d,n.toasterRef.current.parentElement.parentElement.style.position="relative",n.toasterRef.current.parentElement.parentElement.style.left="".concat(u,"px")):n.toasterRef.current.style.maxWidth=d)}n.toasterRef.current.style.right=r?(window.innerWidth-n.toasterRef.current.clientWidth)/2+"px":"0px"}}));var r=(e||{}).oPlugins;return n.state={bUpdateToasterBodyHeight:!1},n.sPluginName="Toaster",n.oToaster=r[n.sPluginName],n.pToaster="",n.position="top",n.mode="relative",n.toasterRef=Object(x.createRef)(),n}return g()(t,e),u()(t,[{key:"handleToasterOpen",value:(n=o()(y.a.mark((function e(t,n){var r,o,i,a,s,u,c,l,d;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.props||{},o=r.setToasterState,i=r.bToaster,a=r.setToasterContent,Object.keys(t.data).length){e.next=5;break}n.rejectToaster(t,"Send valid data"),e.next=21;break;case 5:if(s=t.data,c=(u=s||{}).title,l=u.body,!c&&!l){e.next=20;break}if(!s||!s.body){e.next=16;break}return e.next=11,this.getMarkdown(s.body).then((function(e){return e.markedText}));case 11:d=e.sent,s.body=d||s.body,a(X({},s)),e.next=17;break;case 16:a(t.data);case 17:i||(o&&o(!0),n.oToaster.publish("opened"),t.resolve()),e.next=21;break;case 20:n.rejectToaster(t,"Either title or body is required");case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{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:"closeToaster",value:function(e,t){this.props.bToaster?(t.pToaster=e,t.handleToasterClose(e)):t.rejectToaster(e,"Toaster not exists")}},{key:"componentDidMount",value:function(){var e=this,t=this.props||{},n=t.bToasterPublishedReady,r=t.setToasterReadyEventState;n||(this.oToaster.ready(),r&&r(!0)),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"),w.a.createElement("div",null,!l&&s&&w.a.createElement(J,{open:s,bInvite:this.props.bInvite,expandLauncher:o,messengerClosed:a,color:c,content:u,config:t,handleAcceptAction:this.handleToasterAccept,handleDeclineAction:this.handleToasterDecline,handleCloseAction:this.handleToasterClose,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,autoFocus:this.props.autoFocus}))}}]);var n}(w.a.Component);te.propTypes={oPlugins:O.a.object.isRequired,config:O.a.object.isRequired,bFabVisible:O.a.bool.isRequired};var ne;t.default=(ne=te,function(e){return w.a.createElement(Y.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,g=t.view,m=t.messengerClosed,h=t.setToasterReadyEventState,v=t.bToasterPublishedReady;return w.a.createElement(ne,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:g,messengerClosed:m,setToasterReadyEventState:h,bToasterPublishedReady:v}))}))})},13:function(e,t,n){"use strict";n.d(t,"y",(function(){return i})),n.d(t,"w",(function(){return a})),n.d(t,"u",(function(){return s})),n.d(t,"x",(function(){return u})),n.d(t,"k",(function(){return c})),n.d(t,"t",(function(){return l})),n.d(t,"j",(function(){return d})),n.d(t,"h",(function(){return p})),n.d(t,"z",(function(){return f})),n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"A",(function(){return v})),n.d(t,"g",(function(){return D})),n.d(t,"r",(function(){return b})),n.d(t,"d",(function(){return y})),n.d(t,"i",(function(){return x})),n.d(t,"e",(function(){return w})),n.d(t,"n",(function(){return C})),n.d(t,"l",(function(){return O})),n.d(t,"o",(function(){return j})),n.d(t,"p",(function(){return F})),n.d(t,"q",(function(){return A})),n.d(t,"f",(function(){return T})),n.d(t,"m",(function(){return M})),n.d(t,"s",(function(){return k})),n.d(t,"B",(function(){return I})),n.d(t,"v",(function(){return P}));var r=n(20),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])};n<arguments.length;n++)r(n<0||arguments.length<=n?void 0:arguments[n]);return e}function a(){var e=!1;return window.screen&&(e=window.screen.width>window.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,n=arguments.length>2?arguments[2]:void 0;if(0===e)return"0 Bytes";var r=1e3,o=t<0?0:t,i=Math.floor(Math.log(e)/Math.log(r));return(n?Math.round(e/Math.pow(r,i)):parseFloat((e/Math.pow(r,i)).toFixed(o)))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]}function f(e,t){var n=e.indexOf(t);return-1!==n&&e.splice(n,1),e}var g={"en-us":"en",cs:"cs",da:"da",de:"de",es:"es",et:"et",fi:"fi",it:"it",ko:"ko",lt:"lt",lv:"lv",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",uk:"uk",hu:"hu",vi:"vi"},m={"conversations.home":{showHeaderTitle:!0,showHeaderSubTitle:!0,expandHeader:!0,backButton:!1,deleteButton:!1,closeButton:!1,sigInButton:!1,moreVertButton:!1},"conversations.conversations":{showHeaderTitle:!0,showHeaderSubTitle:!1,expandHeader:!1,backButton:!0,deleteButton:!0,closeButton:!1,sigInButton:!0,moreVertButton:!0},"knowledge.search":{showHeaderTitle:!1,showHeaderSubTitle:!1,expandHeader:!1,backButton:!0,deleteButton:!1,closeButton:!1,sigInButton:!1,moreVertButton:!1},"knowledge.article":{showHeaderTitle:!1,showHeaderSubTitle:!1,expandHeader:!1,backButton:!0,deleteButton:!1,closeButton:!1,sigInButton:!1,moreVertButton:!1},"knowledge.category":{showHeaderTitle:!1,showHeaderSubTitle:!1,expandHeader:!1,backButton:!0,deleteButton:!1,closeButton:!1,sigInButton:!1,moreVertButton:!1},"conversations.filePreview":{showHeaderTitle:!0,showHeaderSubTitle:!1,expandHeader:!1,backButton:!0,deleteButton:!0,closeButton:!1,sigInButton:!0,moreVertButton:!0},"cobrowse.connect":{showHeaderTitle:!0,showHeaderSubTitle:!1,expandHeader:!1,backButton:!0,closeButton:!1,sigInButton:!1,moreVertButton:!1},"cobrowse.sharing":{showHeaderTitle:!0,showHeaderSubTitle:!1,expandHeader:!1,backButton:!0,closeButton:!1,sigInButton:!1,moreVertButton:!1}},h=["Genesys","Identifiers","Journey","Engage","Launcher","MessagingService","Cookies","GenesysJS","Messenger","Auth","LocalStorageTest","SupportCenter","Knowledge","KnowledgeService","Home","SubMessenger","ThirdPartyHelper"];function v(e,t){var n={text:e,truncated:!1};return e.length>t&&(n.text=e.slice(0,t)+"...",n.truncated=!0),n}function D(){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 b(e){return e.storage||"LocalStorage"}function y(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 x(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 w(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 C(e){var t="",n="",r=e||{},o=r.type,i=r.mime;if(o&&i)t=o,n=i;else if(o){var a=x(o)||"File";t=a&&-1!==["Document","PDF","Presentation","Spreadsheet","Text"].indexOf(a)?"File":a,n=o}return{mediaType:t,mimeType:n}}function O(e){return(e||{}).preview?"":"genesys-mxg-conversation"}function E(e){return e.coBrowse&&Object.keys(e.coBrowse).length}function S(e){return e.video&&Object.keys(e.video).length}function j(e){var t=void 0;return e&&(E(e)?e=e.coBrowse:S(e)&&(e=e.video),e.sessionId?t=e.sessionId:e.offeringId&&(t=e.offeringId)),t}function F(e){var t=void 0;return e&&(E(e)?e=e.coBrowse:S(e)&&(e=e.video),e.type&&(t=e.type)),t}function A(e){var t=void 0;return e&&(E(e)||e.sessionJoinToken?t="cobrowse":(S(e)||e.offeringId)&&(t="video")),t}function T(e,t){var n=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&(t&&"function"==typeof t&&t(),n.disconnect())}))}),{});e&&n.observe(e)}function M(e){return(e||{}).preview?"":"genesys-mxg-homescreen"}function k(e){var t="unknown",n={md:"text/markdown",tsv:"text/tab-separated-values",vcf:"text/vcard",mpa:"audio/MPA"};if(e&&e.length>0){var r=(e=e.toLowerCase()).split(".").pop();r&&r.length>0&&n.hasOwnProperty(r)&&(t=n[r])}return t}function I(e,t){var n=!1;if(e&&t&&e.length>0&&t.length>0){e=e.toLowerCase(),t=t.toLowerCase();var r=e.split(".").pop();r&&r.length>0&&"mpa"===r&&"audio/mpeg"===t&&(n=!0)}return n}function P(){return!!/iP(hone|od)/i.test(window.navigator.userAgent)}},135:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(14),o=n.n(r),i={"en-us":"en",cs:"cs",da:"da",de:"de",es:"es",et:"et",fi:"fi",it:"it",ko:"ko",lt:"lt",lv:"lv",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",uk:"uk",hu:"hu",vi:"vi"};function a(e){return new Promise((function(t,r){switch(i[e]){case"pl":n.e(25).then(n.t.bind(null,451,7)).then((function(e){o.a.locale("pl"),t(o.a)}));break;case"fr":n.e(15).then(n.t.bind(null,452,7)).then((function(e){o.a.locale("fr"),t(o.a)}));break;case"ja":n.e(19).then(n.t.bind(null,453,7)).then((function(e){o.a.locale("ja"),t(o.a)}));break;case"cs":n.e(8).then(n.t.bind(null,454,7)).then((function(e){o.a.locale("cs"),t(o.a)}));break;case"da":n.e(9).then(n.t.bind(null,455,7)).then((function(e){o.a.locale("da"),t(o.a)}));break;case"de":n.e(10).then(n.t.bind(null,456,7)).then((function(e){o.a.locale("de"),t(o.a)}));break;case"es":n.e(12).then(n.t.bind(null,457,7)).then((function(e){o.a.locale("es"),t(o.a)}));break;case"et":n.e(13).then(n.t.bind(null,458,7)).then((function(e){o.a.locale("et"),t(o.a)}));break;case"fi":n.e(14).then(n.t.bind(null,459,7)).then((function(e){o.a.locale("fi"),t(o.a)}));break;case"it":n.e(18).then(n.t.bind(null,460,7)).then((function(e){o.a.locale("it"),t(o.a)}));break;case"ko":n.e(20).then(n.t.bind(null,461,7)).then((function(e){o.a.locale("ko"),t(o.a)}));break;case"lt":n.e(21).then(n.t.bind(null,462,7)).then((function(e){o.a.locale("lt"),t(o.a)}));break;case"lv":n.e(22).then(n.t.bind(null,463,7)).then((function(e){o.a.locale("lv"),t(o.a)}));break;case"nl":n.e(24).then(n.t.bind(null,464,7)).then((function(e){o.a.locale("nl"),t(o.a)}));break;case"nb":n.e(23).then(n.t.bind(null,465,7)).then((function(e){o.a.locale("nb"),t(o.a)}));break;case"pt-br":n.e(27).then(n.t.bind(null,466,7)).then((function(e){o.a.locale("pt-br"),t(o.a)}));break;case"ru":n.e(28).then(n.t.bind(null,467,7)).then((function(e){o.a.locale("ru"),t(o.a)}));break;case"ar":n.e(7).then(n.t.bind(null,468,7)).then((function(e){o.a.locale("ar"),t(o.a)}));break;case"sv":n.e(29).then(n.t.bind(null,469,7)).then((function(e){o.a.locale("sv"),t(o.a)}));break;case"th":n.e(30).then(n.t.bind(null,470,7)).then((function(e){o.a.locale("th"),t(o.a)}));break;case"tr":n.e(31).then(n.t.bind(null,471,7)).then((function(e){o.a.locale("tr"),t(o.a)}));break;case"zh-cn":n.e(34).then(n.t.bind(null,472,7)).then((function(e){o.a.locale("zh-cn"),t(o.a)}));break;case"zh-tw":n.e(35).then(n.t.bind(null,473,7)).then((function(e){o.a.locale("zh-tw"),t(o.a)}));break;case"he":n.e(16).then(n.t.bind(null,474,7)).then((function(e){o.a.locale("he"),t(o.a)}));break;case"pt-pt":n.e(26).then(n.t.bind(null,475,7)).then((function(e){o.a.locale("pt"),t(o.a)}));break;case"uk":n.e(32).then(n.t.bind(null,476,7)).then((function(e){o.a.locale("uk"),t(o.a)}));break;case"hu":n.e(17).then(n.t.bind(null,477,7)).then((function(e){o.a.locale("hu"),t(o.a)}));break;case"vi":n.e(33).then(n.t.bind(null,478,7)).then((function(e){o.a.locale("vi"),t(o.a)}));break;default:n.e(11).then(n.t.bind(null,479,7)).then((function(e){o.a.locale("en"),t(o.a)}))}}))}},14: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",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,h={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()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:u,d:s,D:p,h:a,m:i,s:o,ms:r,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",y={};y[b]=h;var x=function(e){return e instanceof E},w=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();y[i]&&(o=i),n&&(y[i]=n,o=i);var a=t.split("-");if(!o&&a.length>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 h(e){this.$L=w(e.locale,null,!0),this.parse(e)}var v=h.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(g);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)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<C(e)},v.$g=function(e,t,n){return O.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!O.u(t)||t,l=O.p(e),f=function(e,t){var o=O.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},g=function(e,t){return O.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,h=this.$M,v=this.$D,D="set"+(this.$u?"UTC":"");switch(l){case d:return r?f(1,0):f(31,11);case c:return r?f(1,h):f(0,h+1);case u:var b=this.$locale().weekStart||0,y=(m<b?m+7:m)-b;return f(r?v-y:v+(6-y),h);case s:case p:return g(D+"Hours",0);case a:return g(D+"Minutes",1);case i:return g(D+"Seconds",2);case o:return g(D+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,u=O.p(e),l="set"+(this.$u?"UTC":""),f=(n={},n[s]=l+"Date",n[p]=l+"Date",n[c]=l+"Month",n[d]=l+"FullYear",n[a]=l+"Hours",n[i]=l+"Minutes",n[o]=l+"Seconds",n[r]=l+"Milliseconds",n)[u],g=u===s?this.$D+(t-this.$W):t;if(u===c||u===d){var m=this.clone().set(p,1);m.$d[f](g),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](g);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[O.p(e)]()},v.add=function(r,l){var p,f=this;r=Number(r);var g=O.p(l),m=function(e){var t=C(f);return O.w(t.date(t.date()+Math.round(e*r)),f)};if(g===c)return this.set(c,this.$M+r);if(g===d)return this.set(d,this.$y+r);if(g===s)return m(1);if(g===u)return m(7);var h=(p={},p[i]=t,p[a]=n,p[o]=e,p)[g]||1,v=this.$d.getTime()+r*h;return O.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=O.z(this),i=this.$H,a=this.$m,s=this.$M,u=n.weekdays,c=n.months,l=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},d=function(e){return O.s(i%12||12,e,"0")},p=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},g={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:O.s(s+1,2,"0"),MMM:l(n.monthsShort,s,c,3),MMMM:l(c,s),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,u,2),ddd:l(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:O.s(i,2,"0"),h:d(1),hh:d(2),a:p(i,a,!0),A:p(i,a,!1),m:String(a),mm:O.s(a,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:o};return r.replace(m,(function(e,t){return t||g[e]||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,p,f){var g,m=O.p(p),h=C(r),v=(h.utcOffset()-this.utcOffset())*t,D=this-h,b=O.m(this,h);return b=(g={},g[d]=b/12,g[c]=b,g[l]=b/3,g[u]=(D-v)/6048e5,g[s]=(D-v)/864e5,g[a]=D/n,g[i]=D/t,g[o]=D/e,g)[m]||D,f?b:O.a(b)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return y[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=w(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return O.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},h}(),S=E.prototype;return C.prototype=S,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",s],["$M",c],["$y",d],["$D",p]].forEach((function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,E,C),e.$i=!0),C},C.locale=w,C.isDayjs=x,C.unix=function(e){return C(1e3*e)},C.en=y[b],C.Ls=y,C.p={},C}()},15:function(e,t,n){"use strict";n.d(t,"z",(function(){return r})),n.d(t,"y",(function(){return o})),n.d(t,"I",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"n",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"L",(function(){return f})),n.d(t,"B",(function(){return g})),n.d(t,"C",(function(){return m})),n.d(t,"A",(function(){return h})),n.d(t,"K",(function(){return v})),n.d(t,"j",(function(){return D})),n.d(t,"i",(function(){return b})),n.d(t,"o",(function(){return y})),n.d(t,"E",(function(){return x})),n.d(t,"q",(function(){return w})),n.d(t,"O",(function(){return C})),n.d(t,"p",(function(){return O})),n.d(t,"P",(function(){return E})),n.d(t,"F",(function(){return S})),n.d(t,"M",(function(){return j})),n.d(t,"k",(function(){return F})),n.d(t,"m",(function(){return A})),n.d(t,"f",(function(){return T})),n.d(t,"r",(function(){return M})),n.d(t,"H",(function(){return k})),n.d(t,"u",(function(){return I})),n.d(t,"t",(function(){return P})),n.d(t,"Q",(function(){return R})),n.d(t,"G",(function(){return B})),n.d(t,"x",(function(){return L})),n.d(t,"s",(function(){return N})),n.d(t,"w",(function(){return _})),n.d(t,"J",(function(){return H})),n.d(t,"v",(function(){return $})),n.d(t,"g",(function(){return z})),n.d(t,"h",(function(){return q})),n.d(t,"D",(function(){return V})),n.d(t,"N",(function(){return U}));var r="LauncherOpened",o="LauncherMinimized",i="MessengerClosed",a="AttachmentFromUser",s="AttachmentFromAgent",u="AttachmentRemoved",c="AttachmentClicked",l="AttachmentDownloaded",d="FetchedPastMessages",p="DesktopMode",f="MobileMode",g="MessageOnHover",m="MessageOnTouch",h="MessageOnFocus",v="Messenger Open",D="Conversation Setup",b="Conversation Restore",y="Fetching Previous Messages",x="Message RoundTrip",w="Fetch history failed",C="Unable to fetch history",O="Not able to fetch history",E="Unable to restore",S="Message only contains whitespaces",j="Cannot send messages to readOnly session",F="Cannot start conversation.",A="There is already an active conversation.",T="Error on Logout",M="Error on getting WebSocket data.",k="Messenger is already opened.",I="Invalid open command. Should specify supported plugin name.",P="Invalid open command. Should specify plugin name.",R="User is not authenticated",B="Messenger is already closed.",L="Launcher button is already visible",N="Invalid configuration of Launcher button",_="Launcher button is already hidden",H="No configuration is provided to Messenger",$="Error from knowledge component API",z="Messenger autostarted",q="Autostart first system message",V="Message received out of order",U="SessionCleared"},154:function(e,t,n){"use strict";e.exports=n(155)},155: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,g=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,h=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 g:return e;default:switch(e=e&&e.$$typeof){case l:case f:case v:case h: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=h,t.Portal=i,t.Profiler=u,t.StrictMode=s,t.Suspense=g,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)===h},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)===g},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===u||e===s||e===g||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===D)},t.typeOf=w},156:function(e,t,n){"use strict";var r=n(157);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}},157:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},159:function(e,t,n){var r=n(26).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),s=new F(r||[]);return a(i,"_invoke",{value:O(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var g={};function m(){}function h(){}function v(){}var D={};d(D,u,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(A([])));y&&y!==n&&i.call(y,u)&&(D=y);var x=v.prototype=m.prototype=Object.create(D);function w(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,a,s,u){var c=f(e[o],e,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function E(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,g;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,g):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=v,a(x,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:h,configurable:!0}),h.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},w(C.prototype),d(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(x),d(x,l,"Generator"),d(x,u,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=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<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),g}},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),g}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},163:function(e,t,n){"use strict";n.r(t);var r=n(20),o=n.n(r),i=n(27),a=n.n(i),s=n(28),u=n.n(s),c=n(40),l=n.n(c),d=n(32),p=n.n(d),f=n(34),g=n.n(f),m=n(8),h=n.n(m),v=n(39),D=n.n(v),b=(n(100),n(0)),y=n.n(b),x=n(6),w=n.n(x),C=n(4),O=n(205),E=n.n(O),S=n(284),j=n(430),F=n(12),A="Engage",T={root:"".concat(A,"-root"),rootBottom:"".concat(A,"-rootBottom"),snackbarContent:"".concat(A,"-snackbarContent"),content:"".concat(A,"-content"),snackbarMessage:"".concat(A,"-snackbarMessage"),snackbarAction:"".concat(A,"-snackbarAction"),iconButton:"".concat(A,"-iconButton")},M=Object(C.a)("div")((function(e){var t=e.theme;return h()(h()(h()(h()(h()(h()(h()({},"& .".concat(T.root),{maxWidth:"96%",minWidth:"40%",position:"absolute",bottom:"6px",height:"auto",minHeight:"50px",left:"auto"}),"& .".concat(T.rootBottom),{bottom:"12px"}),"& .".concat(T.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%)"}),"& .".concat(T.content),{cursor:"pointer",padding:"14px 0px 14px 18px",fontSize:"1.05em",wordBreak:"break-word",boxSizing:"border-box"}),"& .".concat(T.snackbarMessage),{maxWidth:"84%",padding:"4px 0"}),"& .".concat(T.snackbarAction),{padding:"0px",margin:"0px"}),"& .".concat(T.iconButton),{color:"#444444cf","&:focus-visible":{outlineColor:t.palette.common.outlineColor}})}));function k(e,t){return y.a.createElement(S.a,{className:T.iconButton,onClick:e,"aria-label":t.ariaClose},y.a.createElement(E.a,{alt:"",sx:{width:"26px",height:"26px",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}))}var I=y.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,g=d.sideSpace,m="right",h={},v={left:"auto"},D={right:"auto"};if(Object(b.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:F.t}})}}),100)})),f){switch(f){case"right":h=v,m="right";break;case"left":h=D,m="left";break;case"auto":p&&("ltr"===p&&(h=v,m="right"),"rtl"===p&&(h=D,m="left"))}g&&window.outerWidth-g<100*Math.round(F.t/F.s)&&(h.maxWidth="calc(".concat(F.s,"% - ").concat(g,"px)"))}return y.a.createElement(M,null,y.a.createElement(j.a,{ref:t,open:n,anchorOrigin:{vertical:"bottom",horizontal:m},action:k(r,e),transitionDuration:400,role:"alert",message:y.a.createElement("div",{className:T.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:h,classes:{root:T.root},className:"".concat(s?T.rootBottom:""),ContentProps:{classes:{root:T.snackbarContent,message:T.snackbarMessage,action:T.snackbarAction}}}))}));I.propTypes={open:w.a.bool.isRequired,handleClose:w.a.func,handleClick:w.a.func,config:w.a.object,ariaClose:w.a.string,showBottom:w.a.bool,key:w.a.any,color:w.a.string.isRequired,message:w.a.string.isRequired};var P=I,R=n(46),B=n(13);function L(e,t,n){return t=p()(t),l()(e,N()?Reflect.construct(t,n||[],p()(e).constructor):t.apply(e,n))}function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(N=function(){return!!e})()}var _=function(e){function t(e){var n;a()(this,t),n=L(this,t,[e]),h()(n,"resetMetadata",(function(){n.oMetaData.inviteOffered="",n.oMetaData.inviteAccepted="",n.oMetaData.inviteRejected="",n.oMetaData.inviteIgnored="",n.oMetaData.inviteError="",n.oMetaData.journeyContext=""})),h()(n,"checkPersistentChat",(function(){n.bNewConversation||n.oEngage.command(n.storage+".get",{name:n.storagePrefix+n.subConversationStorage}).then((function(e){if(e){var t=e.split(" "),r=o()(t,1)[0];n.bConversationActive=!(!r||"string"!=typeof r||"true"!==r)}else n.bConversationActive=!1}))})),h()(n,"checkAuthentication",(function(){var e=n.props.config.auth||{},t=e.enabled,r=e.allowSessionUpgrade;return t?new Promise((function(e,t){n.oEngage.command(n.storage+".get",{names:[F.c]}).then((function(n){var o=n[F.c];o&&"undefined"!==o||r?e():t()})).catch((function(){t()}))})):Promise.resolve()})),h()(n,"inviteAccepted",(function(){n.setState({bShowInvite:!1}),n.oMetaData.inviteAccepted=(new Date).getTime(),"function"==typeof n.oEngageInvitePromise.resolve&&(n.oEngageInvitePromise.resolve("accepted"),n.oEngageInvitePromise=""),n.oEngageAcceptPromise&&"function"==typeof n.oEngageAcceptPromise.resolve&&n.oEngageAcceptPromise.resolve(n.oMetaData),n.oEngage.publish("inviteAccepted",n.oMetaData)})),h()(n,"handleEngageClose",(function(e){n.setState({bShowInvite:!1}),n.props.setInviteState(!1),n.oMetaData.inviteRejected=(new Date).getTime(),"function"==typeof n.oEngageInvitePromise.resolve&&(n.oEngageInvitePromise.resolve("rejected"),n.oEngageInvitePromise=""),n.oEngageRejectPromise&&"function"==typeof n.oEngageRejectPromise.resolve&&n.oEngageRejectPromise.resolve(n.oMetaData),n.oEngage.publish("inviteRejected",n.oMetaData),setTimeout((function(){n.resetMetadata(),n.oJourneyContext&&n.oJourneyContext.triggeringAction&&(n.oJourneyContext.triggeringAction={}),n.props.setJourneyContext(n.oJourneyContext)}),0)})),h()(n,"handleEngageClick",(function(e){(0,n.props.handleEngageClick)({journeyContext:n.oMetaData.journeyContext}),n.inviteAccepted()})),h()(n,"showInvite",(function(e){var t=((n.props.config||{}).launcherButton||{}).visibility;e.setState({bShowInvite:!0}),t&&"ondemand"===t.toLowerCase()&&n.oEngage.command("Launcher.show"),e.props.setInviteState(!0),n.oMetaData.inviteOffered=(new Date).getTime(),n.oEngage.publish("inviteOffered",n.oMetaData)})),h()(n,"initialize",(function(){var e=n.props.config,t=e.headlessMode,r=e.auth,o=(t||{}).enabled,i=(r||{}).enabled,a=!1,s=n;n.oEngage&&Object.keys(n.oEngage).length&&(n.oEngage.registerCommand("invite",(function(e){a?s.rejectInvite(e,{code:"MESSENGERCLEARED",reason:F.e}):o&&Object.keys(s.oEngageInvitePromise).length?s.rejectInvite(e,{code:"INVITEACTIVE",reason:"There is active invite already exits"}):s.registerInvite(e,s)})),n.oEngage.registerCommand("accept",(function(e){if(a)s.rejectInvite(e,{code:"MESSENGERCLEARED",reason:F.e});else if(Object.keys(s.oEngageInvitePromise).length)s.oEngageAcceptPromise=e,s.handleEngageClick();else{s.rejectInvite(e,{code:"NOACTIVEINVITE",reason:"There is no active invite to accept"})}})),n.oEngage.registerCommand("reject",(function(e){if(a)s.rejectInvite(e,{code:"MESSENGERCLEARED",reason:F.e});else if(Object.keys(s.oEngageInvitePromise).length)s.oEngageRejectPromise=e,s.handleEngageClose();else{s.rejectInvite(e,{code:"NOACTIVEINVITE",reason:"There is no active invite to reject"})}})),n.oEngage.registerCommand("clear",(function(e){e&&e.commander&&"Messenger"!==e.commander&&e.reject("".concat(e.commander," plugin does not have permission to access clear SubMessenger plugin command")),a=!0,s.oEngage.publish("cleared"),e.resolve()})),n.oEngage.subscribe("SubMessenger.visibilityChanged",(function(e){e.data.hidden&&s.state.bShowInvite&&(s.oMetaData.inviteIgnored=(new Date).getTime(),s.oEngage.publish("inviteIgnored",s.oMetaData))})),n.oEngage.subscribe("Identifiers.ready",(function(e){a||s.oEngage.command("Identifiers.getJourneyContext").then((function(e){var t=e.customer,n=e.customerSession;t&&Object.keys(t).length&&(s.oJourneyContext.customer=t),n&&Object.keys(n).length&&(s.oJourneyContext.customerSession=n),s.props.setJourneyContext(s.oJourneyContext)}))})),n.oEngage.subscribe("Journey.qualifiedWebMessagingOffer",(function(e){a||s.registerInvite(e,s)})),n.oEngage.subscribe("MessagingService.started",(function(e){if(s.bConversationActive=!0,e.data&&Object.keys(e.data).length){var t=(e.data||{}).newSession;s.bNewConversation=!!t}})),n.oEngage.subscribe("MessagingService.sessionExpired",(function(e){s.bNewConversation=!1,setTimeout((function(){s.checkPersistentChat()}),1e3)})),n.oEngage.subscribe("Auth.signedOut",(function(){s.state.bShowInvite&&i&&s.setState({bShowInvite:!1})})),n.oEngage.subscribe("Auth.data.authenticated",(function(e){!(e.data||{}).value&&i&&s.state.bShowInvite&&s.setState({bShowInvite:!1})})),n.oEngage.subscribe("MessagingService.messagesReceived",(function(e){if(s.bNewConversation&&e.data&&Object.keys(e.data).length){var t=(e.data||{}).messages;t&&Object.keys(t).length&&(s.bNewConversation=!1)}})),n.oEngage.ready())})),n.state={bShowInvite:!1},n.sPluginName="Engage",n.oEngage=e.plugin,n.oEngageInvitePromise="",n.oEngageAcceptPromise="",n.oEngageRejectPromise="",n.oJourneyContext={},n.oMetaData={journeyContext:"",inviteOffered:"",inviteAccepted:"",inviteRejected:"",inviteIgnored:"",inviteError:"",customOfferText:""};var r=e.config,i=r.deploymentId;return n.storagePrefix=i?i+":gcmc":"_gcmc",n.subConversationStorage="sessionActive",n.bConversationActive=!1,n.bNewConversation=!1,n.maxMessageLength=70,n.engageRef=Object(b.createRef)(),n.storage=Object(B.r)(r),n}return g()(t,e),u()(t,[{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||{},u=s.enabled,c=(s.allowSessionUpgrade,this.state.bShowInvite),l=e.data,d=l.journeyContext,p=(l.engageContent||{}).offerText,f=a||{},g=f.i18n,m=f.lang,h=((f.apps||{}).conversations||{}).enabled,v=g[m].launcher.inviteMessage,D=!1;h?(this.checkPersistentChat(),this.checkAuthentication().then((function(){p&&!c?p.length>n.maxMessageLength||!p.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=p.trim(),D=!0):n.oMetaData.customOfferText&&!c&&(n.oMetaData.customOfferText=""),v&&(D=!(v.length>n.maxMessageLength)),n.oJourneyContext&&n.oJourneyContext.triggeringAction&&!c&&(n.oJourneyContext.triggeringAction={}),d&&(n.oJourneyContext=Object(B.y)(n.oJourneyContext,d),n.oMetaData.journeyContext=n.oJourneyContext),n.props.setJourneyContext(n.oJourneyContext),c?(n.oMetaData.inviteError={code:"INVITEACTIVE",reason:"There is active invite already exits"},n.oEngage.publish("inviteError",n.oMetaData)):D?i||n.bConversationActive&&!n.bNewConversation?n.bConversationActive?u&&!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")}))):(this.state.bShowInvite&&this.setState({bShowInvite:!1}),this.oEngageInvitePromise="",this.oMetaData.inviteError={code:"MESSAGINGOFF",reason:"Messenger is not ready for messaging. An inbound flow is required and messaging must be enabled to show the invite."},this.oEngage.publish("inviteError",this.oMetaData))}},{key:"componentDidMount",value:function(){this.initialize(),this.props.setInviteAccepted(this.inviteAccepted),this.checkPersistentChat()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=(n.props||{}).config,o=(e||{}).config||{},i=o.headlessMode,a=o.apps,s=(i||{}).enabled,u=(((r||{}).apps||{}).conversations||{}).enabled,c=((a||{}).conversations||{}).enabled;n.checkPersistentChat(),c===u||u||this.state.bShowInvite&&this.oEngage.command("reject"),s||!this.state.bShowInvite&&t.bShowInvite&&n.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 y.a.createElement("div",null,!s&&y.a.createElement(P,{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}))}}])}(y.a.Component);_.propTypes={plugin:w.a.object.isRequired,config:w.a.object.isRequired,setInviteAccepted:w.a.func.isRequired,bFabVisible:w.a.bool.isRequired};var H;t.default=(H=_,function(e){return y.a.createElement(R.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 y.a.createElement(H,D()({},e,{expandLauncher:n,toggleLauncher:r,setInviteState:o,bFabVisible:i,setJourneyContext:a,handleEngageClick:s}))}))})},167:function(e,t,n){"use strict";var r=n(5),o=n(60),i=n(0),a=n.n(i),s=n(42),u=n.n(s),c=!1,l=n(43),d="unmounted",p="exited",f="entering",g="entered",m="exiting",h=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=g: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!==g&&(t=f):n!==f&&n!==g||(t=m)}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:g},(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:g},(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:m},(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(){}h.contextType=l.a,h.propTypes={},h.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},h.UNMOUNTED=d,h.EXITED=p,h.ENTERING=f,h.ENTERED=g,h.EXITING=m;t.a=h},20:function(e,t,n){var r=n(78),o=n(79),i=n(65),a=n(80);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},21:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return g})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return d}));var r=n(0),o=n(49),i=(n(1),n(47),n(83),n(23)),a=n(37),s=n(36),u={}.hasOwnProperty,c=Object(r.createContext)("undefined"!=typeof HTMLElement?Object(o.a)({key:"css"}):null);var l=c.Provider,d=function(e){return Object(r.forwardRef)((function(t,n){var o=Object(r.useContext)(c);return e(t,o,n)}))},p=Object(r.createContext)({});var f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",g=function(e,t){var n={};for(var r in t)u.call(t,r)&&(n[r]=t[r]);return n[f]=e,n},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Object(i.c)(t,n,r);Object(s.a)((function(){return Object(i.b)(t,n,r)}));return null},h=d((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var s=e[f],c=[o],l="";"string"==typeof e.className?l=Object(i.a)(t.registered,c,e.className):null!=e.className&&(l=e.className+" ");var d=Object(a.a)(c,void 0,Object(r.useContext)(p));l+=t.key+"-"+d.name;var g={};for(var h in e)u.call(e,h)&&"css"!==h&&h!==f&&(g[h]=e[h]);return g.ref=n,g.className=l,Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m,{cache:t,serialized:d,isStringTag:"string"==typeof s}),Object(r.createElement)(s,g))}))},211:function(e,t,n){"use strict";var r=n(39),o=n.n(r),i=n(8),a=n.n(i),s=n(0),u=n.n(s),c=n(6),l=n.n(c);function d(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 p(e){var t=e.icon,n=e||{},r=n.customStyle,i=n.iconProps;return u.a.createElement(t,o()({sx:function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({transform:"rtl"===e.direction?"scaleX(-1)":void 0},r)}},i))}p.propTypes={icon:l.a.elementType},t.a=p},213:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],c=n[u]||0,l="".concat(u," ").concat(c);n[u]=c+1;var d=s(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(p)):a.push({identifier:l,updater:h(p,t),references:1}),r.push(l)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,d=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function p(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function f(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var g=null,m=0;function h(e,t){var n,r,o;if(t.singleton){var i=m++;n=g||(g=c(t)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=c(t),r=f.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=s(n[r]);a[o].references--}for(var i=u(e,t),c=0;c<n.length;c++){var l=s(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},214:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,s,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},23:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}));function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0);i=i.next}while(void 0!==i)}}},234:function(e,t,n){"use strict";var r=n(27),o=n.n(r),i=n(28),a=n.n(i),s=n(40),u=n.n(s),c=n(32),l=n.n(c),d=n(34),p=n.n(d),f=n(0),g=n.n(f),m=n(6),h=n.n(m),v=n(280);function D(e,t,n){return t=l()(t),u()(e,b()?Reflect.construct(t,n||[],l()(e).constructor):t.apply(e,n))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}var y={marginBottom:"12px",borderRadius:"4px"},x=function(e){function t(e){return o()(this,t),D(this,t,[e])}return p()(t,e),a()(t,[{key:"render",value:function(){for(var e=this.props,t=e.rows,n=e.heights,r=[],o=0;o<t;o++)r.push(g.a.createElement(v.a,{height:n[o]||80,variant:"rectangular",style:y,key:o.toString()}));return g.a.createElement("div",null,r)}}])}(g.a.Component);x.propTypes={rows:h.a.number.isRequired,heights:h.a.array},t.a=x},235:function(e,t,n){"use strict";n.r(t);var r=n(81);n.d(t,"KnowledgeCard",(function(){return r.KnowledgeCard})),n.d(t,"KnowledgeSearch",(function(){return r.KnowledgeSearch})),n.d(t,"KnowledgeArticle",(function(){return r.KnowledgeArticle})),n.d(t,"KnowledgeResults",(function(){return r.KnowledgeResults})),n.d(t,"KnowledgeCategories",(function(){return r.KnowledgeCategories})),n.d(t,"initKnowledgeServicePlugin",(function(){return r.initKnowledgeServicePlugin}))},238:function(e,t,n){"use strict";n(39);var r=n(0),o=n(48),i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=Object(o.a)((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),s=n(1),u=n(21),c=n(23),l=n(37),d=n(36),p=a,f=function(e){return"theme"!==e},g=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?p:f},m=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},h=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=m(t,n,a),f=p||g(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<y;x++)b.push(D[x],D[0][x])}var w=Object(u.f)((function(e,t,n){var o=v&&e.as||d,a="",s=[],m=e;if(null==e.theme){for(var D in m={},e)m[D]=e[D];m.theme=Object(r.useContext)(u.c)}"string"==typeof e.className?a=Object(c.a)(t.registered,s,e.className):null!=e.className&&(a=e.className+" ");var y=Object(l.a)(b.concat(s),t.registered,m);a+=t.key+"-"+y.name,void 0!==i&&(a+=" "+i);var x=v&&void 0===p?g(o):f,w={};for(var C in e)v&&"as"===C||x(C)&&(w[C]=e[C]);return w.className=a,w.ref=n,Object(r.createElement)(r.Fragment,null,Object(r.createElement)(h,{cache:t,serialized:y,isStringTag:"string"==typeof o}),Object(r.createElement)(o,w))}));return w.displayName=void 0!==o?o:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=d,w.__emotion_styles=b,w.__emotion_forwardProp=p,Object.defineProperty(w,"toString",{value:function(){return"."+i}}),w.withComponent=function(t,r){return e(t,Object(s.a)({},n,r,{shouldForwardProp:m(w,r,!0)})).apply(void 0,b)},w}},D=v.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){D[e]=D(e)}));t.a=D},239:function(e,t,n){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var u=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else u.call(this)};var c=a.utcOffset;a.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(o)return s.$offset=a,s.$u=0===r,s;if(0!==r){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+u,e)).$offset=a,s.$x.$localOffset=u}else s=this.utc();return s};var l=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var p=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return p.call(this,e,t,n);var r=this.local(),o=i(e).local();return p.call(r,o,t,n)}}}()},240:function(e,t,n){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var o=n.prototype,i=o.format;r.en.formats=e,o.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,o){var i=o&&o.toUpperCase();return r||n[o]||e[o]||n[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return i.call(this,r)}}}()},241:function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},242:function(e,t,n){ /*! * CSSJanus. https://github.com/cssjanus/cssjanus * * Copyright 2014 Trevor Parscal * Copyright 2010 Roan Kattouw * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var r;function o(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",n="[^\\u0020-\\u007e]",r="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",s="(^|[^a-zA-Z])",u="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",c="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",l="(?:[_a-z0-9-]|"+n+"|"+c+")",d=r+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+n+"|"+c+")")+l+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+l+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+n+"|"+c+")*?",m="(?![a-zA-Z])",h="(?!("+l+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",v="(?!"+g+a+"\\))",D="(?="+g+a+"\\))",b="(\\s*(?:!important\\s*)?[;}])",y=/`TMP`/g,x=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),w=new RegExp("("+u+h+"[^;}]+;?)","gi"),C=new RegExp("("+u+"[^\\}]*?})","gi"),O=new RegExp("("+i+")ltr","gi"),E=new RegExp("("+i+")rtl","gi"),S=new RegExp(s+"(left)"+m+v+h,"gi"),j=new RegExp(s+"(right)"+m+v+h,"gi"),F=new RegExp(s+"(left)"+D,"gi"),A=new RegExp(s+"(right)"+D,"gi"),T=new RegExp(s+"(ltr)"+D,"gi"),M=new RegExp(s+"(rtl)"+D,"gi"),k=new RegExp(s+"([ns]?)e-resize","gi"),I=new RegExp(s+"([ns]?)w-resize","gi"),P=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+b,"gi"),R=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+b,"gi"),B=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 G(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 W(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?G(r)+" / "+G(o):G(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(T,"$1"+e).replace(M,"$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(k,"$1$2"+e).replace(I,"$1$2e-resize").replace(y,"w-resize").replace(N,W).replace(_,J).replace(H,Q).replace($,Q).replace(z,J).replace(q,Y).replace(V,Y).replace(P,"$1$2$3$8$5$6$7$4$9").replace(R,"$1$2$3$8$5$6$7$4$9").replace(B,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)},243:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(15);function o(){var e={oConfig:{},deploymentId:"",bNewRelicReady:!1,subscribeNewRelicReady:function(){Genesys("subscribe","NewRelic.ready",(function(){e.bNewRelicReady=!0}))},initNewRelicEvents:function(t){if(t){var n=t||{},r=n.preview,o=n.previewMode;(r||o)&&(e.bNewRelicReady=!1),e.oConfig=t,e.deploymentId=e.oConfig&&e.oConfig.deploymentId}},launcherOpened:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.z,deploymentId:e.deploymentId})},launcherMinimized:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.y,deploymentId:e.deploymentId})},messengerClosed:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.I,deploymentId:e.deploymentId})},attachmentFromUser:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.d,deploymentId:e.deploymentId})},attachmentFromAgent:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.c,deploymentId:e.deploymentId})},attachmentremoved:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.e,deploymentId:e.deploymentId})},attachmentClicked:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.a,deploymentId:e.deploymentId})},attachmentDownloaded:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.b,deploymentId:e.deploymentId})},historyFetched:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.n,deploymentId:e.deploymentId})},desktopMode:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.l,deploymentId:e.deploymentId})},mobileMode:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.L,deploymentId:e.deploymentId})},messageOnHover:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.B,deploymentId:e.deploymentId})},messageOnTouch:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.C,deploymentId:e.deploymentId})},messageOnFocus:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.A,deploymentId:e.deploymentId})}};return e}},244:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(15);function o(){var e={oConfig:{},deploymentId:"",bNewRelicReady:!1,subscribeNewRelicReady:function(){Genesys("subscribe","NewRelic.ready",(function(){e.bNewRelicReady=!0}))},initNewRelicPerformance:function(t){if(t){var n=t||{},r=n.preview,o=n.previewMode;(r||o)&&(e.bNewRelicReady=!1),e.oConfig=t,e.deploymentId=e.oConfig&&e.oConfig.deploymentId}},messengerOpen:function(t){if(e.bNewRelicReady){var n=t||{},o=n.context,i=n.attributes;Genesys("command","NewRelic.registerInteraction",{name:r.K,deploymentId:e.deploymentId,context:o||{},attributes:i||{}})}},conversationSetup:function(t){if(e.bNewRelicReady){var n=t||{},o=n.context,i=n.attributes;Genesys("command","NewRelic.registerInteraction",{name:r.j,deploymentId:e.deploymentId,context:o||{},attributes:i||{}})}},conversationRestore:function(t){if(e.bNewRelicReady){var n=t||{},o=n.context,i=n.attributes;Genesys("command","NewRelic.registerInteraction",{name:r.i,deploymentId:e.deploymentId,context:o||{},attributes:i||{}})}},fetchPreviousMessages:function(t){if(e.bNewRelicReady){var n=t||{},o=n.context,i=n.attributes;Genesys("command","NewRelic.registerInteraction",{name:r.o,deploymentId:e.deploymentId,context:o||{},attributes:i||{}})}},sendMessageRoundTrip:function(t){if(e.bNewRelicReady){var n=t||{},o=n.context,i=n.attributes;Genesys("command","NewRelic.registerInteraction",{name:r.E,deploymentId:e.deploymentId,context:o||{},attributes:i||{}})}},autoStart:function(t){if(e.bNewRelicReady){var n=t||{},o=n.context,i=n.attributes;Genesys("command","NewRelic.registerInteraction",{name:r.g,deploymentId:e.deploymentId,context:o||{},attributes:i||{}})}},autoStartFirstSystemMessage:function(t){if(e.bNewRelicReady){var n=t||{},o=n.context,i=n.attributes;Genesys("command","NewRelic.registerInteraction",{name:r.h,deploymentId:e.deploymentId,context:o||{},attributes:i||{}})}},messageReceivedOutOfOrder:function(t){if(e.bNewRelicReady){var n=t||{},o=n.context,i=n.attributes;Genesys("command","NewRelic.registerInteraction",{name:r.D,deploymentId:e.deploymentId,context:o||{},attributes:i||{}})}},sessionCleared:function(t){if(e.bNewRelicReady){var n=t||{},o=n.context,i=n.attributes;Genesys("command","NewRelic.registerInteraction",{name:r.N,deploymentId:e.deploymentId,context:o||{},attributes:i||{}})}}};return e}},245:function(e,t,n){"use strict";function r(){var e={bNewRelicReady:!1,subscribeNewRelicReady:function(){Genesys("subscribe","NewRelic.ready",(function(){e.bNewRelicReady=!0}))},initNewRelicErrors:function(t){var n=t||{},r=n.preview,o=n.previewMode;(r||o)&&(e.bNewRelicReady=!1)},newRelicError:function(t){if(e.bNewRelicReady&&t&&Object.keys(t).length){var n=t.errorName,r=t.errorMessage;Genesys("command","NewRelic.error",{name:n,data:{errorName:n||"",errorDesc:r||""}})}}};return e}n.d(t,"a",(function(){return r}))},246:function(e,t,n){"use strict";var r=n(20),o=n.n(r),i=n(27),a=n.n(i),s=n(28),u=n.n(s),c=n(40),l=n.n(c),d=n(32),p=n.n(d),f=n(34),g=n.n(f),m=n(8),h=n.n(m),v=n(0),D=n.n(v),b=n(6),y=n.n(b),x=n(674),w=n(113),C=n(577),O=n(587),E=n(46),S=n(241),j=n.n(S),F=n(39),A=n.n(F),T=(n(100),n(421)),M=n(234),k=n(211),I=n(291),P=n.n(I),R=n(290),B=n.n(R),L=n(4),N=n(41),_=n(94),H={width:"1px",height:"1px",overflow:"hidden",textIndent:"-9999px",border:"0"};function $(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 D.a.createElement("div",{style:H,className:"cx-status","aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",tabIndex:-1,dangerouslySetInnerHTML:{__html:Object(_.b)((t="",i&&("true"==i?t=s:"false"==i&&(t=u)),t))}})}$.propTypes={i18n:y.a.object.isRequired,lang:y.a.string.isRequired,appName:y.a.string.isRequired,showStatus:y.a.string};var z,q=n(13),V=n(15),U=n(12),G=n(235);n(250);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 K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){h()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e,t,n){return t=p()(t),l()(e,Y()?Reflect.construct(t,n||[],p()(e).constructor):t.apply(e,n))}function Y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Y=function(){return!!e})()}var Q=D.a.lazy((function(){return Promise.all([n.e(0),n.e(2),n.e(38)]).then(n.bind(null,692))})),X=Object(q.k)().os||"";"Mac OS X"===X&&(X="mac");var Z=Object(q.k)().browser||"",ee=!(!Z||"Internet Explorer"!==Z),te="",ne=Object(N.c)(z||(z=j()(["\n0% {\n transform: scale(0);\n opacity: 0.0!important;\n}\n\n100% {\n transform: scale(1);\n opacity: 0.1!important;\n}\n"]))),re=Object(L.a)("div")((function(e){var t=e.theme;return{"& .mxg-launcher-btn":h()(h()({position:"fixed!important",cursor:"pointer",bottom:"12px!important",color:function(e){return t.palette[e.color].contrastText+"!important"},backgroundColor:function(e){return t.palette[e.color].main+"!important"}},t.breakpoints.down("md"),{zIndex:9999}),"boxShadow","0px 3px 5px -2px rgb(0 0 0 / 20%), 0px 1px 4px 2px rgb(0 0 0 / 14%), 0px 1px 4px 1px rgb(0 0 0 / 12%)"),"& .MuiTouchRipple-rippleVisible":{opacity:"0.1!important",animationName:"".concat(ne,"!important")},"& .mxg-skeleton":{position:"fixed",bottom:"12px",borderRadius:"4px",right:"1em",width:"92%"},"& .mxg-expand-more-icon":{width:ee?"100%!important":"38px!important",height:ee?"100%!important":"38px!important"}}})),oe=function(){return(window.parent.frames.MessengerLauncherFrame||{}).launcher||{}},ie=function(){return(window.parent.frames.MessengerFrame||{}).messenger||{}},ae=function(e){function t(e){var n;a()(this,t),n=J(this,t,[e]),h()(n,"fStore",(function(e){n.store=e})),h()(n,"fResetConversationCleared",(function(){n.previousConversationCleared=!1})),h()(n,"hideLauncherOnDemand",(function(){var e=(oe().state||{}).bFabVisible;"ondemand"===(n.props.config||{}).launcherButton.visibility.toLowerCase()&&e&&n.oLauncher&&(n.oLauncher.command("Launcher.hide"),n.props.resetRoute())})),h()(n,"isTablet",(function(){var e=(n.props||{}).config.fullScreen,t=((n.messengerProps||{}).messengerProps||{}).messengerRef,r=Object(q.x)(),o=[];return t&&t.current&&(o=t.current.classList.value.split(" ")),!e&&!(!o.includes("cx-messenger-tablet")||r)})),h()(n,"handleLauncherClick",(function(e){var t=n.props,r=t.toggleLauncher,o=t.bInvite;n.checkActiveConversation().then((function(){r()})),o&&n.props.inviteAccepted()})),h()(n,"handleLauncherKeyDown",(function(e){if(e&&9===e.which&&e.shiftKey){var t=n.props||{},r=t.config,o=t.sMessengerOpen,i=(((r||{}).apps||{}).knowledge||{}).enabled,a=(((n||{}).messengerProps||{}).messengerProps||{}).knowledgeWrapperRef;if(i&&"true"==o&&a&&a.current){var s=a.current.querySelectorAll('*[tabindex="0"]');s&&s.length&&(e.preventDefault(),s[s.length-1].focus())}}})),h()(n,"fcStoreConvPluginRef",(function(e){e&&(n.oConversationPlugin=e)})),h()(n,"setHomeDimension",(function(){var e=ie().state,t=n.props.iframeOrigin?n.props:e,r=t.view,o=t.iHomeScreenHeight,i=[n.sConversationClassName],a=U.E;return r&&("home"===r?(o&&(a=o),i=[n.sHomeClassName,te]):a=U.E),{homeScreenHeight:a,aAddClassList:i}})),h()(n,"setConvDimension",(function(){var e=n.props,t=e.expandLauncher,r=e.sMessengerOpen,o=e.config||{},i=o.position,a=o.headlessMode,s=o.home,u=o.fullScreen,c=o.apps,l=o.cobrowse,d=(a||{}).enabled,p=U.E,f=[n.sConversationClassName],g=[],m=l||{},h=m.enabled,v=m.channels,D=!!(h&&v&&v.length)&&v.includes("voice"),b=((c||{}).knowledge||{}).enabled,y=!(!s&&!b&&!D);if(u?f.push("genesys-mxg-frame-fullscreen"):g.push("genesys-mxg-frame-fullscreen"),!d){if((t||"true"===r||n.oLauncher)&&n.oLauncher.command("MessengerHelper.setDirection",{position:i}),y&&!Object(q.x)()&&!Object(q.u)()){var x=n.setHomeDimension(),w=x.homeScreenHeight,C=x.aAddClassList;p=w,f=C}setTimeout((function(){n.oLauncher&&n.oLauncher.command("MessengerHelper.setDimension",{conversations:{height:p,width:U.F,addClass:f,removeClass:g}})}),80)}})),h()(n,"removeConvDimension",(function(){n.oLauncher&&n.oLauncher.command("MessengerHelper.setDimension",{conversations:{height:0,width:0,removeClass:[n.sConversationClassName,n.sHomeClassName]}})})),h()(n,"determineDimensions",(function(){var e=n.props.sMessengerOpen,t=n.props.config,r=t.launcherButton.visibility;(t.headlessMode||{}).enabled||("on"==r?n.setDimensions():"off"==r&&"true"==e?n.setConvDimension():n.resetDimensions())})),h()(n,"determinePosition",(function(){var e=n.props,t=e.expandLauncher,r=e.sMessengerOpen,o=(e.config||{}).position;(t||"true"==r)&&n.oLauncher&&n.oLauncher.command("MessengerHelper.setDirection",{position:o})})),h()(n,"setDimensions",(function(){if(n.oLauncher){var e=n,t=n.props,r=t.expandLauncher,o=t.bInvite,i=t.sMessengerOpen,a=t.config,s=t.expandedArticle,u=t.setArticleExpanded,c=t.bToaster,l=t.iToasterHeight,d=(t.view,a||{}),p=d.position,f=d.home,g=d.fullScreen,m=d.apps,h=d.cobrowse,v=((m||{}).knowledge||{}).enabled,D=h||{},b=D.enabled,y=D.channels,x=!!(b&&y&&y.length)&&y.includes("voice"),w=!(!f&&!v&&!x),C=oe().fabVisibility,O=ie().state||{},E=O.bToaster,S=O.iToasterHeight,j=0,F=U.E,A=[n.sConversationClassName],T=[n.sConversationClassName,"genesys-mxg-expand","genesys-mxg-frame-transition",n.sHomeClassName,"genesys-mxg-toaster",te];if(g?A.push("genesys-mxg-frame-fullscreen"):T.push("genesys-mxg-frame-fullscreen"),e.oDimensions={launcher:{height:C&&"off"===C?0:72,width:C&&"off"===C?0:72,removeClass:T}},(c&&l||E&&S)&&(e.oDimensions.toaster={height:l||S,width:U.Q,addClass:["genesys-mxg-toaster"]}),r||"true"===i){if(w&&!Object(q.x)()&&!Object(q.u)()){var M=n.setHomeDimension();F=M.homeScreenHeight,A=M.aAddClassList}e.oDimensions.conversations=s?{height:U.B,width:U.C,addClass:[n.sConversationClassName,"genesys-mxg-expand"]}:{height:F,width:U.F,addClass:A},e.oLauncher.command("MessengerHelper.setDirection",{position:p})}else"boolean"!=typeof r||!1!==r||"false"!==i||o||(j=50,e.oLauncher.command("MessengerHelper.setDirection",{position:p}),e.oDimensions.conversations={width:0,height:0,removeClass:[n.sConversationClassName,n.sHomeClassName,"genesys-mxg-frame-transition"]},s&&u(!1));j>0?setTimeout((function(){e.oLauncher.command("MessengerHelper.setDimension",e.oDimensions)}),j):e.oLauncher.command("MessengerHelper.setDimension",e.oDimensions)}})),h()(n,"resetDimensions",(function(){if(n.oLauncher){var e=(n.props.config||{}).position;Object(q.x)()&&n.oLauncher.command("MessengerHelper.setDirection",{position:e}),n.oLauncher.command("MessengerHelper.setDimension",{launcher:{height:0,width:0,removeClass:[n.sConversationClassName,n.sHomeClassName]}})}})),h()(n,"showLauncher",(function(){var e=n.props,t=e.config,r=(e.expandLauncher,((t||{}).headlessMode||{}).enabled),o=(ie().state||{}).updateHeader;r||(n.setState({fabVisibility:"on"}),n.props.iframeOrigin||(window.launcher.fabVisibility="on"),n.setDimensions(),n.props.setFabVisibility(!0),o&&o({bFabVisible:!0}),n.oLauncher&&(n.oLauncher.command("MessengerHelper.setPositions",{showLauncher:!0}),n.oLauncher.publish("visible",{journeyContext:n.oJourneyContext})))})),h()(n,"hideLauncher",(function(){n.props.expandLauncher;var e=(ie().state||{}).updateHeader;n.setState({fabVisibility:"off"}),n.props.iframeOrigin||(window.launcher.fabVisibility="off"),n.resetDimensions(),n.props.setFabVisibility(!1),e&&e({bFabVisible:!1}),n.oLauncher&&(n.oLauncher.command("MessengerHelper.setPositions",{showLauncher:!1}),n.oLauncher.publish("hidden",{journeyContext:n.oJourneyContext}))})),h()(n,"loadChatServicePlugin",(function(e,t){var r=e||n.props,i=r.config,a=r.oPlugins,s=r.iframeOrigin,u=(t||{}).autoClosed,c=(n.props||{}).newRelic,l=(i.headlessMode||{}).enabled,d=Object(q.r)(n.props.config),p={config:i,newRelic:c||{}};s&&"MessengerFrame"===s&&!n.bLoadingChatServicePlugin&&(a.MessagingService?u||n.state.bConversationActive?u||n.oLauncher.command(d+".get",{name:n.storagePrefix+n.subConversationStorage}).then((function(e){if(e){var t=e.split(" "),r=o()(t,1)[0];r&&"string"==typeof r&&"true"===r&&n.oLauncher.command("MessagingService.init")}})):n.oLauncher.command("MessagingService.init"):(n.bLoadingChatServicePlugin=!0,Genesys("loadPlugin","MessagingService",p,(function(){n.bLoadingChatServicePlugin=!1,n.props.setPlugin("MessagingService",{}),l||n.setState({bConversationActive:!0})}))))})),h()(n,"initKnowledgeServicePlugin",(function(){var e=n.props,t=e.config;e.oPlugins.KnowledgeService||Object(G.initKnowledgeServicePlugin)(t).then((function(e){n.props.setPlugin("KnowledgeService",e)}))})),h()(n,"checkActiveConversation",(function(e){var t=n,r=e||{},i=r.nextProps,a=r.conversationStatus,s=n.props,u=s.config,c=u.preview,l=u.apps,d=s.oPlugins,p=s.iframeOrigin,f=((l||{}).conversations||{}).enabled;!n.oLauncher&&d&&d[n.sPluginName]&&(n.oLauncher=d[n.sPluginName]),n.oLauncher||p&&"MessengerFrame"===p&&d&&d.Messenger&&(n.oLauncher=d.Messenger);var g=Object(q.r)(n.props.config),m=new Promise((function(e,r){n.oLauncher.command(g+".get",{name:n.storagePrefix+n.subConversationStorage}).then((function(r){if(r){var s=r.split(" "),u=o()(s,1)[0];u&&"string"==typeof u&&"true"===u?(f?(t.previousConversationExpired=!1,n.loadChatServicePlugin(i||n.props,a)):c||(t.previousConversationExpired=!0),e({previousSessionInActive:t.previousConversationExpired})):(c||(t.previousConversationExpired=!0),e({previousSessionInActive:t.previousConversationExpired}))}else c||(t.previousConversationExpired=!0),e({previousSessionInActive:t.previousConversationExpired})}),(function(e){}))}));return m})),h()(n,"openConversation",(function(e){var t=(n.messengerProps||{}).openConversation;t&&t(e)})),h()(n,"openSearch",(function(e){var t=(n.messengerProps||{}).openSearch;t&&t(e)})),h()(n,"openCobrowseConnect",(function(e){var t=(n.messengerProps||{}).openCobrowseConnect;t&&t(e)})),h()(n,"openCobrowseSharing",(function(e){var t=(n.messengerProps||{}).openCobrowseSharing;t&&t(e)})),h()(n,"openHome",(function(){var e=(n.messengerProps||{}).openHome;e&&e()})),h()(n,"onCobrowseVoiceSessionStart",(function(){var e=(n.messengerProps||{}).onCobrowseVoiceSessionStart;e&&e()})),h()(n,"onCobrowseVoiceSessionEnd",(function(){var e=(n.messengerProps||{}).onCobrowseVoiceSessionEnd;e&&e(),n.setState({bActiveCobrowseSession:!1})})),h()(n,"launcherPlugin",(function(){var e=n.props.config,t=e.launcherButton.visibility,r=e.auth,o=e.apps,i=r||{},a=i.enabled,s=(i.allowSessionUpgrade,((o||{}).conversations||{}).enabled),u=!1;Genesys("registerPlugin","Launcher",(function(e){n.oLauncher=e,n.oLauncher&&("on"==t&&n.oLauncher.publish("visible"),n.oLauncher.registerCommand("clear",(function(e){e&&e.commander&&"Messenger"!==e.commander&&e.reject("".concat(e.commander," plugin does not have permission to access clear SubMessenger plugin command")),u=!0,n.oLauncher.publish("cleared"),e.resolve()})),n.oLauncher.registerCommand("show",(function(e){if(u)e.reject(U.e);else if("ondemand"===t.toLowerCase())if("on"===n.state.fabVisibility){var r={errorName:V.x,errorMessage:V.x};n.nRMessengerErrorMetrics.newRelicError(r),e.resolve()}else n.showLauncher(),e.resolve();else{var o={errorName:V.s,errorMessage:V.s};n.nRMessengerErrorMetrics.newRelicError(o),e.reject("Invalid configuration of Launcher button")}})),n.oLauncher.registerCommand("hide",(function(e){if(u)e.reject(U.e);else if("ondemand"===t.toLowerCase()||a)if("off"===n.state.fabVisibility){var r={errorName:V.w,errorMessage:V.w};n.nRMessengerErrorMetrics.newRelicError(r),e.reject("Launcher button is already hidden")}else n.hideLauncher(),e.resolve();else{var o={errorName:V.s,errorMessage:V.s};n.nRMessengerErrorMetrics.newRelicError(o),e.reject("Invalid configuration of Launcher button")}})),s&&n.checkActiveConversation(),n.determineDimensions(),a&&s&&n.loadChatServicePlugin(n.props),n.oLauncher.subscribe("MessagingService.restored",(function(){var e=(oe().state||{}).bFabVisible;"ondemand"!==n.state.fabVisibility||e||n.oLauncher.command("Launcher.show")})),n.oLauncher.ready(),n.props.setPlugin("Launcher",n.oLauncher))}))}));var r=e.config,i=r.launcherButton.visibility,s=r.deploymentId,u=r.auth||{},c=u.enabled,l=u.allowSessionUpgrade;n.state={ExternalComponent:"",fabVisibility:i||"on",bConversationActive:!1,bActiveCobrowseSession:!1},n.sPluginName="Launcher",n.oLauncher="",n.oJourneyContext=e.journeyContext||{},n.customerId="",n.sessionId="",n.previousConversationExpired=!1,n.previousConversationCleared=!1,n.oConversationPlugin={},n.store={},n.oDisableInputs=e.oDisableInputs||{},n.sConversationClassName=Object(q.l)(e.config),n.sHomeClassName=Object(q.m)(e.config),n.launcherBtnRef=Object(v.createRef)(),n.statusRef=Object(v.createRef)(),n.messengerProps="",n.storagePrefix=s+":gcmc",n.subConversationStorage="sessionActive",n.bLoadingChatServicePlugin=!1;var d=(e||{}).newRelic||{},p=d.pageActionMetrics,f=d.errorMetrics;n.nRMessengerPageActionMetrics=p,n.nRMessengerErrorMetrics=f;var g=Object(q.r)(e.config),m=n;return Genesys("subscribe","Identifiers.ready",(function(){Genesys("command","Identifiers.getAll",{},(function(e){e&&(e.customerId&&(m.customerId=e.customerId),e.sessionId&&(m.sessionId=e.sessionId))}))})),Genesys("subscribe","Auth.authenticated",(function(){if(c){var e=n.state.fabVisibility;"on"===i&&"off"===e&&n.showLauncher()}})),Genesys("subscribe","Auth.signedIn",(function(){c&&l&&Genesys("command",g+".remove",{name:n.storagePrefix+"sessionActive"})})),Genesys("subscribe","Auth.signedOut",(function(){c&&e.logoutMessenger()})),Genesys("subscribe","Auth.logoutError",(function(){c&&e.logoutMessenger()})),Genesys("subscribe","CobrowseService.sessionStarted",(function(e){((e||{}).data||{}).joinCode;n.onCobrowseVoiceSessionStart(),n.setState({bActiveCobrowseSession:!0}),n.props.setCobrowseSessionStatus(!0)})),Genesys("subscribe","CobrowseService.sessionEnded",(function(e){n.onCobrowseVoiceSessionEnd(),n.props.setCobrowseSessionStatus(!1)})),Genesys("subscribe","MessagingService.conversationCleared",(function(){n.previousConversationCleared=!0,n.hideLauncherOnDemand()})),Genesys("subscribe","MessagingService.sessionExpired",(function(){n.hideLauncherOnDemand()})),n}return g()(t,e),u()(t,[{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,p=Object(q.x)();"MessengerFrame"==e&&(p?this.nRMessengerPageActionMetrics.mobileMode(V.L):this.nRMessengerPageActionMetrics.desktopMode(V.l)),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=oe().fabVisibility,t=this.state.fabVisibility,n=this.props,r=n.sMessengerOpen,o=n.headlessMode,i=n.iframeOrigin,a=n.expandLauncher,s=n.config,u=(s||{}).launcherButton.visibility,c=(o||{}).enabled;this.sConversationClassName=Object(q.l)(s),this.sHomeClassName=Object(q.m)(s);var l="ondemand"===u.toLowerCase()?e:t;c||("on"==l||"ondemand"==l&&a?i&&"MessengerFrame"===i&&this.setDimensions():"off"==l&&"true"==r?i&&"MessengerFrame"===i&&this.setConvDimension():i&&"MessengerFrame"===i&&this.resetDimensions()),this.previousConversationCleared&&!a&&this.launcherBtnRef&&this.launcherBtnRef.current&&this.launcherBtnRef.current.focus()}},{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,g=(l.preview,(u||{}).enabled),m=(p||{}).enabled,h=(f||{}).conversations,v=(c||{}).conversations,D=(h||{}).enabled,b=(v||{}).enabled,y=(oe().state||{}).expandLauncher;if(b&&b!==D&&(m?this.loadChatServicePlugin(e):this.checkActiveConversation({nextProps:e})),!m&&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 g&&"boolean"==typeof m&&g!==m&&(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),g=f.fabVisibility,m=f.bConversationActive,h=n.i18n,b=n.lang,y=n.position,x=n.documentDirection,w=n.home,C=n.headlessMode,O=n.apps,E=n.cobrowse,S=n.launcherButton.visibility,j=O||{},F=j.conversations,A=(j.knowledge||{}).enabled,I=(F||{}).enabled,R=(C||{}).enabled,L=h[b][this.sPluginName.toLowerCase()],N=L.ariaOpenButton,_=L.ariaMinimizeButton,H=y.alignment,z=E||{},V=z.enabled,U=z.channels,G=!!(V&&U&&U.length)&&U.includes("voice"),W=!!A||!!I||!!G,J={},Y=oe().fabVisibility,ee="ondemand"===S.toLowerCase()?Y:g,ne=(this.state.ExternalComponent,"on"===ee),ie={right:"unset",left:"8px"},ae={right:"8px",left:"unset"};if(H)switch(H){case"right":J=ae;break;case"left":J=ie;break;case"auto":x&&("ltr"===x&&(J=ae),"rtl"===x&&(J=ie))}i&&(this.oJourneyContext=K(K({},this.oJourneyContext),i)),this.customerId&&(this.oJourneyContext.customer=K(K({},this.oJourneyContext.customer),{},{id:this.customerId})),this.sessionId&&(this.oJourneyContext.customerSession=K(K({},this.oJourneyContext.customerSession),{},{id:this.sessionId})),te=Object(q.x)()?"mxg-mobile-"+X.toLowerCase()+"-"+Z.toLowerCase():"mxg-desktop-"+X.toLowerCase()+"-"+Z.toLowerCase();return D.a.createElement(D.a.Fragment,null,!R&&W&&D.a.createElement(re,{className:"".concat(te)},D.a.createElement(v.Suspense,{fallback:D.a.createElement("div",{className:"mxg-skeleton"},o&&D.a.createElement(M.a,{rows:2,heights:[60,180]}))},d&&"MessengerFrame"===d&&(o||m)&&D.a.createElement(Q,{open:o,activePreviousConversation:m,previousConversationExpired:this.previousConversationExpired,previousConversationCleared:this.previousConversationCleared,fResetConversationCleared:this.fResetConversationCleared,messengerClosed:u,closeMessenger:c,fabVisible:ne,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:te,cobrowseActiveSession:this.state.bActiveCobrowseSession})),ne&&!d&&D.a.createElement(T.a,{ref:this.launcherBtnRef,className:"mxg-launcher-btn",color:r,style:J,onClick:this.handleLauncherClick,onKeyDown:this.handleLauncherKeyDown,"aria-expanded":!!o,"aria-label":o?_:N,title:o?_:N},o?D.a.createElement(P.a,{fontSize:"large",alt:"",className:"mxg-expand-more-icon"}):D.a.createElement(k.a,{icon:B.a,customStyle:{width:"26px",height:"26px",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},alt:""})),D.a.createElement($,{i18n:h,lang:b,appName:"conversations",showStatus:!s||w||A?"false":"true"})))}}])}(D.a.Component);ae.propTypes={color:y.a.string.isRequired,config:y.a.object,expandLauncher:y.a.bool.isRequired,toggleLauncher:y.a.func.isRequired,Toaster:y.a.elementType.isRequired,oPlugins:y.a.object.isRequired,setPlugin:y.a.func.isRequired,bInvite:y.a.bool.isRequired,inviteAccepted:y.a.func.isRequired,setFabVisibility:y.a.func.isRequired,journeyContext:y.a.object,oDisableInputs:y.a.object.isRequired,enableFocusControls:y.a.func,disableFocusControls:y.a.func,getComponentMethods:y.a.func};var se,ue=(se=ae,function(e){return D.a.createElement(E.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,g=t.oDisableInputs,m=t.disableFocusControls,h=t.enableFocusControls,v=t.setArticleExpanded,b=t.expandedArticle,y=t.store,x=t.iHomeScreenHeight,w=t.view,C=t.bAddTransition,O=t.bToaster,E=t.iToasterHeight,S=t.setCobrowseSessionStatus,j=t.resetRoute,F=t.newRelic;return D.a.createElement(se,A()({},e,{store:y,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:g,setArticleExpanded:v,expandedArticle:b,disableFocusControls:m,enableFocusControls:h,iHomeScreenHeight:x,view:w,bAddTransition:C,setCobrowseSessionStatus:S,resetRoute:j,newRelic:F}))}))}),ce=n(163),le=n(128),de="#0165A7",pe="#D2ECFD",fe="#FFFFFC",ge="#B0B0B0",me="#ECECEC",he="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)",ve="#7575754f",De="rgba(0, 0, 0, 0.87)",be=Object(q.x)(),ye="0.938rem",xe={palette:{mode:"dark",common:{blue:"".concat(de),red:"".concat(pe),white:"".concat(fe),darkGrey:"".concat("#A1A1A1"),mediumGrey:"".concat(ge),lightGrey:"".concat(me),boxShadow:"".concat(he),smokeGrey:"".concat(ve),textColor:"".concat(De),outlineColor:"".concat("rgba(0, 0, 0, 0.55)")},primary:{main:"".concat(de)},secondary:{main:"".concat(pe)},error:{main:"".concat("#B00020")},highlight:{main:"".concat("#b5e2e8")},contrastThreshold:4.5,text:{default:"".concat(fe),contrast:"".concat(De)}},typography:{fontSize:15,fontFamily:'"-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Open Sans", "Helvetica Neue", "sans-serif";',body1:{fontSize:ye,color:"textSecondary",fontWeight:400},body2:{fontSize:ye,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:h()(h()({MuiCard:{defaultProps:{elevation:2}},MuiAutocomplete:{styleOverrides:{root:h()({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(he)}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"unset",transition:"none!important"},elevation2:{boxShadow:"".concat(he)}}},MuiTypography:{styleOverrides:{subtitle2:{fontWeight:"400"}}},MuiButtonBase:{styleOverrides:{root:{"&:focus-visible":{outline:"2px solid",outlineOffset:"-3px"}}}},MuiButton:{styleOverrides:{root:{},containedPrimary:{margin:"0 auto 12px auto",display:"block"},containedSecondary:{margin:"0 auto 12px auto",display:"block",backgroundColor:"".concat(me,"!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(ve,"!important")}},outlinedInherit:{backgroundColor:"".concat(me,"!important"),borderColor:"transparent!important"}}},MuiChip:{styleOverrides:{borderColor:"".concat(me,"!important"),outlinedPrimary:{"&:hover":{backgroundColor:"".concat(me,"!important")},"&:focus":{backgroundColor:"".concat(me,"!important")}}}},MuiLinearProgress:{styleOverrides:{root:{height:"5px"},query:{transform:"rotate(0deg)"},colorPrimary:{backgroundColor:"".concat(ge)},barColorPrimary:{backgroundColor:"".concat(me)}}},MuiIconButton:{styleOverrides:{root:{padding:"12px"}}},MuiAlert:{styleOverrides:{icon:{width:"1em",height:"1em"}}},MuiFab:{styleOverrides:{root:{borderRadius:"50%!important"}}},MuiMenu:{styleOverrides:{root:{zIndex:99999}}},MuiTextField:{styleOverrides:{root:{backgroundColor:"".concat(fe),borderRadius:"4px"}}}},"MuiAutocomplete",{styleOverrides:{option:{minHeight:"30px!important"},popper:{color:"".concat(De)}}}),"MuiInputBase",{styleOverrides:{root:{fontSize:be?"1rem":ye,lineHeight:"1.1876em"}}}),breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536}}},we="#0165A7",Ce="#D2ECFD",Oe="#FFFFFC",Ee="#444444d9",Se="#757575",je="#ECECEC",Fe="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)",Ae="#7575754f",Te="rgba(0, 0, 0, 0.87)",Me=Object(q.x)(),ke="0.938rem",Ie={palette:{mode:"light",common:{blue:"".concat(we),red:"".concat(Ce),white:"".concat(Oe),darkGrey:"".concat(Ee),mediumGrey:"".concat(Se),lightGrey:"".concat(je),boxShadow:"".concat(Fe),smokeGrey:"".concat(Ae),textColor:"".concat(Te),outlineColor:"".concat("rgba(0, 0, 0, 0.55)")},primary:{main:"".concat(we)},secondary:{main:"".concat(Ce)},info:{main:"".concat(Oe)},error:{main:"".concat("#B00020")},highlight:{main:"".concat("#b5e2e8")},contrastThreshold:4.5,text:{default:"".concat(Oe),contrast:"".concat(Te)}},typography:{fontSize:15,fontFamily:'"-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Open Sans", "Helvetica Neue", "sans-serif";',body1:{fontSize:ke,color:"textSecondary",fontWeight:400},body2:{fontSize:ke,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:h()(h()({MuiCard:{defaultProps:{elevation:2}},MuiAutocomplete:{styleOverrides:{root:h()({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(Fe)}}},MuiPaper:{styleOverrides:{root:{transition:"none!important"},elevation2:{boxShadow:"".concat(Fe)}}},MuiTypography:{styleOverrides:{subtitle2:{fontWeight:"400"}}},MuiSnackbarContent:{styleOverrides:{root:{color:Ee,backgroundColor:"#fff"}}},MuiButtonBase:{styleOverrides:{root:{"&:focus-visible":{outline:"2px solid",outlineOffset:"-3px"}}}},MuiButton:{styleOverrides:{root:{textTransform:"none"},containedPrimary:{margin:"0 auto 12px auto",display:"block"},containedSecondary:{margin:"0 auto 12px auto",display:"block",backgroundColor:"".concat(je,"!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(Ae,"!important")}},outlinedInherit:{backgroundColor:"".concat(je,"!important"),borderColor:"transparent!important"}}},MuiChip:{styleOverrides:{outlined:{borderColor:"".concat(Se)},outlinedPrimary:{"&:hover":{backgroundColor:"".concat(je,"!important")},"&:focus":{backgroundColor:"".concat(je,"!important")}}}},MuiLinearProgress:{styleOverrides:{root:{height:"5px"},query:{transform:"rotate(0deg)"},colorPrimary:{backgroundColor:"".concat(Se)},barColorPrimary:{backgroundColor:"".concat(je)}}},MuiIconButton:{styleOverrides:{root:{padding:"12px"}}},MuiAlert:{styleOverrides:{icon:{width:"1em",height:"1em"}}},MuiFab:{styleOverrides:{root:{borderRadius:"50%!important"}}},MuiMenu:{styleOverrides:{root:{zIndex:99999}}},MuiTextField:{styleOverrides:{root:{backgroundColor:"".concat(Oe),borderRadius:"4px"}}}},"MuiAutocomplete",{styleOverrides:{option:{minHeight:"30px!important"},popper:{color:"".concat(Te)}}}),"MuiInputBase",{styleOverrides:{root:{fontSize:Me?"1rem":ke,lineHeight:"1.1876em"}}}),breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536}}},Pe=(n(343),n(242)),Re=n.n(Pe),Be=n(3);function Le(e,t,n){switch(e.type){case Be.c:case Be.b:case Be.a:return e.return=e.return||e.value;case Be.h:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===Be.a&&(e.children=e.value)}))}var r=Object(Be.B)(Array.prototype.concat(e.children),Le);return Object(Be.E)(r)?e.return=e.value+"{"+r+"}":""}function Ne(e,t,n,r){if(e.type===Be.d||e.type===Be.i||e.type===Be.h&&(!e.parent||e.parent.type===Be.e||e.parent.type===Be.h)){var o=Re.a.transform(Le(e));e.children=o?Object(Be.n)(o)[0].children:[],e.return=""}}Object.defineProperty(Ne,"name",{value:"stylisRTLPlugin"});var _e=Ne,He=n(21),$e=n(49);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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){h()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ve(e,t,n){return t=p()(t),l()(e,Ue()?Reflect.construct(t,n||[],p()(e).constructor):t.apply(e,n))}function Ue(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ue=function(){return!!e})()}O.a.configure((function(e){return"Cx-".concat(e)}));var Ge=["conversations"],We=Ie,Ke=(Object(q.x)(),Object(q.k)().os||"");"Mac OS X"===Ke&&(Ke="mac");var Je=Object(q.k)().browser||"",Ye="",Qe=function(e){function t(e){var n;a()(this,t),n=Ve(this,t,[e]),h()(n,"resetRoute",(function(){n.setState({route:""})})),h()(n,"setView",(function(e){n.state.view!==e&&n.setState({view:e})})),h()(n,"verifyStorageAndRemove",(function(){return new Promise((function(e,t){var r=n.props,i=r.oMessenger,a=(r.oConfig||{}).deploymentId,s=a+U.A+U.O;a?i.command(n.storage+".get",{name:s}).then((function(t){var r=t.split(":"),a=o()(r,2),u=a[0],c=a[1];u&&"string"==typeof u&&!c?i.command(n.storage+".remove",{name:s}).then((function(t){e()})):e()})):e()}))})),h()(n,"verifyCobrowseVoiceSessionAndConnect",(function(){n.state.bCobrowseInProgress?n.toggleLauncher({route:"cobrowse.sharing"}):n.toggleLauncher({route:"cobrowse.connect"})})),h()(n,"expandLauncher",(function(){n.setState((function(){return{expandLauncher:!0}}))})),h()(n,"collapseLauncher",(function(){n.setState((function(){return{expandLauncher:!1}}))})),h()(n,"openCommand",(function(e){var t=n.props,r=t.oMessenger,i=t.iframeOrigin,a=n.state,s=a.expandLauncher,u=a.bInvite,c=a.config,l=a.bFabVisible,d=((c||{}).launcherButton||{}).visibility,p=(e.data||{}).apps||[{name:"conversations"}],f=o()(p,1)[0];n.checkAuthentication().then((function(){if(f){var t=f.name,o=f.data;if(t&&Ge.indexOf(t)>-1){var a=(n.launcherProps||{}).checkActiveConversation;if(s){var c={errorName:V.H,errorMessage:V.H};n.nRMessengerErrorMetrics.newRelicError(c),n.pOpenCmdReject&&(n.pOpenCmdReject(),n.pOpenCmdReject=""),e.reject("Messenger is already opened.")}else a&&a().then((function(){u&&n.inviteAccepted(),i&&r.command("SubMessenger.expandLauncher"),n.setState((function(e){return{expandLauncher:!0,sMessengerOpen:"true",messengerClosed:!1,config:qe(qe({},e.config),{},{apps:Object(q.y)(!0,e.config.apps,h()({},t,qe(qe({},e.config.apps[t]),o)))})}})),d&&"ondemand"===d.toLowerCase()&&!l&&r.command("Launcher.show"),r.command(n.storage+".set",{name:n.messengerStorage+n.subOpenStorage,value:"true"}),n.pOpenCmdResolve&&(n.pOpenCmdResolve(),n.pOpenCmdResolve=""),e.resolve()}))}else{var p={errorName:V.u,errorMessage:V.u};n.nRMessengerErrorMetrics.newRelicError(p),n.pOpenCmdReject&&(n.pOpenCmdReject(),n.pOpenCmdReject=""),e.reject("Invalid open command. Should specify supported plugin name.")}}else{var g={errorName:V.t,errorMessage:V.t};n.nRMessengerErrorMetrics.newRelicError(g),n.pOpenCmdReject&&(n.pOpenCmdReject(),n.pOpenCmdReject=""),e.reject("Invalid open command. Should specify plugin name.")}}),(function(){var t={errorName:V.Q,errorMessage:V.Q};n.nRMessengerErrorMetrics.newRelicError(t),n.pOpenCmdReject&&(n.pOpenCmdReject(),n.pOpenCmdReject=""),e.reject("User is not authenticated")}))})),h()(n,"configure",(function(e){n.configureStyles(e),e&&(e.direction&&"rtl"===e.direction?n.selectedCache=n.emotionCache.RTL:n.selectedCache=n.emotionCache.LTR),e&&Object.keys(e).length&&n.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 r=e.oConfig,i=e.oMessenger,s=e.iframeOrigin,u=e.newRelic,c=r.styles,l=r.launcherButton,d={visibility:"on",location:"right"},p=r.deploymentId;n.emotionCache={LTR:Object($e.a)({key:"cx-messenger",prepend:!0}),RTL:Object($e.a)({key:"cx-messenger-rtl",stylisPlugins:[_e],prepend:!0})},n.selectedCache=n.emotionCache.LTR,n.iHeaderHeight="",n.journeyContext={},n.oCustomer={},n.oToasterContent={},n.rejectedOffersSet=new Set,n.expandedArticle=!1,n.bPublishedReady=!1,n.bLauncherReady=!1,n.bMessengerCleared=!1,n.inviteAccepted=function(){},n.sConversationClassName=Object(q.l)(r),n.sHomeClassName=Object(q.m)(r),n.pOpenCmdResolve="",n.pOpenCmdReject="",n.launcherProps="",n.oCobrowseEvents={active:U.j,accepted:U.i,rejected:U.l,expired:U.k};var f=u||{},g=f.pageActionMetrics,m=f.performanceMetrics,v=f.errorMetrics;(n.oNewRelic=u||{},n.nRMessengerPageActionMetrics=g,n.nRMessengerPerformanceMetrics=m,n.nRMessengerErrorMetrics=v,n.nRMessengerPageActionMetrics.initNewRelicEvents(r),n.nRMessengerErrorMetrics.initNewRelicErrors(r),n.storage=Object(q.r)(r),n.messengerStorage=p?p+":gcmc":"_gcmc",n.subOpenStorage="opn",c&&c.modeType&&"auto"===c.modeType)&&(window.matchMedia("(prefers-color-scheme: dark)").matches&&(We=xe));if(l){var D=l.visibility,b=l.location;"string"==typeof D&&(d.visibility=D.toLowerCase()),b&&"string"==typeof b&&(d.location=b.toLowerCase())}return n.toggleLauncher=function(t,r){return new Promise((function(o,a){var s=r&&r.type?r.type:null;n.checkAuthentication().then((function(){var r=t||{},a=r.journeyContext,u=r.launcherRef,c=r.route,l=(n.props||{}).iframeOrigin;a&&(n.journeyContext=a),e.oMessenger.command(n.storage+".set",{name:n.messengerStorage+n.subOpenStorage,value:n.state.expandLauncher?"false":"true"}),n.state.expandLauncher?n.nRMessengerPageActionMetrics.launcherMinimized():n.nRMessengerPageActionMetrics.launcherOpened(),n.setState((function(e){return{expandLauncher:!e.expandLauncher,sMessengerOpen:e.expandLauncher?"false":"true",messengerClosed:!e.messengerClosed,bInvite:!e.bInvite&&e.bInvite,route:c||""}})),"keypress"==s&&u.current&&e.oMessenger.command(n.storage+".get",{name:n.messengerStorage+n.subOpenStorage}).then((function(e){e&&"string"==typeof e&&"false"===e&&n.state.bFabVisible&&u.current.focus()})),n.state.expandLauncher?i.command("Messenger.open"):(l||i.command("Messenger.close"),setTimeout((function(){i.command("MessengerHelper.setDimension",{conversations:{height:0,width:0,removeClass:[n.sConversationClassName,n.sHomeClassName]}})}),50)),o()})).catch((function(e){a(e)}))}))},n.checkAuthentication=function(){var e=n.state.config.auth||{},t=e.enabled,r=e.allowSessionUpgrade;return t?new Promise((function(e,t){i.command(n.storage+".get",{names:[U.c]}).then((function(n){var o=n[U.c];o&&"undefined"!==o||r?e():t()})).catch((function(){t()}))})):Promise.resolve()},n.logoutMessenger=function(){(n.state.config.auth||{}).allowSessionUpgrade;e.oMessenger.command(n.storage+".set",{name:n.messengerStorage+n.subOpenStorage,value:"false"}),n.nRMessengerPageActionMetrics.launcherMinimized(),n.setState((function(){return{messengerClosed:!0,expandLauncher:!1,sMessengerOpen:"false",bToaster:!1,iToasterHeight:0}}))},n.handleEngageClick=function(t){var r=(n.launcherProps||{}).checkActiveConversation,o=(n.state||{}).config||{},i=o.home,a=o.headlessMode,s=o.apps,u=(o.cobrowse,(a||{}).enabled),c=((s||{}).conversations||{}).enabled;r&&!u&&c&&r().then((function(){i?n.toggleLauncher(qe({route:"conversations.conversations"},t)):n.toggleLauncher(t||{}),e.oMessenger.command("SubMessenger.expandLauncher")}))},n.closeMessenger=function(e){n.setState((function(){return{messengerClosed:e,expandLauncher:!e,sMessengerOpen:e?"false":"true"}})),e&&i.command("SubMessenger.collapseLauncher").then((function(){i.command(n.storage+".set",{name:n.messengerStorage+n.subOpenStorage,value:"false"})})),setTimeout((function(){i.command("MessengerHelper.setDimension",{conversations:{height:0,width:0,removeClass:[n.sConversationClassName,n.sHomeClassName]}})}),50)},n.setInviteState=function(e){n.setState((function(){return{bInvite:e}}))},n.setToasterReadyEventState=function(e){n.state.bToasterPublishedReady!==e&&n.setState((function(){return{bToasterPublishedReady:e}}))},n.setToasterState=function(e){n.setState((function(){return{bToaster:e,iToasterHeight:e?n.state.iToasterHeight:0}}))},n.setToasterHeight=function(e){n.setState((function(){return{iToasterHeight:e}}))},n.storeConversationProps=function(e){var t=(n.launcherProps||{}).checkActiveConversation,r=e||{},o=r.autoClosed,i=r.status,a=((((n.state||{}).config||{}).apps||{}).conversations||{}).enabled;t&&a&&t({conversationStatus:e}).then((function(e){var t=(e||{}).previousSessionInActive;n.state.previousSessionInActive!==t&&n.state.autoClosed!==o&&n.state.prevConversationStatus!==i&&n.setState({previousSessionInActive:t,autoClosed:o,prevConversationStatus:i})}))},n.setToasterContent=function(e){n.oToasterContent=e},n.setRejectedOffer=function(e){n.rejectedOffersSet.add(e)},n.getRejectedOffersSet=function(){return n.rejectedOffersSet},n.setCobrowseSessionStatus=function(e){n.setState((function(){return{bCobrowseInProgress:e}}))},n.setFabVisibility=function(e){n.setState((function(){return{bFabVisible:e}}))},n.setHomeScreenHeight=function(e){var t=e||{},r=t.homeScreenHeight,o=t.bAddTransition;n.state.iHomeScreenHeight===r&&n.state.bAddTransition===o||n.setState((function(){return{iHomeScreenHeight:r,bAddTransition:o}}))},n.markdownMessages=[],n.setMarkdownMessages=function(e){n.markdownMessages=e},n.aFocusMngtMsgIds=[],n.setFocusMngtMsgIds=function(e){n.aFocusMngtMsgIds=e},n.getOfferState=function(t){var r=new Promise((function(r,o){var i=Object(q.q)(t);if(void 0!==i)if("cobrowse"==i){var a=t||{},s=a.sessionId,u=a.sessionJoinToken;if(!u)return void o("SessionJoinToken are required");e.oMessenger.command("CobrowseService.offerState",{sessionId:s||"",joinCode:u}).then((function(t){if(t){var o=(t||{}).offerState;o&&e.oMessenger.publish(n.oCobrowseEvents[o],t),r(t)}}),(function(e){n.nRMessengerErrorMetrics.newRelicError(e),o(e)})).catch((function(e){n.nRMessengerErrorMetrics.newRelicError(e),o(e)}))}else"video"==i&&o("Getting offer state for video is not supported yet");else o("Unknown offer type")}));return r},n.acceptOffer=function(t){return new Promise((function(r,o){var i=Object(q.q)(t);if(void 0!==i)if("cobrowse"==i){var a=t||{},s=a.sessionId,u=a.sessionJoinToken;if(!u)return void o("Session Join code is required to connect to cobrowse session");e.oMessenger.command("CobrowseService.acceptSession",{sessionId:s||"",joinToken:u}).then((function(e){r(e)}),(function(e){n.nRMessengerErrorMetrics.newRelicError(e),o(e)}))}else"video"==i&&o("Accepting video is not supported yet");else o("Unknown offer type")}))},n.declineOffer=function(t){return new Promise((function(n,r){var o=Object(q.q)(t);if(void 0!==o)if("cobrowse"==o){var i=t||{},a=i.sessionId,s=i.sessionJoinToken;a&&s?(e.oMessenger.command("CobrowseService.declineSession",{sessionId:a,joinToken:s}),n()):r()}else"video"==o&&r("Declining video is not supported yet");else r("Unknown offer type")}))},n.disconnectionStatus="",n.setDisconnectionStatus=function(e){n.disconnectionStatus=e},n.getDisconnectionStatus=function(){return n.disconnectionStatus},n.setJourneyContext=function(e){n.journeyContext=e},n.setCustomer=function(e){n.oCustomer=e},n.setArticleExpanded=function(e){n.expandedArticle=e},n.setMessengerCleared=function(){n.bMessengerCleared=!0,e.oMessenger.command(n.storage+".remove",{name:n.messengerStorage+n.subOpenStorage})},n.onHeaderUpdated=function(e){n.iHeaderHeight=e.height},n.updateHeader=function(e){var t=(e||{}).bFabVisible;n.state.bFabVisible!==t&&n.setState({bFabVisible:t})},n.oPlugins={Messenger:e.oMessenger,Toaster:e.oToaster},n.setPlugin=function(e,t){n.oPlugins[e]=t},n.oContextStore={},n.setContextStore=function(e){n.oContextStore=e},n.setHeaderDeleteButtonClick=function(e){return"function"==typeof e&&(n.setState((function(){return{onHeaderDeleteButtonClick:e}})),!0)},n.setHeaderSignInButtonClick=function(e){return"function"==typeof e&&(n.setState((function(){return{onHeaderSignInButtonClick:e}})),!0)},n.currentAlertDialog={},n.showAlertDialog=function(e){if(!e||e==={})return!1;var t=function(){};n.state.bShowAlertDialog=!0,n.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"}})),n.currentAlertDialog=e,n.disableFocusControls()},n.closeAlertDialog=function(){if(!0===n.state.bShowAlertDialog){n.state.bShowAlertDialog=!1;var e=function(){};n.setState((function(){return{bShowAlertDialog:!1,sAlertDialogStatus:"",onAlertDialogEntering:e,onAlertDialogEntered:e,onAlertDialogExiting:e,onAlertDialogExited:e,onAlertDialogButtonPrimary:e,onAlertDialogButtonSecondary:e}})),n.state.aAlertDialogBuffer.length>0?n.showAlertDialog(n.getBufferedAlertDialog()):n.currentAlertDialog={},n.enableFocusControls()}},n.setAlertDialogStatus=function(e){return!!n.state.bShowAlertDialog&&(e||(e=""),n.setState((function(){return{sAlertDialogStatus:e}})),!0)},n.bufferAlertDialog=function(e){var t=n.state.aAlertDialogBuffer.slice(),r=t[t.length-1]||{};return!n.compareAlertObjects(n.currentAlertDialog,e)&&!n.compareAlertObjects(r,e)&&(t.push(e),n.setState((function(){return{aAlertDialogBuffer:t}})),!0)},n.getBufferedAlertDialog=function(){var e=n.state.aAlertDialogBuffer.slice();if(e.length>0){var t=e.shift();return t.buffered=!0,n.setState((function(){return{aAlertDialogBuffer:e}})),t}return!1},n.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},n.enableFocusControls=function(){n.setState((function(){return{oDisableInputs:{bHeaderMinimizeIcon:0,bHeaderDeleteIcon:0,bHeaderBackIcon:0,bTextField:!1,bAttachFileButton:!1,bSendIcon:!1,bMessageFocus:!1}}}))},n.disableFocusControls=function(){n.setState((function(){return{oDisableInputs:{bHeaderMinimizeIcon:-1,bHeaderDeleteIcon:-1,bHeaderBackIcon:-1,bTextField:!0,bAttachFileButton:!0,bSendIcon:!0,bMessageFocus:!0}}}))},n.configureStyles(r),r&&r.direction&&(n.selectedCache="rtl"!==r.direction?n.emotionCache.LTR:n.emotionCache.RTL),n.state={config:qe(qe({},r),{},{theme:qe(qe(qe({},We),r.theme),{},{direction:r&&r.direction?r.direction:"ltr",main:r.theme&&r.theme.main||"primary",palette:qe(qe(qe({},We.palette),r.theme&&r.theme.palette),{},{primary:qe(qe({},We.palette.primary),r.theme&&r.theme.palette&&r.theme.palette.primary)})}),styles:qe(qe({},r.styles),{},{companyLogoSmall:qe({},r.styles&&r.styles.companyLogoSmall)}),launcherButton:qe(qe(qe({},d),r.launcherButton),{},{visibility:r.launcherButton&&r.launcherButton.visibility&&r.launcherButton.visibility.toLowerCase()||"on"}),position:qe(qe({},r.position),{},{alignment:r.position&&r.position.alignment&&r.position.alignment.toLowerCase()||"auto"}),apps:qe(qe({},r.apps),{},{conversations:qe(qe({},r.apps.conversations),{},{markdown:{enabled:r.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"===d.visibility,iHomeScreenHeight:0,bAddTransition:!1,view:"",toggleLauncher:n.toggleLauncher,logoutMessenger:n.logoutMessenger,updateHeader:n.updateHeader,messengerClosed:!0,closeMessenger:n.closeMessenger,getOfferState:n.getOfferState,acceptOffer:n.acceptOffer,declineOffer:n.declineOffer,bCobrowseInProgress:!1,store:r.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:"",bToasterPublishedReady:!1},s&&"MessengerFrame"===s&&(i.registerCommand("showAlertDialog",(function(e){n.bMessengerCleared?e.reject(U.e):(n.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())})),i.registerCommand("closeAlertDialog",(function(e){n.bMessengerCleared?e.reject(U.e):(n.closeAlertDialog(),e.resolve())})),i.registerCommand("setAlertDialogStatus",(function(e){n.bMessengerCleared?e.reject(U.e):(n.setAlertDialogStatus(e.data.status),e.resolve())})),n.registerOpenCommand=function(e){return new Promise((function(t,o){var a=n.state||{},s=a.messengerClosed,u=(a.sMessengerOpen,r||{}),c=u.headlessMode,l=u.apps,d=(u.home,u.cobrowse),p=(c||{}).enabled,f=l||{},g=f.conversations,m=(f.knowledge||{}).enabled,h=(g||{}).enabled,v=d||{},D=v.enabled,b=v.channels,y=!!(D&&b&&b.length)&&b.includes("voice"),x=!!m||!!h||!!y;n.pOpenCmdResolve=t,n.pOpenCmdReject=o,n.bMessengerCleared?e.reject(U.e):p?e.reject("Messenger user interface must be enabled in your configuration."):x?n.bLauncherReady?n.openCommand(e):i.subscribe("Launcher.ready",(function(){var t=setTimeout((function(){n.bLauncherReady=!0,s?n.openCommand(e):n.pOpenCmdResolve&&(n.pOpenCmdResolve(),n.pOpenCmdResolve=""),clearTimeout(t)}),200)})):e.reject("Atleast one app like conversation, knowledge, cobrowseVoice must be enabled in your configuration")}))},i.registerCommand("openConversation",(function(e){var t=n.launcherProps.openConversation,r=n.state,o=r.sMessengerOpen,a=r.config||{},s=a.headlessMode,u=((a.apps||{}).conversations||{}).enabled,c=(s||{}).enabled,l=(n.props||{}).iframeOrigin;n.bMessengerCleared?e.reject(U.e):!c&&u?t&&"function"==typeof t?("true"===o?(n.setState({route:""}),t({route:"conversations.conversations"}),l&&i.command("SubMessenger.expandLauncher")):n.verifyStorageAndRemove().then((function(){n.toggleLauncher({route:"conversations.conversations"}),l&&i.command("SubMessenger.expandLauncher")})),e.resolve()):(n.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.")})),i.registerCommand("openSearch",(function(e){var t=n.state,r=t.sMessengerOpen,o=t.config||{},a=o.apps,s=o.headlessMode,u=((a||{}).knowledge||{}).enabled,c=n.launcherProps.openSearch,l=(s||{}).enabled,d=(n.props||{}).iframeOrigin;n.bMessengerCleared?e.reject(U.e):l?e.reject("Messenger user interface must be enabled in your configuration."):u&&c?("true"===r?(n.setState({route:""}),c({route:"knowledge.search"}),d&&i.command("SubMessenger.expandLauncher")):n.verifyStorageAndRemove().then((function(){n.toggleLauncher({route:"knowledge.search"}),d&&i.command("SubMessenger.expandLauncher")})),e.resolve()):(n.setState({route:""}),e.reject("Knowledge must be enabled in your configuration."))})),i.registerCommand("openHome",(function(e){var t=n.launcherProps.openHome,o=n.state,a=o.sMessengerOpen,u=o.config,c=(r||{}).home;((u||{}).headlessMode||{}).enabled?e.reject("Messenger user interface must be enabled in your configuration."):c&&"function"==typeof t?("true"===a?(n.setState({route:""}),t(),s&&i.command("SubMessenger.expandLauncher")):n.verifyStorageAndRemove().then((function(){n.toggleLauncher({route:"conversations.home"}),s&&i.command("SubMessenger.expandLauncher")})),e.resolve()):e.reject("Home screen must be enabled")})),i.registerCommand("close",(function(e){var t=n.state,r=t.expandLauncher,o=(t.sMessengerOpen,((t.config||{}).headlessMode||{}).enabled),a=(n.props||{}).iframeOrigin;if(n.bMessengerCleared)e.reject(U.e);else if(o)e.reject("Messenger user interface must be enabled in your configuration.");else if(r)n.setState((function(){return{expandLauncher:!1,sMessengerOpen:"false",messengerClosed:!0}})),a&&i.command("SubMessenger.collapseLauncher"),setTimeout((function(){i.command("MessengerHelper.setDimension",{conversations:{height:0,width:0,removeClass:[n.sConversationClassName,n.sHomeClassName]}})}),50),i.command(n.storage+".set",{name:n.messengerStorage+n.subOpenStorage,value:"false"}),e.resolve();else{var s={errorName:V.G,errorMessage:V.G};n.nRMessengerErrorMetrics.newRelicError(s),e.reject("Messenger is already closed.")}})),i.registerCommand("openCobrowse",(function(e){var t=n.state,r=t.sMessengerOpen,o=t.config,a=((n.oContextStore||{}).messengerStore||{}).cobrowseConnectStatus,s=o||{},u=s.cobrowse,c=s.headlessMode,l=u||{},d=l.enabled,p=l.channels,f=!!(d&&p&&p.length)&&p.includes("voice"),g=n.launcherProps,m=g.openCobrowseConnect,h=g.openCobrowseSharing,v=(c||{}).enabled,D=(n.props||{}).iframeOrigin;n.bMessengerCleared?e.reject(U.e):f?v?e.reject("Messenger user interface must be enabled in your configuration."):("true"===r?(n.setState({route:""}),a&&"sharing"==a?h({route:"cobrowse.sharing"}):m({route:"cobrowse.connect"}),D&&i.command("SubMessenger.expandLauncher")):n.verifyStorageAndRemove().then((function(){n.verifyCobrowseVoiceSessionAndConnect(),D&&i.command("SubMessenger.expandLauncher")})),e.resolve()):e.reject("Co-browse voice must be enabled in your configuration.")}))),n}return g()(t,e),u()(t,[{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,r=n.oMessenger,o=n.oConfig;t&&t(window.parent.Genesys),this.bPublishedReady||(r.ready(),this.bPublishedReady=!0),this.nRMessengerPerformanceMetrics.initNewRelicPerformance(o),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),a=Object(w.b)(this.state.config.theme);return"rgba(0, 0, 0, 0.87)"===a.palette.getContrastText(We.palette.primary.main)&&(a.palette.primary.contrastText="rgba(0, 0, 0, 0.93)"),Ye=Object(q.x)()?"mxg-mobile-"+Ke.toLowerCase()+"-"+Je.toLowerCase():"mxg-desktop-"+Ke.toLowerCase()+"-"+Je.toLowerCase(),D.a.createElement(C.a,{injectFirst:!0},D.a.createElement(x.a,{theme:a},D.a.createElement(He.a,{value:this.selectedCache},D.a.createElement(E.a.Provider,{value:qe(qe({},this.state),{},{muiTheme:a,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,setCustomer:this.setCustomer,oCustomer:this.oCustomer,setArticleExpanded:this.setArticleExpanded,expandedArticle:this.expandedArticle,oDisableInputs:this.state.oDisableInputs,setDisconnectionStatus:this.setDisconnectionStatus,getDisconnectionStatus:this.getDisconnectionStatus,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,newRelic:this.oNewRelic,setRejectedOffer:this.setRejectedOffer,getRejectedOffersSet:this.getRejectedOffersSet,bCobrowseInProgress:this.state.bCobrowseInProgress,setCobrowseSessionStatus:this.setCobrowseSessionStatus,storeConversationProps:this.storeConversationProps,previousSessionInActive:this.state.previousSessionInActive,autoClosed:this.state.autoClosed,prevConversationStatus:this.state.prevConversationStatus,setHeaderDeleteButtonClick:this.setHeaderDeleteButtonClick,setHeaderSignInButtonClick:this.setHeaderSignInButtonClick,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,setToasterReadyEventState:this.setToasterReadyEventState,bToasterPublishedReady:this.state.bToasterPublishedReady})},n&&"MessengerFrame"===n&&!o&&i&&D.a.createElement(le.default,{plugin:this.props.oToaster,config:this.state.config}),n&&"MessengerFrame"===n&&D.a.createElement(ce.default,{plugin:this.props.oEngage,config:this.state.config,setInviteAccepted:function(t){return e.fInviteAccepted=t}}),D.a.createElement(ue,{color:this.state.config.theme.main,config:this.state.config,iframeOrigin:n||"",getComponentMethods:function(t){return e.launcherProps=t},Toaster:le.default}),D.a.createElement("div",{tabIndex:-1,id:"full-screen-indicator",className:"".concat(Ye," ").concat(t?"mxg-fullscreen-indicator":"")})))))}}])}(D.a.Component);t.a=Qe;Qe.propTypes={oMessenger:y.a.object.isRequired,oEngage:y.a.object,oConfig:y.a.object.isRequired}},250:function(e,t,n){var r=n(213),o=n(342);"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){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},27:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},28:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},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 P})),n.d(t,"p",(function(){return $})),n.d(t,"q",(function(){return z})),n.d(t,"r",(function(){return g})),n.d(t,"s",(function(){return h})),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 R})),n.d(t,"x",(function(){return B})),n.d(t,"y",(function(){return T})),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,g=String.fromCharCode,m=Object.assign;function h(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,T=0,M=0,k="";function I(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 P(e,t){return m(I("",null,null,"",null,null,0),e,{length:-e.length},t)}function R(){return M=T<A?x(k,T++):0,F++,10===M&&(F=1,j++),M}function B(){return x(k,T)}function L(){return T}function N(e,t){return w(k,e,t)}function _(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function H(e){return j=F=1,A=C(k=e),T=0,[]}function $(e){return k="",e}function z(e){return v(N(T-1,U(91===e?e+2:40===e?e+1:e)))}function q(e){for(;(M=B())&&M<33;)R();return _(e)>2||_(M)>3?"":" "}function V(e,t){for(;--t&&R()&&!(M<48||M>102||M>57&&M<65||M>70&&M<97););return N(e,L()+(t<6&&32==B()&&32==R()))}function U(e){for(;R();)switch(M){case e:return T;case 34:case 39:34!==e&&39!==e&&U(M);break;case 40:41===e&&U(e);break;case 92:R()}return T}function G(e,t){for(;R()&&e+M!==57&&(e+M!==84||47!==B()););return"/*"+N(t,T-1)+"*"+g(47===e?e:R())}function W(e){for(;!_(B());)R();return N(e,T)}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,m=0,h=1,v=1,D=1,w=0,O="",S=o,A=i,I=r,P=O;v;)switch(m=w,w=R()){case 40:if(108!=m&&58==x(P,d-1)){-1!=y(P+=b(z(w),"&","&\f"),"&\f")&&(D=-1);break}case 34:case 39:case 91:P+=z(w);break;case 9:case 10:case 13:case 32:P+=q(m);break;case 92:P+=V(L()-1,7);continue;case 47:switch(B()){case 42:case 47:E(Q(G(R(),L()),t,n),u);break;default:P+="/"}break;case 123*h:s[c++]=C(P)*D;case 125*h:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+l:f>0&&C(P)-d&&E(f>32?X(P+";",r,n,d-1):X(b(P," ","")+";",r,n,d-2),u);break;case 59:P+=";";default:if(E(I=Y(P,t,n,c,l,o,s,O,S=[],A=[],d),i),123===w)if(0===l)J(P,t,I,I,S,i,d,s,A);else switch(99===p&&110===x(P,3)?100:p){case 100:case 109:case 115:J(e,I,I,r&&E(Y(e,I,I,0,0,o,s,O,o,S=[],d),A),o,A,d,s,r?S:A);break;default:J(P,I,I,I,[""],A,0,s,A)}}c=l=f=0,h=D=1,O=P="",d=a;break;case 58:d=1+C(P),f=m;default:if(h<1)if(123==w)--h;else if(125==w&&0==h++&&125==(M=T>0?x(k,--T):0,F--,10===M&&(F=1,j--),M))continue;switch(P+=g(w),w*h){case 38:D=l>0?1:(P+="\f",-1);break;case 44:s[c++]=(C(P)-1)*D,D=1;break;case 64:45===B()&&(P+=z(R())),p=B(),l=d=C(O=P+=W(L())),w++;break;case 45:45===m&&2==C(P)&&(h=0)}}return i}function Y(e,t,n,r,o,i,a,u,c,l,d){for(var p=o-1,g=0===o?i:[""],m=O(g),h=0,D=0,y=0;h<r;++h)for(var x=0,C=w(e,p+1,p=f(D=a[h])),E=e;x<m;++x)(E=v(D>0?g[x]+" "+C:b(C,/&\f/g,g[x])))&&(c[y++]=E);return I(e,t,n,0===o?s:u,c,l,d)}function Q(e,t,n){return I(e,t,n,a,g(M),w(e,2,-2),0)}function X(e,t,n,r){return I(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<r;o++)n+=t(e[o],o,e,t)||"";return n}function ee(e,t,n,r){switch(e.type){case l:case u:return e.return=e.return||e.value;case a:return"";case p:return e.return=e.value+"{"+Z(e.children,r)+"}";case s:e.value=e.props.join(",")}return C(n=Z(e.children,r))?e.return=e.value+"{"+n+"}":""}function te(e){var t=O(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function ne(e){return function(t){t.root||(t=t.return)&&e(t)}}},32:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},34:function(e,t,n){var r=n(122);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},340:function(e,t,n){var r=n(341);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<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},341:function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},342:function(e,t,n){(t=n(214)(!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-carousel-icon-button:focus-visible,.mxg-attach-file-closebtn:focus-visible,.mxg-button-focus-visible:focus-visible{outline-color:rgba(0,0,0,.55)}.mxg-search-header .Cx-MuiIconButton-edgeEnd:focus-visible{outline-color:rgba(0,0,0,.55)}.mxg-knowledge-container .Cx-MuiListItem-container .Cx-MuiIconButton-edgeEnd:focus-visible{outline-color:rgba(0,0,0,.55)}.mxg-knowledge-container .Cx-MuiListItem-container .Cx-MuiListItem-secondaryAction{outline-color:rgba(0,0,0,.55)}.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}.mxg-desktop-windows-chrome .mxg-conversation-container .Cx-MuiInputBase-multiline{padding:12px 18px 12px !important}}@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}.mxg-desktop-mac-chrome .mxg-conversation-container .Cx-MuiInputBase-multiline{padding:12px 18px 12px !important}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (-webkit-min-device-pixel-ratio: 4)and (-webkit-max-device-pixel-ratio: 5){.mxg-desktop-windows-chrome .cx-messenger-container{max-width:96% !important;max-height:98% !important}.mxg-desktop-windows-chrome .cx-messenger{max-height:98% !important}.mxg-header{min-width:auto !important}}@-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 (min--moz-device-pixel-ratio: 4)and (max--moz-device-pixel-ratio: 5)and (orientation: landscape){.mxg-header{min-width:auto !important}}}@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}}@media screen and (min-width: 320px)and (max-width: 360px){.mxg-header{min-width:auto !important}}@media screen and (max-width: 360px){.Engage-snackbarMessage{width:80%}.Engage-snackbarAction{width:15%}.toaster-button{max-width:36% !important}}',""]),e.exports=t},343:function(e,t,n){var r=n(213),o=n(344);"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||{}},344:function(e,t,n){(t=n(214)(!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},345:function(e,t,n){"use strict";var r=n(5),o=n(1);var i=n(60),a=n(0),s=n.n(a),u=n(43);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<o[u].length;r++){var c=o[u][r];s[o[u][r]]=n(c)}s[u]=n(u)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var s=o[i];if(Object(a.isValidElement)(s)){var u=i in t,c=i in r,d=t[i],p=Object(a.isValidElement)(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&Object(a.isValidElement)(d)&&(o[i]=Object(a.cloneElement)(s,{onExited:n.bind(null,s),in:d.props.in,exit:l(s,"exit",e),enter:l(s,"enter",e)})):o[i]=Object(a.cloneElement)(s,{in:!1}):o[i]=Object(a.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:l(s,"exit",e),enter:l(s,"enter",e)})}})),o}var p=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Object(i.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,c(n.children,(function(e){return Object(a.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:l(e,"appear",n),enter:l(e,"enter",n),exit:l(e,"exit",n)})}))):d(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=c(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(o.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=Object(r.a)(e,["component","childFactory"]),i=this.state.contextValue,a=p(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?s.a.createElement(u.a.Provider,{value:i},a):s.a.createElement(u.a.Provider,{value:i},s.a.createElement(t,o,a))},t}(s.a.Component);f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};t.a=f},36: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},367:function(e,t){e.exports=messagingMiddleware},37:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=function(e){for(var t,n=0,r=0,o=e.length;o>=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(48),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;o<n.length;o++)r+=p(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":c(a)&&(r+=l(i)+":"+d(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=p(e,t,a);switch(i){case"animation":case"animationName":r+=l(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var u=0;u<a.length;u++)c(a[u])&&(r+=l(i)+":"+d(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=f,i=n(e);return f=o,p(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var f,g=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var m=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";f=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,i+=p(n,t,a)):i+=a[0];for(var s=1;s<e.length;s++)i+=p(n,t,e[s]),o&&(i+=a[s]);g.lastIndex=0;for(var u,c="";null!==(u=g.exec(i));)c+="-"+u[1];return{name:r(i)+c,styles:i,next:f}}},39:function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},40:function(e,t,n){var r=n(26).default,o=n(68);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},41:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l}));var r=n(0),o=(n(49),n(21)),i=(n(39),n(47),n(82),n(23)),a=n(37),s=n(36),u=Object(o.f)((function(e,t){var n=e.styles,u=Object(a.a)([n],void 0,Object(r.useContext)(o.c)),c=Object(r.useRef)();return Object(s.b)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,o=document.querySelector('style[data-emotion="'+e+" "+u.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),c.current=[n,r],function(){n.flush()}}),[t]),Object(s.b)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==u.next&&Object(i.b)(t,u.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",u,n,!1)}}),[t,u.name]),null}));function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(a.a)(t)}var l=function(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},43:function(e,t,n){"use strict";var r=n(0),o=n.n(r);t.a=o.a.createContext(null)},436:function(e,t,n){"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function o(e){return e instanceof r(e).Element||e instanceof Element}function i(e){return e instanceof r(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof r(e).ShadowRoot||e instanceof ShadowRoot)}n.d(t,"a",(function(){return fe}));var s=Math.max,u=Math.min,c=Math.round;function l(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function d(){return!/^((?!chrome|android).)*safari/i.test(l())}function p(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),s=1,u=1;t&&i(e)&&(s=e.offsetWidth>0&&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,g=(a.top+(p&&l?l.offsetTop:0))/u,m=a.width/s,h=a.height/u;return{width:m,height:h,top:g,right:f+m,bottom:g+h,left:f,x:f,y:g}}function f(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function g(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((o(e)?e.ownerDocument:e.document)||window.document).documentElement}function h(e){return p(m(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=m(t),d=p(e,u,n),v={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(s||!s&&!n)&&(("body"!==g(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=h(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"===g(e)?e:e.assignedSlot||e.parentNode||(a(e)?e.host:null)||m(e)}function w(e){return["html","body","#document"].indexOf(g(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(g(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"===g(n)||"body"===g(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(g(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",T="left",M="auto",k=[j,F,A,T],I="start",P="end",R="clippingParents",B="viewport",L="popper",N="reference",_=k.reduce((function(e,t){return e.concat([t+"-"+I,t+"-"+P])}),[]),H=[].concat(k,[M]).reduce((function(e,t){return e.concat([t,t+"-"+I,t+"-"+P])}),[]),$=["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<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function U(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,a=void 0===i?q:i;return function(e,t,n){void 0===n&&(n=a);var i,s,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},q,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],l=!1,d={state:u,setOptions:function(n){var i="function"==typeof n?n(u.options):n;p(),u.options=Object.assign({},a,u.options,i),u.scrollParents={reference:o(e)?C(e):e.contextElement?C(e.contextElement):[],popper:C(t)};var s=function(e){var t=z(e);return $.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,u.options.modifiers)));return u.orderedModifiers=s.filter((function(e){return e.enabled})),u.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:u,name:t,instance:d,options:r}),a=function(){};c.push(i||a)}})),d.update()},forceUpdate:function(){if(!l){var e=u.elements,t=e.reference,n=e.popper;if(V(t,n)){u.rects={reference:b(t,S(n),"fixed"===u.options.strategy),popper:y(n)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach((function(e){return u.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<u.orderedModifiers.length;r++)if(!0!==u.reset){var o=u.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,c=o.name;"function"==typeof i&&(u=i({state:u,options:s,name:c,instance:d})||u)}else u.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){d.forceUpdate(),e(u)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(i())}))}))),s}),destroy:function(){p(),l=!0}};if(!V(e,t))return d;function p(){c.forEach((function(e){return e()})),c=[]}return d.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var G={passive:!0};function W(e){return e.split("-")[0]}function K(e){return e.split("-")[1]}function J(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Y(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?W(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 T: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 I:t[c]=t[c]-(n[l]/2-r[l]/2);break;case P: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,g=s.x,h=void 0===g?0:g,D=s.y,b=void 0===D?0:D,y="function"==typeof p?p({x:h,y:b}):{x:h,y:b};h=y.x,b=y.y;var x=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),C=T,O=j,E=window;if(d){var M=S(n),k="clientHeight",I="clientWidth";if(M===r(n)&&"static"!==v(M=m(n)).position&&"absolute"===u&&(k="scrollHeight",I="scrollWidth"),i===j||(i===T||i===A)&&a===P)O=F,b-=(f&&M===E&&E.visualViewport?E.visualViewport.height:M[k])-o.height,b*=l?1:-1;if(i===T||(i===j||i===F)&&a===P)C=A,h-=(f&&M===E&&E.visualViewport?E.visualViewport.width:M[I])-o.width,h*=l?1:-1}var R,B=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:h,y:b}):{x:h,y:b};return h=L.x,b=L.y,l?Object.assign({},B,((R={})[O]=w?"0":"",R[C]=x?"0":"",R.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",R)):Object.assign({},B,((t={})[O]=w?b+"px":"",t[C]=x?h+"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===B?oe(function(e,t){var n=r(e),o=m(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+h(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=m(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+h(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}}(m(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"!==g(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?R:u,l=n.rootBoundary,d=void 0===l?B:l,f=n.elementContext,g=void 0===f?L:f,h=n.altBoundary,v=void 0!==h&&h,D=n.padding,b=void 0===D?0:D,y=se("number"!=typeof b?b:ue(b,k)),x=g===L?N:L,w=e.rects.popper,C=e.elements[v?x:g],O=ae(o(C)?C:C.contextElement||m(e.elements.popper),c,d,s),E=p(e.elements.reference),S=Y({reference:E,element:w,strategy:"absolute",placement:i}),T=oe(Object.assign({},w,S)),M=g===L?T:E,I={top:O.top-M.top+y.top,bottom:M.bottom-O.bottom+y.bottom,left:O.left-M.left+y.left,right:M.right-O.right+y.right},P=e.modifiersData.offset;if(g===L&&P){var _=P[i];Object.keys(I).forEach((function(e){var t=[A,F].indexOf(e)>=0?1:-1,n=[j,F].indexOf(e)>=0?"y":"x";I[e]+=_[n]*t}))}return I}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,T].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,G)})),u&&c.addEventListener("resize",n.update,G),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,G)})),u&&c.removeEventListener("resize",n.update,G)}},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:W(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)&&g(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)&&g(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=W(e),o=[T,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,[T,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,g=void 0===f||f,m=n.allowedAutoPlacements,h=t.options.placement,v=W(h),D=u||(v===h||!g?[ee(h)]:function(e){if(W(e)===M)return[];var t=ee(e);return[ne(e),t,ne(t)]}(h)),b=[h].concat(D).reduce((function(e,n){return e.concat(W(n)===M?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})):k,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})[W(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:g,allowedAutoPlacements:m}):n)}),[]),y=t.rects.reference,x=t.rects.popper,w=new Map,C=!0,O=b[0],E=0;E<b.length;E++){var S=b[E],P=W(S),R=K(S)===I,B=[j,F].indexOf(P)>=0,L=B?"width":"height",N=ce(t,{placement:S,boundary:l,rootBoundary:d,altBoundary:p,padding:c}),$=B?R?A:T:R?F:j;y[L]>x[L]&&($=ee($));var z=ee($),q=[];if(i&&q.push(N[P]<=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=g?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,g=n.tether,m=void 0===g||g,h=n.tetherOffset,v=void 0===h?0:h,D=ce(t,{boundary:l,rootBoundary:d,padding:f,altBoundary:p}),b=W(t.placement),x=K(t.placement),w=!x,C=J(b),O="x"===C?"y":"x",E=t.modifiersData.popperOffsets,M=t.rects.reference,k=t.rects.popper,P="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,R="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(E){if(i){var N,_="y"===C?j:T,H="y"===C?F:A,$="y"===C?"height":"width",z=E[C],q=z+D[_],V=z-D[H],U=m?-k[$]/2:0,G=x===I?M[$]:k[$],Y=x===I?-k[$]:-M[$],Q=t.elements.arrow,X=m&&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,M[$],X[$]),re=w?M[$]/2-U-ne-ee-R.mainAxis:G-ne-ee-R.mainAxis,oe=w?-M[$]/2+U+ne+te+R.mainAxis:Y+ne+te+R.mainAxis,ie=t.elements.arrow&&S(t.elements.arrow),ae=ie?"y"===C?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(N=null==B?void 0:B[C])?N:0,ue=z+oe-se,de=le(m?u(q,z+re-se-ae):q,z,m?s(V,ue):V);E[C]=de,L[C]=de-z}if(c){var pe,fe="x"===C?j:T,ge="x"===C?F:A,me=E[O],he="y"===O?"height":"width",ve=me+D[fe],De=me-D[ge],be=-1!==[j,T].indexOf(b),ye=null!=(pe=null==B?void 0:B[O])?pe:0,xe=be?ve:me-M[he]-k[he]-ye+R.altAxis,we=be?me+M[he]+k[he]-ye-R.altAxis:De,Ce=m&&be?function(e,t,n){var r=le(e,t,n);return r>n?n:r}(xe,me,we):le(m?xe:ve,me,m?we:De);E[O]=Ce,L[O]=Ce-me}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=W(n.placement),u=J(s),c=[T,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,k))}(o.padding,n),d=y(i),p="y"===u?j:T,f="y"===u?F:A,g=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],m=a[u]-n.rects.reference[u],h=S(i),v=h?"y"===u?h.clientHeight||0:h.clientWidth||0:0,D=g/2-m/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})}}]})},45:function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},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(){},oCustomer:{},setCustomer: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(){},getOfferState:function(){},acceptOffer:function(){},declineOffer:function(){},setDisconnectionStatus:function(){},getDisconnectionStatus:function(){},setHeaderDeleteButtonClick:function(){},onHeaderDeleteButtonClick:function(){},setHeaderSignInButtonClick:function(){},onHeaderSignInButtonClick: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,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}}},48: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]}}},49: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;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=n(3),i=(n(47),n(48),function(e,t,n){for(var r=0,i=0;r=i,i=Object(o.x)(),38===r&&12===i&&(t[n]=1),!Object(o.F)(i);)Object(o.w)();return Object(o.C)(e,o.y)}),a=function(e,t){return Object(o.p)(function(e,t){var n=-1,r=44;do{switch(Object(o.F)(r)){case 0:38===r&&12===Object(o.x)()&&(t[n]=1),e[n]+=i(o.y-1,t,n);break;case 2:e[n]+=Object(o.q)(r);break;case 4:if(44===r){e[++n]=58===Object(o.x)()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Object(o.r)(r)}}while(r=Object(o.w)());return e}(Object(o.k)(e),t))},s=new WeakMap,u=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||s.get(n))&&!r){s.set(e,!0);for(var o=[],i=a(t,o),u=n.props,c=0,l=0;c<i.length;c++)for(var d=0;d<u.length;d++,l++)e.props[l]=o[c]?i[c].replace(/&\f/g,u[d]):u[d]+" "+i[c]}}},c=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function l(e,t){switch(Object(o.s)(e,t)){case 5103:return o.j+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return o.j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return o.j+e+o.f+e+o.g+e+e;case 6828:case 4268:return o.j+e+o.g+e+e;case 6165:return o.j+e+o.g+"flex-"+e+e;case 5187:return o.j+e+Object(o.z)(e,/(\w+).+(:[^]+)/,o.j+"box-$1$2"+o.g+"flex-$1$2")+e;case 5443:return o.j+e+o.g+"flex-item-"+Object(o.z)(e,/flex-|-self/,"")+e;case 4675:return o.j+e+o.g+"flex-line-pack"+Object(o.z)(e,/align-content|flex-|-self/,"")+e;case 5548:return o.j+e+o.g+Object(o.z)(e,"shrink","negative")+e;case 5292:return o.j+e+o.g+Object(o.z)(e,"basis","preferred-size")+e;case 6060:return o.j+"box-"+Object(o.z)(e,"-grow","")+o.j+e+o.g+Object(o.z)(e,"grow","positive")+e;case 4554:return o.j+Object(o.z)(e,/([^-])(transform)/g,"$1"+o.j+"$2")+e;case 6187:return Object(o.z)(Object(o.z)(Object(o.z)(e,/(zoom-|grab)/,o.j+"$1"),/(image-set)/,o.j+"$1"),e,"")+e;case 5495:case 3959:return Object(o.z)(e,/(image-set\([^]*)/,o.j+"$1$`$1");case 4968:return Object(o.z)(Object(o.z)(e,/(.+:)(flex-)?(.*)/,o.j+"box-pack:$3"+o.g+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+o.j+e+e;case 4095:case 3583:case 4068:case 2532:return Object(o.z)(e,/(.+)-inline(.+)/,o.j+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Object(o.E)(e)-1-t>6)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<t.length;n++)l[t[n]]=!0;p.push(e)}));var f=[u,c];var g,m=[o.D,Object(o.A)((function(e){g.insert(e)}))],h=Object(o.v)(f.concat(i,m));s=function(e,t,n,r){var i;g=n,i=e?e+"{"+t.styles+"}":t.styles,Object(o.B)(Object(o.n)(i),h),r&&(v.inserted[t.name]=!0)};var v={key:t,sheet:new r({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:s};return v.sheet.hydrate(p),v}},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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},579:function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(42),a=n.n(i),s=n(14),u=n.n(s),c=n(239),l=n.n(c),d=n(240),p=n.n(d),f=n(13),g=n(135),m=n(12),h=n(246),v=(n(250),n(243)),D=n(244),b=n(245),y={performanceMetrics:Object(D.a)(),pageActionMetrics:Object(v.a)(),errorMetrics:Object(b.a)()};y.performanceMetrics.subscribeNewRelicReady(),y.pageActionMetrics.subscribeNewRelicReady(),y.errorMetrics.subscribeNewRelicReady();var x=Object(f.k)().browser||"",w=Object(f.k)().os||"",C=!(!x||"Safari"!==x),O="iOS"===w,E="",S="",j=!1,F=document.createElement("div");document.body.appendChild(F);var A="",T="",M=!1,k=!1,I=!1,P=!1,R=!1,B=!1,L=!1,N=!1,_=!1,H=!1,$=!1,z=!1,q=!1;u.a.extend(p.a),u.a.extend(l.a),Genesys("registerPlugin","Engage",(function(e){A=e,e.ready()})),Genesys("registerPlugin","Toaster",(function(e){T=e})),Genesys("registerPlugin","Messenger",(function(e){var t=!1;function n(e){t||(t=!0,E.registerOpenCommand(e).then((function(){t=!1}),(function(e){t=!1})))}e.registerCommand("clear",(function(t){j=!0,new Promise((function(t,n){k&&e.command("CobrowseService.clear"),M&&(e.command("KnowledgeService.clear"),E&&E.verifyStorageAndRemove()),I&&e.command("Journey.clear"),P&&e.command("Identifiers.clear"),R&&e.command("Engage.clear"),B&&e.command("Toaster.clear"),L&&e.command("Auth.clear"),N&&e.command("AuthProvider.clear"),H&&e.command("Database.clear"),$&&e.command("Launcher.clear"),z&&e.command("SubMessenger.clear"),E&&E.setMessengerCleared(),_?e.command("MessagingService.clear").then((function(){t()})):t()})).then((function(){e.command("Broadcast.postMessage",{message:"messengerCleared",plugin:"Messenger"}),Object(i.unmountComponentAtNode)(F),e.publish("cleared")})),t.resolve()})),e.registerCommand("open",(function(e){j?e.reject(m.e):E?(S="",n(e)):S=e})),e.registerCommand("configure",(function(t){j?t.reject(m.e):e.subscribe("SubMessenger.ready",(function(){e.command("SubMessenger.configure",t.data).then((function(r){var i;E&&E.configure(r),r.lang&&(i=r,document.documentElement.setAttribute("lang",f.b[i.lang]),-1!==["ar","arc","dv","fa","ha","he","khw","ks","ku","ps","ur","yi"].indexOf(i.lang)?(document.documentElement.setAttribute("dir","rtl"),e.command("MessengerHelper.setDirection",{position:i.position})):(C||O?document.documentElement.setAttribute("dir","ltr"):document.documentElement.removeAttribute("dir"),e.command("MessengerHelper.setDirection",{position:i.position}))),g.a[r.lang]&&u.a.locale(g.a[r.lang]),Object(g.b)(r.lang).then((function(){a.a.render(o.a.createElement(o.a.StrictMode,null,o.a.createElement(h.a,{iframeOrigin:m.D,oConfig:r,oEngage:A,oToaster:T,oMessenger:e,newRelic:y,ref:function(e){E=e,window.messenger=e,S&&(n(S),S="")}})),F)})),e.subscribe("".concat(m.h,".ready"),(function(){e.command("".concat(m.h,".configure"),t.data)})),t.resolve(r)})).catch((function(e){t.reject(e)}))}))})),e.subscribe("CobrowseService.ready",(function(){k=!0})),e.subscribe("KnowledgeService.ready",(function(){M=!0})),e.subscribe("Journey.ready",(function(){I=!0})),e.subscribe("Identifiers.ready",(function(){P=!0})),e.subscribe("Engage.ready",(function(){R=!0})),e.subscribe("Toaster.ready",(function(){B=!0})),e.subscribe("Auth.ready",(function(){L=!0})),e.subscribe("AuthProvider.ready",(function(){N=!0})),e.subscribe("MessagingService.ready",(function(){_=!0})),e.subscribe("Database.ready",(function(){H=!0})),e.subscribe("Launcher.ready",(function(){$=!0})),e.subscribe("Broadcast.ready",(function(t){q||(q=!0,e.command("Broadcast.openChannel",{name:m.d}).then((function(){q=!1,e.command("Broadcast.listenToMessages")}),(function(){q=!1})))})),e.subscribe("Broadcast.messageReceived",(function(t){var n=t.data||{},r=n.message,o=n.plugin;r&&o&&"Messenger"===o&&(j||"messengerCleared"!==r||e.command("Messenger.clear"))})),e.subscribe("SubMessenger.ready",(function(){z=!0,setTimeout((function(){e.ready()}),300)}))}))},6:function(e,t,n){e.exports=n(156)()},60:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return o}))},64:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},65:function(e,t,n){var r=n(64);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},67:function(e,t,n){var r=n(159)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},68: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},7:function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}t.a=function(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},78:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},79: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},8:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},80:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},81:function(e,t,n){ /*! * @genesys/messenger-knowledge-components * @version: 0.14.0 * @license: UNLICENSED */ e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=16)}([function(e,t){e.exports=n(0)},function(e,t){e.exports=n(6)},function(e,t){e.exports=n(110)},function(e,t){e.exports=n(8)},function(e,t){e.exports=n(67)},function(e,t){e.exports=n(20)},function(e,t){(()=>{"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:()=>l,commandFactory:()=>ve,genesysService:()=>O,initKnowledgeServicePlugin:()=>me,knowledgeServiceCommands:()=>f,knowledgeServiceEvents:()=>g});const r=JSON.parse('{"I":{"N":"KnowledgeService","a":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.COMMAND_THROTTLED="command.throttled",e.UNKNOWN_ERROR="unknown.error"}(o||(o={}));const i=e=>-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=e=>{if(!e.data)return{code:o.UNKNOWN_ERROR,message:"Something went wrong. Please try again later."};const{code:t=o.UNKNOWN_ERROR,message:n}=e.data;switch(t){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(n)};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:n};case o.PLUGIN_NAME_TAKEN:return{code:o.PLUGIN_NAME_TAKEN,message:"Can't register plugin, name is already taken"};default:return{code:t,message:"Something went wrong. Please try again later."}}},s=(e,t="",n)=>{O.log({message:e,data:t,pluginName:n})},u=r.I.N,c=(e=>t=>`${e}.${t}`)(u);var l,d,p;!function(e){e.supportCenter="SupportCenter",e.messenger="MessengerKnowledgeApp"}(l||(l={})),function(e){e.search="search",e.getSuggestions="getSuggestions",e.getCategories="getCategories",e.getArticle="getArticle",e.getArticlesByCategory="getArticlesByCategory",e.getArticlesByCategories="getArticlesByCategories",e.getTopViewedArticles="getTopViewedArticles",e.getSession="getSession",e.sendFeedback="sendFeedback",e.clear="clear"}(d||(d={})),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.articlesByCategories="articlesByCategories",e.noArticlesByCategoryFound="noArticlesByCategoryFound",e.topViewedArticles="topViewedArticles",e.noTopViewedArticlesFound="noTopViewedArticlesFound",e.feedbackSent="feedbackSent",e.cleared="cleared"}(p||(p={}));const f={search:c(d.search),getSuggestions:c(d.getSuggestions),getCategories:c(d.getCategories),getArticle:c(d.getArticle),getArticlesByCategory:c(d.getArticlesByCategory),getArticlesByCategories:c(d.getArticlesByCategories),getTopViewedArticles:c(d.getTopViewedArticles),getSession:c(d.getSession),sendFeedback:c(d.sendFeedback),clear:c(d.clear)},g={error:c(p.error),suggestions:c(p.suggestions),noSuggestionsFound:c(p.noSuggestionsFound),searchResults:c(p.searchResults),noSearchResultsFound:c(p.noSearchResultsFound),article:c(p.article),noArticleFound:c(p.noArticleFound),categories:c(p.categories),noCategoriesFound:c(p.noCategoriesFound),articlesByCategory:c(p.articlesByCategory),articlesByCategories:c(p.articlesByCategories),topViewedArticles:c(p.topViewedArticles),noArticlesByCategoryFound:c(p.noArticlesByCategoryFound),noTopViewedArticlesFound:c(p.noTopViewedArticlesFound),feedbackSent:c(p.feedbackSent),cleared:c(p.cleared)};let m;const h=()=>{if(!m)throw a({data:{code:o.CONFIG_NOT_FOUND_ERROR}});return s("[service] get config",m,u),m},v=()=>{var e;return(null===(e=h())||void 0===e?void 0:e.apiEndpoint)+"/api"},D=h;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())}))};const y={},x=()=>{var e;const t=(null===(e=D())||void 0===e?void 0:e.storage)||"LocalStorage";return{get:t+".get",set:t+".set",remove:t+".remove"}},w=(e,t)=>b(void 0,void 0,void 0,(function*(){if(!e)throw new Error("Mandatory parameter is missing: name");return y[e]||(y[e]=C(e,t)),y[e]})),C=(e,t=(e=>b(void 0,void 0,void 0,(function*(){}))))=>b(void 0,void 0,void 0,(function*(){return((e,t,n="promise timeout error")=>b(void 0,void 0,void 0,(function*(){const r=Symbol(n);let i;const s=new Promise(((e,n)=>{i=setTimeout(n,t,r)}));try{return yield Promise.race([e,s])}catch(e){if(r===e);else if("string"==typeof e&&-1!==e.indexOf("Name is already taken"))throw a({data:{code:o.PLUGIN_NAME_TAKEN}});throw a(e)}finally{clearTimeout(i)}})))(new Promise(((n,r)=>{Genesys("registerPlugin",e,(e=>{e.subscribe("Identifiers.ready",(()=>b(void 0,void 0,void 0,(function*(){yield t(e),e.ready(),n(e)}))))}),r)})),r.I.a,`register ${e} plugin timed out`)})),O={getFromStorage:({name:e,pluginName:t})=>b(void 0,void 0,void 0,(function*(){const n=yield w(t),r=yield n.command(x().get,{name:e});return r===e+" not found"?null:r})),saveToStorage:({name:e,value:t,pluginName:n})=>b(void 0,void 0,void 0,(function*(){const r=yield w(n);yield r.command(x().set,{name:e,value:t})})),removeFromStorage:({name:e,pluginName:t})=>b(void 0,void 0,void 0,(function*(){const n=yield w(t);yield n.command(x().remove,{name:e})})),sendRequest:({url:e,method:t,requestData:n,pluginName:r})=>b(void 0,void 0,void 0,(function*(){return(yield w(r)).command("MessengerHelper.makeRequest",{url:e,method:t,data:n})})),getPlugin:w,initPlugin:w,getStorageCommands:x,publish:({message:e,data:t,pluginName:n})=>b(void 0,void 0,void 0,(function*(){(yield w(n)).publish(e,t)})),log:({message:e,data:t,pluginName:n})=>b(void 0,void 0,void 0,(function*(){(yield w(n)).log(e,t)})),sendCommand:({command:e,data:t,pluginName:n})=>b(void 0,void 0,void 0,(function*(){return(yield w(n)).command(e,t)}))};var E=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())}))};const S=[],j=[],F=(e,t)=>t.push(e),A=({interceptors:e,context:t})=>E(void 0,void 0,void 0,(function*(){let n=t;for(const t of e)n=yield t(n);return n})),T={getBeforeRequestInterceptors:()=>JSON.parse(JSON.stringify(S)),getAfterRequestInterceptors:()=>JSON.parse(JSON.stringify(j)),addBeforeRequestInterceptor:e=>F(e,S),addAfterRequestInterceptor:e=>F(e,j),runBeforeRequestInterceptors:e=>E(void 0,void 0,void 0,(function*(){return A({interceptors:S,context:e})})),runAfterRequestInterceptors:e=>E(void 0,void 0,void 0,(function*(){return A({interceptors:j,context:e})}))},M=[],k={addNoRetryDelegates:e=>M.push(e),runNoRetryDelegates:e=>{let t=!0;for(const n of M)n(e)&&(t=!1);return t},getNoRetryDelegates:()=>JSON.parse(JSON.stringify(M))},I=["sessionId","documentId","searchId"],P=(e,t,n)=>{if(-1!==e.indexOf(`{${t}}`)&&!n)throw new Error(t+" is not defined, however its required by the operation");return e.replace(`{${t}}`,n)},R=(e,t,n)=>Array.isArray(n)?n.forEach((n=>e.append(t,n))):e.append(t,n),B=(e,t)=>{const n=new URLSearchParams;for(const r in t){const{required:o,defaultValue:i}=t[r]||{},a=e[r];if(a)R(n,r,a);else{if(o&&!i)throw new Error(r+" is not defined, however its required by the operation");i&&R(n,r,i)}}return n.toString()},L={composeUrl:(e,t,n)=>{I.forEach((n=>{var r;const o=null!==(r=t[n])&&void 0!==r?r:"";e=Array.isArray(o)?P(e,n,o.join(",")):P(e,n,o)}));const r=B(t,n);return`${e}${r?"?"+r:""}`},composeUrlChunk:P,composeSearchParams:B},N=(e,t="")=>{s(e,t,r.I.N)};var _=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())}))};const{addBeforeRequestInterceptor:H,addAfterRequestInterceptor:$,runBeforeRequestInterceptors:z,runAfterRequestInterceptors:q}=T,{addNoRetryDelegates:V,runNoRetryDelegates:U}=k,{composeUrl:G}=L,W={sendRequest:({serviceUrl:e,serviceOperation:t,requestData:n,ids:r,appType:o})=>_(void 0,void 0,void 0,(function*(){const i=yield z({serviceUrl:e,serviceOperation:t,requestData:n,appType:o,ids:r}),a=yield(({serviceUrl:e,serviceOperation:t,requestData:n,ids:r={}})=>_(void 0,void 0,void 0,(function*(){const o=G(t.url,r,t.searchParams),i=e+o,a=t.method;let s=0,c=null;for(;s<3;)try{N(`[service] send request to: ${a.toString().toUpperCase()} ${i}`,JSON.stringify(n));const e=yield O.sendRequest({url:i,method:a,requestData:n,pluginName:u});return N("[service] response received",e.data),e.data}catch(e){if(e.data&&!U(e.data))return e.data;N(`[service] http call failed on url ${a.toString().toUpperCase()} ${i} \n with status ${e.status}, Try ${s+1}`,e),c=e,s++}throw c})))(i);return(yield q(Object.assign({responseData:a},i))).responseData})),addNoRetryDelegates:V,register:{beforeRequestInterceptor:H,afterRequestInterceptor:$}},K=JSON.parse('{"g":{"aR":{"method":"POST","url":"/v2/knowledge/guest/sessions"},"kv":{"method":"POST","url":"/v2/knowledge/guest/sessions/{sessionId}/documents/search","searchParams":{"expand":{"defaultValue":["documentAlternatives","documentVariations"]}}},"s7":{"method":"POST","url":"/v2/knowledge/guest/sessions/{sessionId}/documents/search/suggestions"},"Ys":{"method":"GET","url":"/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}","searchParams":{"useContext":{"defaultValue":"true"}}},"yM":{"method":"GET","url":"/v2/knowledge/guest/sessions/{sessionId}/documents","searchParams":{"pageSize":{"defaultValue":"100"},"pageNumber":{"defaultValue":"1"},"categoryId":{"required":true},"useContext":{"defaultValue":"true"}}},"iW":{"method":"GET","url":"/v2/knowledge/guest/sessions/{sessionId}/documents","searchParams":{"sortBy":{"defaultValue":"ViewCount"},"sortOrder":{"defaultValue":"Desc"},"pageSize":{"defaultValue":"5"},"useContext":{"defaultValue":"true"}}},"od":{"method":"GET","url":"/v2/knowledge/guest/sessions/{sessionId}/categories","searchParams":{"pageSize":{"defaultValue":"100"},"before":{},"after":{}}},"iG":{"method":"POST","url":"/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}/feedback"},"Y3":{"method":"PATCH","url":"/v2/knowledge/guest/sessions/{sessionId}/documents/search/{searchId}"},"Oc":{"method":"POST","url":"/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}/views"}},"C":{"MessengerKnowledgeApp":[{"id":"3519ec85-3ec2-4932-9e7c-483fa382a9b1","values":[{"id":"d49d6170-8e3b-47e2-9f1c-a030822c7f4f"}]}],"SupportCenter":[{"id":"3519ec85-3ec2-4932-9e7c-483fa382a9b1","values":[{"id":"bec0bb26-6b11-4917-94ff-4d7106e44ec1"}]}]}}');var J=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())}))};const Y=({ids:e,serviceUrl:t,serviceOperation:n,nextUrl:r,entities:o,appType:i})=>{return s=function*(){var a;if(!r)return o;const s=yield W.sendRequest({serviceUrl:t,serviceOperation:Object.assign(Object.assign({},n),{url:r}),ids:e,appType:i}),[u,c]=(null===(a=null==s?void 0:s.nextUri)||void 0===a?void 0:a.split("?"))||[],l=new URLSearchParams(c);for(const[t,n]of l.entries())e=Object.assign(Object.assign({},e),{[t]:n});return Y({ids:e,serviceUrl:t,serviceOperation:n,nextUrl:null==u?void 0:u.replace(/^\/api/g,""),entities:[...o,...s.entities],appType:i})},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{o(s.next(e))}catch(e){t(e)}}function r(e){try{o(s.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,r)}o((s=s.apply(void 0,[])).next())}));var a,s};var Q=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())}))};const X=({sessionId:e,categoryId:t,pageSize:n,pageNumber:r,appType:o})=>Q(void 0,void 0,void 0,(function*(){var i,s,u,c;try{const a=yield v(),l=yield W.sendRequest({serviceUrl:a,serviceOperation:K.g.yM,ids:{sessionId:e,categoryId:t,pageNumber:null==r?void 0:r.toString(),pageSize:null==n?void 0:n.toString()},appType:o}),d={cursor:{after:{pageNumber:null===(s=new URLSearchParams(null===(i=l.nextUri)||void 0===i?void 0:i.split("?").pop()))||void 0===s?void 0:s.get("pageNumber")},before:{pageNumber:null===(c=new URLSearchParams(null===(u=l.previousUri)||void 0===u?void 0:u.split("?").pop()))||void 0===c?void 0:c.get("pageNumber")}},articles:l.entities.map((e=>({id:e.id,title:e.title,categoryId:e.category.id,dateCreated:e.dateCreated,dateModified:e.dateModified})))};return N("[service] get articles by category return value",d),d}catch(e){throw N("[service] get articles by category error",e),a(e)}})),Z=X;var ee=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())}))};let te=null,ne=null;const re=(e,t)=>{switch(t){case l.messenger:return e+":gcmksid";case l.supportCenter:return e+":gcscsid"}},oe=({appId:e,appType:t,customerId:n,journeySessionId:r})=>ee(void 0,void 0,void 0,(function*(){const o=v(),i=K.C[t],s={app:{deploymentId:e,type:t},customerId:n,journeySessionId:r,pageUrl:window.location.href,contexts:i};try{return ne=W.sendRequest({serviceUrl:o,serviceOperation:K.g.aR,requestData:s,appType:t}),te=yield ne,ne=null,(({appId:e,session:t,appType:n})=>{ee(void 0,void 0,void 0,(function*(){N("[service] saving session to session storage"),O.saveToStorage({name:re(e,n),value:t.id,pluginName:u})}))})({appId:e,session:te,appType:t}),te}catch(e){throw a(e)}})),ie=e=>"session.not.found"===(null==e?void 0:e.code);W.addNoRetryDelegates(ie),W.register.afterRequestInterceptor((e=>ee(void 0,void 0,void 0,(function*(){var t;if((null==e?void 0:e.responseData)&&ie(e.responseData)){const n=D(),{appId:r,customerId:o,journeySessionId:i}=n,{appType:s}=e,u=yield(({appId:e,appType:t,customerId:n,journeySessionId:r})=>ee(void 0,void 0,void 0,(function*(){return N("[service] - new - renew session called"),ne||oe({appId:e,appType:t,customerId:n,journeySessionId:r})})))({appId:r,appType:s,customerId:o,journeySessionId:i});(null===(t=null==e?void 0:e.ids)||void 0===t?void 0:t.sessionId)&&(e.ids.sessionId=u.id);try{(null==e?void 0:e.responseData)&&(e.responseData=yield W.sendRequest(e))}catch(e){throw a(e)}}return e}))));const ae=({sessionId:e,documentId:t,documentVariationId:n,documentVersionId:r,rating:o,searchId:i,reason:s,comment:u,queryType:c,appType:l})=>{return p=function*(){try{const a=yield v(),d={document:{versionId:r},documentVariation:{id:n},rating:o};i&&(d.search={id:i}),s&&(d.reason=s),u&&(d.comment=u),c&&(d.queryType=c);const p=yield W.sendRequest({serviceUrl:a,serviceOperation:K.g.iG,requestData:d,ids:{sessionId:e,documentId:t},appType:l});return N("[service] send feedback successful",p),p}catch(e){throw N("[service] send feedback error",e),a(e)}},new((d=void 0)||(d=Promise))((function(e,t){function n(e){try{o(p.next(e))}catch(e){t(e)}}function r(e){try{o(p.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof d?o:new d((function(e){e(o)}))).then(n,r)}o((p=p.apply(void 0,[])).next())}));var d,p};var se,ue;!function(e){e.Unknown="Unknown",e.Article="Article",e.AutoSearch="AutoSearch",e.Category="Category",e.ManualSearch="ManualSearch",e.Recommendation="Recommendation",e.Suggestion="Suggestion"}(se||(se={})),function(e){e.AutoSearch="AutoSearch",e.ManualSearch="ManualSearch",e.Suggestion="Suggestion"}(ue||(ue={}));var ce=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())}))},le=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())}))};const de={message:"KnowledgeService plugin has been cleared. Please reload the page to reinitialize."};let pe=!1,fe=!1;(null===window||void 0===window?void 0:window.Genesys)&&window.Genesys("subscribe","KnowledgeService.ready",(()=>{pe=!0}));const ge=e=>{const t=D(),n=(e=>t=>{let n=!1;return r=>{return a=function*(){try{if(n)throw{code:o.COMMAND_THROTTLED,message:"event: "+JSON.stringify(r)};n=!0,setTimeout((()=>{n=!1}),125),yield t(r)}catch(t){e.publish(p.error,t),r.reject(t)}},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{o(a.next(e))}catch(e){t(e)}}function r(e){try{o(a.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof i?o:new i((function(e){e(o)}))).then(n,r)}o((a=a.apply(void 0,[])).next())}));var i,a}})(e),r=e=>n((t=>le(void 0,void 0,void 0,(function*(){fe?t.reject(de):yield e(t)}))));if(!t)return;const{customerId:i,deploymentId:s,journeySessionId:c}=t,f=({result:e={},meta:t={},sessionId:n})=>le(void 0,void 0,void 0,(function*(){return Object.assign(Object.assign({sessionId:n,deploymentId:s},t),{result:e})})),g=e=>le(void 0,void 0,void 0,(function*(){const t="SupportCenter"===e?l.supportCenter:l.messenger,{id:n}=yield(({appId:e,appType:t,customerId:n,journeySessionId:r})=>ee(void 0,void 0,void 0,(function*(){return N("[service] - new - create session called"),te=yield((e,t)=>ee(void 0,void 0,void 0,(function*(){N("[service] checking session storage");const n=yield O.getFromStorage({name:re(e,t),pluginName:u});return n?(N("[service] session found in storage"),{id:n}):(N("[service] sessionId not found in storage"),null)})))(e,t),te||ne||oe({appId:e,appType:t,customerId:n,journeySessionId:r})})))({appType:t,customerId:i,journeySessionId:c,appId:s});return{sessionId:n,appType:t}})),m=(t,n={})=>{e.publish(t,n)};e.registerCommand(d.search,r((e=>le(void 0,void 0,void 0,(function*(){const{query:t,pageSize:n,queryType:r}=e.data,{sessionId:o,appType:i}=yield g(e.commander),{searchResults:s,searchId:u}=yield(({sessionId:e,query:t,pageSize:n=3,appType:r,queryType:o})=>J(void 0,void 0,void 0,(function*(){const i=v(),s={query:t,pageSize:n,pageNumber:1};o&&(s.queryType=o);try{const t=yield W.sendRequest({serviceUrl:i,serviceOperation:K.g.kv,requestData:s,appType:r,ids:{sessionId:e}}),n={searchResults:t.results?t.results:[],searchId:t.searchId};return N("[service] search parsed results",n),n}catch(e){throw N("[service] search error",e),a(e)}})))({sessionId:o,query:t,pageSize:n,appType:i,queryType:r}),c=yield f({result:s,meta:{searchId:u},sessionId:o});(null==s?void 0:s.length)?m(p.searchResults,c):m(p.noSearchResultsFound),e.resolve(c)}))))),e.registerCommand(d.getSuggestions,r((e=>le(void 0,void 0,void 0,(function*(){const{query:t,pageSize:n}=e.data,{sessionId:r,appType:o}=yield g(e.commander),i=yield(({sessionId:e,query:t,pageSize:n=3,appType:r})=>J(void 0,void 0,void 0,(function*(){const o=v(),i={query:t,pageSize:n};try{const t=yield W.sendRequest({serviceUrl:o,serviceOperation:K.g.s7,requestData:i,appType:r,ids:{sessionId:e}}),n=t.results?t.results:[];return N("[service] autocomplete parsed results",n),n}catch(e){throw N("[service] autocomplete error",e),a(e)}})))({sessionId:r,query:t,pageSize:n,appType:o}),s=yield f({result:i,sessionId:r});(null==i?void 0:i.length)?m(p.suggestions,s):m(p.noSuggestionsFound),e.resolve(s)}))))),e.registerCommand(d.getCategories,r((e=>le(void 0,void 0,void 0,(function*(){const{sessionId:t,appType:n}=yield g(e.commander),r=yield(({sessionId:e,appType:t})=>{return r=function*(){try{const n=yield v(),r=K.g.od,o=(e=>e.map((e=>{var t;return{id:e.id,name:e.name,description:e.description,parentId:null===(t=null==e?void 0:e.parentCategory)||void 0===t?void 0:t.id}})))(yield Y({ids:{sessionId:e},serviceUrl:n,serviceOperation:r,appType:t,nextUrl:r.url,entities:[]}));return N("[service] get categories return value",o),o}catch(e){throw N("[service] get categories error",e),a(e)}},new((n=void 0)||(n=Promise))((function(e,t){function o(e){try{a(r.next(e))}catch(e){t(e)}}function i(e){try{a(r.throw(e))}catch(e){t(e)}}function a(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,i)}a((r=r.apply(void 0,[])).next())}));var n,r})({sessionId:t,appType:n}),o=yield f({result:r,sessionId:t});(null==r?void 0:r.length)?m(p.categories,o):m(p.noCategoriesFound),e.resolve(o)}))))),e.registerCommand(d.getArticle,r((e=>le(void 0,void 0,void 0,(function*(){const{searchId:t,articleId:n,queryType:r}=e.data,{sessionId:i,appType:s}=yield g(e.commander);let u={},c={};t&&(({sessionId:e,searchId:t,documentId:n,appType:r})=>{ce(void 0,void 0,void 0,(function*(){try{const o=v(),i={answered:!0,selectedAnswer:{document:{id:n}}};return yield W.sendRequest({serviceUrl:o,serviceOperation:K.g.Y3,requestData:i,ids:{sessionId:e,searchId:t},appType:r}),N("[service] submit searchAnswer analytics successful"),{}}catch(e){throw N("[service] submit searchAnswer analytics error",e),a(e)}}))})({sessionId:i,searchId:t,documentId:n,appType:s});try{u=yield(({sessionId:e,articleId:t,appType:n})=>Q(void 0,void 0,void 0,(function*(){try{const r=v(),o=yield W.sendRequest({serviceUrl:r,serviceOperation:K.g.Ys,ids:{sessionId:e,documentId:t},appType:n});return N("[service] get article return value",o),o}catch(e){throw N("[service] get article error",e),a(e)}})))({sessionId:i,articleId:n,appType:s}),c=yield f({result:u,sessionId:i}),m(p.article,c)}catch(e){throw(null==e?void 0:e.code)===o.NOT_FOUND&&m(p.noArticleFound),e}const l=(null==u?void 0:u.variations)&&u.variations[0];l&&(({sessionId:e,documentId:t,documentVariationId:n,documentVersionId:r,searchId:o,queryType:i=se.Unknown,appType:s})=>{ce(void 0,void 0,void 0,(function*(){try{const a=v(),u={documentVariationId:n,documentVersionId:r,queryType:i};return o&&(u.searchId=o),yield W.sendRequest({serviceUrl:a,serviceOperation:K.g.Oc,requestData:u,ids:{sessionId:e,documentId:t},appType:s}),N("[service] submit sendViewEvent analytics successful"),{}}catch(e){throw N("[service] submit sendViewEvent analytics error",e),a(e)}}))})({sessionId:i,documentId:n,documentVariationId:l.id,documentVersionId:l.documentVersion.id,searchId:t,queryType:r,appType:s}),e.resolve(c)}))))),e.registerCommand(d.getArticlesByCategory,r((e=>le(void 0,void 0,void 0,(function*(){const{categoryId:t,pageNumber:n,pageSize:r}=e.data,{sessionId:o,appType:i}=yield g(e.commander),{cursor:a,articles:s}=yield Z({sessionId:o,categoryId:t,pageSize:r,pageNumber:n,appType:i}),u=yield f({result:s,meta:{cursor:a},sessionId:o});(null==s?void 0:s.length)?m(p.articlesByCategory,u):m(p.noArticlesByCategoryFound),e.resolve(u)}))))),e.registerCommand(d.getArticlesByCategories,r((e=>le(void 0,void 0,void 0,(function*(){const{categoryIds:t,pageSize:n}=e.data,{sessionId:r,appType:o}=yield g(e.commander),i=yield(({sessionId:e,categoryIds:t,pageSize:n=3,appType:r})=>Q(void 0,void 0,void 0,(function*(){const o=t.map((t=>Q(void 0,void 0,void 0,(function*(){const{articles:o}=yield X({appType:r,sessionId:e,categoryId:t,pageSize:n});return o})))),i=(yield Promise.all(o)).flat();return N("[service] get articles by categories return value",i),i})))({appType:o,sessionId:r,categoryIds:t,pageSize:n}),a=yield f({result:i,sessionId:r});m(p.articlesByCategories,a),e.resolve(a)}))))),e.registerCommand(d.sendFeedback,r((e=>le(void 0,void 0,void 0,(function*(){const{documentId:t,documentVariationId:n,documentVersionId:r,rating:o,comment:i,reason:a,searchId:s,queryType:u}=e.data,{sessionId:c,appType:l}=yield g(e.commander),d=yield ae({sessionId:c,documentId:t,documentVariationId:n,documentVersionId:r,rating:o,searchId:s,comment:i,reason:a,queryType:u,appType:l}),h=yield f({result:d,sessionId:c});m(p.feedbackSent,h),e.resolve(h)}))))),e.registerCommand(d.getSession,r((e=>le(void 0,void 0,void 0,(function*(){const{sessionId:t}=yield g(e.commander);let n=yield f({sessionId:t});n=Object.assign(Object.assign({},n),{result:{sessionId:n.sessionId}}),e.resolve(n)}))))),e.registerCommand(d.getTopViewedArticles,r((e=>le(void 0,void 0,void 0,(function*(){const{pageSize:t}=e.data,{sessionId:n,appType:r}=yield g(e.commander),o=yield(({sessionId:e,pageSize:t,appType:n})=>Q(void 0,void 0,void 0,(function*(){try{const r=v(),o=(yield W.sendRequest({serviceUrl:r,serviceOperation:K.g.iW,ids:{sessionId:e,pageSize:null==t?void 0:t.toString()},appType:n})).entities.map((e=>{var t;return{id:e.id,title:e.title,categoryId:null===(t=e.category)||void 0===t?void 0:t.id,dateCreated:e.dateCreated,dateModified:e.dateModified}}));return N("[service] get top viewed articles return value",o),o}catch(e){throw N("[service] get top viewed articles error",e),a(e)}})))({sessionId:n,pageSize:t,appType:r}),i=yield f({result:o,sessionId:n});(null==o?void 0:o.length)?m(p.topViewedArticles,i):m(p.noTopViewedArticlesFound),e.resolve(i)}))))),e.registerCommand(d.clear,r((e=>le(void 0,void 0,void 0,(function*(){"Messenger"===e.commander?(fe=!0,(({appId:e,appType:t})=>{ee(void 0,void 0,void 0,(function*(){N("[service] - new - remove session called"),((e,t)=>{ee(void 0,void 0,void 0,(function*(){N("[service] removing session from session storage"),O.removeFromStorage({name:re(e,t),pluginName:u})}))})(e,t)}))})({appId:s,appType:l.messenger}),m(p.cleared),e.resolve({})):e.reject({message:e.commander+" plugin does not have permission to access clear command"})})))))},me=({deploymentId:e,apiEndpoint:t,appType:n})=>le(void 0,void 0,void 0,(function*(){if(!n)throw new Error("Mandatory field is missing: appType. Allowable values are: "+Object.values(l));if(!Object.values(l).includes(n))throw new Error(`Value "${n}" is not valid appType. Allowable values are: ${Object.values(l)}`);if(pe)throw new Error("KnowledgeService plugin already registered, skip initialization");if("function"==typeof window.Genesys)return yield O.getPlugin(u,(r=>le(void 0,void 0,void 0,(function*(){var o,i;if(!r)return;const a=yield r.command("Identifiers.getAll");if(!(e=e||(null===(o=r.data("GenesysJS.snippetConfig"))||void 0===o?void 0:o.deploymentId)))throw new Error("Mandatory field is missing: deploymentId");if(!(t=t||(null===(i=r.data("GenesysJS.deploymentConfig"))||void 0===i?void 0:i.apiEndpoint)))throw new Error("Mandatory field is missing: apiEndpoint");var c;c={customerId:null==a?void 0:a.customerId,journeySessionId:null==a?void 0:a.sessionId,deploymentId:e,apiEndpoint:t,appType:n,appId:e},s("[service] set config",c,u),m=c,ge(r)}))));throw new Error("GenesysJS is missing from the window")}));var he=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())}))};const ve={getCategories:()=>(({pluginName:e,data:t})=>he(void 0,void 0,void 0,(function*(){return yield O.sendCommand({command:d.getCategories,data:t,pluginName:e})})))({pluginName:u,data:{}}),search:e=>(({pluginName:e,data:t})=>he(void 0,void 0,void 0,(function*(){return yield O.sendCommand({command:d.search,data:t,pluginName:e})})))({pluginName:u,data:e}),getSuggestions:e=>(({pluginName:e,data:t})=>he(void 0,void 0,void 0,(function*(){return yield O.sendCommand({command:d.getSuggestions,data:t,pluginName:e})})))({pluginName:u,data:e}),getArticle:e=>(({pluginName:e,data:t})=>he(void 0,void 0,void 0,(function*(){return yield O.sendCommand({command:d.getArticle,data:t,pluginName:e})})))({pluginName:u,data:e}),getArticlesByCategory:e=>(({pluginName:e,data:t})=>he(void 0,void 0,void 0,(function*(){return yield O.sendCommand({command:d.getArticlesByCategory,data:t,pluginName:e})})))({pluginName:u,data:e}),getTopViewedArticles:e=>(({pluginName:e,data:t})=>he(void 0,void 0,void 0,(function*(){return yield O.sendCommand({command:d.getTopViewedArticles,data:t,pluginName:e})})))({pluginName:u,data:e}),sendFeedback:e=>(({pluginName:e,data:t})=>he(void 0,void 0,void 0,(function*(){return yield O.sendCommand({command:d.sendFeedback,data:t,pluginName:e})})))({pluginName:u,data:e}),getSession:()=>(({pluginName:e,data:t})=>he(void 0,void 0,void 0,(function*(){return yield O.sendCommand({command:d.getSession,data:t,pluginName:e})})))({pluginName:u,data:{}})};e.exports=n})()},function(e,t){e.exports=n(56)},function(e,t){e.exports=n(92)},function(e){e.exports=JSON.parse('{"plugin":{"name":"Knowledge","registeringTimeout":60000}}')},function(e,t){e.exports=n(39)},function(e,t){e.exports=n(433)},function(e,t){e.exports=n(434)},function(e,t){e.exports=n(340)},function(e,t){e.exports=n(226)},function(e,t){e.exports=n(435)},function(e,t,n){"use strict";n.r(t),n.d(t,"KnowledgeCard",(function(){return T})),n.d(t,"KnowledgeArticle",(function(){return ee})),n.d(t,"KnowledgeSearch",(function(){return Se})),n.d(t,"KnowledgeResults",(function(){return ze})),n.d(t,"KnowledgeCategories",(function(){return Qe})),n.d(t,"initKnowledgeServicePlugin",(function(){return Xe}));var r=n(10),o=n.n(r),i=n(3),a=n.n(i),s=n(5),u=n.n(s),c=n(0),l=n.n(c),d=n(1),p=n.n(d),f=n(2),g=n(11),m=n.n(g),h=n(8),v=n.n(h),D=n(4),b=n.n(D),y=n(6),x=n(9),w=function(e){var t=arguments.length>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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var A=function(e){var t=e.openSearch,n=e.i18n,r=e.muiCardProps,i=e.setPlugin,a=e.setStore,s=e.config,d=e.autoFocus,p=Object(c.useState)(""),g=u()(p,2),h=g[0],v=g[1],D=O(s).pluginState,b=Object(c.useRef)(),y=Object(c.useRef)(null),w=Object(c.useRef)(null),C=Object(c.useState)(!1),j=u()(C,2),A=j[0],T=j[1],M=function(e){e.ctrlKey||e.shiftKey||(e.preventDefault(),t({route:"knowledge.search"}))},k=function(){y&&y.current&&y.current.scrollWidth>y.current.clientWidth?A||T(!0):A&&T(!1)};Object(c.useEffect)((function(){return window.addEventListener("resize",k),function(){window.removeEventListener("resize",k)}}),[]),w&&w.current&&k(),Object(c.useEffect)((function(){D.plugin&&i&&i(x.plugin.name,D.plugin)}),[D.plugin]);var I=Object(S.styled)("form")((function(){return F(F({},E.cardContent),{},{"& .search-label":F({},E.searchLabel)})}));return l.a.createElement(f.Card,o()({ref:w,sx:F({},E.container)},r,{onClick:M}),l.a.createElement(I,null,l.a.createElement("div",{className:"search-label",role:"region"},l.a.createElement(f.Tooltip,{componentsProps:{tooltip:{sx:{width:"93%",maxHeight:"27px",overflowY:"auto",margin:"10px 0"}}},PopperProps:{container:w&&w.current},title:n.searchInputTitle,placement:"bottom",disableHoverListener:!A,disableFocusListener:!A,disableTouchListener:!A},l.a.createElement(f.Typography,{ref:y,sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},variant:"h3"},n.searchInputTitle))),l.a.createElement(f.TextField,{id:"searchBar",size:"small",inputRef:b,placeholder:n.searchInputPlaceholder,variant:"outlined",autoComplete:"off",value:h,onChange:function(e){v(e.target.value),a({inputValue:h})},onPaste:function(e){e.preventDefault(),e.clipboardData.items[0].getAsString((function(e){a({inputValue:e}),v(e),b.current.focus()}))},sx:F(F({},E.searchBar),{},{input:{"&::placeholder":{opacity:.62}}}),onKeyPress:M,InputProps:{role:"form",autoFocus:d,sx:{"&.Cx-MuiOutlinedInput-root":E.searchIconStartAdorment,"& .Cx-MuiOutlinedInput-input":E.inputAdornedStart},startAdornment:l.a.createElement(l.a.Fragment,null,l.a.createElement(f.Icon,{color:"inherit","aria-label":"search",fontSize:"small"},l.a.createElement(m.a,{fontSize:"small"})))}})))};A.propTypes={openSearch:p.a.func.isRequired,i18n:p.a.object.isRequired,setPlugin:p.a.func,muiCardProps:p.a.object,setStore:p.a.func.isRequired,store:p.a.object.isRequired,config:p.a.object.isRequired};var T=A,M=function(e,t){var n=e.blocks.map((function(e){return k(e)})).join("");return t?"<ol>".concat(n,"</ol>"):"<ul>".concat(n,"</ul>")},k=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?"<b>".concat(e,"</b>"):"Italic"===t?"<i>".concat(e,"</i>"):"Underline"===t?"<u>".concat(e,"</u>"):e}),t):t;return o?'<a href="'.concat(r,'" target="_blank" rel="noreferrer">').concat(i,"</a>"):i}(e.text):"Image"===e.type?(n=e.image,'<img src="'.concat(n.url,'" alt="" />')):"Video"===e.type?(t=e.video,'<iframe src="'.concat(t.url,'"></iframe>')):"Paragraph"===e.type?function(e){var t=e.blocks.map((function(e){return k(e)})).join("");return"<p>".concat(t,"</p>")}(e.paragraph):"OrderedList"===e.type?M(e.list,!0):"UnorderedList"===e.type?M(e.list,!1):"ListItem"===e.type?function(e){var t=e.blocks.map((function(e){return k(e)})).join("");return"<li>".concat(t,"</li>")}(e):null;var t,n},I=n(13),P=n.n(I),R=["errorCb","successCb"];function B(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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var N={pending:!1,error:!1,data:null},_=function(e){var t=Object(c.useState)(N),n=u()(t,2),r=n[0],o=n[1];return{state:r,actions:{execute:function(){var t=v()(b.a.mark((function t(){var n,r,i,a,s,u=arguments;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=(n=u.length>0&&void 0!==u[0]?u[0]:{}).errorCb,i=n.successCb,a=P()(n,R),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={position:"absolute",overflow:"hidden",left:"-10000px",top:"-10000px",width:"1px",height:"1px",textIndent:"-9999px",border:"0"};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 G="assertive",W="status",K=null,J=Object(S.styled)("div")((function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},V)})),Y=function(e){var t=e.region,n=e.role,r=e.content,o=e.delay,i=t,a=Object(c.useState)(""),s=u()(a,2),d=s[0],p=s[1];return Object(c.useEffect)((function(){if(K&&clearTimeout(K),o)return K=setTimeout((function(){p(r)}),o),function(){clearTimeout(K)};p(r)}),[r,o]),"alert"===n&&(i=null),l.a.createElement(J,{"aria-atomic":"true","aria-live":i,role:n},d)};Y.propTypes={region:p.a.string.isRequired,role:p.a.string.isRequired,content:p.a.node.isRequired,delay:p.a.number};var Q={padding:"0px 16px",overflow:"auto",wordBreak:"break-word","& img":{width:"100%"},"& iframe":{width:"100%",border:"none"}};function X(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 Z=function(e){var t=e.data,n=e.stopProgress,r=e.showProgress,o=e.openArticle,i=e.config,s=e.i18n,d=e.onError,p=e.store,g=e.setStore,m=t.documentId,h=z(),v=h.articleState,D=h.articleActions,b=v.article,y=Object(c.useState)(""),x=u()(y,2),w=x[0],C=x[1],E=O(i).pluginState,j=p.queryType,F=void 0===j?"Article":j,A=p.searchId,T=Object(S.styled)("div")((function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Q)}));return q({error:v.articleError,errorCallback:d}),Object(c.useEffect)((function(){if(b)try{var e=b.variations?b.variations[0].body.blocks.map((function(e){return k(e)})).join(""):"";C(e)}catch(e){var r="We have encountered some problems displaying this article, sorry about that... :(";C(r),H(r,e)}finally{n(),o({data:t,route:"knowledge.article",showProgress:!1})}}),[b]),Object(c.useEffect)((function(){m&&E.plugin&&(r(),D.getArticleById({articleId:m,queryType:F,searchId:A}),g({searchId:null}))}),[m,E.plugin]),b?l.a.createElement(T,{role:"article",tabIndex:0,"aria-labelledby":"articleTitle articleString"},l.a.createElement("h2",{id:"articleTitle"},b.title),l.a.createElement(f.Typography,{id:"articleString",variant:"body2",dangerouslySetInnerHTML:{__html:w}}),l.a.createElement(Y,{region:G,role:W,content:s.ariaArticleScreenOpenStatus,delay:2e3})):null};Z.propTypes={data:p.a.object.isRequired,stopProgress:p.a.func.isRequired,config:p.a.object.isRequired,showProgress:p.a.func.isRequired,i18n:p.a.object.isRequired,onError:p.a.func.isRequired,store:p.a.object.isRequired,setStore:p.a.func.isRequired};var ee=Z,te=n(14),ne=n.n(te),re=n(15),oe=n.n(re),ie={display:"flex",flexDirection:"column",padding:"12px 16px 12px 16px",wordBreak:"break-word",width:"100%",height:"100%",boxSizing:"border-box"},ae={width:"26px",height:"26px",display:"flex",alignItems:"inherit",justifyContent:"inherit"},se={icon:ae,searchCard:{padding:"0px"},searchCardItem:{display:"block",padding:"16px"},searchBar:{marginTop:"16px",width:"100%"},searchInput:{width:"100%"},searchLabel:{display:"flex",flexDirection:"row"},searchIcon:{padding:"2px"},cancelButton:{marginRight:"0px",padding:"0px"},autoCompletePaper:{margin:"4px 0!important"},autoCompleteInputRoot:{padding:"6px!important"},autoCompleteEndAdorment:{right:"0px!important",top:"3px!important",zIndex:1},autoCompleteClearIndicator:{marginRight:"0px"},autoCompleteOption:{display:"block !important"},searchIconStartAdorment:{position:"relative"},inputAdornedStart:{position:"relative",zIndex:1},searchInputLabel:{display:"none"}};function ue(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 ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var le=function(e){var t=e.params,n=e.muiTextFieldProps,r=e.i18n,i=e.isLoading,a=e.onSearch,s=e.onInputChange,u=e.onClear,d=e.handleSearchBoxNavigation,p=e.clearIconRef,g=e.utility,h=t.inputProps.value,v=Object(c.useRef)(),D=(g||{}).isMobile,b="function"==typeof D&&D();return Object(c.useEffect)((function(){setTimeout((function(){v.current&&v.current.focus()}),100)}),[]),l.a.createElement(f.TextField,o()({},t,{size:"small",placeholder:r.searchInputPlaceholder,label:r.searchInputPlaceholder,sx:{input:{"&::placeholder":{opacity:.62}}},InputLabelProps:{sx:{"&.Cx-MuiInputLabel-root":se.searchInputLabel}},onChange:s,onKeyDown:a,variant:"outlined",inputRef:v,InputProps:ce(ce(ce({},t.InputProps),b&&{tabIndex:"0"}),{},{sx:{"&.Cx-MuiOutlinedInput-root":se.searchIconStartAdorment,"& .Cx-MuiOutlinedInput-input":se.inputAdornedStart},notched:!1,startAdornment:l.a.createElement(l.a.Fragment,null,l.a.createElement(f.Icon,{color:"inherit",fontSize:"small",sx:ce({},se.searchIcon)},l.a.createElement(m.a,{fontSize:"small"}))),endAdornment:l.a.createElement(l.a.Fragment,null,i?l.a.createElement(f.CircularProgress,{color:"inherit",size:20,"aria-busy":"true",role:"alert","aria-label":r.ariaLoading}):null,!i&&h?l.a.createElement(f.IconButton,{edge:"end","data-testid":"end-adornment",sx:ce({},se.cancelButton),color:"inherit","aria-label":"clear",tabIndex:0,ref:p,onClick:function(){return u(null,null,"clear")},onKeyDown:function(e){"Enter"===e.key?u(null,null,"clear"):"Tab"!==e.key||e.ctrlKey||e.shiftKey||!d||d(e)}},l.a.createElement(oe.a,{sx:ce({},se.icon)})):null)})},n))},de={fontWeight:700},pe={whiteSpace:"break-spaces",padding:"6px 16px",cursor:"pointer","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},fe={backgroundColor:"rgba(0, 0, 0, 0.04)"};function ge(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 me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var he=function(e){var t,n,r=e.displayedText,o=e.isActive,i=e.highlightedText,a=void 0===i?"":i,s=e.onClick,u=Object(S.styled)("span")((function(){return me({},de)})),c=Object(S.styled)("div")((function(e){return me(me({},pe),{},{backgroundColor:e.isActive&&fe.backgroundColor})})),d=""!==a?(t=r,n=a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),t.split(new RegExp("(".concat(n,")"),"gi")).map((function(e,t){return e.toLowerCase()===a.toLowerCase()?l.a.createElement(u,{key:t},e):l.a.createElement("span",{key:t},e)}))):r;return l.a.createElement(c,{isActive:o,onClick:s},d)};he.propTypes={displayedText:p.a.string.isRequired,isActive:p.a.bool.isRequired,highlightedText:p.a.string,onClick:p.a.func.isRequired};var ve=he;function De(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 be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ye={searchQuery:""},xe={autocompleteQuery:""};function we(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 Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Oe={freeSolo:!0,fullWidth:!0,autoHighlight:!1,disablePortal:!0},Ee=function(e){var t,n=e.showResults,r=e.i18n,i=e.config,a=e.muiAutoCompleteProps,s=e.muiTextFieldProps,d=e.store,p=e.setStore,f=e.showProgress,g=e.stopProgress,m=e.onError,h=e.knowledgeSearchBoxRef,D=e.handleSearchBoxNavigation,x=e.utility,w=function(){var e=Object(c.useState)(null),t=u()(e,2),n=t[0],r=t[1],o=Object(c.useState)(ye),i=u()(o,2),a=i[0],s=i[1],l=Object(c.useState)(xe),d=u()(l,2),p=d[0],f=d[1],g=_(y.knowledgeServiceCommands.getSuggestions),m=g.state,h=g.actions,D=_(y.knowledgeServiceCommands.search),x=D.state,w=D.actions,C=function(){w.clear()},O=function(){h.clear()},E=function(){var e=v()(b.a.mark((function e(t){var n,r;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.autocompleteQuery){e.next=3;break}return e.abrupt("return");case 3:return f((function(e){return be(be({},e),{},{autocompleteQuery:n})})),e.prev=4,e.next=7,h.execute({query:n});case 7:r=e.sent,H("[hooks] autocomplete result",r),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),H("Error in autocomplete",e.t0);case 14:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=v()(b.a.mark((function e(t){var n,r,o,i,a,u;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.searchQuery,r=t.pageSize,o=void 0===r?3:r,i=t.queryType,a=t.successCb,!((null==n?void 0:n.length)<3)){e.next=3;break}return e.abrupt("return");case 3:return s({searchQuery:n}),e.prev=4,e.next=7,w.execute({query:n,pageSize:o,queryType:i,successCb:a});case 7:u=e.sent,H("[hooks] search result",u),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),H("Error in search",e.t0);case 14:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(t){return e.apply(this,arguments)}}();return{searchState:be(be({inputText:n,autocompletePending:m.pending,autocompleteError:m.error,autocompleteResult:m.data,searchPending:x.pending,searchError:x.error,searchResult:x.data},a),p),searchActions:{autocomplete:E,search:S,setInputText:function(e){var t=e.text;r(t)},reset:function(){r(""),s(ye),f(xe)},clearSearch:function(){s(ye),C()},clearAutocomplete:function(){f(xe),O()},clearInputText:function(){r("")},resetAutoCompleteApi:O,resetSearchApi:C}}}(),C=w.searchState,E=w.searchActions,S=C.searchPending,j=C.autocompletePending,F=C.autocompleteResult,A=C.searchResult,T=d.inputValue,M=O(i).pluginState,k=l.a.useRef(null),I=l.a.useRef(!1),P=Object(c.useState)(null),R=u()(P,2),B=R[0],L=R[1];q({error:C.autocompleteError,errorCallback:function(e){m(e),E.resetAutoCompleteApi()}}),q({error:C.searchError,errorCallback:function(e){m(e),E.resetSearchApi()}});var N,$,z=Object(c.useCallback)((N=function(e){E.autocomplete({autocompleteQuery:e})},250,$=null,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];clearTimeout($),$=setTimeout((function(){N.apply(null,t)}),250)}),[]),V=function(e){var t=e.target.value;E.setInputText({text:t}),z(t)},U=function(e){13!==e.which||e.ctrlKey||e.shiftKey?9!==e.which||e.ctrlKey||e.shiftKey||!D||k&&!k.current&&D(e):(e.preventDefault(),e.stopPropagation(),B?(E.setInputText({text:B}),K({searchQuery:B,pageSize:1,queryType:"Suggestion"})):K({searchQuery:e.target.value,queryType:"ManualSearch"}))},K=function(e){var t=e.searchQuery,n=e.pageSize,r=e.queryType,o=e.isUserAction,i=void 0===o||o;E.search({searchQuery:t,pageSize:n,queryType:r,successCb:function(e){var t=e.searchId;p({queryType:r,searchId:t})}}),I.current=i},J=function(e,t,r){("clear"===r||"input"===r&&""===t)&&(E.clearInputText(),E.clearAutocomplete(),E.clearSearch(),n({},""))};Object(c.useEffect)((function(){if(Array.isArray(A)){var e=A.map((function(e){var t=e.document;return{document:Ce(Ce({},t),{},{primaryText:t.title})}}));1===e.length&&I.current&&(p({shouldAutoOpenArticle:!0}),I.current=!1),n({searchResult:e,searchQuery:C.searchQuery},C.searchQuery),E.clearAutocomplete()}}),[A]);var Q=function(e){var t=e.inputText,n=e.autocompleteResult;return n&&r.ariaAutoCompleteResultsSummary?r.ariaAutoCompleteResultsSummary.replace("<%resultsCount%>",n.length).replace("<%searchInputText%>",t):""}({inputText:null==C?void 0:C.inputText,autocompleteResult:F});Object(c.useEffect)((function(){S?f():g()}),[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(){M.plugin&&d.inputValue&&(!C.inputText&&d.inputValue&&K({searchQuery:T,queryType:"ManualSearch",isUserAction:!1}),E.setInputText({text:T}))}),[M.plugin]);var X=null!==(t=null==F?void 0:F.map((function(e){return e.matchedPhrase})))&&void 0!==t?t:[],Z=!!C.autocompleteQuery&&!!X.length;return l.a.createElement(l.a.Fragment,null,l.a.createElement(ne.a,o()({id:"searchInput",value:C.inputText,sx:{"& .MuiAutocomplete-inputRoot":se.autoCompleteInputRoot,"& .MuiAutocomplete-endAdornment":se.autoCompleteEndAdorment},componentsProps:{paper:{sx:Ce({},se.autoCompletePaper)},clearIndicator:{sx:Ce({},se.autoCompleteClearIndicator)},option:{sx:Ce({},se.autoCompleteOption)}},loading:j,options:X,onInputChange:J,onHighlightChange:function(e,t,n){"keyboard"===n&&L(t)},ref:h,renderInput:function(e){return l.a.createElement(le,{params:e,muiTextFieldProps:s,i18n:r,isLoading:j,onInputChange:V,onSearch:U,onClear:J,isAreaDescrptionEnabled:Z,handleSearchBoxNavigation:D,clearIconRef:k,utility:x})},renderOption:function(e,t,n){var r=n.inputValue;return l.a.createElement("li",e,l.a.createElement(ve,{displayedText:t,highlightedText:r,isActive:B===t,onClick:function(){K({searchQuery:t,pageSize:1,queryType:"Suggestion"})}}))}},Oe,a,{open:Z})),Z&&l.a.createElement(Y,{region:G,role:W,content:Q,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 Te(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 Me=function(e){var t=e.message,n=Object(S.styled)("div")((function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Ae)}));return l.a.createElement(n,{role:"alert"},l.a.createElement(f.Typography,{className:"message",variant:"caption"},t))};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}Me.propTypes={message:p.a.string.isRequired};var Ie=function(e){var t=e.icon,n=e.customStyle;return l.a.createElement(t,{sx:function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({transform:"rtl"===e.direction?"scaleX(-1)":void 0},n)}})};Ie.propTypes={icon:p.a.elementType.isRequired};var Pe=Ie;function Re(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 Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Le={icon:ae,listStyles:{"& .Cx-MuiListItemText-primary":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",fontSize:"0.9rem"},"& .Cx-MuiListItemText-root":{position:"relative"}},listItemSecondary:{"& .Cx-MuiListItemText-secondary":{clear:"both",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},listItemSecondaryActionResults:{"&.Cx-MuiListItem-secondaryAction":{padding:"6px 74px 6px 0px",borderBottom:"1px solid rgba(0, 0, 0, 0.12)"}},arrowIcon:{right:0},searchResults:Be(Be({},ie),{},{"& .search-result-summary":{paddingRight:"4px",display:"inline-block"},"& .search-result-inputText":{fontWeight:"bold"}})};function Ne(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 _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var He=function(e){var t=e.document,n=e.openArticle,r=e.i18n,o=function(e){e.preventDefault();var r={documentId:t.id};n({route:"knowledge.article",data:r,showProgress:!0})},i=function(e){return e&&r.ariaOpenArticleByName?r.ariaOpenArticleByName.replace("<%article%>",e):"open article"}((t||{}).title);return l.a.createElement(l.a.Fragment,null,l.a.createElement(f.ListItem,{button:!0,sx:_e(_e(_e({},Le.listStyles),Le.listItemSecondary),Le.listItemSecondaryActionResults),onClick:o},l.a.createElement(f.ListItemText,{primary:t.primaryText||t.title}),l.a.createElement(f.ListItemSecondaryAction,{sx:_e({},Le.arrowIcon)},l.a.createElement(f.IconButton,{edge:"end",color:"inherit","aria-label":i,onClick:o},l.a.createElement(Pe,{icon:Fe.a,customStyle:Le.icon})))))},$e=function(e){var t=e||{},n=t.data,r=t.openArticle,o=t.i18n,i=t.articles,a=t.config,s=t.store,d=t.setStore,p=n||{},g=p.searchResult,m=p.searchQuery,h=Object(c.useState)(""),v=u()(h,2),D=v[0],b=v[1];Object(c.useEffect)((function(){if(g&&m){var e=o.ariaSearchResultSummary.replace("<%resultsCount%>",g.length).replace("<%searchQuery%>",m);b(e)}}),[n,m]),Object(c.useEffect)((function(){if(1===(null==g?void 0:g.length)){var e,t={documentId:null===(e=g[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}))}}),[g]);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:m,searchResult:g});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,i18n:o})}))):!g||g.length<1?m?l.a.createElement(y,null,l.a.createElement(Me,{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"},m)),l.a.createElement(f.List,{dense:!0},g.map((function(e){var t=e.document;return l.a.createElement(He,{key:t.id,document:t,openArticle:r,config:a,i18n:o})}))),l.a.createElement(Y,{region:G,role:W,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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ue={directionIcon:Ve({},ae),categoryList:{"& .Cx-MuiListItemText-primary":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",fontSize:"0.9rem"},"& .Cx-MuiListItemText-root":{position:"relative"}},categoryListSecondaryAction:{"&.Cx-MuiListItem-secondaryAction":{padding:"6px 28px 6px 2px",borderBottom:"1px solid rgba(0, 0, 0, 0.12)"}},categories:{padding:"12px 0 12px 0","& .search-categories-title":{display:"block",fontSize:"1rem",fontWeight:"500"}},categoriesContainer:Ve(Ve({},ie),{},{"& .categories-result-summary":{paddingRight:"4px",paddingTop:"10px",display:"inline-block",color:"#2E394C"}}),categoryArrowIcon:{right:0}};function Ge(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 We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ke=function(e){var t=e.categories,n=e.parentCategoryId;return null==t?void 0:t.filter((function(e){return e.parentId===n}))},Je=function(e){var t=e||{},n=t.category,r=t.i18n,o=t.openCategory,i=(n||"").name,a=i+".level"+Math.floor(1e3*Math.random()),s=function(e){e.preventDefault(),o({route:"knowledge.category."+a,data:n,showProgress:!0})},u=function(e){return e&&r.ariaOpenSearchCategoryByName?r.ariaOpenSearchCategoryByName.replace("<%category%>",e):r.ariaOpenSearchCategory}(i);return l.a.createElement(l.a.Fragment,null,l.a.createElement(f.ListItem,{button:!0,sx:We(We({},Ue.categoryList),Ue.categoryListSecondaryAction),onClick:s},l.a.createElement(f.ListItemText,{primary:i}),l.a.createElement(f.ListItemSecondaryAction,{sx:We({},Ue.categoryArrowIcon)},l.a.createElement(f.IconButton,{edge:"end",color:"inherit","aria-label":u,onClick:s},l.a.createElement(Pe,{icon:Fe.a,customStyle:Ue.directionIcon})))))},Ye=function(e){var t,n,r,o,i=e||{},a=i.i18n,s=i.data,d=i.openArticle,p=i.openCategory,g=i.showProgress,m=i.stopProgress,h=i.config,D=i.setStore,x=(n=(t=_(y.knowledgeServiceCommands.getCategories)).state,r=t.actions,o=function(){var e=v()(b.a.mark((function e(){var t;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.execute();case 2:t=e.sent,H("[hooks] getCategories result",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),{categoriesState:{categoryPending:n.pending,categoryError:n.error,categories:n.data},categoriesActions:{getCategories:o}}),w=x.categoriesState,C=x.categoriesActions,E=w.categories,j=w.categoryPending,F=z(),A=F.articleState,T=F.articleActions,M=A.articlesByCategory,k=A.articlesByCategoryPending,I=s||"",P=I.id,R=I.name,B=Object(c.useState)(""),L=u()(B,2),N=L[0],$=L[1],q=O(h).pluginState,V=Object(c.useMemo)((function(){return function(e){var t=e.categories,n=e.categoryId;return n?Ke({categories:t,parentCategoryId:n}):function(e){var t=e.categories;return null==t?void 0:t.filter((function(e){var t=e.parentId,n=e.id;return!t&&n}))}({categories:t})}({categories:E,categoryId:P})}),[E,P]),U=null!=M?M:[];Object(c.useEffect)((function(){q.plugin&&!E&&C.getCategories()}),[q.plugin,E]),Object(c.useEffect)((function(){j||k?g():m()}),[j,k]),Object(c.useEffect)((function(){if(P&&R){var e=a.categoryResultsSummary.replace("<%category%>",'"'.concat(R,'"'));$(e),T.getArticlesByCategory({categoryId:P})}}),[P,R]);var G=Object(S.styled)("div")((function(){return We({},Ue.categories)})),W=Object(S.styled)("div")((function(){return We({},Ue.categories)})),K=Object(S.styled)("div")((function(){return We({},Ue.categoriesContainer)})),J=null!=V&&V.length?l.a.createElement(G,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=P&&null!=U&&U.length?l.a.createElement(W,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:h})):null;return!k&&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(Me,{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})}])},82:function(e,t,n){"use strict";var r=n(154),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,g=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(g){var o=f(n);o&&o!==g&&e(t,o,r)}var a=l(n);d&&(a=a.concat(d(n)));for(var s=u(t),m=u(n),h=0;h<a.length;++h){var v=a[h];if(!(i[v]||r&&r[v]||m&&m[v]||s&&s[v])){var D=p(n,v);try{c(t,v,D)}catch(e){}}}}return t}},83:function(e,t,n){"use strict";var r=n(82),o=n.n(r);t.a=function(e,t){return o()(e,t)}},92: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},94:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return u}));var r=n(206),o=n.n(r);function i(e){return o.a.sanitize(e,{ADD_ATTR:["target"]})}function a(e,t,n){return t.filter((function(t){return!e.some((function(e){return t[n]==e[n]}))}))}function s(e,t,n){return e.some((function(e){return e[t]===n}))}function u(e){return!e||-1===e.indexOf("s3.amazonaws.com")}}})}));