PageSourceSearch

https://home.co.uk/build/assets/Index-Co9ZWStV.js

js home.co.uk collected 2026-10-02 04:54:26 UTC 16,653 bytes, 1 lines download raw bytes

1import{r as K,c as V,o as a,f as n,d as i,u as r,w as h,b as e,h as d,t as o,g as m,F as _,j as F,n as $,a as b,e as L,a6 as G}from"./runtime-dom.esm-bundler-BFbfmLfl.js";import{h as U,l as f,r as W}from"./index.esm-C8-Okse2.js";import{_ as Y}from"./ConsumerLayout-tjDWxGzL.js";import{_ as J}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{H as y}from"./house-BnH-U5r3.js";import{B as g}from"./shield-xlcuWJAH.js";import{K as Q}from"./key-round-CDOVxIO1.js";import{P as v}from"./plus-D8BOBnMI.js";import{P as z}from"./pound-sterling-DallvfDR.js";import{B as X}from"./bell-BnmfLsAP.js";import{M as w}from"./map-pin-7NBWNz8E.js";import{B as k}from"./bed-QJSSLFd_.js";import{B as j}from"./bath-BVk93Uiu.js";import{T as E}from"./triangle-alert-P9kpP2tT.js";import{C as P}from"./chevron-right-DQnPt1ZE.js";import{S as Z}from"./sparkles-B9lXBQmj.js";import{T as ee}from"./LoginModal-BMeMPme8.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./app-Dvzl3QXw.js";/* empty css            */import"./echo-Cx0reEeH.js";import"./listingImageRemint-DdzXd0Qc.js";import"./chevron-left-BqH44XVe.js";import"./createLucideIcon-H8VPBXjN.js";import"./search-DRuNnyPk.js";import"./x-gRRgfAF8.js";import"./piggy-bank-C2v63urG.js";import"./chevron-down-CV0HnoXa.js";import"./check-CYOYuDcY.js";import"./circle-alert-ByG7DPjo.js";import"./loader-circle-BOF4Rcg5.js";import"./SavePropertyModal-C2h6jxhG.js";import"./lock-BQyHxR7C.js";import"./file-text-CxktRaAP.js";import"./AnimatedLogoMini-B6zedGia.js";/* empty css                                                                         */import"./house-heart-BOl5N1QW.js";import"./clipboard-check-bysH7gwo.js";import"./arrow-left-right-CgpBd7hI.js";import"./calendar-clock-BpBm_Pbs.js";import"./shield-check-CDldKyok.js";import"./file-key-D00z6oeF.js";import"./arrow-left-C_eslZG5.js";import"./menu-C8BKYvlP.js";import"./settings-kph8Slzw.js";import"./credit-card-Dn2M7EkH.js";import"./log-out-CydYSR5l.js";import"./ellipsis-pYE_Svwi.js";const te={class:"max-w-6xl mx-auto px-4 sm:px-6"},se={class:"mb-6 sm:mb-8"},oe={class:"flex flex-col gap-4"},ie={class:"flex items-center justify-between gap-4"},re={class:"flex items-center gap-3 sm:gap-4"},ae={class:"relative flex-shrink-0"},ne={class:"w-12 h-12 sm:w-14 sm:h-14 rounded-2xl bg-white border border-pink-100 flex items-center justify-center shadow-sm"},le={class:"absolute -bottom-1 -right-1 w-5 h-5 rounded-full bg-white border border-gray-200 flex items-center justify-center shadow-sm"},de={class:"flex items-center justify-between gap-3"},me={class:"flex items-center gap-2 px-3 py-2.5 sm:py-1.5 bg-gray-50 border border-gray-200 rounded-full"},ce={class:"text-sm font-medium text-gray-700"},xe={key:0,class:"mb-4 sm:mb-6 p-3 sm:p-4 bg-amber-50 border border-amber-200 rounded-xl flex items-start sm:items-center gap-3"},ue={class:"w-10 h-10 bg-amber-100 rounded-lg flex items-center justify-center flex-shrink-0"},he={class:"flex-1 min-w-0"},pe={class:"font-medium text-amber-900"},ge={class:"text-sm text-amber-700"},fe={key:0},_e={class:"flex items-center gap-2 mb-4 sm:mb-6"},be=["onClick"],ye={class:"sm:hidden"},ve={class:"flex items-start justify-between gap-3 mb-3"},we={class:"flex-1 min-w-0"},ke={class:"flex items-center gap-1.5 mb-1"},je={class:"font-semibold text-gray-900 text-sm truncate"},Pe={class:"text-xs text-gray-400"},Re={class:"text-right flex-shrink-0"},Ae={class:"text-lg font-bold text-gray-900"},Te={key:0,class:"inline-block px-1.5 py-0.5 text-xs font-medium rounded-full bg-blue-100 text-blue-700"},Be={class:"flex flex-wrap items-center gap-2 text-xs text-gray-500 mb-3"},Se={key:0,class:"flex items-center gap-1 bg-gray-50 px-2 py-1 rounded-md"},Ce={key:1,class:"flex items-center gap-1 bg-gray-50 px-2 py-1 rounded-md"},qe={key:2,class:"flex items-center gap-1 bg-gray-50 px-2 py-1 rounded-md"},Me={key:0,class:"flex items-center justify-between text-sm bg-emerald-50 rounded-lg p-2 mb-3"},He={class:"font-semibold text-emerald-700"},Ne={key:1,class:"flex items-center justify-between text-sm bg-gray-50 rounded-lg p-2 mb-3"},Oe={class:"font-semibold text-emerald-600"},Ve={class:"flex items-center justify-between pt-3 border-t border-gray-100"},Fe={class:"flex items-center gap-2"},$e={class:"text-xs text-gray-500"},ze={key:0,class:"flex items-center gap-1 text-xs text-amber-600"},Ee={class:"flex items-center gap-2 text-sm font-medium text-pink-500"},Ie={class:"hidden sm:flex items-start justify-between gap-4"},De={class:"flex-1 min-w-0"},Ke={class:"flex items-center gap-2 mb-2"},Le={class:"font-semibold text-gray-900 truncate"},Ge={class:"text-sm text-gray-400"},Ue={key:0,class:"px-2 py-0.5 text-xs font-medium rounded-full bg-blue-100 text-blue-700"},We={class:"flex flex-wrap items-center gap-3 text-sm text-gray-500"},Ye={key:0,class:"flex items-center gap-1"},Je={key:1,class:"flex items-center gap-1"},Qe={key:2,class:"flex items-center gap-1"},Xe={class:"text-gray-400"},Ze={key:3,class:"flex items-center gap-1 text-amber-600"},et={class:"text-right flex-shrink-0 min-w-[140px]"},tt={class:"text-xl font-bold text-gray-900 mb-1"},st={class:"flex items-center justify-end gap-2"},ot={key:0,class:"text-sm text-emerald-600 font-medium"},it={key:1,class:"px-2 py-0.5 text-xs font-medium rounded-full bg-emerald-100 text-emerald-700"}
1,rt={key:2,class:"space-y-4 sm:space-y-6"},at={class:"bg-white rounded-2xl border border-gray-200 p-6 sm:p-12 text-center"},nt={class:"mx-auto mb-4 flex size-20 items-center justify-center overflow-hidden rounded-2xl bg-white ring-1 ring-stone-100"},lt=["src"],dt={class:"text-base sm:text-lg font-semibold text-gray-900 mb-2"},mt={class:"text-sm sm:text-base text-gray-500 mb-6 max-w-md mx-auto"},ct={class:"relative hidden sm:block"},xt={class:"opacity-60"},ut={class:"text-sm font-medium text-gray-500 mb-3 flex items-center gap-2"},ht={class:"bg-white rounded-2xl border border-gray-200 p-5"},pt={class:"flex items-start justify-between gap-4"},gt={class:"flex-1 min-w-0"},ft={class:"flex items-center gap-2 mb-2"},_t={class:"flex flex-wrap items-center gap-3 text-sm text-gray-500"},bt={class:"flex items-center gap-1"},yt={class:"flex items-center gap-1"},vt={class:"flex items-center gap-1"},wt={key:3,class:"mt-8 sm:mt-10 pt-6 border-t border-gray-200"},kt={class:"grid grid-cols-2 lg:grid-cols-4 gap-3 sm:gap-4"},jt={class:"bg-white border border-gray-200 rounded-2xl p-4"},Pt={class:"flex items-center gap-3 mb-2"},Rt={class:"w-10 h-10 bg-blue-50 rounded-xl flex items-center justify-center"},At={class:"text-2xl font-bold text-gray-900"},Tt={class:"bg-white border border-gray-200 rounded-2xl p-4"},Bt={class:"flex items-center gap-3 mb-2"},St={class:"w-10 h-10 bg-emerald-50 rounded-xl flex items-center justify-center"},Ct={class:"text-2xl font-bold text-gray-900"},qt={class:"bg-white border border-gray-200 rounded-2xl p-4"},Mt={class:"flex items-center gap-3 mb-2"},Ht={class:"w-10 h-10 bg-purple-50 rounded-xl flex items-center justify-center"},Nt={class:"text-2xl font-bold text-gray-900"},Ot={class:"bg-white border border-gray-200 rounded-2xl p-4"},Vt={class:"flex items-center gap-3 mb-2"},Ft={class:"w-10 h-10 bg-amber-50 rounded-xl flex items-center justify-center"},$t={class:"text-2xl font-bold text-gray-900"},zt={__name:"Index",props:{properties:Array,myHomes:Array,myRentals:Array,activeTab:{type:String,default:"homes"},stats:Object,upcomingReminders:Array,ownershipTypes:Object,propertyRoles:Object},setup(c){const p=c,x=K(p.activeTab),I=V(()=>{var l,t;return[{key:"homes",label:"My Homes",icon:y,count:((l=p.stats)==null?void 0:l.homes_count)||0},{key:"rentals",label:"My Rentals",icon:g,count:((t=p.stats)==null?void 0:t.rentals_count)||0}]}),R=V(()=>x.value==="homes"?p.myHomes:p.myRentals),D=l=>{x.value=l,W.get(route("account.my-properties.index"),{tab:l},{preserveState:!0,preserveScroll:!0})},u=l=>l?l>=1e6?`£${(l/1e6).toFixed(2)}M`:`£${Math.round(l/1e3)}K`:"-",A=l=>l?`£${l.toLocaleString()}`:"-";return(l,t)=>(a(),n(_,null,[i(r(U),{title:"My Properties"}),i(Y,null,{default:h(()=>{var T,B,S,C,q,M,H,N,O;return[e("div",te,[e("div",se,[e("div",oe,[e("div",ie,[e("div",re,[e("div",ae,[e("div",ne,[i(r(Q),{class:"w-6 h-6 sm:w-7 sm:h-7 text-pink-500"})]),e("div",le,[i(r(y),{class:"w-3 h-3 text-emerald-500"})])]),t[0]||(t[0]=e("div",{class:"min-w-0"},[e("h1",{class:"text-xl sm:text-2xl font-bold text-gray-900"},"My Properties"),e("p",{class:"text-sm sm:text-base text-gray-500 line-clamp-2"},"Track value, manage documents, and prepare to sell")],-1))]),i(r(f),{href:l.route("account.my-properties.create"),class:"hidden sm:inline-flex items-center justify-center gap-2 min-h-[44px] px-4 py-2.5 bg-gradient-to-r from-pink-500 via-rose-500 to-orange-500 text-white font-medium rounded-xl hover:shadow-md hover:shadow-pink-500/30 transition-all shadow-sm flex-shrink-0"},{default:h(()=>[i(r(v),{class:"w-5 h-5"}),t[1]||(t[1]=d(" Add Property ",-1))]),_:1},8,["href"])]),e("div",de,[e("div",me,[i(r(z),{class:"w-4 h-4 text-emerald-500"}),e("span",ce,o(u((T=c.stats)==null?void 0:T.total_value))+" portfolio ",1)]),i(r(f),{href:l.route("account.my-properties.create"),class:"sm:hidden inline-flex items-center justify-center gap-2 min-h-[44px] px-4 py-2.5 bg-gradient-to-r from-pink-500 via-rose-500 to-orange-500 text-white font-medium rounded-xl hover:shadow-md hover:shadow-pink-500/30 transition-all shadow-sm flex-shrink-0"},{default:h(()=>[i(r(v),{class:"w-5 h-5"}),t[2]||(t[2]=d(" Add ",-1))]),_:1},8,["href"])])])]),(B=c.upcomingReminders)!=null&&B.length?(a(),n("div",xe,[e("div",ue,[i(r(X),{class:"w-5 h-5 text-amber-600"})]),e("div",he,[e("p",pe,o(c.upcomingReminders.length)+" upcoming renewal"+o(c.upcomingReminders.length===1?"":"s"),1),e("p",ge,[d(o((S=c.upcomingReminders[0])==null?void 0:S.label)+" ",1),c.upcomingReminders.length>1?(a(),n("span",fe," and "+o(c.upcomingReminders.length-1)+" more",1)):m("",!0)])])])):m("",!0),e("div",_e,[(a(!0),n(_,null,F(I.value,s=>(a(),n("button",{key:s.key,onClick:Et=>D(s.key),class:$(["flex items-center gap-2 px-4 py-2.5 rounded-xl text-sm font-medium transition-all min-h-[44px]",x.value===s.key?"bg-gradient-to-r from-pink-500 via-rose-500 to-orange-500 text-white shadow-sm":"bg-gray-50 text-gray-600 hover:bg-gray-100 border border-gray-200"])},[(a(),b(L(s.icon),{class:"w-4 h-4"})),d(" "+o(s.label)+" ",1),e("span",{class:$(["px-2 py-0.5 rounded-full text-xs font-medium",x.value===s.key?"bg-white/20 text-white":"bg-gray-200 text-gray-600"])},o(s.count),3)],10,be))),128))]),((C=R.value)==null?void 0:C.length)>0?(a(),b(G,{key:1,tag:"div",name:"property-list",class:"relative space-y-3 sm:space-y-4"},{default:h(()=>[(a(!0),n(_,null,F(R.value,s=>(a(),b(r(f),{key:s.id,href:l.route("account.my-properties.show",s.id),class:"block bg-white rounded-2xl border border-gray-200 p-4 sm:p-5 hover:border-pink-200 hover:shadow-md transition-all cursor-pointer group active:scale-[0.99]"},{default:h(()=>[e("div",ye,[e("div",ve,[e("div",we,[e("div",ke,[i(r(w),{class:"w-3.5 h-3.5 text-gray-400 flex-shrink-0"}),e("h3",je,o(s.address_line_1),1)]),e("span",Pe,o(s.postcode),1)]),e("div",Re,[e("div",Ae,o(s.formatted_value||"-"),1),s.is_primary_residence?(a(),n("span",Te," Primary ")):m("",!0)])]),e("div",Be,[s.property_type?(a(),n("span",Se,[i(r(g),{class:"w-3.5 h-3.5"}),d(" "+o(s.property_type),1)])):m("",!0),s.bedrooms?(a(),n("span",Ce,[i(r(k),{class:"w-3.5 h-3.5"}),d(" "+o(s.bedrooms),1)])):m("",!0),s.bathrooms?(a(),n("span",qe,[i(r(j),{class:"w-3.5 h-3.5"}),d(" "+o(s.bathrooms),1)])):m("",!0)]),s.is_rental&&s.has_active_tenancy?(a(),n("div",Me,[t[3]||(t[3]=e("span",{class:"text-emerald-700"},"Monthly rent",-1)),e("span",He,o(A(s.monthly_rent)),1)])):s.equity?(a(),n("div",Ne,[t[4]||(t[4]=e("span",{class:"text-gray-600"},"Equity",-1)),e("span",Oe,o(u(s.equity)),1)])):m("",!0),e("div",Ve,[e("div",Fe,[e("span",$e,o(s.ownership_type_label),1),s.upcoming_reminders_count>0?(a(),n("span",ze,[i(r(E),{class:"w-3.5 h-3.5"}),d(" "+o(s.upcoming_reminders_count),1)])):m("",!0)]),e("div",Ee,[t[5]||(t[5]=e("span",null,"Vie
1w",-1)),i(r(P),{class:"w-4 h-4"})])])]),e("div",Ie,[e("div",De,[e("div",Ke,[i(r(w),{class:"w-4 h-4 text-gray-400 flex-shrink-0"}),e("h3",Le,o(s.address_line_1),1),e("span",Ge,o(s.postcode),1),s.is_primary_residence?(a(),n("span",Ue," Primary ")):m("",!0)]),e("div",We,[s.property_type?(a(),n("span",Ye,[i(r(g),{class:"w-4 h-4"}),d(" "+o(s.property_type),1)])):m("",!0),s.bedrooms?(a(),n("span",Je,[i(r(k),{class:"w-4 h-4"}),d(" "+o(s.bedrooms)+" bed"+o(s.bedrooms!==1?"s":""),1)])):m("",!0),s.bathrooms?(a(),n("span",Qe,[i(r(j),{class:"w-4 h-4"}),d(" "+o(s.bathrooms)+" bath"+o(s.bathrooms!==1?"s":""),1)])):m("",!0),e("span",Xe,o(s.ownership_type_label),1),s.upcoming_reminders_count>0?(a(),n("span",Ze,[i(r(E),{class:"w-4 h-4"}),d(" "+o(s.upcoming_reminders_count)+" renewal"+o(s.upcoming_reminders_count>1?"s":""),1)])):m("",!0)])]),e("div",et,[e("div",tt,o(s.formatted_value||"-"),1),e("div",st,[s.equity?(a(),n("span",ot,o(u(s.equity))+" equity ",1)):m("",!0),s.is_rental&&s.has_active_tenancy?(a(),n("span",it,o(A(s.monthly_rent))+"/mo ",1)):m("",!0)])]),i(r(P),{class:"w-5 h-5 text-gray-300 group-hover:text-pink-500 transition-colors flex-shrink-0"})])]),_:2},1032,["href"]))),128))]),_:1})):(a(),n("div",rt,[e("div",at,[e("div",nt,[e("img",{src:x.value==="homes"?"/images/icons/intelligence/save-farm.webp":"/images/icons/moments/no-branch.webp",alt:"",class:"h-full w-full object-cover",loading:"lazy"},null,8,lt)]),e("h3",dt,o(x.value==="homes"?"No homes added yet":"No rental properties added yet"),1),e("p",mt,o(x.value==="homes"?"Add your home to track its value, manage documents, and get ready to sell when the time is right.":"Add your buy-to-let properties to manage tenancies, compliance certificates, and track rental income."),1),i(r(f),{href:l.route("account.my-properties.create"),class:"inline-flex items-center justify-center gap-2 min-h-[44px] px-5 py-2.5 bg-gradient-to-r from-pink-500 via-rose-500 to-orange-500 text-white font-medium rounded-xl hover:shadow-md hover:shadow-pink-500/30 transition-all w-full sm:w-auto"},{default:h(()=>[i(r(v),{class:"w-5 h-5"}),t[6]||(t[6]=d(" Add Your First Property ",-1))]),_:1},8,["href"])]),e("div",ct,[t[16]||(t[16]=e("div",{class:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-white z-10 pointer-events-none"},null,-1)),e("div",xt,[e("p",ut,[i(r(Z),{class:"w-4 h-4 text-pink-500"}),t[7]||(t[7]=d(" Here's what your properties will look like: ",-1))]),e("div",ht,[e("div",pt,[e("div",gt,[e("div",ft,[i(r(w),{class:"w-4 h-4 text-gray-400 flex-shrink-0"}),t[8]||(t[8]=e("h3",{class:"font-semibold text-gray-900 truncate"},"42 Example Street",-1)),t[9]||(t[9]=e("span",{class:"text-sm text-gray-400"},"SW1A 1AA",-1)),t[10]||(t[10]=e("span",{class:"px-2 py-0.5 text-xs font-medium rounded-full bg-blue-100 text-blue-700"},"Primary",-1))]),e("div",_t,[e("span",bt,[i(r(g),{class:"w-4 h-4"}),t[11]||(t[11]=d(" Semi-Detached ",-1))]),e("span",yt,[i(r(k),{class:"w-4 h-4"}),t[12]||(t[12]=d(" 3 beds ",-1))]),e("span",vt,[i(r(j),{class:"w-4 h-4"}),t[13]||(t[13]=d(" 2 baths ",-1))]),t[14]||(t[14]=e("span",{class:"text-gray-400"},"Owner Occupied",-1))])]),t[15]||(t[15]=e("div",{class:"text-right flex-shrink-0"},[e("div",{class:"text-xl font-bold text-gray-900 mb-1"},"£485,000"),e("span",{class:"text-sm text-emerald-600 font-medium"},"£185K equity")],-1)),i(r(P),{class:"w-5 h-5 text-gray-300 flex-shrink-0"})])])])])])),((q=c.stats)==null?void 0:q.total_properties)>0?(a(),n("div",wt,[t[22]||(t[22]=e("h3",{class:"text-sm font-medium text-gray-500 uppercase tracking-wide mb-4"},"Portfolio Overview",-1)),e("div",kt,[e("div",jt,[e("div",Pt,[e("div",Rt,[i(r(y),{class:"w-5 h-5 text-blue-600"})])]),e("p",At,o(((M=c.stats)==null?void 0:M.total_properties)||0),1),t[17]||(t[17]=e("p",{class:"text-sm text-gray-500"},"Properties",-1))]),e("div",Tt,[e("div",Bt,[e("div",St,[i(r(z),{class:"w-5 h-5 text-emerald-600"})])]),e("p",Ct,o(u((H=c.stats)==null?void 0:H.total_value)),1),t[18]||(t[18]=e("p",{class:"text-sm text-gray-500"},"Portfolio Value",-1))]),e("div",qt,[e("div",Mt,[e("div",Ht,[i(r(ee),{class:"w-5 h-5 text-purple-600"})])]),e("p",Nt,o(u((N=c.stats)==null?void 0:N.total_equity)),1),t[19]||(t[19]=e("p",{class:"text-sm text-gray-500"},"Total Equity",-1))]),e("div",Ot,[e("div",Vt,[e("div",Ft,[i(r(g),{class:"w-5 h-5 text-amber-600"})])]),e("p",$t,[d(o(u((O=c.stats)==null?void 0:O.monthly_rental_income)),1),t[20]||(t[20]=e("span",{class:"text-base font-normal text-gray-500"},"/mo",-1))]),t[21]||(t[21]=e("p",{class:"text-sm text-gray-500"},"Rental Income",-1))])])])):m("",!0)])]}),_:1})],64))}},Os=J(zt,[["__scopeId","data-v-60780f95"]]);export{Os as default};

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.