PageSourceSearch

https://www.travala.com/_next/static/chunks/35467-6aa936734348ebe0.js

js travala.com collected 2026-10-02 06:46:19 UTC 12,560 bytes, 1 lines download raw bytes

1try{let e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7d75ed1c-1c58-4da6-b09f-35c8f2f072cc",e._sentryDebugIdIdentifier="sentry-dbid-7d75ed1c-1c58-4da6-b09f-35c8f2f072cc")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[35467],{6585:e=>{e.exports={discountWrapper:"TvlPriceDiscountPC_discountWrapper__FrJLE",discountPrice:"TvlPriceDiscountPC_discountPrice__KfkVJ",tooltip:"TvlPriceDiscountPC_tooltip__boQXW"}},9374:e=>{e.exports={title:"StrikeThroughPrice_title__CSNAW",tooltip:"StrikeThroughPrice_tooltip__ga_Wg"}},32538:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var s=r(37876),o=r(14232),n=r(74944),i=r.n(n),a=r(2171),c=r(39978),l=r(52457),p=r(59955),_=r(42031),d=r(15039),u=r.n(d),h=r(67140),f=r(89099);let m=(0,a.Ng)(e=>({defaultCurrency:e.currency,dataCurrency:e.dataCurrency}),null)(e=>{let t=(0,f.useRouter)(),{t:r}=(0,l.Bd)("common"),[n,a]=(0,o.useState)(0),[d,m]=(0,o.useState)({fontSize:e.size||14+n,color:e.color,fontWeight:e.weight}),[y]=(0,o.useState)({width:e.size||14}),[g,v]=(0,o.useState)(e.currency||e.defaultCurrency),[x,j]=(0,o.useState)(0),[I,P]=(0,o.useState)(""),[C,N]=(0,o.useState)(!1);(0,o.useEffect)(()=>{"Android"===(0,c.$3)()&&setTimeout(()=>a(.1))},[]),(0,o.useEffect)(()=>{let t=e.defaultCurrency?.key||e.defaultCurrency?.name;e.price&&(!t||e.price[t])?N(!1):N(!0)},[e.price,e.defaultCurrency]),(0,o.useEffect)(()=>{m({fontSize:e.size||14+n,color:e.color,fontWeight:e.weight})},[n]),(0,o.useEffect)(()=>{v(e.currency||e.defaultCurrency)},[e.currency,e.defaultCurrency]),(0,o.useEffect)(()=>{try{j(e.price[g.key||g.name]||0),P(g.symbol||g.icon)}catch{e.price&&j(e.price.US$?e.price.US$:0),P("US$")}},[g]),(0,o.useEffect)(()=>{try{j(e.price[g.key||g.name]||0),P(g.symbol||g.icon)}catch{e.price&&j(e.price.US$?e.price.US$:0),P("US$")}e.lockCrypto&&e.icon.length>10&&(e.price&&j(e.price.USD?(void 0).props.price.USD:0),P("US$"))},[e.price]);let{displayPrice:w,isApprox:S}=(0,o.useMemo)(()=>(0,_.fI)(x,p.i18n.language,r,(0,c.hp)(g,t),e.isShorten,(0,c.lO)(g,e.dataCurrency)),[x,p.i18n.language,r,e.isShorten]);return(0,s.jsx)("span",{style:d,className:u()(i().container,e.containerClass,{[i().loadingPrice]:e.isLoading}),"data-testid":`${e["data-testid"]||"tvl-price"}-container`,children:C?(0,s.jsx)(h.Ay,{speed:1,backgroundColor:"#d6d6d6",foregroundColor:"#f8f8f8",className:i().loading,children:(0,s.jsx)("rect",{x:"0",y:"0",rx:"3",ry:"3",width:"100%",height:"40"})}):(0,s.jsxs)(s.Fragment,{children:[S&&(0,s.jsx)("span",{style:{...d,marginRight:4},className:i().price,children:"≈"}),I&&I.indexOf("http")>-1?(0,s.jsx)("img",{style:y,src:I,alt:I}):(0,s.jsx)("span",{style:d,children:I}),(0,s.jsx)("span",{style:d,className:i().price,"data-testid":e["data-testid"],children:w})]})})})},35467:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var s=r(37876),o=r(14232),n=r(33210),i=r(49385),a=r(66459),c=r(39978),l=r(49665),p=r(49001),_=r.n(p),d=r(16049),u=r(52095),h=r(63849),f=r(30381),m=r(52457),y=r(42548),g=r(38581),v=r(32538),x=r(56557),j=r.n(x),I=r(25881),P=r(67140),C=r(27454),N=r.n(C);let w=()=>{let e=(0,o.useContext)(u.d1),t=(0,o.useContext)(u.NH),{hotelInfo:r,queryParams:n,lowestPriceHotel:i,dataPackages:a,loadingPackage:l}=e,{currentUser:p}=t,[x,C]=(0,o.useState)(!0),w=e.userSmartInfo,S=i?.prices_strike_through_units,b=j()(n.check_out).diff(j()(n.check_in),"day"),{t:k}=(0,m.Bd)(["common","hotel","home"]),T={adults:0,children:0};(0,c.nD)(n).map(e=>{T.adults+=e.adults,T.children+=e.children});let D=(0,c.nD)(n).length,A=(e={})=>{try{return(0,c.yB)(N()(e.street_address))+(e.city_name?", "+e.city_name:"")+(e.country_name?", "+e.country_name:"")}catch(t){return e.street_address?(0,c.yB)(N()(e.street_address)):""}};return r?(0,s.jsx)(s.Fragment,{children:x&&(0,s.jsxs)("div",{className:_().propertyInfo,children:[(0,s.jsx)(I.A,{onClick:()=>C(!1),src:"/images-pc/close.svg",alt:"close",className:_().closeBtn}),r?.photos?.[0]&&(0,s.jsxs)("div",{className:_().propertyInfo__header,children:[(0,s.jsx)("div",{className:_().propertyInfo__header__img,style:{backgroundImage:`url("${r.photos?.[0]}")`}}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{children:r.name}),(0,s.jsx)("div",{className:_().propertyInfo__header__rating,children:(0,s.jsx)(d.default,{star:r.star_rating})}),r?.trip_advisor?.rating&&(0,s.jsxs)("div",{className:_().propertyInfo__header__overview,children:[(0,s.jsxs)("div",{children:[(0,h.W8)(r?.trip_advisor?.rating),"\xa0",k(`common:trustyouRatingLevels.${r?.trip_advisor?.type}`)]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(I.A,{src:"https://static.travala.com/frontend/images-pc/chat-icon.svg"}),r?.trip_advisor?.reviews_count||0," ",k(r?.trip_advisor?.reviews_count>1?"hotel:reviews":"hotel:review")]})]})]})]}),l?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:_().propertyInfo__hr}),(0,s.jsxs)(P.Ay,{speed:1,width:371,height:200,backgroundColor:"#d6d6d6",foregroundColor:"#f8f8f8",children:[(0,s.jsx)("rect",{x:"0",y:"0",rx:"0",ry:"0",width:"350",height:"21"}),(0,s.jsx)("rect",{x:"0",y:"31",rx:"0",ry:"0",width:"268",height:"17"}),(0,s.jsx)("rect",{x:"0",y:"58",rx:"0",ry:"0",width:"107",height:"32"}),(0,s.jsx)("rect",{x:"0",y:"100",rx:"0",ry:"0",width:"150",height:"21"})]})]}):!!a?.length&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:_().propertyInfo__hr}),(0,s.jsxs)("div",{className:_().propertyInfo__content,children:[(0,s.jsxs)("div",{className:_().propertyInfo__content__mb10,children:[`${k("Check in")} `,(0,s.jsx)("b",{children:(0,c.i$)(n?.check_in,(0,f.rI)())}),(0,s.jsx)(I.A,{className:_().propertyInfo__arrow,src:"https://static.travala.com/frontend/images-pc/arrow-right-icon.svg"}),`${k("Check out")} `,(0,s.jsx)("b",{children:(0,c.i$)(n?.check_out,(0,f.rI)())})]}),(0,s.jsxs)("div",{className:`${_().propertyInfo__roomInfo} ${_().propertyInfo__content__mb10}`,children:[(0,s.jsx)(I.A,{src:"https://static.travala.com/frontend/images-pc/user-icon.svg"})," ",`${T.adults} ${T.adults>1?k("home:flightSearch.adults").toLowerCase():k("home:flightSearch.adult").toLowerCase()}`,", ",`${T.children} ${k(`home:flightSearch.${T.children>1?"children":"child"}`).toLowerCase()}`]}),(w?.is_active&&i?.supplier_type==="Net"||i?.event_discount_info)&&i?.prices_all_units?.USD!==i?.prices_discount_all_units?.USD?(0,s.jsx)(s.Fragment,{children:S?(0,s.jsx)(y.default,{data:S,position:"left",size:18,classname:_().tooltipNew}):(0,s.jsx)(g.default,{price:i.prices_all_units,currentUser:p,smartDiscount:w&&w.is_active&&"Net"===i.supplier_type,userSmartInfo:w,eventDiscount:i.event_discount_info||null,size:50})}):(0,s.jsx)(s.Fragment,{children:S&&(0,s.jsx)(y.default,{position:"left",data:S,size:18,classname:_().tooltipNew})}),!!i&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("p",{className:_().mainPriceWrap,children:(0,s.jsx)(v.A,{price:i.prices_discount_all_units,color:"#329223",size:28,weight:700,containerClass:_().mainPrice,isLoading:!1})})}),(0,s.jsxs)("div",{children:[k(`hotel:priceToNight${b>1?"Plural":"Line"}`,{count:b}).toLowerCase(),","," ",k(D>1?"search:numberRooms":"search:numberRoom",{count:D})]})]})]}),(0,s.jsx)("div",{className:_().propertyInfo__hr}),A(r)&&(0,s.jsxs)("div",{className:_().propertyInfo__address,children:[A(r),"."]}),r?.attractions_map?.length>0&&(0,s.jsxs)("div",{className:_().propertyInfo__attractions,children:[(0,s.jsx)("div",{className:_().propertyInfo__attractions__header,children:k("topAttractions")}),r?.attractions_map?.map((e,t)=>(0,s.jsxs)("div",{className:_().propertyInfo__attractions__item,children:[(0,s.jsx)("div",{children:e.name}),(0,s.jsx)("div",{children:e.distance})]},t))]})]})}):null};var S=r(89099);let b=({show:e=!1,onClose:t=()=>{},dataMarkers:r=[],defaultCenter:p={}})=>{let d=(0,S.useRouter)().pathname.indexOf("/hotel")>-1,[u,h]=(0,o.useState)(d);return(0,s.jsx)(l.A,{nested:!0,className:"tvl-map-popup-pc",modal:!0,onClose:()=>{t(),h(!0)},open:e,children:e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{className:_().btnClose,onClick:t,children:(0,s.jsx)(n.g,{icon:i.GRI})}),r?.length>0&&p&&(0,s.jsx)(a.A,{markers:r,defaultCenter:p,mapOptions:{...c.u0,gestureHandling:"cooperative",mapTypeControl:!0,zoomControl:!0},showInfo:u,setShowInfo:h,onMarkerClick:()=>{h(!0)}}),d&&(0,s.jsx)(w,{})]})})}},38581:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var s=r(37876),o=r(14232),n=r(95062),i=r.n(n),a=r(52457),c=r(32538),l=r(58745),p=r(6585),_=r.n(p),d=r(15039),u=r.n(d),h=r(22485);class f extends o.Component{constructor(e){super(e),this.handleContentDiscount=()=>{let{smartDiscount:e,eventDiscount:t,userSmartInfo:r,currentUser:s,t:o}=this.props,n=s&&"BUSINESS_ACCOUNT"===s.roles;return e&&!t?o("priceBeforeDiscount",{discountPercent:r.discount}):!e&&t?o("priceBeforeDiscountEventNotSmart",{typeEvent:t.name}):o(n?"priceBeforeDiscountEventIsBusiness":"booking:priceBeforeDiscountEvent",{discountPercent:r.level>5?5:r.discount,typeEvent:t.name})}}render(){let{size:e,price:t,isTextOnly:r,hideInfoIcon:o,customImgComponent:n,position:i,userSmartInfo:a,className:p}=this.props;if(a.level===h.BN.BASIC)return null;let d=(0,s.jsxs)("p",{className:u()(p,_().discountPrice),children:[(0,s.jsx)(c.A,{price:t,color:"#888",weight:400,size:e}),!o&&(n||(0,s.jsx)("img",{alt:"Open details",src:"https://static.travala.com/frontend/images-pc/icon/features/top-right-arrow.png"}))]});return(0,s.jsx)("div",{className:u()(p,_().discountWrapper),children:r?d:(0,s.jsx)(l.A,{trigger:d,position:i,children:(0,s.jsx)("span",{className:_().tooltip,children:this.handleContentDiscount()})})})}}f.propTypes={size:i().number,price:i().any.isRequired,smartDiscount:i().bool,eventDiscount:i().any,userSmartInfo:i().any},f.defaultProps={size:14,smartDiscount:!1,eventDiscount:{},userSmartInfo:{}};let m=(0,a.CI)(["common"])(f)},42548:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var s=r(37876),o=r(9374),n=r.n(o),i=r(58745),a=r(55667),c=r(25881),l=r(32538),p=r(52457);let _=({data:e={},isMobile:t=!1,position:r="right",size:o=14,classname:_="",...d})=>{let{t:u}=(0,p.Bd)(["common"]);return e&&0!==Object.keys(e).length?(0,s.jsx)("div",{className:n().c
1ontainer,...d,children:t?(0,s.jsx)(a.A,{trigger:(0,s.jsxs)("span",{className:n().title,children:[(0,s.jsx)(l.A,{price:e,size:12,"data-testid":"strike-through-price"}),(0,s.jsx)(c.A,{src:"/images/icons/notice.svg"})]}),infoPopup:(0,s.jsx)("div",{className:n().tooltip,children:u("priceStandard")})}):(0,s.jsx)(i.A,{position:`top ${r}`,className:_,trigger:(0,s.jsxs)("span",{className:n().title,children:[(0,s.jsx)(l.A,{weight:500,price:e,size:o,"data-testid":"strike-through-price"}),(0,s.jsx)(c.A,{src:"/images/icons/notice.svg"})]}),children:(0,s.jsx)("div",{className:n().tooltip,children:u("priceStandard")})})}):null}},49001:e=>{e.exports={btnClose:"TvlMapPopupPC_btnClose__9IaPd",propertyInfo:"TvlMapPopupPC_propertyInfo__klW4R",propertyInfo__header:"TvlMapPopupPC_propertyInfo__header__FhuBK",propertyInfo__header__img:"TvlMapPopupPC_propertyInfo__header__img__UnndO",propertyInfo__header__rating:"TvlMapPopupPC_propertyInfo__header__rating__XDcPZ",propertyInfo__header__overview:"TvlMapPopupPC_propertyInfo__header__overview__G_8f5",propertyInfo__hr:"TvlMapPopupPC_propertyInfo__hr__y9PRN",propertyInfo__roomInfo:"TvlMapPopupPC_propertyInfo__roomInfo__EIinp",propertyInfo__address:"TvlMapPopupPC_propertyInfo__address__ox2gO",propertyInfo__content__mb10:"TvlMapPopupPC_propertyInfo__content__mb10__pdeIg",propertyInfo__content__mt10:"TvlMapPopupPC_propertyInfo__content__mt10__0EHku",propertyInfo__arrow:"TvlMapPopupPC_propertyInfo__arrow__x2OJv",propertyInfo__attractions:"TvlMapPopupPC_propertyInfo__attractions__nG4U4",propertyInfo__attractions__header:"TvlMapPopupPC_propertyInfo__attractions__header__fQDf2",propertyInfo__attractions__item:"TvlMapPopupPC_propertyInfo__attractions__item__An__D",closeBtn:"TvlMapPopupPC_closeBtn__Hzd2m",mainPriceWrap:"TvlMapPopupPC_mainPriceWrap__UiF2q",tooltipNew:"TvlMapPopupPC_tooltipNew__xoYgl"}},66459:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(37876);r(14232);var o=r(18847);let n=r.n(o)()(()=>Promise.all([r.e(8394),r.e(46693),r.e(57447),r.e(76742),r.e(53138)]).then(r.bind(r,53138)),{loadableGenerated:{webpack:()=>[53138]},ssr:!1,loading:()=>(0,s.jsx)("div",{style:{width:"100%",height:"100%",background:"#f0f0f0"}})}),i=e=>(0,s.jsx)(n,{...e})},74944:e=>{e.exports={container:"TvlPrice_container__QcP0X",loading:"TvlPrice_loading__DtJBo",loadingPrice:"TvlPrice_loadingPrice__HUtuo",tvlGradient:"TvlPrice_tvlGradient__5iqct"}}}]);

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.