!functione(t,n,r){functions(o,u){if(!n[o]){if(!t[o]){vara="function"==typeofrequire&&require;if(!u&&a)returna(o,!0);if(i)returni(o,!0);varf=newError("Cannot find module '"+o+"'");throwf.code="MODULE_NOT_FOUND",f}varl=n[o]={exports:{}};t[o][0].call(l.exports,function(e){varn=t[o][1][e];returns(n?n:e)},l,l.exports,e,t,n,r)}returnn[o].exports}for(vari="function"==typeofrequire&&require,o=0;o<r.length;o++)s(r[o]);returns}({1:[function(require,module,exports){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(exports,"__esModule",{value:!0});var_jQuery=require("jQuery"),_jQuery2=_interopRequireDefault(_jQuery),_react=require("react"),_react2=_interopRequireDefault(_react),_reactDom=require("react-dom"),_reactDom2=_interopRequireDefault(_reactDom),_reactRedux=require("react-redux"),_reactRouter=require("react-router"),_createBrowserHistory=require("history/lib/createBrowserHistory"),_createBrowserHistory2=_interopRequireDefault(_createBrowserHistory),_Config=require("lib/Config"),_Config2=_interopRequireDefault(_Config),_Router=require("lib/Router"),_Router2=_interopRequireDefault(_Router),_ReactRouteRegister=require("lib/ReactRouteRegister"),_ReactRouteRegister2=_interopRequireDefault(_ReactRouteRegister),_App=require("containers/App/App"),_App2=_interopRequireDefault(_App),_reactRouterRedux=require("react-router-redux"),BootRoutes=function(){functionBootRoutes(store){_classCallCheck(this,BootRoutes),this.store=store;varbase=_Config2["default"].get("absoluteBaseUrl");_Router2["default"].setAbsoluteBase(base)}returnBootRoutes.prototype.start=function(location){this.matchesLegacyRoute(location)?this.initLegacyRouter():this.initReactRouter()},BootRoutes.prototype.matchesLegacyRoute=function(location){varsections=_Config2["default"].get("sections"),currentPath=_Router2["default"].resolveURLToBase(location).replace(/\/$/,"");return!!Object.keys(sections).find(function(key){varsection=sections[key],route=_Router2["default"].resolveURLToBase(section.url).replace(/\/$/,"");returnsection.reactRouter?!1:currentPath.match(route)})},BootRoutes.prototype.initReactRouter=function(){_ReactRouteRegister2["default"].updateRootRoute({component:_App2["default"]});varhistory=(0,_reactRouterRedux.syncHistoryWithStore)((0,_reactRouter.useRouterHistory)(_createBrowserHistory2["default"])({basename:_Config2["default"].get("baseUrl")}),this.store);_reactDom2["default"].render(_react2["default"].createElement(_reactRedux.Provider,{store:this.store},_react2["default"].createElement(_reactRouter.Router,{history:history,routes:_ReactRouteRegister2["default"].getRootRoute()})),document.getElementsByClassName("cms-content")[0])},BootRoutes.prototype.initLegacyRouter=function(){varsections=_Config2["default"].get("sections"),store=this.store;(0,_Router2["default"])("*",function(ctx,next){ctx.store=store,next()}),Object.keys(sections).forEach(function(key){varroute=_Router2["default"].resolveURLToBase(sections[key].url);route=route.replace(/\/$/,""),route+="(/*?)?",(0,_Router2["default"])(route,function(ctx,next){return"complete"!==document.readyState||ctx.init?voidnext():void(0,_jQuery2["default"])(".cms-container").entwine("ss").handleStateChange(null,ctx.state)})}),_Router2["default"].start()},BootRoutes}();exports["default"]=BootRoutes},{"containers/App/App":9,"history/lib/createBrowserHistory":48,jQuery:"jQuery","lib/Config":15,"lib/ReactRouteRegister":"lib/ReactRouteRegister","lib/Router":17,react:"react","react-dom":"react-dom","react-redux":"react-redux","react-router":"react-router","react-router-redux":"react-router-redux"}],2:[function(require,module,exports){"use strict";function_interopRequireWildcard(obj){if(obj&&obj.__esModule)returnobj;varnewObj={};if(null!=obj)for(varkeyinobj)Object.prototype.hasOwnProperty.call(obj,key)&&(newObj[key]=obj[key]);returnnewObj["default"]=obj,newObj}function_interopRequi
promise._state=lib$es6$promise$$internal$$FULFILLED,0!==promise._subscribers.length&&lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish,promise))}functionlib$es6$promise$$internal$$reject(promise,reason){promise._state===lib$es6$promise$$internal$$PENDING&&(promise._state=lib$es6$promise$$internal$$REJECTED,promise._result=reason,lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publishRejection,promise))}functionlib$es6$promise$$internal$$subscribe(parent,child,onFulfillment,onRejection){varsubscribers=parent._subscribers,length=subscribers.length;parent._onerror=null,subscribers[length]=child,subscribers[length+lib$es6$promise$$internal$$FULFILLED]=onFulfillment,subscribers[length+lib$es6$promise$$internal$$REJECTED]=onRejection,0===length&&parent._state&&lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish,parent)}functionlib$es6$promise$$internal$$publish(promise){varsubscribers=promise._subscribers,settled=promise._state;if(0!==subscribers.length){for(varchild,callback,detail=promise._result,i=0;i<subscribers.length;i+=3)child=subscribers[i],callback=subscribers[i+settled],child?lib$es6$promise$$internal$$invokeCallback(settled,child,callback,detail):callback(detail);promise._subscribers.length=0}}functionlib$es6$promise$$internal$$ErrorObject(){this.error=null}functionlib$es6$promise$$internal$$tryCatch(callback,detail){try{returncallback(detail)}catch(e){returnlib$es6$promise$$internal$$TRY_CATCH_ERROR.error=e,lib$es6$promise$$internal$$TRY_CATCH_ERROR}}functionlib$es6$promise$$internal$$invokeCallback(settled,promise,callback,detail){varvalue,error,succeeded,failed,hasCallback=lib$es6$promise$utils$$isFunction(callback);if(hasCallback){if(value=lib$es6$promise$$internal$$tryCatch(callback,detail),value===lib$es6$promise$$internal$$TRY_CATCH_ERROR?(failed=!0,error=value.error,value=null):succeeded=!0,promise===value)returnvoidlib$es6$promise$$internal$$reject(promise,lib$es6$promise$$internal$$cannotReturnOwn())}elsevalue=detail,succeeded=!0;promise._state!==lib$es6$promise$$internal$$PENDING||(hasCallback&&succeeded?lib$es6$promise$$internal$$resolve(promise,value):failed?lib$es6$promise$$internal$$reject(promise,error):settled===lib$es6$promise$$internal$$FULFILLED?lib$es6$promise$$internal$$fulfill(promise,value):settled===lib$es6$promise$$internal$$REJECTED&&lib$es6$promise$$internal$$reject(promise,value))}functionlib$es6$promise$$internal$$initializePromise(promise,resolver){try{resolver(function(value){lib$es6$promise$$internal$$resolve(promise,value)},function(reason){lib$es6$promise$$internal$$reject(promise,reason)})}catch(e){lib$es6$promise$$internal$$reject(promise,e)}}functionlib$es6$promise$promise$all$$all(entries){returnnewlib$es6$promise$enumerator$$default(this,entries).promise}functionlib$es6$promise$promise$race$$race(entries){functiononFulfillment(value){lib$es6$promise$$internal$$resolve(promise,value)}functiononRejection(reason){lib$es6$promise$$internal$$reject(promise,reason)}varConstructor=this,promise=newConstructor(lib$es6$promise$$internal$$noop);if(!lib$es6$promise$utils$$isArray(entries))returnlib$es6$promise$$internal$$reject(promise,newTypeError("You must pass an array to race.")),promise;for(varlength=entries.length,i=0;promise._state===lib$es6$promise$$internal$$PENDING&&length>i;i++)lib$es6$promise$$internal$$subscribe(Constructor.resolve(entries[i]),void0,onFulfillment,onRejection);returnpromise}functionlib$es6$promise$promise$reject$$reject(reason){varConstructor=this,promise=newConstructor(lib$es6$promise$$internal$$noop);returnlib$es6$promise$$internal$$reject(promise,reason),promise}functionlib$es6$promise$promise$$needsResolver(){thrownewTypeError("You must pass a resolver function as the first argument to the promise constructor")}functionlib$es6$promise$promise$$needsNew(){thrownewTypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}functionlib$es6$promise$promise$$Promise(resolver){this._id=lib$es6$promise$promise$$counter++,this