PageSourceSearch

https://sscpds.ancom.ro/_nuxt/BC584K1c.js

js ancom.ro collected 2026-10-02 04:21:00 UTC 4,239 bytes, 1 lines download raw bytes

1import{f as O,g as R,h as q,r as _,p as E,i as H,o as u,c,a as t,t as l,k as o,F as h,j as G,q as $,ag as J,b as L,w as K,d as N,e as Q,ah as W}from"./DyNFu711.js";import X from"./C8KKOoSk.js";import{a as Y,e as Z}from"./Dx6q48Bo.js";import{u as ee}from"./D4vMoT5m.js";import{u as te}from"./DkOUL9A9.js";import{u as oe}from"./CybwWwwP.js";import{u as ae}from"./BcSw_gwq.js";import{u as se}from"./BHdmTTFN.js";import{u as re}from"./CyoQxZyk.js";const ne={class:"flex items-center w-full bg-[#F5F5F5] dark:bg-dark"},ie={class:"h-max mx-auto flex flex-col items-center"},le={class:"text-xl font-bold text-center p-10 text-black"},ue={key:0,class:"flex flex-col w-full mb-8 shadow-xl"},ce=["onClick"],de={key:0,class:"text-red-600"},fe={class:"text-gray-600 dark:text-gray-50 font-bold inline-block pb-2",for:"email"},me={class:"text-gray-600 dark:text-gray-50 font-bold inline-block pb-2",for:"password"},pe={class:"flex"},ge={class:"w-1/2"},_e=["disabled"],be={class:"ml-2"},he={class:"flex gap-4 flex-col w-[420px] text-justify my-10 text-gray-800 dark:text-gray-50"},we=["innerHTML"],Pe=O({__name:"login",async setup(ve){let f,w;te({title:"SSCPDS Autentificare",ogTitle:"SSCPDS Autentificare",description:"SSCPDS Autentificare",ogDescription:"SSCPDS Autentificare"});const{getByDenumire:M}=oe(),v=R(),x=Y(),P=q(),{lang:m,renderMarkDown:y}=ae(),{getFurnizor:xe,getRaportor:ye,getCertifiedUsers:F}=se(),{auth:z,authRoles:A,authCertified:T}=re(),k=ee(),n=_(!1),p=_(!1),d=_(null),g=_([]);E(async()=>{var s;await k.fetchConfig();const e=k.config.value.find(r=>r.label==="login_url");e&&!((s=P.query)!=null&&s.skip)&&window.location.replace(e.value);var a=await F();g.value=a});var B=([f,w]=H(()=>M("login")),f=await f,w(),f);d.value=B[0];async function V(e){if(!e.target)return;n.value=!0,p.value=!1;const a=e.target,s=a.elements.namedItem("utilizator").value,r=a.elements.namedItem("parola").value;var i=await z(s,r,m());if(!i){p.value=!0,n.value=!1;return}x.value=i,await S(i),n.value=!1}const j=async e=>{n.value=!0;const a=Z(),s=g.value.find(i=>i.userName===e);s&&(a.value=s),await T(e,m());var r=await A();if(!r){p.value=!0,n.value=!1;return}x.value=r,await S(r),n.value=!1},S=async e=>{var s;var a=((s=e.roles)==null?void 0:s.find(r=>r==="SSCPDS Intern"))!==void 0;if(a){window.location.href="/admin";return}W(v("/admin"))};return(e,a)=>{var i,C,D,I,U;const s=Q,r=X;return u(),c("div",ne,[t("span",ie,[t("h1",le,l(e.$t("t",{t:o(m)()==="ro"?(i=o(d))==null?void 0:i.titlu:(C=o(d))==null?void 0:C.titlu_en})),1),(D=o(g))!=null&&D.length?(u(),c("ul",ue,[(u(!0),c(h,null,G(o(g),b=>(u(),c("li",{key:b.userName,class:"cursor-pointer hover:bg-gray-50 bg-white px-8 py-4 border-b border-gray-300 last:border-b-0",onClick:ke=>j(b.userName)},l(b.displayName),9,ce))),128))])):$("",!0),t("form",{onSubmit:J(V,["prevent"]),class:"bg-white dark:bg-gray-800 shadow-xl p-10 flex flex-col gap-4 text-sm"},[o(p)?(u(),c("div",de,l(e.$t("autentificare_nereusita")),1)):$("",!0),t("div",null,[t("label",fe,l(e.$t("nume_utilizator")),1),a[0]||(a[0]=t("input",{class:"border border-gray-400 focus:outline-slate-400 rounded-md w-full shadow-sm px-5 py-2 text-black bg-white",type:"text",name:"utilizator"},null,-1))]),t("div",null,[t("label",me,l(e.$t("parola")),1),a[1]||(a[1]=t("input",{class:"border border-gray-400 focus:outline-slate-400 rounded-md w-full shadow-sm px-5 py-2 text-black bg-white",type:"password",name:"parola"},null,-1))]),t("div",pe,[t("div",ge,[L(s,{to:o(v)("/recuperare-parola"),class:"font-bold text-red-600 hover:underline cursor-pointer"},{default:K(()=>[N(l(e.$t("recuperare_parola")),1)]),_:1},8,["to"])])]),t("div",null,[t("button",{type:"submit",disabled:o(n),class:"w-full py-2 rounded-md font-bold flex items-center justify-center bg-red-600 text-white hover:bg-red-500 cursor-pointer disabled:bg-gray-400 disabled:cursor-not-allowed"},[o(n)?(u(),c(h,{key:0},[L(r,{name:"i-heroicons-arrow-path",class:"h-5 w-5 animate-spin"}),t("span",be,l(e.$t("login")),1)],64)):(u(),c(h,{key:1},[N(l(e.$t("login")),1)],64))],8,_e)])],32),t("span",he,[t("span",{class:"markdown",innerHTML:e.$t("t",{t:o(m)()==="ro"?o(y)((I=o(d))==null?void 0:I.continut):o(y)((U=o(d))==null?void 0:U.continut_en)})},null,8,we)])])])}}});
1export{Pe 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.