@co0ontty/wand 4.94.0 → 4.95.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/ai-text-runner.d.ts +4 -0
- package/dist/ai-text-runner.js +44 -4
- package/dist/build-info.json +3 -3
- package/dist/cli-api.d.ts +1 -0
- package/dist/cli-api.js +7 -2
- package/dist/cli.js +47 -0
- package/dist/conversation-execution-preference.d.ts +7 -0
- package/dist/conversation-execution-preference.js +26 -0
- package/dist/conversation-organize-contract.d.ts +70 -0
- package/dist/conversation-organize-contract.js +1 -0
- package/dist/conversation-organize-service.d.ts +46 -0
- package/dist/conversation-organize-service.js +505 -0
- package/dist/conversation-organize.d.ts +41 -0
- package/dist/conversation-organize.js +97 -0
- package/dist/conversation-service.d.ts +2 -1
- package/dist/conversation-service.js +10 -4
- package/dist/core-turn-tracker.d.ts +5 -1
- package/dist/core-turn-tracker.js +17 -1
- package/dist/decision-expert-service.d.ts +2 -0
- package/dist/decision-expert-service.js +17 -1
- package/dist/decision-skill.d.ts +0 -1
- package/dist/decision-skill.js +5 -64
- package/dist/deployment-lock.js +4 -1
- package/dist/employee-im-config.d.ts +17 -0
- package/dist/employee-im-config.js +85 -0
- package/dist/employee-im-lifecycle.d.ts +35 -0
- package/dist/employee-im-lifecycle.js +168 -0
- package/dist/employee-im-types.d.ts +80 -0
- package/dist/employee-im-types.js +32 -0
- package/dist/employee-im.d.ts +35 -0
- package/dist/employee-im.js +157 -0
- package/dist/employee-knowledge.js +3 -2
- package/dist/employee-text.d.ts +1 -0
- package/dist/employee-text.js +28 -13
- package/dist/git-quick-commit.js +21 -3
- package/dist/managed-skill.d.ts +6 -0
- package/dist/managed-skill.js +99 -0
- package/dist/model-auto-assign.js +1 -1
- package/dist/process-manager.js +1 -1
- package/dist/prompt-optimizer.js +1 -1
- package/dist/scheduled-task-activity.d.ts +16 -0
- package/dist/scheduled-task-activity.js +42 -0
- package/dist/scheduled-task-agenda.d.ts +20 -0
- package/dist/scheduled-task-agenda.js +82 -0
- package/dist/scheduled-task-calendar.d.ts +37 -0
- package/dist/scheduled-task-calendar.js +131 -0
- package/dist/scheduled-task-read-range.d.ts +7 -0
- package/dist/scheduled-task-read-range.js +35 -0
- package/dist/scheduled-task-service.d.ts +6 -1
- package/dist/scheduled-task-service.js +61 -1
- package/dist/scheduled-task-state.d.ts +1 -1
- package/dist/scheduled-task-types.d.ts +38 -0
- package/dist/server-asset-routes.js +3 -2
- package/dist/server-conversation-organize-routes.d.ts +4 -0
- package/dist/server-conversation-organize-routes.js +75 -0
- package/dist/server-conversation-routes.js +2 -1
- package/dist/server-employee-im-routes.d.ts +9 -0
- package/dist/server-employee-im-routes.js +40 -0
- package/dist/server-employee-routes.js +1 -1
- package/dist/server-scheduled-task-routes.js +24 -0
- package/dist/server-session-lifecycle-routes.js +8 -3
- package/dist/server-session-routes.js +18 -0
- package/dist/server-session-worktree-routes.js +3 -3
- package/dist/server-workspace-routes.d.ts +3 -0
- package/dist/server-workspace-routes.js +14 -1
- package/dist/server.js +39 -5
- package/dist/session-ai-context.d.ts +11 -1
- package/dist/session-ai-context.js +21 -2
- package/dist/session-metadata-service.js +1 -1
- package/dist/session-registry.js +6 -0
- package/dist/session-request.js +3 -0
- package/dist/session-topic.js +1 -1
- package/dist/silicon-employee-draft.js +1 -1
- package/dist/speech-polisher-service.d.ts +2 -0
- package/dist/speech-polisher-service.js +28 -6
- package/dist/storage/conversation-organization-repository.d.ts +13 -0
- package/dist/storage/conversation-organization-repository.js +33 -0
- package/dist/storage/migrations.js +10 -0
- package/dist/storage/secrets-repository.d.ts +7 -0
- package/dist/storage/secrets-repository.js +28 -1
- package/dist/storage/tasks-repository.js +4 -0
- package/dist/storage-schedules.d.ts +8 -1
- package/dist/storage-schedules.js +24 -0
- package/dist/storage-schema.js +9 -0
- package/dist/storage.d.ts +6 -1
- package/dist/storage.js +13 -0
- package/dist/structured-session-manager.d.ts +1 -0
- package/dist/structured-session-manager.js +18 -4
- package/dist/system-ai-call.d.ts +49 -0
- package/dist/system-ai-call.js +28 -0
- package/dist/system-ai-session-recorder.d.ts +30 -0
- package/dist/system-ai-session-recorder.js +239 -0
- package/dist/system-cli.d.ts +6 -0
- package/dist/system-cli.js +93 -0
- package/dist/system-skill.d.ts +5 -0
- package/dist/system-skill.js +19 -0
- package/dist/task-organize-contract.js +2 -2
- package/dist/task-title-organize-service.d.ts +1 -1
- package/dist/task-title-organize-service.js +9 -5
- package/dist/task-title-organize.js +13 -6
- package/dist/task-title-service.js +1 -1
- package/dist/task-title.js +1 -1
- package/dist/user-memory.js +1 -1
- package/dist/wand-task-sync.js +2 -1
- package/dist/web-ui/content/ai-teams.js +12 -12
- package/dist/web-ui/content/module-manifest.json +1 -1
- package/dist/web-ui/content/modules/{0051bd3d55f10ab7/library-bridge-DTMQIHVJ.js → 09842858f9d34a4e/library-bridge.js} +2 -2
- package/dist/web-ui/content/modules/1021ae40c5761e3f/sha256.js +1 -0
- package/dist/web-ui/content/modules/134f6120c0acaf57/host.js +1 -0
- package/dist/web-ui/content/modules/1d518ae6ed66fe5a/chunk.js +3 -0
- package/dist/web-ui/content/modules/1f93b5bd70381bb6/runtime.js +539 -0
- package/dist/web-ui/content/modules/26c68d4decdd18b4/markdown.js +1 -0
- package/dist/web-ui/content/modules/2ed8bafd5b4fecc5/workspace-window.js +1 -0
- package/dist/web-ui/content/modules/31ffc2f05f87652c/host.js +1 -0
- package/dist/web-ui/content/modules/35aaa85b9d0937af/chunk.js +20 -0
- package/dist/web-ui/content/modules/3664d0620f124292/chunk.js +3 -0
- package/dist/web-ui/content/modules/3cea480770cb184c/chunk.js +1 -0
- package/dist/web-ui/content/modules/3d12adf54647c1e2/host-bridge.js +1 -0
- package/dist/web-ui/content/modules/459cca2482a9a4ba/host.js +18 -0
- package/dist/web-ui/content/modules/474c9647130ef3e9/task-board-host.js +2 -0
- package/dist/web-ui/content/modules/4f74d2517f29134c/chunk.js +15 -0
- package/dist/web-ui/content/modules/52a218d74002a011/host.js +30 -0
- package/dist/web-ui/content/modules/54f2b10659ef8475/employee-card.js +1 -0
- package/dist/web-ui/content/modules/703fb1c670f7b199/chunk.js +1 -0
- package/dist/web-ui/content/modules/75511da23f051718/host.js +1 -0
- package/dist/web-ui/content/modules/{0051bd3d55f10ab7/host-2IVIZ2YC.js → 799b19da948bec8d/host.js} +3 -2
- package/dist/web-ui/content/modules/{0051bd3d55f10ab7/host-XNIR3NTJ.js → 7ef73b6c20d2504f/host.js} +3 -2
- package/dist/web-ui/content/modules/8f8f7a0a8874d29a/host.js +1 -0
- package/dist/web-ui/content/modules/90f2cd73cdf3a2cd/chat-render.js +25 -0
- package/dist/web-ui/content/modules/9510efce6caaa9ec/chunk.js +1 -0
- package/dist/web-ui/content/modules/9a0e65188739957f/chunk.js +67 -0
- package/dist/web-ui/content/modules/9eae1033f47e4526/host.js +1 -0
- package/dist/web-ui/content/modules/a2c5b246e57fa165/panel.js +1 -0
- package/dist/web-ui/content/modules/a50ce28f45bfeb2e/host.js +1 -0
- package/dist/web-ui/content/modules/adfc53789d5bedb2/chunk.js +1 -0
- package/dist/web-ui/content/modules/bcecb0cc14b7d2bd/chunk.js +1 -0
- package/dist/web-ui/content/modules/c4706f47c23f33e4/host.js +1 -0
- package/dist/web-ui/content/modules/{0051bd3d55f10ab7/host-Q524TMSR.js → c7de873095c061ab/host.js} +4 -3
- package/dist/web-ui/content/modules/d789f84a3f8765ae/page.js +6 -0
- package/dist/web-ui/content/modules/db4e2dbc7aed6353/chunk.js +1 -0
- package/dist/web-ui/content/modules/e4fd9906521b4aa3/chunk.js +1 -0
- package/dist/web-ui/content/modules/eb95c3ee0d42827a/chunk.js +6 -0
- package/dist/web-ui/content/modules/{0051bd3d55f10ab7/host-PHHNGVNL.js → ec68d93a95c1d5d6/host.js} +2 -2
- package/dist/web-ui/content/modules/f33ed89d1ccd3a2d/chunk.js +1 -0
- package/dist/web-ui/content/modules/f6502dab121f9d91/chunk.js +1 -0
- package/dist/web-ui/content/modules/fac83e61c0a8c8a7/host.js +1 -0
- package/dist/web-ui/content/scripts.js +1 -1
- package/dist/web-ui/embedded-assets.d.ts +200 -27
- package/dist/web-ui/embedded-assets.js +5 -4
- package/dist/web-ui/react/workspaces/sidebar-manage.d.ts +5 -0
- package/dist/web-ui/react/workspaces/sidebar-manage.js +27 -3
- package/dist/web-ui/running-activity.d.ts +22 -9
- package/dist/web-ui/running-activity.js +58 -42
- package/dist/web-ui/running-current-action.d.ts +12 -0
- package/dist/web-ui/running-current-action.js +74 -0
- package/dist/web-ui/scripts.d.ts +4 -0
- package/dist/web-ui/scripts.js +17 -8
- package/package.json +4 -2
- package/scripts/recover-web-update.mjs +26 -19
- package/scripts/recover-web-update.sh +9 -6
- package/scripts/update-node.sh +3 -1
- package/skills/wand-system/SKILL.md +69 -0
- package/skills/wand-system/references/operations.md +100 -0
- package/skills/wand-system/scripts/wand.mjs +34 -0
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/chat-render-RY2I2CF3.js +0 -24
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/chunk-2F6J2MKX.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/chunk-6C6A2RHG.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/chunk-7AFM245W.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/chunk-ECWYA3U5.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/chunk-MHX2QXIS.js +0 -111
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/chunk-RAAPETNH.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/chunk-RXKBHYUR.js +0 -38
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/chunk-T35D57FW.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/chunk-U4EDP4TI.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/chunk-WHXQR7JT.js +0 -20
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/chunk-YOXXNXOX.js +0 -2
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/chunk-YQJ6XYV7.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/employee-card-NV34TZIH.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/host-2AQAIUNO.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/host-AZXNFCRW.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/host-EPEQX22R.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/host-FZYIMOLC.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/host-G6GL4SNL.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/host-PEILC5NU.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/host-RO5MB6RB.js +0 -69
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/host-WOQRK6NG.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/host-XRVOIEP6.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/host-ZDKOQEMS.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/host-bridge-PMQZRG5G.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/page-PY4JUL4W.js +0 -3
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/panel-BBQFC55Q.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/runtime.js +0 -974
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/sha256-ANXV72UC.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/task-board-host-PXZSWBBG.js +0 -2
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/workspace-agent-picker-DJSECSY6.js +0 -1
- package/dist/web-ui/content/modules/0051bd3d55f10ab7/workspace-window-MNMKSOBG.js +0 -1
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import{shared17_a as Y,shared17_b as D,shared17_c as q,shared17_d as Q,shared17_g as M,shared17_h as Z,shared17_i as j,shared17_j as _,shared17_m as ee,shared17_n as I,shared17_t as ae,shared17_y as te}from"./runtime.js";import{shared56_e as oe}from"./runtime.js";import{shared20_l as X}from"./runtime.js";import{shared25_b as B}from"./runtime.js";import{shared7_Fd as f,shared7_Qc as T,shared7_Sc as J,shared7_ld as y,shared7_md as V}from"./runtime.js";import{shared8_a as de}from"./runtime.js";import{shared9_c as K}from"./runtime.js";var o=K(de(),1);var e=K(J(),1);function se({employee:t,size:n,speaking:P=!1,interactive:S=!1,onRendererChange:u}){let p=M(t);return p?(0,e.jsx)(I,{config:p,size:n,speaking:P,interactive:S,onRendererChange:u}):t.avatar?.startsWith("data:image/")?(0,e.jsx)("img",{className:"photo",src:t.avatar,alt:"",width:n,height:n}):(0,e.jsx)("span",{className:"pixel",style:{width:n,height:n},children:(0,e.jsx)(ae,{coat:Number(t.avatar?.slice(4))})})}function ve({employee:t,disabled:n,onChange:P,onBusyChange:S,onClose:u}){let p=T(),A=X(t),b={...t,avatar:t.avatar??""},l=Z(b.avatar)??_(t),w=M(b)!==null,C=`${t.id}:${t.systemKey??""}:${w?"plush":"legacy"}`,$=o.useId(),F=o.useRef(null),g=o.useRef(0),x=o.useRef(!1),i=o.useRef({employee:t,disabled:n,fixedAvatar:A,onChange:P,onBusyChange:S});i.current={employee:t,disabled:n,fixedAvatar:A,onChange:P,onBusyChange:S};let[v,re]=o.useState(!1),[G,h]=o.useState(""),[L,c]=o.useState(!1),[E,ie]=o.useState({key:C,renderer:"loading"}),d=E.key===C?E.renderer:"loading",s=n||v,k=o.useCallback(a=>{re(a),x.current!==a&&(x.current=a,i.current.onBusyChange?.(a))},[]),z=o.useCallback(()=>{++g.current,k(!1)},[k]);o.useEffect(()=>{z(),h(""),c(!1)},[t.id,t.systemKey,t.avatar,n,z]),o.useEffect(()=>()=>{++g.current,x.current&&(x.current=!1,i.current.onBusyChange?.(!1))},[]),o.useEffect(()=>{(p||d!=="webgl")&&c(!1)},[p,d]);let N=a=>{i.current.disabled||i.current.fixedAvatar||x.current||(++g.current,h(""),c(!1),i.current.onChange(a))},U=()=>{z(),c(!1),u?.()},ne=async a=>{let m=a.target.files?.[0];if(a.target.value="",!m||i.current.disabled||i.current.fixedAvatar||x.current)return;if(!/^image\/(png|jpeg|webp)$/.test(m.type)||m.size>10*1024*1024){h("\u8BF7\u9009\u62E9 10 MB \u4EE5\u5185\u7684 PNG\u3001JPEG \u6216 WebP \u56FE\u7247\u3002");return}let R=++g.current,r={id:t.id,systemKey:t.systemKey,avatar:t.avatar},O=()=>g.current===R&&!i.current.disabled&&!i.current.fixedAvatar&&i.current.employee.id===r.id&&i.current.employee.systemKey===r.systemKey&&i.current.employee.avatar===r.avatar;k(!0),h(""),c(!1);try{let W=await te(m,oe);O()&&(k(!1),i.current.onChange(W))}catch(W){O()&&h(W instanceof Error?W.message:"\u56FE\u7247\u5904\u7406\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u3002")}finally{g.current===R&&k(!1)}},H=(a,m,R)=>(0,e.jsxs)("fieldset",{className:`option-group ${a}`,disabled:s,children:[(0,e.jsxs)("legend",{children:[m,(0,e.jsx)("span",{children:R.find(r=>r.id===l[a])?.label})]}),(0,e.jsx)("div",{className:"options",children:R.map(r=>(0,e.jsxs)("label",{className:"option","data-selected":l[a]===r.id,children:[(0,e.jsx)("input",{type:"radio",name:`${$}-${a}`,value:r.id,checked:l[a]===r.id,"aria-label":r.label,onChange:()=>N(j({...l,[a]:r.id}))}),a==="shape"?(0,e.jsx)(I,{config:{...l,shape:r.id,glasses:"none",hat:"none"},size:42}):r.id==="none"?(0,e.jsx)(f,{name:"circle",size:16}):(0,e.jsx)(I,{config:{...l,[a]:r.id},size:31}),(0,e.jsx)("span",{children:r.label.replace("\u773C\u955C","\u6846").replace("\u65E0\u6846","\u65E0")})]},r.id))})]}),le=w?d==="webgl"?p?"3D \u9759\u6001\u9884\u89C8 \xB7 \u5DF2\u51CF\u5C11\u52A8\u6548":"3D \u9884\u89C8":d==="loading"?"\u6B63\u5728\u52A0\u8F7D 3D\u2026":E.reason==="runtime-load"?"\u9759\u6001\u9884\u89C8 \xB7 3D \u7EC4\u4EF6\u672A\u80FD\u52A0\u8F7D":"\u9759\u6001\u9884\u89C8 \xB7 \u5F53\u524D\u6D4F\u89C8\u5668 3D \u4E0D\u53EF\u7528":b.avatar.startsWith("cat:")?"\u4FDD\u7559\u539F\u6709\u50CF\u7D20\u732B":"\u56FE\u7247\u9884\u89C8",pe=!w||b.avatar.startsWith("plush-cat:");return(0,e.jsxs)("aside",{className:"appearance","aria-label":"\u5934\u50CF\u5DE5\u4F5C\u533A","aria-busy":v,onKeyDown:a=>{a.key==="Escape"&&(v||u)&&(a.preventDefault(),a.stopPropagation(),v?(z(),h("")):U())},children:[(0,e.jsxs)("div",{className:"aside-title",children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(f,{name:"image",size:15}),"\u5934\u50CF"]}),u&&(0,e.jsx)(V,{type:"button","aria-label":"\u6536\u8D77\u5934\u50CF\u5DE5\u4F5C\u533A",onClick:U,children:(0,e.jsx)(f,{name:"close",size:15})})]}),(0,e.jsxs)("div",{className:"appearance-layout",children:[(0,e.jsxs)("div",{className:"avatar-stage",children:[(0,e.jsx)(se,{employee:b,size:136,interactive:!0,speaking:L&&d==="webgl"&&!p,onRendererChange:(a,m)=>ie({key:C,renderer:a,reason:m})},C),(0,e.jsxs)("div",{className:"preview-state",role:"status",children:[(0,e.jsx)("i",{"data-live":w&&d==="webgl"&&!p}),le]}),w&&d==="fallback"&&E.reason==="runtime-load"&&(0,e.jsx)(y,{type:"button",size:"small",kind:"ghost",disabled:s,onClick:()=>{c(!1),ee()},children:"\u91CD\u65B0\u52A0\u8F7D 3D"}),w&&(0,e.jsxs)(y,{type:"button",size:"small",kind:"ghost","aria-pressed":L,disabled:s||p||d!=="webgl",onClick:()=>c(a=>!a),children:[(0,e.jsx)(f,{name:"audio",size:14}),L?"\u505C\u6B62\u52A8\u4F5C\u9884\u89C8":"\u9884\u89C8\u8BF4\u8BDD\u52A8\u4F5C"]})]}),(0,e.jsx)("div",{className:"appearance-controls",children:A?(0,e.jsxs)("div",{className:"fixed-avatar",children:[(0,e.jsx)(f,{name:"lock",size:16}),(0,e.jsx)("strong",{children:"\u7CFB\u7EDF\u56FA\u5B9A\u5934\u50CF"}),(0,e.jsxs)("p",{children:[A.endsWith(":silver")?"\u864E\u599E\u4E09\u7EF4\u634F\u8138\uFF1A\u94F6\u7070\u77ED\u6BDB\u3001\u989D\u7EB9\u4E0E\u8F83\u957F\u9F3B\u6881":"\u521D\u4E8C\u4E09\u7EF4\u634F\u8138\uFF1A\u68D5\u9ED1\u864E\u6591\u3001\u767D\u8272\u53E3\u9F3B\u4E0E\u957F\u7ED2",(0,e.jsx)("br",{}),"\u5934\u50CF\u7531\u7CFB\u7EDF\u56FA\u5B9A\uFF0C\u5176\u4ED6\u8D44\u6599\u53EF\u7F16\u8F91\u3002"]})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"avatar-modes",children:[(0,e.jsxs)(y,{type:"button",size:"small",kind:"ghost",onClick:()=>F.current?.click(),disabled:s,children:[(0,e.jsx)(f,{name:"image",size:14}),"\u4E0A\u4F20\u56FE\u7247"]}),(0,e.jsx)(y,{type:"button",size:"small",kind:"ghost",onClick:()=>N(""),disabled:s||!t.avatar,children:"\u6062\u590D\u9ED8\u8BA4"})]}),(0,e.jsx)("small",{className:"upload-note",children:"PNG\u3001JPEG\u3001WebP \xB7 \u6700\u5927 10 MB"}),(0,e.jsx)("input",{hidden:!0,type:"file",ref:F,accept:"image/png,image/jpeg,image/webp","aria-label":"\u4E0A\u4F20\u5934\u50CF\u56FE\u7247",disabled:s,onChange:ne}),v&&(0,e.jsxs)("div",{className:"preview-state",role:"status",children:["\u6B63\u5728\u5904\u7406\u56FE\u7247\u2026",(0,e.jsx)(y,{type:"button",size:"small",kind:"ghost",onClick:z,children:"\u53D6\u6D88\u5904\u7406"})]}),G&&(0,e.jsx)("div",{className:"feedback error",role:"alert",children:G}),pe?(0,e.jsxs)("div",{className:"preserved",children:[(0,e.jsx)("p",{children:"\u73B0\u6709\u5934\u50CF\u4FDD\u6301\u539F\u6837\u3002"}),(0,e.jsx)(y,{type:"button",size:"small",disabled:s,onClick:()=>N(j(_(t))),children:"\u6539\u7528\u6BDB\u7ED2\u5934\u50CF"})]}):(0,e.jsxs)(e.Fragment,{children:[H("shape","\u9020\u578B",Y),(0,e.jsxs)("fieldset",{className:"option-group colors",disabled:s,children:[(0,e.jsxs)("legend",{children:["\u989C\u8272",(0,e.jsx)("span",{children:D.find(a=>a.id===l.color)?.label})]}),(0,e.jsx)("div",{className:"options",children:D.map(a=>(0,e.jsxs)("label",{className:"color-option","data-selected":l.color===a.id,title:a.label,children:[(0,e.jsx)("input",{type:"radio",name:`${$}-color`,value:a.id,"aria-label":a.label,checked:l.color===a.id,onChange:()=>N(j({...l,color:a.id}))}),(0,e.jsx)("span",{style:{background:a.color}})]},a.id))})]}),H("glasses","\u773C\u955C",q),H("hat","\u5E3D\u5B50",Q)]})]})})]}),(0,e.jsx)("small",{className:"aside-foot",children:"\u5934\u50CF\u4E0E\u8D44\u6599\u7EDF\u4E00\u4FDD\u5B58\uFF0C\u53D6\u6D88\u53EF\u64A4\u9500\u4FEE\u6539\u3002"})]})}var me=`.wand-employee-card,.wand-employee-card.is-system{border-color:var(--border-subtle);background:var(--bg-elevated);box-shadow:none}.wand-employee-card[data-open]{border-color:var(--border-default)}.wand-employee-card.is-archived{opacity:1}.wand-employee-card>.ant-card-body{padding:10px 12px}.wand-employee-card .wand-team-member-head{padding:2px 0;gap:10px!important}.wand-employee-name-line{min-width:0}.wand-employee-name-line>.ant-typography{flex:1;min-width:0}.wand-employee-name-line>.ant-tag{flex:0 0 auto}.wand-employee-meta-line{min-width:0}.wand-employee-meta-line>.ant-typography{min-width:0;font-size:12px}.wand-employee-meta-line>.wand-team-member-agent{flex:1 1 auto}.wand-employee-meta-line>.wand-employee-tags{flex:0 1 38%}.wand-employee-list .wand-teams-toolbar{min-height:var(--wand-page-toolbar-height,36px)}.wand-employee-list .wand-teams-toolbar-search{max-width:400px}.wand-employee-card .wand-team-member-copy>.ant-typography{font-size:12px}.wand-employee-card .wand-employee-name-line>.ant-typography{font-size:14px}.wand-employee-card .wand-team-member-copy .ant-tag{margin-inline-end:0;font-size:11px;line-height:18px}.wand-employee-card .wand-team-member-inner{gap:12px!important}.wand-employee-card .ant-form-item{margin-bottom:0}.wand-employee-card textarea.ant-input{resize:none}.wand-team-candidates{min-width:0;padding-block:12px;border-block-start:1px solid var(--border-subtle)}.wand-team-candidates-head{padding-bottom:4px}.wand-team-candidates-head>.ant-typography{font-size:12px}.wand-team-candidate{min-width:0;padding-block:10px;border-block-end:1px solid var(--border-subtle)}.wand-team-candidate-tag{margin:4px 0 0;min-width:44px;text-align:center}.wand-team-candidate[data-duplicate=true]{border-color:var(--danger)}.wand-team-candidate-inner{align-items:flex-start}.wand-team-candidate-tools{margin-top:2px}.wand-team-candidate .wand-ai-team-member-agent>div{min-width:0}.wand-team-candidate .task-board-native-field{max-width:100%}.wand-team-candidate .ant-form-item-control{min-width:0}.wand-team-candidate .wand-ui-select-trigger{min-width:0;max-width:100%}.wand-team-candidate .wand-ui-select-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wand-team-candidates-foot{padding-top:4px}
|
|
2
|
-
`;function Re(){B("wand-employee-refinement-styles",me)}var ce=String.raw`
|
|
3
|
-
.wand-teams-page .wand-employees-layout{padding:0;display:flex;min-height:0;overflow:hidden}
|
|
4
|
-
.wand-employee-workspace{display:flex;flex-direction:column;width:100%;height:100%;flex:1;min-width:0;min-height:0;background:var(--bg-primary)}
|
|
5
|
-
.wand-employee-workspace [hidden],[data-employee-profile] [hidden]{display:none}
|
|
6
|
-
.employee-directory{padding:20px var(--wand-page-inset);overflow:auto;min-height:0;flex:1;container:employeedirectory / inline-size}
|
|
7
|
-
.employee-directory-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}
|
|
8
|
-
.employee-directory-toolbar .wand-ui-search{flex:1;min-width:160px;max-width:560px}
|
|
9
|
-
.employee-items{display:grid;grid-template-columns:minmax(0,1fr);column-gap:24px}
|
|
10
|
-
.employee-item{display:flex;align-items:center;gap:14px;width:100%;min-height:80px;padding:16px 4px;border:0;border-bottom:1px solid var(--border-subtle);background:transparent;color:var(--text-primary);text-align:left;cursor:pointer;font:inherit}
|
|
11
|
-
.employee-item:hover{background:var(--bg-hover)}
|
|
12
|
-
.employee-item:focus-visible{outline:2px solid var(--border-focus);outline-offset:-2px}
|
|
13
|
-
.employee-item>span:nth-child(2){min-width:0;flex:1}
|
|
14
|
-
.employee-item strong{display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere}
|
|
15
|
-
.employee-item small{display:block;color:var(--text-secondary);font-size:13px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
16
|
-
.employee-item>svg{flex:none;color:var(--text-secondary)}
|
|
17
|
-
.employee-archived-label{font-size:12px;font-weight:400;color:var(--text-secondary);margin-left:8px}
|
|
18
|
-
.wand-employee-workspace .no-results{padding:40px 0;color:var(--text-secondary)}
|
|
19
|
-
.employee-profile-content,[data-employee-profile]{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;background:var(--bg-primary);color:var(--text-primary);font-size:14px}
|
|
20
|
-
[data-employee-profile].wand-team-member{border:0;box-shadow:none}
|
|
21
|
-
.wand-employee-workspace .profile-header,[data-employee-profile] .profile-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:10px var(--wand-page-inset);min-height:var(--wand-page-header-height);flex:none;border-bottom:1px solid var(--border-subtle)}
|
|
22
|
-
.profile-heading{display:flex;align-items:center;gap:8px;min-width:0}
|
|
23
|
-
.profile-heading h2{margin:0;font-size:var(--wand-page-title-size);line-height:1.4;font-weight:600}
|
|
24
|
-
[data-employee-profile] .save-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
|
|
25
|
-
[data-employee-profile] .dirty{font-size:12px;color:var(--text-secondary);margin-right:8px}
|
|
26
|
-
[data-employee-profile] .profile-body{overflow:auto;min-height:0;flex:1;scrollbar-gutter:stable;overscroll-behavior:contain}
|
|
27
|
-
[data-employee-profile] .editor{width:100%;padding:24px var(--wand-page-inset) 48px;box-sizing:border-box;container:employeeeditor / inline-size}
|
|
28
|
-
[data-employee-profile] .editor>:is(.identity-summary,.form-section,.appearance,.ant-alert){max-width:1472px}
|
|
29
|
-
[data-employee-profile] .identity-summary{display:flex;align-items:center;gap:14px;margin-bottom:24px}
|
|
30
|
-
[data-employee-profile] .identity-summary>div{min-width:0;flex:1}
|
|
31
|
-
[data-employee-profile] .identity-summary strong{display:block;font-size:16px;font-weight:600;overflow-wrap:anywhere}
|
|
32
|
-
[data-employee-profile] .identity-summary small{display:block;color:var(--text-secondary);font-size:12px;margin-top:4px}
|
|
33
|
-
[data-employee-profile] .form-section{margin:0 0 24px;min-width:0;scroll-margin-top:16px}
|
|
34
|
-
[data-employee-profile] .identity-fields{display:flex;flex-direction:column;gap:20px}
|
|
35
|
-
[data-employee-profile] .wand-settings-library-field{margin:0;min-width:0}
|
|
36
|
-
[data-employee-profile] #role>.wand-settings-library-field+.wand-settings-library-field{margin-top:20px}
|
|
37
|
-
[data-employee-profile] #tools,[data-employee-profile] #advanced{padding-top:24px;border-top:1px solid var(--border-subtle)}
|
|
38
|
-
[data-employee-profile] .wand-team-candidates{padding:0;border:0}
|
|
39
|
-
[data-employee-profile] .wand-team-candidate{border-bottom:1px solid var(--border-subtle);padding:12px 0}
|
|
40
|
-
[data-employee-profile] .wand-team-candidate .ant-form-item{margin:0;min-width:0}
|
|
41
|
-
[data-employee-profile] .wand-team-candidate .task-board-native-field{max-width:100%}
|
|
42
|
-
[data-employee-profile] .advanced-details>summary{font-size:14px;font-weight:500;cursor:pointer;padding:8px 0}
|
|
43
|
-
[data-employee-profile] .advanced-content{display:flex;flex-direction:column;gap:20px;padding-top:20px}
|
|
44
|
-
[data-employee-profile] .appearance{max-width:100%;margin-bottom:24px;padding:0 0 24px;border-bottom:1px solid var(--border-subtle)}
|
|
45
|
-
.employee-profile-content>.is-new{width:100%;flex:1;min-height:0;box-sizing:border-box;padding:24px var(--wand-page-inset);overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;border:0;border-radius:0;background:transparent;container:employeeeditor / inline-size}
|
|
46
|
-
.employee-profile-content>.is-new .wand-team-member-inner{max-width:1472px}
|
|
47
|
-
.employee-create-avatar{display:flex;align-items:center;gap:12px;padding-block:8px}
|
|
48
|
-
.employee-profile-content>.is-new .appearance{padding-block:16px;border-bottom:1px solid var(--border-subtle)}
|
|
49
|
-
.wand-object-profile-drawer:has([data-employee-profile]) .ant-drawer-body{padding:0;overflow:hidden}
|
|
50
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .aside-title{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:500;line-height:28px}
|
|
51
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .aside-title>span{display:flex;align-items:center;gap:7px}
|
|
52
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .avatar-stage{text-align:center;padding:17px 0 11px}
|
|
53
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .preview-state{display:flex;align-items:center;justify-content:center;gap:5px;color:var(--text-secondary);font-size:12px;line-height:18px;margin-top:5px}
|
|
54
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .preview-state i{width:4px;height:4px;border-radius:50%;background:var(--text-secondary)}
|
|
55
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .preview-state i[data-live=true]{background:var(--success)}
|
|
56
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .avatar-modes{display:flex;justify-content:center;gap:7px;margin-bottom:3px}
|
|
57
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .upload-note{display:block;text-align:center;font-size:12px;color:var(--text-secondary);margin-bottom:18px}
|
|
58
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .option-group{border:0;border-top:1px solid var(--border-subtle);padding:11px 0 0;margin:15px 0 0;min-width:0}
|
|
59
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .option-group legend{float:left;width:100%;display:flex;justify-content:space-between;font-size:12px;font-weight:500;padding:0;margin:0 0 9px}
|
|
60
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .option-group legend>span{font-size:12px;font-weight:400;color:var(--text-secondary)}
|
|
61
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .options{clear:both;display:flex;gap:5px}
|
|
62
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .shape .options{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
|
|
63
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .option{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;flex:1;border:1px solid transparent;border-radius:6px;padding:6px 1px;background:var(--bg-surface);cursor:pointer;min-width:0}
|
|
64
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .option>span:last-child{font-size:12px;color:var(--text-secondary)}
|
|
65
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .option[data-selected=true]{border-color:var(--accent-solid);background:var(--bg-active)}
|
|
66
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .option input,:where(.wand-employee-workspace,[data-employee-profile]) .color-option input{position:absolute;opacity:0;width:1px;height:1px}
|
|
67
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .option:has(input:focus-visible),:where(.wand-employee-workspace,[data-employee-profile]) .color-option:has(input:focus-visible){outline:2px solid var(--border-focus);outline-offset:3px}
|
|
68
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .glasses .option,:where(.wand-employee-workspace,[data-employee-profile]) .hat .option{flex-direction:row;font-size:12px;padding:9px 2px}
|
|
69
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .color-option{position:relative;cursor:pointer;display:grid;place-items:center;width:30px;height:30px;border:1px solid transparent;border-radius:50%}
|
|
70
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .color-option>span{width:20px;height:20px;border-radius:50%;box-shadow:inset 0 0 0 1px #00000009}
|
|
71
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .color-option[data-selected=true]{border-color:var(--accent-solid)}
|
|
72
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .colors .options{justify-content:flex-start;gap:12px;flex-wrap:wrap}
|
|
73
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .aside-foot{display:block;font-size:12px;color:var(--text-secondary);margin-top:18px}
|
|
74
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .photo{object-fit:cover;border-radius:7px;flex:none}
|
|
75
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .pixel{display:inline-flex;align-items:center;justify-content:center;flex:none}
|
|
76
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .fixed-avatar{display:grid;grid-template-columns:18px 1fr;gap:5px;color:var(--text-secondary);padding:15px 0;border-top:1px solid var(--border-subtle)}
|
|
77
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .fixed-avatar strong{font-size:12px;font-weight:500}
|
|
78
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .fixed-avatar p{grid-column:2;font-size:12px;line-height:1.8;color:var(--text-secondary)}
|
|
79
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .preserved{padding:15px 0;font-size:12px;color:var(--text-secondary);text-align:center}
|
|
80
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .preserved p{margin-bottom:12px}
|
|
81
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .feedback{padding:9px 28px;color:var(--success);background:var(--success-muted);font-size:12px}
|
|
82
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .feedback.error{color:var(--danger);background:var(--danger-muted)}
|
|
83
|
-
|
|
84
|
-
.appearance-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
|
|
85
|
-
.appearance-controls{min-width:0}
|
|
86
|
-
@container employeedirectory (min-width:980px){.employee-items{grid-template-columns:repeat(2,minmax(0,1fr))}}
|
|
87
|
-
@container employeedirectory (min-width:1440px){.employee-items{grid-template-columns:repeat(3,minmax(0,1fr))}}
|
|
88
|
-
@container employeeeditor (min-width:640px){
|
|
89
|
-
.appearance-layout{grid-template-columns:200px minmax(0,1fr);align-items:start;max-width:1040px}
|
|
90
|
-
}
|
|
91
|
-
@container employeeeditor (min-width:1040px){
|
|
92
|
-
:is([data-employee-profile] :is(.identity-fields,#role,.advanced-content),.is-new :is(.wand-team-member-inner,.wand-employee-advanced-inner))>.wand-settings-library-field>.ant-form-item-row{display:grid;grid-template-columns:200px minmax(0,1fr);column-gap:32px;align-items:start}
|
|
93
|
-
:is([data-employee-profile],.is-new) .wand-settings-library-field .ant-form-item-label{padding-bottom:0;text-align:start;white-space:normal}
|
|
94
|
-
:is([data-employee-profile],.is-new) .wand-settings-library-field .ant-form-item-label>label{white-space:normal;height:auto}
|
|
95
|
-
:is([data-employee-profile],.is-new) .wand-settings-library-field .ant-form-item-control{min-width:0;max-width:1200px}
|
|
96
|
-
}
|
|
97
|
-
@media(max-width:600px){
|
|
98
|
-
.employee-directory{padding-top:12px}
|
|
99
|
-
.employee-directory-toolbar{gap:12px}
|
|
100
|
-
.employee-directory-toolbar .wand-ui-search{flex-basis:100%}
|
|
101
|
-
.employee-directory-toolbar>.ant-btn{margin-left:auto}
|
|
102
|
-
[data-employee-profile] .profile-header{gap:6px}
|
|
103
|
-
[data-employee-profile] .save-actions{margin-left:auto}
|
|
104
|
-
[data-employee-profile] .dirty{flex-basis:100%;text-align:right;margin:0}
|
|
105
|
-
[data-employee-profile] .editor{padding-top:20px}
|
|
106
|
-
:where(.wand-employee-workspace,[data-employee-profile]) .shape .options{grid-template-columns:repeat(3,minmax(0,1fr))}
|
|
107
|
-
}
|
|
108
|
-
@media(pointer:coarse){
|
|
109
|
-
[data-employee-profile] .option,[data-employee-profile] .color-option{min-height:44px;min-width:44px}
|
|
110
|
-
}
|
|
111
|
-
`;function Ae(){B("wand-employee-profile-styles",ce)}export{ve as a,Re as b,Ae as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{shared55_d as K}from"./runtime.js";import{shared15_d as S,shared15_e as W}from"./runtime.js";import{shared10_b as C}from"./runtime.js";import{shared7_Bc as w,shared7_Fd as k,shared7_Gd as G,shared7_Sc as q,shared7__d as J,shared7_ld as p}from"./runtime.js";import{shared8_a as j}from"./runtime.js";import{shared9_c as O}from"./runtime.js";var U={list(){return S("/api/wand-milestones").then(e=>e.milestones??[])},create(e){return S("/api/wand-milestones",W(e))},update(e,s){return S(`/api/wand-milestones/${encodeURIComponent(e)}`,W(s,"PATCH"))}};var d={items:[],loading:!1,loaded:!1,error:"",revision:0},B=U,M=null,I=new Set;function y(e){d={...d,...e,revision:d.revision+1};for(let s of I)s()}var r={subscribe(e){return I.add(e),()=>I.delete(e)},getSnapshot(){return d},load(e=!1){return M||(d.loaded&&!e?Promise.resolve():(y({loading:!0}),M=B.list().then(s=>y({items:s,loaded:!0,loading:!1,error:""})).catch(s=>y({loading:!1,error:C(s,"\u65E0\u6CD5\u52A0\u8F7D\u91CC\u7A0B\u7891\u3002")})).finally(()=>{M=null}),M))},create(e,s){let o=e.trim();return o?B.create({name:o,workspaceId:s?.trim()||null}).then(i=>(y({items:[i,...d.items],loaded:!0,error:""}),i)):Promise.reject(new Error("\u8BF7\u586B\u5199\u91CC\u7A0B\u7891\u540D\u79F0\u3002"))},rebind(e,s){return B.update(e,{workspaceId:s}).then(o=>{y({items:d.items.map(i=>i.id===e?{...i,workspaceId:o.workspaceId}:i)})})}};function E(e,s){let o=s?.trim();return o?e.filter(i=>!i.workspaceId||i.workspaceId===o):[...e]}function se(e,s){return s?e.find(o=>o.id===s)?.name??"":""}var l=O(j(),1);var t=O(q(),1);function de({value:e,onChange:s,workspaceId:o=null,onCreated:i,disabled:m=!1,items:v,className:X,align:F="start"}){let h=l.useSyncExternalStore(r.subscribe,r.getSnapshot,r.getSnapshot),b=E(v??h.items,o),D=!!o?.trim(),[R,L]=l.useState(!1),[Q,f]=l.useState(!1),[P,T]=l.useState(""),[g,z]=l.useState(!1),[A,u]=l.useState(""),_=l.useRef(null);l.useEffect(()=>{v||!R&&!e||r.load()},[v,R,e]);let c=e?b.find(n=>n.id===e)??null:null,H=v||b.length>0?"":h.error,x=n=>{n!==void 0&&s(n),L(!1),f(!1),T(""),u("")},Y=()=>{f(!0),u(""),window.setTimeout(()=>_.current?.focus(),0)},$=async()=>{let n=P.trim();if(!(!n||g)){z(!0),u("");try{let N=await r.create(n,o);i?.(N),x(N.id)}catch(N){u(C(N,"\u65E0\u6CD5\u65B0\u589E\u91CC\u7A0B\u7891\u3002"))}finally{z(!1)}}};return(0,t.jsx)(J,{open:R,onOpenChange:n=>{m||(L(n),n||(f(!1),u("")))},align:F,side:"bottom",ariaLabel:"\u9009\u62E9\u91CC\u7A0B\u7891",className:"milestone-picker-menu",trigger:(0,t.jsxs)(p,{kind:"ghost",type:"button",className:w("milestone-picker-trigger",c&&"is-set",X),"aria-label":c?`\u91CC\u7A0B\u7891\uFF1A${c.name}`:"\u91CC\u7A0B\u7891","aria-haspopup":"dialog","aria-expanded":R,disabled:m,title:c?`\u91CC\u7A0B\u7891\uFF1A${c.name}`:"\u91CC\u7A0B\u7891",children:[(0,t.jsx)(k,{name:"milestone",size:13}),(0,t.jsx)("span",{className:"milestone-picker-trigger-label",children:c?c.name:"\u91CC\u7A0B\u7891"}),(0,t.jsx)(k,{name:"chevron",size:12,className:"milestone-picker-trigger-caret"})]}),children:(0,t.jsxs)("div",{className:"milestone-picker",role:"dialog","aria-label":"\u9009\u62E9\u91CC\u7A0B\u7891",children:[(0,t.jsxs)("div",{className:"milestone-picker-head",children:[(0,t.jsx)("strong",{children:"\u91CC\u7A0B\u7891"}),c?(0,t.jsx)(p,{kind:"ghost",type:"button",className:"milestone-picker-clear",onClick:()=>x(null),children:c.isDefault?"\u56DE\u5230\u9ED8\u8BA4":"\u6E05\u9664"}):null]}),Q?(0,t.jsxs)("div",{className:"milestone-picker-create",children:[(0,t.jsx)(G,{ref:_,className:"milestone-picker-input",type:"text",value:P,maxLength:K,placeholder:"\u91CC\u7A0B\u7891\u540D\u79F0\uFF0C\u4F8B\u5982\uFF1Av5.0 \u53D1\u5E03","aria-label":"\u65B0\u91CC\u7A0B\u7891\u540D\u79F0",disabled:g,onChange:n=>T(n.currentTarget.value),onKeyDown:n=>{n.nativeEvent.isComposing||(n.key==="Enter"&&(n.preventDefault(),$()),n.key==="Escape"&&(n.preventDefault(),f(!1)))}}),(0,t.jsxs)("div",{className:"milestone-picker-create-actions",children:[(0,t.jsx)(p,{kind:"ghost",type:"button",className:"milestone-picker-create-cancel",onClick:()=>{f(!1),u("")},disabled:g,children:"\u53D6\u6D88"}),(0,t.jsx)(p,{kind:"primary",size:"small",type:"button",disabled:!P.trim()||g,onClick:()=>{$()},children:g?"\u65B0\u589E\u4E2D\u2026":"\u65B0\u589E"})]}),A?(0,t.jsx)("p",{className:"milestone-picker-error",role:"alert",children:A}):null]}):(0,t.jsxs)(t.Fragment,{children:[b.length>0?(0,t.jsx)("div",{className:"milestone-picker-list",role:"listbox","aria-label":"\u5386\u53F2\u91CC\u7A0B\u7891",children:b.map(n=>(0,t.jsxs)(p,{kind:"ghost",type:"button",role:"option","aria-selected":n.id===e,className:w("milestone-picker-item",n.id===e&&"is-selected"),onClick:()=>x(n.id),children:[(0,t.jsx)(k,{name:"milestone",size:13,className:"milestone-picker-item-icon"}),(0,t.jsx)("span",{className:"milestone-picker-item-name",children:n.name}),n.isDefault?(0,t.jsx)("span",{className:"milestone-picker-item-default",children:"\u9ED8\u8BA4"}):null,D&&!n.workspaceId&&!n.isDefault?(0,t.jsx)("span",{className:"milestone-picker-item-scope",children:"\u5168\u5C40"}):null,n.taskCount>0?(0,t.jsx)("span",{className:"milestone-picker-item-count",children:n.taskCount}):null]},n.id))}):H?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"milestone-picker-error",role:"alert",children:H}),(0,t.jsx)(p,{kind:"ghost",size:"small",disabled:h.loading,onClick:()=>{r.load(!0)},children:h.loading?"\u52A0\u8F7D\u4E2D\u2026":"\u91CD\u65B0\u52A0\u8F7D"})]}):(0,t.jsx)("p",{className:"milestone-picker-empty",children:D?"\u8FD9\u4E2A\u5DE5\u4F5C\u533A\u8FD8\u6CA1\u6709\u91CC\u7A0B\u7891\uFF0C\u65B0\u589E\u4E00\u4E2A\u5427\u3002":"\u8FD8\u6CA1\u6709\u91CC\u7A0B\u7891\uFF0C\u65B0\u589E\u4E00\u4E2A\u5427\u3002"}),(0,t.jsxs)(p,{kind:"ghost",type:"button",className:"milestone-picker-add",onClick:Y,children:[(0,t.jsx)(k,{name:"plus",size:13}),(0,t.jsx)("span",{children:"\u65B0\u589E\u91CC\u7A0B\u7891"})]})]})]})})}var a=O(j(),1);function Z(e,s){return E(e,s).find(o=>o.isDefault)??null}function fe(e,s=!0){let o=a.useSyncExternalStore(r.subscribe,r.getSnapshot,r.getSnapshot);return a.useEffect(()=>{!s||o.loaded||o.loading||r.load().catch(()=>{})},[s,o.loaded,o.loading]),a.useMemo(()=>Z(o.items,e),[o.items,e])}function ge(e,s,o){let i=a.useRef(!1),m=a.useRef(o);m.current=o,a.useEffect(()=>{if(!e){i.current=!1;return}i.current||!s||(i.current=!0,m.current(s.id))},[e,s])}export{r as a,se as b,de as c,fe as d,ge as e};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import{shared36_c as D,shared36_g as fe}from"./runtime.js";import{shared62_b as ue}from"./runtime.js";import{shared76_a as de}from"./runtime.js";import{a as ge,b as we}from"./chunk-6C6A2RHG.js";import{shared80_a as me}from"./runtime.js";import{shared51_a as x}from"./runtime.js";import{shared37_h as ce,shared37_m as pe}from"./runtime.js";import{shared18_a as ae}from"./runtime.js";import{shared56_l as le}from"./runtime.js";import{shared19_a as V,shared19_d as G,shared19_k as H,shared19_m as Q,shared19_n as F}from"./runtime.js";import{shared15_c as N}from"./runtime.js";import{shared25_b as se}from"./runtime.js";import{shared53_b as b}from"./runtime.js";import{shared11_a as te,shared11_c as j}from"./runtime.js";import{shared27_a as re}from"./runtime.js";import{shared59_a as X}from"./runtime.js";import{shared7_$d as ne,shared7_Ed as p,shared7_Fd as T,shared7_Ld as ee,shared7_Sc as Y,shared7_be as ie,shared7_de as oe,shared7_ed as Z,shared7_ld as q,shared7_zd as c}from"./runtime.js";import{shared8_a as Pe}from"./runtime.js";import{shared9_c as A,shared9_d as M}from"./runtime.js";typeof document<"u"&&se("wand-new-session-layout",String.raw`
|
|
2
|
-
.wand-new-session-library-dialog .ant-modal-body { scroll-padding-bottom: 64px; }
|
|
3
|
-
.wand-new-session-summary {
|
|
4
|
-
padding-bottom: 16px; border-bottom: 1px solid var(--border-subtle);
|
|
5
|
-
}
|
|
6
|
-
.wand-new-session-summary dl { display: grid; gap: 4px; margin: 0; font-size: 12px; }
|
|
7
|
-
.wand-new-session-summary dl > div { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 8px; }
|
|
8
|
-
.wand-new-session-summary dt { color: var(--text-secondary); }
|
|
9
|
-
.wand-new-session-summary dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
|
|
10
|
-
.wand-new-session-summary .wand-new-session-permission-warning { color: var(--danger); }
|
|
11
|
-
.wand-new-session-summary .wand-new-session-permission-detail { margin: 4px 0 0; font-size: 12px; line-height: 1.5; }
|
|
12
|
-
.wand-new-session-permission-context dl { margin-bottom: 8px; }
|
|
13
|
-
.wand-new-session-subject-collapse .ant-collapse-header-text { min-width: 0; }
|
|
14
|
-
.wand-new-session-summary .ant-segmented { min-height: 36px; }
|
|
15
|
-
.wand-new-session-library-dialog .ant-input-affix-wrapper,
|
|
16
|
-
.wand-new-session-library-dialog .ant-input:not(.ant-input-affix-wrapper .ant-input),
|
|
17
|
-
.wand-new-session-library-dialog .wand-ui-select-trigger { min-height: 36px; }
|
|
18
|
-
.wand-new-session-library-dialog .ant-form-item { margin-bottom: 12px; }
|
|
19
|
-
.wand-new-session-primary-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
|
|
20
|
-
.wand-new-session-primary-fields.is-single { grid-template-columns: minmax(0, 1fr); }
|
|
21
|
-
.wand-new-session-primary-fields .ant-form-item { margin-bottom: 0; }
|
|
22
|
-
.wand-execution-subject-picker .wand-ui-search { margin-bottom: 12px; }
|
|
23
|
-
.wand-execution-subject-picker .ant-form-item { margin-bottom: 0; }
|
|
24
|
-
.wand-execution-subject-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
|
|
25
|
-
.wand-execution-subject-grid .ant-radio-wrapper { margin: 0; min-width: 0; padding-block: 4px; align-items: center; }
|
|
26
|
-
.wand-execution-subject-grid .ant-radio-wrapper > span:last-child { flex: 1; min-width: 0; }
|
|
27
|
-
.wand-execution-subject-label .ant-typography { font-size: 12px; }
|
|
28
|
-
.wand-execution-subject-label > svg, .wand-execution-subject-label > img { flex-shrink: 0; }
|
|
29
|
-
.wand-new-session-logo-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
|
|
30
|
-
@media (max-width: 540px) {
|
|
31
|
-
.wand-execution-subject-grid, .wand-new-session-primary-fields { grid-template-columns: minmax(0, 1fr); }
|
|
32
|
-
.wand-new-session-logo-bar { flex-wrap: wrap; }
|
|
33
|
-
}
|
|
34
|
-
@media (pointer: coarse) {
|
|
35
|
-
.wand-execution-subject-grid .ant-radio-wrapper { min-height: 44px; }
|
|
36
|
-
.wand-new-session-logo-toggle { min-width: 44px; min-height: 44px; }
|
|
37
|
-
}
|
|
38
|
-
`);var d=A(Pe(),1);var o=A(Y(),1),ye=[...H.map(e=>({id:e.id,provider:e.provider,engine:e.engine,label:e.label,description:e.description,structuredOnly:e.engine==="sdk"})),{id:"shell",provider:"shell",label:"\u7A7A\u767D\u7EC8\u7AEF",description:"\u4EC5\u542F\u52A8\u7CFB\u7EDF Shell"}];function U(e,...n){let t=n.join(" ").toLocaleLowerCase();return e.trim().toLocaleLowerCase().split(/\s+/).filter(Boolean).every(s=>t.includes(s))}function on({selectedSubject:e,kind:n,model:t,disabled:s=!1,teams:a=null,teamWorkspaceId:m="",showModel:l=!0,showKind:I=!0,onSubjectChange:u,onKindChange:h,onModelChange:C}){let{employees:k,loading:v}=le(),xe=me(),ke=ge(!0),ve=we(ye,ke??{},i=>i.provider),P=m==="",[g,B]=d.useState(""),E=d.useRef(null);d.useEffect(()=>{E.current?.focus({preventScroll:!0})},[]),ee(!!g,()=>{B(""),E.current?.focus({preventScroll:!0})});let R=k.filter(i=>!i.archivedAt&&U(g,"\u7845\u57FA\u5458\u5DE5",i.name,i.duty,...i.agents.map(r=>F(r.provider,r.engine)))),O=a?.filter(i=>U(g,"AI \u56E2\u961F",i.name,i.detail??""))??[],W=ve.filter(i=>U(g,"\u6267\u884C\u5DE5\u5177 CLI",i.label,i.description)),Se=W.length>0||n!=="pty"&&(R.length>0||O.length>0),[be,Te]=d.useState("claude"),[z,w]=d.useState(null);d.useEffect(()=>{e.type==="cli"&&e.id!=="shell"&&Te(e.id)},[e]);let Ne=i=>{s||(h(i),i==="pty"&&(e.type==="employee"||e.type==="team")?(u({type:"cli",id:be}),w("\u5DF2\u5207\u56DE\u547D\u4EE4\u884C\u5DE5\u5177\uFF1A\u7EC8\u7AEF\u4E0D\u652F\u6301\u5458\u5DE5\u548C\u56E2\u961F\u3002")):i==="pty"&&e.engine==="sdk"?(u({type:"cli",id:e.id}),w("\u5DF2\u5207\u56DE Pi CLI\uFF1AWand Agent \u4EC5\u652F\u6301\u5BF9\u8BDD\u3002")):w(null))},S=n==="pty",Ie=e.type==="cli"?e.id==="shell"?"shell":Q(e.id,e.engine):"",L=(i,r,f)=>(0,o.jsxs)(c,{align:"center",gap:8,className:"wand-execution-subject-label",children:[i,(0,o.jsxs)(c,{vertical:!0,style:{minWidth:0},children:[(0,o.jsx)(p.Text,{strong:!0,ellipsis:!0,title:r,children:r}),f?(0,o.jsx)(p.Text,{type:"secondary",ellipsis:!0,title:f,children:f}):null]})]});return(0,o.jsx)(Z,{children:(0,o.jsxs)(c,{vertical:!0,gap:12,className:"wand-execution-subject-picker",children:[I?(0,o.jsx)(b.Item,{label:"\u4F1A\u8BDD\u7C7B\u578B",children:(0,o.jsx)(oe,{block:!0,"aria-label":"\u4F1A\u8BDD\u7C7B\u578B",value:n,disabled:s,options:fe.map(i=>({value:i.value,label:(0,o.jsx)("span",{title:i.description,children:i.label})})),onChange:i=>Ne(i)})}):null,(0,o.jsxs)(b.Item,{label:"\u6267\u884C\u5BF9\u8C61",children:[(0,o.jsx)(ie,{value:g,onValueChange:B,disabled:s,inputRef:E,label:"\u641C\u7D22\u6267\u884C\u5BF9\u8C61",placeholder:"\u641C\u7D22\u5458\u5DE5\u3001\u56E2\u961F\u6216\u5DE5\u5177"}),z?(0,o.jsx)(X,{type:"warning",showIcon:!0,title:z}):null,(0,o.jsx)(x.Group,{value:`${e.type}:${e.type==="cli"?Ie:e.id}`,disabled:s,"aria-label":"\u6267\u884C\u5BF9\u8C61",style:{width:"100%"},onChange:i=>{let r=String(i.target.value),f=r.indexOf(":"),J=r.slice(0,f),$=r.slice(f+1);if(w(null),J==="cli"){let y=ye.find(Ce=>Ce.id===$);if(y){y.structuredOnly&&n!=="structured"?(h("structured"),w(y.id==="wand-agent"?"Wand Agent \u4F7F\u7528\u5BF9\u8BDD\u754C\u9762\u3002":null)):w(null),u({type:"cli",id:y.provider,...y.engine?{engine:y.engine}:{}});return}}u({type:J,id:$})},children:(0,o.jsxs)(c,{vertical:!0,gap:12,children:[!S&&(!g.trim()||R.length>0)?(0,o.jsxs)(c,{vertical:!0,gap:8,role:"group","aria-label":"\u7845\u57FA\u5458\u5DE5",children:[(0,o.jsx)(p.Text,{strong:!0,children:"\u7845\u57FA\u5458\u5DE5"}),v?(0,o.jsx)(re,{size:"small"}):null,(0,o.jsx)("div",{className:"wand-execution-subject-grid",children:R.map(i=>(0,o.jsx)(x,{value:`employee:${i.id}`,children:L((0,o.jsx)(de,{employee:i,size:"md"}),i.name,i.duty||(i.agents[0]?`\u9996\u9009\uFF1A${F(i.agents[0].provider,i.agents[0].engine)}`:"\u667A\u80FD\u52A9\u624B"))},i.id))}),!v&&k.every(i=>!!i.archivedAt)?(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{children:"\u8FD8\u6CA1\u6709\u7845\u57FA\u5458\u5DE5"}),(0,o.jsx)(q,{kind:"ghost",onClick:()=>ue.open("","","teams"),children:"\u62DB\u8058\u5458\u5DE5"})]}):null]}):null,!S&&O.length>0?(0,o.jsxs)(c,{vertical:!0,gap:8,role:"group","aria-label":"AI \u56E2\u961F",children:[(0,o.jsx)(p.Text,{strong:!0,children:"AI \u56E2\u961F"}),(0,o.jsx)("div",{className:"wand-execution-subject-grid",children:O.map(i=>(0,o.jsx)(x,{value:`team:${i.id}`,disabled:s||P,title:P?D:void 0,children:L((0,o.jsx)(T,{name:"parallel",size:18}),i.name,i.detail)},i.id))}),P?(0,o.jsx)("p",{role:"status",children:D}):null]}):null,W.length>0?(0,o.jsxs)(c,{vertical:!0,gap:8,role:"group","aria-label":"CLI \u5DE5\u5177",children:[(0,o.jsx)(p.Text,{strong:!0,children:"\u6267\u884C\u5DE5\u5177"}),(0,o.jsx)("div",{className:"wand-execution-subject-grid",children:W.map(i=>{let r=i.structuredOnly&&S;return(0,o.jsx)(x,{value:`cli:${i.id}`,disabled:s||r,title:r?"Wand Agent \u4EC5\u652F\u6301\u5BF9\u8BDD":void 0,children:L(i.id==="shell"?(0,o.jsx)(T,{name:"terminal",size:18}):i.engine==="sdk"?(0,o.jsx)(T,{name:"spark",size:18}):(0,o.jsx)(ae,{provider:i.provider,className:"wand-subject-provider"}),i.label,i.description)},i.id)})})]}):null,Se?null:(0,o.jsx)(p.Text,{type:"secondary",role:"status",children:"\u6CA1\u6709\u5339\u914D\u7684\u6267\u884C\u5BF9\u8C61\uFF0C\u8BF7\u66F4\u6362\u5173\u952E\u8BCD\u6216\u6E05\u7A7A\u641C\u7D22\u3002"})]})}),S?(0,o.jsx)(p.Paragraph,{type:"secondary",children:"\u7EC8\u7AEF\u76F4\u63A5\u4F7F\u7528\u547D\u4EE4\u884C\u5DE5\u5177\u3002\u8981\u4F7F\u7528\u5458\u5DE5\u3001\u56E2\u961F\u6216 Wand Agent\uFF0C\u8BF7\u9009\u62E9\u201C\u5BF9\u8BDD\u201D\u3002"}):null]}),l&&e.type==="cli"&&e.id!=="shell"?(0,o.jsx)(b.Item,{label:"\u6A21\u578B",extra:"\u6240\u9009\u6A21\u578B\u968F\u4F1A\u8BDD\u542F\u52A8\u4E00\u8D77\u63D0\u4EA4\uFF1B\u300C\u8DDF\u968F\u670D\u52A1\u7AEF\u9ED8\u8BA4\u300D\u6CBF\u7528\u670D\u52A1\u7AEF\u914D\u7F6E\u7684\u9ED8\u8BA4\u6A21\u578B\u3002",children:(0,o.jsx)(ne,{value:t||ce,options:pe(xe,e.id),ariaLabel:"\u6A21\u578B",searchable:!0,searchPlaceholder:"\u641C\u7D22\u6A21\u578B",disabled:s,className:"wand-workspace-agent-model-select",onValueChange:C})}):null]})})}var Ee=["structured","pty"],Re=["default","full-access","auto-edit","native","managed"];function _(e,n,t){return typeof e=="string"&&n.includes(e)?e:t}function Oe(e){return{defaultProvider:_(e.defaultProvider,V,"claude"),defaultSessionKind:_(e.defaultSessionKind,Ee,"structured"),defaultMode:_(e.defaultMode,Re,"default"),defaultCwd:j(e.defaultCwd),defaultEngine:e.defaultEngine==="sdk"?"sdk":"cli"}}function he(e){return Array.isArray(e)?e.flatMap(n=>!te(n)||typeof n.path!="string"||!n.path.trim()?[]:[{path:n.path,name:j(n.name,n.path.split("/").filter(Boolean).at(-1)??n.path)}]):[]}function We(e){return e==="codex"?["full-access"]:e==="opencode"||e==="grok"||e==="pi"?["default","full-access","managed"]:e==="qoder"?["default","full-access","auto-edit","managed"]:["default","full-access","auto-edit","native","managed"]}function Le(e,n,t="default"){let s=We(e);return s.includes(n)?n:s.includes(t)?t:s[0]}function Ae(e){return e==="codex"?"codex-cli-exec":e==="opencode"?"opencode-cli-run":e==="grok"?"grok-cli-headless":e==="qoder"?"qoder-cli-print":e==="pi"?"pi-cli-json":"claude-cli-print"}function dn(e,n,t,s={}){let a=e.cwd.trim()||t.effectiveCwd.trim()||n.defaultCwd,m={cols:Number.isFinite(s.cols)&&(s.cols??0)>0?s.cols:void 0,rows:Number.isFinite(s.rows)&&(s.rows??0)>0?s.rows:void 0},l={cwd:a,worktreeEnabled:e.worktreeEnabled===!0,sessionSource:"interactive",...e.workspaceId?{workspaceId:e.workspaceId}:{},...e.workspaceTaskId?{workspaceTaskId:e.workspaceTaskId}:{}};if(e.kind==="shell")return{...l,...m,kind:"shell",shell:!0,mode:"default"};let I=Le(e.provider,e.mode,n.defaultMode),u={...l,provider:e.provider,mode:I},h=(e.model??"").trim()||(t.selectedModels?.[e.provider]??"").trim();if(e.kind==="pty")return{...u,...m,kind:"pty",command:G(e.provider),model:h||void 0};let C=t.thinkingEffort?.trim(),k=!!(e.employeeId&&e.specifiedCli),v=e.provider==="pi"&&e.engine==="sdk"?{engine:"sdk"}:{};return{...u,...v,kind:"structured",runner:Ae(e.provider),model:e.employeeId&&!e.specifiedCli?void 0:h||void 0,thinkingEffort:C||void 0,...e.employeeId?{employeeId:e.employeeId,overrideCli:k}:{}}}var K=class{constructor(n=(t,s)=>globalThis.fetch(t,s)){M(this,"fetchImpl",n);M(this,"preferenceWrite",Promise.resolve())}async loadConfig(n={}){await this.preferenceWrite.catch(()=>{});let t=await this.fetchImpl("/api/config",{credentials:"same-origin",signal:n.signal});return Oe(await N(t))}async load(n={}){let t=await this.loadConfig(n),s=await this.fetchImpl("/api/recent-paths",{credentials:"same-origin",signal:n.signal}).then(async a=>a.ok?he(await a.json()):[]).catch(a=>{if(n.signal?.aborted)throw a;return[]});return{config:t,recentPaths:s}}savePreferences(n){if(Object.keys(n).length===0)return this.preferenceWrite;let t=this.preferenceWrite.catch(()=>{}).then(async()=>{let s=await this.fetchImpl("/api/settings/config",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(n)});await N(s)});return this.preferenceWrite=t,t}async suggestPaths(n,t={}){let s=await this.fetchImpl(`/api/path-suggestions?q=${encodeURIComponent(n.trim())}`,{credentials:"same-origin",signal:t.signal});return s.ok?he(await s.json()):[]}async create(n){let t=n.kind==="structured",s=t?"/api/structured-sessions":"/api/commands",a=t?{cwd:n.cwd,mode:n.mode,provider:n.provider,runner:n.runner,worktreeEnabled:n.worktreeEnabled,model:n.model,thinkingEffort:n.thinkingEffort,employeeId:n.employeeId,overrideCli:n.overrideCli,...n.workspaceId?{workspaceId:n.workspaceId}:{},...n.workspaceTaskId?{workspaceTaskId:n.workspaceTaskId}:{},sessionSource:n.sessionSource}:{command:n.kind==="pty"?n.command:void 0,provider:n.kind==="pty"?n.provider:void 0,shell:n.kind==="shell"||void 0,cwd:n.cwd,mode:n.mode,worktreeEnabled:n.worktreeEnabled,model:n.kind==="pty"?n.model:void 0,cols:n.cols,rows:n.rows,...n.workspaceId?{workspaceId:n.workspaceId}:{},...n.workspaceTaskId?{workspaceTaskId:n.workspaceTaskId}:{},sessionSource:n.sessionSource},m=await this.fetchImpl(s,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(a)}),l=await N(m);if(typeof l.id!="string"||!l.id)throw new Error("\u670D\u52A1\u7AEF\u672A\u8FD4\u56DE\u65B0\u4F1A\u8BDD ID\u3002");return l}},ln=new K;export{on as a,We as b,Le as c,dn as d,ln as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{shared24_e as lt}from"./runtime.js";import{shared7_$a as h,shared7_A as Ke,shared7_D as Qe,shared7_Dd as st,shared7_F as Je,shared7_M as y,shared7_Qa as ge,shared7_Sa as tt,shared7_Ta as ue,shared7_V as Ze,shared7_Wa as ot,shared7_Y as Ee,shared7_Yb as at,shared7_Za as fe,shared7_Zb as Te,shared7_da as ke,shared7_db as it,shared7_ma as et,shared7_oa as W,shared7_sa as de,shared7_ub as oe,shared7_ud as ct,shared7_wb as $e,shared7_xb as nt,shared7_yb as rt}from"./runtime.js";import{shared8_a as O}from"./runtime.js";import{shared9_c as A}from"./runtime.js";var j=A(O());var k=A(O());var M=A(O());var mt=A(O());function Pe(e){let{prefixCls:t,className:l,style:n,status:s}=e,a=`${t}-rail`;return mt.createElement("div",{className:y(a,`${a}-${s}`,l),style:n})}var pt=A(O()),se=pt.createContext({});var Y=A(O());var dt=A(O()),ie=dt.createContext(null);function We(){return We=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},We.apply(this,arguments)}var Me=Y.createContext({}),Zt=Y.forwardRef((e,t)=>{let{className:l,style:n,children:s,...a}=e,{prefixCls:r,classNames:p,styles:m}=Y.useContext(ie),{className:o,style:c}=Y.useContext(Me),g=`${r}-item`;return Y.createElement("div",We({},Qe(a,!1),{ref:t,className:y(`${g}-icon`,p.itemIcon,o,l),style:{...m.itemIcon,...c,...n}}),s)}),He=Zt;function Be(){return Be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},Be.apply(this,arguments)}function De(e){return e!=null}function he(e){let{prefixCls:t,classNames:l,styles:n,data:s,last:a,nextStatus:r,active:p,index:m,itemRender:o,iconRender:c,itemWrapperRender:g,onClick:u}=e,d=`${t}-item`,{railFollowPrevStatus:S}=M.useContext(se),{ItemComponent:N}=M.useContext(ie),{onClick:v,title:b,subTitle:C,content:f,description:i,disabled:$,icon:H,status:x,className:_,style:q,classNames:I={},styles:z={},...D}=s,P=f??i,E={item:{...s,content:P},index:m,active:p},B=!!(u||v)&&!$,T={};B&&(T.role="button",T.tabIndex=0,T.onClick=L=>{v?.(L),u(m)},T.onKeyDown=L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),L.currentTarget.click())});let K=x||"wait",U=De(b),w=De(C),J=y(d,`${d}-${K}`,{[`${d}-custom`]:H,[`${d}-active`]:p,[`${d}-disabled`]:$===!0,[`${d}-empty-header`]:!U&&!w},_,l.item,I.root),Z=M.createElement(He,null);c&&(Z=c(Z,{...E,components:{Icon:He}}));let Q=M.createElement("div",{className:y(`${d}-wrapper`,l.itemWrapper,I.wrapper),style:{...n.itemWrapper,...z.wrapper}},M.createElement(Me.Provider,{value:{className:I.icon,style:z.icon}},Z),M.createElement("div",{className:y(`${d}-section`,l.itemSection,I.section),style:{...n.itemSection,...z.section}},M.createElement("div",{className:y(`${d}-header`,l.itemHeader,I.header),style:{...n.itemHeader,...z.header}},U&&M.createElement("div",{className:y(`${d}-title`,l.itemTitle,I.title),style:{...n.itemTitle,...z.title}},b),w&&M.createElement("div",{title:typeof C=="string"?C:void 0,className:y(`${d}-subtitle`,l.itemSubtitle,I.subtitle),style:{...n.itemSubtitle,...z.subtitle}},C),!a&&M.createElement(Pe,{prefixCls:d,className:y(l.itemRail,I.rail),style:{...n.itemRail,...z.rail},status:S?x:r})),De(P)&&M.createElement("div",{className:y(`${d}-content`,l.itemContent,I.content),style:{...n.itemContent,...z.content}},P))),G=M.createElement(N,Be({},D,T,{className:J,style:{...n.item,...z.root,...q}}),g?g(Q):Q);return o&&(G=o(G,E)||null),G}function Ve(){return Ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},Ve.apply(this,arguments)}var gt={};function Ae(e){let{prefixCls:t="rc-steps",style:l,className:n,classNames:s=gt,styles:a=gt,rootClassName:r,orientation:p,titlePlacement:m,components:o,status:c="process",current:g=0,initial:u=0,onChange:d,items:S,iconRender:N,itemRender:v,itemWrapperRender:b,...C}=e,f=p==="vertical",i=f?"vertical":"horizontal",$=!f&&m==="vertical"?"vertical":"horizontal",H=y(t,`${t}-${i}`,`${t}-title-${$}`,r,n,s.root),x=k.default.useMemo(()=>(S||[]).filter(Boolean),[S]),_=k.default.useMemo(()=>x.map(({status:E},B)=>{let T=u+B;return E||(T===g?c:T<g?"finish":"wait")}),[x,c,g,u]),q=E=>{d&&g!==E&&d(E)},{root:I="div",item:z="div"}=o||{},D=k.default.useMemo(()=>({prefixCls:t,classNames:s,styles:a,ItemComponent:z}),[t,s,a,z]),P=(E,B)=>{let T=u+B,K=_[B],U=_[B+1],w={...E,status:K};return k.default.createElement(he,{key:T,prefixCls:t,classNames:s,styles:a,data:w,nextStatus:U,active:T===g,index:T,last:x.length-1===B,iconRender:N,itemRender:v,itemWrapperRender:b,onClick:d&&q})};return k.default.createElement(I,Ve({className:H,style:{...l,...a?.root}},C),k.default.createElement(ie.Provider,{value:D},x.map(P)))}var ut=Ae;var R=A(O());var ft=A(O()),be=ft.createContext(null);var Oe=A(O()),kt=e=>{let{prefixCls:t}=e;return Oe.createElement("svg",{"aria-hidden":!0,className:`${t}-panel-arrow`,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none"},Oe.createElement("path",{d:"M 0 0 L 100 50 L 0 100"}))},$t=kt;var ee=A(O());var eo=e=>{let{prefixCls:t,rootPrefixCls:l,children:n,percent:s}=e,a=`${t}-item-progress-icon`,r=`${a}-circle`,[,p]=h(l,"cmp-steps"),m=`calc(${p("progress-radius")} * 2 * ${Math.PI*s/100}) 9999`;return ee.createElement(ee.Fragment,null,ee.createElement("svg",{className:`${a}-svg`,viewBox:"0 0 100 100",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":s},ee.createElement("circle",{className:y(r,`${r}-rail`)}),ee.createElement("circle",{className:y(r,`${r}-ptg`),strokeDasharray:m,transform:"rotate(-90 50 50)"})),n)},ht=eo;var to=e=>{let{componentCls:t,antCls:l}=e,n=`${t}-item`,[s,a]=h(l,"cmp-steps");return{[`${t}-horizontal`]:{[`> ${n}`]:{flex:"1 1 auto",minWidth:e.iconSize,[`${n}-rail`]:{[s("horizontal-rail-margin")]:`calc(${a("icon-size-max")} / 2 - ${a("rail-size")} / 2 + ${a("item-wrapper-padding-top")})`,position:"static",marginTop:a("horizontal-rail-margin"),width:"auto",borderBlockStartWidth:a("rail-size"),flex:1,minWidth:0,alignSelf:"flex-start"}}}}},bt=to;var oo=e=>{let{componentCls:t,customIconFontSize:l,motionDurationSlow:n,iconSize:s,lineWidth:a,lineType:r,antCls:p}=e,m=`${t}-item`,[o,c]=h(p,"cmp-steps");return{[t]:{[o("icon-size")]:s,[o("icon-border-width")]:a,[`${m}-icon`]:{width:c("icon-size"),height:c("icon-size"),margin:0,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:c("icon-size"),textAlign:"center",borderRadius:c("icon-size"),border:`${c("icon-border-width")} ${r} transparent`,transition:["background-color","border","color","inset","transform"].map(g=>`${g} ${n}`).join(", "),zIndex:1},[`${m}-custom ${m}-icon`]:{background:"none",border:0,fontSize:l}}}},vt=oo;var io=e=>{let{componentCls:t,inlineDotSize:l,paddingXS:n,lineWidth:s,antCls:a,calc:r}=e,p=r(n).add(s).equal(),m=`${t}-item`,[o,c]=h(a,"cmp-steps");return{[`${t}-inline`]:{[o("items-offset")]:"0",[o("item-wrapper-padding-top")]:p,display:"inline-flex","&:before":{content:'""',flex:c("items-offset")},[m]:{[o("title-vertical-row-gap")]:n,[o("icon-size")]:l,[o("icon-size-active")]:l,[o("title-font-size")]:e.fontSizeSM,[o("title-line-height")]:e.lineHeightSM,[o("item-title-color")]:e.colorTextSecondary,[o("subtitle-font-size")]:e.fontSizeSM,[o("subtitle-line-height")]:e.lineHeightSM,[o("item-subtitle-color")]:e.colorTextQuaternary,[o("rail-size")]:e.lineWidth,[o("title-horizontal-rail-gap")]:"0px",flex:1,"&-wrapper":{paddingInline:e.paddingXXS,marginInline:e.calc(e.marginXXS).div(2).equal(),borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[`${m}-icon-dot`]:{"&:after":{display:"none"}}},"&-title":{fontWeight:"normal",whiteSpace:"nowrap"},"&-content":{display:"none"}}}}},xt=io;function no(e){return(e||"--ant-not-exist").replace(/var\((.*)\)/,"$1")}var ne=(e,t,l)=>{let{calc:n,componentCls:s,descriptionMaxWidth:a,antCls:r}=e,p=`${s}-item`,[,m]=h(r,"cmp-steps");return{[`@container style(${no(a)})`]:[{[`${p}-icon`]:{marginInlineStart:n(a).sub(m("icon-size")).div(2).equal()},[`${p}-rail`]:{width:"auto",insetInlineStart:n(a).add(m("icon-size")).div(2).add(t).equal(),insetInlineEnd:n(a).sub(m("icon-size")).div(2).sub(t).mul(-1).equal()}},l]}};var ro=e=>{let{componentCls:t,descriptionMaxWidth:l,marginXS:n,fontHeightLG:s,margin:a,paddingSM:r,marginXXS:p,antCls:m,calc:o}=e,c=`${t}-item`,[g,u]=h(m,"cmp-steps");return{[t]:{[g("icon-size-max")]:`max(${u("icon-size")}, ${u("icon-size-active",u("icon-size"))})`,[`${c}-icon`]:{marginBlockStart:`calc((${u("heading-height")} - ${u("icon-size")}) / 2)`}},[`${t}-title-horizontal`]:{[g("title-horizontal-item-margin")]:a,[g("title-horizontal-rail-margin")]:a,[g("title-horizontal-title-height")]:s,[g("heading-height")]:`max(${u("icon-size")}, ${u("title-horizontal-title-height")})`,[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${c}:not(:first-child)`]:{marginInlineStart:u("title-horizontal-item-margin")},[`${c}:last-child`]:{flex:"0 1 auto"},[`${c}-wrapper`]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[`${c}-wrapper`]:{columnGap:e.margin},[`${c}-empty-header`]:{[`${c}-header`]:{minHeight:"auto"},[`${c}-content`]:{marginTop:o(u("heading-height")).sub(e.fontHeight).div(2).equal()}}},[`${c}-section`]:{flex:1,minWidth:0},[`${c}-header`]:{minHeight:u("heading-height")},[`${c}-title`]:{flex:"0 1 auto"},[`${c}-content`]:{maxWidth:l},[`${c}-subtitle`]:{flex:"0 9999 auto"},[`&${t}-horizontal ${c}-rail`]:{[g("item-wrapper-padding-top")]:"0px",flex:"1 1 0%",marginInlineStart:u("title-horizontal-rail-margin")}},[`${t}-title-vertical`]:{[g("title-vertical-row-gap")]:r,[g("title-horizontal-rail-gap")]:p,[g("heading-height")]:u("icon-size-max"),[`> ${c}`]:{flex:"1 1 0%",[`${c}-wrapper`]:{flexDirection:"column",rowGap:u("title-vertical-row-gap"),alignItems:"center"},[`${c}-section`]:{alignSelf:"stretch"},[`${c}-header`]:{flexDirection:"column",alignItems:"center"},[`${c}-title, ${c}-subtitle, ${c}-content`]:{textAlign:"center",maxWidth:"100%"},[`${c}-subtitle`]:{margin:0},[`${c}-rail`]:{position:"absolute",top:0,width:`calc(100% - ${u("icon-size")} - ${u("title-horizontal-rail-gap")} * 2)`,insetInlineStart:`calc(50% + ${u("icon-size")} / 2 + ${u("title-horizontal-rail-gap")})`}},...ne(e,n,{[`${c}:last-child`]:{flex:"none"},[`${c}-icon`]:{alignSelf:"flex-start"},[`${c}-section`]:{width:l}})}}},St=ro;var lo=e=>{let{componentCls:t}=e,l=`${t}-item`;return{[`${t}-max-count`]:{[`${l}-ellipsis`]:{[`${l}-title, ${l}-subtitle, ${l}-content`]:{color:e.colorTextDescription}}}}},Ct=lo;var ao=e=>{let{componentCls:t,fontSizeIcon:l,navContentMaxWidth:n,navArrowColor:s,colorPrimary:a,motionDurationSlow:r,antCls:p,calc:m}=e,o=`${t}-item`,c=a,[g,u]=h(p,"cmp-steps");return{[`${t}${t}-navigation`]:{[o.repeat(4)]:{display:"flex",justifyContent:"center",position:"relative",flex:1,marginInlineStart:0,[`${o}-wrapper`]:{paddingBlock:e.paddingSM},[`${o}-section`]:{maxWidth:n},[`${o}-rail`]:{display:"none"},"&:before":{position:"absolute",display:"block",backgroundColor:c,transition:`all ${r}`,transitionTimingFunction:"ease-out",content:'""'},"&:not(:last-child):after":{position:"absolute",display:"block",borderTop:`${W(e.lineWidth)} ${e.lineType} ${s}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${W(e.lineWidth)} ${e.lineType} ${s}`,content:'""'},[`&${o}-active`]:{[g("item-content-active-color")]:u("item-content-color"),[g("item-icon-active-bg-color")]:u("item-icon-bg-color"),[g("item-icon-active-border-color")]:u("item-icon-border-color"),[g("item-icon-active-text-color")]:u("item-icon-text-color")}},[`&${t}-horizontal`]:{[o]:{"&:before":{bottom:0,insetInlineStart:"50%",width:0,height:e.lineWidthBold},[`&${o}-active:before`]:{insetInlineStart:0,width:"100%"},"&:not(:last-child):after":{top:"50%",insetInlineStart:m(l).div(2).mul(-1).add("100%").equal(),width:l,height:l,transform:"translateY(-50%) rotate(45deg)"}}},[`&${t}-vertical`]:{[o.repeat(4)]:{[`${o}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:"50%",width:e.lineWidthBold,height:0},[`&${o}-active::before`]:{top:0,height:"100%"},"&:not(:last-child):after":{left:{_skip_check_:!0,value:"50%"},top:"100%",width:m(l).div(3).mul(2).equal(),height:m(l).div(3).mul(2).equal(),transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}}}}}},yt=ao;var co=e=>{let{componentCls:t,lineWidthBold:l,borderRadius:n,borderRadiusSM:s,motionDurationMid:a,paddingXS:r,lineType:p,paddingSM:m,antCls:o,calc:c}=e,g=`${t}-item`,[u,d]=h(o,"cmp-steps"),S=`${W(l)} ${p} ${d("panel-border-color")}`;return{[`${t}${t}-panel`]:[{[`${g}-rail`]:{display:"none"},[`&${t}-horizontal`]:{alignItems:"stretch",[g]:{flex:1,margin:0}}},{"&":{[u("panel-padding")]:m,[u("item-border-radius")]:n,[g]:{[u("panel-bg-color")]:d("item-icon-bg-color"),[u("panel-border-color")]:d("item-icon-border-color"),[u("panel-active-bg-color")]:d("item-icon-active-bg-color"),[u("panel-active-border-color")]:d("item-icon-active-border-color"),[u("panel-title-height")]:`calc(${d("title-font-size")} * ${d("title-line-height")})`,[u("item-base-height")]:c(d("panel-padding")).mul(2).add(d("icon-size")).add(d("panel-title-height")).equal(),[u("item-base-width")]:`calc(${d("item-base-height")} * 0.7071)`,transition:`background-color ${a}`}},[`${g}-icon`]:{display:"none"},[`${g}-header`]:{minHeight:"auto"},[`${t}-panel-arrow`]:{position:"absolute",top:c(l).mul(-1).equal(),insetInlineStart:"100%",zIndex:1,height:c(l).mul(2).add("100%").equal(),width:d("item-base-width"),overflow:"visible",strokeLinecap:"round",path:{fill:d("panel-bg-color"),stroke:d("panel-border-color"),strokeWidth:l,vectorEffect:"non-scaling-stroke",transition:`fill ${a}`}},[`${g}:last-child ${t}-panel-arrow`]:{display:"none"},[g]:{padding:d("panel-padding"),background:d("panel-bg-color"),position:"relative",borderBlock:S,"&:not(:first-child)":{paddingInlineStart:`calc(${d("panel-padding")} + ${d("item-base-width")})`},"&:first-child":{borderInlineStart:S,borderStartStartRadius:d("item-border-radius"),borderEndStartRadius:d("item-border-radius")},"&:last-child":{borderInlineEnd:S,borderStartEndRadius:d("item-border-radius"),borderEndEndRadius:d("item-border-radius")},"&-active":{background:d("panel-active-bg-color"),borderColor:d("panel-active-border-color"),[`${t}-panel-arrow`]:{path:{fill:d("panel-active-bg-color"),stroke:d("panel-active-border-color")}},[`${g}-title, ${g}-subtitle, ${g}-content`]:{color:d("item-icon-active-text-color")}}}},{[`&${t}-small`]:{[u("panel-padding")]:r,[u("item-border-radius")]:s}},{[`&${t}-filled`]:{[g]:{"&:not(:first-child)":{clipPath:`polygon(${[`${W(l)} 0`,`calc(100% + ${d("item-base-width")}) 0`,`calc(100% + ${d("item-base-width")}) 100%`,`${W(l)} 100%`,`calc(${d("item-base-width")} + ${W(l)}) 50%`].join(",")})`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:c(l).div(2).mul(-1).equal(),height:c(l).add("100%").equal()}}}]}},zt=co;var so=e=>{let{calc:t,antCls:l,componentCls:n,lineWidthBold:s,motionDurationSlow:a}=e,r=`${n}-item`,[p,m]=h(l,"cmp-steps"),o=t(s).add(s).equal();return{[`${n}${n}-with-progress`]:{[p("item-wrapper-padding-top")]:o,[`${r}${r}-process`]:{[`${r}-icon`]:{position:"relative"}},[`${r}-progress-icon`]:{"&-svg":{[p("svg-size")]:t(o).mul(2).add(m("icon-size")).equal(),[p("icon-size-ptg-unitless")]:`calc(100 / tan(atan2(${m("svg-size")}, 1px)))`,fontSize:m("svg-size"),lineHeight:m("icon-size-ptg-unitless"),position:"absolute",inset:t(o).mul(-1).equal(),width:"auto",height:"auto"},"&-circle":{lineHeight:m("icon-size-ptg-unitless"),strokeWidth:t(m("icon-size-ptg-unitless")).mul(s).equal(),[p("progress-radius")]:t(m("svg-size")).sub(s).mul(m("icon-size-ptg-unitless")).div(2).equal(),r:m("progress-radius"),fill:"none",cx:50,cy:50,transition:`all ${a} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}}}},wt=so;var mo=e=>{let{componentCls:t,iconSize:l,dotSize:n,dotCurrentSize:s,marginXXS:a,lineWidthBold:r,fontSizeSM:p,antCls:m}=e,o=`${t}-item`,[c,g]=h(m,"cmp-steps");return{[`${t}${t}-dot`]:{[c("icon-size-active")]:s,[c("icon-size")]:n,[c("dot-icon-size")]:n,[c("dot-icon-border-width")]:r,[c("rail-size")]:r,[c("icon-border-width")]:r,[`${o}-custom ${o}-icon`]:{fontSize:p},[`${o}-icon`]:{position:"relative","&:after":{content:'""',width:l,height:l,display:"block",position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"}},[`${o}-active ${o}-icon`]:{[c("icon-size")]:g("icon-size-active")},[`&${t}-horizontal`]:{[`&, &${t}-small`]:ne(e,a)}}}},Rt=mo;var po=e=>{let{componentCls:t,lineWidthBold:l,antCls:n}=e,s=`${t}-item`,[,a]=h(n,"cmp-steps");return{[`${t}${t}-rtl`]:{direction:"rtl",[`&${t}-navigation${t}-horizontal`]:{[`${s}:after`]:{transform:"translateY(-50%) rotate(-45deg)"}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:"scaleX(-1)"},[`&${t}-filled`]:{[s]:{"&:not(:first-child)":{clipPath:`polygon(${[`calc(0px - ${a("item-base-width")}) 0px`,`calc(100% - ${W(l)}) 0px`,`calc(100% - ${a("item-base-width")} - ${W(l)}) 50%`,`calc(100% - ${W(l)}) 100%`,`calc(0px - ${a("item-base-width")}) 100%`].join(",")})`}}}}}}},It=po;var go=e=>{let{componentCls:t,iconSizeSM:l,fontSize:n,lineHeight:s,marginXS:a,fontHeight:r,marginSM:p,paddingXS:m,antCls:o}=e,[c]=h(o,"cmp-steps");return{[`${t}${t}-small`]:{[c("icon-size")]:l,[c("title-horizontal-item-margin")]:p,[c("title-vertical-row-gap")]:m,[c("title-font-size")]:n,[c("title-line-height")]:s,[c("title-horizontal-rail-margin")]:a,[c("title-horizontal-title-height")]:r,[`&${t}-horizontal${t}-title-vertical`]:ne(e,a)}}},Nt=go;var ve="wait",xe="process",Se="finish",Ce="error",uo=e=>{let{componentCls:t,colorTextDisabled:l,colorTextLightSolid:n,colorPrimary:s,colorTextLabel:a,colorError:r,colorErrorHover:p,colorErrorBgFilledHover:m,colorFillTertiary:o,colorErrorBg:c,colorPrimaryBgHover:g,colorPrimaryBg:u,colorText:d,colorTextDescription:S,colorBgContainer:N,colorPrimaryHover:v,lineType:b,antCls:C}=e,f=`${t}-item`,[i,$]=h(C,"cmp-steps");return{[t]:[{[f]:{[i("item-solid-line-color")]:"#000",[i("item-title-color")]:"#000",[i("item-content-color")]:"#000",[i("item-subtitle-color")]:$("item-content-color"),[i("item-icon-custom-color")]:"#000",[i("item-icon-bg-color")]:"#000",[i("item-icon-border-color")]:"#000",[i("item-icon-text-color")]:"#fff",[i("item-icon-dot-color")]:"#000",[i("item-icon-dot-bg-color")]:$("item-icon-dot-color"),[i("item-icon-dot-border-color")]:$("item-icon-dot-color"),[i("item-text-hover-color")]:"#000",[i("item-icon-bg-hover-color")]:$("item-icon-bg-color"),[i("item-icon-border-hover-color")]:$("item-icon-border-color"),[i("item-icon-text-hover-color")]:$("item-icon-text-color"),[i("item-content-active-color")]:$("item-content-color"),[i("item-icon-active-bg-color")]:$("item-icon-bg-color"),[i("item-icon-active-border-color")]:$("item-icon-border-color"),[i("item-icon-active-text-color")]:$("item-icon-text-color"),[i("item-process-rail-line-style")]:b},[`${f}-rail`]:{borderColor:$("item-solid-line-color")},[`${f}-custom ${f}-icon`]:{color:$("item-icon-custom-color")},[`${f}-title`]:{color:$("item-title-color")},[`${f}-subtitle`]:{color:$("item-subtitle-color")},[`${f}-content`]:{color:$("item-content-color")},[`${f}-active ${f}-icon`]:{},[`${f}-active ${f}-content`]:{color:$("item-content-active-color")},[`${f}[role='button']:not(${f}-active):hover`]:{[`${f}-title, ${f}-content`]:{color:$("item-text-hover-color")}},[`&:not(${t}-dot)`]:{[`${f}:not(${f}-custom)`]:{[`${f}-icon`]:{background:$("item-icon-bg-color"),borderColor:$("item-icon-border-color"),color:$("item-icon-text-color")},[`&[role='button']:not(${f}-active):hover`]:{[`${f}-icon`]:{background:$("item-icon-bg-hover-color"),borderColor:$("item-icon-border-hover-color"),color:$("item-icon-text-hover-color")}},[`&${f}-active`]:{[`${f}-icon`]:{background:$("item-icon-active-bg-color"),borderColor:$("item-icon-active-border-color"),color:$("item-icon-active-text-color")}}}},[`&${t}-dot`]:{[`${f}-icon`]:{background:$("item-icon-dot-bg-color"),borderColor:$("item-icon-dot-border-color"),color:$("item-icon-dot-color"),[`&${f}-icon-dot-custom`]:{background:"transparent",border:"none"}}}},{[`${f}-${ve}`]:{[i("item-icon-custom-color")]:l,[i("item-title-color")]:S,[i("item-content-color")]:S,[i("item-content-active-color")]:d,[i("item-text-hover-color")]:v},[`${f}-rail-${ve}`]:{[i("item-solid-line-color")]:l},[`${f}-${xe}`]:{[i("item-icon-custom-color")]:s,[i("item-title-color")]:d,[i("item-content-color")]:S,[i("item-content-active-color")]:d,[i("item-text-hover-color")]:v},[`${f}-rail-${xe}`]:{[i("item-solid-line-color")]:s,[i("rail-line-style")]:$("item-process-rail-line-style")},[`${f}-${Se}`]:{[i("item-icon-custom-color")]:s,[i("item-title-color")]:d,[i("item-content-color")]:S,[i("item-content-active-color")]:d,[i("item-text-hover-color")]:v},[`${f}-rail-${Se}`]:{[i("item-solid-line-color")]:s},[`${f}-${Ce}`]:{[i("item-icon-custom-color")]:r,[i("item-title-color")]:r,[i("item-content-color")]:r,[i("item-content-active-color")]:r,[i("item-text-hover-color")]:p},[`${f}-rail-${Ce}`]:{[i("item-solid-line-color")]:r}},{[`&${t}-filled`]:{[f]:{[i("item-icon-dot-border-color")]:"transparent"},[`${f}-${ve}`]:{[i("item-icon-bg-color")]:o,[i("item-icon-border-color")]:"transparent",[i("item-icon-text-color")]:a,[i("item-icon-dot-bg-color")]:l,[i("item-icon-bg-hover-color")]:g,[i("item-icon-border-hover-color")]:"transparent",[i("item-icon-text-hover-color")]:s,[i("item-icon-active-bg-color")]:s,[i("item-icon-active-border-color")]:"transparent",[i("item-icon-active-text-color")]:n},[`${f}-${xe}, ${f}-${Se}`]:{[i("item-icon-bg-color")]:u,[i("item-icon-border-color")]:"transparent",[i("item-icon-text-color")]:s,[i("item-icon-dot-bg-color")]:s,[i("item-icon-bg-hover-color")]:g,[i("item-icon-border-hover-color")]:"transparent",[i("item-icon-text-hover-color")]:s,[i("item-icon-active-bg-color")]:s,[i("item-icon-active-border-color")]:"transparent",[i("item-icon-active-text-color")]:n},[`${f}-${Ce}`]:{[i("item-icon-bg-color")]:c,[i("item-icon-border-color")]:"transparent",[i("item-icon-text-color")]:r,[i("item-icon-dot-bg-color")]:r,[i("item-icon-bg-hover-color")]:m,[i("item-icon-border-hover-color")]:"transparent",[i("item-icon-text-hover-color")]:r,[i("item-icon-active-bg-color")]:r,[i("item-icon-active-border-color")]:"transparent",[i("item-icon-active-text-color")]:n}}},{[`&${t}-outlined`]:{[f]:{[i("item-icon-dot-bg-color")]:"transparent"},[`${f}-${ve}`]:{[i("item-icon-bg-color")]:N,[i("item-icon-border-color")]:l,[i("item-icon-text-color")]:l,[i("item-icon-dot-color")]:l,[i("item-icon-bg-hover-color")]:"transparent",[i("item-icon-border-hover-color")]:v,[i("item-icon-text-hover-color")]:v,[i("item-icon-active-bg-color")]:o},[`${f}-${xe}, ${f}-${Se}`]:{[i("item-icon-bg-color")]:N,[i("item-icon-border-color")]:s,[i("item-icon-text-color")]:s,[i("item-icon-dot-color")]:s,[i("item-icon-bg-hover-color")]:"transparent",[i("item-icon-border-hover-color")]:v,[i("item-icon-text-hover-color")]:v,[i("item-icon-active-bg-color")]:u},[`${f}-${Ce}`]:{[i("item-icon-bg-color")]:N,[i("item-icon-border-color")]:r,[i("item-icon-text-color")]:r,[i("item-icon-dot-color")]:r,[i("item-icon-bg-hover-color")]:"transparent",[i("item-icon-border-hover-color")]:p,[i("item-icon-text-hover-color")]:p,[i("item-icon-active-bg-color")]:c}}}]}},Et=uo;var fo=e=>{let{componentCls:t,marginXXS:l,paddingSM:n,controlHeight:s,antCls:a,calc:r}=e,p=`${t}-item`,[m,o]=h(a,"cmp-steps");return{[`${t}-vertical`]:{[m("vertical-rail-margin")]:r(l).mul(1.5).equal(),flexDirection:"column",alignItems:"stretch",[`> ${p}`]:{minHeight:r(s).mul(1.5).equal(),paddingBottom:n,"&:last-child":{paddingBottom:0},[`${p}-icon`]:{marginInlineStart:`calc((${o("icon-size-max")} - ${o("icon-size")}) / 2)`},[`${p}-rail`]:{[m("rail-offset")]:r(o("heading-height")).sub(o("icon-size")).div(2).equal(),borderInlineStartWidth:o("rail-size"),position:"absolute",top:r(o("icon-size")).add(o("item-wrapper-padding-top")).add(o("rail-offset")).add(o("vertical-rail-margin")).equal(),insetInlineStart:r(o("icon-size-max")).div(2).equal(),bottom:r(o("vertical-rail-margin")).sub(o("rail-offset")).equal(),marginInlineStart:`calc(${o("rail-size")} / -2)`}}}}},Tt=fo;var $o=e=>{let{componentCls:t,antCls:l}=e,n=`${t}-item`,[s,a]=h(l,"cmp-steps");return{[t]:{[s("title-font-size")]:e.fontSizeLG,[s("title-line-height")]:e.lineHeightLG,[s("subtitle-font-size")]:e.fontSize,[s("subtitle-line-height")]:e.lineHeight,[s("item-wrapper-padding-top")]:"0px",[s("rail-size")]:e.lineWidth,[s("rail-line-style")]:e.lineType,...ue(e),display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[n]:{flex:"none",position:"relative"},[`${n}-wrapper`]:{display:"flex",flexWrap:"nowrap",paddingTop:a("item-wrapper-padding-top")},[`${n}-header`]:{display:"flex",flexWrap:"nowrap",alignItems:"center"},[`${n}-title`]:{color:e.colorText,fontSize:a("title-font-size"),lineHeight:a("title-line-height"),wordBreak:"break-word"},[`${n}-subtitle`]:{color:e.colorTextDescription,fontWeight:"normal",fontSize:a("subtitle-font-size"),lineHeight:a("subtitle-line-height"),marginInlineStart:e.marginXS,wordBreak:"break-word"},[`${n}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word"},[`${n}-rail`]:{borderStyle:a("rail-line-style"),borderWidth:0},[`${n}-title, ${n}-subtitle, ${n}-content, ${n}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${n}-title, ${n}-subtitle, ${n}-content`]:tt},[`${n}[role='button']:focus-visible`]:ot(e),[`${n}[role='button']:not(${n}-active):hover`]:{cursor:"pointer"}}}},ho=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:void 0,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),Pt=fe("Steps",e=>{let t=ge(e,{inlineDotSize:6});return[$o(t),vt(t),Tt(t),bt(t),St(t),Nt(t),Rt(t),Et(t),yt(t),zt(t),xt(t),Ct(t),wt(t),It(t)]},ho);var ye=A(O());function bo(e,t){return{item:{...e,key:e.key??t},originIndex:t}}function vo(e,t,l,n,s){let a=e[l].key??l,r=e[n].key??n,m=e.slice(l+1,n).some(o=>o.status==="error")?"error":n-1<t?"finish":"wait";return{item:{key:`ellipsis-${a}-${r}`,title:"",icon:ye.createElement(ct),status:m,disabled:!0,className:`${s}-item-ellipsis`},originIndex:-1}}function xo(e,t,l){let n=Math.min(Math.max(t,0),e-1),s=Math.min(l,e),a=new Set([0,n,e-1]);for(let r=1;a.size<s&&r<e;r+=1){let p=[n-r,n+r,r,e-1-r];for(let m of p){if(a.size>=s)break;m>=0&&m<e&&a.add(m)}}return Array.from(a).sort((r,p)=>r-p).flatMap((r,p,m)=>p>0&&r-m[p-1]>1?[null,r]:[r])}function _e(e,t,l,n,s){let a=n!==void 0&&n>=3&&e.length>n,r=t-l,p=ye.useMemo(()=>{if(!a)return e.map((c,g)=>({item:c,originIndex:g}));let o=xo(e.length,r,n);return o.map((c,g)=>c===null?vo(e,r,o[g-1],o[g+1],s):bo(e[c],c))},[a,r,e,n,s]),m=p.findIndex(o=>o.originIndex===r);return{canApplyMaxCount:a,displaySteps:p,mappedDisplayCurrent:m>=0?m:r,displayItems:p.map(o=>o.item)}}var So={itemIcon:nt},Co=e=>{let{size:t,className:l,rootClassName:n,style:s,variant:a="filled",type:r,classNames:p,styles:m,direction:o,orientation:c,responsive:g=!0,progressDot:u,labelPlacement:d,titlePlacement:S,ellipsis:N,maxCount:v,offset:b=0,items:C,percent:f,current:i=0,initial:$=0,onChange:H,iconRender:x,..._}=e,q=R.useContext(be),I=de("steps"),{getPrefixCls:z,direction:D,className:P,style:E}=I,B,T,K={};q?K={root:q.rootComponent,item:q.itemComponent}:{classNames:B,styles:T}=I;let U=z(),w=z("steps",e.prefixCls),J=`${w}-item-icon`,[Z,Q]=Pt(w),[G]=h(U,"cmp-steps"),L=it(t),qe=R.useMemo(()=>(C||[]).filter(Boolean),[C]),{xs:ze}=lt(g),V=R.useMemo(()=>r&&r!=="default"?r:u?"dot":r,[u,r]),we=V==="inline",me=V==="dot"||V==="inline",Xe=R.useMemo(()=>V==="dot"&&Ee(u)?u:void 0,[V,u]),le=R.useMemo(()=>{let X=c||o;return V==="panel"?"horizontal":g&&ze||X==="vertical"?"vertical":"horizontal"},[c,o,V,g,ze]),Le=R.useMemo(()=>me||le==="vertical"?le==="vertical"?"horizontal":"vertical":r==="navigation"?"horizontal":S||d||"horizontal",[me,d,le,S,r]),pe=we?void 0:f,{canApplyMaxCount:At,displaySteps:Fe,mappedDisplayCurrent:Ot,displayItems:_t}=_e(qe,i,$,v,w),qt={...e,variant:a,size:L,type:V,orientation:le,titlePlacement:Le,current:i,initial:$,percent:pe,responsive:g,offset:b,ellipsis:N,maxCount:v},Xt=oe(E),Lt=oe(s),[Ft,jt]=$e([So,B,p],[T,Xt,m,Lt],{props:qt}),Ut=(X,F)=>{let{item:te,index:je,active:Jt,components:{Icon:Ue}}=F,Re=Fe[je]?.originIndex,Ie=Re!==void 0&&Re>=0?$+Re:je,{status:Ge,icon:Ye}=te,ae=null;if(me||Ye)ae=Ye;else switch(Ge){case"finish":ae=R.createElement(st,{className:`${J}-finish`});break;case"error":ae=R.createElement(ke,{className:`${J}-error`});break;default:{let Ne=R.createElement("span",{className:`${J}-number`},Ie+1);Ge==="process"&&pe!==void 0&&(Ne=R.createElement(ht,{prefixCls:w,rootPrefixCls:U,percent:pe},Ne)),ae=Ne}}let ce=R.createElement(Ue,null,ae);return x?ce=x(ce,{index:Ie,active:Jt,item:te,components:{Icon:Ue}}):Ee(Xe)&&(ce=Xe(ce,{index:Ie,...te})),ce},Gt=(X,F)=>{let te=X;return we&&F.item.content&&(te=R.createElement(at,{destroyOnHidden:!0,title:F.item.content},X)),R.createElement(rt,{component:"Steps",disabled:F.item.disabled||!H,colorSource:a==="filled"?"color":null},te)},Yt=V==="panel"?X=>R.createElement(R.Fragment,null,X,R.createElement($t,{prefixCls:w})):void 0,Kt={[G("items-offset")]:`${b}`},Qt=y(P,`${w}-${a}`,{[`${w}-${V}`]:V!=="dot"?V:!1,[`${w}-rtl`]:D==="rtl",[`${w}-dot`]:me,[`${w}-ellipsis`]:N,[`${w}-max-count`]:At,[`${w}-with-progress`]:pe!==void 0,[`${w}-small`]:L==="small"},l,n,Z,Q);return R.createElement(ut,{..._,prefixCls:w,className:Qt,style:Kt,classNames:Ft,styles:jt,orientation:le,titlePlacement:Le,components:K,initial:0,current:Ot,items:_t,onChange:H?X=>{let F=Fe[X];H&&F&&F.originIndex>=0&&H($+F.originIndex)}:void 0,iconRender:Ut,itemRender:Gt,itemWrapperRender:Yt})},Wt=Co;var yo=e=>{let{componentCls:t,fontHeight:l,antCls:n,paddingXS:s}=e,[a,r]=h(n,"cmp-steps"),[p,m]=h(n,"timeline"),o=`${t}-item`;return{[`${t}-horizontal`]:{[a("title-vertical-row-gap")]:s,[p("content-height")]:W(l),alignItems:"stretch",[`&${t}-layout-alternate`]:{[o]:{[`${o}-wrapper`]:{[p("alternate-content-offset")]:`calc(${m("content-height")} + ${r("title-vertical-row-gap")} * 2 + ${r("icon-size-max")})`,height:`calc(${m("content-height")} * 2 + ${r("title-vertical-row-gap")} * 2 + ${r("icon-size-max")})`},[`${o}-icon`]:{position:"absolute"},[`${o}-icon, ${o}-rail`]:{position:"absolute",top:"50%",transform:"translateY(-50%)",margin:0},[`${o}-title, ${o}-subtitle, ${o}-content`]:{whiteSpace:"nowrap",maxWidth:"unset"},[`${o}-title`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},[`${o}-content`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-placement-start":{[`${o}-title`]:{bottom:m("alternate-content-offset")},[`${o}-content`]:{top:m("alternate-content-offset")}},"&-placement-end":{[`${o}-title`]:{top:m("alternate-content-offset")},[`${o}-content`]:{bottom:m("alternate-content-offset")}}}},[`&:not(${t}-layout-alternate)`]:{[`${o}-placement-end`]:{display:"flex",alignItems:"flex-end",[`${o}-wrapper`]:{flex:"auto",flexDirection:"column-reverse"},[`${o}-rail`]:{top:"auto",bottom:r("horizontal-rail-margin"),transform:"translateY(50%)"}}}}}},Mt=yo;var zo=e=>{let{componentCls:t,tailColor:l,fontHeight:n,dotSize:s,dotBg:a,dotBorderWidth:r,fontSize:p,lineHeight:m,colorText:o,tailWidth:c,colorPrimary:g,colorError:u,colorSuccess:d,colorTextDisabled:S,antCls:N}=e,v=`${t}-item`,[b,C]=h(N,"cmp-steps");return{[t]:[{...ue(e),[v]:{[b("title-horizontal-title-height")]:n,[b("vertical-rail-margin")]:"0px",[b("title-horizontal-rail-gap")]:"0px",[b("icon-dot-size-origin")]:C("icon-size-active"),[b("icon-dot-size-custom")]:s,[b("item-icon-dot-bg-color-origin")]:C("item-icon-dot-bg-color"),[b("item-icon-dot-bg-color-custom")]:a,[b("icon-size")]:C("icon-dot-size-custom",C("icon-dot-size-origin")),[`${v}-icon`]:{[b("dot-icon-border-width")]:r,[b("dot-icon-size")]:C("icon-size"),[b("item-icon-dot-bg-color")]:C("item-icon-dot-bg-color-custom",C("item-icon-dot-bg-color-origin"))},[`${v}-title`]:{fontSize:p,lineHeight:m},[`${v}-content`]:{color:o},[`${v}-rail`]:{[b("item-solid-line-color")]:l,[b("rail-size")]:c}}},{[v]:{[b("item-process-rail-line-style")]:"dotted"},[`${v}${v}${v}-color`]:{"&-blue":{[b("item-icon-dot-color")]:g},"&-red":{[b("item-icon-dot-color")]:u},"&-green":{[b("item-icon-dot-color")]:d},"&-gray":{[b("item-icon-dot-color")]:S}}}]}},wo=e=>{let{calc:t,componentCls:l,itemPaddingBottom:n,margin:s,antCls:a}=e,r=`${l}-item`,[,p]=h(a,"cmp-steps"),[m,o]=h(a,"timeline");return{[`${l}:not(${l}-horizontal)`]:{[m("head-span")]:"12",[m("head-span-ptg")]:`calc(${o("head-span")} / 24 * 100%)`,[`&${l}-layout-alternate`]:{[r]:{[m("alternate-gap")]:t(s).mul(2).add(p("dot-icon-size")).equal(),minHeight:"auto",paddingBottom:n,[`${r}-icon, ${r}-rail`]:{position:"absolute",insetInlineStart:o("head-span-ptg")},[`${r}-icon`]:{marginInlineStart:`calc(${p("icon-size")} / -2)`},[`${r}-section`]:{display:"flex",flexWrap:"nowrap",gap:o("alternate-gap")},[`${r}-header`]:{textAlign:"end",flexDirection:"column",alignItems:"stretch",flex:`1 1 calc(${o("head-span-ptg")} - ${o("alternate-gap")} / 2)`},[`${r}-content`]:{textAlign:"start",flex:`1 1 calc(100% - ${o("head-span-ptg")} - ${o("alternate-gap")} / 2)`},"&-placement-end":{[`${r}-header`]:{textAlign:"start",order:1},[`${r}-content`]:{textAlign:"end"},[`${r}-icon, ${r}-rail`]:{insetInlineStart:`calc(100% - ${o("head-span-ptg")})`}}}},[`&:not(${l}-layout-alternate)`]:{[`${r}-placement-end`]:{textAlign:"end",[`${r}-icon`]:{order:1},[`${r}-rail`]:{insetInlineStart:"auto",insetInlineEnd:`calc(${p("icon-size")} / 2)`,marginInlineEnd:`calc(${p("rail-size")} / -2)`}}}}}},Ro=e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.lineWidthBold,dotBg:void 0,dotSize:void 0,itemPaddingBottom:e.padding*1.25}),Ht=fe("Timeline",e=>{let t=ge(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return[zo(t),wo(t),Mt(t)]},Ro);var re=A(O());var Io=(e,t,l,n,s,a,r)=>{let p=`${t}-item`,[m]=h(e,"cmp-steps"),o=re.useMemo(()=>Array.isArray(n)?n:Je(s).map(c=>({...c.props})),[n,s]);return re.useMemo(()=>{let c=o.map((g,u)=>{let{label:d,children:S,title:N,content:v,color:b,className:C,style:f,icon:i,dot:$,placement:H,position:x,loading:_,...q}=g,I=f,z=C;b&&(["blue","red","green","gray"].includes(b)?z=y(C,`${p}-color-${b}`):I={[m("item-icon-dot-color")]:b,...f});let D=H??x??(l==="alternate"?u%2===0?"start":"end":l);z=y(z,`${p}-placement-${D}`);let P=i??$;return!P&&_&&(P=re.createElement(Te,null)),{...q,title:N??d,content:v??S,style:I,className:z,icon:P,status:_?"process":"finish"}});return a&&c.push({icon:r??re.createElement(Te,null),content:a,status:"process"}),c},[o,a,l,p,m,r])},Dt=Io;var No={rootComponent:"ol",itemComponent:"li"},Bt=e=>{let{getPrefixCls:t,direction:l,className:n,style:s,classNames:a,styles:r}=de("timeline"),{prefixCls:p,className:m,style:o,classNames:c,styles:g,variant:u="outlined",mode:d,orientation:S="vertical",titleSpan:N,items:v,children:b,reverse:C,pending:f,pendingDot:i,...$}=e,H=t(),x=t("timeline",p),[_,q]=Ht(x),[I]=h(H,"timeline"),z=j.useMemo(()=>({item:`${x}-item`,itemTitle:`${x}-item-title`,itemIcon:`${x}-item-icon`,itemContent:`${x}-item-content`,itemRail:`${x}-item-rail`,itemWrapper:`${x}-item-wrapper`,itemSection:`${x}-item-section`,itemHeader:`${x}-item-header`}),[x]),D=j.useMemo(()=>d==="left"?"start":d==="right"?"end":["alternate","start","end"].includes(d)?d:"start",[d]),P=Dt(H,x,D,v,b,f,i),E=j.useMemo(()=>C?et(P).reverse():P,[C,P]),B={...e,variant:u,mode:D,orientation:S,items:E},T=oe(s),K=oe(o),[U,w]=$e([z,a,c],[r,T,g,K],{props:B}),J=j.useMemo(()=>({railFollowPrevStatus:C}),[C]),Z=j.useMemo(()=>D==="alternate"||S==="vertical"&&E.some(G=>G.title),[E,D,S]),Q={};return Ke(N)&&D!=="alternate"&&(Ze(N)?Q[I("head-span")]=N:Q[I("head-span-ptg")]=N),j.createElement(be.Provider,{value:No},j.createElement(se.Provider,{value:J},j.createElement(Wt,{...$,className:y(x,n,m,_,q,{[`${x}-${S}`]:S==="horizontal",[`${x}-layout-alternate`]:Z,[`${x}-rtl`]:l==="rtl"}),style:Q,classNames:U,styles:w,variant:u,orientation:S,type:"dot",items:E,current:E.length-1})))};Bt.Item=()=>{};var Vt=Bt;var Yn=Vt;export{Yn as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{shared55_F as G,shared55_I as K,shared55_j as V,shared55_k as U,shared55_l as w}from"./runtime.js";import{shared37_a as P}from"./runtime.js";import{shared17_x as M}from"./runtime.js";import{shared21_c as C}from"./runtime.js";import{shared38_b as T,shared38_c as R,shared38_g as D}from"./runtime.js";import{shared19_j as x,shared19_k as $}from"./runtime.js";import{shared53_b as W}from"./runtime.js";import{shared7_$d as c,shared7_Ed as A,shared7_Sc as S,shared7_zd as O}from"./runtime.js";import{shared9_c as N}from"./runtime.js";var l=N(S(),1),f="team:",y="employee:",j="dispatch:";function Y(e,s,o,r={}){return[...e,...(o??[]).filter(n=>!n.archivedAt).map(n=>({value:`${y}${n.id}`,label:`\u5458\u5DE5 \xB7 ${n.name}`})),...(s??[]).map(n=>({value:`${f}${n.id}`,label:`\u56E2\u961F \xB7 ${n.name}`})),...r.includeDispatch?[{value:j,label:"\u4E34\u65F6\u6D3E\u5DE5 \xB7 \u51B3\u7B56\u9009\u4EBA"}]:[]]}function ie(e){return e===j}function B(e){return e.startsWith(f)?e.slice(f.length):""}function H(e){return e.startsWith(y)?e.slice(y.length):""}var q=[{value:"structured",label:"\u7ED3\u6784\u5316\u5BF9\u8BDD"},{value:"pty",label:"\u7EC8\u7AEF\uFF08PTY\uFF09"}];function m({label:e,children:s}){return(0,l.jsx)(W.Item,{label:e,className:"task-board-native-field",children:s})}function se({agent:e,catalog:s,providerOptions:o,disabled:r,ariaPrefix:n,showKind:E=!1,allowSdkEngine:d=!1,teams:i,teamId:a="",onTeamChange:v,employees:L,employeeId:_="",onEmployeeChange:h,onChange:k}){let u=a?i?.find(t=>t.id===a)??null:null,g=_?L?.find(t=>t.id===_)??null:null,I=o&&d?[...o,...$.filter(t=>t.id===x&&!o.some(p=>p.value===t.id)).map(t=>({value:t.id,label:t.label}))]:o,X=t=>{let p=B(t),b=H(t);if(v?.(p),h?.(b),p||b){k({...e,kind:"structured"},{type:b?"employee":"team",id:b||p});return}let F=U(e,t,s);k(F,{type:"cli",id:F.provider})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(m,{label:v||h?"\u6307\u6D3E\u7ED9":d?"\u6267\u884C\u5DE5\u5177":"CLI \u5DE5\u5177",children:I?(0,l.jsx)(c,{value:g?`${y}${g.id}`:u?`${f}${u.id}`:V(e),options:v||h?Y(I,i,L):I,ariaLabel:`${n}\u6307\u6D3E\u7ED9`,className:"task-board-native-select",disabled:r,onValueChange:X}):(0,l.jsx)("span",{role:"status",children:"\u6B63\u5728\u52A0\u8F7D\u5DE5\u5177\u5217\u8868\u2026"})}),g?(0,l.jsx)(m,{label:"\u6267\u884C\u987A\u5E8F",children:(0,l.jsx)(O,{align:"center",gap:10,children:(0,l.jsxs)(A.Text,{type:"secondary",children:[g.agents.length," \u4E2A\u7ED3\u6784\u5316\u5019\u9009 \xB7 \u6309\u987A\u5E8F\u964D\u7EA7"]})})}):u?(0,l.jsx)(m,{label:"\u56E2\u961F\u6210\u5458",children:(0,l.jsxs)(O,{align:"center",gap:10,children:[(0,l.jsx)(M,{members:u.members}),(0,l.jsxs)(A.Text,{type:"secondary",children:[u.members.length," \u4EBA \xB7 \u7531\u8D1F\u8D23\u4EBA\u62C6\u89E3\u5206\u6D3E"]})]})}):(0,l.jsx)(z,{agent:e,catalog:s,disabled:r,ariaPrefix:n,showKind:E,allowSdkEngine:d,onChange:k})]})}function z({agent:e,catalog:s,disabled:o,ariaPrefix:r,showKind:n,allowSdkEngine:E=!1,onChange:d}){let i=[...K(s,e.provider)];return(D(e.model)||e.provider==="pi"&&e.engine==="sdk")&&!i.some(a=>a.value===R)&&i.unshift({value:R,label:C}),e.model===T&&!i.some(a=>a.value===T)&&i.unshift({value:T,label:`Wand ${P}`}),e.model&&!i.some(a=>a.value===e.model)&&i.push({value:e.model,label:`${e.model}\uFF08\u5DF2\u4FDD\u5B58\uFF09`}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(m,{label:"\u6A21\u578B",children:(0,l.jsx)(c,{value:e.model,options:i,ariaLabel:`${r}\u6A21\u578B`,searchable:!0,searchPlaceholder:"\u641C\u7D22\u6A21\u578B",className:"task-board-native-select",disabled:o,onValueChange:a=>d({...e,model:a})})}),(0,l.jsx)(m,{label:"\u601D\u8003\u6DF1\u5EA6",children:(0,l.jsx)(c,{value:e.thinkingEffort,options:G(e.provider,s,e.model,e.thinkingEffort),ariaLabel:`${r}\u601D\u8003\u6DF1\u5EA6`,className:"task-board-native-select",disabled:o,onValueChange:a=>d({...e,thinkingEffort:a})})}),(0,l.jsx)(m,{label:"\u5DE5\u4F5C\u6A21\u5F0F",children:(0,l.jsx)(c,{value:e.mode,options:w(e.provider),ariaLabel:`${r}\u5DE5\u4F5C\u6A21\u5F0F`,className:"task-board-native-select",disabled:o,onValueChange:a=>d({...e,mode:a})})}),E&&e.provider==="pi"&&e.kind==="structured"&&e.engine!=="cli"&&e.engine&&(0,l.jsx)(m,{label:"\u6267\u884C\u65B9\u5F0F",children:(0,l.jsx)(A.Text,{type:"secondary",children:"Wand \u8FDB\u7A0B\u5185\u6267\u884C\uFF0C\u65E0\u9700 CLI \u5DE5\u5177"})}),n&&(0,l.jsx)(m,{label:"\u4F1A\u8BDD\u5F62\u6001",children:(0,l.jsx)(c,{value:e.kind,options:q,ariaLabel:`${r}\u4F1A\u8BDD\u5F62\u6001`,className:"task-board-native-select",disabled:o,onValueChange:a=>d({...e,kind:a,...a==="pty"?{engine:void 0}:{}})})})]})}export{j as a,Y as b,ie as c,B as d,H as e,m as f,se as g};
|