PageSourceSearch

https://www.hrs.com/_next/static/chunks/14511.24a0d41253015047.js

js hrs.com collected 2026-09-24 17:43:38 UTC 25,930 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[14511],{2498:e=>{e.exports={container:"TopMemberDiscounts_container__6TyaD",header:"TopMemberDiscounts_header__Q_Jjg",topMemberDiscounts:"TopMemberDiscounts_topMemberDiscounts__fs40B",offers:"TopMemberDiscounts_offers__ghI9n",offer:"TopMemberDiscounts_offer__33Nsh",offerSkeleton:"TopMemberDiscounts_offerSkeleton__iCKI8",passThrough:"TopMemberDiscounts_passThrough__KHiiu",scrollButton:"TopMemberDiscounts_scrollButton__LyXuN",scrollButtonRight:"TopMemberDiscounts_scrollButtonRight__UiQji",scrollButtonLeft:"TopMemberDiscounts_scrollButtonLeft__pH9_t"}},18708:(e,t,r)=>{"use strict";r.d(t,{D:()=>s});var n=r(28594),o=r(64549),i=r(22627);let l=e=>e[0].toUpperCase()+e.substring(1),s=(e,t,r,s,a)=>{if(e===n.o.ALL_INCLUSIVE)return l(r("offer:ALL_INCLUSIVE"));if(e===n.o.UNKNOWN||t!==o.J.Exclusive&&t!==o.J.Inclusive)return"";let u="offer:".concat(e,"_").concat(t),c=r(u);if(t===o.J.Exclusive&&a&&a.amount>0&&s){let e=(0,i.$g)(s,a.amount,a.currency);c=r("".concat(u,"_WITH_PRICE"),{price:e})}return l(c)}},20120:e=>{e.exports={container:"TopMemberDiscountsItem_container__vJBe4",content:"TopMemberDiscountsItem_content__mwwYA",offerCard:"TopMemberDiscountsItem_offerCard__LbDiq",title:"TopMemberDiscountsItem_title__B_mJR",city:"TopMemberDiscountsItem_city__0rvdA"}},29025:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(54568),o=r(64889),i=r(22627),l=r(72902),s=r(82554),a=r.n(s);let u=e=>{let{businessTravellerPrice:t,showSmallView:r,shrinkDisplayedPrice:s,showDecimals:u}=e,{i18n:c}=(0,o.useTranslation)("offer"),d=c.language;return(0,n.jsx)("div",{className:(0,l.A)(a().price,r&&a().smallView,s&&a().shrunkPrice),children:u?(0,i.$g)(d,t.amount,t.currency):(0,i.jI)(d,t.amount,t.currency)})}},29036:(e,t,r)=>{"use strict";r.d(t,{w:()=>a});var n,o,i=r(7620);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var s=(0,i.forwardRef)(function(e,t){return i.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",ref:t},e),n||(n=i.createElement("path",{fill:"currentColor",d:"M15.49.484S13.855 0 11.64 0C10.61 0 9.45.105 8.273.413h-.018c-1.6.413-3.235 1.205-4.642 2.611a6.61 6.61 0 0 0-.5 8.783L0 14.91l1.037 1.038 3.113-3.104a6.58 6.58 0 0 0 4.131 1.45 6.56 6.56 0 0 0 4.669-1.933C17.61 7.7 15.49.484 15.49.484M6.41 2.725a8.6 8.6 0 0 1 1.837-.782V6.69L6.41 8.52zM4.94 9.987l-.783.782c-1.494-2.004-1.336-4.87.493-6.69.096-.096.193-.184.29-.281zm6.962 1.345a5.1 5.1 0 0 1-3.63 1.503 5.06 5.06 0 0 1-3.077-1.028l.773-.774h6.216c-.088.106-.185.202-.282.3m1.337-1.767H7.446l1.846-1.837h4.73a8.7 8.7 0 0 1-.782 1.837m1.108-3.306H9.714V1.618c.607-.088 1.249-.141 1.917-.141.633 0 1.222.044 1.723.105l-1.582 1.583 1.046 1.037L14.4 2.62c.106.976.159 2.26-.053 3.64"})),o||(o=i.createElement("path",{fill:"currentColor",d:"M11.94 5.014a.923.923 0 1 1-.923-.923c.51.009.923.422.923.923"})))});let a=(0,r(10600).w)(s,"GreenStayIcon")},29455:(e,t,r)=>{"use strict";r.d(t,{BZ:()=>l,SD:()=>o,ki:()=>i});var n=r(58697);let o=(e,t,r)=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({...(0,n.HK)(),event:"add_to_favorites",location:e,hotel_id:t.toString(),hotel_name:r,feature:"Favorites"})},i=(e,t,r)=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({...(0,n.HK)(),event:"remove_from_favorites",location:e,hotel_id:t.toString(),hotel_name:r,feature:"Favorites",hit_timestamp:new Date().toISOString()})},l=e=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({...(0,n.HK)(),event:"favorite_popup",location:e,feature:"Favorites",hit_timestamp:new Date().toISOString()})}},37730:(e,t,r)=>{"use strict";r.d(t,{A:()=>_});var n=r(54568),o=r(32733),i=r(46656),l=r(29455),s=r(64889),a=r(86045),u=r(72902),c=r(96442),d=r(7620),f=r(9966),m=r(9406),h=r(44164),v=r(74622),p=r(58622),b=r(89801),g=r.n(b);let x=(0,c.default)(()=>Promise.all([r.e(89646),r.e(13461),r.e(6157),r.e(40651)]).then(r.bind(r,40651)),{loadableGenerated:{webpack:()=>[40651]}}),w=(0,c.default)(()=>Promise.all([r.e(89646),r.e(89245),r.e(6157),r.e(20915)]).then(r.bind(r,20915)),{loadableGenerated:{webpack:()=>[20915]}}),_=(0,f.Ng)(e=>{var t;let{customer:r,auth:n}=e;return{favorites:null!=(t=r.favorites)?t:[],isLoggedIn:n.loginState.isLoggedIn}},{toggleHotelFavorite:a.dw})(e=>{let{favorites:t,hotelId:r,hotelName:a,type:c,isLoggedIn:f,className:b,showText:_,variant:y="default",toggleHotelFavorite:L,placement:j=p.W.Bottom}=e,{t:A}=(0,s.useTranslation)("common"),[T,E]=(0,d.useState)(!1),[k,B]=(0,d.useState)(!1),[I,N]=(0,d.useState)(!1),M=t.map(e=>e.hotelId).includes(r);if(!M&&"small"===c)return null;let S=M?o.I.favoriteActive:T?o.I.favoriteHover:o.I.favoriteInactive,C={small:20,medium:28,mediumMedian:32,mediumLarge:36,large:44,responsive:void 0}[c],F=()=>{let e=(0,i.b)();"small"!==c&&(f?(e===i.L.Favourites?N(!0):L(r),e&&a&&e!==i.L.Favourites&&(M||(0,l.SD)(e,r,a),M&&(0,l.ki)(e,r,a))):(B(!0),e&&a&&(0,l.BZ)(e)))},D=A(M?"FavoritesButton.RemoveFromFavorites":"FavoritesButton.AddToFavorites"),R=A(M?"common:FavoritesButton.RemoveFromFavorites":"common:FavoritesButton.AddToFavorites"),P=(0,n.jsx)(p.A,{text:D,classNameText:g().tooltip,placement:j,onTriggerAction:F,children:(0,n.jsx)(m.A,{src:S,width:C,height:C,layout:C?void 0:"responsive",alt:""})});return(0,n.jsxs)(n.Fragment,{children:["outlinedPill"===y?(0,n.jsx)(v.A,{text:R,icon:o.I.heart,alt:"",type:h.VQ.Secondary,size:h.Mp.Medium,className:g().outlinedPill,onClick:()=>F(),ariaLabel:R}):(0,n.jsxs)("div",{onClick:e=>{F(),e.stopPropagation()},onMouseEnter:()=>{"small"!==c&&E(!0)},onMouseLeave:()=>{"small"!==c&&E(!1)},className:(0,u.A)(b),style:{cursor:"pointer"},children:[P,_&&(0,n.jsx)("div",{className:g().text,children:R})]}
1),k&&(0,n.jsx)(x,{onClose:()=>B(!1),open:!0}),I&&(0,n.jsx)(w,{onClose:()=>N(!1),open:!0,hotelId:r,hotelName:a})]})})},56983:e=>{e.exports={button:"HotelListButton_button__RrM4t"}},74622:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(54568),o=r(72902),i=r(9406),l=r(44164),s=r(76517),a=r.n(s);let u=e=>{let{id:t,text:r,icon:s,alt:u,type:c,className:d,onClick:f,ariaLabel:m,ariaLabelledBy:h,size:v=l.Mp.Small}=e;return(0,n.jsx)(l.Ay,{id:t,linkType:l.J.ButtonLink,onButtonClick:f,size:v,type:c,className:r?d:a().circleButton,ariaLabel:m,ariaLabelledBy:h,children:(0,n.jsxs)("div",{className:a().container,children:[(0,n.jsx)(i.A,{src:s,width:20,height:20,alt:u}),r&&(0,n.jsx)("div",{className:(0,o.A)(v===l.Mp.Small?a().standardFont:a().mediumFont,a().text),children:r})]})})}},76517:e=>{e.exports={container:"ButtonWithIcon_container__hvt5s",standardFont:"ButtonWithIcon_standardFont__VXhmy",mediumFont:"ButtonWithIcon_mediumFont__f5FF9",text:"ButtonWithIcon_text__eQSEb",circleButton:"ButtonWithIcon_circleButton__i_zrI"}},82554:e=>{e.exports={price:"AvailableBusinessTariff_price__KN3iR",smallView:"AvailableBusinessTariff_smallView__Dz0uk",shrunkPrice:"AvailableBusinessTariff_shrunkPrice__qXlqt"}},86966:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>F});var n=r(54568),o=r(9406),i=r(32733),l=r(44164),s=r(23134),a=r(58697);let u=(e,t)=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({...(0,a.HK)(),event:"hotel_offer_reco_list",location:"MemberDiscountsCarousel",type:e,index:null!=t?t:0,feature:"reco_list",hit_timestamp:new Date().toISOString()})};var c=r(72902),d=r(7620),f=r(72315),m=r(9966),h=r(2498),v=r.n(h),p=r(26635),b=r(22438),g=r(64889),x=r(50311),w=r(32837),_=r(56983),y=r.n(_);let L=e=>{let{t,i18n:r}=(0,g.useTranslation)("home"),o=(0,m.wA)(),i={arrival:e.arrival,departure:e.departure,language:r.language,currency:"EUR",rooms:e.rooms,selectedDestination:{suggestion:e.suggestion,hotelId:e.hotelId,locationId:e.locationId,group:"LOCATION"},hotelTeaserKeys:[e.hotelId],perimeter:0,sortBy:e.sortBy,amenities:[],showMap:!1,hideRentalHome:!1,hideLogin:!1,hideRegistration:!1},s=(0,x.A)(i),a=t=>{if(e.locationId){let{rooms:t}=e,n={locationId:e.locationId,arrival:e.arrival,departure:e.departure,rooms:t,language:r.language,showSearchBox:!1,hotelTeaserKeys:[e.hotelId],fastAvail:!1,hotelsFromFirstSearch:[],sortBy:b.r.Recommendations,filters:{amenities:[],stars:[],vicinity:0,text:"",autoextended:!1,chains:[]}};o((0,w.Bl)(n,!0)),u("link_click",e.index);return}t.preventDefault()};return(0,n.jsx)(l.Ay,{linkType:l.J.ButtonNextLink,href:s,onLinkClick:a,onButtonClick:a,size:l.Mp.Medium,type:l.VQ.Tertiary,text:t("TopMemberDiscounts.MoreHotelsIn",{city:e.suggestion}),className:y().button})};var j=r(20120),A=r.n(j);let T=e=>{let{offer:t,className:r,arrival:o,departure:i,rooms:l,index:a}=e,{i18n:d}=(0,f.Bd)("home"),m=t.businessTravellerTotalDiscountInPercentage?Math.floor(t.businessTravellerTotalDiscountInPercentage):void 0;return t.locationId?(0,n.jsxs)("div",{className:(0,c.A)(A().container,r),children:[(0,n.jsxs)("div",{className:A().content,children:[(0,n.jsxs)("div",{className:A().title,children:[(0,n.jsx)(s.A,{component:"div",variant:"body1",fontWeight:"semi-bold",className:A().city,children:t.hotel.address.city.substring(0,20)}),m&&(0,n.jsxs)(s.A,{component:"div",variant:"body1",fontWeight:"semi-bold",colors:"brand-500",children:["-",m,"%"]})]}),(0,n.jsx)(p.A,{showMediumView:!0,offer:t,hideGreenStayIcon:!0,hideLocation:!0,hideRoomsLeft:!0,hideCreditCardInfo:!0,hideDiscountLabel:!0,hideMealplan:!0,showFavoriteIcon:!1,language:d.language,className:A().offerCard,openInSameTab:!1,tracking:()=>{u("hotel_card_click",a+1)},tooltipAdjustment:!0,hideRegistrationTooltip:!0,forceFreesaleAvails:!0})]}),(0,n.jsx)(L,{sortBy:b.r.Recommendations,arrival:o,departure:i,rooms:l,locationId:t.locationId,hotelId:t.hotel.id,suggestion:t.hotel.address.city,index:a+1})]}):null};var E=r(69406),k=r(19458),B=r(16734),I=r.n(B);let N=I()().add(0,"day"),M=I()().add(1,"day"),S=[{children:[],numberOfAdults:1,type:k.C.SINGLEROOM}],C=async e=>{let t=window.innerWidth<1216?"mobile":"desktop";try{let r=await fetch("/api/topmemberdiscounts?language=".concat(e,"&device=").concat(t),{headers:{"Content-Type":"application/json","Accept-Encoding":"gzip"}});if(r.ok){let n=await r.json();return 0===n.offers.length&&E.Vy.log({source:E._q.topMemberDiscountsLib,message:"No offers while fetching top member discounts",language:e,calcualtedFor:t}),n.offers}E.Vy.error("topmemberdiscounts api failed",{source:E._q.topMemberDiscountsLib,message:"Error while fetching top member discounts",status:r.status,statusText:r.statusText,language:e,calcualtedFor:t})}catch(r){E.Vy.error(r,{source:E._q.topMemberDiscountsLib,message:"Error while fetching top member discounts",error:r,language:e,calcualtedFor:t})}return[]},F=e=>{let{className:t}=e,[r,a]=(0,d.useState)(!1),[h,p]=(0,d.useState)(!0),[b,g]=(0,d.useState)(void 0),[x,w]=(0,d.useState)(!1),[_,y]=(0,d.useState)(void 0),{isLoggedIn:L}=(0,m.d4)(e=>{let{auth:t}=e;return{isLoggedIn:t.loginState.isLoggedIn}}),{t:j,i18n:A}=(0,f.Bd)("home"),E=A.language,k=(0,d.useRef)(null);return((0,d.useEffect)(()=>
1{if(window.location.href.toLowerCase().includes("puw2boba"))return void w(!0);w(!1),(async()=>{g(await C(E))})()},[E]),(0,d.useEffect)(()=>{let e=[];if(void 0===b)return void y(void 0);y(e=L?b.map(e=>({...e,isBusinessTariff:!0,pricePerNightAndRoom:e.businessTravellerPricePerNightAndRoom,pricePerNightAndSingleRoom:e.businessTravellerPricePerNightAndRoom,pricePerNightAndDoubleRoom:e.businessTravellerPricePerNightAndRoom,totalPrice:e.businessTravellerTotalPrice})):b.map(e=>({...e,isBusinessTariff:!1}))),e.length>4&&p(!0)},[L,b]),(null==_?void 0:_.length)===0||x)?null:(0,n.jsxs)("section",{className:(0,c.A)(v().container,t),"aria-labelledby":"topMemberDiscountsTitle",children:[(0,n.jsx)("div",{className:v().header,children:(0,n.jsx)(s.A,{component:"h3",variant:"h6",fontWeight:"semi-bold",id:"topMemberDiscountsTitle",children:j("TopMemberDiscounts.Title")})}),(0,n.jsxs)("div",{className:v().topMemberDiscounts,children:[r&&(0,n.jsx)(l.Ay,{className:v().scrollButtonLeft,onButtonClick:()=>{k.current&&(k.current.scrollBy({left:-k.current.clientWidth-24,behavior:"smooth"}),p(!0),k.current.scrollLeft-k.current.clientWidth-24<=0&&a(!1)),u("arrow_click")},type:l.VQ.Secondary,size:l.Mp.Small,children:(0,n.jsx)(o.A,{src:i.I.chevronLeftHrs,width:24,height:24,alt:""})}),(0,n.jsxs)("ul",{id:"topMemberDiscounts",ref:k,className:v().offers,children:[_&&_.map((e,t)=>(0,n.jsx)("li",{children:(0,n.jsx)(T,{className:v().offer,offer:e,arrival:N.toDate(),departure:M.toDate(),rooms:S,index:t})},e.hotel.id)),void 0===_&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("li",{children:(0,n.jsx)("div",{className:v().offerSkeleton})}),(0,n.jsx)("li",{children:(0,n.jsx)("div",{className:v().offerSkeleton})}),(0,n.jsx)("li",{children:(0,n.jsx)("div",{className:v().offerSkeleton})}),(0,n.jsx)("li",{children:(0,n.jsx)("div",{className:v().offerSkeleton})})]})]}),h&&(0,n.jsx)(l.Ay,{className:v().scrollButtonRight,onButtonClick:()=>{k.current&&(k.current.scrollBy({left:k.current.clientWidth+24,behavior:"smooth"}),a(!0),k.current.scrollLeft+k.current.clientWidth+24>=k.current.scrollWidth-k.current.clientWidth&&p(!1)),u("arrow_click")},type:l.VQ.Secondary,size:l.Mp.Small,children:(0,n.jsx)(o.A,{src:i.I.chevronRightBlack,width:24,height:24,alt:""})})]})]})}},89801:e=>{e.exports={outlinedPill:"FavoriteButton_outlinedPill__yaheL",spinner:"FavoriteButton_spinner___xr5S",tooltip:"FavoriteButton_tooltip__OIOIE",text:"FavoriteButton_text__dEqz6"}},98723:(e,t,r)=>{"use strict";r.d(t,{A:()=>f,h:()=>b});var n=r(54568),o=r(72902),i=r(7620),l=r(97509),s=r(6157),a=r(48954),u=r(83963),c=r(55819),d=r(82913);let f=(0,i.forwardRef)((e,t)=>{var r,f,p;let{trigger:b,children:g,title:x,showClose:w=!0,showArrow:_=!0,actions:y,placement:L="bottom-left",offset:j=8,open:A,defaultOpen:T=!1,onOpenChange:E,className:k,ariaHasPopup:B="dialog",ariaLabel:I,triggerMode:N="click",panelWidth:M,variant:S="default","data-testid":C}=e,F=(0,i.useId)(),{isMobile:D}=(0,a.x)(),[R,P]=(0,i.useState)(T),O=void 0!==A,W=O?A:R,q=(0,i.useRef)(W);(0,i.useEffect)(()=>{q.current=W},[W]);let z=(0,i.useRef)(null),V=(0,i.useRef)(null),H=(0,i.useRef)(null),[K,J]=(0,i.useState)(null),Q=w&&!("hover"===N&&!D),G=(0,i.useRef)("mouse"),U=(0,i.useRef)(!1),[Z,X]=(0,i.useState)(!1),$=(0,i.useRef)(!1),Y=(0,i.useRef)(null),ee=(0,i.useRef)(null),et=(0,i.useCallback)(e=>{O||P(e),null==E||E(e)},[O,E]),er=(0,i.useCallback)(()=>{U.current=!0,et(!1),requestAnimationFrame(()=>{var e;q.current||null==(e=z.current)||e.focus(),U.current=!1})},[et]),en=(0,i.useCallback)(e=>{var t;$.current=!0,X(!0),null==(t=Y.current)||t.disconnect();let r=new MutationObserver(()=>{!document.body.contains(e)&&(r.disconnect(),Y.current=null,$.current&&($.current=!1,X(!1),requestAnimationFrame(()=>{var e;return null==(e=z.current)?void 0:e.focus()})))});r.observe(document.body,{childList:!0,subtree:!0}),Y.current=r},[]);(0,i.useEffect)(()=>()=>{var e;null==(e=Y.current)||e.disconnect()},[]),(0,i.useEffect)(()=>{if(W&&Z)return document.addEventListener("focusin",e,!0),()=>document.removeEventListener("focusin",e,!0);function e(e){var t,r,n;if(!$.current)return;let o=e.target;((null==(t=V.current)?void 0:t.contains(o))||(null==(r=H.current)?void 0:r.contains(o)))&&(null==(n=Y.current)||n.disconnect(),Y.current=null,$.current=!1,X(!1))}},[W,Z]);let eo=(0,i.useRef)(null),ei=(0,i.useCallback)(()=>{null!==eo.current&&(clearTimeout(eo.current),eo.current=null)},[]),el=(0,i.useCallback)(()=>{ei(),eo.current=setTimeout(()=>{et(!1)},100)},[ei,et]),es=(0,i.useCallback)(()=>{ei(),et(!0)},[ei,et]);(0,i.useEffect)(()=>()=>{null!==eo.current&&clearTimeout(eo.current)},[]),(0,i.useEffect)(()=>
1{if("hover"===N)return document.addEventListener("pointerdown",e,!0),()=>document.removeEventListener("pointerdown",e,!0);function e(e){G.current=e.pointerType}},[N]),(0,i.useEffect)(()=>{if(W)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e);function e(e){"Escape"===e.key&&($.current||(e.stopPropagation(),er()))}},[er,W]),(0,i.useEffect)(()=>{if(W)return document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e);function e(e){var t,r,n;if($.current)return;let o=e.target;!((null==(t=V.current)?void 0:t.contains(o))||(null==(r=H.current)?void 0:r.contains(o)))&&(null!=(n=z.current)&&n.contains(o)||er())}},[er,W]),(0,i.useEffect)(()=>{if(W&&"hover"!==N)return document.addEventListener("focusout",e,!0),()=>document.removeEventListener("focusout",e,!0);function e(e){var t,r,n,o;let i=e.relatedTarget;if(!i||(null==(t=V.current)?void 0:t.contains(i))||(null==(r=H.current)?void 0:r.contains(i))||(null==(n=z.current)?void 0:n.contains(i)))return;let l=null==(o=i.closest)?void 0:o.call(i,'[role="dialog"], [role="alertdialog"]');if(l&&l!==V.current){if(l.contains(z.current))return;en(l);return}er()}},[er,W,N,en]),(0,i.useEffect)(()=>{if(!W||D)return;let e=V.current;if(!e)return;let t="button:not([disabled]), a[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex='-1'])";function r(r){var n,o,i,l;if("Tab"!==r.key)return;let s=Array.from(e.querySelectorAll(t)).filter(e=>null!==e.offsetParent);if(document.activeElement===e){if(r.preventDefault(),r.shiftKey)null==(n=z.current)||n.focus();else if(s.length>0)s[0].focus();else{et(!1);let r=Array.from(document.querySelectorAll(t)).filter(t=>!e.contains(t)&&null!==t.offsetParent),n=r.indexOf(z.current),i=n>=0&&null!=(o=r[n+1])?o:null;requestAnimationFrame(()=>null==i?void 0:i.focus())}return}if(0===s.length)return;if(r.shiftKey&&document.activeElement===s[0]){r.preventDefault(),null==(i=z.current)||i.focus();return}if(r.shiftKey||document.activeElement!==s[s.length-1])return;r.preventDefault();let a=Array.from(document.querySelectorAll(t)).filter(t=>!e.contains(t)&&null!==t.offsetParent),u=a.indexOf(z.current),c=u>=0&&null!=(l=a[u+1])?l:null;et(!1),requestAnimationFrame(()=>null==c?void 0:c.focus())}return e.addEventListener("keydown",r),()=>e.removeEventListener("keydown",r)},[W,D,et]),(0,i.useEffect)(()=>{if(W&&"hover"===N&&!D)return document.addEventListener("focusout",e,!0),()=>document.removeEventListener("focusout",e,!0);function e(e){var t,r,n;let o=e.relatedTarget;if(!o||(null==(t=V.current)?void 0:t.contains(o))||(null==(r=z.current)?void 0:r.contains(o)))return;let i=null==(n=o.closest)?void 0:n.call(o,'[role="dialog"], [role="alertdialog"]');if(i&&i!==V.current){if(i.contains(z.current))return;en(i);return}et(!1)}},[W,N,D,et,en]),(0,i.useEffect)(()=>{if(W&&!Z)return document.addEventListener("focusin",e,!0),()=>document.removeEventListener("focusin",e,!0);function e(e){var t,r,n,o;if($.current)return;let i=e.target;if(!i||(null==(t=ee.current)?void 0:t.contains(i))||(null==(r=V.current)?void 0:r.contains(i))||(null==(n=z.current)?void 0:n.contains(i)))return;let l=null==(o=i.closest)?void 0:o.call(i,'[role="dialog"], [role="alertdialog"]');if(l&&l!==H.current&&l!==V.current){if(l.contains(z.current))return;en(l)}}},[W,Z,en]),(0,i.useLayoutEffect)(()=>{let e;if(!W||!z.current||!V.current||"none"===getComputedStyle(V.current).display)return;let t=j+8*!!_;function r(){z.current&&V.current&&J(function(e,t,r,n){let o=e.getBoundingClientRect(),i=t.getBoundingClientRect(),l=window.innerWidth,s=window.innerHeight;for(let e of[[r],r.startsWith("top")?[r.replace("top","bottom")]:r.startsWith("bottom")?[r.replace("bottom","top")]:r.startsWith("left")?[r.replace("left","right")]:[r.replace("right","left")]].flat()){let t=h(o,i,e,n);if(t.left>=8&&t.top>=8&&t.left+i.width<=l-8&&t.top+i.height<=s-8)return{...t,resolved:e}}let a=r.split("-")[0],u=h(o,i,r,n),c=Math.max("bottom"===a?o.bottom+n:8,Math.min(u.top,s-i.height-8)),d=Math.max(8,Math.min(u.left,l-i.width-8)),f=v(o,r,c,d,i);return{top:c,left:d,resolved:r,arrowOffset:f}}(z.current,V.current,L,t))}r();let n=0;function o(){n||(n=requestAnimationFrame(()=>{n=0,r()}))}return window.addEventListener("resize",o),window.addEventListener("scroll",o,{capture:!0}),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(o)).observe(V.current),()=>{n&&cancelAnimationFrame(n),window.removeEventListener("resize",o),window.removeEventListener("scroll",o,{capture:!0}),null==e||e.disconnect()}},[j,W,L,_]),(0,i.useEffect)(()=>{var e;if(!W)return;let t=null!=V.current&&"none"!==getComputedStyle(V.current).display;
1if("hover"===N&&!D&&t)return;let r=t?V.current:H.current,n=null==r?void 0:r.querySelector("button, a[href], input, select, textarea, [tabindex]:not([tabindex='-1'])");null==(e=null!=n?n:r)||e.focus()},[W,N,D]);let ea=(0,i.useRef)(W);return(0,i.useEffect)(()=>{ea.current&&!W&&"hover"!==N&&requestAnimationFrame(()=>{var e;q.current||null==(e=z.current)||e.focus()}),ea.current=W},[W,N]),(0,n.jsxs)(n.Fragment,{children:[function(e,t,r){if(!(0,i.isValidElement)(e))return e;let n=e.props.onClick,l=e.ref,s=e.props.className,a=r.className,u=Object.fromEntries(Object.entries(r).filter(e=>{let[t]=e;return"className"!==t}));return(0,i.cloneElement)(e,{...u,...s||a?{className:(0,o.A)(s,a)}:{},onClick:e=>{var t;null==n||n(e),null==(t=r.onClick)||t.call(r,e)},ref:e=>{t.current=e,"function"==typeof l?l(e):l&&"object"==typeof l&&"current"in l&&(l.current=e)}})}(b,z,{onClick:()=>{("hover"!==N||D||"touch"===G.current)&&et(!W)},...!D&&"hover"===N&&{onPointerEnter:e=>{"touch"!==e.pointerType&&es()},onPointerLeave:e=>{"touch"!==e.pointerType&&el()},onFocus:e=>{!U.current&&e.target.matches(":focus-visible")&&es()},onBlur:e=>{var t;null!=(t=V.current)&&t.contains(e.relatedTarget)||el()},onKeyDown:e=>{if("Tab"===e.key&&!e.shiftKey&&W){var t;let r=null==(t=V.current)?void 0:t.querySelector("button, a[href], input, select, textarea, [tabindex]:not([tabindex='-1'])");r&&(e.preventDefault(),r.focus())}},className:"outline-none focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-current"},...!D&&"hover"===N?{"aria-describedby":W?F:void 0}:{"aria-expanded":W,"aria-haspopup":B,"aria-controls":W?D?"".concat(F,"-sheet"):F:void 0}}),W&&"undefined"!=typeof document&&(0,l.createPortal)((0,n.jsx)(s.Ay,{disabled:!D||Z,noFocusGuards:!D||Z,autoFocus:!0,returnFocus:()=>(requestAnimationFrame(()=>{var e;return null==(e=z.current)?void 0:e.focus()}),!1),children:(0,n.jsx)("div",{ref:ee,className:(0,o.A)("fixed inset-0 z-200 md:hidden",Z&&"invisible pointer-events-none"),onClick:er,children:(0,n.jsx)("div",{className:"absolute inset-x-0 bottom-0",onClick:e=>e.stopPropagation(),children:(0,n.jsx)(c.X,{ref:H,id:"".concat(F,"-sheet"),title:x,showClose:w,onClose:er,actions:y,scrollable:!0,"data-testid":C,children:g})})})}),document.body),W&&"undefined"!=typeof document&&(0,l.createPortal)((0,n.jsxs)("div",{ref:e=>{V.current=e,"function"==typeof t?t(e):t&&(t.current=e)},id:F,role:"hover"===N?"tooltip":"menu"===B?"menu":"dialog","aria-modal":("hover"===N||"menu"===B)&&void 0,"aria-labelledby":"hover"!==N&&x?"".concat(F,"-title"):void 0,"aria-label":"hover"===N||x?void 0:I,tabIndex:"hover"===N?void 0:-1,className:(0,o.A)("outline-none","hidden md:block","fixed rounded-default z-200","hover"!==N&&(M?void 0:"min-w-60 max-w-120"),"dark"===S?"bg-container-inverse text-label-inverse":"bg-container text-default",Z&&"invisible pointer-events-none",k),style:{top:null!=(r=null==K?void 0:K.top)?r:-9999,left:null!=(f=null==K?void 0:K.left)?f:-9999,visibility:Z?void 0:K?"visible":"hidden",filter:"drop-shadow(0 2.9px 13.95px rgba(0,0,0,0.07)) drop-shadow(0 8.01px 38.57px rgba(0,0,0,0.05)) drop-shadow(0 19.29px 92.85px rgba(0,0,0,0.04)) drop-shadow(0 64px 250px rgba(0,0,0,0.02))",...M?{width:M}:{}},"data-placement":null!=(p=null==K?void 0:K.resolved)?p:L,"data-testid":C,..."hover"===N&&{onPointerEnter:e=>{"touch"!==e.pointerType&&ei()},onPointerLeave:e=>{"touch"!==e.pointerType&&el()}},children:[_&&K?(0,n.jsx)(m,{resolved:K.resolved,offset:K.arrowOffset,className:"dark"===S?"text-container-inverse":"text-container"}):null,(0,n.jsxs)("div",{className:(0,o.A)("outline-none pt-12 px-16 pb-16","hover"!==N&&"max-h-120 overflow-y-auto overflow-x-hidden"),children:[x||w?(0,n.jsxs)("div",{className:"mb-8 flex items-start justify-between gap-12",children:[x?(0,n.jsx)("div",{id:"".concat(F,"-title"),role:"heading","aria-level":3,className:(0,o.A)("m-0 text-label-md","dark"===S?"text-label-inverse":"text-headline"),children:x}):(0,n.jsx)("span",{}),Q?(0,n.jsx)(u.A,{size:"sm",icon:(0,n.jsx)(d.r,{}),"aria-label":"Close",onClick:er}):null]}):null,(0,n.jsx)("div",{className:"text-body-md text-default",children:g}),y?(0,n.jsx)("div",{className:"mt-8 flex justify-end gap-8",children:y}):null]})]}),document.body)]})});function m(e){let{resolved:t,offset:r,className:o}=e,i=t.split("-")[0],l=r-8,s={position:"absolute",pointerEvents:"none",..."bottom"===i&&{top:-8,left:l},..."top"===i&&{bottom:-8,left:l},..."right"===i&&{left:-8,top:l},..."left"===i&&{right:-8,top:l}},a={bottom:{width:16,height:8,viewBox:"0 0 16 8",d:"M0 8 L8 0 L16 8 Z"},top:{width:16,height:8,viewBox:"0 0 16 8",d:"M0 0 L8 8 L16 0 Z"},right:{width:8,height:16,viewBox:"0 0 8 16",d:"M8 0 L0 8 L8 16 Z"},left:{width:8,height:16,viewBox:"0 0 8 16",d:"M0 0 L8 8 L0 16 Z"}}[i];return(0,n.jsx)("svg",{width:a.width,height:a.height,viewBox:a.viewBox,"aria-hidden":"true",className:o,style:s,children:(0,n.jsx)("path",{d:a.d,fill:"currentColor"})})}function h(e,t,r,n){let[o,i]=r.split("-"),l=0,s=0;"top"===o&&(l=e.top-t.height-n),"bottom"===o&&(l=e.bottom+n),"left"===o&&(s=e.left-t.width-n),"right"===o&&(s=e.right+n),"top"===o||"bottom"===o?s="left"===i?e.left:"r
1ight"===i?e.right-t.width:e.left+e.width/2-t.width/2:l="top"===i?Math.min(e.top,e.top+e.height/2-24):"bottom"===i?e.bottom-t.height:e.top+e.height/2-t.height/2;let a=v(e,r,l,s,t);return{top:l,left:s,arrowOffset:a}}function v(e,t,r,n,o){let i=t.split("-")[0];return"top"===i||"bottom"===i?p(e.left+e.width/2-n,24,o.width-16-8):p(e.top+e.height/2-r,24,o.height-16-8)}function p(e,t,r){return Math.max(t,Math.min(r,e))}f.displayName="Popover";let b=f}}]);

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.