@petercjl/omni-desktop-app 0.1.4 → 0.1.5
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/app/assets/Directory-D0rZfh_1.js +1 -0
- package/app/assets/Directory-ZWl5yZd5.css +1 -0
- package/app/assets/EmptyState-COLCkhZs.js +1 -0
- package/app/assets/EvidenceSourceGuide-CEmQ3sdi.js +1 -0
- package/app/assets/{help-tip-MKEk0q51.js → HelpTip-BcLBMmZW.js} +1 -1
- package/app/assets/{help-tip--AXHiRI4.css → HelpTip-BsHPhMNf.css} +1 -1
- package/app/assets/LineChart-DC_iIB4m.js +36 -0
- package/app/assets/activity-Cj90ZCJa.js +1 -0
- package/app/assets/arrow-right-Bsei-31a.js +1 -0
- package/app/assets/arrow-up-right-CqmbLgtN.js +1 -0
- package/app/assets/chart-column-Dlmnr1y9.js +1 -0
- package/app/assets/check-QN7RSzdG.js +1 -0
- package/app/assets/chevron-down-BoU_rWJ-.js +1 -0
- package/app/assets/chevron-left-D1Tjivki.js +1 -0
- package/app/assets/chevron-right-CGVsdWp6.js +1 -0
- package/app/assets/clock-3-B99KnTzW.js +1 -0
- package/app/assets/demand-planning-client-DVOcsKAy.css +1 -0
- package/app/assets/demand-planning-client-DzZj_Q__.js +130 -0
- package/app/assets/download-D5rXx5AI.js +1 -0
- package/app/assets/entry-B68pyhTH.js +2 -0
- package/app/assets/entry-BzQWDj9a.css +1 -0
- package/app/assets/entry-CKQSyMns.js +2 -0
- package/app/assets/entry-C_j4PEhB.css +1 -0
- package/app/assets/entry-CxmvXNMW.js +1 -0
- package/app/assets/entry-DMn_VQx0.js +2 -0
- package/app/assets/entry-DzUnM_Wl.js +1 -0
- package/app/assets/entry-OPB3MGoc.css +1 -0
- package/app/assets/entry-h5lCV6qJ.js +1 -0
- package/app/assets/flag-Dtu8lW8f.js +1 -0
- package/app/assets/git-branch-Cv69GSy-.js +1 -0
- package/app/assets/group-B6vAoX5c.js +1 -0
- package/app/assets/{index-kh1Fd-ff.js → index-CDS2fIqN.js} +5 -5
- package/app/assets/index-DYn6t59z.css +1 -0
- package/app/assets/layers-BaGSABxV.js +1 -0
- package/app/assets/module-host-BzwOcfIf.js +1 -0
- package/app/assets/play-DaJyx8oA.js +1 -0
- package/app/assets/plus-D0cC0DpO.js +1 -0
- package/app/assets/products-BTd3YVqO.css +1 -0
- package/app/assets/products-BxcSNL_f.js +1 -0
- package/app/assets/project-execution-VeMKoL0M.js +1 -0
- package/app/assets/project-public-D9ifVghn.js +4 -0
- package/app/assets/project-public-D9qvuaHV.js +1 -0
- package/app/assets/project-public-DxYr-zt5.js +1 -0
- package/app/assets/project-public-IxjCdnaB.css +1 -0
- package/app/assets/public-DTqkVQos.js +1 -0
- package/app/assets/refresh-cw-OG4-Ic4x.js +1 -0
- package/app/assets/search-I3gdKVV9.js +1 -0
- package/app/assets/ui-public-BJV7qMHh.js +2 -0
- package/app/assets/use-workspace-query-Csm4EkUU.js +1 -0
- package/app/assets/workbench-BeiscSvD.js +2 -0
- package/app/assets/workbench-CrImV0L7.css +1 -0
- package/app/assets/workspace-view-state-C1Tia7X4.js +1 -0
- package/app/index.html +2 -2
- package/package.json +1 -1
- package/release.json +1 -1
- package/release.sig +1 -1
- package/app/assets/LineChart-DbDnbu8P.js +0 -33
- package/app/assets/index-T3G-cOmt.css +0 -1
- package/app/assets/page-B9m8x7qr.js +0 -1
- package/app/assets/page-BQG8B27I.js +0 -135
- package/app/assets/page-ClE1ActL.css +0 -1
- package/app/assets/page-E8U5s4LO.css +0 -1
- package/app/assets/page-LYbG9XZe.css +0 -1
- package/app/assets/page-X3I2H98K.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as e,r as t,u as n}from"./index-CDS2fIqN.js";import{t as r}from"./HelpTip-BcLBMmZW.js";import{t as i}from"./EvidenceSourceGuide-CEmQ3sdi.js";import{C as a,Y as o,a as s,et as c,i as l,r as u,t as d,u as f}from"./LineChart-DC_iIB4m.js";var p=e(n(),1),m=t(),h=[`#4a7c59`,`#c1666b`,`#4a6fa5`,`#d4a259`,`#7b6d8d`,`#3f8f8f`,`#a35d6a`,`#5b7c99`,`#8a8f4a`],g=(e,t)=>{if(e==null)return`—`;let n=Number(e);return Number.isFinite(n)?t===`%`?n.toFixed(2)+`%`:Math.abs(n)>=1e4?(n/1e4).toFixed(2)+`万`:n.toLocaleString(`zh-CN`,{maximumFractionDigits:2}):String(e)};function _({data:e,api:t,onPrepare:n}){let[i,_]=(0,p.useState)(null),[v,y]=(0,p.useState)(``),[b,x]=(0,p.useState)(!1),[S,C]=(0,p.useState)(``),[w,T]=(0,p.useState)(!1),[E,D]=(0,p.useState)([]),[O,k]=(0,p.useState)(``),[A,j]=(0,p.useState)(null);async function M(){x(!0),C(``);try{let n=await t(`/`+e.project.id+`/dashboard`);_(n),n.metrics?.length&&!v&&y(n.metrics[0].key||n.metrics[0].metric),n.metrics?.length||C(`本项目还没有可展示的已保存的数据。请先检查数据中心的导入状态与现有资料。`)}catch(e){C(e.message)}finally{x(!1)}}(0,p.useEffect)(()=>{M()},[e.project.id]);let N=(0,p.useMemo)(()=>i?.metrics?.find(e=>(e.key||e.metric)===v)||i?.metrics?.[0]||null,[i,v]),P=(0,p.useMemo)(()=>N?N.points.map(e=>({date:e.date,value:e.value})):[],[N]),F=(0,p.useMemo)(()=>i?.metrics?.filter(e=>E.includes(e.key||e.metric))||[],[i,E]),I=(0,p.useMemo)(()=>new Set(F.map(e=>String(e.unit||``))),[F]),L=I.size<=1,R=(0,p.useMemo)(()=>{if(!w||!F.length)return[];let e=new Map;for(let t of F){let n=Math.max(...t.points.map(e=>Math.abs(Number(e.value)||0)),1);for(let r of t.points)e.has(r.date)||e.set(r.date,{date:r.date}),e.get(r.date)[t.key||t.metric]=r.value===null?null:L?Number(r.value):+(Number(r.value)/n*100).toFixed(1)}return[...e.values()].sort((e,t)=>e.date.localeCompare(t.date))},[w,F,L]);function z(e){D(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])}return(0,m.jsxs)(`section`,{className:`card`,style:{marginBottom:20},children:[!i?.metrics?.length&&n&&(0,m.jsxs)(`p`,{children:[(0,m.jsx)(`button`,{onClick:n,children:`查看本项目资料与导入状态`}),(0,m.jsx)(`span`,{children:` 这里只展示已归档资料;没有资料不补零、不生成示例。`})]}),(0,m.jsxs)(`h2`,{children:[`经营指标看板`,(0,m.jsx)(r,{label:`理解指标`,children:`先核对来源、统计日期和单位。不同单位的指标对比会缩放为相对趋势,不能据此比较金额或人数大小。`})]}),(0,m.jsx)(`p`,{className:`muted`,children:`从专用数据库读取项目指标与对比数据。同口径、同日期取最新采集值;缺失值保留空档。`}),(0,m.jsxs)(`div`,{className:`exports`,children:[(0,m.jsx)(`button`,{disabled:b,onClick:M,children:b?`读取中…`:`刷新看板`}),(0,m.jsx)(`button`,{className:w?``:`secondary`,onClick:()=>{T(!w),!w&&!E.length&&i?.metrics?.length&&D(i.metrics.slice(0,2).map(e=>e.key||e.metric))},children:w?`退出多指标对比`:`多指标对比`}),i&&(0,m.jsxs)(`span`,{className:`muted`,children:[` 指标 `,i.metrics?.length||0,` 个 · 源文件 `,i.files||0,` 个 · 区间 `,i.range?`${i.range.start} ~ ${i.range.end}`:`—`]})]}),S&&(0,m.jsx)(`p`,{role:`status`,children:S}),i?.metrics?.length>0&&(0,m.jsxs)(m.Fragment,{children:[w?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`p`,{className:`muted`,style:{margin:`10px 0`},children:L?`同单位叠加:选中指标均为 ${Array.from(I)[0]||`-`},直接同轴比较绝对值。`:`混合单位叠加(${Array.from(I).join(` / `)||`-`}):已按各自最大值归一到 0–100,只比走势方向,不能比绝对值。`}),(0,m.jsx)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:8,margin:`10px 0`},children:i.metrics.map((e,t)=>{let n=e.key||e.metric,r=E.includes(n);return(0,m.jsx)(`button`,{onClick:()=>z(n),style:{padding:`4px 10px`,borderRadius:14,fontSize:12,cursor:`pointer`,border:`1px solid `+(r?h[t%h.length]:`#294248`),background:r?`var(--omni-selected,#193954)`:`var(--omni-panel,#102235)`,color:`var(--omni-text,#dceaf7)`},children:e.name},n)})}),F.length===0?(0,m.jsx)(`p`,{className:`muted`,children:`请至少选择一个指标。`}):(0,m.jsx)(`div`,{style:{width:`100%`,height:300},children:(0,m.jsx)(c,{children:(0,m.jsxs)(d,{data:R,margin:{top:8,right:16,bottom:8,left:8},children:[(0,m.jsx)(f,{strokeDasharray:`3 3`,stroke:`#e8ece9`}),(0,m.jsx)(l,{dataKey:`date`,tick:{fontSize:11},interval:`preserveStartEnd`,minTickGap:16}),(0,m.jsx)(u,{tick:{fontSize:11},width:56,domain:L?[`auto`,`auto`]:[0,100],tickFormatter:L?(e=>g(e,Array.from(I)[0]||``)):void 0}),(0,m.jsx)(a,{}),(0,m.jsx)(o,{wrapperStyle:{fontSize:12}}),F.map((e,t)=>(0,m.jsx)(s,{type:`monotone`,dataKey:e.key||e.metric,name:e.name,stroke:h[t%h.length],strokeWidth:2,dot:!1,connectNulls:!1,isAnimationActive:!1},e.key||e.metric))]})})})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fill,minmax(170px,1fr))`,gap:10,margin:`14px 0`},children:i.metrics.map(e=>{let t=e.key||e.metric,n=e.points||[],r=n[n.length-1],i=n[n.length-2],a=r?.value!=null&&i?.value!=null?r.value-i.value:null,o=a==null||![`higher`,`lower`].includes(e.direction)?null:e.direction===`higher`?a>0:a<0;return(0,m.jsxs)(`div`,{onClick:()=>y(t),style:{cursor:`pointer`,padding:10,borderRadius:8,border:v===t?`2px solid var(--omni-accent,#61d3df)`:`1px solid var(--omni-line,#2c435b)`,background:`#101e25`},children:[(0,m.jsxs)(`div`,{style:{fontSize:12,color:`#a0b8bd`},children:[e.name,e.scope?(0,m.jsxs)(`span`,{title:e.scope,style:{color:`var(--omni-muted,#91a9bd)`},children:[` · `,/^[0-9a-f]{8}-/i.test(e.scope)?`范围 `+e.scope.slice(0,8):e.scope]}):null]}),(0,m.jsxs)(`div`,{style:{fontSize:20,fontWeight:600,margin:`2px 0`},children:[g(r?.value,e.unit),(0,m.jsx)(`span`,{style:{fontSize:12,color:`#a0b8bd`,marginLeft:4},children:e.unit===`%`?``:e.unit})]}),(0,m.jsx)(`div`,{style:{fontSize:12,color:o===null?`#a0b8bd`:o?`#a5e2c8`:`#ffabae`},children:a===null?`暂无可比值`:`${a>0?`+`:``}${g(a,e.unit)} 较上一观测日`}),(0,m.jsxs)(`div`,{style:{fontSize:11,color:`#a0b8bd`,marginTop:2},children:[e.count,` 天 · `,r?.date||`-`]})]},t)})}),N&&(0,m.jsxs)(`div`,{style:{marginTop:10},children:[(0,m.jsxs)(`div`,{className:`section-title`,children:[(0,m.jsxs)(`div`,{children:[(0,m.jsx)(`p`,{className:`eyebrow`,children:N.metric}),(0,m.jsxs)(`h3`,{children:[N.name,` · 走势`]})]}),(0,m.jsxs)(`span`,{className:`muted`,children:[N.count,` 个数据点 · 单位 `,N.unit,` · `,N.direction===`higher`?`越高越好`:N.direction===`lower`?`越低越好`:`方向待核`]})]}),(0,m.jsx)(`div`,{style:{width:`100%`,height:280},children:(0,m.jsx)(c,{children:(0,m.jsxs)(d,{data:P,margin:{top:8,right:16,bottom:8,left:8},children:[(0,m.jsx)(f,{strokeDasharray:`3 3`,stroke:`#e8ece9`}),(0,m.jsx)(l,{dataKey:`date`,tick:{fontSize:11},interval:`preserveStartEnd`,minTickGap:16}),(0,m.jsx)(u,{tick:{fontSize:11},width:56,tickFormatter:e=>g(e,N.unit)}),(0,m.jsx)(a,{formatter:e=>[g(e,N.unit),N.name],labelFormatter:e=>`日期 `+e}),(0,m.jsx)(s,{type:`monotone`,dataKey:`value`,stroke:`#4a7c59`,strokeWidth:2,dot:{r:2},connectNulls:!1,isAnimationActive:!1})]})})})]})]}),(0,m.jsxs)(`details`,{style:{marginTop:12},children:[(0,m.jsxs)(`summary`,{children:[`指标来源文件(`,i.files,` 个)`]}),i.metrics.map(t=>(0,m.jsxs)(`div`,{style:{margin:`6px 0`},children:[(0,m.jsxs)(`b`,{children:[t.name,`(`,t.metric,`)`]}),t.files.map(t=>(0,m.jsx)(`p`,{className:`muted`,style:{margin:`2px 0 2px 12px`},children:(0,m.jsx)(`a`,{href:`/api/workbench/`+e.project.id+`/file/`+t.id,children:t.name})},t.id))]},t.key||t.metric))]}),(0,m.jsx)(`p`,{className:`muted`,children:`看板只做展示与描述统计,不判断因果;缺日不插值,单位差异不做换算。`})]}),(i?.datasets?.length||0)>0&&(()=>{let e=i.datasets.find(e=>e.fileId===O)||i.datasets[0],t=e.columns||[],n=[...e.rows];if(A){let e=t.find(e=>e.key===A.key);n.sort((t,n)=>{let r=t[A.key],i=n[A.key];if(e?.type===`text`)return A.desc?String(i??``).localeCompare(String(r??``)):String(r??``).localeCompare(String(i??``));let a=Number(r),o=Number(i);return!Number.isFinite(a)&&!Number.isFinite(o)?0:Number.isFinite(a)?Number.isFinite(o)?A.desc?o-a:a-o:-1:1})}let r=(e,t)=>{if(e==null||e===``)return`—`;if(t.type===`percent`){let t=Number(e);return Number.isFinite(t)?(t*100).toFixed(2)+`%`:String(e)}if(t.type===`number`){let t=Number(e);return Number.isFinite(t)?t.toLocaleString(`zh-CN`,{maximumFractionDigits:2}):String(e)}return String(e)};return(0,m.jsxs)(`div`,{style:{marginTop:24,paddingTop:20,borderTop:`2px solid #294248`},children:[(0,m.jsxs)(`div`,{className:`section-title`,children:[(0,m.jsxs)(`div`,{children:[(0,m.jsx)(`p`,{className:`eyebrow`,children:`STRUCTURED COMPARISON`}),(0,m.jsx)(`h2`,{children:`数据明细对比`})]}),(0,m.jsxs)(`span`,{className:`muted`,children:[`数据集 `,i.datasets.length,` 个`]})]}),i.datasets.length>1&&(0,m.jsx)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:8,margin:`10px 0`},children:i.datasets.map(t=>(0,m.jsx)(`button`,{className:t.fileId===e.fileId?``:`secondary`,onClick:()=>{k(t.fileId),j(null)},children:t.title},t.fileId))}),(0,m.jsxs)(`div`,{className:`section-title`,style:{marginTop:8},children:[(0,m.jsx)(`div`,{children:(0,m.jsx)(`h3`,{children:e.title})}),(0,m.jsxs)(`span`,{className:`muted`,children:[e.window?`窗口 ${e.window} · `:``,n.length,` 行`,e.kind?` · ${e.kind}`:``]})]}),e.note&&(0,m.jsx)(`p`,{className:`hint`,children:e.note}),(0,m.jsx)(`div`,{style:{overflowX:`auto`},children:(0,m.jsxs)(`table`,{style:{width:`100%`,borderCollapse:`collapse`,fontSize:13},children:[(0,m.jsx)(`thead`,{children:(0,m.jsx)(`tr`,{children:t.map(e=>(0,m.jsxs)(`th`,{onClick:()=>j(t=>t&&t.key===e.key?{key:e.key,desc:!t.desc}:{key:e.key,desc:!0}),style:{cursor:`pointer`,textAlign:e.type===`text`?`left`:`right`,padding:`8px 10px`,borderBottom:`2px solid #294248`,whiteSpace:`nowrap`,userSelect:`none`},children:[e.label,e.unit?`(${e.unit})`:``,A&&A.key===e.key?A.desc?` ▼`:` ▲`:``]},e.key))})}),(0,m.jsx)(`tbody`,{children:n.map((e,n)=>(0,m.jsx)(`tr`,{style:{background:(n%2,`#101e25`)},children:t.map(t=>(0,m.jsx)(`td`,{style:{padding:`7px 10px`,textAlign:t.type===`text`?`left`:`right`,borderBottom:`1px solid #294248`,color:t.direction===`lower`&&Number(e[t.key])>0?`#ffabae`:void 0},children:r(e[t.key],t)},t.key))},n))}),e.totals&&(0,m.jsx)(`tfoot`,{children:(0,m.jsx)(`tr`,{style:{fontWeight:600,background:`#101e25`},children:t.map((t,n)=>(0,m.jsx)(`td`,{style:{padding:`8px 10px`,textAlign:t.type===`text`?`left`:`right`,borderTop:`2px solid #294248`},children:n===0?`合计`:e.totals[t.key]===void 0?``:r(e.totals[t.key],t)},t.key))})})]})}),(0,m.jsx)(`p`,{className:`muted`,style:{marginTop:8},children:`点表头可排序。数据来自本项目归档的 analysis-dataset-v1 数据集,不插值、不换算单位。`})]})})()]})}var v=`1.0.0-local`;function y(e,t=!1){return{format:`project-daily-review-v1`,project_id:e,mode:`simulated`,workflow:`operating-reconciliation`,evidence:{source:`虚构每日核算快照`,collectedAt:`2026-10-29T00:00:00Z`},config:{timezone:`Asia/Shanghai`,metric:`specifiedCostProfit`,scope:`fictional-cup`,unit:`CNY`,direction:`higher`,start:`2026-10-01`,end:`2026-10-03`},snapshots:(t?[1,2,3]:[1,3]).map(t=>({date:`2026-10-0${t}`,project_id:e,workflow:`operating-reconciliation`,mode:`simulated`,scope:`fictional-cup`,unit:`CNY`,source:`虚构归档账本`,collectedAt:`2026-10-29T00:00:00Z`,complete:!0,version:1,value:200+t*10})),method:{name:`降低低效广告支出候选`,version:`candidate-1`,productType:`虚构杯具`,channel:`搜索`,stage:`在售`,window:`7日`,sampleSize:0,observationDays:3,successDefinition:`足窗同口径贡献增加且退款不恶化`,failureDefinition:`贡献下降或退款恶化`,limits:`模拟、无对照、样本不足`,sourceRun:`虚构核算示例`,failures:[`模拟缺日分支`]}}}function b(e){let t=new Date;return t.setDate(t.getDate()+e),`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,`0`)}-${String(t.getDate()).padStart(2,`0`)}`}function x({data:e,api:t,dirty:n,onSaved:a,onDirty:o,initialItemId:s=``}){let[c,l]=(0,p.useState)(``),[u,d]=(0,p.useState)(!1),[f,h]=(0,p.useState)(``),[g,_]=(0,p.useState)(``),[x,S]=(0,p.useState)(``),[C,w]=(0,p.useState)(``),[T,E]=(0,p.useState)(null),[D,O]=(0,p.useState)(e.monitorConfig?.enabled||!1),[k,A]=(0,p.useState)(e.monitorConfig?.followLatest||!1),[j,M]=(0,p.useState)(s),[N,P]=(0,p.useState)(()=>b(-30)),[F,I]=(0,p.useState)(()=>b(-1)),[L,R]=(0,p.useState)(`revenue`),[z,B]=(0,p.useState)(``),[V,H]=(0,p.useState)(null),[U,W]=(0,p.useState)(!1),[G,ee]=(0,p.useState)(`inventory`),[K,te]=(0,p.useState)(`revenue`),[q,ne]=(0,p.useState)(``),[J,Y]=(0,p.useState)(!1),[X,re]=(0,p.useState)(``),[Z,ie]=(0,p.useState)(!1),Q=e.monitorStreams||[];async function $(n,r,i,o){Y(!0),h(``);try{let s=n+`-`+r;await t(`/`+e.project.id+`/monitor-stream`,{version:e.project.version,key:s,enabled:o,timezone:`Asia/Shanghai`,workflow:`fulfillment-retention`,branch:n,metric:r,scope:null,sourceFileId:i||null,followLatest:!1,itemId:String(X).trim()||null,autoUpdate:Z}),h(`命名流 ${n}(${r})已保存${o?`并启用`:`并关闭`};未创建日程、未获取新数据`),await a()}catch(e){h(e.message)}finally{Y(!1)}}async function ae(n){let r=JSON.stringify(n,null,2),i=new TextEncoder().encode(r),a=``;for(let e of i)a+=String.fromCharCode(e);let o=`每日快照-${n.config.metric}-${n.config.start}_${n.config.end}.json`;return(await t(`/`+e.project.id+`/file`,{name:o,kind:`analysis`,source:`生意参谋逐日取数 ${n.evidence.collectedAt}`,base64:btoa(a)})).id}async function oe(){W(!0),h(``);try{let n=await t(`/`+e.project.id+`/job`,{kind:`daily-review-collect`,step:5,version:e.project.version,input:{itemId:String(j).trim(),from:N,to:F,metric:L,workflow:`listed-optimization`},refs:[]});B(n.id),H({id:n.id,status:`pending`}),h(`取数任务已提交,等待本机执行(约 2–3 秒/天,串行)。`)}catch(e){h(e.message)}finally{W(!1)}}(0,p.useEffect)(()=>{if(!z)return;let n=setInterval(async()=>{try{let r=await t(`/`+e.project.id+`/job/`+z);if(H(r),r.status!==`pending`&&(clearInterval(n),r.status===`done`&&r.result)){let e=r.result;l(JSON.stringify(e,null,2));try{let t=await ae(e);try{await a()}catch{}_(t),h(`已取到 ${e.snapshots?.length||0} 天快照并归档为本项目文件;已自动选为来源,打开启用开关后保存配置即可。`)}catch(t){h(`已取到 ${e.snapshots?.length||0} 天快照并填入,但归档失败:${t.message}。可手动保存为文件。`)}}}catch{}},4e3);return()=>clearInterval(n)},[z]);let se=e.acquisitionJobs.filter(e=>e.type===`project-daily-review`);async function ce(){d(!0);try{let n=await t(`/`+e.project.id+`/project-daily-review`,{run_id:crypto.randomUUID(),version:e.project.version,raw:c,previous_run_id:x||null,feedback:x?{action:`更新执行/观察证据`,observation:C,reason:C}:null});E(n),h(n.status===`done`?n.reused?`返回已有运行,不重复写入`:`证据、评审与Wiki新版本已保存`:n.error),await a()}catch(e){h(e.message)}finally{d(!1)}}return(0,m.jsxs)(`section`,{className:`card`,children:[(0,m.jsxs)(`h2`,{children:[`每日监控与复盘`,(0,m.jsx)(r,{label:`设置监控`,children:`先核对商品、指标和日期。启用监控是保存任务设置,不能据此判断后台已运行;查看实际任务记录确认结果。`})]}),(0,m.jsx)(i,{data:e,raw:c,disabled:u,onLoad:e=>{l(e),o?.(!0)},onSourceSelected:_,format:`project-daily-review-v1`,source:`逐日指标快照`,question:`要观察哪个商品和指标?先确认日期范围,再选择已归档快照或手动发起平台取数。配置日检是独立操作,不会因读取资料而启用。`},e.project.id),(0,m.jsx)(`p`,{children:`监控配置 → 归档每日快照 → 缺日与更正检查 → 指标变化 → 阶段复盘 → 候选方法复用`}),(0,m.jsxs)(`p`,{children:[`版本 `,v,` · `,e.project.simulated?`模拟项目,不能证明真实效果`:`人工资料项目`,`。平台取数已接入(生意参谋逐日,生成标准快照);模型语义诊断、店铺执行未接入。`]}),(0,m.jsxs)(`div`,{style:{margin:`14px 0`,padding:12,border:`1px solid #294248`,borderRadius:8,background:`#101e25`},children:[(0,m.jsx)(`b`,{children:`平台取数 · 生成每日快照`}),(0,m.jsx)(`p`,{className:`muted`,style:{margin:`4px 0 8px`},children:`从生意参谋拉逐日原值,直接生成 project-daily-review-v1 并归档为本项目文件。只能取本店商品;贡献与利润类指标平台不提供。`}),(0,m.jsxs)(`div`,{className:`two`,children:[(0,m.jsxs)(`p`,{children:[`读取平台资料`,(0,m.jsx)(r,{label:`资料获取范围`,children:`先确认商品和日期。提交只创建请求,是否执行以实际记录为准;不要为试用功能恢复已暂停的采集。`})]}),(0,m.jsxs)(`label`,{children:[`商品ID(本店在售)`,(0,m.jsx)(`input`,{value:j,onChange:e=>M(e.target.value),placeholder:`如 100000000001`})]}),(0,m.jsxs)(`label`,{children:[`监控指标`,(0,m.jsxs)(`select`,{value:L,onChange:e=>R(e.target.value),children:[(0,m.jsx)(`option`,{value:`revenue`,children:`支付金额`}),(0,m.jsx)(`option`,{value:`buyers`,children:`支付买家数`}),(0,m.jsx)(`option`,{value:`visitors`,children:`商品访客数`}),(0,m.jsx)(`option`,{value:`pageViews`,children:`商品浏览量`}),(0,m.jsx)(`option`,{value:`spend`,children:`广告花费`}),(0,m.jsx)(`option`,{value:`refunds`,children:`退款成功金额`}),(0,m.jsx)(`option`,{value:`newBuyers`,children:`新客支付买家`}),(0,m.jsx)(`option`,{value:`oldBuyers`,children:`老客支付买家`}),(0,m.jsx)(`option`,{value:`descScore`,children:`描述评分`}),(0,m.jsx)(`option`,{value:`oldBuyerShare`,children:`老客支付买家占比(非复购率)`}),(0,m.jsx)(`option`,{value:`uvValue`,children:`UV价值(派生)`}),(0,m.jsx)(`option`,{value:`netUvValue`,children:`期间差额/UV(非利润)`})]})]}),(0,m.jsxs)(`label`,{children:[`日期区间(默认近30天)`,(0,m.jsx)(`input`,{type:`date`,value:N,onChange:e=>P(e.target.value)}),` 至 `,(0,m.jsx)(`input`,{type:`date`,value:F,onChange:e=>I(e.target.value)})]})]}),(0,m.jsxs)(`div`,{className:`exports`,children:[(0,m.jsx)(`button`,{disabled:U||!j||!N||!F,onClick:oe,children:`从平台取数`}),V&&(0,m.jsxs)(`span`,{className:`muted`,children:[` `,V.id,` · `,V.status===`pending`?`等待执行`:V.status===`done`?`已返回`:V.error||`失败`]})]}),Array.isArray(V?.notes)&&V.notes.length>0&&(0,m.jsx)(`p`,{className:`muted`,children:V.notes.join(`;`)})]}),(0,m.jsxs)(`div`,{className:`card`,children:[(0,m.jsxs)(`h3`,{children:[`项目每日监控配置`,(0,m.jsx)(r,{label:`启用监控前`,children:`核对监控范围和资料来源后再保存。自动更新取决于实际接入和权限,缺日期的数据不能补成零。`})]}),(0,m.jsx)(`p`,{children:`默认未启用,批处理排除模拟项目。目标窗口自动到Asia/Shanghai昨天;没有新数据会记录缺日,不启动取数。`}),(0,m.jsxs)(`label`,{children:[(0,m.jsx)(`input`,{type:`checkbox`,checked:D,onChange:e=>O(e.target.checked)}),`启用本项目日检`]}),(0,m.jsxs)(`label`,{children:[(0,m.jsx)(`input`,{type:`checkbox`,checked:k,onChange:e=>A(e.target.checked)}),`跟随同名归档最新版本(仍验证项目与类型)`]}),(0,m.jsxs)(`p`,{children:[`在下方选择本项目标准JSON来源;不选择来源保存为待接通。当前:`,e.monitorConfig?.enabled?`已启用`:`未启用`,` · `,e.monitorConfig?.sourceFileId||`缺源`]}),(0,m.jsx)(`button`,{disabled:u||n,onClick:async()=>{d(!0);try{await t(`/`+e.project.id+`/monitor-config`,{version:e.project.version,enabled:D,timezone:`Asia/Shanghai`,sourceFileId:g||e.monitorConfig?.sourceFileId||null,followLatest:k}),h(`监控配置已保存;未创建日程、未获取新数据`),await a()}catch(e){h(e.message)}finally{d(!1)}},children:`保存日检配置`}),(0,m.jsxs)(`div`,{className:`card`,children:[(0,m.jsx)(`h3`,{children:`独立监控任务 · 发货与售后`}),(0,m.jsx)(`p`,{className:`muted`,children:`在 default 流(上方日检配置)之外,按分支加独立监控流。每条流独立来源、独立缺日判断、独立通知,互不影响。当前仅支持 fulfillment-retention 的两分支。`}),Q.length>0&&(0,m.jsx)(`div`,{children:Q.map(e=>(0,m.jsxs)(`div`,{style:{margin:`6px 0`,padding:6,border:`1px solid #294248`,borderRadius:6},children:[(0,m.jsx)(`b`,{children:e.branch===`inventory`?`库存履约`:`售后回流`}),`(`,e.key,`) · 指标 `,e.metric,` · `,e.enabled?`已启用`:`已关闭`,` · 来源 `,e.sourceName||`缺源`,(0,m.jsx)(`button`,{className:`secondary`,style:{marginLeft:8},disabled:J,onClick:()=>$(e.branch,e.metric,e.sourceFileId||``,!e.enabled),children:e.enabled?`关闭`:`启用`})]},e.id))}),(0,m.jsxs)(`div`,{className:`two`,children:[(0,m.jsxs)(`label`,{children:[`分支`,(0,m.jsxs)(`select`,{value:G,onChange:e=>ee(e.target.value),children:[(0,m.jsx)(`option`,{value:`inventory`,children:`库存履约`}),(0,m.jsx)(`option`,{value:`after-sales`,children:`售后回流`})]})]}),(0,m.jsxs)(`label`,{children:[`监控指标(与导入资料中的指标一致)`,(0,m.jsx)(`input`,{value:K,onChange:e=>te(e.target.value),placeholder:`如 revenue / buyers / refunds`})]}),(0,m.jsxs)(`label`,{children:[`商品ID(开启自动更新必填)`,(0,m.jsx)(`input`,{value:X,onChange:e=>re(e.target.value),placeholder:`如 100000000001`})]}),(0,m.jsxs)(`label`,{style:{flexDirection:`row`,alignItems:`center`,gap:6},children:[(0,m.jsx)(`input`,{type:`checkbox`,checked:Z,onChange:e=>ie(e.target.checked)}),`每日自动更新快照`]}),(0,m.jsxs)(`label`,{children:[`来源快照`,(0,m.jsxs)(`select`,{value:q,onChange:e=>ne(e.target.value),children:[(0,m.jsx)(`option`,{value:``,children:`选择 project-daily-review-v1 归档`}),e.files.filter(e=>e.name.endsWith(`.json`)).map(e=>(0,m.jsx)(`option`,{value:e.id,children:e.name},e.id))]})]})]}),(0,m.jsx)(`button`,{disabled:J||!K,onClick:()=>$(G,K,q,!0),children:`保存并启用此监控任务`})]}),(0,m.jsxs)(`details`,{children:[(0,m.jsx)(`summary`,{children:`日检状态历史`}),e.acquisitionJobs.filter(e=>e.type===`monitor-event`).map(e=>(0,m.jsxs)(`p`,{children:[e.targetDay,` · `,e.state,` · `,e.created]},e.id))]})]}),(0,m.jsxs)(`details`,{children:[(0,m.jsx)(`summary`,{children:`监控状态和复用边界`}),(0,m.jsx)(`p`,{children:`默认Asia/Shanghai;配置闭环、指标、范围、单位、起止日。仅分析本项目已归档或导入的快照,不抓平台,不创建调度。缺日、不完整、延迟退款更正需保留版本及理由。`}),(0,m.jsx)(`p`,{children:`方法记录适用商品/渠道/阶段/窗口、样本量、观察时长、成功与失败定义、限制与来源版本;只能形成候选。复用目标条件不匹配会提示,不生成高成功率,不自动执行店铺调整。`})]}),c&&(()=>{try{let e=JSON.parse(c),t=e.snapshots?.length||0,n=e.snapshots?.filter(e=>e.value==null).length||0;return(0,m.jsxs)(`div`,{style:{margin:`10px 0`,padding:10,border:`1px solid #294248`,borderRadius:6,background:`#101e25`},children:[(0,m.jsx)(`b`,{children:`当前证据`}),(0,m.jsxs)(`p`,{className:`muted`,style:{margin:`4px 0`},children:[`快照 `,t,` 天`,e.config?.start?` `+e.config.start+`~`+e.config.end:``,` · 指标 `,e.config?.metric||`-`,` · 时区 `,e.config?.timezone||`-`,` · 流程 `,e.workflow||`-`]}),n>0&&(0,m.jsxs)(`p`,{className:`muted`,style:{margin:0},children:[`有 `,n,` 天值为空 —— 缺日不能跳过,需补数据或调整窗口`]})]})}catch{return(0,m.jsx)(`p`,{className:`muted`,children:`资料格式无法读取,请检查 JSON 文件格式`})}})(),(0,m.jsxs)(`details`,{style:{margin:`10px 0`},children:[(0,m.jsx)(`summary`,{style:{cursor:`pointer`},children:`手动补充资料(历史数据、外部导出或模拟演示)`}),(0,m.jsx)(`p`,{className:`muted`,children:`自动取数盖不住这些情况时才用:补成本与利润、历史或外部导出数据、不碰真实店铺的模拟测试。`}),(0,m.jsxs)(`div`,{className:`two`,children:[(0,m.jsx)(`button`,{disabled:!e.project.simulated||u,onClick:()=>{l(JSON.stringify(y(e.project.id),null,2)),h(`虚构账本已载入;没有执行记录,不会假称已执行`)},children:`载入缺日模拟快照`}),(0,m.jsx)(`button`,{disabled:!e.project.simulated||!c||u,onClick:()=>{l(JSON.stringify(y(e.project.id,!0),null,2)),h(`已载入明确标记的虚构执行与后窗。请选前次运行并填写反馈再保存。`)},children:`模拟补齐每日快照`})]}),(0,m.jsxs)(`details`,{children:[(0,m.jsx)(`summary`,{children:`高级:查看或修改原始资料字段`}),(0,m.jsxs)(`label`,{children:[`商品与证据包`,(0,m.jsx)(`textarea`,{"aria-label":`每日复盘证据包`,rows:12,value:c,onChange:e=>l(e.target.value)})]})]})]}),(0,m.jsxs)(`label`,{children:[`本次反馈对应哪次检查`,(0,m.jsxs)(`select`,{value:x,onChange:e=>S(e.target.value),children:[(0,m.jsx)(`option`,{value:``,children:`首次诊断/计划`}),se.filter(e=>e.status===`done`).map(e=>(0,m.jsxs)(`option`,{value:e.id,children:[e.result?.conclusion,` · `,e.created]},e.id))]})]}),x&&(0,m.jsxs)(`label`,{children:[`本次实际变更、观察和判断理由`,(0,m.jsx)(`textarea`,{value:C,onChange:e=>w(e.target.value)})]}),(0,m.jsx)(`button`,{disabled:u||n||!c||!!x&&!C.trim(),onClick:ce,children:u?`校验与保存中…`:x?`保存反馈并重评`:`检查每日快照并保存`}),n&&(0,m.jsx)(`p`,{children:`先保存当前其他步骤的编辑。`}),(0,m.jsx)(`p`,{role:`status`,children:f}),T?.result&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`h3`,{children:T.result.conclusion}),(0,m.jsx)(`p`,{children:T.result.causality}),(0,m.jsx)(`pre`,{children:JSON.stringify(T.result,null,2)})]}),(0,m.jsx)(`h3`,{children:`监控历史与待复核`}),se.map(t=>(0,m.jsxs)(`details`,{children:[(0,m.jsxs)(`summary`,{children:[t.created,` · `,t.result?.conclusion||t.error,t.savedVersion===e.project.version?``:` · 上游/项目已变更,需复核`,t.skill_version===`1.0.0-local`?``:` · 旧规则需重评`]}),(0,m.jsxs)(`p`,{children:[`分析方法版本 `,t.skill_version,` · SHA256 `,t.input_sha]}),(0,m.jsx)(`pre`,{children:JSON.stringify(t.result,null,2)}),t.artifactIds?.map(t=>(0,m.jsx)(`p`,{children:(0,m.jsx)(`a`,{href:`/api/workbench/`+e.project.id+`/file/`+t,children:`读取证据或评审文件`})},t))]},t.id)),(0,m.jsx)(`p`,{children:`所有运行进入项目Wiki的“评审与下一步”版本;保留原件与哈希。建议保留/调整/回滚仅为建议,系统不执行真实变更。`})]})}var S=`1.0.0-local`;function C(e,t=!1){let n=(e,t)=>Array.from({length:7},(n,r)=>({date:`2026-10-${String(e+r).padStart(2,`0`)}`,impressions:1e3,clicks:t,visitors:100,buyers:10,revenue:500,refunds:20,spend:50,variableCost:200})),r={itemId:`fictional-listed-001`,currency:`CNY`,revenueBasis:`gross_paid`,refundBasis:`paid_order_cohort`,costBasis:`ex_ads_ex_refunds`,scope:`全量支付/订单队列退款;非广告归因`,channel:`手机搜索`,device:`mobile`,timezone:`Asia/Shanghai`};return{format:`listed-optimization-v1`,project_id:e,mode:`simulated`,itemId:r.itemId,goal:`ctr`,evidence:{source:`虚构在售商品演练,非平台数据`,collectedAt:`2026-10-29T00:00:00Z`,mode:`simulated`},pre:{...r,start:`2026-10-01`,end:`2026-10-07`,daily:n(1,30)},plan:{changes:[`主图利益点文案`],hypothesis:`虚构假设:明确容量表达可能增加点击`,reason:`仅验证工作流,不证明业务原因`,minDays:7,minDenominator:1e3,stopRule:`贡献减少或退款异常时人工评估停止`},execution:t?{mode:`simulated`,confirmed:!0,actor:`模拟测试角色`,date:`2026-10-08`,change:`主图利益点文案`,proof:`模拟执行记录,未操作店铺`}:null,post:t?{...r,start:`2026-10-09`,end:`2026-10-15`,daily:n(9,35)}:null,confounders:[],refundMature:t}}function w(e){let t=new Date;return t.setDate(t.getDate()+e),`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,`0`)}-${String(t.getDate()).padStart(2,`0`)}`}function T({data:e,api:t,dirty:n,onSaved:a,onDirty:o,initialItemId:s=``}){let[c,l]=(0,p.useState)(``),[u,d]=(0,p.useState)(!1),[f,h]=(0,p.useState)(``),[g,_]=(0,p.useState)(``),[v,y]=(0,p.useState)(``),[b,x]=(0,p.useState)(``),[T,E]=(0,p.useState)(null),[D,O]=(0,p.useState)(s),[k,A]=(0,p.useState)(()=>w(-30)),[j,M]=(0,p.useState)(()=>w(-1)),[N,P]=(0,p.useState)(``),[F,I]=(0,p.useState)(null),[L,R]=(0,p.useState)(!1),[z,B]=(0,p.useState)(`pre`);function V(t){let n={};try{n=c?JSON.parse(c):{}}catch{n={}}n.format!==`listed-optimization-v1`&&(n={format:`listed-optimization-v1`,project_id:e.project.id,mode:`manual`,itemId:t.itemId,goal:`cvr`,evidence:t.evidence,pre:null,plan:null,execution:null,post:null,confounders:[],refundMature:!1});let r={...t.sample,start:t.start,end:t.end,daily:t.daily};if(t.window===`post`){let e=n.pre?Object.fromEntries([`itemId`,`currency`,`revenueBasis`,`refundBasis`,`costBasis`,`scope`,`channel`,`device`,`timezone`].map(e=>[e,n.pre[e]])):t.sample;n.post={...e,itemId:t.itemId,start:t.start,end:t.end,daily:t.daily}}else n.pre=r;return n.collectionLast=t.collection,l(JSON.stringify(n,null,2)),t.daily.length}async function H(){R(!0),h(``);try{let n=await t(`/`+e.project.id+`/job`,{kind:`listed-collect`,step:5,version:e.project.version,input:{itemId:String(D).trim(),from:k,to:j,window:z},refs:[]});P(n.id),I({id:n.id,status:`pending`}),h(`取数任务已提交(${z===`post`?`调整后数据`:`调整前数据`}),等待处理,是否完成请查看实际任务记录。`)}catch(e){h(e.message)}finally{R(!1)}}(0,p.useEffect)(()=>{if(!N)return;let n=setInterval(async()=>{try{let r=await t(`/`+e.project.id+`/job/`+N);if(I(r),r.status!==`pending`&&(clearInterval(n),r.status===`done`&&r.result)){let e=V(r.result);h(`已取到 ${r.result.window===`post`?`调整后数据`:`调整前数据`} ${e} 天逐日数据并写入证据包。impressions 与 variableCost 平台无数据,需人工补齐后才能算贡献。`)}}catch{}},4e3);return()=>clearInterval(n)},[N]);let U=e.acquisitionJobs.filter(e=>e.type===`listed-optimization`),W=e=>{try{let t=JSON.parse(c);e(t),l(JSON.stringify(t,null,2))}catch{h(`请先载入或导入证据`)}};async function G(){d(!0);try{let n=await t(`/`+e.project.id+`/listed-optimization`,{run_id:crypto.randomUUID(),version:e.project.version,raw:c,previous_run_id:v||null,feedback:v?{action:`更新执行/观察证据`,observation:b,reason:b}:null});E(n),h(n.status===`done`?n.reused?`返回已有运行,不重复写入`:`证据、评审与Wiki新版本已保存`:n.error),await a()}catch(e){h(e.message)}finally{d(!1)}}return(0,m.jsxs)(`section`,{className:`card`,children:[(0,m.jsxs)(`h2`,{children:[`在售商品优化`,(0,m.jsx)(r,{label:`验证优化效果`,children:`先选择商品和调整前资料,每次明确一个主要改动。复盘时补充实际执行与调整后数据;计划不能当作已执行。`})]}),(0,m.jsx)(i,{data:e,raw:c,disabled:u,onLoad:e=>{l(e),o?.(!0)},format:`listed-optimization-v1`,source:`调整前后同口径数据`,question:`这次想改善点击还是转化?先准备同一商品的调整前数据,再说明只改了什么;执行后再补观察窗口,不能拿计划代替已执行。`},e.project.id),(0,m.jsx)(`p`,{children:`选择商品与目标 → 读取证据 → 诊断假设 → 单变量计划 → 执行记录 → 观察复盘`}),(0,m.jsxs)(`p`,{children:[`版本 `,S,` · `,e.project.simulated?`模拟项目,不能证明真实效果`:`人工资料项目`,`。平台取数已接入(生意参谋逐日);模型语义诊断、店铺执行未接入。`]}),(0,m.jsxs)(`div`,{style:{margin:`14px 0`,padding:12,border:`1px solid #294248`,borderRadius:8,background:`#101e25`},children:[(0,m.jsx)(`b`,{children:`平台取数 · 生意参谋`}),(0,m.jsx)(`p`,{className:`muted`,style:{margin:`4px 0 8px`},children:`填本店在售商品ID和前调整后数据日期,自动取逐日收入/访客/买家/退款/广告花费。只能取本店商品,不取竞品。`}),(0,m.jsxs)(`div`,{className:`two`,children:[(0,m.jsxs)(`label`,{children:[`商品ID(本店在售,纯数字)`,(0,m.jsx)(`input`,{value:D,onChange:e=>O(e.target.value),placeholder:`如 100000000001`})]}),(0,m.jsxs)(`label`,{children:[`要读取哪个阶段的数据`,(0,m.jsxs)(`select`,{value:z,onChange:e=>B(e.target.value),children:[(0,m.jsx)(`option`,{value:`pre`,children:`调整前数据(变更前)`}),(0,m.jsx)(`option`,{value:`post`,children:`调整后数据(变更后)`})]})]}),(0,m.jsxs)(`label`,{children:[`统计区间(默认近30天)`,(0,m.jsx)(`input`,{type:`date`,value:k,onChange:e=>A(e.target.value)}),` 至 `,(0,m.jsx)(`input`,{type:`date`,value:j,onChange:e=>M(e.target.value)})]})]}),(0,m.jsxs)(`div`,{className:`exports`,children:[(0,m.jsx)(`button`,{disabled:L||!D||!k||!j,onClick:H,children:`从平台取数`}),F&&(0,m.jsxs)(`span`,{className:`muted`,children:[` `,F.id,` · `,F.status===`pending`?`等待执行`:F.status===`done`?`已返回`:F.error||`失败`]})]}),Array.isArray(F?.notes)&&F.notes.length>0&&(0,m.jsx)(`p`,{className:`muted`,children:F.notes.join(`;`)})]}),(0,m.jsxs)(`details`,{children:[(0,m.jsx)(`summary`,{children:`字段、人工判断与观察门槛`}),(0,m.jsx)(`p`,{children:`输入商品ID、目标ctr/cvr/contribution、来源时间、前后逐日数据及渠道设备时区。收入为全量支付毛额,退款按支付订单队列,变动成本不含广告和退款;缺值不能填0。等长窗口、事件日单列。至少7日是资料观察门槛,不是显著性保证。`}),(0,m.jsx)(`p`,{children:`人工确认问题、假设、单一变更、停止条件。执行须有actor/date/change/proof/confirmed及与项目一致的mode;导入的确认只是提交者声明,不是系统验证。未执行保持execution:null,未观察保持post:null。`})]}),c&&(()=>{try{let e=JSON.parse(c),t=e.pre?.daily?.length||0,n=e.post?.daily?.length||0,r=!!e.execution;return(0,m.jsxs)(`div`,{style:{margin:`10px 0`,padding:10,border:`1px solid #294248`,borderRadius:6,background:`#101e25`},children:[(0,m.jsx)(`b`,{children:`当前证据`}),(0,m.jsxs)(`p`,{className:`muted`,style:{margin:`4px 0`},children:[`调整前数据 `,t,` 天`,e.pre?.start?` `+e.pre.start+`~`+e.pre.end:``,` · 调整后数据 `,n,` 天`,e.post?.start?` `+e.post.start+`~`+e.post.end:``,` · 执行记录:`,r?`已填`:`未填`,` · 目标 `,e.goal||`-`]}),t>0&&(e.pre.daily||[]).every(e=>e.variableCost==null)&&(0,m.jsx)(`p`,{className:`muted`,style:{margin:0},children:`变动成本全为空 —— 贡献类指标算不出来,需先补`})]})}catch{return(0,m.jsx)(`p`,{className:`muted`,children:`资料格式无法读取,请检查 JSON 文件格式`})}})(),(0,m.jsxs)(`details`,{style:{margin:`10px 0`},children:[(0,m.jsx)(`summary`,{style:{cursor:`pointer`},children:`手动补充资料(历史数据、外部导出或模拟演示)`}),(0,m.jsx)(`p`,{className:`muted`,children:`自动取数盖不住这些情况时才用:补变动成本、历史或外部导出数据、不碰真实店铺的模拟测试。`}),(0,m.jsxs)(`div`,{className:`two`,children:[(0,m.jsx)(`button`,{disabled:!e.project.simulated||u,onClick:()=>{l(JSON.stringify(C(e.project.id),null,2)),h(`虚构调整前数据已载入;没有执行记录,不会假称已执行`)},children:`载入虚构调整前数据与计划`}),(0,m.jsx)(`button`,{disabled:!e.project.simulated||!c||u,onClick:()=>{l(JSON.stringify(C(e.project.id,!0),null,2)),h(`已载入明确标记的虚构执行与调整后数据。请选前次运行并填写反馈再保存。`)},children:`模拟补充执行与观察`})]}),(0,m.jsxs)(`details`,{children:[(0,m.jsx)(`summary`,{children:`高级:查看或修改原始资料字段`}),(0,m.jsxs)(`label`,{children:[`商品与证据包`,(0,m.jsx)(`textarea`,{"aria-label":`在售优化证据包`,rows:12,value:c,onChange:e=>l(e.target.value)})]})]})]}),c&&(0,m.jsxs)(`div`,{className:`two`,children:[(0,m.jsxs)(`label`,{children:[`优化目标`,(0,m.jsxs)(`select`,{onChange:e=>W(t=>{t.goal=e.target.value}),defaultValue:`ctr`,children:[(0,m.jsx)(`option`,{value:`ctr`,children:`点击率`}),(0,m.jsx)(`option`,{value:`cvr`,children:`支付转化率`}),(0,m.jsx)(`option`,{value:`contribution`,children:`期间贡献金额`})]})]}),(0,m.jsxs)(`label`,{children:[`单一变更(替换证据包计划变量)`,(0,m.jsx)(`input`,{placeholder:`例如:主图容量表达`,onBlur:e=>{e.target.value&&W(t=>{t.plan={...t.plan,changes:[e.target.value]}})}})]})]}),(0,m.jsxs)(`label`,{children:[`本次反馈对应哪次分析`,(0,m.jsxs)(`select`,{value:v,onChange:e=>y(e.target.value),children:[(0,m.jsx)(`option`,{value:``,children:`首次诊断/计划`}),U.filter(e=>e.status===`done`).map(e=>(0,m.jsxs)(`option`,{value:e.id,children:[e.result?.conclusion,` · `,e.created]},e.id))]})]}),v&&(0,m.jsxs)(`label`,{children:[`本次实际变更、观察和判断理由`,(0,m.jsx)(`textarea`,{value:b,onChange:e=>x(e.target.value)})]}),(0,m.jsx)(`button`,{disabled:u||n||!c||!!v&&!b.trim(),onClick:G,children:u?`校验与保存中…`:v?`保存反馈并重评`:`检查证据并保存计划`}),n&&(0,m.jsx)(`p`,{children:`先保存当前其他步骤的编辑。`}),(0,m.jsx)(`p`,{role:`status`,children:f}),T?.result&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`h3`,{children:T.result.conclusion}),(0,m.jsx)(`p`,{children:T.result.causality}),(0,m.jsx)(`pre`,{children:JSON.stringify(T.result,null,2)})]}),(0,m.jsx)(`h3`,{children:`优化历史与待复核`}),U.map(t=>(0,m.jsxs)(`details`,{children:[(0,m.jsxs)(`summary`,{children:[t.created,` · `,t.result?.conclusion||t.error,t.savedVersion===e.project.version?``:` · 上游/项目已变更,需复核`,t.skill_version===`1.0.0-local`?``:` · 旧规则需重评`]}),(0,m.jsxs)(`p`,{children:[`分析方法版本 `,t.skill_version,` · SHA256 `,t.input_sha]}),(0,m.jsx)(`pre`,{children:JSON.stringify(t.result,null,2)}),t.artifactIds?.map(t=>(0,m.jsx)(`p`,{children:(0,m.jsx)(`a`,{href:`/api/workbench/`+e.project.id+`/file/`+t,children:`读取证据或评审文件`})},t))]},t.id)),(0,m.jsx)(`p`,{children:`所有运行进入项目Wiki的“评审与下一步”版本;保留原件与哈希。建议保留/调整/回滚仅为建议,系统不执行真实变更。`})]})}var E=`1.0.0-local`;function D(e,t=!1){function n(e,t,n){return{start:e,end:t,currency:`CNY`,unit:`yuan`,timezone:`Asia/Shanghai`,scope:{type:`item`,id:`fictional-cup`},revenueBasis:`gross_paid`,refundBasis:`paid_order_cohort`,costPolicy:`六类费用互斥;不含退款及固定成本`,taxPolicy:`已提供本范围实际税费;不推算税率`,source:{name:`虚构商品账本,非真实账务`,at:`2026-10-29T00:00:00Z`,mode:`simulated`},complete:!0,refundMature:!0,orders:[{id:`order-`+e,date:e,gross:`10000.00`}],refunds:[{id:`refund-`+e,orderId:`order-`+e,date:t,amount:`1000.00`}],costs:[`product`,`fulfillment`,`platform`,`ads`,`tax`,`other`].map((r,i)=>({kind:r,amount:[`4000.00`,`500.00`,`300.00`,n,`200.00`,`0.00`][i],start:e,end:t,scopeId:`fictional-cup`,proof:`虚构凭证-`+r})),fixed:{method:`allocated_pool`,pool:`1000.00`,numerator:1,denominator:2,basis:`本商品占用工时/全店工时`,proof:`虚构分摊记录`,start:e,end:t},settlement:{basis:`same_order_cohort`,scopeId:`fictional-cup`,start:e,end:t,opening:`0.00`,withheld:`300.00`,received:`8000.00`,closing:`700.00`,proof:`虚构结算账单;扣留仅用于现金勾稽`}}}return{format:`operating-reconciliation-v1`,project_id:e,mode:`simulated`,evidence:{source:`本地模拟经营核算数据,所有金额虚构`,collectedAt:`2026-10-29T00:00:00Z`},before:n(`2026-10-01`,`2026-10-07`,`1500.00`),plan:{action:`收缩低效广告支出`,reason:`假设同等收入下减少广告费`,expected:`广告费用1500降至1000;不预设真实销量保持`,stopRule:`收入或贡献下降时人工复核停止`},execution:t?{mode:`simulated`,confirmed:!0,actor:`模拟测试角色`,date:`2026-10-08`,action:`收缩低效广告支出`,proof:`仅虚构执行记录,未操作投放`}:null,after:t?n(`2026-10-09`,`2026-10-15`,`1000.00`):null}}function O({data:e,api:t,dirty:n,onSaved:a,onDirty:o}){let[s,c]=(0,p.useState)(``),[l,u]=(0,p.useState)(!1),[d,f]=(0,p.useState)(``),[h,g]=(0,p.useState)(``),[_,v]=(0,p.useState)(``),[y,b]=(0,p.useState)(``),[x,S]=(0,p.useState)(null),C=e.acquisitionJobs.filter(e=>e.type===`operating-reconciliation`);async function w(){u(!0);try{let n=await t(`/`+e.project.id+`/operating-reconciliation`,{run_id:crypto.randomUUID(),version:e.project.version,raw:s,previous_run_id:_||null,feedback:_?{action:`更新执行/观察证据`,observation:y,reason:y}:null});S(n),f(n.status===`done`?n.reused?`返回已有运行,不重复写入`:`证据、评审与Wiki新版本已保存`:n.error),await a()}catch(e){f(e.message)}finally{u(!1)}}return(0,m.jsxs)(`section`,{className:`card`,children:[(0,m.jsxs)(`h2`,{children:[`经营核算与复盘`,(0,m.jsx)(r,{label:`核对经营账目`,children:`导入同一周期的收入、退款和成本资料,核对金额口径后保存。模拟账本只用于演示;未计入的费用需要单独说明。`})]}),(0,m.jsx)(i,{data:e,raw:s,disabled:l,onLoad:e=>{c(e),o?.(!0)},format:`operating-reconciliation-v1`,source:`财务账本或结算明细`,question:`核算哪个商品、哪个周期?请向财务确认收入、退款、货品成本、运费、广告、税费和固定分摊。金额缺失保留空值,不按零处理。`},e.project.id),(0,m.jsx)(`p`,{children:`确定核算范围 → 读取收入退款成本 → 核对账目并计算 → 调整计划 → 执行记录 → 同口径复盘`}),(0,m.jsxs)(`p`,{children:[`版本 `,E,` · `,e.project.simulated?`模拟项目,不能证明真实效果`:`人工资料项目`,`。本闭环仅本地归档分析;平台实时取数、模型语义诊断、店铺执行均未接入。`]}),(0,m.jsxs)(`div`,{className:`two`,children:[(0,m.jsx)(`button`,{disabled:!e.project.simulated||l,onClick:()=>{c(JSON.stringify(D(e.project.id),null,2)),f(`虚构账本已载入;没有执行记录,不会假称已执行`)},children:`载入虚构账本与计划`}),(0,m.jsx)(`button`,{disabled:!e.project.simulated||!s||l,onClick:()=>{c(JSON.stringify(D(e.project.id,!0),null,2)),f(`已载入明确标记的虚构执行与后窗。请选前次运行并填写反馈再保存。`)},children:`模拟补充执行与观察`})]}),(0,m.jsxs)(`details`,{children:[(0,m.jsx)(`summary`,{children:`核算口径与金额说明`}),(0,m.jsx)(`p`,{children:`元字符串最多2位小数,缺项不补0。支付毛额与订单队列退款分开。成本明确货品、履约、平台、广告、税费及其他;固定成本单列分摊。成交不等于结算,结算只勾稽,不再次扣利润。`}),(0,m.jsx)(`p`,{children:`贡献=毛额−退款−非税变动成本;经营结余=贡献−税费−固定分摊。非财务净利润,税费及分摊仍需人工确认。`})]}),(0,m.jsxs)(`details`,{children:[(0,m.jsx)(`summary`,{children:`高级:查看或修改原始资料字段`}),(0,m.jsxs)(`label`,{children:[`商品与证据包`,(0,m.jsx)(`textarea`,{"aria-label":`经营核算证据包`,rows:12,value:s,onChange:e=>c(e.target.value)})]})]}),(0,m.jsxs)(`label`,{children:[`本次反馈对应哪次核算`,(0,m.jsxs)(`select`,{value:_,onChange:e=>v(e.target.value),children:[(0,m.jsx)(`option`,{value:``,children:`首次诊断/计划`}),C.filter(e=>e.status===`done`).map(e=>(0,m.jsxs)(`option`,{value:e.id,children:[e.result?.conclusion,` · `,e.created]},e.id))]})]}),_&&(0,m.jsxs)(`label`,{children:[`本次实际变更、观察和判断理由`,(0,m.jsx)(`textarea`,{value:y,onChange:e=>b(e.target.value)})]}),(0,m.jsx)(`button`,{disabled:l||n||!s||!!_&&!y.trim(),onClick:w,children:l?`校验与保存中…`:_?`保存反馈并重评`:`核对账目并保存计划`}),n&&(0,m.jsx)(`p`,{children:`先保存当前其他步骤的编辑。`}),(0,m.jsx)(`p`,{role:`status`,children:d}),x?.result&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`h3`,{children:x.result.conclusion}),(0,m.jsx)(`p`,{children:x.result.causality}),(0,m.jsx)(`pre`,{children:JSON.stringify(x.result,null,2)})]}),(0,m.jsx)(`h3`,{children:`核算历史与待复核`}),C.map(t=>(0,m.jsxs)(`details`,{children:[(0,m.jsxs)(`summary`,{children:[t.created,` · `,t.result?.conclusion||t.error,t.savedVersion===e.project.version?``:` · 上游/项目已变更,需复核`,t.skill_version===`1.0.0-local`?``:` · 旧规则需重评`]}),(0,m.jsxs)(`p`,{children:[`分析方法版本 `,t.skill_version,` · SHA256 `,t.input_sha]}),(0,m.jsx)(`pre`,{children:JSON.stringify(t.result,null,2)}),t.artifactIds?.map(t=>(0,m.jsx)(`p`,{children:(0,m.jsx)(`a`,{href:`/api/workbench/`+e.project.id+`/file/`+t,children:`读取证据或评审文件`})},t))]},t.id)),(0,m.jsx)(`p`,{children:`所有运行进入项目Wiki的“评审与下一步”版本;保留原件与哈希。建议保留/调整/回滚仅为建议,系统不执行真实变更。`})]})}var k=`1.0.0-local`;function A(e,t=!1){return{format:`fulfillment-retention-v1`,project_id:e,run_id:null,mode:`simulated`,schema_version:`v1`,skill_version:k,timezone:`Asia/Shanghai`,as_of:`2026-11-01`,window_start:`2026-10-01`,window_end:`2026-10-31`,collected_at:`2026-11-01T00:00:00Z`,source_files:[],source_verification:`脱敏合成 fixture,仅规则验收,非真实经营`,inventory:{skus:[{sku_id:`A`,warehouse_id:`W1`,snapshot_at:`2026-10-31`,sellable_mode:`derived`,on_hand:100,reserved:30,unsellable:10,pending_inspection:4,inbound_qty:20,inbound_eta_known:t,batch_age:12,sellable_definition:`总在库-预占-不可售`}]},replenish:t?{units_sold:70,demand_window_days:7,lead_time:5,review_cycle:2,safety_stock:20,available:60,confirmed_inbound:20,pack_multiple:10,moq:10,budget_cap:5e3,unit_cost:12}:{units_sold:70,demand_window_days:7,lead_time:null,review_cycle:2,safety_stock:20,available:60,confirmed_inbound:null,pack_multiple:10},orders:t?{observed_at:`2026-11-01`,lines:[{line_id:`L1`,order_id:`O1`,sku_id:`A`,qty:5,promise_ship_at:`2026-10-28`,cancel_status:null,shipped_qty:5,shipped_at:`2026-10-27`},{line_id:`L2`,order_id:`O2`,sku_id:`A`,qty:3,promise_ship_at:`2026-10-29`,cancel_status:null,shipped_qty:0,shipped_at:null},{line_id:`L3`,order_id:`O3`,sku_id:`A`,qty:2,promise_ship_at:`2026-10-30`,cancel_status:`cancelled`,shipped_qty:0,shipped_at:null}]}:{observed_at:`2026-11-01`,lines:[]},refunds:t?{view:`success`,denominator:100,list:[{ticket_id:`T1`,order_id:`O10`,cohort_key:`C10`,reason_raw:`色差`,reason_std:`视觉描述不符`,reason_manual:`unknown`,applied_at:`2026-10-20`,success_at:`2026-10-25`,amount:88,currency:`CNY`,status:`success`},{ticket_id:`T2`,order_id:`O10`,cohort_key:`C10`,reason_raw:`色差补寄`,reason_std:`视觉描述不符`,reason_manual:`unknown`,applied_at:`2026-10-21`,success_at:`2026-10-25`,amount:0,currency:`CNY`,status:`success`}]}:{view:`success`,denominator:500,list:[]},retention:t?{eligible_count:200,repurchase_event_keys:[`C1`,`C2`,`C2`,`C3`],matured:!0,observed_deadline:`2026-11-30`}:{eligible_count:200,repurchase_event_keys:[],matured:!1,observed_deadline:null}}}function j(e){return A(e,!0)}function M({data:e,api:t,onSaved:n,dirty:a,onDirty:o}){let[s,c]=(0,p.useState)(``),[l,u]=(0,p.useState)(!1),[d,f]=(0,p.useState)(``),[h,g]=(0,p.useState)(null),[_,v]=(0,p.useState)(``),[y,b]=(0,p.useState)(``),[x,S]=(0,p.useState)(``),[C,w]=(0,p.useState)(``),T=(e.acquisitionJobs||[]).filter(e=>e.type===`fulfillment-retention`);async function E(){u(!0),f(`正在本地校验与情景计算`);try{let r=await t(`/`+e.project.id+`/fulfillment-retention`,{run_id:crypto.randomUUID(),version:e.project.version,raw:s,previous_run_id:_||null,feedback:_?{action:y,observation:x,reason:C}:null});g(r),f(r.status===`done`?r.reused?`相同输入已运行,返回原记录`:`证据、评审与Wiki新版本已保存`:r.error),await n()}catch(e){f(e.message)}finally{u(!1)}}let D=s?(()=>{try{let e=JSON.parse(s),t=e.inventory?.skus?.length||0,n=+!!e.replenish,r=e.orders?.lines?.length||0,i=e.refunds?.list?.length||0,a=+!!e.retention;return(0,m.jsxs)(`div`,{style:{margin:`10px 0`,padding:10,border:`1px solid #294248`,borderRadius:6,background:`#101e25`},children:[(0,m.jsx)(`b`,{children:`当前证据`}),(0,m.jsxs)(`p`,{className:`muted`,style:{margin:`4px 0`},children:[`库存 SKU `,t,` 个 · 补货参数 `,n?`已填`:`缺`,` · 订单行 `,r,` · 退款工单 `,i,` · 回流队列 `,a?`已填`:`缺`]}),(0,m.jsxs)(`p`,{className:`muted`,style:{margin:0},children:[`as_of `,e.as_of||`-`,` · 区间 `,e.window_start||`-`,` ~ `,e.window_end||`-`,` · 模式 `,e.mode]})]})}catch{return(0,m.jsx)(`p`,{className:`muted`,children:`资料格式无法读取,请检查 JSON 文件格式`})}})():null;return(0,m.jsxs)(`section`,{className:`card`,style:{marginBottom:20},children:[(0,m.jsxs)(`h2`,{children:[`库存、发货与售后复盘`,(0,m.jsx)(r,{label:`库存与售后分析`,children:`导入库存、订单和售后资料,查看缺项和预估结果。这里只分析和保存,不会采购、退款、发消息或修改库存。`})]}),(0,m.jsx)(i,{data:e,raw:s,disabled:l,onLoad:e=>{c(e),o?.(!0)},format:`fulfillment-retention-v1`,source:`ERP、订单、售后工单或 CRM 导出`,question:`要判断缺货、补货还是售后回流?请提供对应库存、订单或工单资料及统计日期。仅使用聚合或假名数据,不填写客户姓名、电话和地址。`},e.project.id),(0,m.jsxs)(`p`,{children:[`分析方法版本 `,k,` · `,e.project.simulated?`模拟项目`:`人工资料项目`,` · 两条并行分支,共用证据·计划·执行·观察·复盘。`]}),(0,m.jsx)(`p`,{children:`本地确定性校验与情景计算;不自动采购、不自动退款、不发消息、不改库存。`}),D,(0,m.jsx)(`div`,{className:`two`,children:(0,m.jsx)(`button`,{disabled:l||!e.project.simulated,onClick:()=>{c(JSON.stringify(j(e.project.id),null,2)),f(`已载入虚构演示资料:仅规则验收,非经营结果。`)},children:`载入虚构演示资料`})}),(0,m.jsxs)(`details`,{style:{margin:`10px 0`},children:[(0,m.jsx)(`summary`,{style:{cursor:`pointer`},children:`手工补充与兜底(ERP/工单导出、历史数据、直接改字段)`}),(0,m.jsx)(`p`,{className:`muted`,children:`库存、订单、退款、复购字段来自 ERP/工单/CRM 导出,平台没有;只收聚合或假名数据。散列≠匿名,仍按受限资料处理。`}),(0,m.jsxs)(`details`,{children:[(0,m.jsx)(`summary`,{children:`高级:查看或修改原始资料字段`}),(0,m.jsxs)(`label`,{children:[`证据包内容`,(0,m.jsx)(`textarea`,{"aria-label":`履约回流证据包`,rows:14,value:s,onChange:e=>c(e.target.value)})]})]})]}),(0,m.jsxs)(`label`,{children:[`本次反馈对应哪次分析`,(0,m.jsxs)(`select`,{value:_,onChange:e=>v(e.target.value),children:[(0,m.jsx)(`option`,{value:``,children:`首次评审`}),T.filter(e=>e.status===`done`).map(e=>(0,m.jsxs)(`option`,{value:e.id,children:[e.created,` · `,e.result?.conclusion]},e.id))]})]}),_&&(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(`label`,{children:[`本次实际变更、观察和判断理由`,(0,m.jsx)(`textarea`,{value:y,onChange:e=>b(e.target.value),placeholder:`动作(如:调整补货安全量)/观察(如:缺货天数)/理由`})]})}),(0,m.jsx)(`button`,{disabled:l||a||!s.trim(),onClick:E,children:l?`运行中…`:_?`保存反馈并重新评审`:`检查资料并计算预估结果`}),a&&(0,m.jsx)(`p`,{children:`先保存当前步骤修改,避免覆盖未保存内容。`}),(0,m.jsx)(`p`,{role:`status`,children:d}),h?.result&&(0,m.jsxs)(`div`,{children:[(0,m.jsx)(`strong`,{children:h.result.conclusion}),Array.isArray(h.result.issues)&&h.result.issues.filter(e=>e.level===`block`||e.level===`missing`).map(e=>(0,m.jsxs)(`p`,{style:{color:`#ffabae`},children:[`⚠ `,e.key,`:`,e.message]},e.key+String(e.message))),(0,m.jsx)(`h4`,{children:`情景计算结果`}),h.result.inventory?.length>0&&(0,m.jsxs)(`p`,{className:`muted`,children:[`可售:`,h.result.inventory.map(e=>`${e.sku}=${e.available??`缺`}${e.negative?`(负!)`:``}`).join(`,`),h.result.inventory.some(e=>e.pendingInspection!=null)?` · 待检独立`:` · 无待检`]}),h.result.replenish&&(0,m.jsxs)(`p`,{className:`muted`,children:[`补货:需求率 `,h.result.replenish.rate??`—`,` · 净需求 `,h.result.replenish.net??`—`,` · 建议量 `,h.result.replenish.suggested??`未生成(缺参数)`]}),h.result.fulfillment&&(0,m.jsxs)(`p`,{className:`muted`,children:[`履约:分母 `,h.result.fulfillment.denominator,` · 超时 `,h.result.fulfillment.overdue,` · 超时率 `,h.result.fulfillment.rate==null?`—`:(h.result.fulfillment.rate*100).toFixed(1)+`%`]}),h.result.refunds&&(0,m.jsxs)(`p`,{className:`muted`,children:[`退款:`,h.result.refunds.view,` 口径 · 去重订单 `,h.result.refunds.distinctOrders,` · 发生率 `,h.result.refunds.rate==null?`—`:(h.result.refunds.rate*100).toFixed(2)+`%`]}),h.result.retention&&(0,m.jsxs)(`p`,{className:`muted`,children:[`复购:合格 `,h.result.retention.eligible,` · 复购 `,h.result.retention.repurchased,` · 率 `,h.result.retention.rate==null?`未成熟/不可算`:(h.result.retention.rate*100).toFixed(2)+`%`]}),Array.isArray(h.result.nextActions)&&h.result.nextActions.length>0&&(0,m.jsxs)(`p`,{className:`muted`,children:[`下一步:`,h.result.nextActions.join(`;`)]})]}),(0,m.jsx)(`h3`,{children:`本项目运行历史`}),T.map(t=>(0,m.jsxs)(`details`,{children:[(0,m.jsxs)(`summary`,{children:[t.created,` · `,t.status,` · `,t.result?.conclusion||t.error,t.skill_version===`1.0.0-local`?``:` · 旧规则版本,需重新评审`,t.savedVersion===e.project.version?``:` · 项目版本已变化,需复核`]}),(0,m.jsxs)(`p`,{children:[`运行 `,t.id,` · 分析方法版本 `,t.skill_version,` · 证据SHA256 `,t.input_sha]}),t.artifactIds?.map(t=>(0,m.jsx)(`p`,{children:(0,m.jsxs)(`a`,{href:`/api/workbench/`+e.project.id+`/file/`+t,children:[`读取原始证据/评审产物 `,t]})},t)),(0,m.jsx)(`pre`,{children:JSON.stringify({gates:t.result?.gates,issues:t.result?.issues?.slice(0,20),nextActions:t.result?.nextActions,feedback:t.feedback},null,2)})]},t.id)),(0,m.jsx)(`p`,{className:`muted`,children:`人工判断:库存口径与身份、承诺时点、退款责任证据、复购许可、采购审批。规则计算不证明真实经营改善。`})]})}var N={dashboard:_,monitor:x,optimization:T,finance:O,fulfillment:M};function P({section:e,project:t}){let n=N[e];return(0,m.jsx)(`div`,{className:`products-module wb-legacy-tools`,onChangeCapture:e=>{e.target.matches(`input:not([type=checkbox]),textarea`)&&t.onDirty(!0)},children:n&&(0,m.jsx)(n,{...t},t.projectId)})}export{_ as DashboardPanel,O as FinancePanel,M as FulfillmentPanel,x as MonitorPanel,T as OptimizationPanel,P as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._page_18h23_2{box-sizing:border-box;overflow-wrap:anywhere;width:100%;max-width:1120px;min-height:0;margin:0 auto;padding:32px 28px 64px;font-size:14px;line-height:1.6;display:block}._page_18h23_2 ._heading_18h23_3{border-bottom:1px solid var(--omni-paint-line-294248,#294248);margin:0 0 20px;padding:0 0 16px;display:block}._page_18h23_2 h1{margin:0 0 8px;font-size:24px;line-height:1.35}._page_18h23_2 h2{margin:20px 0 12px;font-size:18px;line-height:1.4}._page_18h23_2 p{margin:8px 0 14px}._page_18h23_2 ._heading_18h23_3 p{color:var(--omni-paint-ink-a0b8bd,#a0b8bd);margin:0}._page_18h23_2 ._notice_18h23_6{background:var(--omni-paint-surface-101e25,#101e25);border:1px solid var(--omni-paint-line-294248,#294248);border-radius:10px;margin-bottom:20px;padding:12px 16px}._page_18h23_2 section{background:var(--omni-paint-surface-101e25,#101e25);border-radius:12px;min-width:0;display:block}._page_18h23_2 ._projectPicker_18h23_8{border:1px solid var(--omni-paint-line-294248,#294248);margin-bottom:24px;padding:16px 20px}._page_18h23_2 label{max-width:680px;margin:12px 0;font-size:14px;display:block}._page_18h23_2 input,._page_18h23_2 select,._page_18h23_2 textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%;font:inherit;padding:10px 12px;display:block}._page_18h23_2 button{white-space:normal;word-break:normal;width:auto;max-width:100%;height:auto;min-height:42px;font:inherit;vertical-align:middle;flex:none;justify-content:center;align-self:flex-start;align-items:center;margin:6px 10px 6px 0;padding:10px 16px;line-height:1.4;display:inline-flex}._page_18h23_2 button:disabled{cursor:not-allowed}._page_18h23_2 button:focus-visible,._page_18h23_2 select:focus-visible,._page_18h23_2 input:focus-visible,._page_18h23_2 textarea:focus-visible,._page_18h23_2 summary:focus-visible{outline:3px solid var(--omni-paint-line-3478b9,#3478b9);outline-offset:3px}._page_18h23_2 pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--omni-paint-surface-101e25,#101e25);border-radius:8px;max-width:100%;padding:12px;font-size:12px;overflow:auto}._page_18h23_2 summary{cursor:pointer;padding:10px 0;font-weight:600}._page_18h23_2 ._error_18h23_14{color:var(--omni-paint-danger-ffabae,#ffabae);background:var(--omni-paint-surface-351e25,#351e25);border-radius:8px;padding:12px}@media (width<=640px){._page_18h23_2{padding:20px 16px 40px}._page_18h23_2 h1{font-size:21px}._page_18h23_2 ._projectPicker_18h23_8{padding:12px}._page_18h23_2 button{margin-right:8px}._page_18h23_2 label{max-width:none}}:root[data-omni-theme=light]{--omni-paint-line-294248:#dde1eb;--omni-paint-ink-a0b8bd:#626e80;--omni-paint-surface-101e25:#f5f6fa;--omni-paint-line-3478b9:#dde1eb;--omni-paint-danger-ffabae:#b83a4a;--omni-paint-surface-351e25:#fff}:root[data-omni-theme=dark]{--omni-paint-line-294248:#2c435b;--omni-paint-ink-a0b8bd:#91a9bd;--omni-paint-surface-101e25:#0b1727;--omni-paint-line-3478b9:#2c435b;--omni-paint-danger-ffabae:#ff8996;--omni-paint-surface-351e25:#102235}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./workspace-view-state-C1Tia7X4.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as e}from"./index-CDS2fIqN.js";var t=e(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as e}from"./index-CDS2fIqN.js";var t=e(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]);export{t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"./Directory-D0rZfh_1.js";import"./products-BxcSNL_f.js";import{p as e,r as t,u as n}from"./index-CDS2fIqN.js";import{n as r}from"./workspace-view-state-C1Tia7X4.js";import"./public-DTqkVQos.js";import"./demand-planning-client-DzZj_Q__.js";import"./HelpTip-BcLBMmZW.js";import"./EmptyState-COLCkhZs.js";function i(){return r(`products.key`,``)}function a(){let[,e]=i(),[,t]=r(`products.query`,``),[,n]=r(`products.metric`,``),[,a]=r(`products.scope`,`real`);return(r,i)=>{i&&a(i),r&&(e(r),t(``),n(``))}}var o=e(n(),1),s=t(),c=Object.fromEntries([{label:`工作空间`,items:[[`overview`,`项目总览`],[`methods`,`任务与方法`],[`pipeline`,`分析流程`],[`work`,`分步工作`],[`demand`,`需求拆分`]]},{label:`数据与知识`,items:[[`data`,`数据中心`],[`dashboard`,`指标看板`],[`wiki`,`分析与复盘`],[`insight`,`结论与行动`],[`files`,`证据与附件`]]},{label:`运营执行`,items:[[`monitor`,`每日监控`],[`optimization`,`商品优化`],[`finance`,`经营核算`],[`fulfillment`,`库存与售后`],[`content`,`商品内容检查`],[`visual`,`商品图片策划`],[`publish`,`上新演练`]]}].flatMap(e=>e.items));async function l(e){let t=async(t,n)=>{let r=await e(t,n);if(!r||typeof r!=`object`||!(`id`in r)||typeof r.id!=`string`)throw Error(`保存结果缺少记录编号,请核对项目列表`);return{id:r.id}},n={input:``,source:``,analysis:``,output:``,reason:``,repair:``,refs:[],status:`draft`,layer:`human`,business:null},r=await t(``,{name:`演示 · 通勤收纳新品`,simulated:!0}),i=[];for(let[e,n,a]of[[`关键词样本.csv`,`keyword`,`关键词,模拟数量
|
|
2
|
+
通勤收纳,120`],[`评价样本.txt`,`review`,`虚构评价:钥匙与耳机混放,希望适配通勤包。`]]){let o=new TextEncoder().encode(a),s=``;for(let e of o)s+=String.fromCharCode(e);let c=await t(`/`+r.id+`/file`,{name:e,kind:n,source:`内置虚构样本,非平台数据,2026-10-28`,base64:btoa(s)});i.push(c.id)}let a=[[`通勤人群小物分类,模拟预算3000元。`,`验证包内适配与分类需求;样品不适配则停止。`],[`关键词和评价独立归档,均为虚构样本。`,`需求信号不能证明真实市场规模。`],[`假设用户需要快速找到钥匙和耳机。`,`反证:已有小袋也可能解决;需真实访谈。`],[`分隔小盒,规格和材质待样品确认。`,`试样要求:易取放、适配包内空间;性能待测。`],[`模拟售价29、采购8、包装2、履约5、推广6元。`,`情景贡献8元/件,未计退款和固定费用;不等于实际利润。`],[`缺真实需求、样品、成本报价与退款假设。`,`下一步核报价和试样;暂不发布或投放。`]];for(let e=0;e<6;e++){let o=await t(`/`+r.id+`/revision`,{...n,input:a[e][0],source:`内置模拟项目 · 2026-10-28`,analysis:`本记录用于演示流程,不是AI分析或真实经营结论。`,output:a[e][1],reason:`模拟人工评审记录,非用户实际批准。`,step:e,version:e,refs:[...i],layer:`human`,status:e===5?`review`:`confirmed`});i.push(o.id)}return r.id}function u({api:e,onCreated:t,onClose:n,onDirty:r,onBusy:i}){let[a,c]=(0,o.useState)(``),[u,d]=(0,o.useState)(!0),[f,p]=(0,o.useState)(!1),[m,h]=(0,o.useState)(``);async function g(n=!1){if(!f){p(!0),i(!0),h(``);try{let i=n?await l(e):await e(``,{name:a,simulated:u}),o=typeof i==`string`?i:i&&typeof i==`object`&&`id`in i&&typeof i.id==`string`?i.id:``;if(!o)throw Error(`建立项目的结果格式异常,请核对项目列表后再操作`);r(!1),await t(o,n?`模拟示例已保存;未调用模型或真实取数。`:void 0)}catch(e){h(e instanceof Error?e.message:`建立项目失败`)}finally{p(!1),i(!1)}}}return(0,s.jsxs)(`section`,{className:`card wb-project-creator`,"aria-label":`建立新项目`,children:[m&&(0,s.jsx)(`p`,{role:`alert`,className:`error`,children:m}),(0,s.jsxs)(`div`,{className:`wb-section-heading`,children:[(0,s.jsx)(`h2`,{children:`建立新项目`}),(0,s.jsx)(`button`,{disabled:f,onClick:()=>{a.trim()&&!confirm(`放弃未建立的项目草稿?`)||(r(!1),n())},children:`关闭`})]}),(0,s.jsxs)(`div`,{className:`wb-toolbar`,children:[(0,s.jsxs)(`label`,{children:[`项目名称`,(0,s.jsx)(`input`,{id:`project-name`,value:a,onChange:e=>{c(e.target.value),r(!!e.target.value.trim())},maxLength:100,placeholder:`例如:冬季暖棚新品`})]}),(0,s.jsxs)(`label`,{children:[`资料性质`,(0,s.jsxs)(`select`,{value:u?`simulated`:`manual`,onChange:e=>d(e.target.value===`simulated`),children:[(0,s.jsx)(`option`,{value:`simulated`,children:`模拟项目`}),(0,s.jsx)(`option`,{value:`manual`,children:`资料项目(按证据核验)`})]})]}),(0,s.jsx)(`button`,{disabled:f||!a.trim(),onClick:()=>void g(),children:`建立项目`})]}),(0,s.jsxs)(`details`,{children:[(0,s.jsx)(`summary`,{children:`教学演示`}),(0,s.jsx)(`button`,{disabled:f,onClick:()=>void g(!0),children:`载入完整模拟案例`})]})]})}export{c as n,a as r,u as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as e,u as t}from"./index-CDS2fIqN.js";var n=e(t(),1);function r(e){let[t,r]=(0,n.useState)(null),[i,a]=(0,n.useState)(``),[o,s]=(0,n.useState)(!0),c=(0,n.useRef)(0),l=(0,n.useCallback)(()=>{let t=++c.current;return e().then(e=>{c.current===t&&(r(e),a(``))}).catch(e=>{c.current===t&&a(e instanceof Error?e.message:`资料读取失败`)}).finally(()=>{c.current===t&&s(!1)})},[e]),u=(0,n.useCallback)(()=>{c.current++},[]);return(0,n.useEffect)(()=>(l(),u),[l,u]),{data:t,error:i,busy:o,refresh:(0,n.useCallback)(()=>{s(!0),a(``),l()},[l])}}export{r as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./entry-h5lCV6qJ.js","./index-CDS2fIqN.js","./index-DYn6t59z.css","./arrow-right-Bsei-31a.js","./chart-column-Dlmnr1y9.js","./clock-3-B99KnTzW.js","./git-branch-Cv69GSy-.js","./layers-BaGSABxV.js","./search-I3gdKVV9.js","./activity-Cj90ZCJa.js","./module-host-BzwOcfIf.js","./public-DTqkVQos.js","./workspace-view-state-C1Tia7X4.js","./entry-OPB3MGoc.css","./entry-DzUnM_Wl.js","./LineChart-DC_iIB4m.js","./check-QN7RSzdG.js","./chevron-down-BoU_rWJ-.js","./chevron-left-D1Tjivki.js","./chevron-right-CGVsdWp6.js","./plus-D0cC0DpO.js","./refresh-cw-OG4-Ic4x.js","./entry-BzQWDj9a.css","./entry-CxmvXNMW.js","./arrow-up-right-CqmbLgtN.js","./Directory-D0rZfh_1.js","./flag-Dtu8lW8f.js","./project-execution-VeMKoL0M.js","./play-DaJyx8oA.js","./use-workspace-query-Csm4EkUU.js","./Directory-ZWl5yZd5.css","./products-BxcSNL_f.js","./products-BTd3YVqO.css","./demand-planning-client-DzZj_Q__.js","./EvidenceSourceGuide-CEmQ3sdi.js","./HelpTip-BcLBMmZW.js","./HelpTip-BsHPhMNf.css","./demand-planning-client-DVOcsKAy.css","./group-B6vAoX5c.js","./ui-public-BJV7qMHh.js","./EmptyState-COLCkhZs.js","./entry-C_j4PEhB.css","./entry-CKQSyMns.js","./entry-DMn_VQx0.js","./entry-B68pyhTH.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as e}from"./chart-column-Dlmnr1y9.js";import{t}from"./chevron-right-CGVsdWp6.js";import{t as n}from"./download-D5rXx5AI.js";import{t as r}from"./git-branch-Cv69GSy-.js";import{t as i}from"./layers-BaGSABxV.js";import{a,c as o,i as s,n as c,p as l,r as u,s as d,t as f,u as p}from"./index-CDS2fIqN.js";import{t as m}from"./module-host-BzwOcfIf.js";import{t as h}from"./workspace-view-state-C1Tia7X4.js";import"./public-DTqkVQos.js";import{n as g,r as _,t as ee}from"./ui-public-BJV7qMHh.js";var v=d(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),y=d(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),b=d(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),x=l(p(),1),S=[{id:`home`,label:`首页`,menus:[[`overview`,`首页总览`],[`recent`,`最近访问`],[`favorites`,`我的收藏`]],note:`从这里继续你的工作`,load:()=>f(()=>import(`./entry-h5lCV6qJ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url)},{id:`market`,label:`市场大盘`,menus:[[`categories`,`类目概览`],[`products`,`商品排行榜`],[`shops`,`店铺排行榜`],[`shop-layout`,`店铺品类布局`],[`favorites`,`我的关注`]],note:`按企业授权查看市场类目`,load:()=>f(()=>import(`./entry-DzUnM_Wl.js`),__vite__mapDeps([14,1,2,15,16,3,17,18,19,5,20,21,8,11,12,22]),import.meta.url)},{id:`overview`,label:`工作台`,menus:[[`overview`,`经营总览`],[`tasks`,`待处理事项`],[`records`,`执行记录`]],shopScope:!0,note:`仅展示当前账号获准的资料`,load:()=>f(()=>import(`./entry-CxmvXNMW.js`),__vite__mapDeps([23,1,2,16,3,24,19,25,26,7,27,28,20,21,8,10,29,11,12,30,31,5,32,33,17,6,34,35,36,37,38,39,40,9,41]),import.meta.url)},{id:`products`,label:`商品`,menus:[[`all`,`全部商品`],[`test`,`新品测试`],[`incubate`,`持续孵化`],[`scale`,`重点推广`],[`unassigned`,`待分组`]],projectMenus:[[`dashboard`,`指标概览`],[`monitor`,`每日监控`],[`optimization`,`商品优化`],[`finance`,`经营核算`],[`fulfillment`,`库存与售后`]],shopScope:!0,note:`仅展示当前账号获准的资料`,projectEntry:!0,load:()=>f(()=>import(`./entry-CKQSyMns.js`),__vite__mapDeps([42,1,2,3,19,31,5,26,28,20,32,7,21,8,38,10,11,12]),import.meta.url)},{id:`projects`,label:`项目`,menus:[[`all`,`全部项目`]],projectMenus:[[`overview`,`项目总览`],[`pipeline`,`完整分析流程`],[`demand`,`需求拆分`],[`content`,`内容检查`],[`visual`,`图片策划`],[`publish`,`上新演练`]],legacyTabs:[`work`],projectPicker:!0,projectEntry:!0,load:()=>f(()=>import(`./entry-DMn_VQx0.js`),__vite__mapDeps([43,1,2,25,16,3,26,7,27,28,20,21,8,10,29,11,12,30]),import.meta.url),shopScope:!0,note:`仅展示当前账号获准的资料`},{id:`data`,label:`资料中心`,menus:[[`all`,`数据集目录`]],projectMenus:[[`data`,`项目数据`],[`files`,`证据附件`],[`wiki`,`分析复盘`],[`insight`,`结论行动`],[`methods`,`任务方法`],[`archive`,`分析任务`]],projectEntry:!0,load:()=>f(()=>import(`./entry-B68pyhTH.js`),__vite__mapDeps([44,1,2,21,8,10,29,11,12]),import.meta.url),shopScope:!0,note:`仅展示当前账号获准的资料`}],C=S.map(e=>[e.id,e.label]),w=Object.fromEntries(S.map(e=>[e.id,e.menus]));function T(e){return S.find(t=>t.id===e)}function E(e){return T(e)?.menus[0]?.[0]||`overview`}function D(e){return T(e)?.label||`工作区`}var O=[`home`,`market`,`overview`,`products`,`projects`,`data`],k=[`overview`,`pipeline`,`work`,`methods`,`demand`,`monitor`,`optimization`,`finance`,`content`,`visual`,`publish`,`fulfillment`,`data`,`dashboard`,`wiki`,`insight`,`files`,`archive`],A={center:!0,centerNav:`home`,section:`overview`,projectId:``,tab:`overview`,step:0,node:``,itemId:``,datasetId:``,wikiRef:``,wikiEntry:``,methodNode:``,methodRecord:``},j={projectId:`project`,node:`node`,itemId:`item`,datasetId:`dataset`,wikiRef:`evidence`,wikiEntry:`record`,methodNode:`methodNode`,methodRecord:`method`};function M(e){let t=new URL(e,`https://omni.local`),n=t.searchParams,r={...A};for(let[e,t]of Object.entries(j))r[e]=(n.get(t)||``).slice(0,256);r.center=n.get(`mode`)===`center`||!n.has(`mode`)&&!r.projectId,O.some(e=>e===n.get(`view`))&&(r.centerNav=n.get(`view`)),k.some(e=>e===n.get(`tab`))&&(r.tab=n.get(`tab`));let i=Number(n.get(`step`));return r.step=Number.isInteger(i)&&i>=0&&i<6?i:0,t.pathname===`/market-overview`&&(r.center=!0,r.centerNav=`market`),t.pathname===`/archive-analysis`&&(r.center=!1,r.tab=`archive`),r.section=w[r.centerNav]?.some(([e])=>e===n.get(`section`))?n.get(`section`):E(r.centerNav),r}function N(e){let t=new URLSearchParams({mode:e.center?`center`:`project`,view:e.centerNav,section:e.section,tab:e.tab});for(let[n,r]of Object.entries(j))e[n]&&t.set(r,e[n]);return e.step&&t.set(`step`,String(e.step)),`/?`+t.toString()}function P(e){return e.center?e.centerNav:S.find(t=>t.projectMenus?.some(([t])=>t===e.tab)||t.legacyTabs?.includes(e.tab))?.id||`projects`}var F=u(),te={home:v,market:e,overview:y,products:i,projects:r,data:a};function ne({projects:e,project:n,route:r,menuOpen:i,busy:a,onClose:l,onProject:u,onCenter:d,onSection:f,onNavigate:p,onCreate:m}){(0,x.useEffect)(()=>{let e=e=>{let t=e.detail;C.some(([e])=>e===t)&&d(String(t))};return window.addEventListener(`omni:navigate`,e),()=>window.removeEventListener(`omni:navigate`,e)},[d]);let h=P(r),g=T(h),_=g?.projectMenus;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`nav`,{className:`ws-module-rail`,"aria-label":`主模块`,children:[(0,F.jsx)(`div`,{className:`ws-rail-mark`,children:(0,F.jsx)(`img`,{src:o,alt:`山海 · OMNI`,width:38,height:38,draggable:!1})}),C.map(([e,t])=>{let n=te[e];return(0,F.jsxs)(`button`,{"aria-label":t,"aria-current":h===e?`page`:void 0,onClick:()=>d(e),children:[(0,F.jsx)(n,{size:21}),(0,F.jsx)(`span`,{children:t})]},e)})]}),(0,F.jsxs)(`aside`,{className:`wb-sidebar ws-sidebar ws-module-sidebar `+(i?`is-open`:``),"aria-label":D(h)+`菜单`,children:[(0,F.jsxs)(`div`,{className:`ws-module-heading`,children:[(0,F.jsx)(`strong`,{children:D(h)}),(0,F.jsx)(`button`,{className:`wb-mobile-close`,"aria-label":`关闭模块菜单`,onClick:l,children:(0,F.jsx)(s,{size:18})})]}),g?.shopScope&&(0,F.jsx)(c,{}),(0,F.jsx)(`nav`,{"aria-label":`模块导航`,children:(0,F.jsx)(`div`,{className:`wb-nav-group ws-context`,children:(w[h]||[]).map(([e,n])=>(0,F.jsxs)(`button`,{className:r.center&&r.section===e?`active`:``,"aria-current":r.center&&r.section===e?`page`:void 0,onClick:()=>f(e),children:[(0,F.jsx)(`span`,{children:n}),(0,F.jsx)(t,{size:14})]},e))})}),g?.projectPicker&&(0,F.jsxs)(`div`,{className:`ws-project`,children:[(0,F.jsxs)(`label`,{children:[`当前项目`,(0,F.jsxs)(`select`,{"aria-label":`当前项目`,value:n?.id||``,disabled:a,onChange:e=>u(e.target.value),children:[(0,F.jsx)(`option`,{value:``,children:`请选择项目`}),e.map(e=>(0,F.jsx)(`option`,{value:e.id,children:e.name},e.id))]})]}),n&&(0,F.jsx)(`small`,{children:n.simulated?`模拟项目`:`资料项目 · 按来源核验`}),(0,F.jsx)(`button`,{className:`ws-new-project`,disabled:a,onClick:m,children:`+ 新建项目`})]}),_&&(0,F.jsxs)(`nav`,{"aria-label":`项目功能`,children:[(0,F.jsxs)(`div`,{className:`wb-nav-group ws-context`,children:[(0,F.jsx)(`p`,{children:n?.name||`项目内功能`}),_.map(([e,t])=>(0,F.jsx)(`button`,{disabled:a,className:!r.center&&r.tab===e?`active`:``,"aria-current":!r.center&&r.tab===e?`page`:void 0,onClick:()=>p(e),children:(0,F.jsx)(`span`,{children:t})},e))]}),h===`projects`&&(0,F.jsxs)(`details`,{className:`ws-history`,children:[(0,F.jsx)(`summary`,{children:`历史工作记录`}),(0,F.jsx)(`button`,{onClick:()=>p(`work`),children:`历史六步工作`})]})]}),(0,F.jsx)(`p`,{className:`ws-module-note`,children:g?.note})]})]})}function re({navigation:e,canGoBack:n,onBack:r,onOpenMenu:i,title:a,dirty:o,children:s}){let c=(0,x.useRef)(null),l=(0,x.useRef)(null);(0,x.useEffect)(()=>{let e=l.current;if(!e)return;let t=()=>{let t=getComputedStyle(e),n=t.position===`sticky`?(parseFloat(t.top)||0)+e.getBoundingClientRect().height:0;c.current?.style.setProperty(`--workspace-sticky-top`,`${n}px`)},n=new ResizeObserver(t);return n.observe(e),window.addEventListener(`resize`,t),t(),()=>{n.disconnect(),window.removeEventListener(`resize`,t)}},[]);let{route:u}=e;return(0,F.jsxs)(`main`,{ref:c,className:`wb-shell wb-unified wb-shared-nav`+(u.center?` wb-mission-home`:``),children:[(0,F.jsx)(`a`,{className:`wb-skip`,href:`#workspace-content`,children:`跳到工作区`}),(0,F.jsx)(ne,{...e}),(0,F.jsxs)(`section`,{className:`main wb-main`,children:[(0,F.jsxs)(`header`,{ref:l,className:`wb-topbar`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`button`,{className:`wb-mobile-menu`,"aria-label":`打开导航`,onClick:i,children:(0,F.jsx)(b,{size:20})}),n&&(0,F.jsx)(`button`,{className:`wb-back`,"aria-label":`返回上一工作位置`,onClick:r,children:`← 返回`}),(0,F.jsx)(`span`,{children:u.center?`全局视图`:`项目工作区`}),(0,F.jsx)(t,{size:14}),(0,F.jsx)(`b`,{children:u.center?D(u.centerNav):a})]}),(0,F.jsx)(`div`,{children:o&&(0,F.jsx)(`span`,{className:`wb-chip warning`,children:`有未保存修改`})})]}),(0,F.jsxs)(`div`,{id:`workspace-content`,className:`wb-content`,tabIndex:-1,children:[s,(0,F.jsx)(`footer`,{children:`新品经营工作台 · 数据有来源,判断有版本,行动可追溯`})]})]})]})}var I=new Map(S.filter(e=>e.load).map(e=>[e.id,(0,x.lazy)(e.load)])),L=class extends x.Component{constructor(...e){super(...e),this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?(0,F.jsxs)(`section`,{role:`alert`,className:`card`,children:[(0,F.jsxs)(`h2`,{children:[this.props.label,`暂时无法打开`]}),(0,F.jsx)(`p`,{children:`可以重试,或从左侧进入其他模块。`}),(0,F.jsx)(`button`,{onClick:this.props.onRetry,children:`重试`})]}):(0,F.jsx)(`div`,{className:`ws-module-surface`,children:this.props.children})}};function R({moduleId:e,section:t,onSection:n,project:r,children:i}){let a=T(e),[o,s]=(0,x.useState)(0),c=I.get(e);function l(){a?.load&&I.set(e,(0,x.lazy)(a.load)),s(e=>e+1)}return(0,F.jsx)(L,{label:a?.label||`模块`,onRetry:l,children:(0,F.jsx)(x.Suspense,{fallback:(0,F.jsxs)(`p`,{role:`status`,children:[`正在打开`,a?.label,`…`]}),children:c?(0,F.jsx)(c,{section:t,onSection:n,project:r}):i})},`${e}:${r?.projectId||`center`}:${o}`)}function ie(e,t=`web`){let n=typeof window<`u`&&!!window.omni,r=e=>e?.scope===t&&e.route?M(N(e.route)):null,[i,a]=(0,x.useState)(()=>typeof window>`u`?{...A}:r(window.history.state?.omniWorkspace)||M(window.location.href)),[o,s]=(0,x.useState)(!1),[c,l]=(0,x.useState)([]);function u(e){e.center&&e.centerNav===`home`||l(t=>[{route:{...e},at:new Date().toISOString()},...t.filter(t=>N(t.route)!==N(e))].slice(0,30))}let d=(0,x.useRef)(i),f=(0,x.useRef)(e),p=(0,x.useRef)(0),m=(0,x.useRef)(!1),h=(0,x.useRef)(new Map),g=(0,x.useRef)(null);f.current=e,d.current=i,(0,x.useEffect)(()=>{let e=window.history.state?.omniWorkspace,i=e?.scope===t?e:null;p.current=Number.isInteger(i?.index)?i.index:0,s(p.current>0),window.history.replaceState({...window.history.state,omniWorkspace:{scope:t,index:p.current,route:d.current}},``,n?window.location.pathname:N(d.current));let o=window.history.scrollRestoration;window.history.scrollRestoration=`manual`;let c=()=>{g.current===null&&h.current.set(p.current,window.scrollY)},l=e=>{if(m.current){m.current=!1;return}let i=e.state?.omniWorkspace,o=i?.scope===t?i.index:0;if(!f.current()){Number.isInteger(o)&&o!==p.current?(m.current=!0,window.history.go(p.current-o)):window.history.replaceState({omniWorkspace:{scope:t,index:p.current,route:d.current}},``,n?window.location.pathname:N(d.current));return}u(d.current),p.current=Number.isInteger(o)?o:0,g.current=h.current.get(p.current)||0,s(p.current>0),a(r(i)||(n?{...A}:M(window.location.href)))};return window.addEventListener(`popstate`,l),window.addEventListener(`scroll`,c,{passive:!0}),()=>{window.removeEventListener(`popstate`,l),window.removeEventListener(`scroll`,c),window.history.scrollRestoration=o}},[]),(0,x.useEffect)(()=>{if(g.current===null)return;let e=g.current,t=performance.now()+2500,n=0,r=()=>{cancelAnimationFrame(n),g.current=null},i=()=>{if(window.scrollTo(0,e),document.documentElement.scrollHeight-window.innerHeight>=e||performance.now()>t){g.current=null;return}n=requestAnimationFrame(i)};return n=requestAnimationFrame(i),window.addEventListener(`wheel`,r,{once:!0,passive:!0}),window.addEventListener(`pointerdown`,r,{once:!0}),()=>{cancelAnimationFrame(n),window.removeEventListener(`wheel`,r),window.removeEventListener(`pointerdown`,r)}},[i]);function _(e,r={}){let i={...d.current,...e};if(N(i)===N(d.current))return!0;if(!r.confirmed&&!f.current())return!1;u(d.current),h.current.set(p.current,window.scrollY),r.replace||(g.current=0),r.replace||p.current++;let o={...window.history.state,omniWorkspace:{scope:t,index:p.current,route:i}};return n?window.history[r.replace?`replaceState`:`pushState`](o,``):window.history[r.replace?`replaceState`:`pushState`](o,``,N(i)),d.current=i,a(i),s(p.current>0),!0}return{route:i,go:_,visits:c,canGoBack:o,back:()=>{p.current>0&&window.history.back()}}}async function z(e=``,t){let n=await fetch(`/api/workbench`+e,{method:t?`POST`:`GET`,headers:t?{"Content-Type":`application/json`}:{},body:t?JSON.stringify(t):void 0}),r=await n.json();if(!n.ok)throw Error(r.error||`操作失败`);return r}function B({historyScope:e=`web`}={}){return(0,F.jsx)(h,{children:(0,F.jsx)(V,{historyScope:e})})}function V({historyScope:e}){let[t,r]=(0,x.useState)([]),[i,a]=(0,x.useState)(null),[o,s]=(0,x.useState)(``),[c,l]=(0,x.useState)(``),[u,d]=(0,x.useState)(!1),[f,p]=(0,x.useState)(!1),[h,v]=(0,x.useState)(!1),[y,b]=(0,x.useState)(!1),[S,C]=(0,x.useState)(0);(0,x.useEffect)(()=>{let e=e=>C(e.detail);return window.addEventListener(`omni:writes`,e),()=>window.removeEventListener(`omni:writes`,e)},[]);let O=(0,x.useRef)(()=>!0),{route:k,go:A,back:j,canGoBack:te,visits:ne}=ie(()=>O.current(),e),{center:I,centerNav:L,tab:B,step:V,node:ae,itemId:H,datasetId:oe}=k,[U,se]=(0,x.useState)(null),[ce,W]=(0,x.useState)(!1),[G,K]=(0,x.useState)(!1),le=_(),q=(0,x.useRef)(new Map),ue=ne.map(e=>({...e,key:N(e.route),moduleLabel:D(P(e.route)),title:e.route.center?D(e.route.centerNav)+` · `+(w[e.route.centerNav]?.find(([t])=>t===e.route.section)?.[1]||`总览`):(t.find(t=>t.id===e.route.projectId)?.name||`项目`)+` · `+(g[e.route.tab]||`项目资料`)}));function de(e){A({center:!0,centerNav:P(k),section:e})&&p(!1)}let[fe,pe]=(0,x.useState)({tab:`overview`}),J=(0,x.useRef)(0),Y=y;function X(e=!0){return u||S?(l(`正在保存,请完成后再切换。`),!1):(Y||e&&G)&&!confirm(`当前有未保存修改,放弃修改并切换?`)?!1:(e&&G&&(K(!1),W(!1)),b(!1),!0)}function Z(e){!I&&e===B||(A({center:!1,tab:e,node:``,datasetId:``,wikiRef:``,wikiEntry:``,methodNode:``,methodRecord:``}),p(!1))}O.current=X;async function Q(){try{r(await z())}catch(e){s(e.message)}}(0,x.useEffect)(()=>{let e=e=>A(M(e.detail));return window.addEventListener(`omni:route`,e),()=>window.removeEventListener(`omni:route`,e)}),(0,x.useEffect)(()=>{Q()},[]),(0,x.useEffect)(()=>{if(!k.projectId){a(null);return}if(i?.project.id===k.projectId)return;let e=++J.current;return v(!0),s(``),z(`/`+encodeURIComponent(k.projectId)).then(t=>{e===J.current&&(a(t),se({id:t.project.id,name:t.project.name}))}).catch(t=>{e===J.current&&(a(null),s(t.message))}).finally(()=>{e===J.current&&v(!1)}),()=>{J.current++}},[k.projectId]),(0,x.useEffect)(()=>{let e=e=>{O.current()||e.preventDefault()};return window.addEventListener(`omni:before-leave`,e),()=>window.removeEventListener(`omni:before-leave`,e)},[]),(0,x.useEffect)(()=>(window.dispatchEvent(new CustomEvent(`omni:workspace-safety`,{detail:{dirty:Y||G,busy:u||S}})),()=>{window.dispatchEvent(new CustomEvent(`omni:workspace-safety`,{detail:{dirty:!1,busy:!1}}))}),[Y,G,u,S]),(0,x.useEffect)(()=>{let e=e=>{(Y||G||u||S)&&(e.preventDefault(),e.returnValue=``)};return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)},[Y,G,u,S]);function me(e){!I&&i&&pe({tab:B,step:V,node:ae,itemId:H,datasetId:oe}),q.current.set(P(k),{...k}),A(q.current.get(e)||{center:!0,centerNav:e,section:E(e)})&&p(!1)}function he(){X()&&(W(!0),p(!1))}async function $(e,t,n=!1){if(!X())return;let r=t?.step??0;A({projectId:e,center:n,tab:t?.tab||`overview`,step:r,node:t?.node||``,itemId:t?.itemId||``,datasetId:t?.datasetId||``,wikiRef:``,wikiEntry:``,methodNode:``,methodRecord:``},{confirmed:!0}),s(``),l(``),p(!1),W(!1)}async function ge(){a(await z(`/`+i.project.id)),B!==`insight`&&b(!1),await Q()}return(0,F.jsxs)(re,{navigation:{projects:t,project:i?.project,route:k,menuOpen:f,busy:u||h||!!S,onClose:()=>p(!1),onProject:e=>$(e,{tab:`overview`}),onCenter:me,onSection:de,onNavigate:Z,onCreate:he},canGoBack:te,onBack:j,onOpenMenu:()=>p(!0),title:B===`archive`?`分析任务`:g[B],dirty:Y||G,children:[o&&(0,F.jsx)(`div`,{role:`alert`,className:`error`,children:o}),c&&(0,F.jsx)(`div`,{role:`status`,className:`notice`,children:c}),ce&&(0,F.jsx)(ee,{api:z,onDirty:K,onBusy:d,onClose:()=>W(!1),onCreated:async(e,t)=>{await Q(),A({projectId:e,center:!1,tab:`overview`,step:0,node:``,itemId:``,datasetId:``,wikiRef:``,wikiEntry:``,methodNode:``,methodRecord:``},{confirmed:!0}),W(!1),K(!1),t&&l(t)}}),!I&&(h||k.projectId&&i?.project.id!==k.projectId&&!o)?(0,F.jsx)(`section`,{className:`card`,children:(0,F.jsx)(`p`,{role:`status`,children:`正在读取项目资料…`})}):I?(0,F.jsxs)(F.Fragment,{children:[U&&L!==`home`&&(0,F.jsxs)(`p`,{className:`pn-return`,children:[(0,F.jsx)(`span`,{children:`当前查看全局资料`}),(0,F.jsxs)(`button`,{onClick:()=>$(U.id,fe),children:[`返回刚才项目:`,U.name]})]}),(0,F.jsx)(m,{value:{layoutScope:e===`web`?void 0:e.split(`:`)[0],api:z,visits:ue,onGo:e=>{A(e)},onOpen:$,onModule:me,onCreate:he,onDirty:b,onBusy:d,onProductGroup:(e,t,n)=>{A({center:!0,centerNav:`products`,section:e})&&le(t?.key,n)}},children:(0,F.jsx)(R,{moduleId:L,section:k.section,onSection:(e,t)=>A({section:e},t)})})]}):i?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`wb-page-heading`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`span`,{className:`wb-kicker`,children:g[B]}),(0,F.jsx)(`h1`,{children:i.project.name}),(0,F.jsxs)(`p`,{children:[(0,F.jsx)(`span`,{className:`wb-chip `+(i.project.simulated?`warning`:``),children:i.project.simulated?`模拟项目 · 非真实经营`:`资料项目 · 真实性按来源核验`}),(0,F.jsxs)(`span`,{className:`muted`,children:[`项目 `,i.project.id.slice(0,8),` · `,i.project.version,` 条阶段版本`]})]})]}),(0,F.jsxs)(`details`,{className:`wb-export-menu`,children:[(0,F.jsxs)(`summary`,{children:[(0,F.jsx)(n,{size:15}),` 导出资料`]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`a`,{href:`/api/workbench/`+i.project.id+`/wiki`,children:`分析 Wiki · Markdown`}),(0,F.jsx)(`a`,{href:`/api/workbench/`+i.project.id+`/export`,children:`完整项目资料包 · JSON`})]})]})]}),T(P(k))?.projectEntry&&(0,F.jsx)(R,{moduleId:P(k),section:B,onSection:e=>Z(e),project:{route:k,onRoute:(e,t)=>{A(e,t)},projectId:i.project.id,data:i,api:z,initialItemId:H,dirty:y,onDirty:b,onBusy:d,onSaved:ge,onPrepare:()=>Z(`data`)}})]}):(0,F.jsxs)(`section`,{className:`card wb-menu-welcome`,children:[(0,F.jsxs)(`h1`,{children:[g[B],` · 先选择项目`]}),(0,F.jsxs)(`p`,{children:[`选好项目就会直接打开`,g[B],`。之后可在左侧直接切换功能。`]}),(0,F.jsxs)(`label`,{children:[`选择项目`,(0,F.jsxs)(`select`,{"aria-label":`主菜单选择项目`,value:``,onChange:e=>e.target.value&&$(e.target.value,{tab:B}),children:[(0,F.jsx)(`option`,{value:``,children:`请选择要处理的项目`}),t.map(e=>(0,F.jsx)(`option`,{value:e.id,children:e.name},e.id))]})]})]})]})}export{B as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.wb-shared-nav{--ws-rail-width:72px;--ws-menu-width:208px;--ws-header-height:0px}.omni-workspace .wb-shared-nav{--ws-header-height:48px}.wb-shared-nav .ws-module-rail{inset:var(--ws-header-height) auto 0 0;width:var(--ws-rail-width);z-index:46;background:var(--omni-bg,var(--omni-paint-surface-0a1729,#0a1729));border-right:1px solid var(--omni-line,var(--omni-paint-line-294468,#294468));flex-direction:column;align-items:center;gap:8px;padding:12px 6px 170px;display:flex;position:fixed;overflow-y:auto}.wb-shared-nav .ws-module-rail button{width:58px;min-height:58px;color:var(--omni-muted,var(--omni-paint-ink-91abc5,#91abc5));white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:9px;flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;gap:6px;padding:7px 2px;font-size:10px;display:flex}.wb-shared-nav .ws-module-rail button[aria-current]{color:var(--omni-accent,var(--omni-paint-accent-61d6f1,#61d6f1));background:var(--omni-panel,var(--omni-paint-surface-132d49,#132d49));border-color:var(--omni-line,var(--omni-paint-line-315775,#315775))}.wb-shared-nav .ws-module-rail button:hover{background:var(--omni-panel,var(--omni-paint-surface-132d49,#132d49))}.ws-rail-mark{flex:0 0 38px;place-items:center;width:38px;height:38px;display:grid}.ws-rail-mark img{object-fit:contain;border-radius:10px;width:38px;height:38px;display:block}.wb-shared-nav .ws-module-sidebar,.omni-workspace .wb-shared-nav .ws-module-sidebar{left:var(--ws-rail-width);top:var(--ws-header-height);width:var(--ws-menu-width);height:calc(100dvh - var(--ws-header-height));z-index:40;padding:22px 12px;display:flex;overflow-y:auto}.wb-shared-nav .wb-main{margin-left:calc(var(--ws-rail-width) + var(--ws-menu-width));width:calc(100% - var(--ws-rail-width) - var(--ws-menu-width))}.ws-module-heading{color:var(--omni-text,var(--omni-paint-ink-d7e8fa,#d7e8fa));justify-content:space-between;align-items:center;padding:4px 12px 22px;font-size:18px;display:flex}.ws-module-sidebar .ws-context{padding-top:0}.ws-module-sidebar .ws-context button{justify-content:space-between;gap:8px;min-height:38px;font-size:12px;display:flex}.ws-module-sidebar .ws-project{border-top:1px solid var(--omni-line,var(--omni-paint-line-294468,#294468));margin-top:12px;padding:12px 8px}.ws-module-note{color:var(--omni-muted,var(--omni-paint-ink-91abc5,#91abc5));margin-top:auto;padding:24px 12px 0;font-size:11px;line-height:1.8}.omni-workspace .omni-workspace-tools,.omni-workspace.omni-sidebar-collapsed .omni-workspace-tools{border:0;border-right:1px solid var(--omni-line);background:var(--omni-bg);z-index:48;border-radius:0;flex-direction:column;justify-content:center;gap:5px;width:72px;height:180px;display:flex;bottom:0;left:0;right:auto}.omni-workspace .omni-workspace-tools .omni-account-popover{bottom:0;left:76px;right:auto}.omni-workspace .omni-workspace-tools .omni-store-popover{bottom:90px;left:76px;right:auto}.omni-workspace .omni-workspace-tools .omni-update-popover{bottom:42px;left:76px;right:auto}.omni-sidebar-collapsed .wb-shared-nav .ws-module-sidebar{display:none}.omni-workspace.omni-sidebar-collapsed .wb-shared-nav.wb-unified .wb-main{width:calc(100% - 72px);margin-left:72px}.wb-shared-nav .ws-module-rail button:focus-visible,.ws-module-sidebar button:focus-visible{outline:2px solid var(--omni-accent,var(--omni-paint-line-61d6f1,#61d6f1));outline-offset:2px}@media (width<=760px){.wb-shared-nav .ws-module-sidebar,.omni-workspace .wb-shared-nav .ws-module-sidebar{display:none}.wb-shared-nav .ws-module-sidebar.is-open,.omni-workspace .wb-shared-nav .ws-module-sidebar.is-open{box-shadow:12px 0 30px var(--omni-paint-shadow-0004,#0004);display:flex}.wb-shared-nav .wb-main{width:calc(100% - 72px);margin-left:72px}}.omni-workspace .wb-shared-nav .ws-module-rail{padding-bottom:12px;bottom:180px}:root[data-omni-theme=light]{--omni-paint-surface-0a1729:#f5f6fa;--omni-paint-line-294468:#dde1eb;--omni-paint-ink-91abc5:#626e80;--omni-paint-accent-61d6f1:#4055db;--omni-paint-surface-132d49:#fff;--omni-paint-line-315775:#dde1eb;--omni-paint-ink-d7e8fa:#252831;--omni-paint-line-61d6f1:#dde1eb;--omni-paint-shadow-0004:#0001}:root[data-omni-theme=dark]{--omni-paint-surface-0a1729:#0b1727;--omni-paint-line-294468:#2c435b;--omni-paint-ink-91abc5:#91a9bd;--omni-paint-accent-61d6f1:#61d3df;--omni-paint-surface-132d49:#102235;--omni-paint-line-315775:#2c435b;--omni-paint-ink-d7e8fa:#dceaf7;--omni-paint-line-61d6f1:#2c435b;--omni-paint-shadow-0004:#0001}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as e,r as t,u as n}from"./index-CDS2fIqN.js";var r=e(n(),1),i=t(),a=(0,r.createContext)(null);function o({children:e}){let t=(0,r.useRef)(new Map);return(0,i.jsx)(a.Provider,{value:t.current,children:e})}function s(e,t){let n=(0,r.useContext)(a),[i,o]=(0,r.useState)(()=>n?.has(e)?n.get(e):t);return[i,(0,r.useCallback)(t=>{o(r=>{let i=typeof t==`function`?t(r):t;return n?.set(e,i),i})},[n,e])]}export{s as n,o as t};
|
package/app/index.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
|
-
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>山海 · OMNI</title> <script type="module" crossorigin src="./assets/index-
|
|
3
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
2
|
+
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>山海 · OMNI</title> <script type="module" crossorigin src="./assets/index-CDS2fIqN.js"></script>
|
|
3
|
+
<link rel="stylesheet" crossorigin href="./assets/index-DYn6t59z.css">
|
|
4
4
|
</head><body><div id="root"></div></body></html>
|
package/package.json
CHANGED
package/release.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"package":"@petercjl/omni-desktop-app","version":"0.1.
|
|
1
|
+
{"package":"@petercjl/omni-desktop-app","version":"0.1.5","contract":1,"minShell":"0.1.0","notes":"店铺品类分析接入真实市场数据,支持三店对比、账号方案自动保存、商品筛选及图表滚轮平移和缩放。","files":{"app/assets/activity-Cj90ZCJa.js":"5801e52ada396dceb4d091bbdb0d90fb1fbfbd927728939402801619281a41b0","app/assets/arrow-right-Bsei-31a.js":"51faa7653b253677c9bc2d36e80dfbbd20b64745e057f53b18d9178b30e74236","app/assets/arrow-up-right-CqmbLgtN.js":"0e572b75f058e65462cc2461ff1dc74fd20293da2d96edb29e745b85911dd2d8","app/assets/chart-column-Dlmnr1y9.js":"80256d59c938654c0144498505dbbd1d6ad327135c74c9b08d93c26b7ecde7e6","app/assets/check-QN7RSzdG.js":"97c8e47fdc209f02ab3ccab7a190878e1fedab3884c9333d6c5ba86ccd6adef9","app/assets/chevron-down-BoU_rWJ-.js":"4627eed47f4f28e42018bbf6d7d6b4c7913900b60f64ae7d18e6e2f647085692","app/assets/chevron-left-D1Tjivki.js":"8069d7af440598887f665b2d77430b53da62fcc2c552f196da048ecb010fdd62","app/assets/chevron-right-CGVsdWp6.js":"e104d47eb0683208932c62a2fe12415f1e093c3158b99f29ec29767bc1ea48f6","app/assets/clock-3-B99KnTzW.js":"e7381a05d67cc5f6b3cee8f342505501b5fbc4c724c717b4d6fcdf897eb90e02","app/assets/demand-planning-client-DVOcsKAy.css":"bec6219681beb8cb2425fe04651544b3f79a969b69c7655e3c748b50eb12513f","app/assets/demand-planning-client-DzZj_Q__.js":"6fbbc48741a49825f6286c06157789f60fb21038b7bd9af6d4f634dc4781796c","app/assets/Directory-D0rZfh_1.js":"728028f0ab367e0081fa2ccbabbfcdb08e49ce404f7a8bd708166e299d48f8f1","app/assets/Directory-ZWl5yZd5.css":"f032265521393d065b21a6b22258576ad0da403ae12bdd89ceaf2b633d46c15d","app/assets/download-D5rXx5AI.js":"6d8139ba5d85e623ff81a5d328b85882da8d3fcb7ce04de16f8f0ef6d959a541","app/assets/EmptyState-COLCkhZs.js":"017ce725b490824b56c7415a4d6b49cb86b4167889f85c11df357867cd5ca1c7","app/assets/entry-B68pyhTH.js":"c9bc8d8f909742ea9b164bd67b95ca86fdf34590420f3ca5b543547b6a704c3e","app/assets/entry-BzQWDj9a.css":"130d828330419c7ec93de107f7da55c75eeba7b6ca91f98cd2eac49d5de46aac","app/assets/entry-C_j4PEhB.css":"5be5544292c77c0046c5e1d9a4e17c18855463b49434ae87870621c86fd0c5f2","app/assets/entry-CKQSyMns.js":"88fb0de5ecc9a886cadc63719fa64a4f9940b6950d7673acdd4318cbc1d4af78","app/assets/entry-CxmvXNMW.js":"b6f08871eb1e5ac4b808eec94c579991c2e803bef521588c174b478c7739e97c","app/assets/entry-DMn_VQx0.js":"aa814831661e688dc2cdb215d0e3f205afd7c957756926f153d0ba77faecd3fe","app/assets/entry-DzUnM_Wl.js":"471d09d955f374daaf538918d1fc190a8d981d5dd3a437c4b6c461166da1c40c","app/assets/entry-h5lCV6qJ.js":"599dd5458f321bcefb729da8f8dccca560deea099d9b19b58dd003938c4c04c1","app/assets/entry-OPB3MGoc.css":"b384f9994467e6d57bad658a7bd68bca237a217b11138872bd6567c052acead9","app/assets/EvidenceSourceGuide-CEmQ3sdi.js":"8df14f2bf96c2da72cfeefeffb171114f5d6952c7832c07d50be592b00d4b4ff","app/assets/flag-Dtu8lW8f.js":"bc4b324761414918cc550e2898ef722966a361aee40e1d92ba3552018eac2bdc","app/assets/git-branch-Cv69GSy-.js":"5a12cf5a8b29840b399d3a3c6d61a9ac630adc1ffe81f54e4b57f8ac855ee13e","app/assets/group-B6vAoX5c.js":"47396b70d69877c331bddf523def70b8bef2b85b3d1f92bfb9730581002e14a1","app/assets/HelpTip-BcLBMmZW.js":"35a721b431ef5738b22e7f803fb00d4b0faecf744f0cfc5909be99be082ef63b","app/assets/HelpTip-BsHPhMNf.css":"d230df3d7c35c9c41ee16dddcc041978846c541afdbaf751f1bfdd7a8aba40e3","app/assets/index-CDS2fIqN.js":"a02dbc366760ba1a2d42782e4dbcd692ffca809df6459ae79f9c3ec36d3f14ae","app/assets/index-DYn6t59z.css":"2a27d0ca913b4e581b49fcae93235366405f1da3a9d149da390021637d191293","app/assets/layers-BaGSABxV.js":"df3f1c2f5520c86177927206d6a9b0ab1c0a2b4b339f312e0996714f77c73dbb","app/assets/LineChart-DC_iIB4m.js":"1ad44046777ab4e0fa6f14f8d6b1aa1f3f2a52aaec2999c6b41b1f7b11f50384","app/assets/module-host-BzwOcfIf.js":"bc7cdb2c96175222c89d5e42f8ee44beacbe502152cf4816ef898223d900be8f","app/assets/omni-icon-BRcRA37-.png":"51b4e6d702078b9a721298ab8b8347549cef22123fed139d2a743132e404fff7","app/assets/play-DaJyx8oA.js":"009266413072efaa6924d99bf9e0c21e861c1d444771a9ba09545004a8bf453b","app/assets/plus-D0cC0DpO.js":"7812cf3133e32278f4c6fa7f62b92e4508287c16c26e1ce9206245b89a2db35c","app/assets/products-BTd3YVqO.css":"96a18ed8b72f1ab12eb426d601efee6857382298f7cd80ffadfc3f2eb4312229","app/assets/products-BxcSNL_f.js":"9bea9f88fd9638cdb9e42d9f7b2dc84bae6b55b018b337543e7efe9f3c78b39c","app/assets/project-execution-VeMKoL0M.js":"63ab852362a64e981f792d981e4f3409110243bbbe75528f748530df2832e0e9","app/assets/project-public-D9ifVghn.js":"402d126f3cdc0bdf1ae876b17809b5b7e740ca176900826e79514b6063fa3a8c","app/assets/project-public-D9qvuaHV.js":"93573f5f55c735d8381f8645d6091b00895ad977f75b83b634d5b09a9d1a5206","app/assets/project-public-DxYr-zt5.js":"127827ae07ad28818bd7cbe0f6958a9146d1af25a413e29a758f5a568c070b5b","app/assets/project-public-IxjCdnaB.css":"bd02bcfda9b3694b8f7b39280d3740bfa538de5b8b36ac41d8aed579240d57cc","app/assets/public-DTqkVQos.js":"27f12746651562565a759945052a6daff29b342a1658a2851ad1b636a12deb35","app/assets/refresh-cw-OG4-Ic4x.js":"3ea9658c9b4d61dc3e96050f1ca871455766b31bcb7002b3c0ac6cb0f0fb6575","app/assets/search-I3gdKVV9.js":"e596990eb096e62f32cff0db7eacc6bf51ef6b8183a233f46f76841a7296efea","app/assets/ui-public-BJV7qMHh.js":"ae603783e5a6d92ffb928b5f5af4232e4cadfe7805b3fd201d4d311a889e3912","app/assets/use-workspace-query-Csm4EkUU.js":"936fe58705b4de013a9b689b14b15658f61cd6c0648d228ad3c4692f9abf3ec4","app/assets/workbench-BeiscSvD.js":"e448873764ac8c764836c40c36c8dc3165ec1cfb77f3acec36bc6676b8bc60de","app/assets/workbench-CrImV0L7.css":"da3929727cbccafc2acc5850c9a23e07186082b794ffb7accb3256042095605f","app/assets/workspace-view-state-C1Tia7X4.js":"45a7dafc6403de86d51c7fad1e1d018b864024ef93298355f1770bed1ecf037d","app/index.html":"f5dd93257f9572639e7ab796cda13204993be3beecce81145916e4c1b9f6efc7"}}
|
package/release.sig
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
mDH5ucql/oHYH5qVJZSpE3GdthjyB+2ud7zsopiEI3KIQDRu7pr5cXQEuhyUZ7ko8S5+Tc8KAdy0DIadw0/SBA==
|