1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5506],{25506:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d});var l=r(95155);r(12115);var s=r(65229),a=r(75557),n=r(91787),i=r(71761);function d(e){let{data:t}=e,r=null!==t&&"object"==typeof t&&("aiExecutiveSummary"in t||"aiSummary"in t)?t.aiExecutiveSummary||t.aiSummary:void 0;return r?(0,l.jsxs)("div",{className:"relative flex flex-col pt-5 h-full",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[(0,l.jsx)(i.A,{text:r.title||"AI Executive Summary"}),(0,l.jsx)("button",{onClick:()=>{var e;null==t||null==(e=t.closeModal)||e.call(t)},className:"p-2 rounded-lg cursor-pointer hover:bg-bg-card transition-colors","data-testid":"close-ai-executive-summary-modal",children:(0,l.jsx)(s.A,{className:"h-4 w-4 text-icon-primary"})})]}),(0,l.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",style:{backgroundColor:"var(--color-bg-card)",borderRadius:"var(--radius-lg)",padding:"16px"},children:[(0,l.jsx)("div",{className:"flex-1 overflow-y-auto space-y-3 mb-3",children:(0,l.jsx)("div",{className:"text-sm text-gray-600 leading-relaxed",children:(0,l.jsx)(n.A,{content:r.content,dataTestId:"ai-executive-summary-modal-content"})})}),(0,l.jsxs)("div",{className:"flex justify-between items-center text-xs text-secondary-text border-t border-gray-100 pt-3 flex-shrink-0",children:[(0,l.jsx)("span",{children:"Last Updated On"}),(0,l.jsx)("span",{className:"font-medium text-card-foreground",children:(0,a.Yq)(r.lastUpdated)})]})]})]}):(0,l.jsx)("div",{className:"p-6 text-center",children:(0,l.jsx)("p",{className:"text-text-secondary",children:"No AI Executive Summary available."})})}},91787:(e,t,r)=>{r.d(t,{A:()=>c});var l=r(95155),s=r(12115),a=r(99620),n=r(5134),i=r(34217),d=r(23255);function c(e){let{content:t,className:r="",dataTestId:c}=e;if(!t||""===t.trim())return null;let o=(e=>{if(!e)return e;let t=e;
1return(t=(t=(t=(t=t.replace(/\\n/g,"\n")).replace(/^#n#(\d+)\.\s+(.*)$/gm,"$1. $2")).replace(/^(\w+)#(\s+[^\n]+)$/gm,(e,t,r)=>["quote","text","heading","title"].includes(t.toLowerCase())||t.length<=10&&/^[a-zA-Z]+$/.test(t)?"#".concat(r):e)).replace(/^[ \t]+(#{1,6}\s+)/gm,"$1")).replace(/\+\+([^+]+)\+\+/g,(e,t)=>"<u>".concat(t,"</u>"))})(t),h=(e=>{if(!e||""===e.trim())return"plain";let t=e.trim(),r=t.includes("\n"),l=0;[/<[a-zA-Z][a-zA-Z0-9]*[^>]*>/g,/<\/[a-zA-Z][a-zA-Z0-9]*>/g,/<[a-zA-Z][a-zA-Z0-9]*\s*\/>/g,/&[a-zA-Z0-9#]+;/g].forEach(e=>{let r=t.match(e);r&&(l+=r.length)});let s=0;[/^#{1,6}\s+/gm,/^\*\s+/gm,/^-\s+/gm,/^\+\s+/gm,/^\d+\.\s+/gm,/^#n#\d+\.\s+/gm,/^\>\s+/gm,/\[([^\]]+)\]\(([^)]+)\)/g,/!\[([^\]]*)\]\(([^)]+)\)/g,/\*\*([^*]+)\*\*/g,/\*([^*]+)\*/g,/\+\+([^+]+)\+\+/g,/~~([^~]+)~~/g,/`([^`]+)`/g,/^```[\s\S]*?^```/gm,/^---$/gm,/^\*\*\*$/gm].forEach(e=>{let r=t.match(e);r&&(s+=r.length)});let a=/<[a-zA-Z][a-zA-Z0-9]*[^>]*>.*<\/[a-zA-Z][a-zA-Z0-9]*>/.test(t),n=/^#{1,6}\s+|^\*\s+|^-\s+|^\d+\.\s+|^#n#\d+\.\s+|^\>\s+|\[.*\]\(.*\)|\*\*.*\*\*|\*.*\*|\+\+.*\+\+|~~.*~~|`.*`/.test(t),i=/^<[^>]*>[\s\S]*<\/[^>]*>$/.test(t),d=/^#{1,6}\s+[\s\S]*$|^\*\s+[\s\S]*$|^-\s+[\s\S]*$|^\d+\.\s+[\s\S]*$/.test(t);return i&&!n?"html":d&&!a?"markdown":l>2*s?"html":s>2*l?"markdown":a&&!n?"html":n&&!a||r&&/\n\n/.test(t)||r&&!a&&!n?"markdown":"plain"})(o),m={fontSize:"14px",lineHeight:"1.6",color:"var(--color-secondary-text)"};if("html"===h)return(0,l.jsx)("div",{className:"rich-text-display ".concat(r),"data-testid":c,style:m,dangerouslySetInnerHTML:{__html:o}});if("markdown"===h)return(0,l.jsx)("div",{className:"rich-text-display ".concat(r),"data-testid":c,style:m,children:(0,l.jsx)(a.oz,{remarkPlugins:[n.A,i.A],rehypePlugins:[d.A],components:{h1:e=>{let{children:t}=e;return(0,l.jsx)("h1",{className:"editor-heading-h1",children:t})},h2:e=>{let{children:t}=e;return(0,l.jsx)("h2",{className:"editor-heading-h2",children:t})},h3:e=>{let{children:t}=e;return(0,l.jsx)("h3",{className:"editor-heading-h3",children:t})},h4:e=>{let{children:t}=e;return(0,l.jsx)("h4",{className:"editor-heading-h4",children:t})},h5:e=>{let{children:t}=e;return(0,l.jsx)("h5",{className:"editor-heading-h5",children:t})},h6:e=>{let{children:t}=e;return(0,l.jsx)("h6",{className:"editor-heading-h6",children:t})},p:e=>{let{children:t}=e;return(0,l.jsx)("p",{className:"editor-paragraph",children:t})},ul:e=>{let{children:t}=e;return(0,l.jsx)("ul",{className:"editor-list-ul",children:t})},ol:e=>{let{children:t}=e;return(0,l.jsx)("ol",{className:"editor-list-ol",children:t})},li:e=>{let{children:t}=e;return(0,l.jsx)("li",{className:"editor-listitem",children:t})},blockquote:e=>{let{children:t}=e;return(0,l.jsx)("blockquote",{className:"editor-quote",children:t})},code:e=>{let{children:t,className:r}=e;return r?(0,l.jsx)("code",{className:"editor-code",children:t}):(0,l.jsx)("code",{className:"editor-text-code",children:t})},pre:e=>{let{children:t}=e;return(0,l.jsx)("pre",{className:"bg-bg-nav p-3 rounded overflow-x-auto",children:t})},a:e=>{let{href:t,children:r}=e;return(0,l.jsx)("a",{href:t,target:(null==t?void 0:t.startsWith("http"))?"_blank":void 0,rel:(null==t?void 0:t.startsWith("http"))?"noopener noreferrer":void 0,className:"editor-link",children:r})},strong:e=>{let{children:t}=e;return(0,l.jsx)("strong",{className:"editor-text-bold",children:t})},em:e=>{let{children:t}=e;return(0,l.jsx)("em",{className:"editor-text-italic",children:t})},u:e=>{let{children:t}=e;return(0,l.jsx)("u",{className:"editor-text-underline",children:t})},del:e=>{let{children:t}=e;return(0,l.jsx)("del",{className:"editor-text-strikethrough",children:t})},div:e=>{let{children:t,className:r,style:s,...a}=e;return(0,l.jsx)("div",{className:r,style:s,...a,children:t})},span:e=>{let{children:t,className:r,style:s,...a}=e;return(0,l.jsx)("span",{className:r,style:s,...a,children:t})},table:e=>{let{children:t}=e;return(0,l.jsx)("table",{className:"min-w-full border-collapse border border-stroke-light",children:t})},thead:e=>{let{children:t}=e;return(0,l.jsx)("thead",{className:"bg-gray-200",children:t})},tbody:e=>{let{children:t}=e;return(0,l.jsx)("tbody",{children:t})},tr:e=>{let{children:t}=e;return(0,l.jsx)("tr",{className:"border-b border-stroke-light",children:t})},th:e=>{let{children:t}=e;return(0,l.jsx)("th",{className:"border border-stroke-light px-3 py-2 text-left font-semibold text-brand-primary",children:t})},td:e=>{let{children:t}=e;return(0,l.jsx)("td",{className:"border border-stroke-light px-3 py-2",children:t})}},children:o})});let x=o.split("\n"),u=o.split(/\n\s*\n/);return(0,l.jsx)("div",{className:"rich-text-display ".concat(r),"data-testid":c,style:m,children:u.length>1?u.map((e,t)=>(0,l.jsx)("p",{className:"editor-paragraph",children:e.split("\n").map((t,r)=>(0,l.jsxs)(s.Fragment,{children:[t,r<e.split("\n").length-1&&(0,l.jsx)("br",{})]},r))},t)):x.map((e,t)=>(0,l.jsxs)(s.Fragment,{children:[e,t<x.length-1&&(0,l.jsx)("br",{})]},t))})}}}]);
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.