import{n as e,s as t,t as n}from"./jsx-runtime-Bzw2jH9X.js";import{Ft as r,a as i,u as a,v as o,zt as s}from"./services-Ddh4dHvP.js";import{t as c}from"./tooltip-yGR9BzTP.js";import{t as l}from"./date-CTxYulDo.js";import{t as u}from"./spin-DUmNjrhn.js";import{t as d}from"./pagination-CvIkfoXb.js";import{t as f}from"./createLucideIcon-BkIMvJln.js";import{n as p}from"./modalStore-B5-16H5z.js";import{Q as m,V as h,cn as g,ht as _,i as v,lt as y,nt as b,q as x,st as S,un as C,vt as w}from"./index-DkcBoy_T.js";import{t as T}from"./GeoSEO-CM_kwP_Q.js";import{t as E}from"./useCategory-DYXkQcDE.js";import{t as D}from"./Button-CZzJ734d.js";import{n as O,r as k,t as A}from"./icon-pdf-Dqc8I27s.js";var j={name:`scroll-text`,size:24,node:[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]};j.node;var M=f(j),N=t(e(),1),P=n();function F({onSearch:e}){let[t,n]=(0,N.useState)(``),r=()=>{e(t.trim())};return(0,P.jsxs)(`div`,{className:`relative bg-linear-to-br from-[#ebf5ff] via-[#eef2ff] to-[#f5f3ff] rounded-4xl px-12 py-8 border border-blue-100/40 shadow-[0_20px_50px_-12px_rgba(99,102,241,0.06)] overflow-hidden group`,children:[(0,P.jsxs)(`svg`,{className:`absolute left-0 top-0 h-full w-[45%] opacity-100 select-none pointer-events-none`,viewBox:`0 0 320 200`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,P.jsx)(`circle`,{cx:`45`,cy:`50`,r:`3`,fill:`#60a5fa`,opacity:`0.4`}),(0,P.jsx)(`circle`,{cx:`160`,cy:`120`,r:`4.5`,fill:`#3b82f6`,opacity:`0.6`}),(0,P.jsx)(`circle`,{cx:`100`,cy:`150`,r:`2`,fill:`#818cf8`,opacity:`0.4`}),(0,P.jsx)(`circle`,{cx:`210`,cy:`40`,r:`3`,fill:`#3b82f6`,opacity:`0.3`}),(0,P.jsx)(`circle`,{cx:`280`,cy:`140`,r:`2`,fill:`#60a5fa`,opacity:`0.4`}),(0,P.jsx)(`circle`,{cx:`60`,cy:`110`,r:`7`,className:`animate-pulse`,fill:`#3b82f6`,fillOpacity:`0.15`,stroke:`#3b82f6`,strokeWidth:`1`,strokeDasharray:`2 2`}),(0,P.jsx)(`circle`,{cx:`60`,cy:`110`,r:`2.5`,fill:`#2563eb`}),(0,P.jsx)(`circle`,{cx:`130`,cy:`65`,r:`9`,className:`animate-pulse`,fill:`#10b981`,fillOpacity:`0.1`,stroke:`#10b981`,strokeWidth:`1`}),(0,P.jsx)(`circle`,{cx:`130`,cy:`65`,r:`3`,fill:`#10b981`}),(0,P.jsx)(`circle`,{cx:`200`,cy:`130`,r:`12`,className:`animate-pulse`,fill:`#f43f5e`,fillOpacity:`0.08`,stroke:`#f43f5e`,strokeWidth:`1`}),(0,P.jsx)(`circle`,{cx:`200`,cy:`130`,r:`4`,fill:`#f43f5e`}),(0,P.jsx)(`path`,{d:`M 60 110 L 130 65 L 200 130`,stroke:`url(#gradient-lines-left)`,strokeWidth:`1`,strokeLinecap:`round`,opacity:`0.4`}),(0,P.jsx)(`path`,{d:`M 45 50 L 130 65 L 210 40`,stroke:`url(#gradient-lines-left)`,strokeWidth:`0.75`,opacity:`0.3`}),(0,P.jsx)(`path`,{d:`M 60 110 L 100 150 L 200 130`,stroke:`url(#gradient-lines-left)`,strokeWidth:`0.75`,opacity:`0.3`}),(0,P.jsx)(`defs`,{children:(0,P.jsxs)(`linearGradient`,{id:`gradient-lines-left`,x1:`0`,y1:`0`,x2:`1`,y2:`1`,children:[(0,P.jsx)(`stop`,{offset:`0%`,stopColor:`#3b82f6`}),(0,P.jsx)(`stop`,{offset:`50%`,stopColor:`#818cf8`}),(0,P.jsx)(`stop`,{offset:`100%`,stopColor:`#f43f5e`})]})})]}),(0,P.jsxs)(`svg`,{className:`absolute right-0 top-0 h-full w-[45%] opacity-100 select-none pointer-events-none`,viewBox:`0 0 320 200`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,P.jsx)(`circle`,{cx:`270`,cy:`90`,r:`3.5`,fill:`#c084fc`,opacity:`0.5`}),(0,P.jsx)(`circle`,{cx:`140`,cy:`160`,r:`2`,fill:`#818cf8`,opacity:`0.4`}),(0,P.jsx)(`circle`,{cx:`290`,cy:`40`,r:`2.5`,fill:`#60a5fa`,opacity:`0.4`}),(0,P.jsx)(`circle`,{cx:`210`,cy:`80`,r:`4`,fill:`#3b82f6`,opacity:`0.5`}),(0,P.jsx)(`path`,{d:`M 320 120 L 270 120 L 210 80 L 140 80`,stroke:`#3b82f6`,strokeWidth:`1`,opacity:`0.25`,strokeLinecap:`round`}),(0,P.jsx)(`path`,{d:`M 320 50 L 290 50 L 250 80 L 210 80`,stroke:`#818cf8`,strokeWidth:`1`,opacity:`0.25`,strokeLinecap:`round`}),(0,P.jsx)(`path`,{d:`M 280 180 L 240 140 L 210 80`,stroke:`#a78bfa`,strokeWidth:`1`,opacity:`0.25`,strokeLinecap:`round`}),(0,P.jsx)(`circle`,{cx:`270`,cy:`120`,r:`2`,fill:`#3b82f6`}),(0,P.jsx)(`circle`,{cx:`250`,cy:`80`,r:`2`,fill:`#818cf8`}),(0,P.jsx)(`circle`,{cx:`240`,cy:`140`,r:`2`,fill:`#a78bfa`}),(0,P.jsx)(`circle`,{cx:`210`,cy:`80`,r:`7.5`,className:`animate-ping`,stroke:`#3b82f6`,strokeWidth:`0.5`,opacity:`0.5`})]}),(0,P.jsxs)(`div`,{className:`relative z-10 text-center max-w-4xl mx-auto py-2`,children:[(0,P.jsxs)(`h1`,{className:`text-[42px] font-black text-slate-900 tracking-tight mb-5 leading-none flex items-center justify-center gap-2.5`,children:[(0,P.jsx)(`span`,{children:`产业与企业情报`}),(0,P.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-blue-500 shrink-0`}),(0,P.jsx)(`span`,{className:`text-blue-600 font-extrabold text-[34px]`,children:`智能穿透`})]}),(0,P.jsxs)(`p`,{className:`text-slate-500 text-sm font-semibold max-w-xl mx-auto mb-9 leading-relaxed`,children:[`实时追踪 `,(0,P.jsx)(`span`,{className:`font-extrabold text-blue-600`,children:`10,000+`}),` `,`企业的最新动态。聚合公司研报、机构调研纪要与一级市场投融资信息。`]}),(0,P.jsxs)(`div`,{className:`relative max-w-3xl mx-auto group/search`,children:[(0,P.jsx)(`div`,{className:`absolute -inset-1.5 bg-linear-to-r from-blue-300 via-indigo-200 to-purple-300 rounded-[28px] blur-md opacity-25 group-focus-within/search:opacity-45 transition duration-500`}),(0,P.jsx)(`div`,{className:`relative p-2 rounded-[28px] border border-white/80 bg-white/40 backdrop-blur-md shadow-[0_12px_40px_rgba(99,102,241,0.06)] flex items-center transition-all duration-300 w-full`,children:(0,P.jsxs)(`div`,{className:`relative bg-white rounded-2xl border border-slate-100 flex items-center p-1.5 w-full shadow-sm focus-within:ring-4 focus-within:ring-blue-100 focus-within:border-blue-300 transition-all duration-300`,children:[(0,P.jsx)(`input`,{type:`text`,value:t,onChange:e=>n(e.target.value),onKeyDown:e=>{e.key===`Enter`&&r()},placeholder:`输入公司全称、简称或品牌名(如:元气森林)`,className:`w-full pl-5 pr-12 py-3 outline-none text-slate-800 placeholder-slate-400 text-base bg-transparent font-medium`}),(0,P.jsx)(x,{className:`text-slate-400 w-5 h-5 mx-3 shrink-0 cursor-pointer hover:text-blue-600 transition-colors`,onClick:r}),(0,P.jsx)(D,{onClick:r,className:`h-12 px-7 rounded-[11px] bg-blue-600 hover:bg-blue-700 text-white font-extrabold shadow-lg shadow-blue-500/20 hover:shadow-blue-500/30 transition-all hover:scale-[1.01] active:scale-95 shrink-0 select-none`,children:`搜索情报`})]})})]})]})]})}var I=(0,N.memo)(F);function L(){let{category:e}=E(),[t,n]=(0,N.useState)([]),[i,a]=(0,N.useState)(!0);return(0,N.useEffect)(()=>{(async()=>{a(!0);try{let e=await r(`hot`);n(e)}catch(e){console.error(e),n([])}finally{a(!1)}})()},[]),(0,P.jsxs)(`div`,{className:`bg-white rounded-2xl border border-gray-200 shadow-sm p-5`,children:[(0,P.jsx)(`div`,{className:`flex items-center mb-5`,children:(0,P.jsxs)(`h3`,{className:`font-bold text-slate-900 flex items-center gap-2 text-base`,children:[(0,P.jsx)(b,{size:18,className:`text-blue-600`}),` 热门关注`]})}),i?(0,P.jsx)(`div`,{className:`space-y-4`,children:Array.from({length:3}).map((e,t)=>(0,P.jsxs)(`div`,{className:`rounded-2xl border border-gray-100 p-5 animate-pulse space-y-3`,children:[(0,P.jsx)(`div`,{className:`h-4 bg-slate-100 rounded w-4/5`}),(0,P.jsx)(`div`,{className:`h-3 bg-slate-100 rounded w-1/3`}),(0,P.jsx)(`div`,{className:`h-3 bg-slate-100 rounded w-2/3`})]},t))}):t.length===0?(0,P.jsx)(`div`,{className:`py-6 text-center text-sm text-slate-400`,children:`暂无热门关注`}):(0,P.jsx)(`div`,{className:`space-y-4`,children:t.map(t=>{let n=(t.labelIds??[]).map(t=>e?.labelMap[t]).filter(e=>!!e),r=`${t.pageTotal}页-${v(t.fileSize)}`;return(0,P.jsx)(`div`,{onClick:()=>window.open(`/report/${t.id}`,`_blank`,`noopener,noreferrer`),className:`bg-white rounded-2xl border border-gray-200 px-5 py-3.5 hover:shadow-[0_8px_30px_rgba(0,0,0,0.04)] hover:border-blue-300 transition-all cursor-pointer group relative overflow-hidden text-left`,children:(0,P.jsxs)(`div`,{className:`space-y-3.5 text-left`,children:[(0,P.jsxs)(`h3`,{className:`text-base font-bold text-slate-800 group-hover:text-blue-600 transition-colors leading-relaxed`,children:[t.orgName?`【${t.orgName}】`:null,t.title]}),(0,P.jsxs)(`div`,{className:`flex items-center flex-wrap gap-2`,children:[n.map((e,t)=>e===`优质`?(0,P.jsxs)(`span`,{className:`px-1.5 py-0.5 text-[10px] rounded bg-linear-to-r from-amber-100 to-yellow-100 text-amber-700 font-bold border border-amber-200/50 shadow-sm flex items-center gap-1`,children:[(0,P.jsx)(w,{size:10,className:`text-amber-500`}),` `,e]},t):(0,P.jsx)(`span`,{className:`px-1.5 py-0.5 text-[10px] rounded bg-purple-100 text-purple-700 font-medium`,children:e},t)),(0,P.jsx)(`span`,{className:`bg-blue-50/80 text-blue-600 px-2 py-0.5 rounded-md border border-blue-100/50 text-[10px] font-bold`,children:r})]}),(0,P.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1.5 pt-1 text-[11px]`,children:[(0,P.jsx)(`span`,{className:`text-slate-400 font-medium font-mono`,children:l(t.publishAt)}),(0,P.jsx)(`span`,{className:`text-slate-400 font-medium`,children:t.authors}),(0,P.jsx)(`span`,{className:`text-slate-400 font-medium`,children:t.uploaderName})]})]})},t.id)})})]})}var R=(0,N.memo)(L);function z(){let e=g(),[t,n]=(0,N.useState)([]),[r,i]=(0,N.useState)(!0),a=(0,N.useCallback)(async()=>{i(!0);try{let e=await o({status:`online`,sort:`sort`,order:`DESC`,companyReportRec:!0});n(e)}catch(e){console.error(e)}finally{i(!1)}},[]);(0,N.useEffect)(()=>{a()},[a]);let s=()=>{e(`/industry-research/topics`)},c=()=>{e(`/services`)},l=e=>{window.open(`/industry-research/collection/${e}`,`_blank`,`noopener,noreferrer`)};return r&&t.length===0?(0,P.jsx)(`div`,{className:`flex min-h-40 items-center justify-center rounded-2xl border border-blue-100/80 bg-linear-to-b from-[#f5f9ff] to-white p-5 shadow-sm`,children:(0,P.jsx)(u,{size:`small`,description:`加载中...`})}):t.length===0?null:(0,P.jsxs)(`div`,{className:`rounded-2xl border border-blue-100/80 bg-linear-to-b from-[#f5f9ff] to-white p-5 shadow-sm`,children:[(0,P.jsxs)(`div`,{className:`mb-4 flex items-center justify-between gap-2`,children:[(0,P.jsxs)(`h3`,{className:`flex items-center gap-2 text-base font-bold text-slate-900`,children:[(0,P.jsx)(_,{size:18,className:`text-blue-600`}),`公司研报精选包`]}),(0,P.jsxs)(`button`,{type:`button`,onClick:s,className:`flex cursor-pointer items-center gap-0.5 text-xs font-bold text-blue-600 transition-colors hover:text-blue-700`,children:[`更多`,(0,P.jsx)(y,{size:14})]})]}),(0,P.jsx)(`div`,{className:`space-y-3`,children:t.map(e=>(0,P.jsxs)(`button`,{type:`button`,onClick:()=>l(e.id),className:`w-full cursor-pointer rounded-xl border border-slate-100 bg-white p-3.5 text-left shadow-sm transition-all hover:border-blue-300 hover:shadow-[0_8px_24px_rgba(24,117,229,0.06)]`,children:[(0,P.jsx)(`p`,{className:`line-clamp-2 text-sm font-bold leading-snug text-slate-800`,children:e.title}),(0,P.jsxs)(`span`,{className:`mt-2 inline-block rounded-md bg-blue-50 px-2 py-0.5 text-[11px] font-bold text-blue-600`,children:[e.reportCount,` 篇报告`]})]},e.id))}),(0,P.jsxs)(`button`,{type:`button`,onClick:c,className:`mt-4 flex w-full cursor-pointer items-center justify-center gap-1.5 rounded-xl border border-blue-200 bg-white py-2.5 text-sm font-bold text-blue-600 transition-colors hover:border-blue-400 hover:bg-blue-50`,children:[(0,P.jsx)(S,{size:15,className:`text-amber-500`}),`开通会员免费下载`]})]})}var B=(0,N.memo)(z);function V({report:e,onNavigate:t,onDownload:n}){let{category:r}=E(),i=e.highlight?.title?.length?e.highlight.title.join(``):e.title,a=(e.labelIds??[]).map(e=>r?.labelMap[e]),o=e.businessId==null?``:r?.businessMap[e.businessId];return(0,P.jsx)(`div`,{onClick:()=>t(e.id),className:`bg-white rounded-2xl border border-gray-200 px-5 py-3.5 hover:shadow-[0_8px_30px_rgba(0,0,0,0.04)] hover:border-blue-300 transition-all cursor-pointer group`,children:(0,P.jsxs)(`div`,{className:`flex items-start gap-5`,children:[(0,P.jsxs)(`div`,{className:`flex-1 min-w-0 space-y-3`,children:[(0,P.jsxs)(`h3`,{className:`text-[16px] font-bold text-slate-800 group-hover:text-blue-600 transition-colors leading-relaxed`,children:[e.orgName?`【${e.orgName}】`:null,(0,P.jsx)(`span`,{className:`[&_em]:text-red-500 [&_em]:not-italic [&_em]:font-semibold`,dangerouslySetInnerHTML:{__html:i}})]}),(0,P.jsxs)(`div`,{className:`flex items-center flex-wrap gap-1.5`,children:[o&&(0,P.jsx)(`span`,{className:`px-2 py-0.5 text-[10px] rounded-md bg-red-50 text-red-500 font-bold border border-red-100/60`,children:o}),a.map((e,t)=>e===`优质`?(0,P.jsxs)(`span`,{className:`px-1.5 py-0.5 text-[10px] rounded bg-linear-to-r from-amber-100 to-yellow-100 text-amber-700 font-bold border border-amber-200/50 shadow-sm inline-flex items-center gap-1`,children:[(0,P.jsx)(w,{size:10,className:`text-amber-500`}),` `,e]},t):(0,P.jsx)(`span`,{className:`px-1.5 py-0.5 text-[10px] rounded bg-purple-100 text-purple-700 font-medium`,children:e},t)),(0,P.jsxs)(`span`,{className:`px-2 py-0.5 text-[10px] rounded-md bg-blue-50/80 text-blue-600 font-bold border border-blue-100/50`,children:[e.pageTotal,`页-`,v(e.fileSize)]})]}),(0,P.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1 text-[11px] text-slate-400`,children:[(0,P.jsx)(`span`,{className:`font-medium font-mono`,children:l(e.publishAt)}),(0,P.jsxs)(`span`,{className:`font-medium`,children:[`分析师: `,e.authors||`—`]})]})]}),(0,P.jsxs)(`button`,{type:`button`,className:`flex items-center justify-center gap-0 shrink-0 mt-0.5 w-[112px] py-[7px] px-3 rounded-xl border border-slate-200 bg-white text-slate-600 hover:border-blue-400 hover:text-blue-600 cursor-pointer transition-colors select-none ${e.hasDownloaded?`opacity-60`:``}`,onClick:t=>{t.stopPropagation(),n(e)},children:[e.hasDownloaded&&(0,P.jsx)(`span`,{className:`text-[13px] font-normal leading-[18px]`,children:`已`}),(0,P.jsx)(`span`,{className:`text-[13px] font-normal leading-[18px]`,children:`下载`}),(0,P.jsxs)(`span`,{className:`flex items-center`,children:[(0,P.jsx)(`img`,{src:A,alt:`PDF`,className:`w-4 h-4 ml-1.5`}),(0,P.jsx)(`img`,{src:e.isHorizontal?O:k,alt:e.isHorizontal?`PPT`:`Word`,className:`w-4 h-4 ml-1.5`})]})]})]})})}function H({loading:e,reports:t,page:n,total:r,onPageChange:i,onDownloadSuccess:a}){let o=p(e=>e.open),s=(0,N.useCallback)(e=>{window.open(`/report/${e}`,`_blank`,`noopener,noreferrer`)},[]),c=(0,N.useCallback)(e=>{o(`reportDownload`,{report:e,onDownloadSuccess:a})},[o,a]);return e&&t.length===0?(0,P.jsx)(`div`,{className:`space-y-4`,children:Array.from({length:4}).map((e,t)=>(0,P.jsxs)(`div`,{className:`bg-white rounded-2xl border border-gray-100 p-5 animate-pulse space-y-3`,children:[(0,P.jsx)(`div`,{className:`h-4 bg-slate-100 rounded w-4/5`}),(0,P.jsx)(`div`,{className:`h-3 bg-slate-100 rounded w-1/3`}),(0,P.jsx)(`div`,{className:`h-3 bg-slate-100 rounded w-1/2`})]},t))}):t.length===0?(0,P.jsxs)(`div`,{className:`bg-white rounded-2xl border border-gray-100 shadow-sm min-h-105 flex flex-col items-center justify-center px-8 py-10 text-center`,children:[(0,P.jsx)(`div`,{className:`w-16 h-16 bg-blue-50 text-blue-400 rounded-full flex items-center justify-center mb-5`,children:(0,P.jsx)(b,{size:26})}),(0,P.jsx)(`h3`,{className:`text-base font-bold text-slate-800 mb-2`,children:`暂无相关研报`}),(0,P.jsx)(`p`,{className:`text-sm text-slate-400 max-w-xs leading-relaxed`,children:`当前没有可展示的公司研究类研报,可尝试更换关键词后再搜索`})]}):(0,P.jsxs)(u,{spinning:e,description:`加载中...`,children:[(0,P.jsx)(`div`,{className:`space-y-4`,children:t.map(e=>(0,P.jsx)(V,{report:e,onNavigate:s,onDownload:c},e.id))}),r>10&&(0,P.jsx)(`div`,{className:`flex justify-center mt-8 pb-8`,children:(0,P.jsx)(d,{current:n,pageSize:10,total:r,onChange:i,showSizeChanger:!1})})]})}function U({variant:e}){return(0,P.jsxs)(`div`,{className:`bg-white rounded-2xl border border-gray-200/80 shadow-[0_20px_50px_rgba(0,0,0,0.08)] overflow-hidden my-6 relative`,children:[(0,P.jsx)(`div`,{className:`h-1.5 bg-linear-to-r from-amber-400 via-amber-500 to-orange-500 w-full`}),(0,P.jsxs)(`div`,{className:`p-10 flex flex-col items-center text-center`,children:[(0,P.jsx)(`div`,{className:`w-16 h-16 bg-amber-50 rounded-full border-4 border-amber-100 flex items-center justify-center mb-6`,children:(0,P.jsx)(m,{size:26,className:`text-[#d97706] stroke-[2.5]`})}),(0,P.jsx)(`h3`,{className:`text-xl font-black text-slate-900 mb-2.5 tracking-tight`,children:e===`policy`?`解锁政策法规库`:`解锁调研纪要库`}),(0,P.jsx)(`p`,{className:`text-slate-500 text-sm leading-relaxed max-w-sm mb-7 font-bold`,children:e===`policy`?`订阅解锁行业相关国家级、部委级及地方性政策原文与解读。`:`部分调研纪要仅对专业版会员开放,订阅解锁行业及企业专家调研、经销商访谈与高管深度交流纪要。`}),(0,P.jsx)(D,{onClick:()=>window.open(`https://pro.djyanbao.com`,`_blank`,`noopener,noreferrer`),className:`w-full max-w-[320px] h-12 bg-[#121c32] hover:bg-slate-900 text-white font-extrabold rounded-xl shadow-lg shadow-slate-900/10 border-none cursor-pointer text-sm tracking-wide transition-all duration-200 hover:scale-[1.01]`,children:`立即升级专业版`})]})]})}function W(){let[e,t]=(0,N.useState)(null),[n,r]=(0,N.useState)(!0),i=(0,N.useCallback)(async()=>{r(!0);try{let e=await a({page:1,limit:1,sort:`researchStartDate`,order:`DESC`});t(e.data[0]??null)}catch(e){console.error(e),t(null)}finally{r(!1)}},[]);if((0,N.useEffect)(()=>{i()},[i]),n)return(0,P.jsx)(`div`,{className:`flex min-h-60 items-center justify-center`,children:(0,P.jsx)(u,{description:`加载中...`})});if(!e)return(0,P.jsxs)(`div`,{className:`space-y-4`,children:[(0,P.jsxs)(`div`,{className:`bg-white rounded-2xl border border-gray-100 shadow-sm min-h-60 flex flex-col items-center justify-center px-8 py-10 text-center`,children:[(0,P.jsx)(`div`,{className:`w-16 h-16 bg-emerald-50 text-emerald-500 rounded-full flex items-center justify-center mb-5`,children:(0,P.jsx)(h,{size:26})}),(0,P.jsx)(`h3`,{className:`text-base font-bold text-slate-800 mb-2`,children:`暂无调研纪要`}),(0,P.jsx)(`p`,{className:`text-sm text-slate-400 max-w-xs leading-relaxed`,children:`当前没有可展示的机构调研纪要,请稍后再来看看`})]}),(0,P.jsx)(U,{variant:`survey`})]});let o=e.mainOrgs.join(`、`);return(0,P.jsxs)(`div`,{className:`space-y-4`,children:[(0,P.jsxs)(`div`,{className:`bg-[#f4f7fc]/95 rounded-[20px] p-6 hover:shadow-[0_8px_30px_rgba(0,0,0,0.03)] border border-transparent hover:border-blue-100/50 transition-all cursor-pointer group relative overflow-hidden`,onClick:()=>window.open(`/company-research/survey/${e.id}`,`_blank`,`noopener,noreferrer`),children:[(0,P.jsx)(M,{size:52,className:`absolute right-6 bottom-3 text-blue-600/4 rotate-12 pointer-events-none`}),(0,P.jsxs)(`div`,{className:`flex justify-between items-center mb-3 relative z-10 gap-4`,children:[(0,P.jsx)(`span`,{className:`font-black text-lg text-slate-800 group-hover:text-blue-600 transition-colors truncate`,children:e.companyName}),(0,P.jsxs)(`span`,{className:`text-slate-400 text-xs shrink-0`,children:[`调研时间:`,l(e.researchStartDate)]})]}),(0,P.jsxs)(`div`,{className:`text-sm text-slate-600 font-semibold mb-4 leading-relaxed pr-8 line-clamp-2 relative z-10`,children:[`调研方式:`,e.receptionMethod]}),(0,P.jsxs)(`div`,{className:`flex justify-between items-center border-t border-slate-200/50 pt-3 relative z-10 gap-4`,children:[(0,P.jsx)(`div`,{className:`min-w-0 flex-1`,onClick:e=>e.stopPropagation(),children:(0,P.jsx)(c,{title:o||void 0,placement:`topLeft`,styles:{container:{fontSize:12,maxWidth:360,maxHeight:200,overflowY:`auto`}},children:(0,P.jsxs)(`span`,{className:`block truncate text-xs font-medium text-slate-500`,children:[`主要机构:`,(0,P.jsx)(`span`,{className:`font-semibold text-slate-700`,children:o})]})})}),(0,P.jsxs)(`span`,{className:`text-xs font-bold text-[#1875e5] flex items-center gap-0.5 font-sans shrink-0`,children:[`查看详情`,` `,(0,P.jsx)(y,{size:12,className:`group-hover:translate-x-0.5 transition-transform`})]})]})]}),(0,P.jsx)(U,{variant:`survey`})]})}function G(){let[e,t]=(0,N.useState)(null),[n,r]=(0,N.useState)(!0),a=(0,N.useCallback)(async()=>{r(!0);try{let e=await i({page:1,limit:1,sort:`publishAt`,order:`DESC`});t(e.data[0]??null)}catch(e){console.error(e),t(null)}finally{r(!1)}},[]);return(0,N.useEffect)(()=>{a()},[a]),n?(0,P.jsx)(`div`,{className:`flex min-h-60 items-center justify-center`,children:(0,P.jsx)(u,{description:`加载中...`})}):e?(0,P.jsxs)(`div`,{className:`space-y-4`,children:[(0,P.jsx)(`div`,{className:`bg-white rounded-2xl border border-gray-200 p-6 hover:shadow-[0_8px_30px_rgba(0,0,0,0.04)] hover:border-blue-300 transition-all cursor-pointer group relative overflow-hidden`,onClick:()=>window.open(`/company-research/policy/${e.id}`,`_blank`,`noopener,noreferrer`),children:(0,P.jsxs)(`div`,{className:`space-y-4`,children:[(0,P.jsxs)(`h3`,{className:`text-base font-bold text-slate-800 group-hover:text-blue-600 transition-colors leading-relaxed`,children:[`【`,e.orgName,`】`,e.title]}),(0,P.jsxs)(`div`,{className:`flex items-center gap-3 text-xs`,children:[(0,P.jsx)(`span`,{className:`text-slate-400 font-medium font-mono`,children:l(e.publishAt)}),(0,P.jsx)(`span`,{className:`text-slate-400 font-medium`,children:e.orgName})]})]})}),(0,P.jsx)(U,{variant:`policy`})]}):(0,P.jsxs)(`div`,{className:`space-y-4`,children:[(0,P.jsxs)(`div`,{className:`bg-white rounded-2xl border border-gray-100 shadow-sm min-h-60 flex flex-col items-center justify-center px-8 py-10 text-center`,children:[(0,P.jsx)(`div`,{className:`w-16 h-16 bg-blue-50 text-blue-500 rounded-full flex items-center justify-center mb-5`,children:(0,P.jsx)(b,{size:26})}),(0,P.jsx)(`h3`,{className:`text-base font-bold text-slate-800 mb-2`,children:`暂无政策资讯`}),(0,P.jsx)(`p`,{className:`text-sm text-slate-400 max-w-xs leading-relaxed`,children:`当前没有可展示的政策通知,请稍后再来看看`})]}),(0,P.jsx)(U,{variant:`policy`})]})}var K=`16`;function q(){let{category:e}=E(),[t,n]=C(),r=t.get(`tab`),i=r===`survey`||r===`policy`?r:`report`,[a,o]=(0,N.useState)(``),[c,l]=(0,N.useState)([]),[u,d]=(0,N.useState)(1),[f,p]=(0,N.useState)(0),[g,_]=(0,N.useState)(!0),v=(0,N.useCallback)(async(t,n)=>{if(e){_(!0);try{let e=await s({typeIds:K,q:n||void 0,page:t,limit:10});l(e.data),p(e.meta.itemCount),d(t)}catch(e){console.error(e),l([]),p(0)}finally{_(!1)}}},[e]);(0,N.useEffect)(()=>{e&&v(1,a)},[e,a,v]);let y=(0,N.useCallback)(e=>{o(e)},[]),x=(0,N.useCallback)(e=>{l(t=>t.map(t=>t.id===e?{...t,hasDownloaded:!0}:t))},[]),S=i===`report`?f:1;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(T,{pageKey:`companyResearch`}),(0,P.jsx)(`div`,{className:`min-h-screen bg-gray-50 flex flex-col`,children:(0,P.jsx)(`div`,{className:`max-w-7xl mx-auto px-8 pt-4 pb-8 w-full grow`,children:(0,P.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,P.jsx)(I,{onSearch:y}),(0,P.jsxs)(`div`,{className:`bg-white rounded-3xl p-3 border border-gray-100 shadow-[0_8px_30px_rgba(0,0,0,0.02)] flex flex-wrap items-center justify-between gap-3`,children:[(0,P.jsx)(`div`,{className:`flex items-center gap-2 overflow-x-auto scrollbar-hide py-1`,children:[{id:`report`,label:`公司研报`,icon:(0,P.jsx)(b,{size:16})},{id:`survey`,label:`调研纪要`,icon:(0,P.jsx)(h,{size:16}),isPremium:!0},{id:`policy`,label:`政策资讯`,icon:(0,P.jsx)(M,{size:16}),isPremium:!0}].map(e=>{let t=i===e.id;return(0,P.jsxs)(`button`,{onClick:()=>n({tab:e.id},{replace:!0}),className:`flex items-center gap-2 px-5 py-2.5 rounded-xl text-sm font-extrabold transition-all duration-200 select-none cursor-pointer border ${t?`bg-[#ebf2ff]/80 text-[#1875e5] border-[#1875e5]/10 shadow-sm`:`bg-transparent text-slate-600 hover:text-slate-800 hover:bg-slate-50 border-transparent`}`,children:[(0,P.jsx)(`span`,{className:t?`text-[#1875e5]`:`text-slate-400`,children:e.icon}),(0,P.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[e.label,e.isPremium&&(0,P.jsx)(`span`,{className:`inline-flex items-center justify-center bg-amber-100 text-[#d97706]/90 p-1 rounded-md`,title:`会员权益`,children:(0,P.jsx)(m,{size:10,strokeWidth:3})})]})]},e.id)})}),(0,P.jsxs)(`div`,{className:`text-xs font-bold text-slate-400 px-3 select-none`,children:[`共为您过滤出`,` `,(0,P.jsx)(`span`,{className:`text-[#1875e5] font-extrabold text-sm`,children:S}),` `,`条相关内容`]})]}),(0,P.jsxs)(`div`,{className:`grid grid-cols-12 gap-8`,children:[(0,P.jsxs)(`div`,{className:`col-span-8 space-y-4`,children:[i===`report`&&(0,P.jsx)(H,{loading:g,reports:c,page:u,total:f,onPageChange:e=>void v(e,a),onDownloadSuccess:x}),i===`survey`&&(0,P.jsx)(W,{}),i===`policy`&&(0,P.jsx)(G,{})]}),(0,P.jsxs)(`div`,{className:`col-span-4 space-y-6`,children:[(0,P.jsx)(R,{}),(0,P.jsx)(B,{})]})]})]})})})]})}export{q as default};