1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[68459,84571],{944:(e,t,s)=>{s.d(t,{v:()=>r});function r(e){return e>=85?"bg-success-tint text-success ring-green-600/20":e>=70?"bg-warning-tint text-warning ring-amber-500/20":"bg-destructive-tint text-destructive ring-red-500/20"}},6467:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(78340).A)("image-off",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]])},21975:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(78340).A)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]])},24538:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(78340).A)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},41585:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(78340).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},44478:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(78340).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},48368:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(78340).A)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},56558:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(78340).A)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]])},62032:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(78340).A)("shield-alert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]])},68459:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(78340).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},85945:(e,t,s)=>{s.d(t,{default:()=>i});var r=s(95155),a=s(12115),n=s(1065),l=s(86190);function i({value:e,variant:t="datetime",layout:s="inline",fallback:d="â",className:c}){let o=()=>({full:(0,n.r6)(e,{variant:t,fallback:d}),date:(0,n.r6)(e,{variant:"date",fallback:d}),time:(0,n.r6)(e,{variant:"time",fallback:""})}),[x,u]=(0,a.useState)(o);return((0,a.useEffect)(()=>{u(o())},[e,t,s,d]),"stacked"===s&&"datetime"===t&&x.date!==d)?(0,r.jsxs)("span",{className:(0,l.cn)("flex flex-col leading-tight",c),suppressHydrationWarning:!0,children:[(0,r.jsx)("span",{className:"font-medium",children:x.date}),x.time?(0,r.jsx)("span",{className:"text-xs text-muted-foreground",children:x.time}):null]}):(0,r.jsx)("span",{className:c,suppressHydrationWarning:!0,children:x.full})}},88839:(e,t,s)=>{s.d(t,{bL:()=>k,zi:()=>S});var r=s(12115),a=s.t(r,2),n=s(70379),l=s(47527),i=s(68599),d=s(66294),c=a[" useInsertionEffect ".trim().toString()]||d.N;Symbol("RADIX:SYNC_STATE");var o=s(83417),x=s(63509),u=s(99354),m=s(95155),h="Switch",[p,f]=(0,i.A)(h),[g,v]=p(h),y=r.forwardRef((e,t)=>{let{__scopeSwitch:s,name:a,checked:i,defaultChecked:d,required:o,disabled:x,value:p="on",onCheckedChange:f,form:v,...y}=e,[j,b]=r.useState(null),k=(0,l.s)(t,e=>b(e)),S=r.useRef(!1),w=!j||v||!!j.closest("form"),[A,M]=function({prop:e,defaultProp:t,onChange:s=()=>{},caller:a}){let[n,l,i]=function({defaultProp:e,onChange:t}){let[s,a]=r.useState(e),n=r.useRef(s),l=r.useRef(t);return c(()=>{l.current=t},[t]),r.useEffect(()=>{n.current!==s&&(l.current?.(s),n.current=s)},[s,n]),[s,a,l]}({defaultProp:t,onChange:s}),d=void 0!==e,o=d?e:n;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==d){let t=d?"controlled":"uncontrolled";console.warn(`${a} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=d},[d,a])}return[o,r.useCallback(t=>{if(d){let s="function"==typeof t?t(e):t;s!==e&&i.current?.(s)}else l(t)}
1,[d,e,l,i])]}({prop:i,defaultProp:d??!1,onChange:f,caller:h});return(0,m.jsxs)(g,{scope:s,checked:A,disabled:x,children:[(0,m.jsx)(u.sG.button,{type:"button",role:"switch","aria-checked":A,"aria-required":o,"data-state":C(A),"data-disabled":x?"":void 0,disabled:x,value:p,...y,ref:k,onClick:(0,n.mK)(e.onClick,e=>{M(e=>!e),w&&(S.current=e.isPropagationStopped(),S.current||e.stopPropagation())})}),w&&(0,m.jsx)(N,{control:j,bubbles:!S.current,name:a,value:p,checked:A,required:o,disabled:x,form:v,style:{transform:"translateX(-100%)"}})]})});y.displayName=h;var j="SwitchThumb",b=r.forwardRef((e,t)=>{let{__scopeSwitch:s,...r}=e,a=v(j,s);return(0,m.jsx)(u.sG.span,{"data-state":C(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:t})});b.displayName=j;var N=r.forwardRef(({__scopeSwitch:e,control:t,checked:s,bubbles:a=!0,...n},i)=>{let d=r.useRef(null),c=(0,l.s)(d,i),u=(0,o.Z)(s),h=(0,x.X)(t);return r.useEffect(()=>{let e=d.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(u!==s&&t){let r=new Event("click",{bubbles:a});t.call(e,s),e.dispatchEvent(r)}},[u,s,a]),(0,m.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:s,...n,tabIndex:-1,ref:c,style:{...n.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function C(e){return e?"checked":"unchecked"}N.displayName="SwitchBubbleInput";var k=y,S=b},93250:(e,t,s)=>{s.r(t),s.d(t,{default:()=>k});var r=s(95155),a=s(12115),n=s(73321),l=s(50910),i=s(33851),d=s(66088),c=s(98981),o=s(2614),x=s(86190),u=s(68189),m=s(70733),h=s(944),p=s(85945),f=s(54199),g=s(18101),v=s(57350),y=s(99393),j=s(55938);let b=["PLANNED","IN_PROGRESS","COMPLETED","MISSED"],N="__ANY__";function C({value:e}){return(0,r.jsxs)("span",{className:(0,x.cn)("inline-flex min-w-[3.25rem] items-center justify-center rounded-full px-2.5 py-0.5 text-sm font-bold ring-1 ring-inset",(0,h.v)(e)),children:[e,"%"]})}function k({agentRows:e=[],visits:t=[],filters:i={},range:d={}
1,initialPanelVisit:c=null,agents:h=[]}){let p=(0,n.useRouter)(),g=(0,n.usePathname)(),v=(0,n.useSearchParams)(),C=(0,l.c)("applications.scout"),S=(v.get("listMode")||"scorecard").toLowerCase(),[M,V]=(0,a.useState)(()=>new Set),[E,I]=(0,a.useState)(null),[P,$]=(0,a.useState)([]);(0,a.useEffect)(()=>{c&&I(c)},[]);let R=()=>{I(null);let e=new URLSearchParams(v.toString());if(e.has("panel")){e.delete("panel");let t=e.toString();p.replace(t?`${g}?${t}`:g,{scroll:!1})}};(0,a.useEffect)(()=>{let e=!0;return(0,y.n)().then(t=>{e&&$(t?.Data||t||[])}).catch(()=>{}),()=>{e=!1}},[]);let z=(0,a.useMemo)(()=>{let e={};return v.forEach((t,s)=>{e[s]=t}),e},[v]),D=(0,a.useMemo)(()=>{let e=new Map;for(let s of t){let t=s.AgentCode||"â";e.has(t)||e.set(t,[]),e.get(t).push(s)}return e},[t]),T=e=>{let t={...z,...e};Object.keys(t).forEach(e=>{(""===t[e]||void 0===t[e]||null===t[e])&&delete t[e]}),p.replace((0,x.mR)(g,t),{scroll:!1})},H=async(e,{agentCode:t,taskCode:s,date:r,notes:a})=>{if(!e)return;let n=e.CheckInAt;if(r){let t=e.CheckInAt?new Date(e.CheckInAt):null;if(t&&!Number.isNaN(t.getTime())){let e=new Date(t),[s,a,l]=r.split("-").map(e=>parseInt(e,10));e.setUTCFullYear(s,a-1,l),n=e.toISOString()}else n=`${r}T12:00:00.000Z`}try{await (0,j.P)({storeCode:e.StoreCode,storeName:e.StoreName,agentCode:t||null,zoneCode:e.ZoneCode,date:n,taskCode:s||null,recurrence:e.Recurrence||null,notes:a??""}),R(),o.toast.success(C("visits.calendar.saveSuccess",{store:e.StoreName||e.StoreCode||""})),p.refresh()}catch(e){console.error("Failed to save visit",e),o.toast.error(C("visits.calendar.assignError"))}},_=async e=>{if(e?.VisitCode)try{let{deleteVisit:t}=await s.e(3487).then(s.bind(s,3487)),r=await t({visitCode:e.VisitCode});if(r?.Error)throw Error(r?.Message||"delete failed");R(),o.toast.success(C("visits.calendar.deleteSuccess")),p.refresh()}catch(e){console.error("Failed to delete visit",e),o.toast.error(C("visits.calendar.deleteError"))}};return(0,r.jsxs)("div",{className:"min-w-0 space-y-4",children:[(0,r.jsx)("div",{className:"rounded-lg border bg-card p-4",children:(0,r.jsxs)("div",{className:"max-w-xs",children:[(0,r.jsx)("label",{className:"mb-1 block text-xs font-semibold text-muted-foreground",children:C("visits.filters.status")}),(0,r.jsxs)(m.l6,{value:i.status||N,onValueChange:e=>{T({status:(e===N?"":e)||void 0,page:1})},children:[(0,r.jsx)(m.bq,{className:"w-full bg-background",children:(0,r.jsx)(m.yv,{})}),(0,r.jsxs)(m.gC,{children:[(0,r.jsx)(m.eb,{value:N,children:C("visits.filters.anyStatus")}),b.map(e=>(0,r.jsx)(m.eb,{value:e,children:C(`status.${e}`)},e))]})]})]})}),(0,r.jsxs)("div",{className:"inline-flex rounded-md border bg-card p-0.5",children:[(0,r.jsx)(u.Button,{type:"button",variant:"scorecard"===S?"default":"ghost",size:"sm",onClick:()=>T({listMode:"scorecard"}),className:(0,x.cn)("h-auto rounded px-3 py-1 text-xs","scorecard"===S?"text-white":"text-muted-foreground hover:bg-muted"),children:C("visits.listMode.byAgent")}),(0,r.jsx)(u.Button,{type:"button",variant:"chronological"===S?"default":"ghost",size:"sm",onClick:()=>T({listMode:"chronological"}),className:(0,x.cn)("h-auto rounded px-3 py-1 text-xs","chronological"===S?"text-white":"text-muted-foreground hover:bg-muted"),children:C("visits.listMode.chronological")})]}),"scorecard"===S?(0,r.jsx)("div",{className:"overflow-auto rounded-lg border bg-card",children:(0,r.jsxs)("table",{className:"w-full min-w-[920px] text-sm",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{className:"border-b bg-muted/40 text-left text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:[(0,r.jsx)("th",{className:"px-4 py-3",children:C("visits.performance.agent")}),(0,r.jsx)("th",{className:"px-4 py-3 text-right",children:C("visits.performance.plannedClients")}),(0,r.jsx)("th",{className:"px-4 py-3 text-right",children:C("visits.performance.visitCompliance")}),(0,r.jsx)("th",{className:"px-4 py-3 text-right",children:C("visits.performance.plannedActivities")}),(0,r.jsx)("th",{className:"px-4 py-3 text-right",children:C("visits.performance.completedActivities")}),(0,r.jsx)("th",{className:"px-4 py-3 text-right",children:C("visits.performance.activitiesCompliance")}),(0,r.jsx)("th",{className:"px-4 py-3 text-right",children:C("visits.performance.performance")})]})}),(0,r.jsxs)("tbody",{children:[0===e.length&&(0,r.jsx)("tr",{children:(0,r.jsx)("td",{colSpan:7,className:"px-4 py-8 text-center text-muted-foreground",children:C("visits.performance.empty")})}),e.map(e=>{let t=M.has(e.AgentCode),s=D.get(e.AgentCode)||[];return(0,r.jsx)(A,{row:e,isOpen:t,agentVisits:s,onToggle:()=>{var t;return t=e.AgentCode,void V(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s})},onSelectVisit:I,t:C}
1,e.AgentCode)})]})]})}):(0,r.jsx)(w,{visits:t,onSelectVisit:I,t:C}),(0,r.jsx)(f.A,{visit:E,open:!!E,onClose:R,taskForms:P,onSave:H,agents:h,onDelete:_})]})}function S({status:e,t}){return(0,r.jsx)(v.A,{tone:g.Wy[e]||"gray",children:e?t(`status.${e}`):"â"})}function w({visits:e,onSelectVisit:t,t:s}){let n=(0,a.useMemo)(()=>[...e].sort((e,t)=>{let s=e.CheckInAt?new Date(e.CheckInAt).getTime():e.WeekStart?new Date(e.WeekStart).getTime():0;return(t.CheckInAt?new Date(t.CheckInAt).getTime():t.WeekStart?new Date(t.WeekStart).getTime():0)-s}),[e]);return 0===n.length?(0,r.jsx)("div",{className:"rounded border bg-card p-6 text-center text-sm text-muted-foreground",children:s("visits.table.empty")}):(0,r.jsx)("div",{className:"overflow-x-auto rounded-lg border bg-card",children:(0,r.jsxs)("table",{className:"min-w-full text-sm",children:[(0,r.jsx)("thead",{className:"bg-muted/40 text-xs uppercase text-muted-foreground",children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:s("visits.table.code")}),(0,r.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:s("visits.table.checkIn")}),(0,r.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:s("visits.table.store")}),(0,r.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:s("visits.table.agent")}),(0,r.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:s("visits.filters.zone")}),(0,r.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:s("visits.table.status")}),(0,r.jsx)("th",{className:"px-3 py-2 text-right font-medium",children:s("visits.table.compliance")})]})}),(0,r.jsx)("tbody",{className:"divide-y",children:n.map(e=>{let a=e.CheckInAt?(0,g.u)(e.CheckInAt):null;return(0,r.jsxs)("tr",{className:"hover:bg-muted/30",children:[(0,r.jsxs)("td",{className:"px-3 py-2",children:[(0,r.jsx)("button",{type:"button",onClick:s=>{s.stopPropagation(),t(e)},className:"font-medium text-primary hover:underline",children:null!=e.Code?`#${e.Code}`:e.VisitCode?`${String(e.VisitCode).slice(0,8)}â¦`:"â"}),null!=e.Code&&e.VisitCode&&(0,r.jsx)("div",{className:"font-mono text-[10px] text-muted-foreground",children:`${String(e.VisitCode).slice(0,8)}â¦`})]}),(0,r.jsx)("td",{className:"px-3 py-2 text-xs",children:a?(0,i.GP)(a,"dd MMM HH:mm"):"â"}),(0,r.jsxs)("td",{className:"px-3 py-2",children:[(0,r.jsx)("div",{className:"font-medium",children:e.StoreName||e.StoreCode}),(0,r.jsx)("div",{className:"text-[10px] text-muted-foreground",children:e.StoreCode})]}),(0,r.jsxs)("td",{className:"px-3 py-2 text-xs",children:[(0,r.jsx)("div",{children:e.AgentName||"â"}),(0,r.jsx)("div",{className:"text-[10px] text-muted-foreground",children:e.AgentCode})]}),(0,r.jsx)("td",{className:"px-3 py-2 text-xs",children:e.ZoneCode||"â"}),(0,r.jsx)("td",{className:"px-3 py-2",children:(0,r.jsx)(S,{status:e.Status,t:s})}),(0,r.jsx)("td",{className:"px-3 py-2 text-right tabular-nums",children:null!=e.ComplianceScore?`${e.ComplianceScore}%`:"â"})]},e.VisitCode)})})]})})}function A({row:e,isOpen:t,agentVisits:s,onToggle:a,onSelectVisit:n,t:l}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("tr",{className:"cursor-pointer border-b transition hover:bg-muted/30",onClick:a,"aria-expanded":t,children:[(0,r.jsx)("td",{className:"px-4 py-3",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[t?(0,r.jsx)(d.A,{className:"h-4 w-4 text-muted-foreground"}):(0,r.jsx)(c.A,{className:"h-4 w-4 text-muted-foreground"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"font-medium text-foreground",children:e.AgentName}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[(0,r.jsx)("span",{children:e.AgentCode}),(e.Roles||[]).map(e=>(0,r.jsx)("span",{className:"inline-flex rounded-full bg-muted px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground",children:function(e,t){if(!t)return"";let s=`role.${t}`;return e.has(s)?e(s):String(t).replace(/[_-]+/g," ").toLowerCase().replace(/\b\w/g,e=>e.toUpperCase())}(l,e)},e))]})]})]})}),(0,r.jsx)("td",{className:"px-4 py-3 text-right font-medium text-foreground",children:e.PlannedClients}),(0,r.jsxs)("td",{className:"px-4 py-3 text-right",children:[(0,r.jsxs)("span",{className:"font-semibold",children:[e.VisitCompliancePct,"%"]}),(0,r.jsxs)("div",{className:"text-xs text-muted-foreground",children:[e.CompletedVisits,"/",e.PlannedVisits]})]}),(0,r.jsx)("td",{className:"px-4 py-3 text-right font-medium text-foreground",children:e.PlannedActivities}),(0,r.jsx)("td",{className:"px-4 py-3 text-right font-medium text-foreground",children:e.CompletedActivities}),(0,r.jsxs)("td",{className:"px-4 py-3 text-right font-semibold",children:[e.ActivitiesCompliancePct,"%"]}),(0,r.jsx)("td",{className:"px-4 py-3 text-right",children:(0,r.jsx)(C,{value:e.PerformancePct})})]}),t&&(0,r.jsx)("tr",{className:"border-b bg-muted/10",children:(0,r.jsx)("td",{colSpan:7,className:"px-4 py-3",children:0===s.length?(0,r.jsx)("p",{className:"text-xs text-muted-foreground",children:l("visits.performance.noVisits")}):(0,r.jsx)("div",{className:"overflow-hidden rounded-md border bg-card",children:(0,r.jsxs)("table",{className:"w-full text-sm",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{className:"border-b bg-muted/30 text-left text-xs font-semibold text-muted-foreground",children:[(0,r.jsx)("th",{className:"px-3 py-2",children:l("visits.table.code")}),(0,r.jsx)("th",{className:"px-3 py-2",children:l("visits.table.store")}),(0,r.jsx)("th",{className:"px-3 py-2",children:l("visits.table.checkIn")}),(0,r.jsx)("th",{className:"px-3 py-2",children:l("visits.table.status")}),(0,r.jsx)("th",{className:"px-3 py-2 text-right",children:l("visits.table.compliance")})]})}),(0,r.jsx)("tbody",{children:s.map(e=>(0,r.jsxs)("tr",{className:"border-b last:border-0",children:[(0,r.jsxs)("td",{className:"px-3 py-2",children:[(0,r.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),n(e)},className:"font-medium text-primary hover:underline",children:null!=e.Code?`#${e.Code}`:e.VisitCode?`${String(e.VisitCode).slice(0,8)}â¦`:"â"}),null!=e.Code&&e.VisitCode&&(0,r.jsx)("div",{className:"font-mono text-[10px] text-muted-foreground",children:`${String(e.VisitCode).slice(0,8)}â¦`})]}),(0,r.jsxs)("td",{className:"px-3 py-2",children:[(0,r.jsx)("div",{className:"font-medium text-foreground",children:e.StoreName}),e.StoreCode&&(0,r.jsx)("div",{className:"text-xs text-muted-foreground",children:e.StoreCode})]}),(0,r.jsx)("td",{className:"px-3 py-2 text-foreground",children:(0,r.jsx)(p.default,{value:e.CheckInAt,layout:"stacked"})}),(0,r.jsx)("td",{className:"px-3 py-2",children:(0,r.jsx)(S,{status:e.Status,t:l})}),(0,r.jsx)("td",{className:"px-3 py-2 text-right font-semibold",children:null!=e.ComplianceScore?`${e.ComplianceScore}%`:"â"})]},e.VisitCode))})]})})})})]})}}}]);
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.