import{a as e,n as t}from"./jsx-runtime-CutOxEx1.js";import{r as n}from"./notifications-BrcI-_N-.js";var r=e(t(),1);function i(){let[e,t]=(0,r.useState)(``);return{copiedKey:e,copyText:async(e,r)=>{let i=String(r||``).trim();if(i)try{await navigator.clipboard.writeText(i),t(e),n({key:`copy-success`,title:`复制成功`,description:`内容已复制到剪贴板。`,ttlMs:2600}),window.setTimeout(()=>t(t=>t===e?``:t),1600)}catch{}}}}function a(e,t=`center`){let n=document.getElementById(String(e||``).trim());if(n)try{n.scrollIntoView({behavior:`smooth`,block:t})}catch{}}var o=e=>{let t=[];return e.nextQuestion&&e.onUseNextQuestion&&t.push({key:`next_question`,label:e.nextQuestionLabel||`下一轮重点：${e.nextQuestion}`,onClick:e.onUseNextQuestion,primary:!0}),e.onShowDetail&&t.push({key:`show_detail`,label:e.detailLabel||`查看详细报告`,onClick:e.onShowDetail}),e.customActions&&t.push(...e.customActions),t};export{a as n,i as r,o as t};