1import{a as fe,b as he}from"./chunk-NWQUEBY6.js";import{c as R}from"./chunk-LRD7JII3.js";import{c as ue}from"./chunk-57ORNDLE.js";import{$ as y,Db as K,Eb as Q,G as b,Gb as X,H as a,Hb as Z,I as f,Ib as ee,Jb as te,Kb as ie,L as M,Lb as re,M as A,O as u,Q as o,T as t,Tb as ae,U as e,Ub as ne,V as d,Zb as oe,_ as I,ba as S,g as E,ha as i,hb as T,ia as v,ib as V,ja as L,jb as z,kb as B,nb as w,oa as x,ob as $,p as k,pb as j,qa as _,qb as l,ra as g,rb as U,rc as me,sb as G,sc as le,t as N,tb as O,tc as pe,ua as F,vb as H,vc as de,wb as W,wc as se,xa as q,xb as Y,xc as ce,ya as D,za as P,zb as J}from"./chunk-VKIDN44N.js";var ve=r=>["/profile",r],xe=r=>["/evaluate",r];function Ce(r,n){if(r&1&&(t(0,"h2",30),d(1,"br-user",31),i(2," Participation"),e()),r&2){let m=n.$implicit;a(),o("user",m)}}function Ee(r,n){r&1&&(t(0,"h2",30),i(1,"Participation"),e())}function Ie(r,n){if(r&1&&(t(0,"mat-list",32)(1,"mat-list-item"),i(2,"E-mail:\xA0"),t(3,"a",33),i(4),e()(),t(5,"mat-list-item"),i(6,"Phone:\xA0"),t(7,"a",34),i(8),e()()()),r&2){let m=n.$implicit;a(3),S("href","mailto:",m.email,"",b),a(),v(m.email),a(3),o("routerLink",x(5,ve,m.id)),a(),v(m.phone)}}function ye(r,n){if(r&1&&(t(0,"mat-list",32)(1,"mat-list-item"),i(2,"Supporter:\xA0"),d(3,"br-user",31),e(),t(4,"mat-list-item"),i(5,"E-mail:\xA0"),t(6,"a",33),i(7),e()(),t(8,"mat-list-item"),i(9,"Phone:\xA0"),t(10,"a",34),i(11),e()()()),r&2){let m=n.$implicit;a(3),o("user",m),a(3),S("href","mailto:",m.email,"",b),a(),v(m.email),a(3),o("routerLink",x(6,ve,m.id)),a(),v(m.phone)}}function ke(r,n){if(r&1&&(t(0,"mat-option",35),i(1),e()),r&2){let m=n.$implicit;o("value",m),a(),v(m)}}function Ne(r,n){r&1&&(t(0,"mat-form-field")(1,"mat-label"),i(2,"Aero-Club Sports License ID"),e(),d(3,"input",36),t(4,"mat-hint"),i(5,"Your need a sports license of the Austrian Aero-Club to take part in the \xD6sterreichische Meisterschaft im Hike&Fly. This is your 10 digit membership (Sportlizenz) number."),e()())}function Me(r,n){if(r&1&&(t(0,"mat-error"),i(1),e()),r&2){let m=y();a(),L(" ",m.form.errors.backend," ")}}function Ae(r,n){if(r&1&&(t(0,"mat-card-actions")(1,"button",37),i(2,"Save"),e(),i(3,"\xA0 "),t(4,"a",38),i(5,"Evaluate"),e()()),r&2){let m=y();a(),o("disabled",m.form.invalid),a(3),o("routerLink",x(2,xe,m.id))}}var _e=(()=>{let n=class n{constructor(s,c,p,C,ge,be){this.route=s,this.router=c,this.backendService=p,this.formBuilder=C,this.changeDetectorRef=ge,this.dialog=be,this.shirt_sizes=ue,this.athlete$=new E(null),this.supporter$=new E(null),this.route.paramMap.pipe(k(h=>this.backendService.getEditParticipation(this.id=+h.get("id")))).subscribe(h=>{this.race=h.race,this.athlete$.next(h.athlete),this.supporter$.next(h.supporter),this.form.patchValue(h)}),this.createForm()}createForm(){this.form=this.formBuilder.group({supporter_email:["",l.email],glider_brand:["",[l.required,l.minLength(2)]],glider_model:["",[l.required,l.minLength(2)]],glider_color:["",[l.required,l.minLength(2)]],sponsor:"",rookie:!1,fun:!1,tandem:!1,unsupported:!1,masterclass:!1,austrian_championship:!1,iphone:!1,insurance:["",[l.required,l.minLength(3)]],shirt_size:["",l.required],civl_id:["",[l.required,l.pattern("^[1-9][0-9]*$")]],license_id:["",l.required],aeroclub_id:"",paid:!1,waiting_list:!1,wild_card:!1,canceled:!1,signed_in:!1,comment:"",tracker:null,pin:null}),this.form.get("austrian_championship").valueChanges.subscribe(s=>{this.form.get("austrian_championship").value?this.form.get("aeroclub_id").setValidators([l.required,l.pattern("^[1-9][0-9]{9}")]):(this.form.get("aeroclub_id").clearValidators(),this.form.get("aeroclub_id").setValue("")),this.form.get("aeroclub_id").updateValueAndValidity()})}onSubmit(){let s=this.form.getRawValue();s.id=this.id,this.backendService.updateParticipation(s).subscribe(()=>this.router.navigate(["/race",this.race]),c=>{console.log(c),this.backendService.handleBackendFormErrors(c,this.form,this.changeDetectorRef)})}addSupporter(){this.dialog.open(fe,{data:{email:this.form.getRawValue().supporter_email}}).afterClosed().subscribe(s=>{s&&this.form.patchValue({supporter_email:s.email})})}};n.\u0275fac=function(c){return new(c||n)(f(pe),f(de),f($),f(J),f(F),f(R))},n.\u0275cmp=M({type:n,selectors:[["br-participation"]],standalone:!1,decls:107,vars:26,consts:[["novalidate","",3,"ngSubmit","formGroup"],["mat-card-title","",4,"ngIf"],["dense","",4,"ngIf"],["matInput","","formControlName","supporter_email"],["mat-button","","type","button",3,"click"],["matInput","","formControlName","glider_brand",3,"required"],["matInput","","formControlName","glider_model",3,"required"],["matInput","","formControlName","glider_color",3,"required"],["matInput","","formControlName","sponsor"],["matInput","","formControlName","insurance",3,"required"],["matInput","","formControlName","civl_id"],["target","_blank","rel","noopener noreferrer",3,"href"],["href","https://civlcomps.org/sign-up","target","_blank","rel","noopener noreferrer"],["matInput","","formControlName","license_id"],["formControlName","shirt_size",3,"required"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","tracker"],["matInput","","matTextareaAutosize","","matAutosizeMinRows","3","matAutosizeMaxRows","10","formControlName","comment"],["formControlName","rookie"],["formControlName","fun"],["formControlName","tandem"],["formControlName","unsupported"],["formControlName","masterclass"],["formControlName","austrian_championship"],[4,"ngIf"],["formControlName","paid"],["formControlName","waiting_list"],["formControlName","wild_card"],["formControlName","canceled"],["formControlName","signed_in"],["mat-card-title",""],[3,"user"],["dense",""],[3,"href"],[3,"routerLink"],[3,"value"],["matInput","","formControlName","aeroclub_id"],["mat-raised-button","","color","primary","type","submit",3,"disabled"],["mat-raised-button","",3,"routerLink"]],template:function(c,p){c&1&&(t(0,"form",0),I("ngSubmit",function(){return p.onSubmit()}),t(1,"mat-card"),u(2,Ce,3,1,"h2",1),_(3,"async"),u(4,Ee,2,0,"h2",1),_(5,"async"),t(6,"mat-card-content"),u(7,Ie,9,7,"mat-list",2),_(8,"async"),u(9,ye,12,8,"mat-list",2),_(10,"async"),t(11,"mat-form-field")(12,"mat-label"),i(13,"Supporter e-mail address"),e(),d(14,"input",3),e(),t(15,"button",4),I("click",function(){return p.addSupporter()}),i(16,"Add Account"),e(),t(17,"mat-form-field")(18,"mat-label"),i(19,"Glider brand"),e(),d(20,"input",5),e(),t(21,"mat-form-field")(22,"mat-label"),i(23,"Glider model"),e(),d(24,"input",6),e(),t(25,"mat-form-field")(26,"mat-label"),i(27,"Glider color"),e(),d(28,"input",7),e(),t(29,"mat-form-field")(30,"mat-label"),i(31,"Sponsor"),e(),d(32,"input",8),e(),t(33,"mat-form-field")(34,"mat-label"),i(35,"Insurance"),e(),d(36,"input",9),e(),t(37,"mat-form-field")(38,"mat-label"),i(39,"CIVL ID"),e(),d(40,"input",10),t(41,"mat-hint"),i(42,"Click "),t(43,"a",11),i(44,"here"),e(),i(45," to check if the ID is correct and it leads to your CIVL profile. If you don't have a CIVL ID yet, you can register one "),t(46,"a",12),i(47,"here"),e(),i(48,"."),e()(),t(49,"mat-form-field")(50,"mat-label"),i(51,"Pilot License ID"),e(),d(52,"input",13),t(53,"mat-hint"),i(54,"Your pilot's license needs to be equivalent to IPPI
1Level 5 (Austria: \xDCberlandberechtigung). It will be checked at the registration."),e()(),t(55,"mat-form-field")(56,"mat-label"),i(57,"T-shirt size"),e(),t(58,"mat-select",14),u(59,ke,2,2,"mat-option",15),e()(),t(60,"mat-form-field")(61,"mat-label"),i(62,"Livetracker"),e(),d(63,"input",16),t(64,"mat-hint"),i(65,"Number of the Live Tracker."),e()(),t(66,"mat-form-field")(67,"mat-label"),i(68,"Comments"),e(),d(69,"textarea",17),e(),t(70,"div")(71,"mat-checkbox",18),i(72,"Rookie"),e()(),t(73,"div")(74,"mat-checkbox",19),i(75,"Fun (EN-A or EN-B glider)"),e()(),t(76,"div")(77,"mat-checkbox",20),i(78,"Tandem"),e()(),t(79,"div")(80,"mat-checkbox",21),i(81,"Unsupported"),e()(),t(82,"div")(83,"mat-checkbox",22),i(84,"Masterclass (Age 50+)"),e()(),t(85,"div")(86,"mat-checkbox",23),i(87,"\xD6sterreichische Meisterschaft im Hike&Fly (Austrians only)"),e()(),u(88,Ne,6,0,"mat-form-field",24),t(89,"div")(90,"mat-checkbox",25),i(91,"Paid"),e()(),t(92,"div")(93,"mat-checkbox",26),i(94,"Waiting List"),e()(),t(95,"div")(96,"mat-checkbox",27),i(97,"Wild card"),e()(),t(98,"div")(99,"mat-checkbox",28),i(100,"Canceled"),e()(),t(101,"div")(102,"mat-checkbox",29),i(103,"Signed in"),e()(),u(104,Me,2,1,"mat-error",24),e(),u(105,Ae,6,4,"mat-card-actions",24),_(106,"async"),e()()),c&2&&(o("formGroup",p.form),a(2),o("ngIf",g(3,16,p.athlete$)),a(2),o("ngIf",!g(5,18,p.athlete$)),a(3),o("ngIf",g(8,20,p.athlete$)),a(2),o("ngIf",g(10,22,p.supporter$)),a(11),o("required",!0),a(4),o("required",!0),a(4),o("required",!0),a(8),o("required",!0),a(7),S("href","https://civlcomps.org/pilot/",p.form.get("civl_id").value,"",b),a(15),o("required",!0),a(),o("ngForOf",p.shirt_sizes),a(29),o("ngIf",p.form.get("austrian_championship").value),a(16),o("ngIf",p.form.hasError("backend")),a(),o("ngIf",g(106,24,p.athlete$)))},dependencies:[se,q,D,O,j,U,G,Y,H,W,Q,K,ie,w,V,B,z,re,oe,T,X,te,ee,Z,ae,ne,me,P],encapsulation:2,changeDetection:0});let r=n;return r})();var rt=(()=>{let n=class n{};n.\u0275fac=function(c){return new(c||n)},n.\u0275mod=A({type:n}),n.\u0275inj=N({imports:[he,ce.forChild([{path:":id",component:_e}]),le]});let r=n;return r})();export{rt as ParticipationModule};
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.