PageSourceSearch

https://wildearth.travel/build/assets/deal-card-a74XARlK.js

js wildearth.travel collected 2026-10-09 01:02:07 UTC 4,101 bytes, 1 lines download raw bytes

1import{c as v,a as w,j as s,M as C,U as A,A as F,L as R}from"./app-Dl7zczZ5.js";import{U}from"./users-B8JTmB7C.js";/* empty css            */function D(y){const e=v.c(45),{deal:t}=y,{formatPrice:i}=w(),b=`/tours/${encodeURIComponent(t.tour_code)}`;let l;e[0]!==t.image_card_url||e[1]!==t.title?(l=s.jsx("img",{src:t.image_card_url,alt:t.title,className:"block h-full w-full object-cover transition-transform duration-700 group-hover:scale-105"}),e[0]=t.image_card_url,e[1]=t.title,e[2]=l):l=e[2];let _;e[3]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx("div",{className:"absolute inset-0 bg-linear-to-t from-[#242018] via-transparent to-transparent"}),e[3]=_):_=e[3];let a;e[4]!==t.discount?(a=t.discount!=null&&t.discount>0&&s.jsx("div",{className:"absolute top-4 left-8 rounded-full bg-[#C49A4C] px-3 py-1",children:s.jsxs("span",{className:"font-figtree text-xs font-bold text-[#1A1814]",children:[t.discount,"% OFF"]})}),e[4]=t.discount,e[5]=a):a=e[5];let r;e[6]!==l||e[7]!==a?(r=s.jsxs("div",{className:"relative aspect-4/3 overflow-hidden",children:[l,_,a]}),e[6]=l,e[7]=a,e[8]=r):r=e[8];let n;e[9]!==t.duration_nights||e[10]!==t.location_summary?(n=(t.location_summary||t.duration_nights>0)&&s.jsxs("div",{className:"font-figtree mb-2 flex items-center gap-2 text-xs text-white/40",children:[t.location_summary&&s.jsxs(s.Fragment,{children:[s.jsx(C,{className:"h-3 w-3"}),t.location_summary]}),t.location_summary&&t.duration_nights>0&&s.jsx("span",{className:"mx-1",children:"·"}),t.duration_nights>0&&s.jsxs(s.Fragment,{children:[s.jsx(A,{className:"h-3 w-3"}),t.duration_nights," nights"]})]}),e[9]=t.duration_nights,e[10]=t.location_summary,e[11]=n):n=e[11];let o;e[12]!==t.title?(o=s.jsx("h3",{className:"font-cormorant mb-3 text-2xl font-medium text-white",children:t.title}),e[12]=t.title,e[13]=o):o=e[13];let c;e[14]!==t.tagline?(c=s.jsx("p",{className:"font-figtree mb-4 line-clamp-2 text-sm leading-relaxed text-white/50",children:t.tagline}),e[14]=t.tagline,e[15]=c):c=e[15];let m;e[16]!==t.currency||e[17]!==t.original_price||e[18]!==i?(m=t.original_price!=null&&t.original_price>0&&s.jsx("span",{className:"font-figtree block text-xs text-white/30 line-through",children:i(t.original_price,t.currency)}),e[16]=t.currency,e[17]=t.original_price,e[18]=i,e[19]=m):m=e[19];let f;e[20]!==t.currency||e[21]!==t.price_sharing_from||e[22]!==i?(f=t.price_sharing_from!=null?i(t.price_sharing_from,t.currency):"Price on request",e[20]=t.currency,e[21]=t.price_sharing_from,e[22]=i,e[23]=f):f=e[23];let x;e[24]!==f?(x=s.jsx("span",{className:"font-figtree text-lg font-semibold text-[#C49A4C]",children:f}),e[24]=f,e[25]=x):x=e[25];let p;e[26]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx("span",{className:"font-figtree text-xs text-white/30",children:" / person"}),e[26]=p):p=e[26];let d;e[27]!==t.seats_remaining?(d=t.seats_remaining!=null&&t.seats_remaining>0&&s.jsxs("span",{className:"font-figtree mt-1 flex items-center gap-1 text-xs text-amber-400",children:[s.jsx(U,{className:"h-3 w-3"}),t.seats_remaining," seat",t.seats_remaining!==1?"s":""," left"]}),e[27]=t.seats_remaining,e[28]=d):d=e[28];let u;e[29]!==x||e[30]!==d||e[31]!==m?(u=s.jsxs("div",{children:[m,x,p,d]}),e[29]=x,e[30]=d,e[31]=m,e[32]=u):u=e[32];let j;e[33]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsxs("span",{className:"font-figtree flex items-center gap-1 text-xs text-[#C49A4C] transition-all group-hover:gap-2",children:["View Details ",s.jsx(F,{className:"h-3 w-3"})]}),e[33]=j):j=e[33];let g;e[34]!==u?(g=s.jsxs("div",{className:"mt-auto flex items-end justify-between",children:[u,j]}),e[34]=u,e[35]=g):g=e[35];let h;e[36]!==g||e[37]!==n||e[38]!==o||e[39]!==c?(h=s.jsxs("div",{className:"relative z-10 -mt-px flex flex-col flex-1 bg-[#242018] p-6",children:[n,o,c,g]}),e[36]=g,e[37]=n,e[38]=o,e[39]=c,e[40]=h):h=e[40];let N;return e[41]!==b||e[42]!==h||e[43]!==r?(N=s.jsxs(R,{href:b,className:"group relative flex flex-col overflow-hidden rounded-2xl bg-[#242018] transition-all duration-500 min-h-[545px]",children:[r,h]}),e[41]=b,e[42]=h,e[43]=r,e[44]=N):N=e[44],N}export{D as DealCard};

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.