@petercjl/omni-desktop-app 0.1.6 → 0.1.7
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/{CartesianChart-BLyO9U-C.js → CartesianChart-acGhtLrw.js} +4 -4
- package/app/assets/CollaborationWorkspace-DAWo2Vol.js +57 -0
- package/app/assets/EmptyState-BgcduNtk.js +1 -0
- package/app/assets/{EvidenceSourceGuide-BqwES_45.js → EvidenceSourceGuide-qBsaH1fx.js} +1 -1
- package/app/assets/Favorites-C3gPJxbl.js +1 -0
- package/app/assets/{HelpTip-DgowTr-K.js → HelpTip-X4GpEnvk.js} +1 -1
- package/app/assets/{LineChart-BOoSfV72.js → LineChart-CyiCaQMM.js} +1 -1
- package/app/assets/Opportunities-CogyuZvI.css +1 -0
- package/app/assets/Opportunities-DDR6jMz5.js +1 -0
- package/app/assets/ProgressiveRows-DPZqhsXV.js +1 -0
- package/app/assets/ShopLayoutPage-7lNMFD1W.js +1 -0
- package/app/assets/ShopLayoutPage-BlPpfB06.css +1 -0
- package/app/assets/{TrendChart-ozEGn1ai.js → TrendChart-ClEBAnKO.js} +1 -1
- package/app/assets/api-DP_rt0Zx.js +1 -0
- package/app/assets/arrow-left-rfprDrQc.js +1 -0
- package/app/assets/arrow-up-right-Bp3gzP7v.js +1 -0
- package/app/assets/chart-no-axes-combined-dFluBLOV.js +1 -0
- package/app/assets/check-DokC3Ug0.js +1 -0
- package/app/assets/chevron-down-CHQKhw_4.js +1 -0
- package/app/assets/chevron-right-2HEa4oQb.js +1 -0
- package/app/assets/clock-3-DpvJxor3.js +1 -0
- package/app/assets/components-zDEQpnyp.js +2 -0
- package/app/assets/{download-DYUXwy45.js → download-BQwcTDwB.js} +1 -1
- package/app/assets/entry-BNiO6CiP.js +2 -0
- package/app/assets/entry-B_LLuTIf.css +1 -0
- package/app/assets/entry-BleRLT_W.js +1 -0
- package/app/assets/entry-CO870j9p.css +1 -0
- package/app/assets/entry-CYsrxe4a.js +2 -0
- package/app/assets/entry-D2FD-KFx.js +1 -0
- package/app/assets/entry-DAnTlYgL.js +1 -0
- package/app/assets/entry-DSEbJ79v.js +2 -0
- package/app/assets/{file-text-BE0hF4rH.js → file-text-DF8-c_Tb.js} +1 -1
- package/app/assets/git-branch-CMQGDByc.js +1 -0
- package/app/assets/{grid-2x2-lULFcGs7.js → grid-2x2-BNdV1X54.js} +1 -1
- package/app/assets/{index-Cez2mr3h.js → index-BBySSIJT.js} +2 -2
- package/app/assets/{layers-shcwXKIH.js → layers-BY0DtVnH.js} +1 -1
- package/app/assets/{link-2-BlbKNthn.js → link-2-B7GAWapc.js} +1 -1
- package/app/assets/{list-CrDQ8uHL.js → list-DrSHrHvT.js} +1 -1
- package/app/assets/module-host-BHOsDk69.js +1 -0
- package/app/assets/package-C_xD77DO.js +1 -0
- package/app/assets/{pin-C4E_u351.js → pin-BEsLCHJL.js} +1 -1
- package/app/assets/plus-C301wuGJ.js +1 -0
- package/app/assets/{products-fIIO39ry.js → products-CfPFkCnk.js} +1 -1
- package/app/assets/{project-public-DCJ5Ry0f.js → project-public-CYza4XVS.js} +2 -2
- package/app/assets/{project-public-4Gjaxeyh.js → project-public-DqjxO6ad.js} +1 -1
- package/app/assets/public-DoBzMSlG.js +1 -0
- package/app/assets/{refresh-cw-C_4G0Mri.js → refresh-cw-BZ6-gKfF.js} +1 -1
- package/app/assets/{create-intent-ZWl5yZd5.css → ui-public-BPe2GJZ-.css} +1 -1
- package/app/assets/ui-public-CX7L8QF_.js +1 -0
- package/app/assets/use-favorites-ChTJGQkB.js +1 -0
- package/app/assets/workbench-BCuh9Nyq.js +2 -0
- package/app/assets/workspace-view-state-CYNxOsyc.js +1 -0
- package/app/index.html +1 -1
- package/package.json +1 -1
- package/release.json +1 -1
- package/release.sig +1 -1
- package/app/assets/EmptyState-Cgx7dIy3.js +0 -1
- package/app/assets/Favorites-JpOkiZFS.js +0 -1
- package/app/assets/ShopLayoutPage-BPjWnPjn.css +0 -1
- package/app/assets/ShopLayoutPage-xv0PhUXv.js +0 -1
- package/app/assets/api-DTsZ_OeY.js +0 -1
- package/app/assets/arrow-right-DMEu-HBO.js +0 -1
- package/app/assets/arrow-up-right-Bi_SzYu1.js +0 -1
- package/app/assets/chart-column-x5fvXs9m.js +0 -1
- package/app/assets/check-qCcwSYDE.js +0 -1
- package/app/assets/chevron-down-p3oUrcsv.js +0 -1
- package/app/assets/chevron-right-DqmFJybY.js +0 -1
- package/app/assets/clock-3-BThph9Fd.js +0 -1
- package/app/assets/components-BVWswT0B.js +0 -2
- package/app/assets/create-intent-9uYVhJHt.js +0 -1
- package/app/assets/demand-planning-client-DVOcsKAy.css +0 -1
- package/app/assets/demand-planning-client-cRvN3aET.js +0 -130
- package/app/assets/entry-BXB2Nzyc.js +0 -2
- package/app/assets/entry-BxaHKvMx.js +0 -2
- package/app/assets/entry-C3TFTQrn.js +0 -1
- package/app/assets/entry-C_j4PEhB.css +0 -1
- package/app/assets/entry-Crfux-R-.js +0 -1
- package/app/assets/entry-DQpz8kvM.js +0 -58
- package/app/assets/entry-WYptT5dv.js +0 -2
- package/app/assets/flag-DspBXBR4.js +0 -1
- package/app/assets/git-branch-BAJikW8Q.js +0 -1
- package/app/assets/module-host-CyMfvPpR.js +0 -1
- package/app/assets/play-D07b6r1X.js +0 -1
- package/app/assets/plus-iTTlNMxD.js +0 -1
- package/app/assets/project-execution-DMEIpSz3.js +0 -1
- package/app/assets/project-public-tKjd5rma.js +0 -1
- package/app/assets/public-BlU5YmdO.js +0 -1
- package/app/assets/search-CUzSX_06.js +0 -1
- package/app/assets/ui-public-9lmhhAop.js +0 -1
- package/app/assets/use-favorites-BOjIArhk.js +0 -1
- package/app/assets/use-workspace-query-C-vrOrvK.js +0 -1
- package/app/assets/workbench-BMO5cSO0.js +0 -2
- package/app/assets/workspace-view-state-CRfq5jgZ.js +0 -1
- /package/app/assets/{entry-DHP4cb-p.css → CollaborationWorkspace-DHP4cb-p.css} +0 -0
- /package/app/assets/{activity-BV0UMcx6.js → activity-idEO2qnr.js} +0 -0
- /package/app/assets/{format-BCxMsVJh.js → format-jsGSJ1GL.js} +0 -0
- /package/app/assets/{graphicalItemSelectors-DGWLDzMl.js → graphicalItemSelectors-GhHIivGe.js} +0 -0
- /package/app/assets/{group-eZxxe_Hb.js → group--adLvfC6.js} +0 -0
- /package/app/assets/{market.module-vHIsXpQH.js → market.module-BXeOH_ee.js} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./project-public-DCJ5Ry0f.js","./index-Cez2mr3h.js","./index-7NKGenq7.css","./arrow-up-right-Bi_SzYu1.js","./link-2-BlbKNthn.js","./chevron-right-DqmFJybY.js","./download-DYUXwy45.js","./file-text-BE0hF4rH.js","./plus-iTTlNMxD.js","./search-CUzSX_06.js","./workspace-view-state-CRfq5jgZ.js","./EmptyState-Cgx7dIy3.js","./layers-shcwXKIH.js","./HelpTip-DgowTr-K.js","./HelpTip-BsHPhMNf.css","./project-public-IxjCdnaB.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{t as e}from"./refresh-cw-C_4G0Mri.js";import{t}from"./search-CUzSX_06.js";import{a as n,g as r,p as i,t as a}from"./index-Cez2mr3h.js";import{n as o}from"./module-host-CyMfvPpR.js";import{n as s}from"./workspace-view-state-CRfq5jgZ.js";import"./public-BlU5YmdO.js";import{t as c}from"./use-workspace-query-C-vrOrvK.js";var l=r(i(),1);async function u(e){let t=await e(`/growth-center?view=catalog`);if(!t||typeof t!=`object`||!(`catalog`in t)||!Array.isArray(t.catalog)||!(`updatedAt`in t)||typeof t.updatedAt!=`string`)throw Error(`资料目录格式异常,请刷新重试`);if(!t.catalog.every(e=>e&&typeof e.id==`string`&&typeof e.project==`string`&&typeof e.title==`string`&&typeof e.created==`string`&&typeof e.mode==`string`))throw Error(`资料目录记录不完整`);return t}var d=n();function f(){let{api:n,onOpen:r}=o(),{data:i,error:a,busy:f,refresh:p}=c((0,l.useCallback)(()=>u(n),[n])),[m,h]=s(`resources.scope`,`real`),[g,_]=s(`resources.query`,``),v=(i?.catalog||[]).filter(e=>m===`stored-demo`?e.mode===`simulated`:e.mode!==`simulated`),y=[...v].reverse().filter(e=>`${e.title} ${e.projectName} ${e.source}`.toLowerCase().includes(g.toLowerCase())),b={simulated:`模拟数据`,"declared-real":`来源标注真实`,unverified:`来源待核实`};return(0,d.jsx)(`div`,{className:`resources-module gw`,children:(0,d.jsxs)(`div`,{className:`gw-body`,children:[(0,d.jsxs)(`header`,{className:`gw-header`,children:[(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`small`,{children:`工作台 / 数据中心`}),(0,d.jsx)(`h1`,{children:`经营数据中心`})]}),(0,d.jsxs)(`div`,{className:`gw-header-actions`,children:[(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`i`,{className:`gw-dot`}),m===`stored-demo`?`模拟归档 · 非真实经营`:`归档数据 · 非实时`]}),(0,d.jsxs)(`button`,{onClick:()=>p(),disabled:f,children:[(0,d.jsx)(e,{size:14}),f?`读取中`:`刷新数据`]})]})]}),(0,d.jsxs)(`div`,{className:`gw-scope`,children:[(0,d.jsx)(`div`,{children:[[`real`,`非模拟资料`],[`stored-demo`,`模拟资料`]].map(([e,t])=>(0,d.jsx)(`button`,{"aria-pressed":m===e,onClick:()=>h(e),children:t},e))}),(0,d.jsx)(`span`,{children:i?`${new Date(i.updatedAt).toLocaleString(`zh-CN`)} 读取归档`:`正在读取归档…`})]}),a&&(0,d.jsxs)(`p`,{role:`alert`,className:`gw-message`,children:[a,` `,(0,d.jsx)(`button`,{onClick:()=>p(),children:`重试`})]}),(0,d.jsxs)(`section`,{className:`gw-panel`,children:[(0,d.jsxs)(`div`,{className:`gw-section-title`,children:[(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`h2`,{children:`数据资产目录`}),(0,d.jsx)(`p`,{children:`按项目保存原件,每份资料都有来源和日期。`})]}),(0,d.jsxs)(`span`,{children:[v.length,` 个数据集`]})]}),(0,d.jsx)(`div`,{className:`gw-filters`,children:(0,d.jsxs)(`label`,{children:[(0,d.jsx)(t,{size:14}),(0,d.jsx)(`input`,{"aria-label":`搜索经营数据集`,value:g,onChange:e=>_(e.target.value),placeholder:`搜索数据集、项目或来源`})]})}),(0,d.jsx)(`div`,{className:`gw-table-scroll`,children:(0,d.jsxs)(`table`,{children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{children:`数据集`}),(0,d.jsx)(`th`,{children:`所属项目`}),(0,d.jsx)(`th`,{children:`统计时间`}),(0,d.jsx)(`th`,{children:`数据状态`}),(0,d.jsx)(`th`,{children:`记录数`}),(0,d.jsx)(`th`,{children:`查看`})]})}),(0,d.jsx)(`tbody`,{children:y.map(e=>(0,d.jsxs)(`tr`,{children:[(0,d.jsxs)(`td`,{children:[(0,d.jsx)(`b`,{children:e.title}),(0,d.jsx)(`small`,{children:e.source||`未提供来源`})]}),(0,d.jsx)(`td`,{children:e.projectName}),(0,d.jsxs)(`td`,{children:[e.period||`未标注统计窗口`,(0,d.jsxs)(`small`,{children:[`归档 `,e.created.slice(0,10)]})]}),(0,d.jsx)(`td`,{children:b[e.mode]}),(0,d.jsx)(`td`,{children:e.rowCount}),(0,d.jsxs)(`td`,{children:[(0,d.jsx)(`a`,{href:`/api/workbench/`+e.project+`/file/`+e.id,children:`原件`}),(0,d.jsx)(`button`,{onClick:()=>r(e.project,{tab:`data`,datasetId:e.id}),children:`项目数据`})]})]},e.id))})]})}),!y.length&&!a&&(0,d.jsx)(`p`,{role:`status`,children:f?`正在读取资料…`:g?`没有匹配的数据集,请调整搜索。`:`当前资料范围没有数据集。`})]})]})})}var p=(0,l.lazy)(()=>a(()=>import(`./project-public-DCJ5Ry0f.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url));function m({section:e,project:t}){return t?(0,d.jsx)(l.Suspense,{fallback:(0,d.jsx)(`p`,{role:`status`,children:`正在打开项目资料…`}),children:(0,d.jsx)(p,{section:e,project:t})}):(0,d.jsx)(f,{})}export{m as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as e}from"./index-Cez2mr3h.js";var t=e(`flag`,[[`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1jaruq`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as e}from"./index-Cez2mr3h.js";var t=e(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,g as t,p as n}from"./index-Cez2mr3h.js";var r=t(n(),1),i=e(),a=(0,r.createContext)(null);function o({value:e,children:t}){return(0,i.jsx)(a.Provider,{value:e,children:t})}function s(){let e=(0,r.useContext)(a);if(!e)throw Error(`模块需要在授权工作区中打开`);return e}export{s as n,o as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as e}from"./index-Cez2mr3h.js";var t=e(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as e}from"./index-Cez2mr3h.js";var t=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as e}from"./index-Cez2mr3h.js";var t=e(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),n=[[`建项目与证据登记`,[`project-scope`,`evidence-register`]],[`找市场`,[`market-screen`,`category-price-competition`,`price-band-audience`]],[`关键词需求`,[`keyword-clean`,`keyword-needs`,`keyword-market`,`keyword-battlefield`,`market-demand-cycle`]],[`找对标`,[`competitor-select`,`competitor-compare`,`cross-industry-reference`]],[`买家原声与需求汇总`,[`reviews-intake`,`reviews-label`,`questions-intake`,`questions-label`,`social-context`,`needs-synthesis`]],[`产品与供应`,[`product-facts`,`supply-check`]],[`成本与价格`,[`cost-input`,`cost-scenario`]],[`定位与卖点`,[`positioning`,`claim-evidence`]],[`逐屏与视频策划`,[`page-tasks`,`video-script`]],[`标题与SKU`,[`title-sku`]],[`素材生产与审核`,[`asset-production`,`asset-preflight`,`human-review`,`material-freeze`]],[`上架检查与批准`,[`listing-precheck`,`listing-approval`]],[`提交与回读`,[`listing-submit`,`listing-readback`]],[`店铺链接三梯队`,[`store-tier-baseline`,`link-tier-candidates`,`tier-stability-review`]],[`观察与复盘`,[`observe-baseline`,`daily-observe`,`effect-review`,`method-candidate`]]],r={schema_version:`1.0`,version:`adapter-plan/0.1.0`,as_of:`2026-11-04`,warning:`Design references, not registered operation IDs or live requests. Null means unknown, not optional.`,adapters:[{id:`A01`,name:`叶子类目解析`,status:`documented_registered`,operation_id:`item.category-search`,documented_command:`sycmcli category search`,documented_http_method:`GET`,documented_path:`/cc/common/category/getStdCate.json`,business_parameters:[`keyWord`],field_mapping:{cateId:`category_id`,cateFullName:`category_path`,isLeaf:`is_leaf`,cateFlag:`category_flag`},source_refs:[`W01`,`W06`,`S02`],auth_contract:`sycm-meta`,live_verified_this_task:!1,execution_enabled:!1,registration_verified_now:!1,request_template_is_runnable:!1,credential_fields_allowed_in_analysis:[],gap:`需isLeaf=true;跨平台类目不能只按ID相等`},{id:`A02`,name:`类目价格段`,status:`documented_friendly`,operation_id:null,documented_command:`sycmcli price segments`,documented_http_method:null,documented_path:null,business_parameters:[`cate_id`,`date_type`],field_mapping:{},source_refs:[`S01`,`S02`],auth_contract:`sycm-meta`,live_verified_this_task:!1,execution_enabled:!1,registration_verified_now:!1,request_template_is_runnable:!1,credential_fields_allowed_in_analysis:[],gap:`确切输出JSON键及分段参数flag待核;不能用单品price-band替代`},{id:`A03`,name:`SYCM市场商品榜`,status:`documented_friendly`,operation_id:null,documented_command:`sycmcli item rank`,documented_http_method:`GET`,documented_path:`/mc/mq/mkt/item/offline/rank.json`,business_parameters:[`cateId`,`dateRange`,`dateType`,`rankType`,`indexCode`,`sellerType`,`page`,`pageSize`],field_mapping:{itemId:`item_id`,title:`title`,shopTitle:`shop_name`,payByrCnt:`pay_buyers`,uv:`visitors`,coreKeywords:`platform_core_keywords`,rankCycleCqc:`rank_change`},source_refs:[`W01`,`S02`],auth_contract:`sycm-meta`,live_verified_this_task:!1,execution_enabled:!1,registration_verified_now:!1,request_template_is_runnable:!1,credential_fields_allowed_in_analysis:[],gap:`本映射为文档normalized示例;raw对象结构不同。priceSeg可选;店铺榜未补全`},{id:`A04`,name:`DMP类目分价格带榜`,status:`documented_unregistered`,operation_id:null,documented_command:null,documented_http_method:`POST`,documented_path:`/api/subdivide/market/ranking/list`,business_parameters:[`cateId`,`periodType`,`date`,`subjectType`,`rankType`,`minPrice`,`maxPrice`,`properties`,`options`],field_mapping:{itemId:`item_id`,shopId:`shop_id`,alipayQuantity:`paid_units`,pvCnt:`page_views`,schCnt:`search_count`,adClick:`paid_clicks`,roi:`roi`},source_refs:[`W02`,`W06`],auth_contract:`dmp-magix`,live_verified_this_task:!1,execution_enabled:!1,registration_verified_now:!1,request_template_is_runnable:!1,credential_fields_allowed_in_analysis:[],gap:`包装返回路径/边界开闭/当前注册能力待核;500条静默截断;roi可能不可用`},{id:`A05`,name:`前台关键词商品样本`,status:`manual_import`,operation_id:null,documented_command:`sealseek取数:市场数据`,documented_http_method:null,documented_path:null,business_parameters:[`platform`,`query_from_form`,`sort_from_form`,`pages_from_form`],field_mapping:{},source_refs:[`W04`],auth_contract:`managed_first_party_session`,live_verified_this_task:!1,execution_enabled:!1,registration_verified_now:!1,request_template_is_runnable:!1,credential_fields_allowed_in_analysis:[],gap:`仅能力名称及表单流程有文档;exact参数和响应shape待接入方提供`},{id:`A06`,name:`SYCM类目关键词热榜`,status:`documented_friendly`,operation_id:null,documented_command:`sycmcli keyword rank`,documented_http_method:`GET`,documented_path:`/mc/mq/mkt/keyword/rank/pro.json`,business_parameters:[`cateId`,`kwType`,`rankType`,`dateType`,`dateRange`,`page`,`pageSize`],field_mapping:{"rn.value":`rank`,"searchWord.value":`word`,"seIpvUvHits.value":`search_popularity`,"payRate.value":`pay_rate`,"clickThroughRate.value":`ctr`,"freeClkRate.value":`organic_click_rate`},source_refs:[`W01`,`S02`,`T03`],auth_contract:`sycm-meta`,live_verified_this_task:!1,execution_enabled:!1,registration_verified_now:!1,request_template_is_runnable:!1,credential_fields_allowed_in_analysis:[],gap:`此为raw映射;friendly normalized字段待核;仅hot/search;20条/页`},{id:`A07`,name:`阿里妈妈词行业类目匹配`,status:`documented_unregistered`,operation_id:null,documented_command:null,documented_http_method:`POST`,documented_path:`/cube/triggerDynamicModule.json`,business_parameters:[`moduleId`,`params`],field_mapping:{},source_refs:[`W03`],auth_contract:`alimama-access`,live_verified_this_task:!1,execution_enabled:!1,registration_verified_now:!1,request_template_is_runnable:!1,credential_fields_allowed_in_analysis:[],gap:`moduleId=1571;params具体schema与返回类目映射待核`},{id:`A08`,name:`阿里妈妈关键词日趋势`,status:`documented_unregistered`,operation_id:null,documented_command:null,documented_http_method:`POST`,documented_path:`/cube/triggerDynamicModule.json`,business_parameters:[`moduleId`,`params.wordCategoryList`,`params.startTime`,`params.endTime`],field_mapping:{theDate:`date`,"<word>impressionIndex":`impression_index`,"<word>clickIndex":`click_index`,"<word>ctr":`ctr`,"<word>cvr":`cvr`,"<word>avgPrice":`market_avg_price`},source_refs:[`W03`,`T03`],auth_contract:`alimama-access`,live_verified_this_task:!1,execution_enabled:!1,registration_verified_now:!1,request_template_is_runnable:!1,credential_fields_allowed_in_analysis:[],gap:`moduleId=1541;data.compList动态键和chartGroup[]必须实测;详细params仅附件;均价单位未确认`},{id:`A09`,name:`商品浏览人群画像(可选补充)`,status:`documented_unregistered`,operation_id:null,documented_command:null,documented_http_method:`POST`,documented_path:`/api/dmp/insight/tag/chart`,business_parameters:[`appCode`,`selectTagOptionSetDTO`,`needUnknown`,`tagId`],field_mapping:{"data.result.chartDataFull[].optionValue":`option_value`,"data.result.chartDataFull[].optionName":`option_label`,"data.result.chartDataFull[].optionNum":`coverage_count`,"data.result.chartDataFull[].rate":`share`},source_refs:[`W02`],auth_contract:`dmp-magix`,live_verified_this_task:!1,execution_enabled:!1,registration_verified_now:!1,request_template_is_runnable:!1,credential_fields_allowed_in_analysis:[],gap:`283736=商品行为;303280值1=浏览,303281值30=最近30天,不能当类目购买金额群体`},{id:`A10`,name:`类目金额人群覆盖`,status:`documented_unregistered`,operation_id:null,documented_command:null,documented_http_method:null,documented_path:`/api/dmp/v2/analysis/coverage`,business_parameters:[],field_mapping:{},source_refs:[`W02`],auth_contract:`dmp-magix`,live_verified_this_task:!1,execution_enabled:!1,registration_verified_now:!1,request_template_is_runnable:!1,credential_fields_allowed_in_analysis:[],gap:`方法/请求/响应未验证;本机手册明确未单独验证`},{id:`A11`,name:`类目购买金额画像`,status:`attachment_only`,operation_id:null,documented_command:null,documented_http_method:`POST`,documented_path:`/api_2/analysis/tag/<tagId>`,business_parameters:[`selectTagOptionSet`,`crowdId`,`needUnknown`],field_mapping:{"data.chartDataFull[].optionName":`option_label`,"data.chartDataFull[].optionNum":`coverage_count`,"data.chartDataFull[].rate":`share`,"data.chartDataFull[].ctrIndex":`category_ctr_index`,"data.chartDataFull[].ppcIndex":`category_ppc_index`},source_refs:[`A01`,`A02`],auth_contract:`managed_first_party_session`,live_verified_this_task:!1,execution_enabled:!1,registration_verified_now:!1,request_template_is_runnable:!1,credential_fields_allowed_in_analysis:[],gap:`类目行为224472/trd/amt只是附件示例;scope和群体身份未核实;不得导出Cookie`},{id:`A12`,name:`第三方成交额原件`,status:`attachment_only`,operation_id:null,documented_command:null,documented_http_method:`POST`,documented_path:`/api/reportFormItem/getCardData`,business_parameters:[`cardDataConfigList`],field_mapping:{"data.rowHeadList":`dimensions`,"data.cardData[].columns":`metrics_by_dynamic_field_metadata`},source_refs:[`P03`],auth_contract:`provider_managed_session`,live_verified_this_task:!1,execution_enabled:!1,registration_verified_now:!1,request_template_is_runnable:!1,credential_fields_allowed_in_analysis:[],gap:`无本机注册依据;字段ID动态;数字是第三方报告值不是已认证真实GMV`},{id:`A13`,name:`DMP标准类目辅助`,status:`documented_registered`,operation_id:`dmp.shop-standard-categories`,documented_command:`sycmcli dmp shop standard-categories`,documented_http_method:`GET`,documented_path:`/api/dmp/shop/std/cate`,business_parameters:[],field_mapping:{},source_refs:[`W02`,`W06`,`S01`],auth_contract:`dmp-magix`,live_verified_this_task:!1,execution_enabled:!1,registration_verified_now:!1,request_template_is_runnable:!1,credential_fields_allowed_in_analysis:[],gap:`cateModel=2/filterModel=0默认;输出schema待核,不能直接映射另一平台类目`},{id:`A14`,name:`阿里妈妈鉴权状态`,status:`documented_registered`,operation_id:`alimama.access`,documented_command:null,documented_http_method:`POST`,documented_path:`/member/checkAccess.json`,business_parameters:[`bizCode`],field_mapping:{},source_refs:[`W03`,`W06`],auth_contract:`alimama-access`,live_verified_this_task:!1,execution_enabled:!1,registration_verified_now:!1,request_template_is_runnable:!1,credential_fields_allowed_in_analysis:[],gap:`身份验证留安全回执;csrfId/loginPointId只由adapter内部管理,禁止进入分析包`},{id:`A15`,name:`已有证据人工导入`,status:`manual_import`,operation_id:null,documented_command:null,documented_http_method:null,documented_path:null,business_parameters:[`source_ref`,`sha256`,`scope`,`period`,`metric_definitions`,`rows`],field_mapping:{},source_refs:[`WAG`,`BAG`],auth_contract:null,live_verified_this_task:!1,execution_enabled:!1,registration_verified_now:!1,request_template_is_runnable:!1,credential_fields_allowed_in_analysis:[],gap:`导入前标real/simulated;缺少原件回指不能当平台实测`}]},i=`method-nodes/0.2.0`,a=[`keyword-battlefield`,`category-price-competition`,`price-band-audience`,`market-demand-cycle`,`cross-industry-reference`],o=e=>a.includes(e),s=r.adapters,c={"keyword-battlefield":[`A05`,`A15`],"category-price-competition":[`A01`,`A02`,`A03`,`A04`,`A10`,`A12`,`A13`,`A15`],"price-band-audience":[`A01`,`A09`,`A10`,`A11`,`A13`,`A15`],"market-demand-cycle":[`A01`,`A06`,`A07`,`A08`,`A14`,`A15`],"cross-industry-reference":[`A15`]},l=[`同构成+同需求`,`同构成+同人群`,`同构成+同场景`,`同构成+同造型`,`同需求+同人群`,`同需求+同场景`,`同需求+同造型`,`同人群+同场景`,`同人群+同造型`,`同场景+同造型`],u=[`构成`,`需求`,`人群`,`场景`,`造型`],d=[`产品读懂与五维拆解`,`十组品类扩展(目标30个去重)`,`竞争与案例核实`,`迁移建议`],f={deps:[`project-scope`,`evidence-register`],gate:`来源、对象与周期明确;仅消费经过人工复核的样本结果;真实取数尚未接入`},p={"keyword-battlefield":{...f,name:`关键词战场沙盘`,stage:`S3`,input:`搜索词、排序、采集周期、价格断点、搜索商品原件`,does:`按展示价分档,保留未知价,计算样本链接与店铺覆盖;不估算GMV`,output:`搜索样本分档、店铺链接占比与证据引用`},"category-price-competition":{...f,name:`价格带竞争沙盘`,stage:`S2`,input:`叶子类目、平台价格段、统计周期、商品榜原件`,does:`按已核实的价格段比较样本商品与店铺;截断和缺失单列`,output:`类目榜分档样本与容量接入缺口`},"price-band-audience":{...f,name:`类目价格带人群画像`,stage:`S2`,input:`类目购买金额人群、条件、周期、分母及标签分布`,does:`对齐单档画像与已知覆盖;区分未知/多标签;不创建人群`,output:`类目购买金额画像样本及可比维度`},"market-demand-cycle":{...f,name:`市场需求周期雷达`,stage:`S3`,input:`搜索词、行业类目映射、日期序列和指标定义`,does:`按实际日期计算逐词月均及覆盖;缺月不输出年度季节结论`,output:`逐词月度观察和覆盖矩阵;年度结论待补分析`},"cross-industry-reference":{deps:[`project-scope`,`evidence-register`],gate:`两个具体共同点成立才有借鉴关系;案例价值与竞争门槛分开判定;未联网搜索/看图/模型运行不得声称已核实`,name:`跨行业借鉴与参考品类`,stage:`S4`,input:`本产品资料、研究目标、本行业竞争基线、方法原文版本、已导入的参考品类与案例记录`,does:`按五维十组扩展去重品类,分别判定借鉴关系、案例价值与竞争门槛,输出迁移建议和条件候选`,output:`参考品类清单与数量、三道门槛结果、案例卡、迁移建议、未核实与失败记录`}},m=e=>s.filter(t=>c[e].includes(t.id)),h=[`确认对象与周期`,`保存取数计划或导入原件`,`核对证据和指标口径`,`计算样本结构`,`人工复核并保存版本`],g=e=>e===`cross-industry-reference`?d:h;function _(e,t,n=`planned`){return{method_version:i,source_mode:n,data_mode:t,scope:{platform:``,store_alias:``,category:``,keyword:``,start_date:``,end_date:``,business_timezone:`Asia/Shanghai`,...e===`keyword-battlefield`?{sort:``,price_basis:``}:{},...e===`category-price-competition`?{rank_type:``,price_basis:``,price_band_definition:``}:{},...e===`price-band-audience`?{behavior:`purchase`,amount_definition:``,population_type:`category_amount_buyers`,dimension_type:`exclusive`,dimension_id:``}:{},...e===`market-demand-cycle`?{industry_category:``,metric_definition:``}:{},...e===`cross-industry-reference`?{product_name:``,research_goal:`both`,competition_baseline:``,method_source_version:``}:{}},source_refs:[],price_breaks:[],rows:[],limitations:[],...e===`cross-industry-reference`?{cases:[],five_dimensions:u.map(e=>({dimension:e,status:`unknown`,note:``}))}:{}}}var v=e=>typeof e==`string`&&e.trim().length>0,y=e=>typeof e==`number`&&Number.isFinite(e)&&e>=0,b=e=>typeof e==`string`&&/^\d{4}-\d{2}-\d{2}$/.test(e)&&!Number.isNaN(Date.parse(e+`T00:00:00Z`))&&new Date(e+`T00:00:00Z`).toISOString().slice(0,10)===e,x=(e,t)=>Math.round((Date.parse(t)-Date.parse(e))/864e5)+1,S=e=>Array.isArray(e)&&e.length>0;function C(e,t,n,r){let a=[],o=[`结果仅基于本次导入样本;结构通过不证明来源真实或业务结论正确。`],s={state:`blocked`,errors:a,warnings:o,summary:``,outputs:null,refs:[],gaps:[],method_version:i};if(!t||typeof t!=`object`||Array.isArray(t))return a.push(`方法输入必须是对象`),s;if(JSON.stringify(t).length>2*1024*1024)return a.push(`方法输入超过2MB`),s;t.method_version!==`method-nodes/0.2.0`&&a.push(`方法版本不匹配,请下载当前模板并明确迁移`),[`planned`,`imported`].includes(t.source_mode)||a.push(`请选择取数计划或已导入资料`),t.data_mode!==r&&a.push(`资料模式与项目不符;模拟数据不能进入真实项目`);let c=t.scope||{};for(let e of[`platform`,`store_alias`,`business_timezone`])v(c[e])||a.push(`范围缺少 `+e);try{new Intl.DateTimeFormat(`en`,{timeZone:c.business_timezone}).format()}catch{a.push(`业务时区无效`)}if((!b(c.start_date)||!b(c.end_date)||c.start_date>c.end_date)&&a.push(`统计日期无效或起止颠倒`),e===`keyword-battlefield`&&!v(c.keyword)&&a.push(`缺少搜索关键词`),e!==`keyword-battlefield`&&!v(c.category)&&a.push(`缺少类目名称/映射说明`),(!Array.isArray(t.source_refs)||t.source_refs.some(e=>!v(e))||new Set(t.source_refs).size!==t.source_refs.length)&&a.push(`source_refs须为无重复的证据ID数组`),(!Array.isArray(t.limitations)||t.limitations.some(e=>!v(e)))&&a.push(`limitations须为文字数组`),a.length)return s;s.refs=t.source_refs;for(let e of s.refs)n.includes(e)||a.push(`来源未在本次所选项目证据中:`+e);if(t.source_mode===`planned`)return(!Array.isArray(t.rows)||t.rows.length)&&a.push(`计划不得夹带分析记录;有原件请切换已导入资料`),e===`cross-industry-reference`&&Array.isArray(t.cases)&&t.cases.length&&a.push(`计划不得夹带案例记录;有核实结果请切换已导入资料`),s.gaps=m(e).filter(e=>e.id!==`A15`).map(e=>e.name+`:`+e.gap),e===`cross-industry-reference`&&s.gaps.push(`网页搜索与商品页读取未接入;案例须人工打开并登记访问结果。`,`图片识别与模型分析未接入;视觉观察须人工完成并标记。`,`效果数据未接入;不得输出点击率、转化率或成功率预测。`),s.summary=e===`cross-industry-reference`?`研究计划已保存;等待人工核实案例或导入已有记录,尚未分析。`:`取数计划已保存;等待外部接入或导入已有原件,尚未分析。`,s.state=a.length?`blocked`:`waiting_external`,s;if(s.refs.length||a.push(`已导入资料必须选择至少一份项目原件`),(!S(t.rows)||t.rows.length>1e4)&&a.push(`rows必须包含1~10000行`),a.length)return s;for(let[e,n]of t.rows.entries()){if(!n||typeof n!=`object`||Array.isArray(n)){a.push(`第${e+1}行不是对象`);continue}(!v(n.source_ref)||!s.refs.includes(n.source_ref))&&a.push(`第${e+1}行source_ref未引用所选原件`)}if(a.length)return s;if(e===`keyword-battlefield`){(!v(c.sort)||!v(c.price_basis))&&a.push(`搜索排序和展示价口径必须明确`);let e=t.price_breaks;(!Array.isArray(e)||e.length<2||e.some((t,n)=>!y(t)||n>0&&t<=e[n-1]))&&a.push(`价格断点须至少两个、非负且严格递增`);let n=new Map,r=0;for(let e of t.rows){v(e.item_id)||a.push(`商品ID必须是非空字符串`),e.display_price!==null&&!y(e.display_price)&&a.push(`display_price须为精确非负数或null;区间价保留原文并填null`);let t=n.get(e.item_id);t?(r++,(t.display_price!==e.display_price||t.shop_id!==e.shop_id||t.shop_name!==e.shop_name)&&a.push(`同商品ID价格/店铺冲突:`+e.item_id)):n.set(e.item_id,e)}if(a.length)return s;let i=e.map((t,n)=>({lower:t,upper:e[n+1]??null,count:0,item_ids:[]})),o=0,l=new Map;for(let t of n.values()){if(t.display_price===null)o++;else{let n=e.findLastIndex(e=>t.display_price>=e);if(n<0){a.push(`展示价低于最小断点:`+t.item_id);continue}i[n].count++,i[n].item_ids.push(t.item_id)}let n=v(t.shop_id)?`ID:`+t.shop_id:v(t.shop_name)?`店名(未核实体):`+t.shop_name:null;n&&l.set(n,(l.get(n)||0)+1)}s.outputs={scope:`search_sample`,items:[...n.values()].map(e=>({item_id:e.item_id,title:e.title??null,shop_id:e.shop_id??null,shop_name:e.shop_name??null,display_price:e.display_price,display_price_raw:e.display_price_raw??null,source_ref:e.source_ref})),bands:i,unknown_price_count:o,duplicate_count:r,shop_link_counts:[...l].map(([e,t])=>({shop:e,count:t})).sort((e,t)=>t.count-e.count),gmv:null},s.summary=`${n.size}个去重搜索样本,${o}个价格未知;仅统计链接结构,不估算成交额。`}else if(e===`category-price-competition`){for(let e of[`rank_type`,`price_basis`,`price_band_definition`])v(c[e])||a.push(`缺少 `+e);typeof t.truncated!=`boolean`&&a.push(`必须明确truncated(榜单是否截断/疑似截断)`);let e=new Map,n=new Map;for(let r of t.rows){(!v(r.item_id)||!v(r.band))&&a.push(`每行需要item_id和已核实band`),n.has(r.item_id)&&n.get(r.item_id)!==r.band&&a.push(`同商品跨价格档出现,先核对边界:`+r.item_id),n.set(r.item_id,r.band);let t=e.get(r.band)||{band:r.band,items:new Set,shops:new Set};t.items.add(r.item_id),v(r.shop_id)&&t.shops.add(r.shop_id),e.set(r.band,t)}s.outputs={scope:`category_rank_sample`,bands:[...e.values()].map(e=>({band:e.band,items:e.items.size,known_shops:e.shops.size})),truncated:t.truncated,market_share:null,capacity:null},s.gaps=[`真实市场总体分母与金额人群定义未核实,容量及市场份额不可用。`],t.truncated&&o.push(`榜单截断或疑似截断,只报告已取得样本。`),s.summary=`${n.size}个榜单商品样本,${e.size}个价格档;容量与全市场份额未计算。`}else if(e===`price-band-audience`){(c.population_type!==`category_amount_buyers`||c.behavior!==`purchase`)&&a.push(`必须是类目金额购买群体,商品浏览群体不可替代`),(!v(c.amount_definition)||!v(c.dimension_id))&&a.push(`必须明确金额定义及画像维度ID`),[`exclusive`,`multi_label`].includes(c.dimension_type)||a.push(`维度须明确互斥或多标签`);let e=new Map,n=new Set;for(let r of t.rows){(!v(r.band)||!v(r.option_value)||!v(r.option_label))&&a.push(`画像行缺少价格档或标签标识`),(typeof r.condition_hash!=`string`||!/^[a-f0-9]{64}$/i.test(r.condition_hash)||/^0+$/.test(r.condition_hash))&&a.push(`缺少有效人群条件哈希`),r.population_role!==`CROWD`&&a.push(`画像行必须明确CROWD身份,不能按人数猜`),r.rate!==null&&(!y(r.rate)||r.rate>1)&&a.push(`rate须为0~1小数或null`),r.option_num!==null&&(!y(r.option_num)||!Number.isInteger(r.option_num))&&a.push(`option_num须为人数或null`),r.coverage!==null&&(!y(r.coverage)||!Number.isInteger(r.coverage))&&a.push(`coverage须为人数或null`),r.coverage!==null&&r.option_num!==null&&r.option_num>r.coverage&&a.push(`单标签人数不得超过该群体覆盖人数`);let t=JSON.stringify([r.band,r.option_value]);n.has(t)&&a.push(`同档同标签重复`),n.add(t);let i=e.get(r.band)||{band:r.band,condition_hash:r.condition_hash,coverage:r.coverage,rows:[]};(i.condition_hash!==r.condition_hash||i.coverage!==r.coverage)&&a.push(`同档人群条件或覆盖人数冲突`),i.rows.push(r),e.set(r.band,i)}for(let t of e.values())c.dimension_type===`exclusive`&&t.rows.reduce((e,t)=>e+(t.rate??0),0)>1.000001&&a.push(`互斥维度已知占比之和超过100%`);s.outputs={scope:`category_amount_buyers`,dimension_id:c.dimension_id,dimension_type:c.dimension_type,groups:[...e.values()],tgi:null,market_gmv:null},s.gaps=[`无经核实的同口径基准,TGI不可用;本次不创建人群或预测销售额。`],s.summary=`${e.size}档购买金额人群的单维画像;缺失值保留,群体人数不跨档相加。`}else if(e===`market-demand-cycle`){(!v(c.industry_category)||!v(c.metric_definition))&&a.push(`缺少行业类目对应和展现指数定义`);let e=new Map;for(let n of t.rows){(!v(n.word)||!b(n.date)||n.date<c.start_date||n.date>c.end_date)&&a.push(`趋势词或日期无效/超出声明窗口`),n.impression_index!==null&&!y(n.impression_index)&&a.push(`展现指数须为非负数或null`),(![`observed`,`unavailable`].includes(n.availability)||n.availability===`unavailable`&&n.impression_index!==null)&&a.push(`未开放日期必须明确unavailable并保持null`);let t=e.get(n.word)||new Map;t.has(n.date)&&a.push(`同词同日期重复:`+n.word+` `+n.date),t.set(n.date,n.impression_index),e.set(n.word,t)}if(a.length)return s;let n=[],r=c.start_date.slice(0,7)+`-01`;for(;r<=c.end_date;){n.push(r.slice(0,7));let e=new Date(r+`T00:00:00Z`);if(e.setUTCMonth(e.getUTCMonth()+1),r=e.toISOString().slice(0,10),n.length>60)return a.push(`趋势窗口最多60个月`),s}s.outputs={scope:`keyword_sample_observation`,words:[...e].map(([e,t])=>({word:e,months:n.map(e=>{let n=e+`-01`,r=new Date(n+`T00:00:00Z`);r.setUTCMonth(r.getUTCMonth()+1),r.setUTCDate(0);let i=r.toISOString().slice(0,10),a=[...t].filter(([t,n])=>t.startsWith(e)&&n!==null).map(([,e])=>e),o=x(n,i);return{month:e,valid_days:a.length,expected_days:o,coverage:a.length/o,mean:a.length?a.reduce((e,t)=>e+t,0)/a.length:null,complete_calendar:c.start_date<=n&&c.end_date>=i}})})),annual_seasonality:null,timing_score:null},s.gaps=[`当前只计算逐词月均和有效日期覆盖;异常日复核、全年季节窗口及五指标评分待分析结果接入,不能称最赚钱时期。`],s.summary=`${e.size}个词的${n.length}个月度观察;缺失不补零,年度结论和投放评分未生成。`}else{v(c.product_name)||a.push(`缺少本产品名称`),[`product_upgrade`,`visual`,`both`].includes(c.research_goal)||a.push(`研究目标须为产品升级、视觉表达或两者`),v(c.competition_baseline)||a.push(`缺少本行业竞争基线;竞争门槛必须有同平台、细分类目、相近价格带的比较依据`),v(c.method_source_version)||a.push(`缺少方法原文版本`),(!Array.isArray(t.cases)||t.cases.length<3||t.cases.length>5)&&a.push(`精选案例须3~5个;当前`+(Array.isArray(t.cases)?t.cases.length:0)+`个`);let e=new Set([`家居行业`,`助眠用品`,`服装`,`家电`,`消费品`,`行业`,`日用品`,`百货`]),n=e=>String(e).trim().toLowerCase().replace(/[\s()()【】\[\]、,,。.\-_/]/g,``),r=[`都是消费品`,`都有需求`,`都让人舒服`,`更好看`,`有参考价值`,`都是产品`],i=[`同构成`,`同需求`,`同人群`,`同场景`,`同造型`],d=e=>{let t=String(e).replace(/+/g,`+`).replace(/\s/g,``).split(`+`);if(t.length!==2||!t.every(e=>i.includes(e)))return null;let n=[...t].sort((e,t)=>i.indexOf(e)-i.indexOf(t)).join(`+`);return l.includes(n)?n:null},f=t.five_dimensions;if(!Array.isArray(f)||f.length!==5)a.push(`五维拆解须完整列出构成、需求、人群、场景、造型`);else{let e=new Set;for(let[t,n]of f.entries()){if(!n||typeof n!=`object`||!u.includes(n.dimension)){a.push(`五维第${t+1}项维度名不合法`);continue}e.has(n.dimension)&&a.push(`五维维度重复:`+n.dimension),e.add(n.dimension),[`confirmed`,`inferred`,`unknown`].includes(n.status)||a.push(`${n.dimension}须区分资料已确认、合理推测或尚待确认`),n.status!==`unknown`&&!v(n.note)&&a.push(`${n.dimension}标为已确认或推测时须写明依据`)}}let p=[];for(let[e,n]of(t.cases||[]).entries()){let t=`案例${e+1}`;if(!n||typeof n!=`object`||Array.isArray(n)){a.push(`${t}不是对象`);continue}(!v(n.case_id)||!v(n.name))&&a.push(`${t}缺少案例ID或名称`),/^https?:\/\//i.test(String(n.url||``))||a.push(`${t}必须提供可访问的具体链接`),d(n.combo)||a.push(`${t}双维度组合不成立`),(!Array.isArray(n.common_points)||n.common_points.length<2||n.common_points.some(e=>!v(e)))&&a.push(`${t}至少需要两个具体共同点`),[`product_upgrade`,`visual`,`copy`].includes(n.dimension)||a.push(`${t}须标明产品升级、视觉或文案维度`),[`viewed`,`summary_only`,`blocked`].includes(n.verification_status)||a.push(`${t}核实状态不合法`),[`verified`,`pending`,`fail`].includes(n.competition_status)||a.push(`${t}竞争状态不合法`),n.competition_status===`verified`&&!v(n.competition_evidence)&&a.push(`${t}标为竞争已核实但无比较依据`),n.demo_from_source===!0&&a.push(`${t}是源文示例,不得直接当作已核实案例;请重新核实来源和竞争强度`),n.verification_status===`viewed`&&(b(n.accessed_at)||a.push(`${t}实际查看须填写访问日期`),v(n.observed_practice)||a.push(`${t}声明已查看但未写页面中可核实的具体做法`),(!v(n.source_ref)||!s.refs.includes(n.source_ref))&&a.push(`${t}已查看案例必须引用本项目已归档证据`),n.dimension===`visual`&&n.visual_checked!==!0&&a.push(`${t}视觉案例未声明实际查看图片,不能描述画面`)),n.verification_status===`summary_only`&&(v(n.observed_practice)&&a.push(`${t}仅核实摘要不得描述未查看的页面内容`),(!v(n.source_ref)||!s.refs.includes(n.source_ref))&&a.push(`${t}仅核实摘要也须登记摘要来源`)),n.verification_status===`blocked`&&!v(n.failure_reason)&&a.push(`${t}无法访问须写明失败原因,不能沉默跳过`);let r=n.transfer_plan;if(!r||typeof r!=`object`||Array.isArray(r))a.push(`${t}缺少迁移方案`);else{(!S(r.changes)||r.changes.some(e=>!v(e)))&&a.push(`${t}迁移方案须写明具体改动`),(!S(r.conditions)||r.conditions.some(e=>!v(e)))&&a.push(`${t}迁移方案须写明适用条件`),v(r.expected_problem)||a.push(`${t}迁移方案须写明预期解决的问题`);let e=/^(ctr|click_rate|conversion_rate|cvr|roi|gmv|success_rate|sales_forecast|expected_ctr|expected_conversion_rate)$/i,n=t=>{if(!t||typeof t!=`object`)return!1;for(let[r,i]of Object.entries(t))if(e.test(r)&&typeof i==`number`&&i!==0||n(i))return!0;return!1};n(r)&&a.push(`${t}不得写入未经实测的点击率、转化率、成功率或销售额预测`)}p.push({...n,borrow_relation:Array.isArray(n.common_points)&&n.common_points.length>=2?`pass`:`fail`})}let m=new Set;for(let e of t.cases||[])v(e?.case_id)&&(m.has(e.case_id)&&a.push(`案例ID重复:`+e.case_id),m.add(e.case_id));let h=new Map,g=[],_=0,y=0,x=0,C=0;for(let[i,o]of t.rows.entries()){let t=`第${i+1}行`;if(!v(o.category)){a.push(`${t}缺少具体品类名`);continue}let s=n(o.category);if((e.has(String(o.category).trim())||s.length<2)&&a.push(`${t}品类必须具体到可直接搜索`),(!Array.isArray(o.combos)||!o.combos.length||o.combos.some(e=>!d(e)))&&a.push(`${t}双维度组合不成立或缺失`),!Array.isArray(o.common_points)||o.common_points.length<2||o.common_points.some(e=>!v(e))?a.push(`${t}至少需要两个具体共同点`):o.common_points.some(e=>r.some(t=>String(e).includes(t)))&&a.push(`${t}共同点过于笼统,不能作为借鉴理由`),v(o.borrow_method)||a.push(`${t}缺少可提取的产品、视觉或文案方法`),[`verified`,`pending`,`fail`].includes(o.competition_status)||a.push(`${t}竞争状态不合法`),o.competition_status===`verified`&&!v(o.competition_evidence)&&a.push(`${t}标为竞争已核实但无比较依据`),o.conditional===!0&&!v(o.condition_note)&&a.push(`${t}条件候选须写明额外条件`),o.is_direct_competitor===!0||n(o.category)===n(c.category)){y++;continue}if(h.has(s)){_++;continue}if(h.set(s,o),o.competition_status===`fail`){x++;continue}o.conditional===!0&&C++,g.push(o)}if(a.length)return s;let w=l.map(e=>({combo:e,count:g.filter(t=>(t.combos||[]).map(e=>d(e)).includes(e)).length})),T=g.filter(e=>e.competition_status===`verified`).length,E=g.filter(e=>e.competition_status===`pending`).length,D=Math.max(0,30-g.length);D&&(o.push(`有效去重参考品类${g.length}个,距30个目标还差${D}个;未虚构共同点补数。`),s.gaps.push(`参考品类不足30个:差${D}个,需继续扩展或如实保留缺口。`));let O=w.filter(e=>e.count===0).map(e=>e.combo);O.length&&s.gaps.push(`部分双维度组合暂无有效方向:`+O.join(`、`)),y&&o.push(`${y}个直接同类竞品已排除,不计入跨行业品类。`),_&&o.push(`${_}个重复品类只计一次。`),x&&o.push(`${x}个竞争不满足的品类已淘汰,不计入有效清单。`),C&&o.push(`${C}个条件候选单列,不作为已通过竞争门槛的正式推荐。`);let k=p.filter(e=>e.verification_status===`viewed`).length,A=p.filter(e=>e.verification_status===`summary_only`).length,j=p.filter(e=>e.verification_status===`blocked`).length,M=e=>f.filter(t=>t.status===e).length;s.outputs={scope:`cross_industry_reference`,method_source_version:c.method_source_version,research_goal:c.research_goal,five_dimensions:f,five_dimension_status:{confirmed:M(`confirmed`),inferred:M(`inferred`),unknown:M(`unknown`)},categories:g.map((e,t)=>({index:t+1,category:e.category,combos:e.combos,common_points:e.common_points,borrow_method:e.borrow_method,conditional:e.conditional===!0,condition_note:e.condition_note??null,competition_status:e.competition_status,competition_evidence:e.competition_evidence??null,source_ref:e.source_ref})),combo_coverage:w,unique_category_count:g.length,conditional_candidate_count:C,competition_verified_count:T,competition_pending_count:E,excluded_direct_competitor_count:y,excluded_failed_competition_count:x,duplicate_category_count:_,shortfall_to_30:D,cases:p.map(e=>({case_id:e.case_id,name:e.name,url:e.url,combo:e.combo,common_points:e.common_points,dimension:e.dimension,verification_status:e.verification_status,case_value:e.verification_status,borrow_relation:e.borrow_relation,competition_threshold:e.competition_status,observed_practice:e.verification_status===`viewed`?e.observed_practice:null,transfer_plan:e.transfer_plan,conditions:e.transfer_plan?.conditions??[],expected_problem:e.transfer_plan?.expected_problem??null,failure_reason:e.failure_reason??null,human_judgment:e.human_judgment??null,source_ref:e.source_ref??null})),gates:{borrow_relation:{established:g.length,conditional:C},case_value:{viewed:k,summary_only:A,blocked:j},competition_threshold:{verified:T,pending:E,failed:x}},demo_examples_used:!1,effectiveness:null},s.gaps.push(`网页搜索、商品页读取、图片识别与模型分析均未接入;本次只校验已导入的结构化记录,不能声称已主动搜索或已看图。`,`不产出点击率、转化率、成功率或销量预测;迁移效果须另行实测。`),s.summary=`${g.length}个去重参考品类(竞争已核实${T}、待验证${E}、条件候选${C});${p.length}个案例(实看${k}、仅摘要${A}、无法访问${j})。仅结构分析,未联网搜索或看图。`}return o.push(...t.limitations),s.state=a.length?`blocked`:`contract_valid`,s}var w=`shop-link-tiers/0.1.0`,T=[`store-tier-baseline`,`link-tier-candidates`,`tier-stability-review`],E=e=>T.includes(e),D={stage:`W`,gate:`同店同窗、原件可追溯;缺失不补零;业务结论需人工核对`},O={"store-tier-baseline":{...D,name:`核对全店分层基线`,deps:[`project-scope`,`evidence-register`],input:`近30完整自然日的全店支付金额、去重访客、去重支付买家,以及统计范围`,does:`固定支付口径(不扣退款),先核对全店基线;人数不按链接或天数相加`,output:`全店同窗基线及缺项`},"link-tier-candidates":{...D,name:`比较链接贡献,找头部候选`,deps:[`store-tier-baseline`],input:`同店同窗链接支付金额、访客、买家与原件引用`,does:`按支付金额排序,对全店基线计算贡献;80%仅作参考,不作为自动划线`,output:`链接贡献排序、销售额对账差额;非正式梯队`},"tier-stability-review":{...D,name:`核验稳定性,准备三梯队建议`,deps:[`link-tier-candidates`],input:`链接逐日支付、访客、买家、订单及最大单笔支付证据`,does:`展示集中度及持续性供复核;新品和销量不足可暂归第三梯队;未确定门槛不自动晋级`,output:`三梯队候选理由与待确认策略,不修改看板分组`}};function k(e=new Date){let t=new Date(e.getTime()+8*36e5).toISOString().slice(0,10),n=Date.parse(t)-864e5;return{start_date:new Date(n-29*864e5).toISOString().slice(0,10),end_date:new Date(n).toISOString().slice(0,10)}}function A(e,t=new Date){return{rule_version:w,data_mode:e,scope:{...k(t),timezone:`Asia/Shanghai`,shop_id:``,currency:`CNY`,sales_basis:`paid_gross`,population_scope:``,unique_people_basis:`period_deduplicated`},source_refs:[],shop:{paid_sales:null,visitors:null,paying_buyers:null},links:[],policy:{head_cutoff:null,middle_cutoff:null,stability_threshold:null,large_order_threshold:null},limitations:[]}}var j=e=>typeof e==`object`&&e&&!Array.isArray(e)?e:{},M=e=>typeof e==`number`&&Number.isFinite(e)&&e>=0,N=e=>typeof e==`string`&&e.trim().length>0,P=e=>M(e)&&Number.isInteger(e),F=(e,t)=>M(e)&&M(t)&&t>0?e/t:null;function I(e,t,n,r){let i=[],a=[],o={state:`blocked`,errors:i,gaps:a,warnings:[`访客和买家跨链接重叠,占比不得相加;结果不修改正式看板分组。`],summary:`资料尚未齐备`,refs:[],outputs:{},rule_version:w},s=j(t);if(!t||typeof t!=`object`||Array.isArray(t)||!E(e))return i.push(`节点或资料无效`),o;s.rule_version!==`shop-link-tiers/0.1.0`&&i.push(`规则版本需更新`),(s.data_mode!==r||![`real`,`simulated`].includes(r))&&i.push(`真实与模拟模式不一致`);let c=j(s.scope),l=k();(c.start_date!==l.start_date||c.end_date!==l.end_date||c.timezone!==`Asia/Shanghai`)&&i.push(`须使用上海时区最近30个完整自然日;历史运行应重新建立当前窗口`),(!N(c.shop_id)||!N(c.population_scope)||!N(c.currency))&&i.push(`缺少店铺、统计范围或币种`),(c.sales_basis!==`paid_gross`||c.unique_people_basis!==`period_deduplicated`)&&i.push(`支付额不扣退款;全店人数必须为期间去重值,不可逐日或跨链接相加`),(!Array.isArray(s.source_refs)||!s.source_refs.length||s.source_refs.some(e=>typeof e!=`string`||!n.includes(e)))&&i.push(`须选择本项目真实存在的来源引用`),o.refs=Array.isArray(s.source_refs)?s.source_refs.filter(e=>typeof e==`string`&&n.includes(e)):[];let u=j(s.shop);if((!M(u.paid_sales)||!P(u.visitors)||!P(u.paying_buyers))&&i.push(`全店支付额、访客、支付买家缺失或无效,不能用0替代`),P(u.paying_buyers)&&P(u.visitors)&&u.paying_buyers>u.visitors&&i.push(`全店支付买家超过访客,请核对口径`),i.length||!M(u.paid_sales)||!M(u.visitors)||!M(u.paying_buyers))return o;if(o.outputs={scope:c,shop:u,policy_status:`待配置`,tiers:[1,2,3],automatic_assignment:!1},e===`store-tier-baseline`)return o.state=`contract_valid`,o.summary=`全店30天基线结构已核对,待人工确认来源及范围`,o;if(!Array.isArray(s.links)||!s.links.length)return i.push(`缺少链接同窗资料`),o;let d=new Set;for(let e of s.links){let t=j(e);if(!t||typeof t.item_id!=`string`||!t.item_id.trim()||d.has(t.item_id)){i.push(`链接编号缺失或重复`);continue}d.add(t.item_id),typeof t.source_ref==`string`&&o.refs.includes(t.source_ref)||i.push(`链接来源引用缺失:`+t.item_id),(!M(t.paid_sales)||![t.visitors,t.paying_buyers].every(e=>e===null||P(e)))&&i.push(`链接指标缺失或无效:`+t.item_id),M(t.paid_sales)&&t.paid_sales>u.paid_sales&&i.push(`链接支付额超过全店,请核对范围:`+t.item_id),(P(t.visitors)&&t.visitors>u.visitors||P(t.paying_buyers)&&t.paying_buyers>u.paying_buyers)&&i.push(`链接人数超过全店,请核对范围:`+t.item_id)}if(i.length)return o;let f=[...s.links].sort((e,t)=>t.paid_sales-e.paid_sales||e.item_id.localeCompare(t.item_id)),p=0;return o.outputs.links=f.map(e=>(p+=e.paid_sales,{...e,sales_share:F(e.paid_sales,u.paid_sales),cumulative_sales_share:F(p,u.paid_sales),visitor_share:F(e.visitors,u.visitors),buyer_share:F(e.paying_buyers,u.paying_buyers),tier:null})),o.outputs.sales_reconciliation={link_sum:p,shop_total:u.paid_sales,difference:u.paid_sales-p},Math.abs(p-u.paid_sales)>.005&&a.push(`链接支付额合计与全店不一致,需核对遗漏、下架商品及统计范围;不自动补齐`),f.some(e=>e.visitors===null||e.paying_buyers===null)&&a.push(`部分链接缺访客或买家,不能核验头部稳定性`),e===`link-tier-candidates`?(o.state=a.length?`waiting_human`:`contract_valid`,o.summary=`已按支付金额比较链接贡献;未按80%强制分梯队`,o):(a.push(`头部/中腰部门槛、持续性、大单标准及晋降级条件尚未确定;不得自动判定第一/二梯队`),o.outputs.links=o.outputs.links.map(e=>{let t=Array.isArray(e.daily)?e.daily.map(j):[],n=new Set,r=i.length;for(let r of t){if(!r||typeof r.date!=`string`||!/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/.test(r.date)||!Number.isFinite(Date.parse(r.date))||new Date(Date.parse(r.date)).toISOString().slice(0,10)!==r.date||r.date<String(c.start_date)||r.date>String(c.end_date)||n.has(r.date)||!M(r.paid_sales)||![r.visitors,r.paying_buyers,r.orders].every(P)){i.push(`逐日资料日期/指标无效或重复:`+e.item_id);continue}n.add(r.date)}let s=n.size===30&&i.length===r;s||a.push(e.item_id+` 缺完整30天逐日记录,缺日不补零`);let l=t.reduce((e,t)=>e+(M(t?.paid_sales)?t.paid_sales:0),0);s&&Math.abs(l-e.paid_sales)>.005&&i.push(`逐日支付额与期间支付额不一致:`+e.item_id),e.max_order_paid!==null&&e.max_order_paid!==void 0&&(!M(e.max_order_paid)||e.max_order_paid>e.paid_sales)&&i.push(`最大单笔支付金额无效:`+e.item_id),M(e.max_order_paid)||a.push(e.item_id+` 缺单笔订单集中度证据`);let u=[`new`,`insufficient_sales`].includes(String(e.third_tier_reason))&&typeof e.reason_evidence==`string`&&e.reason_evidence.trim()&&typeof e.reason_source_ref==`string`&&o.refs.includes(e.reason_source_ref);return{...e,tier:u?3:null,tier_status:u?`第三梯队建议,待人工确认`:`待确认(不是额外梯队)`,stability:{observed_days:n.size,active_order_days:s?t.filter(e=>M(e.orders)&&e.orders>0).length:null,max_day_sales_share:s?F(Math.max(...t.map(e=>M(e.paid_sales)?e.paid_sales:0)),e.paid_sales):null,max_order_sales_share:F(e.max_order_paid,e.paid_sales)},missing_policy:!0}}),o.state=i.length?`blocked`:`waiting_human`,o.summary=`稳定性证据已整理;仅有证据的新品/销量不足给出第三梯队建议,其余等待规则确认`,o)}var L={"project-scope":{name:`项目与约束确认`,deps:[],stage:`S1`,output:`项目简报`,gate:`负责人确认范围;缺身份不得进入发布`,input:`商品身份、平台店铺、预算、供给和停止条件`,does:`区分商品与SKU;查已有归档;将未知单列,不猜类目或店铺`},"evidence-register":{name:`证据登记`,deps:[`project-scope`],stage:`W`,output:`证据台账`,gate:`每项可追溯;未知与真实零区分`,input:`原件、来源、统计期、采集期、范围、单位`,does:`登记稳定行ID和哈希;原文与分析分层;只读原件`},"market-screen":{name:`市场候选筛选`,deps:[`evidence-register`],stage:`S2`,output:`市场候选表`,gate:`入选/淘汰有理由;TopN不冒充全市场`,input:`类目榜、趋势、价格带、店铺覆盖`,does:`分平销和趋势;比较需求迹象、供给和竞争;不加总重叠热度`},"keyword-clean":{name:`关键词整理`,deps:[`market-screen`],stage:`S3`,output:`清洁词表`,gate:`不丢原始行与区间单位`,input:`词表、原行ID、日期、单位`,does:`去重保留映射;指数与人数分列;缺页记录`},"keyword-needs":{name:`词根与需求分类`,deps:[`keyword-clean`],stage:`S3`,output:`需求词分类表`,gate:`分类有原词引用;无证据画像未知`,input:`清洁词表`,does:`拆词根按场景、用途、材质等有证据维度分类;八大分类定义不全不补造`},"keyword-market":{name:`目标关键词规划`,deps:[`keyword-needs`],stage:`S3`,output:`目标词规划表`,gate:`指标同窗同单位;不把搜索量等同销量`,input:`需求方向、相关词、同口径竞争指标`,does:`比较相关性、趋势、供需与可得PPC;无通用阈值不评分`},"competitor-select":{name:`对标入选筛选`,deps:[`keyword-market`],stage:`S2`,output:`对标入选剔除表`,gate:`每项入选理由明确;标题或图不证明同款`,input:`候选商品、叶子类目、规格、主图、价格条件`,does:`直接竞品、替代方案、表达参考分开;核实SKU可比性`},"competitor-compare":{name:`对标差异分析`,deps:[`competitor-select`],stage:`S2`,output:`竞争差异矩阵`,gate:`入口价与笔单价分列;集中度无总体分母不计算`,input:`入选对标与商品、服务、价格资料`,does:`比较需求表达、产品事实、价格与服务;不可见运营实力标未知`},"reviews-intake":{name:`评价材料准入`,deps:[`competitor-select`],stage:`S4`,output:`评价证据集`,gate:`样本来源可查;疑似不等于确认造假`,input:`已授权导入评价/追评、商品SKU、日期、原文`,does:`保留买家原声与行ID;空文/重复/疑似异常分开记录;不自行抓取`},"reviews-label":{name:`评价统一打标`,deps:[`reviews-intake`],stage:`S4`,output:`评价标签与证据表`,gate:`标签引用原文;不猜年龄;多标签不外推人群`,input:`评价证据集`,does:`每条同时标需求、场景、有证据用户线索及情绪;记录反例;推荐对象不当使用者`},"questions-intake":{name:`问大家材料准入`,deps:[`competitor-select`],stage:`S4`,output:`问答证据集`,gate:`关联完整且来源明确;缺失不编补`,input:`已授权问答原文、问题回答关联、日期商品`,does:`提问与回答分列;购买前疑问不当成交;身份未证实不称真实买家回答`},"questions-label":{name:`购买顾虑分析`,deps:[`questions-intake`],stage:`S4`,output:`买前顾虑卡`,gate:`问题频次不当市场规模;保留未回答项`,input:`问答证据集`,does:`归纳适配、使用、质量、服务等顾虑;答案是否有证据单列`},"social-context":{name:`可选场景补充`,deps:[`competitor-select`],stage:`S4`,output:`补充场景或跳过记录`,gate:`不强制所有渠道齐全;不自行联网`,input:`授权导入内容平台原文与链接,或明确无资料`,does:`仅分析需求场景;区分推广内容与体验;没有资料标可选跳过及影响`},"needs-synthesis":{name:`需求证据汇总`,deps:[`reviews-label`,`questions-label`,`social-context`,`competitor-compare`],stage:`S4`,output:`需求证据卡`,gate:`每结论可点回原声;缺渠道披露,不硬否决或造数`,input:`各渠道标签、原声和反证`,does:`分别统计各渠道有效分母;汇合相同任务;保留矛盾和样本偏差`},"product-facts":{name:`产品事实核验`,deps:[`project-scope`,`evidence-register`],stage:`S5`,output:`事实及待测试表`,gate:`每事实有证据、单位与适用条件`,input:`原图、规格、资质、说明与测试记录`,does:`区分可见特征、供方声明、实测与推断;不从图猜材质功效`},"supply-check":{name:`供应兑现检查`,deps:[`product-facts`],stage:`S5`,output:`供应风险与验收单`,gate:`负责人确认;供应不稳不扩大承诺`,input:`报价、MOQ、交期、库存、质检、包装`,does:`核对样品验收与量产交付条件;退货不自动算可售库存`},"cost-input":{name:`成本口径准备`,deps:[`supply-check`],stage:`S7`,output:`成本假设表`,gate:`来源、期间、费用归属齐全`,input:`采购包装履约税费推广退款风险固定成本`,does:`区分真实与假设;避免退款重复扣;缺项不得填0`},"cost-scenario":{name:`贡献与保本测算`,deps:[`cost-input`],stage:`S7`,output:`情景测算及敏感性`,gate:`公式与假设透明;不是财务净利润`,input:`净收入、变动成本、固定成本、销量情景`,does:`贡献=净收入−变动成本;期间=贡献×销量−固定;正贡献才算向上取整保本件数`},positioning:{name:`主打需求与链接定位`,deps:[`needs-synthesis`,`product-facts`,`supply-check`,`cost-scenario`],stage:`S6`,output:`定位简报`,gate:`需求有原声、承诺有事实;人工取舍无虚假分数`,input:`需求卡、兑现矩阵、成本与竞品差异`,does:`选择一个主打需求;写场景任务、产品能力、利益和证据;不具备则回产品节点`},"claim-evidence":{name:`卖点证据映射`,deps:[`positioning`],stage:`S6`,output:`卖点与禁用宣称表`,gate:`每项利益可解释;无证据宣称待核`,input:`定位、需求ID、事实ID`,does:`按FABE把特征转利益;比较优势须有同口径依据`},"page-tasks":{name:`主图详情逐屏策划`,deps:[`claim-evidence`],stage:`S6`,output:`逐屏任务表`,gate:`不能只输出美术风格;每屏有任务及证据`,input:`买家原声卡、事实表、主推SKU`,does:`逐屏写买家问题→需求ID→事实ID→证据展示→文案画面;首图聚焦`},"title-sku":{name:`标题属性SKU策划`,deps:[`positioning`,`keyword-market`,`product-facts`],stage:`S9`,output:`候选标题属性SKU表`,gate:`标题/图/规格一致;2025损坏文件不引用`,input:`核心词、准确属性、SKU与平台待核规则`,does:`精准相关词优先;去无关重复;新品无成交史不做删零成交词判断`},"video-script":{name:`视频分镜策划`,deps:[`page-tasks`],stage:`S8`,output:`视频脚本或明确不适用说明`,gate:`脚本不标成片;每镜头可实现`,input:`页面任务与可演示事实`,does:`逐镜头绑定问题、事实、演示条件和字幕;不能虚构实测`},"asset-production":{name:`素材制作交接`,deps:[`page-tasks`,`title-sku`,`video-script`],stage:`S10`,output:`制作任务和产物清单`,gate:`无生成能力标待接;不称已生成`,input:`有权素材、事实和任务单`,does:`按定意图→搭框架→润质感制作;本包仅整理任务与接收产物,模型外传须授权`},"asset-preflight":{name:`素材确定性预检`,deps:[`asset-production`],stage:`W`,output:`预检返修清单`,gate:`fail不得通过;格式通过不等于保真`,input:`实际文件与清单、当前尺寸规则`,does:`核对文件哈希、槽位、文本与规格一致;尺寸规则未知标待核`},"human-review":{name:`人工保真审核`,deps:[`asset-preflight`],stage:`W`,output:`人工决策记录`,gate:`AI不能代填人确认;修改材料后失效`,input:`材料版本、原图与证据、待核项`,does:`授权人逐槽位核对事实、权利、画面、文字;记录拒绝和返修`},"material-freeze":{name:`材料版本冻结`,deps:[`human-review`],stage:`W`,output:`冻结材料包`,gate:`本地定版不等于发布许可`,input:`已核验材料、审核与哈希`,does:`冻结清单并绑定审核版本;任何变更生成新版返审`},"listing-precheck":{name:`平台上架前检查`,deps:[`material-freeze`],stage:`W`,output:`发布差异与缺项单`,gate:`淘宝天猫分开核验;登录不等于写权限`,input:`店铺身份、类目schema、资质、价库物流售后`,does:`由虾哥核实受支持路线和权限;缺接入形成阻塞交接,不尝试后台`},"listing-approval":{name:`发布动作批准交接`,deps:[`listing-precheck`],stage:`W`,output:`批准封套或待批准记录`,gate:`研究及素材确认不能替代发布批准`,input:`具体店铺SKU字段、payload哈希与目标状态`,does:`只接收可信操作者明确批准;修改字段/范围/版本须重新批准`},"listing-submit":{name:`发布执行交接`,deps:[`listing-approval`],stage:`W`,output:`执行回执或待接入状态`,gate:`不得模拟冒充店铺成功;拒绝立即停止`,input:`已批准封套、受支持执行器`,does:`交虾哥执行;本包无写接口;记录动作ID和幂等范围`},"listing-readback":{name:`平台状态回验`,deps:[`listing-submit`],stage:`W`,output:`逐字段回验表`,gate:`受理不等于上架;未知先回读再考虑重试`,input:`由接入方提供的回读证据`,does:`比对店铺商品SKU字段与素材;区分审核中、成功、失败和未知`},"observe-baseline":{name:`观察方案与基线`,deps:[`listing-readback`],stage:`S9`,output:`观察计划`,gate:`曝光点击访客不同;PV不能算点击`,input:`回验结果、指标定义、窗口与混杂记录`,does:`约定同渠道指标分母、退款成熟期及停止条件;不保证短期显著`},"daily-observe":{name:`每日归档检查交接`,deps:[`observe-baseline`],stage:`W`,output:`每日证据与缺口`,gate:`缺失不补0;保存与通知状态分别核实`,input:`已接入每日归档与版本`,does:`检查完整日/缺日/迟到更正;不启动采集或调度;监控缺陷交虾`},"effect-review":{name:`阶段复盘`,deps:[`daily-observe`],stage:`S9`,output:`复盘与继续返修停止建议`,gate:`无对照不归因;保留失败案例`,input:`同口径前后窗、动作记录与混杂`,does:`描述变化,区分表达、需求、产品问题;观察不足待观察`},"method-candidate":{name:`方法候选沉淀`,deps:[`effect-review`],stage:`W`,output:`带来源版本的方法候选`,gate:`不自动晋级高成功率方法;不改全局知识库`,input:`复盘证据、样本、观察时长、失败定义`,does:`记录适用商品渠道阶段和限制;复用需条件匹配与人工核对`}},R=`project-scope.evidence-register.market-screen.keyword-clean.keyword-needs.keyword-market.competitor-select.competitor-compare.reviews-intake.reviews-label.questions-intake.questions-label.social-context.needs-synthesis.product-facts.supply-check.cost-input.cost-scenario.positioning.claim-evidence.page-tasks.title-sku.video-script.asset-production.asset-preflight.human-review.material-freeze.listing-precheck.listing-approval.listing-submit.listing-readback.observe-baseline.daily-observe.effect-review.method-candidate`.split(`.`);({...L,...p,...O}),[...R,...a,...T].length;var z={idle:`未启动`,running:`执行中`,paused:`已暂停`,waiting_input:`待补资料`,waiting_human:`待人工审核`,waiting_external:`待接入`,interrupted:`执行中断`,failed:`执行失败`,complete:`流程已确认`};async function B(e,t,n,r){if(window.omni?.projectExecution){let e=await window.omni.projectExecution({projectId:t,op:n,expectedVersion:r});if(!e.ok)throw Error(e.error);return e.value}return e(`/`+encodeURIComponent(t)+`/project-execution`,{op:n,expectedVersion:r,requestId:crypto.randomUUID()})}export{j as a,k as c,o as d,m as f,t as g,n as h,I as i,i as l,_ as m,z as n,E as o,g as p,w as r,A as s,B as t,C as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,g as t,p as n}from"./index-Cez2mr3h.js";import{a as r,c as i,i as a,l as o,n as s,o as c,r as l,s as u,t as d,u as f}from"./demand-planning-client-cRvN3aET.js";import{t as p}from"./HelpTip-DgowTr-K.js";var m=t(n(),1),h=e(),g=[`目标与约束`,`资料与证据`,`需求机会`,`商品方案`,`成本与可行性`,`评审与下一步`],_=[`要服务谁?预算、周期、供给和停止条件是什么?`,`分别整理关键词与评价证据,标明时间、来源和缺口。`,`哪个需求有证据?反证是什么?不要把搜索热度当成交保证。`,`商品如何满足需求?规格、样品、交期和待验证能力是什么?`,`成本包含哪些项?价格与销量假设是否区分?能承受什么风险?`,`继续、返修还是停止?记录人工判断、负责人和下一验证窗口。`],v={input:``,source:``,analysis:``,output:``,reason:``,repair:``,refs:[],status:`draft`,layer:`human`,business:null};function y({project:e}){let t=e.data,n=e.route.step,i=e.api,o=e=>{if(!e||typeof e!=`object`||!(`id`in e)||typeof e.id!=`string`)throw Error(`保存结果缺少记录编号,请核对资料`);return e.id},c=t.steps[n].latest,[u,d]=(0,m.useState)(()=>a(t,n,c?Object.fromEntries(Object.keys(v).map(e=>[e,c[e]??v[e]])):{...v,refs:[]})),[f,y]=(0,m.useState)(!1),[b,x]=(0,m.useState)(`keyword`),[S,C]=(0,m.useState)(``),[w,T]=(0,m.useState)(null),[E,D]=(0,m.useState)(!1),[O,k]=(0,m.useState)(``),[A,j]=(0,m.useState)(``);function M(){y(!0),e.onDirty(!0)}function N(t){e.onRoute({center:!1,tab:t})}function P(t){e.onRoute({center:!1,tab:`work`,step:t})}async function F(t){D(!0),e.onBusy(!0),k(``),j(``);try{await t()}catch(e){k(e instanceof Error?e.message:`保存失败`)}finally{D(!1),e.onBusy(!1)}}function I(e,t){d({...u,[e]:t,...u.business&&[`input`,`source`,`analysis`,`output`,`reason`,`repair`].includes(e)?{business:{...u.business,guidance:{...u.business.guidance,recordEdited:{...u.business.guidance?.recordEdited,[e]:!0}}}}:{}}),M()}async function L(){await F(async()=>{await i(`/`+t.project.id+`/revision`,{...r(t,n,u),step:n,version:t.project.version}),await e.onSaved(),y(!1),e.onDirty(!1),j(`已保存新版本,可在分析与复盘中查看历史。`)})}async function R(){await F(async()=>{if(!w)throw Error(`请先选择文件`);if(w.size>2e6)throw Error(`单文件上限2MB`);let n=new Uint8Array(await w.arrayBuffer()),r=``;for(let e of n)r+=String.fromCharCode(e);let a=await i(`/`+t.project.id+`/file`,{name:w.name,source:S,kind:b,base64:btoa(r)});await e.onSaved(),d({...u,refs:[...u.refs,o(a)]}),M(),j(`文件已保存,并加入本次草稿引用;请保存步骤版本。`)})}async function z(n,r,a,s){let c=new TextEncoder().encode(r),l=``;for(let e of c)l+=String.fromCharCode(e);let u=await i(`/`+t.project.id+`/file`,{name:n,base64:btoa(l),kind:a,source:s});return await e.onSaved(),o(u)}let B=e.onDirty,V=e.onSaved;return(0,h.jsxs)(h.Fragment,{children:[O&&(0,h.jsx)(`p`,{role:`alert`,className:`error`,children:O}),A&&(0,h.jsx)(`p`,{role:`status`,className:`notice`,children:A}),(0,h.jsxs)(`div`,{className:`notice`,children:[`历史六步工作记录:与业务节点分别保存,不重复计算完成率。`,(0,h.jsx)(`button`,{onClick:()=>N(`overview`),children:`返回节点主流程`})]}),(0,h.jsx)(`div`,{className:`progress wb-progress`,"aria-label":`项目阶段`,children:t.steps.map((e,t)=>(0,h.jsxs)(`button`,{"aria-current":n===t?`step`:void 0,onClick:()=>P(t),className:n===t?`current`:``,children:[(0,h.jsxs)(`span`,{children:[`0`,t+1]}),e.title,(0,h.jsx)(`small`,{children:e.stale?`待复核`:e.latest?.status===`confirmed`?`已确认`:e.latest?.status===`stopped`?`已停止`:e.latest?`已记录`:`未开始`})]},t))}),(0,h.jsxs)(`div`,{className:`wb-stage-work`,children:[(0,h.jsx)(l,{data:t,step:n,form:u,onChange:e=>{d(e),M()},storeFile:z,api:i,dirty:f,onDirty:B,onAcquired:V},t.project.id+`:`+n),(0,h.jsxs)(`div`,{className:`work-grid`,children:[(0,h.jsxs)(`section`,{className:`card`,children:[(0,h.jsxs)(`div`,{className:`section-title`,children:[(0,h.jsxs)(`div`,{children:[(0,h.jsxs)(`p`,{className:`eyebrow`,children:[`STEP 0`,n+1]}),(0,h.jsx)(`h2`,{children:g[n]})]}),(0,h.jsx)(`span`,{className:`muted`,children:f?`有未保存修改`:`已与服务器同步`})]}),(0,h.jsx)(`p`,{className:`hint`,children:_[n]}),t.steps[n].stale&&(0,h.jsx)(`div`,{className:`error`,children:`上游已变更。旧版本保留,请复核内容与引用后保存新版本。`}),(0,h.jsx)(s,{data:t,step:n,form:u,onChange:I,busy:E,onSave:L})]}),(0,h.jsxs)(`section`,{className:`right-rail`,children:[(0,h.jsxs)(`div`,{className:`card`,children:[(0,h.jsxs)(`h3`,{children:[`本阶段交接`,(0,h.jsx)(p,{label:`阶段确认`,children:`先保存输入、证据和结论,再填写人工判断。前一步资料变化后,后续步骤需要重新核对。`})]}),(0,h.jsx)(`p`,{children:`输入 → 证据 → 分析 → 产物 → 人工判断`}),(0,h.jsx)(`p`,{className:`muted`,children:`保存不会覆盖历史。更改上游后,下游显示“待复核”。确认仅代表本阶段人工评审,不代表真实销量或盈利。`})]}),(0,h.jsxs)(`div`,{className:`card`,children:[(0,h.jsxs)(`h3`,{children:[`上传资料或分析文件`,(0,h.jsx)(p,{label:`上传资料`,children:`选择文件并填写真实来源与日期。每个文件不超过2MB;上传后需保存本步骤,才能保留本次引用。`})]}),(0,h.jsxs)(`label`,{children:[`资料类型`,(0,h.jsxs)(`select`,{value:b,onChange:e=>x(e.target.value),children:[(0,h.jsx)(`option`,{value:`keyword`,children:`关键词证据`}),(0,h.jsx)(`option`,{value:`review`,children:`评价证据`}),(0,h.jsx)(`option`,{value:`product`,children:`商品资料`}),(0,h.jsx)(`option`,{value:`analysis`,children:`AI分析结果导入`}),(0,h.jsx)(`option`,{value:`artifact`,children:`生成/制作产物`})]})]}),(0,h.jsxs)(`label`,{children:[`来源与采集时间`,(0,h.jsx)(`input`,{value:S,onChange:e=>{C(e.target.value),M()},placeholder:`例如:虚构样本,2026-10-28`})]}),(0,h.jsxs)(`label`,{children:[`选择文件(≤2MB)`,(0,h.jsx)(`input`,{type:`file`,onChange:e=>{T(e.target.files?.[0]||null),M()}})]}),(0,h.jsx)(`button`,{disabled:E||!w||!S.trim(),className:`secondary`,onClick:R,children:`上传并加入引用`}),(0,h.jsx)(`p`,{className:`muted`,children:`保留原文件和完整性校验信息,方便追溯。上传不会运行文件。每个项目文件总量不超过10MB。`})]}),(0,h.jsx)(`div`,{className:`boundary`,children:`本项目归档读取、上游继承和成本计算已接通;平台取数经本机执行通道由助手执行。所有结果需人工复核。`})]})]})]})]})}var b={pipeline:f,content:i,visual:u,publish:c};function x({section:e,project:t}){let{route:n,onRoute:r}=t,i=e=>r({center:!1,tab:e,node:``,datasetId:``,wikiRef:``,wikiEntry:``,methodNode:``,methodRecord:``}),a=e=>r({center:!1,tab:`methods`,methodNode:e,methodRecord:``}),s=(e,t=!1)=>r({center:!1,tab:`wiki`,wikiEntry:e,wikiRef:``},{confirmed:t});if(e===`overview`)return(0,h.jsx)(o,{...t,onNavigate:i,onMethodNode:a});if(e===`demand`)return(0,h.jsx)(d,{projectId:t.projectId,onDirty:t.onDirty,onSaved:t.onSaved,onOpenData:e=>r({center:!1,tab:`data`,datasetId:e}),onOpenWiki:()=>i(`wiki`)});if(e===`work`)return(0,h.jsx)(y,{project:t},t.projectId+`:`+n.step);let c=b[e];return(0,h.jsx)(`div`,{className:`projects-module wb-legacy-tools`,onChangeCapture:e=>{e.target.matches(`input:not([type=checkbox]):not([aria-label="搜索业务节点"]),textarea`)&&t.onDirty(!0)},children:c&&(0,h.jsx)(c,{...t,initialNode:n.node,onWikiEntry:s,onMethodNode:a},t.projectId+n.node)})}export{x as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./workspace-view-state-CRfq5jgZ.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as e}from"./index-Cez2mr3h.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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./create-intent-9uYVhJHt.js";import"./products-fIIO39ry.js";import{a as t,g as n,p as r}from"./index-Cez2mr3h.js";import{n as i}from"./workspace-view-state-CRfq5jgZ.js";import"./public-BlU5YmdO.js";import"./demand-planning-client-cRvN3aET.js";import"./HelpTip-DgowTr-K.js";import"./EmptyState-Cgx7dIy3.js";function a(){return i(`products.key`,``)}function o(){let[,e]=a(),[,t]=i(`products.query`,``),[,n]=i(`products.metric`,``),[,r]=i(`products.scope`,`real`);return(i,a)=>{a&&r(a),i&&(e(i),t(``),n(``))}}var s=n(r(),1);t();var 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));function l({onClose:t,onDirty:n}){return(0,s.useEffect)(()=>{e(),n(!1),t(),window.dispatchEvent(new CustomEvent(`omni:route`,{detail:`/?mode=center&view=projects§ion=all`}))},[t,n]),null}export{c as n,o as r,l as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as e,p as t}from"./index-Cez2mr3h.js";import{n}from"./workspace-view-state-CRfq5jgZ.js";import"./public-BlU5YmdO.js";import{t as r}from"./api-DTsZ_OeY.js";var i={home:`_home_176h4_1`,top:`_top_176h4_2`,panel:`_panel_176h4_6`,row:`_row_176h4_7`,empty:`_empty_176h4_9`,recordInfo:`_recordInfo_176h4_10`,recordText:`_recordText_176h4_10`,metadata:`_metadata_176h4_10`,thumbnail:`_thumbnail_176h4_10`,actions:`_actions_176h4_11`,tabs:`_tabs_176h4_11`,adder:`_adder_176h4_15`,picker:`_picker_176h4_17`,pickRow:`_pickRow_176h4_18`},a=e(t(),1),o={category:`类目`,shop:`店铺`,product:`商品`};function s(e){let[t,i]=n(`market.favorites.collection`,null),[o,s]=(0,a.useState)(``),[c,l]=(0,a.useState)(``),[u,d]=(0,a.useState)(!0),[f,p]=(0,a.useState)(null),[m,h]=(0,a.useState)(0),[g,_]=(0,a.useState)(``),[v,y]=(0,a.useState)({kind:e,count:24}),b=(0,a.useRef)(!1),x=(0,a.useRef)(new Set),S=(0,a.useCallback)(()=>h(e=>e+1),[]),C=(0,a.useCallback)(()=>{b.current=!0,S()},[S]),w=(0,a.useCallback)(t=>y(n=>n.kind===e&&n.count===t?n:{kind:e,count:t}),[e]),T=(0,a.useMemo)(()=>(t?.entries||[]).filter(t=>t.kind===e),[t,e]),E=v.kind===e?v.count:24;(0,a.useEffect)(()=>(window.addEventListener(`omni:market-favorites-changed`,S),()=>window.removeEventListener(`omni:market-favorites-changed`,S)),[S]),(0,a.useEffect)(()=>{let e=new AbortController;return Promise.resolve().then(async()=>{if(!e.signal.aborted){d(!0),s(``),l(``);try{let t=await r.favorites(e.signal);if(t.contractVersion!==1||!Array.isArray(t.entries))throw Error(`收藏数据契约版本不兼容`);e.signal.aborted||(x.current.clear(),b.current&&(t.entries=t.entries.map(e=>({...e,needsRefresh:!0}))),b.current=!1,i(t))}catch(t){e.signal.aborted||(t&&typeof t==`object`&&`status`in t&&[401,403].includes(Number(t.status))&&i(null),s(t instanceof Error?t.message:`收藏读取失败`))}finally{e.signal.aborted||d(!1)}}}),()=>e.abort()},[m,i]),(0,a.useEffect)(()=>{let t=T.slice(0,E).filter(e=>e.needsRefresh&&!x.current.has(e.kind+`:`+e.key)).slice(0,6);if(!t.length)return;let n=new AbortController;return Promise.resolve().then(async()=>{if(!n.signal.aborted){p(e);try{let e=await r.refreshFavorites(t.map(e=>({kind:e.kind,key:e.key})),n.signal);if(n.signal.aborted)return;t.forEach(e=>x.current.add(e.kind+`:`+e.key));let a=new Map(e.entries.map(e=>[e.kind+`:`+e.key,e]));i(e=>e&&{...e,entries:e.entries.map(e=>a.get(e.kind+`:`+e.key)||e)}),e.failed.length&&l(`部分收藏暂时无法更新,已保存的资料仍可使用。`)}catch(e){if(!n.signal.aborted){t.forEach(e=>x.current.add(e.kind+`:`+e.key));let n=e&&typeof e==`object`&&`status`in e?e.status:void 0;n===401||n===403?(i(null),s(`访问授权已变化,请重新检查收藏。`)):l(`资料更新暂未完成,可稍后点击刷新收藏。`)}}finally{n.signal.aborted||p(t=>t===e?null:t)}}}),()=>{n.abort(),p(t=>t===e?null:t)}},[T,e,E,i]);async function D(e,t,n){_(e+`:`+t),s(``);try{return await r.favorite(e,t,n),S(),!0}catch(e){return s(e instanceof Error?e.message:`收藏操作失败`),!1}finally{_(``)}}function O(t){let n=T.find(e=>e.key===t);return{kind:e,key:t,category:n?.snapshot.category,record:n?.snapshot.record,categoryPath:n?.snapshot.categoryPath}}return{collection:t,items:T,error:o,syncError:c,loading:u&&!t,syncing:f===e,busy:g,refresh:C,onVisibleCount:w,save:D,resolve:O}}export{s as n,i as r,o as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as e,p as t}from"./index-Cez2mr3h.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};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./entry-C3TFTQrn.js","./index-Cez2mr3h.js","./index-7NKGenq7.css","./arrow-right-DMEu-HBO.js","./chart-column-x5fvXs9m.js","./clock-3-BThph9Fd.js","./pin-C4E_u351.js","./git-branch-BAJikW8Q.js","./layers-shcwXKIH.js","./search-CUzSX_06.js","./activity-BV0UMcx6.js","./module-host-CyMfvPpR.js","./public-BlU5YmdO.js","./workspace-view-state-CRfq5jgZ.js","./entry-OPB3MGoc.css","./entry-BxaHKvMx.js","./link-2-BlbKNthn.js","./chevron-right-DqmFJybY.js","./grid-2x2-lULFcGs7.js","./list-CrDQ8uHL.js","./components-BVWswT0B.js","./chevron-down-p3oUrcsv.js","./format-BCxMsVJh.js","./market.module-vHIsXpQH.js","./market-B2oImfqS.css","./api-DTsZ_OeY.js","./entry-Crfux-R-.js","./check-qCcwSYDE.js","./arrow-up-right-Bi_SzYu1.js","./create-intent-9uYVhJHt.js","./flag-DspBXBR4.js","./project-execution-DMEIpSz3.js","./play-D07b6r1X.js","./plus-iTTlNMxD.js","./refresh-cw-C_4G0Mri.js","./use-workspace-query-C-vrOrvK.js","./create-intent-ZWl5yZd5.css","./products-fIIO39ry.js","./products-BTd3YVqO.css","./demand-planning-client-cRvN3aET.js","./EvidenceSourceGuide-BqwES_45.js","./HelpTip-DgowTr-K.js","./HelpTip-BsHPhMNf.css","./demand-planning-client-DVOcsKAy.css","./group-eZxxe_Hb.js","./ui-public-9lmhhAop.js","./EmptyState-Cgx7dIy3.js","./entry-C_j4PEhB.css","./entry-BXB2Nzyc.js","./entry-DQpz8kvM.js","./file-text-BE0hF4rH.js","./entry-DHP4cb-p.css","./entry-WYptT5dv.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{t as e}from"./chart-column-x5fvXs9m.js";import{t}from"./chevron-right-DqmFJybY.js";import{t as n}from"./download-DYUXwy45.js";import{t as r}from"./git-branch-BAJikW8Q.js";import{t as i}from"./layers-shcwXKIH.js";import{a,c as o,d as s,g as c,i as l,o as u,p as d,t as f,u as p}from"./index-Cez2mr3h.js";import{t as m}from"./module-host-CyMfvPpR.js";import{t as h}from"./workspace-view-state-CRfq5jgZ.js";import"./public-BlU5YmdO.js";import{n as g,r as _,t as ee}from"./ui-public-9lmhhAop.js";var v=p(`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=p(`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=p(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),x=c(d(),1),S=[{id:`home`,label:`首页`,menus:[[`overview`,`首页总览`],[`recent`,`最近访问`],[`favorites`,`我的收藏`]],note:`从这里继续你的工作`,load:()=>f(()=>import(`./entry-C3TFTQrn.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)},{id:`market`,label:`市场大盘`,menus:[[`categories`,`类目概览`],[`products`,`商品排行榜`],[`shops`,`店铺排行榜`],[`shop-layout`,`店铺品类布局`],[`favorites`,`我的收藏`]],note:`按企业授权查看市场类目`,load:()=>f(()=>import(`./entry-BxaHKvMx.js`),__vite__mapDeps([15,1,2,16,17,18,19,20,21,9,22,23,24,12,13,25]),import.meta.url)},{id:`overview`,label:`工作台`,menus:[[`overview`,`经营总览`],[`tasks`,`待处理事项`],[`records`,`执行记录`]],shopScope:!0,note:`仅展示当前账号获准的资料`,load:()=>f(()=>import(`./entry-Crfux-R-.js`),__vite__mapDeps([26,1,2,27,3,28,17,29,30,8,31,32,33,34,9,11,35,12,13,36,37,5,38,39,21,7,40,41,42,43,44,45,46,10,47]),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-BXB2Nzyc.js`),__vite__mapDeps([48,1,2,3,17,37,5,30,32,33,38,8,34,9,44,11,12,13]),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-DQpz8kvM.js`),__vite__mapDeps([49,1,2,27,21,17,29,3,30,8,31,32,33,34,9,11,35,12,13,36,50,6,19,51]),import.meta.url),shopScope:!0,contentNavigation:!0,note:`仅展示当前账号获准的资料`},{id:`data`,label:`资料中心`,menus:[[`all`,`数据集目录`]],projectMenus:[[`data`,`项目数据`],[`files`,`证据附件`],[`wiki`,`分析复盘`],[`insight`,`结论行动`],[`methods`,`任务方法`],[`archive`,`分析任务`]],projectEntry:!0,load:()=>f(()=>import(`./entry-WYptT5dv.js`),__vite__mapDeps([52,1,2,34,9,11,35,12,13]),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=a(),te={home:v,market:e,overview:y,products:i,projects:r,data:o};function ne({projects:e,project:n,route:r,menuOpen:i,busy:a,onClose:o,onProject:c,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:s,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)})]}),!(r.center&&g?.contentNavigation)&&(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:o,children:(0,F.jsx)(u,{size:18})})]}),g?.shopScope&&(0,F.jsx)(l,{}),(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=>c(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,d=n&&!(u.center&&u.centerNav===`market`),f=u.center&&T(u.centerNav)?.contentNavigation;return(0,F.jsxs)(`main`,{ref:c,className:`wb-shell wb-unified wb-shared-nav`+(u.center?` wb-mission-home`:``)+(f?` ws-content-navigation`:``)+(u.center&&u.centerNav===`market`?` ws-market-content`:``),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})}),d&&(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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,g as t,p as n}from"./index-Cez2mr3h.js";var r=t(n(),1),i=e(),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};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/app/assets/{graphicalItemSelectors-DGWLDzMl.js → graphicalItemSelectors-GhHIivGe.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|