PageSourceSearch

https://app.finimpulse.com/chunk-ZLSZ5YGA.js

js finimpulse.com collected 2026-10-04 21:47:40 UTC 43,984 bytes, 1 lines download raw bytes

1import{a as Ze,b as le,c as Ye,d as qe}from"./chunk-72YODL5Q.js";import{a as Qe,b as Je}from"./chunk-IKK3B2KI.js";import{a as Xe}from"./chunk-QNQTFA5Q.js";import"./chunk-BYXBJQAS.js";import"./chunk-YKOWVR55.js";import{a as re}from"./chunk-S5ASB5AB.js";import{a as ze}from"./chunk-ML6W6DYC.js";import{a as Z}from"./chunk-BTQ3ZHAS.js";import"./chunk-GKSPSK4P.js";import"./chunk-JNQSDDTU.js";import"./chunk-FHQM4MHL.js";import"./chunk-ZAGWB2MP.js";import{b as Oe,f as Pe,g as Re,h as Ne}from"./chunk-JR5EHZFX.js";import"./chunk-GNYAB7RK.js";import"./chunk-REBXJJBR.js";import"./chunk-KZ6O4UFR.js";import{a as $,b as oe}from"./chunk-XUYO53AY.js";import"./chunk-Y4Y4T2FQ.js";import"./chunk-A4RVGZDH.js";import{e as ne,h as Ae}from"./chunk-ZKHDG5YV.js";import"./chunk-XAFI32DX.js";import{a as $e}from"./chunk-IMHFDY4K.js";import{a as Q}from"./chunk-HTVLOOWP.js";import"./chunk-JVXN7DU7.js";import"./chunk-HTCZJVOF.js";import{a as V,b as z}from"./chunk-TCNTYI5F.js";import"./chunk-TXM2VSDT.js";import"./chunk-37744Z2U.js";import"./chunk-HIQRTLXM.js";import"./chunk-UJGCWS6W.js";import{A as Ge,B as Ke,D as ae,a as Le,c as Be,g as Ve,x as He}from"./chunk-G6DIKDAE.js";import"./chunk-VM4DEIJH.js";import"./chunk-UQW65RVG.js";import"./chunk-YJ5HFDYJ.js";import"./chunk-LAI4YBR4.js";import"./chunk-EVVOOTIQ.js";import{a as we}from"./chunk-5Q5VD6VX.js";import"./chunk-5EMEP2FE.js";import{j as Ue,k as We,l as je}from"./chunk-FUQW4URC.js";import{a as Fe}from"./chunk-BX2XGGIJ.js";import{a as H,b as X}from"./chunk-JDKKAUKQ.js";import"./chunk-4ZB57WCE.js";import"./chunk-AFMFXK4D.js";import{a as ye}from"./chunk-MIG2UEUK.js";import"./chunk-4HBQP6NS.js";import"./chunk-I4HG3S2M.js";import"./chunk-QQIMN2JX.js";import"./chunk-F6ETDIXC.js";import"./chunk-A7RBIIUZ.js";import"./chunk-KWOQ4HMT.js";import"./chunk-YJ5DYO5F.js";import{a as De}from"./chunk-RSQPNHZE.js";import{a as ie}from"./chunk-XPT67DC2.js";import"./chunk-RDBFOA3X.js";import"./chunk-DOPWH2QC.js";import"./chunk-WBS2ZB34.js";import"./chunk-DKOULGK6.js";import"./chunk-OKFUWLWE.js";import"./chunk-G2RPGXWK.js";import"./chunk-BSMR5HIN.js";import{i as F,j}from"./chunk-7D5TBQRE.js";import"./chunk-MUYF7UN3.js";import"./chunk-O2UZBAYN.js";import"./chunk-4HGNWMUF.js";import"./chunk-M45BUSZV.js";import{e as Ee,j as Ie,t as Me}from"./chunk-OQWTGWQI.js";import{D as be,v as ee,z as te}from"./chunk-JRIYDRTX.js";import"./chunk-FCLK5JCQ.js";import"./chunk-AQGP2UH6.js";import{b as W,c as B}from"./chunk-5VDETJGG.js";import{$a as A,Ab as pe,Bb as Y,Eb as C,Ec as Se,Fb as v,Gb as M,Hb as fe,Hc as ve,Ja as y,Kb as G,Kc as xe,Lb as w,Lc as L,Mb as K,Nb as P,Ob as R,Pa as I,Pb as N,Tb as de,Ua as ge,Ub as q,Va as Ce,Vb as ke,Xa as f,Ya as k,_a as Te,aa as b,ab as O,ac as d,bb as T,bc as u,cb as r,cc as U,db as a,eb as m,ec as me,fa as c,fc as D,ga as _,jc as ce,kc as J,lb as x,na as E,nb as S,pb as s,qc as _e,xa as ue,yc as he,za as o}from"./chunk-Q47N5KYY.js";import"./chunk-DE4CES4T.js";function mt(t,l){t&1&&m(0,"app-eye-icon")}function ct(t,l){t&1&&m(0,"app-refresh-icon")}function _t(t,l){if(t&1&&(r(0,"span",17),C(1),a()),t&2){let e=s(2);o(),v(e.apiManagerStore.globalIps.items().length)}}function ut(t,l){if(t&1){let e=x();r(0,"div",7)(1,"div",11)(2,"div",12)(3,"div",13),m(4,"input",14),a(),r(5,"p-button",15),d(6,"translate"),S("click",function(){c(e);let i=s();return _(i.onRevealToken())}),I(7,mt,1,0,"ng-template",null,0,D),a(),r(9,"p-button",15),d(10,"translate"),S("click",function(){c(e);let i=s();return _(i.onRefreshToken())}),I(11,ct,1,0,"ng-template",null,0,D),a()()(),r(13,"button",16),d(14,"translate"),S("click",function(){c(e);let i=s();return _(i.openIpWhitelistModal())}),m(15,"app-shield-icon"),r(16,"span"),C(17),d(18,"translate"),a(),f(19,_t,2,1,"span",17),a()()}if(t&2){let e=s(),n=N(0);o(4),T("value",n.default_api_token_masked)("disabled",!0),o(),T("loading",e.apiManagerStore.revealDefaultToken().isLoading)("pTooltip",u(6,9,"SHARE.REVEAL_FULL_TOKEN")),o(4),T("loading",e.apiManagerStore.refreshDefaultToken().isLoading)("pTooltip",u(10,11,"SHARE.REFRESH_TOKEN")),o(4),T("pTooltip",u(14,13,"SHARE.MANAGE_IP_WHITELIST")),o(4),v(u(18,15,"SHARE.IP_WHITELIST")),o(2),k(e.apiManagerStore.globalIps.items().length>0?19:-1)}}function gt(t,l){t&1&&(r(0,"div",7)(1,"div",11)(2,"div",12),m(3,"p-skeleton",18)(4,"p-skeleton",19)(5,"p-skeleton",19),a()(),m(6,"p-skeleton",20),a())}var Ct=50,nt=(()=>{class t{apiManagerStore=b(Q);confirmationService=b(ee);messageService=b(te);translateService=b(W);showRevealModal=_e(!1);showTokenModal=E(!1);tokenDisplayData=E(null);showIpWhitelistModal=_e(!1);maxIpsPerToken=Ct;tokenRevealEffect=J(()=>{let e=this.apiManagerStore.revealDefaultToken(),n=this.apiManagerStore.refreshDefaultToken();e.lastRevealedToken&&!e.isLoading&&!e.error&&(this.showTokenDisplayModal({token:e.lastRevealedToken.token,name:this.translateService.instant("SHARE.DEFAULT_API_TOKEN"),isRegeneration:!1,isRefresh:!1}),this.apiManagerStore.clearLastRevealedToken()),n.lastRefreshedToken&&!n.isLoading&&!n.error&&(this.showTokenDisplayModal({token:n.lastRefreshedToken.token,name:this.translateService.instant("SHARE.DEFAULT_API_TOKEN"),isRegeneration:!0,isRefresh:!0}),this.apiManagerStore.clearLastRefreshedToken())});ngOnInit(){this.apiManagerStore.getGlobalIps()}onRevealToken(){this.showRevealModal.set(!0)}onConfirmReveal(){this.apiManagerStore.revealDefaultTokenAPI()}onRefreshToken(){this.apiManagerStore.refreshDefaultTokenAPI()}closeTokenDisplayModal(){this.showTokenModal.set(!1),this.tokenDisplayData.set(null)}showTokenDisplayModal(e){this.tokenDisplayData.set(e),this.showTokenModal.set(!0)}openIpWhitelistModal(){this.showIpWhitelistModal.set(!0)}onAddIp(e){this.apiManagerStore.addGlobalIps([e]),this.messageService.add({severity:"success",summary:this.translateService.instant("SHARE.SUCCESS"),detail:this.translateService.instant("SHARE.IP_ADDED_GLOBAL")})}onAddCurrentIp(){let e=this.apiManagerStore.currentUserIp();e&&(this.apiManagerStore.addGlobalIps([e]),this.messageService.add({severity:"success",summary:this.translateService.instant("SHARE.SUCCESS"),detail:this.translateService.instant("SHARE.CURRENT_IP_ADDED")}))}onDeleteIp(e){this.confirmationService.confirm({message:this.translateService.instant("SHARE.REMOVE_IP_CONFIRM",{ip:e.ip_address}),header:this.translateService.instant("SHARE.REMOVE_IP_HEADER"),acceptButtonProps:{severity:"danger"},rejectButtonProps:{severity:"secondary"},accept:()=>{this.apiManagerStore.deleteGlobalIps([e.id.toString()]),this.messageService.add({severity:"success",summary:this.translateService.instant("SHARE.SUCCESS"),detail:this.translateService.instant("SHARE.IP_REMOVED_G
1LOBAL")})}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=y({type:t,selectors:[["app-default-token"]],inputs:{showRevealModal:[1,"showRevealModal"],showIpWhitelistModal:[1,"showIpWhitelistModal"]},outputs:{showRevealModal:"showRevealModalChange",showIpWhitelistModal:"showIpWhitelistModalChange"},decls:18,vars:19,consts:[["icon",""],[1,"body-h-full","h-full"],[1,"card-with-sub-cards"],[1,"card-title","flex","items-center","gap-2"],[1,"default-token__title-icon"],["value","LIVE",1,"basic-primary"],[1,"card-subtitle","small"],[1,"default-token-content"],[3,"visibleChange","revealToken","visible"],[3,"closeModal","tokenData","visible"],[3,"visibleChange","addIp","addCurrentIp","deleteIp","visible","ips","currentUserIp","maxIps","isLoading","tokenName"],[1,"default-token-info"],[1,"token-display"],[1,"input-field","w-full"],["id","token","pInputText","",1,"w-full",3,"value","disabled"],["tooltipPosition","left","severity","secondary",1,"flex-shrink-0",3,"click","loading","pTooltip"],["type","button","tooltipPosition","left",1,"ip-whitelist-trigger",3,"click","pTooltip"],[1,"ip-whitelist-trigger__badge"],["width","100%","height","2.25rem",1,"default-token-input-skeleton"],["width","2.25rem","height","2.25rem",1,"default-token-action-skeleton"],["width","8.75rem","height","2.25rem",1,"ip-whitelist-trigger-skeleton"]],template:function(n,i){if(n&1){let p=x();P(0),r(1,"p-card",1)(2,"div",2)(3,"div")(4,"h4",3),m(5,"app-key-icon",4),C(6),d(7,"translate"),m(8,"p-tag",5),a(),r(9,"p",6),C(10),d(11,"translate"),a()(),f(12,ut,20,17,"div",7)(13,gt,7,0,"div",7),a()(),r(14,"app-reveal-default-token-modal",8),K("visibleChange",function(g){return c(p),w(i.showRevealModal,g)||(i.showRevealModal=g),_(g)}),S("revealToken",function(){return c(p),_(i.onConfirmReveal())}),a(),r(15,"app-token-display-modal",9),S("closeModal",function(){return c(p),_(i.closeTokenDisplayModal())}),a(),r(16,"app-ip-whitelist-modal",10),d(17,"translate"),K("visibleChange",function(g){return c(p),w(i.showIpWhitelistModal,g)||(i.showIpWhitelistModal=g),_(g)}),S("addIp",function(g){return c(p),_(i.onAddIp(g))})("addCurrentIp",function(){return c(p),_(i.onAddCurrentIp())})("deleteIp",function(g){return c(p),_(i.onDeleteIp(g))}),a()}if(n&2){let h=!!R(i.apiManagerStore.userInfo()).default_api_token_masked;o(6),M(" ",u(7,13,"SHARE.DEFAULT_TOKEN")," "),o(4),M(" ",u(11,15,"SHARE.DEFAULT_TOKEN_SUBTITLE")," "),o(2),k(h?12:13),o(2),G("visible",i.showRevealModal),o(),T("tokenData",i.tokenDisplayData())("visible",i.showTokenModal()),o(),G("visible",i.showIpWhitelistModal),T("ips",i.apiManagerStore.globalIps.items())("currentUserIp",i.apiManagerStore.currentUserIp())("maxIps",i.maxIpsPerToken)("isLoading",i.apiManagerStore.globalIps.isLoading())("tokenName",u(17,17,"SHARE.DEFAULT_TOKEN"))}},dependencies:[L,j,F,z,V,X,H,Ze,re,ie,Z,le,Be,$,Ke,We,ae,B],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}.default-token__title-icon[_ngcontent-%COMP%]{font-size:1.25rem;flex-shrink:0}.default-token-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-6)}.default-token-info[_ngcontent-%COMP%]{flex:1;min-width:0}.default-token-info[_ngcontent-%COMP%]   input.p-inputtext[_ngcontent-%COMP%]{font-family:var(--font-mono);font-size:var(--text-sm)}.default-token-header-skeleton[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--spacing-2)}.default-token-header-skeleton__subtitle[_ngcontent-%COMP%]{max-width:100%}.token-display[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-2)}.default-token-input-skeleton[_ngcontent-%COMP%]{flex:1;min-width:0}.default-token-action-skeleton[_ngcontent-%COMP%], .ip-whitelist-trigger-skeleton[_ngcontent-%COMP%]{flex-shrink:0}.ip-whitelist-trigger[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-2);height:2.25rem;padding:0 var(--spacing-4);background:var(--bg-alt);border:1px solid var(--border-light);border-radius:var(--border-radius-md);color:var(--muted-text-color);font-size:var(--text-sm);font-weight:var(--font-semibold);cursor:pointer;white-space:nowrap;flex-shrink:0;transition:background var(--transition-fast)}.ip-whitelist-trigger[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.ip-whitelist-trigger__badge[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-width:1.25rem;height:1.25rem;padding:0 var(--spacing-1);background:var(--primary-light);color:var(--basic-primary);border-radius:var(--border-radius-full);font-size:var(--text-xs);font-weight:var(--font-normal)}@media(max-width:768px){.default-token-content[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:var(--spacing-4)}.default-token-info[_ngcontent-%COMP%]{width:100%}}"]})}return t})();function ft(t,l){t&1&&m(0,"app-check-icon")}function kt(t,l){t&1&&m(0,"app-copy-icon")}function ht(t,l){if(t&1&&f(0,ft,1,0,"app-check-icon")(1,kt,1,0,"app-copy-icon"),t&2){let e=s(2);k(e.isCopied()?0:1)}}function St(t,l){if(t&1){let e=x();r(0,"div",6)(1,"div",9),m(2,"input",10),a(),r(3,"div",11)(4,"p-button",12),d(5,"translate"),d(6,"translate"),S("click",function(){c(e);let i=s();return _(i.onCopyToken())}),I(7,ht,2,1,"ng-template",null,0,D),a()()()}if(t&2){let e=s(),n=N(0);o(2),T("value",n.sandbox_api_token)("disabled",!0),o(2),T("pTooltip",e.isCopied()?u(5,4,"SHARE.COPIED_EXCLAMATION"):u(6,6,"SHARE.COPY_TOKEN"))("severity",e.isCopied()?"success":"secondary")}}function vt(t,l){t&1&&(r(0,"div",6),m(1,"p-skeleton",13)(2,"p-skeleton",14),a())}var xt=2e3,ot=(()=>{class t{apiManagerStore=b(Q);isCopied=E(!1);onCopyToken(){let e=this.apiManagerStore.userInfo().sandbox_api_token;!e||this.isCopied()||navigator.clipboard.writeText(e).then(()=>{this.isCopied.set(!0),setTimeout(()=>this.isCopied.set(!1),xt)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=y({type:t,selectors:[["app-sandbox-token"]],decls:24,vars:14,consts:[["icon",""],[1,"body-h-full","h-full"],[1,"card-with-sub-cards"],[1,"card-title","flex","items-center","gap-2"],["value","SANDBOX",1,"additional-light"],[1,"card-subtitle","small"],[1,"token-display"],[1,"sandbox-token-note"],["href","https://developers.finimpulse.com/sandbox/","target","_blank","rel","noopener noreferrer",1,"sandbox-token-note__link"],[1,"input-field","w-full"],["id","sandbox-token","pInputText","",1,"w-full",3,"value","disabled"],[1,"copy-btn-wrap"],["tooltipPosition","left",3,"click","pTooltip","severity"],["width","100%","height","2.25rem"],["width","2.25rem","height","2.25rem","styleClass","flex-shrink-0"]],template:function(n,i){if
1(n&1&&(P(0),r(1,"p-card",1)(2,"div",2)(3,"div")(4,"h4",3),m(5,"app-flask-icon"),C(6),d(7,"translate"),m(8,"p-tag",4),a(),r(9,"p",5),C(10),d(11,"translate"),a()(),f(12,St,9,8,"div",6)(13,vt,3,0,"div",6),r(14,"div",7),m(15,"app-info-icon"),r(16,"span"),C(17),d(18,"translate"),a(),r(19,"a",8)(20,"span"),C(21),d(22,"translate"),a(),m(23,"app-external-link-icon"),a()()()()),n&2){let p=R(i.apiManagerStore.userInfo());o(6),M(" ",u(7,6,"SHARE.SANDBOX_API_TOKEN")," "),o(4),v(u(11,8,"SHARE.SANDBOX_SUBTITLE")),o(2),k(p.sandbox_api_token!==null?12:13),o(5),v(u(18,10,"SHARE.SANDBOX_NOTE")),o(4),v(u(22,12,"SHARE.DOCUMENTATION"))}},dependencies:[L,j,F,z,V,X,H,Xe,oe,$,ie,Z,Qe,De,He,Fe,ze,B],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}.token-display[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-2)}.token-display[_ngcontent-%COMP%]   input.p-inputtext[_ngcontent-%COMP%]{font-family:var(--font-mono);font-size:var(--text-sm)}.copy-btn-wrap[_ngcontent-%COMP%]{flex-shrink:0}.sandbox-token-note[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-2);font-size:var(--text-sm);color:var(--muted-text-color)}.sandbox-token-note[_ngcontent-%COMP%]   app-info-icon[_ngcontent-%COMP%]{color:var(--additional);flex-shrink:0}.sandbox-token-note__link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:var(--spacing-1);color:var(--basic-primary);font-weight:var(--font-medium);white-space:nowrap;margin-left:auto}.sandbox-token-note__link[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{text-decoration:underline}.sandbox-token-note__link[_ngcontent-%COMP%]   app-external-link-icon[_ngcontent-%COMP%]{--app-icon-size: var(--text-xs);text-decoration:none}"]})}return t})();var bt=(t,l)=>({"red-muted":t,"p-muted-green":l}),at=(t,l)=>l.field;function Et(t,l){t&1&&m(0,"app-plus-icon")}function It(t,l){if(t&1&&(r(0,"th",13)(1,"div",14)(2,"span"),C(3),a()()()),t&2){let e=l.$implicit;pe("text-align",e.align||"left"),T("ngStyle",e.headStyle),o(),pe("justify-content",e.align==="right"?"flex-end":e.align==="center"?"center":"flex-start"),o(2),v(e.header)}}function Mt(t,l){if(t&1&&(r(0,"tr"),A(1,It,4,6,"th",12,at),a()),t&2){let e=s();o(),O(e.columns)}}function yt(t,l){if(t&1&&(r(0,"span",16),C(1),a()),t&2){let e=s(2).$implicit;o(),v(e.name)}}function Dt(t,l){if(t&1&&(r(0,"code",17),C(1),a()),t&2){let e=s(2).$implicit;o(),v(e.api_token_masked)}}function wt(t,l){if(t&1&&m(0,"p-tag",20),t&2){s();let e=N(0);T("ngClass",ke(2,bt,e==="revoked",e==="active"))("value",e)}}function At(t,l){t&1&&m(0,"p-tag",21)}function Ot(t,l){if(t&1&&(P(0),f(1,wt,1,5,"p-tag",20),f(2,At,1,0,"p-tag",21)),t&2){let e=s(2).$implicit;R(e.is_revoked?"revoked":"active"),o(),k(e.isExpired?-1:1),o(),k(e.isExpired?2:-1)}}function Pt(t,l){t&1&&(r(0,"span",22),C(1,"\u221E"),a())}function Rt(t,l){if(t&1&&(r(0,"span"),C(1),d(2,"date"),a()),t&2){let e=s(3).$implicit;o(),v(U(2,1,e.expires_at,"MMM d, y"))}}function Nt(t,l){if(t&1&&f(0,Pt,2,0,"span",22)(1,Rt,3,4,"span"),t&2){let e=s(2).$implicit;k(e.expires_at==="never"||!e.expires_at?0:1)}}function Lt(t,l){if(t&1){let e=x();r(0,"button",23),S("click",function(){c(e);let i=s(2).$implicit,p=s();return _(p.openIpWhitelistModal(i))}),m(1,"app-shield-plus-icon",24),r(2,"span",25),C(3),d(4,"translate"),a(),m(5,"app-chevron-right-icon",26),a()}if(t&2){let e=s(2).$implicit;o(3),fe("",e.ips.length," ",u(4,2,"API_DASHBOARD.SETTINGS.TOKENS.IPS_SUFFIX"))}}function Bt(t,l){if(t&1){let e=x();r(0,"button",29),d(1,"translate"),S("click",function(){c(e);let i=s(3).$implicit,p=s();return _(p.revokeToken(i))}),m(2,"app-trash-icon"),a()}t&2&&T("pTooltip",u(1,1,"API_DASHBOARD.SETTINGS.TOKENS.REVOKE_TOKEN_TOOLTIP"))}function Ft(t,l){if(t&1){let e=x();r(0,"button",30),d(1,"translate"),S("click",function(){c(e);let i=s(3).$implicit,p=s();return _(p.openIpWhitelistModal(i))}),m(2,"app-shield-plus-icon"),a()}t&2&&T("pTooltip",u(1,1,"API_DASHBOARD.SETTINGS.TOKENS.MANAGE_IPS_TOOLTIP"))}function Vt(t,l){if(t&1&&(r(0,"div",19),f(1,Bt,3,3,"button",27),f(2,Ft,3,3,"button",28),a()),t&2){let e=s(2).$implicit;o(),k(!e.is_revoked&&!e.isExpired?1:-1),o(),k(!e.is_revoked&&!e.isExpired?2:-1)}}function Ht(t,l){if(t&1&&(r(0,"td",13),f(1,yt,2,1,"span",16)(2,Dt,2,1,"code",17)(3,Ot,3,3)(4,Nt,2,1)(5,Lt,6,4,"button",18)(6,Vt,3,2,"div",19),a()),t&2){let e,n=l.$implicit;T("ngStyle",n.cellStyle),o(),k((e=n.field)==="name"?1:e==="api_token_masked"?2:e==="status"?3:e==="expires_at"?4:e==="ips"?5:e==="actions"?6:-1)}}function Gt(t,l){if(t&1&&(r(0,"tr",15),A(1,Ht,7,2,"td",13,at),a()),t&2){let e=s();o(),O(e.columns)}}function Kt(t,l){if(t&1&&(r(0,"tr")(1,"td",31)(2,"div",32),m(3,"app-key-icon",33),r(4,"
1span",34),C(5),d(6,"translate"),a(),r(7,"p",35),C(8),d(9,"translate"),a()()()()),t&2){let e=s();o(),ge("colspan",e.columns.length),o(4),v(u(6,3,"API_DASHBOARD.SETTINGS.TOKENS.NO_TOKENS_TITLE")),o(3),v(u(9,5,"API_DASHBOARD.SETTINGS.TOKENS.NO_TOKENS_DESC"))}}function Ut(t,l){if(t&1){let e=x();r(0,"app-token-display-modal",36),S("closeModal",function(){c(e);let i=s();return _(i.onTokenDisplayModalClose())}),a()}if(t&2){let e=s();T("visible",e.showTokenModal())("tokenData",e.tokenDisplayData())}}function Wt(t,l){if(t&1){let e=x();r(0,"app-ip-whitelist-modal",38),K("visibleChange",function(i){c(e);let p=s(2);return w(p.showIpWhitelistModal,i)||(p.showIpWhitelistModal=i),_(i)}),S("addIp",function(i){c(e);let p=s(2);return _(p.onModalAddIp(i))})("addCurrentIp",function(){c(e);let i=s(2);return _(i.onModalAddCurrentIp())})("deleteIp",function(i){c(e);let p=s(2);return _(p.onModalDeleteIp(i))}),a()}if(t&2){s();let e=N(0),n=s(),i=N(0);G("visible",n.showIpWhitelistModal),T("ips",e.ips)("currentUserIp",n.apiManagerStore.currentUserIp())("maxIps",n.maxIpsPerToken)("isLoading",i)("isReadOnly",n.isSelectedTokenReadOnly())("tokenName",e.name)}}function jt(t,l){if(t&1&&(P(0),f(1,Wt,1,7,"app-ip-whitelist-modal",37)),t&2){let e=R(s().selectedTokenForIpModal());o(),k(e?1:-1)}}var zt=50,rt=(()=>{class t{apiManagerStore=b(Q);confirmationService=b(ee);messageService=b(te);translateService=b(W);showAddTokenDialog=E(!1);showTokenModal=E(!1);tokenDisplayData=E(null);tokenCreationEffect=J(()=>{let e=this.apiManagerStore.createToken();if(e.lastCreatedToken&&!e.isLoading&&!e.error){let n=this.addTokenFormData();this.showTokenDisplayModal({token:e.lastCreatedToken.token,name:n.name||this.translateService.instant("API_DASHBOARD.SETTINGS.TOKENS.NEW_TOKEN"),isRegeneration:!1})}});showEditTokenDialog=E(!1);selectedToken=E(null);editTokenFormData=E({name:"",expirationDate:void 0});addTokenFormData=E({name:"",expirationDate:void 0});allTokens=this.apiManagerStore.tokenList.list;maxIpsPerToken=zt;selectedTokenIdForIpModal=E(null);showIpWhitelistModal=E(!1);selectedTokenForIpModal=ce(()=>{let e=this.selectedTokenIdForIpModal();return e===null?null:this.allTokens().find(n=>n.token_id===e)??null});isSelectedTokenReadOnly=ce(()=>{let e=this.selectedTokenForIpModal();return e?e.is_revoked||e.isExpired:!1});columns=[{field:"name",header:"Name",sortable:!1,align:"left",cellStyle:{"text-align":"left"},type:"text"},{field:"api_token_masked",header:"Token",sortable:!1,align:"left",cellStyle:{"text-align":"left"},type:"code"},{field:"status",header:"Status",sortable:!1,align:"center",cellStyle:{"text-align":"center"},type:"status"},{field:"expires_at",header:"Expires",sortable:!1,align:"right",cellStyle:{"text-align":"right"},type:"date"},{field:"ips",header:"IP Whitelist",sortable:!1,align:"center",cellStyle:{"text-align":"center"},type:"custom"},{field:"actions",header:"Actions",sortable:!1,align:"center",cellStyle:{"text-align":"center"},type:"actions"}];openIpWhitelistModal(e){this.selectedTokenIdForIpModal.set(e.token_id),this.showIpWhitelistModal.set(!0)}onModalAddIp(e){let n=this.selectedTokenForIpModal();n&&(this.apiManagerStore.addTokenIps({ips:[e],tokenId:n.token_id.toString()}),this.messageService.add({severity:"success",summary:this.translateService.instant("CORE.TOAST.SUCCESS"),detail:this.translateService.instant("API_DASHBOARD.SETTINGS.TOKENS.IP_ADDED")}))}onModalAddCurrentIp(){let e=this.selectedTokenForIpModal(),n=this.apiManagerStore.currentUserIp();!e||!n||(this.apiManagerStore.addTokenIps({ips:[n],tokenId:e.token_id.toString()}),this.messageService.add({severity:"success",summary:this.translateService.instant("CORE.TOAST.SUCCESS"),detail:this.translateService.instant("API_DASHBOARD.SETTINGS.TOKENS.CURRENT_IP_ADDED")}))}onModalDeleteIp(e){let n=this.selectedTokenForIpModal();n&&this.confirmationService.confirm({message:this.translateService.instant("API_DASHBOARD.SETTINGS.TOKENS.REMOVE_IP_CONFIRM",{ip:e.ip_address}),header:this.translateService.instant("API_DASHBOARD.SETTINGS.TOKENS.REMOVE_IP_HEADER"),acceptButtonProps:{severity:"danger"},rejectButtonProps:{severity:"secondary"},accept:()=>
1{this.apiManagerStore.deleteTokenIps({ipIds:[e.id.toString()],tokenId:n.token_id.toString()}),this.messageService.add({severity:"success",summary:this.translateService.instant("CORE.TOAST.SUCCESS"),detail:this.translateService.instant("API_DASHBOARD.SETTINGS.TOKENS.IP_REMOVED")})}})}showTokenDisplayModal(e){this.tokenDisplayData.set(e),this.showTokenModal.set(!0)}onTokenDisplayModalClose(){this.showTokenModal.set(!1),this.tokenDisplayData.set(null),this.apiManagerStore.clearLastCreatedToken()}openEditTokenDialog(e){this.selectedToken.set(e),this.editTokenFormData.set({name:e.name,expirationDate:e.expires_at&&e.expires_at!=="never"?new Date(e.expires_at):void 0}),this.showEditTokenDialog.set(!0)}onEditTokenUpdate(e){let n=this.selectedToken();if(!n||!e.name.trim()){this.messageService.add({severity:"error",summary:"Error",detail:this.translateService.instant("API_DASHBOARD.SETTINGS.TOKEN_MODAL.TOKEN_NAME_REQUIRED")});return}this.apiManagerStore.updateToken(n.token_id,{name:e.name.trim(),expires_at:e.expirationDate?e.expirationDate.toISOString():""}),this.messageService.add({severity:"success",summary:this.translateService.instant("CORE.TOAST.SUCCESS"),detail:this.translateService.instant("API_DASHBOARD.SETTINGS.TOKENS.TOKEN_UPDATED")}),this.selectedToken.set(null)}onEditTokenCancel(){this.selectedToken.set(null),this.editTokenFormData.set({name:"",expirationDate:void 0})}revokeToken(e){this.confirmationService.confirm({message:this.translateService.instant("API_DASHBOARD.SETTINGS.TOKENS.REVOKE_TOKEN_CONFIRM",{name:e.name}),header:this.translateService.instant("API_DASHBOARD.SETTINGS.TOKENS.REVOKE_TOKEN_HEADER"),acceptButtonProps:{severity:"success"},rejectButtonProps:{severity:"secondary"},accept:()=>{this.apiManagerStore.revokeTokenAPI({token_id:e.token_id}),this.messageService.add({severity:"success",summary:this.translateService.instant("CORE.TOAST.SUCCESS"),detail:this.translateService.instant("API_DASHBOARD.SETTINGS.TOKENS.TOKEN_REVOKED")})}})}openAddTokenDialog(){this.addTokenFormData.set({name:"",expirationDate:void 0}),this.showAddTokenDialog.set(!0)}onAddTokenCreate(e){if(!e.name.trim()){this.messageService.add({severity:"error",summary:"Error",detail:this.translateService.instant("API_DASHBOARD.SETTINGS.TOKEN_MODAL.TOKEN_NAME_REQUIRED")});return}this.apiManagerStore.createTokenAPI({name:e.name.trim(),expires_at:e.expirationDate?e.expirationDate.toISOString().split("T")[0]:null})}onAddTokenCancel(){this.addTokenFormData.set({name:"",expirationDate:void 0})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=y({type:t,selectors:[["app-custom-tokens-table"]],decls:18,vars:24,consts:[["icon",""],[1,"custom-tokens-card","body-h-full","h-full"],[3,"title","subtitle","isActionEnabled"],["severity","success",3,"click","label"],[1,"table-wrapper","overflow-auto","flex-1"],["appTableEmptyHeight","",1,"custom-tokens-table","h-full","h-content-full",3,"value","paginator","showCurrentPageReport","scrollable","loading"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[3,"visibleChange","tokenFormDataChange","updateToken","cancelled","visible","tokenFormData"],[3,"visibleChange","tokenFormDataChange","createToken","cancelled","visible","tokenFormData"],[3,"visible","tokenData"],[3,"ngStyle","text-align"],[3,"ngStyle"],[1,"header-content"],[1,"table-row"],[1,"font-medium"],[1,"token-code"],[1,"ip-whitelist-btn"],[1,"action-buttons"],[1,"square",3,"ngClass","value"],["severity","warn","value","EXPIRED"],[1,"text-muted"],[1,"ip-whitelist-btn",3,"click"],[1,"ip-whitelist-btn__icon"],[1,"ip-whitelist-btn__count"],[1,"ip-whitelist-btn__arrow"],["tooltipPosition","top",1,"action-btn","action-btn--delete",3,"pTooltip"],["tooltipPosition","top",1,"action-btn","action-btn--shield",3,"pTooltip"],["tooltipPosition","top",1,"action-btn","action-btn--delete",3,"click","pTooltip"],["tooltipPosition","top",1,"action-btn","action-btn--shield",3,"click","pTooltip"],[1,"text-center","py-8"],["appTableStickyEmpty","",1,"table-empty-message"],[1,"text-4xl","text-gray-400"],[1,"text-gray-500"],[1,"text-sm","text-muted"],[3,"closeModal","visible","tokenData"],[3,"visible","ips","currentUserIp","maxIps","isLoading","isReadOnly","tokenName"],[3,"visibleChange","addIp","addCurrentIp","deleteIp","visible","ips","currentUserIp","maxIps","isLoading","isReadOnly","tokenName"]],template:function(n,i){if
1(n&1){let p=x();P(0),r(1,"p-card",1)(2,"app-card-header",2),d(3,"translate"),d(4,"translate"),r(5,"p-button",3),d(6,"translate"),S("click",function(){return c(p),_(i.openAddTokenDialog())}),I(7,Et,1,0,"ng-template",null,0,D),a()(),r(9,"div",4)(10,"p-table",5),I(11,Mt,3,0,"ng-template",6)(12,Gt,3,0,"ng-template",7)(13,Kt,10,7,"ng-template",8),a()()(),r(14,"app-edit-token-modal",9),K("visibleChange",function(g){return c(p),w(i.showEditTokenDialog,g)||(i.showEditTokenDialog=g),_(g)})("tokenFormDataChange",function(g){return c(p),w(i.editTokenFormData,g)||(i.editTokenFormData=g),_(g)}),S("updateToken",function(g){return c(p),_(i.onEditTokenUpdate(g))})("cancelled",function(){return c(p),_(i.onEditTokenCancel())}),a(),r(15,"app-add-token-modal",10),K("visibleChange",function(g){return c(p),w(i.showAddTokenDialog,g)||(i.showAddTokenDialog=g),_(g)})("tokenFormDataChange",function(g){return c(p),w(i.addTokenFormData,g)||(i.addTokenFormData=g),_(g)}),S("createToken",function(g){return c(p),_(i.onAddTokenCreate(g))})("cancelled",function(){return c(p),_(i.onAddTokenCancel())}),a(),f(16,Ut,1,2,"app-token-display-modal",11),f(17,jt,2,2)}if(n&2){let p=R(i.apiManagerStore.tokenList.isLoading());o(2),T("title",u(3,18,"API_DASHBOARD.SETTINGS.TOKENS.TITLE"))("subtitle",u(4,20,"API_DASHBOARD.SETTINGS.TOKENS.SUBTITLE"))("isActionEnabled",!0),o(3),T("label",u(6,22,"API_DASHBOARD.SETTINGS.TOKENS.ADD_TOKEN")),o(5),Y("empty",!i.allTokens().length&&!p),T("value",i.allTokens())("paginator",!1)("showCurrentPageReport",!1)("scrollable",!0)("loading",p),o(4),G("visible",i.showEditTokenDialog)("tokenFormData",i.editTokenFormData),o(),G("visible",i.showAddTokenDialog)("tokenFormData",i.addTokenFormData),o(),k(i.showTokenModal()?16:-1),o(),k(i.showIpWhitelistModal()?17:-1)}},dependencies:[L,he,Se,j,F,be,Pe,Oe,X,H,oe,$,z,V,ne,Ye,qe,re,le,Re,Je,Ue,Ne,Ve,je,ae,ve,B],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;flex:1}[_nghost-%COMP%]   p-table[_ngcontent-%COMP%]{min-height:20rem;display:block}.custom-tokens-card[_ngcontent-%COMP%]{background:var(--bg-secondary);border-radius:var(--radius);box-shadow:var(--card-shadow)}.table-wrapper[_ngcontent-%COMP%]{margin-top:var(--spacing-4)}.header-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-2)}.token-code[_ngcontent-%COMP%]{font-family:var(--font-mono);font-size:var(--text-sm);padding:var(--spacing-1) var(--spacing-2);background-color:var(--bg-alt);border-radius:var(--border-radius-sm);color:var(--text-secondary)}.table-row[_ngcontent-%COMP%]{cursor:default}.action-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:1.25rem 1.25rem;gap:var(--spacing-6);align-items:center;justify-items:center;justify-content:center;width:100%}.action-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;padding:0;background:transparent;border:none;border-radius:var(--border-radius-sm);cursor:pointer;color:var(--light-text-color);transition:background-color var(--transition-fast),color var(--transition-fast)}.action-btn[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:1rem;height:1rem}.action-btn[_ngcontent-%COMP%]:hover{background-color:var(--bg-hover);color:var(--text-secondary)}.action-btn--delete[_ngcontent-%COMP%]:hover{color:var(--additional-danger)}.action-btn--shield[_ngcontent-%COMP%]{grid-column:2}.ip-whitelist-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:var(--spacing-2);height:2.25rem;padding:var(--spacing-2);background-color:var(--bg-alt);border:1px solid var(--border-light);border-radius:var(--border-radius-md);cursor:pointer;transition:background-color var(--transition-fast)}.ip-whitelist-btn[_ngcontent-%COMP%]:hover{background-color:var(--bg-hover)}.ip-whitelist-btn__icon[_ngcontent-%COMP%]{color:var(--basic-primary);width:1rem;height:1rem;flex-shrink:0}.ip-whitelist-btn__count[_ngcontent-%COMP%]{color:var(--basic-primary);font-size:var(--text-xs);white-space:nowrap}.ip-whitelist-btn__arrow[_ngcontent-%COMP%]{color:var(--muted-text-color);font-size:var(--text-xs)}"]})}return t})();var lt=()=>({width:"100%",minWidth:"0"}),st=t=>({value:t}),Xt=t=>({count:t}),pt=(t,l)=>l.id,$t=(t,l)=>l.key;function Zt(t,l){t&1&&(r(0,"div",3)(1,"p"),C(2),a()()),t&2&&(o(2),v(l))}function Qt(t,l){t&1&&(r(0,"div",3)(1,"p"),C(2),a()()),t&2&&(o(2),v(l))}function Yt(t,l){t&1&&m(0,"span",7)}function qt(t,l){t&1&&m(0,"p-skeleton",8)}function Jt(t,l){t&1&&m(0,"app-times-icon")}function ei(t,l){if(t&1&&(r(0,"p",15),C(1),d(2,"currency"),d(3,"translate"),a()),t&2){let e=s();o(),M(" ",U(3,6,"API_DASHBOARD.SETTINGS.CREDIT_LIMITS.WAS_VALUE",q(9,st,me(2,1,e.creditsDay,"USD","symbol","1.2-2")))," ")}}function ti(t,l){if(t&1){let e=x();r(0,"div",12)(1,"p-inputNumber",13),S("ngModelChange",function(i){let p=c(e),h=s();return _(h.onDraftChange(p.key,i))}),a(),r(2,"p-button",14),d(3,"translate"),d(4,"translate"),S("onClick",function(){let i=c(e),p=s();return _(p.resetToZero(i.key))}),I(5,Jt,1,0,"ng-template",null,0,D),a()(),f(7,ei,4,11,"p",15)}if(t&2){let e=l,n=s();o(),T("min",0)("showButtons",!0)("inputStyle",de(14,lt))("ngModel",n.getDraft(e)),o(),T("text",!0)("rounded",!0)("ariaLabel",u(3,10,"API_DASHBOARD.SETTINGS.CREDIT_LIMITS.RESET_TO_ZERO"))("pTooltip",u(4,12,"API_DASHBOARD.SETTINGS.CREDIT_LIMITS.RESET_TO_ZERO"))("disabled",n.getDraft(e)===0),o(5),k(n.isDirty(e)?7:-1)}}function ii(t,l){t&1&&(r(0,"div",20),m(1,"p-skeleton",21)(2,"p-skeleton",22),a())}function ni(t,l){if(t&1&&(r(0,"section",16)(1,"div",17),m(2,"p-skeleton",18),a(),r(3,"div",19),A(4,ii,3,0,"div",20,Te),a()()),t&2){let e=l.$implicit;o(4),O(e.keys)}}function oi(t,l){if(t&1&&A(0,ni,6,0,"section",16,pt),t&2){let e=s();O(e.skeletonGroups)}}function ai(t,l){t&1&&(r(0,"div",10),m(1,"app-inbox-icon",23),r(2,"span",24),C(3),d(4,"translate"),a()()),t&2&&(o(3),v(u(4,1,"API_DASHBOARD.SETTINGS.CREDIT_LIMITS.NO_ENDPOINTS")))}function ri(t,l){if(t&1&&(r(0,"span",27),C(1),a()),t&2){let e=s();o(),v(e)}}function li(t,l){t&1&&f(0,ri,2,1,"span",27),t&2&&k(l>0?0:-1)}function si(t,l){if(t&1&&(m(0,"span",7),r(1,"p",15),C(2),d(3,"currency"),d(4,"translate"),a()),t&2){let e=s().$implicit;o(2),M(" ",U(4,6,"API_DASHBOARD.SETTINGS.CREDIT_LIMITS.WAS_VALUE",q(9,st,me(3,1,e.creditsDay,"USD","symbol","1.2-2")))," ")}}function pi(t,l){t&1&&m(0,"app-times-icon")}function di(t,l){if(t&1){let e=x();r(0,"div",20)(1,"div",28)(2,"span",29),C(3),a(),f(4,si,5,11),a(),r(5,"div",12)(6,"p-inputNumber",30),S("ngModelChange",function(i){let p=c(e).$implicit,h=s(3);return _(h.onDraftChange(p.key,i))}),a(),r(7,"p-button",31),d(8,"translate"),d(9,"translate"),S("onClick",function(){let i=c(e).$implicit,p=s(3);return _(p.resetToZero(i.key))}),I(10,pi,1,0,"ng-template",null,0,D),a()()()}if(t&2){let e=l.$implicit,n=s(3);Y("credit-limits__item--dirty",n.isDirty(e)),o(3),v(e.path),o(),k(n.isDirty(e)?4:-1),o(2),T("min",0)("showButtons",!0)("inputStyle",de(17,lt))("ngModel",n.getDraft(e)),o(),T("text",!0)("rounded",!0)("ariaLabel",u(8,13,"API_DASHBOARD.SETTINGS.CREDIT_LIMITS.RESET_TO_ZERO"))("pTooltip",u(9,15,"API_DASHBOARD.SETTINGS.CREDIT_LIMITS.RESET_TO_ZERO"))("disabled",n.getDraft(e)===0)}}function mi(t,l){if(t&1&&(r(0,"section",16)(1,"div",17)(2,"h4",25),C(3),a(),f(4,li,1,1),a(),r(5,"div",19),A(6,di,12,18,"div",26,$t),a()()),t&2){let e,n=l.$implicit,i=s(2);o(3),v(i.groupTitle(n.id)),o(),k((e=i.dirtyCountForGroup(n.id))?4:-1,e),o(2),O(n.rows)}}function ci(t,l){if(t&1&&A(0,mi,8,2,"section",16,pt),t&2){let e=s();O(e.store.groups())}}function _i(t,l){if(t&1){let e=x();r(0,"div",11),Ce("slide-down-fade-in"),r(1,"div",32)(2,"div",33),m(3,"app-exclamation-circle-icon",34),r(4,"p"),C(5),d(6,"translate"),a()(),r(7,"div",35)(8,"p-button",36),d(9,"translate"),S("onClick",function(){c(e);let i=s();return _(i.store.discardAll())}),a(),r(10,"p-button",37),d(11,"translate"),S("onClick",function(){c(e);let i=s();return _(i.store.saveAll())}),a()()()()}if(t&2){let e=s();o(5),M(" ",U(6,5,"API_DASHBOARD.SETTINGS.CREDIT_LIMITS.UNSAVED_CHANGES",q(12,Xt,e.store.dirtyCount()))," "),o(3),T("label",u(9,8,"API_DASHBOARD.SETTINGS.CREDIT_LIMITS.DISCARD"))("disabled",e.store.isSaving()),o(2),T("label",u(11,10,"API_DASHBOARD.SETTINGS.CREDIT_LIMITS.SAVE_CHANGES"))("loading",e.store.isSaving())}}var dt=(()=>{class t{store=b($e);translate=b(W);skeletonKeys=Array.from({length:6},(e,n)=>`skeleton-${n}`);skeletonGroups=[{id:"skeleton-a",keys:this.skeletonKeys.slice(0,4)},{id:"skeleton-b",keys:this.skeletonKeys.slice(4)}];onBeforeUnload(e){this.store.hasChanges()&&e.preventDefault()}onDraftChange(e,n){this.store.setDraft(e,n??0)}resetToZero(e){this.store.resetDraft(e)}
1isDirty(e){return this.store.isDirty(e.key)}getDraft(e){return this.store.getDraft(e.key)}groupTitle(e){let n=`API_DASHBOARD.SETTINGS.CREDIT_LIMITS.GROUPS.${e.toUpperCase()}`,i=this.translate.instant(n);return i===n?e:i}dirtyCountForGroup(e){return this.store.dirtyCountByGroup()[e]??0}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=y({type:t,selectors:[["app-api-credit-limits"]],hostBindings:function(n,i){n&1&&S("beforeunload",function(h){return i.onBeforeUnload(h)},ue)},decls:22,vars:21,consts:[["icon",""],[1,"card-with-sub-cards"],[3,"title","subtitle","isActionEnabled"],[1,"info-block","red-muted"],[1,"credit-limits__global"],[1,"input-field"],["for","global-credit-limit",1,"credit-limits__label"],["aria-hidden","true",1,"credit-limits__dirty-dot"],["height","2.25rem",1,"credit-limits__input-skeleton"],[1,"credit-limits__hint","text-muted","text-sm"],[1,"credit-limits__empty"],[1,"credit-limits__actions"],[1,"credit-limits__controls"],["inputId","global-credit-limit","mode","currency","currency","USD","locale","en-US",1,"credit-limits__input",3,"ngModelChange","min","showButtons","inputStyle","ngModel"],["severity","secondary","tooltipPosition","top",1,"credit-limits__reset",3,"onClick","text","rounded","ariaLabel","pTooltip","disabled"],[1,"credit-limits__was","text-muted","text-xs"],[1,"credit-limits__group"],[1,"credit-limits__group-header"],["width","6rem","height","0.875rem"],[1,"credit-limits__grid"],[1,"credit-limits__item"],["width","40%"],["height","2rem",1,"credit-limits__input-skeleton"],[1,"text-4xl","text-muted"],[1,"text-muted"],[1,"section-title"],[1,"credit-limits__item",3,"credit-limits__item--dirty"],[1,"simple-table-badge"],[1,"credit-limits__endpoint-wrap"],["ellipsisTooltip","","pTooltip","","tooltipEvent","focus","tooltipPosition","top",1,"credit-limits__endpoint","text-ellipsis"],["mode","currency","currency","USD","locale","en-US",1,"credit-limits__input","input-number-sm",3,"ngModelChange","min","showButtons","inputStyle","ngModel"],["size","small","severity","secondary","tooltipPosition","top",1,"credit-limits__reset",3,"onClick","text","rounded","ariaLabel","pTooltip","disabled"],[1,"credit-limits__actions-inner","info-block","orange-muted"],[1,"credit-limits__actions-message"],[1,"icon"],[1,"credit-limits__actions-buttons"],["severity","secondary",3,"onClick","label","disabled"],["severity","success",3,"onClick","label","loading"]],template:function(n,i){if(n&1&&(r(0,"p-card")(1,"div",1),m(2,"app-card-header",2),d(3,"translate"),d(4,"translate"),f(5,Zt,3,1,"div",3),f(6,Qt,3,1,"div",3),r(7,"div",4)(8,"div",5)(9,"label",6),C(10),d(11,"translate"),f(12,Yt,1,0,"span",7),a(),f(13,qt,1,0,"p-skeleton",8)(14,ti,8,15),a(),r(15,"p",9),C(16),d(17,"translate"),a()(),f(18,oi,2,0)(19,ai,5,3,"div",10)(20,ci,2,0),f(21,_i,12,14,"div",11),a()()),n&2){let p,h,g;o(2),T("title",u(3,13,"API_DASHBOARD.SETTINGS.CREDIT_LIMITS.TITLE"))("subtitle",u(4,15,"API_DASHBOARD.SETTINGS.CREDIT_LIMITS.SUBTITLE"))("isActionEnabled",!1),o(3),k((p=i.store.error())?5:-1,p),o(),k((h=i.store.saveError())?6:-1,h),o(),Y("credit-limits__global--dirty",i.store.isGlobalDirty()),o(3),M(" ",u(11,17,"API_DASHBOARD.SETTINGS.CREDIT_LIMITS.GLOBAL_LIMIT")," "),o(2),k(i.store.isGlobalDirty()?12:-1),o(),k(i.store.isLoading()?13:(g=i.store.globalRow())?14:-1,g),o(3),M(" ",u(17,19,"API_DASHBOARD.SETTINGS.CREDIT_LIMITS.ZERO_HINT")," "),o(2),k(i.store.isLoading()?18:i.store.groups().length===0?19:20),o(3),k(i.store.hasChanges()?21:-1)}},dependencies:[Me,Ee,Ie,V,F,Ae,Z,H,ne,we,ye,Le,Ge,xe,B],styles:["[_nghost-%COMP%]{display:block}.credit-limits__global[_ngcontent-%COMP%]{padding:var(--spacing-4);background:var(--bg-alt);border-radius:var(--border-radius-lg);border-left:2px solid transparent}.credit-limits__global--dirty[_ngcontent-%COMP%]{border-left-color:var(--additional-warning)}.credit-limits__label[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:var(--spacing-2)}.credit-limits__hint[_ngcontent-%COMP%]{margin:var(--spacing-2) 0 0}.credit-limits__group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--spacing-2)}.credit-limits__group-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-2);min-height:1.25rem;padding-bottom:var(--spacing-1);border-bottom:1px solid var(--border-light)}.credit-limits__group-header[_ngcontent-%COMP%]   .section-title[_ngcontent-%COMP%]{margin:0;line-height:1.25rem}.credit-limits__group-header[_ngcontent-%COMP%]   .simple-table-badge[_ngcontent-%COMP%]{line-height:1}.credit-limits__grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--spacing-1) var(--spacing-5)}@media(max-width:768px){.credit-limits__grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.credit-limits__item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-2);min-width:0;padding:var(--spacing-1) var(--spacing-1) var(--spacing-1) var(--spacing-2);border-left:2px solid transparent;border-radius:var(--border-radius-md)}.credit-limits__item[_ngcontent-%COMP%]:hover:not(.credit-limits__item--dirty){background:var(--bg-hover)}.credit-limits__item--dirty[_ngcontent-%COMP%]{border-left-color:var(--additional-warning);background:color-mix(in srgb,var(--additional-warning) 4%,var(--bg-secondary))}@media(max-width:575px){.credit-limits__item[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}}.credit-limits__endpoint-wrap[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-2);min-width:0;flex:1 1 auto}.credit-limits__endpoint[_ngcontent-%COMP%]{display:block;min-width:0;font-size:var(--text-sm);font-weight:var(--font-medium);color:var(--main-text-color)}.credit-limits__dirty-dot[_ngcontent-%COMP%]{width:.5rem;height:.5rem;flex-shrink:0;border-radius:var(--border-radius-full);background-color:var(--additional-warning)}.credit-limits__controls[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-1);min-width:0}@media(max-width:575px){.credit-limits__controls[_ngcontent-%COMP%]{width:100%}}.credit-limits__input[_ngcontent-%COMP%]{display:block;width:100%;max-width:9.5rem;min-width:6.5rem}@media(max-width:575px){.credit-limits__input[_ngcontent-%COMP%]{max-width:none;min-width:0;flex:1 1 auto}}.credit-limits__input-skeleton[_ngcontent-%COMP%]{display:block;width:100%;max-width:9.5rem;min-width:6.5rem}@media(max-width:575px){.credit-limits__input-skeleton[_ngcontent-%COMP%]{max-width:none;min-width:0}}.credit-limits__reset[_ngcontent-%COMP%]{flex-shrink:0}.credit-limits__was[_ngcontent-%COMP%]{margin:0;flex-shrink:0;white-space:nowrap}.credit-limits__empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--spacing-3);padding:var(--spacing-8) var(--spacing-4)}.credit-limits__actions[_ngcontent-%COMP%]{position:sticky;bottom:calc(var(--spacing-4) * -1);z-index:var(--z-sticky);margin-top:var(--spacing-2)}@media(max-width:800px){.credit-limits__actions[_ngcontent-%COMP%]{bottom:0}}.credit-limits__actions-inner[_ngcontent-%COMP%]{justify-content:space-between;gap:var(--spacing-3);background:var(--orange-light);box-shadow:0 -.25rem 1rem #00000014,0 1px .25rem #0000000a}.credit-limits__actions-message[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-2);min-width:0}.credit-limits__actions-message[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}.credit-limits__actions-buttons[_ngcontent-%COMP%]{display:flex;flex-shrink:0;align-items:center;gap:var(--spacing-2)}.dark[_ngcontent-%COMP%]   .credit-limits__actions-inner[_ngcontent-%COMP%]{box-shadow:0 -.25rem 1.25rem #00000073,0 1px .375rem #0000004d}@media(max-width:575px){.credit-limits__actions-inner[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.credit-limits__actions-buttons[_ngcontent-%COMP%]{width:100%}.credit-limits__actions-buttons[_ngcontent-%COMP%]   p-button[_ngcontent-%COMP%]{flex:1 1 0}}"]})}return t})();var ui=["class","component"],Yn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=y({type:t,selectors:[["app-api-settings",8,"component"]],attrs:ui,decls:6,vars:0,consts:[[1,"card-with-sub-cards","flex-1"],[1,"api-settings__tokens-row"]],template:function(n,i){n&1&&(r(0,"div",0)(1,"div",1),m(2,"app-default-token")(3,"app-sandbox-token"),a(),m(4,"app-custom-tokens-table")(5,"app-api-credit-limits"),a())},dependencies:[L,nt,ot,rt,dt],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;flex:1}[_nghost-%COMP%]   app-custom-tokens-table[_ngcontent-%COMP%]{max-height:calc(100vh - var(--header-height) - 14rem);min-height:31.25rem}.api-settings__tokens-row[_ngcontent-%COMP%]{display:flex;gap:var(--spacing-4)}.api-settings__tokens-row[_ngcontent-%COMP%]   app-default-token[_ngcontent-%COMP%], .api-settings__tokens-row[_ngcontent-%COMP%]   app-sandbox-token[_ngcontent-%COMP%]{flex:1;min-width:0}
1@media(max-width:900px){.api-settings__tokens-row[_ngcontent-%COMP%]{flex-direction:column}}"]})}return t})();export{Yn as ApiSettingsComponent};

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.