const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CmKmn20f.js","./entry.DwJGqJ0y.css","./CFVasfDG.js","./BKqIuYBt.js"])))=>i.map(i=>d[i]); import{d as x,a as B,f as m,x as o,o as i,E as l,K as t,M as n,U as y,S as v,J as d,T as C,n as k,F as f,y as w,Z as $,G as E,af as P,ag as D,W as L}from"./CmKmn20f.js";import{a as S}from"./B4eW_H23.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new a.Error().stack;s&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[s]="637d9b5b-a133-47fe-9406-047b352c322f",a._sentryDebugIdIdentifier="sentry-dbid-637d9b5b-a133-47fe-9406-047b352c322f")}catch{}})();const V={class:"font-semibold"},N={class:"text-xs"},Y={class:"line-through"},F={class:"text-xs"},O={class:"font-semibold"},U=x({__name:"YscCamperCardPriceDisplay",props:{bookingDailyPrice:{},bookingTotalPrice:{},bookingTotalPriceBeforeDiscount:{},startingPrice:{}},setup(a){const s=a,{n:_,t:u}=B(),r=({value:c,currency:p})=>_(c,{style:"currency",currency:p,currencyDisplay:"symbol",maximumFractionDigits:0}),b=m(()=>{if(s.bookingDailyPrice)return u("camper_card.daily_price",{amount_string:r(s.bookingDailyPrice)})}),g=m(()=>{if(s.bookingTotalPrice)return u("camper_card.total_price",{amount_string:r(s.bookingTotalPrice)})}),h=m(()=>{if(s.bookingTotalPriceBeforeDiscount)return r(s.bookingTotalPriceBeforeDiscount)}),e=m(()=>{if(s.startingPrice)return r(s.startingPrice)});return(c,p)=>o(b)?(i(),l(v,{key:0},[t("p",V,n(o(b)),1),t("p",N,[t("span",Y,n(o(h)),1),y(" "+n(o(g)??""),1)])],64)):o(e)?(i(),l(v,{key:1},[t("p",F,n(c.$t("camper_card.starting_price")),1),t("p",O,n(o(e)),1)],64)):d("",!0)}}),W={class:"relative flex w-full flex-col overflow-hidden rounded"},z={class:"relative overflow-hidden rounded-md"},A={key:0,class:"absolute left-2 top-2 z-10 flex flex-col items-baseline space-y-1"},R={class:"rounded-xs bg-white px-1.5 py-1 text-xs font-semibold text-pink-500"},j=["aria-label"],H={key:0,class:"absolute inset-0 z-[-1]","aria-hidden":"true"},M={class:"relative px-1.5 py-3"},G=t("span",{class:"absolute inset-0 z-10","aria-hidden":"true"},null,-1),J={class:"flex justify-between"},K={class:"text-left"},Z={class:"text-sm"},q={class:"text-sm"},Q={class:"text-sm flex gap-[6px] items-center"},X={class:"flex items-center gap-1 text-sm"},ee={class:"font-semibold"},te={class:"text-gray-400"},oe={key:0,class:"text-yellow-700 text-xs font-semibold"},se={class:"whitespace-nowrap flex flex-col justify-end items-end gap-[2px] mt-[-3px]"},re=x({__name:"YscCamperCardV2",props:{camperId:{},title:{},locationLabel:{},passengersCount:{default:void 0},bookingDailyPrice:{default:void 0},bookingTotalPrice:{default:void 0},bookingTotalPriceBeforeDiscount:{default:void 0},startingPrice:{default:void 0},camperUrl:{default:void 0},rating:{default:void 0},isBestOwner:{type:Boolean,default:!1},isInWishlist:{type:Boolean,default:!1},isNew:{type:Boolean,default:!1},showWishlistButton:{type:Boolean,default:!1},hasDiscount:{type:Boolean,default:!1},hasInstantBooking:{type:Boolean,default:!1},titleTag:{default:"h2"},showLink:{type:Boolean,default:!0}},emits:["wishlist-click"],setup(a){const s=P(()=>D(()=>import("./CmKmn20f.js").then(e=>e.gU),__vite__mapDeps([0,1]),import.meta.url)),_=P(()=>D(()=>import("./CFVasfDG.js"),__vite__mapDeps([2,0,1]),import.meta.url)),u=P(()=>D(()=>import("./BKqIuYBt.js"),__vite__mapDeps([3,0,1]),import.meta.url)),r=a,{n:b,t:g}=B(),h=m(()=>{if(r.rating)return b(r.rating,{maximumFractionDigits:1,minimumFractionDigits:1})});return(e,c)=>{const p=L,I=S,T=U;return i(),l("article",W,[t("div",z,[e.hasDiscount?(i(),l("div",A,[t("span",R,n(e.$t("camper_card.discount_special_offer")),1)])):d("",!0),e.showWishlistButton?(i(),l("button",{key:1,"aria-label":e.$t("commons.add-to-wishlist"),class:"focus:ring-peacock-300 absolute right-1.5 top-1.5 z-30 p-1.5 focus:rounded-sm focus:outline-none focus:ring-2",name:"wishlist",onClick:c[0]||(c[0]=C(ie=>e.$emit("wishlist-click",e.camperId),["prevent"]))},[e.isInWishlist?(i(),k(o(_),{key:0,class:"relative top-px h-6 w-6 text-pink-500"})):(i(),k(o(s),{key:1,class:"relative top-px h-6 w-6 fill-black/40 text-white"}))],8,j)):d("",!0),f(p,{to:e.camperUrl,target:"_blank",class:"focus-visible:ring-peacock-300 block border-0 focus-visible:rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2"},{default:w(()=>[e.showLink?(i(),l("span",H)):d("",!0),$(e.$slots,"slideshow")]),_:3},8,["to"])]),t("div",M,[f(p,{to:r.camperUrl,target:"_blank",class:"focus-visible:ring-peacock-300 block border-0 focus-visible:rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-4"},{default:w(()=>[G,(i(),k(E(r.titleTag),{class:"truncate text-base font-semibold"},{default:w(()=>[y(n(e.title),1)]),_:1}))]),_:1},8,["to"]),t("div",J,[t("div",K,[t("p",Z,n(e.locationLabel),1),t("p",q,n(e.passengersCount?e.$t("commons.travelers_plural",{count_number:e.passengersCount},e.passengersCount):""),1),t("p",Q,[t("span",X,[o(h)?(i(),l(v,{key:0},[f(o(u),{class:"w-[0.875rem] h-[0.875rem] text-pink-500"}),y(),t("span",ee,n(o(h)),1)],64)):(i(),l(v,{key:1},[f(o(u),{class:"w-[0.875rem] h-[0.875rem] text-gray-400"}),y(),t("span",te,n(e.isNew?o(g)("commons.new"):o(g)("commons.no_reviews")),1)],64))]),e.isBestOwner?(i(),l("span",oe,"Best Owner")):d("",!0)])]),t("div",se,[e.hasInstantBooking?(i(),k(I,{key:0,class:"h-5 w-5 text-amber-400"})):d("",!0),f(T,{"booking-daily-price":e.bookingDailyPrice,"booking-total-price":e.bookingTotalPrice,"starting-price":e.startingPrice,"booking-total-price-before-discount":e.bookingTotalPriceBeforeDiscount},null,8,["booking-daily-price","booking-total-price","starting-price","booking-total-price-before-discount"])])])])])}}});export{re as _,U as a}; //# sourceMappingURL=Bl-Gu7y6.js.map