"use strict";(globalThis.webpackChunkstoresuite=globalThis.webpackChunkstoresuite||[]).push([[49],{6434(e,t,s){s.r(t),s.d(t,{default:()=>C});var o=s(7723),r=s(6087),n=s(6773),i=s(3679),a=s(2619),c=s(6670);const u=(0,r.lazy)(()=>s.e(878).then(s.bind(s,1387))),l=(0,r.lazy)(()=>s.e(169).then(s.bind(s,8807))),d=(0,r.lazy)(()=>s.e(604).then(s.bind(s,6308))),p=(0,r.lazy)(()=>s.e(719).then(s.bind(s,3235))),_=(0,r.lazy)(()=>s.e(965).then(s.bind(s,4993))),h=(0,r.lazy)(()=>s.e(567).then(s.bind(s,5499))),m=(0,r.lazy)(()=>s.e(0).then(s.bind(s,2090))),y=(0,r.lazy)(()=>s.e(702).then(s.bind(s,3652))),v=(0,r.lazy)(()=>s.e(914).then(s.bind(s,620))),b=(0,r.lazy)(()=>s.e(287).then(s.bind(s,857))),g=(0,r.lazy)(()=>s.e(514).then(s.bind(s,1716))),x=(0,r.lazy)(()=>Promise.all([s.e(373),s.e(696)]).then(s.bind(s,2753))),w=()=>{const e=[{report:"overview",title:(0,o.__)("Overview","storesuite"),component:u},{report:"revenue",title:(0,o.__)("Revenue","storesuite"),component:l},{report:"orders",title:(0,o.__)("Orders","storesuite"),component:d},{report:"products",title:(0,o.__)("Products","storesuite"),component:p},{report:"variations",title:(0,o.__)("Variations","storesuite"),component:_},{report:"categories",title:(0,o.__)("Categories","storesuite"),component:h},{report:"coupons",title:(0,o.__)("Coupons","storesuite"),component:m},{report:"taxes",title:(0,o.__)("Taxes","storesuite"),component:y},{report:"downloads",title:(0,o.__)("Downloads","storesuite"),component:v},{report:"stock",title:(0,o.__)("Stock","storesuite"),component:b},{report:"customers",title:(0,o.__)("Customers","storesuite"),component:g},{report:"settings",title:(0,o.__)("Settings","storesuite"),component:x}],t="yes"===(0,c.Qk)("manageStock","no")?e:e.filter(({report:e})=>"stock"!==e);return(0,a.applyFilters)("storesuite_analytics_reports_list",t)};s.dn(w);var k=s(790);const j={overview:(0,o.__)("A quick look at how your store is performing.","storesuite"),revenue:(0,o.__)("Track gross and net sales, taxes, shipping, and refunds over time.","storesuite"),orders:(0,o.__)("Analyze order volume, average order value, and order trends.","storesuite"),products:(0,o.__)("See which products are driving your sales.","storesuite"),variations:(0,o.__)("Compare performance across product variations.","storesuite"),categories:(0,o.__)("Understand which product categories sell best.","storesuite"),coupons:(0,o.__)("Measure how your discounts impact orders and revenue.","storesuite"),taxes:(0,o.__)("Review the taxes collected on your orders by tax code.","storesuite"),downloads:(0,o.__)("Monitor digital product download activity.","storesuite"),stock:(0,o.__)("Keep an eye on inventory levels and stock status.","storesuite"),customers:(0,o.__)("Get to know your customers and their purchase behavior.","storesuite"),settings:(0,o.__)("Customize how your analytics reports are calculated.","storesuite")},z=({report:e,title:t})=>{const[s,o]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{const e=document.querySelector(".storesuite-page-main-title");if(!e)return void o(!1);e.textContent=t;const s=document.querySelector(".storesuite-dashboard-braedcrumb li:last-child span");s&&(s.textContent=t),o(!0)},[t]),(0,k.jsxs)("div",{className:"storesuite-analytics-page-header",children:[!s&&(0,k.jsx)("h3",{children:t}),j[e]&&(0,k.jsx)("p",{children:j[e]})]})},f=()=>(0,k.jsx)("div",{className:"storesuite-analytics-reports",children:(0,k.jsx)("div",{className:"storesuite-analytics-reports-content",children:(0,k.jsx)(n.EmptyContent,{title:(0,o.__)("Report not found","storesuite"),message:(0,o.__)("Sorry, there is no report matching this URL.","storesuite"),actionLabel:(0,o.__)("Go to Overview","storesuite"),actionURL:(0,i.getNewPath)({report:"overview"})})})});function C({query:e,path:t}){const s=w(),o=e||(0,i.getQuery)(),a=o.report||"overview",c=s.find(e=>e.report===a);if(!c||!c.component)return(0,k.jsx)(f,{});const u=c.component;return(0,k.jsx)("div",{className:"storesuite-analytics-reports",children:(0,k.jsxs)("div",{className:"storesuite-analytics-reports-content",children:[(0,k.jsx)(z,{report:c.report,title:c.title}),(0,k.jsx)(r.Suspense,{fallback:(0,k.jsx)("div",{className:"storesuite-analytics-loading",children:(0,k.jsx)(n.Spinner,{})}),children:(0,k.jsx)(u,{query:o,path:t||""})})]})})}}}]);