!function(e){function t(t){for(var r,a,l=t[0],i=t[1],f=t[2],s=0,p=[];s<l.length;s++)a=l[s],o[a]&&p.push(o[a][0]),o[a]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);for(c&&c(t);p.length;)p.shift()();return u.push.apply(u,f||[]),n()}function n(){for(var e,t=0;t<u.length;t++){for(var n=u[t],r=!0,l=1;l<n.length;l++){var i=n[l];0!==o[i]&&(r=!1)}r&&(u.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},o={1:0},u=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/js/";var l=window.webpackJsonp=window.webpackJsonp||[],i=l.push.bind(l);l.push=t,l=l.slice();for(var f=0;f<l.length;f++)t(l[f]);var c=i;u.push([612,0]),n()}({612:function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(606);var o=m(n(571)),u=m(n(569)),a=(m(n(560)),m(n(559)),n(20)),l=m(n(170)),i=m(n(34)),f=m(n(252)),c=n(24),s=m(n(154)),p=n(308),d=n(99);function m(e){return e&&e.__esModule?e:{default:e}}var h=(0,d.getToken)();h&&(i.default.defaults.headers.common.Authorization="Bearer "+h.token);var b=l.default.parse(location.search),v=b.m,y=b.v,w=b.ref,g={"platform-webchat":"channel-web"}[v]||v,_=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),r(t,[{key:"componentDidMount",value:function(){this.props.fetchModules(),this.sendQueries()}},{key:"sendQueries",value:function(){if(w){var e=window.__BP_VISITOR_ID||(0,d.getUniqueVisitorId)();i.default.get("/api/botpress-platform-webchat/"+e+"/reference?ref="+w)}}},{key:"render",value:function(){var e=(0,p.moduleViewNames)(this.props.modules.filter(function(e){return e.isPlugin})),t=function(){return o.default.createElement("h1",null,"Module $",g," with view $",y," not found")};return o.default.createElement("div",null,o.default.createElement(s.default,{moduleName:g,viewName:y,lite:!0,onNotFound:t}),e.map(function(e,n){var r=e.moduleName,u=e.viewName;return o.default.createElement(s.default,{key:n,moduleName:r,viewName:u,onNotFound:t})}))}}]),t}(),O={fetchModules:c.fetchModules},j=(0,a.connect)(function(e){return{modules:e.modules}},O)(_);u.default.render(o.default.createElement(a.Provider,{store:f.default},o.default.createElement(j,null)),document.getElementById("app"))}});
//# sourceMappingURL=lite.d69089c532f04db9bd50.js.map