1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[411],{87592:function(e,t,r){r.d(t,{Z:function(){return s}});/** 2 * @license lucide-react v0.400.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let s=(0,r(78030).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},13231:function(e,t,r){r.d(t,{Z:function(){return s}});/** 7 * @license lucide-react v0.400.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */let s=(0,r(78030).Z)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},40933:function(e,t,r){r.d(t,{Z:function(){return s}});/** 12 * @license lucide-react v0.400.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */let s=(0,r(78030).Z)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},75733:function(e,t,r){r.d(t,{Z:function(){return s}});/** 17 * @license lucide-react v0.400.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */let s=(0,r(78030).Z)("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},71995:function(e,t,r){r.d(t,{Z:function(){return s}});/** 22 * @license lucide-react v0.400.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */let s=(0,r(78030).Z)("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]])},4086:function(e,t,r){r.d(t,{Z:function(){return s}});/** 27 * @license lucide-react v0.400.0 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */let s=(0,r(78030).Z)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},39451:function(e,t,r){r.d(t,{Z:function(){return s}});/** 32 * @license lucide-react v0.400.0 - ISC 33 * 34 * This source code is licensed under the ISC license. 35 * See the LICENSE file in the root directory of this source tree. 36 */let s=(0,r(78030).Z)("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]])},20500:function(e,t,r){r.d(t,{Z:function(){return s}});/** 37 * @license lucide-react v0.400.0 - ISC 38 * 39 * This source code is licensed under the ISC license. 40 * See the LICENSE file in the root directory of this source tree. 41 */let s=(0,r(78030).Z)("Shield",[["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"}]])},36127:function(e,t,r){r.d(t,{Z:function(){return s}});/** 42 * @license lucide-react v0.400.0 - ISC 43 * 44 * This source code is licensed under the ISC license. 45 * See the LICENSE file in the root directory of this source tree. 46 */let s=(0,r(78030).Z)("TriangleAlert",[["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"}]])},80411:function(e,t,r){r.r(t),r.d(t,{default:function(){return f}});var s=r(57437),a=r(2265),n=r(4086),c=r(40933),l=r(71995),i=r(75733),d=r(22023),o=r(20500),x=r(36127),m=r(13231),p=r(39451),h=r(3274),u=r(87592);let y={reply:n.Z,clock:c.Z,list:l.Z,search:i.Z,"file-text":d.Z,"shield-check":o.Z,"alert-triangle":x.Z,mail:n.Z,"check-square":m.Z,ruler:p.Z,grid:p.Z,flame:x.Z,forward:n.Z,calendar:c.Z,users:i.Z,"plus-square":p.Z,eye:i.Z,"check-circle":m.Z,edit:p.Z,"folder-plus":d.Z};function b(e){let{priority:t}=e,r={high:"bg-red-50 text-red-700 border-red-200",medium:"bg-amber-50 text-amber-700 border-amber-200",low:"bg-gray-50 text-gray-600 border-gray-200"};return(0,s.jsx)("span",{className:"text-[9px] font-semibold px-1.5 py-0.5 rounded border uppercase tracking-wider ".concat(r[t]||r.low),children:t})}function f(e){let{output:t,onAction:r}=e,[n,l]=(0,a.useState)(null),[i,o]=(0,a.useState)(null);if(!t)return null;let p=!t.analysis_ready&&!t.summary;return(0,s.jsxs)("div",{className:"rounded-xl border border-border/50 shadow-card overflow-hidden",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2.5 px-4 py-3 ".concat(t.requires_response?"bg-amber-50 border-b border-amber-200":"bg-casa-navy/5 border-b border-border/30"),children:[(0,s.jsx)(d.Z,{className:"h-4 w-4 flex-shrink-0 ".concat(t.requires_response?"text-amber-600":"text-casa-navy")}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-sm font-semibold text-text-primary truncate",children:t.document_type_label||t.filename||"Document Analysis"}),t.filename&&t.document_type_label&&(0,s.jsx)("p",{className:"text-[10px] text-text-tertiary truncate",children:t.filename})]}),t.requires_response&&(0,s.jsx)("span",{className:"text-[10px] font-bold text-amber-700 bg-amber-100 px-2 py-0.5 rounded-full flex-shrink-0",children:"Response Required"})]}),p&&(0,s.jsxs)("div",{className:"px-4 py-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,s.jsx)(h.Z,{className:"h-4 w-4 animate-spin text-casa-navy"}),(0,s.jsx)("span",{className:"text-sm text-text-secondary",children:"Analysing document..."})]}),(0,s.jsx)("div",{className:"space-y-2",children:[1,2,3].map(e=>(0,s.jsx)("div",{className:"h-3 rounded bg-gray-100 animate-pulse",style:{width:"".concat(90-15*e,"%")}},e))})]}),t.summary&&(0,s.jsx)("div",{className:"px-4 py-3 border-b border-border/20",children:(0,s.jsx)("p",{className:"text-sm text-text-secondary leading-relaxed",children:t.summary})}),t.deadlines&&t.deadlines.length>0&&(0,s.jsx)("div",{className:"px-4 py-2.5 bg-amber-50/50 border-b border-border/20",children:t.deadlines.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,s.jsx)(c.Z,{className:"h-3.5 w-3.5 text-amber-600 flex-shrink-0"}),(0,s.jsx)("span",{className:"font-medium text-amber-800",children:e.description}),"detected"===e.source&&(0,s.jsx)("span",{className:"text-[9px] text-amber-500 bg-amber-100 px-1 rounded",children:"detected"})]},t))}),t.key_findings&&t.key_findings.length>0&&(0,s.jsxs)("div",{className:"px-4 py-3 border-b border-border/20",children:[(0,s.jsx)("p",{className:"text-[10px] font-semibold text-text-tertiary uppercase tracking-wider mb-2",children:"Key Findings"}),(0,s.jsx)("ul",{className:"space-y-1.5",children:t.key_findings.map((e,t)=>(0,s.jsxs)("li",{className:"flex items-start gap-2 text-xs text-text-secondary",children:[(0,s.jsx)(m.Z,{className:"h-3 w-3 text-emerald-500 mt-0.5 flex-shrink-0"}),(0,s.jsx)("span",{children:e})]},t))})]}),t.compliance_issues&&t.compliance_issues.length>0&&(0,s.jsxs)("div",{className:"px-4 py-3 bg-red-50/30 border-b border-border/20",children:[(0,s.jsx)("p",{className:"text-[10px] font-semibold text-red-700 uppercase tracking-wider mb-2",children:"Issues Flagged"}),(0,s.jsx)("ul",{className:"space-y-1.5",children:t.compliance_issues.map((e,t)=>(0,s.jsxs)("li",{className:"flex items-start gap-2 text-xs text-red-700",children:[(0,s.jsx)(x.Z,{className:"h-3 w-3 text-red-500 mt-0.5 flex-shrink-0"}),(0,s.jsx)("span",{children:e})]},t))})]}),t.recommended_actions&&t.recommended_actions.length>0&&(0,s.jsxs)("div",{className:"px-4 py-3",children:[(0,s.jsx)("p",{className:"text-[10px] font-semibold text-text-tertiary uppercase tracking-wider mb-2",children:"Recommended Actions"}),(0,s.jsx)("div",{className:"space-y-1.5",children:t.recommended_actions.map(e=>
46{let a=y[e.icon]||u.Z,n=i===e.key;return(0,s.jsxs)("button",{onClick:()=>{o(e.key),null==r||r("execute_document_action",{action_key:e.key,document_id:t.document_id}),setTimeout(()=>o(null),3e3)},disabled:n,className:"w-full flex items-center gap-3 px-3 py-2.5 rounded-lg border text-left transition-all group ".concat("high"===e.priority?"border-casa-navy/20 bg-casa-navy/5 hover:border-casa-navy/40 hover:shadow-sm":"border-border/30 hover:border-border/50 hover:bg-subtle"),children:[n?(0,s.jsx)(h.Z,{className:"h-4 w-4 animate-spin text-casa-navy flex-shrink-0"}):(0,s.jsx)(a,{className:"h-4 w-4 flex-shrink-0 ".concat("high"===e.priority?"text-casa-navy":"text-text-tertiary"," group-hover:text-casa-navy transition-colors")}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-xs font-semibold text-text-primary group-hover:text-casa-navy transition-colors",children:e.label}),(0,s.jsx)("p",{className:"text-[10px] text-text-tertiary line-clamp-1",children:e.description})]}),(0,s.jsx)(b,{priority:e.priority})]},e.key)})})]})]})}}}]);
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.