1import{a as W}from"./chunk-KAKMK767.js";import{a as ot}from"./chunk-SUD4DIAU.js";import{a as Y,b as Z,c as tt,d as et}from"./chunk-WSC4F3KB.js";import"./chunk-E3JG5HGV.js";import{e as U,i as K,j as Q}from"./chunk-VXXKXU2C.js";import"./chunk-IX6G3U3V.js";import{D as J}from"./chunk-FH6NFQDQ.js";import{b as C}from"./chunk-UPWALAQF.js";import{h as q,j as A,k as G,n as H,q as V,r as N,s as X}from"./chunk-GVOAVW7N.js";import{$a as o,Ba as w,Bb as h,Bc as R,Cb as x,Db as a,Eb as r,Ec as D,Fb as j,Fc as $,Hc as P,Ia as O,Jb as v,Ob as B,Ub as c,Vb as g,Wa as z,Wb as b,Xa as I,Yb as L,_b as y,ab as F,ac as l,bc as m,da as u,g as M,ia as k,o as S,sb as T,ub as f,zb as E}from"./chunk-7UUCD5GI.js";var it=(t,n)=>n.id,nt=t=>["/project",t],at=t=>({project_end_status_date:t});function rt(t,n){if(t&1&&(a(0,"mat-option",5),c(1),l(2,"translate"),r()),t&2){let p=n.$implicit;f("value",p.id),o(),g(m(2,2,p.name))}}function st(t,n){t&1&&(a(0,"span",11),c(1),l(2,"translate"),r()),t&2&&(o(),b(" ",m(2,1,"projects.current")," "))}function pt(t,n){t&1&&(a(0,"span",16),c(1),l(2,"translate"),r()),t&2&&(o(),b(" ",m(2,1,"projects.completed")," "))}function ct(t,n){if(t&1&&(a(0,"div",7)(1,"h1"),c(2),r(),a(3,"div",10),T(4,st,3,3,"span",11)(5,pt,3,3),a(6,"div",12),c(7),r()(),a(8,"figure",13),j(9,"img",14),r(),j(10,"div",15),l(11,"safehtml"),r()),t&2){let p=n.$implicit;f("routerLink",y(9,nt,p.id)),o(2),g(p.title),o(2),E(4,p.active==1?4:5),o(2),f("ngClass",y(11,at,p.active!==1)),o(),g(p.date),o(2),f("src",p.cover,I),o(),f("innerHTML",m(11,7,p.description),z)}}var Et=(()=>{let n=class n{constructor(s){this.platformId=s,this.projectService=u(ot),this.router=u(A),this.route=u(q),this.destroyRef=u(w),this.statusList=[{id:1,name:"projects.current",value:"active"},{id:0,name:"projects.completed",value:"not_active"}],this.paginationData=[],this.paginationObject={length:100,pageSize:12},this.currentSort="",this.projectStream$=new M}ngOnInit(){P(this.platformId)&&this.route.queryParamMap.pipe(C(this.destroyRef)).subscribe(s=>{let e=s.get("page"),i=localStorage.getItem("sort");i&&(this.currentSort=i.toString()),e?this.fetchProjects(parseInt(e),this.currentSort):this.fetchProjects(1)})}fetchProjects(s,e){this.projectService.setProjectPage(s.toString());let i=e?.toString();this.projectService.getProjects(i).pipe(C(this.destroyRef)).subscribe({next:d=>{this.projectStream$=S(d.data),this.paginationObject.length=d.pagination.total,this.paginationObject.pageSize=d.pagination.perPage,window.scrollTo({top:0,behavior:"smooth"})},error:d=>{console.log("error",d)}})}onChangeProjectSort(s){let e=s.value?.toString();if(P(this.platformId)){let i=this.route.snapshot.queryParamMap.get("page");i||(i="1"),s.value==1&&(e="active"),s.value==0&&(e="not_active"),localStorage.setItem("sort",e),this.router.navigate(["/projects"],{queryParams:{page:i,is_active:e}})}}onPageChange(s){let e=localStorage.getItem("sort");this.router.navigate(["/projects"],{queryParams:{page:s.pageIndex+1,is_active:e}})}};n.\u0275fac=function(e){return new(e||n)(F(O))},n.\u0275cmp=k({type:n,selectors:[["app-projects"]],standalone:!0,features:[L],decls:22,vars:13,consts:[[1,"container"],[1,"naviagion_title_header"],["routerLink","/"],["appearance","outline",1,"custum_select_status"],[1,"custum_placeholder",3,"selectionChange","placeholder"],[3,"value"],[1,"project_container_flex"],[1,"project_card",3,"routerLink"],[1,"project_pagination_container"],[3,"page","length","pageSize"],[1,"project_status"],[1,"project_status_dot"],[1,"project_status_date",3,"ngClass"],[1,"project_item_image"],["alt","project",3,"src"],[1,"project_paragrap",3,"innerHTML"],[1,"project_status_dot","project_end_status"]],template:function(e,i){e&1&&(a(0,"section",0)(1,"div",1)(2,"h1",2),c(3),l(4,"translate"),r(),a(5,"span"),c(6,"-"),r(),a(7,"p"),c(8),l(9,"translate"),r()(),a(10,"div")(11,"mat-form-field",3)(12,"mat-select",4),l(13,"translate"),v("selectionChange",function(_){return i.onChangeProjectSort(_)}),h(14,rt,3,4,"mat-option",5,it),r()()(),a(16,"div",6),h(17,ct,12,13,"div",7,it),l(19,"async"),r(),a(20,"div",8)(21,"mat-paginator",9),v("page",function(_){return i.onPageChange(_)}),r()()()),e&2&&(o(3),g(m(4,5,"statements.main_page")),o(5),g(m(9,7,"projects.projects")),o(4),B("placeholder",m(13,9,"projects.project_status")),o(2),x(i.statusList),o(3),x(m(19,11,i.projectStream$)),o(4),f("length",i.paginationObject.length)("pageSize",i.paginationObject.pageSize))},dependencies:[Q,K,Z,Y,J,W,U,$,R,D,H,G,X,et,tt,N,V],styles:['.statements_header[_ngcontent-%COMP%]{display:flex;gap:16px;padding-top:168px;padding-bottom:56px;font-family:var(--font-family);font-size:12px;font-style:normal;font-weight:700;line-height:150%;letter-spacing:.24px;text-transform:uppercase;-moz-font-feature-settings:"case";-webkit-font-feature-settings:"case";font-feature-settings:"case" on}.statements_header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .statements_header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#00000040}.statements_header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#000} mat-select, mat-form-field[_ngcontent-%COMP%]{--mat-full-pseudo-checkbox-selected-icon-color: #00158b !important;--mat-full-pseudo-checkbox-selected-checkmark-color: #00d9ff;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 204, 255, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #00d9ff;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #00e1ff;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #0077ff;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #5900ff !important;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #1900ff;--mdc-outlined-text-field-focus-outline-color: #000000;--mdc-outlined-text-field-focus-label-text-color: #7bff00;max-width:340px;width:100%}.custum_select_status[_ngcontent-%COMP%]{margin-bottom:12px} .mat-primary .mat-mdc-select-arrow{color:#262626} .mat-primary.mdc-menu-surface{color:#262626;background-color:#fff} .mat-primary .mdc-list-item__primary-text{color:#000;font-family:SF-Georgian!important;font-size:12px!important;font-style:normal!important;font-weight:510!important;line-height:150%;letter-spacing:.24px!important;text-transform:uppercase!important;-moz-font-feature-settings:"case"!important;-webkit-font-feature-settings:"case"!important;font-feature-settings:"case" on!important} .mat-primary .mat-mdc-option:not([disabled]):hover{background:var(--Old-Brick-600, #d03233);padding:0 16px;border-radius:4px;margin:0 8px;color:#fff;transition:all .3s} .mat-primary .mdc-list-item--selected.mat-mdc-option-active:not([disabled]):hover .mdc-list-item__primary-text{color:#000!important;transition:all .3s} .mat-primary .mat-mdc-option:not([disabled]):focus{background:var(--Old-Brick-600, #d03233);padding:0 16px;border-radius:4px;margin:0 8px;color:#fff;transition:all .3s} .mat-primary .mat-mdc-option:not([disabled]):hover .mdc-list-item__primary-text{color:#fff!important} .mat-ripple.mat-mdc-option-ripple.mat-mdc-focus-indicator{border-radius:4px;margin:0 8px} .mat-mdc-select-placeholder.mat-mdc-select-min-line{color:#000;font-family:SF-Georgian!important;font-size:12px!important;font-style:normal!important;font-weight:510!important;line-height:150%;letter-spacing:.24px!important;text-transform:uppercase!important;-moz-font-feature-settings:"case"!important;-webkit-font-feature-settings:"case"!important;font-feature-settings:"case" on!important} .mat-mdc-select-min-line{color:#000;font-family:SF-Georgian!important;font-size:12px!important;font-style:normal!important;font-weight:510!important;line-height:150%;letter-spacing:.24px!important;text-transform:uppercase!important;-moz-font-feature-settings:"case"!important;-webkit-font-feature-settings:"case"!important;font-feature-settings:"case" on!important}.project_container_flex[_ngcontent-%COMP%]{display:flex;gap:16px;flex-wrap:wrap;justify-content:space-between}.project_card[_ngcontent-%COMP%]{max-width:458px;width:100%;display:flex;flex-direction:column;gap:16px;margin-bottom:64px}.project_card[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{height:48px;overflow:hidden;color:#262626;text-overflow:ellipsis;font-family:var(--font-family);font-size:16px;font-style:normal;font-weight:700;line-height:150%;letter-spacing:.32px;text-transform:uppercase;-moz-font-feature-settings:"case";-webkit-font-feature-settings:"case";font-feature-settings:"case" on}.project_card[_ngcontent-%COMP%] .project_status[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.project_card[_ngcontent-%COMP%] .project_status_date[_ngcontent-%COMP%]{border-radius:4px;background:#009639;padding:4px 8px;overflow:hidden;color:#fff;text-overflow:ellipsis;font-family:var(--font-family);font-size:12px;font-style:normal;font-weight:700;line-height:150%;letter-spacing:.24px;text-transform:uppercase;-moz-font-feature-settings:"case";-webkit-font-feature-settings:"case";font-feature-settings:"case" on}.project_current_status_date[_ngcontent-%COMP%]{background:#009639!important}.project_end_status_date[_ngcontent-%COMP%]{background:#273790!important}.project_end_status[_ngcontent-%COMP%]{color:#273790!important}.project_end_status[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background-color:#273790!important;margin-right:4px}.project_current_status[_ngcontent-%COMP%]{color:#009639!important}.project_status_dot[_ngcontent-%COMP%]{overflow:hidden;color:#009639;text-overflow:ellipsis;font-family:var(--font-family);font-size:12px;font-style:normal;font-weight:700;line-height:150%;letter-spacing:.24px;text-transform:uppercase;-moz-font-feature-settings:"case";-webkit-font-feature-settings:"case";font-feature-settings:"case" on}.project_status_dot[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background-color:#009639;margin-right:4px}.project_item_image[_ngcontent-%COMP%]{max-width:459px;width:100%;height:auto;border-radius:8px}.project_item_image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;border-radius:8px}']}
1);let t=n;return t})();export{Et as ProjectsComponent};
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.