PageSourceSearch

https://reservations.heritagemadridhotel.com/_next/static/chunks/3731-499fbce8fa08e5d6.js

js heritagemadridhotel.com collected 2026-09-26 17:45:45 UTC 25,763 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3731],{21737:function(e,n,t){t.d(n,{B:function(){return s}});let s=(0,t(19694).vU)({title:{id:"shared.highlightReel.title",description:"Title shown above the reel",defaultMessage:"Enhance your stay"}})},453:function(e,n,t){t.d(n,{td:function(){return o},NJ:function(){return j},N_:function(){return c}});var s=t(31549),l=t(44194),i=t(622),r=t(14517),a=t(64898);let o=4;function d(e){return{ticker:e.ticker,name:e.name,description:e.description,shortDescription:e.shortDescription,media:e.media,selected:!1,type:"EXTRA"}}function c(e){return e.map(d)}var u=t(17259);let m=e=>{let{item:n,handleModal:t,images:l}=e,{name:r,description:a}=n;return(0,s.jsx)("div",{className:"wbkPrettyScroll h-full w-full relative",children:(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row h-full sm:h-[400px] rounded-card w-full overflow-hidden",children:[(0,s.jsx)("div",{className:"h-1/2 max-h-[230px] sm:h-full sm:max-h-full sm:w-[55.5%] shrink-0",children:(0,s.jsx)(i.lr,{items:l,roundedClassName:""})}),(0,s.jsxs)("div",{className:"min-h-[50%] sm:min-h-0 sm:flex-1 scrollbar overflow-auto pt-7 px-5 sm:px-8 sm:py-10 flex flex-col",children:[(0,s.jsx)("div",{className:"absolute right-3 top-3 cursor-pointer text-gray-100 z-50",children:(0,s.jsx)("div",{className:"w-6 h-6 sm:w-4 sm:h-4",onClick:()=>t(!1),children:(0,s.jsx)(i.Tw,{})})}),(0,s.jsx)("div",{className:"sm:my-auto",children:(0,s.jsxs)("div",{className:"mb-8 sm:mb-6",children:[(0,s.jsx)("div",{className:"flex justify-start font-bold text-property-h2 sm:text-property-h2-sm text-gray-300",children:r}),(0,s.jsx)("div",{className:"flex justify-start text-property-body3 sm:text-property-body3-sm mt-4 sm:mt-2.5 !leading-4 text-gray-300",children:(0,s.jsx)(u.V,{html:a})})]})})]})]})})};var x=t(21048),p=t(19694),f=t(98342),h=t(41818);let v=(0,p.vU)({addedToFavorites:{id:"highlightReel.addedToFavorites",defaultMessage:"Extra added to favorites"}}),g=e=>"'FILL' ".concat(e?1:0,", 'wght' 200, 'GRAD' 200, 'opsz' 24");function b(e){let{items:n,className:t,showPrevButton:d=!0,showNextButton:c=!0,useGradient:u=!1,onAddSelected:p,onRemoveSelected:b}=e,j=(0,f.Z)(),[N,y]=(0,l.useState)(null),[w,k]=(0,l.useState)(!1),C=(0,x.oR)(e=>Object.keys(e.engineStaticDataAggregate)[0]),B=(0,x.oR)(e=>e.engineStaticDataAggregate[C]),M=(0,l.useMemo)(()=>{var e,n;let t=null==B?void 0:null===(n=B.engineConfiguration)||void 0===n?void 0:null===(e=n.theme)||void 0===e?void 0:e.palette;if(!t)return;let{primary:s,secondary:l}=t;return s.isWhiteRGBA(s.main)?l.main:s.main},[B]),L=(0,l.useMemo)(()=>M&&B?(0,h.b)(B,"#FFFFFF",M)?"#FFFFFF":"#2E2F36":"#FFFFFF",[M,B]),E=(0,l.useCallback)(e=>{y(e),k(!0)},[]),A=(0,l.useCallback)(e=>{k(e),e||y(null)},[]),D=(0,l.useCallback)((e,t)=>{t.stopPropagation();let l={type:e.type,ticker:e.ticker,order:n.findIndex(n=>n.ticker===e.ticker)};e.selected?b(l):(p(l),a.ZP.success(j.formatMessage(v.addedToFavorites),{duration:3e3,position:"top-center",icon:(0,s.jsx)(i.xk,{iconIdentifier:"favorite",style:{fontSize:"20px",fontVariationSettings:g(!0),color:"#6B7280",lineHeight:1}})}))},[j,n,p,b]),S=(0,l.useMemo)(()=>N?N.media.map((e,n)=>(0,s.jsx)(i.t3,{sizes:["(min-width: 768px) 1000px","500px"],src:e.url,alt:"".concat(N.name,"-").concat(n+1),className:"w-full h-full object-cover"},e.url)):[],[N]),T=(0,l.useMemo)(()=>n.filter(e=>e.media[0]).map((e,n,t)=>{let l=e.media[0],a=n===t.length-1;return(0,s.jsxs)("div",{className:(0,r.Z)("w-[280px] h-[120px] flex relative overflow-hidden rounded-card",!a&&"mr-4"),style:{backgroundColor:M},children:[(0,s.jsx)("div",{className:"z-10 absolute left-3 top-3 cursor-pointer hover:opacity-80",onClick:n=>D(e,n),children:(0,s.jsx)(i.xk,{iconIdentifier:"favorite",style:{fontSize:"20px",fontVariationSettings:g(e.selected),color:L,lineHeight:1}})}),(0,s.jsx)("div",{className:"w-[140px] flex flex-col justify-end px-3 pb-4 pt-9 cursor-pointer",onClick:()=>E(e),children:(0,s.jsx)("span",{className:"font-bold line-clamp-3 text-[12px] leading-tight",style:{color:L},children:e.name})}),(0,s.jsx)("div",{className:"w-[140px] shrink-0 cursor-pointer",onClick:()=>E(e),children:(0,s.jsx)(i.t3,{sizes:["300px"],src:l.url,alt:e.name,className:"w-full h-full object-cover"})})]},e.ticker)}),[n,M,L,E,D]),F=(0,l.useMemo)(()=>n.filter(e=>e.media[0]).map(e=>{let n=e.media[0];return(0,s.jsx)("div",{className:"shrink-0 snap-start",children:(0,s.jsxs)("div",{className:"w-[224px] h-[106px] flex relative overflow-hidden rounded-card",style:{backgroundColor:M},children:[(0,s.jsx)("div",{className:"z-10 absolute left-3 top-3 cursor-pointer hover:opacity-80",onClick:n=>D(e,n),children:(0,s.jsx)(i.xk,{iconIdentifier:"favorite",style:{fontSize:"20px",fontVariationSettings:g(e.selected),color:L,lineHeight:1}})}),(0,s.jsx)("div",{className:"w-[112px] flex flex-col justify-end px-3 pb-4 pt-9 cursor-pointer",onClick:()=>E(e),children:(0,s.jsx)("span",{className:"font-bold line-clamp-3 text-[12px] leading-tight",style:{color:L},children:e.name})}),(0,s.jsx)("div",{className:"w-[112px] shrink-0 cursor-pointer",onClick:()=>E(e),children:(0,s.jsx)(i.t3,{sizes:["224px"],src:n.url,alt:e.name,className:"w-full h-full object-cover"})})]})}
1,e.ticker)}),[n,M,L,E,D]);return n.length<o?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"hidden sm:flex justify-center sm:-mx-2",children:(0,s.jsx)("div",{style:{width:"1216px",maxWidth:"100%"},children:(0,s.jsx)(i.pC,{showPrevButton:d,showNextButton:c,className:(0,r.Z)(t,"!h-[120px] -mb-2"),prevButtonClassName:"!ml-0 !mr-3 !w-3 -mt-0.5",nextButtonClassName:"!ml-3 !mr-0 !w-3 -mt-0.5",slides:T,useGradient:u,activeButtonClassName:"visible opacity-40",inactiveButtonClassName:"visible opacity-15"})})}),(0,s.jsx)("div",{className:"sm:hidden flex overflow-x-auto gap-3 px-5 pb-1 snap-x snap-mandatory scroll-pl-5 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:F}),N&&(0,s.jsx)(i.dK,{open:w,onToggleDialog:A,defaultOpen:!1,paddingless:!0,hideCloseButton:!0,onlyCloseManually:!0,fullWidthContent:!0,fullHeight:!0,children:(0,s.jsx)(m,{item:N,handleModal:A,images:S})})]})}let j=(0,l.memo)(function(e){let{data:n,addSelected:t,removeSelected:i}=(0,x._J)(),r=(0,l.useMemo)(()=>{var t;let s=new Set(null===(t=n.selected)||void 0===t?void 0:t.map(e=>e.ticker));return e.items.map(e=>({...e,selected:s.has(e.ticker)}))},[e.items,n.selected]);return(0,s.jsx)(b,{...e,items:r,onAddSelected:t,onRemoveSelected:i})})},73700:function(e,n,t){t.d(n,{w:function(){return c}});var s=t(31549),l=t(44194),i=t(622),r=t(14517),a=t(63322),o=t(11451),d=t(16888);let c=(0,l.memo)(function(e){let{activeDiscounts:n,loading:t,className:c}=e,u=(0,l.useRef)(null),[m,x]=(0,l.useState)(!1),[p,f]=(0,l.useState)(!1),h=(0,l.useCallback)(()=>{let e=u.current;e&&(x(e.scrollLeft+e.clientWidth<e.scrollWidth-1),f(e.scrollLeft>0))},[]);return((0,l.useEffect)(()=>{h();let e=u.current;if(!e)return;e.addEventListener("scroll",h,{passive:!0});let n=new ResizeObserver(h);return n.observe(e),()=>{e.removeEventListener("scroll",h),n.disconnect()}},[h,n]),t||(null==n?void 0:n.length))?(0,s.jsx)("div",{className:(0,r.Z)("flex items-center bg-primary-100 h-9 sm:h-11",c),children:(0,s.jsxs)("div",{className:"relative flex items-center w-full sm:max-w-7xl sm:mx-auto sm:px-8 h-full overflow-hidden",children:[p&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"absolute left-0 sm:left-8 h-full w-64 bg-gradient-to-r from-primary-100 to-transparent pointer-events-none z-10"}),(0,s.jsx)("button",{onClick:()=>{var e;return null===(e=u.current)||void 0===e?void 0:e.scrollBy({left:-600,behavior:"smooth"})},className:"absolute left-0 sm:left-8 z-20 h-full px-2 flex items-center text-primary-contrast","aria-label":"Desplazar izquierda",children:(0,s.jsx)("svg",{className:"w-6 h-6",viewBox:"0 0 16 16",fill:"none",children:(0,s.jsx)("path",{d:"M10 4l-4 4 4 4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,s.jsx)("div",{ref:u,className:"flex items-center justify-start h-full w-full overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden px-4",children:(0,s.jsx)("div",{className:"flex items-center min-w-max mx-auto",children:t?(0,s.jsx)(d.R,{quantity:6}):n.map((e,n)=>{let{ticker:t,name:r}=e;return(0,s.jsxs)(l.Fragment,{children:[n>0&&(0,s.jsx)("span",{className:"mx-4 text-primary-contrast select-none pointer-events-none leading-none flex-shrink-0 opacity-50",children:"\xb7"}),(0,s.jsx)(i.J2,{zIndex:"z-30",className:"flex h-full items-center gap-0",elementClassName:"outline-none flex-shrink-0",arrowClassName:"before:bg-primary-100",distance:16,tabIndex:n,element:(0,s.jsxs)("div",{className:"flex flex-row items-center gap-1.5 text-primary-contrast hover:text-primary-contrast/80 group cursor-pointer whitespace-nowrap outline-none",children:[(0,s.jsx)(a.z,{discount:e,compact:!0}),(0,s.jsx)("span",{className:"text-sm font-normal group-hover:text-primary-contrast/80",children:r})]}),children:(0,s.jsx)(o.q,{discount:e})})]},t)})})}),m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"absolute right-0 sm:right-8 h-full w-64 bg-gradient-to-l from-primary-100 to-transparent pointer-events-none z-10"}),(0,s.jsx)("button",{onClick:()=>{var e;return null===(e=u.current)||void 0===e?void 0:e.scrollBy({left:600,behavior:"smooth"})},className:"absolute right-0 sm:right-8 z-20 h-full px-2 flex items-center text-primary-contrast","aria-label":"Desplazar derecha",children:(0,s.jsx)("svg",{className:"w-6 h-6",viewBox:"0 0 16 16",fill:"none",children:(0,s.jsx)("path",{d:"M6 4l4 4-4 4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})}):null})},84856:function(e,n,t){t.d(n,{E:function(){return v}});var s=t(31549),l=t(44194),i=t(33406),r=t(622),a=t(14517),o=t(19694),d=t(98342),c=t(36582),u=t
1(35490),m=t(17259);let x=e=>{let{screenReaderLabel:n,checked:t,onChange:l}=e;return(0,s.jsxs)("button",{type:"button",role:"switch","aria-checked":t,onClick:()=>l(!t),className:(0,a.Z)("relative inline-flex shrink-0 cursor-pointer rounded-full transition-colors duration-200 ease-in-out focus:outline-none hover:ring-2","w-[43px] h-[25px] sm:w-[40px] sm:h-[21px]",t?"bg-primary-100 hover:ring-primary-100/50":"bg-[#BEBEBE] hover:ring-[#BEBEBE]/50"),children:[(0,s.jsx)("span",{className:"sr-only",children:n}),(0,s.jsx)("span",{"aria-hidden":"true",className:(0,a.Z)("absolute top-[2px] inline-block rounded-full bg-white transition-all duration-200 ease-in-out","w-[21px] h-[21px] sm:w-[17px] sm:h-[17px]",t?"right-[2px]":"left-[2px]")})]})};var p=t(41818),f=t(21048);let h=(0,o.vU)({...u.fi,independentProgressReservations:{id:"component.independentLoyaltyBar.progressReservations",defaultMessage:"{count, plural, one {# reservation} other {# reservations}}"},independentProgressAmount:{id:"component.independentLoyaltyBar.progressAmount",defaultMessage:"{amount}"},independentYouAre:{id:"component.independentLoyaltyBar.youAre",defaultMessage:"You are"},independentAwayFrom:{id:"component.independentLoyaltyBar.awayFrom",defaultMessage:"away from"},independentLevelOf:{id:"component.independentLoyaltyBar.levelOf",defaultMessage:"level of"},independentLevelWithNextLevel:{id:"component.independentLoyaltyBar.levelWithNextLevel",defaultMessage:"{levelName} {levelOf} {brandName}{separator}{youAre} {progress} {awayFrom} {nextLevelName}"},independentProgressPoints:{id:"component.independentLoyaltyBar.progressPoints",defaultMessage:"{count, plural, one {# point} other {# points}}"},independentDiscountSave:{id:"component.independentLoyaltyBar.discountSave",defaultMessage:"Save {discount}"},independentDiscountActive:{id:"component.independentLoyaltyBar.discountActive",defaultMessage:"<b>{discount} discount</b> active on this booking"},independentClubBenefitsActive:{id:"component.independentLoyaltyBar.clubBenefitsActive",defaultMessage:"Club benefits active"},independentJoinWithDiscount:{id:"component.independentLoyaltyBar.joinWithDiscount",defaultMessage:"Join {brandName} and save {discount}"},independentJoinWithBenefits:{id:"component.independentLoyaltyBar.joinWithBenefits",defaultMessage:"<b>JOIN {brandName}</b> and get <b>{benefitsLink}</b>"},independentExclusiveBenefits:{id:"component.independentLoyaltyBar.exclusiveBenefits",defaultMessage:"exclusive club benefits"},independentBecomeMember:{id:"component.independentLoyaltyBar.becomeMember",defaultMessage:"Become a member"},independentSignIn:{id:"component.independentLoyaltyBar.signIn",defaultMessage:"Sign in"},independentOrSeparator:{id:"component.independentLoyaltyBar.orSeparator",defaultMessage:"or"},independentJoinGetDiscountDesktop:{id:"component.independentLoyaltyBar.joinGetDiscountDesktop",defaultMessage:"<b>JOIN {brandName}</b> and get a <b>{discount} discount</b>"},independentSaveMobile:{id:"component.independentLoyaltyBar.saveMobile",defaultMessage:"{brandName} \xb7 Save {discount}"}}),v=(0,l.memo)(function(e){var n,t,o,u,v,g,b;let{brand:j,tier:N,nextTier:y,user:w,loyaltyStatus:k,loyaltyLoginLink:C,loyaltyRegisterLink:B,onLoyaltyToggle:M,bookAndJoinType:L,currency:E,hasBorder:A=!1,className:D,position:S="bottom"}=e,T=(0,d.Z)(),F=(0,f.oR)(e=>e.engineStaticDataAggregate[Object.keys(e.engineStaticDataAggregate)[0]]),R=null!==(g=null==F?void 0:null===(u=F.engineConfiguration)||void 0===u?void 0:null===(o=u.theme)||void 0===o?void 0:null===(t=o.palette)||void 0===t?void 0:null===(n=t.bodyColor)||void 0===n?void 0:n.main)&&void 0!==g?g:"#ffffff",z=!F||(0,p.b)(F,"#000000",R),{loyaltyToggle:O,showLoggedInControls:I,showOptOutInfoMessage:Z,handleLoyaltyToggle:_}=function(e){let{loyaltyStatus:n,onLoyaltyToggle:t}=e,s=n===i.wcI.AVAILABLE_FOR_PROPERTY||n===i.wcI.ACTIVE_BY_LOGGED_USER||n===i.wcI.AVAILABLE_AND_PRE_ACCEPTED,r=(0,l.useCallback)(e=>{t(e)},[t]),[a,o]=(0,l.useState)(!1),d=(0,l.useCallback)(e=>{o(e)},[]),c=n===i.wcI.ACTIVE_BY_LOGGED_USER,u=n===i.wcI.AVAILABLE_AND_PRE_ACCEPTED;return{loyaltyToggle:s,openTierBenefitDialog:a,showLoggedInControls:c,showOptOutInfoMessage:u,showRegularControls:!c&&!u,handleLoyaltyToggle:r,handleToggleDialog:d}}({loyaltyStatus:k,onLoyaltyToggle:M}),[P,W]=(0,l.useState)(null),J=L===i.t_8.OPT_IN,G=L===i.t_8.OPT_OUT,V=(null==N?void 0:null===(v=N.promotedDiscount)||void 0===v?void 0:v.percentage)?N.promotedDiscount.amount:0,U=void 0!==w&&(void 0!==w.reservationsToNextTier||void 0!==w.amountToNextTier||void 0!==w.pointsToNextTier),Y=(0,l.useMemo)(()=>
1{if(U&&w){if(null!=w.reservationsToNextTier)return T.formatMessage(h.independentProgressReservations,{count:w.reservationsToNextTier});if(null!=w.amountToNextTier)return null!=E?T.formatNumber(w.amountToNextTier,{style:"currency",currency:E}):T.formatMessage(h.independentProgressAmount,{amount:w.amountToNextTier});if(null!=w.pointsToNextTier)return T.formatMessage(h.independentProgressPoints,{count:w.pointsToNextTier})}return null},[U,w,E,T]),H=(0,l.useCallback)(()=>I&&Y&&y?(0,s.jsxs)("span",{className:"text-sm leading-none text-gray-400 sm:hidden",children:[T.formatMessage(h.independentYouAre)," ",(0,s.jsx)("strong",{className:"font-bold",children:Y})," ",T.formatMessage(h.independentAwayFrom)," ",(0,s.jsx)("button",{className:"underline cursor-pointer",onClick:()=>W(null!=y?y:null),children:y.translations.name})]}):null,[I,Y,y,T,W]),q=(0,l.useCallback)(()=>{var e;let n=(null==N?void 0:null===(e=N.promotedDiscount)||void 0===e?void 0:e.percentage)?N.promotedDiscount.amount:0;if(I)return void 0!==y&&Y?(0,s.jsxs)("span",{className:"flex items-center gap-1 flex-wrap",children:[(0,s.jsx)("span",{className:"hidden sm:contents",children:(0,s.jsx)(c.Z,{...h.independentLevelWithNextLevel,values:{levelName:(0,s.jsx)("button",{className:"font-bold cursor-pointer",style:{color:null==N?void 0:N.color},onClick:()=>W(null!=N?N:null),children:null==N?void 0:N.translations.name},"tier"),levelOf:(0,s.jsx)("span",{className:"font-bold",children:T.formatMessage(h.independentLevelOf)},"of"),brandName:(0,s.jsx)("span",{className:"font-bold",children:j.translations.name},"brand"),separator:(0,s.jsx)("span",{className:"font-bold mx-1.5 opacity-50",children:"\xb7"},"sep"),youAre:T.formatMessage(h.independentYouAre),progress:(0,s.jsx)("strong",{className:"font-bold",children:Y},"progress"),awayFrom:T.formatMessage(h.independentAwayFrom),nextLevelName:(0,s.jsx)("button",{className:"underline cursor-pointer",onClick:()=>W(null!=y?y:null),children:null==y?void 0:y.translations.name},"next-tier")}})}),(0,s.jsxs)("span",{className:"sm:hidden flex items-center gap-1 flex-wrap text-base leading-none",children:[(0,s.jsx)("button",{className:"font-bold cursor-pointer",style:{color:null==N?void 0:N.color},onClick:()=>W(null!=N?N:null),children:null==N?void 0:N.translations.name}),n>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"opacity-50 mx-0.5 font-bold",children:"\xb7"}),(0,s.jsx)("strong",{className:"font-bold",children:T.formatMessage(h.independentDiscountSave,{discount:"".concat(n,"%")})})]})]})]}):(0,s.jsxs)("span",{className:"flex items-center gap-1 flex-wrap",children:[(0,s.jsxs)("span",{className:"hidden sm:contents",children:[(0,s.jsx)("button",{className:"font-bold cursor-pointer",style:{color:null==N?void 0:N.color},onClick:()=>W(null!=N?N:null),children:null==N?void 0:N.translations.name}),(0,s.jsx)("span",{children:T.formatMessage(h.independentLevelOf)}),(0,s.jsx)("span",{className:"font-bold",children:j.translations.name})]}),(0,s.jsxs)("span",{className:"sm:hidden flex items-center gap-1 flex-wrap text-base leading-none",children:[(0,s.jsx)("button",{className:"font-bold cursor-pointer",style:{color:null==N?void 0:N.color},onClick:()=>W(null!=N?N:null),children:null==N?void 0:N.translations.name}),n>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"opacity-50 mx-0.5 font-bold",children:"\xb7"}),(0,s.jsx)("strong",{className:"font-bold",children:T.formatMessage(h.independentDiscountSave,{discount:"".concat(n,"%")})})]})]})]});if(!I){if(V>0){let e="".concat(V,"%");return(0,s.jsxs)("span",{className:"text-sm leading-5",children:[(0,s.jsx)("span",{className:"hidden sm:inline",children:(0,s.jsx)(c.Z,{...h.independentJoinGetDiscountDesktop,values:{brandName:j.translations.name,discount:e,b:e=>(0,s.jsx)("strong",{className:"font-bold",children:e})}})}),(0,s.jsx)("span",{className:"sm:hidden font-bold",children:(0,s.jsx)(c.Z,{...h.independentSaveMobile,values:{brandName:j.translations.name,discount:e}})})]})}return(0,s.jsxs)("span",{className:"text-sm leading-5",children:[(0,s.jsx)("span",{className:"hidden sm:inline",children:(0,s.jsx)(c.Z,{...h.independentJoinWithBenefits,values:{brandName:j.translations.name,benefitsLink:(0,s.jsx)("button",{className:"cursor-pointer",onClick:()=>W(null!=N?N:null),children:T.formatMessage(h.independentExclusiveBenefits)},"benefits"),b:e=>(0,s.jsx)("strong",{className:"font-bold",children:e})}})}),(0,s.jsxs)("span",{className:"sm:hidden flex items-center gap-1",children:[(0,s.jsx)("span",{className:"font-bold",children:j.translations.name}),(0,s.jsx)("span",{className:"opacity-50 font-bold",children:"\xb7"}),(0,s.jsx)("button",{className:"font-bold cursor-pointer",onClick:()=>W(null!=N?N:null),children:T.formatMessage(h.independentExclusiveBenefits)})]})]})}return(0,s.jsx)("span",{className:"font-bold",style:{color:null==N?void 0:N.color},children:j.translations.name})},[I,V,N,j,y,W,Y,T]),K=(0,l.useCallback)(()=>!I&&J?(0,s.jsxs)("div",{className:"flex items-center gap-1.5 text-sm leading-none text-gray-300 sm:hidden",children:[(0,s.jsx)("a",{href:B,className:"font-bold underline",children:(0,s.jsx)(c.Z,{...h.independentBecomeMember})}),(0,s.jsx)("span",{className:"opacity-50",children:"|"}),(0,s.jsx)("a",{href:C,children:(0,s.jsx)(c.Z,{...h.independentSignIn})})]}):null,[I,J,B,C]),X=(0,l.useCallback)(()=>{var e;let n=(null==N?void 0:null===(e=N.promotedDiscount)||void 0===e?void 0:e.percentage)?N.promotedDiscount.amount:0,t=(0,s.jsx)(x,{screenReaderLabel:"Enable club",checked:O,onChange:_});return I?(0,s.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[(0,s.jsx)("span",{className:"text-sm text-gray-300 text-right hidden sm:block",children:n>0?(0,s.jsx)(c.Z,{...h.independentDiscountActive,values:{discount:"".concat(n,"%"),b:e=>(0,s.jsx)("strong",{className:"font-bold underline",children:e})}}):(0,s.jsx)(c.Z,{...h.independentClubBenefitsActive})}),t]}):G?(0,s.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[(0,s.jsx)("span",{className:"text-sm text-gray-300 text-right hidden sm:block",children:n>0?(0,s.jsx)(c.Z,{...h.independentDiscountActive,values:{discount:"".concat(n,"%"),b:e=>(0,s.jsx)("strong",{className:"font-bold underline",children:e})}}):(0,s.jsx)(c.Z,{...h.independentClubBenefitsActive})}),t]}):J?(0,s.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[(0,s.jsxs)("div",{className:"hidden sm:flex items-center gap-1.5 text-sm leading-5 text-gray-300",children:[(0,s.jsx)("a",{href:B,className:"font-bold text-gray-300",style:{textDecoration:"underline",textUnderlineOffset:"17%",textDecorationThickness:"5.5%"},children:(0,s.jsx)(c.Z,{...h.independentBecomeMember})}),(0,s.jsxs)("span",{className:"font-normal",children:[T.formatMessage(h.independentOrSeparator)," ",(0,s.jsx)("a",{href:C,className:"font-normal text-gray-300",children:(0,s.jsx)(c.Z,{...h.independentSignIn})})]})]}),t]}):(0,s.jsxs)("div",{className:"hidden sm:flex items-center gap-1.5 text-sm leading-5 text-gray-300 shrink-0",children:[(0,s.jsx)("a",{href:B,className:"font-bold text-gray-300",style:{textDecoration:"underline",textUnderlineOffset:"17%",textDecorationThickness:"5.5%"},children:(0,s.jsx)(c.Z,{...h.independentBecomeMember})}),(0,s.jsxs)("span",{className:"font-normal",children:[T.formatMessage(h.independentOrSeparator)," ",(0,s.jsx)("a",{href:C,className:"font-normal text-gray-300",children:(0,s.jsx)(c.Z,{...h.independentSignIn})})]})]})},[I,G,J,N,B,C,_,O,T]),$=K(),Q=I&&!!y&&!!Y,ee=$||Q,en=!!$;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.dK,{open:null!==P,onToggleDialog:e=>{e||W(null)},paddingless:!0,contentClassName:"sm:!max-w-fit !overflow-auto",embeddedCloseButton:!0,fullHeight:!0,children:(0,s.jsx)(m.V,{className:"sm:h-auto h-screen flex items-center",as:"div",html:null!==(b=null==P?void 0:P.translations.benefitDescription)&&void 0!==b?b:""})}),(0,s.jsx)("div",{className:(0,a.Z)("w-full","bottom"===S&&"backdrop-blur-md",A&&"outline outline-1 outline-gray-50",ee?"py-6":"h-16",en?"sm:py-3":"sm:h-11",D),style:"top"===S?{backgroundColor:"color-mix(in srgb, var(--color-body-color) 97%, ".concat(z?"black":"white",")")}:{backgroundColor:"color-mix(in srgb, var(--color-white) 80%, transparent)"},children:(0,s.jsxs)("div",{className:(0,a.Z)("flex items-center justify-between gap-2 px-5 sm:px-8 max-w-7xl mx-auto w-full h-full"),children:[(0,s.jsxs)("div",{className:(0,a.Z)("flex flex-col min-w-0 flex-1",ee?"gap-1":"justify-center"),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm leading-5 text-gray-300",children:[(null==N?void 0:N.color)&&(I||Z)&&(0,s.jsxs)("div",{className:"shrink-0 w-4 h-4 sm:w-6 sm:h-6 rounded-full flex items-center justify-center relative",style:{backgroundColor:N.color.replace(/[\d.]+\)$/,"0.15)")},children:[(0,s.jsx)(r.r7,{size:12,fill:N.color,className:"absolute sm:hidden"}),(0,s.jsx)(r.r7,{size:18,fill:N.color,className:"absolute hidden sm:block"})]}),(0,s.jsx)("div",{className:"min-w-0",children:q()})]}),H(),$&&(0,s.jsx)("div",{children:$})]}),X()]})})]})})},61298:function(e,n,t){t.d(n,{A:function(){return o}});var s=t(31549),l=t(44194),i=t(56321);let r=new Map;function a(){let e=document.querySelector("main");if(!e)return;let n=0;
1r.forEach(e=>n+=e),e.style.paddingBottom=n>0?"".concat(n,"px"):""}let o=(0,l.memo)(function(e){let{containerId:n,offsetContainerId:t,bottomAdjustment:o=0,children:d}=e,[c,u]=(0,l.useState)(0),[m,x]=(0,l.useState)(null),p=(0,l.useRef)(null),f=(0,l.useRef)(null),h=(0,l.useRef)(null),v=(0,l.useRef)(null),g=(0,l.useRef)(0),b=(0,l.useRef)(o);b.current=o;let j=(0,l.useCallback)(()=>{let e=v.current,n=h.current;if(!e||!n)return;let t=window.innerHeight-n.getBoundingClientRect().top;e.style.bottom="".concat((t>0?t:0)+g.current-b.current,"px")},[]);(0,l.useEffect)(()=>{h.current=document.getElementById("main-footer"),x(document.getElementById(n))},[n]);let N=(0,l.useCallback)(()=>{var e,t;r.set(n,null!==(t=null===(e=v.current)||void 0===e?void 0:e.getBoundingClientRect().height)&&void 0!==t?t:0),a()},[n]),y=(0,l.useCallback)(e=>{var n;v.current=e,null===(n=f.current)||void 0===n||n.disconnect(),e&&(j(),N(),f.current=new ResizeObserver(N),f.current.observe(e))},[j,N]);return((0,l.useEffect)(()=>()=>{var e;null===(e=f.current)||void 0===e||e.disconnect(),r.delete(n),a()},[n]),(0,l.useEffect)(()=>{if(!t)return;let e=document.getElementById(t);if(!e)return;let n=()=>e.firstElementChild,s=()=>{let e=n(),t=e?e.getBoundingClientRect().height:0;g.current=t,u(t),j()},l=new MutationObserver(()=>{let e=n();e&&(l.disconnect(),s(),p.current=new ResizeObserver(s),p.current.observe(e))}),i=n();return i?(s(),p.current=new ResizeObserver(s),p.current.observe(i)):l.observe(e,{childList:!0}),()=>{var e;null===(e=p.current)||void 0===e||e.disconnect(),l.disconnect()}},[t,j]),(0,l.useEffect)(()=>{j(),window.addEventListener("scroll",j,{passive:!0}),window.addEventListener("resize",j),window.addEventListener("resize",N);let e=new ResizeObserver(j);return e.observe(document.body),()=>{window.removeEventListener("scroll",j),window.removeEventListener("resize",j),window.removeEventListener("resize",N),e.disconnect()}},[j,N]),m)?i.createPortal((0,s.jsx)("div",{ref:y,className:"fixed w-full z-20 items-center hidden sm:flex",style:{bottom:0},children:(0,s.jsx)("div",{className:"w-full",children:d})}),m):null})}}]);

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.