PageSourceSearch

https://relais-abbaye-site-web.vercel.app/_next/static/chunks/1809…?dpl=dpl_57QAXmq29jh8g6ra3bDQAto25Mio

js relais-abbaye-site-web.vercel.app collected 2026-10-03 07:36:23 UTC 6,588 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1809],{81809:(e,t,n)=>{n.d(t,{PricingSelector:()=>k});var r=n(83406),a=n(82558),o=n(96854),l=n(24572),s=n(21812),d=n(719);n(35639);var i=n(59252),c=n(11092),u=n(17542),m=n(34268),f=n(18382);let x="dismissable-popover:open";function b(){let e=(0,a.useId)(),[t,n]=(0,a.useState)(!1),r=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(t)return document.addEventListener("pointerdown",a),document.addEventListener("keydown",o),document.addEventListener(x,l),()=>{document.removeEventListener("pointerdown",a),document.removeEventListener("keydown",o),document.removeEventListener(x,l)};function a(e){r.current&&!r.current.contains(e.target)&&n(!1)}function o(e){"Escape"===e.key&&n(!1)}function l(t){let{id:r}=t.detail;r!==e&&n(!1)}},[t,e]),{open:t,setOpen:function(r){let a="function"==typeof r?r(t):r;a&&!t&&document.dispatchEvent(new CustomEvent(x,{detail:{id:e}})),n(a)},ref:r}}var p=n(4458);function h(){let e=(0,o.c)("rooms.pricing"),t=(0,l.Ym)(),{arrival:n,departure:x,setArrival:h,setDeparture:v}=(0,f.e)(),{open:y,setOpen:w,ref:j}=b(),k=(0,a.useRef)(null),g=(0,a.useRef)(null),N=(0,a.useRef)(null),E=(0,a.useRef)(!1),[_,C]=(0,a.useState)(()=>({from:(0,p.p5)(n),to:(0,p.p5)(x)})),A=new Date;A.setHours(0,0,0,0);let R=(0,p.K2)(A),L=(0,s.a)(),S=window.innerWidth>=768;return(0,a.useEffect)(()=>{var e,t,n,r;y?(E.current=!0,S||null==(e=g.current)||e.focus()):E.current&&(E.current=!1,(document.activeElement===document.body||null!=(n=null==(t=j.current)?void 0:t.contains(document.activeElement))&&n)&&(null==(r=k.current)||r.focus()))},[y,S]),(0,a.useEffect)(()=>{if(!y||S)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[y,S]),(0,r.jsxs)("div",{ref:j,className:"relative",children:[(0,r.jsxs)("button",{ref:k,type:"button",onClick:function(){C({from:(0,p.p5)(n),to:(0,p.p5)(x)}),w(!0)},"aria-haspopup":"dialog","aria-expanded":y,className:"flex items-center gap-2.5 text-sm text-left rounded-lg border border-ink/15 bg-cream-50 px-3 py-2 min-w-[220px] shadow-sm hover:border-ink/35 hover:shadow transition-all",children:[(0,r.jsx)(u.A,{className:"h-4 w-4 text-ink/40 shrink-0","aria-hidden":!0}),(0,r.jsxs)("span",{className:"flex flex-col",children:[(0,r.jsxs)("span",{className:"text-ink/60 mb-0.5 text-xs",children:[e("arrival")," → ",e("departure")]}),(0,r.jsx)("span",{className:"text-ink font-medium",children:(0,p.t1)(n,x,t)})]})]}),(0,r.jsx)(i.N,{children:y&&(0,r.jsxs)(c.P.div,{ref:N,onKeyDown:function(e){if(S||"Tab"!==e.key||!N.current)return;let t=Array.from(N.current.querySelectorAll("button, [href], input, select, textarea, [tabindex]")).filter(e=>!e.hasAttribute("disabled")&&-1!==e.tabIndex);if(0===t.length)return;let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):e.shiftKey||document.activeElement!==r||(e.preventDefault(),n.focus())},role:S?void 0:"dialog","aria-modal":!S||void 0,"aria-label":S?void 0:"".concat(e("arrival")," → ").concat(e("departure")),initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.15},className:" fixed inset-0 z-50 flex flex-col overflow-y-auto bg-cream p-4 md:absolute md:inset-auto md:top-full md:mt-2 md:z-40 md:w-auto md:rounded-2xl md:border md:border-ink/10 md:bg-cream md:p-4 md:shadow-xl ",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2 md:hidden",children:[(0,r.jsxs)("span",{className:"font-medium",children:[e("arrival")," → ",e("departure")]}),(0,r.jsx)("button",{ref:g,type:"button",onClick:()=>w(!1),"aria-label":e("close"),className:"p-2",children:(0,r.jsx)(m.A,{className:"h-5 w-5"})})]}),(0,r.jsx)(d.h,{mode:"range",locale:(0,p.Me)(t),numberOfMonths:S?2:1,selected:_,onSelect:function(e,t){let n=(0,p.rF)(_,t);C(n),n.from&&n.to&&(h((0,p.Xj)(n.from)),v((0,p.Xj)(n.to)),w(!1))},disabled:{before:A},startMonth:A,endMonth:R,classNames:{root:L.root,day:"".concat(L.day," rounded-md"),selected:"".concat(L.selected," bg-rouille text-cream"),range_start:"".concat(L.range_start," bg-rouille text-cream rounded-l-md"),range_middle:"".concat(L.range_middle," bg-rouille/15"),range_end:"".concat(L.range_end," bg-rouille text-cream rounded-r-md"),today:"".concat(L.today," font-bold text-rouille"),disabled:"".concat(L.disabled," text-ink/25"),chevron:"".concat(L.chevron," fill-ink")}})]})})]})}
1var v=n(38376),y=n(84100),w=n(47740);function j(){let e=(0,o.c)("rooms.pricing"),{occupants:t,setOccupants:n}=(0,f.e)(),{open:l,setOpen:s,ref:d}=b(),i=(0,a.useRef)(null),c=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if(l)c.current=!0;else if(c.current){var e,t,n;c.current=!1,(document.activeElement===document.body||null!=(t=null==(e=d.current)?void 0:e.contains(document.activeElement))&&t)&&(null==(n=i.current)||n.focus())}},[l]),(0,r.jsxs)("div",{ref:d,className:"relative",children:[(0,r.jsxs)("button",{ref:i,type:"button",onClick:()=>s(e=>!e),"aria-haspopup":"dialog","aria-expanded":l,className:"flex items-center gap-2.5 text-sm text-left rounded-lg border border-ink/15 bg-cream-50 px-3 py-2 shadow-sm hover:border-ink/35 hover:shadow transition-all",children:[(0,r.jsx)(v.A,{className:"h-4 w-4 text-ink/40 shrink-0","aria-hidden":!0}),(0,r.jsxs)("span",{className:"flex flex-col",children:[(0,r.jsx)("span",{className:"text-ink/60 mb-0.5 text-xs",children:e("occupants")}),(0,r.jsx)("span",{className:"text-ink font-medium",children:e("occupantsCount",{count:t})})]})]}),l&&(0,r.jsxs)("div",{className:"absolute top-full mt-2 z-40 flex items-center gap-4 roun
1ded-2xl border border-ink/10 bg-cream p-4 shadow-xl",children:[(0,r.jsx)("button",{type:"button","aria-label":e("decreaseOccupants"),disabled:t<=1,onClick:()=>n(t-1),className:"flex h-8 w-8 items-center justify-center rounded-full border border-ink/30 disabled:opacity-30 disabled:cursor-not-allowed hover:border-ink",children:(0,r.jsx)(y.A,{className:"h-4 w-4"})}),(0,r.jsx)("span",{"aria-live":"polite",className:"w-4 text-center font-medium",children:t}),(0,r.jsx)("button",{type:"button","aria-label":e("increaseOccupants"),disabled:t>=4,onClick:()=>n(t+1),className:"flex h-8 w-8 items-center justify-center rounded-full border border-ink/30 disabled:opacity-30 disabled:cursor-not-allowed hover:border-ink",children:(0,r.jsx)(w.A,{className:"h-4 w-4"})})]})]})}function k(){return(0,r.jsxs)("div",{className:"flex flex-wrap items-start justify-center gap-4 rounded-2xl bg-cream border border-ink/10 px-6 py-5 mb-16 max-w-2xl mx-auto",children:[(0,r.jsx)(h,{}),(0,r.jsx)(j,{})]})}}}]);

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.