PageSourceSearch

https://mayobooks.ie/wp-content/plugins/saveto-wishlist-lite-for-w…/apps/wishlist/components/Lists.DUqeyquf.js

js mayobooks.ie collected 2026-09-24 09:51:46 UTC 41,687 bytes, 21 lines download raw bytes

1import{d as pt,r as f,A as O,a9 as Rt,G as Dt,a8 as J,M as H,F as Nt,aa as qt,k as Ot,R as w,l as fe,ai as he,o as m,c as h,b as l,e as b,u as t,f as q,a as p,g as C,Z as lt,a4 as Ct,w as X,L as _e,h as ut,N as ct,O as at,a0 as Pt,ad as ge,a1 as zt,T as be,Q as ye}from"../../../common/index.CcCOGZoz.js";import{u as xe,i as ke,C as Se,a as Ce,r as Pe,b as $e,l as Ee}from"../../../common/useUserSearch.CJWpYuJ_.js";import{d as Ie,S as Te}from"../../../common/debounce.CfZh6USj.js";import{u as Fe}from"../../../common/index.C33GKGXM.js";import{H as De,T as jt}from"../../partials/index.B-zo-Vzf.js";import{N as Ne}from"../../../common/Notification.DgqsJxzf.js";import{_ as Oe}from"../../../common/Confirmation.vue_vue_type_script_setup_true_lang.CRuoCoJd.js";import{_ as $t}from"../../../common/SortHeader.vue_vue_type_script_setup_true_lang.pzvzVXaE.js";import{X as Gt}from"../../../common/x.DhjzTFt_.js";import{c as vt}from"../../../common/createLucideIcon.BrWD07WM.js";import{q as Me,N as Ue,E as Ae,n as Kt,d as K}from"../../../common/transition.BhLyFBSf.js";import{i as Mt,o as d,j as Ut,b as it,w as Le,h as Ve,A as At,a as rt,f as It,u as Tt,P as tt,e as Y,N as Ht,c as Z,d as Ft}from"../../../common/keyboard.4sW_uif3.js";import{t as Be,i as dt,w as ze,l as je}from"../../../common/open-closed.sd1FXrzh.js";import{s as Ge}from"../../../common/use-resolve-button-type.CViCabRv.js";import{H as He,E as We}from"../../../common/heart.C-vhBG5J.js";import{S as Re}from"../../../common/sparkles.DFe9P93j.js";import{_ as qe}from"../../../common/_plugin-vue_export-helper.DlAUqK2U.js";import"../../../common/form.bWehAenY.js";import"../../../common/use-tree-walker.iGvgRECn.js";import"../../../common/pinia.BSpEA8zF.js";import"../../../common/restApi.Dc9AUVTb.js";import"../../../common/key.BWmR6xUC.js";import"../../../common/micro-task.CxIZtCgj.js";/**
2 * @license lucide-vue-next v0.544.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const Ke=vt("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
7 * @license lucide-vue-next v0.544.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const Ye=vt("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"}]]);/**
12 * @license lucide-vue-next v0.544.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const Je=vt("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"}]]);/**
17 * @license lucide-vue-next v0.544.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */const Qe=vt("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var Xe=(y=>(y[y.Open=0]="Open",y[y.Closed=1]="Closed",y))(Xe||{});let Yt=Symbol("PopoverContext");function Lt(y){let D=Ot(Yt,null);if(D===null){let T=new Error("<".concat(y," /> is missing a parent <").concat(Xt.name," /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(T,Lt),T}return D}let Ze=Symbol("PopoverGroupContext");function Jt(){return Ot(Ze,null)}let Qt=Symbol("PopoverPanelContext");function ts(){return Ot(Qt,null)}let Xt=pt({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(y,{slots:D,attrs:T,expose:B}){var G;let I=f(null);B({el:I,$el:I});let i=f(1),r=f(null),L=f(null),M=f(null),P=f(null),k=O(()=>Mt(I)),$=O(()=>{var o,c;if(!d(r)||!d(P))return!1;for(let U of document.querySelectorAll("body > *"))if(Number(U==null?void 0:U.contains(d(r)))^Number(U==null?void 0:U.contains(d(P))))return!0;let u=Ut(),x=u.indexOf(d(r)),N=(x+u.length-1)%u.length,V=(x+1)%u.length,et=u[N],mt=u[V];return!((o=d(P))!=null&&o.contains(et))&&!((c=d(P))!=null&&c.contains(mt))}),n={popoverState:i,buttonId:f(null),panelId:f(null),panel:P,button:r,isPortalled:$,beforePanelSentinel:L,afterPanelSentinel:M,togglePopover(){i.value=it(i.value,{0:1,1:0})},closePopover(){i.value!==1&&(i.value=1)},close(o){n.closePopover();let c=o?o instanceof HTMLElement?o:o.value instanceof HTMLElement?d(o):d(n.button):d(n.button);c==null||c.focus()}};Rt(Yt,n),Be(O(()=>it(i.value,{0:dt.Open,1:dt.Closed})));let F={buttonId:n.buttonId,panelId:n.panelId,close(){n.closePopover()}},E=Jt(),z=E==null?void 0:E.registerPopover,[j,_]=Me(),g=Ue({mainTreeNodeRef:E==null?void 0:E.mainTreeNodeRef,portals:j,defaultContainers:[r,P]});function v(){var o,c,u,x;return(x=E==null?void 0:E.isFocusWithinPopoverGroup())!=null?x:((o=k.value)==null?void 0:o.activeElement)&&(((c=d(r))==null?void 0:c.contains(k.value.activeElement))||((u=d(P))==null?void 0:u.contains(k.value.activeElement)))}return Dt(()=>z==null?void 0:z(F)),Ae((G=k.value)==null?void 0:G.defaultView,"focus",o=>{var c,u;o.target!==window&&o.target instanceof HTMLElement&&i.value===0&&(v()||r&&P&&(g.contains(o.target)||(c=d(n.beforePanelSentinel))!=null&&c.contains(o.target)||(u=d(n.afterPanelSentinel))!=null&&u.contains(o.target)||n.closePopover()))}
vendor: 2,029 bytes, line 21
21,!0),ze(g.resolveContainers,(o,c)=>{var u;n.closePopover(),Le(c,Ve.Loose)||(o.preventDefault(),(u=d(r))==null||u.focus())},O(()=>i.value===0)),()=>{let o={open:i.value===0,close:n.close};return J(H,[J(_,{},()=>At({theirProps:{...y,...T},ourProps:{ref:I},slot:o,slots:D,attrs:T,name:"Popover"})),J(g.MainTreeNode)])}}}),es=pt({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(y,{attrs:D,slots:T,expose:B}){var G;let I=(G=y.id)!=null?G:"headlessui-popover-button-".concat(rt()),i=Lt("PopoverButton"),r=O(()=>Mt(i.button));B({el:i.button,$el:i.button}),Nt(()=>{i.buttonId.value=I}),qt(()=>{i.buttonId.value=null});let L=Jt(),M=L==null?void 0:L.closeOthers,P=ts(),k=O(()=>P===null?!1:P.value===i.panelId.value),$=f(null),n="headlessui-focus-sentinel-".concat(rt());k.value||Dt(()=>{i.button.value=d($)});let F=Ge(O(()=>({as:y.as,type:D.type})),$);function E(o){var c,u,x,N,V;if(k.value){if(i.popoverState.value===1)return;switch(o.key){case Z.Space:case Z.Enter:o.preventDefault(),(u=(c=o.target).click)==null||u.call(c),i.closePopover(),(x=d(i.button))==null||x.focus();break}}else switch(o.key){case Z.Space:case Z.Enter:o.preventDefault(),o.stopPropagation(),i.popoverState.value===1&&(M==null||M(i.buttonId.value)),i.togglePopover();break;case Z.Escape:if(i.popoverState.value!==0)return M==null?void 0:M(i.buttonId.value);if(!d(i.button)||(N=r.value)!=null&&N.activeElement&&!((V=d(i.button))!=null&&V.contains(r.value.activeElement)))return;o.preventDefault(),o.stopPropagation(),i.closePopover();break}}function z(o){k.value||o.key===Z.Space&&o.preventDefault()}function j(o){var c,u;y.disabled||(k.value?(i.closePopover(),(c=d(i.button))==null||c.focus()):(o.preventDefault(),o.stopPropagation(),i.popoverState.value===1&&(M==null||M(i.buttonId.value)),i.togglePopover(),(u=d(i.button))==null||u.focus()))}function _(o){o.preventDefault(),o.stopPropagation()}let g=Kt();function v(){let o=d(i.panel);if(!o)return;
21function c(){it(g.value,{[K.Forwards]:()=>tt(o,Y.First),[K.Backwards]:()=>tt(o,Y.Last)})===Ft.Error&&tt(Ut().filter(u=>u.dataset.headlessuiFocusGuard!=="true"),it(g.value,{[K.Forwards]:Y.Next,[K.Backwards]:Y.Previous}),{relativeTo:d(i.button)})}c()}return()=>{let o=i.popoverState.value===0,c={open:o},{...u}=y,x=k.value?{ref:$,type:F.value,onKeydown:E,onClick:j}:{ref:$,id:I,type:F.value,"aria-expanded":i.popoverState.value===0,"aria-controls":d(i.panel)?i.panelId.value:void 0,disabled:y.disabled?!0:void 0,onKeydown:E,onKeyup:z,onClick:j,onMousedown:_};return J(H,[At({ourProps:x,theirProps:{...D,...u},slot:c,attrs:D,slots:T,name:"PopoverButton"}),o&&!k.value&&i.isPortalled.value&&J(It,{id:n,features:Tt.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:v})])}}}),ss=pt({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(y,{attrs:D,slots:T,expose:B}){var G;let I=(G=y.id)!=null?G:"headlessui-popover-panel-".concat(rt()),{focus:i}=y,r=Lt("PopoverPanel"),L=O(()=>Mt(r.panel)),M="headlessui-focus-sentinel-before-".concat(rt()),P="headlessui-focus-sentinel-after-".concat(rt());B({el:r.panel,$el:r.panel}),Nt(()=>{r.panelId.value=I}),qt(()=>{r.panelId.value=null}),Rt(Qt,r.panelId),Dt(()=>{var _,g;if(!i||r.popoverState.value!==0||!r.panel)return;let v=(_=L.value)==null?void 0:_.activeElement;(g=d(r.panel))!=null&&g.contains(v)||tt(d(r.panel),Y.First)});let k=je(),$=O(()=>k!==null?(k.value&dt.Open)===dt.Open:r.popoverState.value===0);function n(_){var g,v;switch(_.key){case Z.Escape:if(r.popoverState.value!==0||!d(r.panel)||L.value&&!((g=d(r.panel))!=null&&g.contains(L.value.activeElement)))return;_.preventDefault(),_.stopPropagation(),r.closePopover(),(v=d(r.button))==null||v.focus();break}}function F(_){var g,v,o,c,u;let x=_.relatedTarget;x&&d(r.panel)&&((g=d(r.panel))!=null&&g.contains(x)||(r.closePopover(),((o=(v=d(r.beforePanelSentinel))==null?void 0:v.contains)!=null&&o.call(v,x)||(u=(c=d(r.afterPanelSentinel))==null?void 0:c.contains)!=null&&u.call(c,x))&&x.focus({preventScroll:!0})))}let E=Kt();function z(){let _=d(r.panel);if(!_)return;function g(){it(E.value,{[K.Forwards]:()=>{var v;tt(_,Y.First)===Ft.Error&&((v=d(r.afterPanelSentinel))==null||v.focus())},[K.Backwards]:()=>{var v;(v=d(r.button))==null||v.focus({preventScroll:!0})}})}g()}function j(){let _=d(r.panel);if(!_)return;function g(){it(E.value,{[K.Forwards]:()=>{let v=d(r.button),o=d(r.panel);if(!v)return;let c=Ut(),u=c.indexOf(v),x=c.slice(0,u+1),N=[...c.slice(u+1),...x];for(let V of N.slice())if(V.dataset.headlessuiFocusGuard==="true"||o!=null&&o.contains(V)){let et=N.indexOf(V);et!==-1&&N.splice(et,1)}tt(N,Y.First,{sorted:!1})},[K.Backwards]:()=>{var v;tt(_,Y.Previous)===Ft.Error&&((v=d(r.button))==null||v.focus())}})}g()}return()=>{let _={open:r.popoverState.value===0,close:r.close},{focus:g,...v}=y,o={ref:r.panel,id:I,onKeydown:n,onFocusout:i&&r.popoverState.value===0?F:void 0,tabIndex:-1};return At({ourProps:o,theirProps:{...D,...v},attrs:D,slot:_,slots:{...T,default:(...c)=>{var u;return[J(H,[$.value&&r.isPortalled.value&&J(It,{id:M,ref:r.beforePanelSentinel,features:Tt.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:z}),(u=T.default)==null?void 0:u.call(T,...c),$.value&&r.isPortalled.value&&J(It,{id:P,ref:r.afterPanelSentinel,features:Tt.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:j})])]}},features:Ht.RenderStrategy|Ht.Static,visible:$.value,name:"PopoverPanel"})}}});const ls={class:"wishlist-lists"},is={class:"stwlite-tw-bg-gray-50"},os={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"},ws={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"},as={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"},rs={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"},ns={class:"stwlite-tw-flex stwlite-tw-flex-col sm:stwlite-tw-flex-row stwlite-tw-gap-4"},us={value:"",class:"stwlite-tw-italic"},cs={value:"publish"},ds={value:"draft"},ps=["aria-label"],vs={value:""},ms={class:"stwlite-tw-relative stwlite-tw-w-[340px]"},fs={class:"stwlite-tw-relative"},hs={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"},_s={class:"stwlite-tw-absolute stwlite-tw-inset-y-0 stwlite-tw-right-0 stwlite-tw-flex stwlite-tw-items-center stwlite-tw-pr-2"},gs=["aria-label"],bs={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"},ys={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"},xs={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"},ks={class:"stwlite-tw-relative"},Ss={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"},Cs=["placeholder"],Ps={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"},$s={class:"stwlite-tw-text-sm stwlite-tw-text-gray-600 stwlite-tw-font-medium"},Es={value:"created_at"},Is={value:"updated_at"},Ts=["max","aria-label"],Fs={class:"stwlite-tw-text-sm stwlite-tw-text-gray-500"},Ds=["min","aria-label"],Ns={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"},Os={class:"stwlite-tw-py-1"},Ms=["checked","onChange"],Us=["aria-busy"],As={key:0,class:"stwlite-tw-px-6 stwlite-tw-py-3 stwlite-tw-absolute stwlite-tw-inset-0 stwlite-tw-z-10 stwlite-tw-bg-white/70",role:"status","aria-live":"polite"},Ls=["inert"],Vs={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"},Bs=["checked"],zs={key:0},js={key:1},Gs={key:2}
21,Hs={key:3},Ws={key:4},Rs={key:0},qs={class:"stwlite-tw-px-6 stwlite-tw-py-3 stwlite-tw-border-b stwlite-tw-border-gray-200"},Ks=["checked","onChange"],Ys={key:0},Js={key:1},Qs={key:2},Xs={key:3},Zs={key:4},tl={class:"stwlite-tw-inline-flex stwlite-tw-items-center stwlite-tw-gap-2"},el=["onClick"],sl=["onClick"],ll={key:1},il={class:"stwlite-tw-px-6 stwlite-tw-py-16"},ol={class:"stwlite-tw-text-center stwlite-tw-max-w-md stwlite-tw-mx-auto"},wl={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"},al={class:"stwlite-tw-relative"},rl={class:"stwlite-tw-text-xl stwlite-tw-font-semibold stwlite-tw-text-gray-900 stwlite-tw-mb-3"},nl={class:"stwlite-tw-text-gray-500 stwlite-tw-mb-6 stwlite-tw-leading-relaxed"},ul={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"},cl={class:"stwlite-tw-text-lg stwlite-tw-font-semibold stwlite-tw-text-gray-900 stwlite-tw-mb-2"},dl={class:"stwlite-tw-text-sm stwlite-tw-text-gray-600 stwlite-tw-mb-4"},pl={class:"stwlite-tw-flex stwlite-tw-flex-col sm:stwlite-tw-flex-row stwlite-tw-justify-center stwlite-tw-gap-3"},vl={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"},ml={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"},fl={key:0,class:"stwlite-tw-p-6 stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-center"},hl={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-space-x-1","aria-label":"Pagination"},_l=["disabled"],gl={class:"stwlite-tw-flex stwlite-tw-space-x-1"},bl=["onClick"],yl={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"},xl=["disabled"],kl={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"},Cl={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-space-x-2 stwlite-tw-text-sm stwlite-tw-text-gray-500"},Et="hide_non_admin",Wt="stwlite_admin_wishlist_columns",Pl=pt({__name:"Lists",emits:["loadItems"],setup(y,{emit:D}){const T=D,B=[{key:"name",label:w("column_name",wp.i18n.__("Name","saveto-wishlist-lite-for-woocommerce")),weight:2},{key:"user",label:w("column_user",wp.i18n.__("User","saveto-wishlist-lite-for-woocommerce")),weight:2},{key:"status",label:w("column_status",wp.i18n.__("Status","saveto-wishlist-lite-for-woocommerce")),weight:1},{key:"created_at",label:w("date_created",wp.i18n.__("Date Created","saveto-wishlist-lite-for-woocommerce")),weight:2},{key:"updated_at",label:w("last_updated",wp.i18n.__("Last Updated","saveto-wishlist-lite-for-woocommerce")),weight:2}],I=f((()=>{const a=B.reduce((e,s)=>(e[s.key]=!0,e),{});try{const e=localStorage.getItem(Wt);if(!e)return a;const s=JSON.parse(e);return{...a,...s}}catch(e){return a}})());fe(I,a=>{try{localStorage.setItem(Wt,JSON.stringify(a))}catch(e){}},{deep:!0});const i=a=>I.value[a]!==!1,r=a=>{const e=!i(a),s=B.filter(S=>i(S.key)).length;!e&&s<=1||(I.value={...I.value,[a]:e})},L=O(()=>{const a=B.filter(e=>i(e.key)).map(e=>"".concat(e.weight,"fr"));return"1fr ".concat(a.join(" ")," 2fr")}),{getCollections:M,deleteCollections:P}=Fe(),k=f({data:[],total:0,currentPage:1}),$=f([]),n=f({current:1,pageSize:10,total:0,totalPages:0}),F=f(!1),E=f(""),z=f(""),j=f(Et),_=f(null),g=f("id"),v=f("DESC"),o=f("created_at"),c=f(""),u=f(""),{query:x,options:N,fetching:V,search:et,reset:mt}=xe(),U=f(!1),ft=f(""),nt=f(null),W=f("delete"),st=f(!1),Zt=w("table_info",wp.i18n.__("Showing %1$s-%2$s of %3$s items","saveto-wishlist-lite-for-woocommerce")),ot=f(""),ht=f(""),_t=f(""),te={title:w("wishlist_lists",wp.i18n.__("Wishlist Lists","saveto-wishlist-lite-for-woocommerce")),description:w("wishlist_lists_description",wp.i18n.__("Manage customer wishlists and preferences","saveto-wishlist-lite-for-woocommerce"))},A=f([]),ee=O(()=>{if(!c.value&&!u.value)return{};const a=o.value==="updated_at"?"updated":"created";return{["".concat(a,"_from")]:c.value,["".concat(a,"_to")]:u.value}}),wt=async()=>{var a;F.value=!0,await M({page:n.value.current,posts_per_page:n.value.pageSize,search:E.value,status:z.value,user_id:((a=_.value)==null?void 0:a.value)||"",sort_
21column:g.value,sort_order:v.value,...ee.value,hide_empty_non_admin:j.value===Et?1:""}).then(e=>{k.value=e,F.value=!1,n.value={...n.value,total:k.value.total,totalPages:Math.ceil(k.value.total/n.value.pageSize)},$.value=k.value.data.map(s=>({...s,status:s.status}))}).catch(e=>{var s,S;(s=e.error)!=null&&s.message&&(ot.value=(S=e.error)==null?void 0:S.message,_t.value=w("error",wp.i18n.__("Error","saveto-wishlist-lite-for-woocommerce")),ht.value="error")})},gt=(a,e)=>{n.value={...n.value,current:a,pageSize:e},wt()},R=()=>{n.value={...n.value,current:1},wt()},bt=Ie(R,Te),se=()=>{ye("add","new"),T("loadItems","new",0)},le=(a,e)=>{T("loadItems",a,e)},ie=async(a,e)=>{ft.value=w("confirmDeleteText",wp.i18n.__("Are you sure you want to delete this item?","saveto-wishlist-lite-for-woocommerce")),nt.value=a.id,W.value="delete",U.value=!0},oe=async()=>{ft.value=w("confirmDeleteItemsText",wp.i18n.__("Are you sure you want to delete these items?","saveto-wishlist-lite-for-woocommerce")),W.value="deleteSelected",U.value=!0},we=()=>{U.value=!1,W.value="",nt.value=null,st.value=!1},Vt=a=>{(Array.isArray(a==null?void 0:a.skipped)?a.skipped:[]).length!==0&&(ot.value=(a==null?void 0:a.message)||w("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")),_t.value=w("cannot_delete_last_wishlist_title",wp.i18n.__("Wishlist cannot be deleted","saveto-wishlist-lite-for-woocommerce")),ht.value="error")},ae=async()=>{if(st.value=!0,W.value==="delete")await P([nt.value]).then(a=>{Vt(a),wt(),nt.value=null,U.value=!1,W.value="",st.value=!1});else if(W.value==="deleteSelected"){const a=A.value.map(e=>e);await P(a).then(e=>{Vt(e),wt(),A.value=[],U.value=!1,W.value="",st.value=!1})}else U.value=!1,W.value="",st.value=!1},re=a=>{a.target.checked?A.value=$.value.map(e=>e.id):A.value=[]},ne=a=>{A.value.includes(a)?A.value=A.value.filter(e=>e!==a):A.value=[...A.value,a]},ue=a=>{_.value=a,R()},yt=a=>{g.value===a?v.value=v.value==="ASC"?"DESC":"ASC":(g.value=a,v.value="DESC"),R()},xt=()=>{R()},ce=()=>{c.value="",u.value="",R()},Bt=a=>{if(!a)return"—";const e=new Date(a.replace(" ","T"));return Number.isNaN(e.getTime())?"—":e.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})},de=()=>{_.value=null,mt(),R()},pe=()=>{ot.value=""},ve=O(()=>A.value.length===$.value.length),me=O(()=>{const a=n.value.current,e=n.value.totalPages,s=[];if(e<=0)return s;if(e<=7)for(let S=1;S<=e;S++)s.push(S);else{s.push(1);const S=1;let Q=Math.max(2,a-S),kt=Math.min(e-1,a+S);a<=3&&(kt=Math.min(5,e-1)),a>=e-2&&(Q=Math.max(2,e-4)),Q>2&&s.push("ellipsis-start");for(let St=Q;St<=kt;St++)s.push(St);kt<e-1&&s.push("ellipsis-end"),e>1&&s.push(e)}return s});return Nt(()=>{wt()}),he(()=>{bt.cancel()}),(a,e)=>(m(),h(H,null,[l("div",ls,[l("div",is,[b(t(De),{infoData:te,showButton:!0,buttonIcon:"plus",buttonText:t(w)("add_new",t(wp.i18n.__)("Add New","saveto-wishlist-lite-for-woocommerce")),onTriggerButton:se},null,8,["buttonText"]),l("div",os,[l("div",ws,[l("div",as,[l("div",rs,[l("div",ns,[A.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:oe},[b(t(jt),{class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-2"}),q(" "+p(t(w)("delete",t(wp.i18n.__)("Delete","saveto-wishlist-lite-for-woocommerce"))),1)])):C("",!0),lt(l("select",{"onUpdate:modelValue":e[0]||(e[0]=s=>z.value=s),onChange:R,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"},[l("option",us,p(t(w)("select_status",t(wp.i18n.__)("Select Status","saveto-wishlist-lite-for-woocommerce"))),1),l("option",cs,p(t(w)("publish",t(wp.i18n.__)("Publish","saveto-wishlist-lite-for-woocommerce"))),1),l("option",ds,p(t(w)("draft",t(wp.i18n.__)("Draft","saveto-wishlist-lite-for-woocommerce"))),1)],544),[[Ct,z.value]]),lt(l("select",{"onUpdate:modelValue":e[1]||(e[1]=s=>j.value=s),onChange:R,"aria-label":t(w)("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"},[l("option",vs,p(t(w)("empty_filter_show_all",t(wp.i18n.__)("Show all wishlists","saveto-wishlist-lite-for-woocommerce"))),1),l("option",{value:Et},p(t(w)("empty_filter_hide_non_admin",t(wp.i18n.__)("Hide empty (non-admin)","saveto-wishlist-lite-for-woocommerce"))),1)],40,ps),[[Ct,j.value]]),l("div",ms,[b(t(Ee),{modelValue:_.value,"onUpdate:modelValue":[e[3]||(e[3]=s=>_.value=s),ue]},{default:X(()=>[l("div",fs,[l("div",hs,[b(t(ke),{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":s=>(s==null?void 0:s.label)||"",placeholder:t(w)("select_user",t(wp.i18n.__)("Select User","saveto-wishlist-lite-for-woocommerce")),autocomplete:"off",onChange:e[2]||(e[2]=s=>t(et)(s.target.value))},null,8,["display-value","placeholder"]),l("div",_s,[_.value?(m(),h("button",{key:0,t
21ype:"button",onClick:_e(de,["prevent"]),"aria-label":t(w)("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(Gt),{class:"stwlite-tw-h-4 stwlite-tw-w-4"})],8,gs)):(m(),ut(t(Se),{key:1,class:"stwlite-tw-h-5 stwlite-tw-w-5 stwlite-tw-text-gray-400","aria-hidden":"true"}))])]),t(V)?(m(),h("div",bs,p(t(w)("searching",t(wp.i18n.__)("Searching...","saveto-wishlist-lite-for-woocommerce"))),1)):t(N).length>0?(m(),ut(t(Ce),{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:X(()=>[(m(!0),h(H,null,ct(t(N),s=>(m(),ut(t(Pe),{key:s.value,value:s,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:X(({selected:S})=>[l("span",{class:at(["stwlite-tw-block stwlite-tw-truncate",S?"stwlite-tw-font-medium":"stwlite-tw-font-normal"])},p(s.label),3),S?(m(),h("span",ys,[b(t($e),{class:"stwlite-tw-h-5 stwlite-tw-w-5","aria-hidden":"true"})])):C("",!0)]),_:2},1032,["value"]))),128))]),_:1})):t(x)&&!t(V)&&t(N).length===0?(m(),h("p",xs,p(t(w)("no_users_found",t(wp.i18n.__)("No users found","saveto-wishlist-lite-for-woocommerce"))),1)):C("",!0)])]),_:1},8,["modelValue"])])]),l("div",ks,[l("div",Ss,[b(t(Qe),{class:"stwlite-tw-h-4 stwlite-tw-w-4 stwlite-tw-text-gray-400"})]),lt(l("input",{type:"text","onUpdate:modelValue":e[4]||(e[4]=s=>E.value=s),placeholder:t(w)("search_wishlist",t(wp.i18n.__)("Search Wishlist","saveto-wishlist-lite-for-woocommerce")),onInput:e[5]||(e[5]=(...s)=>t(bt)&&t(bt)(...s)),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,Cs),[[Pt,E.value]])])]),l("div",Ps,[l("span",$s,p(t(w)("filter_by_date",t(wp.i18n.__)("Filter by date","saveto-wishlist-lite-for-woocommerce"))),1),lt(l("select",{"onUpdate:modelValue":e[6]||(e[6]=s=>o.value=s),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"},[l("option",Es,p(t(w)("date_created",t(wp.i18n.__)("Date Created","saveto-wishlist-lite-for-woocommerce"))),1),l("option",Is,p(t(w)("last_updated",t(wp.i18n.__)("Last Updated","saveto-wishlist-lite-for-woocommerce"))),1)],544),[[Ct,o.value]]),lt(l("input",{"onUpdate:modelValue":e[7]||(e[7]=s=>c.value=s),type:"date",max:u.value||void 0,onChange:xt,"aria-label":t(w)("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,Ts),[[Pt,c.value]]),l("span",Fs,p(t(w)("to",t(wp.i18n.__)("to","saveto-wishlist-lite-for-woocommerce"))),1),lt(l("input",{"onUpdate:modelValue":e[8]||(e[8]=s=>u.value=s),type:"date",min:c.value||void 0,onChange:xt,"aria-label":t(w)("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,Ds),[[Pt,u.value]]),c.value||u.value?(m(),h("button",{key:0,t
21ype:"button",onClick:ce,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(Gt),{class:"stwlite-tw-w-3 stwlite-tw-h-3 stwlite-tw-mr-1"}),q(" "+p(t(w)("clear",t(wp.i18n.__)("Clear","saveto-wishlist-lite-for-woocommerce"))),1)])):C("",!0),b(t(Xt),{class:"stwlite-tw-relative sm:stwlite-tw-ml-auto"},{default:X(()=>[b(t(es),{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:X(()=>[b(t(Ye),{class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-2"}),q(" "+p(t(w)("columns",t(wp.i18n.__)("Columns","saveto-wishlist-lite-for-woocommerce"))),1)]),_:1}),b(t(ss),{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:X(()=>[l("div",Ns,p(t(w)("show_columns",t(wp.i18n.__)("Show columns","saveto-wishlist-lite-for-woocommerce"))),1),l("div",Os,[(m(),h(H,null,ct(B,s=>l("label",{key:s.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"},[l("input",{type:"checkbox",checked:i(s.key),onChange:S=>r(s.key),class:"stwlite-tw-h-4 stwlite-tw-w-4 stwlite-tw-mr-2"},null,40,Ms),q(" "+p(s.label),1)])),64))])]),_:1})]),_:1})])]),l("div",{class:"stwlite-tw-relative","aria-busy":F.value},[F.value?(m(),h("div",As,e[11]||(e[11]=[ge('<div class="stwlite-tw-animate-pulse stwlite-tw-flex stwlite-tw-space-x-4" data-v-12e8c814><div class="stwlite-tw-flex-1 stwlite-tw-space-y-6 stwlite-tw-py-1" data-v-12e8c814><div class="stwlite-tw-h-2 stwlite-tw-bg-slate-700 stwlite-tw-rounded" data-v-12e8c814></div><div class="stwlite-tw-space-y-3" data-v-12e8c814><div class="stwlite-tw-grid stwlite-tw-grid-cols-3 stwlite-tw-gap-4" data-v-12e8c814><div class="stwlite-tw-h-2 stwlite-tw-bg-slate-700 stwlite-tw-rounded stwlite-tw-col-span-2" data-v-12e8c814></div><div class="stwlite-tw-h-2 stwlite-tw-bg-slate-700 stwlite-tw-rounded stwlite-tw-col-span-1" data-v-12e8c814></div></div><div class="stwlite-tw-h-2 stwlite-tw-bg-slate-700 stwlite-tw-rounded" data-v-12e8c814></div></div></div></div>',1)]))):C("",!0),l("div",{inert:F.value,class:at({"stwlite-tw-pointer-events-none":F.value})},[l("div",Vs,[l("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":L.value})},[l("div",null,[l("input",{type:"checkbox",checked:ve.value,onChange:re,class:"stwlite-tw-h-4 stwlite-tw-w-4"},null,40,Bs)]),i("name")?(m(),h("div",zs,[b($t,{label:t(w)("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"])])):C("",!0),i("user")?(m(),h("div",js,p(t(w)("column_user",t(wp.i18n.__)("User","saveto-wishlist-lite-for-woocommerce"))),1)):C("",!0),i("status")?(m(),h("div",Gs,p(t(w)("column_status",t(wp.i18n.__)("Status","saveto-wishlist-lite-for-woocommerce"))),1)):C("",!0),i("created_at")?(m(),h("div",Hs,[b($t,{label:t(w)("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"])])):C("",!0),i("updated_at")?(m(),h("div",Ws,[b($t,{label:t(w)("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"])])):C("",!0),l("div",null,p(t(w)("column_actions",t(wp.i18n.__)("Actions","saveto-wishlist-lite-for-woocommerce"))),1)],4)]),$.value.length>0?(m(),h("div",Rs,[(m(!0),h(H,null,ct($.value,(s,S)=>(m(),h("div",qs,[l("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":L.value})},[l("div",null,[l("input",{type:"checkbox",checked:A.value.includes(s.id
21),onChange:Q=>ne(s.id)},null,40,Ks)]),i("name")?(m(),h("div",Ys,p(s.name),1)):C("",!0),i("user")?(m(),h("div",Js,p(s.user_name||""),1)):C("",!0),i("status")?(m(),h("div",Qs,p(s.status==="publish"?t(w)("published",t(wp.i18n.__)("Published","saveto-wishlist-lite-for-woocommerce")):t(w)("draft",t(wp.i18n.__)("Draft","saveto-wishlist-lite-for-woocommerce"))),1)):C("",!0),i("created_at")?(m(),h("div",Xs,p(Bt(s.created_at)),1)):C("",!0),i("updated_at")?(m(),h("div",Zs,p(Bt(s.updated_at)),1)):C("",!0),l("div",tl,[l("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:Q=>le(s,S)},[b(t(Je),{class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-2"}),q(" "+p(t(w)("view_details",t(wp.i18n.__)("Details","saveto-wishlist-lite-for-woocommerce"))),1)],8,el),l("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:Q=>ie(s)},[b(t(jt),{class:"stwlite-tw-w-4 stwlite-tw-h-4 stwlite-tw-mr-2"}),q(" "+p(t(w)("delete",t(wp.i18n.__)("Delete","saveto-wishlist-lite-for-woocommerce"))),1)],8,sl)])],4)]))),256))])):F.value?C("",!0):(m(),h("div",ll,[l("div",il,[l("div",ol,[l("div",wl,[l("div",al,[b(t(He),{class:"stwlite-tw-w-8 stwlite-tw-h-8 stwlite-tw-text-pink-500"}),b(t(Re),{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"})])]),l("h3",rl,p(t(w)("no_wishlists_yet",t(wp.i18n.__)("No wishlists yet!","saveto-wishlist-lite-for-woocommerce"))),1),l("p",nl,p(t(w)("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),l("div",ul,[l("h4",cl,p(t(w)("get_started_with_save_to_wishlist",t(wp.i18n.__)("Get Started with SaveTo Wishlist","saveto-wishlist-lite-for-woocommerce"))),1),l("p",dl,p(t(w)("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),l("div",pl,[l("a",vl,[q(p(t(w)("view_documentation",t(wp.i18n.__)("View Documentation","saveto-wishlist-lite-for-woocommerce")))+" ",1),b(t(We),{class:"stwlite-tw-ml-2 stwlite-tw-w-4 stwlite-tw-h-4"})]),l("a",ml,[q(p(t(w)("get_support",t(wp.i18n.__)("Get Support","saveto-wishlist-lite-for-woocommerce")))+" ",1),b(t(Ke),{class:"stwlite-tw-ml-2 stwlite-tw-w-4 stwlite-tw-h-4"})])])])])])]))],10,Ls)],8,Us)]),n.value.totalPages>0?(m(),h("div",fl,[l("nav",hl,[l("button",{onClick:e[9]||(e[9]=s=>gt(n.value.current-1,n.value.pageSize)),disabled:n.value.current===1,class:at(["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(w)("previous",t(wp.i18n.__)("Previous","saveto-wishlist-lite-for-woocommerce"))),11,_l),b(be,{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:X(()=>[l("div",gl,[(m(!0),h(H,null,ct(me.value,(s,S)=>(m(),h(H,{key:S},[typeof s=="number"?(m(),h("button",{key:0,onClick:Q=>gt(s,n.value.pageSize),class:at(["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",s===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(s),11,bl)):(m(),h("span",yl," ... "))],64))),128))])]),_:1}),l("button",{onClick:e[10]||(e[10]=s=>gt(n.value.current+1,n.value.pageSize)),disabled:n.value.current>=n.value.totalPages,class:at(["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(w)("next",t(wp.i18n.__)("Next","saveto-wishlist-lite-for-woocommerce"))),11,xl)])])):C("",!0),l("div",kl,[l
21("div",Sl,[l("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)]),l("div",Cl,[l("span",null,p(n.value.pageSize)+" / "+p(t(w)("page",t(wp.i18n.__)("Page","saveto-wishlist-lite-for-woocommerce"))),1)])])])])]),b(Oe,{isOpen:U.value,processing:st.value,title:t(w)("confirmation_title",t(wp.i18n.__)("Confirmation","saveto-wishlist-lite-for-woocommerce")),message:ft.value,confirmText:t(w)("delete",t(wp.i18n.__)("Delete","saveto-wishlist-lite-for-woocommerce")),cancelText:t(w)("cancelButtonText",t(wp.i18n.__)("Cancel","saveto-wishlist-lite-for-woocommerce")),onCloseAction:we,onConfirmAction:ae},null,8,["isOpen","processing","title","message","confirmText","cancelText"]),ot.value?(m(),ut(Ne,{key:0,message:ot.value,type:ht.value,messageTitle:_t.value,onCloseNotification:pe},null,8,["message","type","messageTitle"])):C("",!0)],64))}}),Jl=qe(Pl,[["__scopeId","data-v-12e8c814"]]);export{Jl as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.