PageSourceSearch

https://sidequestvr.com/chunk-33ZILYJ7.js

js sidequestvr.com collected 2026-10-01 10:27:32 UTC 8,019 bytes, 1 lines download raw bytes

1import{a as Z,b as ee}from"./chunk-TACSBUI2.js";import"./chunk-SHEBHRCQ.js";import"./chunk-RYSTVBYN.js";import"./chunk-C5PRZUVE.js";import"./chunk-QLF6C6JK.js";import{a as H}from"./chunk-3I6KHVZN.js";import"./chunk-PHOA5IW7.js";import"./chunk-KUH5LUVK.js";import"./chunk-757NQQD5.js";import"./chunk-H4TGLX6R.js";import"./chunk-2PJXQFVB.js";import"./chunk-EM5BH2RY.js";import"./chunk-OF5MHCHG.js";import"./chunk-KXCNJVA2.js";import"./chunk-6ZSDJWDM.js";import"./chunk-JZZJ35U4.js";import{Bb as Y,Fa as X}from"./chunk-OLIAQARU.js";import"./chunk-5MB7PAUU.js";import{c as L}from"./chunk-ZD62WHPD.js";import"./chunk-AAYASV7G.js";import"./chunk-NJZEWWJP.js";import"./chunk-AX7HP54X.js";import"./chunk-GLUZ3734.js";import"./chunk-ZKUWGWC4.js";import"./chunk-RTXQHT56.js";import"./chunk-MDFB5HBY.js";import"./chunk-UGBR5YKA.js";import"./chunk-2G3AQPJG.js";import"./chunk-6PG7IYZ7.js";import{b as G}from"./chunk-G6SJKYUZ.js";import"./chunk-ZH56N5NH.js";import"./chunk-GAQNBZOB.js";import"./chunk-M7S5ZFIQ.js";import"./chunk-NFERE7NO.js";import"./chunk-VAY4WLS5.js";import"./chunk-G4ZZWKY6.js";import"./chunk-27U4C3ZP.js";import"./chunk-JLDLR2KC.js";import"./chunk-JAI62HTX.js";import{c as Q}from"./chunk-BMTLM4UU.js";import"./chunk-GC6M2APA.js";import{i as W}from"./chunk-T4YU4S5W.js";import"./chunk-AKB263UE.js";import"./chunk-AOE7LU5Y.js";import"./chunk-KBHJCIXU.js";import"./chunk-J3OILKZR.js";import"./chunk-CWZRCHTT.js";import"./chunk-QVMOGLOW.js";import"./chunk-F5X5MWHG.js";import"./chunk-XBEQDSG6.js";import"./chunk-T7NMAFTD.js";import{a as x}from"./chunk-WWEIMPO6.js";import{a as z,w as J}from"./chunk-SRS2QG4Q.js";import"./chunk-V3FSQCTV.js";import{d as q}from"./chunk-UK3QXSWR.js";import"./chunk-HNMKMD4D.js";import"./chunk-LOT5ZNYN.js";import{y as V}from"./chunk-TCYQSISX.js";import"./chunk-WLEUS5GQ.js";import"./chunk-4WG2XUF3.js";import"./chunk-JYABGAYF.js";import"./chunk-S7HRMRUH.js";import{a as O}from"./chunk-6C7NVCA5.js";import"./chunk-RYEE4MTR.js";import"./chunk-6C3X3GDZ.js";import"./chunk-56T3LZBL.js";import{K,L as N}from"./chunk-RVRQAAHX.js";import{M as w,Q as R,c as B}from"./chunk-AP2OL2VB.js";import{$b as C,Bb as l,Cb as d,Cc as E,Db as y,Eb as v,Fb as S,Hb as T,Jb as b,Kb as a,Ya as n,Yc as I,Zb as F,ab as s,ca as k,f as U,gb as _,hb as g,ka as u,kb as P,mb as p,me as $,nd as M,oc as D,qb as o,te as j,va as f,wa as h}from"./chunk-I5ZBT2OJ.js";import"./chunk-WWX6BADO.js";function se(t,m){if(t&1){let e=T();v(0),l(1,"ul",2)(2,"li",3)(3,"aurora-switch",4),b("clicked",function(r){f(e);let c=a();return h(c.toggleCanReview(r,c.user))}),d()(),l(4,"li",3)(5,"aurora-switch",5),b("clicked",function(r){f(e);let c=a();return h(c.toggleIsSideKick(r,c.user))}),d()()(),l(6,"button",6),b("click",function(){f(e);let r=a();return h(r.triggerConfirmDeleteUserModal(r.userId))}),C(7," Delete user "),d(),S()}if(t&2){let e=a();n(3),o("checkboxSelected",e.canReview)("hasBoldLabelWhenTrue",!1)("isDisabled",e.canReview===void 0),n(2),o("checkboxSelected",e.isSideKick)("hasBoldLabelWhenTrue",!1)("isDisabled",e.isSideKick===void 0),n(),o("disabled",!e.user)}}function ae(t,m){t&1&&(l(0,"p",7),C(1,"Error fetching user data"),d())}var ie=(()=>{class t{constructor(e,i,r){this._dialog=e,this._userService=i,this._appService=r,this.hasErrorFetchingUser=!1}ngOnInit(){this.getUserFromApi(this.userId)}getUserFromApi(e){this._userService.getUserFromApi(e).then(i=>{this.user=i,this.canReview=i.canReview,this.isSideKick=i.isSideKick}).catch(i=>{console.error(i),this._appService.showError("Failed to Admin controls for user"),this.hasErrorFetchingUser=!0})}toggleCanReview(e,i){this._userService.setUserCanReviewStatus(i.userId,e).then(()=>{if(this.user.canReview=e,e){this._appService.showSuccess(`Successfully enabled reviewing for ${i.name}.`);return}this._appService.showSuccess(`Successfully disabled reviewing for ${i.name}.`)}).catch(r=>{if(console.error(r),e){this._appService.showSuccess(`Failed to enable reviewing for ${i.name}.`);return}this._appService.showSuccess(`Failed to disable reviewing for ${i.name}.`)})}toggleIsSideKick(e,i){this._userService.setUserSideKickStatus(i.userId,e).then(()=>
1{if(this.user.isSideKick=e,e){this._appService.showSuccess(`Successfully set ${i.name} as a SideKick.`);return}this._appService.showSuccess(`Successfully set ${i.name} as not a SideKick.`)}).catch(r=>{if(console.error(r),e){this._appService.showSuccess(`Failed to set ${i.name} as a SideKick.`);return}this._appService.showSuccess(`Failed to set ${i.name} as not a SideKick.`)})}triggerConfirmDeleteUserModal(e){this._dialog.open(H,{data:{user:this.user},maxWidth:"100vw",panelClass:"sq-modal-without-material-sizing"})}static{this.\u0275fac=function(i){return new(i||t)(s(q),s(L),s(w))}}static{this.\u0275cmp=_({type:t,selectors:[["app-admin-bar"]],inputs:{userId:"userId"},standalone:!1,decls:5,vars:2,consts:[["hasErrorTemplate",""],[4,"ngIf","ngIfElse"],[1,"admin-bar-toggles"],[1,"admin-bar-toggle__wrapper"],["onPosText","Can review",3,"clicked","checkboxSelected","hasBoldLabelWhenTrue","isDisabled"],["onPosText","SideKick",3,"clicked","checkboxSelected","hasBoldLabelWhenTrue","isDisabled"],["aurora-button","","variant","primary",3,"click","disabled"],[1,"admin-bar__error-text"]],template:function(i,r){if(i&1&&(l(0,"span"),C(1," Admin control: "),d(),p(2,se,8,7,"ng-container",1)(3,ae,2,0,"ng-template",null,0,E)),i&2){let c=F(4);n(2),o("ngIf",!r.hasErrorFetchingUser)("ngIfElse",c)}},dependencies:[I,X,O],styles:["[_nghost-%COMP%]{background:var(--sq-global-colour-card-tertiary-background);padding:var(--sq-global-spacing-padding-3);border-radius:0 0 0 var(--sq-global-border-radius-xl);display:flex;align-items:center;gap:var(--sq-global-spacing-padding-4);position:absolute;top:0;right:0;z-index:20;overflow:hidden}[_nghost-%COMP%]  .switch label .lever{margin-left:0}.admin-bar-toggles[_ngcontent-%COMP%]{--aurora-switch-font-size: var(--sq-global-font-size-sm);display:flex;align-items:center;gap:var(--sq-global-spacing-padding-4)}.admin-bar__error-text[_ngcontent-%COMP%]{margin:0;color:var(--sq-global-colour-semantic-error)}"]})}}return t})();var le=()=>["large"];function de(t,m){if(t&1&&y(0,"app-admin-bar",3),t&2){let e=a(2);o("userId",e.userId)}}function pe(t,m){t&1&&(v(0),p(1,de,1,1,"app-admin-bar",2),S()),t&2&&(n(),o("ifViewportSize",D(1,le)))}function me(t,m){if(t&1&&y(0,"app-user-profile",3),t&2){let e=a();o("userId",e.userId)}}var te=(()=>{class t extends V{get isMe(){return this._sideQuestApiService.currentSession?.users_id===this.userId}get isAdmin(){return this._appService.isAuthenticated&&this._sideQuestApiService.is_admin}constructor(e,i,r){super(),this._activatedRoute=e,this._sideQuestApiService=i,this._appService=r,this.destroyed$=new U(1)}ngOnInit(){this.listenForUserId()}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete(),this.destroyed$.unsubscribe()}listenForUserId(){this._activatedRoute.params.pipe(k(this.destroyed$)).subscribe({next:e=>{e.userId&&(this._appService.scrollToTop(),this.userId=Number(e.userId))}})}static{this.\u0275fac=function(i){return new(i||t)(s($),s(R),s(w))}}static{this.\u0275cmp=_({type:t,selectors:[["app-user-public-profile"]],standalone:!1,features:[P],decls:2,vars:2,consts:[[4,"ngIf"],[3,"userId",4,"ngIf"],[3,"userId",4,"ifViewportSize"],[3,"userId"]],template:function(i,r){i&1&&p(0,pe,2,2,"ng-container",0)(1,me,1,1,"app-user-profile",1),i&2&&(o("ngIf",!r.isMe&&r.isAdmin),n(),o("ngIf",r.userId))},dependencies:[I,Z,z,ie],styles:["[_nghost-%COMP%]{position:relative}"]})}}return t})();var re=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=g({type:t})}static{this.\u0275inj=u({imports:[M,K,W,Q,B,N,x]})}}return t})();var ue=[{path:"",component:te,data:{telemetry:{eventName:"user-public-profile-load",params:{userId:"route_users_id"}}}}],We=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=g({type:t})}static{this.\u0275inj=u({imports:[M,j.forChild(ue),ee,J,Y,G,re,x]})}}return t})();export{We as UserPublicProfileModule};

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.