1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831],{9469:function(e,t,s){s.d(t,{Z:function(){return f}});var i=s(7437),a=s(2265),n=s(3044),l=s(6438),r=s(7165),o=s(7233),c=s(1118),d=s(5242),m=s(1667),x=s(605);async function u(e){let{redirectPath:t}=e;await (0,x.signIn)("google",{callbackUrl:t})}var h=s(3289);function f(e){let{loadingText:t,redirectPath:s,loginModalDesc:x,loginModalButtonText:f}=e,[p,g]=(0,a.useState)(!1),{showLoginModal:v,setShowLoginModal:y}=(0,m.I)(),b=f.includes("ç»å½"),j=s.startsWith("/zh")?"/zh":"",N=b?[h.E>0?"æ¯ä¸ª Google è´¦æ·é¦æ¬¡ç»å½è·å¾ ".concat(h.E," å
费积å"):"ç»å½åå³å¯è´ä¹°ç§¯å并使ç¨çæå¨","çæçå®ãå¯è¾¨è®¤ç 1980 年代èå","å¨åå²è®°å½ä¸ä¿åæ¯ä¸æ¬¡çæ"]:[h.E>0?"".concat(h.E," free credits once per Google account"):"Sign in to purchase credits and use the generator","Create realistic, recognizable 1980s portraits","Keep every generation in History"],w=()=>{p||y(!1)},z=async()=>{g(!0);try{await u({redirectPath:s})}catch(e){g(!1)}};return(0,i.jsx)(n.u.Root,{show:v,as:a.Fragment,children:(0,i.jsxs)(l.V,{as:"div",className:"relative z-[70]",onClose:w,children:[(0,i.jsx)(n.u.Child,{as:a.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,i.jsx)("div",{className:"fixed inset-0 bg-zinc-950/65 backdrop-blur-sm","aria-hidden":"true"})}),(0,i.jsx)("div",{className:"fixed inset-0 z-10 overflow-y-auto p-4 sm:p-6",children:(0,i.jsx)("div",{className:"flex min-h-full items-center justify-center",children:(0,i.jsx)(n.u.Child,{as:a.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 scale-[.98]",enterTo:"opacity-100 translate-y-0 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 scale-100",leaveTo:"opacity-0 translate-y-4 scale-[.98]",children:(0,i.jsxs)(l.V.Panel,{className:"relative grid w-full max-w-[900px] overflow-hidden rounded-lg bg-white text-left shadow-[0_32px_100px_rgba(24,24,27,.32)] md:grid-cols-[.9fr_1.1fr]",children:[(0,i.jsxs)("div",{className:"relative hidden min-h-[520px] overflow-hidden bg-zinc-950 md:block",children:[(0,i.jsx)("img",{className:"absolute inset-0 h-full w-full object-cover",src:"/1980s-style-grid.png",alt:b?"1980s AI ç
§ç飿 ¼ç¤ºä¾":"1980s AI photo style examples"}),(0,i.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-zinc-950/80 via-transparent to-zinc-950/10"}),(0,i.jsxs)("div",{className:"absolute inset-x-0 bottom-0 p-8 text-white",children:[(0,i.jsxs)("div",{className:"mb-4 flex items-center gap-3",children:[(0,i.jsx)("img",{className:"h-10 w-10 rounded-full",src:"/android-chrome-512x512.png",alt:""}),(0,i.jsx)("span",{className:"text-sm font-semibold",children:"1980s AI Photo"})]}),(0,i.jsx)("p",{className:"max-w-xs text-2xl font-semibold leading-tight",children:b?"çç 1985 å¹´çä½ ï¼ä¼æ¯ä»ä¹æ ·åã":"See the version of you who lived in 1985."})]})]}),(0,i.jsxs)("div",{className:"relative flex min-h-[520px] flex-col justify-center px-7 py-12 sm:px-11 md:px-12",children:[(0,i.jsx)("button",{type:"button",className:"absolute right-5 top-5 grid h-9 w-9 place-items-center rounded-full text-zinc-500 transition hover:bg-zinc-100 hover:text-zinc-950 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#e5165d]",onClick:w,"aria-label":b?"å
³éç»å½å¼¹æ¡":"Close login dialog",children:(0,i.jsx)(r.Z,{className:"h-5 w-5"})}),(0,i.jsx)("div",{className:"mb-7 md:hidden",children:(0,i.jsx)("img",{className:"h-11 w-11 rounded-full",src:"/android-chrome-512x512.png",alt:""})}),(0,i.jsx)(l.V.Title,{className:"text-[30px] font-bold leading-tight text-zinc-950 sm:text-[34px]",children:b?"欢è¿ä½¿ç¨ 1980s AI Photo":"Welcome to 1980s AI Photo"}),(0,i.jsx)("p",{className:"mt-2 text-sm leading-6 text-zinc-500",children:b?"ç»å½åçæå¹¶ä¿åä½ çå¤å¤èå":"Sign in to generate and save your retro portraits"}),(0,i.jsx)("div",{className:"mt-8 space-y-4",children:N.map((e,t)=>(0,i.jsxs)("div",{className:"flex items-start gap-3",children:[(0,i.jsx)("span",{className:"mt-0.5 grid h-6 w-6 shrink-0 place-items-center rounded-full bg-[#fff0f5] text-[#d51152]",children:(0,i.jsx)(o.Z,{className:"h-4 w-4 stroke-[2.5]"})}),(0,i.jsx)("p",{className:"text-sm leading-6 text-zinc-700 ".concat(0===t?"font-semibold text-zinc-950":""),children:e})]},e))}),(0,i.jsxs)("button",{type:"button",className:"mt-9 inline-flex min-h-12 w-full items-center justify-center gap-3 rounded-lg border border-zinc-300 bg-white px-4 text-sm font-semibold text-zinc-950 shadow-sm transition hover:border-zinc-400 hover:bg-zinc-50 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#e5165d] disabled:cursor-wait disabled:opacity-70",onClick:z,disabled:p,children:[p?d._:(0,i.jsx)(c.JM8,{className:"text-xl"}),(0,i.jsx)("span",{children:p?t:b?"ä½¿ç¨ Google ç»§ç»":"Continue with Google"})]}),(0,i.jsxs)("p",{className:"mt-5 text-center text-xs leading-5 text-zinc-500",children:[b?"ç»§ç»å³è¡¨ç¤ºä½ 忿们ç":"By continuing, you agree to our"," ",(0,i.jsx)("a",{className:"underline underline-offset-2 hover:text-zinc-900",href:"".concat(j,"/terms-of-service"),children:b?"æå¡æ¡æ¬¾":"Terms of Service"})," ",b?"å":"and"," ",(0,i.jsx)("a",{className:"underline underline-offset-2 hover:text-zinc-900",href:"".concat(j,"/privacy-policy"),children:b?"éç§æ¿ç":"Privacy Policy"}),b?"ã":"."]}),(0,i.jsx)("span",{className:"sr-only",children:x})]})]})})})})]})})}},1112:function(e,t,s){s.d(t,{Z:function(){return d}});var i=s(7437),a=s(2265),n=s(3044),l=s(6438),r=s(1667),o=s(605),c=s(9376);function d(e){let{logoutModalDesc:t,confirmButtonText:s,cancelButtonText:d}=e,m=(0,a.useRef)(null),{showLogoutModal:x,setShowLogoutModal:u}=(0,r.I)(),h=(0,c.usePathname)(),f=()=>{sessionStorage.removeItem("user_id");let e=(null==h?void 0:h.startsWith("/zh"))?"/zh/":"/";(0,o.signOut)({callbackUrl:e}).then(e=>console.log(e))};return(0,i.jsx)(n.u.Root,{show:x,as:a.Fragment,children:(0,i.jsxs)(l.V,{as:"div",className:"relative z-40",initialFocus:m,onClose:u,onClick:()=>u(!0),children:[(0,i.jsx)(n.u.Child,{as:a.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,i.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,i.jsx)("div",{className:"fixed inset-0 z-10 overflow-y-auto",children:(0,i.jsx)("div",{className:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0",children:(0,i.jsx)(n.u.Child,{as:a.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,i.jsxs)(l.V.Panel,{className:"relative transform overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6",children:[(0,i.jsx)("div",{className:"sm:flex sm:items-start",children:(0,i.jsx)("div",{className:"mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left",children:(0,i.jsx)(l.V.Title,{as:"h3",className:"text-base font-semibold leading-6 text-gray-900",children:t})})}),(0,i.jsxs)("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse",children:[(0,i.jsx)("button",{type:"button",className:"inline-flex w-full justify-center rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-500 sm:ml-3 sm:w-auto",onClick:()=>f(),children:s}),(0,i.jsx)("button",{type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:mt-0 sm:w-auto",onClick:()=>u(!1),ref:m,children:d})]})]})})})})]})})}},3289:function(e,t,s){s.d(t,{E:function(){return i},L:function(){return a}});let i=10,a=10}}]);
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.