const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/jszip.min-BuovhjG-.js","assets/chunk-B3pr0VN8.js"])))=>i.map(i=>d[i]);
import{i as e}from"./chunk-B3pr0VN8.js";import{n as t,t as n}from"./jsx-runtime-wTfS3W87.js";import{t as r}from"./preload-helper-Dd-HcVz_.js";import{d as i,r as a,u as o}from"./chunk-6CSD65Y2-Dj7xjS5D.js";import{r as s,t as ee}from"./AiqLogo-CnY7fdSA.js";import{n as te}from"./useUniversalAgent-AlzL3PPE.js";import{c as ne,d as c,f as l,g as u,i as re,l as d,o as ie,p as f,r as p,s as ae,t as m,u as h}from"./AiUniversalToolPage-BKWIJw2K.js";var g=e(t(),1),_=n(),v=e=>{try{return f(e,localStorage.getItem(d(e).selectedSkills))}catch{return[]}},y=(e,t)=>{try{let n=d(e).selectedSkills;t.length?localStorage.setItem(n,t.join(`,`)):localStorage.removeItem(n)}catch{}},b=e=>{try{return c(localStorage.getItem(d(e).customSkills))}catch{return[]}},x=(e,t)=>{try{localStorage.setItem(d(e).customSkills,u(t))}catch{}},S=(e,t)=>{try{return l(localStorage.getItem(d(e).selectedCustomSkills),t)}catch{return[]}},C=(e,t)=>{try{let n=d(e).selectedCustomSkills;t.length?localStorage.setItem(n,t.join(`,`)):localStorage.removeItem(n)}catch{}},w=e=>{window.dispatchEvent(new CustomEvent(m,{detail:{surface:e}}))},oe=e=>{let t=/^---\s*\n([\s\S]*?)\n---\s*\n?([\s\S]*)$/.exec(e),n=t&&t[1]||``,r=t?t[2]||``:e,i=e=>{let t=RegExp(`^${e}\\s*:\\s*(.+)$`,`m`).exec(n);return t?t[1].trim().replace(/^["']|["']$/g,``):void 0};return{name:i(`name`),description:i(`description`),instruction:r.trim().slice(0,2e3)||i(`description`)}},se=e=>!!e,T=(e,t)=>[...e].sort((e,n)=>(t[n.id]?.score??0)-(t[e.id]?.score??0));function E({surface:t=`jobseeker`}={}){let n=i(),c=o(),u=t===`recruiter`,d=c.pathname===(u?`/hr/aiq/skills`:`/ai-agent/skills`),{state:m,reset:E,loadConversations:ce,switchConversation:le,removeConversation:ue}=te(u?{stateKey:`aiq:recruiter-universal-agent`,taskLabel:`人才 Aiq`,taskPath:`/hr/aiq`}:void 0),D=(0,g.useMemo)(()=>ne(t),[t]),de=(0,g.useMemo)(()=>ae(t),[t]),[O,fe]=(0,g.useState)(()=>{try{return localStorage.getItem(`rc_sidebar_collapsed`)===`1`}catch{return!1}}),[k,A]=(0,g.useState)(`all`),[j,pe]=(0,g.useState)(``),[M,N]=(0,g.useState)(()=>{try{let e=f(t,new URLSearchParams(window.location.search).get(`skills`));return e.length?e:v(t)}catch{return v(t)}}),[P,F]=(0,g.useState)(()=>b(t)),[I,L]=(0,g.useState)(()=>{try{let e=b(t),n=l(new URLSearchParams(window.location.search).get(`customSkills`),e);return n.length?n:S(t,e)}catch{return S(t,b(t))}}),[R,z]=(0,g.useState)(!1),B=(0,g.useRef)(null),[me,V]=(0,g.useState)(!1),[H,U]=(0,g.useState)(``);(0,g.useEffect)(()=>{if(!R)return;let e=e=>{B.current?.contains(e.target)||z(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[R]);let W=`我想创建一个新的专属技能。请用最简单的日常语言引导我，一次只问一个问题，共4个：
1. 你想让这个技能帮你做什么？
2. 你会在什么情况下用它？
3. 有什么你不想让它做的？
4. 一次好的结果是什么样的？

4个问题都答完后，生成以下格式的技能文件：

\`\`\`SKILL.md
---
name: 技能名称（5字以内）
description: 一句话描述
---

详细工作指令...
\`\`\`

现在开始，请问第一个问题。`,[G,he]=(0,g.useState)(`all`),[K,ge]=(0,g.useState)(`all`),[q,_e]=(0,g.useState)(`all`),[J,ve]=(0,g.useState)(()=>h()),Y=(0,g.useCallback)(()=>ve(h()),[]);(0,g.useEffect)(()=>(window.addEventListener(`aiq:skill-rated`,Y),()=>window.removeEventListener(`aiq:skill-rated`,Y)),[Y]);let X=(0,g.useMemo)(()=>M.map(e=>ie(t,e)).filter(se),[M,t]),ye=(0,g.useMemo)(()=>[`all`,...Array.from(new Set(D.map(e=>e.publisher).filter(e=>!!e)))],[D]),be=(0,g.useMemo)(()=>[`all`,...Array.from(new Set(D.map(e=>e.role).filter(e=>!!e)))],[D]),xe=(0,g.useMemo)(()=>[`all`,...Array.from(new Set(D.map(e=>e.outputType).filter(e=>!!e)))],[D]),Z=(0,g.useCallback)(e=>{let t=j.trim().toLowerCase();return!(t&&!e.label.includes(t)&&!e.description.toLowerCase().includes(t)||k===`all`&&(G!==`all`&&e.publisher!==G||K!==`all`&&e.role!==K||q!==`all`&&e.outputType!==q))},[q,G,K,j,k]),Q=(0,g.useMemo)(()=>k===`mine`?[{id:`jobseeker`,title:`我的技能`,description:`当前已添加到 Aiq 对话的技能。`,presets:T(X.filter(Z),J)}]:de.map(e=>({...e,presets:T(e.presets.filter(Z),J)})).filter(e=>e.presets.length>0),[Z,J,X,de,k]),Se=(0,g.useMemo)(()=>Q.flatMap(e=>e.presets),[Q]),$=(0,g.useMemo)(()=>p(t,M,I),[I,M,t]),Ce=(0,g.useMemo)(()=>re(t,M,I),[I,M,t]);(0,g.useEffect)(()=>{ce()},[ce]),(0,g.useEffect)(()=>{if(d){try{let e=re(t,M,I);`${c.pathname}${c.search}`!==e&&n(e,{replace:!0})}catch{}y(t,M),C(t,I),w(t)}},[d,c.pathname,c.search,n,I,M,t]),(0,g.useEffect)(()=>{x(t,P),w(t)},[P,t]),(0,g.useEffect)(()=>{L(e=>{let t=new Set(P.map(e=>e.id));return e.filter(e=>t.has(e))})},[P]);let we=(0,g.useCallback)(()=>{fe(e=>{let t=!e;try{localStorage.setItem(`rc_sidebar_collapsed`,t?`1`:`0`)}catch{}return t})},[]),Te=(0,g.useCallback)(e=>{N(n=>{if(n.includes(e))return n;let r=[...n,e];return y(t,r),w(t),r})},[t]),Ee=(0,g.useCallback)(e=>{N(n=>{let r=n.filter(t=>t!==e);return y(t,r),w(t),r})},[t]),De=(0,g.useCallback)(e=>{L(n=>{let r=n.includes(e)?n.filter(t=>t!==e):[...n,e];return C(t,r),w(t),r})},[t]),Oe=(0,g.useCallback)(e=>{F(n=>{let r=n.filter(t=>t.id!==e);return x(t,r),r}),L(n=>{let r=n.filter(t=>t!==e);return C(t,r),w(t),r})},[t]),ke=(0,g.useCallback)(e=>{let r=I.includes(e)?I:[...I,e];L(r),C(t,r),w(t),n(p(t,M,r))},[n,I,M,t]),Ae=(0,g.useCallback)(async n=>{let i=n.target.files?.[0];if(i){n.target.value=``,U(`解析中…`);try{let n=i.name.toLowerCase(),a=``;if(n.endsWith(`.md`))a=await i.text();else if(n.endsWith(`.zip`)||n.endsWith(`.skill`)){let t=await(await r(async()=>{let{default:t}=await import(`./jszip.min-BuovhjG-.js`).then(t=>e(t.default,1));return{default:t}},__vite__mapDeps([0,1]))).default.loadAsync(i),n=Object.keys(t.files).find(e=>/(^|\/)SKILL\.md$/i.test(e)||/\.md$/i.test(e)&&!e.includes(`/`));if(!n){U(`压缩包内未找到 SKILL.md`);return}a=await t.files[n].async(`string`)}else{U(`仅支持 .md / .zip / .skill 文件`);return}let o=oe(a);if(!o.name){U(`文件未包含 YAML 格式的技能名称（name）`);return}let s={id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,name:o.name,goal:o.description||``,instruction:o.instruction||``,createdAt:Date.now()};F(e=>{let n=[s,...e].slice(0,20);return x(t,n),n}),L(e=>{let n=e.includes(s.id)?e:[s.id,...e];return C(t,n),w(t),n}),U(`技能「${o.name}」已添加`),A(`mine`)}catch(e){U(`解析失败：`+String(e?.message||e).slice(0,100))}}},[t]),je=(0,g.useCallback)((e,t)=>{let n,r;t===`skill`?(n=`---\nname: ${e.name}\ndescription: ${e.goal||e.name}\n---\n\n${e.instruction||e.goal}`,r=`${e.name.replace(/\s+/g,`-`)}.SKILL.md`):(n=`# ${e.name}\n\n${e.goal?`## 目标\n${e.goal}\n\n`:``}## 指令\n${e.instruction||e.goal}`,r=`${e.name.replace(/\s+/g,`-`)}-prompt.md`);let i=new Blob([n],{type:`text/markdown;charset=utf-8`}),a=document.createElement(`a`);a.href=URL.createObjectURL(i),a.download=r,a.click(),URL.revokeObjectURL(a.href)},[]),Me=()=>{E(),n($)},Ne=(0,g.useMemo)(()=>{let e=new URL(p(t),window.location.origin);return e.searchParams.set(`q`,W),e.searchParams.set(`skillCreate`,`1`),`${e.pathname}${e.search}`},[W,t]);return(0,_.jsxs)(`div`,{className:`rc-shell`,children:[(0,_.jsxs)(`aside`,{className:`rc-sidebar ${O?`rc-sidebar-collapsed`:``}`,children:[(0,_.jsxs)(`div`,{className:`rc-sidebar-head`,children:[(0,_.jsx)(`div`,{className:`rc-sidebar-brand`,"aria-label":`Aiq`,children:O?(0,_.jsx)(s,{size:20}):(0,_.jsx)(ee,{size:32})}),(0,_.jsx)(`button`,{type:`button`,className:`rc-sidebar-toggle`,onClick:we,"aria-label":O?`展开侧边栏`:`收起侧边栏`,children:(0,_.jsx)(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:O?(0,_.jsx)(`polyline`,{points:`9 6 15 12 9 18`}):(0,_.jsx)(`polyline`,{points:`15 6 9 12 15 18`})})})]}),O?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{type:`button`,className:`rc-new-btn rc-new-btn-mini`,onClick:Me,"aria-label":`新建任务`,title:`新建任务`,children:(0,_.jsx)(`span`,{"aria-hidden":!0,children:`+`})}),(0,_.jsx)(a,{className:`rc-sidebar-action rc-sidebar-action-mini rc-sidebar-action-active`,to:Ce,"aria-label":`技能`,title:`技能`,children:(0,_.jsx)(`span`,{"aria-hidden":!0,children:`◇`})})]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`button`,{className:`rc-new-btn`,onClick:Me,children:[(0,_.jsx)(`span`,{"aria-hidden":!0,children:`+`}),(0,_.jsx)(`span`,{children:`新建任务`})]}),(0,_.jsxs)(a,{className:`rc-sidebar-action rc-sidebar-action-active`,to:Ce,children:[(0,_.jsx)(`span`,{"aria-hidden":!0,children:`◇`}),(0,_.jsx)(`span`,{children:`技能`})]}),(0,_.jsx)(`div`,{className:`rc-history-title`,children:`聊天记录`}),m.conversations.length===0?(0,_.jsx)(`div`,{className:`rc-history-empty`,children:`历史会话会显示在这里`}):(0,_.jsx)(`div`,{className:`rc-history-list`,children:m.conversations.map(e=>(0,_.jsxs)(`div`,{className:`rc-history-item ${m.conversationId===e.id?`rc-history-active`:``}`,title:e.title,onClick:()=>{le(e.id),n($)},children:[(0,_.jsx)(`span`,{className:`rc-history-item-text`,children:e.title||`新会话`}),(0,_.jsx)(`button`,{type:`button`,className:`rc-history-del`,title:`删除会话`,"aria-label":`删除会话`,onClick:t=>{t.stopPropagation(),ue(e.id)},children:(0,_.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,"aria-hidden":!0,children:(0,_.jsx)(`path`,{d:`M18 6 6 18M6 6l12 12`})})})]},e.id))})]})]}),(0,_.jsxs)(`div`,{className:`rc-right`,children:[(0,_.jsxs)(`nav`,{className:`rc-nav`,children:[(0,_.jsx)(a,{to:$,className:`rc-nav-link`,children:`对话`}),u?(0,_.jsx)(a,{to:`/hr`,className:`rc-nav-link`,children:`人才工作台`}):(0,_.jsx)(a,{to:`/tools`,className:`rc-nav-link`,children:`AI求职`}),(0,_.jsx)(a,{to:`/me`,className:`rc-nav-btn`,children:`个人中心`})]}),(0,_.jsx)(`main`,{className:`rc-main`,children:(0,_.jsxs)(`div`,{className:`plaza-shell`,children:[(0,_.jsxs)(`div`,{className:`plaza-head`,children:[(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`p`,{className:`plaza-kicker`,children:`Aiq Skill Square`}),(0,_.jsx)(`h1`,{className:`plaza-title`,children:`技能广场`}),(0,_.jsx)(`p`,{className:`plaza-desc`,children:`选择技能，Aiq 将按范围组织能力并完成任务`})]}),(0,_.jsxs)(`div`,{className:`plaza-create-wrap`,ref:B,children:[(0,_.jsx)(`button`,{type:`button`,className:`plaza-create-btn`,onClick:()=>z(e=>!e),children:`+ 创建技能`}),R&&(0,_.jsxs)(`div`,{className:`plaza-create-dropdown`,children:[(0,_.jsxs)(`button`,{type:`button`,className:`plaza-create-option-item`,onClick:()=>{z(!1),n(Ne)},children:[(0,_.jsx)(`svg`,{width:`15`,height:`15`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,_.jsx)(`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`})}),(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`strong`,{children:`用 AI 对话创建`}),(0,_.jsx)(`span`,{children:`描述你想要的，AI 帮你完成`})]})]}),(0,_.jsxs)(`button`,{type:`button`,className:`plaza-create-option-item`,onClick:()=>{z(!1),V(!0)},children:[(0,_.jsxs)(`svg`,{width:`15`,height:`15`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,_.jsx)(`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}),(0,_.jsx)(`polyline`,{points:`17 8 12 3 7 8`}),(0,_.jsx)(`line`,{x1:`12`,y1:`3`,x2:`12`,y2:`15`})]}),(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`strong`,{children:`上传技能文件`}),(0,_.jsx)(`span`,{children:`.md / .zip / .skill`})]})]})]})]})]}),(0,_.jsxs)(`div`,{className:`plaza-filter-bar`,children:[(0,_.jsxs)(`div`,{className:`plaza-tabs`,role:`tablist`,children:[(0,_.jsx)(`button`,{role:`tab`,"aria-selected":k===`all`,className:k===`all`?`active`:``,onClick:()=>A(`all`),children:`全部`}),(0,_.jsxs)(`button`,{role:`tab`,"aria-selected":k===`mine`,className:k===`mine`?`active`:``,onClick:()=>A(`mine`),children:[`我的`,M.length+I.length>0?` · ${M.length+I.length}`:``]})]}),(0,_.jsxs)(`div`,{className:`plaza-search-wrap`,children:[(0,_.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,_.jsx)(`circle`,{cx:`11`,cy:`11`,r:`8`}),(0,_.jsx)(`path`,{d:`m21 21-4.3-4.3`})]}),(0,_.jsx)(`input`,{className:`plaza-search`,placeholder:`搜索技能…`,value:j,onChange:e=>pe(e.target.value),"aria-label":`搜索技能`})]})]}),k===`all`&&(0,_.jsxs)(`div`,{className:`plaza-filter-dims`,children:[(0,_.jsxs)(`div`,{className:`plaza-filter-row`,children:[(0,_.jsx)(`span`,{className:`plaza-filter-label`,children:`发布者`}),(0,_.jsx)(`div`,{className:`plaza-filter-chips`,children:ye.map(e=>(0,_.jsxs)(`button`,{type:`button`,className:`plaza-filter-chip${G===e?` active`:``}`,onClick:()=>he(e),children:[e===`all`?`全部`:e,e!==`all`&&(0,_.jsx)(`span`,{className:`plaza-filter-count`,children:D.filter(t=>t.publisher===e).length})]},e))})]}),(0,_.jsxs)(`div`,{className:`plaza-filter-row`,children:[(0,_.jsx)(`span`,{className:`plaza-filter-label`,children:`角色`}),(0,_.jsx)(`div`,{className:`plaza-filter-chips`,children:be.map(e=>(0,_.jsxs)(`button`,{type:`button`,className:`plaza-filter-chip${K===e?` active`:``}`,onClick:()=>ge(e),children:[e===`all`?`全部`:e,e!==`all`&&(0,_.jsx)(`span`,{className:`plaza-filter-count`,children:D.filter(t=>t.role===e).length})]},e))})]}),(0,_.jsxs)(`div`,{className:`plaza-filter-row`,children:[(0,_.jsx)(`span`,{className:`plaza-filter-label`,children:`输出`}),(0,_.jsx)(`div`,{className:`plaza-filter-chips`,children:xe.map(e=>(0,_.jsxs)(`button`,{type:`button`,className:`plaza-filter-chip${q===e?` active`:``}`,onClick:()=>_e(e),children:[e===`all`?`全部`:e,e!==`all`&&(0,_.jsx)(`span`,{className:`plaza-filter-count`,children:D.filter(t=>t.outputType===e).length})]},e))})]})]}),(0,_.jsxs)(`div`,{className:`plaza-grid`,children:[Q.map((e,t)=>(0,_.jsxs)(`div`,{className:`plaza-section`,children:[u&&k===`all`&&t>0&&(0,_.jsx)(`div`,{className:`plaza-section-divider`,"aria-hidden":!0,children:(0,_.jsx)(`span`,{})}),u&&k===`all`&&(0,_.jsxs)(`div`,{className:`plaza-section-head`,children:[(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`h2`,{children:e.title}),(0,_.jsx)(`p`,{children:e.description})]}),(0,_.jsxs)(`span`,{children:[e.presets.length,` 个技能`]})]}),(0,_.jsx)(`div`,{className:`plaza-section-grid`,children:e.presets.map(e=>{let t=M.includes(e.id);return(0,_.jsxs)(`article`,{className:`plaza-card${t?` plaza-card--active`:``}`,children:[(0,_.jsxs)(`div`,{className:`plaza-card-body`,children:[(0,_.jsx)(`strong`,{className:`plaza-card-title`,children:e.label}),(0,_.jsx)(`p`,{className:`plaza-card-desc`,children:e.description})]}),(0,_.jsxs)(`div`,{className:`plaza-card-foot`,children:[(0,_.jsx)(`span`,{className:`plaza-card-author`,children:e.publisher||`HireEdge`}),e.instructionOnly?(0,_.jsx)(`span`,{className:`plaza-card-author`,title:`该技能仅注入工作指令，不额外挂载后端工具`,children:`提示词型`}):null,J[e.id]?.count?(0,_.jsx)(`span`,{className:`plaza-card-stars`,title:`${J[e.id].score.toFixed(1)} 分 (${J[e.id].count} 条评价)`,children:[1,2,3,4,5].map(t=>(0,_.jsx)(`span`,{className:t<=Math.round(J[e.id].score)?`star-on`:`star-off`,children:`★`},t))}):null,(0,_.jsx)(`button`,{type:`button`,className:`plaza-card-btn${t?` plaza-card-btn--active`:``}`,onClick:()=>t?Ee(e.id):Te(e.id),children:t?`已添加`:`添加`})]})]},e.id)})})]},e.id)),k===`mine`&&P.map(e=>{let t=I.includes(e.id);return(0,_.jsxs)(`article`,{className:`plaza-card plaza-card--custom${t?` plaza-card--active`:``}`,children:[(0,_.jsxs)(`div`,{className:`plaza-card-body`,children:[(0,_.jsx)(`span`,{className:`plaza-card-icon`,"aria-hidden":!0,children:`自定义`}),(0,_.jsx)(`strong`,{className:`plaza-card-title`,children:e.name}),(0,_.jsx)(`p`,{className:`plaza-card-desc`,children:e.goal||e.instruction||`未填写说明`})]}),(0,_.jsxs)(`div`,{className:`plaza-card-foot`,children:[(0,_.jsx)(`span`,{className:`plaza-card-author`,children:`自定义`}),(0,_.jsx)(`button`,{type:`button`,className:`plaza-card-btn plaza-card-btn--ghost`,onClick:()=>ke(e.id),children:`使用`}),(0,_.jsx)(`button`,{type:`button`,className:`plaza-card-btn${t?` plaza-card-btn--active`:``}`,onClick:()=>De(e.id),children:t?`已添加`:`添加`}),(0,_.jsxs)(`div`,{className:`plaza-dl-wrap`,children:[(0,_.jsx)(`button`,{type:`button`,className:`plaza-card-btn plaza-card-btn--ghost`,title:`下载技能文件`,children:`⬇`}),(0,_.jsxs)(`div`,{className:`plaza-dl-menu`,children:[(0,_.jsx)(`button`,{type:`button`,onClick:()=>je(e,`skill`),children:`SKILL.md（HireEdge / 上传导入）`}),(0,_.jsx)(`button`,{type:`button`,onClick:()=>je(e,`prompt`),children:`prompt.md（Claude / Codex / Cursor）`})]})]}),(0,_.jsx)(`button`,{type:`button`,className:`plaza-card-btn plaza-card-btn--danger`,onClick:()=>Oe(e.id),children:`删除`})]})]},e.id)}),Se.length===0&&!(k===`mine`&&P.length)&&(0,_.jsxs)(`div`,{className:`plaza-empty`,children:[j?`未找到"${j}"相关技能`:k===`mine`?`还没有添加技能，去全部里选几个吧`:`暂无技能`,k===`mine`&&!j&&(0,_.jsx)(`button`,{type:`button`,onClick:()=>A(`all`),children:`去全部选择`})]})]}),me&&(0,_.jsx)(`div`,{className:`rc-skill-create-modal`,onClick:()=>V(!1),children:(0,_.jsxs)(`div`,{className:`rc-skill-create-modal-card`,onClick:e=>e.stopPropagation(),children:[(0,_.jsxs)(`div`,{className:`skill-modal-head`,children:[(0,_.jsx)(`h3`,{children:`上传技能文件`}),(0,_.jsx)(`button`,{type:`button`,className:`rc-skill-create-modal-close`,onClick:()=>V(!1),"aria-label":`关闭`,children:`×`})]}),(0,_.jsxs)(`div`,{className:`skill-upload-hint`,children:[(0,_.jsxs)(`p`,{children:[`支持 `,(0,_.jsx)(`code`,{children:`.md`}),` / `,(0,_.jsx)(`code`,{children:`.SKILL.md`}),` / `,(0,_.jsx)(`code`,{children:`.zip`}),`（内含 SKILL.md）`]}),(0,_.jsx)(`pre`,{children:`---
name: 技能名称
description: 描述
---

指令内容...`}),(0,_.jsx)(`p`,{className:`skill-upload-compat`,children:`兼容 Claude/Cursor/Codex 的 instructions 文件，另存为 .md 即可上传。`})]}),(0,_.jsxs)(`label`,{className:`rc-skill-create-option rc-skill-create-option-upload`,children:[(0,_.jsx)(`strong`,{children:`选择文件上传`}),(0,_.jsx)(`input`,{type:`file`,accept:`.md,.zip,.skill`,onChange:Ae,hidden:!0}),(0,_.jsx)(`span`,{className:`rc-skill-card-primary`,children:`浏览文件`})]}),H&&(0,_.jsx)(`div`,{className:`ui-alert ui-alert-info text-xs`,style:{marginTop:8},children:H})]})})]})})]})]})}export{E as default};