PageSourceSearch

https://www.brandarmor.ai/_next/static/chunks/66449.b4421a345ef776a7.js

js brandarmor.ai collected 2026-09-24 13:38:55 UTC 26,815 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[66449],{11647:(e,r,t)=>{t.d(r,{E:()=>d});var n=t(82732),s=t(17389),i=t(95155);t(12115);var a=t(83101),o=t(64269),l=(0,a.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function d(e){var r=e.className,t=e.variant,a=(0,s._)(e,["className","variant"]);return(0,i.jsx)("div",(0,n._)({className:(0,o.cn)(l({variant:t}),r)},a))}},26758:(e,r,t)=>{t.d(r,{Iv:()=>u,J9:()=>c,ob:()=>m});var n=t(95155),s=t(15239),i=t(85575),a=t(73263),o=t(96820),l=t(90919),d=t(57216),c={gemini:{name:"Gemini",icon:(0,n.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-lg bg-white/95 backdrop-blur-sm p-1.5 shadow-sm ring-1 ring-black/5",children:(0,n.jsx)(s.default,{src:i.default,alt:"Gemini logo",width:24,height:24,className:"object-contain"})}),color:"#4285F4"},openai:{name:"ChatGPT",icon:(0,n.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-lg bg-white/95 backdrop-blur-sm p-1.5 shadow-sm ring-1 ring-black/5",children:(0,n.jsx)(s.default,{src:a.default,alt:"ChatGPT logo",width:24,height:24,className:"object-contain"})}),color:"#10A37F"},anthropic:{name:"Claude",icon:(0,n.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-lg bg-white/95 backdrop-blur-sm p-1.5 shadow-sm ring-1 ring-black/5",children:(0,n.jsx)(s.default,{src:o.default,alt:"Claude logo",width:24,height:24,className:"object-contain"})}),color:"#D97757"},grok:{name:"Grok",icon:(0,n.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-lg bg-white/95 backdrop-blur-sm p-1.5 shadow-sm ring-1 ring-black/5",children:(0,n.jsx)(s.default,{src:d.default,alt:"Grok logo",width:24,height:24,className:"object-contain"})}),color:"#9333EA"},perplexity:{name:"Perplexity",icon:(0,n.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-lg bg-white/95 backdrop-blur-sm p-1.5 shadow-sm ring-1 ring-black/5",children:(0,n.jsx)(s.default,{src:l.default,alt:"Perplexity logo",width:24,height:24,className:"object-contain"})}),color:"#EC4899"},chatgpt:{name:"ChatGPT",icon:(0,n.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-lg bg-white/95 backdrop-blur-sm p-1.5 shadow-sm ring-1 ring-black/5",children:(0,n.jsx)(s.default,{src:a.default,alt:"ChatGPT logo",width:24,height:24,className:"object-contain"})}),color:"#10A37F"},claude:{name:"Claude",icon:(0,n.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-lg bg-white/95 backdrop-blur-sm p-1.5 shadow-sm ring-1 ring-black/5",children:(0,n.jsx)(s.default,{src:o.default,alt:"Claude logo",width:24,height:24,className:"object-contain"})}),color:"#D97757"},google:{name:"Gemini",icon:(0,n.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-lg bg-white/95 backdrop-blur-sm p-1.5 shadow-sm ring-1 ring-black/5",children:(0,n.jsx)(s.default,{src:i.default,alt:"Gemini logo",width:24,height:24,className:"object-contain"})}),color:"#4285F4"}};function u(e){return c[e]||{name:e.charAt(0).toUpperCase()+e.slice(1),icon:(0,n.jsx)("div",{className:"w-8 h-8 rounded-lg bg-[var(--muted)] p-1.5",children:(0,n.jsx)("span",{className:"text-lg",children:"\uD83E\uDD16"})}),color:"#6B7280"}}function m(e){var r=e.toLowerCase();return({chatgpt:"openai",claude:"anthropic",google:"gemini"})[r]||r}},45531:(e,r,t)=>{t.d(r,{pq:()=>i,t8:()=>s});var n=t(26758);function s(e){var r=(0,n.ob)(e);return(0,n.Iv)(r).color||"#6B7280"}function i(e){var r=(0,n.ob)(e);return(0,n.Iv)(r).name}},57216:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});let n={src:"/_next/static/media/grok.47b865fd.svg",height:33,width:35,blurWidth:0,blurHeight:0}},60381:(e,r,t)=>{t.d(r,{y:()=>n});var n=["gemini","openai","anthropic","grok","perplexity"]},66449:(e,r,t)=>{t.r(r),t.d(r,{default:()=>C});var n=t(95155),s=t(22043),i=t(45377),a=t(12115),o=t(26265),l=t(62319),d=t(26411),c=t(32909),u=t(88230),m=t(17887),x=t(33420),g=t(6508),h=t(60381),b=t(26758),f=t(95460),v=t(96779),p=t(75550),A=t(45531),j=t(75662),y={Trust:"trust",Quality:"quality",Care:"care",Principles:"principles",Employees:"employees",Reputation:"reputation",Innovation:"innovation",Value:"value"},N={Trust:"TrustCredibility",Quality:"ProductQuality",Care:"CustomerCare",Principles:"ValuesSocialImpact",Employees:"EmployeeTreatment",Reputation:"PublicReputation",Innovation:"InnovationLeadership",Value:"ValuePricing"};function w(e){var r,t=e.sentimentData,w=(0,j.Bd)().t,k=(0,s._)((0,a.useState)([]),2),C=k[0],E=k[1],S=(0,s._)((0,a.useState)(null),2),M=S[0],R=S[1],P=(0,s._)((0,a.useState)(!0),2),B=P[0],F=P[1],D=(0,s._)((0,a.useState)(new Set),2),I=D[0],L=D[1],V=(0,s._)((0,a.useState)(!0),2),U=V[0],G=V[1],T=(0,a.useRef)(null),W=function(e){var r=y[e];return r?w("sentimentRadar.dimensions.".concat(r,".label"),{defaultValue:e}):e},_=function(e){var r=y[e];return r?w("sentimentRadar.dimensions.".concat(r,".description"),{defaultValue:""}):""},z=(null==t?void 0:t.availableProviders)||[];(0,a.useEffect)(function(){z.length>0&&0===C.length&&E((0,i._)(z))},[z,C.length]),(0,a.useEffect)(function(){M&&T.current&&setTimeout(function(){var e;null==(e=T.current)||e.scrollIntoView({behavior:"smooth",block:"nearest"})},100)},[M]);var K=(0,a.useMemo)(function(){if(!(null==t?void 0:t.byProvider)||0===C.length)return[];var e=Object.keys(N);return U?e.map(function(e){var r=N[e],n=0,s=0;
1return C.forEach(function(e){var i,a,o=t.byProvider[e];(null==o||null==(a=o.scores)||null==(i=a[r])?void 0:i.score)!==void 0&&(n+=o.scores[r].score,s++)}),{dimension:e,score:s>0?n/s*100:0,fullMark:100}}):e.map(function(e){var r=N[e],n={dimension:e,fullMark:100};return C.forEach(function(e){var s,i,a=t.byProvider[e];(null==a||null==(i=a.scores)||null==(s=i[r])?void 0:s.score)!==void 0&&(n[e]=100*a.scores[r].score)}),n})},[t,C,U]),O=(0,a.useMemo)(function(){if(!(null==t?void 0:t.byProvider)||0===C.length)return{};var e=Object.keys(N),r={};return e.forEach(function(e){var n=N[e],s=[];if(C.forEach(function(e){var r,i,a=null==(i=t.byProvider[e])||null==(r=i.scores)?void 0:r[n];a&&s.push({provider:e,data:a})}),0!==s.length){var i=s.reduce(function(e,r){return e+r.data.score},0)/s.length,a="poor";i>=.9?a="exceptional":i>=.75?a="veryGood":i>=.6?a="good":i>=.45?a="fair":i>=.3&&(a="belowAverage");var o=s.reduce(function(e,r){return e+(r.data.confidence||0)},0)/s.length,l=s.map(function(e){return{provider:e.provider,score:e.data.score||0,rationale:e.data.rationale,evidence:e.data.evidence||[],recommendedActions:e.data.recommendedActions||[]}});r[e]={score:i,bandKey:a,confidence:o,rationalesByProvider:l}}}),r},[t,C]),H=(0,a.useMemo)(function(){return Object.entries(O).sort(function(e,r){var t,n,s=(null==(t=e[1])?void 0:t.score)||0,i=(null==(n=r[1])?void 0:n.score)||0;return B?i-s:s-i})},[O,B]),Y=((0,a.useMemo)(function(){if(!(null==t?void 0:t.byProvider)||0===C.length)return[];var e=Object.fromEntries(Object.entries(N).map(function(e){var r=(0,s._)(e,2),t=r[0];return[r[1],t]})),r=[];
1return C.forEach(function(n){var i=t.byProvider[n];(null==i?void 0:i.scores)&&Object.entries(i.scores).forEach(function(t){var i=(0,s._)(t,2),a=i[0],o=i[1],l=e[a];if(l){var d=o.score||0;(o.recommendedActions||[]).forEach(function(e){var t="string"==typeof e?e:e.text,s="string"==typeof e?.5:e.actionConfidence||.5;t&&r.push({provider:n,dimension:l,dimensionScore:d,actionText:t,actionConfidence:s,priorityScore:(1-d)*s})})}})}),r.sort(function(e,r){return r.priorityScore-e.priorityScore})},[t,C]),(0,a.useMemo)(function(){if(!(null==t?void 0:t.byProvider)||0===C.length)return[];var e=[];return C.forEach(function(r){var n,s=null==(n=t.byProvider[r])?void 0:n.radar_summary;s&&e.push({provider:r,summary:s})}),e},[t,C])),Q=(0,a.useMemo)(function(){return 0===Y.length?null:1===Y.length?Y[0].summary:w("sentimentRadar.brandProfile.aggregatedSummary",{count:C.length})},[Y,C,w]);if(!t||0===z.length)return(0,n.jsx)("div",{className:"rounded-lg border border-border bg-card p-8",children:(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"mx-auto mb-4 h-16 w-16 animate-spin rounded-full border-4 border-blue-600 border-t-transparent"}),(0,n.jsx)("p",{className:"text-muted-foreground",children:w("sentimentRadar.loading")})]})});var X=function(e){var r=new Set(I);r.has(e)?r.delete(e):r.add(e),L(r)};return(0,n.jsxs)("div",{className:"space-y-6",children:[(0,n.jsx)(g.A,{providers:z,allProviders:h.y,selectedProviders:C,onSelectionChange:E,layout:"compact",multiSelect:!0,showMetrics:!1,title:w("llmSelector.title"),description:w("sentimentRadar.selector.description")}),(0,n.jsxs)("div",{className:"rounded-lg border border-border bg-card p-6",children:[(0,n.jsxs)("div",{className:"flex items-center justify-end mb-6 gap-3",children:[(0,n.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:w("sentimentRadar.aggregatedView")}),(0,n.jsx)("button",{onClick:function(){return G(!U)},className:"relative inline-flex h-6 w-11 items-center rounded-full transition-colors ".concat(U?"bg-[var(--primary)]":"bg-[var(--muted)]"),children:(0,n.jsx)("span",{className:"inline-block h-4 w-4 transform rounded-full bg-white transition-transform ".concat(U?"translate-x-6":"translate-x-1")})})]}),(0,n.jsxs)("div",{className:"grid grid-cols-1 2xl:grid-cols-3 gap-6",children:[(0,n.jsx)("div",{className:"2xl:col-span-2",children:(0,n.jsx)("div",{className:"flex items-center justify-center",style:{height:"600px"},children:(0,n.jsx)(o.u,{width:"100%",height:"100%",children:(0,n.jsxs)(l.V,{data:K,onClick:function(e){e&&e.activeLabel&&R(e.activeLabel===M?null:e.activeLabel)},children:[(0,n.jsx)(d.z,{stroke:"#374151",strokeWidth:1}),(0,n.jsx)(c.r,{dataKey:"dimension",tick:{fill:"#9CA3AF",fontSize:14,fontWeight:600}
1,tickFormatter:function(e){return W(String(e))}}),(0,n.jsx)(u.E,{angle:90,domain:[0,100],tick:{fill:"#9CA3AF",fontSize:11}}),U?(0,n.jsx)(m.V,{name:w("sentimentRadar.averageScore"),dataKey:"score",stroke:"#3B82F6",strokeWidth:4,fill:"#3B82F6",fillOpacity:.15,isAnimationActive:!1,dot:function(e){var r=e.cx,t=e.cy,s=e.payload,i=e.index,a=s.dimension===M;return(0,n.jsx)("circle",{cx:r,cy:t,r:a?10:6,fill:a?"#2563EB":"#3B82F6",stroke:"#fff",strokeWidth:a?3:2,style:{cursor:"pointer"}},"dot-".concat(i))},style:{cursor:"pointer"}}):C.map(function(e){var r=(0,A.t8)(e),t=(0,b.Iv)(e);return(0,n.jsx)(m.V,{name:t.name,dataKey:e,stroke:r,strokeWidth:3,fill:r,fillOpacity:.1,isAnimationActive:!1},e)}),(0,n.jsx)(x.m,{content:function(e){var r=e.payload;if(!r||0===r.length)return null;var t=r[0].payload,s=_(t.dimension)||"";if(U)return(0,n.jsxs)("div",{className:"bg-gray-900 text-white p-4 rounded-lg shadow-xl max-w-xs border border-gray-700",children:[(0,n.jsx)("p",{className:"font-bold text-lg mb-2",children:W(t.dimension)}),(0,n.jsx)("p",{className:"text-sm mb-2 font-semibold",children:w("sentimentRadar.tooltip.average",{value:t.score.toFixed(1)})}),(0,n.jsx)("p",{className:"text-xs text-gray-300 mb-2 leading-relaxed",children:s}),(0,n.jsx)("p",{className:"text-xs italic text-gray-400",children:w("sentimentRadar.tooltip.clickToLearnMore")})]});var i=0,a=[];C.forEach(function(e){var r=t[e];void 0!==r&&(a.push({provider:e,score:r}),i+=r)});var o=a.length>0?i/a.length:0;return(0,n.jsxs)("div",{className:"bg-gray-900 text-white p-4 rounded-lg shadow-xl border border-gray-700 max-w-sm",children:[(0,n.jsx)("p",{className:"font-bold text-lg mb-3",children:W(t.dimension)}),(0,n.jsx)("div",{className:"space-y-2 mb-3",children:a.map(function(e){var r=e.provider,t=e.score,s=(0,b.Iv)(r),i=(0,A.t8)(r);return(0,n.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"inline-block w-2 h-2 rounded-full",style:{backgroundColor:i}}),(0,n.jsxs)("span",{children:[s.name,":"]})]}),(0,n.jsxs)("span",{className:"font-semibold",children:[t.toFixed(1),"%"]})]},r)})}),(0,n.jsx)("div",{className:"border-t border-gray-700 pt-2 mb-2",children:(0,n.jsxs)("div",{className:"flex items-center justify-between text-sm font-semibold",children:[(0,n.jsxs)("span",{children:[w("sentimentRadar.tooltip.aggregated"),":"]}),(0,n.jsxs)("span",{children:[o.toFixed(1),"%"]})]})}),(0,n.jsx)("p",{className:"text-xs text-gray-300 leading-relaxed",children:s})]})}})]})})})}),(0,n.jsxs)("div",{className:"2xl:col-span-1",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,n.jsx)("h3",{className:"text-lg font-semibold text-foreground",children:w("sentimentRadar.dimensionScores.title")}),(0,n.jsxs)("button",{onClick:function(){return F(!B)},className:"flex items-center gap-2 px-3 py-1.5 text-sm font-medium text-muted-foreground hover:text-foreground bg-muted hover:bg-muted/80 rounded-lg transition-colors",children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:B?"M19 9l-7 7-7-7":"M5 15l7-7 7 7"})}),(0,n.jsx)("span",{className:"hidden sm:inline",children:B?w("sentimentRadar.dimensionScores.sort.highestFirst"):w("sentimentRadar.dimensionScores.sort.lowestFirst")})]})]}),(0,n.jsx)("div",{className:"space-y-2 max-h-[540px] overflow-y-auto pr-2",children:H.map(function(e){var r=(0,s._)(e,2),t=r[0],i=r[1];return(0,n.jsx)("div",{onClick:function(){return R(t===M?null:t)},className:"p-3 rounded-lg border transition-all cursor-pointer hover:shadow-md ".concat(M===t?"border-blue-500 shadow-md bg-[var(--urgency-low-bg)]":"border-border bg-card"),children:(0,n.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,n.jsx)("h4",{className:"font-semibold text-sm text-foreground",children:W(t)}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsxs)("span",{className:"text-lg font-bold ".concat(i.score>=.7?"text-green-600":i.score>=.5?"text-yellow-600":"text-red-600"),children:[(100*i.score).toFixed(0),"%"]}),(0,n.jsx)(f.Ay,{status:"exceptional"===i.bandKey?"exceptional":"veryGood"===i.bandKey||"good"===i.bandKey?"good":"fair"===i.bandKey?"fair":"belowAverage"===i.bandKey?"poor":"critical",label:w("sentimentRadar.bands.".concat(i.bandKey)),size:"sm"})]})]})},t)})})]})]}),M&&O[M]&&(0,n.jsxs)("div",{ref:T,className:"mt-6 pt-6 border-t border-border px-4",children:[(0,n.jsxs)("div",{className:"flex items-start justify-between mb-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:"text-xl font-bold text-foreground mb-1",children:W(M)}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:_(M)})]}),(0,n.jsx)("button",{onClick:function(){return R(null)},className:"text-muted-foreground hover:text-foreground transition-colors",children:(0,n.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,n.jsx)("div",{className:"space-y-4",children:null==(r=O[M].rationalesByProvider)?void 0:r.map(function(e,r){var t=(0,b.Iv)(e.provider);return(0,n.jsxs)("div",{className:"border border-border rounded-lg p-4 bg-muted/30",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-3",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{className:"scale-75",children:t.icon}),(0,n.jsx)("h4",{className:"text-sm font-semibold text-foreground",children:w("sentimentRadar.providerAnalysis",{provider:t.name})})]}),(0,n.jsxs)("span",{className:"text-sm font-bold ".concat(e.score>=.7?"text-green-600":e.score>=.5?"text-yellow-600":"text-red-600"),children:[(100*e.score).toFixed(0),"%"]})]}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed mb-3",children:e.rationale}),e.evidence&&e.evidence.length>0&&(0,n.jsxs)("div",{className:"mb-3",children:[(0,n.jsx)("h5",{className:"text-xs font-semibold text-foreground mb-2",children:w("sentimentRadar.supportingEvidence")}),(0,n.jsx)("ul",{className:"list-disc list-inside text-xs text-muted-foreground space-y-1",children:e.evidence.map(function(e,r){return(0,n.jsx)("li",{className:"leading-relaxed",children:e},r)})})]}),e.recommendedActions&&e.recommendedActions.length>0&&(0,n.jsxs)("div",{children:[(0,n.jsx)("h5",{className:"text-xs font-semibold text-foreground mb-2",children:w("sentimentRadar.recommendedActionsForDimension")}),(0,n.jsx)("ul",{className:"list-disc list-inside text-xs text-muted-foreground space-y-1",children:(0,i._)(e.recommendedActions).sort(function(e,r){return(r.actionConfidence||0)-(e.actionConfidence||0)}).map(function(e,r){return(0,n.jsx)("li",{className:"leading-relaxed",children:e.text||e},r)})})]})]},r)})})]})]}),!1,Y.length>0&&(0,n.jsxs)("div",{className:"rounded-xl border border-border bg-gradient-to-br from-card to-muted/20 p-6 shadow-sm",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3 mb-5",children:[(0,n.jsx)("div",{className:"w-10 h-10 rounded-lg bg-gradient-to-br from-blue-500 to-blue-600 flex items-center justify-center",children:(0,n.jsx)("svg",{className:"w-6 h-6 text-white",f
1ill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:"text-lg font-semibold text-foreground",children:w("sentimentRadar.brandProfile.title")}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground",children:w("sentimentRadar.brandProfile.subtitle")})]})]}),1===Y.length?(0,n.jsx)("div",{className:"bg-muted/40 rounded-lg p-4 border border-border/50",children:(0,n.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:Q||Y[0].summary})}):(0,n.jsx)("div",{className:"space-y-2",children:Y.map(function(e){var r=e.provider,t=e.summary,s=(0,b.Iv)(r),i=I.has(r),a=(0,A.t8)(r);return(0,n.jsxs)("div",{className:"border border-border rounded-lg overflow-hidden hover:border-blue-400/50 transition-colors",children:[(0,n.jsxs)("button",{onClick:function(){return X(r)},className:"w-full flex items-center justify-between gap-3 p-4 hover:bg-muted/70 transition-colors",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3 flex-1 text-left",children:[(0,n.jsx)("div",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{backgroundColor:a}}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{className:"scale-75",children:s.icon}),(0,n.jsx)("h4",{className:"text-sm font-semibold text-foreground",children:s.name})]})]}),i?(0,n.jsx)(v.A,{className:"w-5 h-5 text-muted-foreground flex-shrink-0 transition-transform"}):(0,n.jsx)(p.A,{className:"w-5 h-5 text-muted-foreground flex-shrink-0 transition-transform"})]}),i&&(0,n.jsx)("div",{className:"px-4 pb-4 pt-2 border-t border-border bg-muted/30",children:(0,n.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:t})})]},r)})})]})]})}var k=t(77414);function C(e){var r,t,s,i,a,o,l,d,c=e.sentimentData,u=(0,j.Bd)().t,m=null==c?void 0:c.dataQuality,x=(null==m?void 0:m.shouldHideRadar)===!0,g=null==m?void 0:m.status;return(0,n.jsxs)("div",{className:"space-y-6",children:[(0,n.jsx)(k.A,{title:u("sentiment.title"),description:u("sentiment.description"),icon:(0,n.jsx)("svg",{className:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})}),accentColor:"#C026D3"}),x?(0,n.jsxs)("div",{className:"rounded-xl border border-border bg-card p-6 shadow-sm",children:[(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)("div",{className:"mt-0.5 rounded-full bg-primary/10 p-2 text-primary",children:(0,n.jsx)("svg",{className:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("h3",{className:"text-lg font-semibold text-foreground",children:u("sentiment.lowSignal.title")}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:u("no_signal"===g?"sentiment.lowSignal.noSignalMessage":"sentiment.lowSignal.lowSignalMessage")}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:u("sentiment.lowSignal.guidance")})]})]}),(0,n.jsxs)("div",{className:"mt-5 grid gap-3 sm:grid-cols-2 lg:grid-cols-4",children:[(0,n.jsxs)("div",{className:"rounded-lg border border-border/70 bg-background p-3",children:[(0,n.jsx)("p",{className:"text-xs text-muted-foreground",children:u("sentiment.lowSignal.metrics.providers")}),(0,n.jsxs)("p",{className:"mt-1 text-lg font-semibold text-foreground",children:[null!=(a=null==m||null==(r=m.metrics)?void 0:r.providerCount)?a:0,"/5"]})]}),(0,n.jsxs)("div",{className:"rounded-lg border border-border/70 bg-background p-3",children:[(0,n.jsx)("p",{className:"text-xs text-muted-foreground",children:u("sentiment.lowSignal.metrics.visibility")}),(0,n.jsxs)("p",{className:"mt-1 text-lg font-semibold text-foreground",children:[null!=(o=null==m||null==(t=m.metrics)?void 0:t.averageVisibilityPct)?o:0,"%"]})]}),(0,n.jsxs)("div",{className:"rounded-lg border border-border/70 bg-background p-3",children:[(0,n.jsx)("p",{className:"text-xs text-muted-foreground",children:u("sentiment.lowSignal.metrics.confidence")}),(0,n.jsxs)("p",{className:"mt-1 text-lg font-semibold text-foreground",children:[null!=(l=null==m||null==(s=m.metrics)?void 0:s.averageConfidencePct)?l:0,"%"]})]}),(0,n.jsxs)("div",{className:"rounded-lg border border-border/70 bg-background p-3",children:[(0,n.jsx)("p",{className:"text-xs text-muted-foreground",children:u("sentiment.lowSignal.metrics.evidence")}),(0,n.jsx)("p",{className:"mt-1 text-lg font-semibold text-foreground",children:null!=(d=null==m||null==(i=m.metrics)?void 0:i.evidenceCount)?d:0})]})]})]}):(0,n.jsx)(w,{sentimentData:c})]})}},73263:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});let n={src:"/_next/static/media/chatgpt.d696f53d.png",height:1024,width:1024,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAHlBMVEUAAAAAAAAAAAAAAAAAAABMaXEAAAAAAAAAAAAAAAB9z2ibAAAACnRSTlODdU1bZgCiEzI4tTGKjgAAAAlwSFlzAAALEwAACxMBAJqcGAAAADFJREFUeJwFwYcBwDAMwzBSXun/DxdgDrbecFuh/IDGRgyJApoQkZYGPovUHvNq4eYHF+gAqatTcAYAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8}},83101:(e,r,t)=>{t.d(r,{F:()=>a});var n=t(2821);let s=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=n.$,a=(e,r)=>t=>{var n;if((null==r?void 0:r.variants)==null)return i(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:a,defaultVariants:o}=r,l=Object.keys(a).map(e=>{let r=null==t?void 0:t[e],n=null==o?void 0:o[e];if(null===r)return null;let i=s(r)||s(n);return a[e][i]}),d=t&&Object.entries(t).reduce((e,r)=>{let[t,n]=r;return void 0===n||(e[t]=n),e},{});return i(e,l,null==r||null==(n=r.compoundVariants)?void 0:n.reduce((e,r)=>{let{class:t,className:n,...s}=r;return Object.entries(s).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...o,...d}[r]):({...o,...d})[r]===t})?[...e,t,n]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}},85575:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});let n={src:"/_next/static/media/gemini.f14d0307.png",height:1024,width:1024,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAIVBMVEVEfcdShM4ul91RhtBue840l99ggdGGasBQitdbhdNEkNqv4k89AAAACXRSTlMBF3Mm6upzc+g5xnMZAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAMElEQVR4nEWLWwoAIAzDsqfT+x9YpoL9aUkJgAg3mbfNy5oPnytU/gCr6AtQfdbRNxP/AIhu/KH8AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},90919:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});let n={src:"/_next/static/media/perplexity.1e3cc983.svg",height:400,width:400,blurWidth:0,blurHeight:0}},95460:(e,r,t)=>{t.d(r,{Ay:()=>a,z9:()=>o});var n=t(95155),s=t(11647),i=t(64269);function a(e){var r=e.status,t=e.label,a=e.size,o=e.showDot,l=e.className;return(0,n.jsxs)(s.E,{variant:"outline",className:(0,i.cn)("font-medium border",{sm:"text-xs px-2 py-0.5",md:"text-xs px-2.5 py-0.5",lg:"text-sm px-3 py-1"}[void 0===a?"md":a],{exceptional:"bg-[var(--urgency-critical-bg)] text-[var(--urgency-critical-text)] border-[var(--urgency-critical-border)]",good:"bg-[var(--urgency-critical-bg)] text-[var(--urgency-critical-text)] border-[var(--urgency-critical-border)]",fair:"bg-[var(--urgency-medium-bg)] text-[var(--urgency-medium-text)] border-[var(--urgency-medium-border)]",poor:"bg-[var(--urgency-medium-bg)] text-[var(--urgency-medium-text)] border-[var(--urgency-medium-border)]",critical:"bg-[var(--error-bg)] text-[var(--error-text)] border-[var(--error-border)]",active:"bg-[var(--urgency-low-bg)] text-[var(--urgency-low-text)] border-[var(--urgency-low-border)]",inactive:"bg-[var(--muted)] text-[var(--muted-foreground)] border-[var(--border)]",pending:"bg-[var(--urgency-medium-bg)] text-[var(--urgency-medium-text)] border-[var(--urgency-medium-border)]",success:"bg-[var(--urgency-critical-bg)] text-[var(--urgency-critical-text)] border-[var(--urgency-critical-border)]",warning:"bg-[var(--urgency-medium-bg)] text-[var(--urgency-medium-text)] border-[var(--urgency-medium-border)]",error:"bg-[var(--error-bg)] text-[var(--error-text)] border-[var(--error-border)]",info:"bg-[var(--urgency-low-bg)] text-[var(--urgency-low-text)] border-[var(--urgency-low-border)]"}[r],l),children:[void 0!==o&&o&&(0,n.jsx)("span",{className:"mr-1.5 inline-block h-1.5 w-1.5 rounded-full bg-current"}),t||({exceptional:"Exceptional",good:"Good",fair:"Fair",poor:"Poor",critical:"Critical",active:"Active",inactive:"Inactive",pending:"Pending",success:"Success",warning:"Warning",error:"Error",info:"Info"})[r]]})}function o(e){return e>=90?"exceptional":e>=75?"good":e>=50?"fair":e>=25?"poor":"critical"}},96820:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});let n={src:"/_next/static/media/claude.ec410e3d.png",height:1200,width:1200,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAALVBMVEXAgUHYd1bad1fad1fad1fbd1fdd1Xgelnbd1fZd1fZdlnbdlbTd1fcdlbWeFeUDwNLAAAAD3RSTlMBQGt6pL0L+dGYHTMXUiZl+SxHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAOElEQVR4nAXBBwEAMAzDMKd3nz/cSfASOwVbYW4JKyJjCKTZPdyQvDunUz5j5N2U3G5YwTq23+IDKnoBTWUiXOgAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8}}}]);

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.