PageSourceSearch

https://app.adcero.io/_next/static/chunks/4246.ce27707fbffe4e44.js

js adcero.io collected 2026-10-02 02:00:45 UTC 9,053 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4246],{4246:(e,s,t)=>{t.d(s,{_T:()=>r,ed:()=>i,UT:()=>a,CL:()=>j,W8:()=>b,Fo:()=>N,x9:()=>y,Fz:()=>_,eq:()=>g});var l=t(95155);function a(e){let{rail:s,children:t}=e;return(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-[264px_1fr] lg:items-start",children:[(0,l.jsx)("div",{className:"min-w-0",children:s}),(0,l.jsx)("div",{className:"min-w-0",children:t})]})}var n=t(68122);function r(e){let{rows:s=3}=e;return(0,l.jsx)("div",{className:"space-y-2",children:Array.from({length:s}).map((e,s)=>(0,l.jsx)(n.E,{className:"h-20 w-full rounded-xl"},s))})}function i(e){let{page:s,lastPage:t,onPage:a}=e;return(0,l.jsxs)("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[(0,l.jsx)("button",{type:"button",className:"btn-frost-soft disabled:opacity-50",disabled:0===s,onClick:()=>a(Math.max(0,s-1)),children:"Previous"}),(0,l.jsxs)("span",{children:["Page ",s+1," of ",t+1]}),(0,l.jsx)("button",{type:"button",className:"btn-frost-soft disabled:opacity-50",disabled:s>=t,onClick:()=>a(Math.min(t,s+1)),children:"Next"})]})}var c=t(38131),d=t(94101),o=t(12115),x=t(99051),u=t(25016),m=t(65313),p=t(37041);function h(e){var s,t,a,r;let{themes:i,selectedThemeId:c,onSelect:d,countOf:h}=e,[g,j]=(0,o.useState)(!1),b=[...null!=(r=null==(s=i.data)?void 0:s.themes)?r:[]].sort((e,s)=>h(s)-h(e)),N=g?b:b.slice(0,6);return(0,l.jsxs)("div",{className:"space-y-2.5",children:[(0,l.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-muted-foreground",children:"Filter by theme"}),i.isLoading?(0,l.jsx)("div",{className:"space-y-2",children:Array.from({length:4}).map((e,s)=>(0,l.jsx)(n.E,{className:"h-8 w-full rounded-full"},s))}):i.isError?(0,l.jsx)(m.E,{message:"We could not load themes.",onRetry:()=>void i.refetch()}):0===b.length?(0,l.jsx)("p",{className:"text-xs text-muted-foreground",children:(null==(t=i.data)?void 0:t.extracting)||(null==(a=i.data)?void 0:a.clustering)?"We’re analyzing the latest evidence.":"Themes appear as more evidence is collected."}):(0,l.jsxs)("div",{className:"flex flex-col items-stretch gap-1.5",children:[(0,l.jsx)(f,{active:null===c,onClick:()=>d(null),children:(0,l.jsx)("span",{children:"All"})}),N.map(e=>{let s=p.H[e.kind];return(0,l.jsxs)(f,{active:c===e.id,onClick:()=>d(e.id),children:[(0,l.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,l.jsx)(x.A,{className:(0,u.cn)("h-2.5 w-2.5 flex-none fill-current",null==s?void 0:s.dot)}),(0,l.jsx)("span",{className:"truncate",children:e.label})]}),(0,l.jsx)("span",{className:"tabular-nums opacity-75",children:h(e)})]},e.id)}),b.length>6&&(0,l.jsx)("button",{type:"button",className:"btn-frost-soft mt-1 self-start",onClick:()=>j(e=>!e),children:g?"Show fewer":"View all ".concat(b.length," themes")})]})]})}function f(e){let{active:s,onClick:t,children:a}=e;return(0,l.jsx)("button",{type:"button","aria-pressed":s,onClick:t,className:(0,u.cn)("flex w-full items-center justify-between gap-2 rounded-full px-3 py-1.5 text-left text-xs font-semibold",s?"border border-white/20 bg-gradient-to-r from-brand-primary/80 to-brand-secondary/80 text-white shadow-sm":"glass-pill text-foreground hover:text-brand-secondary"),children:a})}function g(e){return"available"===e?"Not set up":"running"===e?"Reading":d._P[e]}function j(e){let{identity:s,source:t,vitals:a,alert:n,footer:r,statusSlot:i,themes:o,selectedThemeId:x,onSelectTheme:u,countOf:m}=e,p=t?(0,d.gm)(t):null,f=p?g(p):null;return(0,l.jsxs)("aside",{className:"section-frost space-y-4 p-4",children:[s,null!=i?i:t&&p?(0,l.jsxs)("div",{className:"glass-surface space-y-2 p-3",children:[(0,l.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:(0,l.jsx)(c.q,{tone:d.Wy[p],children:f})}),(0,l.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Last sync"," ",t.last_synced_at?new Date(t.last_synced_at).toLocaleDateString():"not yet"]})]}):null,(0,l.jsx)("div",{className:"space-y-2",children:a}),n,(0,l.jsx)(h,{themes:o,selectedThemeId:x,onSelect:u,countOf:m}),r&&(0,l.jsx)("div",{className:"border-t border-purple-100/70 pt-3",children:r})]})}function b(e){let{label:s,value:t}=e;return(0,l.jsxs)("div",{className:"flex items-center justify-between gap-3 py-2 text-xs",children:[(0,l.jsx)("span",{className:"text-muted-foreground",children:s}),(0,l.jsx)("b",{className:"tabular-nums",children:t})]})}function N(e){let{themes:s,onSelect:t}=e;if(0===s.length)return null;let a=s.slice(0,2);return(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[a.map(e=>{var s;let a=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(x.A,{className:(0,u.cn)("h-2 w-2 fill-current",null==(s=p.H[e.kind])?void 0:s.dot)}),(0,l.jsx)("span",{className:"max-w-36 truncate",children:e.label})]});return t?(0,l.jsx)("button",{type:"button",className:"glass-pill inline-flex items-center gap-1.5 px-2 py-0.5 text-[10px] font-semibold",onClick:()=>t(e.id),children:a},e.id):(0,l.jsx)("span",{className:"glass-pill inline-flex items-center gap-1.5 px-2 py-0.5 text-[10px] font-semibold",children:a},e.id)}),s.length>2&&(0,l.jsxs)("span",{className:"glass-pill px-2 py-0.5 text-[10px] font-semibold text-muted-foreground",children:["+",s.length-2]})]})}var v=t(39347);function y(e){let{distribution:s}=e,t=[1,2,3,4,5].reduce((e,t)=>
1{var l;return e+(null!=(l=null==s?void 0:s[t])?l:0)},0);return(0,l.jsxs)("div",{className:"space-y-1.5",children:[(0,l.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-muted-foreground",children:"By rating"}),[5,4,3,2,1].map(e=>{var a;let n=null!=(a=null==s?void 0:s[e])?a:0,r=t>0?Math.round(n/t*100):0;return(0,l.jsxs)("div",{className:"grid grid-cols-[26px_1fr_28px] items-center gap-2 text-[10px] text-muted-foreground",children:[(0,l.jsxs)("span",{className:"inline-flex items-center gap-0.5",children:[e,(0,l.jsx)(v.A,{className:"h-2.5 w-2.5 fill-current text-amber-500"})]}),(0,l.jsx)("span",{className:"h-1.5 overflow-hidden rounded-full bg-purple-100",children:(0,l.jsx)("span",{className:"block h-full rounded-full bg-gradient-to-r from-brand-primary to-brand-secondary",style:{width:"".concat(r,"%")}})}),(0,l.jsx)("span",{className:"text-right tabular-nums",children:n})]},e)})]})}var w=t(65229),k=t(90368),C=t(27937),A=t(50020);function _(e){var s,t,a,r,i,c,d;let{theme:h,platform:f,renderMention:g,onClear:j}=e,[b,N]=(0,o.useState)(0),v=(0,A.Kr)(h.id,b,f),y=null!=(r=null==(s=v.data)?void 0:s.mentions)?r:[],_=null!=(i=null==(t=v.data)?void 0:t.total)?i:0,E=Math.max(1,Math.ceil(_/(null!=(c=null==(a=v.data)?void 0:a.pageSize)?c:20))),M=p.H[h.kind];return(0,o.useEffect)(()=>{N(0)},[f,h.id]),(0,l.jsxs)("section",{className:"section-frost space-y-4 p-4",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,l.jsx)(x.A,{className:(0,u.cn)("h-3 w-3 fill-current",null==M?void 0:M.dot)}),(0,l.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:h.label}),(0,l.jsx)("span",{className:"glass-pill px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground",children:null!=(d=null==M?void 0:M.title)?d:h.kind})]}),(0,l.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:[_," receipt",1===_?"":"s"]})]}),(0,l.jsxs)("button",{type:"button",className:"btn-frost-soft inline-flex items-center gap-1",onClick:j,children:[(0,l.jsx)(w.A,{className:"h-3.5 w-3.5"}),"Clear filter"]})]}),v.isLoading?(0,l.jsx)("div",{className:"space-y-2",children:Array.from({length:5}).map((e,s)=>(0,l.jsx)(n.E,{className:"h-24 w-full rounded-xl"},s))}):v.isError?(0,l.jsx)(m.E,{onRetry:()=>void v.refetch()}):0===y.length?(0,l.jsx)("div",{className:"glass-surface px-4 py-10 text-center text-sm text-muted-foreground",children:"No receipts for this theme on this source yet."}):(0,l.jsx)("div",{className:"space-y-3",children:y.map(e=>{var s,t;return(0,l.jsxs)("div",{className:"space-y-2",children:[g(e),(null!=(t=null==(s=v.data)?void 0:s.phrasesByMention[e.id])?t:[]).map(e=>(0,l.jsxs)("blockquote",{className:"ml-3 border-l-2 border-brand-secondary/30 pl-3 text-xs italic leading-relaxed text-muted-foreground",children:["“",e.phrase,"”"]},e.id))]},e.id)})}),E>1&&(0,l.jsxs)("div",{className:"flex items-center justify-between border-t border-purple-100/70 pt-3 text-xs text-muted-foreground",children:[(0,l.jsxs)("span",{children:["Page ",b+1," of ",E]}),(0,l.jsxs)("div",{className:"flex gap-1.5",children:[(0,l.jsx)("button",{type:"button",className:"btn-frost-soft",disabled:0===b,onClick:()=>N(e=>Math.max(0,e-1)),children:(0,l.jsx)(k.A,{className:"h-3.5 w-3.5"})}),(0,l.jsx)("button",{type:"button",className:"btn-frost-soft",disabled:b+1>=E,onClick:()=>N(e=>e+1),children:(0,l.jsx)(C.A,{className:"h-3.5 w-3.5"})})]})]})]})}},99051:(e,s,t)=>{t.d(s,{A:()=>l});let l=(0,t(71847).A)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])}}]);

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.