PageSourceSearch

https://www.riseproductive.com/_next/static/chunks/645.fa01659839c2bc93.js

js riseproductive.com collected 2026-10-05 23:21:16 UTC 35,918 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[645,2385],{2385:(e,s,t)=>{t.r(s),t.d(s,{pack:()=>n,unpack:()=>i});var a=t(47195),r=t(77682);function n(e,s=new Date){let{knownKeys:t,...r}=e,i=e.asOf??s.toISOString();return{...r,asOf:i,rated:(0,a.Dy)({...e,asOf:i},s).rated}}function i(e){if(!(0,r.Gv)(e))return null;let s=(0,a.$q)({...e,knownKeys:""});return s.headline.trim()||s.links.trim()?s:null}},6191:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(71847).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},8803:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(71847).A)("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]])},9295:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(71847).A)("Eraser",[["path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21",key:"182aya"}],["path",{d:"M22 21H7",key:"t4ddhn"}],["path",{d:"m5 11 9 9",key:"1mo9qw"}]])},39867:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(71847).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},43305:(e,s,t)=>{t.d(s,{CopyButton:()=>d});var a=t(95155),r=t(12115),n=t(47650),i=t(5917),l=t(75426),o=t(65229);function d({text:e,label:s="Copy"}){let[t,d]=(0,r.useState)("idle"),[c,m]=(0,r.useState)(!1),u=(0,r.useId)(),h=(0,r.useRef)(null),x=(0,r.useRef)(null),p=(0,r.useRef)(void 0);function g(e){d(e),window.clearTimeout(p.current),p.current=window.setTimeout(()=>d("idle"),2500)}async function b(){try{await navigator.clipboard.writeText(e),g("copied")}catch{g("failed"),m(!0)}}function f(){m(!1),h.current?.focus()}return(0,r.useEffect)(()=>()=>window.clearTimeout(p.current),[]),(0,r.useEffect)(()=>{let e=x.current;c&&e&&(e.focus(),e.select(),e.setSelectionRange(0,e.value.length))},[c]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{ref:h,type:"button",onClick:b,className:"min-h-11 inline-flex items-center gap-2 rounded-md border border-border bg-background px-4 py-2 text-sm font-semibold hover:bg-muted focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",children:["copied"===t?(0,a.jsx)(i.A,{className:"h-4 w-4","aria-hidden":"true"}):(0,a.jsx)(l.A,{className:"h-4 w-4","aria-hidden":"true"}),(0,a.jsx)("span",{"aria-live":"polite",children:"copied"===t?"Copied":"failed"===t?"Copy blocked":s})]}),c&&(0,n.createPortal)((0,a.jsxs)("div",{role:"group","aria-labelledby":`${u}-label`,"data-copy-manual":"",onKeyDown:e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),f())},className:"fixed inset-x-4 bottom-4 z-50 mx-auto max-w-lg rounded-2xl border border-border bg-card p-4 text-foreground shadow-xl",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{id:`${u}-label`,htmlFor:u,className:"text-sm font-semibold",children:"Select and copy this"}),(0,a.jsx)("p",{className:"mt-0.5 text-xs text-muted-foreground",children:"Your browser blocked the copy button. Press and hold, or use Cmd+C or Ctrl+C."})]}),(0,a.jsx)("button",{type:"button",onClick:f,"aria-label":"Close",className:"inline-flex h-11 w-11 flex-none items-center justify-center rounded-md hover:bg-muted focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",children:(0,a.jsx)(o.A,{className:"h-4 w-4","aria-hidden":"true"})})]}),(0,a.jsx)("textarea",{id:u,ref:x,readOnly:!0,rows:6,value:e,spellCheck:!1,autoCapitalize:"off",autoCorrect:"off",onFocus:e=>e.currentTarget.select(),className:"mt-2 block max-h-56 min-h-11 w-full resize-none overflow-auto rounded-lg border border-border bg-background p-2.5 text-base leading-snug focus:outline-none focus-visible:ring-2 focus-visible:ring-primary"})]}),document.body)]})}},45088:(e,s,t)=>{t.d(s,{R:()=>c});var a=t(95155),r=t(64269),n=t(54851),i=t(37551),l=t.n(i),o=t(52279),d=t.n(o);function c({eyebrow:e,title:s,titleAs:t="p",titleId:i,titleRef:o,note:c,toolbar:m,share:u,animate:h=!1,id:x,className:p,bodyClassName:g,children:b}){let f="p"===t?null:t;return(0,a.jsxs)("div",{id:x,className:(0,r.cn)(l().frame,p),"data-result-frame":"",children:[(0,a.jsxs)("div",{className:l().frameHead,children:[(0,a.jsxs)("div",{className:l().frameLabel,children:[(0,a.jsx)("p",{className:(0,r.cn)("eyebrow text-primary",l().frameEyebrow),children:e}),f?(0,a.jsx)(f,{id:i,ref:o,tabIndex:o?-1:void 0,className:(0,r.cn)(l().frameTitle,"outline-none"),children:s}):(0,a.jsx)("p",{className:l().frameTitle,children:s}),c&&(0,a.jsx)("p",{className:l().frameNote,children:c})]}),(m||u)&&(0,a.jsxs)("div",{className:l().toolbar,"data-share-skip":"",children:[m,u&&(0,a.jsx)(n.ShareMenu,{...u})]})]}),(0,a.jsx)("div",{className:(0,r.cn)(l().frameBody,d().body,h&&"rp-reveal",g),children:b})]})}},45699:(e,s,t)=>{t.r(s),t.d(s,{StoryScorecard:()=>T});var a=t(95155),r=t(12115),n=t(99708),i=t(95740),l=t(9295),o=t(71360),d=t(6191),c=t(47195),m=t(43305),u=t(68531),h=t(94856),x=t(45088),p=t(84516),g=t(1237),b=t(77062),f=t(70228),y=t(31542),v=t(20588),j=t(98317),N=t(2385);let k="rp-story-scorecard-v1",w=e=>String(e).padStart(2,"0");function C(e){let s=new Date(e);return Number.isFinite(s.getTime())?`${s.getFullYear()}-${w(s.getMonth()+1)}-${w(s.getDate())}T${w(s.getHours())}:${w(s.getMinutes())}`:""}let $="mt-1.5 block w-full min-w-0 min-h-11 rounded-lg border border-border bg-background px-3.5 py-2.5 text-base outline-none focus-visible:ring-2 focus-visible:ring-primary",A="min-h-11 inline-flex items-center gap-2 rounded-md border border-border bg-background px-3.5 py-2 text-sm font-semibold hover:bg-muted focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",S="roun
1ded-2xl border border-border/70 bg-card p-5 sm:p-6";function T(){let e=(0,v.nQ)("news-content-kit"),[s,t]=(0,r.useState)(c.ii),[w,T]=(0,r.useState)(!1),[F,M]=(0,r.useState)(!0),[L,O]=(0,r.useState)(!1),[R,I]=(0,r.useState)(!1),[E,D]=(0,r.useState)(!1),P=(0,r.useRef)(null),_=(0,r.useRef)(null),H=(0,r.useRef)(""),B=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(e){t(e),T(!0);return}try{let e=window.localStorage.getItem(k),s=e?(0,c.sF)(e):null;s&&t(s)}catch{M(!1)}T(!0)},[e]),(0,r.useEffect)(()=>{if(!w||e)return;let t=setTimeout(()=>{try{JSON.stringify(s)===JSON.stringify(c.ii)?window.localStorage.removeItem(k):window.localStorage.setItem(k,JSON.stringify(s))}catch{M(!1)}},400);return()=>clearTimeout(t)},[s,w,e]),(0,r.useEffect)(()=>{R&&(P.current?.focus(),I(!1))},[R]),(0,r.useEffect)(()=>{E&&"exact"===s.precision&&(document.getElementById("sc-published-time")?.focus(),D(!1))},[E,s.precision]);let q=(0,r.useMemo)(()=>(0,c.Dy)(s),[s]),U=(0,r.useMemo)(()=>(0,c.Ej)(s.headline,q.sources),[s.headline,q.sources]);(0,r.useLayoutEffect)(()=>{!w||e||B.current||t(e=>{let s=e.event.company;return s===U?(H.current=s,e):""!==s&&s!==H.current?e:(H.current=U,{...e,event:{...e.event,company:U}})})},[w,e,U]);let W=(0,r.useMemo)(()=>(0,c.dk)(q,s),[q,s]),Y=(0,r.useMemo)(()=>(0,c.$E)(s.knownKeys),[s.knownKeys]),G=JSON.stringify(s)!==JSON.stringify(c.ii),J=""!==s.headline.trim()||q.sources.length>0,K=(0,r.useMemo)(()=>(0,c.QN)(q.dedupe),[q.dedupe]),Q=(0,c.yt)(q),V=(0,c.b2)(q.freshness),z=e=>t(s=>({...s,...e}));function Z(e,s){t(t=>{var a;let r=new Set((a=t.links,(0,c.Vf)(a).groups.map(e=>e.url))),n={};for(let[e,s]of Object.entries(t.overrides))r.has(e)&&(n[e]=s);if(n[e]={...n[e],...s},"primary"===s.role)for(let[s,t]of Object.entries(n))s!==e&&"primary"===t.role&&(n[s]={...t,role:"supporting"});return{...t,overrides:n}})}function X(e){t(s=>{let t=s.published;return"none"===e?t="":"date"===e?t=s.published.includes("T")?C(s.published).slice(0,10):s.published:s.published.includes("T")||(t=""),{...s,precision:e,published:t}})}function ee(e,s){t(t=>({...t,claims:t.claims.map(t=>t.id===e?{...t,...s}:t)}))}let{tryExample:es,notice:et}=(0,j.O)({read:()=>({story:s,touched:B.current,auto:H.current}),hasInput:e=>JSON.stringify(e.story)!==JSON.stringify(c.ii),restore:e=>{B.current=e.touched,H.current=e.auto,t(e.story),O(!1)},load:function(){B.current=!1,H.current="",t({...c.DW}),O(!1),I(!0)},className:"mt-4"}),ea=[q.dedupe.note,K?.message.replace(/\.$/,""),q.rated?`${Q.length?"Quick score":"Score"} ${q.score.total}${q.triage.held?"":`, ${q.score.band}`}. ${q.triage.headline}.`:""].filter(Boolean).join(". ");return(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)(f.P,{text:ea}),(0,a.jsxs)("p",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[(0,a.jsx)(n.A,{className:"mt-0.5 h-4 w-4 flex-shrink-0","aria-hidden":"true"}),(0,a.jsxs)("span",{children:["Stays on this page. Nothing you add is sent anywhere, and your story is saved on this device as you go. This tool never opens your links, so you still read each source yourself.",!F&&" Saving is blocked in this browser, so your work stays here until you close the tab."]})]}),(0,a.jsx)(p.e,{inputs:(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("section",{className:`${S} min-w-0`,"aria-labelledby":"sc-story-h",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,a.jsx)("h2",{id:"sc-story-h",className:"font-display text-2xl font-bold",children:"1. The story"}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,a.jsxs)("button",{type:"button",onClick:es,className:A,children:[(0,a.jsx)(i.A,{className:"h-4 w-4","aria-hidden":"true"})," Try an example"]}),G&&(0,a.jsxs)("button",{type:"button",onClick:function(){if(!L){O(!0),setTimeout(()=>O(!1),4e3);return}if(B.current=!1,H.current="",t(c.ii),O(!1),!e)try{window.localStorage.removeItem(k)}catch{}_.current?.focus()},className:"min-h-11 inline-flex items-center gap-2 rounded-md px-3 py-2 text-sm font-semibold text-muted-foreground hover:text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",children:[(0,a.jsx)(l.A,{className:"h-4 w-4","aria-hidden":"true"})," ",L?"Click again to clear":"Clear"]})]})]}),et,(0,a.jsxs)("div",{className:"mt-4 space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"sc-headline",className:"text-sm font-semibold",children:"Headline"}),(0,a.jsx)("input",{id:"sc-headline",ref:_,className:$,value:s.headline,maxLength:c.s0,onChange:e=>z({headline:e.target.value}),placeholder:"What happened, in one line"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"sc-company",className:"text-sm font-semibold",children:"Company"}),(0,a.jsx)("p",{id:"sc-company-help",className:"text-sm text-muted-foreground","data-testid":"company-note",children:""===s.event.company||s.event.company!==U||B.current?"Used to guess which link is the company's own site, and to start the event key under Optional checks. Leave it empty to go by the headline.":"Taken from your headline, because a link's address matches it. Change it if it is 
1wrong. It also starts the event key under Optional checks."}),(0,a.jsx)("input",{id:"sc-company","aria-describedby":"sc-company-help",autoComplete:"off",className:$,maxLength:120,value:s.event.company,onChange:e=>{B.current=!0,z({event:{...s.event,company:e.target.value}})},placeholder:"Who made it, such as Northwind Labs"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"sc-links",className:"text-sm font-semibold",children:"Source links, one per line"}),(0,a.jsxs)("p",{id:"sc-links-help",className:"text-sm text-muted-foreground",children:["The announcement, the press coverage, a post. Up to ",c.vk," links. Tracking is stripped and repeats collapse into one. A first score appears as soon as you paste one."]}),(0,a.jsx)("textarea",{id:"sc-links","aria-describedby":"sc-links-help",rows:5,maxLength:c.G0,className:`${$} font-mono text-sm leading-relaxed`,value:s.links,onChange:e=>z({links:e.target.value}),placeholder:"https://...\nhttps://..."})]}),q.dedupe.note&&(0,a.jsxs)("p",{className:"rounded-lg bg-secondary/20 px-4 py-3 text-sm","data-testid":"dedupe-note",children:[(0,a.jsxs)("span",{className:"font-semibold",children:[q.dedupe.note,"."]})," The repeats were the same page with tracking added or written another way, so they count once."]}),K&&(0,a.jsxs)("div",{className:"text-sm text-muted-foreground","data-testid":"ignored-note",children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("span",{className:"font-semibold text-foreground",children:K.message})," Everything else was used."]}),K.examples.length>0&&(0,a.jsxs)("ul",{className:"mt-1 space-y-0.5","aria-label":"Lines that were ignored",children:[K.examples.map((e,s)=>(0,a.jsx)("li",{className:"break-all font-mono text-xs",children:e},`${s}-${e}`)),K.notLink>K.examples.length&&(0,a.jsxs)("li",{className:"text-xs",children:["and ",K.notLink-K.examples.length," more"]})]})]})]})]}),(0,a.jsxs)("section",{className:`${S} min-w-0`,"aria-labelledby":"sc-sources-h",children:[(0,a.jsx)("h2",{id:"sc-sources-h",className:"font-display text-2xl font-bold",children:"2. Check each source"}),(0,a.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"I guess each tier from the site's domain, using a short list that is not authoritative. A link whose domain matches the company in your headline is guessed as the company's own site. You decide: change any tier or role, and tick the ones you actually read. The ticks feed the suggested confidence rating below. An unread source is only a suggestion and cannot back a claim."}),0===q.sources.length?(0,a.jsx)("p",{className:"mt-4 rounded-xl border border-dashed border-border px-4 py-5 text-sm text-muted-foreground",children:"Paste links above and each source appears here."}):(0,a.jsx)("ol",{className:"mt-4 space-y-3",children:q.sources.map((e,s)=>(0,a.jsxs)("li",{className:"rounded-xl border border-border/70 bg-background p-4","data-testid":"source-row",children:[(0,a.jsxs)("div",{className:"grid grid-cols-[2rem_minmax(0,1fr)] gap-x-3",children:[(0,a.jsxs)("span",{className:"font-display text-lg font-bold text-muted-foreground",children:["S",s+1]}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"break-all text-[15px] font-semibold leading-snug",children:e.display}),(0,a.jsxs)("p",{className:"mt-1 flex flex-wrap items-center gap-x-2 gap-y-1 text-xs text-muted-foreground",children:[(0,a.jsx)(y.nY,{tier:e.tier}),e.count>1&&(0,a.jsxs)("span",{children:[e.count," links collapsed"]}),e.changes.length>0&&(0,a.jsxs)("span",{className:"min-w-0",children:["Cleaned: ",e.changes.join(", ")]})]})]})]}),(0,a.jsxs)("div",{className:"mt-3 grid grid-cols-1 gap-3 [@container_(min-width:34rem)]:grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] [@container_(min-width:34rem)]:items-end",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:`sc-tier-${s}`,className:"text-sm font-semibold",children:"Tier"}),(0,a.jsx)("select",{id:`sc-tier-${s}`,className:$,value:e.tier,onChange:s=>Z(e.id,{tier:s.target.value}),children:c.iB.map(e=>(0,a.jsxs)("option",{value:e.key,children:[e.label,": ",e.long]},e.key))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:`sc-role-${s}`,className:"text-sm font-semibold",children:"Role in this story"}),(0,a.jsx)("select",{id:`sc-role-${s}`,className:$,value:e.role,onChange:s=>Z(e.id,{role:s.target.value}),children:c.gg.map(e=>(0,a.jsx)("option",{value:e.key,children:e.label},e.key))})]}),(0,a.jsxs)("label",{className:"flex min-h-11 cursor-pointer items-center gap-2.5 text-sm font-semibold",children:[(0,a.jsx)("input",{type:"checkbox",checked:e.read,onChange:s=>Z(e.id,{read:s.target.checked}),className:"h-5 w-5 accent-[hsl(var(--primary))]"}),"I read this page"]})]}),(0,a.jsxs)("p",{className:"mt-2 text-xs text-muted-foreground",children:[e.guessed&&(0,a.jsx)("span",{className:"font-semibold text-foreground",children:"Guessed. "}),e.reason]})]},e.id))}),(0,a.jsxs)("fieldset",{className:"mt-6 border-t border-border/70 pt-5",children:[(0,a.jsx)("legend",{className:"text-sm font-bold text-primary",children:"When was the main source published?"}),(0,a.jsx)("div",{className:"mt-3 grid grid-cols-1 gap-2 [@container_(min-width:34rem)]:grid-cols-3",role:"radiogroup","aria-label":"What you know about the publication time",children:[["exact","An exact time"],["date","A date only"],["none","Not known"]].map(([e,t])=>(0,a.jsxs)("label",{className:`flex min-h-11 cursor-pointer items-center gap-2.5 rounded-lg border px-3.5 py-2 text-sm font-semibold ${s.precision===e?"border-primary bg-primary/5":"border-border bg-background hover:bg-muted"}`,children:[(0,a.jsx)("input",{type:"radio",name:"sc-precision",value:e,checked:s.precision===e,onChange:()=>X(e),className:"h-4 w-4 accent-[hsl(var(--primary))]"}),t]},e))}),(0,a.jsxs)("div",{className:"mt-3 grid grid-cols-1 gap-3 [@container_(min-width:34rem)]:grid-cols-2",children:["exact"===s.precision&&(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"sc-published-time",className:"text-sm font-semibold",children:"Published at"}),(0,a.jsx)("input",{id:"sc-published-time",type:"datetime-local",className:$,value:C(s.published),onChange:e=>z({published:function(e){let s=new Date(e);return e&&Number.isFinite(s.getTime())?s.toISOString():""}(e.target.value)})})]}),"date"===s.precision&&(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"sc-published-date",className:"text-sm font-semibold",children:"Published on"}),(0,a.jsx)("input",{id:"sc-published-date",type:"date",className:$,value:s.published.slice(0,10),onChange:e=>z({published:e.target.value})})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"sc-window",className:"text-sm font-semibold",children:"How far back do you cover?"}),(0,a.jsx)("select",{id:"sc-window",className:$,value:s.windowHours,onChange:e=>z({windowHours:Number(e.target.value)}),children:c.CB.map(e=>(0,a.jsx)("option",{value:e.hours,children:e.label},e.hours))})]})]}),(0,a.jsxs)("p",{className:"mt-3 text-sm text-muted-foreground","data-testid":"freshness",children:[(0,a.jsx)("span",{className:"font-semibold text-foreground",children:q.freshness.summary})," ",q.freshness.detail]}),s.asOf&&(0,a.jsxs)("p",{className:"mt-2 text-sm text-muted-foreground",children:["Measured from ",new Date(s.asOf).toLocaleStr
1ing("en-US",{dateStyle:"medium",timeStyle:"short"}),", the moment the example was checked."," ",(0,a.jsx)("button",{type:"button",onClick:()=>z({asOf:null}),className:"min-h-11 font-semibold text-primary underline-offset-4 hover:underline",children:"Use the current time"})]})]})]}),(0,a.jsxs)("section",{className:`${S} min-w-0`,"aria-labelledby":"sc-rate-h",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[(0,a.jsx)("h2",{id:"sc-rate-h",className:"font-display text-2xl font-bold",children:"3. Adjust the ratings"}),(0,a.jsx)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground","aria-hidden":"true",children:q.rated?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"font-display text-xl font-bold text-foreground",children:q.score.total}),q.triage.held?(0,a.jsx)("span",{children:"No call yet"}):(0,a.jsx)(y.tq,{band:q.score.band})]}):"Paste a link or move a slider"})]}),(0,a.jsxs)("p",{className:"mt-1 text-sm text-muted-foreground","data-testid":"quick-intro",children:[q.rated&&Q.length>0?"This is a quick score, so every rating marked Suggested comes from what you pasted: the source tiers, your read ticks and your date. Move a slider to make it yours.":"Move a slider to set a rating yourself."," ","Each is 0 to ",c.nH,". The weights are fixed at 35, 25, 20, 10 and 10 points, so relevance counts most."]}),(0,a.jsx)("ul",{className:"mt-5 space-y-7",children:c.Yf.map(e=>{let s=q.score.dimensions.find(s=>s.key===e.key),r="freshness"===e.key&&null!==V,i=r?s.effective:s.rating,l=(0,c.O5)(i),o=q.origins[e.key],d=q.suggestions[e.key];return(0,a.jsxs)("li",{children:[(0,a.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,a.jsx)("label",{htmlFor:`sc-r-${e.key}`,className:"font-semibold",children:e.label}),(0,a.jsxs)("span",{className:"whitespace-nowrap text-sm tabular-nums text-muted-foreground",children:[(0,a.jsx)("span",{className:"font-display text-xl font-bold text-foreground",children:s.points})," of ",e.weight]})]}),(0,a.jsx)("p",{id:`sc-r-${e.key}-help`,className:"text-sm text-muted-foreground",children:e.question}),r&&V?(0,a.jsxs)("div",{id:"sc-r-freshness-lock",className:"mt-1.5 flex flex-wrap items-center gap-x-3 gap-y-1 rounded-lg bg-muted px-3 py-2 text-sm","data-testid":"freshness-lock",children:[(0,a.jsx)(n.A,{className:"h-4 w-4 flex-shrink-0 text-muted-foreground","aria-hidden":"true"}),(0,a.jsx)("span",{className:"min-w-0 flex-1",children:V.reason}),V.canAddTime&&(0,a.jsx)("button",{type:"button",onClick:()=>{X("exact"),D(!0)},className:"min-h-11 rounded-md border border-border bg-background px-3.5 py-2 text-sm font-semibold hover:bg-muted focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",children:"Add a publish time"})]}):(0,a.jsxs)("p",{id:`sc-r-${e.key}-origin`,className:"mt-1.5 flex flex-wrap items-center gap-x-2 gap-y-1 text-sm text-muted-foreground","data-testid":`origin-${e.key}`,"data-origin":o,children:["suggested"===o&&d&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"rounded-full bg-secondary/30 px-2.5 py-0.5 text-xs font-bold text-foreground",children:"Suggested"}),(0,a.jsx)("span",{className:"min-w-0",children:d.reason})]}),"default"===o&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"rounded-full bg-muted px-2.5 py-0.5 text-xs font-bold text-foreground",children:"Starting value"}),(0,a.jsx)("span",{className:"min-w-0",children:"Paste a source link and I will suggest one."})]}),"you"===o&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"rounded-full bg-primary/10 px-2.5 py-0.5 text-xs font-bold text-primary",children:"Your rating"}),d&&d.value!==s.rating&&(0,a.jsxs)("button",{type:"button",onClick:()=>{var s;return s=e.key,void t(e=>({...e,touched:e.touched.filter(e=>e!==s)}))},"aria-label":`Use suggested ${d.value} for ${e.label}`,className:"min-h-11 rounded-md px-2 text-sm font-semibold text-primary underline-offset-4 hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",children:["Use suggested ",d.value]})]})]}),(0,a.jsx)("input",{id:`sc-r-${e.key}`,type:"range",min:0,max:c.nH,step:1,value:i,disabled:r,"aria-describedby":r?`sc-r-${e.key}-help sc-r-freshness-lock`:`sc-r-${e.key}-help sc-r-${e.key}-origin`,"aria-valuetext":`${i} of ${c.nH}, ${c.rG[l].toLowerCase()}
1`,onChange:s=>{var a,r;return a=e.key,r=Number(s.target.value),void t(e=>({...e,ratings:{...e.ratings,[a]:r},rated:!0,touched:e.touched.includes(a)?e.touched:[...e.touched,a]}))},className:"mt-2 block min-h-11 w-full accent-[hsl(var(--primary))] disabled:cursor-not-allowed disabled:opacity-50"}),(0,a.jsx)("div",{className:"flex justify-between px-1 text-xs tabular-nums text-muted-foreground","aria-hidden":"true",children:Array.from({length:c.nH+1},(e,s)=>(0,a.jsx)("span",{children:s},s))}),(0,a.jsx)("ul",{className:"mt-3 grid grid-cols-1 gap-2 [@container_(min-width:40rem)]:grid-cols-3",children:["low","mid","high"].map(s=>(0,a.jsxs)("li",{className:`rounded-lg border px-3 py-2.5 ${s===l?"border-primary bg-primary/5":"border-border/70"}`,children:[(0,a.jsxs)("span",{className:"block text-xs font-bold text-muted-foreground",children:[c.rG[s],", ",c.R3[s]]}),(0,a.jsx)("span",{className:"block text-sm leading-snug",children:e.anchors[s]})]},s))}),"confidence"===e.key&&(0,a.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:"This measures how well sourced the story is, not whether the product will perform."})]},e.key)})})]}),(0,a.jsxs)("section",{className:`${S} min-w-0`,"aria-labelledby":"sc-claims-h",children:[(0,a.jsx)("h2",{id:"sc-claims-h",className:"font-display text-2xl font-bold",children:"4. Claim ledger"}),(0,a.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Write each claim you plan to state, say which source backs it, and note where you found it: a quote, a section, a table or a timestamp. Attribute a maker's own benchmark as theirs. Two articles repeating one press release are not two confirmations."}),0===s.claims.length?(0,a.jsx)("p",{className:"mt-4 rounded-xl border border-dashed border-border px-4 py-5 text-sm text-muted-foreground",children:"No claims yet. A story is not ready until its claims are logged and checked."}):(0,a.jsx)("ol",{className:"mt-4 space-y-3",children:s.claims.map((e,s)=>(0,a.jsxs)("li",{"aria-label":`Claim ${s+1}`,className:"rounded-xl border border-border/70 bg-background p-4","data-testid":"claim-row",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsxs)("span",{className:"font-display text-lg font-bold",children:["Claim ",s+1]}),(0,a.jsx)("button",{type:"button","aria-label":`Remove claim ${s+1}`,onClick:()=>t(s=>({...s,claims:s.claims.filter(s=>s.id!==e.id)})),className:"inline-flex h-11 w-11 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",children:(0,a.jsx)(o.A,{className:"h-4 w-4","aria-hidden":"true"})})]}),(0,a.jsx)("label",{htmlFor:`sc-c-${e.id}-text`,className:"mt-1 block text-sm font-semibold",children:"The claim"}),(0,a.jsx)("textarea",{id:`sc-c-${e.id}-text`,rows:2,maxLength:c.ac,className:$,value:e.text,onChange:s=>ee(e.id,{text:s.target.value}),placeholder:"One checkable statement, with who says it"}),(0,a.jsxs)("div",{className:"mt-3 grid grid-cols-1 gap-3 [@container_(min-width:34rem)]:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:`sc-c-${e.id}-source`,className:"text-sm font-semibold",children:"Which source supports it"}),(0,a.jsxs)("select",{id:`sc-c-${e.id}-source`,className:$,value:q.sources.some(s=>
1s.id===e.sourceId)?e.sourceId:"",onChange:s=>ee(e.id,{sourceId:s.target.value}),disabled:0===q.sources.length,children:[(0,a.jsx)("option",{value:"",children:q.sources.length?"Pick a source":"Add a source link first"}),q.sources.map((e,s)=>(0,a.jsxs)("option",{value:e.id,children:["S",s+1,": ",e.display]},e.id))]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:`sc-c-${e.id}-locator`,className:"text-sm font-semibold",children:"Where in the source"}),(0,a.jsx)("input",{id:`sc-c-${e.id}-locator`,className:$,maxLength:c.Ib,value:e.locator,onChange:s=>ee(e.id,{locator:s.target.value}),placeholder:"A quote, section, table or timestamp"})]})]}),(0,a.jsxs)("div",{className:"mt-3 [@container_(min-width:34rem)]:max-w-xs",children:[(0,a.jsx)("label",{htmlFor:`sc-c-${e.id}-status`,className:"text-sm font-semibold",children:"What you found"}),(0,a.jsx)("select",{id:`sc-c-${e.id}-status`,className:$,value:e.status,onChange:s=>ee(e.id,{status:s.target.value}),children:c.i9.map(e=>(0,a.jsx)("option",{value:e.key,children:e.label},e.key))})]})]},e.id))}),(0,a.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-3",children:[(0,a.jsxs)("button",{type:"button",onClick:function(){t(e=>e.claims.length>=c.Bp?e:{...e,claims:[...e.claims,{id:`c${Date.now().toString(36)}${Math.random().toString(36).slice(2,6)}`,text:"",sourceId:"",locator:"",status:"pending"}]})},disabled:s.claims.length>=c.Bp,className:`${A} disabled:opacity-50`,children:[(0,a.jsx)(d.A,{className:"h-4 w-4","aria-hidden":"true"})," Add a claim"]}),s.claims.length>=c.Bp&&(0,a.jsxs)("span",{className:"text-sm text-muted-foreground",children:[c.Bp," claims is the limit."]})]})]}),(0,a.jsxs)("section",{className:`${S} min-w-0 space-y-3`,"aria-labelledby":"sc-optional-h",children:[(0,a.jsx)("h2",{id:"sc-optional-h",className:"font-display text-2xl font-bold",children:"Optional checks"}),(0,a.jsxs)("details",{className:"group rounded-xl border border-border/70 bg-background",children:[(0,a.jsx)("summary",{className:"flex min-h-11 cursor-pointer items-center px-4 py-2 font-semibold",children:"Same event as one you already have?"}),(0,a.jsxs)("div",{className:"space-y-4 border-t border-border/70 p-4",children:[(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"An event key is company (from step 1), product or model, version, core action and announcement date. Two stories merge only when the whole key matches. A shared company or topic is not enough."}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-3 [@container_(min-width:34rem)]:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"sc-ev-product",className:"text-sm font-semibold",children:"Product or model"}),(0,a.jsx)("input",{id:"sc-ev-product",className:$,maxLength:120,value:s.event.product,onChange:e=>z({event:{...s.event,product:e.target.value}})})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"sc-ev-version",className:"text-sm font-semibold",children:"Version, if there is one"}),(0,a.jsx)("input",{id:"sc-ev-version",className:$,maxLength:120,value:s.event.version,onChange:e=>z({event:{...s.event,version:e.target.value}})})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"sc-ev-action",className:"text-sm font-semibold",children:"Core action"}),(0,a.jsxs)("select",{id:"sc-ev-action",className:$,value:s.event.action,onChange:e=>z({event:{...s.event,action:e.target.value}}),children:[(0,a.jsx)("option",{value:"",children:"Pick one"}),c.dn.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"sc-ev-date",className:"text-sm font-semibold",children:"Announcement date"}),(0,a.jsx)("input",{id:"sc-ev-date",type:"date",className:$,value:s.event.date,onChange:e=>z({event:{...s.event,date:e.target.value}})})]})]}),(0,a.jsxs)("div",{className:"rounded-lg bg-muted px-4 py-3 text-sm",children:[(0,a.jsx)("p",{className:"font-semibold",children:"Event key"}),q.event.key?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"mt-1 break-all font-mono text-xs","data-testid":"event-key",children:q.event.key}),(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)(m.CopyButton,{text:q.event.key,label:"Copy event key"})})]}):(0,a.jsxs)("p",{className:"mt-1 text-muted-foreground",children:["Add the ",q.event.missing.join(", ")," to build the key."]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"sc-known",className:"text-sm font-semibold",children:"Event keys you already have, one per line"}),(0,a.jsx)("p",{id:"sc-known-help",className:"text-sm text-muted-foreground",children:"Paste keys from earlier stories, or write Company | Product | Version | Action | Date."}),(0,a.jsx)("textarea",{id:"sc-known","aria-describedby":"sc-known-help",rows:3,maxLength:3e3,className:`${$} font-mono text-sm`,value:s.knownKeys,onChange:e=>z({knownKeys:e.target.value})}),!0===q.knownMatch&&(0,a.jsx)("p",{className:"mt-2 text-sm font-semibold text-primary",children:"Same event as one you already have. Merge it with that story instead of ranking it twice."}),!1===q.knownMatch&&(0,a.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Not the same event as any key you listed."}
1),Y.invalid.length>0&&(0,a.jsxs)("p",{className:"mt-2 text-sm text-muted-foreground",children:[Y.invalid.length," ",1===Y.invalid.length?"line was":"lines were"," not a key and ",1===Y.invalid.length?"was":"were"," skipped."]})]})]})]}),(0,a.jsxs)("details",{className:"rounded-xl border border-border/70 bg-background",open:s.lens.on,children:[(0,a.jsx)("summary",{className:"flex min-h-11 cursor-pointer items-center px-4 py-2 font-semibold",children:"Audience lens"}),(0,a.jsxs)("div",{className:"space-y-4 border-t border-border/70 p-4",children:[(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"The five dimensions treat every audience alike. A lens adds six signals about your channel. Leave a signal unknown and it stays unknown: it is left out, not counted as zero, and the result says when the unknowns could change the band."}),(0,a.jsxs)("label",{className:"flex min-h-11 cursor-pointer items-center gap-2.5 text-sm font-semibold",children:[(0,a.jsx)("input",{type:"checkbox",checked:s.lens.on,onChange:e=>z({lens:{...s.lens,on:e.target.checked}}),className:"h-5 w-5 accent-[hsl(var(--primary))]"}),"Add my audience lens to the score"]}),s.lens.on&&(0,a.jsx)("div",{className:"grid grid-cols-1 gap-3 [@container_(min-width:34rem)]:grid-cols-2",children:c.fG.map(e=>(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:`sc-lens-${e.key}`,className:"text-sm font-semibold",children:e.label}),(0,a.jsx)("p",{id:`sc-lens-${e.key}-help`,className:"text-sm text-muted-foreground",children:e.question}),(0,a.jsxs)("select",{id:`sc-lens-${e.key}`,"aria-describedby":`sc-lens-${e.key}-help`,className:$,value:s.lens.signals[e.key]??"",onChange:t=>{let a={...s.lens.signals};t.target.value?a[e.key]=t.target.value:delete a[e.key],z({lens:{...s.lens,signals:a}})},children:[(0,a.jsx)("option",{value:"",children:"Unknown"}),(0,a.jsx)("option",{value:"low",children:"Low"}),(0,a.jsx)("option",{value:"medium",children:"Medium"}),(0,a.jsx)("option",{value:"high",children:"High"})]})]},e.key))})]})]})]}),(0,a.jsx)("section",{className:"min-w-0","aria-labelledby":"sc-brief-h",children:(0,a.jsxs)(x.R,{eyebrow:"The handover",title:"5. Research brief",titleAs:"h2",titleId:"sc-brief-h",toolbar:J?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.CopyButton,{text:W,label:"Copy research brief"}),(0,a.jsx)(u.m,{text:W,filename:"research-brief.md",label:"Download .md"})]}):void 0,children:[(0,a.jsx)("p",{className:"px-1 pb-3 text-sm text-muted-foreground sm:pb-4",children:"Headline, score, sources by tier, the claim ledger and what is still open, as markdown you can paste into a doc or hand to a writer."}),J?(0,a.jsx)("pre",{role:"group",className:"max-h-80 overflow-auto whitespace-pre-wrap break-words rounded-xl border border-border/70 bg-background p-4 text-xs leading-relaxed",tabIndex:0,"aria-label":"Research brief preview","data-testid":"brief",children:W}):(0,a.jsx)(h.p,{title:"Nothing to hand over yet",kind:"doc",className:"min-h-[12rem]",children:"Add a headline or a source link and the brief builds itself here."})]})})]}),result:(0,a.jsx)(x.R,{eyebrow:"Your result",title:q.rated?Q.length?"Your quick score":"Your story, scored":"Paste a link to see a score",note:"Updates as you go",share:q.rated?{slug:"news-content-kit",text:(0,g.cm)(q,{headline:s.headline,rated:q.rated}),card:(0,b.QT)(q,{headline:s.headline,rated:q.rated}),link:()=>(0,N.pack)(s)}:void 0,children:(0,a.jsx)(y.ZT,{ev:q,rated:q.rated,suggestionNote:!0,headingRef:P})}),hasResult:G})]})}},68531:(e,s,t)=>{t.d(s,{m:()=>n});var a=t(95155),r=t(39867);function n({text:e,filename:s,label:t="Download"}){return(0,a.jsxs)("button",{type:"button",onClick:function(){let t=URL.createObjectURL(new Blob([e],{type:"text/markdown;charset=utf-8"})),a=document.createElement("a");a.href=t,a.download=s,document.body.appendChild(a),a.click(),a.remove(),setTimeout(()=>URL.revokeObjectURL(t),1e3)},className:"min-h-11 inline-flex items-center gap-2 rounded-md border border-border bg-background px-4 py-2 text-sm font-semibold hover:bg-muted focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",children:[(0,a.jsx)(r.A,{className:"h-4 w-4","aria-hidden":"true"}),t]})}},71360:(e,s,t)=>{t.d(s,{A:()=>a});
1let a=(0,t(71847).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},77682:(e,s,t)=>{t.d(s,{Gv:()=>a,Mn:()=>i,Qq:()=>r,bu:()=>n});let a=e=>!!e&&"object"==typeof e&&!Array.isArray(e),r=(e,s)=>"string"==typeof e?e.slice(0,s):"";function n(e,s,t){return"number"==typeof e&&Number.isFinite(e)&&e>=s&&e<=t?e:null}function i(e,s,t){return(Array.isArray(e)?e:[]).filter(e=>"string"==typeof e).map(e=>e.slice(0,s).trim()).filter(Boolean).slice(0,t)}}}]);

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.