1"use strict";(self.webpackChunkgw_core_sites_app=self.webpackChunkgw_core_sites_app||[]).push([["src_app_ft-components_shared_firm-restricted-access_firm-restricted-access_module_ts"],{62108:(T,u,i)=>{i.r(u),i.d(u,{FirmRestrictedAccessModule:()=>S});var m=i(54364),o=i(55311),l=i(92612),g=i(79441),p=i(61486),h=i(22663),v=i(68411),A=i(31023),e=i(2316),b=i(16320),f=i(71556);function F(s,n){if(1&s&&e.GkF(0,3),2&s){const t=e.oxw();e.Q6J("brManageContentButton",t.document)("relative",!1)}}function y(s,n){1&s&&(e.TgZ(0,"div",4),e.TgZ(1,"div",5),e.TgZ(2,"div",6),e._uU(3," Click to configure "),e.TgZ(4,"strong"),e._uU(5,"Firm Access"),e.qZA(),e.qZA(),e.qZA(),e.qZA())}const I=function(s){return{"has-edit-button":s}},a=v.Y.getLogger("SignInComponent");let C=(()=>{class s extends l.N{constructor(t,c,r,d,M,R){super(),this.locationRef=t,this.appStateService=c,this.viewModeService=r,this.profileService=d,this.route=M,this.storageService=R,this.unsubscribe$=new g.xQ,this.isEditMode=this.viewModeService.isEditMode()}ngOnInit(){const t=this.document?.getData();a.debug(t),(0,p.aj)([this.route.queryParams,this.profileService.getUserProfile$()]).pipe((0,h.R)(this.unsubscribe$)).subscribe(([c,r])=>{a.debug("Params :",c),c?.bypass&&!r.firm?.parentFirmId&&(this.storageService.storeProfileSummary({source:o.Wm.BYPASS,role:r.profileInfo.role,webExperience:r.profileInfo.webExperience,firm:c?.bypass,accountsAccess:r.profileInfo?.accountsAccess,dashboardUrl:r.profileInfo?.dashboardUrl}),this.checkAccess(c.bypass,t)),!c?.bypass&&!r.firm?.parentFirmId&&r.profileInfo?.firm&&this.checkAccess(r.profileInfo?.firm,t),r.firm?.parentFirmId&&this.checkAccess(r.firm?.parentFirmId,t),!c?.bypass&&!r.firm?.parentFirmId&&!r.profileInfo?.firm&&this.redirectPage(t.unrecognizedUrl)})}checkAccess(t,c){if(!c.firmsRestrictedAccess.some(d=>d.firmRole===t))return a.debug("Access denied"),void this.redirectPage(c.unrecognizedUrl);a.debug("Access allowed")}redirectPage(t){this.isEditMode||(this.locationRef.href=t||this.appStateService?.getHomePageUrl())}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(A.Ct),e.Y36(o.ZQ),e.Y36(o.jO),e.Y36(o.H3),e.Y36(b.gz),e.Y36(o.V1))},s.\u0275cmp=e.Xpm({type:s,selectors:[["ft-firm-restricted-access"]],features:[e.qOj],decls:3,vars:5,consts:[["edsGrid","",3,"ngClass"],["documentTemplateQuery","new-firm-access-document","folderTemplateQuery","new-firm-access-folder","parameter","document","root","",3,"brManageContentButton","relative",4,"ngIf"],["class","no-document",4,"ngIf"],["documentTemplateQuery","new-firm-access-document","folderTemplateQuery","new-firm-access-folder","parameter","document","root","",3,"brManageContentButton","relative"],[1,"no-document"],["edsGrid","",1,"no-document__component"],[1,"no-document__overlay"]],template:function(t,c){1&t&&(e.TgZ(0,"div",0),e.YNc(1,F,1,2,"ng-container",1),e.qZA(),e.YNc(2,y,6,0,"div",2)),2&t&&(e.Q6J("ngClass",e.VKq(3,I,c.isEditMode)),e.xp6(1),e.Q6J("ngIf",c.isEditMode),e.xp6(1),e.Q6J("ngIf",c.isEditMode))},directives:[m.mk,m.O5,f.bF],encapsulation:2}),s})(),S=(()=>{class s{getComponentMapping(){return{"Firm Restricted Access":C}}}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[[m.ez,f.q8]]}),s})()}}]); 2//# sourceMappingURL=src_app_ft-components_shared_firm-restricted-access_firm-restricted-access_module_ts.54a9f80b65f4f7ffa457.js.map
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.