PageSourceSearch

https://moj.hdz.hr/chunk-PNW2VU7Z.js

js hdz.hr collected 2026-10-02 12:08:31 UTC 15,051 bytes, 1 lines download raw bytes

1import{e as _,p as S}from"./chunk-MUETNEQK.js";import{Na as z,bb as N,cb as v,db as x,fb as L,gb as h,ib as E,jb as D,lb as F,mb as T,nb as I,pb as A,rb as R,tb as V,ub as B}from"./chunk-PXKWUWMJ.js";import{Aa as i,Ib as a,Ja as m,Jb as j,Oa as p,Z as k,_ as y,_a as P,bb as s,cb as c,gb as g,hb as t,ib as n,ja as d,jb as u,qb as w,vb as b,wb as f}from"./chunk-OYLHMCFN.js";import"./chunk-EQDQRRRY.js";function q(o,r){o&1&&(t(0,"div",7),u(1,"i",8),t(2,"div")(3,"strong"),a(4,"Upute su poslane."),n(),t(5,"p"),a(6,"Provjerite e-mail sandu\u010Di\u0107 (i mapu ne\u017Eeljene po\u0161te). Poveznica za postavljanje lozinke vrijedi 12 sati."),n()()(),t(7,"div",9)(8,"a",10),a(9,"Natrag na prijavu"),n()())}function Z(o,r){o&1&&(t(0,"small",15),a(1,"Unesite ispravnu e-mail adresu."),n())}function J(o,r){o&1&&(t(0,"small",15),a(1,"Unesite \u010Dlanski broj."),n())}function K(o,r){if(o&1&&(t(0,"div",19),u(1,"i",21),t(2,"div"),a(3),n()()),o&2){let e=f(2);i(3),j(e.error())}}function Q(o,r){if(o&1){let e=w();t(0,"form",11),b("ngSubmit",function(){k(e);let O=f();return y(O.onSubmit())}),t(1,"div",12)(2,"label",13),a(3,"E-mail"),n(),u(4,"input",14),s(5,Z,2,0,"small",15),n(),t(6,"div",12)(7,"label",16),a(8,"\u010Clanski broj"),n(),u(9,"input",17),s(10,J,2,0,"small",15),t(11,"small",18),a(12,"\u010Clanski broj nalazi se na va\u0161oj \u010Dlanskoj iskaznici."),n()(),s(13,K,4,1,"div",19),u(14,"p-button",20),t(15,"div",9)(16,"span"),a(17,"Ve\u0107 imate lozinku?"),n(),t(18,"a",10),a(19,"Prijavite se"),n()()()}if(o&2){let e=f();g("formGroup",e.form),i(4),P("aria-invalid",e.form.controls.email.touched&&e.form.controls.email.invalid?"true":null),i(),c(e.form.controls.email.touched&&e.form.controls.email.invalid?5:-1),i(4),P("aria-invalid",e.form.controls.memberNumber.touched&&e.form.controls.memberNumber.invalid?"true":null),i(),c(e.form.controls.memberNumber.touched&&e.form.controls.memberNumber.invalid?10:-1),i(3),c(e.error()?13:-1),i(),g("label",e.submitting()?"Slanje\u2026":"Po\u0161alji upute")("loading",e.submitting())("disabled",e.submitting())}}var C=class o{constructor(r,e){this.fb=r;this.memberApi=e;this.form=this.fb.group({email:["",[h.required,h.email]],memberNumber:["",[h.required,h.maxLength(40)]]})}submitting=d(!1);submitted=d(!1);error=d("");form;onSubmit(){if(this.form.invalid||this.submitting()){this.form.markAllAsTouched();return}let r=this.form.getRawValue();this.submitting.set(!0),this.error.set(""),this.memberApi.requestFirstLogin({email:r.email??"",memberNumber:r.memberNumber??""}).subscribe({next:()=>{this.submitted.set(!0),this.submitting.set(!1)},error:e=>{let l=e?.error?.error?.message??e?.error?.message;this.error.set(typeof l=="string"&&l.trim()?l:"Nije mogu\u0107e potvrditi podatke. Provjerite e-mail i \u010Dlanski broj."),this.submitting.set(!1)}})}static \u0275fac=function(e){return new(e||o)(m(A),m(z))};static \u0275cmp=p({type:o,selectors:[["app-first-login"]],decls:10,vars:1,consts:[[1,"auth-page"],[1,"auth-card"],[1,"auth-card__header"],["src","/images/hdz_logo_primary.svg","alt","Hrvatska demokratska zajednica",1,"auth-card__logo"],[1,"auth-card__title"],[1,"auth-card__subtitle"],["novalidate","",1,"auth-form",3,"formGroup"],["role","status",1,"auth-alert","auth-alert--success"],["aria-hidden","true",1,"pi","pi-check-circle"],[1,"auth-card__footer"],["routerLink","/auth/login",1,"auth-link"],["novalidate","",1,"auth-form",3,"ngSubmit","formGroup"],[1,"auth-field"],["for","email"],["pInputText","","id","email","type","email","formControlName","email","autocomplete","email","inputmode","email","autofocus",""],[1,"auth-field__error"],["for","memberNumber"],["pInputText","","id","memberNumber","type","text","formControlName","memberNumber","autocomplete","off","inputmode","numeric"],[1,"auth-field__hint"],["role","alert",1,"auth-alert","auth-alert--error"],["type","submit","styleClass","auth-button",3,"label","loading","disabled"],["aria-hidden","true",1,"pi","pi-exclamation-circle"]],template:function(e,l){e&1&&(t(0,"div",0)(1,"div",1)(2,"div",2),u(3,"img",3),t(4,"h1",4),a(5,"Prva prijava"),n(),t(6,"p",5),a(7," Unesite e-mail i \u010Dlanski broj. Ako podaci odgovaraju odobrenom \u010Dlanstvu, poslat \u0107emo vam poveznicu za postavljanje lozinke. "),n()(),s(8,q,10,0)(9,Q,20,9,"form",6),n()()),e&2&&(i(8),c(l.submitted()?8:9))},dependencies:[R,F,L,E,D,I,T,_,x,v,B,V],styles:["[_nghost-%COMP%]{--auth-blue: #005bbb;--auth-blue-dark: #00479a;--auth-blue-deep: #04357f;--auth-blue-soft: #eaf2ff;--auth-red: #e3212d;--auth-text: #0f2f64;--auth-muted: #4b5f7d;--auth-border: #c9daf6;--auth-radius: 8px}.auth-page[_ngcontent-%COMP%]{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.5rem;box-sizing:border-box;background:radial-gradient(circle at 20% 20%,#1f66c7 0%,var(--auth-blue) 35%,var(--auth-blue-deep) 100%)}.auth-card[_ngcontent-%COMP%]{width:100%;max-width:28rem;padding:2.5rem 2rem 1.75rem;border-radius:12px;border:1px solid var(--auth-border);background:#fff;box-shadow:0 18px 48px #061b4538;color:var(--auth-text)}.auth-card__header[_ngcontent-%COMP%]{text-align:center;margin-bottom:1.5rem}.auth-card__logo[_ngcontent-%COMP%]{display:block;width:auto;max-width:220px;height:58px;margin:0 auto 1.25rem;object-fit:contain}.auth-card__title[_ngcontent-%COMP%]{margin:0 0 .5rem;font-size:1.5rem;font-weight:700;line-height:1.25;color:var(--auth-text)}.auth-card__subtitle[_ngcontent-%COMP%]{margin:0;font-size:.9375rem;line-height:1.5;color:var(--auth-muted)}.auth-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem}.auth-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:left}.auth-field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-bottom:.4rem;font-size:.9375rem;font-weight:600;color:var(--auth-text)}.auth-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;padding:.75rem .875rem;font:inherit;font-size:1rem;color:var(--auth-text);background:var(--auth-blue-soft);border:1px solid var(--auth-border);border-radius:var(--auth-radius);box-shadow:none;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}.auth-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus, .auth-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus-visible{outline:none;background:#fff;border-color:var(--auth-blue);box-shadow:0 0 0 3px #005bbb29}.auth-field[_ngcontent-%COMP%]   input[aria-invalid=true][_ngcontent-%COMP%]{border-color:var(--auth-red);background:#fff}.auth-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:#8ea3c4}.auth-field__error[_ngcontent-%COMP%]{margin-top:.35rem;font-size:.8125rem;color:var(--auth-red)}.auth-field__hint[_ngcontent-%COMP%]{margin-top:.35rem;font-size:.8125rem;color:var(--auth-muted)}.auth-alert[_ngcontent-%COMP%]{display:flex;gap:.75rem;
1align-items:flex-start;padding:.875rem 1rem;border-radius:var(--auth-radius);font-size:.9375rem;line-height:1.45;text-align:left}.auth-alert[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{flex-shrink:0;margin-top:.125rem;font-size:1.125rem}.auth-alert[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:.25rem 0 0}.auth-alert[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-weight:600}.auth-alert--success[_ngcontent-%COMP%]{background:#e9f7ee;border:1px solid #bfe3cc;color:#14532d}.auth-alert--error[_ngcontent-%COMP%]{background:#fdecec;border:1px solid #f5c2c2;color:#8a1c1c}.auth-card__footer[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:.35rem;flex-wrap:wrap;margin-top:1.5rem;font-size:.9375rem;color:var(--auth-muted)}.auth-card__footer--spaced[_ngcontent-%COMP%]{margin-top:2rem;padding-top:1.25rem;border-top:1px solid var(--auth-blue-soft)}.auth-card__note[_ngcontent-%COMP%]{margin:.875rem 0 0;text-align:center;font-size:.8125rem;line-height:1.45;color:var(--auth-muted)}.auth-link[_ngcontent-%COMP%]{color:var(--auth-blue);font-weight:600;text-decoration:none}.auth-link[_ngcontent-%COMP%]:hover, .auth-link[_ngcontent-%COMP%]:focus-visible{color:var(--auth-blue-dark);text-decoration:underline}.auth-link[_ngcontent-%COMP%]:visited{color:var(--auth-blue)}[_nghost-%COMP%]     p-button{display:block;width:100%}[_nghost-%COMP%]     .auth-button.p-button{width:100%;justify-content:center;padding:.8125rem 1rem;font-size:1.0625rem;font-weight:700;letter-spacing:.02em;color:#fff;background:var(--auth-blue);border:1px solid var(--auth-blue);border-radius:var(--auth-radius);box-shadow:none;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease}[_nghost-%COMP%]     .auth-button.p-button:not(:disabled):hover{background:var(--auth-blue-dark);border-color:var(--auth-blue-dark)}[_nghost-%COMP%]     .auth-button.p-button:focus-visible{outline:none;box-shadow:0 0 0 3px #005bbb4d}[_nghost-%COMP%]     .auth-button.p-button:disabled{opacity:.7}@media(max-width:480px){.auth-page[_ngcontent-%COMP%]{padding:2.5rem 1rem 1rem;align-items:flex-start}.auth-card[_ngcontent-%COMP%]{padding:2rem 1.25rem 1.5rem}.auth-card__logo[_ngcontent-%COMP%]{height:48px}}"]})};var M=class o{constructor(r){this.authService=r}isLoading=d(!1);onSignIn(){this.isLoading.set(!0),this.authService.signIn()}static \u0275fac=function(e){return new(e||o)(m(S))};static \u0275cmp=p({type:o,selectors:[["app-login"]],decls:16,vars:2,consts:[[1,"auth-page"],[1,"auth-card"],[1,"auth-card__header"],["src","/images/hdz_logo_primary.svg","alt","Hrvatska demokratska zajednica",1,"auth-card__logo"],[1,"auth-card__title"],[1,"auth-card__subtitle"],["type","button","styleClass","auth-button",3,"onClick","label","loading"],[1,"auth-card__footer","auth-card__footer--spaced"],["routerLink","/auth/prva-prijava",1,"auth-link"],[1,"auth-card__note"]],template:function(e,l){e&1&&(t(0,"div",0)(1,"div",1)(2,"div",2),u(3,"img",3),t(4,"h1",4),a(5,"Dobrodo\u0161li u Moj HDZ"),n(),t(6,"p",5),a(7,"Portal za \u010Dlanove Hrvatske demokratske zajednice."),n()(),t(8,"p-button",6),b("onClick",function(){return l.onSignIn()}),n(),t(9,"div",7)(10,"span"),a(11,"Prva prijava?"),n(),t(12,"a",8),a(13,"Registrirajte se"),n()(),t(14,"p",9),a(15,"Pravo pristupa imaju samo aktivni \u010Dlanovi Hrvatske demokratske zajednice."),n()()()),e&2&&(i(8),g("label",l.isLoading()?"Preusmjeravanje\u2026":"Prijavi se")("loading",l.isLoading()))},dependencies:[_,x,v,N],styles:["[_nghost-%COMP%]{--auth-blue: #005bbb;--auth-blue-dark: #00479a;--auth-blue-deep: #04357f;--auth-blue-soft: #eaf2ff;--auth-red: #e3212d;--auth-text: #0f2f64;--auth-muted: #4b5f7d;--auth-border: #c9daf6;--auth-radius: 8px}.auth-page[_ngcontent-%COMP%]{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.5rem;box-sizing:border-box;background:radial-gradient(circle at 20% 20%,#1f66c7 0%,var(--auth-blue) 35%,var(--auth-blue-deep) 100%)}.auth-card[_ngcontent-%COMP%]{width:100%;max-width:28rem;padding:2.5rem 2rem 1.75rem;border-radius:12px;border:1px solid var(--auth-border);background:#fff;box-shadow:0 18px 48px #061b4538;color:var(--auth-text)}.auth-card__header[_ngcontent-%COMP%]{text-align:center;margin-bottom:1.5rem}.auth-card__logo[_ngcontent-%COMP%]{display:block;width:auto;max-width:220px;height:58px;margin:0 auto 1.25rem;object-fit:contain}.auth-card__title[_ngcontent-%COMP%]{margin:0 0 .5rem;font-size:1.5rem;font-weight:700;line-height:1.25;color:var(--auth-text)}.auth-card__subtitle[_ngcontent-%COMP%]{margin:0;font-size:.9375rem;line-height:1.5;color:var(--auth-muted)}.auth-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem}.auth-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:left}.auth-field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-bottom:.4rem;font-size:.9375rem;font-weight:600;color:var(--auth-text)}.auth-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;padding:.75rem .875rem;font:inherit;font-size:1rem;color:var(--auth-text);background:var(--auth-blue-soft);border:1px solid var(--auth-border);border-radius:var(--auth-radius);box-shadow:none;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}.auth-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus, .auth-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus-visible{outline:none;background:#fff;border-color:var(--auth-blue);box-shadow:0 0 0 3px #005bbb29}.auth-field[_ngcontent-%COMP%]   input[aria-invalid=true][_ngcontent-%COMP%]{border-color:var(--auth-red);background:#fff}.auth-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:#8ea3c4}.auth-field__error[_ngcontent-%COMP%]{margin-top:.35rem;font-size:.8125rem;color:var(--auth-red)}.auth-field__hint[_ngcontent-%COMP%]{margin-top:.35rem;font-size:.8125rem;color:var(--auth-muted)}.auth-alert[_ngcontent-%COMP%]{display:flex;gap:.75rem;
1align-items:flex-start;padding:.875rem 1rem;border-radius:var(--auth-radius);font-size:.9375rem;line-height:1.45;text-align:left}.auth-alert[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{flex-shrink:0;margin-top:.125rem;font-size:1.125rem}.auth-alert[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:.25rem 0 0}.auth-alert[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-weight:600}.auth-alert--success[_ngcontent-%COMP%]{background:#e9f7ee;border:1px solid #bfe3cc;color:#14532d}.auth-alert--error[_ngcontent-%COMP%]{background:#fdecec;border:1px solid #f5c2c2;color:#8a1c1c}.auth-card__footer[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:.35rem;flex-wrap:wrap;margin-top:1.5rem;font-size:.9375rem;color:var(--auth-muted)}.auth-card__footer--spaced[_ngcontent-%COMP%]{margin-top:2rem;padding-top:1.25rem;border-top:1px solid var(--auth-blue-soft)}.auth-card__note[_ngcontent-%COMP%]{margin:.875rem 0 0;text-align:center;font-size:.8125rem;line-height:1.45;color:var(--auth-muted)}.auth-link[_ngcontent-%COMP%]{color:var(--auth-blue);font-weight:600;text-decoration:none}.auth-link[_ngcontent-%COMP%]:hover, .auth-link[_ngcontent-%COMP%]:focus-visible{color:var(--auth-blue-dark);text-decoration:underline}.auth-link[_ngcontent-%COMP%]:visited{color:var(--auth-blue)}[_nghost-%COMP%]     p-button{display:block;width:100%}[_nghost-%COMP%]     .auth-button.p-button{width:100%;justify-content:center;padding:.8125rem 1rem;font-size:1.0625rem;font-weight:700;letter-spacing:.02em;color:#fff;background:var(--auth-blue);border:1px solid var(--auth-blue);border-radius:var(--auth-radius);box-shadow:none;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease}[_nghost-%COMP%]     .auth-button.p-button:not(:disabled):hover{background:var(--auth-blue-dark);border-color:var(--auth-blue-dark)}[_nghost-%COMP%]     .auth-button.p-button:focus-visible{outline:none;box-shadow:0 0 0 3px #005bbb4d}[_nghost-%COMP%]     .auth-button.p-button:disabled{opacity:.7}@media(max-width:480px){.auth-page[_ngcontent-%COMP%]{padding:2.5rem 1rem 1rem;align-items:flex-start}.auth-card[_ngcontent-%COMP%]{padding:2rem 1.25rem 1.5rem}.auth-card__logo[_ngcontent-%COMP%]{height:48px}}"]})};var be=[{path:"login",component:M},{path:"prva-prijava",component:C}];export{be 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.