PageSourceSearch

https://www.bioer.com/_nuxt/Cok-AqhA.js

js bioer.com collected 2026-10-09 22:41:37 UTC 7,275 bytes, 1 lines download raw bytes

1import{Dr as e,Et as t,Jn as n,Kn as r,Ot as i,Tt as a,Xr as o,_r as s,ei as c,gt as l,hr as u,ht as d,p as ee,pn as f,sn as p,vt as m,yt as h}from"./DKhRV_XD.js";import{gt as g,pt as _,ut as v}from"./CJ1xrPqG.js";import{k as te,t as ne}from"./CzadGzg9.js";import{n as re}from"./C-6T4v8M.js";import{T as ie}from"#entry";import{a as ae}from"./ldA8f0dC.js";var oe={class:`app-full-bleed min-h-[calc(100dvh-5rem)] overflow-hidden bg-auth-bg`},se={class:`relative mx-auto grid min-h-[calc(100dvh-5rem)] w-full max-w-480 place-items-center px-6 py-10 sm:px-10 lg:px-16 xl:px-24 2xl:px-32`},ce={class:`mx-auto w-full max-w-lg`},le={class:`mb-5 flex rounded-box bg-white p-1 shadow-[0_8px_22px_rgb(15_23_42/0.06)]`},ue=[`aria-busy`],y={class:`border-b border-divider pb-5`},b={class:`app-section-kicker`},x={class:`mt-2 text-3xl font-black leading-tight text-base-content`},S={class:`mt-6 grid gap-4`},C={key:0,class:`grid gap-2`},w={class:`text-sm font-bold text-base-content`},T=[`placeholder`,`disabled`],E={class:`grid gap-2`},D={class:`text-sm font-bold text-base-content`},O=[`type`,`autocomplete`,`placeholder`,`disabled`],k={class:`grid gap-2`},A={class:`text-sm font-bold text-base-content`},j={class:`app-field-elevation flex w-full overflow-hidden rounded-field bg-base-100`},M=[`type`,`autocomplete`,`placeholder`,`disabled`],N=[`disabled`,`aria-pressed`],P={key:0,class:`mt-5 rounded-field border border-error/25 bg-error/8 px-4 py-3 text-sm font-semibold text-error`,role:`alert`},F={key:1,class:`mt-5 rounded-field border border-success/25 bg-success/8 px-4 py-3 text-sm font-semibold text-success`,role:`status`},I={key:2,class:`mt-5 rounded-field border border-success/25 bg-success/8 px-4 py-3 text-sm font-semibold text-success`,role:`status`},L=[`disabled`],R={class:`mt-5 text-center text-sm leading-6 text-base-content/60`},z=Object.assign(i({__name:`AuthAccessPanel`,props:{mode:{}},setup(i){let z=i,B=ee(),V=ne(),{t:H}=re(),{user:U,pending:W,error:G,isAuthenticated:de,login:fe,register:pe}=ie(),K=u({username:``,identifier:``,password:``}),q=s(``),J=s(!1),Y=s(!1),X=s(!1);p(()=>{X.value=!0});let Z=d(()=>z.mode),Q=d(()=>({loginTab:H(`auth.tab.login`),registerTab:H(`auth.tab.register`),usernameLabel:H(`auth.form.usernameLabel`),usernamePlaceholder:H(`auth.form.usernamePlaceholder`),passwordLabel:H(`auth.form.passwordLabel`),passwordPlaceholder:H(`auth.form.passwordPlaceholder`),showPassword:H(`auth.form.showPassword`),hidePassword:H(`auth.form.hidePassword`)})),me=d(()=>Z.value===`login`?H(`auth.login.eyebrow`):H(`auth.register.eyebrow`)),he=d(()=>Z.value===`login`?H(`auth.login.title`):H(`auth.register.title`)),ge=d(()=>Z.value===`login`?H(`auth.form.identifierLabel`):H(`auth.form.emailLabel`)),$=d(()=>H(`auth.form.emailPlaceholder`)),_e=d(()=>Z.value===`login`?H(`auth.login.submit`):H(`auth.register.submit`)),ve=d(()=>Z.value===`login`?H(`auth.login.loading`):H(`auth.register.loading`)),ye=d(()=>Z.value===`login`?H(`auth.login.switchText`):H(`auth.register.switchText`)),be=d(()=>Z.value===`login`?H(`auth.login.switchLabel`):H(`auth.register.switchLabel`)),xe=d(()=>V(Z.value===`login`?`/register`:`/login`));function Se(){return Z.value===`register`&&K.username.trim().length<2?H(`auth.validation.usernameMin`):K.identifier.trim()?Z.value===`register`&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(K.identifier.trim())?H(`auth.validation.emailInvalid`):K.password.length<8?H(`auth.validation.passwordMin`):``:Z.value===`login`?H(`auth.validation.identifierRequired`):H(`auth.validation.emailRequired`)}async function Ce(){if(q.value=Se(),!(q.value||W.value)){Y.value=!1;try{if(Z.value===`login`)await fe({identifier:K.identifier,password:K.password});else if((await pe({username:K.username,email:K.identifier,password:K.password})).requiresEmailConfirmation){K.password=``,Y.value=!0;return}await B.push(V(`/`))}catch{q.value=``}}}return ae(()=>Z.value===`login`?H(`auth.tab.login`):H(`auth.tab.register`),{noindex:!0}),(i,s)=>{let u=te;return f(),h(`section`,oe,[s[4]||=l(`div`,{class:`absolute inset-x-0 top-0 h-48 bg-linear-to-b from-primary/8 to-transparent`,"aria-hidden":`true`}
1,null,-1),l(`div`,se,[l(`div`,ce,[l(`div`,le,[t(u,{to:e(V)(`/login`),class:o([`flex-1 rounded-field px-4 py-3 text-center text-sm font-black transition-colors`,e(Z)===`login`?`bg-primary text-primary-content`:`text-base-content/62 hover:bg-base-200`])},{default:r(()=>[a(c(e(Q).loginTab),1)]),_:1},8,[`to`,`class`]),t(u,{to:e(V)(`/register`),class:o([`flex-1 rounded-field px-4 py-3 text-center text-sm font-black transition-colors`,e(Z)===`register`?`bg-primary text-primary-content`:`text-base-content/62 hover:bg-base-200`])},{default:r(()=>[a(c(e(Q).registerTab),1)]),_:1},8,[`to`,`class`])]),l(`form`,{class:`rounded-box bg-white p-6 shadow-lift sm:p-8`,method:`post`,"aria-busy":e(W),onSubmit:g(Ce,[`prevent`])},[l(`div`,y,[l(`p`,b,c(e(me)),1),l(`h1`,x,c(e(he)),1)]),l(`div`,S,[e(Z)===`register`?(f(),h(`label`,C,[l(`span`,w,c(e(Q).usernameLabel),1),n(l(`input`,{"onUpdate:modelValue":s[0]||=t=>e(K).username=t,name:`username`,type:`text`,autocomplete:`username`,maxlength:`80`,spellcheck:`false`,class:`input app-field`,placeholder:e(Q).usernamePlaceholder,required:``,disabled:e(W)||e(Y)},null,8,T),[[_,e(K).username,void 0,{trim:!0}]])])):m(``,!0),l(`label`,E,[l(`span`,D,c(e(ge)),1),n(l(`input`,{"onUpdate:modelValue":s[1]||=t=>e(K).identifier=t,name:`identifier`,type:e(Z)===`register`?`email`:`text`,autocomplete:e(Z)===`register`?`email`:`username`,maxlength:`180`,spellcheck:`false`,class:`input app-field`,placeholder:e($),required:``,disabled:e(W)||e(Y)},null,8,O),[[v,e(K).identifier,void 0,{trim:!0}]])]),l(`label`,k,[l(`span`,A,c(e(Q).passwordLabel),1),l(`div`,j,[n(l(`input`,{"onUpdate:modelValue":s[2]||=t=>e(K).password=t,name:`password`,type:e(J)?`text`:`password`,autocomplete:e(Z)===`register`?`new-password`:`current-password`,maxlength:`256`,class:`input min-w-0 flex-1 rounded-none border-0 bg-transparent text-base-content placeholder:text-base-content/38 focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 disabled:bg-base-200/45`,placeholder:e(Q).passwordPlaceholder,minlength:`8`,required:``,disabled:e(W)||e(Y)},null,8,M),[[v,e(K).password]]),l(`button`,{class:`shrink-0 bg-transparent px-4 text-sm font-black text-primary transition-colors duration-200 hover:bg-primary/8 disabled:text-base-content/35`,type:`button`,disabled:e(W),"aria-pressed":e(J),onClick:s[3]||=t=>J.value=!e(J)},c(e(J)?e(Q).hidePassword:e(Q).showPassword),9,N)])])]),t(u,{to:e(V)(`/forgot-password`),class:`mt-4 inline-flex min-h-11 items-center text-sm font-bold text-primary hover:underline`},{default:r(()=>[a(c(e(H)(`auth.recovery.title`)),1)]),_:1},8,[`to`]),e(q)||e(G)?(f(),h(`p`,P,c(e(q)||e(G)),1)):m(``,!0),e(Y)?(f(),h(`div`,F,c(e(H)(`auth.status.confirmationSent`)),1)):e(de)?(f(),h(`div`,I,c(e(H)(`auth.status.signedInAs`,{account:e(U)?.email||e(U)?.username})),1)):m(``,!0),l(`button`,{type:`submit`,class:`app-btn app-btn-primary mt-6 w-full text-base font-black`,disabled:e(W)||e(Y)||!e(X)},c(e(W)?e(ve):e(_e)),9,L),l(`p`,R,[a(c(e(ye))+` `,1),t(u,{to:e(xe),class:`font-black text-primary hover:underline`},{default:r(()=>[a(c(e(be)),1)]),_:1},8,[`to`])])],40,ue)])])])}}}),{__name:`AuthAccessPanel`});export{z as t};

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.