PageSourceSearch

https://epamhellas.gr/common.b9860d7bdeddd612.js

js epamhellas.gr collected 2026-10-02 12:31:16 UTC 8,561 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkEPAM_Website=self.webpackChunkEPAM_Website||[]).push([[592],{9318:(h,l,o)=>{o.d(l,{C:()=>x});var a=o(1670),t=o(2560),c=o(7579),p=o(7595),s=o(8596),d=o(6573),n=o(4666),r=o(2508),g=o(9159),C=o(7822),M=o(1204),f=o(2044);function m(u,P){if(1&u){const e=t.EpF();t.TgZ(0,"div",9)(1,"div",10),t._UZ(2,"img",11),t.qZA(),t.TgZ(3,"div"),t._UZ(4,"div",12),t.TgZ(5,"div",13),t._uU(6),t.qZA(),t._UZ(7,"div",14),t.TgZ(8,"div",6)(9,"div",15),t.NdJ("click",function(){const v=t.CHM(e).$implicit,D=t.oxw();return t.KtG(D.navigateToPost(v))}),t._uU(10,"\u0394\u03b5\u03c2 \u03c0\u03b5\u03c1\u03b9\u03c3\u03c3\u03cc\u03c4\u03b5\u03c1\u03b1"),t.qZA()()()()}if(2&u){const e=P.$implicit,i=t.oxw();t.xp6(2),t.Q6J("src",e.media,t.LSH),t.xp6(1),t.Udp("width",i.setContentWidth(e),"%"),t.xp6(1),t.Q6J("innerHTML",e.title,t.oJD),t.xp6(2),t.hij(" ",i.sharedService.formatDate(e.date)," "),t.xp6(1),t.Q6J("innerHTML",e.excerpt,t.oJD)}}function E(u,P){if(1&u){const e=t.EpF();t.TgZ(0,"div",16),t.NdJ("click",function(){t.CHM(e);const _=t.oxw();return t.KtG(_.getPreviousPosts())}),t._uU(1,"\u03a0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7"),t.qZA()}}function O(u,P){if(1&u){const e=t.EpF();t.TgZ(0,"div",15),t.NdJ("click",function(){t.CHM(e);const _=t.oxw();return t.KtG(_.getNextPosts())}),t._uU(1,"\u0395\u03c0\u03cc\u03bc\u03b5\u03bd\u03b7"),t.qZA()}}let x=(()=>{class u{constructor(e,i,_,v){this.loadingService=e,this.router=i,this.sharedService=_,this.wordpressService=v,this.page=0,this.search=""}ngOnInit(){var e=this;return(0,a.Z)(function*(){yield e.getNextPosts()})()}clearSearch(){var e=this;return(0,a.Z)(function*(){e.page=0,e.search="",yield e.getNextPosts()})()}executeSearch(){var e=this;return(0,a.Z)(function*(){e.page=0,yield e.getNextPosts()})()}formatExcerpts(){for(let e of this.posts){let i=e.excerpt.split(" "),_="";for(let v of i)if(_+=` ${v}`,_.length>210){e.excerpt=`${_} ...`;break}}}getNextPosts(){var e=this;return(0,a.Z)(function*(){e.loadingService.show(),e.page++,e.posts=yield e.wordpressService.getPosts(e.categoryID,e.page,e.search),e.formatExcerpts(),e.loadingService.hide()})()}getPreviousPosts(){var e=this;return(0,a.Z)(function*(){e.loadingService.show(),e.page--,e.posts=yield e.wordpressService.getPosts(e.categoryID,e.page,e.search),e.formatExcerpts(),e.loadingService.hide()})()}navigateToPost(e){var i=this;return(0,a.Z)(function*(){yield i.router.navigate([e.slug])})()}setContentWidth(e){return void 0!==e.media&&window.innerWidth>425?70:100}showNextButton(){return 10===this.posts?.length}showPreviousButton(){return this.page>1}}return u.\u0275fac=function(e){return new(e||u)(t.Y36(c.b),t.Y36(p.F0),t.Y36(s.F),t.Y36(d.U))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-posts"]],inputs:{categoryID:"categoryID"},decls:14,vars:4,consts:[[1,"posts-container"],[1,"search-container"],[3,"keydown.enter"],["matInput","","placeholder","\u0391\u03bd\u03b1\u03b6\u03ae\u03c4\u03b7\u03c3\u03b7","type","text",3,"ngModel","ngModelChange"],["mat-icon-button","",3,"click"],["class","post-container",4,"ngFor","ngForOf"],[1,"button-section","margin-top20"],["class","button2",3,"click",4,"ngIf"],["class","button1",3,"click",4,"ngIf"],[1,"post-container"],[1,"post-logo"],[3,"src"],[1,"post-title","margin-bottom20",3,"innerHTML"],[1,"post-date","margin-bottom20"],[3,"innerHTML"],[1,"button1",3,"click"],[1,"button2",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-form-field",2),t.NdJ("keydown.enter",function(){return i.executeSearch()}),t.TgZ(3,"input",3),t.NdJ("ngModelChange",function(v){return i.search=v}),t.qZA()(),t.TgZ(4,"button",4),t.NdJ("click",function(){return i.executeSearch()}),t.TgZ(5,"mat-icon"),t._uU(6,"search"),t.qZA()(),t.TgZ(7,"button",4),t.NdJ("click",function(){return i.clearSearch()}),t.TgZ(8,"mat-icon"),t._uU(9,"clear"),t.qZA()()(),t.YNc(10,m,11,6,"div",5),t.qZA(),t.TgZ(11,"div",6),t.YNc(12,E,2,0,"div",7),t.YNc(13,O,2,0,"div",8),t.qZA()),2&e&&(t.xp6(3),t.Q6J("ngModel",i.search),t.xp6(7),t.Q6J("ngForOf",i.posts),t.xp6(2),t.Q6J("ngIf",i.showPreviousButton()),t.xp6(1),t.Q6J("ngIf",i.showNextButton()))},dependencies:[n.sg,n.O5,r.Fj,r.JJ,r.On,g.eB,C.Hw,M.v_,f.k0],styles:[".button1[_ngcontent-%COMP%], .button2[_ngcontent-%COMP%]{padding:8px 0;width:140px}.button-section[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:20px;justify-content:center}.posts-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.posts-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]{border-radius:4px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;display:flex;flex-direction:row;gap:20px;justify-content:space-between;padding:20px}.posts-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-date[_ngcontent-%COMP%]{font-family:ZonaPro-Bold,sans-serif;color:var(--swatch2)}.posts-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-logo[_ngcontent-%COMP%]{flex:1}.posts-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:200px;object-fit:cover;width:100%}.posts-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]   .post-title[_ngcontent-%COMP%]{font-family:ZonaPro-Bold,sans-serif;font-size:20px}.posts-container[_ngcontent-%COMP%]   .search-container[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:row;gap:5px}.posts-container[_ngcontent-%COMP%]   .search-container[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:calc(100% - 90px)}@media only screen and (max-width: 425px){.posts-container[_ngcontent-%COMP%]   .post-container[_ngcontent-%COMP%]{flex-direction:column}}"]}),u})()},1410:(h,l,o)=>{o.d(l,{N:()=>d});var a=o(4666),t=o(2508),c=o(2779),p=o(6573),s=o(2560);let d=(()=>{class n{}return n.\u0275fac=function(g){return new(g||n)},n.\u0275mod=s.oAB({type:n}),n.\u0275inj=s.cJS({providers:[p.U],imports:[a.ez,t.u5,c.q,t.UX]}),n})()},8605:(h,l,o)=>{o.d(l,{L:()=>p});var a=o(1670),t=o(2560),c=o(5085);let p=(()=>{class s{constructor(n){this.databaseService=n,this.serviceModel="candidate"}getCandidates2023(){var n=this;return(0,a.Z)(function*(){try{return yield n.databaseService.getRequest
1(`${n.serviceModel}/2023`)}catch(r){throw r}})()}getCandidates2024(){var n=this;return(0,a.Z)(function*(){try{return yield n.databaseService.getRequest(`${n.serviceModel}/2024`)}catch(r){throw r}})()}}return s.\u0275fac=function(n){return new(n||s)(t.LFG(c.k))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})()},1111:(h,l,o)=>{o.d(l,{o:()=>t});var a=o(2560);let t=(()=>{class c{constructor(){}isFormFieldValid(s,d){const n=d.get(s);return!!n&&n.touched&&n.invalid}setErrorMessage(s,d,n){const r=d.get(s)?.errors;switch(n){case"birthYear":if(r?.required)return"\u03a5\u03c0\u03bf\u03c7\u03c1\u03b5\u03c9\u03c4\u03b9\u03ba\u03cc \u03c0\u03b5\u03b4\u03af\u03bf.";if(r?.minlength)return"\u03a3\u03c5\u03bc\u03c0\u03bb\u03b7\u03c1\u03ce\u03c3\u03c4\u03b5 4 \u03c8\u03b7\u03c6\u03af\u03b1.";break;case"email":if(r?.required)return"\u03a5\u03c0\u03bf\u03c7\u03c1\u03b5\u03c9\u03c4\u03b9\u03ba\u03cc \u03c0\u03b5\u03b4\u03af\u03bf.";if(r?.email)return"\u039b\u03ac\u03b8\u03bf\u03c2 \u03c4\u03cd\u03c0\u03bf\u03c2 email.";break;case"telephone":if(r?.required)return"\u03a5\u03c0\u03bf\u03c7\u03c1\u03b5\u03c9\u03c4\u03b9\u03ba\u03cc \u03c0\u03b5\u03b4\u03af\u03bf.";if(r?.minlength)return"\u03a3\u03c5\u03bc\u03c0\u03bb\u03b7\u03c1\u03ce\u03c3\u03c4\u03b5 10 \u03c8\u03b7\u03c6\u03af\u03b1.";break;default:if(r?.required)return"\u03a5\u03c0\u03bf\u03c7\u03c1\u03b5\u03c9\u03c4\u03b9\u03ba\u03cc \u03c0\u03b5\u03b4\u03af\u03bf."}}}return c.\u0275fac=function(s){return new(s||c)},c.\u0275prov=a.Yz7({token:c,factory:c.\u0275fac}),c})()},6573:(h,l,o)=>{o.d(l,{U:()=>p});var a=o(1670),t=o(2560),c=o(5085);let p=(()=>{class s{constructor(n){this.databaseService=n,this.serviceModel="wordpress"}getPost(n){var r=this;return(0,a.Z)(function*(){try{return yield r.databaseService.getRequest(`${r.serviceModel}/${n}`)}catch(g){throw g}})()}getPosts(n,r,g){var C=this;return(0,a.Z)(function*(){try{return yield C.databaseService.getRequest(`${C.serviceModel}?categoryID=${n}&page=${r}&search=${g}`)}catch(M){throw M}})()}insertComment(n){var r=this;return(0,a.Z)(function*(){try{return yield r.databaseService.postRequest(n,r.serviceModel)}catch(g){throw g}})()}}return s.\u0275fac=function(n){return new(n||s)(t.LFG(c.k))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})()}}]);
2//# sourceMappingURL=common.b9860d7bdeddd612.js.map

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.