PageSourceSearch

https://newtral.ai/_next/static/chunks/182.c7fc2f0003df8610.js

js newtral.ai collected 2026-10-05 14:24:00 UTC 31,996 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[182],{30182:function(e,r,t){t.r(r),t.d(r,{PeerDataLedgerClient:function(){return S}});var n=t(57437),a=t(2265),o=t(23738),i=t(19150),l=t(31340),s=t(72643),c=t(8940),d=t(53739),u=t(91746),p=t(54891),g=t(40677),x=t(22868),m=t(45466),v=t(10887),h=t(68395),f=t(54164),y=t(71917),b=t(88015);let j={Environment:"var(--success)",Social:"var(--accent)",Governance:"var(--warning)",Compliance:"var(--error)",CSR:"var(--cat-12)",Economical:"var(--cat-11)"};function S(e){let{peers:r,rows:t,excludedUmlIds:o,categoryWeights:i}=e,[l,s]=(0,a.useState)(null),c=(0,a.useMemo)(()=>new Set(o),[o]),[d,u]=(0,a.useState)(""),[p,g]=(0,a.useState)("all"),[x,m]=(0,a.useState)("all"),[v,y]=(0,a.useState)(!1),b=(0,a.useMemo)(()=>{let e=new Map;for(let a of t){var r,n;e.set(a.key,"".concat(a.metricCode," ").concat(a.metricName," ").concat(a.peerName," ").concat(null!==(r=a.sourceName)&&void 0!==r?r:""," ").concat(null!==(n=a.notes)&&void 0!==n?n:"").toLowerCase())}return e},[t]),j=(0,a.useMemo)(()=>{let e=0,r=0,n=0,a=0,o=new Set,i=new Set;for(let l of t)"system"===l.source?e++:"extracted"===l.source?r++:"manual"===l.source&&n++,l.overrides&&a++,o.add(l.peerId),i.add(l.metricId);return{systemCount:e,extractedCount:r,manualCount:n,overrideCount:a,peerCount:o.size,metricCount:i.size}},[t]),S=(0,a.useMemo)(()=>{let e=d.trim().toLowerCase();return t.filter(r=>{if("all"!==p&&r.peerId!==p||"all"!==x&&r.source!==x)return!1;if(e){var t;if(!(null!==(t=b.get(r.key))&&void 0!==t?t:"").includes(e))return!1}return!0})},[t,b,p,x,d]),k=(0,a.useMemo)(()=>{let e=e=>"system"===e?2:"extracted"===e?0:1;return[...S].sort((r,t)=>{var n,a,o,i;let l=e(r.source),s=e(t.source);if(l!==s)return l-s;if("system"!==r.source&&"system"!==t.source){let e=r.capturedAt||"",n=t.capturedAt||"";if(e!==n)return n.localeCompare(e)}return r.peerName!==t.peerName?r.peerName.localeCompare(t.peerName):(null!==(n=r.metricCategory)&&void 0!==n?n:"")!==(null!==(a=t.metricCategory)&&void 0!==a?a:"")?(null!==(o=r.metricCategory)&&void 0!==o?o:"").localeCompare(null!==(i=t.metricCategory)&&void 0!==i?i:""):r.metricName!==t.metricName?r.metricName.localeCompare(t.metricName):0})},[S]),I=(0,a.useMemo)(()=>{if(v||k.length<=250)return k;let e=0;for(let r of k)if("system"!==r.source&&++e>=250)break;let r=Math.max(0,250-e),t=[],n=0,a=0;for(let e of k)"system"===e.source?a<r&&(t.push(e),a++):n<250&&(t.push(e),n++);return t},[k,v]),z=(0,a.useMemo)(()=>{let e=0,r=0;for(let t of I)"system"===t.source?r++:e++;return{ws:e,sys:r}},[I]);return((0,a.useEffect)(()=>{v&&k.length<=250&&y(!1)},[k.length,v]),0===r.length)?(0,n.jsx)(D,{title:"No peers in cohort yet",body:"Add up to 5 peers in Peer Setup before the Data Ledger has anything to show. Reference data from the Universal Company Library will appear here automatically once peers are picked."}):(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[(0,n.jsx)(C,{stats:j}),(0,n.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:10},children:[(0,n.jsx)(T,{label:"TOTAL ROWS",value:String(t.length),sub:"".concat(j.peerCount," peer").concat(1===j.peerCount?"":"s"," \xb7 ").concat(j.metricCount," metrics")}),(0,n.jsx)(T,{label:"SYSTEM",value:String(j.systemCount),sub:"UCL / XBRL reference"}),(0,n.jsx)(T,{label:"EXTRACTED",value:String(j.extractedCount),sub:"LLM from PDFs",tone:"extracted"}),(0,n.jsx)(T,{label:"MANUAL",value:String(j.manualCount),sub:"human-entered",tone:"manual"}),(0,n.jsx)(T,{label:"OVERRIDES",value:String(j.overrideCount),sub:"extracted ↑ system",tone:"warning"})]}),(0,n.jsxs)(h.x,{fallback:(0,n.jsx)(w,{peerId:p,setPeerId:g,peers:r,sourceFilter:x,setSourceFilter:m,search:d,setSearch:u,shown:k.length,total:t.length}),children:[(0,n.jsx)(f.bd,{ariaLabel:"Search ledger rows",placeholder:"Search metric, peer, source…",value:d,onChange:u}),(0,n.jsx)(f.A7,{ariaLabel:"Peer",value:p,onChange:g,options:[{value:"all",label:"All peers"},...r.map(e=>({value:e.id,label:e.name}))]}),(0,n.jsx)(f.A7,{ariaLabel:"Row source",value:x,onChange:e=>m(e),options:[{value:"all",label:"All sources"},{value:"system",label:"System"},{value:"extracted",label:"Extracted"},{value:"manual",label:"Manual"}]})]}),(0,n.jsx)("div",{style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",overflow:"hidden"},children:(0,n.jsxs)("table",{style:{width:"100%",borderCollapse:"collapse"},children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{style:{background:"var(--bg-base)"},children:[(0,n.jsx)(A,{width:24}),(0,n.jsx)(A,{width:150,children:"PEER"}),(0,n.jsx)(A,{children:"METRIC"}),(0,n.jsx)(A,{width:160,align:"right",children:"VALUE"}),(0,n.jsx)(A,{width:190,children:"SOURCE"}),(0,n.jsx)(A,{width:88,children:"ACTIONS"})]})}),(0,n.jsxs)("tbody",{children:[0===k.length&&(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:6,style:{padding:36,textAlign:"center",color:"var(--text-tertiary)",fontSize:12.5},children:"No rows match the current filters."})}),I.map(e=>(0,n.jsx)(R,{row:e,onOpen:()=>s(e)},e.key)),!v&&k.length>250&&(0,n.jsx)("tr",{children:(0,n.jsxs)("td",{colSpan:6,style:{padding:"14px 16px",textAlign:"center",background:"var(--bg-base)",borderTop:"1px solid var(--border-subtle)",fontSize:12.5,color:"var(--text-secondary)"},children:["Showing ",(0,n.jsx)("strong",{children:I.length.toLocaleStr
1ing()})," of"," ",(0,n.jsx)("strong",{children:k.length.toLocaleString()})," rows",z.ws>0&&z.sys>0&&(0,n.jsxs)(n.Fragment,{children:[" ","(all"," ",(0,n.jsx)("strong",{style:{color:"var(--accent)"},children:z.ws.toLocaleString()})," ","extracted / manual rows + first"," ",(0,n.jsx)("strong",{children:z.sys.toLocaleString()})," system rows)"]}),"."," ",(0,n.jsxs)("button",{type:"button",onClick:()=>y(!0),style:{background:"none",border:"none",padding:0,color:"var(--accent)",fontWeight:500,fontSize:12.5,cursor:"pointer",textDecoration:"underline"},children:["Show all ",k.length.toLocaleString()," →"]}),(0,n.jsxs)("span",{style:{display:"block",marginTop:4,fontSize:11,color:"var(--text-tertiary)"},children:["Tip: filter by peer or source above to narrow the list - most queries fit comfortably under ",250,"."]})]})})]})]})}),l&&(0,n.jsx)(W,{row:l,excluded:c.has(l.metricId),categoryWeights:i,onClose:()=>s(null)})]})}function w(e){let{peerId:r,setPeerId:t,peers:a,sourceFilter:o,setSourceFilter:l,search:s,setSearch:c,shown:d,total:u}=e;return(0,n.jsxs)("div",{style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",padding:"10px 14px",display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,n.jsxs)(F,{label:"PEER",children:[(0,n.jsx)(B,{active:"all"===r,onClick:()=>t("all"),children:"All"}),a.map(e=>(0,n.jsx)(B,{active:r===e.id,onClick:()=>t(e.id),children:e.name.split(" ")[0]},e.id))]}),(0,n.jsxs)(F,{label:"SOURCE",children:[(0,n.jsx)(B,{active:"all"===o,onClick:()=>l("all"),children:"All"}),(0,n.jsx)(B,{active:"system"===o,onClick:()=>l("system"),children:"System"}),(0,n.jsx)(B,{active:"extracted"===o,onClick:()=>l("extracted"),children:"Extracted"}),(0,n.jsx)(B,{active:"manual"===o,onClick:()=>l("manual"),children:"Manual"})]}),(0,n.jsxs)("div",{style:{flex:1,minWidth:200,maxWidth:320,display:"inline-flex",alignItems:"center",gap:6,padding:"4px 10px",background:"var(--bg-base)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-sm)"},children:[(0,n.jsx)(i.Z,{size:12,color:"var(--text-tertiary)"}),(0,n.jsx)("input",{value:s,onChange:e=>c(e.target.value),placeholder:"Search metric, peer, source…",style:{flex:1,border:"none",outline:"none",background:"transparent",fontSize:12.5,color:"var(--text-primary)"}})]}),(0,n.jsxs)(v.Caps,{children:[d," / ",u]})]})}function C(e){let{stats:r}=e;return(0,n.jsxs)("div",{style:{padding:"14px 18px",background:"var(--accent-subtle)",border:"1px solid color-mix(in srgb, var(--accent) 40%, transparent)",borderRadius:"var(--radius-md)",display:"flex",alignItems:"flex-start",gap:12},children:[(0,n.jsx)("span",{style:{width:28,height:28,borderRadius:7,background:"var(--accent)",color:"white",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,fontSize:13},children:(0,n.jsx)(l.Z,{size:14})}),(0,n.jsxs)("div",{style:{flex:1},children:[(0,n.jsx)(v.Caps,{size:10,children:"PEER DATA LEDGER - every value that feeds Benchmark / Coverage / Score"}),(0,n.jsxs)("div",{style:{fontSize:13,color:"var(--text-primary)",marginTop:2,lineHeight:1.5},children:[r.systemCount.toLocaleString()," system (XBRL/NSE filings, view-only) \xb7"," ",(0,n.jsxs)("strong",{style:{color:"var(--accent)"},children:[r.extractedCount.toLocaleString()," extracted"]})," by the LLM \xb7"," ",(0,n.jsxs)("strong",{style:{color:"var(--cat-12)"},children:[r.manualCount.toLocaleString()," manual"]}),". Extracted and manual rows OVERRIDE system rows in Benchmark when both exist for the same (peer, metric) - overrides are marked below."]})]})]})}function k(e){return e?e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2").split(/\s+/).filter(Boolean).map((e,r)=>/^[A-Z]{2,}$/.test(e)?e:0===r?e[0].toUpperCase()+e.slice(1).toLowerCase():e.toLowerCase()).join(" "):e}function R(e){var r,t,a,o;let{row:i,onOpen:l}=e,s=i.metricCategory&&null!==(r=j[i.metricCategory])&&void 0!==r?r:"var(--text-tertiary)",c=null!=i.overriddenBy?"transparent":"extracted"===i.source?"color-mix(in srgb, var(--accent) 4%, transparent)":"manual"===i.source?"color-mix(in srgb, var(--cat-12) 5%, transparent)":"transparent",d="extracted"===i.source?"color-mix(in srgb, var(--accent) 8%, transparent)":"manual"===i.source?"color-mix(in srgb, var(--cat-12) 9%, transparent)":"var(--bg-base)",u=null!=i.overriddenBy?.55:1,p=k(i.metricName);return(0,n.jsxs)("tr",{onClick:e=>
1{e.target.closest("[data-actions-cell]")||l()},"data-source":i.source,"data-source-kind":null!==(t=i.sourceKind)&&void 0!==t?t:"","data-peer-id":i.peerId,"data-uml-id":i.metricId,"data-target-id":null!==(a=i.targetId)&&void 0!==a?a:"",style:{borderTop:"1px solid var(--border-subtle)",background:c,opacity:u,cursor:"pointer",transition:"background-color 80ms ease"},onMouseEnter:e=>{e.currentTarget.style.background=d},onMouseLeave:e=>{e.currentTarget.style.background=c},children:[(0,n.jsx)(U,{children:(0,n.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:s,display:"inline-block"},title:null!==(o=i.metricCategory)&&void 0!==o?o:""})}),(0,n.jsxs)(U,{children:[(0,n.jsx)("div",{title:i.peerName,style:{fontSize:12.5,fontWeight:500,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:140},children:i.peerName}),(0,n.jsxs)("div",{style:{fontSize:9,fontFamily:"var(--font-mono)",letterSpacing:"0.06em",color:"extracted"===i.source?"var(--accent)":"manual"===i.source?"var(--cat-12)":"var(--text-tertiary)",marginTop:2},children:["[src=",i.source,"]"]})]}),(0,n.jsxs)(U,{children:[(0,n.jsx)("div",{style:{fontSize:13,fontWeight:500,color:"var(--text-primary)",lineHeight:1.35},children:p}),(0,n.jsxs)("div",{style:{display:"flex",gap:8,marginTop:3,fontSize:10.5,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)",letterSpacing:"0.02em"},children:[(0,n.jsx)("span",{children:i.metricCode}),i.metricOutputUnit&&(0,n.jsxs)("span",{title:"Canonical unit defined on the Universal Metrics Library",children:["→ ",i.metricOutputUnit]})]})]}),(0,n.jsx)(U,{align:"right",children:(0,n.jsx)(I,{row:i})}),(0,n.jsx)(U,{children:(0,n.jsx)(z,{row:i})}),(0,n.jsx)("td",{"data-actions-cell":"true",style:{padding:"12px 14px",textAlign:"left",verticalAlign:"middle",fontSize:12.5},children:(0,n.jsx)(E,{row:i})})]})}function I(e){var r,t,a,o,i,l;let{row:s}=e;return null==s.valueNumeric?(0,n.jsx)(M,{children:"–"}):(0,n.jsxs)("div",{style:{display:"inline-flex",flexDirection:"column",alignItems:"flex-end",gap:2,minWidth:0},children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:4,justifyContent:"flex-end"},children:[(0,n.jsx)("span",{style:{fontFamily:"var(--font-display)",fontSize:16,fontWeight:500,letterSpacing:"-0.01em"},children:s.valueNumeric.toLocaleString()}),s.overrides&&(0,n.jsx)("span",{title:"Benchmark uses this row. The system value was ".concat(null!==(a=null===(r=s.overrides.valueNumeric)||void 0===r?void 0:r.toLocaleString())&&void 0!==a?a:"–"," ").concat(null!==(o=s.overrides.unit)&&void 0!==o?o:"","."),style:{fontFamily:"var(--font-mono)",fontSize:10.5,color:"var(--warning)",fontWeight:600,cursor:"help"},children:"↑"}),s.overriddenBy&&(0,n.jsx)("span",{title:"Benchmark uses the ".concat(s.overriddenBy.source," value (").concat(null!==(i=null===(t=s.overriddenBy.valueNumeric)||void 0===t?void 0:t.toLocaleString())&&void 0!==i?i:"–"," ").concat(null!==(l=s.overriddenBy.unit)&&void 0!==l?l:"","), not this UCL row."),style:{fontFamily:"var(--font-mono)",fontSize:10.5,color:"var(--text-tertiary)",fontWeight:600,cursor:"help"},children:"↓"})]}),(0,n.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",fontSize:10.5,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:[s.unit&&(0,n.jsx)("span",{children:s.unit}),s.periodLabel&&(0,n.jsxs)("span",{children:["\xb7 ",s.periodLabel]})]}),s.converted&&null!=s.originalValue&&s.originalUnit&&(0,n.jsxs)("span",{title:"LLM converted the report's verbatim value into the metric's canonical unit.",style:{fontSize:10,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:["↺ ",s.originalValue.toLocaleString()," ",s.originalUnit]})]})}function z(e){let{row:r}=e;return(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:4},children:[(0,n.jsx)(N,{row:r}),("extracted"===r.source||"manual"===r.source)&&r.confidence&&(0,n.jsx)(L,{confidence:r.confidence})]})}function N(e){var r;let{row:t}=e;if("system"===t.source){let e=t.sourceName||("xbrl_filing"===t.sourceKind?"XBRL":"regulatory_filing"===t.sourceKind?"Filing":"UCL ref"),r=(0,n.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:4,padding:"2px 8px",borderRadius:999,background:"var(--bg-sunken)",color:"var(--text-secondary)",border:"1px solid var(--border-subtle)",fontSize:10,fontFamily:"var(--font-mono)",fontWeight:600,letterSpacing:"0.04em",textTransform:"uppercase",whiteSpace:"nowrap"},children:[(0,n.jsx)(l.Z,{size:10}),(0,n.jsx)("span",{style:{fontWeight:700},children:"SYSTEM"}),(0,n.jsxs)("span",{style:{opacity:.7},children:["\xb7 ",e]})]});return t.sourceUrl?(0,n.jsx)("a",{href:t.sourceUrl,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:r}):r}let a="extracted"===t.source,o="annual_report"===t.sourceKind?"Annual":"sustainability_report"===t.sourceKind?"Sustain.":"brsr_filing"===t.sourceKind?"BRSR":"press_release"===t.sourceKind?"Press":a?"PDF":"Manual",i=a?{bg:"color-mix(in srgb, var(--accent) 12%, transparent)",fg:"var(--accent)",bd:"color-mix(in srgb, var(--accent) 38%, transparent)"}:{bg:"color-mix(in srgb, var(--cat-12) 12%, transparent)",fg:"var(--cat-12)",bd:"color-mix(in srgb, var(--cat-12) 38%, transparent)"};return(0,n.jsxs)("span",{title:"".concat(a?"LLM-extracted from a PDF":"Manually entered"," \xb7 ").concat(null!==(r=t.sourceKind)&&void 0!==r?r:"workspace").concat(t.pageRefs.length>0?" \xb7 page ".concat(t.pageRefs.join(", ")):""),style:{display:"inline-flex",alignItems:"center",gap:4,padding:"2px 8px",borderRadius:999,background:i.bg,color:i.fg,border:"1px solid ".concat(i.bd),fontSize:10,fontFamily:"var(--font-mono)",fontWeight:600,letterSpacing:"0.04em",textTransform:"uppercase",whiteSpace:"nowrap"},children:[(0,n.jsx)(s.Z,{size:10}),(0,n.jsx)("span",{style:{fontWeight:700},children:a?"EXTRACTED":"MANUAL"}),(0,n.jsxs)("span",{style:{opacity:.7},children:["\xb7 ",o]}),t.pageRefs.length>0&&(0,n.jsxs)("span",{style:{opacity:.7},children:["p.",t.pageRefs[0]]})]})}
1function L(e){let{confidence:r}=e,t="high"===r?{fg:"var(--success)",bg:"color-mix(in srgb, var(--success) 10%, transparent)"}:"medium"===r?{fg:"var(--warning)",bg:"color-mix(in srgb, var(--warning) 10%, transparent)"}:{fg:"var(--text-tertiary)",bg:"var(--bg-sunken)"};return(0,n.jsx)("span",{style:{padding:"1px 6px",borderRadius:999,fontSize:9.5,background:t.bg,color:t.fg,fontFamily:"var(--font-mono)",fontWeight:600,letterSpacing:"0.04em",textTransform:"uppercase",whiteSpace:"nowrap"},children:r})}function E(e){let{row:r}=e,t=(0,o.t)(),i=(0,y.p)(),[l,u]=(0,a.useTransition)();if("system"===r.source)return r.sourceUrl?(0,n.jsx)("a",{href:r.sourceUrl,target:"_blank",rel:"noopener noreferrer",title:"Open source (UCL / NSE)",style:O,children:(0,n.jsx)(c.Z,{size:13})}):(0,n.jsx)(M,{children:"–"});let p=async()=>{var e;if(!r.sourceFileId){i.show({title:"No source PDF",body:"This row was entered manually, not extracted from a document.",tone:"info"});return}let t=await (0,b.F3)({sourceFileId:r.sourceFileId,page:null!==(e=r.pageRefs[0])&&void 0!==e?e:null});if(!t.ok){i.show({title:"Could not open source",body:t.error,tone:"error"});return}window.open(t.signedUrl,"_blank","noopener,noreferrer")};return(0,n.jsxs)("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[(0,n.jsx)("button",{onClick:p,disabled:l||!r.sourceFileId,title:r.sourceFileId?"Open source PDF".concat(r.pageRefs[0]?" at p.".concat(r.pageRefs[0]):""):"No PDF - manual entry","aria-label":"Open source",style:{...O,opacity:r.sourceFileId?1:.35,cursor:r.sourceFileId?"pointer":"not-allowed"},children:(0,n.jsx)(s.Z,{size:13})}),(0,n.jsx)("button",{onClick:()=>{r.targetId&&confirm('Remove "'.concat(k(r.metricName),'" for ').concat(r.peerName," from peer targets? It will disappear from Benchmark, Coverage and Score."))&&u(async()=>{var e;let n=await (0,b.c9)({sourceFileId:null!==(e=r.sourceFileId)&&void 0!==e?e:r.targetId,universalMetricId:r.metricId,peerId:r.peerId,reason:"manual-unsave-from-ledger"});if(!n.ok){i.show({title:"Un-save failed",body:n.error,tone:"error"});return}i.show({title:"Removed",body:n.removedTarget?"".concat(k(r.metricName)," for ").concat(r.peerName," is no longer in Benchmark"):"Row was already removed elsewhere",tone:"success"}),t.refresh()})},disabled:l||!r.targetId,title:"Un-save - remove from peer targets","aria-label":"Un-save",style:{...O,color:"var(--error)",borderColor:"color-mix(in srgb, var(--error) 25%, transparent)"},children:(0,n.jsx)(d.Z,{size:13})})]})}function T(e){let{label:r,value:t,sub:a,tone:o}=e;return(0,n.jsxs)("div",{style:{padding:14,background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)"},children:[(0,n.jsx)(v.Caps,{size:10,style:{display:"block",marginBottom:4},children:r}),(0,n.jsx)("div",{style:{fontSize:22,fontWeight:500,fontFamily:"var(--font-display)",letterSpacing:"-0.02em",lineHeight:1,marginTop:4,color:"extracted"===o?"var(--accent)":"manual"===o?"var(--cat-12)":"warning"===o?"var(--warning)":"var(--text-primary)"},children:t}),(0,n.jsx)("div",{style:{fontSize:11,color:"var(--text-tertiary)",marginTop:4},children:a})]})}function F(e){let{label:r,children:t}=e;return(0,n.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",background:"var(--bg-sunken)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-sm)"},children:[(0,n.jsx)("span",{style:{padding:"0 8px 0 10px",fontSize:9.5,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)",letterSpacing:"0.06em"},children:r}),t]})}function B(e){let{active:r,onClick:t,children:a}=e;return(0,n.jsx)("button",{onClick:t,style:{padding:"4px 9px",background:r?"var(--bg-elevated)":"transparent",color:r?"var(--accent)":"var(--text-secondary)",border:"none",borderRadius:"var(--radius-sm)",margin:2,fontSize:11,fontWeight:r?600:500,fontFamily:"var(--font-sans)",cursor:"pointer",textTransform:"capitalize"},children:a})}function A(e){let{children:r,width:t,align:a="left"}=e;return(0,n.jsx)("th",{style:{padding:"8px 14px",textAlign:a,borderBottom:"1px solid var(--border-subtle)",whiteSpace:"nowrap",width:t},children:(0,n.jsx)(v.Caps,{children:r})})}function U(e){let{children:r,align:t="left"}=e;return(0,n.jsx)("td",{style:{padding:"12px 14px",textAlign:t,verticalAlign:"middle",fontSize:12.5},children:r})}function M(e){let{children:r}=e;return(0,n.jsx)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:r})}function D(e){let{title:r,body:t}=e;return(0,n.jsxs)("div",{style:{padding:32,textAlign:"center",background:"var(--bg-elevated)",border:"1px dashed var(--border-strong)",borderRadius:"var(--radius-lg)",maxWidth:560,margin:"32px auto"},children:[(0,n.jsx)(u.Z,{size:20,style:{color:"var(--text-tertiary)",marginBottom:10}}),(0,n.jsx)("h2",{style:{fontSize:18,fontWeight:500,fontFamily:"var(--font-display)",letterSpacing:"-0.02em",marginBottom:8},children:r}),(0,n.jsx)("p",{style:{color:"var(--text-secondary)",fontSize:13,lineHeight:1.5,margin:0},children:t})]})}let O={width:28,height:28,padding:0,borderRadius:"var(--radius-sm)",background:"transparent",color:"var(--text-secondary)",border:"1px solid var(--border-subtle)",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",textDecoration:"none"};function W(e){var r,t,i,l,u,g,x;let{row:m,excluded:h,categoryWeights:f,onClose:j}=e,S=(0,y.p)(),w=(0,o.t)(),[C,R]=(0,a.useTransition)(),I=k(m.metricName),z=m.metricCategory?f[m.metricCategory]:void 0,N=async()=>{var e;if(!m.sourceFileId)return;let r=await (0,b.F3)({sourceFileId:m.sourceFileId,page:null!==(e=m.pageRefs[0])&&void 0!==e?e:null});if(!r.ok){S.show({title:"Could not open source",body:r.error,tone:"error"});return}window.open(r.signedUrl,"_blank","noopener,noreferrer")},E="extracted"===m.source?"EXTRACTED FROM PDF":"manual"===m.source?"MANUALLY ENTERED":"SYSTEM IMPORT \xb7 UCL / XBRL",T="extracted"===m.source?"LLM read ".concat("annual_report"===m.sourceKind?"this peer's annual report":"the uploaded document").concat(m.pageRefs.length>0?", page ".concat(m.pageRefs.join(", ")):""," and identified this metric."):"manual"===m.source?"A team member entered this value directly through the Targets workflow.":"Bulk-loaded from the Universal Company Library - sourced from the public X
1BRL filing on NSE.";return(0,n.jsx)("div",{onClick:j,style:{position:"fixed",inset:0,background:"var(--scrim)",display:"flex",justifyContent:"flex-end",zIndex:90},children:(0,n.jsxs)("div",{onClick:e=>e.stopPropagation(),style:{width:560,height:"100%",background:"var(--bg-elevated)",borderLeft:"1px solid var(--border-subtle)",boxShadow:"-12px 0 40px rgba(0,0,0,0.18)",display:"flex",flexDirection:"column"},children:[(0,n.jsxs)("div",{style:{padding:"16px 20px",borderBottom:"1px solid var(--border-subtle)",display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:14},children:[(0,n.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,n.jsx)(v.Caps,{size:10,children:m.peerName.toUpperCase()}),(0,n.jsx)("h3",{style:{fontSize:16,fontWeight:500,margin:"4px 0 4px",letterSpacing:"-0.01em",lineHeight:1.3},children:I}),(0,n.jsxs)("div",{style:{display:"flex",gap:10,fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:[(0,n.jsx)("span",{children:m.metricCode}),m.metricCategory&&(0,n.jsxs)("span",{children:["\xb7 ",m.metricCategory]}),m.metricOutputUnit&&(0,n.jsxs)("span",{children:["\xb7 canonical: ",m.metricOutputUnit]})]})]}),(0,n.jsx)("button",{onClick:j,style:{background:"transparent",border:"none",cursor:"pointer",padding:4,color:"var(--text-tertiary)"},children:(0,n.jsx)(p.Z,{size:16})})]}),(0,n.jsxs)("div",{style:{flex:1,overflowY:"auto",padding:"16px 20px",display:"flex",flexDirection:"column",gap:18},children:[(0,n.jsxs)("div",{style:{padding:"14px 16px",background:"var(--bg-base)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)"},children:[(0,n.jsx)(v.Caps,{size:10,style:{display:"block",marginBottom:8},children:"VALUE IN BENCHMARK"}),(0,n.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:8,flexWrap:"wrap"},children:[(0,n.jsx)("span",{style:{fontFamily:"var(--font-display)",fontSize:28,fontWeight:500,letterSpacing:"-0.02em"},children:null!=m.valueNumeric?m.valueNumeric.toLocaleString():"–"}),m.unit&&(0,n.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:m.unit}),m.periodLabel&&(0,n.jsx)(v.Caps,{size:10,children:m.periodLabel}),m.confidence&&(0,n.jsx)(L,{confidence:m.confidence})]}),m.converted&&null!=m.originalValue&&m.originalUnit&&(0,n.jsxs)("div",{style:{marginTop:6,fontSize:11.5,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:["↺ original quoted as ",(0,n.jsxs)("strong",{children:[m.originalValue.toLocaleString()," ",m.originalUnit]})," \xb7 converted to the metric's canonical unit"]}),m.overrides&&(0,n.jsxs)("div",{style:{marginTop:8,fontSize:11.5,color:"var(--warning)",padding:"6px 10px",background:"color-mix(in srgb, var(--warning) 8%, transparent)",border:"1px solid color-mix(in srgb, var(--warning) 25%, transparent)",borderRadius:"var(--radius-sm)"},children:["↑ This row overrides the system value (",null!==(i=null===(r=m.overrides.valueNumeric)||void 0===r?void 0:r.toLocaleString())&&void 0!==i?i:"–"," ",null!==(l=m.overrides.unit)&&void 0!==l?l:"",") in Benchmark."]}),m.overriddenBy&&(0,n.jsxs)("div",{style:{marginTop:8,fontSize:11.5,color:"var(--text-tertiary)",padding:"6px 10px",background:"var(--bg-sunken)",borderRadius:"var(--radius-sm)"},children:["↓ Overridden by a ",m.overriddenBy.source," row (",null!==(u=null===(t=m.overriddenBy.valueNumeric)||void 0===t?void 0:t.toLocaleString())&&void 0!==u?u:"–"," ",null!==(g=m.overriddenBy.unit)&&void 0!==g?g:"","). Benchmark shows that value, not this one."]})]}),m.verbatimQuote&&(0,n.jsxs)("div",{children:[(0,n.jsx)(v.Caps,{size:10,style:{display:"block",marginBottom:6},children:"VERBATIM FROM SOURCE"}),(0,n.jsxs)("div",{style:{padding:"12px 14px",background:"color-mix(in srgb, var(--accent) 4%, transparent)",border:"1px solid color-mix(in srgb, var(--accent) 20%, transparent)",borderRadius:"var(--radius-sm)",fontSize:12.5,lineHeight:1.55,fontStyle:"italic",color:"var(--text-primary)"},children:["“",m.verbatimQuote,"”",m.pageRefs.length>0&&(0,n.jsxs)("div",{style:{marginTop:6,fontFamily:"var(--font-mono)",fontSize:10.5,color:"var(--text-tertiary)",fontStyle:"normal"}
1,children:["Cited at page ",m.pageRefs.join(", ")]})]})]}),(0,n.jsxs)("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[m.sourceFileId&&(0,n.jsxs)("button",{onClick:N,disabled:C,style:P,children:[(0,n.jsx)(s.Z,{size:12}),"Open source PDF",m.pageRefs[0]?" \xb7 p.".concat(m.pageRefs[0]):""]}),m.sourceUrl&&(0,n.jsxs)("a",{href:m.sourceUrl,target:"_blank",rel:"noopener noreferrer",style:P,children:[(0,n.jsx)(c.Z,{size:12}),"Open source (UCL / NSE)"]}),m.targetId&&(0,n.jsxs)("button",{onClick:()=>{m.targetId&&confirm('Remove "'.concat(I,'" for ').concat(m.peerName," from peer targets? It will disappear from Benchmark, Coverage and Score."))&&R(async()=>{var e;let r=await (0,b.c9)({sourceFileId:null!==(e=m.sourceFileId)&&void 0!==e?e:m.targetId,universalMetricId:m.metricId,peerId:m.peerId,reason:"manual-unsave-from-ledger-drawer"});if(!r.ok){S.show({title:"Un-save failed",body:r.error,tone:"error"});return}S.show({title:"Removed",body:"".concat(I," for ").concat(m.peerName," is no longer in Benchmark"),tone:"success"}),w.refresh(),j()})},disabled:C,style:{...P,color:"var(--error)",borderColor:"color-mix(in srgb, var(--error) 30%, transparent)"},children:[(0,n.jsx)(d.Z,{size:12}),"Un-save from peer targets"]})]}),m.notes&&(0,n.jsxs)("div",{children:[(0,n.jsx)(v.Caps,{size:10,style:{display:"block",marginBottom:6},children:"EXTRACTION REASONING"}),(0,n.jsx)("div",{style:{fontSize:12,color:"var(--text-secondary)",lineHeight:1.55},children:m.notes})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(v.Caps,{size:10,style:{display:"block",marginBottom:8},children:"WHERE THIS VALUE GOES"}),(0,n.jsxs)("div",{style:{padding:"14px 16px",background:"var(--bg-base)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)"},children:[(0,n.jsx)(Z,{label:E,tone:"done",body:T}),(0,n.jsx)(Z,{label:"DATA LEDGER",tone:"done",here:!0,body:"Showing on this Ledger row \xb7 captured ".concat(function(e){if(!e)return"unknown date";try{let r=new Date(e);if(Number.isNaN(r.getTime()))return"unknown date";return r.toLocaleString("en-IN",{dateStyle:"medium",timeStyle:"short"})}catch(e){return"unknown date"}}(m.capturedAt),".")}),(0,n.jsx)(Z,{label:"COVERAGE",tone:null!=m.valueNumeric?"done":"inactive",body:null!=m.valueNumeric?"Marks ".concat(m.peerName," \xd7 this metric as covered in the Peer Coverage grid."):"No numeric value - does not contribute to coverage."}),(0,n.jsx)(Z,{label:"BENCHMARK",tone:null!=m.overriddenBy?"inactive":null!=m.valueNumeric?"done":"inactive",body:null!=m.overriddenBy?"Benchmark uses a higher-precedence row (".concat(m.overriddenBy.source,"); this row is hidden in the chart."):null!=m.valueNumeric?"Used as ".concat(m.peerName,"'s value when the Benchmark tab plots this metric against your workspace + other peers."):"No numeric value - does not show on the chart."}),(0,n.jsx)(Z,{label:"SCORE & INSIGHTS",tone:h?"excluded":null!=m.overriddenBy?"inactive":null!=m.valueNumeric?"done":"inactive",body:h?"Excluded from scoring on the Coverage tab. Re-include the metric to count it.":null!=m.overriddenBy?"Score uses the overriding row, not this one.":null!=m.valueNumeric?"Counts toward the ".concat(null!==(x=m.metricCategory)&&void 0!==x?x:"composite"," category score").concat(null!=z?" (weight ".concat(z,"%)"):"",". Visible in the Score and Insights tabs."):"No numeric value - not counted in score.",last:!0})]})]})]})]})})}function Z(e){let{label:r,tone:t,body:a,here:o,last:i}=e,l="done"===t?{fg:"var(--success)",bg:"color-mix(in srgb, var(--success) 10%, transparent)",Icon:g.Z}:"excluded"===t?{fg:"var(--error)",bg:"color-mix(in srgb, var(--error) 10%, transparent)",Icon:x.Z}:{fg:"var(--text-tertiary)",bg:"var(--bg-sunken)",Icon:m.Z},s=l.Icon;return(0,n.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"22px 1fr",columnGap:12,marginBottom:i?0:8},children:[(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,n.jsx)("div",{style:{width:22,height:22,borderRadius:"50%",background:l.bg,color:l.fg,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid ".concat(l.fg)},children:(0,n.jsx)(s,{size:12})}),!i&&(0,n.jsx)("div",{style:{flex:1,width:1,background:"var(--border-subtle)",marginTop:2,marginBottom:2}})]}),(0,n.jsxs)("div",{style:{paddingBottom:i?0:10},children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6}
1,children:[(0,n.jsx)(v.Caps,{size:10,children:r}),o&&(0,n.jsx)("span",{style:{padding:"1px 6px",borderRadius:999,background:"color-mix(in srgb, var(--accent) 12%, transparent)",color:"var(--accent)",fontSize:9,fontFamily:"var(--font-mono)",fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase"},children:"YOU ARE HERE"})]}),(0,n.jsx)("div",{style:{fontSize:12,color:"var(--text-secondary)",lineHeight:1.5,marginTop:3},children:a})]})]})}let P={padding:"7px 12px",borderRadius:"var(--radius-sm)",fontSize:12,background:"transparent",color:"var(--text-secondary)",border:"1px solid var(--border-subtle)",cursor:"pointer",display:"inline-flex",alignItems:"center",gap:6,textDecoration:"none",fontFamily:"var(--font-sans)"}},88015:function(e,r,t){t.d(r,{F3:function(){return a},Ic:function(){return o},J_:function(){return c},aZ:function(){return l},c9:function(){return s},g1:function(){return d},sI:function(){return i}}),t(83079);var n=t(12119),a=(0,n.$)("0ad751d73fbee4e732b8cf2955b98610d5b1ac57"),o=(0,n.$)("acbc821bf37618574689e9c2f132ed455872951f"),i=(0,n.$)("aa6192c00bd7244f908cc0b8452651eda531df3d"),l=(0,n.$)("c17a9b95758b4b4135901135019e56f88692cea2"),s=(0,n.$)("10fd33e016d8cdbf645f769258df4da7060770f5"),c=(0,n.$)("97a0e1cab45d6a82b40471b5f3bbec6f2c1130e4"),d=(0,n.$)("b65e33097ef680735797532547538800eb2c7219")}}]);

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.