PageSourceSearch

https://www.biano.cz/assets-reco/38-2026-09-23-1790164165/chunks/chunk-KjcoWOdG.js

js biano.cz collected 2026-09-24 19:22:34 UTC 4,762 bytes, 1 lines download raw bytes

1import{ao as H,q as w,f as g,p as U,r as _,A as q,y as R,ap as B,T as S,b as n,k as D,B as T,Q as G,aq as P,z as Z}from"./chunk-DKJbva8s.js";import{F as j,t as Q,u as O,C as k,a as y,b as N,c as x,d as W}from"./chunk-R2NaTLEn.js";import{T as Y}from"./chunk-B7fY51MX.js";import{a as J,M as K}from"./chunk-B_vixiIG.js";import{s as $,g as V,S as X,a as ee,b as te,c as ne}from"../entries/app_pages_inspiration_feed.C2c-fQx-.js";import"./chunk-CgNRPQuy.js";import"./chunk-9vCGXzD8.js";import"./chunk-mnaK0x_t.js";import"./chunk-D60WeaoM.js";import"./chunk-DvQaiNLX.js";import"./chunk-CFzz9ORG.js";import"./chunk-CfF9AAsl.js";import"./chunk-Ve_ujciz.js";function re(t,i){return i?t.filter(l=>H(l.name,i)):t}const ve=({defaults:t,onClose:i})=>{const[l,r]=$.value,d=w(()=>{$.value=[!1],i==null||i()},[]),[e,b]=g(""),u=w(a=>{b(a)},[]),[{data:s,loading:p}]=U(_.inspiration.getInspirationFilters,{filteringRequest:{url:e}},{manual:e===""}),[c,m]=g(new Set),h=q(null),[o,M]=g(!1),E=w(a=>m(v=>Q(v,a)),[]);R(()=>{const a=()=>{M(window.matchMedia(`(min-width: ${B.md}px)`).matches)};return a(),window.addEventListener("resize",a),m(r?new Set([r]):new Set),()=>{window.removeEventListener("resize",a)}},[r,l]),R(()=>{var F,I;const a=(F=h.current)==null?void 0:F.parentElement;if(!a||c.size===0)return;const v=[...c][c.size-1],C=(I=h.current)==null?void 0:I.querySelector(`[data-section="${v}"]`);C&&(C.offsetTop<a.scrollTop||C.offsetTop-a.scrollTop+C.clientHeight>a.clientHeight)&&a.scrollTo({top:C.offsetTop,behavior:"smooth"})},[c]);const[z,f,L,A]=S(()=>[(s==null?void 0:s.url)??t.url,(s==null?void 0:s.groups)??t.groups,(s==null?void 0:s.totalCount)??t.totalCount,V((s==null?void 0:s.groups)??t.groups)],[t,s]);return n(K,{id:X,modalSize:J.Small,title:"Filtrovat inspirace",footerClassName:"gap-2 flex flex-col items-stretch sm:items-center sm:flex-row sm:justify-between",footerContent:n(D,{children:[n(T,{buttonSize:"m",buttonType:"tertiaryTransparent",iconName:"Trash",disabled:A===0,onClick:()=>u(G("frontend@inspirations")),children:`Smazat vše (${A})`}),n(T,{as:"a",href:z,loading:p,buttonSize:"m",buttonType:"primary",children:`Zobrazit výsledky (${P(L)})`})]}),open:l,onClose:d,children:n(j,{onChangeUrl:u,currentUrl:z,loading:p,forceOpenSections:!1,toggleSectionOpen:E,isDesktop:o,children:n("ul",{ref:h,className:"mt-4 flex flex-col gap-2",children:[n(se,{styleGroup:f.styles,isOpen:c.has(f.styles.ident)}),n(oe,{roomGroup:f.rooms,isOpen:c.has(f.rooms.ident)}),n(ie,{group:f.owners,isOpen:c.has(f.owners.ident),choiceIdPrefix:"",renderOnlyWhenOpen:!0})]})})})},se=({styleGroup:t,isOpen:i})=>{const{onChangeUrl:l}=O(),r=S(()=>ee(t.choices),[t]),d=e=>()=>{l(e.url,t.ident,"Styl",e.name,!e.selected)};return n(x,{children:n(k,{heading:"Styl",activeNames:r==null?void 0:r.name,onRemove:r&&d(r),section:t.ident,isOpen:i,children:n(y,{name:"Styl",direction:"filterGrid-l",optionRenderer:N,options:t.choices.map(e=>({id:`f-m-${e.id}`,label:e.name,count:e.count,labelHref:e.count===0?void 0:e.url,value:e.name,checked:e.selected,onChange:d(e),disabled:e.count===0}))})})})},oe=({roomGroup:t,isOpen:i})=>{const{onChangeUrl:l}=O(),r=S(()=>te(t.choices),[t]),d=e=>()=>{l(e.url,t.ident,"Místnosti",e.name,!e.selected)};return n(x,{children:n(k,{heading:"Místnosti",activeNames:r==null?void 0:r.name,onRemove:r&&d(r),section:t.ident,isOpen:i,children:n(y,{name:"Místnosti",direction:"filterGrid-l",optionRenderer:N,options:t.choices.map(e=>({id:`f-m-${e.id}`,label:e.name,count:e.count,labelHref:e.count===0?void 0:e.url,value:e.name,checked:e.selected,onChange:d(e),disabled:e.count===0}))})})})},ie=({group:t,isOpen:i,choiceIdPrefix:l,renderOnlyWhenOpen:r})=>{const{onChangeUrl:d}=O(),e=S(()=>ne(t.choices),[t]),b=o=>()=>{d(o.url,t.ident,"Autor",o.name,!o.selected)},[u,s]=g(!1),[p,c]=g(""),m=W(p,500),h=S(()=>m?re(t.choices,m):!u&&t.choices.length>=12?t.choices.slice(0,8):t.choices,[t.choices,m,u]);return n(x,{children:n(k,{heading:"Autor",activeNames:e==null?void 0:e.name,onRemove:e&&b(e),section:t.ident,isOpen:i,children:r&&i&&n(D,{children:[t.choices.length>6&&n(Y,{type:"search",placeholder:"Hledat",className:"mb-6",inputClassName:"bg-white",value:p,onInput:o=>{c(o.currentTarget.value||"")},onClear:()=>c("")}),n(y,{name:t.ident,direction:"filterGrid-l",optionRenderer:N,options:h.map(o=>({id:`${l}-${o.name}`,label:o.name,count:o.count,value:o.name,checked:o.selected,onChange:b(o)}
1))}),!h.length&&n(Z,{type:"error",centered:!0,children:["Nic se nenašlo"," 🤷"]}),!u&&!p&&n(T,{buttonSize:"m",buttonType:"tertiaryTransparent",className:"mt-6 w-full sm:w-fit",iconName:"Caret-Down",iconAfter:!0,onClick:()=>s(!0),children:"Zobrazit více"})]})})})};export{ie as OwnerChoiceGroup,oe as RoomChoiceGroup,ve as ShopTheLookFilterModal,se as StyleChoiceGroup};

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.