1import{_ as A}from"./RoomHeader-Br81ifRPw.js";import{_ as H,a as D}from"./RoomListTable-BRBFxLdGC.js";import{_ as I}from"./Screen-9qSm1LdqS.js";import{ak as z,f as K,B as M,ae as Y,U as q,o as F,q as G,c as b,g as u,am as n,az as O,G as g,i as t,aH as $,Y as r,a9 as c,as as j,h as d,t as m,aj as W,al as X}from"./B6nVQaMA.js";import{u as J}from"./useBestUseRule-DVNNSYn8k.js";import{u as Q}from"./useShellRooms-DpkQBr7Nx.js";import{u as Z}from"./useProductHistory-CfYyuE8wt.js";import"./index-DMmC71GM0.js";import"./useTabsScroll-Dvug8BGFP.js";import"./NoFigure-BXCC8BcuA.js";import"./ComposerOptions-B9ZfNsaLr.js";import"./TalkToTeam-Bhn6hrnwu.js";import"./demoTopic-DkWvKlOLk.js";import"./RunsList-CYpRII4Lw.js";import"./runAnswerState-CfzA0vCaX.js";import"./useRoomName-C7SFBEoFG.js";import"./runRowTwins-Dop-EHM4j.js";import"./useCreditsSurface-DGdQ60TJ8.js";import"./useSpendWallet-B0bnms6mB.js";import"./useSelfServeBilling-yorGrXXFz.js";import"./lodash-C5hb1S-ZT.js";import"./conversationsRoomsList-DdOvvlTWu.js";const ee={class:"rv2-room"},te={key:0,class:"bu-rule"},se={class:"bu-rule--kicker"},oe={class:"bu-rule--line"},ae={key:0,class:"rv2-room--pane"},ne={class:"rv2-room--more"},re="",ie="Find the best use for ",le={__name:"best-use",setup(ue){const{t:i}=K(),p=J();M({title:"Best Use â Titleman"});const{withLocale:f,roomUrl:v,roomStateTone:k,roomStateLabel:x,effectiveRoomState:h}=Y(),{usePollingWhileMounted:w}=Q(),{selectPlays:R}=q();w(),F(()=>{R()});const s=G("entry"),T=/best.?use|highest.?and.?best|best play\b/i,{rooms:l,loading:_}=Z("plays",{include:e=>(e.product||"real_estate")==="legal"?!1:e.productKey?e.productKey==="plays":T.test(e.name||"")}),N=b(()=>[{id:"entry",label:"New analysis"},{id:"rooms",label:"Analyses",badge:l.value.length||""}]),S=e=>{if(!e)return"";try{return new Intl.DateTimeFormat("en",{month:"short",day:"numeric"}).format(new Date(e))}catch{return""}},P=b(()=>l.value.map(e=>({id:e.id,name:e.name||"Untitled analysis",product:j(e),deal:"",status:x(h(e)),tone:k(h(e)),updated:S(e.createdAt),href:v(e)}))),o={kicker:"Best Use â 20 simulated strategies, one recommended play",heading:"Give me the property.",lede:"An address is enough. I collect the underwriting baseline, the conversion options and the legal constraints, then simulate 20 fully-calculated 20-year strategies across four families â keep, convert, rebuild, build up â and recommend the single best play.",inputLabel:"The address â attach documents if you have them",hint:"Every strategy carries its own 20-year economics â IRR, equity multiple, exit value, cumulative cash flow. Anything the zoning or title data shows is blocked gets ruled out, not glossed over."},L=[{label:"Attach zoning, title or a survey",attach:".pdf,.doc,.docx"},{label:"Attach a T-12 or rent roll",attach:".pdf,.xlsx,.xls,.csv"},{label:"Pick from Vault",to:"/drive"}];return(e,a)=>{const B=A,U=H,C=I,E=W,V=D;return d(),u("div",ee,[n(B,{name:"Best Use",tagline:"Highest and best use â 20 simulated strategies across Keep / Convert / Rebuild / Build up, one recommended play.",unit:"analysis",onEntry:t(s)==="entry",onNew:a[0]||(a[0]=y=>s.value="entry")},null,8,["onEntry"]),n(U,{tabs:t(N),active:t(s),onSelect:a[1]||(a[1]=y=>s.value=y)},null,8,["tabs","active"]),O(r("div",null,[n(C,{flush:"",headingTag:"h2",kicker:o.kicker,heading:o.heading,lede:o.lede,inputLabel:o.inputLabel,hint:o.hint,chips:L,draft:ie,productChip:re,recentTitle:"Your analyses",rooms:t(l),emptyText:t(_)?"Loading runsâ¦":"Nothing here yet â put an address in the box above."},{input:c(()=>[t(p)?(d(),u("div",te,[r("span",se,m(t(i)("page.best_use.winner_rule_kicker")),1),r("p",oe,m(t(p)),1)])):g("",!0)]),_:1}
1,8,["kicker","heading","lede","inputLabel","hint","rooms","emptyText"])],512),[[$,t(s)==="entry"]]),t(s)==="rooms"?(d(),u("div",ae,[n(V,{title:t(i)("page.best_use.analyses"),sub:"every property this room has worked through",colName:"Analysis",rows:t(P),loading:t(_),emptyText:"Nothing here yet.",emptyNote:"Start one on the New analysis tab â every run lands here."},{foot:c(()=>[r("div",ne,[n(E,{to:t(f)("/reports")},{default:c(()=>[X(m(t(i)("page.best_use.full_history")),1)]),_:1},8,["to"])])]),_:1},8,["title","rows","loading"])])):g("",!0)])}}},Ce=z(le,[["__scopeId","data-v-9d0727d4"]]);export{Ce 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.