1import{a as H,b as Y,c as W}from"./chunk-SAKY5TTU.js";import{b as K}from"./chunk-T7JO76OI.js";import{a as $}from"./chunk-T5BM7CA7.js";import{a as V}from"./chunk-OPU5IZL4.js";import{b as G,c as L,d as k}from"./chunk-2QBXBXBG.js";import{c as U}from"./chunk-SP3HOEQ5.js";import{a as J}from"./chunk-BIXBZ7E7.js";import"./chunk-H5BK6PY3.js";import"./chunk-UYS4K7BP.js";import{c as z,e as B}from"./chunk-6UDFMWQR.js";import"./chunk-D3GZHNP7.js";import"./chunk-NRC5AI7K.js";import"./chunk-42VXR55A.js";import{a as E}from"./chunk-4B56CV3U.js";import{k as R,m as A}from"./chunk-IGN5GLRN.js";import"./chunk-FI7JFUZL.js";import"./chunk-UH7EAKM6.js";import{Ab as d,Bb as S,Db as f,Eb as v,Fb as h,Gb as a,Hb as o,Ib as r,Ic as p,Jc as C,Pb as M,Tb as b,Va as n,Vb as _,aa as D,eb as P,ec as T,ga as O,ha as I,hc as l,ic as m,jb as w,jc as u,ma as F,zb as c}from"./chunk-HNJKLSZE.js";import{a as y,b as j}from"./chunk-OSQMNGTH.js";var q=(t,i)=>i.id;function X(t,i){if(t&1){let e=M();a(0,"div",3)(1,"button",18),p(2,"translate"),b("click",function(){O(e);let g=_();return I(g.editProject())}),o()()}t&2&&(n(),h("label",C(2,1,"PROJECT_DETAIL.SETTINGS.EDIT_PROJECT")))}function Q(t,i){if(t&1){let e=M();a(0,"span",6)(1,"span",19),b("click",function(){let g=O(e).$implicit,x=_();return I(x.navigateToSpyTarget(g.id))}),l(2),p(3,"translate"),o()()}if(t&2){let e=i.$implicit;h("spyTargetId",e.id),n(2),u(" ",C(3,2,e.labelKey)," ")}}function tt(t,i){t&1&&(a(0,"div",23),l(1),p(2,"translate"),o()),t&2&&(n(),m(C(2,1,"PROJECT_DETAIL.SETTINGS.SLACK_EMPTY")))}function et(t,i){if(t&1&&(a(0,"div",28),l(1," Workspace: "),a(2,"span",34),l(3),o()()),t&2){let e=_().$implicit;n(3),m(e.workspaceName)}}function it(t,i){t&1&&r(0,"i",30)}function nt(t,i){t&1&&r(0,"i",31)}function ot(t,i){t&1&&r(0,"i",32)}function at(t,i){t&1&&r(0,"i",33)}function rt(t,i){if(t&1&&(a(0,"li",25)(1,"div",26)(2,"span",27),l(3),o(),c(4,et,4,1,"div",28),o(),a(5,"span",29),c(6,it,1,0,"i",30)(7,nt,1,0,"i",31)(8,ot,1,0,"i",32)(9,at,1,0,"i",33),o()()),t&2){let e=i.$implicit;T("inactive-integration",e.status==="INACTIVE"),n(3),m(e.channelName),n(),d(e.workspaceName?4:-1),n(2),d(e.jobStatus==="COMPLETED"?6:e.jobStatus==="RUNNING"?7:e.jobStatus==="PENDING"?8:e.jobStatus==="FAILED"?9:-1)}}function st(t,i){if(t&1&&(a(0,"ul"),f(1,rt,10,5,"li",24,S),o()),t&2){let e=_(2);n(),v(e.channels)}}function lt(t,i){if(t&1&&(a(0,"section",9)(1,"div",20)(2,"span",21),r(3,"i",22),l(4),p(5,"translate"),o()(),c(6,tt,3,3,"div",23)(7,st,3,0,"ul"),o()),t&2){let e=_();n(4),u(" ",C(5,2,"PROJECT_DETAIL.SETTINGS.SLACK_SECTION")," "),n(2),d(e.channels.length===0?6:7)}}function ct(t,i){t&1&&(a(0,"div",23),l(1),p(2,"translate"),o()),t&2&&(n(),m(C(2,1,"PROJECT_DETAIL.SETTINGS.TEAMS_EMPTY")))}function dt(t,i){t&1&&r(0,"i",30)}function _t(t,i){t&1&&r(0,"i",31)}function gt(t,i){t&1&&r(0,"i",32)}function pt(t,i){t&1&&r(0,"i",33)}function Ct(t,i){if(t&1&&(a(0,"li",25)(1,"span"),l(2),o(),a(3,"span",29),c(4,dt,1,0,"i",30)(5,_t,1,0,"i",31)(6,gt,1,0,"i",32)(7,pt,1,0,"i",33),o()()),t&2){let e=i.$implicit;T("inactive-integration",e.status==="INACTIVE"),n(2),m(e.channelName),n(2),d(e.jobStatus==="COMPLETED"?4:e.jobStatus==="RUNNING"?5:e.jobStatus==="PENDING"?6:e.jobStatus==="FAILED"?7:-1)}}function mt(t,i){if(t&1&&(a(0,"ul"),f(1,Ct,8,4,"li",24,S),o()),t&2){let e=_(2);n(),v(e.teamsChannels)}}function ut(t,i){if(t&1&&(a(0,"section",10)(1,"div",20)(2,"span",21),r(3,"i",35),l(4),p(5,"translate"),o()(),c(6,ct,3,3,"div",23)(7,mt,3,0,"ul"),o()),t&2){let e=_();n(4),u(" ",C(5,2,"PROJECT_DETAIL.SETTINGS.TEAMS_SECTION")," "),n(2),d(e.teamsChannels.length===0?6:7)}}function ft(t,i){t&1&&(a(0,"div",23),l(1),p(2,"translate"),o()),t&2&&(n(),m(C(2,1,"PROJECT_DETAIL.SETTINGS.JIRA_EMPTY")))}function vt(t,i){if(t&1&&(a(0,"div",28),l(1," Workspace: "),a(2,"span",34),l(3),o()()),t&2){let e=_().$implicit;n(3),m(e.workspaceName)}}function St(t,i){t&1&&r(0,"i",30)}function Tt(t,i){t&1&&r(0,"i",31)}function Pt(t,i){t&1&&r(0,"i",32)}function xt(t,i){t&1&&r(0,"i",33)}function Et(t,i){if(t&1&&(a(0,"li",25)(1,"div",26)(2,"span",27),l(3),o(),c(4,vt,4,1,"div",28),o(),a(5,"span",29),c(6,St,1,0,"i",30)(7,Tt,1,0,"i",31)(8,Pt,1,0,"i",32)(9,xt,1,0,"i",33),o()()),t&2){let e=i.$implicit;T("inactive-integration",e.status==="INACTIVE"),n(3),m(e.jiraProjectName),n(),d(e.workspaceName?4:-1),n(2),d(e.jobStatus==="COMPLETED"?6:e.jobStatus==="RUNNING"?7:e.jobStatus==="PENDING"?8:e.jobStatus==="FAILED"?9:-1)}}function Ot(t,i){if(t&1&&(a(0,"ul"),f(1,Et,10,5,"li",24,S),o()),t&2){let e=_(2);n(),v(e.jiraProjects)}}function It(t,i){if(t&1&&(a(0,"section",11)(1,"div",20)(2,"span",21),r(3,"i",36),l(4),p(5,"translate"),o()(),c(6,ft,3,3,"div",23)(7,Ot,3,0,"ul"),o()),t&2){let e=_();n(4),u(" ",C(5,2,"PROJECT_DETAIL.SETTINGS.JIRA_SECTION")," "),n(2),d(e.jiraProjects.length===0?6:7)}}function ht(t,i){t&1&&(a(0,"div",23),l(1),p(2,"translate"),o()),t&2&&(n(),u(" ",C(2,1,"PROJECT_DETAIL.SETTINGS.AZURE_BOARDS_EMPTY")," "))}function Mt(t,i){if(t&1&&(a(0,"div",28),l(1," Workspace: "),a(2,"span",34),l(3),o()()),t&2){let e=_().$implicit;n(3),m(e.workspaceName)}}function bt(t,i){t&1&&r(0,"i",30)}function Nt(t,i){t&1&&r(0,"i",31)}function yt(t,i){t&1&&r(0,"i",32)}function jt(t,i){t&1&&r(0,"i",33)}function Dt(t,i){if(t&1&&(a(0,"li",25)(1,"div",26)(2,"span",27),l(3),o(),c(4,Mt,4,1,"div",28),o(),a(5,"span",29),c(6,bt,1,0,"i",30)(7,Nt,1,0,"i",31)(8,yt,1,0,"i",32)(9,jt,1,0,"i",33),o()()),t&2){let e=i.$implicit;T("inactive-integration",e.status==="INACTIVE"),n(3),m(e.azureProjectName),n(),d(e.workspaceName?4:-1),n(2),d(e.jobStatus==="COMPLETED"?6:e.jobStatus==="RUNNING"?7:e.jobStatus==="PENDING"?8:e.jobStatus==="FAILED"?9:-1)}}function Ft(t,i){if(t&1&&(a(0,"ul"),f(1,Dt,10,5,"li",24,S),o()),t&2){let e=_(2);n(),v(e.azureProjects)}}function wt(t,i){if(t&1&&(a(0,"section",12)(1,"div",20)(2,"span",21),r(3,"img",37),l(4),p(5,"translate"),o()(),c(6,ht,3,3,"div",23)(7,Ft,3,0,"ul"),o()),t&2){let e=_();n(4),u(" ",C(5,2,"PROJECT_DETAIL.SETTINGS.AZURE_BOARDS_SECTION")," "),n(2),d(e.azureProjects.length===0?6:7)}}function Rt(t,i){t&1&&(a(0,"div",23),l(1),p(2,"translate"),o()),t&2&&(n(),m(C(2,1,"PROJECT_DETAIL.SETTINGS.GITHUB_EMPTY")))}function At(t,i){if(t&1&&(a(0,"div",28),l(1," Workspace: "),a(2,"span",34),l(3),o()()),t&2){let e=_().$implicit;n(3),m(e.workspaceName)}}function Gt(t,i){t&1&&r(0,"i",30)}function Lt(t,i){t&1&&r(0,"i",31)}function kt(t,i){t&1&&r(0,"i",32)}function zt(t,i){t&1&&r(0,"i",33)}function Bt(t,i){if(t&1&&(a(0,"li",25)(1,"div",26)(2,"span",27),l(3),o(),c(4,At,4,1,"div",28),o(),a(5,"span",29),c(6,Gt,1,0,"i",30)(7,Lt,1,0,"i",31)(8,kt,1,0,"i",32)(9,zt,1,0,"i",33),o()()),t&2){let e=i.$implicit;T("inactive-integration",e.status==="INACTIVE"),n(3),m(e.repoName),n(),d(e.workspaceName?4:-1),n(2),d(e.jobStatus==="COMPLETED"?6:e.jobStatus==="RUNNING"?7:e.jobStatus==="PENDING"?8:e.jobStatus==="FAILED"?9:-1)}}function Jt(t,i){if(t&1&&(a(0,"ul"),f(1,Bt,10,5,"li",24,S),o()),t&2){let e=_(2);n(),v(e.repos)}}function Ut(t,i){if(t&1&&(a(0,"section",13)(1,"div",20)(2,"span",21),r(3,"i",38),l(4),p(5,"translate"),o()(),c(6,Rt,3,3,"div",23)(7,Jt,3,0,"ul"),o()),t&2){let e=_();n(4),u(" ",C(5,2,"PROJECT_DETAIL.SETTINGS.GITHUB_SECTION")," "),n(2),d(e.repos.length===0?6:7)}}function Vt(t,i){t&1&&(a(0,"div",23),l(1),p(2,"translate"),o()),t&2&&(n(),m(C(2,1,"PROJECT_DETAIL.SETTINGS.GDRIVE_EMPTY")))}function $t(t,i){t&1&&r(0,"i",30)}function Kt(t,i){t&1&&r(0,"i",31)}function Ht(t,i){t&1&&r(0,"i",32)}function Yt(t,i){t&1&&r(0,"i",33)}function Wt(t,i){if(t&1&&(a(0,"li",25)(1,"span",43),l(2),o(),a(3,"span",29),c(4,$t,1,0,"i",30)(5,Kt,1,0,"i",31)(6,Ht,1,0,"i",32)(7,Yt,1,0,"i",33),o()()),t&2){let e=i.$implicit;T("inactive-integration",e.status==="INACTIVE"),n(2),u(" ",e.fileName," "),n(2),d(e.jobStatus==="COMPLETED"?4:e.jobStatus==="RUNNING"?5:e.jobStatus==="PENDING"?6:e.jobStatus==="FAILED"?7:-1)}}function Zt(t,i){if(t&1&&(a(0,"div",40)(1,"div",41),r(2,"img",42),l(3," Google Docs "),o()(),a(4,"ul"),f(5,Wt,8,4,"li",24,S),o()),t&2){let e=_(3);n(5),v(e.googleDocFiles)}}function qt(t,i){t&1&&r(0,"i",30)}function Xt(t,i){t&1&&r(0,"i",31)}function Qt(t,i){t&1&&r(0,"i",32)}function te(t,i){t&1&&r(0,"i",33)}function ee(t,i){if(t&1&&(a(0,"li",25)(1,"span",43),l(2),o(),a(3,"span",29),c(4,qt,1,0,"i",30)(5,Xt,1,0,"i",31)(6,Qt,1,0,"i",32)(7,te,1,0,"i",33),o()()),t&2){let e=i.$implicit;T("inactive-integration",e.status==="INACTIVE"),n(2),u(" ",e.fileName," "),n(2),d(e.jobStatus==="COMPLETED"?4:e.jobStatus==="RUNNING"?5:e.jobStatus==="PENDING"?6:e.jobStatus==="FAILED"?7:-1)}}function ie(t,i){if(t&1&&(a(0,"div",40)(1,"div",41),r(2,"img",44),l(3," Google Sheets "),o()(),a(4,"ul"),f(5,ee,8,4,"li",24,S),o()),t&2){let e=_(3);n(5),v(e.googleSheetFiles)}}function ne(t,i){t&1&&r(0,"i",30)}function oe(t,i){t&1&&r(0,"i",31)}function ae(t,i){t&1&&r(0,"i",32)}function re(t,i){t&1&&r(0,"i",33)}function se(t,i){if(t&1&&(a(0,"li",25)(1,"span",43),l(2),o(),a(3,"span",29),c(4,ne,1,0,"i",30)(5,oe,1,0,"i",31)(6,ae,1,0,"i",32)(7,re,1,0,"i",33),o()()),t&2){let e=i.$implicit;T("inactive-integration",e.status==="INACTIVE"),n(2),u(" ",e.fileName," "),n(2),d(e.jobStatus==="COMPLETED"?4:e.jobStatus==="RUNNING"?5:e.jobStatus==="PENDING"?6:e.jobStatus==="FAILED"?7:-1)}}function le(t,i){if(t&1&&(a(0,"div",40)(1,"div",41),r(2,"img",45),l(3," Google Slides "),o()(),a(4,"ul"),f(5,se,8,4,"li",24,S),o()),t&2){let e=_(3);n(5),v(e.googleSlideFiles)}}function ce(t,i){if(t&1&&(c(0,Zt,7,0),c(1,ie,7,0),c(2,le,7,0)),t&2){let e=_(2);d(e.googleDocFiles.length>0?0:-1),n(),d(e.googleSheetFiles.length>0?1:-1),n(),d(e.googleSlideFiles.length>0?2:-1)}}function de(t,i){if(t&1&&(a(0,"section",14)(1,"div",20)(2,"span",21),r(3,"i",39),l(4),p(5,"translate"),o()(),c(6,Vt,3,3,"div",23)(7,ce,3,3),o()),t&2){let e=_();n(4),u(" ",C(5,2,"PROJECT_DETAIL.SETTINGS.GDRIVE_SECTION")," "),n(2),d(e.googleDocs.length===0?6:7)}}function _e(t,i){t&1&&(a(0,"div",23),l(1),p(2,"translate"),o()),t&2&&(n(),u(" ",C(2,1,"PROJECT_DETAIL.SETTINGS.ONEDRIVE_EMPTY")," "))}function ge(t,i){t&1&&r(0,"i",30)}function pe(t,i){t&1&&r(0,"i",31)}function Ce(t,i){t&1&&r(0,"i",32)}function me(t,i){t&1&&r(0,"i",33)}function ue(t,i){if(t&1&&(a(0,"li",25)(1,"div",43)(2,"span",27),l(3),o()(),a(4,"span",29),c(5,ge,1,0,"i",30)(6,pe,1,0,"i",31)(7,Ce,1,0,"i",32)(8,me,1,0,"i",33),o()()),t&2){let e=i.$implicit;T("inactive-integration",e.status==="INACTIVE"),n(3),m(e.fileName),n(2),d(e.jobStatus==="COMPLETED"||e.jobStatus===2?5:e.jobStatus==="RUNNING"||e.jobStatus===1?6:e.jobStatus==="PENDING"||e.jobStatus===0?7:e.jobStatus==="FAILED"||e.jobStatus===3?8:-1)}}function fe(t,i){if(t&1&&(a(0,"ul"),f(1,ue,9,4,"li",24,S),o()),t&2){let e=_(2);n(),v(e.oneDriveFiles)}}function ve(t,i){if(t&1&&(a(0,"section",15)(1,"div",20)(2,"span",21),r(3,"img",46),l(4),p(5,"translate"),o()(),c(6,_e,3,3,"div",23)(7,fe,3,0,"ul"),o()),t&2){let e=_();n(4),u(" ",C(5,2,"PROJECTS.NEW_PROJECT.ONEDRIVE")," "),n(2),d(e.oneDriveFiles.length===0?6:7)}}function Se(t,i){t&1&&(a(0,"div",23),l(1),p(2,"translate"),o()),t&2&&(n(),u(" ",C(2,1,"PROJECT_DETAIL.SETTINGS.CONFLUENCE_EMPTY")," "))}function Te(t,i){if(t&1&&(a(0,"div",28),l(1," Workspace: "),a(2,"span",34),l(3),o()()),t&2){let e=_().$implicit;n(3),m(e.workspaceName)}}function Pe(t,i){t&1&&r(0,"i",30)}function xe(t,i){t&1&&r(0,"i",31)}function Ee(t,i){t&1&&r(0,"i",32)}function Oe(t,i){t&1&&r(0,"i",33)}function Ie(t,i){if(t&1&&(a(0,"li",25)(1,"div",26)(2,"span",27),l(3),o(),c(4,Te,4,1,"div",28),o(),a(5,"span",29),c(6,Pe,1,0,"i",30)(7,xe,1,0,"i",31)(8,Ee,1,0,"i",32)(9,Oe,1,0,"i",33),o()()),t&2){let e=i.$implicit;T("inactive-integration",e.status==="INACTIVE"),n(3),m(e.pageName),n(),d(e.workspaceName?4:-1),n(2),d(e.jobStatus==="COMPLETED"?6:e.jobStatus==="RUNNING"?7:e.jobStatus==="PENDING"?8:e.jobStatus==="FAILED"?9:-1)}}function he(t,i){if(t&1&&(a(0,"ul"),f(1,Ie,10,5,"li",24,S),o()),t&2){let e=_(2);n(),v(e.confluencePages)}}function Me(t,i){if(t&1&&(a(0,"section",16)(1,"div",20)(2,"span",21),r(3,"i",47),l(4),p(5,"translate"),o()(),c(6,Se,3,3,"div",23)(7,he,3,0,"ul"),o()),t&2){let e=_();n(4),u(" ",C(5,2,"PROJECT_DETAIL.SETTINGS.CONFLUENCE_SECTION")," "),n(2),d(e.confluencePages.length===0?6:7)}}function be(t,i){t&1&&(a(0,"div",23),l(1),p(2,"translate"),o()),t&2&&(n(),u(" ",C(2,1,"PROJECT_DETAIL.SETTINGS.SHAREPOINT_EMPTY")," "))}function Ne(t,i){if(t&1&&(a(0,"div",28),l(1," Workspace: "),a(2,"span",34),l(3),o()()),t&2){let e=_().$implicit;n(3),m(e.workspaceName)}}function ye(t,i){t&1&&r(0,"i",30)}function je(t,i){t&1&&r(0,"i",31)}function De(t,i){t&1&&r(0,"i",32)}function Fe(t,i){t&1&&r(0,"i",33)}function we(t,i){if(t&1&&(a(0,"li",25)(1,"div",26)(2,"span",27),l(3),o(),c(4,Ne,4,1,"div",28),o(),a(5,"span",29),c(6,ye,1,0,"i",30)(7,je,1,0,"i",31)(8,De,1,0,"i",32)(9,Fe,1,0,"i",33),o()()),t&2){let e=i.$implicit;T("inactive-integration",e.status==="INACTIVE"),n(3),m(e.pageName),n(),d(e.workspaceName?4:-1),n(2),d(e.jobStatus==="COMPLETED"?6:e.jobStatus==="RUNNING"?7:e.jobStatus==="PENDING"?8:e.jobStatus==="FAILED"?9:-1)}}function Re(t,i){if(t&1&&(a(0,"ul"),f(1,we,10,5,"li",24,S),o()),t&2){let e=_(2);n(),v(e.sharePointPages)}}function Ae(t,i){if(t&1&&(a(0,"section",17)(1,"div",20)(2,"span",21),r(3,"img",48),l(4),p(5,"translate"),o()(),c(6,be,3,3,"div",23)(7,Re,3,0,"ul"),o()),t&2){let e=_();n(4),u(" ",C(5,2,"PROJECT_DETAIL.SETTINGS.SHAREPOINT_SECTION")," "),n(2),d(e.sharePointPages.length===0?6:7)}}var Z=class t{constructor(i,e,s,g,x,N,Ge,Le){this.projectListService=i;this.projectsService=e;this.integrationService=s;this.peopleService=g;this.route=x;this.router=N;this.translate=Ge;this.authService=Le;this.projectId=Number(this.route.parent?.snapshot.paramMap.get("id"))}projectListService;projectsService;integrationService;peopleService;route;router;translate;authService;projectId;channels=[];repos=[];jiraProjects=[];azureProjects=[];googleDocs=[];oneDriveFiles=[];teamsChannels=[];confluencePages=[];
1sharePointPages=[];existingSlackChannels=[];existingJiraProjects=[];existingAzureProjects=[];existingGithubRepos=[];existingTeamsChannels=[];existingConfluencePages=[];existingSharePointPages=[];existingManagers=null;existingManagerName="";existingTeamMembers=[];existingGoogleDocs=[];permissions=[];teamMembers=[];teamManagers=[];isProjectFormLoading=!1;isLoading=!1;connectedIntegrations=[];showDriveDocumentSections=!1;destroyRef=D(F);allNavItems=[{id:"slack-channels",labelKey:"PROJECT_DETAIL.SETTINGS.SLACK_SECTION",integration:"SLACK"},{id:"teams-channels",labelKey:"PROJECT_DETAIL.SETTINGS.TEAMS_SECTION",integration:"TEAMS"},{id:"jira-projects",labelKey:"PROJECT_DETAIL.SETTINGS.JIRA_SECTION",integration:"JIRA"},{id:"azure-boards-projects",labelKey:"PROJECT_DETAIL.SETTINGS.AZURE_BOARDS_SECTION",integration:"AZURE_BOARDS"},{id:"github-repos",labelKey:"PROJECT_DETAIL.SETTINGS.GITHUB_SECTION",integration:"GITHUB"},{id:"google-docs",labelKey:"PROJECT_DETAIL.SETTINGS.GDRIVE_SECTION",integration:"GDRIVE"},{id:"confluence-pages",labelKey:"PROJECT_DETAIL.SETTINGS.CONFLUENCE_SECTION",integration:"CONFLUENCE"},{id:"sharepoint-pages",labelKey:"PROJECT_DETAIL.SETTINGS.SHAREPOINT_SECTION",integration:"SHAREPOINT"},{id:"one-drive-files",labelKey:"PROJECTS.NEW_PROJECT.ONEDRIVE",integration:"ONEDRIVE"}];navItems=[];navigateToSpyTarget(i){let e=document.getElementById("settings-scroll-container"),s=document.getElementById(i);if(e&&s){let g=e.getBoundingClientRect().top,N=s.getBoundingClientRect().top-g+e.scrollTop-10;e.scrollTo({top:N,behavior:"smooth"})}}get canEditProject(){let e=this.authService.getUserContext()?.user?.role,s=this.authService.checkPermission("project","update")||this.authService.checkPermission("project","write");return e!=="EXECUTIVE"&&s}ngOnInit(){this.fetchConnectedIntegrations(),this.fetchProjectTeamMembers()}fetchConnectedIntegrations(){this.integrationService.getIntegrations().pipe(E(this.destroyRef)).subscribe(i=>{this.connectedIntegrations=i.body.data.filter(e=>e.integrationStatus==="CONNECTED").map(e=>e.integrationType),this.navItems=this.allNavItems.filter(e=>this.connectedIntegrations.includes(e.integration)&&(this.showDriveDocumentSections||e.integration!=="GDRIVE"&&e.integration!=="ONEDRIVE")),this.fetchProjectIntegrations()})}isConnected(i){return this.connectedIntegrations.includes(i)}fetchProjectIntegrations(){let i={where:[{key:"id",value:String(this.projectId)}]};this.isLoading=!0,this.projectListService.getProjects(1,10,i).pipe(E(this.destroyRef)).subscribe({next:e=>{let s=e.body.data[0];s&&(this.channels=s.slackChannels,this.repos=s.gitRepositories,this.jiraProjects=s.jiraProjects,this.azureProjects=s.azureProjects??[],this.googleDocs=s.gDriveFiles,this.oneDriveFiles=s.oneDriveFiles??[],this.teamsChannels=s.teamsChannels??[],this.confluencePages=s.confluencePages??[],this.sharePointPages=s.sharePointPages??[],this.permissions=s.permission??[],this.existingSlackChannels=s.slackChannels.map(g=>g.id),this.existingJiraProjects=s.jiraProjects.map(g=>g.id),this.existingAzureProjects=(s.azureProjects??[]).map(g=>g.id),this.existingGithubRepos=s.gitRepositories.map(g=>g.id),this.existingTeamsChannels=(s.teamsChannels??[]).map(g=>g.id),this.existingConfluencePages=(s.confluencePages??[]).map(g=>g.id),this.existingSharePointPages=(s.sharePointPages??[]).map(g=>g.id),this.existingGoogleDocs=s.gDriveFiles.map(g=>g.fileName),this.existingManagers=s.projectManager?.personId??null,this.existingManagerName=s.projectManager?.name??""),this.isLoading=!1}})}editProject(){this.router.navigate(["/app/edit-project",this.projectId],{queryParams:{source:"settings"}})}fetchProjectTeamMembers(){let i={where:[{key:"projectId",value:this.projectId}]};this.peopleService.getProjectMembers(!0,i,-1,-1).pipe(E(this.destroyRef)).subscribe({next:e=>{this.teamMembers=e.body.data.map(s=>{let g=s.projects?.find(x=>x.id==this.projectId);return j(y({},s),{status:g?.memberStatus==="ACTIVE"})}),this.existingTeamMembers=e.body.data.map(s=>s.name)}})}classifyDriveFile(i){return i?i.includes("presentation")||i.includes("powerpoint")||i.includes("slides")?"slide":i.includes("spreadsheet")||i.includes("excel")||i==="sheet"||i.includes("csv")||i.includes("tsv")||i.includes("tab-separated")?"sheet":i.includes("document")||i.includes("word")||i.includes("docs")||i==="doc"||i.includes("pdf")||i.includes("text")||i.includes("markdown")?"doc":null:null}filesOfKind(i){return this.googleDocs.filter(e=>this.classifyDriveFile((e.mimeType||"").toLowerCase())===i)}get googleDocFiles(){return this.filesOfKind("doc")}get googleSheetFiles(){return this.filesOfKind("sheet")}get googleSlideFiles(){return this.filesOfKind("slide")}getFileIcon(i){if(!i)return"assets/icons/google_drive.png";let e=i.toLowerCase();return e.includes("folder")?"assets/icons/google_drive.png":e.includes("spreadsheet")||e.includes("excel")||e.includes("csv")||e.includes("tsv")||e==="sheet"?"assets/icons/gdrive-sheet.png":e.includes("presentation")||e.includes("powerpoint")||e.includes("slides")?"assets/icons/gdrive-slides.svg":e.includes("pdf")?"assets/icons/gdrive-pdf.png":e.includes("video")?"assets/icons/gdrive-video.png":e.includes("image")||e.includes("photo")?
1"assets/icons/gdrive-image.svg":(e.includes("document")||e.includes("word")||e.includes("docs")||e.includes("text")||e.includes("markdown")||e==="doc","assets/icons/gdrive-doc.png")
vendor: 4,419 bytes, line 1
1}static \u0275fac=function(e){return new(e||t)(P(V),P(K),P(J),P($),P(R),P(A),P(G),P(U))};static \u0275cmp=w({type:t,selectors:[["app-settings"]],decls:22,vars:13,consts:[[1,"settings-page","content-card"],[1,"table-controls"],[1,"table-title"],[1,"settings-btn"],[1,"body-wrapper"],[1,"nav"],["spy","","spyTargetContainerId","settings-spy-id",3,"spyTargetId"],["id","settings-scroll-container","spyTargetContainerId","settings-spy-id","spyTargetContainer","",1,"body"],[1,"content"],["id","slack-channels","spyTarget","","spyTargetContainerId","settings-spy-id","spyTargetId","slack-channels",1,"integration-section"],["id","teams-channels","spyTarget","","spyTargetContainerId","settings-spy-id","spyTargetId","teams-channels",1,"integration-section"],["id","jira-projects","spyTarget","","spyTargetContainerId","settings-spy-id","spyTargetId","jira-projects",1,"integration-section"],["id","azure-boards-projects","spyTarget","","spyTargetContainerId","settings-spy-id","spyTargetId","azure-boards-projects",1,"integration-section"],["id","github-repos","spyTarget","","spyTargetContainerId","settings-spy-id","spyTargetId","github-repos",1,"integration-section"],["id","google-docs","spyTarget","","spyTargetContainerId","settings-spy-id","spyTargetId","google-docs",1,"integration-section"],["id","one-drive-files","spyTarget","","spyTargetContainerId","settings-spy-id","spyTargetId","one-drive-files",1,"integration-section"],["id","confluence-pages","spyTarget","","spyTargetContainerId","settings-spy-id","spyTargetId","confluence-pages",1,"integration-section"],["id","sharepoint-pages","spyTarget","","spyTargetContainerId","settings-spy-id","spyTargetId","sharepoint-pages",1,"integration-section"],["pButton","","type","button","icon","pi pi-pencil",3,"click","label"],[3,"click"],[1,"section-header"],[1,"title"],[1,"fa-brands","fa-slack"],[1,"no-docs"],[1,"integration-item",3,"inactive-integration"],[1,"integration-item"],[1,"item-left"],[1,"name"],[1,"workspace-name"],[1,"status-icon"],[1,"fa","fa-check","success"],[1,"pi","pi-spin","pi-spinner","loading"],[1,"pi","pi-clock","warn"],[1,"pi","pi-times","cancel"],[1,"workspace-badge"],[1,"fa-brands","fa-microsoft"],[1,"fa-brands","fa-jira"],["src","assets/icons/azure-boards.png","alt","Azure Boards",1,"azure-boards-icon",2,"width","1.25rem","height","1.25rem","object-fit","contain"],[1,"fa-brands","fa-github"],[1,"fab","fa-google-drive"],[1,"gdrive-sub-heading"],[1,"heading-left"],["src","assets/icons/gdrive-doc.png","width","16","height","16","alt","file icon"],[1,"doc-name"],["src","assets/icons/gdrive-sheet.png","width","14","height","14","alt","file icon"],["src","assets/icons/gdrive-slides.svg","width","14","height","14","alt","file icon"],["src","assets/icons/one-drive.png","alt","OneDrive",2,"width","1.25rem","height","1.25rem","object-fit","contain"],[1,"fa-brands","fa-confluence"],["src","assets/icons/share-point.png","alt","SharePoint",2,"width","1.25rem","height","1.25rem","object-fit","contain"]],template:function(e,s){e&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3"),l(4),p(5,"translate"),o()(),c(6,X,3,3,"div",3),o(),a(7,"div",4)(8,"div",5),f(9,Q,4,4,"span",6,q),o(),a(11,"div",7)(12,"div",8),c(13,lt,8,4,"section",9),c(14,ut,8,4,"section",10),c(15,It,8,4,"section",11),c(16,wt,8,4,"section",12),c(17,Ut,8,4,"section",13),c(18,de,8,4,"section",14),c(19,ve,8,4,"section",15),c(20,Me,8,4,"section",16),c(21,Ae,8,4,"section",17),o()()()()),e&2&&(n(4),m(C(5,11,"PROJECT_DETAIL.SETTINGS.TITLE")),n(2),d(s.canEditProject?6:-1),n(3),v(s.navItems),n(4),d(s.isConnected("SLACK")?13:-1),n(),d(s.isConnected("TEAMS")?14:-1),n(),d(s.isConnected("JIRA")?15:-1),n(),d(s.isConnected("AZURE_BOARDS")?16:-1),n(),d(s.isConnected("GITHUB")?17:-1),n(),d(s.showDriveDocumentSections&&s.isConnected("GDRIVE")?18:-1),n(),d(s.showDriveDocumentSections&&s.isConnected("ONEDRIVE")?19:-1),n(),d(s.isConnected("CONFLUENCE")?20:-1),n(),d(s.isConnected("SHAREPOINT")?21:-1))},dependencies:[B,z,k,H,W,Y,L],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}.settings-page[_ngcontent-%COMP%]{margin:0;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;background:var(--color-surface-card);border-radius:var(--radius-12);border:var(--size-1) solid var(--color-border-subtle);box-shadow:0 var(--size-1) var(--size-3) #1018281a,0 var(--size-1) var(--size-2) #1018280f;padding:var(--space-5) var(--space-6)}
1.settings-page[_ngcontent-%COMP%] .table-controls[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--space-6);padding-bottom:var(--space-4);border-bottom:var(--size-1) solid var(--color-border-subtle)}.settings-page[_ngcontent-%COMP%] .table-controls[_ngcontent-%COMP%] .table-title[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:var(--font-size-15);font-weight:700;color:var(--color-primary-900)}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%]{display:flex;gap:var(--space-8);min-height:0;flex:1 1 auto}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:var(--size-200);height:min-content;padding:0;position:sticky;top:0;flex-shrink:0;border-right:var(--size-1) solid rgba(0,0,0,.05)}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{padding:0}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--space-3);cursor:pointer;padding:var(--space-3) var(--space-4);color:var(--color-gray-500);font-size:var(--font-size-14);font-weight:500;border-left:var(--size-3) solid transparent;transition:all .2s}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:hover{color:var(--color-gray-800);background-color:var(--color-surface-subtle)}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] > span.active[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:var(--color-ink-900);background-color:var(--color-surface-subtle);border-left-color:var(--color-primary-700);font-weight:600}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] > span.active[_ngcontent-%COMP%]:before{display:none}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow-y:auto;padding-right:var(--space-4);scroll-behavior:smooth;overflow-anchor:none;position:relative}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--space-8)}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--space-4);scroll-margin-top:var(--space-4)}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3)}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--space-3);font-weight:700;font-size:var(--font-size-16);color:var(--color-gray-800)}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:var(--font-size-20)}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] i.fa-github[_ngcontent-%COMP%]{color:var(--color-brand-github-alt)}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] i.fa-slack[_ngcontent-%COMP%]{color:var(--color-brand-slack)}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] i.fa-jira[_ngcontent-%COMP%]{color:var(--color-brand-jira)}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] i.fa-google-drive[_ngcontent-%COMP%]{color:var(--color-brand-gdrive)}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] i.fa-confluence[_ngcontent-%COMP%]{color:var(--color-brand-jira)}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--size-280),1fr));gap:var(--space-4);list-style:none;padding:0;margin:0}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.integration-item[_ngcontent-%COMP%]{background-color:var(--color-surface-card);border:var(--size-1) solid var(--color-border-subtle);border-radius:var(--radius-8);padding:var(--space-3) var(--space-4);color:var(--color-gray-700);font-size:var(--font-size-14);font-weight:500;transition:all .2s ease;display:flex;align-items:center;justify-content:space-between;cursor:default}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.integration-item[_ngcontent-%COMP%] .item-left[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.integration-item[_ngcontent-%COMP%] .item-left[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-size:15px;font-weight:600}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.integration-item[_ngcontent-%COMP%] .item-left[_ngcontent-%COMP%] .workspace-name[_ng
1content-%COMP%]{color:var(--color-gray-400)}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.integration-item[_ngcontent-%COMP%] .workspace-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .5rem;background-color:#f1f5f9;color:#475569;border-radius:4px;font-size:.75rem;font-weight:600;white-space:nowrap;margin-left:.3rem}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.integration-item[_ngcontent-%COMP%] .doc-name[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.integration-item.inactive-integration[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] .gdrive-sub-heading[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);font-size:var(--font-size-14);font-weight:600;color:var(--color-gray-700);text-transform:uppercase;letter-spacing:.05em}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] .gdrive-sub-heading[_ngcontent-%COMP%] + .gdrive-sub-heading[_ngcontent-%COMP%], .settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] .gdrive-sub-heading[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] + .gdrive-sub-heading[_ngcontent-%COMP%]{margin-top:var(--space-4)}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] .gdrive-sub-heading[_ngcontent-%COMP%] .heading-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--space-3)}.settings-page[_ngcontent-%COMP%] .body-wrapper[_ngcontent-%COMP%] .integration-section[_ngcontent-%COMP%] .no-docs[_ngcontent-%COMP%]{font-size:var(--font-size-14);color:var(--color-gray-500);font-weight:400;font-style:italic;margin:0;padding:var(--space-2) 0}.settings-page[_ngcontent-%COMP%] .status-icon[_ngcontent-%COMP%]{display:flex;align-items:center}.settings-page[_ngcontent-%COMP%] .status-icon[_ngcontent-%COMP%] .success[_ngcontent-%COMP%]{color:var(--color-success-800);font-size:var(--font-size-18)}.settings-page[_ngcontent-%COMP%] .status-icon[_ngcontent-%COMP%] .loading[_ngcontent-%COMP%]{color:var(--color-gray-400);font-size:var(--font-size-18)}.settings-page[_ngcontent-%COMP%] .status-icon[_ngcontent-%COMP%] .fail[_ngcontent-%COMP%]{color:var(--color-error-800)}.settings-page[_ngcontent-%COMP%] .status-icon[_ngcontent-%COMP%] .warn[_ngcontent-%COMP%]{color:var(--color-deviation-800);font-size:var(--font-size-18)}.settings-page[_ngcontent-%COMP%] .status-icon[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%]{color:var(--color-error-700);font-size:var(--font-size-18)}"]})};export{Z as Settings};
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.