@petercjl/omni-desktop-app 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/app/assets/{CartesianChart-BLyO9U-C.js → CartesianChart-acGhtLrw.js} +4 -4
  2. package/app/assets/CollaborationWorkspace-DAWo2Vol.js +57 -0
  3. package/app/assets/EmptyState-BgcduNtk.js +1 -0
  4. package/app/assets/{EvidenceSourceGuide-BqwES_45.js → EvidenceSourceGuide-qBsaH1fx.js} +1 -1
  5. package/app/assets/Favorites-C3gPJxbl.js +1 -0
  6. package/app/assets/{HelpTip-DgowTr-K.js → HelpTip-X4GpEnvk.js} +1 -1
  7. package/app/assets/{LineChart-BOoSfV72.js → LineChart-CyiCaQMM.js} +1 -1
  8. package/app/assets/Opportunities-CogyuZvI.css +1 -0
  9. package/app/assets/Opportunities-DDR6jMz5.js +1 -0
  10. package/app/assets/ProgressiveRows-DPZqhsXV.js +1 -0
  11. package/app/assets/ShopLayoutPage-7lNMFD1W.js +1 -0
  12. package/app/assets/ShopLayoutPage-BlPpfB06.css +1 -0
  13. package/app/assets/{TrendChart-ozEGn1ai.js → TrendChart-ClEBAnKO.js} +1 -1
  14. package/app/assets/api-DP_rt0Zx.js +1 -0
  15. package/app/assets/arrow-left-rfprDrQc.js +1 -0
  16. package/app/assets/arrow-up-right-Bp3gzP7v.js +1 -0
  17. package/app/assets/chart-no-axes-combined-dFluBLOV.js +1 -0
  18. package/app/assets/check-DokC3Ug0.js +1 -0
  19. package/app/assets/chevron-down-CHQKhw_4.js +1 -0
  20. package/app/assets/chevron-right-2HEa4oQb.js +1 -0
  21. package/app/assets/clock-3-DpvJxor3.js +1 -0
  22. package/app/assets/components-zDEQpnyp.js +2 -0
  23. package/app/assets/{download-DYUXwy45.js → download-BQwcTDwB.js} +1 -1
  24. package/app/assets/entry-BNiO6CiP.js +2 -0
  25. package/app/assets/entry-B_LLuTIf.css +1 -0
  26. package/app/assets/entry-BleRLT_W.js +1 -0
  27. package/app/assets/entry-CO870j9p.css +1 -0
  28. package/app/assets/entry-CYsrxe4a.js +2 -0
  29. package/app/assets/entry-D2FD-KFx.js +1 -0
  30. package/app/assets/entry-DAnTlYgL.js +1 -0
  31. package/app/assets/entry-DSEbJ79v.js +2 -0
  32. package/app/assets/{file-text-BE0hF4rH.js → file-text-DF8-c_Tb.js} +1 -1
  33. package/app/assets/git-branch-CMQGDByc.js +1 -0
  34. package/app/assets/{grid-2x2-lULFcGs7.js → grid-2x2-BNdV1X54.js} +1 -1
  35. package/app/assets/{index-Cez2mr3h.js → index-BBySSIJT.js} +2 -2
  36. package/app/assets/{layers-shcwXKIH.js → layers-BY0DtVnH.js} +1 -1
  37. package/app/assets/{link-2-BlbKNthn.js → link-2-B7GAWapc.js} +1 -1
  38. package/app/assets/{list-CrDQ8uHL.js → list-DrSHrHvT.js} +1 -1
  39. package/app/assets/module-host-BHOsDk69.js +1 -0
  40. package/app/assets/package-C_xD77DO.js +1 -0
  41. package/app/assets/{pin-C4E_u351.js → pin-BEsLCHJL.js} +1 -1
  42. package/app/assets/plus-C301wuGJ.js +1 -0
  43. package/app/assets/{products-fIIO39ry.js → products-CfPFkCnk.js} +1 -1
  44. package/app/assets/{project-public-DCJ5Ry0f.js → project-public-CYza4XVS.js} +2 -2
  45. package/app/assets/{project-public-4Gjaxeyh.js → project-public-DqjxO6ad.js} +1 -1
  46. package/app/assets/public-DoBzMSlG.js +1 -0
  47. package/app/assets/{refresh-cw-C_4G0Mri.js → refresh-cw-BZ6-gKfF.js} +1 -1
  48. package/app/assets/{create-intent-ZWl5yZd5.css → ui-public-BPe2GJZ-.css} +1 -1
  49. package/app/assets/ui-public-CX7L8QF_.js +1 -0
  50. package/app/assets/use-favorites-ChTJGQkB.js +1 -0
  51. package/app/assets/workbench-BCuh9Nyq.js +2 -0
  52. package/app/assets/workspace-view-state-CYNxOsyc.js +1 -0
  53. package/app/index.html +1 -1
  54. package/package.json +1 -1
  55. package/release.json +1 -1
  56. package/release.sig +1 -1
  57. package/app/assets/EmptyState-Cgx7dIy3.js +0 -1
  58. package/app/assets/Favorites-JpOkiZFS.js +0 -1
  59. package/app/assets/ShopLayoutPage-BPjWnPjn.css +0 -1
  60. package/app/assets/ShopLayoutPage-xv0PhUXv.js +0 -1
  61. package/app/assets/api-DTsZ_OeY.js +0 -1
  62. package/app/assets/arrow-right-DMEu-HBO.js +0 -1
  63. package/app/assets/arrow-up-right-Bi_SzYu1.js +0 -1
  64. package/app/assets/chart-column-x5fvXs9m.js +0 -1
  65. package/app/assets/check-qCcwSYDE.js +0 -1
  66. package/app/assets/chevron-down-p3oUrcsv.js +0 -1
  67. package/app/assets/chevron-right-DqmFJybY.js +0 -1
  68. package/app/assets/clock-3-BThph9Fd.js +0 -1
  69. package/app/assets/components-BVWswT0B.js +0 -2
  70. package/app/assets/create-intent-9uYVhJHt.js +0 -1
  71. package/app/assets/demand-planning-client-DVOcsKAy.css +0 -1
  72. package/app/assets/demand-planning-client-cRvN3aET.js +0 -130
  73. package/app/assets/entry-BXB2Nzyc.js +0 -2
  74. package/app/assets/entry-BxaHKvMx.js +0 -2
  75. package/app/assets/entry-C3TFTQrn.js +0 -1
  76. package/app/assets/entry-C_j4PEhB.css +0 -1
  77. package/app/assets/entry-Crfux-R-.js +0 -1
  78. package/app/assets/entry-DQpz8kvM.js +0 -58
  79. package/app/assets/entry-WYptT5dv.js +0 -2
  80. package/app/assets/flag-DspBXBR4.js +0 -1
  81. package/app/assets/git-branch-BAJikW8Q.js +0 -1
  82. package/app/assets/module-host-CyMfvPpR.js +0 -1
  83. package/app/assets/play-D07b6r1X.js +0 -1
  84. package/app/assets/plus-iTTlNMxD.js +0 -1
  85. package/app/assets/project-execution-DMEIpSz3.js +0 -1
  86. package/app/assets/project-public-tKjd5rma.js +0 -1
  87. package/app/assets/public-BlU5YmdO.js +0 -1
  88. package/app/assets/search-CUzSX_06.js +0 -1
  89. package/app/assets/ui-public-9lmhhAop.js +0 -1
  90. package/app/assets/use-favorites-BOjIArhk.js +0 -1
  91. package/app/assets/use-workspace-query-C-vrOrvK.js +0 -1
  92. package/app/assets/workbench-BMO5cSO0.js +0 -2
  93. package/app/assets/workspace-view-state-CRfq5jgZ.js +0 -1
  94. /package/app/assets/{entry-DHP4cb-p.css → CollaborationWorkspace-DHP4cb-p.css} +0 -0
  95. /package/app/assets/{activity-BV0UMcx6.js → activity-idEO2qnr.js} +0 -0
  96. /package/app/assets/{format-BCxMsVJh.js → format-jsGSJ1GL.js} +0 -0
  97. /package/app/assets/{graphicalItemSelectors-DGWLDzMl.js → graphicalItemSelectors-GhHIivGe.js} +0 -0
  98. /package/app/assets/{group-eZxxe_Hb.js → group--adLvfC6.js} +0 -0
  99. /package/app/assets/{market.module-vHIsXpQH.js → market.module-BXeOH_ee.js} +0 -0
