PageSourceSearch

https://www.foodactionalliance.org/default-src_app_features_sign-up_sign-up_module_ts.80b60d640efa8b1e.js

js foodactionalliance.org collected 2026-09-29 15:53:17 UTC 14,466 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkinitiative_as_a_service=self.webpackChunkinitiative_as_a_service||[]).push([["default-src_app_features_sign-up_sign-up_module_ts"],{68415(R,U,t){t.d(U,{G:()=>L});var O=t(48090),h=t(17705),n=t(73664),u=t(72200);const E=[[["","form-container",""]],[["","powered-by-container",""]]],v=["[form-container]","[powered-by-container]"];function C(e,i){if(1&e&&(n.j41(0,"div",6),n.nrm(1,"img",7),n.k0s()),2&e){const o=n.XpG();n.R7$(),n.Y8G("src",null==o.signUpSettings?null:o.signUpSettings.initiativeLogoUrl,n.B4B)}}function m(e,i){if(1&e&&(n.j41(0,"h2",11),n.EFF(1),n.k0s()),2&e){const o=n.XpG(2);n.R7$(),n.SpI(" ",null==o.signUpSettings?null:o.signUpSettings.title," ")}}function r(e,i){if(1&e&&(n.j41(0,"p",12),n.EFF(1),n.k0s()),2&e){const o=n.XpG(2);n.R7$(),n.SpI(" ",null==o.signUpSettings?null:o.signUpSettings.sloganText," ")}}function a(e,i){if(1&e&&(n.j41(0,"div",8),n.DNE(1,m,2,1,"h2",9)(2,r,2,1,"p",10),n.k0s()),2&e){const o=n.XpG();n.R7$(),n.Y8G("ngIf",null==o.signUpSettings?null:o.signUpSettings.title),n.R7$(),n.Y8G("ngIf",null==o.signUpSettings?null:o.signUpSettings.sloganText)}}function s(e,i){1&e&&n.eu8(0)}function d(e,i){if(1&e&&(n.qex(0),n.DNE(1,s,1,0,"ng-container",13),n.bVm()),2&e){n.XpG();const o=n.sdS(9);n.R7$(),n.Y8G("ngTemplateOutlet",o)}}function D(e,i){1&e&&n.eu8(0)}function I(e,i){if(1&e&&(n.qex(0),n.DNE(1,D,1,0,"ng-container",13),n.bVm()),2&e){n.XpG();const o=n.sdS(9);n.R7$(),n.Y8G("ngTemplateOutlet",o)}}function M(e,i){1&e&&n.SdG(0,1)}let L=(()=>{class e{screenResize(){this.calculateScreen()}constructor(o){this.cdr=o,this.isDesktopScreen=!1}ngAfterViewInit(){this.calculateScreen()}calculateScreen(){this.isDesktopScreen=window.innerWidth>=O.T.DESKTOP,this.cdr.detectChanges()}static{this.\u0275fac=function(S){return new(S||e)(n.rXU(h.gRc))}}static{this.\u0275cmp=n.VBU({type:e,selectors:[["app-sign-up-layout"]],hostBindings:function(S,p){1&S&&n.bIt("resize",function(){return p.screenResize()},n.tSv)},inputs:{signUpSettings:"signUpSettings"},standalone:!1,ngContentSelectors:v,decls:10,vars:6,consts:[["poweredByTemplate",""],[1,"sign-up__container"],[1,"sign-up__section"],["class","sign-up__initiative-logo-container",4,"ngIf"],["class","sign-up__initiative-description-container",4,"ngIf"],[4,"ngIf"],[1,"sign-up__initiative-logo-container"],["alt","",1,"sign-up__initiative-logo",3,"src"],[1,"sign-up__initiative-description-container"],["class","sign-up__initiative-name",4,"ngIf"],["class","sign-up__initiative-slogan",4,"ngIf"],[1,"sign-up__initiative-name"],[1,"sign-up__initiative-slogan"],[4,"ngTemplateOutlet"]],template:function(S,p){1&S&&(n.NAR(E),n.j41(0,"div",1)(1,"div",2),n.DNE(2,C,2,1,"div",3)(3,a,3,2,"div",4)(4,d,2,1,"ng-container",5),n.k0s(),n.j41(5,"div",2),n.SdG(6),n.DNE(7,I,2,1,"ng-container",5),n.k0s()(),n.DNE(8,M,1,0,"ng-template",null,0,n.C5r)),2&S&&(n.xc7("background-image","url("+(null==p.signUpSettings?null:p.signUpSettings.backgroundImageUrl)+")"),n.R7$(2),n.Y8G("ngIf",null==p.signUpSettings?null:p.signUpSettings.initiativeLogoUrl),n.R7$(),n.Y8G("ngIf",(null==p.signUpSettings?null:p.signUpSettings.title)||(null==p.signUpSettings?null:p.signUpSettings.sloganText)),n.R7$(),n.Y8G("ngIf",p.isDesktopScreen),n.R7$(3),n.Y8G("ngIf",!p.isDesktopScreen))},dependencies:[u.bT,u.T3],styles:[".sign-up__container[_ngcontent-%COMP%]{min-height:100vh;display:flex;flex-direction:column;padding:var(--space-1000) 0 var(--space-400);background-position:0;background-size:cover;background-attachment:fixed;background-repeat:no-repeat}@media(min-width:768px){.sign-up__container[_ngcontent-%COMP%]{padding:var(--space-800) var(--space-800) var(--space-600)}}@media(min-width:1024px){.sign-up__container[_ngcontent-%COMP%]{padding:var(--space-1000) var(--space-800);flex-direction:row}}.sign-up__section[_ngcontent-%COMP%]{flex:1}.sign-up__section[_ngcontent-%COMP%]:first-child{display:flex;flex-direction:column}.sign-up__section[_ngcontent-%COMP%]:first-child   .sign-up__powered-by-logo-container[_ngcontent-%COMP%]{display:none}@media(min-width:1024px){.sign-up__section[_ngcontent-%COMP%]:first-child   .sign-up__powered-by-logo-container[_ngcontent-%COMP%]{display:block}}.sign-up__section[_ngcontent-%COMP%]:last-child{display:flex;flex-direction:column}@media(min-width:768px){.sign-up__section[_ngcontent-%COMP%]:last-child{align-items:center}}@media(min-width:1024px){.sign-up__section[_ngcontent-%COMP%]:last-child{align-items:flex-end}}@media(min-width:1024px){.sign-up__section[_ngcontent-%COMP%]:last-child   .sign-up__powered-by-logo-container[_ngcontent-%COMP%]{display:none}}.sign-up__initiative-description-container[_ngcontent-%COMP%]{margin-left:var(--space-300)}@media(min-width:768px){.sign-up__initiative-description-container[_ngcontent-%COMP%]{margin-left:0}}.sign-up__initiative-logo-container[_ngcontent-%COMP%]{max-height:var(--space-1000);padding:0 var(--space-300)}@media(min-width:768px){.sign-up__initiative-logo-container[_ngcontent-%COMP%]{max-width:300px;padding:0}}@media(min-width:1024px){.sign-up__initiative-logo-container[_ngcontent-%COMP%]{max-width:380px;max-height:100px}}.sign-up__initiative-logo[_ngcontent-%COMP%]{max-height:var(--space-1000);object-fit:contain}@media(min-width:768px){.sign-up__initiative-logo[_ngcontent-%COMP%]{max-width:300px}}@media(min-width:1024px){.sign-up__initiative-logo[_ngcontent-%COMP%]{max-width:380px;max-height:100px}}.sign-up__initiative-description-container[_ngcontent-%COMP%]{margin-top:var(--space-1000);color:#fff}@media(min-width:1024px){.sign-up__initiative-description-container[_ngcontent-%COMP%]{margin-top:184px}}
1.sign-up__initiative-name[_ngcontent-%COMP%]{margin:0}.sign-up__initiative-slogan[_ngcontent-%COMP%]{font-family:var(--typography-body-large-font-family);font-weight:var(--typography-body-large-font-weight);line-height:var(--typography-body-large-line-height);font-size:var(--typography-body-large-font-size);letter-spacing:var(--typography-body-regular-letter-spacing);text-transform:var(--typography-body-regular-text-case);max-width:536px;margin-top:var(--space-200)}@media(min-width:1024px){.sign-up__initiative-slogan[_ngcontent-%COMP%]{margin-top:var(--space-300)}}"],changeDetection:0})}}return e})()},4397(R,U,t){t.d(U,{U:()=>V});var O=t(21413),h=t(84572),n=t(35335),u=t(23294),E=t(11966),v=t(96697),C=t(56977),m=t(39359),r=t(45312),a=t(86981),s=t(12429),d=t(91708),D=t(1835),I=t(71088),M=t(92549),L=t(24233),e=t(17705),i=t(73664),o=t(91029),S=t(29185),p=t(61945),A=t(71957),F=t(95416),b=t(85217),G=t(49030),j=t(73878),W=t(72200),X=t(68415);function Y(P,N){if(1&P&&(i.j41(0,"app-sign-up-layout",1),i.qex(1,2),i.nrm(2,"div",3),i.bVm(),i.qex(3,4),i.j41(4,"div",5),i.nrm(5,"img",6),i.k0s(),i.bVm(),i.k0s()),2&P){const _=N.ngIf,g=i.XpG();i.Y8G("signUpSettings",_),i.R7$(2),i.Y8G("id",g.signUpWidgetId)("hidden",g.isFormHidden)}}let V=(()=>{class P{constructor(_,g,c,l,y,f,x,B,T){this.route=_,this.cdRef=g,this.siteService=c,this.sitesSnapshotsService=l,this.signUpService=y,this.snackBar=f,this.storageService=x,this.idpService=B,this.apiEndpointService=T,this.signUpSettings$=this.signUpService.signUpSettings$,this.isFormHidden=!0,this.signUpWidgetId="sign-up-widget",this.destroy$=new O.B}ngOnInit(){this.loadSignUpData()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}loadSignUpData(){(0,h.z)([this.sitesSnapshotsService.currentSite$,this.siteService.site$]).pipe((0,C.Q)(this.destroy$),(0,u.F)((_,g)=>{const[c,l]=_,[y,f]=g;return!(!c&&!l||c?.id!==y?.id&&l?.id!==f?.id)})).subscribe(([_,g])=>{const c=_?.id||g?.id,l=!!g?.isCommunityDetails||!c;l&&g?.nonCommunitySiteId?this.loadSignUpSettings(g.nonCommunitySiteId):!l||g?.nonCommunitySiteId?c&&this.loadSignUpSettings(c):this.loadDefaultSignUpSettings(g?.community?.id||"")})}loadSignUpSettings(_){this.signUpService.loadSignUpSettings(_).pipe((0,v.s)(1)).subscribe(()=>{this.cdRef.detectChanges(),this.loadWidget()},()=>{this.snackBar.openFromComponent(d.Y,D.JE),this.cdRef.detectChanges()})}loadDefaultSignUpSettings(_){this.signUpService.loadDefaultSignUpSettings(_).pipe((0,v.s)(1)).subscribe(()=>{this.cdRef.detectChanges(),this.loadWidget()},()=>{this.snackBar.openFromComponent(d.Y,D.JE),this.cdRef.detectChanges()})}loadWidget(){const{AuthWidget:_}=window;if(!_)return;const{initAuthentication:g}=_;if(!g)return;const c=this.sitesSnapshotsService.currentSite$.value||this.siteService.site$.value,l=c?.id,y=c?.community?.ageConstraints,f=this.route.snapshot.params.userToken;window.addEventListener(a.d.AuthLoaded,()=>{const x=document.getElementById("aw-container");x&&x.dispatchEvent(new CustomEvent("showRegistration")),f?this.signUpService.loadSignUpUserInfo(f,r.c.fws_auth_client_id).pipe((0,E.l)((0,L.T)()),(0,n.c)(1e3),(0,v.s)(1)).subscribe(B=>{const T=document.getElementById("loginradius-registration-emailid"),$=document.getElementById("loginradius-registration-username"),w=B?.email;w&&T&&$&&([T,$].forEach(K=>{K.value=w,K.readOnly=!0}),T.dispatchEvent(new Event("input",{bubbles:!0}))),this.isFormHidden=!1,this.cdRef.detectChanges()},()=>{this.snackBar.openFromComponent(d.Y,D.JE),this.cdRef.detectChanges()}):(this.isFormHidden=!1,this.cdRef.detectChanges())}),window.addEventListener(a.d.CommunityOnboardingStart,()=>{this.logout()}),window.addEventListener(a.d.RegistrationSuccess,()=>{this.snackBar.openFromComponent(d.Y,D.A5),this.cdRef.detectChanges()}),window.addEventListener(a.d.CommunityOnboardingFinish,()=>{this.storageService.setLocalStorageItem(s.Z.INVITATION_MEMBERSHIP_TOKEN,f),this.storageService.setLocalStorageItem(s.Z.MEMBERSHIP_TOAST_MESSAGE,"true")}),g({rootSelector:`#${this.signUpWidgetId}`,apiBaseUrl:r.c.login_radius_host,appName:r.c.odf_auth_app_name,initiativeId:l,apiKey:r.c.odf_auth_api_key,clientId:r.c.fws_auth_client_id,memberOnboardingToken:f,registrationFormOnly:!0,resetPasswordEmailTemplate:(0,M.gk)(l,I.V.RESET_PASSWORD),verificationEmailTemplate:(0,M.gk)(l,I.V.VERIFICATION),passwordlessLoginEmailTemplate:(0,M.gk)(l,I.V.PASSWORDLESS),verificationUrl:(0,M.R_)(),onboardingFlowMode:!0,onboardingInitUrl:`${this.apiEndpointService.getFWSAuthenticationEndpoint()}${r.c.onboarding_init_url}`,onboardingLoadingPageUrl:`${M.if?r.c.onboarding_loading_page_host:this.apiEndpointService.getFWSAuthenticationEndpoint()}${r.c.onboarding_loading_page_url}`,debug:["dev","qa"].includes(r.c.name),termsUrl:this.getTermsAndPolicyUrl(),policyUrl:this.getTermsAndPolicyUrl(),birthDateRequired:y?.isDateOfBirthRequired,minAge:y?.min,maxAge:y?.max}),_.render()}getTermsAndPolicyUrl(){return this.siteService.site$.value?.policyUrl||this.sitesSnapshotsService.currentSite$.value?.configuration.policyUrl||m.Z}logout(){this.idpService.silentLogout(),this.idpService.ssoLogout().pipe((0,v.s)(1)).subscribe()}static{this.\u0275fac=function(g){return new(g||P)(i.rXU(o.nX),i.rXU(e.gRc),i.rXU(S.T),i.rXU(p.X),i.rXU(A.K),i.rXU(F.UG),i.rXU(b.n),i.rXU(G.JP),i.rXU(j.J))}}static{this.\u0275cmp=i.VBU({type:P,selectors:[["app-sign-up"]],standalone:!1,decls:2,vars:3,consts:[[3,"signUpSettings",4,"ngIf"],[3,"signUpSettings"],["form-container",""],[1,"sign-up__form-container",3,"id","hidden"],["powered-by-container",""],[1,"sign-up__powered-by-logo-container"],["src","/assets/images/sign-up-wef-logo.svg","alt","",1,"sign-up__powered-by-logo"]],template:function(g,c){1&g&&(i.DNE(0,Y,6,3,"app-sign-up-layout",0),i.n
1I1(1,"async")),2&g&&i.Y8G("ngIf",i.bMT(1,1,c.signUpSettings$))},dependencies:[W.bT,X.G,W.Jj],styles:[".sign-up__powered-by-logo-container[_ngcontent-%COMP%]{width:88px;height:69px;align-self:center;margin-top:auto}@media(min-width:768px){.sign-up__powered-by-logo-container[_ngcontent-%COMP%]{margin-bottom:0}}@media(min-width:1024px){.sign-up__powered-by-logo-container[_ngcontent-%COMP%]{align-self:unset}}.sign-up__form-container[_ngcontent-%COMP%]{width:100%;margin:var(--space-400) 0 var(--space-600)}@media(min-width:768px){.sign-up__form-container[_ngcontent-%COMP%]{width:648px;margin-top:var(--space-600)}}@media(min-width:1024px){.sign-up__form-container[_ngcontent-%COMP%]{width:536px;margin:0}}.sign-up__form-container[hidden][_ngcontent-%COMP%]{display:none!important}.sign-up__form-container[_ngcontent-%COMP%]     #aw-container{padding:var(--space-400) var(--space-300)}@media(min-width:768px){.sign-up__form-container[_ngcontent-%COMP%]     #aw-container{padding:var(--space-400);border-radius:10px}}.sign-up__form-container[_ngcontent-%COMP%]     #aw-container .aw-back-button{display:none}"],changeDetection:0})}}return P})()},53182(R,U,t){t.d(U,{SignUpModule:()=>m});var O=t(72200),h=t(38132),n=t(4397),u=t(73664),E=t(2615);const v=[{path:"",component:n.U}];let C=(()=>{class r{static{this.\u0275fac=function(d){return new(d||r)}}static{this.\u0275mod=u.$C({type:r})}static{this.\u0275inj=E.G2t({imports:[h.iI.forChild(v),h.iI]})}}return r})(),m=(()=>{class r{static{this.\u0275fac=function(d){return new(d||r)}}static{this.\u0275mod=u.$C({type:r})}static{this.\u0275inj=E.G2t({imports:[O.MD,C]})}}return r})()},71957(R,U,t){t.d(U,{K:()=>C});var O=t(84412),h=t(88141),n=t(5950),u=t(2615),E=t(29330),v=t(73878);let C=(()=>{class m{constructor(a,s){this.httpClient=a,this.apiEndpointService=s,this.signUpSettings$=new O.t(null)}loadSignUpSettings(a){return this.httpClient.get(`${this.apiEndpointService.getFWSEndpoint()}${n.od}/${a}/sign_up_page`).pipe((0,h.M)(s=>this.signUpSettings$.next(s)))}loadDefaultSignUpSettings(a){return this.httpClient.get(`${this.apiEndpointService.getFWSEndpoint()}/communities/v1/static/communities/${a}/sign_up_page`).pipe((0,h.M)(s=>this.signUpSettings$.next(s)))}loadSignUpUserInfo(a,s){return this.httpClient.get(`${this.apiEndpointService.getFWSEndpoint()}${n.i9}/${a}?clientId=${s}`)}updateSignUpSettings(a,s){return this.httpClient.put(`${this.apiEndpointService.getFWSEndpoint()}${n.od}/${a}/sign_up_page`,s).pipe((0,h.M)(d=>this.signUpSettings$.next(d)))}sendSelfSignUpInvitation(a,s){return this.httpClient.post(`${this.apiEndpointService.getFWSEndpoint()}/communities/v1/sites/${a}/self_sign_up`,s)}selfSignUpRegistration(a,s){return this.httpClient.post(`${this.apiEndpointService.getFWSEndpoint()}/communities/v1/sites/${a}/self_registration`,s)}checkIfSelfSignUpInvitationTokenIsValid(a,s){return this.httpClient.get(`${this.apiEndpointService.getFWSEndpoint()}/communities/v1/sites/${a}/self_sign_up/invitation/${s}`)}static{this.\u0275fac=function(s){return new(s||m)(u.KVO(E.Qq),u.KVO(v.J))}}static{this.\u0275prov=u.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})()}}]);

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.