import{d as et,r as b,A as _,G as l,o as c,c as m,b as t,a as s,u as e,H as u,e as r,g as $,h as C,w as p,M as S,N as j,R as z,a1 as I,f as V}from"../../../../common/index.DXvi0yH9.js";import{C as L,a as st}from"../../../../common/chart-line.CFohJ3o_.js";import{c as x}from"../../../../common/createLucideIcon.D3XWtEmL.js";import{A as N,T as wt}from"../../../../common/trending-down.DFs6hn-c.js";import{C as it}from"../../../../common/chart-column.ResI_UEN.js";import{T as D}from"../../../../common/trending-up.B3CW55Gy.js";import{C as T,A as lt}from"../../../../common/clock.C2-RJsxY.js";import{Z as A}from"../../../../common/zap.B7u3IeH7.js";import{p as ot,x as at,I as rt,y as B,m as nt}from"../../../../common/tabs.Ddypml2y.js";import"../../../../common/keyboard.D4P2wQc7.js";import"../../../../common/use-resolve-button-type.Cleihsk7.js";import"../../../../common/micro-task.CxIZtCgj.js";/**
 * @license lucide-vue-next v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dt=x("calendar-clock",[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/**
 * @license lucide-vue-next v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ct=x("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/**
 * @license lucide-vue-next v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _t=x("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
 * @license lucide-vue-next v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ht=x("sunrise",[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m4.93 10.93 1.41 1.41",key:"2a7f42"}],["path",{d:"M2 18h2",key:"j10viu"}],["path",{d:"M20 18h2",key:"wocana"}],["path",{d:"m19.07 10.93-1.41 1.41",key:"15zs5n"}],["path",{d:"M22 22H2",key:"19qnx5"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}],["path",{d:"M16 18a4 4 0 0 0-8 0",key:"1lzouq"}]]);/**
 * @license lucide-vue-next v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vt=x("sunset",[["path",{d:"M12 10V2",key:"16sf7g"}],["path",{d:"m4.93 10.93 1.41 1.41",key:"2a7f42"}],["path",{d:"M2 18h2",key:"j10viu"}],["path",{d:"M20 18h2",key:"wocana"}],["path",{d:"m19.07 10.93-1.41 1.41",key:"15zs5n"}],["path",{d:"M22 22H2",key:"19qnx5"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["path",{d:"M16 18a4 4 0 0 0-8 0",key:"1lzouq"}]]);/**
 * @license lucide-vue-next v0.544.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const P=x("timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]),gt={class:"stwlite-tw-space-y-6"},mt={class:"stwlite-tw-bg-gradient-to-r stwlite-tw-from-violet-50 stwlite-tw-to-purple-50 stwlite-tw-rounded-lg stwlite-tw-p-6 stwlite-tw-border stwlite-tw-border-violet-100"},ut={class:"stwlite-tw-flex stwlite-tw-items-start stwlite-tw-justify-between"},pt={class:"stwlite-tw-text-2xl stwlite-tw-font-bold stwlite-tw-text-gray-900 stwlite-tw-mb-2"},xt={class:"stwlite-tw-text-gray-600 stwlite-tw-max-w-3xl"},yt={key:0,class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-space-x-3"},bt={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-space-x-2"},ft={class:"stwlite-tw-bg-white stwlite-tw-rounded-lg stwlite-tw-shadow-sm stwlite-tw-p-3 stwlite-tw-border stwlite-tw-border-violet-200"},kt={class:"stwlite-tw-grid stwlite-tw-grid-cols-1 md:stwlite-tw-grid-cols-4 stwlite-tw-gap-6"},Mt={class:"stwlite-tw-bg-white stwlite-tw-rounded-lg stwlite-tw-shadow-sm stwlite-tw-border stwlite-tw-border-gray-200 stwlite-tw-p-6"},Ct={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-between"},St={class:"stwlite-tw-text-sm stwlite-tw-text-gray-600 stwlite-tw-mb-1"},jt={class:"stwlite-tw-text-3xl stwlite-tw-font-bold stwlite-tw-text-gray-900"},Dt={class:"stwlite-tw-bg-violet-100 stwlite-tw-rounded-full stwlite-tw-p-3"},Tt={class:"stwlite-tw-bg-white stwlite-tw-rounded-lg stwlite-tw-shadow-sm stwlite-tw-border stwlite-tw-border-gray-200 stwlite-tw-p-6"},At={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-between"},Pt={class:"stwlite-tw-text-sm stwlite-tw-text-gray-600 stwlite-tw-mb-1"},qt={class:"stwlite-tw-text-3xl stwlite-tw-font-bold stwlite-tw-text-gray-900"},Wt={class:"stwlite-tw-bg-blue-100 stwlite-tw-rounded-full stwlite-tw-p-3"},$t={class:"stwlite-tw-bg-white stwlite-tw-rounded-lg stwlite-tw-shadow-sm stwlite-tw-border-2 stwlite-tw-border-purple-200 stwlite-tw-p-6"},zt={class:"stwlite-tw-flex stwlite-tw-items-start stwlite-tw-justify-between"},It={class:"stwlite-tw-flex-1"},Vt={class:"stwlite-tw-text-sm stwlite-tw-text-gray-600 stwlite-tw-mb-1"},Lt={class:"stwlite-tw-text-3xl stwlite-tw-font-bold stwlite-tw-text-purple-600 stwlite-tw-mb-2"},Nt={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-text-sm"},Bt={class:"stwlite-tw-bg-purple-100 stwlite-tw-rounded-full stwlite-tw-p-3"},Ht={class:"stwlite-tw-bg-white stwlite-tw-rounded-lg stwlite-tw-shadow-sm stwlite-tw-border stwlite-tw-border-gray-200 stwlite-tw-p-6"},Ft={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-between"},Gt={class:"stwlite-tw-text-sm stwlite-tw-text-gray-600 stwlite-tw-mb-1"},Ot={class:"stwlite-tw-text-3xl stwlite-tw-font-bold stwlite-tw-text-gray-900"},Rt={class:"stwlite-tw-bg-orange-100 stwlite-tw-rounded-full stwlite-tw-p-3"},Ut={class:"stwlite-tw-space-y-6"},Et={class:"stwlite-tw-bg-white stwlite-tw-rounded-lg stwlite-tw-shadow-sm stwlite-tw-border stwlite-tw-border-gray-200 stwlite-tw-overflow-hidden"},Zt={class:"stwlite-tw-px-6 stwlite-tw-py-4 stwlite-tw-bg-gradient-to-r stwlite-tw-from-violet-50 stwlite-tw-to-purple-50 stwlite-tw-border-b stwlite-tw-border-gray-200"},Qt={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-between"},Yt={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-space-x-2"},Jt={class:"stwlite-tw-text-lg stwlite-tw-font-semibold stwlite-tw-text-gray-900 stwlite-tw-p-0 stwlite-tw-m-0"},Kt={class:"stwlite-tw-text-sm stwlite-tw-text-gray-600"},Xt={class:"stwlite-tw-p-6"},te={class:"stwlite-tw-space-y-4"},ee={class:"stwlite-tw-grid stwlite-tw-grid-cols-1 stwlite-tw-gap-3 md:stwlite-tw-grid-cols-10"},se={class:"stwlite-tw-w-full stwlite-tw-flex stwlite-tw-flex-col stwlite-tw-items-center stwlite-tw-justify-end stwlite-tw-h-48 stwlite-tw-relative"},we={class:"stwlite-tw-absolute stwlite-tw-top-0 stwlite-tw-left-0 stwlite-tw-right-0 stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-center stwlite-tw-text-xs stwlite-tw-font-bold stwlite-tw-text-violet-600 stwlite-tw-mb-1"},ie={class:"stwlite-tw-text-center"},le={class:"stwlite-tw-text-xs stwlite-tw-font-medium stwlite-tw-text-gray-900"},oe={class:"stwlite-tw-text-xs stwlite-tw-text-gray-500"},ae={class:"stwlite-tw-mt-6 stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-center stwlite-tw-space-x-6"},re={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-space-x-2"},ne={class:"stwlite-tw-text-sm stwlite-tw-text-gray-600"},de={class:"stwlite-tw-grid stwlite-tw-grid-cols-1 md:stwlite-tw-grid-cols-2 stwlite-tw-gap-6"},ce={class:"stwlite-tw-bg-white stwlite-tw-rounded-lg stwlite-tw-shadow-sm stwlite-tw-border stwlite-tw-border-gray-200 stwlite-tw-p-6"},_e={class:"stwlite-tw-text-sm stwlite-tw-font-semibold stwlite-tw-text-gray-700 stwlite-tw-mb-4 stwlite-tw-flex stwlite-tw-items-center"},he={key:0,class:"stwlite-tw-space-y-4"},ve={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-between stwlite-tw-p-4 stwlite-tw-bg-gradient-to-r stwlite-tw-from-yellow-50 stwlite-tw-to-amber-50 stwlite-tw-rounded-lg stwlite-tw-border stwlite-tw-border-yellow-100"},ge={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-space-x-3"},me={class:"stwlite-tw-text-sm stwlite-tw-text-gray-600"},ue={class:"stwlite-tw-text-lg stwlite-tw-font-bold stwlite-tw-text-gray-900"},pe={class:"stwlite-tw-text-right"},xe={class:"stwlite-tw-text-2xl stwlite-tw-font-bold stwlite-tw-text-yellow-600"},ye={class:"stwlite-tw-text-xs stwlite-tw-text-gray-500"},be={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-between stwlite-tw-p-4 stwlite-tw-bg-gradient-to-r stwlite-tw-from-blue-50 stwlite-tw-to-indigo-50 stwlite-tw-rounded-lg stwlite-tw-border stwlite-tw-border-blue-100"},fe={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-space-x-3"},ke={class:"stwlite-tw-text-sm stwlite-tw-text-gray-600"},Me={class:"stwlite-tw-text-lg stwlite-tw-font-bold stwlite-tw-text-gray-900"},Ce={class:"stwlite-tw-bg-white stwlite-tw-rounded-lg stwlite-tw-shadow-sm stwlite-tw-border stwlite-tw-border-gray-200 stwlite-tw-p-6"},Se={class:"stwlite-tw-text-sm stwlite-tw-font-semibold stwlite-tw-text-gray-700 stwlite-tw-mb-4 stwlite-tw-flex stwlite-tw-items-center"},je={class:"stwlite-tw-space-y-3"},De={class:"stwlite-tw-flex stwlite-tw-items-start stwlite-tw-space-x-3 stwlite-tw-p-3 stwlite-tw-bg-green-50 stwlite-tw-rounded-lg stwlite-tw-border stwlite-tw-border-green-100"},Te={class:"stwlite-tw-text-sm stwlite-tw-font-medium stwlite-tw-text-gray-900"},Ae={class:"stwlite-tw-text-xs stwlite-tw-text-gray-600"},Pe={class:"stwlite-tw-flex stwlite-tw-items-start stwlite-tw-space-x-3 stwlite-tw-p-3 stwlite-tw-bg-blue-50 stwlite-tw-rounded-lg stwlite-tw-border stwlite-tw-border-blue-100"},qe={class:"stwlite-tw-text-sm stwlite-tw-font-medium stwlite-tw-text-gray-900"},We={class:"stwlite-tw-text-xs stwlite-tw-text-gray-600"},$e={class:"stwlite-tw-flex stwlite-tw-items-start stwlite-tw-space-x-3 stwlite-tw-p-3 stwlite-tw-bg-purple-50 stwlite-tw-rounded-lg stwlite-tw-border stwlite-tw-border-purple-100"},ze={class:"stwlite-tw-text-sm stwlite-tw-font-medium stwlite-tw-text-gray-900"},Ie={class:"stwlite-tw-text-xs stwlite-tw-text-gray-600"},Ve={class:"stwlite-tw-space-y-6"},Le={class:"stwlite-tw-bg-white stwlite-tw-rounded-lg stwlite-tw-shadow-sm stwlite-tw-border stwlite-tw-border-gray-200 stwlite-tw-overflow-hidden"},Ne={class:"stwlite-tw-px-6 stwlite-tw-py-4 stwlite-tw-bg-gradient-to-r stwlite-tw-from-orange-50 stwlite-tw-to-amber-50 stwlite-tw-border-b stwlite-tw-border-gray-200"},Be={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-between"},He={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-space-x-2"},Fe={class:"stwlite-tw-text-lg stwlite-tw-font-semibold stwlite-tw-text-gray-900 stwlite-tw-p-0 stwlite-tw-m-0"},Ge={class:"stwlite-tw-text-sm stwlite-tw-text-gray-600"},Oe={class:"stwlite-tw-p-6"},Re={class:"stwlite-tw-space-y-4"},Ue={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-between"},Ee={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-space-x-3"},Ze={class:"stwlite-tw-text-sm stwlite-tw-font-semibold stwlite-tw-text-gray-900"},Qe={class:"stwlite-tw-text-xs stwlite-tw-text-gray-500"},Ye={class:"stwlite-tw-text-right"},Je={class:"stwlite-tw-text-lg stwlite-tw-font-bold stwlite-tw-text-gray-900"},Ke={class:"stwlite-tw-w-full stwlite-tw-bg-gray-200 stwlite-tw-rounded-full stwlite-tw-h-3 stwlite-tw-overflow-hidden"},Xe={class:"stwlite-tw-grid stwlite-tw-grid-cols-1 md:stwlite-tw-grid-cols-3 stwlite-tw-gap-6"},ts={class:"stwlite-tw-bg-white stwlite-tw-rounded-lg stwlite-tw-shadow-sm stwlite-tw-border-2 stwlite-tw-border-green-200 stwlite-tw-p-6"},es={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-between stwlite-tw-mb-4"},ss={class:"stwlite-tw-bg-green-100 stwlite-tw-rounded-full stwlite-tw-p-3"},ws={class:"stwlite-tw-text-sm stwlite-tw-font-semibold stwlite-tw-text-gray-700 stwlite-tw-mb-2"},is={class:"stwlite-tw-text-3xl stwlite-tw-font-bold stwlite-tw-text-green-600 stwlite-tw-mb-2"},ls={class:"stwlite-tw-text-xs stwlite-tw-text-gray-600"},os={class:"stwlite-tw-bg-white stwlite-tw-rounded-lg stwlite-tw-shadow-sm stwlite-tw-border-2 stwlite-tw-border-yellow-200 stwlite-tw-p-6"},as={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-between stwlite-tw-mb-4"},rs={class:"stwlite-tw-bg-yellow-100 stwlite-tw-rounded-full stwlite-tw-p-3"},ns={class:"stwlite-tw-text-sm stwlite-tw-font-semibold stwlite-tw-text-gray-700 stwlite-tw-mb-2"},ds={class:"stwlite-tw-text-3xl stwlite-tw-font-bold stwlite-tw-text-yellow-600 stwlite-tw-mb-2"},cs={class:"stwlite-tw-text-xs stwlite-tw-text-gray-600"},_s={class:"stwlite-tw-bg-white stwlite-tw-rounded-lg stwlite-tw-shadow-sm stwlite-tw-border-2 stwlite-tw-border-red-200 stwlite-tw-p-6"},hs={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-between stwlite-tw-mb-4"},vs={class:"stwlite-tw-bg-red-100 stwlite-tw-rounded-full stwlite-tw-p-3"},gs={class:"stwlite-tw-text-sm stwlite-tw-font-semibold stwlite-tw-text-gray-700 stwlite-tw-mb-2"},ms={class:"stwlite-tw-text-3xl stwlite-tw-font-bold stwlite-tw-text-red-600 stwlite-tw-mb-2"},us={class:"stwlite-tw-text-xs stwlite-tw-text-gray-600"},Ps=et({__name:"TimebasedTrends",emits:["upgrade-click"],setup(ps,{emit:H}){const F=H,h=b("30days"),G=_(()=>{const w=l("tracking_period",wp.i18n.__("Last %1$s","saveto-wishlist-lite-for-woocommerce")),i=h.value==="7days"?"7 days":h.value==="30days"?"30 days":h.value==="90days"?"90 days":"365 days";return w.replace("%1$s",i)}),v=b([{date:"2024-01-01",saves:45},{date:"2024-01-02",saves:52},{date:"2024-01-03",saves:38},{date:"2024-01-04",saves:61},{date:"2024-01-05",saves:55},{date:"2024-01-06",saves:72},{date:"2024-01-07",saves:68},{date:"2024-01-08",saves:48},{date:"2024-01-09",saves:59},{date:"2024-01-10",saves:64},{date:"2024-01-11",saves:71},{date:"2024-01-12",saves:66},{date:"2024-01-13",saves:58},{date:"2024-01-14",saves:73},{date:"2024-01-15",saves:69},{date:"2024-01-16",saves:54},{date:"2024-01-17",saves:62},{date:"2024-01-18",saves:75},{date:"2024-01-19",saves:68},{date:"2024-01-20",saves:70},{date:"2024-01-21",saves:77},{date:"2024-01-22",saves:72},{date:"2024-01-23",saves:65},{date:"2024-01-24",saves:79},{date:"2024-01-25",saves:74},{date:"2024-01-26",saves:81},{date:"2024-01-27",saves:76},{date:"2024-01-28",saves:83},{date:"2024-01-29",saves:78},{date:"2024-01-30",saves:85}]),g=b([{range:"0-3 days",count:320,percentage:25.6},{range:"4-7 days",count:280,percentage:22.4},{range:"8-30 days",count:380,percentage:30.4},{range:"31-60 days",count:150,percentage:12},{range:"61-90 days",count:80,percentage:6.4},{range:"90+ days",count:40,percentage:3.2}]),y=b({hour:19,period:"7:00 PM - 9:00 PM",saves:125,day:"Saturday"}),O=[{name:l("saves_over_time",wp.i18n.__("Saves Over Time","saveto-wishlist-lite-for-woocommerce")),icon:L},{name:l("wishlist_age",wp.i18n.__("Wishlist Age Analysis","saveto-wishlist-lite-for-woocommerce")),icon:P}],q=b(0),W=_(()=>v.value.reduce((w,i)=>w+i.saves,0)),R=_(()=>v.value.length>0?Math.round(W.value/v.value.length):0),f=_(()=>{if(v.value.length<2)return 0;const w=v.value.slice(-7),i=v.value.slice(-14,-7),o=w.reduce((n,d)=>n+d.saves,0)/w.length,a=i.reduce((n,d)=>n+d.saves,0)/i.length;return a>0?parseFloat(((o-a)/a*100).toFixed(1)):0}),U=_(()=>{const w=g.value.reduce((n,d)=>n+d.count,0);if(w===0)return"0 days";const i=[2,7,20,45,75,120];let o=0;g.value.forEach((n,d)=>{d<i.length&&(o+=n.count*i[d])});const a=Math.round(o/w);return"".concat(a," days")}),E=_(()=>{var w,i;return(i=(w=g.value[0])==null?void 0:w.percentage)!=null?i:0}),Z=_(()=>{var o,a,n,d;const w=(a=(o=g.value[1])==null?void 0:o.percentage)!=null?a:0,i=(d=(n=g.value[2])==null?void 0:n.percentage)!=null?d:0;return w+i}),Q=_(()=>{var o,a,n,d;const w=(a=(o=g.value[4])==null?void 0:o.percentage)!=null?a:0,i=(d=(n=g.value[5])==null?void 0:n.percentage)!=null?d:0;return w+i}),Y=w=>w>=1e3?(w/1e3).toFixed(1)+"k":w.toString(),J=_(()=>Math.max(...v.value.map(w=>w.saves),1)),K=w=>new Date(w).toLocaleDateString("en-US",{month:"short",day:"numeric"}),X=w=>new Date(w).toLocaleDateString("en-US",{weekday:"short"}),tt=w=>w>=6&&w<12?ht:w>=12&&w<18?_t:w>=18&&w<24?vt:ct,k=()=>{F("upgrade-click")},M=w=>{h.value=w,k()};return(w,i)=>(c(),m("div",gt,[t("div",mt,[t("div",ut,[t("div",null,[t("h2",pt,s(e(l)("timebased_trends_title",e(wp.i18n.__)("Time-based Trends","saveto-wishlist-lite-for-woocommerce"))),1),t("p",xt,s(e(l)("timebased_trends_subtitle",e(wp.i18n.__)("View trends and patterns over time.","saveto-wishlist-lite-for-woocommerce"))),1)]),q.value===0?(c(),m("div",yt,[t("div",bt,[t("button",{onClick:i[0]||(i[0]=o=>M("7days")),class:u(["stwlite-tw-px-3 stwlite-tw-py-2 stwlite-tw-rounded-md stwlite-tw-text-xs stwlite-tw-font-medium stwlite-tw-transition-all stwlite-tw-duration-200 stwlite-tw-border-2 stwlite-tw-border-solid stwlite-tw-border-violet-600 focus:stwlite-tw-outline-none stwlite-tw-cursor-pointer",h.value==="7days"?"stwlite-tw-bg-violet-600 stwlite-tw-text-white stwlite-tw-shadow-sm":"stwlite-tw-text-gray-600 hover:stwlite-tw-text-gray-900 hover:stwlite-tw-bg-gray-50"])}," 7D ",2),t("button",{onClick:i[1]||(i[1]=o=>M("30days")),class:u(["stwlite-tw-px-3 stwlite-tw-py-2 stwlite-tw-rounded-md stwlite-tw-text-xs stwlite-tw-font-medium stwlite-tw-transition-all stwlite-tw-duration-200 stwlite-tw-border-2 stwlite-tw-border-solid stwlite-tw-border-violet-600 focus:stwlite-tw-outline-none stwlite-tw-cursor-pointer",h.value==="30days"?"stwlite-tw-bg-violet-600 stwlite-tw-text-white stwlite-tw-shadow-sm":"stwlite-tw-text-gray-600 hover:stwlite-tw-text-gray-900 hover:stwlite-tw-bg-gray-50"])}," 30D ",2),t("button",{onClick:i[2]||(i[2]=o=>M("90days")),class:u(["stwlite-tw-px-3 stwlite-tw-py-2 stwlite-tw-rounded-md stwlite-tw-text-xs stwlite-tw-font-medium stwlite-tw-transition-all stwlite-tw-duration-200 stwlite-tw-border-2 stwlite-tw-border-solid stwlite-tw-border-violet-600 focus:stwlite-tw-outline-none stwlite-tw-cursor-pointer",h.value==="90days"?"stwlite-tw-bg-violet-600 stwlite-tw-text-white stwlite-tw-shadow-sm":"stwlite-tw-text-gray-600 hover:stwlite-tw-text-gray-900 hover:stwlite-tw-bg-gray-50"])}," 90D ",2),t("button",{onClick:i[3]||(i[3]=o=>M("365days")),class:u(["stwlite-tw-px-3 stwlite-tw-py-2 stwlite-tw-rounded-md stwlite-tw-text-xs stwlite-tw-font-medium stwlite-tw-transition-all stwlite-tw-duration-200 stwlite-tw-border-2 stwlite-tw-border-solid stwlite-tw-border-violet-600 focus:stwlite-tw-outline-none stwlite-tw-cursor-pointer",h.value==="365days"?"stwlite-tw-bg-violet-600 stwlite-tw-text-white stwlite-tw-shadow-sm":"stwlite-tw-text-gray-600 hover:stwlite-tw-text-gray-900 hover:stwlite-tw-bg-gray-50"])}," 1Y ",2)]),t("div",ft,[r(e(dt),{class:"stwlite-tw-w-8 stwlite-tw-h-8 stwlite-tw-text-violet-600"})])])):$("",!0)])]),t("div",kt,[t("div",Mt,[t("div",Ct,[t("div",null,[t("p",St,s(e(l)("total_saves",e(wp.i18n.__)("Total Saves","saveto-wishlist-lite-for-woocommerce"))),1),t("p",jt,s(Y(W.value)),1)]),t("div",Dt,[r(e(N),{class:"stwlite-tw-w-8 stwlite-tw-h-8 stwlite-tw-text-violet-600"})])])]),t("div",Tt,[t("div",At,[t("div",null,[t("p",Pt,s(e(l)("avg_daily_saves",e(wp.i18n.__)("Avg. Daily Saves","saveto-wishlist-lite-for-woocommerce"))),1),t("p",qt,s(R.value),1)]),t("div",Wt,[r(e(it),{class:"stwlite-tw-w-8 stwlite-tw-h-8 stwlite-tw-text-blue-600"})])])]),t("div",$t,[t("div",zt,[t("div",It,[t("p",Vt,s(e(l)("growth_trend",e(wp.i18n.__)("Growth Trend","saveto-wishlist-lite-for-woocommerce"))),1),t("p",Lt,s(Math.abs(f.value))+"% ",1),t("div",Nt,[f.value>=0?(c(),C(e(D),{key:0,class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-1 stwlite-tw-text-green-600"})):(c(),C(e(wt),{key:1,class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-1 stwlite-tw-text-red-600"})),t("span",{class:u(f.value>=0?"stwlite-tw-text-green-600":"stwlite-tw-text-red-600")},s(f.value>=0?e(l)("increasing",e(wp.i18n.__)("Increasing","saveto-wishlist-lite-for-woocommerce")):e(l)("decreasing",e(wp.i18n.__)("Decreasing","saveto-wishlist-lite-for-woocommerce"))),3)])]),t("div",Bt,[r(e(D),{class:"stwlite-tw-w-8 stwlite-tw-h-8 stwlite-tw-text-purple-600"})])])]),t("div",Ht,[t("div",Ft,[t("div",null,[t("p",Gt,s(e(l)("avg_wishlist_age",e(wp.i18n.__)("Avg. Wishlist Age","saveto-wishlist-lite-for-woocommerce"))),1),t("p",Ot,s(U.value),1)]),t("div",Rt,[r(e(T),{class:"stwlite-tw-w-8 stwlite-tw-h-8 stwlite-tw-text-orange-600"})])])])]),r(e(nt),{onChange:i[4]||(i[4]=o=>{q.value=o,k()})},{default:p(()=>[r(e(ot),{class:"stwlite-tw-flex stwlite-tw-space-x-4"},{default:p(()=>[(c(),m(S,null,j(O,(o,a)=>r(e(at),{key:a,class:"stwlite-tw-w-full stwlite-tw-cursor-pointer stwlite-tw-border-none stwlite-tw-outline-none stwlite-tw-bg-transparent stwlite-tw-p-0 stwlite-tw-m-0"},{default:p(({selected:n})=>[t("div",{onClick:k,class:u(["stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-center stwlite-tw-space-x-2 stwlite-tw-py-3 stwlite-tw-px-4 stwlite-tw-rounded-md stwlite-tw-text-sm stwlite-tw-font-medium stwlite-tw-transition-all stwlite-tw-duration-200 stwlite-tw-border-2 stwlite-tw-border-solid stwlite-tw-border-violet-600 focus:stwlite-tw-outline-none stwlite-tw-cursor-pointer",n?"stwlite-tw-bg-violet-600 stwlite-tw-text-white stwlite-tw-shadow-sm":"stwlite-tw-text-gray-600 hover:stwlite-tw-text-gray-900 hover:stwlite-tw-bg-gray-50"])},[(c(),C(z(o.icon),{class:"stwlite-tw-w-5 stwlite-tw-h-5"})),t("span",null,s(o.name),1)],2)]),_:2},1024)),64))]),_:1}),r(e(rt),null,{default:p(()=>[r(e(B),null,{default:p(()=>[t("div",Ut,[t("div",Et,[t("div",Zt,[t("div",Qt,[t("div",Yt,[r(e(L),{class:"stwlite-tw-w-5 stwlite-tw-h-5 stwlite-tw-text-violet-600"}),t("h3",Jt,s(e(l)("wishlist_saves_over_time",e(wp.i18n.__)("Wishlist Saves Over Time","saveto-wishlist-lite-for-woocommerce"))),1)]),t("span",Kt,s(G.value),1)])]),t("div",Xt,[t("div",te,[t("div",ee,[(c(!0),m(S,null,j(v.value.slice(-30),(o,a)=>(c(),m("div",{key:a,class:"stwlite-tw-flex stwlite-tw-flex-col stwlite-tw-items-center stwlite-tw-space-y-2"},[t("div",se,[t("div",we,s(o.saves),1),t("div",{class:"stwlite-tw-w-full stwlite-tw-bg-gradient-to-t stwlite-tw-from-violet-500 stwlite-tw-to-violet-400 stwlite-tw-rounded-t-lg stwlite-tw-transition-all stwlite-tw-duration-300 hover:stwlite-tw-from-violet-600 hover:stwlite-tw-to-violet-500 stwlite-tw-cursor-pointer stwlite-tw-relative stwlite-tw-group",style:I({height:"".concat(o.saves/J.value*85,"%")}),onClick:k},i[5]||(i[5]=[t("div",{class:"stwlite-tw-absolute stwlite-tw-inset-0 stwlite-tw-bg-white stwlite-tw-opacity-0 group-hover:stwlite-tw-opacity-10 stwlite-tw-transition-opacity stwlite-tw-rounded-t-lg"},null,-1)]),4)]),t("div",ie,[t("div",le,s(K(o.date)),1),t("div",oe,s(X(o.date)),1)])]))),128))])]),t("div",ae,[t("div",re,[i[6]||(i[6]=t("div",{class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-bg-gradient-to-t stwlite-tw-from-violet-500 stwlite-tw-to-violet-400 stwlite-tw-rounded"},null,-1)),t("span",ne,s(e(l)("wishlist_saves",e(wp.i18n.__)("Wishlist Saves","saveto-wishlist-lite-for-woocommerce"))),1)])])])]),t("div",de,[t("div",ce,[t("h4",_e,[r(e(A),{class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-2 stwlite-tw-text-yellow-500"}),V(" "+s(e(l)("peak_activity_time",e(wp.i18n.__)("Peak Activity Time","saveto-wishlist-lite-for-woocommerce"))),1)]),y.value?(c(),m("div",he,[t("div",ve,[t("div",ge,[(c(),C(z(tt(y.value.hour)),{class:"stwlite-tw-w-8 stwlite-tw-h-8 stwlite-tw-text-yellow-600"})),t("div",null,[t("p",me,s(e(l)("most_active_period",e(wp.i18n.__)("Most Active Period","saveto-wishlist-lite-for-woocommerce"))),1),t("p",ue,s(y.value.period),1)])]),t("div",pe,[t("p",xe,s(y.value.saves),1),t("p",ye,s(e(l)("avg_saves",e(wp.i18n.__)("avg saves","saveto-wishlist-lite-for-woocommerce"))),1)])]),t("div",be,[t("div",fe,[r(e(st),{class:"stwlite-tw-w-8 stwlite-tw-h-8 stwlite-tw-text-blue-600"}),t("div",null,[t("p",ke,s(e(l)("most_active_day",e(wp.i18n.__)("Most Active Day","saveto-wishlist-lite-for-woocommerce"))),1),t("p",Me,s(y.value.day),1)])])])])):$("",!0)]),t("div",Ce,[t("h4",Se,[r(e(D),{class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-2 stwlite-tw-text-green-500"}),V(" "+s(e(l)("trend_insights",e(wp.i18n.__)("Trend Insights","saveto-wishlist-lite-for-woocommerce"))),1)]),t("div",je,[t("div",De,[r(e(lt),{class:"stwlite-tw-w-5 stwlite-tw-h-5 stwlite-tw-text-green-600 stwlite-tw-mt-0.5"}),t("div",null,[t("p",Te,s(e(l)("weekend_boost",e(wp.i18n.__)("Weekend Boost","saveto-wishlist-lite-for-woocommerce"))),1),t("p",Ae,s(e(l)("weekend_boost_desc",e(wp.i18n.__)("Wishlist activity increases by 25% on weekends","saveto-wishlist-lite-for-woocommerce"))),1)])]),t("div",Pe,[r(e(N),{class:"stwlite-tw-w-5 stwlite-tw-h-5 stwlite-tw-text-blue-600 stwlite-tw-mt-0.5"}),t("div",null,[t("p",qe,s(e(l)("consistent_growth",e(wp.i18n.__)("Consistent Growth","saveto-wishlist-lite-for-woocommerce"))),1),t("p",We,s(e(l)("consistent_growth_desc",e(wp.i18n.__)("Steady upward trend in wishlist engagement","saveto-wishlist-lite-for-woocommerce"))),1)])]),t("div",$e,[r(e(A),{class:"stwlite-tw-w-5 stwlite-tw-h-5 stwlite-tw-text-purple-600 stwlite-tw-mt-0.5"}),t("div",null,[t("p",ze,s(e(l)("evening_peak",e(wp.i18n.__)("Evening Peak","saveto-wishlist-lite-for-woocommerce"))),1),t("p",Ie,s(e(l)("evening_peak_desc",e(wp.i18n.__)("Higher engagement during evening hours (6-9 PM)","saveto-wishlist-lite-for-woocommerce"))),1)])])])])])])]),_:1}),r(e(B),null,{default:p(()=>[t("div",Ve,[t("div",Le,[t("div",Ne,[t("div",Be,[t("div",He,[r(e(P),{class:"stwlite-tw-w-5 stwlite-tw-h-5 stwlite-tw-text-orange-600"}),t("h3",Fe,s(e(l)("wishlist_age_distribution",e(wp.i18n.__)("Wishlist Age Distribution","saveto-wishlist-lite-for-woocommerce"))),1)]),t("span",Ge,s(e(l)("time_on_wishlist",e(wp.i18n.__)("Time products spend on wishlists","saveto-wishlist-lite-for-woocommerce"))),1)])]),t("div",Oe,[t("div",Re,[(c(!0),m(S,null,j(g.value,(o,a)=>(c(),m("div",{key:a,class:"stwlite-tw-space-y-2"},[t("div",Ue,[t("div",Ee,[t("div",{class:u(["stwlite-tw-w-10 stwlite-tw-h-10 stwlite-tw-rounded-lg stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-center stwlite-tw-text-sm stwlite-tw-font-bold",a===0?"stwlite-tw-bg-green-100 stwlite-tw-text-green-600":a===1?"stwlite-tw-bg-blue-100 stwlite-tw-text-blue-600":a===2?"stwlite-tw-bg-yellow-100 stwlite-tw-text-yellow-600":a===3?"stwlite-tw-bg-orange-100 stwlite-tw-text-orange-600":a===4?"stwlite-tw-bg-red-100 stwlite-tw-text-red-600":"stwlite-tw-bg-gray-100 stwlite-tw-text-gray-600"])},[r(e(T),{class:"stwlite-tw-w-5 stwlite-tw-h-5"})],2),t("div",null,[t("p",Ze,s(o.range),1),t("p",Qe,s(o.count)+" "+s(e(l)("products",e(wp.i18n.__)("products","saveto-wishlist-lite-for-woocommerce"))),1)])]),t("div",Ye,[t("p",Je,s(o.percentage)+"%",1)])]),t("div",Ke,[t("div",{class:u(["stwlite-tw-h-3 stwlite-tw-rounded-full stwlite-tw-transition-all stwlite-tw-duration-500",a===0?"stwlite-tw-bg-gradient-to-r stwlite-tw-from-green-400 stwlite-tw-to-green-600":a===1?"stwlite-tw-bg-gradient-to-r stwlite-tw-from-blue-400 stwlite-tw-to-blue-600":a===2?"stwlite-tw-bg-gradient-to-r stwlite-tw-from-yellow-400 stwlite-tw-to-yellow-600":a===3?"stwlite-tw-bg-gradient-to-r stwlite-tw-from-orange-400 stwlite-tw-to-orange-600":a===4?"stwlite-tw-bg-gradient-to-r stwlite-tw-from-red-400 stwlite-tw-to-red-600":"stwlite-tw-bg-gradient-to-r stwlite-tw-from-gray-400 stwlite-tw-to-gray-600"]),style:I({width:"".concat(o.percentage,"%")})},null,6)])]))),128))])])]),t("div",Xe,[t("div",ts,[t("div",es,[t("div",ss,[r(e(A),{class:"stwlite-tw-w-6 stwlite-tw-h-6 stwlite-tw-text-green-600"})])]),t("h4",ws,s(e(l)("quick_converters",e(wp.i18n.__)("Quick Converters","saveto-wishlist-lite-for-woocommerce"))),1),t("p",is,s(E.value)+"% ",1),t("p",ls,s(e(l)("quick_converters_desc",e(wp.i18n.__)("Convert within 3 days","saveto-wishlist-lite-for-woocommerce"))),1)]),t("div",os,[t("div",as,[t("div",rs,[r(e(P),{class:"stwlite-tw-w-6 stwlite-tw-h-6 stwlite-tw-text-yellow-600"})])]),t("h4",ns,s(e(l)("consideration_phase",e(wp.i18n.__)("Consideration Phase","saveto-wishlist-lite-for-woocommerce"))),1),t("p",ds,s(Z.value)+"% ",1),t("p",cs,s(e(l)("consideration_phase_desc",e(wp.i18n.__)("4-30 days on wishlist","saveto-wishlist-lite-for-woocommerce"))),1)]),t("div",_s,[t("div",hs,[t("div",vs,[r(e(T),{class:"stwlite-tw-w-6 stwlite-tw-h-6 stwlite-tw-text-red-600"})])]),t("h4",gs,s(e(l)("stale_wishlists",e(wp.i18n.__)("Stale Wishlists","saveto-wishlist-lite-for-woocommerce"))),1),t("p",ms,s(Q.value)+"% ",1),t("p",us,s(e(l)("stale_wishlists_desc",e(wp.i18n.__)("Over 60 days old","saveto-wishlist-lite-for-woocommerce"))),1)])])])]),_:1})]),_:1})]),_:1})]))}});export{Ps as default};
