1import{c as I,r as f,P as he,s as ge,k as ye,o,f as n,d as D,w as ke,n as b,b as s,t as d,g as c,T as _e,h as g,i as X,F as Z,j as we,x as W,p as k,v as _,y as ae}from"./runtime-dom.esm-bundler-BFbfmLfl.js";import Ce from"./SplitBranchModal-Bxa7Pb6l.js";import Be from"./TransferBranchModal-CdqZE4M5.js";import ze from"./MapPinModal-wChd9LX2.js";import"./app-Dvzl3QXw.js";/* empty css */import"./echo-Cx0reEeH.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./listingImageRemint-DdzXd0Qc.js";import"./index.esm-C8-Okse2.js";import"./chevron-left-BqH44XVe.js";import"./createLucideIcon-H8VPBXjN.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./search-DRuNnyPk.js";import"./x-gRRgfAF8.js";import"./piggy-bank-C2v63urG.js";import"./chevron-down-CV0HnoXa.js";import"./check-CYOYuDcY.js";import"./sparkles-B9lXBQmj.js";import"./circle-alert-ByG7DPjo.js";import"./house-BnH-U5r3.js";import"./LoginModal-BMeMPme8.js";import"./lock-BQyHxR7C.js";import"./loader-circle-BOF4Rcg5.js";import"./shield-xlcuWJAH.js";import"./file-text-CxktRaAP.js";import"./key-round-CDOVxIO1.js";import"./SavePropertyModal-C2h6jxhG.js";import"./map-pin-7NBWNz8E.js";import"./NetworkSelector-DF4oyJOz.js";import"./CreateNetworkModal-Bm7fIn1X.js";import"./users-DYBNM71i.js";const Me={class:"p-6 relative"},je={key:0,class:"size-4 text-red-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Se={key:1,class:"size-4 text-emerald-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},$e={key:0,class:"mb-4 rounded-lg border border-red-200 bg-red-50 p-3"},Ve={class:"text-sm text-red-700"},Ae={key:1,class:"mb-6 rounded-xl border border-stone-100 bg-white p-4 shadow-sm"},Le={class:"flex items-center justify-between"},He={class:"flex items-center gap-3"},Te={class:"font-medium text-stone-900"},Ee={key:0,class:"flex flex-col gap-1"},Fe={key:2,class:"mb-6 rounded-xl border border-stone-100 bg-white p-4 shadow-sm"},Ne={class:"flex items-center justify-between"},Pe={class:"flex items-center gap-3"},Ue=["src"],Ie={class:"flex items-center gap-2"},De={key:0,class:"px-1.5 py-0.5 text-[10px] font-medium bg-rose-100 text-rose-600 rounded"},We={key:1,class:"flex items-center gap-1"},qe={class:"font-mono text-[10px] text-stone-400"},Oe={class:"font-medium text-stone-900"},Ye={key:0,class:"text-xs text-stone-400"},Je={class:"flex flex-col gap-1"},Re={key:0,class:"size-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Ke={key:1,class:"size-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Ge={key:0,class:"relative"},Qe={key:0,class:"absolute right-0 top-full z-50 mt-1 w-64 rounded-xl border border-stone-200 bg-white shadow-xl"},Xe={class:"max-h-48 overflow-y-auto py-1"},Ze=["onClick"],et=["src"],tt={key:1,class:"text-[10px] font-bold text-white"},st={class:"text-sm font-medium text-stone-900"},ot={class:"text-xs text-stone-400"},nt={key:3,class:"mb-6"},lt={key:4,class:"mb-4","data-field":"name"},rt=["placeholder"],at={key:0,class:"mt-1 text-xs text-rose-500"},it={key:1,class:"mt-1 text-xs text-stone-400"},dt={class:"mb-4 rounded-xl border border-stone-200 bg-white overflow-hidden","data-field":"services"},ut={class:"px-4 py-3 space-y-3"},ct={class:"flex items-center justify-between"},mt={class:"flex items-center justify-between"},pt={class:"flex items-center justify-between border-t border-stone-100 pt-3"},ft={class:"mb-4","data-field":"location"},bt={key:0,class:"rounded-xl border border-stone-200 bg-white overflow-hidden"},vt={class:"flex items-center justify-between px-4 py-2.5 bg-stone-50 border-b border-stone-100"},xt={key:0,class:"px-4 py-3"},ht={class:"text-sm font-medium text-stone-900"},gt={key:0,class:"text-stone-400 font-normal ml-1"},yt={key:0,class:"text-xs text-stone-500 mt-0.5"},kt={class:"mt-2 flex items-center gap-2"},_t={key:0,class:"flex items-center gap-1.5"},wt={key:1,class:"flex items-center gap-1.5"},Ct={key:1,class:"p-4 space-y-3"},Bt={class:"mb-1 block text-xs font-medium text-stone-500"},zt=["placeholder"],Mt={key:0,class:"rounded-lg bg-amber-50 border border-amber-200 p-3"},jt={class:"flex items-start gap-2"},St={class:"text-xs text-amber-800 font-medium"},$t={class:"flex items-center justify-between pt-1"},Vt={class:"flex items-center gap-2"},At={key:0,class:"flex items-center gap-1.5"},Lt={class:"text-[11px] text-stone-500 font-mono"},Ht={key:1,class:"flex items-center gap-1.5"},Tt={class:"mb-4 rounded-xl border border-stone-200 bg-white overflow-hidden","data-field":"contact"},Et={class:"flex items-center justify-between px-4 py-2.5 bg-stone-50 border-b border-stone-100"},Ft={key:0,class:"px-4 py-3"},Nt={class:"space-y-1.5"},Pt={key:0,class:"flex items-center gap-2 text-sm text-stone-700"},Ut={key:1,class:"text-xs italic"},It={key:1,class:"text-xs italic"},Dt={key:3,class:"flex items-center gap-2 text-sm text-stone-700"},Wt={key:4,class:"text-sm text-stone-400 italic"},qt={key:1,class:"p-4 space-y-3"},Ot={class:"mb-1 block text-xs font-medium text-stone-500"},Yt=["placeholder"],Jt={key:0},Rt={key:1},Kt={key:2,class:"col-span-2"},Gt={class:"mb-4 rounded-xl border border-stone-200 bg-white overflow-hidden"},Qt={class:"flex items-center justify-between px-4 py-2.5 bg-stone-50 border-b border-stone-100"},Xt={key:0,class:"px-4 py-3"},Zt={key:0,class:"text-sm text-stone-700 line-clamp-3"},es={key:1,class:"text-sm text-stone-400 italic"},ts={key:1,class:"p-4"},ss=["placeholder"],os={key:5,class:"mt-6"},ns=["disabled"],ls={key:0,class:"mt-2 text-xs text-stone-400 text-center"},rs={key:6,class:"mt-6 text-right"},as={key:0,class:"mb-3 rounded-lg border border-amber-200 bg-amber-50 p-3"},is={class:"text-sm text-amber-700"},ds={class:"mt-2 flex items-center gap-2"},us=["disabled"],cs={key:1,class:"mb-3 rounded-lg border border-red-200 bg-red-50 p-3"},ms={class:"flex items-center gap-3"},ps={class:"flex-1 text-sm text-red-700"},fs=["disabled"],bs=["disabled"],Ks={__name:"BranchEditForm",props:{branch:{type:Object,default:null},agentMode:{type:Boolean,default:!1},companyId:{type:[Number,String],default:null},brandId:{type:[Number,String],default:null},defaultBrand:{type:Object,default:null},company:{type:Object,default:null},agencyStyle:{type:String,default:null},availableBrands:{type:Array,default:()=>[]},apiPrefix:{type:String,default:"/agent"}},emits:["saved","updated","cancel","split-complete","transfer-complete","transfer-brand","edit-brand","change-brand","create-brand","archived"],setup(u,{emit:ie}){const l=u,w=ie,h=I(()=>{var a,e,i;return l.agencyStyle?l.agencyStyle==="personal":(e=(a=l.branch)==null?void 0:a.brand)!=null&&e.agency_style?l.branch.brand.agency_style==="personal":(i=l.defaultBrand)!=null&&i.agency_style?l.defaultBrand.agency_style==="personal":!1}),$=f(!1),de=I(()=>{var e,i;if(!((e=l.availableBrands)!=null&&e.length))return[];const a=(i=l.defaultBrand)==null?void 0:i.id;return l.availableBrands.filter(m=>m.id!==a)}),ue=async a=>{$.value=!1,w("change-brand",a)},ce=()=>{$.value=!1,w("create-brand")},E=f(null),F=f("success");let q=null;const O=(a,e="success")=>{E.value=a,F.value=e,q&&clearTimeout(q),q=setTimeout(()=>{E.value=null},2500)};let Y=null;const J=()=>{x.value||(Y&&clearTimeout(Y),Y=setTimeout(()=>Q(),500))},C=f(!1),V=f(!1),A=f(!1),M=f(!1),v=f(null),j=f(""),me=a=>{v.value=a,j.value="",O("Map coordinates saved"),w("updated")},L=f({}),R=a=>{const e=i=>i||"";a==="location"?(L.value.location={branch_location:e(t.branch_location),address_lines:e(t.address_lines),postcode:e(t.postcode)},C.value=!0):a==="contact"?(L.value.contact={email:e(t.email),sales_phone_number:e(t.sales_phone_number),lettings_phone_number:e(t.lettings_phone_number),website_url:e(t.website_url)},V.value=!0):a==="description"&&(L.value.description={description:e(t.description)},A.value=!0)},B=a=>{const e=L.value[a];if(!e)return a==="location"?!!(t.branch_location||t.address_lines||t.postcode):!1;const i=(m,p)=>(m||"")===(p||"");return a==="location"?!i(t.branch_location,e.branch_location)||!i(t.address_lines,e.address_lines)||!i(t.postcode,e.postcode):a==="contact"?!i(t.email,e.email)||!i(t.sales_phone_number,e.sales_phone_number)||!i(t.lettings_phone_number,e.lettings_phone_number)||!i(t.website_url,e.website_url):a==="description"?!i(t.description,e.description):!1},K=a=>{B(a)&&Q(),a==="location"?C.value=!1:a==="contact"?V.value=!1:a==="description"&&(A.value=!1),delete L.value[a]},x=I(()=>{var a;return!((a=l.branch)!=null&&a.id)}),ee=I(()=>{var m,p;const a=!!(t.brand_id||(m=l.defaultBrand)!=null&&m.id),e=!!((p=t.branch_location)!=null&&p.trim()),i=!!(t.offers_sales||t.offers_lettings);return a&&e&&i}
1),N=f(!1),S=f(!1),H=f(!1),T=f(!1),te=f(""),G=f(!1),pe=()=>{T.value=!1,G.value=!1,H.value=!0},se=async(a=!1)=>{var e,i,m,p;if(!(!((e=l.branch)!=null&&e.id)||S.value)){S.value=!0;try{const y=`${l.apiPrefix}/branches/${l.branch.id}/archive`+(a?"?force=1":"");await ae.delete(y),H.value=!1,T.value=!1,w("archived",l.branch)}catch(y){H.value=!1,((i=y.response)==null?void 0:i.status)===422&&((p=(m=y.response)==null?void 0:m.data)!=null&&p.listings_count)?(te.value=y.response.data.message,G.value=!!y.response.data.home_listings,T.value=!0):console.error("Failed to archive branch:",y)}finally{S.value=!1}}},P=f(!1),U=f(!1),z=f({}),fe=()=>(z.value={},!0),t=he({name:"",branch_location:"",address_lines:"",postcode:"",email:"",sales_phone_number:"",lettings_phone_number:"",website_url:"",description:"",is_commercial:!1,offers_sales:!1,offers_lettings:!1}),oe=()=>{var a,e,i;if(C.value=!1,V.value=!1,A.value=!1,j.value="",(a=l.branch)!=null&&a.latitude&&((e=l.branch)!=null&&e.longitude))v.value={lat:parseFloat(l.branch.latitude),lng:parseFloat(l.branch.longitude)};else if((i=l.branch)!=null&&i.coordinates){const m=l.branch.coordinates;v.value=Array.isArray(m)?{lng:m[0],lat:m[1]}:m.lat&&m.lng?{lat:parseFloat(m.lat),lng:parseFloat(m.lng)}:null}else v.value=null;l.branch?(t.name=l.branch.name||l.branch.agent_name||"",t.branch_location=l.branch.branch_location||l.branch.branch_name||"",l.branch.address_lines?t.address_lines=l.branch.address_lines:l.branch.address&&l.branch.postcode?t.address_lines=l.branch.address.replace(new RegExp(",?\\s*"+l.branch.postcode.replace(/\s+/g,"\\s*")+"\\s*$","
1i"),"").trim():t.address_lines=l.branch.address||"",t.postcode=l.branch.postcode||"",t.email=l.branch.email||l.branch.h_email||"",t.sales_phone_number=l.branch.sales_phone_number||"",t.lettings_phone_number=l.branch.lettings_phone_number||"",t.website_url=l.branch.website_url||l.branch.website||"",t.description=l.branch.description||"",t.is_commercial=l.branch.is_commercial||!1,t.offers_sales=l.branch.offers_sales??!1,t.offers_lettings=l.branch.offers_lettings??!1):l.defaultBrand?(t.name=h.value?"":l.defaultBrand.name||"",t.website_url=l.defaultBrand.website||"",t.branch_location="",t.address_lines="",t.postcode="",t.email="",t.sales_phone_number="",t.lettings_phone_number="",t.description="",t.is_commercial=!1,t.offers_sales=!1,t.offers_lettings=!1):(t.name="",t.branch_location="",t.address_lines="",t.postcode="",t.email="",t.sales_phone_number="",t.lettings_phone_number="",t.website_url="",t.description="",t.is_commercial=!1,t.offers_sales=!1,t.offers_lettings=!1)},ne=f(null);ge([()=>l.branch,()=>l.defaultBrand],()=>{var e;const a=(e=l.branch)==null?void 0:e.id;a!==ne.value&&(ne.value=a,oe())},{immediate:!0});const le=()=>{t.website_url&&!t.website_url.match(/^https?:\/\//i)&&(t.website_url="https://"+t.website_url)},be=a=>{P.value=!1,w("split-complete",a)},ve=a=>{U.value=!1,w("transfer-complete",a)},Q=async()=>{fe(),await xe()},xe=async()=>{var a,e;N.value=!0,le();try{const i=new FormData;i.append("name",t.name),i.append("branch_location",t.branch_location),i.append("address_lines",t.address_lines),i.append("postcode",t.postcode),i.append("email",t.email),i.append("sales_phone_number",t.sales_phone_number),i.append("lettings_phone_number",t.lettings_phone_number),i.append("website_url",t.website_url),i.append("description",t.description),i.append("is_commercial",t.is_commercial?"1":"0"),i.append("offers_sales",t.offers_sales?"1":"0"),i.append("offers_lettings",t.offers_lettings?"1":"0"),x.value&&l.companyId&&i.append("company_id",l.companyId),x.value&&l.brandId&&i.append("brand_id",l.brandId);let m;l.agentMode?m=x.value?`${l.apiPrefix}/branches/create`:`${l.apiPrefix}/branches/${l.branch.id}/update`:m=x.value?"/admin/crm/branches/create":`/admin/crm/branches/${l.branch.id}`,!x.value&&!l.agentMode&&i.append("_method","PATCH");const p=await ae.post(m,i,{headers:{"Content-Type":"multipart/form-data"}});p.data.coordinates&&(v.value=p.data.coordinates),p.data.geocode_result&&!p.data.geocode_result.success?j.value=p.data.geocode_result.message:j.value="",x.value?w("saved",p.data.branch||p.data):(O("Changes saved"),w("updated",p.data.branch||p.data))}catch(i){console.error("Error saving branch:",i),O(((e=(a=i.response)==null?void 0:a.data)==null?void 0:e.message)||"Failed to save","error")}finally{N.value=!1}};return ye(()=>{oe()}),(a,e)=>{var i,m,p,y;return o(),n("div",Me,[D(_e,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"opacity-0 translate-y-2","enter-to-class":"opacity-100 translate-y-0","leave-active-class":"transition ease-in duration-150","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 translate-y-2"},{default:ke(()=>[E.value?(o(),n("div",{key:0,class:b(["fixed bottom-6 right-6 z-[9999] flex items-center gap-2 rounded-xl px-4 py-2.5 shadow-lg",F.value==="error"?"bg-red-50 border border-red-200":"bg-emerald-50 border border-emerald-200"])},[F.value==="error"?(o(),n("svg",je,[...e[34]||(e[34]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)])])):(o(),n("svg",Se,[...e[35]||(e[35]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])),s("span",{class:b(["text-sm font-medium",F.value==="error"?"text-red-700":"text-emerald-700"])},d(E.value),3)],2)):c("",!0)]),_:1}),z.value.general?(o(),n("div",$e,[s("p",Ve,d(z.value.general),1)])):c("",!0),!x.value&&u.company?(o(),n("div",Ae,[s("div",Le,[s("div",He,[e[37]||(e[37]=s("div",{class:"flex size-10 items-center justify-center rounded-xl bg-stone-50"},[s("svg",{class:"size-5 text-stone-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"})])],-1)),s("div",null,[e[36]||(e[36]=s("div",{class:"text-[10px] font-medium uppercase tracking-wider text-stone-400"},"Company",-1)),s("div",Te,d(u.company.trading_name||u.company.name),1)])]),u.agentMode?c("",!0):(o(),n("div",Ee,[s("button",{type:"button",onClick:e[0]||(e[0]=r=>U.value=!0),class:"flex items-center gap-1.5 rounded-lg px-2.5 py-1 text-xs text-stone-500 transition-colors hover:bg-stone-50 hover:text-stone-700",title:"Transfer to another company"},[...e[38]||(e[38]=[s("svg",{class:"size-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 8l4 4m0 0l-4 4m4-4H3"})],-1),g(" Transfer ",-1)])]),s("button",{type:"button",onClick:e[1]||(e[1]=r=>P.value=!0),class:"flex items-center gap-1.5 rounded-lg px-2.5 py-1 text-xs text-stone-500 transition-colors hover:bg-stone-50 hover:text-stone-700",title:"Split to new company"},[...e[39]||(e[39]=[s("svg",{class:"size-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})],-1),g(" Split ",-1)])])]))])])):c("",!0),u.defaultBrand?(o(),n("div",Fe,[s("div",Ne,[s("div",Pe,[s("div",{class:"flex size-16 items-center justify-center rounded-xl overflow-hidden",style:X({backgroundColor:u.defaultBrand.color||"#f3f4f6"})},[u.defaultBrand.logo?(o(),n("img",{key:0,src:u.defaultBrand.logo,alt:"",class:"size-full object-contain"},null,8,Ue)):(o(),n("svg",{key:1,class:b(["size-8",u.defaultBrand.color?"text-white":"text-stone-400"]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...e[40]||(e[40]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"},null,-1)])],2))],4),s("div",null,[s("div",Ie,[e[41]||(e[41]=s("div",{class:"text-[10px] font-medium uppercase tracking-wider text-stone-400"},"Brand",-1)),h.value?(o(),n("span",De," Personal ")):c("",!0),u.defaultBrand.color?(o(),n("div",We,[s("div",{class:"size-3 rounded-full border border-stone-200",style:X({backgroundColor:u.defaultBrand.color})},null,4),s("span",qe,d(u.defaultBrand.color),1)])):c("",!0)]),s("div",Oe,d(u.defaultBrand.name),1),(u.defaultBrand.branch_count??u.defaultBrand.branches_count??0)>1?(o(),n("div",Ye," Shared with "+d(u.defaultBrand.branch_count??u.defaultBrand.branches_count)+" branches ",1)):c("",!0)])]),s("div",Je,[s("button",{type:"button",onClick:e[2]||(e[2]=r=>u.defaultBrand.id?a.$emit("edit-brand",u.defaultBrand):a.$emit("create-brand")),class:"flex items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-xs font-medium text-stone-600 transition-colors hover:bg-stone-50 hover:text-stone-900 border border-stone-200"},[u.defaultBrand.id?(o(),n("svg",Re,[...e[42]||(e[42]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"},null,-1)])])):(o(),n("svg",Ke,[...e[43]||(e[43]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 4v16m8-8H4"},null,-1)])])),g(" "+d(u.defaultBrand.id?"Edit Brand":"Add Brand"),1)]),x.value?c("",!0):(o(),n("div",Ge,[s("button",{type:"button",onClick:e[3]||(e[3]=r=>$.value=!$.value),class:"flex items-center gap-1.5 rounded-lg px-2.5 py-1 text-xs text-stone-500 transition-colors hover:bg-stone-50 hover:text-stone-700"},[...e[44]||(e[44]=[s("svg",{class:"size-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})],-1),g(" Change Brand ",-1)])]),$.value?(o(),n("div",Qe,[e[46]||(e[46]=s("div",{class:"border-b border-stone-100 px-3 py-2"},[s("h4",{class:"text-xs font-semibold uppercase tracking-wider text-stone-500"},"Select Brand")],-1)),s("div",Xe,[(o(!0),n(Z,null,we(de.value,r=>{var re;return o(),n("button",{key:r.id,onClick:vs=>ue(r),class:"flex w-full items-center gap-3 px-3 py-2 text-left transition-colors hover:bg-stone-50"},[s("div",{class:"flex size-8 items-center justify-center rounded-lg overflow-hidden flex-shrink-0",style:X({backgroundColor:r.color||r.primary_brand_colour||"#f3f4f6"})},[r.logo||r.logo_url?(o(),n("img",{key:0,src:r.logo_url||r.logo,alt:"",class:"size-full object-contain"},null,8,et)):(o(),n("span",tt,d((re=r.name)==null?void 0:re.charAt(0)),1))],4),s("div",null,[s("div",st,d(r.name),1),s("div",ot,d((r.branch_count??r.branches_count)||0)+" branch"+d(((r.branch_count??r.branches_count)||0)!==1?"es":""),1)])],8,Ze)}),128))]),s("div",{class:"border-t border-stone-100 p-2"},[s("button",{onClick:ce,class:"flex w-full items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium text-rose-600 transition-colors hover:bg-rose-50"},[...e[45]||(e[45]=[s("svg",{class:"size-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 4v16m8-8H4"})],-1),g(" Create New Brand ",-1)])])])])):c("",!0)]))])])])):x.value?c("",!0):(o(),n("div",nt,[s("button",{type:"button",onClick:e[4]||(e[4]=r=>a.$emit("create-brand")),class:"w-full rounded-xl border-2 border-dashed border-stone-300 bg-stone-50/50 p-4 transition-colors hover:bg-stone-50 hover:border-stone-400"},[...e[47]||(e[47]=[W('<div class="flex items-center justify-between"><div class="flex items-center gap-3"><div class="flex size-10 items-center justify-center rounded-lg bg-stone-100"><svg class="size-5 text-stone-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
1<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"></path></svg></div><div class="text-left"><div class="text-sm font-medium text-stone-700">Add Brand</div><div class="text-xs text-stone-500">Set up logo, colour, and identity</div></div></div><svg class="size-4 text-stone-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg></div>',1)])])])),!u.defaultBrand&&x.value?(o(),n("div",lt,[e[48]||(e[48]=s("label",{class:"mb-1.5 block text-sm font-medium text-stone-700"}," Brand Name ",-1)),k(s("input",{"onUpdate:modelValue":e[5]||(e[5]=r=>t.name=r),type:"text",class:b(["w-full rounded-lg border px-3 py-2 text-sm transition-colors focus:outline-none focus:ring-1",z.value.name?"border-rose-300 focus:border-rose-400 focus:ring-rose-200":"border-stone-200 focus:border-stone-300 focus:ring-stone-300"]),placeholder:h.value?"e.g. John Smith":"e.g. John Smith Properties"},null,10,rt),[[_,t.name]]),z.value.name?(o(),n("p",at,d(z.value.name),1)):c("",!0),h.value&&!z.value.name?(o(),n("p",it," Your full name as you want it displayed ")):c("",!0)])):c("",!0),s("div",dt,[e[52]||(e[52]=W('<div class="flex items-center justify-between px-4 py-2.5 bg-stone-50 border-b border-stone-100"><div class="flex items-center gap-2"><svg class="size-4 text-stone-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg><span class="text-xs font-medium text-stone-500 uppercase tracking-wider">Services</span></div></div>',1)),s("div",ut,[s("div",ct,[e[49]||(e[49]=s("span",{class:"text-sm text-stone-700"},"Sales",-1)),s("button",{type:"button",onClick:e[6]||(e[6]=r=>{t.offers_sales=!t.offers_sales,J()}),class:b(["relative h-6 w-11 rounded-full transition-colors duration-200 focus:outline-none",t.offers_sales?"bg-green-500":"bg-stone-200"])},[s("span",{class:b(["absolute left-0.5 top-0.5 size-5 rounded-full bg-white shadow-sm transition-transform duration-200",t.offers_sales?"translate-x-5":"translate-x-0"])},null,2)],2)]),s("div",mt,[e[50]||(e[50]=s("span",{class:"text-sm text-stone-700"},"Lettings",-1)),s("button",{type:"button",onClick:e[7]||(e[7]=r=>{t.offers_lettings=!t.offers_lettings,J()}),class:b(["relative h-6 w-11 rounded-full transition-colors duration-200 focus:outline-none",t.offers_lettings?"bg-blue-500":"bg-stone-200"])},[s("span",{class:b(["absolute left-0.5 top-0.5 size-5 rounded-full bg-white shadow-sm transition-transform duration-200",t.offers_lettings?"translate-x-5":"translate-x-0"])},null,2)],2)]),s("div",pt,[e[51]||(e[51]=s("span",{class:"text-sm text-stone-700"},"Commercial",-1)),s("button",{type:"button",onClick:e[8]||(e[8]=r=>{t.is_commercial=!t.is_commercial,J()}),class:b(["relative h-6 w-11 rounded-full transition-colors duration-200 focus:outline-none",t.is_commercial?"bg-stone-800":"bg-stone-200"])},[s("span",{class:b(["absolute left-0.5 top-0.5 size-5 rounded-full bg-white shadow-sm transition-transform duration-200",t.is_commercial?"translate-x-5":"translate-x-0"])},null,2)],2)])])]),s("div",ft,[C.value||t.postcode||t.address_lines||t.branch_location?(o(),n("div",bt,[s("div",vt,[e[53]||(e[53]=W('<div class="flex items-center gap-2"><svg class="size-4 text-stone-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path></svg><span class="text-xs font-medium text-stone-500 uppercase tracking-wider">Location</span></div>',1)),C.value?(o(),n("button",{key:1,type:"button",onClick:e[10]||(e[10]=r=>K("location")),class:b(["text-xs transition-colors font-medium",B("location")?"text-rose-500 hover:text-rose-700":"text-stone-500 hover:text-stone-700"])}
1,d(B("location")?"Save":"Close"),3)):(o(),n("button",{key:0,type:"button",onClick:e[9]||(e[9]=r=>R("location")),class:"text-xs text-stone-500 hover:text-stone-700 transition-colors"},"Edit"))]),C.value?(o(),n("div",Ct,[s("div",null,[s("label",Bt,d(h.value?"Location Name":"Branch Location Name"),1),k(s("input",{"onUpdate:modelValue":e[13]||(e[13]=r=>t.branch_location=r),type:"text",class:"w-full rounded-lg border border-stone-200 px-3 py-2 text-sm focus:border-stone-300 focus:outline-none focus:ring-1 focus:ring-stone-300",placeholder:h.value?"e.g. Kensington":"e.g. City Centre"},null,8,zt),[[_,t.branch_location]])]),s("div",null,[e[57]||(e[57]=s("label",{class:"mb-1 block text-xs font-medium text-stone-500"},"Address",-1)),k(s("input",{"onUpdate:modelValue":e[14]||(e[14]=r=>t.address_lines=r),type:"text",class:"w-full rounded-lg border border-stone-200 px-3 py-2 text-sm focus:border-stone-300 focus:outline-none focus:ring-1 focus:ring-stone-300",placeholder:"e.g. 75 Main Street, East Leake"},null,512),[[_,t.address_lines]])]),s("div",null,[e[58]||(e[58]=s("label",{class:"mb-1 block text-xs font-medium text-stone-500"},"Postcode",-1)),k(s("input",{"onUpdate:modelValue":e[15]||(e[15]=r=>t.postcode=r),type:"text",class:"w-full rounded-lg border border-stone-200 px-3 py-2 text-sm uppercase focus:border-stone-300 focus:outline-none focus:ring-1 focus:ring-stone-300",placeholder:"e.g. SW1A 1AA"},null,512),[[_,t.postcode]])]),j.value?(o(),n("div",Mt,[s("div",jt,[e[59]||(e[59]=s("svg",{class:"size-4 text-amber-500 mt-0.5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z"})],-1)),s("div",null,[s("p",St,d(j.value),1),s("button",{type:"button",onClick:e[16]||(e[16]=r=>M.value=!0),class:"mt-1 text-xs font-medium text-stone-900 underline decoration-dotted underline-offset-2 hover:text-stone-700 transition-colors"}," Set location manually with map pin ")])])])):c("",!0),s("div",$t,[s("div",Vt,[v.value?(o(),n("div",At,[e[60]||(e[60]=s("div",{class:"size-1.5 rounded-full bg-emerald-500"},null,-1)),s("span",Lt,d(v.value.lat.toFixed(5))+", "+d(v.value.lng.toFixed(5)),1)])):(o(),n("div",Ht,[...e[61]||(e[61]=[s("div",{class:"size-1.5 rounded-full bg-amber-500"},null,-1),s("span",{class:"text-[11px] text-amber-600"},"Coordinates required for map search",-1)])]))]),s("button",{type:"button",onClick:e[17]||(e[17]=r=>M.value=!0),class:"inline-flex items-center gap-1 rounded-lg border border-stone-200 px-2 py-1 text-[11px] font-medium text-stone-600 hover:bg-stone-50 transition-colors"},[...e[62]||(e[62]=[s("svg",{class:"size-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})],-1),g(" Map pin ",-1)])])])])):(o(),n("div",xt,[s("div",ht,[g(d(t.branch_location)+" ",1),t.postcode?(o(),n("span",gt,d(t.postcode),1)):c("",!0)]),t.address_lines?(o(),n("div",yt,d(t.address_lines),1)):c("",!0),s("div",kt,[v.value?(o(),n("div",_t,[e[54]||(e[54]=s("div",{class:"size-1.5 rounded-full bg-emerald-500"},null,-1)),s("button",{type:"button",onClick:e[11]||(e[11]=r=>M.value=!0),class:"text-[11px] text-stone-500 hover:text-stone-700 transition-colors font-mono"},d(v.value.lat.toFixed(5))+", "+d(v.value.lng.toFixed(5)),1)])):(o(),n("div",wt,[e[55]||(e[55]=s("div",{class:"size-1.5 rounded-full bg-amber-500"}
1,null,-1)),e[56]||(e[56]=s("span",{class:"text-[11px] text-amber-600"},"No map coordinates",-1)),s("button",{type:"button",onClick:e[12]||(e[12]=r=>M.value=!0),class:"text-[11px] font-medium text-stone-900 hover:text-stone-700 transition-colors underline decoration-dotted underline-offset-2"}," Set pin ")]))])]))])):(o(),n("button",{key:1,type:"button",onClick:e[18]||(e[18]=r=>C.value=!0),class:"w-full rounded-xl border-2 border-dashed border-stone-200 bg-white p-4 transition-colors hover:bg-stone-50 hover:border-stone-300"},[...e[63]||(e[63]=[W('<div class="flex items-center gap-3"><div class="flex size-10 items-center justify-center rounded-full bg-stone-100"><svg class="size-5 text-stone-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></div><div class="text-left"><div class="text-sm font-medium text-stone-900">Add Location</div><div class="text-xs text-stone-500">Required for map search visibility</div></div></div>',1)])]))]),D(ze,{modelValue:M.value,"onUpdate:modelValue":e[19]||(e[19]=r=>M.value=r),"branch-id":(i=u.branch)==null?void 0:i.id,"initial-lat":(m=v.value)==null?void 0:m.lat,"initial-lng":(p=v.value)==null?void 0:p.lng,"branch-name":t.branch_location||t.name,onSaved:me},null,8,["modelValue","branch-id","initial-lat","initial-lng","branch-name"]),s("div",Tt,[s("div",Et,[e[64]||(e[64]=s("div",{class:"flex items-center gap-2"},[s("svg",{class:"size-4 text-stone-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})]),s("span",{class:"text-xs font-medium text-stone-500 uppercase tracking-wider"},"Contact")],-1)),V.value?(o(),n("button",{key:1,type:"button",onClick:e[21]||(e[21]=r=>K("contact")),class:b(["text-xs transition-colors font-medium",B("contact")?"text-rose-500 hover:text-rose-700":"text-stone-500 hover:text-stone-700"])},d(B("contact")?"Save":"Close"),3)):(o(),n("button",{key:0,type:"button",onClick:e[20]||(e[20]=r=>R("contact")),class:"text-xs text-stone-500 hover:text-stone-700 transition-colors"},"Edit"))]),V.value?(o(),n("div",qt,[s("div",null,[s("label",Ot,d(h.value?"Email":"Branch Email"),1),k(s("input",{"onUpdate:modelValue":e[22]||(e[22]=r=>t.email=r),type:"email",class:"w-full rounded-lg border border-stone-200 px-3 py-2 text-sm focus:border-stone-300 focus:outline-none focus:ring-1 focus:ring-stone-300",placeholder:h.value?"[email protected]":"[email protected]"},null,8,Yt),[[_,t.email]])]),s("div",{class:b({"grid grid-cols-2 gap-3":t.offers_sales&&t.offers_lettings})},[t.offers_sales?(o(),n("div",Jt,[e[71]||(e[71]=s("label",{class:"mb-1 block text-xs font-medium text-stone-500"},"Sales Phone",-1)),k(s("input",{"onUpdate:modelValue":e[23]||(e[23]=r=>t.sales_phone_number=r),type:"tel",class:"w-full rounded-lg border border-stone-200 px-3 py-2 text-sm focus:border-stone-300 focus:outline-none focus:ring-1 focus:ring-stone-300",placeholder:"020 1234 5678"},null,512),[[_,t.sales_phone_number]])])):c("",!0),t.offers_lettings?(o(),n("div",Rt,[e[72]||(e[72]=s("label",{class:"mb-1 block text-xs font-medium text-stone-500"},"Lettings Phone",-1)),k(s("input",{"onUpdate:modelValue":e[24]||(e[24]=r=>t.lettings_phone_number=r),type:"tel",class:"w-full rounded-lg border border-stone-200 px-3 py-2 text-sm focus:border-stone-300 focus:outline-none focus:ring-1 focus:ring-stone-300",placeholder:"020 1234 5679"},null,512),[[_,t.lettings_phone_number]])])):c("",!0),!t.offers_sales&&!t.offers_lettings?(o(),n("div",Kt,[...e[73]||(e[73]=[s("p",{class:"text-xs text-stone-400 italic"},"Enable Sales or Lettings above to add phone numbers",-1)])])):c("",!0)],2),s("div",null,[e[74]||(e[74]=s("label",{class:"mb-1 block text-xs font-medium text-stone-500"},"Website",-1)),k(s("input",{"onUpdate:modelValue":e[25]||(e[25]=r=>t.website_url=r),type:"url",onBlur:le,class:"w-full rounded-lg border border-stone-200 px-3 py-2 text-sm focus:border-stone-300 focus:outline-none focus:ring-1 focus:ring-stone-300",placeholder:"https://www.example.com"},null,544),[[_,t.website_url]])])])):(o(),n("div",Ft,[s("div",Nt,[t.email?(o(),n("div",Pt,[e[65]||(e[65]=s("svg",{class:"size-3.5 text-stone-400 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})],-1)),g(" "+d(t.email),1)])):c("",!0),t.offers_sales?(o(),n("div",{key:1,class:b(["flex items-center gap-2 text-sm",t.sales_phone_number?"text-stone-700":"text-amber-500"])},[(o(),n("svg",{class:b(["size-3.5 flex-shrink-0",t.sales_phone_number?"text-stone-400":"text-amber-400"]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...e[66]||(e[66]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042
111.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"},null,-1)])],2)),t.sales_phone_number?(o(),n(Z,{key:0},[g(d(t.sales_phone_number)+" ",1),e[67]||(e[67]=s("span",{class:"text-xs text-stone-400"},"Sales",-1))],64)):(o(),n("span",Ut,"Sales phone missing"))],2)):c("",!0),t.offers_lettings?(o(),n("div",{key:2,class:b(["flex items-center gap-2 text-sm",t.lettings_phone_number?"text-stone-700":"text-amber-500"])},[(o(),n("svg",{class:b(["size-3.5 flex-shrink-0",t.lettings_phone_number?"text-stone-400":"text-amber-400"]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...e[68]||(e[68]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"},null,-1)])],2)),t.lettings_phone_number?(o(),n(Z,{key:0},[g(d(t.lettings_phone_number)+" ",1),e[69]||(e[69]=s("span",{class:"text-xs text-stone-400"},"Lettings",-1))],64)):(o(),n("span",It,"Lettings phone missing"))],2)):c("",!0),t.website_url?(o(),n("div",Dt,[e[70]||
1(e[70]=s("svg",{class:"size-3.5 text-stone-400 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9"})],-1)),g(" "+d(t.website_url.replace(/^https?:\/\//,"").replace(/\/$/,"")),1)])):c("",!0),!t.email&&!t.sales_phone_number&&!t.lettings_phone_number&&!t.website_url?(o(),n("div",Wt,"No contact details added")):c("",!0)])]))]),s("div",Gt,[s("div",Qt,[e[75]||(e[75]=s("div",{class:"flex items-center gap-2"},[s("svg",{class:"size-4 text-stone-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h7"})]),s("span",{class:"text-xs font-medium text-stone-500 uppercase tracking-wider"},"Description")],-1)),A.value?(o(),n("button",{key:1,type:"button",onClick:e[27]||(e[27]=r=>K("description")),class:b(["text-xs transition-colors font-medium",B("description")?"text-rose-500 hover:text-rose-700":"text-stone-500 hover:text-stone-700"])},d(B("description")?"Save":"Close"),3)):(o(),n("button",{key:0,type:"button",onClick:e[26]||(e[26]=r=>R("description")),class:"text-xs text-stone-500 hover:text-stone-700 transition-colors"},"Edit"))]),A.value?(o(),n("div",ts,[k(s("textarea",{"onUpdate:modelValue":e[28]||(e[28]=r=>t.description=r),rows:"4",class:"w-full rounded-lg border border-stone-200 px-3 py-2 text-sm focus:border-stone-300 focus:outline-none focus:ring-1 focus:ring-stone-300",placeholder:h.value?"About yourself and your services...":"About this branch..."},null,8,ss),[[_,t.description]])])):(o(),n("div",Xt,[t.description?(o(),n("p",Zt,d(t.description),1)):(o(),n("p",es,"No description added"))]))]),x.value?(o(),n("div",os,[s("button",{type:"button",onClick:Q,disabled:!ee.value||N.value,class:"w-full py-2.5 rounded-xl text-sm font-medium transition-all disabled:opacity-40 disabled:cursor-not-allowed brand-cta-primary"},d(N.value?"Creating...":`Create ${h.value?"Agent":"Branch"}`),9,ns),ee.value?c("",!0):(o(),n("p",ls,d(!t.brand_id&&!((y=u.defaultBrand)!=null&&y.id)?"Add a brand first":t.branch_location?"Select sales or lettings":"Add a location"),1))])):c("",!0),x.value?c("",!0):(o(),n("div",rs,[T.value?(o(),n("div",as,[s("p",is,d(te.value),1),s("div",ds,[s("button",{type:"button",onClick:e[29]||(e[29]=r=>T.value=!1),class:"text-sm text-stone-500 hover:text-stone-700"},"Cancel"),G.value?(o(),n("button",{key:0,type:"button",onClick:e[30]||(e[30]=r=>se(!0)),disabled:S.value,class:"rounded-lg bg-red-500 px-3 py-1.5 text-sm font-medium text-white hover:bg-red-600 disabled:opacity-50"}," Yes, Archive Anyway ",8,us)):c("",!0)])])):H.value?(o(),n("div",cs,[s("div",ms,[s("p",ps,"Archive this "+d(h.value?"agent":"branch")+"?",1),s("button",{type:"button",onClick:e[31]||(e[31]=r=>H.value=!1),class:"text-sm text-stone-500 hover:text-stone-700"},"Cancel"),s("button",{type:"button",onClick:se,disabled:S.value,class:"rounded-lg bg-red-500 px-3 py-1.5 text-sm font-medium text-white hover:bg-red-600 disabled:opacity-50"}," Yes, Archive ",8,fs)])])):(o(),n("button",{key:2,type:"button",onClick:pe,disabled:S.value,class:"flex items-center gap-1.5 text-sm text-stone-400 transition-colors hover:text-red-500 disabled:opacity-50"},[e[76]||(e[76]=s("svg",{class:"size-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)),g(" Archive "+d(h.value?"agent":"branch"),1)],8,bs))])),D(Ce,{modelValue:P.value,"onUpdate:modelValue":e[32]||(e[32]=r=>P.value=r),branch:u.branch,company:u.company,onSplitComplete:be},null,8,["modelValue","branch","company"]),D(Be,{modelValue:U.value,"onUpdate:modelValue":e[33]||(e[33]=r=>U.value=r),branch:u.branch,company:u.company,onTransferComplete:ve},null,8,["modelValue","branch","company"])])}}};export{Ks 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.