PageSourceSearch

https://www.offbrand.ai/_next/static/chunks/pages/reporting/report/[reportId]-82fd199485eb158b.js

js offbrand.ai collected 2026-10-05 12:21:02 UTC 61,208 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="61d08ff1-3bd9-4b22-88f9-545b0e83d953",e._sentryDebugIdIdentifier="sentry-dbid-61d08ff1-3bd9-4b22-88f9-545b0e83d953")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7297],{18847:(e,a,t)=>{e.exports=t(71147)},20944:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>F});var r=t(37876),n=t(14232),s=t(89099),i=t(8145),l=t.n(i),o=t(18847),c=t.n(o),d=t(44918),p=t(73524),h=t.n(p),m=t(27616),u=t.n(m);function g(e,a){let t=(function(e){try{return decodeURIComponent(e)}catch(a){return e}})(e).trim();if(!t)return;if(t.startsWith("http://")||t.startsWith("https://"))return t;if(!a)return;let r=t.split("/").pop()||t;return"/api/experience/screenshot/".concat(encodeURIComponent(a),"/").concat(encodeURIComponent(r))}function _(e){return e.replace(/^https?:\/\//,"").replace(/[^a-zA-Z0-9]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"").slice(0,40)}function x(e,a){var t,r,n,s;let i=e.issues.filter(e=>!e.id.startsWith("sim-issue-")).map(t=>{var r,n,s,i;let l={id:t.id,title:t.title,type:function(e){let a="".concat(e.category," ").concat(e.title," ").concat(e.description).toLowerCase();return["friction","cognitive","confusion","confus","jargon","unclear","audience","behavioral","ux","navigation","action","buyer","hesit","frustrat"].some(e=>a.includes(e))?"behavioral_friction":"rule_violation"}(t),description:t.description,observed:t.observed,whyItMatters:t.evidence,recommendedFix:t.recommendation,appearsIn:(()=>{var e,a,r;let n=null!=(a=null==(e=t.affectedPages)?void 0:e.map(e=>e.pageName).filter(Boolean))?a:[];if(0===n.length)return"Unknown page";let s=new Map;for(let e of n)s.set(e,(null!=(r=s.get(e))?r:0)+1);return Array.from(s.entries()).map(e=>{let[a,t]=e;return t>1?"".concat(a," (\xd7").concat(t,")"):a}).join(", ")})(),affectedPageUrls:null!=(s=null==(r=t.affectedPages)?void 0:r.map(e=>e.url))?s:[],affectedPagePreviews:null!=(i=null==(n=t.affectedPages)?void 0:n.map(e=>e.previewImageUrl||void 0))?i:[],status:"recent",category:t.category};return l.screenshotUrl=function(e,a,t){var r,n;let s=null==(r=e.affectedPagePreviews)?void 0:r.find(e=>!!e);if(s)return s;if(!a||!t)return;let i=e.affectedPageUrls.map(e=>_(e)).filter(e=>e.length>0);if(0!==i.length)for(let e of a.personas)for(let a of e.steps){if(!a.screenshotPath)continue;let e=null!=(n=a.screenshotPath.split("/").pop())?n:"",r=_(e),s=_(a.page.url),l=g(e,t),o=[r,s];if(i.some(e=>o.some(a=>a.includes(e))))return a.screenshotPath.startsWith("https://")?a.screenshotPath:l}}(l,a,e.simulationRunId),l}),l=[...null!=(n=null==a||null==(t=a.aggregated)?void 0:t.recommendedFixes)?n:[],...null!=(s=null==a||null==(r=a.aggregated)?void 0:r.topIssues)?s:[]];if(l.length>0){let a=new Set(i.map(e=>e.title.toLowerCase().trim()));l.forEach((t,r)=>{var n;if(!(null==t?void 0:t.issue))return;let s=t.issue.length>90?t.issue.slice(0,87)+"...":t.issue;if(a.has(s.toLowerCase().trim()))return;let l="sim-".concat(r,"-").concat(s.toLowerCase().replace(/[^a-z0-9]/g,"-").slice(0,24));i.push({id:l,title:s,type:"behavioral_friction",description:t.rationale||t.recommendation,observed:t.suggested_copy?'Suggested copy: "'.concat(t.suggested_copy,'"'):void 0,whyItMatters:t.rationale||"Identified during AI persona simulation",recommendedFix:t.recommendation,appearsIn:"Persona Simulation",affectedPageUrls:[],status:"recent",category:function(e){let a="".concat(e.issue," ").concat(e.rationale).toLowerCase();return a.match(/trust|credib|authentic|social proof/)?"Trust & Credibility":a.match(/navigat|find|search|menu|link|buried/)?"Navigation":a.match(/copy|message|tone|voice|headline|cta|wording/)?"Messaging":a.match(/confus|unclear|jargon|complex|overwhelm/)?"Clarity":a.match(/conver|sign.?up|purchase|checkout|action|button/)?"Conversion":"User Experience"}(t),screenshotUrl:g(null!=(n=t.screenshotUrl)?n:"",e.simulationRunId)}),a.add(s.toLowerCase().trim())})}return i}function f(e,a,t,r){var n,s,i,l;if(r&&r.length>0)return r.map(a=>{var t,r;let n=null!=(t=a.affectedGapIds)?t:[],s=[];for(let a of n){let t=e.find(e=>e.id===a);if((null==t?void 0:t.screenshotUrl)&&(s.push({screenshotUrl:t.screenshotUrl,pageUrl:null!=(r=t.affectedPageUrls[0])?r:"",pageName:t.appearsIn.split(",")[0].trim()}),s.length>=6))break}
1return{id:a.id,title:a.title,description:a.description,whyItMatters:a.whyItMatters,recommendedFix:a.recommendedFix,affectedGapIds:n,resolves:a.resolves,appearsIn:a.appearsIn,sources:s,type:"rule_violation"}});let o={};for(let a of e)o[a.category]||(o[a.category]=[]),o[a.category].push(a);let c=[],d=new Set;for(let[e,a]of Object.entries(o)){if(a.length<2)continue;let t=[...a].sort((e,a)=>{var t,r,n,s;let i={high:3,medium:2,low:1},l=null!=(n=i[null==(t=e.impact)?void 0:t.toLowerCase()])?n:1;return(null!=(s=i[null==(r=a.impact)?void 0:r.toLowerCase()])?s:1)-l}),r=t[0],s=t[1],i=[],l=new Set;for(let e of a){if(!e.screenshotUrl)continue;let a=null!=(n=e.affectedPageUrls[0])?n:"";if(!l.has(a)&&(l.add(a),i.push({screenshotUrl:e.screenshotUrl,pageUrl:a,pageName:e.appearsIn.split(",")[0].trim()}),i.length>=6))break}let o=[...new Set(a.flatMap(e=>e.appearsIn.split(",").map(e=>e.trim())).filter(Boolean))],p=a.map(e=>e.type),h=p.filter(e=>"behavioral_friction"===e).length>p.length/2?"behavioral_friction":"rule_violation",m="pa-".concat(e.replace(/\s+/g,"-").toLowerCase());for(let e of(c.push({id:m,title:r.title,description:r.description,whyItMatters:[r.whyItMatters,null==s?void 0:s.whyItMatters].filter(Boolean).join(" "),recommendedFix:r.recommendedFix,affectedGapIds:a.map(e=>e.id),appearsIn:o.join(", "),sources:i,type:h}),a))d.add(e.id)}for(let a of e){if(d.has(a.id)||"high"!==(null==(i=a.impact)||null==(s=i.toLowerCase)?void 0:s.call(i)))continue;let e=[];a.screenshotUrl&&e.push({screenshotUrl:a.screenshotUrl,pageUrl:null!=(l=a.affectedPageUrls[0])?l:"",pageName:a.appearsIn.split(",")[0].trim()}),c.push({id:"pa-single-".concat(a.id),title:a.title,description:a.description,whyItMatters:a.whyItMatters,recommendedFix:a.recommendedFix,affectedGapIds:[a.id],appearsIn:a.appearsIn,sources:e,type:a.type})}return c.sort((e,a)=>a.affectedGapIds.length-e.affectedGapIds.length),c.slice(0,5)}function v(e){let{src:a,containerClassName:t,imgClassName:n}=e;return(0,r.jsx)("div",{className:null!=t?t:"",children:(0,r.jsx)("img",{src:a,alt:"Screenshot",className:null!=n?n:""})})}let b=(0,r.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M23 4H10C8.9 4 8 4.9 8 6V34C8 35.1 8.9 36 10 36H30C31.1 36 32 35.1 32 34V13L23 4Z",stroke:"#D1D5DB",strokeWidth:"2",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M23 4V13H32",stroke:"#D1D5DB",strokeWidth:"2",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M15 20H25M15 26H25",stroke:"#D1D5DB",strokeWidth:"2",strokeLinecap:"round"})]});function j(e){let{title:a,subtext:t}=e;return(0,r.jsxs)("div",{className:u().emptyState,children:[(0,r.jsx)("div",{className:u().emptyIcon,children:b}),(0,r.jsx)("p",{className:u().emptyTitle,children:a}),(0,r.jsx)("p",{className:u().emptySubtext,children:t})]})}let B={priority:{title:"No systemic fixes are needed at this time.",subtext:"Offbrand will continue monitoring new content and will surface priority actions if emerging patterns or risks are detected."},recent:{title:"No new brand gaps detected.",subtext:"Your latest scan did not surface any new violations or behavioral friction."},persistent:{title:"No persistent issues.",subtext:"Previously detected gaps have been addressed or no longer appear in recent scans."},resolved:{title:"No issues resolved yet.",subtext:"Resolved brand gaps will appear here once Offbrand verifies fixes in a future scan."}};function y(e){let{open:a}=e;return(0,r.jsx)("svg",{className:"".concat(u().accordionChevron," ").concat(a?u().accordionChevronOpen:""),viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M6 9L12 15L18 9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})}let w=["Already Fixed","Known and accepted tradeoff","Not relevant to our audience"];function N(e){let{onCancel:a,onConfirm:t}=e,[s,i]=(0,n.useState)(""),[l,o]=(0,n.useState)("");return(0,r.jsx)("div",{className:u().modalBackdrop,onClick:a,children:(0,r.jsxs)("div",{className:u().modal,onClick:e=>e.stopPropagation(),children:[(0,r.jsx)("h3",{className:u().modalTitle,children:"Confirm Ignore?"}),(0,r.jsx)("p",{className:u().modalSubtitle,children:"Ignoring teaches the system. Give a reason so the model gets smarter."}),(0,r.jsx)("span",{className:u().modalFieldLabel,children:"Why are you ignoring the issue?"}),(0,r.jsx)("div",{className:u().radioGroup,children:w.map(e=>(0,r.jsxs)("label",{className:"".concat(u().radioOption," ").concat(s===e?u().radioOptionSelected:""),children:[(0,r.jsx)("input",{type:"radio",className:u().radioInput,checked:s===e,onChange:()=>i(e)}),(0,r.jsx)("span",{className:u().radioLabel,children:e})]},e))}),(0,r.jsx)("span",{className:u().modalFieldLabel,children:"Additional context (optional)"}),(0,r.jsx)("textarea",{className:u().textarea,placeholder:"Anything we should know?",value:l,onCh
1ange:e=>o(e.target.value)}),(0,r.jsxs)("div",{className:u().modalButtons,children:[(0,r.jsx)("button",{className:u().btnCancel,onClick:a,children:"Cancel"}),(0,r.jsx)("button",{className:u().btnConfirmIgnore,disabled:!s,onClick:()=>s&&t(s,l),children:"Confirm Ignore"})]})]})})}function V(e){let{gap:a,expanded:t,ignored:n,onToggle:s,onViewMoreContext:i,onIgnore:l,gapRef:o}=e,c=!!n;return(0,r.jsxs)("div",{ref:o,className:"".concat(u().gapCard," ").concat(c?u().gapCardResolved:""),children:[(0,r.jsx)("div",{className:u().tagsRow,children:c&&(0,r.jsxs)("span",{className:u().ignoredBadge,children:["Ignored by ",n.by]})}),(0,r.jsx)("h4",{className:u().cardTitle,children:a.title}),(0,r.jsxs)("p",{className:u().appearsIn,children:[(0,r.jsx)("span",{className:u().appearsInLabel,children:"Appears in:"})," ",a.appearsIn]}),(0,r.jsx)("p",{className:"".concat(u().cardDescription," ").concat(t?u().cardDescriptionFull:""),children:a.description}),(0,r.jsx)("div",{style:{display:"flex",justifyContent:"flex-end"},children:(0,r.jsx)("button",{className:u().moreDetailsBtn,onClick:s,children:t?"Close ↑":"More Details ↓"})}),t&&(0,r.jsxs)("div",{className:u().expandedSection,children:[(0,r.jsx)("hr",{className:u().expandedDivider}),(0,r.jsxs)("div",{className:u().sourceRow,children:[(0,r.jsx)("span",{className:u().sourceLabel,children:"Source"}),a.affectedPageUrls[0]&&(0,r.jsx)("a",{href:a.affectedPageUrls[0],target:"_blank",rel:"noopener noreferrer",className:u().viewUrlLink,children:"View URL"})]}),a.screenshotUrl?(0,r.jsx)("div",{className:u().singleScreenshot,children:(0,r.jsx)(v,{src:a.screenshotUrl,containerClassName:u().screenshotHighlightWrapper,imgClassName:u().screenshotImg})}):(0,r.jsx)("div",{className:"".concat(u().singleScreenshot," ").concat(u().screenshotPlaceholder),children:(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,r.jsx)("path",{d:"M21 15l-5-5L5 21M3 3l18 18",stroke:"#d1d5db",strokeWidth:"1.5",strokeLinecap:"round"})})}),a.observed&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:u().expandedSectionLabel,children:"What we observed"}),(0,r.jsx)("p",{className:u().expandedSectionText,children:a.observed})]}),(0,r.jsx)("p",{className:u().expandedSectionLabel,children:"Why it matters"}),(0,r.jsx)("p",{className:u().expandedSectionText,children:a.whyItMatters}),(0,r.jsx)("p",{className:u().expandedSectionLabel,children:"Recommended Fix"}),(0,r.jsx)("p",{className:u().expandedSectionText,children:a.recommendedFix}),(0,r.jsxs)("div",{className:u().actionButtons,children:[(0,r.jsx)("button",{className:u().btnSecondary,onClick:i,children:"View More Context"}),!c&&(0,r.jsx)("button",{className:u().btnOutline,onClick:l,children:"Ignore"})]})]})]})}function R(e){let{action:a,expanded:t,gaps:s,onToggle:i,onViewMoreContext:l,onIgnore:o,onClickAffectedGap:c}=e,d=a.affectedGapIds.map(e=>{let a=s.find(a=>a.id===e);return a?{type:"gap",gap:a}:{type:"label",label:e}}).filter(e=>"label"===e.type||"gap"===e.type),p=d.slice(0,4),h=d.length-p.length,[m,g]=(0,n.useState)(!1),_=m?d:p;return(0,r.jsxs)("div",{className:u().priorityCard,children:[(0,r.jsxs)("div",{className:u().priorityCardHeader,children:[(0,r.jsxs)("div",{className:u().tagsRow,children:[(0,r.jsxs)("span",{className:u().priorityBadge,children:[(0,r.jsx)("img",{src:"/icons/Weather Lightning.svg",alt:"Priority Action",style:{height:"1em",width:"auto"}}),"Priority Action"]}),(0,r.jsx)("span",{className:u().resolvesBadge,children:(()=>{var e;let t=null!=(e=a.resolves)?e:a.affectedGapIds.length;return(0,r.jsxs)(r.Fragment,{children:["Resolves: ",(0,r.jsx)("b",{style:{fontWeight:"bold"},children:t})," Brand Gap",1!==t?"s":""]})})()})]}),(0,r.jsx)("h4",{className:u().cardTitle,children:a.title}),(0,r.jsxs)("p",{className:u().appearsIn,children:[(0,r.jsx)("span",{className:u().appearsInLabel,children:"Appears in:"})," ",a.appearsIn]}),(0,r.jsx)("p",{className:"".concat(u().cardDescription," ").concat(t?u().cardDescriptionFull:""),children:a.description}),(0,r.jsx)("div",{style:{display:"flex",justifyContent:"flex-end"},children:(0,r.jsx)("button",{className:u().closeViewBtn,onClick:i,children:t?"Close ↑":"More Details ↓"})})]}),t&&(0,r.jsxs)("div",{style:{padding:"0 20px 20px"},children:[(0,r.jsx)("hr",{className:u().expandedDivider}),(0,r.jsxs)("div",{className:u().sourceRow,children:[(0,r.jsx)("span",{className:u().sourceLabel,children:"Source(s)"}),a.affectedGapIds.length>0&&(0,r.jsx)("button",{className:u().viewUrlLink,style:{background:"none",border:"none",cursor:"pointer"},children:"View URL(s)"})]}),a.sources.length>0?(0,r.jsx)("div",{className:u().screenshotGrid,children:a.sources.map((e,a)=>(0,r.jsx)("div",{className:u().screenshotThumb,children:(0,r.jsx)(v,{src:e.screenshotUrl,containerClassName:u().screenshotHighlightWrapper,imgClassName:u().screenshotImg})},a))}):(0,r.jsx)("div",{className:"".concat(u().screenshotGrid),children:Array.from({length:Math.min(3,a.affectedGapIds.length)}).map((e,a)=>(0,r.jsx)("div",{className:"".concat(u().screenshotThumb," ").concat(u().screenshotPlaceholder),children:(0,r.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",stroke:"#d1d5db",strokeWidth:"1.5"}),(0,r.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.5",fill:"#d1d5db"}),(0,r.jsx)("path",{d:"M3 15l5-5 4 4 3-3 6 6",stroke:"#d1d5db",strokeWidth:"1.5",strokeLinecap:"round"})]})},a))}),(0,r.jsx)("p",{className:u().expandedSectionLabel,children:"Affected Brand Gaps"}),(0,r.jsxs)("div",{className:u().affectedGapsList,children:[_.map((e,a)=>"gap"===e.type?(0,r.jsxs)("button",{className:u().affectedGapItem,onClick:()=>c(e.gap.id),children:[(0,r.jsx)("span",{className:u().affectedGapBullet}),e.gap.title]},e.gap.id):(0,r.jsxs)("div",{className:u().affectedGapItem,style:{cursor:"default"},children:[(0,r.jsx)("span",{className:u().affectedGapBullet}),e.label]},a)),!m&&h>0&&(0,r.jsxs)("button",{className:u().viewMoreGapsBtn,onClick:()=>g(!0),children:["View ",h," more..."]})]}),(0,r.jsx)("p",{className:u().expandedSectionLabel,children:"Why it matters"}),(0,r.jsx)("p",{className:u().expandedSectionText,children:a.whyItMatters}),(0,r.jsx)("p",{className:u().expandedSectionLabel,children:"Recommended Fix"}),(0,r.jsx)("p",{className:u().expandedSectionText,children:a.recommendedFix}),(0,r.jsxs)("div",{className:u().actionButtons,children:[(0,r.jsx)("button",{className:u().btnSecondary,onClick:()=>a.affectedGapIds[0]&&l(a.affectedGapIds[0]),children:"View More Context"}),(0,r.jsx)("button",{className:u().btnOutline,onClick:o,children:"Ignore"})]})]})]})}function S(e){let{id:a,label:t,count:n,open:s,isPriority:i,onToggle:l,children:o}=e;return(0,r.jsxs)("div",{className:u().accordionSection,children:[(0,r.jsxs)("button",{className:"".concat(u().accordionTrigger," ").concat(i?u().accordionTriggerPriority:""),onClick:l,"aria-expanded":s,children:[(0,r.jsx)(y,{open:s}),(0,r.jsx)("span",{className:u().accordionLabel,children:t}),i&&(0,r.jsx)("span",{className:u().accordionAiBadge,children:"AI Recommended"}),(0,r.jsx)("span",{style:{flex:1}}),(0,r.jsx)("span",{className:u().accordionCount,children:n})]}),(0,r.jsx)("div",{className:"".concat(u().accordionBody," ").concat(s?u().accordionBodyOpen:""," ").concat(i?u().accordionBodyPriority:""),children:o})]})}let C="offbrand_ignored_gaps";function H(e){let{report:a,simReport:t,onViewMoreContext:s,userEmail:i}
1=e,[l,o]=(0,n.useState)("all"),[c,d]=(0,n.useState)(new Set(["priority"])),[p,h]=(0,n.useState)(new Set),[m,g]=(0,n.useState)(new Set),[_,v]=(0,n.useState)(new Map),[b,y]=(0,n.useState)(null),w=(0,n.useRef)(new Map),H=x(a,t),L=f(H,t,a.simulationRunId,a.priorityActions);(0,n.useEffect)(()=>{try{let e=localStorage.getItem(C);if(e){let a=JSON.parse(e);v(new Map(Object.entries(a)))}}catch(e){}},[]),(0,n.useEffect)(()=>{try{let e={};_.forEach((a,t)=>{e[t]=a}),localStorage.setItem(C,JSON.stringify(e))}catch(e){}},[_]);let T=H.filter(e=>"all"===l||e.type===l),I=T.filter(e=>!_.has(e.id)),k=T.filter(e=>_.has(e.id)),G=L.filter(e=>"all"===l||e.type===l),D=(0,n.useCallback)(e=>{d(a=>{let t=new Set(a);return t.has(e)?t.delete(e):t.add(e),t})},[]),P=(0,n.useCallback)(e=>{h(a=>{let t=new Set(a);return t.has(e)?t.delete(e):t.add(e),t})},[]),A=(0,n.useCallback)(e=>{g(a=>{let t=new Set(a);return t.has(e)?t.delete(e):t.add(e),t})},[]),M=(0,n.useCallback)(e=>{h(a=>{let t=new Set(a);return t.add(e),t}),d(e=>{let a=new Set(e);return a.add("recent"),a.add("persistent"),a}),setTimeout(()=>{let a=w.current.get(e);a&&a.scrollIntoView({behavior:"smooth",block:"center"})},100)},[]),O=(0,n.useRef)(null),F=(0,n.useCallback)((e,a)=>{if(!b)return;let{gapId:t}=b,r=i||"you";v(n=>{let s=new Map(n);return s.set(t,{reason:a?"".concat(e,": ").concat(a):e,by:r}),s}),y(null),d(e=>{let a=new Set(e);return a.add("resolved"),a}),setTimeout(()=>{var e;null==(e=O.current)||e.scrollIntoView({behavior:"smooth",block:"start"})},120)},[b,i]),U=a.generatedAt?new Date(a.generatedAt).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):"Recently";return(0,r.jsxs)("div",{className:u().container,children:[(0,r.jsxs)("div",{className:u().pageHeader,children:[(0,r.jsxs)("div",{className:u().pageHeaderLeft,children:[(0,r.jsx)("h1",{className:u().pageTitle,children:"Brand Gaps"}),(0,r.jsxs)("p",{className:u().pageSubtitle,children:["Last Scan: ",U]})]}),(0,r.jsxs)("div",{className:u().syncChip,children:[(0,r.jsx)("span",{className:u().syncDot}),"Auto-syncing gaps on Jira"]})]}),(0,r.jsx)("div",{className:u().filterTabs,children:["all","rule_violation","behavioral_friction"].map(e=>(0,r.jsx)("button",{className:"".concat(u().filterTab," ").concat(l===e?u().filterTabActive:""),onClick:()=>o(e),children:{all:"All",rule_violation:"Rule Violation",behavioral_friction:"Behavioral Friction"}[e]},e))}),(0,r.jsxs)("div",{className:u().accordionList,children:[(0,r.jsx)(S,{id:"priority",label:"PRIORITY ACTIONS",count:G.length,open:c.has("priority"),isPriority:!0,onToggle:()=>D("priority"),children:0===G.length?(0,r.jsx)(j,{...B.priority}):(0,r.jsx)("div",{className:u().gapCardList,children:G.map(e=>(0,r.jsx)(R,{action:e,expanded:m.has(e.id),gaps:H,onToggle:()=>A(e.id),onViewMoreContext:e=>s(e),onIgnore:()=>{var a;return y({gapId:null!=(a=e.affectedGapIds[0])?a:"",isPriorityAction:!0})},onClickAffectedGap:M},e.id))})}),(0,r.jsx)(S,{id:"recent",label:"RECENT",count:I.length,open:c.has("recent"),onToggle:()=>D("recent"),children:0===I.length?(0,r.jsx)(j,{...B.recent}):(0,r.jsx)("div",{className:u().gapCardList,children:I.map(e=>(0,r.jsx)(V,{gap:e,expanded:p.has(e.id),ignored:_.get(e.id),onToggle:()=>P(e.id),onViewMoreContext:()=>s(e.id),onIgnore:()=>y({gapId:e.id}),gapRef:a=>w.current.set(e.id,a)},e.id))})}),(0,r.jsx)(S,{id:"persistent",label:"PERSISTENT",count:0,open:c.has("persistent"),onToggle:()=>D("persistent"),children:(0,r.jsx)(j,{...B.persistent})}),(0,r.jsx)("div",{ref:O,children:(0,r.jsx)(S,{id:"resolved",label:"RESOLVED",count:k.length,open:c.has("resolved"),onToggle:()=>D("resolved"),children:0===k.length?(0,r.jsx)(j,{...B.resolved}):(0,r.jsx)("div",{className:u().gapCardList,children:k.map(e=>(0,r.jsx)(V,{gap:e,expanded:p.has(e.id),ignored:_.get(e.id),onToggle:()=>P(e.id),onViewMoreContext:()=>s(e.id),onIgnore:()=>{},gapRef:a=>w.current.set(e.id,a)},e.id))})})}),b&&(0,r.jsx)(N,{onCancel:()=>y(null),onConfirm:F})]})]})}let L=c()(()=>Promise.all([t.e(2967),t.e(7690)]).then(t.bind(t,97690)),{loadableGenerated:{webpack:()=>[97690]},ssr:!1,loading:()=>(0,r.jsx)("div",{style:{padding:40,textAlign:"center",color:"#9ca3af"},children:"Loading ecosystem…"})}),T={toneAlignment:"Tone Alignment",messageConsistency:"Message Consistency",visualConsistency:"Visual Consistency",audie
1nceAlignment:"Audience Alignment"};function I(){return(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M3 8H13M13 8L8.5 3.5M13 8L8.5 12.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}function k(e){let{open:a=!1}=e;return(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",style:{transition:"transform 0.2s",transform:a?"rotate(180deg)":"none"},children:(0,r.jsx)("path",{d:"M6 9L12 15L18 9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function G(e){let{leverage:a,defaultExpanded:t=!1}=e,[s,i]=(0,n.useState)(t),l=a.competitors.length>0?"We compared your brand against ".concat(a.competitors.map(e=>e.name).join(", "),"."):"We compared your brand against key competitors.";return(0,r.jsxs)("div",{className:h().card,children:[(0,r.jsxs)("div",{className:h().collapsibleHeader,children:[(0,r.jsx)("h3",{className:h().collapsibleTitle,children:"Competitive Brand Leverage"}),(0,r.jsx)("div",{className:h().competitorDots,children:a.competitors.length>0?a.competitors.slice(0,5).map((e,a)=>e.logoUrl?(0,r.jsx)("div",{className:h().competitorDotLogo,title:e.name,children:(0,r.jsx)("img",{src:e.logoUrl,alt:e.name,className:h().competitorDotLogoImg})},a):(0,r.jsx)("div",{className:h().competitorDotInitial,title:e.name,children:e.name.charAt(0).toUpperCase()},a)):[0,1,2,3].map(e=>(0,r.jsx)("div",{className:h().competitorDot},e))})]}),(0,r.jsx)("p",{className:h().collapsibleSubtitle,children:l}),a.insight&&(0,r.jsx)("p",{className:h().collapsibleNarrative,children:a.insight}),(0,r.jsx)("div",{className:h().toggleBtnRow,children:(0,r.jsxs)("button",{className:h().toggleBtn,onClick:()=>i(e=>!e),children:[s?"Less Details":"More Details",(0,r.jsx)(k,{open:s})]})}),s&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("hr",{className:h().expandedDivider}),a.competitors.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:h().competitorTableHeader,children:[(0,r.jsx)("span",{className:h().competitorTableHeaderCell,children:"Brand"}),(0,r.jsx)("span",{className:h().competitorTableHeaderCell,children:"Proximity"}),(0,r.jsx)("span",{className:h().competitorTableHeaderCell,children:"Shared Signals"})]}),a.competitors.map((e,t)=>(0,r.jsxs)(n.Fragment,{children:[(0,r.jsxs)("div",{className:h().competitorRow,children:[(0,r.jsxs)("div",{className:h().competitorBrandCell,children:[(0,r.jsx)("div",{className:h().competitorAvatar,children:e.logoUrl?(0,r.jsx)("img",{src:e.logoUrl,alt:e.name,className:h().competitorAvatarImg}):null}),(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:h().competitorName,children:e.name}),(0,r.jsx)("span",{className:h().competitorDomain,children:e.url})]})]}),(0,r.jsx)("span",{className:h().competitorProximity,children:e.proximity}),(0,r.jsx)("span",{className:h().competitorSignals,children:e.sharedSignals.join(", ")})]}),t<a.competitors.length-1&&(0,r.jsx)("hr",{className:h().competitorRowDivider})]},t))]}),a.insight&&(0,r.jsxs)("div",{className:h().insightBox,children:["\uD83D\uDCA1 ",a.insight]}),a.opportunities.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h4",{className:h().leverageOppsTitle,children:"Brand Leverage Opportunities"}),a.opportunities.map((e,t)=>(0,r.jsxs)(n.Fragment,{children:[(0,r.jsxs)("div",{className:h().leverageOppRow,children:[(0,r.jsx)("div",{className:h().leverageOppType,children:e.type}),(0,r.jsx)("p",{className:h().leverageOppDesc,children:e.description})]}),t<a.opportunities.length-1&&(0,r.jsx)("hr",{className:h().leverageOppRowDivider})]},t))]})]})]})}function D(e){var a,t,s,i;let{simReport:l}=e,o=l.aggregated.overallScores,c=l.aggregated.journeySummary,d=l.aggregated.topIssues,p=l.aggregated.trustSignals,m=null==c?void 0:c.momentum.find(e=>"Commitment"===e.stage),u=(()=>{var e;if(!c)return null;let a=c.momentum.filter(e=>e.delta<0).length,t=null!=(e=null==m?void 0:m.delta)?e:0;return t<-5||a>=3?{label:"Fragile",color:"#ef4444"}:t<0||a>=2?{label:"Vulnerable",color:"#f59e0b"}:t>=5?{label:"Strong",color:"#22c55e"}:{label:"Stable",color:"#6366f1"}})(),g=o.avgTrustDelta<-1?{label:"Weak",color:"#ef4444"}:o.avgTrustDelta<0?{label:"Moderate",color:"#f59e0b"}:o.avgTrustDelta>=1?{label:"Strong",color:"#22c55e"}:{label:"Stable",color:"#6366f1"},_=(null==c?void 0:c.momentumInsight)||(m?"Confidence ".concat(m.delta<0?"continues to weaken":"holds steady"," at commitment-required moments."):"Decision confidence data not available."),x=o.avgTrustDelta>=0?"Credibility and positioning remain intact across primary touchpoints.":"Trust signals are weakening across the journey. Proof and credibility gaps detected.",f=e=>{for(let a of d){let t="".concat(a.issue," ").concat(a.recommendation).toLowerCase();if(e.some(e=>t.includes(e)))return a.recommendation}return null},v=o.avgFrictionScore>6?{label:"Persistent",color:"#f59e0b"}:o.avgFrictionScore>=4?{label:"Emerging",color:"#6366f1"}:{label:"Improving",color:"#22c55e"},b=o.avgClarityScore<5?{label:"Persistent",color:"#f59e0b"}:o.avgClarityScore<=7?{label:"Emerging",color:"#6366f1"}:{label:"Improving",color:"#22c55e"},j=o.avgTrustDelta<-1?{label:"Persistent",color:"#f59e0b"}:o.avgTrustDelta<=0?{label:"Emerging",color:"#6366f1"}:{label:"Improving",color:"#22c55e"},B=o.avgProofStrength<4?{label:"Persistent",color:"#f59e0b"}:o.avgProofStrength<=7?{label:"Emerging",color:"#6366f1"}:{label:"Improving",color:"#22c55e"},y=[{name:"Commitment Friction",status:v,description:m?"".concat(m.label," at Commitment stage (trust delta: ").concat(m.delta>0?"+":"").concat(m.delta.toFixed(1),")."):"Friction score: ".concat(o.avgFrictionScore.toFixed(1),"/10."),recommendation:null!=(a=f(["friction","cta","button","form","action","commitment"]))?a:"Simplify the conversion flow and reduce steps to commitment."},{name:"Action Ambiguity",status:b,description:(null==c?void 0:c.unansweredQuestions)&&c.unansweredQuestions.length>0?"".concat(c.unansweredQuestions.length," unanswered question").concat(c.unansweredQuestions.length>
11?"s":""," identified across personas."):"Clarity score: ".concat(o.avgClarityScore.toFixed(1),"/10."),recommendation:null!=(t=f(["clarity","clear","ambig","message","copy","headline"]))?t:"Strengthen call-to-action copy and make primary actions visually prominent."},{name:"Risk Sensitivity",status:j,description:(null==c?void 0:c.blockers)&&c.blockers.length>0?'Top blocker: "'.concat(c.blockers[0].issue,'" (affects ').concat(c.blockers[0].personaCount,"/").concat(c.blockers[0].totalPersonas," personas)."):"Average trust delta: ".concat(o.avgTrustDelta>0?"+":"").concat(o.avgTrustDelta.toFixed(2),"."),recommendation:null!=(s=f(["trust","proof","credib","testimonial","social","risk","security"]))?s:"Add social proof, testimonials, and trust signals near decision points."},{name:"Proof Impact",status:B,description:l.aggregated.topDelights.length>0?'Strongest proof element: "'.concat(l.aggregated.topDelights[0],'". Proof strength: ').concat(o.avgProofStrength.toFixed(1),"/10."):"Proof strength: ".concat(o.avgProofStrength.toFixed(1),"/10."),recommendation:null!=(i=f(["proof","evidence","case study","result","data","stat","outcome"]))?i:"Feature concrete results, case studies, and quantified outcomes prominently."}];return(0,r.jsxs)(r.Fragment,{children:[u&&(0,r.jsxs)("div",{className:h().simExpandedSection,style:{paddingBottom:16,borderBottom:"1px solid #f3f4f6"},children:[(0,r.jsxs)("div",{className:h().simStatusRow,children:[(0,r.jsx)("span",{className:h().simStatusLabel,children:"Decision Confidence"}),(0,r.jsx)("span",{className:h().simStatusBadge,style:{color:u.color,borderColor:u.color},children:u.label})]}),(0,r.jsx)("p",{className:h().simDesc,children:_})]}),(0,r.jsxs)("div",{className:h().simExpandedSection,style:{paddingTop:16},children:[(0,r.jsxs)("div",{className:h().simStatusRow,children:[(0,r.jsx)("span",{className:h().simStatusLabel,children:"Brand Trust"}),(0,r.jsx)("span",{className:h().simStatusBadge,style:{color:g.color,borderColor:g.color},children:g.label})]}),(0,r.jsx)("p",{className:h().simDesc,children:x})]}),c&&c.unansweredQuestions.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h4",{className:h().simSubheader,children:"Unanswered Questions"}),(0,r.jsx)("ul",{className:h().unansweredList,children:c.unansweredQuestions.map((e,a)=>(0,r.jsxs)("li",{className:h().unansweredItem,children:[(0,r.jsxs)("span",{className:h().unansweredNum,children:["#",a+1]}),(0,r.jsxs)("span",{className:h().unansweredText,children:["“",e.question,"”"]}),(0,r.jsxs)("span",{className:h().unansweredCount,children:["(",e.personaCount," persona",1!==e.personaCount?"s":"",")"]})]},a))})]}),(0,r.jsx)("h4",{className:h().simSubheader,children:"Confidence Signals"}),(0,r.jsxs)("div",{className:h().signalsTableHeader,children:[(0,r.jsx)("span",{className:h().signalsHeaderCell,children:"Signal"}),(0,r.jsx)("span",{className:h().signalsHeaderCell,children:"Status"})]}),y.map((e,a)=>(0,r.jsxs)(n.Fragment,{children:[(0,r.jsxs)("div",{className:h().signalRow,children:[(0,r.jsx)("span",{className:h().signalName,children:e.name}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:h().signalStatusText,children:[(0,r.jsxs)("span",{style:{fontWeight:700,color:e.status.color},children:["[",e.status.label,"]"]})," ",e.description]}),(0,r.jsxs)("p",{className:h().signalRec,children:["↓ ",e.recommendation]})]})]}),a<y.length-1&&(0,r.jsx)("hr",{className:h().signalRowDivider})]},e.name)),p&&p.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h4",{className:h().simSubheader,children:"Trust Signals"}),(0,r.jsxs)("div",{className:h().signalsTableHeader,children:[(0,r.jsx)("span",{className:h().signalsHeaderCell,children:"Focus Area"}),(0,r.jsx)("span",{className:h().signalsHeaderCell,children:"Status"})]}),p.map((e,a)=>{let t="Persistent"===e.status?"#f59e0b":"Improving"===e.status?"#22c55e":"#6366f1";return(0,r.jsxs)(n.Fragment,{children:[(0,r.jsxs)("div",{className:h().signalRow,children:[(0,r.jsx)("span",{className:h().signalName,children:e.focusArea}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:h().signalStatusText,children:[(0,r.jsxs)("span",{style:{fontWeight:700,color:t},children:["[",e.status,"]"]})," ",e.description]}),(0,r.jsxs)("p",{className:h().signalRec,children:["↓ ",e.recommendation]})]})]}),a<p.length-1&&(0,r.jsx)("hr",{className:h().signalRowDivider})]},e.focusArea)})]})]})}function P(e){var a;
1let{simReport:t,simLoading:s,simError:i,defaultExpanded:l=!1,channelAnalysis:o}=e,[c,d]=(0,n.useState)(l),p=(null==t||null==(a=t.aggregated.journeySummary)?void 0:a.journeyNarrative)||(o?o.slice(0,300):null);return(0,r.jsxs)("div",{className:h().card,children:[(0,r.jsxs)("div",{className:h().collapsibleHeader,children:[(0,r.jsx)("h3",{className:h().collapsibleTitle,children:"Simulated Customers"}),(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,r.jsx)("img",{src:"/images/offbrand agent row.svg",alt:"agents",style:{height:24,objectFit:"contain",display:"block"}}),(0,r.jsx)("span",{className:h().agentPill,children:"27 Agents used"})]})]}),(0,r.jsx)("p",{className:h().collapsibleSubtitle,children:"Modeled after simulated customers attempting to understand and experience your brand across the full journey."}),p&&(0,r.jsx)("p",{className:h().collapsibleNarrative,children:p}),(0,r.jsx)("div",{className:h().toggleBtnRow,children:(0,r.jsxs)("button",{className:h().toggleBtn,onClick:()=>d(e=>!e),children:[c?"Less Details":"More Details",(0,r.jsx)(k,{open:c})]})}),c&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("hr",{className:h().expandedDivider}),s&&(0,r.jsxs)("div",{style:{padding:"24px 0",textAlign:"center"},children:[(0,r.jsx)("div",{className:h().spinner,style:{margin:"0 auto 10px"}}),(0,r.jsx)("p",{style:{fontSize:13,color:"#6b7280"},children:"Loading simulation data…"})]}),i&&!s&&(0,r.jsx)("p",{style:{fontSize:13,color:"#ef4444",margin:0},children:i}),t&&!s&&(0,r.jsx)(D,{simReport:t}),!t&&!s&&!i&&(0,r.jsx)("p",{style:{fontSize:13,color:"#9ca3af",margin:0},children:"No simulation data available."})]})]})}function A(e){var a;let{report:t,onViewGaps:s}
1=e,[i,l]=(0,n.useState)(new Set(["toneAlignment"])),o=(null==(a=t.personalizedContent)?void 0:a.channelAnalysis)||t.brandHealthSummary;return(0,r.jsxs)("div",{className:h().card,style:{padding:0,overflow:"hidden"},children:[(0,r.jsxs)("div",{style:{padding:32,paddingBottom:24},children:[(0,r.jsx)("h3",{className:h().healthSectionTitle,children:"Brand Health Breakdown"}),o&&(0,r.jsx)("p",{className:h().healthSectionDesc,children:o})]}),t.brandHealthBreakdown&&(0,r.jsx)("div",{className:h().accordionList,children:Object.entries(t.brandHealthBreakdown).map(e=>{let[a,t]=e,n=i.has(a),o=T[a]||a.replace(/([A-Z])/g," $1").trim();return(0,r.jsxs)("div",{className:h().accordionItem,children:[(0,r.jsxs)("button",{className:h().accordionTrigger,onClick:()=>{l(e=>{let t=new Set(e);return t.has(a)?t.delete(a):t.add(a),t})},"aria-expanded":n,children:[(0,r.jsxs)("div",{className:h().accordionTriggerLeft,children:[(0,r.jsx)("div",{className:h().accordionCategoryName,children:o}),(0,r.jsxs)("div",{className:h().accordionScore,children:[t.score,"/",t.maxScore]})]}),(0,r.jsx)("span",{className:h().accordionChevron,children:(0,r.jsx)(k,{open:n})})]}),(0,r.jsx)("div",{className:"".concat(h().accordionBody," ").concat(n?h().accordionBodyOpen:""),children:(0,r.jsxs)("div",{className:h().accordionBodyInner,children:[(0,r.jsx)("p",{className:h().accordionDesc,children:t.description}),(0,r.jsx)("button",{className:h().viewGapsLink,onClick:s,children:"View Brand Gaps Found"})]})})]},a)})})]})}let M=e=>{var a,t,s,i,o,c,p;let{reportId:m}=e,{authUser:u}=(0,d.Z)(),[g,_]=(0,n.useState)(null),[v,b]=(0,n.useState)(!0),[j,B]=(0,n.useState)(null),[y,w]=(0,n.useState)(null),[N,V]=(0,n.useState)(null),[R,S]=(0,n.useState)(!1),[C,T]=(0,n.use
1State)(null),[k,D]=(0,n.useState)("report"),[M,O]=(0,n.useState)("overview"),[F,U]=(0,n.useState)(void 0),[E,W]=(0,n.useState)(null),[z,Q]=(0,n.useState)(!0);(0,n.useEffect)(()=>{m&&(b(!0),l().get("/api/reporting/reports/".concat(m)).then(e=>{_(e.data.report)}).catch(()=>B("Failed to load report")).finally(()=>b(!1)))},[m]);let q=()=>{(null==g?void 0:g.simulationRunId)&&!y&&!R&&(S(!0),T(null),fetch("/api/experience/status/".concat(g.simulationRunId)).then(e=>e.json()).then(e=>{e.report?w(e.report):T("Simulation report not available yet")}).catch(()=>T("Failed to load simulation data")).finally(()=>S(!1)))};(0,n.useEffect)(()=>{(null==g?void 0:g.simulationRunId)&&!y&&!R&&q()},[null==g?void 0:g.simulationRunId]),(0,n.useEffect)(()=>{var e,a;let t;if(!E||!N||!g)return;let r=g.issues.find(e=>e.id===E),n=null==r||null==(a=r.affectedPages)||null==(e=a[0])?void 0:e.url;if(n){let e=N.nodes.find(e=>("page"===e.type||"external_page"===e.type)&&e.data.url===n);if(e){let a=N.edges.find(a=>"viewed"===a.type&&a.target===e.id),r=a?N.nodes.find(e=>e.id===a.source):void 0,n=null==r?void 0:r.data.personaId;n&&(t="persona-".concat(n))}}U(t),W(null)},[E,N,g]);let J=e=>{D(e),"ecosystem"!==e&&(U(void 0),W(null)),"ecosystem"===e&&(null==g?void 0:g.simulationRunId)&&(q(),N||fetch("/api/experience/graph/".concat(g.simulationRunId)).then(e=>e.json()).then(e=>V(e)).catch(()=>{})),"gaps"===e&&(null==g?void 0:g.simulationRunId)&&q()},Y=(0,n.useMemo)(()=>{var e,a;let t=(null==g||null==(e=g.personalizedContent)?void 0:e.weeklyHighlights)||(null==g||null==(a=g.personalizedContent)?void 0:a.executiveSummary)||"";if(!t)return[];let r=t.split("\n").map(e=>e.trim()).filter(e=>e.length>10);return r.length>=2?r.slice(0,3):t.split(/\.\s+/).filter(e=>e.length>10).slice(0,3).map(e=>e+(e.endsWith(".")?"":"."))},[g]),X=(0,n.useMemo)(()=>{var e;let a=(null==g||null==(e=g.personalizedContent)?void 0:e.executiveSummary)||(null==g?void 0:g.brandHealthSummary)||"";if(!a)return"";let t=a.split(/\.\s+/).filter(e=>e.length>20&&e.length<120);return t.length>0?t[t.length-1].trim()+".":a+"..."},[g]),Z=null!=(o=null==g?void 0:g.brandHealth)?o:0,K=null!=(c=null==g?void 0:g.brandHealthChange)?c:0,$=K<0?"↓":K>0?"↑":"",ee=Math.abs(K),{brandGapsCount:ea,priorityActionsCount:et}=(0,n.useMemo)(()=>{if(!g)return{brandGapsCount:0,priorityActionsCount:0};let e=x(g,y),a=f(e,y,g.simulationRunId,g.priorityActions);return{brandGapsCount:e.length,priorityActionsCount:a.length}},[g,y]),er=(null==g?void 0:g.generatedAt)?new Date(g.generatedAt).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"2-digit"}):(null==g?void 0:g.period)||"",en=(0,n.useMemo)(()=>{var e,a;if(!g)return null;let t=g.websiteUrl||g.brandWebsiteUrl||g.siteUrl;if("string"==typeof t&&t.trim())try{let e=new URL(t).hostname;return"https://www.google.com/s2/favicons?domain=".concat(e,"&sz=128")}catch(e){}let r=null==(a=g.issues)||null==(e=a.flatMap(e=>e.affectedPages||[]).find(e=>"string"==typeof e.url&&e.url.trim()))?void 0:e.url;if(!r)return null;try{let e=new URL(r).hostname;return"https://www.google.com/s2/favicons?domain=".concat(e,"&sz=128")}catch(e){return null}},[g]);(0,n.useEffect)(()=>{Q(!0)},[en]);let es=null==y?void 0:y.personas.reduce((e,a)=>e+a.steps.length,0);return v?(0,r.jsxs)("div",{className:h().loadingShell,children:[(0,r.jsx)("div",{className:h().spinner}),(0,r.jsx)("span",{style:{fontSize:14,color:"#9ca3af"},children:"Loading report…"})]}):j||!g?(0,r.jsx)("div",{className:h().errorShell,children:(0,r.jsx)("p",{className:h().errorText,children:j||"Report not found"})}):(0,r.jsxs)("div",{className:h().pageShell,children:[(0,r.jsx)("nav",{className:h().navbar,children:(0,r.jsxs)("div",{className:h().navInner,children:[(0,r.jsx)("div",{className:h().navLogo,children:(0,r.jsx)("img",{src:"/images/offbrand logo.svg",alt:"offbrand",className:h().navLogoImg})}),(0,r.jsx)("div",{className:h().navTabs,children:[{id:"report",label:"Report"},{id:"gaps",label:"Brand Gaps"},{id:"ecosystem",label:"Brand Ecosystem"}].map(e=>(0,r.jsx)("button",{className:"".concat(h().navTab," ").concat(k===e.id?h().navTabActive:""),onClick:()=>J(e.id),children:e.label},e.id))}),(0,r.jsx)("div",{className:h().navBrandLogo,children:g.brandLogoUrl?(0,r.jsx)("img",{src:g.brandLogoUrl,alt:"Brand",style:{height:40,objectFit:"contain",display:"block"}}):(0,r.jsx)("div",{style:{width:40,height:40}})})]})}),"report"===k&&(0,r.jsxs)("div",{className:h().contentWrapper,children:[(0,r.jsxs)("div",{className:h().pageTitleRow,children:[(0,r.jsx)("h1",{className:h().pageTitle,children:"Brand Visibility Report"}),er&&(0,r.jsxs)("span",{className:h().lastUpdated,children:["Last Updated ",er]}
1)]}),(0,r.jsx)("div",{className:h().subTabBar,children:[{id:"overview",label:"Overview"},{id:"competitive",label:"Competitive Leverage"},{id:"simulation",label:"Simulated Customers"},{id:"health",label:"Brand Health"}].map(e=>(0,r.jsx)("button",{className:"".concat(h().subTab," ").concat(M===e.id?h().subTabActive:""),onClick:()=>O(e.id),children:e.label},e.id))}),"overview"===M&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:h().card,children:[(0,r.jsxs)("div",{className:h().heroRow1,children:[(0,r.jsx)("img",{src:"/images/offbrand logo.svg",alt:"offbrand",style:{width:80,height:16}}),(0,r.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,r.jsx)("img",{src:"/images/offbrand agent row 2.svg",alt:"agents",style:{height:24,objectFit:"contain",display:"block"}}),(0,r.jsx)("span",{className:h().agentPill,children:"27 Agents used"})]})]}),(0,r.jsx)("div",{className:h().cardDivider}),en&&z?(0,r.jsx)("img",{src:en,alt:"Website logo",className:h().heroFavicon,onError:()=>Q(!1)}):(0,r.jsx)("div",{className:h().heroFavicon}),(0,r.jsx)("h2",{className:h().heroHeadline,children:((null==(a=g.personalizedContent)?void 0:a.headerText)||"BRAND STRENGTH REMAINS SOLID, BUT COHESION IS SLIPPING.").toUpperCase()}),(0,r.jsx)("p",{className:h().heroSubtitle,children:(null==(t=g.personalizedContent)?void 0:t.littleSummary)||g.brandHealthSummary}),(0,r.jsxs)("div",{className:h().metricsGrid,children:[(0,r.jsxs)("div",{className:h().metricCol,children:[(0,r.jsx)("div",{className:h().metricProgressBar}),(0,r.jsx)("span",{className:h().metricLabel,children:"Brand Gaps Found"}),(0,r.jsx)("div",{className:h().metricValue,children:ea}),(0,r.jsxs)("button",{className:h().metricActionBtn,onClick:()=>J("gaps"),children:["View Brand Gaps",(0,r.jsx)(I,{})]})]}),(0,r.jsxs)("div",{className:h().metricCol,children:[(0,r.jsx)("div",{className:"".concat(h().metricProgressBar," ").concat(h().metricProgressBarBlack)}),(0,r.jsx)("span",{className:"".concat(h().metricLabel," ").concat(h().metricLabelDark),children:"Priority Actions"}),(0,r.jsx)("div",{className:h().metricValue,children:et}),(0,r.jsxs)("button",{className:"".concat(h().metricActionBtn," ").concat(h().metricActionBtnBlack),onClick:()=>J("gaps"),children:["View Priority Actions",(0,r.jsx)(I,{})]})]}),(0,r.jsxs)("div",{className:h().metricCol,children:[(0,r.jsx)("div",{className:"".concat(h().metricProgressBar," ").concat(h().metricProgressBarMuted)}),(0,r.jsx)("span",{className:"".concat(h().metricLabel," ").concat(h().metricLabelMuted),children:"Brand Health Score"}),(0,r.jsxs)("div",{className:h().metricValue,children:[Z,"%"]}),(0,r.jsxs)("span",{className:h().metricChangeText,children:[$?"".concat($," "):"",ee,"% from last report"]})]})]}),(0,r.jsxs)("div",{className:h().touchpointRow,children:[(0,r.jsxs)("p",{className:h().touchpointText,children:[(0,r.jsxs)("strong",{children:[null!=es?es:0," total brand touchpoints"]})," now mapped in your brand ecosystem"]}),(0,r.jsx)("button",{className:h().touchpointLink,onClick:()=>J("ecosystem"),children:"View Brand Ecosystem"})]}),(0,r.jsx)("p",{className:h().sectionLabel,style:{marginTop:36,marginBottom:0},children:"Top Takeaways"}),Y.length>0?(0,r.jsx)("div",{className:h().takeawaysList,style:{marginTop:20},children:Y.map((e,a)=>(0,r.jsx)("div",{className:h().takeawayItem,children:e},a))}):(0,r.jsx)("p",{style:{fontSize:13,color:"#9ca3af",margin:"12px 0 0"},children:"No highlights available yet."}
1),(0,r.jsxs)("div",{className:h().leadershipBlock,children:[(0,r.jsx)("p",{className:h().leadershipLabel,children:"One line for leadership"}),X?(0,r.jsxs)("p",{className:h().leadershipQuote,children:["“",X,"”"]}):(0,r.jsx)("p",{style:{fontSize:13,color:"#9ca3af",margin:0,fontStyle:"italic"},children:"No leadership summary available."})]})]}),g.competitiveLeverage&&(0,r.jsx)(G,{leverage:g.competitiveLeverage}),(0,r.jsx)(P,{simReport:y,simLoading:R,simError:C,channelAnalysis:null==(s=g.personalizedContent)?void 0:s.channelAnalysis}),(0,r.jsx)(A,{report:g,onViewGaps:()=>J("gaps")})]}),"competitive"===M&&(0,r.jsx)(r.Fragment,{children:g.competitiveLeverage?(0,r.jsx)(G,{leverage:g.competitiveLeverage,defaultExpanded:!0}):(0,r.jsx)("div",{className:h().card,children:(0,r.jsx)("p",{style:{fontSize:14,color:"#9ca3af",margin:0},children:"No competitive leverage data available for this report."})})}),"simulation"===M&&(0,r.jsx)(P,{simReport:y,simLoading:R,simError:C,defaultExpanded:!0,channelAnalysis:null==(i=g.personalizedContent)?void 0:i.channelAnalysis}),"health"===M&&(0,r.jsx)(A,{report:g,onViewGaps:()=>J("gaps")})]}),"gaps"===k&&(0,r.jsx)(H,{report:g,simReport:y,userEmail:null!=(p=null==u?void 0:u.email)?p:void 0,onViewMoreContext:e=>{W(e),D("ecosystem"),J("ecosystem")}}),"ecosystem"===k&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{style:{maxWidth:700,margin:"0 auto",padding:"0 16px"},children:(0,r.jsxs)("button",{onClick:()=>{U(void 0),D("gaps")},style:{display:"inline-flex",alignItems:"center",gap:6,background:"none",border:"none",cursor:"pointer",fontSize:14,fontWeight:600,color:"#6b7280",padding:"12px 0"},children:[(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:(0,r.jsx)("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),"Back to Brand Gaps"]})}),g.simulationRunId?N&&y?(0,r.jsx)(L,{graph:N,report:y,initialFocusNodeId:F}):(0,r.jsx)("div",{style:{padding:"40px 24px",textAlign:"center",color:"#9ca3af",fontSize:14},children:R?"Loading simulation data…":"Loading brand ecosystem…"}):(0,r.jsxs)("div",{style:{maxWidth:700,margin:"0 auto",padding:"60px 16px",textAlign:"center"},children:[(0,r.jsx)("p",{style:{fontSize:16,fontWeight:600,color:"#111827",marginBottom:8},children:"No simulation linked"}),(0,r.jsx)("p",{style:{fontSize:14,color:"#6b7280",marginBottom:24},children:"Run a full analysis to link AI simulation data to this report."})]})]})]})},O=()=>{let e=(0,s.useRouter)(),{reportId:a}=e.query;return(console.log("reportId",a),e.isReady&&a&&"[reportId]"!==a)?(0,r.jsx)(M,{reportId:a}):(0,r.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:"Loading report..."})};O.requireAuth=!1;let F=O},21650:(e,a,t)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"LoadableContext",{enumerable:!0,get:function(){return r}});let r=t(64252)._(t(14232)).default.createContext(null)},27616:e=>{e.exports={container:"BrandGapsView_container__JMoNh",pageHeader:"BrandGapsView_pageHeader__7ogvD",pageHeaderLeft:"BrandGapsView_pageHeaderLeft__f7DbS",pageTitle:"BrandGapsView_pageTitle__tFjAp",pageSubtitle:"BrandGapsView_pageSubtitle__tOwSi",syncChip:"BrandGapsView_syncChip__jOC2A",syncDot:"BrandGapsView_syncDot__uqwLu",filterTabs:"BrandGapsView_filterTabs__BSfDk",filterTab:"BrandGapsView_filterTab__TC5TY",filterTabActive:"BrandGapsView_filterTabActive__TWYPj",accordionList:"BrandGapsView_accordionList__HuCxg",accordionSection:"BrandGapsView_accordionSection__CyZsC",accordionTrigger:"BrandGapsView_accordionTrigger__7WGfU",accordionTriggerPriority:"BrandGapsView_accordionTriggerPriority__juOFP",accordionChevron:"BrandGapsView_accordionChevron__NeeMv",accordionChevronOpen:"BrandGapsView_accordionChevronOpen__DuKaY",accordionLabel:"BrandGapsView_accordionLabel__2eOsx",accordionAiBadge:"BrandGapsView_accordionAiBadge__RX5W1",accordionCount:"BrandGapsView_accordionCount__c5exV",accordionBody:"BrandGapsView_accordionBody__pCX5g",accordionBodyOpen:"BrandGapsView_accordionBodyOpen__6Odto",accordionBodyPriority:"BrandGapsView_accordionBodyPriority__qQYzw",gapCardList:"BrandGapsView_gapCardList___8sUZ",gapCard:"BrandGapsView_gapCard__0j
1F2S",gapCardResolved:"BrandGapsView_gapCardResolved__pEN8e",priorityCard:"BrandGapsView_priorityCard___x2r2",priorityCardHeader:"BrandGapsView_priorityCardHeader__w6Mym",cardHeaderRow:"BrandGapsView_cardHeaderRow__9ES3q",cardTitle:"BrandGapsView_cardTitle__u4niG",closeViewBtn:"BrandGapsView_closeViewBtn__vHSFh",moreDetailsBtn:"BrandGapsView_moreDetailsBtn__LYeFX",tagsRow:"BrandGapsView_tagsRow__8Anbp",typeBadge:"BrandGapsView_typeBadge__1BeYu",priorityBadge:"BrandGapsView_priorityBadge__UPzSY",resolvesBadge:"BrandGapsView_resolvesBadge__i_ko1",ignoredBadge:"BrandGapsView_ignoredBadge__kWVeX",appearsIn:"BrandGapsView_appearsIn__jAnYD",appearsInLabel:"BrandGapsView_appearsInLabel__pT6B7",cardDescription:"BrandGapsView_cardDescription__m5Mkp",cardDescriptionFull:"BrandGapsView_cardDescriptionFull__NJ0DD",expandedDivider:"BrandGapsView_expandedDivider___zNgG",expandedSection:"BrandGapsView_expandedSection__AH5en",expandedSectionLabel:"BrandGapsView_expandedSectionLabel__Yb5VW",expandedSectionText:"BrandGapsView_expandedSectionText__5fhpI",sourceRow:"BrandGapsView_sourceRow__2qq5O",sourceLabel:"BrandGapsView_sourceLabel__BToJq",viewUrlLink:"BrandGapsView_viewUrlLink__u10eP",screenshotGrid:"BrandGapsView_screenshotGrid__rVV7D",screenshotThumb:"BrandGapsView_screenshotThumb__citdh",screenshotImg:"BrandGapsView_screenshotImg__8MTxo",screenshotPlaceholder:"BrandGapsView_screenshotPlaceholder__tG6ZW",singleScreenshot:"BrandGapsView_singleScreenshot__fc3az",affectedGapsList:"BrandGapsView_affectedGapsList__F43iM",affectedGapItem:"BrandGapsView_affectedGapItem__OoZ7P",affectedGapBullet:"BrandGapsView_affectedGapBullet__m2ki6",viewMoreGapsBtn:"BrandGapsView_viewMoreGapsBtn__5ezh_",actionButtons:"BrandGapsView_actionButtons__TOdyr",btnSecondary:"BrandGapsView_btnSecondary__xGizg",btnOutline:"BrandGapsView_btnOutline__cOQPJ",emptyState:"BrandGapsView_emptyState__PhE5_",emptyIcon:"BrandGapsView_emptyIcon__R2zyI",emptyTitle:"BrandGapsView_emptyTitle__DDHr_",emptySubtext:"BrandGapsView_emptySubtext__fbRqF",modalBackdrop:"BrandGapsView_modalBackdrop__s_N2E",modal:"BrandGapsView_modal__jRjNb",modalTitle:"BrandGapsView_modalTitle__E6zPT",modalSubtitle:"BrandGapsView_modalSubtitle___pW1b",modalFieldLabel:"BrandGapsView_modalFieldLabel__mhDNa",radioGroup:"BrandGapsView_radioGroup__7Rrzk",radioOption:"BrandGapsView_radioOption__zq88X",radioOptionSelected:"BrandGapsView_radioOptionSelected__HqjJJ",radioInput:"BrandGapsView_radioInput__TDg_5",radioLabel:"BrandGapsView_radioLabel__rapUB",textarea:"BrandGapsView_textarea__u6gAX",modalButtons:"BrandGapsView_modalButtons___KXkF",btnCancel:"BrandGapsView_btnCancel___3Xex",btnConfirmIgnore:"BrandGapsView_btnConfirmIgnore__IKYXW",screenshotHighlightWrapper:"BrandGapsView_screenshotHighlightWrapper__89tbA",screenshotHighlightCanvas:"BrandGapsView_screenshotHighlightCanvas__8gY47"}},45763:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/reporting/report/[reportId]",function(){return t(20944)}])},52100:(e,a,t)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return h}});let r=t(64252)._(t(14232)),n=t(21650),s=[],i=[],l=!1;function o(e){let a=e(),t={loading:!0,loaded:null,error:null};return t.promise=a.then(e=>(t.loading=!1,t.loaded=e,e)).catch(e=>{throw t.loading=!1,t.error=e,e}),t}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:a}=this;e.loading&&("number"==typeof a.delay&&(0===a.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},a.delay)),"number"==typeof a.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},a.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,a){this._loadFn=e,this._opts=a,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,a){let t=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},a),s=null;function o(){if(!s){let a=new c(e,t);s={getCurrentValue:a.getCurrentValue.bind(a),subscribe:a.subscribe.bind(a),retry:a.retry.bind(a),promise:a.promise.bind(a)}}return s.promise()}if(!l){let e=t.webpack&&1?t.webpack():t.modules;e&&i.push(a=>{for(let t of e)if(a.includes(t))return o()})}function d(e,a){o();let i=r.default.useContext(n.LoadableContext);
1i&&Array.isArray(t.modules)&&t.modules.forEach(e=>{i(e)});let l=r.default.useSyncExternalStore(s.subscribe,s.getCurrentValue,s.getCurrentValue);return r.default.useImperativeHandle(a,()=>({retry:s.retry}),[]),r.default.useMemo(()=>{var a;return l.loading||l.error?r.default.createElement(t.loading,{isLoading:l.loading,pastDelay:l.pastDelay,timedOut:l.timedOut,error:l.error,retry:s.retry}):l.loaded?r.default.createElement((a=l.loaded)&&a.default?a.default:a,e):null},[e,l])}return d.preload=()=>o(),d.displayName="LoadableComponent",r.default.forwardRef(d)}(o,e)}function p(e,a){let t=[];for(;e.length;){let r=e.pop();t.push(r(a))}return Promise.all(t).then(()=>{if(e.length)return p(e,a)})}d.preloadAll=()=>new Promise((e,a)=>{p(s).then(e,a)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(a=>{let t=()=>(l=!0,a());p(i,e).then(t,t)})),window.__NEXT_PRELOADREADY=d.preloadReady;let h=d},71147:(e,a,t)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),!function(e,a){for(var t in a)Object.defineProperty(e,t,{enumerable:!0,get:a[t]})}(a,{default:function(){return l},noSSR:function(){return i}});let r=t(64252);t(37876),t(14232);let n=r._(t(52100));function s(e){return{default:(null==e?void 0:e.default)||e}}function i(e,a){return delete a.webpack,delete a.modules,e(a)}function l(e,a){let t=n.default,r={loading:e=>{let{error:a,isLoading:t,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e});let l=(r={...r,...a}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?t({...r,loader:()=>null!=l?l().then(s):Promise.resolve(s(()=>null))}):(delete r.webpack,delete r.modules,i(t,r))}("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),e.exports=a.default)},73524:e=>{e.exports={pageShell:"BrandHealthReportV2_pageShell__VDulG",heroHeadline:"BrandHealthReportV2_heroHeadline__ct39S",metricValue:"BrandHealthReportV2_metricValue__a1zxY",accordionScore:"BrandHealthReportV2_accordionScore__Gz9rG",navbar:"BrandHealthReportV2_navbar__MIt8J",navInner:"BrandHealthReportV2_navInner__0RNfF",navLogo:"BrandHealthReportV2_navLogo__c2cZG",navLogoImg:"BrandHealthReportV2_navLogoImg__03bXE",navTabs:"BrandHealthReportV2_navTabs__qiYkO",navTab:"BrandHealthReportV2_navTab__QebLM",navTabActive:"BrandHealthReportV2_navTabActive__6nVRv",navBrandLogo:"BrandHealthReportV2_navBrandLogo__k1wI7",contentWrapper:"BrandHealthReportV2_contentWrapper__zWZC8",pageTitleRow:"BrandHealthReportV2_pageTitleRow__TOqyO",pageTitle:"BrandHealthReportV2_pageTitle__lJqB8",lastUpdated:"BrandHealthReportV2_lastUpdated__iz1QE",subTabBar:"BrandHealthReportV2_subTabBar__YDEtc",subTab:"BrandHealthReportV2_subTab__mGcoV",subTabActive:"BrandHealthReportV2_subTabActive__jvVRJ",card:"BrandHealthReportV2_card__CKS3T",cardDivider:"BrandHealthReportV2_cardDivider__vzKRr",sectionLabel:"BrandHealthReportV2_sectionLabel__q283U",sectionLabelDark:"BrandHealthReportV2_sectionLabelDark__Q1UrA",sectionLabelMuted:"BrandHealthReportV2_sectionLabelMuted__LDTQV",heroRow1:"BrandHealthReportV2_heroRow1__M1_qZ",heroBrandLogoRow:"BrandHealthReportV2_heroBrandLogoRow__Jl9fD",heroSubtitle:"BrandHealthReportV2_heroSubtitle__0__w9",heroFavicon:"BrandHealthReportV2_heroFavicon__Q_lov",agentPill:"BrandHealthReportV2_agentPill__6fWfI",metricsGrid:"BrandHealthReportV2_metricsGrid__hPSMC",metricCol:"BrandHealthReportV2_metricCol__ccy33",metricProgressBar:"BrandHealthReportV2_metricProgressBar__oTInJ",metricProgressBarBlack:"BrandHealthReportV2_metricProgressBarBlack__MNrmw",metricProgressBarMuted:"BrandHealthReportV2_metricProgressBarMuted__VNpok",metricLabel:"BrandHealthReportV2_metricLabel__tfAKs",metricLabelDark:"BrandHealthReportV2_metricLabelDark__cA0QE",metricLabelMuted:"BrandHealthReportV2_metricLabelMuted__62qI1",metricChangeText:"BrandHealthReportV2_metricChangeText__0l47V",metricActionBtn:"BrandHealthReportV2_metricActionBtn__nPUQs",metricActionBtnBlack:"BrandHealthReportV2_metricActionBtnBlack___34HX",touchpointRow:"BrandHealthReportV2_touchpointRow__htPrc",touchpointText:"BrandHealthReportV2_touchpointText__U0ipe",touchpointLink:"BrandHealthReportV2_touchpointLink__qHzQU",takeawaysList:"BrandHealthReportV2_takeawaysList__A82RF",takeawayItem:"BrandHealthReportV2_takeawayItem__he8vr",leadershipBlock:"BrandHealthReportV2_leadershipBlock__CSO3D",leadershipLabel:"BrandHealthReportV2_leadershipLabel__cGgcX",leadershipQuote:"BrandHealthReportV2_leadershipQuote__fSVPL",collapsibleHeader:"BrandHealthReportV2_collapsibleHeader__W0yw4",collapsibleTitle:"BrandHealthReportV2_collapsibleTitle__pHCQV",collapsibleSubtitle:"BrandHealthReportV2_collapsibleSubtitle__szFnl",collapsibleNarrative:"BrandHealthReportV2_collapsibleNarrative__e9eiJ",toggleBtn:"BrandHealthReportV2_toggleBtn__f0g3h",toggleBtnRow:"BrandHealthReportV2_toggleBtnRow__GiX0p",toggleChevron:"BrandHealthReportV2_toggleChevron___SUso",toggleChevronOpen:"BrandHealthReportV2_toggleChevronOpen__If5_w",expandedDivider:"BrandHealthReportV2_expandedDivider__gofbT",competitorDots:"BrandHealthReportV2_competitorDots__amDP5",competitorDot:"BrandHealthReportV2_competitorDot__dGKZH",competitorDotLogo:"BrandHealthReportV2_competitorDotLogo__aqhJc",competitorDotLogoImg:"BrandHealthReportV2_competitorDotLogoImg__kn5V_",competitorDotInitial:"BrandHealthReportV2_competitorDotInitial__998VK",competitorTableHeader:"BrandHealthReportV2_competitorTableHeader__DYwEV",competitorTableHeaderCell:"BrandHealthReportV2_competitorTableHeaderCell__nL
15LN",competitorRow:"BrandHealthReportV2_competitorRow__y7U_8",competitorRowDivider:"BrandHealthReportV2_competitorRowDivider__Lu1AI",competitorBrandCell:"BrandHealthReportV2_competitorBrandCell__OCp89",competitorAvatar:"BrandHealthReportV2_competitorAvatar__Q9fp_",competitorAvatarImg:"BrandHealthReportV2_competitorAvatarImg__TdwiV",competitorName:"BrandHealthReportV2_competitorName__9uw3B",competitorDomain:"BrandHealthReportV2_competitorDomain__gCysK",competitorProximity:"BrandHealthReportV2_competitorProximity__dAE29",competitorSignals:"BrandHealthReportV2_competitorSignals__wwNhZ",insightBox:"BrandHealthReportV2_insightBox__Sh_Qi",leverageOppsTitle:"BrandHealthReportV2_leverageOppsTitle__egkNM",leverageOppRow:"BrandHealthReportV2_leverageOppRow__P5rCP",leverageOppRowDivider:"BrandHealthReportV2_leverageOppRowDivider__WhdbV",leverageOppType:"BrandHealthReportV2_leverageOppType__P_bAE",leverageOppDesc:"BrandHealthReportV2_leverageOppDesc__taJ13",simExpandedSection:"BrandHealthReportV2_simExpandedSection__Eo8I5",simStatusRow:"BrandHealthReportV2_simStatusRow__cZ2hr",simStatusLabel:"BrandHealthReportV2_simStatusLabel__jtt1c",simStatusBadge:"BrandHealthReportV2_simStatusBadge__Yv3Ki",simDesc:"BrandHealthReportV2_simDesc__Q1z6N",simSubheader:"BrandHealthReportV2_simSubheader__MkxLm",unansweredList:"BrandHealthReportV2_unansweredList__mu_jU",unansweredItem:"BrandHealthReportV2_unansweredItem__lskS9",unansweredNum:"BrandHealthReportV2_unansweredNum__UlqNK",unansweredText:"BrandHealthReportV2_unansweredText__c1GrJ",unansweredCount:"BrandHealthReportV2_unansweredCount__9QLMD",signalsTableHeader:"BrandHealthReportV2_signalsTableHeader__4Yxhg",signalsHeaderCell:"BrandHealthReportV2_signalsHeaderCell__WnrP_",signalRow:"BrandHealthReportV2_signalRow__lx8IM",signalRowDivider:"BrandHealthReportV2_signalRowDivider__jdo2x",signalName:"BrandHealthReportV2_signalName__D24tO",signalStatusText:"BrandHealthReportV2_signalStatusText__QSBcv",signalRec:"BrandHealthReportV2_signalRec__JJkGe",healthSection:"BrandHealthReportV2_healthSection__j1_6v",healthSectionTitle:"BrandHealthReportV2_healthSectionTitle__I5Av1",healthSectionDesc:"BrandHealthReportV2_healthSectionDesc__eEyZB",accordionList:"BrandHealthReportV2_accordionList__bR5ge",accordionItem:"BrandHealthReportV2_accordionItem__c9jAx",accordionTrigger:"BrandHealthReportV2_accordionTrigger___5Sty",accordionTriggerLeft:"BrandHealthReportV2_accordionTriggerLeft__rvHAl",accordionCategoryName:"BrandHealthReportV2_accordionCategoryName__5daiN",accordionChevron:"BrandHealthReportV2_accordionChevron__ta8VB",accordionChevronOpen:"BrandHealthReportV2_accordionChevronOpen__ro395",accordionBody:"BrandHealthReportV2_accordionBody__DpL44",accordionBodyOpen:"BrandHealthReportV2_accordionBodyOpen__VcTjw",accordionBodyInner:"BrandHealthReportV2_accordionBodyInner__n__us",accordionDesc:"BrandHealthReportV2_accordionDesc__6km4W",viewGapsLink:"BrandHealthReportV2_viewGapsLink__4tUuw",loadingShell:"BrandHealthReportV2_loadingShell__g2aWM",spinner:"BrandHealthReportV2_spinner___Q_wK",spin:"BrandHealthReportV2_spin__0ICMi",errorShell:"BrandHealthReportV2_errorShell__ujDdf",errorText:"BrandHealthReportV2_errorText__kj8Lm"}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=45763)),_N_E=e.O()}]);

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.