1import{a as O}from"./chunk-37SR7CH4.js";import{b as Ct,e as Tt,f as Et,g as Lt,h as wt}from"./chunk-FBBP75RW.js";import"./chunk-F3AWH6HK.js";import"./chunk-5JGV2R7G.js";import"./chunk-JJQ3SAF4.js";import"./chunk-MXRO5YKQ.js";import"./chunk-WUXE5G2M.js";import"./chunk-WS5IS3UF.js";import"./chunk-NREWKZHS.js";import"./chunk-OGPCZA4S.js";import"./chunk-NII3ONC2.js";import"./chunk-FGXNUQX4.js";import"./chunk-JVRNJPL7.js";import"./chunk-7KGU3KC6.js";import"./chunk-25YTDFSJ.js";import"./chunk-LO5GPMW5.js";import"./chunk-NKJNLA4H.js";import"./chunk-WDIOLPZ2.js";import{a as Q,b as Pt,c as W,d as $t}from"./chunk-X6WED2AZ.js";import"./chunk-HB4JGH6L.js";import"./chunk-H4EPMV5Z.js";import"./chunk-TMOWVKQC.js";import"./chunk-MYI3YS2M.js";import{a as h,b as R,k as j,m as n,n as xt,q as yt,r as b,s as At}from"./chunk-JN6AA4VD.js";import"./chunk-UZY2R5Q5.js";import"./chunk-5GAGQHFR.js";import"./chunk-3PGMBZAP.js";import{a as Dt}from"./chunk-FQFO62CD.js";import"./chunk-VT7CJSCD.js";import"./chunk-G27UVVZT.js";import{a as Mt}from"./chunk-PNYSZFNB.js";import"./chunk-Y3MTRBLK.js";import"./chunk-XMBPLYUK.js";import"./chunk-QRMJLQVM.js";import"./chunk-24HYNKH3.js";import{f as It}from"./chunk-DE65ZGA7.js";import{a as _t}from"./chunk-65I45D2I.js";import"./chunk-GZL4NBTB.js";import"./chunk-OMIAKVTT.js";import"./chunk-3XCK7DOC.js";import"./chunk-PJWNDC7A.js";import"./chunk-QDFFLVTB.js";import"./chunk-JIVZONLP.js";import"./chunk-S43ITSQ5.js";import{e as Ft,k as K}from"./chunk-5FWAKVG3.js";import{k as vt,q as ht,u as Rt,z as bt}from"./chunk-KAXBUATZ.js";import{Cc as I,Cd as v,Dc as A,Ea as L,Ec as _,Fa as S,Fc as lt,Ia as F,Jb as w,Jd as d,Kd as u,Oc as mt,P as H,Pd as gt,Sa as nt,Ta as at,Vc as dt,Wb as x,Xa as pt,Xc as k,bc as ct,cc as y,fd as ut,g as it,gc as U,hd as ft,i as ot,jd as J,s as q,ta as X,va as g,ve as St,ya as rt,z}from"./chunk-XW6AEKHB.js";import{a as r,b as f}from"./chunk-6G35VSEK.js";var P=h("[RSVP Page] Load Default Settings",R()),N=h("[RSVP Page] Load Default Settings Success",R()),D=h("[RSVP Page] Load Default Settings Failure",R()),$=h("[RSVP Page] Send RSVP Response",R()),B=h("[RSVP Page] Send RSVP Response Success",R()),V=h("[RSVP Page] Send RSVP Response Failure",R());var a=xt("rsvpPage"),Ut=n(a,t=>t.branding),kt=n(a,t=>t.formFields),jt=n(a,t=>t.declineForm),Ot=n(a,t=>t.customAttributes),Nt=n(a,t=>t.registrationAttributes),Bt=n(a,t=>t.loading),Vt=n(a,t=>t.submitting),Gt=n(a,t=>t.submitResult),Yt=n(a,t=>t.error),G=n(a,t=>t.formData),qt=n(a,t=>t.inviteId),tt=n(a,t=>t.platformTerms),et=n(a,t=>t.platformPrivacy),st=n(a,t=>t.customTerms),zt=n(a,t=>t.aboutUs),Ht=n(a,t=>t.marketingUpdates),me=n(tt,et,st,(t,p,e)=>({platformTerms:t,platformPrivacy:p,customTerms:e}));var se=()=>({}),M=()=>[];function ie(t,p){t&1&&(A(0,"div",5)(1,"div",6)(2,"output",7),J(3,"Loading..."),_()()())}function oe(t,p){t&1&&(A(0,"div",8),lt(1,"img",9),A(2,"div",10)(3,"output",7),J(4,"Loading..."),_()()())}function re(t,p){if(t&1&&(A(0,"div",2),U(1,ie,4,0,"div",3)(2,oe,5,0,"div",4),_()),t&2){let e=k();ft("lenovo-360-accelerate-na-2026",e.bespoke.isLenovo360AccelerateNa26),w(),I("ngIf",!e.bespoke.isLenovo360AccelerateNa26),w(),I("ngIf",e.bespoke.isLenovo360AccelerateNa26)}}function ne(t,p){if(t&1){let e=mt();A(0,"div",11)(1,"div",12)(2,"app-rsvp-form",13),d(3,"async"),d(4,"async"),d(5,"async"),d(6,"async"),d(7,"async"),d(8,"async"),d(9,"async"),d(10,"async"),dt("responseSubmitted",function(m){nt(e);let c=k();return at(c.handleRsvpResponse(m))}),_()()()}if(t&2){let e=k();w(2),I("branding",e.branding||v(32,se))("formFields",e.formFields||v(33,M))("declineForm",e.declineForm||v(34,M))("customAttributes",e.customAttributes||v(35,M))("registrationAttributes",e.registrationAttributes||v(36,M))("editMode",!0)("submitting",u(3,16,e.submitting$))("activeTab",e.activeTab$)("formData",u(4,18,e.formData$))("errorMessage",u(5,20,e.errorMessage$))("showDeclineButton",!!e.inviteId)("platformTerms",u(6,22,e.platformTerms$))("platformPrivacy",u(7,24,e.platformPrivacy$))("customTerms",u(8,26,e.customTerms$)||v(37,M))("aboutUs",u(9,28,e.aboutUs$))("marketingUpdates",u(10,30,e.marketingUpdates$))}}var Y=(()=>{class t{constructor(e,s,m,c,l){this.store=e,this.route=s,this.toast=m,this.bespoke=c,this._document=l,this.activeTab$=new ot("main"),this.formSubmitted=!1,this.inviteId=null,this.destroy$=new it}ngOnInit(){this.branding$=this.store.select(Ut),this.formFields$=this.store.select(kt),this.declineForm$=this.store.select(jt),this.customAttributes$=this.store.select(Ot),this.registrationAttributes$=this.store.select(Nt),this.loading$=this.store.select(Bt),this.submitting$=this.store.select(Vt),this.submitResult$=this.store.select(Gt),this.formData$=this.store.select(G),this.errorMessage$=this.store.select(Yt),this.platformTerms$=this.store.select(tt),this.platformPrivacy$=this.store.select(et),this.customTerms$=this.store.select(st),this.aboutUs$=this.store.select(zt),this.marketingUpdates$=this.store.select(Ht),this.branding$.pipe(g(this.destroy$)).subscribe(e=>{this.branding=e,this._document.getElementById("appIcon")?.setAttribute("href",e?.favicon??"favicon.ico")}),this.formFields$.pipe(g(this.destroy$)).subscribe(e=>this.formFields=e),this.declineForm$.pipe(g(this.destroy$)).subscribe(e=>this.declineForm=e),this.customAttributes$.pipe(g(this.destroy$)).subscribe(e=>this.customAttributes=e),this.errorMessage$.pipe(g(this.destroy$)).subscribe(e=>{e==="PAGE_CLOSED"?this.activeTab$.next("closedMessage"):e&&this.activeTab$.next("errorMessage")}),this.registrationAttributes$.pipe(g(this.destroy$)).subscribe(e=>this.registrationAttributes=e),this.submitResult$.pipe(g(this.destroy$)).subscribe(e=>{if(!e)return;let s=e?.error,m=e?.success===0||e?.success===!1||!!s,c=e?.message&&e?.code;if(m||c){let l=s?.message??e?.message??"Could not submit your response. Please try again.";this.toast.showDanger("Failed to submit response",l),this.formSubmitted=!1;return}this.formSubmitted&&this.activeTab$.next("successMessage")}),this.route.paramMap.pipe(g(this.destroy$)).subscribe(e=>{this.inviteId=e.get("id"),this.loadDefaultSettings()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}loadDefaultSettings(){this.store.dispatch(P({inviteId:this.inviteId}))}
1handleRsvpResponse(e){let s=this.route.snapshot.queryParamMap.get("lang")||"";this.formSubmitted=!0,this.store.dispatch($({response:f(r({},e),{lang:s})}))}static{this.\u0275fac=function(s){return new(s||t)(x(j),x(Ft),x(Mt),x(Dt),x(pt))}}static{this.\u0275cmp=ct({type:t,selectors:[["app-rsvp-external"]],decls:4,vars:4,consts:[["loadedContent",""],["class","loading-container",3,"lenovo-360-accelerate-na-2026",4,"ngIf","ngIfElse"],[1,"loading-container"],["class","spinner-container",4,"ngIf"],["class","bespoke-loader",4,"ngIf"],[1,"spinner-container"],[1,"spinner-border","text-primary"],[1,"visually-hidden"],[1,"bespoke-loader"],["src","assets/images/LenovoLogo-POS-Red.png","alt","Lenovo Logo"],[1,"spinner-border","text-light","mt-3"],[1,"rsvp-page-wrapper"],[1,"rsvp-page-content"],[3,"responseSubmitted","branding","formFields","declineForm","customAttributes","registrationAttributes","editMode","submitting","activeTab","formData","errorMessage","showDeclineButton","platformTerms","platformPrivacy","customTerms","aboutUs","marketingUpdates"]],template:function(s,m){if(s&1&&(U(0,re,3,4,"div",1),d(1,"async"),U(2,ne,11,38,"ng-template",null,0,gt)),s&2){let c=ut(3);I("ngIf",u(1,2,m.loading$))("ngIfElse",c)}},dependencies:[vt,O,It,ht],styles:['@charset "UTF-8";.rsvp-page-wrapper[_ngcontent-%COMP%], .rsvp-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.rsvp-page-content[_ngcontent-%COMP%] app-page-wrapper .page-wrapper.full-height{height:auto;min-height:100vh;overflow:visible}.rsvp-page-content[_ngcontent-%COMP%] app-page-wrapper .content-container{overflow:visible;padding-bottom:0!important}.loading-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:300px;width:100%;height:100%}.loading-container[_ngcontent-%COMP%] .spinner-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px}.loading-container.lenovo-360-accelerate-na-2026[_ngcontent-%COMP%]{background:#1e0013;min-height:100vh;position:fixed;inset:0;z-index:9999}.loading-container.lenovo-360-accelerate-na-2026[_ngcontent-%COMP%] .bespoke-loader[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.loading-container.lenovo-360-accelerate-na-2026[_ngcontent-%COMP%] .bespoke-loader[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:flex;margin-right:auto;margin-left:auto;margin-bottom:30px;max-width:260px;width:100%}']})}}return t})();var ae=[...["",":id"].map(t=>({path:t,component:Y}))],Xt=(()=>{class t{static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275mod=y({type:t})}static{this.\u0275inj=S({imports:[K.forChild(ae),K]})}}return t})();var Jt=(()=>{class t{constructor(e){this.http=e,this.apiEndpoint="core",this.apiUrl=_t.api}getSettings(e){return this.http.get(`${this.apiUrl}/${this.apiEndpoint}/rsvp${this.generateInviteIdParam(e)}`)}sendRsvpResponse(e,s){return this.http.post(`${this.apiUrl}/${this.apiEndpoint}/rsvp/response${this.generateInviteIdParam(s)}`,e)}generateInviteIdParam(e){return e?`?inviteId=${e}`:""}static{this.\u0275fac=function(s){return new(s||t)(F(St))}}static{this.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Kt=(()=>{class t{constructor(e,s,m){this.actions$=e,this.rsvpService=s,this.store=m,this.loadDefaultSettings$=Q(()=>this.actions$.pipe(W(P),X(({inviteId:c})=>this.rsvpService.getSettings(c).pipe(z(l=>{let i=l?.data??{};if(i){let o=i?.settings?.value?.branding??r({},Et);i?.default&&(o.eventTitle=i?.default.eventName??o?.eventTitle,o.eventLogo=i?.default.logo,o.favicon=i?.default?.favicon??o?.favicon,o.colors.primary=Tt(i?.default.brandingColors)??o?.colors?.primary,o.backgroundImage=i?.default?.backgroundImage,o.backgroundImage&&(o.backgroundType="image"),o.fontData=i?.default?.eventCustomFont,o.font=i?.default?.eventCustomFont?.name??i?.default?.eventFont??"Nunito");let T=l.code==="PAGE_CLOSED",E=["INVALID_INVITE_ID","RESPONSE_ALREADY_EXISTS","INTERNAL_ERROR","PRIVATE_ONLY"].includes(l.code);return N({branding:o,formFields:i?.settings?.value?.formFields??Lt,declineForm:i?.settings?.value?.declineForm??wt,customAttributes:i?.customAttributes??[],registrationAttributes:i?.registrationAttributes??{},platformTerms:i?.platformTerms??null,platformPrivacy:i?.platformPrivacy??null,customTerms:i?.customTerms??[],aboutUs:i?.aboutUs??null,marketingUpdates:i?.marketingUpdates??null,formData:i?.formData??null,errorMessage:T?"PAGE_CLOSED":E?l.message:null})}else return D({error:"No settings found"})}),H(l=>q(D({error:l.message??"Failed to load default settings"}))))))),this.sendRsvpResponse$=Q(()=>this.actions$.pipe(W($),rt(this.store.select(qt),this.store.select(G)),X(([{response:c},l,{email:i}])=>(!c?.email&&i&&(c.email=i),this.rsvpService.sendRsvpResponse(c,l).pipe(z(o=>B({result:o})),H(o=>q(V({error:o.message??"Failed to send RSVP response"}))))))))}static{this.\u0275fac=function(s){return new(s||t)(F(Pt),F(Jt),F(j))}}static{this.\u0275prov=L({token:t,factory:t.\u0275fac})}}return t})();var Qt=At(Ct,b(P,(t,{inviteId:p})=>f(r({},t),{loading:!0,error:null,inviteId:p})),b(N,(t,{branding:p,formFields:e,declineForm:s,customAttributes:m,registrationAttributes:c,platformTerms:l,platformPrivacy:i,customTerms:o,aboutUs:T,marketingUpdates:E,formData:Zt,errorMessage:te})=>f(r({},t),{branding:r({},p),formFields:[...e],declineForm:[...s],customAttributes:[...m],registrationAttributes:r({},c),platformTerms:l?r({},l):null,platformPrivacy:i?r({},i):null,customTerms:[...o],aboutUs:T?r({},T):null,marketingUpdates:E?r({},E):null,loading:!1,formData:r({},Zt),error:te})),b(D,(t,{error:p})=>f(r({},t),{loading:!1,error:p})),b($,t=>f(r({},t),{error:null,submitting:!0})),b(B,(t,{result:p})=>f(r({},t),{loading:!1,submitting:!1,submitResult:p}
1)),b(V,(t,{error:p})=>f(r({},t),{loading:!1,submitting:!1,error:p})));var Wt=(()=>{class t{static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275mod=y({type:t})}static{this.\u0275inj=S({imports:[yt.forFeature("rsvpPage",Qt),$t.forFeature([Kt])]})}}return t})();var Ze=(()=>{class t{static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275mod=y({type:t})}static{this.\u0275inj=S({providers:[Rt],imports:[bt,Xt,O,Wt,Y]})}}return t})();export{Ze as RsvpModule};
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.