tanstack_start_ts 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.wrangler/deploy/config.json +1 -0
- package/bunfig.toml +6 -0
- package/components.json +22 -0
- package/config.json +0 -0
- package/dist/client/.assetsignore +2 -0
- package/dist/client/assets/ProductCard-DbIkJAE-.js +1 -0
- package/dist/client/assets/about-AskxOruL.js +1 -0
- package/dist/client/assets/admin-BZVcAQM3.js +1 -0
- package/dist/client/assets/admin.functions--RdVcuBx.js +1 -0
- package/dist/client/assets/admin.login-QgrF_9Fp.js +1 -0
- package/dist/client/assets/affiliate-disclosure-BIAsA-HO.js +1 -0
- package/dist/client/assets/categories-D0N418mK.js +1 -0
- package/dist/client/assets/category._slug-aCaQm14E.js +1 -0
- package/dist/client/assets/contact-PhvO-V15.js +1 -0
- package/dist/client/assets/faq-BsiHWPM8.js +1 -0
- package/dist/client/assets/hero-bg-BP2eVUIX.jpg +0 -0
- package/dist/client/assets/index-BU9rnkF3.js +1 -0
- package/dist/client/assets/index-BpJWZkva.js +1 -0
- package/dist/client/assets/index-vRX-zAyq.js +1 -0
- package/dist/client/assets/login-DteE0ZGp.js +1 -0
- package/dist/client/assets/logo-pSNfLJQk.png +0 -0
- package/dist/client/assets/privacy-B_Pu7040.js +1 -0
- package/dist/client/assets/product-links-BkZ41Gv3.js +1 -0
- package/dist/client/assets/product._id-BVUysCW-.js +1 -0
- package/dist/client/assets/products.functions-cGzRziKO.js +1 -0
- package/dist/client/assets/profile-CveRcKq2.js +1 -0
- package/dist/client/assets/reset-password-ySEjItX_.js +1 -0
- package/dist/client/assets/saved-CHtdQDJF.js +1 -0
- package/dist/client/assets/search-CXWfET1y.js +1 -0
- package/dist/client/assets/signup-CEx90iuV.js +1 -0
- package/dist/client/assets/styles-DrNJG0BO.css +1 -0
- package/dist/client/assets/terms-VqJ9kX9b.js +1 -0
- package/dist/client/assets/update-password-C-d0ix5e.js +1 -0
- package/dist/client/assets/vendor-aria-hidden-DvXkyWUv.js +1 -0
- package/dist/client/assets/vendor-class-variance-authority-5VPnzWs2.js +1 -0
- package/dist/client/assets/vendor-clsx-B-dksMZM.js +1 -0
- package/dist/client/assets/vendor-cookie-es-CS0aJGDi.js +1 -0
- package/dist/client/assets/vendor-detect-node-es-l0sNRNKZ.js +1 -0
- package/dist/client/assets/vendor-floating-ui-core-BlUy28sp.js +1 -0
- package/dist/client/assets/vendor-floating-ui-dom-BxK0hn2R.js +1 -0
- package/dist/client/assets/vendor-floating-ui-react-dom-Bas3975S.js +1 -0
- package/dist/client/assets/vendor-floating-ui-utils-BfYUAVcw.js +1 -0
- package/dist/client/assets/vendor-framer-motion-BMdL-cuX.js +9 -0
- package/dist/client/assets/vendor-get-nonce-C-Z93AgS.js +1 -0
- package/dist/client/assets/vendor-iceberg-js-tWD4K6Lg.js +1 -0
- package/dist/client/assets/vendor-lovable.dev-cloud-auth-js-VuzqtJVg.js +1 -0
- package/dist/client/assets/vendor-lucide-react-b5K2fehp.js +1 -0
- package/dist/client/assets/vendor-motion-dom-BETJamZt.js +1 -0
- package/dist/client/assets/vendor-motion-utils-BuWewJbj.js +1 -0
- package/dist/client/assets/vendor-radix-ui-primitive-Dc_FVRD7.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-accordion-C22Rgxe9.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-arrow-DMHj2mKI.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-avatar-CVPBkFXg.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-collapsible-BvM-4sKX.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-collection-D9KtqmHm.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-compose-refs-Cvq0AS8Z.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-context-CAqqn5Nx.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-dialog-DZ01vOLq.js +5 -0
- package/dist/client/assets/vendor-radix-ui-react-direction-DxZwNuei.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-dismissable-layer-Dqgrs55Y.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-dropdown-menu-0uzvrqkn.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-focus-guards-DgWoZ-fP.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-focus-scope-BLIu5QaL.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-id-bpga_rLa.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-menu-D0qf2r6_.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-popper-BafIylxU.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-portal-BnAsfNCS.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-presence-C-f3UKQ2.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-primitive-zTHwXNoz.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-roving-focus-jyJB8K2E.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-slot-6LXHJrHl.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-callback-ref-E91aPc6s.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-controllable-state-Ca3eMtxa.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-effect-event-CPeX4A3c.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-escape-keydown-7n3YsXFo.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-is-hydrated-C1PY1qNv.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-layout-effect-B3AcGWPy.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-size-CXS04sct.js +1 -0
- package/dist/client/assets/vendor-react-dom-BnNs-kzm.js +9 -0
- package/dist/client/assets/vendor-react-gJPiVnX5.js +1 -0
- package/dist/client/assets/vendor-react-remove-scroll-DHKl-IMP.js +4 -0
- package/dist/client/assets/vendor-react-remove-scroll-bar-CSjdInc2.js +38 -0
- package/dist/client/assets/vendor-react-style-singleton-BqHpkgXn.js +1 -0
- package/dist/client/assets/vendor-scheduler-7OC5HNn7.js +1 -0
- package/dist/client/assets/vendor-seroval-B_Fur-nl.js +3 -0
- package/dist/client/assets/vendor-seroval-plugins-CBHnPkZJ.js +1 -0
- package/dist/client/assets/vendor-sonner-71-LdGG1.js +1 -0
- package/dist/client/assets/vendor-supabase-auth-js-DWrN-bIx.js +18 -0
- package/dist/client/assets/vendor-supabase-functions-js-uY_V-TxC.js +1 -0
- package/dist/client/assets/vendor-supabase-phoenix-BzEf37Ve.js +2 -0
- package/dist/client/assets/vendor-supabase-postgrest-js-C4rBWbCx.js +4 -0
- package/dist/client/assets/vendor-supabase-realtime-js-D6BlOYKE.js +23 -0
- package/dist/client/assets/vendor-supabase-storage-js-BG98L3Zz.js +1 -0
- package/dist/client/assets/vendor-supabase-supabase-js-DCCzdwBJ.js +1 -0
- package/dist/client/assets/vendor-tailwind-merge-Ct12j0u0.js +1 -0
- package/dist/client/assets/vendor-tanstack-history-C617CaxG.js +1 -0
- package/dist/client/assets/vendor-tanstack-query-core-7wuJJ5ZL.js +1 -0
- package/dist/client/assets/vendor-tanstack-react-query-HImzo8sX.js +1 -0
- package/dist/client/assets/vendor-tanstack-react-router-sIZLK-LU.js +1 -0
- package/dist/client/assets/vendor-tanstack-react-start-client-GiYCfWmf.js +1 -0
- package/dist/client/assets/vendor-tanstack-react-store-EvTi3ahh.js +1 -0
- package/dist/client/assets/vendor-tanstack-router-core-Cr7bYUZv.js +1 -0
- package/dist/client/assets/vendor-tanstack-start-client-core-C-00BBOu.js +2 -0
- package/dist/client/assets/vendor-tanstack-start-fn-stubs-l0sNRNKZ.js +1 -0
- package/dist/client/assets/vendor-tanstack-store-BC7mA7pq.js +1 -0
- package/dist/client/assets/vendor-tslib-Du-meQkk.js +1 -0
- package/dist/client/assets/vendor-use-callback-ref-C_fIAtot.js +1 -0
- package/dist/client/assets/vendor-use-sidecar-Bh0DDN6h.js +1 -0
- package/dist/client/assets/vendor-use-sync-external-store-ZvKHXaIn.js +1 -0
- package/dist/client/assets/vendor-vercel-analytics-DwPM5BWs.js +1 -0
- package/dist/client/assets/vendor-zod-By9teAtI.js +1 -0
- package/dist/client/robots.txt +2 -0
- package/dist/server/.dev.vars +5 -0
- package/dist/server/.vite/manifest.json +2528 -0
- package/dist/server/assets/ProductCard-CUPXy5Eo.js +149 -0
- package/dist/server/assets/_tanstack-start-manifest_v-do7vTWFD.js +4 -0
- package/dist/server/assets/about-TfKQw0Ga.js +28 -0
- package/dist/server/assets/admin-DspfJOJk.js +578 -0
- package/dist/server/assets/admin.functions-B78ppWLR.js +645 -0
- package/dist/server/assets/admin.functions-BWlKBoTL.js +93 -0
- package/dist/server/assets/admin.login-CV7QfeA6.js +139 -0
- package/dist/server/assets/affiliate-disclosure-B1wI1cDb.js +86 -0
- package/dist/server/assets/auth-middleware-Cn49MidW.js +62 -0
- package/dist/server/assets/categories-Z7jnAYZP.js +108 -0
- package/dist/server/assets/category._slug-D0XY3FGK.js +112 -0
- package/dist/server/assets/contact-IzyONsXs.js +104 -0
- package/dist/server/assets/faq-aRhB_CR3.js +133 -0
- package/dist/server/assets/hero-bg-BP2eVUIX.jpg +0 -0
- package/dist/server/assets/index-BTPHbXw9.js +221 -0
- package/dist/server/assets/index-ByJkHkrU.js +30 -0
- package/dist/server/assets/login-Dvy5Dm0f.js +175 -0
- package/dist/server/assets/logo-pSNfLJQk.png +0 -0
- package/dist/server/assets/privacy-B6Wiez1P.js +93 -0
- package/dist/server/assets/product-links-CGYEPP56.js +16 -0
- package/dist/server/assets/product._id-BpRa-1z0.js +231 -0
- package/dist/server/assets/products.functions-DSlmibYN.js +209 -0
- package/dist/server/assets/products.functions-DlHkRiqi.js +24 -0
- package/dist/server/assets/profile-B0NWzVAZ.js +314 -0
- package/dist/server/assets/reset-password-CY-rmqMr.js +115 -0
- package/dist/server/assets/saved-7FA6Dbom.js +126 -0
- package/dist/server/assets/search-Yw5c_fZa.js +329 -0
- package/dist/server/assets/signup-UPzgZo4i.js +143 -0
- package/dist/server/assets/styles-DrNJG0BO.css +1 -0
- package/dist/server/assets/terms-CMnX95bP.js +89 -0
- package/dist/server/assets/update-password-Cr94ea8n.js +131 -0
- package/dist/server/assets/vendor-aria-hidden-DPa16MWu.js +122 -0
- package/dist/server/assets/vendor-class-variance-authority-0YxJPB9Y.js +44 -0
- package/dist/server/assets/vendor-cloudflare-unenv-preset-ya0VEFBz.js +250 -0
- package/dist/server/assets/vendor-clsx-DgYk2OaC.js +16 -0
- package/dist/server/assets/vendor-cookie-es-DAoofYiI.js +44 -0
- package/dist/server/assets/vendor-detect-node-es-l0sNRNKZ.js +1 -0
- package/dist/server/assets/vendor-floating-ui-core-3tkK0THV.js +726 -0
- package/dist/server/assets/vendor-floating-ui-dom-C-cPtgJv.js +626 -0
- package/dist/server/assets/vendor-floating-ui-react-dom-CRG6gBpH.js +319 -0
- package/dist/server/assets/vendor-floating-ui-utils-DmXANH-E.js +320 -0
- package/dist/server/assets/vendor-framer-motion-X4zAkX3J.js +1979 -0
- package/dist/server/assets/vendor-get-nonce-DiSj3EHl.js +9 -0
- package/dist/server/assets/vendor-h3-v2-CCobnLY5.js +287 -0
- package/dist/server/assets/vendor-iceberg-js-bHCkXyJn.js +534 -0
- package/dist/server/assets/vendor-isbot-CZ7WjwVs.js +21 -0
- package/dist/server/assets/vendor-lovable.dev-cloud-auth-js-BE03njZw.js +180 -0
- package/dist/server/assets/vendor-lucide-react-Ddew6HYb.js +458 -0
- package/dist/server/assets/vendor-motion-dom-D2MTwGIG.js +5983 -0
- package/dist/server/assets/vendor-motion-utils-LJlIFN6m.js +161 -0
- package/dist/server/assets/vendor-radix-ui-primitive-B-mNdDrH.js +11 -0
- package/dist/server/assets/vendor-radix-ui-react-accordion-1Izf6x00.js +308 -0
- package/dist/server/assets/vendor-radix-ui-react-arrow-B882lnFK.js +23 -0
- package/dist/server/assets/vendor-radix-ui-react-avatar-BVgZt2Ab.js +209 -0
- package/dist/server/assets/vendor-radix-ui-react-collapsible-DCBbMZiS.js +147 -0
- package/dist/server/assets/vendor-radix-ui-react-collection-BZ2srfgU.js +150 -0
- package/dist/server/assets/vendor-radix-ui-react-compose-refs-D3qsKVk1.js +39 -0
- package/dist/server/assets/vendor-radix-ui-react-context-BVoNDLue.js +78 -0
- package/dist/server/assets/vendor-radix-ui-react-dialog-DlxMaNYK.js +406 -0
- package/dist/server/assets/vendor-radix-ui-react-direction-Dt_WDL1t.js +9 -0
- package/dist/server/assets/vendor-radix-ui-react-dismissable-layer-CjsuPohV.js +210 -0
- package/dist/server/assets/vendor-radix-ui-react-dropdown-menu-DVxKumY8.js +263 -0
- package/dist/server/assets/vendor-radix-ui-react-focus-guards-D_6NoePE.js +29 -0
- package/dist/server/assets/vendor-radix-ui-react-focus-scope-DEIhTJJH.js +206 -0
- package/dist/server/assets/vendor-radix-ui-react-id-DFFpgh6m.js +14 -0
- package/dist/server/assets/vendor-radix-ui-react-menu-CiTMLwjT.js +893 -0
- package/dist/server/assets/vendor-radix-ui-react-popper-23Ye2Vyc.js +286 -0
- package/dist/server/assets/vendor-radix-ui-react-portal-CZCH5uPk.js +16 -0
- package/dist/server/assets/vendor-radix-ui-react-presence-CaAULlDU.js +128 -0
- package/dist/server/assets/vendor-radix-ui-react-primitive-BeOk3UYa.js +124 -0
- package/dist/server/assets/vendor-radix-ui-react-roving-focus-DES9GR8l.js +224 -0
- package/dist/server/assets/vendor-radix-ui-react-slot-DUhZbzoH.js +103 -0
- package/dist/server/assets/vendor-radix-ui-react-use-callback-ref-BynBgohw.js +11 -0
- package/dist/server/assets/vendor-radix-ui-react-use-controllable-state-C9KpT6DG.js +69 -0
- package/dist/server/assets/vendor-radix-ui-react-use-effect-event-gpNY2xjS.js +1 -0
- package/dist/server/assets/vendor-radix-ui-react-use-escape-keydown-CcYRQ2pp.js +17 -0
- package/dist/server/assets/vendor-radix-ui-react-use-is-hydrated-D_LcBPXY.js +15 -0
- package/dist/server/assets/vendor-radix-ui-react-use-layout-effect-1LNLXAjr.js +6 -0
- package/dist/server/assets/vendor-radix-ui-react-use-size-D6fiKJQo.js +39 -0
- package/dist/server/assets/vendor-react-DvBrY0qp.js +511 -0
- package/dist/server/assets/vendor-react-dom-yvMLPM0j.js +10484 -0
- package/dist/server/assets/vendor-react-remove-scroll-BNtiEvVN.js +328 -0
- package/dist/server/assets/vendor-react-remove-scroll-bar-hLqRASRk.js +82 -0
- package/dist/server/assets/vendor-react-style-singleton-BXjcXskB.js +69 -0
- package/dist/server/assets/vendor-rou3-3NaGPdI8.js +8 -0
- package/dist/server/assets/vendor-seroval-dJyC-Zhz.js +1775 -0
- package/dist/server/assets/vendor-seroval-plugins-Pq_U2meB.js +58 -0
- package/dist/server/assets/vendor-sonner-CqbjhsRh.js +1086 -0
- package/dist/server/assets/vendor-srvx-BA-baEX9.js +6 -0
- package/dist/server/assets/vendor-supabase-auth-js-D4xjVprw.js +7602 -0
- package/dist/server/assets/vendor-supabase-functions-js-sWy4UYn1.js +322 -0
- package/dist/server/assets/vendor-supabase-phoenix-Bw3Uh2Nn.js +1777 -0
- package/dist/server/assets/vendor-supabase-postgrest-js-AO-BXa7I.js +4938 -0
- package/dist/server/assets/vendor-supabase-realtime-js-BtdNgJbm.js +2111 -0
- package/dist/server/assets/vendor-supabase-storage-js-Dk_MrPYO.js +2679 -0
- package/dist/server/assets/vendor-supabase-supabase-js-D1EEtG3j.js +697 -0
- package/dist/server/assets/vendor-tailwind-merge-BHb_obmC.js +3255 -0
- package/dist/server/assets/vendor-tanstack-history-C4pKJmkt.js +204 -0
- package/dist/server/assets/vendor-tanstack-query-core-PwwTR5ld.js +2552 -0
- package/dist/server/assets/vendor-tanstack-react-query-hhHzXAK1.js +190 -0
- package/dist/server/assets/vendor-tanstack-react-router-XzqpA65A.js +1120 -0
- package/dist/server/assets/vendor-tanstack-react-start-RvWUpvat.js +37 -0
- package/dist/server/assets/vendor-tanstack-react-start-client-gpNY2xjS.js +1 -0
- package/dist/server/assets/vendor-tanstack-react-start-server-uj_Y9pEN.js +15 -0
- package/dist/server/assets/vendor-tanstack-react-store-gpNY2xjS.js +1 -0
- package/dist/server/assets/vendor-tanstack-router-core-6wywV3KN.js +4252 -0
- package/dist/server/assets/vendor-tanstack-start-client-core-DoOKV2pA.js +1741 -0
- package/dist/server/assets/vendor-tanstack-start-fn-stubs-l0sNRNKZ.js +1 -0
- package/dist/server/assets/vendor-tanstack-start-server-core-CsAstXv7.js +1421 -0
- package/dist/server/assets/vendor-tanstack-start-storage-context-DgH9hIJT.js +17 -0
- package/dist/server/assets/vendor-tanstack-store-l0sNRNKZ.js +1 -0
- package/dist/server/assets/vendor-tslib-_8ICaZ64.js +67 -0
- package/dist/server/assets/vendor-unenv-DUvF4YIF.js +544 -0
- package/dist/server/assets/vendor-use-callback-ref-DMFDRvmi.js +66 -0
- package/dist/server/assets/vendor-use-sidecar-DG1tHua4.js +106 -0
- package/dist/server/assets/vendor-use-sync-external-store-rZ8vi0It.js +64 -0
- package/dist/server/assets/vendor-vercel-analytics-oP8BDp0L.js +168 -0
- package/dist/server/assets/vendor-zod-BRyQdbC-.js +3580 -0
- package/dist/server/index.js +158 -0
- package/dist/server/wrangler.json +1 -0
- package/enable-powershell.ps1 +7 -0
- package/eslint.config.js +41 -0
- package/lint.bat +4 -0
- package/package.json +95 -0
- package/public/robots.txt +2 -0
- package/run-npm-build.cjs +20 -0
- package/run-npm-build.js +20 -0
- package/src/assets/hero-bg.jpg +0 -0
- package/src/assets/logo.png +0 -0
- package/src/components/scrollsy/Footer.tsx +68 -0
- package/src/components/scrollsy/LiveTicker.tsx +31 -0
- package/src/components/scrollsy/Logo.tsx +28 -0
- package/src/components/scrollsy/Nav.tsx +255 -0
- package/src/components/scrollsy/ProductCard.tsx +190 -0
- package/src/components/scrollsy/ProductFilters.tsx +226 -0
- package/src/components/scrollsy/SupportWidget.tsx +197 -0
- package/src/components/ui/accordion.tsx +51 -0
- package/src/components/ui/alert-dialog.tsx +115 -0
- package/src/components/ui/alert.tsx +49 -0
- package/src/components/ui/aspect-ratio.tsx +5 -0
- package/src/components/ui/avatar.tsx +47 -0
- package/src/components/ui/badge.tsx +32 -0
- package/src/components/ui/breadcrumb.tsx +101 -0
- package/src/components/ui/button.tsx +49 -0
- package/src/components/ui/calendar.tsx +177 -0
- package/src/components/ui/card.tsx +55 -0
- package/src/components/ui/carousel.tsx +240 -0
- package/src/components/ui/chart.tsx +331 -0
- package/src/components/ui/checkbox.tsx +26 -0
- package/src/components/ui/collapsible.tsx +11 -0
- package/src/components/ui/command.tsx +143 -0
- package/src/components/ui/context-menu.tsx +187 -0
- package/src/components/ui/dialog.tsx +104 -0
- package/src/components/ui/drawer.tsx +98 -0
- package/src/components/ui/dropdown-menu.tsx +188 -0
- package/src/components/ui/form.tsx +171 -0
- package/src/components/ui/hover-card.tsx +27 -0
- package/src/components/ui/input-otp.tsx +69 -0
- package/src/components/ui/input.tsx +22 -0
- package/src/components/ui/label.tsx +21 -0
- package/src/components/ui/menubar.tsx +229 -0
- package/src/components/ui/navigation-menu.tsx +120 -0
- package/src/components/ui/pagination.tsx +98 -0
- package/src/components/ui/popover.tsx +31 -0
- package/src/components/ui/progress.tsx +25 -0
- package/src/components/ui/radio-group.tsx +36 -0
- package/src/components/ui/resizable.tsx +37 -0
- package/src/components/ui/scroll-area.tsx +44 -0
- package/src/components/ui/select.tsx +152 -0
- package/src/components/ui/separator.tsx +24 -0
- package/src/components/ui/sheet.tsx +122 -0
- package/src/components/ui/sidebar.tsx +744 -0
- package/src/components/ui/skeleton.tsx +7 -0
- package/src/components/ui/slider.tsx +23 -0
- package/src/components/ui/sonner.tsx +23 -0
- package/src/components/ui/switch.tsx +27 -0
- package/src/components/ui/table.tsx +94 -0
- package/src/components/ui/tabs.tsx +53 -0
- package/src/components/ui/textarea.tsx +21 -0
- package/src/components/ui/toggle-group.tsx +57 -0
- package/src/components/ui/toggle.tsx +42 -0
- package/src/components/ui/tooltip.tsx +32 -0
- package/src/hooks/use-auth.ts +26 -0
- package/src/hooks/use-mobile.tsx +19 -0
- package/src/integrations/lovable/index.ts +41 -0
- package/src/lib/admin.functions.ts +564 -0
- package/src/lib/error-capture.ts +27 -0
- package/src/lib/error-page.ts +30 -0
- package/src/lib/product-links.ts +39 -0
- package/src/lib/products.functions.ts +101 -0
- package/src/lib/utils.ts +6 -0
- package/src/routeTree.gen.ts +480 -0
- package/src/router.tsx +16 -0
- package/src/routes/__root.tsx +177 -0
- package/src/routes/about.tsx +66 -0
- package/src/routes/admin.login.tsx +95 -0
- package/src/routes/admin.tsx +811 -0
- package/src/routes/affiliate-disclosure.tsx +35 -0
- package/src/routes/categories.tsx +57 -0
- package/src/routes/category.$slug.tsx +51 -0
- package/src/routes/contact.tsx +69 -0
- package/src/routes/faq.tsx +63 -0
- package/src/routes/index.tsx +269 -0
- package/src/routes/login.tsx +160 -0
- package/src/routes/privacy.tsx +39 -0
- package/src/routes/product.$id.tsx +212 -0
- package/src/routes/profile.tsx +393 -0
- package/src/routes/reset-password.tsx +71 -0
- package/src/routes/saved.tsx +83 -0
- package/src/routes/search.tsx +136 -0
- package/src/routes/signup.tsx +108 -0
- package/src/routes/sitemap[.]xml.ts +34 -0
- package/src/routes/terms.tsx +40 -0
- package/src/routes/update-password.tsx +91 -0
- package/src/server.ts +80 -0
- package/src/start.ts +24 -0
- package/src/styles.css +333 -0
- package/terminal-test-output.txt +1 -0
- package/tsconfig.json +27 -0
- package/vercel.json +26 -0
- package/vite.config.ts +38 -0
- package/wrangler.jsonc +7 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports, r as reactExports } from "./vendor-react-DvBrY0qp.js";
|
|
2
|
+
import { u as useNavigate, L as Link } from "./vendor-tanstack-react-router-XzqpA65A.js";
|
|
3
|
+
import { v as supabase, L as Logo } from "./vendor-tanstack-start-client-core-DoOKV2pA.js";
|
|
4
|
+
import { l as lovable } from "./index-ByJkHkrU.js";
|
|
5
|
+
import { t as toast } from "./vendor-sonner-CqbjhsRh.js";
|
|
6
|
+
import { M as Mail, l as Lock, x as Sparkles } from "./vendor-lucide-react-Ddew6HYb.js";
|
|
7
|
+
import "./vendor-tanstack-router-core-6wywV3KN.js";
|
|
8
|
+
import "./vendor-tanstack-history-C4pKJmkt.js";
|
|
9
|
+
import "./vendor-seroval-dJyC-Zhz.js";
|
|
10
|
+
import "./vendor-seroval-plugins-Pq_U2meB.js";
|
|
11
|
+
import "./vendor-cookie-es-DAoofYiI.js";
|
|
12
|
+
import "node:stream/web";
|
|
13
|
+
import "node:stream";
|
|
14
|
+
import "./vendor-react-dom-yvMLPM0j.js";
|
|
15
|
+
import "./vendor-isbot-CZ7WjwVs.js";
|
|
16
|
+
import "./vendor-tanstack-start-storage-context-DgH9hIJT.js";
|
|
17
|
+
import "node:async_hooks";
|
|
18
|
+
import "./vendor-tanstack-react-query-hhHzXAK1.js";
|
|
19
|
+
import "./vendor-tanstack-query-core-PwwTR5ld.js";
|
|
20
|
+
import "./vendor-vercel-analytics-oP8BDp0L.js";
|
|
21
|
+
import "./vendor-radix-ui-react-dropdown-menu-DVxKumY8.js";
|
|
22
|
+
import "./vendor-radix-ui-primitive-B-mNdDrH.js";
|
|
23
|
+
import "./vendor-radix-ui-react-compose-refs-D3qsKVk1.js";
|
|
24
|
+
import "./vendor-radix-ui-react-context-BVoNDLue.js";
|
|
25
|
+
import "./vendor-radix-ui-react-use-controllable-state-C9KpT6DG.js";
|
|
26
|
+
import "./vendor-radix-ui-react-use-layout-effect-1LNLXAjr.js";
|
|
27
|
+
import "./vendor-radix-ui-react-primitive-BeOk3UYa.js";
|
|
28
|
+
import "./vendor-radix-ui-react-menu-CiTMLwjT.js";
|
|
29
|
+
import "./vendor-radix-ui-react-collection-BZ2srfgU.js";
|
|
30
|
+
import "./vendor-radix-ui-react-direction-Dt_WDL1t.js";
|
|
31
|
+
import "./vendor-radix-ui-react-dismissable-layer-CjsuPohV.js";
|
|
32
|
+
import "./vendor-radix-ui-react-use-callback-ref-BynBgohw.js";
|
|
33
|
+
import "./vendor-radix-ui-react-use-escape-keydown-CcYRQ2pp.js";
|
|
34
|
+
import "./vendor-radix-ui-react-focus-guards-D_6NoePE.js";
|
|
35
|
+
import "./vendor-radix-ui-react-focus-scope-DEIhTJJH.js";
|
|
36
|
+
import "./vendor-radix-ui-react-popper-23Ye2Vyc.js";
|
|
37
|
+
import "./vendor-floating-ui-react-dom-CRG6gBpH.js";
|
|
38
|
+
import "./vendor-floating-ui-dom-C-cPtgJv.js";
|
|
39
|
+
import "./vendor-floating-ui-core-3tkK0THV.js";
|
|
40
|
+
import "./vendor-floating-ui-utils-DmXANH-E.js";
|
|
41
|
+
import "./vendor-radix-ui-react-arrow-B882lnFK.js";
|
|
42
|
+
import "./vendor-radix-ui-react-use-size-D6fiKJQo.js";
|
|
43
|
+
import "./vendor-radix-ui-react-portal-CZCH5uPk.js";
|
|
44
|
+
import "./vendor-radix-ui-react-presence-CaAULlDU.js";
|
|
45
|
+
import "./vendor-radix-ui-react-roving-focus-DES9GR8l.js";
|
|
46
|
+
import "./vendor-radix-ui-react-id-DFFpgh6m.js";
|
|
47
|
+
import "./vendor-aria-hidden-DPa16MWu.js";
|
|
48
|
+
import "./vendor-react-remove-scroll-BNtiEvVN.js";
|
|
49
|
+
import "./vendor-tslib-_8ICaZ64.js";
|
|
50
|
+
import "./vendor-react-remove-scroll-bar-hLqRASRk.js";
|
|
51
|
+
import "./vendor-react-style-singleton-BXjcXskB.js";
|
|
52
|
+
import "./vendor-get-nonce-DiSj3EHl.js";
|
|
53
|
+
import "./vendor-use-sidecar-DG1tHua4.js";
|
|
54
|
+
import "./vendor-use-callback-ref-DMFDRvmi.js";
|
|
55
|
+
import "./vendor-clsx-DgYk2OaC.js";
|
|
56
|
+
import "./vendor-tailwind-merge-BHb_obmC.js";
|
|
57
|
+
import "./vendor-radix-ui-react-avatar-BVgZt2Ab.js";
|
|
58
|
+
import "./vendor-radix-ui-react-slot-DUhZbzoH.js";
|
|
59
|
+
import "./vendor-radix-ui-react-use-is-hydrated-D_LcBPXY.js";
|
|
60
|
+
import "./vendor-use-sync-external-store-rZ8vi0It.js";
|
|
61
|
+
import "./vendor-class-variance-authority-0YxJPB9Y.js";
|
|
62
|
+
import "./vendor-radix-ui-react-dialog-DlxMaNYK.js";
|
|
63
|
+
import "./vendor-framer-motion-X4zAkX3J.js";
|
|
64
|
+
import "./vendor-motion-dom-D2MTwGIG.js";
|
|
65
|
+
import "./vendor-motion-utils-LJlIFN6m.js";
|
|
66
|
+
import "./vendor-zod-BRyQdbC-.js";
|
|
67
|
+
import "./vendor-supabase-supabase-js-D1EEtG3j.js";
|
|
68
|
+
import "./vendor-supabase-postgrest-js-AO-BXa7I.js";
|
|
69
|
+
import "./vendor-supabase-realtime-js-BtdNgJbm.js";
|
|
70
|
+
import "./vendor-supabase-phoenix-Bw3Uh2Nn.js";
|
|
71
|
+
import "./vendor-supabase-storage-js-Dk_MrPYO.js";
|
|
72
|
+
import "./vendor-iceberg-js-bHCkXyJn.js";
|
|
73
|
+
import "./vendor-supabase-auth-js-D4xjVprw.js";
|
|
74
|
+
import "./vendor-supabase-functions-js-sWy4UYn1.js";
|
|
75
|
+
import "./vendor-lovable.dev-cloud-auth-js-BE03njZw.js";
|
|
76
|
+
function Login() {
|
|
77
|
+
const nav = useNavigate();
|
|
78
|
+
const [email, setEmail] = reactExports.useState("");
|
|
79
|
+
const [password, setPassword] = reactExports.useState("");
|
|
80
|
+
const [loading, setLoading] = reactExports.useState(false);
|
|
81
|
+
reactExports.useEffect(() => {
|
|
82
|
+
supabase.auth.getSession().then(({
|
|
83
|
+
data
|
|
84
|
+
}) => {
|
|
85
|
+
if (data.session) nav({
|
|
86
|
+
to: "/"
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
}, [nav]);
|
|
90
|
+
const onEmail = async (e) => {
|
|
91
|
+
e.preventDefault();
|
|
92
|
+
setLoading(true);
|
|
93
|
+
const {
|
|
94
|
+
error
|
|
95
|
+
} = await supabase.auth.signInWithPassword({
|
|
96
|
+
email,
|
|
97
|
+
password
|
|
98
|
+
});
|
|
99
|
+
setLoading(false);
|
|
100
|
+
if (error) return toast.error(error.message);
|
|
101
|
+
toast.success("Welcome back!");
|
|
102
|
+
nav({
|
|
103
|
+
to: "/"
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
const onGoogle = async () => {
|
|
107
|
+
const result = await lovable.auth.signInWithOAuth("google", {
|
|
108
|
+
redirect_uri: window.location.origin
|
|
109
|
+
});
|
|
110
|
+
if (result.error) return toast.error("Sign-in failed");
|
|
111
|
+
if (result.redirected) return;
|
|
112
|
+
nav({
|
|
113
|
+
to: "/"
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "min-h-[80vh] flex items-center justify-center px-4 py-16", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-full max-w-md glass-strong rounded-3xl p-8 shadow-elevated animate-scale-in", children: [
|
|
117
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center mb-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Logo, { size: 40 }) }),
|
|
118
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: "font-display text-3xl font-bold text-center mt-4", children: "Welcome back" }),
|
|
119
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-center text-sm text-muted-foreground mt-1", children: "Sign in to save your favorite finds" }),
|
|
120
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("button", { onClick: onGoogle, className: "mt-6 w-full glass rounded-full py-3 font-medium text-sm hover:bg-white/10 transition flex items-center justify-center gap-2", children: [
|
|
121
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(GoogleIcon, {}),
|
|
122
|
+
" Continue with Google"
|
|
123
|
+
] }),
|
|
124
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "my-5 flex items-center gap-3 text-xs text-muted-foreground", children: [
|
|
125
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 h-px bg-white/10" }),
|
|
126
|
+
" or ",
|
|
127
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 h-px bg-white/10" })
|
|
128
|
+
] }),
|
|
129
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("form", { onSubmit: onEmail, className: "space-y-3", children: [
|
|
130
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Field, { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Mail, { className: "w-4 h-4" }), type: "email", value: email, onChange: setEmail, placeholder: "Email" }),
|
|
131
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Field, { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Lock, { className: "w-4 h-4" }), type: "password", value: password, onChange: setPassword, placeholder: "Password" }),
|
|
132
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("button", { disabled: loading, className: "btn-glow w-full rounded-full py-3 font-semibold text-sm inline-flex items-center justify-center gap-2 disabled:opacity-60", children: [
|
|
133
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Sparkles, { className: "w-4 h-4" }),
|
|
134
|
+
" ",
|
|
135
|
+
loading ? "Signing in…" : "Sign in"
|
|
136
|
+
] })
|
|
137
|
+
] }),
|
|
138
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mt-6 text-sm text-center text-muted-foreground space-y-2", children: [
|
|
139
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("p", { children: [
|
|
140
|
+
"Forgot your password?",
|
|
141
|
+
" ",
|
|
142
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: "/reset-password", className: "text-foreground font-semibold hover:text-gradient", children: "Reset it" })
|
|
143
|
+
] }),
|
|
144
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("p", { children: [
|
|
145
|
+
"New here?",
|
|
146
|
+
" ",
|
|
147
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: "/signup", className: "text-foreground font-semibold hover:text-gradient", children: "Create account" })
|
|
148
|
+
] })
|
|
149
|
+
] })
|
|
150
|
+
] }) });
|
|
151
|
+
}
|
|
152
|
+
function Field({
|
|
153
|
+
icon,
|
|
154
|
+
value,
|
|
155
|
+
onChange,
|
|
156
|
+
type = "text",
|
|
157
|
+
placeholder
|
|
158
|
+
}) {
|
|
159
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { className: "flex items-center gap-2 glass rounded-xl px-3 py-2.5", children: [
|
|
160
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-muted-foreground", children: icon }),
|
|
161
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("input", { type, value, onChange: (e) => onChange(e.target.value), placeholder, className: "flex-1 bg-transparent outline-none text-sm placeholder:text-muted-foreground" })
|
|
162
|
+
] });
|
|
163
|
+
}
|
|
164
|
+
function GoogleIcon() {
|
|
165
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 48 48", "aria-hidden": "true", children: [
|
|
166
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { fill: "#20b47c", d: "M43.6 20.5H42V20H24v8h11.3C33.7 32.7 29.3 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.9 1.2 8 3.1l5.7-5.7C34.5 6 29.5 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.3-.4-3.5z" }),
|
|
167
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { fill: "#9e0ea3", d: "M6.3 14.7l6.6 4.8C14.7 16 19 13 24 13c3.1 0 5.9 1.2 8 3.1l5.7-5.7C34.5 7 29.5 5 24 5 16.3 5 9.7 9.4 6.3 14.7z" }),
|
|
168
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { fill: "#59e9f3", d: "M24 44c5.4 0 10.3-2.1 14-5.4l-6.5-5.3C29.6 34.8 26.9 36 24 36c-5.3 0-9.7-3.3-11.3-7.9l-6.5 5C9.6 39.6 16.2 44 24 44z" }),
|
|
169
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { fill: "#e64ce6", d: "M43.6 20.5H42V20H24v8h11.3c-.8 2.3-2.3 4.2-4.2 5.6l6.5 5.3C42 35 44 30 44 24c0-1.3-.1-2.3-.4-3.5z" })
|
|
170
|
+
] });
|
|
171
|
+
}
|
|
172
|
+
export {
|
|
173
|
+
Field,
|
|
174
|
+
Login as component
|
|
175
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from "./vendor-react-DvBrY0qp.js";
|
|
2
|
+
import { P as Prose } from "./vendor-tanstack-start-client-core-DoOKV2pA.js";
|
|
3
|
+
import "./vendor-tanstack-start-storage-context-DgH9hIJT.js";
|
|
4
|
+
import "node:async_hooks";
|
|
5
|
+
import "./vendor-tanstack-router-core-6wywV3KN.js";
|
|
6
|
+
import "./vendor-tanstack-history-C4pKJmkt.js";
|
|
7
|
+
import "./vendor-seroval-dJyC-Zhz.js";
|
|
8
|
+
import "./vendor-seroval-plugins-Pq_U2meB.js";
|
|
9
|
+
import "./vendor-cookie-es-DAoofYiI.js";
|
|
10
|
+
import "node:stream/web";
|
|
11
|
+
import "node:stream";
|
|
12
|
+
import "./vendor-tanstack-react-router-XzqpA65A.js";
|
|
13
|
+
import "./vendor-react-dom-yvMLPM0j.js";
|
|
14
|
+
import "./vendor-isbot-CZ7WjwVs.js";
|
|
15
|
+
import "./vendor-tanstack-react-query-hhHzXAK1.js";
|
|
16
|
+
import "./vendor-tanstack-query-core-PwwTR5ld.js";
|
|
17
|
+
import "./vendor-vercel-analytics-oP8BDp0L.js";
|
|
18
|
+
import "./vendor-radix-ui-react-dropdown-menu-DVxKumY8.js";
|
|
19
|
+
import "./vendor-radix-ui-primitive-B-mNdDrH.js";
|
|
20
|
+
import "./vendor-radix-ui-react-compose-refs-D3qsKVk1.js";
|
|
21
|
+
import "./vendor-radix-ui-react-context-BVoNDLue.js";
|
|
22
|
+
import "./vendor-radix-ui-react-use-controllable-state-C9KpT6DG.js";
|
|
23
|
+
import "./vendor-radix-ui-react-use-layout-effect-1LNLXAjr.js";
|
|
24
|
+
import "./vendor-radix-ui-react-primitive-BeOk3UYa.js";
|
|
25
|
+
import "./vendor-radix-ui-react-menu-CiTMLwjT.js";
|
|
26
|
+
import "./vendor-radix-ui-react-collection-BZ2srfgU.js";
|
|
27
|
+
import "./vendor-radix-ui-react-direction-Dt_WDL1t.js";
|
|
28
|
+
import "./vendor-radix-ui-react-dismissable-layer-CjsuPohV.js";
|
|
29
|
+
import "./vendor-radix-ui-react-use-callback-ref-BynBgohw.js";
|
|
30
|
+
import "./vendor-radix-ui-react-use-escape-keydown-CcYRQ2pp.js";
|
|
31
|
+
import "./vendor-radix-ui-react-focus-guards-D_6NoePE.js";
|
|
32
|
+
import "./vendor-radix-ui-react-focus-scope-DEIhTJJH.js";
|
|
33
|
+
import "./vendor-radix-ui-react-popper-23Ye2Vyc.js";
|
|
34
|
+
import "./vendor-floating-ui-react-dom-CRG6gBpH.js";
|
|
35
|
+
import "./vendor-floating-ui-dom-C-cPtgJv.js";
|
|
36
|
+
import "./vendor-floating-ui-core-3tkK0THV.js";
|
|
37
|
+
import "./vendor-floating-ui-utils-DmXANH-E.js";
|
|
38
|
+
import "./vendor-radix-ui-react-arrow-B882lnFK.js";
|
|
39
|
+
import "./vendor-radix-ui-react-use-size-D6fiKJQo.js";
|
|
40
|
+
import "./vendor-radix-ui-react-portal-CZCH5uPk.js";
|
|
41
|
+
import "./vendor-radix-ui-react-presence-CaAULlDU.js";
|
|
42
|
+
import "./vendor-radix-ui-react-roving-focus-DES9GR8l.js";
|
|
43
|
+
import "./vendor-radix-ui-react-id-DFFpgh6m.js";
|
|
44
|
+
import "./vendor-aria-hidden-DPa16MWu.js";
|
|
45
|
+
import "./vendor-react-remove-scroll-BNtiEvVN.js";
|
|
46
|
+
import "./vendor-tslib-_8ICaZ64.js";
|
|
47
|
+
import "./vendor-react-remove-scroll-bar-hLqRASRk.js";
|
|
48
|
+
import "./vendor-react-style-singleton-BXjcXskB.js";
|
|
49
|
+
import "./vendor-get-nonce-DiSj3EHl.js";
|
|
50
|
+
import "./vendor-use-sidecar-DG1tHua4.js";
|
|
51
|
+
import "./vendor-use-callback-ref-DMFDRvmi.js";
|
|
52
|
+
import "./vendor-clsx-DgYk2OaC.js";
|
|
53
|
+
import "./vendor-tailwind-merge-BHb_obmC.js";
|
|
54
|
+
import "./vendor-lucide-react-Ddew6HYb.js";
|
|
55
|
+
import "./vendor-radix-ui-react-avatar-BVgZt2Ab.js";
|
|
56
|
+
import "./vendor-radix-ui-react-slot-DUhZbzoH.js";
|
|
57
|
+
import "./vendor-radix-ui-react-use-is-hydrated-D_LcBPXY.js";
|
|
58
|
+
import "./vendor-use-sync-external-store-rZ8vi0It.js";
|
|
59
|
+
import "./vendor-class-variance-authority-0YxJPB9Y.js";
|
|
60
|
+
import "./vendor-radix-ui-react-dialog-DlxMaNYK.js";
|
|
61
|
+
import "./vendor-framer-motion-X4zAkX3J.js";
|
|
62
|
+
import "./vendor-motion-dom-D2MTwGIG.js";
|
|
63
|
+
import "./vendor-motion-utils-LJlIFN6m.js";
|
|
64
|
+
import "./vendor-sonner-CqbjhsRh.js";
|
|
65
|
+
import "./vendor-zod-BRyQdbC-.js";
|
|
66
|
+
import "./vendor-supabase-supabase-js-D1EEtG3j.js";
|
|
67
|
+
import "./vendor-supabase-postgrest-js-AO-BXa7I.js";
|
|
68
|
+
import "./vendor-supabase-realtime-js-BtdNgJbm.js";
|
|
69
|
+
import "./vendor-supabase-phoenix-Bw3Uh2Nn.js";
|
|
70
|
+
import "./vendor-supabase-storage-js-Dk_MrPYO.js";
|
|
71
|
+
import "./vendor-iceberg-js-bHCkXyJn.js";
|
|
72
|
+
import "./vendor-supabase-auth-js-D4xjVprw.js";
|
|
73
|
+
import "./vendor-supabase-functions-js-sWy4UYn1.js";
|
|
74
|
+
const SplitComponent = () => /* @__PURE__ */ jsxRuntimeExports.jsxs(Prose, { title: "Privacy Policy", subtitle: "Last updated May 2026", children: [
|
|
75
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: "Your privacy matters. This policy explains what we collect and how we use it." }),
|
|
76
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { children: "Information we collect" }),
|
|
77
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { children: [
|
|
78
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: "Account info (email, display name) when you sign up." }),
|
|
79
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: "Saved items and browsing activity to personalize recommendations." }),
|
|
80
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: "Anonymous analytics (page views, clicks) to improve the product." })
|
|
81
|
+
] }),
|
|
82
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { children: "How we use it" }),
|
|
83
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: "To run Scrollsy, deliver recommendations, send transactional emails and improve the platform. We don't sell your personal data." }),
|
|
84
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { children: "Affiliate clicks" }),
|
|
85
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: "When you click an affiliate link, the destination retailer may set cookies and collect their own data per their privacy policy." }),
|
|
86
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { children: "Your choices" }),
|
|
87
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: "You can edit your profile, delete saved items, or close your account at any time from your profile page." }),
|
|
88
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { children: "Contact" }),
|
|
89
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: "Questions? Email privacy@scrollsy.app." })
|
|
90
|
+
] });
|
|
91
|
+
export {
|
|
92
|
+
SplitComponent as component
|
|
93
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function normalizeUrl(value) {
|
|
2
|
+
const trimmed = value?.trim();
|
|
3
|
+
if (!trimmed) return null;
|
|
4
|
+
if (trimmed.startsWith("//")) return `https:${trimmed}`;
|
|
5
|
+
return trimmed;
|
|
6
|
+
}
|
|
7
|
+
function resolveBuyUrl(product) {
|
|
8
|
+
return normalizeUrl(product.tracking_url) ?? normalizeUrl(product.affiliate_url) ?? normalizeUrl(product.product_url) ?? normalizeUrl(product.source_url) ?? null;
|
|
9
|
+
}
|
|
10
|
+
function resolveProductLabel(product) {
|
|
11
|
+
return product.merchant ?? product.imported_from ?? "shopping store";
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
resolveProductLabel as a,
|
|
15
|
+
resolveBuyUrl as r
|
|
16
|
+
};
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from "./vendor-react-DvBrY0qp.js";
|
|
2
|
+
import { L as Link } from "./vendor-tanstack-react-router-XzqpA65A.js";
|
|
3
|
+
import { E as notFound } from "./vendor-tanstack-router-core-6wywV3KN.js";
|
|
4
|
+
import { b as useQueryClient, a as useQuery, u as useMutation } from "./vendor-tanstack-react-query-hhHzXAK1.js";
|
|
5
|
+
import { b as getProduct } from "./products.functions-DlHkRiqi.js";
|
|
6
|
+
import { P as ProductCard } from "./ProductCard-CUPXy5Eo.js";
|
|
7
|
+
import { e as Route, w as useAuth, v as supabase } from "./vendor-tanstack-start-client-core-DoOKV2pA.js";
|
|
8
|
+
import { t as toast } from "./vendor-sonner-CqbjhsRh.js";
|
|
9
|
+
import { c as ChevronLeft, i as Flame, z as TrendingUp, B as Truck, u as ShieldCheck, E as ExternalLink, H as Heart, s as Share2 } from "./vendor-lucide-react-Ddew6HYb.js";
|
|
10
|
+
import "./vendor-react-dom-yvMLPM0j.js";
|
|
11
|
+
import "node:stream";
|
|
12
|
+
import "./vendor-isbot-CZ7WjwVs.js";
|
|
13
|
+
import "./vendor-tanstack-history-C4pKJmkt.js";
|
|
14
|
+
import "./vendor-seroval-dJyC-Zhz.js";
|
|
15
|
+
import "./vendor-seroval-plugins-Pq_U2meB.js";
|
|
16
|
+
import "./vendor-cookie-es-DAoofYiI.js";
|
|
17
|
+
import "node:stream/web";
|
|
18
|
+
import "./vendor-tanstack-query-core-PwwTR5ld.js";
|
|
19
|
+
import "./vendor-tanstack-start-server-core-CsAstXv7.js";
|
|
20
|
+
import "node:async_hooks";
|
|
21
|
+
import "./vendor-h3-v2-CCobnLY5.js";
|
|
22
|
+
import "./vendor-rou3-3NaGPdI8.js";
|
|
23
|
+
import "./vendor-srvx-BA-baEX9.js";
|
|
24
|
+
import "./vendor-tanstack-start-storage-context-DgH9hIJT.js";
|
|
25
|
+
import "./product-links-CGYEPP56.js";
|
|
26
|
+
import "./vendor-vercel-analytics-oP8BDp0L.js";
|
|
27
|
+
import "./vendor-radix-ui-react-dropdown-menu-DVxKumY8.js";
|
|
28
|
+
import "./vendor-radix-ui-primitive-B-mNdDrH.js";
|
|
29
|
+
import "./vendor-radix-ui-react-compose-refs-D3qsKVk1.js";
|
|
30
|
+
import "./vendor-radix-ui-react-context-BVoNDLue.js";
|
|
31
|
+
import "./vendor-radix-ui-react-use-controllable-state-C9KpT6DG.js";
|
|
32
|
+
import "./vendor-radix-ui-react-use-layout-effect-1LNLXAjr.js";
|
|
33
|
+
import "./vendor-radix-ui-react-primitive-BeOk3UYa.js";
|
|
34
|
+
import "./vendor-radix-ui-react-menu-CiTMLwjT.js";
|
|
35
|
+
import "./vendor-radix-ui-react-collection-BZ2srfgU.js";
|
|
36
|
+
import "./vendor-radix-ui-react-direction-Dt_WDL1t.js";
|
|
37
|
+
import "./vendor-radix-ui-react-dismissable-layer-CjsuPohV.js";
|
|
38
|
+
import "./vendor-radix-ui-react-use-callback-ref-BynBgohw.js";
|
|
39
|
+
import "./vendor-radix-ui-react-use-escape-keydown-CcYRQ2pp.js";
|
|
40
|
+
import "./vendor-radix-ui-react-focus-guards-D_6NoePE.js";
|
|
41
|
+
import "./vendor-radix-ui-react-focus-scope-DEIhTJJH.js";
|
|
42
|
+
import "./vendor-radix-ui-react-popper-23Ye2Vyc.js";
|
|
43
|
+
import "./vendor-floating-ui-react-dom-CRG6gBpH.js";
|
|
44
|
+
import "./vendor-floating-ui-dom-C-cPtgJv.js";
|
|
45
|
+
import "./vendor-floating-ui-core-3tkK0THV.js";
|
|
46
|
+
import "./vendor-floating-ui-utils-DmXANH-E.js";
|
|
47
|
+
import "./vendor-radix-ui-react-arrow-B882lnFK.js";
|
|
48
|
+
import "./vendor-radix-ui-react-use-size-D6fiKJQo.js";
|
|
49
|
+
import "./vendor-radix-ui-react-portal-CZCH5uPk.js";
|
|
50
|
+
import "./vendor-radix-ui-react-presence-CaAULlDU.js";
|
|
51
|
+
import "./vendor-radix-ui-react-roving-focus-DES9GR8l.js";
|
|
52
|
+
import "./vendor-radix-ui-react-id-DFFpgh6m.js";
|
|
53
|
+
import "./vendor-aria-hidden-DPa16MWu.js";
|
|
54
|
+
import "./vendor-react-remove-scroll-BNtiEvVN.js";
|
|
55
|
+
import "./vendor-tslib-_8ICaZ64.js";
|
|
56
|
+
import "./vendor-react-remove-scroll-bar-hLqRASRk.js";
|
|
57
|
+
import "./vendor-react-style-singleton-BXjcXskB.js";
|
|
58
|
+
import "./vendor-get-nonce-DiSj3EHl.js";
|
|
59
|
+
import "./vendor-use-sidecar-DG1tHua4.js";
|
|
60
|
+
import "./vendor-use-callback-ref-DMFDRvmi.js";
|
|
61
|
+
import "./vendor-clsx-DgYk2OaC.js";
|
|
62
|
+
import "./vendor-tailwind-merge-BHb_obmC.js";
|
|
63
|
+
import "./vendor-radix-ui-react-avatar-BVgZt2Ab.js";
|
|
64
|
+
import "./vendor-radix-ui-react-slot-DUhZbzoH.js";
|
|
65
|
+
import "./vendor-radix-ui-react-use-is-hydrated-D_LcBPXY.js";
|
|
66
|
+
import "./vendor-use-sync-external-store-rZ8vi0It.js";
|
|
67
|
+
import "./vendor-class-variance-authority-0YxJPB9Y.js";
|
|
68
|
+
import "./vendor-radix-ui-react-dialog-DlxMaNYK.js";
|
|
69
|
+
import "./vendor-framer-motion-X4zAkX3J.js";
|
|
70
|
+
import "./vendor-motion-dom-D2MTwGIG.js";
|
|
71
|
+
import "./vendor-motion-utils-LJlIFN6m.js";
|
|
72
|
+
import "./vendor-zod-BRyQdbC-.js";
|
|
73
|
+
import "./vendor-supabase-supabase-js-D1EEtG3j.js";
|
|
74
|
+
import "./vendor-supabase-postgrest-js-AO-BXa7I.js";
|
|
75
|
+
import "./vendor-supabase-realtime-js-BtdNgJbm.js";
|
|
76
|
+
import "./vendor-supabase-phoenix-Bw3Uh2Nn.js";
|
|
77
|
+
import "./vendor-supabase-storage-js-Dk_MrPYO.js";
|
|
78
|
+
import "./vendor-iceberg-js-bHCkXyJn.js";
|
|
79
|
+
import "./vendor-supabase-auth-js-D4xjVprw.js";
|
|
80
|
+
import "./vendor-supabase-functions-js-sWy4UYn1.js";
|
|
81
|
+
function ProductPage() {
|
|
82
|
+
const {
|
|
83
|
+
id
|
|
84
|
+
} = Route.useParams();
|
|
85
|
+
const {
|
|
86
|
+
user
|
|
87
|
+
} = useAuth();
|
|
88
|
+
const qc = useQueryClient();
|
|
89
|
+
const {
|
|
90
|
+
data,
|
|
91
|
+
isLoading
|
|
92
|
+
} = useQuery({
|
|
93
|
+
queryKey: ["product", id],
|
|
94
|
+
queryFn: () => getProduct({
|
|
95
|
+
data: {
|
|
96
|
+
id
|
|
97
|
+
}
|
|
98
|
+
})
|
|
99
|
+
});
|
|
100
|
+
const {
|
|
101
|
+
data: savedIds
|
|
102
|
+
} = useQuery({
|
|
103
|
+
queryKey: ["saved-ids", user?.id],
|
|
104
|
+
enabled: !!user,
|
|
105
|
+
queryFn: async () => {
|
|
106
|
+
const {
|
|
107
|
+
data: data2
|
|
108
|
+
} = await supabase.from("saved_items").select("product_id").eq("user_id", user.id);
|
|
109
|
+
return new Set((data2 ?? []).map((r) => r.product_id));
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
if (!isLoading && !data?.product) throw notFound();
|
|
113
|
+
const p = data?.product;
|
|
114
|
+
const toggleSave = useMutation({
|
|
115
|
+
mutationFn: async () => {
|
|
116
|
+
if (!user) throw new Error("login");
|
|
117
|
+
const isSaved2 = savedIds?.has(id);
|
|
118
|
+
if (isSaved2) {
|
|
119
|
+
await supabase.from("saved_items").delete().eq("user_id", user.id).eq("product_id", id);
|
|
120
|
+
} else {
|
|
121
|
+
await supabase.from("saved_items").insert({
|
|
122
|
+
user_id: user.id,
|
|
123
|
+
product_id: id
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
onSuccess: () => {
|
|
128
|
+
qc.invalidateQueries({
|
|
129
|
+
queryKey: ["saved-ids", user?.id]
|
|
130
|
+
});
|
|
131
|
+
toast.success("Updated favorites");
|
|
132
|
+
},
|
|
133
|
+
onError: (e) => {
|
|
134
|
+
if (e.message === "login") toast.error("Sign in to save items");
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
const share = async () => {
|
|
138
|
+
if (typeof navigator !== "undefined" && navigator.share) {
|
|
139
|
+
await navigator.share({
|
|
140
|
+
title: p?.title,
|
|
141
|
+
url: window.location.href
|
|
142
|
+
});
|
|
143
|
+
} else {
|
|
144
|
+
navigator.clipboard.writeText(window.location.href);
|
|
145
|
+
toast.success("Link copied");
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
if (!p) return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "px-4 max-w-7xl mx-auto pt-10", children: "Loading…" });
|
|
149
|
+
const discount = p.original_price ? Math.round((1 - Number(p.price) / Number(p.original_price)) * 100) : 0;
|
|
150
|
+
const isSaved = savedIds?.has(id) ?? false;
|
|
151
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "px-4 max-w-7xl mx-auto pt-8", children: [
|
|
152
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Link, { to: "/", className: "inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground", children: [
|
|
153
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ChevronLeft, { className: "w-4 h-4" }),
|
|
154
|
+
" Back"
|
|
155
|
+
] }),
|
|
156
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mt-6 grid md:grid-cols-2 gap-8", children: [
|
|
157
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative rounded-3xl overflow-hidden border border-white/5 bg-gradient-card", children: [
|
|
158
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: p.image_url, alt: p.title, className: "w-full h-auto object-cover" }),
|
|
159
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "absolute top-4 left-4 flex flex-col gap-2", children: [
|
|
160
|
+
discount > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "bg-gradient-brand text-white text-sm font-bold px-3 py-1.5 rounded-full", children: [
|
|
161
|
+
"-",
|
|
162
|
+
discount,
|
|
163
|
+
"% off"
|
|
164
|
+
] }),
|
|
165
|
+
p.is_hot && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "glass-strong text-xs font-semibold px-3 py-1.5 rounded-full inline-flex items-center gap-1", children: [
|
|
166
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Flame, { className: "w-3.5 h-3.5 text-brand-orange" }),
|
|
167
|
+
" Hot Deal"
|
|
168
|
+
] }),
|
|
169
|
+
p.is_trending && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "glass-strong text-xs font-semibold px-3 py-1.5 rounded-full inline-flex items-center gap-1", children: [
|
|
170
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TrendingUp, { className: "w-3.5 h-3.5 text-brand-magenta" }),
|
|
171
|
+
" Trending"
|
|
172
|
+
] })
|
|
173
|
+
] })
|
|
174
|
+
] }),
|
|
175
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-5", children: [
|
|
176
|
+
p.categories?.slug && /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: "/category/$slug", params: {
|
|
177
|
+
slug: p.categories.slug
|
|
178
|
+
}, className: "inline-flex glass rounded-full px-3 py-1 text-xs", children: p.categories.name }),
|
|
179
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: "font-display text-3xl md:text-4xl font-bold tracking-tight", children: p.title }),
|
|
180
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-muted-foreground", children: p.description }),
|
|
181
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-baseline gap-3", children: [
|
|
182
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "text-4xl font-display font-bold text-gradient", children: [
|
|
183
|
+
"$",
|
|
184
|
+
Number(p.price).toFixed(2)
|
|
185
|
+
] }),
|
|
186
|
+
p.original_price && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "text-lg text-muted-foreground line-through", children: [
|
|
187
|
+
"$",
|
|
188
|
+
Number(p.original_price).toFixed(2)
|
|
189
|
+
] })
|
|
190
|
+
] }),
|
|
191
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "glass rounded-2xl p-4 space-y-2 text-sm", children: [
|
|
192
|
+
p.shipping_info && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
193
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Truck, { className: "w-4 h-4 text-brand-magenta" }),
|
|
194
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-muted-foreground", children: p.shipping_info }),
|
|
195
|
+
p.delivery_estimate && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "text-muted-foreground", children: [
|
|
196
|
+
"· ",
|
|
197
|
+
p.delivery_estimate
|
|
198
|
+
] })
|
|
199
|
+
] }),
|
|
200
|
+
p.merchant && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
201
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ShieldCheck, { className: "w-4 h-4 text-brand-magenta" }),
|
|
202
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "text-muted-foreground", children: [
|
|
203
|
+
"Sold via ",
|
|
204
|
+
p.merchant
|
|
205
|
+
] })
|
|
206
|
+
] })
|
|
207
|
+
] }),
|
|
208
|
+
p.tags?.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-wrap gap-1.5", children: p.tags.map((t) => /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "glass rounded-full px-2.5 py-1 text-[11px] text-muted-foreground", children: [
|
|
209
|
+
"#",
|
|
210
|
+
t
|
|
211
|
+
] }, t)) }),
|
|
212
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-2 pt-2", children: [
|
|
213
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("a", { href: p.affiliate_url, target: "_blank", rel: "noopener noreferrer sponsored", className: "btn-glow flex-1 rounded-full py-3 font-semibold inline-flex items-center justify-center gap-2", children: [
|
|
214
|
+
"View Deal ",
|
|
215
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ExternalLink, { className: "w-4 h-4" })
|
|
216
|
+
] }),
|
|
217
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: () => toggleSave.mutate(), className: `glass-strong rounded-full px-4 ${isSaved ? "bg-gradient-brand border-transparent" : ""}`, "aria-label": "Save", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Heart, { className: isSaved ? "fill-white text-white" : "" }) }),
|
|
218
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: share, className: "glass-strong rounded-full px-4", "aria-label": "Share", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Share2, { className: "w-5 h-5" }) })
|
|
219
|
+
] }),
|
|
220
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-[11px] text-muted-foreground/80 pt-2", children: "Scrollsy may earn a commission from purchases through this link." })
|
|
221
|
+
] })
|
|
222
|
+
] }),
|
|
223
|
+
(data?.related ?? []).length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mt-20", children: [
|
|
224
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: "font-display text-2xl font-bold mb-6", children: "You might also love" }),
|
|
225
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4", children: data.related.map((r) => /* @__PURE__ */ jsxRuntimeExports.jsx(ProductCard, { product: r, aspect: "tall" }, r.id)) })
|
|
226
|
+
] })
|
|
227
|
+
] });
|
|
228
|
+
}
|
|
229
|
+
export {
|
|
230
|
+
ProductPage as component
|
|
231
|
+
};
|