1import{j as t}from"./index-CFGUo14Y.js";import{L as n}from"./chunk-OE4NN4TA-DqYUKxp0.js";import{w as s,f as c}from"./index-Cx3_vZob.js";import"./organization-BdJSRNgM-CtZF8fwV.js";import"./index-nCYghxO-.js";import{l as h}from"./langcapture-bS0KsRYa.js";import"./auth-client-C6jbVcy0.js";function u(a){const e=r=>c(a,r);return{appName:"LangCapture",back:e("Cloudflare.auth.back"),and:e("AuthPage.common.and"),byClickingContinue:e("AuthPage.common.byClickingContinue"),or:e("AuthPage.login.or"),privacyPolicy:e("AuthPage.common.privacyPolicy"),termsOfService:e("AuthPage.common.termsOfService"),login:{title:e("AuthPage.login.title"),description:e("AuthPage.login.welcomeBack"),email:e("AuthPage.login.email"),password:e("AuthPage.login.password"),submit:e("AuthPage.login.signIn"),switchLabel:e("AuthPage.login.signUpHint"),forgotPassword:e("AuthPage.login.forgotPassword"),signInWithGoogle:e("AuthPage.login.signInWithGoogle"),signInWithGitHub:e("AuthPage.login.signInWithGitHub"),showPassword:e("AuthPage.login.showPassword"),hidePassword:e("AuthPage.login.hidePassword"),emailRequired:e("AuthPage.login.emailRequired"),passwordRequired:e("AuthPage.login.passwordRequired")},register:{title:e("AuthPage.register.title"),description:e("AuthPage.register.createAccount"),name:e("AuthPage.register.name"),email:e("AuthPage.register.email"),password:e("AuthPage.register.password"),submit:e("AuthPage.register.signUp"),switchLabel:e("AuthPage.register.signInHint"),checkEmail:e("AuthPage.register.checkEmail"),signInWithGoogle:e("Cloudflare.auth.register.signInWithGoogle"),signInWithGitHub:e("Cloudflare.auth.register.signInWithGitHub"),showPassword:e("AuthPage.register.showPassword"),hidePassword:e("AuthPage.register.hidePassword"),nameRequired:e("AuthPage.register.nameRequired"),emailRequired:e("AuthPage.register.emailRequired"),passwordRequired:e("AuthPage.register.passwordRequired")},forgotPassword:{title:e("AuthPage.forgotPassword.title"),email:e("AuthPage.forgotPassword.email"),submit:e("AuthPage.forgotPassword.send"),backToLogin:e("AuthPage.forgotPassword.backToLogin"),checkEmail:e("AuthPage.forgotPassword.checkEmail"),emailRequired:e("AuthPage.forgotPassword.emailRequired")},resetPassword:{title:e("AuthPage.resetPassword.title"),password:e("AuthPage.resetPassword.password"),submit:e("AuthPage.resetPassword.reset"),backToLogin:e("AuthPage.resetPassword.backToLogin"),invalidToken:e("AuthPage.resetPassword.invalidToken"),showPassword:e("AuthPage.resetPassword.showPassword"),hidePassword:e("AuthPage.resetPassword.hidePassword"),minLength:e("AuthPage.resetPassword.minLength")},error:{title:e("AuthPage.error.title"),tryAgain:e("AuthPage.error.tryAgain"),backToLogin:e("AuthPage.error.backToLogin")},socialSignup:{title:e("Cloudflare.auth.socialSignup.title"),description:e("Cloudflare.auth.socialSignup.description"),goToDashboard:e("Cloudflare.auth.socialSignup.goToDashboard")}}}function y(a,e,r){return e||r||s(a,"/dashboard")}function d(a){if(!a)return null;if(a.startsWith("/"))return a;try{const e=new URL(a);return typeof window>"u"?e.pathname+e.search+e.hash:e.origin!==window.location.origin?null:e.toString()}catch{return null}}function C({callbackUrl:a,locale:e,provider:r}){const i=new URLSearchParams({callbackUrl:a,provider:r});return`${s(e,"/auth/social-signup")}?${i.toString()}`}function N({locale:a,rawCallbackUrl:e,targetPath:r}){const i=s(a,r),o=d(e);if(!o)return i;const l=new URLSearchParams({callbackUrl:o});return`${i}?${l.toString()}`}function L({children:a,locale:e}){return t.jsxs("main",{className:"auth-shell",children:[t.jsxs(n,{className:"auth-back",onClick:p,to:s(e,"/"),children:[t.jsx(f,{}),t.jsx("span",{children:u(e).back})]}),t.jsx("div",{className:"auth-stack",children:a})]})}function S({bottomHref:a,bottomLabel:e,children:r,description:i,locale:o}){return t.jsxs("section",{className:"auth-card",children:[t.jsxs("div",{className:"auth-card-header",children:[t.jsxs(n,{className:"auth-logo-link",to:s(o,"/"),children:[t.jsx("img",{alt:"",className:"auth-logo",height:"32",src:h,width:"32"}),t.jsx("strong",{children:"LangCapture"})]}),t.jsx("p",{children:i})]}),t.jsx("div",{className:"auth-card-body",children:r}),t.jsx("div",{className:"auth-card-footer",children:t.jsx(n,{className:"auth-footer-link",to:a,children:e})})]})}function I({locale:a}){const e=u(a);return t.jsxs("p",{className:"auth-legal",children:[e.byClickingContinue,t.jsx(n,{to:s(a,"/terms"),children:e.termsOfService}),e.and,t.jsx(n,{to:s(a,"/privacy"),children:e.privacyPolicy})]})}function R({message:a,tone:e}){return a?t.jsx("div",{className:`auth-message ${e}`,children:a}):null}function Z({text:a}){return t.jsx("div",{className:"auth-divider",children:t.jsx("span",{children:a})})}function B({disabled:a,icon:e,label:r,onClick:i}){return t.jsxs("button",{className:"auth-button auth-button-secondary auth-button-icon",disabled:a,onClick:i,type:"button",children:[e,t.jsx("span",{children:r})]})}function q({disabled:a,label:e}){return t.jsxs("button",{className:"auth-button auth-button-primary",disabled:a,type:"submit",children:[a?t.jsx(g,{}):null,t.jsx("span",{children:e})]})}function G({message:a}){return a?t.jsx("p",{className:"auth-field-error",children:a}):null}function T({hiddenLabel:a,onClick:e,visible:r,visibleLabel:i}){return t.jsx("button",{"aria-label":r?a:i,className:"auth-password-toggle",onClick:e,type:"button",children:r?t.jsx(P,{}):t.jsx(m,{})})}function M(){return t.jsxs("svg",{"aria-hidden":"true",className:"auth-provider-icon",viewBox:"0 0 24 24",children:[t.jsx("path",{d:"M21.81 12.23c0-.72-.06-1.25-.19-1.8H12.2v3.49h5.53c-.11.87-.68 2.18-1.93 3.06l-.02.12 2.83 2.19.2.02c1.84-1.69 2.9-4.18 2.9-7.08Z",fill:"#4285F4"}),t.jsx("path",{d:"M12.2 22c2.71 0 4.98-.89 6.64-2.42l-3.01-2.33c-.8.56-1.88.94-3.63.94-2.65 0-4.9-1.74-5.71-4.15l-.11.01-2.95 2.28-.04.1C4.99 19.6 8.31 22 12.2 22Z",fill:"#34A853"}),t.jsx("path",{d:"M6.49 14.04A5.88 5.88 0 0 1 6.16 12c0-.71.12-1.4.32-2.04l-.01-.14-2.99-2.31-.1.05A9.96 9.96 0 0 0 2.3 12c0 1.61.39 3.13 1.08 4.44l3.11-2.4Z",fill:"#FBBC05"}),t.jsx("path",{d:"M12.2 5.81c2.21 0 3.7.95 4.55 1.75l3.32-3.24C17.17 1.61 14.9 0 12.2 0 8.31 0 4.99 2.4 3.38 5.56l3.1 2.4C7.29 5.55 9.5
15 3.81 12.2 3.81Z",fill:"#EB4335"})]})}function U(){return t.jsx("svg",{"aria-hidden":"true",className:"auth-provider-icon",viewBox:"0 0 24 24",children:t.jsx("path",{d:"M12 1.5A10.5 10.5 0 0 0 8.68 22c.53.1.72-.23.72-.5v-1.93c-2.94.64-3.56-1.42-3.56-1.42-.48-1.21-1.17-1.53-1.17-1.53-.96-.66.07-.65.07-.65 1.06.08 1.62 1.08 1.62 1.08.94 1.6 2.47 1.14 3.08.87.1-.69.37-1.14.67-1.4-2.35-.27-4.82-1.17-4.82-5.22 0-1.15.4-2.09 1.08-2.83-.1-.26-.47-1.35.1-2.8 0 0 .88-.28 2.9 1.08a10.02 10.02 0 0 1 5.28 0c2.02-1.36 2.9-1.08 2.9-1.08.57 1.45.2 2.54.1 2.8.68.74 1.08 1.68 1.08 2.83 0 4.06-2.48 4.94-4.84 5.2.38.33.72.96.72 1.94v2.88c0 .27.19.6.73.5A10.5 10.5 0 0 0 12 1.5Z",fill:"currentColor"})})}function E(){return t.jsx("svg",{"aria-hidden":"true",className:"auth-inline-icon",viewBox:"0 0 24 24",children:t.jsx("path",{d:"M12 3.5 2.5 20h19L12 3.5Zm0 4.17c.41 0 .75.34.75.75v5.16a.75.75 0 1 1-1.5 0V8.42c0-.41.34-.75.75-.75Zm0 9.66a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",fill:"currentColor"})})}function g(){return t.jsx("span",{"aria-hidden":"true",className:"auth-spinner"})}function m(){return t.jsx("svg",{"aria-hidden":"true",className:"auth-inline-icon",viewBox:"0 0 24 24",children:t.jsx("path",{d:"M12 5.25c5.34 0 9.21 4.75 9.38 4.95.17.2.17.49 0 .69-.17.2-4.04 4.86-9.38 4.86S2.79 11.09 2.62 10.89a.56.56 0 0 1 0-.69c.17-.2 4.04-4.95 9.38-4.95Zm0 1.5c-3.91 0-6.96 3-7.8 3.9.84.89 3.89 3.6 7.8 3.6s6.96-2.71 7.8-3.6c-.84-.9-3.89-3.9-7.8-3.9Zm0 1.75a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm0 1.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z",fill:"currentColor"})})}function P(){return t.jsx("svg",{"aria-hidden":"true",className:"auth-inline-icon",viewBox:"0 0 24 24",children:t.jsx("path",{d:"m4.56 3.5 15.94 15.94-1.06 1.06-3.02-3.02c-1.3.66-2.79 1.02-4.42 1.02-5.34 0-9.21-4.66-9.38-4.86a.56.56 0 0 1 0-.69c.15-.18 2.94-3.6 6.9-4.52L3.5 4.56 4.56 3.5Zm6.18 6.18a2.75 2.75 0 0 0 3.58 3.58l-3.58-3.58Zm1.26-4.43c5.34 0 9.21 4.75 9.38 4.95.17.2.17.49 0 .69-.11.13-1.76 2.1-4.38 3.47l-1.14-1.14c1.84-.9 3.18-2.25 3.84-3.02-.84-.9-3.89-3.95-7.8-3.95-.94 0-1.82.17-2.62.45L8.2 5.62A11.33 11.33 0 0 1 12 5.25Z",fill:"currentColor"})})}function f(){return t.jsx("svg",{"aria-hidden":"true",className:"auth-inline-icon",viewBox:"0 0 24 24",children:t.jsx("path",{d:"M14.78 5.22a.75.75 0 0 1 0 1.06L10.06 11H20a.75.75 0 0 1 0 1.5h-9.94l4.72 4.72a.75.75 0 1 1-1.06 1.06l-6-6a.75.75 0 0 1 0-1.06l6-6a.75.75 0 0 1 1.06 0Z",fill:"currentColor"})})}function p(a){typeof window>"u"||window.history.length>1&&(a.preventDefault(),window.history.back())}export{L as A,G as F,M as G,T as P,S as a,R as b,q as c,Z as d,B as e,U as f,N as g,I as h,C as i,E as j,d as k,y as r};
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.