PageSourceSearch

https://www.hrs.com/_next/static/chunks/61063-ff8239e0f1773e1b.js?dpl=dpl_9iDdr5MT7qwppHi4eF9XC79FtQRt

js hrs.com collected 2026-09-24 17:41:22 UTC 17,046 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[61063],{59937:(e,t,l)=>{l.d(t,{r:()=>i});var a,n=l(7620);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}var r=(0,n.forwardRef)(function(e,t){return n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",ref:t},e),a||(a=n.createElement("path",{fill:"currentColor",d:"M10.176 2.001a.904.904 0 0 1 .777 1.435 5.8 5.8 0 0 0-1.125 3.115 5.7 5.7 0 0 0 .786 3.193 6.5 6.5 0 0 0 2.507 2.407 7.4 7.4 0 0 0 3.55.895h.001c.114 0 .218-.007.383-.014a.904.904 0 0 1 .772 1.435 8.5 8.5 0 0 1-3.255 2.664 9.24 9.24 0 0 1-4.218.864 9.2 9.2 0 0 1-4.145-1.13 8.34 8.34 0 0 1-3.052-2.87A7.56 7.56 0 0 1 2 10.079a7.54 7.54 0 0 1 1.069-3.94 8.3 8.3 0 0 1 2.987-2.929 9.15 9.15 0 0 1 4.12-1.209M8.538 4.1a7.2 7.2 0 0 0-1.575.675 6.5 6.5 0 0 0-2.34 2.287 5.73 5.73 0 0 0-.815 2.996 5.75 5.75 0 0 0 .884 2.98 6.5 6.5 0 0 0 2.392 2.245 7.4 7.4 0 0 0 3.327.905 7.4 7.4 0 0 0 3.392-.693 7 7 0 0 0 1.271-.778 9.1 9.1 0 0 1-2.822-.981 8.3 8.3 0 0 1-3.2-3.08 7.53 7.53 0 0 1-1.03-4.202c.044-.81.22-1.603.516-2.354"})))});let i=(0,l(10600).w)(r,"MoonIcon")},61063:(e,t,l)=>{l.d(t,{_:()=>j});var a=l(54568),n=l(72902),s=l(7620),r=l(55819),i=l(91935),o=l(4141),d=l(75087),c=l(78800);let u=e=>1e4*e.getFullYear()+100*e.getMonth()+e.getDate(),m=(e,t)=>!!e&&!!t&&u(e)===u(t),x=(e,t)=>!!e&&!!t&&u(e)===u(t)&&e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes(),f=(e,t)=>u(e)<u(t),h=(e,t)=>u(e)>u(t),p=e=>new Date(e.getFullYear(),e.getMonth(),1),g=(e,t)=>new Date(e.getFullYear(),e.getMonth()+t,1),b=(e,t)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()+t),v=e=>(e.getDay()+6)%7;function j(e){var t,l,j;let{value:w,defaultValue:y,timeValues:N,defaultTimeValues:k,onChange:D,onApply:A,onClear:C,onClose:M,revertOnOutsideClick:F=!0,layout:S="modal",mode:E="range",showActionBar:z=!0,timePerDay:R=!1,timePerDayMonths:I=1,timeOptions:L,defaultStartTime:Y="09:00",defaultEndTime:T="18:00",timePanelTitle:U="When do you plan to meet?",min:H,max:O,maxNights:_,disablePastDates:P=!0,disabledDates:B,defaultMonth:K,monthsInSheet:q=12,locale:W="en-US",title:V="Calendar",checkInLabel:X="Check-in",checkOutLabel:G="Check-out",dateLabel:J="Date",clearLabel:Q="Clear dates",applyLabel:Z="Apply",nextLabel:$="Next",backLabel:ee="Back",nightsLabel:et,durationUnit:el="nights",showDurationIcon:ea,hideSummary:en,id:es,className:er}=e,ei=null!=ea?ea:"days"!==el,eo=(0,s.useId)(),ed=null!=es?es:"calendar-".concat(eo),ec=new Date,eu="single"===E,em=void 0!==w,[ex,ef]=(0,s.useState)(null!=y?y:eu?{start:ec,end:null}:{start:ec,end:b(ec,1)}),eh=em?w:ex,ep="".concat(eh.start?u(eh.start):"∅",":").concat(eh.end?u(eh.end):"∅"),[eg,eb]=(0,s.useState)(eh),ev=eg.start,ej=(0,s.useMemo)(()=>void 0!==_&&ev?b(ev,_):O,[_,ev,O]),[ew,ey]=(0,s.useState)(()=>{let e=null!=N?N:k;return e?e.reduce((e,t)=>{let{date:l,from:a,to:n}=t;return e[u(l)]={from:a,to:n},e},{}):{}}),[eN,ek]=(0,s.useState)("dates"),eD=(0,s.useRef)(null),eA=(0,s.useRef)(null),eC=(0,s.useRef)(!1);(0,s.useEffect)(()=>{eb(eh),ek("dates"),eh.start&&(eC.current||!K)&&eF(p(eh.start)),eC.current=!0},[ep]),(0,s.useEffect)(()=>{N&&ey(N.reduce((e,t)=>{let{date:l,from:a,to:n}=t;return e[u(l)]={from:a,to:n},e},{}))},[N]);
1let[eM,eF]=(0,s.useState)(p(null!=(t=null!=K?K:eh.start)?t:ec)),[eS,eE]=(0,s.useState)(null),[ez,eR]=(0,s.useState)(null!=(j=null!=(l=eh.start)?l:K)?j:ec),eI="modal-compact"===S,eL="modal"===S||"modal-compact"===S||R,eY=R?I:2,eT=eI?"h-42":"h-48",eU=eI?"size-32":"size-36",eH=eI?"h-[34px]":"h-[38px]",eO=eI?"h-[34px] w-[34px]":"h-[38px] w-[38px]",e_=eI?"w-[252px]":"w-[308px]",eP=p(null!=K?K:ec),eB=function(e){let t=new Intl.DateTimeFormat(e,{weekday:"short"});return Array.from({length:7},(e,l)=>t.format(new Date(2024,0,1+l)))}(W),eK=new Intl.DateTimeFormat(W,{month:"long",year:"numeric"}),eq=new Intl.DateTimeFormat(W,{day:"numeric",month:"short"}),eW=new Intl.DateTimeFormat(W,{weekday:"long",day:"numeric",month:"long",year:"numeric"}),eV=(0,s.useMemo)(()=>null!=L?L:Array.from({length:48},(e,t)=>{let l=String(Math.floor(t/2)).padStart(2,"0");return"".concat(l,":").concat(t%2?"30":"00")}),[L]),eX=(0,s.useMemo)(()=>eV.map(e=>({value:e,label:e})),[eV]),eG=(0,s.useMemo)(()=>{var e;return new Set(null!=(e=null==B?void 0:B.map(u))?e:[])},[B]),eJ=null!=H?H:P?ec:void 0,eQ=e=>eG.has(u(e))||!!eJ&&f(e,eJ)||!!ej&&h(e,ej),eZ=eJ?p(eJ):null,e$=ej?p(ej):null,e0=!eZ||h(p(eM),eZ),e1=!e$||f(g(p(eM),eY-1),e$),e2=!!(eg.start&&eg.end&&!x(eg.start,eg.end)),e4=eu?!!eg.start:!!(eg.start&&eg.end),e5=eu?!!eg.start:!!(eg.start&&eg.end),e7=(e,t)=>{em||ef(e),null==D||D(e),null==A||A(e,t)},e3=e=>{let t;if(!eQ(e)){var l;if(eR(e),eu)t=R?{start:e,end:e}:{start:e,end:null};else{let{start:l,end:a}=eg,n=!!(l&&a&&!x(l,a));t=!l||n||m(e,l)?{start:e,end:e}:h(e,l)?{start:l,end:e}:{start:e,end:l}}eb(t),l=t,!z&&!R&&(eu?l.start:l.start&&l.end&&!m(l.start,l.end))&&(e7(l),null==M||M())}},e8=(0,s.useMemo)(()=>{if(eu)return eg.start?[eg.start]:[];if(!eg.start||!eg.end||h(eg.start,eg.end))return[];let e=[];for(let t=eg.start;u(t)<=u(eg.end);t=b(t,1))e.push(t);return e},[eu,eg.start&&u(eg.start),eg.end&&u(eg.end)]),e6=e=>{var t;return null!=(t=ew[u(e)])?t:{from:Y,to:T}},e9=()=>{e4&&e7(eg,R?e8.map(e=>({date:e,...e6(e)})):void 0)},te=()=>{eb({start:null,end:null}),ey({}),null==C||C()};(0,s.useEffect)(()=>{if(!F)return;let e=e=>{var t;let l=e.target;!(!eD.current||eD.current.contains(l))&&((null==(t=l.closest)?void 0:t.call(l,'[role="listbox"]'))||(eb(eh),null==M||M()))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[F,ep,M]);let tt=eu?null:e2?eg.end:eg.start&&eS&&!m(eS,eg.start)?eS:null,tl=!!(eg.start&&tt&&h(eg.start,tt)),ta=tl?tt:eg.start,tn=tl?eg.start:tt,ts=!eu&&!!(ta&&tn&&!m(ta,tn)),tr=e=>{let t;if("ArrowRight"===e.key)t=b(ez,1);else if("ArrowLeft"===e.key)t=b(ez,-1);else if("ArrowDown"===e.key)t=b(ez,7);else if("ArrowUp"===e.key)t=b(ez,-7);else if("Home"===e.key)t=b(ez,-v(ez));else if("End"===e.key)t=b(ez,6-v(ez));else if("PageUp"===e.key)t=g(ez,-1);else if("PageDown"===e.key)t=g(ez,1);else if("Enter"===e.key||" "===e.key){e.preventDefault(),e3(ez);return}if(t){e.preventDefault();var l=t;if(eR(l),eL){let e=g(eM,eY-1);f(l,p(eM))?eF(p(l)):h(p(l),e)&&eF(g(p(l),-(eY-1)))}requestAnimationFrame(()=>{var e,t;return null==(t=eA.current)||null==(e=t.querySelector('[data-focus="true"]'))?void 0:e.focus()})}},ti=(e,t,l)=>(0,a.jsxs)("div",{className:"flex h-42 items-center justify-between px-4",children:[t?(0,a.jsx)("button",{type:"button",onClick:()=>eF(g(eM,-1)),"aria-label":"Previous month",className:"inline-flex size-icon-sm items-center justify-center rounded-2 text-icon-default appearance-none border-0 bg-transparent p-0 focus-visible:outline-solid focus-visible:outline-medium focus-visible:outline-offset-thin focus-visible:outline-default",children:(0,a.jsx)(c.Y,{size:20})}):(0,a.jsx)("span",{className:"size-icon-sm","aria-hidden":!0}),(0,a.jsx)("span",{className:"text-label-md text-default",children:eK.format(e)}),l?(0,a.jsx)("button",{type:"button",onClick:()=>eF(g(eM,1)),"aria-label":"Next month",className:"inline-flex size-icon-sm rotate-180 items-center justify-center rounded-2 text-icon-default appearance-none border-0 bg-transparent p-0 focus-visible:outline-solid focus-visible:outline-medium focus-visible:outline-offset-thin focus-visible:outline-default",children:(0,a.jsx)(c.Y,{size:20})}):(0,a.jsx)("span",{className:"size-icon-sm","aria-hidden":!0})]}),to=(e,t)=>
1(0,a.jsxs)("div",{role:"grid","aria-label":eK.format(e),className:t,children:[(0,a.jsx)("div",{role:"row",className:"grid grid-cols-7",children:eB.map((e,t)=>(0,a.jsx)("div",{role:"columnheader","aria-label":e,className:(0,n.A)("flex h-32 items-center justify-center text-caption-md-semibold text-default",t>=5&&"bg-container-subtle"),children:e},e))}),(function(e){let t=p(e),l=new Date(e.getFullYear(),e.getMonth()+1,0),a=b(t,-v(t)),n=[];do{let e=[];for(let t=0;t<7;t++)e.push(a),a=b(a,1);n.push(e)}while(u(a)<=u(l));return n})(e).map((t,l)=>(0,a.jsx)("div",{role:"row",className:"grid grid-cols-7",children:t.map(t=>{let l=t.getMonth()===e.getMonth(),s=v(t)>=5;if(!l)return(0,a.jsx)("div",{role:"gridcell","aria-hidden":!0,className:(0,n.A)("grid place-items-center",eT,s&&"bg-container-subtle")},u(t));let r=eQ(t),i=m(t,ta),o=m(t,tn),d=ts&&h(t,ta)&&f(t,tn),c=ts&&(i||o||d),x=i||o,p=m(t,ec),g=m(t,ez);return(0,a.jsxs)("button",{type:"button",role:"gridcell","data-focus":g||void 0,disabled:r,"aria-disabled":r||void 0,"aria-selected":x||void 0,"aria-label":eW.format(t),tabIndex:g?0:-1,onClick:()=>e3(t),onMouseEnter:()=>!eu&&eE(t),className:(0,n.A)("group relative grid place-items-center outline-none appearance-none border-0 p-0",eT,c&&"bg-active-subtle",c&&i&&"rounded-l-full",c&&o&&"rounded-r-full",!c&&s&&"bg-container-subtle",!c&&!s&&"bg-transparent",r?"cursor-not-allowed":"cursor-pointer"),children:[c?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{"aria-hidden":!0,className:(0,n.A)("pointer-events-none absolute top-1/2 -translate-y-1/2 bg-active-subtle",eH,i&&!o?"left-1/2 right-0":o&&!i?"left-0 right-1/2":"inset-x-0")}),i||o?(0,a.jsx)("span",{"aria-hidden":!0,className:(0,n.A)("pointer-events-none absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-active-subtle",eO)}):null]}):null,(0,a.jsx)("span",{className:(0,n.A)("relative grid place-items-center rounded-full text-body-md",eU,"group-focus-visible:outline-solid group-focus-visible:outline-medium group-focus-visible:outline-offset-thin group-focus-visible:outline-default",x?"bg-prominent font-semibold text-prominent-text":r?"text-disabled":"text-default",p&&!x&&"border border-border-medium"),children:t.getDate()})]},u(t))})},l))]}),td=function(e,t,l){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(o.l,{size:"sm",fullWidth:!0,native:n,"aria-label":l,options:eX,value:e6(e)[t],onValueChange:l=>ey(a=>({...a,[u(e)]:{...e6(e),[t]:l}}))})})},tc=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,a.jsxs)("div",{className:(0,n.A)("flex flex-col bg-container-subtle pt-8",e?"w-full flex-1":"w-[320px]"),children:[(0,a.jsx)("div",{className:"flex h-42 items-center px-16",children:(0,a.jsx)("span",{className:"text-label-sm text-default",children:U})}),(0,a.jsx)("div",{className:(0,n.A)("flex flex-col gap-12 px-16 pb-16 pt-1",e?"":"max-h-[320px] overflow-y-auto"),children:e8.map(t=>(0,a.jsxs)("div",{className:"flex items-center gap-16",children:[(0,a.jsx)("span",{className:"w-[52px] shrink-0 whitespace-nowrap text-label-md-regular text-subtle",children:eq.format(t)}),td(t,"from","".concat(eq.format(t)," from"),e),td(t,"to","".concat(eq.format(t)," to"),e)]},u(t)))})]})},tu=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,a.jsx)("div",{className:(0,n.A)("border-b border-border-subtle bg-container px-12 py-16",e&&"sticky top-0 z-10"),children:(0,a.jsx)(i.j,{value:eg,mode:E,checkInLabel:X,checkOutLabel:G,dateLabel:J,nightsLabel:et,durationUnit:el,showDurationIcon:ei,locale:W})})},tm=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.R,{variant:"secondary",onClick:te,children:Q}),(0,a.jsx)(d.R,{variant:"primary",disabled:!e4,onClick:e9,children:Z})]});if("bottom-sheet"===S){let e=R?"dates"===eN?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.R,{variant:"secondary",onClick:te,children:Q}),(0,a.jsx)(d.R,{variant:"primary",disabled:!e5,onClick:()=>ek("times"),children:$})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.R,{variant:"secondary",onClick:()=>ek("dates"),children:ee}),(0,a.jsx)(d.R,{variant:"primary",disabled:!e4,onClick:e9,children:Z})]}):tm;return(0,a.jsx)(r.X,{id:ed,open:!0,modal:!0,scrollable:!0,showDragHandle:!0,swipeToClose:!0,showClose:!!M,padding:"none","aria-label":"string"==typeof V?V:"
1Calendar",onClose:()=>{eb(eh),null==M||M()},style:{maxHeight:"90vh"},actions:R||z?e:void 0,children:R&&"times"===eN?tc(!0):(0,a.jsxs)(a.Fragment,{children:[tu(!0),(0,a.jsx)("div",{ref:eA,onKeyDown:tr,onMouseLeave:()=>eE(null),className:"flex flex-col bg-surface",children:Array.from({length:q},(e,t)=>{let l=g(eP,t);return(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("div",{className:"flex h-42 items-center bg-container-high px-16",children:(0,a.jsx)("span",{className:"text-label-md text-subtle",children:eK.format(l)})}),(0,a.jsx)("div",{className:"px-12",children:to(l,"w-full")})]},t)})})]})})}return(0,a.jsxs)("div",{id:ed,ref:eD,className:(0,n.A)("inline-flex w-auto flex-col overflow-clip rounded-16 bg-container shadow-popover",er),children:[R||en?null:tu(),R?(0,a.jsxs)("div",{className:"flex bg-surface",children:[(0,a.jsx)("div",{ref:eA,onKeyDown:tr,onMouseLeave:()=>eE(null),className:(0,n.A)("flex flex-row",eI?"px-8 py-4":"px-12 py-8",eY>1&&(eI?"gap-4":"gap-8")),children:Array.from({length:eY},(e,t)=>{let l=g(eM,t);return(0,a.jsxs)("div",{className:"flex flex-col",children:[ti(l,0===t&&e0,t===eY-1&&e1),to(l,e_)]},t)})}),(0,a.jsx)("div",{className:"flex border-l border-border-subtle",children:tc()})]}):(0,a.jsx)("div",{ref:eA,onKeyDown:tr,onMouseLeave:()=>eE(null),className:(0,n.A)("flex flex-row bg-surface",eI?"gap-4 px-8 py-4":"gap-8 px-12 py-8"),children:[0,1].map(e=>{let t=g(eM,e);return(0,a.jsxs)("div",{className:"flex flex-col",children:[ti(t,0===e&&e0,1===e&&e1),to(t,e_)]},e)})}),z?(0,a.jsx)("div",{className:"flex items-center justify-end gap-8 border-t border-border-subtle p-24",children:tm}):null]})}j.displayName="BookingCalendar"},91935:(e,t,l)=>{l.d(t,{j:()=>o});var a=l(54568),n=l(72902),s=l(59937);let r=e=>1e4*e.getFullYear()+100*e.getMonth()+e.getDate(),i=(e,t)=>!!e&&!!t&&r(e)===r(t);function o(e){let t,l,{value:r,mode:o="range",checkInLabel:d="Check-in",checkOutLabel:c="Check-out",dateLabel:u="Date",nightsLabel:m,durationUnit:x="nights",showDurationIcon:f=!0,locale:h="en-US",placeholder:p="—",compactCombinedDuration:g=!1,dense:b=!1,gap:v="lg",className:j}=e,w=new Intl.DateTimeFormat(h,{weekday:"short",day:"numeric",month:"short"}),y=!!(r.start&&r.end&&!i(r.start,r.end)),N=y?(t=r.start,Math.round((Date.UTC((l=r.end).getFullYear(),l.getMonth(),l.getDate())-Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()))/864e5)):0,k="days"===x,D=y&&k?N+1:N,A=null!=m?m:e=>k?"".concat(e," ").concat(1===e?"day":"days"):"".concat(e," ").concat(1===e?"night":"nights");if("combined"===o){let{start:e,end:t}=r,l=!!e&&(!t||i(e,t)),s=e?l?w.format(e):"".concat(w.format(e)," - ").concat(w.format(t)):p,o=e?A(l?1:D):null;return(0,a.jsxs)("div",{className:(0,n.A)("flex min-w-0 flex-col gap-4",j),children:[(0,a.jsx)("span",{className:"text-label-sm text-label",children:u}),g&&o?(0,a.jsxs)("span",{className:"flex flex-wrap items-baseline gap-4 text-default",children:[(0,a.jsx)("span",{className:"text-subheading-sm-semibold",children:s}),(0,a.jsx)("span",{className:"text-caption-md-semibold",children:o})]}):(0,a.jsxs)("span",{className:"text-subheading-sm-semibold text-default",children:[s,o?" (".concat(o,")"):""]})]})}if("single"===o)return(0,a.jsxs)("div",{className:(0,n.A)("flex flex-col gap-4",j),children:[(0,a.jsx)("span",{className:"text-label-sm text-label",children:u}),(0,a.jsx)("span",{className:"whitespace-nowrap text-subheading-sm-semibold text-default",children:r.start?w.format(r.start):p})]});let C=(e,t)=>{let l=e?w.format(e):p,s=l.indexOf(" "),r=-1===s?l:l.slice(0,s),i=-1===s?"":l.slice(s+1);return(0,a.jsxs)("span",{className:(0,n.A)("flex gap-x-1 text-subheading-sm-semibold text-default @max-[272px]/dsd:flex-col","end"===t&&"justify-end text-right @max-[272px]/dsd:items-end"),children:[(0,a.jsx)("span",{className:"whitespace-nowrap",children:r}),i&&(0,a.jsx)("span",{className:"whitespace-nowrap @max-[272px]/dsd:whitespace-normal",children:i})]})};return(0,a.jsxs)("div",{className:(0,n.A)("flex w-full items-end",b?"gap-8 @container/dsd":"none"===v?void 0:"gap-36",j),children:[(0,a.jsxs)("div",{className:(0,n.A)("flex min-w-0 flex-1 flex-col gap-4",!b&&"overflow-clip"),children:[(0,a.jsx)("span",{className:"text-label-sm text-label",children:d}),b?C(r.start,"start"):(0,a.jsx)("span",{className:"whitespace-nowrap text-subheading-sm-semibold text-default",children:r.start?w.format(r.start):p})]}),(0,a.jsxs)("div",{className:(0,n.A)("flex flex-col items-center gap-4 px-4",b?"w-[56px]":"none"===v?"w-[64px]":"w-[72px]",!y&&"invisible"),children:[f&&(0,a.jsx)(s.r,{size:20,className:"text-icon-default"}),(0,a.jsx)("span",{className:"text-caption-md-semibold text-default",children:A(D)})]}),(0,a.jsxs)("div",{className:(0,n.A)("flex min-w-0 flex-1 flex-col items-end gap-4",!b&&"overflow-clip"),children:[(0,a.jsx)("span",{className:"text-label-sm text-label",children:c}),b?C(r.end,"end"):(0,a.jsx)("span",{className:"w-full whitespace-nowrap text-subheading-sm-semibold text-default text-right",children:r.end?w.format(r.end):p})]})]})}}}]);

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.