PageSourceSearch

https://c-alfakem-production.web.app/_nuxt/Dx1sSoS7.js

js c-alfakem-production.web.app collected 2026-10-03 12:20:56 UTC 4,283 bytes, 1 lines download raw bytes

1import{z as H,a as G,M as J,r as a,w as Q,b as W,d as X,e as Y,f as p,j as e,_ as Z,aD as ee,y as i,A as se,B as oe,as as te,k as m,m as b,F as ae,l as s,t as n,x as r,V as ne,O as $,R as re,P as T,T as V,ad as A,v as le,an as ie}from"./mEzNQUA2.js";import{_ as de}from"./C07Bvf6I.js";import{_ as ue}from"./CLopXEX8.js";import{f as ce}from"./BTvaqRG8.js";import{u as pe}from"./D55JvYcf.js";const me={key:0},_e={class:"alert alert-success"},ve={key:1},fe={class:"form-group"},we={for:"new-password"},be={class:"input-group mb-3"},ye=["type"],ge={class:"input-group-append"},he=["aria-label","aria-pressed"],ke={class:"form-group"},qe={for:"new-password-confirm"},Pe={class:"input-group mb-3"},$e=["type"],Ve={class:"input-group-append"},Ce=["aria-label","aria-pressed"],Ne=["disabled"],xe={key:2},Se={class:"alert alert-warning"},Be=H({__name:"password",async setup(Re){let _,C;const{locale:N,t:x}=G(),S=J(),y=a(x("type_25")),E=se(oe),L=i(()=>E?.value?.can_request_password),g=i(()=>parseInt(S.query?.i)),h=i(()=>S.query?.u),B=i(()=>!!h.value&&!Number.isNaN(g.value)),{data:R}=([_,C]=Q(()=>
1ee("/user/passwordrequest/validate",{method:"POST",body:i(()=>({id:g.value,vc:h.value})),key:"validate-password-request",immediate:B.value})),_=await _,C(),_),c=a(""),d=a(!1),v=a(""),u=a(!1),f=a(!1),k=a(!1),q=a(!1),I=a(""),M=i(()=>B.value&&R.value?.valid!==!1&&!q.value),D=i(()=>{const o=I.value||R.value?.reason;return o==="invalid"?"v1.views.login.password.requestInvalid":o==="expired"||!q.value?"v1.views.login.password.requestExpired":"v1.messages.updateError"}),F=a([{title:{[N.value]:x("login")},description:{},selected:!1,url:"/login"},{title:{[N.value]:y.value},description:{},selected:!1,url:""}]),{routeBreadcrumb:U}=pe(F),O=async()=>{try{await ce(g.value,h.value,c.value),k.value=!0}catch(o){k.value=!1;const t=o?.data?.[0];I.value=t==="expired"||t==="invalid"?t:"",q.value=!0}};return W({title:y}),X(),(o,t)=>{const w=ne,P=de,j=ue,K=te("i18n-t"),z=Z;return m(),Y(z,{breadcrumb:e(U)},{default:p(()=>[e(L)?(m(),b(ae,{key:0},[s("h1",null,n(e(y)),1),e(k)?(m(),b("div",me,[s("div",_e,n(o.$t("v1.views.login.password.passwordChanged")),1),r(P,{to:"/",class:"d-inline-block mt-3"},{default:p(()=>[r(w,{icon:"fas fa-angle-left"}),$(" "+n(o.$t("v1.views.login.password.backToFrontpage")),1)]),_:1})])):e(M)?(m(),b("div",ve,[s("p",null,n(o.$t("change_password_below")),1),s("form",{onSubmit:re(O,["prevent"])},[s("div",fe,[s("label",we,n(o.$t("password")),1),s("div",be,[T(s("input",{id:"new-password","onUpdate:modelValue":t[0]||(t[0]=l=>V(c)?c.value=l:null),type:e(d)?"text":"password",class:"form-control pw-input",autocomplete:"new-password"},null,8,ye),[[A,e(c)]]),s("div",ge,[s("button",{type:"button",class:"input-group-text form-control peek","aria-label":e(d)?o.$t("v1.common.forms.hidePassword"):o.$t("v1.common.forms.showPassword"),"aria-pressed":e(d),onClick:t[1]||(t[1]=l=>d.value=!e(d))},[r(w,{icon:e(d)?"fas fa-eye":"fas fa-eye-slash"},null,8,["icon"])],8,he)])])]),s("div",ke,[s("label",qe,n(o.$t("confirm_new_password")),1),s("div",Pe,[T(s("input",{id:"new-password-confirm","onUpdate:modelValue":t[2]||(t[2]=l=>V(v)?v.value=l:null),type:e(u)?"text":"password",class:"form-control pw-input",autocomplete:"new-password"},null,8,$e),[[A,e(v)]]),s("div",Ve,[s("button",{type:"button",class:"input-group-text form-control peek","aria-label":e(u)?o.$t("v1.common.forms.hidePassword"):o.$t("v1.common.forms.showPassword"),"aria-pressed":e(u),onClick:t[3]||(t[3]=l=>u.value=!e(u))},[r(w,{icon:e(u)?"fas fa-eye":"fas fa-eye-slash"},null,8,["icon"])],8,Ce)])])]),r(j,{modelValue:e(f),"onUpdate:modelValue":t[4]||(t[4]=l=>V(f)?f.value=l:null),password:e(c),confirmed:e(v)},null,8,["modelValue","password","confirmed"]),s("button",{type:"submit",class:"btn btn-primary",disabled:!e(f)},n(o.$t("confirm")),9,Ne)],32)])):(m(),b("div",xe,[s("div",Se,[r(K,{keypath:e(D)},{link:p(()=>[r(P,{to:"/login/request"},{default:p(()=>[$(n(o.$t("v1.views.login.password.requestExpiredLink")),1)]),_:1})]),_:1},8,["keypath"])]),r(P,{to:"/login",class:"d-inline-block mt-3"},{default:p(()=>[r(w,{icon:"fas fa-angle-left"}),$(" "+n(o.$t("v1.views.login.request.backToLogin")),1)]),_:1})]))],64)):le("",!0)]),_:1},8,["breadcrumb"])}}}),Me=ie(Be,[["__scopeId","data-v-e3568068"]]);export{Me as default};

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.