1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="1a142c26-8dbf-8ad9-1adc-513adeccf14b")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,815107,(e,t,r)=>{e.e,function(e){"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};e.CountUp=function(){function e(e,r,a){var n=this;this.endVal=r,this.options=a,this.version="2.10.1",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",autoAnimate:!1,autoAnimateDelay:200,autoAnimateOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(e){n.startTime||(n.startTime=e);var t=e-n.startTime;n.remaining=n.duration-t,n.useEasing?n.countDown?n.frameVal=n.startVal-n.easingFn(t,0,n.startVal-n.endVal,n.duration):n.frameVal=n.easingFn(t,n.startVal,n.endVal-n.startVal,n.duration):n.frameVal=n.startVal+(n.endVal-n.startVal)*(t/n.duration);var r=n.countDown?n.frameVal<n.endVal:n.frameVal>n.endVal;n.frameVal=r?n.endVal:n.frameVal,n.frameVal=Number(n.frameVal.toFixed(n.options.decimalPlaces)),n.printValue(n.frameVal),t<n.duration?n.rAF=requestAnimationFrame(n.count):null!==n.finalEndVal?n.update(n.finalEndVal):n.options.onCompleteCallback&&n.options.onCompleteCallback()},this.formatNumber=function(e){var t,r,a,l=(Math.abs(e).toFixed(n.options.decimalPlaces)+"").split(".");if(t=l[0],r=l.length>1?n.options.decimal+l[1]:"",n.options.useGrouping){a="";for(var i=3,s=0,o=0,c=t.length;o<c;++o)n.options.useIndianSeparators&&4===o&&(i=2,s=1),0!==o&&s%i==0&&(a=n.options.separator+a),s++,a=t[c-o-1]+a;t=a}return n.options.numerals&&n.options.numerals.length&&(t=t.replace(/[0-9]/g,function(e){return n.options.numerals[+e]}),r=r.replace(/[0-9]/g,function(e){return n.options.numerals[+e]})),(e<0?"-":"")+n.options.prefix+t+r+n.options.suffix},this.easeOutExpo=function(e,t,r,a){return r*(1-Math.pow(2,-10*e/a))*1024/1023+t},this.options=t(t({},this.defaults),a),this.options.enableScrollSpy&&(this.options.autoAnimate=!0),void 0!==this.options.scrollSpyDelay&&(this.options.autoAnimateDelay=this.options.scrollSpyDelay),this.options.scrollSpyOnce&&(this.options.autoAnimateOnce=!0),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.el="string"==typeof e?document.getElementById(e):e,r=null==r?this.parse(this.el.innerHTML):r,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(r),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","u">typeof window&&this.options.autoAnimate&&(this.error||"u"<typeof IntersectionObserver?this.error?console.error(this.error,e):console.error("IntersectionObserver is not supported by this browser"):this.setupObserver())}return e.prototype.setupObserver=function(){var t=this,r=e.observedElements.get(this.el);r&&r.unobserve(),e.observedElements.set(this.el,this),this.observer=new IntersectionObserver(function(e){for(var r=0;r<e.length;r++){var a=e[r];a.isIntersecting&&t.paused&&!t.once?(t.paused=!1,t.autoAnimateTimeout=setTimeout(function(){return t.start()},t.options.autoAnimateDelay),t.options.autoAnimateOnce&&(t.once=!0,t.observer.disconnect())):a.isIntersecting||t.paused||(clearTimeout(t.autoAnimateTimeout),t.reset())}},{threshold:0}),this.observer.observe(this.el)},e.prototype.unobserve=function(){var t;clearTimeout(this.autoAnimateTimeout),null==(t=this.observer)||t.disconnect(),e.observedElements.delete(this.el)},e.prototype.onDestroy=function(){clearTimeout(this.autoAnimateTimeout),cancelAnimationFrame(this.rAF),this.paused=!0,this.unobserve(),this.options.onCompleteCallback=null,this.options.onStartCallback=null},e.prototype.determineDirectionAndSmartEasing=function(){var e=null!==this.finalEndVal?this.finalEndVal:this.endVal;if(this.countDown=this.startVal>e,Math.abs(e-this.startVal)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=e;var t=this.countDown?1:-1;
2this.endVal=e+t*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(e){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),e&&(this.options.onCompleteCallback=e),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){if(this.paused)this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count);else{cancelAnimationFrame(this.rAF);var e=null!==this.finalEndVal?this.duration+this.remaining:this.remaining;this.remaining=e}this.paused=!this.paused},e.prototype.reset=function(){clearTimeout(this.autoAnimateTimeout),cancelAnimationFrame(this.rAF),this.paused=!0,this.once=!1,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(e){var t;if(this.el){var r=this.formattingFn(e);(null==(t=this.options.plugin)?void 0:t.render)?this.options.plugin.render(this.el,r):"INPUT"===this.el.tagName?this.el.value=r:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=r:this.el.innerHTML=r}},e.prototype.ensureNumber=function(e){return"number"==typeof e&&!isNaN(e)},e.prototype.validateValue=function(e){var t=Number(e);return this.ensureNumber(t)?t:(this.error="[CountUp] invalid start or end value: ".concat(e),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e.prototype.parse=function(e){var t=function(e){return e.replace(/([.,'Â ])/g,"\\$1")},r=t(this.options.separator),a=t(this.options.decimal);return parseFloat(e.replace(RegExp(r,"g"),"").replace(RegExp(a,"g"),"."))},e.observedElements=new WeakMap,e}()}(r)},415304,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=e.r(478110),n=e.r(815107);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){!function(e,t,r){var a;(t="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?a:String(a))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(){return(s=Object.assign.bind()).apply(this,arguments)}function o(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},l=Object.keys(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)r=l[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}var u="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function d(e){var t=a.useRef(e);return u(function(){t.current=e}),a.useCallback(function(){for(var e=arguments.length,r=Array(e),a=0;a<e;a++)r[a]=arguments[a];return t.current.apply(void 0,r)},[])}var m=function(e,t){var r=t.decimal,a=t.decimals,l=t.duration,i=t.easingFn,s=t.end,o=t.formattingFn,c=t.numerals,u=t.prefix,d=t.separator,m=t.
2start,f=t.suffix,p=t.useEasing,h=t.useGrouping,g=t.useIndianSeparators,x=t.enableScrollSpy,v=t.scrollSpyDelay,y=t.scrollSpyOnce,b=t.plugin;return new n.CountUp(e,s,{startVal:m,duration:l,decimal:r,decimalPlaces:a,easingFn:i,formattingFn:o,numerals:c,separator:d,prefix:u,suffix:f,plugin:b,useEasing:p,useIndianSeparators:g,useGrouping:h,enableScrollSpy:x,scrollSpyDelay:v,scrollSpyOnce:y})},f=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],p={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},h=function(e){var t=Object.fromEntries(Object.entries(e).filter(function(e){return void 0!==(function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,a,n,l,i=[],s=!0,o=!1;try{n=(t=t.call(e)).next,!1;for(;!(s=(r=n.call(t)).done)&&(i.push(r.value),2!==i.length);s=!0);}catch(e){o=!0,a=e}finally{try{if(!s&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(o)throw a}}return i}}(e)||function(e){if(e){if("string"==typeof e)return c(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1]})),r=a.useMemo(function(){return i(i({},p),t)},[e]),n=r.ref,l=r.startOnMount,s=r.enableReinitialize,u=r.delay,h=r.onEnd,g=r.onStart,x=r.onPauseResume,v=r.onReset,y=r.onUpdate,b=o(r,f),j=a.useRef(),w=a.useRef(),N=a.useRef(!1),C=d(function(){return m("string"==typeof n?n:n.current,b)}),k=d(function(e){var t=j.current;if(t&&!e)return t;var r=C();return j.current=r,r}),S=d(function(){var e=function(){return k(!0).start(function(){null==h||h({pauseResume:T,reset:F,start:A,update:E})})};u&&u>0?w.current=setTimeout(e,1e3*u):e(),null==g||g({pauseResume:T,reset:F,update:E})}),T=d(function(){k().pauseResume(),null==x||x({reset:F,start:A,update:E})}),F=d(function(){k().el&&(w.current&&clearTimeout(w.current),k().reset(),null==v||v({pauseResume:T,start:A,update:E}))}),E=d(function(e){k().update(e),null==y||y({pauseResume:T,reset:F,start:A})}),A=d(function(){F(),S()}),P=d(function(e){l&&(e&&F(),S())});return a.useEffect(function(){N.current?s&&P(!0):(N.current=!0,P())},[s,N,P,u,e.start,e.suffix,e.prefix,e.duration,e.separator,e.decimals,e.decimal,e.formattingFn]),a.useEffect(function(){return function(){F()}},[F]),{start:A,pauseResume:T,reset:F,update:E,getCountUp:k}},g=["className","redraw","containerProps","children","style"];r.default=function(e){var t=e.className,r=e.redraw,n=e.containerProps,l=e.children,c=e.style,u=o(e,g),m=a.useRef(null),f=a.useRef(!1),p=h(i(i({},u),{},{ref:m,startOnMount:"function"!=typeof l||0===e.delay,enableReinitialize:!1})),x=p.start,v=p.reset,y=p.update,b=p.pauseResume,j=p.getCountUp,w=d(function(){x()}),N=d(function(t){e.preserveValue||v(),y(t)}),C=d(function(){"function"!=typeof e.children||m.current instanceof Element?j():console.error('Couldn\'t find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. <span ref={containerRef} />.')});a.useEffect(function(){C()},[C]),a.useEffect(function(){f.current&&N(e.end)},[e.end,N]);var k=r&&e;return(a.useEffect(function(){r&&f.current&&w()},[w,r,k]),a.useEffect(function(){!r&&f.current&&w()},[w,r,e.start,e.suffix,e.prefix,e.duration,e.separator,e.decimals,e.decimal,e.className,e.formattingFn]),a.useEffect(function(){f.current=!0},[]),"function"==typeof l)?l({countUpRef:m,start:x,reset:v,update:y,pauseResume:b,getCountUp:j}):a.createElement("span",s({className:t,ref:m,style:c},n),void 0!==e.start?j().formattingFn(e.start):"")},r.useCountUp=h},150782,e=>{"use strict";var t=e.i(644418),r=e.i(7284),a=e.i(762827),n=e.i(466095),l=e.i(244387),i=e.i(775994),s=e.i(154564),o=e.i(521490),c=e.i(10442);function u({action:e}){return(0,t.jsxs)(s.ThreeDee,{className:"group flex w-full items-center gap-4 p-4 pr-6 backdrop-blur-lg transition-colors ease-out",children:[e.icon&&(0,t.jsx)(a.default,{src:e.icon.svg,className:"group-hover:animate-wobble text-primary size-9 shrink-0 stroke-[1.25px]"}),(0,t.jsxs)("div",{className:"flex flex-col items-start",children:[(0,t.jsx)(o.Text,{element:"h3",elementStyle:"h4",children:e.title}),e.description&&(0,t.jsx)(o.Text,{element:"p",className:"text-muted-foreground text-sm leading-snug",children:e.description})]})]})}
2e.s(["Action",0,u,"ActionBar",0,function({actions:e,margin:a,blockWidth:s,params:o}){let{setOpenBook:d}=(0,n.useGlobal)();return(0,t.jsx)(c.Wrapper,{className:(0,r.default)("z-20 h-max lg:h-0",(0,c.getMarginClassNames)(a),(0,c.getBlockWidthClassNames)(s,"standard")),children:(0,t.jsx)("div",{className:"-mt-20 flex w-full flex-col items-stretch justify-center gap-4 lg:-mt-20 lg:flex-row",children:e.map((e,r)=>"link"!==e.type?(0,t.jsx)("button",{className:"w-full flex-1 cursor-pointer",onClick:()=>{d(!0)},children:(0,t.jsx)(u,{action:e})},e.title+r):e.href?(0,t.jsx)(i.PrefetchLink,{className:"w-full flex-1",href:(0,l.getPrefixedHref)(e.href,o.venue,o.venuesPage),children:(0,t.jsx)(u,{action:e})},e.title+r):(0,t.jsx)("div",{className:"text-muted-foreground w-full flex-1 cursor-not-allowed",children:(0,t.jsx)(u,{action:e})},e.title+r))})})}])},808989,e=>{"use strict";var t=e.i(644418),r=e.i(318567),a=e.i(65133),n=e.i(456312),l=e.i(10442),i=e.i(244387);e.s(["Button",0,function({params:e,text:s,textMobile:o,href:c,id:u,action:d,children:m,...f}){let p=(0,a.useMediaQuery)("(max-width: 640px)"),h=(0,n.buttonActionLabel)({text:s,children:m});if("string"!=typeof h)return null;let g=(0,i.transformButtonData)({params:e,href:c,...f});return(0,t.jsx)(l.Wrapper,{id:u,children:(0,t.jsx)(r.Button,{...g,action:d,children:p&&o?o:h})})}])},978921,e=>{"use strict";var t=e.i(644418),r=e.i(478110),a=e.i(921290),n=e.i(318567),l=e.i(612560),i=e.i(847569),s=e.i(659273),o=e.i(36655),c=e.i(521490),u=e.i(872866),d=e.i(784712),m=e.i(184880),f=e.i(242119);let p=(0,f.default)("filled","alert-circle-filled","AlertCircleFilled",[["path",{d:"M12 2c5.523 0 10 4.477 10 10a10 10 0 0 1 -19.995 .324l-.005 -.324l.004 -.28c.148 -5.393 4.566 -9.72 9.996 -9.72zm.01 13l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-.01 -8a1 1 0 0 0 -.993 .883l-.007 .117v4l.007 .117a1 1 0 0 0 1.986 0l.007 -.117v-4l-.007 -.117a1 1 0 0 0 -.993 -.883z",key:"svg-0"}]]);var h=e.i(142076);let g=(0,f.default)("outline","loader","Loader",[["path",{d:"M12 6l0 -3",key:"svg-0"}],["path",{d:"M16.25 7.75l2.15 -2.15",key:"svg-1"}],["path",{d:"M18 12l3 0",key:"svg-2"}],["path",{d:"M16.25 16.25l2.15 2.15",key:"svg-3"}],["path",{d:"M12 18l0 3",key:"svg-4"}],["path",{d:"M7.75 16.25l-2.15 2.15",key:"svg-5"}],["path",{d:"M6 12l-3 0",key:"svg-6"}],["path",{d:"M7.75 7.75l-2.15 -2.15",key:"svg-7"}]]),x=(0,f.default)("outline","send","Send",[["path",{d:"M10 14l11 -11",key:"svg-0"}],["path",{d:"M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5",key:"svg-1"}]]);var v=e.i(561627),y=e.i(65133),b=e.i(599565),b=b,j=e.i(799138),w=e.i(10442);function N(e,t){let r,a=(Array.isArray((r=window).dataLayer)||(r.dataLayer=[]),r.dataLayer);a&&a.push({event:e,timestamp:new Date().toISOString(),...t,...function(){let{pathname:e,search:t,hash:r,host:a,href:n}=window.location;return{path:`${e}${t}${r}`,host:a,href:n}}()})}var C=e.i(310375),k=e.i(118771),S=e.i(93214),T=e.i(823282),F=e.i(4228),E=e.i(812304),A=e.i(309535),P=e.i(858883),D=e.i(800939),I=e.i(132818);function M({field:e,fieldConfig:r}){return(0,t.jsxs)(P.Popover,{children:[(0,t.jsx)(i.FormControl,{children:(0,t.jsx)(P.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(n.Button,{variant:"outline",className:"group/date justify-start pl-2.5 text-sm!",children:[(0,t.jsx)(D.IconCalendar,{className:"group-hover/date:text-foreground text-muted-foreground"}),e.value?(0,I.format)(e.value,"PPP"):(0,t.jsx)("span",{className:"group-hover/date:text-foreground text-muted-foreground",children:"Pick a date"})]})})}),(0,t.jsx)(P.PopoverContent,{children:(0,t.jsx)(A.Calendar,{mode:"single",disabled:{before:r.min?new Date(r.min):void 0,after:r.max?new Date(r.max):void 0},defaultMonth:e.value,selected:e.value,onSelect:e.onChange,captionLayout:"dropdown",className:"w-full bg-transparent p-0"})})]})}var R=e.i(284109),V=e.i(550927),O=e.i(140422);function B({field:e,fieldConfig:r}){return(0,t.jsxs)(P.Popover,{children:[(0,t.jsx)(i.FormControl,{children:(0,t.jsx)(P.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(n.Button,{variant:"outline",className:"group justify-start text-sm!",children:[(0,t.jsx)(D.IconCalendar,{}),e.value?(0,I.format)(e.value,"PPP"):(0,t.jsx)("span",{className:"not-group-hover:text-muted-foreground",children:"Pick a date"})]})})}),(0,t.jsxs)(P.PopoverContent,{children:[(0,t.jsx)(A.Calendar,{mode:"single",defaultMonth:e.value,selected:e.value,onSelect:e.onChange,captionLayout:"dropdown",className:"w-full bg-transparent p-0"}),(0,t.jsx)(O.Separator,{className:"my-2"}),(0,t.jsxs)("div",{className:"relative flex w-full items-center gap-2",children:[(0,t.jsx)(V.IconClock,{className:"text-muted-foreground pointer-events-none absolute left-2.5 size-4 select-none"}),(0,t.jsx)(C.Input,{type:"time",className:"appearance-none pl-8 [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none",...e,placeholder:r.placeholder,value:e.value})]})]})]})}var z=e.i(470976),L=e.i(816729);let $=(0,f.default)("outline","upload","Upload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 9l5 -5l5 5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]),q=new Map([["avif","image/avif"],["bmp","image/bmp"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["gif","image/gif"],["gz","application/gzip"],["htm","text/html"],["html","text/html"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","application/javascript"],["json","application/json"],["md","text/markdown"],["mjs","application/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["ogg","audio/ogg"],["pdf","application/pdf"],["png","image/png"],["ppt","application/powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["svg","image/svg+xml"],["tif","image/tiff"],["tiff","image/tiff"],["txt","text/plain"],["wasm","application/wasm"],["wav","audio/x-wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["zip","application/zip"]]);
2var U=class extends Error{constructor(e){super("DataTransferItem is not a file"),this.item=e,this.name="UnexpectedObjectError"}};function _(e,t,r){let{webkitRelativePath:a}=e,n="string"==typeof t?t:"string"==typeof a&&a.length>0?a:`./${e.name}`;return"string"!=typeof e.path&&G(e,"path",n),void 0!==r&&Object.defineProperty(e,"handle",{value:r,writable:!1,configurable:!1,enumerable:!0}),G(e,"relativePath",n),e}function G(e,t,r){Object.defineProperty(e,t,{value:r,writable:!1,configurable:!1,enumerable:!0})}let W=[".DS_Store","Thumbs.db"];async function H(e,{mimeTypes:t=q}={}){return(await K(e)).map(e=>e instanceof File?function(e,t=q){let{name:r}=e;if(r&&-1!==r.lastIndexOf(".")&&!e.type){let a=r.split(".").pop().toLowerCase(),n=t.get(a);n&&Object.defineProperty(e,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return e}(e,t):e)}async function K(e){var t,r,a;if(Q(e)&&Q(e.dataTransfer))return Y(e.dataTransfer,e.type);if(Q(t=e)&&Q(t.clipboardData)){let t;return Z(((t=J((r=e.clipboardData).items).filter(e=>"file"===e.kind).map(e=>e.getAsFile()).filter(e=>null!==e)).length>0?t:J(r.files)).map(e=>_(e)))}if(Q(a=e)&&Q(a.target))return J(e.target.files).map(e=>_(e));return Array.isArray(e)&&e.every(e=>"getFile"in e&&"function"==typeof e.getFile)?X(e):[]}function Q(e){return"object"==typeof e&&null!==e}async function X(e){return(await Promise.all(e.map(e=>e.getFile()))).map(e=>_(e))}async function Y(e,t){let r=J(e.items).filter(e=>"file"===e.kind);return"drop"!==t?r:Z(function e(t){let r=[];for(let a of t)Array.isArray(a)?r.push(...e(a)):r.push(a);return r}(await Promise.all(r.map(ee))))}function Z(e){return e.filter(e=>-1===W.indexOf(e.name))}function J(e){return null===e?[]:Array.from(e)}async function ee(e){if("function"!=typeof e.webkitGetAsEntry)return et(e);let t=e.webkitGetAsEntry();if(t?.isDirectory){let r=await er(e);return r?.kind==="directory"?ea(r,`/${r.name}`):el(t)}return et(e,t)}async function et(e,t){let r=e.getAsFile(),a=await er(e);if(null!=a){let e=r??await a.getFile();return e.handle=a,_(e)}if(!r)throw new U(e);return _(r,t?.fullPath??void 0)}async function er(e){if(globalThis.isSecureContext&&"function"==typeof e.getAsFileSystemHandle)return e.getAsFileSystemHandle()}async function ea(e,t){let r=[];for await(let a of e.values()){let e=`${t}/${a.name}`;if("directory"===a.kind)r.push(...await ea(a,e));else{let t=await a.getFile();r.push(_(t,e,a))}}return r}async function en(e){return e.isDirectory?el(e):ei(e)}function el(e){let t=e.createReader();return new Promise((e,r)=>{let a=[];!function n(){t.readEntries(async t=>{if(t.length){let e=Promise.all(t.map(en));a.push(e),n()}else try{e(await Promise.all(a))}catch(e){r(e)}},e=>{r(e)})}()})}async function ei(e){return new Promise((t,r)=>{e.file(r=>{t(_(r,e.fullPath))},e=>{r(e)})})}let es=function(e,t){if(e&&t){let r=Array.isArray(t)?t:t.split(",");if(0===r.length)return!0;let a=e.name||"",n=(e.type||"").toLowerCase(),l=n.replace(/\/.*$/,"");return r.some(e=>{let t=e.trim().toLowerCase();return"."===t.charAt(0)?a.toLowerCase().endsWith(t):t.endsWith("/*")?l===t.replace(/\/.*$/,""):n===t})}return!0},eo=["KB","MB","GB","TB","PB"];function ec(e){if(e<1024)return`${e} ${1===e?"byte":"bytes"}`;let t=e/1024,r=0;for(;t>=1024&&r<eo.length-1;)t/=1024,r++;return`${Number(t.toFixed(2))} ${eo[r]}`}function eu(e){return{code:"file-too-large",message:`File is larger than ${ec(e)}`}}function ed(e){return{code:"file-too-small",message:`File is smaller than ${ec(e)}`}}let em={code:"too-many-files",message:"Too many files"};function ef(e,t){let r="application/x-moz-file"===e.type||es(e,t??"")||""===e.type&&"function"==typeof e.getAsFile;return[r,r?null:function(e=""){let t=e.split(","),r=t.length>1?`one of ${t.join(", ")}`:t[0];return{code:"file-invalid-type",message:`File type must be ${r}`}}(t)]}function ep(e,t,r){if(eh(e.size)){if(eh(t)&&eh(r)){if(e.size>r)return[!1,eu(r)];if(e.size<t)return[!1,ed(t)]}else if(eh(t)&&e.size<t)return[!1,ed(t)];else if(eh(r)&&e.size>r)return[!1,eu(r)]}return[!0,null]}function eh(e){return null!=e}function eg(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function ex(e){let t=e.dataTransfer??e.clipboardData;return t?Array.prototype.some.call(t.types,e=>"Files"===e||"application/x-moz-file"===e)||Array.prototype.some.call(t.items??[],ev):!!e.target&&!!e.target.files}function ev(e){return"object"==typeof e&&null!==e&&"file"===e.kind}function ey(e){e.preventDefault()}function eb(...e){return(t,...r)=>e.some(e=>(!eg(t)&&e&&e(t,...r),eg(t)))}function ej(e){return Array.isArray(e)?e:"string"==typeof e?[e]:[]}function ew(e){if(eh(e))return Array.isArray(e)?e.filter(e=>eh(e)&&eh(e.accept)):[{accept:e}]}function eN(e,{omitWildcardMimeTypesWithExtensions:t=!1}={}){if(eh(e))return Object.entries(e).reduce((e,[r,a])=>{let n=ej(a);return t&&r.endsWith("/*")&&n.some(ek)?e.push(...n):e.push(r,...n),e},[]).filter(e=>eC(e)||ek(e)).join(",")}function eC(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||"application/*"===e||/\w+\/[-+.\w]+/g.test(e)}function ek(e){return/^.*\.[\w]+$/.test(e)}(0,r.forwardRef)(({children:e,...a},n)=>{let{open:l,...i}=eT(a);return(0,r.useImperativeHandle)(n,()=>({open:l}),[l]),(0,t.jsx)(t.Fragment,{children:e?.({...i,open:l})})}).displayName="Dropzone";let eS={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragUnknown:!1,isDragGlobal:!1,isProcessing:!1,acceptedFiles:[],fileRejections:[],dragFileRejections:[]};function eT(e={}){let{accept:t,disabled:a=!1,getFilesFromEvent:n=H,maxSize:l=1/0,minSize:i=0,multiple:s=!0,maxFiles:o=0,onDragEnter:c,onDragLeave:u,onDragOver:d,onDrop:m,onDropAccepted:f,onDropRejected:p,onFileDialogCancel:h,onFileDialogOpen:g,useFsAccessApi:x=!1,autoFocus:v=!1,preventDropOnDocument:y=!0,noClick:b=!1,noKeyboard:j=!1,noDrag:w=!1,noDragEventsBubbling:N=!1,noPaste:C=!1,onError:k,validator:S,getErrorMessage:T}=e,F=(0,r.useMemo)(()=>(function(e){let t=ew(e);if(!eh(t))return;let r={};for(let e of t)for(let[t,a]of Object.entries(e.accept)){let e=r[t]??(r[t]=[]);for(let t of ej(a))e.includes(t)||e.push(t)}return r})(t),[t]),E=(0,r.useMemo)(()=>eN(F),[F]),A=(0,r.useMemo)(()=>eN(F,{omitWildcardMimeTypesWithExtensions:!0}),[F]),P=(0,r.useMemo)(()=>(function(e){let t=ew(e);if(!eh(t))return;let r=t.map(e=>{let t=Object.entries(e.accept).filter(([e,t])=>{let r=!0;return eC(e)||(console.warn(`Skipped "${e}" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.`),r=!1),(Array.isArray(t)||"string"==typeof t)&&ej(t).every(ek)||(console.warn(`Skipped "${e}
2" because an invalid file extension was provided.`),r=!1),r}).reduce((e,[t,r])=>(e[t]=ej(r),e),{});return{description:eh(e.description)&&""!==e.description?e.description:function(e){let t=[],r=Object.keys(e);for(let r of Object.values(e))for(let e of ej(r))t.includes(e)||t.push(e);return t.length>0?t.join(", "):r.length>0?r.join(", "):"Files"}(t),accept:t}}).filter(e=>Object.keys(e.accept).length>0);return r.length>0?r:void 0})(t),[t]),D=(0,r.useMemo)(()=>"function"==typeof g?g:eE,[g]),I=(0,r.useMemo)(()=>"function"==typeof h?h:eE,[h]),M=(0,r.useRef)(null),R=(0,r.useRef)(null),[V,O]=(0,r.useReducer)(eF,eS),{isFocused:B,isFileDialogActive:z}=V,L=(0,r.useRef)(z);L.current=z;let $=(0,r.useRef)(null),q=(0,r.useCallback)(()=>{$.current?.abort();let e=new AbortController;return $.current=e,O({type:"setProcessing",isProcessing:!0}),e.signal},[]),U=(0,r.useCallback)(e=>{e.aborted||O({type:"setProcessing",isProcessing:!1})},[]),_=(0,r.useRef)("u">typeof window&&window.isSecureContext&&x&&"showOpenFilePicker"in window),G=()=>{!_.current&&z&&setTimeout(()=>{if(R.current){let{files:e}=R.current;e?.length||(O({type:"closeDialog"}),I())}},300)};(0,r.useEffect)(()=>(window.addEventListener("focus",G,!1),()=>{window.removeEventListener("focus",G,!1)}),[R,z,I,_]);let W=(0,r.useRef)([]),K=(0,r.useRef)([]),Q=e=>{M.current&&e.target&&M.current.contains(e.target)&&e.defaultPrevented||(e.preventDefault(),W.current=[])};(0,r.useEffect)(()=>(y&&(document.addEventListener("dragover",ey,!1),document.addEventListener("drop",Q,!1)),()=>{y&&(document.removeEventListener("dragover",ey),document.removeEventListener("drop",Q))}),[M,y]),(0,r.useEffect)(()=>{let e=e=>{e.target&&(K.current=[...K.current,e.target]),ex(e)&&O({isDragGlobal:!0,type:"setDragGlobal"})},t=e=>{K.current=K.current.filter(t=>t!==e.target&&null!==t),K.current.length>0||O({isDragGlobal:!1,type:"setDragGlobal"})},r=()=>{K.current=[],O({isDragGlobal:!1,type:"setDragGlobal"})},a=()=>{K.current=[],O({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",e,!1),document.addEventListener("dragleave",t,!1),document.addEventListener("dragend",r,!1),document.addEventListener("drop",a,!1),()=>{document.removeEventListener("dragenter",e),document.removeEventListener("dragleave",t),document.removeEventListener("dragend",r),document.removeEventListener("drop",a)}},[M]),(0,r.useEffect)(()=>(!a&&v&&M.current&&M.current.focus(),()=>{}),[M,v,a]);let X=(0,r.useCallback)(e=>{k?k(e):console.error(e)},[k]),Y=(0,r.useCallback)(e=>{e.preventDefault(),e.persist?.(),ed(e),!L.current&&(W.current=[...W.current,e.target],ex(e)&&Promise.resolve(n(e)).then(t=>{if(eg(e)&&!N)return;let r=t.length>0?function({files:e,accept:t,minSize:r,maxSize:a,multiple:n,maxFiles:l=0,validator:i,getErrorMessage:s}){let o=[],c=[],u=(e,t)=>
2s&&"u">typeof File&&t instanceof File?{...e,message:s(e,t)}:e;e.forEach(e=>{let[n,l]=ef(e,t),[i,s]=ep(e,r,a);n&&i?o.push(e):c.push({file:e,errors:[l,s].filter(e=>null!=e).map(t=>u(t,e))})});let d=n?l>=1?l:1/0:1;return(o.length>d&&o.slice(d).forEach(e=>{c.push({file:e,errors:[u(em,e)]})}),c.length>0)?{verdict:"reject",rejections:c}:{verdict:i?"unknown":"accept",rejections:c}}({files:t,accept:E,minSize:i,maxSize:l,multiple:s,maxFiles:o,validator:S,getErrorMessage:T}):null;O({isDragAccept:r?.verdict==="accept",isDragReject:r?.verdict==="reject",isDragUnknown:r?.verdict==="unknown",isDragActive:!0,dragFileRejections:r?.rejections??[],type:"setDraggedFiles"}),c&&c(e)}).catch(e=>X(e)))},[n,c,X,N,E,i,l,s,o,S,T]),Z=(0,r.useCallback)(e=>{if(e.preventDefault(),e.persist?.(),ed(e),L.current)return!1;let t=ex(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch{}return t&&d&&d(e),!1},[d,N]),J=(0,r.useCallback)(e=>{e.preventDefault(),e.persist?.(),ed(e);let t=W.current.filter(e=>M.current?.contains(e)),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),W.current=t,!(t.length>0)&&(O({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragUnknown:!1,dragFileRejections:[]}),ex(e)&&u&&u(e))},[M,u,N]),ee=(0,r.useCallback)(async(e,t,r)=>{let a,n=(e,t)=>T?{...e,message:T(e,t)}:e,c=e=>{let r=[],a=[];e.forEach(({file:e,accepted:t,acceptError:l,sizeMatch:i,sizeError:s,customErrors:o})=>{if(t&&i&&!o)r.push(e);else{let t=[l,s];o&&(t=t.concat(o)),a.push({file:e,errors:t.filter(e=>null!=e).map(t=>n(t,e))})}});let l=s?o>=1?o:1/0:1;r.length>l&&r.splice(l).forEach(e=>{a.push({file:e,errors:[n(em,e)]})}),O({acceptedFiles:r,fileRejections:a,type:"setFiles"}),m&&m(r,a,t),a.length>0&&p&&p(a,t),r.length>0&&f&&f(r,t)},u=e.map(e=>{let[t,r]=ef(e,A),[a,n]=ep(e,i,l);return{file:e,accepted:t,acceptError:r,sizeMatch:a,sizeError:n,customErrors:S?S(e):null}});if(!u.some(({customErrors:e})=>null!=e&&"function"==typeof e.then))return void c(u);try{a=await Promise.all(u.map(async({customErrors:e,...t})=>({...t,customErrors:await e})))}catch(e){r.aborted||(U(r),X(e));return}r.aborted||c(a)},[O,s,A,i,l,o,m,f,p,S,T,X,U]),et=(0,r.useCallback)(e=>{if(e.preventDefault(),e.persist?.(),ed(e),W.current=[],(!L.current||!e.dataTransfer)&&(O({type:"reset"}),ex(e))){let t=q();Promise.resolve(n(e)).then(r=>{if(!t.aborted)return eg(e)&&!N?void U(t):ee(r,e,t)}).catch(e=>{t.aborted||(U(t),X(e))})}},[n,ee,X,N,q,U]),er=(0,r.useCallback)(e=>{if(!ex(e))return;e.preventDefault(),e.persist?.(),ed(e);let t=q();Promise.resolve(n(e)).then(r=>{if(!t.aborted)return eg(e)&&!N?void U(t):ee(r,e,t)}).catch(e=>{t.aborted||(U(t),X(e))})},[n,ee,X,N,q,U]),ea=(0,r.useCallback)(()=>{if(_.current){let e;O({type:"openDialog"}),D(),window.showOpenFilePicker({multiple:s,types:P}).then(t=>(e=q(),n(t))).then(t=>{if(O({type:"closeDialog"}),!e.aborted)return ee(t,null,e)}).catch(t=>{(e&&U(e),t instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR))?(I(t),O({type:"closeDialog"})):t instanceof DOMException&&("SecurityError"===t.name||t.code===t.SECURITY_ERR)||t instanceof DOMException&&"NotAllowedError"===t.name?(_.current=!1,R.current?(R.current.value="",R.current.click()):X(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):X(t)});return}R.current&&(O({type:"openDialog"}),D(),R.current.value="",R.current.click())},[O,D,I,x,ee,X,P,s,q,U]),en=(0,r.useCallback)(e=>{M.current?.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),ea())},[M,ea]),el=(0,r.useCallback)(()=>{O({type:"focus"})},[]),ei=(0,r.useCallback)(()=>{O({type:"blur"})},[]),es=(0,r.useCallback)(()=>{b||(function(e=window.navigator.userAgent){return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?setTimeout(ea,0):ea())},[b,ea]),eo=e=>a?null:e,ec=e=>j?null:eo(e),eu=e=>w?null:eo(e),ed=e=>{N&&e.stopPropagation()},ev=(0,r.useMemo)(()=>({refKey:e="ref",role:t,onKeyDown:r,onFocus:n,onBlur:l,onClick:i,onDragEnter:s,onDragOver:o,onDragLeave:c,onDrop:u,onPaste:d,...m}={})=>{let f;return{onKeyDown:ec(eb(r,en)),onFocus:ec(eb(n,el)),onBlur:ec(eb(l,ei)),onClick:eo(eb(i,es)),onDragEnter:eu(eb(s,Y)),onDragOver:eu(eb(o,Z)),onDragLeave:eu
2(eb(c,J)),onDrop:eu(eb(u,et)),onPaste:(f=eb(d,er),C?null:eo(f)),role:"string"==typeof t&&""!==t?t:"presentation",[e]:M,...!a&&!j?{tabIndex:0}:{},...a?{"aria-disabled":!0}:{},...m}},[M,en,el,ei,es,Y,Z,J,et,er,j,w,C,a]),eA=(0,r.useCallback)(e=>{e.stopPropagation()},[]),eP=(0,r.useMemo)(()=>({refKey:e="ref",onChange:t,onClick:r,...a}={})=>({accept:A,multiple:s,type:"file","aria-label":"file upload",style:{border:0,display:"block",height:0,margin:0,opacity:0,overflow:"hidden",padding:0,width:0},onChange:eo(eb(t,et)),onClick:eo(eb(r,eA)),tabIndex:-1,[e]:R,...a}),[R,t,s,et,a]);return{...V,isFocused:B&&!a,getRootProps:ev,getInputProps:eP,rootRef:M,inputRef:R,open:eo(ea)}}function eF(e,t){switch(t.type){case"focus":return{...e,isFocused:!0};case"blur":return{...e,isFocused:!1};case"openDialog":return{...eS,isFileDialogActive:!0};case"closeDialog":return{...e,isFileDialogActive:!1};case"setDraggedFiles":return{...e,isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject,isDragUnknown:t.isDragUnknown,dragFileRejections:t.dragFileRejections};case"setProcessing":return{...e,isProcessing:t.isProcessing};case"setFiles":return{...e,acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,dragFileRejections:[],isProcessing:!1,isDragReject:!1,isDragUnknown:!1};case"setDragGlobal":return{...e,isDragGlobal:t.isDragGlobal};case"reset":return{...eS};default:return e}}function eE(){}let eA=(0,f.default)("outline","file","File",[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2",key:"svg-1"}]]),eP=(0,f.default)("outline","trash","Trash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]]),eD=({file:e,onRemove:r})=>{let a=e.type.startsWith("image/");return(0,t.jsxs)("div",{className:"flex items-center justify-between gap-5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-5",children:[a?(0,t.jsx)("img",{src:URL.createObjectURL(e),alt:e.name||"File",width:48,height:48,className:"size-12 rounded-sm object-cover",sizes:"48px"}):(0,t.jsx)("div",{className:"bg-muted text-muted-foreground flex size-12 items-center justify-center rounded-sm",children:(0,t.jsx)(eA,{className:"size-5"})}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(c.Text,{element:"span",className:"line-clamp-1",children:e.name}),(0,t.jsxs)(c.Text,{element:"span",className:"text-muted-foreground text-xs leading-none font-semibold",children:[((e.size??0)/1024).toFixed(2)," KB"]})]})]}),(0,t.jsx)(n.Button,{variant:"destructive",size:"icon",title:"Remove file","aria-label":"Remove file",onClick:()=>r(e.name??""),children:(0,t.jsx)(eP,{size:20})})]},e.name)};function eI({field:e,toggleMulti:r,fileTypes:a}){let n=(a||[]).map(e=>"string"==typeof e?e.toLowerCase():e&&"object"==typeof e&&"value"in e&&"string"==typeof e.value?e.value.toLowerCase():"").filter(e=>["image","video","audio","document"].includes(e)),l={...n.includes("image")?{"image/*":[]}:{},...n.includes("video")?{"video/*":[]}:{},...n.includes("audio")?{"audio/*":[]}:{},...n.includes("document")?{"application/pdf":[".pdf"],"application/msword":[".doc"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[".docx"],"text/plain":[".txt"]}:{}},s=e=>{if(!n.length)return!0;let t=e.name.toLowerCase(),r="application/pdf"===e.type||"application/msword"===e.type||"application/vnd.openxmlformats-officedocument.wordprocessingml.document"===e.type||"text/plain"===e.type||t.endsWith(".pdf")||t.endsWith(".doc")||t.endsWith(".docx")||t.endsWith(".txt");return n.includes("image")&&e.type.startsWith("image/")||n.includes("video")&&e.type.startsWith("video/")||n.includes("audio")&&e.type.startsWith("audio/")||n.includes("document")&&r},o=t=>{let a=t.filter(s);a.length&&(r?e.onChange(a):e.onChange(a[0]))},{getRootProps:u,getInputProps:d,isDragActive:f}=eT({multiple:!!r,accept:Object.keys(l).length?l:void 0,onDrop:e=>o(e)}),p=t=>{Array.isArray(e.value)?e.onChange(e.value.filter(e=>
2e.name!==t)):e.onChange(void 0)};return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{...u(),className:(0,m.cn)("border-border bg-muted/30 hover:bg-muted/50 flex cursor-pointer flex-col items-center justify-center rounded-md border border-dashed p-4 text-center transition-colors",f&&"border-primary bg-primary/5"),children:[(0,t.jsx)(i.FormControl,{children:(0,t.jsx)("input",{...d({name:e.name,onBlur:e.onBlur,onChange:e=>{o(Array.from(e.target.files||[]))}}),className:"sr-only"})}),(0,t.jsx)($,{className:"text-muted-foreground my-2 size-6"}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:r?"Drag and drop files, or click to browse":"Drag and drop a file, or click to browse"}),(0,t.jsxs)(c.Text,{element:"span",className:"text-primary text-sm",children:["Upload ",r?"files":"a file"]})]}),(e.value instanceof File||Array.isArray(e.value)&&e.value.length>0)&&(0,t.jsxs)("div",{className:"mt-2 flex flex-col gap-2 rounded border p-3",children:[e.value instanceof File&&(0,t.jsx)(eD,{file:e.value,onRemove:p}),Array.isArray(e.value)&&e.value.map((e,r)=>(0,t.jsx)(eD,{file:e,onRemove:p},`${e.name}-${r}`))]})]})}var eM=e.i(345835),eR=e.i(644868),eV=e.i(994805);let eO=(0,eV.createServerReference)("60d8a154ce294bc49eec5f3b8e670d6010d69a27c1",eV.callServer,void 0,eV.findSourceMapURL,"getBrandSelectorPlaces");var eB=e.i(606761),ez=e.i(375194);let eL="name";function e$(e,t=eL){let r=(0,ez.default)(e,t);return"string"==typeof r&&r.trim()?r.trim():"number"==typeof r&&Number.isFinite(r)?String(r):t===eL?(0,eB.getPlaceDisplayName)(e):""}let eq="other";function eU(e){return{cityKey:"",cityLabel:"",options:[...e].sort(e_)}}function e_(e,t){return e.label.localeCompare(t.label)}function eG(e,t){return e.cityKey===eq?1:t.cityKey===eq?-1:e.cityLabel.localeCompare(t.cityLabel)}function eW({value:e,onChange:n,valuePath:l="name",additionalOptions:s,groupByCity:o=!1}){let{domain:c,venue:u}=(0,a.useParams)(),{data:d,error:f}=(0,eR.default)(["places",c,u??"",l,s],()=>eO(decodeURIComponent(c),l).then(e=>(function({places:e,valuePath:t,additionalOptions:r}){let a=(0,eB.getDuplicatePlaceDisplayNames)(e),n=e.flatMap(e=>{let r=e$(e,t);if(!r)return[];let n=e.default?.address,l=n?.cityOrTown?.trim()||"",i=[n?.addressLine1,l].filter(Boolean).join(", ");return[{key:e.id||r,value:r,label:(0,eB.getDisambiguatedPlaceLabel)(e,a)||r,detail:i||void 0,image:e.default?.images?.primaryImage,city:l}]}),l=new Set(n.map(e=>e.value));return[...(r??[]).filter(e=>!l.has(e.value)).map(e=>({key:`extra:${e.value}`,value:e.value,label:e.label,image:e.image})),...n]})({places:e.places.filter(e=>u?e.default?.slug===u:e$(e,l))||[],valuePath:l,additionalOptions:s})),{revalidateOnFocus:!1,dedupingInterval:3e4}),p=d??[],h=function(e,t){if(!t)return[eU(e)];let r=new Map;for(let t of e){let e=t.city?.trim()||"",a=e?e.toLowerCase():eq,n=e||"Other",l=r.get(a);if(l){l.options.push(t);continue}r.set(a,{cityKey:a,cityLabel:n,options:[t]})}return[...r.values()].some(e=>e.cityKey!==eq&&e.options.length>1)?[...r.values()].map(e=>({...e,options:[...e.options].sort(e_)})).sort(eG):[eU(e)]}(p,o),g=h.some(e=>e.cityKey),x=1===p.length,v=p[0]?.value,y=e||(x?v:"");return((0,r.useEffect)(()=>{x&&v&&e!==v&&n(v)},[x,v,e,n]),void 0!==d||f)?(0,t.jsxs)(F.Select,{value:y,onValueChange:n,disabled:p.length<=1,children:[(0,t.jsx)(i.FormControl,{children:(0,t.jsx)(F.SelectTrigger,{"data-hide-field":1===p.length,className:(0,m.cn)(p.length&&"h-auto min-h-10 pr-4",e&&"p-0"),children:(0,t.jsx)(F.SelectValue,{placeholder:"Select a location"})})}),(0,t.jsx)(F.SelectContent,{children:g?h.map(e=>(0,t.jsxs)(F.SelectGroup,{children:[(0,t.jsx)(F.SelectLabel,{className:"text-muted-foreground px-2 pt-2 pb-1 text-xs font-semibold tracking-wide uppercase",children:e.cityLabel}),e.options.map(e=>(0,t.jsx)(eH,{option:e},e.key))]},e.cityKey)):h[0]?.options.map(e=>(0,t.jsx)(eH,{option:e},e.key))})]}):(0,t.jsx)(i.FormControl,{children:(0,t.jsx)(F.Select,{children:(0,t.jsx)(F.SelectTrigger,{disabled:!0,className:"h-10",children:(0,t.jsx)(F.SelectValue,{placeholder:"Select a location"})})})})}function eH({option:e}){return(0,t.jsx)(F.SelectItem,{value:e.value,className:"group p-0",children:(0,t.jsxs)("div",{className:"flex w-full items-center gap-2 p-1",children:[e.image?(0,t.jsx)("div",{className:"relative flex size-20 overflow-hidden rounded-sm",children:(0,t.jsx)(eM.SafeImage,{src:e.image,alt:"",fill:!0,sizes:"96px",className:"object-cover"})}):null,(0,t.jsxs)("div",{className:"flex flex-col items-start p-2",children:[(0,t.jsx)(c.Text,{element:"p",className:"text-lg leading-snug font-semibold",children:e.label}),e.detail?(0,t.jsx)(c.Text,{element:"span",className:"not-group-hover:text-muted-foreground group-focus:text-accent-foreground leading-snug",children:e.detail}):null]})]})})}function eK({fieldConfig:e,field:r}){if(e.customRenderer)return e.customRenderer(r);switch(e.fieldType){case"textarea":return(0,t.jsx)(i.FormControl,{children:(0,t.jsx)(E.Textarea,{...r,placeholder:e.placeholder,value:r.value})});case"email":return(0,t.jsxs)("div",{className:"relative flex items-center",children:[(0,t.jsx)(z.IconMail,{className:"text-muted-foreground absolute left-2.5 z-10 size-4"}),(0,t.jsx)(i.FormControl,{children:(0,t.jsx)(C.Input,{type:"email",className:"pl-8",...r,placeholder:e.placeholder,value:r.value})})]});case"phone":return(0,t.jsxs)("div",{className:"relative flex items-center",children:[(0,t.jsx)(L.IconPhone,{className:"text-muted-foreground absolute left-2.5 z-10 size-4"}),(0,t.jsx)(i.FormControl,{children:(0,t.jsx)(C.Input,{className:"pl-8",...r,placeholder:e.placeholder,value:r.value})})]});case"checkbox":return(0,t.jsx)("ul",{className:"mt-2 flex flex-col gap-3",children:e.options?.map(e=>{let a=r.value;return(0,t.jsx)("li",{children:(0,t.jsxs)(k.Label,{htmlFor:e.value,className:"flex items-center justify-between gap-3",children:[e.label,(0,t.jsx)(o.Switch,{checked:a?.includes(e.label),onCheckedChange:t=>
2{t?r.onChange([...a,e.label]):r.onChange(a.filter(t=>t!==e.label))},id:e.value})]})},e.value)})});case"radio":return(0,t.jsx)(i.FormControl,{children:(0,t.jsx)(T.RadioGroup,{...r,onValueChange:r.onChange,value:r.value,className:"mt-2 flex flex-col gap-3",children:e.options?.map(e=>(0,t.jsxs)(k.Label,{className:"flex items-center gap-3",children:[(0,t.jsx)(T.RadioGroupItem,{id:e.value,value:e.label}),e.label]},e.value))})});case"dropdown":if(e.multipleSelect){let a=(e.options||[]).map(e=>({...e,value:e.label}));return(0,t.jsx)(i.FormControl,{children:(0,t.jsx)(S.MultiSelect,{options:a,value:Array.isArray(r.value)?r.value:[],onValueChange:r.onChange,placeholder:e.placeholder||"Select options",className:"min-h-10"})})}{let a=[...e.options||[]],n=null==r.value||""===r.value?void 0:String(r.value);n&&!a.some(e=>e.value===n||e.label===n)&&a.unshift({label:n,value:n});let l=a.find(e=>e.value===n||e.label===n)?.label;return(0,t.jsxs)(F.Select,{onValueChange:r.onChange,value:l??"",children:[(0,t.jsx)(i.FormControl,{children:(0,t.jsx)(F.SelectTrigger,{children:(0,t.jsx)(F.SelectValue,{placeholder:e.placeholder})})}),(0,t.jsx)(F.SelectContent,{children:a.map(e=>(0,t.jsx)(F.SelectItem,{value:e.label,children:e.label},e.value))})]})}case"number":return(0,t.jsx)(i.FormControl,{children:(0,t.jsx)(C.Input,{type:"number",...r,placeholder:e.placeholder,value:Number(r.value)||"",onChange:e=>r.onChange(Number(e.target.value))})});case"date":return(0,t.jsx)(M,{field:r,fieldConfig:e});case"time":return(0,t.jsxs)("div",{className:"relative flex w-full items-center gap-2",children:[(0,t.jsx)(V.IconClock,{className:"text-muted-foreground pointer-events-none absolute left-2.5 size-4 select-none"}),(0,t.jsx)(i.FormControl,{children:(0,t.jsx)(C.Input,{type:"time",className:"appearance-none pl-8 [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none",...r,placeholder:e.placeholder,value:r.value})})]});case"dateOfBirth":return(0,t.jsx)(R.DateOfBirthField,{value:r.value,onChange:r.onChange});case"dateTime":return(0,t.jsx)(B,{field:r,fieldConfig:e});case"placeSelector":return(0,t.jsx)(eW,{value:r.value||"",onChange:r.onChange,valuePath:e.valuePath,additionalOptions:e.additionalOptions,groupByCity:e.groupByCity});case"file":return(0,t.jsx)(eI,{field:r,toggleMulti:e.toggleMulti,fileTypes:e.fileTypes});default:return(0,t.jsx)(i.FormControl,{children:(0,t.jsx)(C.Input,{...r,placeholder:e.placeholder,value:r.value})})}}var b=b;let eQ=/(?:([+]\d{1,4})[-.\s]?)?(?:[(](\d{1,3})[)][-.\s]?)?(\d{1,4})[-.\s]?(\d{1,4})[-.\s]?(\d{1,9})/g;var eX=e.i(158753);function eY(e){return e?e.fieldId?e.fieldId:(0,eX.default)(e.label||"",{lower:!0,strict:!0}):""}function eZ(e){return eY(e).replaceAll(".","__")}let eJ=(0,eV.createServerReference)("60f69345fe6f4283f739bd0839ffa21080737e2daa",eV.callServer,void 0,eV.findSourceMapURL,"getBrandVenueGroupPlaces");function e0({onChange:e,valuePath:t,findPath:n,watchId:l}){let i=(0,v.useWatch)({name:l}),{domain:s}=(0,a.useParams)(),{data:o}=(0,eR.default)(["places",s],()=>eJ(decodeURIComponent(s),[t,n]).then(e=>e.places.filter(e=>(0,ez.default)(e,t)).sort((e,t)=>(0,eB.getPlaceDisplayName)(e).localeCompare((0,eB.getPlaceDisplayName)(t)))||[]),{revalidateOnFocus:!1,dedupingInterval:3e4});return(0,r.useEffect)(()=>{let r=o?.find(e=>(0,ez.default)(e,n)===i)||o?.[0];e((0,ez.default)(r,t)||"")},[i,o,n,t,e]),null}let e1={consent:[{label:{content:'I have read and accept the <a href="/privacy-policy" target="_blank">Privacy Policy</a> *'},fieldId:"PrivacyPolicy",required:!0},{label:{content:"I would like to receive marketing updates via email *"},fieldId:"EmailMarketing",required:!0},{label:{content:"I would like to receive marketing updates via SMS"},fieldId:"SmsMarketing"},{label:{content:"I would like to receive marketing updates via phone"},fieldId:"PhoneMarketing"}],fields:[{fieldType:"text",label:"First Name",fieldId:"FirstName",required:!0,columnSpan:3},{fieldType:"text",label:"Last Name",fieldId:"LastName",required:!0,columnSpan:3},{fieldType:"email",label:"Email",fieldId:"Email",required:!0},{fieldType:"phone",label:"Phone",fieldId:"Phone",required:!1},{fieldType:"dateOfBirth",label:"Birthday",fieldId:"BirthDate",required:!1},{fieldType:"dropdown",label:"Receive updates from",fieldId:"SelectedLocationID",required:!0,customRenderer:e=>(0,t.jsx)(eW,{value:e.value,onChange:e.onChange,valuePath:"apps.atreemo.id",groupByCity:!0})},{fieldType:"text",label:"Group ID",fieldId:"groupId",hidden:!0,customRenderer:e=>(0,t.jsx)(e0,{onChange:e.onChange,valuePath:"apps.atreemo.groupId",findPath:"apps.atreemo.id",watchId:"SelectedLocationID"})}],onSubmit:(0,eV.createServerReference)("40553c9f2e09634e0abce95f2c94fdf25ca7575b62",eV.callServer,void 0,eV.findSourceMapURL,"onSubmit")},e4=(0,eV.createServerReference)("40b018589ac34884d3894af70894d6d864f2290467",eV.callServer,void 0,eV.findSourceMapURL,"onSubmit"),e2=(0,eV.createServerReference)("40320d09dd8b4c48b4d57e39bfa0a8f2f3ebfe0adc",eV.callServer,void 0,eV.findSourceMapURL,"onSubmit");var e3=e.i(422191);async function e5({values:e,formFields:t,externalSource:r}){if(!e.venue_id||!e.venue_group)throw Error("Venue and Venue Group are required");let a=new FormData;Object.entries(e).forEach(([e,r])=>{let n=t.find(t=>eZ(t)===e);if(n){if(!e8.fields.find(t=>t.fieldId===e)){let e=["checkbox"].includes(n?.fieldType||"")?`enquiry_details[${eY(n)}][]`:`enquiry_details[${eY(n)}]`;a.append(e,r)}n?.transformer?a.append(e,n.transformer(r)):a.append(e,r)}}),a.append("partner_source",r||e3.PARTNER_SOURCE),a.append("enquiry_type","enquiry"),await fetch("https://bookings.designmynight.com/book",{method:"POST",body:a}).catch(e=>{console.error("Error sending enquiry to DMN:",JSON.stringify(e,null,2))})}let e8={consent:[],fields:[{fieldType:"dropdown",label:"Venue",fieldId:"venue_id",required:!0,customRenderer:e=>(0,t.jsx)(eW,{value:e.value,onChange:e.onChange,valuePath:"apps.designMyNight.id"})},{fieldType:"text",label:"Venue Group",fieldId:"venue_group",hidden:!0,required:!0,customRenderer:e=>(0,t.jsx)(e0,{onChange:e.onChange,valuePath:"apps.designMyNight.groupId",findPath:"apps.designMyNight.id",watchId:"venue_id"})},{fieldType:"text",label:"First Name",columnSpan:3,fieldId:"first_name",required:!0},{fieldType:"text",label:"Last Name",columnSpan:3,fieldId:"last_name",required:!0},{fieldType:"text",label:"Company",fieldId:"company",required:!1},{fieldType:"email",label:"Email",fieldId:"email",required:!0},{fieldType:"phone",label:"Phone",fieldId:"phone",required:!1},{fieldType:"number",label:"Number of Guests",min:2,max:99,fieldId:"num_people",required:!0},{fieldType:"date",label:"Date",min:new Date().getTime(),fieldId:"date",required:!0,transformer:e=>e?(0,I.format)(new Date(e),"yyyy-MM-dd"):""},{fieldType:"time",label:"Time",required:!0},{fieldType:"dropdown",label:"Duration",options:[{label:"1 Hour",value:"60"},{label:"1.5 Hours",value:"90"},{label:"2 Hours",value:"120"},{label:"3 Hours",value:"180"},{label:"4 Hours",value:"240"},{label:"5 Hours",value:"300"},{label:"6 Hours",value:"360"},{label:"7 Hours",value:"420"},{label:"8 Hours",value:"480"}],required:!0},{fieldType:"dateOfBirth",fieldId:"dob",label:"Birthday",required:!1,transformer:e=>e?(0,I.format)(new Date(e),"yyyy-MM-dd"):""},{fieldType:"dropdown",label:"Budget",fieldId:"budget",required:!0,options:[{label:"Under £1000",value:"1000"},{label:"£1000 - £5000",value:"5000"},{label:"£5000 - £10000",value:"10000"},{label:"£10000 - £20000",value:"20000"},{label:"£20000 - £50000",value:"50000"}],transformer:e=>e?parseInt(e):0}],onSubmit:e5}
2,e6=(0,eV.createServerReference)("40430a66a69b5a622dbd612c843b97e32132011aa0",eV.callServer,void 0,eV.findSourceMapURL,"onSubmit"),e7=(0,eV.createServerReference)("40c7812274ce37ffe5943e91206f07adb9143d9480",eV.callServer,void 0,eV.findSourceMapURL,"onSubmit"),e9=e4,te=e2,tt=e6,tr=(0,eV.createServerReference)("700eed505874f3ed55f55be8ad17686457d7d5bcca",eV.callServer,void 0,eV.findSourceMapURL,"getAtreemoSurveyFields"),ta=(0,eV.createServerReference)("70eb7b30fd37a940cb70badf94ca7b43105afc65a1",eV.callServer,void 0,eV.findSourceMapURL,"verifyRecaptchaToken");async function tn({senderName:e,values:t,formFields:r,consentFields:a,formName:n,domain:l,apps:i,recaptchaToken:s,recaptchaSiteKey:o,submissionEmail:c,submissionEmailSubject:u,confirmationEmailField:d,confirmationEmailTemplate:m,confirmationEmailSubject:f}){if(!(i?.contactFormDMN?.active===!0||i?.contactFormGoogleForms?.active===!0&&i.contactFormGoogleForms.id||i?.contactFormAtreemo?.active===!0||i?.contactFormAtreemoSurvey?.active===!0&&i.contactFormAtreemoSurvey.id||i?.contactFormBloomreach?.active===!0||c||d))throw Error("Contact form has no submission integration configured");if(await ta(s,l,o),i?.contactFormAtreemo?.active&&i?.contactFormBloomreach?.active)throw Error("Contact form cannot deliver to Atreemo and Bloomreach at the same time");if(i?.contactFormDMN?.active&&await e8.onSubmit({values:t,formFields:r,externalSource:i.contactFormDMN.externalSource}),i?.contactFormGoogleForms?.active&&i.contactFormGoogleForms.id&&await tt({values:t,formFields:r,consentFields:a,formId:i.contactFormGoogleForms.id}),i?.contactFormAtreemo?.active){let e=a.map(e=>{if(!e1.consent.find(t=>t.fieldId===e.fieldId))return e}),s=[...e1.fields,...i?.contactFormDMN?.active?e8.fields:[]],o=r.map(e=>{if(!s.find(t=>t.fieldId===e.fieldId))return e});await e1.onSubmit({values:t,customFields:[...e,...o].filter(Boolean),formName:n,domain:l})}i?.contactFormAtreemoSurvey?.active&&i.contactFormAtreemoSurvey.id&&await e9({values:t,formFields:r,consentFields:a,formName:n,surveyId:i.contactFormAtreemoSurvey.id}),i?.contactFormBloomreach?.active&&await te({values:t,formFields:r,consentFields:a,domain:l}),(c||d)&&await e7({values:t,formFields:r,senderName:e,submissionEmail:c,submissionEmailSubject:u,confirmationEmailField:d,confirmationEmailSubject:f,confirmationEmailTemplate:m,domain:l,formName:n})}let tl=(0,eV.createServerReference)("403981d403ad4a5176211e2f4d59286bf0bafb481b",eV.callServer,void 0,eV.findSourceMapURL,"getRecaptchaConfig"),ti=new Map;function ts(e){let t=e.trim();if(!t)return Promise.reject(Error("Failed to load reCAPTCHA"));let r=ti.get(t);if(r)return r;let a=`https://www.google.com/recaptcha/api.js?render=${encodeURIComponent(t)}`,n=(async()=>{document.querySelector(`script[data-contact-form-recaptcha="${t}"]`)||await new Promise((e,r)=>{let n=document.createElement("script");n.src=a,n.async=!0,n.defer=!0,n.dataset.contactFormRecaptcha=t,n.addEventListener("load",()=>e(),{once:!0}),n.addEventListener("error",()=>r(Error("Failed to load reCAPTCHA")),{once:!0}),document.head.appendChild(n)}),await new Promise((e,t)=>{let r=window.setTimeout(()=>{t(Error("Failed to load reCAPTCHA"))},2e4),a=()=>{window.clearTimeout(r),e()},n=()=>{window.clearTimeout(r),t(Error("Failed to load reCAPTCHA"))};if(window.grecaptcha?.ready)return void window.grecaptcha.ready(()=>{window.grecaptcha?.execute?a():n()});let l=0,i=window.setInterval(()=>{if(l+=1,window.grecaptcha?.ready){window.clearInterval(i),window.grecaptcha.ready(()=>{window.grecaptcha?.execute?a():n()});return}l>200&&(window.clearInterval(i),n())},50)})})();return ti.set(t,n),n.catch(()=>{ti.delete(t)}),n}async function to(e,t){let r=e.trim();if(await ts(r),!window.grecaptcha?.execute)throw Error("Failed to load reCAPTCHA");return window.grecaptcha.execute(r,{action:t})}function tc({siteKey:e}){return(0,r.useEffect)(()=>{ts(e).catch(e=>{console.error(e)})},[e]),null}function tu(e){let[n,l]=(0,r.useState)(null),[i,s]=(0,r.useState)(null),[o,c]=(0,r.useState)(null),{domain:u,venue:d}=(0,a.useParams)(),m=function(e){let t=e?.contactFormAtreemoSurvey;if(!t?.active)return{status:"off"};let r=t.id?.trim();return r?{status:"ready",surveyId:r}:{status:"missing-id"}}(e.apps),f="ready"===m.status?m.surveyId:void 0,p=m.status;return((0,r.useEffect)(()=>
2{if("ready"!==p||!f){l([]),s([]),c("missing-id"===p?"Add the Atreemo survey OpCode on this form to load questions.":null);return}let e=!1;return l(null),s(null),c(null),tr(f,u,d).then(t=>{e||(l(t.formFields),s(t.consentFields))}).catch(t=>{e||(console.error(t),c("Unable to load survey questions. Please try again later."),l([]),s([]))}),()=>{e=!0}},[f,p,u,d]),f&&null===n)?(0,t.jsx)(w.Wrapper,{className:(0,w.getBlockWidthClassNames)(e.blockWidth,"prose"),children:(0,t.jsxs)("div",{className:"flex items-center justify-center py-12","aria-busy":"true","aria-live":"polite",children:[(0,t.jsx)(g,{className:"text-muted-foreground size-6 animate-spin"}),(0,t.jsx)("span",{className:"sr-only",children:"Loading form"})]})}):(0,t.jsx)(td,{...e,surveyFields:n??[],surveyConsent:i??[],surveyError:o})}function td({blockWidth:e,errorMessage:f,formFields:C,consentFields:k,submitButtonText:S,successMessage:T,formName:F,apps:E,id:A,redirectUrl:P,surveyFields:D,surveyConsent:I,surveyError:M,...R}){let[V]=(0,u.useAutoAnimate)(),O=(0,y.useMediaQuery)("(max-width: 480px)"),[B,z]=(0,r.useState)(!1),[L,$]=(0,r.useState)(!1),[q,U]=(0,r.useState)(null),[_,G]=(0,r.useState)(),{domain:W}=(0,a.useParams)(),H=(0,a.usePathname)(),K=(0,a.useSearchParams)(),Q=(0,a.useRouter)(),X=E?.contactFormAtreemo?.active,Y=E?.contactFormDMN?.active,Z=!!_,J=Z&&!j.IS_DEVELOPMENT;(0,r.useEffect)(()=>{let e=!1;return tl(W).then(t=>{e||G(t?.siteKey)}),()=>{e=!0}},[W]);let ee=F||H,et=(()=>{try{return decodeURIComponent(W)}catch{return W}})(),er=[...I,...X&&e1.consent||[],...Y&&e8.consent||[],...k||[]].reduce((e,t)=>{let r=e.findIndex(e=>e.fieldId===t.fieldId);return t?.fieldId&&-1===r?t?.label?.content&&e.push(t):-1!==r&&(t?.label?.content?e[r]=t:e.splice(r,1)),e},[]),ea=[...D,...X&&!Y&&e1.fields||[],...Y&&e8.fields||[],...C||[]].reduce((e,t)=>{let r=eY(t),a=e.findIndex(e=>eY(e)===r);return -1===a?t?.label&&e.push(t):t?.label?e[a]=t:e.splice(a,1),e},[]),en=b.object({}).extend([...er,...ea].reduce((e,t)=>({...e,[eZ(t)]:(e=>{if(!("fieldType"in e))return e.required?b.literal(!0,{message:"This is required"}):b.boolean();switch(e.fieldType){case"textarea":case"radio":case"text":case"time":case"placeSelector":return e.required?b.string().min(1,"This field is required"):b.string().optional();case"dropdown":if(e.multipleSelect)return e.required?b.array(b.string()).min(1,"This field is required"):b.array(b.string()).optional();return e.required?b.string().min(1,"This field is required"):b.string().optional();case"checkbox":return e.required?b.array(b.string()).min(1,"This field is required"):b.array(b.string()).optional();case"email":{let t=(e.allowedEmailDomains||[]).map(e=>e.trim().toLowerCase().replace(/^@/,"")).filter(Boolean),r=b.email("Invalid email address").refine(e=>!t.length||t.some(t=>e.toLowerCase().endsWith(`@${t}`)),1===t.length?`Email address must end with @${t[0]}`:`Email address must use one of: ${t.map(e=>`@${e}`).join(", ")}`);return e.required?r.min(1,"This field is required"):b.union([r,b.literal("")]).optional()}case"phone":return e.required?b.string().min(1,"This field is required").regex(eQ,"Please enter a valid phone number"):b.string().trim().regex(eQ,"Please enter a valid phone number").optional().or(b.literal(""));case"number":let t=b.number();return e.required&&(t=t.min(1,"This field is required")),e.min&&(t=t.min(e.min)),e.max&&(t=t.max(e.max)),t;case"date":return e.required?b.union([b.date(),b.undefined()]).refine(e=>void 0!==e,{message:"This field is required"}):b.date().optional();case"dateOfBirth":return e.required?b.union([b.date(),b.undefined()]).refine(e=>void 0!==e,{message:"This field is required"}):b.date().optional();case"dateTime":return e.required?b.union([b.date(),b.undefined()]).refine(e=>void 0!==e,{message:"This field is required"}):b.date().optional();case"file":if(e.toggleMulti)return b.custom(t=>!t||Array.isArray(t)&&0===t.length?!e.required:!("u"<typeof File)&&!!Array.isArray(t)&&t.every(e=>e instanceof File),{message:e.required?"Please upload at least one file":"Please upload valid files"});return b.custom(t=>t?!("u"<typeof File)&&t instanceof File:!e.required,{message:e.required?"This field is required":"Please upload a valid file"});default:return b.string()}})(t)}),{})),el={...[...er,...ea].reduce((e,t)=>
2{let r=eY(t),a=eZ(t);if(!("fieldType"in t))return e[a]=!!t.preChecked,e;if("checkbox"===t.fieldType){let n=K.get(r)??K.get(a),l=t.options||[],i=e=>e.map(e=>{let t=l.find(t=>t.value===e||t.label===e);return t?.label??e});n?e[a]=i(n.split(",").map(e=>e.trim())):Array.isArray(t.defaultValue)?e[a]=i(t.defaultValue.map(String)):"string"==typeof t.defaultValue&&t.defaultValue.length?e[a]=i(t.defaultValue.split(",").map(e=>e.trim())):e[a]=[]}else if("dropdown"===t.fieldType&&t.multipleSelect){let n=K.get(r)??K.get(a),l=t.options||[],i=e=>e.map(e=>{let t=l.find(t=>t.value===e||t.label===e);return t?.label??e});n?e[a]=i(n.split(",").map(e=>e.trim())):Array.isArray(t.defaultValue)?e[a]=i(t.defaultValue.map(String)):"string"==typeof t.defaultValue&&t.defaultValue.length?e[a]=i(t.defaultValue.split(",").map(e=>e.trim())):e[a]=[]}else if("dropdown"===t.fieldType){let n=K.get(r)??K.get(a),l=t.options||[],i=n??(Array.isArray(t.defaultValue)?t.defaultValue[0]:null!=t.defaultValue?String(t.defaultValue):""),s=l.find(e=>e.value===i||e.label===i);e[a]=s?.label??(i||"")}else if("radio"===t.fieldType){let n=K.get(r)??K.get(a),l=t.options||[],i=n??(Array.isArray(t.defaultValue)?t.defaultValue[0]:null!=t.defaultValue?String(t.defaultValue):""),s=l.find(e=>e.value===i||e.label===i);e[a]=s?.label??(i||"")}else if("number"===t.fieldType){let n=K.get(r)??K.get(a);n?e[a]=Number(n):"number"==typeof t.defaultValue?e[a]=t.defaultValue:"string"==typeof t.defaultValue&&t.defaultValue.length?e[a]=Number(t.defaultValue):e[a]=t.min||0}else if(["date","dateOfBirth","dateTime"].includes(t.fieldType)){let n=K.get(r)??K.get(a);if(n)try{e[a]=new Date(n)}catch{e[a]=void 0}else if("string"==typeof t.defaultValue&&t.defaultValue.length)try{e[a]=new Date(t.defaultValue)}catch{e[a]=void 0}else e[a]=void 0}else if("file"===t.fieldType)e[a]=t.toggleMulti?[]:void 0;else{let n=K.get(r)??K.get(a);n?e[a]=n:Array.isArray(t.defaultValue)?e[a]=t.defaultValue[0]||"":"number"==typeof t.defaultValue?e[a]=String(t.defaultValue):"string"==typeof t.defaultValue?e[a]=t.defaultValue:e[a]=""}return e},{})},ei=(0,v.useForm)({resolver:(0,d.zodResolver)(en),defaultValues:el});return(0,t.jsxs)(w.Wrapper,{className:(0,w.getBlockWidthClassNames)(e,"prose"),children:[(0,t.jsx)(i.Form,{...ei,children:(0,t.jsxs)("form",{id:A,ref:V,onSubmit:ei.handleSubmit(async e=>{let t;U(null);let r={formId:A,formName:ee,domain:et,redirectUrl:P};if(J&&_)try{t=await to(_,"contact_form")}catch(e){console.error(e),U("Unable to load reCAPTCHA. Check your site key, allowed domains in Google admin, and disable ad blockers for this site.");return}return await tn({values:e,formFields:ea,consentFields:er,domain:W,formName:ee,apps:E,recaptchaToken:t,recaptchaSiteKey:_,...R}).then(()=>{if(N("contact_form_submission",r),P){ei.reset();let t=((e,t)=>{if(e)return e.replaceAll(/{{([^}]+)}}/g,(e,r)=>{let a=t[r]??t[r.replaceAll(".","__")];return void 0!==a?String(a):e})})(P,e)||P;try{let e=new URL(t,window.location.origin);e.origin!==window.location.origin?window.location.href=e.toString():Q.push(e.pathname+e.search+e.hash)}catch{Q.push(t)}return}z(!0),ei.reset()}).catch(e=>{let t=e instanceof Error?e.message:"string"==typeof e?e:"Unknown submission error";N("contact_form_submission_error",{...r,reason:t}),console.error(e),$(!0)})},e=>console.log(e)),className:"flex w-full flex-col gap-5",children:[(0,t.jsx)("div",{className:"grid grid-cols-6 gap-4 gap-y-5",children:ea?.map(({hidden:e,...r},a)=>(0,t.jsx)(i.FormField,{control:ei.control,name:eZ(r),render:({field:a})=>(0,t.jsxs)(i.FormItem,{className:(0,m.cn)({hidden:e},"has-data-[hide-field=true]:hidden"),style:{gridColumn:r.columnSpan&&!O?`span ${r.columnSpan}`:"1 / -1"},children:[(0,t.jsxs)(i.FormLabel,{children:[r.label," ",r.required&&"*"]}),(0,t.jsx)(eK,{fieldConfig:r,field:a}),r.helpText&&(0,t.jsx)(c.Text,{element:"span",className:"text-muted-foreground col-span-f text-sm leading-none",children:r.helpText}),(0,t.jsx)(i.FormMessage,{})]})},r.label+a))}),!!er?.length&&(0,t.jsx)("div",{className:"border-border bg-card text-card-foreground flex flex-col gap-5 rounded-lg border p-4 py-4",children:er.map(e=>(0,t.jsx)(i.FormField,{control:ei.control,name:eZ(e),render:({field:r})=>(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)(i.FormItem,{className:"flex flex-row items-center justify-between space-y-0",children:[(0,t.jsx)(i.FormLabel,{className:"grow",children:(0,t.jsx)(s.RichText,{children:e.label.content})}),(0,t.jsx)(i.FormControl,{children:(0,t.jsx)(o.Switch,{...r,value:String(r.value),checked:r.value,onCheckedChange:e=>r.onChange(e)}
2)})]}),(0,t.jsx)(i.FormMessage,{})]})},e.fieldId))},"marketing"),Z&&_&&(0,t.jsx)(tc,{siteKey:_}),(0,t.jsxs)("div",{className:"mt-2 flex flex-col items-center gap-3",children:[M&&(0,t.jsx)(c.Text,{element:"span",className:"text-destructive text-sm",children:M}),q&&(0,t.jsx)(c.Text,{element:"span",className:"text-destructive text-sm",children:q}),(0,t.jsxs)("div",{className:"flex items-center justify-center gap-3",children:[j.IS_DEVELOPMENT&&(0,t.jsx)(n.Button,{type:"button",variant:"outline",onClick:()=>console.log(ei.getValues()),children:"Log form state"}),(0,t.jsxs)(n.Button,{type:"submit",disabled:ei.formState.isSubmitting,children:[S||"Submit",ei.formState.isSubmitting?(0,t.jsx)(g,{className:"size-4 animate-spin"}):(0,t.jsx)(x,{className:"size-4"})]})]}),Z&&(0,t.jsxs)(c.Text,{element:"p",className:"text-muted-foreground max-w-prose text-center text-xs",children:["This site is protected by reCAPTCHA and the Google"," ",(0,t.jsx)("a",{href:"https://policies.google.com/privacy",className:"underline",target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"})," ","and"," ",(0,t.jsx)("a",{href:"https://policies.google.com/terms",className:"underline",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})," ","apply."]})]})]})}),(0,t.jsx)(l.Dialog,{open:B,onOpenChange:z,children:(0,t.jsx)(l.DialogContent,{children:(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsxs)(l.DialogTitle,{className:"flex items-center gap-3",children:[(0,t.jsx)(h.IconCircleCheckFilled,{className:"text-success size-6"})," Success"]}),(0,t.jsx)(l.DialogDescription,{asChild:!0,children:(0,t.jsx)(s.RichText,{children:T?.content||"Thank you for your submission, we will be in touch shortly."})})]})})}),(0,t.jsx)(l.Dialog,{open:L,onOpenChange:$,children:(0,t.jsx)(l.DialogContent,{children:(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsxs)(l.DialogTitle,{className:"flex items-center gap-3",children:[(0,t.jsx)(p,{className:"text-destructive size-6"})," Error"]}),(0,t.jsx)(l.DialogDescription,{asChild:!0,children:(0,t.jsx)(s.RichText,{children:f?.content||"There was an error with your submission, please try again."})})]})})})]})}e.s(["ContactForm",0,function(e){return(0,t.jsx)(r.Suspense,{children:(0,t.jsx)(tu,{...e})})},"ContactFormClient",0,tu],978921)},316347,e=>{"use strict";var t=e.i(644418),r=e.i(478110),a=e.i(521490),n=e.i(314038),l=e.i(292831),i=e.i(243079);function s({startsAtUnix:e,title:n}){let[,l]=(0,r.useState)(0);(0,r.useEffect)(()=>{let e=window.setInterval(()=>l(e=>e+1),1e3);return()=>window.clearInterval(e)},[]);let i=Math.max(0,e-Math.floor(Date.now()/1e3));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Text,{element:"p",elementStyle:"h2",className:"leading-none!",children:function(e){if(e<=0)return"Now";let t=Math.floor(e/86400),r=Math.floor(e%86400/3600),a=Math.floor(e%3600/60),n=e%60,l=e=>String(e).padStart(2,"0");return t>0?`${t}d ${r}h ${a}m ${n}s`:`${l(r)}:${l(a)}:${l(n)}`}(i)}),(0,t.jsx)(a.Text,{element:"p",className:"text-muted-foreground pb-2 leading-none!",children:n})]})}e.s(["EventCountdownLive",0,function({hit:e,referencedByIds:o,slugFilter:c,upcomingWindow:u,upcomingDays:d,initialFrom:m,initialTo:f}){let[p,h]=(0,r.useState)(e);return((0,r.useEffect)(()=>{let e=!1,t=new Date,{datesStart:r,endFilter:a}=(0,l.eventSearchWindow)(t),{fromSeconds:s,toSeconds:p}=(0,i.resolveEventsDateRange)({upcomingWindow:u,upcomingDays:d,initialFrom:m,initialTo:f,at:t}),g=[`dates:>=${s??r}`,null!=p&&`dates:<=${p}`].filter(Boolean).join(" && "),x=`_referencedBy:=[${o.join(",")}] && ${a} && ${g}${c}`;return n.typesense.collections((0,n.getIndexName)("event")).documents().search({q:"*",query_by:"*",sort_by:"dates:asc",group_by:"slug",group_limit:1,filter_by:x,per_page:50}).then(t=>{if(e)return;let r=(t.grouped_hits?.flatMap(e=>e.hits?.map(e=>e.document)??[])??[]).sort((e,t)=>e.dates-t.dates)[0];r?h(e=>e?.id===r.id&&e.dates===r.dates?e:r):h(void 0)}).catch(()=>void 0),()=>{e=!0}},[m,f,o,c,d,u]),p)?(0,t.jsx)(s,{startsAtUnix:p.dates,title:p.eventName||p.name}):(0,t.jsx)(a.Text,{element:"p",className:"text-muted-foreground text-sm",children:"No upcoming events in this range."})}],316347)},717565,e=>{"use strict";var t=e.i(478110),r=e.i(921290),a=e.i(994805);let n=(0,a.createServerReference)("40e0658808c4162a14ba4462ec74f12d8f031800d9",a.callServer,void 0,a.findSourceMapURL,"track");
2e.s(["FacebookConversionsAPIClient",0,function({params:e,eventType:a}){let l=(0,r.useSearchParams)(),i=l.get("email"),s=l.get("firstName"),o=l.get("lastName"),c=l.get("id");return(0,t.useEffect)(()=>{n({params:e,eventType:a,email:i,firstName:s,lastName:o,eventId:c})},[e,a,i,s,o,c]),null}],717565)},307465,e=>{"use strict";var t=e.i(644418),r=e.i(184880),a=e.i(659273),n=e.i(521490),l=e.i(7284),i=e.i(762827),s=e.i(484330),o=e.i(10442);let c={1:"sm:basis-1/1",2:"sm:basis-1/2",3:"sm:basis-1/2 lg:basis-1/3",4:"sm:basis-1/2 lg:basis-1/4",5:"sm:basis-1/2 lg:basis-1/4 xl:basis-1/5",6:"sm:basis-1/2 lg:basis-1/4 xl:basis-1/6",7:"sm:basis-1/2 lg:basis-1/4 xl:basis-1/6 2xl:basis-1/7",8:"sm:basis-1/2 lg:basis-1/4 xl:basis-1/6 2xl:basis-1/8"};e.s(["IconGrid",0,function({title:e,icons:u,id:d,margin:m,blockWidth:f,layout:p,cardsPerSlide:h,autoPlay:g,showProgressIndicator:x,showNavigationArrows:v}){if(!u||0===u.length)return null;let y=u.map((e,n)=>(0,t.jsxs)("div",{className:(0,r.cn)({"max-w-[min(100vw,20rem)]":"carousel"!==p},"group z-10 flex w-full flex-col items-center justify-start px-12 py-6"),children:[e.icon?.svg&&(0,t.jsx)(i.default,{className:"group-hover:animate-wobble text-primary mb-3 size-16 stroke-[1.5]",src:e.icon.svg}),(0,t.jsx)(a.RichText,{children:e.text.content})]},n));return(0,t.jsxs)(o.Wrapper,{id:d,className:(0,l.default)("flex flex-col gap-8",(0,o.getMarginClassNames)(m),(0,o.getBlockWidthClassNames)(f,"wide"),{"px-0! sm:px-0!":"carousel"===p}),children:[e&&(0,t.jsx)(n.Text,{element:"h2",elementStyle:"h2",className:"text-center",children:e}),"carousel"===p?(0,t.jsx)(s.Carousel,{layout:"padded",autoPlayDuration:4e3,hideButtons:!1===v,hidePagination:!1===x,classNames:{carouselContent:"-ml-2 sm:-ml-2",carouselItem:(0,l.default)(c[Number(h)]||c[3],o.columnsClassName,"items-center pl-2 text-center sm:pl-2")},items:y}):(0,t.jsx)("div",{className:"relative z-10 flex w-full flex-wrap items-start justify-center gap-4",children:y})]})}])},618605,e=>{"use strict";var t=e.i(644418),r=e.i(954512),a=e.i(7284),n=e.i(616504),l=e.i(161593);let i="linear-gradient(to right, transparent, white 10%, white 90%, transparent)";e.s(["LogoCarousel",0,function({logos:e,className:s}){let o=(e??[]).filter(({logo:e})=>!!(0,n.imageMetaConverter)(e));return 0===o.length?null:(0,t.jsx)("div",{className:(0,a.default)("relative w-full overflow-hidden",s),style:{maskImage:i,WebkitMaskImage:i},children:(0,t.jsx)(l.Marquee,{itemClassName:"items-center gap-16 pr-16",renderItem:e=>o.map(({name:a,logo:l,url:i},s)=>{let o=(0,n.imageMetaConverter)(l);if(!o?.src)return null;let c=(0,t.jsx)("img",{src:o.src,alt:o.alt||a||"",className:"max-h-16 w-auto shrink-0 object-contain select-none"}),u=`${e}-${s}`;return i?(0,t.jsx)(r.default,{title:a,href:i,className:"block transition-transform active:scale-95",children:c},u):(0,t.jsx)("div",{className:"relative",children:c},u)})})})}])},771415,e=>{"use strict";var t=e.i(644418);let r=(0,e.i(242119).default)("outline","tag-off","TagOff",[["path",{d:"M7.149 7.144a.498 .498 0 0 0 .351 .856a.498 .498 0 0 0 .341 -.135",key:"svg-0"}],["path",{d:"M3.883 3.875a2.99 2.99 0 0 0 -.883 2.125v5.172a2 2 0 0 0 .586 1.414l7.71 7.71a2.41 2.41 0 0 0 3.408 0l2.796 -2.796m2.005 -2.005l.79 -.79a2.41 2.41 0 0 0 0 -3.41l-7.71 -7.71a2 2 0 0 0 -1.412 -.585h-4.173",key:"svg-1"}],["path",{d:"M3 3l18 18",key:"svg-2"}]]);var a=e.i(7284),n=e.i(538216),l=e.i(537468),i=e.i(903539),s=e.i(484330),o=e.i(244387);e.i(15744);var c=e.i(174887);let u=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"];function d(e){if(null==e)return null;if("object"==typeof e){let t=e.seconds??e._seconds;return"number"==typeof t?new Date(1e3*t):null}let t=new Date(e);return Number.isNaN(t.getTime())?null:t}function m(e=new Date){return(0,c.formatInTimeZone)(e,"Europe/London","EEEE").toLowerCase()}function f(e){return(e.availability?.availableDays||[]).map(e=>"string"==typeof e?e:e.value||e.label||"").map(e=>e.trim().toLowerCase()).filter(e=>u.includes(e))}function p(e,t=new Date){let r=d(e.availability?.startsAt),a=d(e.availability?.endsAt);if(r&&t<r||a&&t>a)return!1;let n=f(e);return 0===n.length||n.includes(m(t))}var h=e.i(10442);let g={1:"sm:basis-full",2:"sm:basis-1/2",3:"sm:basis-1/2 lg:basis-1/3",4:"sm:basis-1/2 lg:basis-1/4",5:"sm:basis-1/2 lg:basis-1/4 xl:basis-1/5",6:"sm:basis-1/2 lg:basis-1/4 xl:basis-1/6"};e.s(["OfferGridClient",0,function({offers:e,catalogueCount:c,cachedNowMs:d,params:x,id:v,layout:y,cardLayout:b,maximumOffers:j,columns:w,alternateCards:N,cardsPerSlide:C,autoPlay:k,showProgressIndicator:S,showNavigationArrows:T,showDescription:F,showBookingButton:E,showDetail
2sButton:A,todayTreatment:P,availabilityPills:D,highlightAvailableToday:I,imageRatio:M,preserveImageAspectRatio:R,blockWidth:V,margin:O}){let B=(0,n.useFreshNow)(d),z="first"===P?e.map((e,t)=>({offer:e,index:t,availableToday:p(e,B)})).sort((e,t)=>Number(t.availableToday)-Number(e.availableToday)||e.index-t.index).map(({offer:e})=>e):"only"===P?e.filter(e=>p(e,B)):e,L=Number(j),$=Number.isFinite(L)&&L>0?z.slice(0,Math.floor(L)):z,q="automatic"!==b&&b?b:"list"===y?"horizontal":"vertical",U=m(B),_=$.map((e,r)=>{let n,{name:s,details:c,bookingButtonText:d,bookingButtonUrl:m,cardLink:h}=e,{href:g}=(({params:e,href:t,actions:r,rte_description:a,transition:n,...l})=>({...l,href:(0,o.getPrefixedHref)(t,e.venue,e.venuesPage),actions:{primary:{...r?.primary,scroll:!!(r?.primary?.href?.includes("/")||r?.primary?.href?.includes("#")),href:(0,o.getPrefixedHref)(r?.primary?.href,e.venue,e.venuesPage)},secondary:{...r?.secondary,scroll:!!(r?.secondary?.href?.includes("/")||r?.secondary?.href?.includes("#")),href:(0,o.getPrefixedHref)(r?.secondary?.href,e.venue,e.venuesPage)}},description:e?.venue?function(e,t){if(!e)return;let r=`/${t.split("/").filter(Boolean).join("/")}`,a=`/${r.split("/").filter(Boolean)[0]||""}`;return e.replace(/href=(['"])([^'"]*)\1/gi,(e,t,n)=>{if(/^(?:https?:)?\/\//i.test(n)||/^(?:mailto:|tel:|#)/i.test(n))return e;let l=`/${n.split("/").filter(Boolean).join("/")}`;for(;l.startsWith(`${r}${r}`);)l=l.slice(r.length);return l===r||l.startsWith(`${r}/`)||l===a||l.startsWith(`${a}/`)||"/venues"===l||l.startsWith("/venues/")?`href=${t}${l}${t}`:`href=${t}${r}${l}${t}`})}(a?.content||"",`/${e.venuesPage}/${e.venue}`):a?.content}))({params:x,href:h||`/offers/${c.slug}`}),v=p(e,B),b=(n=f(e),u.filter(e=>n.includes(e)).map(e=>`${e[0].toUpperCase()}${e.slice(1,3)}`)),j="today"===D?v?(0,t.jsx)(l.Badge,{className:"w-fit",children:"Available today"}):null:"weekdays"===D&&b.length>0?(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5","aria-label":"Offer availability",children:b.map(e=>(0,t.jsx)(l.Badge,{variant:v&&e.toLowerCase()===U.slice(0,3)?"default":"outline",children:e},e))}):null;return(0,t.jsx)(i.Card,{title:c.title,image:c.image,preserveAspectRatio:R,ratio:"list"===y?void 0:"landscape"===M?{desktop:"netflix-(2:1)",mobile:"netflix-(2:1)"}:{desktop:"square-(1:1)",mobile:"square-(1:1)"},href:g,layout:q,description:F?c.shortDescription:void 0,actions:{primary:E?{text:d||`Book ${c.title}`,scroll:!1,href:m||"?bookings=true"}:void 0,secondary:A?{text:"Find out More",href:g}:void 0},reverse:"list"===y&&N&&r%2!=0,className:(0,a.default)("list"===y&&"max-w-none! px-0! sm:px-0!",I&&v&&"ring-primary ring-offset-background ring-2 ring-offset-4"),children:j},s)});if(0===_.length)return(0,t.jsx)(i.Card,{icon:{svg:(0,t.jsx)(r,{stroke:1.5,size:64})},contentAlignment:{alignment:{horizontalAlignment:"center"}},layout:"dialog",title:"only"===P&&c>0?"No offers available today.":"No offers available.",description:"Please try again later."});let G=(0,a.default)((0,h.getMarginClassNames)(O),(0,h.getBlockWidthClassNames)(V,"list"===y?"standard":"wide"),"list"===y&&"flex-col gap-8");if("list"===y)return(0,t.jsx)(h.Wrapper,{id:v,className:G,children:_});if("carousel"===y){let e=Math.min(6,Math.max(1,Number(C)||3));return(0,t.jsx)(h.Wrapper,{id:v,className:G,children:(0,t.jsx)(s.Carousel,{layout:"padded",autoPlayDuration:k?4e3:void 0,hideButtons:!T,hidePagination:!S,classNames:{carouselContent:"-ml-2 sm:-ml-2",carouselItem:(0,a.default)("basis-full pl-2 sm:pl-2",g[e],h.columnsClassName)},items:_})})}return(0,t.jsx)(h.Wrapper,{id:v,className:G,children:(0,t.jsx)("div",{className:(0,a.default)("grid w-full grid-cols-1 gap-6 sm:grid-cols-2 sm:gap-8",{"lg:grid-cols-2":"2"===w,"lg:grid-cols-3":"3"===w,"lg:grid-cols-4":"4"===w}),children:_})})}
2],771415)},374685,e=>{"use strict";var t=e.i(644418),r=e.i(478110),a=e.i(184880),n=e.i(345923),l=e.i(318567),i=e.i(903539),s=e.i(118771),o=e.i(221121),c=e.i(4228),u=e.i(129002),d=e.i(290585),m=e.i(10442),f=e.i(537468),p=e.i(521490),h=e.i(813963),g=e.i(146474),x=e.i(351789);function v({excerpt:e,image:r,preserveAspectRatio:a,publishedDate:n,slug:s,categories:o,title:c}){let{placeSlug:u}=(0,x.useChannel)(),d=`${u}/blog/${s}`;return(0,t.jsx)(i.Card,{title:c,image:r,href:d,layout:"vertical",className:"group h-auto",classNames:{description:"line-clamp-4",content:"grow"},description:e,ratio:{desktop:"landscape-(3:2)",mobile:"landscape-(3:2)"},preserveAspectRatio:a,children:(0,t.jsxs)(t.Fragment,{children:[!!o?.filter(Boolean).length&&(0,t.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:o?.map(e=>(0,t.jsx)(f.Badge,{variant:"outline",children:e},e))}),(0,t.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,t.jsx)(p.Text,{element:"p",className:"text-sm",children:(0,h.formatTime)(n,"dd MMM, yyyy")}),(0,t.jsxs)(l.Button,{href:d,className:"gap-3 group-hover:opacity-100",variant:"link",children:["Read more",(0,t.jsx)(g.IconArrowRight,{size:16})]})]})]})},c)}e.s(["PostGridClient",0,function({id:e,params:{venue:f},items:p,filterOptions:h,limit:g,margin:x,blockWidth:y}){let b=(0,r.useRef)(null),[j,w]=(0,r.useState)(""),[N,C]=(0,r.useState)(1),k=g||36,S=(0,r.useMemo)(()=>{let e=new Map;for(let t of p)for(let r of t.categories||[])r&&e.set(r,(e.get(r)||0)+1);return[...e.entries()].map(([e,t])=>({value:e,count:t}))},[p]),T=(0,r.useMemo)(()=>j?p.filter(e=>e.categories?.includes(j)):p,[j,p]),F=g?T.slice(0,g):T,E=g?1:Math.max(1,Math.ceil(F.length/k)),A=Math.min(N,E),P=F.slice((A-1)*k,A*k);return(0,t.jsxs)(t.Fragment,{children:[!!S.length&&!!h?.length&&(0,t.jsx)(n.ActionBarWrapper,{className:"-mt-16 w-[calc(100%-2rem)] overflow-clip sm:-mt-28 lg:w-max",children:(0,t.jsxs)("div",{className:"group relative flex w-full items-center gap-1 lg:min-w-96",children:[(0,t.jsx)(s.Label,{className:"sr-only",children:"Category"}),(0,t.jsxs)(c.Select,{value:j,onValueChange:e=>{w(e),C(1)},children:[(0,t.jsx)(c.SelectTrigger,{className:(0,a.cn)("h-14 shadow-none font-button hover:bg-accent hover:text-accent-foreground bg-transparent w-full min-w-max items-center justify-between gap-3 border-none",j&&"rounded-r-none"),children:(0,t.jsx)(c.SelectValue,{placeholder:"All categories"})}),(0,t.jsx)(c.SelectContent,{children:(0,t.jsxs)(c.SelectGroup,{children:[(0,t.jsx)(c.SelectLabel,{children:"Categories"}),(0,t.jsx)(c.SelectSeparator,{}),S.map(({value:e,count:r})=>(0,t.jsxs)(c.SelectItem,{className:"group",value:e,children:[e,(0,t.jsx)("span",{className:"not-group-hover:text-muted-foreground",children:r})]},e))]})})]}),j&&(0,t.jsx)(l.Button,{variant:"ghost",size:"icon",className:"h-14! rounded-l-none border-l",onClick:()=>{w(""),C(1)},children:(0,t.jsx)(d.IconX,{className:"size-4"})})]})}),(0,t.jsx)("section",{ref:b,id:e,className:(0,a.cn)("grid w-full grid-cols-1 items-start gap-4 gap-y-8 px-4 sm:grid-cols-2 sm:gap-8 sm:gap-y-12 sm:px-8 lg:grid-cols-3",(0,m.getMarginClassNames)(x),(0,m.getBlockWidthClassNames)(y,"wide")),children:F.length?P.map((e,r)=>(0,t.jsx)(v,{...e,venue:f},`post-grid-${e.id||r}`)):(0,t.jsx)(i.Card,{icon:{svg:(0,t.jsx)(u.IconNewsOff,{stroke:1.5,size:64})},contentAlignment:{alignment:{horizontalAlignment:"center"}},className:"col-span-full",layout:"dialog",title:"No posts available.",description:"Please try again later."})}),E>1&&!g&&(0,t.jsx)(o.Pagination,{variant:"numbers",totalPages:E,scrollTargetRef:b,currentPage:A,onPageChange:C})]})}],374685)},869833,e=>{"use strict";var t=e.i(644418),r=e.i(850018),a=e.i(699622),n=e.i(7284),l=e.i(762827),i=e.i(351789),s=e.i(616504);let o=new Intl.NumberFormat("en-GB",{style:"currency",currency:"GBP"});var c=e.i(154564),u=e.i(158592),d=e.i(537468),m=e.i(318567),f=e.i(813515),p=e.i(10442);let h="z-20 grid w-full grid-cols-1 items-start gap-6 @2xl:grid-cols-2 @5xl:grid-cols-3 @7xl:grid-cols-4";function g({plan:e,priceAccordionTitle:f,salePriceTitle:p,regularPriceTitle:h}){let{bookingTypes:x}=(0,i.useChannel)(),v=!x?.length,y=(0,s.imageMetaConverter)(e.image),b=!!e.featureLabel,j="none"!==e.buttonType&&!(v&&"open-booking-drawer"===e.buttonType),w=!!(e.secondaryButtonText?.trim()&&e.secondaryButtonType?.trim());return(0,t.jsxs)(c.ThreeDee,{className:(0,n.default)("overflow-hidden backdrop-blur-lg",{"border-primary":b}),children:[y?.src&&(0,t.jsx)("div",{className:"relative h-48 w-full",children:(0,t.jsx)(r.default,{...y,alt:e.title,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",fill:!0,className:"object-cover"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-5 p-4 sm:p-6",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[b&&(0,t.jsx)(d.Badge,{className:"absolute -mt-9 translate-y-
2px",children:e.featureLabel}),(0,t.jsx)("h3",{className:"text-base font-medium",children:e.title}),(0,t.jsx)("div",{children:(0,t.jsxs)("p",{children:[e.pricesFrom&&(0,t.jsx)("span",{className:"text-sm font-medium",children:"From "}),(0,t.jsx)("span",{className:"text-4xl font-bold",children:e.price?o.format(e.price):"FREE"}),(0,t.jsxs)("span",{className:"text-sm",children:[e.pricesPerSymbol&&"/"," ",e.unit]})]})}),e.description&&(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:e.description}),e.additionalPrices&&(0,t.jsx)(u.Accordion,{className:"-mt-2",type:"single",collapsible:!0,items:[{title:f||"Additional Prices",content:(0,t.jsxs)("table",{children:[p&&h&&e.additionalPrices.some(e=>e.salePrice)&&(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"text-left",children:[(0,t.jsx)("th",{className:"sr-only",children:"Price name"}),(0,t.jsx)("th",{className:"pr-3 text-sm font-medium",children:h}),(0,t.jsx)("th",{className:"pr-3 text-sm font-medium",children:p})]})}),(0,t.jsx)("tbody",{className:"w-full",children:e.additionalPrices.map(e=>{let r=e.salePrice||e.price;return(0,t.jsxs)("tr",{className:"w-full align-baseline",children:[(0,t.jsx)("td",{className:"w-full text-sm",children:e.unit}),(0,t.jsx)("td",{className:"text-muted-foreground pr-3 line-through",children:e.salePrice&&o.format(e.price)}),(0,t.jsx)("td",{className:"pr-3 font-medium",children:r?o.format(r):"FREE"})]},e.unit)})})]})}]})]}),(j||w)&&(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[j&&(0,t.jsx)(m.Button,{variant:b?"default":"secondary",action:e.buttonType&&"open-booking-drawer"!==e.buttonType?void 0:"open-booking-panel",href:"link"===e.buttonType?e.buttonHref:void 0,size:"sm",children:e.buttonText||"Buy Now"}),w&&(0,t.jsx)(m.Button,{variant:"outline",href:e.secondaryButtonType,size:"sm",children:e.secondaryButtonText})]}),(0,t.jsx)("ul",{className:"flex flex-col gap-2",children:e.features?.map(e=>{let r=e.icon?.svg;return(0,t.jsxs)("li",{className:"flex gap-3",children:[r?(0,t.jsx)(l.default,{src:r,className:"size-4.5 translate-y-0.5"}):(0,t.jsx)(a.IconCircle,{className:"mx-0.5 size-3 translate-y-1"}),e.text]},e.text)})})]})]},e.title)}e.s(["PricingPlan",0,g,"PricingTable",0,function({plans:e,priceAccordionTitle:r,margin:a,blockWidth:l,salePriceTitle:i,regularPriceTitle:s}){let o=e?.reduce((e,t)=>(t.categories?.forEach(r=>{e[r.label]||(e[r.label]=[]),e[r.label].push(t)}),e),{});return Object.keys(o).length?(0,t.jsx)(p.Wrapper,{className:(0,n.default)("@container",(0,p.getMarginClassNames)(a),(0,p.getBlockWidthClassNames)(l,"standard")),children:(0,t.jsx)(f.Tabs,{classNames:{content:"py-2 pt-8",listContainer:"sticky top-14 sm:top-16 pt-4 sm:pt-2 z-30",list:"shadow-lg backdrop-blur-lg"},items:Object.keys(o).sort().map(e=>({title:e,content:(0,t.jsx)("div",{className:h,children:!!o[e].length&&o[e].map(e=>(0,t.jsx)(g,{plan:e,priceAccordionTitle:r,salePriceTitle:i,regularPriceTitle:s},e.title))})}))})}):(0,t.jsx)(p.Wrapper,{className:(0,n.default)("@container",(0,p.getMarginClassNames)(a),(0,p.getBlockWidthClassNames)(l,"standard"),h),children:(0,t.jsx)("div",{className:h,children:e.map(e=>(0,t.jsx)(g,{plan:e,priceAccordionTitle:r,salePriceTitle:i,regularPriceTitle:s},e.title))})})}],869833)},425276,e=>{"use strict";var t=e.i(644418),r=e.i(478110),a=e.i(318567),n=e.i(484330),l=e.i(612560),i=e.i(521490),s=e.i(216926),o=e.i(18879),c=e.i(10442),u=e.i(958666),d=e.i(162078),m=e.i(240624),f=e.i(242119);let p=(0,f.default)("filled","star-filled","StarFilled",[["path",{d:"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z",key:"svg-0"}]]),h=(0,f.default)("outline","user","User",[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]]);var g=e.i(7284),x=e.i(955090),v=e.i(132818);function y(){return(0,t.jsx)("span",{className:"bg-muted text-muted-foreground flex size-9 shrink-0 items-center justify-center rounded-full","aria-hidden":!0,
2children:(0,t.jsx)(h,{className:"size-[18px]",stroke:1.5})})}function b({rating:e}){let r=null!=e?Math.min(5,Math.max(0,Math.round(e))):0;return(0,t.jsx)("div",{className:"flex gap-0.5","aria-label":null!=e?`${e} out of 5 stars`:"No rating",children:Array.from({length:5},(e,a)=>a<r?(0,t.jsx)(p,{size:16,className:"text-primary"},a):(0,t.jsx)(m.IconStar,{size:16,className:"text-primary"},a))})}function j({item:e,published:r,authorDisplay:a}){return(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(b,{rating:e.rating}),e.title?(0,t.jsx)(i.Text,{element:"h3",elementStyle:"h4",className:"text-balance",children:e.title}):null,(0,t.jsxs)("div",{className:"text-muted-foreground flex flex-wrap items-center gap-x-2 gap-y-2 text-sm",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)(y,{}),(0,t.jsx)("span",{className:"text-card-foreground font-medium",children:a})]}),r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,t.jsx)("time",{dateTime:new Date(1e3*e.publishedAtSeconds).toISOString(),children:r})]}):null,e.placeName?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,t.jsx)("span",{children:e.placeName})]}):null]})]})}function w({item:e,publishedDateTimeZone:n}){let[i,s]=(0,r.useState)(!1),o=e.body?.trim()??"",c=o.length>250,u=c?`${o.slice(0,250)}â¦`:o,d=function(e,t){if(null==e||!Number.isFinite(e))return null;let r=new Date(1e3*e);return Number.isFinite(r.getTime())?t?new Intl.DateTimeFormat("en-GB",{day:"numeric",month:"short",year:"numeric",timeZone:t}).format(r):(0,v.format)(r,"d MMM yyyy"):null}(e.publishedAtSeconds,n),m=e.authorName?.trim()||"Anonymous";return(0,t.jsxs)("div",{className:"border-border bg-card text-card-foreground flex h-full w-full flex-col gap-3 rounded-lg border p-4 shadow-sm",children:[(0,t.jsx)(j,{item:e,published:d,authorDisplay:m}),o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-card-foreground text-sm leading-relaxed",children:u}),c?(0,t.jsx)(a.Button,{type:"button",variant:"link",className:"h-auto self-start p-0 text-sm",onClick:()=>s(!0),children:"Read more"}):null,(0,t.jsx)(l.Dialog,{open:i,onOpenChange:s,children:(0,t.jsxs)(l.DialogContent,{className:"max-h-[85vh] overflow-y-auto sm:max-w-lg",children:[(0,t.jsxs)(l.DialogHeader,{className:"pr-8 text-left",children:[(0,t.jsx)(l.DialogTitle,{className:"sr-only",children:e.title||"Review"}),(0,t.jsx)(j,{item:e,published:d,authorDisplay:m})]}),(0,t.jsx)("p",{className:"text-foreground text-sm leading-relaxed whitespace-pre-wrap",children:o})]})})]}):null]})}let N={list:d.IconListDetails,carousel:u.IconCarouselHorizontalFilled};e.s(["ReviewsClient",0,function({items:e,views:a,margin:l,id:i,publishedDateTimeZone:u,autoScroll:m=!1,showNavigationArrows:f=!0}){let p=null==a?[]:Array.isArray(a)?a:[a],h=(0,x.normalizeSelect)(p,!1),v=h.length>0?h:[{label:"List",value:"list"},{label:"Carousel",value:"carousel"}],[y,b]=(0,r.useState)(v[0]?.value??"list");return(0,t.jsxs)(c.Wrapper,{id:i,className:(0,g.default)("flex w-full flex-col gap-4",(0,c.getMarginClassNames)(l)),children:[v.length>1&&(0,t.jsx)("div",{className:"flex w-full justify-center",children:(0,t.jsx)(s.ToggleGroup,{type:"single",value:y,onValueChange:e=>e&&b(e),className:"bg-muted/40 flex flex-wrap justify-center gap-1 rounded-lg p-1","aria-label":"Review layout",children:v.map(e=>{let r=N[e.value]??d.IconListDetails;return(0,t.jsxs)(s.ToggleGroupItem,{value:e.value,className:"gap-1.5 px-3",children:[(0,t.jsx)(r,{className:"size-4"}),e.label]},e.value)})})}),"carousel"===y&&e.length>0?(0,t.jsx)(n.Carousel,{layout:"padded",hideButtons:!f,autoPlayDuration:m?4e3:void 0,classNames:{carouselContent:"-ml-4 sm:-ml-4",carouselItem:(0,g.default)(o.basisOptions[3],c.columnsClassName,"pl-4 sm:pl-4")},items:e.map(e=>(0,t.jsx)(w,{item:e,publishedDateTimeZone:u},e.id))}):(0,t.jsx)("div",{className:"mx-auto flex w-full max-w-(--breakpoint-xl) flex-col gap-4",children:e.map(e=>(0,t.jsx)(w,{item:e,publishedDateTimeZone:u},e.id))})]})}],425276)},402507,e=>{"use strict";var t=e.i(644418),r=e.i(478110),a=e.i(521490),n=e.i(7284),l=e.i(385431),i=e.i(415304),s=e.i(762827),o=e.i(10442);let c={1:"w-full",2:"w-full sm:w-1/2",3:"w-full sm:w-1/3",4:"w-full sm:w-1/3 lg:w-1/4",5:"w-full sm:w-1/3 lg:w-1/5",6:"w-full sm:w-1/3 lg:w-1/6"};function u({value:e}){let n=(0,r.useRef)(null),s=(0,l.useInView)(n,{once:!0,margin:"-100px"}),o="string"==typeof e?e.trim():String(e),c=o.replace(/,/g,"").match(/^([^\d.-]*)(-?\d*\.?\d+)([^\d]*)$/),d=c?.[1]??"",m=c?Number(c[2]):"number"==typeof e?e:NaN,f=c?.[3]??"",p=c?.[2].split(".")[1]?.length??0;return m?(0,t.jsx)("div",{ref:n,children:(0,t.jsx)(a.Text,{element:"div",elementStyle:"h2",children:s&&Number.isFinite(m)?(0,t.jsx)(i.default,{start:0,end:m,duration:1,decimals:p,prefix:d,suffix:f,decimal:".",separator:","}):Number.isFinite(m)?`${d}0${f}`:o})}):(0,t.jsx)(a.Text,{element:"div",elementStyle:"h2",children:"-"})}e.s(["StatsGrid",0,function({title:e,stats:l,id:i,margin:d,blockWidth:m,maxColumns:f}){if(!l||0===l.length)return null;let p=null!=f?c[Math.min(6,Math.max(1,Math.floor(f)))]??c[4]:null;return(0,t.jsxs)(o.Wrapper,{id:i,className:(0,n.default)("flex flex-col gap-8",(0,o.getMarginClassNames)(d),(0,o.getBlockWidthClassNames)(m,"narrow")),children:[e&&(0,t.jsx)(a.Text,{element:"h2",elementStyle:"h2",className:"text-center",children:e}),(0,t.jsx)("div",{className:"relative z-10 flex w-full flex-wrap items-start justify-center",children:l.map((e,l)=>(0,t.jsx)(r.Fragment,{children:(0,t.jsxs)("div",{className:(0,n.default)("z-10 flex flex-col items-center px-4",p),children:[e.icon?.svg&&(0,t.jsx)(s.default,{className:"group-hover:animate-wobble text-primary mb-3 size-12 stroke-[1.5]",src:e.icon.svg}),(0,t.jsx)(u,{value:e.number}),(0,t.jsx)(a.Text,{element:"div",elementStyle:"h4",children:e.title}),e.subtitle&&(0,t.jsx)(a.Text,{element:"div",className:"text-muted-foreground pt-2 text-center leading-snug",elementStyle:"span",children:e.subt
2itle})]})},`${e.number}-${l}`))})]})}])},112630,e=>{"use strict";var t=e.i(644418),r=e.i(318567),a=e.i(659273),n=e.i(256176),l=e.i(332295),i=e.i(912149),s=e.i(714017),o=e.i(578630),c=e.i(15497),u=e.i(56900),d=e.i(7284),m=e.i(137476);e.s(["LeaveFeedback",0,function({links:e,className:f,componentProps:p,intro:h}){let g=[{name:"Facebook",Icon:n.IconBrandFacebookFilled,link:e?.facebook,background:"bg-blue-600 before:bg-blue-700",foreground:"text-blue-50 hover:text-blue-100"},{name:"X",Icon:c.IconBrandXFilled,link:e?.twitter,background:"bg-gray-800 before:bg-gray-900",foreground:"text-gray-50 hover:text-gray-100"},{name:"Instagram",Icon:i.IconBrandInstagram,link:e?.instagram,background:"bg-pink-600 before:bg-pink-700",foreground:"text-pink-50 hover:text-pink-100"},{name:"YouTube",Icon:u.IconBrandYoutubeFilled,link:e?.youTube,background:"bg-red-600 before:bg-red-700",foreground:"text-red-50 hover:text-red-100"},{name:"TikTok",Icon:s.IconBrandTiktokFilled,link:e?.tikTok,background:"bg-purple-800 before:bg-purple-900",foreground:"text-purple-50 hover:text-purple-100"},{name:"Google",Icon:l.IconBrandGoogleFilled,link:e?.googlePlace,background:"bg-green-600 before:bg-green-700",foreground:"text-green-50 hover:text-green-100"},{name:"TripAdvisor",Icon:o.IconBrandTripadvisor,link:e?.tripadvisor,background:"bg-emerald-600 before:bg-emerald-700",foreground:"text-emerald-50 hover:text-emerald-100"},{name:"DesignMyNight",Icon:m.IconBrandDesignMyNight,link:e?.designMyNight,background:"bg-cyan-600 before:bg-cyan-700",foreground:"text-cyan-50 hover:text-cyan-100"}];return(0,t.jsxs)("div",{className:"flex flex-col items-center gap-8 text-center",children:[(0,t.jsx)(a.RichText,{children:h.content}),(0,t.jsx)("ul",{className:(0,d.default)("flex w-full min-w-80 flex-wrap justify-center gap-3",f),children:g?.filter(e=>!!e.link?.trim())?.sort((e,t)=>(e.name||"").localeCompare(t.name||""))?.map(({name:e,Icon:a,link:n,background:l,foreground:i})=>(0,t.jsxs)(r.Button,{href:n?.trim(),"aria-label":e,variant:"ghost",size:"lg",target:n?.includes("mailto:")||n?.includes("tel:")?"_self":"_blank",...p?.button,className:(0,d.default)("gap-3 rounded-full px-6",p?.button?.className,l,i),children:[(0,t.jsx)(a,{className:"shrink-0"}),e]},e))})]})}])},312729,e=>{"use strict";var t=e.i(644418),r=e.i(478110),a=e.i(955714),n=e.i(958666),l=e.i(955336),i=e.i(586137),s=e.i(162078),o=e.i(7284),c=e.i(65133),u=e.i(809081),d=e.i(10442),m=e.i(18879),f=e.i(345923),p=e.i(484330),h=e.i(521490),g=e.i(216926),x=e.i(924649),v=e.i(943836),y=e.i(363225),b=e.i(318567),j=e.i(132818),w=e.i(103688);let N={timeline:"List",calendar:"Grid","carousel-large":"Carousel Large","carousel-small":"Carousel Small"};function C(e,t){if(!e)return null;let r=(0,w.parseISO)(e);return Number.isNaN(r.getTime())?null:(0,j.format)(r,t)}function k(e,t,r){let a=e?.includes("T")?C(e,"h:mm a"):null;if("lg"===t&&!r)return a;let n=C(e,r||"EE do MMM");return n&&a?`${n} at ${a}`:n}function S(e,t){return e.reduce((e,r)=>{let a=C(r.start,t)??"Upcoming",n=e.find(e=>e.label===a);return n?n.events.push(r):e.push({label:a,events:[r]}),e},[])}let T={lg:{root:"flex w-full flex-col items-start gap-2 pb-3",content:"flex w-full flex-col items-start gap-1 text-start",image:"border-border relative flex aspect-[3/2] w-full items-center justify-center overflow-hidden rounded-lg border"},default:{root:"border-border/25 flex items-start gap-3 border-b pb-3 sm:gap-5 sm:pb-5",content:"flex w-0 grow flex-col items-start gap-1 text-start",image:"border-border relative mt-1.5 flex size-18 shrink-0 items-center justify-center overflow-hidden rounded-lg border sm:size-36"}};function F({event:e,className:r}){return(0,t.jsxs)("a",{className:r,href:e.url,rel:"noopener noreferrer",target:"_blank",children:[(0,t.jsx)(y.IconPhoto,{className:"text-muted size-12"}),e.imageUrl?(0,t.jsx)("img",{alt:e.name,className:"absolute inset-0 size-full object-cover",src:e.imageUrl}):null]})}function E({event:e}){let r=[e.venueName,e.venueCity].filter(Boolean).join(", ");return r?(0,t.jsxs)(h.Text,{className:"text-muted-foreground flex items-center gap-2 text-sm",element:"p",children:[(0,t.jsx)(v.IconMapPinFilled,{className:"size-4"}),r]}):null}function A({event:e,size:r="default",dateFormat:a}){let n=k(e.start,r,a);return(0,t.jsxs)("div",{className:T[r].root,children:[(e.imageUrl||"lg"!==r)&&(0,t.jsx)(F,{className:T[r].image,event:e}),(0,t.jsxs)("div",{className:T[r].content,children:[(0,t.jsxs)("a",{className:"group/event-card flex flex-col",href:e.url,rel:"noopener noreferrer",target:"_blank",children:[n?(0,t.jsx)(h.Text,{className:"text-muted-foreground mb-0! text-sm font-medium",element:"p",children:n}):null,(0,t.jsx)(h.Text,{className:"text-base underline-offset-4 group-hover/event-card:underline sm:text-lg",element:"h4",children:e.name})]}),(0,t.jsx)(E,{event:e}),(0,t.jsx)("div",{className:"mt-2 flex w-full items-center gap-3",children:(0,t.jsx)(b.Button,{className:"grow sm:grow-0",href:e.url,rel:"noopener noreferrer",size:"sm",target:"_blank",variant:"outline",children:"Get tickets"})})]})]})}function P({event:e}){let r=k(e.start,"default");return(0,t.jsxs)("section",{className:"group/card flex w-full flex-col gap-4 md:flex-row","data-component":"card",children:[e.imageUrl?(0,t.jsx)(F,{className:"relative order-2 aspect-square min-h-[90vw] w-full overflow-hidden rounded-lg sm:aspect-auto sm:min-h-96",event:e}):null,(0,t.jsxs)("div",{className:"order-3 flex w-full flex-col justify-center gap-1",children:[(0,t.jsxs)("a",{className:"group/event-card flex w-full flex-col",href:e.url,rel:"noopener noreferrer",target:"_blank",children:[r?(0,t.jsx)(h.Text,{className:"text-muted-foreground text-sm font-medium",element:"p",children:r}):null,(0,t.jsx)(h.Text,{className:"underline-offset-4 group-hover/event-card:underline",element:"h3",children:e.name})]}),(0,t.jsx)(E,{event:e}),(0,t.jsx)("div",{className:"flex flex-wrap gap-3 pt-4",children:(0,t.jsx)(b.Button,{href:e.url,rel:"noopener noreferrer",target:"_blank",children:"Get tickets"})})]})]})}let D={timeline:s.IconListDetails,calendar:i.IconLayoutGrid,"carousel-large":n.IconCarouselHorizontalFilled,"carousel-small":n.IconCarouselHorizontalFilled};function I({views:e,view:r,setView:a}){let n=(0,c.useMediaQuery)("(max-width: 640px)");return(0,t.jsx)(f.ActionBarWrapper,{className:"-mt-4 w-[calc(100%-2rem)] flex-col overflow-clip sm:-mt-8 md:w-max md:flex-row",children:(0,t.jsx)(x.TooltipProvider,{children:(0,t.jsx)(g.ToggleGroup,{className:"w-full",onValueChange:e=>{("timeline"===e||"calendar"===e||"carousel-large"===e||"carousel-small"===e)&&a(e)},type:"single",value:r,children:e.map(e=>{let r=D[e],a=N[e];return(0,t.jsxs)(x.Tooltip,{children:[(0,t.jsx)(x.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("div",{className:"w-full",children:(0,t.jsxs)(g.ToggleGroupItem,{"aria-label":a,className:"h-14 w-full gap-2 lg:w-14",size:"lg",value:e,children:[(0,t.jsx)(r,{className:"size-4 shrink-0 sm:size-5"}),n&&a]})})}),!n&&(0,t.jsx)(x.TooltipContent,{children:a})]},e)})})})})}function M({events:e}){let a=S(e,"MMMM yyyy");return(0,t.jsxs)("div",{className:"relative flex w-full max-w-3xl grow flex-col gap-4",children:[(0,t.jsx)("div",{className:"border-primary/50 absolute top-3 bottom-0 -left-2 z-10 translate-x-[-0.5px] border-l border-dashed sm:-left-4",style:{maskImage:"linear-gradient(to bottom,rgb(0,0,0) 0%,rgb(0,0,0) calc(100% - 120px),transparent 100%)"}}),a.map(({label:e,events:a},n)=>(0,t.jsxs)(r.Fragment,{children:[(0,t.jsxs)(h.Text,{className:"text-muted-foreground! m-0! flex -translate-x-3 items-center gap-3 font-medium sm:-translate-x-5",element:"p",children:[(0,t.jsx)(l.IconCircleFilled,{className:"text-primary size-2"}),e]}),a.map(e=>(0,t.jsx)(A,{event:e},e.id))]},`${e}:${n}`))]})}function R({events:e}){let r=S(e,"EEE do MMM yyyy");return(0,t.jsx)("div",{className:"divide-border/50 relative grid w-full max-w-screen-2xl grow auto-cols-fr grid-cols-1 divide-x sm:grid-cols-2 sm:divide-y md:grid-cols-3 xl:grid-cols-4",children:r.map(({label:e,events:r},a)=>(0,t.jsxs)("div",{className:"flex flex-col gap-4 p-4 first:pt-0 sm:nth-[2]:pt-0 md:nth-[3]:pt-0 xl:nth-[4]:pt-0",children:[(0,t.jsx)(h.Text,{className:"text-muted-foreground! m-0! font-medium",element:"p",children:e}),r.map(e=>(0,t.jsx)(A,{event:e,size:"lg"},e.id))]},`${e}:${a}`))})}function V({events:e,cardSize:r,showNavigationArrows:a}){let n=e.length>1?[...e.slice(1),e[0]]:e;return(0,t.jsx)(p.Carousel,{autoPlayDuration:4e3,className:(0,o.default)("lg"===r&&"px-4 py-0 sm:py-0 sm:px-8"),classNames:{carouselContent:"-ml-4 sm:-ml-4",carouselItem:(0,o.default)(m.basisOptions["lg"===r?1:4],d.columnsClassName,"pl-4 sm:pl-4")},hideButtons:!a,items:n.map(e=>"lg"===r?(0,t.jsx)(P,{event:e},e.id):(0,t.jsx)(A,{dateFormat:"EEE do MMM",event:e,size:"lg"},e.id)),layout:"padded"})}function O(){return(0,t.jsxs)("p",{className:"text-muted-foreground w-full text-xs",children:["Events from"," ",(0,t.jsx)("a",{className:"hover:text-foreground underline underline-offset-2",href:"https://www.ticketmaster.co.uk/",rel:"noopener noreferrer",target:"_blank",children:"Ticketmaster"})]})}e.s(["TicketmasterEventsView",0,function({feed:e,title:n,views:l,showNavigationArrows:i=!0}){let[s,o]=(0,r.useState)(l[0]??"timeline"),c=n?.trim()||"What's on",d=l.includes(s)?s:l[0]??"timeline";return(0,t.jsxs)("div",{className:"flex w-full flex-col items-center gap-4",children:[(0,t.jsx)(h.Text,{className:"w-full",element:"h2",elementStyle:"h3",children:c}),l.length>1&&(0,t.jsx)(I,{setView:o,view:d,views:l}),0===e.events.length?(0,t.jsx)(u.EmptyState,{contentName:"events",icon:a.IconCalendarEvent}):"timeline"===d?(0,t.jsx)(M,{events:e.events}):"calendar"===d?(0,t.jsx)(R,{events:e.events}):(0,t.jsx)(V,{cardSize:"carousel-large"===d?"lg":"sm",events:e.events,showNavigationArrows:i}),(0,t.jsx)(O,{})]})}],312729)},534469,e=>{"use strict";var t=e.i(644418),r=e.i(478110),a=r;let n=(0,a.createContext)(null),l={didCatch:!1,error:null};class i extends a.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=l}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(...e){let{didCatch:t}=this.state;t&&(this.props.onReset?.({args:e,reason:"imperative-api"}),this.setState(l))}componentDidCatch(e,t){this.props.onError?.(e,t)}componentDidUpdate(e,t){let{didCatch:r}=this.state,{resetKeys:a}=this.props;r&&t.didCatch&&function(e=[],t=[]){return e.length!==t.length||e.some((e,r)=>!Object.is(e,t[r]))}(e.resetKeys,a)&&(this.props.onReset?.({next:a,prev:e.resetKeys,reason:"keys"}),this.setState(l))}render(){let{children:e,fallbackRender:t,FallbackComponent:r,fallback:l}=this.props,{didCatch:i,error:s}=this.state,o=e;if(i){let e={error:s,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)o=t(e);else if(r)o=(0,a.createElement)(r,e);else if(void 0!==l)o=l;else throw s}return(0,a.createElement)(n.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},o)}}var s=e.i(401625);e.s(["PageRenderErrorBoundary",0,function({blockId:e,componentName:a,children:n}){let[l,o]=(0,r.useState)(void 0);return(0,t.jsx)(i,{onError:(e,t)=>
2{o(t.componentStack??void 0)},fallbackRender:({error:r,resetErrorBoundary:n})=>(0,t.jsx)(s.ErrorFallback,{resetLabel:"Reset this section",source:"page-render",blockId:e,componentName:a,componentStack:l,error:r,onResetAction:n}),children:n})}],534469)},462150,e=>{"use strict";var t=e.i(644418),r=e.i(478110);e.s(["ScriptWidget",0,({code:e,className:a})=>{let n=(0,r.useRef)(null),l=(0,r.useRef)([]),[i,s]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{s(!0)},[]),(0,r.useEffect)(()=>{if(!i||!n.current||!e||l.current.length>0)return;let t=n.current,r=new DOMParser().parseFromString(e,"text/html");return Array.from(r.body.childNodes).forEach(e=>{"SCRIPT"!==e.nodeName&&t.appendChild(document.importNode(e,!0))}),Array.from(r.querySelectorAll("script")).forEach(e=>{let r=document.createElement("script");Array.from(e.attributes).forEach(e=>{r.setAttribute(e.name,e.value)}),e.textContent&&(r.textContent=e.textContent),l.current.push(r),t.appendChild(r)}),()=>{l.current.length>0&&(l.current.forEach(e=>e.parentNode?.removeChild(e)),l.current=[])}},[i,e]),e)?(0,t.jsx)("div",{ref:n,className:a}):null}])}]); 3 4//# debugId=1a142c26-8dbf-8ad9-1adc-513adeccf14b
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.