import { jsx } from "react/jsx-runtime"; import { createInertiaApp } from "@inertiajs/react"; import createServer from "@inertiajs/react/server"; import ReactDOMServer from "react-dom/server"; async function resolvePageComponent(path, pages) { for (const p of Array.isArray(path) ? path : [path]) { const page = pages[p]; if (typeof page === "undefined") { continue; } return typeof page === "function" ? page() : page; } throw new Error(`Page not found: ${path}`); } const appName = "Soorya Carpet"; createServer( (page) => createInertiaApp({ page, render: ReactDOMServer.renderToString, title: (title) => title ? `${title} - ${appName}` : appName, resolve: (name) => resolvePageComponent( `./pages/${name}.tsx`, /* @__PURE__ */ Object.assign({ "./pages/about.tsx": () => import("./assets/about-Bpe9pve7.js"), "./pages/art.tsx": () => import("./assets/art-C_czZZ6v.js"), "./pages/auth/confirm-password.tsx": () => import("./assets/confirm-password-yJ2scxPz.js"), "./pages/auth/forgot-password.tsx": () => import("./assets/forgot-password-BNiMrYQb.js"), "./pages/auth/login.tsx": () => import("./assets/login-Bx7GyWNN.js"), "./pages/auth/register.tsx": () => import("./assets/register-5D2-Zto1.js"), "./pages/auth/reset-password.tsx": () => import("./assets/reset-password-yPQQhFaB.js"), "./pages/auth/two-factor-challenge.tsx": () => import("./assets/two-factor-challenge-C3nZjMy6.js"), "./pages/auth/verify-email.tsx": () => import("./assets/verify-email-C6dGXcHB.js"), "./pages/bespoke.tsx": () => import("./assets/bespoke-Bov4UVda.js"), "./pages/contact.tsx": () => import("./assets/contact-DiSMu-mk.js"), "./pages/dashboard.tsx": () => import("./assets/dashboard-CbiUEmKd.js"), "./pages/dashboard/carousel/add.tsx": () => import("./assets/add-S6fabe2O.js"), "./pages/dashboard/carousel/carousel.tsx": () => import("./assets/carousel-BH5ls6c-.js"), "./pages/dashboard/faq/add.tsx": () => import("./assets/add-BhcrNqMR.js"), "./pages/dashboard/faq/index.tsx": () => import("./assets/index-OpaYcuxi.js"), "./pages/dashboard/products/add.tsx": () => import("./assets/add-CPccOhjJ.js"), "./pages/dashboard/products/edit.tsx": () => import("./assets/edit-l0sNRNKZ.js"), "./pages/dashboard/products/index.tsx": () => import("./assets/index-C7ejuoa3.js"), "./pages/dashboard/testimonial.tsx": () => import("./assets/testimonial-B1EWgUPO.js"), "./pages/faq.tsx": () => import("./assets/faq-pz_F0yUl.js"), "./pages/product.tsx": () => import("./assets/product-DH6XS18R.js"), "./pages/settings/appearance.tsx": () => import("./assets/appearance-C7skoyub.js"), "./pages/settings/password.tsx": () => import("./assets/password-5nAC6NdB.js"), "./pages/settings/profile.tsx": () => import("./assets/profile-0AslOX4t.js"), "./pages/settings/two-factor.tsx": () => import("./assets/two-factor-DaA3_KAg.js"), "./pages/welcome.tsx": () => import("./assets/welcome-C5bPUp-g.js") }) ), setup: ({ App, props }) => { return /* @__PURE__ */ jsx(App, { ...props }); } }) );