@petercjl/omni-desktop-app 0.1.8 → 0.1.10
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/INSTALL.md +9 -0
- package/README.md +4 -4
- package/UPDATE.md +7 -0
- package/app/assets/{CartesianChart-Bwf4u0Tg.js → CartesianChart-CP7p2vlm.js} +2 -2
- package/app/assets/{CollaborationWorkspace-Bd6Sjj31.js → CollaborationWorkspace-Cnp5PNn_.js} +3 -3
- package/app/assets/CompetitorAnalysis-Cujy_a2L.js +1 -0
- package/app/assets/CompetitorAnalysis-h1zdt0F2.css +1 -0
- package/app/assets/EmptyState-CUHuNsaV.js +1 -0
- package/app/assets/ErrorBarContext-BJE5-ljg.js +1 -0
- package/app/assets/{EvidenceSourceGuide-CwfB7Z6T.js → EvidenceSourceGuide-B1AJCZm2.js} +1 -1
- package/app/assets/FavoritePicker-XD1a_uOa.js +1 -0
- package/app/assets/Favorites-B5_fdEvZ.js +1 -0
- package/app/assets/{HelpTip-CX2LFdwD.js → HelpTip-BqRBO41J.js} +1 -1
- package/app/assets/LineChart-Ckvg5wfQ.js +4 -0
- package/app/assets/{Opportunities-a5IpRN6k.js → Opportunities-BvH64-dz.js} +1 -1
- package/app/assets/{ProgressiveRows-ByxDeTyy.js → ProgressiveRows-NojOUgmr.js} +1 -1
- package/app/assets/ShopLayoutPage-CCrRwaAx.js +1 -0
- package/app/assets/TrendChart-BF4JgwxH.js +1 -0
- package/app/assets/arrow-down-B1nil3T4.js +1 -0
- package/app/assets/arrow-left-BhFSpYzK.js +1 -0
- package/app/assets/arrow-up-right-IBQoN72x.js +1 -0
- package/app/assets/{book-open-C0B9Pao9.js → book-open-Cqdn6s-H.js} +1 -1
- package/app/assets/chart-column-DCwNhXki.js +1 -0
- package/app/assets/{chart-no-axes-combined-XDy9u9SV.js → chart-no-axes-combined-DVgKs36j.js} +1 -1
- package/app/assets/check-DBnlZFEo.js +1 -0
- package/app/assets/chevron-down-DO6RUQm8.js +1 -0
- package/app/assets/chevron-right-e65CaeL6.js +1 -0
- package/app/assets/{clock-3-TH35nOP-.js → clock-3-CDHtQwAe.js} +1 -1
- package/app/assets/competitor-analysis-D6eM9ugQ.js +1 -0
- package/app/assets/{components-C2-vHJtu.js → components-B5Xyjfpi.js} +2 -2
- package/app/assets/{download-BlJN0Lg8.js → download-DfM49VvV.js} +1 -1
- package/app/assets/entry-Bq7tA83b.js +1 -0
- package/app/assets/{entry-OcErMaMp.css → entry-CMur_AE7.css} +1 -1
- package/app/assets/entry-DC4oDjzU.js +2 -0
- package/app/assets/{entry-DM3aLe2I.js → entry-DM64sJfS.js} +1 -1
- package/app/assets/entry-DbqMDIJi.js +1 -0
- package/app/assets/{entry-CdLi3Z9F.js → entry-N8bfKXTF.js} +2 -2
- package/app/assets/{entry-CYGrMJuR.js → entry-kAWoaIsV.js} +2 -2
- package/app/assets/favorites.module-CHYv-Z8y.js +1 -0
- package/app/assets/{file-text-Hd45wNTe.js → file-text-DKAT5fzJ.js} +1 -1
- package/app/assets/getRadiusAndStrokeWidthFromDot-bv_ksZ7y.js +1 -0
- package/app/assets/{grid-2x2-C0aJVeyS.js → grid-2x2-DB6zRPIV.js} +1 -1
- package/app/assets/index-BgJNmU0Z.css +1 -0
- package/app/assets/{index-BguiS02-.js → index-DLSVWUSu.js} +2 -2
- package/app/assets/{layers-Dj9z2et6.js → layers-CjsT_HGi.js} +1 -1
- package/app/assets/{layout-dashboard-DS537D8b.js → layout-dashboard-sgUrlApv.js} +1 -1
- package/app/assets/{link-2-CCKUDMV6.js → link-2-VLti-YG9.js} +1 -1
- package/app/assets/{list-LZcXKWKD.js → list-Dfzc0sXQ.js} +1 -1
- package/app/assets/market-SuD7x_Hf.css +1 -0
- package/app/assets/market.module-VpU4XmGg.js +1 -0
- package/app/assets/{module-host-C4vqZw2y.js → module-host-DNtiV4gZ.js} +1 -1
- package/app/assets/{orbit-G4ZspWKB.js → orbit-CrQs6cpl.js} +1 -1
- package/app/assets/play-BxTFlaQX.js +1 -0
- package/app/assets/plus-D78h7lrw.js +1 -0
- package/app/assets/{products-BAKFF--e.js → products-B5vjXM_b.js} +1 -1
- package/app/assets/{project-public-HdtYycKS.js → project-public-CgW1u7BI.js} +1 -1
- package/app/assets/{project-public-BCoD2Anq.js → project-public-DWTt808B.js} +1 -1
- package/app/assets/public-C-PBMVOQ.js +1 -0
- package/app/assets/{refresh-cw-dsQ_f-9j.js → refresh-cw-CxbRf97c.js} +1 -1
- package/app/assets/search-DFdSppzm.js +1 -0
- package/app/assets/{triangle-alert-l-Mfj0iE.js → triangle-alert-C7qiylOf.js} +1 -1
- package/app/assets/{ui-public-BPe2GJZ-.css → ui-public-DHoRDp5_.css} +1 -1
- package/app/assets/{ui-public-DWkIf658.js → ui-public-Dt5dHt-8.js} +1 -1
- package/app/assets/workbench-DIKJZNJQ.js +2 -0
- package/app/assets/{workspace-view-state-BJMX6vWb.js → workspace-view-state-D0ujRczW.js} +1 -1
- package/app/desktop/main.mjs +7719 -0
- package/app/desktop/preload.cjs +30 -0
- package/app/index.html +2 -2
- package/app/package.json +1 -0
- package/app/public/omni-icon.png +0 -0
- package/app/tools/bootstrap.bin +0 -0
- package/app/tools/omni-desktop.mjs +526 -0
- package/package.json +7 -2
- package/release.json +1 -1
- package/release.sig +1 -1
- package/app/assets/EmptyState-CE7obISq.js +0 -1
- package/app/assets/Favorites-4oU1mgEb.js +0 -1
- package/app/assets/LineChart-B6igYupv.js +0 -4
- package/app/assets/ShopLayoutPage-D7KKJVEq.js +0 -1
- package/app/assets/TrendChart-BdRXaz4z.js +0 -1
- package/app/assets/arrow-down-DSjucZgz.js +0 -1
- package/app/assets/arrow-left-DmIga4jN.js +0 -1
- package/app/assets/arrow-up-right-DzAKT3cL.js +0 -1
- package/app/assets/check-BB89tIU6.js +0 -1
- package/app/assets/chevron-down-BiokgLxD.js +0 -1
- package/app/assets/chevron-right-CZlQQ5gV.js +0 -1
- package/app/assets/entry-Bxc-KNuY.js +0 -1
- package/app/assets/entry-ZwyGbRek.js +0 -1
- package/app/assets/entry-ffP7X21A.js +0 -2
- package/app/assets/index-D1qZkLPg.css +0 -1
- package/app/assets/market-DqV9l-vR.css +0 -1
- package/app/assets/market.module-BSrEp5Ak.js +0 -1
- package/app/assets/package-BFlv-jYw.js +0 -1
- package/app/assets/play-DxbesM66.js +0 -1
- package/app/assets/plus-QakkcxdA.js +0 -1
- package/app/assets/public-JUGpS2z7.js +0 -1
- package/app/assets/search-Cisx0wBF.js +0 -1
- package/app/assets/use-favorites-ALxrDxDW.js +0 -1
- package/app/assets/workbench-DZTf1DRZ.js +0 -2
- /package/app/assets/{api-hjUd9Skg.js → api-KZa8CR8X.js} +0 -0
- /package/app/assets/{use-favorites-_eKBQGeF.css → favorites-_eKBQGeF.css} +0 -0
- /package/app/assets/{format-BCxMsVJh.js → format-DL7i7_eV.js} +0 -0
- /package/app/assets/{graphicalItemSelectors-Hc730Dd1.js → graphicalItemSelectors-CJfZ6cht.js} +0 -0
- /package/app/assets/{group-CjIFQYrJ.js → group-Ed305HyG.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./TrendChart-
|
|
2
|
-
import{t as e}from"./chevron-down-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./TrendChart-BF4JgwxH.js","./index-DLSVWUSu.js","./index-BgJNmU0Z.css","./format-DL7i7_eV.js","./market.module-VpU4XmGg.js","./market-SuD7x_Hf.css","./CartesianChart-CP7p2vlm.js","./getRadiusAndStrokeWidthFromDot-bv_ksZ7y.js","./graphicalItemSelectors-CJfZ6cht.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as e}from"./chevron-down-DO6RUQm8.js";import{t}from"./chevron-right-e65CaeL6.js";import{t as n}from"./search-DFdSppzm.js";import{d as r,g as i,h as a,o,s,t as c,y as l}from"./index-DLSVWUSu.js";import{n as u}from"./workspace-view-state-D0ujRczW.js";import"./public-C-PBMVOQ.js";import{t as d}from"./format-DL7i7_eV.js";import{t as f}from"./market.module-VpU4XmGg.js";var p=[[`sales`,`销售额`,`money`],[`marketShare`,`市占率`,`percent`],[`views`,`浏览量`,`number`],[`conversionRate`,`支付转化率`,`percent`],[`unitPrice`,`件单价`,`money`],[`units`,`成交件数`,`number`],[`searches`,`搜索量`,`number`],[`searchShare`,`搜索量占比`,`percent`],[`paidClicks`,`付费点击量`,`number`],[`paidClickShare`,`付费点击量占比`,`percent`],[`listingDays`,`上架天数`,`number`],[`listedProducts`,`在榜商品数`,`number`],[`promotionRoi`,`推广 ROI`,`number`],[`uvValue`,`UV 价值`,`money`],[`viewValue`,`浏览价值`,`money`],[`orderPrice`,`客单价`,`money`],[`orders`,`成交订单数`,`number`],[`cartRate`,`加购率`,`percent`],[`salesYoy`,`销售额同比`,`percent`],[`salesMom`,`销售额环比`,`percent`],[`activeProducts`,`动销商品数`,`number`]],m={categoryId:``,month:``,view:`categories`,metric:`sales`,recentYear:!1,q:``,sort:`sales`,direction:`desc`,page:1,pageSize:100,minPrice:``,maxPrice:``};function h(e,t){return u(`market.`+e,t)}var g=l(i(),1),_=a(),v=o();function y({text:e,label:t,title:n,children:i}){let[a,o]=(0,g.useState)(!1),[s,c]=(0,g.useState)(``),l=(0,g.useRef)(null),u=(0,g.useRef)(0);(0,g.useEffect)(()=>()=>{u.current++,l.current&&clearTimeout(l.current)},[]);async function d(){let t=++u.current,n=`已复制`;try{if(window.omni){let t=await window.omni.copyText(e);if(!t.ok)throw Error(t.error)}else await navigator.clipboard.writeText(e);if(t!==u.current)return;o(!0)}catch{if(t!==u.current)return;n=`复制失败,请重试`,o(!1)}l.current&&clearTimeout(l.current),c(n),l.current=setTimeout(()=>c(``),1e3)}return(0,v.jsxs)(`span`,{className:f.copyControl,children:[(0,v.jsx)(`button`,{className:f.copyButton,"data-copied":a,"aria-label":t,title:n,onClick:()=>void d(),children:i||(0,v.jsx)(r,{size:12})}),s&&(0,v.jsx)(`span`,{className:f.copyFeedback,role:`status`,children:s})]})}function b({src:e,name:t,onClose:n}){let r=(0,g.useRef)(null),[i,a]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{let e=document.activeElement;return r.current?.showModal(),()=>e?.focus()},[]),(0,_.createPortal)((0,v.jsxs)(`dialog`,{ref:r,className:f.imageViewer,"aria-label":`${t}大图`,onCancel:e=>{e.preventDefault(),n()},onClick:e=>{e.target===e.currentTarget&&n()},children:[(0,v.jsx)(`button`,{autoFocus:!0,className:f.imageViewerClose,"aria-label":`关闭商品大图`,onClick:n,children:(0,v.jsx)(s,{size:24})}),i?(0,v.jsx)(`p`,{role:`status`,children:`图片暂时无法加载`}):(0,v.jsx)(`img`,{src:e,alt:t,referrerPolicy:`no-referrer`,onError:()=>a(!0),onClick:e=>{let t=e.currentTarget,r=t.getBoundingClientRect();if(!t.naturalWidth||!t.naturalHeight)return;let i=Math.min(r.width/t.naturalWidth,r.height/t.naturalHeight),a=t.naturalWidth*i/2,o=t.naturalHeight*i/2;(Math.abs(e.clientX-r.left-r.width/2)>a||Math.abs(e.clientY-r.top-r.height/2)>o)&&n()}})]}),document.body)}function x({src:e,name:t,hoverPreview:n=!0}){let[r,i]=(0,g.useState)(null),[a,o]=(0,g.useState)(!1);(0,g.useEffect)(()=>{if(!r)return;let e=()=>i(null);return window.addEventListener(`scroll`,e,!0),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`scroll`,e,!0),window.removeEventListener(`resize`,e)}},[r]);function s(e){if(!n)return;let t=e.getBoundingClientRect(),r=Math.min(320,window.innerWidth-24,window.innerHeight-24);i({left:t.right+r+12<=window.innerWidth?t.right+8:Math.max(12,t.left-r-8),top:Math.max(12,Math.min(t.top,window.innerHeight-r-12)),size:r})}return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`button`,{className:f.imageButton,"aria-label":`放大查看${t}`,"aria-haspopup":`dialog`,onMouseEnter:e=>s(e.currentTarget),onMouseLeave:()=>i(null),onFocus:e=>s(e.currentTarget),onBlur:()=>i(null),onClick:()=>{i(null),o(!0)},children:(0,v.jsx)(`img`,{src:e,alt:t,loading:`lazy`,referrerPolicy:`no-referrer`})}),r&&!a&&(0,_.createPortal)((0,v.jsx)(`div`,{className:f.imageHoverPreview,"aria-hidden":`true`,style:{left:r.left,top:r.top,width:r.size,height:r.size},children:(0,v.jsx)(`img`,{src:e,alt:``,referrerPolicy:`no-referrer`})}),document.body),a&&(0,v.jsx)(b,{src:e,name:t,onClose:()=>{i(null),o(!1)}})]})}function S({title:e,children:t,onClose:n}){let r=(0,g.useRef)(null);return(0,g.useEffect)(()=>{let e=document.activeElement;return r.current?.showModal(),()=>e?.focus()},[]),(0,v.jsxs)(`dialog`,{ref:r,className:f.dialog,onCancel:n,onClick:e=>{e.target===e.currentTarget&&n()},children:[(0,v.jsxs)(`header`,{children:[(0,v.jsx)(`h2`,{children:e}),(0,v.jsx)(`button`,{autoFocus:!0,onClick:n,"aria-label":`关闭弹窗`,children:(0,v.jsx)(s,{size:18})})]}),t]})}function C({categories:r,value:i,onChoose:a,disabled:o,favoriteIds:s}){let[c,l]=(0,g.useState)(``),[u,p]=(0,g.useState)(``),[m,h]=(0,g.useState)(!1),[_,y]=(0,g.useState)(!1),b=(0,g.useRef)(null);(0,g.useEffect)(()=>{function e(e){let t=b.current;t?.open&&e.target instanceof Node&&!t.contains(e.target)&&(t.open=!1)}return document.addEventListener(`pointerdown`,e,!0),()=>document.removeEventListener(`pointerdown`,e,!0)},[]);let x=d(r,u||i),S=r.filter(e=>s.includes(e.id)),C=(m?S:r).filter(e=>e.name.includes(c.trim()));function w(e){a(e),l(``),p(e),b.current&&(b.current.open=!1)}let T=[r.filter(e=>!e.parentId),...x.filter(e=>!e.leaf).map(e=>r.filter(t=>t.parentId===e.id))];return(0,v.jsxs)(`details`,{className:f.picker,ref:b,onToggle:e=>y(e.currentTarget.open),onKeyDown:e=>{e.key===`Escape`&&b.current&&(b.current.open=!1,b.current.querySelector(`summary`)?.focus())},children:[(0,v.jsxs)(`summary`,{"aria-label":`选择市场类目`,"aria-disabled":o,onClick:e=>{o&&e.preventDefault()},children:[d(r,i).map(e=>e.name).join(` / `)||`全部类目`,(0,v.jsx)(e,{size:14})]}),_&&(0,v.jsxs)(`div`,{className:f.pickerPanel,children:[(0,v.jsxs)(`label`,{children:[(0,v.jsx)(n,{size:14}),(0,v.jsx)(`input`,{"aria-label":`查找授权类目`,placeholder:`搜索类目名称`,value:c,onChange:e=>l(e.target.value)})]}),(0,v.jsxs)(`nav`,{className:f.pickerModes,"aria-label":`类目选择方式`,children:[(0,v.jsx)(`button`,{"aria-pressed":!m,onClick:()=>h(!1),children:`全部类目`}),(0,v.jsxs)(`button`,{"aria-pressed":m,onClick:()=>h(!0),children:[`我的收藏(`,S.length,`)`]})]}),!m&&(0,v.jsx)(`button`,{onClick:()=>w(``),children:`全部获准类目`}),c.trim()||m?(0,v.jsxs)(`div`,{className:f.pickerResults,children:[!C.length&&(0,v.jsx)(`p`,{role:`status`,className:f.pickerEmpty,children:m&&!S.length?`暂无收藏类目,点击类目旁的星标即可收藏。`:`没有匹配的类目。`}),(m?C:C.slice(0,100)).map(e=>(0,v.jsx)(`button`,{onClick:()=>w(e.id),children:d(r,e.id).map(e=>e.name).join(` / `)},e.id))]}):(0,v.jsx)(`div`,{className:f.cascade,children:T.map((e,n)=>(0,v.jsx)(`div`,{children:e.map(e=>(0,v.jsxs)(`div`,{onPointerEnter:t=>{t.pointerType===`mouse`&&p(e.id)},className:x.some(t=>t.id===e.id)?f.selectedCategory:``,children:[(0,v.jsx)(`button`,{onClick:()=>w(e.id),children:e.name}),!e.leaf&&(0,v.jsx)(`button`,{"aria-label":`展开${e.name}`,"aria-expanded":x.some(t=>t.id===e.id),onClick:()=>p(e.id),children:(0,v.jsx)(t,{size:13})})]},e.id))},n))})]})]})}function w({columns:e,allowed:t,onSave:n,onClose:r}){let[i,a]=(0,g.useState)(e),[o,s]=(0,g.useState)(null),c=e=>p.find(t=>t[0]===e)?.[1];function l(e,t){a(n=>{let r=[...n],[i]=r.splice(e,1);return r.splice(t,0,i),r})}return(0,v.jsxs)(S,{title:`自定义数据字段(${i.length}/${t.length})`,onClose:r,children:[(0,v.jsxs)(`div`,{className:f.fieldLayout,children:[(0,v.jsxs)(`section`,{children:[(0,v.jsx)(`h3`,{children:`排行榜指标`}),t.map(e=>(0,v.jsxs)(`label`,{children:[(0,v.jsx)(`input`,{type:`checkbox`,checked:i.includes(e),onChange:t=>a(n=>t.target.checked?[...n,e]:n.filter(t=>t!==e))}),c(e)]},e))]}),(0,v.jsxs)(`section`,{children:[(0,v.jsxs)(`div`,{className:f.fieldTools,children:[(0,v.jsxs)(`span`,{children:[`已选 `,i.length,`/`,t.length]}),(0,v.jsx)(`button`,{onClick:()=>a(t),children:`恢复默认`}),(0,v.jsx)(`button`,{onClick:()=>a([]),children:`清空`})]}),(0,v.jsx)(`h3`,{children:`当前字段顺序`}),(0,v.jsx)(`ol`,{children:i.map((e,t)=>(0,v.jsxs)(`li`,{draggable:!0,onDragStart:()=>s(e),onDragOver:e=>e.preventDefault(),onDrop:()=>{o&&l(i.indexOf(o),t),s(null)},children:[(0,v.jsxs)(`span`,{children:[`⠿ `,t+1,`. `,c(e)]}),(0,v.jsx)(`button`,{disabled:t===0,"aria-label":`上移${c(e)}`,onClick:()=>l(t,t-1),children:`↑`}),(0,v.jsx)(`button`,{disabled:t===i.length-1,"aria-label":`下移${c(e)}`,onClick:()=>l(t,t+1),children:`↓`})]},e))})]})]}),(0,v.jsxs)(`footer`,{className:f.dialogActions,children:[(0,v.jsx)(`button`,{onClick:r,children:`取消`}),(0,v.jsx)(`button`,{className:f.primary,onClick:()=>n(i),children:`确定`})]})]})}var T=(0,g.lazy)(()=>c(()=>import(`./TrendChart-BF4JgwxH.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url));function E(e){return(0,v.jsx)(g.Suspense,{fallback:(0,v.jsx)(`p`,{role:`status`,children:`正在加载趋势图…`}),children:(0,v.jsx)(T,{...e})})}export{x as a,h as c,S as i,p as l,w as n,E as o,y as r,m as s,C as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e}from"./index-
|
|
1
|
+
import{p as e}from"./index-DLSVWUSu.js";var t=e(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./orbit-CrQs6cpl.js";import{t as n}from"./arrow-left-BhFSpYzK.js";import{n as r}from"./clock-3-CDHtQwAe.js";import{t as i}from"./arrow-up-right-IBQoN72x.js";import{t as a}from"./chart-no-axes-combined-DVgKs36j.js";import{t as o}from"./check-DBnlZFEo.js";import{t as s}from"./chevron-right-e65CaeL6.js";import{n as c,r as l,t as u}from"./ui-public-Dt5dHt-8.js";import{r as d}from"./CollaborationWorkspace-Cnp5PNn_.js";import{a as f,n as p,o as m,r as h}from"./products-B5vjXM_b.js";import{t as g}from"./layers-CjsT_HGi.js";import{t as _}from"./refresh-cw-CxbRf97c.js";import{t as v}from"./search-DFdSppzm.js";import{g as y,o as b,p as x,s as S,y as C}from"./index-DLSVWUSu.js";import{n as w}from"./module-host-DNtiV4gZ.js";import{n as T}from"./workspace-view-state-D0ujRczW.js";import"./public-C-PBMVOQ.js";import{t as E}from"./group-Ed305HyG.js";var D=x(`coins`,[[`path`,{d:`M13.744 17.736a6 6 0 1 1-7.48-7.48`,key:`bq4yh3`}],[`path`,{d:`M15 6h1v4`,key:`11y1tn`}],[`path`,{d:`m6.134 14.768.866-.5 2 3.464`,key:`17snzx`}],[`circle`,{cx:`16`,cy:`8`,r:`6`,key:`14bfc9`}]]),O=x(`grip-vertical`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),k=x(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),A=x(`scan-line`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}]]),j=C(y(),1);function M(e){return e.flatMap(e=>e.route.filter(e=>[`attention`,`review`].includes(e.state)).map(t=>({project:e,step:t})))}function N(e){return e.flatMap(e=>e.activity.map(t=>({project:e,event:t}))).sort((e,t)=>t.event.at.localeCompare(e.event.at))}var P={activity:`_activity_k9yph_1`,panel:`_panel_k9yph_1`},F=b();function I({mode:e,api:t,onOpen:n}){let i=w().archiveScope||`real`,[a,o]=(0,j.useState)([]),[s,c]=(0,j.useState)(!0),[l,u]=(0,j.useState)(``),[d,f]=(0,j.useState)(0),[p,m]=T(`workbench.`+e+`.search`,``);(0,j.useEffect)(()=>{let e=!0;return t(`/command-center`).then(t=>{let n=t?.projects;if(!Array.isArray(n))throw Error(`项目状态返回格式异常`);e&&(o(n.filter(e=>i===`stored-demo`?e.simulated:!e.simulated)),u(``))}).catch(t=>{e&&(o([]),u(t instanceof Error?t.message:`项目状态读取失败`))}).finally(()=>{e&&c(!1)}),()=>{e=!1}},[t,d,i]);let h=M(a),g=N(a),_=e=>e.toLowerCase().includes(p.trim().toLowerCase());return(0,F.jsxs)(`section`,{className:P.activity,children:[(0,F.jsxs)(`header`,{children:[(0,F.jsx)(`h1`,{children:e===`tasks`?`待处理事项`:`执行记录`}),(0,F.jsxs)(`label`,{children:[(0,F.jsx)(v,{size:16}),(0,F.jsx)(`input`,{"aria-label":`搜索工作台事项与记录`,value:p,onChange:e=>m(e.target.value),placeholder:`搜索项目或事项`})]})]}),l&&(0,F.jsxs)(`p`,{role:`alert`,children:[l,` `,(0,F.jsx)(`button`,{onClick:()=>{c(!0),f(e=>e+1)},children:`重试`})]}),s?(0,F.jsx)(`p`,{role:`status`,children:`正在读取项目状态…`}):(0,F.jsx)(`div`,{className:P.panel,children:e===`tasks`?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`h2`,{children:[`需要你处理 · `,h.length,` 项`]}),h.filter(({project:e,step:t})=>_(e.name+t.name)).slice(0,30).map(({project:e,step:t})=>(0,F.jsxs)(`button`,{onClick:()=>n(e.id,t.target),children:[(0,F.jsxs)(`span`,{children:[(0,F.jsxs)(`b`,{children:[t.name,` · `,t.state===`attention`?`待复核`:`待确认`]}),(0,F.jsxs)(`small`,{children:[e.name,` · `,t.description]})]}),(0,F.jsx)(r,{size:16})]},e.id+t.id)),!h.length&&(0,F.jsx)(`p`,{children:l?`连接恢复后显示待处理事项。`:`当前没有待复核或待确认的阶段。`})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`h2`,{children:`项目执行与确认记录`}),g.filter(({project:e,event:t})=>_(e.name+t.name)).slice(0,50).map(({project:e,event:t},i)=>(0,F.jsxs)(`button`,{onClick:()=>n(e.id,{tab:`wiki`}),children:[(0,F.jsxs)(`span`,{children:[(0,F.jsxs)(`b`,{children:[t.name,` · `,t.state]}),(0,F.jsxs)(`small`,{children:[e.name,` · `,new Date(t.at).toLocaleString(`zh-CN`)]})]}),(0,F.jsx)(r,{size:16})]},e.id+t.at+i)),!g.length&&(0,F.jsx)(`p`,{children:l?`连接恢复后显示执行记录。`:`当前没有执行记录。`})]})})]})}async function ee(e,t,n){let r=e=>{n?.aborted||t?.(e)},i=[e(`/growth-center?view=overview`).then(e=>{let t=e;if(!Array.isArray(t?.products)||!Array.isArray(t?.catalog))throw Error(`经营资料返回格式异常`);return r({growth:t}),t}),e(`/command-center`).then(e=>{let t=e?.projects;if(!Array.isArray(t))throw Error(`项目资料返回格式异常`);return r({projects:t}),t}),l(1e4,n,e).then(e=>(r({activity:e}),e))],a=(await Promise.allSettled(i)).filter(e=>e.status===`rejected`);if(a.length)throw Error(a.map(e=>e.reason instanceof Error?e.reason.message:`资料读取失败`).join(`;`));let[o,s,c]=await Promise.all(i);return{growth:o,projects:s,activity:c}}var te={refunds:`同期支付订单的退款`,product:`货品成本`,fulfillment:`运费与履约`,platform:`平台费用`,ads:`广告花费`,tax:`税费`,other:`其他变动费用`,fixed:`固定费用分摊`};function L(e){try{let t=JSON.parse(e||`{}`);return t.version!==1||!t.orders||typeof t.orders!=`object`||Array.isArray(t.orders)?{}:Object.fromEntries(Object.entries(t.orders).slice(0,20).filter(([e,t])=>e.length<100&&Array.isArray(t)).map(([e,t])=>[e,[...new Set(t.filter(e=>typeof e==`string`&&e.length<200))].slice(0,2500)]))}catch{return{}}}function R(e,t){let n=new Set(t);return[...(e||[]).filter(e=>n.delete(e)),...t.filter(e=>n.delete(e))]}function z(e,t,n,r){let i=[...new Set([...e||[],...t])];if(!t.includes(n)||!t.includes(r)||n===r)return i;let a=i.indexOf(n),o=i.indexOf(r);return i.splice(a,1),i.splice(o,0,n),i}var B=(0,j.createContext)(null);function ne({scope:e,onDirty:t,children:n}){let r=e?`omni.dashboard-layout.v1:`+encodeURIComponent(e):null,[i]=(0,j.useState)(()=>{try{return r?L(localStorage.getItem(r)):{}}catch{return{}}}),[a,o]=T(`dashboard.layout.`+(e||`session`),i),[s,c]=(0,j.useState)(a),[l,u]=(0,j.useState)(!1),[d,f]=(0,j.useState)(``),[p,m]=(0,j.useState)(null),h=l&&JSON.stringify(s)!==JSON.stringify(a);(0,j.useEffect)(()=>(t?.(h),()=>t?.(!1)),[h,t]);let g=()=>{u(!1),m(null)};function _(){try{r&&localStorage.setItem(r,JSON.stringify({version:1,orders:s})),o(s),g(),f(r?`布局已保存到当前账号的此台设备。`:`布局已保存,本次会话内有效。`)}catch{f(`布局保存失败,请检查本机存储后重试;当前调整仍保留。`)}}let v={editing:l,orders:s,drag:p,setDrag:m,scope:e,message:d,begin:()=>{c(a),u(!0),f(`拖动卡片左上角,或用前移、后移按钮调整顺序。`)},save:_,cancel:()=>{c(a),g(),f(`已取消本次布局修改。`)},reset:e=>{c(t=>Object.fromEntries(Object.entries(t).filter(([t])=>!e.includes(t)))),f(`当前页已恢复默认排列,点击保存后生效。`)},move:(e,t,n,r)=>{c(i=>({...i,[e]:z(i[e],t,n,r)})),f(`顺序已调整,保存后记住布局。`)}};return(0,F.jsx)(B.Provider,{value:v,children:(0,F.jsx)(`div`,{className:l?`dashboard-editing`:``,onClickCapture:e=>{l&&!e.target.closest(`[data-layout-control]`)&&(e.preventDefault(),e.stopPropagation())},children:n})})}function re({enabled:e=!0,groups:t=[]}){let n=(0,j.useContext)(B);return!n||!e&&!n.editing?null:(0,F.jsxs)(`div`,{className:`dl-toolbar`,"data-layout-control":!0,children:[(0,F.jsx)(`div`,{className:`dl-toolbar-actions`,children:n.editing?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{children:`调整卡片顺序`}),(0,F.jsxs)(`button`,{onClick:()=>n.reset(t),children:[(0,F.jsx)(k,{size:13}),`恢复默认`]}),(0,F.jsxs)(`button`,{onClick:n.cancel,children:[(0,F.jsx)(S,{size:13}),`取消`]}),(0,F.jsxs)(`button`,{className:`dl-save`,onClick:n.save,children:[(0,F.jsx)(o,{size:14}),`保存布局`]})]}):(0,F.jsxs)(`button`,{onClick:n.begin,children:[(0,F.jsx)(d,{size:14}),`编辑页面`]})}),n.message&&(0,F.jsx)(`small`,{role:`status`,children:n.message})]})}function ie({group:e,className:t=``,children:i}){let a=(0,j.useContext)(B),o=j.Children.toArray(i).filter(j.isValidElement).map((e,t)=>({id:String(e.key??t).replace(/^\.\$/,``),el:e})),s=o.map(e=>e.id),c=R(a?.orders[e],s);return(0,F.jsx)(`div`,{className:t,children:c.map((t,i)=>{let l=o.find(e=>e.id===t).el,u=l.props[`data-layout-label`]||`卡片`;return(0,j.cloneElement)(l,{key:t,"data-layout-card":t,"data-layout-group":e,className:[l.props.className,`dl-card`,a?.editing?`dl-editable`:``,a?.drag?.group===e&&a.drag.id===t?`dl-dragging`:``].filter(Boolean).join(` `),onDragOver:t=>{a?.editing&&a.drag?.group===e&&(t.preventDefault(),t.dataTransfer.dropEffect=`move`)},onDrop:n=>{a?.editing&&a.drag?.group===e&&(n.preventDefault(),n.stopPropagation(),a.move(e,s,a.drag.id,t),a.setDrag(null))}},a?.editing?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`dl-card-controls`,"data-layout-control":!0,children:[(0,F.jsxs)(`button`,{className:`dl-grip`,"aria-label":`拖动`+u,title:`拖动调整顺序`,onPointerDown:n=>{n.button===0&&(n.preventDefault(),n.stopPropagation(),n.currentTarget.setPointerCapture(n.pointerId),a.setDrag({group:e,id:t}))},onPointerUp:n=>{if(!n.currentTarget.hasPointerCapture(n.pointerId))return;n.currentTarget.releasePointerCapture(n.pointerId);let r=document.elementFromPoint(n.clientX,n.clientY)?.closest(`[data-layout-group]`);for(;r&&r.dataset.layoutGroup!==e;)r=r.parentElement?.closest(`[data-layout-group]`);let i=r?.dataset.layoutCard;i&&i!==t&&a.move(e,s,t,i),a.setDrag(null)},onPointerCancel:()=>a.setDrag(null),children:[(0,F.jsx)(O,{size:14}),(0,F.jsx)(`span`,{children:u})]}),(0,F.jsx)(`button`,{disabled:i===0,"aria-label":`前移`+u,title:`前移`,onClick:()=>a.move(e,s,t,c[i-1]),children:(0,F.jsx)(n,{size:13})}),(0,F.jsx)(`button`,{disabled:i===c.length-1,"aria-label":`后移`+u,title:`后移`,onClick:()=>a.move(e,s,t,c[i+1]),children:(0,F.jsx)(r,{size:13})})]}),l.props.children]}):l.props.children)})})}var V=e=>Math.round(Number(e)*100),H=e=>e.shopIds?.length===1?e.shopIds[0]:null,U=e=>e.slice().sort((e,t)=>String(t.created).localeCompare(String(e.created)));function W(e,t){let n=new Set;return U(e).filter(e=>{let r=t(e);return n.has(r)?!1:(n.add(r),!0)})}function G(e){let[t]=e;return e.length===1?t:{...t,id:`shops:`+JSON.stringify([t.mode,t.start,t.end,e.map(H).sort()]),aggregated:!0,shopIds:e.map(H),memberReports:e,scopeLabel:`${e.length} 家店铺汇总`,identity:e.map(e=>e.scopeLabel).join(`、`),total:e.reduce((e,t)=>e+V(t.total),0)/100,count:e.reduce((e,t)=>e+t.count,0),breakdown:e.flatMap(e=>e.breakdown.map(t=>({...t,name:e.scopeLabel+` · `+t.name,shopId:H(e)}))),basis:`同一统计期间的各店铺支付金额之和,不重复叠加历史账本;不扣退款。`}}function K(e,t){let n=e.filter(e=>t&&e.start===t.start&&e.end===t.end&&e.mode===t.mode&&(t.shopIds?.length?H(e)&&t.shopIds.includes(H(e)):!e.shopIds?.length&&e.project===t.project)),r=W(n.filter(e=>e.scope?.type===`item`),e=>(H(e)||e.project)+`|`+e.scope.id),i=W(n.filter(e=>e.scope?.type===`shop`),e=>H(e)||e.scope.id),a=i[0];if(t?.aggregated){let e=i.length===t.shopIds.length&&i.every(e=>e.complete),n=Object.keys(i[0]?.amounts||{});a={...t,aggregated:!0,memberReports:i,complete:e,gaps:e?[]:[`部分店铺缺少完整同期成本账本`],amounts:e?Object.fromEntries(n.map(e=>[e,i.reduce((t,n)=>t+V(n.amounts[e]),0)/100])):{},profit:e?i.reduce((e,t)=>e+V(t.profit),0)/100:null}}return{shop:a,itemBooks:r}}function q(e={},t=``){let n=W(e.sales||[],e=>H(e)?JSON.stringify([e.mode,H(e),e.start,e.end]):e.id),r=e.finance||[],i=new Map;for(let e of n){let t=H(e)?JSON.stringify([e.mode,e.start,e.end]):e.id;i.has(t)||i.set(t,[]),i.get(t).push(e)}let a=[...i.values()].map(e=>G(W(e,e=>H(e)||e.id))),o=W([...a.filter(e=>e.aggregated),...n],e=>e.id).map(e=>({...e,financeComplete:!!K(r,e).shop?.complete})),s=a[0],c=new Set(n.filter(e=>e.mode===s?.mode).map(H).filter(Boolean)),l=a.find(e=>e.mode===s?.mode&&(!c.size||e.shopIds?.length===c.size)&&K(r,e).shop?.complete)||s,u=o.find(e=>e.id===t),d=u||o.find(e=>e.id===l?.id);return{sales:o,report:d,...K(r,d),newestReport:s,automatic:!u,usingPreviousPeriod:!u&&!!d&&d.id!==s?.id}}var J=e=>typeof e==`number`?e.toLocaleString(`zh-CN`,{maximumFractionDigits:2}):`—`;function ae({metrics:n,products:r,projects:o,ready:s,onOpen:c,onNav:l,onAssign:u,demo:d,projectActivity:f}){let[p,m]=(0,j.useState)(``),[h,_]=(0,j.useState)(``),{sales:v,report:y,shop:b,itemBooks:x,newestReport:C,automatic:w,usingPreviousPeriod:T}=(0,j.useMemo)(()=>q(n,h),[n,h]),E=x.filter(e=>e.complete),O=E.filter(e=>e.profit>0),k=E.filter(e=>e.profit<0),A=E.filter(e=>e.profit===0),M=n?.incubation||[],N=M.filter(e=>e.success),P=f?.running,I=[{id:`sales`,label:`店铺销售额`,value:y?J(y.total):`暂无记录`,unit:y?`元`:``,note:y?`${y.shopIds?.length||1} 家店铺 · ${y.start} — ${y.end}`:`先归档全店销售数据`,Icon:a},{id:`profit`,label:`店铺利润`,value:b?.complete?J(b.profit):`缺成本资料`,unit:b?.complete?`元`:``,note:`已列成本口径经营结余 · 点击核对`,Icon:D},{id:`links`,label:`盈利 / 亏损链接`,value:E.length?`${O.length} / ${k.length}`:`尚未核算`,unit:E.length?`个`:``,note:`${E.length} 个有核算结果 · ${A.length} 个持平`,Icon:g},{id:`incubation`,label:`孵化晋级记录`,value:M.length?`${N.length} / ${M.length}`:`尚无记录`,unit:M.length?`个`:``,note:`已记录晋级 / 累计纳入 · 不代表成功率`,Icon:t},{id:`tasks`,label:`正在推进的任务`,value:s&&P!==void 0?P:`—`,unit:`个`,note:f?`${f.complete} 个项目已完成 · 任务看板进行中`:`正在读取项目任务`,Icon:e}],ee=I.map(e=>!s&&e.id!==`tasks`?{...e,value:`读取中`,unit:``,note:`正在读取经营资料`}:e);function L(e){if(e===`tasks`){l(`projects`);return}m(p===e?``:e)}let R=e=>d||e.aggregated?`data:application/json;charset=utf-8,`+encodeURIComponent(JSON.stringify(e,null,2)):`/api/workbench/`+e.project+`/file/`+(e.artifactId||e.id);return(0,F.jsxs)(F.Fragment,{children:[v.length>1&&(0,F.jsxs)(`div`,{className:`gb-period`,children:[(0,F.jsxs)(`label`,{children:[`销售与核算周期`,(0,F.jsxs)(`select`,{"aria-label":`销售与核算周期`,value:w?``:y?.id||``,onChange:e=>_(e.target.value),children:[(0,F.jsx)(`option`,{value:``,children:`自动选择 · 优先完整核算`}),v.map(e=>(0,F.jsxs)(`option`,{value:e.id,children:[e.scopeLabel||e.projectName,` · `,e.start,` ~ `,e.end,` · `,e.financeComplete?`成本齐全`:`成本待补齐`]},e.id))]})]}),T&&(0,F.jsxs)(`p`,{role:`status`,children:[`最新销售归档(`,C.start,` — `,C.end,`)尚未完成全部店铺的同期核算,当前展示最近完整核算周期(`,y.start,` — `,y.end,`)。`]})]}),(0,F.jsx)(ie,{group:`cockpit.kpis`,className:`gc-kpis`,children:ee.map(e=>(0,F.jsx)(`div`,{"data-layout-label":e.label,children:(0,F.jsxs)(`button`,{className:`gc-kpi gc-kpi-`+e.id+` `+(p===e.id?`is-open`:``),onClick:()=>L(e.id),"aria-expanded":p===e.id,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`span`,{className:`gc-kpi-icon`,children:(0,F.jsx)(e.Icon,{size:21})}),(0,F.jsx)(`span`,{children:e.label}),(0,F.jsx)(i,{size:13})]}),(0,F.jsxs)(`strong`,{className:String(e.value).length>9?`gc-long-value`:``,children:[e.value,(0,F.jsx)(`small`,{children:e.unit})]}),(0,F.jsx)(`p`,{children:e.note})]},e.id)},e.id))}),p&&(0,F.jsxs)(`section`,{className:`gb-detail`,"aria-label":`经营指标明细`,children:[(0,F.jsxs)(`header`,{children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`small`,{children:d?`演示数据 · 不代表真实经营结果`:`归档数据 · 以原件日期和来源为准`}),(0,F.jsxs)(`h2`,{children:[I.find(e=>e.id===p)?.label,` · 明细与下一步`]})]}),(0,F.jsx)(`button`,{"aria-label":`关闭指标明细`,onClick:()=>m(``),children:(0,F.jsx)(S,{size:18})})]}),p===`sales`&&(0,F.jsxs)(F.Fragment,{children:[y?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`p`,{children:y.basis}),(0,F.jsxs)(`p`,{children:[`统计范围:`,y.scopeLabel,` · `,y.count,` 个链接 · `,y.identity,`。`,y.mode===`unverified`?`来源未完成独立核验。`:``]}),(0,F.jsx)(`div`,{className:`gb-table`,children:(0,F.jsxs)(`table`,{children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{children:`商品 / 分类`}),(0,F.jsx)(`th`,{children:`支付销售额`}),(0,F.jsx)(`th`,{children:`链接数`}),(0,F.jsx)(`th`,{children:`下一步`})]})}),(0,F.jsx)(`tbody`,{children:y.breakdown.map(e=>(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`td`,{children:e.name}),(0,F.jsxs)(`td`,{children:[`¥ `,J(e.sales)]}),(0,F.jsx)(`td`,{children:e.count}),(0,F.jsx)(`td`,{children:(0,F.jsx)(`button`,{onClick:()=>e.itemId?c(e.project,{tab:`monitor`,itemId:e.itemId}):c(y.project,{tab:`data`}),children:e.itemId?`看商品表现`:`核对来源数据`})})]},e.name))})]})}),(0,F.jsx)(`p`,{className:`gb-next`,children:`下一步:先看销售贡献高的商品,再核对退款和成本,决定继续推广还是调整商品。`}),(0,F.jsx)(`a`,{href:R(y),download:d?`模拟销售账本.json`:void 0,children:`查看原始记录`})]}):(0,F.jsx)(`p`,{children:`当前没有全店销售记录。先到数据中心归档同一店铺、同一统计窗口的数据。`}),(0,F.jsx)(`button`,{onClick:()=>l(`data`),children:`进入数据中心`})]}),p===`profit`&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`p`,{children:`计算:支付销售额 − 同支付订单退款 − 货品、履约、平台、广告、税费、其他费用 − 固定费用分摊。结果是已列成本口径经营结余。`}),b?.complete?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`gb-costs`,children:[Object.entries(b.amounts).map(([e,t])=>(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`span`,{children:e===`gross`?`支付销售额`:te[e]}),(0,F.jsxs)(`b`,{children:[`¥ `,J(t)]})]},e)),(0,F.jsxs)(`div`,{className:`gb-profit`,children:[(0,F.jsx)(`span`,{children:`经营结余`}),(0,F.jsxs)(`b`,{children:[`¥ `,J(b.profit)]})]})]}),(0,F.jsx)(`a`,{href:R(b),download:d?`模拟利润账本.json`:void 0,children:`查看核算原件`})]}):(0,F.jsxs)(`div`,{className:`gb-gap`,children:[(0,F.jsx)(`b`,{children:`当前所选周期缺少完整店铺成本账本,不能计算利润。`}),(0,F.jsx)(`p`,{children:`需要补齐:货品、运费、平台、广告、税费、其他费用、固定费用分摊,以及同支付订单退款。明确没有发生的费用填0,未知项留空。`})]}),(0,F.jsx)(`p`,{className:`gb-next`,children:`下一步:核对金额和凭证;若亏损,先查看费用占比与亏损商品,再进入商品优化评估原因。`}),(0,F.jsx)(`button`,{onClick:()=>c(b?.project||y?.project||o[0]?.id,{tab:`finance`}),disabled:!o.length,children:`打开经营核算`})]}),p===`links`&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`p`,{children:`按同周期、完整成本账本判断:结余大于0为盈利,小于0为亏损,等于0为持平;缺成本的商品不计入盈亏。当前仅统计有账本的范围。`}),(0,F.jsx)(`div`,{className:`gb-table`,children:(0,F.jsxs)(`table`,{children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{children:`商品`}),(0,F.jsx)(`th`,{children:`销售额`}),(0,F.jsx)(`th`,{children:`经营结余`}),(0,F.jsx)(`th`,{children:`状态`}),(0,F.jsx)(`th`,{children:`下一步`})]})}),(0,F.jsx)(`tbody`,{children:x.map(e=>(0,F.jsxs)(`tr`,{children:[(0,F.jsxs)(`td`,{children:[e.projectName,(0,F.jsx)(`small`,{children:e.scope.id})]}),(0,F.jsxs)(`td`,{children:[`¥ `,J(e.gross)]}),(0,F.jsx)(`td`,{children:e.complete?`¥ `+J(e.profit):`费用不全`}),(0,F.jsx)(`td`,{children:(0,F.jsx)(`span`,{className:e.profit<0?`gb-loss`:`gb-win`,children:e.complete?e.profit>0?`盈利`:e.profit<0?`亏损`:`持平`:`待核算`})}),(0,F.jsx)(`td`,{children:(0,F.jsx)(`button`,{onClick:()=>c(e.project,{tab:e.complete?`optimization`:`finance`,itemId:e.scope.id}),children:e.complete?`查看并优化`:`补齐费用`})})]},e.id))})]})}),!x.length&&(0,F.jsx)(`p`,{children:`当前所选周期没有商品成本账本,不能仅凭销售额判定盈亏。`}),(0,F.jsx)(`button`,{disabled:!o.length,onClick:()=>c(y?.project||o[0]?.id,{tab:`finance`}),children:`补充商品成本账本`})]}),p===`incubation`&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`p`,{children:`这里只统计已保存的运营晋级记录与累计纳入数量,不计算经营成功率。未晋级可能仍在观察,不代表失败;每条记录需要核对标准、证据和观察时间,不能推断可复制收益。`}),(0,F.jsxs)(`div`,{className:`gb-inc-summary`,children:[(0,F.jsxs)(`b`,{children:[N.length,(0,F.jsx)(`small`,{children:`达标晋级`})]}),(0,F.jsx)(`span`,{children:`/`}),(0,F.jsxs)(`b`,{children:[M.length,(0,F.jsx)(`small`,{children:`纳入孵化`})]})]}),(0,F.jsx)(`div`,{className:`gb-table`,children:(0,F.jsxs)(`table`,{children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{children:`商品`}),(0,F.jsx)(`th`,{children:`加入时间`}),(0,F.jsx)(`th`,{children:`结果`}),(0,F.jsx)(`th`,{children:`老师标准与依据`}),(0,F.jsx)(`th`,{children:`下一步`})]})}),(0,F.jsx)(`tbody`,{children:M.map(e=>(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`td`,{children:e.itemId}),(0,F.jsx)(`td`,{children:e.started.slice(0,10)}),(0,F.jsx)(`td`,{children:e.success?`达标晋级`:`继续观察`}),(0,F.jsxs)(`td`,{className:`gb-wrap`,children:[e.standard||`待记录老师标准`,(0,F.jsx)(`small`,{children:e.evidence||`尚无达标证据`})]}),(0,F.jsx)(`td`,{children:(0,F.jsx)(`button`,{onClick:()=>{let t=r.find(t=>t.itemId===e.itemId&&t.project===e.project);t?u(t):c(e.project,{tab:`data`})},children:e.success?`查看运营分组`:`核对并晋级`})})]},e.key))})]})}),!M.length&&(0,F.jsx)(`p`,{children:`还没有新品进入孵化的记录,暂不能评价。`}),(0,F.jsx)(`p`,{className:`gb-next`,children:`下一步:先把新品加入“新品测试”;达标后选择下一运营分组,填写老师标准与达标依据。单纯换组不计为已记录达标晋级。`}),(0,F.jsx)(`button`,{disabled:!r.length,onClick:()=>u(r.find(e=>e.tier===`unassigned`)||r[0],`test`),children:`登记新品,开始孵化`})]})]})]})}var oe=e=>Math.abs(e)>=1e4?(e/1e4).toFixed(1)+`万`:Y(e),Y=e=>typeof e==`number`?e.toLocaleString(`zh-CN`,{maximumFractionDigits:2}):`—`,se={scale:`#35dcca`,incubate:`#9880ff`,test:`#438bff`,unassigned:`var(--omni-muted,#91a9bd)`},X={scale:`重点推广`,incubate:`持续孵化`,test:`新品测试`,unassigned:`待分组`},Z=[{id:`business`,label:`经营分析`,note:`查看商品经营趋势、销售构成和运营分组。`},{id:`projects`,label:`项目总览`,note:`全局看进度,卡片看状态,进入节点主流程继续推进。`},{id:`tasks`,label:`待办与任务`,note:`集中查看运营任务、巡店提醒和需要你处理的事项。`},{id:`history`,label:`复盘动态`,note:`回看项目阶段与历史记录,核对过程和依据。`}],ce={done:`已确认`,review:`待确认`,attention:`需处理`,todo:`未开始`,stopped:`已停止`};function Q({title:e,sub:t,children:n}){return(0,F.jsxs)(`div`,{className:`gc-panel-head`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`h2`,{children:[(0,F.jsx)(`span`,{}),` `,e]}),(0,F.jsx)(`small`,{children:t})]}),n]})}function le({series:e,days:t,onOpen:n}){let[r,o]=(0,j.useState)(null),s=e?.points||[],c=Date.parse(s.at(-1)?.date)-(t-1)*864e5,l=s.filter(e=>Date.parse(e.date)>=c),u=l.filter(e=>e.value!==null).map(e=>e.value);if(!u.length)return(0,F.jsxs)(`div`,{className:`gc-chart-empty`,children:[(0,F.jsx)(a,{size:38}),(0,F.jsx)(`b`,{children:`这段时间还没有可用数据`}),(0,F.jsx)(`span`,{children:`进入商品监控,查看数据来源与日期`}),(0,F.jsxs)(`button`,{onClick:n,children:[`查看商品监控 `,(0,F.jsx)(i,{size:13})]})]});let d=Math.min(0,...u),f=Math.max(1,...u)-d,p=e=>54+(Date.parse(e.date)-c)/(Math.max(1,t-1)*864e5)*690,m=e=>220-(e-d)/f*180,h=null,g=[];return l.forEach(e=>{if(e.value===null){h=null;return}h&&Date.parse(e.date)-Date.parse(h.date)===864e5&&g.push((0,F.jsx)(`line`,{x1:p(h),y1:m(h.value),x2:p(e),y2:m(e.value)},e.date)),h=e}),(0,F.jsxs)(`div`,{className:`gc-chart`,children:[(0,F.jsxs)(`div`,{className:`gc-chart-reading`,children:[(0,F.jsxs)(`strong`,{children:[Y(r?.value??l.at(-1)?.value),(0,F.jsx)(`small`,{children:e.unit})]}),(0,F.jsxs)(`span`,{children:[r?.date||l.at(-1)?.date,` · `,e.name]}),(0,F.jsx)(`i`,{children:`柱与线均为同一指标`})]}),(0,F.jsxs)(`svg`,{viewBox:`0 0 780 255`,role:`img`,"aria-label":`${e.name},最近${t}天归档趋势,缺失不补零`,children:[(0,F.jsx)(`defs`,{children:(0,F.jsxs)(`linearGradient`,{id:`gc-bar`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,F.jsx)(`stop`,{stopColor:`var(--omni-chart-primary,#5ec9ff)`}),(0,F.jsx)(`stop`,{offset:`1`,stopColor:`var(--omni-chart-primary,#2857d6)`,stopOpacity:`.3`})]})}),[0,.25,.5,.75,1].map(e=>(0,F.jsxs)(`g`,{children:[(0,F.jsx)(`line`,{className:`gc-gridline`,x1:`54`,x2:`750`,y1:m(d+f*e),y2:m(d+f*e)}),(0,F.jsx)(`text`,{x:`42`,y:m(d+f*e)+4,textAnchor:`end`,children:oe(d+f*e)})]},e)),l.map(n=>n.value===null?null:(0,F.jsxs)(`g`,{onMouseEnter:()=>o(n),onMouseLeave:()=>o(null),children:[(0,F.jsx)(`rect`,{x:p(n)-Math.min(8,230/t),y:Math.min(m(0),m(n.value)),width:Math.min(16,460/t),height:Math.max(1,Math.abs(m(0)-m(n.value))),rx:`2`,fill:`url(#gc-bar)`}),(0,F.jsx)(`circle`,{cx:p(n),cy:m(n.value),r:`3`,fill:`var(--omni-chart-primary,#6ceeff)`}),(0,F.jsxs)(`title`,{children:[n.date,`:`,Y(n.value),` `,e.unit]})]},n.date)),(0,F.jsx)(`g`,{className:`gc-line`,children:g}),[0,.25,.5,.75,1].map(e=>(0,F.jsx)(`text`,{x:54+690*e,y:`247`,textAnchor:`middle`,children:new Date(c+(t-1)*864e5*e).toISOString().slice(5,10)},e))]})]})}function $(e){return(0,F.jsx)(ne,{scope:e.layoutScope,onDirty:e.onDirty,children:(0,F.jsx)(ue,{...e})})}function ue({products:e,projects:t,catalog:n,ready:r,onAction:a,onAssign:o,onOpen:l,onNav:u,onTier:d,onCreate:p,onExecute:h,metrics:g,demo:_,projectActivity:v,projectPreview:y,onRefreshProjects:b}){let[x,S]=T(`workbench.cockpit.tab`,`business`),C=Z.find(e=>e.id===x)||Z[0],w=(0,j.useRef)(null);function E(e){let t=Z.findIndex(e=>e.id===C.id),n=e.key===`ArrowRight`?(t+1)%Z.length:e.key===`ArrowLeft`?(t+Z.length-1)%Z.length:e.key===`Home`?0:e.key===`End`?Z.length-1:-1;n<0||(e.preventDefault(),S(Z[n].id),(w.current?.querySelectorAll(`[role=tab]`)[n])?.focus())}let[D,O]=T(`workbench.productKey`,``),[k,M]=T(`workbench.metric`,``),[N,P]=T(`workbench.days`,30),[I,ee]=T(`workbench.timelineDays`,14),[te,L]=(0,j.useState)(null),R=e.find(e=>e.key===D)||e.find(e=>e.demoCurrent)||e[0],z=R?.series.find(e=>e.key===k)||R?.series.find(e=>[`paid`,`payAmt`,`sales`,`gmv`].includes(e.metric))||R?.series.find(e=>e.metric===`buyers`)||R?.series[0],B=v?.running??0,ne=v?.pending??0,V=e.filter(e=>f(e)),H=Object.keys(X).map(t=>({id:t,name:X[t],count:e.filter(e=>e.tier===t).length})),U=0,W=H.map(t=>{let n={...t,offset:U,length:e.length?t.count/e.length*314.16:0};return U+=n.length,n}),G=t.filter(e=>e.replay?.some(e=>Number.isFinite(Date.parse(e.at)))).sort((e,t)=>String(t.updated).localeCompare(String(e.updated))),K=Math.max(0,...G.flatMap(e=>e.replay.map(e=>Date.parse(e.at)).filter(Number.isFinite))),q=K-(I-1)*864e5,J=[{label:`待选择运营分组`,items:e.filter(e=>e.tier===`unassigned`),color:`#8097b8`},{label:`数据需更新`,items:e.filter(e=>e.work?.needsUpdate),color:`#f3ba66`},{label:`任务需检查`,items:e.filter(e=>e.work?.problems?.length),color:`#f581a7`},{label:`近期运行中`,items:e.filter(e=>e.work?.active?.length),color:`#3ddad7`}],Y=g?.sales?.[0],$=(Y?.breakdown||[]).filter(e=>typeof e.sales==`number`).slice().sort((e,t)=>t.sales-e.sales).slice(0,8),ue=$.length>0&&$.every(e=>e.itemId),me=Math.max(1,...$.map(e=>e.sales));return(0,F.jsxs)(`div`,{className:`gc`,children:[(0,F.jsx)(re,{enabled:[`business`,`projects`].includes(C.id),groups:[`cockpit.kpis`,...C.id===`projects`?[`projects.modules`,`projects.stats`,`projects.cards`]:[`cockpit.business`]]}),(0,F.jsx)(ae,{metrics:g,products:e,projects:t,ready:r,onOpen:l,onNav:u,onAssign:o,demo:_,projectActivity:v}),(0,F.jsxs)(`div`,{className:`gc-tabs-heading`,children:[(0,F.jsx)(`div`,{role:`tablist`,"aria-label":`工作台分类`,className:`gc-tabs`,"data-layout-control":!0,ref:w,onKeyDown:E,children:Z.map(e=>(0,F.jsx)(`button`,{role:`tab`,id:`gc-tab-`+e.id,"aria-controls":`gc-panel-`+e.id,"aria-selected":C.id===e.id,tabIndex:C.id===e.id?0:-1,onClick:()=>S(e.id),children:e.label},e.id))}),C.id===`projects`&&(0,F.jsxs)(`div`,{className:`pb-heading-actions`,children:[(0,F.jsxs)(`button`,{className:`pb-all-projects`,onClick:()=>u(`projects`),children:[`查看全部项目 `,(0,F.jsx)(i,{size:14})]}),(0,F.jsx)(`button`,{className:`pb-create`,onClick:p,children:`+ 新建项目`})]})]}),(0,F.jsx)(`p`,{className:`gc-tab-description`,children:C.note}),(0,F.jsxs)(`div`,{role:`tabpanel`,id:`gc-panel-`+C.id,"aria-labelledby":`gc-tab-`+C.id,tabIndex:0,className:`gc-tab-panel gc-tab-`+C.id,children:[C.id===`projects`&&(0,F.jsx)(c,{previewData:y,onRefresh:b,onExecute:h,projects:t,ready:r,onOpen:l,onCreate:p,showHeading:!1,previewLimit:8,onAllProjects:()=>u(`projects`)}),C.id===`tasks`&&(0,F.jsx)(`div`,{className:`gc-quick-tiers`,"aria-label":`运营策略任务速览`,children:[`test`,`incubate`,`scale`].map(t=>{let n=e.filter(e=>e.tier===t),r=n.filter(e=>e.work?.active?.length),c=n.filter(e=>f(e)),l=n.find(e=>e.demoCurrent)||r[0]||n[0];return(0,F.jsxs)(`section`,{style:{"--tier":se[t]},children:[(0,F.jsxs)(`header`,{children:[(0,F.jsx)(`b`,{children:X[t]}),(0,F.jsxs)(`span`,{children:[n.length,`个商品 · `,r.length,`个运行中`]}),(0,F.jsx)(`button`,{onClick:()=>d(t),"aria-label":`查看`+X[t]+`全部商品`,children:(0,F.jsx)(s,{size:14})})]}),(0,F.jsxs)(`button`,{className:`gc-quick-line`,disabled:!l,onClick:()=>a(l,`work`),children:[(0,F.jsx)(`em`,{children:`正在做`}),(0,F.jsxs)(`span`,{children:[l?l.demoCurrent||m(l):`等待商品加入`,l&&(0,F.jsx)(`small`,{children:l.projectName})]})]}),(0,F.jsxs)(`button`,{className:`gc-quick-line`,onClick:()=>l?a(l,`data`):o(null,t),children:[(0,F.jsx)(`em`,{children:`下一步`}),(0,F.jsx)(`span`,{children:l?.demoNext||(t===`test`?`核对点击和加购,选出潜力款`:t===`incubate`?`核对转化与成本,确认是否赚钱`:`检查推广效果,优化计划`)}),(0,F.jsx)(s,{size:12})]}),(0,F.jsxs)(`button`,{className:`gc-quick-alert `+(c.length?`has-issues`:``),onClick:()=>c.length?a(c[0],`work`):d(t),children:[c.length?`需要你处理 `+c.length+` 项 · `+f(c[0]):`暂无待处理提醒`,(0,F.jsx)(i,{size:12})]})]},t)})}),(0,F.jsxs)(ie,{group:`cockpit.`+C.id,className:`gc-main-grid`,children:[C.id===`business`&&(0,F.jsxs)(`section`,{"data-layout-label":`商品经营趋势`,className:`gc-panel gc-sales`,children:[(0,F.jsx)(Q,{title:`商品经营趋势`,sub:`按商品查看归档数据,保留真实波动`,children:(0,F.jsx)(`div`,{className:`gc-toggle`,children:[7,30].map(e=>(0,F.jsxs)(`button`,{"aria-pressed":N===e,onClick:()=>P(e),children:[e,`天`]},e))})}),(0,F.jsxs)(`div`,{className:`gc-selects`,children:[(0,F.jsx)(`select`,{"aria-label":`驾驶舱商品`,value:R?.key||``,onChange:e=>{O(e.target.value),M(``)},children:e.map(e=>(0,F.jsxs)(`option`,{value:e.key,children:[e.title||e.projectName,` · `,e.shopName||e.itemId]},e.key))}),(0,F.jsx)(`select`,{"aria-label":`驾驶舱趋势指标`,value:z?.key||``,onChange:e=>M(e.target.value),children:R?.series.map(e=>(0,F.jsx)(`option`,{value:e.key,children:e.name},e.key))}),(0,F.jsxs)(`button`,{disabled:!R,onClick:()=>a(R,`data`),children:[`明细 `,(0,F.jsx)(s,{size:12})]})]}),(0,F.jsx)(le,{series:z,days:N,onOpen:()=>R?a(R,`monitor`):u(`projects`)},R?.key+`|`+z?.key+`|`+N),(0,F.jsx)(`p`,{className:`gc-footnote`,children:`单商品数据,不等于全店销售额 · 缺失日期不连线 · 来源见归档详情`})]},`sales`),C.id===`business`&&(0,F.jsxs)(`section`,{"data-layout-label":`商品运营分组`,className:`gc-panel gc-structure`,children:[(0,F.jsx)(Q,{title:`商品运营分组`,sub:`点击分类,查看商品和下一步`}),(0,F.jsxs)(`div`,{className:`gc-ring`,children:[(0,F.jsxs)(`svg`,{viewBox:`0 0 160 160`,role:`img`,"aria-label":H.map(e=>e.name+e.count+`个`).join(`,`),children:[(0,F.jsx)(`circle`,{cx:`80`,cy:`80`,r:`62`,fill:`none`,stroke:`var(--omni-chart-track,#1e355b)`,strokeWidth:`1`,strokeDasharray:`2 4`}),(0,F.jsx)(`circle`,{cx:`80`,cy:`80`,r:`50`,fill:`none`,stroke:`var(--omni-chart-track,#152849)`,strokeWidth:`18`}),W.filter(e=>e.count>0).map(e=>(0,F.jsx)(`circle`,{cx:`80`,cy:`80`,r:`50`,fill:`none`,stroke:se[e.id],strokeWidth:`18`,strokeDasharray:`${e.length} ${314.16-e.length}`,strokeDashoffset:-e.offset,transform:`rotate(-90 80 80)`},e.id)),(0,F.jsx)(`text`,{x:`80`,y:`80`,textAnchor:`middle`,className:`gc-ring-number`,children:r?e.length:`—`}),(0,F.jsx)(`text`,{x:`80`,y:`98`,textAnchor:`middle`,children:`商品观察对象`})]}),(0,F.jsx)(`div`,{className:`gc-ring-legend`,children:H.map(t=>(0,F.jsxs)(`button`,{onClick:()=>d(t.id),children:[(0,F.jsx)(`i`,{style:{background:se[t.id]}}),(0,F.jsx)(`span`,{children:t.name}),(0,F.jsx)(`b`,{children:t.count}),(0,F.jsxs)(`small`,{children:[e.length?Math.round(t.count/e.length*100):0,`%`]}),(0,F.jsx)(s,{size:12})]},t.id))})]}),(0,F.jsx)(`p`,{className:`gc-footnote`,children:`同一商品在不同项目中分别记录;人工策略分组以保存记录为准,不代表全店经营梯队。`})]},`structure`),C.id===`business`&&(0,F.jsxs)(`section`,{"data-layout-label":`销售构成`,className:`gc-panel gc-ranking`,children:[(0,F.jsx)(Q,{title:ue?`商品销售排行`:`销售构成`,sub:Y?Y.start+` — `+Y.end+` · 同一份销售账本`:`按同一统计期的销售账本排名`}),(0,F.jsx)(`div`,{className:`gc-rank-list`,children:$.map((e,t)=>(0,F.jsxs)(`button`,{onClick:()=>l(e.project||Y.project,{tab:e.itemId?`monitor`:`data`,itemId:e.itemId}),children:[(0,F.jsx)(`i`,{children:t+1}),(0,F.jsxs)(`span`,{title:e.name||e.itemId,children:[e.name||e.itemId,(0,F.jsx)(`small`,{children:e.itemId||e.count+`个商品`})]}),(0,F.jsx)(`div`,{children:(0,F.jsx)(`b`,{style:{width:Math.max(2,e.sales/me*100)+`%`}})}),(0,F.jsxs)(`strong`,{children:[`¥`,oe(e.sales)]})]},e.project+`|`+(e.itemId||e.name)))}),!$.length&&(0,F.jsxs)(`p`,{className:`gc-no-data`,children:[`还没有同期商品销售明细。`,(0,F.jsx)(`button`,{onClick:()=>u(`data`),children:`查看已有资料`})]}),(0,F.jsx)(`p`,{className:`gc-footnote`,children:ue?`点击商品核对明细 · 销售排名不代表盈利排名`:`原件按品类汇总,点击查看归档;不是单品排名`})]},`ranking`),C.id===`tasks`&&(0,F.jsxs)(`section`,{"data-layout-label":`巡店检查`,className:`gc-panel gc-inspect`,children:[(0,F.jsx)(Q,{title:`巡店检查`,sub:`基于归档与任务状态 · 点击查看待办`,children:(0,F.jsx)(A,{size:17})}),(0,F.jsx)(`div`,{className:`gc-checks`,children:J.map(t=>(0,F.jsxs)(`button`,{disabled:!t.items.length,onClick:()=>t.label===`待选择运营分组`?o(t.items[0]):a(t.items[0],`work`),children:[(0,F.jsx)(`span`,{children:t.label}),(0,F.jsx)(`div`,{children:(0,F.jsx)(`i`,{style:{width:`${e.length?t.items.length/e.length*100:0}%`,background:t.color}})}),(0,F.jsx)(`b`,{children:r?t.items.length:`—`}),(0,F.jsx)(s,{size:12})]},t.label))}),(0,F.jsx)(`p`,{className:`gc-footnote`,children:`同一商品可有多项提醒,数量不可相加;点击先处理一项。`}),(0,F.jsxs)(`div`,{className:`gc-archive`,children:[(0,F.jsx)(de,{count:n.length}),(0,F.jsxs)(`button`,{onClick:()=>u(`data`),children:[`查看来源 `,(0,F.jsx)(i,{size:12})]})]})]},`inspect`),C.id===`history`&&(0,F.jsxs)(`section`,{"data-layout-label":`项目阶段记录`,className:`gc-panel gc-matrix`,children:[(0,F.jsx)(Q,{title:`项目阶段记录`,sub:`节点流程与历史六步记录分别保留,点击核对对应阶段`,children:(0,F.jsxs)(`button`,{onClick:()=>u(`projects`),children:[`全部项目 `,(0,F.jsx)(i,{size:12})]})}),(0,F.jsx)(`div`,{className:`gc-state-legend`,children:Object.entries(ce).map(([e,t])=>(0,F.jsxs)(`span`,{children:[(0,F.jsx)(`i`,{className:e}),t]},e))}),(0,F.jsxs)(`div`,{className:`gc-matrix-scroll`,children:[t.slice(0,8).map(e=>(0,F.jsxs)(`div`,{className:`gc-matrix-row`,children:[(0,F.jsxs)(`button`,{className:`gc-project-name`,title:e.name,onClick:()=>l(e.id,{tab:`overview`}),children:[e.name,(0,F.jsxs)(`small`,{children:[e.done,`/`,e.total,` 阶段已确认`]})]}),(0,F.jsx)(`div`,{children:e.route.map((t,n)=>(0,F.jsx)(`button`,{className:`gc-cell `+t.state,"aria-label":`${e.name}:${t.name},${ce[t.state]}`,title:`${t.name} · ${ce[t.state]}`,onClick:()=>l(e.id,t.target),children:String(n+1).padStart(2,`0`)},t.id))})]},e.id)),!t.length&&(0,F.jsx)(`p`,{className:`gc-no-data`,children:`当前范围还没有项目。`})]})]},`matrix`),C.id===`history`&&(0,F.jsxs)(`section`,{"data-layout-label":`项目历史时间轴`,className:`gc-panel gc-history`,children:[(0,F.jsx)(Q,{title:`项目历史时间轴`,sub:_?`模拟历史记录;每天的记录合并为一个色块`:`按真实归档时间显示;每天的记录合并为一个色块`,children:(0,F.jsx)(`div`,{className:`gc-toggle`,children:[14,30].map(e=>(0,F.jsxs)(`button`,{"aria-pressed":I===e,onClick:()=>ee(e),children:[e,`天`]},e))})}),K>0?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`gc-time-header`,children:[(0,F.jsx)(`span`,{children:`项目 / 点击查看记录`}),(0,F.jsx)(`div`,{children:[0,.25,.5,.75,1].map(e=>(0,F.jsx)(`span`,{children:new Date(q+(K-q)*e).toISOString().slice(5,10)},e))})]}),(0,F.jsx)(`div`,{className:`gc-time-scroll`,children:G.filter(e=>e.replay.some(e=>Date.parse(e.at)>=q)).slice(0,7).map(e=>(0,F.jsxs)(`div`,{className:`gc-time-row`,children:[(0,F.jsx)(`button`,{title:e.name,onClick:()=>L({project:e,events:e.replay}),children:e.name}),(0,F.jsx)(`div`,{children:fe(e.replay.filter(e=>Date.parse(e.at)>=q)).map(t=>(0,F.jsx)(`button`,{className:`gc-event `+(t.events.some(e=>/失败|停止/.test(e.state))?`bad`:t.events.some(e=>/确认|完成/.test(e.state))?`done`:`saved`),style:{left:`${(Date.parse(t.events[0].at)-q)/(K-q)*100}%`},title:`${t.date} · ${t.events.length} 条记录`,"aria-label":`${e.name}:${t.date},${t.events.length}条记录`,onClick:()=>L({project:e,events:t.events,date:t.date}),children:t.events.length},t.date))})]},e.id))}),(0,F.jsxs)(`p`,{className:`gc-footnote`,children:[`最近有记录的日期窗口 · 每个项目最多展示最近120条记录 · 点击色块展开当天记录,不代表运行时长;`,_?`演示操作会追加记录。`:`完整回放在项目执行页。`]})]}):(0,F.jsx)(`p`,{className:`gc-no-data`,children:`暂无可回放的历史记录。`})]},`history`),C.id===`tasks`&&(0,F.jsxs)(`section`,{"data-layout-label":`需要你处理`,className:`gc-panel gc-todo`,children:[(0,F.jsx)(Q,{title:`需要你处理`,sub:`先做这一件,再继续下一步`,children:(0,F.jsxs)(`span`,{className:`gc-badge`,children:[V.length,` 项`]})}),(0,F.jsxs)(`div`,{className:`gc-todo-list`,children:[V.map((e,t)=>(0,F.jsxs)(`button`,{onClick:()=>e.tier===`unassigned`?o(e):a(e,`work`),children:[(0,F.jsx)(`span`,{className:`gc-todo-num`,children:String(t+1).padStart(2,`0`)}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`b`,{children:f(e)}),(0,F.jsxs)(`span`,{children:[e.title||e.projectName,` · `,e.shopName||e.itemId]}),(0,F.jsx)(`small`,{children:m(e)})]}),(0,F.jsx)(s,{size:15})]},e.key)),!V.length&&(0,F.jsx)(`p`,{className:`gc-no-data`,children:r?`当前没有商品待办。`:`正在读取…`}),(0,F.jsx)(`h3`,{className:`gc-next-label`,children:`接下来可以做`}),t.slice(0,5).map(e=>(0,F.jsxs)(`button`,{onClick:()=>l(e.id,{tab:`overview`}),children:[(0,F.jsx)(`span`,{className:`gc-next-dot`}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`b`,{children:e.name}),(0,F.jsx)(`span`,{children:`查看项目节点与下一步`})]}),(0,F.jsx)(s,{size:13})]},`next-`+e.id))]})]},`todo`)]})]}),te&&(0,F.jsx)(pe,{...te,onClose:()=>L(null),onOpen:l}),(0,F.jsxs)(`div`,{className:`gc-status-strip`,children:[(0,F.jsxs)(`span`,{children:[(0,F.jsx)(`i`,{}),` `,_?`教学模拟`:`归档数据`,` · `,e.length,` 个商品`]}),(0,F.jsxs)(`span`,{children:[t.length,` 个项目 · `,v?.started??0,` 个已开展 · `,v?.complete??0,` 个项目已完成`]}),(0,F.jsxs)(`span`,{children:[B,` 项推进中 · `,ne,` 项待开始`]}),(0,F.jsxs)(`button`,{onClick:()=>u(`products`),children:[`展开运营工作清单 `,(0,F.jsx)(i,{size:13})]})]})]})}function de({count:e}){return(0,F.jsxs)(`span`,{children:[(0,F.jsx)(`b`,{children:e}),` 份归档资料可追溯`]})}function fe(e){let t=new Map;for(let n of e){let e=new Date(Date.parse(n.at)+8*36e5).toISOString().slice(0,10);t.set(e,[...t.get(e)||[],n])}return[...t].map(([e,t])=>({date:e,events:t}))}function pe({project:e,events:t,date:n,onClose:r,onOpen:i}){let a=(0,j.useRef)(null);return(0,j.useEffect)(()=>{a.current?.showModal()},[]),(0,F.jsxs)(`dialog`,{className:`ta-dialog gc-history-dialog`,ref:a,onClose:r,"aria-labelledby":`gc-history-title`,children:[(0,F.jsxs)(`div`,{className:`ta-dialog-head`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`small`,{children:e.name}),(0,F.jsxs)(`h2`,{id:`gc-history-title`,children:[n||`项目历史`,` · `,t.length,` 条记录`]})]}),(0,F.jsx)(`button`,{"aria-label":`关闭历史记录`,onClick:r,children:`×`})]}),(0,F.jsx)(`p`,{children:`按发生时间排列。展开记录,查看当时做了什么。`}),(0,F.jsx)(`div`,{className:`gc-records`,children:t.map((t,n)=>(0,F.jsxs)(`details`,{children:[(0,F.jsxs)(`summary`,{children:[(0,F.jsx)(`span`,{children:new Date(t.at).toLocaleString(`zh-CN`,{timeZone:`Asia/Shanghai`})}),(0,F.jsx)(`b`,{children:t.name}),(0,F.jsx)(`em`,{children:t.state})]}),(0,F.jsx)(`p`,{children:t.detail||`此记录没有保存详细说明,可进入对应阶段核对原始资料。`}),(0,F.jsx)(`button`,{onClick:()=>{r(),i(e.id,e.route.find(e=>e.id===t.routeId)?.target||{tab:`data`})},children:`进入对应阶段 / 资料`})]},n))})]})}function me(){let e=w(),[t,n]=T(`workbench.loadedData`,{growth:null,projects:null,activity:null}),[r,i]=(0,j.useState)(!0),[a,o]=(0,j.useState)(``),[s,c]=(0,j.useState)(``),[l,d]=(0,j.useState)(0),f=e.archiveScope||`real`,[m,g]=(0,j.useState)(null),[v,y]=(0,j.useState)(null);(0,j.useEffect)(()=>{let t=new AbortController;return ee(e.api,e=>n(t=>({...t,...e})),t.signal).then(()=>{t.signal.aborted||o(``)}).catch(e=>{t.signal.aborted||o(e instanceof Error?e.message:`经营资料读取失败`)}).finally(()=>{t.signal.aborted||i(!1)}),()=>t.abort()},[e.api,l,n]);let b=e=>f===`stored-demo`?e.mode===`simulated`:e.mode!==`simulated`,x=t.growth?.products.filter(b)||[],S=t.growth?.catalog.filter(b)||[],C=t.projects?.filter(e=>f===`stored-demo`?e.simulated:!e.simulated)||[],D=t.projects&&t.activity?t.activity.items.filter(e=>C.some(t=>t.id===e.id)):null,O=D?{running:D.reduce((e,t)=>e+t.activeTasks,0),pending:D.reduce((e,t)=>e+t.pendingTasks,0),started:D.filter(e=>e.started>0).length,complete:D.filter(e=>e.status===`complete`).length}:null,k=(0,j.useMemo)(()=>{let e=e=>f===`stored-demo`?e.mode===`simulated`:e.mode!==`simulated`;return{sales:t.growth?.metrics?.sales?.filter(e)||[],finance:t.growth?.metrics?.finance?.filter(e)||[],incubation:t.growth?.metrics?.incubation?.filter(e)||[]}},[t.growth,f]),A=(0,j.useCallback)(()=>{i(!0),d(e=>e+1)},[]);u(C.some(e=>e.execution?.state===`running`),A);function M(t,n){n===`work`?y(t):n===`data`?e.onProductGroup(`all`,t,f):e.onOpen(t.project,{tab:n,itemId:t.itemId})}return(0,F.jsx)(`div`,{className:`workbench-module`,children:(0,F.jsx)(`div`,{className:`gw`,children:(0,F.jsxs)(`div`,{className:`gw-body`,children:[(0,F.jsxs)(`header`,{className:`gw-header`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`small`,{children:`工作台 / 经营总览`}),(0,F.jsx)(`h1`,{children:`电商运营作战台`})]}),(0,F.jsxs)(`div`,{className:`gw-header-actions`,children:[(0,F.jsxs)(`span`,{children:[(0,F.jsx)(`i`,{className:`gw-dot`}),`归档数据 · 非实时`]}),(0,F.jsxs)(`button`,{disabled:r,onClick:A,children:[(0,F.jsx)(_,{size:14}),r?`读取中`:`刷新数据`]})]})]}),(0,F.jsx)(`div`,{className:`gw-scope`,children:(0,F.jsx)(`span`,{children:t.growth?`${new Date(t.growth.updatedAt).toLocaleString(`zh-CN`)} 读取归档`:`正在读取归档…`})}),a&&(0,F.jsxs)(`p`,{role:`alert`,className:`gw-message`,children:[a,` `,(0,F.jsx)(`button`,{onClick:A,children:`重试`})]}),s&&(0,F.jsx)(`p`,{role:`status`,className:`gw-message`,children:s}),(0,F.jsx)($,{layoutScope:e.layoutScope,onDirty:e.onDirty,onCreate:e.onCreate,products:x,projects:C,catalog:S,metrics:k,projectActivity:O,projectPreview:t.activity,onRefreshProjects:A,ready:!!t.growth,demo:!1,onOpen:e.onOpen,onNav:e.onModule,onTier:t=>e.onProductGroup(t,void 0,f),onAction:M,onAssign:(e,t)=>g({product:e,suggestedTier:t})}),m&&(0,F.jsx)(p,{...m,products:x,onDirty:e.onDirty,onBusy:e.onBusy,onClose:()=>g(null),onSave:async(t,n,r,i)=>{await E(e.api,t,n,r,i),c(`分组已保存,正在更新看板。`),A()}}),v&&(0,F.jsx)(h,{product:v,onOpen:e.onOpen,onClose:()=>y(null)})]})})})}function he({section:e}){let t=w();return e===`tasks`||e===`records`?(0,F.jsx)(I,{mode:e,api:t.api,onOpen:t.onOpen},e):(0,F.jsx)(me,{})}export{he as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._activity_k9yph_1{color:var(--omni-text);max-width:1600px;margin:auto}._activity_k9yph_1 header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;display:flex}._activity_k9yph_1 h1{font-size:27px}._activity_k9yph_1 h2{font-size:15px}._activity_k9yph_1 label{align-items:center;gap:10px;display:flex}._activity_k9yph_1 input{background:var(--omni-field);border:1px solid var(--omni-line);color:inherit;border-radius:6px;padding:10px}._panel_k9yph_1{border:1px solid var(--omni-line);background:var(--omni-panel);border-radius:10px;padding:20px 22px}._activity_k9yph_1 button{border:0;border-bottom:1px solid var(--omni-line);width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;justify-content:space-between;align-items:center;gap:14px;padding:13px 0;display:flex}._activity_k9yph_1 small{color:var(--omni-muted);margin-top:5px;font-size:11px;display:block}._activity_k9yph_1 p{color:var(--omni-muted);font-size:12px;line-height:1.8}._activity_k9yph_1 button:focus-visible{outline:2px solid var(--omni-accent);outline-offset:3px}@media (width<=800px){._activity_k9yph_1 header{flex-direction:column;align-items:flex-start}}.dl-toolbar{min-height:32px;color:var(--omni-muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin:0 0 14px;display:flex}.dl-toolbar-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.dl-toolbar-actions>span{margin-right:5px;font-size:12px}.gw .dl-toolbar button,.gw .dl-card-controls button{font:inherit;border:1px solid var(--omni-line);background:var(--omni-panel);color:var(--omni-text);cursor:pointer;border-radius:6px;justify-content:center;align-items:center;gap:6px;padding:7px 10px;font-size:11px;line-height:1.4;display:flex}.gw .dl-toolbar .dl-save{background:var(--omni-accent);color:var(--omni-accent-text);border-color:var(--omni-accent)}.dl-toolbar small{font-size:11px}.dl-card{min-width:0}.dl-card>.gc-kpi,.dl-card>.pb-stat{width:100%;height:100%}.dashboard-editing .dl-toolbar{z-index:20;background:var(--omni-panel);border:1px solid var(--omni-line);border-radius:8px;padding:10px;position:sticky;top:0}.dl-card-controls{color:var(--omni-accent);z-index:1;align-items:center;gap:4px;min-width:0;margin-bottom:10px;display:flex;position:relative}.gw .dl-card-controls button{flex-shrink:0;padding:5px;font-size:10px}.gw .dl-card-controls .dl-grip{cursor:grab;min-width:0;color:var(--omni-accent);background:color-mix(in srgb,var(--omni-accent) 9%,var(--omni-panel));border-style:dashed;flex:1;justify-content:flex-start;overflow:hidden}.dl-grip{touch-action:none;-webkit-user-select:none;user-select:none}.dl-grip span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dl-grip svg{flex-shrink:0}.gw .dl-card-controls button:disabled{opacity:.3;cursor:default}.dl-editable{outline:1px dashed color-mix(in srgb,var(--omni-accent) 55%,transparent);outline-offset:4px;border-radius:8px}.dl-dragging{opacity:.45}.dashboard-editing .gc-kpis,.dashboard-editing .pb-summary,.dashboard-editing .pb-project-grid{gap:18px}.dashboard-editing .dl-card>.gc-kpi,.dashboard-editing .dl-card>.pb-stat,.dashboard-editing .pb-project-card{height:auto}.gw .gc-main-grid>[data-layout-card=sales]{grid-column:span 2}.gw .gc-main-grid>[data-layout-card=ranking]{grid-column:1/-1}.gw .gc-tab-panel .gc-main-grid>.dl-card{order:initial}.gw .gc-kpi .gc-kpi-icon{background:color-mix(in srgb,var(--omni-accent) 15%,var(--omni-panel));color:var(--omni-accent)}.gw .gc-kpi-profit .gc-kpi-icon{background:color-mix(in srgb,var(--omni-chart-secondary) 15%,var(--omni-panel));color:var(--omni-chart-secondary)}.gw .gc-kpi-tasks .gc-kpi-icon{background:color-mix(in srgb,var(--omni-chart-teal) 15%,var(--omni-panel));color:var(--omni-chart-teal)}.pb-module-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px;display:grid}.pb-module-grid>[data-layout-card=stats],.pb-module-grid>[data-layout-card=projects]{grid-column:1/-1}.pb-module-grid .pb-summary{margin-bottom:0}.pb-module-grid .pb-panel{height:100%}.pb-module-grid .pb-toolbar{margin-top:3px}.pb-project-grid>.dl-card{flex-direction:column;display:flex}.pb-project-grid .pb-project-card{flex:1}@media (width<=1000px){.gw .gc-main-grid>[data-layout-card=sales]{grid-column:1}}@media (width<=850px){.pb-module-grid{grid-template-columns:1fr}.pb-module-grid>.dl-card{grid-column:1}.dl-toolbar small{line-height:1.6}.gc-kpis>.dl-card:last-child{grid-column:1/-1}}.gc-tabs-heading{border-bottom:1px solid var(--omni-line);justify-content:space-between;align-items:center;gap:20px;margin:22px 0 0;display:flex}.gc-tabs{scrollbar-width:thin;gap:26px;min-width:0;display:flex;overflow-x:auto}.gw .gc-tabs [role=tab]{color:var(--omni-muted);white-space:nowrap;background:0 0;border:0;border-bottom:3px solid #0000;border-radius:0;flex-shrink:0;padding:12px 2px 15px;font-size:16px;font-weight:600;display:block}.gw .gc-tabs [aria-selected=true]{color:var(--omni-text);border-bottom-color:var(--omni-accent)}.gw .gc-tabs [role=tab]:focus-visible{outline:2px solid var(--omni-accent);outline-offset:-3px}.gc-tabs-heading .pb-heading-actions{flex-shrink:0;padding-bottom:9px}.gw .gc-tabs-heading .pb-heading-actions button{border:1px solid var(--omni-line);background:var(--omni-panel);color:var(--omni-text);border-radius:7px;align-items:center;gap:7px;padding:9px 12px;font-size:12px;display:flex}.gw .gc-tabs-heading .pb-heading-actions .pb-create{background:var(--omni-accent);color:var(--omni-accent-text);border-color:var(--omni-accent)}.gc-tab-description{color:var(--omni-muted);margin:12px 0 20px;font-size:12px;line-height:1.6}.gc-tab-panel{min-width:0}.gc-tab-panel:focus-visible{outline:2px solid var(--omni-accent);outline-offset:5px}.gw .gc-tab-panel .gc-main-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gc-tab-panel .gc-sales{grid-column:span 2}.gc-tab-panel .gc-structure{grid-column:span 1}.gc-tab-panel .gc-ranking{grid-column:1/-1}.gw .gc-tab-tasks .gc-main-grid,.gw .gc-tab-history .gc-main-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gc-tab-tasks .gc-panel,.gc-tab-history .gc-panel{order:initial;grid-column:span 1}.gc-tab-tasks .gc-todo{order:-1}.gw .gc-tab-panel .gc-todo-list,.gw .gc-tab-panel .gc-matrix-scroll,.gw .gc-tab-panel .gc-time-scroll{max-height:430px}.gc-tab-panel .pb-board{margin-top:0}.gc-tab-panel .gc-quick-tiers{margin-bottom:16px}@media (width<=1000px){.gc-tabs-heading{flex-wrap:wrap;gap:6px}.gc-tabs{gap:20px;max-width:100%}.gc-tabs-heading .pb-heading-actions{margin-left:auto}.gw .gc-tab-panel .gc-main-grid{grid-template-columns:1fr}.gc-tab-panel .gc-panel{grid-column:1}.gw .gc-tabs [role=tab]{font-size:14px}}@media (width<=550px){.gc-tabs{gap:18px}.gw .gc-tabs [role=tab]{font-size:13px}.gc-tabs-heading .pb-heading-actions{justify-content:flex-end;width:100%}.gc-tab-description{margin-bottom:14px}}.workbench-module .gw .gc-kpis{gap:10px;margin-bottom:12px}.workbench-module .gw .gc-kpi{border-radius:8px;padding:14px 16px}.workbench-module .gw .gc-kpi>div{gap:9px;font-size:12px}.workbench-module .gw .gc-kpi strong{margin:12px 0 8px;font-size:29px;line-height:1.2}.workbench-module .gw .gc-kpi p{min-height:30px;margin:0;font-size:10px;line-height:1.55}.workbench-module .gw .gc-kpi:after{width:32px}.workbench-module .gw .gc-kpi strong small{font-size:12px}.workbench-module .gw .gc-kpi .gc-long-value{font-size:24px}.workbench-module .gc-quick-tiers{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px;display:grid}.workbench-module .gc-quick-tiers>section{background:linear-gradient(115deg,var(--omni-paint-surface-112749,#112749),var(--omni-paint-surface-0d1b32,#0d1b32));border:1px solid var(--omni-paint-line-29466d,#29466d);border-top:2px solid var(--tier);border-radius:7px;min-width:0;padding:11px 13px}.workbench-module .gc-quick-tiers header{background:0 0;border:0;align-items:center;gap:8px;margin:0 0 7px;padding:0;display:flex}.workbench-module .gc-quick-tiers header b{color:var(--tier);font-size:13px}.workbench-module .gc-quick-tiers header span{color:var(--omni-paint-ink-83a6cf,#83a6cf);margin-left:auto;font-size:10px}.workbench-module .gc-quick-tiers header button{color:var(--omni-paint-ink-87b4de,#87b4de);background:0 0;border:0;padding:0}.workbench-module .gc-quick-tiers .gc-quick-line{text-align:left;width:100%;color:var(--omni-paint-ink-bfd4ed,#bfd4ed);background:0 0;border:0;align-items:center;gap:9px;padding:5px 0;font-size:11px;display:flex}.workbench-module .gc-quick-line em{color:var(--omni-paint-ink-7297c1,#7297c1);flex-shrink:0;font-style:normal}.workbench-module .gc-quick-line span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.workbench-module .gc-quick-line svg{flex-shrink:0;margin-left:auto}.workbench-module .gc-quick-tiers .gc-quick-alert{background:var(--omni-paint-surface-11243c,#11243c);border:0;border-top:1px solid var(--omni-paint-line-254364,#254364);width:100%;color:var(--omni-paint-ink-77b7bc,#77b7bc);text-align:left;justify-content:space-between;align-items:center;margin-top:7px;padding:8px 0 0;font-size:10px;display:flex}.workbench-module .gc-quick-alert.has-issues{color:var(--omni-paint-ink-f1be80,#f1be80)}.workbench-module .gw .gc-main-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.workbench-module .gw .gc-panel{border-radius:8px;min-width:0;padding:15px 16px}.workbench-module .gc-sales{order:1;grid-column:span 4}.workbench-module .gc-structure{order:2;grid-column:span 2}.workbench-module .gc-ranking{order:3;grid-column:span 2}.workbench-module .gc-todo{order:4;grid-column:span 2}.workbench-module .gc-matrix{order:5;grid-column:span 2}.workbench-module .gc-history{order:6;grid-column:span 4}.workbench-module .gc-inspect{order:7;grid-column:span 2}.workbench-module .gw .gc-panel-head h2{font-size:14px}.workbench-module .gw .gc-panel-head small{margin-top:4px;font-size:10px}.workbench-module .gw .gc-panel-head button{padding:5px 7px;font-size:10px}.workbench-module .gw .gc-selects{gap:8px;margin:9px 0}.workbench-module .gw .gc-selects select{min-height:32px;padding:6px 8px;font-size:11px}.workbench-module .gw .gc-selects button{min-height:32px;padding:6px 9px;font-size:11px}.workbench-module .gw .gc-chart-reading strong{font-size:25px}.workbench-module .gw .gc-chart-reading{margin:8px 0 2px}.workbench-module .gw .gc-ring{gap:8px;min-height:215px}.workbench-module .gw .gc-ring svg{width:46%;max-width:180px}.workbench-module .gw .gc-ring-legend button{gap:7px;padding:10px 0;font-size:11px}.workbench-module .gw .gc-ring-legend b{font-size:18px}.workbench-module .gw .gc-footnote{color:var(--omni-paint-ink-799cc4,#799cc4);margin:8px 0 0;font-size:9px;line-height:1.6}.workbench-module .gw .gc-matrix-scroll{max-height:265px}.workbench-module .gw .gc-matrix-row{gap:9px;margin-bottom:10px}.workbench-module .gw .gc-project-name{width:87px;font-size:10px!important}.workbench-module .gw .gc-matrix-row>div{gap:3px}.workbench-module .gw .gc-cell{min-width:12px;height:24px}.workbench-module .gw .gc-state-legend{gap:6px;margin-bottom:15px;font-size:9px}.workbench-module .gw .gc-todo-list{max-height:260px}.workbench-module .gw .gc-todo-list>button{gap:9px;padding:12px 0}.workbench-module .gw .gc-todo-list b{font-size:12px}.workbench-module .gw .gc-todo-list small{font-size:10px}.workbench-module .gw .gc-no-data{min-height:80px;font-size:12px}.workbench-module .gc-rank-list{max-height:266px;overflow:auto}.workbench-module .gc-rank-list>button{border:0;border-bottom:1px solid var(--omni-paint-line-213856,#213856);text-align:left;width:100%;color:var(--omni-paint-ink-b7d1ef,#b7d1ef);background:0 0;align-items:center;gap:8px;padding:8px 0;font-size:11px;display:flex}.workbench-module .gc-rank-list i{background:var(--omni-paint-surface-233e67,#233e67);width:18px;height:19px;color:var(--omni-paint-ink-9cbce2,#9cbce2);border-radius:3px;flex-shrink:0;place-items:center;font:10px monospace;display:grid}.workbench-module .gc-rank-list>button:first-child i{background:var(--omni-paint-surface-cfb660,#cfb660);color:var(--omni-paint-ink-18284a,#18284a)}.workbench-module .gc-rank-list span{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.workbench-module .gc-rank-list small{color:var(--omni-paint-ink-698dbb,#698dbb);font-size:9px;display:block}.workbench-module .gc-rank-list>button>div{background:var(--omni-paint-surface-182d4e,#182d4e);border-radius:6px;flex-shrink:0;width:48px;height:5px}.workbench-module .gc-rank-list b{background:linear-gradient(90deg,var(--omni-paint-surface-6760f2,#6760f2),var(--omni-paint-surface-39d5ec,#39d5ec));border-radius:6px;height:100%;display:block}.workbench-module .gc-rank-list strong{text-align:right;min-width:50px;color:var(--omni-paint-ink-badbff,#badbff);font:11px monospace}.workbench-module .gc-status-strip{color:var(--omni-paint-ink-7da1cc,#7da1cc);border-top:1px solid var(--omni-paint-line-274267,#274267);flex-wrap:wrap;align-items:center;gap:20px;margin-top:12px;padding:10px 0;font-size:10px;display:flex}.workbench-module .gc-status-strip i{background:var(--omni-paint-surface-58dccc,#58dccc);border-radius:50%;width:5px;height:5px;margin-right:4px;display:inline-block}.workbench-module .gc-status-strip button{background:var(--omni-paint-surface-183c68,#183c68);border:1px solid var(--omni-paint-line-315885,#315885);color:var(--omni-paint-ink-afd7fa,#afd7fa);align-items:center;gap:7px;margin-left:auto;padding:6px 10px;font-size:10px;display:flex}@media (width>=1600px){.workbench-module .gw .gc-chart svg{max-height:215px}.workbench-module .gw .gc-ring{min-height:240px}.workbench-module .gw .gc-kpi strong{font-size:33px}}@media (width<=1150px){.workbench-module .gw .gc-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}.workbench-module .gw .gc-kpi{padding:12px 10px}.workbench-module .gw .gc-kpi-icon{display:none}.workbench-module .gw .gc-kpi strong{font-size:24px}.workbench-module .gw .gc-kpi>div{font-size:11px}.workbench-module .gw .gc-main-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workbench-module .gc-sales,.workbench-module .gc-history{grid-column:span 2}.workbench-module .gc-structure,.workbench-module .gc-ranking,.workbench-module .gc-todo,.workbench-module .gc-matrix,.workbench-module .gc-inspect{grid-column:span 1}.workbench-module .gc-structure{order:3}.workbench-module .gc-ranking{order:2}.workbench-module .gc-quick-tiers header{flex-wrap:wrap}.workbench-module .gc-quick-tiers header span{font-size:9px}.workbench-module .gw .gc-ring{flex-direction:row}.workbench-module .gw .gc-ring svg{width:43%}.workbench-module .gw .gc-matrix-row>div{min-width:0}}@media (width<=850px){.workbench-module .gc-quick-tiers{grid-template-columns:1fr;gap:8px}.workbench-module .gc-quick-tiers>section{padding:10px 12px}.workbench-module .gc-quick-tiers .gc-quick-alert{padding-top:6px}.workbench-module .gw .gc-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.workbench-module .gw .gc-kpi:last-child{grid-column:1/-1}.workbench-module .gw .gc-kpi:last-child p{display:block}.workbench-module .gw .gc-kpi strong{margin:8px 0}.workbench-module .gw .gc-kpi p{min-height:0}.workbench-module .gw .gc-ring{min-height:230px}.workbench-module .gw .gc-main-grid{grid-template-columns:1fr}.workbench-module .gc-main-grid>.gc-panel{grid-column:1}.workbench-module .gc-status-strip{gap:10px}.workbench-module .gc-status-strip button{margin-left:0}}@media (width<=650px){.workbench-module .gc-quick-line span{white-space:normal}.workbench-module .gw .gc-panel{padding:14px}.workbench-module .gc-status-strip{font-size:10px}}.workbench-module .gc-quick-tiers .gc-quick-line{justify-content:flex-start}.workbench-module .gc-next-label{color:var(--omni-paint-ink-76b5e2,#76b5e2);margin:12px 0 2px;font-size:11px}.workbench-module .gc-next-dot{background:var(--omni-paint-surface-5966d4,#5966d4);border-radius:2px;flex-shrink:0;width:7px;height:7px;margin:0 6px}.workbench-module .gw .gc-todo-list:has(.gc-next-label){max-height:270px}.workbench-module .gc-next-label~button b{color:var(--omni-paint-ink-9fc3ef,#9fc3ef)}.workbench-module .gw .gc-kpi{padding:11px 13px}.workbench-module .gw .gc-kpi-icon{width:27px;height:27px}.workbench-module .gw .gc-kpi strong{margin:8px 0 6px;font-size:28px}.workbench-module .gw .gc-kpi p{min-height:19px;font-size:10px}.workbench-module .gw .gc-chart svg{max-height:165px}.workbench-module .gw .gc-ring{min-height:200px}.workbench-module .gw .gc-panel-head{margin-bottom:8px}.workbench-module .gw .gc-panel-head small{margin-top:3px}.workbench-module .gw .gc-time-scroll{max-height:185px}.workbench-module .gw .gc-checks button{padding:8px 0}.workbench-module .gw .gc-checks{gap:10px}.workbench-module .gc-quick-tiers>section{padding:9px 12px}.workbench-module .gc-quick-tiers .gc-quick-line{padding:3px 0}.workbench-module .gc-quick-tiers .gc-quick-alert{margin-top:5px;padding-top:6px}@media (width>=1151px){.workbench-module .gw .gc-chart-empty{min-height:190px}}.workbench-module .gc-quick-line span small{color:var(--omni-paint-ink-718fb7,#718fb7);margin-top:1px;font-size:9px;line-height:1.5;display:block}.workbench-module .gc{--line:var(--omni-paint-line-233a61,#233a61);--muted:var(--omni-paint-ink-839bbd,#839bbd);--cyan:var(--omni-paint-ink-52d5fa,#52d5fa)}.workbench-module .gc button{font:inherit;cursor:pointer}.workbench-module .gc button:focus-visible,.workbench-module .gc select:focus-visible{outline:2px solid var(--omni-paint-line-61dbff,#61dbff);outline-offset:3px}.workbench-module .gc button:disabled{opacity:.45;cursor:default}.workbench-module .gc-kpis{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px;display:grid}.workbench-module .gc-kpi{text-align:left;border:1px solid var(--omni-paint-line-29467a,#29467a);color:var(--omni-paint-ink-b6c9e8,#b6c9e8);background:radial-gradient(ellipse at 85% 0,var(--omni-paint-surface-1c53ad66,#1c53ad66),transparent 75%),linear-gradient(135deg,var(--omni-paint-surface-122b51,#122b51),var(--omni-paint-surface-0c1b36,#0c1b36));box-shadow:inset 0 1px var(--omni-paint-shadow-7abaff15,#7abaff15),0 6px 20px var(--omni-paint-shadow-0002,#0002);border-radius:8px;padding:16px 17px;position:relative;overflow:hidden}.workbench-module .gc-kpi:after{content:"";background:var(--omni-paint-surface-3d97ff,#3d97ff);width:44px;height:2px;box-shadow:0 0 14px var(--omni-paint-shadow-3dbaff,#3dbaff);position:absolute;bottom:0;left:17px}.workbench-module .gc-kpi>div{align-items:center;gap:9px;font-size:12px;display:flex}.workbench-module .gc-kpi>div>svg{color:var(--omni-paint-ink-6e91c3,#6e91c3);margin-left:auto}.workbench-module .gc-kpi-icon{background:var(--omni-paint-surface-173c73,#173c73);color:var(--omni-paint-ink-4dccff,#4dccff);width:34px;height:34px;box-shadow:0 0 17px var(--omni-paint-shadow-1d87ff22,#1d87ff22);border-radius:7px;flex-shrink:0;place-items:center;display:grid}.workbench-module .gc-kpi:nth-child(2) .gc-kpi-icon{color:var(--omni-paint-ink-b99bff,#b99bff);background:var(--omni-paint-surface-34295b,#34295b)}.workbench-module .gc-kpi:nth-child(5) .gc-kpi-icon{color:var(--omni-paint-ink-56e7db,#56e7db);background:var(--omni-paint-surface-113f51,#113f51)}.workbench-module .gc-kpi strong{color:var(--omni-paint-ink-e1efff,#e1efff);letter-spacing:-1px;margin:10px 0 8px;font:34px/1.3 ui-monospace,SFMono-Regular,monospace;display:block}.workbench-module .gc-kpi strong small{color:var(--omni-paint-ink-839fca,#839fca);margin-left:8px;font:11px sans-serif}.workbench-module .gc-kpi p{color:var(--omni-paint-ink-7f9ec5,#7f9ec5);margin:0;font-size:10px;line-height:1.6}.workbench-module .gc-kpi:hover{border-color:var(--omni-paint-line-548ad1,#548ad1);background-color:var(--omni-paint-surface-173363,#173363)}.workbench-module .gc-main-grid{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:16px;display:grid}.workbench-module .gc-panel{background:linear-gradient(125deg,var(--omni-paint-surface-0e1d39,#0e1d39),var(--omni-paint-surface-0a162d,#0a162d));border:1px solid var(--line);min-width:0;box-shadow:inset 0 1px var(--omni-paint-shadow-80aaff08,#80aaff08);border-radius:8px;padding:18px 20px;position:relative;overflow:hidden}.workbench-module .gc-panel:before{content:"";background:var(--omni-paint-surface-4193f5,#4193f5);width:28px;height:2px;box-shadow:0 0 15px var(--omni-paint-shadow-2e91ee77,#2e91ee77);position:absolute;top:0;left:20px}.workbench-module .gc-panel-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.workbench-module .gc-panel-head h2{color:var(--omni-paint-ink-d4e7ff,#d4e7ff);white-space:nowrap;align-items:center;gap:8px;font-size:15px;font-weight:550;display:flex}.workbench-module .gc-panel-head h2 span{background:var(--omni-paint-surface-50c9ff,#50c9ff);width:6px;height:6px;box-shadow:0 0 9px var(--omni-paint-shadow-4cb8ff,#4cb8ff);transform:rotate(45deg)}.workbench-module .gc-panel-head small{color:var(--muted);margin-top:7px;font-size:10px;line-height:1.5;display:block}.workbench-module .gc-panel-head>svg{color:var(--omni-paint-ink-47bff4,#47bff4)}.workbench-module .gc-panel-head button,.workbench-module .gc-selects button,.workbench-module .gc-archive button,.workbench-module .gc-lanes-title button,.workbench-module .gc-chart-empty button{border:1px solid var(--omni-paint-line-2c4775,#2c4775);background:var(--omni-paint-surface-122b50,#122b50);color:var(--omni-paint-ink-a4ceff,#a4ceff);white-space:nowrap;border-radius:4px;align-items:center;gap:5px;padding:7px 9px;font-size:10px;display:flex}.workbench-module .gc-toggle{background:var(--omni-paint-surface-08152d,#08152d);border:1px solid var(--omni-paint-line-243b63,#243b63);border-radius:5px;flex-shrink:0;padding:2px;display:flex}.workbench-module .gc-toggle button{color:var(--omni-paint-ink-7799c4,#7799c4);background:0 0;border:0;border-radius:3px;padding:5px 10px;font-size:10px}.workbench-module .gc-toggle button[aria-pressed=true]{background:var(--omni-paint-surface-244d8c,#244d8c);color:var(--omni-paint-ink-d5edff,#d5edff)}.workbench-module .gc-selects{gap:7px;display:flex}.workbench-module .gc-selects select{background:var(--omni-paint-surface-0d2040,#0d2040);border:1px solid var(--omni-paint-line-2b4671,#2b4671);min-width:0;color:var(--omni-paint-ink-9db9dc,#9db9dc);border-radius:4px;width:42%;margin:0;padding:7px 8px;font-size:10px}.workbench-module .gc-selects select:nth-child(2){width:38%}.workbench-module .gc-chart-reading{align-items:baseline;gap:12px;margin-top:14px;display:flex}.workbench-module .gc-chart-reading strong{color:var(--omni-paint-ink-def5ff,#def5ff);font:25px ui-monospace,monospace}.workbench-module .gc-chart-reading strong small{color:var(--omni-paint-ink-8eb2d4,#8eb2d4);margin-left:6px;font:10px sans-serif}.workbench-module .gc-chart-reading span{color:var(--omni-paint-ink-9ab1d2,#9ab1d2);font-size:10px}.workbench-module .gc-chart-reading i{color:var(--omni-paint-ink-6185ae,#6185ae);margin-left:auto;font-size:9px;font-style:normal}.workbench-module .gc-chart svg{width:100%;margin:3px 0 0;display:block}.workbench-module .gc-chart svg text{fill:var(--omni-paint-ink-7692bc,#7692bc);font:10px sans-serif}.workbench-module .gc-gridline{stroke:var(--omni-paint-chart-203755,#203755);stroke-dasharray:3 5}.workbench-module .gc-line{stroke:var(--omni-paint-chart-57edee,#57edee);stroke-width:2px;filter:drop-shadow(0 0 3px #39bada88);pointer-events:none}.workbench-module .gc-footnote{color:var(--omni-paint-ink-738daf,#738daf);margin:10px 0 0;font-size:9px;line-height:1.7}.workbench-module .gc-ring{align-items:center;gap:12px;min-height:265px;display:flex}.workbench-module .gc-ring svg{filter:drop-shadow(0 0 15px #3072ff15);flex-shrink:0;width:53%;max-width:270px}.workbench-module .gc-ring text{fill:var(--omni-paint-ink-8da9cc,#8da9cc);font:7px sans-serif}.workbench-module .gc-ring .gc-ring-number{fill:var(--omni-paint-chart-e3f0ff,#e3f0ff);font:27px ui-monospace,monospace}.workbench-module .gc-ring-legend{flex:1;min-width:0}.workbench-module .gc-ring-legend button{border:0;border-bottom:1px solid var(--omni-paint-line-203352,#203352);width:100%;color:var(--omni-paint-ink-9db4d7,#9db4d7);text-align:left;white-space:nowrap;background:0 0;align-items:center;gap:7px;padding:12px 0;font-size:11px;display:flex}.workbench-module .gc-ring-legend i,.workbench-module .gc-state-legend i{border-radius:2px;flex-shrink:0;width:6px;height:6px;display:inline-block}.workbench-module .gc-ring-legend b{color:var(--omni-paint-ink-dfebff,#dfebff);margin-left:auto;font:15px monospace}.workbench-module .gc-ring-legend small{color:var(--omni-paint-ink-6f8fb8,#6f8fb8);text-align:right;width:27px;font-size:9px}.workbench-module .gc-checks{gap:14px;padding:8px 0;display:grid}.workbench-module .gc-checks button{color:var(--omni-paint-ink-9eb5d8,#9eb5d8);text-align:left;background:0 0;border:0;align-items:center;gap:14px;padding:0;font-size:11px;display:flex}.workbench-module .gc-checks button>span{width:75px}.workbench-module .gc-checks button>div{background:var(--omni-paint-surface-162947,#162947);border-radius:2px;flex:1;height:9px;overflow:hidden}.workbench-module .gc-checks i{height:100%;box-shadow:0 0 12px var(--omni-paint-shadow-4b9eff33,#4b9eff33);border-radius:2px;display:block}.workbench-module .gc-checks b{color:var(--omni-paint-ink-c4dafa,#c4dafa);min-width:15px;font:15px monospace}.workbench-module .gc-archive{border-top:1px solid var(--omni-paint-line-213856,#213856);color:var(--omni-paint-ink-87a6cd,#87a6cd);justify-content:space-between;align-items:center;margin-top:18px;padding-top:13px;font-size:11px;display:flex}.workbench-module .gc-archive b{color:var(--omni-paint-ink-9fccff,#9fccff);margin-right:5px;font:18px monospace}.workbench-module .gc-state-legend{color:var(--omni-paint-ink-88a5ca,#88a5ca);flex-wrap:wrap;gap:12px;margin:0 0 13px;font-size:9px;display:flex}.workbench-module .gc-state-legend span{align-items:center;gap:5px;display:flex}.workbench-module .gc-matrix-scroll{max-height:190px;overflow:auto}.workbench-module .gc-matrix-row{align-items:center;gap:14px;margin-bottom:9px;display:flex}.workbench-module .gc-project-name{text-overflow:ellipsis;white-space:nowrap;text-align:left;width:135px;color:var(--omni-paint-ink-b1c9e9,#b1c9e9);background:0 0;border:0;flex-shrink:0;padding:0;overflow:hidden;font-size:10px!important}.workbench-module .gc-project-name small{color:var(--omni-paint-ink-6386b0,#6386b0);margin-top:4px;font-size:8px;display:block}.workbench-module .gc-matrix-row>div{flex:1;gap:4px;min-width:0;display:flex}.workbench-module .gc-cell{min-width:15px;height:25px;color:var(--omni-paint-ink-adc8ed,#adc8ed);border:1px solid;border-radius:3px;flex:1;padding:0;font-size:8px!important}.workbench-module .gc-cell:hover{filter:brightness(1.5);transform:translateY(-2px)}.workbench-module .gc-time-header,.workbench-module .gc-time-row{grid-template-columns:145px minmax(0,1fr);gap:14px;display:grid}.workbench-module .gc-time-header{color:var(--omni-paint-ink-809dc3,#809dc3);margin:6px 6px 8px 0;font-size:9px}.workbench-module .gc-time-header>div{justify-content:space-between;display:flex}.workbench-module .gc-time-scroll{max-height:229px;padding-right:6px;overflow:auto}.workbench-module .gc-time-row{border-top:1px solid var(--omni-paint-line-1c3052,#1c3052);align-items:center;min-height:31px}.workbench-module .gc-time-row>button{text-overflow:ellipsis;white-space:nowrap;color:var(--omni-paint-ink-9bb8dc,#9bb8dc);text-align:left;background:0 0;border:0;padding:0;font-size:10px;overflow:hidden}.workbench-module .gc-time-row>div{background:repeating-linear-gradient(90deg,var(--omni-paint-surface-203658,#203658) 0,var(--omni-paint-surface-203658,#203658) 1px,transparent 1px,transparent 25%);height:30px;margin:0 4px;position:relative}.workbench-module .gc-event{border:1px solid var(--omni-paint-line-69c5f7,#69c5f7);background:var(--omni-paint-surface-3885c3,#3885c3);border-radius:2px;width:7px;min-width:0;height:16px;padding:0;position:absolute;top:7px;transform:translate(-50%)}.workbench-module .gc-event.saved{background:var(--omni-paint-surface-4b6fce,#4b6fce);border-color:var(--omni-paint-line-8eafff,#8eafff)}.workbench-module .gc-event.bad{background:var(--omni-paint-surface-b75a83,#b75a83);border-color:var(--omni-paint-line-eb92b4,#eb92b4)}.workbench-module .gc-event:hover{z-index:2;outline:2px solid var(--omni-paint-line-bcecff,#bcecff)}.workbench-module .gc-todo-list{max-height:245px;overflow:auto}.workbench-module .gc-todo-list>button{text-align:left;border:0;border-top:1px solid var(--omni-paint-line-243655,#243655);width:100%;color:var(--omni-paint-ink-b1cae8,#b1cae8);background:0 0;align-items:center;gap:12px;padding:12px 0;display:flex}.workbench-module .gc-todo-list>button:first-child{border-top:0}.workbench-module .gc-todo-list>button>div{flex:1;min-width:0}.workbench-module .gc-todo-list b{color:var(--omni-paint-ink-edc897,#edc897);font-size:12px;font-weight:500}.workbench-module .gc-todo-list span:not(.gc-todo-num){color:var(--omni-paint-ink-829bbf,#829bbf);text-overflow:ellipsis;white-space:nowrap;margin-top:5px;font-size:9px;display:block;overflow:hidden}.workbench-module .gc-todo-list small{color:var(--omni-paint-ink-627fa8,#627fa8);margin-top:4px;font-size:9px;display:block}.workbench-module .gc-todo-num{color:var(--omni-paint-ink-deb77c,#deb77c);background:var(--omni-paint-surface-3c302d,#3c302d);border:1px solid var(--omni-paint-line-72563f,#72563f);border-radius:4px;padding:5px;font:11px monospace}.workbench-module .gc-badge{background:var(--omni-paint-surface-3e302c,#3e302c);border:1px solid var(--omni-paint-line-815e3a,#815e3a);color:var(--omni-paint-ink-e8b776,#e8b776);white-space:nowrap;border-radius:4px;padding:5px 9px;font-size:10px}.workbench-module .gc-lanes-title{justify-content:space-between;align-items:center;margin:27px 0 18px;display:flex}.workbench-module .gc-lanes-title span{letter-spacing:1.5px;color:var(--omni-paint-ink-5a85b9,#5a85b9);font:9px monospace}.workbench-module .gc-lanes-title h2{color:var(--omni-paint-ink-bdd9ff,#bdd9ff);margin-top:8px;font-size:19px}.workbench-module .gc-no-data,.workbench-module .gc-chart-empty{color:var(--omni-paint-ink-7c9ac4,#7c9ac4);padding:25px 0;font-size:12px}.workbench-module .gc-chart-empty{flex-direction:column;justify-content:center;align-items:center;gap:14px;min-height:235px;display:flex}.workbench-module .gc-chart-empty span{font-size:11px}@media (width>=1600px){.workbench-module .gc-chart svg{max-height:245px}.workbench-module .gc-ring{min-height:310px}.workbench-module .gc-kpi strong{font-size:38px}}@media (width<=1150px){.workbench-module .gc-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.workbench-module .gc-kpi{padding:13px}.workbench-module .gc-main-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}.workbench-module .gc-panel{padding:15px}.workbench-module .gc-ring{flex-direction:column;gap:0;min-height:0}.workbench-module .gc-ring svg{width:150px}.workbench-module .gc-ring-legend{width:100%}.workbench-module .gc-ring-legend button{padding:6px 0}.workbench-module .gc-chart-reading i{display:none}.workbench-module .gc-project-name{width:90px}.workbench-module .gc-time-header,.workbench-module .gc-time-row{grid-template-columns:110px minmax(0,1fr)}}@media (width<=850px){.workbench-module .gc-main-grid{grid-template-columns:1fr}.workbench-module .gc-ring{flex-direction:row}.workbench-module .gc-ring svg{width:45%}.workbench-module .gc-ring-legend button{padding:14px 0}.workbench-module .gc-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.workbench-module .gc-kpi:last-child{grid-column:1/-1}.workbench-module .gc-kpi:last-child strong{margin-right:15px;display:inline-block}.workbench-module .gc-kpi:last-child p{display:inline}.workbench-module .gc-matrix-row>div{min-width:220px}.workbench-module .gc-matrix-scroll{overflow:auto}.workbench-module .gc-history{min-width:0}.workbench-module .gc-chart-reading{flex-wrap:wrap}}@media (width<=650px){.workbench-module .gc-kpi strong{font-size:29px}.workbench-module .gc-kpi>div{font-size:11px}.workbench-module .gc-kpi-icon{width:28px;height:28px}.workbench-module .gc-kpi p{font-size:9px}.workbench-module .gc-kpis{gap:9px}.workbench-module .gc-lanes-title{align-items:flex-start;gap:12px}.workbench-module .gc-lanes-title h2{font-size:16px}.workbench-module .gc-lanes-title button{padding:8px;font-size:9px}.workbench-module .gc-time-header,.workbench-module .gc-time-row{grid-template-columns:100px minmax(0,1fr);gap:8px}.workbench-module .gc-panel-head h2{font-size:14px}.workbench-module .gc-panel-head small,.workbench-module .gc-chart-reading span{font-size:9px}.workbench-module .gc-panel{padding:15px 12px}.workbench-module .gc-ring-legend button{font-size:10px}}@media (prefers-reduced-motion:reduce){.workbench-module .gc *{scroll-behavior:auto!important;transition:none!important}}.workbench-module .gw .gc-kpi{min-height:0;display:block}.workbench-module .gw .gc-kpi>div>span:not(.gc-kpi-icon){white-space:nowrap}.workbench-module .gc button{letter-spacing:normal;min-height:0}.workbench-module .gc .gc-project-name,.workbench-module .gc .gc-time-row>button{display:block}.workbench-module .gc .gc-cell{place-items:center;min-height:25px;display:grid}.workbench-module .gc .gc-event{color:var(--omni-paint-ink-d8eeff,#d8eeff);place-items:center;width:18px;height:18px;font:8px monospace;display:grid;top:6px}.workbench-module .gc-records{border-left:1px solid var(--omni-paint-line-3566a0,#3566a0);max-height:55dvh;margin:15px 0 0 5px;padding-left:14px;overflow:auto}.workbench-module .gc-records details{border:1px solid var(--omni-paint-line-294c77,#294c77);background:var(--omni-paint-surface-0c1b33,#0c1b33);border-radius:5px;margin-bottom:10px;padding:12px}.workbench-module .gc-records summary{cursor:pointer;gap:7px;display:grid}.workbench-module .gc-records summary span{color:var(--omni-paint-ink-809bc3,#809bc3);font:10px monospace}.workbench-module .gc-records b{color:var(--omni-paint-ink-b9d8ff,#b9d8ff);font-size:13px}.workbench-module .gc-records em{color:var(--omni-paint-ink-69d1e4,#69d1e4);font-size:10px;font-style:normal}.workbench-module .gc-records p{white-space:pre-wrap;color:var(--omni-paint-ink-aac3e3,#aac3e3);font-size:12px;line-height:1.8}.workbench-module .gc-records button{background:var(--omni-paint-surface-163c6b,#163c6b);border:1px solid var(--omni-paint-line-3b679a,#3b679a);color:var(--omni-paint-ink-c1dfff,#c1dfff);padding:8px 12px;font-size:11px}.workbench-module .gc-history-dialog{background:linear-gradient(140deg,var(--omni-paint-surface-14294b,#14294b),var(--omni-paint-surface-0c1931,#0c1931));border-color:var(--omni-paint-line-3866a0,#3866a0);width:min(640px,100vw - 30px)}.workbench-module .gw .gc+.ta-board>.ta-heading,.workbench-module .gw .gc+.ta-board>.ta-inbox{display:none}.workbench-module .gw .gc-kpi strong small{letter-spacing:0}.workbench-module .gc-kpi.is-open{border-color:var(--omni-paint-line-5acfff,#5acfff);box-shadow:0 0 18px var(--omni-paint-shadow-397dd633,#397dd633)}.workbench-module .gc-kpi .gc-long-value{font-size:24px}.workbench-module .gb-detail{border:1px solid var(--omni-paint-line-3566a4,#3566a4);background:linear-gradient(130deg,var(--omni-paint-surface-13274a,#13274a),var(--omni-paint-surface-0d1b33,#0d1b33));color:var(--omni-paint-ink-a8bfdf,#a8bfdf);border-radius:8px;margin-bottom:18px;padding:22px}.workbench-module .gb-detail>header{background:0 0;border:0;justify-content:space-between;align-items:center;gap:16px;margin:0 0 18px;padding:0;display:flex}.workbench-module .gb-detail header small{color:var(--omni-paint-ink-6db9e8,#6db9e8);font-size:10px}.workbench-module .gb-detail h2{color:var(--omni-paint-ink-d8eaff,#d8eaff);margin-top:8px;font-size:18px}.workbench-module .gb-detail p{font-size:12px;line-height:1.9}.workbench-module .gb-detail button,.workbench-module .gb-detail a{background:var(--omni-paint-surface-173d6d,#173d6d);border:1px solid var(--omni-paint-line-386599,#386599);color:var(--omni-paint-ink-c0e3ff,#c0e3ff);border-radius:4px;justify-content:center;align-items:center;margin:5px 7px 5px 0;padding:8px 12px;font-size:11px;text-decoration:none;display:inline-flex}.workbench-module .gb-detail label{font-size:12px}.workbench-module .gb-detail select{background:var(--omni-paint-surface-0d2040,#0d2040);color:var(--omni-paint-ink-b8ceeb,#b8ceeb);border:1px solid var(--omni-paint-line-33567f,#33567f);padding:8px}.workbench-module .gb-table{max-height:340px;overflow:auto}.workbench-module .gb-table table{border-collapse:collapse;width:100%}.workbench-module .gb-table small{color:var(--omni-paint-ink-839fc3,#839fc3);font-size:10px;display:block}.workbench-module .gb-table .gb-wrap{white-space:normal;min-width:220px;max-width:370px;line-height:1.8}.workbench-module .gb-win{color:var(--omni-paint-ink-5de0c3,#5de0c3)}.workbench-module .gb-loss{color:var(--omni-paint-danger-f299ad,#f299ad)}.workbench-module .gb-next{border-left:2px solid var(--omni-paint-line-46b9ef,#46b9ef);background:var(--omni-paint-surface-14345255,#14345255);padding:13px 16px;color:var(--omni-paint-ink-bad9ee,#bad9ee)!important}.workbench-module .gb-gap{border:1px solid var(--omni-paint-line-756044,#756044);background:var(--omni-paint-surface-342c2844,#342c2844);color:var(--omni-paint-ink-e8c086,#e8c086);padding:15px;font-size:13px}.workbench-module .gb-costs{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0;display:grid}.workbench-module .gb-costs>div{background:var(--omni-paint-surface-0b1b34,#0b1b34);border:1px solid var(--omni-paint-line-29466e,#29466e);border-radius:5px;padding:12px}.workbench-module .gb-costs span{color:var(--omni-paint-ink-86a6cf,#86a6cf);margin-bottom:8px;font-size:10px;display:block}.workbench-module .gb-costs b{color:var(--omni-paint-ink-cae5ff,#cae5ff);overflow-wrap:anywhere;font:16px monospace}.workbench-module .gb-costs .gb-profit{border-color:var(--omni-paint-line-388980,#388980)}.workbench-module .gb-inc-summary{background:var(--omni-paint-surface-10264a,#10264a);border:1px solid var(--omni-paint-line-2a4878,#2a4878);border-radius:5px;align-items:center;gap:25px;margin:15px 0;padding:20px;display:flex}.workbench-module .gb-inc-summary b{color:var(--omni-paint-ink-7bd8ff,#7bd8ff);font:30px monospace}.workbench-module .gb-inc-summary small{color:var(--omni-paint-ink-7fa2c8,#7fa2c8);margin-top:9px;font:11px sans-serif;display:block}.workbench-module .ta-dialog .gb-costs{grid-template-columns:1fr 1fr}@media (width<=650px){.workbench-module .gb-detail{padding:16px}.workbench-module .gb-costs{grid-template-columns:1fr 1fr}.workbench-module .gb-inc-summary{gap:16px}.workbench-module .gb-inc-summary b,.workbench-module .gc-kpi strong{font-size:24px}}.workbench-module .gb-detail table button{white-space:nowrap}.workbench-module .gc .done{background:var(--omni-chart-teal);border-color:var(--omni-chart-teal)}.workbench-module .gc .review{background:var(--omni-chart-secondary);border-color:var(--omni-chart-secondary)}.workbench-module .gc .attention{background:var(--omni-chart-orange);border-color:var(--omni-chart-orange)}.workbench-module .gc .todo{background:var(--omni-chart-primary);border-color:var(--omni-chart-primary)}.workbench-module .gc .stopped{background:var(--omni-danger);border-color:var(--omni-danger)}.workbench-module .gc button:is(.done,.review,.attention,.todo,.stopped){color:var(--omni-text);background:var(--omni-selected)}.workbench-module .gc-rank-list>button>div{background:var(--omni-chart-track)}.workbench-module .gc-rank-list b{background:var(--omni-chart-primary)}.workbench-module .gc-status-strip i{background:var(--omni-chart-teal)}:root[data-omni-theme=light]{--omni-paint-surface-112749:#fff;--omni-paint-surface-0d1b32:#fff;--omni-paint-line-29466d:#dde1eb;--omni-paint-ink-83a6cf:#626e80;--omni-paint-ink-87b4de:#626e80;--omni-paint-ink-bfd4ed:#252831;--omni-paint-ink-7297c1:#626e80;--omni-paint-surface-11243c:#fff;--omni-paint-line-254364:#dde1eb;--omni-paint-ink-77b7bc:#626e80;--omni-paint-ink-f1be80:#626e80;--omni-paint-ink-799cc4:#626e80;--omni-paint-line-213856:#dde1eb;--omni-paint-ink-b7d1ef:#252831;--omni-paint-surface-233e67:#fff;--omni-paint-ink-9cbce2:#626e80;--omni-paint-surface-cfb660:#eef0ff;--omni-paint-ink-18284a:#252831;--omni-paint-ink-698dbb:#626e80;--omni-paint-surface-182d4e:#fff;--omni-paint-surface-6760f2:#eef0ff;--omni-paint-surface-39d5ec:#eef0ff;--omni-paint-ink-badbff:#252831;--omni-paint-ink-7da1cc:#626e80;--omni-paint-line-274267:#dde1eb;--omni-paint-surface-58dccc:#eef0ff;--omni-paint-surface-183c68:#fff;--omni-paint-line-315885:#dde1eb;--omni-paint-ink-afd7fa:#252831;--omni-paint-ink-76b5e2:#626e80;--omni-paint-surface-5966d4:#eef0ff;--omni-paint-ink-9fc3ef:#626e80;--omni-paint-ink-718fb7:#626e80;--omni-paint-line-233a61:#dde1eb;--omni-paint-ink-839bbd:#626e80;--omni-paint-ink-52d5fa:#626e80;--omni-paint-line-61dbff:#dde1eb;--omni-paint-line-29467a:#dde1eb;--omni-paint-ink-b6c9e8:#626e80;--omni-paint-surface-1c53ad66:#eef0ff66;--omni-paint-surface-122b51:#fff;--omni-paint-surface-0c1b36:#fff;--omni-paint-shadow-7abaff15:#00000005;--omni-paint-shadow-0002:#00000009;--omni-paint-surface-3d97ff:#eef0ff;--omni-paint-shadow-3dbaff:#0000001f;--omni-paint-ink-6e91c3:#626e80;--omni-paint-surface-173c73:#fff;--omni-paint-ink-4dccff:#626e80;--omni-paint-shadow-1d87ff22:#00000009;--omni-paint-ink-b99bff:#626e80;--omni-paint-surface-34295b:#fff;--omni-paint-ink-56e7db:#626e80;--omni-paint-surface-113f51:#fff;--omni-paint-ink-e1efff:#252831;--omni-paint-ink-839fca:#626e80;--omni-paint-ink-7f9ec5:#626e80;--omni-paint-line-548ad1:#dde1eb;--omni-paint-surface-173363:#fff;--omni-paint-surface-0e1d39:#fff;--omni-paint-surface-0a162d:#f5f6fa;--omni-paint-shadow-80aaff08:#00000002;--omni-paint-surface-4193f5:#eef0ff;--omni-paint-shadow-2e91ee77:#0000001e;--omni-paint-ink-d4e7ff:#252831;--omni-paint-surface-50c9ff:#eef0ff;--omni-paint-shadow-4cb8ff:#0000001f;--omni-paint-ink-47bff4:#626e80;--omni-paint-line-2c4775:#dde1eb;--omni-paint-surface-122b50:#fff;--omni-paint-ink-a4ceff:#252831;--omni-paint-surface-08152d:#f5f6fa;--omni-paint-line-243b63:#dde1eb;--omni-paint-ink-7799c4:#626e80;--omni-paint-surface-244d8c:#eef0ff;--omni-paint-ink-d5edff:#252831;--omni-paint-surface-0d2040:#fff;--omni-paint-line-2b4671:#dde1eb;--omni-paint-ink-9db9dc:#626e80;--omni-paint-ink-def5ff:#252831;--omni-paint-ink-8eb2d4:#626e80;--omni-paint-ink-9ab1d2:#626e80;--omni-paint-ink-6185ae:#626e80;--omni-paint-ink-7692bc:#626e80;--omni-paint-chart-203755:#e7eaf2;--omni-paint-chart-57edee:#4b5fff;--omni-paint-ink-738daf:#626e80;--omni-paint-ink-8da9cc:#626e80;--omni-paint-chart-e3f0ff:#4b5fff;--omni-paint-line-203352:#dde1eb;--omni-paint-ink-9db4d7:#626e80;--omni-paint-ink-dfebff:#252831;--omni-paint-ink-6f8fb8:#626e80;--omni-paint-ink-9eb5d8:#626e80;--omni-paint-surface-162947:#fff;--omni-paint-shadow-4b9eff33:#0000000d;--omni-paint-ink-c4dafa:#252831;--omni-paint-ink-87a6cd:#626e80;--omni-paint-ink-9fccff:#626e80;--omni-paint-ink-88a5ca:#626e80;--omni-paint-surface-1d8c94:#eef0ff;--omni-paint-line-31b3bc:#dde1eb;--omni-paint-surface-6352b1:#eef0ff;--omni-paint-line-8971df:#dde1eb;--omni-paint-surface-9a6433:#eef0ff;--omni-paint-line-d7a15d:#dde1eb;--omni-paint-surface-1c3156:#fff;--omni-paint-line-2b4771:#dde1eb;--omni-paint-surface-853d5b:#eef0ff;--omni-paint-line-b9698a:#dde1eb;--omni-paint-ink-b1c9e9:#626e80;--omni-paint-ink-6386b0:#626e80;--omni-paint-ink-adc8ed:#626e80;--omni-paint-ink-809dc3:#626e80;--omni-paint-line-1c3052:#dde1eb;--omni-paint-ink-9bb8dc:#626e80;--omni-paint-surface-203658:#fff;--omni-paint-line-69c5f7:#dde1eb;--omni-paint-surface-3885c3:#eef0ff;--omni-paint-surface-4b6fce:#eef0ff;--omni-paint-line-8eafff:#dde1eb;--omni-paint-surface-b75a83:#eef0ff;--omni-paint-line-eb92b4:#dde1eb;--omni-paint-line-bcecff:#dde1eb;--omni-paint-line-243655:#dde1eb;--omni-paint-ink-b1cae8:#626e80;--omni-paint-ink-edc897:#626e80;--omni-paint-ink-829bbf:#626e80;--omni-paint-ink-627fa8:#626e80;--omni-paint-ink-deb77c:#626e80;--omni-paint-surface-3c302d:#fff;--omni-paint-line-72563f:#dde1eb;--omni-paint-surface-3e302c:#fff;--omni-paint-line-815e3a:#dde1eb;--omni-paint-ink-e8b776:#626e80;--omni-paint-ink-5a85b9:#626e80;--omni-paint-ink-bdd9ff:#252831;--omni-paint-ink-7c9ac4:#626e80;--omni-paint-ink-d8eeff:#252831;--omni-paint-line-3566a0:#dde1eb;--omni-paint-line-294c77:#dde1eb;--omni-paint-surface-0c1b33:#fff;--omni-paint-ink-809bc3:#626e80;--omni-paint-ink-b9d8ff:#252831;--omni-paint-ink-69d1e4:#626e80;--omni-paint-ink-aac3e3:#626e80;--omni-paint-surface-163c6b:#fff;--omni-paint-line-3b679a:#dde1eb;--omni-paint-ink-c1dfff:#252831;--omni-paint-surface-14294b:#fff;--omni-paint-surface-0c1931:#f5f6fa;--omni-paint-line-3866a0:#dde1eb;--omni-paint-line-5acfff:#dde1eb;--omni-paint-shadow-397dd633:#0000000d;--omni-paint-line-3566a4:#dde1eb;--omni-paint-surface-13274a:#fff;--omni-paint-surface-0d1b33:#fff;--omni-paint-ink-a8bfdf:#626e80;--omni-paint-ink-6db9e8:#626e80;--omni-paint-ink-d8eaff:#252831;--omni-paint-surface-173d6d:#fff;--omni-paint-line-386599:#dde1eb;--omni-paint-ink-c0e3ff:#252831;--omni-paint-ink-b8ceeb:#252831;--omni-paint-line-33567f:#dde1eb;--omni-paint-ink-839fc3:#626e80;--omni-paint-ink-5de0c3:#626e80;--omni-paint-danger-f299ad:#b83a4a;--omni-paint-line-46b9ef:#dde1eb;--omni-paint-surface-14345255:#fff5;--omni-paint-ink-bad9ee:#252831;--omni-paint-line-756044:#dde1eb;--omni-paint-surface-342c2844:#fff4;--omni-paint-ink-e8c086:#626e80;--omni-paint-surface-0b1b34:#fff;--omni-paint-line-29466e:#dde1eb;--omni-paint-ink-86a6cf:#626e80;--omni-paint-ink-cae5ff:#252831;--omni-paint-line-388980:#dde1eb;--omni-paint-surface-10264a:#fff;--omni-paint-line-2a4878:#dde1eb;--omni-paint-ink-7bd8ff:#626e80;--omni-paint-ink-7fa2c8:#626e80}:root[data-omni-theme=dark]{--omni-paint-surface-112749:#102235;--omni-paint-surface-0d1b32:#102235;--omni-paint-line-29466d:#2c435b;--omni-paint-ink-83a6cf:#91a9bd;--omni-paint-ink-87b4de:#91a9bd;--omni-paint-ink-bfd4ed:#dceaf7;--omni-paint-ink-7297c1:#91a9bd;--omni-paint-surface-11243c:#102235;--omni-paint-line-254364:#2c435b;--omni-paint-ink-77b7bc:#91a9bd;--omni-paint-ink-f1be80:#91a9bd;--omni-paint-ink-799cc4:#91a9bd;--omni-paint-line-213856:#2c435b;--omni-paint-ink-b7d1ef:#dceaf7;--omni-paint-surface-233e67:#102235;--omni-paint-ink-9cbce2:#91a9bd;--omni-paint-surface-cfb660:#193954;--omni-paint-ink-18284a:#dceaf7;--omni-paint-ink-698dbb:#91a9bd;--omni-paint-surface-182d4e:#102235;--omni-paint-surface-6760f2:#193954;--omni-paint-surface-39d5ec:#193954;--omni-paint-ink-badbff:#dceaf7;--omni-paint-ink-7da1cc:#91a9bd;--omni-paint-line-274267:#2c435b;--omni-paint-surface-58dccc:#193954;--omni-paint-surface-183c68:#102235;--omni-paint-line-315885:#2c435b;--omni-paint-ink-afd7fa:#dceaf7;--omni-paint-ink-76b5e2:#91a9bd;--omni-paint-surface-5966d4:#193954;--omni-paint-ink-9fc3ef:#91a9bd;--omni-paint-ink-718fb7:#91a9bd;--omni-paint-line-233a61:#2c435b;--omni-paint-ink-839bbd:#91a9bd;--omni-paint-ink-52d5fa:#91a9bd;--omni-paint-line-61dbff:#2c435b;--omni-paint-line-29467a:#2c435b;--omni-paint-ink-b6c9e8:#91a9bd;--omni-paint-surface-1c53ad66:#19395466;--omni-paint-surface-122b51:#102235;--omni-paint-surface-0c1b36:#102235;--omni-paint-shadow-7abaff15:#00000005;--omni-paint-shadow-0002:#00000009;--omni-paint-surface-3d97ff:#193954;--omni-paint-shadow-3dbaff:#0000001f;--omni-paint-ink-6e91c3:#91a9bd;--omni-paint-surface-173c73:#102235;--omni-paint-ink-4dccff:#91a9bd;--omni-paint-shadow-1d87ff22:#00000009;--omni-paint-ink-b99bff:#91a9bd;--omni-paint-surface-34295b:#102235;--omni-paint-ink-56e7db:#91a9bd;--omni-paint-surface-113f51:#102235;--omni-paint-ink-e1efff:#dceaf7;--omni-paint-ink-839fca:#91a9bd;--omni-paint-ink-7f9ec5:#91a9bd;--omni-paint-line-548ad1:#2c435b;--omni-paint-surface-173363:#102235;--omni-paint-surface-0e1d39:#102235;--omni-paint-surface-0a162d:#0b1727;--omni-paint-shadow-80aaff08:#00000002;--omni-paint-surface-4193f5:#193954;--omni-paint-shadow-2e91ee77:#0000001e;--omni-paint-ink-d4e7ff:#dceaf7;--omni-paint-surface-50c9ff:#193954;--omni-paint-shadow-4cb8ff:#0000001f;--omni-paint-ink-47bff4:#91a9bd;--omni-paint-line-2c4775:#2c435b;--omni-paint-surface-122b50:#102235;--omni-paint-ink-a4ceff:#dceaf7;--omni-paint-surface-08152d:#0b1727;--omni-paint-line-243b63:#2c435b;--omni-paint-ink-7799c4:#91a9bd;--omni-paint-surface-244d8c:#193954;--omni-paint-ink-d5edff:#dceaf7;--omni-paint-surface-0d2040:#102235;--omni-paint-line-2b4671:#2c435b;--omni-paint-ink-9db9dc:#91a9bd;--omni-paint-ink-def5ff:#dceaf7;--omni-paint-ink-8eb2d4:#91a9bd;--omni-paint-ink-9ab1d2:#91a9bd;--omni-paint-ink-6185ae:#91a9bd;--omni-paint-ink-7692bc:#91a9bd;--omni-paint-chart-203755:#2c435b;--omni-paint-chart-57edee:#6fa7ff;--omni-paint-ink-738daf:#91a9bd;--omni-paint-ink-8da9cc:#91a9bd;--omni-paint-chart-e3f0ff:#6fa7ff;--omni-paint-line-203352:#2c435b;--omni-paint-ink-9db4d7:#91a9bd;--omni-paint-ink-dfebff:#dceaf7;--omni-paint-ink-6f8fb8:#91a9bd;--omni-paint-ink-9eb5d8:#91a9bd;--omni-paint-surface-162947:#102235;--omni-paint-shadow-4b9eff33:#0000000d;--omni-paint-ink-c4dafa:#dceaf7;--omni-paint-ink-87a6cd:#91a9bd;--omni-paint-ink-9fccff:#91a9bd;--omni-paint-ink-88a5ca:#91a9bd;--omni-paint-surface-1d8c94:#193954;--omni-paint-line-31b3bc:#2c435b;--omni-paint-surface-6352b1:#193954;--omni-paint-line-8971df:#2c435b;--omni-paint-surface-9a6433:#193954;--omni-paint-line-d7a15d:#2c435b;--omni-paint-surface-1c3156:#102235;--omni-paint-line-2b4771:#2c435b;--omni-paint-surface-853d5b:#193954;--omni-paint-line-b9698a:#2c435b;--omni-paint-ink-b1c9e9:#91a9bd;--omni-paint-ink-6386b0:#91a9bd;--omni-paint-ink-adc8ed:#91a9bd;--omni-paint-ink-809dc3:#91a9bd;--omni-paint-line-1c3052:#2c435b;--omni-paint-ink-9bb8dc:#91a9bd;--omni-paint-surface-203658:#102235;--omni-paint-line-69c5f7:#2c435b;--omni-paint-surface-3885c3:#193954;--omni-paint-surface-4b6fce:#193954;--omni-paint-line-8eafff:#2c435b;--omni-paint-surface-b75a83:#193954;--omni-paint-line-eb92b4:#2c435b;--omni-paint-line-bcecff:#2c435b;--omni-paint-line-243655:#2c435b;--omni-paint-ink-b1cae8:#91a9bd;--omni-paint-ink-edc897:#91a9bd;--omni-paint-ink-829bbf:#91a9bd;--omni-paint-ink-627fa8:#91a9bd;--omni-paint-ink-deb77c:#91a9bd;--omni-paint-surface-3c302d:#102235;--omni-paint-line-72563f:#2c435b;--omni-paint-surface-3e302c:#102235;--omni-paint-line-815e3a:#2c435b;--omni-paint-ink-e8b776:#91a9bd;--omni-paint-ink-5a85b9:#91a9bd;--omni-paint-ink-bdd9ff:#dceaf7;--omni-paint-ink-7c9ac4:#91a9bd;--omni-paint-ink-d8eeff:#dceaf7;--omni-paint-line-3566a0:#2c435b;--omni-paint-line-294c77:#2c435b;--omni-paint-surface-0c1b33:#102235;--omni-paint-ink-809bc3:#91a9bd;--omni-paint-ink-b9d8ff:#dceaf7;--omni-paint-ink-69d1e4:#91a9bd;--omni-paint-ink-aac3e3:#91a9bd;--omni-paint-surface-163c6b:#102235;--omni-paint-line-3b679a:#2c435b;--omni-paint-ink-c1dfff:#dceaf7;--omni-paint-surface-14294b:#102235;--omni-paint-surface-0c1931:#0b1727;--omni-paint-line-3866a0:#2c435b;--omni-paint-line-5acfff:#2c435b;--omni-paint-shadow-397dd633:#0000000d;--omni-paint-line-3566a4:#2c435b;--omni-paint-surface-13274a:#102235;--omni-paint-surface-0d1b33:#102235;--omni-paint-ink-a8bfdf:#91a9bd;--omni-paint-ink-6db9e8:#91a9bd;--omni-paint-ink-d8eaff:#dceaf7;--omni-paint-surface-173d6d:#102235;--omni-paint-line-386599:#2c435b;--omni-paint-ink-c0e3ff:#dceaf7;--omni-paint-ink-b8ceeb:#dceaf7;--omni-paint-line-33567f:#2c435b;--omni-paint-ink-839fc3:#91a9bd;--omni-paint-ink-5de0c3:#91a9bd;--omni-paint-danger-f299ad:#ff8996;--omni-paint-line-46b9ef:#2c435b;--omni-paint-surface-14345255:#10223555;--omni-paint-ink-bad9ee:#dceaf7;--omni-paint-line-756044:#2c435b;--omni-paint-surface-342c2844:#10223544;--omni-paint-ink-e8c086:#91a9bd;--omni-paint-surface-0b1b34:#102235;--omni-paint-line-29466e:#2c435b;--omni-paint-ink-86a6cf:#91a9bd;--omni-paint-ink-cae5ff:#dceaf7;--omni-paint-line-388980:#2c435b;--omni-paint-surface-10264a:#102235;--omni-paint-line-2a4878:#2c435b;--omni-paint-ink-7bd8ff:#91a9bd;--omni-paint-ink-7fa2c8:#91a9bd}
|
|
1
|
+
._activity_k9yph_1{color:var(--omni-text);max-width:1600px;margin:auto}._activity_k9yph_1 header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;display:flex}._activity_k9yph_1 h1{font-size:27px}._activity_k9yph_1 h2{font-size:15px}._activity_k9yph_1 label{align-items:center;gap:10px;display:flex}._activity_k9yph_1 input{background:var(--omni-field);border:1px solid var(--omni-line);color:inherit;border-radius:6px;padding:10px}._panel_k9yph_1{border:1px solid var(--omni-line);background:var(--omni-panel);border-radius:10px;padding:20px 22px}._activity_k9yph_1 button{border:0;border-bottom:1px solid var(--omni-line);width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;justify-content:space-between;align-items:center;gap:14px;padding:13px 0;display:flex}._activity_k9yph_1 small{color:var(--omni-muted);margin-top:5px;font-size:11px;display:block}._activity_k9yph_1 p{color:var(--omni-muted);font-size:12px;line-height:1.8}._activity_k9yph_1 button:focus-visible{outline:2px solid var(--omni-accent);outline-offset:3px}@media (width<=800px){._activity_k9yph_1 header{flex-direction:column;align-items:flex-start}}.dl-toolbar{min-height:32px;color:var(--omni-muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin:0 0 14px;display:flex}.dl-toolbar-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.dl-toolbar-actions>span{margin-right:5px;font-size:12px}.gw .dl-toolbar button,.gw .dl-card-controls button{font:inherit;border:1px solid var(--omni-line);background:var(--omni-panel);color:var(--omni-text);cursor:pointer;border-radius:6px;justify-content:center;align-items:center;gap:6px;padding:7px 10px;font-size:11px;line-height:1.4;display:flex}.gw .dl-toolbar .dl-save{background:var(--omni-accent);color:var(--omni-accent-text);border-color:var(--omni-accent)}.dl-toolbar small{font-size:11px}.dl-card{min-width:0}.dl-card>.gc-kpi,.dl-card>.pb-stat{width:100%;height:100%}.dashboard-editing .dl-toolbar{z-index:20;background:var(--omni-panel);border:1px solid var(--omni-line);border-radius:8px;padding:10px;position:sticky;top:0}.dl-card-controls{color:var(--omni-accent);z-index:1;align-items:center;gap:4px;min-width:0;margin-bottom:10px;display:flex;position:relative}.gw .dl-card-controls button{flex-shrink:0;padding:5px;font-size:10px}.gw .dl-card-controls .dl-grip{cursor:grab;min-width:0;color:var(--omni-accent);background:color-mix(in srgb,var(--omni-accent) 9%,var(--omni-panel));border-style:dashed;flex:1;justify-content:flex-start;overflow:hidden}.dl-grip{touch-action:none;-webkit-user-select:none;user-select:none}.dl-grip span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dl-grip svg{flex-shrink:0}.gw .dl-card-controls button:disabled{opacity:.3;cursor:default}.dl-editable{outline:1px dashed color-mix(in srgb,var(--omni-accent) 55%,transparent);outline-offset:4px;border-radius:8px}.dl-dragging{opacity:.45}.dashboard-editing .gc-kpis,.dashboard-editing .pb-summary,.dashboard-editing .pb-project-grid{gap:18px}.dashboard-editing .dl-card>.gc-kpi,.dashboard-editing .dl-card>.pb-stat,.dashboard-editing .pb-project-card{height:auto}.gw .gc-main-grid>[data-layout-card=sales]{grid-column:span 2}.gw .gc-main-grid>[data-layout-card=ranking]{grid-column:1/-1}.gw .gc-tab-panel .gc-main-grid>.dl-card{order:initial}.gw .gc-kpi .gc-kpi-icon{background:color-mix(in srgb,var(--omni-accent) 15%,var(--omni-panel));color:var(--omni-accent)}.gw .gc-kpi-profit .gc-kpi-icon{background:color-mix(in srgb,var(--omni-chart-secondary) 15%,var(--omni-panel));color:var(--omni-chart-secondary)}.gw .gc-kpi-tasks .gc-kpi-icon{background:color-mix(in srgb,var(--omni-chart-teal) 15%,var(--omni-panel));color:var(--omni-chart-teal)}.pb-module-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px;display:grid}.pb-module-grid>[data-layout-card=stats],.pb-module-grid>[data-layout-card=projects]{grid-column:1/-1}.pb-module-grid .pb-summary{margin-bottom:0}.pb-module-grid .pb-panel{height:100%}.pb-module-grid .pb-toolbar{margin-top:3px}.pb-project-grid>.dl-card{flex-direction:column;display:flex}.pb-project-grid .pb-project-card{flex:1}@media (width<=1000px){.gw .gc-main-grid>[data-layout-card=sales]{grid-column:1}}@media (width<=850px){.pb-module-grid{grid-template-columns:1fr}.pb-module-grid>.dl-card{grid-column:1}.dl-toolbar small{line-height:1.6}.gc-kpis>.dl-card:last-child{grid-column:1/-1}}.gc-tabs-heading{border-bottom:1px solid var(--omni-line);justify-content:space-between;align-items:center;gap:20px;margin:22px 0 0;display:flex}.gc-tabs{scrollbar-width:thin;gap:26px;min-width:0;display:flex;overflow-x:auto}.gw .gc-tabs [role=tab]{color:var(--omni-muted);white-space:nowrap;background:0 0;border:0;border-bottom:3px solid #0000;border-radius:0;flex-shrink:0;padding:12px 2px 15px;font-size:16px;font-weight:600;display:block}.gw .gc-tabs [aria-selected=true]{color:var(--omni-text);border-bottom-color:var(--omni-accent)}.gw .gc-tabs [role=tab]:focus-visible{outline:2px solid var(--omni-accent);outline-offset:-3px}.gc-tabs-heading .pb-heading-actions{flex-shrink:0;padding-bottom:9px}.gw .gc-tabs-heading .pb-heading-actions button{border:1px solid var(--omni-line);background:var(--omni-panel);color:var(--omni-text);border-radius:7px;align-items:center;gap:7px;padding:9px 12px;font-size:12px;display:flex}.gw .gc-tabs-heading .pb-heading-actions .pb-create{background:var(--omni-accent);color:var(--omni-accent-text);border-color:var(--omni-accent)}.gc-tab-description{color:var(--omni-muted);margin:12px 0 20px;font-size:12px;line-height:1.6}.gc-tab-panel{min-width:0}.gc-tab-panel:focus-visible{outline:2px solid var(--omni-accent);outline-offset:5px}.gw .gc-tab-panel .gc-main-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gc-tab-panel .gc-sales{grid-column:span 2}.gc-tab-panel .gc-structure{grid-column:span 1}.gc-tab-panel .gc-ranking{grid-column:1/-1}.gw .gc-tab-tasks .gc-main-grid,.gw .gc-tab-history .gc-main-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gc-tab-tasks .gc-panel,.gc-tab-history .gc-panel{order:initial;grid-column:span 1}.gc-tab-tasks .gc-todo{order:-1}.gw .gc-tab-panel .gc-todo-list,.gw .gc-tab-panel .gc-matrix-scroll,.gw .gc-tab-panel .gc-time-scroll{max-height:430px}.gc-tab-panel .pb-board{margin-top:0}.gc-tab-panel .gc-quick-tiers{margin-bottom:16px}@media (width<=1000px){.gc-tabs-heading{flex-wrap:wrap;gap:6px}.gc-tabs{gap:20px;max-width:100%}.gc-tabs-heading .pb-heading-actions{margin-left:auto}.gw .gc-tab-panel .gc-main-grid{grid-template-columns:1fr}.gc-tab-panel .gc-panel{grid-column:1}.gw .gc-tabs [role=tab]{font-size:14px}}@media (width<=550px){.gc-tabs{gap:18px}.gw .gc-tabs [role=tab]{font-size:13px}.gc-tabs-heading .pb-heading-actions{justify-content:flex-end;width:100%}.gc-tab-description{margin-bottom:14px}}.workbench-module .gw .gc-kpis{gap:10px;margin-bottom:12px}.workbench-module .gw .gc-kpi{border-radius:8px;padding:14px 16px}.workbench-module .gw .gc-kpi>div{gap:9px;font-size:12px}.workbench-module .gw .gc-kpi strong{margin:12px 0 8px;font-size:29px;line-height:1.2}.workbench-module .gw .gc-kpi p{min-height:30px;margin:0;font-size:10px;line-height:1.55}.workbench-module .gw .gc-kpi:after{width:32px}.workbench-module .gw .gc-kpi strong small{font-size:12px}.workbench-module .gw .gc-kpi .gc-long-value{font-size:24px}.workbench-module .gc-quick-tiers{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px;display:grid}.workbench-module .gc-quick-tiers>section{background:linear-gradient(115deg,var(--omni-paint-surface-112749,#112749),var(--omni-paint-surface-0d1b32,#0d1b32));border:1px solid var(--omni-paint-line-29466d,#29466d);border-top:2px solid var(--tier);border-radius:7px;min-width:0;padding:11px 13px}.workbench-module .gc-quick-tiers header{background:0 0;border:0;align-items:center;gap:8px;margin:0 0 7px;padding:0;display:flex}.workbench-module .gc-quick-tiers header b{color:var(--tier);font-size:13px}.workbench-module .gc-quick-tiers header span{color:var(--omni-paint-ink-83a6cf,#83a6cf);margin-left:auto;font-size:10px}.workbench-module .gc-quick-tiers header button{color:var(--omni-paint-ink-87b4de,#87b4de);background:0 0;border:0;padding:0}.workbench-module .gc-quick-tiers .gc-quick-line{text-align:left;width:100%;color:var(--omni-paint-ink-bfd4ed,#bfd4ed);background:0 0;border:0;align-items:center;gap:9px;padding:5px 0;font-size:11px;display:flex}.workbench-module .gc-quick-line em{color:var(--omni-paint-ink-7297c1,#7297c1);flex-shrink:0;font-style:normal}.workbench-module .gc-quick-line span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.workbench-module .gc-quick-line svg{flex-shrink:0;margin-left:auto}.workbench-module .gc-quick-tiers .gc-quick-alert{background:var(--omni-paint-surface-11243c,#11243c);border:0;border-top:1px solid var(--omni-paint-line-254364,#254364);width:100%;color:var(--omni-paint-ink-77b7bc,#77b7bc);text-align:left;justify-content:space-between;align-items:center;margin-top:7px;padding:8px 0 0;font-size:10px;display:flex}.workbench-module .gc-quick-alert.has-issues{color:var(--omni-paint-ink-f1be80,#f1be80)}.workbench-module .gw .gc-main-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.workbench-module .gw .gc-panel{border-radius:8px;min-width:0;padding:15px 16px}.workbench-module .gc-sales{order:1;grid-column:span 4}.workbench-module .gc-structure{order:2;grid-column:span 2}.workbench-module .gc-ranking{order:3;grid-column:span 2}.workbench-module .gc-todo{order:4;grid-column:span 2}.workbench-module .gc-matrix{order:5;grid-column:span 2}.workbench-module .gc-history{order:6;grid-column:span 4}.workbench-module .gc-inspect{order:7;grid-column:span 2}.workbench-module .gw .gc-panel-head h2{font-size:14px}.workbench-module .gw .gc-panel-head small{margin-top:4px;font-size:10px}.workbench-module .gw .gc-panel-head button{padding:5px 7px;font-size:10px}.workbench-module .gw .gc-selects{gap:8px;margin:9px 0}.workbench-module .gw .gc-selects select{min-height:32px;padding:6px 8px;font-size:11px}.workbench-module .gw .gc-selects button{min-height:32px;padding:6px 9px;font-size:11px}.workbench-module .gw .gc-chart-reading strong{font-size:25px}.workbench-module .gw .gc-chart-reading{margin:8px 0 2px}.workbench-module .gw .gc-ring{gap:8px;min-height:215px}.workbench-module .gw .gc-ring svg{width:46%;max-width:180px}.workbench-module .gw .gc-ring-legend button{gap:7px;padding:10px 0;font-size:11px}.workbench-module .gw .gc-ring-legend b{font-size:18px}.workbench-module .gw .gc-footnote{color:var(--omni-paint-ink-799cc4,#799cc4);margin:8px 0 0;font-size:9px;line-height:1.6}.workbench-module .gw .gc-matrix-scroll{max-height:265px}.workbench-module .gw .gc-matrix-row{gap:9px;margin-bottom:10px}.workbench-module .gw .gc-project-name{width:87px;font-size:10px!important}.workbench-module .gw .gc-matrix-row>div{gap:3px}.workbench-module .gw .gc-cell{min-width:12px;height:24px}.workbench-module .gw .gc-state-legend{gap:6px;margin-bottom:15px;font-size:9px}.workbench-module .gw .gc-todo-list{max-height:260px}.workbench-module .gw .gc-todo-list>button{gap:9px;padding:12px 0}.workbench-module .gw .gc-todo-list b{font-size:12px}.workbench-module .gw .gc-todo-list small{font-size:10px}.workbench-module .gw .gc-no-data{min-height:80px;font-size:12px}.workbench-module .gc-rank-list{max-height:266px;overflow:auto}.workbench-module .gc-rank-list>button{border:0;border-bottom:1px solid var(--omni-paint-line-213856,#213856);text-align:left;width:100%;color:var(--omni-paint-ink-b7d1ef,#b7d1ef);background:0 0;align-items:center;gap:8px;padding:8px 0;font-size:11px;display:flex}.workbench-module .gc-rank-list i{background:var(--omni-paint-surface-233e67,#233e67);width:18px;height:19px;color:var(--omni-paint-ink-9cbce2,#9cbce2);border-radius:3px;flex-shrink:0;place-items:center;font:10px monospace;display:grid}.workbench-module .gc-rank-list>button:first-child i{background:var(--omni-paint-surface-cfb660,#cfb660);color:var(--omni-paint-ink-18284a,#18284a)}.workbench-module .gc-rank-list span{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.workbench-module .gc-rank-list small{color:var(--omni-paint-ink-698dbb,#698dbb);font-size:9px;display:block}.workbench-module .gc-rank-list>button>div{background:var(--omni-paint-surface-182d4e,#182d4e);border-radius:6px;flex-shrink:0;width:48px;height:5px}.workbench-module .gc-rank-list b{background:linear-gradient(90deg,var(--omni-paint-surface-6760f2,#6760f2),var(--omni-paint-surface-39d5ec,#39d5ec));border-radius:6px;height:100%;display:block}.workbench-module .gc-rank-list strong{text-align:right;min-width:50px;color:var(--omni-paint-ink-badbff,#badbff);font:11px monospace}.workbench-module .gc-status-strip{color:var(--omni-paint-ink-7da1cc,#7da1cc);border-top:1px solid var(--omni-paint-line-274267,#274267);flex-wrap:wrap;align-items:center;gap:20px;margin-top:12px;padding:10px 0;font-size:10px;display:flex}.workbench-module .gc-status-strip i{background:var(--omni-paint-surface-58dccc,#58dccc);border-radius:50%;width:5px;height:5px;margin-right:4px;display:inline-block}.workbench-module .gc-status-strip button{background:var(--omni-paint-surface-183c68,#183c68);border:1px solid var(--omni-paint-line-315885,#315885);color:var(--omni-paint-ink-afd7fa,#afd7fa);align-items:center;gap:7px;margin-left:auto;padding:6px 10px;font-size:10px;display:flex}@media (width>=1600px){.workbench-module .gw .gc-chart svg{max-height:215px}.workbench-module .gw .gc-ring{min-height:240px}.workbench-module .gw .gc-kpi strong{font-size:33px}}@media (width<=1150px){.workbench-module .gw .gc-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}.workbench-module .gw .gc-kpi{padding:12px 10px}.workbench-module .gw .gc-kpi-icon{display:none}.workbench-module .gw .gc-kpi strong{font-size:24px}.workbench-module .gw .gc-kpi>div{font-size:11px}.workbench-module .gw .gc-main-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workbench-module .gc-sales,.workbench-module .gc-history{grid-column:span 2}.workbench-module .gc-structure,.workbench-module .gc-ranking,.workbench-module .gc-todo,.workbench-module .gc-matrix,.workbench-module .gc-inspect{grid-column:span 1}.workbench-module .gc-structure{order:3}.workbench-module .gc-ranking{order:2}.workbench-module .gc-quick-tiers header{flex-wrap:wrap}.workbench-module .gc-quick-tiers header span{font-size:9px}.workbench-module .gw .gc-ring{flex-direction:row}.workbench-module .gw .gc-ring svg{width:43%}.workbench-module .gw .gc-matrix-row>div{min-width:0}}@media (width<=850px){.workbench-module .gc-quick-tiers{grid-template-columns:1fr;gap:8px}.workbench-module .gc-quick-tiers>section{padding:10px 12px}.workbench-module .gc-quick-tiers .gc-quick-alert{padding-top:6px}.workbench-module .gw .gc-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.workbench-module .gw .gc-kpi:last-child{grid-column:1/-1}.workbench-module .gw .gc-kpi:last-child p{display:block}.workbench-module .gw .gc-kpi strong{margin:8px 0}.workbench-module .gw .gc-kpi p{min-height:0}.workbench-module .gw .gc-ring{min-height:230px}.workbench-module .gw .gc-main-grid{grid-template-columns:1fr}.workbench-module .gc-main-grid>.gc-panel{grid-column:1}.workbench-module .gc-status-strip{gap:10px}.workbench-module .gc-status-strip button{margin-left:0}}@media (width<=650px){.workbench-module .gc-quick-line span{white-space:normal}.workbench-module .gw .gc-panel{padding:14px}.workbench-module .gc-status-strip{font-size:10px}}.workbench-module .gc-quick-tiers .gc-quick-line{justify-content:flex-start}.workbench-module .gc-next-label{color:var(--omni-paint-ink-76b5e2,#76b5e2);margin:12px 0 2px;font-size:11px}.workbench-module .gc-next-dot{background:var(--omni-paint-surface-5966d4,#5966d4);border-radius:2px;flex-shrink:0;width:7px;height:7px;margin:0 6px}.workbench-module .gw .gc-todo-list:has(.gc-next-label){max-height:270px}.workbench-module .gc-next-label~button b{color:var(--omni-paint-ink-9fc3ef,#9fc3ef)}.workbench-module .gw .gc-kpi{padding:11px 13px}.workbench-module .gw .gc-kpi-icon{width:27px;height:27px}.workbench-module .gw .gc-kpi strong{margin:8px 0 6px;font-size:28px}.workbench-module .gw .gc-kpi p{min-height:19px;font-size:10px}.workbench-module .gw .gc-chart svg{max-height:165px}.workbench-module .gw .gc-ring{min-height:200px}.workbench-module .gw .gc-panel-head{margin-bottom:8px}.workbench-module .gw .gc-panel-head small{margin-top:3px}.workbench-module .gw .gc-time-scroll{max-height:185px}.workbench-module .gw .gc-checks button{padding:8px 0}.workbench-module .gw .gc-checks{gap:10px}.workbench-module .gc-quick-tiers>section{padding:9px 12px}.workbench-module .gc-quick-tiers .gc-quick-line{padding:3px 0}.workbench-module .gc-quick-tiers .gc-quick-alert{margin-top:5px;padding-top:6px}@media (width>=1151px){.workbench-module .gw .gc-chart-empty{min-height:190px}}.workbench-module .gc-quick-line span small{color:var(--omni-paint-ink-718fb7,#718fb7);margin-top:1px;font-size:9px;line-height:1.5;display:block}.workbench-module .gc{--line:var(--omni-paint-line-233a61,#233a61);--muted:var(--omni-paint-ink-839bbd,#839bbd);--cyan:var(--omni-paint-ink-52d5fa,#52d5fa)}.workbench-module .gc button{font:inherit;cursor:pointer}.workbench-module .gc button:focus-visible,.workbench-module .gc select:focus-visible{outline:2px solid var(--omni-paint-line-61dbff,#61dbff);outline-offset:3px}.workbench-module .gc button:disabled{opacity:.45;cursor:default}.workbench-module .gc-kpis{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px;display:grid}.workbench-module .gc-kpi{text-align:left;border:1px solid var(--omni-paint-line-29467a,#29467a);color:var(--omni-paint-ink-b6c9e8,#b6c9e8);background:radial-gradient(ellipse at 85% 0,var(--omni-paint-surface-1c53ad66,#1c53ad66),transparent 75%),linear-gradient(135deg,var(--omni-paint-surface-122b51,#122b51),var(--omni-paint-surface-0c1b36,#0c1b36));box-shadow:inset 0 1px var(--omni-paint-shadow-7abaff15,#7abaff15),0 6px 20px var(--omni-paint-shadow-0002,#0002);border-radius:8px;padding:16px 17px;position:relative;overflow:hidden}.workbench-module .gc-kpi:after{content:"";background:var(--omni-paint-surface-3d97ff,#3d97ff);width:44px;height:2px;box-shadow:0 0 14px var(--omni-paint-shadow-3dbaff,#3dbaff);position:absolute;bottom:0;left:17px}.workbench-module .gc-kpi>div{align-items:center;gap:9px;font-size:12px;display:flex}.workbench-module .gc-kpi>div>svg{color:var(--omni-paint-ink-6e91c3,#6e91c3);margin-left:auto}.workbench-module .gc-kpi-icon{background:var(--omni-paint-surface-173c73,#173c73);color:var(--omni-paint-ink-4dccff,#4dccff);width:34px;height:34px;box-shadow:0 0 17px var(--omni-paint-shadow-1d87ff22,#1d87ff22);border-radius:7px;flex-shrink:0;place-items:center;display:grid}.workbench-module .gc-kpi:nth-child(2) .gc-kpi-icon{color:var(--omni-paint-ink-b99bff,#b99bff);background:var(--omni-paint-surface-34295b,#34295b)}.workbench-module .gc-kpi:nth-child(5) .gc-kpi-icon{color:var(--omni-paint-ink-56e7db,#56e7db);background:var(--omni-paint-surface-113f51,#113f51)}.workbench-module .gc-kpi strong{color:var(--omni-paint-ink-e1efff,#e1efff);letter-spacing:-1px;margin:10px 0 8px;font:34px/1.3 ui-monospace,SFMono-Regular,monospace;display:block}.workbench-module .gc-kpi strong small{color:var(--omni-paint-ink-839fca,#839fca);margin-left:8px;font:11px sans-serif}.workbench-module .gc-kpi p{color:var(--omni-paint-ink-7f9ec5,#7f9ec5);margin:0;font-size:10px;line-height:1.6}.workbench-module .gc-kpi:hover{border-color:var(--omni-paint-line-548ad1,#548ad1);background-color:var(--omni-paint-surface-173363,#173363)}.workbench-module .gc-main-grid{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:16px;display:grid}.workbench-module .gc-panel{background:linear-gradient(125deg,var(--omni-paint-surface-0e1d39,#0e1d39),var(--omni-paint-surface-0a162d,#0a162d));border:1px solid var(--line);min-width:0;box-shadow:inset 0 1px var(--omni-paint-shadow-80aaff08,#80aaff08);border-radius:8px;padding:18px 20px;position:relative;overflow:hidden}.workbench-module .gc-panel:before{content:"";background:var(--omni-paint-surface-4193f5,#4193f5);width:28px;height:2px;box-shadow:0 0 15px var(--omni-paint-shadow-2e91ee77,#2e91ee77);position:absolute;top:0;left:20px}.workbench-module .gc-panel-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.workbench-module .gc-panel-head h2{color:var(--omni-paint-ink-d4e7ff,#d4e7ff);white-space:nowrap;align-items:center;gap:8px;font-size:15px;font-weight:550;display:flex}.workbench-module .gc-panel-head h2 span{background:var(--omni-paint-surface-50c9ff,#50c9ff);width:6px;height:6px;box-shadow:0 0 9px var(--omni-paint-shadow-4cb8ff,#4cb8ff);transform:rotate(45deg)}.workbench-module .gc-panel-head small{color:var(--muted);margin-top:7px;font-size:10px;line-height:1.5;display:block}.workbench-module .gc-panel-head>svg{color:var(--omni-paint-ink-47bff4,#47bff4)}.workbench-module .gc-panel-head button,.workbench-module .gc-selects button,.workbench-module .gc-archive button,.workbench-module .gc-lanes-title button,.workbench-module .gc-chart-empty button{border:1px solid var(--omni-paint-line-2c4775,#2c4775);background:var(--omni-paint-surface-122b50,#122b50);color:var(--omni-paint-ink-a4ceff,#a4ceff);white-space:nowrap;border-radius:4px;align-items:center;gap:5px;padding:7px 9px;font-size:10px;display:flex}.workbench-module .gc-toggle{background:var(--omni-paint-surface-08152d,#08152d);border:1px solid var(--omni-paint-line-243b63,#243b63);border-radius:5px;flex-shrink:0;padding:2px;display:flex}.workbench-module .gc-toggle button{color:var(--omni-paint-ink-7799c4,#7799c4);background:0 0;border:0;border-radius:3px;padding:5px 10px;font-size:10px}.workbench-module .gc-toggle button[aria-pressed=true]{background:var(--omni-paint-surface-244d8c,#244d8c);color:var(--omni-paint-ink-d5edff,#d5edff)}.workbench-module .gc-selects{gap:7px;display:flex}.workbench-module .gc-selects select{background:var(--omni-paint-surface-0d2040,#0d2040);border:1px solid var(--omni-paint-line-2b4671,#2b4671);min-width:0;color:var(--omni-paint-ink-9db9dc,#9db9dc);border-radius:4px;width:42%;margin:0;padding:7px 8px;font-size:10px}.workbench-module .gc-selects select:nth-child(2){width:38%}.workbench-module .gc-chart-reading{align-items:baseline;gap:12px;margin-top:14px;display:flex}.workbench-module .gc-chart-reading strong{color:var(--omni-paint-ink-def5ff,#def5ff);font:25px ui-monospace,monospace}.workbench-module .gc-chart-reading strong small{color:var(--omni-paint-ink-8eb2d4,#8eb2d4);margin-left:6px;font:10px sans-serif}.workbench-module .gc-chart-reading span{color:var(--omni-paint-ink-9ab1d2,#9ab1d2);font-size:10px}.workbench-module .gc-chart-reading i{color:var(--omni-paint-ink-6185ae,#6185ae);margin-left:auto;font-size:9px;font-style:normal}.workbench-module .gc-chart svg{width:100%;margin:3px 0 0;display:block}.workbench-module .gc-chart svg text{fill:var(--omni-paint-ink-7692bc,#7692bc);font:10px sans-serif}.workbench-module .gc-gridline{stroke:var(--omni-paint-chart-203755,#203755);stroke-dasharray:3 5}.workbench-module .gc-line{stroke:var(--omni-paint-chart-57edee,#57edee);stroke-width:2px;filter:drop-shadow(0 0 3px #39bada88);pointer-events:none}.workbench-module .gc-footnote{color:var(--omni-paint-ink-738daf,#738daf);margin:10px 0 0;font-size:9px;line-height:1.7}.workbench-module .gc-ring{align-items:center;gap:12px;min-height:265px;display:flex}.workbench-module .gc-ring svg{filter:drop-shadow(0 0 15px #3072ff15);flex-shrink:0;width:53%;max-width:270px}.workbench-module .gc-ring text{fill:var(--omni-paint-ink-8da9cc,#8da9cc);font:7px sans-serif}.workbench-module .gc-ring .gc-ring-number{fill:var(--omni-paint-chart-e3f0ff,#e3f0ff);font:27px ui-monospace,monospace}.workbench-module .gc-ring-legend{flex:1;min-width:0}.workbench-module .gc-ring-legend button{border:0;border-bottom:1px solid var(--omni-paint-line-203352,#203352);width:100%;color:var(--omni-paint-ink-9db4d7,#9db4d7);text-align:left;white-space:nowrap;background:0 0;align-items:center;gap:7px;padding:12px 0;font-size:11px;display:flex}.workbench-module .gc-ring-legend i,.workbench-module .gc-state-legend i{border-radius:2px;flex-shrink:0;width:6px;height:6px;display:inline-block}.workbench-module .gc-ring-legend b{color:var(--omni-paint-ink-dfebff,#dfebff);margin-left:auto;font:15px monospace}.workbench-module .gc-ring-legend small{color:var(--omni-paint-ink-6f8fb8,#6f8fb8);text-align:right;width:27px;font-size:9px}.workbench-module .gc-checks{gap:14px;padding:8px 0;display:grid}.workbench-module .gc-checks button{color:var(--omni-paint-ink-9eb5d8,#9eb5d8);text-align:left;background:0 0;border:0;align-items:center;gap:14px;padding:0;font-size:11px;display:flex}.workbench-module .gc-checks button>span{width:75px}.workbench-module .gc-checks button>div{background:var(--omni-paint-surface-162947,#162947);border-radius:2px;flex:1;height:9px;overflow:hidden}.workbench-module .gc-checks i{height:100%;box-shadow:0 0 12px var(--omni-paint-shadow-4b9eff33,#4b9eff33);border-radius:2px;display:block}.workbench-module .gc-checks b{color:var(--omni-paint-ink-c4dafa,#c4dafa);min-width:15px;font:15px monospace}.workbench-module .gc-archive{border-top:1px solid var(--omni-paint-line-213856,#213856);color:var(--omni-paint-ink-87a6cd,#87a6cd);justify-content:space-between;align-items:center;margin-top:18px;padding-top:13px;font-size:11px;display:flex}.workbench-module .gc-archive b{color:var(--omni-paint-ink-9fccff,#9fccff);margin-right:5px;font:18px monospace}.workbench-module .gc-state-legend{color:var(--omni-paint-ink-88a5ca,#88a5ca);flex-wrap:wrap;gap:12px;margin:0 0 13px;font-size:9px;display:flex}.workbench-module .gc-state-legend span{align-items:center;gap:5px;display:flex}.workbench-module .gc-matrix-scroll{max-height:190px;overflow:auto}.workbench-module .gc-matrix-row{align-items:center;gap:14px;margin-bottom:9px;display:flex}.workbench-module .gc-project-name{text-overflow:ellipsis;white-space:nowrap;text-align:left;width:135px;color:var(--omni-paint-ink-b1c9e9,#b1c9e9);background:0 0;border:0;flex-shrink:0;padding:0;overflow:hidden;font-size:10px!important}.workbench-module .gc-project-name small{color:var(--omni-paint-ink-6386b0,#6386b0);margin-top:4px;font-size:8px;display:block}.workbench-module .gc-matrix-row>div{flex:1;gap:4px;min-width:0;display:flex}.workbench-module .gc-cell{min-width:15px;height:25px;color:var(--omni-paint-ink-adc8ed,#adc8ed);border:1px solid;border-radius:3px;flex:1;padding:0;font-size:8px!important}.workbench-module .gc-cell:hover{filter:brightness(1.5);transform:translateY(-2px)}.workbench-module .gc-time-header,.workbench-module .gc-time-row{grid-template-columns:145px minmax(0,1fr);gap:14px;display:grid}.workbench-module .gc-time-header{color:var(--omni-paint-ink-809dc3,#809dc3);margin:6px 6px 8px 0;font-size:9px}.workbench-module .gc-time-header>div{justify-content:space-between;display:flex}.workbench-module .gc-time-scroll{max-height:229px;padding-right:6px;overflow:auto}.workbench-module .gc-time-row{border-top:1px solid var(--omni-paint-line-1c3052,#1c3052);align-items:center;min-height:31px}.workbench-module .gc-time-row>button{text-overflow:ellipsis;white-space:nowrap;color:var(--omni-paint-ink-9bb8dc,#9bb8dc);text-align:left;background:0 0;border:0;padding:0;font-size:10px;overflow:hidden}.workbench-module .gc-time-row>div{background:repeating-linear-gradient(90deg,var(--omni-paint-surface-203658,#203658) 0,var(--omni-paint-surface-203658,#203658) 1px,transparent 1px,transparent 25%);height:30px;margin:0 4px;position:relative}.workbench-module .gc-event{border:1px solid var(--omni-paint-line-69c5f7,#69c5f7);background:var(--omni-paint-surface-3885c3,#3885c3);border-radius:2px;width:7px;min-width:0;height:16px;padding:0;position:absolute;top:7px;transform:translate(-50%)}.workbench-module .gc-event.saved{background:var(--omni-paint-surface-4b6fce,#4b6fce);border-color:var(--omni-paint-line-8eafff,#8eafff)}.workbench-module .gc-event.bad{background:var(--omni-paint-surface-b75a83,#b75a83);border-color:var(--omni-paint-line-eb92b4,#eb92b4)}.workbench-module .gc-event:hover{z-index:2;outline:2px solid var(--omni-paint-line-bcecff,#bcecff)}.workbench-module .gc-todo-list{max-height:245px;overflow:auto}.workbench-module .gc-todo-list>button{text-align:left;border:0;border-top:1px solid var(--omni-paint-line-243655,#243655);width:100%;color:var(--omni-paint-ink-b1cae8,#b1cae8);background:0 0;align-items:center;gap:12px;padding:12px 0;display:flex}.workbench-module .gc-todo-list>button:first-child{border-top:0}.workbench-module .gc-todo-list>button>div{flex:1;min-width:0}.workbench-module .gc-todo-list b{color:var(--omni-paint-ink-edc897,#edc897);font-size:12px;font-weight:500}.workbench-module .gc-todo-list span:not(.gc-todo-num){color:var(--omni-paint-ink-829bbf,#829bbf);text-overflow:ellipsis;white-space:nowrap;margin-top:5px;font-size:9px;display:block;overflow:hidden}.workbench-module .gc-todo-list small{color:var(--omni-paint-ink-627fa8,#627fa8);margin-top:4px;font-size:9px;display:block}.workbench-module .gc-todo-num{color:var(--omni-paint-ink-deb77c,#deb77c);background:var(--omni-paint-surface-3c302d,#3c302d);border:1px solid var(--omni-paint-line-72563f,#72563f);border-radius:4px;padding:5px;font:11px monospace}.workbench-module .gc-badge{background:var(--omni-paint-surface-3e302c,#3e302c);border:1px solid var(--omni-paint-line-815e3a,#815e3a);color:var(--omni-paint-ink-e8b776,#e8b776);white-space:nowrap;border-radius:4px;padding:5px 9px;font-size:10px}.workbench-module .gc-lanes-title{justify-content:space-between;align-items:center;margin:27px 0 18px;display:flex}.workbench-module .gc-lanes-title span{letter-spacing:1.5px;color:var(--omni-paint-ink-5a85b9,#5a85b9);font:9px monospace}.workbench-module .gc-lanes-title h2{color:var(--omni-paint-ink-bdd9ff,#bdd9ff);margin-top:8px;font-size:19px}.workbench-module .gc-no-data,.workbench-module .gc-chart-empty{color:var(--omni-paint-ink-7c9ac4,#7c9ac4);padding:25px 0;font-size:12px}.workbench-module .gc-chart-empty{flex-direction:column;justify-content:center;align-items:center;gap:14px;min-height:235px;display:flex}.workbench-module .gc-chart-empty span{font-size:11px}@media (width>=1600px){.workbench-module .gc-chart svg{max-height:245px}.workbench-module .gc-ring{min-height:310px}.workbench-module .gc-kpi strong{font-size:38px}}@media (width<=1150px){.workbench-module .gc-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.workbench-module .gc-kpi{padding:13px}.workbench-module .gc-main-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}.workbench-module .gc-panel{padding:15px}.workbench-module .gc-ring{flex-direction:column;gap:0;min-height:0}.workbench-module .gc-ring svg{width:150px}.workbench-module .gc-ring-legend{width:100%}.workbench-module .gc-ring-legend button{padding:6px 0}.workbench-module .gc-chart-reading i{display:none}.workbench-module .gc-project-name{width:90px}.workbench-module .gc-time-header,.workbench-module .gc-time-row{grid-template-columns:110px minmax(0,1fr)}}@media (width<=850px){.workbench-module .gc-main-grid{grid-template-columns:1fr}.workbench-module .gc-ring{flex-direction:row}.workbench-module .gc-ring svg{width:45%}.workbench-module .gc-ring-legend button{padding:14px 0}.workbench-module .gc-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.workbench-module .gc-kpi:last-child{grid-column:1/-1}.workbench-module .gc-kpi:last-child strong{margin-right:15px;display:inline-block}.workbench-module .gc-kpi:last-child p{display:inline}.workbench-module .gc-matrix-row>div{min-width:220px}.workbench-module .gc-matrix-scroll{overflow:auto}.workbench-module .gc-history{min-width:0}.workbench-module .gc-chart-reading{flex-wrap:wrap}}@media (width<=650px){.workbench-module .gc-kpi strong{font-size:29px}.workbench-module .gc-kpi>div{font-size:11px}.workbench-module .gc-kpi-icon{width:28px;height:28px}.workbench-module .gc-kpi p{font-size:9px}.workbench-module .gc-kpis{gap:9px}.workbench-module .gc-lanes-title{align-items:flex-start;gap:12px}.workbench-module .gc-lanes-title h2{font-size:16px}.workbench-module .gc-lanes-title button{padding:8px;font-size:9px}.workbench-module .gc-time-header,.workbench-module .gc-time-row{grid-template-columns:100px minmax(0,1fr);gap:8px}.workbench-module .gc-panel-head h2{font-size:14px}.workbench-module .gc-panel-head small,.workbench-module .gc-chart-reading span{font-size:9px}.workbench-module .gc-panel{padding:15px 12px}.workbench-module .gc-ring-legend button{font-size:10px}}@media (prefers-reduced-motion:reduce){.workbench-module .gc *{scroll-behavior:auto!important;transition:none!important}}.workbench-module .gw .gc-kpi{min-height:0;display:block}.workbench-module .gw .gc-kpi>div>span:not(.gc-kpi-icon){white-space:nowrap}.workbench-module .gc button{letter-spacing:normal;min-height:0}.workbench-module .gc .gc-project-name,.workbench-module .gc .gc-time-row>button{display:block}.workbench-module .gc .gc-cell{place-items:center;min-height:25px;display:grid}.workbench-module .gc .gc-event{color:var(--omni-paint-ink-d8eeff,#d8eeff);place-items:center;width:18px;height:18px;font:8px monospace;display:grid;top:6px}.workbench-module .gc-records{border-left:1px solid var(--omni-paint-line-3566a0,#3566a0);max-height:55dvh;margin:15px 0 0 5px;padding-left:14px;overflow:auto}.workbench-module .gc-records details{border:1px solid var(--omni-paint-line-294c77,#294c77);background:var(--omni-paint-surface-0c1b33,#0c1b33);border-radius:5px;margin-bottom:10px;padding:12px}.workbench-module .gc-records summary{cursor:pointer;gap:7px;display:grid}.workbench-module .gc-records summary span{color:var(--omni-paint-ink-809bc3,#809bc3);font:10px monospace}.workbench-module .gc-records b{color:var(--omni-paint-ink-b9d8ff,#b9d8ff);font-size:13px}.workbench-module .gc-records em{color:var(--omni-paint-ink-69d1e4,#69d1e4);font-size:10px;font-style:normal}.workbench-module .gc-records p{white-space:pre-wrap;color:var(--omni-paint-ink-aac3e3,#aac3e3);font-size:12px;line-height:1.8}.workbench-module .gc-records button{background:var(--omni-paint-surface-163c6b,#163c6b);border:1px solid var(--omni-paint-line-3b679a,#3b679a);color:var(--omni-paint-ink-c1dfff,#c1dfff);padding:8px 12px;font-size:11px}.workbench-module .gc-history-dialog{background:linear-gradient(140deg,var(--omni-paint-surface-14294b,#14294b),var(--omni-paint-surface-0c1931,#0c1931));border-color:var(--omni-paint-line-3866a0,#3866a0);width:min(640px,100vw - 30px)}.workbench-module .gw .gc+.ta-board>.ta-heading,.workbench-module .gw .gc+.ta-board>.ta-inbox{display:none}.workbench-module .gw .gc-kpi strong small{letter-spacing:0}.workbench-module .gc-kpi.is-open{border-color:var(--omni-paint-line-5acfff,#5acfff);box-shadow:0 0 18px var(--omni-paint-shadow-397dd633,#397dd633)}.workbench-module .gc-kpi .gc-long-value{font-size:24px}.workbench-module .gb-detail{border:1px solid var(--omni-paint-line-3566a4,#3566a4);background:linear-gradient(130deg,var(--omni-paint-surface-13274a,#13274a),var(--omni-paint-surface-0d1b33,#0d1b33));color:var(--omni-paint-ink-a8bfdf,#a8bfdf);border-radius:8px;margin-bottom:18px;padding:22px}.workbench-module .gb-detail>header{background:0 0;border:0;justify-content:space-between;align-items:center;gap:16px;margin:0 0 18px;padding:0;display:flex}.workbench-module .gb-detail header small{color:var(--omni-paint-ink-6db9e8,#6db9e8);font-size:10px}.workbench-module .gb-detail h2{color:var(--omni-paint-ink-d8eaff,#d8eaff);margin-top:8px;font-size:18px}.workbench-module .gb-detail p{font-size:12px;line-height:1.9}.workbench-module .gb-detail button,.workbench-module .gb-detail a{background:var(--omni-paint-surface-173d6d,#173d6d);border:1px solid var(--omni-paint-line-386599,#386599);color:var(--omni-paint-ink-c0e3ff,#c0e3ff);border-radius:4px;justify-content:center;align-items:center;margin:5px 7px 5px 0;padding:8px 12px;font-size:11px;text-decoration:none;display:inline-flex}.workbench-module .gb-detail label{font-size:12px}.workbench-module .gb-detail select{background:var(--omni-paint-surface-0d2040,#0d2040);color:var(--omni-paint-ink-b8ceeb,#b8ceeb);border:1px solid var(--omni-paint-line-33567f,#33567f);padding:8px}.workbench-module .gb-table{max-height:340px;overflow:auto}.workbench-module .gb-table table{border-collapse:collapse;width:100%}.workbench-module .gb-table small{color:var(--omni-paint-ink-839fc3,#839fc3);font-size:10px;display:block}.workbench-module .gb-table .gb-wrap{white-space:normal;min-width:220px;max-width:370px;line-height:1.8}.workbench-module .gb-win{color:var(--omni-paint-ink-5de0c3,#5de0c3)}.workbench-module .gb-loss{color:var(--omni-paint-danger-f299ad,#f299ad)}.workbench-module .gb-next{border-left:2px solid var(--omni-paint-line-46b9ef,#46b9ef);background:var(--omni-paint-surface-14345255,#14345255);padding:13px 16px;color:var(--omni-paint-ink-bad9ee,#bad9ee)!important}.workbench-module .gb-gap{border:1px solid var(--omni-paint-line-756044,#756044);background:var(--omni-paint-surface-342c2844,#342c2844);color:var(--omni-paint-ink-e8c086,#e8c086);padding:15px;font-size:13px}.workbench-module .gb-costs{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0;display:grid}.workbench-module .gb-costs>div{background:var(--omni-paint-surface-0b1b34,#0b1b34);border:1px solid var(--omni-paint-line-29466e,#29466e);border-radius:5px;padding:12px}.workbench-module .gb-costs span{color:var(--omni-paint-ink-86a6cf,#86a6cf);margin-bottom:8px;font-size:10px;display:block}.workbench-module .gb-costs b{color:var(--omni-paint-ink-cae5ff,#cae5ff);overflow-wrap:anywhere;font:16px monospace}.workbench-module .gb-costs .gb-profit{border-color:var(--omni-paint-line-388980,#388980)}.workbench-module .gb-inc-summary{background:var(--omni-paint-surface-10264a,#10264a);border:1px solid var(--omni-paint-line-2a4878,#2a4878);border-radius:5px;align-items:center;gap:25px;margin:15px 0;padding:20px;display:flex}.workbench-module .gb-inc-summary b{color:var(--omni-paint-ink-7bd8ff,#7bd8ff);font:30px monospace}.workbench-module .gb-inc-summary small{color:var(--omni-paint-ink-7fa2c8,#7fa2c8);margin-top:9px;font:11px sans-serif;display:block}.workbench-module .ta-dialog .gb-costs{grid-template-columns:1fr 1fr}@media (width<=650px){.workbench-module .gb-detail{padding:16px}.workbench-module .gb-costs{grid-template-columns:1fr 1fr}.workbench-module .gb-inc-summary{gap:16px}.workbench-module .gb-inc-summary b,.workbench-module .gc-kpi strong{font-size:24px}}.workbench-module .gb-detail table button{white-space:nowrap}.workbench-module .gc .done{background:var(--omni-chart-teal);border-color:var(--omni-chart-teal)}.workbench-module .gc .review{background:var(--omni-chart-secondary);border-color:var(--omni-chart-secondary)}.workbench-module .gc .attention{background:var(--omni-chart-orange);border-color:var(--omni-chart-orange)}.workbench-module .gc .todo{background:var(--omni-chart-primary);border-color:var(--omni-chart-primary)}.workbench-module .gc .stopped{background:var(--omni-danger);border-color:var(--omni-danger)}.workbench-module .gc button:is(.done,.review,.attention,.todo,.stopped){color:var(--omni-text);background:var(--omni-selected)}.workbench-module .gc-rank-list>button>div{background:var(--omni-chart-track)}.workbench-module .gc-rank-list b{background:var(--omni-chart-primary)}.workbench-module .gc-status-strip i{background:var(--omni-chart-teal)}.workbench-module .gb-period{color:var(--text-secondary,var(--omni-paint-ink-839bbd,#839bbd));flex-wrap:wrap;align-items:center;gap:10px 18px;margin:0 0 14px;font-size:12px;display:flex}.workbench-module .gb-period label{flex-wrap:wrap;align-items:center;gap:10px;max-width:100%;display:flex}.workbench-module .gb-period select{border:1px solid var(--line,var(--omni-paint-line-233a61,#233a61));background:var(--bg-panel,var(--omni-paint-surface-122338,#122338));max-width:100%;min-height:34px;color:inherit;font:inherit;border-radius:6px;padding:6px 10px}.workbench-module .gb-period p{flex-basis:100%;margin:0;line-height:1.6}:root[data-omni-theme=light]{--omni-paint-surface-112749:#fff;--omni-paint-surface-0d1b32:#fff;--omni-paint-line-29466d:#dde1eb;--omni-paint-ink-83a6cf:#626e80;--omni-paint-ink-87b4de:#626e80;--omni-paint-ink-bfd4ed:#252831;--omni-paint-ink-7297c1:#626e80;--omni-paint-surface-11243c:#fff;--omni-paint-line-254364:#dde1eb;--omni-paint-ink-77b7bc:#626e80;--omni-paint-ink-f1be80:#626e80;--omni-paint-ink-799cc4:#626e80;--omni-paint-line-213856:#dde1eb;--omni-paint-ink-b7d1ef:#252831;--omni-paint-surface-233e67:#fff;--omni-paint-ink-9cbce2:#626e80;--omni-paint-surface-cfb660:#eef0ff;--omni-paint-ink-18284a:#252831;--omni-paint-ink-698dbb:#626e80;--omni-paint-surface-182d4e:#fff;--omni-paint-surface-6760f2:#eef0ff;--omni-paint-surface-39d5ec:#eef0ff;--omni-paint-ink-badbff:#252831;--omni-paint-ink-7da1cc:#626e80;--omni-paint-line-274267:#dde1eb;--omni-paint-surface-58dccc:#eef0ff;--omni-paint-surface-183c68:#fff;--omni-paint-line-315885:#dde1eb;--omni-paint-ink-afd7fa:#252831;--omni-paint-ink-76b5e2:#626e80;--omni-paint-surface-5966d4:#eef0ff;--omni-paint-ink-9fc3ef:#626e80;--omni-paint-ink-718fb7:#626e80;--omni-paint-line-233a61:#dde1eb;--omni-paint-ink-839bbd:#626e80;--omni-paint-ink-52d5fa:#626e80;--omni-paint-line-61dbff:#dde1eb;--omni-paint-line-29467a:#dde1eb;--omni-paint-ink-b6c9e8:#626e80;--omni-paint-surface-1c53ad66:#eef0ff66;--omni-paint-surface-122b51:#fff;--omni-paint-surface-0c1b36:#fff;--omni-paint-shadow-7abaff15:#00000005;--omni-paint-shadow-0002:#00000009;--omni-paint-surface-3d97ff:#eef0ff;--omni-paint-shadow-3dbaff:#0000001f;--omni-paint-ink-6e91c3:#626e80;--omni-paint-surface-173c73:#fff;--omni-paint-ink-4dccff:#626e80;--omni-paint-shadow-1d87ff22:#00000009;--omni-paint-ink-b99bff:#626e80;--omni-paint-surface-34295b:#fff;--omni-paint-ink-56e7db:#626e80;--omni-paint-surface-113f51:#fff;--omni-paint-ink-e1efff:#252831;--omni-paint-ink-839fca:#626e80;--omni-paint-ink-7f9ec5:#626e80;--omni-paint-line-548ad1:#dde1eb;--omni-paint-surface-173363:#fff;--omni-paint-surface-0e1d39:#fff;--omni-paint-surface-0a162d:#f5f6fa;--omni-paint-shadow-80aaff08:#00000002;--omni-paint-surface-4193f5:#eef0ff;--omni-paint-shadow-2e91ee77:#0000001e;--omni-paint-ink-d4e7ff:#252831;--omni-paint-surface-50c9ff:#eef0ff;--omni-paint-shadow-4cb8ff:#0000001f;--omni-paint-ink-47bff4:#626e80;--omni-paint-line-2c4775:#dde1eb;--omni-paint-surface-122b50:#fff;--omni-paint-ink-a4ceff:#252831;--omni-paint-surface-08152d:#f5f6fa;--omni-paint-line-243b63:#dde1eb;--omni-paint-ink-7799c4:#626e80;--omni-paint-surface-244d8c:#eef0ff;--omni-paint-ink-d5edff:#252831;--omni-paint-surface-0d2040:#fff;--omni-paint-line-2b4671:#dde1eb;--omni-paint-ink-9db9dc:#626e80;--omni-paint-ink-def5ff:#252831;--omni-paint-ink-8eb2d4:#626e80;--omni-paint-ink-9ab1d2:#626e80;--omni-paint-ink-6185ae:#626e80;--omni-paint-ink-7692bc:#626e80;--omni-paint-chart-203755:#e7eaf2;--omni-paint-chart-57edee:#4b5fff;--omni-paint-ink-738daf:#626e80;--omni-paint-ink-8da9cc:#626e80;--omni-paint-chart-e3f0ff:#4b5fff;--omni-paint-line-203352:#dde1eb;--omni-paint-ink-9db4d7:#626e80;--omni-paint-ink-dfebff:#252831;--omni-paint-ink-6f8fb8:#626e80;--omni-paint-ink-9eb5d8:#626e80;--omni-paint-surface-162947:#fff;--omni-paint-shadow-4b9eff33:#0000000d;--omni-paint-ink-c4dafa:#252831;--omni-paint-ink-87a6cd:#626e80;--omni-paint-ink-9fccff:#626e80;--omni-paint-ink-88a5ca:#626e80;--omni-paint-surface-1d8c94:#eef0ff;--omni-paint-line-31b3bc:#dde1eb;--omni-paint-surface-6352b1:#eef0ff;--omni-paint-line-8971df:#dde1eb;--omni-paint-surface-9a6433:#eef0ff;--omni-paint-line-d7a15d:#dde1eb;--omni-paint-surface-1c3156:#fff;--omni-paint-line-2b4771:#dde1eb;--omni-paint-surface-853d5b:#eef0ff;--omni-paint-line-b9698a:#dde1eb;--omni-paint-ink-b1c9e9:#626e80;--omni-paint-ink-6386b0:#626e80;--omni-paint-ink-adc8ed:#626e80;--omni-paint-ink-809dc3:#626e80;--omni-paint-line-1c3052:#dde1eb;--omni-paint-ink-9bb8dc:#626e80;--omni-paint-surface-203658:#fff;--omni-paint-line-69c5f7:#dde1eb;--omni-paint-surface-3885c3:#eef0ff;--omni-paint-surface-4b6fce:#eef0ff;--omni-paint-line-8eafff:#dde1eb;--omni-paint-surface-b75a83:#eef0ff;--omni-paint-line-eb92b4:#dde1eb;--omni-paint-line-bcecff:#dde1eb;--omni-paint-line-243655:#dde1eb;--omni-paint-ink-b1cae8:#626e80;--omni-paint-ink-edc897:#626e80;--omni-paint-ink-829bbf:#626e80;--omni-paint-ink-627fa8:#626e80;--omni-paint-ink-deb77c:#626e80;--omni-paint-surface-3c302d:#fff;--omni-paint-line-72563f:#dde1eb;--omni-paint-surface-3e302c:#fff;--omni-paint-line-815e3a:#dde1eb;--omni-paint-ink-e8b776:#626e80;--omni-paint-ink-5a85b9:#626e80;--omni-paint-ink-bdd9ff:#252831;--omni-paint-ink-7c9ac4:#626e80;--omni-paint-ink-d8eeff:#252831;--omni-paint-line-3566a0:#dde1eb;--omni-paint-line-294c77:#dde1eb;--omni-paint-surface-0c1b33:#fff;--omni-paint-ink-809bc3:#626e80;--omni-paint-ink-b9d8ff:#252831;--omni-paint-ink-69d1e4:#626e80;--omni-paint-ink-aac3e3:#626e80;--omni-paint-surface-163c6b:#fff;--omni-paint-line-3b679a:#dde1eb;--omni-paint-ink-c1dfff:#252831;--omni-paint-surface-14294b:#fff;--omni-paint-surface-0c1931:#f5f6fa;--omni-paint-line-3866a0:#dde1eb;--omni-paint-line-5acfff:#dde1eb;--omni-paint-shadow-397dd633:#0000000d;--omni-paint-line-3566a4:#dde1eb;--omni-paint-surface-13274a:#fff;--omni-paint-surface-0d1b33:#fff;--omni-paint-ink-a8bfdf:#626e80;--omni-paint-ink-6db9e8:#626e80;--omni-paint-ink-d8eaff:#252831;--omni-paint-surface-173d6d:#fff;--omni-paint-line-386599:#dde1eb;--omni-paint-ink-c0e3ff:#252831;--omni-paint-ink-b8ceeb:#252831;--omni-paint-line-33567f:#dde1eb;--omni-paint-ink-839fc3:#626e80;--omni-paint-ink-5de0c3:#626e80;--omni-paint-danger-f299ad:#b83a4a;--omni-paint-line-46b9ef:#dde1eb;--omni-paint-surface-14345255:#fff5;--omni-paint-ink-bad9ee:#252831;--omni-paint-line-756044:#dde1eb;--omni-paint-surface-342c2844:#fff4;--omni-paint-ink-e8c086:#626e80;--omni-paint-surface-0b1b34:#fff;--omni-paint-line-29466e:#dde1eb;--omni-paint-ink-86a6cf:#626e80;--omni-paint-ink-cae5ff:#252831;--omni-paint-line-388980:#dde1eb;--omni-paint-surface-10264a:#fff;--omni-paint-line-2a4878:#dde1eb;--omni-paint-ink-7bd8ff:#626e80;--omni-paint-ink-7fa2c8:#626e80;--omni-paint-surface-122338:#fff}:root[data-omni-theme=dark]{--omni-paint-surface-112749:#102235;--omni-paint-surface-0d1b32:#102235;--omni-paint-line-29466d:#2c435b;--omni-paint-ink-83a6cf:#91a9bd;--omni-paint-ink-87b4de:#91a9bd;--omni-paint-ink-bfd4ed:#dceaf7;--omni-paint-ink-7297c1:#91a9bd;--omni-paint-surface-11243c:#102235;--omni-paint-line-254364:#2c435b;--omni-paint-ink-77b7bc:#91a9bd;--omni-paint-ink-f1be80:#91a9bd;--omni-paint-ink-799cc4:#91a9bd;--omni-paint-line-213856:#2c435b;--omni-paint-ink-b7d1ef:#dceaf7;--omni-paint-surface-233e67:#102235;--omni-paint-ink-9cbce2:#91a9bd;--omni-paint-surface-cfb660:#193954;--omni-paint-ink-18284a:#dceaf7;--omni-paint-ink-698dbb:#91a9bd;--omni-paint-surface-182d4e:#102235;--omni-paint-surface-6760f2:#193954;--omni-paint-surface-39d5ec:#193954;--omni-paint-ink-badbff:#dceaf7;--omni-paint-ink-7da1cc:#91a9bd;--omni-paint-line-274267:#2c435b;--omni-paint-surface-58dccc:#193954;--omni-paint-surface-183c68:#102235;--omni-paint-line-315885:#2c435b;--omni-paint-ink-afd7fa:#dceaf7;--omni-paint-ink-76b5e2:#91a9bd;--omni-paint-surface-5966d4:#193954;--omni-paint-ink-9fc3ef:#91a9bd;--omni-paint-ink-718fb7:#91a9bd;--omni-paint-line-233a61:#2c435b;--omni-paint-ink-839bbd:#91a9bd;--omni-paint-ink-52d5fa:#91a9bd;--omni-paint-line-61dbff:#2c435b;--omni-paint-line-29467a:#2c435b;--omni-paint-ink-b6c9e8:#91a9bd;--omni-paint-surface-1c53ad66:#19395466;--omni-paint-surface-122b51:#102235;--omni-paint-surface-0c1b36:#102235;--omni-paint-shadow-7abaff15:#00000005;--omni-paint-shadow-0002:#00000009;--omni-paint-surface-3d97ff:#193954;--omni-paint-shadow-3dbaff:#0000001f;--omni-paint-ink-6e91c3:#91a9bd;--omni-paint-surface-173c73:#102235;--omni-paint-ink-4dccff:#91a9bd;--omni-paint-shadow-1d87ff22:#00000009;--omni-paint-ink-b99bff:#91a9bd;--omni-paint-surface-34295b:#102235;--omni-paint-ink-56e7db:#91a9bd;--omni-paint-surface-113f51:#102235;--omni-paint-ink-e1efff:#dceaf7;--omni-paint-ink-839fca:#91a9bd;--omni-paint-ink-7f9ec5:#91a9bd;--omni-paint-line-548ad1:#2c435b;--omni-paint-surface-173363:#102235;--omni-paint-surface-0e1d39:#102235;--omni-paint-surface-0a162d:#0b1727;--omni-paint-shadow-80aaff08:#00000002;--omni-paint-surface-4193f5:#193954;--omni-paint-shadow-2e91ee77:#0000001e;--omni-paint-ink-d4e7ff:#dceaf7;--omni-paint-surface-50c9ff:#193954;--omni-paint-shadow-4cb8ff:#0000001f;--omni-paint-ink-47bff4:#91a9bd;--omni-paint-line-2c4775:#2c435b;--omni-paint-surface-122b50:#102235;--omni-paint-ink-a4ceff:#dceaf7;--omni-paint-surface-08152d:#0b1727;--omni-paint-line-243b63:#2c435b;--omni-paint-ink-7799c4:#91a9bd;--omni-paint-surface-244d8c:#193954;--omni-paint-ink-d5edff:#dceaf7;--omni-paint-surface-0d2040:#102235;--omni-paint-line-2b4671:#2c435b;--omni-paint-ink-9db9dc:#91a9bd;--omni-paint-ink-def5ff:#dceaf7;--omni-paint-ink-8eb2d4:#91a9bd;--omni-paint-ink-9ab1d2:#91a9bd;--omni-paint-ink-6185ae:#91a9bd;--omni-paint-ink-7692bc:#91a9bd;--omni-paint-chart-203755:#2c435b;--omni-paint-chart-57edee:#6fa7ff;--omni-paint-ink-738daf:#91a9bd;--omni-paint-ink-8da9cc:#91a9bd;--omni-paint-chart-e3f0ff:#6fa7ff;--omni-paint-line-203352:#2c435b;--omni-paint-ink-9db4d7:#91a9bd;--omni-paint-ink-dfebff:#dceaf7;--omni-paint-ink-6f8fb8:#91a9bd;--omni-paint-ink-9eb5d8:#91a9bd;--omni-paint-surface-162947:#102235;--omni-paint-shadow-4b9eff33:#0000000d;--omni-paint-ink-c4dafa:#dceaf7;--omni-paint-ink-87a6cd:#91a9bd;--omni-paint-ink-9fccff:#91a9bd;--omni-paint-ink-88a5ca:#91a9bd;--omni-paint-surface-1d8c94:#193954;--omni-paint-line-31b3bc:#2c435b;--omni-paint-surface-6352b1:#193954;--omni-paint-line-8971df:#2c435b;--omni-paint-surface-9a6433:#193954;--omni-paint-line-d7a15d:#2c435b;--omni-paint-surface-1c3156:#102235;--omni-paint-line-2b4771:#2c435b;--omni-paint-surface-853d5b:#193954;--omni-paint-line-b9698a:#2c435b;--omni-paint-ink-b1c9e9:#91a9bd;--omni-paint-ink-6386b0:#91a9bd;--omni-paint-ink-adc8ed:#91a9bd;--omni-paint-ink-809dc3:#91a9bd;--omni-paint-line-1c3052:#2c435b;--omni-paint-ink-9bb8dc:#91a9bd;--omni-paint-surface-203658:#102235;--omni-paint-line-69c5f7:#2c435b;--omni-paint-surface-3885c3:#193954;--omni-paint-surface-4b6fce:#193954;--omni-paint-line-8eafff:#2c435b;--omni-paint-surface-b75a83:#193954;--omni-paint-line-eb92b4:#2c435b;--omni-paint-line-bcecff:#2c435b;--omni-paint-line-243655:#2c435b;--omni-paint-ink-b1cae8:#91a9bd;--omni-paint-ink-edc897:#91a9bd;--omni-paint-ink-829bbf:#91a9bd;--omni-paint-ink-627fa8:#91a9bd;--omni-paint-ink-deb77c:#91a9bd;--omni-paint-surface-3c302d:#102235;--omni-paint-line-72563f:#2c435b;--omni-paint-surface-3e302c:#102235;--omni-paint-line-815e3a:#2c435b;--omni-paint-ink-e8b776:#91a9bd;--omni-paint-ink-5a85b9:#91a9bd;--omni-paint-ink-bdd9ff:#dceaf7;--omni-paint-ink-7c9ac4:#91a9bd;--omni-paint-ink-d8eeff:#dceaf7;--omni-paint-line-3566a0:#2c435b;--omni-paint-line-294c77:#2c435b;--omni-paint-surface-0c1b33:#102235;--omni-paint-ink-809bc3:#91a9bd;--omni-paint-ink-b9d8ff:#dceaf7;--omni-paint-ink-69d1e4:#91a9bd;--omni-paint-ink-aac3e3:#91a9bd;--omni-paint-surface-163c6b:#102235;--omni-paint-line-3b679a:#2c435b;--omni-paint-ink-c1dfff:#dceaf7;--omni-paint-surface-14294b:#102235;--omni-paint-surface-0c1931:#0b1727;--omni-paint-line-3866a0:#2c435b;--omni-paint-line-5acfff:#2c435b;--omni-paint-shadow-397dd633:#0000000d;--omni-paint-line-3566a4:#2c435b;--omni-paint-surface-13274a:#102235;--omni-paint-surface-0d1b33:#102235;--omni-paint-ink-a8bfdf:#91a9bd;--omni-paint-ink-6db9e8:#91a9bd;--omni-paint-ink-d8eaff:#dceaf7;--omni-paint-surface-173d6d:#102235;--omni-paint-line-386599:#2c435b;--omni-paint-ink-c0e3ff:#dceaf7;--omni-paint-ink-b8ceeb:#dceaf7;--omni-paint-line-33567f:#2c435b;--omni-paint-ink-839fc3:#91a9bd;--omni-paint-ink-5de0c3:#91a9bd;--omni-paint-danger-f299ad:#ff8996;--omni-paint-line-46b9ef:#2c435b;--omni-paint-surface-14345255:#10223555;--omni-paint-ink-bad9ee:#dceaf7;--omni-paint-line-756044:#2c435b;--omni-paint-surface-342c2844:#10223544;--omni-paint-ink-e8c086:#91a9bd;--omni-paint-surface-0b1b34:#102235;--omni-paint-line-29466e:#2c435b;--omni-paint-ink-86a6cf:#91a9bd;--omni-paint-ink-cae5ff:#dceaf7;--omni-paint-line-388980:#2c435b;--omni-paint-surface-10264a:#102235;--omni-paint-line-2a4878:#2c435b;--omni-paint-ink-7bd8ff:#91a9bd;--omni-paint-ink-7fa2c8:#91a9bd;--omni-paint-surface-122338:#102235}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CompetitorAnalysis-Cujy_a2L.js","./index-DLSVWUSu.js","./index-BgJNmU0Z.css","./components-B5Xyjfpi.js","./format-DL7i7_eV.js","./market.module-VpU4XmGg.js","./market-SuD7x_Hf.css","./chevron-down-DO6RUQm8.js","./chevron-right-e65CaeL6.js","./search-DFdSppzm.js","./public-C-PBMVOQ.js","./workspace-view-state-D0ujRczW.js","./competitor-analysis-D6eM9ugQ.js","./FavoritePicker-XD1a_uOa.js","./favorites.module-CHYv-Z8y.js","./api-KZa8CR8X.js","./favorites-_eKBQGeF.css","./ProgressiveRows-NojOUgmr.js","./CartesianChart-CP7p2vlm.js","./ErrorBarContext-BJE5-ljg.js","./graphicalItemSelectors-CJfZ6cht.js","./arrow-up-right-IBQoN72x.js","./chart-column-DCwNhXki.js","./check-DBnlZFEo.js","./link-2-VLti-YG9.js","./plus-D78h7lrw.js","./refresh-cw-CxbRf97c.js","./CompetitorAnalysis-h1zdt0F2.css","./ShopLayoutPage-CCrRwaAx.js","./arrow-down-B1nil3T4.js","./arrow-left-BhFSpYzK.js","./clock-3-CDHtQwAe.js","./chart-no-axes-combined-DVgKs36j.js","./grid-2x2-DB6zRPIV.js","./list-Dfzc0sXQ.js","./LineChart-Ckvg5wfQ.js","./getRadiusAndStrokeWidthFromDot-bv_ksZ7y.js","./ShopLayoutPage-BlPpfB06.css","./Favorites-B5_fdEvZ.js","./Opportunities-BvH64-dz.js","./Opportunities-CogyuZvI.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{n as e,t}from"./link-2-VLti-YG9.js";import{t as n}from"./chevron-right-e65CaeL6.js";import{t as r}from"./grid-2x2-DB6zRPIV.js";import{t as i}from"./list-Dfzc0sXQ.js";import{n as a,o,r as s,t as c}from"./competitor-analysis-D6eM9ugQ.js";import{t as l}from"./search-DFdSppzm.js";import{g as u,o as d,p as f,t as p,u as ee,y as te}from"./index-DLSVWUSu.js";import{n as m}from"./workspace-view-state-D0ujRczW.js";import"./public-C-PBMVOQ.js";import{t as h}from"./ProgressiveRows-NojOUgmr.js";import{a as ne,c as g,i as re,l as ie,n as ae,o as oe,r as se,s as ce,t as le}from"./components-B5Xyjfpi.js";import{t as _}from"./api-KZa8CR8X.js";import{a as ue,i as v,n as y,o as de,r as fe,t as pe}from"./format-DL7i7_eV.js";import{t as b}from"./market.module-VpU4XmGg.js";var me=f(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),he=f(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),x=te(u(),1),S=d();function ge({query:e,month:t,available:n,children:r}){let i=(0,x.useRef)(null),[a,o]=(0,x.useState)(!1),[s,c]=(0,x.useState)(null),[l,u]=(0,x.useState)(``),[d,f]=(0,x.useState)(0);return(0,x.useEffect)(()=>{if(!i.current||!n)return;let e=new IntersectionObserver(t=>{t.some(e=>e.isIntersecting)&&(o(!0),e.disconnect())},{rootMargin:`180px`});return e.observe(i.current),()=>e.disconnect()},[n]),(0,x.useEffect)(()=>{if(!a||!n)return;let r=new AbortController;return _.query({...e,recentYear:!1,month:t,page:1,pageSize:100},r.signal).then(n=>{r.signal.aborted||(u(``),c({month:t,status:n.availability?.[e.view===`shops`?`shops`:`products`]||`ready`,rows:n.rows,total:n.total}))}).catch(e=>{r.signal.aborted||(c(null),u(e instanceof Error?e.message:`本月榜单读取失败`))}),()=>r.abort()},[n,a,e,t,d]),(0,S.jsxs)(`article`,{ref:i,children:[(0,S.jsxs)(`h2`,{children:[t.replace(`-`,`年`),`月`]}),n?l?(0,S.jsxs)(`div`,{role:`alert`,children:[l,(0,S.jsx)(`button`,{onClick:()=>f(e=>e+1),children:`重试本月`})]}):s?r(s):(0,S.jsx)(`div`,{style:{minHeight:260},children:a?(0,S.jsx)(`p`,{role:`status`,children:`正在读取本月榜单…`}):(0,S.jsx)(`button`,{onClick:()=>o(!0),children:`加载本月榜单`})}):(0,S.jsx)(`p`,{children:`暂无该月来源数据`})]})}var _e=e=>ie.find(t=>t[0]===e)?.[1],ve=(e,t)=>y(e[t],ie.find(e=>e[0]===t)?.[2]);function C({view:c,selection:u,onConsumeSelection:d,onShopLayout:f,competitorIds:p=[],onAddCompetitor:te,onOpenCompetitors:m}={}){let[C,w]=(0,x.useState)(null),[T,E]=(0,x.useState)(null),[D,O]=g(`query`,ce),[k,A]=(0,x.useState)(D.minPrice),[j,M]=(0,x.useState)(D.maxPrice),ye=(0,x.useRef)(void 0),be=(0,x.useRef)(null),xe=(0,x.useRef)(null);(0,x.useEffect)(()=>{let e=xe.current;if(!e)return;let t=()=>be.current?.style.setProperty(`--market-controls-height`,`${e.getBoundingClientRect().height}px`),n=new ResizeObserver(t);return n.observe(e),t(),()=>n.disconnect()},[]),(0,x.useEffect)(()=>{if(!C)return;let e=u===ye.current?void 0:u;ye.current=u,e?.month&&(A(``),M(``)),O(t=>{let n=e?.categoryId??t.categoryId,r=C.categories.some(e=>e.id===n&&e.leaf);return{...t,categoryId:n,...e?.month?{month:e.month,recentYear:!1,q:``,minPrice:``,maxPrice:``}:{},view:c===`categories`?r?`products`:`categories`:c||t.view,page:1}}),e&&d?.(e)},[c,u,C,O,d]);let[N,P]=(0,x.useState)(!0),[F,I]=(0,x.useState)(``),[Se,Ce]=(0,x.useState)(0),[we,L]=(0,x.useState)(``),[R,Te]=g(`productFields`,fe),[Ee,De]=g(`shopFields`,ue),[Oe,z]=(0,x.useState)(!1),[ke,Ae]=g(`grid`,!1),[B,je]=(0,x.useState)([]),[Me,Ne]=(0,x.useState)(null),[V,H]=(0,x.useState)(null),[U,Pe]=(0,x.useState)(null),[Fe,Ie]=(0,x.useState)(!1),[Le,Re]=(0,x.useState)(``),[ze,Be]=(0,x.useState)([]),[Ve,He]=(0,x.useState)([]),Ue=(0,x.useRef)(null);function W(e){E(null),I(``),P(!0),O(t=>({...t,...e,page:e.page??1}))}function We(e){let t=C?.categories.find(t=>t.id===e);A(``),M(``),W({categoryId:e,view:c&&c!==`categories`?D.view===`categories`?c:D.view:t?.leaf?`products`:`categories`,q:``,minPrice:``,maxPrice:``,sort:`sales`,direction:`desc`})}(0,x.useEffect)(()=>{let e=new AbortController;return(async()=>{if(await Promise.resolve(),!e.signal.aborted){P(!0),I(``),E(null),w(null);try{let t=await _.bootstrap(e.signal);if(e.signal.aborted)return;if(t.contractVersion!==1)throw Error(`市场查询契约版本不兼容`);w(t),je((t.favorites||[]).map(e=>`${e.kind}:${e.key}`)),O(e=>{let n=t.categories.some(t=>t.id===e.categoryId);return{...e,categoryId:n?e.categoryId:``,view:n||!e.categoryId?e.view:`categories`,month:t.months.includes(e.month)?e.month:t.latestCategoryMonth||t.latestMonth||``}})}catch(t){e.signal.aborted||I(t.message)}finally{e.signal.aborted||P(!1)}}})(),()=>e.abort()},[Se,O]),(0,x.useEffect)(()=>{if(!C||C.status!==`ready`||!D.month)return;let e=Ue.current;Ue.current=D;let t=e&&e.q!==D.q&&e.categoryId===D.categoryId&&e.view===D.view&&e.month===D.month?180:0,n=new AbortController,r=setTimeout(()=>{if(D.view!==`categories`&&!D.categoryId){P(!1),E(null);return}if(D.view!==`categories`&&D.recentYear){P(!1),E(null);return}P(!0),_.query(D,n.signal).then(e=>{n.signal.aborted||E(e)}).catch(e=>{n.signal.aborted||(E(null),I(e.message),e.status===403?(w(null),Ce(e=>e+1)):e.status===401&&w(null))}).finally(()=>{n.signal.aborted||P(!1)})},t);return()=>{clearTimeout(r),n.abort()}},[D,C]),(0,x.useEffect)(()=>{if(!V)return;let e=new AbortController;return(async()=>{if(await Promise.resolve(),!e.signal.aborted){Ie(!0),Re(``),Be([]),He([]),Pe(V.kind===`record`||V.kind===`shopCategories`?V.record:null);try{if(V.kind===`record`){let t=await _.record(V.record.key,e.signal);e.signal.aborted||Pe(t)}if(V.kind===`shopCategories`){let t=await _.shopCategories(V.record.key,e.signal);e.signal.aborted||Be(t.rows)}if(V.kind===`distribution`){let t=await _.distribution(D,e.signal);e.signal.aborted||Be(t.rows.map(e=>({name:e.label,sales:e.sales,products:e.products})))}if(V.kind===`categoryTrend`){let t=await _.query({...D,view:`categories`,categoryId:V.category.id},e.signal);e.signal.aborted||He(t.trend)}}catch(t){e.signal.aborted||Re(t.message)}finally{e.signal.aborted||Ie(!1)}}})(),()=>e.abort()},[V,D]);let Ge=pe(C?.categories||[],D.categoryId),Ke=Ge.at(-1),G=D.view===`categories`,K=D.view===`products`,q=C?.months.indexOf(D.month)??-1,J=K?R:Ee,Y=T?.rows||[],qe=T?.categories||[],Je=D.metric===`units`?`units`:`sales`,X=T?.availability?.[K?`products`:`shops`],Z=Math.max(1,Math.ceil((T?.total||0)/D.pageSize)),Ye=D.month?new Date(Date.UTC(Number(D.month.slice(0,4)),Number(D.month.slice(5,7)),0)).toISOString().slice(0,10):``;async function Xe(e,t){if(Me)return;let n=`${e}:${t}`,r=!B.includes(n);Ne(n);try{await _.favorite(e,t,r),je(e=>r?[...e,n]:e.filter(e=>e!==n))}catch(e){L(e.message)}finally{Ne(null)}}function Q(e,t,n){return(0,S.jsx)(`button`,{className:b.iconButton,disabled:Me!==null,"aria-label":`收藏${n}`,"aria-pressed":B.includes(`${e}:${t}`),onClick:()=>void Xe(e,t),children:(0,S.jsx)(he,{size:14,fill:B.includes(`${e}:${t}`)?`currentColor`:`none`})})}function Ze(e){return(0,S.jsxs)(`span`,{className:b.productId,children:[e.id||`编号缺失`,e.id&&(0,S.jsx)(se,{text:e.id,label:`复制商品编号${e.id}`,title:`复制商品 ID`})]})}function Qe(e,n=!1){return(0,S.jsxs)(`div`,{className:b.identity,children:[v(e.imageUrl)?(0,S.jsx)(ne,{src:v(e.imageUrl),name:e.name||`商品图片`}):(0,S.jsx)(`span`,{className:b.noImage,children:(0,S.jsx)(o,{size:20})}),(0,S.jsxs)(`div`,{children:[(0,S.jsxs)(`div`,{className:b.productTitleRow,children:[v(e.url)?(0,S.jsx)(`a`,{className:b.productTitle,href:v(e.url),target:`_blank`,rel:`noreferrer`,children:e.name||`资料缺失`}):(0,S.jsx)(`button`,{className:b.productTitle,onClick:()=>H({kind:`record`,record:e}),children:e.name||`资料缺失`}),v(e.url)&&(0,S.jsx)(se,{text:v(e.url),label:`复制商品链接${e.name||e.id||``}`,title:`复制商品链接`,children:(0,S.jsx)(t,{size:13})})]}),!n&&(0,S.jsxs)(`small`,{children:[`商品ID:`,Ze(e)]}),!n&&(0,S.jsxs)(`div`,{className:b.competitorActions,children:[$e(e),et(e)]})]})]})}function $e(e){let t=s(e);return t?(0,S.jsx)(`a`,{className:b.linkButton,href:t,target:`_blank`,rel:`noreferrer`,children:`商品链接 ↗`}):(0,S.jsx)(`span`,{title:`缺少有效商品 ID`,children:`—`})}function et(e){if(!te)return null;let t=!!e.id&&p.includes(e.id),n=t||p.length>=2||!a(e.id);return(0,S.jsx)(`button`,{className:b.linkButton,disabled:n,title:t?`已加入竞品分析`:p.length>=2?`最多分析 2 个商品,请在竞品分析中移除后添加`:`加入竞品分析`,onClick:()=>{try{te({id:e.id,name:e.name||`商品 ${e.id}`,imageUrl:e.imageUrl,shopName:e.shopName,url:s(e)}),L(p.length+1>=2?`已选满 2 个商品,可以进入竞品分析`:`已加入竞品分析,还可以添加 1 个商品`)}catch(e){L(e.message)}},children:t?`已加入`:`加入分析`})}function $(e,t=!1){let n=t?e.shopUrl:e.url,r=t?e.shopName:e.name;return v(n)?(0,S.jsx)(`a`,{href:v(n),target:`_blank`,rel:`noreferrer`,children:r||`资料缺失`}):(0,S.jsx)(`span`,{children:r||`资料缺失`})}function tt(e){return(0,S.jsx)(`th`,{children:(0,S.jsxs)(`button`,{onClick:()=>W({sort:e,direction:D.sort===e&&D.direction===`desc`?`asc`:`desc`}),children:[_e(e),(0,S.jsx)(`span`,{className:D.sort===e?b.activeSort:b.sort,children:D.sort===e?D.direction===`desc`?`↓`:`↑`:`↕`})]})},e)}function nt(e,t){return(0,S.jsxs)(`td`,{className:t===`sales`?b.sales:void 0,children:[ve(e,t),t===`conversionRate`&&e[t]!=null&&(e[t]<0||e[t]>100)&&(0,S.jsxs)(`span`,{className:b.anomaly,title:`来源转化率异常,保留原值`,children:[` `,`!`]})]},t)}function rt(){if(k&&!/^\d{1,9}(\.\d{1,2})?$/.test(k)||j&&!/^\d{1,9}(\.\d{1,2})?$/.test(j)||k&&j&&Number(k)>Number(j)){L(`请填写有效的非负件单价区间`);return}L(``),W({minPrice:k,maxPrice:j})}return(0,S.jsxs)(`section`,{ref:be,className:b.page,"aria-label":`市场大盘`,children:[(0,S.jsxs)(`div`,{ref:xe,className:b.stickyHeader,children:[(0,S.jsxs)(`header`,{className:b.breadcrumb,"aria-label":`页面路径`,children:[(0,S.jsx)(`button`,{onClick:()=>W({view:`categories`,categoryId:``,q:``,recentYear:!1}),children:`全部类目`}),Ge.map(e=>(0,S.jsxs)(`span`,{children:[(0,S.jsx)(n,{size:13}),(0,S.jsx)(`button`,{onClick:()=>We(e.id),children:e.name})]},e.id)),!G&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(n,{size:13}),(0,S.jsx)(`span`,{"aria-current":`page`,children:K?`商品排行榜`:`店铺排行榜`})]})]}),(0,S.jsxs)(`section`,{className:b.filterBar,"aria-label":`市场查询条件`,children:[(0,S.jsxs)(`div`,{className:b.categoryControl,children:[(0,S.jsx)(le,{categories:C?.categories||[],favoriteIds:B.filter(e=>e.startsWith(`category:`)).map(e=>e.slice(9)),value:D.categoryId,onChoose:We,disabled:!C?.categories.length}),G&&(0,S.jsxs)(`span`,{className:b.count,children:[Ke?`子类目`:`类目`,` `,T?qe.length:`—`,` `,`个`]}),G&&(0,S.jsxs)(`div`,{className:b.categoryLegend,"aria-label":`类目类型颜色说明`,children:[(0,S.jsxs)(`span`,{children:[(0,S.jsx)(`i`,{"data-leaf":`false`}),`有下级`]}),(0,S.jsxs)(`span`,{children:[(0,S.jsx)(`i`,{"data-leaf":`true`}),`叶子类目`]})]}),!G&&(0,S.jsx)(`nav`,{className:b.tabs,role:`tablist`,"aria-label":`排行榜`,children:[[`products`,`商品排行榜`],[`shops`,`店铺排行榜`]].map(([e,t])=>(0,S.jsx)(`button`,{role:`tab`,"aria-selected":D.view===e,onClick:()=>W({view:e,q:``,sort:`sales`,direction:`desc`,minPrice:``,maxPrice:``}),children:t},e))})]}),(0,S.jsxs)(`div`,{className:b.dateControl,children:[(0,S.jsxs)(`span`,{className:b.period,children:[`统计时间:`,T?.period?.start||(D.month?D.month+`-01`:`—`),` `,`至 `,T?.period?.end||Ye||`—`]}),(0,S.jsx)(`button`,{className:b.yearButton,"aria-pressed":D.recentYear,disabled:!C?.months.length,onClick:()=>W({recentYear:!D.recentYear,q:``,sort:`sales`,direction:`desc`}),children:`最近1年`}),(0,S.jsxs)(`select`,{"aria-label":`统计月份`,value:D.month,disabled:!C?.months.length,onChange:e=>W({month:e.target.value,recentYear:!1}),children:[!C?.months.length&&(0,S.jsx)(`option`,{children:`等待可用月份`}),C?.months.map(e=>(0,S.jsxs)(`option`,{value:e,children:[e.replace(`-`,`年`),`月`]},e))]}),(0,S.jsx)(`button`,{"aria-label":`上一个可用月份`,disabled:q<=0||N,onClick:()=>W({month:C.months[q-1]}),children:(0,S.jsx)(e,{size:15})}),(0,S.jsx)(`button`,{"aria-label":`下一个可用月份`,disabled:!C||q>=C.months.length-1||N,onClick:()=>W({month:C.months[q+1]}),children:(0,S.jsx)(n,{size:15})}),G&&(0,S.jsx)(`div`,{className:b.segment,children:[[`sales`,`销售额`],[`units`,`销量`],...Ke?[[`season`,`行业淡旺季`]]:[]].map(([e,t])=>(0,S.jsx)(`button`,{"aria-pressed":D.metric===e,onClick:()=>W({metric:e}),children:t},e))})]})]}),!G&&!F&&C?.status!==`no-access`&&!!D.categoryId&&(0,S.jsxs)(`div`,{className:b.toolbar,children:[(0,S.jsxs)(`label`,{className:b.search,children:[K&&!D.recentYear&&(0,S.jsx)(`span`,{children:`商品名称`}),(0,S.jsx)(l,{size:14}),(0,S.jsx)(`input`,{"aria-label":`搜索当前榜单`,placeholder:K?`请输入要搜索的商品名称或ID`:`请输入店铺名称`,value:D.q,onChange:e=>W({q:e.target.value})})]}),D.recentYear?(0,S.jsx)(`div`,{className:b.segment,children:[`sales`,`views`].map(e=>(0,S.jsx)(`button`,{"aria-pressed":D.sort===e,onClick:()=>W({sort:e}),children:_e(e)},e))}):(0,S.jsxs)(S.Fragment,{children:[K?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`button`,{disabled:!C?.capabilities?.priceDistribution||X!==`ready`,onClick:()=>H({kind:`distribution`}),children:`客单价分布`}),(0,S.jsxs)(`div`,{className:b.price,children:[(0,S.jsx)(`span`,{children:`件单价:`}),(0,S.jsxs)(`label`,{children:[(0,S.jsx)(`input`,{type:`number`,min:`0`,"aria-label":`最低件单价`,value:k,onChange:e=>A(e.target.value)}),(0,S.jsx)(`span`,{children:`元`})]}),(0,S.jsx)(`span`,{children:`–`}),(0,S.jsxs)(`label`,{children:[(0,S.jsx)(`input`,{type:`number`,min:`0`,"aria-label":`最高件单价`,value:j,onChange:e=>M(e.target.value)}),(0,S.jsx)(`span`,{children:`元`})]}),(0,S.jsx)(`button`,{className:b.primary,onClick:rt,children:`确定`}),(D.minPrice||D.maxPrice)&&(0,S.jsx)(`button`,{onClick:()=>{A(``),M(``),W({minPrice:``,maxPrice:``})},children:`重置`})]}),(0,S.jsxs)(`div`,{className:b.segment,children:[(0,S.jsxs)(`button`,{"aria-label":`大图视图`,"aria-pressed":ke,onClick:()=>Ae(!0),children:[(0,S.jsx)(r,{size:13}),`大图`]}),(0,S.jsxs)(`button`,{"aria-label":`列表视图`,"aria-pressed":!ke,onClick:()=>Ae(!1),children:[(0,S.jsx)(i,{size:13}),`列表`]})]})]}):(0,S.jsx)(`button`,{disabled:!0,title:`来源数据未提供地域字段`,children:`地域分布`}),(0,S.jsx)(`button`,{className:b.configButton,onClick:()=>z(!0),children:`表格配置`})]})]})]}),we&&(0,S.jsxs)(`div`,{className:b.message,role:`status`,children:[we,(0,S.jsx)(`button`,{"aria-label":`关闭提示`,onClick:()=>L(``),children:`×`})]}),p.length>0&&m&&(0,S.jsxs)(`div`,{className:b.competitorTray,children:[(0,S.jsxs)(`span`,{children:[`竞品分析已选 `,(0,S.jsxs)(`strong`,{children:[p.length,` / `,2]}),` 个商品`]}),(0,S.jsx)(`button`,{onClick:m,children:`查看竞品分析 →`})]}),F?(0,S.jsxs)(`section`,{className:b.emptyState,role:`alert`,children:[(0,S.jsx)(ee,{size:32}),(0,S.jsx)(`h2`,{children:F}),(0,S.jsx)(`button`,{onClick:()=>Ce(e=>e+1),children:`重新连接`})]}):C?.status===`no-access`?(0,S.jsxs)(`section`,{className:b.emptyState,children:[(0,S.jsx)(`h2`,{children:`企业尚未获得市场类目授权`}),(0,S.jsx)(`p`,{children:`企业子账号继承企业的市场类目范围。`})]}):!G&&!D.categoryId?(0,S.jsxs)(`section`,{className:b.emptyState,children:[(0,S.jsxs)(`h2`,{children:[`选择类目查看`,K?`商品`:`店铺`,`排行榜`]}),(0,S.jsx)(`p`,{children:`使用上方类目选择器,选择你要研究的具体类目。`})]}):(0,S.jsxs)(S.Fragment,{children:[N?(0,S.jsx)(`div`,{className:b.empty,role:`status`,children:`正在读取市场数据…`}):G?D.metric===`season`?(0,S.jsxs)(`section`,{className:b.seasonBoard,children:[(0,S.jsxs)(`table`,{children:[(0,S.jsx)(`thead`,{children:(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`th`,{children:`行业类目`}),(T?.period?.availableMonths||[]).map(e=>(0,S.jsx)(`th`,{children:e},e))]})}),(0,S.jsx)(`tbody`,{children:(0,S.jsx)(h,{items:T?.season||[],columns:1+(T?.period?.availableMonths.length||0),children:e=>(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`td`,{children:e.name}),e.months.map(e=>(0,S.jsx)(`td`,{children:(0,S.jsx)(`span`,{className:e.state===`旺季`?b.hot:e.state===`淡季`?b.cold:b.neutral,children:e.state||`资料缺失`})},e.month))]},e.categoryId)})})]}),!T?.season.length&&(0,S.jsx)(`p`,{className:b.empty,children:`淡旺季判定口径尚未配置,当前月份数据保持原值。`})]}):(0,S.jsxs)(`section`,{className:b.categoryList,"aria-label":`类目列表`,children:[(0,S.jsx)(`div`,{className:b.categoryHeaders,children:[0,1,2].map(e=>(0,S.jsxs)(`div`,{children:[(0,S.jsx)(`span`,{children:`类目名称`}),(0,S.jsx)(`span`,{children:D.metric===`units`?`销量`:`销售额`}),(0,S.jsx)(`span`,{children:D.metric===`units`?`销量同比`:`销售额同比`}),(0,S.jsx)(`span`,{children:`店铺数`}),(0,S.jsx)(`span`,{})]},e))}),(0,S.jsx)(`div`,{className:b.categoryRows,children:(0,S.jsx)(h,{items:qe,children:e=>(0,S.jsxs)(`article`,{className:b.categoryRow,"data-leaf":e.leaf,children:[(0,S.jsx)(`button`,{className:b.categoryOpen,"aria-label":e.leaf?`查看${e.name}排行榜`:`进入${e.name}子类目`,onClick:()=>We(e.id)}),(0,S.jsxs)(`div`,{className:b.categoryName,children:[(0,S.jsxs)(`span`,{title:e.name,children:[e.name,!e.leaf&&(0,S.jsx)(n,{size:12})]}),e.leaf&&(0,S.jsx)(`div`,{className:b.rowActions,children:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`button`,{onClick:()=>W({categoryId:e.id,view:`products`,q:``}),children:`排行榜`}),(0,S.jsx)(`button`,{onClick:()=>H({kind:`categoryTrend`,category:e}),children:`趋势`})]})})]}),(0,S.jsx)(`strong`,{children:y(e[Je],Je===`sales`?`compact`:`number`)}),(0,S.jsx)(`span`,{children:y(D.metric===`units`?e.unitsYoy:e.salesYoy,`percent`)}),(0,S.jsx)(`span`,{children:y(e.shopCount)}),Q(`category`,e.id,e.name)]},e.id)})}),!qe.length&&(0,S.jsx)(`p`,{className:b.empty,children:`当前类目已到最细层级,请选择商品或店铺排行榜。`})]}):D.recentYear?(0,S.jsx)(`section`,{className:b.yearBoards,"aria-label":`最近一年月度榜单`,children:de(D.month).map(e=>(0,S.jsx)(ge,{query:D,month:e,available:C?.months.includes(e)??!1,children:e=>(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(`table`,{children:[(0,S.jsx)(`thead`,{children:(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`th`,{children:`排名`}),(0,S.jsx)(`th`,{children:K?`商品`:`店铺`}),(0,S.jsx)(`th`,{children:D.sort===`views`?`浏览量`:`销售额`})]})}),(0,S.jsx)(`tbody`,{children:(0,S.jsx)(h,{items:e.rows,columns:3,children:e=>(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`td`,{children:e.sourceRank??`—`}),(0,S.jsxs)(`td`,{children:[K?Qe(e):$(e),K&&(0,S.jsx)(`small`,{children:e.shopName||`店铺资料缺失`})]}),(0,S.jsx)(`td`,{children:y(e[D.sort===`views`?`views`:`sales`],D.sort===`views`?`number`:`compact`)})]},e.key)})})]}),!e.rows.length&&(0,S.jsx)(`p`,{className:b.empty,children:e.status===`pending`?`正在导入`:e.status===`missing`?`暂无该月来源数据`:`暂无匹配数据`})]})},JSON.stringify(D)+e))}):K&&ke?(0,S.jsxs)(`section`,{className:b.productGrid,children:[(0,S.jsx)(h,{items:Y||[],children:e=>(0,S.jsxs)(`article`,{tabIndex:0,"aria-label":e.name||`商品卡片`,children:[(0,S.jsxs)(`div`,{className:b.largeImage,children:[v(e.imageUrl)?(0,S.jsx)(ne,{src:v(e.imageUrl),name:e.name||`商品图片`,hoverPreview:!1}):(0,S.jsx)(o,{size:44}),(0,S.jsxs)(`span`,{children:[`排名 `,e.sourceRank??`—`]}),Q(`product`,e.key,e.name||`商品`)]}),(0,S.jsxs)(`div`,{className:b.gridDetails,children:[Qe(e),(0,S.jsxs)(`p`,{children:[`店铺:`,$(e,!0)]}),(0,S.jsx)(`dl`,{children:R.map(t=>(0,S.jsxs)(`div`,{children:[(0,S.jsx)(`dt`,{children:_e(t)}),(0,S.jsx)(`dd`,{children:ve(e,t)})]},t))}),(0,S.jsx)(`button`,{onClick:()=>H({kind:`record`,record:e}),children:`查看销售走势`})]})]},e.key)}),!Y.length&&(0,S.jsx)(`p`,{className:b.empty,children:X===`pending`?`当前类目榜单正在导入`:`暂无匹配商品`})]}):(0,S.jsxs)(`section`,{className:b.tableScroll,"aria-label":K?`商品排行榜`:`店铺排行榜`,children:[(0,S.jsxs)(`table`,{className:K?b.productTable:b.shopTable,children:[(0,S.jsx)(`thead`,{children:(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`th`,{children:`排名`}),K?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`th`,{children:`商品`}),(0,S.jsx)(`th`,{children:`商品ID`}),R[0]===`listingDays`&&tt(`listingDays`),(0,S.jsx)(`th`,{children:`收藏商品`}),(0,S.jsx)(`th`,{children:`店铺`}),(0,S.jsx)(`th`,{children:`销售走势`}),(0,S.jsx)(`th`,{children:`利润测算`}),(0,S.jsx)(`th`,{children:`商品链接`}),(0,S.jsx)(`th`,{children:`竞品分析`})]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`th`,{children:`店铺ID`}),(0,S.jsx)(`th`,{children:`店铺名称`}),(0,S.jsx)(`th`,{children:`店铺收藏`}),(0,S.jsx)(`th`,{children:`销售走势`}),(0,S.jsx)(`th`,{children:`品类分析`})]}),J.filter(e=>!K||R[0]!==`listingDays`||e!==`listingDays`).map(tt)]})}),(0,S.jsx)(`tbody`,{children:(0,S.jsx)(h,{items:Y,columns:K?J.length+9:J.length+6,children:e=>(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`td`,{children:e.sourceRank??`—`}),K?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`td`,{children:Qe(e,!0)}),(0,S.jsx)(`td`,{children:Ze(e)}),R[0]===`listingDays`&&nt(e,`listingDays`),(0,S.jsx)(`td`,{children:Q(`product`,e.key,e.name||`商品`)}),(0,S.jsx)(`td`,{className:b.shopName,children:$(e,!0)}),(0,S.jsx)(`td`,{children:(0,S.jsx)(`button`,{className:b.linkButton,onClick:()=>H({kind:`record`,record:e}),children:`查看`})}),(0,S.jsx)(`td`,{children:(0,S.jsx)(`button`,{className:b.linkButton,disabled:!0,title:`需要成本与费用口径,当前未配置`,children:`测算`})}),(0,S.jsx)(`td`,{children:$e(e)}),(0,S.jsx)(`td`,{children:et(e)})]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`td`,{children:(0,S.jsxs)(`span`,{className:b.shopId,children:[e.id||`编号缺失`,e.id&&(0,S.jsx)(se,{text:e.id,label:`复制店铺编号${e.id}`,title:`复制店铺 ID`})]})}),(0,S.jsx)(`td`,{className:b.shopName,children:$(e)}),(0,S.jsx)(`td`,{children:Q(`shop`,e.key,e.name||`店铺`)}),(0,S.jsx)(`td`,{children:(0,S.jsx)(`button`,{className:b.linkButton,onClick:()=>H({kind:`record`,record:e}),children:`查看`})}),(0,S.jsxs)(`td`,{children:[(0,S.jsx)(`button`,{className:b.linkButton,disabled:!e.id,title:e.id?`仅分析获准类目`:`缺少可追踪店铺编号`,onClick:()=>H({kind:`shopCategories`,record:e}),children:`分析`}),f&&e.id&&(0,S.jsx)(`button`,{className:b.linkButton,onClick:()=>f({id:e.id,name:e.name||e.id},D.month),children:`归档布局`})]})]}),J.filter(e=>!K||R[0]!==`listingDays`||e!==`listingDays`).map(t=>nt(e,t))]},e.key)})})]}),!Y.length&&(0,S.jsx)(`p`,{className:b.empty,children:X===`pending`?`当前月份此类目榜单正在导入`:X===`missing`?`该类目暂无本月榜单,请选择其他月份或继续下钻`:`暂无匹配记录`})]}),!G&&!D.recentYear&&(0,S.jsxs)(`footer`,{className:b.pagination,children:[(0,S.jsxs)(`span`,{children:[`共 `,y(T?.total),` 条 · 保留来源排名`]}),(0,S.jsxs)(`div`,{children:[(0,S.jsx)(`button`,{"aria-label":`上一页`,disabled:D.page<=1||N,onClick:()=>W({page:D.page-1}),children:(0,S.jsx)(e,{size:14})}),Array.from(new Set([1,...Array.from({length:5},(e,t)=>D.page-2+t).filter(e=>e>1&&e<Z),Z])).map((e,t,n)=>(0,S.jsxs)(`span`,{children:[t>0&&e-n[t-1]>1&&(0,S.jsx)(`span`,{className:b.ellipsis,children:`…`}),(0,S.jsx)(`button`,{"aria-current":D.page===e?`page`:void 0,onClick:()=>W({page:e}),children:e})]},e)),(0,S.jsx)(`button`,{"aria-label":`下一页`,disabled:D.page>=Z||N,onClick:()=>W({page:D.page+1}),children:(0,S.jsx)(n,{size:14})}),(0,S.jsx)(`select`,{"aria-label":`每页条数`,value:D.pageSize,onChange:e=>W({pageSize:Number(e.target.value)}),children:[25,50,100].map(e=>(0,S.jsxs)(`option`,{value:e,children:[e,` 条/页`]},e))}),(0,S.jsxs)(`label`,{children:[`跳至`,(0,S.jsx)(`input`,{"aria-label":`跳转页码`,type:`number`,min:`1`,max:Z,defaultValue:D.page,onKeyDown:e=>{if(e.key===`Enter`){let t=Number(e.currentTarget.value);Number.isInteger(t)&&t>=1&&t<=Z&&W({page:t})}}},D.page)]})]})]}),T?.notice&&(0,S.jsx)(`p`,{className:b.notice,children:T.notice})]}),(0,S.jsxs)(`details`,{className:b.sources,children:[(0,S.jsxs)(`summary`,{children:[(0,S.jsx)(me,{size:13}),`数据来源与口径`]}),(0,S.jsxs)(`p`,{children:[T?.provenance.source||C?.sourceLabel||`共享市场数据库`,` ·`,` `,T?.provenance.updatedAt||`等待服务连接`]}),(0,S.jsx)(`p`,{children:T?.provenance.definition||`空值与零分别保留,按企业一级类目授权查询。`}),(0,S.jsx)(`p`,{children:`历史店铺缺少编号时仍保留榜单记录;缺少名称显示资料缺失,缺少有效链接时显示普通文本。收藏保存在当前账号下。`})]}),Oe&&(0,S.jsx)(ae,{columns:J,allowed:K?fe:ue,onClose:()=>z(!1),onSave:e=>{K?Te(e):De(e),z(!1)}}),V&&(0,S.jsx)(re,{title:V.kind===`distribution`?`件单价分布`:V.kind===`categoryTrend`?V.category.name:V.kind===`shopCategories`?`${V.record.name||`店铺`} · 品类分析`:V.record.name||`资料缺失`,onClose:()=>H(null),children:Le?(0,S.jsx)(`p`,{className:b.notice,role:`alert`,children:Le}):Fe?(0,S.jsx)(`p`,{className:b.empty,children:`正在读取数据…`}):V.kind===`record`&&U?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(`p`,{className:b.detailScope,children:[D.month,` · 原榜排名 `,U.sourceRank??`—`,` ·`,` `,U.id||`编号缺失`]}),(0,S.jsx)(oe,{points:U.trend}),(0,S.jsx)(`dl`,{className:b.detailMetrics,children:ie.map(([e,t,n])=>(0,S.jsxs)(`div`,{children:[(0,S.jsx)(`dt`,{children:t}),(0,S.jsx)(`dd`,{children:y(U[e],n)})]},e))}),U.warnings?.map(e=>(0,S.jsx)(`p`,{className:b.notice,children:e},e)),(0,S.jsxs)(`p`,{className:b.detailScope,children:[`来源:`,U.source.file,` · 第 `,U.source.row,` 行`]})]}):V.kind===`categoryTrend`?(0,S.jsx)(oe,{points:Ve,metric:D.metric===`units`?`units`:`sales`}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`p`,{className:b.detailScope,children:V.kind===`distribution`?`按当前已入库商品榜单统计,非全市场商品分布`:`仅展示获准类目的店铺指标,各层级分别列示。`}),(0,S.jsxs)(`table`,{children:[(0,S.jsx)(`thead`,{children:(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`th`,{children:V.kind===`distribution`?`件单价区间`:`类目`}),V.kind===`distribution`&&(0,S.jsx)(`th`,{children:`商品数`}),(0,S.jsx)(`th`,{children:`销售额`})]})}),(0,S.jsx)(`tbody`,{children:(0,S.jsx)(h,{items:ze,columns:V.kind===`distribution`?3:2,children:e=>(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`td`,{children:e.name}),V.kind===`distribution`&&(0,S.jsx)(`td`,{children:y(e.products)}),(0,S.jsx)(`td`,{children:y(e.sales,`money`)})]},e.name)})})]}),!ze.length&&(0,S.jsx)(`p`,{className:b.empty,children:`当前范围暂无可用数据`})]})})]})}function w(e=[]){let t=e,n=new Set,r=e=>{t=e;for(let e of n)e()};return{get:()=>t,subscribe:e=>(n.add(e),()=>n.delete(e)),add:e=>r(c(t,e)),remove:e=>r(t.filter(t=>t.id!==e)),acknowledge:e=>r(t.filter(t=>!e.includes(t)))}}var T=(0,x.lazy)(()=>p(()=>import(`./CompetitorAnalysis-Cujy_a2L.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url)),E=(0,x.lazy)(()=>p(()=>import(`./ShopLayoutPage-CCrRwaAx.js`),__vite__mapDeps([28,1,2,15,4,13,14,10,11,16,17,18,19,20,29,30,31,32,23,24,8,33,34,25,26,9,35,36,37]),import.meta.url)),D=(0,x.lazy)(()=>p(()=>import(`./Favorites-B5_fdEvZ.js`),__vite__mapDeps([38,1,2,15,14,10,11,16,3,4,5,6,7,8,9,12,17]),import.meta.url)),O=(0,x.lazy)(()=>p(()=>import(`./Opportunities-BvH64-dz.js`),__vite__mapDeps([39,1,2,15,3,4,5,6,7,8,9,10,11,30,21,26,40]),import.meta.url));function k({section:e,onSection:t}){let[n,r]=m(`market.analysisLaunch`,null),[i,a]=(0,x.useState)(),[o,s]=m(`market.competitor.draft`,w());(0,x.useEffect)(()=>{s(o)},[o,s]);let c=(0,x.useSyncExternalStore)(o.subscribe,o.get,o.get),[,l]=m(`market.competitor.view.v2`,`new`),u=e=>{o.add(e),l(`new`)},d=(0,x.useCallback)(e=>{a(t=>t===e?void 0:t)},[]);if(e===`shop-layout`)return(0,S.jsx)(x.Suspense,{fallback:(0,S.jsx)(`p`,{role:`status`,children:`正在加载店铺品类布局…`}),children:(0,S.jsx)(E,{launch:n,onConsumeLaunch:()=>r(null)})});if(e===`opportunities`)return(0,S.jsx)(x.Suspense,{fallback:(0,S.jsx)(`p`,{role:`status`,children:`正在加载机会发现…`}),children:(0,S.jsx)(O,{onOpenCategory:(e,n)=>{a({categoryId:e,month:n,view:`products`}),t(`products`)}})});if(e===`favorites`)return(0,S.jsx)(x.Suspense,{fallback:(0,S.jsx)(`p`,{role:`status`,children:`正在加载我的收藏…`}),children:(0,S.jsx)(D,{competitorIds:c.map(e=>e.id),onAddCompetitor:u,onOpenCompetitors:()=>{l(`new`),t(`competitor-analysis`)}})});if(e===`competitor-analysis`)return(0,S.jsx)(x.Suspense,{fallback:(0,S.jsx)(`p`,{role:`status`,children:`正在加载竞品分析…`}),children:(0,S.jsx)(T,{products:c,onAdd:u,onStarted:o.acknowledge,onRemove:o.remove,onBrowse:()=>t(`products`)})});let f=[`categories`,`products`,`shops`].find(t=>t===e)||`categories`;return(0,S.jsx)(C,{selection:i,onConsumeSelection:d,competitorIds:c.map(e=>e.id),onAddCompetitor:u,onOpenCompetitors:()=>t(`competitor-analysis`),onShopLayout:(e,n)=>{r({id:crypto.randomUUID(),shop:e,month:n}),t(`shop-layout`)},view:f})}export{k as default};
|