PageSourceSearch

https://app.solargrade.io/chunk-NZ22M2KO.js

js solargrade.io collected 2026-10-06 00:08:14 UTC 8,051 bytes, 7 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4cb1a4b5-b250-50e4-973f-28f93b1424ea")}catch(e){}}();
3import"./chunk-A3QLADYA.js";import{c as O}from"./chunk-WIZLSDTG.js";import"./chunk-7BKCVMRQ.js";import{j as G,l as V}from"./chunk-3PMVYPJQ.js";import{d as z}from"./chunk-3K4WZAWF.js";import"./chunk-UYLQ3OY7.js";import"./chunk-B727BMGO.js";import"./chunk-36JHU3BF.js";import"./chunk-Z4ED5TZZ.js";import"./chunk-N246QHVE.js";import"./chunk-R5EVQB5M.js";import"./chunk-WYMDM7MB.js";import"./chunk-GVP6ZRZW.js";import"./chunk-PDQHJCLZ.js";import{b as F,c as A}from"./chunk-ZQUVSTHF.js";import{j as C}from"./chunk-5O4F43BT.js";import"./chunk-JEPNNLYQ.js";import"./chunk-VGECNJJM.js";import"./chunk-VRT4WGG5.js";import"./chunk-YB3OZYQK.js";import"./chunk-M4CEEWY2.js";import"./chunk-WQZ3B64Y.js";import"./chunk-B3GNMMJB.js";import"./chunk-GDNGU2RO.js";import"./chunk-65AYGFNB.js";import"./chunk-VF7CC6I7.js";import"./chunk-QFOH3KIF.js";import{F as D,d as p,h as U,l as f,o as M,r as N}from"./chunk-ZAYOXBIF.js";import"./chunk-SMMPAGO7.js";import{e as T}from"./chunk-PCAAZNPY.js";import"./chunk-MX3JKZLF.js";import"./chunk-VKQPNROJ.js";import"./chunk-7PDKWBYD.js";import"./chunk-EN4KOLOJ.js";import"./chunk-DKHGH7UZ.js";import"./chunk-VGG2OZEK.js";import{O as E}from"./chunk-BDOE5HLI.js";import"./chunk-DXMDG2Y4.js";import{g as R}from"./chunk-6G22YQ2U.js";import{e as q}from"./chunk-XU24CCWT.js";import{l as P,s as B}from"./chunk-T2BNH2KH.js";import"./chunk-I33Q5BN7.js";import{r as S}from"./chunk-QTMQDLSK.js";import{Fc as L,H as b,Jc as m,Ka as x,Nb as I,Rb as w,Vc as s,Xc as l,hd as k,ic as o,nd as i,od as r,ta as v,ub as h,uc as n,v as y,vc as g,wc as u,yb as t}from"./chunk-T4JZ3Y2O.js";import"./chunk-PJTPHIGB.js";import"./chunk-2OY4FR2S.js";import"./chunk-OWGVMWBL.js";import"./chunk-BKGEFWZG.js";import"./chunk-UDWKKBYT.js";var Y=()=>["/auth/login"],me=(()=>{class c extends G{constructor(){super(...arguments),this.settings=v(R),this.route=v(P),this.isLoading$=this.store.select(A.getRequestProgress(F.Register)).pipe(y(e=>e===E.InProgress)),this.validationMessagesConfig={first_name:{required:{type:"required"},maxlength:{type:"maxlength",interpolateParams:{maxLength:200}}},last_name:{required:{type:"required"},maxlength:{type:"maxlength",interpolateParams:{maxLength:200}}},email:{required:{type:"required"},email:{type:"email"},maxlength:{type:"maxlength",interpolateParams:{maxLength:200}}},password1:{required:{type:"required"},maxlength:{type:"maxlength",interpolateParams:{maxLength:200}}},password2:{required:{type:"required"},maxlength:{type:"maxlength",interpolateParams:{maxLength:200}}}}}initFormModel(){return this.fb.group({first_name:new f("",{validators:[p.required,p.maxLength(200)],nonNullable:!0}),last_name:new f("",{validators:[p.required,p.maxLength(200)],nonNullable:!0}),email:new f("",{validators:[p.required,p.email,p.maxLength(200)],nonNullable:!0}),password1:new f("",{validators:[p.required,p.maxLength(200)],nonNullable:!0}),password2:new f("",{validators:[p.required,p.maxLength(200)],nonNullable:!0}),key:new f(null)})}ngOnInit(){super.ngOnInit(),this.subscription.add(this.route.queryParams.pipe(y(e=>this.getInvitationDataFromQueryParams(e)),b(e=>!!e)).subscribe(e=>{this.form.patchValue({email:e.email,key:e.key})}))}getInvitationDataFromQueryParams(e){if(!e?.redirect||typeof e.redirect!="string")return null;let d=e.redirect;if(d){let _=decodeURIComponent(d).split("/spaces/invites/")?.[1];if(!_)return null;let[Q,W]=_.split("?email=");return{email:W||"",key:Q||null}}return null}onSubmit(){if(this.form.valid){let e=this.form.getRawValue(),d={first_name:e.first_name,last_name:e.last_name,email:e.email,password1:e.password1,password2:e.password2};e.key&&(d.key=e.key),this.store.dispatch(new C(d))}else z(this.form),super.submitForm()}static{this.\u0275fac=(()=>{let e;return function(a){return(e||(e=x(c)))(a||c)}})()}static{this.\u0275cmp=I({type:c,selectors:[["sg-registration"]],features:[w],decls:50,vars:76,consts:[[1,"auth-page-container"],["loadingType","linear","loadingStrategy","overlay",3,"isLoading"],[1,"auth-page-content","auth-page-form",3,"ngSubmit","formGroup"],[1,"auth-page-header"],["src","/assets/img/logo.svg","alt","",1,"auth-page-header-logo"],[1,"auth-page-header-block"],[1,"auth-page-header-title"],[1,"auth-page-form-fields-wrapper"],["name","first_name",3,"label","errors","form","placeholder"],["name","last_name",3,"label","errors","form","placeholder"],["name","email","inputType","email",3,"label","errors","form","placeholder"],["name","password1",3,"label","errors","form","hint"],["name","password2",3,"label","errors","form"],[1,"notice"],["target","_blank",3,"href"],["type","submit",1,"sg-btn","sg-btn--solid-primary","sg-btn--lg","full-width"],[1,"auth-page-footer-text"],["queryParamsHandling","preserve",1,"sg-link-btn",3,"routerLink"]],template:function(d,a){d&1&&(n(0,"div",0)(1,"sg-loading-wrapper",1),i(2,"async"),n(3,"form",2),L("ngSubmit",function(){return a.onSubmit()}),n(4,"div",3),u(5,"img",4),n(6,"div",5)(7,"h1",6),s(8),i(9,"translate"),g()()(),n(10,"div",7),u(11,"sg-input-block-text",8),i(12,"translate"),i(13,"translate"),u(14,"sg-input-block-text",9),i(15,"translate"),i(16,"translate"),u(17,"sg-input-block-text",10),i(18,"translate"),i(19,"translate"),u(20,"sg-input-block-password",11),i(21,"translate"),i(22,"translate"),u(23,"sg-input-block-password",12),i(24,"translate"),n(25,"p",13),s(26),i(27,"translate"),n(28,"a",14),s(29),i(30,"translate"),g(),s(31),i(32,"translate"),n(33,"a",14),s(34),i(35,"translate"),g(),s(36),i(37,"translate"),n(38,"a",14),s(39),i(40,"translate"),g()(),n(41,"button",15),s(42),i(43,"translate"),g()(),n(44,"p",16),s(45),i(46,"translate"),n(47,"a",17),s(48),i(49,"translate"),g()()()()()),d&2&&(t(),o("isLoading",r(2,35,a.isLoading$)),t(2),o("formGroup",a.form),t(5),l(" ",r(9,37,"pages.auth.registration_page.header_text")," "),t(3),m("label",r(12,39,"form_field_names.first_name")),m("placeholder",r(13,41,"form_field_placeholders.first_name")),o("errors",a.formErrors)("form",a.form),t(3),m("label",r(15,43,"form_field_names.last_name")),m("placeholder",r(16,45,"form_field_placeholders.last_name")),o("errors",a.formErrors)("form",a.form),t(3),m("label",r(18,47,"form_field_names.email")),m("placeholder",r(19,49,"form_field_placeholders.email")),o("errors",a.formErrors)("form",a.form),t(3),m("label",r(21,51,"form_field_names.password")),m("hint",r(22,53,"pages.auth.registration_page.password_hint")),o("errors",a.formErrors)("form",a.form),t(3),m("label",r(24,55,"pages.auth.registration_page.confirm_password_field")),o("errors",a.formErrors)("form",a.form),t(3),l(" ",r(27,57,"pages.auth.registration_page.legal_text")," "),t(2),o("href",a.settings.PRIVACY_POLICY_PAGE_URL,h),t(),l(" ",r(30,59,"common_labels.privacy_policy")," "),t(2),l(" ",r(32,61,"common_labels.ampersand")," "),t(2),o("href",a.settings.TERMS_OF_SERVICE_PAGE_URL,h),t(),l(" ",r(35,63,"common_labels.terms_of_use")," "),t(2),l(" ",r(37,65,"common_labels.ampersand")," "),t(2),o("href",a.settings.EULA_PAGE_URL,h),t(),l(" ",r(40,67,"common_labels.eula")," "),t(3),l(" ",r(43,69,"pages.auth.registration_page.get_started_button")," "),t(3),l(" ",r(46,71,"pages.auth.registration_page.have_account")," "),t(2),o("routerLink",k(75,Y)),t(),l(" ",r(49,73,"pages.auth.registration_page.login_link")," "))},dependencies:[S,D,M,U,N,V,O,q,T,B],styles:[`.notice[_ngcontent-%COMP%]{font-size:var(--sg-typography-font-size-xs);line-height:var(--sg-typography-line-height-xs);font-weight:500;color:var(--sg-color-fg-neutral-primary)}.notice[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:underline}
4/*# sourceMappingURL=registration.component-UA6E4TTK.css.map */`],changeDetection:0})}}return c})();export{me as RegistrationComponent};
5//# sourceMappingURL=chunk-NZ22M2KO.js.map
6
7//# debugId=4cb1a4b5-b250-50e4-973f-28f93b1424ea

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.