!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=56)}([function(e,t){var n=e.exports={version:"2.5.6"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";n.d(t,"d",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return s}),n.d(t,"c",function(){return i}),n.d(t,"a",function(){return a}),n.d(t,"e",function(){return c}),n.d(t,"g",function(){return u}),n.d(t,"h",function(){return f});var r={CREATED:"created",DESTROYED:"destroyed",CLOSED:"closed",MESSAGE_RECEIVED:"messageReceived",MESSAGE_SENT:"messageSent",CUSTOM_RECEIVED:"customReceived",CONFIG_UPDATED:"configUpdated",STATE_CHANGED:"stateChanged",FIRST_TIME_USER:"newUser"},o=Object.values(r),s={FULLSCREEN:"fullscreen",SIDEBAR:"sidebar",POPUP:"popup"},i=Object.values(s),a=["mode","popupWidth","popupHeight","headerText","customPromptMessage","newChat","color","botIcon","allowBackgroundScroll","metadata","externalUserId","collectUserIpAddress","disableAttachments","enableRecording","autoplayAudio","disableInput","historyLimit","disableReset","themeCssUrl","customCssUrl","themeName","themeCssOnly","standalone","botId","widgetPosition"],c={CONFIG:"fxo-messenger-config",REQUEST_CONFIG:"fxo-messenger-config-request",CLOSE:"fxo-messenger-close",DESTROY:"fxo-messenger-destroy",SEND_MESSAGE:"fxo-messenger-send-message",STATE_UPDATE:"fxo-messenger-state-change",MESSAGE_RECEIVED:"fxo-messenger-message-received",MESSAGE_SENT:"fxo-messenger-message-sent",CUSTOM_RECEIVED:"fxo-messenger-custom-received",CONFIG_UPDATED:"fxo-messenger-config-updated",VIEW_MODE_CHANGED:"fxo-messenger-view-mode-updated",FIRST_TIME_USER:"fxo-messenger-new-user",CLEAR_HISTORY:"fxo-messenger-clear-history",FORGET_USER:"fxo-forget-user"},u="https://d2u2e8j2jrnyta.cloudfront.net",f="classic"},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var n=0;n-1;)n.splice(r,1)}},{key:"removeListeners",value:function(e){e?this._handlers[e]={}:this._handlers={}}}]),e}();t.a=s},function(e,t,n){e.exports=!n(5)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(12),o=n(8);e.exports=function(e){return r(o(e))}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(2),o=n(0),s=n(11),i=n(41),a=n(30),c=function(e,t,n){var u,f,l,d,h=e&c.F,_=e&c.G,g=e&c.S,m=e&c.P,p=e&c.B,v=_?r:g?r[t]||(r[t]={}):(r[t]||{}).prototype,y=_?o:o[t]||(o[t]={}),b=y.prototype||(y.prototype={});_&&(n=t);for(u in n)f=!h&&v&&void 0!==v[u],l=(f?v:n)[u],d=p&&f?a(l,r):m&&"function"==typeof l?a(Function.call,l):l,v&&i(v,u,l,e&c.U),y[u]!=l&&s(y,u,d),m&&b[u]!=l&&(b[u]=l)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(36),o=n(40);e.exports=n(4)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(29);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(38),o=n(32);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){"use strict";n(24),n(25),n(19)},function(e,t,n){"use strict";function r(e){var t={},n=e.indexOf("?");return n>-1&&(t=e.slice(n+1).split("&").reduce(function(e,t){var n=t.split("=");return 2===n.length&&(e[n[0]]=n[1]),e},{})),t}t.a=r},function(e,t,n){var r,o;"function"==typeof Symbol&&Symbol.iterator;/*! srcdoc-polyfill - v1.0.0 - 2017-01-29 * http://github.com/jugglinmike/srcdoc-polyfill/ * Copyright (c) 2017 Mike Pennisi; Licensed MIT */ !function(n,s){var i=window.srcDoc;r=[t],void 0!==(o=function(e){s(e,i),n.srcDoc=e}.apply(t,r))&&(e.exports=o)}(this,function(e,t){var n,r,o,s=!!("srcdoc"in document.createElement("iframe")),i="Polyfill may not function in the presence of the `sandbox` attribute. Consider using the `force` option.",a=/\ballow-same-origin\b/,c=function(e,t){var n=e.getAttribute("sandbox");"string"!=typeof n||a.test(n)||(t&&t.force?e.removeAttribute("sandbox"):t&&!1===t.force||(o(i),e.setAttribute("data-srcdoc-polyfill",i)))},u={compliant:function(e,t,n){t&&(c(e,n),e.setAttribute("srcdoc",t))},legacy:function(e,t,n){var r;e&&e.getAttribute&&(t?e.setAttribute("srcdoc",t):t=e.getAttribute("srcdoc"),t&&(c(e,n),r="javascript: window.frameElement.getAttribute('srcdoc');",e.contentWindow&&(e.contentWindow.location=r),e.setAttribute("src",r)))}},f=e;if(o=window.console&&window.console.error?function(e){window.console.error("[srcdoc-polyfill] "+e)}:function(){},f.set=u.compliant,f.noConflict=function(){return window.srcDoc=t,f},!s)for(f.set=u.legacy,r=document.getElementsByTagName("iframe"),n=r.length;n--;)f.set(r[n])})},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0)}var u=n(3),f=n(1),l=n(23),d=function(){function e(e,t){for(var n=0;n-1}),r=c(e.headerText),o=c(e.customPromptMessage),s=c(e.color),i=c(e.botIcon),u=c(e.standalone,function(e){return!0===e}),f=c(e.allowBackgroundScroll,function(e){return!0===e}),l=c(e.botId),d=c(e.metadata,function(e){return e});return!!(n&&r&&s&&i&&u&&l&&f&&d&&o)&&(this.manager.setConfig(e),!0)}},{key:"getState",value:function(){return this.manager.getInstanceState()}},{key:"create",value:function(e){this.manager.createInstance(e,this.id)}},{key:"destroy",value:function(){return this.manager.destroyCurrent()}},{key:"clear",value:function(){return this.manager.clearCurrent()}},{key:"forget",value:function(){return this.manager.forget()}},{key:"toggle",value:function(){return this.manager.toggleCurrentState()}}]),t}(u.a);t.a=h;var _=[].concat(r(f.b));h.prototype.MODES=[].concat(r(f.c)),h.prototype.EVENT_NAMES=_,_.forEach(function(e){h.prototype["on"+(e[0].toUpperCase()+e.slice(1))]=function(t){t&&this.on(e,t)},h.prototype["off"+(e[0].toUpperCase()+e.slice(1))]=function(t){t&&this.off(e,t)}})},function(e,t,n){"use strict";function r(e,t,n){e=e?decodeURIComponent(e):o.g+"/"+(n||o.h)+".css",t&&(t=decodeURIComponent(t));var r='\n ',s="";return t&&(s='\n '),'\n \n \n \n \n \n \n Flow XO Web Messenger\n '+r+"\n "+s+'\n \n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n