1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[41123],{4474:(e,t,r)=>{r.d(t,{M:()=>o,cn:()=>a});var n=r(84210),i=r(71265);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,i.QP)((0,n.$)(t))}function o(e){if(!e||"string"!=typeof e)return null;let t=e.match(/\b(19\d{2}|20\d{2}|\d{2})\b/);if(t&&t[0]){let e=t[0];return 2===e.length&&(e=25>parseInt(e,10)?"20".concat(e.padStart(2,"0")):"19".concat(e.padStart(2,"0"))),e}return null}},31129:(e,t,r)=>{r.d(t,{ZS:()=>i});let n=["provider","redirect_to","code_challenge","code_challenge_method"];function i(e,t){let r=new URL(e),i=new URL("/api/auth/oauth-start","https://winelabs.local");for(let e of n){let t=r.searchParams.get(e);t&&i.searchParams.set(e,t)}return i.searchParams.set("return_to",t),"".concat(i.pathname).concat(i.search)}},32218:(e,t,r)=>{r.d(t,{m:()=>o});var n=r(15137),i=r(80253),a=r(8054);function o(e){let{onClick:t,loading:r=!1,disabled:o=!1,label:l="Continue with Google"}=e;return(0,n.jsx)(i.$,{type:"button",variant:"outline",size:"sm",onClick:t,disabled:r||o,className:"w-full h-[36px] bg-white hover:bg-gray-50 text-gray-700 text-sm border border-gray-300 rounded-md transition-colors duration-300 flex items-center justify-center gap-2 hover:cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",children:r?(0,n.jsx)(a.A,{className:"w-4 h-4 animate-spin"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s,{className:"w-4 h-4"}),(0,n.jsx)("span",{children:l})]})})}function s(e){let{className:t}=e;return(0,n.jsxs)("svg",{className:t,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,n.jsx)("path",{fill:"#EA4335",d:"M12 10.2v3.92h5.44c-.24 1.4-1.67 4.1-5.44 4.1-3.27 0-5.94-2.7-5.94-6.04s2.67-6.04 5.94-6.04c1.86 0 3.11.79 3.83 1.47l2.6-2.5C16.82 3.6 14.66 2.7 12 2.7 6.94 2.7 2.86 6.78 2.86 11.84S6.94 20.98 12 20.98c6.92 0 9.14-4.86 9.14-7.4 0-.5-.06-.88-.13-1.26H12z"}),(0,n.jsx)("path",{fill:"#4285F4",d:"M21.14 12.32c0-.5-.06-.88-.13-1.26H12v3.92h5.44c-.11.64-.5 1.58-1.33 2.32l2.57 1.99c1.5-1.39 2.46-3.44 2.46-5.97z"}),(0,n.jsx)("path",{fill:"#FBBC05",d:"M5.74 13.71c-.2-.6-.32-1.23-.32-1.87s.11-1.27.3-1.87L2.97 7.79A9.06 9.06 0 0 0 2.86 11.84c0 1.46.35 2.84.97 4.05l2.91-2.18z"}),(0,n.jsx)("path",{fill:"#34A853",d:"M12 20.98c2.67 0 4.91-.88 6.55-2.39l-2.57-1.99c-.7.49-1.66.84-3.98.84-3.05 0-5.64-2-6.56-4.82l-2.91 2.18C4.17 18.54 7.79 20.98 12 20.98z"})]})}},33541:(e,t,r)=>{r.d(t,{z:()=>o});var n=r(15137),i=r(80253),a=r(8054);function o(e){let{onClick:t,loading:r=!1,disabled:o=!1,label:l="Continue with Apple"}=e;return(0,n.jsx)(i.$,{type:"button",variant:"outline",size:"sm",onClick:t,disabled:r||o,className:"w-full h-[36px] bg-black hover:bg-black text-white text-sm hover:text-gray-300 border border-black rounded-md transition-colors duration-300 flex items-center justify-center gap-2 hover:cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",children:r?(0,n.jsx)(a.A,{className:"w-4 h-4 animate-spin"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s,{className:"w-4 h-4"}),(0,n.jsx)("span",{children:l})]})})}function s(e){let{className:t}=e;return(0,n.jsx)("svg",{className:t,viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",fill:"currentColor",children:(0,n.jsx)("path",{d:"M17.05 12.04c-.03-2.55 2.08-3.78 2.18-3.84-1.19-1.74-3.04-1.98-3.7-2.01-1.57-.16-3.07.93-3.87.93-.81 0-2.04-.91-3.36-.88-1.73.03-3.32 1-4.21 2.55-1.8 3.11-.46 7.7 1.29 10.22.86 1.23 1.88 2.61 3.21 2.56 1.29-.05 1.78-.83 3.34-.83 1.55 0 2 .83 3.36.8 1.39-.02 2.27-1.25 3.12-2.49.98-1.43 1.39-2.81 1.41-2.88-.03-.01-2.7-1.04-2.77-4.13zM14.5 4.55c.71-.86 1.19-2.06 1.06-3.25-1.02.04-2.27.68-3 1.54-.65.76-1.22 1.98-1.07 3.15 1.14.09 2.3-.58 3.01-1.44z"})})}},36120:(e,t,r)=>{r.d(t,{H5:()=>u,Nd:()=>a,OU:()=>d,c:()=>c,qI:()=>h});var n,i=r(47677);let a=null==(n=i.env.NEXT_PUBLIC_CLERK_PROXY_URL)?void 0:n.replace(/\/+$/,""),o="1"===i.env.NEXT_PUBLIC_CLERK_PROXY_GLOBAL,s="clerk_proxy",l="clerk_proxy_autoretry";function d(){return!!a&&(o||"undefined"!=typeof document&&document.cookie.split("; ").some(e=>e==="".concat(s,"=1")))}function c(){if(!a||d())return!1;try{return!sessionStorage.getItem(l)}catch(e){return!1}}function u(){if(c()){try{sessionStorage.setItem(l,"1")}catch(e){return}document.cookie="".concat(s,"=1; path=/; max-age=").concat(31536e3,"; samesite=lax"),window.location.reload()}}function h(){var e;return!!(null==(e=window.Clerk)?void 0:e.loaded)}},47051:(e,t,r)=>{r.d(t,{p:()=>o});var n=r(15137),i=r(71946);r(68965);var a=r(4474);function o(e){let{className:t,type:r,...o}=e,{t:s}=(0,i.useLanguage)();return(0,n.jsx)("input",{type:r,"data-slot":"input",className:(0,a.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-xl border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 ","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...o,placeholder:o.placeholder?s(o.placeholder):void 0,"aria-label":o["aria-label"]?s(o["aria-label"]):void 0})}},80253:(e,t,r)=>{r.d(t,{$:()=>l,r:()=>s});var n=r(15137);r(68965);var i=r(48144),a=r(93700),o=r(4474);let s=(0,a.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border border-[#D7CCBC] bg-white shadow-xs hover:bg-[#F8F3EF] hover:text-[#5C4466] dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-full gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-full px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function l(e){let{className:t,variant:r,size:a,asChild:l=!1,...d}=e,c=l?i.DX:"button";return(0,n.jsx)(c,{"data-slot":"button",className:(0,o.cn)(s({variant:r,size:a,className:t})),...d})}},87204:(e,t,r)=>{r.d(t,{N9:()=>l,r0:()=>d});let n=/\/npm\/@clerk\//;function i(e){return"string"==typeof e&&n.test(e)}function a(e){return e&&"object"==typeof e?"ChunkLoadError"!==e.name?null:i(e.request)?e.request:i(e.message)?e.message:null:null}let o=null,s=new Set;function l(){return o}function d(e){return o?(e(o),()=>{}):(s.add(e),()=>{s.delete(e)})}!function(e){let t=e=>{let t=function(e){if(!e||"object"!=typeof e)return null;let{reason:t,error:r,filename:n,target:o}=e,s=a(t);if(s)return s;let l=a(r);if(l)return l;if(i(n))return n;if(o&&"object"==typeof o){let e=o.src;if(i(e))return e}return null}(e);t&&function(e){if(!o)for(let t of(o=e,s))t(e)}(t)};e.addEventListener("unhandledrejection",t),e.addEventListener("error",t,!0),()=>{e.removeEventListener("unhandledrejection",t),e.removeEventListener("error",t,!0)}}(window)},87985:(e,t,r)=>{r.d(t,{J:()=>
1o});var n=r(15137);r(68965);var i=r(68278),a=r(4474);function o(e){let{className:t,...r}=e;return(0,n.jsx)(i.b,{"data-slot":"label",className:(0,a.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...r})}},90050:(e,t,r)=>{r.d(t,{K:()=>d});var n=r(15137),i=r(71946),a=r(68965),o=r(97337),s=r(87204),l=r(36120);function d(e){let{graceMs:t=9e3}=e,[r,d]=(0,a.useState)(!1),c=(0,a.useRef)(!1),u=(0,a.useCallback)(()=>{if(!c.current){if(c.current=!0,(0,o.Kj)()){let e=new URLSearchParams(window.location.search),t=e.get("redirect")||e.get("redirectTo")||e.get("next")||"/";window.location.assign("/old_login?redirect=".concat(encodeURIComponent(t)));return}d(!0)}},[]);return((0,a.useEffect)(()=>{let e=(0,s.r0)(()=>{(0,l.c)()||u()}),r=window.setTimeout(()=>{(0,l.qI)()||u()},t),n=window.setInterval(()=>{!(0,s.N9)()&&(0,l.qI)()&&(d(!1),window.clearInterval(n))},1e3);return()=>{e(),window.clearTimeout(r),window.clearInterval(n)}},[t,u]),r)?(0,n.jsx)("div",{role:"alert",className:"w-full max-w-md px-6",children:(0,n.jsxs)("div",{className:"rounded-xl border border-[#E7E2D9] bg-white p-6 text-center shadow-sm",children:[(0,n.jsx)("h2",{className:"text-lg font-semibold text-[#5C4466]",children:"Trouble loading sign-in"}),(0,n.jsxs)("p",{className:"mt-2 text-sm text-gray-600",children:["We couldnât load our secure sign-in. This is usually a corporate firewall or network restriction blocking"," ",(0,n.jsx)("code",{className:"text-[#5C4466]",children:"clerk.winelabs.ai"}),"."]}),(0,n.jsxs)("ul",{className:"mt-3 space-y-1 text-left text-sm text-gray-600",children:[(0,n.jsxs)("li",{children:["⢠Try a ",(0,n.jsx)("strong",{children:"different network"})," â e.g. a mobile hotspot or home Wi-Fi."]}),(0,n.jsxs)("li",{children:["⢠Or ask your IT team to allow"," ",(0,n.jsx)("code",{className:"text-[#5C4466]",children:"clerk.winelabs.ai"}),"."]})]}),(0,n.jsxs)("button",{type:"button",onClick:()=>window.location.reload(),className:"mt-4 inline-flex items-center justify-center rounded-lg bg-[#5C4466] px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-[#4A3654]",children:[" ",(0,n.jsx)(i.T,{children:"Try again"})," "]})]})}):null}}}]);
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.