PageSourceSearch

https://concall-alpha.vercel.app/_next/static/chunks/8704-568e5fdf197781ef.js

js concall-alpha.vercel.app collected 2026-10-03 06:34:44 UTC 48,125 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8704],{39293:(e,t,r)=>{r.d(t,{Qk:()=>n,WL:()=>l});let l=3;function n(e,t){if(t<l)return"not_enough_data";let r=e/t;return r>=.9?"reliable":r>=.75?"mixed":r>=.5?"erratic":"weak"}},48509:(e,t,r)=>{r.d(t,{Zq:()=>a});var l=r(25016);let n={emerald:"border-emerald-200/80 bg-emerald-100 text-emerald-800 dark:border-emerald-700/40 dark:bg-emerald-900/30 dark:text-emerald-200",sky:"border-sky-200/80 bg-sky-100 text-sky-800 dark:border-sky-700/40 dark:bg-sky-900/30 dark:text-sky-200",amber:"border-amber-200/80 bg-amber-100 text-amber-800 dark:border-amber-700/40 dark:bg-amber-900/30 dark:text-amber-200",rose:"border-rose-200/80 bg-rose-100 text-rose-800 dark:border-rose-700/40 dark:bg-rose-900/30 dark:text-rose-200",violet:"border-violet-200/80 bg-violet-100 text-violet-800 dark:border-violet-700/40 dark:bg-violet-900/30 dark:text-violet-200",slate:"border-border/60 bg-muted/60 text-foreground"},a=e=>(0,l.cn)("inline-flex items-center rounded-full border px-2.5 py-1 text-[11px] font-medium leading-none",n[e])},90908:(e,t,r)=>{r.r(t),r.d(t,{Drawer:()=>s,DrawerClose:()=>d,DrawerContent:()=>u,DrawerDescription:()=>p,DrawerFooter:()=>x,DrawerHeader:()=>m,DrawerOverlay:()=>c,DrawerPortal:()=>o,DrawerTitle:()=>h,DrawerTrigger:()=>i});var l=r(95155);r(12115);var n=r(6254),a=r(25016);function s(e){let{...t}=e;return(0,l.jsx)(n._s.Root,{"data-slot":"drawer",...t})}function i(e){let{...t}=e;return(0,l.jsx)(n._s.Trigger,{"data-slot":"drawer-trigger",...t})}function o(e){let{...t}=e;return(0,l.jsx)(n._s.Portal,{"data-slot":"drawer-portal",...t})}function d(e){let{...t}=e;return(0,l.jsx)(n._s.Close,{"data-slot":"drawer-close",...t})}function c(e){let{className:t,...r}=e;return(0,l.jsx)(n._s.Overlay,{"data-slot":"drawer-overlay",className:(0,a.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...r})}function u(e){let{className:t,children:r,...s}=e;return(0,l.jsxs)(o,{"data-slot":"drawer-portal",children:[(0,l.jsx)(c,{}),(0,l.jsxs)(n._s.Content,{"data-slot":"drawer-content",className:(0,a.cn)("group/drawer-content bg-background fixed z-50 flex h-auto flex-col","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-[92%] data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:w-3/4 data-[vaul-drawer-direction=right]:sm:max-w-lg","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-[92%] data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:w-3/4 data-[vaul-drawer-direction=left]:sm:max-w-lg",t),...s,children:[(0,l.jsx)("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),r]})]})}function m(e){let{className:t,...r}=e;return(0,l.jsx)("div",{"data-slot":"drawer-header",className:(0,a.cn)("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",t),...r})}function x(e){let{className:t,...r}=e;return(0,l.jsx)("div",{"data-slot":"drawer-footer",className:(0,a.cn)("mt-auto flex flex-col gap-2 p-4 pb-[max(1rem,env(safe-area-inset-bottom))]",t),...r})}function h(e){let{className:t,...r}=e;return(0,l.jsx)(n._s.Title,{"data-slot":"drawer-title",className:(0,a.cn)("text-foreground font-semibold",t),...r})}function p(e){let{className:t,...r}=e;return(0,l.jsx)(n._s.Description,{"data-slot":"drawer-description",className:(0,a.cn)("text-muted-foreground text-sm",t),...r})}},98704:(e,t,r)=>{r.r(t),r.d(t,{GuidanceHistorySection:()=>eO,STATUS_TO_BUCKET:()=>C,SelectableRow:()=>eF,bucketOf:()=>F});var l=r(95155),n=r(12115),a=r(54485),s=r(24033),i=r(97003),o=r(90908),d=r
1(25016);let c=e=>"FY".concat(String(e>=2e3?e-2e3:e).padStart(2,"0")),u=e=>{if(!e)return null;let t=e.match(/FY\s*'?\s*(\d{2,4})/i);if(!t)return null;let r=t[1],l=parseInt(r,10);return Number.isFinite(l)?r.length<=2?2e3+l:l:null},m=e=>{if(!e)return null;let t=e.match(/^\s*Q\s*([1-4])\s*FY\s*'?\s*(\d{2,4})\s*$/i);if(t){let e=parseInt(t[1],10),r=t[2],l=parseInt(r,10);return Number.isFinite(l)?{fy:r.length<=2?2e3+l:l,qtr:e}:null}let r=e.match(/^\s*H\s*([12])\s*FY\s*'?\s*(\d{2,4})\s*$/i);if(r){let e=r[2],t=parseInt(e,10);return Number.isFinite(t)?{fy:e.length<=2?2e3+t:t,qtr:"1"===r[1]?2:4}:null}return null},x=[/not explicitly (quantified|stated)/i,/no firm.*commit/i,/no specific.*guidance/i,/operational leverage mentioned/i,/management indicated/i,/\bcan be\b/i,/\bcould be\b/i,/\bis expected to\b/i,/\bare expected to\b/i,/\bwill likely be\b/i,/\bmay be\b/i,/\bsubject to/i],h=e=>!!e&&x.some(t=>t.test(e)),p=e=>{var t,r;if(!e)return null;let l=[...e.matchAll(/(\d+(?:,\d+)*(?:\.\d+)?)(?:\s*(?:to|-|–)\s*(\d+(?:,\d+)*(?:\.\d+)?))?(?:[^\d\n]{0,15}?)(crore|cr\b|bn\b|billion|mn\b|million)/gi)];if(0===l.length)return null;let n=l[l.length-1],a=n[1].replace(/,/g,""),s=null==(t=n[2])?void 0:t.replace(/,/g,""),i=n[3].toLowerCase(),o=i.startsWith("cr")?"cr":/bn|billion/.test(i)?"B":"M",d=/(INR|Rs\.?|₹)/i.test(e)?"₹":/\$|USD|dollar/i.test(e)?"$":"cr"===o?"₹":"$",c=null!=(r=n.index)?r:0,u=c+n[0].length,m=e.slice(Math.max(0,c-12),Math.min(e.length,u+12)),x=/\+|\bplus\b|\bover\b|\babove\b|\bsurpass|\bcross/i.test(m);return s?"".concat(d).concat(a,"-").concat(s).concat(o):"".concat(d).concat(a).concat(o).concat(x?"+":"")},b=e=>{if(!e)return null;let t=e.match(/(\d+(?:\.\d+)?)\s*(?:%\s*)?(?:to|-|–|—)\s*(\d+(?:\.\d+)?)\s*%/i);if(!t)return null;let r=parseFloat(t[1]),l=parseFloat(t[2]);return Number.isFinite(r)&&Number.isFinite(l)&&!(l<=r)?"".concat(t[1],"-").concat(t[2],"%"):null},g=e=>Math.round(10*e)/10,f=e=>{let t=g(e);return Number.isInteger(t)?t.toFixed(0):t.toFixed(1)},v=e=>{var t;if("absolute"===e.valueKind)return null;let r=("percent"===e.valueKind||"percent_level"===e.valueKind)&&null!=(t=e.numericValue)?t:e.valuePercent,l=b(e.valueText);return((e,t)=>{if(!e)return!1;if(null==t)return!0;let r=e.match(/^(\d+(?:\.\d+)?)-(\d+(?:\.\d+)?)%$/);if(!r)return!1;let l=parseFloat(r[1]),n=parseFloat(r[2]);return t>=l-.01&&t<=n+.01})(l,r)?l:"number"==typeof r&&Number.isFinite(r)?"".concat(f(r),"%"):null},y=e=>{if("percent"===e.valueKind||"percent_level"===e.valueKind)return null;if("absolute"===e.valueKind&&"number"==typeof e.numericValue&&Number.isFinite(e.numericValue)){let t=p(e.valueText);if(t)return t;let{symbol:r,suffix:l}=(e=>{if(!e)return{symbol:"",suffix:""};let t=e.toLowerCase();return"inrcr"===t?{symbol:"₹",suffix:" cr"}:"inrlakh"===t||"inrlakhs"===t?{symbol:"₹",suffix:" L"}:"inr"===t?{symbol:"₹",suffix:""}:"usdmn"===t||"usdm"===t?{symbol:"$",suffix:"M"}:"usdbn"===t||"usdb"===t?{symbol:"$",suffix:"B"}:"usd"===t?{symbol:"$",suffix:""}:"bps"===t?{symbol:"",suffix:" bps"}:{symbol:"",suffix:" ".concat(e)}})(e.unit);return"".concat(r).concat(f(e.numericValue)).concat(l)}return!e.valueText||h(e.valueText)?null:p(e.valueText)},j=/(\d+(?:,\d+)*(?:\.\d+)?)(?:\s*(?:to|-|–)\s*(\d+(?:,\d+)*(?:\.\d+)?))?(?:[^\d\n]{0,15}?)(crore|cr\b|bn\b|billion|mn\b|million)/gi,w=e=>{let t=e.toLowerCase();return t.startsWith("cr")?"cr":/bn|billion/.test(t)?"B":"M"},N=e=>{if("percent"===e.valueKind||"percent_level"===e.valueKind||null==e.valueKind&&null!=e.valuePercent){var t;let r=null!=(t=e.numericValue)?t:e.valuePercent,l=b(e.valueText),n=null==l?void 0:l.match(/^(\d+(?:\.\d+)?)-(\d+(?:\.\d+)?)%$/);if(n){let e=parseFloat(n[1]),t=parseFloat(n[2]);if(Number.isFinite(e)&&Number.isFinite(t)&&t>e&&(null==r||r>=e-.01&&r<=t+.01))return{kind:"percent",lo:e,hi:t,unitKey:"pct"}}return"number"==typeof r&&Number.isFinite(r)?{kind:"percent",lo:r,hi:r,unitKey:"pct"}:null}if("absolute"===e.valueKind&&"number"==typeof e.numericValue&&Number.isFinite(e.numericValue)){let t=(e=>{let t=null==e?void 0:e.toLowerCase();return t?"inrcr"===t?"cr":"usdmn"===t||"usdm"===t?"M":"usdbn"===t||"usdb"===t?"B":t:null})(e.unit);if(!t)return null;let r=e.valueText?[...e.valueText.matchAll(j)]:[],l=r[r.length-1];if(l&&l[2]){let e=parseFloat(l[1].replace(/,/g,"")),r=parseFloat(l[2].replace(/,/g,""));if(Number.isFinite(e)&&Number.isFinite(r)&&r>e&&w(l[3])===t)return{kind:"absolute",lo:e,hi:r,unitKey:t}}return{kind:"absolute",lo:e.numericValue,hi:e.numericValue,unitKey:t}}if(e.valueText&&!h(e.valueText)){let t=[...e.valueText.matchAll(j)],r=t[t.length-1];if(r){let e=parseFloat(r[1].replace(/,/g,"")),t=r[2]?parseFloat(r[2].replace(/,/g,"")):e;if(Number.isFinite(e)&&Number.isFinite(t))return{kind:"absolute",lo:Math.min(e,t),hi:Math.max(e,t),unitKey:w(r[3])}}}return null},k=(e,t)=>e?_(e)&&t&&/^\d/.test(e)?"+".concat(e):e:null,_=e=>/%$/.test(e);var L=r(39293);let T={reliable:"Reliable",mixed:"Mixed",erratic:"Erratic",weak:"Weak",not_enough_data:"Not enough data",high_trust:"High trust",credible:"Credible",low_trust:"Low trust",not_assessable:"Not assessable"},S=new Set(["high_trust","credible","mixed","low_trust","not_assessable"]),C={met:"delivered",active:"on_track",revised:"revised",delayed:"revised",missed:"missed",dropped:"missed",not_yet_clear:"too_early",unknown:"too_early"},F=e=>{var t;return null!=(t=C[e.statusKey])?t:"too_early"},K=e=>{var t,r;let l=m(e.appliesTo),n=null!=(t=null==l?void 0:l.fy)?t:u(e.appliesTo);return null==n?null:4*n+(null!=(r=null==l?void 0:l.qtr)?r:4)},q=e=>"unspecified"===e.horizonType||"rolling"===e.horizonType||null!=e.appliesTo&&"ongoing"===e.appliesTo.toLowerCase(),M=(e,t)=>{let r=((e,t)=>{if(q(e))return"ahead";let r=K(e);return null==r?"unknown":r<=4*t.fy+t.qtr?"elapsed":"ahead"})(e,t);switch(e.statusKey){case"met":return{phase:"resolved",outcome:"met"};case"missed":return{phase:"resolved",outcome:"missed"};case"dropped":return{phase:"resolved",outcome:"dropped"};case"delayed":return{phase:"resolved",outcome:"delayed"};case"revised":return"ahead"===r?{phase:"live",state:"revised"}:{phase:"resolved",outcome:"revised"};case"active":return"elapsed"===r?{phase:"resolved",outcome:"unclear"}:{phase:"live",state:"on_track"};default:return"elapsed"===r?{phase:"resolved",outcome:"unclear"}:{phase:"live",state:"no_update"}}},z=new Set(["met","missed","dropped","revised","delayed"]),D=e=>"growth"===e.guidanceFamily&&"percent_level"!==e.valueKind&&"absolute"!==e.valueKind,R=e=>{var t;return(null!=(t=e.mentionType)?t:"").toLowerCase().replace(/\s+/g,"_")},P=e=>{var t;return null!=(t=y(e))?t:v(e)}
1,H=e=>{if(!e)return null;let t=m(e);if(t)return 4*t.fy+t.qtr;let r=u(e);return null==r?null:4*r+4},$=e=>({label:k((e=>{var t;let r=null!=(t=y(e))?t:v(e);return r||(!e.valueText||h(e.valueText)?null:function(e){let t=e.trim();return t?t.length>24?null:t:null}(e.valueText))})(e),D(e)),numeric:N(e)}),A=e=>{let t=[];for(let r of e.trail){let e=P(r);if(!e)continue;let l=t[t.length-1];if(l&&l.label===e)continue;let n=N(r),a=null;if((null==l?void 0:l.numeric)&&n&&l.numeric.kind===n.kind&&l.numeric.unitKey===n.unitKey){let e=(l.numeric.lo+l.numeric.hi)/2,t=(n.lo+n.hi)/2;a=t>e?"up":t<e?"down":null}t.push({quarter:r.quarter,label:e,direction:a,numeric:n})}let r=P(e),l=t[t.length-1],n=l?H(l.quarter):null,a=H(e.latestMentionPeriod);if(r&&l&&l.label!==r&&!(null==n||null==a||n>=a)){let n=N(e),a=null;if(l.numeric&&n&&l.numeric.kind===n.kind&&l.numeric.unitKey===n.unitKey){let e=(l.numeric.lo+l.numeric.hi)/2,t=(n.lo+n.hi)/2;a=t>e?"up":t<e?"down":null}t.push({quarter:e.latestMentionPeriod,label:r,direction:a,numeric:n})}return t.map(e=>{let{quarter:t,label:r,direction:l}=e;return{quarter:t,label:r,direction:l}})},B=e=>{let t;if(e.metricLabel){var r;t=e.segment?"".concat(e.segment," ").concat(null!=(r=e.metricLabelMidSentence)?r:e.metricLabel):e.metricLabel}else t=e.guidanceText.length>60?"".concat(e.guidanceText.slice(0,58).trimEnd(),"…"):e.guidanceText;return t.charAt(0).toUpperCase()+t.slice(1)},V=e=>{let t=B(e);return e.horizonLabel?"".concat(t," (").concat(e.horizonLabel,")"):t},W=e=>{var t;return null!=(t=e.latestView)?t:e.statusReason},E=(e,t)=>{var r,l;let n=$(e),a=(e=>{var t,r,l;let n=(e=>{for(let t=e.trail.length-1;t>=0;t-=1){let r=R(e.trail[t]);if("met"===r||"missed"===r)return e.trail[t]}return null})(e);if(!n)return null;let a=N(e);if((null==a?void 0:a.kind)==="absolute"){let e=y(n);if(!e)return null;let t=N({...n,valueKind:"absolute"});return{label:e,numeric:(null==t?void 0:t.kind)==="absolute"?t:null}}if((null==a?void 0:a.kind)==="percent"){let r=v(n);if(!r)return null;let l=N({...n,valueKind:"percent_level"===e.valueKind?"percent_level":"percent"});return{label:null!=(t=k(r,D(e)))?t:r,numeric:(null==l?void 0:l.kind)==="percent"?l:null}}let s=null!=(r=v(n))?r:y(n);return s?{label:null!=(l=k(s,"growth"===e.guidanceFamily))?l:s,numeric:null}:null})(e);return{item:e,outcome:t,guidedLabel:n.label,deliveredLabel:null!=(r=null==a?void 0:a.label)?r:null,delta:((e,t)=>{if(!e||!t||e.kind!==t.kind||e.unitKey!==t.unitKey)return null;let r=t.lo===t.hi?t.lo:(t.lo+t.hi)/2;if(e.hi>e.lo)return r>e.hi?{label:"beat",sign:1}:r>=e.lo?{label:"in range",sign:0}:"percent"===e.kind?{label:"".concat(f(r-e.lo)," pts"),sign:-1}:0===e.lo?null:{label:"".concat(f((r-e.lo)/e.lo*100),"%"),sign:-1};let l=e.lo;if("percent"===e.kind){let e=g(r-l);return 0===e?{label:"on the number",sign:0}:{label:"".concat(e>0?"+":"").concat(f(e)," pts"),sign:e>0?1:-1}}if(0===l)return null;let n=g((r-l)/l*100);return 0===n?{label:"on the number",sign:0}:{label:"".concat(n>0?"+":"").concat(f(n),"%"),sign:n>0?1:-1}})(n.numeric,null!=(l=null==a?void 0:a.numeric)?l:null),note:W(e)}},O=(e,t)=>{var r,l,n;let a=A(e),s=a.length>=2,i=null!=(l=null==(r=a.at(-1))?void 0:r.label)?l:null;return{item:e,state:t,guidedLabel:i?null!=(n=k(i,D(e)))?n:i:$(e).label,heldSince:(e=>{if(0===e.trail.length)return null;let t=P(e),r=null;for(let l=e.trail.length-1;l>=0;l-=1){let n=e.trail[l],a=P(n);if(a&&t&&a!==t)break;n.quarter&&(r=n.quarter);let s=R(n);if("first_mention"===s||"revision"===s)break}return r})(e),trail:s?a:[],direction:s?(e=>{let t=A(e);for(let e=t.length-1;e>=0;e-=1)if(t[e].direction)return t[e].direction;return null})(e):null,note:W(e)}},U=["zero","one","two","three","four","five","six","seven","eight","nine","ten"],Y=e=>e>=0&&e<=10?U[e]:String(e),Z=e=>e.charAt(0).toUpperCase()+e.slice(1),I=(e,t,r)=>1===e?t:r,Q=e=>e.length<=1?e.join(""):2===e.length?"".concat(e[0]," and ").concat(e[1]):"".concat(e.slice(0,-1).join(", "),", and ").concat(e[e.length-1]),G={missed:0,dropped:1,delayed:2,revised:3,met:4,unclear:5},J=new Set(["consolidated","overall","total","company","group","standalone"]),X={revenue:1,ebitda:2,pat:3,ebitda_margin:11,gross_margin:12,pat_margin:13,nim:21,revenue_yield:22},ee={growth:0,margin:10,yield:20},et=e=>{if(q(e))return null;let t=K(e);return null==t?null:Math.floor((t-1)/4)},er=e=>{if(0===e.length)return null;let t=et(e[0].item);return null!=t&&e.every(e=>et(e.item)===t)?c(t):null},el=e=>{if("up"===e.direction)return"raised";if("down"===e.direction)return"lowered";switch(e.state){case"on_track":return"held";case"delayed":return"pushed_out";case"no_update":return"no_update";case"revised":return"revised"}},en=e=>{var t,r;return null!=(r=null!=(t=H(e.latestMentionPeriod))?t:q(e)?null:K(e))?r:-1/0},ea=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=4*t.fy+4,n=[],a=[],s=[];for(let t of e){let e=q(t.item)?null:K(t.item);null==e?s.push(t):e<=l?n.push(t):a.push(t)}let i=e=>({rows:e,evidence:((e,t)=>
1{let r={orderBacked:0,asserted:0,aspiration:0,classed:0};for(let l of e){let e=t[l.item.guidanceKey];e&&(r.classed+=1,"order_backed"===e?r.orderBacked+=1:"asserted"===e?r.asserted+=1:r.aspiration+=1)}return r})(e,r)});return{thisYear:i(n),longTerm:i(a),ongoing:i(s),thisYearLabel:c(t.fy),longTermLabel:ei(t.fy+1,a)}},es=e=>Math.floor((e-1)/4),ei=(e,t)=>{let r=e;for(let e of t){let t=K(e.item);null!=t&&(r=Math.max(r,es(t)))}return r>e?"".concat(c(e),"–").concat(c(r)):c(e)};var eo=r(48509);let ed={reliable:"emerald",mixed:"sky",erratic:"amber",weak:"rose",not_enough_data:"slate",high_trust:"emerald",credible:"sky",low_trust:"rose",not_assessable:"slate"};var ec=r(70496);let eu="text-[10px] font-semibold uppercase tracking-[0.16em] text-muted-foreground",em="font-mono text-[11px] tabular-nums text-muted-foreground",ex="inline-flex items-center rounded-full border border-border/60 bg-background/80 px-2.5 py-1 text-[10px] font-medium text-muted-foreground",eh={emerald:{shell:"border-emerald-500/35 bg-emerald-500/[0.06] dark:bg-emerald-500/[0.07]",eyebrow:"text-emerald-700 dark:text-emerald-300"},sky:{shell:"border-sky-500/35 bg-sky-500/[0.06] dark:bg-sky-500/[0.07]",eyebrow:"text-sky-700 dark:text-sky-300"},amber:{shell:"border-amber-500/35 bg-amber-500/[0.06] dark:bg-amber-500/[0.07]",eyebrow:"text-amber-700 dark:text-amber-300"},rose:{shell:"border-rose-500/35 bg-rose-500/[0.06] dark:bg-rose-500/[0.07]",eyebrow:"text-rose-700 dark:text-rose-300"},slate:{shell:"border-border/35 bg-background/75",eyebrow:"text-muted-foreground"}},ep=Object.fromEntries(Object.keys(ed).map(e=>[e,eh[ed[e]]])),eb={met:{label:"Met",tone:"emerald",bar:"bg-emerald-500",ink:"text-emerald-700 dark:text-emerald-300"},missed:{label:"Missed",tone:"rose",bar:"bg-rose-500",ink:"text-rose-700 dark:text-rose-300"},dropped:{label:"Dropped",tone:"rose",bar:"bg-rose-500",ink:"text-rose-700 dark:text-rose-300"},revised:{label:"Revised",tone:"amber",bar:"bg-amber-500",ink:"text-amber-700 dark:text-amber-300"},delayed:{label:"Delayed",tone:"amber",bar:"bg-amber-500",ink:"text-amber-700 dark:text-amber-300"},unclear:{label:"Unclear",tone:"slate",bar:"bg-muted",ink:"text-muted-foreground"}},eg={held:{label:"Held",tone:"sky",glyph:"●"},raised:{label:"Raised",tone:"emerald",glyph:"▲"},lowered:{label:"Lowered",tone:"rose",glyph:"▼"},revised:{label:"Revised",tone:"amber",glyph:"↻"},pushed_out:{label:"Pushed out",tone:"amber",glyph:"↻"},no_update:{label:"No update",tone:"slate",glyph:"○"}},ef={met:"emerald",missed:"rose",dropped:"rose",revised:"amber",delayed:"amber",active:"sky",not_yet_clear:"slate",unknown:"slate"},ev={ambitious:{label:"Ambitious",tone:"amber"},measured:{label:"Measured",tone:"sky"},conservative:{label:"Conservative",tone:"slate"}},ey={well_evidenced:{label:"Well evidenced",tone:"emerald"},partly_evidenced:{label:"Partly evidenced",tone:"amber"},thinly_evidenced:{label:"Thinly evidenced",tone:"rose"}};function ej(e){var t;let{eyebrow:r,ambitionLabel:n,evidenceLabel:a,headline:s,supportingLine:i,visionLabel:o}=e,c=ev[n],u=ey[a],m=null!=(t=eh[c.tone])?t:eh.slate;return(0,l.jsxs)("div",{className:(0,d.cn)("flex h-full flex-col rounded-xl border p-4 shadow-md shadow-black/20 sm:p-5",m.shell),children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,l.jsx)("p",{className:(0,d.cn)(eu,m.eyebrow),children:r}),(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[o?(0,l.jsx)("span",{className:ex,children:o}):null,(0,l.jsx)("span",{className:(0,eo.Zq)(c.tone),children:c.label}),(0,l.jsx)("span",{className:(0,eo.Zq)(u.tone),children:u.label})]})]}),(0,l.jsx)("p",{className:"mt-2 text-xl font-bold leading-tight text-foreground sm:text-[22px]",children:s}),(0,l.jsx)("p",{className:"mt-2 max-w-2xl text-[13px] leading-relaxed text-foreground/80",children:i})]})}function ew(e){let{forwardStrength:t}=e;return(0,l.jsx)(ej,{eyebrow:"How strong is the guidance right now?",ambitionLabel:t.ambition.label,evidenceLabel:t.evidence.label,headline:t.headline,supportingLine:t.supportingLine})}function eN(e){let{horizons:t}=e,{thisYear:r,longTerm:n}=t,a=(e,t)=>(0,l.jsx)(ej,{eyebrow:"".concat(t," \xb7 ").concat(e.horizonLabel),ambitionLabel:e.ambition.label,evidenceLabel:e.evidence.label,headline:e.headline,supportingLine:e.supportingLine,visionLabel:e.visionLabel});return(0,l.jsxs)("div",{className:(0,d.cn)("grid gap-3 lg:items-stretch",r&&n?"lg:grid-cols-2":null),children:[r?a(r,"How strong is this year's guidance?"):null,n?a(n,"How strong is the long-term guidance?"):null]})}function ek(e){let{verdict:t,eyebrow:r}=e,n=ep[t.tier];return(0,l.jsxs)("div",{className:(0,d.cn)("rounded-xl border p-4 shadow-md shadow-black/20 sm:p-5",n.shell),children:[(0,l.jsx)("p",{className:(0,d.cn)(eu,n.eyebrow),children:null!=r?r:"Do they keep their word?"}),(0,l.jsx)("p",{className:"mt-2 text-xl font-bold leading-tight text-foreground sm:text-[22px]",children:t.headline}),(0,l.jsx)("p",{className:"mt-2 max-w-2xl text-[13px] leading-relaxed text-foreground
1/80",children:t.summary})]})}function e_(e){let{verdict:t}=e,r=t.countedCount>=L.WL,n=r?Math.round(t.metCount/t.countedCount*100):null;return(0,l.jsxs)("div",{className:(0,d.cn)(ec.$H,"flex flex-col p-4 sm:p-5"),children:[(0,l.jsx)("p",{className:eu,children:"Resolved track record"}),t.countedCount>0?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"mt-2 flex flex-wrap items-baseline gap-x-2 gap-y-0",children:[(0,l.jsxs)("span",{className:"text-[28px] font-black leading-none tracking-[-0.02em] text-foreground",children:[t.metCount,"/",t.countedCount]}),(0,l.jsxs)("span",{className:em,children:["met",null!=n?" \xb7 ".concat(n,"%"):""]})]}),r?(0,l.jsx)("div",{className:"mt-3 flex gap-[3px]","aria-hidden":!0,children:t.bars.map((e,t)=>(0,l.jsx)("span",{className:(0,d.cn)("h-1.5 flex-1 rounded-sm",eb[e].bar)},t))}):null]}):(0,l.jsx)("p",{className:"mt-2 text-[13px] leading-snug text-foreground/80",children:"Nothing has resolved yet."}),t.unclearCount>0?(0,l.jsxs)("p",{className:"mt-2 text-[11px] leading-snug text-muted-foreground",children:["+",t.unclearCount," past ",1===t.unclearCount?"commitment":"commitments"," with no clear outcome in the filings, not graded."]}):null,t.liveNote?(0,l.jsx)("p",{className:"mt-3 text-[12px] leading-snug text-muted-foreground",children:t.liveNote}):null]})}let eL=e=>{let t=e.segment;return t?t.charAt(0).toUpperCase()+t.slice(1):"Consolidated"};function eT(e){let{item:t}=e;return(0,l.jsx)("span",{className:ex,children:eL(t)})}function eS(e){let{count:t}=e;return(0,l.jsxs)("span",{className:"inline-flex items-center gap-1 text-[10px] text-muted-foreground/80",children:[(0,l.jsx)(a.A,{className:"size-3"}),t]})}function eC(e){let{row:t}=e;if(t.trail.length<2)return null;let r=t.trail.length-1;return(0,l.jsxs)("div",{className:"mt-2.5 flex flex-wrap items-center gap-x-2 gap-y-1.5",children:[(0,l.jsx)("span",{className:(0,d.cn)(eu,"mr-1"),children:"Trail"}),t.trail.map((e,t)=>{var a;let s=t===r,i="down"===e.direction?"▼":"up"===e.direction?"▲":null;return(0,l.jsxs)(n.Fragment,{children:[t>0?(0,l.jsx)("span",{"aria-hidden":!0,className:"h-px w-4 bg-border/70"}):null,(0,l.jsxs)("span",{className:(0,d.cn)("inline-flex items-center gap-1.5 rounded-md border px-2 py-0.5 font-mono text-[11px] tabular-nums",s&&"down"===e.direction?"border-amber-500/40 bg-amber-500/10 text-amber-800 dark:text-amber-200":s&&"up"===e.direction?"border-emerald-500/40 bg-emerald-500/10 text-emerald-800 dark:text-emerald-200":"border-border/60 bg-background/70 text-foreground/80"),children:[e.quarter?(0,l.jsxs)("span",{className:"text-muted-foreground",children:[e.quarter," \xb7"]}):null,e.label,s&&i?(0,l.jsx)("span",{"aria-hidden":!0,children:i}):null]})]},"".concat(null!=(a=e.quarter)?a:"q","-").concat(t))})]})}function eF(e){let{onSelect:t,className:r,children:n}=e;return(0,l.jsx)("li",{role:"button",tabIndex:0,onClick:t,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),e.currentTarget.click())},"data-drawer-type":"guidance-thread",className:(0,d.cn)("cursor-pointer outline-none focus-visible:bg-muted/30 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/60",r),children:n})}function eK(e){let{row:t,onSelect:r}=e,n=eg[el(t)],{item:a}=t;return(0,l.jsxs)(eF,{onSelect:()=>r(a),className:"px-4 py-3.5 transition-colors hover:bg-muted/30",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2 md:flex-row md:items-start md:justify-between md:gap-4",children:[(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsx)("p",{className:"text-[13px] font-semibold leading-snug text-foreground",children:a.guidanceText}),t.note||t.heldSince?(0,l.jsxs)("p",{className:"mt-1 text-[12px] leading-snug text-muted-foreground",children:[t.note,t.heldSince?(0,l.jsxs)(l.Fragment,{children:[t.note?" ":null,(0,l.jsxs)("span",{className:em,children:["Held since ",t.heldSince,"."]})]}):null]}):null]}),(0,l.jsxs)("div",{className:"flex shrink-0 flex-wrap items-center gap-2 md:justify-end",children:[(0,l.jsx)(eT,{item:a}),a.horizonLabel?(0,l.jsx)("span",{className:em,children:a.horizonLabel}):null,(0,l.jsxs)("span",{className:(0,eo.Zq)(n.tone),children:[(0,l.jsx)("span",{"aria-hidden":!0,
1className:"mr-1",children:n.glyph}),n.label]}),(0,l.jsx)(eS,{count:a.trail.length})]})]}),(0,l.jsx)(eC,{row:t})]})}function eq(e){let{row:t,rank:r,onSelect:n}=e,a=eg[el(t)],{item:s}=t,i=!!(s.segment&&s.metricLabel);return(0,l.jsxs)(eF,{onSelect:()=>n(s),className:(0,d.cn)(ec.K,"flex list-none flex-col p-4 transition-colors hover:bg-muted/20"),children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,l.jsx)("span",{className:em,children:String(r).padStart(2,"0")}),(0,l.jsxs)("span",{className:(0,eo.Zq)(a.tone),children:[(0,l.jsx)("span",{"aria-hidden":!0,className:"mr-1",children:a.glyph}),a.label]})]}),(0,l.jsx)("p",{className:"mt-2 text-[14px] font-semibold leading-snug text-foreground",children:B(s)}),(0,l.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-1.5",children:[i?null:(0,l.jsx)(eT,{item:s}),s.horizonLabel?(0,l.jsx)("span",{className:ex,children:s.horizonLabel}):null]}),t.note?(0,l.jsx)("p",{className:"mt-2.5 line-clamp-4 text-[12px] leading-relaxed text-muted-foreground",children:t.note}):null,(0,l.jsxs)("div",{className:"mt-3 border-t border-border/30 pt-3",children:[(0,l.jsx)("p",{className:eu,children:"Guided"}),t.guidedLabel?(0,l.jsx)("p",{className:"mt-1 font-mono text-[16px] font-semibold tabular-nums leading-tight text-foreground",children:t.guidedLabel}):(0,l.jsx)("p",{className:"mt-1 text-[12px] leading-snug text-muted-foreground",children:"Stated qualitatively — no number on the record."}),t.trail.length>0?(0,l.jsx)(eC,{row:t}):t.heldSince?(0,l.jsxs)("p",{className:(0,d.cn)(em,"mt-2"),children:["Held since ",t.heldSince]}):null]})]})}function eM(e){let{verdict:t,onSelect:r}=e,[a,s]=n.useState(!1),{watch:o,watchRest:c}=t;return 0===o.length?null:(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:eu,children:"What to watch"}),(0,l.jsx)("p",{className:"mt-1 text-[13px] font-medium leading-snug text-foreground",children:t.watchHeading})]}),(0,l.jsx)("p",{className:"text-[11px] leading-snug text-muted-foreground",children:"Ranked by the year they come due, then how much of the company they cover, then what just moved"})]}),(0,l.jsx)("ul",{className:"grid gap-3 md:grid-cols-2 lg:grid-cols-3",children:o.map((e,t)=>(0,l.jsx)(eq,{row:e,rank:t+1,onSelect:r},e.item.guidanceKey))}),c.length>0?(0,l.jsxs)("div",{className:(0,d.cn)(ec.K,"overflow-hidden"),children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 px-4 py-2.5",children:[(0,l.jsx)("p",{className:eu,children:t.watchRestLabel}),(0,l.jsx)(i.$,{variant:"outline",size:"sm",className:"text-xs","aria-expanded":a,onClick:()=>s(e=>!e),children:a?"Hide":t.watchRestToggleLabel})]}),a?(0,l.jsx)("ul",{className:"divide-y divide-border/30 border-t border-border/40",children:c.map(e=>(0,l.jsx)(eK,{row:e,onSelect:r},e.item.guidanceKey))}):null]}):null]})}function ez(e){let{row:t,onSelect:r}=e,n=eg[el(t)],{item:a}=t,s=!!(a.segment&&a.metricLabel),i=t.guidedLabel&&/\d/.test(t.guidedLabel)?t.guidedLabel:null;return(0,l.jsxs)(eF,{onSelect:()=>r(a),className:"px-4 py-3 transition-colors hover:bg-muted/30",children:[(0,l.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsx)("p",{className:"text-[13px] font-semibold leading-snug text-foreground",children:B(a)}),(0,l.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-x-2 gap-y-1",children:[s?null:(0,l.jsx)("span",{className:em,children:eL(a)}),a.horizonLabel?(0,l.jsx)("span",{className:em,children:a.horizonLabel}):null,(0,l.jsxs)("span",{className:(0,eo.Zq)(n.tone),children:[(0,l.jsx)("span",{"aria-hidden":!0,className:"mr-1",children:n.glyph}),n.label]})]})]}),(0,l.jsx)("div",{className:"shrink-0 text-right",children:i?(0,l.jsx)("p",{className:"font-mono text-[15px] font-semibold tabular-nums leading-tight text-foreground",children:i}):(0,l.jsx)("p",{className:"text-[11px] leading-snug text-muted-foreground",children:"Qualitative"})})]}),t.note?(0,l.jsx)("p",{className:"mt-1.5 line-clamp-2 text-[12px] leading-relaxed text-muted-foreground",children:t.note}):null,t.trail.length>0?(0,l.jsx)(eC,{row:t}):t.heldSince?(0,l.jsxs)("p",{className:(0,d.cn)(em,"mt-1.5"),children:["Held since ",t.heldSince]}):null]})}function eD(e){let{title:t,horizonLabel:r,caption:a,bucket:s,onSelect:o}=e,[c,u]=n.useState(!1),{rows:m}=s,x=c?m:m.slice(0,3),h=m.length-x.length,p=(e=>{if(0===e.classed)return null;let t=[];return e.orderBacked>0&&t.push("".concat(e.orderBacked," order-backed")),e.asserted>0&&t.push("".concat(e.asserted," asserted")),e.aspiration>0&&t.push("".concat(e.aspiration," ").concat(1===e.aspiration?"aspiration":"aspirations")),t.join(" \xb7 ")})(s.evidence);return(0,l.jsxs)("div",{className:(0,d.cn)(ec.K,"flex flex-col overflow-hidden"),children:[(0,l.jsxs)("div",{className:"border-b border-border/40 px-4 py-3",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[(0,l.jsxs)("p",{className:eu,children:[t," ",(0,l.jsxs)("span",{className:"text-foreground
1/70",children:["\xb7 ",r]})]}),(0,l.jsxs)("p",{className:em,children:[m.length," ",1===m.length?"commitment":"commitments"]})]}),(0,l.jsx)("p",{className:"mt-1 text-[12px] leading-snug text-muted-foreground",children:a}),p?(0,l.jsx)("p",{className:(0,d.cn)(em,"mt-1.5 uppercase"),children:p}):null]}),(0,l.jsx)("ul",{className:"divide-y divide-border/30",children:x.map(e=>(0,l.jsx)(ez,{row:e,onSelect:o},e.item.guidanceKey))}),m.length>3?(0,l.jsx)("div",{className:"mt-auto flex justify-center border-t border-border/40 px-4 py-2.5",children:(0,l.jsx)(i.$,{variant:"outline",size:"sm",className:"text-xs","aria-expanded":c,onClick:()=>u(e=>!e),children:c?"Show fewer":"Show ".concat(h," more")})}):null]})}function eR(e){let{live:t,current:r,evidenceByKey:a,onSelect:s}=e,[o,c]=n.useState(!1),u=n.useMemo(()=>ea(t,r,a),[t,r,a]),{thisYear:m,longTerm:x,ongoing:h}=u;if(0===t.length)return null;let p=m.rows.length>0,b=x.rows.length>0;return(0,l.jsxs)("div",{className:"space-y-3",children:[p||b?(0,l.jsxs)("div",{className:(0,d.cn)("grid gap-3 lg:items-start",p&&b?"lg:grid-cols-2":null),children:[p?(0,l.jsx)(eD,{title:"This year",horizonLabel:u.thisYearLabel,caption:"What they have committed to before this financial year closes.",bucket:m,onSelect:s}):null,b?(0,l.jsx)(eD,{title:"Long-term",horizonLabel:u.longTermLabel,caption:"The multi-year targets and vision — further out, and further from proof.",bucket:x,onSelect:s}):null]}):null,h.rows.length>0?(0,l.jsxs)("div",{className:(0,d.cn)(ec.K,"overflow-hidden"),children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 px-4 py-2.5",children:[(0,l.jsxs)("p",{className:eu,children:["Ongoing \xb7 no fixed deadline (",h.rows.length,")"]}),(0,l.jsx)(i.$,{variant:"outline",size:"sm",className:"text-xs","aria-expanded":o,onClick:()=>c(e=>!e),children:o?"Hide":"Show"})]}),o?(0,l.jsx)("ul",{className:"divide-y divide-border/30 border-t border-border/40",children:h.rows.map(e=>(0,l.jsx)(eK,{row:e,onSelect:s},e.item.guidanceKey))}):null]}):null]})}let eP={},eH="md:grid-cols-[minmax(0,1fr)_7rem_7rem_9.5rem]";function e$(e){var t,r;let{row:n,onSelect:a}=e,s=eb[n.outcome],{item:i}=n,o=n.delta?"".concat(s.label," \xb7 ").concat(n.delta.label):s.label,c=[eL(i),i.horizonLabel].filter(Boolean).join(" \xb7 ");return(0,l.jsxs)(eF,{onSelect:()=>a(i),className:(0,d.cn)("grid grid-cols-1 gap-x-4 gap-y-2 px-4 py-3 transition-colors hover:bg-muted/30 md:items-center",eH),children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsxs)("p",{className:"text-[13px] font-semibold leading-snug text-foreground",children:[i.guidanceText,(0,l.jsxs)("span",{className:"font-normal text-muted-foreground",children:[" \xb7 ",c]})]}),n.note?(0,l.jsx)("p",{className:"mt-0.5 text-[12px] leading-snug text-muted-foreground md:line-clamp-1",children:n.note}):null]}),(0,l.jsxs)("div",{className:"flex items-center justify-between gap-3 md:contents",children:[(0,l.jsxs)("div",{className:"md:text-right",children:[(0,l.jsx)("span",{className:(0,d.cn)(eu,"md:hidden"),children:"Guided "}),(0,l.jsx)("span",{className:(0,d.cn)(em,"text-foreground/80"),children:null!=(t=n.guidedLabel)?t:"—"})]}),(0,l.jsxs)("div",{className:"md:text-right",children:[(0,l.jsx)("span",{className:(0,d.cn)(eu,"md:hidden"),children:"Delivered "}),(0,l.jsx)("span",{className:(0,d.cn)(em,n.deliveredLabel?s.ink:""),children:null!=(r=n.deliveredLabel)?r:"—"})]}),(0,l.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,l.jsx)("span",{className:(0,eo.Zq)(s.tone),"aria-label":"".concat(s.label," (").concat(i.statusLabel,")"),children:o}),(0,l.jsx)(eS,{count:i.trail.length})]})]})]})}function eA(e){let{rows:t,onSelect:r}=e,[a,s]=n.useState(!1);if(0===t.length)return null;let o=a?t:t.slice(0,5),c=t.length-o.length;return(0,l.jsxs)("div",{className:(0,d.cn)(ec.K,"overflow-hidden"),children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1 border-b border-border/40 px-4 py-2.5",children:[(0,l.jsx)("p",{className:eu,children:"Track record \xb7 resolved commitments"}),(0,l.jsx)("p",{className:"text-[11px] leading-snug text-muted-foreground",children:"Most recent first"})]}),(0,l.jsxs)("div",{className:(0,d.cn)("hidden gap-x-4 border-b border-border/40 px-4 py-2 md:grid",eH),children:[(0,l.jsx)("p",{className:eu,children:"Commitment"}),(0,l.jsx)("p",{className:(0,d.cn)(eu,"text-right"),children:"Guided"}),(0,l.jsx)("p",{className:(0,d.cn)(eu,"text-right"),children:"Delivered"}),(0,l.jsx)("p",{className:(0,d.cn)(eu,"text-right"),children:"Outcome"})]}),(0,l.jsx)("ul",{className:"divide-y divide-border/30",children:o.map(e=>(0,l.jsx)(e$,{row:e,onSelect:r},e.item.guidanceKey))}),t.length>5?(0,l.jsx)("div",{className:"flex justify-center border-t border-border/40 px-4 py-2.5",children:(0,l.jsx)(i.$,{variant:"outline",size:"sm",className:"text-xs","aria-expanded":a,onClick:()=>s(e=>!e),children:a?"Show fewer":"Show all ".concat(t.length," resolved (").concat(c," more)")})}):null]})}function eB(e){let{item:t}=e;return 0===t.trail.length?(0,l.jsx)("div",{className:"rounded-xl border border-dashed border-border/45 bg-background/42 px-3 py-2.5 text-[11px] leading-snug text-muted-foreground dark:bg-background/30",children:"No quarter-by-quarter trail is available yet for this guid
1ance thread."}):(0,l.jsx)("ol",{className:"space-y-2.5",children:t.trail.map((e,r)=>{var n;let a=[e.documentLabel,e.documentType,e.sourceReference].filter(e=>!!e),s=null!=(n=y(e))?n:v(e);return(0,l.jsxs)("li",{className:(0,d.cn)(ec.j9,"px-3 py-2.5"),children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 text-[10px]",children:[e.quarter?(0,l.jsx)("span",{className:"rounded-full border border-border/60 bg-muted/60 px-2 py-0.5 text-foreground",children:e.quarter}):null,e.mentionType?(0,l.jsx)("span",{className:(0,eo.Zq)((e=>{switch(null==e?void 0:e.trim().toLowerCase().replace(/\s+/g,"_")){case"first_mention":return"sky";case"revision":case"delay":case"update":return"amber";case"met":return"emerald";case"missed":case"dropped":return"rose";default:return"slate"}})(e.mentionType)),children:e.mentionType}):null,e.horizonLabel?(0,l.jsx)("span",{className:"rounded-full border border-border/60 bg-background/70 px-2 py-0.5 text-muted-foreground",children:e.horizonLabel}):null,s?(0,l.jsx)("span",{className:"rounded-full border border-border/60 bg-background/70 px-2 py-0.5 font-mono font-semibold tabular-nums text-foreground",children:s}):null]}),a.length>0?(0,l.jsx)("p",{className:"max-w-[20rem] text-[10px] leading-snug text-muted-foreground sm:text-right",children:a.join(" | ")}):null]}),e.summary?(0,l.jsx)("p",{className:"mt-2 text-[11px] font-medium leading-relaxed text-foreground",children:e.summary}):null,e.excerpt?(0,l.jsxs)("p",{className:"mt-2 border-l-2 border-border/45 pl-2.5 text-[11px] italic leading-relaxed text-foreground/85",children:["“",e.excerpt,"”"]}):null]},"".concat(t.guidanceKey,"-trail-").concat(r))})})}function eV(e){var t,r;let{item:n}=e,a=$(n).label,s=n.firstMentionPeriod&&n.latestMentionPeriod&&n.firstMentionPeriod!==n.latestMentionPeriod?"".concat(n.firstMentionPeriod," → ").concat(n.latestMentionPeriod):null!=(t=n.latestMentionPeriod)?t:n.firstMentionPeriod,c=null!=(r=n.latestView)?r:n.statusReason;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o.DrawerHeader,{className:"border-b border-border",children:[(0,l.jsx)(o.DrawerTitle,{className:"text-[14px] leading-snug",children:n.guidanceText}),(0,l.jsx)(o.DrawerDescription,{children:(0,l.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5 text-[11px]",children:[(0,l.jsx)("span",{className:(0,eo.Zq)(ef[n.statusKey]),children:n.statusLabel}),n.metricLabel?(0,l.jsx)("span",{className:"rounded-full border border-border/60 bg-muted/35 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-[0.14em] text-muted-foreground",children:n.metricLabel}):null,(0,l.jsx)(eT,{item:n}),n.horizonLabel?(0,l.jsx)("span",{className:em,children:n.horizonLabel}):null,a?(0,l.jsx)("span",{className:(0,d.cn)(em,"text-foreground"),children:a}):null,s?(0,l.jsx)("span",{className:em,children:s}):null,(0,l.jsxs)("span",{className:em,children:[n.trail.length," update",1===n.trail.length?"":"s"]})]})})]}),(0,l.jsxs)("div",{className:"space-y-3 overflow-y-auto px-4 py-4",children:[c?(0,l.jsx)("p",{className:"text-[12px] leading-snug text-foreground/85",children:c}):null,n.statusReason&&n.statusReason!==c?(0,l.jsx)("p",{className:"text-[11px] leading-snug text-muted-foreground",children:n.statusReason}):null,(0,l.jsx)(eB,{item:n})]}),(0,l.jsx)(o.DrawerFooter,{className:"border-t border-border",children:(0,l.jsx)(o.DrawerClose,{asChild:!0,children:(0,l.jsx)(i.$,{variant:"outline",children:"Close"})})})]})}let eW=e=>{if(!e||"object"!=typeof e||Array.isArray(e))return null;let t=e.source_doc_id;return"number"==typeof t&&Number.isFinite(t)?{source_doc_id:t,period_label:"string"==typeof e.period_label?e.period_label:null,fy:"number"==typeof e.fy?e.fy:null,qtr:"number"==typeof e.qtr?e.qtr:null,doc_type:"string"==typeof e.doc_type?e.doc_type:null,url:"string"==typeof e.url&&/^https?:\/\//i.test(e.url)?e.url:null}:null};function eE(e){let{sourceFiles:t}=e,r=(null!=t?t:[]).map(eW).filter(e=>!!e);return 0===r.length?null:(0,l.jsxs)("details",{className:(0,d.cn)(ec.K,"group px-4 py-3"),children:[(0,l.jsxs)("summary",{className:"flex cursor-pointer items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.16em] text-muted-foreground hover:text-foreground",children:[(0,l.jsx)(s.A,{className:"size-3.5 transition-transform group-open:rotate-180"}),"Sources (",r.length,")"]}),(0,l.jsx)("ul",{className:"mt-3 grid gap-1.5 sm:grid-cols-2",children:r.map(e=>{var t,r;let n=null!=(t=e.period_label)?t:e.fy&&e.qtr?"Q".concat(e.qtr," FY").concat(String(e.fy).slice(-2)):"#".concat(e.source_doc_id),a=null!=(r=e.doc_type)?r:"transcript",s="".concat(n," ").concat("transcript"===a?"Concall":"presentation"===a?"PPT":"annual_report"===a?"AR":a);return(0,l.jsx)("li",{children:e.url?(0,l.jsxs)("a",{href:e.url,target:"_blank",rel:"noreferrer noopener","data-source-type":a,className:"inline-flex items-center gap-1 rounded-md border border-border/40 bg-background/60 px-2 py-1 text-[11px] text-foreground
1/85 hover:border-border hover:bg-background hover:text-foreground",children:[s," ",(0,l.jsx)("span",{className:"text-muted-foreground",children:"↗"})]}):(0,l.jsx)("span",{className:"inline-flex items-center gap-1 rounded-md border border-border/40 bg-muted/40 px-2 py-1 text-[11px] text-muted-foreground",children:s})},e.source_doc_id)})})]})}function eO(e){var t,r;let{items:a,sourceFiles:s,currentQtr:i,forwardStrength:u,evidenceByKey:m,credibilityVerdict:x}=e,h=null!=i?i:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,{fy:t,qtr:r}=(e=>{let t=e.getUTCMonth(),r=e.getUTCFullYear();return t>=3&&t<=5?{fy:r,qtr:4}:t>=6&&t<=8?{fy:r+1,qtr:1}:t>=9&&t<=11?{fy:r+1,qtr:2}:{fy:r,qtr:3}})(e);return{fy:t,qtr:r,label:"Q".concat(r," ").concat(c(t))}}(),p=n.useMemo(()=>((e,t,r)=>{var l;let n=[],a=[];for(let r of e){let e=M(r,t);"resolved"===e.phase?n.push(E(r,e.outcome)):a.push(O(r,e.state))}n.sort((e,t)=>{let r=en(e.item),l=en(t.item);return r!==l?l>r?1:-1:G[e.outcome]-G[t.outcome]});let s=a.map(e=>{var t,r,l,n;let a,s,i;return{row:e,key:{fy:null!=(r=et((t=e).item))?r:1/0,scope:+!!(null!=(a=t.item).segment&&!J.has(a.segment.trim().toLowerCase())),news:+(null==(s=t).direction&&"revised"!==s.state&&"delayed"!==s.state),metric:(i=t.item).metricSubtype&&null!=X[i.metricSubtype]?X[i.metricSubtype]:i.guidanceFamily&&null!=ee[i.guidanceFamily]?ee[i.guidanceFamily]:99,soonest:null!=(n=q(l=t.item)?null:K(l))?n:1/0,depth:t.item.trail.length,key:t.item.guidanceKey}}});s.sort((e,t)=>{let r,l;return r=e.key,l=t.key,r.fy!==l.fy?r.fy<l.fy?-1:1:r.scope!==l.scope?r.scope-l.scope:r.news!==l.news?r.news-l.news:r.metric!==l.metric?r.metric-l.metric:r.soonest!==l.soonest?r.soonest<l.soonest?-1:1:r.depth!==l.depth?l.depth-r.depth:r.key.localeCompare(l.key)}),a=s.map(e=>e.row);let i=n.filter(e=>z.has(e.outcome)),o=i.filter(e=>"met"===e.outcome),d=o.length,c=i.length,u=c-d,m=n.length-c,x=o.filter(e=>{var t;return(null==(t=e.delta)?void 0:t.sign)===1}).length,h=(0,L.Qk)(d,c),p=function(e){let t=e&&"object"==typeof e&&!Array.isArray(e)?e:null,r=t?t.verdict:e;if("string"!=typeof r)return null;let l=r.trim().toLowerCase().replace(/[\s-]+/g,"_");if(!S.has(l))return null;let n=null==t?void 0:t.components,a=!!(n&&"object"==typeof n&&"scorer"in n),s=null==t?void 0:t.supporting_line;return{verdict:l,supportingLine:a&&"string"==typeof s&&s.trim()?s.trim():null}}(r),b=null!=(l=null==p?void 0:p.verdict)?l:h,g=(null==p?void 0:p.supportingLine)?[p.supportingLine]:[];if(0===c)g.push(a.length>0?"No commitment has reached its horizon yet — ".concat(Y(a.length)," ").concat(I(a.length,"is","are")," live."):"No tracked commitment has resolved yet.");else if(1===c){let e=i[0];if("met"===e.outcome)g.push("The only resolved commitment was met.");else{let t=V(e.item),r="missed"===e.outcome?t:"".concat(t,", ").concat(e.outcome);g.push("The only resolved commitment was not met: ".concat(r,"."))}}else{let e=I(c,"commitment","commitments"),t=I(d,"was","were"),r=x>=2?", ".concat(Y(x)," of them with room to spare"):"";if(g.push("".concat(Z(Y(d))," of ").concat(Y(c)," resolved ").concat(e," ").concat(t," met").concat(r,".")),u>0){let e=i.filter(e=>"met"!==e.outcome),t=e.slice(0,3).map(e=>{let t=V(e.item);return"missed"===e.outcome?t:"".concat(t,", ").concat(e.outcome)}),r=e.length-t.length,l=r>0?[...t,"".concat(Y(r)," more")]:t;g.push(1===u?"The one miss: ".concat(t[0],"."):"The misses: ".concat(Q(l),"."))}else g.push("No misses on record.")}c>0&&"not_enough_data"===h&&!p&&g.push("We grade from three resolved commitments; ".concat(Y(c)," so far."));let f=null;if(a.length>0){let e=a.filter(e=>"revised"===e.state&&"up"===e.direction).length,t=a.filter(e=>"revised"===e.state&&"down"===e.direction).length,r=a.filter(e=>"revised"===e.state).length-e-t,l=a.filter(e=>"delayed"===e.state).length,n=a.filter(e=>"on_track"===e.state).length,s=[];n>0&&s.push("".concat(Y(n)," held")),e>0&&s.push("".concat(Y(e)," raised")),t>0&&s.push("".concat(Y(t)," revised downward")),r>0&&s.push("".concat(Y(r)," revised")),l>0&&s.push("".concat(Y(l)," pushed out"));let i=c>0?"".concat(Z(Y(a.length))," more ").concat(I(a.length,"commitment is","commitments are")," live"):"".concat(Z(Y(a.length))," ").concat(I(a.length,"commitment is","commitments are")," live");f=s.length>0?"".concat(i," — ").concat(Q(s),"."):"".concat(i,".")}let v=[...o.map(()=>"met"),...i.filter(e=>"met"!==e.outcome).map(e=>e.outcome)],y=a.slice(0,3),j=a.slice(3),w=er(y),N=((e,t)=>{let r=Y(e.length),l=er(e);if(!l)return"The ".concat(r," that matter most.");let n=et(e[0].item);return t.some(e=>et(e.item)===n)?"The ".concat(r," ").concat(l," ").concat(I(e.length,"commitment","commitments")," that ").concat(I(e.length,"matters","matter")," most."):"The ".concat(r," that ").concat(I(e.length,"decides","decide")," ").concat(l,".")})(y,j),k=0===j.length?null:1===j.length?"The other live commitment":"The other ".concat(Y(j.length)," live commitments"),_=0===j.length?null:1===j.length?"Show the other commitment":"Show the other ".concat(Y(j.length)," commitments");return{tier:b,tierLabel:T[b],countedTier:h,verdictSource:p?"scored":"counted",metCount:d,countedCount:c,unclearCount:m,beatCount:x,headline:((e,t)=>{switch(e){case"reliable":return 0===t?"Reliable — they deliver what they guide.":1===t?"Reliable — they deliver, with one slip.":"Reliable — they deliver, with ".concat(Y(t)," slips.");case"mixed":return"Mixed — more hits than misses.";case"erratic":return"Erratic — delivery is hit-and-miss.";case"weak":return"Weak — guidance rarely lands.";case"high_trust":return"High trust — they deliver what they guide.";case"credible":return"Credible — they mostly deliver what they guide.";case"low_trust":return"Low trust — guidance often doesn't land.";case"not_assessable":return"Not enough track record to judge yet.";default:return"Too early to call."}})(b,u),summary:g.join(" "),liveNote:f,bars:v,resolved:n,live:a,watch:y,watchRest:j,watchHorizonLabel:w,watchHeading:N,watchRestLabel:k,watchRestToggleLabel:_}})(a,h,x),[a,h,x]),b=null!=(r=null==(t=a[0])?void 0:t.companyCode)?r:"",[g,f]=n.useState(null);if(n.useEffect(()=>{f(null)},[b]),!a.length)return(0,l.jsx)("div",{className:(0,d.cn)(ec.K,"p-4"),children:(0,l.jsx)("p",{className:"text-sm font-medium text-foreground",children:"No guidance threads tracked yet."})});let v=(0,l.jsxs)("div",{className:"grid gap-3 lg:grid-cols-[minmax(0,1.6fr)_minmax(0,1fr)]",children:[(0,l.jsx)(ek,{verdict:p,eyebrow:u?"Should you believe any of it?":void 0}),(0,l.jsx)(e_,{verdict:p})]});return(0,l.jsxs)("div",{className:"space-y-4",children:[u?u.horizons?(0,l.jsx)(eN,{horizons:u.horizons}):(0,l.jsx)(ew,{forwardStrength:u}):v,(0,l.jsx)("div",{"data-gate-cut":!0,className:"empty:hidden",children:u?(0,l.jsx)(eR,{live:p.live,current:h,evidenceByKey:null!=m?m:eP,onSelect:f},"horizon-".concat(b)):(0,l.jsx)(eM,{verdict:p,onSelect:f},"watch-".concat(b))}),u?v:null,(0,l.jsx)(eA,{rows:p.resolved,onSelect:f},"resolved-".concat(b)),(0,l.jsx)(eE,{sourceFiles:s}),(0,l.jsx)(o.Drawer,{direction:"right",open:null!==g,onOpenChange:e=>{e||f(null)},children:(0,l.jsx)(o.DrawerContent,{className:"w-full max-w-xl",children:g?(0,l.jsx)(eV,{item:g}):null})})]})}}}]);

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.