PageSourceSearch

https://www.eligasht.com/_next/static/chunks/829-832d05c6f2cc1d4f.js

js eligasht.com collected 2026-09-25 04:35:34 UTC 34,604 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[829],{6265:e=>{e.exports={room:"rooms_room__pJGnj",rooms_wrapper:"rooms_rooms_wrapper__Lx9vu",room_start_section:"rooms_room_start_section__zTm3g",room_end_section:"rooms_room_end_section__XmB5f",skeleton:"rooms_skeleton__VwbBS",room_active:"rooms_room_active__jvBnX",room_select_container:"rooms_room_select_container__FBr7S"}},14584:e=>{e.exports={hotel_compare_bottom:"HotelComparison_hotel_compare_bottom__g7lYs",hotel_compare_bottom_wrapper:"HotelComparison_hotel_compare_bottom_wrapper__nHiEV",hotel_compare_stars_wrapper:"HotelComparison_hotel_compare_stars_wrapper__JUPdG",hotel_compare_items_wrapper:"HotelComparison_hotel_compare_items_wrapper__xPBNU",hotel_compare_button:"HotelComparison_hotel_compare_button__r8OSL",hotel_compare_button_disabled:"HotelComparison_hotel_compare_button_disabled__cMlF6",hotel_compare_tab_color:"HotelComparison_hotel_compare_tab_color__Npzd6",hotel_compare_block:"HotelComparison_hotel_compare_block___qkcs",hotel_compare_block_wrapper:"HotelComparison_hotel_compare_block_wrapper__eO6E1",hotel_name:"HotelComparison_hotel_name__RRiYY",hotel_thumbnail:"HotelComparison_hotel_thumbnail__PkpM_",hotel_image:"HotelComparison_hotel_image__aplRv",hotel_image_wrapper:"HotelComparison_hotel_image_wrapper__kW1gs",hotel_comparison_footer:"HotelComparison_hotel_comparison_footer___632s",hotel_comparison_list:"HotelComparison_hotel_comparison_list__gSkQZ",hotel_comparison_list_item:"HotelComparison_hotel_comparison_list_item__jHTUP",hotel_compare_wrapper:"HotelComparison_hotel_compare_wrapper__uUzOs",hotel_compare_main:"HotelComparison_hotel_compare_main__JZbnr",hotel_compare_main_inner:"HotelComparison_hotel_compare_main_inner__s6Wex"}},19078:(e,l,s)=>{"use strict";s.d(l,{A:()=>N});var t=s(37876),o=s(14232),a=s(87109),n=s(68034),r=s(8073),i=s.n(r);s(32283),s(96637),s(70031);var c=s(48230),m=s.n(c),d=s(6995),h=s(80358),p=s(61949),x=s(77742),_=s(15039),u=s.n(_),j=s(52563),v=s(65648);let g=e=>{let{imageData:l,countShowSlides:s,index:a,isPackage:n,isMobileAgent:r,value:c,width:m,height:d}=e,[x,_]=(0,o.useState)(!1),[u,j]=(0,o.useState)(!1);return x?(0,t.jsx)("div",{className:`${i().hotel_swiper_img} slide-image`,children:(0,t.jsx)("div",{className:i().hotel_swiper_placeholder,children:(0,t.jsx)(h.A,{fontSize:"large",className:"text-secondary"})})}):(0,t.jsxs)("div",{className:`${i().hotel_swiper_img} slide-image position-relative`,children:[u?null:(0,t.jsx)("div",{className:"position-absolute inset-0 d-flex justify-content-center align-items-center",children:(0,t.jsx)(v.A,{sx:{color:"grey.500"}})}),(0,t.jsx)("img",{loading:"lazy",alt:l.name??"",src:`${p.Mp}${c}?x-img=v1/resize,w_400,h_0/optimize,q_90`,onLoad:()=>j(!0),onError:()=>_(!0)})]})},f=e=>{let{imageData:l,countShowSlides:s,index:a,isPackage:n,isMobileAgent:r,value:c,width:d,hotelSearchKey:x,height:_}=e,[u,j]=(0,o.useState)(!1),[g,f]=(0,o.useState)(!1);return u?(0,t.jsx)("div",{className:`${i().hotel_swiper_img} slide-image`,children:(0,t.jsx)("div",{className:i().hotel_swiper_placeholder,children:(0,t.jsx)(h.A,{fontSize:"large",className:"text-secondary"})})}):(0,t.jsxs)("div",{className:`${i().hotel_swiper_img} slide-image position-relative`,children:[g?null:(0,t.jsx)("div",{className:"position-absolute inset-0 d-flex justify-content-center align-items-center",children:(0,t.jsx)(v.A,{sx:{color:"grey.500"}})}),(0,t.jsx)(m(),{href:`${l.detailURL}${x?`?K=${x}`:""}`,prefetch:!1,target:"_blank",children:(0,t.jsx)("img",{loading:"lazy",alt:l.name??"",src:`${p.Mp}${c}?x-img=v1/resize,w_400,h_0/optimize,q_90`,onLoad:()=>f(!0),onError:()=>j(!0)})})]})},N=(0,o.memo)(e=>{let{imageData:l,width:s,height:r,isLink:c,hotelSearchKey:m,isPackage:h,isMobileAgent:p,specialBadge:_,slidesPerView:v,renderBadges:N,fullyCustomClassName:y}=e,[b,A]=(0,o.useState)(!1),w=(0,x.A)(),S=(0,d.A)("(min-width:576px)"),k=(0,d.A)("(max-width:1199px)"),C=l?.isBestSeller,F=k&&S?3:1,R=l?.imageUrls.map(e=>e.split(" ")[0]);return(0,t.jsxs)("div",{className:y||u()(i().hotel_swiper,"slider-result-hotel",l?.imageUrls?.length<2?"one-image-gallery":""),children:[N,R?(0,t.jsxs)(n.RC,{slidesPerView:v??F,onSlideChange:()=>A(!0),spaceBetween:5,loop:!0,lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:1,keyboard:{enabled:!0},navigation:!0,modules:[a.s3,a.dK,a.Vx],className:"mySwiper",children:[_?(0,t.jsx)("div",{className:i().hotel_hotelflags,children:_}):C?(0,t.jsx)("div",{className:i().hotel_hotelflags,children:(0,t.jsx)("div",{className:i().hotel_bestseller,children:(0,t.jsx)(j.A,{fontSize:12,component:"span",variant:"overline",children:w.formatMessage({id:"common.BestSeller"})})})}):null,R.map((e,o)=>1===F&&!b&&o>0?(0,t.jsx)(n.qr,{children:(0,t.jsx)("div",{})},e):(0,t.jsx)(n.qr,{children:c?(0,t.jsx)(f,{imageData:l,width:s,height:r,value:e,countShowSlides:F,hotelSearchKey:m,index:o,isMobileAgent:p,isPackage:h}):(0,t.jsx)(g,{imageData:l,width:s,height:r,value:e,countShowSlides:F,hotelSearchKey:m,index:o,isMobileAgent:p,isPackage:h})},e))]}):(0,t.jsx)("div",{className:"loading-main",children:(0,t.jsx)("div",{className:"loader"})})]})})},24376:(e,l,s)=>{"use strict";s.d(l,{oY:()=>u,un:()=>_});var t=s(14232),o=s(73869),a=s(54597),n=s(77766),r=s(7397),i=s(99687),c=s(81218),m=s(52231),d=s(56390),h=s(6995);let p=async e=>{let{body:l}=e;return await (0,o.F)().post("hotels/rooms",l)},x=async e=>{let{body:l}=e;return await (0,o.F)().post("tour/rooms",l)},_=e=>{let{body:{hotelId:l,boards:s,searchKey:o}}=e,c=(0,r.j)(),m=(0,a.qu)({queryKey:["hotels-rooms-compare",{hotelId:l,boards:s,searchKey:o,pageSize:25},"hotels-room-key-for-reset"],queryFn:e=>{let{pageParam:t=1}=e;return p({body:{hotelId:l,boards:s,searchKey:o,pagination:{pageIndex:Number(t),pageSize:25}}})},initialPageParam:1,getNextPageParam:(e,l)=>{if(!e)return;let s=e.result.rooms.pagination.totalCount;if(s){let e=Math.ceil(s/25);if(l.length+1>e)return}return l.length+1},refetchOnWindowFocus:!1});return(0,t.useEffect)(()=>{let e=m.data;if(!e||"success"!==m.status)return;let s=(0,i.A)(e.pages);if(!s?.result){if(!l)return;c((0,n.TY)({[l]:void 0})),c((0,n.Kc)({[l]:!0}));return}let t=e.pages[0]?.result?.rooms.items[0];t&&c((0,n.sS)({[t.hotelId]:{price:t.price,commission:t.commission,title:t.title,boardTitle:t.boardTitle}}
1))},[m.dataUpdatedAt]),m},u=e=>{let{body:{hotelId:l,boards:s,searchKey:o,departureFlightId:p,arrivalFlightId:_}}=e,u=(0,r.j)(),j=(0,h.A)("(max-width:767.98px)"),{step:v}=(0,d.RF)(),{selectedRoom:g,isPreRoomRequestHit:f,updateSelectedRoom:N,updateIsPreRoomRequestHit:y}=(0,m.F)(),b=f?.[l],A=(0,a.qu)({queryKey:["tour-rooms-compare",{hotelId:l,boards:s,searchKey:o,pageSize:25,departureFlightId:p,arrivalFlightId:_},`room-key-${l}`],queryFn:e=>{let{pageParam:t=1}=e;return x({body:{departureFlightId:p,arrivalFlightId:_,hotelId:l,boards:s,searchKey:o,pagination:{pageIndex:Number(t),pageSize:25}}})},getNextPageParam:(e,l)=>{if(!e)return;let s=e.result?.rooms?.pagination?.totalCount;if(s){let e=Math.ceil(s/25);if(l.length+1>e)return}return l.length+1},initialPageParam:1,gcTime:0,refetchOnWindowFocus:!1,enabled:!j||v===d.CH.room});return(0,t.useEffect)(()=>{if(A.data&&"success"===A.status){let e=(0,i.A)(A.data.pages);if(!e?.result){u((0,n.TY)({[l]:void 0})),u((0,n.Kc)({[l]:!0}));return}if(A.data.pages[0]?.result){if(b){let e=A.data.pages[0]?.result?.rooms.items.find(e=>e.roomId===g?.[l]?.roomId);if(e)N(l,e);else{let e=A.data.pages[0]?.result?.rooms.items[0];e&&N(l,e)}}else{let e=A.data.pages[0]?.result?.rooms.items[0];if(!e)return;N(l,e),y(l,!0)}u((0,c.Ve)({hotelId:l}))}}},[A.dataUpdatedAt]),A}},33944:(e,l,s)=>{"use strict";s.d(l,{$1:()=>c,W0:()=>i});var t=s(37876),o=s(14232),a=s(70460);let n=e=>function(){for(var l=arguments.length,s=Array(l),t=0;t<l;t++)s[t]=arguments[t];return console.warn(`[FilterContext] "${e}" called but no implementation provided.`,...s)},r=(0,o.createContext)({hotelSearchAgain:()=>{},resetFilters:()=>{},setFilters:()=>{},deleteFiltersByGPKey:()=>{},searchParams:a._N,searchParamsActions:{toggleAscending:n("toggleAscending"),setAscending:n("setAscending"),setFilterGroups:n("setFilterGroups"),setSortType:n("setSortType"),setText:n("setText"),reset:n("reset"),setLastUpdatedAt:n("setLastUpdatedAt"),set:n("set"),setApiSearchKey:n("setApiSearchKey"),setRooms:n("setRooms"),setDestination:n("setDestination"),setCheckin:n("setCheckin"),setCheckout:n("setCheckout")},hotelDisplayStates:{uiIsFetching:!1,resultIsAscending:!1,noResultHotel:!1,searchKey:"",noFilterHotel:!1,isResultFinished:!1,flatHotels:[],isDomesticSearch:void 0},dataFetchStates:{fetchNextPageMethod:()=>{},isLoading:!1,isFetching:!1,isError:!1,isFetchingNextPage:!1,error:void 0,data:void 0,hasNextPage:void 0,fetchNextPage:void 0}}),i=e=>{let{children:l,searchParams:s,searchParamsActions:o,dataFetchStates:a,hotelDisplayStates:n,hotelSearchAgain:i,setFilters:c,resetFilters:m,deleteFiltersByGPKey:d}=e;return(0,t.jsx)(r.Provider,{value:{searchParams:s,searchParamsActions:o,hotelDisplayStates:n,dataFetchStates:a,hotelSearchAgain:i,setFilters:c,resetFilters:m,deleteFiltersByGPKey:d},children:l})},c=()=>(0,o.useContext)(r)},39364:(e,l,s)=>{"use strict";s.d(l,{A:()=>m});var t=s(37876),o=s(14232),a=s(54597),n=s(8073),r=s.n(n),i=s(94495),c=s(34352);let m=e=>{let{roomId:l,hotelSearchKey:s,hotelid:n}=e,[m,d]=(0,o.useState)(!0),[h,p]=(0,o.useState)([]),[x,_]=(0,o.useState)(!1),[u,j]=(0,o.useState)(!0),v=RegExp("^[a-zA-Z0-9</>]"),g={hotelId:n,offerId:l,searchKey:s};return(0,a.IT)(["cancellationRules"],()=>(0,c.T9)(g),{enabled:x,onSuccess:e=>{p(e),e&&_(!1),d(!1)},onError(e){_(!1),p([])}}),(0,o.useEffect)(()=>{u&&setTimeout(()=>{j(!1)},1e4)},[u]),(0,o.useEffect)(()=>{_(!0)},[n]),(0,t.jsx)(t.Fragment,{children:m?(0,t.jsx)(i.A,{}):(0,t.jsx)("div",{className:"p-3",children:h.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("b",{children:e.title}),(0,t.jsx)("div",{className:r().cancel_content,children:e.details.map(l=>l?.policy?.description?(0,t.jsxs)("div",{className:"d-flex gap-1",dir:v.test(l?.policy?.description)?"ltr":"rtl",children:[e.details.some(e=>(e.roomNumber?+e.roomNumber:1)>1)?(0,t.jsxs)("span",{children:[" ",l?.policy?.title," : "]}):null,(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:l?.policy?.description??""},className:"w-100"},l.toDate)]}):null)})]},e.title))})})}},71421:(e,l,s)=>{"use strict";s.d(l,{C:()=>n});var t=s(54597),o=s(73869);let a=async e=>(await (0,o.F)().post("order/confirm-product-price",e)).result,n=e=>(0,t.n_)(a,e)},84662:(e,l,s)=>{"use strict";s.d(l,{A:()=>E});var t=s(37876),o=s(14232),a=s(24376),n=s(52563),r=s(90078),i=s(38993),c=s(67358),m=s(54597),d=s(8073),h=s.n(d),p=s(29722),x=s(15039),_=s.n(x),u=s(6265),j=s.n(u),v=s(54581);let g=()=>(0,t.jsxs)("div",{className:"d-flex flex-column",children:[(0,t.jsx)(v.A,{animation:"wave",height:20,width:"40%"}),(0,t.jsx)(v.A,{animation:"wave",height:35,width:"100%"})]}),f=()=>(0,t.jsx)(t.Fragment,{children:[1,2,3,4].map((e,l)=>(0,t.jsxs)(o.Fragment,{children:[(0,t.jsxs)("div",{className:_()(j().room,j().skeleton,"d-none d-lg-flex"),children:[(0,t.jsxs)("div",{className:_()("d-flex flex-column pe-2",j().room_start_section),children:[(0,t.jsx)(v.A,{animation:"wave",height:15,width:"60%"}),(0,t.jsx)(v.A,{animation:"wave",height:15,width:"40%"})]}),(0,t.jsxs)("div",{className:j().room_end_section,children:[(0,t.jsx)(v.A,{animation:"wave",width:20}),(0,t.jsxs)("div",{className:"flex-1 d-flex justify-content-end align-items-center",children:[(0,t.jsx)("div",{className:"flex-1 d-flex justify-content-center px-1",children:(0,t.jsx)("div",{className:"d-flex flex-column",children:(0,t.jsx)(v.A,{animation:"wave",height:36,width:100})})}),(0,t.jsx)(v.A,{animation:"wave",height:50,width:80})]})]})]}),(0,t.jsxs)("div",{className:_()(j().room,j().skeleton,"d-lg-none flex-column"),children:[(0,t.jsx)(v.A,{animation:"wave",height:25,width:"100px"}),(0,t.jsx)(v.A,{animation:"wave",height:25,width:"100px"}),(0,t.jsx)(v.A,{animation:"wave",height:25,width:"100px"}),(0,t.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[(0,t.jsx)(v.A,{animation:"wave",height:25,width:"100px"}),(0,t.jsx)(v.A,{animation:"wave",height:45,width:"80px"})]})]})]},l))});var N=s(79140),y=s(77090),b=s(9846),A=s(76943),w=s(94870);let S=e=>{let{value:l,menuItems:s,onChange:o}=e;return(0,t.jsxs)(y.A,{fullWidth:!0,variant:"standard",children:[(0,t.jsx)(b.A,{shrink:!0,children:(0,i.h)("hotels.FilterByRoomType")}),(0,t.jsxs)(A.A,{value:l,label:(0,i.h)("hotels.FilterByRoomType"),onChange:o,children:[(0,t.jsx)(w.A,{value:"all-items",children:(0,t.jsx)(n.A,{variant:"overline",component:"span",children:(0,i.h)("common.All")})}),s.map(e=>(0,t.jsx)(w.A,{value:`${e.id}||${e.name}`,children:(0,t.jsx)(n.A,{variant:"overline",component:"span",children:e.name})},e.id))]})]})};var k=s(77742),C=s(11247),F=s(60744),R=s(45923),z=s(81698),P=s(39364),H=s(20683);let $=e=>{let{room:l,searchKey:s}=e,{searchKey:a}=(0,r.GZ)(),[c,m]=(0,o.useState)(!1),d=()=>{m(!0)};return(0,t.jsxs)(o.Fragment,{children:[(0,t.jsx)("i",{onClick:d,className:"icon-0108 cursor-pointer d-none d-lg-inline"}),(0,t.jsxs)("span",{onClick:d,className:"d-inline-flex d-lg-none align-items-center gap-1",children:[(0,t.jsx)("i",{className:"icon-0108 cursor-pointer"}),(0,t.jsx)(n.A,{variant:"overline",component:"span",fontSize:13,children:(0,i.h)("common.CancellationRules")})]}),(0,t.jsx)(z.A,{title:(0,t.jsxs)("h5",{className:"mb-0",children:[" ",(0,i.h)("common.CancellationRules")," "]}),onClose:()=>{m(!1)},width:966,height:600,openModal:c,children:(0,t.jsx)(P.A,{hotelSearchKey:s||a,hotelid:l.hotelId,roomId:l.roomId})})]})},T=e=>{let{room:l,renderPolicyNode:s,renderAction:a}=e,{isMobileResizeDetectorValue:r}=(0,H.v8)();return(0,t.jsxs)(o.Fragment,{children:[(0,t.jsxs)("div",{className:_()(j().room,"d-none d-lg-flex"),children:[(0,t.jsxs)("div",{className:_()("d-flex flex-column pe-2",j().room_start_section),children:[(0,t.jsx)(C.A,{classes:{tooltip:"tooltip-font"},placement:"top",title:l.supplierName,children:(0,t.jsx)("span",{className:"text-start",dir:(0,F.hv)(l.title),children:(0,t.jsx)(n.A,{variant:"overline",component:"span",children:l.title})})}),(0,t.jsx)(n.A,{style:{color:"#7cb342"},variant:"overline",component:"span",children:l.boardTitle}),l.description?(0,t.jsx)(n.A,{style:{color:"#f47c1a"},variant:"overline",component:"span",children:l.description}):null]}),(0,t.jsxs)("div",{className:j().room_end_section,children:[s(l),(0,t.jsxs)("div",{className:"flex-1 d-flex justify-content-end align-items-center",children:[(0,t.jsx)("div",{className:"flex-1 d-flex justify-content-center px-1",children:(0,t.jsxs)("div",{className:"d-flex flex-column",children:[l.commission.amount?(0,t.jsx)(n.A,{variant:"overline",component:"span",className:"text-decoration-line-through text-muted",children:l.price?.amount?.toLocaleStr
1ing()}):null,(0,t.jsxs)("div",{children:[(0,t.jsx)(n.A,{style:{color:"#4372ff"},variant:"overline",component:"span",fontSize:16,children:l.commission.amount?(l.price.amount-l.commission.amount).toLocaleString():l.price?.amount?.toLocaleString()}),(0,t.jsx)(R.A,{currency:l.price.currencyCode,color:"#8c8c8c"})]})]})}),a(l)]})]})]}),(0,t.jsxs)("div",{className:_()(j().room,"d-lg-none flex-column"),children:[(0,t.jsx)(C.A,{classes:{tooltip:"tooltip-font"},placement:"top",title:r?void 0:l.supplierName,children:(0,t.jsx)("span",{className:"text-start",dir:(0,F.hv)(l.title),children:(0,t.jsx)(n.A,{variant:"overline",component:"span",children:l.title})})}),(0,t.jsx)(n.A,{style:{color:"#7cb342"},variant:"overline",component:"span",children:l.boardTitle}),s(l),l.description?(0,t.jsx)(n.A,{style:{color:"#f47c1a"},variant:"overline",component:"span",children:l.description}):null,(0,t.jsxs)("div",{className:"flex-1 d-flex align-items-center",children:[(0,t.jsx)("div",{className:"flex-1 d-flex justify-content-start px-1",children:(0,t.jsxs)("div",{className:"d-flex flex-column",children:[l.commission.amount?(0,t.jsx)(n.A,{variant:"overline",component:"span",className:"text-decoration-line-through text-muted",children:l.price?.amount?.toLocaleString()}):null,(0,t.jsxs)("div",{children:[(0,t.jsx)(n.A,{style:{color:"#4372ff"},variant:"overline",component:"span",fontWeight:600,fontSize:17,children:l.commission.amount?(l.price.amount-l.commission.amount).toLocaleString():l.price?.amount?.toLocaleString()}),(0,t.jsx)(R.A,{currency:l.price.currencyCode,color:"#8c8c8c"})]})]})}),a(l)]})]})]})},D=e=>{let{data:l,roomsWrapperClassName:s,renderPolicyNode:a,isFetching:r,status:c,renderRoomAction:m,removeSpecificQuery:d,setBoardNameValue:x,boardNameValue:u,hasNextPage:v,fetchNextPage:y}=e,b=(0,k.A)(),A=(0,o.useMemo)(()=>!(l?.pages.flatMap(e=>e?.result?.rooms?.items||[])||[]).length,[l]),w=async()=>{v&&await y()};return(0,t.jsxs)("div",{className:"position-relative d-flex flex-column gap-3 gap-lg-0",children:[r&&"pending"!==c?(0,t.jsx)("div",{className:h().room_loading,children:(0,t.jsx)(p.Ay,{})}):null,(0,t.jsx)("div",{className:_()("container-fluid",j().room_select_container),children:(0,t.jsx)("div",{className:"row",children:(0,t.jsx)("div",{className:"col-10 col-lg-6 pt-3",children:"pending"===c?(0,t.jsx)(g,{}):(0,t.jsx)(S,{value:u?`${u.id}||${u.name}`:"all-items",menuItems:l?.pages[(l?.pages.length||0)-1]?.result.boardNames||[],onChange:(e,l)=>{if(d(),"all-items"===e.target.value)return void x(void 0);let s=e.target.value.split("||");x({id:s[0],name:s[1]})}})})})}),(0,t.jsx)("div",{className:_()(j().rooms_wrapper,s),children:(0,t.jsx)("div",{className:"container-fluid",children:(0,t.jsx)("div",{className:"row",children:(0,t.jsxs)("div",{className:"col-12",children:["pending"===c?(0,t.jsx)(f,{}):A?(0,t.jsx)("div",{className:"d-flex align-items-center justify-content-center",style:{minHeight:300},children:(0,t.jsx)(n.A,{variant:"overline",fontSize:16,component:"span",children:(0,i.h)("hotels.NoRoomFound")})}):l?.pages.map(e=>e?.result.rooms.items.map(e=>(0,t.jsx)(T,{renderPolicyNode:a,renderAction:m,room:e},e.roomId))),(()=>{if(v&&"pending"!==c&&!A)return(0,t.jsxs)("div",{className:"py-3 d-flex gap-1 cursor-pointer",onClick:w,children:[(0,t.jsx)(n.A,{variant:"overline",component:"span",children:b.formatMessage({id:"hotels.MoreRooms"})}),(0,t.jsx)(N.A,{fontSize:"small"})]})})()]})})})})]})};var K=s(51810);let E=e=>{let{hotel:l,handleRoomSelect:s,searchKey:d,isLoading:h}=e,p=(0,m.jE)(),{searchKey:x}=(0,r.GZ)(),[_,u]=(0,o.useState)(),j=(0,o.useCallback)(e=>(0,t.jsx)($,{searchKey:d,room:e}),[d]),{data:v,fetchNextPage:g,hasNextPage:f,status:N,isFetching:y}=(0,a.un)({body:{hotelId:l.id,boards:_?[{id:_.id}]:[],searchKey:d||x}});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(D,{status:N,renderPolicyNode:j,isFetching:y,data:v,boardNameValue:_,fetchNextPage:g,hasNextPage:f,removeSpecificQuery:()=>{p.getQueryCache().getAll().forEach(e=>{Array.isArray(e.queryKey)&&e.queryKey.some(e=>"hotels-room-key-for-reset"===e)&&e.queryKey?.[1]?.hotelId===l.id&&p.removeQueries({queryKey:e.queryKey})})},renderRoomAction:e=>(0,t.jsx)(c.A,{onClick:()=>s(e),className:"w-auto",textButtonReserve:(0,t.jsx)(n.A,{variant:"overline",component:"span",children:(0,i.h)("hotels.Reservations")})}),setBoardNameValue:u}),!!h&&(0,t.jsx)(K.A,{})]})}},85672:(e,l,s)=>{"use strict";s.d(l,{B:()=>E,A:()=>I});var t=s(37876),o=s(14232),a=s(14584),n=s.n(a),r=s(19078),i=s(15039),c=s.n(i),m=s(52563),d=s(59302),h=s(38993),p=s(45923),x=s(67358),_=s(18847),u=s.n(_),j=s(77766),v=s(20710),g=s(11247),f=s(60744),N=s(44304),y=s(8073),b=s.n(y),A=s(54581),w=s(84662),S=s(81698),k=s(7397),C=s(90078),F=s(99687),R=s(33944);let z=e=>{let{children:l}=e,{dataFetchStates:{data:s}}=(0,R.$1)(),a=(0,o.useMemo)(()=>
1{if(!s)return;let e=(0,F.A)(s.pages);if(e)return e.result},[s]);return(0,t.jsx)(C.CJ,{searchKey:a?.query.searchKey||"",children:l})},P=u()(()=>Promise.all([s.e(6666),s.e(682),s.e(6675),s.e(1805),s.e(554),s.e(6408)]).then(s.bind(s,34027)),{loadableGenerated:{webpack:()=>[34027]},loading:()=>(0,t.jsx)(A.A,{variant:"rectangular",width:"100%",height:200}),ssr:!1}),H=e=>{let{imageData:l}=e;return(0,t.jsx)(r.A,{fullyCustomClassName:c()("w-100","slider-result-hotel slider-result-hotel-compare",l?.imageUrls?.length<2?"one-image-gallery":""),imageData:l,width:400,height:180})},$=e=>{let{value:l}=e;return(0,t.jsx)(d.A,{className:"mb-lg-1",value:l})},T=e=>{let{hotel:l}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:c()(b().data_reviewsScore_score,"comparison_hotel_badge","comparison_blue_badge"),children:(0,t.jsx)(m.A,{variant:"body2",lineHeight:"normal",component:"span",children:l.reviewsScore.score})}),(0,t.jsxs)("div",{className:"d-flex flex-column",children:[(0,t.jsx)(m.A,{variant:"subtitle2",lineHeight:"normal",component:"span",children:l.reviewsScore.scoreTitle}),(0,t.jsxs)(m.A,{variant:"subtitle2",lineHeight:"normal",component:"span",children:[l.reviewsScore.reviewsCount," ",(0,h.h)("common.Comment")]})]})]})},D=e=>{let{hotel:l}=e,s=(0,v.G)(e=>e.hotelResultData.roomSelected[l.id]),o=s?.price??l.room.price,a=s?.commission?.amount??l.room.commission?.amount??0,n=o.amount,r=n-a;return(0,t.jsx)(t.Fragment,{children:a>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"d-flex align-items-center justify-content-end",children:(0,t.jsx)(m.A,{variant:"overline",fontSize:14,component:"b",className:"text-decoration-line-through",children:n.toLocaleString()})}),(0,t.jsxs)("div",{className:"d-flex align-items-center justify-content-end",children:[(0,t.jsx)(m.A,{variant:"overline",fontSize:18,fontWeight:800,component:"b",children:r.toLocaleString()}),(0,t.jsx)(p.A,{currency:o.currencyCode})]})]}):(0,t.jsxs)("div",{className:"text-end",children:[(0,t.jsx)(m.A,{variant:"overline",fontSize:18,fontWeight:800,component:"b",children:n.toLocaleString()}),(0,t.jsx)(p.A,{currency:o.currencyCode})]})})},K=e=>{let{hotel:l}=e,s=(0,v.G)(e=>e.hotelResultData.roomSelected[l.id]),[a,n]=(0,o.useState)(void 0);return(0,o.useEffect)(()=>{n({price:l.room.price,commission:l.room.commission,title:l.room.title,boardTitle:l.room.boardTitle})},[]),(0,o.useEffect)(()=>{s&&n({price:s.price,commission:s.commission,title:s.title,boardTitle:s.boardTitle})},[s]),(0,t.jsxs)("div",{className:"d-flex flex-column justify-content-between flex-1",children:[(0,t.jsx)(g.A,{classes:{tooltip:"tooltip-font"},title:a?.title,placement:"top",children:(0,t.jsx)(m.A,{className:"max-w-lg-fs-12",dir:(0,f.hv)(a?.title??""),component:"span",variant:"overline",children:a?.title})}),(0,t.jsx)(m.A,{className:"max-w-lg-fs-12",style:{color:"#609d21"},component:"span",variant:"overline",children:a?.boardTitle})]})},E=e=>{let{hotel:l,openModal:s,searchKey:o,title:a,onClose:n,handleRoomSelect:r}=e;return(0,t.jsx)(S.A,{width:800,openModal:s,onClose:n,title:a,children:(0,t.jsx)(z,{children:(0,t.jsx)(w.A,{searchKey:o,handleRoomSelect:r,hotel:{id:l.id}})})})},M=e=>{let{hotel:l,handleRoomSelect:s,handleOpenHotel:a}=e,r=(0,k.j)(),[i,d]=(0,o.useState)(!1);return(0,t.jsxs)("div",{className:c()(n().hotel_compare_block,"d-flex flex-column align-items-center"),children:[(0,t.jsx)(x.A,{onClick:()=>{d(!0)},textButtonReserve:(0,t.jsx)(m.A,{variant:"overline",className:"cursor-pointer text-nowrap",component:"span",children:(0,h.h)("hotels.SelectRoom")})}),(0,t.jsx)(E,{handleRoomSelect:s,hotel:l,openModal:i,onClose:()=>{r((0,j.TY)({[l.id]:void 0})),d(!1)},title:`انتخاب اتاق برای ${l.name}`})]})},I=e=>{let{hotels:l,handleRemove:s,handleOpenHotel:o,handleRoomSelect:a}=e,r=l[0],i=l[1],d=l[2],p=l[3],x=l[4];return(0,t.jsxs)("div",{className:c()("p-2 p-lg-4",n().hotel_compare_wrapper),children:[(0,t.jsx)("div",{className:"pb-2",id:"map-location",children:(0,t.jsx)(P,{hotels:l})}),(0,t.jsx)("div",{className:n().hotel_compare_main,children:(0,t.jsxs)("div",{className:n().hotel_compare_main_inner,children:[(0,t.jsxs)("div",{className:n().hotel_compare_block_wrapper,id:"navs-hotels",children:[r?(0,t.jsx)("div",{style:{background:"#7b2cbf"},className:n().hotel_compare_tab_color}):null,i?(0,t.jsx)("div",{style:{background:"#3a86ff"},className:n().hotel_compare_tab_color}):null,d?(0,t.jsx)("div",{style:{background:"#4c956c"},className:n().hotel_compare_tab_color}):null,p?(0,t.jsx)("div",{style:{background:"#ffc300"},className:n().hotel_compare_tab_color}):null,x?(0,t.jsx)("div",{style:{background:"#ef233c"},className:n().hotel_compare_tab_color}):null]}),(0,t.jsxs)("div",{className:n().hotel_compare_block_wrapper,id:"galleries",children:[r?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"p-0"),style:{height:"150px"},children:(0,t.jsx)(H,{imageData:r})}):null,i?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"p-0"),style:{height:"150px"},children:(0,t.jsx)(H,{imageData:i})}):null,d?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"p-0"),style:{height:"150px"},children:(0,t.jsx)(H,{imageData:d})}):null,p?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"p-0"),style:{height:"150px"},children:(0,t.jsx)(H,{imageData:p})}):null,x?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"p-0"),style:{height:"150px"},children:(0,t.jsx)(H,{imageData:x})}):null]}),(0,t.jsxs)("div",{className:n().hotel_compare_block_wrapper,id:"stars",children:[r?(0,t.jsxs)("div",{className:c()(n().hotel_compare_block,"d-flex flex-column"),children:[(0,t.jsx)("div",{className:n().hotel_compare_stars_wrapper,children:r.rating>0?(0,t.jsx)($,{value:r.rating}):(0,t.jsx)(t.Fragment,{})}),(0,t.jsx)(m.A,{variant:"overline",component:"span",children:r.name})]}):null,i?(0,t.jsxs)("div",{className:c()(n().hotel_compare_block,"d-flex flex-column"),children:[(0,t.jsx)("div",{className:n().hotel_compare_stars_wrapper,children:i.rating>0?(0,t.jsx)($,{value:i.rating}):(0,t.jsx)(t.Fragment,{})}),(0,t.jsx)(m.A,{variant:"overline",component:"span",children:i.name})]}):null,d?(0,t.jsxs)("div",{className:c()(n().hotel_compare_block,"d-flex flex-column"),children:[(0,t.jsx)("div",{className:n().hotel_compare_stars_wrapper,children:d.rating>0?(0,t.jsx)($,{value:d.rating}):(0,t.jsx)(t.Fragment,{})}),(0,t.jsx)(m.A,{variant:"overline",component:"span",children:d.name})]}):null,p?(0,t.jsxs)("div",{className:c()(n().hotel_compare_block,"d-flex flex-column"),children:[(0,t.jsx)("div",{className:n().hotel_compare_stars_wrapper,children:p.rating>0?(0,t.jsx)($,{value:p.rating}):(0,t.jsx)(t.Fragment,{})}),(0,t.jsx)(m.A,{variant:"overline",component:"span",children:p.name})]}):null,x?(0,t.jsxs)("div",{className:c()(n().hotel_compare_block,"d-flex flex-column"),children:[(0,t.jsx)("div",{className:n().hotel_compare_stars_wrapper,children:x.rating>0?(0,t.jsx)($,{value:x.rating}):(0,t.jsx)(t.Fragment,{})}),(0,t.jsx)(m.A,{variant:"overline",component:"span",children:x.name})]}):null]}),(0,t.jsxs)("div",{className:n().hotel_compare_block_wrapper,id:"location",children:[r?(0,t.jsxs)("div",{className:c()(n().hotel_compare_block,"d-flex"),children:[(0,t.jsx)(N.A,{style:{color:"#353535"},fontSize:"small"}),(0,t.jsx)(m.A,{className:"max-w-lg-fs-12",variant:"overline",fontSize:13,component:"span",children:r.location?`${r.location}، ${r.city}`:`${r.city}`})]}):null,i?(0,t.jsxs)("div",{className:c()(n().hotel_compare_block,"d-flex"),children:[(0,t.jsx)(N.A,{style:{color:"#353535"},fontSize:"small"}),(0,t.jsx)(m.A,{className:"max-w-lg-fs-12",variant:"overline",fontSize:13,component:"span",children:i.location?`${i.location}، ${i.city}`:`${i.city}`})]}):null,d?(0,t.jsxs)("div",{className:c()(n().hotel_compare_block,"d-flex"),children:[(0,t.jsx)(N.A,{style:{color:"#353535"},fontSize:"small"}),(0,t.jsx)(m.A,{className:"max-w-lg-fs-12",variant:"overline",fontSize:13,component:"span",children:d.location?`${d.location}، ${d.city}`:`${d.city}`})]}):null,p?(0,t.jsxs)("div",{className:c()(n().hotel_compare_block,"d-flex"),children:[(0,t.jsx)(N.A,{style:{color:"#353535"},fontSize:"small"}),(0,t.jsx)(m.A,{className:"max-w-lg-fs-12",variant:"overline",fontSize:13,component:"span",children:p.location?`${p.location}، ${p.city}`:`${p.city}`})]}):null,x?(0,t.jsxs)("div",{className:c()(n().hotel_compare_block,"d-flex"),children:[(0,t.jsx)(N.A,{style:{color:"#353535"},fontSize:"small"}),(0,t.jsx)(m.A,{className:"max-w-lg-fs-12",variant:"overline",fontSize:13,component:"span",children:x.location?`${x.location}، ${x.city}`:`${x.city}`})]}):null]}),(0,t.jsxs)("div",{className:n().hotel_compare_block_wrapper,id:"rating",children:[r?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"d-flex gap-2 align-items-center pb-2"),children:(0,t.jsx)(T,{hotel:r})}):null,i?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"d-flex gap-2 align-items-center pb-2"),children:(0,t.jsx)(T,{hotel:i})}):null,d?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"d-flex gap-2 align-items-center pb-2"),children:(0,t.jsx)(T,{hotel:d})}):null,p?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"d-flex gap-2 align-items-center pb-2"),children:(0,t.jsx)(T,{hotel:p})}):null,x?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"d-flex gap-2 align-items-center pb-2"),children:(0,t.jsx)(T,{hotel:x})}):null]}),(0,t.jsxs)("div",{className:n().hotel_compare_block_wrapper,id:"room-selected",children:[r?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"d-flex"),children:(0,t.jsx)(K,{hotel:r})}):null,i?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"d-flex"),children:(0,t.jsx)(K,{hotel:i})}):null,d?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"d-flex"),children:(0,t.jsx)(K,{hotel:d})}):null,p?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"d-flex"),children:(0,t.jsx)(K,{hotel:p})}):null,x?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"d-flex"),children:(0,t.jsx)(K,{hotel:x})}):null]}),(0,t.jsxs)("div",{className:n().hotel_compare_block_wrapper,id:"pricing",children:[r?(0,t.jsxs)("div",{className:c()(n().hotel_compare_block),children:[(0,t.jsx)("div",{className:"d-flex",children:(0,t.jsx)(m.A,{fontSize:13,component:"span",variant:"overline",children:(0,h.h)("common.Price
1sStartingFrom")})}),(0,t.jsx)(D,{hotel:r})]}):null,i?(0,t.jsxs)("div",{className:c()(n().hotel_compare_block),children:[(0,t.jsx)("div",{className:"d-flex",children:(0,t.jsx)(m.A,{fontSize:13,component:"span",variant:"overline",children:(0,h.h)("common.PricesStartingFrom")})}),(0,t.jsx)(D,{hotel:i})]}):null,d?(0,t.jsxs)("div",{className:c()(n().hotel_compare_block),children:[(0,t.jsx)("div",{className:"d-flex",children:(0,t.jsx)(m.A,{fontSize:13,component:"span",variant:"overline",children:(0,h.h)("common.PricesStartingFrom")})}),(0,t.jsx)(D,{hotel:d})]}):null,p?(0,t.jsxs)("div",{className:c()(n().hotel_compare_block),children:[(0,t.jsx)("div",{className:"d-flex",children:(0,t.jsx)(m.A,{fontSize:13,component:"span",variant:"overline",children:(0,h.h)("common.PricesStartingFrom")})}),(0,t.jsx)(D,{hotel:p})]}):null,x?(0,t.jsxs)("div",{className:c()(n().hotel_compare_block),children:[(0,t.jsx)("div",{className:"d-flex",children:(0,t.jsx)(m.A,{fontSize:13,component:"span",variant:"overline",children:(0,h.h)("common.PricesStartingFrom")})}),(0,t.jsx)(D,{hotel:x})]}):null]}),(0,t.jsxs)("div",{className:n().hotel_compare_block_wrapper,id:"actions-view",children:[r?(0,t.jsx)(M,{handleRoomSelect:a,handleOpenHotel:()=>o(r),hotel:r}):null,i?(0,t.jsx)(M,{handleRoomSelect:a,handleOpenHotel:()=>o(i),hotel:i}):null,d?(0,t.jsx)(M,{handleRoomSelect:a,handleOpenHotel:()=>o(d),hotel:d}):null,p?(0,t.jsx)(M,{handleRoomSelect:a,handleOpenHotel:()=>o(p),hotel:p}):null,x?(0,t.jsx)(M,{handleRoomSelect:a,handleOpenHotel:()=>o(x),hotel:x}):null]}),(0,t.jsxs)("div",{className:n().hotel_compare_block_wrapper,id:"actions-remove",children:[r?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"d-flex flex-column align-items-center"),children:(0,t.jsx)(m.A,{onClick:()=>s(r),variant:"overline",className:"link-primary cursor-pointer",component:"span",children:(0,h.h)("common.Delete")})}):null,i?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"d-flex flex-column align-items-center"),children:(0,t.jsx)(m.A,{onClick:()=>s(i),variant:"overline",className:"link-primary cursor-pointer",component:"span",children:(0,h.h)("common.Delete")})}):null,d?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"d-flex flex-column align-items-center"),children:(0,t.jsx)(m.A,{onClick:()=>s(d),variant:"overline",className:"link-primary cursor-pointer",component:"span",children:(0,h.h)("common.Delete")})}):null,p?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"d-flex flex-column align-items-center"),children:(0,t.jsx)(m.A,{onClick:()=>s(p),variant:"overline",className:"link-primary cursor-pointer",component:"span",children:(0,h.h)("common.Delete")})}):null,x?(0,t.jsx)("div",{className:c()(n().hotel_compare_block,"d-flex flex-column align-items-center"),children:(0,t.jsx)(m.A,{onClick:()=>s(x),variant:"overline",className:"link-primary cursor-pointer",component:"span",children:(0,h.h)("common.Delete")})}):null]})]})})]})}},90078:(e,l,s)=>{"use strict";s.d(l,{CJ:()=>n,GZ:()=>r});var t=s(37876),o=s(14232);let a=(0,o.createContext)({searchKey:""}),n=e=>{let{children:l,searchKey:s}=e;return(0,t.jsx)(a.Provider,{value:{searchKey:s},children:l})},r=()=>(0,o.useContext)(a)},99946:(e,l,s)=>{"use strict";s.d(l,{Fb:()=>a,aw:()=>o,uk:()=>n});var t=s(38993);let o=e=>(e/10).toLocaleString(),a=e=>{switch(e){case"USD":return(0,t.h)("currency.USD");case"EUR":return(0,t.h)("currency.EUR");case"GBP":return(0,t.h)("currency.GBP");case"AED":return(0,t.h)("currency.AED");case"IRR":return(0,t.h)("currency.IRR");case"TRY":return(0,t.h)("currency.TRY");case"AZN":return(0,t.h)("currency.AZN");case"AEDA":return(0,t.h)("currency.AEDA");case"AUD":return(0,t.h)("currency.AUD");case"MYR":return(0,t.h)("currency.MYR");case"CNY":return(0,t.h)("currency.CNY");case"THB":return(0,t.h)("currency.THB");case"Toman":return(0,t.h)("currency.Toman");case"EURA":return(0,t.h)("currency.EURA");default:return""}},n=e=>{if(e>0xe8d4a50fff)return"";if(0===e)return"صفر";let l=["","یک","دو","سه","چهار","پنج","شش","هفت","هشت","نه","ده","یازده","دوازده","سیزده","چهارده","پانزده","شانزده","هفده","هجده","نوزده"],s=["","","بیست","سی","چهل","پنجاه","شصت","هفتاد","هشتاد","نÙ
1ˆØ¯"],t=["","صد","دویست","سیصد","چهارصد","پانصد","ششصد","هفتصد","هشتصد","نهصد"],o=["","هزار","میلیون","میلیارد"],a=[],n=0;for(;e>0;){let r=e%1e3;if(r){let e=function(e){let o=[];return e>=100&&(o.push(t[Math.floor(e/100)]),e%=100),e>=20?(o.push(s[Math.floor(e/10)]),e%10&&o.push(l[e%10])):e>0&&o.push(l[e]),o.join(" و ")}(r),i=o[n];a.unshift(e+(i?" "+i:""))}e=Math.floor(e/1e3),n++}return a.join(" و ").trim()}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.