PageSourceSearch

https://www.magicstyle.ai/_next/static/chunks/922-22e1a0c6e0483db5.js

js magicstyle.ai collected 2026-10-05 15:38:23 UTC 11,436 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[922],{3168:(e,s,t)=>{t.d(s,{N:()=>r});let r=(0,t(851).UU)("https://dvfccbwwkclmyofenshn.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImR2ZmNjYnd3a2NsbXlvZmVuc2huIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NDMyODUwNjIsImV4cCI6MjA1ODg2MTA2Mn0.ZyJ_HwY4Nur5rMsLSQEdMktrwA3BRSgDuMNztTAHMrM")},3274:(e,s,t)=>{t.d(s,{A:()=>d,AuthProvider:()=>c});var r=t(5155),i=t(2115),n=t(3168),a=t(8436),l=t(5168);let o=(0,i.createContext)({user:null,signInWithGoogle:async()=>{},signOut:async()=>{},showAuthModal:()=>{},isAuthenticated:!1,isLoading:!1}),c=e=>{let{children:s}=e,[t,c]=(0,i.useState)(null),[d,h]=(0,i.useState)(!1),[u,m]=(0,i.useState)(!0);(0,i.useEffect)(()=>{let{data:{subscription:e}}=n.N.auth.onAuthStateChange((e,s)=>{var t;c(null!==(t=null==s?void 0:s.user)&&void 0!==t?t:null),m(!1)});return n.N.auth.getSession().then(e=>{var s;let{data:{session:t}}=e;c(null!==(s=null==t?void 0:t.user)&&void 0!==s?s:null),m(!1)}),()=>e.unsubscribe()},[]),(0,i.useEffect)(()=>{console.log("Auth state changed:",t?"User logged in: ".concat(t.id):"No user"),(async()=>{let e=(0,l.S)(),{data:s}=await e.auth.getSession();console.log("Session from cookies:",s.session?"Valid session for ".concat(s.session.user.id):"No session")})()},[t]);let x=async()=>{let{error:e}=await n.N.auth.signInWithOAuth({provider:"google",options:{redirectTo:"".concat(window.location.origin,"/auth/callback")}});e&&console.error("Error signing in with Google:",e.message)},g=async()=>{try{await n.N.auth.signOut(),c(null)}catch(e){throw console.error("Error signing out:",e),e}};return(0,r.jsxs)(o.Provider,{value:{user:t,signInWithGoogle:x,signOut:g,showAuthModal:()=>{h(!0)},isAuthenticated:!!t,isLoading:u},children:[s,d&&(0,r.jsx)(a.U,{isOpen:d,onClose:()=>h(!1),initialView:"login"})]})},d=()=>(0,i.useContext)(o)},5168:(e,s,t)=>{t.d(s,{S:()=>n});var r=t(851);let i=null,n=()=>{if(i)return i;let e="https://dvfccbwwkclmyofenshn.supabase.co",s="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImR2ZmNjYnd3a2NsbXlvZmVuc2huIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NDMyODUwNjIsImV4cCI6MjA1ODg2MTA2Mn0.ZyJ_HwY4Nur5rMsLSQEdMktrwA3BRSgDuMNztTAHMrM";if(!e||!s)throw Error("Supabase URL and anon key must be available");return i=(0,r.UU)(e,s,{auth:{persistSession:!0,autoRefreshToken:!0,detectSessionInUrl:!0}})}},5922:(e,s,t)=>{t.d(s,{A:()=>p});var r=t(5155),i=t(6874),n=t.n(i),a=t(6766),l=t(7580),o=t(5040),c=t(7434),d=t(690),h=t(3127),u=t(5525),m=t(5695),x=t(2115),g=t(8436);function p(){let[e,s]=(0,x.useState)(!1),[t,i]=(0,x.useState)("login"),p=(0,m.useRouter)(),v=e=>{let s=document.getElementById(e);s&&s.scrollIntoView({behavior:"smooth"})},f={LINKS:{title:"LINKS",items:[{name:"Login",href:"#",icon:l.A,onClick:()=>{i("login"),s(!0)}},{name:"How It Works",href:"#",icon:o.A,onClick:()=>v("how-it-works")},{name:"Pricing",href:"#",icon:c.A,onClick:()=>v("pricing")}]},GetStarted:{title:"Get started",items:[{name:"Create",href:"/dashboard",icon:d.A,onClick:()=>p.push("/dashboard")},{name:"Gallery",href:"/dashboard/gallery",icon:h.A,onClick:()=>p.push("/dashboard/gallery")}]},legal:{title:"Legal",items:[{name:"Privacy Policy",href:"/privacy",icon:u.A,onClick:()=>p.push("/privacy")},{name:"Terms of Service",href:"/terms",icon:c.A,onClick:()=>p.push("/terms")}]}};return(0,r.jsxs)("footer",{className:"bg-[#f0f0ec] border-t border-foreground
1/10",children:[(0,r.jsxs)("div",{className:"max-w-7xl mx-auto px-4 py-12 sm:px-6 lg:px-8",children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:[(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(a.default,{src:"/images/logo.svg",alt:"Ghibli Magic Style",width:300,height:73,className:"h-16 w-auto"}),(0,r.jsx)("p",{className:"text-foreground/70 text-sm",children:"Transform your photos into magical Ghibli-style artwork using our advanced AI technology."}),(0,r.jsxs)("div",{className:"flex space-x-4",children:[(0,r.jsxs)("button",{className:"text-foreground/60 hover:text-primary transition-colors",children:[(0,r.jsx)("span",{className:"sr-only",children:"X (Twitter)"}),(0,r.jsx)("svg",{className:"h-6 w-6",fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})]}),(0,r.jsxs)("button",{className:"text-foreground/60 hover:text-primary transition-colors",children:[(0,r.jsx)("span",{className:"sr-only",children:"Instagram"}),(0,r.jsx)("svg",{className:"h-6 w-6",fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058 1.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.466.399.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.858-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.858a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 100 6.666 3.333 3.333 0 000-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z",clipRule:"evenodd"})})]}),(0,r.jsxs)("button",{className:"text-foreground/60 hover:text-primary transition-colors",children:[(0,r.jsx)("span",{className:"sr-only",children:"TikTok"}),(0,r.jsx)("svg",{className:"h-6 w-6",fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"})})]})]}),(0,r.jsxs)("p",{className:"text-sm text-foreground/60 mt-4",children:["Created with ✨ by"," ",(0,r.jsx)(n(),{href:"https://linktr.ee/hamza_boujid",className:"text-primary hover:underline",children:"BoujidStack"})]})]}),Object.entries(f).map(e=>{let[s,t]=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-sm font-semibold text-foreground uppercase tracking-wider",children:t.title}),(0,r.jsx)("ul",{className:"mt-4 space-y-3",children:t.items.map(e=>(0,r.jsx)("li",{children:(0,r.jsxs)("button",{onClick:e.onClick,className:"flex items-center text-foreground
1/70 hover:text-primary transition-colors w-full text-left",children:[(0,r.jsx)(e.icon,{className:"h-4 w-4 mr-2"}),e.name]})},e.name))})]},s)})]}),(0,r.jsx)("div",{className:"mt-12 pt-8 border-t border-foreground/10",children:(0,r.jsxs)("p",{className:"text-center text-sm text-foreground/60",children:["\xa9 ",new Date().getFullYear()," MagicStyle. Transform your world into magical styles art. All rights reserved."]})})]}),(0,r.jsx)(g.U,{isOpen:e,onClose:()=>s(!1),initialView:t})]})}},8436:(e,s,t)=>{t.d(s,{U:()=>h});var r=t(5155),i=t(2115),n=t(760),a=t(1978),l=t(4416),o=t(3274),c=t(6874),d=t.n(c);function h(e){let{isOpen:s,onClose:t,initialView:c="login"}=e,[h,u]=(0,i.useState)(c),{signInWithGoogle:m}=(0,o.A)();(0,i.useEffect)(()=>{u(c)},[c]);let x=async()=>{await m(),t()};return(0,r.jsx)(n.N,{children:s&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t,className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-50 flex items-center justify-center",children:(0,r.jsx)(a.P.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"relative mx-auto",onClick:e=>e.stopPropagation(),children:(0,r.jsxs)("div",{className:"w-[90vw] max-w-[400px] rounded-2xl bg-background p-8 shadow-2xl border border-border",children:[(0,r.jsx)("button",{onClick:t,className:"absolute right-4 top-4 p-2 hover:bg-accent rounded-full transition-colors",children:(0,r.jsx)(l.A,{className:"h-5 w-5"})}),(0,r.jsxs)("div",{className:"text-center mb-6",children:[(0,r.jsx)("h2",{className:"text-2xl font-bold mb-2",children:"login"===h?"Sign in to your account":"Create your account"}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:"login"===h?"Welcome back! Please sign in to continue.":"Start your journey with Magic Style"})]}),(0,r.jsxs)("button",{onClick:x,className:"w-full flex items-center justify-center gap-3 p-4 rounded-lg border-2 border-border hover:bg-accent transition-colors mb-6",children:[(0,r.jsxs)("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",children:[(0,r.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),(0,r.jsx)("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),(0,r.jsx)("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),(0,r.jsx)("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),(0,r.jsx)("span",{className:"font-medium",children:"Continue with Google"})]}),(0,r.jsx)("div",{className:"text-center text-sm text-muted-foreground",children:"login"===h?(0,r.jsxs)(r.Fragment,{children:["Don't have an account?"," ",(0,r.jsx)("button",{onClick:()=>u("signup"),className:"text-primary hover:underline font-medium",children:"Sign up"})]}):(0,r.jsxs)(r.Fragment,{children:["Already have an account?"," ",(0,r.jsx)("button",{onClick:()=>u("login"),className:"text-primary hover:underline font-medium",children:"Sign in"})]})}),(0,r.jsxs)("div",{className:"mt-6 text-center text-xs text-muted-foreground",children:["By signing up, you agree to our"," ",(0,r.jsx)(d(),{href:"/terms",className:"text-primary hover:underline",children:"Terms of Service"})," ","and"," ",(0,r.jsx)(d(),{href:"/privacy",className:"text-primary hover:underline",children:"Privacy Policy"})]})]})})})})})}}}]);

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.