@@ -0,0 +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 .done{background:var(--omni-paint-surface-1d8c94,#1d8c94);border-color:var(--omni-paint-line-31b3bc,#31b3bc)}.workbench-module .gc .review{background:var(--omni-paint-surface-6352b1,#6352b1);border-color:var(--omni-paint-line-8971df,#8971df)}.workbench-module .gc .attention{background:var(--omni-paint-surface-9a6433,#9a6433);border-color:var(--omni-paint-line-d7a15d,#d7a15d)}.workbench-module .gc .todo{background:var(--omni-paint-surface-1c3156,#1c3156);border-color:var(--omni-paint-line-2b4771,#2b4771)}.workbench-module .gc .stopped{background:var(--omni-paint-surface-853d5b,#853d5b);border-color:var(--omni-paint-line-b9698a,#b9698a)}.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}: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}
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ShopLayoutPage-7lNMFD1W.js","./index-BBySSIJT.js","./index-7NKGenq7.css","./api-DP_rt0Zx.js","./use-favorites-ChTJGQkB.js","./workspace-view-state-CYNxOsyc.js","./public-DoBzMSlG.js","./use-favorites-_eKBQGeF.css","./format-jsGSJ1GL.js","./ProgressiveRows-DPZqhsXV.js","./CartesianChart-acGhtLrw.js","./LineChart-CyiCaQMM.js","./arrow-left-rfprDrQc.js","./clock-3-DpvJxor3.js","./chart-no-axes-combined-dFluBLOV.js","./check-DokC3Ug0.js","./link-2-B7GAWapc.js","./chevron-right-2HEa4oQb.js","./grid-2x2-BNdV1X54.js","./list-DrSHrHvT.js","./plus-C301wuGJ.js","./refresh-cw-BZ6-gKfF.js","./graphicalItemSelectors-GhHIivGe.js","./ShopLayoutPage-BlPpfB06.css","./Favorites-C3gPJxbl.js","./components-zDEQpnyp.js","./market.module-BXeOH_ee.js","./market-B2oImfqS.css","./chevron-down-CHQKhw_4.js","./package-C_xD77DO.js","./Opportunities-DDR6jMz5.js","./arrow-up-right-Bp3gzP7v.js","./Opportunities-CogyuZvI.css"])))=>i.map(i=>d[i]);
2
+ import{n as e,t}from"./link-2-B7GAWapc.js";import{t as n}from"./chevron-right-2HEa4oQb.js";import{t as r}from"./grid-2x2-BNdV1X54.js";import{t as i}from"./list-DrSHrHvT.js";import{t as a}from"./package-C_xD77DO.js";import{n as o,r as s}from"./workspace-view-state-CYNxOsyc.js";import{_ as c,d as l,l as u,m as d,o as f,t as p}from"./index-BBySSIJT.js";import"./public-DoBzMSlG.js";import{t as m}from"./ProgressiveRows-DPZqhsXV.js";import{a as ee,c as h,i as te,l as g,n as ne,o as re,r as _,s as ie,t as ae}from"./components-zDEQpnyp.js";import{t as v}from"./api-DP_rt0Zx.js";import{a as oe,i as y,n as b,o as se,r as ce,t as le}from"./format-jsGSJ1GL.js";import{t as x}from"./market.module-BXeOH_ee.js";var ue=l(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),de=l(`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`}]]),S=c(d(),1),C=f();function fe({query:e,month:t,available:n,children:r}){let i=(0,S.useRef)(null),[a,o]=(0,S.useState)(!1),[s,c]=(0,S.useState)(null),[l,u]=(0,S.useState)(``),[d,f]=(0,S.useState)(0);return(0,S.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,S.useEffect)(()=>{if(!a||!n)return;let r=new AbortController;return v.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,C.jsxs)(`article`,{ref:i,children:[(0,C.jsxs)(`h2`,{children:[t.replace(`-`,`年`),`月`]}),n?l?(0,C.jsxs)(`div`,{role:`alert`,children:[l,(0,C.jsx)(`button`,{onClick:()=>f(e=>e+1),children:`重试本月`})]}):s?r(s):(0,C.jsx)(`div`,{style:{minHeight:260},children:a?(0,C.jsx)(`p`,{role:`status`,children:`正在读取本月榜单…`}):(0,C.jsx)(`button`,{onClick:()=>o(!0),children:`加载本月榜单`})}):(0,C.jsx)(`p`,{children:`暂无该月来源数据`})]})}var w=e=>g.find(t=>t[0]===e)?.[1],pe=(e,t)=>b(e[t],g.find(e=>e[0]===t)?.[2]);function T({view:o,selection:c,onConsumeSelection:l,onShopLayout:d}={}){let[f,p]=(0,S.useState)(null),[T,E]=(0,S.useState)(null),[D,O]=h(`query`,ie),[k,A]=(0,S.useState)(D.minPrice),[j,M]=(0,S.useState)(D.maxPrice),me=(0,S.useRef)(void 0),he=(0,S.useRef)(null),ge=(0,S.useRef)(null);(0,S.useEffect)(()=>{let e=ge.current;if(!e)return;let t=()=>he.current?.style.setProperty(`--market-controls-height`,`${e.getBoundingClientRect().height}px`),n=new ResizeObserver(t);return n.observe(e),t(),()=>n.disconnect()},[]),(0,S.useEffect)(()=>{if(!f)return;let e=c===me.current?void 0:c;me.current=c,e?.month&&(A(``),M(``)),O(t=>{let n=e?.categoryId??t.categoryId,r=f.categories.some(e=>e.id===n&&e.leaf);return{...t,categoryId:n,...e?.month?{month:e.month,recentYear:!1,q:``,minPrice:``,maxPrice:``}:{},view:o===`categories`?r?`products`:`categories`:o||t.view,page:1}}),e&&l?.(e)},[o,c,f,O,l]);let[N,P]=(0,S.useState)(!0),[F,I]=(0,S.useState)(``),[_e,ve]=(0,S.useState)(0),[ye,L]=(0,S.useState)(``),[R,be]=h(`productFields`,ce),[xe,Se]=h(`shopFields`,oe),[Ce,z]=(0,S.useState)(!1),[we,Te]=h(`grid`,!1),[B,Ee]=(0,S.useState)([]),[De,Oe]=(0,S.useState)(null),[V,H]=(0,S.useState)(null),[U,ke]=(0,S.useState)(null),[Ae,je]=(0,S.useState)(!1),[Me,Ne]=(0,S.useState)(``),[Pe,Fe]=(0,S.useState)([]),[Ie,Le]=(0,S.useState)([]),Re=(0,S.useRef)(null);function W(e){E(null),I(``),P(!0),O(t=>({...t,...e,page:e.page??1}))}function ze(e){let t=f?.categories.find(t=>t.id===e);A(``),M(``),W({categoryId:e,view:o&&o!==`categories`?D.view===`categories`?o:D.view:t?.leaf?`products`:`categories`,q:``,minPrice:``,maxPrice:``,sort:`sales`,direction:`desc`})}(0,S.useEffect)(()=>{let e=new AbortController;return(async()=>{if(await Promise.resolve(),!e.signal.aborted){P(!0),I(``),E(null),p(null);try{let t=await v.bootstrap(e.signal);if(e.signal.aborted)return;if(t.contractVersion!==1)throw Error(`市场查询契约版本不兼容`);p(t),Ee((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()},[_e,O]),(0,S.useEffect)(()=>{if(!f||f.status!==`ready`||!D.month)return;let e=Re.current;Re.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),v.query(D,n.signal).then(e=>{n.signal.aborted||E(e)}).catch(e=>{n.signal.aborted||(E(null),I(e.message),e.status===403?(p(null),ve(e=>e+1)):e.status===401&&p(null))}).finally(()=>{n.signal.aborted||P(!1)})},t);return()=>{clearTimeout(r),n.abort()}},[D,f]),(0,S.useEffect)(()=>{if(!V)return;let e=new AbortController;return(async()=>{if(await Promise.resolve(),!e.signal.aborted){je(!0),Ne(``),Fe([]),Le([]),ke(V.kind===`record`||V.kind===`shopCategories`?V.record:null);try{if(V.kind===`record`){let t=await v.record(V.record.key,e.signal);e.signal.aborted||ke(t)}if(V.kind===`shopCategories`){let t=await v.shopCategories(V.record.key,e.signal);e.signal.aborted||Fe(t.rows)}if(V.kind===`distribution`){let t=await v.distribution(D,e.signal);e.signal.aborted||Fe(t.rows.map(e=>({name:e.label,sales:e.sales,products:e.products})))}if(V.kind===`categoryTrend`){let t=await v.query({...D,view:`categories`,categoryId:V.category.id},e.signal);e.signal.aborted||Le(t.trend)}}catch(t){e.signal.aborted||Ne(t.message)}finally{e.signal.aborted||je(!1)}}})(),()=>e.abort()},[V,D]);let Be=le(f?.categories||[],D.categoryId),Ve=Be.at(-1),G=D.view===`categories`,K=D.view===`products`,q=f?.months.indexOf(D.month)??-1,J=K?R:xe,Y=T?.rows||[],He=T?.categories||[],Ue=D.metric===`units`?`units`:`sales`,X=T?.availability?.[K?`products`:`shops`],Z=Math.max(1,Math.ceil((T?.total||0)/D.pageSize)),We=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 Ge(e,t){if(De)return;let n=`${e}:${t}`,r=!B.includes(n);Oe(n);try{await v.favorite(e,t,r),Ee(e=>r?[...e,n]:e.filter(e=>e!==n))}catch(e){L(e.message)}finally{Oe(null)}}function Q(e,t,n){return(0,C.jsx)(`button`,{className:x.iconButton,disabled:De!==null,"aria-label":`收藏${n}`,"aria-pressed":B.includes(`${e}:${t}`),onClick:()=>void Ge(e,t),children:(0,C.jsx)(de,{size:14,fill:B.includes(`${e}:${t}`)?`currentColor`:`none`})})}function Ke(e){return(0,C.jsxs)(`span`,{className:x.productId,children:[e.id||`编号缺失`,e.id&&(0,C.jsx)(_,{text:e.id,label:`复制商品编号${e.id}`,title:`复制商品 ID`})]})}function qe(e,n=!1){return(0,C.jsxs)(`div`,{className:x.identity,children:[y(e.imageUrl)?(0,C.jsx)(ee,{src:y(e.imageUrl),name:e.name||`商品图片`}):(0,C.jsx)(`span`,{className:x.noImage,children:(0,C.jsx)(a,{size:20})}),(0,C.jsxs)(`div`,{children:[(0,C.jsxs)(`div`,{className:x.productTitleRow,children:[y(e.url)?(0,C.jsx)(`a`,{className:x.productTitle,href:y(e.url),target:`_blank`,rel:`noreferrer`,children:e.name||`资料缺失`}):(0,C.jsx)(`button`,{className:x.productTitle,onClick:()=>H({kind:`record`,record:e}),children:e.name||`资料缺失`}),y(e.url)&&(0,C.jsx)(_,{text:y(e.url),label:`复制商品链接${e.name||e.id||``}`,title:`复制商品链接`,children:(0,C.jsx)(t,{size:13})})]}),!n&&(0,C.jsxs)(`small`,{children:[`商品ID:`,Ke(e)]})]})]})}function $(e,t=!1){let n=t?e.shopUrl:e.url,r=t?e.shopName:e.name;return y(n)?(0,C.jsx)(`a`,{href:y(n),target:`_blank`,rel:`noreferrer`,children:r||`资料缺失`}):(0,C.jsx)(`span`,{children:r||`资料缺失`})}function Je(e){return(0,C.jsx)(`th`,{children:(0,C.jsxs)(`button`,{onClick:()=>W({sort:e,direction:D.sort===e&&D.direction===`desc`?`asc`:`desc`}),children:[w(e),(0,C.jsx)(`span`,{className:D.sort===e?x.activeSort:x.sort,children:D.sort===e?D.direction===`desc`?`↓`:`↑`:`↕`})]})},e)}function Ye(e,t){return(0,C.jsxs)(`td`,{className:t===`sales`?x.sales:void 0,children:[pe(e,t),t===`conversionRate`&&e[t]!=null&&(e[t]<0||e[t]>100)&&(0,C.jsxs)(`span`,{className:x.anomaly,title:`来源转化率异常,保留原值`,children:[` `,`!`]})]},t)}function Xe(){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,C.jsxs)(`section`,{ref:he,className:x.page,"aria-label":`市场大盘`,children:[(0,C.jsxs)(`div`,{ref:ge,className:x.stickyHeader,children:[(0,C.jsxs)(`header`,{className:x.breadcrumb,"aria-label":`页面路径`,children:[(0,C.jsx)(`button`,{onClick:()=>W({view:`categories`,categoryId:``,q:``,recentYear:!1}),children:`全部类目`}),Be.map(e=>(0,C.jsxs)(`span`,{children:[(0,C.jsx)(n,{size:13}),(0,C.jsx)(`button`,{onClick:()=>ze(e.id),children:e.name})]},e.id)),!G&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(n,{size:13}),(0,C.jsx)(`span`,{"aria-current":`page`,children:K?`商品排行榜`:`店铺排行榜`})]})]}),(0,C.jsxs)(`section`,{className:x.filterBar,"aria-label":`市场查询条件`,children:[(0,C.jsxs)(`div`,{className:x.categoryControl,children:[(0,C.jsx)(ae,{categories:f?.categories||[],favoriteIds:B.filter(e=>e.startsWith(`category:`)).map(e=>e.slice(9)),value:D.categoryId,onChoose:ze,disabled:!f?.categories.length}),G&&(0,C.jsxs)(`span`,{className:x.count,children:[Ve?`子类目`:`类目`,` `,T?He.length:`—`,` `,`个`]}),G&&(0,C.jsxs)(`div`,{className:x.categoryLegend,"aria-label":`类目类型颜色说明`,children:[(0,C.jsxs)(`span`,{children:[(0,C.jsx)(`i`,{"data-leaf":`false`}),`有下级`]}),(0,C.jsxs)(`span`,{children:[(0,C.jsx)(`i`,{"data-leaf":`true`}),`叶子类目`]})]}),!G&&(0,C.jsx)(`nav`,{className:x.tabs,role:`tablist`,"aria-label":`排行榜`,children:[[`products`,`商品排行榜`],[`shops`,`店铺排行榜`]].map(([e,t])=>(0,C.jsx)(`button`,{role:`tab`,"aria-selected":D.view===e,onClick:()=>W({view:e,q:``,sort:`sales`,direction:`desc`,minPrice:``,maxPrice:``}),children:t},e))})]}),(0,C.jsxs)(`div`,{className:x.dateControl,children:[(0,C.jsxs)(`span`,{className:x.period,children:[`统计时间:`,T?.period?.start||(D.month?D.month+`-01`:`—`),` `,`至 `,T?.period?.end||We||`—`]}),(0,C.jsx)(`button`,{className:x.yearButton,"aria-pressed":D.recentYear,disabled:!f?.months.length,onClick:()=>W({recentYear:!D.recentYear,q:``,sort:`sales`,direction:`desc`}),children:`最近1年`}),(0,C.jsxs)(`select`,{"aria-label":`统计月份`,value:D.month,disabled:!f?.months.length,onChange:e=>W({month:e.target.value,recentYear:!1}),children:[!f?.months.length&&(0,C.jsx)(`option`,{children:`等待可用月份`}),f?.months.map(e=>(0,C.jsxs)(`option`,{value:e,children:[e.replace(`-`,`年`),`月`]},e))]}),(0,C.jsx)(`button`,{"aria-label":`上一个可用月份`,disabled:q<=0||N,onClick:()=>W({month:f.months[q-1]}),children:(0,C.jsx)(e,{size:15})}),(0,C.jsx)(`button`,{"aria-label":`下一个可用月份`,disabled:!f||q>=f.months.length-1||N,onClick:()=>W({month:f.months[q+1]}),children:(0,C.jsx)(n,{size:15})}),G&&(0,C.jsx)(`div`,{className:x.segment,children:[[`sales`,`销售额`],[`units`,`销量`],...Ve?[[`season`,`行业淡旺季`]]:[]].map(([e,t])=>(0,C.jsx)(`button`,{"aria-pressed":D.metric===e,onClick:()=>W({metric:e}),children:t},e))})]})]}),!G&&!F&&f?.status!==`no-access`&&!!D.categoryId&&(0,C.jsxs)(`div`,{className:x.toolbar,children:[(0,C.jsxs)(`label`,{className:x.search,children:[K&&!D.recentYear&&(0,C.jsx)(`span`,{children:`商品名称`}),(0,C.jsx)(s,{size:14}),(0,C.jsx)(`input`,{"aria-label":`搜索当前榜单`,placeholder:K?`请输入要搜索的商品名称或ID`:`请输入店铺名称`,value:D.q,onChange:e=>W({q:e.target.value})})]}),D.recentYear?(0,C.jsx)(`div`,{className:x.segment,children:[`sales`,`views`].map(e=>(0,C.jsx)(`button`,{"aria-pressed":D.sort===e,onClick:()=>W({sort:e}),children:w(e)},e))}):(0,C.jsxs)(C.Fragment,{children:[K?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`button`,{disabled:!f?.capabilities?.priceDistribution||X!==`ready`,onClick:()=>H({kind:`distribution`}),children:`客单价分布`}),(0,C.jsxs)(`div`,{className:x.price,children:[(0,C.jsx)(`span`,{children:`件单价:`}),(0,C.jsxs)(`label`,{children:[(0,C.jsx)(`input`,{type:`number`,min:`0`,"aria-label":`最低件单价`,value:k,onChange:e=>A(e.target.value)}),(0,C.jsx)(`span`,{children:`元`})]}),(0,C.jsx)(`span`,{children:`–`}),(0,C.jsxs)(`label`,{children:[(0,C.jsx)(`input`,{type:`number`,min:`0`,"aria-label":`最高件单价`,value:j,onChange:e=>M(e.target.value)}),(0,C.jsx)(`span`,{children:`元`})]}),(0,C.jsx)(`button`,{className:x.primary,onClick:Xe,children:`确定`}),(D.minPrice||D.maxPrice)&&(0,C.jsx)(`button`,{onClick:()=>{A(``),M(``),W({minPrice:``,maxPrice:``})},children:`重置`})]}),(0,C.jsxs)(`div`,{className:x.segment,children:[(0,C.jsxs)(`button`,{"aria-label":`大图视图`,"aria-pressed":we,onClick:()=>Te(!0),children:[(0,C.jsx)(r,{size:13}),`大图`]}),(0,C.jsxs)(`button`,{"aria-label":`列表视图`,"aria-pressed":!we,onClick:()=>Te(!1),children:[(0,C.jsx)(i,{size:13}),`列表`]})]})]}):(0,C.jsx)(`button`,{disabled:!0,title:`来源数据未提供地域字段`,children:`地域分布`}),(0,C.jsx)(`button`,{className:x.configButton,onClick:()=>z(!0),children:`表格配置`})]})]})]}),ye&&(0,C.jsxs)(`div`,{className:x.message,role:`status`,children:[ye,(0,C.jsx)(`button`,{"aria-label":`关闭提示`,onClick:()=>L(``),children:`×`})]}),F?(0,C.jsxs)(`section`,{className:x.emptyState,role:`alert`,children:[(0,C.jsx)(u,{size:32}),(0,C.jsx)(`h2`,{children:F}),(0,C.jsx)(`button`,{onClick:()=>ve(e=>e+1),children:`重新连接`})]}):f?.status===`no-access`?(0,C.jsxs)(`section`,{className:x.emptyState,children:[(0,C.jsx)(`h2`,{children:`企业尚未获得市场类目授权`}),(0,C.jsx)(`p`,{children:`企业子账号继承企业的市场类目范围。`})]}):!G&&!D.categoryId?(0,C.jsxs)(`section`,{className:x.emptyState,children:[(0,C.jsxs)(`h2`,{children:[`选择类目查看`,K?`商品`:`店铺`,`排行榜`]}),(0,C.jsx)(`p`,{children:`使用上方类目选择器,选择你要研究的具体类目。`})]}):(0,C.jsxs)(C.Fragment,{children:[N?(0,C.jsx)(`div`,{className:x.empty,role:`status`,children:`正在读取市场数据…`}):G?D.metric===`season`?(0,C.jsxs)(`section`,{className:x.seasonBoard,children:[(0,C.jsxs)(`table`,{children:[(0,C.jsx)(`thead`,{children:(0,C.jsxs)(`tr`,{children:[(0,C.jsx)(`th`,{children:`行业类目`}),(T?.period?.availableMonths||[]).map(e=>(0,C.jsx)(`th`,{children:e},e))]})}),(0,C.jsx)(`tbody`,{children:(0,C.jsx)(m,{items:T?.season||[],columns:1+(T?.period?.availableMonths.length||0),children:e=>(0,C.jsxs)(`tr`,{children:[(0,C.jsx)(`td`,{children:e.name}),e.months.map(e=>(0,C.jsx)(`td`,{children:(0,C.jsx)(`span`,{className:e.state===`旺季`?x.hot:e.state===`淡季`?x.cold:x.neutral,children:e.state||`资料缺失`})},e.month))]},e.categoryId)})})]}),!T?.season.length&&(0,C.jsx)(`p`,{className:x.empty,children:`淡旺季判定口径尚未配置,当前月份数据保持原值。`})]}):(0,C.jsxs)(`section`,{className:x.categoryList,"aria-label":`类目列表`,children:[(0,C.jsx)(`div`,{className:x.categoryHeaders,children:[0,1,2].map(e=>(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`span`,{children:`类目名称`}),(0,C.jsx)(`span`,{children:D.metric===`units`?`销量`:`销售额`}),(0,C.jsx)(`span`,{children:D.metric===`units`?`销量同比`:`销售额同比`}),(0,C.jsx)(`span`,{children:`店铺数`}),(0,C.jsx)(`span`,{})]},e))}),(0,C.jsx)(`div`,{className:x.categoryRows,children:(0,C.jsx)(m,{items:He,children:e=>(0,C.jsxs)(`article`,{className:x.categoryRow,"data-leaf":e.leaf,children:[(0,C.jsx)(`button`,{className:x.categoryOpen,"aria-label":e.leaf?`查看${e.name}排行榜`:`进入${e.name}子类目`,onClick:()=>ze(e.id)}),(0,C.jsxs)(`div`,{className:x.categoryName,children:[(0,C.jsxs)(`span`,{title:e.name,children:[e.name,!e.leaf&&(0,C.jsx)(n,{size:12})]}),e.leaf&&(0,C.jsx)(`div`,{className:x.rowActions,children:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`button`,{onClick:()=>W({categoryId:e.id,view:`products`,q:``}),children:`排行榜`}),(0,C.jsx)(`button`,{onClick:()=>H({kind:`categoryTrend`,category:e}),children:`趋势`})]})})]}),(0,C.jsx)(`strong`,{children:b(e[Ue],Ue===`sales`?`compact`:`number`)}),(0,C.jsx)(`span`,{children:b(D.metric===`units`?e.unitsYoy:e.salesYoy,`percent`)}),(0,C.jsx)(`span`,{children:b(e.shopCount)}),Q(`category`,e.id,e.name)]},e.id)})}),!He.length&&(0,C.jsx)(`p`,{className:x.empty,children:`当前类目已到最细层级,请选择商品或店铺排行榜。`})]}):D.recentYear?(0,C.jsx)(`section`,{className:x.yearBoards,"aria-label":`最近一年月度榜单`,children:se(D.month).map(e=>(0,C.jsx)(fe,{query:D,month:e,available:f?.months.includes(e)??!1,children:e=>(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(`table`,{children:[(0,C.jsx)(`thead`,{children:(0,C.jsxs)(`tr`,{children:[(0,C.jsx)(`th`,{children:`排名`}),(0,C.jsx)(`th`,{children:K?`商品`:`店铺`}),(0,C.jsx)(`th`,{children:D.sort===`views`?`浏览量`:`销售额`})]})}),(0,C.jsx)(`tbody`,{children:(0,C.jsx)(m,{items:e.rows,columns:3,children:e=>(0,C.jsxs)(`tr`,{children:[(0,C.jsx)(`td`,{children:e.sourceRank??`—`}),(0,C.jsxs)(`td`,{children:[K?qe(e):$(e),K&&(0,C.jsx)(`small`,{children:e.shopName||`店铺资料缺失`})]}),(0,C.jsx)(`td`,{children:b(e[D.sort===`views`?`views`:`sales`],D.sort===`views`?`number`:`compact`)})]},e.key)})})]}),!e.rows.length&&(0,C.jsx)(`p`,{className:x.empty,children:e.status===`pending`?`正在导入`:e.status===`missing`?`暂无该月来源数据`:`暂无匹配数据`})]})},JSON.stringify(D)+e))}):K&&we?(0,C.jsxs)(`section`,{className:x.productGrid,children:[(0,C.jsx)(m,{items:Y||[],children:e=>(0,C.jsxs)(`article`,{tabIndex:0,"aria-label":e.name||`商品卡片`,children:[(0,C.jsxs)(`div`,{className:x.largeImage,children:[y(e.imageUrl)?(0,C.jsx)(ee,{src:y(e.imageUrl),name:e.name||`商品图片`,hoverPreview:!1}):(0,C.jsx)(a,{size:44}),(0,C.jsxs)(`span`,{children:[`排名 `,e.sourceRank??`—`]}),Q(`product`,e.key,e.name||`商品`)]}),(0,C.jsxs)(`div`,{className:x.gridDetails,children:[qe(e),(0,C.jsxs)(`p`,{children:[`店铺:`,$(e,!0)]}),(0,C.jsx)(`dl`,{children:R.map(t=>(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`dt`,{children:w(t)}),(0,C.jsx)(`dd`,{children:pe(e,t)})]},t))}),(0,C.jsx)(`button`,{onClick:()=>H({kind:`record`,record:e}),children:`查看销售走势`})]})]},e.key)}),!Y.length&&(0,C.jsx)(`p`,{className:x.empty,children:X===`pending`?`当前类目榜单正在导入`:`暂无匹配商品`})]}):(0,C.jsxs)(`section`,{className:x.tableScroll,"aria-label":K?`商品排行榜`:`店铺排行榜`,children:[(0,C.jsxs)(`table`,{className:K?x.productTable:x.shopTable,children:[(0,C.jsx)(`thead`,{children:(0,C.jsxs)(`tr`,{children:[(0,C.jsx)(`th`,{children:`排名`}),K?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`th`,{children:`商品`}),(0,C.jsx)(`th`,{children:`商品ID`}),R[0]===`listingDays`&&Je(`listingDays`),(0,C.jsx)(`th`,{children:`收藏商品`}),(0,C.jsx)(`th`,{children:`店铺`}),(0,C.jsx)(`th`,{children:`销售走势`}),(0,C.jsx)(`th`,{children:`利润测算`})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`th`,{children:`店铺ID`}),(0,C.jsx)(`th`,{children:`店铺名称`}),(0,C.jsx)(`th`,{children:`店铺收藏`}),(0,C.jsx)(`th`,{children:`销售走势`}),(0,C.jsx)(`th`,{children:`品类分析`})]}),J.filter(e=>!K||R[0]!==`listingDays`||e!==`listingDays`).map(Je)]})}),(0,C.jsx)(`tbody`,{children:(0,C.jsx)(m,{items:Y,columns:K?J.length+7:J.length+6,children:e=>(0,C.jsxs)(`tr`,{children:[(0,C.jsx)(`td`,{children:e.sourceRank??`—`}),K?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`td`,{children:qe(e,!0)}),(0,C.jsx)(`td`,{children:Ke(e)}),R[0]===`listingDays`&&Ye(e,`listingDays`),(0,C.jsx)(`td`,{children:Q(`product`,e.key,e.name||`商品`)}),(0,C.jsx)(`td`,{className:x.shopName,children:$(e,!0)}),(0,C.jsx)(`td`,{children:(0,C.jsx)(`button`,{className:x.linkButton,onClick:()=>H({kind:`record`,record:e}),children:`查看`})}),(0,C.jsx)(`td`,{children:(0,C.jsx)(`button`,{className:x.linkButton,disabled:!0,title:`需要成本与费用口径,当前未配置`,children:`测算`})})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`td`,{children:(0,C.jsxs)(`span`,{className:x.shopId,children:[e.id||`编号缺失`,e.id&&(0,C.jsx)(_,{text:e.id,label:`复制店铺编号${e.id}`,title:`复制店铺 ID`})]})}),(0,C.jsx)(`td`,{className:x.shopName,children:$(e)}),(0,C.jsx)(`td`,{children:Q(`shop`,e.key,e.name||`店铺`)}),(0,C.jsx)(`td`,{children:(0,C.jsx)(`button`,{className:x.linkButton,onClick:()=>H({kind:`record`,record:e}),children:`查看`})}),(0,C.jsxs)(`td`,{children:[(0,C.jsx)(`button`,{className:x.linkButton,disabled:!e.id,title:e.id?`仅分析获准类目`:`缺少可追踪店铺编号`,onClick:()=>H({kind:`shopCategories`,record:e}),children:`分析`}),d&&e.id&&(0,C.jsx)(`button`,{className:x.linkButton,onClick:()=>d({id:e.id,name:e.name||e.id},D.month),children:`归档布局`})]})]}),J.filter(e=>!K||R[0]!==`listingDays`||e!==`listingDays`).map(t=>Ye(e,t))]},e.key)})})]}),!Y.length&&(0,C.jsx)(`p`,{className:x.empty,children:X===`pending`?`当前月份此类目榜单正在导入`:X===`missing`?`该类目暂无本月榜单,请选择其他月份或继续下钻`:`暂无匹配记录`})]}),!G&&!D.recentYear&&(0,C.jsxs)(`footer`,{className:x.pagination,children:[(0,C.jsxs)(`span`,{children:[`共 `,b(T?.total),` 条 · 保留来源排名`]}),(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`button`,{"aria-label":`上一页`,disabled:D.page<=1||N,onClick:()=>W({page:D.page-1}),children:(0,C.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,C.jsxs)(`span`,{children:[t>0&&e-n[t-1]>1&&(0,C.jsx)(`span`,{className:x.ellipsis,children:`…`}),(0,C.jsx)(`button`,{"aria-current":D.page===e?`page`:void 0,onClick:()=>W({page:e}),children:e})]},e)),(0,C.jsx)(`button`,{"aria-label":`下一页`,disabled:D.page>=Z||N,onClick:()=>W({page:D.page+1}),children:(0,C.jsx)(n,{size:14})}),(0,C.jsx)(`select`,{"aria-label":`每页条数`,value:D.pageSize,onChange:e=>W({pageSize:Number(e.target.value)}),children:[25,50,100].map(e=>(0,C.jsxs)(`option`,{value:e,children:[e,` 条/页`]},e))}),(0,C.jsxs)(`label`,{children:[`跳至`,(0,C.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,C.jsx)(`p`,{className:x.notice,children:T.notice})]}),(0,C.jsxs)(`details`,{className:x.sources,children:[(0,C.jsxs)(`summary`,{children:[(0,C.jsx)(ue,{size:13}),`数据来源与口径`]}),(0,C.jsxs)(`p`,{children:[T?.provenance.source||f?.sourceLabel||`共享市场数据库`,` ·`,` `,T?.provenance.updatedAt||`等待服务连接`]}),(0,C.jsx)(`p`,{children:T?.provenance.definition||`空值与零分别保留,按企业一级类目授权查询。`}),(0,C.jsx)(`p`,{children:`历史店铺缺少编号时仍保留榜单记录;缺少名称显示资料缺失,缺少有效链接时显示普通文本。收藏保存在当前账号下。`})]}),Ce&&(0,C.jsx)(ne,{columns:J,allowed:K?ce:oe,onClose:()=>z(!1),onSave:e=>{K?be(e):Se(e),z(!1)}}),V&&(0,C.jsx)(te,{title:V.kind===`distribution`?`件单价分布`:V.kind===`categoryTrend`?V.category.name:V.kind===`shopCategories`?`${V.record.name||`店铺`} · 品类分析`:V.record.name||`资料缺失`,onClose:()=>H(null),children:Me?(0,C.jsx)(`p`,{className:x.notice,role:`alert`,children:Me}):Ae?(0,C.jsx)(`p`,{className:x.empty,children:`正在读取数据…`}):V.kind===`record`&&U?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(`p`,{className:x.detailScope,children:[D.month,` · 原榜排名 `,U.sourceRank??`—`,` ·`,` `,U.id||`编号缺失`]}),(0,C.jsx)(re,{points:U.trend}),(0,C.jsx)(`dl`,{className:x.detailMetrics,children:g.map(([e,t,n])=>(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`dt`,{children:t}),(0,C.jsx)(`dd`,{children:b(U[e],n)})]},e))}),U.warnings?.map(e=>(0,C.jsx)(`p`,{className:x.notice,children:e},e)),(0,C.jsxs)(`p`,{className:x.detailScope,children:[`来源:`,U.source.file,` · 第 `,U.source.row,` 行`]})]}):V.kind===`categoryTrend`?(0,C.jsx)(re,{points:Ie,metric:D.metric===`units`?`units`:`sales`}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`p`,{className:x.detailScope,children:V.kind===`distribution`?`按当前已入库商品榜单统计,非全市场商品分布`:`仅展示获准类目的店铺指标,各层级分别列示。`}),(0,C.jsxs)(`table`,{children:[(0,C.jsx)(`thead`,{children:(0,C.jsxs)(`tr`,{children:[(0,C.jsx)(`th`,{children:V.kind===`distribution`?`件单价区间`:`类目`}),V.kind===`distribution`&&(0,C.jsx)(`th`,{children:`商品数`}),(0,C.jsx)(`th`,{children:`销售额`})]})}),(0,C.jsx)(`tbody`,{children:(0,C.jsx)(m,{items:Pe,columns:V.kind===`distribution`?3:2,children:e=>(0,C.jsxs)(`tr`,{children:[(0,C.jsx)(`td`,{children:e.name}),V.kind===`distribution`&&(0,C.jsx)(`td`,{children:b(e.products)}),(0,C.jsx)(`td`,{children:b(e.sales,`money`)})]},e.name)})})]}),!Pe.length&&(0,C.jsx)(`p`,{className:x.empty,children:`当前范围暂无可用数据`})]})})]})}var E=(0,S.lazy)(()=>p(()=>import(`./ShopLayoutPage-7lNMFD1W.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]),import.meta.url)),D=(0,S.lazy)(()=>p(()=>import(`./Favorites-C3gPJxbl.js`),__vite__mapDeps([24,1,2,3,4,5,6,7,25,8,26,27,28,17,9,29]),import.meta.url)),O=(0,S.lazy)(()=>p(()=>import(`./Opportunities-DDR6jMz5.js`),__vite__mapDeps([30,1,2,3,25,8,26,27,28,17,5,6,12,31,21,32]),import.meta.url));function k({section:e,onSection:t}){let[n,r]=o(`market.analysisLaunch`,null),[i,a]=(0,S.useState)(),s=(0,S.useCallback)(e=>{a(t=>t===e?void 0:t)},[]);return e===`shop-layout`?(0,C.jsx)(S.Suspense,{fallback:(0,C.jsx)(`p`,{role:`status`,children:`正在加载店铺品类布局…`}),children:(0,C.jsx)(E,{launch:n,onConsumeLaunch:()=>r(null)})}):e===`opportunities`?(0,C.jsx)(S.Suspense,{fallback:(0,C.jsx)(`p`,{role:`status`,children:`正在加载机会发现…`}),children:(0,C.jsx)(O,{onOpenCategory:(e,n)=>{a({categoryId:e,month:n,view:`products`}),t(`products`)}})}):e===`favorites`?(0,C.jsx)(S.Suspense,{fallback:(0,C.jsx)(`p`,{role:`status`,children:`正在加载我的收藏…`}),children:(0,C.jsx)(D,{})}):(0,C.jsx)(T,{selection:i,onConsumeSelection:s,onShopLayout:(e,n)=>{r({id:crypto.randomUUID(),shop:e,month:n}),t(`shop-layout`)},view:[`categories`,`products`,`shops`].find(t=>t===e)||`categories`})}export{k as default};
@@ -0,0 +1 @@
1
+ import{t as e}from"./arrow-left-rfprDrQc.js";import{n as t}from"./clock-3-DpvJxor3.js";import{t as n}from"./arrow-up-right-Bp3gzP7v.js";import{t as r}from"./chart-no-axes-combined-dFluBLOV.js";import{t as i}from"./check-DokC3Ug0.js";import{t as a}from"./chevron-right-2HEa4oQb.js";import{n as o,t as s}from"./ui-public-CX7L8QF_.js";import{r as c}from"./CollaborationWorkspace-DAWo2Vol.js";import{a as l,n as u,o as d,r as f}from"./products-CfPFkCnk.js";import{t as p}from"./layers-BY0DtVnH.js";import{t as m}from"./refresh-cw-BZ6-gKfF.js";import{n as h,r as g}from"./workspace-view-state-CYNxOsyc.js";import{_,d as v,m as y,o as b,s as x}from"./index-BBySSIJT.js";import{n as S}from"./module-host-BHOsDk69.js";import"./public-DoBzMSlG.js";import{n as C,t as w}from"./activity-idEO2qnr.js";import{t as T}from"./group--adLvfC6.js";var E=v(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),D=v(`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=v(`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=v(`orbit`,[[`path`,{d:`M20.341 6.484A10 10 0 0 1 10.266 21.85`,key:`1enhxb`}],[`path`,{d:`M3.659 17.516A10 10 0 0 1 13.74 2.152`,key:`1crzgf`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`circle`,{cx:`19`,cy:`5`,r:`2`,key:`mhkx31`}],[`circle`,{cx:`5`,cy:`19`,r:`2`,key:`v8kfzx`}]]),A=v(`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`}]]),j=v(`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`}]]),M=_(y(),1),N={activity:`_activity_k9yph_1`,panel:`_panel_k9yph_1`},P=b();function F({mode:e,api:n,onOpen:r}){let[i,a]=(0,M.useState)([]),[o,s]=(0,M.useState)(!0),[c,l]=(0,M.useState)(``),[u,d]=(0,M.useState)(0),[f,p]=h(`workbench.`+e+`.search`,``);(0,M.useEffect)(()=>{let e=!0;return n(`/command-center`).then(t=>{let n=t?.projects;if(!Array.isArray(n))throw Error(`项目状态返回格式异常`);e&&(a(n.filter(e=>!e.simulated)),l(``))}).catch(t=>{e&&(a([]),l(t instanceof Error?t.message:`项目状态读取失败`))}).finally(()=>{e&&s(!1)}),()=>{e=!1}},[n,u]);let m=w(i),_=C(i),v=e=>e.toLowerCase().includes(f.trim().toLowerCase());return(0,P.jsxs)(`section`,{className:N.activity,children:[(0,P.jsxs)(`header`,{children:[(0,P.jsx)(`h1`,{children:e===`tasks`?`待处理事项`:`执行记录`}),(0,P.jsxs)(`label`,{children:[(0,P.jsx)(g,{size:16}),(0,P.jsx)(`input`,{"aria-label":`搜索工作台事项与记录`,value:f,onChange:e=>p(e.target.value),placeholder:`搜索项目或事项`})]})]}),c&&(0,P.jsxs)(`p`,{role:`alert`,children:[c,` `,(0,P.jsx)(`button`,{onClick:()=>{s(!0),d(e=>e+1)},children:`重试`})]}),o?(0,P.jsx)(`p`,{role:`status`,children:`正在读取项目状态…`}):(0,P.jsx)(`div`,{className:N.panel,children:e===`tasks`?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`h2`,{children:[`需要你处理 · `,m.length,` 项`]}),m.filter(({project:e,step:t})=>v(e.name+t.name)).slice(0,30).map(({project:e,step:n})=>(0,P.jsxs)(`button`,{onClick:()=>r(e.id,n.target),children:[(0,P.jsxs)(`span`,{children:[(0,P.jsxs)(`b`,{children:[n.name,` · `,n.state===`attention`?`待复核`:`待确认`]}),(0,P.jsxs)(`small`,{children:[e.name,` · `,n.description]})]}),(0,P.jsx)(t,{size:16})]},e.id+n.id)),!m.length&&(0,P.jsx)(`p`,{children:c?`连接恢复后显示待处理事项。`:`当前没有待复核或待确认的阶段。`})]}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`h2`,{children:`项目执行与确认记录`}),_.filter(({project:e,event:t})=>v(e.name+t.name)).slice(0,50).map(({project:e,event:n},i)=>(0,P.jsxs)(`button`,{onClick:()=>r(e.id,{tab:`wiki`}),children:[(0,P.jsxs)(`span`,{children:[(0,P.jsxs)(`b`,{children:[n.name,` · `,n.state]}),(0,P.jsxs)(`small`,{children:[e.name,` · `,new Date(n.at).toLocaleString(`zh-CN`)]})]}),(0,P.jsx)(t,{size:16})]},e.id+n.at+i)),!_.length&&(0,P.jsx)(`p`,{children:c?`连接恢复后显示执行记录。`:`当前没有执行记录。`})]})})]})}async function I(e){let[t,n]=await Promise.all([e(`/growth-center`),e(`/command-center`)]),r=t,i=n.projects;if(!Array.isArray(r?.products)||!Array.isArray(r?.catalog)||!Array.isArray(i))throw Error(`经营资料返回格式异常`);return{growth:r,projects:i}}var L={refunds:`同期支付订单的退款`,product:`货品成本`,fulfillment:`运费与履约`,platform:`平台费用`,ads:`广告花费`,tax:`税费`,other:`其他变动费用`,fixed:`固定费用分摊`};function R(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 z(e,t){let n=new Set(t);return[...(e||[]).filter(e=>n.delete(e)),...t.filter(e=>n.delete(e))]}function ee(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,M.createContext)(null);function V({scope:e,onDirty:t,children:n}){let r=e?`omni.dashboard-layout.v1:`+encodeURIComponent(e):null,[i]=(0,M.useState)(()=>{try{return r?R(localStorage.getItem(r)):{}}catch{return{}}}),[a,o]=h(`dashboard.layout.`+(e||`session`),i),[s,c]=(0,M.useState)(a),[l,u]=(0,M.useState)(!1),[d,f]=(0,M.useState)(``),[p,m]=(0,M.useState)(null),g=l&&JSON.stringify(s)!==JSON.stringify(a);(0,M.useEffect)(()=>(t?.(g),()=>t?.(!1)),[g,t]);let _=()=>{u(!1),m(null)};function v(){try{r&&localStorage.setItem(r,JSON.stringify({version:1,orders:s})),o(s),_(),f(r?`布局已保存到当前账号的此台设备。`:`布局已保存,本次会话内有效。`)}catch{f(`布局保存失败,请检查本机存储后重试;当前调整仍保留。`)}}let y={editing:l,orders:s,drag:p,setDrag:m,scope:e,message:d,begin:()=>{c(a),u(!0),f(`拖动卡片左上角,或用前移、后移按钮调整顺序。`)},save:v,cancel:()=>{c(a),_(),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]:ee(i[e],t,n,r)})),f(`顺序已调整,保存后记住布局。`)}};return(0,P.jsx)(B.Provider,{value:y,children:(0,P.jsx)(`div`,{className:l?`dashboard-editing`:``,onClickCapture:e=>{l&&!e.target.closest(`[data-layout-control]`)&&(e.preventDefault(),e.stopPropagation())},children:n})})}function te({enabled:e=!0,groups:t=[]}){let n=(0,M.useContext)(B);return!n||!e&&!n.editing?null:(0,P.jsxs)(`div`,{className:`dl-toolbar`,"data-layout-control":!0,children:[(0,P.jsx)(`div`,{className:`dl-toolbar-actions`,children:n.editing?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`span`,{children:`调整卡片顺序`}),(0,P.jsxs)(`button`,{onClick:()=>n.reset(t),children:[(0,P.jsx)(A,{size:13}),`恢复默认`]}),(0,P.jsxs)(`button`,{onClick:n.cancel,children:[(0,P.jsx)(x,{size:13}),`取消`]}),(0,P.jsxs)(`button`,{className:`dl-save`,onClick:n.save,children:[(0,P.jsx)(i,{size:14}),`保存布局`]})]}):(0,P.jsxs)(`button`,{onClick:n.begin,children:[(0,P.jsx)(c,{size:14}),`编辑页面`]})}),n.message&&(0,P.jsx)(`small`,{role:`status`,children:n.message})]})}function ne({group:n,className:r=``,children:i}){let a=(0,M.useContext)(B),o=M.Children.toArray(i).filter(M.isValidElement).map((e,t)=>({id:String(e.key??t).replace(/^\.\$/,``),el:e})),s=o.map(e=>e.id),c=z(a?.orders[n],s);return(0,P.jsx)(`div`,{className:r,children:c.map((r,i)=>{let l=o.find(e=>e.id===r).el,u=l.props[`data-layout-label`]||`卡片`;return(0,M.cloneElement)(l,{key:r,"data-layout-card":r,"data-layout-group":n,className:[l.props.className,`dl-card`,a?.editing?`dl-editable`:``,a?.drag?.group===n&&a.drag.id===r?`dl-dragging`:``].filter(Boolean).join(` `),onDragOver:e=>{a?.editing&&a.drag?.group===n&&(e.preventDefault(),e.dataTransfer.dropEffect=`move`)},onDrop:e=>{a?.editing&&a.drag?.group===n&&(e.preventDefault(),e.stopPropagation(),a.move(n,s,a.drag.id,r),a.setDrag(null))}},a?.editing?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`div`,{className:`dl-card-controls`,"data-layout-control":!0,children:[(0,P.jsxs)(`button`,{className:`dl-grip`,"aria-label":`拖动`+u,title:`拖动调整顺序`,onPointerDown:e=>{e.button===0&&(e.preventDefault(),e.stopPropagation(),e.currentTarget.setPointerCapture(e.pointerId),a.setDrag({group:n,id:r}))},onPointerUp:e=>{if(!e.currentTarget.hasPointerCapture(e.pointerId))return;e.currentTarget.releasePointerCapture(e.pointerId);let t=document.elementFromPoint(e.clientX,e.clientY)?.closest(`[data-layout-group]`);for(;t&&t.dataset.layoutGroup!==n;)t=t.parentElement?.closest(`[data-layout-group]`);let i=t?.dataset.layoutCard;i&&i!==r&&a.move(n,s,r,i),a.setDrag(null)},onPointerCancel:()=>a.setDrag(null),children:[(0,P.jsx)(O,{size:14}),(0,P.jsx)(`span`,{children:u})]}),(0,P.jsx)(`button`,{disabled:i===0,"aria-label":`前移`+u,title:`前移`,onClick:()=>a.move(n,s,r,c[i-1]),children:(0,P.jsx)(e,{size:13})}),(0,P.jsx)(`button`,{disabled:i===c.length-1,"aria-label":`后移`+u,title:`后移`,onClick:()=>a.move(n,s,r,c[i+1]),children:(0,P.jsx)(t,{size:13})})]}),l.props.children]}):l.props.children)})})}var H=e=>typeof e==`number`?e.toLocaleString(`zh-CN`,{maximumFractionDigits:2}):`—`;function re({metrics:e,products:t,projects:i,ready:a,onOpen:o,onNav:s,onAssign:c,demo:l}){let[u,d]=(0,M.useState)(``),[f,m]=(0,M.useState)(``),h=e?.sales||[],g=h.find(e=>e.id===f)||h[0],_=(e?.finance||[]).filter(e=>!g||e.start===g.start&&e.end===g.end),v=_.find(e=>e.scope?.type===`shop`&&(l||e.project===g?.project)),y=_.filter(e=>e.scope?.type===`item`&&(l||e.project===g?.project)),b=y.filter(e=>e.complete),S=b.filter(e=>e.profit>0),C=b.filter(e=>e.profit<0),w=b.filter(e=>e.profit===0),T=e?.incubation||[],O=T.filter(e=>e.success),A=i.reduce((e,t)=>e+t.running,0),j=[{id:`sales`,label:`店铺销售额`,value:g?H(g.total):`暂无记录`,unit:g?`元`:``,note:g?`${g.start} — ${g.end}`:`先归档全店销售数据`,Icon:r},{id:`profit`,label:`店铺利润`,value:v?.complete?H(v.profit):`缺成本资料`,unit:v?.complete?`元`:``,note:`已列成本口径经营结余 · 点击核对`,Icon:D},{id:`links`,label:`盈利 / 亏损链接`,value:b.length?`${S.length} / ${C.length}`:`尚未核算`,unit:b.length?`个`:``,note:`${b.length} 个有核算结果 · ${w.length} 个持平`,Icon:p},{id:`incubation`,label:`孵化晋级记录`,value:T.length?`${O.length} / ${T.length}`:`尚无记录`,unit:T.length?`个`:``,note:`已记录晋级 / 累计纳入 · 不代表成功率`,Icon:k},{id:`tasks`,label:`正在执行的任务`,value:a?A:`—`,unit:`个`,note:`${i.filter(e=>e.complete).length} 个项目流程已确认`,Icon:E}];function N(e){if(e===`tasks`){s(`projects`);return}d(u===e?``:e)}let F=e=>l?`data:application/json;charset=utf-8,`+encodeURIComponent(JSON.stringify(e,null,2)):`/api/workbench/`+e.project+`/file/`+(e.artifactId||e.id);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ne,{group:`cockpit.kpis`,className:`gc-kpis`,children:j.map(e=>(0,P.jsx)(`div`,{"data-layout-label":e.label,children:(0,P.jsxs)(`button`,{className:`gc-kpi gc-kpi-`+e.id+` `+(u===e.id?`is-open`:``),onClick:()=>N(e.id),"aria-expanded":u===e.id,children:[(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`span`,{className:`gc-kpi-icon`,children:(0,P.jsx)(e.Icon,{size:21})}),(0,P.jsx)(`span`,{children:e.label}),(0,P.jsx)(n,{size:13})]}),(0,P.jsxs)(`strong`,{className:String(e.value).length>9?`gc-long-value`:``,children:[e.value,(0,P.jsx)(`small`,{children:e.unit})]}),(0,P.jsx)(`p`,{children:e.note})]},e.id)},e.id))}),u&&(0,P.jsxs)(`section`,{className:`gb-detail`,"aria-label":`经营指标明细`,children:[(0,P.jsxs)(`header`,{children:[(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`small`,{children:l?`演示数据 · 不代表真实经营结果`:`归档数据 · 以原件日期和来源为准`}),(0,P.jsxs)(`h2`,{children:[j.find(e=>e.id===u)?.label,` · 明细与下一步`]})]}),(0,P.jsx)(`button`,{"aria-label":`关闭指标明细`,onClick:()=>d(``),children:(0,P.jsx)(x,{size:18})})]}),u===`sales`&&(0,P.jsxs)(P.Fragment,{children:[h.length>1&&(0,P.jsxs)(`label`,{children:[`选择统计记录`,(0,P.jsx)(`select`,{"aria-label":`销售统计记录`,value:g?.id||``,onChange:e=>m(e.target.value),children:h.map(e=>(0,P.jsxs)(`option`,{value:e.id,children:[e.projectName,` · `,e.start,` ~ `,e.end]},e.id))})]}),g?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`p`,{children:g.basis}),(0,P.jsxs)(`p`,{children:[`统计范围:`,g.scopeLabel,` · `,g.count,` 个链接 · `,g.identity,`。`,g.mode===`unverified`?`来源未完成独立核验。`:``]}),(0,P.jsx)(`div`,{className:`gb-table`,children:(0,P.jsxs)(`table`,{children:[(0,P.jsx)(`thead`,{children:(0,P.jsxs)(`tr`,{children:[(0,P.jsx)(`th`,{children:`商品 / 分类`}),(0,P.jsx)(`th`,{children:`支付销售额`}),(0,P.jsx)(`th`,{children:`链接数`}),(0,P.jsx)(`th`,{children:`下一步`})]})}),(0,P.jsx)(`tbody`,{children:g.breakdown.map(e=>(0,P.jsxs)(`tr`,{children:[(0,P.jsx)(`td`,{children:e.name}),(0,P.jsxs)(`td`,{children:[`¥ `,H(e.sales)]}),(0,P.jsx)(`td`,{children:e.count}),(0,P.jsx)(`td`,{children:(0,P.jsx)(`button`,{onClick:()=>e.itemId?o(e.project,{tab:`monitor`,itemId:e.itemId}):o(g.project,{tab:`data`}),children:e.itemId?`看商品表现`:`核对来源数据`})})]},e.name))})]})}),(0,P.jsx)(`p`,{className:`gb-next`,children:`下一步:先看销售贡献高的商品,再核对退款和成本,决定继续推广还是调整商品。`}),(0,P.jsx)(`a`,{href:F(g),download:l?`模拟销售账本.json`:void 0,children:`查看原始记录`})]}):(0,P.jsx)(`p`,{children:`当前没有全店销售记录。先到数据中心归档同一店铺、同一统计窗口的数据。`}),(0,P.jsx)(`button`,{onClick:()=>s(`data`),children:`进入数据中心`})]}),u===`profit`&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`p`,{children:`计算:支付销售额 − 同支付订单退款 − 货品、履约、平台、广告、税费、其他费用 − 固定费用分摊。结果是已列成本口径经营结余。`}),v?.complete?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`div`,{className:`gb-costs`,children:[Object.entries(v.amounts).map(([e,t])=>(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`span`,{children:e===`gross`?`支付销售额`:L[e]}),(0,P.jsxs)(`b`,{children:[`¥ `,H(t)]})]},e)),(0,P.jsxs)(`div`,{className:`gb-profit`,children:[(0,P.jsx)(`span`,{children:`经营结余`}),(0,P.jsxs)(`b`,{children:[`¥ `,H(v.profit)]})]})]}),(0,P.jsx)(`a`,{href:F(v),download:l?`模拟利润账本.json`:void 0,children:`查看核算原件`})]}):(0,P.jsxs)(`div`,{className:`gb-gap`,children:[(0,P.jsx)(`b`,{children:`没有完整的真实店铺成本账本,不能计算利润。`}),(0,P.jsx)(`p`,{children:`需要补齐:货品、运费、平台、广告、税费、其他费用、固定费用分摊,以及同支付订单退款。明确没有发生的费用填0,未知项留空。`})]}),(0,P.jsx)(`p`,{className:`gb-next`,children:`下一步:核对金额和凭证;若亏损,先查看费用占比与亏损商品,再进入商品优化评估原因。`}),(0,P.jsx)(`button`,{onClick:()=>o(v?.project||g?.project||i[0]?.id,{tab:`finance`}),disabled:!i.length,children:`打开经营核算`})]}),u===`links`&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`p`,{children:`按同周期、完整成本账本判断:结余大于0为盈利,小于0为亏损,等于0为持平;缺成本的商品不计入盈亏。当前仅统计有账本的范围。`}),(0,P.jsx)(`div`,{className:`gb-table`,children:(0,P.jsxs)(`table`,{children:[(0,P.jsx)(`thead`,{children:(0,P.jsxs)(`tr`,{children:[(0,P.jsx)(`th`,{children:`商品`}),(0,P.jsx)(`th`,{children:`销售额`}),(0,P.jsx)(`th`,{children:`经营结余`}),(0,P.jsx)(`th`,{children:`状态`}),(0,P.jsx)(`th`,{children:`下一步`})]})}),(0,P.jsx)(`tbody`,{children:y.map(e=>(0,P.jsxs)(`tr`,{children:[(0,P.jsxs)(`td`,{children:[e.projectName,(0,P.jsx)(`small`,{children:e.scope.id})]}),(0,P.jsxs)(`td`,{children:[`¥ `,H(e.gross)]}),(0,P.jsx)(`td`,{children:e.complete?`¥ `+H(e.profit):`费用不全`}),(0,P.jsx)(`td`,{children:(0,P.jsx)(`span`,{className:e.profit<0?`gb-loss`:`gb-win`,children:e.complete?e.profit>0?`盈利`:e.profit<0?`亏损`:`持平`:`待核算`})}),(0,P.jsx)(`td`,{children:(0,P.jsx)(`button`,{onClick:()=>o(e.project,{tab:e.complete?`optimization`:`finance`,itemId:e.scope.id}),children:e.complete?`查看并优化`:`补齐费用`})})]},e.id))})]})}),!y.length&&(0,P.jsx)(`p`,{children:`还没有商品级真实账本。当前看板商品不能仅凭销售额判定盈亏。`}),(0,P.jsx)(`button`,{disabled:!i.length,onClick:()=>o(g?.project||i[0]?.id,{tab:`finance`}),children:`补充商品成本账本`})]}),u===`incubation`&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`p`,{children:`这里只统计已保存的运营晋级记录与累计纳入数量,不计算经营成功率。未晋级可能仍在观察,不代表失败;每条记录需要核对标准、证据和观察时间,不能推断可复制收益。`}),(0,P.jsxs)(`div`,{className:`gb-inc-summary`,children:[(0,P.jsxs)(`b`,{children:[O.length,(0,P.jsx)(`small`,{children:`达标晋级`})]}),(0,P.jsx)(`span`,{children:`/`}),(0,P.jsxs)(`b`,{children:[T.length,(0,P.jsx)(`small`,{children:`纳入孵化`})]})]}),(0,P.jsx)(`div`,{className:`gb-table`,children:(0,P.jsxs)(`table`,{children:[(0,P.jsx)(`thead`,{children:(0,P.jsxs)(`tr`,{children:[(0,P.jsx)(`th`,{children:`商品`}),(0,P.jsx)(`th`,{children:`加入时间`}),(0,P.jsx)(`th`,{children:`结果`}),(0,P.jsx)(`th`,{children:`老师标准与依据`}),(0,P.jsx)(`th`,{children:`下一步`})]})}),(0,P.jsx)(`tbody`,{children:T.map(e=>(0,P.jsxs)(`tr`,{children:[(0,P.jsx)(`td`,{children:e.itemId}),(0,P.jsx)(`td`,{children:e.started.slice(0,10)}),(0,P.jsx)(`td`,{children:e.success?`达标晋级`:`继续观察`}),(0,P.jsxs)(`td`,{className:`gb-wrap`,children:[e.standard||`待记录老师标准`,(0,P.jsx)(`small`,{children:e.evidence||`尚无达标证据`})]}),(0,P.jsx)(`td`,{children:(0,P.jsx)(`button`,{onClick:()=>{let n=t.find(t=>t.itemId===e.itemId&&t.project===e.project);n?c(n):o(e.project,{tab:`data`})},children:e.success?`查看运营分组`:`核对并晋级`})})]},e.key))})]})}),!T.length&&(0,P.jsx)(`p`,{children:`还没有新品进入孵化的记录,暂不能评价。`}),(0,P.jsx)(`p`,{className:`gb-next`,children:`下一步:先把新品加入“新品测试”;达标后选择下一运营分组,填写老师标准与达标依据。单纯换组不计为已记录达标晋级。`}),(0,P.jsx)(`button`,{disabled:!t.length,onClick:()=>c(t.find(e=>e.tier===`unassigned`)||t[0],`test`),children:`登记新品,开始孵化`})]})]})]})}var ie=e=>Math.abs(e)>=1e4?(e/1e4).toFixed(1)+`万`:U(e),U=e=>typeof e==`number`?e.toLocaleString(`zh-CN`,{maximumFractionDigits:2}):`—`,W={scale:`#35dcca`,incubate:`#9880ff`,test:`#438bff`,unassigned:`var(--omni-muted,#91a9bd)`},G={scale:`重点推广`,incubate:`持续孵化`,test:`新品测试`,unassigned:`待分组`},K=[{id:`business`,label:`经营分析`,note:`查看商品经营趋势、销售构成和运营分组。`},{id:`projects`,label:`项目总览`,note:`全局看进度,卡片看状态,进入节点主流程继续推进。`},{id:`tasks`,label:`待办与任务`,note:`集中查看运营任务、巡店提醒和需要你处理的事项。`},{id:`history`,label:`复盘动态`,note:`回看项目阶段与历史记录,核对过程和依据。`}],q={done:`已确认`,review:`待确认`,attention:`需处理`,todo:`未开始`,stopped:`已停止`};function J({title:e,sub:t,children:n}){return(0,P.jsxs)(`div`,{className:`gc-panel-head`,children:[(0,P.jsxs)(`div`,{children:[(0,P.jsxs)(`h2`,{children:[(0,P.jsx)(`span`,{}),` `,e]}),(0,P.jsx)(`small`,{children:t})]}),n]})}function ae({series:e,days:t,onOpen:i}){let[a,o]=(0,M.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,P.jsxs)(`div`,{className:`gc-chart-empty`,children:[(0,P.jsx)(r,{size:38}),(0,P.jsx)(`b`,{children:`这段时间还没有可用数据`}),(0,P.jsx)(`span`,{children:`进入商品监控,查看数据来源与日期`}),(0,P.jsxs)(`button`,{onClick:i,children:[`查看商品监控 `,(0,P.jsx)(n,{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,P.jsx)(`line`,{x1:p(h),y1:m(h.value),x2:p(e),y2:m(e.value)},e.date)),h=e}),(0,P.jsxs)(`div`,{className:`gc-chart`,children:[(0,P.jsxs)(`div`,{className:`gc-chart-reading`,children:[(0,P.jsxs)(`strong`,{children:[U(a?.value??l.at(-1)?.value),(0,P.jsx)(`small`,{children:e.unit})]}),(0,P.jsxs)(`span`,{children:[a?.date||l.at(-1)?.date,` · `,e.name]}),(0,P.jsx)(`i`,{children:`柱与线均为同一指标`})]}),(0,P.jsxs)(`svg`,{viewBox:`0 0 780 255`,role:`img`,"aria-label":`${e.name},最近${t}天归档趋势,缺失不补零`,children:[(0,P.jsx)(`defs`,{children:(0,P.jsxs)(`linearGradient`,{id:`gc-bar`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,P.jsx)(`stop`,{stopColor:`#5ec9ff`}),(0,P.jsx)(`stop`,{offset:`1`,stopColor:`#2857d6`,stopOpacity:`.3`})]})}),[0,.25,.5,.75,1].map(e=>(0,P.jsxs)(`g`,{children:[(0,P.jsx)(`line`,{className:`gc-gridline`,x1:`54`,x2:`750`,y1:m(d+f*e),y2:m(d+f*e)}),(0,P.jsx)(`text`,{x:`42`,y:m(d+f*e)+4,textAnchor:`end`,children:ie(d+f*e)})]},e)),l.map(n=>n.value===null?null:(0,P.jsxs)(`g`,{onMouseEnter:()=>o(n),onMouseLeave:()=>o(null),children:[(0,P.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,P.jsx)(`circle`,{cx:p(n),cy:m(n.value),r:`3`,fill:`#6ceeff`}),(0,P.jsxs)(`title`,{children:[n.date,`:`,U(n.value),` `,e.unit]})]},n.date)),(0,P.jsx)(`g`,{className:`gc-line`,children:g}),[0,.25,.5,.75,1].map(e=>(0,P.jsx)(`text`,{x:54+690*e,y:`247`,textAnchor:`middle`,children:new Date(c+(t-1)*864e5*e).toISOString().slice(5,10)},e))]})]})}function Y(e){return(0,P.jsx)(V,{scope:e.layoutScope,onDirty:e.onDirty,children:(0,P.jsx)(X,{...e})})}function X({products:e,projects:t,catalog:r,ready:i,onAction:s,onAssign:c,onOpen:u,onNav:f,onTier:p,onCreate:m,onExecute:g,metrics:_,demo:v}){let[y,b]=h(`workbench.cockpit.tab`,`business`),x=K.find(e=>e.id===y)||K[0],S=(0,M.useRef)(null);function C(e){let t=K.findIndex(e=>e.id===x.id),n=e.key===`ArrowRight`?(t+1)%K.length:e.key===`ArrowLeft`?(t+K.length-1)%K.length:e.key===`Home`?0:e.key===`End`?K.length-1:-1;n<0||(e.preventDefault(),b(K[n].id),(S.current?.querySelectorAll(`[role=tab]`)[n])?.focus())}let[w,T]=h(`workbench.productKey`,``),[E,D]=h(`workbench.metric`,``),[O,k]=h(`workbench.days`,30),[A,N]=h(`workbench.timelineDays`,14),[F,I]=(0,M.useState)(null),L=e.find(e=>e.key===w)||e.find(e=>e.demoCurrent)||e[0],R=L?.series.find(e=>e.key===E)||L?.series.find(e=>[`paid`,`payAmt`,`sales`,`gmv`].includes(e.metric))||L?.series.find(e=>e.metric===`buyers`)||L?.series[0],z=t.reduce((e,t)=>e+t.running,0),ee=t.reduce((e,t)=>e+t.pending,0),B=e.filter(e=>l(e)),V=Object.keys(G).map(t=>({id:t,name:G[t],count:e.filter(e=>e.tier===t).length})),H=0,U=V.map(t=>{let n={...t,offset:H,length:e.length?t.count/e.length*314.16:0};return H+=n.length,n}),Y=t.filter(e=>e.replay?.some(e=>Number.isFinite(Date.parse(e.at)))).sort((e,t)=>String(t.updated).localeCompare(String(e.updated))),X=Math.max(0,...Y.flatMap(e=>e.replay.map(e=>Date.parse(e.at)).filter(Number.isFinite))),Z=X-(A-1)*864e5,le=[{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`}],Q=_?.sales?.[0],$=(Q?.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),de=Math.max(1,...$.map(e=>e.sales));return(0,P.jsxs)(`div`,{className:`gc`,children:[(0,P.jsx)(te,{enabled:[`business`,`projects`].includes(x.id),groups:[`cockpit.kpis`,...x.id===`projects`?[`projects.modules`,`projects.stats`,`projects.cards`]:[`cockpit.business`]]}),(0,P.jsx)(re,{metrics:_,products:e,projects:t,ready:i,onOpen:u,onNav:f,onAssign:c,demo:v}),(0,P.jsxs)(`div`,{className:`gc-tabs-heading`,children:[(0,P.jsx)(`div`,{role:`tablist`,"aria-label":`工作台分类`,className:`gc-tabs`,"data-layout-control":!0,ref:S,onKeyDown:C,children:K.map(e=>(0,P.jsx)(`button`,{role:`tab`,id:`gc-tab-`+e.id,"aria-controls":`gc-panel-`+e.id,"aria-selected":x.id===e.id,tabIndex:x.id===e.id?0:-1,onClick:()=>b(e.id),children:e.label},e.id))}),x.id===`projects`&&(0,P.jsxs)(`div`,{className:`pb-heading-actions`,children:[(0,P.jsxs)(`button`,{className:`pb-all-projects`,onClick:()=>f(`projects`),children:[`查看全部项目 `,(0,P.jsx)(n,{size:14})]}),(0,P.jsx)(`button`,{className:`pb-create`,onClick:m,children:`+ 新建项目`})]})]}),(0,P.jsx)(`p`,{className:`gc-tab-description`,children:x.note}),(0,P.jsxs)(`div`,{role:`tabpanel`,id:`gc-panel-`+x.id,"aria-labelledby":`gc-tab-`+x.id,tabIndex:0,className:`gc-tab-panel gc-tab-`+x.id,children:[x.id===`projects`&&(0,P.jsx)(o,{onExecute:g,projects:t,ready:i,onOpen:u,onCreate:m,showHeading:!1,previewLimit:8,onAllProjects:()=>f(`projects`)}),x.id===`tasks`&&(0,P.jsx)(`div`,{className:`gc-quick-tiers`,"aria-label":`运营策略任务速览`,children:[`test`,`incubate`,`scale`].map(t=>{let r=e.filter(e=>e.tier===t),i=r.filter(e=>e.work?.active?.length),o=r.filter(e=>l(e)),u=r.find(e=>e.demoCurrent)||i[0]||r[0];return(0,P.jsxs)(`section`,{style:{"--tier":W[t]},children:[(0,P.jsxs)(`header`,{children:[(0,P.jsx)(`b`,{children:G[t]}),(0,P.jsxs)(`span`,{children:[r.length,`个商品 · `,i.length,`个运行中`]}),(0,P.jsx)(`button`,{onClick:()=>p(t),"aria-label":`查看`+G[t]+`全部商品`,children:(0,P.jsx)(a,{size:14})})]}),(0,P.jsxs)(`button`,{className:`gc-quick-line`,disabled:!u,onClick:()=>s(u,`work`),children:[(0,P.jsx)(`em`,{children:`正在做`}),(0,P.jsxs)(`span`,{children:[u?u.demoCurrent||d(u):`等待商品加入`,u&&(0,P.jsx)(`small`,{children:u.projectName})]})]}),(0,P.jsxs)(`button`,{className:`gc-quick-line`,onClick:()=>u?s(u,`data`):c(null,t),children:[(0,P.jsx)(`em`,{children:`下一步`}),(0,P.jsx)(`span`,{children:u?.demoNext||(t===`test`?`核对点击和加购,选出潜力款`:t===`incubate`?`核对转化与成本,确认是否赚钱`:`检查推广效果,优化计划`)}),(0,P.jsx)(a,{size:12})]}),(0,P.jsxs)(`button`,{className:`gc-quick-alert `+(o.length?`has-issues`:``),onClick:()=>o.length?s(o[0],`work`):p(t),children:[o.length?`需要你处理 `+o.length+` 项 · `+l(o[0]):`暂无待处理提醒`,(0,P.jsx)(n,{size:12})]})]},t)})}),(0,P.jsxs)(ne,{group:`cockpit.`+x.id,className:`gc-main-grid`,children:[x.id===`business`&&(0,P.jsxs)(`section`,{"data-layout-label":`商品经营趋势`,className:`gc-panel gc-sales`,children:[(0,P.jsx)(J,{title:`商品经营趋势`,sub:`按商品查看归档数据,保留真实波动`,children:(0,P.jsx)(`div`,{className:`gc-toggle`,children:[7,30].map(e=>(0,P.jsxs)(`button`,{"aria-pressed":O===e,onClick:()=>k(e),children:[e,`天`]},e))})}),(0,P.jsxs)(`div`,{className:`gc-selects`,children:[(0,P.jsx)(`select`,{"aria-label":`驾驶舱商品`,value:L?.key||``,onChange:e=>{T(e.target.value),D(``)},children:e.map(e=>(0,P.jsxs)(`option`,{value:e.key,children:[e.title||e.projectName,` · `,e.shopName||e.itemId]},e.key))}),(0,P.jsx)(`select`,{"aria-label":`驾驶舱趋势指标`,value:R?.key||``,onChange:e=>D(e.target.value),children:L?.series.map(e=>(0,P.jsx)(`option`,{value:e.key,children:e.name},e.key))}),(0,P.jsxs)(`button`,{disabled:!L,onClick:()=>s(L,`data`),children:[`明细 `,(0,P.jsx)(a,{size:12})]})]}),(0,P.jsx)(ae,{series:R,days:O,onOpen:()=>L?s(L,`monitor`):f(`projects`)},L?.key+`|`+R?.key+`|`+O),(0,P.jsx)(`p`,{className:`gc-footnote`,children:`单商品数据,不等于全店销售额 · 缺失日期不连线 · 来源见归档详情`})]},`sales`),x.id===`business`&&(0,P.jsxs)(`section`,{"data-layout-label":`商品运营分组`,className:`gc-panel gc-structure`,children:[(0,P.jsx)(J,{title:`商品运营分组`,sub:`点击分类,查看商品和下一步`}),(0,P.jsxs)(`div`,{className:`gc-ring`,children:[(0,P.jsxs)(`svg`,{viewBox:`0 0 160 160`,role:`img`,"aria-label":V.map(e=>e.name+e.count+`个`).join(`,`),children:[(0,P.jsx)(`circle`,{cx:`80`,cy:`80`,r:`62`,fill:`none`,stroke:`#1e355b`,strokeWidth:`1`,strokeDasharray:`2 4`}),(0,P.jsx)(`circle`,{cx:`80`,cy:`80`,r:`50`,fill:`none`,stroke:`#152849`,strokeWidth:`18`}),U.filter(e=>e.count>0).map(e=>(0,P.jsx)(`circle`,{cx:`80`,cy:`80`,r:`50`,fill:`none`,stroke:W[e.id],strokeWidth:`18`,strokeDasharray:`${e.length} ${314.16-e.length}`,strokeDashoffset:-e.offset,transform:`rotate(-90 80 80)`},e.id)),(0,P.jsx)(`text`,{x:`80`,y:`80`,textAnchor:`middle`,className:`gc-ring-number`,children:i?e.length:`—`}),(0,P.jsx)(`text`,{x:`80`,y:`98`,textAnchor:`middle`,children:`商品观察对象`})]}),(0,P.jsx)(`div`,{className:`gc-ring-legend`,children:V.map(t=>(0,P.jsxs)(`button`,{onClick:()=>p(t.id),children:[(0,P.jsx)(`i`,{style:{background:W[t.id]}}),(0,P.jsx)(`span`,{children:t.name}),(0,P.jsx)(`b`,{children:t.count}),(0,P.jsxs)(`small`,{children:[e.length?Math.round(t.count/e.length*100):0,`%`]}),(0,P.jsx)(a,{size:12})]},t.id))})]}),(0,P.jsx)(`p`,{className:`gc-footnote`,children:`同一商品在不同项目中分别记录;人工策略分组以保存记录为准,不代表全店经营梯队。`})]},`structure`),x.id===`business`&&(0,P.jsxs)(`section`,{"data-layout-label":`销售构成`,className:`gc-panel gc-ranking`,children:[(0,P.jsx)(J,{title:ue?`商品销售排行`:`销售构成`,sub:Q?Q.start+` — `+Q.end+` · 同一份销售账本`:`按同一统计期的销售账本排名`}),(0,P.jsx)(`div`,{className:`gc-rank-list`,children:$.map((e,t)=>(0,P.jsxs)(`button`,{onClick:()=>u(e.project||Q.project,{tab:e.itemId?`monitor`:`data`,itemId:e.itemId}),children:[(0,P.jsx)(`i`,{children:t+1}),(0,P.jsxs)(`span`,{title:e.name||e.itemId,children:[e.name||e.itemId,(0,P.jsx)(`small`,{children:e.itemId||e.count+`个商品`})]}),(0,P.jsx)(`div`,{children:(0,P.jsx)(`b`,{style:{width:Math.max(2,e.sales/de*100)+`%`}})}),(0,P.jsxs)(`strong`,{children:[`¥`,ie(e.sales)]})]},e.project+`|`+(e.itemId||e.name)))}),!$.length&&(0,P.jsxs)(`p`,{className:`gc-no-data`,children:[`还没有同期商品销售明细。`,(0,P.jsx)(`button`,{onClick:()=>f(`data`),children:`查看已有资料`})]}),(0,P.jsx)(`p`,{className:`gc-footnote`,children:ue?`点击商品核对明细 · 销售排名不代表盈利排名`:`原件按品类汇总,点击查看归档;不是单品排名`})]},`ranking`),x.id===`tasks`&&(0,P.jsxs)(`section`,{"data-layout-label":`巡店检查`,className:`gc-panel gc-inspect`,children:[(0,P.jsx)(J,{title:`巡店检查`,sub:`基于归档与任务状态 · 点击查看待办`,children:(0,P.jsx)(j,{size:17})}),(0,P.jsx)(`div`,{className:`gc-checks`,children:le.map(t=>(0,P.jsxs)(`button`,{disabled:!t.items.length,onClick:()=>t.label===`待选择运营分组`?c(t.items[0]):s(t.items[0],`work`),children:[(0,P.jsx)(`span`,{children:t.label}),(0,P.jsx)(`div`,{children:(0,P.jsx)(`i`,{style:{width:`${e.length?t.items.length/e.length*100:0}%`,background:t.color}})}),(0,P.jsx)(`b`,{children:i?t.items.length:`—`}),(0,P.jsx)(a,{size:12})]},t.label))}),(0,P.jsx)(`p`,{className:`gc-footnote`,children:`同一商品可有多项提醒,数量不可相加;点击先处理一项。`}),(0,P.jsxs)(`div`,{className:`gc-archive`,children:[(0,P.jsx)(oe,{count:r.length}),(0,P.jsxs)(`button`,{onClick:()=>f(`data`),children:[`查看来源 `,(0,P.jsx)(n,{size:12})]})]})]},`inspect`),x.id===`history`&&(0,P.jsxs)(`section`,{"data-layout-label":`项目阶段记录`,className:`gc-panel gc-matrix`,children:[(0,P.jsx)(J,{title:`项目阶段记录`,sub:`节点流程与历史六步记录分别保留,点击核对对应阶段`,children:(0,P.jsxs)(`button`,{onClick:()=>f(`projects`),children:[`全部项目 `,(0,P.jsx)(n,{size:12})]})}),(0,P.jsx)(`div`,{className:`gc-state-legend`,children:Object.entries(q).map(([e,t])=>(0,P.jsxs)(`span`,{children:[(0,P.jsx)(`i`,{className:e}),t]},e))}),(0,P.jsxs)(`div`,{className:`gc-matrix-scroll`,children:[t.slice(0,8).map(e=>(0,P.jsxs)(`div`,{className:`gc-matrix-row`,children:[(0,P.jsxs)(`button`,{className:`gc-project-name`,title:e.name,onClick:()=>u(e.id,{tab:`overview`}),children:[e.name,(0,P.jsxs)(`small`,{children:[e.done,`/`,e.total,` 阶段已确认`]})]}),(0,P.jsx)(`div`,{children:e.route.map((t,n)=>(0,P.jsx)(`button`,{className:`gc-cell `+t.state,"aria-label":`${e.name}:${t.name},${q[t.state]}`,title:`${t.name} · ${q[t.state]}`,onClick:()=>u(e.id,t.target),children:String(n+1).padStart(2,`0`)},t.id))})]},e.id)),!t.length&&(0,P.jsx)(`p`,{className:`gc-no-data`,children:`当前范围还没有项目。`})]})]},`matrix`),x.id===`history`&&(0,P.jsxs)(`section`,{"data-layout-label":`项目历史时间轴`,className:`gc-panel gc-history`,children:[(0,P.jsx)(J,{title:`项目历史时间轴`,sub:v?`模拟历史记录;每天的记录合并为一个色块`:`按真实归档时间显示;每天的记录合并为一个色块`,children:(0,P.jsx)(`div`,{className:`gc-toggle`,children:[14,30].map(e=>(0,P.jsxs)(`button`,{"aria-pressed":A===e,onClick:()=>N(e),children:[e,`天`]},e))})}),X>0?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`div`,{className:`gc-time-header`,children:[(0,P.jsx)(`span`,{children:`项目 / 点击查看记录`}),(0,P.jsx)(`div`,{children:[0,.25,.5,.75,1].map(e=>(0,P.jsx)(`span`,{children:new Date(Z+(X-Z)*e).toISOString().slice(5,10)},e))})]}),(0,P.jsx)(`div`,{className:`gc-time-scroll`,children:Y.filter(e=>e.replay.some(e=>Date.parse(e.at)>=Z)).slice(0,7).map(e=>(0,P.jsxs)(`div`,{className:`gc-time-row`,children:[(0,P.jsx)(`button`,{title:e.name,onClick:()=>I({project:e,events:e.replay}),children:e.name}),(0,P.jsx)(`div`,{children:se(e.replay.filter(e=>Date.parse(e.at)>=Z)).map(t=>(0,P.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)-Z)/(X-Z)*100}%`},title:`${t.date} · ${t.events.length} 条记录`,"aria-label":`${e.name}:${t.date},${t.events.length}条记录`,onClick:()=>I({project:e,events:t.events,date:t.date}),children:t.events.length},t.date))})]},e.id))}),(0,P.jsxs)(`p`,{className:`gc-footnote`,children:[`最近有记录的日期窗口 · 每个项目最多展示最近120条记录 · 点击色块展开当天记录,不代表运行时长;`,v?`演示操作会追加记录。`:`完整回放在项目执行页。`]})]}):(0,P.jsx)(`p`,{className:`gc-no-data`,children:`暂无可回放的历史记录。`})]},`history`),x.id===`tasks`&&(0,P.jsxs)(`section`,{"data-layout-label":`需要你处理`,className:`gc-panel gc-todo`,children:[(0,P.jsx)(J,{title:`需要你处理`,sub:`先做这一件,再继续下一步`,children:(0,P.jsxs)(`span`,{className:`gc-badge`,children:[B.length,` 项`]})}),(0,P.jsxs)(`div`,{className:`gc-todo-list`,children:[B.map((e,t)=>(0,P.jsxs)(`button`,{onClick:()=>e.tier===`unassigned`?c(e):s(e,`work`),children:[(0,P.jsx)(`span`,{className:`gc-todo-num`,children:String(t+1).padStart(2,`0`)}),(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`b`,{children:l(e)}),(0,P.jsxs)(`span`,{children:[e.title||e.projectName,` · `,e.shopName||e.itemId]}),(0,P.jsx)(`small`,{children:d(e)})]}),(0,P.jsx)(a,{size:15})]},e.key)),!B.length&&(0,P.jsx)(`p`,{className:`gc-no-data`,children:i?`当前没有商品待办。`:`正在读取…`}),(0,P.jsx)(`h3`,{className:`gc-next-label`,children:`接下来可以做`}),t.slice(0,5).map(e=>(0,P.jsxs)(`button`,{onClick:()=>u(e.id,{tab:`overview`}),children:[(0,P.jsx)(`span`,{className:`gc-next-dot`}),(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`b`,{children:e.name}),(0,P.jsx)(`span`,{children:`查看项目节点与下一步`})]}),(0,P.jsx)(a,{size:13})]},`next-`+e.id))]})]},`todo`)]})]}),F&&(0,P.jsx)(ce,{...F,onClose:()=>I(null),onOpen:u}),(0,P.jsxs)(`div`,{className:`gc-status-strip`,children:[(0,P.jsxs)(`span`,{children:[(0,P.jsx)(`i`,{}),` `,v?`教学模拟`:`归档数据`,` · `,e.length,` 个商品`]}),(0,P.jsxs)(`span`,{children:[t.length,` 个项目 · `,t.filter(e=>e.started).length,` 个已开展 · `,t.filter(e=>e.complete).length,` 个流程已确认`]}),(0,P.jsxs)(`span`,{children:[z,` 项运行中 · `,ee,` 项待执行`]}),(0,P.jsxs)(`button`,{onClick:()=>f(`products`),children:[`展开运营工作清单 `,(0,P.jsx)(n,{size:13})]})]})]})}function oe({count:e}){return(0,P.jsxs)(`span`,{children:[(0,P.jsx)(`b`,{children:e}),` 份归档资料可追溯`]})}function se(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 ce({project:e,events:t,date:n,onClose:r,onOpen:i}){let a=(0,M.useRef)(null);return(0,M.useEffect)(()=>{a.current?.showModal()},[]),(0,P.jsxs)(`dialog`,{className:`ta-dialog gc-history-dialog`,ref:a,onClose:r,"aria-labelledby":`gc-history-title`,children:[(0,P.jsxs)(`div`,{className:`ta-dialog-head`,children:[(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`small`,{children:e.name}),(0,P.jsxs)(`h2`,{id:`gc-history-title`,children:[n||`项目历史`,` · `,t.length,` 条记录`]})]}),(0,P.jsx)(`button`,{"aria-label":`关闭历史记录`,onClick:r,children:`×`})]}),(0,P.jsx)(`p`,{children:`按发生时间排列。展开记录,查看当时做了什么。`}),(0,P.jsx)(`div`,{className:`gc-records`,children:t.map((t,n)=>(0,P.jsxs)(`details`,{children:[(0,P.jsxs)(`summary`,{children:[(0,P.jsx)(`span`,{children:new Date(t.at).toLocaleString(`zh-CN`,{timeZone:`Asia/Shanghai`})}),(0,P.jsx)(`b`,{children:t.name}),(0,P.jsx)(`em`,{children:t.state})]}),(0,P.jsx)(`p`,{children:t.detail||`此记录没有保存详细说明,可进入对应阶段核对原始资料。`}),(0,P.jsx)(`button`,{onClick:()=>{r(),i(e.id,e.route.find(e=>e.id===t.routeId)?.target||{tab:`data`})},children:`进入对应阶段 / 资料`})]},n))})]})}function Z(){let e=S(),[t,n]=(0,M.useState)(null),[r,i]=(0,M.useState)(!0),[a,o]=(0,M.useState)(``),[c,l]=(0,M.useState)(``),[d,p]=(0,M.useState)(0),[g,_]=h(`workbench.scope`,`real`),[v,y]=(0,M.useState)(null),[b,x]=(0,M.useState)(null);(0,M.useEffect)(()=>{let t=!0;return I(e.api).then(e=>{t&&(n(e),o(``))}).catch(e=>{t&&(n(null),o(e instanceof Error?e.message:`经营资料读取失败`))}).finally(()=>{t&&i(!1)}),()=>{t=!1}},[e.api,d]);let C=e=>g===`stored-demo`?e.mode===`simulated`:e.mode!==`simulated`,w=t?.growth.products.filter(C)||[],E=t?.growth.catalog.filter(C)||[],D=t?.projects.filter(e=>g===`stored-demo`?e.simulated:!e.simulated)||[],O={sales:t?.growth.metrics?.sales?.filter(C)||[],finance:t?.growth.metrics?.finance?.filter(C)||[],incubation:t?.growth.metrics?.incubation?.filter(C)||[]},k=(0,M.useCallback)(()=>{i(!0),p(e=>e+1)},[]);s(D.some(e=>e.execution?.state===`running`),k);function A(t,n){n===`work`?x(t):n===`data`?e.onProductGroup(`all`,t,g):e.onOpen(t.project,{tab:n,itemId:t.itemId})}return(0,P.jsx)(`div`,{className:`workbench-module`,children:(0,P.jsx)(`div`,{className:`gw`,children:(0,P.jsxs)(`div`,{className:`gw-body`,children:[(0,P.jsxs)(`header`,{className:`gw-header`,children:[(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`small`,{children:`工作台 / 经营总览`}),(0,P.jsx)(`h1`,{children:`电商运营作战台`})]}),(0,P.jsxs)(`div`,{className:`gw-header-actions`,children:[(0,P.jsxs)(`span`,{children:[(0,P.jsx)(`i`,{className:`gw-dot`}),g===`stored-demo`?`模拟归档 · 非真实经营`:`归档数据 · 非实时`]}),(0,P.jsxs)(`button`,{disabled:r,onClick:k,children:[(0,P.jsx)(m,{size:14}),r?`读取中`:`刷新数据`]})]})]}),(0,P.jsxs)(`div`,{className:`gw-scope`,children:[(0,P.jsx)(`div`,{children:[[`real`,`非模拟资料`],[`stored-demo`,`模拟资料`]].map(([e,t])=>(0,P.jsx)(`button`,{"aria-pressed":g===e,onClick:()=>{_(e),y(null),x(null),l(``)},children:t},e))}),(0,P.jsx)(`span`,{children:t?`${new Date(t.growth.updatedAt).toLocaleString(`zh-CN`)} 读取归档`:`正在读取归档…`})]}),a&&(0,P.jsxs)(`p`,{role:`alert`,className:`gw-message`,children:[a,` `,(0,P.jsx)(`button`,{onClick:k,children:`重试`})]}),c&&(0,P.jsx)(`p`,{role:`status`,className:`gw-message`,children:c}),(0,P.jsx)(Y,{layoutScope:e.layoutScope,onDirty:e.onDirty,onCreate:e.onCreate,products:w,projects:D,catalog:E,metrics:O,ready:!r&&!!t,demo:!1,onOpen:e.onOpen,onNav:e.onModule,onTier:t=>e.onProductGroup(t,void 0,g),onAction:A,onAssign:(e,t)=>y({product:e,suggestedTier:t})}),v&&(0,P.jsx)(u,{...v,products:w,onDirty:e.onDirty,onBusy:e.onBusy,onClose:()=>y(null),onSave:async(t,n,r,i)=>{await T(e.api,t,n,r,i),l(`分组已保存,正在更新看板。`),k()}}),b&&(0,P.jsx)(f,{product:b,onOpen:e.onOpen,onClose:()=>x(null)})]})})})}function le({section:e}){let t=S();return e===`tasks`||e===`records`?(0,P.jsx)(F,{mode:e,api:t.api,onOpen:t.onOpen},e):(0,P.jsx)(Z,{})}export{le as default};
@@ -0,0 +1 @@
1
+ import{t as e}from"./CollaborationWorkspace-DAWo2Vol.js";import{o as t}from"./index-BBySSIJT.js";var n=t();function r({selectedId:t,project:r}){let i=t||r?.projectId;return(0,n.jsx)(e,{initialProjectId:i},i||`directory`)}export{r as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./project-public-DqjxO6ad.js","./index-BBySSIJT.js","./index-7NKGenq7.css","./CartesianChart-acGhtLrw.js","./LineChart-CyiCaQMM.js","./EvidenceSourceGuide-qBsaH1fx.js","./HelpTip-X4GpEnvk.js","./HelpTip-BsHPhMNf.css"])))=>i.map(i=>d[i]);
2
+ import{n as e}from"./clock-3-DpvJxor3.js";import{t}from"./chevron-right-2HEa4oQb.js";import{i as n,n as r,r as i,t as a}from"./products-CfPFkCnk.js";import{t as o}from"./layers-BY0DtVnH.js";import{t as s}from"./refresh-cw-BZ6-gKfF.js";import{n as c,r as l}from"./workspace-view-state-CYNxOsyc.js";import{_ as u,a as d,d as f,m as p,o as m,s as h,t as g}from"./index-BBySSIJT.js";import{n as _}from"./module-host-BHOsDk69.js";import"./public-DoBzMSlG.js";import{t as v}from"./group--adLvfC6.js";var y=f(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),b=u(p(),1);async function x(e){let t=await e(`/growth-center`);if(!t||!Array.isArray(t.products)||typeof t.updatedAt!=`string`||t.products.some(e=>!e||typeof e.key!=`string`||typeof e.itemId!=`string`||typeof e.project!=`string`||!Array.isArray(e.series)||e.series.some(e=>!e||!Array.isArray(e.points))))throw Error(`商品资料返回格式异常`);return t}function S(e){let[t,n]=(0,b.useState)(null),[r,i]=(0,b.useState)(``),[a,o]=(0,b.useState)(!0),s=(0,b.useRef)(0),c=(0,b.useRef)(!1),l=(0,b.useCallback)(()=>{let t=++s.current;return x(e).then(e=>c.current&&s.current===t?(n(e),i(``),!0):!1).catch(e=>(c.current&&s.current===t&&(n(null),i(e instanceof Error?e.message:`商品资料读取失败`)),!1)).finally(()=>{c.current&&s.current===t&&o(!1)})},[e]),u=(0,b.useCallback)(()=>(o(!0),i(``),l()),[l]);return(0,b.useEffect)(()=>(c.current=!0,l(),()=>{c.current=!1}),[l]),{data:t,error:r,loading:a,refresh:u}}var C=[{id:`test`,n:`03`,name:`新品测试`,caption:`运营策略 · 测试`,color:`#74c6ff`,goal:`少量投入,找到有人喜欢的商品`,cadence:`推广每天看 · 商品每5天看`,rule:`同品类、同属性、同材质一起测。对照店里第二梯队头部商品:低的继续跑,中的进入孵化候选,高的进一步评估。`,action:`查看点击、加购表现,筛选候选商品。`},{id:`incubate`,n:`02`,name:`持续孵化`,caption:`运营策略 · 培养`,color:`var(--omni-chart-secondary,#b99aff)`,goal:`培养潜力款,让成熟商品赚钱`,cadence:`新品每5天看 · 老品每7天看`,rule:`新商品看加购率与转化率;成熟商品看付费占比。低的放大,高的调整计划或暂停,同时优化主图、视频等。`,action:`区分赚钱款与潜力款,安排下一轮优化。`},{id:`scale`,n:`01`,name:`重点推广`,caption:`运营策略 · 放大`,color:`var(--omni-chart-teal,#44cdb5)`,goal:`集中资源,持续增加付款人数`,cadence:`推广每30–60分钟看 · 商品每天看`,rule:`拉新看点击成本、加购成本;收割看点击成本、成交成本。调整差计划,把预算分配给同类好计划;没有合适计划就新建测试。`,action:`查看广告计划,按老师给企业制定的标准处理。`}],w={unassigned:`待分组`,test:`新品测试`,incubate:`持续孵化`,scale:`重点推广`},T={simulated:`模拟数据`,"declared-real":`来源标注真实`,unverified:`来源待核实`},E=e=>typeof e==`number`?e.toLocaleString(`zh-CN`,{maximumFractionDigits:2}):`—`;function D(e,t){return e.filter(e=>t===`stored-demo`?e.mode===`simulated`:e.mode!==`simulated`)}function O(e,t,n){let r=n.trim().toLowerCase();return e.filter(e=>(t===`all`||e.tier===t)&&`${e.itemId} ${e.projectName} ${e.title||``} ${e.shopName||``}`.toLowerCase().includes(r))}function k(e,t){return e.find(e=>e.key===t)||e[0]}var A=m();function j({series:e}){if(!e?.points.length)return(0,A.jsx)(`div`,{className:`gw-chart-empty`,children:`选择商品后,查看已有数据趋势。`});let t=e.points.slice(-30),n=t.flatMap(e=>e.value===null?[]:[e.value]),r=n.length?Math.min(...n):0,i=n.length?Math.max(...n):1,a=(e,n)=>[32+n*636/Math.max(1,t.length-1),150-((e.value??r)-r)/(i-r||1)*115],o=null,s=[];return t.forEach((t,n)=>{if(t.value===null){o=null;return}let[r,i]=a(t,n);o&&Date.parse(t.date)-Date.parse(o.date)===864e5&&s.push((0,A.jsx)(`line`,{x1:o.x,y1:o.y,x2:r,y2:i},`l`+n)),s.push((0,A.jsx)(`circle`,{cx:r,cy:i,r:`3`,children:(0,A.jsxs)(`title`,{children:[t.date,`:`,E(t.value),` `,e.unit]})},`p`+n)),o={x:r,y:i,date:t.date}}),(0,A.jsxs)(`div`,{className:`gw-chart`,children:[(0,A.jsxs)(`svg`,{viewBox:`0 0 700 185`,role:`img`,"aria-label":`${e.name}最近${t.length}个归档日期的趋势,缺失日期不连线`,children:[(0,A.jsx)(`defs`,{children:(0,A.jsxs)(`linearGradient`,{id:`product-chart-bg`,x1:`0`,x2:`0`,y1:`0`,y2:`1`,children:[(0,A.jsx)(`stop`,{stopColor:`#4cd5af`,stopOpacity:`.1`}),(0,A.jsx)(`stop`,{offset:`1`,stopColor:`#4cd5af`,stopOpacity:`0`})]})}),(0,A.jsx)(`rect`,{x:`30`,y:`20`,width:`640`,height:`145`,fill:`url(#product-chart-bg)`}),[35,92,150].map(e=>(0,A.jsx)(`line`,{x1:`30`,x2:`670`,y1:e,y2:e,className:`grid`},e)),(0,A.jsx)(`g`,{className:`plot`,children:s}),(0,A.jsx)(`text`,{x:`32`,y:`178`,children:t[0]?.date}),(0,A.jsx)(`text`,{x:`668`,y:`178`,textAnchor:`end`,children:t.at(-1)?.date}),(0,A.jsxs)(`text`,{x:`32`,y:`16`,children:[E(i),` `,e.unit]})]}),(0,A.jsx)(`span`,{children:`最近最多30个归档日期 · 缺失不补零 · 不同日期不汇总`})]})}function M({product:t,metricKey:n,onMetric:r,onGroup:i,onTask:o,onOpen:s}){if(!t)return(0,A.jsx)(`div`,{className:`gw-empty`,children:`选择商品查看趋势与后续操作。`});let c=t.series.find(e=>e.key===n)||t.series.find(e=>e.metric===`buyers`)||t.series[0],l=C.find(e=>e.id===t.tier);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`div`,{className:`gw-selected-product`,children:[(0,A.jsxs)(`div`,{children:[(0,A.jsx)(a,{product:t}),(0,A.jsx)(`span`,{className:`gw-tag `+t.tier,children:w[t.tier]})]}),(0,A.jsxs)(`button`,{onClick:()=>i(t),children:[(0,A.jsx)(y,{size:14}),`分组`]})]}),(0,A.jsxs)(`div`,{className:`gw-metric-selector`,children:[(0,A.jsx)(`select`,{"aria-label":`商品趋势指标`,value:c?.key||``,onChange:e=>r(e.target.value),children:t.series.map(e=>(0,A.jsxs)(`option`,{value:e.key,children:[e.name,` · `,e.unit||`原始单位`]},e.key))}),(0,A.jsxs)(`strong`,{children:[E(c?.points.at(-1)?.value),(0,A.jsx)(`small`,{children:c?.unit})]}),(0,A.jsxs)(`span`,{children:[`最后统计日:`,c?.points.at(-1)?.date||`—`]})]}),(0,A.jsx)(j,{series:c}),(0,A.jsxs)(`details`,{className:`gw-points`,children:[(0,A.jsx)(`summary`,{children:`查看每日原值与来源`}),(0,A.jsx)(`div`,{className:`gw-table-scroll`,children:(0,A.jsxs)(`table`,{children:[(0,A.jsx)(`thead`,{children:(0,A.jsxs)(`tr`,{children:[(0,A.jsx)(`th`,{children:`日期`}),(0,A.jsx)(`th`,{children:`原值`}),(0,A.jsx)(`th`,{children:`来源`})]})}),(0,A.jsx)(`tbody`,{children:c?.points.slice(-30).map(e=>(0,A.jsxs)(`tr`,{children:[(0,A.jsx)(`td`,{children:e.date}),(0,A.jsx)(`td`,{children:E(e.value)}),(0,A.jsx)(`td`,{children:(0,A.jsx)(`a`,{href:`/api/workbench/`+t.project+`/file/`+e.fileId,children:`原始归档`})})]},e.date))})]})})]}),(0,A.jsxs)(`div`,{className:`gw-next`,children:[(0,A.jsx)(`span`,{children:`NEXT / 下一步`}),(0,A.jsx)(`h3`,{children:l?.action||`先选择这个商品的运营策略`}),(0,A.jsxs)(`p`,{children:[l?.cadence||`分组后查看对应检查频率和处理办法。`,t.note&&` · `+t.note]}),(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`button`,{onClick:()=>o(t),children:`查看当前任务`}),(0,A.jsxs)(`button`,{className:`gw-primary`,onClick:()=>s(t.project,{tab:`monitor`,itemId:t.itemId}),children:[`查看监控与取数 `,(0,A.jsx)(e,{size:13})]}),(0,A.jsx)(`button`,{onClick:()=>s(t.project,{tab:`optimization`,itemId:t.itemId}),children:`商品优化`})]})]}),(0,A.jsx)(`p`,{className:`gw-detail-note`,children:`展示本项目归档的商品指标。点击率、加购率、计划成本等尚未汇入此表;请到来源数据中核对。`})]})}function N({section:e,onSection:u}){let d=_(),{data:f,error:p,loading:m,refresh:h}=S(d.api),[g,y]=c(`products.scope`,`real`),[x,E]=c(`products.query`,``),[j,N]=c(`products.key`,``),[P,F]=c(`products.metric`,``),[I,L]=(0,b.useState)(``),[R,z]=(0,b.useState)(null),[B,V]=(0,b.useState)(null),H=(0,b.useRef)(null),U=e===`all`||w[e]?e:`all`,W=D(f?.products||[],g),G=O(W,U,x),K=k(G,j);function q(e){N(e.key),F(``),L(``)}function J(e,t){if(t===`work`){V(e);return}t===`data`?(u(`all`),E(``),q(e),requestAnimationFrame(()=>{H.current?.scrollIntoView({behavior:`smooth`,block:`start`}),H.current?.focus({preventScroll:!0})})):d.onOpen(e.project,{tab:t,itemId:e.itemId})}return(0,A.jsx)(`div`,{className:`products-module`,children:(0,A.jsx)(`div`,{className:`gw`,children:(0,A.jsxs)(`div`,{className:`gw-body`,children:[(0,A.jsxs)(`header`,{className:`gw-header`,children:[(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`small`,{children:`商品 / 商品看板`}),(0,A.jsx)(`h1`,{children:`从测试到重点推广`})]}),(0,A.jsxs)(`div`,{className:`gw-header-actions`,children:[(0,A.jsxs)(`span`,{children:[(0,A.jsx)(`i`,{className:`gw-dot`}),g===`stored-demo`?`模拟归档 · 非真实经营`:`归档数据 · 非实时`]}),(0,A.jsxs)(`button`,{onClick:()=>void h(),disabled:m,children:[(0,A.jsx)(s,{size:14}),m?`读取中`:`刷新数据`]})]})]}),(0,A.jsxs)(`div`,{className:`gw-scope`,children:[(0,A.jsx)(`div`,{children:[[`real`,`非模拟资料`],[`stored-demo`,`模拟资料`]].map(([e,t])=>(0,A.jsx)(`button`,{"aria-pressed":g===e,onClick:()=>{y(e),N(``),z(null),V(null),L(``)},children:t},e))}),(0,A.jsx)(`span`,{children:f?`${new Date(f.updatedAt).toLocaleString(`zh-CN`)} 读取归档`:m?`正在读取归档…`:`商品资料未就绪`})]}),p&&(0,A.jsxs)(`p`,{role:`alert`,className:`gw-message`,children:[p,` `,(0,A.jsx)(`button`,{onClick:()=>void h(),children:`重试`})]}),I&&(0,A.jsx)(`p`,{role:`status`,className:`gw-message`,children:I}),(0,A.jsx)(n,{products:W,tiers:C,ready:!!f&&!m,onAction:J,onAssign:(e,t)=>z({product:e,suggestedTier:t})}),B&&(0,A.jsx)(i,{product:B,onOpen:d.onOpen,onClose:()=>V(null)}),R&&(0,A.jsx)(r,{...R,products:W,onDirty:d.onDirty,onBusy:d.onBusy,onClose:()=>z(null),onSave:async(e,t,n,r)=>{await v(d.api,e,t,n,r),L(await h()?`分组已保存,看板已更新。`:`分组已保存,但看板读取失败,请刷新后查看。`)}}),(0,A.jsxs)(`div`,{className:`gw-operating`,children:[(0,A.jsxs)(`section`,{className:`gw-panel gw-products`,children:[(0,A.jsxs)(`div`,{className:`gw-section-title`,children:[(0,A.jsx)(`h2`,{children:`商品工作清单`}),(0,A.jsxs)(`span`,{children:[G.length,` 个观察对象`]})]}),(0,A.jsxs)(`div`,{className:`gw-filters`,children:[(0,A.jsxs)(`label`,{children:[(0,A.jsx)(l,{size:14}),(0,A.jsx)(`input`,{"aria-label":`搜索经营商品`,placeholder:`搜索商品ID或项目`,value:x,onChange:e=>E(e.target.value)})]}),(0,A.jsxs)(`select`,{"aria-label":`商品运营分组`,value:U,onChange:e=>{u(e.target.value),N(``)},children:[(0,A.jsx)(`option`,{value:`all`,children:`全部运营分组`}),Object.entries(w).map(([e,t])=>(0,A.jsx)(`option`,{value:e,children:t},e))]})]}),U!==`all`&&(0,A.jsxs)(`div`,{className:`gw-rule`,children:[(0,A.jsx)(`b`,{children:w[U]}),(0,A.jsx)(`p`,{children:C.find(e=>e.id===U)?.rule||`选择商品后确认分组。归档记录不能直接证明商品属于哪个梯队。`})]}),(0,A.jsx)(`div`,{className:`gw-table-scroll`,children:(0,A.jsxs)(`table`,{children:[(0,A.jsx)(`thead`,{children:(0,A.jsxs)(`tr`,{children:[(0,A.jsx)(`th`,{children:`商品 / 所属项目`}),(0,A.jsx)(`th`,{children:`当前运营分组`}),(0,A.jsx)(`th`,{children:`已有指标`}),(0,A.jsx)(`th`,{children:`操作`})]})}),(0,A.jsx)(`tbody`,{children:G.map(e=>(0,A.jsxs)(`tr`,{className:K?.key===e.key?`selected`:``,children:[(0,A.jsxs)(`td`,{children:[(0,A.jsx)(a,{product:e}),(0,A.jsx)(`em`,{children:T[e.mode]})]}),(0,A.jsx)(`td`,{children:(0,A.jsx)(`span`,{className:`gw-tag `+e.tier,children:w[e.tier]})}),(0,A.jsxs)(`td`,{children:[e.series.length,` 项`,(0,A.jsx)(`small`,{children:e.series.map(e=>e.name).slice(0,2).join(` / `)})]}),(0,A.jsx)(`td`,{children:(0,A.jsxs)(`button`,{"aria-label":`查看商品 `+e.itemId+` `+e.projectName,onClick:()=>q(e),children:[`查看 `,(0,A.jsx)(t,{size:12})]})})]},e.key))})]})}),!G.length&&(0,A.jsxs)(`div`,{className:`gw-empty`,children:[(0,A.jsx)(o,{size:29}),(0,A.jsx)(`b`,{children:p?`商品资料读取失败`:m?`正在读取商品…`:x?`没有匹配的商品`:`这个分组还没有商品`}),(0,A.jsx)(`p`,{children:`切换到“待分组”确认商品运营分组,或从项目监控中归档商品数据。`}),(0,A.jsx)(`button`,{onClick:()=>{E(``),u(`unassigned`)},children:`查看待分组`}),(0,A.jsx)(`button`,{onClick:()=>d.onModule(`projects`),children:`进入项目执行`})]})]}),(0,A.jsxs)(`section`,{ref:H,tabIndex:-1,className:`gw-panel gw-product-detail`,children:[(0,A.jsxs)(`div`,{className:`gw-section-title`,children:[(0,A.jsx)(`h2`,{children:`商品数据与下一步`}),(0,A.jsx)(`span`,{children:`点表格切换`})]}),(0,A.jsx)(M,{product:K,metricKey:P,onMetric:F,onGroup:e=>z({product:e}),onTask:V,onOpen:d.onOpen})]})]}),(0,A.jsx)(`p`,{className:`gw-detail-note`,children:`这里的“新品测试、持续孵化、重点推广”是人工保存的运营策略,不是按全店支付销售额贡献、访客和支付买家核验的第一、二、三梯队。切换分组不会自动投放或改变经营梯队。`}),(0,A.jsxs)(`footer`,{className:`gw-footer`,children:[(0,A.jsx)(`span`,{children:`规则来源:店铺链接 AI 自动化孵化与打爆`}),(0,A.jsxs)(`details`,{children:[(0,A.jsx)(`summary`,{children:`检查频率与执行状态说明`}),(0,A.jsx)(`p`,{children:`运营策略卡片展示原方案的建议检查频率,不表示调度已启用。老师结合企业数据制定具体判断标准;本页支持归档查询、趋势查看和分组保存。广告计划的建立、暂停及预算调整尚未在本页接通。`})]})]})]})})})}function P(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function F(e){return typeof e==`string`&&!!e.trim()}function I(e){if(e==null||e===``)return null;let t=typeof e==`number`?e:typeof e==`string`?Number(e):NaN;if(!Number.isFinite(t)||t<0)throw Error(`商品价格格式异常`);return t}async function L(e){async function t(t){let n=await fetch(`/v1/enterprise/`+t,{signal:e,cache:`no-store`});if(!n.ok)throw Error(n.status===401?`登录已失效,请重新登录`:n.status===403?`当前账号没有店铺商品读取权限`:`店铺商品读取失败,请重试`);if(!n.headers.get(`content-type`)?.includes(`application/json`))throw Error(`店铺商品服务尚未接入`);return n.json()}let[n,r]=await Promise.all([t(`products`),t(`shops`)]);if(!P(n)||!Array.isArray(n.products)||!Array.isArray(n.listings)||!P(r)||!Array.isArray(r.shops))throw Error(`店铺商品返回格式异常`);let i=new Map;for(let e of n.products){if(!P(e)||!F(e.product_id)||!F(e.project_id)||!F(e.name))throw Error(`商品关联项目格式异常`);i.set(e.product_id,{id:e.project_id,name:e.name})}let a=new Map;for(let e of r.shops){if(!P(e)||!F(e.id)||!F(e.name)||![`real`,`simulated`,`unverified`].includes(String(e.mode)))throw Error(`店铺资料格式异常`);a.set(e.id,{name:e.name,mode:e.mode===`real`?`declared-real`:e.mode})}let o=[],s=new Set;for(let e of n.listings){if(!P(e)||!F(e.id)||!F(e.product_id)||!F(e.shop_id)||!F(e.platform_item_id)||typeof e.title!=`string`)throw Error(`店铺商品记录不完整`);let t=a.get(e.shop_id),n=i.get(e.product_id);if(!t)continue;if(!n)throw Error(`店铺商品关联项目缺失,请刷新重试`);let r=JSON.stringify([e.shop_id,e.platform_item_id]);if(s.has(r))throw Error(`店铺商品身份重复,请核对资料`);s.add(r),o.push({key:e.id,itemId:e.platform_item_id,title:e.title,image:typeof e.image_data_url==`string`?e.image_data_url:void 0,shopId:e.shop_id,shopName:t.name,project:n.id,projectName:n.name,mode:t.mode,category:typeof e.category==`string`?e.category:void 0,price:I(e.price)})}return o}function R(){let[e,t]=(0,b.useState)(null),[n,r]=(0,b.useState)(``),[i,a]=(0,b.useState)(!0),o=(0,b.useRef)(null),s=(0,b.useCallback)(()=>{o.current?.abort();let e=new AbortController;return o.current=e,L(e.signal).then(n=>{e.signal.aborted||(t(n),r(``))}).catch(n=>{e.signal.aborted||(t(null),r(n instanceof Error?n.message:`店铺商品读取失败`))}).finally(()=>{e.signal.aborted||a(!1)})},[]),c=(0,b.useCallback)(()=>(a(!0),r(``),s()),[s]);return(0,b.useEffect)(()=>(s(),()=>o.current?.abort()),[s]),{data:e,error:n,loading:i,refresh:c}}function z(e,t,n,r=``){return e.filter(e=>(!r||e.shopId===r)&&(n===`stored-demo`?e.mode===`simulated`:e.mode!==`simulated`)).map(e=>({...e,archives:t.filter(t=>t.project===e.project&&t.itemId===e.itemId&&t.shopIds?.length===1&&t.shopIds[0]===e.shopId&&(n===`stored-demo`?t.mode===`simulated`:t.mode!==`simulated`))}))}function B(e){let t=e.archives.length===1?e.archives[0]:void 0,n=t?.series.flatMap(e=>e.points.map(e=>e.date)).sort().at(-1)||``;function r(e,r){let i=t?.series.filter(t=>e.includes(t.metric)&&r.includes(t.unit))||[];if(i.length!==1)return null;let a=i[0].points.find(e=>e.date===n);return typeof a?.value==`number`&&Number.isFinite(a.value)?a.value:null}return{date:n,paid:r([`paid`,`revenue`],[`元`,`CNY`]),uv:r([`visitors`,`uv`],[`人`]),buyers:r([`buyers`],[`人`])}}function V(e,t,n){let r=t.trim().toLowerCase();return e.filter(e=>`${e.itemId} ${e.title} ${e.shopName} ${e.projectName} ${e.category||``}`.toLowerCase().includes(r)&&(n===`all`||(e.archives.length===1?e.archives[0].tier:e.archives.length===0?`unassigned`:``)===n))}var H=20;function U(){let e=_(),n=d(),u=R(),f=S(e.api),[p,m]=c(`products.scope`,`real`),[g,y]=c(`products.query`,``),[x,C]=c(`products.shopTier`,`all`),[D,O]=c(`products.key`,``),[k,j]=c(`products.metric`,``),[N,P]=(0,b.useState)(1),[F,I]=(0,b.useState)(``),[L,U]=(0,b.useState)(null),[W,G]=(0,b.useState)(null),K=(0,b.useRef)(null),q=z(u.data||[],f.data?.products||[],p,n?.selected),J=f.error||f.loading?`all`:x,Y=V(q,g,J),X=Math.max(1,Math.ceil(Y.length/H)),Z=Math.min(N,X),Q=f.data?.products.find(e=>e.key===D&&(p===`stored-demo`?e.mode===`simulated`:e.mode!==`simulated`)),$=q.filter(e=>e.archives.some(e=>e.series.some(e=>e.points.length))).length,ee=u.loading||f.loading;function te(e){O(e.key),j(``),requestAnimationFrame(()=>{K.current?.scrollIntoView({behavior:`smooth`,block:`start`}),K.current?.focus({preventScroll:!0})})}return(0,A.jsx)(`div`,{className:`products-module`,children:(0,A.jsx)(`div`,{className:`gw shop-catalog`,children:(0,A.jsxs)(`div`,{className:`gw-body`,children:[(0,A.jsxs)(`header`,{className:`gw-header`,children:[(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`small`,{children:`商品 / 全部商品`}),(0,A.jsx)(`h1`,{children:`店铺商品`}),(0,A.jsx)(`p`,{children:`查看店铺内已建档的商品与经营数据,再安排测试、孵化和推广。`})]}),(0,A.jsxs)(`div`,{className:`gw-header-actions`,children:[(0,A.jsxs)(`span`,{children:[(0,A.jsx)(`i`,{className:`gw-dot`}),`店铺建档与归档数据 · 非实时`]}),(0,A.jsxs)(`button`,{disabled:ee,onClick:()=>{u.refresh(),f.refresh()},children:[(0,A.jsx)(s,{size:14}),ee?`读取中`:`刷新数据`]})]})]}),(0,A.jsxs)(`div`,{className:`gw-scope`,children:[(0,A.jsx)(`div`,{children:[[`real`,`非模拟资料`],[`stored-demo`,`模拟资料`]].map(([e,t])=>(0,A.jsx)(`button`,{"aria-pressed":p===e,onClick:()=>{m(e),P(1),O(``),U(null),G(null),I(``)},children:t},e))}),(0,A.jsx)(`span`,{children:n?.shops.find(e=>e.id===n.selected)?.name||`全部授权店铺`})]}),u.error&&(0,A.jsxs)(`p`,{className:`gw-message`,role:`alert`,children:[u.error,` `,(0,A.jsx)(`button`,{onClick:()=>void u.refresh(),children:`重试店铺商品`})]}),f.error&&(0,A.jsxs)(`p`,{className:`gw-message`,role:`alert`,children:[`经营指标暂不可用:`,f.error,` `,(0,A.jsx)(`button`,{onClick:()=>void f.refresh(),children:`重试经营指标`})]}),F&&(0,A.jsx)(`p`,{className:`gw-message`,role:`status`,children:F}),(0,A.jsxs)(`section`,{className:`gw-panel shop-catalog-list`,"aria-label":`店铺商品列表`,children:[(0,A.jsxs)(`div`,{className:`gw-section-title`,children:[(0,A.jsx)(`h2`,{children:`全部商品`}),(0,A.jsx)(`span`,{children:u.loading?`正在读取商品…`:u.error?`商品总数暂不可用`:`当前范围 ${q.length} 个已建档商品`})]}),!u.error&&u.data&&(0,A.jsxs)(`div`,{className:`shop-catalog-summary`,children:[(0,A.jsxs)(`span`,{children:[`已有经营归档 `,(0,A.jsx)(`b`,{children:f.error||f.loading?`—`:$})]}),(0,A.jsxs)(`span`,{children:[`待补充经营数据 `,(0,A.jsx)(`b`,{children:f.error||f.loading?`—`:q.length-$})]}),(0,A.jsx)(`span`,{children:`未归档的指标显示“—”`})]}),(0,A.jsxs)(`div`,{className:`gw-filters`,children:[(0,A.jsxs)(`label`,{children:[(0,A.jsx)(l,{size:15}),(0,A.jsx)(`input`,{"aria-label":`搜索店铺商品`,placeholder:`搜索商品名称、ID、店铺、类目或项目`,value:g,onChange:e=>{y(e.target.value),P(1)}})]}),(0,A.jsxs)(`select`,{"aria-label":`筛选店铺商品分组`,value:J,disabled:f.loading||!!f.error,onChange:e=>{C(e.target.value),P(1)},children:[(0,A.jsx)(`option`,{value:`all`,children:`全部运营分组`}),Object.entries(w).map(([e,t])=>(0,A.jsx)(`option`,{value:e,children:t},e))]})]}),(0,A.jsx)(`div`,{className:`gw-table-scroll`,children:(0,A.jsxs)(`table`,{children:[(0,A.jsx)(`thead`,{children:(0,A.jsxs)(`tr`,{children:[(0,A.jsx)(`th`,{children:`商品 / 店铺`}),(0,A.jsx)(`th`,{children:`建档价格(元)`}),(0,A.jsx)(`th`,{children:`访客数`}),(0,A.jsx)(`th`,{children:`支付买家数`}),(0,A.jsx)(`th`,{children:`支付销售额(元)`}),(0,A.jsx)(`th`,{children:`统计日期`}),(0,A.jsx)(`th`,{children:`运营分组`}),(0,A.jsx)(`th`,{children:`操作`})]})}),(0,A.jsx)(`tbody`,{children:Y.slice((Z-1)*H,Z*H).map(n=>{let r=B(n),i=n.archives.length===1?n.archives[0]:void 0;return(0,A.jsxs)(`tr`,{className:i?.key===Q?.key&&i?`selected`:``,children:[(0,A.jsxs)(`td`,{children:[(0,A.jsx)(a,{product:n}),(0,A.jsxs)(`small`,{children:[n.category||`类目未录入`,` · `,n.projectName]}),(0,A.jsx)(`em`,{children:T[n.mode]})]}),(0,A.jsx)(`td`,{children:E(n.price)}),(0,A.jsx)(`td`,{children:E(r.uv)}),(0,A.jsx)(`td`,{children:E(r.buyers)}),(0,A.jsx)(`td`,{children:E(r.paid)}),(0,A.jsxs)(`td`,{children:[r.date||`—`,(0,A.jsx)(`small`,{children:f.loading?`读取指标中`:f.error?`指标读取失败`:n.archives.length>1?`多份归档,分别查看`:r.date?T[i.mode]:`暂无经营数据`})]}),(0,A.jsx)(`td`,{children:f.error||f.loading?`—`:n.archives.length>1?`分组待核对`:(0,A.jsx)(`span`,{className:`gw-tag `+(i?.tier||`unassigned`),children:w[i?.tier||`unassigned`]})}),(0,A.jsx)(`td`,{children:n.archives.length?n.archives.map(e=>(0,A.jsxs)(`button`,{"aria-label":`查看商品 ${n.itemId} ${n.shopName} ${T[e.mode]}`,onClick:()=>te(e),children:[n.archives.length>1?T[e.mode]:`查看数据`,(0,A.jsx)(t,{size:12})]},e.key)):(0,A.jsxs)(`button`,{disabled:f.loading||!!f.error,onClick:()=>e.onOpen(n.project,{tab:`monitor`,itemId:n.itemId}),children:[f.loading?`读取中`:f.error?`指标不可用`:`补充数据`,(0,A.jsx)(t,{size:12})]})})]},n.key)})})]})}),!Y.length&&(0,A.jsxs)(`div`,{className:`gw-empty`,role:`status`,children:[(0,A.jsx)(o,{size:29}),(0,A.jsx)(`b`,{children:u.error?`店铺商品读取失败`:u.loading?`正在读取店铺商品…`:g||J!==`all`?`没有匹配的商品`:`当前范围还没有已建档商品`}),(0,A.jsx)(`p`,{children:u.error?`请重试,或检查账号与数据服务连接。`:u.loading?`正在读取当前授权范围的商品目录。`:g||J!==`all`?`调整搜索或运营分组筛选后再查看。`:`请先关联店铺商品。已关联商品即使没有经营归档,也会显示在这里。`}),!u.loading&&!u.error&&(g||J!==`all`)&&(0,A.jsx)(`button`,{onClick:()=>{y(``),C(`all`),P(1)},children:`清除筛选`})]}),Y.length>0&&(0,A.jsxs)(`div`,{className:`shop-catalog-pagination`,children:[(0,A.jsxs)(`span`,{children:[`筛选结果 `,Y.length,` 个 · 第 `,Z,` / `,X,` 页`]}),(0,A.jsx)(`button`,{disabled:Z<=1,onClick:()=>P(Z-1),children:`上一页`}),(0,A.jsx)(`button`,{disabled:Z>=X,onClick:()=>P(Z+1),children:`下一页`})]})]}),(0,A.jsx)(`p`,{className:`gw-detail-note`,children:`仅显示当前授权店铺已建档商品,尚不代表平台全店商品已同步。经营指标按每个商品的最新归档统计日展示,不同商品日期可能不同;缺值不补零,多店合并归档不分摊到单店。`}),Q&&(0,A.jsxs)(`section`,{ref:K,tabIndex:-1,className:`gw-panel gw-product-detail shop-catalog-detail`,children:[(0,A.jsxs)(`div`,{className:`gw-section-title`,children:[(0,A.jsx)(`h2`,{children:`商品数据与下一步`}),(0,A.jsx)(`button`,{"aria-label":`关闭商品详情`,onClick:()=>O(``),children:(0,A.jsx)(h,{size:15})})]}),(0,A.jsx)(M,{product:Q,metricKey:k,onMetric:j,onGroup:U,onTask:G,onOpen:e.onOpen})]}),W&&(0,A.jsx)(i,{product:W,onOpen:e.onOpen,onClose:()=>G(null)}),L&&(0,A.jsx)(r,{product:L,products:(f.data?.products||[]).filter(e=>p===`stored-demo`?e.mode===`simulated`:e.mode!==`simulated`),onDirty:e.onDirty,onBusy:e.onBusy,onClose:()=>U(null),onSave:async(t,n,r,i)=>{await v(e.api,t,n,r,i),I(await f.refresh()?`分组已保存,商品数据已更新。`:`分组已保存,但数据读取失败,请刷新后查看。`)}})]})})})}var W=(0,b.lazy)(()=>g(()=>import(`./project-public-DqjxO6ad.js`),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url));function G({section:e,onSection:t,project:n}){return n?(0,A.jsx)(b.Suspense,{fallback:(0,A.jsx)(`p`,{role:`status`,children:`正在打开商品工具…`}),children:(0,A.jsx)(W,{section:e,project:n})}):e===`all`?(0,A.jsx)(U,{}):(0,A.jsx)(N,{section:e,onSection:t})}export{G as default};
@@ -1 +1 @@
1
- import{u as e}from"./index-Cez2mr3h.js";var t=e(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]);export{t};
1
+ import{d as e}from"./index-BBySSIJT.js";var t=e(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{d as e}from"./index-BBySSIJT.js";var t=e(`chart-column`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),n=e(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]);export{t as n,n as t};
@@ -1 +1 @@
1
- import{u as e}from"./index-Cez2mr3h.js";var t=e(`grid-2x2`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]);export{t};
1
+ import{d as e}from"./index-BBySSIJT.js";var t=e(`grid-2x2`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]);export{t};