1"use strict";(self.webpackChunkfuse=self.webpackChunkfuse||[]).push([[8213],{8213:(H,J,c)=>{c.d(J,{T:()=>Ot});var t=c(9212),p=c(7700),A=c(4517),g=c(6814),l=c(2552),Z=c(8525),r=c(6223),y=c(3680),x=c(4170),_=c(617),h=c(2296),S=c(661),w=c(5986),k=c(4487),I=c(3573),P=c(5553);const Q=["roomingNgForm"];function U(n,i){if(1&n&&(t.TgZ(0,"h2",12),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(),t.hij(" ",e.data.title," ")}}function F(n,i){1&n&&(t.TgZ(0,"h2",12),t._uU(1," Confirm Changes "),t.qZA())}function R(n,i){if(1&n&&(t.TgZ(0,"h3",13),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(),t.hij(" ",e.data.message," ")}}function N(n,i){if(1&n&&(t.TgZ(0,"h3",13),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(),t.hij(" Please confirm the changes made for: ",e.traveler.personalInformation.fullname," ")}}function q(n,i){1&n&&(t.TgZ(0,"div",21),t._uU(1," sold out "),t.qZA())}function D(n,i){if(1&n&&(t.TgZ(0,"mat-option",18)(1,"div",19)(2,"span"),t._uU(3),t.qZA(),t.YNc(4,q,2,0,"div",20),t.qZA()()),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("value",e.value)("disabled",e.soldout||(null==o.traveler.roomingPreference?null:o.traveler.roomingPreference.roomingKind)===e.value),t.xp6(3),t.Oqu(e.label),t.xp6(),t.Q6J("ngIf",e.soldout)}}function Y(n,i){1&n&&(t.TgZ(0,"div")(1,"div",22),t._uU(2," Single Supplement Charge "),t.qZA(),t.TgZ(3,"mat-checkbox",23)(4,"span"),t._uU(5,"Apply additional charges"),t.qZA()()())}
1function K(n,i){if(1&n&&(t.TgZ(0,"form",14)(1,"mat-form-field",15)(2,"mat-label",12),t._uU(3,"Select Rooming"),t.qZA(),t.TgZ(4,"mat-select",16),t.YNc(5,D,5,4,"mat-option",17),t.qZA()(),t.YNc(6,Y,6,0,"div",10),t.qZA()),2&n){const e=t.oxw();t.Q6J("formGroup",e.roomingForm),t.xp6(5),t.Q6J("ngForOf",e.roomingOptions),t.xp6(),t.Q6J("ngIf","Single"===e.roomingForm.get("rooming").value)}}function v(n,i){if(1&n&&(t.TgZ(0,"div")(1,"div",22),t._uU(2," Single Supplement Charge "),t.qZA(),t.TgZ(3,"mat-checkbox",26)(4,"span"),t._uU(5,"Apply additional charges"),t.qZA()()()),2&n){const e=t.oxw(2);t.xp6(3),t.Q6J("checked",e.checkedSingleSupplementCharge)}}function f(n,i){if(1&n&&(t.TgZ(0,"div")(1,"div")(2,"div",24),t._uU(3," Select Rooming: "),t.qZA()(),t.TgZ(4,"div",25),t._uU(5),t.qZA(),t.YNc(6,v,6,1,"div",10),t.qZA()),2&n){const e=t.oxw();t.xp6(5),t.hij(" ",e.selectedRooming," "),t.xp6(),t.Q6J("ngIf","Single"===e.roomingForm.get("rooming").value)}}function s(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",28),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.confirmModeOn())}),t._uU(2),t.qZA(),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(),t.Q6J("disabled",!e.roomingForm.touched||e.roomingForm.invalid&&"Single"===e.roomingForm.get("rooming").value),t.xp6(),t.hij(" ",e.data.actions.save.label," ")}}function d(n,i){if(1&n&&(t.TgZ(0,"div",27),t.YNc(1,s,3,2,"ng-container",10),t.qZA()),2&n){const e=t.oxw();
1t.xp6(),t.Q6J("ngIf",e.data.actions.save.show)}}function m(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",27),t.ynx(1),t.TgZ(2,"button",28),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.save())}),t._uU(3),t.qZA(),t.BQk(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("disabled",e.roomingForm.invalid&&"Single"===e.roomingForm.get("rooming").value),t.xp6(),t.hij(" ",e.data.actions.confirm.label," ")}}let T=(()=>{class n{constructor(e,o,a,u,b){this._formBuilder=e,this._matDialogRef=o,this._travelerService=a,this._travelerRepository=u,this.data=b,this.roomingOptions=[{label:"Single Supplement",value:l.zN.Single,soldout:!1},{label:"Sharing",value:l.zN.Sharing,soldout:!1}],this.confirmMode=!1,this.roomingForm=this._formBuilder.group({rooming:[null,r.kI.required],singleSupplementCharge:[!1,r.kI.requiredTrue]}),this.traveler=b.traveler,this.airlineHotelStatus=b.airlineHotelStatus}ngOnInit(){const{maxSingleRoomsAvailable:e,maxDoubleRoomsAvailable:o,singleRoomsReserved:a,doubleRoomsReserved:u}=this.airlineHotelStatus,b={[l.zN.Single]:e-a<=0,[l.zN.Sharing]:o-u<=0};this.roomingOptions=this.roomingOptions.map(C=>({...C,soldout:b[C.value]||!1}))}confirmModeOn(){this.selectedRooming=this.roomingForm.value?.rooming,this.checkedSingleSupplementCharge=this.roomingForm.value.singleSupplementCharge,this.confirmMode=!0}save(){const e=k.N7(this.traveler);this.traveler.roomingPreference.roomingKind=this.selectedRooming,this.traveler.paymentMethod=l.XL.CreditCard;const o=k.R_(e);let a=new l.QW({travelerId:this.traveler.id,patchDocument:o,applySingleSupplementCharge:this.checkedSingleSupplementCharge,type:"rooming"});this._travelerService.patchTravelerWithRequest(a).subscribe(()=>{this._matDialogRef.close()})}static#t=this.\u0275fac=function(o){return new(o||n)(t.Y36(r.QS),t.Y36(p.so),t.Y36(I.q),t.Y36(P.z),t.Y36(p.WI))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["ctc-rooming-modal"]],viewQuery:function(o,a){if(1&o&&t.Gf(Q,5),2&o){let u;t.iGM(u=t.CRH())&&(a.roomingNgForm=u.first)}},standalone:!0,features:[t.jDz],decls:19,vars:9,consts:[[1,"absolute","top-0","right-0","pt-4","pr-4"],["mat-icon-button","",1,"bg-ctc-slate-light","min-h-[14px]","w-[36px]","h-[36px]",3,"matDialogClose"],["svgIcon","heroicons_outline:x-mark",1,"text-white","icon-size-7"],[1,"relative","flex","flex-col","w-full","h-full"],[1,"text-2xl"],["class","text-ctc-purple-dark",4,"ngIf"],["class","text-[#273444]",4,"ngIf"],[1,"flex","flex-col","sm:flex-row","md:items-start","sm:justify-start","md:justify-start","flex-auto","min-w-0"],[1,"w-full","ml-0","mt-10"],[3,"formGroup",4,"ngIf"],[4,"ngIf"],["class","flex items-center justify-center px-6 pt-4 space-x-3 mt-2",4,"ngIf"],[1,"text-ctc-purple-dark"],[1,"text-[#273444]"],[3,"formGroup"],["floatLabel","always",1,"text-base","w-full","mb-2","field-border"],["id","rooming","formControlName","rooming"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],[2,"display","flex","align-items","center"],["class","ml-2 rounded-full text-center text-sm w-fit h-6 bg-ctc-info-light text-ctc-info-dark 3xl:text-lg md-lg:text-lg sm:text-base",4,"ngIf"],[1,"ml-2","rounded-full","text-center","text-sm","w-fit","h-6","bg-ctc-info-light","text-ctc-info-dark","3xl:text-lg","md-lg:text-lg","sm:text-base"],[1,"w-96","h-3.5","text-ctc-purple-dark","text-lg","font-bold","leading-snug","mb-4"],["color","primary","formControlName","singleSupplementCharge",1,"-ml-2"],[1,"text-fuchsia-900","text-lg","font-bold","leading-snug","mb-2"],[1,"text-slate-800","text-base","font-bold","tracking-tight","mb-4"],["color","primary",1,"-ml-2",3,"checked"],[1,"flex","items-center","justify-center","px-6","pt-4","space-x-3","mt-2"],["mat-flat-button","","ctcActionButton","",1,"rounded-lg","text-base","w-1/2",3,"disabled","click"]],template:function(o,a){1&o&&(t.ynx(0),t.TgZ(1,"div",0)(2,"button",1),t._UZ(3,"mat-icon",2),t.qZA()(),t.BQk(),t.TgZ(4,"div",3)(5,"div",4),t.YNc(6,U,2,1,"h2",5)(7,F,2,0,"h2",5),t.qZA(),t.TgZ(8,"div"),t.YNc(9,R,2,1,"h3",6)(10,N,2,1,"h3",6),t.qZA(),t.TgZ(11,"div",7)(12,"div",8)(13,"div"),t.YNc(14,K,7,3,"form",9)(15,f,7,2,"div",10),t.qZA()()(),t.ynx(16),t.YNc(17,d,2,1,"div",11)(18,m,4,2,"div",11),t.BQk(),t.qZA()),2&o&&(t.xp6(2),t.Q6J("matDialogClose",void 0),t.xp6(4),t.Q6J("ngIf",!a.confirmMode),t.xp6(),t.Q6J("ngIf",a.confirmMode),t.xp6(2),t.Q6J("ngIf",!a.confirmMode),t.xp6(),t.Q6J("ngIf",a.confirmMode),t.xp6(4),t.Q6J("ngIf",!a.confirmMode),t.xp6(),t.Q6J("ngIf",a.confirmMode),t.xp6(2),t.Q6J("ngIf",!a.confirmMode),t.xp6(),t.Q6J("ngIf",a.confirmMode))},dependencies:[g.ez,g.sg,g.O5,Z.LD,x.KE,x.hX,Z.gD,y.ey,r.u5,r._Y,r.JJ,r.JL,r.UX,r.sg,r.u,x.lN,y.Ng,p.Is,p.ZT,_.Ps,_.Hw,h.ot,h.lW,h.RK,S.H,w.p9,w.oG],styles:[".rooming-dialog-panel{height:70%;width:35%;font-weight:700!important}@media (min-width: 768px) and (max-width: 1023px){.rooming-dialog-panel{width:32rem}}.rooming-dialog-panel .mat-mdc-dialog-container .mat-mdc-dialog-surface{padding:48px 48px 36px!important}.rooming-dialog-panel button{font-weight:inherit}.btn-border,.field-border .mat-mdc-text-field-wrapper{border:1px solid!important}.mat-mdc-form-field{font-weight:inherit!important}.mat-mdc-form-field .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-floating-label{font-weight:inherit!important;font-size:inherit!important}.mat-mdc-form-field .mat-mdc-form-field-flex .mat-mdc-form-field-infix input::placeholder{font-weight:400!important;font-size:inherit!important}.mat-mdc-form-field .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-select{font-weight:inherit!important;font-size:inherit!important}\n"],encapsulation:2})}return n})();var M=c(2032),L=c(8375);const O=n=>{const i=n,e=i.get("day")?.value,o=i.get("month")?.value,a=i.get("year")?.value;if(!e&&!o&&!a)return null;
1if(!e||!o||!a)return{invalidDate:!0};const u=(0,L._C)();return(0,L.Wr)(a,o,e)?.diff(u,"day")?.days<=0?null:{invalidDate:!0}},z=n=>{const i=n.value;return null==i||""===i?{required:!0}:/^\d+$/.test(String(i))?null:{invalid:!0}};var B=c(6084),G=c(8212);const X=["statusNgForm"];function W(n,i){if(1&n&&(t.TgZ(0,"h2",11),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(),t.hij(" ",e.data.title," ")}}function V(n,i){if(1&n&&(t.TgZ(0,"h3",12),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(),t.hij(" ",e.data.message," ")}}function $(n,i){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e.value),t.xp6(),t.hij(" ",e.label," ")}}function tt(n,i){1&n&&(t.TgZ(0,"div")(1,"div",19),t._uU(2," Please Confirm * "),t.qZA(),t.TgZ(3,"mat-checkbox",20)(4,"span"),t._uU(5,"I have reviewed all the details, added the missing information and can confirm the validity."),t.qZA()()())}function et(n,i){1&n&&(t.TgZ(0,"div")(1,"mat-form-field",21)(2,"mat-label",11),t._uU(3,"Description *"),t.qZA(),t._UZ(4,"textarea",22),t.qZA()()),2&n&&(t.xp6(4),t.Q6J("formControlName","description")("placeholder","Enter the reason...")("rows",3))}const j=n=>({"opacity-0":n});function nt(n,i){if(1&n&&(t.TgZ(0,"div")(1,"div",23)(2,"div",24)(3,"div",25),t._uU(4," Cancellation Date * "),t.qZA()(),t.TgZ(5,"div",26)(6,"div",27),t._uU(7," Month: "),t.TgZ(8,"mat-form-field",28),t._UZ(9,"input",29),t.qZA()(),t.TgZ(10,"div",30),t._uU(11," Day: "),t.TgZ(12,"mat-form-field",28),t._UZ(13,"input",29),t.qZA()(),t.TgZ(14,"div",27),t._uU(15," Year: "),t.TgZ(16,"mat-form-field",31),t._UZ(17,"input",29),t.qZA()()(),t.TgZ(18,"div")(19,"mat-error",32),t._uU(20,"Cancellation Date is invalid"),t.qZA()()(),t.TgZ(21,"mat-form-field",33)(22,"mat-label",11),t._uU(23,"Cancellation Fee *"),t.qZA(),t.TgZ(24,"span",34),t._uU(25,"$\xa0\xa0"),t.qZA(),t._UZ(26,"input",35),t.qZA(),t.TgZ(27,"mat-error",32),t._uU(28," Cancellation Fee is invalid "),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(5),t.Q6J("formGroupName","requestDate"),t.xp6(4),t.Q6J("formControlName","month")("placeholder","MM"),t.xp6(4),t.Q6J("formControlName","day")("placeholder","DD"),t.xp6(4),t.Q6J("formControlName","year")("placeholder","YYYY"),t.xp6(2),t.Q6J("ngClass",t.VKq(10,j,!(e.statusForm.get("requestDate").touched&&e.statusForm.get("requestDate").invalid))),t.xp6(7),t.Q6J("formControlName","amount"),t.xp6(),t.Q6J("ngClass",t.VKq(12,j,!(e.statusForm.get("amount").touched&&e.statusForm.get("amount").invalid)))}}function at(n,i){if(1&n&&(t.TgZ(0,"form",13)(1,"mat-form-field",14)(2,"mat-label",11),t._uU(3,"Status *"),t.qZA(),t.TgZ(4,"mat-select",15),t.YNc(5,$,2,2,"mat-option",16),t.qZA()(),t.YNc(6,tt,6,0,"div",17)(7,et,5,3,"div",17)(8,nt,29,14,"div",17),t.qZA()),2&n){const e=t.oxw();t.Q6J("formGroup",e.statusForm),t.xp6(5),t.Q6J("ngForOf",e.statusOptions),t.xp6(),t.Q6J("ngIf","Reviewed"===e.statusForm.get("status").value),t.xp6(),t.Q6J("ngIf","Invalid"===e.statusForm.get("status").value||"Cancelled"===e.statusForm.get("status").value),t.xp6(),t.Q6J("ngIf","Cancelled"===e.statusForm.get("status").value)}}function ot(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",37),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.save())}),t._uU(2),t.qZA(),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(),t.Q6J("disabled",!e.statusForm.touched||!e.statusForm.get("confirmation").value&&"Reviewed"===e.statusForm.get("status").value||e.statusForm.get("description").hasError("required")&&("Invalid"===e.statusForm.get("status").value||"Cancelled"===e.statusForm.get("status").value)||(e.statusForm.get("requestDate").hasError("required")||e.statusForm.get("amount").hasError("required"))&&"Cancelled"===e.statusForm.get("status").value),t.xp6(),t.hij(" ",e.data.actions.save.label," ")}}function it(n,i){if(1&n&&(t.TgZ(0,"div",36),t.YNc(1,ot,3,2,"ng-container",17),t.qZA()),2&n){const e=t.oxw();
1t.xp6(),t.Q6J("ngIf",e.data.actions.save.show)}}function rt(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",36),t.ynx(1),t.TgZ(2,"button",37),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.save())}),t._uU(3),t.qZA(),t.BQk(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("disabled",!0),t.xp6(),t.hij(" ",e.data.actions.confirm.label," ")}}let lt=(()=>{class n{constructor(e,o,a,u,b,C){this._formBuilder=e,this._commonFormBuilder=o,this._matDialogRef=a,this._travelerService=u,this._userService=b,this.data=C,this.confirmMode=!1,this.statusOptions=[{label:"Reviewed",value:l.CT.Reviewed},{label:"Invalid",value:l.CT.Invalid},{label:"Cancelled",value:l.CT.Cancelled}],this.traveler=C.traveler,this.travelerReview=C.traveler.reviewHistory?.length?C.traveler.reviewHistory[C.traveler.reviewHistory.length-1]:null,this.statusForm=this._formBuilder.group({status:[this.traveler.reviewStatus],confirmation:[!1,r.kI.requiredTrue],description:[this.travelerReview?.description??"",r.kI.required],requestDate:this._commonFormBuilder.dateToFormGroup(this.travelerReview?.requestDate,[],[],[],[O,r.kI.required]),amount:[this.travelerReview?.amount,z]}),this._userService.user$.subscribe(zt=>this.currentUser=zt)}save(){const e=k.N7(this.traveler),o={reviewedBy:this.currentUser.fullname,reviewedAt:(new Date).toISOString(),reviewStatus:this.statusForm.get("status").value,description:this.statusForm.get("description").value,requestDate:this._commonFormBuilder.formGroupToUtcDate(this.statusForm.get("requestDate"),L.Oq.StartOfTheDay),amount:this.statusForm.get("amount").value};this.traveler.reviewHistory||(this.traveler.reviewHistory=[]),this.traveler.reviewHistory.push(new l.Cq(o)),this.traveler.reviewStatus=this.statusForm.get("status").value;const a=k.R_(e);let u=new l.QW({travelerId:this.traveler.id,patchDocument:a,applySingleSupplementCharge:!1,type:"status"});this._travelerService.patchTravelerWithRequest(u).subscribe(()=>{this._matDialogRef.close()})}static#t=this.\u0275fac=function(o){return new(o||n)(t.Y36(r.QS),t.Y36(B.M),t.Y36(p.so),t.Y36(I.q),t.Y36(G.K),t.Y36(p.WI))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["ctc-status-modal"]],viewQuery:function(o,a){if(1&o&&t.Gf(X,5),2&o){let u;t.iGM(u=t.CRH())&&(a.statusNgForm=u.first)}},standalone:!0,features:[t.jDz],decls:16,vars:6,consts:[[1,"absolute","top-0","right-0","pt-4","pr-4"],["mat-icon-button","",1,"bg-ctc-slate-light","min-h-[14px]","w-[36px]","h-[36px]",3,"matDialogClose"],["svgIcon","heroicons_outline:x-mark",1,"text-white","icon-size-7"],[1,"relative","flex","flex-col","w-full","h-full"],[1,"text-2xl"],["class","text-ctc-purple-dark",4,"ngIf"],["class","text-[#273444]",4,"ngIf"],[1,"flex","flex-col","sm:flex-row","md:items-start","sm:justify-start","md:justify-start","flex-auto","min-w-0"],[1,"w-full","ml-0","mt-10"],[3,"formGroup",4,"ngIf"],["class","flex items-center justify-center px-6 pt-4 space-x-3 mt-2",4,"ngIf"],[1,"text-ctc-purple-dark"],[1,"text-[#273444]"],[3,"formGroup"],["floatLabel","always",1,"text-base","w-full","mb-2","field-border"],["id","status","formControlName","status"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"value"],[1,"w-96","h-3.5","text-ctc-purple-dark","text-lg","font-bold","leading-snug","mb-4"],["color","primary","formControlName","confirmation",1,"-ml-2"],["floatLabel","always",1,"text-base","w-full","mt-8","field-border"],["id","description","matInput","",3,"formControlName","placeholder","rows"],[1,"mt-8"],[1,"flex","pb-3"],[1,"w-96","h-4","text-ctc-purple-dark","text-base","leading-snug"],[1,"flex","justify-start",3,"formGroupName"],[1,"flex-1","text-ctc-slate-dark","text-lg","font-normal","leading-snug"],[1,"flex-auto","text-base","w-16","ml-2","subscript-none"],["matInput","","type","number","required","",1,"spin-buttons-none","h-11","relative","bg-white","rounded-lg","border","border-slate-light","border-opacity-50",3,"formControlName","placeholder"],[1,"flex-1","text-ctc-slate-dark","text-lg","font-normal","leading-snug","ml-3"],[1,"flex-auto","text-base","w-[74px]","ml-2","subscript-none"],[1,"text-base","transition-opacity","duration-300","mt-1",3,"ngClass"],["floatLabel","always",1,"text-base","w-[120px]","mt-5","field-border"],["matTextPrefix","",1,"font-bold","text-ctc-slate-dark","text-base"],["aria-label","cancellation-amount","autocomplete","off","matInput","","type","text","placeholder","####",1,"text-ctc-slate-dark","text-base",3,"formControlName"],[1,"flex","items-center","justify-center","px-6","pt-4","space-x-3","mt-2"],["mat-flat-button","","ctcActionButton","",1,"rounded-lg","text-base","w-1/2",3,"disabled","click"]],template:function(o,a){1&o&&(t.ynx(0),t.TgZ(1,"div",0)(2,"button",1),t._UZ(3,"mat-icon",2),t.qZA()(),t.BQk(),t.TgZ(4,"div",3)(5,"div",4),t.YNc(6,W,2,1,"h2",5),t.qZA(),t.TgZ(7,"div"),t.YNc(8,V,2,1,"h3",6),t.qZA(),t.TgZ(9,"div",7)(10,"div",8)(11,"div"),t.YNc(12,at,9,5,"form",9),t.qZA()()(),t.ynx(13),t.YNc(14,it,2,1,"div",10)(15,rt,4,2,"div",10),t.BQk(),t.qZA()),2&o&&(t.xp6(2),t.Q6J("matDialogClose",void 0),t.xp6(4),t.Q6J("ngIf",!a.confirmMode),t.xp6(2),t.Q6J("ngIf",!a.confirmMode),t.xp6(4),t.Q6J("ngIf",!a.confirmMode),t.xp6(2),t.Q6J("ngIf","Valid"!=a.statusForm.get("status").value||a.statusForm.get("confirmation").value),t.xp6(),t.Q6J("ngIf","Valid"===a.statusForm.get("status").value&&!a.statusForm.get("confirmation").value))},dependencies:[g.ez,g.mk,g.sg,g.O5,Z.LD,x.KE,x.hX,x.TO,x.qo,Z.gD,y.ey,r.u5,r._Y,r.Fj,r.wV,r.JJ,r.JL,r.Q7,r.UX,r.sg,r.u,r.x0,x.lN,y.Ng,p.Is,p.ZT,_.Ps,_.Hw,h.ot,h.lW,h.RK,S.H,w.p9,w.oG,M.c,M.Nt],styles:[".status-dialog-panel{height:70%;width:35%;font-weight:700!important}@media (min-width: 768px) and (max-width: 1023px){.status-dialog-panel{width:32rem}}.status-dialog-panel .mat-mdc-dialog-container .mat-mdc-dialog-surface{padding:48px 48px 36px!important}.status-dialog-panel button{font-weight:inherit}.btn-border,.field-border .mat-mdc-text-field-wrapper{border:1px solid!important}.mat-mdc-form-field{font-weight:inherit!important}.mat-mdc-form-field .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-floating-label{font-weight:inherit!important;font-size:inherit!important}.mat-mdc-form-field .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-floating-label :after{display:none!important}.mat-mdc-form-field .mat-mdc-form-field-flex .mat-mdc-form-field-infix input::placeholder{font-weight:400!important;font-size:inherit!important}.mat-mdc-form-field .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-select{font-weight:inherit!important;font-size:inherit!important}.mat-mdc-form-field-subscript-wrapper{display:none!important}\n"],encapsulation:2})}return n})();function st(n,i){1&n&&(t.TgZ(0,"div",4),t._uU(1," DISCOUNT "),t.qZA())}function ct(n,i){1&n&&(t.TgZ(0,"div",4),t._uU(1," STANDARD "),t.qZA())}function dt(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"CREDIT CARD"),t.qZA())}function mt(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"E-CHECK"),t.qZA())}function ft(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"div",5)(2,"span"),t._uU(3),t.qZA()(),t.TgZ(4,"div",4)(5,"span"),t._uU(6,"PAYMENT BY"),t.qZA()(),t.TgZ(7,"div",6),t.YNc(8,dt,2,0,"span",3)(9,mt,2,0,"span",3),t.qZA(),t.BQk()),2&n){const e=t.oxw();
1t.xp6(3),t.hij("$",e.price,""),t.xp6(5),t.Q6J("ngIf","CreditCard"==e.paymentKind),t.xp6(),t.Q6J("ngIf","ACH"==e.paymentKind)}}function pt(n,i){1&n&&(t.ynx(0),t.TgZ(1,"div",7),t._uU(2," sold out "),t.qZA(),t.BQk())}let ut=(()=>{class n{constructor(){this.packageKindLabelMap={[l.kb.LandOnly]:"LAND ONLY",[l.kb.FullPackage]:"FULL PACKAGE"}}getCardClass(){return this.selected?"bg-emerald-50 border border-green-800":"bg-zinc-200 bg-opacity-40"}static#t=this.\u0275fac=function(o){return new(o||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["ctc-card-select"]],inputs:{packageKind:"packageKind",price:"price",paymentKind:"paymentKind",selected:"selected",soldout:"soldout"},standalone:!0,features:[t.jDz],decls:8,vars:7,consts:[[1,"flex","flex-col","w-[194px]","h-[132px]","rounded-2xl","p-3",3,"ngClass"],[1,"flex","text-bold",3,"ngClass"],["class","flex text-slate-800 text-bold",4,"ngIf"],[4,"ngIf"],[1,"flex","text-slate-800","text-bold"],[1,"flex","mb-2"],[1,"flex"],[1,"flex","items-center","mt-5","py-0.5","px-5","rounded-full","text-center","text-sm","w-fit","h-6","bg-ctc-info-light","text-ctc-info-dark","3xl:text-lg","md-lg:text-lg","sm:text-base"]],template:function(o,a){1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span"),t._uU(3),t.qZA()(),t.YNc(4,st,2,0,"div",2)(5,ct,2,0,"div",2)(6,ft,10,3,"ng-container",3)(7,pt,3,0,"ng-container",3),t.qZA()),2&o&&(t.Q6J("ngClass",a.getCardClass()),t.xp6(),t.Q6J("ngClass","selected == true ? text-green-800 : text-ctc-purple-dark"),t.xp6(2),t.Oqu(a.packageKindLabelMap[a.packageKind]),t.xp6(),t.Q6J("ngIf","ACH"===a.paymentKind),t.xp6(),t.Q6J("ngIf","CreditCard"===a.paymentKind),t.xp6(),t.Q6J("ngIf",!a.soldout),t.xp6(),t.Q6J("ngIf",a.soldout))},dependencies:[g.ez,g.mk,g.O5],encapsulation:2})}return n})();var E=c(1452);function gt(n,i){if(1&n&&(t.TgZ(0,"h2",12),t._uU(1),t.qZA()),2&n){const e=t.oxw();
1t.xp6(),t.hij(" ",e.data.title," ")}}function ht(n,i){1&n&&(t.TgZ(0,"h2",12),t._uU(1," Confirm Changes "),t.qZA())}function xt(n,i){if(1&n&&(t.TgZ(0,"h3",13),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(),t.lnq(" ",e.data.message," ",e.packageKindLabelMap[e.selectedPkg.packageKind]," to ",e.packageKindLabelMap[e.changePkg.packageKind]," ")}}function vt(n,i){if(1&n&&(t.TgZ(0,"h3",13),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(),t.hij(" Please confirm the changes made for: ",e.traveler.personalInformation.fullname," ")}}function _t(n,i){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15)(2,"div",16),t._uU(3," Current: "),t.qZA(),t._UZ(4,"ctc-card-select",17),t.qZA(),t.TgZ(5,"div",15)(6,"div",16),t._uU(7," Change to: "),t.qZA(),t._UZ(8,"ctc-card-select",18),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Q6J("packageKind",e.selectedPkg.packageKind)("price",e.priceSelected)("paymentKind",e.traveler.paymentMethod),t.xp6(4),t.Q6J("packageKind",e.changePkg.packageKind)("price",e.priceChange)("paymentKind",e.traveler.paymentMethod)("selected",!e.soldout)("soldout",e.soldout)}}function Ct(n,i){if(1&n&&(t.TgZ(0,"div")(1,"div")(2,"div",19),t._uU(3," Change to: "),t.qZA()(),t.TgZ(4,"div",20),t._uU(5),t.qZA()()),2&n){const e=t.oxw();
1t.xp6(5),t.hij(" ",e.packageKindLabelMap[e.changePkg.packageKind]," ")}}function bt(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",22),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.confirmModeOn())}),t._uU(2),t.qZA(),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(),t.Q6J("disabled",e.soldout),t.xp6(),t.hij(" ",e.data.actions.save.label," ")}}function Zt(n,i){if(1&n&&(t.TgZ(0,"div",21),t.YNc(1,bt,3,2,"ng-container",10),t.qZA()),2&n){const e=t.oxw();t.xp6(),t.Q6J("ngIf",e.data.actions.save.show)}}function yt(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",21),t.ynx(1),t.TgZ(2,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.save())}),t._uU(3),t.qZA(),t.BQk(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.hij(" ",e.data.actions.confirm.label," ")}}let wt=(()=>{class n{constructor(e,o,a){this.dialogRef=e,this._paymentService=o,this.data=a,this.confirmMode=!1,this.priceSelected=0,this.priceChange=0,this.packageKindLabelMap={[l.kb.LandOnly]:"LAND ONLY",[l.kb.FullPackage]:"FULL PACKAGE"},this.traveler=a.traveler,this.tourPrice=a.tourPrice,this.airlineHotelStatus=a.airlineHotelStatus}ngOnInit(){this.initPackagePrices()}initPackagePrices(){this.selectedPkg=this.tourPrice.packagePrices.find(e=>e.packageKind===this.traveler.packageKind),this.changePkg=this.tourPrice.packagePrices.find(e=>e.packageKind!==this.traveler.packageKind),this.setPricesBasedOnPaymentMethod(),this.soldout=this.changePkg.packageKind===l.kb.FullPackage?this.airlineHotelStatus.maxAirlineSeatsAvailable-this.airlineHotelStatus.airlineSeatsReserved<=0:this.airlineHotelStatus.maxSingleRoomsAvailable-this.airlineHotelStatus.singleRoomsReserved<=0&&this.airlineHotelStatus.maxDoubleRoomsAvailable-this.airlineHotelStatus.doubleRoomsReserved<=0}setPricesBasedOnPaymentMethod(){const e=this.traveler.paymentMethod,o={selected:0,change:0};e===l.XL.CreditCard?(o.selected=this.selectedPkg?.creditCard??0,o.change=this.changePkg?.creditCard??0):e===l.XL.ACH&&(o.selected=this.selectedPkg?.ach??0,o.change=this.changePkg?.ach??0),this.priceSelected=o.selected,this.priceChange=o.change}confirmModeOn(){this.confirmMode=!0}save(){k.N7(this.traveler),this.traveler.packageKind=this.changePkg.packageKind,this._paymentService.changePackage(this.traveler.id,this.changePkg.packageKind).subscribe(()=>{this.dialogRef.close()})}static#t=this.\u0275fac=function(o){return new(o||n)(t.Y36(p.so),t.Y36(E.t),t.Y36(p.WI))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["app-package-modal"]],standalone:!0,features:[t.jDz],decls:18,vars:9,consts:[[1,"absolute","top-0","right-0","pt-4","pr-4"],["mat-icon-button","",1,"bg-ctc-slate-light","min-h-[14px]","w-[36px]","h-[36px]",3,"matDialogClose"],["svgIcon","heroicons_outline:x-mark",1,"text-white","icon-size-7"],[1,"relative","flex","flex-col","w-full","h-full"],[1,"text-2xl"],["class","text-ctc-purple-dark",4,"ngIf"],["class","text-[#273444]",4,"ngIf"],[1,"flex","flex-col","sm:flex-row","md:items-start","sm:justify-start","md:justify-start","flex-auto","min-w-0"],[1,"w-full","ml-0","mt-10"],["class","flex flex-row",4,"ngIf"],[4,"ngIf"],["class","flex items-center justify-center px-6 pt-4 space-x-3 mt-2",4,"ngIf"],[1,"text-ctc-purple-dark"],[1,"text-[#273444]"],[1,"flex","flex-row"],[1,"m-2"],[1,"text-slate-800","text-sm","font-normal","leading-[16.80px]"],[3,"packageKind","price","paymentKind"],[3,"packageKind","price","paymentKind","selected","soldout"],[1,"text-fuchsia-900","text-lg","font-bold","leading-snug","mb-2"],[1,"text-slate-800","text-base","font-bold","tracking-tight","mb-4"],[1,"flex","items-center","justify-center","px-6","pt-4","space-x-3","mt-2"],["mat-flat-button","","ctcActionButton","",1,"rounded-lg","text-base","w-1/2",3,"disabled","click"],["mat-flat-button","","ctcActionButton","",1,"rounded-lg","text-base","w-1/2",3,"click"]],template:function(o,a){1&o&&(t.ynx(0),t.TgZ(1,"div",0)(2,"button",1),t._UZ(3,"mat-icon",2),t.qZA()(),t.BQk(),t.TgZ(4,"div",3)(5,"div",4),t.YNc(6,gt,2,1,"h2",5)(7,ht,2,0,"h2",5),t.qZA(),t.TgZ(8,"div"),t.YNc(9,xt,2,3,"h3",6)(10,vt,2,1,"h3",6),t.qZA(),t.TgZ(11,"div",7)(12,"div",8),t.YNc(13,_t,9,8,"div",9)(14,Ct,6,1,"div",10),t.qZA()(),t.ynx(15),t.YNc(16,Zt,2,1,"div",11)(17,yt,4,1,"div",11),t.BQk(),t.qZA()),2&o&&(t.xp6(2),t.Q6J("matDialogClose",void 0),t.xp6(4),t.Q6J("ngIf",!a.confirmMode),t.xp6(),t.Q6J("ngIf",a.confirmMode),t.xp6(2),t.Q6J("ngIf",!a.confirmMode),t.xp6(),t.Q6J("ngIf",a.confirmMode),t.xp6(3),t.Q6J("ngIf",!a.confirmMode),t.xp6(),t.Q6J("ngIf",a.confirmMode),t.xp6(2),t.Q6J("ngIf",!a.confirmMode),t.xp6(),t.Q6J("ngIf",a.confirmMode))},dependencies:[g.ez,g.O5,ut,Z.LD,r.u5,r.UX,x.lN,y.Ng,p.Is,p.ZT,_.Ps,_.Hw,h.ot,h.lW,h.RK,S.H,w.p9],styles:[".package-dialog-panel{height:70%;width:35%;font-weight:700!important}@media (min-width: 768px) and (max-width: 1023px){.package-dialog-panel{width:32rem}}.package-dialog-panel .mat-mdc-dialog-container .mat-mdc-dialog-surface{padding:48px 48px 36px!important}.package-dialog-panel button{font-weight:inherit}.btn-border,.field-border .mat-mdc-text-field-wrapper{border:1px solid!important}.mat-mdc-form-field{font-weight:inherit!important}.mat-mdc-form-field .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-floating-label{font-weight:inherit!important;font-size:inherit!important}.mat-mdc-form-field .mat-mdc-form-field-flex .mat-mdc-form-field-infix input::placeholder{font-weight:400!important;font-size:inherit!important}.mat-mdc-form-field .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-select{font-weight:inherit!important;font-size:inherit!important}\n"],encapsulation:2})}return n})();function Tt(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"E-CHECK"),t.qZA())}function Mt(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"CREDIT CARD"),t.qZA())}function At(n,i){1&n&&(t.TgZ(0,"div",5),t._uU(1,"DISCOUNT"),t.qZA())}function kt(n,i){1&n&&(t.TgZ(0,"div",5),t._uU(1,"STANDARD"),t.qZA())}let Pt=(()=>{class n{constructor(){this.PaymentMethod=l.XL}getCardClass(){return this.selected?"bg-emerald-50 border border-green-800":"bg-zinc-200 bg-opacity-40"}getPaymentMethodClass(){return this.selected?"text-green-800":"text-ctc-purple-dark"}static#t=this.\u0275fac=function(o){return new(o||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["ctc-payment-card-select"]],inputs:{paymentMethod:"paymentMethod",price:"price",selected:"selected",discount:"discount"},standalone:!0,features:[t.jDz],decls:9,vars:7,consts:[[1,"flex","flex-col","w-[194px]","h-[132px]","rounded-2xl","p-4",3,"ngClass"],[1,"flex","text-bold",3,"ngClass"],[4,"ngIf"],["class","flex text-slate-800 text-bold",4,"ngIf"],[1,"flex","mb-2"],[1,"flex","text-slate-800","text-bold"]],template:function(o,a){1&o&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,Tt,2,0,"span",2)(3,Mt,2,0,"span",2),t.qZA(),t.YNc(4,At,2,0,"div",3)(5,kt,2,0,"div",3),t.TgZ(6,"div",4)(7,"span"),t._uU(8),t.qZA()()()),2&o&&(t.Q6J("ngClass",a.getCardClass()),t.xp6(),t.Q6J("ngClass",a.getPaymentMethodClass()),t.xp6(),t.Q6J("ngIf",a.paymentMethod===a.PaymentMethod.ACH),t.xp6(),t.Q6J("ngIf",a.paymentMethod===a.PaymentMethod.CreditCard),t.xp6(),t.Q6J("ngIf",a.discount),t.xp6(),t.Q6J("ngIf",!a.discount),t.xp6(3),t.hij("$",a.price,""))},dependencies:[g.ez,g.mk,g.O5]})}return n})();function St(n,i){if(1&n&&(t.TgZ(0,"h2",12),t._uU(1),t.qZA()),2&n){const e=t.oxw();
1t.xp6(),t.hij(" ",e.data.title," ")}}function It(n,i){1&n&&(t.TgZ(0,"h2",12),t._uU(1," Confirm Changes "),t.qZA())}function qt(n,i){if(1&n&&(t.TgZ(0,"h3",13),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(),t.lnq(" ",e.data.message," ",e.paymentMethodLabelMap[e.paymentMethodSelected]," to ",e.paymentMethodLabelMap[e.paymentMethodChange]," ")}}function Qt(n,i){if(1&n&&(t.TgZ(0,"h3",13),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(),t.hij(" Please confirm the changes made for: ",e.traveler.personalInformation.fullname," ")}}function Ut(n,i){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15)(2,"div",16),t._uU(3," Current: "),t.qZA(),t._UZ(4,"ctc-payment-card-select",17),t.qZA(),t.TgZ(5,"div",15)(6,"div",16),t._uU(7," Change to: "),t.qZA(),t._UZ(8,"ctc-payment-card-select",18),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Q6J("price",e.selectedPrice)("paymentMethod",e.paymentMethodSelected)("discount",e.selectedDiscount),t.xp6(4),t.Q6J("price",e.changedPrice)("paymentMethod",e.paymentMethodChange)("selected",!0)("discount",e.changedDiscount)}}function Nt(n,i){1&n&&(t.TgZ(0,"div",21),t._uU(1," E-CHECK "),t.qZA())}function Jt(n,i){1&n&&(t.TgZ(0,"div",21),t._uU(1," CREDIT CARD "),t.qZA())}function Ft(n,i){if(1&n&&(t.TgZ(0,"div")(1,"div")(2,"div",19),t._uU(3," Change to: "),t.qZA()(),t.YNc(4,Nt,2,0,"div",20)(5,Jt,2,0,"div",20),t.qZA()),2&n){const e=t.oxw();
1t.xp6(4),t.Q6J("ngIf",e.paymentMethodChange===e.PaymentMethod.ACH),t.xp6(),t.Q6J("ngIf",e.paymentMethodChange===e.PaymentMethod.CreditCard)}}function Rt(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.confirmModeOn())}),t._uU(2),t.qZA(),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(2),t.hij(" ",e.data.actions.save.label," ")}}function Dt(n,i){if(1&n&&(t.TgZ(0,"div",22),t.YNc(1,Rt,3,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw();t.xp6(),t.Q6J("ngIf",e.data.actions.save.show)}}function Yt(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",22),t.ynx(1),t.TgZ(2,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.save())}),t._uU(3),t.qZA(),t.BQk(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.hij(" ",e.data.actions.confirm.label," ")}}let Kt=(()=>{class n{constructor(e,o,a,u,b,C){this._formBuilder=e,this._matDialogRef=o,this._travelerService=a,this._travelerRepository=u,this._stripeService=b,this.data=C,this.confirmMode=!1,this.selectedPrice=0,this.changedPrice=0,this.PaymentMethod=l.XL,this.selectedDiscount=!1,this.changeDiscount=!1,this.paymentMethodLabelMap={[l.XL.CreditCard]:"CREDIT CARD",[l.XL.ACH]:"E-CHECK"},this.traveler=C.traveler,this.tourPrice=C.tourPrice}ngOnInit(){this.initPackagePrices()}confirmModeOn(){this.confirmMode=!0}initPackagePrices(){this.packagePrices=this.tourPrice.packagePrices.find(e=>e.packageKind===this.traveler.packageKind),this.setPricesBasedOnPaymentMethod()}setPricesBasedOnPaymentMethod(){const e=this.traveler.paymentMethod,o=this.traveler.payments.some(a=>a.status===l.bG.Paid&&a.method===l.XL.CreditCard);e===l.XL.CreditCard?o?(this.paymentMethodSelected=l.XL.CreditCard,this.paymentMethodChange=l.XL.ACH,this.selectedPrice=this.packagePrices.creditCard??0,this.changedPrice=this.packagePrices.creditCard??0,this.selectedDiscount=!1,this.changeDiscount=!1):(this.paymentMethodSelected=l.XL.CreditCard,this.paymentMethodChange=l.XL.ACH,this.selectedPrice=this.packagePrices.creditCard??0,this.changedPrice=this.packagePrices.ach,this.selectedDiscount=!1,this.changeDiscount=!0):e===l.XL.ACH&&(this.selectedPrice=this.packagePrices?.ach??0,this.changedPrice=this.packagePrices?.creditCard??0,this.paymentMethodSelected=l.XL.ACH,this.paymentMethodChange=l.XL.CreditCard,this.selectedDiscount=!0,this.changeDiscount=!1)}save(){k.N7(this.traveler),this.traveler.paymentMethod=this.paymentMethodChange,this._stripeService.changePaymentMethod(this.traveler.id,this.paymentMethodChange).subscribe(()=>{this._matDialogRef.close()})}static#t=this.\u0275fac=function(o){return new(o||n)(t.Y36(r.QS),t.Y36(p.so),t.Y36(I.q),t.Y36(P.z),t.Y36(E.t),t.Y36(p.WI))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["ctc-payment-modal"]],standalone:!0,features:[t.jDz],decls:19,vars:9,consts:[[1,"absolute","top-0","right-0","pt-4","pr-4"],["mat-icon-button","",1,"bg-ctc-slate-light","min-h-[14px]","w-[36px]","h-[36px]",3,"matDialogClose"],["svgIcon","heroicons_outline:x-mark",1,"text-white","icon-size-7"],[1,"relative","flex","flex-col","w-full","h-full"],[1,"text-2xl"],["class","text-ctc-purple-dark",4,"ngIf"],["class","text-[#273444]",4,"ngIf"],[1,"flex","flex-col","sm:flex-row","md:items-start","sm:justify-start","md:justify-start","flex-auto","min-w-0"],[1,"w-full","ml-0","mt-10"],["class","flex flex-row",4,"ngIf"],[4,"ngIf"],["class","flex items-center justify-center px-6 pt-4 space-x-3 mt-2",4,"ngIf"],[1,"text-ctc-purple-dark"],[1,"text-[#273444]"],[1,"flex","flex-row"],[1,"m-2"],[1,"text-slate-800","text-sm","font-normal","leading-[16.80px]"],[3,"price","paymentMethod","discount"],[3,"price","paymentMethod","selected","discount"],[1,"text-fuchsia-900","text-lg","font-bold","leading-snug","mb-2"],["class","text-slate-800 text-base font-bold tracking-tight mb-4",4,"ngIf"],[1,"text-slate-800","text-base","font-bold","tracking-tight","mb-4"],[1,"flex","items-center","justify-center","px-6","pt-4","space-x-3","mt-2"],["mat-flat-button","","ctcActionButton","",1,"rounded-lg","text-base","w-1/2",3,"click"]],template:function(o,a){1&o&&(t.ynx(0),t.TgZ(1,"div",0)(2,"button",1),t._UZ(3,"mat-icon",2),t.qZA()(),t.BQk(),t.TgZ(4,"div",3)(5,"div",4),t.YNc(6,St,2,1,"h2",5)(7,It,2,0,"h2",5),t.qZA(),t.TgZ(8,"div"),t.YNc(9,qt,2,3,"h3",6)(10,Qt,2,1,"h3",6),t.qZA(),t.TgZ(11,"div",7)(12,"div",8)(13,"div"),t.YNc(14,Ut,9,7,"div",9)(15,Ft,6,2,"div",10),t.qZA()()(),t.ynx(16),t.YNc(17,Dt,2,1,"div",11)(18,Yt,4,1,"div",11),t.BQk(),t.qZA()),2&o&&(t.xp6(2),t.Q6J("matDialogClose",void 0),t.xp6(4),t.Q6J("ngIf",!a.confirmMode),t.xp6(),t.Q6J("ngIf",a.confirmMode),t.xp6(2),t.Q6J("ngIf",!a.confirmMode),t.xp6(),t.Q6J("ngIf",a.confirmMode),t.xp6(4),t.Q6J("ngIf",!a.confirmMode),t.xp6(),t.Q6J("ngIf",a.confirmMode),t.xp6(2),t.Q6J("ngIf",!a.confirmMode),t.xp6(),t.Q6J("ngIf",a.confirmMode))},dependencies:[g.ez,g.O5,Pt,Z.LD,r.u5,r.UX,x.lN,y.Ng,p.Is,p.ZT,_.Ps,_.Hw,h.ot,h.lW,h.RK,S.H,w.p9],styles:[".payment-dialog-panel{height:70%;width:35%;font-weight:700!important}@media (min-width: 768px) and (max-width: 1023px){.payment-dialog-panel{width:32rem}}.payment-dialog-panel .mat-mdc-dialog-container .mat-mdc-dialog-surface{padding:48px 48px 36px!important}.payment-dialog-panel button{font-weight:inherit}.btn-border,.field-border .mat-mdc-text-field-wrapper{border:1px solid!important}.mat-mdc-form-field{font-weight:inherit!important}.mat-mdc-form-field .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-floating-label{font-weight:inherit!important;font-size:inherit!important}.mat-mdc-form-field .mat-mdc-form-field-flex .mat-mdc-form-field-infix input::placeholder{font-weight:400!important;font-size:inherit!important}.mat-mdc-form-field .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-select{font-weight:inherit!important;font-size:inherit!important}\n"],encapsulation:2})}return n})();var Lt=c(3543);const jt=["statusNgForm"];function Et(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",16),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.save())}),t._uU(2),t.qZA(),t.BQk()}if(2&n){const e=t.oxw();
1t.xp6(),t.Q6J("disabled",e.contactUsForm.invalid),t.xp6(),t.hij(" ",e.data.actions.save.label," ")}}let Ht=(()=>{class n{constructor(e,o,a,u){this._formBuilder=e,this._matDialogRef=o,this._tourService=a,this.data=u,this.contactUsForm=this._formBuilder.group({fullName:[],email:[],cellPhone:[]}),this.tourId=u.tourId}save(){var e={fullName:this.contactUsForm.get("fullName").value,email:this.contactUsForm.get("email").value,cellPhone:this.contactUsForm.get("cellPhone").value},o={contact:new l.EI(e)};this._tourService.updateTourWaitingList(this.tourId,new l.O$(o)).subscribe(),this._matDialogRef.close()}static#t=this.\u0275fac=function(o){return new(o||n)(t.Y36(r.QS),t.Y36(p.so),t.Y36(Lt.Q),t.Y36(p.WI))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["app-contact-us-modal"]],viewQuery:function(o,a){if(1&o&&t.Gf(jt,5),2&o){let u;t.iGM(u=t.CRH())&&(a.contactUsNgForm=u.first)}},standalone:!0,features:[t.jDz],decls:27,vars:7,consts:[[1,"absolute","top-0","right-0","pt-4","pr-4"],["mat-icon-button","",1,"bg-ctc-slate-light","min-h-[14px]","w-[36px]","h-[36px]",3,"matDialogClose"],["svgIcon","heroicons_outline:x-mark",1,"text-white","icon-size-7"],[1,"relative","flex","flex-col","w-full","h-full"],[1,"text-2xl"],[1,"text-ctc-purple-dark"],[1,"flex","flex-col","sm:flex-row","md:items-start","sm:justify-start","md:justify-start","flex-auto","min-w-0"],[1,"w-full","ml-0","mt-10"],[3,"formGroup"],["floatLabel","always",1,"text-base","w-full","mb-2","field-border"],["id","fullName","matInput","","placeholder","enter full name...",1,"text-base",3,"formControlName"],["id","email","matInput","","placeholder","enter email...",1,"text-base",3,"formControlName"],["floatLabel","always",1,"text-base","w-1/2","sm:w-full","mb-2","field-border"],["id","cellPhone","matInput","","placeholder","(000) 000-0000",1,"text-base",3,"formControlName"],[1,"flex","items-center","justify-center","px-6","pt-4","space-x-3","mt-2"],[4,"ngIf"],["mat-flat-button","","ctcActionButton","",1,"rounded-lg","text-base","w-1/2",3,"disabled","click"]],template:function(o,a){1&o&&(t.ynx(0),t.TgZ(1,"div",0)(2,"button",1),t._UZ(3,"mat-icon",2),t.qZA()(),t.BQk(),t.TgZ(4,"div",3)(5,"div",4)(6,"h2",5),t._uU(7),t.qZA()(),t.TgZ(8,"div",6)(9,"div",7)(10,"div")(11,"form",8)(12,"mat-form-field",9)(13,"mat-label",5),t._uU(14,"Full Name *"),t.qZA(),t._UZ(15,"input",10),t.qZA(),t.TgZ(16,"mat-form-field",9)(17,"mat-label",5),t._uU(18,"Email *"),t.qZA(),t._UZ(19,"input",11),t.qZA(),t.TgZ(20,"mat-form-field",12)(21,"mat-label",5),t._uU(22,"Cell Phone *"),t.qZA(),t._UZ(23,"input",13),t.qZA()()()()(),t.ynx(24),t.TgZ(25,"div",14),t.YNc(26,Et,3,2,"ng-container",15),t.qZA(),t.BQk(),t.qZA()),2&o&&(t.xp6(2),t.Q6J("matDialogClose",void 0),t.xp6(5),t.hij(" ",a.data.title," "),t.xp6(4),t.Q6J("formGroup",a.contactUsForm),t.xp6(4),t.Q6J("formControlName","fullName"),t.xp6(4),t.Q6J("formControlName","email"),t.xp6(4),t.Q6J("formControlName","cellPhone"),t.xp6(3),t.Q6J("ngIf",a.data.actions.save.show))},dependencies:[g.ez,g.O5,Z.LD,x.KE,x.hX,r.u5,r._Y,r.Fj,r.JJ,r.JL,r.UX,r.sg,r.u,x.lN,y.Ng,p.Is,p.ZT,_.Ps,_.Hw,h.ot,h.lW,h.RK,S.H,w.p9,M.c,M.Nt],styles:[".contact-us-dialog-panel{height:75%;width:32rem;font-weight:700!important}.contact-us-dialog-panel .mat-mdc-dialog-container .mat-mdc-dialog-surface{padding:48px 48px 36px!important}.contact-us-dialog-panel button{font-weight:inherit}.btn-border,.field-border .mat-mdc-text-field-wrapper{border:1px solid!important}.mat-mdc-form-field{font-weight:inherit!important}.mat-mdc-form-field .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-floating-label{font-weight:inherit!important;font-size:inherit!important}.mat-mdc-form-field .mat-mdc-form-field-flex .mat-mdc-form-field-infix input::placeholder{font-weight:400!important;font-size:inherit!important}.mat-mdc-form-field .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-select{font-weight:inherit!important;font-size:inherit!important}\n"],encapsulation:2})}return n})(),Ot=(()=>{class n{constructor(){this._matDialog=(0,t.f3M)(p.uw),this._defaultRoomingModalConfig={title:"Rooming",message:"The traveler will be informed by e-mail.",icon:{show:!0,name:"heroicons_outline:exclamation-triangle",color:"warn"},actions:{save:{show:!0,label:"SAVE"},confirm:{show:!1,label:"CONFIRM"}},dismissible:!0},this._defaultStatusModalConfig={title:"Status",message:"Please select one of the three options below.",icon:{show:!0,name:"heroicons_outline:exclamation-triangle",color:"warn"},actions:{save:{show:!0,label:"SAVE"},confirm:{show:!1,label:"CONFIRM"}},dismissible:!0},this._defaultPackageModalConfig={title:"Change Package",message:"You are attempting to change the package from ",actions:{save:{show:!0,label:"SAVE"},confirm:{show:!1,label:"CONFIRM"}},dismissible:!0},this._defaultPaymentModalConfig={title:"Change Payment Method",message:"You are attempting to change the payment method from",icon:{show:!0,name:"heroicons_outline:exclamation-triangle"},actions:{save:{show:!0,label:"SAVE"},confirm:{show:!1,label:"CONFIRM"}},dismissible:!0},this._defaultContactUsModalConfig={title:"Contact Us",message:"Apply for our waitlist below.",icon:{show:!0,name:"heroicons_outline:exclamation-triangle"},actions:{save:{show:!0,label:"APPLY"}},dismissible:!0}}openRoomingModal(e={}){const o=(0,A.Z)({},this._defaultRoomingModalConfig,e);return o.actions.save.show=!0,this._matDialog.open(T,{autoFocus:!1,disableClose:!0,data:o,panelClass:"rooming-dialog-panel"})}openStatusModal(e={}){const o=(0,A.Z)({},this._defaultStatusModalConfig,e);return o.actions.save.show=!0,this._matDialog.open(lt,{autoFocus:!1,disableClose:!0,data:o,panelClass:"status-dialog-panel"})}openPackageModal(e={}){const o=(0,A.Z)({},this._defaultPackageModalConfig,e);return o.actions.save.show=!0,this._matDialog.open(wt,{autoFocus:!1,disableClose:!0,data:o,panelClass:"package-dialog-panel"})}openPaymentModal(e={}){const o=(0,A.Z)({},this._defaultPaymentModalConfig,e);return o.actions.save.show=!0,this._matDialog.open(Kt,{autoFocus:!1,disableClose:!0,data:o,panelClass:"payment-dialog-panel"})}openContactUsModal(e={}){const o=(0,A.Z)({},this._defaultContactUsModalConfig,e);return o.actions.save.show=!0,this._matDialog.open(Ht,{autoFocus:!1,disableClose:!0,data:o,panelClass:"contact-us-dialog-panel"})}static#t=this.\u0275fac=function(o){return new(o||n)};static#e=this.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})()},1452:(H,J,c)=>{c.d(J,{t:()=>K});var P,t=c(5861),p=c(553),A="https://js.stripe.com/v3",g=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,l="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",r=function(f){var s=f&&!f.advancedFraudSignals?"?advancedFraudSignals=false":"",d=document.createElement("script");
1d.src="".concat(A).concat(s);var m=document.head||document.body;if(!m)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return m.appendChild(d),d},x=null,_=null,h=null,Q=!1,U=function(){return P||(P=(f=null,null!==x?x:(x=new Promise(function(s,d){if(typeof window>"u"||typeof document>"u")s(null);else if(window.Stripe&&f&&console.warn(l),window.Stripe)s(window.Stripe);else try{var m=function(){for(var f=document.querySelectorAll('script[src^="'.concat(A,'"]')),s=0;s<f.length;s++){var d=f[s];if(g.test(d.src))return d}return null}();if(m&&f)console.warn(l);else if(m){if(m&&null!==h&&null!==_){var T;m.removeEventListener("load",h),m.removeEventListener("error",_),null===(T=m.parentNode)||void 0===T||T.removeChild(m),m=r(f)}}else m=r(f);h=function(f,s){return function(){window.Stripe?f(window.Stripe):s(new Error("Stripe.js not available"))}}(s,d),_=function(f){return function(){f(new Error("Failed to load Stripe.js"))}}(d),m.addEventListener("load",h),m.addEventListener("error",_)}catch(M){return void d(M)}})).catch(function(s){return x=null,Promise.reject(s)})).catch(function(f){return P=null,Promise.reject(f)}));var f};Promise.resolve().then(function(){return U()}).catch(function(v){Q||console.warn(v)});var R=c(4036),N=c(9397),q=c(9212),D=c(9862),Y=c(5553);let K=(()=>{class v{constructor(s,d){this._httpClient=s,this._travelerRepository=d}initialize(s){var d=this;return(0,t.Z)(function*(){try{const m=yield(0,R.z)(d._httpClient.post(`${p.N.apiUrl}api/payment`,s)),{clientSecret:T}=m;d.stripe=yield function(){for(var f=arguments.length,s=new Array(f),d=0;d<f;d++)s[d]=arguments[d];Q=!0;var m=Date.now();return U().then(function(T){return function(f,s,d){if(null===f)return null;var m=f.apply(void 0,s);return function(f,s){!f||!f._registerWrapper||f._registerWrapper({name:"stripe-js",version:"3.2.0",startTime:s})}(m,d),m}(T,s,m)})}(p.N.stripeSettings.publishableKey);const M=yield d.stripe.initEmbeddedCheckout({clientSecret:T});return M.mount("#checkout"),{checkoutSessionRef:M,voucherApplicationData:m.voucherApplicationData}}catch(m){throw console.error(m),m}})()}getPaymentInfo(s){return this._httpClient.get(`${p.N.apiUrl}api/payment/status?sessionId=`+s)}changePaymentMethod(s,d){return this._httpClient.post(`${p.N.apiUrl}api/payment/change/method`,{travelerId:s,paymentMethod:d}).pipe((0,N.b)(m=>{this._travelerRepository.updateTraveler(m)}))}changePackage(s,d){return this._httpClient.post(`${p.N.apiUrl}api/payment/change/package`,{travelerId:s,packageKind:d}).pipe((0,N.b)(m=>{this._travelerRepository.updateTraveler(m)}))}static#t=this.\u0275fac=function(d){return new(d||v)(q.LFG(D.eN),q.LFG(Y.z))};static#e=this.\u0275prov=q.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})()}}]);
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.