PageSourceSearch

https://www.5centscdn.net/dashboard/chunk-ZJ5VSQC7.js

js 5centscdn.net collected 2026-09-24 20:18:55 UTC 13,488 bytes, 1 lines download raw bytes

1import{a as W,b as X}from"./chunk-K7C6OWTI.js";import{a as q}from"./chunk-W4JLXH2K.js";import{a as J}from"./chunk-S62TCMIB.js";import{a as Y}from"./chunk-G3WRLDOB.js";import{a as G}from"./chunk-LEOK3TBM.js";import{a as Q}from"./chunk-N2MVBGGZ.js";import"./chunk-V3EKAILP.js";import"./chunk-OS3CABJ4.js";import"./chunk-Y2QBTOIT.js";import"./chunk-WDX5GBAZ.js";import"./chunk-R3ABRJGS.js";import{E as z,c as $,h as L,m as A,v as R,w as H}from"./chunk-IT7TKBQK.js";import{b as Z}from"./chunk-SHNDZLFX.js";import"./chunk-WPILDL5A.js";import{l as F}from"./chunk-QOPGEPEN.js";import{R as V,U as T,t as B}from"./chunk-4FDDMESX.js";import{$c as N,Bb as c,Ec as g,Fa as P,Fc as p,Ga as x,Qb as k,Rb as f,Sc as s,Tc as d,Uc as u,Wb as w,Zc as I,_c as D,gc as b,ic as O,lc as E,na as h,oc as v,rc as y,sa as M,sc as S,tc as i,uc as r,vc as m,zc as j}from"./chunk-FGMC3YKI.js";import"./chunk-TWZW5B45.js";var tt=(o,t)=>t.value,et=(o,t)=>t.id;function nt(o,t){if(o&1&&(i(0,"option",11),s(1),r()),o&2){let e=t.$implicit,n=p();b("value",e.value)("selected",e.value===n.selectedSort),c(),d(e.label)}}function ot(o,t){if(o&1){let e=j();i(0,"button",23),g("click",function(){P(e);let a=p();return x(a.clearSearch())}),s(1,"\u2715"),r()}}function rt(o,t){o&1&&(i(0,"tr")(1,"td",24)(2,"div",25)(3,"span",26),s(4,"No projects found."),r()()()())}function it(o,t){if(o&1){let e=j();i(0,"tr",27)(1,"td",28),s(2),r(),i(3,"td",29)(4,"div",30)(5,"span",31),s(6),r(),i(7,"span",32),s(8),r()()(),i(9,"td",29)(10,"div",30)(11,"span",31),s(12),r(),i(13,"span",32),s(14),r()()(),i(15,"td")(16,"span"),s(17),r()(),i(18,"td",29)(19,"div",30)(20,"span",31),s(21),r(),i(22,"span",32),s(23),r()()(),i(24,"td")(25,"button",33),g("click",function(){let a=P(e).$implicit,l=p(2);return x(l.viewTasks(a))}),s(26,"View Tasks"),r()()()}if(o&2){let e=t.$implicit,n=p(2);c(2),d(e.title),c(4),u(" ",n.formatDate(e.created)," "),c(2),d(n.formatTime(e.created)),c(4),u(" ",n.formatDate(e.duedate)," "),c(2),d(n.formatTime(e.duedate)),c(2),E("irt-badge font-M fw-500 m-auto d-flex justify-content-center ",n.getStatusClass(e.status),""),c(),u(" ",e.status," "),c(4),u(" ",n.formatDate(e.lastmodified)," "),c(2),d(n.formatTime(e.lastmodified))}}function at(o,t){if(o&1&&y(0,it,27,11,"tr",27,et),o&2){let e=p();S(e.pagedProjects)}}var C=class o{store=M(F);router=M(V);breadcrumbs=[];bannerTabs=[];projects=[];clientName="";loading=!0;filteredProjects=[];pagedProjects=[];searchText="";selectedSort="2";isSortOpen=!1;pageSize=10;currentPage=0;sortOptions=[{value:"1",label:"Newest"},{value:"2",label:"Oldest"},{value:"5",label:"A - Z"},{value:"6",label:"Z - A"}];get activeCount(){return this.projects.filter(t=>t.status!=="Completed").length}get completedCount(){return this.projects.filter(t=>t.completed===1||t.status==="Completed").length}get totalCount(){return this.projects.length}get selectedSortLabel(){return this.sortOptions.find(t=>t.value===this.selectedSort)?.label??""}ngOnInit(){this.breadcrumbs=[{text:"Home",route:"/home"},{text:"Project Overview"}],this.store.dispatch(q({data:{}})),this.store.select(W).subscribe(t=>{this.loading=t??!0}),this.store.select(Z).subscribe(t=>{t?.client&&(this.clientName=`${t.client.firstname} ${t.client.lastname}`.trim(),this.buildBannerTabs())}),this.store.select(X).subscribe(t=>{t?.projects&&(this.projects=t.projects,this.applyFilters(),this.buildBannerTabs())})}buildBannerTabs(){this.bannerTabs=[{title:"Active Project",greenPoint:!0,mainValue:this.clientName,secondaryValue:String(this.activeCount),secondaryValueText:"active"},{title:"Completed Projects",greenPoint:!0,secondaryValue:String(this.completedCount),mainValue:"Out of "+this.totalCount}]}onSortChange(t){this.selectedSort=t,this.currentPage=0,this.applyFilters()}onSearch(t){this.searchText=t,this.currentPage=0,this.applyFilters()}clearSearch(){this.searchText="",this.currentPage=0,this.applyFilters()}applyFilters(){let t=[...this.projects];if(this.searchText.trim()){let n=this.searchText.toLowerCase();t=t.filter(a=>a.title.toLowerCase().includes(n))}let e=n=>new Date(n.replace(" ","T")).getTime()||0;switch(this.selectedSort){case"1":t.sort((n,a)=>e(a.created)-e(n.created));break;case"2":t.sort((n,a)=>e(n.created)-e(a.created));break;case"5":t.sort((n,a)=>n.title.localeCompare(a.title));break;case"6":t.sort((n,a)=>a.title.localeCompare(n.title));break}this.filteredProjects=t,this.updatePage()}updatePage(){let t=this.currentPage*this.pageSize;this.pagedProjects=this.filteredProjects.slice(t,t+this.pageSize)}viewTasks(t){this.router.navigate(["/home/my-projects",t.id])}getStatusClass(t){return{"Awaiting Reply":"badge-awaiting",Awaiting:"badge-awaiting","In Progress":"badge-in-progress",Queued:"badge-queued","Not Started":"badge-not-started",Completed:"badge-completed",Pending:"badge-queued"}[t]??""}parseDate(t){if(!t)return null;let e=new Date(t.replace(" ","T"));return isNaN(e.getTime())?null:e}formatDate(t){let e=this.parseDate(t);if(!e)return"\u2014";
1let n=String(e.getDate()).padStart(2,"0"),a=e.toLocaleString("en",{month:"short"});return`${n} ${a} ${e.getFullYear()}`}formatTime(t){let e=this.parseDate(t);if(!e)return"";let n=String(e.getHours()).padStart(2,"0"),a=String(e.getMinutes()).padStart(2,"0"),l=String(e.getSeconds()).padStart(2,"0");return`${n}:${a}:${l}`}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=k({type:o,selectors:[["fivecents-my-projects"]],standalone:!1,decls:41,vars:14,consts:[[3,"breadcrumbs"],["type","my-services","backRoute","/home",3,"bannerTitleInput","bannerSubtitleInput","inputTabs","showActionButtons","stackCards"],[1,"irt-wrap","bg-white","radius-S","mt-20"],[1,"irt-topbar"],[1,"irt-topbar-left"],[1,"fw-600","font-L"],[1,"irt-sort"],[1,"irt-sort-label","font-M"],[1,"irt-sort-select-wrap"],[1,"irt-sort-select-value","font-M"],[1,"irt-sort-select","font-M",3,"change","focus","blur"],[3,"value","selected"],["src","assets/images/dropdown-icon-secondary.svg","alt","","width","10","height","7",1,"irt-sort-arrow"],[1,"d-flex","justify-content-between","relative","search-wrapper","mp-search-wrap"],["type","text","placeholder","Search here...",1,"input","w-100","search-input","min-h-40px","py-0","font-S","radius-XS",3,"ngModelChange","ngModel"],["type","button",1,"clear-btn"],[1,"search-icon-container","absolute","d-flex","justify-content-center","align-items-center","h-100"],["type","button"],["src","assets/images/search-icon.svg","alt","",1,"w-18px-xl","h-17px-xl","w-20px-xxl","h-19px-xxl"],[1,"irt-table-wrap"],[1,"irt-table"],[1,"font-M","fw-500","text-left"],[1,"font-M","fw-500","text-center"],["type","button",1,"clear-btn",3,"click"],["colspan","6",1,"irt-empty"],[1,"d-flex","flex-column","justify-content-center","align-items-center","gap-5","h-30vh"],[1,"font-L","fw-600","op-2"],[1,"irt-row"],[1,"font-M","fw-400","text-left"],[1,"font-M","text-center"],[1,"d-flex","flex-column","justify-content-center","align-items-center","gap-5"],[1,"srr-date-chip","w-fit-content","p-10","radius-XS","font-M","fw-400"],[1,"font-M","fw-400"],[1,"green-button","font-M","py-10","px-15","radius-XS",3,"click"]],template:function(e,n){e&1&&(m(0,"fivecents-breadcrumbs",0)(1,"fivecents-home-black-banner",1),i(2,"div",2)(3,"div",3)(4,"div",4)(5,"span",5),s(6,"Projects Overview"),r(),i(7,"div",6)(8,"span",7),s(9,"Sort by"),r(),i(10,"div",8)(11,"span",9),s(12),r(),i(13,"select",10),g("change",function(l){return n.onSortChange(l.target.value)})("focus",function(){return n.isSortOpen=!0})("blur",function(){return n.isSortOpen=!1}),y(14,nt,2,3,"option",11,tt),r(),m(16,"img",12),r()()(),i(17,"div",13)(18,"input",14),N("ngModelChange",function(l){return D(n.searchText,l)||(n.searchText=l),l}),g("ngModelChange",function(l){return n.onSearch(l)}),r(),w(19,ot,2,0,"button",15),i(20,"div",16)(21,"button",17),m(22,"img",18),r()()()(),i(23,"div",19)(24,"table",20)(25,"thead")(26,"tr")(27,"th",21),s(28,"Title"),r(),i(29,"th",22),s(30,"Created"),r(),i(31,"th",22),s(32,"Due Date"),r(),i(33,"th",22),s(34,"Status"),r(),i(35,"th",22),s(36,"Last Modified"),r(),m(37,"th"),r()(),i(38,"tbody"),w(39,rt,5,0,"tr")(40,at,2,0),r()()()()),e&2&&(b("breadcrumbs",n.breadcrumbs),c(),b("bannerTitleInput","Projects Overview")("bannerSubtitleInput","Check on the status of your projects with us here")("inputTabs",n.bannerTabs)("showActionButtons",!1)("stackCards",!0),c(9),O("irt-sort-select-wrap--open",n.isSortOpen),c(2),d(n.selectedSortLabel),c(2),S(n.sortOptions),c(2),O("irt-sort-arrow--open",n.isSortOpen),c(2),I("ngModel",n.searchText),c(),v(n.searchText?19:-1),c(20),v(n.pagedProjects.length===0?39:40))},dependencies:[R,H,$,L,A,Q,Y],styles:[".irt-wrap[_ngcontent-%COMP%]{padding:22px 33px 13px}.irt-topbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding-bottom:20px;border-bottom:1px solid #e5e9f0}.irt-topbar-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}.irt-sort[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.irt-sort-label[_ngcontent-%COMP%]{color:#8e93a5;white-space:nowrap}.irt-sort-select-wrap[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;border:1px solid #9ca3af;border-radius:6px;height:34px;min-width:90px;cursor:pointer}.irt-sort-select-wrap[_ngcontent-%COMP%]:hover, .irt-sort-select-wrap--open[_ngcontent-%COMP%]{border-color:#59a52c}.irt-sort-select-value[_ngcontent-%COMP%]{padding:0 30px 0 10px;color:#252525;font-weight:400;pointer-events:none;white-space:nowrap}.irt-sort-select[_ngcontent-%COMP%]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0}.irt-sort-select[_ngcontent-%COMP%]   option[_ngcontent-%COMP%]{color:#252525}.irt-sort-arrow[_ngcontent-%COMP%]{position:absolute;right:8px;pointer-events:none;transition:transform .2s ease}.irt-sort-arrow--open[_ngcontent-%COMP%]{transform:rotate(180deg)}.mp-search-wrap[_ngcontent-%COMP%]{width:220px}.search-icon-container[_ngcontent-%COMP%]{top:1px;left:8px;border:none}.search-input[_ngcontent-%COMP%]{padding:0 2rem 0 48px;margin-top:0}.clear-btn[_ngcontent-%COMP%]{position:absolute;right:.75rem;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:#8e93a5;font-size:12px;line-height:1;padding:0}.irt-table-wrap[_ngcontent-%COMP%]{overflow-x:auto;margin-top:0}.irt-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.irt-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .irt-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:14px 16px;white-space:nowrap}.irt-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{border-bottom:1px solid #e5e9f0}.irt-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#252525;font-weight:600}.irt-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:nth-child(1), .irt-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:nth-child(1){width:30%;text-align:left}.irt-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:nth-child(2), .irt-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:nth-child(2){width:15%;text-align:center}.irt-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:nth-child(3), .irt-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:nth-child(3){width:15%;text-align:center}.irt-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:nth-child(4), .irt-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:nth-child(4){width:15%;text-align:center}.irt-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:nth-child(5), .irt-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:nth-child(5){width:15%;text-align:center}.irt-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:nth-child(6), .irt-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:nth-child(6){width:10%;text-align:right}.irt-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.irt-row[_ngcontent-%COMP%]{border-bottom:1px solid #f1f3f8;transition:background .12s}.irt-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.irt-row[_ngcontent-%COMP%]:last-child{border-bottom:none}.irt-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.irt-row[_ngcontent-%COMP%]:hover{background:#f9fafc}.srr-date-chip[_ngcontent-%COMP%]{display:inline-block;background:#e1e1e1;color:#252525}.irt-badge[_ngcontent-%COMP%]{display:inline-block;font-weight:500;border-radius:8px;padding:8px 20px;white-space:nowrap;min-width:120px;text-align:center}.badge-not-started[_ngcontent-%COMP%]{background:#f0f0f0;color:#4b5563;border:1px solid #d1d5db}.badge-queued[_ngcontent-%COMP%]{background:#8b5cf61a;color:#7c3aed;border:1px solid #c4b5fd}.badge-in-progress[_ngcontent-%COMP%]{background:#3b82f61a;color:#2563eb;border:1px solid #93c5fd}.badge-awaiting[_ngcontent-%COMP%]{background:#f59e0b1f;color:#b45309;border:1px solid #fcd34d}.badge-completed[_ngcontent-%COMP%]{background:#59a52c1a;color:#59a52c;border:1px solid #86efac}.irt-empty[_ngcontent-%COMP%]{text-align:center;padding:48px 12px!important;color:#8e93a5}"]})};var st=[{path:"",component:C},{path:":id",loadChildren:()=>import("./chunk-SOVZXUBY.js").then(o=>o.ViewTaskModule)},{path:":id/associated-tickets",loadChildren:()=>import("./chunk-QSBL7JKF.js").then(o=>o.AssociatedTicketsModule)},{path:":id/invoices",loadChildren:()=>import("./chunk-VYLUPQ54.js").then(o=>o.ProjectInvoicesModule)}],_=class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=f({type:o});static \u0275inj=h({imports:[T.forChild(st),T]})};var U=class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=f({type:o});static \u0275inj=h({imports:[B,z,_,G,J]})};export{U as MyProjectsModule};

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.