1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2186],{72186:(w,p,i)=>{i.r(p),i.d(p,{EventRegistrationPageModule:()=>G});var h=i(56610),v=i(88832),d=i(77897),c=i(60564),u=i(73308),m=i(68255),g=i(3871),y=i(5060),t=i(23279),R=i(23700),P=i(62022),U=i(34390);function C(e,T){if(1&e&&t.nrm(0,"app-ticket_call_to_action",2),2&e){const a=t.XpG();t.Y8G("type",a.registration_type)("event_id",a.event_id)("action",a.action)("transaction_id",a.transaction_id)("invitation_code",a.invitation_code)("affiliate",a.affiliate)("referrer",a.referrer)}}const M=[{path:"",component:(()=>{class e{activatedRoute;modalController;session;events;api;common;router;event_id;registration_type;action;transaction_id;invitation_code;encrypted_data;affiliate;referrer;constructor(a,n,o,r,l,I,_){if(this.activatedRoute=a,this.modalController=n,this.session=o,this.events=r,this.api=l,this.common=I,this.router=_,this.event_id=this.activatedRoute.snapshot.params.event_id,this.registration_type=this.activatedRoute.snapshot.params.type,this.transaction_id=this.activatedRoute.snapshot.params.transaction_id,this.invitation_code=this.activatedRoute.snapshot.queryParams.invite,this.affiliate=this.activatedRoute.snapshot.queryParams.affiliate,null!=this.activatedRoute.snapshot.queryParams.affiliate&&""!=this.activatedRoute.snapshot.queryParams.affiliate.trim()&&(this.referrer=this.activatedRoute.snapshot.queryParams.affiliate),this.encrypted_data=this.activatedRoute.snapshot.params.encrypted_data,typeof this.encrypted_data<"u"){let f=this.common.decryptString(atob(this.encrypted_data)).split("|");this.event_id=f[0],this.transaction_id=f[1]}this.action=this.router.url.indexOf("/pay/")>=0?"pay":this.activatedRoute.snapshot.params.action,window.addEventListener("message",s=>{s&&s.data&&"tt_open_auth"==s.data.action&&this.loginUser(),s&&s.data&&"tt_show_backoffice"==s.data.action&&this.router.navigateByUrl("account",{replaceUrl:!1})},!1),r.subscribe("user:logout",s=>{window.parent.postMessage({action:"tt_invalid_auth"},"*")})}ngOnInit(){var a=this;return(0,u.A)(function*(){yield a.api.authCheck(),a.session.authed?window.parent.postMessage({action:"tt_valid_auth"},"*"):window.parent.postMessage({action:"tt_invalid_auth"},"*")})()}loginUser(){var a=this;return(0,u.A)(function*(n="login"){const o={};o.segment=n;const r=yield a.modalController.create({component:m.r,cssClass:"minimal slim stacked",componentProps:{params:o}});yield r.present(),r.onDidDismiss().then(l=>{"authed"==l.role?(window.parent.postMessage({action:"tt_valid_auth"},"*"),a.router.navigateByUrl("account",{replaceUrl:!1})):window.parent.postMessage({action:"tt_close_auth"},"*")})}).apply(this,arguments)}static \u0275fac=function(n){return new(n||e)(t.rXU(c.nX),t.rXU(d.W3),t.rXU(R.Q),t.rXU(P.s),t.rXU(y.G),t.rXU(g.h),t.rXU(c.Ix))};static \u0275cmp=t.VBU({type:e,selectors:[["app-registration"]],decls:2,vars:2,consts:[[3,"fullscreen"],[3,"type","event_id","action","transaction_id","invitation_code","affiliate","referrer",4,"ngIf"],[3,"type","event_id","action","transaction_id","invitation_code","affiliate","referrer"]],template:function(n,o){1&n&&(t.j41(0,"ion-content",0),t.DNE(1,C,1,7,"app-ticket_call_to_action",1),t.k0s()),2&n&&(t.Y8G("fullscreen",!0),t.R7$(),t.Y8G("ngIf",o.event_id&&"auth"!=o.event_id))},dependencies:[h.bT,d.W9,U.z],styles:["ion-content[_ngcontent-%COMP%]{--background: transparent}"]})}return e})()}];let E=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=t.$C({type:e});static \u0275inj=t.G2t({imports:[c.iI.forChild(M),c.iI]})}return e})();var X=i(55553);let G=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=t.$C({type:e});static \u0275inj=t.G2t({imports:[h.MD,v.YN,d.bv,X.h,E]})}return e})()}}]);
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.