import{_ as m,a as b}from"./SiteHeader-DtCCAlaz.js";import{a as y,b as x,c as v,d as w,_ as k}from"./BookingHeader-BQsX7HMW.js";import{x as t,I as a,A as e,a2 as l,u as j,ad as B,a1 as $,w as n,z as r,C as h,R as f,O as p,P as V,ab as M,v as u,K as Z,aL as z,an as C}from"./currency-BNAK17in.js";import{e as I}from"./useEmitter-J0ZtQM5A.js";import"./_commonjsHelpers-Bd06Rc8V.js";import"./_sentry-release-injection-file-BID35-xX.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="68fedb88-7170-4bf3-9381-b1e31a2a2dbb",s._sentryDebugIdIdentifier="sentry-dbid-68fedb88-7170-4bf3-9381-b1e31a2a2dbb")}catch{}})();function A(s,o){return t(),a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 10.5V6a3.75 3.75 0 1 0-7.5 0v4.5m11.356-1.993 1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 0 1-1.12-1.243l1.264-12A1.125 1.125 0 0 1 5.513 7.5h12.974c.576 0 1.059.435 1.119 1.007ZM8.625 10.5a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm7.5 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"})])}const S={key:0,type:"button",class:"js--booking-summary-btn fixed bottom-0 z-50 w-full h-20 bg-gray text-white hover:text-white focus:outline-none flex items-center lg:hidden"},D={class:"pointer-events-none flex px-6 py-4 w-1/2 text-center align-center justify-center"},L={key:0,class:"js--state mr-3 uppercase","data-alt-state":"Close"},N={key:1,class:"js--state mr-3 uppercase","data-alt-state":"Close"},T=e("svg",{class:"js--icon-close fill-current origin-center rotate-90 hidden pointer-events-none",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},[e("path",{d:"M1.929.964A.964.964,0,1,0,0,.964V17.036a.964.964,0,0,0,1.929,0ZM18,.964a.964.964,0,0,0-1.929,0V17.036a.964.964,0,1,0,1.929,0ZM14.388,5.192a.643.643,0,0,1,.4.594v6.429a.643.643,0,0,1-1.1.455L10.473,9.455a.643.643,0,0,1,0-.91l3.214-3.214a.643.643,0,0,1,.7-.139Zm-10.777,0a.643.643,0,0,1,.7.139L7.527,8.545a.643.643,0,0,1,0,.91L4.312,12.669a.643.643,0,0,1-1.1-.455V5.786a.643.643,0,0,1,.4-.594Z",transform:"translate(0 0)","fill-rule":"evenodd"})],-1),E={class:"flex flex-1 pointer-events-none text-left bg-black pr-6 py-4"},K={class:"flex flex-col text-3xl font-primary text-brand-primary leading-7 px-4"},P={class:"text-sm uppercase font-primary leading-4 text-white"},F={class:"js--booking-summary-panel fixed inset-y-0 inset-x-0 w-screen z-40 overflow-hidden text-white pointer-events-none lg:hidden"},H={class:"h-full grid items-end"},O={class:"js--booking-summary-content relative z-40 w-full max-w-full h-full min-h-[85vh] max-h-[85vh] rounded-t-lg overflow-hidden grid grid-rows-[auto_1fr] transition-transform ease-in-out duration-300 translate-y-full"},Q=e("button",{type:"button",class:"js--booking-summary-grab px-4 py-2 h-12 flex items-center justify-center bg-gray-500 border-b border-gray-400/50 active:bg-gray-600"},[e("div",{class:"flex flex-col gap-1"},[e("span",{class:"w-8 bg-gray-400 h-0.5 rounded-lg"}),e("span",{class:"w-8 bg-gray-400 h-0.5 rounded-lg"})])],-1),R={class:"flex h-full flex-col overflow-y-scroll bg-gray-500 shadow-xl"},U={class:"relative flex-1 flex flex-col gap-6 px-6 py-6 sm:px-6 pb-28"},q=e("div",{class:"js--booking-summary-shade fixed inset-0 z-30 bg-black-500 opacity-0 transition-opacity pointer-events-none"},null,-1),G={__name:"MobileBookingSummary",setup(s){const{proxy:o}=M(),i=l().props.steps;let g=j(0);I.on("addToTotal",function(c){g.value+=c});let _=B(()=>$.collect(i).where("type","selectable").where("complete",!1).count()>0?!1:Math.abs(l().props.journey.booking.total)+g.value);return(c,Y)=>(t(),a(p,null,[n(_)?(t(),a("button",S,[e("span",D,[n(o).$setting.get("country_code")=="US"?(t(),a("span",L," View Cart ")):(t(),a("span",N," View Basket ")),T,r(n(A),{class:"w-6 h-6 js--icon-open fill-current pointer-events-none"})]),e("span",E,[e("span",K,[e("span",null,h(c.$currency.format(n(_))),1),e("span",P,h(c.__("Booking Total")),1)])])])):f("",!0),e("div",F,[e("div",H,[e("div",O,[Q,e("div",R,[e("div",U,[(t(!0),a(p,null,V(n(i),d=>(t(),a(p,null,[r(y,{step:d},null,8,["step"]),r(x,{step:d},null,8,["step"]),r(v,{step:d},null,8,["step"]),r(w,{step:d},null,8,["step"])],64))),256))])])])]),q])],64))}},J={class:"mobile-menu js--mobile-menu fixed top-0 left-0 w-full h-auto pt-12 z-20 bg-black-500 text-white invisible opacity-0 z-[21]"},W=C('<div class="grid gap-5 text-right pt-6"><a href="{{ route(&#39;account.login&#39;) }}" class="rounded-r-lg bg-black-500 py-4 px-6 flex items-center justify-end gap-3 hover:bg-black-800"><svg xmlns="http://www.w3.org/2000/svg" width="12.412" height="14.964" viewBox="0 0 12.412 14.964"><g transform="translate(-1618.152 -66.988)"><circle cx="3.199" cy="3.199" r="3.199" transform="translate(1621.158 66.988)" fill="#e0ff48"></circle><path d="M1630.11,81.952h-11.5a.427.427,0,0,1-.454-.393V79.887c0-2.966,2.778-5.37,6.206-5.37h0c3.427,0,6.206,2.4,6.206,5.37v1.672A.427.427,0,0,1,1630.11,81.952Z" fill="#e0ff48"></path></g></svg><span>Account</span></a></div>',1),X={class:"relative",id:"top-of-page"},re={__name:"BookingSteps",props:{hideBanner:Boolean,fixed:{type:Boolean,default:!0}},setup(s){return(o,i)=>(t(),a(p,null,[r(m,{fixed:s.fixed},null,8,["fixed"]),e("nav",J,[W,r(b,{mobile:!0})]),n(l)().props.journey?(t(),u(k,{key:0,package:n(l)().props.journey.package},null,8,["package"])):f("",!0),e("div",X,[(t(),u(z,null,[Z(o.$slots,"default")],1024))]),n(l)().props.journey?(t(),u(G,{key:1})):f("",!0)],64))}};export{re as default};
//# sourceMappingURL=BookingSteps-Bm-M7RND.js.map
