(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{15:function(e,t,n){"use strict";var a=n(178),r=n(5),o=n(21),s=n(3),c=n(2),i=n(60),l=n(1),u=n.n(l),d=n(29),p=n.n(d),m=n(52),h=n(35),_=n(19),b=n(38);t.a={context:new function e(){var t=this;Object(r.a)(this,e),this.init=function(e){t.rootUrl=e||"",t.initTheme(),t.initFilters(),t.initTreeViewStatus(),t.initListViewStatus();var n="anonymous",a=null;return new Promise(function(e,r){Object(h.b)().then(function(o){n="current",a=o,console.log(o),t.loadContext(n,a,e,r)}).catch(function(o){console.log(o),t.loadContext(n,a,e,r)})})},this.loadContext=function(e,n,a,r){Object(m.a)("".concat(_.c,"/").concat(e),n,null,"GET").then(function(e){if(console.log(e),!e)throw"ERROR_JS_LOADCONTEXT_NODATA";t.updateCurOrg(e.organization),t.updateCurUser(e.user);var n=e.localization,r=e.solution,o=Object(c.n)([r,{localization:n?n.data:{}}]);t.updateCurSolution(o),console.log(o),Object(b.b)();var s=t.curPage,i=u.a.find(o.ui.sideNav,function(e){return e.page&&e.page.name.toLowerCase()===s.name});i&&t.updateCurPage(i.page),a()}).catch(function(e){console.error(e),r(e)})},this.initListViewStatus=function(){var e=p.a.load("context.listViewStatus");e="closed"===e?e:"open",t.listViewStatus=e},this.updateListViewStatus=function(e){p.a.save("context.listViewStatus",e),t.listViewStatus=e},this.initTreeViewStatus=function(){var e=p.a.load("context.treeViewStatus");e="open"===e?e:"closed",t.treeViewStatus=e},this.updateTreeViewStatus=function(e){p.a.save("context.treeViewStatus",e),t.treeViewStatus=e},this.updateTreeViewLocation=function(e,n){var a="context.treeViewLocation.".concat(e);p.a.save(a,n),t.treeViewLocationLatestChange="".concat(a,".").concat(n)},this.initFilters=function(){t.filtersViewStatus="closed";try{var e=function(e){var t=localStorage.getItem(e);if(!t)return null;if(u.a.isString(t))try{t=JSON.parse(t)}catch(n){}return t}("context.filters");t.filters=u.a.isObject(e)?JSON.stringify(e):"{}"}catch(n){t.filters=""}},this.getFilters=function(e){try{var n=JSON.parse(t.filters);return u.a.isObject(n[e])?n[e]:{}}catch(a){return{}}},this.updateFilter=function(e,n,a){var r=t.getFilters(e);a?r[n]=a:delete r[n],t.updateFilters(e,r)},this.updateFilters=function(e,n){var a={};try{a=JSON.parse(t.filters)}catch(r){a={}}a[e]=n,delete a[""];try{t.filters=JSON.stringify(a)}catch(r){t.filters={}}!function(e,t){u.a.isObject(t)&&(t=JSON.stringify(t)),localStorage.setItem(e,t)}("context.filters",t.filters)},this.updateFiltersViewStatus=function(e){t.filtersViewStatus="open"===e?"open":"closed"},this.initTheme=function(){var e=p.a.load("context.theme");e||(e="light"),t.theme=e},this.updateTheme=function(e){p.a.save("context.theme",e),t.theme=e},this.updateCurPage=function(e){try{t.curPage=JSON.stringify(e)}catch(n){t.curPage="{}"}},this.updateCurPageProp=function(e,n){var a={};try{a=JSON.parse(t.curPage)}catch(r){a={}}a[e]=n,t.updateCurPage(a)},this.getChatUser=function(e){t.chatUsers||(t.chatUsers=t.flushChatUsers());var n=e.id,a=t.chatUsers[n];return a?(a.chatCount||(a.chatCount=0),t.chatUsers[n]=a):((a=e).chatCount=0,a.chatText=null,t.chatUsers[n]=a),a},this.updateChatUser=function(e,n,a){t.chatUsers||(t.chatUsers=t.flushChatUsers());var r=t.chatUsers[e];r&&(r.chatCount=n,r.chatText=a)},this.flushChatUsers=function(){t.chatUsers||(t.chatUsers={});var e=JSON.parse(t.curOrgUsers);return u.a.each(e,function(e){t.chatUsers[e.id]=e}),t.chatUsers},this.mergeChatUsers=function(e,n){var a=JSON.parse(t.curUser),r=a.chatUsers,o=a.id;return u.a.without(u.a.map(e,function(e){var t=u.a.find(r,function(t){return Object(c.p)(t.id,e.id)});return t?(e.chatCount=t.count,e.chatText=t.text):(e.chatCount=0,e.chatText=null),!n&&Object(c.p)(e.id,o)?null:e}),null)},this.updateChatMessagesTotal=function(e){t.chatMessagesTotal=e},this.countChatMessages=function(e,n,a){var r=JSON.parse(t.curUser);u.a.isArray(r.chatUsers)||(r.chatUsers=[],t.updateChatMessagesTotal(0));var o=!1;if(r.chatUsers=u.a.map(r.chatUsers,function(r){return Object(c.p)(r.id,e)&&(r.count=r.count+n,r.text=a,o=!0,t.updateChatUser(e,r.count,r.text)),r}),!o){var s={id:e,count:n,text:a};r.chatUsers.push(s),t.updateChatUser(e,n,a)}t.updateChatMessagesTotal(t.chatMessagesTotal+n),t.updateCurUser(r)},this.cleanChatMessages=function(e){var n=JSON.parse(t.curUser),a=JSON.parse(t.curOrgUsers);u.a.isArray(n.chatUsers)||(n.chatUsers=[],t.updateChatMessagesTotal(0));var r=!1;return n.chatUsers=u.a.without(u.a.map(n.chatUsers,function(t){return Object(c.p)(t.id,e)&&u.a.isNumber(t.count)&&t.count>0?(r=!0,a=u.a.map(a,function(t){return Object(c.p)(t.id,e)&&(delete t.chatCount,delete t.chatText),t}),null):t})),r&&(t.updateCurUser(n),t.updateCurOrgUsers(a)),r},this.toggleTopMenu=function(){t.showTopMenu=!t.showTopMenu},this.hideTopMenu=function(){t.showTopMenu&&(t.showTopMenu=!1)},this.setLCID=function(e){t.lcid=u.a.isNumber(e)?e:1033},this.showDialog=function(e,n,a,r,o){t.dialogContent=e,t.dialogOnClose=o,t.dialog=JSON.stringify({title:n,width:a,height:r})},this.hideDialog=function(){t.dialogContent=null,t.dialogOnClose=null,t.dialog=null},this.curColor=function(e){return t.curColorName||(t.curColorName=Object(o.computed)(function(){return!t.curUser||t.curUser&&!t.curUser.color?"lightBlue":t.curUser.color})),Object(s.c)(t.curColorName,e)},this.updateCurSolution=function(e){t.curSolution=JSON.stringify(e)},this.updateCurUser=function(e){t.curUser=JSON.stringify(e)},this.updateCurOrg=function(e){t.curOrg=JSON.stringify(e)},this.updateCurOrgUsers=function(e){t.curOrgUsers=JSON.stringify(e)},this.updateCurRecord=function(e){t.curRecord=JSON.stringify(e)},this.updateDeepLink=function(e){t.deepLink=e},this.updateShowProgress=function(e){t.showProgress=!!e},this.renderCurLookup=function(e,n,r){t.curLookup=e?JSON.stringify(Object(a.a)({subscriberId:e,multiSelect:n},r)):null},this.removeCurLookup=function(e,n){t.renderCurLookup(null)},this.updateFCMToken=function(e){t.fcmToken=e},this.updateNotification=function(e){t.notification=e},this.refreshPage=function(e){t.pageRefreshId=e||Object(c.o)()},this.broadcastLatestOperation=function(e){console.log(e),t.latestOperation=u.a.isObject(e)?JSON.stringify(e):"{}"},this.dialogContent=null,this.dialogOnClose=null,Object(o.extendObservable)(this,{curLookup:null,curSolution:null,curUser:null,curOrg:null,curOrgUsers:null,curRecord:null,curColorName:null,deepLink:"",theme:"dark",treeViewStatus:"closed",treeViewLocationLatestChange:"",listViewStatus:"open",filtersViewStatus:"closed",filters:"{}",curPage:"{}",fcmToken:null,showTopMenu:!1,dialog:null,lcid:1033,chatMessagesTotal:0,showProgress:!1,pageRefreshId:i.a,chatUsers:null,notification:null,latestOperation:"{}",rootUrl:""})}}},170:function(module,__webpack_exports__,__webpack_require__){"use strict";var C_Dou_DouHome_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5),C_Dou_DouHome_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(10),C_Dou_DouHome_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(8),C_Dou_DouHome_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7),C_Dou_DouHome_node_modules_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),_signin_view__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(171),_let_me_know_view__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(172),_shared_colors__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(3),_shared_context__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(4),_shared_ui__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(33),_shared_base_component__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(24),radium__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(14),_app_helper__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(27),HeaderView=Object(radium__WEBPACK_IMPORTED_MODULE_12__.a)(function(_BaseComponent){function HeaderView(e){var t;return Object(C_Dou_DouHome_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__.a)(this,HeaderView),(t=Object(C_Dou_DouHome_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__.a)(this,Object(C_Dou_DouHome_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__.a)(HeaderView).call(this,e))).updateDimensions=function(){t.windowSize={windowWidth:window.innerWidth,windowHeight:window.innerHeight}},t.onChangeDashboardName=function(e){t.setState({dashboardName:e.target.value})},t.renderVideoWrapper=function(){return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"video-wrapper ratio-16x9 rounded shadow-6 mt-8 mt-lg-0"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"poster",style:{backgroundImage:"url(https://cfr.slack-edge.com/43f70/marketing/img/home/home_illo.png)"}}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("button",{className:"btn btn-circle btn-lg btn-info"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("i",{className:"fa fa-play"})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("iframe",{width:"560",height:"315",src:"https://www.youtube.com/embed/M5S_JBRjd1s?rel=0&showinfo=0",frameborder:"0",allow:"autoplay; encrypted-media",allowfullscreen:""}))},t.renderInfoUI=function(){var e=Object(_shared_context__WEBPACK_IMPORTED_MODULE_9__.b)().site.home;return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"col-md-12 col-lg-7"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("p",{className:"display-4",style:{float:"left",paddingRight:30,width:"100%",fontWeight:500,lineHeight:1.3}},e.title),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("p",{className:"lead mt-4",style:{float:"left",paddingRight:30,width:"100%",fontWeight:500,fontSize:"1.4rem"}},e.subTitle),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("p",{className:"lead mb-7",style:{float:"left",paddingRight:30,width:"100%"}},e.content),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("p",{className:"gap-xy"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("a",{className:"btn btn-lg btn-round btn-primary mw-200",href:Object(_shared_ui__WEBPACK_IMPORTED_MODULE_10__.a)()},"Learn More"),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("a",{className:"btn btn-lg btn-round btn-outline-info mw-200",href:Object(_shared_ui__WEBPACK_IMPORTED_MODULE_10__.a)()},"Explore Demos")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"w-10 ml-0 my-8"}))},t.renderMainUI=function(){return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"col-md-12 col-lg-5 ml-auto"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{style:t.styles.screenshotWraper},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("img",{src:"/images/sections/section_home.jpg",style:t.styles.screenshot})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"w-10 ml-0 my-3"})," ",react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{style:t.styles.inputWraper},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{style:t.styles.input,onChange:t.onChangeDashboardName,value:t.state.dashboardName,placeholder:"your-dashboard-url"}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{style:t.styles.domain},".douhub.com"),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"btn btn-lg btn-round btn-success",style:t.styles.createButton,href:Object(_shared_ui__WEBPACK_IMPORTED_MODULE_10__.a)()},"Create")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"w-10 ml-0 my-8"}))},t.renderSignInUI=function(){return"signin"!=Object(_shared_context__WEBPACK_IMPORTED_MODULE_9__.a)("name")?null:react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"col-md-12 col-lg-5 ml-auto"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_signin_view__WEBPACK_IMPORTED_MODULE_6__.a,null),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"w-10 ml-0 my-8"}))},t.renderLetMeKnowUI=function(){return"letmeknow"!=Object(_shared_context__WEBPACK_IMPORTED_MODULE_9__.a)("name")?null:react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"col-md-5 ml-auto"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_let_me_know_view__WEBPACK_IMPORTED_MODULE_7__.a,null),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"w-10 ml-0 my-8"}))},t.renderContent=function(){var e=t.renderSignInUI(),n=t.renderLetMeKnowUI(),a=!e&&!n;return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"container",style:t.styles.wrapper},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"row align-items-center"},t.renderInfoUI(),a?t.renderMainUI():null,t.renderSignInUI(),t.renderLetMeKnowUI()))},t.styles={wrapper:{marginTop:20,marginBottom:20},screenshotWraper:{width:"100%",padding:0},screenshot:{width:"100%"},inputWraper:{display:"flex",width:"100%",float:"left",padding:5,border:"solid 1px ".concat(_shared_colors__WEBPACK_IMPORTED_MODULE_8__.b.blackA01)},input:{flex:1,color:_shared_colors__WEBPACK_IMPORTED_MODULE_8__.b.blackA08,height:42,fontSize:16,textAlign:"right",border:"none",background:_shared_colors__WEBPACK_IMPORTED_MODULE_8__.b.white,padding:2,width:100},domain:{height:42,marginRight:10,color:_shared_colors__WEBPACK_IMPORTED_MODULE_8__.b.blackA05,fontSize:12,fontWeight:700,paddingTop:12,width:80,border:"none",background:_shared_colors__WEBPACK_IMPORTED_MODULE_8__.b.white},createButton:{height:42,padding:8,borderTopRightRadius:0,borderBottomRightRadius:0,borderTopLeftRadius:0,borderBottomLeftRadius:0,width:90},block:{paddingTop:50,paddingBottom:50,background:_shared_colors__WEBPACK_IMPORTED_MODULE_8__.b.blackA01,marginTop:30,marginBottom:30}},t.updateDimensions(),t.state={dashboardName:""},t}return Object(C_Dou_DouHome_node_modules_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__.a)(HeaderView,_BaseComponent),Object(C_Dou_DouHome_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__.a)(HeaderView,[{key:"componentDidMount",value:function componentDidMount(){eval("page.initConstellation()"),this.updateDimensions(),window.addEventListener("resize",this.updateDimensions)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateDimensions)}},{key:"componentWillReact",value:function(){console.log("I will re-render, since the todo has changed!")}},{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("header",{id:"home",className:"header text-center text-lg-left",style:{paddingBottom:20}},this.renderContent())}}]),HeaderView}(_shared_base_component__WEBPACK_IMPORTED_MODULE_11__.a));__webpack_exports__.a=HeaderView},171:function(e,t,n){"use strict";var a=n(25),r=n.n(a),o=n(40),s=n(5),c=n(10),i=n(8),l=n(7),u=n(9),d=n(0),p=n.n(d),m=n(14),h=n(3),_=n(27),b=n(24),f=n(2),g=n(29),y=n.n(g),E=n(35),O=n(4),w=Object(m.a)(function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(i.a)(this,Object(l.a)(t).call(this,e))).onChangeLoginId=function(e){n.state.user.loginId=e.target.value,n.setState({errEmail:!1,errPhoneNumber:!1,user:n.state.user})},n.onChangePassword=function(e){n.state.user.password=e.target.value,n.setState({user:n.state.user})},n.onKeyPressPassword=function(e){13==e.charCode&&n.onSubmit()},n.onSubmit=Object(o.a)(r.a.mark(function e(){var t;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.state.user,Object(f.h)(t.loginId)&&(Object(f.j)(t.loginId)||Object(f.l)(t.loginId))){e.next=4;break}return n.setState({errSignIn:!1,errEmail:!Object(f.h)(t.loginId)||!Object(f.j)(t.loginId),errPhoneNumber:!Object(f.h)(t.loginId)||!Object(f.l)(t.loginId)}),e.abrupt("return");case 4:return n.setState({errEmail:!1,errPhoneNumber:!1,errPassword:!1,failed:null,doing:!0}),e.next=7,Object(E.c)(t.loginId,t.password).then(function(e){window.location="/core/index.html?ts=".concat(Object(f.o)(),"#dashboard")}).catch(function(e){console.error(e),n.setState({failed:e.message,doing:!1})});case 7:case"end":return e.stop()}},e,this)})),n.styles={errMessage:{width:"100%",float:"left",color:_.a.danger,lineHeight:1.2},input:{color:h.b.blackA08,marginBottom:10},card:{backgroundColor:h.b.white,border:"solid 1px ".concat(h.b.blackA01),padding:10},header:{backgroundColor:h.b.blackA003,borderRadius:0,padding:"10px 20px",color:h.b.black},title:{float:"left",fontWeight:500,fontSize:"1.3rem"},content:{padding:"30px 10px",minHeight:280},footer:{},footerLink:{color:Object(h.c)("gray",700),fontSize:13}},n.state={errEmail:!1,errPhoneNumber:!1,errPassword:!1,failed:null,doing:!1,user:{loginId:y.a.load("LoginId"),password:""},success:!1},n}return Object(u.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.state.user.loginId?this.state.user.loginId:"",t=this.state.user.password?this.state.user.password:"";return p.a.createElement("section",{className:"flexbox-container"},p.a.createElement("div",{className:"col-12 d-flex align-items-end justify-content-end p-0"},p.a.createElement("div",{className:"col-12 box-shadow-2 p-0 mt-5",style:{minHeight:350}},p.a.createElement("div",{className:"card border-grey border-lighten-3 m-0",style:this.styles.card},p.a.createElement("div",{className:"card-header border-0",style:this.styles.header},p.a.createElement("span",{style:this.styles.title},"Login with DouHub")),p.a.createElement("div",{className:"card-content",style:this.styles.content},p.a.createElement("div",{className:"card-body"},p.a.createElement("fieldset",{className:"form-group position-relative has-icon-left mb-3"},p.a.createElement("input",{type:"text",className:"form-control form-control-lg input-lg",placeholder:Object(O.d)("PH_LOGINID"),required:!0,style:this.styles.input,onChange:this.onChangeLoginId,value:e})),p.a.createElement("fieldset",{className:"form-group position-relative has-icon-left mb-3"},p.a.createElement("input",{type:"password",className:"form-control form-control-lg input-lg",placeholder:"Password",required:!0,style:this.styles.input,onKeyPress:this.onKeyPressPassword,onChange:this.onChangePassword,value:t})),p.a.createElement("div",{className:"form-group row"},p.a.createElement("div",{className:"col-12"},this.state.errPhoneNumber?p.a.createElement("span",{style:this.styles.errMessage},Object(O.d)("ERROR_WRONGMOBILEFORMAT")):null,this.state.errEmail?p.a.createElement("span",{style:this.styles.errMessage},Object(O.d)("ERROR_WRONGEMAILFORMAT")):null,this.state.failed?p.a.createElement("span",{style:this.styles.errMessage},Object(O.d)("ERROR_SIGNIN_FAIL",this.state.failed).replace("{0}",this.state.failed)," ",Object(O.d)("ERROR_TRYAGAIN","Please try again or contact us.")):null)),p.a.createElement("button",{type:"submit",className:"btn btn-lg btn-round btn-success",style:{float:"right",marginBottom:"1.25rem"},onClick:this.onSubmit},p.a.createElement("i",{className:this.state.doing?"icon-refresh spinner":"icon-lock",style:{marginRight:10}}),this.state.doing?Object(O.d)("BTN_SUBMITTING"):Object(O.d)("BTN_SIGNIN")))),p.a.createElement("div",{className:"card-footer",style:this.styles.footer},p.a.createElement("p",{className:"float-sm-left text-center m-0"},p.a.createElement("a",{href:"/?ts=".concat(Object(f.o)(),"#recoverpassword"),className:"card-link",style:this.styles.footerLink},Object(O.d)("LOGIN_RECOVERPASSWORD"))),p.a.createElement("p",{className:"float-sm-right text-center m-0"},p.a.createElement("a",{href:"/?ts=".concat(Object(f.o)(),"#signup"),className:"card-link",style:this.styles.footerLink},Object(O.d)("LOGIN_AREYOUNEW")," ",Object(O.d)("BTN_SIGNUP"))))))))}}]),t}(b.a));t.a=w},172:function(e,t,n){"use strict";var a=n(25),r=n.n(a),o=n(40),s=n(5),c=n(10),i=n(8),l=n(7),u=n(9),d=n(0),p=n.n(d),m=n(14),h=n(3),_=n(27),b=n(24),f=n(2),g=n(29),y=n.n(g),E=n(35),O=n(4),w=Object(m.a)(function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(i.a)(this,Object(l.a)(t).call(this,e))).onChangeVerificationCode=function(e){n.state.user.code=e.target.value,n.setState({errEmail:!1,user:n.state.user})},n.onChangeLoginId=function(e){n.state.user.loginId=e.target.value,n.setState({errEmail:!1,user:n.state.user})},n.onSubmit=Object(o.a)(r.a.mark(function e(){var t;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.state.user,Object(f.h)(t.loginId)&&(Object(f.j)(t.loginId)||Object(f.l)(t.loginId))){e.next=4;break}return n.setState({errSignIn:!1,errEmail:!Object(f.h)(t.loginId)||!Object(f.j)(t.loginId)}),e.abrupt("return");case 4:if(n.setState({errEmail:!1,failed:null,doing:!0}),!n.state.verify){e.next=10;break}return e.next=8,Object(E.a)(t.loginId,t.code).then(function(e){n.setState({done:!0,doing:!1})}).catch(function(e){switch(console.error(e),e.code){case"NotAuthorizedException":n.setState({failed:"The account with the same email has been activated.",verify:!0,doing:!1});break;case"CodeMismatchException":default:n.setState({failed:e.message,verify:!0,doing:!1})}});case 8:e.next=12;break;case 10:return e.next=12,Object(E.d)(t.loginId).then(function(e){n.setState({verify:!0,doing:!1})}).catch(function(e){console.error(e),"UsernameExistsException"===e.code?n.setState({failed:null,verify:!0,doing:!1}):n.setState({failed:e.message,doing:!1})});case 12:case"end":return e.stop()}},e,this)})),n.renderMessage=function(){return n.state.done?p.a.createElement("p",{style:{color:Object(h.c)("green",700),fontSize:16,marginTop:20,marginBottom:20}},"Done! Your email has been added into our early adopter list."):n.state.verify?p.a.createElement("p",{style:{color:Object(h.c)("green",700),fontSize:16,marginTop:20,marginBottom:20}},"Awesome! A verification code has been sent to your email address. Please provide the verification code below to activate your account."):p.a.createElement("p",{style:{color:Object(h.c)("gray",900),fontSize:16,marginTop:20,marginBottom:20}},"Please enter your email below and we'll let you know when we launch!")},n.renderField=function(){if(n.state.done)return null;var e=n.state.user.loginId?n.state.user.loginId:"",t=n.state.user.code?n.state.user.code:"";return n.state.verify?p.a.createElement("fieldset",{className:"form-group position-relative has-icon-left mb-3"},p.a.createElement("input",{type:"text",className:"form-control form-control-lg input-lg",placeholder:Object(O.d)("PH_VERIFICATIONCODE","Verification Code"),required:!0,style:n.styles.input,onChange:n.onChangeVerificationCode,value:t})):p.a.createElement("fieldset",{className:"form-group position-relative has-icon-left mb-3"},p.a.createElement("input",{type:"text",className:"form-control form-control-lg input-lg",placeholder:Object(O.d)("PH_EMAIL","Email"),required:!0,style:n.styles.input,onChange:n.onChangeLoginId,value:e}))},n.styles={errMessage:{width:"100%",float:"left",color:_.a.danger,lineHeight:1.2},input:{color:h.b.blackA08},header:{backgroundColor:h.b.primaryBorder,borderRadius:"10px 10px 0 0",paddingTop:5,paddingBottom:5},footer:{borderBottom:"solid 10px ".concat(h.b.primaryBorder),borderRadius:"0 0 10px 10px",padding:0},footerLink:{color:Object(h.c)("gray",700),fontSize:13}},n.state={errEmail:!1,failed:null,doing:!1,user:{loginId:y.a.load("LoginId")},success:!1},n}return Object(u.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){return p.a.createElement("section",{className:"flexbox-container"},p.a.createElement("div",{className:"col-12 d-flex align-items-end justify-content-end p-0"},p.a.createElement("div",{className:"col-12 box-shadow-2 p-0 mt-5",style:{minHeight:350}},p.a.createElement("div",{className:"card border-grey border-lighten-3 m-0",style:{backgroundColor:h.b.transparent}},p.a.createElement("div",{className:"card-header border-0",style:this.styles.header},p.a.createElement("span",{className:"card-subtitle"},"Pre-launch Sign Up")),p.a.createElement("div",{className:"card-content",style:{backgroundColor:h.b.white,minHeight:200}},p.a.createElement("div",{className:"card-body"},this.renderMessage(),this.renderField(),p.a.createElement("div",{className:"form-group row",style:{minHeight:30}},p.a.createElement("div",{className:"col-12"},this.state.errEmail?p.a.createElement("span",{style:this.styles.errMessage},Object(O.d)("ERROR_WRONGEMAILFORMAT")):null,this.state.failed?p.a.createElement("span",{style:this.styles.errMessage},this.state.failed):null)),this.state.done?null:p.a.createElement("button",{type:"submit",className:"btn btn-lg btn-round btn-success",style:{float:"right",marginBottom:"1.25rem"},onClick:this.onSubmit},p.a.createElement("i",{className:this.state.doing?"icon-refresh spinner":"icon-lock",style:{marginRight:10}}),this.state.doing?Object(O.d)("BTN_SUBMITTING"):Object(O.d)("BTN_SIGNIN")))),p.a.createElement("div",{className:"card-footer",style:this.styles.footer})))))}}]),t}(b.a));t.a=w},179:function(e,t,n){e.exports=n(395)},19:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"f",function(){return o}),n.d(t,"c",function(){return s}),n.d(t,"e",function(){return c}),n.d(t,"d",function(){return i}),n.d(t,"b",function(){return l});var a="https://www.signalhill.cloud",r="https://api.signalhill.cloud",o="https://file.signalhill.cloud/v1",s="https://context.signalhill.cloud/v1",c="".concat(a,"/default/user.jpg"),i="".concat(a,"/default/org.jpg"),l=("".concat(a,"/default/photo.jpg"),"".concat(a,"/default/video.mp4"),"".concat(a,"/default/document.txt"),"".concat(a,"/default/audio.mp3"),{region:"us-east-1",userPoolId:"us-east-1_0pr4bU0Bj",userPoolWebClientId:"3s7pcr2n6tpmt6nrabohr0dnm4",mandatorySignIn:!1})},2:function(e,t,n){"use strict";n.d(t,"b",function(){return p}),n.d(t,"q",function(){return m}),n.d(t,"c",function(){return h}),n.d(t,"d",function(){return y}),n.d(t,"e",function(){return E}),n.d(t,"f",function(){return O}),n.d(t,"o",function(){return w}),n.d(t,"p",function(){return N}),n.d(t,"k",function(){return A}),n.d(t,"n",function(){return C}),n.d(t,"m",function(){return S}),n.d(t,"l",function(){return j}),n.d(t,"j",function(){return k}),n.d(t,"h",function(){return D}),n.d(t,"g",function(){return M}),n.d(t,"i",function(){return T}),n.d(t,"a",function(){return x});var a=n(50),r=n(1),o=n.n(r),s=n(18),c=n.n(s),i=n(177),l=n(85),u=n.n(l),d=n(60),p=(n(19),n(3),n(22),function(e){return e&&e.dateFormat?e.dateFormat:"LL"}),m=function(e){return e&&e.timeFormat?e.timeFormat:"LT"},h=function(e){return e&&e.dateTimeFormat?e.dateTimeFormat:"LLL"},_=function(e,t){var n=e&&e.timeZoneOffset?e.timeZoneOffset:t;return o.a.isNumber(n)||(n=(new Date).getTimezoneOffset()),n},b=function(e,t){return e&&c()(e).isValid?c()(e).utcOffset(-_(t),!1).format(p(t)):null},f=function(e,t){return e&&c()(e).isValid?c()(e).utcOffset(-_(t),!1).format(m(t)):null},g=function(e,t){return e&&c()(e).isValid?c()(e).utcOffset(-_(t),!1).format(h(t)):null},y=b,E=g,O=f;var w=function(){return u()()},v=function(e){return e?(e+"").replace("{","").replace("}","").replace(/_/g,"-").trim().toLowerCase():""},N=function(e,t){return v(e)===v(t)},A=function(e){return N(e,d.a)},C=function(e){return o.a.isArray(e)||console.error("the parameter of mergeObjects() has to be an array of objects"),o.a.merge.apply(o.a,Object(a.a)(e))},S=function(e){return o.a.isString(e)&&e.length>0},j=function(e){return Object(i.a)(e)},k=function(e){return new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i).test(e)},D=function(e,t){return t||(t=!1),!!e&&(!(""!=(e=(e+"").trim())||!t)||""!=e)},M=function(e,t,n){var a=o.a.find(e.entities,function(e){return e.entityName===t&&e.entityType===n});return!o.a.isObject(a)&&n&&(a=o.a.find(e.entities,function(e){return e.entityName===t})),o.a.isObject(a)?a:null},T=function(e,t){return"rgba("+function(e,t,n){var a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return a?n?"".concat(parseInt(a[1],16)).concat(parseInt(a[2],16)).concat(parseInt(a[3],16)).concat(o.a.isNumber(t)?t:1):{r:parseInt(a[1],16),g:parseInt(a[2],16),b:parseInt(a[3],16),a:o.a.isNumber(t)?t:1}:null}(e,t,!0)+")"},x=function e(t,n){return t?o.a.isArray(t)?o.a.map(t,function(t){return o.a.isArray(t)?e(t):o.a.extend({},t)}):o.a.extend({},t):n}},24:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var a=n(5),r=n(8),o=n(7),s=n(9),c=n(0),i=function(e){function t(e){return Object(a.a)(this,t),Object(r.a)(this,Object(o.a)(t).call(this,e))}return Object(s.a)(t,e),t}(c.Component)},27:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var a={danger:"#ff4954",dangerBorder:"#ff4954",dangerBackground:"#ff4954",info:"#926dde",infoBorder:"#926dde",infoBackground:"#926dde",success:"#3cd458",successBorder:"#3cd458",successBackground:"#3cd458",warning:"#ffba00",warningBorder:"#ffba00",warningBackground:"#ffba00",primary:"#50a1ff",primaryBorder:"#50a1ff",primaryBackground:"#50a1ff",secondary:"#e9ecf0",secondaryBorder:"#e9ecf0",secondaryBackground:"#e9ecf0"}},3:function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"a",function(){return s});var a=n(2),r=function(e,t,n,r){t||(t=500);var s=o[e];return s||(s=o.lightBlue),s=s["c_"+t],t>900&&!s&&(s=s.c_900),s||(s=s.c_700),s||(s="000000"),n?Object(a.i)("#".concat(s),n,r||1):"#".concat(s)},o={red:{c_50:"ffebee",c_100:"ffcdd2",c_200:"ef9a9a",c_300:"e57373",c_400:"ef5350",c_500:"f44336",c_600:"e53935",c_700:"d32f2f",c_800:"c62828",c_900:"b71c1c"},pink:{c_50:"fce4ec",c_100:"f8bbd0",c_200:"f48fb1",c_300:"f06292",c_400:"ec407a",c_500:"e91e63",c_600:"d81b60",c_700:"c2185b",c_800:"ad1457",c_900:"880e4f"},purple:{c_50:"f3e5f5",c_100:"e1bee7",c_200:"ce93d8",c_300:"ba68c8",c_400:"ab47bc",c_500:"9c27b0",c_600:"8e24aa",c_700:"7b1fa2",c_800:"6a1b9a",c_900:"4a148c"},deepPurple:{c_50:"ede7f6",c_100:"d1c4e9",c_200:"b39ddb",c_300:"9575cd",c_400:"7e57c2",c_500:"673ab7",c_600:"5e35b1",c_700:"512da8",c_800:"4527a0",c_900:"311b92"},indigo:{c_50:"e8eaf6",c_100:"c5cae9",c_200:"9fa8da",c_300:"7986cb",c_400:"5c6bc0",c_500:"3f51b5",c_600:"3949ab",c_700:"303f9f",c_800:"283593",c_900:"1a237e"},blue:{c_50:"e3f2fd",c_100:"bbdefb",c_200:"90caf9",c_300:"64b5f6",c_400:"42a5f5",c_500:"2196f3",c_600:"1e88e5",c_700:"1976d2",c_800:"1565c0",c_900:"0d47a1"},lightBlue:{c_50:"e1f5fe",c_100:"b3e5fc",c_200:"81d4fa",c_300:"4fc3f7",c_400:"29b6f6",c_500:"03a9f4",c_600:"039be5",c_700:"0288d1",c_800:"0277bd",c_900:"01579b",c_1000:"01447a"},cyan:{c_50:"e0f7fa",c_100:"b2ebf2",c_200:"80deea",c_300:"4dd0e1",c_400:"26c6da",c_500:"00bcd4",c_600:"00acc1",c_700:"0097a7",c_800:"00838f",c_900:"006064"},teal:{c_50:"e0f2f1",c_100:"b2dfdb",c_200:"80cbc4",c_300:"4db6ac",c_400:"26a69a",c_500:"009688",c_600:"00897b",c_700:"00796b",c_800:"00695c",c_900:"004d40"},green:{c_50:"e8f5e9",c_100:"c8e6c9",c_200:"a5d6a7",c_300:"81c784",c_400:"66bb6a",c_500:"4caf50",c_600:"43a047",c_700:"388e3c",c_800:"2e7d32",c_900:"1b5e20"},lightGreen:{c_50:"f1f8e9",c_100:"dcedc8",c_200:"c5e1a5",c_300:"aed581",c_400:"9ccc65",c_500:"8bc34a",c_600:"7cb342",c_700:"689f38",c_800:"558b2f",c_900:"33691e"},lime:{c_50:"f9fbe7",c_100:"f0f4c3",c_200:"e6ee9c",c_300:"dce775",c_400:"d4e157",c_500:"cddc39",c_600:"c0ca33",c_700:"afb42b",c_800:"9e9d24",c_900:"827717"},yellow:{c_50:"fffde7",c_100:"fff9c4",c_200:"fff59d",c_300:"fff176",c_400:"ffee58",c_500:"ffeb3b",c_600:"fdd835",c_700:"fbc02d",c_800:"f9a825",c_900:"f57f17"},amber:{c_50:"fff8e1",c_100:"ffecb3",c_200:"ffe082",c_300:"ffd54f",c_400:"ffca28",c_500:"ffc107",c_600:"ffb300",c_700:"ffa000",c_800:"ff8f00",c_900:"ff6f00"},orange:{c_50:"fff3e0",c_100:"ffe0b2",c_200:"ffcc80",c_300:"ffb74d",c_400:"ffa726",c_500:"ff9800",c_600:"fb8c00",c_700:"f57c00",c_800:"ef6c00",c_900:"e65100"},deepOrange:{c_50:"fbe9e7",c_100:"ffccbc",c_200:"ffab91",c_300:"ff8a65",c_400:"ff7043",c_500:"ff5722",c_600:"f4511e",c_700:"e64a19",c_800:"d84315",c_900:"bf360c"},brown:{c_50:"efebe9",c_100:"d7ccc8",c_200:"bcaaa4",c_300:"a1887f",c_400:"8d6e63",c_500:"795548",c_600:"6d4c41",c_700:"5d4037",c_800:"4e342e",c_900:"3e2723"},gray:{c_50:"fafafa",c_100:"f5f5f5",c_200:"eeeeee",c_300:"e0e0e0",c_400:"bdbdbd",c_500:"9e9e9e",c_600:"757575",c_700:"616161",c_800:"424242",c_900:"212121"},deepGray:{c_50:"eceff1",c_100:"cfd8dc",c_200:"b0bec5",c_300:"90a4ae",c_400:"78909c",c_500:"607d8b",c_600:"546e7a",c_700:"455a64",c_800:"37474f",c_900:"263238"},white:"rgba(255, 255, 255, 1)",whiteA095:"rgba(255, 255, 255, 0.95)",whiteA09:"rgba(255, 255, 255, 0.9)",whiteA085:"rgba(255, 255, 255, 0.85)",whiteA08:"rgba(255, 255, 255, 0.8)",whiteA07:"rgba(255, 255, 255, 0.7)",whiteA06:"rgba(255, 255, 255, 0.6)",whiteA05:"rgba(255, 255, 255, 0.5)",whiteA04:"rgba(255, 255, 255, 0.4)",whiteA03:"rgba(255, 255, 255, 0.3)",whiteA02:"rgba(255, 255, 255, 0.2)",whiteA01:"rgba(255, 255, 255, 0.1)",whiteA0005:"rgba(255, 255, 255, 0.005)",whiteA001:"rgba(255, 255, 255, 0.01)",whiteA002:"rgba(255, 255, 255, 0.02)",whiteA003:"rgba(255, 255, 255, 0.03)",whiteA004:"rgba(255, 255, 255, 0.04)",whiteA005:"rgba(255, 255, 255, 0.05)",whiteA006:"rgba(255, 255, 255, 0.06)",whiteA007:"rgba(255, 255, 255, 0.07)",whiteA008:"rgba(255, 255, 255, 0.08)",whiteA009:"rgba(255, 255, 255, 0.09)",redFF:"rgba(255, 0, 0, 1)",redFFA095:"rgba(255, 0, 0, 0.95)",redFFA09:"rgba(255, 0, 0, 0.9)",redFFA085:"rgba(255, 0, 0, 0.85)",redFFA08:"rgba(255, 0, 0, 0.8)",redFFA07:"rgba(255, 0, 0, 0.7)",redFFA06:"rgba(255, 0, 0, 0.6)",redFFA05:"rgba(255, 0, 0, 0.5)",redFFA04:"rgba(255, 0, 0, 0.4)",redFFA03:"rgba(255, 0, 0, 0.3)",redFFA02:"rgba(255, 0, 0, 0.2)",redFFA01:"rgba(255, 0, 0, 0.1)",redFFA0005:"rgba(255, 0, 0, 0.005)",redFFA001:"rgba(255, 0, 0, 0.01)",redFFA002:"rgba(255, 0, 0, 0.02)",redFFA003:"rgba(255, 0, 0, 0.03)",redFFA004:"rgba(255, 0, 0, 0.04)",redFFA005:"rgba(255, 0, 0, 0.05)",redFFA006:"rgba(255, 0, 0, 0.06)",redFFA007:"rgba(255, 0, 0, 0.07)",redFFA008:"rgba(255, 0, 0, 0.08)",redFFA009:"rgba(255, 0, 0, 0.09)",greenFF:"rgba(0,255, 0, 1)",greenFFA095:"rgba(0, 255, 0, 0.95)",greenFFA09:"rgba(0, 255, 0, 0.9)",greenFFA085:"rgba(0, 255, 0, 0.85)",greenFFA08:"rgba(0, 255, 0, 0.8)",greenFFA07:"rgba(0, 255, 0, 0.7)",greenFFA06:"rgba(0, 255, 0, 0.6)",greenFFA05:"rgba(0, 255, 0, 0.5)",greenFFA04:"rgba(0, 255, 0, 0.4)",greenFFA03:"rgba(0, 255, 0, 0.3)",greenFFA02:"rgba(0, 255, 0, 0.2)",greenFFA01:"rgba(0, 255, 0, 0.1)",greenFFA0005:"rgba(0, 255, 0, 0.005)",greenFFA001:"rgba(0, 255, 0, 0.01)",greenFFA002:"rgba(0, 255, 0, 0.02)",greenFFA003:"rgba(0, 255, 0, 0.03)",greenFFA004:"rgba(0, 255, 0, 0.04)",greenFFA005:"rgba(0, 255, 0, 0.05)",greenFFA006:"rgba(0, 255, 0, 0.06)",greenFFA007:"rgba(0, 255, 0, 0.07)",greenFFA008:"rgba(0, 255, 0, 0.08)",greenFFA009:"rgba(0, 255, 0, 0.09)",black:"rgba(0,0, 0, 1)",blackA100:"rgba(0,0, 0, 1)",blackA095:"rgba(0, 0, 0, 0.95)",blackA09:"rgba(0, 0, 0, 0.9)",blackA085:"rgba(0, 0, 0, 0.85)",blackA08:"rgba(0, 0, 0, 0.8)",blackA07:"rgba(0, 0, 0, 0.7)",blackA06:"rgba(0, 0, 0, 0.6)",blackA05:"rgba(0, 0, 0, 0.5)",blackA04:"rgba(0, 0, 0, 0.4)",blackA03:"rgba(0, 0, 0, 0.3)",blackA02:"rgba(0, 0, 0, 0.2)",blackA01:"rgba(0, 0, 0, 0.1)",blackA015:"rgba(0, 0, 0, 0.15)",blackA0005:"rgba(0, 0, 0, 0.005)",blackA001:"rgba(0, 0, 0, 0.01)",blackA002:"rgba(0, 0, 0, 0.02)",blackA003:"rgba(0, 0, 0, 0.03)",blackA004:"rgba(0, 0, 0, 0.04)",blackA005:"rgba(0, 0, 0, 0.05)",blackA006:"rgba(0, 0, 0, 0.06)",blackA007:"rgba(0, 0, 0, 0.07)",blackA008:"rgba(0, 0, 0, 0.08)",blackA009:"rgba(0, 0, 0, 0.09)",blueFF:"rgba(33,150, 243, 1)",blueFFA095:"rgba(33,150, 243, 0.95)",blueFFA09:"rgba(33,150, 243, 0.9)",blueFFA085:"rgba(33,150, 243, 0.85)",blueFFA08:"rgba(33,150, 243, 0.8)",blueFFA07:"rgba(33,150, 243, 0.7)",blueFFA06:"rgba(33,150, 243, 0.6)",blueFFA05:"rgba(33,150, 243, 0.5)",blueFFA04:"rgba(33,150, 243, 0.4)",blueFFA03:"rgba(33,150, 243, 0.3)",blueFFA02:"rgba(33,150, 243, 0.2)",blueFFA01:"rgba(33,150, 243, 0.1)",blueFFA015:"rgba(33,150, 243, 0.15)",blueFFA0005:"rgba(33,150, 243, 0.005)",blueFFA001:"rgba(33,150, 243, 0.01)",blueFFA002:"rgba(33,150, 243, 0.02)",blueFFA003:"rgba(33,150, 243, 0.03)",blueFFA004:"rgba(33,150, 243, 0.04)",blueFFA005:"rgba(33,150, 243, 0.05)",blueFFA006:"rgba(33,150, 243, 0.06)",blueFFA007:"rgba(33,150, 243, 0.07)",blueFFA008:"rgba(33,150, 243, 0.08)",blueFFA009:"rgba(33,150, 243, 0.09)",transparent:"rgba(0, 0, 0, 0)"},s={danger:"#FF4961",dangerBorder:"#FF394F",dangerBackground:"#FF4961",info:"#1E9FF2",infoBorder:"#168DEE",infoBackground:"#1E9FF2",success:"#28D094",successBorder:"#1EC481",successBackground:"#28D094",warning:"#FF9149",warningBorder:"#FF7E39",warningBackground:"#FF9149",primary:"#666EE8",primaryBorder:"#535BE2",primaryBackground:"#666EE8",secondary:"#6B6F82",secondaryBorder:"#6B6F82",secondaryBackground:"#6B6F82"}},33:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return _href});var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1),lodash__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__),_context__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4);function _href(){return"#".concat(Object(_context__WEBPACK_IMPORTED_MODULE_1__.a)("name",""))}function showToastr(type,title,content,position,closeBtn,timeOut){type||(type="info");var f="";switch(type.toLowerCase()){case"error":f="toastr.error";break;case"warning":f="toastr.warning";break;case"success":f="toastr.success";break;default:f="toastr.info"}title||(title=""),content||(content=""),position||(position=""),0==position.trim().length&&(position="top-right"),closeBtn=closeBtn?"closeButton: true":"",lodash__WEBPACK_IMPORTED_MODULE_0___default.a.isNumber(timeOut)||(timeOut=1500),eval("".concat(f,'("').concat(content.replace(/"/g,""),'","').concat(title.replace(/"/g,""),'",{timeOut: ').concat(timeOut,', positionClass:"toast-').concat(position,'", ').concat(closeBtn,"})"))}function removeToastr(animate){animate?eval("toastr.clear()"):eval("toastr.remove()")}},35:function(e,t,n){"use strict";n.d(t,"c",function(){return h}),n.d(t,"a",function(){return b}),n.d(t,"d",function(){return f}),n.d(t,"b",function(){return g});var a=n(25),r=n.n(a),o=n(40),s=n(1),c=n.n(s),i=n(26),l=n.n(i),u=n(52),d=n(2),p=n(19),m=n(4);l.a.configure({Auth:p.b});var h=function(){var e=Object(o.a)(r.a.mark(function e(t,n,a){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=Object(o.a)(r.a.mark(function e(s,l){var h,b,f;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,h=null,e.next=4,Object(u.a)("".concat(p.c,"/userOrgs"),null,Object(d.j)(t)?{email:t}:{mobile:t},"POST");case 4:b=e.sent,e.t0=b.length,e.next=0===e.t0?8:1===e.t0?10:12;break;case 8:return _("UserPriofileNotFoundException",Object(m.d)("ERROR_SIGNIN_USERNOTFOUND"),null,!1),e.abrupt("break",13);case 10:return h=b[0],e.abrupt("break",13);case 12:Object(d.m)(a)?(h=c.a.find(b,function(e){return Object(d.p)(e.organizationId,a)}))||_("UserPriofileNotFoundException",Object(m.d)("ERROR_SIGNIN_USERNOTFOUND"),null,!1):h=b[0];case 13:c.a.isObject(h)&&((Object(d.j)(t)&&!h.emailVerifiedOn||!Object(d.j)(t)&&!h.mobileVerifiedOn)&&_("UserNotVerifiedException",Object(m.d)("ERROR_SIGNIN_USERNOTVERIFIED"),null,!1),h.stateCode&&_("UserInactiveException",Object(m.d)("ERROR_SIGNIN_DISABLED"),null,!1)),a=h.organizationId,f=h.id,console.log({id:"".concat(a,".").concat(f),password:n}),i.Auth.signIn("".concat(a,".").concat(f),n).then(function(){var e=Object(o.a)(r.a.mark(function e(t){var n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(u.a)("".concat(p.c,"/current"),t,null,"GET");case 2:n=e.sent,c.a.isObject(n)||_("ContextNotFoundException",Object(m.d)("ERROR_SIGNIN_CONTEXTNOTFOUND"),null,!0),(!c.a.isObject(n.user)||c.a.isObject(n.user)&&!n.user.id)&&_("UserPriofileNotFoundException",Object(m.d)("ERROR_SIGNIN_USERNOTFOUND"),null,!0),n.user.emailVerifiedOn||n.user.mobileVerifiedOn||_("UserNotVerifiedException",Object(m.d)("ERROR_SIGNIN_USERNOTVERIFIED"),null,!0),0!=n.user.stateCode&&_("UserInactiveException",Object(m.d)("ERROR_SIGNIN_DISABLED"),null,!0),s(t);case 8:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){console.error(e),e.internal||(e={type:"Error",statusName:e.name,statusMessage:e.message}),l(e)}),e.next=24;break;case 20:e.prev=20,e.t1=e.catch(0),console.error(e.t1),l({type:"Error",statusName:e.t1.statusName,statusMessage:e.t1.statusMessage,statusDetail:e.t1.statusDetail});case 24:case"end":return e.stop()}},e,this,[[0,20]])}));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}},e,this)}));return function(t,n,a){return e.apply(this,arguments)}}();function _(e,t,n,a){throw a&&new Promise(function(e,t){i.Auth.signOut().then(function(t){e(t)}).catch(function(e){t(e)})}),{internal:!0,type:"Error",statusName:e,statusMessage:t,statusDetail:n}}function b(e,t){return new Promise(function(n,a){i.Auth.confirmSignUp(e,t).then(function(e){n(e)}).catch(function(e){a(e)})})}function f(e){return function(e,t,n,a){c.a.isObject(a)||(a={});return a.given_name=c.a.isString(n)&&n.trim().length>0?n:"",new Promise(function(n,r){i.Auth.signUp({username:e,password:t,attributes:a,validationData:[]}).then(function(e){n(e)}).catch(function(e){r(e)})})}(e,"DOU01-".concat(Object(d.o)()),"pre-launch")}function g(){return new Promise(function(e,t){i.Auth.currentUserPoolUser().then(function(t){e(t)}).catch(function(e){t(e)})})}},38:function(e,t,n){"use strict";n.d(t,"a",function(){return u}),n.d(t,"b",function(){return d}),n.d(t,"d",function(){return p}),n.d(t,"c",function(){return m});var a=n(61),r=n(4),o=n(141),s=n(2),c=n(1),i=n.n(c),l=n(15);function u(){return{width:window.innerWidth,height:window.innerHeight}}function d(){var e="".concat(window.location),t=e.split("#");t=t.length>1?t[t.length-1].toLowerCase():"";var n=e.split("?"),a={name:t,query:n=(n=n.length>1?n[n.length-1]:"").indexOf("=")>1?n:"",treeViewLocation:"top"};return l.a.context.updateCurPage(a),a}var p=new a.RouterStore;function m(e,t){t=t?t.trim():"",e=e?e.replace(/\//g,"").trim():"",0==t.length&&(t="ts=".concat(Object(s.o)())),0==e.length&&(e="dashboard");var n=Object(r.b)(),a=n&&n.ui?n.ui.sideNav:null;i.a.isArray(a)||(a=[]);var c=i.a.find(a,function(t){return!(!i.a.isObject(t.page)||t.page.name!=e)});c?((c=c.page).query=t,Object(r.f)(c)):Object(r.f)({name:e,query:t});var l="".concat(Object(r.e)(),"/index.html?").concat(t,"#").concat(e);setTimeout(function(){p.push(l),Object(o.goToTop)()},500)}},395:function(e,t,n){"use strict";n.r(t);var a=n(5),r=n(10),o=n(8),s=n(7),c=n(9),i=n(0),l=n.n(i),u=n(15),d=n(25),p=n.n(d),m=n(40),h=n(33),_=n(24),b=n(14),f=n(3),g=n(38),y=n(4),E=n(2),O=n(35),w=n(1),v=n.n(w),N=n(30),A=n.n(N),C=Object(b.a)(function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(o.a)(this,Object(s.a)(t).call(this,e))).onClickSignIn=Object(m.a)(p.a.mark(function e(){return p.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Object(O.b)().then(function(e){window.location="/core/index.html?ts=".concat(Object(E.o)(),"#app")}).catch(function(){Object(g.c)("signin")});case 1:case"end":return e.stop()}},e,this)})),n.onClickLogo=function(){Object(g.c)("root")},n.onNavigate=function(e){Object(g.c)(e.navigate),A()("body").removeClass("navbar-open")},n.renderMenuItems=function(){var e=Object(y.b)().site.pages;return v.a.map(v.a.isArray(e)?e:[],function(e){var t=e.title?e.title:"";return e.url?l.a.createElement("a",{key:"m_".concat(t),className:"nav-link",href:e.url},Object(y.d)("PAGE_".concat(t.toUpperCase()),t)):e.navigate?l.a.createElement("a",{key:"m_".concat(t),className:"nav-link",href:Object(h.a)(),onClick:function(){n.onNavigate(e)}},Object(y.d)("PAGE_".concat(t.toUpperCase()),t)):null})},n.styles={button:{padding:"3px 15px",height:32,marginTop:12,marginLeft:10,fontSize:"0.7em",borderRadius:15},logo:{marginRight:10},logoIcon:{width:36,height:36,maxWidth:40,maxHeight:40},logoText:{fontSize:20,fontWeight:700}},n}return Object(c.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){return l.a.createElement("nav",{className:"douhub-nav bg-white navbar navbar-expand-lg navbar-dark navbar-stick-dark","data-navbar":"fixed",style:{top:0}},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"navbar-left"},l.a.createElement("button",{className:"navbar-toggler",type:"button"},"\u2630"),l.a.createElement("a",{className:"navbar-brand",href:Object(h.a)(),style:this.styles.logo,onClick:this.onClickLogo},l.a.createElement("img",{className:"logo-dark",src:"/images/logos/logo.50x50.min.png",alt:"logo",style:this.styles.logoIcon})),l.a.createElement("a",{className:"logo-dark navbar-brand navbar-brand-name",href:Object(h.a)(),style:{color:f.b.blackA08,fontSize:20,fontWeight:600},onClick:this.onClickLogo},"DouHub")),l.a.createElement("section",{className:"navbar-mobile"},l.a.createElement("nav",{className:"nav nav-navbar ml-auto"},this.renderMenuItems(),l.a.createElement("button",{className:"btn btn-xs btn-primary",type:"button",style:this.styles.button,onClick:this.onClickSignIn},Object(y.d)("BTN_SIGNIN"))))))}}]),t}(_.a)),S=n(170),j=Object(b.a)(function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(o.a)(this,Object(s.a)(t).call(this,e))).styles={},n.state={},n}return Object(c.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){return l.a.createElement("footer",{className:"footer bg-gray"},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col-12 mx-auto"},l.a.createElement("div",{className:"nav nav-center"},l.a.createElement("a",{className:"nav-link",href:Object(h.a)()},"Terms of Service (ToS)"),l.a.createElement("a",{className:"nav-link",href:Object(h.a)()},"Privacy"),l.a.createElement("a",{className:"nav-link",href:Object(h.a)()},"Security"),l.a.createElement("a",{className:"nav-link",href:Object(h.a)()},"\xa9 2018 DouHub Inc. All Rights Reserved."))))))}}]),t}(_.a)),k=Object(b.a)(function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(o.a)(this,Object(s.a)(t).call(this,e))).renderSection=function(e,t){var a=n.props.data,r=a.backgroundColor?a.backgroundColor:n.props.backgroundColor;return l.a.createElement("section",{className:"section",style:[n.styles.sectionWrapper,{backgroundColor:r},t,a.style]},l.a.createElement("div",{className:"container",style:n.styles.section},e))},n.styles={sectionWrapper:{width:"100%",paddingTop:"2rem",paddingBottom:"2rem"},section:{margin:"0 auto",padding:"0 30px"},colLeft:{width:"100%",paddingRight:30,paddingBottom:60,paddingTop:60,float:"left"},colRight:{width:"100%",paddingBottom:60,paddingTop:60,float:"left"},ul:{listStyle:"none",float:"left",padding:0},li:{minWidth:100,marginRight:30,marginBottom:15,float:"left",minHeight:60},listImg:{width:120,opacity:.6,marginTop:10},descLine:{fontSize:"1.125rem",float:"left",marginBottom:15,width:"100%",lineHeight:1.3},descLineSmall:{float:"left",marginBottom:10,width:"100%",fontSize:"0.8rem",lineHeight:1.3},bulletLine:{paddingLeft:10,display:"flex"},bulletLineB:{fontSize:20,float:"left",marginRight:10},bulletLineC:{fontSize:16,float:"left"},image:{width:"100%"}},n}return Object(c.a)(t,e),t}(_.a)),D=Object(b.a)(function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(o.a)(this,Object(s.a)(t).call(this,e))).renderList=function(e){var t=0;return v.a.map(e,function(e){return t++,l.a.createElement("li",{key:"lst".concat(t),style:n.styles.li},l.a.createElement("a",{href:e.link,target:"_blank"},l.a.createElement("img",{src:e.iconUrl,title:e.name,style:[n.styles.listImg,{marginTop:0}]})))})},n.styles=Object(E.n)([n.styles,{}]),n}return Object(c.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props.data;return e?this.renderSection(l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col-md-6"},l.a.createElement("div",{style:[this.styles.colLeft,{color:f.b.blackA08}]},l.a.createElement("h2",null,l.a.createElement("strong",null,e.title)),l.a.createElement("br",null),l.a.createElement("p",{className:"lead"},e.line1),l.a.createElement("p",{className:"lead"},e.line2))),l.a.createElement("div",{className:"col-md-6"},l.a.createElement("div",{style:this.styles.colRight},l.a.createElement("ul",{style:this.styles.ul},this.renderList(e.list))))))):null}}]),t}(k)),M=Object(b.a)(function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(o.a)(this,Object(s.a)(t).call(this,e))).styles=Object(E.n)([n.styles,{sectionAngledEdge:{backgroundColor:f.b.blackA005,borderTop:"none",borderBottom:"none",paddingTop:20,paddingBottom:40,clipPath:"polygon(0 0, 3000px 0, 3000px 30%, 0 100%)"},colLeft:{width:"100%",paddingRight:30,paddingBottom:60,paddingTop:60,float:"left"},sectionAngledEdgeTitle:{fontSize:"4rem",fontWeight:500,textAlign:"left",paddingRight:20,lineHeight:1.3,paddingTop:0,paddingBottom:0,marginBottom:30,color:Object(f.c)("red",700)},colRight:{width:"100%",paddingBottom:50,paddingTop:30,float:"left",color:f.b.blackA08,paddingLeft:30}}]),n.state={},n}return Object(c.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props.data;return e?this.renderSection(l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col-md-4",style:{display:"flex",flexDirection:"column"}},l.a.createElement("p",{style:{flex:1,marginBottom:0}}),l.a.createElement("h2",{style:[this.styles.colLeft,this.styles.sectionAngledEdgeTitle]},e.title),l.a.createElement("p",{style:{flex:1,marginBottom:0}})),l.a.createElement("div",{className:"col-md-8"},l.a.createElement("div",{style:this.styles.colRight},l.a.createElement("p",{className:"lead"},l.a.createElement("span",{style:this.styles.descLine},e.content),e.subContent?l.a.createElement("br",null):null,e.subContent?l.a.createElement("span",{style:this.styles.descLineSmall},e.subContent):null)))),this.styles.sectionAngledEdge):null}}]),t}(k)),T=n(173),x=Object(b.a)(function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(o.a)(this,Object(s.a)(t).call(this,e))).renderMedia=function(e){return l.a.createElement("img",{style:n.styles.image,src:e.imageUrl,alt:e.imageAlt})},n.renderLines=function(e){if(!v.a.isArray(e.lines))return null;var t=0,a=v.a.map(e.lines,function(e){return t++,l.a.createElement("span",{key:"".concat(n.sectionId,"-line-").concat(t),style:n.styles.descLine},e)});return t++,a.length>0&&a.push(l.a.createElement("span",{key:"".concat(n.sectionId,"-line-").concat(t),style:[n.styles.descLine]},"\xa0")),a},n.renderBullets=function(e){if(!v.a.isArray(e.bullets))return null;var t=0,a=v.a.map(e.bullets,function(e){return t++,l.a.createElement("p",{key:"".concat(n.sectionId,"-line-bullet-").concat(t),style:[n.styles.descLine,n.styles.bulletLine]},l.a.createElement("i",{style:n.styles.bulletLineB,className:"icon-quote"}),l.a.createElement("span",{style:n.styles.bulletLineC},e))});return t++,a.length>0&&a.push(l.a.createElement("p",{key:"".concat(n.sectionId,"-line-bullet-").concat(t),style:[n.styles.descLine]},"\xa0")),a},n.renderContent=function(e){return l.a.createElement(l.a.Fragment,null,l.a.createElement("h2",null,l.a.createElement("strong",{style:n.styles.title},e.title)),l.a.createElement("br",null),l.a.createElement("div",{className:"lead"},n.renderLines(e),n.renderBullets(e),e.quote?l.a.createElement("blockquote",{style:n.styles.descLine},e.quote):null,e.quoteAuthorName?l.a.createElement("span",{style:[n.styles.descLineSmall,{marginTop:10}]},l.a.createElement("b",null,e.quoteAuthorName),l.a.createElement("br",null),e.quoteAuthorTitle):null))},n.styles=Object(E.n)([n.styles,{colLeft:{width:"100%",paddingRight:30,paddingBottom:60,paddingTop:60,float:"left"},colRight:{width:"100%",paddingBottom:60,paddingTop:60,float:"left"},title:{fontSize:"2.5rem",lineHeight:1.3}}]),n.sectionId=Object(E.o)(),n.state={},n}return Object(c.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props.data;return e?this.renderSection(l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col-lg-6"},l.a.createElement("div",{style:[this.styles.colLeft]},"LeftMedia"===e.type?this.renderMedia(e):this.renderContent(e))),l.a.createElement("div",{className:"col-lg-6"},l.a.createElement("div",{style:[this.styles.colRight,{color:f.b.blackA08}]},"RightMedia"===e.type?this.renderMedia(e):this.renderContent(e))))):null}}]),t}(k)),P=Object(T.a)(x),U=Object(b.a)(function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(o.a)(this,Object(s.a)(t).call(this,e))).renderSections=function(){var e=Object(y.b)().site.home.sections,t=f.b.white;return v.a.map(e,function(e){switch(e.type){case"Companies":return l.a.createElement(D,{key:"section_".concat(Object(E.o)()),backgroundColor:f.b.white,data:e});case"AngledEdge":return t=f.b.blackA005,l.a.createElement(M,{key:"section_".concat(Object(E.o)()),backgroundColor:f.b.white,data:e});case"LeftMedia":case"RightMedia":return t=t==f.b.white?f.b.blackA005:f.b.white,l.a.createElement(P,{key:"section_".concat(Object(E.o)()),backgroundColor:t,data:e});default:return null}})},n.styles={},n}return Object(c.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){return l.a.createElement(l.a.Fragment,null,this.renderSections())}}]),t}(_.a)),I=function(e){function t(){return Object(a.a)(this,t),Object(o.a)(this,Object(s.a)(t).apply(this,arguments))}return Object(c.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement(C,{type:"smart"}),l.a.createElement(S.a,null),l.a.createElement("main",{className:"main-content"},l.a.createElement(U,null)),l.a.createElement(j,null))}}]),t}(i.Component),B=n(27),F=Object(b.a)(function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(o.a)(this,Object(s.a)(t).call(this,e))).updateDimensions=function(){n.setState({windowWidth:window.innerWidth,windowHeight:window.innerHeight})},n.styles={panelWrapper:{width:"100%",padding:30},panelSection:{maxWidth:1040,margin:"0 auto",padding:30}},n}return Object(c.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.updateDimensions(),window.addEventListener("resize",this.updateDimensions)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateDimensions)}},{key:"render",value:function(){return l.a.createElement("div",{style:this.styles.panelWrapper},l.a.createElement("div",{className:"container",style:this.styles.panelSection},l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col-12",style:{textAlign:"center"}},this.renderHeader())),l.a.createElement("div",{className:"card"},this.renderContent())))}}]),t}(_.a)),L=Object(b.a)(function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(o.a)(this,Object(s.a)(t).call(this,e))).updateDimensions=function(){n.setState({windowWidth:window.innerWidth,windowHeight:window.innerHeight})},n.goToSignUp=function(){Object(y.b)().site.prelaunch&&Object(g.c)("letmeknow")},n.showAll=function(){n.setState({showAll:!n.state.showAll})},n.styles=Object(E.n)([n.styles,{header:{fontSize:20,fontWeight:"bold"},headerCell:{textAlign:"center",borderRight:"solid 1px "+f.b.blackA01,padding:10},headerCellFirst:{textAlign:"right",borderLeft:"solid 1px "+f.b.blackA01},headerPrice:{fontSize:28,textAlign:"center",paddingTop:0},section:{borderTop:"solid 1px "+f.b.blackA01,borderLeft:"solid 1px "+f.b.blackA01,borderRight:"solid 1px "+f.b.blackA01,backgroundColor:f.b.blackA005,fontWeight:"bold",fontSize:14},sectionCell:{padding:10},row:{borderTop:"solid 1px "+f.b.blackA01},cell:{padding:10,borderRight:"solid 1px "+f.b.blackA01,fontSize:14},cellFirst:{fontSize:14,textAlign:"right",borderLeft:"solid 1px "+f.b.blackA01},cellSub:{fontSize:10},checked:{fontSize:20,color:B.a.success},bottomCell:{borderBottom:"solid 1px "+f.b.blackA01},showAllLink:{cursor:"pointer",padding:"5px 0",float:"right"},showAllButton:{cursor:"pointer",marginTop:5,marginBottom:5,width:"100%"},signUpButton:{margin:"5px 0"}}]),n.state={showAll:!1},n}return Object(c.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.updateDimensions(),window.addEventListener("resize",this.updateDimensions)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateDimensions)}},{key:"renderContent",value:function(){var e=this,t=v.a.isNumber(this.state.windowWidth)?this.state.windowWidth:Object(g.a)().width,n=t<650?"small":t<850?"middle":"large",a="small"==n?{width:"50%",maxWidth:"50%",minWidth:"50%"}:"middle"==n?{width:"25%",maxWidth:"25%",minWidth:"25%"}:{},r=[];return r.push({type:"header",textAlign:"center",content:"",p1:"Free",p2:"Standard",p3:"Plus",p4:"Enterprise",p0Style:{borderLeft:"none"},p1Style:{paddingBottom:0,borderTop:"solid 1px "+f.b.blackA01},p2Style:{paddingBottom:0,borderTop:"solid 1px "+f.b.blackA01},p3Style:{paddingBottom:0,borderTop:"solid 1px "+f.b.blackA01},p4Style:{paddingBottom:0,borderTop:"solid 1px "+f.b.blackA01}}),r.push({type:"headerPrice",textAlign:"center",content:"",p1:"$0",p2:"$8.5",p3:"$12.5",p4:"$15.5",p0Style:{borderLeft:"none"},p2Style:{color:B.a.success}}),r.push({type:"row",textAlign:"center",content:"",p1:"",p2:"Per active user, per month, billed annually",p3:"Per active user, per month, billed annually",p4:"Per active user, per month, billed annually"}),r.push({type:"row",textAlign:"center",content:"",p1:"",p2:"$10 billed monthly",p3:"$15 billed monthly",p4:"$18 billed monthly"}),r.push({type:"row",textAlign:"center",content:"",p1:l.a.createElement("div",{style:{textAlign:"middle",width:"100%"}},l.a.createElement("button",{className:"btn btn-round btn-primary",onClick:this.goToSignUp,style:this.styles.signUpButton},"Start Now")),p2:l.a.createElement("div",{style:{textAlign:"middle",width:"100%"}},l.a.createElement("button",{className:"btn btn-round btn-success",onClick:this.goToSignUp,style:this.styles.signUpButton},"Free Trial")),p3:l.a.createElement("div",{style:{textAlign:"middle",width:"100%"}},l.a.createElement("button",{className:"btn btn-round btn-info",onClick:this.goToSignUp,style:this.styles.signUpButton},"Free Trial")),p4:l.a.createElement("div",{style:{textAlign:"middle",width:"100%"}},l.a.createElement("button",{className:"btn btn-round btn-info",onClick:this.goToSignUp,style:this.styles.signUpButton},"Free Trial"))}),r.push({type:"section",style:{backgroundColor:f.b.white},content:l.a.createElement("button",{className:"btn btn-light",onClick:this.showAll,style:this.styles.showAllButton},"Toggle all features")}),r.push({type:"section",content:"Users"}),r.push({type:"row",content:"Min. Users (/org)",p1:"1",p2:"3",p3:"5",p4:"8"}),r.push({type:"row",content:"Users (/org)",p1:"Max. 20",p2:"Unlimited",p3:"Unlimited",p4:"Unlimited"}),r.push({type:"row",content:"Knowledge Admins (/org)",p1:"Max. 1",p2:"Max. 10",p3:"Unlimited",p4:"Unlimited"}),r.push({type:"row",content:"Knowledge Experts (/org)",p1:"Max. 3",p2:"Unlimited",p3:"Unlimited",p4:"Unlimited"}),r.push({type:"section",content:"Category Management"}),r.push({type:"row",content:"Count (/org)",p1:"Max. 20",p2:"Max. 100",p3:"Unlimited",p4:"Unlimited"}),r.push({type:"row",content:"Category Levels",p1:"Max. 2",p2:"Max. 3",p3:"Max. 3",p4:"Max. 3"}),r.push({type:"row",content:"Multi-Category Filtering",p1:"",p2:"X",p3:"X",p4:"X"}),r.push({type:"section",content:[l.a.createElement("div",{key:"div",style:{float:"left"}},"Knowledge Management (Card & List)"),l.a.createElement("button",{key:"button",className:"btn btn-sm btn-link",onClick:this.showAll,style:this.styles.showAllLink},"Toggle all features")]}),r.push({type:"row",content:"Count (/org)",p1:"Max. 100",p2:"Unlimited",p3:"Unlimited",p4:"Unlimited"}),r.push({type:"row",content:"Category & Tag",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Advanced Search Engine",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Comprehensive Filtering System",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"AI-based Recommendation System",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Related Knowledge Defination",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Basic Editing",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Advanced Editing",p1:"",p2:"X",p3:"X",p4:"X"}),r.push({type:"row",content:"Web Content Loading",p1:"",p2:"X",p3:"X",p4:"X"}),r.push({type:"row",content:"Video Support",p1:"X",p2:"X",p3:"X",p4:"X"}),r.push({type:"row",content:"YouTube",p1:"X",p2:"X",p3:"X",p4:"X",p0Style:this.styles.cellSub,hide:!0}),r.push({type:"row",content:"YouKu",p1:"X",p2:"X",p3:"X",p4:"X",p0Style:this.styles.cellSub,hide:!0}),r.push({type:"row",content:"Vimeo",p1:"X",p2:"X",p3:"X",p4:"X",p0Style:this.styles.cellSub,hide:!0}),r.push({type:"row",content:"Private Video (Upload & Playback)",p1:"",p2:"X",p3:"X",p4:"X",p0Style:this.styles.cellSub}),r.push({type:"row",content:"Photo Support",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Publish to Internet",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Learning Tasks",p1:"",p2:"X",p3:"X",p4:"X"}),r.push({type:"row",content:"Social Sharing",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Finished, Favoritated & Bookmarked",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Advanced Security Control",p1:"",p2:"X",p3:"X",p4:"X"}),r.push({type:"row",content:"Context Form",p1:"",p2:"Max. 10 Fields",p3:"Unlimited",p4:"Unlimited"}),r.push({type:"row",content:"Quiz",p1:"Max. 1 Question",p2:"Unlimited",p3:"Unlimited",p4:"Unlimited"}),r.push({type:"row",content:"Exam",p1:"",p2:"",p3:"X",p4:"X"}),r.push({type:"row",content:"Activities",p1:"Latest 7 days",p2:"Latest 30 days",p3:"All",p4:"All"}),r.push({type:"row",content:"Version Control",p1:"",p2:"",p3:"X",p4:"X"}),r.push({type:"section",content:"Resource Management"}),r.push({type:"row",content:"Photo Management",p1:"X",p2:"X",p3:"X",p4:"X"}),r.push({type:"row",content:"Document Management",p1:"X",p2:"X",p3:"X",p4:"X"}),r.push({type:"row",content:"Video Management",p1:"X",p2:"X",p3:"X",p4:"X"}),r.push({type:"section",content:[l.a.createElement("div",{key:"div",style:{float:"left"}},"Organization & Users"),l.a.createElement("button",{key:"button",className:"btn btn-sm btn-link",onClick:this.showAll,style:this.styles.showAllLink},"Toggle all features")]}),r.push({type:"row",content:"Organization Management",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"User Management",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"User Profile Management",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Role-based Security",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Team Management (/org)",p1:"Max. 3",p2:"Max. 100",p3:"Unlimited",p4:"Unlimited"}),r.push({type:"row",content:"Gamification System",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Knowledge Score",p1:"X",p2:"X",p3:"X",p4:"X",p0Style:this.styles.cellSub,hide:!0}),r.push({type:"row",content:"Knowledge Level",p1:"X",p2:"X",p3:"X",p4:"X",p0Style:this.styles.cellSub,hide:!0}),r.push({type:"row",content:"Leaderboard",p1:"X",p2:"X",p3:"X",p4:"X",p0Style:this.styles.cellSub,hide:!0}),r.push({type:"section",content:[l.a.createElement("div",{key:"div",style:{float:"left"}},"Mobile App"),l.a.createElement("button",{key:"button",className:"btn btn-sm btn-link",onClick:this.showAll,style:this.styles.showAllLink},"Toggle all features")]}),r.push({type:"row",content:"Create knowledge cards (photo, video & text)",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Query knowledge cards (keywords, tags & categories)",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Realtime messaging with experts & team members",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Reinforcement Learning",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Recommendatrions",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Learning Tasks",p1:"",p2:"X",p3:"X",p4:"X"}),r.push({type:"row",content:"Notifications",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"section",content:[l.a.createElement("div",{key:"div",style:{float:"left"}},"Knowledge Assistant (ChatBot)"),l.a.createElement("button",{key:"button",className:"btn btn-sm btn-link",onClick:this.showAll,style:this.styles.showAllLink},"Toggle all features")]}),r.push({type:"row",content:"Search knowledges by keywords",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Reinforcement Learning",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Notifications",p1:"X",p2:"X",p3:"X",p4:"X",hide:!0}),r.push({type:"row",content:"Supported Platforms (/user)",p1:"Max. 1 platform",p2:"All Platforms",p3:"All Platforms",p4:"All Platforms"}),r.push({type:"section",content:"Storage (Data, Video, Photo, Document)"}),r.push({type:"row",content:"Included /org/mo",p1:"100MB",p2:"User Count * 1 GB",p3:"User Count * 2 GB",p4:"User Count * 3 GB"}),r.push({type:"row",content:"Included /user/mo",p1:"",p2:"1 GB",p3:"2 GB",p4:"3 GB"}),r.push({type:"row",content:"Overflow /org/mon",p1:"",p2:"$1/GB",p3:"$1/GB",p4:"$1/GB"}),r.push({type:"section",content:"Others"}),r.push({type:"row",content:"Compliance Exports",p1:"",p2:"",p3:"X",p4:"X"}),r.push({type:"row",content:"SSO and Provisioning",p1:"",p2:"",p3:"X",p4:"X"}),r.push({type:"row",content:"99.99% guaranteed uptime SLA",p1:"",p2:"",p3:"X",p4:"X"}),r.push({type:"row",content:"Customer Support",p1:"Online & Email",p2:"Priority Support",p3:"24/7 Support",p4:"24/7 Support"}),r.push({type:"row",content:"Encryption at rest",p1:"",p2:"",p3:"X",p4:"X"}),r.push({type:"row",content:"Your own sub-domain (e.g. yourname.douhub.com)",p1:"",p2:"$10/mo",p3:"Free",p4:"Free"}),r.push({type:"row",content:"Your own domain (e.g. knowledge.yourdomain.com)",p1:"",p2:"$200 setup + $50/mo",p3:"$200 setup + $50/mo",p4:"$200 setup + $50/mo"}),r.push({type:"row",content:"Dedicated Server & Database",p1:"",p2:"Contact Us",p3:"Contact Us",p4:"Contact Us"}),r.push({type:"row",content:"Platform APIs & Integration",p1:"",p2:"Contact Us",p3:"Contact Us",p4:"Contact Us"}),r.push({type:"row",content:"Customization",p1:"",p2:"Contact Us",p3:"Contact Us",p4:"Contact Us"}),r.push({type:"section",style:{backgroundColor:f.b.white},content:l.a.createElement("button",{className:"btn btn-light",onClick:this.showAll,style:this.styles.showAllButton},"Show all features")}),r.push({type:"row",textAlign:"center",content:"",p1:l.a.createElement("div",{style:{textAlign:"middle",width:"100%"}},l.a.createElement("button",{className:"btn btn-round btn-primary",onClick:this.goToSignUp,style:this.styles.signUpButton},"Start Now")),p2:l.a.createElement("div",{style:{textAlign:"middle",width:"100%"}},l.a.createElement("button",{className:"btn btn-round btn-success",onClick:this.goToSignUp,style:this.styles.signUpButton},"Free Trial")),p3:l.a.createElement("div",{style:{textAlign:"middle",width:"100%"}},l.a.createElement("button",{className:"btn btn-round btn-info",onClick:this.goToSignUp,style:this.styles.signUpButton},"Free Trial")),p4:l.a.createElement("div",{style:{textAlign:"middle",width:"100%"}},l.a.createElement("button",{className:"btn btn-round btn-info",onClick:this.goToSignUp,style:this.styles.signUpButton},"Free Trial"))}),r.push({type:"bottom"}),v.a.map(r,function(t){var r=t.textAlign?t.textAlign:"right",o=Object(E.o)();switch(t.p2Style?t.p2Style.backgroundColor||(t.p2Style.backgroundColor=f.b.greenFFA01):t.p2Style={backgroundColor:f.b.greenFFA01},t.type){case"header":return t.hide&&!e.state.showAll?null:l.a.createElement("div",{key:o,className:"row",style:e.styles.header},l.a.createElement("div",{className:"col-md-4 col-sm-4",style:[e.styles.headerCell,e.styles.headerCellFirst,a,t.p0Style]},t.content),"small"!=n?l.a.createElement("div",{className:"col-md-2 col-sm-2",style:[e.styles.headerCell,{textAlign:r},a,t.p1Style]},t.p1):null,l.a.createElement("div",{className:"col-md-2 ol-sm-2",style:[e.styles.headerCell,{textAlign:r},a,t.p2Style]},t.p2),"large"==n?l.a.createElement("div",{className:"col-md-2 col-sm-2",style:[e.styles.headerCell,{textAlign:r},a,t.p3Style]},t.p3):null,"small"!=n?l.a.createElement("div",{className:"col-md-2 col-sm-2",style:[e.styles.headerCell,{textAlign:r},a,t.p4Style]},t.p4):null);case"headerPrice":return t.hide&&!e.state.showAll?null:l.a.createElement("div",{key:o,className:"row",style:e.styles.header},l.a.createElement("div",{className:"col-md-4 col-sm-4",style:[e.styles.headerCell,e.styles.headerCellFirst,a,t.p0Style]},t.content),"small"!=n?l.a.createElement("div",{className:"col-md-2 col-sm-2",style:[e.styles.headerCell,e.styles.headerPrice,{textAlign:r},a,t.p1Style]},t.p1):null,l.a.createElement("div",{className:"col-md-2 col-sm-2",style:[e.styles.headerCell,e.styles.headerPrice,{textAlign:r},a,t.p2Style]},t.p2),"large"==n?l.a.createElement("div",{className:"col-md-2 col-sm-2",style:[e.styles.headerCell,e.styles.headerPrice,{textAlign:r},a,t.p3Style]},t.p3):null,"small"!=n?l.a.createElement("div",{className:"col-md-2 col-sm-2",style:[e.styles.headerCell,e.styles.headerPrice,{textAlign:r},a,t.p4Style]},t.p4):null);case"section":return t.hide&&!e.state.showAll?null:l.a.createElement("div",{key:o,className:"row",style:[e.styles.section,t.style]},l.a.createElement("div",{className:"col-md-12",style:e.styles.sectionCell},t.content));case"bottom":return t.hide&&!e.state.showAll?null:l.a.createElement("div",{key:o,className:"row",style:e.styles.bottom},l.a.createElement("div",{className:"col-md-12",style:e.styles.bottomCell}));default:return t.p1&&!v.a.isObject(t.p1)&&"x"==t.p1.toLowerCase()&&(t.p1=l.a.createElement("span",{className:"materialicons select",style:e.styles.checked})),t.p2&&!v.a.isObject(t.p2)&&"x"==t.p2.toLowerCase()&&(t.p2=l.a.createElement("span",{className:"materialicons select",style:e.styles.checked})),t.p3&&!v.a.isObject(t.p3)&&"x"==t.p3.toLowerCase()&&(t.p3=l.a.createElement("span",{className:"materialicons select",style:e.styles.checked})),t.p4&&!v.a.isObject(t.p4)&&"x"==t.p4.toLowerCase()&&(t.p4=l.a.createElement("span",{className:"materialicons select",style:e.styles.checked})),t.hide&&!e.state.showAll?null:l.a.createElement("div",{key:o,className:"row",style:e.styles.row},l.a.createElement("div",{className:"col-md-4 col-sm-4",style:[e.styles.cell,e.styles.cellFirst,a,t.p0Style]},t.content),"small"!=n?l.a.createElement("div",{className:"col-md-2 col-sm-2",style:[e.styles.cell,{textAlign:r},a,t.p1Style]},t.p1):null,l.a.createElement("div",{className:"col-md-2 col-sm-2",style:[e.styles.cell,{textAlign:r},a,t.p2Style]},t.p2),"large"==n?l.a.createElement("div",{className:"col-md-2 col-sm-2",style:[e.styles.cell,{textAlign:r},a,t.p3Style]},t.p3):null,"small"!=n?l.a.createElement("div",{className:"col-md-2 col-sm-2",style:[e.styles.cell,{textAlign:r},a,t.p4Style]},t.p4):null)}})}},{key:"renderHeader",value:function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement("h1",null,"Find a plan that\u2019s right for you."),l.a.createElement("h3",null,"Or try DouHub for free. Pick a plan later."),l.a.createElement("button",{className:"btn btn-round btn-lg btn-round btn-primary mw-200",style:{marginTop:30,marginBottom:80},onClick:this.goToSignUp},"Start Now"))}}]),t}(F)),R=function(e){function t(){return Object(a.a)(this,t),Object(o.a)(this,Object(s.a)(t).apply(this,arguments))}return Object(c.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement(C,null),l.a.createElement("main",{className:"main-content",style:{marginTop:50}},l.a.createElement(L,null)),l.a.createElement(j,null))}}]),t}(i.Component),X=Object(b.a)(function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(o.a)(this,Object(s.a)(t).call(this,e))).toJSON=function(){var e={},t={};n.setState({error:null});try{t=JSON.parse(n.state.dynamoDB),e=JSON.stringify(n.processDynamoDB(t),void 0,4),n.setState({dynamoDB:JSON.stringify(t,void 0,4),json:e})}catch(a){n.setState({error:"Wrong JSON format."})}},n.toDynamoDB=function(){var e={},t={};n.setState({error:null});try{e=JSON.parse(n.state.json),t=JSON.stringify(n.processJSON(e),void 0,4),n.setState({dynamoDB:t,json:JSON.stringify(e,void 0,4)})}catch(a){n.setState({error:"Wrong DynamoDB JSON format."})}},n.processDynamoDB=function(e){var t={};for(var a in e)switch(a){case"S":t=e[a];break;case"L":t=v.a.map(e[a],function(e){return n.processDynamoDB(e)});break;case"M":t=n.processDynamoDB(e[a]);break;case"N":t=parseInt(e[a])==parseFloat(e[a])?parseInt(e[a]):parseFloat(e[a]);break;case"BOOL":t=e[a];break;default:t[a]=v.a.isObject(e[a])?n.processDynamoDB(e[a]):e[a]}return t},n.processJSON=function(e){var t={};for(var a in e){var r=e[a];v.a.isNumber(r)?t[a]={N:"".concat(r)}:v.a.isBoolean(r)?t[a]={BOOL:r}:v.a.isArray(r)?t[a]={L:v.a.map(r,function(e){return v.a.isObject(e)?{M:n.processJSON(e)}:n.processValue(e)})}:v.a.isObject(r)?t[a]={M:n.processJSON(Object(E.a)(r))}:t[a]={S:r}}return t},n.processValue=function(e){return v.a.isNumber(e)?{N:"".concat(e)}:v.a.isBoolean(e)?{BOOL:e}:{S:e}},n.styles=Object(E.n)([n.styles,{textarea:{width:"100%",fontSize:12,resize:"none"}}]),n.state={windowHeight:window.innerHeight,windowWidth:window.innerWidth,json:JSON.stringify({firstName:"Gary"},void 0,4),dynamoDB:JSON.stringify({firstName:{S:"Gary"}},void 0,4)},n}return Object(c.a)(t,e),Object(r.a)(t,[{key:"renderContent",value:function(){var e=this;return l.a.createElement("div",{className:"container"},this.state.error?l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col-12"},l.a.createElement("p",{style:{color:B.a.danger}},this.state.error))):null,l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col-6"},l.a.createElement("div",{style:{float:"left"}},l.a.createElement("h3",null,"DynamoDB")),l.a.createElement("button",{className:"btn btn-xs btn-success",type:"button",style:{float:"right"},onClick:this.toJSON},"To JSON ",">")),l.a.createElement("div",{className:"col-6"},l.a.createElement("button",{className:"btn btn-xs btn-success",type:"button",style:{float:"left"},onClick:this.toDynamoDB},"<"," To DynamoDB"),l.a.createElement("div",{style:{float:"right"}},l.a.createElement("h3",null,"JSON")))),l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col-6"},l.a.createElement("textarea",{style:[this.styles.textarea,{height:this.state.windowHeight-170}],value:this.state.dynamoDB,onChange:function(t){e.setState({error:null,dynamoDB:t.target.value})}})),l.a.createElement("div",{className:"col-6"},l.a.createElement("textarea",{style:[this.styles.textarea,{height:this.state.windowHeight-170}],value:this.state.json,onChange:function(t){e.setState({error:null,json:t.target.value})}}))))}},{key:"renderHeader",value:function(){return l.a.createElement("div",{className:"container",style:{marginBottom:50,width:"100%",textAlign:"left"}},l.a.createElement("h1",null,"Convert between Plain JSON and DynamoDB JSON Format."),l.a.createElement("h5",null,"Click ",l.a.createElement("a",{style:{color:B.a.info,textDecoration:"underline"},target:"_blank",href:"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.LowLevelAPI.html"},"here")," to learn more about DynamoDB JSON."),l.a.createElement("p",null,"This is a simple tool developed and used by our developers, please email us (",l.a.createElement("a",{href:"mailto:developer@douhub.com"},"developer@douhub.com"),") for comments and bugs."))}}]),t}(F)),W=function(e){function t(){return Object(a.a)(this,t),Object(o.a)(this,Object(s.a)(t).apply(this,arguments))}return Object(c.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement(C,null),l.a.createElement("main",{className:"main-content",style:{marginTop:50}},l.a.createElement(X,null)),l.a.createElement(j,null))}}]),t}(i.Component),K=Object(b.a)(function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(o.a)(this,Object(s.a)(t).call(this,e))).toString=function(){var e={};n.setState({error:null});try{e=JSON.parse(n.state.json),n.setState({string:JSON.stringify(e).replace(/"/g,'\\"')})}catch(t){n.setState({error:"Wrong JSON format."})}},n.toJSON=function(){var e={};n.setState({error:null});try{e=JSON.parse(n.state.string.replace(/\\"/g,'"')),n.setState({json:JSON.stringify(e,void 0,4)})}catch(t){n.setState({error:"Wrong JSON format."})}},n.styles=Object(E.n)([n.styles,{textarea:{width:"100%",fontSize:12,resize:"none"}}]),n.state={windowHeight:window.innerHeight,windowWidth:window.innerWidth,json:JSON.stringify({firstName:"Gary"},void 0,4),string:'{\\"firstName\\":\\"Gary\\"}'},n}return Object(c.a)(t,e),Object(r.a)(t,[{key:"renderContent",value:function(){var e=this;return l.a.createElement("div",{className:"container"},this.state.error?l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col-12"},l.a.createElement("p",{style:{color:B.a.danger}},this.state.error))):null,l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col-6"},l.a.createElement("div",{style:{float:"left"}},l.a.createElement("h3",null,"JSON")),l.a.createElement("button",{className:"btn btn-xs btn-success",type:"button",style:{float:"right"},onClick:this.toString},"To String ",">")),l.a.createElement("div",{className:"col-6"},l.a.createElement("button",{className:"btn btn-xs btn-success",type:"button",style:{float:"left"},onClick:this.toJSON},"<"," To JSON"),l.a.createElement("div",{style:{float:"right"}},l.a.createElement("h3",null,"STRING")))),l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col-6"},l.a.createElement("textarea",{style:[this.styles.textarea,{height:this.state.windowHeight-170}],value:this.state.json,onChange:function(t){e.setState({error:null,json:t.target.value})}})),l.a.createElement("div",{className:"col-6"},l.a.createElement("textarea",{style:[this.styles.textarea,{height:this.state.windowHeight-170}],value:this.state.string,onChange:function(t){e.setState({error:null,string:t.target.value})}}))))}},{key:"renderHeader",value:function(){return l.a.createElement("div",{className:"container",style:{marginBottom:50,width:"100%",textAlign:"left"}},l.a.createElement("h1",null,"Convert JSON to String Value,."),l.a.createElement("p",null,"This is a simple tool developed and used by our developers, please email us (",l.a.createElement("a",{href:"mailto:developer@douhub.com"},"developer@douhub.com"),") for comments and bugs."))}}]),t}(F)),H=function(e){function t(){return Object(a.a)(this,t),Object(o.a)(this,Object(s.a)(t).apply(this,arguments))}return Object(c.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement(C,null),l.a.createElement("main",{className:"main-content",style:{marginTop:50}},l.a.createElement(K,null)),l.a.createElement(j,null))}}]),t}(i.Component),J=n(174),V=Object(b.a)(function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(o.a)(this,Object(s.a)(t).call(this,e))).toString=function(){n.setState({error:null});try{n.setState({string:A()("
").html(n.state.html).html().replace(/\r/g,"").replace(/\n/g,"").replace(/ +/g," ").replace(/"/g,'\\"')})}catch(e){n.setState({error:"Wrong HTML format."})}},n.toHTML=function(){n.setState({error:null});try{n.setState({html:Object(J.html_beautify)(n.state.string.replace(/\\"/g,'"'))})}catch(e){n.setState({error:"Wrong HTML format."})}},n.styles=Object(E.n)([n.styles,{textarea:{width:"100%",fontSize:12,resize:"none"}}]),n.state={windowHeight:window.innerHeight,windowWidth:window.innerWidth,html:"",string:""},n}return Object(c.a)(t,e),Object(r.a)(t,[{key:"renderContent",value:function(){var e=this;return l.a.createElement("div",{className:"container"},this.state.error?l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col-12"},l.a.createElement("p",{style:{color:B.a.danger}},this.state.error))):null,l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col-6"},l.a.createElement("div",{style:{float:"left"}},l.a.createElement("h3",null,"HTML")),l.a.createElement("button",{className:"btn btn-xs btn-success",type:"button",style:{float:"right"},onClick:this.toString},"To String ",">")),l.a.createElement("div",{className:"col-6"},l.a.createElement("button",{className:"btn btn-xs btn-success",type:"button",style:{float:"left"},onClick:this.toHTML},"<"," To HTML"),l.a.createElement("div",{style:{float:"right"}},l.a.createElement("h3",null,"STRING")))),l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col-6"},l.a.createElement("textarea",{style:[this.styles.textarea,{height:this.state.windowHeight-170}],value:this.state.html,onChange:function(t){e.setState({error:null,html:t.target.value})}})),l.a.createElement("div",{className:"col-6"},l.a.createElement("textarea",{style:[this.styles.textarea,{height:this.state.windowHeight-170}],value:this.state.string,onChange:function(t){e.setState({error:null,string:t.target.value})}}))))}},{key:"renderHeader",value:function(){return l.a.createElement("div",{className:"container",style:{marginBottom:50,width:"100%",textAlign:"left"}},l.a.createElement("h1",null,"Convert HTML to String Value,."),l.a.createElement("p",null,"This is a simple tool developed and used by our developers, please email us (",l.a.createElement("a",{href:"mailto:developer@douhub.com"},"developer@douhub.com"),") for comments and bugs."))}}]),t}(F)),z=function(e){function t(){return Object(a.a)(this,t),Object(o.a)(this,Object(s.a)(t).apply(this,arguments))}return Object(c.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement(C,null),l.a.createElement("main",{className:"main-content",style:{marginTop:50}},l.a.createElement(V,null)),l.a.createElement(j,null))}}]),t}(i.Component),G=function(e){function t(){return Object(a.a)(this,t),Object(o.a)(this,Object(s.a)(t).apply(this,arguments))}return Object(c.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){setTimeout(this.addDrift,1e3)}},{key:"addDrift",value:function(){A()("body").append('