PageSourceSearch

https://www.elite.se/dist/client/assets/NextStayCard-BPUqrPfc.js

js elite.se collected 2026-10-02 03:46:04 UTC 4,044 bytes, 1 lines download raw bytes

1import{In as e}from"./entry-client-DrEVLKbw.js";import{t}from"./useAppSelector-tBVwsT2U.js";import{n,t as r}from"./Users.es-C5j5XTc-.js";import{n as i,t as a}from"./CaretRight.es-DPswGmbR.js";var o=e(),s=({image:e,className:t})=>(0,o.jsxs)(`picture`,{className:[`responsive-image`,t].filter(Boolean).join(` `),children:[e.sources?.map((e,t)=>(0,o.jsx)(`source`,{media:e.media??void 0,srcSet:e.srcSet??void 0},e.media??e.srcSet??t)),e.srcSet&&(0,o.jsx)(`source`,{srcSet:e.srcSet,sizes:e.sizes??void 0}),(0,o.jsx)(`img`,{src:e.defaultSrc??void 0,alt:e.alt??``,width:e.defaultWidth??void 0,height:e.defaultHeight??void 0,loading:e.loading,className:[`responsive-image__img`,e.cssClass].filter(Boolean).join(` `)})]}),c=({icon:e,children:t})=>(0,o.jsxs)(`div`,{className:`info-row`,children:[e&&(0,o.jsx)(`span`,{className:`info-row__icon`,"aria-hidden":`true`,children:e}),(0,o.jsx)(`div`,{className:`info-row__content`,children:t})]}),l=e=>{let[t,n,r]=e.split(`-`).map(Number);return new Date(t,n-1,r)},u=e=>e.toLocaleDateString(void 0,{weekday:`long`}),d=e=>`${e.toLocaleDateString(void 0,{month:`short`}).replace(`.`,``)} ${e.toLocaleDateString(void 0,{day:`numeric`})}`,f=({className:e,hotelName:f,roomType:p,roomImage:m,viewBookingUrl:h,bookingDetailsUrl:g,checkIn:_,checkOut:v,adults:y,children:b,nextStayLabel:x,bookingDetailsLabel:S,allBookingsUrl:C,allBookingsLabel:w})=>{let T=t(e=>e.shared.sharedI18n.sharedResource),E=_?l(_):null,D=v?l(v):null,O=[y>0?`${y} ${y===1?T.adult:T.adults}`:null,b>0?`${b} ${b===1?T.child:T.children}`:null].filter(e=>e!==null);return(0,o.jsxs)(`div`,{className:`next-stay-card${e?` ${e}`:``}`,children:[x&&(0,o.jsx)(`span`,{className:`badge badge--member next-stay-card__badge`,children:x}),(f||m)&&(h?(0,o.jsxs)(`a`,{className:`next-stay-card__hotel-row`,href:h,"aria-label":`${f??``}${p?`, ${p}`:``}`,children:[m&&(0,o.jsx)(s,{image:m,className:`next-stay-card__room-image`}),(0,o.jsxs)(`div`,{className:`next-stay-card__hotel-text`,children:[f&&(0,o.jsx)(`span`,{className:`next-stay-card__hotel-name`,children:f}),p&&(0,o.jsx)(`span`,{className:`next-stay-card__room-type`,children:p})]}),(0,o.jsx)(a,{className:`next-stay-card__hotel-chevron`,size:16,weight:`light`,"aria-hidden":`true`})]}):(0,o.jsxs)(`div`,{className:`next-stay-card__hotel-row`,children:[m&&(0,o.jsx)(s,{image:m,className:`next-stay-card__room-image`}),(0,o.jsxs)(`div`,{className:`next-stay-card__hotel-text`,children:[f&&(0,o.jsx)(`span`,{className:`next-stay-card__hotel-name`,children:f}),p&&(0,o.jsx)(`span`,{className:`next-stay-card__room-type`,children:p})]})]})),(E||D)&&(0,o.jsx)(c,{icon:(0,o.jsx)(i,{size:24,weight:`light`}),children:(0,o.jsxs)(`div`,{className:`next-stay-card__dates`,children:[E&&(0,o.jsxs)(`div`,{className:`next-stay-card__date-col`,children:[(0,o.jsx)(`span`,{className:`next-stay-card__date-weekday`,children:u(E)}),(0,o.jsx)(`span`,{className:`next-stay-card__date-value`,children:d(E)})]}),E&&D&&(0,o.jsx)(n,{className:`next-stay-card__dates-arrow`,size:16,weight:`light`,"aria-hidden":`true`}),D&&(0,o.jsxs)(`div`,{className:`next-stay-card__date-col`,children:[(0,o.jsx)(`span`,{className:`next-stay-card__date-weekday`,children:u(D)}),(0,o.jsx)(`span`,{className:`next-stay-card__date-value`,children:d(D)})]})]})}),O.length>0&&(0,o.jsx)(c,{icon:(0,o.jsx)(r,{size:24,weight:`light`}),children:(0,o.jsx)(`span`,{className:`next-stay-card__guests`,children:O.join(`, `)})}),g&&S&&(0,o.jsx)(`div`,{className:`next-stay-card__footer`,children:(0,o.jsxs)(`a`,{className:`next-stay-card__details-link`,href:g,"aria-label":S,children:[S,` `,(0,o.jsx)(n,{className:`next-stay-card__details-link-icon`,size:12,weight:`light`,"aria-hidden":`true`})]})}),C&&w&&(0,o.jsxs)(`div`,{className:`next-stay-card__all-bookings-section`,children:[(0,o.jsx)(`hr`,{className:`next-stay-card__divider`}),(0,o.jsxs)(`a`,{className:`next-stay-card__all-bookings`,href:C,children:[w,(0,o.jsx)(n,{className:`next-stay-card__all-bookings-icon`,size:14,weight:`light`,"aria-hidden":`true`})]})]})]})};export{s as n,f as t};

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.