1import{f as v,c as m,a as d,b as e,e as h,O as x,o as u}from"./app-f96b9a38.js";import{P as f}from"./Pagination-f728c1ba.js";import _ from"./PlaylistList-bf5fbec9.js";import{_ as y}from"./ListSectionHeading-34176239.js";import"./LoadingIcon-9ac274f8.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./PlaylistListItem-8051a3cf.js";const k={class:"mb-5 flex flex-wrap items-center gap-x-3 gap-y-2"},P=["value"],w=["value"],q=["value"],S=e("option",{value:"new"},"СнаÑала новÑе",-1),C=e("option",{value:"old"},"СнаÑала ÑÑаÑÑе",-1),j=e("option",{value:"popular"},"Ðо попÑлÑÑноÑÑи",-1),B=[S,C,j],L={key:1,class:"text-sm text-brand-100 dark:text-neutral-400"},O={class:"hidden items-center justify-between gap-4 xs:flex"},T=["value"],V=e("option",{value:"12"},"12 на ÑÑÑаниÑе",-1),$=e("option",{value:"24"},"24 на ÑÑÑаниÑе",-1),N=e("option",{value:"48"},"48 на ÑÑÑаниÑе",-1),I=[V,$,N],U={class:"flex items-center justify-between gap-4 xs:hidden"},A=["value"],E=e("option",{value:"12"},"12",-1),Q=e("option",{value:"24"},"24",-1),R=e("option",{value:"48"},"48",-1),z=[E,Q,R],W={__name:"PlaylistListViewTemplate",props:{title:{type:String,required:!0},pageLink:{type:String,required:!0},playlists:{type:Object,required:!0},filters:{type:Object,required:!0}},setup(a){const l=a,o=v(l.filters.q??""),i=v(l.filters.author??"");let p=null;const c=(n={})=>{const t=new URLSearchParams({q:o.value,author:i.value,sort:l.filters.sort??"new",per_page:l.filters.perPage??24,page:1,...n});return`${l.pageLink}?${t}`},g=()=>{clearTimeout(p),p=setTimeout(()=>{x.visit(c(),{preserveState:!0})},400)},s=(n={})=>x.visit(c(n)),b=n=>s({page:n});return(n,t)=>(u(),m("div",null,[d(y,{title:a.title},null,8,["title"]),e("div",k,[e("input",{type:"text",value:o.value,placeholder:"ÐоиÑк по названиÑ...",class:"rounded-lg border border-brand-200 bg-transparent px-3 py-1.5 text-sm text-brand-300 placeholder-brand-100 focus:outline-none focus:ring-1 focus:ring-brand-300 dark:border-neutral-600 dar
1k:text-neutral-100 dark:placeholder-neutral-500 dark:focus:ring-neutral-400",onInput:t[0]||(t[0]=r=>{o.value=r.target.value,g()})},null,40,P),e("input",{type:"text",value:i.value,placeholder:"ÐвÑоÑ...",class:"rounded-lg border border-brand-200 bg-transparent px-3 py-1.5 text-sm text-brand-300 placeholder-brand-100 focus:outline-none focus:ring-1 focus:ring-brand-300 dark:border-neutral-600 dark:text-neutral-100 dark:placeholder-neutral-500 dark:focus:ring-neutral-400",onInput:t[1]||(t[1]=r=>{i.value=r.target.value,g()})},null,40,w),e("select",{value:a.filters.sort,class:"rounded-lg border border-brand-200 bg-transparent px-3 py-1.5 text-sm text-brand-300 dark:border-neutral-600 dark:bg-neutral-800 dark:text-neutral-100",onChange:t[2]||(t[2]=r=>s({sort:r.target.value,page:1}))},B,40,q)]),a.playlists.data.length?(u(),h(_,{key:0,"playlist-type":"playlist",playlists:a.playlists.data,class:"mb-7"},null,8,["playlists"])):(u(),m("p",L," ÐлейлиÑÑов не найдено ")),e("div",O,[d(f,{data:a.playlists,"with-page-input":"",onPaginationChangePage:b},null,8,["data"]),e("select",{value:String(a.filters.perPage),class:"rounded-lg border border-brand-200 bg-transparent px-2 py-1 text-sm text-brand-300 dark:border-neutral-600 dar
1k:bg-neutral-800 dark:text-neutral-100",onChange:t[3]||(t[3]=r=>s({per_page:r.target.value,page:1}))},I,40,T)]),e("div",U,[d(f,{data:a.playlists,limit:1,onPaginationChangePage:b},null,8,["data"]),e("select",{value:String(a.filters.perPage),class:"rounded-lg border border-brand-200 bg-transparent px-2 py-1 text-sm text-brand-300 dark:border-neutral-600 dark:bg-neutral-800 dark:text-neutral-100",onChange:t[4]||(t[4]=r=>s({per_page:r.target.value,page:1}))},z,40,A)])]))}};export{W 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.