/*! * messenger * @version: 2.12.5 * @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=[];dwindow.screen.height),e}function c(){var e=!1,t=document.getElementById("full-screen-indicator");window.getComputedStyle&&t&&(e="block"===window.getComputedStyle(t).display);return e}function l(){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 d(){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 p(){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 f(){var e=navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage;return e&&"string"==typeof e?e.toLowerCase():""}function m(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 g(e,t){var n=e.indexOf(t);return-1!==n&&e.splice(n,1),e}var h={"en-us":"en",cs:"cs",da:"da",de:"de",es:"es",et:"et",fi:"fi",it:"it",ko:"ko",lt:"lt",lv:"lv",nl:"nl",no:"nb",pl:"pl",pt:"pt-BR","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",hi:"hi",el:"el","fr-ca":"fr-CA"},v={"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},"conversations.datePicker":{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}},y=["Genesys","Identifiers","Journey","Engage","Launcher","MessagingService","Cookies","GenesysJS","Messenger","Auth","LocalStorageTest","SupportCenter","Knowledge","KnowledgeService","Home","SubMessenger","ThirdPartyHelper"];function b(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 x(e){return e.storage||"LocalStorage"}function w(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 C(e){var t=e.split("/"),n=a()(t,2),r=n[0],o=n[1];o&&-1!==o.indexOf("vnd.openxmlformats-officedocument.wordprocessingml.")?o="vnd.openxmlformats-officedocument.wordprocessingml.*":o&&-1!==o.indexOf("vnd.openxmlformats-officedocument.presentationml.")?o="vnd.openxmlformats-officedocument.presentationml.*":o&&-1!==o.indexOf("vnd.openxmlformats-officedocument.spreadsheetml.")&&(o="vnd.openxmlformats-officedocument.spreadsheetml.*");return!(r=r.toLowerCase())||"image"!==r&&"audio"!==r&&"video"!==r&&"text"!==r?o&&"pdf"===o?o.toUpperCase():o&&["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(o)?"Document":o&&["vnd.ms-powerpoint","vnd.openxmlformats-officedocument.presentationml.*","vnd.google-apps.presentation","vnd.oasis.opendocument.presentation","vnd.oasis.opendocument.presentation-template"].includes(o)?"Presentation":o&&["vnd.google-apps.spreadsheet","vnd.ms-excel","vnd.openxmlformats-officedocument.spreadsheetml.*","vnd.oasis.opendocument.spreadsheet","vnd.oasis.opendocument.spreadsheet-template"].includes(o)?"Spreadsheet":"File":r.charAt(0).toUpperCase()+r.slice(1)}function E(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 O(e){var t="",n="",r=e||{},o=r.type,i=r.mime;if(o&&i)t=o,n=i;else if(o){var a=C(o)||"File";t=a&&-1!==["Document","PDF","Presentation","Spreadsheet","Text"].indexOf(a)?"File":a,n=o}return{mediaType:t,mimeType:n}}function S(e){return(e||{}).preview?"":"genesys-mxg-conversation"}function F(e){return e.coBrowse&&Object.keys(e.coBrowse).length}function A(e){return e.video&&Object.keys(e.video).length}function j(e){var t=void 0;return e&&(F(e)?e=e.coBrowse:A(e)&&(e=e.video),e.sessionId?t=e.sessionId:e.offeringId&&(t=e.offeringId)),t}function k(e){var t=void 0;return e&&(F(e)?e=e.coBrowse:A(e)&&(e=e.video),e.type&&(t=e.type)),t}function T(e){var t=void 0;return e&&(F(e)||e.sessionJoinToken?t="cobrowse":(A(e)||e.offeringId)&&(t="video")),t}function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e||[],i=r.acceptedOffers,a=r.rejectedOffers,s=r.expiredOffers,u=n?o()(i):[],c=n?o()(a):[],l=n?o()(s):[];return t.map((function(e){var t=k(e),r=j(e);if(r&&t)switch(t){case"OfferingExpired":-1===l.indexOf(r)&&(n?l.unshift(r):l.push(r));break;case"OfferingAccepted":-1===u.indexOf(r)&&(n?u.unshift(r):u.push(r));break;case"OfferingRejected":-1===c.indexOf(r)&&(n?c.unshift(r):c.push(r))}})),{expiredOffers:l,acceptedOffers:u,rejectedOffers:c}}function I(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 P(e){return(e||{}).preview?"":"genesys-mxg-homescreen"}function R(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 B(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 L(){return!!/iP(hone|od)/i.test(window.navigator.userAgent)}},114: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 k(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",m="executing",g="completed",h={};function v(){}function y(){}function b(){}var D={};c(D,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(T([])));w&&w!==n&&r.call(w,a)&&(D=w);var C=b.prototype=v.prototype=Object.create(D);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(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===m)throw new Error("Generator is already running");if(r===g){if("throw"===o)throw i;return M()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=F(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=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=m;var u=d(e,t,n);if("normal"===u.type){if(r=n.done?g:f,u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=g,n.method="throw",n.arg=u.arg)}}}function F(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,F(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,h;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function A(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 k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(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=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(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)}},12: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",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,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},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var s=t.name;D[s]=t,o=s}return!r&&o&&(b=o),o||!r&&b},E=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new S(n)},O=y;O.l=C,O.i=w,O.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function h(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}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(m);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.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=E(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return E(e)xe.current.clientWidth?re(!0):re(!1),Ee&&Ee.current&&Ee.current.scrollWidth>Ee.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?ge(!0):ge(!1)};if(Object(x.useEffect)((function(){window.addEventListener("resize",je),ye||setTimeout((function(){be(!0)}),50)}),[ye]),Object(x.useEffect)((function(){return setTimeout((function(){if(t&&t.current&&ye){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.setDirection",{position:F}).then((function(){a.command("MessengerHelper.setDimension",{toaster:{height:e,width:P.Q,addClass:["genesys-mxg-toaster"]}})})),je()}})),function(){window.removeEventListener("resize",je)}})),Object(x.useEffect)((function(){setTimeout((function(){De&&t&&t.current&&ye&&(Oe.current?Oe.current.focusVisible():Se.current&&Se.current.focusVisible())}),150)})),J)switch(J){case"right":0;break;case"left":0;break;case"auto":L&&("ltr"===L&&Fe,"rtl"===L&&Ae)}c();var ke=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(A.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(j.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(k.a,null,w.a.createElement(T.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(M.a,{variant:"subtitle1",variantMapping:{subtitle1:"h1"},gutterBottom:!0,"aria-label":h,dir:"auto",tabIndex:0,ref:xe},h))),v&&w.a.createElement(M.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)}}),y&&D&&w.a.createElement("div",{className:U.buttonContainer},"binary"===D&&w.a.createElement(w.a.Fragment,null,w.a.createElement(T.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:Oe,className:U.button,variant:"contained",size:"small",dir:"auto",color:s,tabIndex:0,"aria-label":C||Y+". "+X,onKeyPress:ke,onClick:l},C||Y)),w.a.createElement(T.a,{componentsProps:{tooltip:{sx:{width:"93%",maxHeight:"27px",overflowY:"auto",margin:"10px 0"}}},title:E||Q,PopperProps:{container:t&&t.current},placement:"top",disableHoverListener:!me,disableFocusListener:!me,disableTouchListener:!me},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":E||Q+". "+Z,onKeyPress:function(e){13!==e.which&&32!==e.which||e.ctrlKey||e.shiftKey||(d(e),e.preventDefault())},onClick:d},E||Q))),"unary"===D&&w.a.createElement(w.a.Fragment,null,w.a.createElement(T.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:Ee,action:Se,className:U.button+" "+U.unaryButton,variant:"contained",size:"small",dir:"auto",color:s,tabIndex:0,"aria-label":C||Y+". "+X,onKeyPress:ke,onClick:l},C||Y)))))))):null}));J.propTypes={open:E.a.bool.isRequired,handleClose:E.a.func,config:E.a.object,showBottom:E.a.bool,key:E.a.any,color:E.a.string.isRequired,content:E.a.object};var K=w.a.memo(J,L),Y=n(54);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;twindow.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 s=(e||{}).oPlugins;return n.state={bUpdateToasterBodyHeight:!1},n.sPluginName="Toaster",n.oToaster=s[n.sPluginName],n.pToaster="",n.position="top",n.mode="relative",n.toasterRef=Object(x.createRef)(),n}return m()(t,e),u()(t,[{key:"handleToasterOpen",value:(n=o()(D.a.mark((function e(t,n){var r,o,i,a,s,u,c,l,d;return D.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(K,{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);ee.propTypes={oPlugins:E.a.object.isRequired,config:E.a.object.isRequired,bFabVisible:E.a.bool.isRequired};var te;t.default=(te=ee,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,m=t.view,g=t.messengerClosed,h=t.setToasterReadyEventState,v=t.bToasterPublishedReady;return w.a.createElement(te,y()({},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:m,messengerClosed:g,setToasterReadyEventState:h,bToasterPublishedReady:v}))}))})},150:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(12),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:"pt-br","pt-br":"pt-br",ru:"ru",sv:"sv",th:"th",tr:"tr","zh-cn":"zh-cn","zh-tw":"zh-tw",fr:"fr","fr-fr":"fr",ja:"ja",ar:"ar",he:"he","pt-pt":"pt-pt",uk:"uk",hu:"hu",vi:"vi",hi:"hi",el:"el","fr-ca":"fr-ca"};function a(e){return new Promise((function(t,r){switch(i[e]){case"pl":n.e(28).then(n.t.bind(null,498,7)).then((function(e){o.a.locale("pl"),t(o.a)}));break;case"fr":n.e(16).then(n.t.bind(null,499,7)).then((function(e){o.a.locale("fr"),t(o.a)}));break;case"ja":n.e(22).then(n.t.bind(null,500,7)).then((function(e){o.a.locale("ja"),t(o.a)}));break;case"cs":n.e(8).then(n.t.bind(null,501,7)).then((function(e){o.a.locale("cs"),t(o.a)}));break;case"da":n.e(9).then(n.t.bind(null,502,7)).then((function(e){o.a.locale("da"),t(o.a)}));break;case"de":n.e(10).then(n.t.bind(null,503,7)).then((function(e){o.a.locale("de"),t(o.a)}));break;case"es":n.e(13).then(n.t.bind(null,504,7)).then((function(e){o.a.locale("es"),t(o.a)}));break;case"et":n.e(14).then(n.t.bind(null,505,7)).then((function(e){o.a.locale("et"),t(o.a)}));break;case"fi":n.e(15).then(n.t.bind(null,506,7)).then((function(e){o.a.locale("fi"),t(o.a)}));break;case"it":n.e(21).then(n.t.bind(null,507,7)).then((function(e){o.a.locale("it"),t(o.a)}));break;case"ko":n.e(23).then(n.t.bind(null,508,7)).then((function(e){o.a.locale("ko"),t(o.a)}));break;case"lt":n.e(24).then(n.t.bind(null,509,7)).then((function(e){o.a.locale("lt"),t(o.a)}));break;case"lv":n.e(25).then(n.t.bind(null,510,7)).then((function(e){o.a.locale("lv"),t(o.a)}));break;case"nl":n.e(27).then(n.t.bind(null,511,7)).then((function(e){o.a.locale("nl"),t(o.a)}));break;case"nb":n.e(26).then(n.t.bind(null,512,7)).then((function(e){o.a.locale("nb"),t(o.a)}));break;case"pt-br":n.e(30).then(n.t.bind(null,513,7)).then((function(e){o.a.locale("pt-br"),t(o.a)}));break;case"ru":n.e(31).then(n.t.bind(null,514,7)).then((function(e){o.a.locale("ru"),t(o.a)}));break;case"ar":n.e(7).then(n.t.bind(null,515,7)).then((function(e){o.a.locale("ar"),t(o.a)}));break;case"sv":n.e(32).then(n.t.bind(null,516,7)).then((function(e){o.a.locale("sv"),t(o.a)}));break;case"th":n.e(33).then(n.t.bind(null,517,7)).then((function(e){o.a.locale("th"),t(o.a)}));break;case"tr":n.e(34).then(n.t.bind(null,518,7)).then((function(e){o.a.locale("tr"),t(o.a)}));break;case"zh-cn":n.e(37).then(n.t.bind(null,519,7)).then((function(e){o.a.locale("zh-cn"),t(o.a)}));break;case"zh-tw":n.e(38).then(n.t.bind(null,520,7)).then((function(e){o.a.locale("zh-tw"),t(o.a)}));break;case"he":n.e(18).then(n.t.bind(null,521,7)).then((function(e){o.a.locale("he"),t(o.a)}));break;case"pt-pt":n.e(29).then(n.t.bind(null,522,7)).then((function(e){o.a.locale("pt"),t(o.a)}));break;case"uk":n.e(35).then(n.t.bind(null,523,7)).then((function(e){o.a.locale("uk"),t(o.a)}));break;case"hu":n.e(20).then(n.t.bind(null,524,7)).then((function(e){o.a.locale("hu"),t(o.a)}));break;case"vi":n.e(36).then(n.t.bind(null,525,7)).then((function(e){o.a.locale("vi"),t(o.a)}));break;case"hi":n.e(19).then(n.t.bind(null,526,7)).then((function(e){o.a.locale("hi"),t(o.a)}));break;case"el":n.e(11).then(n.t.bind(null,527,7)).then((function(e){o.a.locale("el"),t(o.a)}));break;case"fr-ca":n.e(17).then(n.t.bind(null,528,7)).then((function(e){o.a.locale("fr-ca"),t(o.a)}));break;default:n.e(12).then(n.t.bind(null,529,7)).then((function(e){o.a.locale("en"),t(o.a)}))}}))}},175:function(e,t,n){"use strict"; /** @license React v0.20.2 * scheduler.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,o,i,a;if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var u=Date,c=u.now();t.unstable_now=function(){return u.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,d=null,p=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(p,0),e}};r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(p,0))},o=function(e,t){d=setTimeout(e,t)},i=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var h=!1,v=null,y=-1,b=5,D=0;t.unstable_shouldYield=function(){return t.unstable_now()>=D},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,o=e[r];if(!(void 0!==o&&0S(a,n))void 0!==u&&0>S(u,a)?(e[r]=u,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==u&&0>S(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var F=[],A=[],j=1,k=null,T=3,M=!1,I=!1,P=!1;function R(e){for(var t=E(A);null!==t;){if(null===t.callback)O(A);else{if(!(t.startTime<=e))break;O(A),t.sortIndex=t.expirationTime,C(F,t)}t=E(A)}}function B(e){if(P=!1,R(e),!I)if(null!==E(F))I=!0,r(L);else{var t=E(A);null!==t&&o(B,t.startTime-e)}}function L(e,n){I=!1,P&&(P=!1,i()),M=!0;var r=T;try{for(R(n),k=E(F);null!==k&&(!(k.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=k.callback;if("function"==typeof a){k.callback=null,T=k.priorityLevel;var s=a(k.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?k.callback=s:k===E(F)&&O(F),R(n)}else O(F);k=E(F)}if(null!==k)var u=!0;else{var c=E(A);null!==c&&o(B,c.startTime-n),u=!1}return u}finally{k=null,T=r,M=!1}}var N=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||M||(I=!0,r(L))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return E(F)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=N,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0s?(e.sortIndex=a,C(A,e),null===E(F)&&e===E(A)&&(P?i():P=!0,o(B,a-s))):(e.sortIndex=u,C(F,e),I||M||(I=!0,r(L))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},176:function(e,t,n){"use strict";e.exports=n(177)},177: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,m=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,D=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 m: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=m,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)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===u||e===s||e===m||e===g||"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===D||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},178:function(e,t,n){"use strict"; /** * @license React * react-is.production.js * * Copyright (c) Meta Platforms, Inc. and 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=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler");Symbol.for("react.provider");var u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case d:case p:case g:return e;default:switch(e=e&&e.$$typeof){case c:case l:case m:case f:case u:return e;default:return t}}case o:return t}}}t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=l,t.Fragment=i,t.Lazy=m,t.Memo=f,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=d,t.SuspenseList=p,t.isContextConsumer=function(e){return v(e)===u},t.isContextProvider=function(e){return v(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return v(e)===l},t.isFragment=function(e){return v(e)===i},t.isLazy=function(e){return v(e)===m},t.isMemo=function(e){return v(e)===f},t.isPortal=function(e){return v(e)===o},t.isProfiler=function(e){return v(e)===s},t.isStrictMode=function(e){return v(e)===a},t.isSuspense=function(e){return v(e)===d},t.isSuspenseList=function(e){return v(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===s||e===a||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===c||e.$$typeof===u||e.$$typeof===l||e.$$typeof===h||void 0!==e.getModuleId)},t.typeOf=v},18:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return c})),n.d(t,"h",(function(){return p}));var r=n(0),o=n(48),i=(n(1),n(47),n(92),n(23)),a=n(37),s=n(36),u=!1,c="undefined"!=typeof document,l=r.createContext("undefined"!=typeof HTMLElement?Object(o.a)({key:"css"}):null),d=l.Provider,p=function(e){return Object(r.forwardRef)((function(t,n){var o=Object(r.useContext)(l);return e(t,o,n)}))};c||(p=function(e){return function(t){var n=Object(r.useContext)(l);return null===n?(n=Object(o.a)({key:"css"}),r.createElement(l.Provider,{value:n},e(t,n))):e(t,n)}});var f=r.createContext({});var m={}.hasOwnProperty,g="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",h=function(e,t){var n={};for(var r in t)m.call(t,r)&&(n[r]=t[r]);return n[g]=e,n},v=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;Object(i.c)(t,n,o);var a=Object(s.a)((function(){return Object(i.b)(t,n,o)}));if(!c&&void 0!==a){for(var u,l=n.name,d=n.next;void 0!==d;)l+=" "+d.name,d=d.next;return r.createElement("style",((u={})["data-emotion"]=t.key+" "+l,u.dangerouslySetInnerHTML={__html:a},u.nonce=t.sheet.nonce,u))}return null},y=p((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var s=e[g],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,r.useContext(f));l+=t.key+"-"+d.name;var p={};for(var h in e)m.call(e,h)&&"css"!==h&&h!==g&&!u&&(p[h]=e[h]);return p.className=l,n&&(p.ref=n),r.createElement(r.Fragment,null,r.createElement(v,{cache:t,serialized:d,isStringTag:"string"==typeof s}),r.createElement(s,p))}))},180:function(e,t,n){"use strict";var r=n(181);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}},181:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},182:function(e,t,n){var r=n(21).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 n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",d=u.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(t){p=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof D?t:D,i=Object.create(o.prototype),a=new I(r||[]);return s(i,"_invoke",{value:j(e,n,a)}),i}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var g="suspendedStart",h="suspendedYield",v="executing",y="completed",b={};function D(){}function x(){}function w(){}var C={};p(C,c,(function(){return this}));var E=Object.getPrototypeOf,O=E&&E(E(P([])));O&&O!==i&&a.call(O,c)&&(C=O);var S=w.prototype=D.prototype=Object.create(C);function F(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(o,i,s,u){var c=m(e[o],e,i);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==r(d)&&a.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;s(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 j(e,n,r){var o=g;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var u=k(s,r);if(u){if(u===b)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===g)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var c=m(e,n,r);if("normal"===c.type){if(o=r.done?y:h,c.arg===b)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=y,r.method="throw",r.arg=c.arg)}}}function k(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var i=m(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,b;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function T(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 M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[c];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=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),b}},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;M(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},186: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(33),p=n.n(d),f=n(35),m=n.n(f),g=n(7),h=n.n(g),v=n(39),y=n.n(v),b=(n(114),n(0)),D=n.n(b),x=n(5),w=n.n(x),C=n(4),E=n(243),O=n.n(E),S=n(475),F=n(335),A=n(485),j=n(10),k="Engage",T={root:"".concat(k,"-root"),rootBottom:"".concat(k,"-rootBottom"),snackbarContent:"".concat(k,"-snackbarContent"),content:"".concat(k,"-content"),snackbarMessage:"".concat(k,"-snackbarMessage"),snackbarAction:"".concat(k,"-snackbarAction"),iconButton:"".concat(k,"-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 I(e,t){return D.a.createElement(S.a,{componentsProps:{popper:{sx:{top:"-14px!important",zIndex:99999}}},title:t.ariaClose},D.a.createElement(F.a,{className:T.iconButton,onClick:e,"aria-label":t.ariaClose},D.a.createElement(O.a,{alt:"",sx:{width:"26px",height:"26px",display:"flex",alignItems:"inherit",justifyContent:"inherit"}})))}var P=D.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,m=d.sideSpace,g="right",h={},v={left:"auto"},y={right:"auto"};if(Object(b.useEffect)((function(){setTimeout((function(){if(t&&t.current){var e=t&&t.current,r=e.clientHeight,o=e.clientWidth,i=e.children,a=r+11,s="";if(t.current.children[0].style.maxHeight=a+"px",o){if(i&&i[0]){var u=Array.from(i[0].children);if(u.length>1){var l=u[0].clientWidth,p=u[1].clientWidth;s=l+p+22}}else s=o+22;t.current.children[0].style.maxWidth=s-11+"px",m&&window.outerWidth-mn.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(),y=!0):n.oMetaData.customOfferText&&!c&&(n.oMetaData.customOfferText=""),v&&(y=!(v.length>n.maxMessageLength)),n.oJourneyContext&&n.oJourneyContext.triggeringAction&&!c&&(n.oJourneyContext.triggeringAction={}),d&&(n.oJourneyContext=Object(L.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)):y?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 D.a.createElement("div",null,!s&&D.a.createElement(R,{open:e&&!n,showBottom:!this.props.bFabVisible,color:a,message:this.oMetaData.customOfferText||c,config:r,handleClose:this.handleEngageClose,handleClick:this.handleEngageClick,ariaClose:l,ref:this.engageRef,oEngage:this.oEngage}))}}])}(D.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 D.a.createElement(B.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 D.a.createElement(H,y()({},e,{expandLauncher:n,toggleLauncher:r,setInviteState:o,bFabVisible:i,setJourneyContext:a,handleEngageClick:s}))}))})},192:function(e,t,n){"use strict";var r=n(3),o=n(69),i=n(0),a=n.n(i),s=n(43),u=n.n(s),c=!1,l=n(49),d="unmounted",p="exited",f="entering",m="entered",g="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=m: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!==m&&(t=f):n!==f&&n!==m||(t=g)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:d})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[u.a.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||c?this.safeSetState({status:m},(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:m},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u.a.findDOMNode(this);t&&!c?(this.props.onExit(r),this.safeSetState({status:g},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:p},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:p},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===d)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(r.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.a.createElement(l.a.Provider,{value:null},"function"==typeof n?n(e,o):a.a.cloneElement(a.a.Children.only(n),o))},t}(a.a.Component);function v(){}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=m,h.EXITING=g;t.a=h},20:function(e,t,n){var r=n(87),o=n(88),i=n(53),a=n(89);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},204:function(e,t){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},21: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},23:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i}));var r="undefined"!=typeof document;function o(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var i=function(e,t,n){var o=e.key+"-"+t.name;(!1===n||!1===r&&void 0!==e.compat)&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},a=function(e,t,n){i(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a="",s=t;do{var u=e.insert(t===s?"."+o:"",s,e.sheet,!0);r||void 0===u||(a+=u),s=s.next}while(void 0!==s);if(!r&&0!==a.length)return a}}},254:function(e,t,n){"use strict";var r=n(39),o=n.n(r),i=n(7),a=n.n(i),s=n(0),u=n.n(s),c=n(5),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;t96?p:f},g=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},h=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Object(s.c)(t,n,r);var o=Object(a.a)((function(){return Object(s.b)(t,n,r)}));if(!d&&void 0!==o){for(var i,c=n.name,l=n.next;void 0!==l;)c+=" "+l.name,l=l.next;return u.createElement("style",((i={})["data-emotion"]=t.key+" "+c,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},v=(n(39),function e(t,n){var a,c,l=t.__emotion_real===t,d=l&&t.__emotion_base||t;void 0!==n&&(a=n.label,c=n.target);var p=g(t,n,l),f=p||m(d),v=!f("as");return function(){var y=arguments,b=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&b.push("label:"+a+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{var D=y[0];b.push(D[0]);for(var x=y.length,w=1;w|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+h+s+"\\))",D="(?="+h+s+"\\))",x="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,C=/`TMPLTR`/g,E=/`TMPRTL`/g,O=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),S=new RegExp("("+c+y+"[^;}]+;?)","gi"),F=new RegExp("("+c+"[^\\}]*?})","gi"),A=new RegExp("("+a+")ltr","gi"),j=new RegExp("("+a+")rtl","gi"),k=new RegExp(u+"(left)"+v+b+y,"gi"),T=new RegExp(u+"(right)"+v+b+y,"gi"),M=new RegExp(u+"(left)"+D,"gi"),I=new RegExp(u+"(right)"+D,"gi"),P=/(:dir\( *)ltr( *\))/g,R=/(:dir\( *)rtl( *\))/g,B=new RegExp(u+"(ltr)"+D,"gi"),L=new RegExp(u+"(rtl)"+D,"gi"),N=new RegExp(u+"([ns]?)e-resize","gi"),_=new RegExp(u+"([ns]?)w-resize","gi"),H=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+x,"gi"),$=new RegExp("((?:-color|border-style)\\s*:\\s*)"+g+"(\\s+)"+g+"(\\s+)"+g+"(\\s+)"+g+x,"gi"),z=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),q=new RegExp("(background-position-x\\s*:\\s*)(-?"+r+"%)","gi"),V=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+x,"gi"),U=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+g,"gi"),W=new RegExp("(text-shadow\\s*:\\s*)"+g+"(\\s*)"+f,"gi"),J=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),K=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),Y=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function Q(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 X(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 Z(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?X(r)+" / "+X(o):X(r))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,n){return t+ee(n)}function ne(e,t,n,r,o){return t+n+ee(r)+o}function re(e,t,n,r,o){return t+n+r+ee(o)}return{transform:function(n,r){var i=new o(S,"`NOFLIP_SINGLE`"),a=new o(F,"`NOFLIP_CLASS`"),s=new o(O,t);return n=s.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),r.transformDirInUrl&&(n=n.replace(P,"$1`TMPLTR`$2").replace(R,"$1`TMPRTL`$2").replace(B,"$1"+e).replace(L,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),r.transformEdgeInUrl&&(n=n.replace(M,"$1"+e).replace(I,"$1left").replace(w,"right")),n=n.replace(A,"$1"+e).replace(j,"$1ltr").replace(w,"rtl").replace(k,"$1"+e).replace(T,"$1left").replace(w,"right").replace(N,"$1$2"+e).replace(_,"$1$2e-resize").replace(w,"w-resize").replace(V,Z).replace(U,te).replace(G,re).replace(W,re).replace(J,te).replace(K,ne).replace(Y,ne).replace(H,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(z,Q).replace(q,Q),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)},286:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);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.B,deploymentId:e.deploymentId})},launcherMinimized:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.A,deploymentId:e.deploymentId})},messengerClosed:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.K,deploymentId:e.deploymentId})},attachmentFromUser:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.e,deploymentId:e.deploymentId})},attachmentFromAgent:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.d,deploymentId:e.deploymentId})},attachmentremoved:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.f,deploymentId:e.deploymentId})},attachmentClicked:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.b,deploymentId:e.deploymentId})},attachmentDownloaded:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.c,deploymentId:e.deploymentId})},historyFetched:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.p,deploymentId:e.deploymentId})},desktopMode:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.m,deploymentId:e.deploymentId})},mobileMode:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.N,deploymentId:e.deploymentId})},messageOnHover:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.D,deploymentId:e.deploymentId})},messageOnTouch:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.E,deploymentId:e.deploymentId})},messageOnFocus:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.C,deploymentId:e.deploymentId})},acrossSubDomainStorage:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.a,deploymentId:e.deploymentId})},domainOrSubdomainOnlyStorage:function(){e.bNewRelicReady&&Genesys("command","NewRelic.addPageAction",{name:r.n,deploymentId:e.deploymentId})}};return e}},287:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);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.M,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.k,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.j,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.q,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.G,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.h,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.i,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.F,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.P,deploymentId:e.deploymentId,context:o||{},attributes:i||{}})}}};return e}},288: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}))},289: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(33),p=n.n(d),f=n(35),m=n.n(f),g=n(7),h=n.n(g),v=n(0),y=n.n(v),b=n(5),D=n.n(b),x=n(449),w=n(129),C=n(644),E=n(654),O=n(54),S=n(283),F=n.n(S),A=n(39),j=n.n(A),k=(n(114),n(475)),T=n(465),M=n(277),I=n(254),P=n(339),R=n.n(P),B=n(338),L=n.n(B),N=n(4),_=n(41),H=n(80),$={width:"1px",height:"1px",overflow:"hidden",textIndent:"-9999px",border:"0"};function z(e){var t,n=e.i18n,r=e.lang,o=e.appName,i=e.showStatus,a=n[r][o],s=a.ariaMessengerOpenStatus,u=a.ariaMessengerMinimizeStatus;return y.a.createElement("div",{style:$,className:"cx-status","aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",tabIndex:-1,dangerouslySetInnerHTML:{__html:Object(H.b)((t="",i&&("true"==i?t=s:"false"==i&&(t=u)),t))}})}z.propTypes={i18n:D.a.object.isRequired,lang:D.a.string.isRequired,appName:D.a.string.isRequired,showStatus:D.a.string};var q,V=n(11),U=n(13),G=n(10),W=n(278);n(292);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 K(e){for(var t=1;t0?setTimeout((function(){e.oLauncher.command("MessengerHelper.setDimension",e.oDimensions)}),F):e.oLauncher.command("MessengerHelper.setDimension",e.oDimensions)}})),h()(n,"resetDimensions",(function(){if(n.oLauncher){var e=(n.props.config||{}).position;Object(V.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(V.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(W.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 m=Object(V.r)(n.props.config),g=new Promise((function(e,r){n.oLauncher.command(m+".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 g})),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(G.e);else if("ondemand"===t.toLowerCase())if("on"===n.state.fabVisibility){var r={errorName:U.z,errorMessage:U.z};n.nRMessengerErrorMetrics.newRelicError(r),e.resolve()}else n.showLauncher(),e.resolve();else{var o={errorName:U.u,errorMessage:U.u};n.nRMessengerErrorMetrics.newRelicError(o),e.reject("Invalid configuration of Launcher button")}})),n.oLauncher.registerCommand("hide",(function(e){if(u)e.reject(G.e);else if("ondemand"===t.toLowerCase()||a)if("off"===n.state.fabVisibility){var r={errorName:U.y,errorMessage:U.y};n.nRMessengerErrorMetrics.newRelicError(r),e.reject("Launcher button is already hidden")}else n.hideLauncher(),e.resolve();else{var o={errorName:U.u,errorMessage:U.u};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 u=e.config,c=u.launcherButton.visibility,d=u.deploymentId,f=u.auth||{},m=f.enabled,g=f.allowSessionUpgrade;n.state={ExternalComponent:"",fabVisibility:c||"on",bConversationActive:!1,bActiveCobrowseSession:!1,bShowTooltip:!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(V.l)(e.config),n.sHomeClassName=Object(V.m)(e.config),n.launcherBtnRef=Object(v.createRef)(),n.statusRef=Object(v.createRef)(),n.messengerProps="",n.storagePrefix=d+":gcmc",n.subConversationStorage="sessionActive",n.bLoadingChatServicePlugin=!1;var y=(e||{}).newRelic||{},b=y.pageActionMetrics,D=y.errorMetrics;n.nRMessengerPageActionMetrics=b,n.nRMessengerErrorMetrics=D;var x=Object(V.r)(e.config),w=n;return Genesys("subscribe","Identifiers.ready",(function(){Genesys("command","Identifiers.getAll",{},(function(e){e&&(e.customerId&&(w.customerId=e.customerId),e.sessionId&&(w.sessionId=e.sessionId))}))})),Genesys("subscribe","Auth.authenticated",(function(){if(m){var e=n.state.fabVisibility;"on"===c&&"off"===e&&n.showLauncher()}})),Genesys("subscribe","Auth.signedIn",(function(){m&&g&&Genesys("command",x+".remove",{name:n.storagePrefix+"sessionActive"})})),Genesys("subscribe","Auth.signedOut",(function(){m&&e.logoutMessenger()})),Genesys("subscribe","Auth.logoutError",(function(){m&&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 m()(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(V.x)();"MessengerFrame"==e&&(p?this.nRMessengerPageActionMetrics.mobileMode(U.N):this.nRMessengerPageActionMetrics.desktopMode(U.m)),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(V.l)(s),this.sHomeClassName=Object(V.m)(s);var l="ondemand"===u.toLowerCase()?e:t;c||("ondemand"===u.toLowerCase()&&1==this.previousConversationCleared&&"off"==e?this.resetDimensions():"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,m=(l.preview,(u||{}).enabled),g=(p||{}).enabled,h=(f||{}).conversations,v=(c||{}).conversations,y=(h||{}).enabled,b=(v||{}).enabled,D=(oe().state||{}).expandLauncher;if(b&&b!==y&&(g?this.loadChatServicePlugin(e):this.checkActiveConversation({nextProps:e})),!g&&s&&d){var x=d.visibility,w=s.visibility;if(w===x)return!0;if(w&&"on"===w.toLowerCase())return this.showLauncher(),!0;if(w&&"off"===w.toLowerCase())return this.hideLauncher(),!0;if(w&&"ondemand"===w.toLowerCase())return r||o||i||D?(this.showLauncher(),!0):(this.hideLauncher(),!0)}return"boolean"==typeof m&&"boolean"==typeof g&&m!==g&&(this.props.iframeOrigin||this.launcherPlugin(),!0)}},{key:"componentWillUnmount",value:function(){this.props.setPlugin("Launcher",this.oLauncher),this.props.getComponentMethods(null),window.removeEventListener("orientationchange",this.determineDimensions),window.removeEventListener("resize",this.determineDimensions)}},{key:"handleOnFocus",value:function(e,t,n){setTimeout((function(){if(e.launcherBtnRef&&e.launcherBtnRef.current){var n=e.launcherBtnRef.current.classList.contains("Mui-focusVisible"),r=Object(H.d)(t)+24;n&&(e.oLauncher.command("MessengerHelper.setDimension",{launcher:{width:r<72?72:r}}),e.setState({bShowTooltip:!0}))}}),200)}},{key:"handleOnFocusOut",value:function(e){e.setState({bShowTooltip:!1})}},{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),m=f.fabVisibility,g=f.bConversationActive,h=n.i18n,b=n.lang,D=n.position,x=n.documentDirection,w=n.home,C=n.headlessMode,E=n.apps,O=n.cobrowse,S=n.launcherButton.visibility,F=E||{},A=F.conversations,j=(F.knowledge||{}).enabled,P=(A||{}).enabled,B=(C||{}).enabled,N=h[b][this.sPluginName.toLowerCase()],_=N.ariaOpenButton,H=N.ariaMinimizeButton,$=D.alignment,q=O||{},U=q.enabled,G=q.channels,W=!!(U&&G&&G.length)&&G.includes("voice"),J=!!j||!!P||!!W,Y={},ee=oe().fabVisibility,ne="ondemand"===S.toLowerCase()?ee:m,ie=(this.state.ExternalComponent,"on"===ne),ae={right:"unset",left:"8px"},se={right:"8px",left:"unset"};if($)switch($){case"right":Y=se;break;case"left":Y=ae;break;case"auto":x&&("ltr"===x&&(Y=se),"rtl"===x&&(Y=ae))}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})),setTimeout((function(){e.launcherBtnRef&&e.launcherBtnRef.current&&(e.launcherBtnRef.current.classList.contains("Mui-focusVisible")||e.oLauncher.command("MessengerHelper.setDimension",{launcher:{width:72}}))}),200),te=Object(V.x)()?"mxg-mobile-"+X.toLowerCase()+"-"+Z.toLowerCase():"mxg-desktop-"+X.toLowerCase()+"-"+Z.toLowerCase();return y.a.createElement(y.a.Fragment,null,!B&&J&&y.a.createElement(re,{className:"".concat(te)},y.a.createElement(v.Suspense,{fallback:y.a.createElement("div",{className:"mxg-skeleton"},o&&y.a.createElement(M.a,{rows:2,heights:[60,180]}))},d&&"MessengerFrame"===d&&(o||g)&&y.a.createElement(Q,{open:o,activePreviousConversation:g,previousConversationExpired:this.previousConversationExpired,previousConversationCleared:this.previousConversationCleared,fResetConversationCleared:this.fResetConversationCleared,messengerClosed:u,closeMessenger:c,fabVisible:ie,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})),ie&&!d&&y.a.createElement(k.a,{enterDelay:1e3,open:this.state.bShowTooltip,disableHoverListener:!0,componentsProps:{popper:{sx:{top:"-24px!important",zIndex:99999}}},title:o?H:_},y.a.createElement(T.a,{ref:this.launcherBtnRef,className:"mxg-launcher-btn",color:r,style:Y,onClick:this.handleLauncherClick,onKeyDown:this.handleLauncherKeyDown,onFocus:function(t){return e.handleOnFocus(e,o?H:_,t)},onBlur:function(){return e.handleOnFocusOut(e)},"aria-expanded":!!o,"aria-label":o?H:_,title:o?H:_},o?y.a.createElement(R.a,{fontSize:"large",alt:"",className:"mxg-expand-more-icon"}):y.a.createElement(I.a,{icon:L.a,customStyle:{width:"26px",height:"26px",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},alt:""}))),y.a.createElement(z,{i18n:h,lang:b,appName:"conversations",showStatus:!s||w||j?"false":"true"})))}}])}(y.a.Component);ae.propTypes={color:D.a.string.isRequired,config:D.a.object,expandLauncher:D.a.bool.isRequired,toggleLauncher:D.a.func.isRequired,Toaster:D.a.elementType.isRequired,oPlugins:D.a.object.isRequired,setPlugin:D.a.func.isRequired,bInvite:D.a.bool.isRequired,inviteAccepted:D.a.func.isRequired,setFabVisibility:D.a.func.isRequired,journeyContext:D.a.object,oDisableInputs:D.a.object.isRequired,enableFocusControls:D.a.func,disableFocusControls:D.a.func,getComponentMethods:D.a.func};var se,ue=(se=ae,function(e){return y.a.createElement(O.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,m=t.oDisableInputs,g=t.disableFocusControls,h=t.enableFocusControls,v=t.setArticleExpanded,b=t.expandedArticle,D=t.store,x=t.iHomeScreenHeight,w=t.view,C=t.bAddTransition,E=t.bToaster,O=t.iToasterHeight,S=t.setCobrowseSessionStatus,F=t.resetRoute,A=t.newRelic;return y.a.createElement(se,j()({},e,{store:D,expandLauncher:n,sMessengerOpen:i,messengerClosed:r,closeMessenger:o,toggleLauncher:a,logoutMessenger:s,oPlugins:u,setPlugin:c,bInvite:l,bToaster:E,iToasterHeight:O,inviteAccepted:d,setFabVisibility:p,journeyContext:f,oDisableInputs:m,setArticleExpanded:v,expandedArticle:b,disableFocusControls:g,enableFocusControls:h,iHomeScreenHeight:x,view:w,bAddTransition:C,setCobrowseSessionStatus:S,resetRoute:F,newRelic:A}))}))}),ce=n(186),le=n(143),de="#0165A7",pe="#D2ECFD",fe="#FFFFFC",me="#B0B0B0",ge="#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",ye="rgba(0, 0, 0, 0.87)",be=Object(V.x)(),De="0.938rem",xe={palette:{mode:"dark",common:{blue:"".concat(de),red:"".concat(pe),white:"".concat(fe),darkGrey:"".concat("#A1A1A1"),mediumGrey:"".concat(me),lightGrey:"".concat(ge),boxShadow:"".concat(he),smokeGrey:"".concat(ve),textColor:"".concat(ye),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(ye)}},typography:{fontSize:15,fontFamily:'"-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Open Sans", "Helvetica Neue", "sans-serif";',body1:{fontSize:De,color:"textSecondary",fontWeight:400},body2:{fontSize:De,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",lineHeight:"1.4"},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(ge,"!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(ge,"!important"),borderColor:"transparent!important"}}},MuiChip:{styleOverrides:{borderColor:"".concat(ge,"!important"),outlinedPrimary:{"&:hover":{backgroundColor:"".concat(ge,"!important")},"&:focus":{backgroundColor:"".concat(ge,"!important")}}}},MuiLinearProgress:{styleOverrides:{root:{height:"5px"},query:{transform:"rotate(0deg)"},colorPrimary:{backgroundColor:"".concat(me)},barColorPrimary:{backgroundColor:"".concat(ge)}}},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(ye)}}}),"MuiInputBase",{styleOverrides:{root:{fontSize:be?"1rem":De,lineHeight:"1.1876em"}}}),breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536}}},we="#0165A7",Ce="#D2ECFD",Ee="#FFFFFC",Oe="#444444d9",Se="#757575",Fe="#ECECEC",Ae="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)",je="#7575754f",ke="rgba(0, 0, 0, 0.87)",Te=Object(V.x)(),Me="0.938rem",Ie={palette:{mode:"light",common:{blue:"".concat(we),red:"".concat(Ce),white:"".concat(Ee),darkGrey:"".concat(Oe),mediumGrey:"".concat(Se),lightGrey:"".concat(Fe),boxShadow:"".concat(Ae),smokeGrey:"".concat(je),textColor:"".concat(ke),outlineColor:"".concat("rgba(0, 0, 0, 0.55)")},primary:{main:"".concat(we)},secondary:{main:"".concat(Ce)},info:{main:"".concat(Ee)},error:{main:"".concat("#B00020")},highlight:{main:"".concat("#b5e2e8")},contrastThreshold:4.5,text:{default:"".concat(Ee),contrast:"".concat(ke)}},typography:{fontSize:15,fontFamily:'"-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Open Sans", "Helvetica Neue", "sans-serif";',body1:{fontSize:Me,color:"textSecondary",fontWeight:400},body2:{fontSize:Me,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",lineHeight:"1.4"},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(Ae)}}},MuiPaper:{styleOverrides:{root:{transition:"none!important"},elevation2:{boxShadow:"".concat(Ae)}}},MuiTypography:{styleOverrides:{subtitle2:{fontWeight:"400"}}},MuiSnackbarContent:{styleOverrides:{root:{color:Oe,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(Fe,"!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(je,"!important")}},outlinedInherit:{backgroundColor:"".concat(Fe,"!important"),borderColor:"transparent!important"}}},MuiChip:{styleOverrides:{outlined:{borderColor:"".concat(Se)},outlinedPrimary:{"&:hover":{backgroundColor:"".concat(Fe,"!important")},"&:focus":{backgroundColor:"".concat(Fe,"!important")}}}},MuiLinearProgress:{styleOverrides:{root:{height:"5px"},query:{transform:"rotate(0deg)"},colorPrimary:{backgroundColor:"".concat(Se)},barColorPrimary:{backgroundColor:"".concat(Fe)}}},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(Ee),borderRadius:"4px"}}}},"MuiAutocomplete",{styleOverrides:{option:{minHeight:"30px!important"},popper:{color:"".concat(ke)}}}),"MuiInputBase",{styleOverrides:{root:{fontSize:Te?"1rem":Me,lineHeight:"1.1876em"}}}),breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536}}},Pe=(n(383),n(285)),Re=n.n(Pe),Be="comm",Le="rule",Ne="decl",_e="@import",He="@keyframes",$e=Math.abs,ze=String.fromCharCode;Object.assign;function qe(e){return e.trim()}function Ve(e,t,n){return e.replace(t,n)}function Ue(e,t,n){return e.indexOf(t,n)}function Ge(e,t){return 0|e.charCodeAt(t)}function We(e,t,n){return e.slice(t,n)}function Je(e){return e.length}function Ke(e){return e.length}function Ye(e,t){return t.push(e),e}var Qe=1,Xe=1,Ze=0,et=0,tt=0,nt="";function rt(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Qe,column:Xe,length:a,return:"",siblings:s}}function ot(){return tt=et2||ut(tt)>3?"":" "}function ft(e,t){for(;--t&&ot()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return st(e,at()+(t<6&&32==it()&&32==ot()))}function mt(e){for(;ot();)switch(tt){case e:return et;case 34:case 39:34!==e&&39!==e&&mt(tt);break;case 40:41===e&&mt(e);break;case 92:ot()}return et}function gt(e,t){for(;ot()&&e+tt!==57&&(e+tt!==84||47!==it()););return"/*"+st(t,et-1)+"*"+ze(47===e?e:ot())}function ht(e){for(;!ut(it());)ot();return st(e,et)}function vt(e){return lt(yt("",null,null,null,[""],e=ct(e),0,[0],e))}function yt(e,t,n,r,o,i,a,s,u){for(var c=0,l=0,d=a,p=0,f=0,m=0,g=1,h=1,v=1,y=0,b="",D=o,x=i,w=r,C=b;h;)switch(m=y,y=ot()){case 40:if(108!=m&&58==Ge(C,d-1)){-1!=Ue(C+=Ve(dt(y),"&","&\f"),"&\f",$e(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=dt(y);break;case 9:case 10:case 13:case 32:C+=pt(m);break;case 92:C+=ft(at()-1,7);continue;case 47:switch(it()){case 42:case 47:Ye(Dt(gt(ot(),at()),t,n,u),u),5!=ut(m||1)&&5!=ut(it()||1)||!Je(C)||" "===We(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*g:s[c++]=Je(C)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+l:-1==v&&(C=Ve(C,/\f/g,"")),f>0&&(Je(C)-d||0===g&&47===m)&&Ye(f>32?xt(C+";",r,n,d-1,u):xt(Ve(C," ","")+";",r,n,d-2,u),u);break;case 59:C+=";";default:if(Ye(w=bt(C,t,n,c,l,o,s,b,D=[],x=[],d,i),i),123===y)if(0===l)yt(C,t,w,w,D,i,d,s,x);else{switch(p){case 99:if(110===Ge(C,3))break;case 108:if(97===Ge(C,2))break;default:l=0;case 100:case 109:case 115:}l?yt(e,w,w,r&&Ye(bt(e,w,w,0,0,o,s,b,o,D=[],d,x),x),o,x,d,s,r?D:x):yt(C,w,w,w,[""],x,0,s,x)}}c=l=f=0,g=v=1,b=C="",d=a;break;case 58:d=1+Je(C),f=m;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==(tt=et>0?Ge(nt,--et):0,Xe--,10===tt&&(Xe=1,Qe--),tt))continue;switch(C+=ze(y),y*g){case 38:v=l>0?1:(C+="\f",-1);break;case 44:s[c++]=(Je(C)-1)*v,v=1;break;case 64:45===it()&&(C+=dt(ot())),p=it(),l=d=Je(b=C+=ht(at())),y++;break;case 45:45===m&&2==Je(C)&&(g=0)}}return i}function bt(e,t,n,r,o,i,a,s,u,c,l,d){for(var p=o-1,f=0===o?i:[""],m=Ke(f),g=0,h=0,v=0;g0?f[y]+" "+b:Ve(b,/&\f/g,f[y])))&&(u[v++]=D);return rt(e,t,n,0===o?Le:s,u,c,l,d)}function Dt(e,t,n,r){return rt(e,t,n,Be,ze(tt),We(e,2,-2),0,r)}function xt(e,t,n,r,o){return rt(e,t,n,Ne,We(e,0,r),We(e,r+1,-1),r,o)}function wt(e,t){for(var n="",r=0;r-1){var a=(n.launcherProps||{}).checkActiveConversation;if(s){var c={errorName:U.J,errorMessage:U.J};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:jt(jt({},e.config),{},{apps:Object(V.y)(!0,e.config.apps,h()({},t,jt(jt({},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:U.w,errorMessage:U.w};n.nRMessengerErrorMetrics.newRelicError(p),n.pOpenCmdReject&&(n.pOpenCmdReject(),n.pOpenCmdReject=""),e.reject("Invalid open command. Should specify supported plugin name.")}}else{var m={errorName:U.v,errorMessage:U.v};n.nRMessengerErrorMetrics.newRelicError(m),n.pOpenCmdReject&&(n.pOpenCmdReject(),n.pOpenCmdReject=""),e.reject("Invalid open command. Should specify plugin name.")}}),(function(){var t={errorName:U.S,errorMessage:U.S};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:jt(jt(jt({},t.config),e),{},{styles:jt(jt(jt({},t.config.styles),e.styles),{},{companyLogoSmall:jt(jt({},t.config.styles.companyLogoSmall),e.styles&&e.styles.companyLogoSmall)}),theme:jt(jt(jt({},t.config.theme),e.theme),{},{direction:e&&e.direction?e.direction:"ltr",palette:jt(jt(jt({},Mt.palette),e.theme&&e.theme.palette),{},{primary:jt(jt({},Mt.palette.primary),e.theme&&e.theme.palette&&e.theme.palette.primary)})}),launcherButton:jt(jt(jt({},t.config.launcherButton),e.launcherButton),{},{visibility:e.launcherButton&&e.launcherButton.visibility&&e.launcherButton.visibility.toLowerCase()||t.config.launcherButton.visibility,icon:jt(jt({},t.config.launcherButton.icon),e.launcherButton&&e.launcherButton.icon)}),position:jt(jt(jt({},t.config.position),e.position),{},{alignment:e.position&&e.position.alignment&&e.position.alignment.toLowerCase()||t.config.position.alignment}),apps:jt(jt(jt({},t.config.apps),e.apps),{},{conversations:jt(jt(jt({},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:jt({},e.store),messengerClosed:t.messengerClosed}}))}));var u=e.oConfig,c=e.oMessenger,d=e.iframeOrigin,f=e.newRelic,m=u.styles,g=u.launcherButton,v={visibility:"on",location:"right"},y=u.deploymentId;n.emotionCache={LTR:Object(Ft.a)({key:"cx-messenger",prepend:!0}),RTL:Object(Ft.a)({key:"cx-messenger-rtl",stylisPlugins:[Ot],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(V.l)(u),n.sHomeClassName=Object(V.m)(u),n.pOpenCmdResolve="",n.pOpenCmdReject="",n.launcherProps="",n.oCobrowseEvents={active:G.j,accepted:G.i,rejected:G.l,expired:G.k},n.oVideoEvents={active:G.T,accepted:G.S,rejected:G.V,expired:G.U};var b=f||{},D=b.pageActionMetrics,x=b.performanceMetrics,w=b.errorMetrics;(n.oNewRelic=f||{},n.nRMessengerPageActionMetrics=D,n.nRMessengerPerformanceMetrics=x,n.nRMessengerErrorMetrics=w,n.nRMessengerPageActionMetrics.initNewRelicEvents(u),n.nRMessengerErrorMetrics.initNewRelicErrors(u),n.storage=Object(V.r)(u),n.messengerStorage=y?y+":gcmc":"_gcmc",n.subOpenStorage="opn",m&&m.modeType&&"auto"===m.modeType)&&(window.matchMedia("(prefers-color-scheme: dark)").matches&&(Mt=xe));if(g){var C=g.visibility,E=g.location;"string"==typeof C&&(v.visibility=C.toLowerCase()),E&&"string"==typeof E&&(v.location=E.toLowerCase())}return n.toggleLauncher=function(t,r){var o;return o=new Promise((function(o,i){var a=r&&r.type?r.type:null;n.checkAuthentication().then((function(){var r=t||{},i=r.journeyContext,s=r.launcherRef,u=r.route,l=(n.props||{}).iframeOrigin;i&&(n.journeyContext=i),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:u||""}})),"keypress"==a&&s.current&&e.oMessenger.command(n.storage+".get",{name:n.messengerStorage+n.subOpenStorage}).then((function(e){e&&"string"==typeof e&&"false"===e&&n.state.bFabVisible&&s.current.focus()})),n.state.expandLauncher?c.command("Messenger.open"):(l||c.command("Messenger.close"),setTimeout((function(){c.command("MessengerHelper.setDimension",{conversations:{height:0,width:0,removeClass:[n.sConversationClassName,n.sHomeClassName]}})}),50)),o()})).catch((function(e){i(e)}))})),o},n.checkAuthentication=function(){var e=n.state.config.auth||{},t=e.enabled,r=e.allowSessionUpgrade;return t?new Promise((function(e,t){c.command(n.storage+".get",{names:[G.c]}).then((function(n){var o=n[G.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(jt({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&&c.command("SubMessenger.collapseLauncher").then((function(){c.command(n.storage+".set",{name:n.messengerStorage+n.subOpenStorage,value:"false"})})),setTimeout((function(){c.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(V.q)(t);if(void 0!==i){if("cobrowse"==i){var a=t||{},s=a.sessionId,u=a.sessionJoinToken;if(!u)return void o("SessionJoinToken is 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 if("video"==i){var c=t||{},l=c.offeringId,d=c.jwt;if(!l)return void o("offering Id is required");d||o("Session JWT is required to connect to video session"),e.oMessenger.command("VideoService.getOfferState",{offeringId:l,jwt:d}).then((function(t){if(t){var o=(t||{}).offerState;o&&e.oMessenger.publish(n.oVideoEvents[o],t),r(t)}}),(function(e){n.nRMessengerErrorMetrics.newRelicError(e),o(e)})).catch((function(e){n.nRMessengerErrorMetrics.newRelicError(e),o(e)}))}}else o("Unknown offer type")}));return r},n.acceptOffer=function(t){return new Promise((function(r,o){var i=Object(V.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 if("video"==i){var c=t||{},l=c.offeringId,d=c.jwt;l||o("Session Offering Id is required to connect to video session"),d||o("Session JWT is required to connect to video session"),e.oMessenger.command("VideoService.acceptOffer",{offeringId:l,jwt:d}).then((function(e){r(e)}),(function(e){n.nRMessengerErrorMetrics.newRelicError(e),o(e)}))}}else o("Unknown offer type")}))},n.declineOffer=function(t){return new Promise((function(n,r){var o=Object(V.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 if("video"==o){var u=t||{},c=u.offeringId,l=u.jwt;if(!c)return void r("offering Id is required");l||r("Session JWT is required to decline a video session"),e.oMessenger.command("VideoService.declineOffer",{offeringId:c,jwt:l}),n()}}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,Cobrowse:e.oCobrowse},n.setPlugin=function(e,t){n.oPlugins[e]=t},n.oContextStore={},n.setContextStore=function(e){n.oContextStore=e},n.setHistoryFetch=function(e){n.setState((function(){return{historyFetch: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(u),u&&u.direction&&(n.selectedCache="rtl"!==u.direction?n.emotionCache.LTR:n.emotionCache.RTL),n.state={config:jt(jt({},u),{},{theme:jt(jt(jt({},Mt),u.theme),{},{direction:u&&u.direction?u.direction:"ltr",main:u.theme&&u.theme.main||"primary",palette:jt(jt(jt({},Mt.palette),u.theme&&u.theme.palette),{},{primary:jt(jt({},Mt.palette.primary),u.theme&&u.theme.palette&&u.theme.palette.primary)})}),styles:jt(jt({},u.styles),{},{companyLogoSmall:jt({},u.styles&&u.styles.companyLogoSmall)}),launcherButton:jt(jt(jt({},v),u.launcherButton),{},{visibility:u.launcherButton&&u.launcherButton.visibility&&u.launcherButton.visibility.toLowerCase()||"on"}),position:jt(jt({},u.position),{},{alignment:u.position&&u.position.alignment&&u.position.alignment.toLowerCase()||"auto"}),apps:jt(jt({},u.apps),{},{conversations:jt(jt({},u.apps.conversations),{},{markdown:{enabled:u.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"===v.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:u.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},d&&"MessengerFrame"===d&&(c.registerCommand("showAlertDialog",(function(e){n.bMessengerCleared?e.reject(G.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())})),c.registerCommand("closeAlertDialog",(function(e){n.bMessengerCleared?e.reject(G.e):(n.closeAlertDialog(),e.resolve())})),c.registerCommand("setAlertDialogStatus",(function(e){n.bMessengerCleared?e.reject(G.e):(n.setAlertDialogStatus(e.data.status),e.resolve())})),n.registerOpenCommand=function(e){return new Promise((function(t,r){var o=n.state||{},i=o.messengerClosed,a=(o.sMessengerOpen,u||{}),s=a.headlessMode,l=a.apps,d=(a.home,a.cobrowse),p=(s||{}).enabled,f=l||{},m=f.conversations,g=(f.knowledge||{}).enabled,h=(m||{}).enabled,v=d||{},y=v.enabled,b=v.channels,D=!!(y&&b&&b.length)&&b.includes("voice"),x=!!g||!!h||!!D;n.pOpenCmdResolve=t,n.pOpenCmdReject=r,n.bMessengerCleared?e.reject(G.e):p?e.reject("Messenger user interface must be enabled in your configuration."):x?n.bLauncherReady?n.openCommand(e):c.subscribe("Launcher.ready",(function(){var t=setTimeout((function(){n.bLauncherReady=!0,i?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")}))},c.registerCommand("openConversation",(function(e){var t=n.launcherProps.openConversation,r=n.state,o=r.sMessengerOpen,i=r.config||{},a=i.headlessMode,s=((i.apps||{}).conversations||{}).enabled,u=(a||{}).enabled,l=(n.props||{}).iframeOrigin;n.bMessengerCleared?e.reject(G.e):!u&&s?t&&"function"==typeof t?("true"===o?(n.setState({route:""}),t({route:"conversations.conversations"}),l&&c.command("SubMessenger.expandLauncher")):n.verifyStorageAndRemove().then((function(){n.toggleLauncher({route:"conversations.conversations"}),l&&c.command("SubMessenger.expandLauncher")})),e.resolve()):(n.setState({route:""}),e.reject()):s?e.reject("Messenger user interface must be enabled in your configuration."):e.reject("Conversation app must be enabled in your configuration.")})),c.registerCommand("openSearch",(function(e){var t=n.state,r=t.sMessengerOpen,o=t.config||{},i=o.apps,a=o.headlessMode,s=((i||{}).knowledge||{}).enabled,u=n.launcherProps.openSearch,l=(a||{}).enabled,d=(n.props||{}).iframeOrigin;n.bMessengerCleared?e.reject(G.e):l?e.reject("Messenger user interface must be enabled in your configuration."):s&&u?("true"===r?(n.setState({route:""}),u({route:"knowledge.search"}),d&&c.command("SubMessenger.expandLauncher")):n.verifyStorageAndRemove().then((function(){n.toggleLauncher({route:"knowledge.search"}),d&&c.command("SubMessenger.expandLauncher")})),e.resolve()):(n.setState({route:""}),e.reject("Knowledge must be enabled in your configuration."))})),c.registerCommand("openHome",(function(e){var t=n.launcherProps.openHome,r=n.state,o=r.sMessengerOpen,i=r.config||{},a=i.headlessMode,s=i.home;(a||{}).enabled?e.reject("Messenger user interface must be enabled in your configuration."):s&&"function"==typeof t?("true"===o?(n.setState({route:""}),t(),d&&c.command("SubMessenger.expandLauncher")):n.verifyStorageAndRemove().then((function(){n.toggleLauncher({route:"conversations.home"}),d&&c.command("SubMessenger.expandLauncher")})),e.resolve()):e.reject("Home screen must be enabled")})),c.registerCommand("close",(function(e){var t=n.state,r=t.expandLauncher,o=(t.sMessengerOpen,((t.config||{}).headlessMode||{}).enabled),i=(n.props||{}).iframeOrigin;if(n.bMessengerCleared)e.reject(G.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}})),i&&c.command("SubMessenger.collapseLauncher"),setTimeout((function(){c.command("MessengerHelper.setDimension",{conversations:{height:0,width:0,removeClass:[n.sConversationClassName,n.sHomeClassName]}})}),50),c.command(n.storage+".set",{name:n.messengerStorage+n.subOpenStorage,value:"false"}),e.resolve();else{var a={errorName:U.I,errorMessage:U.I};n.nRMessengerErrorMetrics.newRelicError(a),e.reject("Messenger is already closed.")}})),c.registerCommand("openCobrowse",(function(e){var t=n.state,r=t.sMessengerOpen,o=t.config,i=((n.oContextStore||{}).messengerStore||{}).cobrowseConnectStatus,a=o||{},s=a.cobrowse,u=a.headlessMode,l=s||{},d=l.enabled,p=l.channels,f=!!(d&&p&&p.length)&&p.includes("voice"),m=n.launcherProps,g=m.openCobrowseConnect,h=m.openCobrowseSharing,v=(u||{}).enabled,y=(n.props||{}).iframeOrigin;n.bMessengerCleared?e.reject(G.e):f?v?e.reject("Messenger user interface must be enabled in your configuration."):("true"===r?(n.setState({route:""}),i&&"sharing"==i?h({route:"cobrowse.sharing"}):g({route:"cobrowse.connect"}),y&&c.command("SubMessenger.expandLauncher")):n.verifyStorageAndRemove().then((function(){n.verifyCobrowseVoiceSessionAndConnect(),y&&c.command("SubMessenger.expandLauncher")})),e.resolve()):e.reject("Co-browse voice must be enabled in your configuration.")}))),n}return m()(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&&(Mt.palette.primary.main=n),r&&"string"==typeof r&&(Mt.palette.secondary.main=r),o&&"string"==typeof o&&(Mt.palette.mode=o.toLowerCase()),i&&"string"==typeof i&&(Mt.typography.fontSize=Number(i.split("px")[0])),i&&"number"==typeof i&&(Mt.typography.fontSize=i),a&&"string"==typeof a&&(Mt.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(Mt.palette.primary.main)&&(a.palette.primary.contrastText="rgba(0, 0, 0, 0.93)"),Rt=Object(V.x)()?"mxg-mobile-"+It.toLowerCase()+"-"+Pt.toLowerCase():"mxg-desktop-"+It.toLowerCase()+"-"+Pt.toLowerCase(),y.a.createElement(C.a,{injectFirst:!0},y.a.createElement(x.a,{theme:a},y.a.createElement(St.a,{value:this.selectedCache},y.a.createElement(O.a.Provider,{value:jt(jt({},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,historyFetch:this.state.historyFetch,setHistoryFetch:this.setHistoryFetch,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&&y.a.createElement(le.default,{plugin:this.props.oToaster,config:this.state.config}),n&&"MessengerFrame"===n&&y.a.createElement(ce.default,{plugin:this.props.oEngage,config:this.state.config,setInviteAccepted:function(t){return e.fInviteAccepted=t}}),y.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}),y.a.createElement("div",{tabIndex:-1,id:"full-screen-indicator",className:"".concat(Rt," ").concat(t?"mxg-fullscreen-indicator":"")})))))}}])}(y.a.Component);t.a=Bt;Bt.propTypes={oMessenger:D.a.object.isRequired,oEngage:D.a.object,oConfig:D.a.object.isRequired}},29:function(e,t,n){var r=n(84),o=n(85),i=n(53),a=n(86);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},292:function(e,t,n){var r=n(255),o=n(382);"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||{}},3:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,"a",(function(){return r}))},309:function(e,t,n){"use strict";e.exports=n(175)},33: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},35:function(e,t,n){var r=n(137);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},36:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u}));var r=n(0),o="undefined"!=typeof document,i=function(e){return e()},a=!!r.useInsertionEffect&&r.useInsertionEffect,s=o&&a||i,u=a||r.useLayoutEffect},37:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r={animationIterationCount:1,aspectRatio: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,scale: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},o=n(46),i=!1,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(o.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 m={name:t,styles:n,next:m},t}))}return 1===r[e]||u(e)||"number"!=typeof t||0===t?t:t+"px"},p="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function f(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return m={name:o.name,styles:o.styles,next:m},o.name;var a=n;if(void 0!==a.styles){var s=a.next;if(void 0!==s)for(;void 0!==s;)m={name:s.name,styles:s.styles,next:m},s=s.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;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)+u;return{name:c,styles:o,next:m}}},381:function(e,t,n){var r=n(204);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;o0&&c(a.width)/e.offsetWidth||1,u=e.offsetHeight>0&&c(a.height)/e.offsetHeight||1);var l=(o(e)?r(e):window).visualViewport,p=!d()&&n,f=(a.left+(p&&l?l.offsetLeft:0))/s,m=(a.top+(p&&l?l.offsetTop:0))/u,g=a.width/s,h=a.height/u;return{width:g,height:h,top:m,right:f+g,bottom:m+h,left:f,x:f,y:m}}function f(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function m(e){return e?(e.nodeName||"").toLowerCase():null}function g(e){return((o(e)?e.ownerDocument:e.document)||window.document).documentElement}function h(e){return p(g(e)).left+f(e).scrollLeft}function v(e){return r(e).getComputedStyle(e)}function y(e){var t=v(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function b(e,t,n){void 0===n&&(n=!1);var o,a,s=i(t),u=i(t)&&function(e){var t=e.getBoundingClientRect(),n=c(t.width)/e.offsetWidth||1,r=c(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=g(t),d=p(e,u,n),v={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(s||!s&&!n)&&(("body"!==m(t)||y(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 D(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"===m(e)?e:e.assignedSlot||e.parentNode||(a(e)?e.host:null)||g(e)}function w(e){return["html","body","#document"].indexOf(m(e))>=0?e.ownerDocument.body:i(e)&&y(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||[],y(o)?o:[]):o,u=t.concat(s);return i?u:u.concat(C(x(s)))}function E(e){return["table","td","th"].indexOf(m(e))>=0}function O(e){return i(e)&&"fixed"!==v(e).position?e.offsetParent:null}function S(e){for(var t=r(e),n=O(e);n&&E(n)&&"static"===v(n).position;)n=O(n);return n&&("html"===m(n)||"body"===m(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(m(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 F="top",A="bottom",j="right",k="left",T="auto",M=[F,A,j,k],I="start",P="end",R="viewport",B="popper",L=M.reduce((function(e,t){return e.concat([t+"-"+I,t+"-"+P])}),[]),N=[].concat(M,[T]).reduce((function(e,t){return e.concat([t,t+"-"+I,t+"-"+P])}),[]),_=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function H(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 $={placement:"bottom",modifiers:[],strategy:"absolute"};function z(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function J(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?U(o):null,a=o?G(o):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case F:t={x:s,y:n.y-r.height};break;case A:t={x:s,y:n.y+n.height};break;case j:t={x:n.x+n.width,y:u};break;case k:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=i?W(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 K={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Y(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,m=s.x,h=void 0===m?0:m,y=s.y,b=void 0===y?0:y,D="function"==typeof p?p({x:h,y:b}):{x:h,y:b};h=D.x,b=D.y;var x=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),C=k,E=F,O=window;if(d){var T=S(n),M="clientHeight",I="clientWidth";if(T===r(n)&&"static"!==v(T=g(n)).position&&"absolute"===u&&(M="scrollHeight",I="scrollWidth"),i===F||(i===k||i===j)&&a===P)E=A,b-=(f&&T===O&&O.visualViewport?O.visualViewport.height:T[M])-o.height,b*=l?1:-1;if(i===k||(i===F||i===A)&&a===P)C=j,h-=(f&&T===O&&O.visualViewport?O.visualViewport.width:T[I])-o.width,h*=l?1:-1}var R,B=Object.assign({position:u},d&&K),L=!0===p?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:c(n*o)/o||0,y:c(r*o)/o||0}}({x:h,y:b},r(n)):{x:h,y:b};return h=L.x,b=L.y,l?Object.assign({},B,((R={})[E]=w?"0":"",R[C]=x?"0":"",R.transform=(O.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",R)):Object.assign({},B,((t={})[E]=w?b+"px":"",t[C]=x?h+"px":"",t.transform="",t))}var Q={left:"right",right:"left",bottom:"top",top:"bottom"};function X(e){return e.replace(/left|right|bottom|top/g,(function(e){return Q[e]}))}var Z={start:"end",end:"start"};function ee(e){return e.replace(/start|end/g,(function(e){return Z[e]}))}function te(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 ne(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function re(e,t,n){return t===R?ne(function(e,t){var n=r(e),o=g(e),i=n.visualViewport,a=o.clientWidth,s=o.clientHeight,u=0,c=0;if(i){a=i.width,s=i.height;var l=d();(l||!l&&"fixed"===t)&&(u=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:u+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):ne(function(e){var t,n=g(e),r=f(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=s(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=s(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+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}}(g(e)))}function oe(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)&&te(e,n)&&"body"!==m(e)})):[]}(e):[].concat(t),c=[].concat(a,[n]),l=c[0],d=c.reduce((function(t,n){var o=re(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}),re(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 ie(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ae(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function se(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?"clippingParents":u,l=n.rootBoundary,d=void 0===l?R:l,f=n.elementContext,m=void 0===f?B:f,h=n.altBoundary,v=void 0!==h&&h,y=n.padding,b=void 0===y?0:y,D=ie("number"!=typeof b?b:ae(b,M)),x=m===B?"reference":B,w=e.rects.popper,C=e.elements[v?x:m],E=oe(o(C)?C:C.contextElement||g(e.elements.popper),c,d,s),O=p(e.elements.reference),S=J({reference:O,element:w,strategy:"absolute",placement:i}),k=ne(Object.assign({},w,S)),T=m===B?k:O,I={top:E.top-T.top+D.top,bottom:T.bottom-E.bottom+D.bottom,left:E.left-T.left+D.left,right:T.right-E.right+D.right},P=e.modifiersData.offset;if(m===B&&P){var L=P[i];Object.keys(I).forEach((function(e){var t=[j,A].indexOf(e)>=0?1:-1,n=[F,A].indexOf(e)>=0?"y":"x";I[e]+=L[n]*t}))}return I}function ue(e,t,n){return s(e,u(t,n))}function ce(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 le(e){return[F,j,A,k].some((function(t){return e[t]>=0}))}var de=q({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,V)})),u&&c.addEventListener("resize",n.update,V),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,V)})),u&&c.removeEventListener("resize",n.update,V)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=J({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:U(t.placement),variation:G(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,Y(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,Y(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)&&m(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)&&m(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=N.reduce((function(e,n){return e[n]=function(e,t,n){var r=U(e),o=[k,F].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[k,j].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,m=void 0===f||f,g=n.allowedAutoPlacements,h=t.options.placement,v=U(h),y=u||(v===h||!m?[X(h)]:function(e){if(U(e)===T)return[];var t=X(e);return[ee(e),t,ee(t)]}(h)),b=[h].concat(y).reduce((function(e,n){return e.concat(U(n)===T?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?N:u,l=G(r),d=l?s?L:L.filter((function(e){return G(e)===l})):M,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]=se(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[U(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:m,allowedAutoPlacements:g}):n)}),[]),D=t.rects.reference,x=t.rects.popper,w=new Map,C=!0,E=b[0],O=0;O=0,_=B?"width":"height",H=se(t,{placement:S,boundary:l,rootBoundary:d,altBoundary:p,padding:c}),$=B?R?j:k:R?A:F;D[_]>x[_]&&($=X($));var z=X($),q=[];if(i&&q.push(H[P]<=0),s&&q.push(H[$]<=0,H[z]<=0),q.every((function(e){return e}))){E=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 E=t,"break"},W=m?3:1;W>0;W--){if("break"===V(W))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,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,m=n.tether,g=void 0===m||m,h=n.tetherOffset,v=void 0===h?0:h,y=se(t,{boundary:l,rootBoundary:d,padding:f,altBoundary:p}),b=U(t.placement),x=G(t.placement),w=!x,C=W(b),E="x"===C?"y":"x",O=t.modifiersData.popperOffsets,T=t.rects.reference,M=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(O){if(i){var N,_="y"===C?F:k,H="y"===C?A:j,$="y"===C?"height":"width",z=O[C],q=z+y[_],V=z-y[H],J=g?-M[$]/2:0,K=x===I?T[$]:M[$],Y=x===I?-M[$]:-T[$],Q=t.elements.arrow,X=g&&Q?D(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=ue(0,T[$],X[$]),re=w?T[$]/2-J-ne-ee-R.mainAxis:K-ne-ee-R.mainAxis,oe=w?-T[$]/2+J+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,ce=null!=(N=null==B?void 0:B[C])?N:0,le=z+oe-ce,de=ue(g?u(q,z+re-ce-ae):q,z,g?s(V,le):V);O[C]=de,L[C]=de-z}if(c){var pe,fe="x"===C?F:k,me="x"===C?A:j,ge=O[E],he="y"===E?"height":"width",ve=ge+y[fe],ye=ge-y[me],be=-1!==[F,k].indexOf(b),De=null!=(pe=null==B?void 0:B[E])?pe:0,xe=be?ve:ge-T[he]-M[he]-De+R.altAxis,we=be?ge+T[he]+M[he]-De-R.altAxis:ye,Ce=g&&be?function(e,t,n){var r=ue(e,t,n);return r>n?n:r}(xe,ge,we):ue(g?xe:ve,ge,g?we:ye);O[E]=Ce,L[E]=Ce-ge}t.modifiersData[r]=L}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=U(n.placement),u=W(s),c=[k,j].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return ie("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ae(e,M))}(o.padding,n),d=D(i),p="y"===u?F:k,f="y"===u?A:j,m=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],g=a[u]-n.rects.reference[u],h=S(i),v=h?"y"===u?h.clientHeight||0:h.clientWidth||0:0,y=m/2-g/2,b=l[p],x=v-d[c]-l[f],w=v/2-d[c]/2+y,C=ue(b,w,x),E=u;n.modifiersData[r]=((t={})[E]=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)))&&te(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=se(t,{elementContext:"reference"}),s=se(t,{altBoundary:!0}),u=ce(a,r),c=ce(s,o,i),l=le(u),d=le(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})}}]})},386:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.d(t,"a",(function(){return o}))},387:function(e,t,n){"use strict";var r=n(3),o=n(1);var i=n(69),a=n(0),s=n.n(a),u=n(49);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;r2||L(j)>3?"":" "}function z(e,t){for(;--t&&I()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return B(e,R()+(t<6&&32==P()&&32==I()))}function q(e){for(;I();)switch(j){case e:return A;case 34:case 39:34!==e&&39!==e&&q(j);break;case 40:41===e&&q(e);break;case 92:I()}return A}function V(e,t){for(;I()&&e+j!==57&&(e+j!==84||47!==P()););return"/*"+B(t,A-1)+"*"+p(47===e?e:I())}function U(e){for(;!L(P());)I();return B(e,A)}function G(e){return _(W("",null,null,null,[""],e=N(e),0,[0],e))}function W(e,t,n,r,o,i,a,s,u){for(var c=0,l=0,d=a,f=0,m=0,g=0,h=1,D=1,w=1,E=0,F="",T=o,M=i,B=r,L=F;D;)switch(g=E,E=I()){case 40:if(108!=g&&58==b(L,d-1)){-1!=y(L+=v(H(E),"&","&\f"),"&\f")&&(w=-1);break}case 34:case 39:case 91:L+=H(E);break;case 9:case 10:case 13:case 32:L+=$(g);break;case 92:L+=z(R()-1,7);continue;case 47:switch(P()){case 42:case 47:C(K(V(I(),R()),t,n),u);break;default:L+="/"}break;case 123*h:s[c++]=x(L)*w;case 125*h:case 59:case 0:switch(E){case 0:case 125:D=0;case 59+l:-1==w&&(L=v(L,/\f/g,"")),m>0&&x(L)-d&&C(m>32?Y(L+";",r,n,d-1):Y(v(L," ","")+";",r,n,d-2),u);break;case 59:L+=";";default:if(C(B=J(L,t,n,c,l,o,s,F,T=[],M=[],d),i),123===E)if(0===l)W(L,t,B,B,T,i,d,s,M);else switch(99===f&&110===b(L,3)?100:f){case 100:case 108:case 109:case 115:W(e,B,B,r&&C(J(e,B,B,0,0,o,s,F,o,T=[],d),M),o,M,d,s,r?T:M);break;default:W(L,B,B,B,[""],M,0,s,M)}}c=l=m=0,h=w=1,F=L="",d=a;break;case 58:d=1+x(L),m=g;default:if(h<1)if(123==E)--h;else if(125==E&&0==h++&&125==(j=A>0?b(k,--A):0,S--,10===j&&(S=1,O--),j))continue;switch(L+=p(E),E*h){case 38:w=l>0?1:(L+="\f",-1);break;case 44:s[c++]=(x(L)-1)*w,w=1;break;case 64:45===P()&&(L+=H(I())),f=P(),l=d=x(F=L+=U(R())),E++;break;case 45:45===g&&2==x(L)&&(h=0)}}return i}function J(e,t,n,r,o,i,a,s,c,l,p){for(var f=o-1,m=0===o?i:[""],h=w(m),y=0,b=0,x=0;y0?m[C]+" "+E:v(E,/&\f/g,m[C])))&&(c[x++]=O);return T(e,t,n,0===o?u:s,c,l,p)}function K(e,t,n){return T(e,t,n,s,p(j),D(e,2,-2),0)}function Y(e,t,n,r){return T(e,t,n,c,D(e,0,r),D(e,r+1,-1),r)}function Q(e,t){for(var n="",r=w(e),o=0;o6)switch(b(e,t+1)){case 109:if(45!==b(e,t+4))break;case 102:return v(e,/(.+:)(.+)-([^]+)/,"$1"+a+"$2-$3$1"+i+(108==b(e,t+3)?"$3":"$2-$3"))+e;case 115:return~y(e,"stretch")?ce(v(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==b(e,t+1))break;case 6444:switch(b(e,x(e)-3-(~y(e,"!important")&&10))){case 107:return v(e,":",":"+a)+e;case 101:return v(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a+(45===b(e,14)?"inline-":"")+"box$3$1"+a+"$2$3$1"+o+"$2box$3")+e}break;case 5936:switch(b(e,t+11)){case 114:return a+e+o+v(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return a+e+o+v(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return a+e+o+v(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return a+e+o+e+e}return e}var le=re?void 0:Object(te.a)((function(){return Object(ne.a)((function(){return{}}))})),de=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case c:e.return=ce(e.value,e.length);break;case l:return Q([M(e,{value:v(e.value,"@","@"+a)})],r);case u:if(e.length)return E(e.props,(function(t){switch(h(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Q([M(e,{props:[v(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Q([M(e,{props:[v(t,/:(plac\w+)/,":"+a+"input-$1")]}),M(e,{props:[v(t,/:(plac\w+)/,":-moz-$1")]}),M(e,{props:[v(t,/:(plac\w+)/,o+"input-$1")]})],r)}return""}))}}],pe=function(e){var t=e.key;if(re&&"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 o,i,a=e.stylisPlugins||de,s={},u=[];re&&(o=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;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{appTypes:()=>l,commandFactory:()=>ve,genesysService:()=>E,initKnowledgeServicePlugin:()=>ge,knowledgeServiceCommands:()=>f,knowledgeServiceEvents:()=>m});const r=JSON.parse('{"I":{"U":"KnowledgeService","T":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.":-1!==(null==e?void 0:e.indexOf("Invalid appType value"))?e:"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)=>{E.log({message:e,data:t,pluginName:n})},u=r.I.U,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)},m={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 g;const h=()=>{if(!g)throw a({data:{code:o.CONFIG_NOT_FOUND_ERROR}});return s("[service] get config",g,u),g},v=()=>{var e;return(null===(e=h())||void 0===e?void 0:e.apiEndpoint)+"/api"},y=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 D={},x=()=>{var e;const t=(null===(e=y())||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 D[e]||(D[e]=C(e,t)),D[e]})),C=(e,...t)=>b(void 0,[e,...t],void 0,(function*(e,t=e=>b(void 0,void 0,void 0,(function*(){}))){return((e,t,...n)=>b(void 0,[e,t,...n],void 0,(function*(e,t,n="promise timeout error"){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.T,`register ${e} plugin timed out`)})),E={getFromStorage:e=>b(void 0,[e],void 0,(function*({name:e,pluginName:t}){const n=yield w(t),r=yield n.command(x().get,{name:e});return r===e+" not found"?null:r})),saveToStorage:e=>b(void 0,[e],void 0,(function*({name:e,value:t,pluginName:n}){const r=yield w(n);yield r.command(x().set,{name:e,value:t})})),removeFromStorage:e=>b(void 0,[e],void 0,(function*({name:e,pluginName:t}){const n=yield w(t);yield n.command(x().remove,{name:e})})),sendRequest:e=>b(void 0,[e],void 0,(function*({url:e,method:t,requestData:n,pluginName:r}){return(yield w(r)).command("MessengerHelper.makeRequest",{url:e,method:t,data:n})})),getPlugin:w,initPlugin:w,getStorageCommands:x,publish:e=>b(void 0,[e],void 0,(function*({message:e,data:t,pluginName:n}){(yield w(n)).publish(e,t)})),log:e=>b(void 0,[e],void 0,(function*({message:e,data:t,pluginName:n}){(yield w(n)).log(e,t)})),sendCommand:e=>b(void 0,[e],void 0,(function*({command:e,data:t,pluginName:n}){return(yield w(n)).command(e,t)}))};var O=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=[],F=[],A=(e,t)=>t.push(e),j=e=>O(void 0,[e],void 0,(function*({interceptors:e,context:t}){let n=t;for(const t of e)n=yield t(n);return n})),k={getBeforeRequestInterceptors:()=>JSON.parse(JSON.stringify(S)),getAfterRequestInterceptors:()=>JSON.parse(JSON.stringify(F)),addBeforeRequestInterceptor:e=>A(e,S),addAfterRequestInterceptor:e=>A(e,F),runBeforeRequestInterceptors:e=>O(void 0,void 0,void 0,(function*(){return j({interceptors:S,context:e})})),runAfterRequestInterceptors:e=>O(void 0,void 0,void 0,(function*(){return j({interceptors:F,context:e})}))},T=[],M={addNoRetryDelegates:e=>T.push(e),runNoRetryDelegates:e=>{let t=!0;for(const n of T)n(e)&&(t=!1);return t},getNoRetryDelegates:()=>JSON.parse(JSON.stringify(T))},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.U)};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}=k,{addNoRetryDelegates:V,runNoRetryDelegates:U}=M,{composeUrl:G}=L,W={sendRequest:e=>_(void 0,[e],void 0,(function*({serviceUrl:e,serviceOperation:t,requestData:n,ids:r,appType:o}){const i=yield z({serviceUrl:e,serviceOperation:t,requestData:n,appType:o,ids:r}),a=yield(e=>_(void 0,[e],void 0,(function*({serviceUrl:e,serviceOperation:t,requestData:n,ids:r={}}){const o=e+G(t.url,r,t.searchParams),i=t.method;let a=0,s=null;for(;a<3;)try{N(`[service] send request to: ${i.toString().toUpperCase()} ${o}`,JSON.stringify(n));const e=yield E.sendRequest({url:o,method:i,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 ${i.toString().toUpperCase()} ${o} \n with status ${e.status}, Try ${a+1}`,e),s=e,a++}throw s})))(i);return(yield q(Object.assign({responseData:a},i))).responseData})),addNoRetryDelegates:V,register:{beforeRequestInterceptor:H,afterRequestInterceptor:$}},J=JSON.parse('{"z":{"jw":{"method":"POST","url":"/v2/knowledge/guest/sessions"},"$P":{"method":"POST","url":"/v2/knowledge/guest/sessions/{sessionId}/documents/search","searchParams":{"expand":{"defaultValue":["documentAlternatives","documentVariations"]}}},"DV":{"method":"POST","url":"/v2/knowledge/guest/sessions/{sessionId}/documents/search/suggestions"},"Al":{"method":"GET","url":"/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}","searchParams":{"useContext":{"defaultValue":"true"}}},"Lp":{"method":"GET","url":"/v2/knowledge/guest/sessions/{sessionId}/documents","searchParams":{"pageSize":{"defaultValue":"100"},"pageNumber":{"defaultValue":"1"},"categoryId":{"required":true},"useContext":{"defaultValue":"true"}}},"D$":{"method":"GET","url":"/v2/knowledge/guest/sessions/{sessionId}/documents","searchParams":{"sortBy":{"defaultValue":"ViewCount"},"sortOrder":{"defaultValue":"Desc"},"pageSize":{"defaultValue":"5"},"useContext":{"defaultValue":"true"}}},"bW":{"method":"GET","url":"/v2/knowledge/guest/sessions/{sessionId}/categories","searchParams":{"pageSize":{"defaultValue":"100"},"before":{},"after":{}}},"Sq":{"method":"POST","url":"/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}/feedback"},"pB":{"method":"PATCH","url":"/v2/knowledge/guest/sessions/{sessionId}/documents/search/{searchId}"},"mj":{"method":"POST","url":"/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}/views"}},"J":{"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 K=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=e=>{return t=[e],r=function*({ids:e,serviceUrl:t,serviceOperation:n,nextUrl:r,entities:o,appType:i}){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((n=void 0)||(n=Promise))((function(e,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r.throw(e))}catch(e){o(e)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}s((r=r.apply(void 0,t||[])).next())}));var t,n,r};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=e=>Q(void 0,[e],void 0,(function*({sessionId:e,categoryId:t,pageSize:n,pageNumber:r,appType:o}){var i,s,u,c;try{const a=yield v(),l=yield W.sendRequest({serviceUrl:a,serviceOperation:J.z.Lp,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=e=>ee(void 0,[e],void 0,(function*({appId:e,appType:t,customerId:n,journeySessionId:r}){const o=v(),i=J.J[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:J.z.jw,requestData:s,appType:t}),te=yield ne,ne=null,(e=>{ee(void 0,[e],void 0,(function*({appId:e,session:t,appType:n}){N("[service] saving session to session storage"),E.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=y(),{appId:r,customerId:o,journeySessionId:i}=n,{appType:s}=e,u=yield(e=>ee(void 0,[e],void 0,(function*({appId:e,appType:t,customerId:n,journeySessionId:r}){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=e=>{return t=[e],r=function*({sessionId:e,documentId:t,documentVariationId:n,documentVersionId:r,rating:o,searchId:i,reason:s,comment:u,queryType:c,appType:l}){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:J.z.Sq,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((n=void 0)||(n=Promise))((function(e,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r.throw(e))}catch(e){o(e)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}s((r=r.apply(void 0,t||[])).next())}));var t,n,r};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 me=e=>{const t=y(),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=e=>le(void 0,[e],void 0,(function*({result:e={},meta:t={},sessionId:n}){return Object.assign(Object.assign({sessionId:n,deploymentId:s},t),{result:e})})),m=(e,...t)=>le(void 0,[e,...t],void 0,(function*(e,t=l.messenger){t=t||l.messenger;const n="SupportCenter"===e?l.supportCenter:"MessengerKnowledgeApp"===e?l.messenger:t,{id:r}=yield(e=>ee(void 0,[e],void 0,(function*({appId:e,appType:t,customerId:n,journeySessionId:r}){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 E.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:n,customerId:i,journeySessionId:c,appId:s});return{sessionId:r,appType:n}})),g=(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 m(e.commander),{searchResults:s,searchId:u}=yield(l={sessionId:o,query:t,pageSize:n,appType:i,queryType:r},K(void 0,[l],void 0,(function*({sessionId:e,query:t,pageSize:n=3,appType:r,queryType:o}){const i=v(),s={query:t,pageSize:n,pageNumber:1};o&&(s.queryType=o);try{const t=yield W.sendRequest({serviceUrl:i,serviceOperation:J.z.$P,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)}}))),c=yield f({result:s,meta:{searchId:u},sessionId:o});var l;(null==s?void 0:s.length)?g(p.searchResults,c):g(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 m(e.commander),i=yield(u={sessionId:r,query:t,pageSize:n,appType:o},K(void 0,[u],void 0,(function*({sessionId:e,query:t,pageSize:n=3,appType:r}){const o=v(),i={query:t,pageSize:n};try{const t=yield W.sendRequest({serviceUrl:o,serviceOperation:J.z.DV,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)}}))),s=yield f({result:i,sessionId:r});var u;(null==i?void 0:i.length)?g(p.suggestions,s):g(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 m(e.commander),r=yield(e=>{return t=[e],r=function*({sessionId:e,appType:t}){try{const n=yield v(),r=J.z.bW,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,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r.throw(e))}catch(e){o(e)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}s((r=r.apply(void 0,t||[])).next())}));var t,n,r})({sessionId:t,appType:n}),o=yield f({result:r,sessionId:t});(null==r?void 0:r.length)?g(p.categories,o):g(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 m(e.commander);let u={},c={};t&&ce(void 0,[{sessionId:i,searchId:t,documentId:n,appType:s}],void 0,(function*({sessionId:e,searchId:t,documentId:n,appType:r}){try{const o=v(),i={answered:!0,selectedAnswer:{document:{id:n}}};return yield W.sendRequest({serviceUrl:o,serviceOperation:J.z.pB,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)}}));try{u=yield(e=>Q(void 0,[e],void 0,(function*({sessionId:e,articleId:t,appType:n}){try{const r=v(),o=yield W.sendRequest({serviceUrl:r,serviceOperation:J.z.Al,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}),g(p.article,c)}catch(e){throw(null==e?void 0:e.code)===o.NOT_FOUND&&g(p.noArticleFound),e}const l=(null==u?void 0:u.variations)&&u.variations[0];l&&(e=>{ce(void 0,[e],void 0,(function*({sessionId:e,documentId:t,documentVariationId:n,documentVersionId:r,searchId:o,queryType:i=se.Unknown,appType:s}){try{const a=v(),u={documentVariationId:n,documentVersionId:r,queryType:i};return o&&(u.searchId=o),yield W.sendRequest({serviceUrl:a,serviceOperation:J.z.mj,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 m(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)?g(p.articlesByCategory,u):g(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 m(e.commander),i=yield(s={appType:o,sessionId:r,categoryIds:t,pageSize:n},Q(void 0,[s],void 0,(function*({sessionId:e,categoryIds:t,pageSize:n=3,appType:r}){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}))),a=yield f({result:i,sessionId:r});var s;g(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 m(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});g(p.feedbackSent,h),e.resolve(h)}))))),e.registerCommand(d.getSession,r((e=>le(void 0,void 0,void 0,(function*(){const{appType:t}=e.data;if(t&&!Object.values(l).includes(t))throw{data:{code:"invalid.parameter",message:"Invalid appType value. Allowable values are: "+Object.values(l)}};const{sessionId:n}=yield m(e.commander,t);let r=yield f({sessionId:n});r=Object.assign(Object.assign({},r),{result:{sessionId:r.sessionId}}),e.resolve(r)}))))),e.registerCommand(d.getTopViewedArticles,r((e=>le(void 0,void 0,void 0,(function*(){const{pageSize:t}=e.data,{sessionId:n,appType:r}=yield m(e.commander),o=yield(s={sessionId:n,pageSize:t,appType:r},Q(void 0,[s],void 0,(function*({sessionId:e,pageSize:t,appType:n}){try{const r=v(),o=(yield W.sendRequest({serviceUrl:r,serviceOperation:J.z.D$,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)}}))),i=yield f({result:o,sessionId:n});var s;(null==o?void 0:o.length)?g(p.topViewedArticles,i):g(p.noTopViewedArticlesFound),e.resolve(i)}))))),e.registerCommand(d.clear,r((e=>le(void 0,void 0,void 0,(function*(){var t;"Messenger"===e.commander?(fe=!0,t={appId:s,appType:l.messenger},ee(void 0,[t],void 0,(function*({appId:e,appType:t}){N("[service] - new - remove session called"),((e,t)=>{ee(void 0,void 0,void 0,(function*(){N("[service] removing session from session storage"),E.removeFromStorage({name:re(e,t),pluginName:u})}))})(e,t)})),g(p.cleared),e.resolve({})):e.reject({message:e.commander+" plugin does not have permission to access clear command"})})))))},ge=e=>le(void 0,[e],void 0,(function*({deploymentId:e,apiEndpoint:t,appType:n}){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 E.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),g=c,me(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:()=>he(void 0,[{pluginName:u,data:{}}],void 0,(function*({pluginName:e,data:t}){return yield E.sendCommand({command:d.getCategories,data:t,pluginName:e})})),search:e=>he(void 0,[{pluginName:u,data:e}],void 0,(function*({pluginName:e,data:t}){return yield E.sendCommand({command:d.search,data:t,pluginName:e})})),getSuggestions:e=>he(void 0,[{pluginName:u,data:e}],void 0,(function*({pluginName:e,data:t}){return yield E.sendCommand({command:d.getSuggestions,data:t,pluginName:e})})),getArticle:e=>he(void 0,[{pluginName:u,data:e}],void 0,(function*({pluginName:e,data:t}){return yield E.sendCommand({command:d.getArticle,data:t,pluginName:e})})),getArticlesByCategory:e=>he(void 0,[{pluginName:u,data:e}],void 0,(function*({pluginName:e,data:t}){return yield E.sendCommand({command:d.getArticlesByCategory,data:t,pluginName:e})})),getTopViewedArticles:e=>he(void 0,[{pluginName:u,data:e}],void 0,(function*({pluginName:e,data:t}){return yield E.sendCommand({command:d.getTopViewedArticles,data:t,pluginName:e})})),sendFeedback:e=>he(void 0,[{pluginName:u,data:e}],void 0,(function*({pluginName:e,data:t}){return yield E.sendCommand({command:d.sendFeedback,data:t,pluginName:e})})),getSession:()=>he(void 0,[{pluginName:u,data:{}}],void 0,(function*({pluginName:e,data:t}){return yield E.sendCommand({command:d.getSession,data:t,pluginName:e})}))};e.exports=n})()},function(e,t){e.exports=n(58)},function(e,t){e.exports=n(106)},function(e){e.exports=JSON.parse('{"plugin":{"name":"Knowledge","registeringTimeout":60000}}')},function(e,t){e.exports=n(39)},function(e,t){e.exports=n(477)},function(e,t){e.exports=n(478)},function(e,t){e.exports=n(381)},function(e,t){e.exports=n(268)},function(e,t){e.exports=n(479)},function(e,t,n){"use strict";n.r(t),n.d(t,"KnowledgeCard",(function(){return k})),n.d(t,"KnowledgeArticle",(function(){return fe})),n.d(t,"KnowledgeSearch",(function(){return _e})),n.d(t,"KnowledgeResults",(function(){return tt})),n.d(t,"KnowledgeCategories",(function(){return lt})),n.d(t,"initKnowledgeServicePlugin",(function(){return dt}));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),m=n(11),g=n.n(m),h=n(8),v=n.n(h),y=n(4),b=n.n(y),D=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;D.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,D.genesysService.initPlugin(x.plugin.name);case 6:return i=e.sent,e.prev=7,e.next=10,Object(D.initKnowledgeServicePlugin)({deploymentId:n,apiEndpoint:r,appType:o||D.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)}}(),E=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}}},O={container:{padding:"16px",width:"100%",boxSizing:"border-box",backgroundColor:"transparent!important"},searchBar:{marginTop:"14px",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 F(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 A(e){for(var t=1;tD.current.clientWidth?j||k(!0):j&&k(!1)};Object(c.useEffect)((function(){return window.addEventListener("resize",M),function(){window.removeEventListener("resize",M)}}),[]),w&&w.current&&M(),Object(c.useEffect)((function(){y.plugin&&i&&i(x.plugin.name,y.plugin)}),[y.plugin]);var I=Object(S.styled)("form")((function(){return A(A({},O.cardContent),{},{"& .search-label":A({},O.searchLabel)})}));return l.a.createElement(f.Card,o()({ref:w,sx:A({},O.container)},r,{onClick:T}),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:!j,disableFocusListener:!j,disableTouchListener:!j},l.a.createElement(f.Typography,{ref:D,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:A(A({},O.searchBar),{},{input:{"&::placeholder":{opacity:.62}}}),onKeyPress:T,InputProps:{role:"form",autoFocus:d,sx:{"&.Cx-MuiOutlinedInput-root":O.searchIconStartAdorment,"& .Cx-MuiOutlinedInput-input":O.inputAdornedStart},startAdornment:l.a.createElement(l.a.Fragment,null,l.a.createElement(f.Icon,{color:"inherit","aria-label":"search",fontSize:"small"},l.a.createElement(g.a,{fontSize:"small"})))}})))};j.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 k=j,T=n(13),M=n.n(T),I=["errorCb","successCb"];function P(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 R(e){for(var t=1;t0&&void 0!==u[0]?u[0]:{}).errorCb,i=n.successCb,a=M()(n,I),o(R(R({},B),{},{pending:!0})),t.prev=3,t.next=6,D.genesysService.sendCommand({command:e,data:a,pluginName:x.plugin.name});case 6:return s=t.sent,o(R(R({},B),{},{data:s.result})),i&&i(s),t.abrupt("return",s.result);case 12:t.prev=12,t.t0=t.catch(3),o(R(R({},B),{},{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(B)},setData:function(e){o((function(t){return R(R({},t),{},{data:e})}))}}}},N=function(e,t){w(e,t,x.plugin.name)},_={},H=function(){var e=L(D.knowledgeServiceCommands.getArticle),t=e.state,n=e.actions,r=L(D.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,N("[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}}},$=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};N("Error reported ".concat(JSON.stringify(r))),n(r)}else N("Invalid error callback");else N("Invalid error format to report")}),[t,n])},z={position:"absolute",overflow:"hidden",left:"-10000px",top:"-10000px",width:"1px",height:"1px",textIndent:"-9999px",border:"0"};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}var V="assertive",U="status",G=null,W=Object(S.styled)("div")((function(){return function(e){for(var t=1;t",n.length).replace("<%searchInputText%>",t):""}({inputText:null==C?void 0:C.inputText,autocompleteResult:A});Object(c.useEffect)((function(){S?f():m()}),[S]),Object(c.useEffect)((function(){null===C.inputText&&null!=d&&d.inputValue?O.setInputText(null==d?void 0:d.inputValue):C.inputText!==(null==d?void 0:d.inputValue)&&p({inputValue:null==C?void 0:C.inputText})}),[C.inputText]),Object(c.useEffect)((function(){T.plugin&&d.inputValue&&(!C.inputText&&d.inputValue&&Y({searchQuery:k,queryType:"ManualSearch",isUserAction:!1}),O.setInputText({text:k}))}),[T.plugin]);var Z=null!==(t=null==A?void 0:A.map((function(e){return e.matchedPhrase})))&&void 0!==t?t:[],ee=!!C.autocompleteQuery&&!!Z.length;return l.a.createElement(l.a.Fragment,null,l.a.createElement(ge.a,o()({id:"searchInput",value:C.inputText,sx:{"& .MuiAutocomplete-inputRoot":De.autoCompleteInputRoot,"& .MuiAutocomplete-endAdornment":De.autoCompleteEndAdorment},componentsProps:{paper:{sx:Be({},De.autoCompletePaper)},clearIndicator:{sx:Be({},De.autoCompleteClearIndicator)},option:{sx:Be({},De.autoCompleteOption)}},loading:F,options:Z,onInputChange:Q,onHighlightChange:function(e,t,n){"keyboard"===n&&H(t)},ref:h,renderInput:function(e){return l.a.createElement(Ce,{params:e,muiTextFieldProps:s,i18n:r,isLoading:F,onInputChange:W,onSearch:K,onClear:Q,isAreaDescrptionEnabled:ee,handleSearchBoxNavigation:y,clearIconRef:I,utility:x,preview:M})},renderOption:function(e,t,n){var r=n.inputValue;return l.a.createElement("li",e,l.a.createElement(ke,{displayedText:t,highlightedText:r,isActive:_===t,onClick:function(){Y({searchQuery:t,pageSize:1,queryType:"Suggestion"})}}))}},Le,a,{open:ee})),ee&&l.a.createElement(J,{region:V,role:U,content:X,delay:2e3}))};Ne.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 _e=Ne,He=n(12),$e=n.n(He),ze={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 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}var Ve=function(e){var t=e.message,n=Object(S.styled)("div")((function(){return function(e){for(var t=1;t",e):"open article"}((t||{}).title);return l.a.createElement(l.a.Fragment,null,l.a.createElement(f.ListItem,{button:!0,sx:Xe(Xe(Xe({},Ye.listStyles),Ye.listItemSecondary),Ye.listItemSecondaryActionResults),onClick:o},l.a.createElement(f.ListItemText,{primary:t.primaryText||t.title}),l.a.createElement(f.ListItemSecondaryAction,{sx:Xe({},Ye.arrowIcon)},l.a.createElement(f.IconButton,{edge:"end",color:"inherit","aria-label":i,onClick:o},l.a.createElement(We,{icon:$e.a,customStyle:Ye.icon})))))},et=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||{},m=p.searchResult,g=p.searchQuery,h=Object(c.useState)(""),v=u()(h,2),y=v[0],b=v[1];Object(c.useEffect)((function(){if(m&&g){var e=o.ariaSearchResultSummary.replace("<%resultsCount%>",m.length).replace("<%searchQuery%>",g);b(e)}}),[n,g]),Object(c.useEffect)((function(){if(1===(null==m?void 0:m.length)){var e,t={documentId:null===(e=m[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}))}}),[m]);var D=Object(S.styled)("div")((function(){return Xe({},Ye.searchResults)})),x=function(e){var t=e.searchResult;return t&&o.searchResultSummary?o.searchResultSummary.replace("<%resultsCount%>",t.length):""}({searchQuery:g,searchResult:m});return null!=i&&i.length?l.a.createElement(f.List,{dense:!0},i.map((function(e){return l.a.createElement(Ze,{key:e.id,document:e,openArticle:r,config:a,i18n:o})}))):!m||m.length<1?g?l.a.createElement(D,null,l.a.createElement(Ve,{message:o.searchResultsEmpty})):null:l.a.createElement(D,null,l.a.createElement("div",null,l.a.createElement(f.Typography,{className:"search-result-summary",variant:"caption"},x),l.a.createElement(f.Typography,{className:"search-result-inputText",variant:"caption"},g)),l.a.createElement(f.List,{dense:!0},m.map((function(e){var t=e.document;return l.a.createElement(Ze,{key:t.id,document:t,openArticle:r,config:a,i18n:o})}))),l.a.createElement(J,{region:V,role:U,content:y,delay:2e3}))};et.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 tt=et;function nt(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 rt(e){for(var t=1;t",e):r.ariaOpenSearchCategory}(i);return l.a.createElement(l.a.Fragment,null,l.a.createElement(f.ListItem,{button:!0,sx:at(at({},ot.categoryList),ot.categoryListSecondaryAction),onClick:s},l.a.createElement(f.ListItemText,{primary:i}),l.a.createElement(f.ListItemSecondaryAction,{sx:at({},ot.categoryArrowIcon)},l.a.createElement(f.IconButton,{edge:"end",color:"inherit","aria-label":u,onClick:s},l.a.createElement(We,{icon:$e.a,customStyle:ot.directionIcon})))))},ct=function(e){var t,n,r,o,i=e||{},a=i.i18n,s=i.data,d=i.openArticle,p=i.openCategory,m=i.showProgress,g=i.stopProgress,h=i.config,y=i.setStore,x=(n=(t=L(D.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,N("[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,O=w.categories,F=w.categoryPending,A=H(),j=A.articleState,k=A.articleActions,T=j.articlesByCategory,M=j.articlesByCategoryPending,I=s||"",P=I.id,R=I.name,B=Object(c.useState)(""),_=u()(B,2),$=_[0],z=_[1],q=E(h).pluginState,V=Object(c.useMemo)((function(){return function(e){var t=e.categories,n=e.categoryId;return n?st({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:O,categoryId:P})}),[O,P]),U=null!=T?T:[];Object(c.useEffect)((function(){q.plugin&&!O&&C.getCategories()}),[q.plugin,O]),Object(c.useEffect)((function(){F||M?m():g()}),[F,M]),Object(c.useEffect)((function(){if(P&&R){var e=a.categoryResultsSummary.replace("<%category%>",'"'.concat(R,'"'));z(e),k.getArticlesByCategory({categoryId:P})}}),[P,R]);var G=Object(S.styled)("div")((function(){return at({},ot.categories)})),W=Object(S.styled)("div")((function(){return at({},ot.categories)})),J=Object(S.styled)("div")((function(){return at({},ot.categoriesContainer)})),K=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=st({categories:O,parentCategoryId:t});return l.a.createElement(ut,{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(tt,{openArticle:function(e){y({queryType:"Category"}),d(e)},data:s,articles:U,i18n:a,config:h})):null;return!M&&null!=O&&O.length?l.a.createElement(J,null,s&&l.a.createElement(f.Typography,{className:"categories-result-summary",variant:"caption"},$),K||Y?l.a.createElement(l.a.Fragment,null,l.a.createElement("div",null,K),l.a.createElement("div",null,Y)):l.a.createElement(Ve,{message:a.searchResultsEmpty})):null};ct.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 lt=ct;const dt=({deploymentId:e,apiEndpoint:t})=>Object(D.initKnowledgeServicePlugin)({deploymentId:e,apiEndpoint:t,appType:D.appTypes.messenger})}])},91:function(e,t,n){"use strict";var r=n(176),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,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=f(n);o&&o!==m&&e(t,o,r)}var a=l(n);d&&(a=a.concat(d(n)));for(var s=u(t),g=u(n),h=0;h