define(["require","exports","react","react-dom","@login/app","@login/api","react-router-dom","@core/material-ui-components","@core/style_constants","@core/api_controller","@core/state","@core/socket_controller","@login/initial-state","@core/contexts","@core/loader"],function(require,exports,React,ReactDOM,app_1,api_1,react_router_dom_1,material_ui_components_1,style_constants,api_controller_1,state_1,socket_controller_1,initial_state_1,contexts_1,loader_1){Object.defineProperty(exports,"__esModule",{value:true});(function(window){var api=new api_1.default();var init_api_controller=function(){var api_controller=new api_controller_1.default(api,"app-state");api_controller.register('update','/create-password',function(properties,api,callback,args,error_callback){api.createPassword(Object.assign({},args),false,function(o){callback({data:o});},function(error){error_callback(error);});});api_controller.register("read","/employee-offers/{offer_token}",function(properties,api,callback,args,error_callback){api.listEmployeeOffer({token:properties[0]},false,function(o){callback({id_property:"_id",data:o.info});},function(err){error_callback(err);});});api_controller.register("read","smart-fields",function(properties,api,callback,args){api.listSmartFields({},false,function(o){callback({id_property:'value',data:o.info});});});api_controller.register("read","/signatories/{token}",function(properties,api,callback,args,error_callback){api.listSignatories({token:properties[0]},false,function(o){callback({id_property:"_id",data:o.info});},function(err){error_callback(err);});});return api_controller;};var init_socket_controller=function(){var socket_controller=new socket_controller_1.default();return socket_controller;};var state=new state_1.default("app-state",init_api_controller());state.initRunState(initial_state_1.Initial_state);window._app._state_manager=state;ReactDOM.render(React.createElement(material_ui_components_1.MuiThemeProvider,{theme:style_constants.theme},React.createElement(react_router_dom_1.BrowserRouter,null,React.createElement(contexts_1.StateManagerContext.Provider,{value:state},React.createElement(app_1.default,{state_manager:state,history:[]}),React.createElement(loader_1.default,null)))),document.getElementById('app_node'));})(window);});