PageSourceSearch

https://web.myrtlebeachareachamber.com/atlas/chunk-BJAZMIUL.js

js myrtlebeachareachamber.com collected 2026-10-02 06:20:03 UTC 2,929 bytes, 1 lines download raw bytes

1import{Cd as k,Ed as T,Fc as h,Jc as S,Kc as d,Rc as m,Vc as g,Wb as p,Wd as P,Xb as u,s as l,v as r,wd as _,xd as y}from"./chunk-RF5BZFFS.js";import{i as v}from"./chunk-ODN5LVDJ.js";var U=(()=>{let i=class i{constructor(e){this._apiService=e}getByGuid(e){return this._apiService.get(`ProfileAccessGuid/${e}`)}getProfileAccessGuid(e){return this._apiService.get(`Profile/${e}/AccessGuid`,null)}};i.\u0275fac=function(s){return new(s||i)(r(d))},i.\u0275prov=l({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var $=(()=>{let i=class i{constructor(e,s,a,o,n,c,f,I,j,w,A){this._tokenStorageService=e,this._identityProviderService=s,this._router=a,this._utilService=o,this._navigationService=n,this._profileService=c,this._userService=f,this._notificationService=I,this._profileAccessGuidService=j,this._psfyIdpService=w,this._translationService=A}canActivate(e,s){if(e.data?.allowProfileAccessGuid&&e.queryParams.profileGuid)return this._profileAccessGuidService.getByGuid(e.queryParams.profileGuid).then(a=>a?!this._tokenStorageService.hasValidUserTypeAccessToken()&&!this._tokenStorageService.hasValidTempAccessToken()?this._identityProviderService.getTempAccessToken().then(()=>!0).catch(o=>(this._notificationService.httpError(o),!1)):!0:!1);if(this._tokenStorageService.hasValidUserTypeAccessToken()===!0){let a=s.url;if(this._utilService.toLowerTrim(a)==="/portal/profile")if(this._tokenStorageService.hasValidUserTypeAccessToken()){let o=this._tokenStorageService.getUserTypeAccessToken(),n=this._tokenStorageService.getUserTypeInfoFromToken(o);return this.getUserProfileId(n).then(c=>v(this,null,function*(){if(!c){let f=yield this._translationService.get("portal.profile.guard.no-linked-profile-warning");return this._notificationService.warn(f),!1}return this._navigationService.navigateToProfileView(c)}))}else return Promise.resolve(!1);else{if(e.paramMap&&e.paramMap.get("profileId")!=null){let o=this._tokenStorageService.getUserTypeAccessToken(),n=this._tokenStorageService.getUserTypeInfoFromToken(o);return n.UserType===p.BackOfficeUser?!0:this._profileService.getProfilePortalSwitchingAccessList(n.id).then(c=>c.findIndex(f=>f.ProfileId==+e.paramMap.get("profileId"))>-1?!0:this._router.parseUrl("/access-denied"))}return Promise.resolve(!0)}}else return this._identityProviderService.initialize(),this._identityProviderService.authorizeCodeFlowRequestCode(window.location.href),Promise.resolve(!1)}getUserProfileId(e){return v(this,null,function*(){switch(e.UserType){case p.ProfileUser:return e.id;case p.BackOfficeUser:return e.guid?Promise.resolve(Number(this._psfyIdpService.getUserInfo()?.wli_profileid)):(yield this._userService.getUser(e.id))?.ProfileId;default:return null}})}};i.\u0275fac=function(s){return new(s||i)(r(S),r(y),r(m),r(u),r(P),r(k),r(T),r(h),r(U),r(_),r(g))},i.\u0275prov=l({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();export{U as a,$ as b};

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.