PageSourceSearch

https://hou.la/chunk-MSVHWKPO.js

js hou.la collected 2026-10-02 15:59:37 UTC 9,951 bytes, 1 lines download raw bytes

1import{a as Q}from"./chunk-EOLT3XT6.js";import{a as z,b as X}from"./chunk-22WJKAIZ.js";import{b as q}from"./chunk-SLWPYULI.js";import{a as $,b as G}from"./chunk-P37GQ53N.js";import{b as W,e as Y}from"./chunk-OFHUO5H7.js";import"./chunk-M3XSAKW4.js";import"./chunk-H76LZNGX.js";import"./chunk-PGR2NPNS.js";import"./chunk-OZD37XM5.js";import"./chunk-DLIVM562.js";import"./chunk-CV2ZWZQE.js";import"./chunk-AVEXXPAT.js";import"./chunk-FHU4TM37.js";import{a as J}from"./chunk-UUEFXD6N.js";import{a as j}from"./chunk-JICM7NVH.js";import{a as H}from"./chunk-BD6EMWWF.js";import{a as T}from"./chunk-AB6CKZTE.js";import{d as U,e as K}from"./chunk-DIGPPQJE.js";import{s as B,x as L}from"./chunk-EU6HCBUP.js";import{h as R}from"./chunk-KAJMKXZ6.js";import{D as F,j as M,l as k,m as V}from"./chunk-ZAQTNZYS.js";import"./chunk-SRTXE2HR.js";import{Jb as m,Lc as b,Mb as I,Mc as y,Rb as w,Uc as l,Vc as s,Wb as e,Xb as a,Yb as c,ac as x,db as r,gc as P,hc as C,ib as g,la as f,ma as S,sb as A,uc as o,vc as u,wc as d,xc as h,yb as E,yc as D}from"./chunk-NTTV6FWH.js";import{g as O}from"./chunk-W7GRJBO5.js";var ee=i=>({"opacity-50":i}),te=(i,t)=>({"border-bottom":i,"rounded-top":t});function ie(i,t){if(i&1&&(e(0,"div",5)(1,"div",6)(2,"span",7),c(3,"i",8),o(4),l(5,"translate"),a()(),e(6,"div",9)(7,"span",10),o(8),l(9,"translate"),a()()()),i&2){let n=C();r(4),d(" ",s(5,4,"CONNECTED_APPS.TITLE")," "),r(4),D(" ",n.apps.length," ",s(9,6,"CONNECTED_APPS.APP_COUNT"),"",n.apps.length>1?"s":""," ")}}function ne(i,t){i&1&&(e(0,"div",11)(1,"div",12)(2,"div",13)(3,"div",14)(4,"div",15),c(5,"i",16),a(),e(6,"h2",17),o(7),l(8,"translate"),a(),e(9,"p",18),o(10),l(11,"translate"),a(),e(12,"div",19)(13,"div",20)(14,"div",21),c(15,"i",22),a(),e(16,"div",23)(17,"div",24),o(18),l(19,"translate"),a(),e(20,"div",25),o(21),l(22,"translate"),a()()(),e(23,"div",20)(24,"div",26),c(25,"i",27),a(),e(26,"div",23)(27,"div",24),o(28),l(29,"translate"),a(),e(30,"div",25),o(31),l(32,"translate"),a()()(),e(33,"div",20)(34,"div",28),c(35,"i",29),a(),e(36,"div",23)(37,"div",24),o(38),l(39,"translate"),a(),e(40,"div",25),o(41),l(42,"translate"),a()()(),e(43,"div",20)(44,"div",30),c(45,"i",31),a(),e(46,"div",23)(47,"div",24),o(48),l(49,"translate"),a(),e(50,"div",25),o(51),l(52,"translate"),a()()()(),e(53,"a",32),c(54,"i",33),o(55),l(56,"translate"),a()(),e(57,"div",34),c(58,"i",35),a()()()()),i&2&&(r(7),d(" ",s(8,11,"CONNECTED_APPS.ONBOARDING_TITLE")," "),r(3),d(" ",s(11,13,"CONNECTED_APPS.ONBOARDING_DESC")," "),r(8),d(" ",s(19,15,"CONNECTED_APPS.FEATURE_SECURITY")," "),r(3),d(" ",s(22,17,"CONNECTED_APPS.FEATURE_SECURITY_DESC")," "),r(7),d(" ",s(29,19,"CONNECTED_APPS.FEATURE_SCOPES")," "),r(3),d(" ",s(32,21,"CONNECTED_APPS.FEATURE_SCOPES_DESC")," "),r(7),d(" ",s(39,23,"CONNECTED_APPS.FEATURE_REVOKE")," "),r(3),d(" ",s(42,25,"CONNECTED_APPS.FEATURE_REVOKE_DESC")," "),r(7),d(" ",s(49,27,"CONNECTED_APPS.FEATURE_PLUGINS")," "),r(3),d(" ",s(52,29,"CONNECTED_APPS.FEATURE_PLUGINS_DESC")," "),r(4),d("",s(56,31,"CONNECTED_APPS.EXPLORE_OAUTH")," "))}function re(i,t){if(i&1&&(e(0,"div",55),o(1),a()),i&2){let n=C().$implicit;r(),d(" ",n.clientDescription," ")}}function ae(i,t){if(i&1&&(c(0,"p-tag",56),l(1,"translate")),i&2){let n=t.$implicit,p=C(3);m("value",s(1,3,p.getScopeLabel(n)))("severity",p.getScopeSeverity(n))("rounded",!0)}}function oe(i,t){if(i&1&&(e(0,"small",6),c(1,"i",57),e(2,"span"),o(3),l(4,"translate"),a()()),i&2){let n=C().$implicit;r(3),h("",n.tokenCount," ",s(4,2,"CONNECTED_APPS.TOKEN_COUNT"),"")}}function pe(i,t){if(i&1){let n=x();e(0,"div",38)(1,"div",39),o(2),a(),e(3,"div",40)(4,"div",7),o(5),a(),e(6,"div",41),o(7),a(),E(8,re,2,1,"div",42),e(9,"div",43),E(10,ae,2,5,"p-tag",44),a(),e(11,"div",45)(12,"div",46)(13,"small",6),c(14,"i",47),e(15,"span",48),o(16),l(17,"translate"),a()(),E(18,oe,5,4,"small",49),e(19,"small",6),c(20,"i",50),e(21,"span"),o(22),a()()()()(),e(23,"div",51)(24,"div",52)(25,"button",53),l(26,"translate"),P("click",function(){let v=f(n).$implicit,_=C(2);return S(_.revokeApp(v))}),c(27,"i",54),a()()()()}if(i&2){let n=t.$implicit,p=t.index,v=t.last,_=t.first,N=C(2);m("ngClass",y(14,te,!v,_)),r(2),d(" ",p+1," "),r(3),u(N.formatDate(n.connectedAt)),r(2),d(" ",n.clientName," "),r(),m("ngIf",n.clientDescription),r(2),m("ngForOf",n.scopes),r(6),u(s(17,10,"CONNECTED_APPS.ACTIVE")),r(2),m("ngIf",n.tokenCount),r(4),u(N.getRelativeTime(n.connectedAt)),r(3),m("pTooltip",s(26,12,"CONNECTED_APPS.REVOKE"))}}function le(i,t){if(i&1&&(e(0,"div",36),E(1,pe,28,17,"div",37),a()),i&2){let n=C();m("ngClass",b(2,ee,n.loading)),r(),m("ngForOf",n.apps)}}function se(i,t){if(i&1){let n=x();e(0,"app-widget-api-error",58),P("retry",function(){f(n);let v=C();return S(v.loadApps())}),a()}}function de(i,t){i&1&&(e(0,"div",59),c(1,"i",60),e(2,"a",61),o(3),l(4,"translate"),a()()),i&2&&(r(3),d(" ",s(4,1,"CONNECTED_APPS.DOC_LINK")," "))}var Z=class i{constructor(t,n,p,v){this.http=t;this.confirmService=n;this.toastService=p;this.dateFormat=v}apps=[];loading=!0;error=null;ngOnInit(){this.loadApps()}loadApps(){this.loading=!0,this.error=null,this.http.get(`${T.api}/api/oauth/apps`).subscribe({next:t=>{this.apps=t,this.loading=!1},error:t=>{this.error=t?.error?.message||"Error loading connected apps",this.loading=!1}})}revokeApp(t){return O(this,null,function*(){(yield this.confirmService.confirm({message:"CONNECTED_APPS.REVOKE_CONFIRM",header:"CONNECTED_APPS.REVOKE_TITLE",severity:"danger",acceptLabel:"CONNECTED_APPS.REVOKE",rejectLabel:"COMMON.CANCEL"}))&&this.http.delete(`${T.api}/api/oauth/apps/${t.clientId}`).subscribe({next:()=>{this.toastService.success("CONNECTED_APPS.REVOKED_SUCCESS"),this.apps=this.apps.filter(p=>p.clientId!==t.clientId)},error:()=>{this.toastService.error("CONNECTED_APPS.REVOKE_ERROR")}})})}getScopeLabel(t){return{"links:read":"CONNECTED_APPS.SCOPE_LINKS_READ","links:write":"CONNECTED_APPS.SCOPE_LINKS_WRITE","ecommerce:write":"CONNECTED_APPS.SCOPE_ECOMMERCE","products:sync":"CONNECTED_APPS.SCOPE_PRODUCTS","orders:create":"CONNECTED_APPS.SCOPE_ORDERS_CREATE","orders:update":"CONNECTED_APPS.SCOPE_ORDERS_UPDATE"}[t]||t}getScopeSeverity(t){return{"links:read":"info","links:write":"success","ecommerce:write":"warn","products:sync":"secondary","orders:create":"danger","orders:update":"warn"}[t]||"info"}formatDate(t){return this.dateFormat.formatDateFull(t)}getRelativeTime(t){return this.dateFormat.getRelativeTime(t)}static \u0275fac=function(n){return new(n||i)(g(R),g(J),g(j),g(Q))};static \u0275cmp=A({type:i,selectors:[["app-view-manager-connected-apps"]],decls:6,vars:8,consts:[["class","d-flex justify-content-between align-items-center mb-2",4,"ngIf"],["class","upsell-container",4,"ngIf"],["class","border rounded container-items container-fluid bg-white position-relative",3,"ngClass",4,"ngIf"],[1,"d-block","mt-5",3,"loading"],["class","mt-3 text-light fs-6 text-end",4,"ngIf"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"d-flex","align-items-center"],[1,"text-light","fs-6"],[1,"pi","pi-shield","me-2"],[1,"d-flex","align-items-center","gap-3"],[1,"text-nowrap","fs-6","fw-normal","text-light"],[1,"upsell-container"],[1,"upsell-card"],[1,"upsell-layout"],[1,"upsell-text"],[1,"upsell-icon-wrapper","upsell-icon--oauth","mb-3"],[1,"pi","pi-shield"],[1,"upsell-title"],[1,"upsell-desc"],[1,"upsell-features"],[1,"upsell-feature"],[1,"upsell-feature-icon","upsell-fi--purple"],[1,"pi","pi-lock"],[1,"upsell-feature-text"],[1,"upsell-feature-label"],[1,"upsell-feature-hint"],[1,"upsell-feature-icon","upsell-fi--blue"],[1,"pi","pi-sliders-h"],[1,"upsell-feature-icon","upsell-fi--orange"],[1,"pi","pi-ban"],[1,"upsell-feature-icon","upsell-fi--green"],[1,"pi","pi-globe"],["routerLink","/features/oauth",1,"upsell-cta","upsell-cta--oauth"],[1,"pi","pi-arrow-right"],[1,"upsell-illustration","upsell-illust--oauth"],[1,"upsell-illustration-icon","pi","pi-shield"],[1,"border","rounded","container-items","container-fluid","bg-white","position-relative",3,"ngClass"],["class","row p-2",3,"ngClass",4,"ngFor","ngForOf"],[1,"row","p-2",3,"ngClass"],[1,"col-auto","d-flex","align-items-center","fs-6","text-light",2,"max-width","30px","width","30px"],[1,"col","d-flex","flex-column","text-truncate"],[1,"text-dark","fs-6","fw-semibold","text-truncate","d-block","nowrap","w-100"],["class","text-muted fs-6",4,"ngIf"],[1,"d-flex","flex-wrap","gap-1","mt-1"],["styleClass","text-xs",3,"value","severity","rounded",4,"ngFor","ngForOf"],[1,"text-light","fs-6","mt-2"],[1,"d-flex","flex-wrap","gap-3"],[1,"pi","pi-check-circle","fs-6","me-1","text-success"],[1,"text-success"],["class","d-flex align-items-center",4,"ngIf"],[1,"pi","pi-clock","fs-6","me-1"],[1,"col-auto","d-flex","align-items-center","justify-content-end","pe-0"],["role","group",1,"btn-group"],["tooltipPosition","left",1,"btn","btn-sm","text-danger","p-1",3,"click","pTooltip"],[1,"pi","pi-ban","fs-6"],[1,"text-muted","fs-6"],["styleClass","text-xs",3,"value","severity","rounded"],[1,"pi","pi-key","fs-6","me-1"],[3,"retry"],[1,"mt-3","text-light","fs-6","text-end"],[1,"pi","pi-book","me-1"],["routerLink","/api-documentation","fragment","oauth","target","_blank","rel","noopener",1,"text-decoration-none","text-primary"]],template:function(n,p){n&1&&(E(0,ie,10,8,"div",0)(1,ne,59,33,"div",1)(2,le,2,4,"div",2)(3,se,1,0,"app-widget-api-error"),c(4,"app-widget-loading",3),E(5,de,5,3,"div",4)),n&2&&(m("ngIf",!p.loading&&p.apps.length>0),r(),m("ngIf",!p.loading&&!p.error&&p.apps.length===0),r(),m("ngIf",p.apps.length>0),r(),w(!p.loading&&p.error?3:-1),r(),I("dark"),m("loading",p.loading),r(),m("ngIf",!p.loading&&p.apps.length>0))},dependencies:[F,M,k,V,L,B,K,U,Y,G,$,X,z,W,H,q],styles:[".container-items[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{transition:background-color .15s}.container-items[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]:hover{background-color:#00000005}[_nghost-%COMP%]     .text-xs{font-size:.7rem!important}"]})};export{Z as ViewManagerConnectedAppsComponent};

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.