PageSourceSearch

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

js home.co.uk collected 2026-10-02 04:55:02 UTC 12,477 bytes, 1 lines download raw bytes

1import{r as u,o,f as r,b as t,F as j,j as C,n as f,h as b,t as n,g as h,p as N,v as z,A as O}from"./runtime-dom.esm-bundler-BFbfmLfl.js";import{r as g}from"./index.esm-C8-Okse2.js";import{_ as U}from"./AdminLayout-Cgk7W50i.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./DashboardLayout-Czs4Ae1a.js";import"./LoginModal-BMeMPme8.js";import"./x-gRRgfAF8.js";import"./createLucideIcon-H8VPBXjN.js";import"./house-BnH-U5r3.js";import"./lock-BQyHxR7C.js";import"./circle-alert-ByG7DPjo.js";import"./loader-circle-BOF4Rcg5.js";import"./shield-xlcuWJAH.js";import"./piggy-bank-C2v63urG.js";import"./file-text-CxktRaAP.js";import"./chevron-down-CV0HnoXa.js";import"./pound-sterling-DallvfDR.js";import"./app-Dvzl3QXw.js";/* empty css            */import"./echo-Cx0reEeH.js";import"./listingImageRemint-DdzXd0Qc.js";import"./chevron-left-BqH44XVe.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./search-DRuNnyPk.js";import"./check-CYOYuDcY.js";import"./sparkles-B9lXBQmj.js";import"./key-round-CDOVxIO1.js";import"./SavePropertyModal-C2h6jxhG.js";import"./map-pin-7NBWNz8E.js";import"./calculator-CW_pbNuI.js";import"./phone-_6yHEIlu.js";import"./camera-Dqs6fn23.js";import"./palette-BHFj3Xy0.js";import"./paintbrush-ChFJNe41.js";import"./wrench-DklhqLlS.js";import"./map-8n63qlK3.js";import"./compass-CH8J464A.js";import"./tag-BO3kPXxQ.js";import"./pin-Ck_QWSJO.js";import"./flag-1_ebRH_b.js";import"./target-CZ1Df2lJ.js";import"./flame-BPccTQZg.js";import"./zap-BONcfJMP.js";import"./rocket-DtFw-SME.js";import"./inbox-CFZTkSBv.js";import"./archive-BeRbhDRR.js";import"./box-390yTOQ1.js";import"./package-Bs-_yP79.js";import"./layers-DhAcOZAq.js";import"./bookmark-BPpFaTpS.js";import"./star-DLmgYZpv.js";import"./square-check-big-Bg8cLZ7q.js";import"./folder-open-WStbupck.js";import"./folder-c0CtBhoz.js";import"./layout-grid-DSsqyLnZ.js";import"./minus-D_MNsdVR.js";import"./chevron-right-DQnPt1ZE.js";import"./folder-plus-7oO0Nbpu.js";import"./type-CyecaIdB.js";import"./plus-D8BOBnMI.js";import"./useMailBase-CRpcoWb6.js";import"./addressFormat-BzTudlB8.js";import"./HangoutCallWindow-CvgLhoKS.js";import"./useToast-B-YAj-IO.js";import"./Avatar-cwwpNdqk.js";import"./Icon-Bd2Gfizk.js";import"./video-off-DUi-TqVn.js";import"./video-DypzJN3I.js";import"./monitor-yKdQgZ09.js";import"./grip-vertical-Czq8Uo7j.js";import"./send-DBmxMqjs.js";import"./refresh-cw-BJBMRU9v.js";import"./circle-question-mark-BzZXs17c.js";import"./upload-C7tYkjtk.js";import"./AnimatedLogoMini-B6zedGia.js";/* empty css                                                                         */import"./tooltip-7U8-rvad.js";import"./circle-check-xzHgMljH.js";import"./file-search-Bn3ZsYEQ.js";import"./wallet-DfN8xEQC.js";import"./circle-x-DYwMKyLl.js";import"./image-CU5BZ3Wb.js";import"./cpu-bOvzqt6k.js";import"./dialog-CW5w_wTh.js";import"./open-closed-CiJKRND1.js";import"./keyboard-CM8jW1Gj.js";import"./active-element-history-1SsHkF75.js";import"./disposables-JVzIyaVR.js";import"./description-CH7CIC-A.js";import"./transition-D0CE30sk.js";import"./receipt-text-CdpPiafr.js";import"./FollowUpTaskModal.vue_vue_type_script_setup_true_lang-CMXAHDky.js";import"./Button-tIgTMB06.js";import"./utils-Dj5kSLHa.js";import"./index-Cb8geMzt.js";import"./index-BUhRIvLQ.js";import"./index-CroEGN42.js";import"./check-check-BBacMcIT.js";import"./clock-wtOYjiba.js";import"./user-plus-BIIFrZm8.js";import"./trash-2-CuFI4esy.js";import"./SurveyorAvatar-COM6-DaG.js";import"./useTelephony-Gb9WDNb-.js";import"./phone-call-BrB6ewD1.js";import"./history-DpuVT1DJ.js";import"./phone-incoming-xz_1cgpx.js";import"./pause-DhX5YGt5.js";import"./save-DnETlemW.js";import"./users-round-G_G1fxZF.js";import"./useChatHub-efociDyw.js";import"./shield-check-CDldKyok.js";import"./users-DYBNM71i.js";import"./handshake-GPX40eLA.js";import"./eye-hgQz1Bz5.js";import"./bot-CxYjJeh9.js";import"./globe-BUoYScDl.js";import"./file-key-D00z6oeF.js";import"./user-x-CheJ_1T4.js";import"./message-circle-oPrxIruY.js";import"./award-DVmYzLJc.js";import"./menu-C8BKYvlP.js";import"./book-open-Dsi24aWS.js";import"./bell-BnmfLsAP.js";import"./gem-CM6kv8YR.js";import"./calendar-check-qXulTrFv.js";import"./credit-card-Dn2M7EkH.js";import"./settings-kph8Slzw.js";import"./log-out-CydYSR5l.js";import"./sliders-horizontal-jU65eH4z.js";import"./radio-BNkVfxOF.js";import"./plane-CGVQem9a.js";import"./film-BsJDSHaz.js";import"./printer-QRwqB39C.js";import"./pen-tool-z8iWES5d.js";import"./megaphone-DN1OxKmL.js";import"./map-pinned-DdKkn8oh.js";import"./library-DoVZTJ3d.js";import"./file-pen-line-D68orQJK.js";import"./list-checks--ElNPh6C.js";import"./triangle-alert-P9kpP2tT.js";import"./play-CCXnbaPm.js";import"./activity-BSQ_zaAq.js";import"./code-xml-DNQCXKmA.js";import"./heart-pulse--V4ckXZW.js";import"./git-branch-hxJW-6BD.js";import"./pen-line-NGtLVT8C.js";import"./lightbulb-D3MrsQxk.js";import"./at-sign-d7fVKctX.js";import"./grid-2x2-D6YE8xw7.js";import"./circle-NE3so71u.js";import"./calendar-clock-BpBm_Pbs.js";import"./house-heart-BOl5N1QW.js";import"./layout-dashboard-BZkek7_4.js";const V={class:"p-6 max-w-7xl mx-auto"},D={class:"flex items-center gap-2 mb-6"},E=["onClick"],I={key:0,class:"ml-1 opacity-70"},M={key:0,class:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between border border-stone-100 bg-white shadow-sm rounded-lg px-3 py-2 mb-4"},R={class:"bg-white border border-stone-200 rounded-xl overflow-hidden"},T={class:"min-w-full divide-y divide-stone-100"},q={class:"divide-y divide-stone-100"},K={class:"px-4 py-3"},L=["href"],W={class:"w-9 h-9 rounded-lg border border-stone-200 bg-stone-100 flex items-center justify-center p-1 flex-shrink-0 overflow-hidden"},G=["src","alt"],H={key:1,class:"text-[11px] text-stone-500 font-semibold"},J={class:"min-w-0"},P={class:"text-sm font-medium text-stone-900 truncate"},Q={class:"text-xs text-stone-500"},X={class:"px-4 py-3"},Y={class:"text-sm text-stone-900"},Z={class:"text-xs text-stone-500"},tt={class:"px-4 py-3"},et={class:"flex flex-wrap gap-1"},ot={key:0,class:"inline-flex items-center px-2 py-0.5 rounded-md text-[11px] font-medium text-emerald-700 bg-emerald-50 border border-emerald-200"},rt={key:1,class:"inline-flex items-center px-2 py-0.5 rounded-md text-[11px] font-medium text-stone-600 bg-stone-100 border border-stone-200"},it={key:2,class:"inline-flex items-center px-2 py-0.5 rounded-md text-[11px] font-medium text-rose-700 bg-rose-50 border border-rose-200"},st={key:3,class:"inline-flex items-center px-2 py-0.5 rounded-md text-[11px] font-medium text-stone-600 bg-stone-100 border border-stone-200"},nt={class:"px-4 py-3"},mt={class:"px-4 py-3 text-right"},pt={key:0,class:"inline-flex gap-2"},at=["onClick"],lt=["onClick"],dt={key:1,class:"text-[11px] text-stone-400"},ct={key:0},sr=Object.assign({layout:U},{__name:"Index",props:{claims:Array,pagination:Object,stats:Object,filters:Object,is_global_search:{type:Boolean,default:!1}},setup(m){var v,y,k;const c=m,p=u(((v=c.filters)==null?void 0:v.q)||""),x=u(((y=c.filters)==null?void 0:y.status)||"pending"),a=(k=c.filters)==null?void 0:k.search_ignore_filters,l=u(a===void 0?!0:a===!0||a===1||a==="1");function d(){const i={status:x.value,q:p.value};p.value&&(i.search_ignore_filters=l.value?1:0),g.get("/admin/crm/agent-claims",i,{preserveState:!0,replace:!0})}function S(i){x.value=i,p.value&&(l.value=!1),d()}function A(){l.value=!1,d()}function B(){p.value="",l.value=!0,d()}function F(i){confirm("Approve this agent claim?")&&g.post(`/admin/crm/agent-claims/${i}/approve`,{},{preserveScroll:!0})}function $(i){confirm("Reject this agent claim? The user will be emailed.")&&g.post(`/admin/crm/agent-claims/${i}/reject`,{},{preserveScroll:!0})}function _(i){return i==="match"?{label:"Domain match",cls:"bg-emerald-50 text-emerald-700 border-emerald-200"}:i==="mismatch"?{label:"No domain match",cls:"bg-amber-50 text-amber-700 border-amber-200"}:{label:"No firm domain",cls:"bg-stone-100 text-stone-600 border-stone-200"}}return(i,s)=>(o(),r("div",V,[s[5]||(s[5]=t("div",{class:"flex items-center justify-between mb-6"},[t("div",null,[t("h1",{class:"text-2xl font-semibold text-stone-900"},"Agent claims"),t("p",{class:"text-sm text-stone-500 mt-1"},"Review and verify agent company claims.")])],-1)),t("div",D,[(o(),r(j,null,C(["pending","approved","rejected","all"],e=>t("button",{key:e,onClick:w=>S(e),class:f([x.value===e?"bg-stone-900 text-white":"bg-white text-stone-700 border border-stone-200 hover:border-stone-300","px-3.5 py-1.5 rounded-full text-sm font-medium transition capitalize"])},[b(n(e)+" ",1),m.stats&&m.stats[e]!==void 0?(o(),r("span",I,"("+n(m.stats[e])+")",1)):h("",!0)],10,E)),64)),s[1]||(s[1]=t("div",{class:"flex-1"},null,-1)),N(t("input",{"onUpdate:modelValue":s[0]||(s[0]=e=>p.value=e),onKeydown:O(d,["enter"]),placeholder:"Firm or user email…",class:"px-3 py-1.5 text-sm border border-stone-200 rounded-full focus:ring-2 focus:ring-stone-900/10 focus:border-stone-400 focus:outline-none min-w-[260px]"},null,544),[[z,p.value]])]),m.is_global_search?(o(),r("div",M,[s[2]||(s[2]=t("div",{class:"flex items-center gap-2 text-xs text-stone-600"},[t("svg",{class:"w-3.5 h-3.5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","stroke-width":"2"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})]),t("span",null,[b("Searching across "),t("strong",null,"all tabs"),b(" with tab filter cleared.")])],-1)),t("div",{class:"flex items-center gap-2"},[t("button",{type:"button",onClick:A,class:"text-xs font-medium text-stone-600 hover:text-stone-900 px-2 py-1 rounded hover:bg-stone-100 transition"}," Apply current tab "),t("button",{type:"button",onClick:B,class:"text-xs font-medium text-stone-600 hover:text-stone-900 px-2 py-1 rounded hover:bg-stone-100 transition"}," Clear search ")])])):h("",!0),t("div",R,[t("table",T,[s[4]||(s[4]=t("thead",{class:"bg-stone-50"},[t("tr",null,[t("th",{class:"text-left text-[11px] font-semibold text-stone-500 uppercase tracking-wider px-4 py-3"},"Firm"),t("th",{class:"text-left text-[11px] font-semibold text-stone-500 uppercase tracking-wider px-4 py-3"},"User"),t("th",{class:"text-left text-[11px] font-semibold text-stone-500 uppercase tracking-wider px-4 py-3"},"Signals"),t("th",{class:"text-left text-[11px] font-semibold text-stone-500 uppercase tracking-wider px-4 py-3"},"Status"),t("th",{class:"text-right text-[11px] font-semibold text-stone-500 uppercase tracking-wider px-4 py-3"},"Actions")])],-1)),t("tbody",q,[(o(!0),r(j,null,C(m.claims,e=>(o(),r("tr",{key:e.id,class:"hover:bg-stone-50/60"},[t("td",K,[t("a",{href:`/admin/crm/agents?company=${e.company_id}`,target:"_blank",class:"flex items-center gap-3 min-w-0"},[t("div",W,[e.logo_path?(o(),r("img",{key:0,src:e.logo_path,alt:e.company_name,class:"max-w-full max-h-full object-contain"},null,8,G)):(o(),r("span",H,n((e.company_name||"A").charAt(0).toUpperCase()),1))]),t("div",J,[t("div",P,n(e.company_name),1),t("div",Q,n([e.city,e.postcode].filter(
1Boolean).join(" · ")||"—"),1)])],8,L)]),t("td",X,[t("div",Y,n(e.first_name)+" "+n(e.last_name),1),t("div",Z,n(e.user_email),1)]),t("td",tt,[t("div",et,[t("span",{class:f([_(e.domain_match).cls,"inline-flex items-center px-2 py-0.5 rounded-md text-[11px] font-medium border"])},n(_(e.domain_match).label),3),e.email_verified_at?(o(),r("span",ot,"Email verified")):(o(),r("span",rt,"Email unverified")),e.core_company_id?(o(),r("span",it,"Linked")):(o(),r("span",st,"Unlinked"))])]),t("td",nt,[t("span",{class:f([{"bg-amber-50 text-amber-700 border-amber-200":e.status==="pending","bg-emerald-50 text-emerald-700 border-emerald-200":e.status==="approved","bg-stone-100 text-stone-600 border-stone-200":e.status==="rejected"},"inline-flex items-center px-2 py-0.5 rounded-md text-[11px] font-medium border capitalize"])},n(e.status),3)]),t("td",mt,[e.status==="pending"?(o(),r("div",pt,[t("button",{onClick:w=>F(e.id),class:"px-3 py-1.5 text-xs font-medium bg-stone-900 hover:bg-stone-800 text-white rounded-lg transition"},"Approve",8,at),t("button",{onClick:w=>$(e.id),class:"px-3 py-1.5 text-xs font-medium bg-white border border-stone-200 text-stone-700 hover:border-stone-300 rounded-lg transition"},"Reject",8,lt)])):(o(),r("div",dt,"—"))])]))),128)),m.claims.length?h("",!0):(o(),r("tr",ct,[...s[3]||(s[3]=[t("td",{colspan:"5",class:"px-4 py-10 text-center text-sm text-stone-500"},"No claims in this bucket.",-1)])]))])])])]))}});export{sr as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.