1"use strict";(self.webpackChunkreact_app=self.webpackChunkreact_app||[]).push([[75176],{96036(e,a,s){s.d(a,{A:()=>c});var l=s(89379),t=s(9950),n=s(30639),i=s(17575),r=s(44414);const o=e=>{let{tableData:a,columnsData:s,handlePageChange:o,totalRows:c,perPage:d,HandleLimit:m,OnSearch:p,Title:u,RowClick:h,currentpage:x,tableClassName:_="",responsive:j=!0,sortServer:v=!1,onSort:k,defaultSortFieldId:y,defaultSortAsc:N=!1,paginationResetDefaultPage:f=!1,disableResponsive:b=!1}=e;const[g,w]=(0,t.useState)(""),[C,S]=(0,t.useState)([]),D=(0,t.useContext)(i.A),M=(0,t.useRef)(null),[T,A]=(0,t.useState)([]);(0,t.useEffect)(()=>{Array.isArray(a)?A(a.map(e=>{var a,s;return(0,l.A)((0,l.A)({},e),{},{id:null!==(a=null!==(s=e.p_id)&&void 0!==s?s:e.uid)&&void 0!==a?a:e.id})})):A([])},[a]),(0,t.useEffect)(()=>{const e=M.current;if(!e||!h)return;const a=a=>{if(a.target.closest('[data-row-click="ignore"]')||a.target.closest('button, a, input, select, textarea, label, [role="button"]'))return;const s=a.target.closest('.rdt_TableBody .rdt_TableRow[role="row"]');if(!s)return;let l=null;if(s.id){const e=s.id.replace(/^row-/,"");l=T.find(a=>String(a.id)===String(e))}if(!l){const a=Array.from(e.querySelectorAll('.rdt_TableBody .rdt_TableRow[role="row"]')).indexOf(s);a>=0&&(l=T[a])}l&&h(l,a)};return e.addEventListener("click",a),()=>e.removeEventListener("click",a)},[h,T]);const L={headRow:{style:{backgroundColor:D.Darktheme?"#2d3035":"#f8fafc",borderBottom:D.Darktheme?"1px solid #3d4249":"1px solid #e5e7eb",minHeight:"48px"}},headCells:{style:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.04em",color:D.Darktheme?"#e5e7eb":"#374151",paddingLeft:"16px",paddingRight:"16px"}},rows:{style:{minHeight:"72px",borderBottom:D.Darktheme?"1px solid #3d4249":"1px solid #f1f5f9",backgroundColor:D.Darktheme?"#1e2124":"#fff",cursor:h?"pointer":"default"},highlightOnHoverStyle:{backgroundColor:D.Darktheme?"#2d3035":"#f8fafc",borderBottomColor:D.Darktheme?"#3d4249":"#e5e7eb",outline:"none"}},cells:{style:{padding:"12px 16px",fontSize:"0.875rem",color:D.Darktheme?"#f3f4f6":"#1f2937"}},noData:{style:{color:D.Darktheme?"#fff":"#000",backgroundColor:D.Darktheme?"#010114":"#fff"}},table:{style:{overflow:"visible"}},tableWrapper:{style:{overflowX:"auto",borderRadius:"12px"}},responsiveWrapper:{style:{overflow:"visible"}},pagination:{style:{borderTop:D.Darktheme?"1px solid #3d4249":"1px solid #e5e7eb",minHeight:"52px",fontSize:"0.875rem"}}},P=Boolean(h);return(0,r.jsx)("div",{ref:M,className:"datatable-container ".concat(_," ").concat(D.Darktheme?"DarkTheme-Active":"").concat(P?" datatable-container--row-clickable":""),children:(0,r.jsx)(n.Ay,{title:u,columns:s,data:T,keyField:"id",pagination:!0,paginationServer:!0,paginationTotalRows:c,onChangePage:o,highlightOnHover:P,pointerOnHover:P,paginationPerPage:d,onChangeRowsPerPage:m,paginationRowsPerPageOptions:[25,50,75,100,200],responsive:!b&&j,customStyles:L,paginationDefaultPage:x||1,paginationResetDefaultPage:f,overflowY:!1,overflowYOffset:0,dense:!1,sortServer:v,onSort:k,defaultSortFieldId:y,defaultSortAsc:N})})},c=(0,t.memo)(o)},75176(e,a,s){s.r(a),s.d(a,{default:()=>$});var l=s(89379),t=s(9950),n=s(16339),i=s(37729),r=s(4359),o=s(17575),c=s(3919),d=s(27232),m=s(96036),p=s(40777),u=(s(32910),s(39961),s(61084)),h=(s(49107),s(99215));const x={offMarket:{key:"offMarket",isOffMarket:1,countyType:5,marketType:"offMarket",pageLabel:"Properties",title:"Off-market properties",description:"Import and browse off-market property records, batch ranks, and skip-trace contacts.",loadingLabel:"Loading off-market properties\u2026",portfolioLabel:"Off-market portfolio",portfolioCaption:"Total property records in the catalog",overviewInsight:"All counties",detailToneClass:"",detailListingLabel:"Off-market",detailListingFallback:"Off-market listing",backToListingsLabel:"Back to off-market listings",loadListingsError:"Failed to load off-market properties",propertyNotFoundError:"Off-market property not found",propertyMarketMismatchError:"This property is not in the off-market catalog",showCountyInventory:!0,countyCoverageEyebrow:"Texas coverage",showImportCsv:!0,importModalDescription:"Select a CSV file with off-market property columns. Only CSV format is supported.",countyProgressRows:[{key:"comal",label:"Comal",sublabel:"Active county import",propertyMetricLabel:"Properties synced",skipMetricLabel:"Skip traces used",toneClass:"is-comal",propertyTotalsKey:"totalpropertyupdatedcomal",skipTotalsKey:"totalskiptraceupdatedcomal",highlighted:!0},{key:"activeMls",label:"Active MLS",sublabel:"Active MLS import",propertyMetricLabel:"Properties synced",skipMetricLabel:"Skip traces used",toneClass:"is-active-mls",propertyTotalsKey:"totalpropertyupdatedactive",skipTotalsKey:"totalskiptraceupdatedactive",highlighted:!1}]},active:{key:"active",isOffMarket:2,countyType:6,marketType:"active",pageLabel:"Properties",title:"Active MLS properties",description:"Browse active MLS property records, batch ranks, and skip-trace contacts.",loadingLabel:"Loading active MLS properties\u2026",portfolioLabel:"Active MLS portfolio",portfolioCaption:"Live MLS listings in the catalog",overviewInsight:"All counties",detailToneClass:"is-active-mls",detailListingLabel:"Active MLS",detailListingFallback:"Active MLS listing",backToListingsLabel:"Back to active MLS listings",loadListingsError:"Failed to load active MLS properties",propertyNotFoundError:"Active MLS property not found",propertyMarketMismatchError:"This property is not in the active MLS catalog",showCountyInventory:!0,countyCoverageEyebrow:"MLS coverage",showImportCsv:!1,importModalDescription:"",countyProgressRows:[{key:"comal",label:"Comal",sublabel:"Prior county import",propertyMetricLabel:"Properties synced",skipMetricLabel:"Skip traces used",toneClass:"is-comal",propertyTotalsKey:"totalpropertyupdatedcomal",skipTotalsKey:"totalskiptraceupdatedcomal",highlighted:!1},{key:"activeMls",label:"Active MLS",sublabel:"Active MLS import",propertyMetricLabel:"Properties synced",skipMetricLabel:"Skip traces used",toneClass:"is-active-mls",propertyTotalsKey:"totalpropertyupdatedactive",skipTotalsKey:"totalskiptraceupdatedactive",highlighted:!0}]}};s(73857);var _=s(44414);const j=[{id:"name",label:"Name"},{id:"count",label:"Property Count"}];
1function v(e){let{countyCounts:a,countyBreakdown:s,totalListings:l,selectedCounties:i,onCountiesChange:r,coverageEyebrow:o="County coverage"}=e;const c=(0,t.useRef)(null),d=(0,t.useRef)(null),[m,p]=(0,t.useState)(!1),[u,x]=(0,t.useState)(""),[v,k]=(0,t.useState)("name"),[y,N]=(0,t.useState)("asc"),f=(0,t.useMemo)(()=>function(e){return(Array.isArray(e)?e:[]).filter(e=>null===e||void 0===e?void 0:e.county).map(e=>({county:e.county,count:Math.max(0,Number(e.count)||0)}))}(a),[a]),b=(0,t.useMemo)(()=>function(e,a,s){const l="desc"===s?-1:1;return[...e].sort((e,s)=>"count"===a?(e.count-s.count)*l||e.county.localeCompare(s.county,void 0,{sensitivity:"base"}):e.county.localeCompare(s.county,void 0,{sensitivity:"base"})*l)}(f,v,y),[f,v,y]),g=(0,t.useMemo)(()=>new Set(Array.isArray(i)?i:[]),[i]),w=(0,t.useMemo)(()=>{const e=u.trim().toLowerCase();return e?b.filter(a=>{let{county:s}=a;return s.toLowerCase().includes(e)}):b},[b,u]),C=(0,t.useMemo)(()=>b.reduce((e,a)=>{let{count:s}=a;return e+s},0),[b]),S=(0,t.useMemo)(()=>b.filter(e=>{let{county:a}=e;return g.has(a)}).reduce((e,a)=>{let{count:s}=a;return e+s},0),[b,g]),D=(0,t.useMemo)(()=>b.reduce((e,a)=>!e||a.count>e.count?a:e,null),[b]),M=(0,t.useCallback)(e=>{if(!r)return;const a=new Set(g);a.has(e)?a.delete(e):a.add(e),r([...a])},[r,g]),T=(0,t.useCallback)(()=>{null===r||void 0===r||r(b.map(e=>{let{county:a}=e;return a}))},[b,r]),A=(0,t.useCallback)(()=>{null===r||void 0===r||r([]),x("")},[r]);(0,t.useEffect)(()=>{if(!m)return;const e=e=>{c.current&&!c.current.contains(e.target)&&p(!1)},a=e=>{"Escape"===e.key&&p(!1)};document.addEventListener("mousedown",e),document.addEventListener("keydown",a);const s=window.setTimeout(()=>{var e;return null===(e=d.current)||void 0===e?void 0:e.focus()},0);return()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",a),window.clearTimeout(s)}},[m]);const L=0===g.size?"All counties":1===g.size?"".concat([...g][0]," County"):"".concat(g.size," counties selected");return(0,_.jsxs)("section",{className:"omp-county-dropdown".concat(g.size?" has-filter":""),"aria-label":"County inventory filter",ref:c,children:[(0,_.jsxs)("div",{className:"omp-county-dropdown__head",children:[(0,_.jsxs)("div",{className:"omp-county-dropdown__intro",children:[(0,_.jsx)("span",{className:"omp-county-dropdown__eyebrow",children:o}),(0,_.jsx)("h2",{children:"County inventory"}),(0,_.jsx)("p",{children:g.size?"Filtering ".concat((0,h.ZV)(S)," properties across ").concat(g.size," selected ").concat(1===g.size?"county":"counties","."):"Select one or more counties to filter property listings. Counts are live from MLS address county data."})]}),(0,_.jsxs)("div",{className:"omp-county-dropdown__stats",children:[(0,_.jsxs)("div",{className:"omp-county-dropdown__stat",children:[(0,_.jsx)("small",{children:"Counties"}),(0,_.jsx)("strong",{children:(0,h.ZV)(b.length)}),(0,_.jsx)("span",{children:"available"})]}),g.size?(0,_.jsxs)("div",{className:"omp-county-dropdown__stat is-active",children:[(0,_.jsx)("small",{children:"Selected"}),(0,_.jsx)("strong",{children:(0,h.ZV)(g.size)}),(0,_.jsxs)("span",{children:[(0,h.ZV)(S)," properties"]})]}):(null===D||void 0===D?void 0:D.count)>0?(0,_.jsxs)("div",{className:"omp-county-dropdown__stat",children:[(0,_.jsx)("small",{children:"Largest county"}),(0,_.jsx)("strong",{children:D.county}),(0,_.jsxs)("span",{children:[(0,h.ZV)(D.count)," properties"]})]}):null]})]}),(0,_.jsxs)("div",{className:"omp-county-dropdown__control",children:[(0,_.jsxs)("button",{type:"button",className:"omp-county-dropdown__trigger".concat(m?" is-open":""),"aria-haspopup":"listbox","aria-expanded":m,onClick:()=>p(e=>!e),children:[(0,_.jsx)("span",{className:"omp-county-dropdown__trigger-icon","aria-hidden":"true",children:(0,_.jsx)(n.HzC,{})}),(0,_.jsxs)("span",{className:"omp-county-dropdown__trigger-copy",children:[(0,_.jsx)("strong",{children:L}),(0,_.jsx)("span",{children:g.size?"".concat((0,h.ZV)(S)," of ").concat((0,h.ZV)(C||l||0)," properties"):"".concat((0,h.ZV)(C||l||0)," properties mapped")})]}),g.size?(0,_.jsx)("span",{className:"omp-county-dropdown__trigger-badge",children:g.size}):null,(0,_.jsx)(n.fK4,{className:"omp-county-dropdown__trigger-chevron","aria-hidden":"true"})]}),m?(0,_.jsxs)("div",{className:"omp-county-dropdown__panel",role:"listbox","aria-multiselectable":"true",children:[(0,_.jsxs)("div",{className:"omp-county-dropdown__panel-head",children:[(0,_.jsxs)("label",{className:"omp-county-dropdown__search",htmlFor:"county-inventory-search",children:[(0,_.jsx)(n.CKj,{"aria-hidden":"true"}),(0,_.jsx)("input",{ref:d,id:"county-inventory-search",type:"search",value:u,onChange:e=>x(e.target.value),placeholder:"Search counties\u2026",autoComplete:"off"}),u?(0,_.jsx)("button",{type:"button",className:"omp-county-dropdown__search-clear",onClick:()=>x(""),"aria-label":"Clear county search",children:(0,_.jsx)(n.yGN,{"aria-hidden":"true"})}):null]}),(0,_.jsxs)("div",{className:"omp-county-dropdown__actions",children:[(0,_.jsx)("button",{type:"button",onClick:T,children:"Select all"}),(0,_.jsx)("button",{type:"button",onClick:A,disabled:!g.size,children:"Clear"})]})]}),(0,_.jsxs)("div",{className:"omp-county-dropdown__sortbar",children:[(0,_.jsx)("span",{className:"omp-county-dropdown__sortbar-label",children:"Sort by"}),(0,_.jsx)("div",{className:"omp-county-dropdown__sort-toggle",role:"group","aria-label":"Sort county list",children:j.map(e=>(0,_.jsx)("button",{type:"button",className:v===e.id?"is-active":"","aria-pressed":v===e.id,onClick:()=>k(e.id),children:e.label},e.id))}),(0,_.jsx)("button",{type:"button",className:"omp-county-dropdown__sort-dir",onClick:()=>N(e=>"asc"===e?"desc":"asc"),"aria-label":"asc"===y?"Sort ascending":"Sort descending",title:"asc"===y?"Ascending":"Descending",children:"asc"===y?(0,_.jsx)(n.ei4,{"aria-hidden":"true"}):(0,_.jsx)(n.LPr,{"aria-hidden":"true"})})]}),(0,_.jsx)("div",{className:"omp-county-dropdown__list",children:w.length?w.map(e=>{let{county:a,count:s}=e;const l=g.has(a);return(0,_.jsxs)("button",{type:"button",role:"option","aria-selected":l,className:"omp-county-dropdown__option".concat(l?" is-selected":""),onClick:()=>M(a),children:[(0,_.jsx)("span",{className:"omp-county-dropdown__check".concat(l?" is-checked":""),"aria-hidden":"true",children:l?(0,_.jsx)(n.YrT,{}):null}),(0,_.jsxs)("span",{className:"omp-county-dropdown__option-copy",children:[(0,_.jsx)("strong",{children:a}),(0,_.jsx)("span",{children:"County"})]}),(0,_.jsx)("span",{className:"omp-county-dropdown__option-count",children:(0,h.ZV)(s)})]},a)}):(0,_.jsx)("div",{className:"omp-county-dropdown__empty",children:"No counties match your search."})})]}):null]}),g.size?(0,_.jsxs)("div",{className:"omp-county-dropdown__chips","aria-label":"Selected counties",children:[[...g].sort((e,a)=>e.localeCompare(a)).map(e=>(0,_.jsxs)("button",{type:"button",className:"omp-county-dropdown__chip",onClick:()=>M(e),"aria-label":"Remove ".concat(e," County filter"),children:[e,(0,_.jsx)(n.yGN,{"aria-hidden":"true"})]},e)),(0,_.jsx)("button",{type:"button",className:"omp-county-dropdown__chip is-clear",onClick:A,children:"Clear all"})]}):null]})}var k=s(14338);function y(e){if(!e||!/^\d{4}-\d{2}-\d{2}$/.test(e))return"";const[a,s,l]=e.split("-");return"".concat(s,"/").concat(l,"/").concat(a)}function N(e){if(!e)return"";const a=String(e).trim();if(/^\d{4}-\d{2}-\d{2}$/.test(a))return a;const s=a.match(/^(\d{1,2})[/-](\d{1,2})[/-](\d{4})$/);if(!s)return"";const[,l,t,n]=s;return"".concat(n,"-").concat(l.padStart(2,"0"),"-").concat(t.padStart(2,"0"))}function f(e){var a,s;return e?null!==(a=navigator)&&void 0!==a&&null!==(s=a.clipboard)&&void 0!==s&&s.writeText?navigator.clipboard.writeText(e):new Promise((a,s)=>{try{const l=document.createElement("textarea");l.value=e,l.setAttribute("readonly",""),l.style.position="fixed",l.style.left="-9999px",document.body.appendChild(l),l.select();const t=document.execCommand("copy");document.body.removeChild(l),t?a():s(new Error("Copy failed"))}catch(l){s(l)}}):Promise.reject(new Error("No link"))}let b=0,g=0;function w(e){return e?e===window||e===document.documentElement||e===document.body||e===document.scrollingElement?window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0:e.scrollTop||0:0}function C(e,a){if(e)return e===window||e===document.documentElement||e===document.body||e===document.scrollingElement?(window.scrollTo(0,a),document.documentElement.scrollTop=a,void(document.body.scrollTop=a)):void(e.scrollTop=a)}function S(){const e=[],a=new Set,s=s=>{s&&!a.has(s)&&(a.add(s),e.push(s))};s(document.querySelector(".admin-content"));
1const l=document.querySelector(".mls-admin-detail, .omp-page, .maindivdashboard");let t=null===l||void 0===l?void 0:l.parentElement;for(;t&&t!==document.documentElement;){if(t.scrollHeight>t.clientHeight+1){const e=window.getComputedStyle(t).overflowY;"auto"!==e&&"scroll"!==e&&"overlay"!==e||s(t)}t=t.parentElement}return s(document.scrollingElement||document.documentElement),s(document.documentElement),s(document.body),e}function D(){g+=1;const e=g;b&&(cancelAnimationFrame(b),b=0);const a=()=>{if(e!==g)return;const a=S().filter(e=>w(e)>1);if(!a.length)return void S().forEach(e=>C(e,0));const s=a.map(e=>w(e)),l=Math.max(...s),t=Math.min(860,Math.max(560,.48*l));let n=null;const i=l=>{if(e!==g)return;null===n&&(n=l);const r=Math.min((l-n)/t,1),o=1-(1-r)**5;a.forEach((e,a)=>{C(e,s[a]*(1-o))}),r<1?b=requestAnimationFrame(i):(a.forEach(e=>C(e,0)),b=0)};b=requestAnimationFrame(i)};requestAnimationFrame(()=>{requestAnimationFrame(a)})}function M(e){let{property:a,compact:s=!1}=e;const[l,i]=(0,t.useState)(!1),r=(0,t.useMemo)(()=>(0,h.j3)(a),[a]);(0,t.useEffect)(()=>{if(!l)return;const e=setTimeout(()=>i(!1),1800);return()=>clearTimeout(e)},[l]);const o=(0,t.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),r&&f(r).then(()=>{i(!0),d.oR.success("Property link copied")}).catch(()=>d.oR.error("Could not copy link"))},[r]),c=(0,t.useCallback)(e=>{e.stopPropagation()},[]);return r?s?(0,_.jsxs)("div",{className:"mls-property-link mls-property-link--compact","data-row-click":"ignore",children:[(0,_.jsxs)("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"mls-property-link__open",title:"Open frontend property page",onClick:c,children:[(0,_.jsx)(n.HaR,{"aria-hidden":"true"}),(0,_.jsx)("span",{children:"Open"})]}),(0,_.jsx)("button",{type:"button",className:"mls-property-link__copy".concat(l?" is-copied":""),onClick:o,title:l?"Copied":"Copy property link","aria-label":l?"Property link copied":"Copy property link",children:l?(0,_.jsx)(n.YrT,{"aria-hidden":"true"}):(0,_.jsx)(n.nxz,{"aria-hidden":"true"})})]}):(0,_.jsxs)("div",{className:"mls-property-link-card",children:[(0,_.jsx)("div",{className:"mls-property-link-card__glow","aria-hidden":"true"}),(0,_.jsxs)("div",{className:"mls-property-link-card__main",children:[(0,_.jsx)("div",{className:"mls-property-link-card__icon","aria-hidden":"true",children:(0,_.jsx)(n.ayE,{})}),(0,_.jsxs)("div",{className:"mls-property-link-card__copy",children:[(0,_.jsx)("h3",{children:"Property Link"}),(0,_.jsx)("p",{className:"mls-property-link-card__url",title:r,children:r})]})]}),(0,_.jsxs)("div",{className:"mls-property-link-card__actions",children:[(0,_.jsxs)("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"mls-property-link-card__btn mls-property-link-card__btn--primary",onClick:c,children:[(0,_.jsx)(n.HaR,{"aria-hidden":"true"}),"Open page"]}),(0,_.jsxs)("button",{type:"button",className:"mls-property-link-card__btn mls-property-link-card__btn--ghost".concat(l?" is-copied":""),onClick:o,children:[l?(0,_.jsx)(n.YrT,{"aria-hidden":"true"}):(0,_.jsx)(n.nxz,{"aria-hidden":"true"}),l?"Copied":"Copy link"]})]})]}):s?(0,_.jsx)("span",{className:"mls-property-link mls-property-link--empty",children:"\u2014"}):null}function T(e){let{property:a,compact:s=!1}=e;const[l,i]=(0,t.useState)(!1),r=(0,t.useMemo)(()=>(0,h.Jg)(a),[a]);(0,t.useEffect)(()=>{if(!l)return;const e=setTimeout(()=>i(!1),1800);return()=>clearTimeout(e)},[l]);const o=(0,t.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),r&&f(r).then(()=>{i(!0),d.oR.success("Claim Property link copied")}).catch(()=>d.oR.error("Could not copy link"))},[r]),c=(0,t.useCallback)(e=>{e.stopPropagation()},[]);return r?s?(0,_.jsxs)("div",{className:"mls-property-link mls-property-link--compact mls-property-link--claim","data-row-click":"ignore",children:[(0,_.jsxs)("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"mls-property-link__open",title:"Open Claim Home page for this property",onClick:c,children:[(0,_.jsx)(n.V5Y,{"aria-hidden":"true"}),(0,_.jsx)("span",{children:"Claim"})]}),(0,_.jsx)("button",{type:"button",className:"mls-property-link__copy".concat(l?" is-copied":""),onClick:o,title:l?"Copied":"Copy Claim Property link","aria-label":l?"Claim Property link copied":"Copy Claim Property link",children:l?(0,_.jsx)(n.YrT,{"aria-hidden":"true"}):(0,_.jsx)(n.nxz,{"aria-hidden":"true"})})]}):null:s?(0,_.jsx)("span",{className:"mls-property-link mls-property-link--empty",children:"\u2014"}):null}function A(e){let{property:a,Darkclass:s}=e;const l=(0,t.useMemo)(()=>(0,h.j3)(a),[a]),n=(0,t.useMemo)(()=>(0,h.Jg)(a),[a]);if(!l&&!n)return null;const i=(e,a)=>s=>{var l;null===s||void 0===s||null===(l=s.preventDefault)||void 0===l||l.call(s),e&&f(e).then(()=>d.oR.info("".concat(a," copied \u2014 open in another browser to verify."))).catch(()=>d.oR.error("Could not copy link"))};return(0,_.jsxs)("div",{className:"spp-detail-link-actions ".concat(s||""),children:[(0,_.jsxs)("div",{className:"spp-detail-link-actions-head",children:[(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{className:"spp-detail-link-actions-eyebrow",children:"Share property"}),(0,_.jsx)("h2",{className:"spp-detail-link-actions-title",children:"Property links"})]}),(0,_.jsx)("p",{className:"spp-detail-link-actions-desc",children:"Copy a link to share with the homeowner or preview the live off-market property page."})]}),(0,_.jsxs)("div",{className:"spp-detail-link-actions-grid",children:[n&&(0,_.jsxs)("button",{type:"button",className:"spp-detail-link-action spp-detail-link-action--claim",onClick:i(n,"Claim Property link"),children:[(0,_.jsx)("span",{className:"spp-detail-link-action-icon","aria-hidden":!0,
1children:(0,_.jsx)("i",{className:"fas fa-link"})}),(0,_.jsxs)("span",{className:"spp-detail-link-action-text",children:[(0,_.jsx)("span",{className:"spp-detail-link-action-label",children:"Copy Claim Property link"}),(0,_.jsx)("span",{className:"spp-detail-link-action-hint",children:"Share with homeowner to claim"})]}),(0,_.jsx)("span",{className:"spp-detail-link-action-chevron","aria-hidden":!0,children:(0,_.jsx)("i",{className:"fas fa-copy"})})]}),l&&(0,_.jsxs)("button",{type:"button",className:"spp-detail-link-action spp-detail-link-action--public",onClick:i(l,"Property link"),children:[(0,_.jsx)("span",{className:"spp-detail-link-action-icon","aria-hidden":!0,children:(0,_.jsx)("i",{className:"fas fa-external-link-alt"})}),(0,_.jsxs)("span",{className:"spp-detail-link-action-text",children:[(0,_.jsx)("span",{className:"spp-detail-link-action-label",children:"Copy public link"}),(0,_.jsx)("span",{className:"spp-detail-link-action-hint",children:"Live off-market property URL"})]}),(0,_.jsx)("span",{className:"spp-detail-link-action-chevron","aria-hidden":!0,children:(0,_.jsx)("i",{className:"fas fa-copy"})})]})]})]})}function L(e){let{score:a,compact:s=!1}=e;if(null==a)return(0,_.jsx)("span",{className:"mls-batch-rank-pill mls-batch-rank-pill--empty",children:"\u2014"});const l=(0,h.r9)(a);return(0,_.jsxs)("div",{className:"mls-batch-rank-pill mls-batch-rank-pill--".concat(l).concat(s?" mls-batch-rank-pill--compact":""),children:[(0,_.jsx)("span",{className:"mls-batch-rank-pill__value",children:a.toFixed(1)}),!s&&(0,_.jsx)("span",{className:"mls-batch-rank-pill__label",children:(0,h.Hx)(l)})]})}function P(e){let{property:a}=e;const s=(0,t.useMemo)(()=>(0,h.jV)(a),[a]);return null!==s&&void 0!==s&&s.county?(0,_.jsxs)("div",{className:"mls-table-county",title:"".concat(s.county," County"),children:[(0,_.jsx)("span",{className:"mls-table-county__dot","aria-hidden":"true"}),(0,_.jsxs)("div",{className:"mls-table-county__copy",children:[(0,_.jsx)("strong",{children:s.county}),(0,_.jsx)("span",{children:"County"})]})]}):(0,_.jsx)("span",{className:"mls-table-county mls-table-county--empty",children:"\u2014"})}function R(e){let{property:a,compact:s=!1}=e;const l=(0,h.IY)(a),t=(0,h.r9)(l);if(s)return(0,_.jsxs)("div",{className:"mls-detail-mini-card mls-batch-rank-panel mls-batch-rank-panel--".concat(t," mls-batch-rank-panel--compact"),children:[(0,_.jsx)("div",{className:"mls-detail-mini-card__header",children:(0,_.jsxs)("div",{className:"mls-detail-mini-card__copy",children:[(0,_.jsx)("span",{className:"mls-detail-mini-card__eyebrow",children:"Batch Rank"}),(0,_.jsx)("h3",{children:"Propensity Score"})]})}),(0,_.jsx)("div",{className:"mls-detail-mini-card__body mls-detail-mini-card__body--center",children:(0,_.jsxs)("div",{className:"mls-batch-rank-inline-badge mls-batch-rank-inline-badge--".concat(t),"aria-label":"Batch rank score ".concat(null!==l&&void 0!==l?l:"not available"),children:[(0,_.jsx)("strong",{children:null!=l?l.toFixed(1):"\u2014"}),null!=l?(0,_.jsx)("span",{children:(0,h.Hx)(t)}):null]})})]});const n=(0,h.an)(null===a||void 0===a?void 0:a.intel),i=1===Number(null===a||void 0===a?void 0:a.isBatchRank),r=1===Number(null===a||void 0===a?void 0:a.isNewCreate);return(0,_.jsxs)("div",{className:"mls-batch-rank-panel mls-batch-rank-panel--".concat(t),children:[(0,_.jsx)("div",{className:"mls-batch-rank-panel__glow","aria-hidden":"true"}),(0,_.jsxs)("div",{className:"mls-batch-rank-panel__content",children:[(0,_.jsxs)("div",{className:"mls-batch-rank-panel__left",children:[(0,_.jsx)("span",{className:"mls-batch-rank-panel__eyebrow",children:"Batch Rank Intelligence"}),(0,_.jsx)("h3",{children:"Batch Rank Score"}),(0,_.jsx)("p",{className:"mls-batch-rank-panel__subtitle",children:"Sale propensity signal from BatchData \u2014 higher scores indicate stronger off-market opportunity."}),(0,_.jsxs)("div",{className:"mls-batch-rank-panel__badges",children:[i?(0,_.jsx)("span",{className:"mls-batch-rank-flag",children:"Batch ranked"}):null,r?(0,_.jsx)("span",{className:"mls-batch-rank-flag mls-batch-rank-flag--new",children:"New from sync"}):null,null!==n&&void 0!==n&&n.salePropensityCategory?(0,_.jsx)("span",{className:"mls-batch-rank-flag mls-batch-rank-flag--muted",children:n.salePropensityCategory}):null]})]}
1),(0,_.jsxs)("div",{className:"mls-batch-rank-panel__score-ring","aria-label":"Batch rank score ".concat(null!==l&&void 0!==l?l:"not available"),children:[(0,_.jsxs)("svg",{viewBox:"0 0 120 120",className:"mls-batch-rank-panel__ring-svg",children:[(0,_.jsx)("circle",{cx:"60",cy:"60",r:"52",className:"mls-batch-rank-panel__ring-track"}),(0,_.jsx)("circle",{cx:"60",cy:"60",r:"52",className:"mls-batch-rank-panel__ring-progress",style:{strokeDasharray:"".concat(null!=l?l/100*327:0," 327")}})]}),(0,_.jsxs)("div",{className:"mls-batch-rank-panel__score-center",children:[(0,_.jsx)("strong",{children:null!=l?l.toFixed(1):"\u2014"}),(0,_.jsx)("small",{children:null!=l?(0,h.Hx)(t):"No score"})]})]})]})]})}function E(e){let{value:a,compact:s=!1}=e;const l=Number(a),t=1===l?{tone:"enriched",icon:"fa-user-check",label:"Enriched",title:"Skip trace match found"}:2===l?{tone:"no-match",icon:"fa-user-slash",label:"No match",title:"Skip trace processed with no match"}:{tone:"pending",icon:"fa-user-clock",label:"Pending",title:"Awaiting skip trace enrichment"};return(0,_.jsxs)("span",{className:"mls-skip-trace-pill mls-skip-trace-pill--".concat(t.tone).concat(s?" mls-skip-trace-pill--compact":""),title:t.title,children:[(0,_.jsx)("i",{className:"fas ".concat(t.icon),"aria-hidden":"true"}),(0,_.jsx)("span",{children:t.label})]})}function O(e){let{person:a,indexPrefix:s="",variant:l="default"}=e;const t=(0,h.l5)(a),n=(0,h.Xq)(a),i="modal"===l?"mls-skip-modal-phone-list":"mls-skip-trace-phone-list",r="modal"===l?"mls-skip-modal-phone-row":"mls-skip-trace-phone-item",o="modal"===l?"mls-skip-modal-phone-row__meta":"mls-skip-trace-phone-meta",c="modal"===l?"mls-skip-modal-tag":"mls-skip-trace-phone-tag";return(0,_.jsx)("ul",{className:i,children:t.map(e=>{const a=n&&e.number===n;return(0,_.jsxs)("li",{className:"".concat(r).concat(a?" is-recommended":"").concat(!0===e.dnc?" is-dnc":""),children:[(0,_.jsx)("a",{href:"tel:".concat(e.number.replace(/\D/g,"")),className:"modal"===l?"mls-skip-modal-phone-row__number":void 0,children:e.number}),(0,_.jsxs)("div",{className:o,children:[e.type?(0,_.jsx)("span",{className:c,children:e.type}):null,a?(0,_.jsx)("span",{className:"".concat(c," ").concat("modal"===l?"mls-skip-modal-tag--recommended":"mls-skip-trace-phone-tag--success"),children:"Recommended"}):null,!0===e.dnc?(0,_.jsx)("span",{className:"".concat(c," ").concat("modal"===l?"mls-skip-modal-tag--dnc":"mls-skip-trace-phone-tag--warning"),children:"DNC"}):null,!0===e.reachable?(0,_.jsx)("span",{className:"".concat(c," ").concat("modal"===l?"mls-skip-modal-tag--success":"mls-skip-trace-phone-tag--success"),children:"Reachable"}):!1===e.reachable?(0,_.jsx)("span",{className:"".concat(c," ").concat("modal"===l?"mls-skip-modal-tag--muted":"mls-skip-trace-phone-tag--muted"),children:"Not reachable"}):null,null!=e.rank?(0,_.jsxs)("span",{className:c,children:["Rank ",e.rank]}):null,e.carrier?(0,_.jsx)("span",{className:"modal"===l?"mls-skip-modal-phone-row__carrier":"mls-skip-trace-phone-carrier",children:e.carrier}):null]})]},"".concat(s,"-phone-").concat(e.number))})})}function F(e){let{person:a,indexPrefix:s="",variant:l="default"}=e;const t=(0,h.C9)(a),n=(0,h.XS)(a),i="modal"===l?"mls-skip-modal-email-list":void 0;return(0,_.jsx)("ul",{className:i,children:t.map(e=>{const a=e.email,t=n&&a===n;return(0,_.jsxs)("li",{className:"modal"===l?"mls-skip-modal-email-row".concat(t?" is-recommended":""):void 0,children:[(0,_.jsx)("a",{href:"mailto:".concat(a),className:"modal"===l?"mls-skip-modal-email-row__link":void 0,children:a}),(0,_.jsxs)("div",{className:"modal"===l?"mls-skip-modal-email-row__meta":void 0,children:[!0===e.tested?(0,_.jsx)("span",{className:"modal"===l?"mls-skip-modal-tag mls-skip-modal-tag--success":"mls-skip-trace-phone-tag mls-skip-trace-phone-tag--success",children:"Verified"}):!1===e.tested?(0,_.jsx)("span",{className:"modal"===l?"mls-skip-modal-tag mls-skip-modal-tag--muted":"mls-skip-trace-phone-tag mls-skip-trace-phone-tag--muted",children:"Unverified"}):null,t?(0,_.jsx)("span",{className:"modal"===l?"mls-skip-modal-tag mls-skip-modal-tag--recommended":"mls-skip-trace-phone-tag mls-skip-trace-phone-tag--success",children:"Recommended"}):null]})]},"".concat(s,"-email-").concat(a))})})}function B(e){let{property:a,compact:s=!1,onPersonClick:l}=e;const{legalOwnerNames:t,confirmedOwners:n,unverifiedContacts:i,allPeople:r}=(0,h.YD)(a),o=Number(null===a||void 0===a?void 0:a.isSkipTraceUpdated),c=1===o?"enriched":2===o?"no-match":"pending",d=(e,a)=>e.map((e,s)=>{const t=(0,h.b3)(e);return(0,_.jsxs)("button",{type:"button",className:"mls-skip-trace-owner-chip",onClick:()=>null===l||void 0===l?void 0:l(e,s),children:[(0,_.jsx)("span",{className:"mls-skip-trace-owner-chip__avatar","aria-hidden":"true",children:t.charAt(0).toUpperCase()}),(0,_.jsx)("span",{className:"mls-skip-trace-owner-chip__name",children:t}),(0,_.jsx)("i",{className:"fas fa-arrow-right mls-skip-trace-owner-chip__icon","aria-hidden":"true"})]},"".concat(a,"-").concat((null===e||void 0===e?void 0:e._id)||s))});return(0,_.jsxs)("section",{className:"mls-detail-mini-card mls-skip-trace-panel mls-skip-trace-panel--".concat(c).concat(s?" mls-skip-trace-panel--compact":""),children:[(0,_.jsxs)("div",{className:"mls-detail-mini-card__header",children:[(0,_.jsxs)("div",{className:"mls-detail-mini-card__copy",children:[(0,_.jsx)("span",{className:"mls-detail-mini-card__eyebrow",children:"Skip Trace"}),(0,_.jsx)("h3",{children:"Owner contacts"})]}),(0,_.jsx)(E,{value:null===a||void 0===a?void 0:a.isSkipTraceUpdated,compact:!0})]}),(0,_.jsx)("div",{className:"mls-detail-mini-card__body",children:r.length||t.length?(0,_.jsxs)("div",{className:"mls-skip-trace-owner-list mls-skip-trace-owner-list--compact",children:[t.length>0&&(0,_.jsxs)("div",{className:"mls-skip-trace-owner-group",children:[(0,_.jsx)("p",{className:"mls-skip-trace-owner-group__label",children:"Owners on record"}),(0,_.jsx)("div",{className:"mls-skip-trace-owner-group__names",children:t.map(e=>(0,_.jsx)("span",{className:"mls-skip-trace-owner-record",children:e},e))})]}),n.length>0&&(0,_.jsxs)("div",{className:"mls-skip-trace-owner-group",children:[(0,_.jsx)("p",{className:"mls-skip-trace-owner-group__label",children:"Confirmed owner contacts"}),d(n,"confirmed")]}),i.length>0&&(0,_.jsxs)("div",{className:"mls-skip-trace-owner-group",children:[(0,_.jsx)("p",{className:"mls-skip-trace-owner-group__label",children:"Associated contacts (unverified)"}),d(i,"unverified")]})]}):(0,_.jsx)("div",{className:"mls-detail-mini-card__empty mls-detail-mini-card__empty--center",children:(0,_.jsx)("p",{children:2===o?"No matching contact found.":"No skip trace data yet."})})})]})}function I(e){var a,s;let{show:l,onHide:t,person:n,personIndex:i,property:r,Darkclass:o,Darktext:d}=e;if(!n)return null;const m=(0,h.b3)(n),p=(0,h.C9)(n),u=(0,h.l5)(n),x=(0,h.Co)(n),j=(0,h.ul)(null===n||void 0===n?void 0:n.propertyAddress),v=(0,h.D3)(n),k=(0,h.sT)(r),y=(0,h.DC)(n)?"Confirmed owner":"Unverified contact",N=(0,h.DC)(n)?"confirmed":"unverified",f=(0,h.Xq)(n),b=(0,h.XS)(n),g=[!0===(null===n||void 0===n||null===(a=n.meta)||void 0===a?void 0:a.matched)?{label:"Match status",value:"Matched"}:null,!1===(null===n||void 0===n||null===(s=n.meta)||void 0===s?void 0:s.matched)?{label:"Match status",value:"No match"}:null,!0===(null===n||void 0===n?void 0:n.litigator)?{label:"Litigator",value:"Yes"}:null,null!==n&&void 0!==n&&n.death&&Object.keys(n.death).length>0?{label:"Death record",value:"On file"}:null,null!==n&&void 0!==n&&n.bankruptcy&&Object.keys(n.bankruptcy).length>0?{label:"Bankruptcy",value:"On file"}:null,null!==n&&void 0!==n&&n.dnc&&Object.keys(n.dnc).length>0?{label:"Do not call",value:"On file"}
1:null].filter(Boolean);return(0,_.jsxs)(c.A,{show:l,onHide:t,centered:!0,size:"lg",dialogClassName:"mls-person-modal-dialog",contentClassName:"mls-person-modal-content",backdropClassName:"mls-person-modal-backdrop",children:[(0,_.jsxs)("div",{className:"mls-person-modal__hero mls-person-modal__hero--".concat(N),children:[(0,_.jsx)("div",{className:"mls-person-modal__hero-pattern","aria-hidden":"true"}),(0,_.jsx)("button",{type:"button",className:"mls-person-modal__close",onClick:t,"aria-label":"Close",children:(0,_.jsx)("i",{className:"fas fa-times","aria-hidden":"true"})}),(0,_.jsxs)("div",{className:"mls-person-modal__hero-content",children:[(0,_.jsxs)("div",{className:"mls-person-modal__hero-top",children:[(0,_.jsxs)("span",{className:"mls-person-modal__eyebrow",children:[(0,_.jsx)("i",{className:"fas fa-user-circle","aria-hidden":"true"}),"Contact profile"]}),(0,_.jsx)(E,{value:null===r||void 0===r?void 0:r.isSkipTraceUpdated,compact:!0})]}),(0,_.jsxs)("div",{className:"mls-person-modal__hero-main",children:[(0,_.jsx)("div",{className:"mls-person-modal__avatar",children:m.charAt(0).toUpperCase()}),(0,_.jsxs)("div",{className:"mls-person-modal__hero-copy",children:[(0,_.jsxs)("div",{className:"mls-person-modal__title-row",children:[(0,_.jsx)("h2",{children:m}),(0,_.jsx)("span",{className:"mls-person-modal__role mls-person-modal__role--".concat(N),children:y})]}),(0,_.jsx)("p",{className:"mls-person-modal__address",children:k}),null!==r&&void 0!==r&&r.property_id?(0,_.jsxs)("span",{className:"mls-person-modal__property-id",children:["Property ID \xb7 ",r.property_id]}):null]})]}),f||b?(0,_.jsxs)("div",{className:"mls-person-modal__quick",children:[f?(0,_.jsxs)("a",{href:"tel:".concat(f.replace(/\D/g,"")),className:"mls-person-modal__quick-item",children:[(0,_.jsx)("i",{className:"fas fa-phone","aria-hidden":"true"}),(0,_.jsx)("span",{children:f}),(0,_.jsx)("em",{children:"Recommended"})]}):null,b?(0,_.jsxs)("a",{href:"mailto:".concat(b),className:"mls-person-modal__quick-item",children:[(0,_.jsx)("i",{className:"fas fa-envelope","aria-hidden":"true"}),(0,_.jsx)("span",{children:b}),(0,_.jsx)("em",{children:"Verified"})]}):null]}):null]})]}),(0,_.jsxs)(c.A.Body,{className:"mls-person-modal__body ".concat(o),children:[v.length>0||g.length>0?(0,_.jsxs)("div",{className:"mls-person-modal__flags",children:[v.map(e=>(0,_.jsx)("span",{className:"mls-person-modal__flag mls-person-modal__flag--".concat(e.tone),children:e.label},e.label)),g.map(e=>(0,_.jsxs)("span",{className:"mls-person-modal__flag mls-person-modal__flag--meta",children:[e.label,": ",e.value]},e.label))]}):null,(0,_.jsxs)("div",{className:"mls-person-modal__grid",children:[p.length>0?(0,_.jsxs)("section",{className:"mls-person-modal__card",children:[(0,_.jsxs)("header",{className:"mls-person-modal__card-head",children:[(0,_.jsx)("span",{className:"mls-person-modal__card-icon","aria-hidden":"true",children:(0,_.jsx)("i",{className:"fas fa-envelope"})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("h3",{className:d,children:"Emails"}),(0,_.jsx)("p",{children:"Verified and ranked deliverability"})]}),(0,_.jsx)("span",{className:"mls-person-modal__card-count",children:p.length})]}),(0,_.jsx)(F,{person:n,indexPrefix:"person-".concat(i),variant:"modal"})]}):null,u.length>0?(0,_.jsxs)("section",{className:"mls-person-modal__card",children:[(0,_.jsxs)("header",{className:"mls-person-modal__card-head",children:[(0,_.jsx)("span",{className:"mls-person-modal__card-icon","aria-hidden":"true",children:(0,_.jsx)("i",{className:"fas fa-phone"})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("h3",{className:d,children:"Phone numbers"}),(0,_.jsx)("p",{children:"Compliance-filtered outreach list"})]}),(0,_.jsx)("span",{className:"mls-person-modal__card-count",children:u.length})]}),(0,_.jsx)(O,{person:n,indexPrefix:"person-".concat(i),variant:"modal"})]}):null,x?(0,_.jsxs)("section",{className:"mls-person-modal__card mls-person-modal__card--address",children:[(0,_.jsxs)("header",{className:"mls-person-modal__card-head",children:[(0,_.jsx)("span",{className:"mls-person-modal__card-icon","aria-hidden":"true",children:(0,_.jsx)("i",{className:"fas fa-map-marker-alt"})}),(0,_.jsx)("div",{children:(0,_.jsx)("h3",{className:d,children:"Mailing address"})})]}),(0,_.jsx)("p",{className:"mls-person-modal__text",children:x})]}):null,j?(0,_.jsxs)("section",{className:"mls-person-modal__card mls-person-modal__card--address",children:[(0,_.jsxs)("header",{className:"mls-person-modal__card-head",children:[(0,_.jsx)("span",{className:"mls-person-modal__card-icon","aria-hidden":"true",children:(0,_.jsx)("i",{className:"fas fa-home"})}),(0,_.jsx)("div",{children:(0,_.jsx)("h3",{className:d,children:"Property address"})})]}),(0,_.jsx)("p",{className:"mls-person-modal__text",children:j})]}):null]})]}),(0,_.jsx)(c.A.Footer,{className:"mls-person-modal__footer ".concat(o),children:(0,_.jsx)("button",{type:"button",className:"mls-person-modal__done-btn",onClick:t,children:"Close"})})]})}function V(e){let{show:a,onHide:s,onExport:l,exportLoading:t,exportFilter:n,setExportFilter:i,exportFields:r,setExportFields:o,Darkclass:d,Darktext:m}=e;const p=h.V2.flatMap(e=>e.fields.map(e=>e.id)),u=r.length>=p.length;return(0,_.jsxs)(c.A,{show:a,onHide:()=>!t&&s(),centered:!0,size:"lg",dialogClassName:"mls-skip-export-modal__dialog",contentClassName:"mls-skip-export-modal__content ".concat(d),backdropClassName:"mls-skip-export-modal__backdrop",children:[(0,_.jsxs)("div",{className:"mls-skip-export-modal__hero",children:[(0,_.jsx)("div",{className:"mls-skip-export-modal__hero-glow","aria-hidden":"true"}),(0,_.jsx)("button",{type:"button",className:"mls-skip-export-modal__close",onClick:s,disabled:t,"aria-label":"Close",children:"\xd7"}),(0,_.jsxs)("div",{className:"mls-skip-export-modal__hero-content",children:[(0,_.jsx)("span",{className:"mls-skip-export-modal__eyebrow",children:"BatchData export"}),(0,_.jsx)("h2",{className:m,children:"Export Skip/Trace"}),(0,_.jsxs)("p",{children:["Choose which skip trace records to include in your CSV download."," Exports all matching properties (no limit)."]})]})]}),(0,_.jsxs)(c.A.Body,{className:"mls-skip-export-modal__body ".concat(d),children:[(0,_.jsx)("div",{className:"mls-skip-export-modal__options",children:[{id:"match",title:"Skip/Trace Match Data",description:"Properties where skip trace returned owner contact matches.",icon:"fa-user-check"},{id:"no-match",title:"No Match Data",description:"Properties processed with
1no contact matches or empty people data.",icon:"fa-user-slash"},{id:"both",title:"Both",description:"Export every skip trace record regardless of match status.",icon:"fa-layer-group"}].map(e=>{const a=n===e.id;return(0,_.jsxs)("button",{type:"button",className:"mls-skip-export-modal__option".concat(a?" is-selected":""),onClick:()=>i(e.id),disabled:t,children:[(0,_.jsx)("span",{className:"mls-skip-export-modal__option-icon","aria-hidden":"true",children:(0,_.jsx)("i",{className:"fas ".concat(e.icon)})}),(0,_.jsxs)("span",{className:"mls-skip-export-modal__option-copy",children:[(0,_.jsx)("strong",{className:m,children:e.title}),(0,_.jsx)("span",{children:e.description})]}),(0,_.jsx)("span",{className:"mls-skip-export-modal__option-check","aria-hidden":"true",children:(0,_.jsx)("i",{className:"fas ".concat(a?"fa-check-circle":"fa-circle")})})]},e.id)})}),(0,_.jsxs)("div",{className:"mls-skip-export-modal__preview",children:[(0,_.jsx)("h3",{className:m,children:"CSV columns"}),(0,_.jsx)("div",{className:"mls-skip-export-modal__columns",children:h.Pn.map(e=>(0,_.jsx)("span",{className:"mls-skip-export-modal__column-chip",children:e},e))}),(0,_.jsx)("p",{children:"These core columns are always included. Multiple contacts on one property create separate rows with the same property details."})]}),(0,_.jsxs)("div",{className:"mls-skip-export-modal__fields",children:[(0,_.jsxs)("div",{className:"mls-skip-export-modal__fields-head",children:[(0,_.jsxs)("div",{className:"mls-skip-export-modal__fields-heading",children:[(0,_.jsx)("h3",{className:m,children:"Add property columns"}),(0,_.jsx)("p",{children:"Pick the extra columns to include in your CSV export."})]}),(0,_.jsxs)("div",{className:"mls-skip-export-modal__fields-actions",children:[(0,_.jsxs)("span",{className:"mls-skip-export-modal__fields-count",children:[r.length," selected"]}),(0,_.jsx)("button",{type:"button",className:"mls-skip-export-modal__select-all",onClick:()=>o(u?[]:p),disabled:t,children:u?"Clear all":"Select all"})]})]}),(0,_.jsx)("div",{className:"mls-skip-export-modal__field-groups",children:h.V2.map(e=>{const a=e.fields.filter(e=>r.includes(e.id)).length;return(0,_.jsxs)("div",{className:"mls-skip-export-modal__field-group",children:[(0,_.jsxs)("div",{className:"mls-skip-export-modal__field-group-head",children:[(0,_.jsx)("span",{className:"mls-skip-export-modal__field-group-title",children:e.title}),(0,_.jsxs)("span",{className:"mls-skip-export-modal__field-group-count".concat(a?" is-active":""),children:[a,"/",e.fields.length]})]}),(0,_.jsx)("div",{className:"mls-skip-export-modal__field-list",children:e.fields.map(e=>{const a=r.includes(e.id);return(0,_.jsxs)("label",{className:"mls-skip-export-modal__field".concat(a?" is-checked":""),children:[(0,_.jsx)("input",{type:"checkbox",checked:a,onChange:()=>{return a=e.id,void o(e=>e.includes(a)?e.filter(e=>e!==a):[...e,a]);var a},disabled:t}),(0,_.jsx)("span",{className:"mls-skip-export-modal__field-box","aria-hidden":"true",children:(0,_.jsx)("i",{className:"fas fa-check"})}),(0,_.jsx)("span",{className:"mls-skip-export-modal__field-label",children:e.label})]},e.id)})})]},e.id)})})]})]}),(0,_.jsxs)(c.A.Footer,{className:"mls-skip-export-modal__footer ".concat(d),children:[(0,_.jsx)("button",{type:"button",className:"mls-skip-export-modal__btn mls-skip-export-modal__btn--ghost",onClick:s,disabled:t,children:"Cancel"}),(0,_.jsx)("button",{type:"button",className:"mls-skip-export-modal__btn mls-skip-export-modal__btn--primary",onClick:l,disabled:t||!n,children:t?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("i",{className:"fas fa-spinner fa-spin me-2","aria-hidden":"true"}),"Preparing export\u2026"]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("i",{className:"fas fa-download me-2","aria-hidden":"true"}),"Download CSV"]})})]})]})}function H(e){let{totals:a,totalListings:s,listingsCountLabel:l,variantConfig:t}=e;const i=Math.max(0,Number(null===a||void 0===a?void 0:a.totalproperty)||0),r=Math.max(0,Number(null===a||void 0===a?void 0:a.totalpropertyupdated)||0),o=Math.max(0,Number(null===a||void 0===a?void 0:a.totalpropertyupdatednew)||0),c=r+o,d=(null===t||void 0===t?void 0:t.countyProgressRows)||[],m=d.reduce((e,s)=>e+Math.max(0,Number(null===a||void 0===a?void 0:a[s.propertyTotalsKey])||0),0),p=c+m,u=(Math.max(0,i-p),i&&Math.min(100,p/i*100),Math.max(0,Number(null===a||void 0===a?void 0:a.totalskiptrace)||0)),x=Math.max(0,Number(null===a||void 0===a?void 0:a.totalskiptraceupdated)||0),j=d.reduce((e,s)=>e+Math.max(0,Number(null===a||void 0===a?void 0:a[s.skipTotalsKey])||0),0),v=x+j;Math.max(0,u-v),u&&Math.min(100,v/u*100);return(0,_.jsx)("div",{className:"omp-stats omp-stats--credits",children:(0,_.jsxs)("div",{className:"omp-stat-card omp-stat-card--overview is-indigo",children:[(0,_.jsxs)("div",{className:"omp-overview-primary",children:[(0,_.jsx)("span",{className:"omp-stat-icon is-indigo",children:(0,_.jsx)(n.V5Y,{})}),(0,_.jsxs)("div",{className:"omp-stat-body",children:[(0,_.jsx)("small",{children:(null===t||void 0===t?void 0:t.portfolioLabel)||"Portfolio"}),(0,_.jsx)("strong",{children:null!==l&&void 0!==l?l:(0,h.ZV)(s)}),(0,_.jsx)("span",{className:"omp-stat-caption",children:(null===t||void 0===t?void 0:t.portfolioCaption)||"Total property records in the catalog"})]})]}),(0,_.jsxs)("div",{className:"omp-overview-insights",children:[(0,_.jsxs)("div",{className:"omp-overview-insight",children:[(0,_.jsx)("span",{className:"omp-overview-insight__icon",children:(0,_.jsx)(n.Hbo,{})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("small",{children:"Market coverage"}),(0,_.jsx)("strong",{children:(null===t||void 0===t?void 0:t.overviewInsight)||"Texas counties"})]})]}),(0,_.jsxs)("div",{className:"omp-overview-insight",children:[(0,_.jsx)("span",{className:"omp-overview-insight__icon is-violet",children:(0,_.jsx)(n.cfS,{})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("small",{children:"Data tracking"}),(0,_.jsx)("strong",{children:"Property + Skip Trace"})]})]})]})]})})}function z(e){let{person:a,index:s,tone:l="confirmed"}=e;const t=(0,h.b3)(a),n=(0,h.C9)(a),i=(0,h.l5)(a),r=(0,h.Co)(a),o=(0,h.D3)(a),c=(0,h.DC)(a)?"Confirmed owner":"Unverified contact",d=(0,h.Xq)(a),m=(0,h.XS)(a);return(0,_.jsxs)("article",{className:"mls-skip-modal-contact mls-skip-modal-contact--".concat(l),children:[(0,_.jsx)("div",{className:"mls-skip-modal-contact__accent","aria-hidden":"true"}),(0,_.jsxs)("header",{className:"mls-skip-modal-contact__header",children:[(0,_.jsx)("div",{className:"mls-skip-modal-contact__avatar",children:t.charAt(0).toUpperCase()}),(0,_.jsxs)("div",{className:"mls-skip-modal-contact__identity",children:[(0,_.jsxs)("div",{className:"mls-skip-modal-contact__title-row",children:[(0,_.jsx)("h4",{children:t}),(0,_.jsx)("span",{className:"mls-skip-modal-contact__role mls-skip-modal-contact__role--".concat(l),children:c})]}),d||m?(0,_.jsxs)("div",{className:"mls-skip-modal-contact__quick",children:[d?(0,_.jsxs)("a",{href:"tel:".concat(d.replace(/\D/g,"")),className:"mls-skip-modal-contact__quick-item",children:[(0,_.jsx)("i",{className:"fas fa-phone","aria-hidden":"true"}),d]}):null,m?(0,_.jsxs)("a",{href:"mailto:".concat(m),className:"mls-skip-modal-contact__quick-item",children:[(0,_.jsx)("i",{className:"fas fa-envelope","aria-hidden":"true"}),m]}):null]}):null,o.length>0?(0,_.jsx)("div",{className:"mls-skip-modal-contact__flags",children:o.map(e=>(0,_.jsx)("span",{className:"mls-skip-modal-contact__flag mls-skip-modal-contact__flag--".concat(e.tone),children:e.label},"".concat(s,"-").concat(e.label)))}):null]})]}),n.length>0||i.length>0||r?(0,_.jsxs)("div",{className:"mls-skip-modal-contact__grid",children:[n.length>0?(0,_.jsxs)("section",{className:"mls-skip-modal-contact__section",children:[(0,_.jsxs)("div",{className:"mls-skip-modal-contact__section-head",children:[(0,_.jsx)("i",{className:"fas fa-envelope","aria-hidden":"true"}),(0,_.jsx)("h5",{children:"Emails"}),(0,_.jsx)("span",{children:n.length})]}),(0,_.jsx)(F,{person:a,indexPrefix:"skip-modal-".concat(s),variant:"modal"})]}):null,i.length>0?(0,_.jsxs)("section",{className:"mls-skip-modal-contact__section",children:[(0,_.jsxs)("div",{className:"mls-skip-modal-contact__section-head",children:[(0,_.jsx)("i",{className:"fas fa-phone","aria-hidden":"true"}),(0,_.jsx)("h5",{children:"Phone numbers"}),(0,_.jsx)("span",{children:i.length})]}),(0,_.jsx)(O,{person:a,indexPrefix:"skip-modal-".concat(s),variant:"modal"})]}):null,r?(0,_.jsxs)("section",{className:"mls-skip-modal-contact__section mls-skip-modal-contact__section--full",children:[(0,_.jsxs)("div",{className:"mls-skip-modal-contact__section-head",children:[(0,_.jsx)("i",{className:"fas fa-map-marker-alt","aria-hidden":"true"}),(0,_.jsx)("h5",{children:"Mailing address"})]}),(0,_.jsx)("p",{className:"mls-skip-modal-contact__text",children:r})]}):null]}):null]})}const q={Equity:"fa-chart-line","Equity %":"fa-percentage",Absentee:"fa-home",Vacant:"fa-door-open"};function U(e){let{show:a,onHide:s,property:l,Darkclass:t,Darktext:n}=e;if(!l)return null;const{legalOwnerNames:i,confirmedOwners:r,unverifiedContacts:o}=(0,h.YD)(l),d=(0,h.Q4)(l),m=(0,h.sT)(l),p=r.length>0||o.length>0,u=d?[null!=d.equity?{label:"Equity",value:(0,h.vv)(d.equity)}:null,null!=d.equityPercent?{label:"Equity %",value:"".concat(d.equityPercent,"%")}:null,null!=d.absenteeOwner?{label:"Absentee",value:d.absenteeOwner?"Yes":"No"}:null,null!=d.vacant?{label:"Vacant",value:d.vacant?"Yes":"No"}
1:null].filter(Boolean):[];return(0,_.jsxs)(c.A,{show:a,onHide:s,centered:!0,size:"lg",dialogClassName:"mls-skip-modal-dialog",contentClassName:"mls-skip-modal-content",backdropClassName:"mls-skip-modal-backdrop",children:[(0,_.jsxs)("div",{className:"mls-skip-modal__hero",children:[(0,_.jsx)("div",{className:"mls-skip-modal__hero-pattern","aria-hidden":"true"}),(0,_.jsx)("button",{type:"button",className:"mls-skip-modal__close",onClick:s,"aria-label":"Close",children:(0,_.jsx)("i",{className:"fas fa-times","aria-hidden":"true"})}),(0,_.jsxs)("div",{className:"mls-skip-modal__hero-content",children:[(0,_.jsxs)("div",{className:"mls-skip-modal__hero-top",children:[(0,_.jsxs)("span",{className:"mls-skip-modal__eyebrow",children:[(0,_.jsx)("i",{className:"fas fa-search-location","aria-hidden":"true"}),"Skip trace intelligence"]}),(0,_.jsx)(E,{value:null===l||void 0===l?void 0:l.isSkipTraceUpdated,compact:!0})]}),(0,_.jsx)("h2",{children:m}),(0,_.jsxs)("div",{className:"mls-skip-modal__summary",children:[(0,_.jsxs)("div",{className:"mls-skip-modal__summary-item",children:[(0,_.jsx)("strong",{children:i.length}),(0,_.jsx)("span",{children:"On record"})]}),(0,_.jsx)("div",{className:"mls-skip-modal__summary-divider","aria-hidden":"true"}),(0,_.jsxs)("div",{className:"mls-skip-modal__summary-item",children:[(0,_.jsx)("strong",{children:r.length}),(0,_.jsx)("span",{children:"Confirmed"})]}),(0,_.jsx)("div",{className:"mls-skip-modal__summary-divider","aria-hidden":"true"}),(0,_.jsxs)("div",{className:"mls-skip-modal__summary-item",children:[(0,_.jsx)("strong",{children:o.length}),(0,_.jsx)("span",{children:"Unverified"})]})]}),l.property_id?(0,_.jsxs)("span",{className:"mls-skip-modal__property-id",children:["Property ID \xb7 ",l.property_id]}):null]})]}),(0,_.jsxs)(c.A.Body,{className:"mls-skip-modal__body ".concat(t),children:[u.length>0?(0,_.jsx)("div",{className:"mls-skip-modal__intel",children:u.map(e=>(0,_.jsxs)("div",{className:"mls-skip-modal__intel-card",children:[(0,_.jsx)("span",{className:"mls-skip-modal__intel-icon","aria-hidden":"true",children:(0,_.jsx)("i",{className:"fas ".concat(q[e.label]||"fa-circle-info")})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{children:e.label}),(0,_.jsx)("strong",{className:n,children:e.value})]})]},e.label))}):null,i.length>0?(0,_.jsxs)("section",{className:"mls-skip-modal__section",children:[(0,_.jsxs)("div",{className:"mls-skip-modal__section-head",children:[(0,_.jsxs)("div",{className:"mls-skip-modal__section-title",children:[(0,_.jsx)("i",{className:"fas fa-file-signature","aria-hidden":"true"}),(0,_.jsx)("h4",{className:n,children:"Owners on record"})]}),(0,_.jsx)("span",{className:"mls-skip-modal__section-count",children:i.length})]}),(0,_.jsx)("div",{className:"mls-skip-modal__legal-row",children:i.map(e=>(0,_.jsx)("span",{className:"mls-skip-modal__legal-chip",children:e},e))})]}):null,r.length>0?(0,_.jsxs)("section",{className:"mls-skip-modal__section",children:[(0,_.jsxs)("div",{className:"mls-skip-modal__section-head",children:[(0,_.jsxs)("div",{className:"mls-skip-modal__section-title",children:[(0,_.jsx)("i",{className:"fas fa-user-check","aria-hidden":"true"}),(0,_.jsx)("h4",{className:n,children:"Confirmed owner contacts"})]}),(0,_.jsx)("span",{className:"mls-skip-modal__section-count mls-skip-modal__section-count--confirmed",children:r.length})]}),(0,_.jsx)("div",{className:"mls-skip-modal__people",children:r.map((e,a)=>(0,_.jsx)(z,{person:e,index:a,tone:"confirmed"},"modal-confirmed-".concat(l.property_id||l.p_id,"-").concat((null===e||void 0===e?void 0:e._id)||a)))})]}):null,o.length>0?(0,_.jsxs)("section",{className:"mls-skip-modal__section",children:[(0,_.jsxs)("div",{className:"mls-skip-modal__section-head",children:[(0,_.jsxs)("div",{className:"mls-skip-modal__section-title",children:[(0,_.jsx)("i",{className:"fas fa-user-clock","aria-hidden":"true"}),(0,_.jsx)("h4",{className:n,children:"Associated contacts"})]}),(0,_.jsx)("span",{className:"mls-skip-modal__section-count mls-skip-modal__section-count--unverified",children:o.length})]}),(0,_.jsx)("p",{className:"mls-skip-modal__section-note",children:"Not verified as property owners \u2014 use as leads only."}),(0,_.jsx)("div",{className:"mls-skip-modal__people",children:o.map((e,a)=>(0,_.jsx)(z,{person:e,index:a,tone:"unverified"},"modal-unverified-".concat(l.property_id||l.p_id,"-").concat((null===e||void 0===e?void 0:e._id)||a)))})]}):null,p||0!==i.length?null:(0,_.jsxs)("div",{className:"mls-skip-modal__empty",children:[(0,_.jsx)("i",{className:"fas fa-user-slash","aria-hidden":"true"}),(0,_.jsx)("p",{children:"No skip trace contacts available for this property."})]})]}),(0,_.jsx)(c.A.Footer,{className:"mls-skip-modal__footer ".concat(t),children:(0,_.jsx)("button",{type:"button",className:"mls-skip-modal__done-btn",onClick:s,children:"Close"})})]})}function Y(e){let{row:a,Darktext:s,onViewMore:l}=e;const t=(0,h.Gl)(a),n=(0,h.wI)(a),i=e=>{e.preventDefault(),e.stopPropagation(),l(a)};return n&&t?(0,_.jsxs)("div",{className:"mls-owner-cell",children:[(0,_.jsx)("span",{className:"mls-owner-cell__name ".concat(s),children:t.name}),t.legalOwnersOnly?(0,_.jsx)("span",{className:"mls-owner-cell__no-data",children:"On record \xb7 no confirmed contact"}):null,t.phone?(0,_.jsxs)("span",{className:"mls-owner-cell__meta",children:[(0,_.jsx)("span",{className:"mls-owner-cell__meta-icon mls-owner-cell__meta-icon--phone","aria-hidden":"true"}),t.phone]}):null,t.email?(0,_.jsxs)("span",{className:"mls-owner-cell__meta",children:[(0,_.jsx)("span",{className:"mls-owner-cell__meta-icon mls-owner-cell__meta-icon--email","aria-hidden":"true"}),t.email]}):null,t.peopleCount>1?(0,_.jsxs)("span",{className:"mls-owner-cell__count",children:["+",t.peopleCount-1," more confirmed owner",t.peopleCount>2?"s":""]}):null,t.unverifiedCount>0?(0,_.jsxs)("span",{className:"mls-owner-cell__count",children:[t.unverifiedCount," unverified contact",t.unverifiedCount>1?"s":""]}):null,(0,_.jsx)("span",{role:"button",tabIndex:0,className:"mls-owner-cell__more","data-row-click":"ignore",onClick:i,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||i(e)},children:"View More"})]}):(0,_.jsxs)("div",{className:"mls-owner-cell",children:[(0,_.jsx)("span",{className:"mls-owner-cell__record ".concat(s),children:(0,h.p_)(a)}),(0,_.jsx)("span",{className:"mls-owner-cell__no-data",children:"No Data"})]})}
1const K={address:{icon:"fa-map-marker-alt",tone:"blue"},owner:{icon:"fa-user-tie",tone:"violet"},building:{icon:"fa-home",tone:"emerald"},lot:{icon:"fa-ruler-combined",tone:"amber"},assessment:{icon:"fa-chart-line",tone:"cyan"},sale:{icon:"fa-history",tone:"rose"},tax:{icon:"fa-file-invoice-dollar",tone:"orange"},general:{icon:"fa-info-circle",tone:"slate"},ids:{icon:"fa-fingerprint",tone:"indigo"},legal:{icon:"fa-balance-scale",tone:"purple"},intel:{icon:"fa-brain",tone:"sky"},foreclosure:{icon:"fa-exclamation-triangle",tone:"red"},involuntaryLien:{icon:"fa-link",tone:"amber"},mortgageHistory:{icon:"fa-university",tone:"blue"},openLien:{icon:"fa-file-contract",tone:"orange"},quickLists:{icon:"fa-list",tone:"teal"}};function Z(e){var a,s;let{property:l,Darktext:t}=e;const n=(0,h.an)(l.property_lot),i=(0,h.an)(l.tax),r=(0,h.CT)(l),o=[{icon:"fa-bed",tone:"indigo",label:"Bedrooms",value:null!==(a=(0,h.zA)(l))&&void 0!==a?a:"\u2014"},{icon:"fa-bath",tone:"violet",label:"Bathrooms",value:null!==(s=(0,h.qh)(l))&&void 0!==s?s:"\u2014"},{icon:"fa-expand-arrows-alt",tone:"emerald",label:"Living area",value:null!=r?"".concat((0,h.ZV)(r)," sqft"):"\u2014"},{icon:"fa-vector-square",tone:"amber",label:"Lot size",value:null!=(null===n||void 0===n?void 0:n.lotSizeSquareFeet)?"".concat((0,h.ZV)(n.lotSizeSquareFeet)," sqft"):"\u2014"},{icon:"fa-file-invoice-dollar",tone:"rose",label:"Tax amount",value:(0,h.vv)(null===i||void 0===i?void 0:i.taxAmount)},{icon:"fa-calendar-check",tone:"cyan",label:"Imported",value:(0,h.Yq)(l.created_at)}];return(0,_.jsxs)("section",{className:"mls-property-snapshot",children:[(0,_.jsx)("header",{className:"mls-property-snapshot__header",children:(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{className:"mls-property-snapshot__eyebrow",children:"Property snapshot"}),(0,_.jsx)("h4",{className:t,children:"Key metrics at a glance"})]})}),(0,_.jsx)("div",{className:"mls-property-snapshot__grid",children:o.map(e=>(0,_.jsxs)("article",{className:"mls-property-snapshot__card",children:[(0,_.jsx)("div",{className:"mls-property-snapshot__icon mls-property-snapshot__icon--".concat(e.tone),children:(0,_.jsx)("i",{className:"fas ".concat(e.icon),"aria-hidden":"true"})}),(0,_.jsxs)("div",{className:"mls-property-snapshot__content",children:[(0,_.jsx)("span",{className:"mls-property-snapshot__label",children:e.label}),(0,_.jsx)("strong",{className:t,children:e.value})]})]},e.label))})]})}function W(e){let{sections:a,Darktext:s}=e;return(0,_.jsxs)("section",{className:"mls-property-details",children:[(0,_.jsxs)("header",{className:"mls-property-details__header",children:[(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{className:"mls-property-details__eyebrow",children:"Full record"}),(0,_.jsx)("h4",{className:s,children:"Property data sections"}),(0,_.jsx)("p",{children:"Structured fields imported from MLS and enrichment sources."})]}),(0,_.jsxs)("span",{className:"mls-property-details__count",children:[a.length," sections"]})]}),(0,_.jsx)("div",{className:"mls-admin-section-grid mls-admin-section-grid--premium",children:a.map(e=>{const a=(0,h.OW)(e.data);if(!a.length)return null;const l=K[e.id]||{icon:"fa-folder-open",tone:"slate"};return(0,_.jsxs)("article",{className:"mls-admin-section-card mls-admin-section-card--".concat(l.tone),children:[(0,_.jsxs)("header",{className:"mls-admin-section-card__header",children:[(0,_.jsx)("div",{className:"mls-admin-section-card__icon mls-admin-section-card__icon--".concat(l.tone),children:(0,_.jsx)("i",{className:"fas ".concat(l.icon),"aria-hidden":"true"})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("h4",{children:e.title}),(0,_.jsxs)("span",{children:[a.length," fields"]})]})]}),(0,_.jsx)("div",{className:"mls-admin-kv-list mls-admin-kv-list--premium",children:a.map(a=>(0,_.jsxs)("div",{className:"mls-admin-kv-row",children:[(0,_.jsx)("span",{className:"mls-admin-kv-row__label",children:(0,h.Bj)(a.label)}),(0,_.jsx)("span",{className:"mls-admin-kv-row__value ".concat(s),children:a.value})]},"".concat(e.id,"-").concat(a.label)))})]},e.id)})})]})}const G="https://admin.homeshow.ai/".replace(/\/?$/,"/");function X(e){let{property:a,variantConfig:s,dark:l,darksecondry:i,Darkclass:r,Darktext:o,setShowDetail:c,onPropertyUpdate:d}=e;const[m,p]=(0,t.useState)(null),[x,j]=(0,t.useState)(0),[v,k]=(0,t.useState)((null===a||void 0===a?void 0:a.permitHistory)||null);(0,t.useEffect)(()=>{D()},[null===a||void 0===a?void 0:a.id,null===a||void 0===a?void 0:a.p_id,null===a||void 0===a?void 0:a.property_id]),(0,t.useEffect)(()=>{k((null===a||void 0===a?void 0:a.permitHistory)||null)},[a]);const y=(0,t.useCallback)((e,a)=>{p(e),j(a)},[]);if(!a)return null;const N=(0,h.an)(a.property_address),f=(0,h.D0)(a),b=N?encodeURIComponent([N.street,N.city,N.state,N.zip].filter(
1Boolean).join(", ")):"";return(0,_.jsx)("div",{children:(0,_.jsx)("div",{className:"maindivdashboard ".concat(i),children:(0,_.jsx)("div",{className:"w-100",children:(0,_.jsx)("div",{className:"Admin-Container-wrapper gx-0 Order-sales",children:(0,_.jsx)("div",{className:"list_new gap-25 d-flex",children:(0,_.jsx)("div",{className:"Main-section-Adminpanel",children:(0,_.jsxs)("div",{className:"omp-page mls-admin-detail ".concat(s.detailToneClass||""," ").concat(l?"is-dark":"").trim(),children:[(0,_.jsx)("div",{className:"omp-detail-top",children:(0,_.jsxs)("button",{type:"button",className:"omp-btn",onClick:()=>c(!1),children:[(0,_.jsx)(n.kRp,{}),s.backToListingsLabel]})}),(0,_.jsxs)("div",{className:"mls-admin-detail-top-row",children:[(0,_.jsxs)("div",{className:"mls-admin-detail-hero mls-admin-detail-top-card mls-detail-mini-card",children:[(0,_.jsxs)("div",{className:"mls-detail-mini-card__header mls-detail-mini-card__header--property",children:[(0,_.jsxs)("div",{className:"mls-detail-mini-card__copy",children:[(0,_.jsx)("span",{className:"mls-detail-mini-card__eyebrow",children:"Property"}),(0,_.jsx)("h2",{title:(0,h.sT)(a),children:(0,h.sT)(a)}),a.property_id?(0,_.jsxs)("p",{className:"mls-detail-mini-card__meta",title:a.property_id,children:[s.detailListingLabel," \xb7 ",a.property_id]}):(0,_.jsx)("p",{className:"mls-detail-mini-card__meta",children:s.detailListingFallback})]}),b?(0,_.jsxs)("a",{className:"mls-detail-mini-card__map-link",href:"https://www.google.com/maps/search/?api=1&query=".concat(b),target:"_blank",rel:"noopener noreferrer",children:[(0,_.jsx)("i",{className:"fas fa-map-marker-alt","aria-hidden":"true"}),"Maps"]}):null]}),(0,_.jsx)("div",{className:"mls-detail-mini-card__body",children:(0,_.jsxs)("div",{className:"mls-detail-stat-grid",children:[(0,_.jsxs)("div",{className:"mls-detail-stat",children:[(0,_.jsx)("span",{className:"mls-detail-stat__label",children:"Building"}),(0,_.jsx)("span",{className:"mls-detail-stat__value",children:(0,h.tb)(a)})]}),(0,_.jsxs)("div",{className:"mls-detail-stat",children:[(0,_.jsx)("span",{className:"mls-detail-stat__label",children:"Market value"}),(0,_.jsx)("span",{className:"mls-detail-stat__value",children:(0,h.S4)(a)})]}),(0,_.jsxs)("div",{className:"mls-detail-stat",children:[(0,_.jsx)("span",{className:"mls-detail-stat__label",children:"Last sale"}),(0,_.jsx)("span",{className:"mls-detail-stat__value",children:(0,h.E$)(a)})]}),(0,_.jsxs)("div",{className:"mls-detail-stat",children:[(0,_.jsx)("span",{className:"mls-detail-stat__label",children:"Skip trace"}),(0,_.jsx)("span",{className:"mls-detail-stat__value mls-detail-stat__value--".concat(1===Number(null===a||void 0===a?void 0:a.isSkipTraceUpdated)?"success":2===Number(null===a||void 0===a?void 0:a.isSkipTraceUpdated)?"muted":"pending"),children:1===Number(null===a||void 0===a?void 0:a.isSkipTraceUpdated)?"Enriched":2===Number(null===a||void 0===a?void 0:a.isSkipTraceUpdated)?"No match":"Pending"})]})]})})]}),(0,_.jsx)(R,{property:a,compact:!0}),(0,_.jsx)(B,{property:a,compact:!0,onPersonClick:y})]}),(0,_.jsx)(A,{property:a,Darkclass:r}),(0,_.jsx)(Z,{property:a,Darktext:o}),(0,_.jsx)(u.Ay,{mode:"admin",permitHistory:v}),(0,_.jsx)(W,{sections:f,Darktext:o}),(0,_.jsx)(I,{show:Boolean(m),onHide:()=>p(null),person:m,personIndex:x,property:a,Darkclass:r,Darktext:o})]})})})})})})})}const $=function(e){let{variant:a="offMarket"}=e;const s=(0,t.useMemo)(()=>function(e){return x[e]||x.offMarket}(a),[a]),[u,j]=(0,t.useState)(1),[f,b]=(0,t.useState)(25),[g,w]=(0,t.useState)(""),[C,S]=(0,t.useState)(""),[A,R]=(0,t.useState)(!1),[O,F]=(0,t.useState)([]),[B,I]=(0,t.useState)(0),[z,q]=(0,t.useState)(!1),[K,Z]=(0,t.useState)(!1),[W,$]=(0,t.useState)(null),[J,Q]=(0,t.useState)(!1),[ee,ae]=(0,t.useState)(null),[se,le]=(0,t.useState)(!1),[te,ne]=(0,t.useState)(!1),[ie,re]=(0,t.useState)(null),[oe,ce]=(0,t.useState)(!1),[de,me]=(0,t.useState)(null),[pe,ue]=(0,t.useState)(!1),[he,xe]=(0,t.useState)("match"),[_e,je]=(0,t.useState)(()=>(0,h.wR)()),[ve,ke]=(0,t.useState)(!1),[ye,Ne]=(0,t.useState)({sortBy:"batchRank",sortDir:"desc"}),[fe,be]=(0,t.useState)([]),[ge,we]=(0,t.useState)(""),[Ce,Se]=(0,t.useState)(""),[De,Me]=(0,t.useState)(""),[Te,Ae]=(0,t.useState)(""),[Le,Pe]=(0,t.useState)(!1),Re=(0,t.useContext)(o.A),Ee=Boolean(null===Re||void 0===Re?void 0:Re.Darktheme),Oe=Ee?"darksecondry":"",Fe=Oe,Be=Ee?"textwhite":"",Ie=(0,t.useRef)(null),Ve=(0,t.useRef)(null),He=(0,t.useRef)(null),ze=(0,t.useRef)(!1),qe=(0,t.useRef)(null);(0,t.useEffect)(()=>{const e=setTimeout(()=>S(g.trim()),400);return()=>clearTimeout(e)},[g]);const Ue=(0,t.useCallback)(()=>{var e;null===(e=qe.current)||void 0===e||e.abort();const a=new AbortController;qe.current=a;const{signal:l}=a;R(!0);const t=localStorage.getItem("token");i.A.get("api/properties",{params:{page:u,limit:f,search:C||void 0,counties:fe.length?fe.join(","):void 0,isOffMarket:s.isOffMarket,sortBy:ye.sortBy,sortDir:ye.sortDir,propertyCreatedDateFrom:ge||void 0,propertyCreatedDateTo:Ce||void 0,skipTraceCreatedDateFrom:De||void 0,skipTraceCreatedDateTo:Te||void 0},signal:l,headers:{Authorization:"Basic ".concat(t),"Content-Type":"application/json"}}).then(e=>{if(l.aborted)return;const a=null===e||void 0===e?void 0:e.data;if(null!==a&&void 0!==a&&a.success){var s;const e=null!==(s=a.total)&&void 0!==s?s:0,l=Math.max(1,Math.ceil(e/f)||1);if(u>l)return void j(l);F(a.data||[]),I(e),q(Boolean(a.totalCapped))}else F([]),I(0),q(!1)}).catch(e=>
1{l.aborted||"ERR_CANCELED"===(null===e||void 0===e?void 0:e.code)||"CanceledError"===(null===e||void 0===e?void 0:e.name)||(d.oR.error(s.loadListingsError),F([]),I(0),q(!1))}).finally(()=>{qe.current===a&&R(!1)})},[u,f,C,fe,ye.sortBy,ye.sortDir,s.isOffMarket,s.loadListingsError,ge,Ce,De,Te]);(0,t.useEffect)(()=>(Ue(),()=>{var e;null===(e=qe.current)||void 0===e||e.abort()}),[Ue]);const Ye=(0,t.useCallback)(()=>{r.A.getWithParams("api/properties/total-data-update",{isOffMarket:s.isOffMarket}).then(e=>{null!==e&&void 0!==e&&e.success&&e.data&&re(e.data)}).catch(()=>{})},[s.isOffMarket]);(0,t.useEffect)(()=>{Ye()},[Ye]);const Ke=(0,t.useCallback)(()=>{Pe(e=>!e)},[]);(0,t.useEffect)(()=>{j(1),Ke()},[C,fe,ge,Ce,De,Te,Ke]);const Ze=(0,t.useCallback)(()=>{const e=new Date,a=e=>String(e).padStart(2,"0");return"".concat(e.getFullYear(),"-").concat(a(e.getMonth()+1),"-").concat(a(e.getDate()))},[]),We=Boolean(ge||Ce||De||Te),Ge=(0,t.useCallback)(()=>{we(""),Se(""),Me(""),Ae("")},[]),Xe=(0,t.useCallback)(e=>{we(e),Se(a=>a&&e>a?e:a)},[]),$e=(0,t.useCallback)(e=>{Se(e),we(a=>a&&e<a?e:a)},[]),Je=(0,t.useCallback)(e=>{Me(e),Ae(a=>a&&e>a?e:a)},[]),Qe=(0,t.useCallback)(e=>{Ae(e),Me(a=>a&&e<a?e:a)},[]),ea=(0,t.useCallback)((e,a)=>e&&a?e===a?e:"".concat(e," \u2013 ").concat(a):e?"From ".concat(e):a?"Until ".concat(a):"",[]),aa=(0,t.useCallback)(e=>{be(Array.isArray(e)?e:[])},[]),sa=(0,t.useCallback)((e,a)=>{const s=(null===e||void 0===e?void 0:e.id)||"batchRank";Ne({sortBy:s,sortDir:"asc"===a?"asc":"desc"}),j(1),Ke()},[Ke]),la=(0,t.useCallback)(e=>{me(e)},[]),ta=e=>{var a;(w(e.target.value),A)&&(null===(a=Ve.current)||void 0===a||a.blur()
1)},na=(0,t.useCallback)(async e=>{if(e&&!ze.current){ze.current=!0,Q(!0);try{const a=await r.A.getWithParams("api/properties/".concat(e.p_id),{isOffMarket:s.isOffMarket});if(null!==a&&void 0!==a&&a.success&&a.data){const e=Number(a.data.isOffMarket);if(Number.isFinite(e)&&e!==Number(s.isOffMarket))return void d.oR.error(s.propertyMarketMismatchError);$(a.data),Z(!0),D()}else d.oR.error(s.propertyNotFoundError)}catch(a){d.oR.error("Failed to load property details")}finally{ze.current=!1,Q(!1)}}},[s.isOffMarket,s.propertyMarketMismatchError,s.propertyNotFoundError]),ia=(0,t.useCallback)(async()=>{ke(!0);try{var e;const l=localStorage.getItem("token"),t="no-match"===he?"no-match":he,n=await i.A.get("".concat(G,"api/properties/skip-trace/export"),{params:{filter:he,fields:_e.join(","),format:"csv",isOffMarket:s.isOffMarket,limit:0},headers:{Authorization:"Basic ".concat(l)},responseType:"blob",timeout:6e5});if(String((null===(e=n.headers)||void 0===e?void 0:e["content-type"])||"").includes("application/json")){var a;const e=await n.data.text();let s=null;try{s=JSON.parse(e)}catch(r){s=null}return void d.oR.error((null===(a=s)||void 0===a?void 0:a.message)||"Export failed")}if(!n.data||0===n.data.size)return void d.oR.info("No records matched the selected export filter.");const o=new Blob([n.data],{type:"text/csv;charset=utf-8;"}),c=URL.createObjectURL(o),m=document.createElement("a");m.href=c,m.download="skip-trace-".concat(t,"-").concat(Date.now(),".csv"),m.style.display="none",document.body.appendChild(m),m.click(),document.body.removeChild(m),URL.revokeObjectURL(c),d.oR.success("Skip/Trace CSV downloaded."),ue(!1)}catch(o){var l,t,n;let e=(null===o||void 0===o?void 0:o.message)||"Export failed";const a=null===o||void 0===o||null===(l=o.response)||void 0===l?void 0:l.data;if(a instanceof Blob)try{const s=await a.text(),l=JSON.parse(s);null!==l&&void 0!==l&&l.message&&(e=l.message)}catch(c){}else null!==o&&void 0!==o&&null!==(t=o.response)&&void 0!==t&&null!==(n=t.data)&&void 0!==n&&n.message&&(e=o.response.data.message);"ECONNABORTED"===(null===o||void 0===o?void 0:o.code)&&(e="Export timed out. Try fewer optional columns or a smaller filter."),d.oR.error(e)}finally{ke(!1)}},[he,_e,s.isOffMarket]),ra=(0,t.useMemo)(()=>O.map(e=>{var a,s;return(0,l.A)((0,l.A)({},e),{},{p_id:null!==(a=e.p_id)&&void 0!==a?a:e.id,id:null!==(s=e.p_id)&&void 0!==s?s:e.id})}),[O]),oa=z?"".concat((0,h.ZV)(B-1),"+"):(0,h.ZV)(B),ca=(0,t.useMemo)(()=>[{id:"property",name:"Property",width:"280px",sortable:!0,cell:e=>(0,_.jsxs)("div",{className:"mls-admin-address-cell",children:[(0,_.jsx)("span",{className:"mls-table-property-title ".concat(Be),children:(0,h.sT)(e)}),e.property_id&&(0,_.jsxs)("div",{className:"mls-admin-property-id",children:["ID: ",e.property_id]})]})},{id:"county",name:"County",width:"148px",sortable:!0,cell:e=>(0,_.jsx)(P,{property:e})},{id:"propertyLink",name:"Property Link",width:"140px",sortable:!1,cell:e=>(0,_.jsx)(M,{property:e,compact:!0})},{id:"claimPropertyLink",name:"Claim Property Link",width:"156px",sortable:!1,cell:e=>(0,_.jsx)(T,{property:e,compact:!0})},{id:"owner",name:"Owner",width:"220px",sortable:!0,cell:e=>(0,_.jsx)(Y,{row:e,Darktext:Be,onViewMore:la})},{id:"batchRank",name:"Batch Rank",width:"140px",sortable:!0,cell:e=>(0,_.jsx)(L,{score:(0,h.IY)(e),compact:!0})},{id:"skipTrace",name:"Skip Trace",width:"130px",sortable:!0,cell:e=>(0,_.jsx)(E,{value:e.isSkipTraceUpdated,compact:!0})},{id:"building",name:"Building",width:"180px",sortable:!0,cell:e=>(0,_.jsx)("span",{className:"mls-table-muted ".concat(Be),children:(0,h.tb)(e)})},{id:"marketValue",name:"Market value",width:"130px",sortable:!0,cell:e=>(0,_.jsx)("span",{className:"mls-table-value ".concat(Be),children:(0,h.S4)(e)})},{id:"lastSale",name:"Last sale",width:"160px",sortable:!0,cell:e=>(0,_.jsx)("span",{className:"mls-table-muted ".concat(Be),children:(0,h.E$)(e)})},{id:"added",name:"Added",width:"120px",sortable:!0,cell:e=>(0,_.jsx)("span",{className:"mls-table-muted ".concat(Be),children:(0,h.Yq)(e.created_at)})}
1,{id:"action",name:"Action",width:"150px",sortable:!1,cell:e=>(0,_.jsx)("div",{className:"mls-action-cell-group","data-row-click":"ignore",children:(0,_.jsxs)("button",{type:"button",className:"mls-action-view-btn",onClick:a=>{a.stopPropagation(),na(e)},children:[(0,_.jsx)("i",{className:"fas fa-eye","aria-hidden":"true"}),"View Property"]})})}],[Be,la,na]);if(K&&W)return(0,_.jsx)(X,{property:W,variantConfig:s,dark:Ee,darksecondry:Oe,Darkclass:Fe,Darktext:Be,setShowDetail:e=>{Z(e),e||$(null)},onPropertyUpdate:$});const da=A||J||se||oe||ve,ma=J||se||oe||ve,pa=ve?"Exporting skip-trace CSV\u2026":se?"Importing properties\u2026":oe?"Running skip trace\u2026":J?"Loading property details\u2026":s.loadingLabel;return(0,_.jsxs)("div",{children:[(0,_.jsx)(p.p8,{show:da,label:pa,blockInteraction:ma,className:A&&!ma?"omp-listings-loading-overlay":""}),(0,_.jsx)("div",{className:"maindivdashboard ".concat(Oe),children:(0,_.jsx)("div",{className:"w-100",children:(0,_.jsx)("div",{className:"Admin-Container-wrapper gx-0 Order-sales",children:(0,_.jsx)("div",{className:"list_new gap-25 d-flex",children:(0,_.jsx)("div",{className:"Main-section-Adminpanel",children:(0,_.jsxs)("div",{className:"omp-page ".concat(Ee?"is-dark":""),children:[(0,_.jsxs)("div",{className:"omp-heading",children:[(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{children:s.pageLabel}),(0,_.jsx)("h1",{children:s.title}),(0,_.jsx)("p",{children:s.description})]}),(0,_.jsxs)("div",{className:"omp-heading-actions",children:[(0,_.jsxs)("button",{type:"button",className:"omp-btn",onClick:async()=>{ce(!0);try{const t=await r.A.getWithParams("api/properties/skip-trace/sync",{limit:100,maxPages:10,marketType:s.marketType});var e,a,l;if(null!==t&&void 0!==t&&t.success)d.oR.success("Skip trace complete: ".concat(null!==(e=t.succeeded)&&void 0!==e?e:0," enriched, ").concat(null!==(a=t.failed)&&void 0!==a?a:0," failed, ").concat(null!==(l=t.skipped)&&void 0!==l?l:0," skipped")),Ue(),t.totals?re(t.totals):Ye();else d.oR.error((null===t||void 0===t?void 0:t.message)||"Skip trace sync failed")}catch(i){var t,n;d.oR.error((null===i||void 0===i||null===(t=i.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.message)||(null===i||void 0===i?void 0:i.message)||"Skip trace sync failed")}finally{ce(!1)}},disabled:oe,children:[(0,_.jsx)("i",{className:"fas ".concat(oe?"fa-spinner fa-spin":"fa-user-check"," me-2")}),oe?"Running skip trace\u2026":"Run skip trace"]}),(0,_.jsxs)("button",{type:"button",className:"omp-btn",onClick:()=>{Ue(),Ye()},disabled:A,children:[(0,_.jsx)(n.jTZ,{className:A?"is-spinning":""}),"Refresh"]}),(0,_.jsxs)("button",{type:"button",className:"omp-btn",onClick:()=>ue(!0),disabled:ve,children:[(0,_.jsx)(n.a4x,{}),"Export Skip/Trace"]}),s.showImportCsv?(0,_.jsxs)("button",{type:"button",className:"omp-btn is-primary",onClick:()=>ne(!0),disabled:se,children:[(0,_.jsx)(n.B88,{}),"Import CSV"]}):null]})]}),(0,_.jsx)(H,{totals:ie,totalListings:B,listingsCountLabel:oa,variantConfig:s}),s.showCountyInventory?(0,_.jsx)(v,{countyCounts:Array.isArray(null===ie||void 0===ie?void 0:ie.countyCounts)?ie.countyCounts:[],countyBreakdown:(null===ie||void 0===ie?void 0:ie.countyBreakdown)||null,totalListings:B,selectedCounties:fe,onCountiesChange:aa,coverageEyebrow:s.countyCoverageEyebrow}):null,(0,_.jsxs)("div",{className:"omp-toolbar",children:[(0,_.jsxs)("label",{className:"omp-search",htmlFor:"mls-property-search",children:[(0,_.jsx)(n.CKj,{"aria-hidden":"true"}),(0,_.jsx)("input",{ref:Ve,id:"mls-property-search",type:"text",name:"search",value:g,onChange:ta,disabled:A,placeholder:"Address, property ID, owner, APN\u2026","aria-label":"Search properties"}),g?(0,_.jsx)("button",{type:"button",className:"omp-search-clear",onClick:()=>w(""),"aria-label":"Clear search",children:(0,_.jsx)(n.yGN,{})}):null]}),(0,_.jsxs)("div",{className:"omp-toolbar-meta",children:[(0,_.jsxs)("span",{className:"omp-meta-chip",children:[oa," listing",1===B?"":"s"]}),C?(0,_.jsxs)("span",{className:"omp-meta-chip is-accent",children:["Matching \u201c",C,"\u201d"]}):null,fe.map(e=>(0,_.jsxs)("span",{className:"omp-meta-chip is-county",children:[e," County",(0,_.jsx)("button",{type:"button",className:"omp-meta-chip__clear",onClick:()=>aa(fe.filter(a=>a!==e)),"aria-label":"Clear ".concat(e," County filter"),children:(0,_.jsx)(n.yGN,{"aria-hidden":"true"})})]},e)),ge||Ce?(0,_.jsxs)("span",{className:"omp-meta-chip is-date",children:["Created ",ea(ge,Ce),(0,_.jsx)("button",{type:"button",className:"omp-meta-chip__clear",onClick:()=>{we(""),Se("")},"aria-label":"Clear property created date filter",children:(0,_.jsx)(n.yGN,{"aria-hidden":"true"})})]}):null,De||Te?(0,_.jsxs)("span",{className:"omp-meta-chip is-date",children:["Skip-traced ",ea(De,Te),(0,_.jsx)("button",{type:"button",className:"omp-meta-chip__clear",onClick:()=>{Me(""),Ae("")},"aria-label":"Clear skip-trace created date filter",children:(0,_.jsx)(n.yGN,{"aria-hidden":"true"})})]}):null]})]}),(0,_.jsxs)("div",{className:"omp-date-filters ".concat(We?"has-filter":""),children:[(0,_.jsxs)("div",{className:"omp-date-filters__head",children:[(0,_.jsxs)("div",{className:"omp-date-filters__intro",children:[(0,_.jsx)("span",{className:"omp-date-filters__eyebrow",children:"Refine results"}),(0,_.jsx)("h2",{className:"omp-date-filters__title",children:"Filter by date"}),(0,_.jsx)("p",{className:"omp-date-filters__desc",children:"Show listings added on a specific day, or properties skip-traced on a chosen date."})]}),We?(0,_.jsxs)("button",{type:"button",className:"omp-date-filters__reset",onClick:Ge,children:[(0,_.jsx)(n.cO3,{"aria-hidden":"true"}),"Reset dates"]}):null]}),(0,_.jsxs)("div",{className:"omp-date-filters__grid",children:[(0,_.jsxs)("article",{className:"omp-date-card ".concat(ge||Ce?"is-active":""),children:[(0,_.jsx)("div",{className:"omp-date-card__icon","aria-hidden":"true",children:(0,_.jsx)(n.V5Y,{})}),(0,_.jsxs)("div",{className:"omp-date-card__body",children:[(0,_.jsxs)("div",{className:"omp-date-card__label-row",children:[(0,_.jsx)("label",{htmlFor:"omp-property-created-date-from",children:"Property created"}),ge||Ce?(0,_.jsx)("span",{className:"omp-date-card__badge",children:"Active"}):null]}),(0,_.jsx)("p",{className:"omp-date-card__hint",id:"omp-property-created-date-hint",children:"When the listing was first added to the catalog"}),(0,_.jsxs)("div",{className:"omp-date-card__control",children:[(0,_.jsxs)("div",{className:"omp-date-card__range",children:[(0,_.jsx)(k.A,{inputId:"omp-property-created-date-from",date:y(ge),HandleDate:e=>{const a=N(e);a&&Xe(a)},allowPastDates:!0,maxDate:Ze(),useSlashFormat:!0,portalCalendar:!0,darkbg:Fe,darktext:Be,classes:"omp-date-card__picker",calendarClassName:"omp-date-picker-calendar",data_test_id:"omp-property-created-date-from"}),(0,_.jsx)("span",{className:"omp-date-card__range-sep","aria-hidden":"true",children:"\u2013"}),(0,_.jsx)(k.A,{inputId:"omp-property-created-date-to",date:y(Ce),HandleDate:e=>{const a=N(e);a&&$e(a)},allowPastDates:!0,maxDate:Ze(),useSlashFormat:!0,portalCalendar:!0,darkbg:Fe,darktext:Be,classes:"omp-date-card__picker",calendarClassName:"omp-date-picker-calendar",data_test_id:"omp-property-created-date-to"})]}),(0,_.jsxs)("button",{type:"button",className:"omp-date-card__today",onClick:()=>{we(Ze()),Se(Ze())},title:"Set to today",children:[(0,_.jsx)(n.Ohp,{"aria-hidden":"true"}),"Today"]}),ge||Ce?(0,_.jsx)("button",{type:"button",className:"omp-date-card__clear",onClick:()=>{we(""),Se("")},"aria-label":"Clear property created date",children:(0,_.jsx)(n.yGN,{"aria-hidden":"true"})}):null]})]})]}),(0,_.jsxs)("article",{className:"omp-date-card is-skip-trace ".concat(De||Te?"is-active":""),children:[(0,_.jsx)("div",{className:"omp-date-card__icon","aria-hidden":"true",children:(0,_.jsx)(n.cfS,{})}),(0,_.jsxs)("div",{className:"omp-date-card__body",children:[(0,_.jsxs)("div",{className:"omp-date-card__label-row",children:[(0,_.jsx)("label",{htmlFor:"omp-skip-trace-created-date-from",children:"Skip-trace created"}),De||Te?(0,_.jsx)("span",{className:"omp-date-card__badge",children:"Active"}):null]}),(0,_.jsx)("p",{className:"omp-date-card__hint",id:"omp-skip-trace-created-date-hint",children:"When owner contact data was last pulled for the property"}),(0,_.jsxs)("div",{className:"omp-date-card__control",children:[(0,_.jsxs)("div",{className:"omp-date-card__range",children:[(0,_.jsx)(k.A,{inputId:"omp-skip-trace-created-date-from",date:y(De),HandleDate:e=>{const a=N(e);a&&Je(a)},allowPastDates:!0,maxDate:Ze(),useSlashFormat:!0,portalCalendar:!0,darkbg:Fe,darktext:Be,classes:"omp-date-card__picker is-skip-trace",calendarClassName:"omp-date-picker-calendar is-skip-trace",data_test_id:"omp-skip-trace-created-date-from"}),(0,_.jsx)("span",{className:"omp-date-card__range-sep","aria-hidden":"true",children:"\u2013"}),(0,_.jsx)(k.A,{inputId:"omp-skip-trace-created-date-to",date:y(Te),HandleDate:e=>{const a=N(e);a&&Qe(a)},allowPastDates:!0,maxDate:Ze(),useSlashFormat:!0,portalCalendar:!0,darkbg:Fe,darktext:Be,classes:"omp-date-card__picker is-skip-trace",calendarClassName:"omp-date-picker-calendar is-skip-trace",data_test_id:"omp-skip-trace-created-date-to"})]}),(0,_.jsxs)("button",{type:"button",className:"omp-date-card__today",onClick:()=>{Me(Ze()),Ae(Ze())},title:"Set to today",children:[(0,_.jsx)(n.Ohp,{"aria-hidden":"true"}),"Today"]}),De||Te?(0,_.jsx)("button",{type:"button",className:"omp-date-card__clear",onClick:()=>{Me(""),Ae("")},"aria-label":"Clear skip-trace created date",children:(0,_.jsx)(n.yGN,{"aria-hidden":"true"})}):null]})]})]})]})]}),(0,_.jsxs)("div",{className:"omp-panel",ref:Ie,children:[(0,_.jsxs)("div",{className:"omp-panel-header",children:[(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{children:"Catalog"}),(0,_.jsx)("h2",{children:"Property listings"})]}),(0,_.jsxs)("span",{className:"omp-panel-meta",children:[oa," result",1===B?"":"s",1===fe.length?" in ".concat(fe[0]):fe.length>1?" in ".concat(fe.length," counties"):""]})]}),(0,_.jsx)("div",{className:"omp-table-shell mls-premium-table-card ".concat(Fe),children:(0,_.jsx)(m.A,{Title:"",perPage:f,totalRows:B,HandleLimit:e=>{b(e),j(1),Ke()},OnSearch:ta,columnsData:ca,tableData:ra,handlePageChange:e=>{var a;e&&(j(e),null===(a=Ie.current)||void 0===a||a.scrollIntoView({behavior:"smooth"}))},currentpage:u,tableClassName:"mls-premium-datatable",sortServer:!0,onSort:sa,defaultSortFieldId:ye.sortBy,defaultSortAsc:"asc"===ye.sortDir,paginationResetDefaultPage:Le,RowClick:na,disableResponsive:!0})})]})]})})})})})}),(0,_.jsxs)(c.A,{show:te&&s.showImportCsv,onHide:()=>!se&&ne(!1),centered:!0,children:[(0,_.jsx)(c.A.Header,{closeButton:!0,className:Fe,children:(0,_.jsx)(c.A.Title,{className:Be,children:"Import properties (CSV)"})}),(0,_.jsxs)(c.A.Body,{className:Fe,children:[(0,_.jsx)("p",{className:Be,children:s.importModalDescription}),(0,_.jsx)("input",{ref:He,type:"file",accept:".csv,text/csv",className:"form-control",onChange:e=>{var a;return ae((null===(a=e.target.files)||void 0===a?void 0:a[0])||null)},disabled:se}),ee&&(0,_.jsxs)("p",{className:"mt-2 mb-0 ".concat(Be),style:{fontSize:"0.85rem"},children:["Selected: ",ee.name," (",(ee.size/1024).toFixed(1)," KB)"]})]}),(0,_.jsxs)(c.A.Footer,{className:Fe,children:[(0,_.jsx)("button",{type:"button",className:"btn btn-secondary",onClick:()=>ne(!1),disabled:se,children:"Cancel"}),(0,_.jsx)("button",{type:"button",className:"btn btn-primary",onClick:async()=>
1{if(!ee)return void d.oR.error("Please select a CSV file");if(!ee.name.toLowerCase().endsWith(".csv"))return void d.oR.error("Only CSV files are allowed");le(!0);const e=new FormData;e.append("file",ee);try{const s=localStorage.getItem("token"),l=(await i.A.post("".concat(G,"api/properties/import"),e,{headers:{Authorization:"Basic ".concat(s)}})).data;var a;if(null!==l&&void 0!==l&&l.success)d.oR.success("Import complete: ".concat(l.inserted," inserted, ").concat(null!==(a=l.updated)&&void 0!==a?a:0," updated, ").concat(l.failed," failed (").concat(l.total," rows)")),ne(!1),ae(null),He.current&&(He.current.value=""),j(1),Ue(),Ye();else d.oR.error((null===l||void 0===l?void 0:l.message)||"Import failed")}catch(t){var s,l;d.oR.error((null===(s=t.response)||void 0===s||null===(l=s.data)||void 0===l?void 0:l.message)||t.message||"Import failed")}finally{le(!1)}},disabled:se||!ee,children:se?"Importing\u2026":"Import"})]})]}),(0,_.jsx)(U,{show:Boolean(de),onHide:()=>me(null),property:de,Darkclass:Fe,Darktext:Be}),(0,_.jsx)(V,{show:pe,onHide:()=>ue(!1),onExport:ia,exportLoading:ve,exportFilter:he,setExportFilter:xe,exportFields:_e,setExportFields:je,Darkclass:Fe,Darktext:Be})]})}},61084(e,a,s){s.d(a,{Ay:()=>v});var l=s(9950),t=s(16339),n=(s(49107),s(44414));const i="renovation-permit-history",r=e=>{const a=Number(e);return!Number.isFinite(a)||a<=0?null:new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(a)},o=e=>{if(!e)return"\u2014";const a=new Date(e);return Number.isNaN(a.getTime())?String(e):a.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})},c=e=>{if(!e)return"";const a=new Date(e);return Number.isNaN(a.getTime())?"":String(a.getFullYear())},d={ok:"Synced",no_match:"No match",multiple_tcad:"Review \u2014 multiple TCAD IDs",error:"Sync error",pending:"Not synced",skipped:"Outside Austin area"};function m(e){let{status:a,compact:s=!1}=e;if(!a)return null;const l=function(e){const a=String(e||"").trim().toLowerCase();return a?/active|open|issued|in progress|pending review/.test(a)?"active":/final|complete|closed|approved|finaled/.test(a)?"final":/expir|cancel|void|denied|reject/.test(a)?"warning":"neutral":"neutral"}(a);return(0,n.jsx)("span",{className:"".concat(i,"__badge ").concat(i,"__badge--").concat(l).concat(s?" ".concat(i,"__badge--compact"):""),children:a})}function p(e){let{label:a,value:s}=e;return s&&"\u2014"!==s?(0,n.jsxs)("div",{className:"".concat(i,"__meta-item"),children:[(0,n.jsx)("dt",{className:"".concat(i,"__meta-label"),children:a}),(0,n.jsx)("dd",{className:"".concat(i,"__meta-value"),children:s})]}):null}function u(e){let{subs:a,isAdmin:s}=e;return null!==a&&void 0!==a&&a.length?(0,n.jsxs)("div",{className:"".concat(i,"__trades"),children:[(0,n.jsxs)("div",{className:"".concat(i,"__trades-head"),children:[(0,n.jsx)("h6",{className:"".concat(i,"__trades-title"),children:"Trade permits on this project"}),(0,n.jsx)("span",{className:"".concat(i,"__trades-count"),children:a.length})]}),(0,n.jsx)("div",{className:"".concat(i,"__trades-scroll"),children:(0,n.jsxs)("table",{className:"".concat(i,"__trades-table"),children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"Trade"}),(0,n.jsx)("th",{children:"Contractor"}),(0,n.jsx)("th",{children:"Issued"}),(0,n.jsx)("th",{children:"Completed"}),(0,n.jsx)("th",{children:"Status"}),s?(0,n.jsx)("th",{"aria-label":"Record link"}):null]})}),(0,n.jsx)("tbody",{children:a.map(e=>(0,n.jsxs)("tr",{children:[(0,n.jsxs)("td",{"data-label":"Trade",children:[(0,n.jsx)("span",{className:"".concat(i,"__trades-type"),children:e.permitTypeLabel||e.contractorTrade||"Trade"}),!s&&e.description?(0,n.jsx)("span",{className:"".concat(i,"__trades-desc"),children:e.description}):null]}),(0,n.jsx)("td",{"data-label":"Contractor",children:e.contractorCompanyName||"\u2014"}),(0,n.jsx)("td",{"data-label":"Issued",children:o(e.issuedDate)}),(0,n.jsx)("td",{"data-label":"Completed",children:o(e.completedDate)}),(0,n.jsx)("td",{"data-label":"Status",children:(0,n.jsx)(m,{status:e.status,compact:!0})}),s?(0,n.jsx)("td",{"data-label":"Link",children:e.permitUrl?(0,n.jsxs)("a",{href:e.permitUrl,target:"_blank",rel:"noopener noreferrer",className:"".concat(i,"__link"),
1children:["View ",(0,n.jsx)(t.HaR,{"aria-hidden":!0})]}):"\u2014"}):null]},e.permitId))})]})})]}):null}function h(e){let{entry:a,mode:s,isDark:l}=e;if(!a)return(0,n.jsx)("div",{className:"".concat(i,"__detail ").concat(i,"__detail--empty"),children:(0,n.jsx)("p",{children:"Select a permit record to view details."})});const c="admin"===s,d="project"===a.kind,h=d?a.project.rootPermit:a.permit,x=r(null===h||void 0===h?void 0:h.valuation),_=d?a.project.generalContractor:null===h||void 0===h?void 0:h.contractorCompanyName;return(0,n.jsxs)("article",{className:"".concat(i,"__detail ").concat(l?"".concat(i,"__detail--dark"):""),children:[(0,n.jsxs)("header",{className:"".concat(i,"__detail-header"),children:[(0,n.jsxs)("div",{className:"".concat(i,"__detail-heading"),children:[(0,n.jsxs)("span",{className:"".concat(i,"__detail-kicker"),children:[d?"Construction project":"Standalone permit",a.year?" \xb7 ".concat(a.year):""]}),(0,n.jsx)("h5",{className:"".concat(i,"__detail-title"),children:a.title}),null!==h&&void 0!==h&&h.workClass?(0,n.jsx)("span",{className:"".concat(i,"__detail-tag"),children:h.workClass}):null]}),(0,n.jsx)(m,{status:a.status})]}),(0,n.jsxs)("dl",{className:"".concat(i,"__detail-meta"),children:[(0,n.jsx)(p,{label:"Issued",value:o(null===h||void 0===h?void 0:h.issuedDate)}),(0,n.jsx)(p,{label:"Completed",value:o(null===h||void 0===h?void 0:h.completedDate)}),(0,n.jsx)(p,{label:d?"General contractor":"Contractor",value:_}),(0,n.jsx)(p,{label:"Valuation",value:x||(c?"Not reported":null)}),d&&a.subCount>0?(0,n.jsx)(p,{label:"Trade permits",value:String(a.subCount)}):null]}),null!==h&&void 0!==h&&h.description?(0,n.jsx)("p",{className:"".concat(i,"__detail-description"),children:h.description}):null,d?(0,n.jsx)(u,{subs:a.project.subPermits,isAdmin:c}):null,c&&null!==h&&void 0!==h&&h.permitUrl?(0,n.jsx)("footer",{className:"".concat(i,"__detail-footer"),children:(0,n.jsxs)("a",{href:h.permitUrl,target:"_blank",rel:"noopener noreferrer",className:"".concat(i,"__link ").concat(i,"__link--primary"),children:["Open Austin permit record ",(0,n.jsx)(t.HaR,{"aria-hidden":!0})]})}):null]})}function x(e){let{entry:a,active:s,onSelect:l}=e;return(0,n.jsxs)("button",{type:"button",className:"".concat(i,"__nav-item").concat(s?" ".concat(i,"__nav-item--active"):""),onClick:()=>l(a.id),children:[(0,n.jsx)("span",{className:"".concat(i,"__nav-year"),children:a.year||"\u2014"}),(0,n.jsxs)("span",{className:"".concat(i,"__nav-copy"),children:[(0,n.jsx)("span",{className:"".concat(i,"__nav-title"),children:a.title}),(0,n.jsx)("span",{className:"".concat(i,"__nav-subtitle"),children:a.subtitle})]}),(0,n.jsxs)("span",{className:"".concat(i,"__nav-side"),children:[a.subCount>0?(0,n.jsxs)("span",{className:"".concat(i,"__nav-pill"),children:[a.subCount," trades"]}):null,(0,n.jsx)(m,{status:a.status,compact:!0})]})]})}function _(e){let{entry:a,mode:s,defaultOpen:r,isDark:c}=e;const[d,p]=(0,l.useState)(r);return(0,n.jsxs)("div",{className:"".concat(i,"__mobile-item").concat(d?" ".concat(i,"__mobile-item--open"):""),children:[(0,n.jsxs)("button",{type:"button",className:"".concat(i,"__mobile-trigger"),onClick:()=>p(!d),"aria-expanded":d,children:[(0,n.jsx)("span",{className:"".concat(i,"__mobile-year"),children:a.year||"\u2014"}),(0,n.jsxs)("span",{className:"".concat(i,"__mobile-copy"),children:[(0,n.jsx)("span",{className:"".concat(i,"__mobile-title"),children:a.title}),(0,n.jsxs)("span",{className:"".concat(i,"__mobile-subtitle"),children:[o(a.issuedDate),a.subCount>0?" \xb7 ".concat(a.subCount," trades"):""]})]}),(0,n.jsxs)("span",{className:"".concat(i,"__mobile-side"),children:[(0,n.jsx)(m,{status:a.status,compact:!0}),(0,n.jsx)(t.fK4,{className:"".concat(i,"__mobile-chevron"),"aria-hidden":!0})]})]}),d?(0,n.jsx)("div",{className:"".concat(i,"__mobile-panel"),children:(0,n.jsx)(h,{entry:a,mode:s,isDark:c})}):null]})}function j(e){let{permit:a}=e;const s=r(a.valuation);return(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(0,n.jsx)("span",{className:"".concat(i,"__admin-primary"),children:a.permitNumber||a.permitId})}),(0,n.jsx)("td",{children:a.permitTypeLabel||a.permitType||"\u2014"}),(0,n.jsx)("td",{children:a.workClass||"\u2014"}),(0,n.jsx)("td",{children:a.contractorCompanyName||a.contractorFullName||"\u2014"}),(0,n.jsx)("td",{children:(0,n.jsx)(m,{status:a.status,compact:!0})}),(0,n.jsx)("td",{children:o(a.issuedDate)}),(0,n.jsx)("td",{children:s||(0,n.jsx)("span",{className:"".concat(i,"__muted"),children:"Not reported"})}),(0,n.jsx)("td",{children:a.permitUrl?(0,n.jsxs)("a",{href:a.permitUrl,target:"_blank",rel:"noopener noreferrer",className:"".concat(i,"__link"),
1children:["View ",(0,n.jsx)(t.HaR,{"aria-hidden":!0})]}):"\u2014"})]})}function v(e){var a,s,r;let{mode:m="public",permitHistory:p,permitsSyncMeta:u,onResync:v,resyncing:k=!1,className:y="",isDark:N=!1}=e;const[f,b]=(0,l.useState)(!0),[g,w]=(0,l.useState)(null),C="admin"===m,S=null!==(a=null!==(s=null===p||void 0===p?void 0:p.count)&&void 0!==s?s:null===p||void 0===p||null===(r=p.flat)||void 0===r?void 0:r.length)&&void 0!==a?a:0,D=(null===p||void 0===p?void 0:p.flat)||[],M=(null===p||void 0===p?void 0:p.projects)||[],T=(null===p||void 0===p?void 0:p.standalone)||[],A=(0,l.useMemo)(()=>function(e,a){return[...(e||[]).map(e=>{var a;const s=e.rootPermit||{};return{kind:"project",id:"project-".concat(e.masterPermitNum||s.permitId),title:s.permitTypeLabel||"Building permit",subtitle:s.workClass||e.generalContractor||"Construction project",year:c(s.issuedDate),issuedDate:s.issuedDate,status:s.status,subCount:(null===(a=e.subPermits)||void 0===a?void 0:a.length)||0,project:e,permit:s}}),...(a||[]).map(e=>{const a=e.permit||{};return{kind:"standalone",id:"standalone-".concat(a.permitId),title:a.permitTypeLabel||"Permit",subtitle:a.workClass||a.contractorCompanyName||"Standalone permit",year:c(a.issuedDate),issuedDate:a.issuedDate,status:a.status,subCount:0,permit:a}})].sort((e,a)=>{const s=e.issuedDate?new Date(e.issuedDate).getTime():0;return(a.issuedDate?new Date(a.issuedDate).getTime():0)-s})}(M,T),[M,T]);(0,l.useEffect)(()=>{A.length?g&&A.some(e=>e.id===g)||w(A[0].id):w(null)},[A,g]);const L=A.find(e=>e.id===g)||A[0]||null,P=(0,l.useMemo)(()=>D.map(e=>null===e||void 0===e?void 0:e.issuedDate).filter(Boolean).sort((e,a)=>new Date(a)-new Date(e))[0]||null,[D]),R=(0,l.useMemo)(()=>{if(!u)return null;const e=d[u.syncStatus]||u.syncStatus,a=u.matchMethod?" \xb7 ".concat(u.matchMethod):"",s=u.lastSyncedAt?" \xb7 ".concat(o(u.lastSyncedAt)):"",l=u.tcadId?" \xb7 TCAD ".concat(u.tcadId):"";return"".concat(e).concat(a).concat(s).concat(l)},[u]),E=[i,"".concat(i,"--").concat(m),N?"".concat(i,"--dark"):"",y].filter(Boolean).join(" ");return(0,n.jsxs)("section",{className:E,children:[C?(0,n.jsxs)("header",{className:"".concat(i,"__toolbar"),children:[(0,n.jsxs)("div",{className:"".concat(i,"__toolbar-copy"),children:[(0,n.jsx)("span",{className:"".concat(i,"__kicker"),children:"Permit history"}),(0,n.jsx)("h4",{className:"".concat(i,"__toolbar-title"),children:"Austin building permits"}),R?(0,n.jsx)("p",{className:"".concat(i,"__toolbar-meta"),children:R}):null]}),(0,n.jsxs)("div",{className:"".concat(i,"__toolbar-actions"),children:[(0,n.jsxs)("label",{className:"".concat(i,"__toggle"),children:[(0,n.jsx)("input",{type:"checkbox",checked:f,onChange:e=>b(e.target.checked)}),(0,n.jsx)("span",{children:"Group by project"})]}),v?(0,n.jsxs)("button",{type:"button",className:"".concat(i,"__sync-btn"),onClick:v,disabled:k,children:[(0,n.jsx)(t.jTZ,{className:k?"".concat(i,"__spin"):"","aria-hidden":!0}),k?"Syncing\u2026":"Re-sync"]}):null]})]}):(0,n.jsx)("p",{className:"".concat(i,"__intro"),children:"Verified City of Austin permit records for this address. Select a project to review trades and timeline details."}),S>0?(0,n.jsxs)("div",{className:"".concat(i,"__metrics"),children:[(0,n.jsxs)("div",{className:"".concat(i,"__metric"),children:[(0,n.jsx)("span",{className:"".concat(i,"__metric-value"),children:S}),(0,n.jsx)("span",{className:"".concat(i,"__metric-label"),children:"Permits"})]}),(0,n.jsxs)("div",{className:"".concat(i,"__metric"),children:[(0,n.jsx)("span",{className:"".concat(i,"__metric-value"),children:A.length}),(0,n.jsx)("span",{className:"".concat(i,"__metric-label"),children:"Records"})]}),(0,n.jsxs)("div",{className:"".concat(i,"__metric"),children:[(0,n.jsx)("span",{className:"".concat(i,"__metric-value ").concat(i,"__metric-value--date"),children:P?o(P):"\u2014"}),(0,n.jsx)("span",{className:"".concat(i,"__metric-label"),children:"Most recent"})]})]}):null,0===S?(0,n.jsxs)("div",{className:"".concat(i,"__empty"),children:[(0,n.jsx)("div",{className:"".concat(i,"__empty-icon"),"aria-hidden":!0,children:(0,n.jsx)(t.jH2,{})}),(0,n.jsx)("h5",{className:"".concat(i,"__empty-title"),children:"No permit records foun
1d"}),(0,n.jsxs)("p",{className:"".concat(i,"__empty-copy"),children:["We checked public City of Austin building permit data for this address.",C&&"no_match"===(null===u||void 0===u?void 0:u.syncStatus)?" The address format may need manual review.":" Older renovations may not appear in digitized records."]})]}):f||!C?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"".concat(i,"__workspace ").concat(i,"__workspace--desktop"),children:[(0,n.jsxs)("aside",{className:"".concat(i,"__nav"),"aria-label":"Permit records",children:[(0,n.jsx)("div",{className:"".concat(i,"__nav-label"),children:"Records"}),(0,n.jsx)("div",{className:"".concat(i,"__nav-list"),children:A.map(e=>(0,n.jsx)(x,{entry:e,active:e.id===(null===L||void 0===L?void 0:L.id),onSelect:w},e.id))})]}),(0,n.jsx)(h,{entry:L,mode:m,isDark:N})]}),(0,n.jsx)("div",{className:"".concat(i,"__workspace ").concat(i,"__workspace--mobile"),children:A.map((e,a)=>(0,n.jsx)(_,{entry:e,mode:m,defaultOpen:0===a,isDark:N},e.id))})]}):(0,n.jsx)("div",{className:"".concat(i,"__admin-table-wrap"),children:(0,n.jsxs)("table",{className:"".concat(i,"__admin-table"),children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"Permit #"}),(0,n.jsx)("th",{children:"Type"}),(0,n.jsx)("th",{children:"Work class"}),(0,n.jsx)("th",{children:"Contractor"}),(0,n.jsx)("th",{children:"Status"}),(0,n.jsx)("th",{children:"Issued"}),(0,n.jsx)("th",{children:"Valuation"}),(0,n.jsx)("th",{children:"Link"})]})}),(0,n.jsx)("tbody",{children:D.map(e=>(0,n.jsx)(j,{permit:e},e.permitId))})]})}),!C&&S>0?(0,n.jsx)("p",{className:"".concat(i,"__source"),children:"Source: City of Austin open building permit records. Contractor phone numbers are not shown on public pages."}):null]})}},39961(){},73857(){},49107(){}}]);
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.