PageSourceSearch

https://www.wiim.immo/_nuxt/D8iTnU_F.js

js wiim.immo collected 2026-10-09 22:58:58 UTC 6,578 bytes, 1 lines download raw bytes

1import V from"./BlUlAP2D.js";import{e as j,x as N,C as O,o,z as B,w as S,a as t,c as i,t as a,n as k,k as c,l as A,b as _,d as p,L as E,q as l,_ as q}from"./D8644rYh.js";import{f as w}from"./Kkw9fBGj.js";import{c as M}from"./25JMns7G.js";import{c as Q}from"./ylXQ-Kvz.js";import{_ as T}from"./DlAUqK2U.js";const U={class:"relative flex flex-col grow"},X={class:"flex items-center justify-between gap-2"},F={key:0,class:"inline-flex items-center px-3 py-1 rounded-full bg-primary-600 text-white text-xs font-semibold"},G={key:1},H={class:"font-display text-xl font-semibold mt-4"},J={key:0,class:"text-sm text-grey-text dark:text-white/70 mt-1.5"},K={class:"cd-figures grid grid-cols-3 gap-3 mt-5 pt-5 border-t border-gray-200 dark:border-white/10"},W={class:"cd-figure font-display text-2xl font-bold text-amber-600 dark:text-amber-300 tabular-nums"},Y={class:"text-[11px] text-grey-text dark:text-white/70 mt-0.5"},Z={class:"cd-figure font-display text-2xl font-bold tabular-nums"},ee={class:"text-[11px] text-grey-text dark:text-white/70 mt-0.5"},te={class:"cd-figure font-display text-2xl font-bold tabular-nums"},ae={class:"text-[11px] text-grey-text dark:text-white/70 mt-0.5"},re={key:1,class:"mt-3 inline-flex items-center gap-1.5 text-[11px] font-medium text-primary-600 dark:text-primary-300"},se={class:"mt-3 text-[11px] leading-snug text-grey-text dark:text-white/70"},le={key:2,class:"mt-5"},ne=["aria-label","aria-valuetext","aria-valuenow"],oe={class:"mt-1.5 text-xs text-grey-text dark:text-white/60 tabular-nums"},ie={key:0},de={class:"mt-1 text-xs text-grey-text dark:text-white/60 tabular-nums"},ue={key:0,class:"mt-2 inline-flex items-center gap-1.5 rounded-full bg-emerald-50 px-2.5 py-1 text-[11px] font-semibold text-emerald-700 dark:bg-emerald-300/10 dark:text-emerald-300"},ce={key:1,class:"mt-1 text-xs font-medium text-primary-700 dark:text-primary-300 tabular-nums"},me={class:"mt-auto pt-5"},xe={key:0,class:"mt-2 text-center text-[11px] leading-snug text-grey-text dark:text-white/70"},pe=j({__name:"ClubDealCard",props:{deal:{},size:{default:"compact"},linkQuery:{default:void 0},cta:{default:void 0}},setup(r){const s=r,m=l(()=>s.deal.can_view_terms),$=N(),{t:n,locale:v}=O(),C=l(()=>{const e=$(`/wiim-deal/${s.deal.id}`),u=new URLSearchParams(s.linkQuery??{}).toString();return u?`${e}?${u}`:e}),b=l(()=>s.deal.phase==="priority"||s.deal.phase==="open"),P=l(()=>{switch(s.deal.phase){case"priority":return n("clubdeal.espaceInv.phase.priority");case"upcoming":return n("clubdeal.espaceInv.phase.upcoming");case"open":return n("clubdeal.statusOpen");case"ongoing":return n("clubdeal.statusRunning");case"repaid":return n("clubdeal.statusRepaid");default:return n("clubdeal.detail.statusDraft")}}),L=l(()=>b.value?"text-emerald-700 dark:text-emerald-300":s.deal.phase==="repaid"?"text-grey-text dark:text-white/70":"text-gray-500 dark:text-white/70"),h=l(()=>s.cta?s.cta==="reserve":s.deal.can_declare_interest),R=l(()=>h.value?n("home.cdReserve"):n("home.cdView")),d=l(()=>Q(s.deal,"available")),g=l(()=>d.value.percent),f=l(()=>n(d.value.includesReservations?"clubdeal.espaceInv.raisedProgressReserved":"clubdeal.espaceInv.raisedProgressEngaged",{raised:x(d.value.amount),target:x(d.value.target)}));function x(e){return e==null?"–":w(e,v.value)}const I=l(()=>{const e=s.deal.ticket_min;return e?w(e,v.value):"–"});function z(e){return e==null?"–":n("clubdeal.detail.durationValue",{count:e},e)}return(e,u)=>{const y=V,D=q;return o(),B(D,{to:C.value,class:"cd-card relative overflow-hidden rounded-2xl border border-gray-200 dark:border-white/10 bg-white dark:bg-ink-800 text-dark dark:text-white p-6 shadow-sm dark:shadow-none hover:border-primary-500/60 dark:hover:border-primary-500/60 card-lift transition group flex flex-col"},{default:S(()=>[u[1]||(u[1]=t("div",{class:"pointer-events-none absolute inset-0 dark:bg-[radial-gradient(420px_220px_at_85%_-10%,rgba(45,11,214,0.35),transparent_65%)]"},null,-1)),t("div",U,[t("div",X,[r.deal.typology?.name?(o(),i("span",F,a(r.deal.typology.name),1)):(o(),i("span",G)),t("span",{class:k(["text-xs font-medium",L.value])}
1,a(P.value),3)]),t("p",H,a(r.deal.title),1),r.size==="full"&&r.deal.subtitle?(o(),i("p",J,a(r.deal.subtitle),1)):c("",!0),t("div",K,[t("div",null,[t("p",W,a(m.value?A(M)(r.deal.coupon_pct):"•••"),1),t("p",Y,a(m.value?e.$t("home.cdCoupon"):e.$t("home.cdMembersOnly")),1)]),t("div",null,[t("p",Z,a(m.value?z(r.deal.duration_days):"•••"),1),t("p",ee,a(m.value?e.$t("home.cdDuration"):e.$t("home.cdMembersOnly")),1)]),t("div",null,[t("p",te,a(I.value),1),t("p",ae,a(e.$t("home.cdTicket")),1)])]),(r.deal.round_number??0)>=10?(o(),i("p",re,[_(y,{name:"solar:lock-keyhole-linear",class:"h-3.5 w-3.5 shrink-0"}),p(" "+a(e.$t("clubdeal.guarantee")),1)])):c("",!0),t("p",se,a(e.$t("clubdeal.pastPerformance")),1),r.size==="full"&&b.value&&r.deal.raise_target&&m.value?(o(),i("div",le,[t("div",{class:"h-2 rounded-full bg-gray-200 dark:bg-white/10 overflow-hidden",role:"progressbar","aria-label":e.$t("clubdeal.espaceInv.reservationCapacityProgress"),"aria-valuetext":f.value,"aria-valuenow":g.value,"aria-valuemin":"0","aria-valuemax":"100"},[t("div",{class:"h-full w-full rounded-full bg-primary-500 origin-left transition-transform duration-500 [transition-timing-function:var(--ease-out-strong)]",style:E({transform:`scaleX(${g.value/100})`})},null,4)],8,ne),t("p",oe,[p(a(f.value),1),r.deal.reserved_investors?(o(),i("span",ie," · "+a(e.$t("clubdeal.raise.investors",{n:r.deal.reserved_investors})),1)):c("",!0)]),t("p",de,a(e.$t("clubdeal.metrics.receivedAmount",{amount:x(r.deal.raised_amount)})),1),d.value.objectiveReached?(o(),i("p",ue,[_(y,{name:"solar:check-circle-linear",class:"h-3.5 w-3.5 shrink-0"}),p(" "+a(e.$t("clubdeal.raise.objectiveReached")),1)])):d.value.remaining>0?(o(),i("p",ce,a(e.$t("clubdeal.raise.remaining",{amount:x(d.value.remaining)})),1)):c("",!0)])):c("",!0),t("div",me,[t("span",{class:k(["inline-flex items-center justify-center gap-1.5 w-full h-11 px-5 rounded-full text-sm font-semibold transition",h.value?"bg-primary-600 text-white group-hover:bg-primary-500 shadow-sm":"border border-gray-300 dark:border-white/20 text-dark dark:text-white group-hover:border-primary-500/60"])},[p(a(R.value)+" ",1),u[0]||(u[0]=t("span",{class:"transition group-hover:translate-x-0.5"},"→",-1))],2),r.size==="full"&&h.value&&d.value.objectiveReached?(o(),i("p",xe,a(e.$t("clubdeal.raise.stillOpen")),1)):c("",!0)])])]),_:1},8,["to"])}}}),ke=Object.assign(T(pe,[["__scopeId","data-v-902594f6"]]),{__name:"ClubDealCard"});export{ke as C};

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.