PageSourceSearch

https://www.archvizr.com/_next/static/chunks/6596-3aab3fadffec5a08.js

js archvizr.com collected 2026-10-05 21:36:04 UTC 8,543 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6596],{42885:(e,t,n)=>{"use strict";n.d(t,{GoogleLoginClient:()=>s});var a=n(54028),l=n(60168),r=n(10286),o=n(96512),i=n(55944);function s(){let e=(0,l.rd)(),{handleGoogleCredential:t,loading:n}=(0,i.A)(),{fetchUserData:s,isLogin:c}=(0,o.k)();return(0,r.BP)({auto_select:!0,disabled:n||c,onSuccess:async n=>{try{let a=navigator.language,l=Intl.DateTimeFormat().resolvedOptions().timeZone,r=navigator.language.split("-")[0];await t(n.credential,{deviceLanguage:a,deviceTimezone:l,language:r}),await s({useCache:!1}),e.refresh()}catch(e){console.error("Google login error:",e)}},onError:()=>{console.error("Google Login Error")}}),(0,a.jsx)(a.Fragment,{})}},45410:(e,t,n)=>{"use strict";n.d(t,{AuthDialog:()=>D});var a=n(54028),l=n(74164),r=n(60334),o=n(93691),i=n(96512),s=n(29397);let c=(...e)=>e.map(e=>({key:e,image:`/auth/${e}.webp`})),d={roomai:c("bedroom","living","kitchen","bathroom","exterior"),archybase:c("floorplan","interior","exterior","landscape","staging"),floorai:c("plan","model3d","elevation","interior","layout"),archvizr:c("sketch","exterior","interior","dusk","upscale")};var u=n(30048),h=n(10286),x=n(52969),g=n(60168),m=n(84819),p=n(86783),f=n(72039),v=n(52686),y=n(49111),b=n(3437),j=n(59370),k=n(98449),N=n(21200),w=n(72790),I=n(72665),A=n(45575);let C=[{key:"credits",Icon:f.A},{key:"history",Icon:v.A},{key:"devices",Icon:y.A},{key:"download",Icon:b.A}],S={roomai:C,archybase:[{key:"credits",Icon:f.A},{key:"workspace",Icon:j.A},{key:"tools",Icon:k.A},{key:"download",Icon:b.A}],floorai:[{key:"credits",Icon:f.A},{key:"edit",Icon:N.A},{key:"views",Icon:w.A},{key:"download",Icon:b.A}],archvizr:[{key:"credits",Icon:f.A},{key:"fidelity",Icon:I.A},{key:"project",Icon:A.A},{key:"download",Icon:b.A}]};var $=n(55944);let z="h-auth-button w-full justify-center gap-2.5 rounded-auth border border-border bg-secondary !text-auth-body font-semibold text-foreground shadow-none transition-colors hover:border-border hover:bg-accent";function E({appName:e,brandName:t,onSuccess:n}){let r=(0,l.c)("Component.AuthDialog"),o=S[e]??C,{handleGoogleCredential:s,socialProviders:c,socialLoadingProvider:d,handleSocialLogin:f}=(0,$.A)(),{fetchUserData:v}=(0,i.k)(),y=(0,u.useRef)(null),[b,j]=(0,u.useState)(!1),k=b||null!==d,N=e=>(0,a.jsx)("span",{className:"font-semibold text-foreground",children:e});return(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col justify-center gap-12 px-10 py-9",children:[(0,a.jsxs)("header",{className:"flex flex-col gap-2 text-center",children:[(0,a.jsx)("h2",{className:"text-auth-title font-bold leading-[1.1] tracking-tight text-foreground",children:r.rich("welcomeTitle",{brand:t,accent:e=>(0,a.jsx)("span",{className:"text-highlight",children:e})})}),(0,a.jsx)("p",{className:"text-auth-subtitle font-semibold leading-snug text-foreground",children:r("subtitle")})]}),(0,a.jsx)("ul",{className:"flex flex-col gap-3",children:o.map(({key:e,Icon:t})=>(0,a.jsxs)("li",{className:"flex items-start gap-3 text-auth-body leading-snug",children:[(0,a.jsx)(t,{className:"mt-0.5 size-[18px] shrink-0 text-highlight","aria-hidden":"true"}),(0,a.jsx)("span",{className:"min-w-0 text-muted-foreground",children:r.rich(`benefits.${e}`,{em:N})})]},e))}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)("div",{ref:y,className:"hidden",children:(0,a.jsx)(h.j,{onSuccess:async e=>{if(e.credential){j(!0);try{await s(e.credential,{onSuccess:n,deviceLanguage:navigator.language,deviceTimezone:Intl.DateTimeFormat().resolvedOptions().timeZone,language:navigator.language.split("-")[0]}),await v({useCache:!1})}catch(e){console.error("Google login error:",e)}finally{j(!1)}}},onError:()=>{console.error("Google Login Error"),j(!1)}})}),(0,a.jsxs)(x.$,{type:"button",variant:"outline",className:z,onClick:()=>{let e=y.current?.querySelector('div[role="button"]');e instanceof HTMLElement&&e.click()},disabled:k,loading:b,children:[(0,a.jsx)(m.N,{size:24}),(0,a.jsx)("span",{children:r("continueWith",{provider:"Google"})})]}),c.map(e=>(0,a.jsxs)(x.$,{type:"button",variant:"outline",className:z,onClick:()=>f(e),disabled:k,loading:d===e,children:[(0,a.jsx)(p.Sn,{provider:e,size:24}),(0,a.jsx)("span",{children:r("continueWith",{provider:p.kP[e]})})]},e)),(0,a.jsx)("p",{className:"text-center text-auth-legal leading-relaxed text-muted-foreground",children:r.rich("legal",{terms:e=>(0,a.jsx)(g.N_,{href:"/terms",className:"hover:text-foreground hover:underline",children:e}
1),privacy:e=>(0,a.jsx)(g.N_,{href:"/privacy",className:"hover:text-foreground hover:underline",children:e})})})]})]})}function T(e,t){let n="advance"===t.type?(e.activeIndex+1)%t.length:t.index;return n===e.activeIndex?e:{activeIndex:n,previousIndex:e.activeIndex}}function _({slides:e}){let t=(0,l.c)("Component.AuthDialog.slides"),[{activeIndex:n,previousIndex:r},o]=(0,u.useReducer)(T,{activeIndex:0,previousIndex:null}),[i,s]=(0,u.useState)({});if((0,u.useEffect)(()=>{if(e.length<=1)return;let t=window.setInterval(()=>{o({type:"advance",length:e.length})},5e3);return()=>window.clearInterval(t)},[e.length]),0===e.length)return null;let c=e[n],d=t.has(`${c.key}.title`);return(0,a.jsxs)("section",{className:"relative hidden w-[380px] shrink-0 overflow-hidden bg-primary md:block",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-primary-600 to-primary"}),e.map((e,t)=>(0,a.jsx)("img",{src:e.image,alt:"",decoding:"async",loading:0===t?"eager":"lazy",onError:()=>s(t=>({...t,[e.key]:!0})),className:`absolute inset-0 size-full object-cover ${t===n&&!i[e.key]?"z-10 opacity-100 transition-opacity duration-300":t===r&&!i[e.key]?"z-0 opacity-100":"z-0 opacity-0"}`},e.key)),(0,a.jsx)("div",{className:"absolute inset-0 z-20 bg-gradient-to-t from-black/85 via-black/35 to-transparent"}),(0,a.jsxs)("div",{className:"absolute inset-x-0 bottom-0 z-30 flex flex-col gap-3 px-6 pb-5",children:[d&&(0,a.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,a.jsx)("h3",{className:"text-auth-slide-title font-bold uppercase leading-tight tracking-tight text-white",children:t(`${c.key}.title`)}),(0,a.jsx)("p",{className:"h-9 text-auth-slide-body leading-snug text-white/75",children:t(`${c.key}.description`)})]}),d&&(0,a.jsx)("span",{className:"text-auth-slide-label font-semibold uppercase tracking-[0.14em] text-white/85",children:t(`${c.key}.label`)}),(0,a.jsx)("div",{className:"flex items-center gap-1.5",children:e.map((e,l)=>(0,a.jsx)("button",{type:"button","aria-label":d?t(`${e.key}.label`):void 0,onClick:()=>o({type:"select",index:l}),className:"h-3 min-w-0 flex-1",children:(0,a.jsx)("span",{className:"block h-[3px] w-full overflow-hidden rounded-full bg-white/30",children:(0,a.jsx)("span",{className:`block h-full rounded-full bg-white transition-all duration-300 ${l===n?"w-full":"w-0"}`})})},e.key))})]})]})}function D({variant:e="google-only",appName:t,brandName:n}){let{isOpen:c,onOpenChange:u}=(0,s.$)(),{refreshUserData:h}=(0,i.k)(),x=(0,l.c)("Component.AuthDialog"),g=async()=>{u(!1),await h()},m=d[t],p="google-only"===e&&!!m?.length;return(0,a.jsx)(r.lG,{open:c,onOpenChange:u,children:(0,a.jsxs)(r.Cf,{className:`gap-0 overflow-hidden p-0 sm:rounded-2xl ${"google-only"===e?"sm:max-w-[992px]":"sm:max-w-[425px]"}`,children:[(0,a.jsx)(r.L3,{className:"sr-only",children:x("title")}),(0,a.jsx)(r.rr,{className:"sr-only",children:x("description")}),(0,a.jsxs)("div",{className:"flex max-h-[85vh] w-full overflow-y-auto md:max-h-none md:min-h-[500px]",children:[p&&(0,a.jsx)(_,{slides:m}),"google-only"===e?(0,a.jsx)(E,{appName:t,brandName:n,onSuccess:g}):(0,a.jsx)("div",{className:"flex min-w-0 flex-1 items-center justify-center px-6 py-10",children:(0,a.jsx)("div",{className:"w-full max-w-[320px]",children:(0,a.jsx)(o.Q,{onSuccess:g,isDialog:!0,variant:e},c.toString())})})]})]})})}},45679:(e,t,n)=>{"use strict";n.d(t,{SessionProvider:()=>l});var a=n(54028);function l({children:e}){return(0,a.jsx)(a.Fragment,{children:e})}},87346:(e,t,n)=>{"use strict";n.d(t,{ThemeProvider:()=>r});var a=n(54028),l=n(4854);function r({children:e,...t}){return(0,a.jsx)(l.N,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,...t,children:e})}},95410:(e,t,n)=>{"use strict";n.d(t,{InviteCodeTracker:()=>r});var a=n(30048),l=n(3680);function r(){let e=(0,l.useSearchParams)();return(0,a.useEffect)(()=>{let t=e.get("invite");t&&(console.log(`捕获到邀请码: ${t}`),localStorage.getItem("invite_code")||localStorage.setItem("invite_code",t))},[e]),null}},96721:()=>{}}]);

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.