import{d as vt,r as f,A as N,a9 as Wt,E as Ft,a8 as X,M as W,D as Dt,aa as Rt,k as Nt,G as a,l as me,o as m,c as h,b as s,e as b,u as t,f as K,a as p,g as T,Z as it,a2 as St,w as Z,L as fe,h as ut,N as ct,H as dt,a0 as Ct,ac as he,a1 as zt,T as _e,P as ge}from"../../../common/index.DXvi0yH9.js";import{u as be,i as ye,C as xe,a as ke,r as Se,b as Ce,l as Pe}from"../../../common/useUserSearch.C3nz8dbN.js";import{u as $e}from"../../../common/index.CZtQfmHi.js";import{H as Te,T as Bt}from"../../partials/index.EnUA63nb.js";import{_ as Ee}from"../../../common/Notification.vue_vue_type_script_setup_true_lang.D_vuSbU1.js";import{_ as Ie}from"../../../common/Confirmation.vue_vue_type_script_setup_true_lang.BvpajMdU.js";import{_ as Pt}from"../../../common/SortHeader.vue_vue_type_script_setup_true_lang.KlOgX8qU.js";import{X as jt}from"../../../common/x.ClCP0MsD.js";import{c as mt}from"../../../common/createLucideIcon.D3XWtEmL.js";import{q as Fe,N as De,E as Ne,n as qt,d as Y}from"../../../common/transition.CRNcmuQX.js";import{i as Ot,o as d,j as Mt,b as ot,w as Oe,h as Me,A as Ut,a as rt,f as Tt,u as Et,P as tt,e as J,N as Gt,c as Q,d as It}from"../../../common/keyboard.D4P2wQc7.js";import{t as Ue,i as pt,w as Ae,l as Le}from"../../../common/open-closed.CQX5sZkx.js";import{s as Ve}from"../../../common/use-resolve-button-type.Cleihsk7.js";import{H as ze,E as Be}from"../../../common/heart.BMBCYctQ.js";import{S as je}from"../../../common/sparkles.WrMKOEbV.js";import{_ as Ge}from"../../../common/_plugin-vue_export-helper.DlAUqK2U.js";import"../../../common/form.C3ove4if.js";import"../../../common/use-tree-walker.Bsdod6n3.js";import"../../../common/pinia.D9yoqqEz.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 He=mt("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
 * @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 We=mt("columns-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
 * @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 Re=mt("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @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 qe=mt("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var Ke=(x=>(x[x.Open=0]="Open",x[x.Closed=1]="Closed",x))(Ke||{});let Kt=Symbol("PopoverContext");function At(x){let F=Nt(Kt,null);if(F===null){let I=new Error("<".concat(x," /> is missing a parent <").concat(Xt.name," /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(I,At),I}return F}let Ye=Symbol("PopoverGroupContext");function Yt(){return Nt(Ye,null)}let Jt=Symbol("PopoverPanelContext");function Je(){return Nt(Jt,null)}let Xt=vt({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(x,{slots:F,attrs:I,expose:V}){var G;let E=f(null);V({el:E,$el:E});let o=f(1),r=f(null),A=f(null),O=f(null),C=f(null),S=N(()=>Ot(E)),P=N(()=>{var w,c;if(!d(r)||!d(C))return!1;for(let M of document.querySelectorAll("body > *"))if(Number(M==null?void 0:M.contains(d(r)))^Number(M==null?void 0:M.contains(d(C))))return!0;let u=Mt(),k=u.indexOf(d(r)),D=(k+u.length-1)%u.length,L=(k+1)%u.length,et=u[D],ft=u[L];return!((w=d(C))!=null&&w.contains(et))&&!((c=d(C))!=null&&c.contains(ft))}),n={popoverState:o,buttonId:f(null),panelId:f(null),panel:C,button:r,isPortalled:P,beforePanelSentinel:A,afterPanelSentinel:O,togglePopover(){o.value=ot(o.value,{0:1,1:0})},closePopover(){o.value!==1&&(o.value=1)},close(w){n.closePopover();let c=w?w instanceof HTMLElement?w:w.value instanceof HTMLElement?d(w):d(n.button):d(n.button);c==null||c.focus()}};Wt(Kt,n),Ue(N(()=>ot(o.value,{0:pt.Open,1:pt.Closed})));let z={buttonId:n.buttonId,panelId:n.panelId,close(){n.closePopover()}},$=Yt(),B=$==null?void 0:$.registerPopover,[j,_]=Fe(),g=De({mainTreeNodeRef:$==null?void 0:$.mainTreeNodeRef,portals:j,defaultContainers:[r,C]});function v(){var w,c,u,k;return(k=$==null?void 0:$.isFocusWithinPopoverGroup())!=null?k:((w=S.value)==null?void 0:w.activeElement)&&(((c=d(r))==null?void 0:c.contains(S.value.activeElement))||((u=d(C))==null?void 0:u.contains(S.value.activeElement)))}return Ft(()=>B==null?void 0:B(z)),Ne((G=S.value)==null?void 0:G.defaultView,"focus",w=>{var c,u;w.target!==window&&w.target instanceof HTMLElement&&o.value===0&&(v()||r&&C&&(g.contains(w.target)||(c=d(n.beforePanelSentinel))!=null&&c.contains(w.target)||(u=d(n.afterPanelSentinel))!=null&&u.contains(w.target)||n.closePopover()))},!0),Ae(g.resolveContainers,(w,c)=>{var u;n.closePopover(),Oe(c,Me.Loose)||(w.preventDefault(),(u=d(r))==null||u.focus())},N(()=>o.value===0)),()=>{let w={open:o.value===0,close:n.close};return X(W,[X(_,{},()=>Ut({theirProps:{...x,...I},ourProps:{ref:E},slot:w,slots:F,attrs:I,name:"Popover"})),X(g.MainTreeNode)])}}}),Xe=vt({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(x,{attrs:F,slots:I,expose:V}){var G;let E=(G=x.id)!=null?G:"headlessui-popover-button-".concat(rt()),o=At("PopoverButton"),r=N(()=>Ot(o.button));V({el:o.button,$el:o.button}),Dt(()=>{o.buttonId.value=E}),Rt(()=>{o.buttonId.value=null});let A=Yt(),O=A==null?void 0:A.closeOthers,C=Je(),S=N(()=>C===null?!1:C.value===o.panelId.value),P=f(null),n="headlessui-focus-sentinel-".concat(rt());S.value||Ft(()=>{o.button.value=d(P)});let z=Ve(N(()=>({as:x.as,type:F.type})),P);function $(w){var c,u,k,D,L;if(S.value){if(o.popoverState.value===1)return;switch(w.key){case Q.Space:case Q.Enter:w.preventDefault(),(u=(c=w.target).click)==null||u.call(c),o.closePopover(),(k=d(o.button))==null||k.focus();break}}else switch(w.key){case Q.Space:case Q.Enter:w.preventDefault(),w.stopPropagation(),o.popoverState.value===1&&(O==null||O(o.buttonId.value)),o.togglePopover();break;case Q.Escape:if(o.popoverState.value!==0)return O==null?void 0:O(o.buttonId.value);if(!d(o.button)||(D=r.value)!=null&&D.activeElement&&!((L=d(o.button))!=null&&L.contains(r.value.activeElement)))return;w.preventDefault(),w.stopPropagation(),o.closePopover();break}}function B(w){S.value||w.key===Q.Space&&w.preventDefault()}function j(w){var c,u;x.disabled||(S.value?(o.closePopover(),(c=d(o.button))==null||c.focus()):(w.preventDefault(),w.stopPropagation(),o.popoverState.value===1&&(O==null||O(o.buttonId.value)),o.togglePopover(),(u=d(o.button))==null||u.focus()))}function _(w){w.preventDefault(),w.stopPropagation()}let g=qt();function v(){let w=d(o.panel);if(!w)return;function c(){ot(g.value,{[Y.Forwards]:()=>tt(w,J.First),[Y.Backwards]:()=>tt(w,J.Last)})===It.Error&&tt(Mt().filter(u=>u.dataset.headlessuiFocusGuard!=="true"),ot(g.value,{[Y.Forwards]:J.Next,[Y.Backwards]:J.Previous}),{relativeTo:d(o.button)})}c()}return()=>{let w=o.popoverState.value===0,c={open:w},{...u}=x,k=S.value?{ref:P,type:z.value,onKeydown:$,onClick:j}:{ref:P,id:E,type:z.value,"aria-expanded":o.popoverState.value===0,"aria-controls":d(o.panel)?o.panelId.value:void 0,disabled:x.disabled?!0:void 0,onKeydown:$,onKeyup:B,onClick:j,onMousedown:_};return X(W,[Ut({ourProps:k,theirProps:{...F,...u},slot:c,attrs:F,slots:I,name:"PopoverButton"}),w&&!S.value&&o.isPortalled.value&&X(Tt,{id:n,features:Et.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:v})])}}}),Ze=vt({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(x,{attrs:F,slots:I,expose:V}){var G;let E=(G=x.id)!=null?G:"headlessui-popover-panel-".concat(rt()),{focus:o}=x,r=At("PopoverPanel"),A=N(()=>Ot(r.panel)),O="headlessui-focus-sentinel-before-".concat(rt()),C="headlessui-focus-sentinel-after-".concat(rt());V({el:r.panel,$el:r.panel}),Dt(()=>{r.panelId.value=E}),Rt(()=>{r.panelId.value=null}),Wt(Jt,r.panelId),Ft(()=>{var _,g;if(!o||r.popoverState.value!==0||!r.panel)return;let v=(_=A.value)==null?void 0:_.activeElement;(g=d(r.panel))!=null&&g.contains(v)||tt(d(r.panel),J.First)});let S=Le(),P=N(()=>S!==null?(S.value&pt.Open)===pt.Open:r.popoverState.value===0);function n(_){var g,v;switch(_.key){case Q.Escape:if(r.popoverState.value!==0||!d(r.panel)||A.value&&!((g=d(r.panel))!=null&&g.contains(A.value.activeElement)))return;_.preventDefault(),_.stopPropagation(),r.closePopover(),(v=d(r.button))==null||v.focus();break}}function z(_){var g,v,w,c,u;let k=_.relatedTarget;k&&d(r.panel)&&((g=d(r.panel))!=null&&g.contains(k)||(r.closePopover(),((w=(v=d(r.beforePanelSentinel))==null?void 0:v.contains)!=null&&w.call(v,k)||(u=(c=d(r.afterPanelSentinel))==null?void 0:c.contains)!=null&&u.call(c,k))&&k.focus({preventScroll:!0})))}let $=qt();function B(){let _=d(r.panel);if(!_)return;function g(){ot($.value,{[Y.Forwards]:()=>{var v;tt(_,J.First)===It.Error&&((v=d(r.afterPanelSentinel))==null||v.focus())},[Y.Backwards]:()=>{var v;(v=d(r.button))==null||v.focus({preventScroll:!0})}})}g()}function j(){let _=d(r.panel);if(!_)return;function g(){ot($.value,{[Y.Forwards]:()=>{let v=d(r.button),w=d(r.panel);if(!v)return;let c=Mt(),u=c.indexOf(v),k=c.slice(0,u+1),D=[...c.slice(u+1),...k];for(let L of D.slice())if(L.dataset.headlessuiFocusGuard==="true"||w!=null&&w.contains(L)){let et=D.indexOf(L);et!==-1&&D.splice(et,1)}tt(D,J.First,{sorted:!1})},[Y.Backwards]:()=>{var v;tt(_,J.Previous)===It.Error&&((v=d(r.button))==null||v.focus())}})}g()}return()=>{let _={open:r.popoverState.value===0,close:r.close},{focus:g,...v}=x,w={ref:r.panel,id:E,onKeydown:n,onFocusout:o&&r.popoverState.value===0?z:void 0,tabIndex:-1};return Ut({ourProps:w,theirProps:{...F,...v},attrs:F,slot:_,slots:{...I,default:(...c)=>{var u;return[X(W,[P.value&&r.isPortalled.value&&X(Tt,{id:O,ref:r.beforePanelSentinel,features:Et.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:B}),(u=I.default)==null?void 0:u.call(I,...c),P.value&&r.isPortalled.value&&X(Tt,{id:C,ref:r.afterPanelSentinel,features:Et.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:j})])]}},features:Gt.RenderStrategy|Gt.Static,visible:P.value,name:"PopoverPanel"})}}});const Qe={class:"wishlist-lists"},tl={class:"stwlite-tw-bg-gray-50"},el={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"},ll={class:"stwlite-tw-bg-white stwlite-tw-rounded-lg stwlite-tw-shadow-sm stwlite-tw-border stwlite-tw-border-gray-200 stwlite-tw-mb-6 stwlite-tw-border-solid"},sl={class:"stwlite-tw-px-6 stwlite-tw-py-4 stwlite-tw-border-0 stwlite-tw-border-b stwlite-tw-border-gray-200 stwlite-tw-border-solid"},il={class:"savetowishlist-tw-filters stwlite-tw-flex stwlite-tw-flex-col sm:stwlite-tw-flex-row sm:stwlite-tw-items-center sm:stwlite-tw-justify-between stwlite-tw-gap-4"},ol={class:"stwlite-tw-flex stwlite-tw-flex-col sm:stwlite-tw-flex-row stwlite-tw-gap-4"},wl={value:"",class:"stwlite-tw-italic"},al={value:"publish"},rl={value:"draft"},nl=["aria-label"],ul={value:""},cl={class:"stwlite-tw-relative stwlite-tw-w-[340px]"},dl={class:"stwlite-tw-relative"},pl={class:"stwlite-tw-relative stwlite-tw-w-full stwlite-tw-cursor-default stwlite-tw-overflow-hidden stwlite-tw-rounded-md stwlite-tw-border-solid stwlite-tw-border stwlite-tw-border-gray-300 stwlite-tw-bg-white stwlite-tw-text-left stwlite-tw-shadow-sm sm:stwlite-tw-text-sm"},vl={class:"stwlite-tw-absolute stwlite-tw-inset-y-0 stwlite-tw-right-0 stwlite-tw-flex stwlite-tw-items-center stwlite-tw-pr-2"},ml=["aria-label"],fl={key:0,class:"stwlite-tw-absolute stwlite-tw-z-10 stwlite-tw-mt-1 stwlite-tw-w-full stwlite-tw-bg-white stwlite-tw-py-2 stwlite-tw-px-3 stwlite-tw-text-sm stwlite-tw-text-gray-500 stwlite-tw-rounded-md stwlite-tw-shadow"},hl={key:0,class:"stwlite-tw-absolute stwlite-tw-inset-y-0 stwlite-tw-left-0 stwlite-tw-flex stwlite-tw-items-center stwlite-tw-pl-3 stwlite-tw-text-blue-600"},_l={key:2,class:"stwlite-tw-absolute stwlite-tw-z-10 stwlite-tw-mt-1 stwlite-tw-w-full stwlite-tw-bg-white stwlite-tw-py-2 stwlite-tw-px-3 stwlite-tw-text-sm stwlite-tw-text-gray-500 stwlite-tw-rounded-md stwlite-tw-shadow"},gl={class:"stwlite-tw-relative"},bl={class:"stwlite-tw-absolute stwlite-tw-inset-y-0 stwlite-tw-left-0 stwlite-tw-pl-3 stwlite-tw-flex stwlite-tw-items-center stwlite-tw-pointer-events-none"},yl=["placeholder"],xl={class:"stwlite-tw-flex stwlite-tw-flex-col sm:stwlite-tw-flex-row sm:stwlite-tw-items-center stwlite-tw-gap-4 stwlite-tw-mt-4"},kl={class:"stwlite-tw-text-sm stwlite-tw-text-gray-600 stwlite-tw-font-medium"},Sl={value:"created_at"},Cl={value:"updated_at"},Pl=["max","aria-label"],$l={class:"stwlite-tw-text-sm stwlite-tw-text-gray-500"},Tl=["min","aria-label"],El={class:"stwlite-tw-px-3 stwlite-tw-py-2 stwlite-tw-text-xs stwlite-tw-font-medium stwlite-tw-text-gray-500 stwlite-tw-uppercase stwlite-tw-tracking-wider stwlite-tw-border-0 stwlite-tw-border-b stwlite-tw-border-solid stwlite-tw-border-gray-200"},Il={class:"stwlite-tw-py-1"},Fl=["checked","onChange"],Dl={key:0,class:"stwlite-tw-px-6 stwlite-tw-py-3"},Nl={key:1},Ol={class:"stwlite-tw-px-6 stwlite-tw-py-3 stwlite-tw-bg-gray-50 stwlite-tw-border-0 stwlite-tw-border-b stwlite-tw-border-gray-200 stwlite-tw-border-solid"},Ml=["checked"],Ul={key:0},Al={key:1},Ll={key:2},Vl={key:3},zl={key:4},Bl={key:0},jl={class:"stwlite-tw-px-6 stwlite-tw-py-3 stwlite-tw-border-b stwlite-tw-border-gray-200"},Gl=["checked","onChange"],Hl={key:0},Wl={key:1},Rl={key:2},ql={key:3},Kl={key:4},Yl={class:"stwlite-tw-inline-flex stwlite-tw-items-center stwlite-tw-gap-2"},Jl=["onClick"],Xl=["onClick"],Zl={key:1},Ql={class:"stwlite-tw-px-6 stwlite-tw-py-16"},ts={class:"stwlite-tw-text-center stwlite-tw-max-w-md stwlite-tw-mx-auto"},es={class:"stwlite-tw-mx-auto stwlite-tw-w-20 stwlite-tw-h-20 stwlite-tw-bg-gradient-to-br from-pink-100 to-purple-100 stwlite-tw-rounded-full stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-center stwlite-tw-mb-6"},ls={class:"stwlite-tw-relative"},ss={class:"stwlite-tw-text-xl stwlite-tw-font-semibold stwlite-tw-text-gray-900 stwlite-tw-mb-3"},is={class:"stwlite-tw-text-gray-500 stwlite-tw-mb-6 stwlite-tw-leading-relaxed"},os={class:"stwlite-tw-bg-gradient-to-r from-blue-50 to-purple-50 stwlite-tw-rounded-lg stwlite-tw-p-6 stwlite-tw-border stwlite-tw-border-blue-200"},ws={class:"stwlite-tw-text-lg stwlite-tw-font-semibold stwlite-tw-text-gray-900 stwlite-tw-mb-2"},as={class:"stwlite-tw-text-sm stwlite-tw-text-gray-600 stwlite-tw-mb-4"},rs={class:"stwlite-tw-flex stwlite-tw-flex-col sm:stwlite-tw-flex-row stwlite-tw-justify-center stwlite-tw-gap-3"},ns={href:"https://savetowishlist.com/knowledge-base/?utm_source=stwlite&utm_medium=wishlistpage&utm_campaign=wishlistpagebutton",target:"_blank",class:"stwlite-tw-inline-flex stwlite-tw-items-center stwlite-tw-justify-center stwlite-tw-px-4 stwlite-tw-py-2 stwlite-tw-border stwlite-tw-border-transparent stwlite-tw-text-sm stwlite-tw-font-medium stwlite-tw-rounded-md stwlite-tw-text-white stwlite-tw-bg-blue-600 hover:stwlite-tw-bg-blue-700 focus:stwlite-tw-outline-none focus:stwlite-tw-ring-2 focus:stwlite-tw-ring-offset-2 focus:stwlite-tw-ring-blue-500 stwlite-tw-transition-all stwlite-tw-duration-200 stwlite-tw-transform hover:stwlite-tw-scale-105 hover:stwlite-tw-text-white stwlite-tw-no-underline"},us={href:"https://wordpress.org/support/plugin/saveto-wishlist-lite-for-woocommerce/",target:"_blank",class:"stwlite-tw-inline-flex stwlite-tw-items-center stwlite-tw-justify-center stwlite-tw-px-4 stwlite-tw-py-2 stwlite-tw-border stwlite-tw-border-gray-300 stwlite-tw-text-sm stwlite-tw-font-medium stwlite-tw-rounded-md stwlite-tw-text-gray-700 stwlite-tw-bg-white hover:stwlite-tw-bg-gray-50 focus:stwlite-tw-outline-none focus:stwlite-tw-ring-2 focus:stwlite-tw-ring-offset-2 focus:stwlite-tw-ring-blue-500 stwlite-tw-transition-all stwlite-tw-duration-200 hover:stwlite-tw-text-gray-700 stwlite-tw-no-underline"},cs={key:0,class:"stwlite-tw-p-6 stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-center"},ds={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-space-x-1","aria-label":"Pagination"},ps=["disabled"],vs={class:"stwlite-tw-flex stwlite-tw-space-x-1"},ms=["onClick"],fs={key:1,class:"stwlite-tw-px-3 stwlite-tw-py-1.5 stwlite-tw-text-sm stwlite-tw-font-medium stwlite-tw-text-gray-500"},hs=["disabled"],_s={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-between stwlite-tw-bg-white stwlite-tw-px-6 stwlite-tw-py-3 stwlite-tw-rounded-lg stwlite-tw-shadow-sm stwlite-tw-border stwlite-tw-border-gray-200 stwlite-tw-opacity-50 stwlite-tw-border-solid"},gs={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-text-sm stwlite-tw-text-gray-500"},bs={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-space-x-2 stwlite-tw-text-sm stwlite-tw-text-gray-500"},$t="hide_non_admin",Ht="stwlite_admin_wishlist_columns",ys=vt({__name:"Lists",emits:["loadItems"],setup(x,{emit:F}){const I=F,V=[{key:"name",label:a("column_name",wp.i18n.__("Name","saveto-wishlist-lite-for-woocommerce")),weight:2},{key:"user",label:a("column_user",wp.i18n.__("User","saveto-wishlist-lite-for-woocommerce")),weight:2},{key:"status",label:a("column_status",wp.i18n.__("Status","saveto-wishlist-lite-for-woocommerce")),weight:1},{key:"created_at",label:a("date_created",wp.i18n.__("Date Created","saveto-wishlist-lite-for-woocommerce")),weight:2},{key:"updated_at",label:a("last_updated",wp.i18n.__("Last Updated","saveto-wishlist-lite-for-woocommerce")),weight:2}],E=f((()=>{const i=V.reduce((e,l)=>(e[l.key]=!0,e),{});try{const e=localStorage.getItem(Ht);if(!e)return i;const l=JSON.parse(e);return{...i,...l}}catch(e){return i}})());me(E,i=>{try{localStorage.setItem(Ht,JSON.stringify(i))}catch(e){}},{deep:!0});const o=i=>E.value[i]!==!1,r=i=>{const e=!o(i),l=V.filter(y=>o(y.key)).length;!e&&l<=1||(E.value={...E.value,[i]:e})},A=N(()=>{const i=V.filter(e=>o(e.key)).map(e=>"".concat(e.weight,"fr"));return"1fr ".concat(i.join(" ")," 2fr")}),{getCollections:O,deleteCollections:C}=$e(),S=f({data:[],total:0,currentPage:1}),P=f([]),n=f({current:1,pageSize:10,total:0,totalPages:0}),z=f(!1),$=f(""),B=f(""),j=f($t),_=f(null),g=f("id"),v=f("DESC"),w=f("created_at"),c=f(""),u=f(""),{query:k,options:D,fetching:L,search:et,reset:ft}=be(),M=f(!1),ht=f(""),nt=f(null),R=f("delete"),lt=f(!1),Zt=a("table_info",wp.i18n.__("Showing %1$s-%2$s of %3$s items","saveto-wishlist-lite-for-woocommerce")),wt=f(""),_t=f(""),gt=f(""),Qt={title:a("wishlist_lists",wp.i18n.__("Wishlist Lists","saveto-wishlist-lite-for-woocommerce")),description:a("wishlist_lists_description",wp.i18n.__("Manage customer wishlists and preferences","saveto-wishlist-lite-for-woocommerce"))},U=f([]),te=N(()=>{if(!c.value&&!u.value)return{};const i=w.value==="updated_at"?"updated":"created";return{["".concat(i,"_from")]:c.value,["".concat(i,"_to")]:u.value}}),at=async()=>{var i;z.value=!0,await O({page:n.value.current,posts_per_page:n.value.pageSize,search:$.value,status:B.value,user_id:((i=_.value)==null?void 0:i.value)||"",sort_column:g.value,sort_order:v.value,...te.value,hide_empty_non_admin:j.value===$t?1:""}).then(e=>{S.value=e,z.value=!1,n.value={...n.value,total:S.value.total,totalPages:Math.ceil(S.value.total/n.value.pageSize)},P.value=S.value.data.map(l=>({...l,status:l.status}))}).catch(e=>{var l,y;(l=e.error)!=null&&l.message&&(wt.value=(y=e.error)==null?void 0:y.message,gt.value=a("error",wp.i18n.__("Error","saveto-wishlist-lite-for-woocommerce")),_t.value="error")})},bt=(i,e)=>{n.value={...n.value,current:i,pageSize:e},at()},q=()=>{n.value={...n.value,current:1},at()},ee=()=>{ge("add","new"),I("loadItems","new",0)},le=(i,e)=>{I("loadItems",i,e)},se=async(i,e)=>{ht.value=a("confirmDeleteText",wp.i18n.__("Are you sure you want to delete this item?","saveto-wishlist-lite-for-woocommerce")),nt.value=i.id,R.value="delete",M.value=!0},ie=async()=>{ht.value=a("confirmDeleteItemsText",wp.i18n.__("Are you sure you want to delete these items?","saveto-wishlist-lite-for-woocommerce")),R.value="deleteSelected",M.value=!0},oe=()=>{M.value=!1,R.value="",nt.value=null,lt.value=!1},Lt=(i,e)=>{var st;const l=Array.isArray(i==null?void 0:i.skipped)?i.skipped:[];if(l.length===0)return;const y=((st=i==null?void 0:i.count)!=null?st:0)===0&&e===l.length,H=(i==null?void 0:i.message)||(y?a("cannot_delete_last_wishlist",wp.i18n.__("This wishlist cannot be deleted because it is the owner's only wishlist and would be recreated automatically.","saveto-wishlist-lite-for-woocommerce")):a("cannot_delete_last_wishlist_some",wp.i18n.__("Some wishlists were skipped because each is the owner's only wishlist and would be recreated automatically.","saveto-wishlist-lite-for-woocommerce")));wt.value=H,gt.value=a("cannot_delete_last_wishlist_title",wp.i18n.__("Wishlist cannot be deleted","saveto-wishlist-lite-for-woocommerce")),_t.value="error"},we=async()=>{if(lt.value=!0,R.value==="delete")await C([nt.value]).then(i=>{Lt(i,1),at(),nt.value=null,M.value=!1,R.value="",lt.value=!1});else if(R.value==="deleteSelected"){const i=U.value.map(e=>e);await C(i).then(e=>{Lt(e,i.length),at(),U.value=[],M.value=!1,R.value="",lt.value=!1})}else M.value=!1,R.value="",lt.value=!1},ae=i=>{i.target.checked?U.value=P.value.map(e=>e.id):U.value=[]},re=i=>{U.value.includes(i)?U.value=U.value.filter(e=>e!==i):U.value=[...U.value,i]},ne=i=>{_.value=i,q()},yt=i=>{g.value===i?v.value=v.value==="ASC"?"DESC":"ASC":(g.value=i,v.value="DESC"),q()},xt=()=>{q()},ue=()=>{c.value="",u.value="",q()},Vt=i=>{if(!i)return"—";const e=new Date(i.replace(" ","T"));return Number.isNaN(e.getTime())?"—":e.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})},ce=()=>{_.value=null,ft(),q()},de=()=>{wt.value=""},pe=N(()=>U.value.length===P.value.length),ve=N(()=>{const i=n.value.current,e=n.value.totalPages,l=[];if(e<=0)return l;if(e<=7)for(let y=1;y<=e;y++)l.push(y);else{l.push(1);const y=1;let H=Math.max(2,i-y),st=Math.min(e-1,i+y);i<=3&&(st=Math.min(5,e-1)),i>=e-2&&(H=Math.max(2,e-4)),H>2&&l.push("ellipsis-start");for(let kt=H;kt<=st;kt++)l.push(kt);st<e-1&&l.push("ellipsis-end"),e>1&&l.push(e)}return l});return Dt(()=>{at()}),(i,e)=>(m(),h(W,null,[s("div",Qe,[s("div",tl,[b(t(Te),{infoData:Qt,showButton:!0,buttonIcon:"plus",buttonText:t(a)("add_new",t(wp.i18n.__)("Add New","saveto-wishlist-lite-for-woocommerce")),onTriggerButton:ee},null,8,["buttonText"]),s("div",el,[s("div",ll,[s("div",sl,[s("div",il,[s("div",ol,[U.value.length>0?(m(),h("button",{key:0,type:"button",class:"stwlite-tw-inline-flex stwlite-tw-items-center stwlite-tw-px-4 stwlite-tw-py-2 stwlite-tw-border stwlite-tw-border-transparent stwlite-tw-text-sm stwlite-tw-font-medium stwlite-tw-rounded-md stwlite-tw-text-white stwlite-tw-bg-red-600 hover:stwlite-tw-bg-red-700 focus:stwlite-tw-outline-none focus:stwlite-tw-ring-2 focus:stwlite-tw-ring-offset-2 focus:stwlite-tw-ring-red-500 stwlite-tw-transition-colors stwlite-tw-duration-200",onClick:ie},[b(t(Bt),{class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-2"}),K(" "+p(t(a)("delete",t(wp.i18n.__)("Delete","saveto-wishlist-lite-for-woocommerce"))),1)])):T("",!0),it(s("select",{"onUpdate:modelValue":e[0]||(e[0]=l=>B.value=l),onChange:q,class:"stwlite-tw-block stwlite-tw-w-[340px] stwlite-tw-px-3 stwlite-tw-py-2 stwlite-tw-border stwlite-tw-border-gray-300 stwlite-tw-rounded-md stwlite-tw-shadow-sm focus:stwlite-tw-outline-none focus:stwlite-tw-ring-gray-500 focus:stwlite-tw-border-gray-500 stwlite-tw-text-sm stwlite-tw-text-gray-500 stwlite-tw-border-solid"},[s("option",wl,p(t(a)("select_status",t(wp.i18n.__)("Select Status","saveto-wishlist-lite-for-woocommerce"))),1),s("option",al,p(t(a)("publish",t(wp.i18n.__)("Publish","saveto-wishlist-lite-for-woocommerce"))),1),s("option",rl,p(t(a)("draft",t(wp.i18n.__)("Draft","saveto-wishlist-lite-for-woocommerce"))),1)],544),[[St,B.value]]),it(s("select",{"onUpdate:modelValue":e[1]||(e[1]=l=>j.value=l),onChange:q,"aria-label":t(a)("empty_filter_label",t(wp.i18n.__)("Empty wishlist visibility","saveto-wishlist-lite-for-woocommerce")),class:"stwlite-tw-block stwlite-tw-w-[340px] stwlite-tw-px-3 stwlite-tw-py-2 stwlite-tw-border stwlite-tw-border-gray-300 stwlite-tw-rounded-md stwlite-tw-shadow-sm focus:stwlite-tw-outline-none focus:stwlite-tw-ring-gray-500 focus:stwlite-tw-border-gray-500 stwlite-tw-text-sm stwlite-tw-text-gray-500 stwlite-tw-border-solid"},[s("option",ul,p(t(a)("empty_filter_show_all",t(wp.i18n.__)("Show all wishlists","saveto-wishlist-lite-for-woocommerce"))),1),s("option",{value:$t},p(t(a)("empty_filter_hide_non_admin",t(wp.i18n.__)("Hide empty (non-admin)","saveto-wishlist-lite-for-woocommerce"))),1)],40,nl),[[St,j.value]]),s("div",cl,[b(t(Pe),{modelValue:_.value,"onUpdate:modelValue":[e[3]||(e[3]=l=>_.value=l),ne]},{default:Z(()=>[s("div",dl,[s("div",pl,[b(t(ye),{class:"stwlite-tw-w-full stwlite-tw-border-0 stwlite-tw-py-2 stwlite-tw-pl-3 stwlite-tw-pr-16 stwlite-tw-leading-5 stwlite-tw-text-gray-500 stwlite-tw-text-sm","display-value":l=>(l==null?void 0:l.label)||"",placeholder:t(a)("select_user",t(wp.i18n.__)("Select User","saveto-wishlist-lite-for-woocommerce")),autocomplete:"off",onChange:e[2]||(e[2]=l=>t(et)(l.target.value))},null,8,["display-value","placeholder"]),s("div",vl,[_.value?(m(),h("button",{key:0,type:"button",onClick:fe(ce,["prevent"]),"aria-label":t(a)("clear_user_filter",t(wp.i18n.__)("Clear user filter","saveto-wishlist-lite-for-woocommerce")),class:"stwlite-tw-p-1 stwlite-tw-text-gray-400 hover:stwlite-tw-text-gray-600 stwlite-tw-border-0 stwlite-tw-bg-transparent stwlite-tw-cursor-pointer"},[b(t(jt),{class:"stwlite-tw-h-4 stwlite-tw-w-4"})],8,ml)):(m(),ut(t(xe),{key:1,class:"stwlite-tw-h-5 stwlite-tw-w-5 stwlite-tw-text-gray-400","aria-hidden":"true"}))])]),t(L)?(m(),h("div",fl,p(t(a)("searching",t(wp.i18n.__)("Searching...","saveto-wishlist-lite-for-woocommerce"))),1)):t(D).length>0?(m(),ut(t(ke),{key:1,class:"stwlite-tw-absolute stwlite-tw-z-10 stwlite-tw-mt-1 stwlite-tw-max-h-60 stwlite-tw-w-full stwlite-tw-overflow-auto stwlite-tw-rounded-md stwlite-tw-bg-white stwlite-tw-py-1 stwlite-tw-text-base stwlite-tw-shadow-lg stwlite-tw-ring-1 stwlite-tw-ring-black stwlite-tw-ring-opacity-5 focus:stwlite-tw-outline-none sm:stwlite-tw-text-sm"},{default:Z(()=>[(m(!0),h(W,null,ct(t(D),l=>(m(),ut(t(Se),{key:l.value,value:l,class:"stwlite-tw-relative stwlite-tw-cursor-default stwlite-tw-select-none stwlite-tw-py-2 stwlite-tw-pl-10 stwlite-tw-pr-4"},{default:Z(({selected:y})=>[s("span",{class:dt(["stwlite-tw-block stwlite-tw-truncate",y?"stwlite-tw-font-medium":"stwlite-tw-font-normal"])},p(l.label),3),y?(m(),h("span",hl,[b(t(Ce),{class:"stwlite-tw-h-5 stwlite-tw-w-5","aria-hidden":"true"})])):T("",!0)]),_:2},1032,["value"]))),128))]),_:1})):t(k)&&!t(L)&&t(D).length===0?(m(),h("p",_l,p(t(a)("no_users_found",t(wp.i18n.__)("No users found","saveto-wishlist-lite-for-woocommerce"))),1)):T("",!0)])]),_:1},8,["modelValue"])])]),s("div",gl,[s("div",bl,[b(t(qe),{class:"stwlite-tw-h-4 stwlite-tw-w-4 stwlite-tw-text-gray-400"})]),it(s("input",{type:"text","onUpdate:modelValue":e[4]||(e[4]=l=>$.value=l),placeholder:t(a)("search_wishlist",t(wp.i18n.__)("Search Wishlist","saveto-wishlist-lite-for-woocommerce")),onInput:q,class:"stwlite-tw-block stwlite-tw-w-full sm:stwlite-tw-w-64 stwlite-tw-pl-10 stwlite-tw-pr-3 stwlite-tw-py-2 stwlite-tw-border stwlite-tw-border-gray-300 stwlite-tw-rounded-md stwlite-tw-leading-5 stwlite-tw-bg-white stwlite-tw-placeholder-gray-500 focus:stwlite-tw-outline-none focus:stwlite-tw-placeholder-gray-400 focus:stwlite-tw-ring-1 focus:stwlite-tw-ring-blue-500 focus:stwlite-tw-border-blue-500 stwlite-tw-text-sm"},null,40,yl),[[Ct,$.value]])])]),s("div",xl,[s("span",kl,p(t(a)("filter_by_date",t(wp.i18n.__)("Filter by date","saveto-wishlist-lite-for-woocommerce"))),1),it(s("select",{"onUpdate:modelValue":e[5]||(e[5]=l=>w.value=l),onChange:xt,class:"stwlite-tw-block stwlite-tw-border stwlite-tw-border-gray-300 stwlite-tw-rounded-md stwlite-tw-shadow-sm focus:stwlite-tw-outline-none focus:stwlite-tw-ring-gray-500 focus:stwlite-tw-border-gray-500 stwlite-tw-text-sm stwlite-tw-text-gray-500 stwlite-tw-border-solid"},[s("option",Sl,p(t(a)("date_created",t(wp.i18n.__)("Date Created","saveto-wishlist-lite-for-woocommerce"))),1),s("option",Cl,p(t(a)("last_updated",t(wp.i18n.__)("Last Updated","saveto-wishlist-lite-for-woocommerce"))),1)],544),[[St,w.value]]),it(s("input",{"onUpdate:modelValue":e[6]||(e[6]=l=>c.value=l),type:"date",max:u.value||void 0,onChange:xt,"aria-label":t(a)("date_from",t(wp.i18n.__)("From date","saveto-wishlist-lite-for-woocommerce")),class:"stwlite-tw-block stwlite-tw-border stwlite-tw-border-gray-300 stwlite-tw-rounded-md stwlite-tw-shadow-sm focus:stwlite-tw-outline-none focus:stwlite-tw-ring-gray-500 focus:stwlite-tw-border-gray-500 stwlite-tw-text-sm stwlite-tw-text-gray-500 stwlite-tw-border-solid"},null,40,Pl),[[Ct,c.value]]),s("span",$l,p(t(a)("to",t(wp.i18n.__)("to","saveto-wishlist-lite-for-woocommerce"))),1),it(s("input",{"onUpdate:modelValue":e[7]||(e[7]=l=>u.value=l),type:"date",min:c.value||void 0,onChange:xt,"aria-label":t(a)("date_to",t(wp.i18n.__)("To date","saveto-wishlist-lite-for-woocommerce")),class:"stwlite-tw-block stwlite-tw-border stwlite-tw-border-gray-300 stwlite-tw-rounded-md stwlite-tw-shadow-sm focus:stwlite-tw-outline-none focus:stwlite-tw-ring-gray-500 focus:stwlite-tw-border-gray-500 stwlite-tw-text-sm stwlite-tw-text-gray-500 stwlite-tw-border-solid"},null,40,Tl),[[Ct,u.value]]),c.value||u.value?(m(),h("button",{key:0,type:"button",onClick:ue,class:"stwlite-tw-inline-flex stwlite-tw-items-center stwlite-tw-px-2 stwlite-tw-py-1 stwlite-tw-text-xs stwlite-tw-text-gray-500 hover:stwlite-tw-text-gray-700 stwlite-tw-bg-transparent stwlite-tw-border-0 stwlite-tw-cursor-pointer"},[b(t(jt),{class:"stwlite-tw-w-3 stwlite-tw-h-3 stwlite-tw-mr-1"}),K(" "+p(t(a)("clear",t(wp.i18n.__)("Clear","saveto-wishlist-lite-for-woocommerce"))),1)])):T("",!0),b(t(Xt),{class:"stwlite-tw-relative sm:stwlite-tw-ml-auto"},{default:Z(()=>[b(t(Xe),{class:"stwlite-tw-inline-flex stwlite-tw-items-center stwlite-tw-px-3 stwlite-tw-py-2 stwlite-tw-border stwlite-tw-border-solid stwlite-tw-border-gray-300 stwlite-tw-rounded-md stwlite-tw-shadow-sm stwlite-tw-bg-white stwlite-tw-text-sm stwlite-tw-text-gray-700 hover:stwlite-tw-bg-gray-50 focus:stwlite-tw-outline-none focus:stwlite-tw-ring-1 focus:stwlite-tw-ring-gray-500 focus:stwlite-tw-border-gray-500 stwlite-tw-cursor-pointer"},{default:Z(()=>[b(t(We),{class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-2"}),K(" "+p(t(a)("columns",t(wp.i18n.__)("Columns","saveto-wishlist-lite-for-woocommerce"))),1)]),_:1}),b(t(Ze),{class:"stwlite-tw-absolute stwlite-tw-right-0 stwlite-tw-z-10 stwlite-tw-mt-1 stwlite-tw-w-56 stwlite-tw-bg-white stwlite-tw-rounded-md stwlite-tw-shadow-lg stwlite-tw-ring-1 stwlite-tw-ring-black stwlite-tw-ring-opacity-5 focus:stwlite-tw-outline-none"},{default:Z(()=>[s("div",El,p(t(a)("show_columns",t(wp.i18n.__)("Show columns","saveto-wishlist-lite-for-woocommerce"))),1),s("div",Il,[(m(),h(W,null,ct(V,l=>s("label",{key:l.key,class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-px-3 stwlite-tw-py-2 stwlite-tw-text-sm stwlite-tw-text-gray-700 hover:stwlite-tw-bg-gray-50 stwlite-tw-cursor-pointer"},[s("input",{type:"checkbox",checked:o(l.key),onChange:y=>r(l.key),class:"stwlite-tw-h-4 stwlite-tw-w-4 stwlite-tw-mr-2"},null,40,Fl),K(" "+p(l.label),1)])),64))])]),_:1})]),_:1})])]),z.value?(m(),h("div",Dl,e[10]||(e[10]=[he('<div class="stwlite-tw-animate-pulse stwlite-tw-flex stwlite-tw-space-x-4" data-v-1110fcae><div class="stwlite-tw-flex-1 stwlite-tw-space-y-6 stwlite-tw-py-1" data-v-1110fcae><div class="stwlite-tw-h-2 stwlite-tw-bg-slate-700 stwlite-tw-rounded" data-v-1110fcae></div><div class="stwlite-tw-space-y-3" data-v-1110fcae><div class="stwlite-tw-grid stwlite-tw-grid-cols-3 stwlite-tw-gap-4" data-v-1110fcae><div class="stwlite-tw-h-2 stwlite-tw-bg-slate-700 stwlite-tw-rounded stwlite-tw-col-span-2" data-v-1110fcae></div><div class="stwlite-tw-h-2 stwlite-tw-bg-slate-700 stwlite-tw-rounded stwlite-tw-col-span-1" data-v-1110fcae></div></div><div class="stwlite-tw-h-2 stwlite-tw-bg-slate-700 stwlite-tw-rounded" data-v-1110fcae></div></div></div></div>',1)]))):(m(),h("div",Nl,[s("div",Ol,[s("div",{class:"stwlite-tw-grid stwlite-tw-gap-6 stwlite-tw-items-center stwlite-tw-text-left stwlite-tw-text-xs stwlite-tw-font-medium stwlite-tw-text-gray-500 stwlite-tw-uppercase stwlite-tw-tracking-wider",style:zt({"grid-template-columns":A.value})},[s("div",null,[s("input",{type:"checkbox",checked:pe.value,onChange:ae,class:"stwlite-tw-h-4 stwlite-tw-w-4"},null,40,Ml)]),o("name")?(m(),h("div",Ul,[b(Pt,{label:t(a)("column_name",t(wp.i18n.__)("Name","saveto-wishlist-lite-for-woocommerce")),column:"name",activeColumn:g.value,activeOrder:v.value,onSort:yt},null,8,["label","activeColumn","activeOrder"])])):T("",!0),o("user")?(m(),h("div",Al,p(t(a)("column_user",t(wp.i18n.__)("User","saveto-wishlist-lite-for-woocommerce"))),1)):T("",!0),o("status")?(m(),h("div",Ll,p(t(a)("column_status",t(wp.i18n.__)("Status","saveto-wishlist-lite-for-woocommerce"))),1)):T("",!0),o("created_at")?(m(),h("div",Vl,[b(Pt,{label:t(a)("date_created",t(wp.i18n.__)("Date Created","saveto-wishlist-lite-for-woocommerce")),column:"created_at",activeColumn:g.value,activeOrder:v.value,onSort:yt},null,8,["label","activeColumn","activeOrder"])])):T("",!0),o("updated_at")?(m(),h("div",zl,[b(Pt,{label:t(a)("last_updated",t(wp.i18n.__)("Last Updated","saveto-wishlist-lite-for-woocommerce")),column:"updated_at",activeColumn:g.value,activeOrder:v.value,onSort:yt},null,8,["label","activeColumn","activeOrder"])])):T("",!0),s("div",null,p(t(a)("column_actions",t(wp.i18n.__)("Actions","saveto-wishlist-lite-for-woocommerce"))),1)],4)]),P.value.length>0?(m(),h("div",Bl,[(m(!0),h(W,null,ct(P.value,(l,y)=>(m(),h("div",jl,[s("div",{class:"stwlite-tw-grid stwlite-tw-gap-6 stwlite-tw-items-center stwlite-tw-text-left stwlite-tw-text-xs stwlite-tw-text-gray-500 stwlite-tw-tracking-wider",style:zt({"grid-template-columns":A.value})},[s("div",null,[s("input",{type:"checkbox",checked:U.value.includes(l.id),onChange:H=>re(l.id)},null,40,Gl)]),o("name")?(m(),h("div",Hl,p(l.name),1)):T("",!0),o("user")?(m(),h("div",Wl,p(l.user_name||""),1)):T("",!0),o("status")?(m(),h("div",Rl,p(l.status==="publish"?t(a)("published",t(wp.i18n.__)("Published","saveto-wishlist-lite-for-woocommerce")):t(a)("draft",t(wp.i18n.__)("Draft","saveto-wishlist-lite-for-woocommerce"))),1)):T("",!0),o("created_at")?(m(),h("div",ql,p(Vt(l.created_at)),1)):T("",!0),o("updated_at")?(m(),h("div",Kl,p(Vt(l.updated_at)),1)):T("",!0),s("div",Yl,[s("button",{class:"wishlist-lists-view-details stwlite-tw-flex stwlite-tw-inline-flex stwlite-tw-items-center stwlite-tw-px-3 stwlite-tw-py-2 stwlite-tw-border stwlite-tw-border-transparent stwlite-tw-text-sm stwlite-tw-font-medium stwlite-tw-rounded-md stwlite-tw-text-white stwlite-tw-bg-blue-600 hover:stwlite-tw-bg-blue-700 focus:stwlite-tw-outline-none focus:stwlite-tw-ring-2 focus:stwlite-tw-ring-offset-2 focus:stwlite-tw-ring-blue-500 stwlite-tw-transition-colors stwlite-tw-duration-200 stwlite-tw-cursor-pointer",onClick:H=>le(l,y)},[b(t(Re),{class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-2"}),K(" "+p(t(a)("view_details",t(wp.i18n.__)("Details","saveto-wishlist-lite-for-woocommerce"))),1)],8,Jl),s("button",{class:"wishlist-lists-delete stwlite-tw-flex stwlite-tw-inline-flex stwlite-tw-items-center stwlite-tw-px-3 stwlite-tw-py-2 stwlite-tw-border stwlite-tw-border-transparent stwlite-tw-text-sm stwlite-tw-font-medium stwlite-tw-rounded-md stwlite-tw-text-white stwlite-tw-bg-red-600 hover:stwlite-tw-bg-red-700 focus:stwlite-tw-outline-none focus:stwlite-tw-ring-2 focus:stwlite-tw-ring-offset-2 focus:stwlite-tw-ring-red-500 stwlite-tw-transition-colors stwlite-tw-duration-200 stwlite-tw-cursor-pointer",onClick:H=>se(l)},[b(t(Bt),{class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-2"}),K(" "+p(t(a)("delete",t(wp.i18n.__)("Delete","saveto-wishlist-lite-for-woocommerce"))),1)],8,Xl)])],4)]))),256))])):(m(),h("div",Zl,[s("div",Ql,[s("div",ts,[s("div",es,[s("div",ls,[b(t(ze),{class:"stwlite-tw-w-8 stwlite-tw-h-8 stwlite-tw-text-pink-500"}),b(t(je),{class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-text-purple-500 stwlite-tw-absolute stwlite-tw-top-1 stwlite-tw-right-1"})])]),s("h3",ss,p(t(a)("no_wishlists_yet",t(wp.i18n.__)("No wishlists yet!","saveto-wishlist-lite-for-woocommerce"))),1),s("p",is,p(t(a)("no_wishlists_yet_description",t(wp.i18n.__)("Your customers haven't created any wishlists yet. Once they start saving their favorite products, you'll see all their wishlist activity here.","saveto-wishlist-lite-for-woocommerce"))),1),s("div",os,[s("h4",ws,p(t(a)("get_started_with_save_to_wishlist",t(wp.i18n.__)("Get Started with SaveTo Wishlist","saveto-wishlist-lite-for-woocommerce"))),1),s("p",as,p(t(a)("learn_how_to_maximize",t(wp.i18n.__)("Learn how to maximize your wishlist functionality and boost customer engagement with our comprehensive guides and best practices.","saveto-wishlist-lite-for-woocommerce"))),1),s("div",rs,[s("a",ns,[K(p(t(a)("view_documentation",t(wp.i18n.__)("View Documentation","saveto-wishlist-lite-for-woocommerce")))+" ",1),b(t(Be),{class:"stwlite-tw-ml-2 stwlite-tw-w-4 stwlite-tw-h-4"})]),s("a",us,[K(p(t(a)("get_support",t(wp.i18n.__)("Get Support","saveto-wishlist-lite-for-woocommerce")))+" ",1),b(t(He),{class:"stwlite-tw-ml-2 stwlite-tw-w-4 stwlite-tw-h-4"})])])])])])]))]))]),n.value.totalPages>0?(m(),h("div",cs,[s("nav",ds,[s("button",{onClick:e[8]||(e[8]=l=>bt(n.value.current-1,n.value.pageSize)),disabled:n.value.current===1,class:dt(["stwlite-tw-px-3 stwlite-tw-py-1.5 stwlite-tw-rounded-lg stwlite-tw-border stwlite-tw-border-solid stwlite-tw-text-sm stwlite-tw-font-medium stwlite-tw-cursor-pointer",n.value.current===1?"stwlite-tw-text-gray-400 stwlite-tw-bg-gray-100 stwlite-tw-cursor-not-allowed":"stwlite-tw-text-gray-700 stwlite-tw-bg-white hover:stwlite-tw-bg-gray-50 stwlite-tw-border-gray-300"])},p(t(a)("previous",t(wp.i18n.__)("Previous","saveto-wishlist-lite-for-woocommerce"))),11,ps),b(_e,{enter:"transition ease-out duration-200","enter-from":"opacity-0 translate-y-1","enter-to":"opacity-100 translate-y-0",leave:"transition ease-in duration-150","leave-from":"opacity-100 translate-y-0","leave-to":"opacity-0 translate-y-1"},{default:Z(()=>[s("div",vs,[(m(!0),h(W,null,ct(ve.value,(l,y)=>(m(),h(W,{key:y},[typeof l=="number"?(m(),h("button",{key:0,onClick:H=>bt(l,n.value.pageSize),class:dt(["stwlite-tw-px-3 stwlite-tw-py-1.5 stwlite-tw-rounded-lg stwlite-tw-text-sm stwlite-tw-font-medium stwlite-tw-border stwlite-tw-border-solid stwlite-tw-cursor-pointer",l===n.value.current?"stwlite-tw-bg-blue-600 stwlite-tw-text-white stwlite-tw-border-blue-600":"stwlite-tw-bg-white stwlite-tw-text-gray-700 stwlite-tw-border-gray-300 hover:stwlite-tw-bg-gray-50"])},p(l),11,ms)):(m(),h("span",fs," ... "))],64))),128))])]),_:1}),s("button",{onClick:e[9]||(e[9]=l=>bt(n.value.current+1,n.value.pageSize)),disabled:n.value.current===n.value.totalPages,class:dt(["stwlite-tw-px-3 stwlite-tw-py-1.5 stwlite-tw-rounded-lg stwlite-tw-border stwlite-tw-border-solid stwlite-tw-text-sm stwlite-tw-font-medium stwlite-tw-cursor-pointer",n.value.current===n.value.totalPages?"stwlite-tw-text-gray-400 stwlite-tw-bg-gray-100 stwlite-tw-cursor-not-allowed":"stwlite-tw-text-gray-700 stwlite-tw-bg-white hover:stwlite-tw-bg-gray-50 stwlite-tw-border-gray-300"])},p(t(a)("next",t(wp.i18n.__)("Next","saveto-wishlist-lite-for-woocommerce"))),11,hs)])])):T("",!0),s("div",_s,[s("div",gs,[s("span",null,p(t(Zt).replace("%1$s",((n.value.current-1)*n.value.pageSize+1).toString()).replace("%2$s",Math.min(n.value.current*n.value.pageSize,n.value.total).toString()).replace("%3$s",n.value.total.toString())),1)]),s("div",bs,[s("span",null,p(n.value.pageSize)+" / "+p(t(a)("page",t(wp.i18n.__)("Page","saveto-wishlist-lite-for-woocommerce"))),1)])])])])]),b(Ie,{isOpen:M.value,processing:lt.value,title:t(a)("confirmation_title",t(wp.i18n.__)("Confirmation","saveto-wishlist-lite-for-woocommerce")),message:ht.value,confirmText:t(a)("delete",t(wp.i18n.__)("Delete","saveto-wishlist-lite-for-woocommerce")),cancelText:t(a)("cancelButtonText",t(wp.i18n.__)("Cancel","saveto-wishlist-lite-for-woocommerce")),onCloseAction:oe,onConfirmAction:we},null,8,["isOpen","processing","title","message","confirmText","cancelText"]),wt.value?(m(),ut(Ee,{key:0,message:wt.value,type:_t.value,messageTitle:gt.value,onCloseNotification:de},null,8,["message","type","messageTitle"])):T("",!0)],64))}}),js=Ge(ys,[["__scopeId","data-v-1110fcae"]]);export{js as default};
