1import{t as l,l as u,k as g,r as h,j as a,h as f}from"./index-C0NzahTm-v34753.js";/** 2 * @license lucide-react v0.577.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const x=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],k=l("flag",x);function w({kind:i,targetId:n,label:s="Report",style:d={}}){const c=u(g.contentSafety.report),[t,e]=h.useState("idle"),p=async()=>{const o=f();if(!o||!n||t!=="idle")return;const r=window.prompt("What is wrong with this content? (optional)");if(r!==null){e("sending");try{await c({authToken:o,kind:i,targetId:String(n),reason:r.trim()||void 0}),e("done")}catch{e("idle"),window.alert("Could not send the report. Please try again.")}}};return a.jsxs("button",{type:"button",onClick:p,disabled:t!=="idle",style:{display:"inline-flex",alignItems:"center",gap:"5px",background:"transparent",border:"none",padding:0,fontSize:"12px",fontWeight:600,color:"var(--text-tertiary)",cursor:t==="idle"?"pointer":"default",font:"inherit",...d},children:[a.jsx(k,{size:12,strokeWidth:2.2}),t==="done"?"Reported. Thanks":t==="sending"?"Reportingâ¦":s]})}export{w as R};
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.