@smworks-cz/ui-kit 1.1.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import zo,{useState,useId,useCallback,useRef,useEffect,createContext,useMemo,useContext}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {EyeSlash,Eye,X,CaretUp,CaretDown,Minus,Plus,Check,MagnifyingGlass,XCircle,CheckCircle,Info,CaretLeft,CaretRight,CalendarBlank,UploadSimple,FileText,Folder,Eyedropper,Star,CaretUpDownIcon,CaretDownIcon,TrendUpIcon,TrendDownIcon,Funnel,PencilSimple,Trash,CaretLeftIcon,CaretRightIcon,XIcon,CheckIcon,MagnifyingGlassIcon,Warning,CopySimpleIcon,DotsSixVertical,ArrowBendDownRight}from'@phosphor-icons/react';import {createPortal}from'react-dom';var I=()=>{let[e,t]=useState("light");return useEffect(()=>{if(typeof window>"u")return;let r=()=>{let i=document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme");return i==="dark"||i==="light"?i:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};t(r());let o=window.matchMedia("(prefers-color-scheme: dark)"),n=i=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(i.matches?"dark":"light");};o.addEventListener("change",n);let a=new MutationObserver(i=>{i.forEach(l=>{l.attributeName==="data-theme"&&t(r());});});return a.observe(document.documentElement,{attributes:true}),a.observe(document.body,{attributes:true}),()=>{o.removeEventListener("change",n),a.disconnect();}},[]),e};var Se={primary:"#FC4F00",primaryHover:"#FF6D2A",secondaryHoverDark:"rgba(0,0,0,0.7)",secondaryHoverLight:"rgba(0,0,0,0.05)",borderDark:"rgba(255,255,255,0.3)",borderLight:"rgba(0,0,0,0.2)",white:"#ffffff",black:"#1a1a1a"},fa={sm:{paddingText:"6px 12px",paddingSquare:"6px",fontSize:"12px",gap:"6px"},md:{paddingText:"8px 16px",paddingSquare:"8px",fontSize:"14px",gap:"8px"},lg:{paddingText:"12px 20px",paddingSquare:"12px",fontSize:"16px",gap:"10px"}},ua=({size:e=14})=>{let[t,r]=useState(0),o=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let a=i=>{n.current===void 0&&(n.current=i),r((i-n.current)/800*360%360),o.current=requestAnimationFrame(a);};return o.current=requestAnimationFrame(a),()=>{o.current!==void 0&&cancelAnimationFrame(o.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${t}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},ga=zo.forwardRef(({variant:e="primary",size:t="md",icon:r,iconPosition:o="left",loading:n=false,fullWidth:a=false,children:i,style:l,className:p,...c},f)=>{let[u,s]=useState(false),d=I()==="dark",x=typeof c.href=="string",g=n||(x?false:!!c.disabled),S=i!=null&&i!=="",R=r!=null,y=(R||n)&&!S,{paddingText:b,paddingSquare:w,fontSize:D,gap:T}=fa[t],m={display:a?"flex":"inline-flex",width:a?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:S&&(R||n)?T:void 0,padding:y?w:b,borderRadius:"8px",cursor:g?"not-allowed":"pointer",opacity:g?.5:1,outline:"none",textDecoration:"none",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:D,lineHeight:"normal",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",boxSizing:"border-box",pointerEvents:g?"none":void 0},C=(()=>{switch(e){case "primary":return {backgroundColor:u?Se.primaryHover:Se.primary,color:Se.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:u?d?Se.secondaryHoverDark:Se.secondaryHoverLight:"transparent",color:d?Se.white:Se.black,border:"1px solid transparent"};case "outline":return {backgroundColor:u?d?Se.secondaryHoverDark:Se.secondaryHoverLight:"transparent",color:d?Se.white:Se.black,border:`1px solid ${u?d?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":d?Se.borderDark:Se.borderLight}`}}})(),v=jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:n?jsx(ua,{size:parseInt(D)-1}):r}),k=n||R,E=o==="right"?jsxs(Fragment,{children:[S&&jsx("span",{children:i}),k&&v]}):jsxs(Fragment,{children:[k&&v,S&&jsx("span",{children:i})]}),z={style:{...m,...C,...l},className:p,onMouseEnter:H=>{s(true),c.onMouseEnter?.(H);},onMouseLeave:H=>{s(false),c.onMouseLeave?.(H);}};if(x){let{href:H,target:A,rel:$,...L}=c;return jsx("a",{ref:f,href:H,target:A,rel:$??(A==="_blank"?"noopener noreferrer":void 0),"aria-disabled":g||void 0,...L,...z,children:E})}let{disabled:F,type:B="button",...M}=c;return jsx("button",{ref:f,type:B,disabled:g,"aria-busy":n||void 0,...M,...z,children:E})});ga.displayName="Button";var va=({size:e=16,color:t})=>{let[r,o]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let i=l=>{a.current===void 0&&(a.current=l),o((l-a.current)/800*360%360),n.current=requestAnimationFrame(i);};return n.current=requestAnimationFrame(i),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Sr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888"}},Sa={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},kr=zo.forwardRef(({label:e,icon:t,iconPosition:r="left",error:o,helperText:n,loading:a=false,clearable:i=false,passwordToggle:l,size:p="md",fullWidth:c=false,style:f,className:u,inputStyle:s,disabled:h,required:d,value:x,onChange:g,onFocus:S,onBlur:R,type:y,...b},w)=>{let D=I(),T=Sr[D],m=useId(),C=b.id??m,[v,k]=useState(false),[E,z]=useState(false),F=y==="password",B=l??F,M=F&&E?"text":y,H=h||a,A=!!o,$=typeof o=="string"?o:void 0,L=x!=null&&x!=="",Z=i&&L&&!H&&!B,Y=Sa[p],q=()=>{if(!g)return;g({target:{value:""},currentTarget:{value:""}});},re=t?jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:T.placeholder},children:t}):null,j=B&&!H?jsx("span",{role:"button",tabIndex:-1,"aria-label":E?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>z(G=>!G),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:T.placeholder,padding:"2px"},children:E?jsx(EyeSlash,{color:T.placeholder,size:Y.iconSize}):jsx(Eye,{color:T.placeholder,size:Y.iconSize})}):null,J=a?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:T.placeholder},children:jsx(va,{size:Y.iconSize,color:T.placeholder})}):j||(Z?jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:q,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:T.placeholder,padding:"2px"},children:jsx(X,{size:Y.iconSize-2,color:T.placeholder})}):r==="right"&&re?re:null),Q=r==="left"?re:null,V={display:"flex",alignItems:"center",gap:Y.gap,backgroundColor:H?T.backgroundDisabled:T.background,border:`1px solid ${A?T.borderError:v?T.borderFocus:T.border}`,borderRadius:"8px",padding:Y.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:H?.6:1,cursor:H?"not-allowed":"text"},me={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:Y.fontSize,lineHeight:"normal",color:T.text,cursor:H?"not-allowed":"text",...s},pe={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:T.label,userSelect:"none"},K={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:c?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:c?"100%":void 0,...f},className:u,children:[e&&jsxs("label",{htmlFor:C,style:pe,children:[e,d&&jsx("span",{style:{color:T.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("div",{style:V,children:[Q,jsx("input",{ref:w,id:C,type:M,disabled:h,required:d,readOnly:a||b.readOnly,value:x,onChange:g,style:me,onFocus:G=>{k(true),S?.(G);},onBlur:G=>{k(false),R?.(G);},...b}),J]}),$&&jsx("span",{style:{...K,color:T.borderError},children:$}),!$&&n&&jsx("span",{style:{...K,color:T.helperText},children:n})]})});kr.displayName="Input";var Ad=({label:e,htmlFor:t,children:r,style:o,className:n})=>{let a=I(),i=useId(),l=t??i,p={display:"flex",flexDirection:"column",gap:"8px",...o},c={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Sr[a].label,userSelect:"none"};return jsxs("div",{style:p,className:n,children:[jsx("label",{htmlFor:l,style:c,children:e}),r??jsx(kr,{id:l})]})};var Da={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",buttonBg:"rgba(255,255,255,0.06)",buttonHoverBg:"rgba(255,255,255,0.12)",buttonText:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",buttonBg:"rgba(0,0,0,0.04)",buttonHoverBg:"rgba(0,0,0,0.08)",buttonText:"#1a1a1a"}},za={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,height:"32px",buttonPadding:"6px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,height:"40px",buttonPadding:"8px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,height:"48px",buttonPadding:"10px"}},Ia=zo.forwardRef(({value:e,onChange:t,min:r,max:o,step:n=1,label:a,error:i,disabled:l=false,size:p="md",variant:c="default",prefix:f,suffix:u,style:s,className:h},d)=>{let x=I(),g=Da[x],R=useId(),y=za[p],[b,w]=useState(false),[D,T]=useState(null),m=!!i,C=typeof i=="string"?i:void 0,v=useCallback(Q=>{let V=Q;return r!==void 0&&V<r&&(V=r),o!==void 0&&V>o&&(V=o),V},[r,o]),k=useCallback(()=>{t(v(e+n));},[e,n,t,v]),E=useCallback(()=>{t(v(e-n));},[e,n,t,v]),z=useRef(null),F=useRef(null),B=useCallback(Q=>{l||(Q(),F.current=setTimeout(()=>{z.current=setInterval(Q,80);},400));},[l]),M=useCallback(()=>{F.current&&(clearTimeout(F.current),F.current=null),z.current&&(clearInterval(z.current),z.current=null);},[]);useEffect(()=>()=>M(),[M]);let H=Q=>{let V=Q.target.value;if(V===""||V==="-")return;let me=parseFloat(V);isNaN(me)||t(v(me));},A=()=>{w(false),t(v(e));},$=r===void 0||e>r,L=o===void 0||e<o,Z={display:"flex",alignItems:"center",backgroundColor:l?g.backgroundDisabled:g.background,border:`1px solid ${m?g.borderError:b?g.borderFocus:g.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:l?.6:1,overflow:"hidden",height:y.height},Y=(Q,V)=>({display:"flex",alignItems:"center",justifyContent:"center",padding:y.buttonPadding,border:"none",background:D===Q&&V&&!l?g.buttonHoverBg:g.buttonBg,color:V&&!l?g.buttonText:g.placeholder,cursor:l||!V?"not-allowed":"pointer",flexShrink:0,transition:"background-color 0.12s ease",height:"100%",minWidth:y.height,userSelect:"none"}),q={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:y.fontSize,lineHeight:"normal",color:g.text,textAlign:"center",cursor:l?"not-allowed":"text",MozAppearance:"textfield"},re={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:g.label,userSelect:"none"},j={fontFamily:"'Zalando Sans', sans-serif",fontSize:y.fontSize,color:g.placeholder,flexShrink:0,userSelect:"none",lineHeight:"normal"},J=(Q,V)=>({display:"flex",alignItems:"center",justifyContent:"center",border:"none",background:D===Q&&V&&!l?g.buttonHoverBg:"transparent",color:V&&!l?g.buttonText:g.placeholder,cursor:l||!V?"not-allowed":"pointer",padding:"0 6px",height:"14px",flexShrink:0,transition:"background-color 0.12s ease",userSelect:"none",borderRadius:"2px"});return c==="compact"?jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...s},className:h,children:[a&&jsx("label",{htmlFor:R,style:re,children:a}),jsxs("div",{style:Z,children:[jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"4px",padding:y.padding,minWidth:0},children:[f&&jsx("span",{style:j,children:f}),jsx("input",{ref:d,id:R,type:"text",inputMode:"numeric",value:e,onChange:H,onFocus:()=>w(true),onBlur:A,disabled:l,style:{...q,textAlign:"left"}}),u&&jsx("span",{style:j,children:u})]}),jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexShrink:0,borderLeft:`1px solid ${m?g.borderError:b?g.borderFocus:g.border}`,transition:"border-color 0.15s ease"},children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:l||!L,style:J("up",L),onMouseDown:()=>B(k),onMouseUp:M,onMouseLeave:()=>{M(),T(null);},onMouseEnter:()=>T("up"),children:jsx(CaretUp,{size:10,weight:"bold"})}),jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:l||!$,style:J("down",$),onMouseDown:()=>B(E),onMouseUp:M,onMouseLeave:()=>{M(),T(null);},onMouseEnter:()=>T("down"),children:jsx(CaretDown,{size:10,weight:"bold"})})]})]}),C&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.borderError,lineHeight:"normal"},children:C})]}):jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...s},className:h,children:[a&&jsx("label",{htmlFor:R,style:re,children:a}),jsxs("div",{style:Z,children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:l||!$,style:Y("minus",$),onMouseDown:()=>B(E),onMouseUp:M,onMouseLeave:()=>{M(),T(null);},onMouseEnter:()=>T("minus"),children:jsx(Minus,{size:y.iconSize})}),jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",padding:"0 4px",minWidth:0},children:[f&&jsx("span",{style:j,children:f}),jsx("input",{ref:d,id:R,type:"text",inputMode:"numeric",value:e,onChange:H,onFocus:()=>w(true),onBlur:A,disabled:l,style:q}),u&&jsx("span",{style:j,children:u})]}),jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:l||!L,style:Y("plus",L),onMouseDown:()=>B(k),onMouseUp:M,onMouseLeave:()=>{M(),T(null);},onMouseEnter:()=>T("plus"),children:jsx(Plus,{size:y.iconSize})})]}),C&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.borderError,lineHeight:"normal"},children:C})]})});Ia.displayName="NumberInput";var Aa=({size:e=16,color:t})=>{let[r,o]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let i=l=>{a.current===void 0&&(a.current=l),o((l-a.current)/800*360%360),n.current=requestAnimationFrame(i);};return n.current=requestAnimationFrame(i),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Fr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},uo=180,Er=({options:e,value:t,onChange:r,multiple:o=false,searchable:n=false,clearable:a=false,disabled:i=false,loading:l=false,error:p,placeholder:c="Vyberte\u2026",maxDropdownHeight:f=240,style:u,className:s})=>{let h=I(),d=Fr[h],x=useId(),g=useRef(null),S=useRef(null),R=useRef(null),y=useRef(null),[b,w]=useState(false),[D,T]=useState(false),[m,C]=useState("idle"),[v,k]=useState(""),[E,z]=useState(-1),[F,B]=useState({top:0,left:0,width:0,openAbove:false}),M=i||l,H=!!p,A=typeof p=="string"?p:void 0,$=useCallback(()=>{w(true),T(true),C("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>C("open"));});},[]),L=useCallback(()=>{w(false),C("closing"),k("");let N=setTimeout(()=>{T(false),C("idle");},uo);return ()=>clearTimeout(N)},[]),Z=o?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],Y=N=>Z.includes(N),q=v?e.filter(N=>(N.label??N.value).toLowerCase().includes(v.toLowerCase())):e,re=useCallback(()=>{if(!g.current)return;let N=g.current.getBoundingClientRect(),ee=S.current?.offsetHeight??f+60,oe=window.innerHeight-N.bottom-6,he=N.top-6,ye=oe<ee&&he>oe;B({top:ye?N.top-6:N.bottom+6,left:N.left,width:N.width,openAbove:ye});},[f]);useEffect(()=>{if(D)return re(),window.addEventListener("scroll",re,true),window.addEventListener("resize",re),()=>{window.removeEventListener("scroll",re,true),window.removeEventListener("resize",re);}},[D,re]);let j=useCallback(N=>{if(r)if(o){let ee=Y(N)?Z.filter(oe=>oe!==N):[...Z,N];r(ee);}else r(N),L();},[o,r,Z,L]),J=useCallback(N=>{N.stopPropagation(),r&&(r(o?[]:null),k(""));},[o,r]),Q=()=>{M||(b?L():$(),z(-1));},V=N=>{if(!M)switch(N.key){case "ArrowDown":N.preventDefault(),b?z(ee=>Math.min(ee+1,q.length-1)):($(),z(0));break;case "ArrowUp":N.preventDefault(),z(ee=>Math.max(ee-1,0));break;case "Enter":case " ":N.preventDefault(),b&&E>=0&&q[E]&&!q[E].disabled?j(q[E].value):b||($(),z(0));break;case "Escape":L();break;case "Tab":L();break}};useEffect(()=>{E>=0&&y.current&&y.current.children[E]?.scrollIntoView({block:"nearest"});},[E]),useEffect(()=>{if(!b)return;let N=ee=>{let oe=ee.target,he=g.current?.contains(oe),ye=S.current?.contains(oe);!he&&!ye&&L();};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[b,L]),useEffect(()=>{b&&n&&R.current&&R.current.focus();},[b,n]);let me=N=>e.find(oe=>oe.value===N)?.label??N,pe=a&&Z.length>0&&!M,K=()=>{let N=F.openAbove,ee=N?"translateY(8px)":"translateY(-8px)",oe=N?"translateY(6px)":"translateY(-6px)",he={transition:`opacity ${uo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${uo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return m==="opening"||m==="idle"?{...he,opacity:0,transform:`${ee} scale(0.97)`}:m==="open"?{...he,opacity:1,transform:"translateY(0) scale(1)"}:{...he,opacity:0,transform:`${oe} scale(0.98)`,pointerEvents:"none"}},G={display:"flex",alignItems:"center",gap:"10px",backgroundColor:M?d.backgroundDisabled:d.background,border:`1px solid ${H?d.borderError:b?d.borderFocus:d.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:M?.6:1,cursor:M?"not-allowed":"pointer",minHeight:"40px",userSelect:"none",outline:"none"},Pe=D?createPortal(jsxs("div",{ref:S,style:{position:"fixed",...F.openAbove?{bottom:window.innerHeight-F.top,left:F.left}:{top:F.top,left:F.left},width:F.width,backgroundColor:d.dropdownBg,border:`1px solid ${d.dropdownBorder}`,borderRadius:"12px",boxShadow:h==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:F.openAbove?"bottom center":"top center",...K()},children:[n&&jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${d.divider}`},children:jsx("input",{ref:R,type:"text",value:v,onChange:N=>{k(N.target.value),z(0);},onKeyDown:V,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:d.text,boxSizing:"border-box",padding:0}})}),jsxs("div",{ref:y,role:"listbox","aria-multiselectable":o,className:`sm-select-list-${x}`,style:{maxHeight:f,overflowY:"auto",padding:"6px"},children:[jsx("style",{children:`
1
+ import Po,{useState,useId,useCallback,useRef,useEffect,createContext,useMemo,useContext}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {EyeSlash,Eye,X,CaretUp,CaretDown,Minus,Plus,Check,MagnifyingGlass,XCircle,CheckCircle,Info,CaretLeft,CaretRight,CalendarBlank,UploadSimple,FileText,Folder,Eyedropper,Star,CaretUpDownIcon,CaretDownIcon,TrendUpIcon,TrendDownIcon,Funnel,PencilSimple,Trash,CaretLeftIcon,CaretRightIcon,XIcon,CheckIcon,MagnifyingGlassIcon,Warning,CopySimpleIcon,DotsSixVertical,ArrowBendDownRight}from'@phosphor-icons/react';import {createPortal}from'react-dom';var z=()=>{let[e,t]=useState("light");return useEffect(()=>{if(typeof window>"u")return;let r=()=>{let i=document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme");return i==="dark"||i==="light"?i:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};t(r());let o=window.matchMedia("(prefers-color-scheme: dark)"),a=i=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(i.matches?"dark":"light");};o.addEventListener("change",a);let n=new MutationObserver(i=>{i.forEach(l=>{l.attributeName==="data-theme"&&t(r());});});return n.observe(document.documentElement,{attributes:true}),n.observe(document.body,{attributes:true}),()=>{o.removeEventListener("change",a),n.disconnect();}},[]),e};var ve={primary:"#FC4F00",primaryHover:"#FF6D2A",secondaryHoverDark:"rgba(0,0,0,0.7)",secondaryHoverLight:"rgba(0,0,0,0.05)",borderDark:"rgba(255,255,255,0.3)",borderLight:"rgba(0,0,0,0.2)",white:"#ffffff",black:"#1a1a1a"},ma={sm:{paddingText:"6px 12px",paddingSquare:"6px",fontSize:"12px",gap:"6px",height:"30px"},md:{paddingText:"8px 16px",paddingSquare:"8px",fontSize:"14px",gap:"8px",height:"36px"},lg:{paddingText:"12px 20px",paddingSquare:"12px",fontSize:"16px",gap:"10px",height:"42px"}},ha=({size:e=14})=>{let[t,r]=useState(0),o=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let n=i=>{a.current===void 0&&(a.current=i),r((i-a.current)/800*360%360),o.current=requestAnimationFrame(n);};return o.current=requestAnimationFrame(n),()=>{o.current!==void 0&&cancelAnimationFrame(o.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${t}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},ya=Po.forwardRef(({variant:e="primary",size:t="md",icon:r,iconPosition:o="left",loading:a=false,fullWidth:n=false,children:i,style:l,className:p,...s},f)=>{let[u,c]=useState(false),g=z()==="dark",d=typeof s.href=="string",x=a||(d?false:!!s.disabled),S=i!=null&&i!=="",w=r!=null,y=(w||a)&&!S,{paddingText:b,paddingSquare:k,fontSize:D,gap:T,height:m}=ma[t],C={display:n?"flex":"inline-flex",width:n?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:S&&(w||a)?T:void 0,padding:y?k:b,height:m,borderRadius:"8px",cursor:x?"not-allowed":"pointer",opacity:x?.5:1,outline:"none",textDecoration:"none",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:D,lineHeight:"1",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",boxSizing:"border-box",pointerEvents:x?"none":void 0},v=(()=>{switch(e){case "primary":return {backgroundColor:u?ve.primaryHover:ve.primary,color:ve.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:u?g?ve.secondaryHoverDark:ve.secondaryHoverLight:"transparent",color:g?ve.white:ve.black,border:"1px solid transparent"};case "outline":return {backgroundColor:u?g?ve.secondaryHoverDark:ve.secondaryHoverLight:"transparent",color:g?ve.white:ve.black,border:`1px solid ${u?g?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":g?ve.borderDark:ve.borderLight}`};case "danger":return {backgroundColor:u?"#FF5252":"#EF3838",color:ve.white,border:"1px solid transparent"}}})(),R=jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:a?jsx(ha,{size:parseInt(D)-1}):r}),E=a||w,P=o==="right"?jsxs(Fragment,{children:[S&&jsx("span",{children:i}),E&&R]}):jsxs(Fragment,{children:[E&&R,S&&jsx("span",{children:i})]}),F={style:{...C,...v,...l},className:p,onMouseEnter:A=>{c(true),s.onMouseEnter?.(A);},onMouseLeave:A=>{c(false),s.onMouseLeave?.(A);}};if(d){let{href:A,target:N,rel:L,...O}=s;return jsx("a",{ref:f,href:A,target:N,rel:L??(N==="_blank"?"noopener noreferrer":void 0),"aria-disabled":x||void 0,...O,...F,children:P})}let{disabled:I,type:B="button",...H}=s;return jsx("button",{ref:f,type:B,disabled:x,"aria-busy":a||void 0,...H,...F,children:P})});ya.displayName="Button";var wa=({size:e=16,color:t})=>{let[r,o]=useState(0),a=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let i=l=>{n.current===void 0&&(n.current=l),o((l-n.current)/800*360%360),a.current=requestAnimationFrame(i);};return a.current=requestAnimationFrame(i),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},wr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888"}},Ta={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},Tr=Po.forwardRef(({label:e,icon:t,iconPosition:r="left",error:o,helperText:a,loading:n=false,clearable:i=false,passwordToggle:l,size:p="md",fullWidth:s=false,style:f,className:u,inputStyle:c,disabled:h,required:g,value:d,onChange:x,onFocus:S,onBlur:w,type:y,...b},k)=>{let D=z(),T=wr[D],m=useId(),C=b.id??m,[v,R]=useState(false),[E,P]=useState(false),F=y==="password",I=l??F,B=F&&E?"text":y,H=h||n,A=!!o,N=typeof o=="string"?o:void 0,L=d!=null&&d!=="",O=i&&L&&!H&&!I,W=Ta[p],q=()=>{if(!x)return;x({target:{value:""},currentTarget:{value:""}});},re=t?jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:T.placeholder},children:t}):null,K=I&&!H?jsx("span",{role:"button",tabIndex:-1,"aria-label":E?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>P(G=>!G),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:T.placeholder,padding:"2px"},children:E?jsx(EyeSlash,{color:T.placeholder,size:W.iconSize}):jsx(Eye,{color:T.placeholder,size:W.iconSize})}):null,j=n?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:T.placeholder},children:jsx(wa,{size:W.iconSize,color:T.placeholder})}):K||(O?jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:q,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:T.placeholder,padding:"2px"},children:jsx(X,{size:W.iconSize-2,color:T.placeholder})}):r==="right"&&re?re:null),Q=r==="left"?re:null,U={display:"flex",alignItems:"center",gap:W.gap,backgroundColor:H?T.backgroundDisabled:T.background,border:`1px solid ${A?T.borderError:v?T.borderFocus:T.border}`,borderRadius:"8px",padding:W.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:H?.6:1,cursor:H?"not-allowed":"text"},me={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:W.fontSize,lineHeight:"normal",color:T.text,cursor:H?"not-allowed":"text",...c},de={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:T.label,userSelect:"none"},X$1={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:s?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:s?"100%":void 0,...f},className:u,children:[e&&jsxs("label",{htmlFor:C,style:de,children:[e,g&&jsx("span",{style:{color:T.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("label",{htmlFor:C,style:U,children:[Q,jsx("input",{ref:k,id:C,type:B,disabled:h,required:g,readOnly:n||b.readOnly,value:d,onChange:x,style:me,onFocus:G=>{R(true),S?.(G);},onBlur:G=>{R(false),w?.(G);},...b}),j]}),N&&jsx("span",{style:{...X$1,color:T.borderError},children:N}),!N&&a&&jsx("span",{style:{...X$1,color:T.helperText},children:a})]})});Tr.displayName="Input";var Ud=({label:e,htmlFor:t,children:r,style:o,className:a})=>{let n=z(),i=useId(),l=t??i,p={display:"flex",flexDirection:"column",gap:"8px",...o},s={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:wr[n].label,userSelect:"none"};return jsxs("div",{style:p,className:a,children:[jsx("label",{htmlFor:l,style:s,children:e}),r??jsx(Tr,{id:l})]})};var Ma={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",buttonBg:"rgba(255,255,255,0.06)",buttonHoverBg:"rgba(255,255,255,0.12)",buttonText:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",buttonBg:"rgba(0,0,0,0.04)",buttonHoverBg:"rgba(0,0,0,0.08)",buttonText:"#1a1a1a"}},Aa={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,height:"30px",buttonPadding:"6px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,height:"36px",buttonPadding:"8px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,height:"42px",buttonPadding:"10px"}},Ha=Po.forwardRef(({value:e,onChange:t,min:r,max:o,step:a=1,label:n,error:i,disabled:l=false,size:p="md",variant:s="default",prefix:f,suffix:u,style:c,className:h},g)=>{let d=z(),x=Ma[d],w=useId(),y=Aa[p],[b,k]=useState(false),[D,T]=useState(null),m=!!i,C=typeof i=="string"?i:void 0,v=useCallback(Q=>{let U=Q;return r!==void 0&&U<r&&(U=r),o!==void 0&&U>o&&(U=o),U},[r,o]),R=useCallback(()=>{t(v(e+a));},[e,a,t,v]),E=useCallback(()=>{t(v(e-a));},[e,a,t,v]),P=useRef(null),F=useRef(null),I=useCallback(Q=>{l||(Q(),F.current=setTimeout(()=>{P.current=setInterval(Q,80);},400));},[l]),B=useCallback(()=>{F.current&&(clearTimeout(F.current),F.current=null),P.current&&(clearInterval(P.current),P.current=null);},[]);useEffect(()=>()=>B(),[B]);let H=Q=>{let U=Q.target.value;if(U===""||U==="-")return;let me=parseFloat(U);isNaN(me)||t(v(me));},A=()=>{k(false),t(v(e));},N=r===void 0||e>r,L=o===void 0||e<o,O={display:"flex",alignItems:"center",backgroundColor:l?x.backgroundDisabled:x.background,border:`1px solid ${m?x.borderError:b?x.borderFocus:x.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:l?.6:1,overflow:"hidden",height:y.height},W=(Q,U)=>({display:"flex",alignItems:"center",justifyContent:"center",padding:y.buttonPadding,border:"none",background:D===Q&&U&&!l?x.buttonHoverBg:x.buttonBg,color:U&&!l?x.buttonText:x.placeholder,cursor:l||!U?"not-allowed":"pointer",flexShrink:0,transition:"background-color 0.12s ease",height:"100%",minWidth:y.height,userSelect:"none"}),q={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:y.fontSize,lineHeight:"normal",color:x.text,textAlign:"center",cursor:l?"not-allowed":"text",MozAppearance:"textfield"},re={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:x.label,userSelect:"none"},K={fontFamily:"'Zalando Sans', sans-serif",fontSize:y.fontSize,color:x.placeholder,flexShrink:0,userSelect:"none",lineHeight:"normal"},j=(Q,U)=>({display:"flex",alignItems:"center",justifyContent:"center",border:"none",background:D===Q&&U&&!l?x.buttonHoverBg:"transparent",color:U&&!l?x.buttonText:x.placeholder,cursor:l||!U?"not-allowed":"pointer",padding:"0 6px",height:"14px",flexShrink:0,transition:"background-color 0.12s ease",userSelect:"none",borderRadius:"2px"});return s==="compact"?jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},className:h,children:[n&&jsx("label",{htmlFor:w,style:re,children:n}),jsxs("div",{style:O,children:[jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"4px",padding:y.padding,minWidth:0},children:[f&&jsx("span",{style:K,children:f}),jsx("input",{ref:g,id:w,type:"text",inputMode:"numeric",value:e,onChange:H,onFocus:()=>k(true),onBlur:A,disabled:l,style:{...q,textAlign:"left"}}),u&&jsx("span",{style:K,children:u})]}),jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexShrink:0,borderLeft:`1px solid ${m?x.borderError:b?x.borderFocus:x.border}`,transition:"border-color 0.15s ease"},children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:l||!L,style:j("up",L),onMouseDown:()=>I(R),onMouseUp:B,onMouseLeave:()=>{B(),T(null);},onMouseEnter:()=>T("up"),children:jsx(CaretUp,{size:10,weight:"bold"})}),jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:l||!N,style:j("down",N),onMouseDown:()=>I(E),onMouseUp:B,onMouseLeave:()=>{B(),T(null);},onMouseEnter:()=>T("down"),children:jsx(CaretDown,{size:10,weight:"bold"})})]})]}),C&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.borderError,lineHeight:"normal"},children:C})]}):jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},className:h,children:[n&&jsx("label",{htmlFor:w,style:re,children:n}),jsxs("div",{style:O,children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:l||!N,style:W("minus",N),onMouseDown:()=>I(E),onMouseUp:B,onMouseLeave:()=>{B(),T(null);},onMouseEnter:()=>T("minus"),children:jsx(Minus,{size:y.iconSize})}),jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",padding:"0 4px",minWidth:0},children:[f&&jsx("span",{style:K,children:f}),jsx("input",{ref:g,id:w,type:"text",inputMode:"numeric",value:e,onChange:H,onFocus:()=>k(true),onBlur:A,disabled:l,style:q}),u&&jsx("span",{style:K,children:u})]}),jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:l||!L,style:W("plus",L),onMouseDown:()=>I(R),onMouseUp:B,onMouseLeave:()=>{B(),T(null);},onMouseEnter:()=>T("plus"),children:jsx(Plus,{size:y.iconSize})})]}),C&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.borderError,lineHeight:"normal"},children:C})]})});Ha.displayName="NumberInput";var Wa=({size:e=16,color:t})=>{let[r,o]=useState(0),a=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let i=l=>{n.current===void 0&&(n.current=l),o((l-n.current)/800*360%360),a.current=requestAnimationFrame(i);};return a.current=requestAnimationFrame(i),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Ir={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},go=180,Br=({options:e,value:t,onChange:r,multiple:o=false,searchable:a=false,clearable:n=false,disabled:i=false,loading:l=false,error:p,label:s,placeholder:f="Vyberte\u2026",maxDropdownHeight:u=240,style:c,className:h})=>{let g=z(),d=Ir[g],x=useId(),S=useRef(null),w=useRef(null),y=useRef(null),b=useRef(null),[k,D]=useState(false),[T,m]=useState(false),[C,v]=useState("idle"),[R,E]=useState(""),[P,F]=useState(-1),[I,B]=useState({top:0,left:0,width:0,openAbove:false}),H=i||l,A=!!p,N=typeof p=="string"?p:void 0,L=useCallback(()=>{D(true),m(true),v("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>v("open"));});},[]),O=useCallback(()=>{D(false),v("closing"),E("");let $=setTimeout(()=>{m(false),v("idle");},go);return ()=>clearTimeout($)},[]),W=o?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],q=$=>W.includes($),re=R?e.filter($=>($.label??$.value).toLowerCase().includes(R.toLowerCase())):e,K=useCallback(()=>{if(!S.current)return;let $=S.current.getBoundingClientRect(),te=w.current?.offsetHeight??u+60,oe=window.innerHeight-$.bottom-6,le=$.top-6,Se=oe<te&&le>oe;B({top:Se?$.top-6:$.bottom+6,left:$.left,width:$.width,openAbove:Se});},[u]);useEffect(()=>{if(T)return K(),window.addEventListener("scroll",K,true),window.addEventListener("resize",K),()=>{window.removeEventListener("scroll",K,true),window.removeEventListener("resize",K);}},[T,K]);let j=useCallback($=>{if(r)if(o){let te=q($)?W.filter(oe=>oe!==$):[...W,$];r(te);}else r($),O();},[o,r,W,O]),Q=useCallback($=>{$.stopPropagation(),r&&(r(o?[]:null),E(""));},[o,r]),U=()=>{H||(k?O():L(),F(-1));},me=$=>{if(!H)switch($.key){case "ArrowDown":$.preventDefault(),k?F(te=>Math.min(te+1,re.length-1)):(L(),F(0));break;case "ArrowUp":$.preventDefault(),F(te=>Math.max(te-1,0));break;case "Enter":case " ":$.preventDefault(),k&&P>=0&&re[P]&&!re[P].disabled?j(re[P].value):k||(L(),F(0));break;case "Escape":O();break;case "Tab":O();break}};useEffect(()=>{P>=0&&b.current&&b.current.children[P]?.scrollIntoView({block:"nearest"});},[P]),useEffect(()=>{if(!k)return;let $=te=>{let oe=te.target,le=S.current?.contains(oe),Se=w.current?.contains(oe);!le&&!Se&&O();};return document.addEventListener("mousedown",$),()=>document.removeEventListener("mousedown",$)},[k,O]),useEffect(()=>{k&&a&&y.current&&y.current.focus();},[k,a]);let de=$=>e.find(oe=>oe.value===$)?.label??$,X$1=n&&W.length>0&&!H,G=()=>{let $=I.openAbove,te=$?"translateY(8px)":"translateY(-8px)",oe=$?"translateY(6px)":"translateY(-6px)",le={transition:`opacity ${go}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${go}ms cubic-bezier(0.16, 1, 0.3, 1)`};return C==="opening"||C==="idle"?{...le,opacity:0,transform:`${te} scale(0.97)`}:C==="open"?{...le,opacity:1,transform:"translateY(0) scale(1)"}:{...le,opacity:0,transform:`${oe} scale(0.98)`,pointerEvents:"none"}},Pe={display:"flex",alignItems:"center",gap:"10px",backgroundColor:H?d.backgroundDisabled:d.background,border:`1px solid ${A?d.borderError:k?d.borderFocus:d.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:H?.6:1,cursor:H?"not-allowed":"pointer",userSelect:"none",outline:"none"},Me=T?createPortal(jsxs("div",{ref:w,style:{position:"fixed",...I.openAbove?{bottom:window.innerHeight-I.top,left:I.left}:{top:I.top,left:I.left},width:I.width,backgroundColor:d.dropdownBg,border:`1px solid ${d.dropdownBorder}`,borderRadius:"12px",boxShadow:g==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:I.openAbove?"bottom center":"top center",...G()},children:[a&&jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${d.divider}`},children:jsx("input",{ref:y,type:"text",value:R,onChange:$=>{E($.target.value),F(0);},onKeyDown:me,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:d.text,boxSizing:"border-box",padding:0}})}),jsxs("div",{ref:b,role:"listbox","aria-multiselectable":o,className:`sm-select-list-${x}`,style:{maxHeight:u,overflowY:"auto",padding:"6px"},children:[jsx("style",{children:`
2
2
  .sm-select-list-${x}::-webkit-scrollbar {
3
3
  width: 6px;
4
4
  }
@@ -9,11 +9,11 @@ import zo,{useState,useId,useCallback,useRef,useEffect,createContext,useMemo,use
9
9
  background: ${d.scrollbarThumb};
10
10
  border-radius: 3px;
11
11
  }
12
- `}),q.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:d.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),q.map((N,ee)=>{let oe=Y(N.value),he=ee===E;return jsxs("div",{role:"option","aria-selected":oe,"aria-disabled":N.disabled,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:oe?500:400,lineHeight:"normal",color:oe?d.optionSelectedText:N.disabled?d.placeholder:d.text,backgroundColor:he?d.optionHover:oe?d.optionSelected:"transparent",cursor:N.disabled?"not-allowed":"pointer",opacity:N.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:ee<q.length-1?"2px":0},onClick:()=>{N.disabled||j(N.value);},onMouseEnter:()=>z(ee),onMouseLeave:()=>z(-1),children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:N.label??N.value}),oe&&jsx(Check,{size:16,color:d.optionSelectedText})]},N.value)})]})]}),document.body):null;return jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...u},className:s,children:[jsxs("div",{ref:g,role:"combobox","aria-expanded":b,"aria-haspopup":"listbox",tabIndex:M?-1:0,style:G,onClick:Q,onKeyDown:V,children:[jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[Z.length===0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:d.placeholder,lineHeight:"normal"},children:c}),o?Z.map(N=>jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:d.tagBg,color:d.tagText,borderRadius:"4px",padding:"2px 8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:me(N)}),!M&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:ee=>{ee.stopPropagation(),j(N);},children:jsx(X,{size:14,color:d.tagText})})]},N)):Z.length>0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:d.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:me(Z[0])})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[pe&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:J,children:jsx(X,{size:14,color:d.placeholder})}),l?jsx(Aa,{size:16,color:d.placeholder}):jsx(CaretDown,{size:16,color:d.placeholder,style:{transition:"transform 0.2s ease",transform:b?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),A&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:d.borderError,lineHeight:"normal"},children:A}),Pe]})};Er.displayName="Select";var Ha=({label:e,htmlFor:t,children:r,style:o,className:n})=>{let a=I(),i=useId(),l=t??i;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...o},className:n,children:[jsx("label",{htmlFor:l,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Fr[a].label,userSelect:"none"},children:e}),r??jsx(Er,{options:[]})]})};Ha.displayName="SelectGroup";var Ya=({size:e=16,color:t})=>{let[r,o]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let i=l=>{a.current===void 0&&(a.current=l),o((l-a.current)/800*360%360),n.current=requestAnimationFrame(i);};return n.current=requestAnimationFrame(i),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Va={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},go=180,Ua={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},qa=zo.forwardRef(({options:e,value:t,onChange:r,onInputChange:o,placeholder:n="Hledat\u2026",label:a,error:i,disabled:l=false,loading:p=false,allowCustom:c=false,onCreate:f,renderOption:u,notFoundContent:s,footer:h,size:d="md",style:x,className:g},S)=>{let R=I(),y=Va[R],w=useId(),D=Ua[d],T=useRef(null),m=useRef(null),C=useRef(null),v=useRef(null),[k,E]=useState(false),[z,F]=useState(false),[B,M]=useState("idle"),[H,A]=useState(""),[$,L]=useState(-1),[Z,Y]=useState(false),[q,re]=useState({top:0,left:0,width:0,openAbove:false}),j=l||p,J=!!i,Q=typeof i=="string"?i:void 0;useEffect(()=>{if(!Z){let W=e.find(te=>te.value===t);A(W?W.label??W.value:t||"");}},[t,e,Z]);let V=H?e.filter(W=>(W.label??W.value).toLowerCase().includes(H.toLowerCase())):e,me=useCallback(()=>{E(true),F(true),M("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>M("open"));});},[]),pe=useCallback(()=>{E(false),M("closing");let W=setTimeout(()=>{F(false),M("idle");},go);return ()=>clearTimeout(W)},[]),K=useCallback(()=>{if(!T.current)return;let W=T.current.getBoundingClientRect(),te=C.current?.offsetHeight??240,fe=window.innerHeight-W.bottom-6,ve=W.top-6,Xe=fe<te&&ve>fe;re({top:Xe?W.top-6:W.bottom+6,left:W.left,width:W.width,openAbove:Xe});},[]);useEffect(()=>{if(z)return K(),window.addEventListener("scroll",K,true),window.addEventListener("resize",K),()=>{window.removeEventListener("scroll",K,true),window.removeEventListener("resize",K);}},[z,K]),useEffect(()=>{if(!k)return;let W=te=>{let fe=te.target;if(!T.current?.contains(fe)&&!C.current?.contains(fe)){pe();let ve=e.find(Xe=>Xe.value===t);c||A(ve?ve.label??ve.value:"");}};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[k,pe,t,e,c]),useEffect(()=>{$>=0&&v.current&&v.current.children[$]?.scrollIntoView({block:"nearest"});},[$]);let G=W=>{let te=W.target.value;A(te),o?.(te),L(0),k||me();},Pe=useCallback(W=>{r(W);let te=e.find(fe=>fe.value===W);A(te?te.label??te.value:W),pe();},[r,e,pe]),N=W=>{if(!j)switch(W.key){case "ArrowDown":W.preventDefault(),k?L(te=>Math.min(te+1,V.length-1)):(me(),L(0));break;case "ArrowUp":W.preventDefault(),L(te=>Math.max(te-1,0));break;case "Enter":W.preventDefault(),k&&$>=0&&V[$]?Pe(V[$].value):c&&H&&(r(H),f?.(H),pe());break;case "Escape":pe();break;case "Tab":k&&pe();break}},ee=()=>{Y(true),!k&&!j&&me();},oe=()=>{Y(false),c&&H&&r(H);},he=()=>{let W=q.openAbove,te=W?"translateY(8px)":"translateY(-8px)",fe=W?"translateY(6px)":"translateY(-6px)",ve={transition:`opacity ${go}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${go}ms cubic-bezier(0.16, 1, 0.3, 1)`};return B==="opening"||B==="idle"?{...ve,opacity:0,transform:`${te} scale(0.97)`}:B==="open"?{...ve,opacity:1,transform:"translateY(0) scale(1)"}:{...ve,opacity:0,transform:`${fe} scale(0.98)`,pointerEvents:"none"}},ye={display:"flex",alignItems:"center",gap:D.gap,backgroundColor:j?y.backgroundDisabled:y.background,border:`1px solid ${J?y.borderError:Z?y.borderFocus:y.border}`,borderRadius:"8px",padding:D.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:j?.6:1,cursor:j?"not-allowed":"text"},Me={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:D.fontSize,lineHeight:"normal",color:y.text,cursor:j?"not-allowed":"text"},so={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:y.label,userSelect:"none"},gt=z?createPortal(jsxs("div",{ref:C,style:{position:"fixed",...q.openAbove?{bottom:window.innerHeight-q.top,left:q.left}:{top:q.top,left:q.left},width:q.width,backgroundColor:y.dropdownBg,border:`1px solid ${y.dropdownBorder}`,borderRadius:"12px",boxShadow:R==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:q.openAbove?"bottom center":"top center",...he()},children:[jsxs("div",{ref:v,role:"listbox",style:{maxHeight:240,overflowY:"auto",padding:"6px"},children:[V.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:y.placeholder,textAlign:"center"},children:c&&H?"Stiskn\u011Bte Enter pro potvrzen\xED":s??"\u017D\xE1dn\xE9 v\xFDsledky"}),V.map((W,te)=>{let fe=W.value===t,ve=te===$;return jsx("div",{role:"option","aria-selected":fe,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:fe?500:400,lineHeight:"normal",color:fe?y.optionSelectedText:y.text,backgroundColor:ve?y.optionHover:fe?y.optionSelected:"transparent",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:te<V.length-1?"2px":0},onClick:()=>Pe(W.value),onMouseEnter:()=>L(te),onMouseLeave:()=>L(-1),children:u?u(W,ve):jsxs(Fragment,{children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:W.label??W.value}),fe&&jsx(Check,{size:16,color:y.optionSelectedText})]})},W.value)})]}),h&&jsx("div",{style:{borderTop:`1px solid ${y.divider}`,padding:"8px 6px"},children:h})]}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...x},className:g,children:[a&&jsx("label",{htmlFor:w,style:so,children:a}),jsxs("div",{ref:T,style:ye,onClick:()=>m.current?.focus(),children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:y.placeholder},children:p?jsx(Ya,{size:D.iconSize,color:y.placeholder}):jsx(MagnifyingGlass,{size:D.iconSize,color:y.placeholder})}),jsx("input",{ref:W=>{m.current=W,typeof S=="function"?S(W):S&&(S.current=W);},id:w,type:"text",value:H,onChange:G,onFocus:ee,onBlur:oe,onKeyDown:N,placeholder:n,disabled:l,readOnly:p,style:Me}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:jsx(CaretDown,{size:D.iconSize,color:y.placeholder,style:{transition:"transform 0.2s ease",transform:k?"rotate(180deg)":"rotate(0deg)"}})})]}),Q&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:y.borderError,lineHeight:"normal"},children:Q}),gt]})});qa.displayName="Combobox";var ja=({size:e=16,color:t})=>{let[r,o]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let i=l=>{a.current===void 0&&(a.current=l),o((l-a.current)/800*360%360),n.current=requestAnimationFrame(i);};return n.current=requestAnimationFrame(i),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Ar={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",dayHover:"rgba(255,255,255,0.06)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.15)",dayToday:"rgba(255,255,255,0.2)",dayOutside:"rgba(255,255,255,0.25)",dayDisabled:"rgba(255,255,255,0.12)",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",dayHover:"rgba(0,0,0,0.04)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.10)",dayToday:"rgba(0,0,0,0.1)",dayOutside:"rgba(0,0,0,0.3)",dayDisabled:"rgba(0,0,0,0.15)",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},bo=180,Ja={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},Qa=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],Ir=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function es(e,t,r){let n=new Date(e,t,1).getDay();n=(n===0?7:n)-r,n<0&&(n+=7);let a=new Date(e,t,1-n),i=[];for(let l=0;l<42;l++){let p=new Date(a);p.setDate(a.getDate()+l),i.push(p);}return i}function xo(e){let t=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0");return `${t}.${r}.${e.getFullYear()}`}function Br(e){let t=String(e.getHours()).padStart(2,"0"),r=String(e.getMinutes()).padStart(2,"0");return `${xo(e)} ${t}:${r}`}function Ne(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Pr(e,t,r){let o=e.getTime(),n=Math.min(t.getTime(),r.getTime()),a=Math.max(t.getTime(),r.getTime());return o>=n&&o<=a}function ts(e){return Ne(e,new Date)}var Hr=({mode:e="single",showTime:t=false,value:r,onChange:o,label:n,placeholder:a,error:i,helperText:l,disabled:p=false,loading:c=false,clearable:f=false,size:u="md",fullWidth:s=false,required:h,minDate:d,maxDate:x,firstDayOfWeek:g=1,style:S,className:R})=>{let y=I(),b=Ar[y],w=useId(),D=Ja[u],T=useRef(null),m=useRef(null),[C,v]=useState(false),[k,E]=useState(false),[z,F]=useState("idle"),[B,M]=useState({top:0,left:0,width:0,openAbove:false}),[H,A]=useState(null),$=new Date,[L,Z]=useState($.getFullYear()),[Y,q]=useState($.getMonth()),[re,j]=useState("days"),[J,Q]=useState(0),V=p||c,me=!!i,pe=typeof i=="string"?i:void 0,K=e==="single"&&r instanceof Date?r:null,G=e==="range"&&Array.isArray(r)?r:[null,null],Pe=e==="single"?K!==null:G[0]!==null||G[1]!==null,N=f&&Pe&&!V,ee=(()=>{if(e==="single")return K?t?Br(K):xo(K):"";let[P,X]=G;if(!P&&!X)return "";let _=t?Br:xo;return `${P?_(P):"\u2026"} \u2013 ${X?_(X):"\u2026"}`})(),oe=a??(e==="single"?t?"dd.mm.rrrr hh:mm":"dd.mm.rrrr":t?"dd.mm.rrrr hh:mm \u2013 dd.mm.rrrr hh:mm":"dd.mm.rrrr \u2013 dd.mm.rrrr"),he=useCallback(()=>{let P=e==="single"?K:G[0];P&&(Z(P.getFullYear()),q(P.getMonth())),j("days"),v(true),E(true),F("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>F("open"));});},[e,K,G]),ye=useCallback(()=>{v(false),F("closing");let P=setTimeout(()=>{E(false),F("idle");},bo);return ()=>clearTimeout(P)},[]),Me=useCallback(()=>{if(!T.current)return;let P=T.current.getBoundingClientRect(),X=m.current?.offsetHeight??380,_=window.innerHeight-P.bottom-6,U=P.top-6,ne=_<X&&U>_;M({top:ne?P.top-6:P.bottom+6,left:P.left,width:Math.max(P.width,300),openAbove:ne});},[]);useEffect(()=>{if(k)return Me(),window.addEventListener("scroll",Me,true),window.addEventListener("resize",Me),()=>{window.removeEventListener("scroll",Me,true),window.removeEventListener("resize",Me);}},[k,Me]),useEffect(()=>{if(!C)return;let P=X=>{let _=X.target,U=T.current?.contains(_),ne=m.current?.contains(_);!U&&!ne&&ye();};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[C,ye]);let so=P=>{V||(P.key==="Escape"&&C&&(P.preventDefault(),ye()),(P.key==="Enter"||P.key===" ")&&!C&&(P.preventDefault(),he()));},gt=useCallback(P=>{if(d){let X=new Date(d.getFullYear(),d.getMonth(),d.getDate());if(P<X)return true}if(x){let X=new Date(x.getFullYear(),x.getMonth(),x.getDate());if(P>X)return true}return false},[d,x]),W=useCallback(P=>{if(!gt(P)&&o)if(e==="single")t&&K&&P.setHours(K.getHours(),K.getMinutes()),o(new Date(P)),t||ye();else if(J===0)t&&G[0]&&P.setHours(G[0].getHours(),G[0].getMinutes()),o([new Date(P),null]),Q(1);else {let X=G[0];t&&G[1]&&P.setHours(G[1].getHours(),G[1].getMinutes());let[_,U]=P>=X?[X,new Date(P)]:[new Date(P),X];o([_,U]),Q(0),t||ye();}},[e,t,K,G,J,o,ye,gt]),te=useCallback((P,X,_)=>{if(!o)return;let U=parseInt(X,10);if(isNaN(U)&&(U=0),P==="hour"&&(U=Math.max(0,Math.min(23,U))),P==="minute"&&(U=Math.max(0,Math.min(59,U))),e==="single"){let ne=K?new Date(K):new Date;P==="hour"?ne.setHours(U):ne.setMinutes(U),o(ne);}else {let ne=_??0,ge=[G[0]?new Date(G[0]):null,G[1]?new Date(G[1]):null],Ye=ge[ne]??new Date;P==="hour"?Ye.setHours(U):Ye.setMinutes(U),ge[ne]=Ye,o(ge);}},[e,K,G,o]),fe=()=>{Y===0?(q(11),Z(P=>P-1)):q(P=>P-1);},ve=()=>{Y===11?(q(0),Z(P=>P+1)):q(P=>P+1);},Xe=P=>{P.stopPropagation(),o&&(o(e==="single"?null:[null,null]),Q(0));},ta=()=>{let P=B.openAbove,X=P?"translateY(8px)":"translateY(-8px)",_=P?"translateY(6px)":"translateY(-6px)",U={transition:`opacity ${bo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${bo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return z==="opening"||z==="idle"?{...U,opacity:0,transform:`${X} scale(0.97)`}:z==="open"?{...U,opacity:1,transform:"translateY(0) scale(1)"}:{...U,opacity:0,transform:`${_} scale(0.98)`,pointerEvents:"none"}},oa=es(L,Y,g),io=(P,X)=>{let _=P?P.getHours():0,U=P?P.getMinutes():0,ne={width:"42px",background:"transparent",border:`1px solid ${b.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:b.text,textAlign:"center",outline:"none",boxSizing:"border-box"};return jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[jsx("input",{type:"text",value:String(_).padStart(2,"0"),onChange:ge=>te("hour",ge.target.value,X),style:ne,maxLength:2,"aria-label":"Hodiny"}),jsx("span",{style:{color:b.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsx("input",{type:"text",value:String(U).padStart(2,"0"),onChange:ge=>te("minute",ge.target.value,X),style:ne,maxLength:2,"aria-label":"Minuty"})]})},ra=()=>jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:Ir.map((P,X)=>{let _=X===Y;return jsx("button",{type:"button",onClick:()=>{q(X),j("days");},style:{background:_?b.daySelected:"transparent",color:_?b.daySelectedText:b.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:U=>{_||(U.target.style.backgroundColor=b.dayHover);},onMouseLeave:U=>{_||(U.target.style.backgroundColor="transparent");},children:P},X)})}),na=()=>{let P=Math.floor(L/12)*12,X=Array.from({length:12},(_,U)=>P+U);return jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px"},children:[jsx("button",{type:"button",onClick:()=>Z(_=>_-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:b.text})}),jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:b.text},children:[P," \u2013 ",P+11]}),jsx("button",{type:"button",onClick:()=>Z(_=>_+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:b.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:X.map(_=>{let U=_===L;return jsx("button",{type:"button",onClick:()=>{Z(_),j("months");},style:{background:U?b.daySelected:"transparent",color:U?b.daySelectedText:b.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:ne=>{U||(ne.target.style.backgroundColor=b.dayHover);},onMouseLeave:ne=>{U||(ne.target.style.backgroundColor="transparent");},children:_},_)})})]})},aa=k?createPortal(jsx("div",{ref:m,style:{position:"fixed",...B.openAbove?{bottom:window.innerHeight-B.top,left:B.left}:{top:B.top,left:B.left},width:B.width,backgroundColor:b.dropdownBg,border:`1px solid ${b.dropdownBorder}`,borderRadius:"12px",boxShadow:y==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:B.openAbove?"bottom center":"top center",...ta()},children:re==="years"?na():re==="months"?jsxs(Fragment,{children:[jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 12px"},children:jsx("button",{type:"button",onClick:()=>j("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:b.text,padding:"4px 8px",borderRadius:"4px"},children:L})}),ra()]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px"},children:[jsx("button",{type:"button",onClick:fe,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:b.text})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("button",{type:"button",onClick:()=>j("months"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:b.text,padding:"4px 8px",borderRadius:"4px"},children:Ir[Y]}),jsx("button",{type:"button",onClick:()=>j("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:b.text,padding:"4px 8px",borderRadius:"4px"},children:L})]}),jsx("button",{type:"button",onClick:ve,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:b.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 4px",gap:"0"},children:Qa.map(P=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:400,color:b.placeholder,padding:"4px 0",userSelect:"none"},children:P},P))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 8px",gap:"2px"},children:oa.map((P,X)=>{let _=P.getMonth()!==Y,U=gt(P),ne=ts(P),ge=false,Ye=false,lo=false,Mt=false;if(e==="single"&&K)ge=Ne(P,K);else if(e==="range"){let[Ae,Ht]=G;Ae&&Ne(P,Ae)&&(Ye=true,ge=true),Ht&&Ne(P,Ht)&&(lo=true,ge=true),Ae&&Ht&&Pr(P,Ae,Ht)&&!Ye&&!lo&&(Mt=true),J===1&&Ae&&H&&!U&&(Ne(P,H)&&!Ne(P,Ae)&&(ge=true),Pr(P,Ae,H)&&!Ne(P,Ae)&&!Ne(P,H)&&(Mt=true));}let co="transparent",At=b.text;return ge?(co=b.daySelected,At=b.daySelectedText):Mt&&(co=b.dayRangeMiddle),_&&(At=ge?b.daySelectedText:b.dayOutside),U&&(At=b.dayDisabled),jsx("button",{type:"button",disabled:U,onClick:()=>W(P),onMouseEnter:()=>{U||A(P);},onMouseLeave:()=>A(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:co,color:At,border:"none",borderRadius:Ye?"6px 0 0 6px":lo?"0 6px 6px 0":Mt?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:ge?600:400,cursor:U?"not-allowed":"pointer",opacity:U?.4:1,transition:"background-color 0.1s ease",outline:ne&&!ge?`1.5px solid ${b.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:P.getDate()},X)})}),t&&jsx("div",{style:{borderTop:`1px solid ${b.divider}`,padding:"10px 12px",display:"flex",alignItems:"center",justifyContent:e==="range"?"space-between":"center",gap:"8px"},children:e==="single"?jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.placeholder},children:"\u010Cas:"}),io(K)]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.placeholder},children:"Od:"}),io(G[0],0)]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.placeholder},children:"Do:"}),io(G[1],1)]})]})})]})}),document.body):null,sa={display:"flex",alignItems:"center",gap:D.gap,backgroundColor:V?b.backgroundDisabled:b.background,border:`1px solid ${me?b.borderError:C?b.borderFocus:b.border}`,borderRadius:"8px",padding:D.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:V?.6:1,cursor:V?"not-allowed":"pointer",userSelect:"none",outline:"none"},ia={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:b.label,userSelect:"none"},br={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:s?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:s?"100%":void 0,...S},className:R,children:[n&&jsxs("label",{htmlFor:w,style:ia,children:[n,h&&jsx("span",{style:{color:b.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("div",{ref:T,role:"button",tabIndex:V?-1:0,style:sa,onClick:()=>{V||(C?ye():he());},onKeyDown:so,children:[jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:ee?jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.fontSize,color:b.text,lineHeight:"normal"},children:ee}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.fontSize,color:b.placeholder,lineHeight:"normal"},children:oe})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[N&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:Xe,children:jsx(X,{size:D.iconSize-2,color:b.placeholder})}),c?jsx(ja,{size:D.iconSize,color:b.placeholder}):jsx(CalendarBlank,{size:D.iconSize,color:b.placeholder})]})]}),pe&&jsx("span",{style:{...br,color:b.borderError},children:pe}),!pe&&l&&jsx("span",{style:{...br,color:b.helperText},children:l}),aa]})};Hr.displayName="DatePicker";var os=({label:e,htmlFor:t,children:r,style:o,className:n})=>{let a=I(),i=useId(),l=t??i;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...o},className:n,children:[jsx("label",{htmlFor:l,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Ar[a].label,userSelect:"none"},children:e}),r??jsx(Hr,{})]})};os.displayName="DatePickerGroup";var Lr={dark:{border:"rgba(255,255,255,0.3)",borderHover:"rgba(255,255,255,0.5)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",checkBg:"#FC4F00",checkMark:"#ffffff"},light:{border:"rgba(0,0,0,0.2)",borderHover:"rgba(0,0,0,0.5)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",checkBg:"#FC4F00",checkMark:"#ffffff"}},ss={sm:{box:16,fontSize:"14px",gap:"6px",radius:3,strokeWidth:2},md:{box:20,fontSize:"16px",gap:"8px",radius:4,strokeWidth:2},lg:{box:24,fontSize:"18px",gap:"10px",radius:5,strokeWidth:2.5}},Nr=({checked:e=false,onChange:t,label:r,disabled:o=false,error:n,size:a="md",indeterminate:i=false,className:l,style:p})=>{let c=I(),f=Lr[c],u=ss[a],s=useId(),h=useRef(null),d=!!n,x=typeof n=="string"?n:void 0;useEffect(()=>{h.current&&(h.current.indeterminate=i);},[i]);let g=()=>{o||t?.(!e);},S=d?f.borderError:e||i?f.checkBg:f.border,R=e||i?f.checkBg:o?f.backgroundDisabled:f.background,y={width:u.box,height:u.box,borderRadius:u.radius,border:`1.5px solid ${S}`,backgroundColor:R,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:o?"not-allowed":"pointer",transition:"background-color 0.15s ease, border-color 0.15s ease",opacity:o?.5:1},b={fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,color:f.text,cursor:o?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},w={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",...p},className:l,children:[jsxs("label",{htmlFor:s,style:{display:"inline-flex",alignItems:"center",gap:u.gap,cursor:o?"not-allowed":"pointer"},onClick:D=>{D.preventDefault(),g();},children:[jsx("input",{ref:h,id:s,type:"checkbox",checked:e,disabled:o,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":d||void 0}),jsxs("span",{style:y,children:[e&&!i&&jsx("svg",{width:u.box-6,height:u.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2 6l3 3 5-5",stroke:f.checkMark,strokeWidth:u.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),i&&jsx("svg",{width:u.box-6,height:u.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2.5 6h7",stroke:f.checkMark,strokeWidth:u.strokeWidth,strokeLinecap:"round"})})]}),r&&jsx("span",{style:b,children:r})]}),x&&jsx("span",{style:{...w,color:f.borderError,marginLeft:`${u.box+parseInt(u.gap)}px`},children:x})]})};Nr.displayName="Checkbox";var $r=({label:e,children:t,error:r,className:o,style:n})=>{let a=I(),i=Lr[a],l=typeof r=="string"?r:void 0,p={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:i.label,userSelect:"none"},c={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"group","aria-label":e,style:{display:"flex",flexDirection:"column",gap:"8px",...n},className:o,children:[e&&jsx("span",{style:p,children:e}),jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),l&&jsx("span",{style:{...c,color:i.borderError},children:l})]})};$r.displayName="CheckboxGroup";var Wr={dark:{border:"rgba(255,255,255,0.3)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",dot:"#FC4F00",dotRing:"#FC4F00"},light:{border:"rgba(0,0,0,0.2)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",dot:"#FC4F00",dotRing:"#FC4F00"}},ls={sm:{box:16,dot:6,fontSize:"14px",gap:"6px"},md:{box:20,dot:8,fontSize:"16px",gap:"8px"},lg:{box:24,dot:10,fontSize:"18px",gap:"10px"}},ho=({value:e,checked:t=false,onChange:r,label:o,disabled:n=false,size:a="md",className:i,style:l})=>{let p=I(),c=Wr[p],f=ls[a],u=useId(),s=()=>{n||r?.(e);},h=t?c.dotRing:c.border,d=n?c.backgroundDisabled:c.background,x={width:f.box,height:f.box,borderRadius:"50%",border:`1.5px solid ${h}`,backgroundColor:d,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:n?.5:1},g={fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:c.text,cursor:n?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsx("div",{style:{display:"inline-flex",...l},className:i,children:jsxs("label",{htmlFor:u,style:{display:"inline-flex",alignItems:"center",gap:f.gap,cursor:n?"not-allowed":"pointer"},onClick:S=>{S.preventDefault(),s();},children:[jsx("input",{id:u,type:"radio",value:e,checked:t,disabled:n,onChange:()=>r?.(e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"}}),jsx("span",{style:x,children:t&&jsx("span",{style:{width:f.dot,height:f.dot,borderRadius:"50%",backgroundColor:c.dot,transition:"transform 0.15s ease"}})}),o&&jsx("span",{style:g,children:o})]})})};ho.displayName="Radio";var Zr=({value:e,onChange:t,label:r,options:o,direction:n="vertical",error:a,helperText:i,size:l="md",className:p,style:c})=>{let f=I(),u=Wr[f],s=!!a,h=typeof a=="string"?a:void 0,d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},x={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"radiogroup","aria-label":r,"aria-invalid":s||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...c},className:p,children:[r&&jsx("span",{style:d,children:r}),jsx("div",{style:{display:"flex",flexDirection:n==="horizontal"?"row":"column",gap:n==="horizontal"?"16px":"6px"},children:o.map(g=>jsx(ho,{value:g.value,label:g.label,checked:e===g.value,onChange:t,disabled:g.disabled,size:l},g.value))}),h&&jsx("span",{style:{...x,color:u.borderError},children:h}),!h&&i&&jsx("span",{style:{...x,color:u.helperText},children:i})]})};Zr.displayName="RadioGroup";var ds={dark:{trackOff:"rgba(255,255,255,0.2)",trackOffBorder:"rgba(255,255,255,0.35)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#ffffff"},light:{trackOff:"rgba(0,0,0,0.12)",trackOffBorder:"rgba(0,0,0,0.22)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#1a1a1a"}},ps={sm:{trackW:32,trackH:20,thumb:14,offset:2,fontSize:"14px",gap:"8px"},md:{trackW:40,trackH:24,thumb:18,offset:2,fontSize:"16px",gap:"10px"},lg:{trackW:48,trackH:28,thumb:22,offset:2,fontSize:"18px",gap:"12px"}},Yr=({checked:e=false,onChange:t,label:r,disabled:o=false,size:n="md",className:a,style:i})=>{let l=I(),p=ds[l],c=ps[n],f=useId(),u=()=>{o||t?.(!e);},s=1.5,h=2,x=c.trackW-s*2-c.thumb-h,g=e?x:0,S={width:c.trackW,height:c.trackH,borderRadius:c.trackH/2,backgroundColor:e?p.trackOn:p.trackOff,border:`${s}px solid ${e?p.trackOnBorder:p.trackOffBorder}`,position:"relative",cursor:o?"not-allowed":"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",flexShrink:0,opacity:o?.5:1,boxSizing:"border-box"},R={width:c.thumb,height:c.thumb,borderRadius:"50%",backgroundColor:p.thumb,position:"absolute",top:"50%",left:h,transform:`translateY(-50%) translateX(${g}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},y={fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,color:p.text,cursor:o?"not-allowed":"pointer",userSelect:"none",lineHeight:`${c.trackH}px`};return jsx("div",{style:{display:"inline-flex",alignItems:"center",...i},className:a,children:jsxs("label",{htmlFor:f,style:{display:"inline-flex",alignItems:"center",gap:c.gap,cursor:o?"not-allowed":"pointer"},onClick:b=>{b.preventDefault(),u();},children:[jsx("input",{id:f,type:"checkbox",role:"switch",checked:e,disabled:o,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-checked":e}),jsx("span",{style:S,children:jsx("span",{style:R})}),r&&jsx("span",{style:y,children:r})]})})};Yr.displayName="Switch";var hs={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",counter:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",counter:"#888888"}},ys={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},Ur=zo.forwardRef(({label:e,error:t,helperText:r,disabled:o,loading:n=false,size:a="md",fullWidth:i=false,required:l,rows:p=4,maxLength:c,resize:f="vertical",autoHeight:u=false,minRows:s,maxRows:h,className:d,style:x,value:g,onChange:S,onFocus:R,onBlur:y,...b},w)=>{let D=I(),T=hs[D],m=ys[a],C=useId(),v=b.id??C,[k,E]=useState(false),z=useRef(null),F=useCallback(()=>{let J=z.current;if(!J||!u)return;J.style.height="auto";let Q=getComputedStyle(J),V=parseFloat(Q.lineHeight)||parseFloat(Q.fontSize)*1.5,me=parseFloat(Q.paddingTop)||0,pe=parseFloat(Q.paddingBottom)||0,K=me+pe,Pe=V*(s??1)+K,N=h?V*h+K:1/0,ee=Math.min(Math.max(J.scrollHeight,Pe),N);J.style.height=`${ee}px`,J.style.overflowY=J.scrollHeight>N?"auto":"hidden";},[u,s,h]);useEffect(()=>{F();},[g,F]);let B=useCallback(J=>{z.current=J,typeof w=="function"?w(J):w&&(w.current=J);},[w]),M=u?"none":f,H=u?s??1:p,A=o||n,$=!!t,L=typeof t=="string"?t:void 0,Z=typeof g=="string"?g.length:0,Y={backgroundColor:A?T.backgroundDisabled:T.background,border:`1px solid ${$?T.borderError:k?T.borderFocus:T.border}`,borderRadius:"8px",padding:m.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:A?.6:1,cursor:A?"not-allowed":"text"},q={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:m.fontSize,lineHeight:"1.5",color:T.text,cursor:A?"not-allowed":"text",resize:M,boxSizing:"border-box",overflow:u?"hidden":void 0},re={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:T.label,userSelect:"none"},j={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:i?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:i?"100%":void 0,...x},className:d,children:[e&&jsxs("label",{htmlFor:v,style:re,children:[e,l&&jsx("span",{style:{color:T.borderError,marginLeft:"3px"},children:"*"})]}),jsx("div",{style:Y,children:jsx("textarea",{ref:B,id:v,rows:H,maxLength:c,disabled:o,required:l,readOnly:n||b.readOnly,value:g,onChange:S,style:q,onFocus:J=>{E(true),R?.(J);},onBlur:J=>{E(false),y?.(J);},...b})}),jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxs("div",{style:{flex:1},children:[L&&jsx("span",{style:{...j,color:T.borderError},children:L}),!L&&r&&jsx("span",{style:{...j,color:T.helperText},children:r})]}),c!==void 0&&jsxs("span",{style:{...j,color:Z>c?T.borderError:T.counter,flexShrink:0},children:[Z,"/",c]})]})]})});Ur.displayName="Textarea";var Ss={dark:{trackBg:"rgba(255,255,255,0.15)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#ffffff",label:"#ffffff",valueBg:"rgba(3,3,3,0.75)"},light:{trackBg:"rgba(0,0,0,0.1)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#1a1a1a",label:"#1a1a1a",valueBg:"rgba(255,255,255,0.85)"}},ks={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function _r(e,t,r){return Math.min(Math.max(e,t),r)}function Cs(e,t,r){return Math.round((e-t)/r)*r+t}var Kr=({value:e,onChange:t,min:r=0,max:o=100,step:n=1,label:a,disabled:i=false,showValue:l=false,range:p=false,size:c="md",className:f,style:u})=>{let s=I(),h=Ss[s],d=ks[c],x=useId(),g=useRef(null),S=useRef(null),R=p?e:[r,e],y=k=>(k-r)/(o-r)*100,b=y(R[0]),w=y(R[1]),D=useCallback(k=>{let E=g.current;if(!E)return r;let z=E.getBoundingClientRect(),F=_r((k-z.left)/z.width,0,1),B=r+F*(o-r);return _r(Cs(B,r,n),r,o)},[r,o,n]),T=useCallback(k=>{if(i)return;k.preventDefault();let E=D(k.clientX);if(p){let B=e,M=Math.abs(E-B[0]),H=Math.abs(E-B[1]),A=M<=H?"start":"end";S.current=A;let $=A==="start"?[Math.min(E,B[1]),B[1]]:[B[0],Math.max(E,B[0])];t?.($);}else S.current="end",t?.(E);let z=B=>{let M=D(B.clientX);if(p){let H=e;S.current==="start"?t?.([Math.min(M,H[1]),H[1]]):t?.([H[0],Math.max(M,H[0])]);}else t?.(M);},F=()=>{S.current=null,document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",F);};document.addEventListener("mousemove",z),document.addEventListener("mouseup",F);},[i,D,t,p,e]),m={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:h.label,userSelect:"none"},C=p?`${R[0]} \u2013 ${R[1]}`:`${e}`,v={width:d.thumb,height:d.thumb,borderRadius:"50%",backgroundColor:h.thumb,border:`2px solid ${h.thumbBorder}`,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",cursor:i?"not-allowed":"grab",boxShadow:"0 1px 3px rgba(0,0,0,0.2)",boxSizing:"border-box",zIndex:2};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",opacity:i?.5:1,...u},className:f,children:[(a||l)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsx("label",{htmlFor:x,style:m,children:a}),l&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,color:h.text,userSelect:"none"},children:C})]}),jsxs("div",{ref:g,role:"slider",id:x,"aria-valuemin":r,"aria-valuemax":o,"aria-valuenow":p?void 0:e,"aria-disabled":i||void 0,onMouseDown:T,style:{position:"relative",width:"100%",height:d.thumb,cursor:i?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:d.trackH,transform:"translateY(-50%)",borderRadius:d.trackH/2,backgroundColor:h.trackBg}}),jsx("div",{style:{position:"absolute",top:"50%",left:`${p?b:0}%`,width:`${w-(p?b:0)}%`,height:d.trackH,transform:"translateY(-50%)",borderRadius:d.trackH/2,backgroundColor:h.trackFill}}),p&&jsx("span",{style:{...v,left:`${b}%`}}),jsx("span",{style:{...v,left:`${w}%`}})]})]})};Kr.displayName="Slider";var Es={dark:{border:"rgba(255,255,255,0.3)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDrag:"rgba(252,79,0,0.08)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",textSecondary:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",fileText:"#ffffff",fileBg:"rgba(255,255,255,0.05)",removeColor:"#ACACAC",removeHover:"#EF3838"},light:{border:"rgba(0,0,0,0.2)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDrag:"rgba(252,79,0,0.05)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",textSecondary:"#888888",label:"#1a1a1a",helperText:"#888888",fileText:"#1a1a1a",fileBg:"rgba(0,0,0,0.03)",removeColor:"#888888",removeHover:"#EF3838"}};function ko(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var Ds=0,Jr=({variant:e="dropzone",onFiles:t,accept:r,multiple:o=false,maxSize:n,disabled:a=false,label:i,helperText:l,error:p,className:c,style:f})=>{let u=I(),s=Es[u],h=useId(),d=useRef(null),[x,g]=useState(false),[S,R]=useState([]),[y,b]=useState(null),w=!!p||!!y,D=typeof p=="string"?p:y??void 0,T=useCallback(z=>{let F=Array.from(z);if(b(null),n){let H=F.find(A=>A.size>n);if(H){b(`Soubor \u201E${H.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${ko(n)}.`);return}}let B=F.map(H=>({file:H,id:`file-${++Ds}`})),M=o?[...S,...B]:B;R(M),t?.(M.map(H=>H.file));},[S,n,o,t]),m=useCallback(z=>{z.preventDefault(),g(false),!a&&z.dataTransfer.files.length>0&&T(z.dataTransfer.files);},[a,T]),C=useCallback(z=>{let F=S.filter(B=>B.id!==z);R(F),t?.(F.map(B=>B.file));},[S,t]),v={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},k={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${w?s.borderError:x?s.borderDrag:s.border}`,borderRadius:"8px",backgroundColor:x?s.backgroundDrag:a?s.backgroundDisabled:s.background,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.5:1},E={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...f},className:c,children:[i&&jsx("span",{style:v,children:i}),jsx("input",{ref:d,id:h,type:"file",accept:r,multiple:o,disabled:a,onChange:z=>{z.target.files&&z.target.files.length>0&&T(z.target.files),z.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxs("div",{style:k,onClick:()=>!a&&d.current?.click(),onDragOver:z=>{z.preventDefault(),a||g(true);},onDragLeave:()=>g(false),onDrop:m,children:[jsx(UploadSimple,{size:32,color:s.textSecondary}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):jsxs("div",{onClick:()=>!a&&d.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${w?s.borderError:s.border}`,backgroundColor:a?s.backgroundDisabled:s.background,opacity:a?.5:1,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",boxSizing:"border-box"},onMouseEnter:z=>{a||(z.currentTarget.style.borderColor=w?s.borderError:u==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:z=>{z.currentTarget.style.borderColor=w?s.borderError:s.border;},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:s.textSecondary},children:S.length>0?jsx(FileText,{size:18,color:s.textSecondary}):jsx(UploadSimple,{size:18,color:s.textSecondary})}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:S.length>0?s.text:s.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:S.length===0?"Vyberte soubor...":S.length===1?S[0].file.name:`${S.length} soubor\u016F`}),S.length===1&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:s.textSecondary,flexShrink:0},children:ko(S[0].file.size)}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:s.textSecondary},children:jsx(Folder,{size:16,color:s.textSecondary})})]}),S.length>0&&jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:S.map(z=>jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:s.fileBg},children:[jsx(FileText,{size:24,color:s.textSecondary}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:s.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:z.file.name}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:s.textSecondary,flexShrink:0},children:ko(z.file.size)}),jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${z.file.name}`,onClick:F=>{F.stopPropagation(),C(z.id);},onKeyDown:F=>{(F.key==="Enter"||F.key===" ")&&C(z.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsx(X,{size:14,color:s.removeColor})})]},z.id))}),D&&jsx("span",{style:{...E,color:s.borderError},children:D}),!D&&l&&jsx("span",{style:{...E,color:s.helperText},children:l})]})};Jr.displayName="FileUpload";var Bs={dark:{bg:"rgba(255,255,255,0.06)",border:"rgba(255,255,255,0.08)",text:"rgba(255,255,255,0.55)",textHover:"rgba(255,255,255,0.8)",textActive:"#ffffff",textDisabled:"rgba(255,255,255,0.25)",indicator:"#FC4F00",indicatorBorder:"rgba(255,255,255,0.05)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.3)"},light:{bg:"rgba(0,0,0,0.04)",border:"rgba(0,0,0,0.06)",text:"rgba(0,0,0,0.45)",textHover:"rgba(0,0,0,0.7)",textActive:"#ffffff",textDisabled:"rgba(0,0,0,0.2)",indicator:"#FC4F00",indicatorBorder:"rgba(0,0,0,0.03)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.2)"}},Ps={sm:{padding:"4px",itemPadding:"4px 10px",fontSize:"12px",borderRadius:"6px",itemRadius:"4px"},md:{padding:"4px",itemPadding:"6px 14px",fontSize:"13px",borderRadius:"8px",itemRadius:"6px"},lg:{padding:"5px",itemPadding:"8px 18px",fontSize:"14px",borderRadius:"10px",itemRadius:"7px"}},Ms=({data:e,value:t,onChange:r,size:o="md",fullWidth:n=false,orientation:a="horizontal",disabled:i=false,className:l,style:p})=>{let c=I(),f=Bs[c],u=Ps[o],s=a==="vertical",h=e.map(b=>typeof b=="string"?{value:b,label:b}:b),d=h.findIndex(b=>b.value===t),x=useRef(null),g=useRef([]),[S,R]=useState({offset:0,size:0}),y=useCallback(()=>{let b=x.current,w=g.current[d];if(!b||!w||d<0)return;let D=b.getBoundingClientRect(),T=w.getBoundingClientRect();R(s?{offset:T.top-D.top,size:T.height}:{offset:T.left-D.left,size:T.width});},[d,s]);return useEffect(()=>{y();},[y,t,e,o]),useEffect(()=>(window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)),[y]),jsxs("div",{ref:x,role:"radiogroup",className:l,style:{position:"relative",display:"inline-flex",width:n?"100%":void 0,flexDirection:s?"column":"row",backgroundColor:f.bg,border:`1px solid ${f.border}`,borderRadius:u.borderRadius,padding:u.padding,boxSizing:"border-box",opacity:i?.5:1,cursor:i?"not-allowed":void 0,...p},children:[d>=0&&S.size>0&&jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:u.itemRadius,backgroundColor:f.indicator,border:`1px solid ${f.indicatorBorder}`,boxShadow:f.indicatorShadow,transition:"all 180ms cubic-bezier(0.16, 1, 0.3, 1)",pointerEvents:"none",zIndex:0,...s?{left:u.padding,right:u.padding,top:S.offset,height:S.size}:{top:u.padding,bottom:u.padding,left:S.offset,width:S.size}}}),h.map((b,w)=>{let D=b.value===t,T=i||b.disabled;return jsx("button",{ref:m=>{g.current[w]=m;},type:"button",role:"radio","aria-checked":D,disabled:T,onClick:()=>{T||r(b.value);},style:{position:"relative",zIndex:1,flex:n?1:void 0,padding:u.itemPadding,border:"0 none",borderStyle:"none",outline:"none",borderRadius:u.itemRadius,backgroundColor:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,fontWeight:D?500:400,color:T?f.textDisabled:D?f.textActive:f.text,cursor:T?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:m=>{!T&&!D&&(m.currentTarget.style.color=f.textHover);},onMouseLeave:m=>{!T&&!D&&(m.currentTarget.style.color=f.text);},children:b.label??b.value},b.value)})]})};Ms.displayName="SegmentedControl";var $s={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",popoverBg:"rgba(24,24,24,0.95)",popoverBorder:"rgba(255,255,255,0.12)",swatchBorder:"rgba(255,255,255,0.2)",swatchHover:"rgba(255,255,255,0.12)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",popoverBg:"rgba(255,255,255,0.95)",popoverBorder:"rgba(0,0,0,0.1)",swatchBorder:"rgba(0,0,0,0.15)",swatchHover:"rgba(0,0,0,0.06)"}},wo=180,Ws=["#FC4F00","#FF6D2A","#EF3838","#E8612D","#00A205","#2196F3","#9C27B0","#FF9800","#F44336","#4CAF50","#03A9F4","#E91E63","#FFC107","#8BC34A","#00BCD4","#673AB7","#795548","#607D8B","#000000","#ffffff"],To=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),Zs=e=>{let t=e.replace(/[^0-9A-Fa-f#]/g,"");return t.startsWith("#")?t.slice(0,7):`#${t.slice(0,6)}`},Os=e=>{let t=e.replace("#",""),r=parseInt(t.length===3?t[0]+t[0]:t.slice(0,2),16),o=parseInt(t.length===3?t[1]+t[1]:t.slice(2,4),16),n=parseInt(t.length===3?t[2]+t[2]:t.slice(4,6),16);return (r*299+o*587+n*114)/1e3>150},Ys=({value:e,onChange:t,presets:r=Ws,label:o,disabled:n=false,style:a,className:i})=>{let l=I(),p=$s[l],f=useId(),u=useRef(null),s=useRef(null),[h,d]=useState(false),[x,g]=useState(false),[S,R]=useState("idle"),[y,b]=useState(e),[w,D]=useState(false),[T,m]=useState({top:0,left:0,openAbove:false});useEffect(()=>{w||b(e);},[e,w]);let C=useCallback(()=>{n||(d(true),g(true),R("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>R("open"));}));},[n]),v=useCallback(()=>{d(false),R("closing");let L=setTimeout(()=>{g(false),R("idle");},wo);return ()=>clearTimeout(L)},[]),k=useCallback(()=>{if(!u.current)return;let L=u.current.getBoundingClientRect(),Z=220,Y=window.innerHeight-L.bottom-8,q=Y<Z&&L.top>Y;m({top:q?L.top-8:L.bottom+8,left:L.left,openAbove:q});},[]);useEffect(()=>{if(x)return k(),window.addEventListener("scroll",k,true),window.addEventListener("resize",k),()=>{window.removeEventListener("scroll",k,true),window.removeEventListener("resize",k);}},[x,k]),useEffect(()=>{if(!h)return;let L=Z=>{let Y=Z.target;!u.current?.contains(Y)&&!s.current?.contains(Y)&&v();};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[h,v]);let E=L=>{let Z=Zs(L.target.value);b(Z),To(Z)&&t(Z);},z=()=>{D(false),To(y)?t(y):b(e);},F=L=>{t(L),b(L),v();},B=()=>{let L=T.openAbove,Z=L?"translateY(8px)":"translateY(-8px)",Y=L?"translateY(6px)":"translateY(-6px)",q={transition:`opacity ${wo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${wo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return S==="opening"||S==="idle"?{...q,opacity:0,transform:`${Z} scale(0.97)`}:S==="open"?{...q,opacity:1,transform:"translateY(0) scale(1)"}:{...q,opacity:0,transform:`${Y} scale(0.98)`,pointerEvents:"none"}},M={display:"flex",alignItems:"center",gap:"10px",backgroundColor:n?p.backgroundDisabled:p.background,border:`1px solid ${w?p.borderFocus:p.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:n?.6:1,cursor:n?"not-allowed":"pointer"},H={width:"24px",height:"24px",borderRadius:"6px",backgroundColor:To(e)?e:"#cccccc",border:`1px solid ${p.swatchBorder}`,flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"transform 0.12s ease"},A={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},$=x?createPortal(jsx("div",{ref:s,style:{position:"fixed",...T.openAbove?{bottom:window.innerHeight-T.top,left:T.left}:{top:T.top,left:T.left},backgroundColor:p.popoverBg,border:`1px solid ${p.popoverBorder}`,borderRadius:"12px",boxShadow:l==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,padding:"12px",boxSizing:"border-box",transformOrigin:T.openAbove?"bottom left":"top left",...B()},children:jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:r.map((L,Z)=>jsx("button",{type:"button","aria-label":`Vybrat barvu ${L}`,onClick:()=>F(L),style:{width:"32px",height:"32px",borderRadius:"6px",backgroundColor:L,border:L===e?"2px solid #FC4F00":`1px solid ${p.swatchBorder}`,cursor:"pointer",padding:0,transition:"transform 0.12s ease, border-color 0.12s ease",outline:"none"},onMouseEnter:Y=>{Y.currentTarget.style.transform="scale(1.1)";},onMouseLeave:Y=>{Y.currentTarget.style.transform="scale(1)";}},`${L}-${Z}`))})}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...a},className:i,children:[o&&jsx("label",{htmlFor:f,style:A,children:o}),jsxs("div",{ref:u,style:M,children:[jsx("div",{style:H,onClick:()=>{n||(h?v():C());}}),jsx("input",{id:f,type:"text",value:y,onChange:E,onFocus:()=>D(true),onBlur:z,disabled:n,maxLength:7,style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"normal",color:p.text,cursor:n?"not-allowed":"text"}}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:p.placeholder,cursor:n?"not-allowed":"pointer"},onClick:()=>{n||(h?v():C());},children:jsx(Eyedropper,{size:16,color:(Os(e)&&l==="light",p.placeholder)})})]}),$]})};Ys.displayName="ColorPicker";var Gs={dark:{text:"#ffffff",label:"#ffffff",starFilled:"#FC4F00",starEmpty:"rgba(255,255,255,0.2)",starHover:"#FF6D2A"},light:{text:"#1a1a1a",label:"#1a1a1a",starFilled:"#FC4F00",starEmpty:"rgba(0,0,0,0.15)",starHover:"#FF6D2A"}},_s={sm:{starSize:18,gap:"2px"},md:{starSize:24,gap:"4px"},lg:{starSize:32,gap:"6px"}},Ks=({value:e,onChange:t,max:r=5,size:o="md",readOnly:n=false,label:a,style:i,className:l})=>{let p=I(),c=Gs[p],f=useId(),u=_s[o],[s,h]=useState(null),d=!n&&!!t,x=useCallback(b=>{d&&t(b+1);},[d,t]),g=useCallback(b=>{d&&h(b);},[d]),S=useCallback(()=>{h(null);},[]),R={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none"},y=Array.from({length:r},(b,w)=>{let D=s!==null?s+1:e,T=w<D,m=s!==null&&w<=s;return jsx("span",{role:d?"button":void 0,tabIndex:d?0:void 0,"aria-label":d?`Hodnocen\xED ${w+1} z ${r}`:void 0,onClick:()=>x(w),onMouseEnter:()=>g(w),onMouseLeave:S,onKeyDown:C=>{d&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),x(w));},style:{display:"inline-flex",cursor:d?"pointer":"default",transition:"transform 0.12s ease, color 0.12s ease",transform:m?"scale(1.15)":"scale(1)",outline:"none"},children:jsx(Star,{size:u.starSize,weight:T?"fill":"regular",color:T?m?c.starHover:c.starFilled:c.starEmpty})},w)});return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...i},className:l,role:"group","aria-label":a??"Hodnocen\xED",children:[a&&jsx("label",{htmlFor:f,style:R,children:a}),jsx("div",{style:{display:"flex",alignItems:"center",gap:u.gap},onMouseLeave:S,children:y})]})};Ks.displayName="Rating";var oi={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",backgroundFilled:"rgba(3,3,3,0.85)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",borderFilled:"rgba(255,255,255,0.5)",text:"#ffffff",label:"#ffffff",caret:"#FC4F00"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",backgroundFilled:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",borderFilled:"rgba(0,0,0,0.35)",text:"#1a1a1a",label:"#1a1a1a",caret:"#FC4F00"}},ri=({length:e=6,value:t,onChange:r,error:o,disabled:n=false,autoFocus:a=false,label:i,separatorAfter:l,separator:p="-",style:c,className:f})=>{let u=I(),s=oi[u],h=useId(),d=useRef([]),[x,g]=useState(null),S=!!o,R=typeof o=="string"?o:void 0,y=t.padEnd(e,"").slice(0,e).split("");useEffect(()=>{a&&d.current[0]&&d.current[0].focus();},[a]);let b=useCallback(F=>{F>=0&&F<e&&d.current[F]?.focus();},[e]),w=useCallback(F=>{let B=F.join("").replace(/[^0-9]/g,"");r(B);},[r]),D=useCallback((F,B)=>{if(!/^[0-9]$/.test(B))return;let M=[...y];M[F]=B,w(M),F<e-1&&b(F+1);},[y,e,w,b]),T=useCallback((F,B)=>{switch(B.key){case "Backspace":if(B.preventDefault(),y[F]){let M=[...y];M[F]="",w(M);}else if(F>0){let M=[...y];M[F-1]="",w(M),b(F-1);}break;case "Delete":B.preventDefault();{let M=[...y];M[F]="",w(M);}break;case "ArrowLeft":B.preventDefault(),F>0&&b(F-1);break;case "ArrowRight":B.preventDefault(),F<e-1&&b(F+1);break}},[y,e,w,b]),m=useCallback((F,B)=>{let H=B.target.value.slice(-1);H&&/^[0-9]$/.test(H)&&D(F,H);},[D]),C=useCallback(F=>{F.preventDefault();let B=F.clipboardData.getData("text").replace(/[^0-9]/g,"").slice(0,e);if(!B)return;let M=[...y];for(let A=0;A<B.length;A++)M[A]=B[A];w(M);let H=Math.min(B.length,e-1);b(H);},[y,e,w,b]),v=useCallback(F=>{g(F),d.current[F]?.select();},[]),k=useCallback(()=>{g(null);},[]),E={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},z=F=>{let B=x===F,M=!!y[F];return {width:"44px",height:"52px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"20px",lineHeight:"normal",color:s.text,textAlign:"center",backgroundColor:n?s.backgroundDisabled:M?s.backgroundFilled:s.background,border:`1px solid ${S?s.borderError:B?s.borderFocus:M?s.borderFilled:s.border}`,borderRadius:"8px",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:n?.6:1,cursor:n?"not-allowed":"text",caretColor:s.caret}};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},className:f,children:[i&&jsx("label",{htmlFor:`${h}-0`,style:E,children:i}),jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},onPaste:C,children:Array.from({length:e},(F,B)=>jsxs(zo.Fragment,{children:[l&&B>0&&B%l===0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"20px",fontWeight:500,color:s.text,userSelect:"none",lineHeight:"normal",opacity:n?.6:.5,padding:"0 2px"},children:p}),jsx("input",{ref:M=>{d.current[B]=M;},id:`${h}-${B}`,type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:2,value:y[B]||"",onChange:M=>m(B,M),onKeyDown:M=>T(B,M),onFocus:()=>v(B),onBlur:k,disabled:n,"aria-label":`\u010C\xEDslice ${B+1} z ${e}`,style:z(B)})]},B))}),R&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:s.borderError,lineHeight:"normal"},children:R})]})};ri.displayName="OTPInput";var ni={dark:{base:"rgba(255,255,255,0.06)",shimmer:"rgba(255,255,255,0.13)"},light:{base:"rgba(0,0,0,0.06)",shimmer:"rgba(0,0,0,0.11)"}},sn="smSkeletonShimmer",ai=`@keyframes ${sn}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,rt=({variant:e="text",width:t,height:r,lines:o=1,animate:n=true,className:a,style:i})=>{let l=I(),p=ni[l],c=t??(e==="circle"?40:"100%"),f=r??(e==="circle"?40:e==="text"?"1em":100),u={backgroundColor:p.base,backgroundImage:n?`linear-gradient(90deg, ${p.base} 25%, ${p.shimmer} 50%, ${p.base} 75%)`:void 0,backgroundSize:n?"200% 100%":void 0,animation:n?`${sn} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof c=="number"?`${c}px`:c,height:typeof f=="number"?`${f}px`:f},s=n?jsx("style",{dangerouslySetInnerHTML:{__html:ai}}):null;return e==="text"&&o>1?jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",gap:"8px",...i},children:[s,Array.from({length:o}).map((h,d)=>jsx("div",{style:{...u,width:d===o-1?"75%":u.width}},d))]}):jsxs(Fragment,{children:[s,jsx("div",{className:a,style:{...u,...i}})]})};rt.displayName="Skeleton";var li={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",rowHover:"rgba(255,255,255,0.04)",stripedBg:"rgba(255,255,255,0.06)",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",rowHover:"rgba(0,0,0,0.03)",stripedBg:"rgba(0,0,0,0.04)",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)"}},ci=({columns:e,data:t,loading:r=false,emptyText:o="\u017D\xE1dn\xE1 data",onSort:n,sortKey:a,sortDirection:i,striped:l=false,hoverable:p=true,className:c,style:f})=>{let u=I(),s=li[u],h=R=>{if(!R.sortable||!n)return;let y=a===R.key&&i==="asc"?"desc":"asc";n(R.key,y);},d={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.text,backgroundColor:s.background,border:`1px solid ${s.border}`,borderRadius:"12px",overflow:"hidden",...f},x=R=>({padding:"12px 16px",textAlign:"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:s.textSecondary,backgroundColor:s.headerBg,borderBottom:`1px solid ${s.border}`,whiteSpace:"nowrap",cursor:R.sortable?"pointer":"default",userSelect:"none",width:R.width!=null?typeof R.width=="number"?`${R.width}px`:R.width:void 0}),g={padding:"10px 16px",borderBottom:`1px solid ${s.border}`,lineHeight:"normal"};return jsxs("table",{className:c,style:d,children:[jsx("thead",{children:jsx("tr",{children:e.map(R=>jsx("th",{style:x(R),onClick:()=>h(R),children:jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[R.header,R.sortable&&jsx(CaretUpDownIcon,{size:14,color:a===R.key?s.sortActive:s.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},R.key))})}),jsx("tbody",{children:r?Array.from({length:5}).map((R,y)=>jsx("tr",{children:e.map(b=>jsx("td",{style:g,children:jsx(rt,{variant:"text",width:"80%"})},b.key))},`skel-${y}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length,style:{...g,textAlign:"center",padding:"32px 16px",color:s.textSecondary,borderBottom:"none"},children:o})}):t.map((R,y)=>jsx("tr",{style:{backgroundColor:l&&y%2===1?s.stripedBg:"transparent",transition:"background-color 0.12s ease"},onMouseEnter:b=>{p&&(b.currentTarget.style.backgroundColor=s.rowHover);},onMouseLeave:b=>{p&&(b.currentTarget.style.backgroundColor=l&&y%2===1?s.stripedBg:"transparent");},children:e.map(b=>jsx("td",{style:{...g,borderBottom:y===t.length-1?"none":g.borderBottom},children:b.render?b.render(R[b.key],R,y):R[b.key]},b.key))},y))})]})};ci.displayName="Table";var pi={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",rowHover:"rgba(255,255,255,0.04)",selectedRowBg:"rgba(252,79,0,0.06)",checkboxBorder:"rgba(255,255,255,0.3)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",rowHover:"rgba(0,0,0,0.03)",selectedRowBg:"rgba(252,79,0,0.04)",checkboxBorder:"rgba(0,0,0,0.25)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"}},pn=({checked:e,indeterminate:t,onChange:r,t:o})=>{let n=e||t;return jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:a=>{a.stopPropagation(),r();},onKeyDown:a=>{(a.key===" "||a.key==="Enter")&&(a.preventDefault(),r());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"4px",border:`1.5px solid ${n?o.checkboxCheckedBorder:o.checkboxBorder}`,backgroundColor:n?o.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsx("path",{d:"M2 5L4.2 7.5L8 2.5",stroke:o.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsx("line",{x1:"2",y1:"5",x2:"8",y2:"5",stroke:o.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]})},fi=({columns:e,data:t,selectable:r=false,onSelectionChange:o,loading:n=false,rowKey:a="id",onRowClick:i,stickyHeader:l=false,emptyText:p="\u017D\xE1dn\xE1 data",style:c,className:f})=>{let u=I(),s=pi[u],[h,d]=useState(new Set),[x,g]=useState(null),S=useMemo(()=>t.map(E=>String(E[a])),[t,a]),R=S.length>0&&S.every(E=>h.has(E)),y=S.some(E=>h.has(E))&&!R,b=useCallback(()=>{let E=R?new Set:new Set(S);d(E),o?.(Array.from(E));},[R,S,o]),w=useCallback(E=>{d(z=>{let F=new Set(z);return F.has(E)?F.delete(E):F.add(E),o?.(Array.from(F)),F});},[o]),D={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.text,backgroundColor:s.background},T=E=>({padding:"12px 16px",textAlign:E.align||"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:s.textSecondary,backgroundColor:s.headerBg,borderBottom:`1px solid ${s.border}`,whiteSpace:"nowrap",userSelect:"none",width:E.width!=null?typeof E.width=="number"?`${E.width}px`:E.width:void 0,minWidth:E.minWidth!=null?`${E.minWidth}px`:void 0,...l?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}}),m=E=>({padding:"10px 16px",borderBottom:`1px solid ${s.border}`,lineHeight:"normal",textAlign:E.align||"left"}),C={padding:"12px 12px 12px 16px",backgroundColor:s.headerBg,borderBottom:`1px solid ${s.border}`,width:"40px",...l?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}},v={padding:"10px 12px 10px 16px",borderBottom:`1px solid ${s.border}`,width:"40px"};return jsx("div",{className:f,style:{overflow:l?"auto":"hidden",borderRadius:"12px",border:`1px solid ${s.border}`,...c},children:jsxs("table",{style:D,children:[jsx("thead",{children:jsxs("tr",{children:[r&&jsx("th",{style:C,children:jsx(pn,{checked:R,indeterminate:y,onChange:b,t:s})}),e.map(E=>jsx("th",{style:T(E),children:E.header},E.key))]})}),jsx("tbody",{children:n?Array.from({length:5}).map((E,z)=>jsxs("tr",{children:[r&&jsx("td",{style:v,children:jsx(rt,{variant:"rect",width:16,height:16})}),e.map(F=>jsx("td",{style:m(F),children:jsx(rt,{variant:"text",width:"80%"})},F.key))]},`skel-${z}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length+(r?1:0),style:{textAlign:"center",padding:"32px 16px",color:s.textSecondary,borderBottom:"none"},children:p})}):t.map((E,z)=>{let F=String(E[a]),B=h.has(F),M=x===F,H=z===t.length-1,A="transparent";return B?A=s.selectedRowBg:M&&(A=s.rowHover),jsxs("tr",{style:{backgroundColor:A,cursor:i?"pointer":"default",transition:"background-color 0.12s ease"},onMouseEnter:()=>g(F),onMouseLeave:()=>g(null),onClick:()=>i?.(E),children:[r&&jsx("td",{style:{...v,borderBottom:H?"none":v.borderBottom},children:jsx(pn,{checked:B,onChange:()=>w(F),t:s})}),e.map($=>jsx("td",{style:{...m($),borderBottom:H?"none":m($).borderBottom},children:$.render?$.render(E[$.key],E,z):E[$.key]},$.key))]},F)})})]})})};fi.displayName="DataGrid";var ui={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.12)",borderHover:"rgba(255,255,255,0.25)",text:"#ffffff",textSecondary:"#ACACAC",divider:"rgba(255,255,255,0.08)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.1)",borderHover:"rgba(0,0,0,0.2)",text:"#1a1a1a",textSecondary:"#888888",divider:"rgba(0,0,0,0.06)"}},gi={none:"0",sm:"12px",md:"20px",lg:"28px"},bi=({title:e,subtitle:t,header:r,footer:o,children:n,hoverable:a=false,bordered:i=true,padding:l="md",className:p,style:c})=>{let f=I(),u=ui[f],s=gi[l],h={backgroundColor:u.background,border:i?`1px solid ${u.border}`:"none",borderRadius:"12px",overflow:"hidden",transition:"border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease",cursor:a?"pointer":void 0,...c},d=r??(e||t?jsxs("div",{style:{padding:s,paddingBottom:n||o?"0":s},children:[e&&jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"normal",color:u.text},children:e}),t&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:u.textSecondary,marginTop:"4px"},children:t})]}):null);return jsxs("div",{className:p,style:h,onMouseEnter:x=>{a&&(x.currentTarget.style.borderColor=u.borderHover,x.currentTarget.style.transform="translateY(-2px)",x.currentTarget.style.boxShadow=f==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:x=>{a&&(x.currentTarget.style.borderColor=i?u.border:"transparent",x.currentTarget.style.transform="translateY(0)",x.currentTarget.style.boxShadow="none");},children:[d,n&&jsx("div",{style:{padding:s},children:n}),o&&jsxs(Fragment,{children:[jsx("div",{style:{borderTop:`1px solid ${u.divider}`}}),jsx("div",{style:{padding:s},children:o})]})]})};bi.displayName="Card";var gn={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",chevron:"#ACACAC",chevronDisabled:"rgba(255,255,255,0.2)",hoverBg:"rgba(255,255,255,0.03)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.06)",text:"#1a1a1a",textSecondary:"#888888",textDisabled:"rgba(0,0,0,0.25)",chevron:"#888888",chevronDisabled:"rgba(0,0,0,0.15)",hoverBg:"rgba(0,0,0,0.02)"}},vi=({title:e,children:t,defaultOpen:r=false,disabled:o=false,_controlled:n,_open:a,_onToggle:i})=>{let l=I(),p=gn[l],[c,f]=useState(r),u=n?!!a:c,s=useRef(null),[h,d]=useState(0);useEffect(()=>{s.current&&d(s.current.scrollHeight);},[t,u]);let x=useCallback(()=>{o||(n&&i?i():f(g=>!g));},[o,n,i]);return jsxs("div",{style:{borderBottom:`1px solid ${p.border}`},children:[jsxs("button",{type:"button",disabled:o,onClick:x,style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"14px 16px",border:"none",background:"transparent",cursor:o?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"15px",fontWeight:500,color:o?p.textDisabled:p.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:g=>{o||(g.currentTarget.style.backgroundColor=p.hoverBg);},onMouseLeave:g=>{g.currentTarget.style.backgroundColor="transparent";},children:[jsx("span",{children:e}),jsx(CaretDownIcon,{size:16,color:o?p.chevronDisabled:p.chevron,style:{transition:"transform 0.25s ease",transform:u?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsx("div",{ref:s,style:{overflow:"hidden",maxHeight:u?`${h}px`:"0px",transition:"max-height 0.25s ease"},children:jsx("div",{style:{padding:"10px 16px 16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:p.textSecondary},children:t})})]})};vi.displayName="AccordionItem";var Si=({children:e,multiple:t=false,className:r,style:o})=>{let n=I(),a=gn[n],i=zo.Children.toArray(e).filter(f=>zo.isValidElement(f)),[l,p]=useState(()=>{let f=new Set;return i.forEach((u,s)=>{u.props.defaultOpen&&f.add(s);}),f}),c=useCallback(f=>{p(u=>{let s=new Set(u);return s.has(f)?s.delete(f):(t||s.clear(),s.add(f)),s});},[t]);return jsx("div",{className:r,style:{backgroundColor:a.background,border:`1px solid ${a.border}`,borderRadius:"12px",overflow:"hidden",...o},children:i.map((f,u)=>zo.cloneElement(f,{key:u,_controlled:true,_open:l.has(u),_onToggle:()=>c(u)}))})};Si.displayName="Accordion";var ki={dark:{text:"#ffffff",textInactive:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",border:"rgba(255,255,255,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(255,255,255,0.04)"},light:{text:"#1a1a1a",textInactive:"#888888",textDisabled:"rgba(0,0,0,0.25)",border:"rgba(0,0,0,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(0,0,0,0.03)"}},Ci={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},Ri=()=>null;Ri.displayName="Tab";var wi=()=>null;wi.displayName="TabPanel";var Ti=({value:e,onChange:t,children:r,variant:o="underline",fullWidth:n=false,size:a="md",className:i,style:l})=>{let p=I(),c=ki[p],f=Ci[a],u=zo.Children.toArray(r),s=u.filter(x=>zo.isValidElement(x)&&x.type?.displayName==="Tab"),d=u.filter(x=>zo.isValidElement(x)&&x.type?.displayName==="TabPanel").find(x=>x.props.value===e);return jsxs("div",{className:i,style:l,children:[jsx("div",{style:{display:"flex",gap:o==="pills"?"4px":"0",borderBottom:o==="underline"?`1px solid ${c.border}`:"none"},children:s.map(x=>{let g=x.props.value===e,S=x.props.disabled,R=o==="underline"?{padding:f.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:g?500:400,color:S?c.textDisabled:g?c.text:c.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${g?c.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:S?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, border-color 0.15s ease",flex:n?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"}:{padding:f.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:g?500:400,color:S?c.textDisabled:g?c.pillText:c.textInactive,backgroundColor:g?c.pillBg:c.pillInactiveBg,border:"none",borderRadius:"8px",cursor:S?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, background-color 0.15s ease",flex:n?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"};return jsxs("button",{type:"button",disabled:S,style:R,onClick:()=>{S||t(x.props.value);},onMouseEnter:y=>{!S&&!g&&(y.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:y=>{S||(y.currentTarget.style.backgroundColor=o==="pills"&&g?c.pillBg:"transparent");},children:[x.props.icon&&jsx("span",{style:{display:"flex",alignItems:"center"},children:x.props.icon}),x.props.label]},x.props.value)})}),d&&jsx("div",{style:{paddingTop:"16px"},children:d.props.children})]})};Ti.displayName="Tabs";var Di={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},zi=({content:e,children:t,position:r="top",delay:o=200,className:n,style:a})=>{let i=I(),l=Di[i],[p,c]=useState(false),[f,u]=useState({top:0,left:0}),s=useRef(null),h=useRef(null),d=useRef(void 0),x=6,g=8,S=useCallback(()=>{let D=s.current,T=h.current;if(!D||!T)return;let m=D.getBoundingClientRect(),C=T.getBoundingClientRect(),v=0,k=0;switch(r){case "top":v=m.top-C.height-g,k=m.left+m.width/2-C.width/2;break;case "bottom":v=m.bottom+g,k=m.left+m.width/2-C.width/2;break;case "left":v=m.top+m.height/2-C.height/2,k=m.left-C.width-g;break;case "right":v=m.top+m.height/2-C.height/2,k=m.right+g;break}u({top:v,left:k});},[r]);useEffect(()=>{p&&requestAnimationFrame(S);},[p,S]);let R=useCallback(()=>{d.current=setTimeout(()=>c(true),o);},[o]),y=useCallback(()=>{d.current&&clearTimeout(d.current),c(false);},[]);useEffect(()=>()=>{d.current&&clearTimeout(d.current);},[]);let b=(()=>{let D={position:"absolute",width:0,height:0,border:`${x}px solid transparent`};switch(r){case "top":return {...D,bottom:-x,left:"50%",transform:"translateX(-50%)",borderTopColor:l.background,borderBottomWidth:0};case "bottom":return {...D,top:-x,left:"50%",transform:"translateX(-50%)",borderBottomColor:l.background,borderTopWidth:0};case "left":return {...D,right:-x,top:"50%",transform:"translateY(-50%)",borderLeftColor:l.background,borderRightWidth:0};case "right":return {...D,left:-x,top:"50%",transform:"translateY(-50%)",borderRightColor:l.background,borderLeftWidth:0}}})(),w=p?createPortal(jsxs("div",{ref:h,className:n,style:{position:"fixed",top:f.top,left:f.left,zIndex:99999,padding:"6px 12px",backgroundColor:l.background,color:l.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",borderRadius:"8px",whiteSpace:"nowrap",pointerEvents:"none",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",opacity:1,transition:"opacity 0.12s ease",...a},children:[e,jsx("div",{style:b})]}),document.body):null;return jsxs(Fragment,{children:[zo.cloneElement(t,{ref:s,onMouseEnter:D=>{R(),t.props.onMouseEnter?.(D);},onMouseLeave:D=>{y(),t.props.onMouseLeave?.(D);}}),w]})};zi.displayName="Tooltip";var Ai={dark:{background:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.12)",text:"#ffffff",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{background:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.1)",text:"#1a1a1a",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},Lo=180,Ut=8,Hi=({content:e,children:t,position:r="bottom",trigger:o="click",className:n,style:a})=>{let i=I(),l=Ai[i],[p,c]=useState(false),[f,u]=useState(false),[s,h]=useState("idle"),[d,x]=useState({top:0,left:0}),g=useRef(null),S=useRef(null),R=useRef(void 0),y=useCallback(()=>{c(true),u(true),h("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>h("open"));});},[]),b=useCallback(()=>{c(false),h("closing");let k=setTimeout(()=>{u(false),h("idle");},Lo);return ()=>clearTimeout(k)},[]),w=useCallback(()=>{let k=g.current,E=S.current;if(!k||!E)return;let z=k.getBoundingClientRect(),F=E.getBoundingClientRect(),B=0,M=0;switch(r){case "top":B=z.top-F.height-Ut,M=z.left+z.width/2-F.width/2;break;case "bottom":B=z.bottom+Ut,M=z.left+z.width/2-F.width/2;break;case "left":B=z.top+z.height/2-F.height/2,M=z.left-F.width-Ut;break;case "right":B=z.top+z.height/2-F.height/2,M=z.right+Ut;break}x({top:B,left:M});},[r]);useEffect(()=>{if(f)return requestAnimationFrame(w),window.addEventListener("scroll",w,true),window.addEventListener("resize",w),()=>{window.removeEventListener("scroll",w,true),window.removeEventListener("resize",w);}},[f,w]),useEffect(()=>{if(!p)return;let k=E=>{let z=E.target;!g.current?.contains(z)&&!S.current?.contains(z)&&b();};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[p,b]),useEffect(()=>{if(!p)return;let k=E=>{E.key==="Escape"&&b();};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[p,b]);let D=()=>{let k={transition:`opacity ${Lo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Lo}ms cubic-bezier(0.16, 1, 0.3, 1)`},E={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},z=r==="top"||r==="bottom"?"Y":"X";return s==="opening"||s==="idle"?{...k,opacity:0,transform:`translate${z}(${E[r]}) scale(0.97)`}:s==="open"?{...k,opacity:1,transform:"translateY(0) scale(1)"}:{...k,opacity:0,transform:`translate${z}(${E[r]}) scale(0.98)`,pointerEvents:"none"}},T=useCallback(()=>{o==="click"&&(p?b():y());},[o,p,b,y]),m=useCallback(()=>{o==="hover"&&(R.current&&clearTimeout(R.current),p||y());},[o,p,y]),C=useCallback(()=>{o==="hover"&&(R.current=setTimeout(()=>{b();},150));},[o,b]);useEffect(()=>()=>{R.current&&clearTimeout(R.current);},[]);let v=f?createPortal(jsx("div",{ref:S,className:n,onMouseEnter:()=>{o==="hover"&&R.current&&clearTimeout(R.current);},onMouseLeave:C,style:{position:"fixed",top:d.top,left:d.left,zIndex:99999,padding:"16px",backgroundColor:l.background,border:`1px solid ${l.border}`,borderRadius:"12px",color:l.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",boxShadow:l.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",minWidth:"120px",...D(),...a},children:e}),document.body):null;return jsxs(Fragment,{children:[zo.cloneElement(t,{ref:g,onClick:k=>{T(),t.props.onClick?.(k);},onMouseEnter:k=>{m(),t.props.onMouseEnter?.(k);},onMouseLeave:k=>{C(),t.props.onMouseLeave?.(k);}}),v]})};Hi.displayName="Popover";var Wi={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},Zi=({icon:e,title:t,description:r,action:o,className:n,style:a})=>{let i=I(),l=Wi[i];return jsxs("div",{className:n,style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"48px 24px",gap:"12px",...a},children:[e&&jsx("div",{style:{fontSize:"48px",lineHeight:1,color:l.iconColor,marginBottom:"4px"},children:e}),jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"18px",lineHeight:"normal",color:l.text},children:t}),r&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:l.textSecondary,maxWidth:"360px"},children:r}),o&&jsx("div",{style:{marginTop:"8px"},children:o})]})};Zi.displayName="EmptyState";var Ui={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",label:"#ACACAC",trendUp:"#34C759",trendDown:"#EF3838",trendNeutral:"#ACACAC",iconColor:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#888888",trendUp:"#28A745",trendDown:"#EF3838",trendNeutral:"#888888",iconColor:"rgba(0,0,0,0.08)"}},qi=({label:e,value:t,change:r,changeLabel:o,icon:n,trend:a="neutral",className:i,style:l})=>{let p=I(),c=Ui[p],f=a==="up"?c.trendUp:a==="down"?c.trendDown:c.trendNeutral,u=s=>`${s>0?"+":""}${s.toFixed(1)} %`;return jsxs("div",{className:i,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:c.background,border:`1px solid ${c.border}`,borderRadius:"12px",padding:"16px 20px",...l},children:[n&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"40px",height:"40px",borderRadius:"10px",backgroundColor:c.iconColor,flexShrink:0,color:c.text},children:n}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:c.label,lineHeight:"normal",marginBottom:"4px"},children:e}),jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:"24px",lineHeight:"normal",color:c.text},children:t}),r!==void 0&&jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:f},children:[a==="up"&&jsx(TrendUpIcon,{size:14,color:f}),a==="down"&&jsx(TrendDownIcon,{size:14,color:f}),jsx("span",{children:u(r)}),o&&jsx("span",{style:{color:c.label,marginLeft:"2px"},children:o})]})]})]})};qi.displayName="Stat";var Gi=e=>typeof e=="number"?e:{sm:40,md:70,lg:96}[e],cu=({initials:e,size:t="md",borderRadius:r="8px",style:o,className:n,"aria-label":a})=>{let i=Gi(t),l={display:"inline-flex",alignItems:"center",justifyContent:"center",width:i,height:i,borderRadius:r,backgroundImage:"linear-gradient(128deg, #EC6608 0%, #F6540E 100%)",flexShrink:0,userSelect:"none",WebkitUserSelect:"none",...o},p={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:Math.round(i*.34),color:"#ffffff",textTransform:"uppercase",textAlign:"center",lineHeight:"normal",whiteSpace:"nowrap"};return jsx("div",{style:l,className:n,role:"img","aria-label":a??`Avatar ${e.toUpperCase()}`,children:jsx("span",{style:p,children:e.toUpperCase()})})};var vn={dark:{tagBg:"#1e1e1e",tagBorder:"rgba(255,255,255,0.3)",tagText:"#ffffff",itemBg:"rgba(3,3,3,0.6)",itemBorder:"rgba(255,255,255,0.3)",itemText:"#ffffff",actionColor:"rgba(255,255,255,0.5)"},light:{tagBg:"#f0f0f0",tagBorder:"rgba(0,0,0,0.15)",tagText:"#1a1a1a",itemBg:"rgba(255,255,255,0.85)",itemBorder:"rgba(0,0,0,0.15)",itemText:"#1a1a1a",actionColor:"rgba(0,0,0,0.4)"}},$o=({onClick:e,title:t,color:r,children:o})=>jsx("button",{type:"button",onClick:e,title:t,"aria-label":t,style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:r,width:16,height:16,flexShrink:0,transition:"opacity 0.15s ease"},children:o}),gu=({label:e,onRemove:t,style:r,className:o})=>{let n=vn[I()];return jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"4px 8px",backgroundColor:n.tagBg,border:`1px solid ${n.tagBorder}`,borderRadius:"4px",...r},className:o,children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:n.tagText,whiteSpace:"nowrap",lineHeight:"normal"},children:e}),t&&jsx("button",{type:"button",onClick:t,"aria-label":`Odebrat ${e}`,style:{display:"flex",alignItems:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:n.tagText,opacity:.6,fontSize:"8px",lineHeight:1},children:"\u2715"})]})},bu=({label:e,style:t,className:r})=>jsx("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 16px",backgroundColor:"rgba(246,84,14,0.8)",borderRadius:"12px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:"#ffffff",textTransform:"uppercase",whiteSpace:"nowrap",lineHeight:"normal",...t},className:r,children:e}),mu=({label:e,onFilter:t,onEdit:r,onDelete:o,showActions:n=true,style:a,className:i})=>{let l=vn[I()],p=t||r||o;return jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:l.itemBg,border:`1px solid ${l.itemBorder}`,borderRadius:"8px",...a},className:i,children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"16px",color:l.itemText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,lineHeight:"normal"},children:e}),n&&p&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsx($o,{onClick:t,title:"Filtrovat",color:l.actionColor,children:jsx(Funnel,{size:14,color:"currentColor"})}),r&&jsx($o,{onClick:r,title:"Upravit",color:l.actionColor,children:jsx(PencilSimple,{size:14,color:"currentColor"})}),o&&jsx($o,{onClick:o,title:"Smazat",color:l.actionColor,children:jsx(Trash,{size:14,color:"currentColor"})})]})]})};var Qi={dark:{background:"rgba(3,3,3,0.75)",surface:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",hover:"rgba(255,255,255,0.06)",todayBg:"rgba(252,79,0,0.12)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(255,255,255,0.04)",outsideText:"rgba(255,255,255,0.2)",eventDot:"#FC4F00",navHover:"rgba(255,255,255,0.08)"},light:{background:"rgba(255,255,255,0.85)",surface:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",hover:"rgba(0,0,0,0.04)",todayBg:"rgba(252,79,0,0.08)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(0,0,0,0.02)",outsideText:"rgba(0,0,0,0.2)",eventDot:"#FC4F00",navHover:"rgba(0,0,0,0.06)"}},el=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],_t=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"],Zo=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),Yo=e=>{let t=new Date(e),r=t.getDay(),o=(r===0?-6:1)-r;return t.setDate(t.getDate()+o),t.setHours(0,0,0,0),t},tl=(e,t)=>{let r=new Date(e,t,1),o=Yo(r),n=[],a=new Date(o);for(let i=0;i<42;i++)n.push(new Date(a)),a.setDate(a.getDate()+1);return n},ol=e=>{let t=Yo(e),r=[];for(let o=0;o<7;o++){let n=new Date(t);n.setDate(t.getDate()+o),r.push(n);}return r},rl=(e,t,r)=>{if(t){let o=new Date(t);if(o.setHours(0,0,0,0),e<o)return true}if(r){let o=new Date(r);if(o.setHours(23,59,59,999),e>o)return true}return false},nl=({value:e,onChange:t,view:r="month",events:o=[],minDate:n,maxDate:a,style:i,className:l})=>{let p=I(),c=Qi[p],f=useMemo(()=>{let v=new Date;return v.setHours(0,0,0,0),v},[]),[u,s]=useState(()=>e?e.getMonth():f.getMonth()),[h,d]=useState(()=>e?e.getFullYear():f.getFullYear()),[x,g]=useState(()=>Yo(e||f)),[S,R]=useState(null),y=useMemo(()=>r==="week"?ol(x):tl(h,u),[r,h,u,x]),b=useCallback(()=>{r==="week"?g(v=>{let k=new Date(v);return k.setDate(k.getDate()-7),k}):s(v=>v===0?(d(k=>k-1),11):v-1);},[r]),w=useCallback(()=>{r==="week"?g(v=>{let k=new Date(v);return k.setDate(k.getDate()+7),k}):s(v=>v===11?(d(k=>k+1),0):v+1);},[r]),D=v=>o.filter(k=>Zo(k.date,v)),T=r==="week"?(()=>{let v=new Date(x);return v.setDate(v.getDate()+6),x.getMonth()===v.getMonth()?`${x.getDate()}. \u2013 ${v.getDate()}. ${_t[v.getMonth()]} ${v.getFullYear()}`:`${x.getDate()}. ${_t[x.getMonth()].slice(0,3)} \u2013 ${v.getDate()}. ${_t[v.getMonth()].slice(0,3)} ${v.getFullYear()}`})():`${_t[u]} ${h}`,m={backgroundColor:c.background,border:`1px solid ${c.border}`,borderRadius:"12px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.text,overflow:"hidden",userSelect:"none",...i},C={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"transparent",color:c.text,cursor:"pointer",transition:"background-color 0.12s ease"};return jsxs("div",{className:l,style:m,children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:c.headerBg,borderBottom:`1px solid ${c.border}`},children:[jsx("button",{style:C,onClick:b,onMouseEnter:v=>{v.currentTarget.style.backgroundColor=c.navHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},"aria-label":"P\u0159edchoz\xED",children:jsx(CaretLeftIcon,{size:16})}),jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px"},children:T}),jsx("button",{style:C,onClick:w,onMouseEnter:v=>{v.currentTarget.style.backgroundColor=c.navHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},"aria-label":"Dal\u0161\xED",children:jsx(CaretRightIcon,{size:16})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"0",padding:"8px 12px 0"},children:el.map(v=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:c.textMuted,padding:"6px 0 8px"},children:v},v))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",padding:"0 12px 12px"},children:y.map((v,k)=>{let E=Zo(v,f),z=e?Zo(v,e):false,F=r==="month"&&v.getMonth()!==u,B=rl(v,n,a),M=v.toISOString(),H=S===M,A=D(v),$="transparent",L=F?c.outsideText:c.text,Z="2px solid transparent";return z?($=c.selectedBg,L=c.selectedText):E?($=c.todayBg,Z=`2px solid ${c.todayBorder}`):H&&!B&&($=c.hover),B&&(L=c.textMuted),jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"1px",minHeight:"44px"},children:[jsx("button",{style:{width:"36px",height:"36px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",border:Z,background:$,color:L,fontSize:"13px",fontWeight:E?600:400,fontFamily:"'Zalando Sans', sans-serif",cursor:B?"default":"pointer",opacity:B?.4:1,transition:"background-color 0.12s ease"},disabled:B,onClick:()=>{!B&&t&&t(v);},onMouseEnter:()=>!B&&R(M),onMouseLeave:()=>R(null),children:v.getDate()}),A.length>0&&jsx("div",{style:{display:"flex",gap:"3px",marginTop:"3px",height:"5px"},children:A.slice(0,3).map((Y,q)=>jsx("div",{title:Y.title,style:{width:"5px",height:"5px",borderRadius:"50%",backgroundColor:Y.color||c.eventDot}},q))})]},k)})})]})};nl.displayName="Calendar";var al={dark:{text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",line:"rgba(255,255,255,0.1)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.15)",iconBg:"rgba(252,79,0,0.12)",cardBg:"rgba(255,255,255,0.04)",cardBorder:"rgba(255,255,255,0.08)"},light:{text:"#1a1a1a",textSecondary:"#333333",textMuted:"#999999",line:"rgba(0,0,0,0.08)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.08)",iconBg:"rgba(252,79,0,0.06)",cardBg:"rgba(0,0,0,0.02)",cardBorder:"rgba(0,0,0,0.06)"}},sl=({items:e,orientation:t="vertical",style:r,className:o})=>{let n=I(),a=al[n];return t==="horizontal"?jsx("div",{className:o,style:{display:"flex",alignItems:"flex-start",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,overflow:"auto",...r},children:e.map((i,l)=>{let p=l===e.length-1,c=i.color||a.dotBorder;return jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flex:p?"0 0 auto":"1 1 0",minWidth:"120px",position:"relative"},children:[jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",position:"relative"},children:[l>0&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),l===0&&jsx("div",{style:{flex:1}}),i.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:i.color?`${i.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:c,flexShrink:0},children:i.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${c}`,backgroundColor:a.dotBg,flexShrink:0}}),!p&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),p&&jsx("div",{style:{flex:1}})]}),jsxs("div",{style:{textAlign:"center",paddingTop:"10px",maxWidth:"140px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"13px",lineHeight:"18px",display:"block"},children:i.title}),i.date&&jsx("span",{style:{fontSize:"11px",color:a.textMuted,display:"block",marginTop:"2px"},children:i.date}),i.description&&jsx("p",{style:{margin:"4px 0 0",fontSize:"12px",color:a.textSecondary,lineHeight:"16px"},children:i.description})]})]},l)})}):jsx("div",{className:o,style:{position:"relative",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,...r},children:e.map((i,l)=>{let p=l===e.length-1,c=i.color||a.dotBorder;return jsxs("div",{style:{display:"flex",position:"relative",paddingBottom:p?0:"4px",minHeight:i.icon?"36px":"28px"},children:[jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0,width:"32px",marginRight:"14px"},children:[i.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:i.color?`${i.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:c,flexShrink:0},children:i.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${c}`,backgroundColor:a.dotBg,flexShrink:0,marginTop:"4px"}}),!p&&jsx("div",{style:{width:"2px",flex:1,backgroundColor:a.line,marginTop:"4px",minHeight:"8px"}})]}),jsxs("div",{style:{flex:1,minWidth:0,paddingTop:i.icon?"5px":0},children:[jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:"8px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px"},children:i.title}),i.date&&jsx("span",{style:{fontSize:"12px",color:a.textMuted,flexShrink:0},children:i.date})]}),i.description&&jsx("p",{style:{margin:"3px 0 0",fontSize:"13px",color:a.textSecondary,lineHeight:"18px"},children:i.description})]})]},l)})})};sl.displayName="Timeline";var il={dark:{background:"transparent",text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",stripedBg:"rgba(255,255,255,0.04)"},light:{background:"transparent",text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",stripedBg:"rgba(0,0,0,0.02)"}},ll=({items:e,columns:t=1,striped:r=false,style:o,className:n})=>{let a=I(),i=il[a],l=Math.max(1,Math.round(t)),p={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,display:l>1?"grid":"block",gridTemplateColumns:l>1?`repeat(${l}, 1fr)`:void 0,gap:l>1?"0 24px":void 0,...o},c=h=>l<=1?h:Math.floor(h/l),f=h=>({display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:"16px",padding:"10px 12px",borderBottom:`1px solid ${i.border}`,backgroundColor:r&&c(h)%2===1?i.stripedBg:i.background}),u={fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:500,color:i.textMuted,flexShrink:0,letterSpacing:"0.01em"},s={textAlign:"right",lineHeight:"20px",wordBreak:"break-word"};return jsx("div",{className:n,style:p,children:e.map((h,d)=>jsxs("div",{style:f(d),children:[jsx("span",{style:u,children:h.label}),jsx("span",{style:s,children:h.value})]},d))})};ll.displayName="DataList";var fl={dark:{text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",line:"rgba(255,255,255,0.1)",hover:"rgba(255,255,255,0.06)",selectedBg:"rgba(252,79,0,0.12)",selectedBorder:"#FC4F00",selectedText:"#ffffff",iconColor:"rgba(255,255,255,0.4)",iconExpanded:"#FC4F00"},light:{text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",line:"rgba(0,0,0,0.08)",hover:"rgba(0,0,0,0.04)",selectedBg:"rgba(252,79,0,0.08)",selectedBorder:"#FC4F00",selectedText:"#1a1a1a",iconColor:"rgba(0,0,0,0.3)",iconExpanded:"#FC4F00"}},Rn=({node:e,depth:t,expanded:r,selectedId:o,onToggle:n,onSelect:a,t:i})=>{let l=e.children&&e.children.length>0,p=r.has(e.id),c=o===e.id,[f,u]=useState(false),s="transparent";return c?s=i.selectedBg:f&&(s=i.hover),jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",padding:"4px 8px",paddingLeft:`${t*20+8}px`,borderRadius:"6px",backgroundColor:s,borderLeft:c?`2px solid ${i.selectedBorder}`:"2px solid transparent",cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none",minHeight:"32px"},onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),onClick:()=>a?.(e),children:[jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",flexShrink:0,marginRight:"4px"},onClick:h=>{h.stopPropagation(),l&&n(e.id);},children:l&&jsx(CaretRightIcon,{size:14,color:p?i.iconExpanded:i.iconColor,style:{transform:p?"rotate(90deg)":"rotate(0deg)",transition:"transform 180ms cubic-bezier(0.16, 1, 0.3, 1)"}})}),e.icon&&jsx("span",{style:{display:"flex",alignItems:"center",marginRight:"6px",color:c?i.selectedBorder:i.textMuted,flexShrink:0},children:e.icon}),jsx("span",{style:{fontSize:"13px",fontWeight:c?500:400,color:c?i.selectedText:i.text,lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.label})]}),l&&p&&jsxs("div",{style:{position:"relative"},children:[jsx("div",{style:{position:"absolute",left:`${t*20+18}px`,top:0,bottom:"16px",width:"1px",backgroundColor:i.line}}),e.children.map(h=>jsx(Rn,{node:h,depth:t+1,expanded:r,selectedId:o,onToggle:n,onSelect:a,t:i},h.id))]})]})},ul=({data:e,onSelect:t,selectedId:r,defaultExpanded:o=[],style:n,className:a})=>{let i=I(),l=fl[i],[p,c]=useState(()=>new Set(o)),f=useCallback(s=>{c(h=>{let d=new Set(h);return d.has(s)?d.delete(s):d.add(s),d});},[]),u={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,...n};return jsx("div",{className:a,style:u,role:"tree",children:e.map(s=>jsx(Rn,{node:s,depth:0,expanded:p,selectedId:r,onToggle:f,onSelect:t,t:l},s.id))})};ul.displayName="Tree";var bl={dark:{labelColor:"#eaeaea"},light:{labelColor:"#333333"}},ml={online:"#00A205",offline:"#888888",away:"#F5A623",busy:"#EF3838"},xl={sm:{dot:8,fontSize:"12px",gap:"6px"},md:{dot:10,fontSize:"13px",gap:"8px"},lg:{dot:12,fontSize:"14px",gap:"8px"}},qo=false,hl=()=>{if(qo||typeof document>"u")return;let e="sm-statusbadge-pulse";if(document.getElementById(e)){qo=true;return}let t=document.createElement("style");t.id=e,t.textContent=`
12
+ `}),re.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:d.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),re.map(($,te)=>{let oe=q($.value),le=te===P;return jsxs("div",{role:"option","aria-selected":oe,"aria-disabled":$.disabled,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:oe?500:400,lineHeight:"normal",color:oe?d.optionSelectedText:$.disabled?d.placeholder:d.text,backgroundColor:le?d.optionHover:oe?d.optionSelected:"transparent",cursor:$.disabled?"not-allowed":"pointer",opacity:$.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:te<re.length-1?"2px":0},onClick:()=>{$.disabled||j($.value);},onMouseEnter:()=>F(te),onMouseLeave:()=>F(-1),children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:$.label??$.value}),oe&&jsx(Check,{size:16,color:d.optionSelectedText})]},$.value)})]})]}),document.body):null;return jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...c},className:h,children:[s&&jsx("label",{htmlFor:x,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:d.text,userSelect:"none"},children:s}),jsxs("div",{ref:S,role:"combobox","aria-expanded":k,"aria-haspopup":"listbox",tabIndex:H?-1:0,style:Pe,onClick:U,onKeyDown:me,children:[jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[W.length===0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:d.placeholder,lineHeight:"normal"},children:f}),o?W.map($=>jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:d.tagBg,color:d.tagText,borderRadius:"4px",padding:"2px 8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:de($)}),!H&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:te=>{te.stopPropagation(),j($);},children:jsx(X,{size:14,color:d.tagText})})]},$)):W.length>0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:d.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:de(W[0])})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[X$1&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:Q,children:jsx(X,{size:14,color:d.placeholder})}),l?jsx(Wa,{size:16,color:d.placeholder}):jsx(CaretDown,{size:16,color:d.placeholder,style:{transition:"transform 0.2s ease",transform:k?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),N&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:d.borderError,lineHeight:"normal"},children:N}),Me]})};Br.displayName="Select";var Za=({label:e,htmlFor:t,children:r,style:o,className:a})=>{let n=z(),i=useId(),l=t??i;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...o},className:a,children:[jsx("label",{htmlFor:l,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Ir[n].label,userSelect:"none"},children:e}),r??jsx(Br,{options:[]})]})};Za.displayName="SelectGroup";var _a=({size:e=16,color:t})=>{let[r,o]=useState(0),a=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let i=l=>{n.current===void 0&&(n.current=l),o((l-n.current)/800*360%360),a.current=requestAnimationFrame(i);};return a.current=requestAnimationFrame(i),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Ka={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},bo=180,Xa={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},ja=Po.forwardRef(({options:e,value:t,onChange:r,onInputChange:o,placeholder:a="Hledat\u2026",label:n,error:i,disabled:l=false,loading:p=false,allowCustom:s=false,onCreate:f,renderOption:u,notFoundContent:c,footer:h,size:g="md",style:d,className:x},S)=>{let w=z(),y=Ka[w],k=useId(),D=Xa[g],T=useRef(null),m=useRef(null),C=useRef(null),v=useRef(null),[R,E]=useState(false),[P,F]=useState(false),[I,B]=useState("idle"),[H,A]=useState(""),[N,L]=useState(-1),[O,W]=useState(false),[q,re]=useState({top:0,left:0,width:0,openAbove:false}),K=l||p,j=!!i,Q=typeof i=="string"?i:void 0;useEffect(()=>{if(!O){let Z=e.find(ee=>ee.value===t);A(Z?Z.label??Z.value:t||"");}},[t,e,O]);let U=H?e.filter(Z=>(Z.label??Z.value).toLowerCase().includes(H.toLowerCase())):e,me=useCallback(()=>{E(true),F(true),B("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>B("open"));});},[]),de=useCallback(()=>{E(false),B("closing");let Z=setTimeout(()=>{F(false),B("idle");},bo);return ()=>clearTimeout(Z)},[]),X=useCallback(()=>{if(!T.current)return;let Z=T.current.getBoundingClientRect(),ee=C.current?.offsetHeight??240,ue=window.innerHeight-Z.bottom-6,ye=Z.top-6,je=ue<ee&&ye>ue;re({top:je?Z.top-6:Z.bottom+6,left:Z.left,width:Z.width,openAbove:je});},[]);useEffect(()=>{if(P)return X(),window.addEventListener("scroll",X,true),window.addEventListener("resize",X),()=>{window.removeEventListener("scroll",X,true),window.removeEventListener("resize",X);}},[P,X]),useEffect(()=>{if(!R)return;let Z=ee=>{let ue=ee.target;if(!T.current?.contains(ue)&&!C.current?.contains(ue)){de();let ye=e.find(je=>je.value===t);s||A(ye?ye.label??ye.value:"");}};return document.addEventListener("mousedown",Z),()=>document.removeEventListener("mousedown",Z)},[R,de,t,e,s]),useEffect(()=>{N>=0&&v.current&&v.current.children[N]?.scrollIntoView({block:"nearest"});},[N]);let G=Z=>{let ee=Z.target.value;A(ee),o?.(ee),L(0),R||me();},Pe=useCallback(Z=>{r(Z);let ee=e.find(ue=>ue.value===Z);A(ee?ee.label??ee.value:Z),de();},[r,e,de]),Me=Z=>{if(!K)switch(Z.key){case "ArrowDown":Z.preventDefault(),R?L(ee=>Math.min(ee+1,U.length-1)):(me(),L(0));break;case "ArrowUp":Z.preventDefault(),L(ee=>Math.max(ee-1,0));break;case "Enter":Z.preventDefault(),R&&N>=0&&U[N]?Pe(U[N].value):s&&H&&(r(H),f?.(H),de());break;case "Escape":de();break;case "Tab":R&&de();break}},$=()=>{W(true),!R&&!K&&me();},te=()=>{W(false),s&&H&&r(H);},oe=()=>{let Z=q.openAbove,ee=Z?"translateY(8px)":"translateY(-8px)",ue=Z?"translateY(6px)":"translateY(-6px)",ye={transition:`opacity ${bo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${bo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return I==="opening"||I==="idle"?{...ye,opacity:0,transform:`${ee} scale(0.97)`}:I==="open"?{...ye,opacity:1,transform:"translateY(0) scale(1)"}:{...ye,opacity:0,transform:`${ue} scale(0.98)`,pointerEvents:"none"}},le={display:"flex",alignItems:"center",gap:D.gap,backgroundColor:K?y.backgroundDisabled:y.background,border:`1px solid ${j?y.borderError:O?y.borderFocus:y.border}`,borderRadius:"8px",padding:D.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:K?.6:1,cursor:K?"not-allowed":"text"},Se={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:D.fontSize,lineHeight:"normal",color:y.text,cursor:K?"not-allowed":"text"},io={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:y.label,userSelect:"none"},bt=P?createPortal(jsxs("div",{ref:C,style:{position:"fixed",...q.openAbove?{bottom:window.innerHeight-q.top,left:q.left}:{top:q.top,left:q.left},width:q.width,backgroundColor:y.dropdownBg,border:`1px solid ${y.dropdownBorder}`,borderRadius:"12px",boxShadow:w==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:q.openAbove?"bottom center":"top center",...oe()},children:[jsxs("div",{ref:v,role:"listbox",style:{maxHeight:240,overflowY:"auto",padding:"6px"},children:[U.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:y.placeholder,textAlign:"center"},children:s&&H?"Stiskn\u011Bte Enter pro potvrzen\xED":c??"\u017D\xE1dn\xE9 v\xFDsledky"}),U.map((Z,ee)=>{let ue=Z.value===t,ye=ee===N;return jsx("div",{role:"option","aria-selected":ue,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:ue?500:400,lineHeight:"normal",color:ue?y.optionSelectedText:y.text,backgroundColor:ye?y.optionHover:ue?y.optionSelected:"transparent",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:ee<U.length-1?"2px":0},onClick:()=>Pe(Z.value),onMouseEnter:()=>L(ee),onMouseLeave:()=>L(-1),children:u?u(Z,ye):jsxs(Fragment,{children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Z.label??Z.value}),ue&&jsx(Check,{size:16,color:y.optionSelectedText})]})},Z.value)})]}),h&&jsx("div",{style:{borderTop:`1px solid ${y.divider}`,padding:"8px 6px"},children:h})]}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...d},className:x,children:[n&&jsx("label",{htmlFor:k,style:io,children:n}),jsxs("div",{ref:T,style:le,onClick:()=>m.current?.focus(),children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:y.placeholder},children:p?jsx(_a,{size:D.iconSize,color:y.placeholder}):jsx(MagnifyingGlass,{size:D.iconSize,color:y.placeholder})}),jsx("input",{ref:Z=>{m.current=Z,typeof S=="function"?S(Z):S&&(S.current=Z);},id:k,type:"text",value:H,onChange:G,onFocus:$,onBlur:te,onKeyDown:Me,placeholder:a,disabled:l,readOnly:p,style:Se}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:jsx(CaretDown,{size:D.iconSize,color:y.placeholder,style:{transition:"transform 0.2s ease",transform:R?"rotate(180deg)":"rotate(0deg)"}})})]}),Q&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:y.borderError,lineHeight:"normal"},children:Q}),bt]})});ja.displayName="Combobox";var os=({size:e=16,color:t})=>{let[r,o]=useState(0),a=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let i=l=>{n.current===void 0&&(n.current=l),o((l-n.current)/800*360%360),a.current=requestAnimationFrame(i);};return a.current=requestAnimationFrame(i),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},$r={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",dayHover:"rgba(255,255,255,0.06)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.15)",dayToday:"rgba(255,255,255,0.2)",dayOutside:"rgba(255,255,255,0.25)",dayDisabled:"rgba(255,255,255,0.12)",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",dayHover:"rgba(0,0,0,0.04)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.10)",dayToday:"rgba(0,0,0,0.1)",dayOutside:"rgba(0,0,0,0.3)",dayDisabled:"rgba(0,0,0,0.15)",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},xo=180,rs={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},ns=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],Ar=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function as(e,t,r){let a=new Date(e,t,1).getDay();a=(a===0?7:a)-r,a<0&&(a+=7);let n=new Date(e,t,1-a),i=[];for(let l=0;l<42;l++){let p=new Date(n);p.setDate(n.getDate()+l),i.push(p);}return i}function ho(e){let t=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0");return `${t}.${r}.${e.getFullYear()}`}function Hr(e){let t=String(e.getHours()).padStart(2,"0"),r=String(e.getMinutes()).padStart(2,"0");return `${ho(e)} ${t}:${r}`}function Ne(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Lr(e,t,r){let o=e.getTime(),a=Math.min(t.getTime(),r.getTime()),n=Math.max(t.getTime(),r.getTime());return o>=a&&o<=n}function ss(e){return Ne(e,new Date)}var Wr=({mode:e="single",showTime:t=false,value:r,onChange:o,label:a,placeholder:n,error:i,helperText:l,disabled:p=false,loading:s=false,clearable:f=false,size:u="md",fullWidth:c=false,required:h,minDate:g,maxDate:d,firstDayOfWeek:x=1,style:S,className:w})=>{let y=z(),b=$r[y],k=useId(),D=rs[u],T=useRef(null),m=useRef(null),[C,v]=useState(false),[R,E]=useState(false),[P,F]=useState("idle"),[I,B]=useState({top:0,left:0,width:0,openAbove:false}),[H,A]=useState(null),N=new Date,[L,O]=useState(N.getFullYear()),[W,q]=useState(N.getMonth()),[re,K]=useState("days"),[j,Q]=useState(0),U=p||s,me=!!i,de=typeof i=="string"?i:void 0,X$1=e==="single"&&r instanceof Date?r:null,G=e==="range"&&Array.isArray(r)?r:[null,null],Pe=e==="single"?X$1!==null:G[0]!==null||G[1]!==null,Me=f&&Pe&&!U,$=(()=>{if(e==="single")return X$1?t?Hr(X$1):ho(X$1):"";let[M,J]=G;if(!M&&!J)return "";let _=t?Hr:ho;return `${M?_(M):"\u2026"} \u2013 ${J?_(J):"\u2026"}`})(),te=n??(e==="single"?t?"dd.mm.rrrr hh:mm":"dd.mm.rrrr":t?"dd.mm.rrrr hh:mm \u2013 dd.mm.rrrr hh:mm":"dd.mm.rrrr \u2013 dd.mm.rrrr"),oe=useCallback(()=>{let M=e==="single"?X$1:G[0];M&&(O(M.getFullYear()),q(M.getMonth())),K("days"),v(true),E(true),F("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>F("open"));});},[e,X$1,G]),le=useCallback(()=>{v(false),F("closing");let M=setTimeout(()=>{E(false),F("idle");},xo);return ()=>clearTimeout(M)},[]),Se=useCallback(()=>{if(!T.current)return;let M=T.current.getBoundingClientRect(),J=m.current?.offsetHeight??380,_=window.innerHeight-M.bottom-6,V=M.top-6,se=_<J&&V>_;B({top:se?M.top-6:M.bottom+6,left:M.left,width:Math.max(M.width,300),openAbove:se});},[]);useEffect(()=>{if(R)return Se(),window.addEventListener("scroll",Se,true),window.addEventListener("resize",Se),()=>{window.removeEventListener("scroll",Se,true),window.removeEventListener("resize",Se);}},[R,Se]),useEffect(()=>{if(!C)return;let M=J=>{let _=J.target,V=T.current?.contains(_),se=m.current?.contains(_);!V&&!se&&le();};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[C,le]);let io=M=>{U||(M.key==="Escape"&&C&&(M.preventDefault(),le()),(M.key==="Enter"||M.key===" ")&&!C&&(M.preventDefault(),oe()));},bt=useCallback(M=>{if(g){let J=new Date(g.getFullYear(),g.getMonth(),g.getDate());if(M<J)return true}if(d){let J=new Date(d.getFullYear(),d.getMonth(),d.getDate());if(M>J)return true}return false},[g,d]),Z=useCallback(M=>{if(!bt(M)&&o)if(e==="single")t&&X$1&&M.setHours(X$1.getHours(),X$1.getMinutes()),o(new Date(M)),t||le();else if(j===0)t&&G[0]&&M.setHours(G[0].getHours(),G[0].getMinutes()),o([new Date(M),null]),Q(1);else {let J=G[0];t&&G[1]&&M.setHours(G[1].getHours(),G[1].getMinutes());let[_,V]=M>=J?[J,new Date(M)]:[new Date(M),J];o([_,V]),Q(0),t||le();}},[e,t,X$1,G,j,o,le,bt]),ee=useCallback((M,J,_)=>{if(!o)return;let V=parseInt(J,10);if(isNaN(V)&&(V=0),M==="hour"&&(V=Math.max(0,Math.min(23,V))),M==="minute"&&(V=Math.max(0,Math.min(59,V))),e==="single"){let se=X$1?new Date(X$1):new Date;M==="hour"?se.setHours(V):se.setMinutes(V),o(se);}else {let se=_??0,be=[G[0]?new Date(G[0]):null,G[1]?new Date(G[1]):null],Ye=be[se]??new Date;M==="hour"?Ye.setHours(V):Ye.setMinutes(V),be[se]=Ye,o(be);}},[e,X$1,G,o]),ue=()=>{W===0?(q(11),O(M=>M-1)):q(M=>M-1);},ye=()=>{W===11?(q(0),O(M=>M+1)):q(M=>M+1);},je=M=>{M.stopPropagation(),o&&(o(e==="single"?null:[null,null]),Q(0));},sa=()=>{let M=I.openAbove,J=M?"translateY(8px)":"translateY(-8px)",_=M?"translateY(6px)":"translateY(-6px)",V={transition:`opacity ${xo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${xo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return P==="opening"||P==="idle"?{...V,opacity:0,transform:`${J} scale(0.97)`}:P==="open"?{...V,opacity:1,transform:"translateY(0) scale(1)"}:{...V,opacity:0,transform:`${_} scale(0.98)`,pointerEvents:"none"}},ia=as(L,W,x),lo=(M,J)=>{let _=M?M.getHours():0,V=M?M.getMinutes():0,se={width:"42px",background:"transparent",border:`1px solid ${b.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:b.text,textAlign:"center",outline:"none",boxSizing:"border-box"};return jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[jsx("input",{type:"text",value:String(_).padStart(2,"0"),onChange:be=>ee("hour",be.target.value,J),style:se,maxLength:2,"aria-label":"Hodiny"}),jsx("span",{style:{color:b.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsx("input",{type:"text",value:String(V).padStart(2,"0"),onChange:be=>ee("minute",be.target.value,J),style:se,maxLength:2,"aria-label":"Minuty"})]})},la=()=>jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:Ar.map((M,J)=>{let _=J===W;return jsx("button",{type:"button",onClick:()=>{q(J),K("days");},style:{background:_?b.daySelected:"transparent",color:_?b.daySelectedText:b.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:V=>{_||(V.target.style.backgroundColor=b.dayHover);},onMouseLeave:V=>{_||(V.target.style.backgroundColor="transparent");},children:M},J)})}),ca=()=>{let M=Math.floor(L/12)*12,J=Array.from({length:12},(_,V)=>M+V);return jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px"},children:[jsx("button",{type:"button",onClick:()=>O(_=>_-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:b.text})}),jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:b.text},children:[M," \u2013 ",M+11]}),jsx("button",{type:"button",onClick:()=>O(_=>_+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:b.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:J.map(_=>{let V=_===L;return jsx("button",{type:"button",onClick:()=>{O(_),K("months");},style:{background:V?b.daySelected:"transparent",color:V?b.daySelectedText:b.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:se=>{V||(se.target.style.backgroundColor=b.dayHover);},onMouseLeave:se=>{V||(se.target.style.backgroundColor="transparent");},children:_},_)})})]})},da=R?createPortal(jsx("div",{ref:m,style:{position:"fixed",...I.openAbove?{bottom:window.innerHeight-I.top,left:I.left}:{top:I.top,left:I.left},width:I.width,backgroundColor:b.dropdownBg,border:`1px solid ${b.dropdownBorder}`,borderRadius:"12px",boxShadow:y==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:I.openAbove?"bottom center":"top center",...sa()},children:re==="years"?ca():re==="months"?jsxs(Fragment,{children:[jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 12px"},children:jsx("button",{type:"button",onClick:()=>K("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:b.text,padding:"4px 8px",borderRadius:"4px"},children:L})}),la()]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px"},children:[jsx("button",{type:"button",onClick:ue,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:b.text})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("button",{type:"button",onClick:()=>K("months"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:b.text,padding:"4px 8px",borderRadius:"4px"},children:Ar[W]}),jsx("button",{type:"button",onClick:()=>K("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:b.text,padding:"4px 8px",borderRadius:"4px"},children:L})]}),jsx("button",{type:"button",onClick:ye,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:b.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 4px",gap:"0"},children:ns.map(M=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:400,color:b.placeholder,padding:"4px 0",userSelect:"none"},children:M},M))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 8px",gap:"2px"},children:ia.map((M,J)=>{let _=M.getMonth()!==W,V=bt(M),se=ss(M),be=false,Ye=false,co=false,Ht=false;if(e==="single"&&X$1)be=Ne(M,X$1);else if(e==="range"){let[Ae,Nt]=G;Ae&&Ne(M,Ae)&&(Ye=true,be=true),Nt&&Ne(M,Nt)&&(co=true,be=true),Ae&&Nt&&Lr(M,Ae,Nt)&&!Ye&&!co&&(Ht=true),j===1&&Ae&&H&&!V&&(Ne(M,H)&&!Ne(M,Ae)&&(be=true),Lr(M,Ae,H)&&!Ne(M,Ae)&&!Ne(M,H)&&(Ht=true));}let po="transparent",Lt=b.text;return be?(po=b.daySelected,Lt=b.daySelectedText):Ht&&(po=b.dayRangeMiddle),_&&(Lt=be?b.daySelectedText:b.dayOutside),V&&(Lt=b.dayDisabled),jsx("button",{type:"button",disabled:V,onClick:()=>Z(M),onMouseEnter:()=>{V||A(M);},onMouseLeave:()=>A(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:po,color:Lt,border:"none",borderRadius:Ye?"6px 0 0 6px":co?"0 6px 6px 0":Ht?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:be?600:400,cursor:V?"not-allowed":"pointer",opacity:V?.4:1,transition:"background-color 0.1s ease",outline:se&&!be?`1.5px solid ${b.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:M.getDate()},J)})}),t&&jsx("div",{style:{borderTop:`1px solid ${b.divider}`,padding:"10px 12px",display:"flex",alignItems:"center",justifyContent:e==="range"?"space-between":"center",gap:"8px"},children:e==="single"?jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.placeholder},children:"\u010Cas:"}),lo(X$1)]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.placeholder},children:"Od:"}),lo(G[0],0)]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.placeholder},children:"Do:"}),lo(G[1],1)]})]})})]})}),document.body):null,pa={display:"flex",alignItems:"center",gap:D.gap,backgroundColor:U?b.backgroundDisabled:b.background,border:`1px solid ${me?b.borderError:C?b.borderFocus:b.border}`,borderRadius:"8px",padding:D.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:U?.6:1,cursor:U?"not-allowed":"pointer",userSelect:"none",outline:"none"},fa={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:b.label,userSelect:"none"},yr={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:c?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:c?"100%":void 0,...S},className:w,children:[a&&jsxs("label",{htmlFor:k,style:fa,children:[a,h&&jsx("span",{style:{color:b.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("div",{ref:T,role:"button",tabIndex:U?-1:0,style:pa,onClick:()=>{U||(C?le():oe());},onKeyDown:io,children:[jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:$?jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.fontSize,color:b.text,lineHeight:"normal"},children:$}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.fontSize,color:b.placeholder,lineHeight:"normal"},children:te})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[Me&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:je,children:jsx(X,{size:D.iconSize-2,color:b.placeholder})}),s?jsx(os,{size:D.iconSize,color:b.placeholder}):jsx(CalendarBlank,{size:D.iconSize,color:b.placeholder})]})]}),de&&jsx("span",{style:{...yr,color:b.borderError},children:de}),!de&&l&&jsx("span",{style:{...yr,color:b.helperText},children:l}),da]})};Wr.displayName="DatePicker";var is=({label:e,htmlFor:t,children:r,style:o,className:a})=>{let n=z(),i=useId(),l=t??i;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...o},className:a,children:[jsx("label",{htmlFor:l,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:$r[n].label,userSelect:"none"},children:e}),r??jsx(Wr,{})]})};is.displayName="DatePickerGroup";var Zr={dark:{border:"rgba(255,255,255,0.3)",borderHover:"rgba(255,255,255,0.5)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",checkBg:"#FC4F00",checkMark:"#ffffff"},light:{border:"rgba(0,0,0,0.2)",borderHover:"rgba(0,0,0,0.5)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",checkBg:"#FC4F00",checkMark:"#ffffff"}},ps={sm:{box:16,fontSize:"14px",gap:"6px",radius:3,strokeWidth:2},md:{box:20,fontSize:"16px",gap:"8px",radius:4,strokeWidth:2},lg:{box:24,fontSize:"18px",gap:"10px",radius:5,strokeWidth:2.5}},Or=({checked:e=false,onChange:t,label:r,disabled:o=false,error:a,size:n="md",indeterminate:i=false,className:l,style:p})=>{let s=z(),f=Zr[s],u=ps[n],c=useId(),h=useRef(null),g=!!a,d=typeof a=="string"?a:void 0;useEffect(()=>{h.current&&(h.current.indeterminate=i);},[i]);let x=()=>{o||t?.(!e);},S=g?f.borderError:e||i?f.checkBg:f.border,w=e||i?f.checkBg:o?f.backgroundDisabled:f.background,y={width:u.box,height:u.box,borderRadius:u.radius,border:`1.5px solid ${S}`,backgroundColor:w,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:o?"not-allowed":"pointer",transition:"background-color 0.15s ease, border-color 0.15s ease",opacity:o?.5:1},b={fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,color:f.text,cursor:o?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},k={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",...p},className:l,children:[jsxs("label",{htmlFor:c,style:{display:"inline-flex",alignItems:"center",gap:u.gap,cursor:o?"not-allowed":"pointer"},onClick:D=>{D.preventDefault(),x();},children:[jsx("input",{ref:h,id:c,type:"checkbox",checked:e,disabled:o,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":g||void 0}),jsxs("span",{style:y,children:[e&&!i&&jsx("svg",{width:u.box-6,height:u.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2 6l3 3 5-5",stroke:f.checkMark,strokeWidth:u.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),i&&jsx("svg",{width:u.box-6,height:u.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2.5 6h7",stroke:f.checkMark,strokeWidth:u.strokeWidth,strokeLinecap:"round"})})]}),r&&jsx("span",{style:b,children:r})]}),d&&jsx("span",{style:{...k,color:f.borderError,marginLeft:`${u.box+parseInt(u.gap)}px`},children:d})]})};Or.displayName="Checkbox";var Yr=({label:e,children:t,error:r,className:o,style:a})=>{let n=z(),i=Zr[n],l=typeof r=="string"?r:void 0,p={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:i.label,userSelect:"none"},s={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"group","aria-label":e,style:{display:"flex",flexDirection:"column",gap:"8px",...a},className:o,children:[e&&jsx("span",{style:p,children:e}),jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),l&&jsx("span",{style:{...s,color:i.borderError},children:l})]})};Yr.displayName="CheckboxGroup";var Vr={dark:{border:"rgba(255,255,255,0.3)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",dot:"#FC4F00",dotRing:"#FC4F00"},light:{border:"rgba(0,0,0,0.2)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",dot:"#FC4F00",dotRing:"#FC4F00"}},us={sm:{box:16,dot:6,fontSize:"14px",gap:"6px"},md:{box:20,dot:8,fontSize:"16px",gap:"8px"},lg:{box:24,dot:10,fontSize:"18px",gap:"10px"}},yo=({value:e,checked:t=false,onChange:r,label:o,disabled:a=false,size:n="md",className:i,style:l})=>{let p=z(),s=Vr[p],f=us[n],u=useId(),c=()=>{a||r?.(e);},h=t?s.dotRing:s.border,g=a?s.backgroundDisabled:s.background,d={width:f.box,height:f.box,borderRadius:"50%",border:`1.5px solid ${h}`,backgroundColor:g,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:a?.5:1},x={fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:s.text,cursor:a?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsx("div",{style:{display:"inline-flex",...l},className:i,children:jsxs("label",{htmlFor:u,style:{display:"inline-flex",alignItems:"center",gap:f.gap,cursor:a?"not-allowed":"pointer"},onClick:S=>{S.preventDefault(),c();},children:[jsx("input",{id:u,type:"radio",value:e,checked:t,disabled:a,onChange:()=>r?.(e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"}}),jsx("span",{style:d,children:t&&jsx("span",{style:{width:f.dot,height:f.dot,borderRadius:"50%",backgroundColor:s.dot,transition:"transform 0.15s ease"}})}),o&&jsx("span",{style:x,children:o})]})})};yo.displayName="Radio";var Ur=({value:e,onChange:t,label:r,options:o,direction:a="vertical",error:n,helperText:i,size:l="md",className:p,style:s})=>{let f=z(),u=Vr[f],c=!!n,h=typeof n=="string"?n:void 0,g={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},d={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"radiogroup","aria-label":r,"aria-invalid":c||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...s},className:p,children:[r&&jsx("span",{style:g,children:r}),jsx("div",{style:{display:"flex",flexDirection:a==="horizontal"?"row":"column",gap:a==="horizontal"?"16px":"6px"},children:o.map(x=>jsx(yo,{value:x.value,label:x.label,checked:e===x.value,onChange:t,disabled:x.disabled,size:l},x.value))}),h&&jsx("span",{style:{...d,color:u.borderError},children:h}),!h&&i&&jsx("span",{style:{...d,color:u.helperText},children:i})]})};Ur.displayName="RadioGroup";var bs={dark:{trackOff:"rgba(255,255,255,0.2)",trackOffBorder:"rgba(255,255,255,0.35)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#ffffff"},light:{trackOff:"rgba(0,0,0,0.12)",trackOffBorder:"rgba(0,0,0,0.22)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#1a1a1a"}},xs={sm:{trackW:32,trackH:20,thumb:14,offset:2,fontSize:"14px",gap:"8px"},md:{trackW:40,trackH:24,thumb:18,offset:2,fontSize:"16px",gap:"10px"},lg:{trackW:48,trackH:28,thumb:22,offset:2,fontSize:"18px",gap:"12px"}},Gr=({checked:e=false,onChange:t,label:r,disabled:o=false,size:a="md",className:n,style:i})=>{let l=z(),p=bs[l],s=xs[a],f=useId(),u=()=>{o||t?.(!e);},c=1.5,h=2,d=s.trackW-c*2-s.thumb-h,x=e?d:0,S={width:s.trackW,height:s.trackH,borderRadius:s.trackH/2,backgroundColor:e?p.trackOn:p.trackOff,border:`${c}px solid ${e?p.trackOnBorder:p.trackOffBorder}`,position:"relative",cursor:o?"not-allowed":"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",flexShrink:0,opacity:o?.5:1,boxSizing:"border-box"},w={width:s.thumb,height:s.thumb,borderRadius:"50%",backgroundColor:p.thumb,position:"absolute",top:"50%",left:h,transform:`translateY(-50%) translateX(${x}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},y={fontFamily:"'Zalando Sans', sans-serif",fontSize:s.fontSize,color:p.text,cursor:o?"not-allowed":"pointer",userSelect:"none",lineHeight:`${s.trackH}px`};return jsx("div",{style:{display:"inline-flex",alignItems:"center",...i},className:n,children:jsxs("label",{htmlFor:f,style:{display:"inline-flex",alignItems:"center",gap:s.gap,cursor:o?"not-allowed":"pointer"},onClick:b=>{b.preventDefault(),u();},children:[jsx("input",{id:f,type:"checkbox",role:"switch",checked:e,disabled:o,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-checked":e}),jsx("span",{style:S,children:jsx("span",{style:w})}),r&&jsx("span",{style:y,children:r})]})})};Gr.displayName="Switch";var Cs={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",counter:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",counter:"#888888"}},Rs={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},Kr=Po.forwardRef(({label:e,error:t,helperText:r,disabled:o,loading:a=false,size:n="md",fullWidth:i=false,required:l,rows:p=4,maxLength:s,resize:f="vertical",autoHeight:u=false,minRows:c,maxRows:h,className:g,style:d,value:x,onChange:S,onFocus:w,onBlur:y,...b},k)=>{let D=z(),T=Cs[D],m=Rs[n],C=useId(),v=b.id??C,[R,E]=useState(false),P=useRef(null),F=useCallback(()=>{let j=P.current;if(!j||!u)return;j.style.height="auto";let Q=getComputedStyle(j),U=parseFloat(Q.lineHeight)||parseFloat(Q.fontSize)*1.5,me=parseFloat(Q.paddingTop)||0,de=parseFloat(Q.paddingBottom)||0,X=me+de,Pe=U*(c??1)+X,Me=h?U*h+X:1/0,$=Math.min(Math.max(j.scrollHeight,Pe),Me);j.style.height=`${$}px`,j.style.overflowY=j.scrollHeight>Me?"auto":"hidden";},[u,c,h]);useEffect(()=>{F();},[x,F]);let I=useCallback(j=>{P.current=j,typeof k=="function"?k(j):k&&(k.current=j);},[k]),B=u?"none":f,H=u?c??1:p,A=o||a,N=!!t,L=typeof t=="string"?t:void 0,O=typeof x=="string"?x.length:0,W={backgroundColor:A?T.backgroundDisabled:T.background,border:`1px solid ${N?T.borderError:R?T.borderFocus:T.border}`,borderRadius:"8px",padding:m.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:A?.6:1,cursor:A?"not-allowed":"text"},q={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:m.fontSize,lineHeight:"1.5",color:T.text,cursor:A?"not-allowed":"text",resize:B,boxSizing:"border-box",overflow:u?"hidden":void 0},re={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:T.label,userSelect:"none"},K={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:i?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:i?"100%":void 0,...d},className:g,children:[e&&jsxs("label",{htmlFor:v,style:re,children:[e,l&&jsx("span",{style:{color:T.borderError,marginLeft:"3px"},children:"*"})]}),jsx("div",{style:W,children:jsx("textarea",{ref:I,id:v,rows:H,maxLength:s,disabled:o,required:l,readOnly:a||b.readOnly,value:x,onChange:S,style:q,onFocus:j=>{E(true),w?.(j);},onBlur:j=>{E(false),y?.(j);},...b})}),jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxs("div",{style:{flex:1},children:[L&&jsx("span",{style:{...K,color:T.borderError},children:L}),!L&&r&&jsx("span",{style:{...K,color:T.helperText},children:r})]}),s!==void 0&&jsxs("span",{style:{...K,color:O>s?T.borderError:T.counter,flexShrink:0},children:[O,"/",s]})]})]})});Kr.displayName="Textarea";var Ts={dark:{trackBg:"rgba(255,255,255,0.15)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#ffffff",label:"#ffffff",valueBg:"rgba(3,3,3,0.75)"},light:{trackBg:"rgba(0,0,0,0.1)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#1a1a1a",label:"#1a1a1a",valueBg:"rgba(255,255,255,0.85)"}},Fs={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function Jr(e,t,r){return Math.min(Math.max(e,t),r)}function Es(e,t,r){return Math.round((e-t)/r)*r+t}var Qr=({value:e,onChange:t,min:r=0,max:o=100,step:a=1,label:n,disabled:i=false,showValue:l=false,range:p=false,size:s="md",className:f,style:u})=>{let c=z(),h=Ts[c],g=Fs[s],d=useId(),x=useRef(null),S=useRef(null),w=p?e:[r,e],y=R=>(R-r)/(o-r)*100,b=y(w[0]),k=y(w[1]),D=useCallback(R=>{let E=x.current;if(!E)return r;let P=E.getBoundingClientRect(),F=Jr((R-P.left)/P.width,0,1),I=r+F*(o-r);return Jr(Es(I,r,a),r,o)},[r,o,a]),T=useCallback(R=>{if(i)return;R.preventDefault();let E=D(R.clientX);if(p){let I=e,B=Math.abs(E-I[0]),H=Math.abs(E-I[1]),A=B<=H?"start":"end";S.current=A;let N=A==="start"?[Math.min(E,I[1]),I[1]]:[I[0],Math.max(E,I[0])];t?.(N);}else S.current="end",t?.(E);let P=I=>{let B=D(I.clientX);if(p){let H=e;S.current==="start"?t?.([Math.min(B,H[1]),H[1]]):t?.([H[0],Math.max(B,H[0])]);}else t?.(B);},F=()=>{S.current=null,document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",F);};document.addEventListener("mousemove",P),document.addEventListener("mouseup",F);},[i,D,t,p,e]),m={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:h.label,userSelect:"none"},C=p?`${w[0]} \u2013 ${w[1]}`:`${e}`,v={width:g.thumb,height:g.thumb,borderRadius:"50%",backgroundColor:h.thumb,border:`2px solid ${h.thumbBorder}`,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",cursor:i?"not-allowed":"grab",boxShadow:"0 1px 3px rgba(0,0,0,0.2)",boxSizing:"border-box",zIndex:2};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",opacity:i?.5:1,...u},className:f,children:[(n||l)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n&&jsx("label",{htmlFor:d,style:m,children:n}),l&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:g.fontSize,color:h.text,userSelect:"none"},children:C})]}),jsxs("div",{ref:x,role:"slider",id:d,"aria-valuemin":r,"aria-valuemax":o,"aria-valuenow":p?void 0:e,"aria-disabled":i||void 0,onMouseDown:T,style:{position:"relative",width:"100%",height:g.thumb,cursor:i?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:g.trackH,transform:"translateY(-50%)",borderRadius:g.trackH/2,backgroundColor:h.trackBg}}),jsx("div",{style:{position:"absolute",top:"50%",left:`${p?b:0}%`,width:`${k-(p?b:0)}%`,height:g.trackH,transform:"translateY(-50%)",borderRadius:g.trackH/2,backgroundColor:h.trackFill}}),p&&jsx("span",{style:{...v,left:`${b}%`}}),jsx("span",{style:{...v,left:`${k}%`}})]})]})};Qr.displayName="Slider";var Ps={dark:{border:"rgba(255,255,255,0.3)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDrag:"rgba(252,79,0,0.08)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",textSecondary:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",fileText:"#ffffff",fileBg:"rgba(255,255,255,0.05)",removeColor:"#ACACAC",removeHover:"#EF3838"},light:{border:"rgba(0,0,0,0.2)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDrag:"rgba(252,79,0,0.05)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",textSecondary:"#888888",label:"#1a1a1a",helperText:"#888888",fileText:"#1a1a1a",fileBg:"rgba(0,0,0,0.03)",removeColor:"#888888",removeHover:"#EF3838"}};function Ro(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var Ms=0,tn=({variant:e="dropzone",onFiles:t,accept:r,multiple:o=false,maxSize:a,disabled:n=false,label:i,helperText:l,error:p,buttonStyle:s="default",showFileList:f=true,buttonLabel:u,className:c,style:h})=>{let g=z(),d=Ps[g],x=useId(),S=useRef(null),[w,y]=useState(false),[b,k]=useState([]),[D,T]=useState(null),m=!!p||!!D,C=typeof p=="string"?p:D??void 0,v=useCallback(B=>{let H=Array.from(B);if(T(null),a){let L=H.find(O=>O.size>a);if(L){T(`Soubor \u201E${L.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${Ro(a)}.`);return}}let A=H.map(L=>({file:L,id:`file-${++Ms}`})),N=o?[...b,...A]:A;k(N),t?.(N.map(L=>L.file));},[b,a,o,t]),R=useCallback(B=>{B.preventDefault(),y(false),!n&&B.dataTransfer.files.length>0&&v(B.dataTransfer.files);},[n,v]),E=useCallback(B=>{let H=b.filter(A=>A.id!==B);k(H),t?.(H.map(A=>A.file));},[b,t]),P={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:d.label,userSelect:"none"},F={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${m?d.borderError:w?d.borderDrag:d.border}`,borderRadius:"8px",backgroundColor:w?d.backgroundDrag:n?d.backgroundDisabled:d.background,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:n?.5:1},I={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...h},className:c,children:[i&&jsx("span",{style:P,children:i}),jsx("input",{ref:S,id:x,type:"file",accept:r,multiple:o,disabled:n,onChange:B=>{B.target.files&&B.target.files.length>0&&v(B.target.files),B.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxs("div",{style:F,onClick:()=>!n&&S.current?.click(),onDragOver:B=>{B.preventDefault(),n||y(true);},onDragLeave:()=>y(false),onDrop:R,children:[jsx(UploadSimple,{size:32,color:d.textSecondary}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:d.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):s==="primary"?jsxs("button",{type:"button",disabled:n,onClick:()=>!n&&S.current?.click(),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"8px 16px",borderRadius:"8px",border:"1px solid transparent",backgroundColor:"#FC4F00",color:"#ffffff",opacity:n?.5:1,cursor:n?"not-allowed":"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",transition:"background-color 0.15s ease",boxSizing:"border-box",outline:"none",maxWidth:"100%"},onMouseEnter:B=>{n||(B.currentTarget.style.backgroundColor="#FF6D2A");},onMouseLeave:B=>{B.currentTarget.style.backgroundColor="#FC4F00";},children:[jsx(UploadSimple,{size:16,color:"#ffffff",style:{flexShrink:0}}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:u||(b.length===0?"Nahr\xE1t soubor":b.length===1?b[0].file.name:`${b.length} soubor\u016F`)})]}):jsxs("div",{onClick:()=>!n&&S.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${m?d.borderError:d.border}`,backgroundColor:n?d.backgroundDisabled:d.background,opacity:n?.5:1,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease",boxSizing:"border-box"},onMouseEnter:B=>{n||(B.currentTarget.style.borderColor=m?d.borderError:g==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:B=>{B.currentTarget.style.borderColor=m?d.borderError:d.border;},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:d.textSecondary},children:b.length>0?jsx(FileText,{size:18,color:d.textSecondary}):jsx(UploadSimple,{size:18,color:d.textSecondary})}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:b.length>0?d.text:d.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:u||(b.length===0?"Vyberte soubor...":b.length===1?b[0].file.name:`${b.length} soubor\u016F`)}),b.length===1&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:d.textSecondary,flexShrink:0},children:Ro(b[0].file.size)}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:d.textSecondary},children:jsx(Folder,{size:16,color:d.textSecondary})})]}),f&&b.length>0&&jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:b.map(B=>jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:d.fileBg},children:[jsx(FileText,{size:24,color:d.textSecondary}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:d.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:B.file.name}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:d.textSecondary,flexShrink:0},children:Ro(B.file.size)}),jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${B.file.name}`,onClick:H=>{H.stopPropagation(),E(B.id);},onKeyDown:H=>{(H.key==="Enter"||H.key===" ")&&E(B.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsx(X,{size:14,color:d.removeColor})})]},B.id))}),C&&jsx("span",{style:{...I,color:d.borderError},children:C}),!C&&l&&jsx("span",{style:{...I,color:d.helperText},children:l})]})};tn.displayName="FileUpload";var Ls={dark:{bg:"rgba(255,255,255,0.06)",border:"rgba(255,255,255,0.08)",text:"rgba(255,255,255,0.55)",textHover:"rgba(255,255,255,0.8)",textActive:"#ffffff",textDisabled:"rgba(255,255,255,0.25)",indicator:"#FC4F00",indicatorBorder:"rgba(255,255,255,0.05)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.3)"},light:{bg:"rgba(0,0,0,0.04)",border:"rgba(0,0,0,0.06)",text:"rgba(0,0,0,0.45)",textHover:"rgba(0,0,0,0.7)",textActive:"#ffffff",textDisabled:"rgba(0,0,0,0.2)",indicator:"#FC4F00",indicatorBorder:"rgba(0,0,0,0.03)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.2)"}},Ns={sm:{padding:"4px",itemPadding:"4px 10px",fontSize:"12px",borderRadius:"6px",itemRadius:"4px"},md:{padding:"4px",itemPadding:"6px 14px",fontSize:"13px",borderRadius:"8px",itemRadius:"6px"},lg:{padding:"5px",itemPadding:"8px 18px",fontSize:"14px",borderRadius:"10px",itemRadius:"7px"}},$s=({data:e,value:t,onChange:r,size:o="md",fullWidth:a=false,orientation:n="horizontal",disabled:i=false,className:l,style:p})=>{let s=z(),f=Ls[s],u=Ns[o],c=n==="vertical",h=e.map(b=>typeof b=="string"?{value:b,label:b}:b),g=h.findIndex(b=>b.value===t),d=useRef(null),x=useRef([]),[S,w]=useState({offset:0,size:0}),y=useCallback(()=>{let b=d.current,k=x.current[g];if(!b||!k||g<0)return;let D=b.getBoundingClientRect(),T=k.getBoundingClientRect();w(c?{offset:T.top-D.top,size:T.height}:{offset:T.left-D.left,size:T.width});},[g,c]);return useEffect(()=>{y();},[y,t,e,o]),useEffect(()=>(window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)),[y]),jsxs("div",{ref:d,role:"radiogroup",className:l,style:{position:"relative",display:"inline-flex",width:a?"100%":void 0,flexDirection:c?"column":"row",backgroundColor:f.bg,border:`1px solid ${f.border}`,borderRadius:u.borderRadius,padding:u.padding,boxSizing:"border-box",opacity:i?.5:1,cursor:i?"not-allowed":void 0,...p},children:[g>=0&&S.size>0&&jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:u.itemRadius,backgroundColor:f.indicator,border:`1px solid ${f.indicatorBorder}`,boxShadow:f.indicatorShadow,transition:"all 180ms cubic-bezier(0.16, 1, 0.3, 1)",pointerEvents:"none",zIndex:0,...c?{left:u.padding,right:u.padding,top:S.offset,height:S.size}:{top:u.padding,bottom:u.padding,left:S.offset,width:S.size}}}),h.map((b,k)=>{let D=b.value===t,T=i||b.disabled;return jsxs("button",{ref:m=>{x.current[k]=m;},type:"button",role:"radio","aria-checked":D,disabled:T,onClick:()=>{T||r(b.value);},style:{position:"relative",zIndex:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",flex:a?1:void 0,padding:u.itemPadding,border:"0 none",borderStyle:"none",outline:"none",borderRadius:u.itemRadius,backgroundColor:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,fontWeight:D?500:400,color:T?f.textDisabled:D?f.textActive:f.text,cursor:T?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:m=>{!T&&!D&&(m.currentTarget.style.color=f.textHover);},onMouseLeave:m=>{!T&&!D&&(m.currentTarget.style.color=f.text);},children:[b.icon&&jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0},children:b.icon}),(b.label||!b.icon&&b.value)&&jsx("span",{children:b.label??b.value})]},b.value)})]})};$s.displayName="SegmentedControl";var Ys={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",popoverBg:"rgba(24,24,24,0.95)",popoverBorder:"rgba(255,255,255,0.12)",swatchBorder:"rgba(255,255,255,0.2)",swatchHover:"rgba(255,255,255,0.12)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",popoverBg:"rgba(255,255,255,0.95)",popoverBorder:"rgba(0,0,0,0.1)",swatchBorder:"rgba(0,0,0,0.15)",swatchHover:"rgba(0,0,0,0.06)"}},Eo=180,Vs=["#FC4F00","#FF6D2A","#EF3838","#E8612D","#00A205","#2196F3","#9C27B0","#FF9800","#F44336","#4CAF50","#03A9F4","#E91E63","#FFC107","#8BC34A","#00BCD4","#673AB7","#795548","#607D8B","#000000","#ffffff"],Do=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),Us=e=>{let t=e.replace(/[^0-9A-Fa-f#]/g,"");return t.startsWith("#")?t.slice(0,7):`#${t.slice(0,6)}`},qs=e=>{let t=e.replace("#",""),r=parseInt(t.length===3?t[0]+t[0]:t.slice(0,2),16),o=parseInt(t.length===3?t[1]+t[1]:t.slice(2,4),16),a=parseInt(t.length===3?t[2]+t[2]:t.slice(4,6),16);return (r*299+o*587+a*114)/1e3>150},Gs=({value:e,onChange:t,presets:r=Vs,label:o,disabled:a=false,style:n,className:i})=>{let l=z(),p=Ys[l],f=useId(),u=useRef(null),c=useRef(null),[h,g]=useState(false),[d,x]=useState(false),[S,w]=useState("idle"),[y,b]=useState(e),[k,D]=useState(false),[T,m]=useState({top:0,left:0,openAbove:false});useEffect(()=>{k||b(e);},[e,k]);let C=useCallback(()=>{a||(g(true),x(true),w("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>w("open"));}));},[a]),v=useCallback(()=>{g(false),w("closing");let L=setTimeout(()=>{x(false),w("idle");},Eo);return ()=>clearTimeout(L)},[]),R=useCallback(()=>{if(!u.current)return;let L=u.current.getBoundingClientRect(),O=220,W=window.innerHeight-L.bottom-8,q=W<O&&L.top>W;m({top:q?L.top-8:L.bottom+8,left:L.left,openAbove:q});},[]);useEffect(()=>{if(d)return R(),window.addEventListener("scroll",R,true),window.addEventListener("resize",R),()=>{window.removeEventListener("scroll",R,true),window.removeEventListener("resize",R);}},[d,R]),useEffect(()=>{if(!h)return;let L=O=>{let W=O.target;!u.current?.contains(W)&&!c.current?.contains(W)&&v();};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[h,v]);let E=L=>{let O=Us(L.target.value);b(O),Do(O)&&t(O);},P=()=>{D(false),Do(y)?t(y):b(e);},F=L=>{t(L),b(L),v();},I=()=>{let L=T.openAbove,O=L?"translateY(8px)":"translateY(-8px)",W=L?"translateY(6px)":"translateY(-6px)",q={transition:`opacity ${Eo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Eo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return S==="opening"||S==="idle"?{...q,opacity:0,transform:`${O} scale(0.97)`}:S==="open"?{...q,opacity:1,transform:"translateY(0) scale(1)"}:{...q,opacity:0,transform:`${W} scale(0.98)`,pointerEvents:"none"}},B={display:"flex",alignItems:"center",gap:"10px",backgroundColor:a?p.backgroundDisabled:p.background,border:`1px solid ${k?p.borderFocus:p.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:a?.6:1,cursor:a?"not-allowed":"pointer"},H={width:"24px",height:"24px",borderRadius:"6px",backgroundColor:Do(e)?e:"#cccccc",border:`1px solid ${p.swatchBorder}`,flexShrink:0,cursor:a?"not-allowed":"pointer",transition:"transform 0.12s ease"},A={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},N=d?createPortal(jsx("div",{ref:c,style:{position:"fixed",...T.openAbove?{bottom:window.innerHeight-T.top,left:T.left}:{top:T.top,left:T.left},backgroundColor:p.popoverBg,border:`1px solid ${p.popoverBorder}`,borderRadius:"12px",boxShadow:l==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,padding:"12px",boxSizing:"border-box",transformOrigin:T.openAbove?"bottom left":"top left",...I()},children:jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:r.map((L,O)=>jsx("button",{type:"button","aria-label":`Vybrat barvu ${L}`,onClick:()=>F(L),style:{width:"32px",height:"32px",borderRadius:"6px",backgroundColor:L,border:L===e?"2px solid #FC4F00":`1px solid ${p.swatchBorder}`,cursor:"pointer",padding:0,transition:"transform 0.12s ease, border-color 0.12s ease",outline:"none"},onMouseEnter:W=>{W.currentTarget.style.transform="scale(1.1)";},onMouseLeave:W=>{W.currentTarget.style.transform="scale(1)";}},`${L}-${O}`))})}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...n},className:i,children:[o&&jsx("label",{htmlFor:f,style:A,children:o}),jsxs("div",{ref:u,style:B,children:[jsx("div",{style:H,onClick:()=>{a||(h?v():C());}}),jsx("input",{id:f,type:"text",value:y,onChange:E,onFocus:()=>D(true),onBlur:P,disabled:a,maxLength:7,style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"normal",color:p.text,cursor:a?"not-allowed":"text"}}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:p.placeholder,cursor:a?"not-allowed":"pointer"},onClick:()=>{a||(h?v():C());},children:jsx(Eyedropper,{size:16,color:(qs(e)&&l==="light",p.placeholder)})})]}),N]})};Gs.displayName="ColorPicker";var js={dark:{text:"#ffffff",label:"#ffffff",starFilled:"#FC4F00",starEmpty:"rgba(255,255,255,0.2)",starHover:"#FF6D2A"},light:{text:"#1a1a1a",label:"#1a1a1a",starFilled:"#FC4F00",starEmpty:"rgba(0,0,0,0.15)",starHover:"#FF6D2A"}},Js={sm:{starSize:18,gap:"2px"},md:{starSize:24,gap:"4px"},lg:{starSize:32,gap:"6px"}},Qs=({value:e,onChange:t,max:r=5,size:o="md",readOnly:a=false,label:n,style:i,className:l})=>{let p=z(),s=js[p],f=useId(),u=Js[o],[c,h]=useState(null),g=!a&&!!t,d=useCallback(b=>{g&&t(b+1);},[g,t]),x=useCallback(b=>{g&&h(b);},[g]),S=useCallback(()=>{h(null);},[]),w={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},y=Array.from({length:r},(b,k)=>{let D=c!==null?c+1:e,T=k<D,m=c!==null&&k<=c;return jsx("span",{role:g?"button":void 0,tabIndex:g?0:void 0,"aria-label":g?`Hodnocen\xED ${k+1} z ${r}`:void 0,onClick:()=>d(k),onMouseEnter:()=>x(k),onMouseLeave:S,onKeyDown:C=>{g&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),d(k));},style:{display:"inline-flex",cursor:g?"pointer":"default",transition:"transform 0.12s ease, color 0.12s ease",transform:m?"scale(1.15)":"scale(1)",outline:"none"},children:jsx(Star,{size:u.starSize,weight:T?"fill":"regular",color:T?m?s.starHover:s.starFilled:s.starEmpty})},k)});return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...i},className:l,role:"group","aria-label":n??"Hodnocen\xED",children:[n&&jsx("label",{htmlFor:f,style:w,children:n}),jsx("div",{style:{display:"flex",alignItems:"center",gap:u.gap},onMouseLeave:S,children:y})]})};Qs.displayName="Rating";var si={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",backgroundFilled:"rgba(3,3,3,0.85)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",borderFilled:"rgba(255,255,255,0.5)",text:"#ffffff",label:"#ffffff",caret:"#FC4F00"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",backgroundFilled:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",borderFilled:"rgba(0,0,0,0.35)",text:"#1a1a1a",label:"#1a1a1a",caret:"#FC4F00"}},ii=({length:e=6,value:t,onChange:r,error:o,disabled:a=false,autoFocus:n=false,label:i,separatorAfter:l,separator:p="-",style:s,className:f})=>{let u=z(),c=si[u],h=useId(),g=useRef([]),[d,x]=useState(null),S=!!o,w=typeof o=="string"?o:void 0,y=t.padEnd(e,"").slice(0,e).split("");useEffect(()=>{n&&g.current[0]&&g.current[0].focus();},[n]);let b=useCallback(F=>{F>=0&&F<e&&g.current[F]?.focus();},[e]),k=useCallback(F=>{let I=F.join("").replace(/[^0-9]/g,"");r(I);},[r]),D=useCallback((F,I)=>{if(!/^[0-9]$/.test(I))return;let B=[...y];B[F]=I,k(B),F<e-1&&b(F+1);},[y,e,k,b]),T=useCallback((F,I)=>{switch(I.key){case "Backspace":if(I.preventDefault(),y[F]){let B=[...y];B[F]="",k(B);}else if(F>0){let B=[...y];B[F-1]="",k(B),b(F-1);}break;case "Delete":I.preventDefault();{let B=[...y];B[F]="",k(B);}break;case "ArrowLeft":I.preventDefault(),F>0&&b(F-1);break;case "ArrowRight":I.preventDefault(),F<e-1&&b(F+1);break}},[y,e,k,b]),m=useCallback((F,I)=>{let H=I.target.value.slice(-1);H&&/^[0-9]$/.test(H)&&D(F,H);},[D]),C=useCallback(F=>{F.preventDefault();let I=F.clipboardData.getData("text").replace(/[^0-9]/g,"").slice(0,e);if(!I)return;let B=[...y];for(let A=0;A<I.length;A++)B[A]=I[A];k(B);let H=Math.min(I.length,e-1);b(H);},[y,e,k,b]),v=useCallback(F=>{x(F),g.current[F]?.select();},[]),R=useCallback(()=>{x(null);},[]),E={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none"},P=F=>{let I=d===F,B=!!y[F];return {width:"44px",height:"52px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"20px",lineHeight:"normal",color:c.text,textAlign:"center",backgroundColor:a?c.backgroundDisabled:B?c.backgroundFilled:c.background,border:`1px solid ${S?c.borderError:I?c.borderFocus:B?c.borderFilled:c.border}`,borderRadius:"8px",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.6:1,cursor:a?"not-allowed":"text",caretColor:c.caret}};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...s},className:f,children:[i&&jsx("label",{htmlFor:`${h}-0`,style:E,children:i}),jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},onPaste:C,children:Array.from({length:e},(F,I)=>jsxs(Po.Fragment,{children:[l&&I>0&&I%l===0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"20px",fontWeight:500,color:c.text,userSelect:"none",lineHeight:"normal",opacity:a?.6:.5,padding:"0 2px"},children:p}),jsx("input",{ref:B=>{g.current[I]=B;},id:`${h}-${I}`,type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:2,value:y[I]||"",onChange:B=>m(I,B),onKeyDown:B=>T(I,B),onFocus:()=>v(I),onBlur:R,disabled:a,"aria-label":`\u010C\xEDslice ${I+1} z ${e}`,style:P(I)})]},I))}),w&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:c.borderError,lineHeight:"normal"},children:w})]})};ii.displayName="OTPInput";var li={dark:{base:"rgba(255,255,255,0.06)",shimmer:"rgba(255,255,255,0.13)"},light:{base:"rgba(0,0,0,0.06)",shimmer:"rgba(0,0,0,0.11)"}},dn="smSkeletonShimmer",ci=`@keyframes ${dn}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,nt=({variant:e="text",width:t,height:r,lines:o=1,animate:a=true,className:n,style:i})=>{let l=z(),p=li[l],s=t??(e==="circle"?40:"100%"),f=r??(e==="circle"?40:e==="text"?"1em":100),u={backgroundColor:p.base,backgroundImage:a?`linear-gradient(90deg, ${p.base} 25%, ${p.shimmer} 50%, ${p.base} 75%)`:void 0,backgroundSize:a?"200% 100%":void 0,animation:a?`${dn} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof s=="number"?`${s}px`:s,height:typeof f=="number"?`${f}px`:f},c=a?jsx("style",{dangerouslySetInnerHTML:{__html:ci}}):null;return e==="text"&&o>1?jsxs("div",{className:n,style:{display:"flex",flexDirection:"column",gap:"8px",...i},children:[c,Array.from({length:o}).map((h,g)=>jsx("div",{style:{...u,width:g===o-1?"75%":u.width}},g))]}):jsxs(Fragment,{children:[c,jsx("div",{className:n,style:{...u,...i}})]})};nt.displayName="Skeleton";var fi={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",rowHover:"rgba(255,255,255,0.04)",stripedBg:"rgba(255,255,255,0.06)",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",rowHover:"rgba(0,0,0,0.03)",stripedBg:"rgba(0,0,0,0.04)",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)"}},ui=({columns:e,data:t,loading:r=false,emptyText:o="\u017D\xE1dn\xE1 data",onSort:a,sortKey:n,sortDirection:i,striped:l=false,hoverable:p=true,className:s,style:f})=>{let u=z(),c=fi[u],h=w=>{if(!w.sortable||!a)return;let y=n===w.key&&i==="asc"?"desc":"asc";a(w.key,y);},g={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.text,backgroundColor:c.background,border:`1px solid ${c.border}`,borderRadius:"12px",overflow:"hidden",...f},d=w=>({padding:"12px 16px",textAlign:"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:c.textSecondary,backgroundColor:c.headerBg,borderBottom:`1px solid ${c.border}`,whiteSpace:"nowrap",cursor:w.sortable?"pointer":"default",userSelect:"none",width:w.width!=null?typeof w.width=="number"?`${w.width}px`:w.width:void 0}),x={padding:"10px 16px",borderBottom:`1px solid ${c.border}`,lineHeight:"normal"};return jsxs("table",{className:s,style:g,children:[jsx("thead",{children:jsx("tr",{children:e.map(w=>jsx("th",{style:d(w),onClick:()=>h(w),children:jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[w.header,w.sortable&&jsx(CaretUpDownIcon,{size:14,color:n===w.key?c.sortActive:c.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},w.key))})}),jsx("tbody",{children:r?Array.from({length:5}).map((w,y)=>jsx("tr",{children:e.map(b=>jsx("td",{style:x,children:jsx(nt,{variant:"text",width:"80%"})},b.key))},`skel-${y}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length,style:{...x,textAlign:"center",padding:"32px 16px",color:c.textSecondary,borderBottom:"none"},children:o})}):t.map((w,y)=>jsx("tr",{style:{backgroundColor:l&&y%2===1?c.stripedBg:"transparent",transition:"background-color 0.12s ease"},onMouseEnter:b=>{p&&(b.currentTarget.style.backgroundColor=c.rowHover);},onMouseLeave:b=>{p&&(b.currentTarget.style.backgroundColor=l&&y%2===1?c.stripedBg:"transparent");},children:e.map(b=>jsx("td",{style:{...x,borderBottom:y===t.length-1?"none":x.borderBottom},children:b.render?b.render(w[b.key],w,y):w[b.key]},b.key))},y))})]})};ui.displayName="Table";var bi={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",rowHover:"rgba(255,255,255,0.04)",selectedRowBg:"rgba(252,79,0,0.06)",checkboxBorder:"rgba(255,255,255,0.3)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",rowHover:"rgba(0,0,0,0.03)",selectedRowBg:"rgba(252,79,0,0.04)",checkboxBorder:"rgba(0,0,0,0.25)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"}},gn=({checked:e,indeterminate:t,onChange:r,t:o})=>{let a=e||t;return jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:n=>{n.stopPropagation(),r();},onKeyDown:n=>{(n.key===" "||n.key==="Enter")&&(n.preventDefault(),r());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"4px",border:`1.5px solid ${a?o.checkboxCheckedBorder:o.checkboxBorder}`,backgroundColor:a?o.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsx("path",{d:"M2 5L4.2 7.5L8 2.5",stroke:o.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsx("line",{x1:"2",y1:"5",x2:"8",y2:"5",stroke:o.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]})},xi=({columns:e,data:t,selectable:r=false,onSelectionChange:o,loading:a=false,rowKey:n="id",onRowClick:i,stickyHeader:l=false,emptyText:p="\u017D\xE1dn\xE1 data",style:s,className:f})=>{let u=z(),c=bi[u],[h,g]=useState(new Set),[d,x]=useState(null),S=useMemo(()=>t.map(E=>String(E[n])),[t,n]),w=S.length>0&&S.every(E=>h.has(E)),y=S.some(E=>h.has(E))&&!w,b=useCallback(()=>{let E=w?new Set:new Set(S);g(E),o?.(Array.from(E));},[w,S,o]),k=useCallback(E=>{g(P=>{let F=new Set(P);return F.has(E)?F.delete(E):F.add(E),o?.(Array.from(F)),F});},[o]),D={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.text,backgroundColor:c.background},T=E=>({padding:"12px 16px",textAlign:E.align||"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:c.textSecondary,backgroundColor:c.headerBg,borderBottom:`1px solid ${c.border}`,whiteSpace:"nowrap",userSelect:"none",width:E.width!=null?typeof E.width=="number"?`${E.width}px`:E.width:void 0,minWidth:E.minWidth!=null?`${E.minWidth}px`:void 0,...l?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}}),m=E=>({padding:"10px 16px",borderBottom:`1px solid ${c.border}`,lineHeight:"normal",textAlign:E.align||"left"}),C={padding:"12px 12px 12px 16px",backgroundColor:c.headerBg,borderBottom:`1px solid ${c.border}`,width:"40px",...l?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}},v={padding:"10px 12px 10px 16px",borderBottom:`1px solid ${c.border}`,width:"40px"};return jsx("div",{className:f,style:{overflow:l?"auto":"hidden",borderRadius:"12px",border:`1px solid ${c.border}`,...s},children:jsxs("table",{style:D,children:[jsx("thead",{children:jsxs("tr",{children:[r&&jsx("th",{style:C,children:jsx(gn,{checked:w,indeterminate:y,onChange:b,t:c})}),e.map(E=>jsx("th",{style:T(E),children:E.header},E.key))]})}),jsx("tbody",{children:a?Array.from({length:5}).map((E,P)=>jsxs("tr",{children:[r&&jsx("td",{style:v,children:jsx(nt,{variant:"rect",width:16,height:16})}),e.map(F=>jsx("td",{style:m(F),children:jsx(nt,{variant:"text",width:"80%"})},F.key))]},`skel-${P}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length+(r?1:0),style:{textAlign:"center",padding:"32px 16px",color:c.textSecondary,borderBottom:"none"},children:p})}):t.map((E,P)=>{let F=String(E[n]),I=h.has(F),B=d===F,H=P===t.length-1,A="transparent";return I?A=c.selectedRowBg:B&&(A=c.rowHover),jsxs("tr",{style:{backgroundColor:A,cursor:i?"pointer":"default",transition:"background-color 0.12s ease"},onMouseEnter:()=>x(F),onMouseLeave:()=>x(null),onClick:()=>i?.(E),children:[r&&jsx("td",{style:{...v,borderBottom:H?"none":v.borderBottom},children:jsx(gn,{checked:I,onChange:()=>k(F),t:c})}),e.map(N=>jsx("td",{style:{...m(N),borderBottom:H?"none":m(N).borderBottom},children:N.render?N.render(E[N.key],E,P):E[N.key]},N.key))]},F)})})]})})};xi.displayName="DataGrid";var mi={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.12)",borderHover:"rgba(255,255,255,0.25)",text:"#ffffff",textSecondary:"#ACACAC",divider:"rgba(255,255,255,0.08)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.1)",borderHover:"rgba(0,0,0,0.2)",text:"#1a1a1a",textSecondary:"#888888",divider:"rgba(0,0,0,0.06)"}},hi={none:"0",sm:"12px",md:"20px",lg:"28px"},yi=({title:e,subtitle:t,header:r,footer:o,children:a,hoverable:n=false,bordered:i=true,padding:l="md",className:p,style:s})=>{let f=z(),u=mi[f],c=hi[l],h={backgroundColor:u.background,border:i?`1px solid ${u.border}`:"none",borderRadius:"12px",overflow:"hidden",transition:"border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease",cursor:n?"pointer":void 0,...s},g=r??(e||t?jsxs("div",{style:{padding:c,paddingBottom:a||o?"0":c},children:[e&&jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"normal",color:u.text},children:e}),t&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:u.textSecondary,marginTop:"4px"},children:t})]}):null);return jsxs("div",{className:p,style:h,onMouseEnter:d=>{n&&(d.currentTarget.style.borderColor=u.borderHover,d.currentTarget.style.transform="translateY(-2px)",d.currentTarget.style.boxShadow=f==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:d=>{n&&(d.currentTarget.style.borderColor=i?u.border:"transparent",d.currentTarget.style.transform="translateY(0)",d.currentTarget.style.boxShadow="none");},children:[g,a&&jsx("div",{style:{padding:c},children:a}),o&&jsxs(Fragment,{children:[jsx("div",{style:{borderTop:`1px solid ${u.divider}`}}),jsx("div",{style:{padding:c},children:o})]})]})};yi.displayName="Card";var mn={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",chevron:"#ACACAC",chevronDisabled:"rgba(255,255,255,0.2)",hoverBg:"rgba(255,255,255,0.03)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.06)",text:"#1a1a1a",textSecondary:"#888888",textDisabled:"rgba(0,0,0,0.25)",chevron:"#888888",chevronDisabled:"rgba(0,0,0,0.15)",hoverBg:"rgba(0,0,0,0.02)"}},Ri=({title:e,children:t,defaultOpen:r=false,disabled:o=false,_controlled:a,_open:n,_onToggle:i})=>{let l=z(),p=mn[l],[s,f]=useState(r),u=a?!!n:s,c=useRef(null),[h,g]=useState(0);useEffect(()=>{c.current&&g(c.current.scrollHeight);},[t,u]);let d=useCallback(()=>{o||(a&&i?i():f(x=>!x));},[o,a,i]);return jsxs("div",{style:{borderBottom:`1px solid ${p.border}`},children:[jsxs("button",{type:"button",disabled:o,onClick:d,style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"14px 16px",border:"none",background:"transparent",cursor:o?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"15px",fontWeight:500,color:o?p.textDisabled:p.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:x=>{o||(x.currentTarget.style.backgroundColor=p.hoverBg);},onMouseLeave:x=>{x.currentTarget.style.backgroundColor="transparent";},children:[jsx("span",{children:e}),jsx(CaretDownIcon,{size:16,color:o?p.chevronDisabled:p.chevron,style:{transition:"transform 0.25s ease",transform:u?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsx("div",{ref:c,style:{overflow:"hidden",maxHeight:u?`${h}px`:"0px",transition:"max-height 0.25s ease"},children:jsx("div",{style:{padding:"10px 16px 16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:p.textSecondary},children:t})})]})};Ri.displayName="AccordionItem";var wi=({children:e,multiple:t=false,className:r,style:o})=>{let a=z(),n=mn[a],i=Po.Children.toArray(e).filter(f=>Po.isValidElement(f)),[l,p]=useState(()=>{let f=new Set;return i.forEach((u,c)=>{u.props.defaultOpen&&f.add(c);}),f}),s=useCallback(f=>{p(u=>{let c=new Set(u);return c.has(f)?c.delete(f):(t||c.clear(),c.add(f)),c});},[t]);return jsx("div",{className:r,style:{backgroundColor:n.background,border:`1px solid ${n.border}`,borderRadius:"12px",overflow:"hidden",...o},children:i.map((f,u)=>Po.cloneElement(f,{key:u,_controlled:true,_open:l.has(u),_onToggle:()=>s(u)}))})};wi.displayName="Accordion";var Ti={dark:{text:"#ffffff",textInactive:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",border:"rgba(255,255,255,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(255,255,255,0.04)"},light:{text:"#1a1a1a",textInactive:"#888888",textDisabled:"rgba(0,0,0,0.25)",border:"rgba(0,0,0,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(0,0,0,0.03)"}},Fi={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},Ei=()=>null;Ei.displayName="Tab";var Di=()=>null;Di.displayName="TabPanel";var zi=({value:e,onChange:t,children:r,variant:o="underline",fullWidth:a=false,size:n="md",className:i,style:l})=>{let p=z(),s=Ti[p],f=Fi[n],u=Po.Children.toArray(r),c=u.filter(d=>Po.isValidElement(d)&&d.type?.displayName==="Tab"),g=u.filter(d=>Po.isValidElement(d)&&d.type?.displayName==="TabPanel").find(d=>d.props.value===e);return jsxs("div",{className:i,style:l,children:[jsx("div",{style:{display:"flex",gap:o==="pills"?"4px":"0",borderBottom:o==="underline"?`1px solid ${s.border}`:"none"},children:c.map(d=>{let x=d.props.value===e,S=d.props.disabled,w=o==="underline"?{padding:f.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:x?500:400,color:S?s.textDisabled:x?s.text:s.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${x?s.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:S?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, border-color 0.15s ease",flex:a?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"}:{padding:f.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:x?500:400,color:S?s.textDisabled:x?s.pillText:s.textInactive,backgroundColor:x?s.pillBg:s.pillInactiveBg,border:"none",borderRadius:"8px",cursor:S?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, background-color 0.15s ease",flex:a?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"};return jsxs("button",{type:"button",disabled:S,style:w,onClick:()=>{S||t(d.props.value);},onMouseEnter:y=>{!S&&!x&&(y.currentTarget.style.backgroundColor=s.hoverBg);},onMouseLeave:y=>{S||(y.currentTarget.style.backgroundColor=o==="pills"&&x?s.pillBg:"transparent");},children:[d.props.icon&&jsx("span",{style:{display:"flex",alignItems:"center"},children:d.props.icon}),d.props.label]},d.props.value)})}),g&&jsx("div",{style:{paddingTop:"16px"},children:g.props.children})]})};zi.displayName="Tabs";var Pi={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},Mi=({content:e,children:t,position:r="top",delay:o=200,className:a,style:n})=>{let i=z(),l=Pi[i],[p,s]=useState(false),[f,u]=useState({top:0,left:0}),c=useRef(null),h=useRef(null),g=useRef(void 0),d=6,x=8,S=useCallback(()=>{let D=c.current,T=h.current;if(!D||!T)return;let m=D.getBoundingClientRect(),C=T.getBoundingClientRect(),v=0,R=0;switch(r){case "top":v=m.top-C.height-x,R=m.left+m.width/2-C.width/2;break;case "bottom":v=m.bottom+x,R=m.left+m.width/2-C.width/2;break;case "left":v=m.top+m.height/2-C.height/2,R=m.left-C.width-x;break;case "right":v=m.top+m.height/2-C.height/2,R=m.right+x;break}u({top:v,left:R});},[r]);useEffect(()=>{p&&requestAnimationFrame(S);},[p,S]);let w=useCallback(()=>{g.current=setTimeout(()=>s(true),o);},[o]),y=useCallback(()=>{g.current&&clearTimeout(g.current),s(false);},[]);useEffect(()=>()=>{g.current&&clearTimeout(g.current);},[]);let b=(()=>{let D={position:"absolute",width:0,height:0,border:`${d}px solid transparent`};switch(r){case "top":return {...D,bottom:-d,left:"50%",transform:"translateX(-50%)",borderTopColor:l.background,borderBottomWidth:0};case "bottom":return {...D,top:-d,left:"50%",transform:"translateX(-50%)",borderBottomColor:l.background,borderTopWidth:0};case "left":return {...D,right:-d,top:"50%",transform:"translateY(-50%)",borderLeftColor:l.background,borderRightWidth:0};case "right":return {...D,left:-d,top:"50%",transform:"translateY(-50%)",borderRightColor:l.background,borderLeftWidth:0}}})(),k=p?createPortal(jsxs("div",{ref:h,className:a,style:{position:"fixed",top:f.top,left:f.left,zIndex:99999,padding:"6px 12px",backgroundColor:l.background,color:l.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",borderRadius:"8px",whiteSpace:"nowrap",pointerEvents:"none",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",opacity:1,transition:"opacity 0.12s ease",...n},children:[e,jsx("div",{style:b})]}),document.body):null;return jsxs(Fragment,{children:[Po.cloneElement(t,{ref:c,onMouseEnter:D=>{w(),t.props.onMouseEnter?.(D);},onMouseLeave:D=>{y(),t.props.onMouseLeave?.(D);}}),k]})};Mi.displayName="Tooltip";var $i={dark:{background:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.12)",text:"#ffffff",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{background:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.1)",text:"#1a1a1a",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},Wo=180,qt=8,Wi=({content:e,children:t,position:r="bottom",trigger:o="click",className:a,style:n})=>{let i=z(),l=$i[i],[p,s]=useState(false),[f,u]=useState(false),[c,h]=useState("idle"),[g,d]=useState({top:0,left:0}),x=useRef(null),S=useRef(null),w=useRef(void 0),y=useCallback(()=>{s(true),u(true),h("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>h("open"));});},[]),b=useCallback(()=>{s(false),h("closing");let R=setTimeout(()=>{u(false),h("idle");},Wo);return ()=>clearTimeout(R)},[]),k=useCallback(()=>{let R=x.current,E=S.current;if(!R||!E)return;let P=R.getBoundingClientRect(),F=E.getBoundingClientRect(),I=0,B=0;switch(r){case "top":I=P.top-F.height-qt,B=P.left+P.width/2-F.width/2;break;case "bottom":I=P.bottom+qt,B=P.left+P.width/2-F.width/2;break;case "left":I=P.top+P.height/2-F.height/2,B=P.left-F.width-qt;break;case "right":I=P.top+P.height/2-F.height/2,B=P.right+qt;break}d({top:I,left:B});},[r]);useEffect(()=>{if(f)return requestAnimationFrame(k),window.addEventListener("scroll",k,true),window.addEventListener("resize",k),()=>{window.removeEventListener("scroll",k,true),window.removeEventListener("resize",k);}},[f,k]),useEffect(()=>{if(!p)return;let R=E=>{let P=E.target;!x.current?.contains(P)&&!S.current?.contains(P)&&b();};return document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R)},[p,b]),useEffect(()=>{if(!p)return;let R=E=>{E.key==="Escape"&&b();};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[p,b]);let D=()=>{let R={transition:`opacity ${Wo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Wo}ms cubic-bezier(0.16, 1, 0.3, 1)`},E={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},P=r==="top"||r==="bottom"?"Y":"X";return c==="opening"||c==="idle"?{...R,opacity:0,transform:`translate${P}(${E[r]}) scale(0.97)`}:c==="open"?{...R,opacity:1,transform:"translateY(0) scale(1)"}:{...R,opacity:0,transform:`translate${P}(${E[r]}) scale(0.98)`,pointerEvents:"none"}},T=useCallback(()=>{o==="click"&&(p?b():y());},[o,p,b,y]),m=useCallback(()=>{o==="hover"&&(w.current&&clearTimeout(w.current),p||y());},[o,p,y]),C=useCallback(()=>{o==="hover"&&(w.current=setTimeout(()=>{b();},150));},[o,b]);useEffect(()=>()=>{w.current&&clearTimeout(w.current);},[]);let v=f?createPortal(jsx("div",{ref:S,className:a,onMouseEnter:()=>{o==="hover"&&w.current&&clearTimeout(w.current);},onMouseLeave:C,style:{position:"fixed",top:g.top,left:g.left,zIndex:99999,padding:"16px",backgroundColor:l.background,border:`1px solid ${l.border}`,borderRadius:"12px",color:l.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",boxShadow:l.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",minWidth:"120px",...D(),...n},children:e}),document.body):null;return jsxs(Fragment,{children:[Po.cloneElement(t,{ref:x,onClick:R=>{T(),t.props.onClick?.(R);},onMouseEnter:R=>{m(),t.props.onMouseEnter?.(R);},onMouseLeave:R=>{C(),t.props.onMouseLeave?.(R);}}),v]})};Wi.displayName="Popover";var Vi={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},Ui=({icon:e,title:t,description:r,action:o,className:a,style:n})=>{let i=z(),l=Vi[i];return jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"48px 24px",gap:"12px",...n},children:[e&&jsx("div",{style:{fontSize:"48px",lineHeight:1,color:l.iconColor,marginBottom:"4px"},children:e}),jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"18px",lineHeight:"normal",color:l.text},children:t}),r&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:l.textSecondary,maxWidth:"360px"},children:r}),o&&jsx("div",{style:{marginTop:"8px"},children:o})]})};Ui.displayName="EmptyState";var Ki={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",label:"#ACACAC",trendUp:"#34C759",trendDown:"#EF3838",trendNeutral:"#ACACAC",iconColor:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#888888",trendUp:"#28A745",trendDown:"#EF3838",trendNeutral:"#888888",iconColor:"rgba(0,0,0,0.08)"}},Xi=({label:e,value:t,change:r,changeLabel:o,icon:a,trend:n="neutral",className:i,style:l})=>{let p=z(),s=Ki[p],f=n==="up"?s.trendUp:n==="down"?s.trendDown:s.trendNeutral,u=c=>`${c>0?"+":""}${c.toFixed(1)} %`;return jsxs("div",{className:i,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:s.background,border:`1px solid ${s.border}`,borderRadius:"12px",padding:"16px 20px",...l},children:[a&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"40px",height:"40px",borderRadius:"10px",backgroundColor:s.iconColor,flexShrink:0,color:s.text},children:a}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:s.label,lineHeight:"normal",marginBottom:"4px"},children:e}),jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:"24px",lineHeight:"normal",color:s.text},children:t}),r!==void 0&&jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:f},children:[n==="up"&&jsx(TrendUpIcon,{size:14,color:f}),n==="down"&&jsx(TrendDownIcon,{size:14,color:f}),jsx("span",{children:u(r)}),o&&jsx("span",{style:{color:s.label,marginLeft:"2px"},children:o})]})]})]})};Xi.displayName="Stat";var ji=e=>typeof e=="number"?e:{sm:40,md:70,lg:96}[e],yu=({initials:e,size:t="md",borderRadius:r="8px",style:o,className:a,"aria-label":n})=>{let i=ji(t),l={display:"inline-flex",alignItems:"center",justifyContent:"center",width:i,height:i,borderRadius:r,backgroundImage:"linear-gradient(128deg, #EC6608 0%, #F6540E 100%)",flexShrink:0,userSelect:"none",WebkitUserSelect:"none",...o},p={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:Math.round(i*.34),color:"#ffffff",textTransform:"uppercase",textAlign:"center",lineHeight:"normal",whiteSpace:"nowrap"};return jsx("div",{style:l,className:a,role:"img","aria-label":n??`Avatar ${e.toUpperCase()}`,children:jsx("span",{style:p,children:e.toUpperCase()})})};var Cn={dark:{tagBg:"#1e1e1e",tagBorder:"rgba(255,255,255,0.3)",tagText:"#ffffff",itemBg:"rgba(3,3,3,0.6)",itemBorder:"rgba(255,255,255,0.3)",itemText:"#ffffff",actionColor:"rgba(255,255,255,0.5)"},light:{tagBg:"#f0f0f0",tagBorder:"rgba(0,0,0,0.15)",tagText:"#1a1a1a",itemBg:"rgba(255,255,255,0.85)",itemBorder:"rgba(0,0,0,0.15)",itemText:"#1a1a1a",actionColor:"rgba(0,0,0,0.4)"}},Oo=({onClick:e,title:t,color:r,children:o})=>jsx("button",{type:"button",onClick:e,title:t,"aria-label":t,style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:r,width:16,height:16,flexShrink:0,transition:"opacity 0.15s ease"},children:o}),Ru=({label:e,onRemove:t,style:r,className:o})=>{let a=Cn[z()];return jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"4px 8px",backgroundColor:a.tagBg,border:`1px solid ${a.tagBorder}`,borderRadius:"4px",...r},className:o,children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:a.tagText,whiteSpace:"nowrap",lineHeight:"normal"},children:e}),t&&jsx("button",{type:"button",onClick:t,"aria-label":`Odebrat ${e}`,style:{display:"flex",alignItems:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:a.tagText,opacity:.6,fontSize:"8px",lineHeight:1},children:"\u2715"})]})},wu=({label:e,style:t,className:r})=>jsx("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 16px",backgroundColor:"rgba(246,84,14,0.8)",borderRadius:"12px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:"#ffffff",textTransform:"uppercase",whiteSpace:"nowrap",lineHeight:"normal",...t},className:r,children:e}),Tu=({label:e,onFilter:t,onEdit:r,onDelete:o,showActions:a=true,style:n,className:i})=>{let l=Cn[z()],p=t||r||o;return jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:l.itemBg,border:`1px solid ${l.itemBorder}`,borderRadius:"8px",...n},className:i,children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"16px",color:l.itemText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,lineHeight:"normal"},children:e}),a&&p&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsx(Oo,{onClick:t,title:"Filtrovat",color:l.actionColor,children:jsx(Funnel,{size:14,color:"currentColor"})}),r&&jsx(Oo,{onClick:r,title:"Upravit",color:l.actionColor,children:jsx(PencilSimple,{size:14,color:"currentColor"})}),o&&jsx(Oo,{onClick:o,title:"Smazat",color:l.actionColor,children:jsx(Trash,{size:14,color:"currentColor"})})]})]})};var rl={dark:{background:"rgba(3,3,3,0.75)",surface:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",hover:"rgba(255,255,255,0.06)",todayBg:"rgba(252,79,0,0.12)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(255,255,255,0.04)",outsideText:"rgba(255,255,255,0.2)",eventDot:"#FC4F00",navHover:"rgba(255,255,255,0.08)"},light:{background:"rgba(255,255,255,0.85)",surface:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",hover:"rgba(0,0,0,0.04)",todayBg:"rgba(252,79,0,0.08)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(0,0,0,0.02)",outsideText:"rgba(0,0,0,0.2)",eventDot:"#FC4F00",navHover:"rgba(0,0,0,0.06)"}},nl=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],Kt=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"],Vo=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),qo=e=>{let t=new Date(e),r=t.getDay(),o=(r===0?-6:1)-r;return t.setDate(t.getDate()+o),t.setHours(0,0,0,0),t},al=(e,t)=>{let r=new Date(e,t,1),o=qo(r),a=[],n=new Date(o);for(let i=0;i<42;i++)a.push(new Date(n)),n.setDate(n.getDate()+1);return a},sl=e=>{let t=qo(e),r=[];for(let o=0;o<7;o++){let a=new Date(t);a.setDate(t.getDate()+o),r.push(a);}return r},il=(e,t,r)=>{if(t){let o=new Date(t);if(o.setHours(0,0,0,0),e<o)return true}if(r){let o=new Date(r);if(o.setHours(23,59,59,999),e>o)return true}return false},ll=({value:e,onChange:t,view:r="month",events:o=[],minDate:a,maxDate:n,style:i,className:l})=>{let p=z(),s=rl[p],f=useMemo(()=>{let v=new Date;return v.setHours(0,0,0,0),v},[]),[u,c]=useState(()=>e?e.getMonth():f.getMonth()),[h,g]=useState(()=>e?e.getFullYear():f.getFullYear()),[d,x]=useState(()=>qo(e||f)),[S,w]=useState(null),y=useMemo(()=>r==="week"?sl(d):al(h,u),[r,h,u,d]),b=useCallback(()=>{r==="week"?x(v=>{let R=new Date(v);return R.setDate(R.getDate()-7),R}):c(v=>v===0?(g(R=>R-1),11):v-1);},[r]),k=useCallback(()=>{r==="week"?x(v=>{let R=new Date(v);return R.setDate(R.getDate()+7),R}):c(v=>v===11?(g(R=>R+1),0):v+1);},[r]),D=v=>o.filter(R=>Vo(R.date,v)),T=r==="week"?(()=>{let v=new Date(d);return v.setDate(v.getDate()+6),d.getMonth()===v.getMonth()?`${d.getDate()}. \u2013 ${v.getDate()}. ${Kt[v.getMonth()]} ${v.getFullYear()}`:`${d.getDate()}. ${Kt[d.getMonth()].slice(0,3)} \u2013 ${v.getDate()}. ${Kt[v.getMonth()].slice(0,3)} ${v.getFullYear()}`})():`${Kt[u]} ${h}`,m={backgroundColor:s.background,border:`1px solid ${s.border}`,borderRadius:"12px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.text,overflow:"hidden",userSelect:"none",...i},C={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"transparent",color:s.text,cursor:"pointer",transition:"background-color 0.12s ease"};return jsxs("div",{className:l,style:m,children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:s.headerBg,borderBottom:`1px solid ${s.border}`},children:[jsx("button",{style:C,onClick:b,onMouseEnter:v=>{v.currentTarget.style.backgroundColor=s.navHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},"aria-label":"P\u0159edchoz\xED",children:jsx(CaretLeftIcon,{size:16})}),jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px"},children:T}),jsx("button",{style:C,onClick:k,onMouseEnter:v=>{v.currentTarget.style.backgroundColor=s.navHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},"aria-label":"Dal\u0161\xED",children:jsx(CaretRightIcon,{size:16})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"0",padding:"8px 12px 0"},children:nl.map(v=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:s.textMuted,padding:"6px 0 8px"},children:v},v))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",padding:"0 12px 12px"},children:y.map((v,R)=>{let E=Vo(v,f),P=e?Vo(v,e):false,F=r==="month"&&v.getMonth()!==u,I=il(v,a,n),B=v.toISOString(),H=S===B,A=D(v),N="transparent",L=F?s.outsideText:s.text,O="2px solid transparent";return P?(N=s.selectedBg,L=s.selectedText):E?(N=s.todayBg,O=`2px solid ${s.todayBorder}`):H&&!I&&(N=s.hover),I&&(L=s.textMuted),jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"1px",minHeight:"44px"},children:[jsx("button",{style:{width:"36px",height:"36px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",border:O,background:N,color:L,fontSize:"13px",fontWeight:E?600:400,fontFamily:"'Zalando Sans', sans-serif",cursor:I?"default":"pointer",opacity:I?.4:1,transition:"background-color 0.12s ease"},disabled:I,onClick:()=>{!I&&t&&t(v);},onMouseEnter:()=>!I&&w(B),onMouseLeave:()=>w(null),children:v.getDate()}),A.length>0&&jsx("div",{style:{display:"flex",gap:"3px",marginTop:"3px",height:"5px"},children:A.slice(0,3).map((W,q)=>jsx("div",{title:W.title,style:{width:"5px",height:"5px",borderRadius:"50%",backgroundColor:W.color||s.eventDot}},q))})]},R)})})]})};ll.displayName="Calendar";var cl={dark:{text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",line:"rgba(255,255,255,0.1)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.15)",iconBg:"rgba(252,79,0,0.12)",cardBg:"rgba(255,255,255,0.04)",cardBorder:"rgba(255,255,255,0.08)"},light:{text:"#1a1a1a",textSecondary:"#333333",textMuted:"#999999",line:"rgba(0,0,0,0.08)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.08)",iconBg:"rgba(252,79,0,0.06)",cardBg:"rgba(0,0,0,0.02)",cardBorder:"rgba(0,0,0,0.06)"}},dl=({items:e,orientation:t="vertical",style:r,className:o})=>{let a=z(),n=cl[a];return t==="horizontal"?jsx("div",{className:o,style:{display:"flex",alignItems:"flex-start",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:n.text,overflow:"auto",...r},children:e.map((i,l)=>{let p=l===e.length-1,s=i.color||n.dotBorder;return jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flex:p?"0 0 auto":"1 1 0",minWidth:"120px",position:"relative"},children:[jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",position:"relative"},children:[l>0&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:n.line}}),l===0&&jsx("div",{style:{flex:1}}),i.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:i.color?`${i.color}18`:n.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:s,flexShrink:0},children:i.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${s}`,backgroundColor:n.dotBg,flexShrink:0}}),!p&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:n.line}}),p&&jsx("div",{style:{flex:1}})]}),jsxs("div",{style:{textAlign:"center",paddingTop:"10px",maxWidth:"140px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"13px",lineHeight:"18px",display:"block"},children:i.title}),i.date&&jsx("span",{style:{fontSize:"11px",color:n.textMuted,display:"block",marginTop:"2px"},children:i.date}),i.description&&jsx("p",{style:{margin:"4px 0 0",fontSize:"12px",color:n.textSecondary,lineHeight:"16px"},children:i.description})]})]},l)})}):jsx("div",{className:o,style:{position:"relative",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:n.text,...r},children:e.map((i,l)=>{let p=l===e.length-1,s=i.color||n.dotBorder;return jsxs("div",{style:{display:"flex",position:"relative",paddingBottom:p?0:"4px",minHeight:i.icon?"36px":"28px"},children:[jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0,width:"32px",marginRight:"14px"},children:[i.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:i.color?`${i.color}18`:n.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:s,flexShrink:0},children:i.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${s}`,backgroundColor:n.dotBg,flexShrink:0,marginTop:"4px"}}),!p&&jsx("div",{style:{width:"2px",flex:1,backgroundColor:n.line,marginTop:"4px",minHeight:"8px"}})]}),jsxs("div",{style:{flex:1,minWidth:0,paddingTop:i.icon?"5px":0},children:[jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:"8px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px"},children:i.title}),i.date&&jsx("span",{style:{fontSize:"12px",color:n.textMuted,flexShrink:0},children:i.date})]}),i.description&&jsx("p",{style:{margin:"3px 0 0",fontSize:"13px",color:n.textSecondary,lineHeight:"18px"},children:i.description})]})]},l)})})};dl.displayName="Timeline";var pl={dark:{background:"transparent",text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",stripedBg:"rgba(255,255,255,0.04)"},light:{background:"transparent",text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",stripedBg:"rgba(0,0,0,0.02)"}},fl=({items:e,columns:t=1,striped:r=false,style:o,className:a})=>{let n=z(),i=pl[n],l=Math.max(1,Math.round(t)),p={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,display:l>1?"grid":"block",gridTemplateColumns:l>1?`repeat(${l}, 1fr)`:void 0,gap:l>1?"0 24px":void 0,...o},s=h=>l<=1?h:Math.floor(h/l),f=h=>({display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:"16px",padding:"10px 12px",borderBottom:`1px solid ${i.border}`,backgroundColor:r&&s(h)%2===1?i.stripedBg:i.background}),u={fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:500,color:i.textMuted,flexShrink:0,letterSpacing:"0.01em"},c={textAlign:"right",lineHeight:"20px",wordBreak:"break-word"};return jsx("div",{className:a,style:p,children:e.map((h,g)=>jsxs("div",{style:f(g),children:[jsx("span",{style:u,children:h.label}),jsx("span",{style:c,children:h.value})]},g))})};fl.displayName="DataList";var xl={dark:{text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",line:"rgba(255,255,255,0.1)",hover:"rgba(255,255,255,0.06)",selectedBg:"rgba(252,79,0,0.12)",selectedBorder:"#FC4F00",selectedText:"#ffffff",iconColor:"rgba(255,255,255,0.4)",iconExpanded:"#FC4F00"},light:{text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",line:"rgba(0,0,0,0.08)",hover:"rgba(0,0,0,0.04)",selectedBg:"rgba(252,79,0,0.08)",selectedBorder:"#FC4F00",selectedText:"#1a1a1a",iconColor:"rgba(0,0,0,0.3)",iconExpanded:"#FC4F00"}},Fn=({node:e,depth:t,expanded:r,selectedId:o,onToggle:a,onSelect:n,t:i})=>{let l=e.children&&e.children.length>0,p=r.has(e.id),s=o===e.id,[f,u]=useState(false),c="transparent";return s?c=i.selectedBg:f&&(c=i.hover),jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",padding:"4px 8px",paddingLeft:`${t*20+8}px`,borderRadius:"6px",backgroundColor:c,borderLeft:s?`2px solid ${i.selectedBorder}`:"2px solid transparent",cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none",minHeight:"32px"},onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),onClick:()=>n?.(e),children:[jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",flexShrink:0,marginRight:"4px"},onClick:h=>{h.stopPropagation(),l&&a(e.id);},children:l&&jsx(CaretRightIcon,{size:14,color:p?i.iconExpanded:i.iconColor,style:{transform:p?"rotate(90deg)":"rotate(0deg)",transition:"transform 180ms cubic-bezier(0.16, 1, 0.3, 1)"}})}),e.icon&&jsx("span",{style:{display:"flex",alignItems:"center",marginRight:"6px",color:s?i.selectedBorder:i.textMuted,flexShrink:0},children:e.icon}),jsx("span",{style:{fontSize:"13px",fontWeight:s?500:400,color:s?i.selectedText:i.text,lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.label})]}),l&&p&&jsxs("div",{style:{position:"relative"},children:[jsx("div",{style:{position:"absolute",left:`${t*20+18}px`,top:0,bottom:"16px",width:"1px",backgroundColor:i.line}}),e.children.map(h=>jsx(Fn,{node:h,depth:t+1,expanded:r,selectedId:o,onToggle:a,onSelect:n,t:i},h.id))]})]})},ml=({data:e,onSelect:t,selectedId:r,defaultExpanded:o=[],style:a,className:n})=>{let i=z(),l=xl[i],[p,s]=useState(()=>new Set(o)),f=useCallback(c=>{s(h=>{let g=new Set(h);return g.has(c)?g.delete(c):g.add(c),g});},[]),u={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,...a};return jsx("div",{className:n,style:u,role:"tree",children:e.map(c=>jsx(Fn,{node:c,depth:0,expanded:p,selectedId:r,onToggle:f,onSelect:t,t:l},c.id))})};ml.displayName="Tree";var yl={dark:{labelColor:"#eaeaea"},light:{labelColor:"#333333"}},vl={online:"#00A205",offline:"#888888",away:"#F5A623",busy:"#EF3838"},Sl={sm:{dot:8,fontSize:"12px",gap:"6px"},md:{dot:10,fontSize:"13px",gap:"8px"},lg:{dot:12,fontSize:"14px",gap:"8px"}},Ko=false,kl=()=>{if(Ko||typeof document>"u")return;let e="sm-statusbadge-pulse";if(document.getElementById(e)){Ko=true;return}let t=document.createElement("style");t.id=e,t.textContent=`
13
13
  @keyframes sm-statusbadge-pulse {
14
14
  0% { transform: scale(1); opacity: 1; }
15
15
  50% { transform: scale(1.8); opacity: 0; }
16
16
  100% { transform: scale(1.8); opacity: 0; }
17
17
  }
18
- `,document.head.appendChild(t),qo=true;},yl=({status:e,label:t,size:r="md",pulse:o=false,color:n,style:a,className:i})=>{let l=I(),p=bl[l],c=xl[r],f=n||ml[e]||"#888888";return o&&hl(),jsxs("span",{className:i,style:{display:"inline-flex",alignItems:"center",gap:c.gap,...a},children:[jsxs("span",{style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${c.dot}px`,height:`${c.dot}px`,flexShrink:0},children:[o&&jsx("span",{style:{position:"absolute",inset:0,borderRadius:"50%",backgroundColor:f,animation:"sm-statusbadge-pulse 2s ease-in-out infinite"}}),jsx("span",{style:{position:"relative",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:f}})]}),t&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,fontWeight:400,color:p.labelColor,lineHeight:"normal",whiteSpace:"nowrap"},children:t})]})};yl.displayName="StatusBadge";var kl={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset"}},Xt=180,Cl={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},Ko=({open:e,onClose:t,title:r,children:o,footer:n,size:a="md",closeOnOverlay:i=true,closeOnEscape:l=true,showClose:p=true,className:c,style:f})=>{let u=I(),s=kl[u],h=Cl[a],[d,x]=useState(false),[g,S]=useState("idle"),R=useRef(null),y=useRef(null);useEffect(()=>{if(e)y.current=document.activeElement,x(true),S("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>S("open"));}),document.body.style.overflow="hidden";else if(d){S("closing");let T=setTimeout(()=>{x(false),S("idle"),document.body.style.overflow="",y.current instanceof HTMLElement&&y.current.focus();},Xt);return ()=>clearTimeout(T)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!d||!l)return;let T=m=>{m.key==="Escape"&&t();};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[d,l,t]),useEffect(()=>{if(!d||!R.current)return;let T=R.current,m='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',C=v=>{if(v.key!=="Tab")return;let k=T.querySelectorAll(m);if(k.length===0){v.preventDefault();return}let E=k[0],z=k[k.length-1];v.shiftKey?document.activeElement===E&&(v.preventDefault(),z.focus()):document.activeElement===z&&(v.preventDefault(),E.focus());};return document.addEventListener("keydown",C),T.focus(),()=>document.removeEventListener("keydown",C)},[d]);let b=()=>{let T={transition:`opacity ${Xt}ms ease`};return g==="opening"||g==="idle"?{...T,opacity:0}:g==="open"?{...T,opacity:1}:{...T,opacity:0,pointerEvents:"none"}},w=()=>{let T={transition:`opacity ${Xt}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Xt}ms cubic-bezier(0.16, 1, 0.3, 1)`};return g==="opening"||g==="idle"?{...T,opacity:0,transform:"scale(0.95)"}:g==="open"?{...T,opacity:1,transform:"scale(1)"}:{...T,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!d)return null;let D=a==="fullscreen";return createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:D?"stretch":"center",justifyContent:"center",...b()},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:s.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:i?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:R,role:"dialog","aria-modal":"true","aria-label":r,tabIndex:-1,className:c,style:{position:"relative",display:"flex",flexDirection:"column",width:h.width,maxWidth:D?void 0:"calc(100vw - 32px)",maxHeight:D?"100vh":h.maxHeight,backgroundColor:s.cardBg,border:D?"none":`1px solid ${s.cardBorder}`,borderRadius:D?0:"16px",boxShadow:s.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...w(),...f},children:[(r||p)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${s.divider}`},children:[r&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:s.titleText},children:r}),p&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:s.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:T=>{T.currentTarget.style.backgroundColor=s.closeHover;},onMouseLeave:T=>{T.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:s.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:s.bodyText},children:o}),n&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${s.divider}`},children:n})]})]}),document.body)};Ko.displayName="Modal";var Fl={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)"}},jo=220,El=({open:e,onClose:t,position:r="right",title:o,children:n,footer:a,width:i=400,showClose:l=true,closeOnOverlay:p=true,className:c,style:f})=>{let u=I(),s=Fl[u],[h,d]=useState(false),[x,g]=useState("idle"),S=useRef(null),R=typeof i=="number"?`${i}px`:i;useEffect(()=>{if(e)d(true),g("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>g("open"));}),document.body.style.overflow="hidden";else if(h){g("closing");let w=setTimeout(()=>{d(false),g("idle"),document.body.style.overflow="";},jo);return ()=>clearTimeout(w)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!h)return;let w=D=>{D.key==="Escape"&&t();};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[h,t]);let y=w=>{let D=r==="right"?"100%":"-100%";return w==="opening"||w==="idle"?D:w==="open"?"0%":D},b=()=>x==="open"?1:0;return h?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex"},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:s.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:b(),transition:`opacity ${jo}ms ease`,...x==="closing"?{pointerEvents:"none"}:{}},onClick:p?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:S,role:"dialog","aria-modal":"true","aria-label":o,className:c,style:{position:"absolute",top:0,bottom:0,[r]:0,width:R,maxWidth:"100vw",display:"flex",flexDirection:"column",backgroundColor:s.panelBg,borderLeft:r==="right"?`1px solid ${s.panelBorder}`:"none",borderRight:r==="left"?`1px solid ${s.panelBorder}`:"none",boxShadow:s.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:`translateX(${y(x)})`,transition:`transform ${jo}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...f},children:[(o||l)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${s.divider}`},children:[o&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:s.titleText},children:o}),l&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:s.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:w=>{w.currentTarget.style.backgroundColor=s.closeHover;},onMouseLeave:w=>{w.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:s.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:s.bodyText},children:n}),a&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${s.divider}`},children:a})]})]}),document.body):null};El.displayName="Drawer";var Bl={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)",handleBg:"rgba(255,255,255,0.2)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)",handleBg:"rgba(0,0,0,0.15)"}},er=180,Pl=({open:e,onClose:t,children:r,side:o="bottom",title:n,showClose:a=true,style:i,className:l})=>{let p=I(),c=Bl[p],[f,u]=useState(false),[s,h]=useState("idle"),d=useRef(null);useEffect(()=>{if(e)u(true),h("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>h("open"));}),document.body.style.overflow="hidden";else if(f){h("closing");let w=setTimeout(()=>{u(false),h("idle"),document.body.style.overflow="";},er);return ()=>clearTimeout(w)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!f)return;let w=D=>{D.key==="Escape"&&t();};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[f,t]);let S=w=>{let D={bottom:"translateY(100%)",top:"translateY(-100%)",right:"translateX(100%)",left:"translateX(-100%)"};return w==="opening"||w==="idle"?D[o]:w==="open"?"translate(0, 0)":D[o]},R=()=>s==="open"?1:0,y={};o==="bottom"?(y.bottom=0,y.left=0,y.right=0,y.maxHeight="85vh",y.borderTopLeftRadius="16px",y.borderTopRightRadius="16px"):o==="top"?(y.top=0,y.left=0,y.right=0,y.maxHeight="85vh",y.borderBottomLeftRadius="16px",y.borderBottomRightRadius="16px"):o==="right"?(y.top=0,y.bottom=0,y.right=0,y.width="400px",y.maxWidth="100vw"):o==="left"&&(y.top=0,y.bottom=0,y.left=0,y.width="400px",y.maxWidth="100vw");let b={};return o==="bottom"?b.borderTop=`1px solid ${c.panelBorder}`:o==="top"?b.borderBottom=`1px solid ${c.panelBorder}`:o==="right"?b.borderLeft=`1px solid ${c.panelBorder}`:o==="left"&&(b.borderRight=`1px solid ${c.panelBorder}`),f?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:c.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:R(),transition:`opacity ${er}ms ease`,...s==="closing"?{pointerEvents:"none"}:{}},onClick:t,"aria-hidden":"true"}),jsxs("div",{ref:d,role:"dialog","aria-modal":"true","aria-label":n,className:l,style:{position:"absolute",display:"flex",flexDirection:"column",backgroundColor:c.panelBg,boxShadow:c.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:S(s),transition:`transform ${er}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...y,...b,...i},children:[o==="bottom"&&jsx("div",{style:{display:"flex",justifyContent:"center",padding:"10px 0 4px",flexShrink:0},children:jsx("div",{style:{width:"36px",height:"4px",borderRadius:"2px",backgroundColor:c.handleBg}})}),(n||a)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:o==="bottom"?"8px 24px 16px":"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${c.divider}`},children:[n&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:c.titleText},children:n}),a&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:c.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:w=>{w.currentTarget.style.backgroundColor=c.closeHover;},onMouseLeave:w=>{w.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:c.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:c.bodyText},children:r})]})]}),document.body):null};Pl.displayName="Sheet";var Al={dark:{text:"#ACACAC",activeText:"#ffffff",linkHover:"#E8612D",separator:"rgba(255,255,255,0.3)"},light:{text:"#888888",activeText:"#1a1a1a",linkHover:"#E8612D",separator:"rgba(0,0,0,0.25)"}},Hl=({items:e,separator:t="/",className:r,style:o})=>{let n=I(),a=Al[n];return jsx("nav",{"aria-label":"Drobe\u010Dkov\xE1 navigace",className:r,style:{display:"flex",alignItems:"center",gap:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",...o},children:e.map((i,l)=>{let p=l===e.length-1;return jsxs(zo.Fragment,{children:[l>0&&jsx("span",{"aria-hidden":"true",style:{color:a.separator,userSelect:"none",fontSize:"13px"},children:t}),p?jsxs("span",{"aria-current":"page",style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.activeText,fontWeight:600},children:[i.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:i.icon}),i.label]}):jsxs("a",{href:i.href??"#",onClick:i.onClick,style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.text,fontWeight:400,textDecoration:"none",cursor:"pointer",transition:"color 0.12s ease"},onMouseEnter:c=>{c.currentTarget.style.color=a.linkHover;},onMouseLeave:c=>{c.currentTarget.style.color=a.text;},children:[i.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:i.icon}),i.label]})]},l)})})};Hl.displayName="Breadcrumb";var $l={dark:{text:"#ACACAC",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(255,255,255,0.08)",disabledText:"rgba(255,255,255,0.2)",border:"rgba(255,255,255,0.12)"},light:{text:"#666666",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(0,0,0,0.05)",disabledText:"rgba(0,0,0,0.15)",border:"rgba(0,0,0,0.08)"}},Wl={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function Zl(e,t,r,o,n){let a=[],i=Math.max(2,e-r),l=Math.min(t-1,e+r);(o||e-r<=1)&&a.push(1),i>2&&(o&&!a.includes(1)&&a.push(1),a.push("ellipsis-start"));for(let p=i;p<=l;p++)a.includes(p)||a.push(p);return l<t-1&&a.push("ellipsis-end"),(n||e+r>=t)&&t>1&&(a.includes(t)||a.push(t)),a}var Ol=({page:e,totalPages:t,onChange:r,siblings:o=1,showFirst:n=true,showLast:a=true,size:i="md",className:l,style:p})=>{let c=I(),f=$l[c],u=Wl[i];if(t<=0)return null;let s=Zl(e,t,o,n,a),h={display:"inline-flex",alignItems:"center",justifyContent:"center",width:u.size,height:u.size,border:"none",borderRadius:"8px",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,padding:0,lineHeight:"normal"};return jsxs("nav",{"aria-label":"Str\xE1nkov\xE1n\xED",className:l,style:{display:"flex",alignItems:"center",gap:"4px",...p},children:[jsx("button",{type:"button","aria-label":"P\u0159edchoz\xED str\xE1nka",disabled:e<=1,onClick:()=>r(e-1),style:{...h,color:e<=1?f.disabledText:f.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:d=>{e>1&&(d.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:d=>{d.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretLeftIcon,{size:u.iconSize,color:e<=1?f.disabledText:f.text})}),s.map((d,x)=>{if(d==="ellipsis-start"||d==="ellipsis-end")return jsx("span",{style:{...h,cursor:"default",color:f.text},"aria-hidden":"true",children:"..."},d);let g=d===e;return jsx("button",{type:"button","aria-current":g?"page":void 0,"aria-label":`Str\xE1nka ${d}`,onClick:()=>r(d),style:{...h,color:g?f.activeText:f.text,backgroundColor:g?f.activeBg:"transparent",fontWeight:g?600:500},onMouseEnter:S=>{g||(S.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:S=>{g||(S.currentTarget.style.backgroundColor="transparent");},children:d},d)}),jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>r(e+1),style:{...h,color:e>=t?f.disabledText:f.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:d=>{e<t&&(d.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:d=>{d.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretRightIcon,{size:u.iconSize,color:e>=t?f.disabledText:f.text})})]})};Ol.displayName="Pagination";var ql={dark:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#ACACAC",futureBg:"transparent",futureBorder:"rgba(255,255,255,0.2)",lineCompleted:"#E8612D",lineFuture:"rgba(255,255,255,0.15)",labelText:"#ffffff",labelFuture:"#ACACAC",descText:"#ACACAC",descFuture:"rgba(255,255,255,0.3)",hoverBg:"rgba(232,97,45,0.12)"},light:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#888888",futureBg:"transparent",futureBorder:"rgba(0,0,0,0.15)",lineCompleted:"#E8612D",lineFuture:"rgba(0,0,0,0.1)",labelText:"#1a1a1a",labelFuture:"#888888",descText:"#888888",descFuture:"rgba(0,0,0,0.3)",hoverBg:"rgba(232,97,45,0.08)"}},Gl=({steps:e,activeStep:t,orientation:r="horizontal",clickable:o=false,onStepClick:n,className:a,style:i})=>{let l=I(),p=ql[l],[c,f]=useState(null),u=r==="horizontal",s=32,h=d=>!o||!n?false:o==="completed"?d<=t:true;return jsx("div",{className:a,style:{display:"flex",flexDirection:u?"row":"column",alignItems:u?"flex-start":"stretch",gap:0,...i},children:e.map((d,x)=>{let g=x<t,S=x===t,R=x>t,y=x===e.length-1,b=h(x),w=c===x&&b,D=g?p.completedBg:w?p.hoverBg:p.activeBg,T=g?p.completedBg:S||w?p.activeBorder:p.futureBorder,m=g?p.completedText:S||w?p.activeText:p.futureText,C=w?p.activeText:R?p.labelFuture:p.labelText,v=R?p.descFuture:p.descText,k=g?p.lineCompleted:p.lineFuture;return jsxs("div",{style:{display:"flex",flexDirection:u?"column":"row",alignItems:u?"center":"flex-start",flex:y?"0 0 auto":"1 1 0",minWidth:0,cursor:b?"pointer":"default"},onClick:()=>b&&n?.(x),onMouseEnter:()=>f(x),onMouseLeave:()=>f(null),children:[jsxs("div",{style:{display:"flex",flexDirection:u?"row":"column",alignItems:"center",width:u?"100%":"auto"},children:[jsx("div",{style:{width:s,height:s,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:D,border:`2px solid ${T}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:g?jsx(CheckIcon,{size:14,color:p.completedText,weight:"bold"}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:m,lineHeight:1,transition:"color 0.2s ease"},children:x+1})}),!y&&jsx("div",{style:u?{flex:1,height:"2px",backgroundColor:k,margin:"0 8px",transition:"background-color 0.2s ease"}:{width:"2px",flex:1,minHeight:"24px",backgroundColor:k,margin:"6px 0",marginLeft:`${s/2-1}px`,alignSelf:"flex-start",transition:"background-color 0.2s ease"}})]}),jsxs("div",{style:{marginTop:u?"10px":0,marginLeft:u?0:"14px",paddingTop:u?0:"4px",textAlign:u?"center":"left",minHeight:u||y?void 0:"48px"},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:S||w?600:500,color:C,lineHeight:"normal",transition:"color 0.2s ease"},children:d.label}),d.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:v,lineHeight:"normal",marginTop:"4px",transition:"color 0.2s ease"},children:d.description})]})]},x)})})};Gl.displayName="Stepper";var Kl={dark:{dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",text:"#eaeaea",textDisabled:"#666666",hoverBg:"rgba(255,255,255,0.06)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.08)",divider:"rgba(255,255,255,0.08)",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",text:"#1a1a1a",textDisabled:"#bbbbbb",hoverBg:"rgba(0,0,0,0.04)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.06)",divider:"rgba(0,0,0,0.06)",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},sr=180,Xl=({trigger:e,items:t,position:r="bottom-left",className:o,style:n})=>{let a=I(),i=Kl[a],l=useRef(null),p=useRef(null),[c,f]=useState(false),[u,s]=useState(false),[h,d]=useState("idle"),[x,g]=useState({top:0,left:0,openAbove:false}),[S,R]=useState(-1),y=useCallback(()=>{f(true),s(true),d("opening"),R(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>d("open"));});},[]),b=useCallback(()=>{f(false),d("closing");let m=setTimeout(()=>{s(false),d("idle");},sr);return ()=>clearTimeout(m)},[]),w=useCallback(()=>{if(!l.current)return;let m=l.current.getBoundingClientRect(),C=p.current?.offsetHeight??200,v=p.current?.offsetWidth??200,k=window.innerHeight-m.bottom-6,E=m.top-6,z=k<C&&E>k,F;r==="bottom-right"?(F=m.right-v,F<4&&(F=4)):(F=m.left,F+v>window.innerWidth-4&&(F=window.innerWidth-v-4)),g({top:z?m.top-6:m.bottom+6,left:F,openAbove:z});},[r]);useEffect(()=>{if(u)return w(),window.addEventListener("scroll",w,true),window.addEventListener("resize",w),()=>{window.removeEventListener("scroll",w,true),window.removeEventListener("resize",w);}},[u,w]),useEffect(()=>{if(!c)return;let m=C=>{let v=C.target,k=l.current?.contains(v),E=p.current?.contains(v);!k&&!E&&b();};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[c,b]),useEffect(()=>{if(!c)return;let m=t.map((v,k)=>({item:v,idx:k})).filter(({item:v})=>!v.divider&&!v.disabled),C=v=>{switch(v.key){case "Escape":v.preventDefault(),b();break;case "ArrowDown":{v.preventDefault();let k=m.findIndex(({idx:z})=>z===S),E=k<m.length-1?k+1:0;R(m[E]?.idx??-1);break}case "ArrowUp":{v.preventDefault();let k=m.findIndex(({idx:z})=>z===S),E=k>0?k-1:m.length-1;R(m[E]?.idx??-1);break}case "Enter":case " ":if(v.preventDefault(),S>=0){let k=t[S];k&&!k.divider&&!k.disabled&&(k.onClick?.(),b());}break}};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[c,S,t,b]);let D=()=>{let m=x.openAbove,C=m?"translateY(8px)":"translateY(-8px)",v=m?"translateY(6px)":"translateY(-6px)",k={transition:`opacity ${sr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${sr}ms cubic-bezier(0.16, 1, 0.3, 1)`};return h==="opening"||h==="idle"?{...k,opacity:0,transform:`${C} scale(0.97)`}:h==="open"?{...k,opacity:1,transform:"translateY(0) scale(1)"}:{...k,opacity:0,transform:`${v} scale(0.98)`,pointerEvents:"none"}},T=u?createPortal(jsx("div",{ref:p,role:"menu",style:{position:"fixed",...x.openAbove?{bottom:window.innerHeight-x.top,left:x.left}:{top:x.top,left:x.left},minWidth:"180px",backgroundColor:i.dropdownBg,border:`1px solid ${i.dropdownBorder}`,borderRadius:"12px",boxShadow:i.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",padding:"6px",transformOrigin:x.openAbove?"bottom center":"top center",...D()},children:t.map((m,C)=>{if(m.divider)return jsx("div",{role:"separator",style:{height:"1px",backgroundColor:i.divider,margin:"4px 6px"}},C);let v=m.danger,k=m.disabled,E=C===S,z=k?i.textDisabled:v?i.dangerText:i.text,F=v?i.dangerHover:i.hoverBg;return jsxs("div",{role:"menuitem","aria-disabled":k,style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:z,backgroundColor:E?F:"transparent",cursor:k?"not-allowed":"pointer",opacity:k?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{k||(m.onClick?.(),b());},onMouseEnter:()=>{k||R(C);},onMouseLeave:()=>R(-1),children:[m.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:m.icon}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:m.label})]},C)})}),document.body):null;return jsxs("div",{className:o,style:{display:"inline-flex",position:"relative",...n},children:[jsx("div",{ref:l,onClick:()=>{c?b():y();},style:{display:"inline-flex",cursor:"pointer"},children:e}),T]})};Xl.displayName="DropdownMenu";var Jl={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},Ig=({variant:e="default",icon:t,iconPosition:r="left",showIcon:o=true,children:n,style:a,className:i,onMouseEnter:l,onMouseLeave:p,target:c,rel:f,...u})=>{let s=I(),h=Jl[s],[d,x]=useState(false),g=e==="danger"?h.danger:h.default,S={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:d?h.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:g,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...a},R=o&&t?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsx("a",{style:S,className:i,target:c,rel:f??(c==="_blank"?"noopener noreferrer":void 0),onMouseEnter:y=>{x(true),l?.(y);},onMouseLeave:y=>{x(false),p?.(y);},...u,children:r==="right"?jsxs(Fragment,{children:[n,R]}):jsxs(Fragment,{children:[R,n]})})};var oc={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputBg:"rgba(255,255,255,0.06)",inputBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputBg:"rgba(0,0,0,0.04)",inputBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},Jt=180,rc=({open:e,onClose:t,value:r,onChange:o,results:n,placeholder:a="Hledat...",className:i,style:l})=>{let p=I(),c=oc[p],[f,u]=useState(false),[s,h]=useState("idle"),[d,x]=useState(-1),g=useRef(null),S=useRef(null);useEffect(()=>{let m="sm-spotlight-scrollbar-hide";if(document.getElementById(m))return;let C=document.createElement("style");C.id=m,C.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(C);},[]);let R=n;useEffect(()=>{if(e)u(true),h("opening"),x(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>h("open"));});else if(f){h("closing");let m=setTimeout(()=>{u(false),h("idle");},Jt);return ()=>clearTimeout(m)}},[e]),useEffect(()=>{f&&s==="open"&&g.current?.focus();},[f,s]),useEffect(()=>{x(-1);},[n]),useEffect(()=>{if(d<0||!S.current)return;let m=S.current.querySelector(`[data-spotlight-index="${d}"]`);m&&m.scrollIntoView({block:"nearest"});},[d]);let y=useCallback(m=>{switch(m.key){case "Escape":m.preventDefault(),t();break;case "ArrowDown":{m.preventDefault(),x(C=>{let v=C+1;return v>=R.length?0:v});break}case "ArrowUp":{m.preventDefault(),x(C=>{let v=C-1;return v<0?R.length-1:v});break}case "Enter":{m.preventDefault(),d>=0&&d<R.length&&(R[d].onSelect(),t());break}}},[R,d,t]),b=[],w=new Map;R.forEach((m,C)=>{let v=w.get(m.category);v||(v=[],w.set(m.category,v),b.push({category:m.category,items:v})),v.push({...m,flatIndex:C});});let D=()=>{let m={transition:`opacity ${Jt}ms ease`};return s==="opening"||s==="idle"?{...m,opacity:0}:s==="open"?{...m,opacity:1}:{...m,opacity:0,pointerEvents:"none"}},T=()=>{let m={transition:`opacity ${Jt}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Jt}ms cubic-bezier(0.16, 1, 0.3, 1)`};return s==="opening"||s==="idle"?{...m,opacity:0,transform:"scale(0.95) translateY(-10px)"}:s==="open"?{...m,opacity:1,transform:"scale(1) translateY(0)"}:{...m,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}};return f?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...D()},onKeyDown:y,children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:c.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:i,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:c.cardBg,border:`1px solid ${c.cardBorder}`,borderRadius:"16px",boxShadow:c.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...T(),...l},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${c.divider}`},children:[jsx(MagnifyingGlassIcon,{size:18,color:c.textSecondary}),jsx("input",{ref:g,type:"text",value:r,onChange:m=>o(m.target.value),placeholder:a,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:c.inputText,caretColor:"#FC4F00"}}),jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:c.kbdBg,border:`1px solid ${c.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:c.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsx("div",{ref:S,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:b.length===0?jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):b.map(m=>jsxs("div",{role:"group","aria-label":m.category,children:[jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:c.categoryText,userSelect:"none"},children:m.category}),m.items.map(C=>{let v=C.flatIndex===d;return jsxs("div",{role:"option","aria-selected":v,"data-spotlight-index":C.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:v?c.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{C.onSelect(),t();},onMouseEnter:()=>x(C.flatIndex),onMouseLeave:()=>x(-1),children:[C.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:v?c.activeBg:c.hoverBg,color:c.text,transition:"background-color 0.1s ease"},children:C.icon}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:c.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:C.label}),C.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:c.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:C.description})]})]},C.id)})]},m.category))})]})]}),document.body):null};rc.displayName="Spotlight";var ic={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},eo=180,lc=({open:e,onClose:t,groups:r,placeholder:o="Zadejte p\u0159\xEDkaz...",style:n,className:a})=>{let i=I(),l=ic[i],[p,c]=useState(false),[f,u]=useState("idle"),[s,h]=useState(""),[d,x]=useState(-1),g=useRef(null),S=useRef(null);useEffect(()=>{let m="sm-commandmenu-scrollbar-hide";if(document.getElementById(m))return;let C=document.createElement("style");C.id=m,C.textContent=".commandmenu-results::-webkit-scrollbar { display: none; }",document.head.appendChild(C);},[]);let R=r.map(m=>({...m,items:m.items.filter(C=>C.label.toLowerCase().includes(s.toLowerCase())||C.description?.toLowerCase().includes(s.toLowerCase()))})).filter(m=>m.items.length>0),y=R.flatMap(m=>m.items);useEffect(()=>{if(e)h(""),x(-1),c(true),u("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>u("open"));});else if(p){u("closing");let m=setTimeout(()=>{c(false),u("idle");},eo);return ()=>clearTimeout(m)}},[e]),useEffect(()=>{p&&f==="open"&&g.current?.focus();},[p,f]),useEffect(()=>{x(-1);},[s]),useEffect(()=>{if(d<0||!S.current)return;let m=S.current.querySelector(`[data-cmd-index="${d}"]`);m&&m.scrollIntoView({block:"nearest"});},[d]);let b=useCallback(m=>{switch(m.key){case "Escape":m.preventDefault(),t();break;case "ArrowDown":{m.preventDefault(),x(C=>{let v=C+1;return v>=y.length?0:v});break}case "ArrowUp":{m.preventDefault(),x(C=>{let v=C-1;return v<0?y.length-1:v});break}case "Enter":{m.preventDefault(),d>=0&&d<y.length&&(y[d].onSelect(),t());break}}},[y,d,t]),w=()=>{let m={transition:`opacity ${eo}ms ease`};return f==="opening"||f==="idle"?{...m,opacity:0}:f==="open"?{...m,opacity:1}:{...m,opacity:0,pointerEvents:"none"}},D=()=>{let m={transition:`opacity ${eo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${eo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return f==="opening"||f==="idle"?{...m,opacity:0,transform:"scale(0.95) translateY(-10px)"}:f==="open"?{...m,opacity:1,transform:"scale(1) translateY(0)"}:{...m,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}},T=0;return p?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...w()},onKeyDown:b,children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:l.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:a,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:l.cardBg,border:`1px solid ${l.cardBorder}`,borderRadius:"16px",boxShadow:l.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...D(),...n},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${l.divider}`},children:[jsx(MagnifyingGlassIcon,{size:18,color:l.textSecondary}),jsx("input",{ref:g,type:"text",value:s,onChange:m=>h(m.target.value),placeholder:o,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:l.inputText,caretColor:"#FC4F00"}}),jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:l.kbdBg,border:`1px solid ${l.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:l.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsx("div",{ref:S,role:"listbox",className:"commandmenu-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:R.length===0?jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):R.map(m=>jsxs("div",{role:"group","aria-label":m.label,children:[jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:l.categoryText,userSelect:"none"},children:m.label}),m.items.map(C=>{let v=T++,k=v===d;return jsxs("div",{role:"option","aria-selected":k,"data-cmd-index":v,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:k?l.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{C.onSelect(),t();},onMouseEnter:()=>x(v),onMouseLeave:()=>x(-1),children:[C.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:k?l.activeBg:l.hoverBg,color:l.text,transition:"background-color 0.1s ease"},children:C.icon}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:l.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:C.label}),C.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:l.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:C.description})]}),C.shortcut&&jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:l.kbdBg,border:`1px solid ${l.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:l.kbdText,lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:C.shortcut})]},C.id)})]},m.label))})]})]}),document.body):null};lc.displayName="CommandMenu";var cc={dark:{background:"rgba(24,24,24,0.8)",border:"rgba(255,255,255,0.1)"},light:{background:"rgba(255,255,255,0.8)",border:"rgba(0,0,0,0.08)"}},dc=({children:e,collapsed:t=false,onCollapse:r,width:o=260,collapsedWidth:n=64,style:a,className:i})=>{let l=I(),p=cc[l],c=t?n:o;return jsx("aside",{className:i,style:{position:"relative",display:"flex",flexDirection:"column",width:`${c}px`,minWidth:`${c}px`,height:"100%",backgroundColor:p.background,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderRight:`1px solid ${p.border}`,boxSizing:"border-box",overflow:"hidden",transition:"width 180ms cubic-bezier(0.16, 1, 0.3, 1), min-width 180ms cubic-bezier(0.16, 1, 0.3, 1)",...a},children:jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:t?"8px 8px":"8px 12px",display:"flex",flexDirection:"column",alignItems:t?"center":"stretch",transition:"padding 180ms cubic-bezier(0.16, 1, 0.3, 1)"},children:e})})};dc.displayName="AppSidebar";var pc={dark:{background:"rgba(26,26,26,0.7)",backgroundSolid:"#1a1a1a",border:"rgba(255,255,255,0.1)",shadow:"0 1px 0 rgba(255,255,255,0.04)"},light:{background:"rgba(255,255,255,0.7)",backgroundSolid:"#ffffff",border:"rgba(0,0,0,0.08)",shadow:"0 1px 0 rgba(0,0,0,0.03)"}},fc=({logo:e,children:t,actions:r,sticky:o=true,glass:n=true,style:a,className:i})=>{let l=I(),p=pc[l];return jsxs("header",{className:i,style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"56px",padding:"0 20px",backgroundColor:n?p.background:p.backgroundSolid,borderBottom:`1px solid ${p.border}`,boxShadow:p.shadow,boxSizing:"border-box",...n?{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{},...o?{position:"sticky",top:0,zIndex:1e3}:{},...a},children:[e&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0},children:e}),t&&jsx("nav",{style:{display:"flex",alignItems:"center",gap:"4px",flex:1,justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500},children:t}),r&&jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:r})]})};fc.displayName="Navbar";var hc={info:{border:"rgba(255,255,255,0.5)",background:"rgba(3,3,3,0.55)"},success:{border:"rgba(0,162,5,0.7)",background:"rgba(3,21,4,0.55)"},error:{border:"rgba(222,0,0,0.7)",background:"rgba(21,3,3,0.55)"}},yc={info:jsx(Info,{size:28,color:"currentColor"}),success:jsx(CheckCircle,{size:28,color:"#00A205"}),error:jsx(XCircle,{size:28,color:"#DE0000"})},Nn=({variant:e="info",title:t,content:r,icon:o,onClose:n,role:a="alert",style:i,className:l})=>{let{border:p,background:c}=hc[e],f=o??yc[e];return jsxs("div",{role:a,"aria-live":a==="alert"?"assertive":"polite",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"8px",padding:"12px 12px 12px 16px",backgroundColor:c,border:`2px solid ${p}`,borderRadius:"8px",boxSizing:"border-box",...i},className:l,children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:"#ffffff"},children:f}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"16px",color:"#ffffff",lineHeight:"normal"},children:t}),r&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",color:"#ffffff",lineHeight:"normal"},children:r})]})]}),n&&jsx("button",{type:"button",onClick:n,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:"#ffffff",opacity:.7,flexShrink:0},children:jsx(X,{size:16,color:"currentColor"})})]})};var $n=3,Cc=.06,Wn=12,oo=320,Zn=createContext(null),Rc=0,wc=()=>`sm-toast-${++Rc}-${Date.now()}`,s0=({children:e,position:t="bottom-right",toastWidth:r=380,gap:o=8,offset:n=16,maxToasts:a=5,duration:i=4e3})=>{let[l,p]=useState([]),c=useCallback(s=>{p(h=>h.map(d=>d.id===s?{...d,lifecycle:"leaving"}:d)),setTimeout(()=>{p(h=>h.filter(d=>d.id!==s));},oo+100);},[]),f=useCallback(s=>{let h=wc(),d=s.duration??i,x={id:h,variant:s.variant??"info",title:s.title,content:s.content,icon:s.icon,duration:d,lifecycle:"entering",height:0};return p(g=>{let S=[...g,x];return S.length>a?S.slice(S.length-a):S}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{p(g=>g.map(S=>S.id===h?{...S,lifecycle:"visible"}:S));});}),d>0&&setTimeout(()=>c(h),d),h},[a,c,i]),u=useCallback((s,h)=>{p(d=>d.map(x=>x.id===s&&x.height!==h?{...x,height:h}:x));},[]);return jsxs(Zn.Provider,{value:{toast:f,dismiss:c},children:[e,l.length>0&&jsx(Fc,{toasts:l,position:t,toastWidth:r,gap:o,offset:n,onDismiss:c,onHeightMeasured:u})]})},Tc=({expandedTransformOverride:e,item:t,depthIndex:r,stackSize:o,expanded:n,isBottom:a,appeared:i,toastWidth:l,onDismiss:p,onHeightMeasured:c})=>{let f=t.lifecycle==="leaving",u=!i||f,s=n?1:Math.max(.7,1-r*Cc),h=n?0:r*Wn,d=a?-h:h,g=u?a?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${s}) translateY(${d}px)`,S=u?0:n?1:Math.max(.4,1-r*.18),R=!n&&r>=$n,y=o-r,b=useCallback(w=>{w&&t.height===0&&c(t.id,w.offsetHeight);},[t.id,t.height===0]);return jsx("div",{ref:b,style:{position:"absolute",bottom:a?0:"auto",top:a?"auto":0,left:0,right:0,transformOrigin:a?"bottom center":"top center",transform:g,opacity:R?0:S,zIndex:y,transition:[`transform ${oo}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${oo}ms ease`].join(", "),pointerEvents:r===0||n?"auto":"none",backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",borderRadius:"8px"},children:jsx(Nn,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>p(t.id),style:{width:l,maxWidth:"100%",boxSizing:"border-box"}})})},Fc=({toasts:e,position:t,toastWidth:r,gap:o,offset:n,onDismiss:a,onHeightMeasured:i})=>{let[l,p]=useState(false),[c,f]=useState(new Set),u=t.startsWith("bottom"),s=t.endsWith("right"),h=t.endsWith("center");useEffect(()=>{f(b=>{let w=new Set(b);return e.forEach(D=>{D.lifecycle==="visible"&&w.add(D.id);}),[...w].forEach(D=>{e.find(T=>T.id===D)||w.delete(D);}),w});},[e]);let g=(e[e.length-1]?.height||80)+Math.min(e.length-1,$n-1)*Wn,S=e.reduce((b,w)=>b+(w.height||80),0)+Math.max(0,e.length-1)*o,R=l?S:g,y=h?{left:"50%",transform:"translateX(-50%)"}:s?{right:n}:{left:n};return jsx("div",{style:{position:"fixed",zIndex:9999,width:r,maxWidth:`calc(100vw - ${n*2}px)`,height:R,...u?{bottom:n}:{top:n},...y,transition:`height ${oo}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),"aria-live":"polite","aria-atomic":"false",children:e.map((b,w)=>{let D=e.length-1-w,T=c.has(b.id),m=b.lifecycle==="leaving",C=!T||m,v;if(l&&!C){let E=e.slice(w+1).reduce((F,B)=>F+(B.height||80)+o,0);v=`translateY(${u?-E:E}px)`;}return jsx(Tc,{item:b,depthIndex:D,stackSize:e.length,expanded:l,isBottom:u,appeared:T,toastWidth:r,onDismiss:a,onHeightMeasured:i,expandedTransformOverride:v},b.id)})})},i0=()=>{let e=useContext(Zn);if(!e)throw new Error("[sm-ui] useToast() mus\xED b\xFDt vol\xE1n uvnit\u0159 <ToasterProvider>. Obalte ko\u0159en va\u0161\xED aplikace pomoc\xED <ToasterProvider>.");return e};var Ac={dark:{text:"#ffffff",titleText:"#ffffff",descriptionText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)"},light:{text:"#1a1a1a",titleText:"#1a1a1a",descriptionText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)"}},Hc={info:{border:"rgba(255,255,255,0.7)",borderLight:"rgba(0,0,0,0.3)",background:"rgba(255,255,255,0.06)",backgroundLight:"rgba(0,0,0,0.04)",iconColor:"rgba(255,255,255,0.7)",iconColorLight:"rgba(0,0,0,0.5)"},success:{border:"#00A205",borderLight:"#00A205",background:"rgba(0,162,5,0.08)",backgroundLight:"rgba(0,162,5,0.06)",iconColor:"#00A205",iconColorLight:"#00A205"},warning:{border:"#F5A623",borderLight:"#F5A623",background:"rgba(245,166,35,0.08)",backgroundLight:"rgba(245,166,35,0.06)",iconColor:"#F5A623",iconColorLight:"#F5A623"},error:{border:"#DE0000",borderLight:"#DE0000",background:"rgba(222,0,0,0.08)",backgroundLight:"rgba(222,0,0,0.06)",iconColor:"#DE0000",iconColorLight:"#DE0000"}},g0=({variant:e="info",title:t,children:r,icon:o,closable:n=false,onClose:a,className:i,style:l})=>{let p=I(),c=Ac[p],f=Hc[e],[u,s]=useState(true);if(!u)return null;let h=p==="light",d=h?f.borderLight:f.border,x=h?f.backgroundLight:f.background,g=h?f.iconColorLight:f.iconColor,R=o??{info:jsx(Info,{size:24,color:g}),success:jsx(CheckCircle,{size:24,color:g}),warning:jsx(Warning,{size:24,color:g}),error:jsx(XCircle,{size:24,color:g})}[e],y=()=>{s(false),a?.();};return jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:x,borderLeft:`4px solid ${d}`,borderRadius:"4px",boxSizing:"border-box",...l},className:i,children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:R}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:c.titleText},children:t}),r&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:c.descriptionText},children:r})]}),n&&jsx("button",{type:"button",onClick:y,"aria-label":"Zav\u0159\xEDt upozorn\u011Bn\xED",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:c.closeColor,flexShrink:0,marginTop:"1px"},children:jsx(X,{size:16,color:"currentColor"})})]})};var Yc={dark:{titleText:"#ffffff",bodyText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)",border:"rgba(255,255,255,0.1)"},light:{titleText:"#1a1a1a",bodyText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)",border:"rgba(0,0,0,0.08)"}},Vc={info:{bg:"rgba(255,255,255,0.06)",bgLight:"rgba(0,0,0,0.04)",accent:"rgba(255,255,255,0.7)",accentLight:"rgba(0,0,0,0.5)"},success:{bg:"rgba(0,162,5,0.08)",bgLight:"rgba(0,162,5,0.06)",accent:"#00A205",accentLight:"#00A205"},warning:{bg:"rgba(245,166,35,0.08)",bgLight:"rgba(245,166,35,0.06)",accent:"#F5A623",accentLight:"#F5A623"},error:{bg:"rgba(222,0,0,0.08)",bgLight:"rgba(222,0,0,0.06)",accent:"#DE0000",accentLight:"#DE0000"}},Uc=({variant:e="info",title:t,children:r,closable:o=false,onClose:n,icon:a,action:i,style:l,className:p})=>{let c=I(),f=Yc[c],u=Vc[e],[s,h]=useState(true);if(!s)return null;let d=c==="light",x=d?u.bgLight:u.bg,g=d?u.accentLight:u.accent,R=a??{info:jsx(Info,{size:20,color:g}),success:jsx(CheckCircle,{size:20,color:g}),warning:jsx(Warning,{size:20,color:g}),error:jsx(XCircle,{size:20,color:g})}[e],y=()=>{h(false),n?.();};return jsxs("div",{role:"status",className:p,style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 16px",backgroundColor:x,border:`1px solid ${f.border}`,borderRadius:"12px",boxSizing:"border-box",...l},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:R}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:f.titleText},children:t}),r&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:f.bodyText},children:r})]}),i&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:i}),o&&jsx("button",{type:"button",onClick:y,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:f.closeColor,flexShrink:0,marginTop:"1px"},children:jsx(X,{size:16,color:"currentColor"})})]})};Uc.displayName="Notification";var Un={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},qc={sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"},lg:{height:16,fontSize:"14px"}},Vn="sm-ui-progress-stripes",Gc=()=>{if(typeof document>"u"||document.getElementById(Vn))return;let e=document.createElement("style");e.id=Vn,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},R0=({value:e,size:t="md",color:r="#E8612D",showValue:o=false,label:n,striped:a=false,animated:i=false,className:l,style:p})=>{let c=I(),f=Un[c],u=qc[t],s=Math.max(0,Math.min(100,e));a&&i&&Gc();let h=a?{backgroundImage:"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem",...i?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{};return jsxs("div",{role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n,style:{display:"flex",flexDirection:"column",gap:"6px",width:"100%",...p},className:l,children:[(n||o)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n&&jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:f.label,userSelect:"none"},children:n}),o&&jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:u.fontSize,color:f.text,userSelect:"none",marginLeft:"auto"},children:[Math.round(s),"%"]})]}),jsx("div",{style:{width:"100%",height:u.height,backgroundColor:f.trackBg,borderRadius:u.height/2,overflow:"hidden"},children:jsx("div",{style:{width:`${s}%`,height:"100%",backgroundColor:r,borderRadius:u.height/2,transition:"width 0.3s ease",...h}})})]})},w0=({value:e,size:t=64,strokeWidth:r=4,color:o="#E8612D",showValue:n=false,label:a,className:i,style:l})=>{let p=I(),c=Un[p],f=Math.max(0,Math.min(100,e)),u=(t-r)/2,s=2*Math.PI*u,h=s-f/100*s;return jsxs("div",{role:"progressbar","aria-valuenow":f,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...l},className:i,children:[jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,style:{transform:"rotate(-90deg)"},children:[jsx("circle",{cx:t/2,cy:t/2,r:u,fill:"none",stroke:c.trackBg,strokeWidth:r}),jsx("circle",{cx:t/2,cy:t/2,r:u,fill:"none",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeDasharray:s,strokeDashoffset:h,style:{transition:"stroke-dashoffset 0.3s ease"}})]}),n&&jsxs("span",{style:{position:"relative",marginTop:-t/2-6,marginBottom:t/2-6,fontFamily:"'Zalando Sans', sans-serif",fontWeight:700,fontSize:`${Math.max(11,t*.22)}px`,color:c.text,userSelect:"none",transform:"translateY(-50%)",top:"50%",display:"block",textAlign:"center"},children:[Math.round(f),"%"]}),a&&jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none"},children:a})]})};var Xc={sm:16,md:24,lg:40},z0=({size:e="md",color:t,label:r="Na\u010D\xEDt\xE1n\xED",className:o,style:n})=>{let[a,i]=useState(0),l=useRef(void 0),p=useRef(void 0);useEffect(()=>{let u=s=>{p.current===void 0&&(p.current=s),i((s-p.current)/800*360%360),l.current=requestAnimationFrame(u);};return l.current=requestAnimationFrame(u),()=>{l.current!==void 0&&cancelAnimationFrame(l.current);}},[]);let c=typeof e=="number"?e:Xc[e]??24,f=t??"currentColor";return jsx("span",{role:"status","aria-label":r,className:o,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",...n},children:jsxs("svg",{width:c,height:c,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${a}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:f,strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:f,strokeWidth:"2",strokeLinecap:"round"})]})})};var Jc={dark:{titleText:"#ffffff",descriptionText:"#eaeaea",cancelBg:"transparent",cancelHover:"rgba(255,255,255,0.08)",cancelBorder:"rgba(255,255,255,0.15)",cancelText:"#eaeaea",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"},light:{titleText:"#1a1a1a",descriptionText:"#333333",cancelBg:"transparent",cancelHover:"rgba(0,0,0,0.05)",cancelBorder:"rgba(0,0,0,0.12)",cancelText:"#333333",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"}},Qc=({open:e,onConfirm:t,onCancel:r,title:o,description:n,confirmLabel:a="Potvrdit",cancelLabel:i="Zru\u0161it",variant:l="default",loading:p=false,style:c,className:f})=>{let u=I(),s=Jc[u],[h,d]=useState(false),[x,g]=useState(false),S=l==="danger",R=S?x?s.dangerHover:s.dangerBg:x?s.confirmHover:s.confirmBg,y=S?s.dangerText:s.confirmText;return jsx(Ko,{open:e,onClose:r,title:o,size:"sm",className:f,style:c,footer:jsxs(Fragment,{children:[jsx("button",{type:"button",onClick:r,onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:h?s.cancelHover:s.cancelBg,border:`1px solid ${s.cancelBorder}`,borderRadius:"6px",cursor:"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:s.cancelText,lineHeight:"normal",transition:"background-color 0.12s ease"},children:i}),jsx("button",{type:"button",onClick:t,disabled:p,onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:R,border:"none",borderRadius:"6px",cursor:p?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:y,lineHeight:"normal",opacity:p?.7:1,transition:"background-color 0.12s ease, opacity 0.12s ease"},children:p?"Zpracov\xE1v\xE1m...":a})]}),children:n&&jsx("p",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:s.descriptionText},children:n})})};Qc.displayName="ConfirmDialog";var sd={dark:{iconColor:"#ACACAC",iconHover:"#ffffff",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(255,255,255,0.08)",buttonBorder:"rgba(255,255,255,0.15)",buttonText:"#eaeaea"},light:{iconColor:"#888888",iconHover:"#1a1a1a",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(0,0,0,0.05)",buttonBorder:"rgba(0,0,0,0.12)",buttonText:"#333333"}},id={sm:{iconSize:14,buttonPadding:"4px 10px",iconPadding:"4px",fontSize:"12px"},md:{iconSize:16,buttonPadding:"6px 14px",iconPadding:"6px",fontSize:"13px"},lg:{iconSize:18,buttonPadding:"8px 16px",iconPadding:"8px",fontSize:"14px"}},ld=async e=>{try{if(navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",t.style.left="-9999px",document.body.appendChild(t),t.select();let r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return false}},cd=({text:e,children:t,size:r="md",variant:o="icon",label:n="Kop\xEDrovat",successLabel:a="Zkop\xEDrov\xE1no",onCopy:i,style:l,className:p})=>{let c=I(),f=sd[c],u=id[r],[s,h]=useState(false),[d,x]=useState(false),g=useRef(null),S=useCallback(async()=>{await ld(e)&&(h(true),i?.(),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{h(false),g.current=null;},2e3));},[e,i]),R=s?f.successColor:d?f.iconHover:f.iconColor,y=s?CheckIcon:CopySimpleIcon;return t?jsx("button",{type:"button","aria-label":s?a:n,onClick:S,onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),className:p,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:u.iconPadding,background:d?f.buttonHover:f.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",color:R,...l},children:t}):o==="icon"?jsx("button",{type:"button","aria-label":s?a:n,onClick:S,onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),className:p,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:u.iconPadding,background:d?f.buttonHover:f.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",color:R,...l},children:jsx(y,{size:u.iconSize,color:R})}):jsxs("button",{type:"button","aria-label":s?a:n,onClick:S,onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),className:p,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:u.buttonPadding,background:d?f.buttonHover:f.buttonBg,border:`1px solid ${f.buttonBorder}`,borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,fontWeight:500,color:s?f.successColor:f.buttonText,lineHeight:"normal",...l},children:[jsx(y,{size:u.iconSize,color:s?f.successColor:f.buttonText}),s?a:n]})};cd.displayName="CopyButton";var pd={dark:{border:"rgba(255,255,255,0.15)",labelColor:"rgba(255,255,255,0.5)",labelBg:"#1a1a1a"},light:{border:"rgba(0,0,0,0.12)",labelColor:"rgba(0,0,0,0.4)",labelBg:"#ffffff"}},K0=({orientation:e="horizontal",label:t,className:r,style:o})=>{let n=I(),a=pd[n];return e==="vertical"?jsx("div",{role:"separator","aria-orientation":"vertical",className:r,style:{width:"1px",alignSelf:"stretch",backgroundColor:a.border,flexShrink:0,...o}}):t?jsxs("div",{role:"separator","aria-orientation":"horizontal",className:r,style:{display:"flex",alignItems:"center",width:"100%",gap:"12px",...o},children:[jsx("div",{style:{flex:1,height:"1px",backgroundColor:a.border}}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:a.labelColor,whiteSpace:"nowrap",userSelect:"none",flexShrink:0},children:t}),jsx("div",{style:{flex:1,height:"1px",backgroundColor:a.border}})]}):jsx("div",{role:"separator","aria-orientation":"horizontal",className:r,style:{width:"100%",height:"1px",backgroundColor:a.border,flexShrink:0,...o}})};var ud={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},gd={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},J0=({direction:e="column",gap:t=8,align:r="stretch",justify:o="start",wrap:n=false,fullWidth:a=false,children:i,className:l,style:p})=>jsx("div",{className:l,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:ud[r],justifyContent:gd[o],flexWrap:n?"wrap":"nowrap",width:a?"100%":void 0,...p},children:i});var md={sm:640,md:768,lg:1024,xl:1280},tb=({maxWidth:e="lg",padding:t=16,centered:r=true,children:o,className:n,style:a})=>{let i=typeof e=="number"?e:md[e],l=typeof t=="number"?`${t}px`:t;return jsx("div",{className:n,style:{maxWidth:`${i}px`,width:"100%",padding:l,boxSizing:"border-box",...r?{marginLeft:"auto",marginRight:"auto"}:{},...a},children:o})};var kd={dark:{itemBg:"rgba(255,255,255,0.04)",itemBorder:"rgba(255,255,255,0.08)",itemHoverBg:"rgba(255,255,255,0.07)",text:"#ffffff",textSecondary:"#ACACAC",gripColor:"rgba(255,255,255,0.2)",gripHover:"rgba(255,255,255,0.5)",dropIndicator:"#E8612D",nestHighlight:"rgba(232,97,45,0.10)",nestBorder:"rgba(232,97,45,0.4)",chevron:"rgba(255,255,255,0.4)",chevronHover:"#ffffff",treeLine:"rgba(255,255,255,0.08)"},light:{itemBg:"rgba(0,0,0,0.02)",itemBorder:"rgba(0,0,0,0.07)",itemHoverBg:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",gripColor:"rgba(0,0,0,0.15)",gripHover:"rgba(0,0,0,0.4)",dropIndicator:"#FC4F00",nestHighlight:"rgba(252,79,0,0.06)",nestBorder:"rgba(252,79,0,0.35)",chevron:"rgba(0,0,0,0.3)",chevronHover:"#1a1a1a",treeLine:"rgba(0,0,0,0.06)"}},Xn="smDragListPulse",Cd=`@keyframes ${Xn}{0%,100%{opacity:1}50%{opacity:0.5}}`;function gr(e,t){for(let r of e){if(r.id===t)return r;if(r.children){let o=gr(r.children,t);if(o)return o}}return null}function fr(e,t,r){let o=gr(e,t);if(!o||!o.children)return false;for(let n of o.children)if(n.id===r||fr([n],n.id,r))return true;return false}function jn(e,t){let r=null;return [e.reduce((n,a)=>{if(a.id===t)return r=a,n;if(a.children){let[i,l]=jn(a.children,t);l&&(r=l),n.push({...a,children:i.length>0?i:void 0});}else n.push(a);return n},[]),r]}function ur(e,t,r,o){if(r==="inside")return e.map(a=>a.id===t?{...a,children:[...a.children||[],o],expanded:true}:a.children?{...a,children:ur(a.children,t,r,o)}:a);let n=[];for(let a of e)a.id===t?r==="before"?(n.push(o),n.push(a)):(n.push(a),n.push(o)):a.children?n.push({...a,children:ur(a.children,t,r,o)}):n.push(a);return n}function Jn(e,t){return e.map(r=>r.id===t?{...r,expanded:!r.expanded}:r.children?{...r,children:Jn(r.children,t)}:r)}function Qn(e,t,r){return e.map(o=>o.id===t?{...o,expanded:r}:o.children?{...o,children:Qn(o.children,t,r)}:o)}var Kn=({color:e})=>jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${Xn} 1.2s ease-in-out infinite`,width:"100%"},children:jsx("div",{style:{position:"absolute",left:"-3px",top:"-3px",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:e}})}),ea=({item:e,depth:t,allowNesting:r,maxDepth:o,draggedId:n,dropState:a,onDragStart:i,onDragOver:l,onDragLeave:p,onDrop:c,onDragEnd:f,onToggleExpand:u,renderItem:s,dragMode:h,tokens:d})=>{let[x,g]=useState(false),[S,R]=useState(false),[y,b]=useState(false),w=useRef(false),D=useRef(null),T=e.children&&e.children.length>0,m=e.expanded??false,C=n===e.id,v=n!==null,k=h==="handle",E=a?.targetId===e.id,z=E&&a?.position==="before",F=E&&a?.position==="after",B=E&&a?.position==="inside",M=C?"transparent":B?d.nestHighlight:S&&!v?d.itemHoverBg:d.itemBg,H=B?d.nestBorder:C?"transparent":d.itemBorder;return jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[z&&jsx("div",{style:{position:"absolute",top:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(Kn,{color:d.dropIndicator})}),jsxs("div",{ref:D,draggable:true,onDragStart:A=>{if(k&&!w.current){A.preventDefault();return}if(w.current=false,A.dataTransfer.effectAllowed="move",A.dataTransfer.setData("text/plain",e.id),D.current){let $=D.current.cloneNode(true);$.style.width=`${D.current.offsetWidth}px`,$.style.opacity="0.85",$.style.transform="rotate(1.5deg) scale(1.02)",$.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",$.style.position="fixed",$.style.top="-1000px",document.body.appendChild($),A.dataTransfer.setDragImage($,A.nativeEvent.offsetX,A.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild($));}i(e.id);},onDragOver:A=>{A.preventDefault(),A.stopPropagation(),l(A,e.id,t);},onDragLeave:A=>{let $=A.relatedTarget;D.current&&$&&D.current.contains($)||(A.stopPropagation(),p(A,D.current),R(false));},onDrop:A=>{A.preventDefault(),A.stopPropagation(),c(A);},onDragEnd:f,onMouseEnter:()=>R(true),onMouseLeave:()=>R(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:C?"transparent":d.text,cursor:v?"grabbing":k?"default":"grab",opacity:C?.35:1,backgroundColor:M,borderWidth:"1px",borderColor:H,borderStyle:C?"dashed":"solid",borderRadius:"10px",transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease",userSelect:"none",gap:"10px",minHeight:"44px",boxSizing:"border-box",boxShadow:B?`inset 0 0 0 1px ${d.nestBorder}`:S&&!v?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:B?"scale(1.01)":"scale(1)"},children:[!s&&jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:v?"grabbing":"grab",padding:"4px 2px",borderRadius:"4px",visibility:C?"hidden":"visible"},onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),onMouseDown:()=>{w.current=true;},children:jsx(DotsSixVertical,{size:14,color:x?d.gripHover:d.gripColor})}),B&&jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsx(ArrowBendDownRight,{size:16,color:d.dropIndicator})}),T?jsx("button",{type:"button",onClick:A=>{A.stopPropagation(),u(e.id);},onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"22px",height:"22px",border:"none",background:"transparent",cursor:"pointer",padding:0,flexShrink:0,borderRadius:"4px",visibility:C?"hidden":"visible"},children:jsx(CaretRight,{size:16,color:y?d.chevronHover:d.chevron,style:{transition:"transform 0.2s ease",transform:m?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:C?"hidden":"visible"},children:s?s(e,{handleProps:{onMouseDown:()=>{w.current=true;},style:{cursor:v?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:C,depth:t,isExpanded:m,toggleExpand:()=>u(e.id),hasChildren:!!T}):jsxs(Fragment,{children:[e.icon&&jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0,opacity:.7},children:e.icon}),jsx("span",{style:{flex:1,lineHeight:"normal",fontWeight:t===0?500:400,fontSize:t===0?"14px":"13px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.label})]})})]}),F&&jsx("div",{style:{position:"absolute",bottom:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(Kn,{color:d.dropIndicator})}),T&&m&&jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${d.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map(A=>jsx(ea,{item:A,depth:t+1,allowNesting:r,maxDepth:o,draggedId:n,dropState:a,onDragStart:i,onDragOver:l,onDragLeave:p,onDrop:c,onDragEnd:f,onToggleExpand:u,renderItem:s,dragMode:h,tokens:d},A.id))})]})},Rd=({items:e,onReorder:t,renderItem:r,allowNesting:o=false,maxDepth:n=3,dragMode:a="full",className:i,style:l})=>{let p=I(),c=kd[p],[f,u]=useState(null),[s,h]=useState(null),d=useRef(null),x=useRef(void 0),g=useRef(void 0),S=useRef(null),R=useCallback(m=>{u(m);},[]),y=useCallback((m,C,v)=>{if(!f||f===C||fr(e,f,C))return;x.current&&(clearTimeout(x.current),x.current=void 0);let k=m.currentTarget.getBoundingClientRect(),E=m.clientY-k.top,z=k.height,F;o&&v<n?E<z*.25?F="before":E>z*.75?F="after":F="inside":E<z*.35?F="before":E>z*.65?F="after":S.current?.targetId===C?F=S.current.position:F=E<z/2?"before":"after";let B={targetId:C,position:F},M=gr(e,C);F==="inside"&&M?.children&&M.children.length>0&&!M.expanded?(S.current?.targetId!==C||S.current?.position!=="inside")&&(g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{t(Qn(e,C,true));},600)):g.current&&(clearTimeout(g.current),g.current=void 0),S.current=B,h(B);},[f,e,o,n,t]),b=useCallback((m,C)=>{x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{h(null),S.current=null;},60),g.current&&(clearTimeout(g.current),g.current=void 0);},[]),w=useCallback(()=>{if(x.current&&(clearTimeout(x.current),x.current=void 0),g.current&&(clearTimeout(g.current),g.current=void 0),!f||!s)return;let{targetId:m,position:C}=s;if(f===m||fr(e,f,m))return;let[v,k]=jn(e,f);if(!k)return;let E=ur(v,m,C,k);t(E),u(null),h(null),S.current=null;},[f,s,e,t]),D=useCallback(()=>{x.current&&(clearTimeout(x.current),x.current=void 0),g.current&&(clearTimeout(g.current),g.current=void 0),u(null),h(null),S.current=null;},[]),T=useCallback(m=>{t(Jn(e,m));},[e,t]);return useEffect(()=>()=>{x.current&&clearTimeout(x.current),g.current&&clearTimeout(g.current);},[]),jsxs("div",{ref:d,className:i,style:{display:"flex",flexDirection:"column",gap:"6px",...l},children:[jsx("style",{dangerouslySetInnerHTML:{__html:Cd}}),e.length===0?jsx("div",{style:{padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.textSecondary,backgroundColor:c.itemBg,borderRadius:"10px",border:`1px solid ${c.itemBorder}`},children:"\u017D\xE1dn\xE9 polo\u017Eky"}):e.map(m=>jsx(ea,{item:m,depth:0,allowNesting:o,maxDepth:n,draggedId:f,dropState:s,onDragStart:R,onDragOver:y,onDragLeave:b,onDrop:w,onDragEnd:D,onToggleExpand:T,renderItem:r,dragMode:a,tokens:c},m.id))]})};Rd.displayName="DragList";export{Si as Accordion,vi as AccordionItem,g0 as Alert,dc as AppSidebar,cu as Avatar,bu as Badge,Hl as Breadcrumb,ga as Button,nl as Calendar,bi as Card,Nr as Checkbox,$r as CheckboxGroup,Ys as ColorPicker,qa as Combobox,lc as CommandMenu,Qc as ConfirmDialog,tb as Container,cd as CopyButton,fi as DataGrid,ll as DataList,Hr as DatePicker,os as DatePickerGroup,K0 as Divider,Rd as DragList,El as Drawer,Xl as DropdownMenu,Zi as EmptyState,Jr as FileUpload,kr as Input,Ad as InputGroup,Ig as Link,Ko as Modal,fc as Navbar,Uc as Notification,Ia as NumberInput,ri as OTPInput,Ol as Pagination,Hi as Popover,R0 as ProgressBar,w0 as ProgressCircle,ho as Radio,Zr as RadioGroup,Ks as Rating,Ms as SegmentedControl,Er as Select,Ha as SelectGroup,Pl as Sheet,rt as Skeleton,Kr as Slider,z0 as Spinner,rc as Spotlight,J0 as Stack,qi as Stat,yl as StatusBadge,Gl as Stepper,Yr as Switch,Ri as Tab,wi as TabPanel,ci as Table,Ti as Tabs,gu as Tag,mu as TagItem,Ur as Textarea,sl as Timeline,Nn as Toast,s0 as ToasterProvider,zi as Tooltip,ul as Tree,I as useTheme,i0 as useToast};//# sourceMappingURL=index.mjs.map
18
+ `,document.head.appendChild(t),Ko=true;},Cl=({status:e,label:t,size:r="md",pulse:o=false,color:a,style:n,className:i})=>{let l=z(),p=yl[l],s=Sl[r],f=a||vl[e]||"#888888";return o&&kl(),jsxs("span",{className:i,style:{display:"inline-flex",alignItems:"center",gap:s.gap,...n},children:[jsxs("span",{style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${s.dot}px`,height:`${s.dot}px`,flexShrink:0},children:[o&&jsx("span",{style:{position:"absolute",inset:0,borderRadius:"50%",backgroundColor:f,animation:"sm-statusbadge-pulse 2s ease-in-out infinite"}}),jsx("span",{style:{position:"relative",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:f}})]}),t&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:s.fontSize,fontWeight:400,color:p.labelColor,lineHeight:"normal",whiteSpace:"nowrap"},children:t})]})};Cl.displayName="StatusBadge";var Tl={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset"}},jt=180,Fl={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},Jo=({open:e,onClose:t,title:r,children:o,footer:a,size:n="md",closeOnOverlay:i=true,closeOnEscape:l=true,showClose:p=true,className:s,style:f})=>{let u=z(),c=Tl[u],h=Fl[n],[g,d]=useState(false),[x,S]=useState("idle"),w=useRef(null),y=useRef(null);useEffect(()=>{if(e)y.current=document.activeElement,d(true),S("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>S("open"));}),document.body.style.overflow="hidden";else if(g){S("closing");let T=setTimeout(()=>{d(false),S("idle"),document.body.style.overflow="",y.current instanceof HTMLElement&&y.current.focus();},jt);return ()=>clearTimeout(T)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!g||!l)return;let T=m=>{m.key==="Escape"&&t();};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[g,l,t]),useEffect(()=>{if(!g||!w.current)return;let T=w.current,m='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',C=v=>{if(v.key!=="Tab")return;let R=T.querySelectorAll(m);if(R.length===0){v.preventDefault();return}let E=R[0],P=R[R.length-1];v.shiftKey?document.activeElement===E&&(v.preventDefault(),P.focus()):document.activeElement===P&&(v.preventDefault(),E.focus());};return document.addEventListener("keydown",C),T.focus(),()=>document.removeEventListener("keydown",C)},[g]);let b=()=>{let T={transition:`opacity ${jt}ms ease`};return x==="opening"||x==="idle"?{...T,opacity:0}:x==="open"?{...T,opacity:1}:{...T,opacity:0,pointerEvents:"none"}},k=()=>{let T={transition:`opacity ${jt}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${jt}ms cubic-bezier(0.16, 1, 0.3, 1)`};return x==="opening"||x==="idle"?{...T,opacity:0,transform:"scale(0.95)"}:x==="open"?{...T,opacity:1,transform:"scale(1)"}:{...T,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!g)return null;let D=n==="fullscreen";return createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:D?"stretch":"center",justifyContent:"center",...b()},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:c.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:i?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:w,role:"dialog","aria-modal":"true","aria-label":r,tabIndex:-1,className:s,style:{position:"relative",display:"flex",flexDirection:"column",width:h.width,maxWidth:D?void 0:"calc(100vw - 32px)",maxHeight:D?"100vh":h.maxHeight,backgroundColor:c.cardBg,border:D?"none":`1px solid ${c.cardBorder}`,borderRadius:D?0:"16px",boxShadow:c.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...k(),...f},children:[(r||p)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${c.divider}`},children:[r&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:c.titleText},children:r}),p&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:c.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:T=>{T.currentTarget.style.backgroundColor=c.closeHover;},onMouseLeave:T=>{T.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:c.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:c.bodyText},children:o}),a&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${c.divider}`},children:a})]})]}),document.body)};Jo.displayName="Modal";var Il={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)"}},er=220,Bl=({open:e,onClose:t,position:r="right",title:o,children:a,footer:n,width:i=400,showClose:l=true,closeOnOverlay:p=true,className:s,style:f})=>{let u=z(),c=Il[u],[h,g]=useState(false),[d,x]=useState("idle"),S=useRef(null),w=typeof i=="number"?`${i}px`:i;useEffect(()=>{if(e)g(true),x("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>x("open"));}),document.body.style.overflow="hidden";else if(h){x("closing");let k=setTimeout(()=>{g(false),x("idle"),document.body.style.overflow="";},er);return ()=>clearTimeout(k)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!h)return;let k=D=>{D.key==="Escape"&&t();};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[h,t]);let y=k=>{let D=r==="right"?"100%":"-100%";return k==="opening"||k==="idle"?D:k==="open"?"0%":D},b=()=>d==="open"?1:0;return h?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex"},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:c.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:b(),transition:`opacity ${er}ms ease`,...d==="closing"?{pointerEvents:"none"}:{}},onClick:p?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:S,role:"dialog","aria-modal":"true","aria-label":o,className:s,style:{position:"absolute",top:0,bottom:0,[r]:0,width:w,maxWidth:"100vw",display:"flex",flexDirection:"column",backgroundColor:c.panelBg,borderLeft:r==="right"?`1px solid ${c.panelBorder}`:"none",borderRight:r==="left"?`1px solid ${c.panelBorder}`:"none",boxShadow:c.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:`translateX(${y(d)})`,transition:`transform ${er}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...f},children:[(o||l)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${c.divider}`},children:[o&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:c.titleText},children:o}),l&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:c.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:k=>{k.currentTarget.style.backgroundColor=c.closeHover;},onMouseLeave:k=>{k.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:c.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:c.bodyText},children:a}),n&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${c.divider}`},children:n})]})]}),document.body):null};Bl.displayName="Drawer";var Hl={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)",handleBg:"rgba(255,255,255,0.2)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)",handleBg:"rgba(0,0,0,0.15)"}},rr=180,Ll=({open:e,onClose:t,children:r,side:o="bottom",title:a,showClose:n=true,style:i,className:l})=>{let p=z(),s=Hl[p],[f,u]=useState(false),[c,h]=useState("idle"),g=useRef(null);useEffect(()=>{if(e)u(true),h("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>h("open"));}),document.body.style.overflow="hidden";else if(f){h("closing");let k=setTimeout(()=>{u(false),h("idle"),document.body.style.overflow="";},rr);return ()=>clearTimeout(k)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!f)return;let k=D=>{D.key==="Escape"&&t();};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[f,t]);let S=k=>{let D={bottom:"translateY(100%)",top:"translateY(-100%)",right:"translateX(100%)",left:"translateX(-100%)"};return k==="opening"||k==="idle"?D[o]:k==="open"?"translate(0, 0)":D[o]},w=()=>c==="open"?1:0,y={};o==="bottom"?(y.bottom=0,y.left=0,y.right=0,y.maxHeight="85vh",y.borderTopLeftRadius="16px",y.borderTopRightRadius="16px"):o==="top"?(y.top=0,y.left=0,y.right=0,y.maxHeight="85vh",y.borderBottomLeftRadius="16px",y.borderBottomRightRadius="16px"):o==="right"?(y.top=0,y.bottom=0,y.right=0,y.width="400px",y.maxWidth="100vw"):o==="left"&&(y.top=0,y.bottom=0,y.left=0,y.width="400px",y.maxWidth="100vw");let b={};return o==="bottom"?b.borderTop=`1px solid ${s.panelBorder}`:o==="top"?b.borderBottom=`1px solid ${s.panelBorder}`:o==="right"?b.borderLeft=`1px solid ${s.panelBorder}`:o==="left"&&(b.borderRight=`1px solid ${s.panelBorder}`),f?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:s.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:w(),transition:`opacity ${rr}ms ease`,...c==="closing"?{pointerEvents:"none"}:{}},onClick:t,"aria-hidden":"true"}),jsxs("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":a,className:l,style:{position:"absolute",display:"flex",flexDirection:"column",backgroundColor:s.panelBg,boxShadow:s.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:S(c),transition:`transform ${rr}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...y,...b,...i},children:[o==="bottom"&&jsx("div",{style:{display:"flex",justifyContent:"center",padding:"10px 0 4px",flexShrink:0},children:jsx("div",{style:{width:"36px",height:"4px",borderRadius:"2px",backgroundColor:s.handleBg}})}),(a||n)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:o==="bottom"?"8px 24px 16px":"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${s.divider}`},children:[a&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:s.titleText},children:a}),n&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:s.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:k=>{k.currentTarget.style.backgroundColor=s.closeHover;},onMouseLeave:k=>{k.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:s.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:s.bodyText},children:r})]})]}),document.body):null};Ll.displayName="Sheet";var $l={dark:{text:"#ACACAC",activeText:"#ffffff",linkHover:"#E8612D",separator:"rgba(255,255,255,0.3)"},light:{text:"#888888",activeText:"#1a1a1a",linkHover:"#E8612D",separator:"rgba(0,0,0,0.25)"}},Wl=({items:e,separator:t="/",className:r,style:o})=>{let a=z(),n=$l[a];return jsx("nav",{"aria-label":"Drobe\u010Dkov\xE1 navigace",className:r,style:{display:"flex",alignItems:"center",gap:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",...o},children:e.map((i,l)=>{let p=l===e.length-1;return jsxs(Po.Fragment,{children:[l>0&&jsx("span",{"aria-hidden":"true",style:{color:n.separator,userSelect:"none",fontSize:"13px"},children:t}),p?jsxs("span",{"aria-current":"page",style:{display:"inline-flex",alignItems:"center",gap:"6px",color:n.activeText,fontWeight:600},children:[i.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:i.icon}),i.label]}):jsxs("a",{href:i.href??"#",onClick:i.onClick,style:{display:"inline-flex",alignItems:"center",gap:"6px",color:n.text,fontWeight:400,textDecoration:"none",cursor:"pointer",transition:"color 0.12s ease"},onMouseEnter:s=>{s.currentTarget.style.color=n.linkHover;},onMouseLeave:s=>{s.currentTarget.style.color=n.text;},children:[i.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:i.icon}),i.label]})]},l)})})};Wl.displayName="Breadcrumb";var Yl={dark:{text:"#ACACAC",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(255,255,255,0.08)",disabledText:"rgba(255,255,255,0.2)",border:"rgba(255,255,255,0.12)"},light:{text:"#666666",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(0,0,0,0.05)",disabledText:"rgba(0,0,0,0.15)",border:"rgba(0,0,0,0.08)"}},Vl={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function Ul(e,t,r,o,a){let n=[],i=Math.max(2,e-r),l=Math.min(t-1,e+r);(o||e-r<=1)&&n.push(1),i>2&&(o&&!n.includes(1)&&n.push(1),n.push("ellipsis-start"));for(let p=i;p<=l;p++)n.includes(p)||n.push(p);return l<t-1&&n.push("ellipsis-end"),(a||e+r>=t)&&t>1&&(n.includes(t)||n.push(t)),n}var ql=({page:e,totalPages:t,onChange:r,siblings:o=1,showFirst:a=true,showLast:n=true,size:i="md",className:l,style:p})=>{let s=z(),f=Yl[s],u=Vl[i];if(t<=0)return null;let c=Ul(e,t,o,a,n),h={display:"inline-flex",alignItems:"center",justifyContent:"center",width:u.size,height:u.size,border:"none",borderRadius:"8px",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,padding:0,lineHeight:"normal"};return jsxs("nav",{"aria-label":"Str\xE1nkov\xE1n\xED",className:l,style:{display:"flex",alignItems:"center",gap:"4px",...p},children:[jsx("button",{type:"button","aria-label":"P\u0159edchoz\xED str\xE1nka",disabled:e<=1,onClick:()=>r(e-1),style:{...h,color:e<=1?f.disabledText:f.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:g=>{e>1&&(g.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:g=>{g.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretLeftIcon,{size:u.iconSize,color:e<=1?f.disabledText:f.text})}),c.map((g,d)=>{if(g==="ellipsis-start"||g==="ellipsis-end")return jsx("span",{style:{...h,cursor:"default",color:f.text},"aria-hidden":"true",children:"..."},g);let x=g===e;return jsx("button",{type:"button","aria-current":x?"page":void 0,"aria-label":`Str\xE1nka ${g}`,onClick:()=>r(g),style:{...h,color:x?f.activeText:f.text,backgroundColor:x?f.activeBg:"transparent",fontWeight:x?600:500},onMouseEnter:S=>{x||(S.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:S=>{x||(S.currentTarget.style.backgroundColor="transparent");},children:g},g)}),jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>r(e+1),style:{...h,color:e>=t?f.disabledText:f.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:g=>{e<t&&(g.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:g=>{g.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretRightIcon,{size:u.iconSize,color:e>=t?f.disabledText:f.text})})]})};ql.displayName="Pagination";var Xl={dark:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#ACACAC",futureBg:"transparent",futureBorder:"rgba(255,255,255,0.2)",lineCompleted:"#E8612D",lineFuture:"rgba(255,255,255,0.15)",labelText:"#ffffff",labelFuture:"#ACACAC",descText:"#ACACAC",descFuture:"rgba(255,255,255,0.3)",hoverBg:"rgba(232,97,45,0.12)"},light:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#888888",futureBg:"transparent",futureBorder:"rgba(0,0,0,0.15)",lineCompleted:"#E8612D",lineFuture:"rgba(0,0,0,0.1)",labelText:"#1a1a1a",labelFuture:"#888888",descText:"#888888",descFuture:"rgba(0,0,0,0.3)",hoverBg:"rgba(232,97,45,0.08)"}},jl=({steps:e,activeStep:t,orientation:r="horizontal",clickable:o=false,onStepClick:a,className:n,style:i})=>{let l=z(),p=Xl[l],[s,f]=useState(null),u=r==="horizontal",c=32,h=g=>!o||!a?false:o==="completed"?g<=t:true;return jsx("div",{className:n,style:{display:"flex",flexDirection:u?"row":"column",alignItems:u?"flex-start":"stretch",gap:0,...i},children:e.map((g,d)=>{let x=d<t,S=d===t,w=d>t,y=d===e.length-1,b=h(d),k=s===d&&b,D=x?p.completedBg:k?p.hoverBg:p.activeBg,T=x?p.completedBg:S||k?p.activeBorder:p.futureBorder,m=x?p.completedText:S||k?p.activeText:p.futureText,C=k?p.activeText:w?p.labelFuture:p.labelText,v=w?p.descFuture:p.descText,R=x?p.lineCompleted:p.lineFuture;return jsxs("div",{style:{display:"flex",flexDirection:u?"column":"row",alignItems:u?"center":"flex-start",flex:y?"0 0 auto":"1 1 0",minWidth:0,cursor:b?"pointer":"default"},onClick:()=>b&&a?.(d),onMouseEnter:()=>f(d),onMouseLeave:()=>f(null),children:[jsxs("div",{style:{display:"flex",flexDirection:u?"row":"column",alignItems:"center",width:u?"100%":"auto"},children:[jsx("div",{style:{width:c,height:c,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:D,border:`2px solid ${T}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:x?jsx(CheckIcon,{size:14,color:p.completedText,weight:"bold"}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:m,lineHeight:1,transition:"color 0.2s ease"},children:d+1})}),!y&&jsx("div",{style:u?{flex:1,height:"2px",backgroundColor:R,margin:"0 8px",transition:"background-color 0.2s ease"}:{width:"2px",flex:1,minHeight:"24px",backgroundColor:R,margin:"6px 0",marginLeft:`${c/2-1}px`,alignSelf:"flex-start",transition:"background-color 0.2s ease"}})]}),jsxs("div",{style:{marginTop:u?"10px":0,marginLeft:u?0:"14px",paddingTop:u?0:"4px",textAlign:u?"center":"left",minHeight:u||y?void 0:"48px"},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:S||k?600:500,color:C,lineHeight:"normal",transition:"color 0.2s ease"},children:g.label}),g.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:v,lineHeight:"normal",marginTop:"4px",transition:"color 0.2s ease"},children:g.description})]})]},d)})})};jl.displayName="Stepper";var Ql={dark:{dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",text:"#eaeaea",textDisabled:"#666666",hoverBg:"rgba(255,255,255,0.06)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.08)",divider:"rgba(255,255,255,0.08)",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",text:"#1a1a1a",textDisabled:"#bbbbbb",hoverBg:"rgba(0,0,0,0.04)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.06)",divider:"rgba(0,0,0,0.06)",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},cr=180,ec=({trigger:e,items:t,position:r="bottom-left",className:o,style:a})=>{let n=z(),i=Ql[n],l=useRef(null),p=useRef(null),[s,f]=useState(false),[u,c]=useState(false),[h,g]=useState("idle"),[d,x]=useState({top:0,left:0,openAbove:false}),[S,w]=useState(-1),y=useCallback(()=>{f(true),c(true),g("opening"),w(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>g("open"));});},[]),b=useCallback(()=>{f(false),g("closing");let m=setTimeout(()=>{c(false),g("idle");},cr);return ()=>clearTimeout(m)},[]),k=useCallback(()=>{if(!l.current)return;let m=l.current.getBoundingClientRect(),C=p.current?.offsetHeight??200,v=p.current?.offsetWidth??200,R=window.innerHeight-m.bottom-6,E=m.top-6,P=R<C&&E>R,F;r==="bottom-right"?(F=m.right-v,F<4&&(F=4)):(F=m.left,F+v>window.innerWidth-4&&(F=window.innerWidth-v-4)),x({top:P?m.top-6:m.bottom+6,left:F,openAbove:P});},[r]);useEffect(()=>{if(u)return k(),window.addEventListener("scroll",k,true),window.addEventListener("resize",k),()=>{window.removeEventListener("scroll",k,true),window.removeEventListener("resize",k);}},[u,k]),useEffect(()=>{if(!s)return;let m=C=>{let v=C.target,R=l.current?.contains(v),E=p.current?.contains(v);!R&&!E&&b();};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[s,b]),useEffect(()=>{if(!s)return;let m=t.map((v,R)=>({item:v,idx:R})).filter(({item:v})=>!v.divider&&!v.disabled),C=v=>{switch(v.key){case "Escape":v.preventDefault(),b();break;case "ArrowDown":{v.preventDefault();let R=m.findIndex(({idx:P})=>P===S),E=R<m.length-1?R+1:0;w(m[E]?.idx??-1);break}case "ArrowUp":{v.preventDefault();let R=m.findIndex(({idx:P})=>P===S),E=R>0?R-1:m.length-1;w(m[E]?.idx??-1);break}case "Enter":case " ":if(v.preventDefault(),S>=0){let R=t[S];R&&!R.divider&&!R.disabled&&(R.onClick?.(),b());}break}};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[s,S,t,b]);let D=()=>{let m=d.openAbove,C=m?"translateY(8px)":"translateY(-8px)",v=m?"translateY(6px)":"translateY(-6px)",R={transition:`opacity ${cr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${cr}ms cubic-bezier(0.16, 1, 0.3, 1)`};return h==="opening"||h==="idle"?{...R,opacity:0,transform:`${C} scale(0.97)`}:h==="open"?{...R,opacity:1,transform:"translateY(0) scale(1)"}:{...R,opacity:0,transform:`${v} scale(0.98)`,pointerEvents:"none"}},T=u?createPortal(jsx("div",{ref:p,role:"menu",style:{position:"fixed",...d.openAbove?{bottom:window.innerHeight-d.top,left:d.left}:{top:d.top,left:d.left},minWidth:"180px",backgroundColor:i.dropdownBg,border:`1px solid ${i.dropdownBorder}`,borderRadius:"12px",boxShadow:i.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",padding:"6px",transformOrigin:d.openAbove?"bottom center":"top center",...D()},children:t.map((m,C)=>{if(m.divider)return jsx("div",{role:"separator",style:{height:"1px",backgroundColor:i.divider,margin:"4px 6px"}},C);let v=m.danger,R=m.disabled,E=C===S,P=R?i.textDisabled:v?i.dangerText:i.text,F=v?i.dangerHover:i.hoverBg;return jsxs("div",{role:"menuitem","aria-disabled":R,style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:P,backgroundColor:E?F:"transparent",cursor:R?"not-allowed":"pointer",opacity:R?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{R||(m.onClick?.(),b());},onMouseEnter:()=>{R||w(C);},onMouseLeave:()=>w(-1),children:[m.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:m.icon}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:m.label})]},C)})}),document.body):null;return jsxs("div",{className:o,style:{display:"inline-flex",position:"relative",...a},children:[jsx("div",{ref:l,onClick:()=>{s?b():y();},style:{display:"inline-flex",cursor:"pointer"},children:e}),T]})};ec.displayName="DropdownMenu";var oc={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},Zg=({variant:e="default",icon:t,iconPosition:r="left",showIcon:o=true,children:a,style:n,className:i,onMouseEnter:l,onMouseLeave:p,target:s,rel:f,...u})=>{let c=z(),h=oc[c],[g,d]=useState(false),x=e==="danger"?h.danger:h.default,S={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:g?h.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:x,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...n},w=o&&t?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsx("a",{style:S,className:i,target:s,rel:f??(s==="_blank"?"noopener noreferrer":void 0),onMouseEnter:y=>{d(true),l?.(y);},onMouseLeave:y=>{d(false),p?.(y);},...u,children:r==="right"?jsxs(Fragment,{children:[a,w]}):jsxs(Fragment,{children:[w,a]})})};var sc={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputBg:"rgba(255,255,255,0.06)",inputBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputBg:"rgba(0,0,0,0.04)",inputBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},Qt=180,ic=({open:e,onClose:t,value:r,onChange:o,results:a,placeholder:n="Hledat...",className:i,style:l})=>{let p=z(),s=sc[p],[f,u]=useState(false),[c,h]=useState("idle"),[g,d]=useState(-1),x=useRef(null),S=useRef(null);useEffect(()=>{let m="sm-spotlight-scrollbar-hide";if(document.getElementById(m))return;let C=document.createElement("style");C.id=m,C.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(C);},[]);let w=a;useEffect(()=>{if(e)u(true),h("opening"),d(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>h("open"));});else if(f){h("closing");let m=setTimeout(()=>{u(false),h("idle");},Qt);return ()=>clearTimeout(m)}},[e]),useEffect(()=>{f&&c==="open"&&x.current?.focus();},[f,c]),useEffect(()=>{d(-1);},[a]),useEffect(()=>{if(g<0||!S.current)return;let m=S.current.querySelector(`[data-spotlight-index="${g}"]`);m&&m.scrollIntoView({block:"nearest"});},[g]);let y=useCallback(m=>{switch(m.key){case "Escape":m.preventDefault(),t();break;case "ArrowDown":{m.preventDefault(),d(C=>{let v=C+1;return v>=w.length?0:v});break}case "ArrowUp":{m.preventDefault(),d(C=>{let v=C-1;return v<0?w.length-1:v});break}case "Enter":{m.preventDefault(),g>=0&&g<w.length&&(w[g].onSelect(),t());break}}},[w,g,t]),b=[],k=new Map;w.forEach((m,C)=>{let v=k.get(m.category);v||(v=[],k.set(m.category,v),b.push({category:m.category,items:v})),v.push({...m,flatIndex:C});});let D=()=>{let m={transition:`opacity ${Qt}ms ease`};return c==="opening"||c==="idle"?{...m,opacity:0}:c==="open"?{...m,opacity:1}:{...m,opacity:0,pointerEvents:"none"}},T=()=>{let m={transition:`opacity ${Qt}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Qt}ms cubic-bezier(0.16, 1, 0.3, 1)`};return c==="opening"||c==="idle"?{...m,opacity:0,transform:"scale(0.95) translateY(-10px)"}:c==="open"?{...m,opacity:1,transform:"scale(1) translateY(0)"}:{...m,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}};return f?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...D()},onKeyDown:y,children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:s.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:i,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:s.cardBg,border:`1px solid ${s.cardBorder}`,borderRadius:"16px",boxShadow:s.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...T(),...l},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${s.divider}`},children:[jsx(MagnifyingGlassIcon,{size:18,color:s.textSecondary}),jsx("input",{ref:x,type:"text",value:r,onChange:m=>o(m.target.value),placeholder:n,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:s.inputText,caretColor:"#FC4F00"}}),jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:s.kbdBg,border:`1px solid ${s.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:s.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsx("div",{ref:S,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:b.length===0?jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):b.map(m=>jsxs("div",{role:"group","aria-label":m.category,children:[jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:s.categoryText,userSelect:"none"},children:m.category}),m.items.map(C=>{let v=C.flatIndex===g;return jsxs("div",{role:"option","aria-selected":v,"data-spotlight-index":C.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:v?s.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{C.onSelect(),t();},onMouseEnter:()=>d(C.flatIndex),onMouseLeave:()=>d(-1),children:[C.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:v?s.activeBg:s.hoverBg,color:s.text,transition:"background-color 0.1s ease"},children:C.icon}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:s.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:C.label}),C.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:s.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:C.description})]})]},C.id)})]},m.category))})]})]}),document.body):null};ic.displayName="Spotlight";var pc={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},to=180,fc=({open:e,onClose:t,groups:r,placeholder:o="Zadejte p\u0159\xEDkaz...",style:a,className:n})=>{let i=z(),l=pc[i],[p,s]=useState(false),[f,u]=useState("idle"),[c,h]=useState(""),[g,d]=useState(-1),x=useRef(null),S=useRef(null);useEffect(()=>{let m="sm-commandmenu-scrollbar-hide";if(document.getElementById(m))return;let C=document.createElement("style");C.id=m,C.textContent=".commandmenu-results::-webkit-scrollbar { display: none; }",document.head.appendChild(C);},[]);let w=r.map(m=>({...m,items:m.items.filter(C=>C.label.toLowerCase().includes(c.toLowerCase())||C.description?.toLowerCase().includes(c.toLowerCase()))})).filter(m=>m.items.length>0),y=w.flatMap(m=>m.items);useEffect(()=>{if(e)h(""),d(-1),s(true),u("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>u("open"));});else if(p){u("closing");let m=setTimeout(()=>{s(false),u("idle");},to);return ()=>clearTimeout(m)}},[e]),useEffect(()=>{p&&f==="open"&&x.current?.focus();},[p,f]),useEffect(()=>{d(-1);},[c]),useEffect(()=>{if(g<0||!S.current)return;let m=S.current.querySelector(`[data-cmd-index="${g}"]`);m&&m.scrollIntoView({block:"nearest"});},[g]);let b=useCallback(m=>{switch(m.key){case "Escape":m.preventDefault(),t();break;case "ArrowDown":{m.preventDefault(),d(C=>{let v=C+1;return v>=y.length?0:v});break}case "ArrowUp":{m.preventDefault(),d(C=>{let v=C-1;return v<0?y.length-1:v});break}case "Enter":{m.preventDefault(),g>=0&&g<y.length&&(y[g].onSelect(),t());break}}},[y,g,t]),k=()=>{let m={transition:`opacity ${to}ms ease`};return f==="opening"||f==="idle"?{...m,opacity:0}:f==="open"?{...m,opacity:1}:{...m,opacity:0,pointerEvents:"none"}},D=()=>{let m={transition:`opacity ${to}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${to}ms cubic-bezier(0.16, 1, 0.3, 1)`};return f==="opening"||f==="idle"?{...m,opacity:0,transform:"scale(0.95) translateY(-10px)"}:f==="open"?{...m,opacity:1,transform:"scale(1) translateY(0)"}:{...m,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}},T=0;return p?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...k()},onKeyDown:b,children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:l.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:n,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:l.cardBg,border:`1px solid ${l.cardBorder}`,borderRadius:"16px",boxShadow:l.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...D(),...a},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${l.divider}`},children:[jsx(MagnifyingGlassIcon,{size:18,color:l.textSecondary}),jsx("input",{ref:x,type:"text",value:c,onChange:m=>h(m.target.value),placeholder:o,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:l.inputText,caretColor:"#FC4F00"}}),jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:l.kbdBg,border:`1px solid ${l.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:l.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsx("div",{ref:S,role:"listbox",className:"commandmenu-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:w.length===0?jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):w.map(m=>jsxs("div",{role:"group","aria-label":m.label,children:[jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:l.categoryText,userSelect:"none"},children:m.label}),m.items.map(C=>{let v=T++,R=v===g;return jsxs("div",{role:"option","aria-selected":R,"data-cmd-index":v,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:R?l.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{C.onSelect(),t();},onMouseEnter:()=>d(v),onMouseLeave:()=>d(-1),children:[C.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:R?l.activeBg:l.hoverBg,color:l.text,transition:"background-color 0.1s ease"},children:C.icon}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:l.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:C.label}),C.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:l.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:C.description})]}),C.shortcut&&jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:l.kbdBg,border:`1px solid ${l.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:l.kbdText,lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:C.shortcut})]},C.id)})]},m.label))})]})]}),document.body):null};fc.displayName="CommandMenu";var uc={dark:{background:"rgba(24,24,24,0.8)",border:"rgba(255,255,255,0.1)"},light:{background:"rgba(255,255,255,0.8)",border:"rgba(0,0,0,0.08)"}},gc=({children:e,collapsed:t=false,onCollapse:r,width:o=260,collapsedWidth:a=64,style:n,className:i})=>{let l=z(),p=uc[l],s=t?a:o;return jsx("aside",{className:i,style:{position:"relative",display:"flex",flexDirection:"column",width:`${s}px`,minWidth:`${s}px`,height:"100%",backgroundColor:p.background,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderRight:`1px solid ${p.border}`,boxSizing:"border-box",overflow:"hidden",transition:"width 180ms cubic-bezier(0.16, 1, 0.3, 1), min-width 180ms cubic-bezier(0.16, 1, 0.3, 1)",...n},children:jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:t?"8px 8px":"8px 12px",display:"flex",flexDirection:"column",alignItems:t?"center":"stretch",transition:"padding 180ms cubic-bezier(0.16, 1, 0.3, 1)"},children:e})})};gc.displayName="AppSidebar";var yc={dark:{text:"rgba(255,255,255,0.7)",textHover:"#ffffff",textActive:"#ffffff",icon:"rgba(255,255,255,0.4)",iconHover:"rgba(255,255,255,0.8)",iconActive:"#FC4F00",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(232,97,45,0.1)",chevron:"rgba(255,255,255,0.3)",chevronHover:"rgba(255,255,255,0.7)"},light:{text:"rgba(0,0,0,0.6)",textHover:"#1a1a1a",textActive:"#1a1a1a",icon:"rgba(0,0,0,0.35)",iconHover:"rgba(0,0,0,0.7)",iconActive:"#FC4F00",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(232,97,45,0.07)",chevron:"rgba(0,0,0,0.25)",chevronHover:"rgba(0,0,0,0.6)"}},vc=({label:e,icon:t,active:r=false,defaultExpanded:o=false,expanded:a,onExpandedChange:n,onClick:i,children:l,collapsed:p=false,disabled:s=false,style:f,className:u})=>{let c=z(),h=yc[c],g=Po.Children.count(l)>0,d=a!==void 0,[x,S]=useState(o),w=d?a:x,[y,b]=useState(false),k=useRef(null),[D,T]=useState(0);useEffect(()=>{k.current&&T(k.current.scrollHeight);},[l,w]);let m=useCallback(()=>{d?n?.(!a):S(P=>{let F=!P;return n?.(F),F});},[d,a,n]),C=useCallback(()=>{s||(g&&m(),i?.());},[s,g,m,i]),v=s?`${h.text}66`:r?h.textActive:y?h.textHover:h.text,R=s?`${h.icon}66`:r?h.iconActive:y?h.iconHover:h.icon,E=r?h.activeBg:y&&!s?h.hoverBg:"transparent";return p?jsx("button",{type:"button",onClick:C,disabled:s,title:e,className:u,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:40,border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:E,color:R,cursor:s?"not-allowed":"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,...f},onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),children:t||jsx("span",{style:{fontSize:13,fontWeight:600,color:v},children:e[0]})}):jsxs("div",{className:u,style:f,children:[jsxs("button",{type:"button",onClick:C,disabled:s,style:{display:"flex",alignItems:"center",gap:10,width:"100%",padding:"8px 10px",border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:E,color:v,cursor:s?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:13,fontWeight:r?500:400,textAlign:"left",transition:"background-color 0.12s ease, color 0.12s ease",lineHeight:"normal",userSelect:"none"},onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),children:[t&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:R,transition:"color 0.12s ease"},children:t}),jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),g&&jsx(CaretDownIcon,{size:14,color:y?h.chevronHover:h.chevron,style:{flexShrink:0,transition:"transform 0.2s ease, color 0.12s ease",transform:w?"rotate(0deg)":"rotate(-90deg)"}})]}),g&&jsx("div",{ref:k,style:{overflow:"hidden",maxHeight:w?`${D}px`:"0px",transition:"max-height 200ms cubic-bezier(0.16, 1, 0.3, 1)",paddingLeft:12},children:jsx("div",{style:{display:"flex",flexDirection:"column",gap:2,paddingTop:4,paddingBottom:4},children:l})})]})};vc.displayName="SidebarItem";var Sc={dark:{background:"rgba(26,26,26,0.7)",backgroundSolid:"#1a1a1a",border:"rgba(255,255,255,0.1)",shadow:"0 1px 0 rgba(255,255,255,0.04)"},light:{background:"rgba(255,255,255,0.7)",backgroundSolid:"#ffffff",border:"rgba(0,0,0,0.08)",shadow:"0 1px 0 rgba(0,0,0,0.03)"}},kc=({logo:e,children:t,actions:r,sticky:o=true,glass:a=true,style:n,className:i})=>{let l=z(),p=Sc[l];return jsxs("header",{className:i,style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"56px",padding:"0 20px",backgroundColor:a?p.background:p.backgroundSolid,borderBottom:`1px solid ${p.border}`,boxShadow:p.shadow,boxSizing:"border-box",...a?{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{},...o?{position:"sticky",top:0,zIndex:1e3}:{},...n},children:[e&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0},children:e}),t&&jsx("nav",{style:{display:"flex",alignItems:"center",gap:"4px",flex:1,justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500},children:t}),r&&jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:r})]})};kc.displayName="Navbar";var Ec={dark:{info:{border:"rgba(255,255,255,0.5)",background:"rgba(3,3,3,0.55)"},success:{border:"rgba(0,162,5,0.7)",background:"rgba(3,21,4,0.55)"},error:{border:"rgba(222,0,0,0.7)",background:"rgba(21,3,3,0.55)"},text:"#ffffff",textSecondary:"#ffffff",iconColor:"#ffffff",closeColor:"#ffffff"},light:{info:{border:"rgba(0,0,0,0.12)",background:"rgba(255,255,255,0.7)"},success:{border:"rgba(0,162,5,0.3)",background:"rgba(240,255,240,0.7)"},error:{border:"rgba(222,0,0,0.3)",background:"rgba(255,240,240,0.7)"},text:"#1a1a1a",textSecondary:"#333333",iconColor:"#1a1a1a",closeColor:"#888888"}},Dc={info:jsx(Info,{size:28,color:"currentColor"}),success:jsx(CheckCircle,{size:28,color:"#00A205"}),error:jsx(XCircle,{size:28,color:"#DE0000"})},Yn=({variant:e="info",title:t,content:r,icon:o,onClose:a,role:n="alert",style:i,className:l})=>{let p=z(),s=Ec[p],{border:f,background:u}=s[e],c=o??Dc[e];return jsxs("div",{role:n,"aria-live":n==="alert"?"assertive":"polite",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"8px",padding:"12px 12px 12px 16px",backgroundColor:u,border:`2px solid ${f}`,borderRadius:"8px",boxSizing:"border-box",...i},className:l,children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:s.iconColor},children:c}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"16px",color:s.text,lineHeight:"normal"},children:t}),r&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",color:s.textSecondary,lineHeight:"normal"},children:r})]})]}),a&&jsx("button",{type:"button",onClick:a,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:s.closeColor,opacity:.7,flexShrink:0},children:jsx(X,{size:16,color:"currentColor"})})]})};var Vn=3,Pc=.06,Un=12,ro=320,qn=createContext(null),Mc=0,Ac=()=>`sm-toast-${++Mc}-${Date.now()}`,k0=({children:e,position:t="bottom-right",toastWidth:r=380,gap:o=8,offset:a=16,maxToasts:n=5,duration:i=4e3})=>{let[l,p]=useState([]),s=useCallback(c=>{p(h=>h.map(g=>g.id===c?{...g,lifecycle:"leaving"}:g)),setTimeout(()=>{p(h=>h.filter(g=>g.id!==c));},ro+100);},[]),f=useCallback(c=>{let h=Ac(),g=c.duration??i,d={id:h,variant:c.variant??"info",title:c.title,content:c.content,icon:c.icon,duration:g,lifecycle:"entering",height:0};return p(x=>{let S=[...x,d];return S.length>n?S.slice(S.length-n):S}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{p(x=>x.map(S=>S.id===h?{...S,lifecycle:"visible"}:S));});}),g>0&&setTimeout(()=>s(h),g),h},[n,s,i]),u=useCallback((c,h)=>{p(g=>g.map(d=>d.id===c&&d.height!==h?{...d,height:h}:d));},[]);return jsxs(qn.Provider,{value:{toast:f,dismiss:s},children:[e,l.length>0&&jsx(Lc,{toasts:l,position:t,toastWidth:r,gap:o,offset:a,onDismiss:s,onHeightMeasured:u})]})},Hc=({expandedTransformOverride:e,item:t,depthIndex:r,stackSize:o,expanded:a,isBottom:n,appeared:i,toastWidth:l,onDismiss:p,onHeightMeasured:s})=>{let f=t.lifecycle==="leaving",u=!i||f,c=a?1:Math.max(.7,1-r*Pc),h=a?0:r*Un,g=n?-h:h,x=u?n?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${c}) translateY(${g}px)`,S=u?0:a?1:Math.max(.4,1-r*.18),w=!a&&r>=Vn,y=o-r,b=useCallback(k=>{k&&t.height===0&&s(t.id,k.offsetHeight);},[t.id,t.height===0]);return jsx("div",{ref:b,style:{position:"absolute",bottom:n?0:"auto",top:n?"auto":0,left:0,right:0,transformOrigin:n?"bottom center":"top center",transform:x,opacity:w?0:S,zIndex:y,transition:[`transform ${ro}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${ro}ms ease`].join(", "),pointerEvents:r===0||a?"auto":"none",backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",borderRadius:"8px"},children:jsx(Yn,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>p(t.id),style:{width:l,maxWidth:"100%",boxSizing:"border-box"}})})},Lc=({toasts:e,position:t,toastWidth:r,gap:o,offset:a,onDismiss:n,onHeightMeasured:i})=>{let[l,p]=useState(false),[s,f]=useState(new Set),u=t.startsWith("bottom"),c=t.endsWith("right"),h=t.endsWith("center");useEffect(()=>{f(b=>{let k=new Set(b);return e.forEach(D=>{D.lifecycle==="visible"&&k.add(D.id);}),[...k].forEach(D=>{e.find(T=>T.id===D)||k.delete(D);}),k});},[e]);let x=(e[e.length-1]?.height||80)+Math.min(e.length-1,Vn-1)*Un,S=e.reduce((b,k)=>b+(k.height||80),0)+Math.max(0,e.length-1)*o,w=l?S:x,y=h?{left:"50%",transform:"translateX(-50%)"}:c?{right:a}:{left:a};return jsx("div",{style:{position:"fixed",zIndex:9999,width:r,maxWidth:`calc(100vw - ${a*2}px)`,height:w,...u?{bottom:a}:{top:a},...y,transition:`height ${ro}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),"aria-live":"polite","aria-atomic":"false",children:e.map((b,k)=>{let D=e.length-1-k,T=s.has(b.id),m=b.lifecycle==="leaving",C=!T||m,v;if(l&&!C){let E=e.slice(k+1).reduce((F,I)=>F+(I.height||80)+o,0);v=`translateY(${u?-E:E}px)`;}return jsx(Hc,{item:b,depthIndex:D,stackSize:e.length,expanded:l,isBottom:u,appeared:T,toastWidth:r,onDismiss:n,onHeightMeasured:i,expandedTransformOverride:v},b.id)})})},C0=()=>{let e=useContext(qn);if(!e)throw new Error("[sm-ui] useToast() mus\xED b\xFDt vol\xE1n uvnit\u0159 <ToasterProvider>. Obalte ko\u0159en va\u0161\xED aplikace pomoc\xED <ToasterProvider>.");return e};var Uc={dark:{text:"#ffffff",titleText:"#ffffff",descriptionText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)"},light:{text:"#1a1a1a",titleText:"#1a1a1a",descriptionText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)"}},qc={info:{border:"rgba(255,255,255,0.7)",borderLight:"rgba(0,0,0,0.3)",background:"rgba(255,255,255,0.06)",backgroundLight:"rgba(0,0,0,0.04)",iconColor:"rgba(255,255,255,0.7)",iconColorLight:"rgba(0,0,0,0.5)"},success:{border:"#00A205",borderLight:"#00A205",background:"rgba(0,162,5,0.08)",backgroundLight:"rgba(0,162,5,0.06)",iconColor:"#00A205",iconColorLight:"#00A205"},warning:{border:"#F5A623",borderLight:"#F5A623",background:"rgba(245,166,35,0.08)",backgroundLight:"rgba(245,166,35,0.06)",iconColor:"#F5A623",iconColorLight:"#F5A623"},error:{border:"#DE0000",borderLight:"#DE0000",background:"rgba(222,0,0,0.08)",backgroundLight:"rgba(222,0,0,0.06)",iconColor:"#DE0000",iconColorLight:"#DE0000"}},z0=({variant:e="info",title:t,children:r,icon:o,closable:a=false,onClose:n,className:i,style:l})=>{let p=z(),s=Uc[p],f=qc[e],[u,c]=useState(true);if(!u)return null;let h=p==="light",g=h?f.borderLight:f.border,d=h?f.backgroundLight:f.background,x=h?f.iconColorLight:f.iconColor,w=o??{info:jsx(Info,{size:24,color:x}),success:jsx(CheckCircle,{size:24,color:x}),warning:jsx(Warning,{size:24,color:x}),error:jsx(XCircle,{size:24,color:x})}[e],y=()=>{c(false),n?.();};return jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:d,borderLeft:`4px solid ${g}`,borderRadius:"4px",boxSizing:"border-box",...l},className:i,children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:w}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:s.titleText},children:t}),r&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:s.descriptionText},children:r})]}),a&&jsx("button",{type:"button",onClick:y,"aria-label":"Zav\u0159\xEDt upozorn\u011Bn\xED",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:s.closeColor,flexShrink:0,marginTop:"1px"},children:jsx(X,{size:16,color:"currentColor"})})]})};var Qc={dark:{titleText:"#ffffff",bodyText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)",border:"rgba(255,255,255,0.1)"},light:{titleText:"#1a1a1a",bodyText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)",border:"rgba(0,0,0,0.08)"}},ed={info:{bg:"rgba(255,255,255,0.06)",bgLight:"rgba(0,0,0,0.04)",accent:"rgba(255,255,255,0.7)",accentLight:"rgba(0,0,0,0.5)"},success:{bg:"rgba(0,162,5,0.08)",bgLight:"rgba(0,162,5,0.06)",accent:"#00A205",accentLight:"#00A205"},warning:{bg:"rgba(245,166,35,0.08)",bgLight:"rgba(245,166,35,0.06)",accent:"#F5A623",accentLight:"#F5A623"},error:{bg:"rgba(222,0,0,0.08)",bgLight:"rgba(222,0,0,0.06)",accent:"#DE0000",accentLight:"#DE0000"}},td=({variant:e="info",title:t,children:r,closable:o=false,onClose:a,icon:n,action:i,style:l,className:p})=>{let s=z(),f=Qc[s],u=ed[e],[c,h]=useState(true);if(!c)return null;let g=s==="light",d=g?u.bgLight:u.bg,x=g?u.accentLight:u.accent,w=n??{info:jsx(Info,{size:20,color:x}),success:jsx(CheckCircle,{size:20,color:x}),warning:jsx(Warning,{size:20,color:x}),error:jsx(XCircle,{size:20,color:x})}[e],y=()=>{h(false),a?.();};return jsxs("div",{role:"status",className:p,style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 16px",backgroundColor:d,border:`1px solid ${f.border}`,borderRadius:"12px",boxSizing:"border-box",...l},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:w}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:f.titleText},children:t}),r&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:f.bodyText},children:r})]}),i&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:i}),o&&jsx("button",{type:"button",onClick:y,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:f.closeColor,flexShrink:0,marginTop:"1px"},children:jsx(X,{size:16,color:"currentColor"})})]})};td.displayName="Notification";var Xn={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},od={sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"},lg:{height:16,fontSize:"14px"}},Kn="sm-ui-progress-stripes",rd=()=>{if(typeof document>"u"||document.getElementById(Kn))return;let e=document.createElement("style");e.id=Kn,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},W0=({value:e,size:t="md",color:r="#E8612D",showValue:o=false,label:a,striped:n=false,animated:i=false,className:l,style:p})=>{let s=z(),f=Xn[s],u=od[t],c=Math.max(0,Math.min(100,e));n&&i&&rd();let h=n?{backgroundImage:"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem",...i?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{};return jsxs("div",{role:"progressbar","aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a,style:{display:"flex",flexDirection:"column",gap:"6px",width:"100%",...p},className:l,children:[(a||o)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:f.label,userSelect:"none"},children:a}),o&&jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:u.fontSize,color:f.text,userSelect:"none",marginLeft:"auto"},children:[Math.round(c),"%"]})]}),jsx("div",{style:{width:"100%",height:u.height,backgroundColor:f.trackBg,borderRadius:u.height/2,overflow:"hidden"},children:jsx("div",{style:{width:`${c}%`,height:"100%",backgroundColor:r,borderRadius:u.height/2,transition:"width 0.3s ease",...h}})})]})},Z0=({value:e,size:t=64,strokeWidth:r=4,color:o="#E8612D",showValue:a=false,label:n,className:i,style:l})=>{let p=z(),s=Xn[p],f=Math.max(0,Math.min(100,e)),u=(t-r)/2,c=2*Math.PI*u,h=c-f/100*c;return jsxs("div",{role:"progressbar","aria-valuenow":f,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...l},className:i,children:[jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,style:{transform:"rotate(-90deg)"},children:[jsx("circle",{cx:t/2,cy:t/2,r:u,fill:"none",stroke:s.trackBg,strokeWidth:r}),jsx("circle",{cx:t/2,cy:t/2,r:u,fill:"none",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeDasharray:c,strokeDashoffset:h,style:{transition:"stroke-dashoffset 0.3s ease"}})]}),a&&jsxs("span",{style:{position:"relative",marginTop:-t/2-6,marginBottom:t/2-6,fontFamily:"'Zalando Sans', sans-serif",fontWeight:700,fontSize:`${Math.max(11,t*.22)}px`,color:s.text,userSelect:"none",transform:"translateY(-50%)",top:"50%",display:"block",textAlign:"center"},children:[Math.round(f),"%"]}),n&&jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},children:n})]})};var sd={sm:16,md:24,lg:40},q0=({size:e="md",color:t,label:r="Na\u010D\xEDt\xE1n\xED",className:o,style:a})=>{let[n,i]=useState(0),l=useRef(void 0),p=useRef(void 0);useEffect(()=>{let u=c=>{p.current===void 0&&(p.current=c),i((c-p.current)/800*360%360),l.current=requestAnimationFrame(u);};return l.current=requestAnimationFrame(u),()=>{l.current!==void 0&&cancelAnimationFrame(l.current);}},[]);let s=typeof e=="number"?e:sd[e]??24,f=t??"currentColor";return jsx("span",{role:"status","aria-label":r,className:o,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",...a},children:jsxs("svg",{width:s,height:s,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${n}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:f,strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:f,strokeWidth:"2",strokeLinecap:"round"})]})})};var ld={dark:{titleText:"#ffffff",descriptionText:"#eaeaea",cancelBg:"transparent",cancelHover:"rgba(255,255,255,0.08)",cancelBorder:"rgba(255,255,255,0.15)",cancelText:"#eaeaea",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"},light:{titleText:"#1a1a1a",descriptionText:"#333333",cancelBg:"transparent",cancelHover:"rgba(0,0,0,0.05)",cancelBorder:"rgba(0,0,0,0.12)",cancelText:"#333333",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"}},cd=({open:e,onConfirm:t,onCancel:r,title:o,description:a,confirmLabel:n="Potvrdit",cancelLabel:i="Zru\u0161it",variant:l="default",loading:p=false,style:s,className:f})=>{let u=z(),c=ld[u],[h,g]=useState(false),[d,x]=useState(false),S=l==="danger",w=S?d?c.dangerHover:c.dangerBg:d?c.confirmHover:c.confirmBg,y=S?c.dangerText:c.confirmText;return jsx(Jo,{open:e,onClose:r,title:o,size:"sm",className:f,style:s,footer:jsxs(Fragment,{children:[jsx("button",{type:"button",onClick:r,onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:h?c.cancelHover:c.cancelBg,border:`1px solid ${c.cancelBorder}`,borderRadius:"6px",cursor:"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:c.cancelText,lineHeight:"normal",transition:"background-color 0.12s ease"},children:i}),jsx("button",{type:"button",onClick:t,disabled:p,onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:w,border:"none",borderRadius:"6px",cursor:p?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:y,lineHeight:"normal",opacity:p?.7:1,transition:"background-color 0.12s ease, opacity 0.12s ease"},children:p?"Zpracov\xE1v\xE1m...":n})]}),children:a&&jsx("p",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:c.descriptionText},children:a})})};cd.displayName="ConfirmDialog";var xd={dark:{iconColor:"#ACACAC",iconHover:"#ffffff",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(255,255,255,0.08)",buttonBorder:"rgba(255,255,255,0.15)",buttonText:"#eaeaea"},light:{iconColor:"#888888",iconHover:"#1a1a1a",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(0,0,0,0.05)",buttonBorder:"rgba(0,0,0,0.12)",buttonText:"#333333"}},md={sm:{iconSize:14,buttonPadding:"4px 10px",iconPadding:"4px",fontSize:"12px"},md:{iconSize:16,buttonPadding:"6px 14px",iconPadding:"6px",fontSize:"13px"},lg:{iconSize:18,buttonPadding:"8px 16px",iconPadding:"8px",fontSize:"14px"}},hd=async e=>{try{if(navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",t.style.left="-9999px",document.body.appendChild(t),t.select();let r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return false}},yd=({text:e,children:t,size:r="md",variant:o="icon",label:a="Kop\xEDrovat",successLabel:n="Zkop\xEDrov\xE1no",onCopy:i,style:l,className:p})=>{let s=z(),f=xd[s],u=md[r],[c,h]=useState(false),[g,d]=useState(false),x=useRef(null),S=useCallback(async()=>{await hd(e)&&(h(true),i?.(),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{h(false),x.current=null;},2e3));},[e,i]),w=c?f.successColor:g?f.iconHover:f.iconColor,y=c?CheckIcon:CopySimpleIcon;return t?jsx("button",{type:"button","aria-label":c?n:a,onClick:S,onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),className:p,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:u.iconPadding,background:g?f.buttonHover:f.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",color:w,...l},children:t}):o==="icon"?jsx("button",{type:"button","aria-label":c?n:a,onClick:S,onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),className:p,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:u.iconPadding,background:g?f.buttonHover:f.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",color:w,...l},children:jsx(y,{size:u.iconSize,color:w})}):jsxs("button",{type:"button","aria-label":c?n:a,onClick:S,onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),className:p,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:u.buttonPadding,background:g?f.buttonHover:f.buttonBg,border:`1px solid ${f.buttonBorder}`,borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,fontWeight:500,color:c?f.successColor:f.buttonText,lineHeight:"normal",...l},children:[jsx(y,{size:u.iconSize,color:c?f.successColor:f.buttonText}),c?n:a]})};yd.displayName="CopyButton";var Sd={dark:{border:"rgba(255,255,255,0.15)",labelColor:"rgba(255,255,255,0.5)",labelBg:"#1a1a1a"},light:{border:"rgba(0,0,0,0.12)",labelColor:"rgba(0,0,0,0.4)",labelBg:"#ffffff"}},pb=({orientation:e="horizontal",label:t,className:r,style:o})=>{let a=z(),n=Sd[a];return e==="vertical"?jsx("div",{role:"separator","aria-orientation":"vertical",className:r,style:{width:"1px",alignSelf:"stretch",backgroundColor:n.border,flexShrink:0,...o}}):t?jsxs("div",{role:"separator","aria-orientation":"horizontal",className:r,style:{display:"flex",alignItems:"center",width:"100%",gap:"12px",...o},children:[jsx("div",{style:{flex:1,height:"1px",backgroundColor:n.border}}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:n.labelColor,whiteSpace:"nowrap",userSelect:"none",flexShrink:0},children:t}),jsx("div",{style:{flex:1,height:"1px",backgroundColor:n.border}})]}):jsx("div",{role:"separator","aria-orientation":"horizontal",className:r,style:{width:"100%",height:"1px",backgroundColor:n.border,flexShrink:0,...o}})};var Cd={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},Rd={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},gb=({direction:e="column",gap:t=8,align:r="stretch",justify:o="start",wrap:a=false,fullWidth:n=false,children:i,className:l,style:p})=>jsx("div",{className:l,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:Cd[r],justifyContent:Rd[o],flexWrap:a?"wrap":"nowrap",width:n?"100%":void 0,...p},children:i});var Td={sm:640,md:768,lg:1024,xl:1280},mb=({maxWidth:e="lg",padding:t=16,centered:r=true,children:o,className:a,style:n})=>{let i=typeof e=="number"?e:Td[e],l=typeof t=="number"?`${t}px`:t;return jsx("div",{className:a,style:{maxWidth:`${i}px`,width:"100%",padding:l,boxSizing:"border-box",...r?{marginLeft:"auto",marginRight:"auto"}:{},...n},children:o})};var Bd={dark:{itemBg:"rgba(255,255,255,0.04)",itemBorder:"rgba(255,255,255,0.08)",itemHoverBg:"rgba(255,255,255,0.07)",text:"#ffffff",textSecondary:"#ACACAC",gripColor:"rgba(255,255,255,0.2)",gripHover:"rgba(255,255,255,0.5)",dropIndicator:"#E8612D",nestHighlight:"rgba(232,97,45,0.10)",nestBorder:"rgba(232,97,45,0.4)",chevron:"rgba(255,255,255,0.4)",chevronHover:"#ffffff",treeLine:"rgba(255,255,255,0.08)"},light:{itemBg:"rgba(0,0,0,0.02)",itemBorder:"rgba(0,0,0,0.07)",itemHoverBg:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",gripColor:"rgba(0,0,0,0.15)",gripHover:"rgba(0,0,0,0.4)",dropIndicator:"#FC4F00",nestHighlight:"rgba(252,79,0,0.06)",nestBorder:"rgba(252,79,0,0.35)",chevron:"rgba(0,0,0,0.3)",chevronHover:"#1a1a1a",treeLine:"rgba(0,0,0,0.06)"}},ta="smDragListPulse",Pd=`@keyframes ${ta}{0%,100%{opacity:1}50%{opacity:0.5}}`;function hr(e,t){for(let r of e){if(r.id===t)return r;if(r.children){let o=hr(r.children,t);if(o)return o}}return null}function xr(e,t,r){let o=hr(e,t);if(!o||!o.children)return false;for(let a of o.children)if(a.id===r||xr([a],a.id,r))return true;return false}function oa(e,t){let r=null;return [e.reduce((a,n)=>{if(n.id===t)return r=n,a;if(n.children){let[i,l]=oa(n.children,t);l&&(r=l),a.push({...n,children:i.length>0?i:void 0});}else a.push(n);return a},[]),r]}function mr(e,t,r,o){if(r==="inside")return e.map(n=>n.id===t?{...n,children:[...n.children||[],o],expanded:true}:n.children?{...n,children:mr(n.children,t,r,o)}:n);let a=[];for(let n of e)n.id===t?r==="before"?(a.push(o),a.push(n)):(a.push(n),a.push(o)):n.children?a.push({...n,children:mr(n.children,t,r,o)}):a.push(n);return a}function ra(e,t){return e.map(r=>r.id===t?{...r,expanded:!r.expanded}:r.children?{...r,children:ra(r.children,t)}:r)}function na(e,t,r){return e.map(o=>o.id===t?{...o,expanded:r}:o.children?{...o,children:na(o.children,t,r)}:o)}var ea=({color:e})=>jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${ta} 1.2s ease-in-out infinite`,width:"100%"},children:jsx("div",{style:{position:"absolute",left:"-3px",top:"-3px",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:e}})}),aa=({item:e,depth:t,allowNesting:r,maxDepth:o,draggedId:a,dropState:n,onDragStart:i,onDragOver:l,onDragLeave:p,onDrop:s,onDragEnd:f,onToggleExpand:u,renderItem:c,dragMode:h,tokens:g})=>{let[d,x]=useState(false),[S,w]=useState(false),[y,b]=useState(false),k=useRef(false),D=useRef(null),T=e.children&&e.children.length>0,m=e.expanded??false,C=a===e.id,v=a!==null,R=h==="handle",E=n?.targetId===e.id,P=E&&n?.position==="before",F=E&&n?.position==="after",I=E&&n?.position==="inside",B=C?"transparent":I?g.nestHighlight:S&&!v?g.itemHoverBg:g.itemBg,H=I?g.nestBorder:C?"transparent":g.itemBorder;return jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[P&&jsx("div",{style:{position:"absolute",top:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(ea,{color:g.dropIndicator})}),jsxs("div",{ref:D,draggable:true,onDragStart:A=>{if(R&&!k.current){A.preventDefault();return}if(k.current=false,A.dataTransfer.effectAllowed="move",A.dataTransfer.setData("text/plain",e.id),D.current){let N=D.current.cloneNode(true);N.style.width=`${D.current.offsetWidth}px`,N.style.opacity="0.85",N.style.transform="rotate(1.5deg) scale(1.02)",N.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",N.style.position="fixed",N.style.top="-1000px",document.body.appendChild(N),A.dataTransfer.setDragImage(N,A.nativeEvent.offsetX,A.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild(N));}i(e.id);},onDragOver:A=>{A.preventDefault(),A.stopPropagation(),l(A,e.id,t);},onDragLeave:A=>{let N=A.relatedTarget;D.current&&N&&D.current.contains(N)||(A.stopPropagation(),p(A,D.current),w(false));},onDrop:A=>{A.preventDefault(),A.stopPropagation(),s(A);},onDragEnd:f,onMouseEnter:()=>w(true),onMouseLeave:()=>w(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:C?"transparent":g.text,cursor:v?"grabbing":R?"default":"grab",opacity:C?.35:1,backgroundColor:B,borderWidth:"1px",borderColor:H,borderStyle:C?"dashed":"solid",borderRadius:"10px",transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease",userSelect:"none",gap:"10px",minHeight:"44px",boxSizing:"border-box",boxShadow:I?`inset 0 0 0 1px ${g.nestBorder}`:S&&!v?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:I?"scale(1.01)":"scale(1)"},children:[!c&&jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:v?"grabbing":"grab",padding:"4px 2px",borderRadius:"4px",visibility:C?"hidden":"visible"},onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),onMouseDown:()=>{k.current=true;},children:jsx(DotsSixVertical,{size:14,color:d?g.gripHover:g.gripColor})}),I&&jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsx(ArrowBendDownRight,{size:16,color:g.dropIndicator})}),T?jsx("button",{type:"button",onClick:A=>{A.stopPropagation(),u(e.id);},onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"22px",height:"22px",border:"none",background:"transparent",cursor:"pointer",padding:0,flexShrink:0,borderRadius:"4px",visibility:C?"hidden":"visible"},children:jsx(CaretRight,{size:16,color:y?g.chevronHover:g.chevron,style:{transition:"transform 0.2s ease",transform:m?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:C?"hidden":"visible"},children:c?c(e,{handleProps:{onMouseDown:()=>{k.current=true;},style:{cursor:v?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:C,depth:t,isExpanded:m,toggleExpand:()=>u(e.id),hasChildren:!!T}):jsxs(Fragment,{children:[e.icon&&jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0,opacity:.7},children:e.icon}),jsx("span",{style:{flex:1,lineHeight:"normal",fontWeight:t===0?500:400,fontSize:t===0?"14px":"13px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.label})]})})]}),F&&jsx("div",{style:{position:"absolute",bottom:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(ea,{color:g.dropIndicator})}),T&&m&&jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${g.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map(A=>jsx(aa,{item:A,depth:t+1,allowNesting:r,maxDepth:o,draggedId:a,dropState:n,onDragStart:i,onDragOver:l,onDragLeave:p,onDrop:s,onDragEnd:f,onToggleExpand:u,renderItem:c,dragMode:h,tokens:g},A.id))})]})},Md=({items:e,onReorder:t,renderItem:r,allowNesting:o=false,maxDepth:a=3,dragMode:n="full",className:i,style:l})=>{let p=z(),s=Bd[p],[f,u]=useState(null),[c,h]=useState(null),g=useRef(null),d=useRef(void 0),x=useRef(void 0),S=useRef(null),w=useCallback(m=>{u(m);},[]),y=useCallback((m,C,v)=>{if(!f||f===C||xr(e,f,C))return;d.current&&(clearTimeout(d.current),d.current=void 0);let R=m.currentTarget.getBoundingClientRect(),E=m.clientY-R.top,P=R.height,F;o&&v<a?E<P*.25?F="before":E>P*.75?F="after":F="inside":E<P*.35?F="before":E>P*.65?F="after":S.current?.targetId===C?F=S.current.position:F=E<P/2?"before":"after";let I={targetId:C,position:F},B=hr(e,C);F==="inside"&&B?.children&&B.children.length>0&&!B.expanded?(S.current?.targetId!==C||S.current?.position!=="inside")&&(x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{t(na(e,C,true));},600)):x.current&&(clearTimeout(x.current),x.current=void 0),S.current=I,h(I);},[f,e,o,a,t]),b=useCallback((m,C)=>{d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{h(null),S.current=null;},60),x.current&&(clearTimeout(x.current),x.current=void 0);},[]),k=useCallback(()=>{if(d.current&&(clearTimeout(d.current),d.current=void 0),x.current&&(clearTimeout(x.current),x.current=void 0),!f||!c)return;let{targetId:m,position:C}=c;if(f===m||xr(e,f,m))return;let[v,R]=oa(e,f);if(!R)return;let E=mr(v,m,C,R);t(E),u(null),h(null),S.current=null;},[f,c,e,t]),D=useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=void 0),x.current&&(clearTimeout(x.current),x.current=void 0),u(null),h(null),S.current=null;},[]),T=useCallback(m=>{t(ra(e,m));},[e,t]);return useEffect(()=>()=>{d.current&&clearTimeout(d.current),x.current&&clearTimeout(x.current);},[]),jsxs("div",{ref:g,className:i,style:{display:"flex",flexDirection:"column",gap:"6px",...l},children:[jsx("style",{dangerouslySetInnerHTML:{__html:Pd}}),e.length===0?jsx("div",{style:{padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.textSecondary,backgroundColor:s.itemBg,borderRadius:"10px",border:`1px solid ${s.itemBorder}`},children:"\u017D\xE1dn\xE9 polo\u017Eky"}):e.map(m=>jsx(aa,{item:m,depth:0,allowNesting:o,maxDepth:a,draggedId:f,dropState:c,onDragStart:w,onDragOver:y,onDragLeave:b,onDrop:k,onDragEnd:D,onToggleExpand:T,renderItem:r,dragMode:n,tokens:s},m.id))]})};Md.displayName="DragList";export{wi as Accordion,Ri as AccordionItem,z0 as Alert,gc as AppSidebar,yu as Avatar,wu as Badge,Wl as Breadcrumb,ya as Button,ll as Calendar,yi as Card,Or as Checkbox,Yr as CheckboxGroup,Gs as ColorPicker,ja as Combobox,fc as CommandMenu,cd as ConfirmDialog,mb as Container,yd as CopyButton,xi as DataGrid,fl as DataList,Wr as DatePicker,is as DatePickerGroup,pb as Divider,Md as DragList,Bl as Drawer,ec as DropdownMenu,Ui as EmptyState,tn as FileUpload,Tr as Input,Ud as InputGroup,Zg as Link,Jo as Modal,kc as Navbar,td as Notification,Ha as NumberInput,ii as OTPInput,ql as Pagination,Wi as Popover,W0 as ProgressBar,Z0 as ProgressCircle,yo as Radio,Ur as RadioGroup,Qs as Rating,$s as SegmentedControl,Br as Select,Za as SelectGroup,Ll as Sheet,vc as SidebarItem,nt as Skeleton,Qr as Slider,q0 as Spinner,ic as Spotlight,gb as Stack,Xi as Stat,Cl as StatusBadge,jl as Stepper,Gr as Switch,Ei as Tab,Di as TabPanel,ui as Table,zi as Tabs,Ru as Tag,Tu as TagItem,Kr as Textarea,dl as Timeline,Yn as Toast,k0 as ToasterProvider,Mi as Tooltip,ml as Tree,z as useTheme,C0 as useToast};//# sourceMappingURL=index.mjs.map
19
19
  //# sourceMappingURL=index.mjs.map