import{d as y,r as a,G as e,D as b,J as d,o as p,c as x,e as _,u,b as s,a as C,h as B,R as O,M as V,P as I,m as n,C as r}from"../../../common/index.DXvi0yH9.js";import{H as k}from"../../partials/index.EnUA63nb.js";import M from"./UpgradeModal.D0e-Pmld.js";import{C as P,a as T}from"../../../common/chart-line.CFohJ3o_.js";import{F as U}from"../../../common/folder.CU_VkyKl.js";import{S}from"../../../common/shopping-cart.DtUP8_d3.js";import{U as A}from"../../../common/users.DqW98SDr.js";import"../../../common/createLucideIcon.D3XWtEmL.js";import"../../../common/_plugin-vue_export-helper.DlAUqK2U.js";import"../../../common/form.C3ove4if.js";import"../../../common/keyboard.D4P2wQc7.js";import"../../../common/open-closed.CQX5sZkx.js";import"../../../common/use-resolve-button-type.Cleihsk7.js";import"../../../common/crown.Cl0_N8Ry.js";import"../../../common/x.ClCP0MsD.js";import"../../../common/sparkles.WrMKOEbV.js";import"../../../common/trending-up.B3CW55Gy.js";import"../../../common/transition.CRNcmuQX.js";import"../../../common/micro-task.CxIZtCgj.js";const D={class:"stwlite-tw-max-w-7xl stwlite-tw-mx-auto"},z={class:"stwlite-tw-bg-amber-50 stwlite-tw-border-l-4 stwlite-tw-border-amber-400 stwlite-tw-p-4 stwlite-tw-mt-4 stwlite-tw-rounded-md"},E={class:"stwlite-tw-flex stwlite-tw-items-center"},F={class:"stwlite-tw-ml-3"},H={class:"stwlite-tw-text-sm stwlite-tw-text-amber-800"},N={class:"stwlite-tw-max-w-7xl stwlite-tw-mx-auto stwlite-tw-px-4 sm:stwlite-tw-px-6 lg:stwlite-tw-px-8 stwlite-tw-py-8 stwlite-tw-space-y-12"},le=y({__name:"Analytics",setup(R){const i=a(null),l=a(!1),c=a(!0),g={title:e("analytics_title",wp.i18n.__("Wishlist Analytics","saveto-wishlist-lite-for-woocommerce")),description:e("analytics_description",wp.i18n.__("Comprehensive insights into your customer's wishlist activity.","saveto-wishlist-lite-for-woocommerce"))},h=e("analytics_demo_notice",wp.i18n.__("This is a temporary demo view for the Analytics page and will be removed once PRO is installed.","saveto-wishlist-lite-for-woocommerce")),w=a(null),v=a([{value:"product_insights",label:e("product_insights",wp.i18n.__("Product Insights","saveto-wishlist-lite-for-woocommerce")),description:e("product_insights_description",wp.i18n.__("Analyze product performance and trends","saveto-wishlist-lite-for-woocommerce")),icon:P},{value:"category_brand_insights",label:e("category_brand_insights",wp.i18n.__("Category & Brand Insights","saveto-wishlist-lite-for-woocommerce")),description:e("category_brand_insights_description",wp.i18n.__("Discover top categories and brands","saveto-wishlist-lite-for-woocommerce")),icon:U},{value:"engagement_insights",label:e("engagement_insights",wp.i18n.__("Engagement Insights","saveto-wishlist-lite-for-woocommerce")),description:e("engagement_insights_description",wp.i18n.__("Track customer engagement metrics","saveto-wishlist-lite-for-woocommerce")),icon:S},{value:"timebased_trends",label:e("timebased_trends",wp.i18n.__("Time-based Trends","saveto-wishlist-lite-for-woocommerce")),description:e("timebased_trends_description",wp.i18n.__("View trends over time","saveto-wishlist-lite-for-woocommerce")),icon:T},{value:"customer_behavior",label:e("customer_behavior",wp.i18n.__("Customer Behavior","saveto-wishlist-lite-for-woocommerce")),description:e("customer_behavior_description",wp.i18n.__("Understand customer patterns","saveto-wishlist-lite-for-woocommerce")),icon:A}]),m=t=>{d("analytics")!==t&&I("analytics",t),w.value=t,c.value||(l.value=!0),t==="product_insights"?i.value=n(r("components/analytics/ProductInsights.vue")):t==="category_brand_insights"?i.value=n(r("components/analytics/CategoryBrandInsights.vue")):t==="engagement_insights"?i.value=n(r("components/analytics/EngagementInsights.vue")):t==="timebased_trends"?i.value=n(r("components/analytics/TimebasedTrends.vue")):t==="customer_behavior"&&(i.value=n(r("components/analytics/CustomerBehavior.vue"))),c.value&&(c.value=!1)},f=()=>{l.value=!1};return b(()=>{const t=d("analytics");m(t||"product_insights")}),(t,o)=>(p(),x(V,null,[_(u(k),{infoData:g,showSelect:!0,selectedOption:w.value,selectOptions:v.value,onSelectChange:m},null,8,["selectedOption","selectOptions"]),s("div",D,[s("div",z,[s("div",E,[o[1]||(o[1]=s("div",{class:"stwlite-tw-flex-shrink-0"},[s("svg",{class:"stwlite-tw-h-5 stwlite-tw-w-5 stwlite-tw-text-amber-400",viewBox:"0 0 20 20",fill:"currentColor"},[s("path",{"fill-rule":"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})])],-1)),s("div",F,[s("p",H,C(u(h)),1)])])])]),s("div",N,[(p(),B(O(i.value),{onUpgradeClick:o[0]||(o[0]=L=>l.value=!0)},null,32))]),_(M,{isOpen:l.value,onClose:f},null,8,["isOpen"])],64))}});export{le as default};
