1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4052],{24052:(e,t,n)=>{n.r(t),n.d(t,{default:()=>x});var l=n(37876),o=n(31219),i=n(37094);n(14232);var d=n(57220),c=n(46424),r=n(44396),s=n(96859);let x=({closeModal:e})=>{let{t}=(0,i.Bd)(),{modalParams:n}=(0,r.Ay)(),{cancelPolicy:x}=n;return(0,c.A)({escapeCallback:e}),(0,l.jsx)(s.Ay,{headerTitle:(0,d.Ve)(t,x.name),headerTitleVariant:"lg",onClose:e,closeText:t("common:close"),size:"sm",children:(0,l.jsx)(o.VStack,{mx:["16px","16px","16px","24px"],mb:["24px","24px","24px","24px"],spacing:"12px",children:(0,l.jsx)(o.Text,{variant:"paragraphM",children:(0,d.ft)(t,x)})})})}},46424:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(14232);let o=({escapeCallback:e,skip:t=!1})=>{(0,l.useEffect)(()=>{let n=n=>{"Escape"!==n.key||t||e()};return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}},[e,t])}},57220:(e,t,n)=>{function l(e){let t=e.bookingCheckout?.campsite,n=t?.campgroundSetting?.cancelPolicy;return n?{name:n.name??null,slug:n.slug??null,description:n.description??null}:null}function o(e,t){return t?e("common:cancelPolicy.dynamicTitle",{policyName:t}):e("common:cancelPolicy.title")}function i(e,t){return(t?.slug?e(`common:cancelPolicy.description.${t.slug}`,{defaultValue:""}):"")||t?.description||e("common:cancelPolicy.fallback")}n.d(t,{Ve:()=>o,ft:()=>i,o8:()=>l})},83308:(e,t,n)=>{n.d(t,{A:()=>i});var l=n(37876),o=n(31219);n(14232);let i=({orientation:e="horizontal",secondaryContent:t,primaryContent:n,hasDivider:i})=>(0,l.jsxs)(l.Fragment,{children:[i&&(0,l.jsx)(o.Divider,{}),(0,l.jsx)(o.Box,{width:"100%",backgroundColor:"white",borderBottomRightRadius:[null,null,null,"16px"],borderBottomLeftRadius:[null,null,null,"16px"],children:"vertical"===e?(0,l.jsxs)(o.VStack,{spacing:"12px",paddingX:["16px","16px","16px","24px"],py:"16px",width:"100%",alignItems:"center",children:[n,t]}):(0,l.jsxs)(o.Box,{display:"flex",paddingY:"16px",paddingX:["16px","16px","16px","24px"],width:"100%",justifyContent:"center",alignItems:"center",children:[(0,l.jsx)(o.Box,{flex:2,children:t}),(0,l.jsx)(o.Box,{justifyContent:"flex-end",children:n})]})})]})},96859:(e,t,n)=>{n.d(t,{Op:()=>f,Ay:()=>b});var l=n(37876),o=n(93674),i=n.n(o),d=n(31219),c=n(14232),r=n(27814),s=n(83308);let x=({onClick:e,closeText:t,icon:n})=>(0,l.jsx)(d.Button,{"aria-label":t,type:"button",color:"text",size:"sm",rounded:!0,onClick:e,children:n||(0,l.jsx)(i(),{})}),a=({headerTitle:e="",headerTitleVariant:t="sm",onHeaderClick:n,onClose:o,closeText:i,headerIcon:c})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.Box,{mx:["16px","16px","16px","24px"],children:(0,l.jsx)(d.Header,{title:e,titleVariant:t,hideActionBarDivider:!0,headerLocation:"dialog",actionType:"button",leftAction:(0,l.jsx)(x,{onClick:n||o,closeText:i,icon:c})})}),"sm"===t&&(0,l.jsx)(d.Divider,{})]});var u=n(48497);let p=0,h=0,m=()=>{r.S$||0==--p&&(document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.paddingRight="",document.body.style.overflow="",window.scrollTo(0,h))},y={sm:"480px",md:"720px",lg:"1024px",full:"100%"},f=40,g=({onClose:e,closeText:t})=>(0,l.jsx)(d.Control,{onClick:e,"aria-label":t,position:"fixed",zIndex:u.A.sheetControl,width:"100%",style:{pointerEvents:"auto",touchAction:"none"},children:(0,l.jsx)(d.Box,{bg:"brand2.500",width:"100%",height:"100vh",opacity:"0.5"})}),b=({headerTitle:e,customHeader:t,headerTitleVariant:n="sm",headerIcon:o=(0,l.jsx)(i(),{}),size:x="md",autoWidth:b,closeText:v,onClose:j,onHeaderClick:w,footerProps:k,fullHeightSheet:B,alwaysFullHeight:C=!1,id:A,children:$})=>{if((0,c.useEffect)(()=>{if(!r.S$&&1==++p){let e=window.innerWidth-document.documentElement.clientWidth;h=window.scrollY,document.body.style.position="fixed",document.body.style.top=`-${h}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.paddingRight=`${e}px`,document.body.style.overflow="hidden"}return m},[]),r.S$)return null;let E="100%",T=`calc(100vh - ${f+80}px)`,R=B?[E,E,E,T]:`calc(100vh - ${f+80}px)`,S=C?`calc(100dvh - ${f}px)`:`calc(100dvh - ${2*f}
1px)`,V=B?[null,null,null,"16px"]:"16px",z=b?"auto":["100%","100%","100%",`calc(100vw - ${2*f}px)`],I=b?"100%":["100%","100%","100%",`${y[x]}`];return(0,l.jsxs)(d.Box,{position:"fixed",top:0,bottom:0,left:0,right:0,zIndex:u.A.sheetOverlay,display:"flex",justifyContent:"center",alignItems:["flex-end","flex-end","flex-end","center"],style:{pointerEvents:"none"},children:[(0,l.jsx)(g,{onClose:j,closeText:v}),(0,l.jsx)(d.Box,{role:"dialog",width:z,maxWidth:I,height:B?["100%","100%","100%","auto"]:"auto",zIndex:u.A.sheet,style:{pointerEvents:"auto"},children:(0,l.jsxs)(d.Box,{bg:"white",boxShadow:"elevationLarge",borderTopLeftRadius:V,borderTopRightRadius:V,borderRadius:[null,null,null,"16px"],overflow:"hidden",height:B?C?R:[E,E,E,"fit-content"]:"fit-content",maxHeight:B?[E,E,E,S]:[R,R,R,S],display:"flex",flexDirection:"column",children:[(t||e)&&(0,l.jsx)(d.Box,{style:{flexShrink:0,touchAction:"none"},children:t||(0,l.jsx)(a,{headerTitle:e,headerTitleVariant:n,onHeaderClick:w,onClose:j,closeText:v,headerIcon:o})}),(0,l.jsx)(d.Box,{overflowY:"auto",id:A,style:{flex:"1 1 0%",minHeight:0,WebkitOverflowScrolling:"touch",overscrollBehavior:"contain"},children:$}),k&&(0,l.jsx)(s.A,{...k})]})})]})}}}]); 2//# sourceMappingURL=4052.7814828e949986c5.js.map
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.