text: import'./node_modules/core-js/modules/es.regexp.exec.js';import'./node_modules/core-js/modules/es.string.match.js';import'./node_modules/core-js/modules/es.string.includes.js';import React from'./node_modules/react/index.js';import'./node_modules/react-nyx-components/lib/Button.js';import'./node_modules/react-nyx-components/lib/Input.js';import'./node_modules/react-nyx-components/lib/Select.js';import'./node_modules/react-nyx-components/lib/Textarea.js';import'./node_modules/react-nyx-components/lib/Panel.js';import'./node_modules/react-nyx-components/lib/Label.js';import'./node_modules/react-nyx-components/lib/Link.js';import'./node_modules/react-nyx-components/lib/Loading.js';import'./node_modules/react-nyx-components/lib/Checkbox.js';import'./node_modules/react-nyx-components/lib/Radiobutton.js';import'./node_modules/react-dom/index.js';import Navbar from'./node_modules/react-nyx-components/lib/Navbar.js';import {RouterContext,pushHash}from'./Router.js';import Home from'./Home.js';import Toys from'./toys.js';class Main extends React.Component{render(){const routerState=this.context,pageMatch=routerState.hash.match(/^\/([^/?#]+)/);let page;return pageMatch&&Main.pages.includes(pageMatch[1])?page=pageMatch[1]:(""==routerState.hash||"/"==routerState.hash)&&(page="Home"),React.createElement("div",{style:{display:"flex",flexDirection:"column",height:"100%"}},React.createElement("div",{style:{padding:"5px",flexShrink:0,flexGrow:0}},React.createElement(Navbar,{selected:page,values:Main.pages,onChange:selectedPage=>pushHash(`/${selectedPage}`)})),React.createElement("div",{style:{flexShrink:1,flexGrow:1}},React.createElement(Home,null),React.createElement(Toys,null)))}}Main.pages=["Home","Toys"],Main.contextType=RouterContext;export default Main;