1"use strict";(self.webpackChunkweb_client=self.webpackChunkweb_client||[]).push([[2239],{32239:(Ne,L,c)=>{c.r(L),c.d(L,{UserSettingsDeveloperModule:()=>A});var u=c(63866),Q=c(9983),h=c(45582),e=c(91052),m=c(233),v=c(35216),U=c(44813),C=c(25157),a=c(71325),y=c(74434),S=c(23554),I=c(13043);function J(s,o){if(1&s){const t=e.EpF();e.TgZ(0,"button",5),e.NdJ("mousemove",function(){e.CHM(t);const n=e.oxw(2);return e.KtG(n.handleMousemove({activeIndex:n.MENU_INDEX_RENAME}))})("click",function(){e.CHM(t);const n=e.oxw(2);return e.KtG(n.renameClick.emit())}),e.TgZ(1,"div")(2,"div"),e._UZ(3,"t5s-svg",4),e.qZA(),e.TgZ(4,"div")(5,"div"),e._uU(6),e.qZA()()()()}if(2&s){const t=e.oxw().ngIf,i=e.oxw();e.Udp("user-select","none")("transition","background 20ms ease-in")("width","auto")("min-width","calc(100% - 8px)")("margin-left",4,"px")("margin-right",4,"px")("border-radius",6,"px"),e.Q6J("disableHover",!0)("isActive",t.activeIndex===i.MENU_INDEX_RENAME),e.xp6(1),e.Udp("display","flex")("align-items","center")("line-height",18,"px")("width","100%")("user-select","none")("min-height",28,"px")("font-size",14,"px"),e.xp6(1),e.Udp("display","flex")("align-items","center")("justify-content","center")("margin-left",10,"px")("margin-right",4,"px"),e.xp6(1),e.Udp("display","block")("flex-shrink",0),e.Q6J("size",18)("icon",i.IconRename)("fgColor",i.rgba(i.Color.black,.85)),e.xp6(1),e.Udp("margin-left",6,"px")("margin-right",12,"px")("min-width",0,"px")("flex","1 1 auto"),e.xp6(1),e.Udp("white-space","nowrap")("overflow","hidden")("text-overflow","ellipsis"),e.xp6(1),e.hij(" ",t.renameLabel," ")}}function j(s,o){if(1&s){const t=e.EpF();e.TgZ(0,"button",6),e.NdJ("mousemove",function(){e.CHM(t);const n=e.oxw(2);return e.KtG(n.handleMousemove({activeIndex:n.MENU_INDEX_COPY_API_KEY}))})("click",function(){e.CHM(t);const n=e.oxw(2);return e.KtG(n.copyApiKeyClick.emit())}),e.TgZ(1,"div")(2,"div"),e._UZ(3,"t5s-svg",4),e.qZA(),e.TgZ(4,"div")(5,"div"),e._uU(6),e.qZA()()()()}if(2&s){const t=e.oxw().ngIf,i=e.oxw();e.Udp("user-select","none")("transition","background 20ms ease-in")("width","auto")("min-width","calc(100% - 8px)")("margin-left",4,"px")("margin-right",4,"px")("border-radius",6,"px"),e.Q6J("disableHover",!0)("isActive",t.activeIndex===i.MENU_INDEX_COPY_API_KEY),e.xp6(1),e.Udp("display","flex")("align-items","center")("line-height",18,"px")("width","100%")("user-select","none")("min-height",28,"px")("font-size",14,"px"),e.xp6(1),e.Udp("display","flex")("align-items","center")("justify-content","center")("margin-left",10,"px")("margin-right",4,"px"),e.xp6(1),e.Udp("display","block")("flex-shrink",0),e.Q6J("size",18)("icon",i.IconDuplicate)("fgColor",i.rgba(i.Color.black,.85)),e.xp6(1),e.Udp("margin-left",6,"px")("margin-right",12,"px")("min-width",0,"px")("flex","1 1 auto"),e.xp6(1),e.Udp("white-space","nowrap")("overflow","hidden")("text-overflow","ellipsis"),e.xp6(1),e.hij(" ",t.copyApiKeyLabel," ")}}const H=function(s,o,t,i){return{default:s,focus:o,hover:t,active:i}},$=function(s,o,t){return{hover:s,active:o,color:t}};function Y(s,o){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"div")(2,"div"),e.YNc(3,J,7,62,"button",1),e.YNc(4,j,7,62,"button",2),e.TgZ(5,"button",3),e.NdJ("mousemove",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.handleMousemove({activeIndex:n.MENU_INDEX_DESTRUCTIVE}))})("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.handleDestructiveClick())}),e.TgZ(6,"div")(7,"div"),e._UZ(8,"t5s-svg",4),e.qZA(),e.TgZ(9,"div")(10,"div"),e._uU(11),e.qZA()()()()()(),e.BQk()}if(2&s){const t=o.ngIf,i=e.oxw();e.xp6(1),e.Udp("width","fit-content")("min-width",180,"px")("max-width","calc(100vw - 24px)"),e.xp6(1),e.Udp("width",100,"%")("padding","6px 0px"),e.xp6(1),e.Q6J("ngIf",t.canRename),e.xp6(1),e.Q6J("ngIf",!t.isToken),e.xp6(1),e.Udp("user-select","none")("transition","background 20ms ease-in")("width","auto")("min-width","calc(100% - 8px)")("margin-left",4,"px")("margin-right",4,"px")("border-radius",6,"px"),e.Q6J("t5sClickableElement",e.kEZ(81,$,i.rgba(i.Color.black,.06),i.rgba(i.Color.black,.16),e.l5B(76,H,i.Color.black,i.Color.red,i.Color.red,i.Color.red)))("disableHover",!0)("isActive",t.activeIndex===i.MENU_INDEX_DESTRUCTIVE),e.uIk("data-cy-destructive-action",t.destructiveAction),e.xp6(1),e.Udp("display","flex")("align-items","center")("line-height",18,"px")("width","100%")("user-select","none")("min-height",28,"px")("font-size",14,"px"),e.xp6(1),e.Udp("display","flex")("align-items","center")("justify-content","center")("margin-left",10,"px")("margin-right",4,"px"),e.xp6(1),e.Udp("display","block")("flex-shrink",0),e.Q6J("size",18)("icon",i.IconDelete)("fgColor",t.activeIndex===i.MENU_INDEX_DESTRUCTIVE?i.Color.red:i.rgba(i.Color.black,.85)),e.xp6(1),e.Udp("margin-left",6,"px")("margin-right",12,"px")("min-width",0,"px")("flex","1 1 auto"),e.xp6(1),e.Udp("white-space","nowrap")("overflow","hidden")("text-overflow","ellipsis"),e.xp6(1),e.hij(" ",t.destructiveLabel," ")}}class f extends C.ez{constructor(){super(),this.I18n=v.W,this.IconRename=m.y
1dd,this.IconDuplicate=m.MMl,this.IconDelete=m.Fzz,this.MENU_INDEX_RENAME=100,this.MENU_INDEX_COPY_API_KEY=200,this.MENU_INDEX_DESTRUCTIVE=300,this.renameClick=new e.vpe,this.revokeClick=new e.vpe,this.deleteClick=new e.vpe,this.copyApiKeyClick=new e.vpe,this.deleteApiKeyClick=new e.vpe,this.vm$=this.select((0,U.Cc)(["kind","isRevoked","activeIndex"]),(0,y.U)(({kind:o,isRevoked:t,activeIndex:i})=>{const n=this.I18n,r=this.i18n,p=o===a.zz.PERSONAL_ACCESS_TOKEN;return{isToken:p,canRename:p&&!t,activeIndex:i,renameLabel:n.translate(r,n.key.rowMenu.rename),copyApiKeyLabel:n.translate(r,n.key.rowMenu.copyApiKey),destructiveLabel:n.translate(r,p?t?n.key.rowMenu.delete:n.key.rowMenu.revoke:n.key.rowMenu.deleteApiKey),destructiveAction:p?t?"DELETE":"REVOKE":"DELETE_API_KEY"}})),this.set({kind:a.zz.PERSONAL_ACCESS_TOKEN,isRevoked:!1,activeIndex:0})}set kind(o){this.setProperty("kind",o)}set isRevoked(o){this.setProperty("isRevoked",o)}handleMousemove({activeIndex:o}){this.set({activeIndex:o})}handleDestructiveClick(){const{kind:o,isRevoked:t}=this.get();o===a.zz.PERSONAL_ACCESS_TOKEN?t?this.deleteClick.emit():this.revokeClick.emit():this.deleteApiKeyClick.emit()}static#e=this.\u0275fac=function(t){return new(t||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["t5s-user-settings-developer-row-menu"]],inputs:{kind:"kind",isRevoked:"isRevoked"},outputs:{renameClick:"renameClick",revokeClick:"revokeClick",deleteClick:"deleteClick",copyApiKeyClick:"copyApiKeyClick",deleteApiKeyClick:"deleteApiKeyClick"},features:[e.qOj],decls:2,vars:3,consts:[[4,"ngIf"],["t5sClickableElement","","data-cy","t5s-wc-user-settings-developer-row-menu-rename-btn",3,"disableHover","isActive","user-select","transition","width","min-width","margin-left","margin-right","border-radius","mousemove","click",4,"ngIf"],["t5sClickableElement","","data-cy","t5s-wc-user-settings-developer-row-menu-copy-api-key-btn",3,"disableHover","isActive","user-select","transition","width","min-width","margin-left","margin-right","border-radius","mousemove","click",4,"ngIf"],["data-cy","t5s-wc-user-settings-developer-row-menu-destructive-btn",3,"t5sClickableElement","disableHover","isActive","mousemove","click"],[3,"size","icon","fgColor"],["t5sClickableElement","","data-cy","t5s-wc-user-settings-developer-row-menu-rename-btn",3,"disableHover","isActive","mousemove","click"],["t5sClickableElement","","data-cy","t5s-wc-user-settings-developer-row-menu-copy-api-key-btn",3,"disableHover","isActive","mousemove","click"]],template:function(t,i){1&t&&(e.YNc(0,Y,12,85,"ng-container",0),e.ALo(1,"async")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,i.vm$))},dependencies:[u.O5,S.v,I.H,u.Ov],encapsulation:2,changeDetection:0})}var R=c(21552),_=c(3982),O=c(16436),G=c(34320);const F={[a.R5.ACTIVE]:0,[a.R5.EXPIRED]:1,[a.R5.REVOKED]:2};function M(s,o,t){return void 0===s&&void 0===o?0:void 0===s?1:void 0===o?-1:t?o-s:s-o}var te=c(3872),ne=c(11421),ie=c(90748),oe=c(55650),se=c(37749),re=c(15441),le=c(48727);function ae(s,o){if(1&s&&(e.ynx(0),e.TgZ(1,"div"),e._UZ(2,"t5s-svg",3),e.qZA(),e.BQk()),2&s){const t=e.oxw(3);e.xp6(1),e.Udp("flex-shrink",0)("min-width",0,"px")("margin-right",10,"px")("margin-left","auto"),e.xp6(1),e.Udp("display","block")("flex-shrink",0),e.Q6J("size",18)("icon",t.IconCheck)("fgColor",t.Color.black)}}function ce(s,o){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",2),e.NdJ("mousemove",function(){const r=e.CHM(t).$implicit,p=e.oxw(2);return e.KtG(p.set({activeIndex:r.id}))})("click",function(n){const p=e.CHM(t).$implicit,x=e.oxw(2);return e.KtG(x.handleClick(n,p))}),e.TgZ(2,"div")(3,"div")(4,"div"),e._uU(5),e.qZA()(),e.YNc(6,ae,3,15,"ng-container",0),e.ALo(7,"async"),e.qZA()(),e.BQk()}if(2&s){const t=o.$implicit,i=e.oxw().ngIf,n=e.oxw();e.xp6(1),e.Udp("user-select","none")("transition-behavior","normal")("transition-duration",20,"ms")("transition-timing-function","ease-in")("transition-delay",0,"ms")("transition-property","background")("cursor","pointer")("width","calc(100% - 8px)")("margin-left",4,"px")("margin-right",4,"px")("border-radius",6,"px"),e.Q6J("isActive",i.activeIndex===t.id),e.xp6(1),e.Udp("display","flex")("align-items","center")("width",100,"%")("user-select","none")("min-height",28,"px"),e.xp6(1),e.Udp("margin-left",12,"px")("margin-right",12,"px")("min-width",0,"px")("flex",1),e.xp6(1),e.Udp("white-space","nowrap")("overflow","hidden")("text-overflow","ellipsis")("font-size",14,"px")("line-height",18,"px"),e.xp6(1),e.hij(" ",t.label," "),e.xp6(1),e.Q6J("ngIf",e.lcZ(7,53,n.selectedStatusFilter$)===t.id)}}function pe(s,o){if(1&s&&(e.ynx(0),e.YNc(1,ce,8,55,"ng-container",1),e.BQk()),2&s){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.ALL_OPTIONS)("ngForTrackBy",t.trackById)}}class w extends C.ez{constructor(){super(),this.I18n=v.W,this.IconCheck=m.NOm,this.headline=this.I18n.translate(this.i18n,this.I18n.key.statusFilter.headline),this.ALL_OPTIONS=[{id:a.ZC.ALL,label:this.I18n.translate(this.i18n,this.I18n.key.statusFilter.all)},{id:a.ZC.ACTIVE,label:this.I18n.translate(this.i18n,this.I18n.key.table.statusActive)},{id:a.ZC.REVOKED,label:this.I18n.translate(this.i18n,this.I18n.key.table.statusRevoked)}],this.statusFilterChange=new e.vpe,this.closeOverlay=new e.vpe,this.activeIndexWrapper$=this.select((0,U.Cc)(["activeIndex"])),this.selectedStatusFilter$=this.select("statusFilter").pipe((0,le.q)(1)),this.set({activeIndex:null})}set statusFilter(o){this.setProperty("statusFilter",o)}handleClick(o,t){o.stopPropagation(),o.preventDefault(),this.statusFilterChange.emit({statusFilter:t.id}
1),this.closeOverlay.emit()}static#e=this.\u0275fac=function(t){return new(t||w)};static#t=this.\u0275cmp=e.Xpm({type:w,selectors:[["t5s-user-settings-developer-status-filter-menu"]],inputs:{statusFilter:"statusFilter"},outputs:{statusFilterChange:"statusFilterChange",closeOverlay:"closeOverlay"},features:[e.qOj],decls:7,vars:50,consts:[[4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["t5sClickableElement","",3,"isActive","mousemove","click"],[3,"size","icon","fgColor"]],template:function(t,i){1&t&&(e.TgZ(0,"div")(1,"div")(2,"div")(3,"div"),e._uU(4),e.qZA()(),e.YNc(5,pe,2,2,"ng-container",0),e.ALo(6,"async"),e.qZA()()),2&t&&(e.Udp("display","flex")("flex-direction","column")("min-width",180,"px")("max-width","calc(100vw - 24px)")("height","100%")("max-height",70,"vh"),e.xp6(1),e.Udp("padding-top",6,"px")("padding-bottom",6,"px"),e.xp6(1),e.Udp("display","flex")("flex-direction","column")("padding-left",14,"px")("padding-right",14,"px")("margin-top",6,"px")("margin-bottom",8,"px")("color",i.rgba(i.Color.black,.65))("font-size",12,"px")("font-weight",500)("line-height",16,"px")("user-select","none"),e.xp6(1),e.Udp("al
1ign-self","left")("white-space","nowrap")("overflow","hidden")("text-overflow","ellipsis"),e.xp6(1),e.hij(" ",i.headline," "),e.xp6(1),e.Q6J("ngIf",e.lcZ(6,48,i.activeIndexWrapper$)))},dependencies:[u.sg,u.O5,S.v,I.H,u.Ov],encapsulation:2,changeDetection:0})}function de(s,o){if(1&s){const t=e.EpF();e.TgZ(0,"t5s-user-settings-developer-status-filter-menu",13),e.NdJ("statusFilterChange",function(n){e.CHM(t);const r=e.oxw(2);return e.KtG(r.set({statusFilter:n.statusFilter}))})("closeOverlay",function(){e.CHM(t),e.oxw();const n=e.MAs(23);return e.KtG(n.closeOverlay())}),e.qZA()}if(2&s){const t=e.oxw().ngIf;e.Q6J("statusFilter",t.statusFilter)}}function ge(s,o){if(1&s&&e._UZ(0,"t5s-svg",3),2&s){const t=e.oxw().ngIf,i=e.oxw();e.Q6J("size",14)("icon",t.sortAscending?i.IconSortAscending:i.IconSortDescending)("fgColor",i.rgba(i.Color.black,.45))}}function xe(s,o){if(1&s&&e._UZ(0,"t5s-svg",3),2&s){const t=e.oxw().ngIf,i=e.oxw();e.Q6J("size",14)("icon",t.sortAscending?i.IconSortAscending:i.IconSortDescending)("fgColor",i.rgba(i.Color.black,.45))}}function he(s,o){if(1&s&&e._UZ(0,"t5s-svg",3),2&s){const t=e.oxw().ngIf,i=e.oxw();e.Q6J("size",14)("icon",t.sortAscending?i.IconSortAscending:i.IconSortDescending)("fgColor",i.rgba(i.Color.black,.45))}}function ue(s,o){if(1&s&&e._UZ(0,"t5s-svg",3),2&s){const t=e.oxw().ngIf,i=e.oxw();e.Q6J("size",14)("icon",t.sortAscending?i.IconSortAscending:i.IconSortDescending)("fgColor",i.rgba(i.Color.black,.45))}}function _e(s,o){if(1&s&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&s){const t=o.$implicit;
1e.Udp("align-self","center")("flex-shrink",0)("padding","2px 4px")("background-color",t.background)("color",t.color)("border-radius",4,"px")("font-size",11,"px")("font-weight",500)("line-height",1.3)("letter-spacing",0,"px")("white-space","nowrap")("width","fit-content"),e.xp6(1),e.hij(" ",t.label," ")}}function me(s,o){if(1&s&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&s){const t=o.$implicit;e.Udp("align-self","center")("flex-shrink",0)("padding","2px 4px")("background-color",t.background)("color",t.color)("border-radius",4,"px")("font-size",11,"px")("font-weight",500)("line-height",1.3)("letter-spacing",0,"px")("white-space","nowrap")("width","fit-content"),e.xp6(1),e.hij(" ",t.label," ")}}function ve(s,o){if(1&s){const t=e.EpF();e.TgZ(0,"t5s-user-settings-developer-row-menu",20),e.NdJ("renameClick",function(){e.CHM(t);const n=e.oxw().$implicit,r=e.MAs(28),p=e.oxw(2);return r.closeOverlay(),e.KtG(p.renameTokenClick.emit({row:n}))})("revokeClick",function(){e.CHM(t);const n=e.oxw().$implicit,r=e.MAs(28),p=e.oxw(2);return r.closeOverlay(),e.KtG(p.revokeTokenClick.emit({row:n}))})("deleteClick",function(){e.CHM(t);const n=e.oxw().$implicit,r=e.MAs(28),p=e.oxw(2);return r.closeOverlay(),e.KtG(p.deleteTokenClick.emit({row:n}))})("copyApiKeyClick",function(){e.CHM(t),e.oxw();const n=e.MAs(28),r=e.oxw(2);return n.closeOverlay(),e.KtG(r.copyLegacyApiKeyClick.emit())})("deleteApiKeyClick",function(){e.CHM(t),e.oxw();const n=e.MAs(28),r=e.oxw(2);return n.closeOverlay(),e.KtG(r.deleteLegacyApiKeyClick.emit())}),e.qZA()}if(2&s){const t=e.oxw().$implicit,i=e.oxw(2);e.Q6J("kind",t.kind)("isRevoked",t.status===i.RowStatus.REVOKED)}}function fe(s,o){if(1&s&&(e.TgZ(0,"tr",14)(1,"td")(2,"div")(3,"div",15),e._uU(4),e.qZA()()(),e.TgZ(5,"td")(6,"div")(7,"div"),e.YNc(8,_e,2,25,"div",16),e.qZA()()(),e.TgZ(9,"td")(10,"div")(11,"div"),e.YNc(12,me,2,25,"div",16),e.qZA()()(),e.TgZ(13,"td")(14,"div")(15,"div"),e._uU(16),e.qZA()()(),e.TgZ(17,"td")(18,"div")(19,"div"),e._uU(20),e.qZA()()(),e.TgZ(21,"td")(22,"div")(23,"div"),e._uU(24),e.qZA()()(),e.TgZ(25,"td")(26,"div")(27,"button",17,18),e._UZ(29,"t5s-svg",3),e.qZA(),e.YNc(30,ve,1,2,"ng-template",null,19,e.W1O),e.qZA()()()),2&s){const t=o.$implicit,i=e.MAs(31),n=e.oxw().ngIf,r=e.oxw();e.Udp("border-bottom",r.rowBorderBottom),e.uIk("data-cy-token-id",t.tokenId)("data-cy-row-kind",t.kind)("data-cy-row-status",t.status),e.xp6(1),e.Udp("padding-inline",12,"px")("box-sizing","border-box")("border-start-start-radius",4,"px")("border-end-start-radius",4,"px"),e.xp6(1),e.Udp("display","flex")("align-items","center")("min-height",56,"px")("max-height",64,"px")("font-size",14,"px")("line-height",20,"px")("font-weight",500),e.xp6(1),e.Udp("min-width",0,"px")("white-space","nowrap")("overflow","hidden")("text-overflow","ellipsis"),e.Q6J("t5sTooltipV3",t.name)("tooltipOnlyWhenTruncated",!0)("tooltipPosition","bottom"),e.xp6(1),e.hij(" ",t.name," "),e.xp6(1),e.Udp("padding-inline",12,"px")("box-sizing","border-box"),e.xp6(1),e.Udp("display","flex")("align-items","center")("height",100,"%")("min-height",56,"px")("max-height",64,"px")("font-size",14,"px")("overflow","hidden"),e.xp6(1),e.Udp("display","flex")("flex-direction","row")("align-items","center")("gap",4,"px")("min-width",0,"px")("overflow","hidden"),e.xp6(1),e.Q6J("ngForOf",t.contentAccessBadges)("ngForTrackBy",r.trackByIndex),e.xp6(1),e.Udp("padding-inline",12,"px")("box-sizing","border-box"),e.xp6(1),e.Udp("display","flex")("align-items","center")("height",100,"%")("min-height",56,"px")("max-height",64,"px")("font-size",14,"px")("overflow","hidden"),e.xp6(1),e.Udp("display","flex")("flex-direction","row")("align-items","center")("gap",4,"px")("min-width",0,"px")("overflow","hidden"),e.xp6(1),e.Q6J("ngForOf",t.capabilityBadges)("ngForTrackBy",r.trackByIndex),e.xp6(1),e.Udp("padding-inline",12,"px")("box-sizing","border-box"),e.xp6(1),e.Udp("display","flex")("align-items","center")("min-height",56,"px")("max-height",64,"px")("font-size",14,"px")("line-height",20,"px")("font-weight",400)("color",t.status===r.RowStatus.REVOKED?r.rgba(r.Color.black,.65):r.Color.black),e.xp6(1),e.Udp("min-width",0,"px")("white-space","nowrap")("overflow","hidden")("text-overflow","ellipsis"),e.xp6(1),e.hij(" ",t.statusLabel," "),e.xp6(1),e.Udp("padding-inline",12,"px")("box-sizing","border-box"),e.xp6(1),e.Udp("display","flex")("align-items","center")("min-height",56,"px")("max-height",64,"px")("font-size",14,"px")("line-height",20,"px")("font-weight",400)("color",t.createdAt?r.Color.black:r.rgba(r.Color.black,.5)),e.xp6(1),e.Udp("min-width",0,"px")("white-space","nowrap")("overflow","hidden")("text-overflow","ellipsis"),e.xp6(1),e.hij(" ",t.createdAtLabel," "),e.xp6(1),e.Udp("padding-inline",12,"px")("box-sizing","border-box"),e.xp6(1),e.Udp("display","flex")("align-items","center")("min-height",56,"px")("max-height",64,"px")("font-size",14,"px")("line-height",20,"px")("font-weight",400)("color",t.lastUsedAt?r.Color.black:r.rgba(r.Color.black,.5)),e.xp6(1),e.Udp("min-width",0,"px")("white-space","nowrap")("overflow","hidden")("text-overflow","ellipsis"),e.xp6(1),e.hij(" ",t.lastUsedAtLabel," "),e.xp6(1),e.Udp("padding-inline",6,"px")("box-sizing","border-box")("border-start-end-radius",4,"px")("border-end-end-radius",4,"px"),e.xp6(1),e.Udp("display","flex")("align-items","center")("justify-content","flex-end")("min-height",56,"px")("max-height",64,"px"),e.xp6(1),e.Udp("transition","background 20ms ease-in")("display","flex")("align-items","center")("justify-content","center")("flex-shrink",0)("width",24,"px")("height",24,"px")("border-radius",6,"px"),e.Q6J("t5sMenuOverlay",i)("menuOverlayPosition","bottom-center")("t5sTooltipV3",n.rowActionsTooltip)("tooltipPosition","bottom"),e.uIk("aria-label",n.rowActionsTooltip),e.xp6(2),e.Q6J("size",14)("icon",r.IconDotsWebClient)("fgColor",r.rgba(r.Color.black,.45))}}function we(s,o){1&s&&e._UZ(0,"img",21),2&s&&e.Udp("width",16,"px")("height",16,"px")("margin","12px 0px")}function ke(s,o){if(1&s&&(e.TgZ(0,"div",22),e._uU(1),e.qZA()),2&s){const t=e.oxw().ngIf,i=e.oxw();e.Udp("width",100,"%")("margin","15px 0px 40px 0px")("font-size",12,"px")("line-height",16,"px")("text-align","center")("color",i.rgba(i.Color.black,.65)),e.xp6(1),e.hij(" ",t.emptyPlaceholder," ")}}function Ce(s,o){if(1&s){const t=e.EpF();e.TgZ(0,"div"),e._uU(1),e.TgZ(2,"span",23),e.NdJ("click",function(){e.CHM(t);const n=e.oxw(2);return e.KtG(n.resetFilters())})("keydown.space",function(n){return n.preventDefault()})("keyup.space",function(){e.CHM(t);const n=e.oxw(2);return e.KtG(n.resetFilters())})("keydown.enter",function(){e.CHM(t);const n=e.oxw(2);return e.KtG(n.resetFilters())}),e._uU(3),e.qZA()()}if(2&s){const t=e.oxw().ngIf,i=e.oxw();e.Udp("width",100,"%")("margin","15px 0px 40px 0px")("font-size",12,"px")("line-height",16,"px")("text-align","center")("color",i.rgba(i.Color.black,.65)),e.xp6(1),e.hij(" ",t.noTokensFoundPlaceholder," "),e.xp6(1),e.Udp("display","inline")("color","inherit")("padding","1px 2px")("border-radius",4,"px")("text-decoration","underline")("user-select","none")("cursor","pointer"),e.xp6(1),e.Oqu(t.resetFiltersLabel)}}const K=function(s,o,t){return{default:s,hover:o,active:t}};function ye(s,o){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"div")(2,"div")(3,"div")(4,"header")(5,"div")(6,"div"),e._uU(7),e.qZA(),e.TgZ(8,"div"),e._uU(9),e.qZA()()(),e.TgZ(10,"section")(11,"div")(12,"div")(13,"div")(14,"div")(15,"div"),e._uU(16),e.qZA()(),e.TgZ(17,"div"),e._uU(18),e.qZA()()(),e.TgZ(19,"div")(20,"div")(21,"div")(22,"button",1,2),e._UZ(24,"t5s-svg",3),e.qZA(),e.YNc(25,de,1,1,"ng-template",null,4,e.W1O),e.TgZ(27,"t5s-expanding-search-input",5),e.NdJ("searchQueryChange",function(n){e.CHM(t);const r=e.oxw();return e.KtG(r.set({searchQuery:n.searchQuery}))}),e.qZA(),e.TgZ(28,"button",6),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.createTokenClick.emit())}),e._uU(29),e.qZA()(),e.TgZ(30,"div")(31,"table")(32,"thead")(33,"tr")(34,"th")(35,"div")(36,"button",7),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.toggleTableSort(n.SortProperty.NAME))}),e.TgZ(37,"span"),e._uU(38),e.qZA(),e.YNc(39,ge,1,3,"t5s-svg",8),e.qZA()()(),e.TgZ(40,"th")(41,"div"),e._uU(42),e.qZA()(),e.TgZ(43,"th")(44,"div"),e._uU(45),e.qZA()(),e.TgZ(46,"th")(47,"div")(48,"button",7),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.toggleTableSort(n.SortProperty.STATUS))}),e.TgZ(49,"span"),e._uU(50),e.qZA(),e.YNc(51,xe,1,3,"t5s-svg",8),e.qZA()()(),e.TgZ(52,"th")(53,"div")(54,"button",7),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.toggleTableSort(n.SortProperty.CREATED_AT))}),e.TgZ(55,"span"),e._uU(56),e.qZA(),e.YNc(57,he,1,3,"t5s-svg",8),e.qZA()()(),e.TgZ(58,"th")(59,"div")(60,"button",7),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.toggleTableSort(n.SortProperty.LAST_USED_AT))}),e.TgZ(61,"span"),e._uU(62),e.qZA(),e.YNc(63,ue,1,3,"t5s-svg",8),e.qZA()()(),e._UZ(64,"th"),e.qZA()(),e.TgZ(65,"tbody"),e.YNc(66,fe,32,232,"tr",9),e.qZA()(),e.YNc(67,we,1,6,"img",10),e.YNc(68,ke,2,13,"div",11),e.YNc(69,Ce,4,28,"div",12),e.qZA()()()()()()()(),e.BQk()}if(2&s){const t=o.ngIf,i=e.MAs(26),n=e.oxw();e.xp6(1),e.Udp("display","flex")("flex-direction","column")("width",100,"%")("height",100,"%")("background-color",n.Color.white),e.xp6(1),e.Udp("flex-grow",1)("min-height",0,"px")("overflow-y","auto")("display","flex")("justify-content","center")("align-items","flex-start")("padding-inline","clamp(18px, 5vw, 60px)")("padding-block",36,"px"),e.xp6(1),e.Udp("display","flex")("flex-direction","column")("gap",36,"px")("width",100,"%")("max-width",800,"px"),e.xp6(2),e.Udp("display","flex")("flex-direction","column")("gap",8,"px"),e.xp6(1),e.Udp("font-size",26,"px")("line-height",32,"px")("font-weight",600),e.xp6(1),e.hij(" ",t.pageTitle," "),e.xp6(1),e.Udp("font-size",16,"px")("line-height",24,"px")("font-weight",400),e.xp6(1),e.hij(" ",t.pageDescription," "),e.xp6(1),e.Udp("display","flex")("flex-direction","column"),e.xp6(1),e.Udp("display","flex")("width",100,"%")("flex-flow","column wrap")("position","relative")("gap",12,"px"),e.xp6(1),e.Udp("flex","3 1 0%")("min-width",200,"px"),e.xp6(1),e.Udp("display","flex")("flex-direction","column")("align-items","flex-start")("justify-content","flex-start")("gap",4,"px"),e.xp6(1),e.Udp("display","flex")("align-items","center")("gap",6,"px"),e.xp6(1),e.Udp("font-size",14,"px")("line-height",20,"px")("font-weight",500),e.xp6(1),e.hij(" ",t.sectionTitle," "),e.xp6(1),e.Udp("font-size",13,"px")("line-height",18,"px")("font-weight",400)("color",n.rgba(n.Color.black,.65))("text-wrap","pretty"),e.xp6(1),e.hij(" ",t.sectionDescription," "),e.xp6(1),e.Udp("flex","1 1 0%")("display","flex")("flex-direction","column")("justify-content","flex-start")("width",100,"%"),e.xp6(1),e.Udp("display","flex")("flex-direction","column")("gap",12,"px"),e.xp6(1),e.Udp("display","flex")("align-items","center")("justify-content","flex-end")("gap",8,"px"),e.xp6(1),e.Udp("transition","background 20ms ease-in")("display","flex")("align-items","center")("justify-content","center")("flex-shrink",0)("width",28,"px")("height",28,"px")("border-radius",6,"px"),e.Q6J("t5sClickableElement",e.kEZ(501,K,n.rgba(n.Color.black,0),t.isStatusFilterActive?n.rgba(n.Color.blueBright1,.1):n.rgba(n.Color.black,.06),t.isStatusFilterActive?n.rgba(n.Color.blueBright1,.2):n.rgba(n.Color.black,.16)))("t5sDropdownOverlay",i)("dropdownOverlayBgColor",t.isStatusFilterActive?n.rgba(n.Color.blueBright1,.1):n.rgba(n.Color.black,.06))("dropdownOverlayPosition","bottom-left")("t5sTooltipV3",t.statusFilterTooltip)("tooltipPosition","bottom"),e.uIk("aria-label",t.statusFilterTooltip),e.xp6(2),e.Q6J("size",18)("icon",n.IconFilter)("fgColor",t.isStatusFilterActive?n.Color.blueBright1:n.rgba(n.Color.black,.65)),e.xp6(3),e.Q6J("placeholder",t.searchPlaceholder)("searchBtnTooltip",t.searchTooltip)("searchBtnTooltipShortcut",n.searchShortcutLabel$)("clearBtnTooltip",t.searchClearTooltip),e.xp6(1),e.Udp("box-shadow",n.Shadow.button)("display","inline-flex")("align-items","center")("justify-content","center")("flex-shrink",0)("white-space","nowrap")("height",28,"px")("border-radius",6,"px")("padding","0p
1x 12px")("color",n.rgba(n.Color.white,.95))("font-size",14,"px")("line-height",18,"px")("font-weight",500),e.Q6J("t5sClickableElement",e.kEZ(505,K,n.Color.blackGlossy,n.Color.blackBright1,n.Color.blackBright2)),e.xp6(1),e.hij(" ",t.newTokenBtnLabel," "),e.xp6(1),e.Udp("width",100,"%")("padding-bottom",36,"px"),e.xp6(1),e.Udp("table-layout","fixed")("border-collapse","collapse")("width",100,"%"),e.xp6(3),e.Udp("box-shadow",n.headerBoxShadow)("padding-inline",12,"px")("box-sizing","border-box")("width",24,"%")("height",32,"px"),e.xp6(1),e.Udp("display","flex")("align-items","center")("height",100,"%"),e.xp6(1),e.Udp("display","flex")("flex-direction","row")("align-items","center")("height",20,"px")("gap",4,"px")("max-width",100,"%")("overflow","hidden")("border-radius",4,"px")("padding",5,"px")("margin",-5,"px"),e.xp6(1),e.Udp("font-size",12,"px")("font-weight",400)("color",n.rgba(n.Color.black,.65))("white-space","nowrap")("overflow","hidden")("text-overflow","ellipsis")("flex","1 1 auto")("min-width",0,"px")("text-align","start"),e.xp6(1),e.Oqu(t.columnName),e.xp6(1),e.Q6J("ngIf",t.sortProperty===n.SortProperty.NAME),e.xp6(1),e.Udp("box-shadow",n.headerBoxShadow)("padding-inline",12,"px")("box-sizing","border-box")("width",19,"%")("height",32,"px"),e.xp6(1),e.Udp("display","flex")("align-items","center")("height",100,"%")("font-size",12,"px")("line-height",16,"px")("font-weight",400)("color",n.rgba(n.Color.black,.65))("white-space","nowrap")("overflow","hidden")("text-overflow","ellipsis"),e.xp6(1),e.hij(" ",t.columnContentAccess," "),e.xp6(1),e.Udp("box-shadow",n.headerBoxShadow)("padding-inline",12,"px")("box-sizing","border-box")("width",16,"%")("height",32,"px"),e.xp6(1),e.Udp("display","flex")("align-items","center")("height",100,"%")("font-size",12,"px")("line-height",16,"px")("font-weight",400)("color",n.rgba(n.Color.black,.65))("white-space","nowrap")("overflow","hidden")("text-overflow","ellipsis"),e.xp6(1),e.hij(" ",t.columnCapabilities," "),e.xp6(1),e.Udp("box-shadow",n.headerBoxShadow)("padding-inline",12,"px")("box-sizing","border-box")("width",11,"%")("height",32,"px"),e.xp6(1),e.Udp("display","flex")("align-items","center")("height",100,"%"),e.xp6(1),e.Udp("display","flex")("flex-direction","row")("align-items","center")("height",20,"px")("gap",4,"px")("max-width",100,"%")("overflow","hidden")("border-radius",4,"px")("padding",5,"px")("margin",-5,"px"),e.xp6(1),e.Udp("font-size",12,"px")("font-weight",400)("color",n.rgba(n.Color.black,.65))("white-space","nowrap")("overflow","hidden")("text-overflow","ellipsis")("flex","1 1 auto")("min-width",0,"px")("text-align","start"),e.xp6(1),e.Oqu(t.columnStatus),e.xp6(1),e.Q6J("ngIf",t.sortProperty===n.SortProperty.STATUS),e.xp6(1),e.Udp("box-shadow",n.headerBoxShadow)("padding-inline",12,"px")("box-sizing","border-box")("width",12,"%")("height",32,"px"),e.xp6(1),e.Udp("display","flex")("align-items","center")("height",100,"%"),e.xp6(1),e.Udp("display","flex")("flex-direction","row")("align-items","center")("height",20,"px")("gap",4,"px")("max-width",100,"%")("overflow","hidden")("border-radius",4,"px")("padding",5,"px")("margin",-5,"px"),e.xp6(1),e.Udp("font-size",12,"px")("font-weight",400)("color",n.rgba(n.Color.black,.65))("white-space","nowrap")("overflow","hidden")("text-overflow","ellipsis")("flex","1 1 auto")("min-width",0,"px")("text-align","start"),e.xp6(1),e.Oqu(t.columnCreated),e.xp6(1),e.Q6J("ngIf",t.sortProperty===n.SortProperty.CREATED_AT),e.xp6(1),e.Udp("box-shadow",n.headerBoxShadow)("padding-inline",12,"px")("box-sizing","border-box")("width",12,"%")("height",32,"px"),e.xp6(1),e.Udp("display","flex")("align-items","center")("height",100,"%"),e.xp6(1),e.Udp("display","flex")("flex-direction","row")("align-items","center")("height",20,"px")("gap",4,"px")("max-width",100,"%")("overflow","hidden")("border-radius",4,"px")("padding",5,"px")("margin",-5,"px"),e.xp6(1),e.Udp("font-size",12,"px")("font-weight",400)("color",n.rgba(n.Color.black,.65))("white-space","nowrap")("overflow","hidden")("text-overflow","ellipsis")("flex","1 1 auto")("min-width",0,"px")("text-align","start"),e.xp6(1),e.Oqu(t.columnLastUsed),e.xp6(1),e.Q6J("ngIf",t.sortProperty===n.SortProperty.LAST_USED_AT),e.xp6(1),e.Udp("box-shadow",n.headerBoxShadow)("padding-inline",6,"px")("box-sizing","border-box")("width",6,"%")("height",32,"px"),e.xp6(2),e.Q6J("ngForOf",t.rows)("ngForTrackBy",n.trackById),e.xp6(1),e.Q6J("ngIf",t.isLoading),e.xp6(1),e.Q6J("ngIf",t.isEmpty),e.xp6(1),e.Q6J("ngIf",t.hasNoFilterResults)}}const be={[a.Rn.ALL]:{background:(0,_.m4)(_.Il.blue,.1),color:_.Il.blue},[a.Rn.COUNT]:{background:(0,_.m4)(_.Il.black,.09),color:(0,_.m4)(_.Il.black,.65)},[a.Rn.NONE]:{background:"rgba(223, 22, 0, 0.09)",color:_.Il.red2}};function N(s){return s.map(o=>({...o,...be[o.tone]}))}const E=(0,_.m4)(_.Il.black,.09),Te="inset 0 1px 0 "+E+", inset 0 -1px 0 "+E,Ae="1px solid "+E;class k extends C.ez{constructor(o,t){super(),this.shortcut$=t,this.I18n=v.W,this.SortProperty=a.Fx,this.RowStatus=a.R5,this.IconSortAscending=m.jV9,this.IconSortDescending=m.kwB,this.IconDotsWebClient=m.$FW,this.IconFilter=m.wHY,this.headerBoxShadow=Te,this.rowBorderBottom=Ae,this.searchShortcutLabel$=this.shortcut$.pipe((0,y.U)(({shortKey:i})=>i.symbol+"+S")),this.createTokenClick=new e.vpe,this.renameTokenClick=new e.vpe,this.revokeTokenClick=new e.vpe,this.deleteTokenClick=new e.vpe,this.copyLegacyApiKeyClick=new e.vpe,this.deleteLegacyApiKeyClick=new e.vpe,this.vm$=this.select((0,U.Cc)(["rows","loadingState","sortProperty","sortDirection","statusFilter","searchQuery"]),(0,y.U)(({rows:i,loadingState:n,sortProperty:r,sortDirection:p,statusFilter:x,searchQuery:d})=>{const{I18n:l,i18n:g}=this,D=n===a.Z$.LOADED||n===a.Z$.ERROR,P=function ee({rows:s,searchQuery:o,statusFilter:t,sortProperty:i,sortDirection:n}){const r=n===a.jl.DESC;return s.filter(p=>function W(s,o){const t=o.trim().toLowerCase();return!(0!==t.length&&!G.T.test(t,s.name))||function q(s){return[...s.contentAccessBadges.map(({label:o})=>o),...s.capabilityBadges.map(({label:o})=>o),s.statusLabel,s.createdAtLabel,s.lastUsedAtLabel]}(s).some(i=>i.toLowerCase().includes(t))}(p,o)&&function X(s,o){switch(o){case a.ZC.ALL:return!0;case a.ZC.ACTIVE:return s.status===a.R5.ACTIVE;case a.ZC.REVOKED:return s.status===a.R5.REVOKED}}(p,t)).sort((p,x)=>{const d=p.name.localeCompare(x.name);switch(i){case a.Fx.NAME:return r?-d:d;case a.Fx.STATUS:{const l=F[p.status]-F[x.status];return 0===l?d:r?-l:l}case a.Fx.CREATED_AT:{const l=M(p.createdAt,x.createdAt,r);return 0===l||void 0===l?d:l}case a.Fx.LAST_USED_AT:{const l=M(p.lastUsedAt,x.lastUsedAt,r);return 0===l||void 0===l?d:l}}})}({rows:i,searchQuery:d,statusFilter:x,sortProperty:r,sortDirection:p});return{rows:P.map(Z=>({...Z,contentAccessBadges:N(Z.contentAccessBadges),capabilityBadges:N(Z.capabilityBadges)})),sortProperty:r,sortAscending:p===a.jl.ASC,statusFilter:x,isStatusFilterActive:x!==a.ZC.ALL,isLoading:0===i.length&&!D,isEmpty:0===i.length&&D,hasNoFilterResults:i.length>0&&0===P.length&&D,pageTitle:l.translate(g,l.key.page.title),pageDescription:l.translate(g,l.key.page.description),sectionTitle:l.translate(g,l.key.page.sectionTitle),sectionDescription:l.translate(g,l.key.page.sectionDescription),newTokenBtnLabel:l.translate(g,l.key.page.newTokenBtnLabel),emptyPlaceholder:l.translate(g,l.key.page.emptyPlaceholder),noTokensFoundPlaceholder:l.translate(g,l.key.page.noTokensFoundPlaceholder),resetFiltersLabel:l.translate(g,l.key.page.resetFilters),searchPlaceholder:l.translate(g,l.key.page.searchPlaceholder),searchTooltip:l.translate(g,l.key.page.searchTooltip),searchClearTooltip:l.translate(g,l.key.page.searchClearTooltip),statusFilterTooltip:l.translate(g,l.key.statusFilter.tooltip),columnName:l.translate(g,l.key.table.columnName),columnContentAccess:l.translate(g,l.key.table.columnContentAccess),columnCapabilities:l.translate(g,l.key.table.columnCapabilities),columnStatus:l.translate(g,l.key.table.columnStatus),columnCreated:l.translate(g,l.key.table.columnCreated),columnLastUsed:l.translate(g,l.key.table.columnLastUsed),rowActionsTooltip:l.translate(g,l.key.table.rowActionsTooltip)}})),this.hold(o.addKeyBinding({key:"s",modifier:R.AK.SHORT,handler:()=>
1this.searchInput?.toggle()})),this.set({rows:[],loadingState:a.Z$.INITIAL,sortProperty:a.Fx.CREATED_AT,sortDirection:a.jl.DESC,statusFilter:a.ZC.ALL,searchQuery:""})}set rows(o){this.setProperty("rows",o)}set loadingState(o){this.setProperty("loadingState",o)}toggleTableSort(o){const{sortProperty:t,sortDirection:i}=this.get();this.set({sortProperty:o,sortDirection:t!==o?a.jl.ASC:i===a.jl.ASC?a.jl.DESC:a.jl.ASC})}resetFilters(){this.searchInput?.clear(),this.set({statusFilter:a.ZC.ALL,searchQuery:""})}static#e=this.\u0275fac=function(t){return new(t||k)(e.Y36(R.r2),e.Y36(te.K))};static#t=this.\u0275cmp=e.Xpm({type:k,selectors:[["t5s-user-settings-developer-view"]],viewQuery:function(t,i){if(1&t&&e.Gf(O.V,5),2&t){let n;e.iGM(n=e.CRH())&&(i.searchInput=n.first)}},inputs:{rows:"rows",loadingState:"loadingState"},outputs:{createTokenClick:"createTokenClick",renameTokenClick:"renameTokenClick",revokeTokenClick:"revokeTokenClick",deleteTokenClick:"deleteTokenClick",copyLegacyApiKeyClick:"copyLegacyApiKeyClick",deleteLegacyApiKeyClick:"deleteLegacyApiKeyClick"},features:[e.qOj],decls:2,vars:3,consts:[[4,"ngIf"],[3,"t5sClickableElement","t5sDropdownOverlay","dropdownOverlayBgColor","dropdownOverlayPosition","t5sTooltipV3","tooltipPosition"],["statusFilterTrigger","t5sDropdownOverlay"],[3,"size","icon","fgColor"],["statusFilterOverlay",""],[3,"placeholder","searchBtnTooltip","searchBtnTooltipShortcut","clearBtnTooltip","searchQueryChange"],["data-cy","t5s-wc-user-settings-developer-new-token-btn",3,"t5sClickableElement","click"],["t5sClickableElement","",3,"click"],[3,"size","icon","fgColor",4,"ngIf"],["data-cy","t5s-wc-user-settings-developer-row",3,"border-bottom",4,"ngFor","ngForOf","ngForTrackBy"],["t5sLoadingSpinner","",3,"width","height","margin",4,"ngIf"],["data-cy","t5s-wc-user-settings-developer-empty-placeholder",3,"width","margin","font-size","line-height","text-align","color",4,"ngIf"],[3,"width","margin","font-size","line-height","text-align","color",4,"ngIf"],[3,"statusFilter","statusFilterChange","closeOverlay"],["data-cy","t5s-wc-user-settings-developer-row"],[3,"t5sTooltipV3","tooltipOnlyWhenTruncated","tooltipPosition"],[3,"align-self","flex-shrink","padding","background-color","color","border-radius","font-size","font-weight","line-height","letter-spacing","white-space","width",4,"ngFor","ngForOf","ngForTrackBy"],["t5sClickableElement","","data-cy","t5s-wc-user-settings-developer-row-menu-btn",3,"t5sMenuOverlay","menuOverlayPosition","t5sTooltipV3","tooltipPosition"],["rowMenuTrigger","t5sMenuOverlay"],["rowMenu",""],[3,"kind","isRevoked","renameClick","revokeClick","deleteClick","copyApiKeyClick","deleteApiKeyClick"],["t5sLoadingSpinner",""],["data-cy","t5s-wc-user-settings-developer-empty-placeholder"],["t5sClickableElement","","tabindex","0",3,"click","keydown.space","keyup.space","keydown.enter"]],template:function(t,i){1&t&&(e.YNc(0,ye,70,509,"ng-container",0),e.ALo(1,"async")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,i.vm$))},dependencies:[u.sg,u.O5,ne.m,S.v,ie.i,oe.q,se.H,I.H,re.V,f,w,u.Ov],styles:["[_nghost-%COMP%]{height:100%;width:100%}"],changeDetection:0})}var Ue=c(54876),Se=c(36659),Ie=c(92225),Ee=c(87181),De=c(70939);class b{static#e=this.\u0275fac=function(t){return new(t||b)};static#t=this.\u0275mod=e.oAB({type:b});static#n=this.\u0275inj=e.cJS({imports:[u.ez,C.jQ,Ie.n,Ue.BV,Se.df,De.c7,Ee.h,O.w]})}var z=c(58625),Ze=c(1603),Le=c(90929),B=c(30948);function V(s,o){const t=v.W;switch(s){case a.R5.REVOKED:return t.translate(o,t.key.table.statusRevoked);case a.R5.EXPIRED:return t.translate(o,t.key.table.statusExpired);case a.R5.ACTIVE:return t.translate(o,t.key.table.statusActive)}}var Fe=c(78667),Me=c(84388),Ke=c(54520);class T{constructor(o){this.store$=o,this.i18n=(0,Fe.mu)(),this.loadingState$=this.store$.select(h.VA),this.rows$=(0,Me.aj)([this.store$.select(h.L$),this.store$.select(h.r1)]).pipe((0,y.U)(([t,i])=>function Oe({tokens:s,legacyApiKey:o,nowMs:t,i18n:i}){const n=v.W,r=n.translate(i,n.key.table.emptyValue),p=s.map(d=>{const l=function Re(s,o){return s.revokedAt?a.R5.REVOKED:void 0!==s.expiresAt&&s.expiresAt<=o?a.R5.EXPIRED:a.R5.ACTIVE}(d,t);return{id:a.zz.PERSONAL_ACCESS_TOKEN+":"+d.id,kind:a.zz.PERSONAL_ACCESS_TOKEN,tokenId:d.id,name:d.name,contentAccessBadges:(0,B.X_)({allSelected:d.contentScope===Ze._r.all,numWorkspaces:d.selectedWorkspaceIds.length,numApps:d.selectedBlabDefIds.length,i18n:i}),capabilityBadges:(0,B.j7)({allSelected:d.scopes.length===Le.Ld.length,numCapabilities:d.scopes.length,i18n:i}),status:l,statusLabel:V(l,i),createdAt:d.createdAt,createdAtLabel:z.L.formatMetaTimestampDate(i,d.createdAt)??r,lastUsedAt:d.lastUsedAt,lastUsedAtLabel:z.L.formatMetaTimestampDate(i,d.lastUsedAt)??r}});if(null===o)return p;const x={id:a.zz.LEGACY_API_KEY,kind:a.zz.LEGACY_API_KEY,name:n.translate(i,n.key.table.legacyApiKeyName),contentAccessBadges:[{label:n.translate(i,n.key.contentAccess.allLabel),tone:a.Rn.ALL}],capabilityBadges:[{label:n.translate(i,n.key.capabilities.allLabel),tone:a.Rn.ALL}],status:a.R5.ACTIVE,statusLabel:V(a.R5.ACTIVE,i),createdAtLabel:r,lastUsedAtLabel:r};return[...p,x]}({tokens:t,legacyApiKey:i,nowMs:Date.now(),i18n:this.i18n}
1))),o.dispatch(h.qQ.loadTokens())}handleCreateTokenClick(){this.store$.dispatch(h.qQ.openCreateOverlay())}handleRenameTokenClick({row:o}){void 0!==o.tokenId&&this.store$.dispatch(h.qQ.openRenameOverlay({tokenId:o.tokenId}))}handleRevokeTokenClick({row:o}){void 0!==o.tokenId&&this.store$.dispatch(h.qQ.attemptRevokeToken({tokenId:o.tokenId}))}handleDeleteTokenClick({row:o}){void 0!==o.tokenId&&this.store$.dispatch(h.qQ.attemptDeleteToken({tokenId:o.tokenId}))}handleCopyLegacyApiKeyClick(){this.store$.dispatch(h.qQ.copyLegacyApiKeyToClipboard())}handleDeleteLegacyApiKeyClick(){this.store$.dispatch(h.qQ.attemptRevokeLegacyApiKey())}static#e=this.\u0275fac=function(t){return new(t||T)(e.Y36(Ke.yh))};static#t=this.\u0275cmp=e.Xpm({type:T,selectors:[["t5s-user-settings-developer"]],decls:1,vars:2,consts:[[3,"rows","loadingState","createTokenClick","renameTokenClick","revokeTokenClick","deleteTokenClick","copyLegacyApiKeyClick","deleteLegacyApiKeyClick"]],template:function(t,i){1&t&&(e.TgZ(0,"t5s-user-settings-developer-view",0),e.NdJ("createTokenClick",function(){return i.handleCreateTokenClick()})("renameTokenClick",function(r){return i.handleRenameTokenClick(r)})("revokeTokenClick",function(r){return i.handleRevokeTokenClick(r)})("deleteTokenClick",function(r){return i.handleDeleteTokenClick(r)})("copyLegacyApiKeyClick",function(){return i.handleCopyLegacyApiKeyClick()})("deleteLegacyApiKeyClick",function(){return i.handleDeleteLegacyApiKeyClick()}),e.qZA()),2&t&&e.Q6J("rows",i.rows$)("loadingState",i.loadingState$)},dependencies:[k],styles:["[_nghost-%COMP%]{height:100%;width:100%}"],changeDetection:0})}class A{static#e=this.\u0275fac=function(t){return new(t||A)};static#t=this.\u0275mod=e.oAB({type:A});static#n=this.\u0275inj=e.cJS({imports:[u.ez,b,h.PS,Q.Bz.forChild([{path:"",component:T}])]})}}}]);
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.