-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path649.f7da632241b8afe5.js
1 lines (1 loc) · 114 KB
/
649.f7da632241b8afe5.js
1
"use strict";(self.webpackChunkhotel_booking=self.webpackChunkhotel_booking||[]).push([[649],{4649:(Nt,C,c)=>{c.r(C),c.d(C,{UserModule:()=>qt});var u=c(6814),H=c(6707),m=c(4112),e=c(5879),g=c(4079),h=c(74),f=c(8014),a=c(6223),q=c(1532);const O=function(o){return{display:o}};function P(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"ul",23)(1,"li",24)(2,"span",25),e._uU(3,"Rooms"),e.qZA(),e.TgZ(4,"div",26)(5,"button",27),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.decrementRooms())}),e._UZ(6,"i",28),e.qZA(),e.TgZ(7,"span"),e._uU(8),e.qZA(),e.TgZ(9,"button",27),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.incrementRooms())}),e._UZ(10,"i",29),e.qZA()()(),e.TgZ(11,"li",24)(12,"span",25),e._uU(13,"Adults"),e.qZA(),e.TgZ(14,"div",26)(15,"button",27),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.decrementAdults())}),e._UZ(16,"i",28),e.qZA(),e.TgZ(17,"span"),e._uU(18),e.qZA(),e.TgZ(19,"button",27),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.incrementAdults())}),e._UZ(20,"i",29),e.qZA()()(),e.TgZ(21,"li",24)(22,"span",25),e._uU(23,"Children"),e.qZA(),e.TgZ(24,"div",26)(25,"button",27),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.decrementChildren())}),e._UZ(26,"i",28),e.qZA(),e.TgZ(27,"span"),e._uU(28),e.qZA(),e.TgZ(29,"button",27),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.incrementChildren())}),e._UZ(30,"i",29),e.qZA()()()()}if(2&o){const t=e.oxw();e.Q6J("ngStyle",e.VKq(4,O,t.isRoomsDropdownOpen?"block":"none")),e.xp6(8),e.Oqu(t.rooms),e.xp6(10),e.Oqu(t.adults),e.xp6(10),e.Oqu(t.children)}}let w=(()=>{class o{constructor(t){this.router=t,this.isRoomsDropdownOpen=!1,this.rooms=1,this.adults=2,this.children=0,this.dateCheckIn=new Date,this.dateCheckOut=new Date,this.isUserRegistered=!1}toggleRoomsDropdown(){this.isRoomsDropdownOpen=!this.isRoomsDropdownOpen}incrementRooms(){this.rooms++}decrementRooms(){this.rooms>1&&this.rooms--}incrementAdults(){this.adults++}decrementAdults(){this.adults>1&&this.adults--}incrementChildren(){this.children++}decrementChildren(){this.children>0&&this.children--}searchHotel(t){this.router.navigate(["user/allhotels"],{queryParams:{searchValue:t}})}static#e=this.\u0275fac=function(i){return new(i||o)(e.Y36(m.F0))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["app-search"]],decls:31,vars:7,consts:[[1,"flex","item-center","justify-between","bg-white","shadow-lg","p-6","gap-2","rounded-md"],[1,"flex-grow","flex","flex-col","item-start","justify-start","relative"],["for","destination",1,"pl-2","text-gray-500"],[1,"relative",2,"border","none"],["type","text","id","destination","placeholder","Where are you going?",1,"w-full","px-4","py-2","text-gray-800","font-bold","placeholder-gray-500","outline-none","border-b-2","border-gray-300","focus:outline-none","focus:placeholder-gray-400","focus:border-mySkyBlue","transition-all","duration-300"],["input",""],[1,"absolute","inset-y-0","left-0","flex","items-center","pl-2"],[1,"text-mySkyBlue","fas","fa-map-marker-alt"],[1,"hidden","lg:flex","flex-grow","item-center","justify-center"],[1,"relative","flex","flex-col","item-start","justify-start"],["for","checkin",1,"pl-2","text-gray-500"],["inputStyleClass","w-1/4 px-2 py-2 text-gray-800 rounded-none border-b-2 border-gray-300 font-bold placeholder-gray-500 shadow-none outline-none focus:outline-none focus:placeholder-gray-400 focus:border-mySkyBlue transition-all duration-300 ",3,"ngModel","showIcon","ngModelChange"],["for","checkout",1,"pl-2","text-gray-500"],[1,"hidden","xl:flex","flex-grow","items-center","justify-between"],[1,"relative","inline-block"],["for","Rooms and Guests",1,"pl-5","text-gray-500"],[1,"text-black","px-4","py-2","rounded-none","focus:outline-none","focus:shadow-outline-blue","hover:opacity-75","flex","items-center",3,"click"],[1,"fas","fa-bed","mr-2","text-lg"],[1,"fas","fa-caret-down","ml-2","text-xl"],["class"," w-full absolute right-0 dropdown-menu text-center dropdown-unfold dropdown-menu-right mt-2",3,"ngStyle",4,"ngIf"],[1,"flex-grow","flex","items-center","justify-between"],[1,"w-full","bg-mySkyBlue","text-white","px-6","py-3","rounded-md","hover-move-up","focus:outline-none","focus:bg-blue-600","transition-all","duration-300",3,"click"],[1,"text-white","fas","fa-search","mr-2"],[1,"w-full","absolute","right-0","dropdown-menu","text-center","dropdown-unfold","dropdown-menu-right","mt-2",3,"ngStyle"],[1,"flex","items-center","justify-between","p-2"],[1,"text-secondary","text-base","font-medium"],[1,"flex","items-center","justify-around","gap-2"],[1,"btn-icon","btn-outline-secondary","rounded-full","hover:bg-gray-200","transition-all","duration-300",3,"click"],[1,"fas","fa-minus","btn-icon__inner","text-2xl","p-1","px-2"],[1,"fas","fa-plus","btn-icon__inner","text-2xl","p-1","px-2"]],template:function(i,n){if(1&i){const r=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"label",2),e._uU(3,"Destination or Hotel"),e.qZA(),e.TgZ(4,"div",3),e._UZ(5,"input",4,5),e.TgZ(7,"div",6),e._UZ(8,"i",7),e.qZA()()(),e.TgZ(9,"div",8)(10,"div",9)(11,"label",10),e._uU(12,"Check-in"),e.qZA(),e.TgZ(13,"p-calendar",11),e.NdJ("ngModelChange",function(d){return n.dateCheckIn=d}),e.qZA()(),e.TgZ(14,"div",9)(15,"label",12),e._uU(16,"Check-out"),e.qZA(),e.TgZ(17,"p-calendar",11),e.NdJ("ngModelChange",function(d){return n.dateCheckOut=d}),e.qZA()()(),e.TgZ(18,"div",13)(19,"div",14)(20,"label",15),e._uU(21,"Rooms and Guests"),e.qZA(),e.TgZ(22,"button",16),e.NdJ("click",function(){return n.toggleRoomsDropdown()}),e._UZ(23,"i",17),e._uU(24),e._UZ(25,"i",18),e.qZA(),e.YNc(26,P,31,6,"ul",19),e.qZA()(),e.TgZ(27,"div",20)(28,"button",21),e.NdJ("click",function(){e.CHM(r);const d=e.MAs(6);return e.KtG(n.searchHotel(d.value))}),e._UZ(29,"i",22),e._uU(30,"Search "),e.qZA()()()}2&i&&(e.xp6(13),e.Q6J("ngModel",n.dateCheckIn)("showIcon",!0),e.xp6(4),e.Q6J("ngModel",n.dateCheckOut)("showIcon",!0),e.xp6(7),e.AsE(" ",n.rooms," Rooms - ",n.adults+n.children," Guests "),e.xp6(2),e.Q6J("ngIf",n.isRoomsDropdownOpen))},dependencies:[u.O5,u.PC,a.JJ,a.On,q.f]})}return o})(),Y=(()=>{class o{constructor(t){this.router=t}searchHotel(t){this.router.navigate(["user/allhotels"],{queryParams:{searchValue:t}})}onImageLoad(){const t=document.querySelectorAll(".blurred-image");t&&t.forEach(i=>{i.classList.add("loaded")})}static#e=this.\u0275fac=function(i){return new(i||o)(e.Y36(m.F0))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["app-top-destination"]],decls:109,vars:0,consts:[["id","top-destination",1,"relative","w-screen","flex","items-center","flex-col","justify-center","mt-8"],[1,"container","flex","items-center","justify-center","flex-col","mb-4"],[1,"text-3xl","font-bold","text-gray-600","text-center"],[1,"text-mySkyBlue","font-bold","m-0","p-0"],[1,"container","flex","flex-wrap","items-center","justify-center"],[1,"w-full","sm:w-1/2","md:w-1/2","lg:w-1/2","relative","p-2","pb-0","move-up","hover:shadow-sm","h-80","countryImageContainer","overflow-hidden",3,"click"],["src","https://www.justahotels.com/wp-content/uploads/2023/09/Maharashtra-scaled.jpg","alt","Maharashtra",1,"w-full","h-full","object-cover","blurred-image",3,"load"],[1,"relative","container","overflow-hidde"],[1,"details"],[1,"absolute","bottom-2","w-full","left-0","h-80","overflow-hidden",2,"background","linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent)"],[1,"relative","z-10"],[1,"text-white","text-decoration-none","font-bold","text-2xl","tracking-wider","block",3,"click"],[1,"flex","flex-col","items-start","gap-2","justify-start","dropdownImage","border-t-[1px]","mb-4"],[1,"text-decoration-none","hover:opacity-75","text-white",3,"click"],["src","https://images.pexels.com/photos/12750077/pexels-photo-12750077.jpeg?cs=srgb&dl=pexels-tauseef-khaliq-12750077.jpg&fm=jpg","alt","Jammu And Kashmir",1,"w-full","h-full","object-cover","blurred-image",3,"load"],[1,"flex","flex-col","items-start","gap-2","justify-start","dropdownImage","border-t-[1px]"],[1,"text-decoration-nonehover:opacity-75","hover:opacity-75","text-white",3,"click"],[1,"lg:w-1/4","md:w-1/2","sm:w-1/2","w-full","relative","p-2","pb-0","move-up","hover:shadow-sm","h-80","countryImageContainer","overflow-hidden",3,"click"],["src","https://www.hellovisit.in/uploads/0000/1/2021/12/12/family-holiday-packages-in-goa1.jpg","alt","Goa",1,"w-full","h-full","object-cover","blurred-image",3,"load"],["src","https://wallpapercave.com/wp/wp4528676.jpg","alt","Himachal Pradesh",1,"w-full","h-full","object-cover","blurred-image",3,"load"],[1,"text-decoration-none","text-white",3,"click"],["src","https://c4.wallpaperflare.com/wallpaper/115/795/754/the-sky-the-sun-clouds-trees-wallpaper-preview.jpg","alt","Keral and Karnataka",1,"w-full","h-full","object-cover","blurred-image",3,"load"],["src","https://images.pling.com/img/00/00/68/45/84/1926407/jaipur-nahargarh-rajasthan-india-2021-bing-4k-photo-wallpaper-1920x1080-10wallpaper.com.jpg","alt","Jaipur",1,"w-full","h-full","object-cover","blurred-image",3,"load"]],template:function(i,n){1&i&&(e.TgZ(0,"section",0)(1,"div",1)(2,"h2",2),e._uU(3,"Top Destination"),e.qZA(),e.TgZ(4,"span",3),e._uU(5,"_____"),e.qZA()(),e.TgZ(6,"div",4)(7,"div",5),e.NdJ("click",function(){return n.searchHotel("Maharashtra")}),e.TgZ(8,"img",6),e.NdJ("load",function(){return n.onImageLoad()}),e.qZA(),e.TgZ(9,"div",7)(10,"div",8),e._UZ(11,"div",9),e.TgZ(12,"div",10)(13,"a",11),e.NdJ("click",function(){return n.searchHotel("Maharashtra")}),e._uU(14,"Maharashtra"),e.qZA(),e.TgZ(15,"div",12)(16,"a",13),e.NdJ("click",function(){return n.searchHotel("Maharashtra")}),e._uU(17,"30 Hotel"),e.qZA(),e.TgZ(18,"a",13),e.NdJ("click",function(){return n.searchHotel("Maharashtra")}),e._uU(19,"48 Tours"),e.qZA(),e.TgZ(20,"a",13),e.NdJ("click",function(){return n.searchHotel("Maharashtra")}),e._uU(21,"46 Activity"),e.qZA(),e.TgZ(22,"a",13),e.NdJ("click",function(){return n.searchHotel("Maharashtra")}),e._uU(23,"32 Yacht"),e.qZA()()()()()(),e.TgZ(24,"div",5),e.NdJ("click",function(){return n.searchHotel("Jammu")}),e.TgZ(25,"img",14),e.NdJ("load",function(){return n.onImageLoad()}),e.qZA(),e.TgZ(26,"div",7)(27,"div",8),e._UZ(28,"div",9),e.TgZ(29,"div",10)(30,"a",11),e.NdJ("click",function(){return n.searchHotel("Jammu")}),e._uU(31,"Jammu And Kashmir "),e.qZA(),e.TgZ(32,"div",15)(33,"a",16),e.NdJ("click",function(){return n.searchHotel("Jammu")}),e._uU(34,"30 Hotel"),e.qZA(),e.TgZ(35,"a",13),e.NdJ("click",function(){return n.searchHotel("Jammu")}),e._uU(36,"48 Tours"),e.qZA(),e.TgZ(37,"a",13),e.NdJ("click",function(){return n.searchHotel("Jammu")}),e._uU(38,"46 Activity"),e.qZA(),e.TgZ(39,"a",13),e.NdJ("click",function(){return n.searchHotel("Jammu")}),e._uU(40,"32 Yacht"),e.qZA()()()()()(),e.TgZ(41,"div",17),e.NdJ("click",function(){return n.searchHotel("goa")}),e.TgZ(42,"img",18),e.NdJ("load",function(){return n.onImageLoad()}),e.qZA(),e.TgZ(43,"div",7)(44,"div",8),e._UZ(45,"div",9),e.TgZ(46,"div",10)(47,"a",11),e.NdJ("click",function(){return n.searchHotel("goa")}),e._uU(48,"Goa"),e.qZA(),e.TgZ(49,"div",15)(50,"a",13),e.NdJ("click",function(){return n.searchHotel("goa")}),e._uU(51,"30 Hotel"),e.qZA(),e.TgZ(52,"a",13),e.NdJ("click",function(){return n.searchHotel("goa")}),e._uU(53,"48 Tours"),e.qZA(),e.TgZ(54,"a",13),e.NdJ("click",function(){return n.searchHotel("goa")}),e._uU(55,"46 Activity"),e.qZA(),e.TgZ(56,"a",13),e.NdJ("click",function(){return n.searchHotel("goa")}),e._uU(57,"32 Yacht"),e.qZA()()()()()(),e.TgZ(58,"div",17),e.NdJ("click",function(){return n.searchHotel("himachal")}),e.TgZ(59,"img",19),e.NdJ("load",function(){return n.onImageLoad()}),e.qZA(),e.TgZ(60,"div",7)(61,"div",8),e._UZ(62,"div",9),e.TgZ(63,"div",10)(64,"a",11),e.NdJ("click",function(){return n.searchHotel("himachal")}),e._uU(65,"Himachal Pradesh"),e.qZA(),e.TgZ(66,"div",15)(67,"a",20),e.NdJ("click",function(){return n.searchHotel("himachal")}),e._uU(68,"30 Hotel"),e.qZA(),e.TgZ(69,"a",20),e.NdJ("click",function(){return n.searchHotel("himachal")}),e._uU(70,"48 Tours"),e.qZA(),e.TgZ(71,"a",20),e.NdJ("click",function(){return n.searchHotel("himachal")}),e._uU(72,"46 Activity"),e.qZA(),e.TgZ(73,"a",20),e.NdJ("click",function(){return n.searchHotel("himachal")}),e._uU(74,"32 Yacht"),e.qZA()()()()()(),e.TgZ(75,"div",17),e.NdJ("click",function(){return n.searchHotel("Keral")}),e.TgZ(76,"img",21),e.NdJ("load",function(){return n.onImageLoad()}),e.qZA(),e.TgZ(77,"div",7)(78,"div",8),e._UZ(79,"div",9),e.TgZ(80,"div",10)(81,"a",11),e.NdJ("click",function(){return n.searchHotel("Keral")}),e._uU(82,"Keral and Karnataka"),e.qZA(),e.TgZ(83,"div",15)(84,"a",13),e.NdJ("click",function(){return n.searchHotel("Keral")}),e._uU(85,"30 Hotel"),e.qZA(),e.TgZ(86,"a",13),e.NdJ("click",function(){return n.searchHotel("Keral")}),e._uU(87,"48 Tours"),e.qZA(),e.TgZ(88,"a",13),e.NdJ("click",function(){return n.searchHotel("Keral")}),e._uU(89,"46 Activity"),e.qZA(),e.TgZ(90,"a",13),e.NdJ("click",function(){return n.searchHotel("Keral")}),e._uU(91,"32 Yacht"),e.qZA()()()()()(),e.TgZ(92,"div",17),e.NdJ("click",function(){return n.searchHotel("rajastan")}),e.TgZ(93,"img",22),e.NdJ("load",function(){return n.onImageLoad()}),e.qZA(),e.TgZ(94,"div",7)(95,"div",8),e._UZ(96,"div",9),e.TgZ(97,"div",10)(98,"a",11),e.NdJ("click",function(){return n.searchHotel("rajastan")}),e._uU(99,"Jaipur"),e.qZA(),e.TgZ(100,"div",15)(101,"a",13),e.NdJ("click",function(){return n.searchHotel("rajastan")}),e._uU(102,"30 Hotel"),e.qZA(),e.TgZ(103,"a",13),e.NdJ("click",function(){return n.searchHotel("rajastan")}),e._uU(104,"48 Tours"),e.qZA(),e.TgZ(105,"a",13),e.NdJ("click",function(){return n.searchHotel("rajastan")}),e._uU(106,"46 Activity"),e.qZA(),e.TgZ(107,"a",13),e.NdJ("click",function(){return n.searchHotel("rajastan")}),e._uU(108,"32 Yacht"),e.qZA()()()()()()()())},styles:[".dropdownImage[_ngcontent-%COMP%]{opacity:0;transition:opacity .4s ease-in-out}.countryImageContainer[_ngcontent-%COMP%]:hover .dropdownImage[_ngcontent-%COMP%]{opacity:1}.details[_ngcontent-%COMP%]{position:absolute;bottom:-100px;width:100%;left:0;cursor:pointer;color:#fff;display:flex;align-items:flex-start;padding:1.5vw;justify-content:space-between;background:linear-gradient(to top,rgba(0,0,0,.9),transparent);gap:10px;transition:bottom .3s ease}.countryImageContainer[_ngcontent-%COMP%]:hover .details[_ngcontent-%COMP%]{bottom:0}.transparent-black-backdrop[_ngcontent-%COMP%]{background-color:#00000080}.loading-skeleton[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);background-size:200% 100%;animation:_ngcontent-%COMP%_loading 1.5s infinite}@keyframes _ngcontent-%COMP%_loading{to{background-position:-200% 100%}}.blurred-image-container[_ngcontent-%COMP%]{position:relative}.blurred-image[_ngcontent-%COMP%]{filter:blur(20px)}.blurred-image.loaded[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_blur-fade-in .5s forwards}@keyframes _ngcontent-%COMP%_blur-fade-in{0%{filter:blur(20px)}to{filter:blur(0)}}"]})}return o})();var _=c(5516),v=c(9862);let S=(()=>{class o{constructor(t){this.http=t,this.baseUrl=`${_.N.API_ENDPOINT}/hotels`,this.fakeTourDataURL=`${_.N.API_ENDPOINT}/fakeTourData`,this.fakeActivityDataURL=`${_.N.API_ENDPOINT}/fakeActivityData`}getAllHotels(){return this.http.get(this.baseUrl)}getHotelById(t){return this.http.get(`${this.baseUrl}/${t}`)}getFakeTourData(){return this.http.get(this.fakeTourDataURL)}getFakeActivityData(){return this.http.get(this.fakeActivityDataURL)}static#e=this.\u0275fac=function(i){return new(i||o)(e.LFG(v.eN))};static#t=this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),I=(()=>{class o{constructor(t,i){this.el=t,this.renderer=i,this.lazyLoadSrc=""}ngOnInit(){this.showLoadingSkeleton(),this.lazyLoadImage()}showLoadingSkeleton(){this.renderer.setStyle(this.el.nativeElement,"backdrop-filter","blur(10px)");const t=this.renderer.createElement("div");this.renderer.addClass(t,"loading-skeleton"),this.renderer.appendChild(this.el.nativeElement,t)}lazyLoadImage(){const i=new IntersectionObserver(([n])=>{n.isIntersecting&&(this.loadImage(),i.disconnect())},{root:null,rootMargin:"0px",threshold:.1});i.observe(this.el.nativeElement)}loadImage(){this.renderer.removeStyle(this.el.nativeElement,"backdrop-filter"),this.renderer.removeChild(this.el.nativeElement,this.el.nativeElement.querySelector(".loading-skeleton"));const t=new Image;t.src=this.lazyLoadSrc,t.onload=()=>{this.renderer.setAttribute(this.el.nativeElement,"src",this.lazyLoadSrc)},t.onerror=i=>{this.renderer.setAttribute(this.el.nativeElement,"src","path-to-error-placeholder-image")}}static#e=this.\u0275fac=function(i){return new(i||o)(e.Y36(e.SBq),e.Y36(e.Qsj))};static#t=this.\u0275dir=e.lG2({type:o,selectors:[["","appLazyLoad",""]],inputs:{lazyLoadSrc:"lazyLoadSrc"}})}return o})();function L(o,l){1&o&&(e.TgZ(0,"small",28),e._UZ(1,"i",38),e.qZA())}function E(o,l){1&o&&(e.TgZ(0,"small",28),e._UZ(1,"i",39),e.qZA())}function R(o,l){1&o&&(e.TgZ(0,"small",28),e._UZ(1,"i",40),e.qZA())}function Q(o,l){1&o&&(e.TgZ(0,"small"),e._UZ(1,"i",41),e.qZA())}function G(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"a",42),e.NdJ("click",function(){e.CHM(t);const n=e.oxw(3);return e.KtG(n.navigateToLogin())}),e._uU(1,"Add To Cart"),e.qZA()}}function z(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"a",42),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().$implicit,r=e.oxw(2);return e.KtG(r.addToCart(n))}),e._uU(1,"Add To Cart"),e.qZA()}}function $(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"a",43),e.NdJ("click",function(){e.CHM(t);const n=e.oxw(3);return e.KtG(n.navigateToLogin())}),e._uU(1,"Book Now"),e.qZA()}}function K(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"a",43),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().$implicit,r=e.oxw(2);return e.KtG(r.navigateToBooking(n))}),e._uU(1,"Book Now"),e.qZA()}}function V(o,l){if(1&o&&(e.TgZ(0,"div",13)(1,"div",14)(2,"div",15)(3,"div",16),e._UZ(4,"div",17)(5,"img",18),e.TgZ(6,"small",19),e._uU(7),e.ALo(8,"currency"),e.qZA()()(),e.TgZ(9,"div",20)(10,"div",21)(11,"h5",22),e._uU(12),e.qZA(),e.TgZ(13,"div",23),e._UZ(14,"small",24)(15,"small",24)(16,"small",24)(17,"small",24)(18,"small",24),e.qZA()(),e.TgZ(19,"div",25)(20,"small",26),e._UZ(21,"i",27),e._uU(22),e.qZA(),e.TgZ(23,"small",28),e._UZ(24,"i",29),e._uU(25),e.qZA(),e.YNc(26,L,2,0,"small",30),e.YNc(27,E,2,0,"small",30),e.YNc(28,R,2,0,"small",30),e.YNc(29,Q,2,0,"small",31),e.qZA(),e.TgZ(30,"p",32),e._UZ(31,"i",33),e._uU(32),e.qZA(),e.TgZ(33,"p",34),e._uU(34),e.qZA(),e.TgZ(35,"div",35),e.YNc(36,G,2,0,"a",36),e.YNc(37,z,2,0,"a",36),e.YNc(38,$,2,0,"a",37),e.YNc(39,K,2,0,"a",37),e.qZA()()()()),2&o){const t=l.$implicit,i=e.oxw(2);e.xp6(5),e.Q6J("lazyLoadSrc",t.image),e.xp6(2),e.hij("",e.gM2(8,15,t.price,"INR","symbol","1.0-2"),"/Night"),e.xp6(5),e.Oqu(t.hotelName.slice(0,25)),e.xp6(10),e.hij("",t.beds," "),e.xp6(3),e.hij("",t.bath," "),e.xp6(1),e.Q6J("ngIf",t.wifiEnabled),e.xp6(1),e.Q6J("ngIf",t.privatePool),e.xp6(1),e.Q6J("ngIf",t.tv),e.xp6(1),e.Q6J("ngIf",t.freeParking),e.xp6(3),e.hij(" ",t.hotelLocation.slice(0,30),""),e.xp6(2),e.Oqu(t.description.slice(0,180)),e.xp6(2),e.Q6J("ngIf",!i.isUserRegistered),e.xp6(1),e.Q6J("ngIf",i.isUserRegistered),e.xp6(1),e.Q6J("ngIf",!i.isUserRegistered),e.xp6(1),e.Q6J("ngIf",i.isUserRegistered)}}function W(o,l){if(1&o&&(e.TgZ(0,"div",11),e.YNc(1,V,40,20,"div",12),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",null==t.randomHotels?null:t.randomHotels.slice(0,6))}}function X(o,l){1&o&&(e.TgZ(0,"small",47),e._UZ(1,"i",38),e.qZA())}function ee(o,l){1&o&&(e.TgZ(0,"small",47),e._UZ(1,"i",39),e.qZA())}function te(o,l){1&o&&(e.TgZ(0,"small",47),e._UZ(1,"i",40),e.qZA())}function oe(o,l){1&o&&(e.TgZ(0,"small"),e._UZ(1,"i",41),e.qZA())}function ie(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",46),e.NdJ("click",function(){e.CHM(t);const n=e.oxw(2);return e.KtG(n.navigateToHotel())}),e.TgZ(1,"div",14)(2,"div",15)(3,"div",16),e._UZ(4,"div",17)(5,"img",18),e.TgZ(6,"small",19),e._uU(7),e.ALo(8,"currency"),e.qZA()()(),e.TgZ(9,"div",20)(10,"div",21)(11,"h5",22),e._uU(12),e.qZA(),e.TgZ(13,"div",23),e._UZ(14,"small",24)(15,"small",24)(16,"small",24)(17,"small",24)(18,"small",24),e.qZA()(),e.TgZ(19,"div",25)(20,"small",47),e._UZ(21,"i",27),e._uU(22),e.qZA(),e.TgZ(23,"small",47),e._UZ(24,"i",29),e._uU(25),e.qZA(),e.YNc(26,X,2,0,"small",48),e.YNc(27,ee,2,0,"small",48),e.YNc(28,te,2,0,"small",48),e.YNc(29,oe,2,0,"small",31),e.qZA(),e.TgZ(30,"p",34),e._uU(31),e.qZA(),e.TgZ(32,"div",35)(33,"a",49),e._uU(34,"View Detail"),e.qZA(),e.TgZ(35,"a",50),e._uU(36,"Book Now"),e.qZA()()()()()}if(2&o){const t=l.$implicit;e.xp6(5),e.Q6J("lazyLoadSrc",t.image),e.xp6(2),e.hij("",e.gM2(8,10,t.price,"INR","symbol","1.0-2"),"/Night"),e.xp6(5),e.Oqu(t.hotelName.slice(0,25)),e.xp6(10),e.hij("",t.beds," "),e.xp6(3),e.hij("",t.bath," "),e.xp6(1),e.Q6J("ngIf",t.wifiEnabled),e.xp6(1),e.Q6J("ngIf",t.privatePool),e.xp6(1),e.Q6J("ngIf",t.tv),e.xp6(1),e.Q6J("ngIf",t.freeParking),e.xp6(2),e.Oqu(t.description.slice(0,180))}}function ne(o,l){if(1&o&&(e.TgZ(0,"div",44),e.YNc(1,ie,37,15,"div",45),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",null==t.tourData?null:t.tourData.slice(0,6))}}function re(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",46),e.NdJ("click",function(){e.CHM(t);const n=e.oxw(2);return e.KtG(n.navigateToHotel())}),e.TgZ(1,"div",53)(2,"div",15)(3,"div"),e._UZ(4,"div",17)(5,"img",18),e.TgZ(6,"small",19),e._uU(7),e.ALo(8,"currency"),e.qZA()()(),e.TgZ(9,"div",20)(10,"div",21)(11,"h5",22),e._uU(12),e.qZA(),e._UZ(13,"div",23),e.qZA(),e.TgZ(14,"div",25)(15,"small",47),e._UZ(16,"i",54),e._uU(17),e.qZA(),e.TgZ(18,"small",47),e._UZ(19,"i",55),e._uU(20),e.qZA()(),e.TgZ(21,"p",34),e._uU(22),e.qZA(),e.TgZ(23,"div",35)(24,"a",49),e._uU(25,"View Detail"),e.qZA(),e.TgZ(26,"a",50),e._uU(27,"Book Now"),e.qZA()()()()()}if(2&o){const t=l.$implicit;e.xp6(5),e.Q6J("lazyLoadSrc",t.image),e.xp6(2),e.hij("",e.gM2(8,6,t.price,"INR","symbol","1.0-2"),"/Night"),e.xp6(5),e.Oqu(t.activityName.slice(0,25)),e.xp6(5),e.Oqu(t.location),e.xp6(3),e.Oqu(t.duration),e.xp6(2),e.Oqu(t.description.slice(0,180))}}function le(o,l){if(1&o&&(e.TgZ(0,"div",51),e.YNc(1,re,28,11,"div",52),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",null==t.activityData?null:t.activityData.slice(0,6))}}function ae(o,l){1&o&&(e.TgZ(0,"small",28),e._UZ(1,"i",38),e.qZA())}function se(o,l){1&o&&(e.TgZ(0,"small",28),e._UZ(1,"i",39),e.qZA())}function ce(o,l){1&o&&(e.TgZ(0,"small",28),e._UZ(1,"i",40),e.qZA())}function de(o,l){1&o&&(e.TgZ(0,"small"),e._UZ(1,"i",41),e.qZA())}function ue(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"a",42),e.NdJ("click",function(){e.CHM(t);const n=e.oxw(3);return e.KtG(n.navigateToLogin())}),e._uU(1,"Add To Cart"),e.qZA()}}function me(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"a",42),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().$implicit,r=e.oxw(2);return e.KtG(r.addToCart(n))}),e._uU(1,"Add To Cart"),e.qZA()}}function pe(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"a",43),e.NdJ("click",function(){e.CHM(t);const n=e.oxw(3);return e.KtG(n.navigateToLogin())}),e._uU(1,"Book Now"),e.qZA()}}function ge(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"a",43),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().$implicit,r=e.oxw(2);return e.KtG(r.navigateToBooking(n))}),e._uU(1,"Book Now"),e.qZA()}}function he(o,l){if(1&o&&(e.TgZ(0,"div",13)(1,"div",14)(2,"div",15)(3,"div",16),e._UZ(4,"div",17)(5,"img",18),e.TgZ(6,"small",19),e._uU(7),e.ALo(8,"currency"),e.qZA()()(),e.TgZ(9,"div",20)(10,"div",21)(11,"h5",22),e._uU(12),e.qZA(),e.TgZ(13,"div",23),e._UZ(14,"small",24)(15,"small",24)(16,"small",24)(17,"small",24)(18,"small",24),e.qZA()(),e.TgZ(19,"div",25)(20,"small",26),e._UZ(21,"i",27),e._uU(22),e.qZA(),e.TgZ(23,"small",28),e._UZ(24,"i",29),e._uU(25),e.qZA(),e.YNc(26,ae,2,0,"small",30),e.YNc(27,se,2,0,"small",30),e.YNc(28,ce,2,0,"small",30),e.YNc(29,de,2,0,"small",31),e.qZA(),e.TgZ(30,"p",32),e._UZ(31,"i",33),e._uU(32),e.qZA(),e.TgZ(33,"p",34),e._uU(34),e.qZA(),e.TgZ(35,"div",35),e.YNc(36,ue,2,0,"a",36),e.YNc(37,me,2,0,"a",36),e.YNc(38,pe,2,0,"a",37),e.YNc(39,ge,2,0,"a",37),e.qZA()()()()),2&o){const t=l.$implicit,i=e.oxw(2);e.xp6(5),e.Q6J("lazyLoadSrc",t.image),e.xp6(2),e.hij("",e.gM2(8,15,t.price,"INR","symbol","1.0-2"),"/Night"),e.xp6(5),e.Oqu(t.hotelName.slice(0,25)),e.xp6(10),e.hij("",t.beds," "),e.xp6(3),e.hij("",t.bath," "),e.xp6(1),e.Q6J("ngIf",t.wifiEnabled),e.xp6(1),e.Q6J("ngIf",t.privatePool),e.xp6(1),e.Q6J("ngIf",t.tv),e.xp6(1),e.Q6J("ngIf",t.freeParking),e.xp6(3),e.hij(" ",t.hotelLocation.slice(0,30),""),e.xp6(2),e.Oqu(t.description.slice(0,180)),e.xp6(2),e.Q6J("ngIf",!i.isUserRegistered),e.xp6(1),e.Q6J("ngIf",i.isUserRegistered),e.xp6(1),e.Q6J("ngIf",!i.isUserRegistered),e.xp6(1),e.Q6J("ngIf",i.isUserRegistered)}}function fe(o,l){if(1&o&&(e.TgZ(0,"div",56),e.YNc(1,he,40,20,"div",12),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",null==t.allHotels?null:t.allHotels.slice(0,6))}}let _e=(()=>{class o{constructor(t,i,n){this.hotelsDataService=t,this.router=i,this.dataSharing=n,this.selectedCategory=null,this.isUserRegistered=!1,this.selectedCategory="hotel",this.dataSharing.userIsRegistered$.subscribe(r=>{this.isUserRegistered=r})}ngOnInit(){this.hotelsDataService.getAllHotels().subscribe({next:t=>{this.allHotels=t,this.randomHotels=[...t],this.sortRandomHotels(),console.log(t)},error:t=>{console.error("Error fetching all hotels:",t)}}),this.getTourData(),this.getActivityData()}showData(t){this.selectedCategory=t,"rental"===t?this.sortRandomHotels():"tours"===t?this.tourData||this.getTourData():"activity"===t&&(this.activityData||this.getActivityData())}getTourData(){this.hotelsDataService.getFakeTourData().subscribe({next:t=>{this.tourData=t,console.log(t)},error:t=>{console.error("Error fetching tour data:",t)}})}getActivityData(){this.hotelsDataService.getFakeActivityData().subscribe({next:t=>{this.activityData=t,console.log(t)},error:t=>{console.error("Error fetching activity data:",t)}})}sortRandomHotels(){this.randomHotels=[...this.allHotels],this.shuffleArray(this.randomHotels)}shuffleArray(t){let n,i=t.length;for(;0!==i;)n=Math.floor(Math.random()*i),i--,[t[i],t[n]]=[t[n],t[i]];return t}addToCart(t){this.router.navigate(["user/cart"],{queryParams:{hotelId:t.id}})}navigateToLogin(){this.router.navigateByUrl("/user/login")}navigateToBooking(t){this.router.navigate(["user/hotelDetails"],{queryParams:{hotelId:t.id}})}navigateToHotel(){this.router.navigateByUrl("/user/allhotels")}static#e=this.\u0275fac=function(i){return new(i||o)(e.Y36(S),e.Y36(m.F0),e.Y36(g.j))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["app-trending"]],decls:20,vars:4,consts:[["id","trending",1,"relative","w-screen","flex","items-center","flex-col","justify-center","my-8"],[1,"container","mb-4","flex","items-center","justify-center","flex-col"],[1,"text-3xl","font-bold","text-gray-600","text-center"],[1,"text-mySkyBlue","font-bold","m-0","p-0"],[1,"w-screen"],[1,"container","flex","items-center","justify-center","space-x-4","mb-6","p-2"],[1,"bg-mySkyBlue","text-white","px-4","font-medium","py-2","rounded-full","hover:bg-blue-500","active:bg-blue-500","focus:outline-none","focus:bg-blue-500","transition-all","duration-300","hover:shadow-lg",3,"click"],["id","hotelData","class","container flex flex-wrap g-4",4,"ngIf"],["id","toursData","class","container flex flex-wrap g-4",4,"ngIf"],["id","activityData","class","container flex flex-wrap g-4",4,"ngIf"],["id","rentalData","class","container flex flex-wrap g-4",4,"ngIf"],["id","hotelData",1,"container","flex","flex-wrap","g-4"],["class","lg:w-1/3 pr-4 pl-4 md:w-1/2 mb-4 wow fadeInUp","data-wow-delay","0.1s",4,"ngFor","ngForOf"],["data-wow-delay","0.1s",1,"lg:w-1/3","pr-4","pl-4","md:w-1/2","mb-4","wow","fadeInUp"],[1,"room-item","shadow","rounded","overflow-hidden"],[1,"relative"],[1,""],[1,"loading-skeleton"],["appLazyLoad","","alt","",1,"w-full","h-[240px]","transition-transform","transform","hover:scale-105",3,"lazyLoadSrc"],[1,"absolute","start-0","top-100","translate-middle-y","bg-mySkyBlue","text-white","rounded","py-1","px-3","ms-4"],[1,"p-6","mt-2"],[1,"flex","justify-between","mb-3"],[1,"mb-0"],[1,"ps-2"],[1,"fa","fa-star","text-mySkyBlue"],[1,"flex","mb-3"],[1,"border-end","pr-2"],[1,"fa","fa-bed","text-mySkyBlue","me-2"],[1,"border-end","px-2"],[1,"fa","fa-bath","text-mySkyBlue","me-2"],["class","border-end px-2",4,"ngIf"],[4,"ngIf"],[1,"font-semibold","mb-2"],[1,"fas","fa-map-marker-alt","text-mySkyBlue","me-2"],[1,"text-body","mb-3"],[1,"flex","justify-between"],["class","inline-block align-middle text-center select-none border font-normal whitespace-no-wrap no-underline leading-tight text-xs bg-mySkyBlue text-white hover:bg-mySkyBlue rounded py-2 px-4 move-up",3,"click",4,"ngIf"],["class","inline-block align-middle text-center select-none border font-normal whitespace-no-wrap no-underline leading-tight text-xs bg-gray-800 text-white hover:bg-gray-900 rounded py-2 px-4 move-up",3,"click",4,"ngIf"],[1,"fa","fa-wifi","text-mySkyBlue","me-2"],[1,"fa","fa-swimming-pool","text-mySkyBlue","me-2"],[1,"fa","fa-tv","text-mySkyBlue","me-2"],[1,"fa","fa-car","text-mySkyBlue","me-2"],[1,"inline-block","align-middle","text-center","select-none","border","font-normal","whitespace-no-wrap","no-underline","leading-tight","text-xs","bg-mySkyBlue","text-white","hover:bg-mySkyBlue","rounded","py-2","px-4","move-up",3,"click"],[1,"inline-block","align-middle","text-center","select-none","border","font-normal","whitespace-no-wrap","no-underline","leading-tight","text-xs","bg-gray-800","text-white","hover:bg-gray-900","rounded","py-2","px-4","move-up",3,"click"],["id","toursData",1,"container","flex","flex-wrap","g-4"],["class","lg:w-1/3 pr-4 pl-4 md:w-1/2 mb-4 wow fadeInUp","data-wow-delay","0.1s",3,"click",4,"ngFor","ngForOf"],["data-wow-delay","0.1s",1,"lg:w-1/3","pr-4","pl-4","md:w-1/2","mb-4","wow","fadeInUp",3,"click"],[1,"border-end","me-3","pe-3"],["class","border-end me-3 pe-3",4,"ngIf"],[1,"inline-block","align-middle","text-center","select-none","border","font-normal","whitespace-no-wrap","no-underline","leading-tight","text-xs","bg-mySkyBlue","text-white","hover:bg-mySkyBlue","rounded","py-2","px-4","move-up"],[1,"inline-block","align-middle","text-center","select-none","border","font-normal","whitespace-no-wrap","no-underline","leading-tight","text-xs","bg-gray-800","text-white","hover:bg-gray-900","rounded","py-2","px-4","move-up"],["id","activityData",1,"container","flex","flex-wrap","g-4"],["class","lg:w-1/3 pr-4 pl-4 md:w-1/2 mb-4 wow fadeInUp","data-wow-delay","0.1s",3,"click",4,"ngFor","ngForOf"],[1,"activity-item","shadow","rounded","overflow-hidden"],[1,"fa","fa-location-arrow","text-mySkyBlue","me-2"],[1,"fa","fa-clock","text-mySkyBlue","me-2"],["id","rentalData",1,"container","flex","flex-wrap","g-4"]],template:function(i,n){1&i&&(e.TgZ(0,"section",0)(1,"div",1)(2,"h2",2),e._uU(3,"Trending"),e.qZA(),e.TgZ(4,"span",3),e._uU(5,"_____"),e.qZA()(),e.TgZ(6,"div",4)(7,"div",5)(8,"button",6),e.NdJ("click",function(){return n.showData("hotel")}),e._uU(9,"Hotels"),e.qZA(),e.TgZ(10,"button",6),e.NdJ("click",function(){return n.showData("tours")}),e._uU(11,"Tours"),e.qZA(),e.TgZ(12,"button",6),e.NdJ("click",function(){return n.showData("activity")}),e._uU(13,"Activity"),e.qZA(),e.TgZ(14,"button",6),e.NdJ("click",function(){return n.showData("rental")}),e._uU(15,"Rental"),e.qZA()(),e.YNc(16,W,2,1,"div",7),e.YNc(17,ne,2,1,"div",8),e.YNc(18,le,2,1,"div",9),e.YNc(19,fe,2,1,"div",10),e.qZA()()),2&i&&(e.xp6(16),e.Q6J("ngIf","hotel"===n.selectedCategory),e.xp6(1),e.Q6J("ngIf","tours"===n.selectedCategory),e.xp6(1),e.Q6J("ngIf","activity"===n.selectedCategory),e.xp6(1),e.Q6J("ngIf","rental"===n.selectedCategory))},dependencies:[u.sg,u.O5,I,u.H9],styles:[".loading-skeleton[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);background-size:200% 100%;animation:_ngcontent-%COMP%_loading 1.5s infinite}@keyframes _ngcontent-%COMP%_loading{to{background-position:-200% 100%}}.cdk-drag[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}"]})}return o})(),xe=(()=>{class o{constructor(t,i){this.router=t,this.dataSharing=i,this.isRoomsDropdownOpen=!1,this.rooms=1,this.adults=2,this.children=0,this.isUserRegistered=!1,this.activeIndex=0;const n=new Date;this.dateCheckIn=n,this.dateCheckOut=n}ngOnInit(){this.dataSharing.userIsRegistered$.subscribe(t=>{this.isUserRegistered=t})}toggleRoomsDropdown(){this.isRoomsDropdownOpen=!this.isRoomsDropdownOpen}incrementRooms(){this.rooms++}decrementRooms(){this.rooms>1&&this.rooms--}incrementAdults(){this.adults++}decrementAdults(){this.adults>1&&this.adults--}incrementChildren(){this.children++}decrementChildren(){this.children>0&&this.children--}SearchHotel(t){this.router.navigate(["user/allhotels"],{queryParams:{searchValue:t}})}static#e=this.\u0275fac=function(i){return new(i||o)(e.Y36(m.F0),e.Y36(g.j))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["app-home"]],decls:89,vars:0,consts:[["id","header",1,"bg-cover","bg-center","w-full","h-full"],["id","background-Dark",1,"absolute","w-full","h-[80vh]","z-[-1]"],[1,"absolute","inset-0","bg-black",2,"opacity","50%"],["src","https://www.ihcltata.com/content/dam/tajhotels/ihcl/taj/Taj-banner.jpg","alt","",1,"w-full","h-[80vh]","object-cover"],["id","hero-section",1,"hero","relative","flex","flex-col","items-center","justify-center"],["id","serch-container",1,"container","h-[80vh]","md:h-[80vh]","flex","items-center","justify-center","text-white","text-center"],[1,"flex","items-center","justify-center","flex-col"],[1,"text-[7vw]","md:text-[5vw]","font-extrabold","mb-4","font-serif"],[1,"text-[3vw]","md:text-[1.5vw]","font-semibold","capitalize"],[1,"container","absolute","bottom-10","searchContainer"],["id","teavel-tips",1,"w-full","h-96","flex","items-center","justify-center","text-center","text-white",2,"background-image","url(https://mytravel.madrasthemes.com/wp-content/uploads/2022/02/img11920500.jpeg)"],[1,"flex","flex-col","items-center","justify-center","gap-2"],[1,"text-4xl","font-bold","mb-2"],[1,"text-lg","mb-0","px-md-3","px-lg-0"],[1,"text-lg","px-md-3","px-lg-0","mb-4"],["role","button",1,"border-2","border-white","text-decoration-none","hover:bg-white","text-white","py-2","px-4","transition-transform","transform","hover:scale-105"],[1,"text-lg","hover:text-gray-600"],["id","services",1,"w-full","bg-img-hero","rounded","py-3","mt-4"],[1,"container","mx-auto","text-center","space-1"],[1,"container","mb-4"],[1,"text-3xl","font-bold","text-gray-600","text-center"],[1,"text-mySkyBlue","font-bold","m-0","p-0"],[1,"flex","flex-wrap","justify-center","-mx-2","mt-4"],[1,"w-full","md:w-1/2","lg:w-1/3","px-2","mt-4"],["href","https://mytravel.madrasthemes.com/blog/","role","button",1,"flex","items-center","justify-center","p-3","text-decoration-none","border","border-white","rounded","min-w-200","transition-transform","transform","hover:scale-105"],[1,"fas","fa-dollar-sign","text-5xl","mb-2","text-mySkyBlue"],[1,"text-gray-600","mb-2"],[1,"text-gray-500"],[1,"material-symbols-outlined","text-5xl","mb-2","text-mySkyBlue"],[1,"fas","fa-globe","text-5xl","mb-2","text-mySkyBlue"],["id","download-app",1,"bg-mySkyBlue","py-5"],[1,"container","mx-auto","flex","justify-between","items-center","mt-4"],[1,"w-full","md:w-1/2","text-center","md:text-left","mb-4","md:mb-0","md:mt-9"],[1,"text-2xl","md:text-4xl","font-medium","text-white","mb-2"],[1,"text-lg","text-white","mb-4","md:mb-5","pb-2"],[1,"flex","items-center","justify-center","w-full"],[1,"flex","items-center","justify-between","gap-2","btn-outline-white","btn-wide","rounded","transition","hover:bg-white","duration-300","border","py-2","px-4","mr-2"],[1,"span"],["src","https://logowik.com/content/uploads/images/apple-black8038.jpg","alt","",1,"w-12","h-12","rounded-full"],[1,"textContainer"],[1,"font-bold"],[1,"block","font-normal","text-sm"],["src","https://static.vecteezy.com/system/resources/previews/022/613/026/original/google-play-store-icon-logo-symbol-free-png.png","alt","",1,"w-12","h-12","rounded-full"],[1,"hidden","md:block","w-1/2","text-right"],["loading","lazy","decoding","async","src","https://mytravel.madrasthemes.com/wp-content/uploads/2022/02/img3.png","alt","",1,"img-fluid"]],template:function(i,n){1&i&&(e.TgZ(0,"header",0)(1,"div",1),e._UZ(2,"div",2)(3,"img",3),e.qZA(),e._UZ(4,"app-header"),e.TgZ(5,"div",4)(6,"div",5)(7,"div",6)(8,"h1",7),e._uU(9,"Let's Explore The World Together!"),e.qZA(),e.TgZ(10,"p",8),e._uU(11,"Find awesome hotels, tours, cars, and activities in India"),e.qZA()()(),e.TgZ(12,"div",9),e._UZ(13,"app-search"),e.qZA()()(),e._UZ(14,"app-top-destination")(15,"app-trending"),e.TgZ(16,"section",10)(17,"div",11)(18,"h6",12),e._uU(19,"Travel Tips"),e.qZA(),e.TgZ(20,"p",13),e._uU(21,"Northern Ireland\u2019s is now contingent. Britain is getting a divorce "),e.qZA(),e.TgZ(22,"p",13),e._uU(23," Northern Ireland is being offered a trial separation for Britain there is a "),e.qZA(),e.TgZ(24,"p",14),e._uU(25," one"),e.qZA(),e.TgZ(26,"a",15)(27,"span",16),e._uU(28,"Get Inspired"),e.qZA()()()(),e.TgZ(29,"section",17)(30,"div",18)(31,"div",19)(32,"h2",20),e._uU(33,"Why Choose"),e.qZA(),e.TgZ(34,"span",21),e._uU(35,"_____"),e.qZA()(),e.TgZ(36,"div",22)(37,"div",23)(38,"a",24)(39,"div"),e._UZ(40,"i",25),e.TgZ(41,"h5",26),e._uU(42,"Competitive Pricing"),e.qZA(),e.TgZ(43,"p",27),e._uU(44,"With 500+ suppliers and the purchasing power of 300 million members, mytravel.com can save you more!"),e.qZA()()()(),e.TgZ(45,"div",23)(46,"a",24)(47,"div")(48,"span",28),e._uU(49," social_leaderboard "),e.qZA(),e.TgZ(50,"h5",26),e._uU(51,"Award-Winning Service"),e.qZA(),e.TgZ(52,"p",27),e._uU(53,"Travel worry-free knowing that we're here if you need us, 24 hours a day"),e.qZA()()()(),e.TgZ(54,"div",23)(55,"a",24)(56,"div"),e._UZ(57,"i",29),e.TgZ(58,"h5",26),e._uU(59,"Worldwide Coverage"),e.qZA(),e.TgZ(60,"p",27),e._uU(61,"Over 1,200,000 hotels in more than 200 countries and regions & flights to over 5,000 cities"),e.qZA()()()()()()(),e.TgZ(62,"section",30)(63,"div",31)(64,"div",32)(65,"h5",33),e._uU(66,"Explore the World with Our App"),e.qZA(),e.TgZ(67,"p",34),e._uU(68," Embark on a journey like never before! Download our app and unlock a world of travel experiences. From breathtaking destinations to seamless trip planning, your next adventure is just a tap away. "),e.qZA(),e.TgZ(69,"div",35)(70,"div",36)(71,"div",37),e._UZ(72,"img",38),e.qZA(),e.TgZ(73,"div",39)(74,"strong",40),e._uU(75,"App Store"),e.qZA(),e.TgZ(76,"span",41),e._uU(77,"Available on the"),e.qZA()()(),e.TgZ(78,"div",36)(79,"div",37),e._UZ(80,"img",42),e.qZA(),e.TgZ(81,"div",39)(82,"strong",40),e._uU(83,"Google Play"),e.qZA(),e.TgZ(84,"span",41),e._uU(85,"Get it on"),e.qZA()()()()(),e.TgZ(86,"div",43),e._UZ(87,"img",44),e.qZA()()(),e._UZ(88,"app-footer"))},dependencies:[h.G,f.c,w,Y,_e],styles:["[_ngcontent-%COMP%]:enter{transition:opacity .5s}[_ngcontent-%COMP%]:leave{transition:opacity .5s}.dropdownImage[_ngcontent-%COMP%]{opacity:0;transition:opacity .4s ease-in-out}.countryImageContainer[_ngcontent-%COMP%]:hover .dropdownImage[_ngcontent-%COMP%]{opacity:1}.details[_ngcontent-%COMP%]{position:absolute;bottom:-100px;width:100%;left:0;cursor:pointer;color:#fff;display:flex;align-items:flex-start;padding:1.5vw;justify-content:space-between;background:linear-gradient(to top,rgba(0,0,0,.9),transparent);gap:10px;transition:bottom .3s ease}.countryImageContainer[_ngcontent-%COMP%]:hover .details[_ngcontent-%COMP%]{bottom:0}.transparent-black-backdrop[_ngcontent-%COMP%]{background-color:#00000080}"]})}return o})();var N=c(6306),ve=c(4716),be=c(6232),Ze=c(6022),ye=c(4227);let we=(()=>{class o{transform(t,i){return t&&i?t.filter(n=>JSON.stringify(n).toLowerCase().includes(i.toLowerCase())):t}static#e=this.\u0275fac=function(i){return new(i||o)};static#t=this.\u0275pipe=e.Yjl({name:"search",type:o,pure:!0})}return o})();function Te(o,l){1&o&&(e.ynx(0),e.TgZ(1,"div",41),e._UZ(2,"p-skeleton",42)(3,"p-skeleton",43)(4,"p-skeleton",44)(5,"p-skeleton",45)(6,"p-skeleton",46)(7,"p-skeleton",46)(8,"p-skeleton",46)(9,"p-skeleton",46),e.TgZ(10,"div",47),e._UZ(11,"p-skeleton",48)(12,"p-skeleton",48),e.qZA()(),e.BQk())}const ke=function(){return[]};function Ue(o,l){1&o&&(e.TgZ(0,"div",39),e.YNc(1,Te,13,0,"ng-container",40),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngForOf",e.DdM(1,ke).constructor(30)))}function Ae(o,l){1&o&&(e.TgZ(0,"small",63),e._UZ(1,"i",73),e.qZA())}function Ce(o,l){1&o&&(e.TgZ(0,"small",63),e._UZ(1,"i",74),e.qZA())}function qe(o,l){1&o&&(e.TgZ(0,"small",63),e._UZ(1,"i",75),e.qZA())}function Se(o,l){1&o&&(e.TgZ(0,"small",76),e._UZ(1,"i",77),e.qZA())}function Ie(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"a",78),e.NdJ("click",function(){e.CHM(t);const n=e.oxw(2);return e.KtG(n.navigateToLogin())}),e._uU(1,"Add To Cart"),e.qZA()}}function Ne(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"a",78),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().$implicit,r=e.oxw();return e.KtG(r.addToCart(n))}),e._uU(1,"Add To Cart"),e.qZA()}}function De(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"a",79),e.NdJ("click",function(){e.CHM(t);const n=e.oxw(2);return e.KtG(n.navigateToLogin())}),e._uU(1,"Book Now"),e.qZA()}}function Fe(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"a",79),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().$implicit,r=e.oxw();return e.KtG(r.navigateToBooking(n))}),e._uU(1,"Book Now"),e.qZA()}}function Je(o,l){if(1&o&&(e.TgZ(0,"div",49)(1,"div",50)(2,"div",10)(3,"div",51),e._UZ(4,"div",52)(5,"img",53),e.TgZ(6,"small",54),e._uU(7),e.ALo(8,"currency"),e.qZA()()(),e.TgZ(9,"div",55)(10,"div",56)(11,"h5",57),e._uU(12),e.qZA(),e.TgZ(13,"div",58),e._UZ(14,"small",59)(15,"small",59)(16,"small",59)(17,"small",59)(18,"small",59),e.qZA()(),e.TgZ(19,"div",60)(20,"small",61),e._UZ(21,"i",62),e._uU(22),e.qZA(),e.TgZ(23,"small",63),e._UZ(24,"i",64),e._uU(25),e.qZA(),e.YNc(26,Ae,2,0,"small",65),e.YNc(27,Ce,2,0,"small",65),e.YNc(28,qe,2,0,"small",65),e.YNc(29,Se,2,0,"small",66),e.qZA(),e.TgZ(30,"p",67),e._UZ(31,"i",68),e._uU(32),e.qZA(),e.TgZ(33,"p",69),e._uU(34),e.qZA(),e.TgZ(35,"div",70),e.YNc(36,Ie,2,0,"a",71),e.YNc(37,Ne,2,0,"a",71),e.YNc(38,De,2,0,"a",72),e.YNc(39,Fe,2,0,"a",72),e.qZA()()()()),2&o){const t=l.$implicit,i=e.oxw();e.xp6(5),e.Q6J("lazyLoadSrc",t.image),e.xp6(2),e.hij("",e.gM2(8,15,t.price,"INR","symbol","1.0-2"),"/Night"),e.xp6(5),e.Oqu(t.hotelName.slice(0,22)),e.xp6(10),e.hij("",t.beds," "),e.xp6(3),e.hij("",t.bath," "),e.xp6(1),e.Q6J("ngIf",t.wifiEnabled),e.xp6(1),e.Q6J("ngIf",t.privatePool),e.xp6(1),e.Q6J("ngIf",t.tv),e.xp6(1),e.Q6J("ngIf",t.freeParking),e.xp6(3),e.hij(" ",t.hotelLocation.slice(0,30)," "),e.xp6(2),e.hij("",t.description.slice(0,150),"..."),e.xp6(2),e.Q6J("ngIf",!i.isUserRegistered),e.xp6(1),e.Q6J("ngIf",i.isUserRegistered),e.xp6(1),e.Q6J("ngIf",!i.isUserRegistered),e.xp6(1),e.Q6J("ngIf",i.isUserRegistered)}}let Be=(()=>{class o{constructor(t,i,n,r){this.route=t,this.router=i,this.hotelsDataService=n,this.dataSharing=r,this.selectedRating=null,this.allHotels=[],this.isUserRegistered=!1,this.filteredHotels=[],this.selectedFilter="all",this.searchInput="",this.isSearching=!1,this.isLoading=!0,this.dataSharing.userIsRegistered$.subscribe(s=>{this.isUserRegistered=s})}ngOnInit(){this.route.queryParams.subscribe(t=>{this.searchInput=t.searchValue||"",this.updateSearchStatus()}),this.loadAllHotels()}loadAllHotels(){this.isLoading=!0,this.hotelsDataService.getAllHotels().pipe((0,N.K)(t=>(console.error("Error loading hotels:",t),be.E)),(0,ve.x)(()=>{this.isLoading=!1})).subscribe(t=>{this.allHotels=t||[],this.filteredHotels=[...this.allHotels]})}addToCart(t){this.router.navigate(["user/cart"],{queryParams:{hotelId:t?.id}})}navigateToLogin(){this.router.navigateByUrl("/user/login")}navigateToBooking(t){this.router.navigate(["user/hotelDetails"],{queryParams:{hotelId:t?.id}})}onRatingChange(t){this.selectedRating=t?.value,this.filteredHotels=this.allHotels.filter(i=>i.rating>=this.selectedRating)}onFilterChange(){switch(this.selectedFilter){case"latest":this.filteredHotels=this.filteredHotels.sort((t,i)=>i.id-t.id);break;case"priceLowToHigh":this.filteredHotels=this.filteredHotels.sort((t,i)=>t.price-i.price);break;case"priceHighToLow":this.filteredHotels=this.filteredHotels.sort((t,i)=>i.price-t.price);break;default:this.filteredHotels=[...this.allHotels]}}updateSearchStatus(){this.isSearching=!(!this.searchInput||""===this.searchInput.trim())}SearchHotels(){}static#e=this.\u0275fac=function(i){return new(i||o)(e.Y36(m.gz),e.Y36(m.F0),e.Y36(S),e.Y36(g.j))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["app-allhotels"]],decls:59,vars:20,consts:[["id","background-Dark",1,"absolute","w-full","h-[80vh]","z-[-1]","overflow-hidden"],[1,"absolute","inset-0","bg-black",2,"opacity","60%"],["src","https://wallpapercosmos.com/w/full/0/0/e/32746-3840x2160-desktop-4k-india-background-image.jpg","alt","",1,"w-full","h-[80vh]","object-cover"],[1,"text-center","pt-5","mx-auto","my-4","mb-8"],[1,"section-title","text-center","text-white","text-2xl","font-serif"],[1,"text-white","capitalize","font-serif","mt-1"],[1,"text-mySkyBlue","bg-white","p-1","rounded","font-bold","capitalize"],["id","allHotels",1,"border-b-[1px]","border-gray-200"],[1,"container","mx-auto","flex","flex-col","items-center","justify-start","mt-8"],[1,"w-full"],[1,"relative"],[1,"mb-4","flex","items-center","justify-center","bg-white","rounded-l-md","rounded-r-md"],["type","text","placeholder","Search...","placeholder","Search",1,"w-auto","border-b-[3px]","rounded-l-md","focus:border-mySkyBlue","px-4","py-3","flex-grow","outline-none","shadow-none","placeholder:text-base","placeholder-gray-500",3,"ngModel","ngModelChange","input"],[1,"bg-mySkyBlue","text-white","px-6","py-3","border-b-[3px]","rounded-r-md","border-mySkyBlue","hover-move-up","focus:outline-none","focus:bg-blue-600","transition-all","duration-300",3,"click"],[1,"text-white","fas","fa-search","mr-2"],[1,"bg-white","p-4","rounded","shadow","mb-2"],[1,"text-lg","font-medium","font-mono","mb-4","tracking-wider","border-b-2","border-mySkyBlue"],[1,"flex","flex-wrap","items-center","justify-around","mb-2"],[1,"flex","items-center","mr-4","mb-2"],["type","radio","id","all","name","filterOption",1,"mr-2",3,"checked","ngModel","value","ngModelChange","change"],["for","all",1,"text-lg","font-extralight"],["type","radio","id","search","name","filterOption","disabled","",1,"mr-2","custom-radio",3,"ngModel","value","checked","ngModelChange"],["for","search",1,"text-lg","text-gray-500","font-extralight"],["type","radio","id","latest","name","filterOption",1,"mr-2",3,"ngModel","value","ngModelChange","change"],["for","latest",1,"text-lg","font-extralight"],["type","radio","id","priceLowToHigh","name","filterOption",1,"mr-2",3,"ngModel","value","ngModelChange","change"],["for","priceLowToHigh",1,"text-lg","font-extralight"],["type","radio","id","priceHightToLow","name","filterOption",1,"mr-2",3,"ngModel","value","ngModelChange","change"],["for","priceHightToLow",1,"text-lg","font-extralight"],[1,"flex","items-center","mb-2"],[1,"text-lg","font-extralight","mr-2"],[3,"ngModel","ngModelChange","onChange"],[1,"w-full","py-5"],[1,"container","mx-auto","sm:px-4"],[1,"flex","items-center","justify-start"],[1,"text-gray-600","m-0","mb-0","p-2"],[1,"container","flex","flex-wrap","g-4"],["class","w-full flex flex-wrap",4,"ngIf"],["class","lg:w-1/3 pr-4 pl-4 md:w-1/2 mb-4 wow fadeInUp","data-wow-delay","0.1s",4,"ngFor","ngForOf"],[1,"w-full","flex","flex-wrap"],[4,"ngFor","ngForOf"],[1,"w-full","mb-4","md:mr-2","md:w-[48%]","lg:w-[32%]","p-4","border-[1px]"],["width","100%","height","150px"],["width","5rem","styleClass","my-2","borderRadius","16px"],["width","10rem","width","90%","styleClass","mb-2","borderRadius","16px"],["styleClass","mb-2","borderRadius","16px"],["styleClass","mb-2","width","100%","height",".5rem"],[1,"flex","justify-content-between","mt-3"],["width","6rem","height","2rem"],["data-wow-delay","0.1s",1,"lg:w-1/3","pr-4","pl-4","md:w-1/2","mb-4","wow","fadeInUp"],[1,"room-item","shadow","rounded","overflow-hidden"],[1,""],[1,"loading-skeleton"],["appLazyLoad","","alt","",1,"w-full","h-[240px]","transition-transform","transform","hover:scale-105",3,"lazyLoadSrc"],[1,"absolute","start-0","top-100","translate-middle-y","bg-mySkyBlue","text-white","rounded","py-1","px-3","ms-4"],[1,"p-6","mt-2"],[1,"flex","justify-between","mb-2"],[1,"mb-0"],[1,"ps-2"],[1,"fa","fa-star","text-mySkyBlue"],[1,"flex","mb-3"],[1,"border-end","pr-2"],[1,"fa","fa-bed","text-mySkyBlue","me-2"],[1,"border-end","px-2"],[1,"fa","fa-bath","text-mySkyBlue","me-2"],["class","border-end px-2",4,"ngIf"],["class","px-2",4,"ngIf"],[1,"font-semibold","mb-2"],[1,"fas","fa-map-marker-alt","text-mySkyBlue","me-2"],[1,"text-body","mb-3","capitalize"],[1,"flex","justify-between"],["class","inline-block align-middle text-center select-none border font-normal whitespace-no-wrap no-underline leading-tight text-xs bg-mySkyBlue text-white hover:bg-mySkyBlue rounded py-2 px-4 move-up",3,"click",4,"ngIf"],["class","inline-block align-middle text-center select-none border font-normal whitespace-no-wrap no-underline leading-tight text-xs bg-gray-800 text-white hover:bg-gray-900 rounded py-2 px-4 move-up",3,"click",4,"ngIf"],[1,"fa","fa-wifi","text-mySkyBlue","me-2"],[1,"fa","fa-swimming-pool","text-mySkyBlue","me-2"],[1,"fa","fa-tv","text-mySkyBlue","me-2"],[1,"px-2"],[1,"fa","fa-car","text-mySkyBlue","me-2"],[1,"inline-block","align-middle","text-center","select-none","border","font-normal","whitespace-no-wrap","no-underline","leading-tight","text-xs","bg-mySkyBlue","text-white","hover:bg-mySkyBlue","rounded","py-2","px-4","move-up",3,"click"],[1,"inline-block","align-middle","text-center","select-none","border","font-normal","whitespace-no-wrap","no-underline","leading-tight","text-xs","bg-gray-800","text-white","hover:bg-gray-900","rounded","py-2","px-4","move-up",3,"click"]],template:function(i,n){1&i&&(e.TgZ(0,"div")(1,"div",0),e._UZ(2,"div",1)(3,"img",2),e.qZA(),e._UZ(4,"app-header"),e.TgZ(5,"div",3)(6,"h6",4),e._uU(7,"Discover Luxury Stay"),e.qZA(),e.TgZ(8,"h1",5),e._uU(9," Experience comfort and elegance at our "),e.TgZ(10,"span",6),e._uU(11,"My Travels hotels."),e.qZA()()()(),e.TgZ(12,"section",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"div",11)(17,"input",12),e.NdJ("ngModelChange",function(s){return n.searchInput=s})("input",function(){return n.updateSearchStatus()}),e.qZA(),e.TgZ(18,"button",13),e.NdJ("click",function(){return n.SearchHotels()}),e._UZ(19,"i",14),e._uU(20,"Search "),e.qZA()(),e.TgZ(21,"div",15)(22,"p",16),e._uU(23,"Filters"),e.qZA(),e.TgZ(24,"div",17)(25,"div",18)(26,"input",19),e.NdJ("ngModelChange",function(s){return n.selectedFilter=s})("change",function(){return n.onFilterChange()}),e.qZA(),e.TgZ(27,"label",20),e._uU(28,"All"),e.qZA()(),e.TgZ(29,"div",18)(30,"input",21),e.NdJ("ngModelChange",function(s){return n.selectedFilter=s}),e.qZA(),e.TgZ(31,"label",22),e._uU(32,"Search"),e.qZA()(),e.TgZ(33,"div",18)(34,"input",23),e.NdJ("ngModelChange",function(s){return n.selectedFilter=s})("change",function(){return n.onFilterChange()}),e.qZA(),e.TgZ(35,"label",24),e._uU(36,"Latest"),e.qZA()(),e.TgZ(37,"div",18)(38,"input",25),e.NdJ("ngModelChange",function(s){return n.selectedFilter=s})("change",function(){return n.onFilterChange()}),e.qZA(),e.TgZ(39,"label",26),e._uU(40,"Price: Low to High"),e.qZA()(),e.TgZ(41,"div",18)(42,"input",27),e.NdJ("ngModelChange",function(s){return n.selectedFilter=s})("change",function(){return n.onFilterChange()}),e.qZA(),e.TgZ(43,"label",28),e._uU(44,"Price: High to Low"),e.qZA()(),e.TgZ(45,"div",29)(46,"label",30),e._uU(47,"Filter by Rating:"),e.qZA(),e.TgZ(48,"p-rating",31),e.NdJ("ngModelChange",function(s){return n.selectedRating=s})("onChange",function(s){return n.onRatingChange(s)}),e.qZA()()()()()(),e.TgZ(49,"div",32)(50,"div",33)(51,"div",34)(52,"p",35),e._uU(53),e.qZA()(),e.TgZ(54,"div",36),e.YNc(55,Ue,2,2,"div",37),e.YNc(56,Je,40,20,"div",38),e.ALo(57,"search"),e.qZA()()()()(),e._UZ(58,"app-footer")),2&i&&(e.xp6(17),e.Q6J("ngModel",n.searchInput),e.xp6(9),e.Q6J("checked",!n.isSearching)("ngModel",n.selectedFilter)("value","all"),e.xp6(4),e.Q6J("ngModel",n.selectedFilter)("value","search")("checked",n.isSearching),e.xp6(4),e.Q6J("ngModel",n.selectedFilter)("value","latest"),e.xp6(4),e.Q6J("ngModel",n.selectedFilter)("value","priceLowToHigh"),e.xp6(4),e.Q6J("ngModel",n.selectedFilter)("value","priceHighToLow"),e.xp6(6),e.Q6J("ngModel",n.selectedRating),e.xp6(5),e.hij("Hotels Found: ",n.filteredHotels.length,""),e.xp6(2),e.Q6J("ngIf",n.isLoading),e.xp6(1),e.Q6J("ngForOf",e.xi3(57,17,n.filteredHotels,n.searchInput)))},dependencies:[u.sg,u.O5,a.Fj,a._,a.JJ,a.On,Ze.iG,ye.O,h.G,f.c,I,u.H9,we],styles:[".custom-radio[disabled][_ngcontent-%COMP%]{background-color:#3498db}.loading-skeleton[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);background-size:200% 100%;animation:_ngcontent-%COMP%_loading 1.5s infinite}@keyframes _ngcontent-%COMP%_loading{to{background-position:-200% 100%}}"]})}return o})(),T=(()=>{class o{constructor(t){this.http=t,this.apiBaseUrl=`${_.N.API_ENDPOINT}/users`}getUsers(){return this.http.get(this.apiBaseUrl)}getUserByEmail(t){return this.http.get(`${this.apiBaseUrl}/${t}`)}createUser(t){return this.http.post(this.apiBaseUrl,t)}updateUser(t,i){return this.http.put(`${this.apiBaseUrl}/${t}`,i)}patchUser(t,i){return this.http.patch(`${this.apiBaseUrl}/${t}`,i)}deleteUser(t){return this.http.delete(`${this.apiBaseUrl}/${t}`)}static#e=this.\u0275fac=function(i){return new(i||o)(e.LFG(v.eN))};static#t=this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var b=c(7034),k=c(5572);let U=(()=>{class o{ngAfterViewInit(){setTimeout(()=>{const t=document.getElementById("spinner");t&&t.classList.remove("show")},1)}static#e=this.\u0275fac=function(i){return new(i||o)};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["app-loader"]],decls:4,vars:0,consts:[["id","spinner",1,"show","fixed","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","bg-white","bg-opacity-50","w-full","h-screen","flex","items-center","justify-center"],["role","status",1,"spinner-border","text-mySkyBlue",2,"width","3rem","height","3rem"],[1,"sr-only"]],template:function(i,n){1&i&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span",2),e._uU(3,"Loading..."),e.qZA()()())},styles:["#spinner[_ngcontent-%COMP%]{opacity:0;visibility:hidden;transition:opacity .5s ease-in-out,visibility 0s linear .5s;z-index:99999}#spinner.show[_ngcontent-%COMP%]{transition:opacity .5s ease-in-out,visibility 0s linear 0s;visibility:visible;opacity:1}"]})}return o})();function Me(o,l){1&o&&(e.TgZ(0,"div"),e._uU(1,"Full Name is required"),e.qZA())}function je(o,l){if(1&o&&(e.TgZ(0,"div",34),e.YNc(1,Me,2,0,"div",35),e.qZA()),2&o){const t=e.oxw(2);let i;e.xp6(1),e.Q6J("ngIf",null==(i=t.signUpForm.get("name"))?null:i.getError)}}function He(o,l){1&o&&(e.TgZ(0,"div"),e._uU(1,"Email is required"),e.qZA())}function Oe(o,l){if(1&o&&(e.TgZ(0,"div",34),e.YNc(1,He,2,0,"div",35),e.qZA()),2&o){const t=e.oxw(2);let i;e.xp6(1),e.Q6J("ngIf",null==(i=t.signUpForm.get("email"))?null:i.hasError("required"))}}function Pe(o,l){1&o&&(e.TgZ(0,"div"),e._uU(1,"Phone Number is required"),e.qZA())}function Ye(o,l){if(1&o&&(e.TgZ(0,"div",34),e.YNc(1,Pe,2,0,"div",35),e.qZA()),2&o){const t=e.oxw(2);let i;e.xp6(1),e.Q6J("ngIf",null==(i=t.signUpForm.get("phoneNumber"))?null:i.hasError("required"))}}function Le(o,l){1&o&&(e.TgZ(0,"div"),e._uU(1,"Password is required"),e.qZA())}function Ee(o,l){if(1&o&&(e.TgZ(0,"div",34),e.YNc(1,Le,2,0,"div",35),e.qZA()),2&o){const t=e.oxw(2);let i;e.xp6(1),e.Q6J("ngIf",null==(i=t.signUpForm.get("password"))?null:i.hasError("required"))}}function Re(o,l){1&o&&(e.TgZ(0,"div"),e._uU(1,"Confirm Password is required"),e.qZA())}function Qe(o,l){if(1&o&&(e.TgZ(0,"div",34),e.YNc(1,Re,2,0,"div",35),e.qZA()),2&o){const t=e.oxw(2);let i;e.xp6(1),e.Q6J("ngIf",null==(i=t.signUpForm.get("confirmPassword"))?null:i.hasError("required"))}}function Ge(o,l){1&o&&(e.TgZ(0,"div",36),e._uU(1," Passwords do not match "),e.qZA())}function ze(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",1)(1,"div",2)(2,"h4",3),e._uU(3,"Login"),e.qZA(),e.TgZ(4,"p",4),e._uU(5,"Already gave an account ?"),e.qZA(),e.TgZ(6,"a")(7,"button",5),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.loginClick())}),e._uU(8,"Login"),e.qZA()(),e.TgZ(9,"div",6),e._UZ(10,"img",7),e.qZA()(),e.TgZ(11,"div",8)(12,"div",9)(13,"div",10)(14,"h4",11),e._uU(15,"Sign Up"),e.qZA(),e.TgZ(16,"form",12),e.NdJ("ngSubmit",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.submitSignUp())}),e.TgZ(17,"div",13)(18,"div",14)(19,"span",15),e._UZ(20,"i",16),e.qZA(),e._UZ(21,"input",17),e.qZA(),e.YNc(22,je,2,1,"div",18),e.qZA(),e.TgZ(23,"div",13)(24,"div",14)(25,"span",15),e._UZ(26,"i",19),e.qZA(),e._UZ(27,"input",20),e.qZA(),e.YNc(28,Oe,2,1,"div",18),e.qZA(),e.TgZ(29,"div",13)(30,"div",14)(31,"span",15),e._UZ(32,"i",21),e.qZA(),e._UZ(33,"input",22),e.qZA(),e.YNc(34,Ye,2,1,"div",18),e.qZA(),e.TgZ(35,"div",13)(36,"div",14)(37,"span",15),e._UZ(38,"i",23),e.qZA(),e._UZ(39,"input",24),e.qZA(),e.YNc(40,Ee,2,1,"div",18),e.qZA(),e.TgZ(41,"div",13)(42,"div",14)(43,"span",15),e._UZ(44,"i",23),e.qZA(),e.TgZ(45,"input",25),e.NdJ("keyup",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.ConfirmPass())}),e.qZA()(),e.YNc(46,Qe,2,1,"div",18),e.YNc(47,Ge,2,0,"div",26),e.qZA(),e.TgZ(48,"button",27),e._uU(49,"Register"),e.qZA()(),e.TgZ(50,"p",28),e._uU(51,"Or Sign up with social platforms"),e.qZA(),e.TgZ(52,"ul",29)(53,"li",30)(54,"a",31),e._UZ(55,"i",32),e.qZA()(),e.TgZ(56,"li",30)(57,"a",31),e._UZ(58,"i",33),e.qZA()()()()()()()}if(2&o){const t=e.oxw();let i,n,r,s,d;e.xp6(16),e.Q6J("formGroup",t.signUpForm),e.xp6(6),e.Q6J("ngIf",(null==(i=t.signUpForm.get("name"))?null:i.invalid)&&((null==(i=t.signUpForm.get("name"))?null:i.dirty)||(null==(i=t.signUpForm.get("name"))?null:i.touched))),e.xp6(6),e.Q6J("ngIf",(null==(n=t.signUpForm.get("email"))?null:n.invalid)&&((null==(n=t.signUpForm.get("email"))?null:n.dirty)||(null==(n=t.signUpForm.get("email"))?null:n.touched))),e.xp6(6),e.Q6J("ngIf",(null==(r=t.signUpForm.get("phoneNumber"))?null:r.invalid)&&((null==(r=t.signUpForm.get("phoneNumber"))?null:r.dirty)||(null==(r=t.signUpForm.get("phoneNumber"))?null:r.touched))),e.xp6(6),e.Q6J("ngIf",(null==(s=t.signUpForm.get("password"))?null:s.invalid)&&((null==(s=t.signUpForm.get("password"))?null:s.dirty)||(null==(s=t.signUpForm.get("password"))?null:s.touched))),e.xp6(6),e.Q6J("ngIf",(null==(d=t.signUpForm.get("confirmPassword"))?null:d.invalid)&&((null==(d=t.signUpForm.get("confirmPassword"))?null:d.dirty)||(null==(d=t.signUpForm.get("confirmPassword"))?null:d.touched))),e.xp6(1),e.Q6J("ngIf",(null==t.signUpForm.controls.confirmPassword?null:t.signUpForm.controls.confirmPassword.dirty)&&!t.isMatch)}}let $e=(()=>{class o{constructor(t,i,n,r,s,d){this.fb=t,this.userService=i,this.router=n,this.dataService=r,this.toster=s,this.authLoginService=d,this.toggle=new e.vpe,this.showSignUp=!0}ngOnInit(){this.initSignUpForm()}initSignUpForm(){this.signUpForm=this.fb.group({id:["",a.kI.required],name:["",a.kI.required],email:["",[a.kI.required,a.kI.email]],phoneNumber:["",a.kI.required],password:["",a.kI.required],confirmPassword:["",a.kI.required],cart:this.fb.array([]),bookings:this.fb.array([])}),this.signUpForm.get("email")?.valueChanges.subscribe(t=>{this.signUpForm.patchValue({id:t},{emitEvent:!1})})}ConfirmPass(){this.isMatch=this.signUpForm.get("password")?.value===this.signUpForm.get("confirmPassword")?.value}loginClick(){this.showSignUp=!1,this.toggle.emit()}submitSignUp(){this.signUpForm.valid?this.userService.createUser(this.signUpForm.value).subscribe({next:i=>{this.handleSuccessfulRegistration(i)},error:i=>{this.handleFailedRegistration(i)}}):this.handleInvalidForm()}handleSuccessfulRegistration(t){this.toster.showSuccess("Registration Successful","Welcome to our platform!"),this.authLoginService.login(t.email),this.dataService.userEmail=this.authLoginService.getDecryptedUserEmail();const n=this.authLoginService.isAuthenticated();this.dataService.setUserRegistrationState(n),setTimeout(()=>{this.router.navigateByUrl("/user")},300),console.log("Registration successful",t)}handleFailedRegistration(t){console.error("Registration failed",t),this.toster.showError("Registration Failed","Please try again later.")}handleInvalidForm(){this.markFormGroupTouched(this.signUpForm),this.toster.showWarning("Invalid Form","Please fill out all required fields.")}markFormGroupTouched(t){Object.values(t.controls).forEach(i=>{i.markAsTouched(),i instanceof a.cw&&this.markFormGroupTouched(i)})}static#e=this.\u0275fac=function(i){return new(i||o)(e.Y36(a.qu),e.Y36(T),e.Y36(m.F0),e.Y36(g.j),e.Y36(b.b),e.Y36(k.e))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["app-sign-up"]],outputs:{toggle:"toggle"},decls:1,vars:1,consts:[["class","flex flex-col md:flex-row justify-center items-center",4,"ngIf"],[1,"flex","flex-col","md:flex-row","justify-center","items-center"],[1,"w-full","md:w-1/2","lg:w-1/2","pr-4","pl-4","bg-gray","p-12","text-center"],[1,"text-center","fw-bolder","fs-2"],[1,"mb-3","fs-7"],[1,"inline-block","align-middle","text-center","select-none","border-2","whitespace-no-wrap","rounded-full","py-2","px-4","text-mySkyBlue","font-bold","border-mySkyBlue","hover:bg-mySkyBlue","hover:text-white",3,"click"],[1,"img-cover","p-6"],["src","assets/loginbg.svg","alt",""],[1,"w-full","md:w-1/2","lg:w-1/2","pr-4","pl-4"],[1,"w-full","flex","flex-wrap","md:flex"],[1,"md:w-2/3","pr-4","pl-4","p-6","w-full","m-auto","text-center","justify-center","items-center"],[1,"text-center","fw-bolder","mb-4","fs-2"],[3,"formGroup","ngSubmit"],[1,"relative","w-full","mb-4"],[1,"flex","items-stretch","rounded","border-[1px]","border-gray-300"],[1,"p-2","bg-slate-100"],[1,"fas","fa-user","bg-transparent"],["type","text","formControlName","name","placeholder","Enter Full Name","aria-label","name","aria-describedby","basic-addon1",1,"block","w-full","border-none","outline-none","shadow-none","py-1","px-2","bg-slate-100","hover:bg-white","focus:bg-white"],["class","text-red-500 text-sm bg-white rounded p-2 shadow-lg transition duration-400 absolute -top-5 right-0",4,"ngIf"],[1,"fas","fa-envelope","bg-transparent"],["type","email","formControlName","email","placeholder","Enter Email","aria-label","email","aria-describedby","basic-addon1",1,"block","w-full","border-none","outline-none","shadow-none","py-1","px-2","bg-slate-100","hover:bg-white","focus:bg-white"],[1,"fas","fa-phone","bg-transparent"],["type","tel","formControlName","phoneNumber","placeholder","Enter Phone Number","aria-label","phoneNumber","aria-describedby","basic-addon1",1,"block","w-full","border-none","outline-none","shadow-none","py-1","px-2","bg-slate-100","hover:bg-white","focus:bg-white"],[1,"fas","fa-lock","bg-transparent"],["type","password","formControlName","password","placeholder","Enter Password","aria-label","Password","aria-describedby","basic-addon1",1,"block","w-full","border-none","outline-none","shadow-none","py-1","px-2","bg-slate-100","hover:bg-white","focus:bg-white"],["type","password","formControlName","confirmPassword","placeholder","Confirm Password","aria-label","confirmPassword","aria-describedby","basic-addon1",1,"block","w-full","border-none","outline-none","shadow-none","py-1","px-2","bg-slate-100","hover:bg-white","focus:bg-white",3,"keyup"],["class","text-red-500 text-sm bg-white rounded p-2 shadow-lg transition duration-400 absolute -bottom-5 right-0",4,"ngIf"],["type","submit",1,"move-up","inline-block","align-middle","text-center","select-none","border","font-normal","whitespace-no-wrap","rounded","no-underline","py-3","px-4","leading-tight","text-xl","fw-bold","fs-7","bg-mySkyBlue","text-white","hover:bg-blue-600","w-full"],[1,"text-center","py-4","fw-bold","text-sm"],[1,"flex","flex-wrap","items-center","justify-center","mx-auto"],[1,"float-start","px-3"],["href",""],[1,"text-2xl","fab","fa-facebook","text-myGrayBlack","move-up","hover:text-mySkyBlue"],[1,"text-2xl","fab","fa-google","text-myGrayBlack","move-up","hover:text-mySkyBlue"],[1,"text-red-500","text-sm","bg-white","rounded","p-2","shadow-lg","transition","duration-400","absolute","-top-5","right-0"],[4,"ngIf"],[1,"text-red-500","text-sm","bg-white","rounded","p-2","shadow-lg","transition","duration-400","absolute","-bottom-5","right-0"]],template:function(i,n){1&i&&e.YNc(0,ze,59,7,"div",0),2&i&&e.Q6J("ngIf",n.showSignUp)},dependencies:[u.O5,a._Y,a.Fj,a.JJ,a.JL,a.sg,a.u]})}return o})();function Ke(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",13)(1,"div",14)(2,"h4",15),e._uU(3,"Register"),e.qZA(),e.TgZ(4,"p",16),e._uU(5,"Register Now and Fell the New Digital World"),e.qZA(),e.TgZ(6,"a")(7,"button",17),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.toggleSection())}),e._uU(8,"Sign Up"),e.qZA()(),e.TgZ(9,"div",18),e._UZ(10,"img",19),e.qZA()(),e.TgZ(11,"div",20)(12,"div",21)(13,"div",22)(14,"h4",23),e._uU(15,"Login"),e.qZA(),e.TgZ(16,"form",24),e.NdJ("ngSubmit",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.submitLogin())}),e.TgZ(17,"div",25)(18,"span",26),e._UZ(19,"i",27),e.qZA(),e._UZ(20,"input",28),e.qZA(),e.TgZ(21,"div",25)(22,"span",26),e._UZ(23,"i",29),e.qZA(),e._UZ(24,"input",30),e.qZA(),e.TgZ(25,"button",31),e._uU(26,"Login"),e.qZA()(),e.TgZ(27,"p",32),e._uU(28,"Or Sign in with social platforms"),e.qZA(),e.TgZ(29,"ul",33)(30,"li",34)(31,"a",35),e._UZ(32,"i",36),e.qZA()(),e.TgZ(33,"li",34)(34,"a",35),e._UZ(35,"i",37),e.qZA()()()()()()()}if(2&o){const t=e.oxw();e.xp6(16),e.Q6J("formGroup",t.loginForm)}}function Ve(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div")(1,"app-sign-up",38),e.NdJ("toggle",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.toggleSection())}),e.qZA()()}}let We=(()=>{class o{constructor(t,i,n,r,s,d){this.fb=t,this.authService=i,this.dataService=n,this.router=r,this.tosterMessage=s,this.authLoginService=d,this.showSignUp=!1,this.loginForm=this.fb.group({email:["",a.kI.required],password:["",a.kI.required]})}toggleSection(){this.showSignUp=!this.showSignUp}submitLogin(){if(this.loginForm.valid){const{email:t,password:i}=this.loginForm.value;this.authService.getUserByEmail(t).subscribe({next:n=>{this.isCredentialsValid(t,i,n)?this.handleSuccessfulLogin(t):this.handleInvalidCredentials()},error:n=>{console.error("Login failed",n),this.tosterMessage.showError("Incorrect username or password","Login failed")}})}else this.markFormGroupTouched(this.loginForm),this.tosterMessage.showWarning("Please Enter Email and Password","Form Invalid")}isCredentialsValid(t,i,n){return t===n.email&&i===n.password}handleSuccessfulLogin(t){this.authLoginService.login(t),this.dataService.userEmail=this.authLoginService.getDecryptedUserEmail();const i=this.authLoginService.isAuthenticated();this.dataService.setUserRegistrationState(i),this.tosterMessage.showSuccess("Login successful","Success"),this.loginForm.reset(),setTimeout(()=>{this.router.navigateByUrl("/user")},300)}handleInvalidCredentials(){console.error("Invalid username or password"),this.tosterMessage.showWarning("Invalid username or password","Failed")}markFormGroupTouched(t){Object.values(t.controls).forEach(i=>{i instanceof a.cw?this.markFormGroupTouched(i):i.markAsTouched()})}static#e=this.\u0275fac=function(i){return new(i||o)(e.Y36(a.qu),e.Y36(T),e.Y36(g.j),e.Y36(m.F0),e.Y36(b.b),e.Y36(k.e))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["app-login"]],decls:20,vars:2,consts:[[1,"w-full","h-[80vh]","relative"],["id","background-Dark",1,"fixed","inset-0","w-full","h-[80vh]","z-[-1]"],[1,"absolute","inset-0","bg-black",2,"opacity","60%"],["src","https://dynamic-media-cdn.tripadvisor.com/media/photo-o/23/56/ef/3f/kaldan-samudhra.jpg?w=1200&h=-1&s=1","alt","",1,"w-full","h-[80vh]","object-cover"],[1,"text-center","mx-auto","mt-36"],[1,"section-title","text-center","text-white","text-[5vw]","md:text-[3vw]","font-extrabold"],[1,"text-white","capitalize","text-[6vw]","md:text-[4vw]","font-extrabold"],[1,"text-mySkyBlue","bg-white","p-1","ml-2","rounded","font-bold","capitalize"],[1,"text-white","p-1","md:p-0","text-2xl","capitalize","font-medium"],[1,"bg-white","w-screen","border-b-[1px]"],[1,"max-w-full","text-myGrayBlack","mx-auto","sm:px-4"],["class","flex flex-col md:flex-row justify-center items-center",4,"ngIf"],[4,"ngIf"],[1,"flex","flex-col","md:flex-row","justify-center","items-center"],[1,"w-full","md:w-1/2","lg:w-1/2","pr-4","pl-4","bg-gray","p-12","text-center"],[1,"text-center","fw-bolder","fs-2"],[1,"mb-3","fs-7"],[1,"inline-block","align-middle","text-center","select-none","border-2","whitespace-no-wrap","rounded-full","py-2","px-4","text-mySkyBlue","font-bold","border-mySkyBlue","hover:bg-mySkyBlue","hover:text-white",3,"click"],[1,"img-cover","p-6"],["src","assets/loginbg.svg","alt",""],[1,"w-full","md:w-1/2","lg:w-1/2","pr-4","pl-4"],[1,"w-full","flex","flex-wrap","md:flex"],[1,"md:w-2/3","pr-4","pl-4","p-6","w-full","m-auto","text-center","justify-center","items-center"],[1,"text-center","fw-bolder","mb-4","fs-2"],[3,"formGroup","ngSubmit"],[1,"relative","flex","items-stretch","w-full","mb-4","rounded","border-[1px]","border-gray-300"],[1,"p-2","bg-slate-100"],[1,"fas","fa-user","bg-transparent"],["type","text","formControlName","email","autocomplete","username","placeholder","Enter Username",1,"block","w-full","border-none","outline-none","shadow-none","py-1","px-2","bg-slate-100","hover:bg-white","focus:bg-white"],[1,"fas","fa-lock","bg-transparent"],["type","password","formControlName","password","autocomplete","current-password","placeholder","Enter Password",1,"block","w-full","border-none","outline-none","shadow-none","py-1","px-2","bg-slate-100","hover:bg-white","focus:bg-white"],["type","submit",1,"move-up","inline-block","align-middle","text-center","select-none","border","font-normal","whitespace-no-wrap","rounded","no-underline","py-3","px-4","leading-tight","text-xl","fw-bold","fs-7","bg-mySkyBlue","text-white","hover:bg-blue-600","w-full"],[1,"text-center","py-4","fw-bold","text-sm"],[1,"flex","flex-wrap","items-center","justify-center","mx-auto"],[1,"float-start","px-3"],["href",""],[1,"text-2xl","fab","fa-facebook","text-myGrayBlack","move-up","hover:text-mySkyBlue"],[1,"text-2xl","fab","fa-google","text-myGrayBlack","move-up","hover:text-mySkyBlue"],[3,"toggle"]],template:function(i,n){1&i&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"div",2)(3,"img",3),e.qZA(),e._UZ(4,"app-header"),e.TgZ(5,"div",4)(6,"h6",5),e._uU(7,"Discover Luxury Stay"),e.qZA(),e.TgZ(8,"h1",6),e._uU(9," Welcome to our"),e.TgZ(10,"span",7),e._uU(11,"MyTravels"),e.qZA()(),e.TgZ(12,"p",8),e._uU(13," Log in or register to unlock exclusive offers and book your dream stay. "),e.qZA()()(),e.TgZ(14,"section",9)(15,"div",10),e.YNc(16,Ke,36,1,"div",11),e.YNc(17,Ve,2,0,"div",12),e.qZA()(),e._UZ(18,"app-footer")(19,"app-loader")),2&i&&(e.xp6(16),e.Q6J("ngIf",!n.showSignUp),e.xp6(1),e.Q6J("ngIf",n.showSignUp))},dependencies:[u.O5,a._Y,a.Fj,a.JJ,a.JL,a.sg,a.u,h.G,f.c,U,$e],styles:[".wwe[_ngcontent-%COMP%]{background-color:#f8f9fa}"]})}return o})(),Xe=(()=>{class o{constructor(t,i){this.http=t,this.dataService=i,this.baseUrl=`${_.N.API_ENDPOINT}/users`,this.apiBaseUrl=_.N.API_ENDPOINT,this.userID=this.dataService.userEmail}addToCart(t,i){const s=[...t,i];return this.http.patch(`${this.baseUrl}/${this.userID}`,{cart:s})}removeFromCart(t,i){const n=`${this.baseUrl}/${this.userID}`,s=t.filter(d=>d.id!==i);return this.http.patch(n,{cart:s})}getHotelById(t){return this.http.get(`${this.apiBaseUrl}/hotels/${t}`)}static#e=this.\u0275fac=function(i){return new(i||o)(e.LFG(v.eN),e.LFG(g.j))};static#t=this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function et(o,l){1&o&&(e.TgZ(0,"div",14),e._uU(1,"Your cart is empty."),e.qZA())}function tt(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",15),e._UZ(1,"img",16),e.TgZ(2,"div",17)(3,"h2",18),e._UZ(4,"i",19),e._uU(5),e.qZA(),e.TgZ(6,"h3",20),e._UZ(7,"i",21),e._uU(8),e.qZA(),e.TgZ(9,"p",22),e._uU(10),e.qZA(),e.TgZ(11,"div",23)(12,"div",24)(13,"span",25),e._uU(14,"Price:"),e.qZA(),e._uU(15),e.ALo(16,"currency"),e.qZA(),e.TgZ(17,"div",26)(18,"button",27),e.NdJ("click",function(){const r=e.CHM(t).$implicit,s=e.oxw();return e.KtG(s.removeItemFromCart(r.id))}),e._uU(19,"Remove"),e.qZA(),e.TgZ(20,"button",28),e.NdJ("click",function(){const r=e.CHM(t).$implicit,s=e.oxw();return e.KtG(s.navigateToBooking(r.id))}),e._uU(21,"Book Now"),e.qZA()()()()()}if(2&o){const t=l.$implicit;e.xp6(1),e.Q6J("src",t.image,e.LSH),e.xp6(4),e.hij(" ",t.hotelName,""),e.xp6(3),e.hij(" ",t.hotelLocation," "),e.xp6(2),e.Oqu(t.description),e.xp6(5),e.hij("",e.gM2(16,5,t.price,"INR","symbol","1.0-2"),"/Night ")}}let ot=(()=>{class o{constructor(t,i,n,r,s,d){this.route=t,this.userService=i,this.cartService=n,this.dataService=r,this.toster=s,this.router=d,this.cartItems=[]}ngOnInit(){this.getUserData(),this.route.queryParams.subscribe(t=>{this.hotelId=t.hotelId,console.log(this.hotelId),this.getHotelData()})}getUserData(){const t=this.dataService.userEmail;console.log(t),this.userService.getUserByEmail(t).subscribe({next:i=>{this.userData=i,this.cartItems=i.cart,console.log(this.userData)},error:i=>{console.error("Error fetching user data:",i)}})}getHotelData(){this.cartService.getHotelById(this.hotelId).subscribe({next:t=>{this.hotelData=t,console.log(this.hotelData),this.addItemToCart()},error:t=>{console.error("Error fetching hotel data:",t)}})}addItemToCart(){this.cartService.addToCart(this.cartItems,this.hotelData).subscribe({next:t=>{this.cartItems=t.cart,this.toster.showSuccess("Item added to cart successfully!","success")},error:t=>{console.error("Error adding item to cart:",t),this.toster.showError("Failed to add item to cart.","error")}})}removeItemFromCart(t){this.cartService.removeFromCart(this.cartItems,t).subscribe({next:i=>{this.cartItems=i.cart,this.toster.showSuccess("Item removed from cart successfully!","success")},error:i=>{console.error("Error removing item from cart:",i),this.toster.showError("Failed to remove item from cart.","error")}})}navigateToBooking(t){this.router.navigate(["user/hotelDetails"],{queryParams:{hotelId:t.id}})}static#e=this.\u0275fac=function(i){return new(i||o)(e.Y36(m.gz),e.Y36(T),e.Y36(Xe),e.Y36(g.j),e.Y36(b.b),e.Y36(m.F0))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["app-cart"]],decls:21,vars:2,consts:[[1,"w-full","h-[80vh]","relative"],["id","background-Dark",1,"fixed","inset-0","w-full","h-[80vh]","z-[-1]"],[1,"absolute","inset-0","bg-black",2,"opacity","60%"],["src","https://gumlet.assettype.com/freepressjournal/2023-03/28892f6a-c3e0-4589-99e1-773e5baf5bcb/Untitled_design__1_.png","alt","",1,"w-full","h-[80vh]","object-cover"],["data-wow-delay","0.1s",1,"text-center","wow","fadeInUp","pt-5","mx-auto","my-4","mb-8","space-y-1"],[1,"section-title","text-center","text-white","text-2xl","font-serif"],[1,"text-white","capitalize","font-serif"],[1,"text-mySkyBlue","font-bold","capitalize","bg-white","p-2","mx-1","rounded"],[1,"text-white","mt-4","text-2xl","capitalize","font-sans"],[1,"bg-white","w-screen","border-b-[1px]"],[1,"container","mx-auto","my-10"],[1,"text-3xl","pt-4","text-center","font-extrabold","mb-4","text-mySkyBlue"],["class","text-red-500 text-2xl font-sans text-center border-b-2 border-red-600",4,"ngIf"],["class","flex flex-col sm:flex-row border-[1px] shadow-md rounded-sm p-4 mb-4",4,"ngFor","ngForOf"],[1,"text-red-500","text-2xl","font-sans","text-center","border-b-2","border-red-600"],[1,"flex","flex-col","sm:flex-row","border-[1px]","shadow-md","rounded-sm","p-4","mb-4"],["alt","Hotel Image",1,"w-full","h-auto","sm:w-48","sm:h-32","object-cover","mb-4","mr-4",3,"src"],[1,""],[1,"text-xl","font-semibold"],[1,"fas","fa-hotel","text-mySkyBlue","me-2"],[1,"text-xl","text-gray-600","font-semibold"],[1,"fas","fa-map-marker-alt","text-mySkyBlue","me-2"],[1,"text-gray-600"],[1,"flex","justify-between","items-center","mt-4"],[1,"text-lg","font-semibold"],[1,"text-red-600"],[1,"flex","space-x-4"],[1,"inline-block","align-middle","text-center","select-none","border","font-normal","whitespace-no-wrap","no-underline","leading-tight","text-xs","bg-red-500","text-white","hover:bg-red-600","rounded","py-2","px-4","move-up",3,"click"],[1,"inline-block","align-middle","text-center","select-none","border","font-normal","whitespace-no-wrap","no-underline","leading-tight","text-xs","bg-mySkyBlue","text-white","hover:bg-blue-500","rounded","py-2","px-4","move-up",3,"click"]],template:function(i,n){1&i&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"div",2)(3,"img",3),e.qZA(),e._UZ(4,"app-header"),e.TgZ(5,"div",4)(6,"h6",5),e._uU(7,"Your Hotel Experience Awaits"),e.qZA(),e.TgZ(8,"h1",6),e._uU(9," Plan Your Stay with "),e.TgZ(10,"span",7),e._uU(11,"My Travels"),e.qZA()(),e.TgZ(12,"p",8),e._uU(13," Explore our curated collection of luxury hotels. Add your favorites to the cart and plan your dream stay. Log in or register to unlock exclusive offers and save your hotel wishlist. "),e.qZA()()(),e.TgZ(14,"section",9)(15,"div",10)(16,"h1",11),e._uU(17,"\u{1f6d2} My Cart"),e.qZA(),e.YNc(18,et,2,0,"div",12),e.YNc(19,tt,22,10,"div",13),e.qZA()(),e._UZ(20,"app-footer")),2&i&&(e.xp6(18),e.Q6J("ngIf",0===n.cartItems.length),e.xp6(1),e.Q6J("ngForOf",n.cartItems))},dependencies:[u.sg,u.O5,h.G,f.c,u.H9]})}return o})();var it=c(8504),D=c(102);let F=(()=>{class o{constructor(t){this.http=t,this.apiUrl=`${_.N.API_ENDPOINT}/bookings`}createBooking(t){return this.http.post(this.apiUrl,t)}getBookingsforUser(t){return this.http.get(`${this.apiUrl}?userId=${t}`)}getBookings(){return this.http.get(this.apiUrl)}deleteBooking(t){return this.http.delete(`${this.apiUrl}/${t}`)}static#e=this.\u0275fac=function(i){return new(i||o)(e.LFG(v.eN))};static#t=this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();const J=function(){return{standalone:!0}};let nt=(()=>{class o{constructor(t,i,n,r,s,d){this.hotelService=t,this.fb=i,this.userDataSharing=n,this.bookingService=r,this.toster=s,this.router=d,this.rooms=1,this.adults=2,this.children=0,this.dateCheckIn=new Date,console.log("Check-In Date:",this.dateCheckIn),this.dateCheckOut=new Date(this.dateCheckIn),this.dateCheckOut.setDate(this.dateCheckIn.getDate()+1),console.log("Check-Out Date:",this.dateCheckOut),this.userID=this.userDataSharing.userEmail}ngOnInit(){this.getHotelData(),this.createBookingForm()}getHotelData(){this.hotelService.getHotelById(this.hotelId).subscribe({next:t=>{this.hotelData=t,console.log("Hotel Data:",this.hotelData),this.numberOfNights=this.getNumberOfNights(),console.log("Number of Nights:",this.numberOfNights),this.pricePerNight=this.hotelData.price,console.log("Price Per Night:",this.pricePerNight),this.calculateTotalPrice()},error:t=>{console.error("Error fetching hotel data:",t)}})}createBookingForm(){this.bookingForm=this.fb.group({hotelId:[null],ownerId:[null],userId:[null],fullName:["",[a.kI.required]],email:["",[a.kI.required,a.kI.email]],phoneNumber:["",[a.kI.required]],rooms:[null,[a.kI.required,a.kI.min(1)]],adults:[null,[a.kI.required,a.kI.min(1)]],children:[null,[a.kI.min(0)]],dateCheckIn:[null,[a.kI.required]],dateCheckOut:[null,[a.kI.required]],totalPrice:[null],nights:[null],hotelName:[null],hotelPrice:[null],hotelLocation:[null],hotelImage:[null]})}onSubmit(){this.bookingForm.get("hotelId")?.setValue(this.hotelId),this.bookingForm.get("ownerId")?.setValue(this.hotelData.ownerId),this.bookingForm.get("userId")?.setValue(this.userID),this.bookingForm.get("totalPrice")?.setValue(this.totalPriceBeforeTaxes),this.bookingForm.get("nights")?.setValue(this.numberOfNights),this.bookingForm.get("hotelName")?.setValue(this.hotelData.hotelName),this.bookingForm.get("hotelPrice")?.setValue(this.hotelData.price),this.bookingForm.get("hotelLocation")?.setValue(this.hotelData.hotelLocation),this.bookingForm.get("hotelImage")?.setValue(this.hotelData.image),this.bookingForm.get("rooms")?.setValue(this.rooms),this.bookingForm.get("adults")?.setValue(this.adults),this.bookingForm.get("children")?.setValue(this.children),this.bookingForm.get("dateCheckIn")?.setValue(this.dateCheckIn),this.bookingForm.get("dateCheckOut")?.setValue(this.dateCheckOut),this.bookingForm.valid?this.bookingService.createBooking(this.bookingForm.value).subscribe({next:i=>{this.toster.showSuccess("Booking Successful","Enjoy your stay!"),setTimeout(()=>{this.router.navigateByUrl("user/myBookings")},300),console.log("Booking created successfully:",i),this.bookingForm.reset()},error:i=>{console.error("Error creating booking:",i),this.toster.showError("Booking Failed","Please try again later.")}}):(console.log("Form is invalid"),this.toster.showWarning("Invalid Booking","Please fill out all required fields."))}incrementRooms(){this.rooms++,this.calculateTotalPrice()}decrementRooms(){this.rooms>1&&(this.rooms--,this.calculateTotalPrice())}incrementAdults(){this.adults++,this.calculateTotalPrice()}decrementAdults(){this.adults>1&&(this.adults--,this.calculateTotalPrice())}incrementChildren(){this.children++,this.calculateTotalPrice()}decrementChildren(){this.children>0&&(this.children--,this.calculateTotalPrice())}onDateChange(){this.numberOfNights=this.getNumberOfNights(),this.calculateTotalPrice()}calculateTotalPrice(){this.longStayDiscount=this.numberOfNights>=7?500:0;let n=this.rooms*this.pricePerNight*this.numberOfNights+1e3*Math.max(0,this.adults+this.children-4);n-=this.longStayDiscount,this.totalPriceBeforeTaxes=Math.max(0,n),console.log("Total Price:",this.totalPriceBeforeTaxes)}getNumberOfNights(){const i=(this.dateCheckOut.getTime()-this.dateCheckIn.getTime())/864e5;return Math.ceil(i)}static#e=this.\u0275fac=function(i){return new(i||o)(e.Y36(D.N),e.Y36(a.qu),e.Y36(g.j),e.Y36(F),e.Y36(b.b),e.Y36(m.F0))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["app-booking"]],inputs:{hotelId:"hotelId",hotelPrice:"hotelPrice"},decls:102,vars:35,consts:[[1,"main","flex","flex-col","lg:flex-row","items-center","justify-between","gap-2"],[1,"w-full","lg:w-[20%]","bg-white","p-6","rounded-lg","border-[1px]","shadow-md","flex","items-start","justify-center","flex-col","mb-4","lg:mb-0"],[1,"text-xl","border-b-[1px]","pb-2","font-semibold","text-gray-700","mb-4"],[1,"w-full","flex","items-start","justify-between","lg:flex-col","mb-2"],[1,"text-gray-600"],[1,"font-semibold","text-mySkyBlue"],[1,"text-lg","font-semibold"],[1,"text-lg","font-semibold","text-mySkyBlue"],[1,"w-full","lg:w-[70%]","mx-auto","rounded","border-2","p-2","shadow-md"],[1,"w-full","flex","gap-2","items-center","justify-center","flex-wrap"],[1,"w-full","md:w-[70%]","lg:w-[45%]","flex-grow","flex","item-center","justify-center","relative"],[1,"relative","flex","flex-col","item-start","justify-start"],["for","checkin",1,"pl-2","text-gray-500"],["inputStyleClass","w-1/4 px-2 py-2 text-gray-800 rounded-none border-b-2 border-gray-300 font-bold placeholder-gray-500 shadow-none outline-none focus:outline-none focus:placeholder-gray-400 focus:border-mySkyBlue transition-all duration-300 ",3,"ngModel","showIcon","ngModelOptions","minDate","ngModelChange"],["for","checkout",1,"pl-2","text-gray-500"],[1,"w-full","flex-grow","flex","items-center","justify-between"],[1,"w-full","relative","flex","items-center","justify-start","flex-wrap","bg-white"],[1,"w-full","flex","items-center","justify-center","gap-2"],[1,"font-semibold","text-gray-700","rounded-none","flex","items-center"],[1,"fas","text-mySkyBlue","fa-bed","mr-2","text-lg"],[1,"ml-2","text-mySkyBlue","fas","fa-users"],[1,"w-full","text-center","mt-2"],[1,"flex","items-center","justify-between","p-2"],[1,"text-secondary","text-base","font-medium"],[1,"flex","items-center","justify-around","gap-2"],[1,"btn-icon","btn-outline-secondary","rounded-full","hover:bg-gray-200","transition-all","duration-300",3,"click"],[1,"fas","fa-minus","btn-icon__inner","text-2xl","p-1","px-2"],[1,"fas","fa-plus","btn-icon__inner","text-2xl","p-1","px-2"],[1,"w-full","flex","gap-2","items-center","justify-center","flex-wrap",3,"formGroup","ngSubmit"],[1,"w-full","md:w-[45%]","flex-grow","flex","flex-col","item-start","justify-start","relative"],["for","destination",1,"pl-2","text-gray-500"],[1,"relative",2,"border","none"],["type","text","id","fullName","placeholder","Enter Full Name","formControlName","fullName",1,"w-full","px-4","py-2","text-gray-800","font-bold","placeholder-gray-500","outline-none","border-b-2","border-gray-300","focus:outline-none","focus:placeholder-gray-400","focus:border-mySkyBlue","transition-all","duration-300"],[1,"absolute","inset-y-0","left-0","flex","items-center","pl-2"],[1,"text-mySkyBlue","fas","fa-user"],["type","text","id","email","placeholder","Enter Email Address","formControlName","email",1,"w-full","px-4","py-2","text-gray-800","font-bold","placeholder-gray-500","outline-none","border-b-2","border-gray-300","focus:outline-none","focus:placeholder-gray-400","focus:border-mySkyBlue","transition-all","duration-300"],["for","phoneNumber",1,"pl-2","text-gray-500"],["type","text","id","phoneNumber","placeholder","Enter Phone Number","formControlName","phoneNumber",1,"w-full","px-4","py-2","text-gray-800","font-bold","placeholder-gray-500","outline-none","border-b-2","border-gray-300","focus:outline-none","focus:placeholder-gray-400","focus:border-mySkyBlue","transition-all","duration-300"],["type","submit",1,"w-full","bg-mySkyBlue","text-white","px-6","py-3","rounded-md","hover-move-up","focus:outline-none","focus:bg-blue-600","transition-all","duration-300"],[1,"text-white","fas","fa-credit-card","mr-2"]],template:function(i,n){1&i&&(e.TgZ(0,"div",0)(1,"div",1)(2,"p",2),e._uU(3,"Booking Summary"),e.qZA(),e.TgZ(4,"div",3)(5,"span",4),e._uU(6,"Price per night:"),e.qZA(),e.TgZ(7,"span",5),e._uU(8),e.ALo(9,"currency"),e.qZA()(),e.TgZ(10,"div",3)(11,"span",4),e._uU(12,"Number of nights:"),e.qZA(),e.TgZ(13,"span",5),e._uU(14),e.qZA()(),e.TgZ(15,"div",3)(16,"span",4),e._uU(17,"Long stay discount:"),e.qZA(),e.TgZ(18,"span",5),e._uU(19),e.ALo(20,"currency"),e.qZA()(),e.TgZ(21,"div",3)(22,"span",6),e._uU(23,"Total Price:"),e.qZA(),e.TgZ(24,"span",7),e._uU(25),e.ALo(26,"currency"),e.qZA()()(),e.TgZ(27,"div",8)(28,"div",9)(29,"div",10)(30,"div",11)(31,"label",12),e._uU(32,"Check-in"),e.qZA(),e.TgZ(33,"p-calendar",13),e.NdJ("ngModelChange",function(s){return n.dateCheckIn=s})("ngModelChange",function(){return n.onDateChange()}),e.qZA()(),e.TgZ(34,"div",11)(35,"label",14),e._uU(36,"Check-out"),e.qZA(),e.TgZ(37,"p-calendar",13),e.NdJ("ngModelChange",function(s){return n.dateCheckOut=s})("ngModelChange",function(){return n.onDateChange()}),e.qZA()()(),e.TgZ(38,"div",15)(39,"div",16)(40,"div",17)(41,"button",18),e._UZ(42,"i",19),e._uU(43),e._UZ(44,"i",20),e.qZA()(),e.TgZ(45,"ul",21)(46,"li",22)(47,"span",23),e._uU(48,"Rooms"),e.qZA(),e.TgZ(49,"div",24)(50,"button",25),e.NdJ("click",function(){return n.decrementRooms()}),e._UZ(51,"i",26),e.qZA(),e.TgZ(52,"span"),e._uU(53),e.qZA(),e.TgZ(54,"button",25),e.NdJ("click",function(){return n.incrementRooms()}),e._UZ(55,"i",27),e.qZA()()(),e.TgZ(56,"li",22)(57,"span",23),e._uU(58,"Adults"),e.qZA(),e.TgZ(59,"div",24)(60,"button",25),e.NdJ("click",function(){return n.decrementAdults()}),e._UZ(61,"i",26),e.qZA(),e.TgZ(62,"span"),e._uU(63),e.qZA(),e.TgZ(64,"button",25),e.NdJ("click",function(){return n.incrementAdults()}),e._UZ(65,"i",27),e.qZA()()(),e.TgZ(66,"li",22)(67,"span",23),e._uU(68,"Children"),e.qZA(),e.TgZ(69,"div",24)(70,"button",25),e.NdJ("click",function(){return n.decrementChildren()}),e._UZ(71,"i",26),e.qZA(),e.TgZ(72,"span"),e._uU(73),e.qZA(),e.TgZ(74,"button",25),e.NdJ("click",function(){return n.incrementChildren()}),e._UZ(75,"i",27),e.qZA()()()()()(),e.TgZ(76,"form",28),e.NdJ("ngSubmit",function(){return n.onSubmit()}),e.TgZ(77,"div",29)(78,"label",30),e._uU(79,"Name"),e.qZA(),e.TgZ(80,"div",31),e._UZ(81,"input",32),e.TgZ(82,"div",33),e._UZ(83,"i",34),e.qZA()()(),e.TgZ(84,"div",29)(85,"label",30),e._uU(86,"Email"),e.qZA(),e.TgZ(87,"div",31),e._UZ(88,"input",35),e.TgZ(89,"div",33),e._UZ(90,"i",34),e.qZA()()(),e.TgZ(91,"div",29)(92,"label",36),e._uU(93,"Phone Number"),e.qZA(),e.TgZ(94,"div",31),e._UZ(95,"input",37),e.TgZ(96,"div",33),e._UZ(97,"i",34),e.qZA()()(),e.TgZ(98,"div",29)(99,"button",38),e._UZ(100,"i",39),e._uU(101,"Proceed To Checkout "),e.qZA()()()()()()),2&i&&(e.xp6(8),e.Oqu(e.gM2(9,18,n.pricePerNight,"INR","symbol","1.0-2")),e.xp6(6),e.hij("",n.numberOfNights," nights"),e.xp6(5),e.hij("- ",e.gM2(20,23,n.longStayDiscount,"INR","symbol","1.0-2"),""),e.xp6(6),e.Oqu(e.gM2(26,28,n.totalPriceBeforeTaxes,"INR","symbol","1.0-2")),e.xp6(8),e.Q6J("ngModel",n.dateCheckIn)("showIcon",!0)("ngModelOptions",e.DdM(33,J))("minDate",n.dateCheckIn),e.xp6(4),e.Q6J("ngModel",n.dateCheckOut)("showIcon",!0)("ngModelOptions",e.DdM(34,J))("minDate",n.dateCheckOut),e.xp6(6),e.AsE(" ",n.rooms," Rooms - ",n.adults+n.children," Guests "),e.xp6(10),e.Oqu(n.rooms),e.xp6(10),e.Oqu(n.adults),e.xp6(10),e.Oqu(n.children),e.xp6(3),e.Q6J("formGroup",n.bookingForm))},dependencies:[a._Y,a.Fj,a.JJ,a.JL,a.On,a.sg,a.u,q.f,u.H9]})}return o})();function rt(o,l){1&o&&(e.TgZ(0,"div",28),e._UZ(1,"i",36),e._uU(2," WiFi"),e.qZA())}function lt(o,l){1&o&&(e.TgZ(0,"div",28),e._UZ(1,"i",37),e._uU(2," Private Pool"),e.qZA())}function at(o,l){1&o&&(e.TgZ(0,"div",28),e._UZ(1,"i",38),e._uU(2," TV"),e.qZA())}function st(o,l){1&o&&(e.TgZ(0,"div",28),e._UZ(1,"i",39),e._uU(2," Free Parking"),e.qZA())}function ct(o,l){if(1&o&&(e.TgZ(0,"div",15)(1,"div",16),e._UZ(2,"img",17),e.qZA(),e.TgZ(3,"div",18)(4,"h1",19),e._UZ(5,"i",20),e._uU(6),e.qZA(),e.TgZ(7,"p",21),e._UZ(8,"i",22),e._uU(9),e.qZA(),e.TgZ(10,"div",23)(11,"div",24),e._UZ(12,"i",25)(13,"i",25)(14,"i",25)(15,"i",25)(16,"i",25),e.qZA()(),e.TgZ(17,"p",26),e._uU(18),e.qZA(),e.TgZ(19,"div",27)(20,"div",28),e._UZ(21,"i",29),e._uU(22),e.qZA(),e.TgZ(23,"div",28),e._UZ(24,"i",30),e._uU(25),e.qZA()(),e.TgZ(26,"div",31)(27,"div",32),e.YNc(28,rt,3,0,"div",33),e.YNc(29,lt,3,0,"div",33),e.YNc(30,at,3,0,"div",33),e.YNc(31,st,3,0,"div",33),e.qZA(),e.TgZ(32,"p",34),e._uU(33),e.ALo(34,"currency"),e.TgZ(35,"span",35),e._uU(36,"/Night"),e.qZA()()()()()),2&o){const t=e.oxw();e.xp6(2),e.Q6J("src",t.hotelData.image,e.LSH),e.xp6(4),e.hij("",t.hotelData.hotelName," "),e.xp6(3),e.hij("",t.hotelData.hotelLocation," "),e.xp6(9),e.hij(" ",t.hotelData.description,"... "),e.xp6(4),e.hij(" ",t.hotelData.beds," Bed"),e.xp6(3),e.hij(" ",t.hotelData.bath," Bath"),e.xp6(3),e.Q6J("ngIf",t.hotelData.wifiEnabled),e.xp6(1),e.Q6J("ngIf",t.hotelData.privatePool),e.xp6(1),e.Q6J("ngIf",t.hotelData.tv),e.xp6(1),e.Q6J("ngIf",t.hotelData.freeParking),e.xp6(2),e.Oqu(e.gM2(34,11,t.hotelData.price,"INR","symbol","1.0-2"))}}function dt(o,l){if(1&o&&(e.TgZ(0,"section",40)(1,"p",41),e._uU(2,"Complete These Form For Bookings"),e.qZA(),e.TgZ(3,"p",42),e._uU(4,"_______"),e.qZA(),e._UZ(5,"app-booking",43),e.qZA()),2&o){const t=e.oxw();e.xp6(5),e.Q6J("hotelId",t.hotelId)("hotelPrice",null==t.hotelData?null:t.hotelData.price)}}let ut=(()=>{class o{constructor(t,i,n){this.route=t,this.hotelService=i,this.dataSharing=n,this.isRoomsDropdownOpen=!1,this.isUserRegistered=!1,this.dataSharing.userIsRegistered$.subscribe(r=>{this.isUserRegistered=r})}ngOnInit(){this.route.queryParams.subscribe(t=>{this.hotelId=t.hotelId,this.getHotelData()})}getHotelData(){this.hotelService.getHotelById(this.hotelId).pipe((0,N.K)(t=>(console.error("Error fetching hotel data:",t),(0,it._)("Failed to fetch hotel data. Please try again later.")))).subscribe({next:t=>{this.hotelData=t}})}toggleRoomsDropdown(){this.isRoomsDropdownOpen=!this.isRoomsDropdownOpen}static#e=this.\u0275fac=function(i){return new(i||o)(e.Y36(m.gz),e.Y36(D.N),e.Y36(g.j))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["app-hotel-details"]],decls:24,vars:2,consts:[[1,"w-full","h-[80vh]","relative"],["id","background-Dark",1,"fixed","inset-0","w-full","h-[80vh]","z-[-1]"],[1,"absolute","inset-0","bg-black",2,"opacity","60%"],["src","https://gumlet.assettype.com/freepressjournal/2023-03/28892f6a-c3e0-4589-99e1-773e5baf5bcb/Untitled_design__1_.png","alt","",1,"w-full","h-[80vh]","object-cover"],["data-wow-delay","0.1s",1,"text-center","wow","fadeInUp","pt-5","mx-auto","my-4","mb-8","space-y-1"],[1,"section-title","text-center","text-white","text-2xl","font-serif"],[1,"text-white","capitalize","font-serif"],[1,"hidden","md:inline-block","text-mySkyBlue","font-bold","capitalize","bg-white","p-2","mx-1","rounded"],[1,"inline-block","md:hidden","text-mySkyBlue","font-bold","capitalize","bg-white","p-2","mx-1","text-2xl","rounded"],[1,"text-white","mt-4","text-2xl","mb-2","p-2","capitalize","font-sans"],[1,"text-mySkyBlue","font-mono","text-xl","font-bold","p-1","bg-white"],["id","Booking",1,"bg-white","w-screen","pb-10","border-b-[1px]"],[1,"md:container","mx-auto","p-8","bg-white"],["class","md:flex items-center justify-between mb-4 border-b-2",4,"ngIf"],["id","booking","class","w-full",4,"ngIf"],[1,"md:flex","items-center","justify-between","mb-4","border-b-2"],[1,"w-full","md:w-1/2","h-auto","border-2","object-cover","mb-4","md:mb-0","rounded-md"],["alt","hotelName",1,"w-full","h-auto","rounded-md",3,"src"],[1,"md:w-1/2","md:ml-8"],[1,"text-4xl","font-extrabold","text-gray-600","mb-4"],[1,"fas","fa-hotel","text-mySkyBlue","mr-2"],[1,"text-gray-600","mb-2"],[1,"fas","fa-map-marker-alt","text-mySkyBlue","mr-2"],[1,"flex","items-start","flex-col","justify-start","mb-2"],[1,"text-yellow-500"],[1,"fas","fa-star"],[1,"text-gray-700","mb-4"],[1,"flex","items-center","gap-4","m-0","mb-2"],[1,"text-mySkyBlue"],[1,"fas","fa-bed"],[1,"fas","fa-bath"],[1,"flex","items-center","justify-between","mb-4"],[1,"flex","space-x-4"],["class","text-mySkyBlue",4,"ngIf"],[1,"border","p-2","rounded","shadow-sm","text-lg","font-bold","m-0","text-green-500"],[1,"text-gray-600","font-semibold"],[1,"fas","fa-wifi"],[1,"fas","fa-swimming-pool"],[1,"fas","fa-tv"],[1,"fas","fa-car"],["id","booking",1,"w-full"],[1,"w-full","text-2xl","font-semibold","text-center","text-gray-600","m-0","p-0"],[1,"w-full","text-center","font-bold","text-xl","text-mySkyBlue"],[3,"hotelId","hotelPrice"]],template:function(i,n){1&i&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"div",2)(3,"img",3),e.qZA(),e._UZ(4,"app-header"),e.TgZ(5,"div",4)(6,"h6",5),e._uU(7,"Your Hotel Experience Awaits"),e.qZA(),e.TgZ(8,"h1",6),e._uU(9," Book Your Dream Hotel with "),e.TgZ(10,"span",7),e._uU(11,"My Travels"),e.qZA()(),e.TgZ(12,"span",8),e._uU(13,"My Travels"),e.qZA(),e.TgZ(14,"p",9),e._uU(15," Explore our curated collection of luxury hotels. Plan your dream stay and unlock exclusive offers to enjoy exceptional service during your visit. "),e.qZA(),e.TgZ(16,"span",10),e._uU(17,"Book Your Luxury Experience Now."),e.qZA()()(),e.TgZ(18,"section",11)(19,"div",12),e.YNc(20,ct,37,16,"div",13),e.YNc(21,dt,6,2,"section",14),e.qZA()(),e._UZ(22,"app-footer")(23,"app-loader")),2&i&&(e.xp6(20),e.Q6J("ngIf",n.hotelData),e.xp6(1),e.Q6J("ngIf",n.isUserRegistered))},dependencies:[u.O5,h.G,f.c,U,nt,u.H9]})}return o})();function mt(o,l){1&o&&(e.TgZ(0,"div",15),e._uU(1,"You don't have any bookings."),e.qZA())}function pt(o,l){if(1&o&&(e.TgZ(0,"div",16),e._UZ(1,"img",17),e.TgZ(2,"div",18)(3,"h2",19),e._UZ(4,"i",20),e._uU(5),e.qZA(),e.TgZ(6,"h3",21),e._UZ(7,"i",22),e._uU(8),e.qZA(),e.TgZ(9,"p",23),e._uU(10),e.qZA(),e.TgZ(11,"div",24)(12,"div",25)(13,"span",26),e._uU(14,"Nights:"),e.qZA(),e._uU(15),e.qZA(),e.TgZ(16,"div",25)(17,"span",27),e._uU(18,"Price:"),e.qZA(),e._uU(19),e.ALo(20,"currency"),e.qZA(),e.TgZ(21,"div",25)(22,"span",28),e._uU(23,"Total Price:"),e.qZA(),e._uU(24),e.ALo(25,"currency"),e.qZA()(),e.TgZ(26,"div",29)(27,"p",23)(28,"span",26),e._uU(29,"Check-in:"),e.qZA(),e._uU(30),e.ALo(31,"date"),e.qZA(),e.TgZ(32,"p",23)(33,"span",26),e._uU(34,"Check-out:"),e.qZA(),e._uU(35),e.ALo(36,"date"),e.qZA()()()()),2&o){const t=l.$implicit;e.xp6(1),e.Q6J("src",t.hotelImage,e.LSH),e.xp6(4),e.hij(" ",t.hotelName,""),e.xp6(3),e.hij(" ",t.hotelLocation," "),e.xp6(2),e.Oqu(t.description),e.xp6(5),e.hij(" ",t.nights,""),e.xp6(4),e.hij(" ",e.gM2(20,9,t.hotelPrice,"INR","symbol","1.0-2"),"/Night"),e.xp6(5),e.hij(" ",e.gM2(25,14,t.totalPrice,"INR","symbol","1.0-2"),""),e.xp6(6),e.hij(" ",e.lcZ(31,19,t.dateCheckIn),""),e.xp6(5),e.hij(" ",e.lcZ(36,21,t.dateCheckOut),"")}}let gt=(()=>{class o{constructor(t,i){this.bookingService=t,this.dataService=i,this.userID=this.dataService.userEmail}ngOnInit(){this.bookingService.getBookingsforUser(this.userID).subscribe({next:t=>{this.bookingData=t},error:t=>{console.error("Error fetching bookings:",t)}})}static#e=this.\u0275fac=function(i){return new(i||o)(e.Y36(F),e.Y36(g.j))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["app-my-bookings"]],decls:24,vars:2,consts:[[1,"w-full","h-[80vh]","relative"],["id","background-Dark",1,"fixed","inset-0","w-full","h-[80vh]","z-[-1]"],[1,"absolute","inset-0","bg-black",2,"opacity","60%"],["src","https://as2.ftcdn.net/v2/jpg/01/53/24/61/1000_F_153246103_2wYLQuKYTIEjWj1aWns1kHUTe3JmSh0L.jpg","alt","",1,"w-full","h-[80vh]","object-cover","object-center"],["data-wow-delay","0.1s",1,"text-center","wow","fadeInUp","pt-5","mx-auto","my-4","mb-8","space-y-1"],[1,"section-title","text-center","text-white","text-2xl","font-serif"],[1,"text-white","capitalize","font-serif"],[1,"hidden","md:inline-block","text-mySkyBlue","font-bold","capitalize","bg-white","p-2","mx-1","rounded"],[1,"inline-block","md:hidden","text-mySkyBlue","font-bold","capitalize","bg-white","p-2","mx-1","text-2xl","rounded"],[1,"p-1","text-white","mt-4","text-2xl","capitalize","font-sans"],[1,"bg-white","w-screen","border-b-[1px]"],[1,"container","mx-auto","my-10"],[1,"text-3xl","pt-4","text-center","font-extrabold","mb-4","text-mySkyBlue"],["class","text-red-500 text-2xl font-sans text-center border-b-2 border-red-600",4,"ngIf"],["class","flex flex-col sm:flex-row border-[1px] shadow-md rounded-sm p-4 mb-4",4,"ngFor","ngForOf"],[1,"text-red-500","text-2xl","font-sans","text-center","border-b-2","border-red-600"],[1,"flex","flex-col","sm:flex-row","border-[1px]","shadow-md","rounded-sm","p-4","mb-4"],["alt","Hotel Image",1,"w-full","h-auto","sm:w-48","sm:h-32","object-cover","mb-4","mr-4",3,"src"],[1,"flex-1"],[1,"text-xl","font-semibold"],[1,"fas","fa-hotel","text-mySkyBlue","me-2"],[1,"text-xl","text-gray-600","font-semibold"],[1,"fas","fa-map-marker-alt","text-mySkyBlue","me-2"],[1,"text-gray-600"],[1,"flex","justify-between","hotels-center","mt-4"],[1,"text-lg","font-semibold"],[1,"text-mySkyBlue"],[1,"text-red-600"],[1,"text-green-600"],[1,"mt-4"]],template:function(i,n){1&i&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"div",2)(3,"img",3),e.qZA(),e._UZ(4,"app-header"),e.TgZ(5,"div",4)(6,"h6",5),e._uU(7,"Your Amazing Hotel Experience"),e.qZA(),e.TgZ(8,"h1",6),e._uU(9," Plan Your Getaway with "),e.TgZ(10,"span",7),e._uU(11,"My Travels"),e.qZA()(),e.TgZ(12,"span",8),e._uU(13,"My Travels"),e.qZA(),e.TgZ(14,"p",9),e._uU(15," Discover luxury hotels we love. Add your favorites to your cart and plan your dream stay. Sign in or sign up to get exclusive deals and save your hotel wishlist. "),e.qZA()()(),e.TgZ(16,"section",10)(17,"div",11)(18,"h1",12),e._uU(19,"\u{1f6d2} My Bookings"),e.qZA(),e.YNc(20,mt,2,0,"div",13),e.YNc(21,pt,37,23,"div",14),e.qZA()(),e._UZ(22,"app-footer")(23,"app-loader")),2&i&&(e.xp6(20),e.Q6J("ngIf",0===n.bookingData.length),e.xp6(1),e.Q6J("ngForOf",n.bookingData))},dependencies:[u.sg,u.O5,h.G,f.c,U,u.H9,u.uU]})}return o})();var ht=c(6321),ft=c(9360),B=c(8251),_t=c(4829),vt=c(4825);var Zt=c(2096),yt=c(6593);let wt=(()=>{class o{constructor(t){this.http=t,this.apiUrl=`${_.N.API_ENDPOINT}/contacts`}getContacts(){return this.http.get(this.apiUrl)}addContact(t){return this.http.post(this.apiUrl,t)}static#e=this.\u0275fac=function(i){return new(i||o)(e.LFG(v.eN))};static#t=this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Tt=(()=>{class o{constructor(t,i,n,r,s){this.sanitizer=t,this.fb=i,this.cdr=n,this.contactService=r,this.tosterMessage=s}ngOnInit(){this.initForm(),this.getGoogleMapsUrl().pipe(function bt(o,l=ht.z,t){const i=(0,vt.H)(o,l);return function xt(o,l){return(0,ft.e)((t,i)=>{const{leading:n=!0,trailing:r=!1}=l??{};let s=!1,d=null,p=null,y=!1;const St=()=>{p?.unsubscribe(),p=null,r&&(j(),y&&i.complete())},It=()=>{p=null,y&&i.complete()},M=x=>p=(0,_t.Xf)(o(x)).subscribe((0,B.x)(i,St,It)),j=()=>{if(s){s=!1;const x=d;d=null,i.next(x),!y&&M(x)}};t.subscribe((0,B.x)(i,x=>{s=!0,d=x,(!p||p.closed)&&(n?j():M(x))},()=>{y=!0,(!(r&&s&&p)||p.closed)&&i.complete()}))})}(()=>i,t)}(500)).subscribe(t=>{this.googleMapsUrl=t,this.cdr.detectChanges()})}initForm(){this.contactForm=this.fb.group({name:["",a.kI.required],email:["",[a.kI.required,a.kI.email]],subject:["",a.kI.required],message:[""]})}submitForm(){this.contactForm.valid?this.contactService.addContact(this.contactForm.value).subscribe({next:()=>{this.tosterMessage.showSuccess("Your feedback has been submitted successfully! Thank you.","Success"),this.contactForm.reset()},error:i=>{this.tosterMessage.showError(404===i.status?"Contact endpoint not found.":"Error submitting feedback. Please try again.","Error")}}):this.tosterMessage.showWarning("Please fill out the required fields correctly.","Warning")}getGoogleMapsUrl(){return(0,Zt.of)(this.sanitizer.bypassSecurityTrustResourceUrl("https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2422245.047849365!2d75.7139!3d19.7515!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3bc2bf632330044d%3A0xc3f58b98a6af269!2sMaharashtra%2C%20India!5e0!3m2!1sen!2sbd!4v1603794290143!5m2!1sen!2sbd"))}static#e=this.\u0275fac=function(i){return new(i||o)(e.Y36(yt.H7),e.Y36(a.qu),e.Y36(e.sBO),e.Y36(wt),e.Y36(b.b))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["app-contact-us"]],decls:72,vars:2,consts:[["id","header",1,"bg-cover","bg-center","w-full","h-full"],["id","background-Dark",1,"absolute","w-full","h-[80vh]","z-[-1]"],[1,"absolute","inset-0","bg-black",2,"opacity","50%"],["src","https://www.fabhotels.com/blog/wp-content/uploads/2019/02/Velhe1.jpg","alt","",1,"w-full","h-[80vh]","object-cover"],["id","hero-section",1,"hero","relative","flex","flex-col","items-center","justify-center"],["id","serch-container",1,"container","h-[80vh]","md:h-[80vh]","flex","items-center","justify-center","text-white","text-center"],[1,"flex","items-center","justify-center","flex-col"],[1,"text-[7vw]","md:text-[5vw]","font-extrabold","mb-4","fontHeebo"],[1,"text-[3vw]","md:text-[1.5vw]","font-semibold","capitalize"],[1,"container","absolute","bottom-10","searchContainer"],[1,"w-screen","border-b-[1px]","pb-2"],[1,"container","mx-auto","p-2"],[1,"text-center"],[1,"section-title","text-center","text-mySkyBlue","uppercase","fontHeebo","m-0","p-0","flex","flex-col"],[1,"m-0","p-0","mb-4","font-bold","text-mySkyBlue"],[1,"mb-5"],[1,"text-mySkyBlue","font-bold","uppercase","fontHeebo"],[1,"flex","flex-wrap"],[1,"w-full","mb-2"],[1,"flex","flex-wrap","gy-4"],[1,"md:w-1/3","pr-4","pl-4"],[1,"section-title","text-start","text-mySkyBlue","uppercase"],[1,"fa","fa-envelope-open","text-mySkyBlue","me-2"],[1,"w-[95%]","md:w-1/2","mb-3","md:mb-0"],["frameborder","0","tabindex","0",1,"position-relative","rounded","w-100","h-100",2,"min-height","350px","border","0",3,"src"],[1,"w-full","md:w-1/2","pr-4","pl-4"],[1,"max-w-md","mx-auto",3,"formGroup","ngSubmit"],[1,"grid","grid-cols-1","gap-6"],[1,""],["for","name",1,"block","text-sm","font-medium","text-gray-700"],["type","text","id","name","name","name","formControlName","name",1,"mt-1","p-2","w-full","border","rounded-md","focus:border-none","focus:outline-blue-400","focus:shadow-blue-400","focus:shadow-sm"],["for","email",1,"block","text-sm","font-medium","text-gray-700"],["type","email","id","email","name","email","formControlName","email",1,"mt-1","p-2","w-full","border","rounded-md","focus:border-none","focus:outline-blue-400","focus:shadow-blue-400","focus:shadow-sm"],["for","subject",1,"block","text-sm","font-medium","text-gray-700"],["type","text","id","subject","name","subject","formControlName","subject",1,"mt-1","p-2","w-full","border","rounded-md","focus:border-none","focus:outline-blue-400","focus:shadow-blue-400","focus:shadow-sm"],["for","message",1,"block","text-sm","font-medium","text-gray-700"],["id","message","name","message","rows","4","formControlName","message",1,"mt-1","p-2","w-full","border","rounded-md","focus:border-none","focus:outline-blue-400","focus:shadow-blue-400","focus:shadow-sm"],["type","submit",1,"w-full","p-3","bg-mySkyBlue","text-white","hover:shadow-lg","rounded-md","move-up"]],template:function(i,n){1&i&&(e.TgZ(0,"header",0)(1,"div",1),e._UZ(2,"div",2)(3,"img",3),e.qZA(),e._UZ(4,"app-header"),e.TgZ(5,"div",4)(6,"div",5)(7,"div",6)(8,"h1",7),e._uU(9,"Connect with Us! "),e.qZA(),e.TgZ(10,"p",8),e._uU(11," We're here to make your experience exceptional. Have a question, suggestion, or just want to say hello? Your thoughts matter to us. Feel free to reach out!"),e.qZA()()(),e.TgZ(12,"div",9),e._UZ(13,"app-search"),e.qZA()()(),e.TgZ(14,"div",10)(15,"div",11)(16,"div",12)(17,"h6",13),e._uU(18,"Contact Us "),e.TgZ(19,"span",14),e._uU(20,"____"),e.qZA()(),e.TgZ(21,"h1",15)(22,"span",16),e._uU(23,"Contact"),e.qZA(),e._uU(24," For Any Query "),e.qZA()(),e.TgZ(25,"div",17)(26,"div",18)(27,"div",19)(28,"div",20)(29,"h6",21),e._uU(30,"Booking"),e.qZA(),e.TgZ(31,"p"),e._UZ(32,"i",22),e._uU(33,"MyTravelBooking@example.com"),e.qZA()(),e.TgZ(34,"div",20)(35,"h6",21),e._uU(36,"General"),e.qZA(),e.TgZ(37,"p"),e._UZ(38,"i",22),e._uU(39,"MyTravelInfo@example.com"),e.qZA()(),e.TgZ(40,"div",20)(41,"h6",21),e._uU(42,"Technical"),e.qZA(),e.TgZ(43,"p"),e._UZ(44,"i",22),e._uU(45,"MyTravelTech@example.com"),e.qZA()()()(),e.TgZ(46,"div",23),e._UZ(47,"iframe",24),e.qZA(),e.TgZ(48,"div",25)(49,"div")(50,"form",26),e.NdJ("ngSubmit",function(){return n.submitForm()}),e.TgZ(51,"div",27)(52,"div",28)(53,"label",29),e._uU(54,"Your Name"),e.qZA(),e._UZ(55,"input",30),e.qZA(),e.TgZ(56,"div")(57,"label",31),e._uU(58,"Your Email"),e.qZA(),e._UZ(59,"input",32),e.qZA(),e.TgZ(60,"div")(61,"label",33),e._uU(62,"Subject"),e.qZA(),e._UZ(63,"input",34),e.qZA(),e.TgZ(64,"div")(65,"label",35),e._uU(66,"Message"),e.qZA(),e._UZ(67,"textarea",36),e.qZA(),e.TgZ(68,"div")(69,"button",37),e._uU(70,"Send Message"),e.qZA()()()()()()()()(),e._UZ(71,"app-footer")),2&i&&(e.xp6(47),e.Q6J("src",n.googleMapsUrl,e.uOi),e.xp6(3),e.Q6J("formGroup",n.contactForm))},dependencies:[a._Y,a.Fj,a.JJ,a.JL,a.sg,a.u,h.G,f.c,w],changeDetection:0})}return o})();var Z=c(6825);const A=(o,l)=>{const t=(0,e.f3M)(m.F0);return!!(0,e.f3M)(k.e).isAuthenticated()||(t.navigateByUrl("user/login"),!1)},Ut=[{path:"",component:xe,pathMatch:"full"},{path:"login",component:We},{path:"allhotels",component:Be},{path:"hotelDetails",component:ut,canActivate:[A]},{path:"cart",component:ot,canActivate:[A]},{path:"myBookings",component:gt,canActivate:[A]},{path:"contactUs",component:Tt},{path:"aboutUs",component:(()=>{class o{constructor(){this.countValue=0,this.roomsValue=0,this.clientValues=0,this.INTERVAL_DURATION_MS=60}ngOnInit(){this.autoIncrement()}autoIncrement(){const t=setInterval(()=>{this.countValue+=40,this.roomsValue+=497,this.clientValues+=5234,this.countValue>=1e3&&clearInterval(t)},this.INTERVAL_DURATION_MS)}static#e=this.\u0275fac=function(i){return new(i||o)};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["app-about-us"]],decls:138,vars:6,consts:[["id","header",1,"bg-cover","bg-center","w-full","h-full"],["id","background-Dark",1,"absolute","w-full","h-[80vh]","z-[-1]"],[1,"absolute","inset-0","bg-black",2,"opacity","50%"],["src","https://assets.architecturaldigest.in/photos/600838c5e6e1f64740188f53/16:9/w_1280,c_limit/Umaid-Bhawan-1366x768.jpg","alt","",1,"w-full","h-[80vh]","object-cover"],["id","hero-section",1,"hero","relative","flex","flex-col","items-center","justify-center"],["id","serch-container",1,"container","h-[80vh]","md:h-[80vh]","flex","items-center","justify-center","text-white","text-center"],[1,"flex","items-center","justify-center","flex-col"],[1,"text-[7vw]","md:text-[5vw]","font-extrabold","mb-4","fontHeebo"],[1,"text-[3vw]","md:text-[1.5vw]","font-semibold","capitalize"],[1,"container","absolute","bottom-10","searchContainer"],[1,"w-screen"],[1,"container","mx-auto","py-5","sm:px-2","shadow-sm"],[1,"flex","flex-wrap","g-5","items-center"],[1,"w-full","lg:w-1/2","pr-4","pl-4"],[1,"section-title","text-start","text-mySkyBlue","uppercase"],[1,"mb-4"],[1,"text-mySkyBlue","capitalize"],[1,"mb-2","capitalize"],[1,"flex","flex-wrap","g-3","pb-4"],["data-wow-delay","0.1s",1,"w-full","mt-2","sm:mt-0","sm:w-1/3","md:w-full","lg:w-1/3","pr-4","pl-4","wow","fadeIn"],[1,"border","rounded","p-1"],[1,"border","rounded","text-center","p-6"],[1,"fa","fa-hotel","fa-2x","text-mySkyBlue","mb-2"],[1,"mb-1"],[1,"mb-0"],["data-wow-delay","0.3s",1,"w-1/2","mt-2","sm:mt-0","sm:w-1/3","md:w-1/2","lg:w-1/3","pr-4","pl-4","wow","fadeIn"],[1,"fa","fa-users-cog","fa-2x","text-mySkyBlue","mb-2"],["data-wow-delay","0.5s",1,"w-1/2","mt-2","sm:mt-0","sm:w-1/3","md:w-1/2","lg:w-1/3","pr-4","pl-4","wow","fadeIn"],[1,"fa","fa-users","fa-2x","text-mySkyBlue","mb-2"],["href","",1,"inline-block","align-middle","text-center","select-none","border","font-normal","whitespace-no-wrap","rounded","leading-normal","no-underline","bg-mySkyBlue","text-white","hover:shadow-lg","py-3","px-5","mt-2","move-up"],[1,"w-full","lg:w-1/2","pr-4","pl-4","mt-4","sm:mt-0"],[1,"flex","flex-wrap"],[1,"w-1/2","text-end","relative","px-2","mt-2"],["data-wow-delay","0.1s","src","assets/about-1.jpg",1,"max-w-full","absolute","bottom-0","right-0","h-auto","rounded-sm","w-3/4","wow","zoomIn",2,"margin-top","25%"],[1,"w-1/2","text-start","px-2","mt-2"],["data-wow-delay","0.3s","src","assets/about-2.jpg",1,"max-w-full","h-auto","rounded-sm","w-full","wow","zoomIn"],["data-wow-delay","0.5s","src","assets/about-3.jpg",1,"max-w-full","h-auto","absolute","top-0","right-0","rounded-sm","w-1/2","wow","zoomIn"],["data-wow-delay","0.7s","src","assets/about-4.jpg",1,"max-w-full","h-auto","rounded-sm","w-3/4","wow","zoomIn"],["id","services",1,"w-screen","py-5","border-b-[1px]","mt-6"],[1,"container","mx-auto","sm:px-4"],["data-wow-delay","0.1s",1,"text-center","wow","fadeInUp"],[1,"section-title","text-center","text-mySkyBlue","uppercase","flex","flex-col"],[1,"text-mySkyBlue","font-bold"],[1,"mb-5"],[1,"text-mySkyBlue","uppercase"],[1,"container","mx-auto","flex","flex-wrap","justify-center","gap-8"],[1,"group","relative","cursor-pointer","overflow-hidden","bg-white","px-6","pt-10","pb-8","shadow-xl","ring-1","ring-gray-900/5","transition-all","duration-300","hover:-translate-y-1","hover:shadow-2xl","sm:mx-auto","sm:max-w-sm","sm:rounded-lg","sm:px-10"],[1,"absolute","top-10","z-0","h-20","w-20","rounded-full","bg-sky-600","transition-all","duration-300","group-hover:scale-[12]"],[1,"relative","z-10","mx-auto","max-w-md"],[1,"grid","h-20","w-20","place-items-center","rounded-full","bg-sky-600","transition-all","duration-300","group-hover:bg-sky-400"],[1,"fa","fa-hotel","fa-2x","text-white","transition-all","duration-300","group-hover:text-sky-600"],[1,"space-y-6","pt-5","text-lg","leading-7","text-gray-600","transition-all","duration-300","group-hover:text-white/90"],[1,"mb-4","text-xl"],[1,"fa","fa-utensils","fa-2x","text-white","transition-all","duration-300","group-hover:text-sky-600"],[1,"fa","fa-spa","fa-2x","text-white","transition-all","duration-300","group-hover:text-sky-600"],[1,"fa","fa-swimmer","fa-2x","text-white","transition-all","duration-300","group-hover:text-sky-600"],[1,"fa","fa-glass-cheers","fa-2x","text-white","transition-all","duration-300","group-hover:text-sky-600"],[1,"fa","fa-dumbbell","fa-2x","text-white","transition-all","duration-300","group-hover:text-sky-600"]],template:function(i,n){1&i&&(e.TgZ(0,"header",0)(1,"div",1),e._UZ(2,"div",2)(3,"img",3),e.qZA(),e._UZ(4,"app-header"),e.TgZ(5,"div",4)(6,"div",5)(7,"div",6)(8,"h1",7),e._uU(9,"Welcome to MyTravels!"),e.qZA(),e.TgZ(10,"p",8),e._uU(11," Discover a World of Luxury and Adventure with MyTravels. We're dedicated to making your travel experiences exceptional. Whether you're seeking a tranquil retreat or an adventurous getaway, we have the perfect destination for you. Your journey begins here! "),e.qZA()()(),e.TgZ(12,"div",9),e._UZ(13,"app-search"),e.qZA()()(),e.TgZ(14,"div",10)(15,"div",11)(16,"div",12)(17,"div",13)(18,"h6",14),e._uU(19,"About Us"),e.qZA(),e.TgZ(20,"h1",15),e._uU(21,"Welcome to "),e.TgZ(22,"span",16),e._uU(23,"MyTravels"),e.qZA()(),e.TgZ(24,"p",17),e._uU(25,"At MyTravels, we understand that every journey is unique. That's why our user-friendly platform empowers you to customize your stay effortlessly. From selecting the perfect room to arranging personalized amenities, your travel preferences take center stage."),e.qZA(),e.TgZ(26,"p",17),e._uU(27,"Experience unparalleled hospitality with MyTravels. Our dedicated team is committed to turning your travel dreams into reality. Begin your adventure today and let MyTravels be your trusted companion in crafting unforgettable memories."),e.qZA(),e.TgZ(28,"div",18)(29,"div",19)(30,"div",20)(31,"div",21),e._UZ(32,"i",22),e.TgZ(33,"h2",23),e._uU(34),e.qZA(),e.TgZ(35,"p",24),e._uU(36,"Rooms"),e.qZA()()()(),e.TgZ(37,"div",25)(38,"div",20)(39,"div",21),e._UZ(40,"i",26),e.TgZ(41,"h2",23),e._uU(42),e.qZA(),e.TgZ(43,"p",24),e._uU(44,"Staffs"),e.qZA()()()(),e.TgZ(45,"div",27)(46,"div",20)(47,"div",21),e._UZ(48,"i",28),e.TgZ(49,"h2",23),e._uU(50),e.qZA(),e.TgZ(51,"p",24),e._uU(52,"Clients"),e.qZA()()()()(),e.TgZ(53,"a",29),e._uU(54,"Explore More"),e.qZA()(),e.TgZ(55,"div",30)(56,"div",31)(57,"div",32),e._UZ(58,"img",33),e.qZA(),e.TgZ(59,"div",34),e._UZ(60,"img",35),e.qZA(),e.TgZ(61,"div",32),e._UZ(62,"img",36),e.qZA(),e.TgZ(63,"div",34),e._UZ(64,"img",37),e.qZA()()()()()(),e.TgZ(65,"div",38)(66,"div",39)(67,"div",40)(68,"h6",41),e._uU(69,"Our Services "),e.TgZ(70,"span",42),e._uU(71,"_____"),e.qZA()(),e.TgZ(72,"h1",43),e._uU(73,"Explore Our "),e.TgZ(74,"span",44),e._uU(75,"Services"),e.qZA()()(),e.TgZ(76,"div",45)(77,"div",46),e._UZ(78,"span",47),e.TgZ(79,"div",48)(80,"span",49),e._UZ(81,"i",50),e.qZA(),e.TgZ(82,"div",51)(83,"h5",52),e._uU(84,"Rooms & Apartment"),e.qZA(),e.TgZ(85,"p"),e._uU(86,"Erat ipsum justo amet duo et elitr dolor, est duo duo eos lorem sed diam stet diam sed stet lorem."),e.qZA()()()(),e.TgZ(87,"div",46),e._UZ(88,"span",47),e.TgZ(89,"div",48)(90,"span",49),e._UZ(91,"i",53),e.qZA(),e.TgZ(92,"div",51)(93,"h5",52),e._uU(94,"Food & Restaurant"),e.qZA(),e.TgZ(95,"p"),e._uU(96,"Erat ipsum justo amet duo et elitr dolor, est duo duo eos lorem sed diam stet diam sed stet lorem."),e.qZA()()()(),e.TgZ(97,"div",46),e._UZ(98,"span",47),e.TgZ(99,"div",48)(100,"span",49),e._UZ(101,"i",54),e.qZA(),e.TgZ(102,"div",51)(103,"h5",52),e._uU(104,"Spa & Fitness"),e.qZA(),e.TgZ(105,"p"),e._uU(106,"Erat ipsum justo amet duo et elitr dolor, est duo duo eos lorem sed diam stet diam sed stet lorem."),e.qZA()()()(),e.TgZ(107,"div",46),e._UZ(108,"span",47),e.TgZ(109,"div",48)(110,"span",49),e._UZ(111,"i",55),e.qZA(),e.TgZ(112,"div",51)(113,"h5",52),e._uU(114,"Sports & Gaming"),e.qZA(),e.TgZ(115,"p"),e._uU(116,"Erat ipsum justo amet duo et elitr dolor, est duo duo eos lorem sed diam stet diam sed stet lorem."),e.qZA()()()(),e.TgZ(117,"div",46),e._UZ(118,"span",47),e.TgZ(119,"div",48)(120,"span",49),e._UZ(121,"i",56),e.qZA(),e.TgZ(122,"div",51)(123,"h5",52),e._uU(124,"Event & Party"),e.qZA(),e.TgZ(125,"p"),e._uU(126,"Erat ipsum justo amet duo et elitr dolor, est duo duo eos lorem sed diam stet diam sed stet lorem."),e.qZA()()()(),e.TgZ(127,"div",46),e._UZ(128,"span",47),e.TgZ(129,"div",48)(130,"span",49),e._UZ(131,"i",57),e.qZA(),e.TgZ(132,"div",51)(133,"h5",52),e._uU(134,"GYM & Yoga"),e.qZA(),e.TgZ(135,"p"),e._uU(136,"Erat ipsum justo amet duo et elitr dolor, est duo duo eos lorem sed diam stet diam sed stet lorem."),e.qZA()()()()()()(),e._UZ(137,"app-footer")),2&i&&(e.xp6(33),e.Q6J("@counting",n.countValue),e.xp6(1),e.Oqu(n.countValue),e.xp6(7),e.Q6J("@counting",n.roomsValue),e.xp6(1),e.Oqu(n.roomsValue),e.xp6(7),e.Q6J("@counting",n.clientValues),e.xp6(1),e.Oqu(n.clientValues))},dependencies:[h.G,f.c,w],data:{animation:[(0,Z.X$)("counting",[(0,Z.eR)(":increment",[(0,Z.oB)({opacity:0,transform:"translateY(-20px)"}),(0,Z.jt)("500ms ease-out",(0,Z.oB)({opacity:1,transform:"translateY(0)"}))])])]}})}return o})()},{path:"**",redirectTo:""}];let At=(()=>{class o{static#e=this.\u0275fac=function(i){return new(i||o)};static#t=this.\u0275mod=e.oAB({type:o});static#o=this.\u0275inj=e.cJS({imports:[m.Bz.forChild(Ut),m.Bz]})}return o})();var Ct=c(863);let qt=(()=>{class o{static#e=this.\u0275fac=function(i){return new(i||o)};static#t=this.\u0275mod=e.oAB({type:o});static#o=this.\u0275inj=e.cJS({imports:[u.ez,At,H.m,Ct.A]})}return o})()}}]);