System.register(["../../../common/index-legacy.DRKniymH.js","../../../common/useUserSearch-legacy.D7csP0Jq.js","../../../common/index-legacy.llL3q2Xl.js","../../partials/index-legacy.DS6a53IG.js","../../../common/Notification.vue_vue_type_script_setup_true_lang-legacy.CmKZ4RFn.js","../../../common/Confirmation.vue_vue_type_script_setup_true_lang-legacy.CIhxBO6H.js","../../../common/SortHeader.vue_vue_type_script_setup_true_lang-legacy.LGe1crYy.js","../../../common/x-legacy.CxaJbVYS.js","../../../common/createLucideIcon-legacy.BkLhZkR_.js","../../../common/transition-legacy.DZbCmrRe.js","../../../common/keyboard-legacy.ItkZdbDJ.js","../../../common/open-closed-legacy.CWZrlJ6W.js","../../../common/use-resolve-button-type-legacy.NaofbMZv.js","../../../common/heart-legacy.DNvm6x8F.js","../../../common/sparkles-legacy.CcXdOfsl.js","../../../common/_plugin-vue_export-helper-legacy.DgAO6S8O.js","../../../common/form-legacy.uLkuyqJm.js","../../../common/use-tree-walker-legacy.7kUa9v59.js","../../../common/pinia-legacy.CU8UeoTp.js","../../../common/micro-task-legacy.D9KKWy-6.js"],(function(t,e){"use strict";var l,s,i,w,o,a,r,n,u,c,d,v,p,m,f,g,h,y,b,_,x,k,S,P,C,j,T,E,D,I,O,N,$,z,F,M,A,B,L,U,V,H,G,q,K,W,R,J,X,Y,Z,Q,tt,et,lt,st,it,wt,ot,at,rt,nt,ut,ct,dt,vt,pt,mt,ft,gt,ht,yt,bt,_t,xt,kt;return{setters:[t=>{l=t.d,s=t.r,i=t.A,w=t.a9,o=t.E,a=t.a8,r=t.M,n=t.D,u=t.aa,c=t.k,d=t.G,v=t.l,p=t.o,m=t.c,f=t.b,g=t.e,h=t.u,y=t.f,b=t.a,_=t.g,x=t.Z,k=t.a2,S=t.w,P=t.L,C=t.h,j=t.N,T=t.H,E=t.a0,D=t.ac,I=t.a1,O=t.T,N=t.P},t=>{$=t.u,z=t.i,F=t.C,M=t.a,A=t.r,B=t.b,L=t.l},t=>{U=t.u},t=>{V=t.H,H=t.T},t=>{G=t._},t=>{q=t._},t=>{K=t._},t=>{W=t.X},t=>{R=t.c},t=>{J=t.q,X=t.N,Y=t.E,Z=t.n,Q=t.d},t=>{tt=t.i,et=t.o,lt=t.j,st=t.b,it=t.w,wt=t.h,ot=t.A,at=t.a,rt=t.f,nt=t.u,ut=t.P,ct=t.e,dt=t.N,vt=t.c,pt=t.d},t=>{mt=t.t,ft=t.i,gt=t.w,ht=t.l},t=>{yt=t.s},t=>{bt=t.H,_t=t.E},t=>{xt=t.S},t=>{kt=t._},null,null,null,null],execute:function(){var e=document.createElement("style");e.textContent=".savetowishlist-tw-filters select[data-v-1110fcae],.savetowishlist-tw-filters input[type=text][data-v-1110fcae],.savetowishlist-tw-filters input[type=date][data-v-1110fcae]{width:275px;font-size:.875rem;line-height:1.25rem;padding:.5rem .75rem;border-color:#d1d5db;border-width:1px;border-radius:.375rem;background-color:#fff}.savetowishlist-tw-filters input[type=text][data-v-1110fcae]{padding-left:2.5rem}\n/*$vite$:1*/",document.head.appendChild(e);
/**
       * @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 St=R("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),Pt=R("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"}]]),Ct=R("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"}]]),jt=R("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);
/**
       * @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.
       */var Tt=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(Tt||{});let Et=Symbol("PopoverContext");function Dt(t){let e=c(Et,null);if(null===e){let e=new Error(`<${t} /> is missing a parent <${$t.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,Dt),e}return e}let It=Symbol("PopoverGroupContext");function Ot(){return c(It,null)}let Nt=Symbol("PopoverPanelContext"),$t=l({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(t,{slots:e,attrs:l,expose:n}){var u;let c=s(null);n({el:c,$el:c});let d=s(1),v=s(null),p=s(null),m=s(null),f=s(null),g=i((()=>tt(c))),h=i((()=>{var t,e;if(!et(v)||!et(f))return!1;for(let r of document.querySelectorAll("body > *"))if(Number(null==r?void 0:r.contains(et(v)))^Number(null==r?void 0:r.contains(et(f))))return!0;let l=lt(),s=l.indexOf(et(v)),i=(s+l.length-1)%l.length,w=(s+1)%l.length,o=l[i],a=l[w];return!(null!=(t=et(f))&&t.contains(o)||null!=(e=et(f))&&e.contains(a))})),y={popoverState:d,buttonId:s(null),panelId:s(null),panel:f,button:v,isPortalled:h,beforePanelSentinel:p,afterPanelSentinel:m,togglePopover(){d.value=st(d.value,{0:1,1:0})},closePopover(){1!==d.value&&(d.value=1)},close(t){y.closePopover();let e=t?t instanceof HTMLElement?t:t.value instanceof HTMLElement?et(t):et(y.button):et(y.button);null==e||e.focus()}};w(Et,y),mt(i((()=>st(d.value,{0:ft.Open,1:ft.Closed}))));let b={buttonId:y.buttonId,panelId:y.panelId,close(){y.closePopover()}},_=Ot(),x=null==_?void 0:_.registerPopover,[k,S]=J(),P=X({mainTreeNodeRef:null==_?void 0:_.mainTreeNodeRef,portals:k,defaultContainers:[v,f]});return o((()=>null==x?void 0:x(b))),Y(null==(u=g.value)?void 0:u.defaultView,"focus",(t=>{var e,l;t.target!==window&&t.target instanceof HTMLElement&&0===d.value&&(function(){var t,e,l,s;return null!=(s=null==_?void 0:_.isFocusWithinPopoverGroup())?s:(null==(t=g.value)?void 0:t.activeElement)&&((null==(e=et(v))?void 0:e.contains(g.value.activeElement))||(null==(l=et(f))?void 0:l.contains(g.value.activeElement)))}()||v&&f&&(P.contains(t.target)||null!=(e=et(y.beforePanelSentinel))&&e.contains(t.target)||null!=(l=et(y.afterPanelSentinel))&&l.contains(t.target)||y.closePopover()))}),!0),gt(P.resolveContainers,((t,e)=>{var l;y.closePopover(),it(e,wt.Loose)||(t.preventDefault(),null==(l=et(v))||l.focus())}),i((()=>0===d.value))),()=>{let s={open:0===d.value,close:y.close};return a(r,[a(S,{},(()=>ot({theirProps:{...t,...l},ourProps:{ref:c},slot:s,slots:e,attrs:l,name:"Popover"}))),a(P.MainTreeNode)])}}}),zt=l({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(t,{attrs:e,slots:l,expose:w}){var d;let v=null!=(d=t.id)?d:`headlessui-popover-button-${at()}`,p=Dt("PopoverButton"),m=i((()=>tt(p.button)));w({el:p.button,$el:p.button}),n((()=>{p.buttonId.value=v})),u((()=>{p.buttonId.value=null}));let f=Ot(),g=null==f?void 0:f.closeOthers,h=c(Nt,null),y=i((()=>null!==h&&h.value===p.panelId.value)),b=s(null),_=`headlessui-focus-sentinel-${at()}`;y.value||o((()=>{p.button.value=et(b)}));let x=yt(i((()=>({as:t.as,type:e.type}))),b);function k(t){var e,l,s,i,w;if(y.value){if(1===p.popoverState.value)return;switch(t.key){case vt.Space:case vt.Enter:t.preventDefault(),null==(l=(e=t.target).click)||l.call(e),p.closePopover(),null==(s=et(p.button))||s.focus()}}else switch(t.key){case vt.Space:case vt.Enter:t.preventDefault(),t.stopPropagation(),1===p.popoverState.value&&(null==g||g(p.buttonId.value)),p.togglePopover();break;case vt.Escape:if(0!==p.popoverState.value)return null==g?void 0:g(p.buttonId.value);if(!et(p.button)||null!=(i=m.value)&&i.activeElement&&(null==(w=et(p.button))||!w.contains(m.value.activeElement)))return;t.preventDefault(),t.stopPropagation(),p.closePopover()}}function S(t){y.value||t.key===vt.Space&&t.preventDefault()}function P(e){var l,s;t.disabled||(y.value?(p.closePopover(),null==(l=et(p.button))||l.focus()):(e.preventDefault(),e.stopPropagation(),1===p.popoverState.value&&(null==g||g(p.buttonId.value)),p.togglePopover(),null==(s=et(p.button))||s.focus()))}function C(t){t.preventDefault(),t.stopPropagation()}let j=Z();function T(){let t=et(p.panel);t&&st(j.value,{[Q.Forwards]:()=>ut(t,ct.First),[Q.Backwards]:()=>ut(t,ct.Last)})===pt.Error&&ut(lt().filter((t=>"true"!==t.dataset.headlessuiFocusGuard)),st(j.value,{[Q.Forwards]:ct.Next,[Q.Backwards]:ct.Previous}),{relativeTo:et(p.button)})}return()=>{let s=0===p.popoverState.value,i={open:s},{...w}=t,o=y.value?{ref:b,type:x.value,onKeydown:k,onClick:P}:{ref:b,id:v,type:x.value,"aria-expanded":0===p.popoverState.value,"aria-controls":et(p.panel)?p.panelId.value:void 0,disabled:!!t.disabled||void 0,onKeydown:k,onKeyup:S,onClick:P,onMousedown:C};return a(r,[ot({ourProps:o,theirProps:{...e,...w},slot:i,attrs:e,slots:l,name:"PopoverButton"}),s&&!y.value&&p.isPortalled.value&&a(rt,{id:_,features:nt.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:T})])}}}),Ft=l({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(t,{attrs:e,slots:l,expose:s}){var c;let d=null!=(c=t.id)?c:`headlessui-popover-panel-${at()}`,{focus:v}=t,p=Dt("PopoverPanel"),m=i((()=>tt(p.panel))),f=`headlessui-focus-sentinel-before-${at()}`,g=`headlessui-focus-sentinel-after-${at()}`;s({el:p.panel,$el:p.panel}),n((()=>{p.panelId.value=d})),u((()=>{p.panelId.value=null})),w(Nt,p.panelId),o((()=>{var t,e;if(!v||0!==p.popoverState.value||!p.panel)return;let l=null==(t=m.value)?void 0:t.activeElement;null!=(e=et(p.panel))&&e.contains(l)||ut(et(p.panel),ct.First)}));let h=ht(),y=i((()=>null!==h?(h.value&ft.Open)===ft.Open:0===p.popoverState.value));function b(t){var e,l;if(t.key===vt.Escape){if(0!==p.popoverState.value||!et(p.panel)||m.value&&(null==(e=et(p.panel))||!e.contains(m.value.activeElement)))return;t.preventDefault(),t.stopPropagation(),p.closePopover(),null==(l=et(p.button))||l.focus()}}function _(t){var e,l,s,i,w;let o=t.relatedTarget;o&&et(p.panel)&&(null!=(e=et(p.panel))&&e.contains(o)||(p.closePopover(),(null!=(s=null==(l=et(p.beforePanelSentinel))?void 0:l.contains)&&s.call(l,o)||null!=(w=null==(i=et(p.afterPanelSentinel))?void 0:i.contains)&&w.call(i,o))&&o.focus({preventScroll:!0})))}let x=Z();function k(){let t=et(p.panel);t&&st(x.value,{[Q.Forwards]:()=>{var e;ut(t,ct.First)===pt.Error&&(null==(e=et(p.afterPanelSentinel))||e.focus())},[Q.Backwards]:()=>{var t;null==(t=et(p.button))||t.focus({preventScroll:!0})}})}function S(){let t=et(p.panel);t&&st(x.value,{[Q.Forwards]:()=>{let t=et(p.button),e=et(p.panel);if(!t)return;let l=lt(),s=l.indexOf(t),i=l.slice(0,s+1),w=[...l.slice(s+1),...i];for(let o of w.slice())if("true"===o.dataset.headlessuiFocusGuard||null!=e&&e.contains(o)){let t=w.indexOf(o);-1!==t&&w.splice(t,1)}ut(w,ct.First,{sorted:!1})},[Q.Backwards]:()=>{var e;ut(t,ct.Previous)===pt.Error&&(null==(e=et(p.button))||e.focus())}})}return()=>{let s={open:0===p.popoverState.value,close:p.close},{focus:i,...w}=t,o={ref:p.panel,id:d,onKeydown:b,onFocusout:v&&0===p.popoverState.value?_:void 0,tabIndex:-1};return ot({ourProps:o,theirProps:{...e,...w},attrs:e,slot:s,slots:{...l,default:(...t)=>{var e;return[a(r,[y.value&&p.isPortalled.value&&a(rt,{id:f,ref:p.beforePanelSentinel,features:nt.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:k}),null==(e=l.default)?void 0:e.call(l,...t),y.value&&p.isPortalled.value&&a(rt,{id:g,ref:p.afterPanelSentinel,features:nt.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:S})])]}},features:dt.RenderStrategy|dt.Static,visible:y.value,name:"PopoverPanel"})}}});const Mt={class:"wishlist-lists"},At={class:"stwlite-tw-bg-gray-50"},Bt={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"},Lt={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"},Ut={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"},Vt={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"},Ht={class:"stwlite-tw-flex stwlite-tw-flex-col sm:stwlite-tw-flex-row stwlite-tw-gap-4"},Gt={value:"",class:"stwlite-tw-italic"},qt={value:"publish"},Kt={value:"draft"},Wt=["aria-label"],Rt={value:""},Jt={class:"stwlite-tw-relative stwlite-tw-w-[340px]"},Xt={class:"stwlite-tw-relative"},Yt={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"},Zt={class:"stwlite-tw-absolute stwlite-tw-inset-y-0 stwlite-tw-right-0 stwlite-tw-flex stwlite-tw-items-center stwlite-tw-pr-2"},Qt=["aria-label"],te={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"},ee={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"},le={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"},se={class:"stwlite-tw-relative"},ie={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"},we=["placeholder"],oe={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"},ae={class:"stwlite-tw-text-sm stwlite-tw-text-gray-600 stwlite-tw-font-medium"},re={value:"created_at"},ne={value:"updated_at"},ue=["max","aria-label"],ce={class:"stwlite-tw-text-sm stwlite-tw-text-gray-500"},de=["min","aria-label"],ve={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"},pe={class:"stwlite-tw-py-1"},me=["checked","onChange"],fe={key:0,class:"stwlite-tw-px-6 stwlite-tw-py-3"},ge={key:1},he={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"},ye=["checked"],be={key:0},_e={key:1},xe={key:2},ke={key:3},Se={key:4},Pe={key:0},Ce={class:"stwlite-tw-px-6 stwlite-tw-py-3 stwlite-tw-border-b stwlite-tw-border-gray-200"},je=["checked","onChange"],Te={key:0},Ee={key:1},De={key:2},Ie={key:3},Oe={key:4},Ne={class:"stwlite-tw-inline-flex stwlite-tw-items-center stwlite-tw-gap-2"},$e=["onClick"],ze=["onClick"],Fe={key:1},Me={class:"stwlite-tw-px-6 stwlite-tw-py-16"},Ae={class:"stwlite-tw-text-center stwlite-tw-max-w-md stwlite-tw-mx-auto"},Be={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"},Le={class:"stwlite-tw-relative"},Ue={class:"stwlite-tw-text-xl stwlite-tw-font-semibold stwlite-tw-text-gray-900 stwlite-tw-mb-3"},Ve={class:"stwlite-tw-text-gray-500 stwlite-tw-mb-6 stwlite-tw-leading-relaxed"},He={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"},Ge={class:"stwlite-tw-text-lg stwlite-tw-font-semibold stwlite-tw-text-gray-900 stwlite-tw-mb-2"},qe={class:"stwlite-tw-text-sm stwlite-tw-text-gray-600 stwlite-tw-mb-4"},Ke={class:"stwlite-tw-flex stwlite-tw-flex-col sm:stwlite-tw-flex-row stwlite-tw-justify-center stwlite-tw-gap-3"},We={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"},Re={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"},Je={key:0,class:"stwlite-tw-p-6 stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-center"},Xe={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-space-x-1","aria-label":"Pagination"},Ye=["disabled"],Ze={class:"stwlite-tw-flex stwlite-tw-space-x-1"},Qe=["onClick"],tl={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"},el=["disabled"],ll={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"},sl={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-text-sm stwlite-tw-text-gray-500"},il={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-space-x-2 stwlite-tw-text-sm stwlite-tw-text-gray-500"},wl="hide_non_admin",ol="stwlite_admin_wishlist_columns",al=l({__name:"Lists",emits:["loadItems"],setup(t,{emit:e}){const l=e,w=[{key:"name",label:d("column_name",wp.i18n.__("Name","saveto-wishlist-lite-for-woocommerce")),weight:2},{key:"user",label:d("column_user",wp.i18n.__("User","saveto-wishlist-lite-for-woocommerce")),weight:2},{key:"status",label:d("column_status",wp.i18n.__("Status","saveto-wishlist-lite-for-woocommerce")),weight:1},{key:"created_at",label:d("date_created",wp.i18n.__("Date Created","saveto-wishlist-lite-for-woocommerce")),weight:2},{key:"updated_at",label:d("last_updated",wp.i18n.__("Last Updated","saveto-wishlist-lite-for-woocommerce")),weight:2}],o=s((()=>{const t=w.reduce(((t,e)=>(t[e.key]=!0,t)),{});try{const e=localStorage.getItem(ol);if(!e)return t;const l=JSON.parse(e);return{...t,...l}}catch{return t}})());v(o,(t=>{try{localStorage.setItem(ol,JSON.stringify(t))}catch{}}),{deep:!0});const a=t=>!1!==o.value[t],u=i((()=>`1fr ${w.filter((t=>a(t.key))).map((t=>`${t.weight}fr`)).join(" ")} 2fr`)),{getCollections:c,deleteCollections:R}=U(),J=s({data:[],total:0,currentPage:1}),X=s([]),Y=s({current:1,pageSize:10,total:0,totalPages:0}),Z=s(!1),Q=s(""),tt=s(""),et=s(wl),lt=s(null),st=s("id"),it=s("DESC"),wt=s("created_at"),ot=s(""),at=s(""),{query:rt,options:nt,fetching:ut,search:ct,reset:dt}=$(),vt=s(!1),pt=s(""),mt=s(null),ft=s("delete"),gt=s(!1),ht=d("table_info",wp.i18n.__("Showing %1$s-%2$s of %3$s items","saveto-wishlist-lite-for-woocommerce")),yt=s(""),kt=s(""),Tt=s(""),Et={title:d("wishlist_lists",wp.i18n.__("Wishlist Lists","saveto-wishlist-lite-for-woocommerce")),description:d("wishlist_lists_description",wp.i18n.__("Manage customer wishlists and preferences","saveto-wishlist-lite-for-woocommerce"))},Dt=s([]),It=i((()=>{if(!ot.value&&!at.value)return{};const t="updated_at"===wt.value?"updated":"created";return{[`${t}_from`]:ot.value,[`${t}_to`]:at.value}})),Ot=async()=>{Z.value=!0,await c({page:Y.value.current,posts_per_page:Y.value.pageSize,search:Q.value,status:tt.value,user_id:lt.value?.value||"",sort_column:st.value,sort_order:it.value,...It.value,hide_empty_non_admin:et.value===wl?1:""}).then((t=>{J.value=t,Z.value=!1,Y.value={...Y.value,total:J.value.total,totalPages:Math.ceil(J.value.total/Y.value.pageSize)},X.value=J.value.data.map((t=>({...t,status:t.status})))})).catch((t=>{t.error?.message&&(yt.value=t.error?.message,Tt.value=d("error",wp.i18n.__("Error","saveto-wishlist-lite-for-woocommerce")),kt.value="error")}))},Nt=(t,e)=>{Y.value={...Y.value,current:t,pageSize:e},Ot()},al=()=>{Y.value={...Y.value,current:1},Ot()},rl=()=>{N("add","new"),l("loadItems","new",0)},nl=async()=>{pt.value=d("confirmDeleteItemsText",wp.i18n.__("Are you sure you want to delete these items?","saveto-wishlist-lite-for-woocommerce")),ft.value="deleteSelected",vt.value=!0},ul=()=>{vt.value=!1,ft.value="",mt.value=null,gt.value=!1},cl=(t,e)=>{const l=Array.isArray(t?.skipped)?t.skipped:[];if(0===l.length)return;const s=0===(t?.count??0)&&e===l.length,i=t?.message||(s?d("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")):d("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")));yt.value=i,Tt.value=d("cannot_delete_last_wishlist_title",wp.i18n.__("Wishlist cannot be deleted","saveto-wishlist-lite-for-woocommerce")),kt.value="error"},dl=async()=>{if(gt.value=!0,"delete"===ft.value)await R([mt.value]).then((t=>{cl(t,1),Ot(),mt.value=null,vt.value=!1,ft.value="",gt.value=!1}));else if("deleteSelected"===ft.value){const t=Dt.value.map((t=>t));await R(t).then((e=>{cl(e,t.length),Ot(),Dt.value=[],vt.value=!1,ft.value="",gt.value=!1}))}else vt.value=!1,ft.value="",gt.value=!1},vl=t=>{t.target.checked?Dt.value=X.value.map((t=>t.id)):Dt.value=[]},pl=t=>{lt.value=t,al()},ml=t=>{st.value===t?it.value="ASC"===it.value?"DESC":"ASC":(st.value=t,it.value="DESC"),al()},fl=()=>{al()},gl=()=>{ot.value="",at.value="",al()},hl=t=>{if(!t)return"—";const e=new Date(t.replace(" ","T"));return Number.isNaN(e.getTime())?"—":e.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})},yl=()=>{lt.value=null,dt(),al()},bl=()=>{yt.value=""},_l=i((()=>Dt.value.length===X.value.length)),xl=i((()=>{const t=Y.value.current,e=Y.value.totalPages,l=[];if(e<=0)return l;if(e<=7)for(let s=1;s<=e;s++)l.push(s);else{l.push(1);const s=1;let i=Math.max(2,t-s),w=Math.min(e-1,t+s);t<=3&&(w=Math.min(5,e-1)),t>=e-2&&(i=Math.max(2,e-4)),i>2&&l.push("ellipsis-start");for(let t=i;t<=w;t++)l.push(t);w<e-1&&l.push("ellipsis-end"),e>1&&l.push(e)}return l}));return n((()=>{Ot()})),(t,e)=>(p(),m(r,null,[f("div",Mt,[f("div",At,[g(h(V),{infoData:Et,showButton:!0,buttonIcon:"plus",buttonText:h(d)("add_new",h(wp.i18n.__)("Add New","saveto-wishlist-lite-for-woocommerce")),onTriggerButton:rl},null,8,["buttonText"]),f("div",Bt,[f("div",Lt,[f("div",Ut,[f("div",Vt,[f("div",Ht,[Dt.value.length>0?(p(),m("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:nl},[g(h(H),{class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-2"}),y(" "+b(h(d)("delete",h(wp.i18n.__)("Delete","saveto-wishlist-lite-for-woocommerce"))),1)])):_("",!0),x(f("select",{"onUpdate:modelValue":e[0]||(e[0]=t=>tt.value=t),onChange:al,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"},[f("option",Gt,b(h(d)("select_status",h(wp.i18n.__)("Select Status","saveto-wishlist-lite-for-woocommerce"))),1),f("option",qt,b(h(d)("publish",h(wp.i18n.__)("Publish","saveto-wishlist-lite-for-woocommerce"))),1),f("option",Kt,b(h(d)("draft",h(wp.i18n.__)("Draft","saveto-wishlist-lite-for-woocommerce"))),1)],544),[[k,tt.value]]),x(f("select",{"onUpdate:modelValue":e[1]||(e[1]=t=>et.value=t),onChange:al,"aria-label":h(d)("empty_filter_label",h(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"},[f("option",Rt,b(h(d)("empty_filter_show_all",h(wp.i18n.__)("Show all wishlists","saveto-wishlist-lite-for-woocommerce"))),1),f("option",{value:wl},b(h(d)("empty_filter_hide_non_admin",h(wp.i18n.__)("Hide empty (non-admin)","saveto-wishlist-lite-for-woocommerce"))),1)],40,Wt),[[k,et.value]]),f("div",Jt,[g(h(L),{modelValue:lt.value,"onUpdate:modelValue":[e[3]||(e[3]=t=>lt.value=t),pl]},{default:S((()=>[f("div",Xt,[f("div",Yt,[g(h(z),{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":t=>t?.label||"",placeholder:h(d)("select_user",h(wp.i18n.__)("Select User","saveto-wishlist-lite-for-woocommerce")),autocomplete:"off",onChange:e[2]||(e[2]=t=>h(ct)(t.target.value))},null,8,["display-value","placeholder"]),f("div",Zt,[lt.value?(p(),m("button",{key:0,type:"button",onClick:P(yl,["prevent"]),"aria-label":h(d)("clear_user_filter",h(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"},[g(h(W),{class:"stwlite-tw-h-4 stwlite-tw-w-4"})],8,Qt)):(p(),C(h(F),{key:1,class:"stwlite-tw-h-5 stwlite-tw-w-5 stwlite-tw-text-gray-400","aria-hidden":"true"}))])]),h(ut)?(p(),m("div",te,b(h(d)("searching",h(wp.i18n.__)("Searching...","saveto-wishlist-lite-for-woocommerce"))),1)):h(nt).length>0?(p(),C(h(M),{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:S((()=>[(p(!0),m(r,null,j(h(nt),(t=>(p(),C(h(A),{key:t.value,value:t,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:S((({selected:e})=>[f("span",{class:T(["stwlite-tw-block stwlite-tw-truncate",e?"stwlite-tw-font-medium":"stwlite-tw-font-normal"])},b(t.label),3),e?(p(),m("span",ee,[g(h(B),{class:"stwlite-tw-h-5 stwlite-tw-w-5","aria-hidden":"true"})])):_("",!0)])),_:2},1032,["value"])))),128))])),_:1})):h(rt)&&!h(ut)&&0===h(nt).length?(p(),m("p",le,b(h(d)("no_users_found",h(wp.i18n.__)("No users found","saveto-wishlist-lite-for-woocommerce"))),1)):_("",!0)])])),_:1},8,["modelValue"])])]),f("div",se,[f("div",ie,[g(h(jt),{class:"stwlite-tw-h-4 stwlite-tw-w-4 stwlite-tw-text-gray-400"})]),x(f("input",{type:"text","onUpdate:modelValue":e[4]||(e[4]=t=>Q.value=t),placeholder:h(d)("search_wishlist",h(wp.i18n.__)("Search Wishlist","saveto-wishlist-lite-for-woocommerce")),onInput:al,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,we),[[E,Q.value]])])]),f("div",oe,[f("span",ae,b(h(d)("filter_by_date",h(wp.i18n.__)("Filter by date","saveto-wishlist-lite-for-woocommerce"))),1),x(f("select",{"onUpdate:modelValue":e[5]||(e[5]=t=>wt.value=t),onChange:fl,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"},[f("option",re,b(h(d)("date_created",h(wp.i18n.__)("Date Created","saveto-wishlist-lite-for-woocommerce"))),1),f("option",ne,b(h(d)("last_updated",h(wp.i18n.__)("Last Updated","saveto-wishlist-lite-for-woocommerce"))),1)],544),[[k,wt.value]]),x(f("input",{"onUpdate:modelValue":e[6]||(e[6]=t=>ot.value=t),type:"date",max:at.value||void 0,onChange:fl,"aria-label":h(d)("date_from",h(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,ue),[[E,ot.value]]),f("span",ce,b(h(d)("to",h(wp.i18n.__)("to","saveto-wishlist-lite-for-woocommerce"))),1),x(f("input",{"onUpdate:modelValue":e[7]||(e[7]=t=>at.value=t),type:"date",min:ot.value||void 0,onChange:fl,"aria-label":h(d)("date_to",h(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,de),[[E,at.value]]),ot.value||at.value?(p(),m("button",{key:0,type:"button",onClick:gl,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"},[g(h(W),{class:"stwlite-tw-w-3 stwlite-tw-h-3 stwlite-tw-mr-1"}),y(" "+b(h(d)("clear",h(wp.i18n.__)("Clear","saveto-wishlist-lite-for-woocommerce"))),1)])):_("",!0),g(h($t),{class:"stwlite-tw-relative sm:stwlite-tw-ml-auto"},{default:S((()=>[g(h(zt),{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:S((()=>[g(h(Pt),{class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-2"}),y(" "+b(h(d)("columns",h(wp.i18n.__)("Columns","saveto-wishlist-lite-for-woocommerce"))),1)])),_:1}),g(h(Ft),{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:S((()=>[f("div",ve,b(h(d)("show_columns",h(wp.i18n.__)("Show columns","saveto-wishlist-lite-for-woocommerce"))),1),f("div",pe,[(p(),m(r,null,j(w,(t=>f("label",{key:t.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"},[f("input",{type:"checkbox",checked:a(t.key),onChange:e=>(t=>{const e=!a(t),l=w.filter((t=>a(t.key))).length;!e&&l<=1||(o.value={...o.value,[t]:e})})(t.key),class:"stwlite-tw-h-4 stwlite-tw-w-4 stwlite-tw-mr-2"},null,40,me),y(" "+b(t.label),1)]))),64))])])),_:1})])),_:1})])]),Z.value?(p(),m("div",fe,e[10]||(e[10]=[D('<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)]))):(p(),m("div",ge,[f("div",he,[f("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:I({"grid-template-columns":u.value})},[f("div",null,[f("input",{type:"checkbox",checked:_l.value,onChange:vl,class:"stwlite-tw-h-4 stwlite-tw-w-4"},null,40,ye)]),a("name")?(p(),m("div",be,[g(K,{label:h(d)("column_name",h(wp.i18n.__)("Name","saveto-wishlist-lite-for-woocommerce")),column:"name",activeColumn:st.value,activeOrder:it.value,onSort:ml},null,8,["label","activeColumn","activeOrder"])])):_("",!0),a("user")?(p(),m("div",_e,b(h(d)("column_user",h(wp.i18n.__)("User","saveto-wishlist-lite-for-woocommerce"))),1)):_("",!0),a("status")?(p(),m("div",xe,b(h(d)("column_status",h(wp.i18n.__)("Status","saveto-wishlist-lite-for-woocommerce"))),1)):_("",!0),a("created_at")?(p(),m("div",ke,[g(K,{label:h(d)("date_created",h(wp.i18n.__)("Date Created","saveto-wishlist-lite-for-woocommerce")),column:"created_at",activeColumn:st.value,activeOrder:it.value,onSort:ml},null,8,["label","activeColumn","activeOrder"])])):_("",!0),a("updated_at")?(p(),m("div",Se,[g(K,{label:h(d)("last_updated",h(wp.i18n.__)("Last Updated","saveto-wishlist-lite-for-woocommerce")),column:"updated_at",activeColumn:st.value,activeOrder:it.value,onSort:ml},null,8,["label","activeColumn","activeOrder"])])):_("",!0),f("div",null,b(h(d)("column_actions",h(wp.i18n.__)("Actions","saveto-wishlist-lite-for-woocommerce"))),1)],4)]),X.value.length>0?(p(),m("div",Pe,[(p(!0),m(r,null,j(X.value,((t,e)=>(p(),m("div",Ce,[f("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:I({"grid-template-columns":u.value})},[f("div",null,[f("input",{type:"checkbox",checked:Dt.value.includes(t.id),onChange:e=>{return l=t.id,void(Dt.value.includes(l)?Dt.value=Dt.value.filter((t=>t!==l)):Dt.value=[...Dt.value,l]);var l}},null,40,je)]),a("name")?(p(),m("div",Te,b(t.name),1)):_("",!0),a("user")?(p(),m("div",Ee,b(t.user_name||""),1)):_("",!0),a("status")?(p(),m("div",De,b("publish"===t.status?h(d)("published",h(wp.i18n.__)("Published","saveto-wishlist-lite-for-woocommerce")):h(d)("draft",h(wp.i18n.__)("Draft","saveto-wishlist-lite-for-woocommerce"))),1)):_("",!0),a("created_at")?(p(),m("div",Ie,b(hl(t.created_at)),1)):_("",!0),a("updated_at")?(p(),m("div",Oe,b(hl(t.updated_at)),1)):_("",!0),f("div",Ne,[f("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:s=>((t,e)=>{l("loadItems",t,e)})(t,e)},[g(h(Ct),{class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-2"}),y(" "+b(h(d)("view_details",h(wp.i18n.__)("Details","saveto-wishlist-lite-for-woocommerce"))),1)],8,$e),f("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:e=>(async t=>{pt.value=d("confirmDeleteText",wp.i18n.__("Are you sure you want to delete this item?","saveto-wishlist-lite-for-woocommerce")),mt.value=t.id,ft.value="delete",vt.value=!0})(t)},[g(h(H),{class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-2"}),y(" "+b(h(d)("delete",h(wp.i18n.__)("Delete","saveto-wishlist-lite-for-woocommerce"))),1)],8,ze)])],4)])))),256))])):(p(),m("div",Fe,[f("div",Me,[f("div",Ae,[f("div",Be,[f("div",Le,[g(h(bt),{class:"stwlite-tw-w-8 stwlite-tw-h-8 stwlite-tw-text-pink-500"}),g(h(xt),{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"})])]),f("h3",Ue,b(h(d)("no_wishlists_yet",h(wp.i18n.__)("No wishlists yet!","saveto-wishlist-lite-for-woocommerce"))),1),f("p",Ve,b(h(d)("no_wishlists_yet_description",h(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),f("div",He,[f("h4",Ge,b(h(d)("get_started_with_save_to_wishlist",h(wp.i18n.__)("Get Started with SaveTo Wishlist","saveto-wishlist-lite-for-woocommerce"))),1),f("p",qe,b(h(d)("learn_how_to_maximize",h(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),f("div",Ke,[f("a",We,[y(b(h(d)("view_documentation",h(wp.i18n.__)("View Documentation","saveto-wishlist-lite-for-woocommerce")))+" ",1),g(h(_t),{class:"stwlite-tw-ml-2 stwlite-tw-w-4 stwlite-tw-h-4"})]),f("a",Re,[y(b(h(d)("get_support",h(wp.i18n.__)("Get Support","saveto-wishlist-lite-for-woocommerce")))+" ",1),g(h(St),{class:"stwlite-tw-ml-2 stwlite-tw-w-4 stwlite-tw-h-4"})])])])])])]))]))]),Y.value.totalPages>0?(p(),m("div",Je,[f("nav",Xe,[f("button",{onClick:e[8]||(e[8]=t=>Nt(Y.value.current-1,Y.value.pageSize)),disabled:1===Y.value.current,class:T(["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",1===Y.value.current?"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"])},b(h(d)("previous",h(wp.i18n.__)("Previous","saveto-wishlist-lite-for-woocommerce"))),11,Ye),g(O,{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:S((()=>[f("div",Ze,[(p(!0),m(r,null,j(xl.value,((t,e)=>(p(),m(r,{key:e},["number"==typeof t?(p(),m("button",{key:0,onClick:e=>Nt(t,Y.value.pageSize),class:T(["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",t===Y.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"])},b(t),11,Qe)):(p(),m("span",tl," ... "))],64)))),128))])])),_:1}),f("button",{onClick:e[9]||(e[9]=t=>Nt(Y.value.current+1,Y.value.pageSize)),disabled:Y.value.current===Y.value.totalPages,class:T(["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",Y.value.current===Y.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"])},b(h(d)("next",h(wp.i18n.__)("Next","saveto-wishlist-lite-for-woocommerce"))),11,el)])])):_("",!0),f("div",ll,[f("div",sl,[f("span",null,b(h(ht).replace("%1$s",((Y.value.current-1)*Y.value.pageSize+1).toString()).replace("%2$s",Math.min(Y.value.current*Y.value.pageSize,Y.value.total).toString()).replace("%3$s",Y.value.total.toString())),1)]),f("div",il,[f("span",null,b(Y.value.pageSize)+" / "+b(h(d)("page",h(wp.i18n.__)("Page","saveto-wishlist-lite-for-woocommerce"))),1)])])])])]),g(q,{isOpen:vt.value,processing:gt.value,title:h(d)("confirmation_title",h(wp.i18n.__)("Confirmation","saveto-wishlist-lite-for-woocommerce")),message:pt.value,confirmText:h(d)("delete",h(wp.i18n.__)("Delete","saveto-wishlist-lite-for-woocommerce")),cancelText:h(d)("cancelButtonText",h(wp.i18n.__)("Cancel","saveto-wishlist-lite-for-woocommerce")),onCloseAction:ul,onConfirmAction:dl},null,8,["isOpen","processing","title","message","confirmText","cancelText"]),yt.value?(p(),C(G,{key:0,message:yt.value,type:kt.value,messageTitle:Tt.value,onCloseNotification:bl},null,8,["message","type","messageTitle"])):_("",!0)],64))}});t("default",kt(al,[["__scopeId","data-v-1110fcae"]]))}}}));
