(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{"5jKQ":function(e,t,o){"use strict";o.d(t,"a",(function(){return p}));var a=o("wd/R"),r=o("qHG9"),n=o("eVvo"),i=o("Rx7G"),l=o("AcpL"),s=(o("kQ89"),o("z4V5")),c=o("AytR"),m=o("kHqD"),h=o("CcnG"),u=o("gIcY"),p=function(){function e(e,t,o,a,r){this.hsh=e,this.hotelStateService=t,this.generalState=o,this.hotelService=a,this.fb=r,this.hotelReviewAdapter=new s.a(this.hotelStateService,this.generalState,this.fb)}return e.prototype.mergeHotelDetailsContentResponseWithHotelReviewDetailsVM=function(e){var t,o=this;e&&e.hotel&&(this.hotelStateService.HotelReviewDetails.hotelSummary={},this.hotelStateService.HotelReviewDetails.hotelSummary.hotelName=e.hotel.name,this.hotelStateService.HotelReviewDetails.hotelSummary.hotelCode=e.hotel.id,this.hotelStateService.HotelReviewDetails.hotelSummary.locationName=e.hotel.locationName,this.hotelStateService.HotelReviewDetails.hotelSummary.starRating=Math.floor(e.hotel.starRating),this.hotelStateService.HotelReviewDetails.hotelSummary.checkInTime=e.hotel.checkinInfo&&e.hotel.checkinInfo.beginTime?e.hotel.checkinInfo.beginTime:"2 PM",this.hotelStateService.HotelReviewDetails.hotelSummary.checkOutTime=e.hotel.checkoutInfo&&e.hotel.checkoutInfo.time?e.hotel.checkoutInfo.time:"11 AM",this.hotelStateService.HotelReviewDetails.hotelSummary.positionX=e.hotel.geoCode.lat,this.hotelStateService.HotelReviewDetails.hotelSummary.positionY=e.hotel.geoCode.long,this.hotelStateService.HotelReviewDetails.hotelSummary.pinCode=e.hotel.contact.address.postalCode,this.hotelStateService.HotelReviewDetails.hotelSummary.address="",e.hotel.contact.address.line1&&(this.hotelStateService.HotelReviewDetails.hotelSummary.address=e.hotel.contact.address.line1),e.hotel.contact.address.line2&&(this.hotelStateService.HotelReviewDetails.hotelSummary.address=this.hotelStateService.HotelReviewDetails.hotelSummary.address+" "+e.hotel.contact.address.line2),e.hotel.descriptions&&e.hotel.descriptions.length>0&&e.hotel.descriptions.forEach((function(e){"location"===e.type&&(o.hotelStateService.HotelReviewDetails.hotelSummary.hotelDescription=e.text)})),this.hotelStateService.HotelReviewDetails.hotelRoomDetails=[],e.hotel.facilities&&e.hotel.facilities.length>0&&e.hotel.facilities.forEach((function(e){var t={hotelDetailCode:"Amenity",hotelDetailName:"Amenity"};t.hotelDetailDescription=e.name,o.hotelStateService.HotelReviewDetails.hotelRoomDetails.push(t)})),e.hotel.policies&&e.hotel.policies.length>0&&e.hotel.policies.forEach((function(e){var t={hotelDetailCode:"Policies"};t.hotelDetailName=e.type&&""!==e.type?e.type.replace(/\_/g," "):"",t.hotelDetailDescription=""===e.text?"":e.text.replace(/
/g,"").replace(/<\/ul>/g,"").replace(/- /g,"").replace(/<\/li>/g,"").replace(/
/g,""),o.hotelStateService.HotelReviewDetails.hotelRoomDetails.push(t)})),e.hotel.nearByAttractions&&e.hotel.nearByAttractions.length>0&&e.hotel.nearByAttractions.forEach((function(e){var t={hotelDetailCode:"Attractions",hotelDetailName:"Attractions"};t.hotelDetailDescription=e.name,t.fieldOne=e.distance,t.fieldTwo=e.unit,t.fieldThree="",o.hotelStateService.HotelReviewDetails.hotelRoomDetails.push(t)})),e.hotel.checkinInfo&&e.hotel.checkinInfo.specialInstructions&&e.hotel.checkinInfo.specialInstructions.forEach((function(e){var t={hotelDetailCode:"CheckinSpecialInstructions"};t.hotelDetailDescription=e,o.hotelStateService.HotelReviewDetails.hotelRoomDetails.push(t)})),e.hotel.checkinInfo&&e.hotel.checkinInfo.instructions&&e.hotel.checkinInfo.instructions.forEach((function(e){var t={hotelDetailCode:"CheckinInstructions"};t.hotelDetailDescription=e,o.hotelStateService.HotelReviewDetails.hotelRoomDetails.push(t)})),this.hotelStateService.HotelReviewDetails.roomImages=[],e.hotel.heroImage?(t={}).imageUrl=e.hotel.heroImage:((t={}).imageUrl=c.a.cdnPath+"/assets/img/hotel/default-img.jpg",this.hotelStateService.HotelReviewDetails.roomImages.push(t)),e.hotel.images&&e.hotel.images.length>0&&e.hotel.images.forEach((function(e){if("XL"==e.size.toUpperCase()||"STANDARD"==e.size.toUpperCase()){var t={};t.imageUrl=e.url,t.imageName=e.category?e.category:e.caption,o.hotelStateService.HotelReviewDetails.roomImages.push(t)}}))),this.hotelStateService.reviewContentLoadingCompleted=!0,1==this.hotelStateService.reviewPricingLoadingCompleted&&this.UpdateReviewFullMergedStatus()},e.prototype.mergeHotelPricingResponseWithHotelReviewDetailsVM=function(e,t){var o=this;if(this.GSTHotelSuppliers=this.getHotelGSTSuppliers(),this.noPanCardReqList=this.getHotelNoPanReqSuppliers(),e&&e.roomGroup){var r=0;this.hotelStateService.HotelReviewDetails.hotelRoomReccomendations=[];var n={},i=[],l=0,s=0,c=0;n.taxSplitUp=[],n.AdditionalFee=[],n.freeCancellation=!0,n.freeBreakfast=!0,n.totalDiscount=0,n.otherCharges=0,n.totalVAT=0,n.cancellationPolicy={},e.roomGroup.length>0&&(n.cancellationPolicy.room=[],n.refundable="Refundable"==e.roomGroup[0].refundability?"R":"N",e.roomGroup.forEach((function(e){var m=0,h=0,u={},p=0;n.reccomendationsId=t,n.visibility=!0,n.roomRates=[],n.totalTcs=null!=e.tcsOnTotal&&null!=e.tcsOnTotal?e.tcsOnTotal:0,l+=e.baseRate,r+=e.totalRate,e.otherRateComponents&&e.otherRateComponents.length>0&&(e.otherRateComponents.find((function(e){return e.type&&"discount"==e.type.toLowerCase()}))&&(n.totalDiscount=n.totalDiscount+Math.abs(e.otherRateComponents.find((function(e){return e.type&&"discount"==e.type.toLowerCase()})).amount)),e.otherRateComponents.find((function(e){return e.type&&"promocode"==e.type.toLowerCase()}))&&(n.totalDiscount=n.totalDiscount+Math.abs(e.otherRateComponents.find((function(e){return e.type&&"promocode"==e.type.toLowerCase()})).amount)),e.otherRateComponents.find((function(e){return e.type&&"passoncommission"==e.type.toLowerCase()}))&&(n.totalDiscount=n.totalDiscount+Math.abs(e.otherRateComponents.find((function(e){return e.type&&"passoncommission"==e.type.toLowerCase()})).amount)),e.otherRateComponents.find((function(e){return e.type&&"markup"==e.type.toLowerCase()}))&&(n.otherCharges=n.otherCharges+e.otherRateComponents.find((function(e){return e.type&&"markup"==e.type.toLowerCase()})).amount),e.otherRateComponents.find((function(e){return e.type&&"fee"==e.type.toLowerCase()}))&&(n.otherCharges=n.otherCharges+e.otherRateComponents.find((function(e){return e.type&&"fee"==e.type.toLowerCase()})).amount),e.otherRateComponents.forEach((function(e){("vatonmarkup"==e.type.toLowerCase()||"vatonbftax"==e.type.toLowerCase()||"vatonbf"==e.type.toLowerCase())&&(n.totalVAT=n.totalVAT+Number(e.amount))}))),e.occupancies.forEach((function(t){var r={},l={};if(e.room){r.roomcount=e.roomCount,c+=e.roomCount,r.roomId=e.room.id,r.roomTypeID=e.id,r.name=e.room.name,r.descrptionDetails=e.room.description?e.room.description===e.room.name?"No data found":e.room.description:"No data found",r.numberOfRoomsAvailable=e.availability,r.isPackageRate=e.isPackageRate,r.supplierId=e.providerId,o.GSTHotelSuppliers&&(o.GSTHotelSuppliers.includes(e.providerId)?(n.IsEnableHotelGST=!0,r.IsEnableHotelGST=!0):(r.IsEnableHotelGST=!1,n.IsEnableHotelGST=!1));var s=void 0;o.noPanCardReqList&&(s=o.noPanCardReqList.includes(e.providerId)),s?(n.noPanCard=!0,o.panCardReq=!0):(n.noPanCard=!1,o.panCardReq=!1),m=e.baseRate,p=e.totalRate,l.name=e.room.name,l.isCancellation=!0,l.roomCancellationPolicy=[],e.room.facilities&&e.room.facilities.length>0&&(r.roomFacilities=[],e.room.facilities.forEach((function(e){var t={roomDetailCode:"Facilities",roomDetailName:"Facilities"};t.roomDetailDescription=e.description?e.name+" : "+e.description:e.name,r.roomFacilities.push(t)})))}if(r.refundable="Refundable"==e.refundability?"R":"N",n.refundability&&""!=n.refundability&&(n.refundable="Refundable"==n.refundability&&e.refundability?"R":"NonRefundable"!=n.refundability||e.refundability?"":"N"),n.payAtHotel=!!e.payAtHotel,r.supplierId=e.providerId,r.supplierName=e.providerName,r.baseFare=e.baseRate/e.roomCount,r.roomMoreDetails=[],r.roomInclusions=[],r.roomCancellationPolicy=[],r.essentialInfo=[],e.policies&&e.policies.length>0&&e.policies.forEach((function(e){var t={roomDetailCode:"Essential Info"};t.roomDetailName=e.type&&""!=e.type?e.type.replace(/_/g," "):"",t.roomDetailDescription=""===e.text?"":e.text.replace(//g,"").replace(/<\/ul>/g,"").replace(/- /g,"").replace(/<\/li>/g,"").replace(/
/g,""),r.isEssentialInfoAvailable=!0,r.essentialInfo.push(t)})),e.includes&&e.includes.length>0&&e.includes.forEach((function(e){var t={roomDetailCode:"Inclusion",roomDetailName:"Inclusion"};t.roomDetailDescription=e,r.roomInclusions.push(t)})),e.boardBasis&&e.boardBasis.description&&""!==e.boardBasis.description){var h={roomDetailCode:"Inclusion",roomDetailName:"Inclusion"};if(h.roomDetailDescription=e.boardBasis.description,e.boardBasis.description&&(!(e.boardBasis.description.replace(/\s/g,"").toLowerCase().trim().indexOf("breakfast")>-1)||e.boardBasis.description.replace(/\s/g,"").toLowerCase().trim().indexOf("nobreakfast")>-1||e.boardBasis.description.replace(/\s/g,"").toLowerCase().trim().indexOf("nofree")>-1||(r.FreeBreakfast=!0),n.freeBreakfast=!(!n.freeBreakfast||!r.FreeBreakfast)),r.roomInclusions){var u=r.roomInclusions.findIndex((function(t){return t.roomDetailDescription===e.boardBasis.description}));-1!=u&&r.roomInclusions.splice(u,1)}r.roomInclusions.push(h)}else n.freeBreakfast=!1;if(r.inclusions="Room Only",r.roomInclusions&&r.roomInclusions.length>0){var d="";r.roomInclusions.forEach((function(e){"Inclusion"===e.roomDetailCode&&e.roomDetailDescription&&(d=d+e.roomDetailDescription+", ")})),r.inclusions=""===d?"Room Only":d.trimRight().slice(0,-1)}e.cancellationPolicies&&e.cancellationPolicies.length>0?(n.cancellationPolicy.isCancelPolicyAvailable=!0,l.roomCancellationPolicy=[],l.roomZeroCancellationPolicy=[],r.cancellationTextArray=[],e.cancellationPolicies.forEach((function(e){e.rules&&e.rules.length>0?e.rules.forEach((function(e){var t={roomDetailCode:"CN"};t.from=a.utc(e.start).format("DD MMM YYYY h:mm:ss a").toString(),t.to=a.utc(e.end).format("DD MMM YYYY h:mm:ss a").toString(),"AMOUNT"==e.valueType.toUpperCase()?t.amount=Math.round(e.value):"PERCENT"!=e.valueType.toUpperCase()&&"NIGHTS"!=e.valueType.toUpperCase()&&"PERCENTAGE"!=e.valueType.toUpperCase()||(t.amount=Math.round(e.estimatedValue)),r.roomCancellationPolicy.push(t),r.isCancelPolicyAvailable=!0;var o=a(a(Date.now()).format("YYYY-MM-DD"));a(a(e.end).format("YYYY-MM-DD")).diff(o,"days"),0==e.value&&(r.FreeCancellation=!0),n.freeCancellation=!(!n.freeCancellation||!r.FreeCancellation),r.FreeCancellation&&!r.freeCancellationText&&(r.freeCancellationText="Free cancellation till "+a(e.end).format("DD MMM YYYY"));var i={};i.from=t.from,i.to=t.to,i.fromDate=a(t.from).format("ddd, DD MMM").toString(),i.fromTime=a(t.from).format("h:mm a").toString(),i.toDate=a(t.to).format("ddd, DD MMM").toString(),i.toTime=a(t.to).format("h:mm a").toString(),i.amount=t.amount,i.roomDetailCode=t.roomDetailCode,0==i.amount?l.roomZeroCancellationPolicy.push(i):l.roomCancellationPolicy.push(i)})):n.freeCancellation=!1,null!==e.text&&""!==e.text&&" "!==e.text&&r.cancellationTextArray.push(e.text)}))):n.freeCancellation=!1,r.allGuestsInfoRequired=e.allGuestsInfoRequired,r.capacity=t.numOfAdults+t.numOfChildren,r.numOfAdults=t.numOfAdults,r.numOfChildren=t.numOfChildren,r.childAgeArray=t.childAges;var f="",S="",R="";S="|"+t.occupancyId+"|"+t.numOfAdults+":A";for(var g=0;g0){for(S+=t.numOfChildren+":C",g=0;g0&&(f=f+t.childAges[g]+",",R+=":"+t.childAges[g]);S+=R+"|"}r.guestCode=S,r.occupancyId=t.occupancyId,n.cancellationPolicy.room.push(l),i.push(r)}));var d=0;e.taxes&&e.taxes.length>0&&e.taxes.forEach((function(e){h=e.amount;var t={};if(t.amount=e.amount,d=e.amount,t.description=e.description?e.description:"Tax",n.taxSplitUp)if(n.taxSplitUp.length>0&&n.taxSplitUp.filter((function(e){return e.description==t.description})).length>0){var o=0,a=0;n.taxSplitUp.forEach((function(e){e.description==t.description&&(o=a),a++})),n.taxSplitUp[o].amount=n.taxSplitUp[o].amount+t.amount}else{var r={};r.amount=e.amount,r.description=e.description?e.description:"Tax",r.roomCount=1,n.taxSplitUp.push(r)}s+=d})),e.additionalCharges&&e.additionalCharges.length>0&&e.additionalCharges.forEach((function(e){if(e.charge&&n.AdditionalFee)if(n.AdditionalFee.length>0&&n.AdditionalFee.filter((function(t){return t.description==e.charge.description||t.type==e.charge.type})).length>0){var t=0,a=0;n.AdditionalFee.forEach((function(o){o.description!=e.charge.description&&o.type!=e.charge.type||(t=a),a++})),n.AdditionalFee[t].amount=n.AdditionalFee[t].amount+e.charge.amount;var r="Excluded "+o.getNonUnknownDescrption(e.charge.description);n.AdditionalFee[t].Text=r}else{var i={};i.amount=e.charge.amount,i.currency=e.charge.currency,i.description=e.charge.description,i.frequency=e.charge.frequency,i.type=e.charge.type,i.unit=e.charge.unit,i.roomCount=1,r="Excluded "+o.getNonUnknownDescrption(e.charge.description),i.Text=r,n.AdditionalFee.push(i)}})),u.tax=Math.round(h),u.baseFare=Math.round(m),u.netFare=Math.round(p),n.roomRates.push(u)})));var m={};m.room=i,n.roomsDetails=m,n.totalFare=l,n.netFare=r,n.totalTax=s+n.otherCharges+n.totalTcs,n.roomCount=c,n.roomsDetails.room.sort((function(e,t){return e.occupancyId-t.occupancyId})),this.hotelStateService.noPanCard=this.panCardReq,this.hotelStateService.HotelReviewDetails.hotelRoomReccomendations.push(n),this.hotelStateService.reviewPricingLoadingCompleted=!0,1==this.hotelStateService.reviewContentLoadingCompleted&&this.UpdateReviewFullMergedStatus()}},e.prototype.unitOrFrequency=function(e,t){return(e&&"unknown"!=e.toLocaleLowerCase()?e:"")+(t&&"unknown"!=t.toLocaleLowerCase()?", "+t:"")},e.prototype.getNonUnknownDescrption=function(e){return e&&"unknown"!=e.toLocaleLowerCase()?e:""},e.prototype.UpdateReviewFullMergedStatus=function(){this.hotelStateService.reviewLoadingFullMergeCompleted=!0,this.hotelReviewAdapter.createHotelTravelItineraryFormGroup(),this.hsh.keepInSession(this.hsh.sessionStorageKey.HOTELPRICINGDETAILS,this.hotelStateService.HotelReviewDetails)},e.prototype.addMarkUp=function(e){return this.hotelStateService.HotelReviewDetails.hotelRoomReccomendations[0].markup=e,this.hotelStateService.HotelReviewDetails.hotelRoomReccomendations[0]},e.prototype.GetHotelFareSummary=function(e){var t={markup:0};if(e.hotelRoomReccomendations&&e.hotelRoomReccomendations.length>0){if(t.totalFare=e.hotelRoomReccomendations[0].totalFare,t.totalTax=e.hotelRoomReccomendations[0].totalTax,t.totalTax=t.totalTax+e.hotelRoomReccomendations[0].totalVAT,t.otherCharges=e.hotelRoomReccomendations[0].otherCharges,t.totalTcs=e.hotelRoomReccomendations[0].totalTcs,t.totalVAT=e.hotelRoomReccomendations[0].totalVAT,t.grossFare=e.hotelRoomReccomendations[0].netFare+e.hotelRoomReccomendations[0].totalDiscount,t.totalDiscount=this.generalState&&this.generalState.PromoDiscount>0?this.generalState.PromoDiscount:e.hotelRoomReccomendations[0].totalDiscount,e.hotelRoomReccomendations[0].taxSplitUp&&e.hotelRoomReccomendations[0].taxSplitUp.length>0){t.taxSplit=[];var o={amount:0};e.hotelRoomReccomendations[0].taxSplitUp.forEach((function(e){o.description=e.description,o.roomCount=e.roomCount,o.amount=o.amount+e.amount*e.roomCount})),t.taxSplit.push(o)}e.hotelRoomReccomendations[0].roomsDetails&&e.hotelRoomReccomendations[0].roomsDetails.room&&e.hotelRoomReccomendations[0].roomsDetails.room.length>0&&(t.roomRate=[],e.hotelRoomReccomendations[0].roomsDetails.room.forEach((function(e){var o={};o.roomName=e.name,o.baseFare=e.baseFare,t.roomRate.push(o)}))),t&&e.hotelRoomReccomendations[0]&&(e.hotelRoomReccomendations[0].markup>0?(t.markup=e.hotelRoomReccomendations[0].markup*e.hotelRoomReccomendations[0].roomCount,t.totalTax=e.hotelRoomReccomendations[0].totalTax>0?e.hotelRoomReccomendations[0].totalTax+e.hotelRoomReccomendations[0].markup*e.hotelRoomReccomendations[0].roomCount:e.hotelRoomReccomendations[0].markup*e.hotelRoomReccomendations[0].roomCount,t.NetFareAndMarkup=Math.round(t.grossFare-t.totalDiscount),t.NetFare=m.a.INDIA==c.a.AKBTTheme?Math.round(t.grossFare+e.hotelRoomReccomendations[0].markup*e.hotelRoomReccomendations[0].roomCount-t.totalDiscount):Math.ceil(t.grossFare+e.hotelRoomReccomendations[0].markup*e.hotelRoomReccomendations[0].roomCount-t.totalDiscount),this.hotelStateService.NetAmount=t.NetFareAndMarkup):(t.NetFareAndMarkup=Math.round(t.grossFare-t.totalDiscount),t.NetFare=m.a.INDIA==c.a.AKBTTheme?Math.round(t.grossFare-t.totalDiscount):Math.ceil(t.grossFare-t.totalDiscount),this.hotelStateService.NetAmount=t.NetFareAndMarkup))}return t},e.prototype.GetHotelFareSummaryB2B=function(e,t,o){var a={markup:0};return e.hotelRoomReccomendations&&e.hotelRoomReccomendations.length>0&&(a.totalFare=e.hotelRoomReccomendations[0].totalFare,a.totalTax=e.hotelRoomReccomendations[0].totalTax,a.otherCharges=e.hotelRoomReccomendations[0].otherCharges,a.grossFare=e.hotelRoomReccomendations[0].netFare+e.hotelRoomReccomendations[0].totalDiscount,a.totalDiscount=this.generalState&&this.generalState.PromoDiscount>0?this.generalState.PromoDiscount:e.hotelRoomReccomendations[0].totalDiscount,e.hotelRoomReccomendations[0].taxSplitUp&&e.hotelRoomReccomendations[0].taxSplitUp.length>0&&(a.taxSplit=[],e.hotelRoomReccomendations[0].taxSplitUp.forEach((function(e){var t={};t.description=e.description,t.roomCount=e.roomCount,t.amount=e.amount*e.roomCount,a.taxSplit.push(t)}))),e.hotelRoomReccomendations[0].roomsDetails&&e.hotelRoomReccomendations[0].roomsDetails.room&&e.hotelRoomReccomendations[0].roomsDetails.room.length>0&&(a.roomRate=[],e.hotelRoomReccomendations[0].roomsDetails.room.forEach((function(e){var t={};t.roomName=e.name,t.baseFare=e.baseFare,a.roomRate.push(t)}))),a&&e.hotelRoomReccomendations[0]&&(e.hotelRoomReccomendations[0].markup>0?(a.youEarn=a.totalDiscount+e.hotelRoomReccomendations[0].markup*t*o,a.markup=e.hotelRoomReccomendations[0].markup*t*o,a.totalTax=e.hotelRoomReccomendations[0].totalTax>0?e.hotelRoomReccomendations[0].totalTax+e.hotelRoomReccomendations[0].markup*t*o:e.hotelRoomReccomendations[0].markup*t*o,a.NetFareAndMarkup=Math.round(a.grossFare-a.totalDiscount),a.NetFare=m.a.INDIA==c.a.AKBTTheme?Math.round(a.grossFare+e.hotelRoomReccomendations[0].markup*t*o-a.totalDiscount):Math.ceil(a.grossFare+e.hotelRoomReccomendations[0].markup*t*o-a.totalDiscount),this.hotelStateService.NetAmount=a.NetFareAndMarkup):(a.youEarn=a.totalDiscount,a.NetFareAndMarkup=Math.round(a.grossFare-a.totalDiscount),a.NetFare=Math.round(a.grossFare-a.totalDiscount),this.hotelStateService.NetAmount=a.NetFareAndMarkup),a.netDeductableNetFare=Math.round(a.grossFare-a.totalDiscount))),a},Object.defineProperty(e.prototype,"ContactInfoForm",{get:function(){return this.hotelStateService.HotelTravelItineraryFormGrp.controls.ContactInfo},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"PromoCodeFormGroup",{get:function(){if(null!=this.hotelStateService.HotelTravelItineraryFormGrp)return this.hotelStateService.HotelTravelItineraryFormGrp.controls.Auxiliaries.controls[0].controls.Parameters.controls[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"PromoAmountFormGroup",{get:function(){if(null!=this.hotelStateService.HotelTravelItineraryFormGrp)return this.hotelStateService.HotelTravelItineraryFormGrp.controls.Auxiliaries.controls[0].controls.Parameters.controls[2]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"PromoIDFormGroup",{get:function(){if(null!=this.hotelStateService.HotelTravelItineraryFormGrp)return this.hotelStateService.HotelTravelItineraryFormGrp.controls.Auxiliaries.controls[0].controls.Parameters.controls[1]},enumerable:!0,configurable:!0}),e.prototype.createPreItinerary=function(){""===this.ContactInfoForm.controls.Email.value&&""!==this.generalState.ClientIDDecrypted&&this.ContactInfoForm.controls.Email.setValue(this.generalState.ClientIDDecrypted),this.generalState.UserDetails&&""===this.ContactInfoForm.controls.Mobile.value&&""!==this.generalState.UserDetails.MobNumber&&this.ContactInfoForm.controls.Mobile.setValue(this.generalState.UserDetails.MobNumber),this.generalState.GSTFormGroup&&(this.ContactInfoForm.controls.GSTCompanyName.setValue(this.generalState.GSTFormGroup.controls.GSTCompanyName.value),this.ContactInfoForm.controls.GSTTIN.setValue(this.generalState.GSTFormGroup.controls.GSTTIN.value)),this.generalState.PromoFormGroup&&this.generalState.PromoFormGroup.controls.Amount.value>0&&(""!=this.generalState.PromoFormGroup.controls.PromoCode.value||""!=this.generalState.PromoFormGroup.controls.PromoCodeApplied.value)&&this.PromoCodeFormGroup&&this.PromoAmountFormGroup&&this.PromoIDFormGroup&&(this.PromoCodeFormGroup.controls.Value.setValue(this.generalState.appliedPromo),this.PromoAmountFormGroup.controls.Value.setValue(this.generalState.PromoDiscount),this.PromoIDFormGroup.controls.Value.setValue(this.generalState.PromoFormGroup.controls.EmployeeID.value))},e.prototype.setTravellerState=function(e){this.generalState.hotelTravellerResponse.Travellers=e},e.prototype.updateTravelItineraruFormGroup=function(){void 0!==this.ContactInfoForm&&void 0!==this.generalState.ClientID&&(this.ContactInfoForm.controls.Email.setValue(this.generalState.UserDetails.Email),this.ContactInfoForm.controls.Mobile.setValue(this.generalState.UserDetails.MobNumber))},e.prototype.getHotelGSTSuppliers=function(){var e;if(this.generalState.WebSettings&&this.generalState.WebSettings[0]){var t=this.generalState.WebSettings[0].filter((function(e){return"GSTMandatoryHotelSuppliers"==e.Key}));null!=t&&t.length>0&&(e=t[0].Value)}return e},Object.defineProperty(e.prototype,"serviceEnquiryForm",{get:function(){return this.hotelStateService&&null!=this.hotelStateService.HotelTravelItineraryFormGrp&&null!=this.hotelStateService.HotelTravelItineraryFormGrp.controls.ServiceEnquiry?this.hotelStateService.HotelTravelItineraryFormGrp.controls.ServiceEnquiry:void 0},enumerable:!0,configurable:!0}),e.prototype.addOrRemoveServiceEnquiry=function(e){var t=this.serviceEnquiryForm.value.split(",").filter((function(e){return""!=e})),o="";t.includes(e)?t.splice(t.indexOf(e),1):t.push(e),t.length>0&&t.forEach((function(e,a){o+=e,a+10&&(e=o[0].Value)}return e},e.ngInjectableDef=h.cc({factory:function(){return new e(h.dc(r.a),h.dc(i.a),h.dc(l.b),h.dc(n.a),h.dc(u.g))},token:e,providedIn:"root"}),e}()},kQ89:function(e,t,o){}}]);