PageSourceSearch

https://uni.xyz/market/chunk-4Z5ETXG2.js

js uni.xyz collected 2026-09-24 09:30:13 UTC 7,879 bytes, 1 lines download raw bytes

1import{Ac as ie,Gd as pe,Qb as I,Qc as ne,Sb as L,Ub as R,Wb as B,bc as G,cd as oe,dc as j,ec as N,fc as H,hc as J,jd as re,kc as W,mc as q,oc as Q,pd as F,rc as Y,sc as K,u as V,uc as X,ud as ae,vc as Z,wc as ee,yc as te}from"./chunk-VNXDXN67.js";import{p as E,t as A,w as $,x as D}from"./chunk-U6SRFR6W.js";import{$b as M,Aa as O,Ab as P,Cb as g,Eb as f,Hb as y,Ib as w,Jb as c,Kb as a,Lb as p,Mb as d,Qa as b,Qb as v,Rb as u,Sb as o,Ua as s,aa as _,bc as C,cc as k,eb as z,fa as m,ga as h,la as S,lb as T,mc as U}from"./chunk-BLF6W2AN.js";import"./chunk-6MDQTQU3.js";var le=(i,l)=>l.id;function se(i,l){if(i&1&&d(0,"img",10),i&2){let e=o().$implicit,t=o();c("src",t.isDark&&e.logoDarkUrl?e.logoDarkUrl:e.logoUrl,b)("alt",e.label)}}function ce(i,l){if(i&1&&d(0,"ng-icon",11),i&2){let e=o().$implicit;c("name",e.icon)}}function de(i,l){if(i&1){let e=v();a(0,"button",13),u("click",function(n){m(e);let r=o().$implicit,x=o();return h(x.toggleAppPin(r,n))}),d(1,"ng-icon",14),p()}if(i&2){let e=o().$implicit,t=o();M("pinned",t.isAppPinned(e.id)),c("title",t.isAppPinned(e.id)?"Unpin":"Pin to sidebar"),P("aria-label",(t.isAppPinned(e.id)?"Unpin ":"Pin ")+e.label)}}function _e(i,l){if(i&1){let e=v();a(0,"div",9),u("click",function(){let n=m(e).$implicit,r=o();return h(r.navigateApp(n))})("keydown.enter",function(){let n=m(e).$implicit,r=o();return h(r.navigateApp(n))}),a(1,"span",6),g(2,se,1,2,"img",10)(3,ce,1,1,"ng-icon",11),p(),a(4,"span",8),C(5),p(),g(6,de,2,4,"button",12),p()}if(i&2){let e=l.$implicit,t=o();s(2),f(e.logoUrl?2:3),s(3),k(e.label),s(),f(t.canManagePins&&e.pinnable?6:-1)}}function me(i,l){if(i&1&&d(0,"img",10),i&2){let e=o().$implicit,t=o();c("src",t.isDark&&e.logoDarkUrl?e.logoDarkUrl:e.logoUrl,b)("alt",e.label)}}function he(i,l){if(i&1&&d(0,"ng-icon",11),i&2){let e=o().$implicit;c("name",e.icon)}}function ue(i,l){if(i&1){let e=v();a(0,"button",13),u("click",function(n){m(e);let r=o().$implicit,x=o();return h(x.toggleAppPin(r,n))}),d(1,"ng-icon",14),p()}if(i&2){let e=o().$implicit,t=o();M("pinned",t.isAppPinned(e.id)),c("title",t.isAppPinned(e.id)?"Unpin":"Pin to sidebar"),P("aria-label",(t.isAppPinned(e.id)?"Unpin ":"Pin ")+e.label)}}function ge(i,l){if(i&1){let e=v();a(0,"div",9),u("click",function(){let n=m(e).$implicit,r=o();return h(r.navigateApp(n))})("keydown.enter",function(){let n=m(e).$implicit,r=o();return h(r.navigateApp(n))}),a(1,"span",6),g(2,me,1,2,"img",10)(3,he,1,1,"ng-icon",11),p(),a(4,"span",8),C(5),p(),g(6,ue,2,4,"button",12),p()}if(i&2){let e=l.$implicit,t=o();s(2),f(e.logoUrl?2:3),s(3),k(e.label),s(),f(t.canManagePins&&e.pinnable?6:-1)}}var Fe=(()=>{class i{isOpen=!1;closed=new T;sidebarPinService=_(ae);toastService=_(oe);themeService=_(ne);authService=_(re);platformId=_(O);destroyRef=_(S);isDark=!1;switcherApps=F.filter(e=>e.id!=="feed"&&!e.external);partnerList=F.filter(e=>e.external&&e.route.startsWith("http"));get appsList(){let e=this.authService.userSignal(),t=!!e?.is_staff,n=t||!!e?.is_jury;return this.switcherApps.filter(r=>r.staffOnly?t:r.jurorOnly?n:!0)}constructor(){this.themeService.effectiveTheme$.pipe(V(this.destroyRef)).subscribe(e=>{this.isDark=e==="dark"})}get canManagePins(){return this.sidebarPinService.canManagePins()}isAppPinned(e){return this.sidebarPinService.isEffectivelyPinned(e)}navigateApp(e){this.closed.emit(),A(this.platformId)&&(e.route.startsWith("http")?window.open(e.route,"_blank","noopener,noreferrer"):window.location.href=window.location.origin+e.route)}becomePartner(){this.closed.emit(),A(this.platformId)&&(window.location.href=window.location.origin+"/about/business/partner")}toggleAppPin(e,t){t.preventDefault(),t.stopPropagation();let n=this.isAppPinned(e.id);this.sidebarPinService.toggleEffectivePin(e.id),n&&this.toastService.withAction(`Unpinned ${e.label}`,{label:"Undo",handler:()=>this.sidebarPinService.toggleEffectivePin(e.id)},"info")}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=z({type:i,selectors:[["lib-apps-modal"]],inputs:{isOpen:"isOpen"},outputs:{closed:"closed"},features:[U([$({phosphorTrophyFill:te,phosphorBlueprintFill:I,phosphorNewsp
1aperFill:q,phosphorBookOpenFill:L,phosphorLightbulbFill:J,phosphorChatsCircleFill:B,phosphorBuildingsFill:R,phosphorShoppingCartFill:Z,phosphorUserCircleFill:ie,phosphorGavelFill:G,phosphorPenNibFill:Q,phosphorGraduationCapFill:N,phosphorSparkleFill:ee,phosphorQuestionFill:K,phosphorMagnifyingGlassFill:W,phosphorGlobeFill:j,phosphorPushPinFill:Y,phosphorShieldCheckFill:X,phosphorHandshakeFill:H})])],decls:15,vars:1,consts:[["title","All apps","size","lg",3,"modalClose","isOpen"],[1,"apps-modal"],[1,"apps-grid"],["role","button","tabindex","0",1,"app-card"],[1,"apps-modal__heading"],["role","button","tabindex","0",1,"app-card","app-card--cta",3,"click","keydown.enter"],[1,"app-card__icon"],["name","phosphorHandshakeFill","size","26",1,"phosphor-icon"],[1,"app-card__label"],["role","button","tabindex","0",1,"app-card",3,"click","keydown.enter"],["width","26","height","26",3,"src","alt"],["size","26",1,"phosphor-icon",3,"name"],["type","button",1,"app-card__pin",3,"pinned","title"],["type","button",1,"app-card__pin",3,"click","title"],["name","phosphorPushPinFill","size","11"]],template:function(t,n){t&1&&(a(0,"uni-modal",0),u("modalClose",function(){return n.closed.emit()}),a(1,"div",1)(2,"div",2),y(3,_e,7,3,"div",3,le),p(),a(5,"div",4),C(6,"Partner apps"),p(),a(7,"div",2),y(8,ge,7,3,"div",3,le),a(10,"div",5),u("click",function(){return n.becomePartner()})("keydown.enter",function(){return n.becomePartner()}),a(11,"span",6),d(12,"ng-icon",7),p(),a(13,"span",8),C(14,"Become a Partner"),p()()()()()),t&2&&(c("isOpen",n.isOpen),s(3),w(n.appsList),s(5),w(n.partnerList))},dependencies:[E,D,pe],styles:[".apps-modal__heading[_ngcontent-%COMP%]{margin:var(--size-5) 0 var(--size-3);font-family:var(--font-family-monospace, monospace);font-size:var(--font-size-xs);text-transform:uppercase;letter-spacing:.08em;color:var(--text-tertiary);font-weight:600}.apps-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--size-25),1fr));gap:var(--size-3)}.app-card[_ngcontent-%COMP%]{position:relative;overflow:visible;display:flex;flex-direction:column;align-items:center;gap:var(--size-2);padding:var(--size-5) var(--size-3) var(--size-4);border:var(--border-width-thin) solid var(--border);border-radius:var(--radius-lg);background:var(--bg-secondary);cursor:pointer;transition:border-color .15s ease,background .15s ease}.app-card[_ngcontent-%COMP%]:hover{border-color:var(--primary-500)}.app-card--cta[_ngcontent-%COMP%]{border-style:dashed;background:transparent}.app-card--cta[_ngcontent-%COMP%]:hover{background:var(--bg-secondary)}.app-card--cta[_ngcontent-%COMP%]   .app-card__icon[_ngcontent-%COMP%]{color:var(--primary-500)}.app-card__icon[_ngcontent-%COMP%]{display:flex;font-size:var(--size-7);color:var(--text-primary)}.app-card__label[_ngcontent-%COMP%]{font-size:var(--font-size-sm);color:var(--text-primary);text-align:center;line-height:1.2}.app-card__pin[_ngcontent-%COMP%]{position:absolute;top:var(--size-2);right:var(--size-2);width:var(--size-5);height:var(--size-5);border:none;border-radius:var(--radius-full);background:transparent;color:var(--text-tertiary);display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:.4;transition:opacity .15s ease,color .15s ease}.app-card__pin[_ngcontent-%COMP%]:hover{opacity:1}.app-card__pin.pinned[_ngcontent-%COMP%]{color:var(--primary-500);opacity:1}.app-card__pin[_ngcontent-%COMP%]   ng-icon[_ngcontent-%COMP%]{display:flex;width:var(--size-3);height:var(--size-3);font-size:var(--size-3);overflow:visible}.app-card[_ngcontent-%COMP%]:hover   .app-card__pin[_ngcontent-%COMP%]{opacity:.7}.app-card[_ngcontent-%COMP%]:hover   .app-card__pin.pinned[_ngcontent-%COMP%]{opacity:1}"],changeDetection:0})}return i})();export{Fe as AppsModalComponent};

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.