"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.App = void 0;
const react_1 = __importDefault(require("react"));
const react_router_dom_1 = require("react-router-dom");
const hash_browser_router_1 = require("@servicetitan/hash-browser-router");
const design_system_1 = require("@servicetitan/design-system");
const link_item_1 = require("@servicetitan/link-item");
const demo_1 = require("@servicetitan/table/dist/demo");
const demo_2 = require("@servicetitan/form/dist/demo");
const demo_3 = require("@servicetitan/confirm-navigation/dist/demo");
const page_1 = require("./page");
const fetch_log_service_1 = require("./fetch-log-service");
const confirm_1 = require("./examples/confirm");
const notifications_1 = require("./examples/notifications");
require("./app.css");
exports.App = () => (react_1.default.createElement(react_1.default.StrictMode, null,
    react_1.default.createElement(hash_browser_router_1.HashBrowserRouter, null,
        react_1.default.createElement(page_1.Page, { sidebar: react_1.default.createElement(design_system_1.Sidebar, null,
                react_1.default.createElement(design_system_1.Sidebar.Section, { padding: "y" },
                    react_1.default.createElement(design_system_1.SideNav, { title: "Runtime" },
                        react_1.default.createElement(link_item_1.SideNavLinkItem, { pathname: "/new/examples/table", exact: true }, "Table"),
                        react_1.default.createElement(link_item_1.SideNavLinkItem, { pathname: "/new/examples/table-master-detail" }, "Table (Master/Detail)"),
                        react_1.default.createElement(link_item_1.SideNavLinkItem, { pathname: "/new/examples/table-state-caching" }, "Table (State Caching)"),
                        react_1.default.createElement(link_item_1.SideNavLinkItem, { pathname: "/new/examples/confirm", exact: true }, "Confirm"),
                        react_1.default.createElement(link_item_1.SideNavLinkItem, { pathname: "/new/examples/confirm-navigation" }, "Confirm Navigation"),
                        react_1.default.createElement(link_item_1.SideNavLinkItem, { pathname: "/new/examples/file-uploader" }, "File Uploader"),
                        react_1.default.createElement(link_item_1.SideNavLinkItem, { pathname: "/new/examples/number-input" }, "Number Input"),
                        react_1.default.createElement(link_item_1.SideNavLinkItem, { pathname: "/new/examples/notifications" }, "Notifications")))), spacing: "relaxed", fullHeight: true },
            react_1.default.createElement(react_router_dom_1.Switch, null,
                react_1.default.createElement(react_router_dom_1.Route, { path: "/new/examples/table", component: demo_1.TableExample }),
                react_1.default.createElement(react_router_dom_1.Route, { path: "/new/examples/table-master-detail", component: demo_1.TableMasterDetailExample }),
                react_1.default.createElement(react_router_dom_1.Route, { path: "/new/examples/table-state-caching", component: demo_1.TableStateCachingExample }),
                react_1.default.createElement(react_router_dom_1.Route, { path: "/new/examples/confirm", component: confirm_1.ConfirmExample }),
                react_1.default.createElement(react_router_dom_1.Route, { path: "/new/examples/confirm-navigation", component: demo_3.BasicExample }),
                react_1.default.createElement(react_router_dom_1.Route, { path: "/new/examples/file-uploader", component: demo_2.FileUploaderExample }),
                react_1.default.createElement(react_router_dom_1.Route, { path: "/new/examples/number-input", component: demo_2.NumberInputExample }),
                react_1.default.createElement(react_router_dom_1.Route, { path: "/new/examples/notifications", component: notifications_1.NotificationsExample }),
                react_1.default.createElement(react_router_dom_1.Redirect, { path: "/new/examples/", to: "/new/examples/table" })),
            react_1.default.createElement(fetch_log_service_1.FetchLogService, null)))));
//# sourceMappingURL=app.js.map