PageSourceSearch

https://wplace.ai/_next/static/chunks/app/layout-019573fa56d66a91.js?dpl=dpl_BG5PYV94Pnvj4TMStLih4wpdEfY6

js wplace.ai collected 2026-10-05 13:23:36 UTC 26,689 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{713:(e,s,t)=>{Promise.resolve().then(t.t.bind(t,9324,23)),Promise.resolve().then(t.bind(t,5837)),Promise.resolve().then(t.bind(t,2070)),Promise.resolve().then(t.bind(t,2179)),Promise.resolve().then(t.bind(t,5038)),Promise.resolve().then(t.bind(t,1362)),Promise.resolve().then(t.t.bind(t,6047,23))},2070:(e,s,t)=>{"use strict";t.d(s,{GoogleAnalytics:()=>l});var a=t(5155),r=t(3554);function l(e){let{gaId:s}=e;return s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.default,{strategy:"lazyOnload",src:"https://www.googletagmanager.com/gtag/js?id=".concat(s)}),(0,a.jsx)(r.default,{strategy:"lazyOnload",id:"google-analytics",children:"\n          window.dataLayer = window.dataLayer || [];\n          function gtag(){dataLayer.push(arguments);}\n          gtag('js', new Date());\n          gtag('config', '".concat(s,"');\n        ")})]}):null}},2179:(e,s,t)=>{"use strict";t.d(s,{LayoutContent:()=>en});var a=t(5155),r=t(2115),l=t(4477);let n=(0,l.createServerReference)("7f53e30a55a9c2ae7edbb33500846d709fc47874ad",l.callServer,void 0,l.findSourceMapURL,"signOutAction");var i=t(6874),o=t.n(i),d=t(7168),c=t(6688),m=t(3052),u=t(5196),x=t(9428),f=t(3999);let h=c.bL,p=c.l9;c.YJ,c.ZL,c.Pb;let g=c.z6;r.forwardRef((e,s)=>{let{className:t,inset:r,children:l,...n}=e;return(0,a.jsxs)(c.ZP,{ref:s,className:(0,f.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",r&&"pl-8",t),...n,children:[l,(0,a.jsx)(m.A,{className:"ml-auto h-4 w-4"})]})}).displayName=c.ZP.displayName,r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(c.G5,{ref:s,className:(0,f.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r})}).displayName=c.G5.displayName;let j=r.forwardRef((e,s)=>{let{className:t,sideOffset:r=4,...l}=e;return(0,a.jsx)(c.ZL,{children:(0,a.jsx)(c.UC,{ref:s,sideOffset:r,className:(0,f.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...l})})});j.displayName=c.UC.displayName;let v=r.forwardRef((e,s)=>{let{className:t,inset:r,...l}=e;return(0,a.jsx)(c.q7,{ref:s,className:(0,f.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r&&"pl-8",t),...l})});v.displayName=c.q7.displayName,r.forwardRef((e,s)=>{let{className:t,children:r,checked:l,...n}=e;return(0,a.jsxs)(c.H_,{ref:s,className:(0,f.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:l,...n,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(c.VF,{children:(0,a.jsx)(u.A,{className:"h-4 w-4"})})}),r]})}).displayName=c.H_.displayName;let N=r.forwardRef((e,s)=>{let{className:t,children:r,...l}=e;return(0,a.jsxs)(c.hN,{ref:s,className:(0,f.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...l,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(c.VF,{children:(0,a.jsx)(x.A,{className:"h-2 w-2 fill-current"})})}),r]})});N.displayName=c.hN.displayName;let b=r.forwardRef((e,s)=>{let{className:t,inset:r,...l}=e;return(0,a.jsx)(c.JU,{ref:s,className:(0,f.cn)("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",t),...l})});b.displayName=c.JU.displayName;let y=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(c.wv,{ref:s,className:(0,f.cn)("-mx-1 my-1 h-px bg-muted",t),...r})});y.displayName=c.wv.displayName;var w=t(2098),A=t(3509),S=t(2148),C=t(1362);let z=()=>{let[e,s]=(0,r.useState)(!1),{theme:t,setTheme:l}=(0,C.D)();return((0,r.useEffect)(()=>{s(!0)},[]),e)?(0,a.jsxs)(h,{children:[(0,a.jsx)(p,{asChild:!0,children:(0,a.jsx)(d.$,{variant:"ghost",size:"sm",className:"focus-visible:ring-0 focus-visible:ring-offset-0",children:"light"===t?(0,a.jsx)(w.A,{size:16,className:"text-muted-foreground"},"light"):"dark"===t?(0,a.jsx)(A.A,{size:16,className:"text-muted-foreground"},"dark"):(0,a.jsx)(S.A,{size:16,className:"text-muted-foreground"},"system")})}),(0,a.jsx)(j,{className:"w-content",align:"start",children:(0,a.jsxs)(g,{value:t,onValueChange:e=>l(e),children:[(0,a.jsxs)(N,{className:"flex gap-2",value:"light",children:[(0,a.jsx)(w.A,{size:16,className:"text-muted-foreground"})," ",(0,a.jsx)("span",{children:"Light"})]}),(0,a.jsxs)(N,{className:"flex gap-2",value:"dark",children:[(0,a.jsx)(A.A,{size:16,className:"text-muted-foreground"})," ",(0,a.jsx)("span",{children:"Dark"})]}),(0,a.jsxs)(N,{className:"flex gap-2",value:"system",children:[(0,a.jsx)(S.A,{size:16,className:"text-muted-foreground"})," ",(0,a.jsx)("span",{children:"System"})]})]})})]}):null};var k=t(6766);function T(){return(0,a.jsxs)(o(),{href:"/",className:"flex items-center gap-2 hover:opacity-90 transition-opacity",children:[(0,a.jsx)(k.default,{src:"/images/logo.png",alt:"Wplace.ai logo",width:40,height:40,className:"h-10 w-10",priority:!0}),(0,a.jsx)("span",{className:"font-bold text-xl",children:"Wplace.ai"})]})}var I=t(5695),R=t(9102),E=t(2085),L=t(4416);let O=R.bL,_=R.l9;R.bm;let P=R.ZL,M=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(R.hJ,{className:(0,f.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r,ref:s})});M.displayName=R.hJ.displayName;let D=(0,E.F)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),U=r.forwardRef((e,s)=>{let{side:t="right",className:r,children:l,...n}=e;return(0,a.jsxs)(P,{children:[(0,a.jsx)(M,{}),(0,a.jsxs)(R.UC,{ref:s,className:(0,f.cn)(D({side:t}),r),...n,children:[l,(0,a.jsxs)(R.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,a.jsx)(L.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});U.displayName=R.UC.displayName;let V=e=>{let{className:s,...t}=e;return(0,a.jsx)("div",{className:(0,f.cn)("flex flex-col space-y-2 text-center sm:text-left",s),...t})};V.displayName="SheetHeader";let F=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(R.hE,{ref:s,className:(0,f.cn)("text-lg font-semibold text-foreground",t),...r})});F.displayName=R.hE.displayName,r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(R.VY,{ref:s,className:(0,f.cn)("text-sm text-muted-foreground",t),...r})}).displayName=R.VY.displayName;var W=t(4783),$=t(4869),J=t(4648),Z=t(7213),G=t(3578);function X(e){let{items:s,user:t,isDashboard:r}=e;return(0,a.jsxs)(O,{children:[(0,a.jsx)(_,{asChild:!0,children:(0,a.jsxs)(d.$,{variant:"ghost",size:"icon",className:"md:hidden",children:[(0,a.jsx)(W.A,{className:"h-5 w-5"}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle menu"})]})}),(0,a.jsxs)(U,{side:"left",className:"flex flex-col",children:[(0,a.jsx)(V,{children:(0,a.jsx)(F,{children:"Navigation"})}),(0,a.jsxs)("nav",{className:"flex flex-col gap-4 mt-4",children:[s.map(e=>(0,a.jsx)(o(),{href:e.href,className:"text-sm font-medium text-muted-foreground transition-colors hover:text-primary",children:e.label},e.href)),!r&&(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("div",{className:"text-sm font-medium text-foreground",children:"Explore"}),(0,a.jsxs)("div",{className:"pl-4 space-y-2",children:[(0,a.jsxs)(o(),{href:"/explore/painting-pixel-art-global-canvas-wplace-live",className:"flex items-center text-sm font-medium text-muted-foreground transition-colors hover:text-primary",children:[(0,a.jsx)($.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:"Play with Wplace.live"})]}),(0,a.jsxs)(o(),{href:"/explore/the-map-that-leads-to-you-ai-travel-map",className:"flex items-center text-sm font-medium text-muted-foreground transition-colors hover:text-primary",children:[(0,a.jsx)(J.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:"Meet Wplace.ai"})]})]})]}),!r&&(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("div",{className:"text-sm font-medium text-foreground",children:"Tools"}),(0,a.jsxs)("div",{className:"pl-4 space-y-2",children:[(0,a.jsxs)(o(),{href:"/tools/image-to-pixel",className:"flex items-center text-sm font-medium text-muted-foreground transition-colors hover:text-primary",children:[(0,a.jsx)(Z.A,{className:"mr-2 h-4 w-4"}
1),(0,a.jsx)("span",{children:"Image to Pixel"})]}),(0,a.jsxs)(o(),{href:"/tools/blue-marble-wplace",className:"flex items-center text-sm font-medium text-muted-foreground transition-colors hover:text-primary",children:[(0,a.jsx)(G.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:"Blue Marble Wplace"})]})]})]})]}),(0,a.jsx)("div",{className:"mt-auto pt-4 border-t",children:t?(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[t.email&&(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:t.email}),!r&&(0,a.jsx)(d.$,{asChild:!0,variant:"default",className:"w-full",children:(0,a.jsx)(o(),{href:"/dashboard",children:"Dashboard"})}),(0,a.jsx)("form",{action:n,className:"w-full",children:(0,a.jsx)(d.$,{type:"submit",variant:"outline",className:"w-full",children:"Sign out"})})]}):(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)(d.$,{asChild:!0,variant:"outline",className:"w-full",children:(0,a.jsx)(o(),{href:"/sign-in",children:"Sign in"})}),(0,a.jsx)(d.$,{asChild:!0,variant:"default",className:"w-full",children:(0,a.jsx)(o(),{href:"/sign-up",children:"Sign up"})})]})})]})]})}var Y=t(9663),q=t(6474),B=t(3783),H=t(1007),Q=t(381),K=t(4835),ee=t(7680),es=t(7924);function et(e){let{onLocationSelect:s,className:t}=e,[l,n]=(0,r.useState)(!1),i=e=>{null==s||s(e),n(!1)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:(0,f.cn)("hidden md:block",t),children:(0,a.jsx)(ee.C,{onLocationSelect:i,placeholder:"Search location",className:"w-64"})}),(0,a.jsx)("div",{className:"md:hidden",children:(0,a.jsx)(d.$,{variant:"ghost",size:"sm",onClick:()=>n(!l),className:"h-8 w-8 p-0",children:l?(0,a.jsx)(L.A,{className:"h-4 w-4"}):(0,a.jsx)(es.A,{className:"h-4 w-4"})})}),l&&(0,a.jsx)("div",{className:"absolute top-full left-0 right-0 mt-1 bg-background border-b shadow-lg z-50 md:hidden",children:(0,a.jsx)("div",{className:"container px-4 py-3",children:(0,a.jsx)(ee.C,{onLocationSelect:i,placeholder:"Search location",className:"w-full"})})})]})}function ea(e){var s,t,r,l,i,c;let{user:m,onLocationSelect:u}=e,x=(0,I.usePathname)(),f=null==x?void 0:x.startsWith("/dashboard"),g=f?[]:[{label:"Features",href:"/#features"},{label:"Pricing",href:"/pricing"},{label:"FAQ",href:"/#faq"},{label:"Contact",href:"/contact-us"}];return(0,a.jsx)("header",{className:"sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:(0,a.jsxs)("div",{className:"container flex h-16 items-center justify-between px-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 md:gap-8",children:[(0,a.jsx)(T,{}),(0,a.jsxs)("nav",{className:"hidden md:flex items-center gap-6",children:[g.map(e=>(0,a.jsx)(o(),{href:e.href,className:"text-sm font-medium text-muted-foreground transition-colors hover:text-primary",children:e.label},e.href)),!f&&(0,a.jsxs)(h,{children:[(0,a.jsx)(p,{asChild:!0,children:(0,a.jsxs)(d.$,{variant:"ghost",className:"text-sm font-medium text-muted-foreground transition-colors hover:text-primary p-0 h-auto",children:["Explore",(0,a.jsx)(q.A,{className:"ml-1 h-4 w-4"})]})}),(0,a.jsxs)(j,{align:"start",children:[(0,a.jsx)(v,{asChild:!0,children:(0,a.jsxs)(o(),{href:"/explore/painting-pixel-art-global-canvas-wplace-live",className:"flex items-center",children:[(0,a.jsx)($.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:"Play with Wplace.live"})]})}),(0,a.jsx)(v,{asChild:!0,children:(0,a.jsxs)(o(),{href:"/explore/the-map-that-leads-to-you-ai-travel-map",className:"flex items-center",children:[(0,a.jsx)(J.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:"Meet Wplace.ai"})]})})]})]}),!f&&(0,a.jsxs)(h,{children:[(0,a.jsx)(p,{asChild:!0,children:(0,a.jsxs)(d.$,{variant:"ghost",className:"text-sm font-medium text-muted-foreground transition-colors hover:text-primary p-0 h-auto",children:["Tools",(0,a.jsx)(q.A,{className:"ml-1 h-4 w-4"})]})}),(0,a.jsxs)(j,{align:"start",children:[(0,a.jsx)(v,{asChild:!0,children:(0,a.jsxs)(o(),{href:"/tools/image-to-pixel",className:"flex items-center",children:[(0,a.jsx)(Z.A,{className:"mr-2 h-4 w-4"}
1),(0,a.jsx)("span",{children:"Image to Pixel"})]})}),(0,a.jsx)(v,{asChild:!0,children:(0,a.jsxs)(o(),{href:"/tools/blue-marble-wplace",className:"flex items-center",children:[(0,a.jsx)(G.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:"Blue Marble Wplace"})]})})]})]})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:["/"===x&&(0,a.jsx)(et,{onLocationSelect:u}),(0,a.jsx)(z,{}),m?(0,a.jsx)("div",{className:"hidden md:flex items-center gap-2",children:(0,a.jsxs)(h,{children:[(0,a.jsx)(p,{asChild:!0,children:(0,a.jsx)(d.$,{variant:"ghost",className:"relative h-8 w-8 rounded-full",children:(0,a.jsxs)(Y.eu,{className:"h-8 w-8",children:[(0,a.jsx)(Y.BK,{src:null==(s=m.user_metadata)?void 0:s.avatar_url,alt:(null==(t=m.user_metadata)?void 0:t.name)||m.email}),(0,a.jsx)(Y.q5,{children:(null==(l=m.user_metadata)||null==(r=l.name)?void 0:r.charAt(0))||(null==(i=m.email)?void 0:i.charAt(0))||"U"})]})})}),(0,a.jsxs)(j,{className:"w-56",align:"end",forceMount:!0,children:[(0,a.jsx)(b,{className:"font-normal",children:(0,a.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,a.jsx)("p",{className:"text-sm font-medium leading-none",children:(null==(c=m.user_metadata)?void 0:c.name)||"User"}),(0,a.jsx)("p",{className:"text-xs leading-none text-muted-foreground",children:m.email})]})}),(0,a.jsx)(y,{}),(0,a.jsx)(v,{asChild:!0,children:(0,a.jsxs)(o(),{href:"/dashboard",className:"flex items-center",children:[(0,a.jsx)(B.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:"Dashboard"})]})}),(0,a.jsx)(v,{asChild:!0,children:(0,a.jsxs)(o(),{href:"/profile",className:"flex items-center",children:[(0,a.jsx)(H.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:"Profile"})]})}),(0,a.jsx)(v,{asChild:!0,children:(0,a.jsxs)(o(),{href:"/settings",className:"flex items-center",children:[(0,a.jsx)(Q.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:"Settings"})]})}),(0,a.jsx)(y,{}),(0,a.jsxs)(v,{className:"text-red-600 focus:text-red-600",onSelect:e=>{e.preventDefault(),n()},children:[(0,a.jsx)(K.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:"Log out"})]})]})]})}):(0,a.jsx)("div",{className:"hidden md:flex gap-2",children:(0,a.jsx)(d.$,{asChild:!0,size:"sm",children:(0,a.jsx)(o(),{href:"/sign-in",children:"Sign in"})})}),(0,a.jsx)(X,{items:g,user:m,isDashboard:f})]})]})})}function er(){let e=(0,I.usePathname)();return(null==e?void 0:e.startsWith("/dashboard"))?(0,a.jsx)("footer",{className:"border-t py-6 md:py-0",children:(0,a.jsx)("div",{className:"container flex flex-col items-center justify-between gap-4 md:h-16 md:flex-row md:py-0",children:(0,a.jsx)("div",{className:"flex flex-col items-center gap-4 px-8 md:flex-row md:gap-2 md:px-0",children:(0,a.jsxs)("p",{className:"text-center text-sm leading-loose text-muted-foreground md:text-left",children:["Built by"," ",(0,a.jsx)(o(),{href:"https://wplace.ai",className:"font-medium underline underline-offset-4",children:"Wplace.ai"})]})})})}):(0,a.jsx)("footer",{className:"",children:(0,a.jsx)("div",{className:"container px-4 py-8 md:py-12",children:(0,a.jsxs)("div",{className:"mt-16 flex flex-col items-center justify-between gap-4 border-t pt-8 md:flex-row",children:[(0,a.jsxs)("p",{className:"text-center text-sm leading-loose text-muted-foreground md:text-left",children:["\xa9 2025"," ",(0,a.jsx)(o(),{href:"#",className:"hover:text-primary",children:"Wplace.ai"}),". All rights reserved."]}),(0,a.jsxs)("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[(0,a.jsx)(o(),{href:"/privacy-policy",className:"hover:text-primary",children:"Privacy Policy"}),(0,a.jsx)(o(),{href:"/terms-of-service",className:"hover:text-primary",children:"Terms of Service"}),(0,a.jsx)(o(),{href:"/contact-us",className:"hover:text-primary",children:"Contact Us"})]})]})})})}var el=t(5168);function en(e){let{children:s}=e,[t,l]=(0,r.useState)(null),[n,i]=(0,r.useState)(!0);return((0,r.useEffect)(()=>{let e=(0,el.U)();(async()=>{try{let{data:{user:t},error:a}=await e.auth.getUser();if(a){var s;(null==(s=a.message)?void 0:s.includes("Auth session missing"))||console.error("Error getting user:",a),l(null)}else l(t)}catch(e){console.error("Failed to get user:",e),l(null)}finally{i(!1)}})();let{data:{subscription:s}}=e.auth.onAuthStateChange(async(e,s)=>{var t;l(null!=(t=null==s?void 0:s.user)?t:null),i(!1)});return()=>s.unsubscribe()},[]),n)?(0,a.jsx)("div",{className:"relative min-h-screen",children:(0,a.jsx)("div",{className:"flex items-center justify-center min-h-screen",children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,a.jsx)("div",{className:"animate-spin h-8 w-8 border-2 border-primary border-t-transparent roun
1ded-full"}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Loading..."})]})})}):(0,a.jsxs)("div",{className:"relative min-h-screen",children:[(0,a.jsx)(ea,{user:t,onLocationSelect:e=>{console.log("Header search location selected:",e);let s=new CustomEvent("headerLocationSearch",{detail:e});window.dispatchEvent(s)}}),(0,a.jsx)("main",{className:"flex-1",children:s}),(0,a.jsx)(er,{})]})}},3580:(e,s,t)=>{"use strict";t.d(s,{dj:()=>m});var a=t(2115);let r=0,l=new Map,n=e=>{if(l.has(e))return;let s=setTimeout(()=>{l.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);l.set(e,s)},i=[],o={toasts:[]};function d(e){o=((e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=s;return t?n(t):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}})(o,e),i.forEach(e=>{e(o)})}function c(e){let{...s}=e,t=(r=(r+1)%Number.MAX_VALUE).toString(),a=()=>d({type:"DISMISS_TOAST",toastId:t});return d({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:e=>{e||a()}}}),{id:t,dismiss:a,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function m(){let[e,s]=a.useState(o);return a.useEffect(()=>(i.push(s),()=>{let e=i.indexOf(s);e>-1&&i.splice(e,1)}),[e]),{...e,toast:c,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},3999:(e,s,t)=>{"use strict";t.d(s,{cn:()=>l});var a=t(2596),r=t(9688);function l(){for(var e=arguments.length,s=Array(e),t=0;t<e;t++)s[t]=arguments[t];return(0,r.QP)((0,a.$)(s))}},5038:(e,s,t)=>{"use strict";t.d(s,{Toaster:()=>g});var a=t(5155),r=t(2115),l=t(9337),n=t(2085),i=t(4416),o=t(3999);let d=l.Kq,c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(l.LM,{ref:s,className:(0,o.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...r})});c.displayName=l.LM.displayName;let m=(0,n.F)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),u=r.forwardRef((e,s)=>{let{className:t,variant:r,...n}=e;return(0,a.jsx)(l.bL,{ref:s,className:(0,o.cn)(m({variant:r}),t),...n})});u.displayName=l.bL.displayName,r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(l.rc,{ref:s,className:(0,o.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...r})}).displayName=l.rc.displayName;let x=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(l.bm,{ref:s,className:(0,o.cn)("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...r,children:(0,a.jsx)(i.A,{className:"h-4 w-4"})})});x.displayName=l.bm.displayName;let f=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(l.hE,{ref:s,className:(0,o.cn)("text-sm font-semibold",t),...r})});f.displayName=l.hE.displayName;let h=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(l.VY,{ref:s,className:(0,o.cn)("text-sm opacity-90",t),...r})});h.displayName=l.VY.displayName;var p=t(3580);function g(){let{toasts:e}=(0,p.dj)();return(0,a.jsxs)(d,{children:[e.map(function(e){let{id:s,title:t,description:r,action:l,...n}=e;return(0,a.jsxs)(u,{...n,children:[(0,a.jsxs)("div",{className:"grid gap-1",children:[t&&(0,a.jsx)(f,{children:t}),r&&(0,a.jsx)(h,{children:r})]}),l,(0,a.jsx)(x,{})]},s)}),(0,a.jsx)(c,{})]})}},5168:(e,s,t)=>{"use strict";t.d(s,{U:()=>r});var a=t(156);let r=()=>(0,a.createBrowserClient)("https://vnsonhesqayhnxuzstlo.supabase.co","remove_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InZuc29uaGVzcWF5aG54dXpzdGxvIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTUwNjU4MjEsImV4cCI6MjA3MDY0MTgyMX0.VzZXzolT1cD6qi4sRpStoxrAojssRzASh-u0dwM8G9c")},5837:(e,s,t)=>{"use strict";t.d(s,{GoogleAdSense:()=>l});var a=t(5155),r=t(3554);function l(e){let{clientId:s}=e;return s?(0,a.jsx)(r.default,{async:!0,src:"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=".concat(s),crossOrigin:"anonymous",strategy:"lazyOnload"}):null}},7168:(e,s,t)=>{"use strict";t.d(s,{$:()=>d});var a=t(5155),r=t(2115),l=t(9708),n=t(2085),i=t(3999);let o=(0,n.F)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=r.forwardRef((e,s)=>{let{className:t,variant:r,size:n,asChild:d=!1,...c}=e,m=d?l.DX:"button";return(0,a.jsx)(m,{className:(0,i.cn)(o({variant:r,size:n,className:t})),ref:s,...c})});d.displayName="Button"},9324:()=>{},9852:(e,s,t)=>{"use strict";t.d(s,{p:()=>n});var a=t(5155),r=t(2115),l=t(3999);let n=r.forwardRef((e,s)=>{let{className:t,type:r,...n}=e;return(0,a.jsx)("input",{type:r,className:(0,l.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:s,...n})});n.displayName="Input"}},e=>{e.O(0,[9278,4277,7016,6874,2789,8814,6910,331,2045,3063,6191,1342,8441,5964,7358],()=>e(e.s=713)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.