PageSourceSearch

https://streamlinefeed.co.ke/_next/static/chunks/0.i~8xlcjsr4q.js

js streamlinefeed.co.ke collected 2026-10-02 07:58:00 UTC 15,357 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,184762,e=>{"use strict";var t=e.i(263424),r=e.i(348018),a=e.i(647163);let i=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)("textarea",{className:(0,a.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:i,...r}));i.displayName="Textarea",e.s(["Textarea",0,i])},10708,e=>{"use strict";var t=e.i(263424),r=e.i(348018),a=e.i(815033),i=r.forwardRef((e,r)=>(0,t.jsx)(a.Primitive.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));i.displayName="Label";var s=e.i(294237),o=e.i(647163);let l=(0,s.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),n=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(i,{ref:a,className:(0,o.cn)(l(),e),...r}));n.displayName=i.displayName,e.s(["Label",0,n],10708)},335251,e=>{"use strict";var t=e.i(348018);e.s(["usePrevious",0,function(e){let r=t.useRef({value:e,previous:e});return t.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}])},416540,e=>{"use strict";var t=e.i(263424),r=e.i(348018),a=e.i(178896),i=e.i(890595),s=e.i(230802),o=e.i(815033),l=e.i(51560),n=e.i(424125),d=e.i(819458),c=e.i(207982),u=e.i(335251),m=e.i(245065),p="Radio",[h,g]=(0,s.createContextScope)(p),[x,b]=h(p),f=r.forwardRef((e,s)=>{let{__scopeRadio:l,name:n,checked:d=!1,required:c,disabled:u,value:m="on",onCheck:p,form:h,...g}=e,[b,f]=r.useState(null),y=(0,i.useComposedRefs)(s,e=>f(e)),v=r.useRef(!1),w=!b||h||!!b.closest("form");return(0,t.jsxs)(x,{scope:l,checked:d,disabled:u,children:[(0,t.jsx)(o.Primitive.button,{type:"button",role:"radio","aria-checked":d,"data-state":j(d),"data-disabled":u?"":void 0,disabled:u,value:m,...g,ref:y,onClick:(0,a.composeEventHandlers)(e.onClick,e=>{d||p?.(),w&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})}),w&&(0,t.jsx)(k,{control:b,bubbles:!v.current,name:n,value:m,checked:d,required:c,disabled:u,form:h,style:{transform:"translateX(-100%)"}})]})});f.displayName=p;var y="RadioIndicator",v=r.forwardRef((e,r)=>{let{__scopeRadio:a,forceMount:i,...s}=e,l=b(y,a);return(0,t.jsx)(m.Presence,{present:i||l.checked,children:(0,t.jsx)(o.Primitive.span,{"data-state":j(l.checked),"data-disabled":l.disabled?"":void 0,...s,ref:r})})});v.displayName=y;var k=e=>{let{control:a,checked:i,bubbles:s=!0,...o}=e,l=r.useRef(null),n=(0,u.usePrevious)(i),d=(0,c.useSize)(a);return r.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(n!==i&&t){let r=new Event("click",{bubbles:s});t.call(e,i),e.dispatchEvent(r)}},[n,i,s]),(0,t.jsx)("input",{type:"radio","aria-hidden":!0,defaultChecked:i,...o,tabIndex:-1,ref:l,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function j(e){return e?"checked":"unchecked"}var w=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],N="RadioGroup",[C,R]=(0,s.createContextScope)(N,[l.createRovingFocusGroupScope,g]),S=(0,l.createRovingFocusGroupScope)(),D=g(),[T,P]=C(N),_=r.forwardRef((e,r)=>{let{__scopeRadioGroup:a,name:i,defaultValue:s,value:c,required:u=!1,disabled:m=!1,orientation:p,dir:h,loop:g=!0,onValueChange:x,...b}=e,f=S(a),y=(0,d.useDirection)(h),[v,k]=(0,n.useControllableState)({prop:c,defaultProp:s,onChange:x});return(0,t.jsx)(T,{scope:a,name:i,required:u,disabled:m,value:v,onValueChange:k,children:(0,t.jsx)(l.Root,{asChild:!0,...f,orientation:p,dir:y,loop:g,children:(0,t.jsx)(o.Primitive.div,{role:"radiogroup","aria-required":u,"aria-orientation":p,"data-disabled":m?"":void 0,dir:y,...b,ref:r})})})});_.displayName=N;var L="RadioGroupItem",A=r.forwardRef((e,s)=>{let{__scopeRadioGroup:o,disabled:n,...d}=e,c=P(L,o),u=c.disabled||n,m=S(o),p=D(o),h=r.useRef(null),g=(0,i.useComposedRefs)(s,h),x=c.value===d.value,b=r.useRef(!1);return r.useEffect(()=>{let e=e=>
1{w.includes(e.key)&&(b.current=!0)},t=()=>b.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,t.jsx)(l.Item,{asChild:!0,...m,focusable:!u,active:x,children:(0,t.jsx)(f,{disabled:u,required:c.required,checked:x,...p,...d,name:c.name,ref:g,onCheck:()=>c.onValueChange(d.value),onKeyDown:(0,a.composeEventHandlers)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,a.composeEventHandlers)(d.onFocus,()=>{b.current&&h.current?.click()})})})});A.displayName=L;var E=r.forwardRef((e,r)=>{let{__scopeRadioGroup:a,...i}=e,s=D(a);return(0,t.jsx)(v,{...s,...i,ref:r})});E.displayName="RadioGroupIndicator";var I=e.i(731825),F=e.i(647163);let q=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(_,{className:(0,F.cn)("grid gap-2",e),...r,ref:a}));q.displayName=_.displayName;let G=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(A,{ref:a,className:(0,F.cn)("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...r,children:(0,t.jsx)(E,{className:"flex items-center justify-center",children:(0,t.jsx)(I.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));G.displayName=A.displayName,e.s(["RadioGroup",0,q,"RadioGroupItem",0,G],416540)},6859,e=>{"use strict";let t=(0,e.i(756209).default)("Flag",[["path",{d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z",key:"i9b6wo"}],["line",{x1:"4",x2:"4",y1:"22",y2:"15",key:"1cm3nv"}]]);e.s(["default",0,t])},553948,e=>{"use strict";var t=e.i(6859);e.s(["Flag",()=>t.default])},562250,e=>{"use strict";let t=(0,e.i(756209).default)("SearchCheck",[["path",{d:"m8 11 2 2 4-4",key:"1sed1v"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);e.s(["default",0,t])},672599,e=>{"use strict";var t=e.i(263424),r=e.i(348018),a=e.i(107135),i=e.i(553948),s=e.i(754828),o=e.i(562250),o=o,l=e.i(767587),n=e.i(167881),d=e.i(630374),c=e.i(23750),u=e.i(10708),m=e.i(416540),p=e.i(184762);let h=[{id:"factual_error",label:"Factually incorrect",description:"A claim in the article appears to be wrong or unsupported."},{id:"outdated_development",label:"Important update missing",description:"The story has materially changed since it was published."},{id:"name_or_title",label:"Wrong name or title",description:"A person, organisation, office or role is identified incorrectly."},{id:"date_or_timeline",label:"Date or timeline error",description:"A date, sequence of events or elapsed time appears incorrect."},{id:"number_or_statistic",label:"Number or statistic is wrong",description:"A quantity, price, percentage or other figure needs checking."},{id:"location_or_identity",label:"Location or identity is wrong",description:"A place, jurisdiction, property or subject has been misidentified."},{id:"missing_context",label:"Important context is missing",description:"The article omits context that materially changes its meaning."},{id:"source_or_attribution",label:"Source or attribution issue",description:"A quotation, claim or source is attributed incorrectly."},{id:"legal_or_defamation",label:"Legal or defamation concern",description:"A statement may unfairly harm someone or misstate a legal matter."},{id:"image_or_caption",label:"Image or caption mismatch",description:"The main image or its identification does not match the story."},{id:"other",label:"Something else",description:"Another accuracy, fairness or integrity concern."}];var g=e.i(647163);e.s(["default",0,function({articleId:e,articleTitle:x}){let[b,f]=(0,r.useState)(!1),[y,v]=(0,r.useState)("factual_error"),[k,j]=(0,r.useState)(""),[w,N]=(0,r.useState)(""),[C,R]=(0,r.useState)(""),[S,D]=(0,r.useState)(null),[T,P]=(0,r.useState)("idle"),[_,L]=(0,r.useState)(""),A=async t=>{if(t.preventDefault(),k.trim().length<12||"submitting"===T)return;P("submitting"),L("");let r=new AbortController,a=setTimeout(()=>r.abort(),2e4);try{let t=await fetch("/api/news/article-integrity",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",signal:r.signal,body:JSON.stringify({articleId:e,issueType:y,details:k,evidenceUrl:w.trim()||null,website:C,openedAt:S})}),a=await t.json().catch(()=>({}));if(202!==t.status||!0!==a.accepted)throw Error(a.error||"We could not confirm receipt of this report. Please try again.");L(a.message||"Your report has been sent to the editorial team for investigation."),P("success")}catch(e){L(r.signal.aborted?"Confirmation timed out. Your report may have been received; you can safely try again.":e instanceof Error?e.message:"We could not send this report. Please try again."),P("error")}finally{clearTimeout(a)}};return(0,t.jsxs)(d.Dialog,{open:b,onOpenChange:e=>{f(e),e&&(D(Date.now()),"success"===T&&(v("factual_error"),j(""),N(""),L(""),P("idle")))},children:[(0,t.jsx)(d.DialogTrigger,{asChild:!0,children:(0,t.jsxs)(n.Button,{type:"button",variant:"outline","aria-label":"Report an error or important update in this article",title:"Report an error or important update",className:"h-11 shrink-0 gap-2 rounded-full border-slate-300 bg-slate-50/90 px-4 text-slate-700 shadow-sm transition-[background-color,border-color,color,transform,box-shadow] hover:border-sky-300 hover:bg-sky-50 hover:text-sky-800 active:scale-[0.98] active:shadow-none dark:border-slate-700 dark:bg-slate-800/80 dark:text-slate-200 dark:hover:border-sky-700 dark:hover:bg-sky-950/60 dark:hover:text-sky-200",children:[(0,t.jsx)(i.Flag,{className:"h-4 w-4","aria-hidden":"true"}),"Report article"]})}),(0,t.jsx)(d.DialogContent,{overlayClassName:"z-[90]",className:"z-[100] max-h-[92dvh] max-w-3xl overflow-y-auto border-slate-200 p-0 dark:border-slate-800",children:"success"===T?(0,t.jsxs)("div",{className:"p-6 sm:p-8",children:[(0,t.jsx)("div",{className:"mx-auto flex h-14 w-14 items-center justify-center rounded-full bg-emerald-100 text-emerald-700 dark:bg-emerald-900/50 dark:text-emerald-200",children:(0,t.jsx)(a.CheckCircle2,{className:"h-7 w-7","aria-hidden":"true"})}),(0,t.jsxs)(d.DialogHeader,{className:"mt-5 text-center sm:text-center",children:[(0,t.jsx)(d.DialogTitle,{className:"text-2xl font-black tracking-tight",children:"Report received"}),(0,t.jsx)(d.DialogDescription,{className:"mx-auto max-w-xl text-base leading-relaxed",children:_})]}),(0,t.jsx)("div",{className:"mt-6 rounded-xl border border-emerald-200 bg-emerald-50 p-4 text-sm leading-relaxed text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100",children:"Thank y
1ou for helping us keep our reporting accurate. Your concern will be assessed against reliable evidence."}),(0,t.jsx)("div",{className:"mt-6 flex justify-center",children:(0,t.jsx)(d.DialogClose,{asChild:!0,children:(0,t.jsx)(n.Button,{type:"button",children:"Done"})})})]}):(0,t.jsxs)("form",{onSubmit:A,children:[(0,t.jsx)("div",{className:"border-b border-slate-200 bg-slate-50/80 p-6 dark:border-slate-800 dark:bg-slate-900/70 sm:p-8",children:(0,t.jsxs)(d.DialogHeader,{children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center gap-2 text-xs font-black uppercase tracking-[0.14em] text-sky-700 dark:text-sky-300",children:[(0,t.jsx)(l.ShieldCheck,{className:"h-4 w-4","aria-hidden":"true"}),"Streamline integrity desk"]}),(0,t.jsx)(d.DialogTitle,{className:"text-2xl font-black tracking-tight",children:"What should we investigate?"}),(0,t.jsxs)(d.DialogDescription,{className:"max-w-2xl leading-relaxed",children:["Choose the closest issue, then identify the exact sentence or fact in “",x,"”. Your report is a research lead, not an automatic edit."]})]})}),(0,t.jsxs)("div",{className:"space-y-6 p-6 sm:p-8",children:[(0,t.jsx)(m.RadioGroup,{value:y,onValueChange:e=>v(e),className:"grid gap-2 sm:grid-cols-2","aria-label":"Issue type",children:h.map(e=>(0,t.jsxs)(u.Label,{htmlFor:`integrity-${e.id}`,className:(0,g.cn)("flex cursor-pointer items-start gap-3 rounded-xl border p-3.5 transition-colors",y===e.id?"border-sky-500 bg-sky-50 ring-1 ring-sky-500 dark:bg-sky-950/40":"border-slate-200 bg-white hover:border-sky-300 dark:border-slate-800 dark:bg-slate-950 dark:hover:border-sky-800"),children:[(0,t.jsx)(m.RadioGroupItem,{id:`integrity-${e.id}`,value:e.id,className:"mt-0.5 shrink-0"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"block font-bold leading-snug text-slate-900 dark:text-slate-100",children:e.label}),(0,t.jsx)("span",{className:"mt-1 block text-xs font-normal leading-relaxed text-slate-500 dark:text-slate-400",children:e.description})]})]},e.id))}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(u.Label,{htmlFor:"integrity-details",children:"What exactly should we check?"}),(0,t.jsx)(p.Textarea,{id:"integrity-details",value:k,onChange:e=>j(e.target.value.slice(0,1600)),minLength:12,maxLength:1600,required:!0,rows:5,placeholder:"Quote or describe the specific claim, then tell us what you believe is correct and why. Include names, dates or figures where possible.",className:"min-h-32 resize-y"}),(0,t.jsxs)("p",{className:"text-right text-xs text-slate-400",children:[k.length,"/",1600]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)(u.Label,{htmlFor:"integrity-evidence",children:["Supporting source link ",(0,t.jsx)("span",{className:"font-normal text-slate-400",children:"(optional)"})]}),(0,t.jsx)(c.Input,{id:"integrity-evidence",type:"url",inputMode:"url",value:w,onChange:e=>N(e.target.value.slice(0,1e3)),maxLength:1e3,placeholder:"https://official-source.example/document"}),(0,t.jsx)("p",{className:"text-xs leading-relaxed text-slate-500",children:"A link is treated as a lead and checked independently. Public HTTP or HTTPS pages only."})]}),(0,t.jsxs)("div",{className:"absolute -left-[10000px] top-auto h-px w-px overflow-hidden","aria-hidden":"true",children:[(0,t.jsx)(u.Label,{htmlFor:"integrity-website",children:"Website"}),(0,t.jsx)(c.Input,{id:"integrity-website",name:"website",value:C,onChange:e=>R(e.target.value),tabIndex:-1,autoComplete:"off"})]}),"error"===T&&(0,t.jsx)("p",{className:"rounded-lg border border-red-200 bg-red-50 p-3 text-sm text-red-800 dark:border-red-900 dark:bg-red-950/40 dark:text-red-200",role:"alert",children:_})]}),(0,t.jsxs)(d.DialogFooter,{className:"border-t border-slate-200 bg-slate-50/80 p-5 dark:border-slate-800 dark:bg-slate-900/70 sm:px-8",children:[(0,t.jsx)(d.DialogClose,{asChild:!0,children:(0,t.jsx)(n.Button,{type:"button",variant:"outline",disabled:"submitting"===T,children:"Cancel"})}),(0,t.jsx)(n.Button,{type:"submit",disabled:k.trim().length<12||"submitting"===T,className:"gap-2",children:"submitting"===T?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.Loader2,{className:"h-4 w-4 animate-spin","aria-hidden":"true"})," Sending securely…"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.default,{className:"h-4 w-4","aria-hidden":"true"})," Send for investigation"]})})]})]})})]})}],672599)},55348,e=>{e.n(e.i(672599))}]);

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.