PageSourceSearch

https://www.alexandria.cz/_next/static/chunks/20ujh6d4dz-2g.js

js alexandria.cz collected 2026-09-30 17:46:37 UTC 57,066 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,371060,e=>{"use strict";var t=e.i(843476),n=e.i(500932),l=e.i(271645),a=e.i(948148),i=e.i(468757),r=e.i(799642),s=e.i(777774),o=e.i(149721),d=e.i(965711);let c=(0,l.createContext)(null),m=(0,l.createContext)(null);function u(){return(0,l.use)(c)}let h=[],f=e=>{let t,l=(0,n.c)(3),a=u(),i=a[0][e]??h;return l[0]!==a[1]||l[1]!==i?(t=[i,a[1]],l[0]=a[1],l[1]=i,l[2]=t):t=l[2],t},_=e=>{let t,l,a=(0,n.c)(6),i=u();if(a[0]!==e||a[1]!==i[0]){for(let n of(t=[],e))t.push(i[0][n]??h);a[0]=e,a[1]=i[0],a[2]=t}else t=a[2];return a[3]!==i[1]||a[4]!==t?(l=[t,i[1]],a[3]=i[1],a[4]=t,a[5]=l):l=a[5],l};function x(){return(0,l.use)(m)}let p={};function g(e){let t,l,a=(0,n.c)(5),i=x(),r=i[0][e]??p;return a[0]!==r?(t={...r},a[0]=r,a[1]=t):t=a[1],a[2]!==i[1]||a[3]!==t?(l=[t,i[1]],a[2]=i[1],a[3]=t,a[4]=l):l=a[4],l}let j=e=>{let l,a=(0,n.c)(3),{init:i,children:r}=e;return a[0]!==r||a[1]!==i?(l=(0,t.jsx)(c.Provider,{value:i,children:r}),a[0]=r,a[1]=i,a[2]=l):l=a[2],l},b=e=>{let l,a=(0,n.c)(3),{init:i,children:r}=e;return a[0]!==r||a[1]!==i?(l=(0,t.jsx)(m.Provider,{value:i,children:r}),a[0]=r,a[1]=i,a[2]=l):l=a[2],l};var v=e.i(269913),y=e.i(693730);function S(e){let r,s,c,m,u,h,f,_,p,g,j,b,S,N,w,k,C=(0,n.c)(47),{Filter:D,title:I,name:L,icon:F}=e,[A,E]=(0,l.useState)(!1),[O]=x();C[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{E(!1)},C[0]=r):r=C[0];let M=r;C[1]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{E(e),e?document.body.classList.add("no-scroll-mobile"):document.body.classList.remove("no-scroll-mobile")},C[1]=s):s=C[1];let T=s,$=(0,a.useTranslations)(),K=O[L];C[2]!==L||C[3]!==K||C[4]!==O||C[5]!==$?(c=O.hasOwnProperty(L)&&K&&!(0,v.IsEmpty)(K)?Object.keys(K).map(e=>K[e]).join(", "):$("search-form.default-value"),C[2]=L,C[3]=K,C[4]=O,C[5]=$,C[6]=c):c=C[6];let P=c,R=A?void 0:"none";C[7]!==R?(m=(0,t.jsx)("div",{style:{height:"100%",width:"100%",position:"absolute",top:0,left:0,zIndex:1e3,display:R}}),C[7]=R,C[8]=m):m=C[8];let z=`sf__item sf__${L}-item ${A?"opened":""}`;C[9]!==A?(u={...A?{zIndex:1001}:{}},C[9]=A,C[10]=u):u=C[10],C[11]!==A?(h=()=>T(!A),C[11]=A,C[12]=h):h=C[12],C[13]!==A?(f=(0,y.onActivateKeyDown)(()=>T(!A)),C[13]=A,C[14]=f):f=C[14],C[15]!==I?(_=(0,t.jsx)("label",{className:"sf__item-label",children:I}),C[15]=I,C[16]=_):_=C[16];let B=`sf__mainStyledInput sf__${L}Input`;C[17]!==B||C[18]!==P?(p=(0,t.jsx)("div",{className:B,children:P}),C[17]=B,C[18]=P,C[19]=p):p=C[19],C[20]!==_||C[21]!==p||C[22]!==h||C[23]!==f?(g=(0,t.jsxs)("div",{className:"sf__item-inner",role:"button",tabIndex:0,onClick:h,onKeyDown:f,children:[_,p]}),C[20]=_,C[21]=p,C[22]=h,C[23]=f,C[24]=g):g=C[24];let U=`sf__multiList sf__multiList--icons sf__multiList--${L}`;return C[25]!==F||C[26]!==A||C[27]!==$||C[28]!==I?(j=A&&(0,t.jsxs)("div",{className:"sf__multiList__mobileClose",children:[(0,t.jsxs)("div",{className:"mobile_title",children:[(0,t.jsx)("span",{className:"mobile_title__icon",children:F}),(0,t.jsx)("span",{className:"mobile_title__text",children:I})]}),(0,t.jsxs)("div",{className:"sf__multiList__mobileClose--button",role:"button",tabIndex:0,onClick:()=>T(!A),onKeyDown:(0,y.onActivateKeyDown)(()=>T(!A)),children:[(0,t.jsx)("span",{className:"sf__multiList__mobileClose__title",children:(0,v.CapitalizeFirstLetter)($("close"))}),(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faClose})]})]}),C[25]=F,C[26]=A,C[27]=$,C[28]=I,C[29]=j):j=C[29],C[30]!==D||C[31]!==A?(b=(0,t.jsx)(D,{opened:A,setOpened:E}),C[30]=D,C[31]=A,C[32]=b):b=C[32],C[33]!==U||C[34]!==j||C[35]!==b?(S=(0,t.jsxs)("div",{className:U,children:[j,b]}),C[33]=U,C[34]=j,C[35]=b,C[36]=S):S=C[36],C[37]!==g||C[38]!==S?(N=(0,t.jsxs)(d.default,{escape:M,children:[g,S]}),C[37]=g,C[38]=S,C[39]=N):N=C[39],C[40]!==N||C[41]!==z||C[42]!==u?(w=(0,t.jsx)("div",{className:z,style:u,children:N}),C[40]=N,C[41]=z,C[42]=u,C[43]=w):w=C[43],C[44]!==w||C[45]!==m?(k=(0,t.jsxs)(t.Fragment,{children:[m,w]}),C[44]=w,C[45]=m,C[46]=k):k=C[46],k}var N=e.i(283599),w=e.i(186364),k=e.i(38827);let C=e=>{let a,i,r,s,o,d,c=(0,n.c)(17),{id:m,label:u,onChange:h,checked:f,indeterminate:_,disabled:x,disabledText:p}=e,g=void 0!==_&&_,j=void 0!==x&&x,b=(0,l.useRef)(null);c[0]!==g?(a=()=>{b&&b.current&&(b.current.indeterminate=g)},i=[g],c[0]=g,c[1]=a,c[2]=i):(a=c[1],i=c[2]),(0,l.useEffect)(a,i);let v="euiCheckbox"+(null!=u?" euiCheckbox--noLabel":"");return c[3]!==f||c[4]!==j||c[5]!==p||c[6]!==m||c[7]!==h?(r=j&&null!=p?(0,t.jsx)(w.OverlayTrigger,{placement:"top",overlay:(0,t.jsx)(k.Tooltip,{children:p}),children:(0,t.jsx)("input",{ref:b,onChange:h,className:"euiCheckbox__input",type:"checkbox",id:m,checked:!1,disabled:j})}):(0,t.jsx)("input",{ref:b,onChange:h,className:"euiCheckbox__input",type:"checkbox",id:m,checked:f,disabled:j}),c[3]=f,c[4]=j,c[5]=p,c[6]=m,c[7]=h,c[8]=r):r=c[8],c[9]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)("div",{className:"euiCheckbox__square"}),c[9]=s):s=c[9],c[10]!==m||c[11]!==u?(o=null!=u&&(0,t.jsx)("label",{className:"euiCheckbox__label",htmlFor:m,children:u}),c[10]=m,c[11]=u,c[12]=o):o=c[12],c[13]!==v||c[14]!==r||c[15]!==o?(d=(0,t.jsxs)("div",{className:v,children:[r,s,o]}),c[13]=v,c[14]=r,c[15]=o,c[16]=d):d=c[16],d};var D=e.i(305343);let I=e=>e.map(e=>{let t={...e};return e.children&&(t.children=e.children.map(e=>({...e,parent:t}))),t});var L=e.i(176480),F=e.i(619721);function A(e){let a,i,r,s,o,d,c,m,u,h,_=(0,n.c)(29),{setOpened:x}=e,[p,j]=f("tour_flags"),[b,v]=g("tour_flags");_[0]===Symbol.for("react.memo_cache_sentinel")?(a=[],_[0]=a):a=_[0];let[y,S]=(0,l.useState)(a),{data:w,error:k}=(0,N.default)("https://bck.alexandria.cz/filter-generic?filter_name=tour_flags");e:{if(!w){i=[];break e}
1let e=I(w).sort(M),t=Math.min(w.length,5),n=Array(t).fill(0),l=Array(t);for(let e=0;e<l.length;++e)l[e]=[];for(let t of e){let e=0;for(let t=0;t<n.length;t++){if(0==n[t]){e=t;break}n[t]<n[e]&&(e=t)}l[e].push(t),n[e]=n[e]+(t.children?.length??0)}i=l}let A=i;_[1]!==p||_[2]!==b||_[3]!==v?(r=e=>{let t=[];e.forEach(e=>{e.children?.forEach(n=>{p.includes(n.id)&&void 0!==n.parent_id&&(b[n.parent_id]=e.name,t.push(n.id),t.push(n.parent_id))})}),S([...new Set(t)]),v({tour_flags:b})},_[1]=p,_[2]=b,_[3]=v,_[4]=r):r=_[4];let T=(0,l.useEffectEvent)(r);_[5]!==w||_[6]!==T?(s=()=>{w&&T(w)},_[5]=w,_[6]=T,_[7]=s):s=_[7],_[8]!==w?(o=[w],_[8]=w,_[9]=o):o=_[9],(0,l.useEffect)(s,o),_[10]!==j||_[11]!==v?(d=()=>{S([]),j({tour_flags:[]}),v({tour_flags:{}})},_[10]=j,_[11]=v,_[12]=d):d=_[12];let $=d;F.default.use("clear-all-filters",$),_[13]!==w||_[14]!==j||_[15]!==v?(c=()=>{if(!w)return;let e={};for(let t of w)e[t.id]=t.name;j({tour_flags:w.map(O)}),v({tour_flags:e});let t=[];for(let e of w)t.push(e.id),e.children&&(t=t.concat(e.children.map(E)));S(t)},_[13]=w,_[14]=j,_[15]=v,_[16]=c):c=_[16];let K=c;_[17]!==x?(m=()=>x(!1),_[17]=x,_[18]=m):m=_[18];let P=m;_[19]!==y||_[20]!==p||_[21]!==b||_[22]!==j||_[23]!==v?(u=e=>{let t=new Set(p),n={...b};if(t.has(e.id)){t.delete(e.id);let l=[...y].filter((t,n,l)=>t!=e.id&&(t!=e.parent_id||!e.parent||!e.parent.children||!!e.parent.children.some(t=>t.id!=e.id&&l.includes(t.id))));void 0!==e.parent_id&&!l.includes(e.parent_id)&&n.hasOwnProperty(e.parent_id)&&delete n[e.parent_id],S(l)}else{t.add(e.id),e.parent&&(n[e.parent.id]=e.parent.name);let l=[...y,e.id];void 0!==e.parent_id&&l.push(e.parent_id),S([...new Set(l)])}j({tour_flags:[...t]}),v({tour_flags:n})},_[19]=y,_[20]=p,_[21]=b,_[22]=j,_[23]=v,_[24]=u):u=_[24];let R=u;if(k){let e;return _[25]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("p",{children:"Loading failed..."}),_[25]=e):e=_[25],e}if(!w){let e;return _[26]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(L.default,{}),_[26]=e):e=_[26],e}let z=A.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"sf__multiList-inner",children:A.map(e=>(0,t.jsx)("div",{className:"column",children:(0,t.jsx)("ul",{children:e.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsx)("div",{className:"column_item",children:(0,t.jsx)("label",{className:"column_item--header",children:(0,t.jsx)("strong",{children:e.name})})}),(e.children?.length??0)>0&&(0,t.jsx)("ul",{className:"column_item--no-padding",children:e.children?.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"column_item",children:[(0,t.jsx)(C,{id:e.id.toString(),onChange:()=>R(e),checked:y.includes(e.id)}),(0,t.jsx)("label",{htmlFor:e.id.toString(),children:e.name})]})},e.id))})]},e.id))})},e[0]?.id))}),(0,t.jsx)(D.default,{removeItems:$,addItems:K,confirm:P})]}):(0,t.jsx)(L.default,{});return _[27]!==z?(h=(0,t.jsx)(t.Fragment,{children:z}),_[27]=z,_[28]=h):h=_[28],h}function E(e){return e.id}function O(e){return e.id}function M(e,t){return(t.children?.length??0)-(e.children?.length??0)}function T(e){let a,i,r,s,o,d,c,m,u,h,_=(0,n.c)(37),{setOpened:x}=e,[p,j]=f("board"),[b,v]=g("board");_[0]===Symbol.for("react.memo_cache_sentinel")?(a=[],_[0]=a):a=_[0];let[y,S]=(0,l.useState)(a),{data:w,error:k}=(0,N.default)("https://bck.alexandria.cz/filter-generic?filter_name=board");_[1]===Symbol.for("react.memo_cache_sentinel")?(i=[],_[1]=i):i=_[1];let[I,A]=(0,l.useState)(i);_[2]!==b||_[3]!==v?(r=(e,t)=>{let n=!1;A(e.map(e=>{let l=e.order_index??void 0;return t.includes(e.id)?void 0===l||b.hasOwnProperty(l)||(b[l]=e.name,n=!0):void 0!==l&&b.hasOwnProperty(l)&&(delete b[l],n=!0),{name:e.name,id:e.id,selected:t.includes(e.id),orderIndex:l}})),S(t.map(K)),n&&v({board:b})},_[2]=b,_[3]=v,_[4]=r):r=_[4];let E=(0,l.useEffectEvent)(r);_[5]!==w||_[6]!==p||_[7]!==E?(s=()=>{w&&E(w,p)},_[5]=w,_[6]=p,_[7]=E,_[8]=s):s=_[8],_[9]!==w||_[10]!==p?(o=[w,p],_[9]=w,_[10]=p,_[11]=o):o=_[11],(0,l.useEffect)(s,o),_[12]!==y||_[13]!==p||_[14]!==b||_[15]!==j||_[16]!==v?(d=e=>{let t=new Set(p),n={...b};if(t.has(e.id))t.delete(e.id),void 0!==e.orderIndex&&delete n[e.orderIndex],S([...y].filter(t=>t!=e.id));else{t.add(e.id),void 0!==e.orderIndex&&(n[e.orderIndex]=e.name);let l=[...y,e.id];S(l=[...new Set(l)])}j({board:[...t]}),v({board:n})},_[12]=y,_[13]=p,_[14]=b,_[15]=j,_[16]=v,_[17]=d):d=_[17];let O=d;_[18]!==j||_[19]!==v?(c=()=>{j({board:[]}),v({board:{}}),S([])},_[18]=j,_[19]=v,_[20]=c):c=_[20];let M=c;F.default.use("clear-all-filters",M),_[21]!==I||_[22]!==j||_[23]!==v?(m=()=>{let e=I.map($),t={};for(let e of I)t[e.id]=e.name;j({board:e}),v({board:t}),S(e)},_[21]=I,_[22]=j,_[23]=v,_[24]=m):m=_[24];let T=m;_[25]!==x?(u=()=>{x(!1)},_[25]=x,_[26]=u):u=_[26];let P=u;if(k){let e;return _[27]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("p",{children:"Loading failed..."}
1),_[27]=e):e=_[27],e}if(!w){let e;return _[28]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(L.default,{}),_[28]=e):e=_[28],e}return _[29]!==T||_[30]!==y||_[31]!==P||_[32]!==O||_[33]!==I||_[34]!==M||_[35]!==p?(h=(0,t.jsx)(t.Fragment,{children:I.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"sf__multiList-inner",children:I.map(e=>(0,t.jsx)("div",{className:"column",children:(0,t.jsxs)("div",{className:"column_item",children:[(0,t.jsx)(C,{id:`board_${e.id.toString()}`,onChange:()=>O(e),checked:y.includes(e.id)&&p.includes(e.id),indeterminate:y.includes(e.id)&&!p.includes(e.id)}),(0,t.jsx)("label",{htmlFor:`board_${e.id.toString()}`,children:(0,t.jsx)("strong",{children:e.name})})]})},e.id))}),(0,t.jsx)(D.default,{addItems:T,removeItems:M,confirm:P})]}):(0,t.jsx)(L.default,{})}),_[29]=T,_[30]=y,_[31]=P,_[32]=O,_[33]=I,_[34]=M,_[35]=p,_[36]=h):h=_[36],h}function $(e){return e.id}function K(e){return+e}var P=e.i(770703),R=e.i(596924);let z=()=>{let e,l,a,i=(0,n.c)(3);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"rdr-skeleton__name",children:(0,t.jsx)(R.default,{width:90,height:16})}),i[0]=e):e=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("div",{className:"rdr-skeleton__grid",children:Array.from({length:7}).map(U)}),i[1]=l):l=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsxs)("div",{className:"rdr-skeleton__month",children:[e,l,(0,t.jsx)("div",{className:"rdr-skeleton__grid",children:Array.from({length:35}).map(H)})]}),i[2]=a):a=i[2],a},B=()=>{let e,l=(0,n.c)(1);return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("div",{className:"rdr-skeleton","aria-busy":"true","aria-label":"Načítání kalendáře",children:[(0,t.jsx)(z,{}),(0,t.jsx)(z,{})]}),l[0]=e):e=l[0],e};function U(e,n){return(0,t.jsx)(R.default,{height:14},`wd-${n}`)}function H(e,n){return(0,t.jsx)(R.default,{height:30,borderRadius:3},n)}var Y=e.i(912809),G=e.i(401851),V=e.i(826514),J=e.i(768592);let q=(0,P.default)(()=>e.A(258723),{loadableGenerated:{modules:[139995]},ssr:!1,loading:()=>(0,t.jsx)(B,{})}),Q=()=>{let e,r,s,c,m,u,h,f,x,p,g,j,b,S,N,w,k,I,L,A,E,O,M,T,$,K,P,R,z,B,U,H,Q,Z,ee,et,en,el,ea,ei,er,es,eo=(0,n.c)(96);eo[0]===Symbol.for("react.memo_cache_sentinel")?(e=["start","end","days"],eo[0]=e):e=eo[0];let[ed,ec]=_(e),[em,eu,eh]=ed;eo[1]!==em[0]||eo[2]!==em.length?(r=em.length>0?(0,V.parseISO)(String(em[0])):new Date,eo[1]=em[0],eo[2]=em.length,eo[3]=r):r=eo[3],eo[4]!==eu[0]||eo[5]!==eu.length?(s=eu.length>0?(0,V.parseISO)(String(eu[0])):null,eo[4]=eu[0],eo[5]=eu.length,eo[6]=s):s=eo[6],eo[7]!==r||eo[8]!==s?(c={startDate:r,endDate:s},eo[7]=r,eo[8]=s,eo[9]=c):c=eo[9];let[ef,e_]=(0,l.useState)(c);eo[10]!==em[0]||eo[11]!==em.length?(m=em.length>0?(0,V.parseISO)(String(em[0])):null,eo[10]=em[0],eo[11]=em.length,eo[12]=m):m=eo[12],eo[13]!==eu[0]||eo[14]!==eu.length?(u=eu.length>0?(0,V.parseISO)(String(eu[0])):null,eo[13]=eu[0],eo[14]=eu.length,eo[15]=u):u=eo[15],eo[16]!==m||eo[17]!==u?(h={startDate:m,endDate:u},eo[16]=m,eo[17]=u,eo[18]=h):h=eo[18];let[ex,ep]=(0,l.useState)(h),eg=(0,l.useRef)("start");eo[19]!==ec?(f=e=>{"start"==eg.current&&e.range1.startDate==e.range1.endDate?(e_({startDate:e.range1.startDate,endDate:null}),x(e.range1.startDate,null),eg.current="end"):(e_({startDate:e.range1.startDate,endDate:e.range1.endDate}),x(e.range1.startDate,e.range1.endDate),eg.current="start"),ep({startDate:e.range1.startDate,endDate:e.range1.endDate})},x=(e,t)=>{let n=void 0===e?null:e,l=void 0===t?null:t,a={start:[],end:[]};n&&a.start.push((0,G.format)(n,"yyyy-MM-dd")),l&&a.end.push((0,G.format)(l,"yyyy-MM-dd")),ec(a)},eo[19]=ec,eo[20]=f,eo[21]=x):(f=eo[20],x=eo[21]);let[ej,eb]=(0,l.useState)(!1);eo[22]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{eb(!1)},eo[22]=p):p=eo[22];let ev=p;eo[23]===Symbol.for("react.memo_cache_sentinel")?(g=e=>{eb(e),e?document.body.classList.add("no-scroll-mobile"):document.body.classList.remove("no-scroll-mobile")},eo[23]=g):g=eo[23];let ey=g,eS=()=>{ec({start:[],end:[]}),e_({...ef,startDate:new Date,endDate:null}
1),ep({startDate:new Date,endDate:null}),ek([])};F.default.use("clear-all-filters",eS);let[eN,ew]=(0,l.useState)(eh),ek=ew;eo[24]!==eN||eo[25]!==ek?(j=e=>{eN.includes(e)?ek(eN.filter(t=>t!=e)):ek([...eN,e])},eo[24]=eN,eo[25]=ek,eo[26]=j):j=eo[26];let eC=j,eD=(0,l.useRef)(!1);eo[27]!==ec?(b=e=>{if(!eD.current){eD.current=!0;return}ec({days:e})},eo[27]=ec,eo[28]=b):b=eo[28];let eI=(0,l.useEffectEvent)(b);eo[29]!==eN||eo[30]!==eI?(S=()=>{eI(eN)},eo[29]=eN,eo[30]=eI,eo[31]=S):S=eo[31],eo[32]!==eN?(N=[eN],eo[32]=eN,eo[33]=N):N=eo[33],(0,l.useEffect)(S,N),eo[34]!==ej?(w=()=>{if(!ej)return;let e=document.getElementsByClassName("sf__date-item");if(e.length>0){let t=e[0].getElementsByClassName("rdrMonthAndYearPickers");if(t.length>0){let e=t[0].textContent.split(" ");t[0].textContent=e[1]}}},k=[ej],eo[34]=ej,eo[35]=w,eo[36]=k):(w=eo[35],k=eo[36]),(0,l.useEffect)(w,k);let eL=W;eo[37]===Symbol.for("react.memo_cache_sentinel")?(I=(0,J.default)("/search-buttons-date-ranges",!0),eo[37]=I):I=eo[37];let eF=I;eo[38]===Symbol.for("react.memo_cache_sentinel")?(L=[],eo[38]=L):L=eo[38];let[eA,eE]=(0,l.useState)(L);eo[39]===Symbol.for("react.memo_cache_sentinel")?(A=()=>{(async()=>{eE(await eF.get())})()},eo[39]=A):A=eo[39];let eO=(0,l.useEffectEvent)(A);if(eo[40]!==eO?(E=()=>{eO()},eo[40]=eO,eo[41]=E):E=eo[41],eo[42]===Symbol.for("react.memo_cache_sentinel")?(O=[],eo[42]=O):O=eo[42],(0,l.useEffect)(E,O),eo[43]===Symbol.for("react.memo_cache_sentinel")){let e=new Date;M=e.getMonth()>5?new Date(e.getFullYear()+1,11,31):new Date(e.getFullYear(),11,31),eo[43]=M}else M=eo[43];let eM=M,eT=(0,a.useTranslations)(),e$=`sf__item sf__date-item ${ej?"opened":""}`;return eo[44]===Symbol.for("react.memo_cache_sentinel")?(T=()=>eb(!1),eo[44]=T):T=eo[44],eo[45]!==ej?($=()=>ey(!ej),eo[45]=ej,eo[46]=$):$=eo[46],eo[47]!==ej?(K=(0,y.onActivateKeyDown)(()=>ey(!ej)),eo[47]=ej,eo[48]=K):K=eo[48],eo[49]!==eT?(P=eT("search-form.date.label"),eo[49]=eT,eo[50]=P):P=eo[50],eo[51]!==P?(R=(0,t.jsx)("label",{htmlFor:"date-input",className:"sf__item-label",children:P}),eo[51]=P,eo[52]=R):R=eo[52],eo[53]!==eT?(z=eT("search-form.date.from"),eo[53]=eT,eo[54]=z):z=eo[54],eo[55]!==ef.startDate?(B=ef.startDate??new Date,eo[55]=ef.startDate,eo[56]=B):B=eo[56],eo[57]!==B?(U=(0,G.format)(B,"dd.MM.yyyy"),eo[57]=B,eo[58]=U):U=eo[58],eo[59]!==z||eo[60]!==U?(H=(0,t.jsx)("input",{placeholder:z,value:U,readOnly:!0,className:"sf__datepicker-from","aria-label":"date-from"}),eo[59]=z,eo[60]=U,eo[61]=H):H=eo[61],eo[62]===Symbol.for("react.memo_cache_sentinel")?(Q=(0,t.jsx)("div",{className:"sf__datepicker__delimiter",children:"→"}),eo[62]=Q):Q=eo[62],eo[63]!==eT?(Z=eT("search-form.date.to"),eo[63]=eT,eo[64]=Z):Z=eo[64],eo[65]!==ef.endDate?(ee=ef.endDate?(0,G.format)(ef.endDate,"dd.MM.yyyy"):"",eo[65]=ef.endDate,eo[66]=ee):ee=eo[66],eo[67]!==Z||eo[68]!==ee?(et=(0,t.jsx)("input",{placeholder:Z,value:ee,readOnly:!0,className:"sf__datepicker-to","aria-label":"date-to"}),eo[67]=Z,eo[68]=ee,eo[69]=et):et=eo[69],eo[70]!==H||eo[71]!==et?(en=(0,t.jsxs)("div",{className:"sf__datepicker__inputs",children:[H,Q,et]}),eo[70]=H,eo[71]=et,eo[72]=en):en=eo[72],eo[73]!==$||eo[74]!==K||eo[75]!==R||eo[76]!==en?(el=(0,t.jsxs)("div",{className:"sf__item-inner",role:"button",tabIndex:0,onClick:$,onKeyDown:K,children:[R,en]}),eo[73]=$,eo[74]=K,eo[75]=R,eo[76]=en,eo[77]=el):el=eo[77],eo[78]!==ej||eo[79]!==eN||eo[80]!==f||eo[81]!==ex||eo[82]!==eS||eo[83]!==eA||eo[84]!==x||eo[85]!==eC||eo[86]!==eT?(ea=ej&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sf__multiList__mobileClose",children:[(0,t.jsxs)("div",{className:"mobile_title",children:[(0,t.jsx)("span",{className:"mobile_title__icon",children:(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faCalendarAlt})}),(0,t.jsx)("span",{className:"mobile_title__text",children:eT("search-form.date.label")})]}),(0,t.jsxs)("div",{className:"sf__multiList__mobileClose--button",role:"button",tabIndex:0,onClick:()=>ey(!ej),onKeyDown:(0,y.onActivateKeyDown)(()=>ey(!ej)),children:[(0,t.jsx)("span",{className:"sf__multiList__mobileClose__title",children:(0,v.CapitalizeFirstLetter)(eT("close"))}),(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faClose})]})]}),(0,t.jsxs)("div",{className:"sf__date-itemHover-inner",children:[(0,t.jsx)("div",{className:"sf__datepicker-holder",children:(0,t.jsx)(q,{onChange:f,months:2,ranges:[{startDate:ex.startDate??new Date,endD
1ate:ex.endDate??new Date}],direction:"horizontal",minDate:new Date,maxDate:eM,locale:Y.cs,staticRanges:[],inputRanges:[],weekdayDisplayFormat:"EEEEE",monthDisplayFormat:"LLLL",showMonthAndYearPickers:!1,onShownDateChange:eL,onPreviewChange:X})}),(0,t.jsx)("div",{className:"sf__date-itemHover-right",children:(0,t.jsxs)("div",{className:"sf__date-itemHover-right--inner",children:[(0,t.jsx)(C,{id:"nigts_less_6",label:eT("search-form.date.less-than-6-nights"),onChange:()=>eC("lessSix"),checked:eN.includes("lessSix")}),(0,t.jsx)(C,{id:"nights_6_8",label:eT("search-form.date.between-6-8-nights"),onChange:()=>eC("sixToEight"),checked:eN.includes("sixToEight")}),(0,t.jsx)(C,{id:"nights_9_12",label:eT("search-form.date.between-9-12-nights"),onChange:()=>eC("nineToTwelve"),checked:eN.includes("nineToTwelve")}),(0,t.jsx)(C,{id:"nights_more_13",label:eT("search-form.date.more-than-13-nights"),onChange:()=>eC("moreThirteen"),checked:eN.includes("moreThirteen")}),(0,t.jsx)("div",{className:"sf__dateTermList",children:(0,t.jsx)("ul",{children:eA.map(e=>{let n=(0,V.parseISO)(e.start),l=(0,V.parseISO)(e.end);return(0,t.jsx)("li",{children:(0,t.jsx)("button",{type:"button",onClick:()=>{e_({startDate:n,endDate:l}),ep({startDate:n,endDate:l}),x(n,l),eL(l)},children:e.label})},e.id)})})})]})})]}),(0,t.jsx)(D.default,{removeItems:eS,confirm:ev})]}),eo[78]=ej,eo[79]=eN,eo[80]=f,eo[81]=ex,eo[82]=eS,eo[83]=eA,eo[84]=x,eo[85]=eC,eo[86]=eT,eo[87]=ea):ea=eo[87],eo[88]!==ea?(ei=(0,t.jsx)("div",{className:"sf__date-itemHover",children:ea}),eo[88]=ea,eo[89]=ei):ei=eo[89],eo[90]!==el||eo[91]!==ei?(er=(0,t.jsxs)(d.default,{escape:T,children:[el,ei]}),eo[90]=el,eo[91]=ei,eo[92]=er):er=eo[92],eo[93]!==e$||eo[94]!==er?(es=(0,t.jsx)("div",{className:e$,children:er}),eo[93]=e$,eo[94]=er,eo[95]=es):es=eo[95],es};function W(e){let t=document.getElementsByClassName("sf__date-item");if(t.length>0){let n=t[0].getElementsByClassName("rdrMonthAndYearPickers");n.length>0&&(n[0].textContent=e.getFullYear().toString())}}function X(){}var Z=e.i(628192);function ee(e){let i,r,s,o,d,c,m,u,h=(0,n.c)(32),{setOpened:_}=e,[x,p]=f("accommodation_category"),[j,b]=g("accommodation_category"),{data:v,error:y}=(0,N.default)("https://bck.alexandria.cz/filter-generic?filter_name=accommodation_category");h[0]===Symbol.for("react.memo_cache_sentinel")?(i=[],h[0]=i):i=h[0];let[S,w]=(0,l.useState)(i);h[1]===Symbol.for("react.memo_cache_sentinel")?(r=[],h[1]=r):r=h[1];let[k,I]=(0,l.useState)(r);h[2]!==k||h[3]!==S||h[4]!==x||h[5]!==j||h[6]!==p||h[7]!==b?(s=e=>{let t=new Set(x),n={...j};if(t.has(e.id))t.delete(e.id),delete n[e.id],I([...k].filter(t=>t!=e.id));else{t.add(e.id),n[e.id]=e.name;let l=[...k,e.id];if(e.exclusive)for(let a of S)a.exclusive&&a.id!=e.id&&(l=l.filter(e=>e!=a.id),t.has(a.id)&&(t.delete(a.id),a.id in n&&delete n[a.id]));I(l=[...new Set(l)])}p({accommodation_category:[...t]}),b({accommodation_category:n})},h[2]=k,h[3]=S,h[4]=x,h[5]=j,h[6]=p,h[7]=b,h[8]=s):s=h[8];let A=s;h[9]!==p||h[10]!==b?(o=()=>{p({accommodation_category:[]}),b({accommodation_category:{}}),I([])},h[9]=p,h[10]=b,h[11]=o):o=h[11];let E=o;F.default.use("clear-all-filters",E);let O=(0,a.useTranslations)();h[12]!==j||h[13]!==b||h[14]!==O?(d=(e,n)=>{let l=!1,a=[];w(e.filter(en).map(e=>{let i=0==+e.key?O("search-form.hotel-class.no-stars"):O("search-form.hotel-class.min-short")+" "+e.key+"*";return n.includes(e.key)?(a.push(e.key),j.hasOwnProperty(e.key)||(j[e.key]=i,l=!0)):j.hasOwnProperty(e.key)&&(delete j[e.key],l=!0),{name:i,id:e.key,selected:n.includes(e.key),exclusive:0!=+e.key,icon:0==+e.key?O("search-form.hotel-class.no-stars"):(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{children:O("search-form.hotel-class.min-long")}),(0,t.jsx)(Z.default,{stars:e.key})]})}})),I(a),l&&b({accommodation_category:j})},h[12]=j,h[13]=b,h[14]=O,h[15]=d):d=h[15];let M=(0,l.useEffectEvent)(d);if(h[16]!==v||h[17]!==x||h[18]!==M?(c=()=>{v&&M(v,x)},h[16]=v,h[17]=x,h[18]=M,h[19]=c):c=h[19],h[20]!==v||h[21]!==x?(m=[v,x],h[20]=v,h[21]=x,h[22]=m):m=h[22],(0,l.useEffect)(c,m),y){let e;return h[23]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("p",{children:"Loading failed..."}),h[23]=e):e=h[23],e}if(!v){let e;return h[24]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(L.default,{}),h[24]=e):e=h[24],e}return v.sort(et),h[25]!==k||h[26]!==A||h[27]!==S||h[28]!==E||h[29]!==x||h[30]!==_?(u=(0,t.jsx)(t.Fragment,{children:S.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"sf__multiList-inner",children:S.map(e=>(0,t.jsx)("div",{className:"column",children:(0,t.jsx)("div",{className:"column_item",children:(0,t.jsx)("div",{className:"sf__multiList-item",children:(0,t.jsxs)("div",{className:"sf__multiList-item-inner",children:[(0,t.jsx)(C,{id:`accommodation_category_${e.id.toString()}
1`,onChange:()=>A(e),checked:k.includes(e.id)&&x.includes(e.id),indeterminate:k.includes(e.id)&&!x.includes(e.id)}),(0,t.jsx)("label",{htmlFor:`accommodation_category_${e.id.toString()}`,className:"sf__iconLabel",children:e.icon})]})})})},e.id))}),(0,t.jsx)(D.default,{removeItems:E,confirm:()=>_(!1)})]}):(0,t.jsx)(L.default,{})}),h[25]=k,h[26]=A,h[27]=S,h[28]=E,h[29]=x,h[30]=_,h[31]=u):u=h[31],u}function et(e,t){let n=e.key,l=t.key;return n>l?1:n<l?-1:0}function en(e){return e.key%1==0}let el=()=>{let e,r,s,c,m,u,h,_,x,p,j,b,S,w,k,L,A,E=(0,n.c)(82),[O,M]=f("location"),[T,$]=g("location");E[0]===Symbol.for("react.memo_cache_sentinel")?(e=new Set,E[0]=e):e=E[0];let[K,P]=(0,l.useState)(e),R=(0,a.useTranslations)(),[z,B]=(0,l.useState)(!1);E[1]===Symbol.for("react.memo_cache_sentinel")?(r=[],E[1]=r):r=E[1];let[U,H]=(0,l.useState)(r),{data:Y,error:G}=(0,N.default)("https://bck.alexandria.cz/filter-location");E[2]===Symbol.for("react.memo_cache_sentinel")?(s=[],E[2]=s):s=E[2];let[V,J]=(0,l.useState)(s);E[3]!==U||E[4]!==O||E[5]!==T||E[6]!==M||E[7]!==$?(c=e=>{let t=new Set([...O]),n={...T};if(t.has(e.id)){t.delete(e.id),e.parent_id||null==e.order_index||delete n[e.order_index];let l=[...U].filter((t,n,l)=>!(t==e.id||e.children?.find(e=>e.id==t))&&(t!=e.parent_id||!e.parent||!e.parent.children||!!e.parent.children.some(t=>t.id!=e.id&&l.includes(t.id))));if(e.parent)void 0!==e.parent_id&&!l.includes(e.parent_id)&&null!=e.parent.order_index&&n.hasOwnProperty(e.parent.order_index)&&delete n[e.parent.order_index];else if(e.children)for(let n of e.children)t.delete(n.id);H(l)}else if(void 0!==e.parent_id&&t.has(e.parent_id)){let l=!1;if(t.delete(e.parent_id),e.parent?.children)for(let n of e.parent.children)n.id!=e.id&&(l=!0,t.add(n.id));e.parent?.children&&1==e.parent.children.length&&!l&&null!=e.parent.order_index&&delete n[e.parent.order_index],H([...U].filter(t=>t!=e.id&&(l||t!=e.parent_id)))}else{t.add(e.id),e.parent?null!=e.parent.order_index&&(n[e.parent.order_index]=e.parent.name):null!=e.order_index&&(n[e.order_index]=e.name);let l=[...U,e.id];if(null!=e.parent_id?l.push(e.parent_id):e.children&&(l=l.concat(e.children.filter(ea).map(ei))),l=[...new Set(l)],e.parent?.children&&void 0!==e.parent_id){if(e.parent.children.filter(er).every(e=>l.includes(e.id))){for(let n of e.parent.children)t.delete(n.id);t.add(e.parent_id)}}else if(e.children)for(let n of e.children)t.delete(n.id);H(l)}M({location:[...t]}),$({location:n})},E[3]=U,E[4]=O,E[5]=T,E[6]=M,E[7]=$,E[8]=c):c=E[8];let q=c,Q=(0,l.useRef)(!1);E[9]!==O||E[10]!==$?(m=e=>{if(Q.current)return;Q.current=!0;let t=I(e),n=new Set,l={};for(let e of O){let a=null;for(let n of t){if(n.id==+e){a=n;break}if(n.children){let t=n.children.find(t=>t.id==+e);if(t){a=t;break}}}if(a){if(a.parent?null!=a.parent.order_index&&(l[a.parent.order_index]=a.parent.name):null!=a.order_index&&(l[a.order_index]=a.name),n.add(+e),a.parent&&void 0!==a.parent_id)n.add(a.parent_id);else if(a.children)for(let e of a.children)n.add(e.id)}}J(t),H([...n]),$({location:l})},E[9]=O,E[10]=$,E[11]=m):m=E[11];let W=(0,l.useEffectEvent)(m);E[12]!==Y||E[13]!==W?(u=()=>{Y&&W(Y)},E[12]=Y,E[13]=W,E[14]=u):u=E[14],E[15]!==Y?(h=[Y],E[15]=Y,E[16]=h):h=E[16],(0,l.useEffect)(u,h),E[17]!==M||E[18]!==$?(_=()=>{H([]),$({location:{}}),M({location:[]})},E[17]=M,E[18]=$,E[19]=_):_=E[19];let X=_;F.default.use("clear-all-filters",X);let Z=es;E[20]===Symbol.for("react.memo_cache_sentinel")?(x=e=>[...e].sort((e,t)=>{let n=Z(e.group),l=Z(t.group);return n!==l?null==n?1:null==l?-1:n-l:null==e.order_index&&null==t.order_index?-1:null==e.order_index?1:null==t.order_index?-1:e.order_index-t.order_index}).reduce((e,t)=>(null!==Z(t.group)&&(0===e.length||Z(e[e.length-1][0].group)!==Z(t.group))&&e.push([]),0==e.length&&e.push([]),e[e.length-1].push(t),e),[]),E[20]=x):x=E[20];let ee=x;if(E[21]!==U||E[22]!==K||E[23]!==Y||E[24]!==G||E[25]!==V||E[26]!==q||E[27]!==z||E[28]!==X||E[29]!==O||E[30]!==T||E[31]!==M||E[32]!==$||E[33]!==R){w=Symbol.for("react.early_return_sentinel");e:{let e,n,l,a,r,s,c,m,u,h,f=ee((V??[]).filter(eo)),_=ee((V??[]).filter(ed));E[40]!==Y||E[41]!==M||E[42]!==$?(e=()=>{let e=[],t={},n=[];if(Y){for(let l of Y)null!=l.order_index&&(t[l.order_index]=l.name),n.push(l.id),e.push(l.id),l.children&&(e=e.concat(l.children.map(ec)));H(e),$({location:t}),M({location:n})}},E[40]=Y,E[41]=M,E[42]=$,E[43]=e):e=E[43];let x=e;E[44]===Symbol.for("react.memo_cache_sentinel")?(n=()=>B(!1),E[44]=n):n=E[44];let g=n;E[45]!==K?(l=e=>{let t=new Set(K);K.has(e)?t.delete(e):t.add(e),P(t)},E[45]=K,E[46]=l):l=E[46];let N=l;E[47]!==U||E[48]!==K||E[49]!==N||E[50]!==q||E[51]!==O||E[52]!==R?(a=e=>e.map(e=>(0,t.jsx)("div",{className:"row",children:e.map(e=>(0,t.jsx)("div",{className:"row_item",children:e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C,{id:e.id.toString(),onChange:()=>q(e),checked:U.includes(e.id)&&O.includes(e.id),indeterminate:U.includes(e.id)&&!O.includes(e.id),disabled:!e.available&&!(U.includes(e.id)&&O.includes(e.id))&&!(U.includes(e.id)&&!O.includes(e.id)),disabledText:R("search-form.location.disabled")}),(0,t.jsx)("label",{role:"button",tabIndex:0,onClick:()=>N(e.id),onKeyDown:(0,y.onActivateKeyDown)(()=>N(e.id)),children:(0,t.jsx)("strong",{children:e.name})}),e.children&&e.children.length>0&&(0,t.jsx)("span",{className:"row_item--expander",role:"button",tabIndex:0,onClick:()=>N(e.id),onKeyDown:(0,y.onActivateKeyDown)(()=>N(e.id)),children:(0,t.jsx)(o.FontAwesomeIcon,{icon:K.has(e.id)?i.faAngleUp:i.faAngleDown})}),e.children&&K.has(e.id)&&e.children.length>0&&(0,t.jsx)("ul",{children:e.children.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsx)(C,{id:e.id.toString(),onChange:()=>q(e),checked:U.includes(e.id),disabled:!e.available&&!(U.includes(e.id)&&O.includes(e.id)),disabledText:R("search-form.location.disabled")}),(0,t.jsx)("label",{htmlFor:e.id.toString(),children:e.name})]},e.id))})]})},e.id))},e[0]?.id)),E[47]=U,E[48]=K,E[49]=N,E[50]=q,E[51]=O,E[52]=R,E[53]=a):a=E[53];let I=a;if(G){let e;E[54]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("p",{children:"Loading failed..."}),E[54]=e):e=E[54],w=e;break e}E[55]!==T||E[56]!==R?(r=Object.keys(T).length>0?Object.values(T).join(", "):R("search-form.default-value"),E[55]=T,E[56]=R,E[57]=r):r=E[57];let L=r;S=`sf__item sf__location-item ${z?"opened":""}`,p=d.default,E[58]===Symbol.for("react.memo_cache_sentinel")?(k=()=>B(!1),E[58]=k):k=E[58],E[59]!==z?(s=()=>B(!z),E[59]=z,E[60]=s):s=E[60],E[61]!==z?(c=(0,y.onActivateKeyDown)(()=>B(!z)),E[61]=z,E[62]=c):c=E[62],E[63]!==R?(m=R("search-form.location.destination"),E[63]=R,E[64]=m):m=E[64],E[65]!==m?(u=(0,t.jsx)("label",{htmlFor:"room-input",className:"sf__item-label",children:m}),E[65]=m,E[66]=u):u=E[66],E[67]!==L?(h=(0,t.jsx)("div",{className:"sf__roomFakeInput",children:L}),E[67]=L,E[68]=h):h=E[68],E[69]!==s||E[70]!==c||E[71]!==u||E[72]!==h?(j=(0,t.jsxs)("div",{className:"sf__item-inner",role:"button",tabIndex:0,onClick:s,onKeyDown:c,children:[u,h]}),E[69]=s,E[70]=c,E[71]=u,E[72]=h,E[73]=j):j=E[73],b=z&&(0,t.jsxs)("div",{className:"sf__multiList sf__multiList--icons sf__multiList--location",children:[(0,t.jsxs)("div",{className:"sf__multiList__mobileClose",children:[(0,t.jsxs)("div",{className:"mobile_title",children:[(0,t.jsx)("span",{className:"mobile_title__icon",children:(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faGlobe})}),(0,t.jsx)("span",{className:"mobile_title__text",children:R("search-form.location.destination")})]}),(0,t.jsxs)("div",{className:"sf__multiList__mobileClose--button",role:"button",tabIndex:0,onClick:()=>B(!z),onKeyDown:(0,y.onActivateKeyDown)(()=>B(!z)),children:[(0,t.jsx)("span",{className:"sf__multiList__mobileClose__title",children:(0,v.CapitalizeFirstLetter)(R("search-form.location.destination"))}),(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faClose})]})]}),(0,t.jsxs)("div",{className:"sf__multiList-inner",children:[_.length>0&&f.length>0&&(0,t.jsx)("div",{className:"sf__multiList-sectionTitle",children:R("search-form.location.stay")}),I(f),_.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"sf__multiList-sectionTitle",children:R("search-form.location.experience")}),I(_)]})]}),(0,t.jsx)(D.default,{removeItems:X,addItems:x,confirm:g})]})}E[21]=U,E[22]=K,E[23]=Y,E[24]=G,E[25]=V,E[26]=q,E[27]=z,E[28]=X,E[29]=O,E[30]=T,E[31]=M,E[32]=$,E[33]=R,E[34]=p,E[35]=j,E[36]=b,E[37]=S,E[38]=w,E[39]=k}else p=E[34],j=E[35],b=E[36],S=E[37],w=E[38],k=E[39];return w!==Symbol.for("react.early_return_sentinel")?w:(E[74]!==p||E[75]!==j||E[76]!==b||E[77]!==k?(L=(0,t.jsxs)(p,{escape:k,children:[j,b]}),E[74]=p,E[75]=j,E[76]=b,E[77]=k,E[78]=L):L=E[78],E[79]!==S||E[80]!==L?(A=(0,t.jsx)("div",{className:S,children:L}),E[79]=S,E[80]=L,E[81]=A):A=E[81],A)};function ea(e){return e.available}function ei(e){return e.id}function er(e){return e.available}function es(e){return null==e?null:Array.isArray(e)?e[0]??null:e}function eo(e){return!e.worldee}function ed(e){return!0===e.worldee}function ec(e){return e.id}var em=e.i(818825);function eu(){let e,r,s,c,m,u,h,f,x,p,g,j,b,S,N,w,k,C,D,I,L,A,E,O,M,T,$=(0,n.c)(65);$[0]===Symbol.for("react.memo_cache_sentinel")?(e=["ages","rooms"],$[0]=e):e=$[0];let[K,P]=_(e),[R,z]=K,B=(0,a.useTranslations)();if($[1]!==R||$[2]!==z[0]||$[3]!==z.length){let e;r=[20,20],$[8]!==z[0]||$[9]!==z.length?(e=()=>z.length>0?+z[0]:0,$[8]=z[0],$[9]=z.length,$[10]=e):e=$[10],s=e,c=l.useState,m=R.length>0?R.map(ep):r,$[1]=R,$[2]=z[0],$[3]=z.length,$[4]=r,$[5]=s,$[6]=c,$[7]=m}else r=$[4],s=$[5],c=$[6],m=$[7];let[U,H]=c(m),[Y,G]=(0,l.useState)(s());$[11]!==U||$[12]!==Y||$[13]!==P?(u=e=>{if(e<1||e>8)return;let t=[...U];e>U.length?t=U.concat(Array(e-U.length).fill(20)):e<U.length&&(t=U.slice(0,e));let n={ages:t.filter(ex).map(e_)};t.length<Y&&h(t.length),P(n),H(t)},h=e=>{e<0||e>8||e>U.length||(G(e),P({rooms:[e]}))},$[11]=U,$[12]=Y,$[13]=P,$[14]=u,$[15]=h):(u=$[14],h=$[15]),$[16
1]!==U||$[17]!==P?(f=(e,t)=>{let n=[...U],l=e.target.value;n[t]=+l,H([...n]),P({ages:(0,v.parseAgesToQuery)(n).split("|")})},$[16]=U,$[17]=P,$[18]=f):f=$[18];let V=f,[J,q]=(0,l.useState)(!1);$[19]===Symbol.for("react.memo_cache_sentinel")?(x=()=>{q(!1)},$[19]=x):x=$[19];let Q=x;$[20]===Symbol.for("react.memo_cache_sentinel")?(p=e=>{q(e),e?document.body.classList.add("no-scroll-mobile"):document.body.classList.remove("no-scroll-mobile")},$[20]=p):p=$[20];let W=p;$[21]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{q(!1)},$[21]=g):g=$[21];let X=g;F.default.use("clear-all-filters",()=>{H(r),G(0),P({ages:[],rooms:[]})});let Z=`sf__item sf__room-item ${J?"opened":""}`;$[22]!==J?(j=()=>W(!J),$[22]=J,$[23]=j):j=$[23],$[24]!==J?(b=(0,y.onActivateKeyDown)(()=>W(!J)),$[24]=J,$[25]=b):b=$[25],$[26]!==B?(S=B("search-form.person.label"),$[26]=B,$[27]=S):S=$[27],$[28]!==S?(N=(0,t.jsx)("label",{htmlFor:"room-input",className:"sf__item-label",children:S}),$[28]=S,$[29]=N):N=$[29],$[30]!==Y||$[31]!==B?(w=Y>0&&`${Y} ${(0,v.roomsTranslate)(Y,B)}`,$[30]=Y,$[31]=B,$[32]=w):w=$[32],$[33]!==B?(k=B("search-form.person.person-text-value"),$[33]=B,$[34]=k):k=$[34],$[35]!==U?(C=U.filter(ef),$[35]=U,$[36]=C):C=$[36];let ee=C.length;$[37]!==U?(D=U.filter(eh),$[37]=U,$[38]=D):D=$[38];let et=`${k}: ${ee} + ${D.length}`;return $[39]!==w||$[40]!==et?(I=(0,t.jsxs)("div",{className:"sf__roomFakeInput",children:[w," ",et]}),$[39]=w,$[40]=et,$[41]=I):I=$[41],$[42]!==b||$[43]!==N||$[44]!==I||$[45]!==j?(L=(0,t.jsxs)("div",{className:"sf__item-inner",role:"button",tabIndex:0,onClick:j,onKeyDown:b,children:[N,I]}),$[42]=b,$[43]=N,$[44]=I,$[45]=j,$[46]=L):L=$[46],$[47]!==J||$[48]!==B?(A=J&&(0,t.jsxs)("div",{className:"sf__multiList__mobileClose",children:[(0,t.jsxs)("div",{className:"mobile_title",children:[(0,t.jsx)("span",{className:"mobile_title__icon",children:(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faUserGroup})}),(0,t.jsx)("span",{className:"mobile_title__text",children:B("search-form.person.select")})]}),(0,t.jsxs)("div",{className:"sf__multiList__mobileClose--button",role:"button",tabIndex:0,onClick:()=>W(!J),onKeyDown:(0,y.onActivateKeyDown)(()=>W(!J)),children:[(0,t.jsx)("span",{className:"sf__multiList__mobileClose__title",children:(0,v.CapitalizeFirstLetter)(B("close"))}),(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faClose})]})]}),$[47]=J,$[48]=B,$[49]=A):A=$[49],$[50]!==U||$[51]!==V||$[52]!==u||$[53]!==h||$[54]!==Y?(E=(0,t.jsx)(em.default,{onCountChange:u,onRoomCountChange:h,rooms:Y,onAgeChange:V,confirm_:X,ages:U}),$[50]=U,$[51]=V,$[52]=u,$[53]=h,$[54]=Y,$[55]=E):E=$[55],$[56]!==A||$[57]!==E?(O=(0,t.jsxs)("div",{className:"sf__room-itemHover",children:[A,E]}),$[56]=A,$[57]=E,$[58]=O):O=$[58],$[59]!==L||$[60]!==O?(M=(0,t.jsx)(d.default,{escape:Q,children:(0,t.jsxs)("div",{children:[L,O]})}),$[59]=L,$[60]=O,$[61]=M):M=$[61],$[62]!==M||$[63]!==Z?(T=(0,t.jsx)("div",{className:Z,children:M}),$[62]=M,$[63]=Z,$[64]=T):T=$[64],T}function eh(e){return e<18&&e>=0}function ef(e){return e>=18}function e_(e,t){return`${t+1}_${e}`}function ex(e){return e>=0}function ep(e){return+e.toString().split("_")[1]}let eg=(0,P.default)(()=>e.A(352598),{loadableGenerated:{modules:[274936]},ssr:!1,loading:()=>(0,t.jsx)("div",{style:{marginTop:10,marginBottom:12},"aria-busy":"true","aria-label":"Načítání",children:(0,t.jsx)(R.default,{height:5,borderRadius:3})})});function ej({min:e,max:n,step:a=1,renderValue:i=e=>e.toString(),renderMinValue:r=i,renderMaxValue:s=i,onChange:o,dualValue:d}){let[c,m]=(0,l.useState)(d);return(0,t.jsxs)("div",{className:"sf__rangeSlider",children:[(0,t.jsx)(eg,{id:"home_daterangepicker",range:{min:e,max:n},start:[d[0].toString(),d[1].toString()],onUpdate:e=>m([e[0],e[1]]),step:a,onChange:e=>o([e[0],e[1]]),connect:!0,tooltips:[{to:r,from:()=>+c[0]},{to:s,from:()=>+c[1]}]}),(0,t.jsxs)("div",{className:"sf__rangeSlider__values",children:[(0,t.jsx)("div",{className:"sf__rangeSlider__min",children:r(e)}),(0,t.jsx)("div",{className:"sf__rangeSlider__max",children:c[1]!=n&&s(n)})]})]})}function eb({setOpened:e}){let n="beach",[a,i]=f(n),[r,s]=g(n),{data:o,error:d}=(0,N.default)(`https://bck.alexandria.cz/filter-generic?filter_name=${n}`),c=o?.map(e=>+e.id)??[0,500],m=Math.min(Math.max(...c),500)+1,u=Math.min(Math.min(...c),m-1),[h,_]=(0,l.useState)(void 0),x=(0,l.useEffectEvent)(e=>{let t=e;if(void 0===e){let e=a[n]?Object.keys(a[n]):null,l=0,i=0;
1e&&(i=l=Math.max(u,Math.min(+e[0],m)),e.length>1&&(i=e[1].toString().includes("+")?m:Math.min(+e[1],m))),t=e?[l,i]:void 0}if(void 0==t)return;let l=0;t[1].toString().includes("+")?l=t[1]:(l=Math.round(+t[1]),t[1]==m&&(l=m-1+"+"));let r=[+t[0],l.toString()],o=+t[0];if(o==m&&(o-=1),+t[0]==u&&l.toString().includes("+")){i({[n]:[]}),s({[n]:{}});return}i({[n]:r}),s({[n]:{0:`${Math.round(o)} m - ${l} m`}})});(0,l.useEffect)(()=>{o&&x(h)},[h,o]);let p=()=>{_(null),i({[n]:[]}),s({[n]:{}})};return(F.default.use("clear-all-filters",p),d)?(0,t.jsx)("p",{children:"Loading failed..."}):o?(0,t.jsx)(t.Fragment,{children:o.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"sf__multiList-inner",children:(0,t.jsx)(ej,{min:u,max:m,dualValue:h??[u,m],onChange:_,step:10,renderMinValue:e=>+e==m?Math.round(e-1).toString()+"+ m":Math.round(+e).toString()+" m",renderMaxValue:e=>+e==m?Math.round(e-1).toString()+"+ m":Math.round(+e).toString()+" m"})}),(0,t.jsx)(D.default,{addItems:p,removeItems:p,confirm:()=>e(!1)})]}):(0,t.jsx)(L.default,{})}):(0,t.jsx)(t.Fragment,{})}var ev=e.i(570319);function ey(){let[[e,r,s],c]=_(["transport","departure_location","location"]),[[m,u],h]=(e=>{let t,l,a=(0,n.c)(6),i=x();if(a[0]!==e||a[1]!==i[0]){for(let n of(t=[],e))t.push({...i[0][n]??p});a[0]=e,a[1]=i[0],a[2]=t}else t=a[2];return a[3]!==i[1]||a[4]!==t?(l=[t,i[1]],a[3]=i[1],a[4]=t,a[5]=l):l=a[5],l})(["transport","departure_location"]),f=(0,J.default)("/filter-generic",!0,!1),g=(0,a.useTranslations)(),[j,b]=(0,l.useState)([]),[S,N]=(0,l.useState)({data:[],error:!1});(0,l.useEffect)(()=>{let t=!1;return(async()=>{try{let n=s.join("|"),l=await f.get({params:{filter_name:"transport",...n.length>0?{locations:n}:{}}}),a=await f.get({params:{filter_name:"departure_location",...n.length>0?{locations:n}:{}}});if(b(a),!t){N({data:l,error:!1});let t=!1,n=[...e],a={...m};(0,v.IsPolishWeb)()&&1==l.length&&(n.push(l[0].id),t=!0);let i=n.filter(e=>!l.find(t=>t.id==e)),s=r,o=u;for(let e of i)n=n.filter(t=>t!=e),delete a[e],1==+e&&(s=[],o={});(t||i.length>0)&&(c({transport:n,departure_location:s}),h({transport:a,departure_location:o}))}}catch(e){t||N({data:[],error:!0})}})(),()=>{t=!0,N({data:[],error:!1})}},[s.join(",")]);let[w,k]=(0,l.useState)(!1),C=(t,n)=>{let l=new Set(e),a={...m},i={},r={};l.has(t)?(l.delete(t),delete a[t],1==t&&(i.departure_location=[],r.departure_location={})):(l.add(t),a[t]=n),c({transport:[...l],...i}),h({transport:a,...r})},I=t=>{let n=!1,l=j?.find(e=>e.id==t),a=new Set(r),i={...u},s={...m};a.has(t)?(a.delete(t),l?.order_index!=null&&delete i[l.order_index],0==a.size&&(s[1]=g("search-form.transport.flight"),n=!0)):(a.add(t),l?.order_index!=null&&(i[l.order_index]=l.name),e.includes(1)&&(delete s[1],n=!0));let o={departure_location:i};n&&(o.transport=s),c({departure_location:[...a]}),h(o)},A=(0,l.useRef)(!1),E=(0,l.useEffectEvent)(t=>{if(0==t.length||A.current)return;A.current=!0;let n={transport:{},departure_location:{}};if(t.length>1){let l=new Set(e);for(let e of t)l.has(e.id)&&(n.transport[e.id]=e.name)}for(let e of(r.length>0&&n.hasOwnProperty("transport")&&n.transport.hasOwnProperty("1")&&delete n.transport["1"],r)){let t=j?.find(t=>t.id==+e);t?.order_index!=null&&(n.departure_location[t.order_index]=t.name)}h(n)});(0,l.useEffect)(()=>{E(S.data)},[S.data]);let O=()=>{h({departure_location:{},transport:{}}),c({departure_location:[],transport:[]})};F.default.use("clear-all-filters",O);let M=[];for(let e of j??[]){let t=null!=e.group?String(e.group):"other",n=M.find(e=>e.key==t);n||(n={key:t,name:e.group_name??null,locations:[]},M.push(n)),n.locations.push(e)}if(M.sort((e,t)=>(null==e.name)-(null==t.name)),S.error)return(0,t.jsx)("p",{children:"Loading failed..."});if(!S.data)return(0,t.jsx)(L.default,{});let T=g("search-form.default-value");if(!(0,v.IsEmpty)(m)&&S.data.length>1&&(T=Object.values(m).join(", ")),!(0,v.IsEmpty)(u)){let e=(0,v.IsEmpty)(m)?[]:Object.values(m);e.push(`${g("search-form.transport.flight")} - ${Object.values(u).join(", ")}`),T=e.join(", ")}return(0,t.jsx)("div",{className:`sf__item sf__transport-item ${w?"opened":""}`,children:(0,t.jsxs)(d.default,{escape:()=>k(!1),children:[(0,t.jsxs)("div",{className:"sf__item-inner",role:"button",tabIndex:0,onClick:()=>k(!w),onKeyDown:(0,y.onActivateKeyDown)(()=>k(!w)),children:[(0,t.jsx)("label",{htmlFor:"room-input",className:"sf__item-label",children:g("search-form.transport.label")}),(0,t.jsx)("div",{className:"sf__roomFakeInput",children:T})]}),w&&(0,t.jsxs)("div",{className:"sf__multiList sf__multiList--icons sf__multiList--transport",children:[(0,t.jsxs)("div",{className:"sf__multiList__mobileClose",children:[(0,t.jsxs)("div",{className:"mobile_title",children:[(0,t.jsx)("span",{className:"mobile_title__icon",children:(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faCar})}),(0,t.jsx)("span",{className:"mobile_title__text",children:g("search-form.transport.label")})]}),(0,t.jsxs)("div",{className:"sf__multiList__mobileClose--button",role:"button",tabIndex:0,onClick:()=>k(!1),onKeyDown:(0,y.onActivateKeyDown)(()=>k(!1)),children:[(0,t.jsx)("span",{className:"sf__multiList__mobileClose__title",children:(0,v.CapitalizeFirstLetter)(g("close"))}),(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faClose})]})]}),(0,t.jsxs)("div",{className:"sf__multiList-inner",children:[(0,t.jsx)("ul",{className:"transport-ul",children:S.data.map(n=>(0,t.jsxs)("li",{role:"button",tabIndex:0,onClick:()=>C(n.id,n.name),onKeyDown:(0,y.onActivateKeyDown)(()=>
1C(n.id,n.name)),className:e.includes(n.id)?"active":void 0,children:[(0,t.jsx)("div",{className:"transport-ul__icon",children:(0,t.jsx)(ev.default,{type:n.id})}),n.name]},n.id))}),e.includes(1)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"departure-paragraph",children:g("search-form.transport.departure-locations")}),M.map(e=>(0,t.jsxs)("div",{className:"departure-group",children:[(0,t.jsx)("p",{className:"departure-group__title",children:e.name??g("search-form.transport.other-departure-locations")}),(0,t.jsx)("ul",{className:"departure-ul",children:e.locations.map(e=>(0,t.jsx)("li",{role:"button",tabIndex:0,onClick:()=>I(e.id),onKeyDown:(0,y.onActivateKeyDown)(()=>I(e.id)),className:r.includes(e.id)?"active":void 0,children:e.name},e.id))})]},e.key))]})]}),(0,t.jsx)(D.default,{removeItems:O,addItems:()=>{let e={},t={},n=[],l=[];for(let t of S.data)e[t.id]=t.name,n.push(t.id);for(let e of j??[])null!=e.order_index&&(t[e.order_index]=e.name),l.push(e.id);h({transport:e,departure_location:t}),c({transport:n,departure_location:l})},confirm:()=>k(!1)})]})]})})}let eS="term_type";function eN(e){let a,i,r,s,o,d,c,m,u,h,_,x=(0,n.c)(39),{setOpened:p}=e,[j,b]=f(eS),[v,y]=g(eS),{data:S,error:w}=(0,N.default)(`https://bck.alexandria.cz/filter-generic?filter_name=${eS}`);x[0]!==j||x[1]!==v||x[2]!==y?(a=e=>{let t={};for(let n of e)j.includes(n.id)&&(t[n.id]=n.name);JSON.stringify(t)!=JSON.stringify(v)&&y({[eS]:t})},x[0]=j,x[1]=v,x[2]=y,x[3]=a):a=x[3];let k=(0,l.useEffectEvent)(a);x[4]!==S||x[5]!==k?(i=()=>{S&&k(S)},x[4]=S,x[5]=k,x[6]=i):i=x[6],x[7]!==S||x[8]!==j?(r=[S,j],x[7]=S,x[8]=j,x[9]=r):r=x[9],(0,l.useEffect)(i,r),x[10]!==j||x[11]!==b?(s=e=>{let t=new Set(j);t.has(e.id)?t.delete(e.id):t.add(e.id),b({[eS]:[...t]})},x[10]=j,x[11]=b,x[12]=s):s=x[12];let I=s;x[13]!==b||x[14]!==y?(o=()=>{b({[eS]:[]}),y({[eS]:{}})},x[13]=b,x[14]=y,x[15]=o):o=x[15];let A=o;F.default.use("clear-all-filters",A),x[16]!==S||x[17]!==b?(d=()=>b({[eS]:(S??[]).map(ew)}),x[16]=S,x[17]=b,x[18]=d):d=x[18];let E=d;x[19]!==p?(c=()=>p(!1),x[19]=p,x[20]=c):c=x[20];let O=c;if(w){let e;return x[21]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("p",{children:"Loading failed..."}),x[21]=e):e=x[21],e}if(!S||0==S.length){let e;return x[22]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(L.default,{}),x[22]=e):e=x[22],e}if(x[23]!==S||x[24]!==I||x[25]!==j){let e;x[27]!==I||x[28]!==j?(e=e=>(0,t.jsx)("div",{className:"column",children:(0,t.jsxs)("div",{className:"column_item",children:[(0,t.jsx)(C,{id:`${eS}_${e.id.toString()}`,onChange:()=>I(e),checked:j.includes(e.id)}),(0,t.jsx)("label",{htmlFor:`${eS}_${e.id.toString()}`,children:e.name})]})},e.id),x[27]=I,x[28]=j,x[29]=e):e=x[29],m=S.map(e),x[23]=S,x[24]=I,x[25]=j,x[26]=m}else m=x[26];return x[30]!==m?(u=(0,t.jsx)("div",{className:"sf__multiList-inner",children:m}),x[30]=m,x[31]=u):u=x[31],x[32]!==E||x[33]!==O||x[34]!==A?(h=(0,t.jsx)(D.default,{addItems:E,removeItems:A,confirm:O}),x[32]=E,x[33]=O,x[34]=A,x[35]=h):h=x[35],x[36]!==h||x[37]!==u?(_=(0,t.jsxs)(t.Fragment,{children:[u,h]}),x[36]=h,x[37]=u,x[38]=_):_=x[38],_}function ew(e){return e.id}var ek=e.i(67199);function eC(){let e,i,r,s,o,d,c,m,u,h,_,x=(0,n.c)(26),[p,g]=f("max_child_age"),j=(0,a.useTranslations)();x[0]===Symbol.for("react.memo_cache_sentinel")?(e={value:0,text:"Vyberte věk"},x[0]=e):e=x[0],x[1]!==j?(i=[e,...(0,v.range)(1,18).map(e=>({value:e,text:e.toString()+" "+(0,v.ageTranslate)(e,j)}))],x[1]=j,x[2]=i):i=x[2];let b=i;x[3]!==p[0]||x[4]!==p.length?(r=()=>p.length>0?p[0]:0,x[3]=p[0],x[4]=p.length,x[5]=r):r=x[5];let y=r;x[6]!==y?(s=y(),x[6]=y,x[7]=s):s=x[7];let[S,N]=(0,l.useState)(s);x[8]!==g?(o=e=>{e<0||e>17||(N(e),g({max_child_age:[e]}))},x[8]=g,x[9]=o):o=x[9];let w=o;F.default.use("clear-all-filters",()=>{N(0),g({max_child_age:[]})}),x[10]!==j?(d=j("child-age-component.select-title"),x[10]=j,x[11]=d):d=x[11],x[12]!==d?(c=(0,t.jsx)("label",{className:"sf__item-label",children:d}),x[12]=d,x[13]=c):c=x[13];let k=+S;return x[14]!==w?(m=e=>w(+e.target.value),x[14]=w,x[15]=m):m=x[15],x[16]!==j?(u=j("child-age-component.select-default-label"),x[16]=j,x[17]=u):u=x[17],x[18]!==b||x[19]!==k||x[20]!==m||x[21]!==u?(h=(0,t.jsx)(ek.default,{id:"select-age",options:b,value:k,onChange:m,label:u}),x[18]=b,x[19]=k,x[20]=m,x[21]=u,x[22]=h):h=x[22],x[23]!==h||x[24]!==c?(_=(0,t.jsxs)("div",{className:"sf__child-age-component",children:[c,h]}),x[23]=h,x[24]=c,x[25]=_):_=x[25],_}var eD=e.i(618566),eI=e.i(471706),eL=e.i(98977);let eF=new Set(["location","board","transport","accommodation_category","provider","start","end","tour_flags","term_type","tour_types","price","days","accommodation_fid","departure_location","ages","rooms","beach","max_child_age"]),eA=new Set(["start","end","accommodation_fid","tour_flags","ages","days","beach"]),eE=e=>{var d;let c,m,h,f,_,p,g,j,b,N,w,k,C,D,I,L,E,O,M,$,K,P,R,z,B,U,H,Y,J,q,W,X,Z,et,en,ea=(0,n.c)(90),{discountPage:ei,searchPage:er}=e,es=void 0!==ei&&ei,eo=void 0!==er&&er,ed=(0,l.useRef)(!0),ec=(0,eD.useRouter)(),em=(0,eD.useSearchParams)(),eh=(0,eD.usePathname)(),ef=(0,a.useTranslations)(),[e_,ex]=u(),[ep]=x(),[eg,ej]=(0,l.useState)(["board","accommodation_category","beach","tour_flags","term_type"].some(e=>e in e_)),ev=(0,eL.default)("lg"),[eS,ew]=(0,l.useState)(!1);F.default.use("open-mobile-filter",()=>ew(!0)),ea[0]!==eh||ea[1]!==eo||ea[2]!==em||ea[3]!==e_?(c=()=>
1{if(ed.current||!eo){ed.current=!1;return}let e=setTimeout(()=>{let e=new URLSearchParams;for(let t in e_)e.set(t,(e_[t]??[]).join("|"));em.has("order")&&em.has("sort")&&(e.set("order",em.get("order")??""),e.set("sort",em.get("sort")??""));let t=window.location.pathname+window.location.search,n=e.toString(),l=eh.replace(/^\/dovolena\/[^?]*/,"/vyhledavani").replace(/^\/last-minute\/[^?]*/,"/vyhledavani")+(n.length>0?`?${n}`:"");t!==l&&window.history.pushState({},"",l)},200);return()=>{e&&clearTimeout(e)}},ea[0]=eh,ea[1]=eo,ea[2]=em,ea[3]=e_,ea[4]=c):c=ea[4],ea[5]!==e_?(m=[e_],ea[5]=e_,ea[6]=m):m=ea[6],(0,l.useEffect)(c,m),ea[7]===Symbol.for("react.memo_cache_sentinel")?(h=()=>ew(!1),ea[7]=h):h=ea[7];let{canClearHistory:ek}=(d=h,Z=(0,n.c)(7),et=(0,l.useRef)(!0),Z[0]===Symbol.for("react.memo_cache_sentinel")?(J=e=>et.current=e,Z[0]=J):J=Z[0],en=J,Z[1]!==ev||Z[2]!==eS||Z[3]!==d?(q=()=>{if(eS&&ev){let e=window.location.href;et.current=!0,window.history.pushState({},"",e);let t=()=>{et.current=!1,d()};return window.addEventListener("popstate",t),()=>{window.removeEventListener("popstate",t),et.current&&window.history.back()}}},W=[eS,d,ev],Z[1]=ev,Z[2]=eS,Z[3]=d,Z[4]=q,Z[5]=W):(q=Z[4],W=Z[5]),(0,l.useEffect)(q,W),Z[6]===Symbol.for("react.memo_cache_sentinel")?(X={canClearHistory:en},Z[6]=X):X=Z[6],X);if(ea[8]!==ek||ea[9]!==es||ea[10]!==ev||ea[11]!==ec||ea[12]!==eo||ea[13]!==e_||ea[14]!==ex||ea[15]!==eg||ea[16]!==ef){let e,n,l,a,r=()=>{F.default.emit("clear-all-filters"),d()},d=()=>{ex({tour_types:[]})};f=ev,p=`sf ${ev?"mobile":""}`,ea[25]!==es?(g=es&&(0,t.jsx)(eC,{}),ea[25]=es,ea[26]=g):g=ea[26],w="sf__mainContent",ea[27]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("div",{className:"sf__mainContent-items",children:[(0,t.jsx)(el,{}),(0,t.jsx)(ey,{}),(0,t.jsx)(Q,{}),(0,t.jsx)(eu,{})]}),ea[27]=e):e=ea[27],ea[28]!==eg||ea[29]!==f||ea[30]!==ef?(n=(f||eg)&&(0,t.jsxs)("div",{className:"sf__advancedSearch",children:[(0,t.jsx)(S,{title:ef("search-form.term-type"),name:"term_type",icon:(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faTags}),Filter:eN}),(0,t.jsx)(S,{title:ef("search-form.board"),name:"board",icon:(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faUtensils}),Filter:T}),(0,t.jsx)(S,{title:ef("search-form.accommodation-category"),name:"accommodation_category",icon:(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faStar}),Filter:ee}),(0,t.jsx)(S,{title:ef("search-form.beach-distance"),name:"beach",icon:(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faCircleInfo}),Filter:eb}),(0,t.jsx)(S,{title:ef("search-form.other-criteria"),name:"tour_flags",icon:(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faCog}),Filter:A})]}),ea[28]=eg,ea[29]=f,ea[30]=ef,ea[31]=n):n=ea[31],ea[32]!==n?(_=(0,t.jsxs)("div",{className:"sf__mainContent__inner",children:[e,n]}),ea[32]=n,ea[33]=_):_=ea[33],j="sf__mainContent-actions",ea[34]!==ef?(l=ef("search-form.submit"),ea[34]=ef,ea[35]=l):l=ea[35],ea[36]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faAngleRight}),ea[36]=a):a=ea[36],b=(0,t.jsx)("div",{className:"sf__item sf__submit-item",children:(0,t.jsxs)("button",{type:"button",onClick:()=>{let e,t;eo?d():(e={},Object.keys(e_).length&&(e=Object.assign({},...Object.keys(e_).map(e=>({[e]:(e_[e]??[]).join("|")})))),t=new URLSearchParams(e),ec.push("/vyhledavani?"+t.toString())),ek(!1),ew(!1)},children:[l,a]})}),N=(ev||eg)&&(0,t.jsx)("div",{className:"remove-filter-values",children:(0,t.jsxs)("span",{role:"button",tabIndex:0,onClick:r,onKeyDown:(0,y.onActivateKeyDown)(r),children:[(0,t.jsx)(o.FontAwesomeIcon,{icon:s.faTrashCan})," ",(0,v.CapitalizeFirstLetter)(ef("clear-all"))]})}),ea[8]=ek,ea[9]=es,ea[10]=ev,ea[11]=ec,ea[12]=eo,ea[13]=e_,ea[14]=ex,ea[15]=eg,ea[16]=ef,ea[17]=f,ea[18]=_,ea[19]=p,ea[20]=g,ea[21]=j,ea[22]=b,ea[23]=N,ea[24]=w}else f=ea[17],_=ea[18],p=ea[19],g=ea[20],j=ea[21],b=ea[22],N=ea[23],w=ea[24];ea[37]!==j||ea[38]!==b||ea[39]!==N?(k=(0,t.jsxs)("div",{className:j,children:[b,N]}),ea[37]=j,ea[38]=b,ea[39]=N,ea[40]=k):k=ea[40],ea[41]!==_||ea[42]!==k||ea[43]!==w?(C=(0,t.jsxs)("div",{className:w,children:[_,k]}),ea[41]=_,ea[42]=k,ea[43]=w,ea[44]=C):C=ea[44],ea[45]!==eg||ea[46]!==f||ea[47]!==ef?(D=!f&&(0,t.jsx)("div",{className:"sf__item sf__toggleAdvenced-item",children:(0,t.jsxs)("button",{type:"button",onClick:()=>ej(!eg),className:`${eg?"active":void 0}`,children:[ef(eg?"search-form.less-filters":"search-form.more-filters"),(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faAngleRight})]})}),ea[45]=eg,ea[46]=f,ea[47]=ef,ea[48]=D):D=ea[48],ea[49]!==p||ea[50]!==g||ea[51]!==C||ea[52]!==D?(I=(0,t.jsxs)("div",{className:p,children:[g,C,D]}),ea[49]=p,ea[50]=g,ea[51]=C,ea[52]=D,ea[53]=I):I=ea[53];let eI=I;ea[54]!==eS?(L=()=>ew(!eS),ea[54]=eS,ea[55]=L):L=ea[55],ea[56]!==eS?(E=(0,y.onActivateKeyDown)(()=>ew(!eS)),ea[56]=eS,ea[57]=E):E=ea[57],ea[58]!==ep.location?(O=ep.location&&Object.keys(ep.location).length>0?Object.values(ep.location).map(eO).join(", "):"Destinace nerozhoduje",ea[58]=ep.location,ea[59]=O):O=ea[59],ea[60]!==O?(M=(0,t.jsx)("b",{children:O}),ea[60]=O,ea[61]=M):M=ea[61],ea[62]!==e_.start?($=e_.start?.[0]?(0,G.format)((0,V.parseISO)(String(e_.start[0])),"dd.MM."):(0,G.format)(new Date,"dd.MM."),ea[62]=e_.start,ea[63]=$):$=ea[63],ea[64]!==e_.end?(K=e_.end?.[0]?`${(0,G.format)((0,V.parseISO)(String(e_.end[0])),"dd.MM.")}`:"...",ea[64]=e_.end,ea[65]=K):K=ea[65];let eF=(e_.ages?.length??0)>0?e_.ages?.length??2:2;ea[66]!==ef||ea[67]!==eF?(P=(0,v.passengerTranslate)(eF,ef),ea[66]=ef,ea[67]=eF,ea[68]=P):P=ea[68];let eA=`${(e_.ages?.length??0)>0?e_.ages?.length??2:2} ${P}`;return ea[69]!==$||ea[70]!==K||ea[71]!==eA?(R=(0,t.jsxs)("span",{children:[$," - ",K," • ",eA]}),ea[69]=$,ea[70]=K,ea[71]=eA,ea[72]=R):R=ea[72],ea[73]!==M||ea[74]!==R?(z=(0,t.jsxs)("div",{children:[M,R]}),ea[73]=M,ea[74]=R,ea[75]=z):z=ea[75],ea[76]===Symbol.for("react.memo_cache_sentinel")?(B=(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faMagnifyingGlass}),ea[76]=B):B=ea[76],ea[77]!==L||ea[78]!==E||ea[79]!==z?(U=(0,t.jsxs)("div",{className:"sf_toggler",role:"button",tabIndex:0,onClick:L,onKeyDown:E,children:[z,B]}),ea[77]=L,ea[78]=E,ea[79]=z,ea[80]=U):U=ea[80],ea[81]!==eI||ea[82]!==ev||ea[83]!==eo||ea[84]!==eS||ea[85]!==ef?(H=ev?(0,t.jsxs)(r.Modal,{show:eS,onHide:()=>ew(!1),fullscreen:!0,className:`filter-mobile-modal${eo?" search-page":""}`,children:[(0,t.jsxs)(r.Modal.Title,{children:[ef("search-results.filter"),(0,t.jsx)("span",{className:"close-button",role:"button",tabIndex:0,"aria-label":ef("close"),onClick:()=>ew(!1),onKeyDown:(0,y.onActivateKeyDown)(()=>ew(!1))})]}),(0,t.jsx)(r.Modal.Body,{children:(0,t.jsx)("div",{className:"filter-modal-content",children:eI}
1)})]}):!ev&&eI,ea[81]=eI,ea[82]=ev,ea[83]=eo,ea[84]=eS,ea[85]=ef,ea[86]=H):H=ea[86],ea[87]!==U||ea[88]!==H?(Y=(0,t.jsxs)(t.Fragment,{children:[U,H]}),ea[87]=U,ea[88]=H,ea[89]=Y):Y=ea[89],Y};function eO(e){return e}function eM(e,t){let[n,l]=t;return l&&0!=l.length?e[n]=[...new Set(l)]:e.hasOwnProperty(n)&&delete e[n],e}function eT(e,t){return Object.entries(t).reduce(eM,{...e})}function e$(e,t){let[n,l]=t;return l&&0!=Object.keys(l).length?e[n]=l:e.hasOwnProperty(n)&&delete e[n],e}function eK(e,t){return Object.entries(t).reduce(e$,{...e})}e.s(["default",0,e=>{let a,i,r,s,o,d,c,m,u=(0,n.c)(21),{searchQuery:h,discountPage:f,searchPage:_}=e,x=void 0!==f&&f,p=void 0!==_&&_,g=(0,eI.default)();u[0]!==x||u[1]!==g||u[2]!==p||u[3]!==h?(a=()=>{let e={};if(p||x){let t=g.toRecord();for(let n in h&&(t=h),t)if(eF.has(n))for(let l of(void 0==e[n]&&(e[n]=[]),t[n].split("|"))){let t=eA.has(n)?l:+l;e[n].push(t)}}return e.hasOwnProperty("ages")||(e.ages=["1_20","2_20"]),e},u[0]=x,u[1]=g,u[2]=p,u[3]=h,u[4]=a):a=u[4];let v=a;u[5]!==v?(i=v(),u[5]=v,u[6]=i):i=u[6];let[y,S]=(0,l.useReducer)(eT,i);u[7]===Symbol.for("react.memo_cache_sentinel")?(r={},u[7]=r):r=u[7];let[N,w]=(0,l.useReducer)(eK,r);return u[8]!==y?(s=[y,S],u[8]=y,u[9]=s):s=u[9],u[10]!==N?(o=[N,w],u[10]=N,u[11]=o):o=u[11],u[12]!==x||u[13]!==p?(d=(0,t.jsx)(eE,{discountPage:x,searchPage:p}),u[12]=x,u[13]=p,u[14]=d):d=u[14],u[15]!==o||u[16]!==d?(c=(0,t.jsx)(b,{init:o,children:d}),u[15]=o,u[16]=d,u[17]=c):c=u[17],u[18]!==s||u[19]!==c?(m=(0,t.jsx)(j,{init:s,children:c}),u[18]=s,u[19]=c,u[20]=m):m=u[20],m}],371060)}]);

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.