1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8090],{25393:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/verify",function(){return n(33493)}])},33493:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>d,default:()=>u});var o=n(6029),r=n(81278),a=n(55729),i=n(14187),l=n(68539),c=n(35270),s=n(43003),d=!0;function u(){let e=(0,r.useRouter)(),{t}=(0,i.Bd)(),[n,d]=(0,a.useState)(!1),{data:u}=(0,s.UK)(),f=!!(null==u?void 0:u.MOBILE_APP_REDIRECT_ENABLED),m="string"==typeof e.query.token?e.query.token:"",h="string"==typeof e.query.email?e.query.email:"",x="/api/v1/auth/callback/email?token=".concat(encodeURIComponent(m),"&email=").concat(encodeURIComponent(h)),p=()=>"linkwarden://verify-email?token=".concat(encodeURIComponent(m),"&email=").concat(encodeURIComponent(h),"&instance=").concat(encodeURIComponent(window.location.origin));if((0,a.useEffect)(()=>{if(!e.isReady||!u)return;if(!m||!h)return void e.push("/login");let t=/Android|iPhone|iPad|iPod/i.test(navigator.userAgent);d(t),t&&f?window.location.href=p():window.location.replace(x)},[e.isReady,u]),n&&f)return(0,o.jsx)(l.A,{header:t("verify_your_email"),children:(0,o.jsxs)("div",{className:"max-w-[30rem] min-w-80 w-full mx-auto flex flex-col gap-3",children:[(0,o.jsx)(c.$,{variant:"accent",onClick:()=>window.location.href=p(),children:t("open_in_the_app")}),(0,o.jsx)(c.$,{variant:"ghost",onClick:()=>window.location.href=x,children:t("continue_in_browser")})]})});o.Fragment}},35270:(e,t,n)=>{"use strict";n.d(t,{$:()=>s});var o=n(6029),r=n(55729),a=n(97628),i=n(72262),l=n(45933);let c=(0,i.F)("inline-flex items-center focus:outline-none outline-none justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background duration-150 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 select-none",{variants:{variant:{default:"bg-neutral-content text-neutral-content-foreground hover:bg-neutral-content/90",primary:"bg-primary text-primary-foreground hover:bg-primary/90",accent:"bg-accent text-white hover:bg-accent/90 border border-violet-400",destructive:"bg-destructive text-white hover:bg-destructive/90",outline:"border border-base-content bg-background hover:bg-base-content hover:text-base-100",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",metal:"bg-neutral-content text-base-content hover:bg-neutral-content/80 border border-neutral/30",ghost:"hover:bg-base-content/20",simple:"bg-base-200 hover:bg-base-300",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"py-1 px-2 text-xs",lg:"h-11 px-8",full:"px-4 py-2 w-full",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}}),s=r.forwardRef((e,t)=>{let{className:n,variant:r,size:i,asChild:s=!1,...d}=e,u=s?a.DX:"button";return(0,o.jsx)(u,{className:(0,l.cn)(c({variant:r,size:i,className:n})),ref:t,...d})});s.displayName="Button"},68539:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o=n(6029),r=n(45933),a=n(8588),i=n.n(a);function l(e){let{header:t,text:n,children:a,className:l,"data-testid":c}=e;return(0,o.jsx)("div",{className:(0,r.cn)("flex min-h-screen justify-center items-center p-5",l),"data-testid":c,children:(0,o.jsxs)("div",{className:"m-auto flex flex-col gap-3 w-full",children:[(0,o.jsx)(i(),{src:"/icon-small-150x150.png",width:150,height:150,alt:"Linkwarden",className:"h-16 w-auto mx-auto",priority:!0}),t&&(0,o.jsx)("p",{className:"text-2xl text-black dark:text-white text-center font-semibold",children:t}),n&&(0,o.jsx)("p",{className:"text-lg max-w-[30rem] min-w-80 w-full mx-auto px-2 font-light text-center",children:n}),a]})})}n(55729)}},e=>{e.O(0,[8986,636,6593,8792],()=>e(e.s=25393)),_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.